|
|
!function(e){function t(t){for(var n,r,i=t[0],a=t[1],c=0,s=[];c<i.length;c++)r=i[c],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&s.push(o[r][0]),o[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(u&&u(t);s.length;)s.shift()()}var n={},r={7:0},o={7:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[];r[e]?t.push(r[e]):0!==r[e]&&{0:1,1:1,2:1,3:1,4:1,5:1,8:1,11:1,13:1,14:1,16:1,17:1,18:1,19:1}[e]&&t.push(r[e]=new Promise((function(t,n){for(var o="column."+({0:"Carousel",1:"ECommerceAd",2:"EcommerceAdCard",3:"FeeConsultCard",4:"GoodsRecommendGoodsCardList",5:"Labels",6:"VideoAnswerLabel",8:"comments-modals",9:"contribution-modal",10:"empty-view-svg",11:"modals",12:"mqtt",13:"navbar-messages",14:"navbar-notifications",15:"react-id-swiper",16:"richinput",17:"richinputV2",18:"signflow",19:"user-hover-card",20:"zswsdid"}[e]||e)+".216a26f4."+{0:"6c92d300e158ac1b00bc",1:"8f135a6a37b14bb87d08",2:"bab2d3e3fbf314abc3e2",3:"f8e68f066fec0a9d4928",4:"fa8ead9ef18009727ea4",5:"7d19d2afdc588e36471f",6:"31d6cfe0d16ae931b73c",8:"953f6e8064d7f947f0da",9:"31d6cfe0d16ae931b73c",10:"31d6cfe0d16ae931b73c",11:"37f34e5eadb9da06be9d",12:"31d6cfe0d16ae931b73c",13:"08f120befae93b84d41e",14:"0f001e78dc29f3f35705",15:"31d6cfe0d16ae931b73c",16:"5995aa589198d37c53ce",17:"82719a96616d0f7a2dd4",18:"bd7f666221e7000b679c",19:"f19b464299cd4889eeb6",20:"31d6cfe0d16ae931b73c"}[e]+".css",a=i.p+o,c=document.getElementsByTagName("link"),s=0;s<c.length;s++){var u=(d=c[s]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(u===o||u===a))return t()}var l=document.getElementsByTagName("style");for(s=0;s<l.length;s++){var d;if((u=(d=l[s]).getAttribute("data-href"))===o||u===a)return t()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css";f.onerror=f.onload=function(o){if(f.onerror=f.onload=null,"load"===o.type)t();else{var i=o&&("load"===o.type?"missing":o.type),c=o&&o.target&&o.target.href||a,s=new Error("Loading CSS chunk "+e+" failed.\n("+c+")");s.code="CSS_CHUNK_LOAD_FAILED",s.type=i,s.request=c,delete r[e],f.parentNode.removeChild(f),n(s)}},f.href=a,0!==f.href.indexOf(window.location.origin+"/")&&(f.crossOrigin="anonymous"),document.head.appendChild(f)})).then((function(){r[e]=0})));var n=o[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,r){n=o[e]=[t,r]}));t.push(n[2]=a);var c,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=function(e){return i.p+"column."+({0:"Carousel",1:"ECommerceAd",2:"EcommerceAdCard",3:"FeeConsultCard",4:"GoodsRecommendGoodsCardList",5:"Labels",6:"VideoAnswerLabel",8:"comments-modals",9:"contribution-modal",10:"empty-view-svg",11:"modals",12:"mqtt",13:"navbar-messages",14:"navbar-notifications",15:"react-id-swiper",16:"richinput",17:"richinputV2",18:"signflow",19:"user-hover-card",20:"zswsdid"}[e]||e)+"."+{0:"c5ef2f54528661cef13f",1:"4935ae0e4f1017a606fe",2:"d528be32abd4bc0ba6aa",3:"ec9398dc9cb6f8a948d5",4:"a3153a44a3e3e2e0c7aa",5:"b0d8f29f758d69618b0f",6:"925d9003ac1aa32aa6e5",8:"85cdd6e27cb828157e15",9:"d26f7bdf66442dd0215c",10:"c2d8aff7597202d6909b",11:"c4da0eb29cd568402080",12:"fc2c94acc814aaefc30f",13:"9306d99e5affa3885f79",14:"62717dd8e652505edc09",15:"d3c8a8a27b95cfc51e83",16:"d6faaa6b2c991a81efdd",17:"a5d13512f3cdfc343d70",18:"eb4f90e71b6b6764028d",19:"b6d93e063dcf3ba6b80a",20:"12908df265f9866a0ae6"}[e]+".js"}(e),0!==s.src.indexOf(window.location.origin+"/")&&(s.crossOrigin="anonymous");var u=new Error;c=function(t){s.onerror=s.onload=null,clearTimeout(l);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",u.name="ChunkLoadError",u.type=r,u.request=i,n[1](u)}o[e]=void 0}};var l=setTimeout((function(){c({type:"timeout",target:s})}),12e4);s.onerror=s.onload=c,document.head.appendChild(s)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="https://static.zhihu.com/heifetz/",i.oe=function(e){throw console.error(e),e};var a=window.webpackJsonp=window.webpackJsonp||[],c=a.push.bind(a);a.push=t,a=a.slice();for(var s=0;s<a.length;s++)t(a[s]);var u=c;i(i.s=1026)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c}));n(550),n(1),n(403);var r=n(125),o=(n(200),n(199),n(323)),i=o.Fragment;function a(e,t,n){return r.d.call(t,"css")?Object(o.jsx)(r.a,Object(r.c)(e,t),n):Object(o.jsx)(e,t,n)}function c(e,t,n){return r.d.call(t,"css")?Object(o.jsxs)(r.a,Object(r.c)(e,t),n):Object(o.jsxs)(e,t,n)}},function(e,t,n){e.exports=n(107)(1)},function(e,t,n){e.exports=n(107)(0)},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return d}));var r=n(152),o=n(1),i=(n(403),n(125));n.d(t,"a",(function(){return i.b})),n.d(t,"e",(function(){return i.e}));var a=n(200),c=n(199),s=n(405),u=n(123),l=function(e,t){var n=arguments;if(null==t||!i.d.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,a=new Array(r);a[0]=i.a,a[1]=Object(i.c)(e,t);for(var c=2;c<r;c++)a[c]=n[c];return o.createElement.apply(null,a)},d=(o.Component,function(){var e=u.a.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}),f=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var c in a="",i)i[c]&&c&&(a&&(a+=" "),a+=c);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function p(e,t,n){var r=[],o=Object(a.a)(e,r,n);return r.length<2?n:o+t(r)}Object(i.e)((function(e,t){return Object(o.createElement)(i.b.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Object(c.a)(n,t.registered);return Object(a.b)(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return p(t.registered,r,f(n))},theme:n},i=e.children(o);return!0,i}))}))},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){var r;
|
|
|
/*!
|
|
|
Copyright (c) 2017 Jed Watson.
|
|
|
Licensed under the MIT License (MIT), see
|
|
|
http://jedwatson.github.io/classnames
|
|
|
*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return i}));var o=n(51);function i(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?Object(o.a)(e):t}},function(e,t,n){"use strict";n.d(t,"c",(function(){return O})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var r,o,i,a=n(55),c=n.n(a),s=n(30),u=n.n(s),l=n(41),d=n.n(l),f=n(1),p=n.n(f),h=n(31),b=n(6),v=n.n(b),m=n(211),g=n(3);!function(e){e.Primary="primary",e.Secondary="secondary",e.Outline="outline",e.Plain="plain",e.Link="link"}(r||(r={})),function(e){e.Grey="grey",e.Blue="blue",e.Green="green",e.Red="red"}(o||(o={})),function(e){e.Spread="spread"}(i||(i={}));var O=p.a.forwardRef((function(e,t){var n,o=e.children,i=e.className,a=e.color,s=e.icon,l=e.label,p=e.size,b=e.onRef,O=e.onClick,y=e.preset,j=void 0===y?r.Outline:y,E=e.component,C=void 0===E?"button":E,w=e.type,T=void 0===w?"button":w,_=e.disabled,S=d()(e,["children","className","color","icon","label","size","onRef","onClick","preset","component","type","disabled"]),A=Object(h.b)((function(e){e.currentTarget.disabled||_||!O||O(e)})),k=v()("Button",i,(n={},c()(n,"Button--".concat(j),Boolean(j)&&j!==r.Outline),c()(n,"Button--".concat(a),Boolean(a)&&j!==r.Link),c()(n,"Button--".concat(p),Boolean(p)),c()(n,"Button--withIcon",Boolean(s)),c()(n,"Button--withLabel",Boolean(l)),c()(n,"Button--iconOnly",s&&!l),n));return Object(g.c)(C,u()({},S,{type:T,disabled:_,ref:Object(f.useCallback)(Object(m.a)(t,b),[]),className:k,onClick:A}),s&&Object(g.c)(s,{center:!0,text:Boolean(l)||j===r.Plain||j===r.Link,className:"Button-zi"}),l,o)}))},function(e,t,n){"use strict";var r=n(118),o=n.n(r);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function u(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var l={stringify:function(e){try{return JSON.stringify(e)}catch(e){return window.console&&console.error(e),""}},parse:function(e){try{return JSON.parse(e)}catch(e){return window.console&&console.error(e),null}}},d=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.a.apply(void 0,[{}].concat(t))},f={},p={id:{name:"data-za-detail-view-id",key:"id",type:Number},action:{name:"data-za-detail-view-action",key:"action",type:String},element:{name:"data-za-detail-view-element",key:"element",type:String},name:{name:"data-za-detail-view-name",key:"name",type:String},elementName:{name:"data-za-detail-view-element_name",key:"element_name",type:String}},h={module:{name:"data-za-detail-view-path-module",alias:["data-za-module"],key:"module",type:String},index:{name:"data-za-detail-view-path-index",alias:["data-za-index"],key:"index",type:Number},isAd:{name:"data-za-detail-view-path-is_ad",key:"is_ad",type:Boolean},moduleName:{name:"data-za-detail-view-path-module_name",key:"module_name",type:String},deepIndex:{name:"data-za-detail-view-path-deep_index",key:"deep_index",type:Number},deepSize:{name:"data-za-detail-view-path-deep_size",key:"deep_size",type:Number},isCampaign:{name:"data-za-detail-view-path-is_campaign",key:"is_campaign",type:Boolean},isExpanded:{name:"data-za-detail-view-path-is_expanded",key:"is_expanded",type:Boolean}},b={name:"data-za-extra"},v={name:"data-za-extra-module",alias:["data-za-module-info"],key:"module"},m="data-za-not-track-link",g=function(){try{return"1"===window.localStorage.getItem("zap:logenabled")}catch(e){return!1}},O=[],y=function(e,t){if(window.zap&&window.zap.SUPPORTED)try{e.apply(void 0,u(t))}catch(e){window.console&&console.error(e)}},j=function(e,t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];window.zap&&!O.length?y(e,r):O.push({fn:e,args:r,name:t})}},E=function(e,t){var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return!!n&&n.call(e,t)},C=function(e,t){var n=(t.alias||[]).concat(t.name).map((function(t){return e.getAttribute(t)})).find((function(e){return null!==e}));return void 0!==n?t.type?t.type(n):n:null},w=j((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=f.normalizeElement(e);Object.values(h).forEach((function(e){t[e.key]&&r.setAttribute(e.name,t[e.key])})),n&&(r.setAttribute(v.name,l.stringify(n)),r.moduleInfo=n)}),"setModule"),T=function(e){return function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=f.normalizeElement(e),r=[];n;)t(n)&&r.push(n),n=n.parentElement;return r}(e,(function(e){return null!==C(e,h.module)})).map((function(e){return function(e){var t=f.normalizeElement(e),n={};Object.values(h).forEach((function(e){if("index"!==e.key)null!==C(t,e)&&(n[e.key]=C(t,e));else if(null!==C(t,e))n.index=C(t,e);else{var r=[].filter.call(t.parentElement.children,(function(e){return n.module===C(e,h.module)}));r.length&&(n.index=r.indexOf(t))}}));var r={};return t.moduleinfo?r=t.moduleinfo:null!==C(t,v)&&(r=l.parse(C(t,v))),[n,r]}(e)}))},_=function(e){var t,n=s(function(e){var t=[],n=[];return e.forEach((function(e){t.push(e[0]),n.push(e[1])})),[t,n]}(T(e)),2),r=n[0],o=n[1],i=(t=e,Object.values(p).reduce((function(e,n){return null!==C(t,n)?c({},e,a({},n.key,C(t,n))):e}),{})),u=l.parse(C(e,b));return{view:c({path:r},i),extra:c({module:o},u)}},S=j((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;var r=f.normalizeElement(e);if(r){var o=_(r),i=o.view,a=o.extra;t=d(i,t),n=d(a,n)}window.zap.trackEvent(t,n)}),"trackEvent"),A=j((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;var r=f.normalizeElement(e);if(r){var o=_(r),i=o.view,a=o.extra;t=d(i,t),n=d(a,n)}window.zap.trackCardShow(t,n)}),"trackCardShow"),k=j((function(e,t){window.zap.trackPageShow(e,t)}),"trackPageShow"),R=j((function(e,t){window.zap.trackMonitor(e,t)}),"trackMonitor"),I=j((function(e){window.zap.config(e)}),"config"),x=function(){document.addEventListener("click",(function(e){var t=e.target,n=t.closest?t.closest("a"):function(e,t){do{if(E(e,t))break;e=e.parentElement}while(e);return e}(t,"a");if(n&&!n.href.startsWith("#")&&!n.getAttribute(m)&&("http:"===n.protocol||"https:"===n.protocol||"zhihu:"===n.protocol)){var r="IMG"===e.target.nodeName?"Image":"Link";S(n,{action:"OpenUrl",element:r},{link:{url:n.href}})}}),!0)},N=function(){R({},{monitor:{type:"Page",statusCode:200}})},D=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!0},t=0;t<O.length;t++){var n=O[t];if(e(n))return y(n.fn,n.args),O.splice(t,1),!0}return!1},P=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!0};D(e););},L={init:function(e){if(!function(){try{return Boolean(void 0!==("undefined"==typeof window?"undefined":i(window))&&window.localStorage&&window.ArrayBuffer&&window.Uint8Array&&window.DataView)}catch(e){return!1}}())return Promise.reject(new Error("za not available"));var t,n,r={product:"Zhihu",sdkVersion:"latest",enableLog:g(),shouldAutoTrackPageShow:!0,shouldAutoTrackOpenUrl:!0,shouldAutoTrackPageMonitor:!0,normalizeElement:function(e){return e}},o=f=c({},r,e),a=o.sdkVersion,s=o.shouldAutoTrackPageShow,u=o.shouldAutoTrackOpenUrl,l=o.shouldAutoTrackPageMonitor,d=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(o,["sdkVersion","shouldAutoTrackPageShow","shouldAutoTrackOpenUrl","shouldAutoTrackPageMonitor"]);return I(d),(n=a,t="https://unpkg.zhimg.com/za-js-sdk@".concat(n,"/dist/zap.js"),new Promise((function(e,n){var r=document.createElement("script");r.crossOrigin="";var o=function(){r.onload=r.onerror=null};r.onload=function(){o(),e()},r.onerror=function(){o(),n()},r.src=t,(document.body||document.head).appendChild(r)}))).then((function(){return P((function(e){return"config"===e.name})),P((function(e){return"setModule"===e.name})),s&&!/ZhihuHybrid/.test(window.navigator.userAgent)&&k(),u&&x(),l&&("complete"===document.readyState?N():window.addEventListener("load",N)),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!0};return new Promise((function(t){!function n(){for(var r=Date.now();D(e);)if(Date.now()-r>16)return void requestAnimationFrame(n);t()}()}))}()}))},config:I,trackEvent:S,trackCardShow:A,trackPageShow:k,trackMonitor:R,setModule:w},M={init:L.init,config:L.config,trackEvent:L.trackEvent,trackCardShow:L.trackCardShow,trackPageShow:L.trackPageShow,trackMonitor:L.trackMonitor,setModule:L.setModule};t.a=M},function(e,t,n){e.exports=n(107)(208)},function(e,t,n){"use strict";n.r(t),n.d(t,"Text",(function(){return c})),n.d(t,"Heading",(function(){return s})),n.d(t,"Link",(function(){return u})),n.d(t,"Button",(function(){return l})),n.d(t,"Image",(function(){return d})),n.d(t,"Card",(function(){return f}));var r=n(1),o=n.n(r),i=n(231);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"Box",(function(){return i.Box})),n.d(t,"Flex",(function(){return i.Flex}));var c=Object(r.forwardRef)((function(e,t){return o.a.createElement(i.Box,a({ref:t,tx:"text"},e))})),s=Object(r.forwardRef)((function(e,t){return o.a.createElement(i.Box,a({ref:t,as:"h2",tx:"text",variant:"heading"},e,{__css:{fontSize:4,fontFamily:"heading",fontWeight:"heading",lineHeight:"heading"}}))})),u=Object(r.forwardRef)((function(e,t){return o.a.createElement(i.Box,a({ref:t,as:"a",variant:"link"},e))})),l=Object(r.forwardRef)((function(e,t){return o.a.createElement(i.Box,a({ref:t,as:"button",tx:"buttons",variant:"primary"},e,{__css:{appearance:"none",display:"inline-block",textAlign:"center",lineHeight:"inherit",textDecoration:"none",fontSize:"inherit",px:3,py:2,color:"white",bg:"primary",border:0,borderRadius:4}}))})),d=Object(r.forwardRef)((function(e,t){return o.a.createElement(i.Box,a({ref:t,as:"img"},e,{__css:{maxWidth:"100%",height:"auto"}}))})),f=Object(r.forwardRef)((function(e,t){return o.a.createElement(i.Box,a({ref:t,variant:"card"},e))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(349);var o=n(407);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(407);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";n.d(t,"w",(function(){return s})),n.d(t,"a",(function(){return je})),n.d(t,"b",(function(){return z})),n.d(t,"c",(function(){return Ce})),n.d(t,"d",(function(){return ye})),n.d(t,"e",(function(){return Z})),n.d(t,"f",(function(){return he})),n.d(t,"g",(function(){return Ie})),n.d(t,"h",(function(){return S})),n.d(t,"i",(function(){return Me})),n.d(t,"j",(function(){return Pe})),n.d(t,"k",(function(){return R})),n.d(t,"l",(function(){return I})),n.d(t,"m",(function(){return N})),n.d(t,"n",(function(){return L})),n.d(t,"o",(function(){return q})),n.d(t,"p",(function(){return Oe})),n.d(t,"q",(function(){return ge})),n.d(t,"r",(function(){return me})),n.d(t,"s",(function(){return A})),n.d(t,"t",(function(){return Ue})),n.d(t,"u",(function(){return k})),n.d(t,"v",(function(){return _})),n.d(t,"x",(function(){return we})),n.d(t,"y",(function(){return x})),n.d(t,"z",(function(){return Fe})),n.d(t,"A",(function(){return qe})),n.d(t,"B",(function(){return Ve})),n.d(t,"C",(function(){return Be})),n.d(t,"D",(function(){return He}));var r=n(39),o=n.n(r),i=n(22),a=n.n(i);let c=E();const s=e=>g(e,c);let u=E();s.write=e=>g(e,u);let l=E();s.onStart=e=>g(e,l);let d=E();s.onFrame=e=>g(e,d);let f=E();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),w.count-=~e?1:0},o={time:n,handler:e,cancel:r};return p.splice(h(n),0,o),w.count+=1,O(),o};let h=e=>~(~p.findIndex(t=>t.time>e)||~p.length);s.cancel=e=>{c.delete(e),u.delete(e)},s.sync=e=>{m=!0,s.batchedUpdates(e),m=!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=()=>{l.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 v=-1,m=!1;function g(e,t){m?(t.delete(e),e(0)):(t.add(e),O())}function O(){v<0&&(v=0,b(y))}function y(){~v&&(b(y),s.batchedUpdates(j))}function j(){let e=v;v=s.now();let t=h(v);t&&(C(p.splice(0,t),e=>e.handler()),w.count-=t),l.flush(),c.flush(e?Math.min(64,v-e):16.667),d.flush(),u.flush(),f.flush()}function E(){let e=new Set,t=e;return{add(n){w.count+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(w.count-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,w.count-=t.size,C(t,t=>t(n)&&e.add(t)),w.count+=e.size,t=e)}}}function C(e,t){e.forEach(e=>{try{t(e)}catch(e){s.catch(e)}})}const w={count:0,clear(){v=-1,p=[],l=E(),c=E(),d=E(),u=E(),f=E(),w.count=0}};var T=n(1);function _(){}var S=function(e,t,n){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})},A={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 k(e,t){if(A.arr(e)){if(!A.arr(t)||e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var R=function(e,t){return e.forEach(t)};function I(e,t,n){for(var r in e)t.call(n,e[r],r)}var x=function(e){return A.und(e)?[]:A.arr(e)?e:[e]};function N(e,t){if(e.size){var n=Array.from(e);e.clear(),R(n,t)}}var D,P,L=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return N(e,(function(e){return e.apply(void 0,n)}))},M=null,U=!1,B=_,z=Object.freeze({__proto__:null,get createStringInterpolator(){return D},get to(){return P},get colors(){return M},get skipAnimation(){return U},get willAdvance(){return B},assign:function(e){e.to&&(P=e.to),e.now&&(s.now=e.now),void 0!==e.colors&&(M=e.colors),null!=e.skipAnimation&&(U=e.skipAnimation),e.createStringInterpolator&&(D=e.createStringInterpolator),e.requestAnimationFrame&&s.use(e.requestAnimationFrame),e.batchedUpdates&&(s.batchedUpdates=e.batchedUpdates),e.willAdvance&&(B=e.willAdvance)}}),F=new Set,G=[],V=[],H=0,q={get idle(){return!F.size&&!G.length},start:function(e){H>e.priority?(F.add(e),s.onStart(K)):(W(e),s(Q))},advance:Q,sort:function(e){if(H)s.onFrame((function(){return q.sort(e)}));else{var t=G.indexOf(e);~t&&(G.splice(t,1),Y(e))}},clear:function(){G=[],F.clear()}};function K(){F.forEach(W),F.clear(),s(Q)}function W(e){G.includes(e)||Y(e)}function Y(e){var t,n,r;G.splice((n=function(t){return t.priority>e.priority},(r=(t=G).findIndex(n))<0?t.length:r),0,e)}function Q(e){for(var t=V,n=0;n<G.length;n++){var r=G[n];H=r.priority,r.idle||(B(r),r.advance(e),r.idle||t.push(r))}return H=0,(V=G).length=0,(G=t).length>0}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},J="[-+]?\\d*\\.?\\d+";function X(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var $=new RegExp("rgb"+X(J,J,J)),ee=new RegExp("rgba"+X(J,J,J,J)),te=new RegExp("hsl"+X(J,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),ne=new RegExp("hsla"+X(J,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",J)),re=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ie=/^#([0-9a-fA-F]{6})$/,ae=/^#([0-9a-fA-F]{8})$/;function ce(e,t,n){return n<0&&(n+=1),n>1&&(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,i=ce(o,r,e+1/3),a=ce(o,r,e),c=ce(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*c)<<8}function ue(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function le(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=ie.exec(t))?parseInt(n[1]+"ff",16)>>>0:M&&void 0!==M[t]?M[t]:(n=$.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|255)>>>0:(n=ee.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(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=ae.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(le(n[1]),fe(n[2]),fe(n[3])))>>>0:(n=ne.exec(t))?(se(le(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,i=(65280&r)>>>8,a=(255&r)/255;return"rgba(".concat((4278190080&r)>>>24,", ").concat(o,", ").concat(i,", ").concat(a,")")}var he=function e(t,n,r){if(A.fun(t))return t;if(A.arr(t))return e({range:t,output:n,extrapolate:r});if(A.str(t.output[0]))return D(t);var o=t,i=o.output,a=o.range||[0,1],c=o.extrapolateLeft||o.extrapolate||"extend",s=o.extrapolateRight||o.extrapolate||"extend",u=o.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,a);return function(e,t,n,r,o,i,a,c,s){var u=s?s(e):e;if(u<t){if("identity"===a)return u;"clamp"===a&&(u=t)}if(u>n){if("identity"===c)return u;"clamp"===c&&(u=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=i(u),r===-1/0?u=-u:o===1/0?u+=r:u=u*(o-r)+r;return u}(e,a[t],a[t+1],i[t],i[t+1],u,c,s,o.map)}};var be=Symbol.for("FluidValue.get"),ve=Symbol.for("FluidValue.observers"),me=function(e){return Boolean(e&&e[be])},ge=function(e){return e&&e[be]?e[be]():e},Oe=function(e){return e[ve]||null};function ye(e,t){var n=e[ve];n&&n.forEach((function(e){!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var je=function e(t){if(a()(this,e),!t&&!(t=this.get))throw Error("Unknown getter");Ee(this,t)},Ee=function(e,t){return _e(e,be,t)};function Ce(e,t){if(e[be]){var n=e[ve];n||_e(e,ve,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function we(e,t){var n=e[ve];if(n&&n.has(t)){var r=n.size-1;r?n.delete(t):e[ve]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Te,_e=function(e,t,n){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})},Se=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ae=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ke=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Re=function(e,t,n,r,o){return"rgba(".concat(Math.round(t),", ").concat(Math.round(n),", ").concat(Math.round(r),", ").concat(o,")")},Ie=function(e){Te||(Te=M?new RegExp("(".concat(Object.keys(M).join("|"),")"),"g"):/^\b$/);var t=e.output.map((function(e){return ge(e).replace(Ae,pe).replace(Te,pe)})),n=t.map((function(e){return e.match(Se).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(Se,(function(){return String(r[n++](e))})).replace(ke,Re)}},xe="react-spring: ",Ne=function(e){var t=e,n=!1;if("function"!=typeof t)throw new TypeError("".concat(xe,"once requires a function parameter"));return function(){n||(t.apply(void 0,arguments),n=!0)}},De=Ne(console.warn);function Pe(){De("".concat(xe,'The "interpolate" function is deprecated in v9 (use "to" instead)'))}var Le=Ne(console.warn);function Me(){Le("".concat(xe,'Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead)'))}function Ue(e){return A.str(e)&&("#"==e[0]||/\d/.test(e)||e in(M||{}))}var Be=function(e){return Object(T.useEffect)(e,ze)},ze=[];function Fe(){var e=Object(T.useState)()[1],t=Object(T.useState)(Ge)[0];return Be(t.unmount),function(){t.current&&e({})}}function Ge(){var e={current:!0,unmount:function(){return function(){e.current=!1}}};return e}function Ve(e,t){var n=Object(T.useState)((function(){return{inputs:t,result:e()}})),r=o()(n,1)[0],i=Object(T.useRef)(),a=i.current,c=a;c?Boolean(t&&c.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,c.inputs))||(c={inputs:t,result:e()}):c=r;return Object(T.useEffect)((function(){i.current=c,a==r&&(r.inputs=r.result=void 0)}),[c]),c.result}function He(e){var t=Object(T.useRef)();return Object(T.useEffect)((function(){t.current=e})),t.current}var qe="undefined"!=typeof window&&window.document&&window.document.createElement?T.useLayoutEffect:T.useEffect},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return f}));var r,o=n(4),i=n(21),a=n(130),c=n(28),s=(r={},Object(o.a)(r,c.m,"username"),Object(o.a)(r,100003,"username"),Object(o.a)(r,100006,"username"),Object(o.a)(r,c.n,"username"),Object(o.a)(r,100029,"username"),Object(o.a)(r,100030,"username"),Object(o.a)(r,120017,"username"),Object(o.a)(r,120001,"captcha"),Object(o.a)(r,120005,"captcha"),Object(o.a)(r,100002,"password"),Object(o.a)(r,100004,"password"),Object(o.a)(r,100005,"password"),Object(o.a)(r,c.s,"digits"),Object(o.a)(r,c.q,"digits"),Object(o.a)(r,403,"extra"),r);function u(e,t){return t.reduce((function(t,n){return Object.assign({},t,Object(o.a)({},n,["request","success","failure"].reduce((function(t,r){return Object.assign({},t,Object(o.a)({},r,"".concat(e,"/").concat(Object(i.camelize)(n.toLowerCase()),"/").concat(r)))}),{})))}),{})}function l(e,t){return t.reduce((function(t,n){return Object.assign({},t,Object(o.a)({},n,"".concat(e,"/").concat(Object(i.camelize)(n.toLowerCase()))))}),{})}function d(e){var t=e.code,n=e.message;return Object(o.a)({},s[t],n)}function f(e){Object(a.b)(!0),Object(a.c)(e)}},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var a=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 i({},e,a,a&&a.style&&{style:i({},e.style,a.style)})}return e}),i({},e))}(t,e.mapProps),r=n.name,a=n.className,c=n.defaultClassName,s=n.size,u=n.center,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["name","className","defaultClassName","size","center"]),d=o.a.createElement("svg",i({className:c+" "+c+"--"+r+(a?" "+a:"")},l,s&&{width:s,height:s}));return u?o.a.createElement("span",{style:e.strutStyle},"",d):d};a.defaultProps={defaultClassName:"Zi",fill:"currentColor",viewBox:"0 0 24 24",width:24,height:24},a.mapProps={text:{size:"1.2em"}},a.strutStyle={display:"inline-flex",alignItems:"center"},t.a=a},function(e,t,n){var r,o,i,a,c,s,u,l,d,f,p,h,b,v,m;i=function e(t,n,r){if(!d(n)||p(n)||h(n)||b(n)||l(n))return n;var o,i=0,a=0;if(f(n))for(o=[],a=n.length;i<a;i++)o.push(e(t,n[i],r));else for(var c in o={},n)Object.prototype.hasOwnProperty.call(n,c)&&(o[t(c,r)]=e(t,n[c],r));return o},a=function(e){return v(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},c=function(e){var t=a(e);return t.substr(0,1).toUpperCase()+t.substr(1)},s=function(e,t){return function(e,t){var n=(t=t||{}).separator||"_",r=t.split||/(?=[A-Z])/;return e.split(r).join(n)}(e,t).toLowerCase()},u=Object.prototype.toString,l=function(e){return"function"==typeof e},d=function(e){return e===Object(e)},f=function(e){return"[object Array]"==u.call(e)},p=function(e){return"[object Date]"==u.call(e)},h=function(e){return"[object RegExp]"==u.call(e)},b=function(e){return"[object Boolean]"==u.call(e)},v=function(e){return(e-=0)==e},m=function(e,t){var n=t&&"process"in t?t.process:t;return"function"!=typeof n?e:function(t,r){return n(t,e,r)}},void 0===(o="function"==typeof(r={camelize:a,decamelize:s,pascalize:c,depascalize:s,camelizeKeys:function(e,t){return i(m(a,t),e)},decamelizeKeys:function(e,t){return i(m(s,t),e,t)},pascalizeKeys:function(e,t){return i(m(c,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}})?r.call(t,n,t,e):r)||(e.exports=o)},function(e,t,n){e.exports=n(107)(188)},function(e,t,n){e.exports=n(107)(128)},function(e,t,n){e.exports=n(107)(189)},function(e,t,n){var r=n(482);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function c(e){return!(!e||"function"!=typeof e.hasOwnProperty||!(e.hasOwnProperty("__ownerID")||e._map&&e._map.hasOwnProperty("__ownerID")))}function s(e,t,n){return Object.keys(e).reduce((function(t,r){var o=""+r;return t.has(o)?t.set(o,n(t.get(o),e[o])):t}),t)}n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return y}));var u=function(){function e(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),!e||"string"!=typeof e)throw new Error("Expected a string key for Entity, but found "+e+".");var r=n,o=r.idAttribute,a=void 0===o?"id":o,s=r.mergeStrategy,u=void 0===s?function(e,t){return i({},e,t)}:s,l=r.processStrategy,d=void 0===l?function(e){return i({},e)}:l,f=r.fallbackStrategy,p=void 0===f?function(e,t){}:f;this._key=e,this._getId="function"==typeof a?a:function(e){return function(t){return c(t)?t.get(e):t[e]}}(a),this._idAttribute=a,this._mergeStrategy=u,this._processStrategy=d,this._fallbackStrategy=p,this.define(t)}var t=e.prototype;return t.define=function(e){this.schema=Object.keys(e).reduce((function(t,n){var r,o=e[n];return i({},t,((r={})[n]=o,r))}),this.schema||{})},t.getId=function(e,t,n){return this._getId(e,t,n)},t.merge=function(e,t){return this._mergeStrategy(e,t)},t.fallback=function(e,t){return this._fallbackStrategy(e,t)},t.normalize=function(e,t,n,r,o,i){var a=this,c=this.getId(e,t,n),s=this.key;if(s in i||(i[s]={}),c in i[s]||(i[s][c]=[]),i[s][c].some((function(t){return t===e})))return c;i[s][c].push(e);var u=this._processStrategy(e,t,n);return Object.keys(this.schema).forEach((function(t){if(u.hasOwnProperty(t)&&"object"==typeof u[t]){var n=a.schema[t],c="function"==typeof n?n(e):n;u[t]=r(u[t],u,t,c,o,i)}})),o(this,u,e,t,n),c},t.denormalize=function(e,t){var n=this;return c(e)?s(this.schema,e,t):(Object.keys(this.schema).forEach((function(r){if(e.hasOwnProperty(r)){var o=n.schema[r];e[r]=t(e[r],o)}})),e)},o(e,[{key:"key",get:function(){return this._key}},{key:"idAttribute",get:function(){return this._idAttribute}}]),e}(),l=function(){function e(e,t){t&&(this._schemaAttribute="string"==typeof t?function(e){return e[t]}:t),this.define(e)}var t=e.prototype;return t.define=function(e){this.schema=e},t.getSchemaAttribute=function(e,t,n){return!this.isSingleSchema&&this._schemaAttribute(e,t,n)},t.inferSchema=function(e,t,n){if(this.isSingleSchema)return this.schema;var r=this.getSchemaAttribute(e,t,n);return this.schema[r]},t.normalizeValue=function(e,t,n,r,o,i){var a=this.inferSchema(e,t,n);if(!a)return e;var c=r(e,t,n,a,o,i);return this.isSingleSchema||null==c?c:{id:c,schema:this.getSchemaAttribute(e,t,n)}},t.denormalizeValue=function(e,t){var n=c(e)?e.get("schema"):e.schema;return this.isSingleSchema||n?t((this.isSingleSchema?void 0:c(e)?e.get("id"):e.id)||e,this.isSingleSchema?this.schema:this.schema[n]):e},o(e,[{key:"isSingleSchema",get:function(){return!this._schemaAttribute}}]),e}(),d=function(e){function t(t,n){if(!n)throw new Error('Expected option "schemaAttribute" not found on UnionSchema.');return e.call(this,t,n)||this}a(t,e);var n=t.prototype;return n.normalize=function(e,t,n,r,o,i){return this.normalizeValue(e,t,n,r,o,i)},n.denormalize=function(e,t){return this.denormalizeValue(e,t)},t}(l),f=function(e){function t(){return e.apply(this,arguments)||this}a(t,e);var n=t.prototype;return n.normalize=function(e,t,n,r,o,a){var c=this;return Object.keys(e).reduce((function(t,n,s){var u,l=e[n];return null!=l?i({},t,((u={})[n]=c.normalizeValue(l,e,n,r,o,a),u)):t}),{})},n.denormalize=function(e,t){var n=this;return Object.keys(e).reduce((function(r,o){var a,c=e[o];return i({},r,((a={})[o]=n.denormalizeValue(c,t),a))}),{})},t}(l),p=function(e){if(Array.isArray(e)&&e.length>1)throw new Error("Expected schema definition to be a single schema, but found "+e.length+".");return e[0]},h=function(e){return Array.isArray(e)?e:Object.keys(e).map((function(t){return e[t]}))},b=function(e,t,n,r,o,i,a){return e=p(e),h(t).map((function(t,c){return o(t,n,r,e,i,a)}))},v=function(e){function t(){return e.apply(this,arguments)||this}a(t,e);var n=t.prototype;return n.normalize=function(e,t,n,r,o,i){var a=this;return h(e).map((function(e,c){return a.normalizeValue(e,t,n,r,o,i)})).filter((function(e){return null!=e}))},n.denormalize=function(e,t){var n=this;return e&&e.map?e.map((function(e){return n.denormalizeValue(e,t)})):e},t}(l),m=function(e,t,n,r,o,a,c){var s=i({},t);return Object.keys(e).forEach((function(n){var r=e[n],i="function"==typeof r?r(t):r,u=o(t[n],t,n,i,a,c);null==u?delete s[n]:s[n]=u})),s},g=function(e,t,n){if(c(t))return s(e,t,n);var r=i({},t);return Object.keys(e).forEach((function(t){null!=r[t]&&(r[t]=n(r[t],e[t]))})),r},O=function e(t,n,r,o,i,a){return"object"==typeof t&&t?"object"!=typeof o||o.normalize&&"function"==typeof o.normalize?o.normalize(t,n,r,e,i,a):(Array.isArray(o)?b:m)(o,t,n,r,e,i,a):t},y={Array:v,Entity:u,Object:function(){function e(e){this.define(e)}var t=e.prototype;return t.define=function(e){this.schema=Object.keys(e).reduce((function(t,n){var r,o=e[n];return i({},t,((r={})[n]=o,r))}),this.schema||{})},t.normalize=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m.apply(void 0,[this.schema].concat(t))},t.denormalize=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g.apply(void 0,[this.schema].concat(t))},e}(),Union:d,Values:f},j=function(e,t){if(!e||"object"!=typeof e)throw new Error('Unexpected input given to normalize. Expected type to be "object", found "'+(null===e?"null":typeof e)+'".');var n={},r=function(e){return function(t,n,r,o,i){var a=t.key,c=t.getId(r,o,i);a in e||(e[a]={});var s=e[a][c];e[a][c]=s?t.merge(s,n):n}}(n);return{entities:n,result:O(e,e,null,t,r,{})}}},function(e,t,n){var r=n(390),o=n(70);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t,n){"use strict";n.d(t,"C",(function(){return o})),n.d(t,"v",(function(){return i})),n.d(t,"u",(function(){return a})),n.d(t,"j",(function(){return c})),n.d(t,"g",(function(){return s})),n.d(t,"w",(function(){return u})),n.d(t,"l",(function(){return l})),n.d(t,"K",(function(){return d})),n.d(t,"I",(function(){return f})),n.d(t,"J",(function(){return h})),n.d(t,"H",(function(){return b})),n.d(t,"z",(function(){return v})),n.d(t,"A",(function(){return m})),n.d(t,"f",(function(){return g})),n.d(t,"h",(function(){return O})),n.d(t,"i",(function(){return y})),n.d(t,"E",(function(){return j})),n.d(t,"s",(function(){return E})),n.d(t,"m",(function(){return C})),n.d(t,"p",(function(){return w})),n.d(t,"q",(function(){return T})),n.d(t,"r",(function(){return _})),n.d(t,"o",(function(){return S})),n.d(t,"n",(function(){return A})),n.d(t,"b",(function(){return k})),n.d(t,"c",(function(){return R})),n.d(t,"e",(function(){return I})),n.d(t,"d",(function(){return x})),n.d(t,"M",(function(){return N})),n.d(t,"k",(function(){return D})),n.d(t,"y",(function(){return P})),n.d(t,"G",(function(){return L})),n.d(t,"t",(function(){return M})),n.d(t,"D",(function(){return U})),n.d(t,"L",(function(){return B})),n.d(t,"B",(function(){return z})),n.d(t,"x",(function(){return F})),n.d(t,"a",(function(){return G})),n.d(t,"F",(function(){return V}));var r=n(4),o={"-1":"他",0:"她",1:"他"},i="//www.zhihu.com",a=i,c="//zhuanlan.zhihu.com",s=52,u={weekly:"知乎周刊",roundtable:"圆桌",editor_recommendation:"编辑推荐"},l="www.zhihu.com",d={hang:"hang",lock:"lock",ban:"ban",isForceRenamed:"isForceRenamed",isGuest:"isGuest",destroy:"destroy",suicide:"suicide",notBindPhone:"notBindPhone"},f=Object.keys(d).map((function(e){return d[e]})),p={follow:[d.ban,d.isForceRenamed,d.notBindPhone,d.isGuest],report:[d.ban,d.notBindPhone],share:[d.ban,d.isForceRenamed],editProfile:[d.ban,d.isForceRenamed,d.notBindPhone],thank:[d.notBindPhone],deblock:[d.lock],vote:[d.notBindPhone],favlists:[d.notBindPhone],like:[d.notBindPhone],message:[d.notBindPhone],serviceAccountMessage:[d.notBindPhone,d.ban],deletePin:[d.notBindPhone],invite:[d.notBindPhone],getCoupon:[d.notBindPhone],gift:[d.notBindPhone],blockUser:[d.notBindPhone],buy:[d.notBindPhone],reply_club:[d.notBindPhone]},h=Object.keys(p).reduce((function(e,t){return Object.assign({},e,Object(r.a)({},t,f.filter((function(e){return!p[t].includes(e)}))))}),{}),b={blocking:"因为你已将此人屏蔽,暂时无法进行该操作。您可以进入他的个人主页解除屏蔽。",commentBlocked:"根据对方设置,暂时无法进行评论操作。",blocked:"根据对方设置,暂时无法进行该操作。"},v=2400,m=1e4,g={id:null,urlToken:null,name:"匿名用户",gender:-1,avatarUrl:"https://pic2.zhimg.com/aadd7b895_is.jpg",headline:null,badge:null,isOrg:!1,isFollowing:!1,isFollowed:!1,isBlocking:!1,isBlocked:!1},O={sina:"3063806388",qqconn:"100490701",wechat:"wx268fcfe924dcb171",mobileWechat:"wx21dd00cd1ccac236"},y="bindPhoneLastAlertTime",j=4039,E=100007,C=1e5,w=100010,T=100016,_=100017,S=100018,A=100028,k={add:"annotation",cancel:"annotation_cancel",view:"show_annotation_detail"},R=0,I=1,x=2,N={topic:"Topic",people:"User",column:"Column",collection:"Collection",live:"Live",ebook:"EBook",publication:"EBook",pin:"Pin",article:"Post",answer:"Answer",question:"Question",club:"Club",question_ask:"QuestionAsk",promotion:"Promotion",roundtable:"RoundtableItem",live_course:"LiveCourse",remix_album:"RemixAlbum",search_course:"LiveCourse",search_special:"LiveAlbum",out_link:"ExternalAd",ad:"Ad",album:"RemixAlbum",rewardPeople:"User",zvideo:"Video"},D="真诚赞赏,手留余香",P={abuseip:40350,imfrozen:40351,unhuman:40352},L=10,M="global::enableShortcut",U={alertTimeSpan:3600,canWrite:!1,tip:"应国家法规对于帐号实名的要求,进行下一步操作前,需要先完成手机绑定。"},B={LOW:"low",HIGH:"high",OFF:"off"},z={ON:"on",OFF:"off",NONE:"none"},F={NO_AUTH:-1,ENTER_RECRUIT:0,NO_SETTING:1,PASS:2},G={IMAGE:[".png",".jpeg",".gif",".jpg"],VIDEO:[".3gp",".asf",".avi",".dat",".f4v",".flv",".m4v",".mkv",".mov",".mp4",".mp4v",".mpe",".mpeg",".mpg",".ra",".ram",".rm",".rmvb",".vob",".webm",".wm",".wmv"]},V={answer:["1396303730","1394715943","1309692335","571602599","1405988657","1551858840","528969715","1126833448","1551974986"],question:["329062584","298155229","335633281","344276433","418460881","424224869","423070517"]},H={MAIN_COLUMN_WIDTH:694,SIDE_BAR_WIDTH:288,SIDE_BAR_MIN_WIDTH:84,SIDE_BAR_MARGIN:32,WINDOW_MIN_WIDTH:1e3};H.WINDOW_NARROW_WIDTH=H.SIDE_BAR_MIN_WIDTH+H.SIDE_BAR_MARGIN+H.MAIN_COLUMN_WIDTH+H.SIDE_BAR_MARGIN+H.SIDE_BAR_WIDTH,H.WINDOW_WIDE_WIDTH=H.SIDE_BAR_WIDTH+H.SIDE_BAR_MARGIN+H.MAIN_COLUMN_WIDTH+H.SIDE_BAR_MARGIN+H.SIDE_BAR_WIDTH},function(e,t,n){"use strict";n.d(t,"a",(function(){return Re}));var r=n(26),o=n(21),i=new r.b.Entity("users",{},{idAttribute:function(e){return e.urlToken||e.name}}),a=new r.b.Entity("questions"),c=new r.b.Entity("commercialQuestions"),s=new r.b.Entity("answers"),u=new r.b.Entity("articles"),l=new r.b.Entity("drafts",{},{idAttribute:function(e){return e.question&&"question_".concat(e.question.id)}}),d=new r.b.Entity("comments"),f=new r.b.Entity("comments",{},{idAttribute:function(e){return e.featured?"".concat(e.id,"_featured"):e.id}}),p=new r.b.Array(f);f.define({childComments:p});var h=new r.b.Entity("comments",{},{idAttribute:function(e){return e.target.featured?"".concat(e.target.id,"_featured"):e.target.id},processStrategy:function(e){return e.target}}),b=new r.b.Entity("columns"),v=new r.b.Entity("topics"),m=new r.b.Entity("messages"),g=new r.b.Entity("favlists"),O=new r.b.Entity("collections",{collection:g},{idAttribute:function(e){return e.collection.id}}),y={people:"users",topic:"topics"},j=new r.b.Entity("roundTableUser",{member:i},{idAttribute:function(e){return e.member.urlToken}}),E=new r.b.Entity("roundTableTopic",{topic:v},{idAttribute:function(e){return e.topic.id}}),C=new r.b.Entity("roundtables",{organizers:new r.b.Array(new r.b.Union({users:j,topics:E},(function(e){var t=e.organizerType;return y[t]}))),hosts:new r.b.Array(i),guests:new r.b.Array(new r.b.Object({member:i}))},{idAttribute:function(e){return e.urlToken||e.id}}),w=new r.b.Entity("notifications"),T=new r.b.Entity("ebooks"),_=new r.b.Entity("lives"),S=new r.b.Entity("mutuals"),A=new r.b.Entity("pins",{author:i}),k=new r.b.Entity("pins"),R=new r.b.Entity("positions"),I=new r.b.Entity("promotions"),x=new r.b.Entity("liveCourses"),N=new r.b.Entity("liveSpecials"),D=new r.b.Entity("eventcards"),P=new r.b.Entity("copyrightApplicants",{},{idAttribute:function(e){return"".concat(e.applier.urlToken,".").concat(e.createdAt)}}),L=new r.b.Entity("albums"),M=new r.b.Entity("zvideos",{author:i},{idAttribute:function(e){return"zvideo_answer"===e.type?"zvideo_answer:".concat(e.id,":").concat(e.video.videoId):"zvideo_article"===e.type?"zvideo_article:".concat(e.id,":").concat(e.video.videoId):e.id?e.id:e.zvideoId}}),U=new r.b.Entity("clubs"),B=new r.b.Entity("posts",{club:U}),z=new r.b.Entity("topPosts",{club:U}),F=new r.b.Entity("republishes",{proposer:i,approver:i,destination:b,object:new r.b.Union({answer:s,article:u},(function(e){return e.type}))}),G={collection:"favlist",live_course:"liveCourse",search_course:"liveCourse",search_special:"liveSpecial",publication:"ebook",people:"user",topic_sticky_module:"topicStickyModule"},V=new r.b.Union({question:a,answer:s,article:u,column:b,zvideo:M,topic:v,favlist:g,roundtable:C,live:_,ebook:T,pin:k,postion:R,liveCourse:x,eventcard:D,user:i,post:B,topPost:z,republish:F},(function(e){var t=e.type;return G[t]||t})),H={target:V},q=new r.b.Entity("feeds",H),K=new r.b.Entity("activities",H),W=new r.b.Array(v),Y=new r.b.Entity("actionCards",{card:{topicList:W}}),Q=new r.b.Entity("feedAdverts"),Z=new r.b.Entity("feedGroups",{list:new r.b.Array(q)}),J=new r.b.Union({actionCard:Y,feed:q,feedAdvert:Q,feedGroup:Z},(function(e){var t=e.type;return Object(o.camelize)(t)})),X=new r.b.Object({topic:v}),$=new r.b.Object({column:b}),ee=new r.b.Object({member:i,topicContributions:new r.b.Array(X)}),te=new r.b.Entity("hot_landings",{contentItems:new r.b.Array(new r.b.Object({object:new r.b.Union({question:a,answer:s,article:u},(function(e){var t=e.type;return Object(o.camelize)(t)})),subContents:new r.b.Array(new r.b.Object({object:new r.b.Union({question:a,answer:s,article:u},(function(e){var t=e.type;return Object(o.camelize)(t)}))}))})),relatedItems:new r.b.Array(new r.b.Object({object:new r.b.Union({question:a,answer:s,article:u},(function(e){var t=e.type;return Object(o.camelize)(t)}))})),description:new r.b.Object({object:new r.b.Union({wiki_box:new r.b.Entity("wiki_box")},(function(e){var t=e.type;return e.answerObj?"paidAnswer":G[t]||t}))})},{idAttribute:function(e){return"".concat(e.type,"_").concat(e.campaignType)}}),ne=new r.b.Entity("minor_hot_spots",{contentList:new r.b.Array(new r.b.Union({question:a,answer:s,article:u},(function(e){var t=e.type;return Object(o.camelize)(t)})))}),re=new r.b.Entity("domain_minor_hot",{contentList:new r.b.Array(new r.b.Union({question:a,answer:s,article:u},(function(e){var t=e.type;return Object(o.camelize)(t)})))}),oe=new r.b.Entity("time_box",{contentList:new r.b.Array(new r.b.Union({question:a,answer:s,article:u},(function(e){var t=e.type;return Object(o.camelize)(t)})))}),ie={dataList:{0:{object:new r.b.Union({question:a,answer:s,article:u,zvideo:M,user:i,column:b,topic:v,live:_,ebook:T,liveCourse:x,liveSpecial:N,album:L},(function(e){var t=e.type;return G[t]||t}))}},object:new r.b.Union({question:a,answer:s,article:u,promotion:I,zvideo:M},(function(e){var t=e.type;return G[t]||t}))},ae=new r.b.Entity("searchGeneral",ie),ce=new r.b.Entity("searchGeneralInADay",ie),se=new r.b.Entity("searchGeneralInAWeek",ie),ue=new r.b.Entity("searchGeneralInThreeMonths",ie),le={dataList:{0:{object:new r.b.Union({question:a,answer:s,article:u,zvideo:M,user:i,column:b,topic:v,live:_,ebook:T,liveCourse:x,liveSpecial:N,album:L,pin:A},(function(e){var t=e.type;return G[t]||t}))}},object:new r.b.Union({question:a,answer:s,article:u,zvideo:M,promotion:I,user:i,column:b,topic:v,live:_,ebook:T,liveCourse:x,liveSpecial:N,album:L,pin:A,minor_hot_spot:ne,domain_minor_hot:re,time_box:oe,wiki_box:new r.b.Entity("wiki_box"),major_hot_spot:new r.b.Entity("major_hot_spot"),ncee_2020_activity:new r.b.Entity("ncee_2020_activity"),paidAnswer:{answerObj:s},hot_landing:te,videoanswer:new r.b.Entity("videoanswers")},(function(e){var t=e.type;return e.answerObj?"paidAnswer":G[t]||t}))},de={idAttribute:function(e){return e.id||(e.object?"search_".concat(e.type,"_").concat(e.object.type,"_").concat(e.object.id):"search_".concat(e.type))}},fe=new r.b.Entity("searchAdvancedGeneral",le,de),pe=new r.b.Entity("searchAdvancedGeneralInOneDay",le,de),he=new r.b.Entity("searchAdvancedGeneralInOneWeek",le,de),be=new r.b.Entity("searchAdvancedGeneralInThreeMonths",le,de),ve=new r.b.Entity("searchZvideo",{object:M}),me=new r.b.Entity("searchPeople",{object:i}),ge=new r.b.Entity("searchClub",{object:U}),Oe=new r.b.Entity("searchPost",{object:B}),ye=new r.b.Entity("searchTopic",{object:v}),je=new r.b.Entity("searchColumn",{object:b}),Ee={object:new r.b.Union({liveCourse:x,liveSpecial:N,live:_},(function(e){var t=e.type;return G[t]||t}))},Ce=new r.b.Entity("searchLive",Ee),we=new r.b.Entity("searchAlbum",{object:L}),Te=new r.b.Entity("searchEBook",{object:T}),_e={object:new r.b.Union({liveCourse:x,liveSpecial:N,live:_,album:L,ebook:T},(function(e){var t=e.type;return G[t]||t}))},Se=new r.b.Entity("searchKmGeneral",_e),Ae={target:new r.b.Union({question:a,answer:s,article:u,zvideo:M,topicStickyModule:{data:new r.b.Array({target:V})}},(function(e){var t=e.type;return G[t]||t})),sourceTopic:v},ke=new r.b.Object({member:i}),Re={USER:i,USER_ARRAY:new r.b.Array(i),QUESTION:a,QUESTION_ARRAY:new r.b.Array(a),COMMERCIAL_QUESTION:c,COMMERCIAL_QUESTION_ARRAY:new r.b.Array(c),ANSWER:s,ANSWER_ARRAY:new r.b.Array(s),ARTICLE:u,ARTICLE_ARRAY:new r.b.Array(u),DRAFT:l,PIN:A,PIN_ARRAY:new r.b.Array(A),POSITION:R,POSITION_ARRAY:new r.b.Array(R),COMMENT:d,COMMENT_V2:f,COMMENT_ARRAY:new r.b.Array(d),COMMENT_ARRAY_V2:p,NOTIFICATION_COMMENT_ARRAY:new r.b.Array(h),COLUMN:b,COLUMN_ARRAY:new r.b.Array(b),CLUB:U,CLUB_ARRAY:new r.b.Array(U),POST:B,POST_ARRAY:new r.b.Array(B),TOP_POST_ARRAY:new r.b.Array(z),TOPIC:v,TOPIC_ARRAY:W,FAVLIST:g,FAVLIST_ARRAY:new r.b.Array(g),COLLECTION:O,COLLECTION_ARRAY:new r.b.Array(g),ROUNDTABLE:C,ROUNDTABLE_ARRAY:new r.b.Array(C),NOTIFICATION_ARRAY:new r.b.Array(w),LIVE:_,LIVE_ARRAY:new r.b.Array(_),ACTIVITY_ARRAY:new r.b.Array(K),MESSAGE_ARRAY:new r.b.Array(m),EBOOK_ARRAY:new r.b.Array(T),MUTUAL:S,MUTUAL_ARRAY:new r.b.Array(S),COLUMN_CONTRIBUTION_ARRAY:new r.b.Array($),TOPIC_CONTRIBUTION_ARRAY:new r.b.Array(X),USER_TOPIC_CONTRIBUTION_ARRAY:new r.b.Array(ee),COPYRIGHT_APPLICANTS:P,COPYRIGHT_APPLICANTS_ARRAY:new r.b.Array(P),ZVIDEO:M,TOPSTORY_ARRAY:new r.b.Array(J),SEARCH_GENERAL_ARRAY:new r.b.Array(ae),SEARCH_GENERAL_ADAY_ARRAY:new r.b.Array(ce),SEARCH_GENERAL_AWEEK_ARRAY:new r.b.Array(se),SEARCH_GENERAL_THREEMONTHS_ARRAY:new r.b.Array(ue),SEARCH_ADVANCED_GENERAL_ARRAY:new r.b.Array(fe),SEARCH_ADVANCED_GENERAL_ONE_DAY_ARRAY:new r.b.Array(pe),SEARCH_ADVANCED_GENERAL_ONE_WEEK_ARRAY:new r.b.Array(he),SEARCH_ADVANCED_GENERAL_THREE_MONTHS_ARRAY:new r.b.Array(be),SEARCH_PEOPLE_ARRAY:new r.b.Array(me),SEARCH_ZVIDEO_ARRAY:new r.b.Array(ve),SEARCH_CLUB_ARRAY:new r.b.Array(ge),SEARCH_POST_ARRAY:new r.b.Array(Oe),SEARCH_TOPIC_ARRAY:new r.b.Array(ye),SEARCH_COLUMN_ARRAY:new r.b.Array(je),SEARCH_LIVE_ARRAY:new r.b.Array(Ce),SEARCH_ALBUM_ARRAY:new r.b.Array(we),SEARCH_EBOOK_ARRAY:new r.b.Array(Te),SEARCH_KM_GENERAL_ARRAY:new r.b.Array(Se),TOPIC_FEED_ARRAY:new r.b.Array(Ae),CREATION_ARRAY:new r.b.Array(V),CREATOR_WALL_ARRAY:new r.b.Array(ke),REPUBLISH:F,REPUBLISH_ARRAY:new r.b.Array(F)};t.b=function(e){return function(e){return function(t){if(!t.schema||!t.payload)return e(t);var n=t.schema,o=t.payload,i=t.payload,a=i.paging,c=i.data||o,s=Object(r.a)(c,n);if(a){var u=a.isEnd,l=a.isStart,d=a.next,f=a.previous,p=a.totals;s.isDrained=u,s.next=d,s.previous=f,s.isPrevDrained=l,s.totals=p}return Object.keys(t).forEach((function(e){"schema"!==e&&(s[e]=t[e])})),e(s)}}}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return d}));var r=n(1),o=n(226),i=n.n(o),a=n(122),c=n.n(a);function s(e,t){var n=Object(r.useRef)();Object(r.useEffect)((function(){n.current=e})),Object(r.useEffect)((function(){if(null!==t){var e=setInterval((function(){n.current()}),t);return function(){return clearInterval(e)}}}),[t])}var u=function(e,t){void 0===t&&(t=!0);var n=Object(r.useState)(null),o=n[0],i=n[1];return Object(r.useEffect)((function(){if(t){var n=!1;return e().then((function(e){!n&&e&&i({Component:e.default||e})})),function(){n=!0}}}),[t]),o&&o.Component},l=function(e){void 0===e&&(e={});var t=Object(r.useState)([!1,null]),n=t[0],o=t[1],i=Object(r.useRef)(null),a=Object(r.useRef)(null),c=function(){a.current&&(a.current.disconnect(),a.current=null)};return[Object(r.useCallback)((function(t){(i.current=t,t)?(a.current=new IntersectionObserver((function(t){t.forEach((function(t){var n=t.isIntersecting&&t.intersectionRatio>0;o([n,t]),n&&e.once&&c()}))}),e)).observe(t):(o([!1,null]),c())}),[JSON.stringify(e)]),n[0],n[1]]};function d(e,t){var n=Object(r.useRef)();return Object(r.useEffect)((function(){n.current=e})),Object(r.useEffect)((function(){if(null!==t){var e=setTimeout((function(){n.current()}),t);return function(){return clearTimeout(e)}}}),[t]),null}function f(e){var t=Object(r.useRef)();return Object(r.useEffect)((function(){t.current=e}),[e]),t.current}var p=function(e){return function(t){var n=[].slice.call(arguments,1),o=Object(r.useRef)(t);Object(r.useEffect)((function(){o.current=t}),[t]);var i=Object(r.useRef)();return i.current=Object(r.useMemo)((function(){return e.apply(void 0,[function(){return o.current.apply(o,[].slice.call(arguments))}].concat(n))}),[JSON.stringify(n)]),Object(r.useEffect)((function(){return function(){return i.current.cancel()}}),[]),i.current}},h=(p(i.a),p(c.a)),b=function(e){var t=Object(r.useRef)();return t.current=e,Object(r.useRef)((function(){return t.current.apply(t,[].slice.call(arguments))})).current}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(103);function o(e,t){if(null==e)return{};var n,o,i=Object(r.default)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return r.b})),n.d(t,"c",(function(){return r.c})),n.d(t,"e",(function(){return r.d})),n.d(t,"h",(function(){return r.g})),n.d(t,"g",(function(){return r.f})),n.d(t,"f",(function(){return r.e})),n.d(t,"d",(function(){return i}));var r=n(391),o=n(4),i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.itemsKey,r=void 0===n?"items":n;return e||Object(o.a)({isFetching:!1,isDrained:!1},r,[])}},,function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return p})),n.d(t,"d",(function(){return h}));var r=n(4),o=n(49),i=n(19),a=Object(i.b)("notification",["SHOW","CLEAR"]),c="global",s="comment",u="出错了!请稍后再试。",l={},d=[c,"askQuestion","editQuestion",s],f=Object(o.createSelector)((function(e){return e.notification}),(function(e){return d.reduce((function(t,n){var r=e[n];return!t&&r||r&&r.timestamp>t.timestamp?r:t}),null)}));function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"white",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c;return{type:a.SHOW,NOTIFICATION:{key:n,text:e,theme:t}}}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return{type:a.CLEAR,NOTIFICATION:{key:e}}}function b(e){return e.err?e.err.payload:e.result?e.result.error:null}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,n=e||{},r=n.code,o=n.message;return l[r]||o||t}t.e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,o=t.requestMethod,i=void 0===o?"GET":o,u=t.NOTIFICATION;if(n===a.CLEAR){var l=u.key;return Object.assign({},e,Object(r.a)({},l,null))}if(u&&!0!==u){var d=u.text,f=u.theme,p=u.success,h=u.failure,m=u.key,g=void 0===m?c:m;if(d&&f)return Object.assign({},e,Object(r.a)({},g,{text:d,theme:f,timestamp:Date.now()}));if(p&&n.endsWith("success")){var O="function"==typeof p?p(t.payload):p;return Object.assign({},e,Object(r.a)({},g,Object.assign({text:"string"==typeof O&&O,theme:"white",timestamp:Date.now()},O)))}if(h&&n.endsWith("failure")){var y=b(t),j="function"==typeof h?h(y,t):h;return j?Object.assign({},e,Object(r.a)({},g,Object.assign({text:v(y,j),theme:g===s||"askQuestion"===g||"editQuestion"===g?"red-ghost":"red",timestamp:Date.now()},j))):e}return e}return!1!==u&&n.endsWith("failure")&&"GET"!==i?Object.assign({},e,Object(r.a)({},c,{text:v(b(t)),theme:"red",timestamp:Date.now()})):e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return D})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return x})),n.d(t,"d",(function(){return P})),n.d(t,"e",(function(){return N})),n.d(t,"f",(function(){return O})),n.d(t,"g",(function(){return S})),n.d(t,"h",(function(){return k})),n.d(t,"i",(function(){return w})),n.d(t,"j",(function(){return I}));var r=n(1),o=n.n(r),i=n(118),a=n.n(i),c=n(31),s=(n(42),n(94));function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function d(e){try{e()}catch(e){console.error(e)}}var f={Zhihu:/Zhihu|osee2unifiedRelease|Futureve/,ZhihuHybrid:/ZhihuHybrid/};var p=n.n(s)()((function(){return e=navigator.userAgent,Object.keys(f).reduce((function(t,n){return t[n]=f[n].test(e),t}),{});var e})),h=Object(r.createContext)("unset"),b=Object(r.createContext)(null),v=function(e){var t=e.children,n=l(e,["children"]),i=Object(r.useContext)(b);return o.a.createElement(b.Provider,{value:Object(r.useMemo)((function(){return{value:n,parent:i}}),[JSON.stringify(n),i]),children:t})},m=null,g=function(e){var t=[],n=function(){var n=e();if(t.length)for(var r,o=function(){var e=r,t=e[0],o=e[1];d((function(){return n[t].apply(n,o)}))};r=t.shift();)o()};function r(r){var o=[].slice.call(arguments,1),i=e();i?(n(),d((function(){return i[r].apply(i,o)}))):t.push([r,o])}return r.flush=n,r}((function(){return m})),O=function(e){m=e,g.flush()},y=function(e){return function(e,t){for(var n=[],r=e;r;)n.push(r),r=t(r);return n}(e,(function(e){return null==e?void 0:e.parent})).map((function(e){return e.value})).filter(Boolean)},j=function(e,t,n){var r=t||{},o=r.block,i=l(r,["block"]),c=y(e);return[a()(C(e,o),i),a.a.apply(void 0,[{}].concat(E(c).reverse(),[n]))]},E=function(e){return e.map((function(e){return e.extra}))},C=function(e,t){var n=y(e),r=(t?[t]:[]).concat(function(e){return e.map((function(e){return e.block})).filter(Boolean)}(n)).join("_"),o=function(e){return e.map((function(e){return e.content})).filter((function(e){return null==e?void 0:e.type})).filter((function(e,t,n){return n.findIndex((function(t){return t.type===e.type}))===t}))}(n)||[];return{elementLocation:{block:r?{blockText:r}:void 0,content:o[0],parentContent:o[1]}}},w=function(){var e=Object(r.useContext)(b);return{trackEvent:function(t,n){g.apply(void 0,["trackEvent"].concat(j(e,t,n)))}}},T=function(e,t){return e.split("?")[0]!==t.split("?")[0]},_=function(e,t){return e.split("#")[0]!==t.split("#")[0]},S=function(e){var t=Object(r.useRef)(0),n=Object(r.useRef)();Object(r.useEffect)((function(){var r,o,i=location.href;(t.current+=1,p().Zhihu&&1===t.current)?n.current=i:(n.current&&!T(n.current,i)&&(r=n.current,!_(r,o=i)||T(r,o)||"REPLACE"===(null==e?void 0:e.action))||g("trackPageShow",{url:i}),n.current&&!_(n.current,i)||(n.current=i))}),[e])};function A(e,t){return"function"==typeof e?e(t):e}var k=function(e,t,n){var o,i=Object(r.useContext)(b),a=Object(c.f)({view:e,extra:t}),s=Object(c.d)(u({once:!0},n)),l=s[0],d=s[1],f=s[2],p="unset"===(o=Object(r.useContext)(h))||"show"===o;return Object(r.useEffect)((function(){d&&p&&g.apply(void 0,["trackShow"].concat(j(i,A(a.view,f),A(a.extra,f))))}),[d,p]),l},R=function(){var e=arguments;return function(t){[].slice.call(e).forEach((function(e){"function"==typeof e?e(t):e&&(e.current=t)}))}};var I=function(e){var t=e.shouldTrackShow,n=void 0!==t&&t,o=e.shouldTrackClick,i=void 0!==o&&o,c=e.zaType,s=e.zaEventType,l=e.zaText,d=e.zaAction,f=e.zaBlock,p=e.zaShowOptions,h=e.view,b=e.extra,v=e.ref,m=e.onClick,g=w().trackEvent,O=function(e){var t;return{action:d,eventType:!s&&i?"Click":s,block:f,elementLocation:{type:c,text:"string"==typeof l?l:!0===l&&(null==e||null==(t=e.textContent)?void 0:t.trim())||void 0}}},y=k((function(e){return u({},a()(O(e.target),h),{action:void 0,eventType:void 0})}),b,p),j=i?function(e){g(a()(O(e.currentTarget),h),b),m&&m(e)}:m;return{ref:Object(r.useCallback)(R.apply(void 0,n?[v,y]:[v]),[]),onClick:j}},x=Object(r.forwardRef)((function(e,t){var n=e.as,r=void 0===n?"div":n,i=e.shouldTrackShow,a=e.shouldTrackClick,c=e.zaType,s=e.zaEventType,u=e.zaText,d=e.zaAction,f=e.zaBlock,p=e.zaShowOptions,h=e.view,b=e.extra,v=e.onClick,m=l(e,["as","shouldTrackShow","shouldTrackClick","zaType","zaEventType","zaText","zaAction","zaBlock","zaShowOptions","view","extra","onClick"]);return o.a.createElement(r,Object.assign({},I({shouldTrackShow:i,shouldTrackClick:a,zaType:c,zaEventType:s,zaText:u,zaAction:d,zaBlock:f,zaShowOptions:p,view:h,extra:b,ref:t,onClick:v}),m))})),N=Object(r.forwardRef)((function(e,t){return o.a.createElement(x,Object.assign({shouldTrackShow:!0,ref:t},e))})),D=Object(r.forwardRef)((function(e,t){return o.a.createElement(x,Object.assign({shouldTrackClick:!0,zaEventType:"Click",ref:t},e))})),P=Object(r.forwardRef)((function(e,t){var n=w();return Object(r.useImperativeHandle)(t,(function(){return n})),null}))},function(e,t,n){"use strict";n.d(t,"i",(function(){return a})),n.d(t,"a",(function(){return o.a})),n.d(t,"d",(function(){return o.b})),n.d(t,"e",(function(){return o.c})),n.d(t,"b",(function(){return s.a})),n.d(t,"f",(function(){return s.b})),n.d(t,"h",(function(){return s.d})),n.d(t,"g",(function(){return s.c})),n.d(t,"j",(function(){return s.e}));var r=n(23),o=n(268),i=n(116);var a=Object(r.combineReducers)({columnContributions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.type===o.a.GET_COLUMN_CONTRIBUTIONS.success?t.payload.data.map((function(e){return e.column})):e}}),c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.a.GET.success:return t.payload.urlToken;case i.a.UPDATE_AUTHINFO:return t.token||"";default:return e}},s=n(249);t.c=c},function(e,t,n){"use strict";n.d(t,"g",(function(){return s.b})),n.d(t,"n",(function(){return s.d})),n.d(t,"l",(function(){return s.c})),n.d(t,"m",(function(){return l.k})),n.d(t,"d",(function(){return l.d})),n.d(t,"p",(function(){return l.m})),n.d(t,"f",(function(){return l.f})),n.d(t,"c",(function(){return l.c})),n.d(t,"i",(function(){return l.h})),n.d(t,"j",(function(){return l.i})),n.d(t,"h",(function(){return l.g})),n.d(t,"a",(function(){return l.a})),n.d(t,"o",(function(){return l.l})),n.d(t,"e",(function(){return l.e})),n.d(t,"k",(function(){return l.j}));var r=n(23),o=n(68),i=n.n(o),a=n(409),c=n.n(a),s=n(116),u=Object(r.combineReducers)({ab:c.a,userAgent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===s.a.UPDATE_USERAGENT){var n=t.payload;return Object.assign({},e,i()(n))}return e},appViewConfig:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===s.a.UPDATE_APPVIEW_CONFIG){var n=t.payload,r=n.can_auto_load_image,o=n.font_resize;return Object.assign({},e,{can_auto_load_image:r,font_resize:o||1})}return e},ctx:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===s.a.SET_CTX){var n=t.payload;return n}return e},trafficSource:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(t.type===s.a.SET_TRAFFICSOURCE){var n=t.payload;return n}return e},edition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{beijing:!1,baidu:!1,sogou:!1,baiduBeijing:!1,sogouBeijing:!1,sogouInput:!1},t=arguments.length>1?arguments[1]:void 0;return t.type===s.a.UPDATE_EDITION?Object.assign({},e,t.payload):t.type===s.a.GET_IPINFO.success&&"北京"===t.payload.cityName?Object.assign({},e,{beijing:!0,baiduBeijing:e.baidu,sogouBeijing:e.sogou}):e},theme:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return t.type===s.a.SET_THEME?"dark"===t.payload?"dark":"light":e},enableShortcut:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===s.a.TOGGLE_ENABLE_SHORTCUT?t.payload:e},referer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return t.type===s.a.SET_REFERER?t.payload:e},xUDId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return t.type===s.a.SET_UDID?t.payload:e},mode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ssr",t=arguments.length>1?arguments[1]:void 0;return t.type===s.a.SET_MODE&&t.payload?t.payload:e},conf:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===s.a.UPDATE_CONF?Object.assign({},e,t.payload):e},xTrafficFreeOrigin:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(t.type===s.a.UPDATE_TRAFFIC_FREE){var n=t.payload,r=void 0===n?"":n;return r}return e},ipInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===s.a.GET_IPINFO.success?t.payload:e},logged:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===s.a.UPDATE_LOGGED?t.payload:e},vars:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===s.a.SET_ENV_VARS?Object.assign({},e,t.payload):e}}),l=n(244);t.b=u},function(e,t,n){var r=n(718),o=n(860),i=n(522),a=n(719);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()}},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});var o=r(n(802));t.default=o.default},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){"use strict";(function(e){var r=n(1029),o=n(1036),i=n(218),a=n(1030),c=n(94),s=n.n(c),u=n(118),l=n.n(u),d=n(516);n(506);function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=["base/trackZA"],b=[{VALID_VERSION:{IOS:"4.39",ANDROID:"5.40"},ACTIONS:{"browser/handleBackEvent":"base/handleBackEvent","browser/closeCurrentPage":"base/closeCurrentPage","browser/disableSwipeRefresh":"base/disableSwipeRefresh","browser/enableSwipeRefresh":"base/enableSwipeRefresh","browser/hideNavigationBar":"base/hideNavigationBar","browser/showNavigationBar":"base/showNavigationBar","iOS/setWebViewHeight":"base/setWebViewHeight","iOS/hapticFeedback":"base/hapticFeedback","iOS/loadImage":"base/loadImage","answer/handleAuthRequiredAction":"base/handleAuthRequiredAction","answer/retrieveAuthRequiredAction":"base/retrieveAuthRequiredAction"}}],v={"browser/backFromHybridURL":"base/backFromHybridURL"},m=function(e){var t=String(e);return t.length<2?"0"+t:t},g={Android:/Android/,iOS:/iPhone|iPad|iPod/,Zhihu:/Zhihu|osee2unifiedRelease|Futureve/,ZhihuHybrid:/ZhihuHybrid/},O=function(e){var t=e.split("."),n={major:"0",minor:"0",patch:"0",tail:""};if(t[0]&&t[0].match(/\d+/)){var r=t[0].match(/\d+/);n.major=r[0]}if(t[1]&&t[1].match(/\d+/)){var o=t[1].match(/\d+/);n.minor=o[0]}if(t[2]&&t[2].match(/\d+/)){var i=t[2].match(/\d+/);n.patch=i[0]}var a=t[t.length-1];if(a&&a.match(/(\d+)(\D(.*))/)){var c=a.match(/(\d+)(\D(.*))/);n.tail=c[2]}return n},y=function(e,t){var n,r,o,i,a,c,s=(r=(n=e).iOS,o=n.Android,i=n.ZhihuIOSVersionName,a=void 0===i?"":i,c=n.ZhihuAndroidVersionName,r?{OS:"IOS",version:a}:o?{OS:"ANDROID",version:void 0===c?"":c}:{OS:"",version:""});return-1!==function(e,t){void 0===e&&(e=""),void 0===t&&(t="");var n=O(e),r=O(t);return Number(n.major)-Number(r.major)!=0?Number(n.major)-Number(r.major)>0?1:-1:Number(n.minor)-Number(r.minor)!=0?Number(n.minor)-Number(r.minor)>0?1:-1:Number(n.patch)-Number(r.patch)!=0?Number(n.patch)-Number(r.patch)>0?1:-1:0}(s.version,t[s.OS]||"0")},j=function(e){return e};function E(){return"undefined"!=typeof window}function C(e){switch(e){case"next":return"next";case"complete":return"success";case"error":return"fail"}}function w(e){switch(e){case"next":return"next";case"success":return"complete";case"fail":return"error"}}var T={},_=function(){function e(e){this.observer=e}var t=e.prototype;return t.dispatch=function(e){this.observer.next({type:"dispatch",id:e.callbackID,payload:{action:e.module+"/"+e.action,params:e.params}})},t.callback=function(e){"fail"===e.type&&e.params&&"ERR_CANCEL"===e.params.name?T[e.id]&&(T[e.id](),delete T[e.id]):("success"!==e.type&&"fail"!==e.type||delete T[e.id],this.observer.next({type:"callback",id:e.id,payload:{type:w(e.type),result:e.params}}))},e}(),S=function(){function e(e){this.maxSize=e,this._cache=[]}var t=e.prototype;return t.append=function(e,t){this._cache.length>=this.maxSize&&this._cache.splice(0,this._cache.length-this.maxSize+1),this._cache.push({id:e,payload:t})},t.find=function(e){for(var t=this._cache.length-1;t>=0;t--)if(this._cache[t]&&this._cache[t].id===e)return this._cache[t].payload},e}(),A=new(function(e){var t,n;function c(){var t;return(t=e.call(this)||this).subject=null,t.messages=Object(r.a)(),t.logEnabled=!1,t.payloadCache=new S(20),t}n=e,(t=c).prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n);var s=c.prototype;return s.dispatch=function(e){if(E()){var t=e.payload.action.split("/"),n=t[0],r=t[1],o={callbackID:e.id,module:n,action:r,params:e.payload.params||{}};if(o.params.cancel){var i=o.params,a=i.cancel,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(i,["cancel"]);T[o.callbackID]=a,o.params=c}window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.zhihuNativeApp?window.webkit.messageHandlers.zhihuNativeApp.postMessage(o):window.zhihuNativeApp&&window.zhihuNativeApp.sendToNative&&window.zhihuNativeApp.sendToNative(JSON.stringify(o))}},s.callback=function(e){if(E()){var t={id:e.id,type:C(e.payload.type),params:e.payload.result};window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.zhihuNativeAppCallback?window.webkit.messageHandlers.zhihuNativeAppCallback.postMessage(t):window.zhihuNativeApp&&window.zhihuNativeApp.callback&&window.zhihuNativeApp.callback(JSON.stringify(t))}},s.postMessage=function(e){"dispatch"===e.type?this.dispatch(e):this.callback(e)},s.connect=function(){E()&&window.zhihuWebApp?console.error("Found zhihuHybrid was already connected, it should be singleton.\n Please using `$ yarn-deduplicate yarn.lock` dedupe your dependencies."):(this.subject=new o.a,this.messages=this.subject.asObservable().pipe(Object(a.a)((function(e){if(!e||!e.payload||!e.payload.action)return e;var t=e.payload.action;return l()(e,{payload:{action:N(t,!0)}})}))),E()&&(window.zhihuWebApp=new _(this.subject)))},s.disconnect=function(){E()&&(window.zhihuWebApp=null),this.subject&&(this.subject.complete(),this.subject=null),this.messages=i.a.empty()},s.log=function(e,t){if(this.logEnabled&&"undefined"!=typeof console&&console.log&&"undefined"!=typeof JSON&&JSON.stringify){var n,r,o=(n=Date.now(),(r=new Date(n)).getFullYear()+"-"+m(r.getMonth()+1)+"-"+m(r.getDate())+" "+m(r.getHours())+":"+m(r.getMinutes())+":"+m(r.getSeconds()));if("listen"!==e&&"handle"!==e){if(t){var i=t.type,a=t.id,c=t.payload;if(a&&c){var s=this.payloadCache.find(a);if(this.cachedPayload||this.payloadCache.append(a,c),"incoming"!==e||"dispatch"!==i)if("outgoing"===e&&"callback"===i&&s){var u=s.action,l=s.params;if(h.includes(u))return;var d=c.result;console.log("["+o+"][ZhihuHybrid/Event:Handled]\nName: "+u+"\nParams: "+JSON.stringify(l)+"\nReturns: "+JSON.stringify(d))}else if("outgoing"!==e||"dispatch"!==i)if("incoming"===e&&"callback"===i&&s){var f=s.action,p=s.params;if(h.includes(f))return;var b=c.result;console.log("["+o+"][ZhihuHybrid/Action:Returned]\nName: "+f+"\nParams: "+JSON.stringify(p)+"\nReturns: "+JSON.stringify(b))}else;else{var v=c.action,g=c.params;if(h.includes(v))return;console.log("["+o+"][ZhihuHybrid/Action:Called]\nName: "+v+"\nParams: "+JSON.stringify(g))}else{var O=c.action,y=c.params;if(h.includes(O))return;console.log("["+o+"][ZhihuHybrid/Event:Listened]\nName: "+O+"\nParams: "+JSON.stringify(y))}}}}else{if(h.includes(t))return;console.log("["+o+"][ZhihuHybrid/Event:Bound]\nName: "+t)}}},c}(d.a)),k=new d.b(A);k.connect();var R,I,x=function(){if("undefined"==typeof window)return j;var e=function(e){var t=Object.keys(g).reduce((function(t,n){return t[n]=g[n].test(e),t}),{});if(t.Zhihu){var n=e.match(/osee2unifiedReleaseVersion\/(\S+)/);n&&(t.ZhihuIOSVersionName=n[1]);var r=e.match(/Futureve\/(\S+)/);r&&(t.ZhihuAndroidVersionName=r[1])}return t.origin=e,t}(window.navigator.userAgent);if(!e.ZhihuHybrid)return j;var t=function(e){return b.reduce((function(t,n){var r=n.VALID_VERSION,o=n.ACTIONS;return y(e,r)?t:f({},t,o)}),{})}(e);return function(e){return t[e]||e}}(),N=(R=v,I=function(e){var t={};for(var n in e)t[e[n]]=n;return t}(v),function(e,t){return void 0===t&&(t=!1),t?I[e]||e:R[e]||e}),D=function(e){return k.dispatch.apply(k,[x(e)].concat([].slice.call(arguments,1)))},P=function(e){return k.listen.apply(k,[N(e,!0)].concat([].slice.call(arguments,1)))},L=s()((function(){return new Promise((function(e,t){/ZhihuHybrid/.test(window.navigator.userAgent)&&e(),t(new Error("你必须在知乎 App 内才能执行此操作"))}))})),M=function(e){var t=x(e).split("/"),n=t[0],r=t[1];return L().then((function(){return D("base/supportAction",{module:n,action:r})})).then((function(e){return e.isSupported}),(function(){return!1}))},U=function(e){var t=e.split("/"),n=t[0],r=t[1];return L().then((function(){return D("base/supportEvent",{module:n,event:r})})).then((function(t){var n=t.isSupported,r=N(e);if(e===r||n)return n;var o=r.split("/"),i=o[0],a=o[1];return D("base/supportEvent",{module:i,event:a}).then((function(e){return e.isSupported}))})).catch((function(){return!1}))},B=s()((function(){return new Promise((function(e,t){Promise.all([M("base/checkHadViewAppeared"),U("base/viewDidAppear")]).then((function(n){n.includes(!1)?t():D("base/checkHadViewAppeared").then((function(t){if(t.hadViewAppeared)e();else var n=P("base/viewDidAppear",(function(){n(),e()}))}))}))}))})),z=!1,F={enableLog:function(){A.logEnabled=!0},disableLog:function(){A.logEnabled=!1},dispatch:D,listen:P,handle:function(e){return k.handle.apply(k,[N(e,!0)].concat([].slice.call(arguments,1)))},ready:L,supportsAction:M,supportsEvent:U,onceViewAppeared:B,enableWebViewAutoResize:function(){if("undefined"!=typeof window&&!z){z=!0,t();var e=document.createElement("iframe");e.style.border="none",e.style.position="absolute",e.style.top="0",e.style.bottom="0",e.style.left="0",e.style.width="0",e.style.height="100%",document.body.style.position="relative",document.body.appendChild(e),e.contentWindow.addEventListener("resize",t)}function t(){D("base/setWebViewHeight",{height:document.documentElement.getBoundingClientRect().height})}}};E()&&(window.zhihuHybrid=F),t.a=F}).call(this,n(285))},function(e,t,n){"use strict";n.d(t,"a",(function(){return R}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(30),h=n.n(p),b=n(41),v=n.n(b),m=n(2),g=n.n(m),O=n(1),y=n(6),j=n.n(y),E=n(692),C=n.n(E),w=n(444),T=n(105),_=n(396);n.d(t,"b",(function(){return _.a}));n(615);var S=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var k=function(e){s()(n,e);var t=A(n);function n(){return o()(this,n),t.apply(this,arguments)}return a()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.toggler,r=t.children,o=t.ariaProps,i=t.menuClassName,a=t.menuContainerClassName,c=t.itemClassName,s=t.style,u=t.scrollOutClear,l=v()(t,["toggler","children","ariaProps","menuClassName","menuContainerClassName","itemClassName","style","scrollOutClear"]);return Object(S.c)(T.a,h()({},l,{toggler:n,scrollOutClear:u,targetClassName:a,ref:function(t){e.popover=t}}),Object(S.c)(w.a,{selector:".Menu-item"},Object(S.c)("div",h()({className:j()("Menu",i),style:s,ref:function(t){e.menuEl=t}},o),C()(r).map((function(e){return Object(O.cloneElement)(e,{className:j()(e.props.className,c)})})))))}}]),n}(O.Component);k.propTypes={position:g.a.func,toggler:g.a.element.isRequired,toggleEvent:g.a.string,arrowed:g.a.bool,delay:g.a.number,targetContainerMinHeight:g.a.number,ariaProps:g.a.object,style:g.a.object,scrollOutClear:g.a.bool},k.defaultProps={toggleEvent:"click",arrowed:!0,reversed:!1,delay:0,targetContainerMinHeight:0,topExcludedHeight:60,scrollOutClear:!1};var R=function(){return Object(S.c)("li",{className:"Menu-divider"})};t.c=k},function(e,t,n){"use strict";function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports=n(107)(197)},function(e,t,n){e.exports=n(107)(92)},function(e,t,n){"use strict";n.d(t,"a",(function(){return I}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(2),h=n.n(p),b=n(1),v=n(46),m=n(1031),g=n(6),O=n.n(g),y=n(170),j=n(234),E=n(442),C=n(185),w=n(11),T=n(30),_=n.n(T),S=n(41),A=n.n(S),k=n(3),R=function(e){var t=e.children,n=e.className,r=e.direction,o=A()(e,["children","className","direction"]);return Object(k.c)("div",_()({className:O()("ModalButtonGroup",n,"ModalButtonGroup--".concat(r))},o),t)};R.defaultProps={direction:"vertical"},R.propTypes={children:h.a.node,direction:h.a.oneOf(["vertical","horizontal"])};var I=R;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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var N,D=[],P=function(e){s()(n,e);var t=x(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={transparent:!1},e.handleKeydown=function(t){var n=e.props,r=n.hotKeyClosable,o=n.onClose;t.keyCode===j.a.ESCAPE&&r&&o&&o(t)},e.handleBackdropClick=function(t){var n=e.props,r=n.maskClosable,o=n.onClose;r&&o&&o(t)},e.handleButtonClick=function(t){var n=e.props.onClose;n&&n(t)},e}return a()(n,[{key:"componentDidMount",value:function(){this.props.children&&this.handleShow()}},{key:"componentDidUpdate",value:function(e){var t=e.children,n=this.props.children;!t&&n?this.handleShow():t&&!n&&this.handleHide()}},{key:"componentWillUnmount",value:function(){this.props.children&&this.handleHide()}},{key:"handleShow",value:function(){var e=D[D.length-1];e&&e.setState({transparent:!0}),D.push(this),D.length>0&&(clearTimeout(N),y.hide())}},{key:"handleHide",value:function(){D.pop();var e=D[D.length-1];e&&e.setState({transparent:!1}),D.length<=0&&(N=setTimeout((function(){y.show()}),300))}},{key:"render",value:function(){var e=this.props,t=e.size,n=e.spread,r=e.title,o=e.subtitle,i=e.footer,a=e.closeButton,c=void 0===a?Object(k.c)(w.c,{preset:"plain",className:"Modal-closeButton",onClick:this.handleButtonClick,"aria-label":"关闭"},Object(k.c)(m.a,{className:"Modal-closeIcon"})):a,s=e.buttonGroupOnly,u=e.className,l=e.children,d=e.onScroll,f=e.contentClassName,p=void 0===f?"":f,h=e.backDropClassName,b=void 0===h?"":h,v=this.state.transparent;return Object(k.c)(C.a,{transitionName:"Modal",timeout:300},l&&Object(k.c)(E.a,{onKeyDown:this.handleKeydown},Object(k.c)("div",{className:O()("Modal-wrapper",{"Modal-wrapper--transparent":v})},Object(k.c)("div",{className:O()("Modal-backdrop",b),onClick:this.handleBackdropClick}),Object(k.c)("div",{className:O()("Modal","Modal--".concat(t),u),tabIndex:0},Object(k.c)("div",{className:"Modal-inner",onScroll:d},r&&Object(k.c)("h3",{className:O()("Modal-title",{"Modal-title--simple":!o&&s})},r),o&&Object(k.c)("div",{className:"Modal-subtitle"},o),Object(k.c)("div",{className:O()("Modal-content",{"Modal-content--spread":n||"fullPage"===t&&!r&&!o},p)},l),i&&Object(k.c)("div",{className:"Modal-footer"},i)),c))))}}]),n}(b.Component);P.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},P.defaultProps={size:"default",spread:!1,buttonGroupOnly:!1,hotKeyClosable:!0,maskClosable:!0},P.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(v.render)(Object(b.cloneElement)(e,{children:null}),t),setTimeout((function(){Object(v.unmountComponentAtNode)(t),t.parentNode.removeChild(t)}),300)};Object(v.render)(e.props.onClose?e:Object(b.cloneElement)(e,{onClose:r}),t)};t.b=P},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n(1);var r=n(11),o=n(47),i=n(3),a={alert:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,a=t.text,c=void 0===a?{}:a;return new Promise((function(t){o.b.open((function(a){return Object(i.c)(o.b,{title:n,closeButton:null,maskClosable:!1,hotKeyClosable:!1},e,Object(i.c)(o.a,null,Object(i.c)(r.c,{preset:"primary",color:"blue",onClick:function(){a(),t()}},c.ok||"确定")))}))}))},confirm:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,a=t.text,c=void 0===a?{}:a;return new Promise((function(t,a){o.b.open((function(s){return Object(i.c)(o.b,{title:n,closeButton:null,maskClosable:!1,hotKeyClosable:!1},e,Object(i.c)(o.a,{direction:"horizontal"},Object(i.c)(r.c,{onClick:function(){s(),a()}},c.cancel||"取消"),Object(i.c)(r.c,{preset:"primary",color:"blue",onClick:function(){s(),t()}},c.ok||"确定")))}))}))}}},function(e,t,n){"use strict";function r(e,t){return e===t}function o(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=null,i=null;return function(){return o(t,n,arguments)||(i=e.apply(null,arguments)),n=arguments,i}}function a(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function c(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];var c=0,s=r.pop(),u=a(r),l=e.apply(void 0,[function(){return c++,s.apply(null,arguments)}].concat(n)),d=i((function(){for(var e=[],t=u.length,n=0;n<t;n++)e.push(u[n].apply(null,arguments));return l.apply(null,e)}));return d.resultFunc=s,d.recomputations=function(){return c},d.resetRecomputations=function(){return c=0},d}}t.__esModule=!0,t.defaultMemoize=i,t.createSelectorCreator=c,t.createStructuredSelector=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map((function(t){return e[t]})),(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce((function(e,t,r){return e[n[r]]=t,e}),{})}))};var s=t.createSelector=c(i)},function(e,t,n){e.exports=n(107)(211)},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(44);function o(e){Object(r.a)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}},function(e,t,n){"use strict";var r,o=n(71),i=n(68),a=n.n(i),c=n(47),s=n(662);n.d(t,"a",(function(){return c.a})),t.b=(r=Object(o.isBrowser)()&&a()(window.navigator.userAgent)||{}).Mobile&&!r.Tablet?s.a:c.b},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return y})),n.d(t,"C",(function(){return j})),n.d(t,"B",(function(){return E})),n.d(t,"b",(function(){return C})),n.d(t,"y",(function(){return w})),n.d(t,"z",(function(){return T})),n.d(t,"x",(function(){return _})),n.d(t,"f",(function(){return S})),n.d(t,"t",(function(){return A})),n.d(t,"g",(function(){return k})),n.d(t,"u",(function(){return R})),n.d(t,"p",(function(){return I})),n.d(t,"l",(function(){return x})),n.d(t,"n",(function(){return D})),n.d(t,"m",(function(){return P})),n.d(t,"w",(function(){return L})),n.d(t,"k",(function(){return M})),n.d(t,"A",(function(){return U})),n.d(t,"v",(function(){return B})),n.d(t,"o",(function(){return z})),n.d(t,"r",(function(){return F})),n.d(t,"q",(function(){return G})),n.d(t,"D",(function(){return V})),n.d(t,"d",(function(){return H})),n.d(t,"j",(function(){return q})),n.d(t,"i",(function(){return K})),n.d(t,"h",(function(){return W})),n.d(t,"s",(function(){return Y}));n(17);var r=n(4),o=n(23),i=n(21),a=n(29),c=n(80),s=n.n(c),u=n(244),l=n(33),d=n(153),f=n(63),p=n.n(f),h=n(19),b=Object(h.a)("answer",["UPDATE_VOTE","UPDATE_THANK","UPDATE_COMMENT_PERMISSION","UPDATE_RESHIPMENTSETTINGS","DELETE","RESTORE","GET","GET_SOME","GET_VOTERS","GET_COPYRIGHT_APPLICANTS","GET_FAVLISTS","GET_COMMENT_PERMISSION","COLLAPSE","ADD","UPDATE","STICK","UPDATE_ANSWER_REWARD","GET_VOTE_DOWN_REASON","SELECT_VOTE_DOWN_REASON","GET_CONCERNED_UPVOTERS","GET_SIMPLE_CONCERNED_UPVOTERS","LOAD_MARKET_ANSWER_PAID_CONTENT","LOG_PAID_ANSWER_READ","GET_SETTINGS","SCHEDULED_PUBLISH","VALIDATE_SCHEDULED_PUBLISH","CANCEL_SCHEDULED_PUBLISH","CHECK_IF_CAN_CONVERT_TO_VESSAY"]),v=Object(h.b)("answer",["UPDATE_SETTINGS_DISCLAIMER"]),m=s()({visible_only_to_author:!0,is_visible:!0,paid_info:!0,paid_info_content:!0,admin_closed_comment:!0,reward_info:!0,annotation_action:!0,annotation_detail:!0,collapse_reason:!0,is_normal:!0,is_sticky:!0,collapsed_by:!0,suggest_edit:!0,comment_count:!0,can_comment:!0,content:!0,editable_content:!0,voteup_count:!0,reshipment_settings:!0,comment_permission:!0,created_time:!0,updated_time:!0,review_info:!0,relevant_info:!0,question:!0,excerpt:!0,attachment:!0,relationship:{is_authorized:!0,voting:!0,is_thanked:!0,is_author:!0,is_nothelp:!0,is_recognized:!0,is_labeled:!0},mark_infos:[{url:!0}],author:{badge:[{topics:!0}]},settings:{table_of_content:{enabled:!0}}}),g=s()({"":[{is_normal:!0,is_sticky:!0,collapsed_by:!0,suggest_edit:!0,comment_count:!0,content:!0,editable_content:!0,voteup_count:!0,reshipment_settings:!0,comment_permission:!0,created_time:!0,updated_time:!0,question:!0,excerpt:!0,relationship:{is_authorized:!0,voting:!0,is_thanked:!0,is_author:!0,is_nothelp:!0,is_recognized:!0},mark_infos:[{url:!0}],author:{badge:[{topics:!0}]},settings:{table_of_content:{enabled:!0}}}]}),O={up:1,down:-1,neutral:0};function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"answer";return function(n){return n({meta:{id:e},API:{types:b.CHECK_IF_CAN_CONVERT_TO_VESSAY,endpoint:"vessay/".concat(t,"s/").concat(e,"/status")},UPDATE:{success:function(n){return Object(r.a)({},"".concat(t,"s"),Object(r.a)({},e,Object.assign({},n)))}}})}}function j(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.zVideoId,a=n.cardType;return function(n,c){var s,u,l,d,f,p,h=c().entities,v=h.answers,m=void 0===v?{}:v,g=h.users,y=void 0===g?{}:g,j=h.videoanswers,E="videoanswers"===a?(void 0===j?{}:j)[e]:("koc"===a?null===(s=m[e])||void 0===s?void 0:s.answer:m[e])||{},C=E.author||{},w=C.urlToken,T="videoanswers"===a?"videoanswers":"answers";return p="up"===t?1:1===E.voting?-1:0,n({API:{types:b.UPDATE_VOTE,endpoint:o?"zvideos/".concat(o,"/voters"):"answers/".concat(e,"/voters"),method:"POST",body:Object(i.decamelizeKeys)(o?{voting:t}:{type:t})},UPDATE:{request:(d={},Object(r.a)(d,T,Object(r.a)({},e,{voteupCount:E.voteupCount+p,relationship:Object.assign({},E.relationship,{voting:O[t]})})),Object(r.a)(d,"users",Object(r.a)({},w,{voteupCount:(null!==(u=null===(l=y[w])||void 0===l?void 0:l.voteupCount)&&void 0!==u?u:0)+p})),d),failure:(f={},Object(r.a)(f,T,Object(r.a)({},e,E)),Object(r.a)(f,"users",Object(r.a)({},w,C)),f),success:function(t){return o?{answers:Object(r.a)({},e,{voteupCount:t.voteupCount,relationship:Object.assign({},E.relationship,{voting:t.voting})})}:"koc"===a?{answers:Object(r.a)({},e,{answer:{voteupCount:t.voteupCount,relationship:Object.assign({},E.relationship,{voting:t.voting})}})}:Object(r.a)({},T,Object(r.a)({},e,t))}}})}}function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.zVideoId,i=n.cardType;return function(n,a){var c,s=a().entities,u=s.answers,l=void 0===u?{}:u,d=s.videoanswers,f="videoanswers"===i?"videoanswers":"answers",p="videoanswers"===i?(void 0===d?{}:d)[e]:"koc"===i?null===(c=l[e])||void 0===c?void 0:c.answer:l[e];return n({API:{types:b.UPDATE_THANK,endpoint:o?"zvideos/".concat(o,"/likers"):"answers/".concat(e,"/thankers"),method:t?"POST":"DELETE"},UPDATE:{request:Object(r.a)({},f,Object(r.a)({},e,{relationship:Object.assign({},p.relationship,{isThanked:t}),thanksCount:p.thanksCount+(t?1:-1)})),success:function(t){if(o){var n=t.isLiked,a=t.likedCount;return{answers:Object(r.a)({},e,{relationship:{isThanked:n},thanksCount:a})}}var c=t.isThanked,s=t.thanksCount;return"koc"===i?{answers:Object(r.a)({},e,{answer:{relationship:{isThanked:c},thanksCount:s}})}:Object(r.a)({},f,Object(r.a)({},e,{relationship:{isThanked:c},thanksCount:s}))},failure:Object(r.a)({},f,Object(r.a)({},e,p))}})}}var C=function(e,t){return t?e.answers.settings[t]:null};function w(e,t){return function(n,o){var a=o().entities.answers[e];return n({API:{types:b.UPDATE_RESHIPMENTSETTINGS,endpoint:"answers/".concat(e),method:"PUT",body:Object(i.decamelizeKeys)({reshipmentSettings:t})},UPDATE:{request:{answers:Object(r.a)({},e,{reshipmentSettings:t})},failure:{answers:Object(r.a)({},e,a)}}})}}function T(e,t){return function(n,o){var a=o().entities.answers[e];return n({API:{types:b.UPDATE_ANSWER_REWARD,endpoint:"answers/".concat(e),method:"PUT",query:{include:m},body:Object(i.decamelizeKeys)({rewardSetting:{canReward:Boolean(t),tagline:t}})},UPDATE:{success:function(t){return{answers:Object(r.a)({},e,Object.assign({},t,{rewardInfo:Object.assign({},t.rewardInfo)}))}},failure:{answers:Object(r.a)({},e,a)}}})}}function _(e,t){return function(n,o){var a=o().entities.answers[e];return n({API:{types:b.UPDATE_COMMENT_PERMISSION,endpoint:"answers/".concat(e),method:"PUT",body:Object(i.decamelizeKeys)({commentPermission:t})},UPDATE:{request:{answers:Object(r.a)({},e,{commentPermission:t})},failure:{answers:Object(r.a)({},e,a)}}})}}function S(e){return function(t,n){var o=n(),i=o.currentUser,a=o.entities,c=a.answers,s=a.questions,u=a.users,l=c[e],d=l.question.id,f=s[d],p=u[i];return t({API:{types:b.DELETE,endpoint:"answers/".concat(e),method:"DELETE"},UPDATE:{request:{answers:Object(r.a)({},e,{isDelete:!0}),questions:Object(r.a)({},d,{answerCount:f?f.answerCount-1:0,relationship:{myAnswer:{answerId:e,isDeleted:!0}}}),users:Object(r.a)({},i,{answerCount:p.answerCount-1})},failure:{answers:Object(r.a)({},e,l),questions:Object(r.a)({},d,f),users:Object(r.a)({},i,p)}}})}}function A(e,t){return function(n,o){var i=o(),c=i.currentUser,s=i.entities,u=s.answers,l=s.questions,d=s.users,f=u[t],p=l[e],h=d[c];return n({API:{types:b.RESTORE,endpoint:"/answers/".concat(t,"/actions/restore"),query:{include:m},method:"POST"},schema:a.a.ANSWER,id:e,UPDATE:{request:{answers:Object(r.a)({},t,{isDelete:!1}),questions:Object(r.a)({},e,{answerCount:p?p.answerCount+1:0,relationship:{myAnswer:{answerId:t,isDeleted:!1}}}),users:Object(r.a)({},c,{answerCount:h.answerCount+1})},failure:{answers:Object(r.a)({},t,f),questions:Object(r.a)({},e,p),users:Object(r.a)({},c,h)}}})}}function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"answer";return{API:{types:b.GET_VOTE_DOWN_REASON,endpoint:"negative/against_reason",query:{question_id:t,object_type:n,url_token:e}},UPDATE:{success:function(e){var n=e.data;return{questions:Object(r.a)({},t,{voteDownReason:n})}}}}}function R(e,t){return function(n){return n({API:{types:b.SELECT_VOTE_DOWN_REASON,endpoint:"reports/downvote",method:"POST",body:Object(i.decamelizeKeys)({type:"answer",resourceId:e,reasonId:t})}})}}function I(e){return{API:{types:b.GET_SOME,endpoint:"answers",query:{include:g,tokens:e.join(",")}},schema:a.a.ANSWER_ARRAY}}function x(e){return{id:e,API:{types:b.GET_SIMPLE_CONCERNED_UPVOTERS,endpoint:"answers/".concat(e,"/concerned_upvoters"),query:{limit:5,offset:0}},NOTIFICATION:!1,schema:a.a.USER_ARRAY}}function N(e,t){return function(n,r){var o=(t||r().answers.voters[e]||{}).next;return n({id:e,API:Object.assign({types:b.GET_VOTERS},o?{endpoint:o}:{endpoint:"answers/".concat(e,"/voters"),query:{include:s()({data:[{answer_count:!0,articles_count:!0,follower_count:!0,gender:!0,is_followed:!0,is_following:!0,badge:!0}]}),limit:l.a,offset:0}}),schema:a.a.USER_ARRAY})}}function D(e){return function(t,n){var r=n().answers,o=r.voters,i=void 0===o?{}:o,c=r.concernedUpvoters,u=void 0===c?{}:c,d=i[e]||{},f=u[e]||{};return f.isDrained?t(N(e,d)):t(function(e,t){return function(n,r){var o=(t||r().question.concernedFollowers[e]||{}).next;return n({id:e,API:Object.assign({types:b.GET_CONCERNED_UPVOTERS},o?{endpoint:o}:{endpoint:"answers/".concat(e,"/concerned_upvoters"),query:{include:s()({data:[{answer_count:!0,articles_count:!0,follower_count:!0,gender:!0,is_followed:!0,is_following:!0,badge:!0}]}),limit:l.a,offset:0}}),NOTIFICATION:!1,schema:a.a.USER_ARRAY})}}(e,f)).then((function(n){var r=n.payload,o=r.paging,i=r.data;return o.isEnd||!i.length?t(N(e,d)):n}),(function(){return t(N(e,d))}))}}function P(e){return function(e,t){return{API:{types:b.GET,endpoint:"answers/".concat(e),query:{include:t||m}},schema:a.a.ANSWER}}(e,s()({reshipment_settings:!0,comment_permission:!0}))}function L(e){return function(t,n){var o,i=n(),a=i.currentUser,c=i.entities,s=c.answers[e]||{},u=s.question.questionType,l=c.users[a],d=l.isAdvertiser,f=l.isOrg,p="nobody"!==s.collapsedBy;return t({id:e,answer:s,collapsedBy:o=p?"nobody":d&&"commercial"===u?"advertiser":f?"org":"community",API:{types:b.COLLAPSE,endpoint:"answers/".concat(e,"/actions/collapse"),method:p?"DELETE":"POST"},UPDATE:{request:{answers:Object(r.a)({},e,{collapsedBy:o,isSticky:!1})},failure:{answers:Object(r.a)({},e,{collapsedBy:s.collapsedBy,isSticky:s.isSticky})}}})}}function M(e){return{API:{types:b.GET_COMMENT_PERMISSION,endpoint:"answers/".concat(e),query:{include:s()({can_comment:!0,comment_permission:!0})}},UPDATE:{success:function(t){var n=t.canComment,o=t.commentPermission;return{answers:Object(r.a)({},e,{canComment:n,commentPermission:o})}}}}}function U(e){return function(t,n){var o,i=n().entities,a=(i.answers[e]||{}).isSticky,c=Object.values(i.answers).find((function(e){return e.isSticky})),s={};return o=a?"已取消当前精选回答。":c?"已设置为精选,之前的精选回答将被替换。":"已设置为精选,刷新后回答将置顶",c&&(s[c.id]={isSticky:!1}),t({id:e,API:{types:b.STICK,endpoint:"answers/".concat(e,"/actions/stick"),method:a?"DELETE":"POST"},UPDATE:{request:{answers:Object.assign(Object(r.a)({},e,{isSticky:!a}),s)},failure:{answers:Object(r.a)({},e,{isSticky:a})}},NOTIFICATION:{success:o}})}}function B(e,t){return function(n,o){var c=o().entities,s=c.answers,u=c.drafts,l=s[e];return n({API:{types:b.UPDATE,method:"PUT",endpoint:"answers/".concat(e),query:{include:m},body:Object(i.decamelizeKeys)(t),fetchOptions:{zsAutoSignature:!1}},schema:a.a.ANSWER,UPDATE:{request:{answers:Object(r.a)({},e,t),drafts:Object(r.a)({},"question_".concat(l.question.id),null)},success:function(t){return{answers:Object(r.a)({},e,Object.assign({},t,{rewardInfo:Object.assign({},t.rewardInfo,{rewardMemberCount:l.rewardInfo.rewardMemberCount,rewardTotalMoney:l.rewardInfo.rewardTotalMoney})})),drafts:Object(r.a)({},"question_".concat(l.question.id),null)}},failure:{answers:Object(r.a)({},e,l),drafts:u}}})}}function z(e){return function(t,n){return t({id:e,API:{root:p.a.fetchRoot.api,endpoint:"/kmqa/answers/".concat(e,"/paid_content"),query:{include:s()({goods_card:!0,btn_info:!0,za_info:!0}),li_catalog_card:Object(u.a)(n(),"li_catalog_card")},types:b.LOAD_MARKET_ANSWER_PAID_CONTENT}})}}function F(e){return{API:{types:Object.values(b.LOG_PAID_ANSWER_READ),endpoint:"paid-answers/".concat(e,"/read"),method:"PUT"},NOTIFICATION:!1}}function G(e){return{id:e,API:{types:b.GET_SETTINGS,endpoint:"/answers/".concat(e,"/settings")}}}function V(e,t,n){return{type:v.UPDATE_SETTINGS_DISCLAIMER,id:e,payload:{status:t,type:n}}}function H(e,t){var n,r=t.id,o=null===(n=e.answers)||void 0===n?void 0:n.simpleConcernedUpvoters[r];return o?o.ids.map((function(t){return Object(d.c)(e,{id:t})})):null}function q(e){if(!e||!e.relevantInfo)return!1;var t=e.relevantInfo.relevantType;return["self_commercial","self_community"].includes(t)}function K(e){if(!e||!e.relevantInfo)return!1;var t=e.relevantInfo.relevantType;return["brand_special","brand_best"].includes(t)}function W(e){if(!e||!e.relevantInfo)return!1;var t=e.relevantInfo.relevantType;return["brand_answer","brand_special","brand_best"].includes(t)}function Y(e,t){var n,r;return null===(n=e.answers)||void 0===n||null===(r=n.paidContent)||void 0===r?void 0:r[t]}t.e=Object(o.combineReducers)({voters:Object(l.e)(b.GET_VOTERS),copyrightApplicants:Object(l.e)(b.GET_COPYRIGHT_APPLICANTS),favlists:Object(l.e)(b.GET_FAVLISTS),newAnswer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===b.ADD.success?t.payload:e},concernedUpvoters:Object(l.e)(b.GET_CONCERNED_UPVOTERS),simpleConcernedUpvoters:Object(l.e)(b.GET_SIMPLE_CONCERNED_UPVOTERS),paidContent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===b.LOAD_MARKET_ANSWER_PAID_CONTENT.request){var n=t.id;return Object.assign({},e,Object(r.a)({},n,{isRequesting:!0}))}if(t.type===b.LOAD_MARKET_ANSWER_PAID_CONTENT.success){var o=t.id;return Object.assign({},e,Object(r.a)({},o,{isRequesting:!1,result:t.payload}))}if(t.type===b.LOAD_MARKET_ANSWER_PAID_CONTENT.failure){var i=t.id;return Object.assign({},e,Object(r.a)({},i,{isRequesting:!1,error:!0}))}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===b.GET_SETTINGS.success){var n=t.id,o=t.payload;return Object.assign({},e,Object(r.a)({},n,o))}if(t.type===v.UPDATE_SETTINGS_DISCLAIMER){var i=t.id,a=t.payload,c=a.status,s=a.type;return Object.assign({},e,Object(r.a)({},i,Object.assign({},e[i],{disclaimerInfo:[{type:s,status:c}]})))}return e}})},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,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.findImageSpec=t.loadImage=t.imgUrl=void 0;var o=r(n(424));t.imgUrl=o.default;var i=r(n(879));t.loadImage=i.default;var a=r(n(880));t.findImageSpec=a.default},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"h",(function(){return a})),n.d(t,"g",(function(){return c})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return d}));var r=n(63),o={add:"annotation",cancel:"annotation_cancel",view:"show_annotation_detail"},i=2,a=300,c=178,s=5,u=4,l=[340792848,350203097,350203137,350203161,350203194,350203244,360980862,360980655,360979559,360979454,360979327,360979218,360979086,360978949,360978717,360978426],d="".concat(n.n(r).a.fetchRoot.zhuanlan,"/api/")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cnNiceNumber=t.unitPrefix=t.formatNumber=t.niceNumber=void 0;var r=n(911);Object.defineProperty(t,"niceNumber",{enumerable:!0,get:function(){return r.niceNumber}}),Object.defineProperty(t,"formatNumber",{enumerable:!0,get:function(){return r.formatNumber}}),Object.defineProperty(t,"unitPrefix",{enumerable:!0,get:function(){return r.unitPrefix}}),Object.defineProperty(t,"cnNiceNumber",{enumerable:!0,get:function(){return r.cnNiceNumber}})},function(e,t,n){"use strict";n.d(t,"f",(function(){return r.b})),n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return g})),n.d(t,"c",(function(){return C})),n.d(t,"d",(function(){return w})),n.d(t,"e",(function(){return T}));var r=n(194),o=n(39),i=n.n(o),a=n(1),c=n.n(a),s=n(2),u=n.n(s),l=n(675),d=n.n(l),f=n(357),p=n.n(f),h=n(118),b=n.n(h),v=n(275),m=n.n(v),g=function(e){var t=parseInt(e.slice(1),16),n=t>>16,r=t>>8&255,o=255&t;return{alpha:function(e){return"rgba(".concat(n,", ").concat(r,", ").concat(o,", ").concat(e,")")}}},O=m()(p.a.groups,(function(e){var t=i()(e,1)[0];return p.a.colors[t]})),y=m()(p.a.groups,(function(e){var t=i()(e,2)[1];return p.a.colors[t]})),j=function(e){var t=e.isDarkMode,n=e.ua,o=n.iOS,i=n.Android,s=e.children,u=Object(r.b)(),l=Object(a.useMemo)((function(){return function(e){var t=e.iOS,n=void 0!==t&&t,r=e.Android,o=void 0!==r&&r,i=e.isDarkMode,a=void 0!==i&&i,c=e.baseTheme,s=n?500:o?700:600,u=a?y:O;return b()({},c,d.a,{isDarkMode:a,colors:Object.assign({text:u.GBK02A,background:u.GBK99A,primary:u.GBL01A,muted:u.GBK06A,link:u.GBL07A},u),fonts:{body:"-apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', 'Source Han Sans SC', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', sans-serif",monospace:"Menlo, Monaco, Consolas, 'Andale Mono', 'lucida console', 'Courier New', monospace"},fontWeights:{bold:s,heading:s},shadows:{card:"0 1px 3px ".concat(g(u.GBK02B).alpha(a?.3:.1))},variants:{card:{p:0,borderRadius:2,"&+&":{marginTop:10}},link:{color:"link"}},buttons:{text:{fontWeight:"normal",color:"inherit",bg:"transparent",p:"0",border:"0",lineHeight:"normal"}},breakpoints:["40em","52em","64em"],colorMod:g})}({iOS:o,Android:i,isDarkMode:t,baseTheme:u})}),[o,i,t,u]);return c.a.createElement(r.a,{theme:l,__self:void 0,__source:{fileName:"src/EmotionProvider.js",lineNumber:103}},s)};j.propTypes={isDarkMode:u.a.bool.isRequired,ua:u.a.shape({iOS:u.a.bool.isRequired,Android:u.a.bool.isRequired}).isRequired};var E=j,C=function(e){return{position:"relative","&::before":Object.assign({display:"block",content:"' '",position:"absolute",top:"-50%",right:"-50%",bottom:"-50%",left:"-50%",pointerEvents:"none",transform:"scale(0.5, 0.5)"},e)}},w=function(e){return{display:"-webkit-box",textOverflow:"ellipsis",overflow:"hidden",WebkitBoxOrient:"vertical",WebkitLineClamp:e}},T=function(){return Object(r.b)().isDarkMode?{}:{filter:"brightness(0.95)"}}},function(e,t,n){"use strict";t.decode=t.parse=n(787),t.encode=t.stringify=n(788)},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return E}));var r=n(7),o=n(8),i=n(51),a=n(9),c=n(10),s=n(5),u=n(0),l=n(2),d=n.n(l),f=n(1),p=n(46),h=n(12),b=n(197);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(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),c=0;c<o;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).trackCardShowTimer=null,e.handleIntersectionChange=function(t,n){if(t.isIntersecting&&t.intersectionRatio>0){n.disconnect();var r=e.props,o=r.view,a=void 0===o?{}:o,c=r.extra;e.trackCardShowTimer=setTimeout((function(){h.a.trackCardShow(Object(i.a)(e),a,c)}))}},e}return Object(o.a)(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,i=e.content,a=e.list,c=e.card,s=e.attachedInfoBytes,u=e.attach;if(t){var l=Object(p.findDOMNode)(this);l&&h.a.setModule(l,{module:t,index:n,is_ad:r,module_name:o},function(e,t,n,r,o){return Object.assign({},e&&{card:{content:e}},t&&{card:t},n&&{list:n},r&&{attached_info_bytes:r},o&&{attach:o})}(i,c,a,s,u))}}},{key:"render",value:function(){var e=this.props,t=e.visibleThreshold,n=e.trackCardShow,r=e.children;return n?Object(u.b)(b.a,{threshold:t,onChange:this.handleIntersectionChange,children:r}):r}}]),n}(f.Component);m.propTypes={id:d.a.string,module:d.a.string,moduleName:d.a.string,index:d.a.string,isAd:d.a.bool,content:d.a.object,extra:d.a.object,trackCardShow:d.a.bool,attachedInfoBytes:d.a.string,attach:d.a.object},m.defaultProps={id:null,module:null,index:null,isAd:!1,content:null,extra:null,attachedInfoBytes:null,trackCardShow:!1,visibleThreshold:0,attach:null};var g=m,O=n(91),y=n.n(O);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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){return function(t){var n=function(n){Object(a.a)(c,n);var i=j(c);function c(){return Object(r.a)(this,c),i.apply(this,arguments)}return Object(o.a)(c,[{key:"render",value:function(){var n="function"==typeof e?e(this.props):e;return Object(u.b)(g,Object.assign({},n,{children:Object(u.b)(t,Object.assign({},this.props))}))}}]),c}(f.Component);return y()(n,t)}}},function(e,t,n){"use strict";n.d(t,"g",(function(){return C})),n.d(t,"l",(function(){return R})),n.d(t,"k",(function(){return x})),n.d(t,"o",(function(){return L})),n.d(t,"c",(function(){return U})),n.d(t,"n",(function(){return N})),n.d(t,"i",(function(){return F})),n.d(t,"b",(function(){return z})),n.d(t,"j",(function(){return G})),n.d(t,"f",(function(){return T})),n.d(t,"m",(function(){return A})),n.d(t,"e",(function(){return Y})),n.d(t,"a",(function(){return Q})),n.d(t,"d",(function(){return V})),n.d(t,"h",(function(){return q})),n.d(t,"p",(function(){return M}));var r=n(39),o=n.n(r),i=n(390),a=n.n(i),c=n(55),s=n.n(c),u=n(187),l=n.n(u),d=n(21),f=n(60),p=n.n(f),h=n(128),b=(n(40),n(58),n(68)),v=n.n(b),m=n(42),g=n(251),O=n.n(g);n(67),n(679),n(44);n(215),n(450),n(52);n(417);n(678);var y,j,E=n(213),C=(y={os:"",pc:"",platform:0},function(){if(y.os||"undefined"==typeof window)return y;var e=navigator.userAgent;return/iPhone|iPod|iPad/i.test(e)?(y.os="ios",y.platform=1):/android/i.test(e)?(y.os="android",y.platform=2):(y.os="pc",/Macintosh|OS X 10/i.test(e)?(y.pc="mac",y.platform=3):/Windows/i.test(e)&&(y.pc="windows",y.platform=4)),y}),w=function(){return"undefined"!=typeof window?window.location.href:""},T=function(e){var t=e.os,n=e.pageId,r=e.pageType;return fetch("https://www.zhihu.com/api/v4/brand/plugin/100/track?platform=".concat(t,"&content_type=").concat(r,"&url_token=").concat(n)).then((function(e){if(e.status>=400)throw new Error("Bad response from server");return e.json()})).catch((function(e){console.error(e)}))},_=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(n){return t?e||n:e}},S=function(e,t){var n=t.sessionId,r=void 0===n?"":n,o=t.os,i=void 0===o?"":o,a=t.aPageId,c=void 0===a?"":a,s=t.aToken,u=void 0===s?"":s,l=t.xSuger,d=void 0===l?"{}":l,f=t.cardType,p=t.ua,h=void 0===p?"":p,b=t.appendParams,v=t.et,m=void 0===v?"":v,g=t.callback,y=void 0===g?"":g,j=t.isHybrid,E=void 0===j?"":j,C=t.version,T=void 0===C?"":C,S=t.platform,A=t.isKeepMacro,k=void 0!==A&&A,R=K(w()),I=R.plugcb,x=void 0===I?"":I,N=R.adplug,D=void 0===N?"":N,P=y||x;/[&/?]/.test(P)&&(P=encodeURIComponent(P));var L=W(),M=L.cid,U=void 0===M?"":M,B=L.zoneid,z=void 0===B?"":B,F=e.slice(0,e.indexOf("?")),G="string"==typeof d?JSON.parse(d):d,V=G.IDFA,H=void 0===V?"":V,q=G.IMEI,Y=void 0===q?"":q,Q=G.ANDROID_ID,Z=void 0===Q?"":Q,J=G.OAID,X=void 0===J?"":J;return F.includes("zhihu.com")||(H=H?O()(H):"",Y=Y?O()(Y):"",Z=Z?O()(Z):"",X=X||""),f&&(e="".concat(e,"&ev=").concat(f)),b&&(e="".concat(e,"&").concat(b)),D&&(e="".concat(e,"&").concat(D)),e.replace("__SESSIONID__",r).replace("__REQUESTID__",r).replace("__OS__",i).replace("__ET__",_(m,k)).replace("__PAGEID__",_(c,k)).replace("__ATOKEN__",_(u,k)).replace("__IDFA__",_(H,k)).replace("__IMEI__",_(Y,k)).replace("__ANDROIDID__",_(Z,k)).replace("__OAID__",_(X,k)).replace("__CREATIVEID__",_(U,k)).replace("__UA__",encodeURI(h)).replace("__CALLBACK__",P).replace("__ZONEID__",_(z,k)).replace("__ISHYBRID__",E).replace("__VERSION__",T).replace("__PLATFORM__",S)},A=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 i=e[o].map((function(e){return n(S(e,t))}));return l()({},r,s()({},o,i))}),{}):{}},k=function(e){if(!document.body.contains(e))return!1;var t=e.getBoundingClientRect(),n=document.documentElement;return t.top<(window.innerHeight||n.clientHeight)},R=function(e,t,n){if(k(e))t.call(n);else var r=Object(h.subscribe)("scroll",(function(){k(e)&&(t.call(n),r.unsubscribe())}))},I=function(e){return function(t){if(!document.body.contains(t))return!1;var n=t.getBoundingClientRect();return e(n)}},x=(j=function(e){var t=document.documentElement;return e.top+parseInt(.3*e.height)<(window.innerHeight||t.clientHeight)},function(e,t,n){if(I(j)(e))t.call(n);else var r=Object(h.subscribe)("scroll",(function(){I(j)(e)&&(t.call(n),r.unsubscribe())}))}),N=function(e){try{m.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)}));m.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 D(){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 P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=D(t);return n&&(e.indexOf("?")>-1?e+="&".concat(n):e+="?".concat(n)),e};function L(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;return e=P(e,t),Promise.race([N(e),new Promise((function(e){return setTimeout(e,n)}))])}var M=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]:L;return"pc"!==C().os?function(r,o){return Object(E.b)(t,"function"==typeof e?e(P(r,o)):e).catch((function(e){return n(r,o)}))}:n}((function(e){return{tracks:[e]}}),"ad/sendContentPluginTracks");function U(e,t,n){return(Array.isArray(t)?t:t.replace(/\[/g,".").replace(/\]/g,"").split(".")).reduce((function(e,t){return(e||{})[t]}),e)||n}function B(e){return["[object Array]","[object Object]"].includes(Object.prototype.toString.call(e))}function z(e){if(!B(e))throw new Error("obj 不是一个对象!");var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach((function(n){"object"!==a()(e[n])?t[n]=e[n]:null===e[n]?t[n]="":t[n]=z(e[n])})),t}function F(){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 G(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n="".concat(e).split("."),r=o()(n,2),i=r[0],a=r[1],c=void 0===a?1:a,s=[],u=1;u<=i;u+=1)s.push(1);parseInt(c,10)&&s.push(Number("0.".concat(c)).toFixed(1));for(var l=t-i-1,d=0;d<l;d++){l[d];s.push(0)}return s}var V=function(){return e=H(),t=e.iOS,n=e.Android,r=e.ZhihuIOSVersionName,o=e.ZhihuAndroidVersionName,t?{OS:"IOS",version:r||""}:n?{OS:"ANDROID",version:o||""}:{OS:"",version:""};var e,t,n,r,o};var H=function(){return navigator&&v()(navigator.userAgent)||{}},q=function(){return Boolean(H().ZhihuHybrid)},K=function(e){if("string"!=typeof e||0===e.length)return{};var t=e.substr(e.indexOf("?")+1);return p.a.parse(t)},W=function(){var e=K(w()).plugcb;return e?K(e):{}},Y=function(){return W().cid||""};function Q(e){var t=arguments.length>1&&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("#"),i=o()(r,2),a=i[0],c=i[1],s=/\?/g.test(a)?"&":"?",u="".concat(a).concat(s).concat(n);return c?"".concat(u,"#").concat(c):u}},function(e,t,n){e.exports=n(859)},function(e,t,n){e.exports=n(800)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(79),o=n.n(r),i=n(1),a=n.n(i),c=function(e){var t=e.children,n=e.disabled;return void 0!==n&&n?t:a.a.createElement("span",{style:{display:"inline-flex",alignItems:"center"}},"",t)},s=Object(i.forwardRef)((function(e,t){var n=e.size,r=e.as,i=void 0===r?"svg":r,s=e.text,u=void 0!==s&&s,l=e.center,d=void 0!==l&&l,f=e.fill,p=void 0===f?"currentColor":f,h=o()(e,["size","as","text","center","fill"]);return u&&(n="1.2em"),a.a.createElement(c,{disabled:!d},a.a.createElement(i,Object.assign({ref:t},h,n&&{width:n,height:n},{fill:p})))}))},function(e,t,n){var r=n(288),o=n(469),i=n(822),a=n(290),c=n(263),s=n(826),u=n(476),l=n(472),d=u((function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,(function(t){return t=a(t,e),u||(u=t.length>1),t})),c(e,l(e),n),u&&(n=o(n,7,s));for(var d=t.length;d--;)i(n,t[d]);return n}));e.exports=d},function(e,t,n){"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,"a",(function(){return r}))},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});var o=r(n(829));t.default=o.default},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.isNode=void 0;var r=n(790);Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return r.isNode}}),Object.defineProperty(t,"isBrowser",{enumerable:!0,get:function(){return r.isBrowser}})},function(e,t,n){e.exports=n(107)(28)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toAbsoluteDateTimeString=t.toSmartString=t.toRelativeString=t.toSmartDateTimeString=t.toSimpleDateTimeString=t.toChineseHourClock=t.toDayType=t.toChineseDateString=t.toDay=t.toDateTimeString=t.toDateString=t.parseUnixTimestampToDay=t.parseInputTime=void 0;var r=n(871);Object.defineProperty(t,"parseInputTime",{enumerable:!0,get:function(){return r.parseInputTime}}),Object.defineProperty(t,"parseUnixTimestampToDay",{enumerable:!0,get:function(){return r.parseUnixTimestampToDay}}),Object.defineProperty(t,"toDateString",{enumerable:!0,get:function(){return r.toDateString}}),Object.defineProperty(t,"toDateTimeString",{enumerable:!0,get:function(){return r.toDateTimeString}}),Object.defineProperty(t,"toDay",{enumerable:!0,get:function(){return r.toDay}}),Object.defineProperty(t,"toChineseDateString",{enumerable:!0,get:function(){return r.toChineseDateString}}),Object.defineProperty(t,"toDayType",{enumerable:!0,get:function(){return r.toDayType}}),Object.defineProperty(t,"toChineseHourClock",{enumerable:!0,get:function(){return r.toChineseHourClock}}),Object.defineProperty(t,"toSimpleDateTimeString",{enumerable:!0,get:function(){return r.toSimpleDateTimeString}}),Object.defineProperty(t,"toSmartDateTimeString",{enumerable:!0,get:function(){return r.toSmartDateTimeString}}),Object.defineProperty(t,"toRelativeString",{enumerable:!0,get:function(){return r.toRelativeString}}),Object.defineProperty(t,"toSmartString",{enumerable:!0,get:function(){return r.toSmartString}}),Object.defineProperty(t,"toAbsoluteDateTimeString",{enumerable:!0,get:function(){return r.toAbsoluteDateTimeString}})},function(e,t,n){"use strict";var r=n(32),o=n(0),i=n(2),a=n.n(i),c=n(13),s=n(45),u=n(31),l=n(6),d=n.n(l),f=n(95),p=n(42),h=n(66),b=n.n(h),v=n(38),m=n(246),g=n(7),O=n(8),y=n(9),j=n(10),E=n(5),C=n(1),w=n(83),T=n(12);function _(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(E.a)(e);if(t){var o=Object(E.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(j.a)(this,n)}}var S=function(e){Object(y.a)(n,e);var t=_(n);function n(){return Object(g.a)(this,n),t.apply(this,arguments)}return Object(O.a)(n,[{key:"componentDidMount",value:function(){var e=this.props.zaViewName;Object(w.onViewedOnce)(this.node,(function(){T.a.trackCardShow(null,{id:3613,name:e})}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.theme,r=t.zaViewName,i=t.vipIcon,a=i.nightModeUrl,c=i.url,s="light"===n?c:a;return Object(o.b)("a",{className:"UserLink-vipIcon",href:"https://www.zhihu.com/vip",target:"_blank",rel:"noopener noreferrer",ref:function(t){return e.node=t},"data-za-detail-view-id":3612,"data-za-detail-view-name":r,children:Object(o.b)("img",{src:s,alt:"zhihu vip"})})}}]),n}(C.Component);S.propTypes={vipIcon:a.a.shape({nightModeUrl:a.a.string,url:a.a.string}).isRequired,zaViewName:a.a.string};var A=Object(c.connect)((function(e){return{theme:e.env.theme}}))(S);var k=function(e){var t,i=e.isPinProfile,a=e.onClick,l=e.isPinDaily,h=e.user,g=e.avatar,O=e.avatarProps,y=e.showVipIcon,j=e.vipIconZaViewName,E=e.badgeProps,C=e.noBadge,w=e.noLink,_=e.noHoverCard,S=e.style,k=e.className,R=e.children,I=Object(r.a)(e,["isPinProfile","onClick","isPinDaily","user","avatar","avatarProps","showVipIcon","vipIconZaViewName","badgeProps","noBadge","noLink","noHoverCard","style","className","children"]),x=Object(c.useSelector)((function(e){return Object(v.d)(e,{includeTablet:!0})})),N=h.id,D=h.name,P=h.avatarUrl,L=h.urlToken,M=h.isOrg,U=h.vipInfo,B=h.url,z=h.maskLevel,F=void 0===_?x:_,G=Object(u.c)((function(){return n.e(19).then(n.bind(null,1360))}),!F&&!x);t=g?Object(o.b)(f.a,Object.assign({className:"UserLink-avatar",url:P,alt:D},O)):R||D;var V=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(M?"org":"people","/").concat(L||N),q="zhihu://pin".concat(B,"/moments");return V&&!w&&(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){l&&"A"===t.target.nodeName&&T.a.trackEvent(t.target,{id:2065}),i&&(t.preventDefault(),p.a.dispatch("base/openURL",{url:e})),z&&t.preventDefault(),a&&"function"==typeof a&&a(t)}}(q)},b()(I,["isPinProfile","trackEvent","onClick","dispatch","isPinDaily"]),{children:t})),!F&&G&&(t=Object(o.b)(G,{toggler:t,id:N,urlToken:L,user:h}))),Object(o.c)("span",{style:S,className:d()("UserLink",k),children:[t,V&&!C&&!g&&Object(o.b)(m.c,Object.assign({css:{marginLeft:".3em"},isOrg:M,badge:h.badgeV2||h.badge,linkify:!0,enableTooltip:!0},E)),V&&y&&!g&&U&&U.vipIcon&&Object(o.b)(A,{vipIcon:U.vipIcon,zaViewName:j})]})};k.propTypes={user:a.a.object.isRequired,avatar:a.a.bool,avatarProps:a.a.object,noBadge:a.a.bool,noHoverCard:a.a.bool,showVipIcon:a.a.bool,style:a.a.object,className:a.a.string,children:a.a.node,isPinProfile:a.a.bool,isPinDaily:a.a.bool},k.defaultProps={avatar:!1,noBadge:!1,showVipIcon:!1};t.a=k},function(e,t,n){"use strict";var r=n(7),o=n(8),i=n(9),a=n(10),c=n(5),s=n(0),u=n(1),l=n(91),d=n.n(l),f=n(280);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}t.a=function(e){return function(t){var n=function(n){Object(i.a)(c,n);var a=p(c);function c(){return Object(r.a)(this,c),a.apply(this,arguments)}return Object(o.a)(c,[{key:"render",value:function(){var n=e&&!Object(u.isValidElement)(e)?e:{replacement:e};return Object(s.b)(f.a,Object.assign({},n,{children:Object(s.b)(t,Object.assign({},this.props))}))}}]),c}(u.Component);return d()(n,t)}}},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function c(e){r(a,o,i,c,s,"next",e)}function s(e){r(a,o,i,c,s,"throw",e)}c(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t,n){var r=n(869),o=n(720),i=n(522),a=n(870);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},function(e,t,n){e.exports=n(107)(191)},function(e,t,n){var r=n(41);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},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.default=void 0;var o=n(868);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r(o).default}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return k})),n.d(t,"o",(function(){return I})),n.d(t,"b",(function(){return x})),n.d(t,"n",(function(){return N})),n.d(t,"f",(function(){return D})),n.d(t,"g",(function(){return P})),n.d(t,"j",(function(){return L})),n.d(t,"d",(function(){return M})),n.d(t,"k",(function(){return U})),n.d(t,"m",(function(){return V})),n.d(t,"i",(function(){return H})),n.d(t,"h",(function(){return q})),n.d(t,"l",(function(){return K})),n.d(t,"c",(function(){return W}));var r=n(15),o=n(4),i=n(23),a=(n(0),n(14),n(1053)),c=n(1),s=n.n(c),u=n(20),l=function(e){return s.a.createElement(u.a,e,s.a.createElement("path",{d:"M14.553 20.78c.862-.651 1.39-1.792 1.583-3.421.298-2.511-.656-4.904-2.863-7.179.209 2.291.209 3.73 0 4.314-.41 1.143-1.123 1.983-1.91 2.03-1.35.079-2.305-.512-2.863-1.774-.676 1.25-.782 2.556-.318 3.915.31.906.94 1.684 1.89 2.333C7.144 20.131 5 17.336 5 14.022c0-2.144.898-4.072 2.325-5.4.062 2.072.682 3.598 2.13 4.822-.67-1.112-.734-2.11-.734-3.517 0-3.253 2.067-6.007 4.913-6.927a7.35 7.35 0 0 0 2.157 4.918C17.722 9.214 19 11.463 19 14.022c0 3.073-1.844 5.7-4.447 6.758z",fillRule:"evenodd"}))};l.defaultProps={name:"Fire"};var d=l,f=function(e){return s.a.createElement(u.a,e,s.a.createElement("path",{d:"M3.111 2.667H20.89c.614 0 1.111.497 1.111 1.11v14.091c0 .45-.272.857-.689 1.028l-8.73 3.585c-.462.19-.98.187-1.441-.007L2.679 18.9A1.111 1.111 0 0 1 2 17.876V3.778c0-.614.497-1.111 1.111-1.111zm2.503 10.75v-2.753h.064l2.024 2.753h.977V8.573H7.51v2.725h-.064L5.429 8.573h-.983v4.844h1.168zm7.526-.99h-2.088v-.99h1.964v-.907h-1.964v-.967h2.088v-.99H9.82v4.844h3.32v-.99zm3.992-1.978h.06l.809 2.968h1.155l1.265-4.844h-1.269l-.634 3.212h-.06l-.803-3.212h-.987l-.775 3.212h-.06l-.645-3.212h-1.28l1.266 4.844h1.162l.796-2.968z",fillRule:"evenodd"}))};f.defaultProps={name:"New"};var p=f,h=n(1054),b=n(1051),v=n(1055),m=function(e){return s.a.createElement(u.a,e,s.a.createElement("path",{d:"M5.5 2.5h13a3 3 0 0 1 3 3v13a3 3 0 0 1-3 3h-13a3 3 0 0 1-3-3v-13a3 3 0 0 1 3-3zm6.475 14.95a.925.925 0 1 0 0-1.85.925.925 0 0 0 0 1.85zm2.48-8.165c.011.011.036.04.083.072.19.127.719.313 1.153-.126a.837.837 0 0 0 .055-1.181l-.055-.055-3.264-2.804a.588.588 0 0 0-.868 0L8.368 7.936c-.185.114-.538.676-.04 1.26.498.583 1.195.164 1.32.035l1.5-1.295-.065 6.21c0 .35.39.737.917.737s.877-.387.877-.737l.023-6.21 1.555 1.349z",fillRule:"evenodd"}))};m.defaultProps={name:"Rise"};var g=m,O=(n(73),n(12),n(61),n(110),n(144)),y=[{name:"recommend",queryName:"",icon:a.a,text:"为你推荐",request:{endpoint:"personalized-questions/recommended"}},{name:"hot",queryName:"hot",icon:d,text:"人气问题",request:{endpoint:"personalized-questions/hot"}},{name:"newest",queryName:"new",icon:p,text:"最新问题",request:{endpoint:"/candidate-quesitons",query:{type:"newest",include:O.a}}},{name:"invite",queryName:"invite",icon:h.a,text:"邀请回答",request:{endpoint:"notifications/v3/timeline/entry/invite",query:{invite_with_time_slice:1}}}];b.a,v.a;var j=[{name:"total",text:"所有人",filterBy:"",countKey:"questionTotalCount"},{name:"followees",text:"我关注的人",filterBy:"followees",countKey:"questionFolloweeCount"}],E=n(54),C=n(33),w=(n(17),n(21)),T=n(80),_=n.n(T),S=n(29),A=n(19),k=(n(28),n(35),Object(A.a)("question",["GET","GET_TITLE","ADD","VOTE","DELETE","UPDATE","UPDATE_TOPICS","GET_INVITERS","GET_ALL_INVITERS","DELETE_INVITERS","GET_INVITEES","GET_FOLLOWERS","UPDATE_FOLLOWERS","GET_LATERS_COUNT","GET_LATERS","GET_INVITED_QUESTIONS_COUNT","GET_INVITED_QUESTIONS","IGNORE_INVITED_QUESTION","UPDATE_LATER","UPDATE_ANONYMOUS","CREATE_REDIRECTION","REVOKE_REDIRECTION","GET_BIO","CHOOSE_BIO","GET_SIMILAR_QUESTIONS","GET_RELATED_COMMODITIES","GET_ANSWERS","GET_UPDATED_ANSWERS","GET_COLLAPSED_ANSWERS","GET_HIDDEN_ANSWERS","GET_NOTIFICATION_ANSWER_TOKENS","GET_INVITATION_CANDIDATES","GET_WAITING_QUESTIONS","DELETE_WAITING_QUESTION","DELETE_TOOLS_QUESTION_INVITED","GET_BIOS","UPDATE_INVITATION","UPDATE_LOCK","TOGGLE_QUESTION_EDIT_LOCK","GET_DRAFT","ADD_DRAFT","UPDATE_DRAFT","DELETE_DRAFT","GET_BRAND","GET_BRAND_QUESTION_ADVANCED_STYLE","UPDATE_BRAND_QUESTION_ADVANCED_STYLE","GET_BRAND_QUESTION_RECOMMENDATION","GET_BRAND_QUESTION_PERMISSION","GET_BRAND_QUESTION_OPEN_STATUS","UPDATE_BRAND_QUESTION_OPEN_STATUS","GET_BRAND_QUESTION_RED_PACKET","GET_BRAND_QUESTION_PRIZE","GET_BRAND_QUESTION_ANSWER_SUMMARIES","GET_BRAND_QUESTION_WINNERS","CREATE_BRAND_QUESTION_PRIZE","SET_BRAND_QUESTION_WINNERS","GET_CONCERNED_FOLLOWERS","GET_ANSWER_COUNT","UPDATE_COMMENT_PERMISSION","GET_META_TOPICS","LOAD_RELATED_BLUESTAR_RANKLIST","GET_RELATED_SEARCH","GET_AUTO_INVITATION","OPEN_AUTO_INVITATION","CLOSE_AUTO_INVITATION","LOAD_COMMERCIAL_BANNER","GET_SIMPLE_CONCERNED_FOLLOWERS","UPDATE_VOTE_TOPIC","GET_DISCLAIMERS","GET_QUESTION_SHARE","GET_READING_MEMBERSHIP","GET_BRAND_QUESTION_ANSWER_MARK","PUT_BRAND_QUESTION_ANSWER_MARK","PUT_BRAND_QUESTION_STATUS","GET_BRAND_QUESTION_STATUSINFO"])),R=Object(A.b)("question",["REMOVE_RED_PACKET","SET_LATER_QUESTION_ANIMATE"]);_()({is_visible:!0,related_cards:!0,ad_track_url:!0,review_info:!0,mute_info:!0,detail:!0,editable_detail:!0,comment_count:!0,can_comment:!0,comment_permission:!0,admin_closed_comment:!0,answer_count:!0,collapsed_answer_count:!0,follower_count:!0,visit_count:!0,topics:!0,author:!0,show_author:!0,show_encourage_author:!0,excerpt:!0,thumbnail_info:!0,voteup_count:!0,is_editable:!0,is_normal:!0,status:!0,redirection:!0,question_type:!0,is_labeled:!0,is_muted:!0,created:!0,updated_time:!0,has_publishing_draft:!0,annotation_detail:!0,visible_only_to_author:!0,relationship:{is_author:!0,voting:!0,is_anonymous:!0,is_following:!0,can_edit:!0,can_collapse_answers:!0,can_stick_answers:!0,can_lock:!0,can_vote:!0,my_answer:!0}}),_()({data:[{is_normal:!0,admin_closed_comment:!0,reward_info:!0,is_collapsed:!0,annotation_action:!0,annotation_detail:!0,collapse_reason:!0,is_sticky:!0,collapsed_by:!0,suggest_edit:!0,comment_count:!0,can_comment:!0,content:!0,editable_content:!0,attachment:!0,voteup_count:!0,reshipment_settings:!0,comment_permission:!0,created_time:!0,updated_time:!0,review_info:!0,relevant_info:!0,question:!0,excerpt:!0,relationship:{is_authorized:!0,is_author:!0,voting:!0,is_thanked:!0,is_nothelp:!0,is_recognized:!0},is_labeled:!0,paid_info:!0,paid_info_content:!0,mark_infos:[{url:!0}],author:{follower_count:!0,badge:[{topics:!0}],vip_info:!0},settings:{table_of_content:{enabled:!0}}}]});function I(e,t){return function(n,r){var i=r(),a=i.currentUser,c=i.entities,s=c.users,u=c.questions,l=s[a],d=u[e],f=t?1:-1,p={types:k.UPDATE_FOLLOWERS,endpoint:"questions/".concat(e,"/followers"),method:t?"POST":"DELETE"};return n(d?{meta:{id:e,expect:t},API:p,UPDATE:{request:{users:Object(o.a)({},a,{followingQuestionCount:l.followingQuestionCount+f}),questions:Object(o.a)({},e,{followerCount:d.followerCount+f,relationship:Object.assign({},d.relationship||{},{isFollowing:t})})},failure:{users:Object(o.a)({},a,l),questions:Object(o.a)({},e,d)}}}:{meta:{id:e,expect:t},API:p})}}function x(e,t,n,r,i){return function(a,c){var s="question_".concat(e),u=c().entities.drafts;return a({API:{types:k.ADD_DRAFT,endpoint:"questions/".concat(e,"/draft"),method:"POST",body:Object(w.decamelizeKeys)({content:t,deltaTime:n,draftType:r,attachment:i}),fetchOptions:{zsAutoSignature:!1}},UPDATE:{request:{drafts:Object(o.a)({},s,{editableContent:t,draftType:r,attachment:i,updating:!0,updated:!1,updateFailed:!1})},success:function(e){return{drafts:Object(o.a)({},s,{createdTime:e.createdTime,updatedTime:e.updatedTime,updating:!1,updated:!0,updateFailed:!1})}},failure:{drafts:Object(o.a)({},s,Object.assign({},u[s],{updating:!1,updated:!1,updateFailed:!0}))}}})}}function N(e,t,n,r,i){return function(a,c){var s="question_".concat(e),u=c().entities.drafts;return a({API:{types:k.UPDATE_DRAFT,endpoint:"questions/".concat(e,"/draft"),method:"PUT",body:Object(w.decamelizeKeys)({content:t,deltaTime:n,draftType:r,attachment:i}),fetchOptions:{zsSignature:!1}},UPDATE:{request:{drafts:Object(o.a)({},s,{editableContent:t,draftType:r,attachment:i,updating:!0,updated:!1,updateFailed:!1})},success:function(e){return{drafts:Object(o.a)({},s,{createdTime:e.createdTime,updatedTime:e.updatedTime,updating:!1,updated:!0,updateFailed:!1})}},failure:{drafts:Object(o.a)({},s,Object.assign({},u[s],{updating:!1,updated:!1,updateFailed:!0}))}}})}}function D(e){return function(t,n){var r="question_".concat(e),i=n().entities.drafts;return t({API:{types:k.DELETE_DRAFT,endpoint:"questions/".concat(e,"/draft"),method:"DELETE"},UPDATE:{request:{drafts:Object(o.a)({},r,null)},failure:{drafts:i}}})}}function P(e){return{id:e,API:{types:k.GET_ALL_INVITERS,endpoint:"questions/".concat(e,"/inviters"),query:{with_answered:!0,with_ignored:!0,with_admin:!0}},schema:S.a.USER_ARRAY}}function L(e){return{API:{endpoint:"questions/".concat(e,"/bios"),types:k.GET_BIOS}}}function M(e,t){return function(n,r){var o=r().topic.bios;return n({API:{endpoint:"questions/".concat(e,"/bio"),types:k.CHOOSE_BIO,body:Object(w.decamelizeKeys)({type:t.type,topicId:(t.topic||{}).id}),method:"POST"},id:e,bio:Object.assign({},t,{bio:o[(t.topic||{}).id]})})}}function U(e){return{id:e,API:{types:k.GET_DISCLAIMERS,endpoint:"/questions/".concat(e,"/disclaimers")}}}var B=Object(C.e)(k.GET_NOTIFICATION_ANSWER_TOKENS,{mapActionToKey:function(e){return e.notificationId}});function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isFetching:!1,isDrained:!1,items:[],searchItems:[]},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case k.GET_INVITATION_CANDIDATES.request:return Object.assign({},e,{isFetching:!0});case k.GET_INVITATION_CANDIDATES.success:return Object.assign({},e,Object(o.a)({isFetching:!1,isDrained:!0},t.keyword?"searchItems":"items",t.result));case k.GET_INVITATION_CANDIDATES.failure:return Object.assign({},e,{isFetching:!1});case k.UPDATE_INVITATION.request:case k.UPDATE_INVITATION.failure:var n=e.items,i=e.searchItems,a=n.findIndex((function(e){return e.member===t.urlToken})),c=i.findIndex((function(e){return e.member===t.urlToken}));if(a>=0){var s=n[a];return Object.assign({},e,{items:[].concat(Object(r.a)(n.slice(0,a)),[Object.assign({},s,{isInvited:!s.isInvited})],Object(r.a)(n.slice(a+1)))})}if(c>=0){var u=i[c];return Object.assign({},e,{searchItems:[].concat(Object(r.a)(i.slice(0,c)),[Object.assign({},u,{isInvited:!u.isInvited})],Object(r.a)(i.slice(c+1)))})}return e;default:return e}}function F(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isFetching:!1,isDrained:!1,items:[]},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case k.GET_INVITEES.request:return Object.assign({},e,{isFetching:!0});case k.GET_INVITEES.success:return Object.assign({},e,{isFetching:!1,isDrained:!0,items:t.result});case k.GET_INVITEES.failure:return Object.assign({},e,{isFetching:!1});case k.UPDATE_INVITATION.request:var n=t.urlToken,o=e.items,i=o.indexOf(n),a=Object(r.a)(o);return i<0?Object.assign({},e,{items:[n].concat(Object(r.a)(a))}):(a.splice(i,1),Object.assign({},e,{items:Object(r.a)(a),deleteIndex:i}));case k.UPDATE_INVITATION.failure:var c=t.urlToken,s=e.items,u=s.indexOf(c),l=Object(r.a)(s);return u>=0?(l.splice(c,1),Object.assign({},e,{items:Object(r.a)(l)})):(l.splice(e.deleteIndex,0,c),Object.assign({},e,{items:Object(r.a)(l),deleteIndex:-1}));default:return e}}var G=Object(i.combineReducers)({followers:Object(C.e)(k.GET_FOLLOWERS),concernedFollowers:Object(C.e)(k.GET_CONCERNED_FOLLOWERS),answers:Object(C.e)(k.GET_ANSWERS,{addSuccessType:E.a.ADD.success,addAtTop:!1,additionalCaseTypes:[E.a.RESTORE.success,E.a.COLLAPSE.success],additionalCase:function(e,t){return t.type!==E.a.RESTORE.success||e.ids.includes(t.result)?e:Object.assign({},e,{ids:[].concat(Object(r.a)(e.ids),[t.result])})}}),hiddenAnswers:Object(C.h)(k.GET_HIDDEN_ANSWERS,{addSuccessType:E.a.ADD.success,addAtTop:!1,additionalCaseTypes:[E.a.RESTORE.success,E.a.COLLAPSE.success],additionalCase:function(e,t){return t.type!==E.a.RESTORE.success||e.ids.includes(t.result)?e:Object.assign({},e,{ids:[].concat(Object(r.a)(e.ids),[t.result])})}}),updatedAnswers:Object(C.h)(k.GET_UPDATED_ANSWERS,{addSuccessType:E.a.ADD.success,addAtTop:!1,additionalCaseTypes:[E.a.RESTORE.success],additionalCase:function(e,t){return t.type!==E.a.RESTORE.success||e.ids.includes(t.result)?e:Object.assign({},e,{ids:[].concat(Object(r.a)(e.ids),[t.result])})}}),collapsedAnswers:function(e,t){return Object(C.e)(k.GET_COLLAPSED_ANSWERS)(e,t)},notificationAnswers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.payload,r=t.type;if(Object.values(k.GET_NOTIFICATION_ANSWER_TOKENS).includes(r)){if(r===k.GET_NOTIFICATION_ANSWER_TOKENS.success){var o=n.data,i=n.paging,a=i.isEnd,c=i.next;t.result=o,t.isDrained=a,t.next=c}return B(e,t)}return e},invitedQuestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j.reduce((function(e,t){return Object.assign({},e,Object(o.a)({},t.name,{count:null,isEnd:!1,isLoading:!1,questions:[]}))}),{}),t=arguments.length>1?arguments[1]:void 0;if(t.type===k.GET_INVITED_QUESTIONS_COUNT.success)return j.reduce((function(e,n){return Object.assign({},e,Object(o.a)({},n.name,Object.assign({},e[n.name],{count:t.payload.data[n.countKey]})))}),e);if(t.type===k.GET_INVITED_QUESTIONS.request){var n=t.meta.typeName;return Object.assign({},e,Object(o.a)({},n,Object.assign({},e[n],{isLoading:!0})))}if(t.type===k.GET_INVITED_QUESTIONS.success){var i=t.meta.typeName,a=t.payload,c=a.paging,s=a.data;return Object.assign({},e,Object(o.a)({},i,Object.assign({},e[i],{isEnd:c.isEnd,isLoading:!1,questions:[].concat(Object(r.a)(e[i].questions),Object(r.a)(s))})))}return e},laterQuestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{count:null,globalWriteAnimate:!1,isEnd:!1,isLoading:!1,questions:[]},t=arguments.length>1?arguments[1]:void 0;if(t.type===k.GET_LATERS_COUNT.success)return Object.assign({},e,{count:t.payload.count});if(t.type===R.SET_LATER_QUESTION_ANIMATE)return Object.assign({},e,{globalWriteAnimate:t.payload});if(t.type===k.UPDATE_LATER.success)return Object.assign({},e,{count:e.count+(t.meta.expect?1:-1)});if(t.type===k.GET_LATERS.request)return Object.assign({},e,{isLoading:!0});if(t.type===k.GET_LATERS.success){var n=t.payload,o=n.paging,i=n.data;return Object.assign({},e,{isEnd:o.isEnd,isLoading:!1,questions:[].concat(Object(r.a)(e.questions),Object(r.a)(i))})}return e},waitingQuestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y.reduce((function(e,t){return Object.assign({},e,Object(o.a)({},t.name,{isEnd:!1,isLoading:!1,questions:[]}))}),{}),t=arguments.length>1?arguments[1]:void 0;if(t.type===k.GET_WAITING_QUESTIONS.request){var n=t.meta.type;return Object.assign({},e,Object(o.a)({},n,Object.assign({},e[n],{isLoading:!0})))}if(t.type===k.GET_WAITING_QUESTIONS.success){var i=t.meta.type,a=t.payload,c=a.paging,s=a.data;return Object.assign({},e,Object(o.a)({},i,{paging:c,isEnd:c.isEnd,isLoading:!1,questions:[].concat(Object(r.a)(e[i].questions),Object(r.a)(s))}))}if(t.type===k.UPDATE_FOLLOWERS.success){var u=t.meta,l=u.id,d=u.expect,f=Object.keys(e).reduce((function(e,t){return Object.assign({},e,Object(o.a)({},t,Object.assign({},e[t],{questions:e[t].questions.map((function(e){return e.question.id===l?Object.assign({},e,{question:Object.assign({},e.question,{relationship:Object.assign({},e.question.relationship,{isFollowing:d})})}):e}))})))}),e);return f}return e},invitationCandidates:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return[].concat(Object(r.a)(Object.values(k.GET_INVITATION_CANDIDATES)),Object(r.a)(Object.values(k.UPDATE_INVITATION))).includes(t.type)?Object(o.a)({},t.id,z(e[t.id],t)):e},inviters:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===k.GET_INVITERS.success){var n=t.id,r=t.payload.data;return Object.assign({},e,Object(o.a)({},n,r))}if(t.type===k.GET_ALL_INVITERS.success){var i=t.id,a=t.payload.data;return Object.assign({},e,Object(o.a)({},"".concat(i,"_all"),a))}return e},invitees:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return[].concat(Object(r.a)(Object.values(k.GET_INVITEES)),Object(r.a)(Object.values(k.UPDATE_INVITATION))).includes(t.type)?Object(o.a)({},t.id,F(e[t.id],t)):e},similarQuestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===k.GET_SIMILAR_QUESTIONS.success){var n=t.id,r=t.payload.data;return Object.assign({},e,Object(o.a)({},n,r))}return e},relatedCommodities:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===k.GET_RELATED_COMMODITIES.success){var n=t.id,r=t.payload,i=r.data,a=r.attachedInfo;return i.attachedInfo=a,Object.assign({},e,Object(o.a)({},n,i))}return e},bio:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=e[n]||{};return t.type===k.GET_BIO.success?Object.assign({},e,Object(o.a)({},n,Object.assign({},r,{result:t.payload}))):t.type===k.CHOOSE_BIO.success?Object.assign({},e,Object(o.a)({},n,Object.assign({},r,{result:t.bio}))):e},brand:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===k.GET_BRAND.success?t.payload:e},permission:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===k.GET_BRAND_QUESTION_PERMISSION.success?t.payload:e},adverts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===k.GET_ANSWERS.success&&t.payload.adInfo){var n=t.payload.adInfo,r=n.position,i=n.ad,a=n.adjson;return Object.assign({},e,Object(o.a)({},r,{ad:i,adjson:a}))}return e},advancedStyle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===k.GET_BRAND_QUESTION_ADVANCED_STYLE.success?t.payload:e},commonAnswerCount:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return t.type===k.GET_ANSWER_COUNT.success?t.payload.answerCount:t.type===E.a.COLLAPSE.success?"nobody"===t.answer.collapsedBy?e-1:e+1:e},hiddenAnswerCount:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return t.type===k.GET_ANSWER_COUNT.success?t.payload.hiddenAnswerCount:t.type===E.a.COLLAPSE.success?"org"===t.collapsedBy||"advertiser"===t.collapsedBy?e+1:e-1:e},meta:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===k.UPDATE_VOTE_TOPIC.success){var n=t.questionId,i=t.id,a=t.voteFor,c=t.method,s=e[n],u=s.findIndex((function(e){var t=e.id;return i===t})),l=s[u];if(l){var d=l.vote,f=d.totalVotes,p=d.status,h=l.vote,b=Object(r.a)(s),v=l;return"like"===a?("POST"===c&&(v=Object.assign({},h,{status:"like",totalVotes:"none"===p?f+1:f})),"DELETE"===c&&(v=Object.assign({},h,{totalVotes:f-1,status:"none"}))):"dislike"===a&&("POST"===c&&(v=Object.assign({},h,{status:"dislike",totalVotes:"none"===p?f+1:f})),"DELETE"===c&&(v=Object.assign({},h,{status:"none",totalVotes:f-1}))),b[u]=Object.assign({},l,{vote:v}),Object.assign({},e,Object(o.a)({},n,b))}return e}if(t.type===k.GET_META_TOPICS.success){var m=t.payload.data,g=t.id;return Object.assign({},e,Object(o.a)({},g,m))}return e},bluestarRanklist:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===k.LOAD_RELATED_BLUESTAR_RANKLIST.success){var n=t.payload,r=t.id;return Object.assign({},e,Object(o.a)({},r,n))}return e},relatedSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===k.GET_RELATED_SEARCH.success){var n=t.id,r=t.payload;return Object.assign({},e,Object(o.a)({},n,r))}return e},autoInvitation:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===k.GET_AUTO_INVITATION.success){var n=t.payload,r=void 0===n?{}:n,i=t.id;return Object.assign({},e,Object(o.a)({},i,r))}if(t.type===k.OPEN_AUTO_INVITATION.success){var a=t.id,c=e[a];return Object.assign({},e,Object(o.a)({},a,Object.assign({},c,{status:"open"})))}if(t.type===k.CLOSE_AUTO_INVITATION.success){var s=t.id,u=e[s];return Object.assign({},e,Object(o.a)({},s,Object.assign({},u,{status:"close"})))}return e},simpleConcernedFollowers:Object(C.e)(k.GET_SIMPLE_CONCERNED_FOLLOWERS),draftStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===k.GET_DRAFT.request){var n=t.id;return Object.assign({},e,Object(o.a)({},n,{loading:!0}))}if(t.type===k.GET_DRAFT.success||t.type===k.GET_DRAFT.failure){var r=t.id;return Object.assign({},e,Object(o.a)({},r,{loading:!1}))}return e},disclaimers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===k.GET_DISCLAIMERS.success){var n=t.id,r=t.payload.data;return Object.assign({},e,Object(o.a)({},n,r))}return e}});n(153);function V(e,t){var n=t.id;return(e.entities.questions||{})[n]}function H(e){var t;return"special_mute"===(null==e||null===(t=e.muteInfo)||void 0===t?void 0:t.type)}function q(e){var t;return"freeze"===(null==e||null===(t=e.muteInfo)||void 0===t?void 0:t.type)}function K(e){return e.question?e.question.permission:{}}function W(e,t){return e.question.inviters["".concat(t,"_all")]}t.e=G},function(e,t,n){t.__esModule=!0,t.Helmet=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=d(n(1)),a=d(n(2)),c=d(n(861)),s=d(n(863)),u=n(864),l=n(601);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var b,v,m,g=(0,c.default)(u.reducePropsToState,u.handleClientStateChange,u.mapStateOnServer)((function(){return null})),O=(b=g,m=v=function(e){function t(){return p(this,t),h(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.shouldComponentUpdate=function(e){return!(0,s.default)(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case l.TAG_NAMES.SCRIPT:case l.TAG_NAMES.NOSCRIPT:return{innerHTML:t};case l.TAG_NAMES.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,o=e.arrayTypeChildren,i=e.newChildProps,a=e.nestedChildren;return r({},o,((t={})[n.type]=[].concat(o[n.type]||[],[r({},i,this.mapNestedChildrenToProps(n,a))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,o=e.child,i=e.newProps,a=e.newChildProps,c=e.nestedChildren;switch(o.type){case l.TAG_NAMES.TITLE:return r({},i,((t={})[o.type]=c,t.titleAttributes=r({},a),t));case l.TAG_NAMES.BODY:return r({},i,{bodyAttributes:r({},a)});case l.TAG_NAMES.HTML:return r({},i,{htmlAttributes:r({},a)})}return r({},i,((n={})[o.type]=r({},a),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=r({},t);return Object.keys(e).forEach((function(t){var o;n=r({},n,((o={})[t]=e[t],o))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return i.default.Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=f(o,["children"]),c=(0,u.convertReactPropstoHtmlAttributes)(a);switch(n.warnOnInvalidChildren(e,i),e.type){case l.TAG_NAMES.LINK:case l.TAG_NAMES.META:case l.TAG_NAMES.NOSCRIPT:case l.TAG_NAMES.SCRIPT:case l.TAG_NAMES.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:c,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:c,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=f(e,["children"]),o=r({},n);return t&&(o=this.mapChildrenToProps(t,o)),i.default.createElement(b,o)},o(t,null,[{key:"canUseDOM",set:function(e){b.canUseDOM=e}}]),t}(i.default.Component),v.propTypes={base:a.default.object,bodyAttributes:a.default.object,children:a.default.oneOfType([a.default.arrayOf(a.default.node),a.default.node]),defaultTitle:a.default.string,defer:a.default.bool,encodeSpecialCharacters:a.default.bool,htmlAttributes:a.default.object,link:a.default.arrayOf(a.default.object),meta:a.default.arrayOf(a.default.object),noscript:a.default.arrayOf(a.default.object),onChangeClientState:a.default.func,script:a.default.arrayOf(a.default.object),style:a.default.arrayOf(a.default.object),title:a.default.string,titleAttributes:a.default.object,titleTemplate:a.default.string},v.defaultProps={defer:!0,encodeSpecialCharacters:!0},v.peek=b.peek,v.rewind=function(){var e=b.rewind();return e||(e=(0,u.mapStateOnServer)({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},m);O.renderStatic=O.rewind,t.Helmet=O,t.default=O},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(914);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(915);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,"a",(function(){return b}));var r=n(39),o=n.n(r),i=n(30),a=n.n(i),c=n(41),s=n.n(c),u=n(1),l=n.n(u),d=n(6),f=n.n(d),p=n(211),h=n(3),b=l.a.forwardRef((function(e,t){var n=e.onRef,r=e.className,i=e.targetClassName,c=e.multiline,l=void 0!==c&&c,d=e.grey,b=void 0!==d&&d,v=e.spread,m=void 0!==v&&v,g=e.before,O=e.after,y=e.large,j=void 0!==y&&y,E=e.disabled,C=e.placeholder,w=e.validationError,T=e.tag,_=e.noPadding,S=void 0!==_&&_,A=e.onFocus,k=e.onBlur,R=s()(e,["onRef","className","targetClassName","multiline","grey","spread","before","after","large","disabled","placeholder","validationError","tag","noPadding","onFocus","onBlur"]),I=Object(u.useState)(!1),x=o()(I,2),N=x[0],D=x[1],P=T||(l?"textarea":"input");return Object(h.c)("label",{className:f()(r,"Input-wrapper",{"Input-wrapper--grey":b,"Input-wrapper--spread":m,"Input-wrapper--multiline":l,"Input-wrapper--large":j,"Input-wrapper--disabled":E,"Input-wrapper--noPadding":S,"is-focus":N})},g,Object(h.c)(P,a()({},R,{disabled:E,className:f()("Input",i,{"Input--validationError":Boolean(w)}),placeholder:w||C,ref:Object(u.useCallback)(Object(p.a)(t,n),[]),onFocus:function(e){A&&A(e),D(!0)},onBlur:function(e){k&&k(e),D(!1)}})),O)}))},function(e,t,n){"use strict";function r(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:G(e)}function r(e){return c(e)?e:V(e)}function o(e){return s(e)?e:H(e)}function i(e){return a(e)&&!u(e)?e:q(e)}function a(e){return!(!e||!e[d])}function c(e){return!(!e||!e[f])}function s(e){return!(!e||!e[p])}function u(e){return c(e)||s(e)}function l(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=c,n.isIndexed=s,n.isAssociative=u,n.isOrdered=l,n.Keyed=r,n.Indexed=o,n.Set=i;var d="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",b={},v={value:!1},m={value:!1};function g(e){return e.value=!1,e}function O(e){e&&(e.value=!0)}function y(){}function j(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function E(e){return void 0===e.size&&(e.size=e.__iterate(w)),e.size}function C(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?E(e)+t:t}function w(){return!0}function T(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function _(e,t){return A(e,t,0)}function S(e,t){return A(e,t,t)}function A(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var k,R,I,x="function"==typeof Symbol&&Symbol.iterator,N=x||"@@iterator";function D(e){this.next=e}function P(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 L(){return{value:void 0,done:!0}}function M(e){return!!z(e)}function U(e){return e&&"function"==typeof e.next}function B(e){var t=z(e);return t&&t.call(e)}function z(e){var t=e&&(x&&e[x]||e["@@iterator"]);if("function"==typeof t)return t}function F(e){return e&&"number"==typeof e.length}function G(e){return null==e?J():a(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 V(e){return null==e?J().toKeyedSeq():a(e)?c(e)?e.toSeq():e.fromEntrySeq():X(e)}function H(e){return null==e?J():a(e)?c(e)?e.entrySeq():e.toIndexedSeq():$(e)}function q(e){return(null==e?J():a(e)?c(e)?e.entrySeq():e:$(e)).toSetSeq()}function K(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 Y(e){this._iterable=e,this.size=e.length||e.size}function Q(e){this._iterator=e,this._iteratorCache=[]}function Z(e){return!(!e||!e["@@__IMMUTABLE_SEQ__@@"])}function J(){return k||(k=new K([]))}function X(e){var t=Array.isArray(e)?new K(e).fromEntrySeq():U(e)?new Q(e).fromEntrySeq():M(e)?new Y(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 F(e)?new K(e):U(e)?new Q(e):M(e)?new Y(e):void 0}function te(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var c=o[n?i-a:a];if(!1===t(c[1],r?c[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function ne(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new D((function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:P(t,r?e[0]:a-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)}))):ie(n)?t.call(o,r,V(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():ie(e)?V(e).map(oe).toMap():e}function ie(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ae(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(!a(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)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ae(o[1],e)&&(n||ae(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 i=e;e=t,t=i}var d=!0,f=t.__iterate((function(t,r){if(n?!e.has(t):o?!ae(t,e.get(r,b)):!ae(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(R)return R;R=this}}function ue(e,t){if(!e)throw new Error(t)}function le(e,t,n){if(!(this instanceof le))return new le(e,t,n);if(ue(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),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(I)return I;I=this}}function de(){throw TypeError("Abstract")}function fe(){}function pe(){}function he(){}D.prototype.toString=function(){return"[Iterator]"},D.KEYS=0,D.VALUES=1,D.ENTRIES=2,D.prototype.inspect=D.prototype.toSource=function(){return this.toString()},D.prototype[N]=function(){return this},t(G,n),G.of=function(){return G(arguments)},G.prototype.toSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq {","}")},G.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},G.prototype.__iterate=function(e,t){return te(this,e,t,!0)},G.prototype.__iterator=function(e,t){return ne(this,e,t,!0)},t(V,G),V.prototype.toKeyedSeq=function(){return this},t(H,G),H.of=function(){return H(arguments)},H.prototype.toIndexedSeq=function(){return this},H.prototype.toString=function(){return this.__toString("Seq [","]")},H.prototype.__iterate=function(e,t){return te(this,e,t,!1)},H.prototype.__iterator=function(e,t){return ne(this,e,t,!1)},t(q,G),q.of=function(){return q(arguments)},q.prototype.toSetSeq=function(){return this},G.isSeq=Z,G.Keyed=V,G.Set=q,G.Indexed=H,G.prototype["@@__IMMUTABLE_SEQ__@@"]=!0,t(K,H),K.prototype.get=function(e,t){return this.has(e)?this._array[C(this,e)]:t},K.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},K.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new D((function(){return o>r?{value:void 0,done:!0}:P(e,o,n[t?r-o++:o++])}))},t(W,V),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,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},W.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new D((function(){var a=r[t?o-i:i];return i++>o?{value:void 0,done:!0}:P(e,a,n[a])}))},W.prototype[h]=!0,t(Y,H),Y.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=B(this._iterable),r=0;if(U(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},Y.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=B(this._iterable);if(!U(n))return new D(L);var r=0;return new D((function(){var t=n.next();return t.done?t:P(e,r++,t.value)}))},t(Q,H),Q.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},Q.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new D((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return P(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 ae(this._value,e)},se.prototype.slice=function(e,t){var n=this.size;return T(e,t,n)?this:new se(this._value,S(t,n)-_(e,n))},se.prototype.reverse=function(){return this},se.prototype.indexOf=function(e){return ae(this._value,e)?0:-1},se.prototype.lastIndexOf=function(e){return ae(this._value,e)?this.size:-1},se.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},se.prototype.__iterator=function(e,t){var n=this,r=0;return new D((function(){return r<n.size?P(e,r++,n._value):{value:void 0,done:!0}}))},se.prototype.equals=function(e){return e instanceof se?ae(this._value,e._value):ce(e)},t(le,H),le.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},le.prototype.get=function(e,t){return this.has(e)?this._start+C(this,e)*this._step:t},le.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},le.prototype.slice=function(e,t){return T(e,t,this.size)?this:(e=_(e,this.size),(t=S(t,this.size))<=e?new le(0,0):new le(this.get(e,this._end),this.get(t,this._end),this._step))},le.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},le.prototype.lastIndexOf=function(e){return this.indexOf(e)},le.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},le.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new D((function(){var a=o;return o+=t?-r:r,i>n?{value:void 0,done:!0}:P(e,i++,a)}))},le.prototype.equals=function(e){return e instanceof le?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 ve(e){return e>>>1&1073741824|3221225471&e}function me(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 ve(n)}if("string"===t)return e.length>Te?function(e){var t=Ae[e];return void 0===t&&(t=ge(e),Se===_e&&(Se=0,Ae={}),Se++,Ae[e]=t),t}(e):ge(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Ee&&void 0!==(t=Oe.get(e)))return t;if(void 0!==(t=e[we]))return t;if(!je){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[we]))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),Ee)Oe.set(e,t);else{if(void 0!==ye&&!1===ye(e))throw new Error("Non-extensible objects are not allowed as keys.");if(je)Object.defineProperty(e,we,{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[we]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[we]=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<e.length;n++)t=31*t+e.charCodeAt(n)|0;return ve(t)}var Oe,ye=Object.isExtensible,je=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),Ee="function"==typeof WeakMap;Ee&&(Oe=new WeakMap);var Ce=0,we="__immutablehash__";"function"==typeof Symbol&&(we=Symbol(we));var Te=16,_e=255,Se=0,Ae={};function ke(e){ue(e!==1/0,"Cannot perform this action with an infinite size.")}function Re(e){return null==e?He():Ie(e)&&!l(e)?e:He().withMutations((function(t){var n=r(e);ke(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ie(e){return!(!e||!e[Ne])}t(Re,fe),Re.prototype.toString=function(){return this.__toString("Map {","}")},Re.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Re.prototype.set=function(e,t){return qe(this,e,t)},Re.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},Re.prototype.remove=function(e){return qe(this,e,b)},Re.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},Re.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Re.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,o){var i=t===b,a=n.next();if(a.done){var c=i?r:t,s=o(c);return s===c?t:s}ue(i||t&&t.set,"invalid keyPath");var u=a.value,l=i?b:t.get(u,b),d=e(l,n,r,o);return d===l?t:d===b?t.remove(u):(i?He():t).set(u,d)}(this,Qt(e),t,n);return r===b?void 0:r},Re.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):He()},Re.prototype.merge=function(){return Qe(this,void 0,arguments)},Re.prototype.mergeWith=function(t){var n=e.call(arguments,1);return Qe(this,t,n)},Re.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,He(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Re.prototype.mergeDeep=function(){return Qe(this,Ze,arguments)},Re.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Qe(this,Je(t),n)},Re.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,He(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Re.prototype.sort=function(e){return jt(Ut(this,e))},Re.prototype.sortBy=function(e,t){return jt(Ut(this,t,e))},Re.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Re.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new y)},Re.prototype.asImmutable=function(){return this.__ensureOwner()},Re.prototype.wasAltered=function(){return this.__altered},Re.prototype.__iterator=function(e,t){return new ze(this,e,t)},Re.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Re.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ve(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Re.isMap=Ie;var xe,Ne="@@__IMMUTABLE_MAP__@@",De=Re.prototype;function Pe(e,t){this.ownerID=e,this.entries=t}function Le(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Me(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Ue(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Be(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function ze(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Ge(e._root)}function Fe(e,t){return P(e,t[0],t[1])}function Ge(e,t){return{node:e,index:0,__prev:t}}function Ve(e,t,n,r){var o=Object.create(De);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function He(){return xe||(xe=Ve(0))}function qe(e,t,n){var r,o;if(e._root){var i=g(v),a=g(m);if(r=Ke(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Pe(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Ve(o,r):He()}function Ke(e,t,n,r,o,i,a,c){return e?e.update(t,n,r,o,i,a,c):i===b?e:(O(c),O(a),new Be(t,r,[o,i]))}function We(e){return e.constructor===Be||e.constructor===Ue}function Ye(e,t,n,r,o){if(e.keyHash===r)return new Ue(t,r,[e.entry,o]);var i,a=31&(0===n?e.keyHash:e.keyHash>>>n),c=31&(0===n?r:r>>>n);return new Le(t,1<<a|1<<c,a===c?[Ye(e,t,n+5,r,o)]:(i=new Be(t,r,o),a<c?[e,i]:[i,e]))}function Qe(e,t,n){for(var o=[],i=0;i<n.length;i++){var c=n[i],s=r(c);a(c)||(s=s.map((function(e){return re(e)}))),o.push(s)}return Xe(e,t,o)}function Ze(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ae(e,t)?e:t}function Je(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return ae(t,o)?t:o}}function Xe(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,b,(function(e){return e===b?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function $e(e){return e=(e=(858993459&(e-=e>>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}De[Ne]=!0,De.delete=De.remove,De.removeIn=De.deleteIn,Pe.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ae(n,o[i][0]))return o[i][1];return r},Pe.prototype.update=function(e,t,n,r,o,i,a){for(var c=o===b,s=this.entries,u=0,l=s.length;u<l&&!ae(r,s[u][0]);u++);var d=u<l;if(d?s[u][1]===o:c)return this;if(O(a),(c||!d)&&O(i),!c||1!==s.length){if(!d&&!c&&s.length>=tt)return function(e,t,n,r){e||(e=new y);for(var o=new Be(e,me(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}(e,s,r,o);var f=e&&e===this.ownerID,p=f?s:j(s);return d?c?u===l-1?p.pop():p[u]=p.pop():p[u]=[r,o]:p.push([r,o]),f?(this.entries=p,this):new Pe(e,p)}},Le.prototype.get=function(e,t,n,r){void 0===t&&(t=me(n));var o=1<<(31&(0===e?t:t>>>e)),i=this.bitmap;return 0==(i&o)?r:this.nodes[$e(i&o-1)].get(e+5,t,n,r)},Le.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=me(r));var c=31&(0===t?n:n>>>t),s=1<<c,u=this.bitmap,l=0!=(u&s);if(!l&&o===b)return this;var d=$e(u&s-1),f=this.nodes,p=l?f[d]:void 0,h=Ke(p,e,t+5,n,r,o,i,a);if(h===p)return this;if(!l&&h&&f.length>=nt)return function(e,t,n,r,o){for(var i=0,a=new Array(32),c=0;0!==n;c++,n>>>=1)a[c]=1&n?t[i++]:void 0;return a[r]=o,new Me(e,i+1,a)}(e,f,u,c,h);if(l&&!h&&2===f.length&&We(f[1^d]))return f[1^d];if(l&&h&&1===f.length&&We(h))return h;var v=e&&e===this.ownerID,m=l?h?u:u^s:u|s,g=l?h?et(f,d,h,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}(f,d,v):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,c=0;c<o;c++)c===t?(i[c]=n,a=-1):i[c]=e[c+a];return i}(f,d,h,v);return v?(this.bitmap=m,this.nodes=g,this):new Le(e,m,g)},Me.prototype.get=function(e,t,n,r){void 0===t&&(t=me(n));var o=31&(0===e?t:t>>>e),i=this.nodes[o];return i?i.get(e+5,t,n,r):r},Me.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=me(r));var c=31&(0===t?n:n>>>t),s=o===b,u=this.nodes,l=u[c];if(s&&!l)return this;var d=Ke(l,e,t+5,n,r,o,i,a);if(d===l)return this;var f=this.count;if(l){if(!d&&--f<rt)return function(e,t,n,r){for(var o=0,i=0,a=new Array(n),c=0,s=1,u=t.length;c<u;c++,s<<=1){var l=t[c];void 0!==l&&c!==r&&(o|=s,a[i++]=l)}return new Le(e,o,a)}(e,u,f,c)}else f++;var p=e&&e===this.ownerID,h=et(u,c,d,p);return p?(this.count=f,this.nodes=h,this):new Me(e,f,h)},Ue.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ae(n,o[i][0]))return o[i][1];return r},Ue.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=me(r));var c=o===b;if(n!==this.keyHash)return c?this:(O(a),O(i),Ye(this,e,t,n,[r,o]));for(var s=this.entries,u=0,l=s.length;u<l&&!ae(r,s[u][0]);u++);var d=u<l;if(d?s[u][1]===o:c)return this;if(O(a),(c||!d)&&O(i),c&&2===l)return new Be(e,this.keyHash,s[1^u]);var f=e&&e===this.ownerID,p=f?s:j(s);return d?c?u===l-1?p.pop():p[u]=p.pop():p[u]=[r,o]:p.push([r,o]),f?(this.entries=p,this):new Ue(e,this.keyHash,p)},Be.prototype.get=function(e,t,n,r){return ae(n,this.entry[0])?this.entry[1]:r},Be.prototype.update=function(e,t,n,r,o,i,a){var c=o===b,s=ae(r,this.entry[0]);return(s?o===this.entry[1]:c)?this:(O(a),c?void O(i):s?e&&e===this.ownerID?(this.entry[1]=o,this):new Be(e,this.keyHash,[r,o]):(O(i),Ye(this,e,t,me(r),[r,o])))},Pe.prototype.iterate=Ue.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Le.prototype.iterate=Me.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Be.prototype.iterate=function(e,t){return e(this.entry)},t(ze,D),ze.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return Fe(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return Fe(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return Fe(e,i.entry);t=this._stack=Ge(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var tt=8,nt=16,rt=8;function ot(e){var t=ht();if(null==e)return t;if(it(e))return e;var n=o(e),r=n.size;return 0===r?t:(ke(r),r>0&&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 it(e){return!(!e||!e[at])}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<this.size){var n=mt(this,e+=this._origin);return n&&n.array[31&e]}return t},ot.prototype.set=function(e,t){return function(e,t,n){if((t=C(e,t))!=t)return e;if(t>=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,i=g(m);return t>=yt(e._capacity)?r=bt(r,e.__ownerID,0,t,n,i):o=bt(o,e.__ownerID,e._level,t,n,i),i.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<e.length;r++)n.set(t+r,e[r])}))},ot.prototype.pop=function(){return gt(this,0,-1)},ot.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){gt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},ot.prototype.shift=function(){return gt(this,1)},ot.prototype.merge=function(){return Ot(this,void 0,arguments)},ot.prototype.mergeWith=function(t){var n=e.call(arguments,1);return Ot(this,t,n)},ot.prototype.mergeDeep=function(){return Ot(this,Ze,arguments)},ot.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Ot(this,Je(t),n)},ot.prototype.setSize=function(e){return gt(this,0,e)},ot.prototype.slice=function(e,t){var n=this.size;return T(e,t,n)?this:gt(this,_(e,n),S(t,n))},ot.prototype.__iterator=function(e,t){var n=0,r=ft(this,t);return new D((function(){var t=r();return t===dt?{value:void 0,done:!0}:P(e,n++,t)}))},ot.prototype.__iterate=function(e,t){for(var n,r=0,o=ft(this,t);(n=o())!==dt&&!1!==e(n,r++,this););return r},ot.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?pt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},ot.isList=it;var at="@@__IMMUTABLE_LIST__@@",ct=ot.prototype;function st(e,t){this.array=e,this.ownerID=t}ct[at]=!0,ct.delete=ct.remove,ct.setIn=De.setIn,ct.deleteIn=ct.removeIn=De.removeIn,ct.update=De.update,ct.updateIn=De.updateIn,ct.mergeIn=De.mergeIn,ct.mergeDeepIn=De.mergeDeepIn,ct.withMutations=De.withMutations,ct.asMutable=De.asMutable,ct.asImmutable=De.asImmutable,ct.wasAltered=De.wasAltered,st.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&31;if(r>=this.array.length)return new st([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-5,n))===a&&i)return this}if(i&&!o)return this;var c=vt(this,e);if(!i)for(var s=0;s<r;s++)c.array[s]=void 0;return o&&(c.array[r]=o),c},st.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&31;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-5,n))===i&&o===this.array.length-1)return this}var a=vt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var ut,lt,dt={};function ft(e,t){var n=e._origin,r=e._capacity,o=yt(r),i=e._tail;return a(e._root,e._level,0);function a(e,c,s){return 0===c?function(e,a){var c=a===o?i&&i.array:e&&e.array,s=a>n?0:n-a,u=r-a;return u>32&&(u=32),function(){if(s===u)return dt;var e=t?--u:s++;return c&&c[e]}}(e,s):function(e,o,i){var c,s=e&&e.array,u=i>n?0:n-i>>o,l=1+(r-i>>o);return l>32&&(l=32),function(){for(;;){if(c){var e=c();if(e!==dt)return e;c=null}if(u===l)return dt;var n=t?--l:u++;c=a(s&&s[n],o-5,i+(n<<o))}}}(e,c,s)}}function pt(e,t,n,r,o,i,a){var c=Object.create(ct);return c.size=t-e,c._origin=e,c._capacity=t,c._level=n,c._root=r,c._tail=o,c.__ownerID=i,c.__hash=a,c.__altered=!1,c}function ht(){return ut||(ut=pt(0,0,5))}function bt(e,t,n,r,o,i){var a,c=r>>>n&31,s=e&&c<e.array.length;if(!s&&void 0===o)return e;if(n>0){var u=e&&e.array[c],l=bt(u,t,n-5,r,o,i);return l===u?e:((a=vt(e,t)).array[c]=l,a)}return s&&e.array[c]===o?e:(O(i),a=vt(e,t),void 0===o&&c===a.array.length-1?a.array.pop():a.array[c]=o,a)}function vt(e,t){return t&&e&&t===e.ownerID?e:new st(e?e.array.slice():[],t)}function mt(e,t){if(t>=yt(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>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 y,o=e._origin,i=e._capacity,a=o+t,c=void 0===n?i:n<0?i+n:o+n;if(a===o&&c===i)return e;if(a>=c)return e.clear();for(var s=e._level,u=e._root,l=0;a+l<0;)u=new st(u&&u.array.length?[void 0,u]:[],r),l+=1<<(s+=5);l&&(a+=l,o+=l,c+=l,i+=l);for(var d=yt(i),f=yt(c);f>=1<<s+5;)u=new st(u&&u.array.length?[u]:[],r),s+=5;var p=e._tail,h=f<d?mt(e,c-1):f>d?new st([],r):p;if(p&&f>d&&a<i&&p.array.length){for(var b=u=vt(u,r),v=s;v>5;v-=5){var m=d>>>v&31;b=b.array[m]=vt(b.array[m],r)}b.array[d>>>5&31]=p}if(c<i&&(h=h&&h.removeAfter(r,0,c)),a>=f)a-=f,c-=f,s=5,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||f<d){for(l=0;u;){var g=a>>>s&31;if(g!==f>>>s&31)break;g&&(l+=(1<<s)*g),s-=5,u=u.array[g]}u&&a>o&&(u=u.removeBefore(r,s,a-l)),u&&f<d&&(u=u.removeAfter(r,s,f-l)),l&&(a-=l,c-=l)}return e.__ownerID?(e.size=c-a,e._origin=a,e._capacity=c,e._level=s,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):pt(a,c,s,u,h)}function Ot(e,t,n){for(var r=[],i=0,c=0;c<n.length;c++){var s=n[c],u=o(s);u.size>i&&(i=u.size),a(s)||(u=u.map((function(e){return re(e)}))),r.push(u)}return i>e.size&&(e=e.setSize(i)),Xe(e,t,r)}function yt(e){return e<32?0:e-1>>>5<<5}function jt(e){return null==e?wt():Et(e)?e:wt().withMutations((function(t){var n=r(e);ke(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Et(e){return Ie(e)&&l(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 wt(){return lt||(lt=Ct(He(),ht()))}function Tt(e,t,n){var r,o,i=e._map,a=e._list,c=i.get(t),s=void 0!==c;if(n===b){if(!s)return e;a.size>=32&&a.size>=2*i.size?(r=(o=a.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=i.remove(t),o=c===a.size-1?a.pop():a.set(c,void 0))}else if(s){if(n===a.get(c)[1])return e;r=i,o=a.set(c,[t,n])}else r=i.set(t,a.size),o=a.set(a.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 _t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function St(e){this._iter=e,this.size=e.size}function At(e){this._iter=e,this.size=e.size}function kt(e){this._iter=e,this.size=e.size}function Rt(e){var t=Kt(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 D((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 It(e,t,n){var r=Kt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(2,o);return new D((function(){var o=i.next();if(o.done)return o;var a=o.value,c=a[0];return P(r,c,t.call(n,a[1],c,e),o)}))},r}function xt(e,t){var n=Kt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Rt(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 Nt(e,t,n,r){var o=Kt(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 i=e.get(r,b);return i!==b&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,c=0;return e.__iterate((function(e,i,s){if(t.call(n,e,i,s))return c++,o(e,r?i:c-1,a)}),i),c},o.__iteratorUncached=function(o,i){var a=e.__iterator(2,i),c=0;return new D((function(){for(;;){var i=a.next();if(i.done)return i;var s=i.value,u=s[0],l=s[1];if(t.call(n,l,u,e))return P(o,r?u:c++,l,i)}}))},o}function Dt(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),T(t,n,o))return e;var i=_(t,o),a=S(n,o);if(i!=i||a!=a)return Dt(e.toSeq().cacheResult(),t,n,r);var c,s=a-i;s==s&&(c=s<0?0:s);var u=Kt(e);return u.size=0===c?c:e.size&&c||void 0,!r&&Z(e)&&c>=0&&(u.get=function(t,n){return(t=C(this,t))>=0&&t<c?e.get(t+i,n):n}),u.__iterateUncached=function(t,n){var o=this;if(0===c)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,s=!0,u=0;return e.__iterate((function(e,n){if(!s||!(s=a++<i))return u++,!1!==t(e,r?n:u-1,o)&&u!==c})),u},u.__iteratorUncached=function(t,n){if(0!==c&&n)return this.cacheResult().__iterator(t,n);var o=0!==c&&e.__iterator(t,n),a=0,s=0;return new D((function(){for(;a++<i;)o.next();if(++s>c)return{value:void 0,done:!0};var e=o.next();return r||1===t?e:P(t,s-1,0===t?void 0:e.value[1],e)}))},u}function Pt(e,t,n,r){var o=Kt(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var c=!0,s=0;return e.__iterate((function(e,i,u){if(!c||!(c=t.call(n,e,i,u)))return s++,o(e,r?i:s-1,a)})),s},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var c=e.__iterator(2,i),s=!0,u=0;return new D((function(){var e,i,l;do{if((e=c.next()).done)return r||1===o?e:P(o,u++,0===o?void 0:e.value[1],e);var d=e.value;i=d[0],l=d[1],s&&(s=t.call(n,l,i,a))}while(s);return 2===o?e:P(o,i,l,e)}))},o}function Lt(e,t){var n=c(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?X(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 i=o[0];if(i===e||n&&c(i)||s(e)&&s(i))return i}var u=new K(o);return n?u=u.toKeyedSeq():s(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function Mt(e,t,n){var r=Kt(e);return r.__iterateUncached=function(r,o){var i=0,c=!1;return function e(s,u){var l=this;s.__iterate((function(o,s){return(!t||u<t)&&a(o)?e(o,u+1):!1===r(o,n?s:i++,l)&&(c=!0),!c}),o)}(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),c=[],s=0;return new D((function(){for(;i;){var e=i.next();if(!1===e.done){var u=e.value;if(2===r&&(u=u[1]),t&&!(c.length<t)||!a(u))return n?e:P(r,s++,u,e);c.push(i),i=u.__iterator(r,o)}else i=c.pop()}return{value:void 0,done:!0}}))},r}function Ut(e,t,n){t||(t=Yt);var r=c(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?V(i):s(e)?H(i):q(i)}function Bt(e,t,n){if(t||(t=Yt),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return zt(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return zt(t,e,n)?n:e}))}function zt(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Ft(e,t,r){var o=Kt(e);return o.size=new K(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 i=r.map((function(e){return e=n(e),B(o?e.reverse():e)})),a=0,c=!1;return new D((function(){var n;return c||(n=i.map((function(e){return e.next()})),c=n.some((function(e){return e.done}))),c?{value:void 0,done:!0}:P(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Gt(e,t){return Z(e)?t:e.constructor(t)}function Vt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ht(e){return ke(e.size),E(e)}function qt(e){return c(e)?r:s(e)?o:i}function Kt(e){return Object.create((c(e)?V:s(e)?H:q).prototype)}function Wt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):G.prototype.cacheResult.call(this)}function Yt(e,t){return e>t?1:e<t?-1:0}function Qt(e){var t=B(e);if(!t){if(!F(e))throw new TypeError("Expected iterable or array-like: "+e);t=B(n(e))}return t}function Zt(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);!function(e,t){try{t.forEach(en.bind(void 0,e))}catch(e){}}(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Re(i)},o=r.prototype=Object.create(Jt);return o.constructor=r,r}t(jt,Re),jt.of=function(){return this(arguments)},jt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},jt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},jt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):wt()},jt.prototype.set=function(e,t){return Tt(this,e,t)},jt.prototype.remove=function(e){return Tt(this,e,b)},jt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},jt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},jt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},jt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Ct(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},jt.isOrderedMap=Et,jt.prototype[h]=!0,jt.prototype.delete=jt.prototype.remove,t(_t,V),_t.prototype.get=function(e,t){return this._iter.get(e,t)},_t.prototype.has=function(e){return this._iter.has(e)},_t.prototype.valueSeq=function(){return this._iter.valueSeq()},_t.prototype.reverse=function(){var e=this,t=xt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},_t.prototype.map=function(e,t){var n=this,r=It(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},_t.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?Ht(this):0,function(o){return e(o,t?--n:n++,r)}),t)},_t.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(1,t),r=t?Ht(this):0;return new D((function(){var o=n.next();return o.done?o:P(e,t?--r:r++,o.value,o)}))},_t.prototype[h]=!0,t(St,H),St.prototype.includes=function(e){return this._iter.includes(e)},St.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},St.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t),r=0;return new D((function(){var t=n.next();return t.done?t:P(e,r++,t.value,t)}))},t(At,q),At.prototype.has=function(e){return this._iter.includes(e)},At.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},At.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new D((function(){var t=n.next();return t.done?t:P(e,t.value,t.value,t)}))},t(kt,V),kt.prototype.entrySeq=function(){return this._iter.toSeq()},kt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Vt(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},kt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new D((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Vt(r);var o=a(r);return P(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},St.prototype.cacheResult=_t.prototype.cacheResult=At.prototype.cacheResult=kt.prototype.cacheResult=Wt,t(Zt,fe),Zt.prototype.toString=function(){return this.__toString($t(this)+" {","}")},Zt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Zt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Zt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Xt(this,He()))},Zt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+$t(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Xt(this,n)},Zt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Xt(this,t)},Zt.prototype.wasAltered=function(){return this._map.wasAltered()},Zt.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},Zt.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},Zt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Xt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Jt=Zt.prototype;function Xt(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function $t(e){return e._name||e.constructor.name||"Record"}function en(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){ue(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function tn(e){return null==e?un():nn(e)&&!l(e)?e:un().withMutations((function(t){var n=i(e);ke(n.size),n.forEach((function(e){return t.add(e)}))}))}function nn(e){return!(!e||!e[on])}Jt.delete=Jt.remove,Jt.deleteIn=Jt.removeIn=De.removeIn,Jt.merge=De.merge,Jt.mergeWith=De.mergeWith,Jt.mergeIn=De.mergeIn,Jt.mergeDeep=De.mergeDeep,Jt.mergeDeepWith=De.mergeDeepWith,Jt.mergeDeepIn=De.mergeDeepIn,Jt.setIn=De.setIn,Jt.update=De.update,Jt.updateIn=De.updateIn,Jt.withMutations=De.withMutations,Jt.asMutable=De.asMutable,Jt.asImmutable=De.asImmutable,t(tn,he),tn.of=function(){return this(arguments)},tn.fromKeys=function(e){return this(r(e).keySeq())},tn.prototype.toString=function(){return this.__toString("Set {","}")},tn.prototype.has=function(e){return this._map.has(e)},tn.prototype.add=function(e){return cn(this,this._map.set(e,!0))},tn.prototype.remove=function(e){return cn(this,this._map.remove(e))},tn.prototype.clear=function(){return cn(this,this._map.clear())},tn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},tn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},tn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},tn.prototype.merge=function(){return this.union.apply(this,arguments)},tn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},tn.prototype.sort=function(e){return ln(Ut(this,e))},tn.prototype.sortBy=function(e,t){return ln(Ut(this,t,e))},tn.prototype.wasAltered=function(){return this._map.wasAltered()},tn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},tn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},tn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},tn.isSet=nn;var rn,on="@@__IMMUTABLE_SET__@@",an=tn.prototype;function cn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function sn(e,t){var n=Object.create(an);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function un(){return rn||(rn=sn(He()))}function ln(e){return null==e?bn():dn(e)?e:bn().withMutations((function(t){var n=i(e);ke(n.size),n.forEach((function(e){return t.add(e)}))}))}function dn(e){return nn(e)&&l(e)}an[on]=!0,an.delete=an.remove,an.mergeDeep=an.merge,an.mergeDeepWith=an.mergeWith,an.withMutations=De.withMutations,an.asMutable=De.asMutable,an.asImmutable=De.asImmutable,an.__empty=un,an.__make=sn,t(ln,tn),ln.of=function(){return this(arguments)},ln.fromKeys=function(e){return this(r(e).keySeq())},ln.prototype.toString=function(){return this.__toString("OrderedSet {","}")},ln.isOrderedSet=dn;var fn,pn=ln.prototype;function hn(e,t){var n=Object.create(pn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function bn(){return fn||(fn=hn(wt()))}function vn(e){return null==e?En():mn(e)?e:En().unshiftAll(e)}function mn(e){return!(!e||!e[On])}pn[h]=!0,pn.__empty=bn,pn.__make=hn,t(vn,pe),vn.of=function(){return this(arguments)},vn.prototype.toString=function(){return this.__toString("Stack [","]")},vn.prototype.get=function(e,t){var n=this._head;for(e=C(this,e);n&&e--;)n=n.next;return n?n.value:t},vn.prototype.peek=function(){return this._head&&this._head.value},vn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=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)},vn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;ke(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)},vn.prototype.pop=function(){return this.slice(1)},vn.prototype.unshift=function(){return this.push.apply(this,arguments)},vn.prototype.unshiftAll=function(e){return this.pushAll(e)},vn.prototype.shift=function(){return this.pop.apply(this,arguments)},vn.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):En()},vn.prototype.slice=function(e,t){if(T(e,t,this.size))return this;var n=_(e,this.size);if(S(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)},vn.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)},vn.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},vn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new D((function(){if(r){var t=r.value;return r=r.next,P(e,n++,t)}return{value:void 0,done:!0}}))},vn.isStack=mn;var gn,On="@@__IMMUTABLE_STACK__@@",yn=vn.prototype;function jn(e,t,n,r){var o=Object.create(yn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function En(){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}yn[On]=!0,yn.withMutations=De.withMutations,yn.asMutable=De.asMutable,yn.asImmutable=De.asImmutable,yn.wasAltered=De.wasAltered,n.Iterator=D,Cn(n,{toArray:function(){ke(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new St(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 _t(this,!0)},toMap:function(){return Re(this.toKeyedSeq())},toObject:function(){ke(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return jt(this.toKeyedSeq())},toOrderedSet:function(){return ln(c(this)?this.valueSeq():this)},toSet:function(){return tn(c(this)?this.valueSeq():this)},toSetSeq:function(){return new At(this)},toSeq:function(){return s(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return vn(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 Gt(this,Lt(this,t))},includes:function(e){return this.some((function(t){return ae(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){ke(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return Gt(this,Nt(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,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return ke(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ke(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 Gt(this,It(this,e,t))},reduce:function(e,t,n){var r,o;return ke(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Gt(this,xt(this,!0))},slice:function(e,t){return Gt(this,Dt(this,e,t,!0))},some:function(e,t){return!this.every(An(e),t)},sort:function(e){return Gt(this,Ut(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 E(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Re().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,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 K(e._cache);var t=e.toSeq().map(Sn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(An(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(w)},flatMap:function(e,t){return Gt(this,function(e,t,n){var r=qt(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Gt(this,Mt(this,e,!0))},fromEntrySeq:function(){return new kt(this)},get:function(e,t){return this.find((function(t,n){return ae(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=Qt(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=c(e),o=(l(e)?jt():Re()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=qt(e);return o.map((function(t){return Gt(e,i(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(_n).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return Bt(this,e)},maxBy:function(e,t){return Bt(this,t,e)},min:function(e){return Bt(this,e?kn(e):xn)},minBy:function(e,t){return Bt(this,t?kn(t):xn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Gt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Gt(this,Pt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(An(e),t)},sortBy:function(e,t){return Gt(this,Ut(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Gt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Gt(this,function(e,t,n){var r=Kt(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,c){return t.call(n,e,o,c)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(2,o),c=!0;return new D((function(){if(!c)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,s=o[0],u=o[1];return t.call(n,u,s,i)?2===r?e:P(r,s,u,e):(c=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(An(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=l(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=ve((t=be(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Nn(me(e),me(t))|0}:function(e,t){r=r+Nn(me(e),me(t))|0}:t?function(e){r=31*r+me(e)|0}:function(e){r=r+me(e)|0}),r)}(this))}});var wn=n.prototype;wn[d]=!0,wn[N]=wn.values,wn.__toJS=wn.toArray,wn.__toStringMapper=Rn,wn.inspect=wn.toSource=function(){return this.toString()},wn.chain=wn.flatMap,wn.contains=wn.includes,function(){try{Object.defineProperty(wn,"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 Gt(this,Rt(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 ae(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ae(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return Gt(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Gt(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Tn=r.prototype;function _n(e,t){return t}function Sn(e,t){return[t,e]}function An(e){return function(){return!e.apply(this,arguments)}}function kn(e){return function(){return-e.apply(this,arguments)}}function Rn(e){return"string"==typeof e?JSON.stringify(e):e}function In(){return j(arguments)}function xn(e,t){return e<t?1:e>t?-1:0}function Nn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Tn[f]=!0,Tn[N]=wn.entries,Tn.__toJS=wn.toObject,Tn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Rn(e)},Cn(o,{toKeyedSeq:function(){return new _t(this,!1)},filter:function(e,t){return Gt(this,Nt(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 Gt(this,xt(this,!1))},slice:function(e,t){return Gt(this,Dt(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=_(e,e<0?this.count():this.size);var r=this.slice(0,e);return Gt(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 Gt(this,Mt(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||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Gt(this,function(e,t){var n=Kt(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(1,r),a=0;return new D((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?P(n,a++,t):P(n,a++,o.value,o)}))},n}(this,e))},interleave:function(){var e=[this].concat(j(arguments)),t=Ft(this.toSeq(),H.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Gt(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return Gt(this,Pt(this,e,t,!1))},zip:function(){var e=[this].concat(j(arguments));return Gt(this,Ft(this,In,e))},zipWith:function(e){var t=j(arguments);return t[0]=this,Gt(this,Ft(this,e,t))}}),o.prototype[p]=!0,o.prototype[h]=!0,Cn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=wn.includes,Cn(V,r.prototype),Cn(H,o.prototype),Cn(q,i.prototype),Cn(fe,r.prototype),Cn(pe,o.prototype),Cn(he,i.prototype),{Iterable:n,Seq:G,Collection:de,Map:Re,OrderedMap:jt,List:ot,Stack:vn,Set:tn,OrderedSet:ln,Record:Zt,Range:le,Repeat:se,is:ae,fromJS:re}}()},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,c){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,c],l=0;(s=new Error(t.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(1),o={},i=Object(r.createContext)(o),a=function(){return Object(r.useContext)(i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFormData=void 0;var r=n(838);Object.defineProperty(t,"getFormData",{enumerable:!0,get:function(){return r.getFormData}})},function(e,t,n){"use strict";n.d(t,"b",(function(){return T})),n.d(t,"a",(function(){return N}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(2),h=n.n(p),b=n(1),v=n(6),m=n.n(v),g=n(226),O=n.n(g),y=n(132),j=n(616),E=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var w=function(e){s()(n,e);var t=C(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={bounceShown:!1,isPrev:!1,shouldPrevPlaceholderShown:!1},e.maybeRun=O()((function(){var t=e.props.getContainer(e.el);if(!t)return!1;var n=t.scrollTop,r=n-(e.scrollTop||0);e.scrollTop=n;var o=r<0;!e.props.isLoading&&e.shouldRun(o)&&(e.setState({isPrev:o}),e.props.onLoad(o))}),100),e}return a()(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.isDrained,r=t.isPrevDrained,o=t.getContainer;if(!n||!r){var i=o(this.el);i.addEventListener("scroll",this.maybeRun),i.addEventListener("resize",this.maybeRun),this.maybeRun();var a=this.props,c=a.isLocal,s=a.isLoading,u=a.children;c&&s&&b.Children.toArray(u).length<=0&&(this.displayLocalLoadingTimeout=setTimeout((function(){e.setState({bounceShown:e.props.isLoading})}),300))}}},{key:"componentWillReceiveProps",value:function(e){var t=this;!this.props.isDrained&&e.isDrained&&e.isPrevDrained||!this.props.isPrevDrained&&e.isPrevDrained&&e.isDrained?this.stop():(this.props.isDrained&&!e.isDrained||this.props.isPrevDrained&&!e.isPrevDrained)&&this.start(),this.props.isLocal&&(!this.props.isLoading&&e.isLoading&&b.Children.toArray(e.children).length<=0&&(this.displayLocalLoadingTimeout=setTimeout((function(){t.setState({bounceShown:t.props.isLoading})}),300)),this.props.isLoading&&!e.isLoading&&(this.displayLocalLoadingTimeout&&(this.displayLocalLoadingTimeout=clearTimeout(this.displayLocalLoadingTimeout)),this.setState({bounceShown:!1}))),this.state.isPrev&&this.placeholderEl&&!e.isLoading&&this.props.isLoading&&(this.bottom=this.placeholderEl.getBoundingClientRect().top)}},{key:"componentDidUpdate",value:function(e){if(this.state.isPrev&&this.placeholderEl&&e.isLoading&&!this.props.isLoading){var t=this.props.getContainer(this.el).scrollTop+this.placeholderEl.getBoundingClientRect().top-this.bottom;this.props.getContainer(this.el).scrollTop=this.scrollTop=t}}},{key:"componentWillUnmount",value:function(){this.stop(),clearTimeout(this.displayLocalLoadingTimeout)}},{key:"start",value:function(){var e=this.props.getContainer(this.el);e.addEventListener("scroll",this.maybeRun),e.addEventListener("resize",this.maybeRun)}},{key:"stop",value:function(){var e=this.props.getContainer(this.el);e.removeEventListener("scroll",this.maybeRun),e.removeEventListener("resize",this.maybeRun),this.maybeRun.cancel()}},{key:"shouldRun",value:function(e){var t=this;if(!this.placeholderEl)return!1;var n,r=this.props.getContainer(this.el),o=0;if(void 0!==r.innerHeight)o=0,n=r.innerHeight;else{var i=r.getBoundingClientRect();o=i.top,n=i.bottom}var a=this.placeholderEl.getBoundingClientRect().top;if(!this.prevPlaceholderEl||!e)return a-n<=this.props.threshold;var c=o-this.prevPlaceholderEl.getBoundingClientRect().bottom;this.bottom=a;var s=c<=0;return this.setState({shouldPrevPlaceholderShown:s},(function(){s&&t.placeholderEl&&(t.bottom=t.placeholderEl.getBoundingClientRect().top)})),c<=this.props.threshold}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.stopPropagation,o=t.children,i=t.isDrained,a=t.isPrevDrained,c=t.isLocal,s=t.isLoading,u=t.placeholder,l=t.onRef,d=this.state,f=d.bounceShown,p=d.isPrev,h=d.shouldPrevPlaceholderShown,v=u;return f?v=Object(E.c)(y.a,null):c&&b.Children.toArray(o).length<=0&&(v=null),Object(E.c)(j.a,{className:m()(n,{"InfiLoader--bounceShown":f}),stopPropagation:r,onRef:function(t){"function"==typeof l&&l(t),e.el=t}},!a&&Object(E.c)("div",{ref:function(t){e.prevPlaceholderEl=t}},p&&s&&h&&v),o,Object(E.c)("div",{ref:function(t){e.placeholderEl=t}},!i&&s&&v))}}]),n}(b.Component);w.propTypes={threshold:h.a.number,onLoad:h.a.func.isRequired,isLoading:h.a.bool.isRequired,isDrained:h.a.bool.isRequired,isPrevDrained:h.a.bool,getContainer:h.a.func,stopPropagation:h.a.bool,placeholder:h.a.element,isLocal:h.a.bool},w.defaultProps={isPrevDrained:!0,threshold:1200,getContainer:function(){return window}};var T=w,_=n(30),S=n.n(_);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var k=function(e){return Object(E.c)("svg",S()({width:"656",height:"108",viewBox:"0 0 656 108"},e),Object(E.c)("path",{d:"M0 0h656v108H0V0zm0 0h350v12H0V0zm20 32h238v12H20V32zM0 32h12v12H0V32zm0 32h540v12H0V64zm0 32h470v12H0V96z",fill:"currentColor",fillRule:"evenodd"}))},R=function(e){return Object(E.c)("svg",S()({width:"656",height:"44",viewBox:"0 0 656 44"},e),Object(E.c)("path",{d:"M0 0h656v44H0V0zm0 0h480v12H0V0zm0 32h238v12H0V32z",fill:"currentColor",fillRule:"evenodd"}))},I=function(e){return Object(E.c)("svg",S()({width:"596",height:"60",viewBox:"0 0 596 60"},e),Object(E.c)("path",{d:"M-60 0h656v60H-60V0zm84 25h420v10H24V25zm0-25h108v10H24V0zm0 50h280v10H24V50zM-60 0H0v60h-60V0z",fill:"currentColor",fillRule:"evenodd"}))},x=function(e){s()(n,e);var t=A(n);function n(){return o()(this,n),t.apply(this,arguments)}return a()(n,[{key:"render",value:function(){var e,t=this.props,n=t.onRef,r=t.small,o=t.withAvatar,i=t.className;return e=r?Object(E.c)(R,{className:"PlaceHolder-mask"}):o?Object(E.c)(I,{className:"PlaceHolder-mask",style:{paddingLeft:"60px"}}):Object(E.c)(k,{className:"PlaceHolder-mask"}),Object(E.c)("div",{className:m()("PlaceHolder",i),ref:n},Object(E.c)("div",{className:"PlaceHolder-inner"},Object(E.c)("div",{className:"PlaceHolder-bg"}),e))}}]),n}(b.Component);x.propTypes={onRef:h.a.func,small:h.a.bool,withAvatar:h.a.bool};var N=x},function(e,t,n){e.exports=n(107)(63)},function(e,t,n){"use strict";n.d(t,"o",(function(){return p})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return b})),n.d(t,"e",(function(){return v})),n.d(t,"f",(function(){return m})),n.d(t,"g",(function(){return g})),n.d(t,"l",(function(){return O})),n.d(t,"h",(function(){return y})),n.d(t,"i",(function(){return j})),n.d(t,"k",(function(){return E})),n.d(t,"a",(function(){return C})),n.d(t,"j",(function(){return w})),n.d(t,"m",(function(){return T})),n.d(t,"n",(function(){return _})),n.d(t,"d",(function(){return k}));var r=n(15),o=n(4),i=n(21),a=n(225),c=n.n(a),s=n(19),u=n(35),l=n(33),d=n(28),f=Object.assign({},Object(s.a)("reward",["ADD_REWARD","GET_REWARD_USER","ADD_ARTICLE_REWARD","GET_REWARD_USER_DETAILS","GET_ARTICLE_REWARD_USER","GET_PAGING_ARTICLE_REWARD_USER","GET_PAGING_ARTICLE_REWARD_USER_DETAILS","UPDATE_ARTICLE_REWARD","UPDATE_REWARD_FOLLOWERS"]),Object(s.b)("reward",["REMOVE_TRADE_NUMBER","ADD_REWARD_TAGLINE","ON_REWARD_SUCCESS","UPDATE_ENTITIES_USERS","UPDATE_QUESTION_REWARDINFO"]));function p(e,t){return function(n,r){var o=r().reward,i=o.answer,a=o.article,c=Object.keys(i).length>0,s=c?i:a,l=c?"answer":"article",p=Object.keys(s)[0],h=Object.values(s)[0].users,b=h.filter((function(t){return t.urlToken===e}))[0],v=h.indexOf(b);return b.isBlocked?n(Object(u.g)(d.H.blocked,"red")):n({id:p,user:b,count:t?1:-1,index:v,expect:t,rewardType:l,API:{types:f.UPDATE_REWARD_FOLLOWERS,endpoint:"members/".concat(b.urlToken,"/followers"),method:t?"POST":"DELETE"}})}}function h(e,t,n){return function(r){return r({API:{types:f.ADD_REWARD,endpoint:"/answers/".concat(e,"/rewarders"),method:"POST",body:Object(i.decamelizeKeys)({amount:t,type:n})},id:e})}}function b(e,t){return function(n){return n({API:{types:f.ADD_ARTICLE_REWARD,endpoint:"/articles/".concat(e,"/tipjar_wallet"),method:"POST",body:Object(i.decamelizeKeys)({price:Number(t)})},id:e})}}function v(e){return function(t){return t({API:{types:f.GET_ARTICLE_REWARD_USER,endpoint:"/articles/".concat(e,"/tipjar"),method:"GET"},id:e})}}function m(e){return function(t){return t({API:{types:f.GET_PAGING_ARTICLE_REWARD_USER,endpoint:"/articles/".concat(e,"/tipjarors"),method:"GET"},id:e})}}function g(e){return function(t){return t({API:{types:f.GET_PAGING_ARTICLE_REWARD_USER_DETAILS,endpoint:"/articles/".concat(e,"/rewarddetails"),method:"GET"},id:e})}}function O(e,t,n){return function(r){var o={tagline:t};return"boolean"==typeof n&&(o.canTip=n),r({API:{types:f.UPDATE_ARTICLE_REWARD,endpoint:"/articles/".concat(e),method:"PUT",body:Object(i.decamelizeKeys)({tipjarSetting:o})},id:e,tagline:t,canTip:n})}}function y(e){return function(t,n){var r=(n().reward[e]||{}).endpoint;return t({API:Object.assign({types:f.GET_REWARD_USER},r?{endpoint:r}:{endpoint:"answers/".concat(e,"/rewarders"),method:"GET",query:{include:"data[*].answer_count,articles_count,follower_count,is_blocking,is_blocked,is_following,is_followed",offset:0,limit:l.a}}),id:e})}}function j(e){return function(t,n){var r=(n().reward[e]||{}).endpoint;return t({API:Object.assign({types:f.GET_REWARD_USER_DETAILS},r?{endpoint:r}:{endpoint:"answers/".concat(e,"/rewarddetails"),method:"GET",query:{include:"data[*].rewarder.answer_count,articles_count,follower_count,is_blocking,is_blocked,is_following,is_followed",offset:0,limit:l.a}}),id:e,NOTIFICATION:!1})}}function E(e,t){return{type:f.REMOVE_TRADE_NUMBER,appsType:t,id:e}}function C(e,t){return{type:f.ADD_REWARD_TAGLINE,text:e,id:t}}function w(e,t,n){return{type:f.ON_REWARD_SUCCESS,appsType:n,users:e,id:t}}function T(e){return{type:f.UPDATE_ENTITIES_USERS,entities:{users:e}}}function _(e,t){return{type:f.UPDATE_QUESTION_REWARDINFO,questionId:e,isRewardable:t}}function S(e){var t=[];return e.forEach((function(e){var n=e.amount,r=e.created,o=e.rewarder;o.amount=n,o.rewardCreated=r;var i=t.findIndex((function(e){return e.urlToken===o.urlToken}));-1===i?t.push(o):t[i].amount+=o.amount})),t}var A={answer:{},article:{},question:{}};function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,t=arguments.length>1?arguments[1]:void 0,n=t.type,i=t.payload,a=t.id;if(n===f.ADD_REWARD.success)return Object.assign({},e,{answer:Object.assign({},e.answer,Object(o.a)({},a,{users:e.answer[a].users,tradeNumber:i.tradeNumber}))});if(n===f.REMOVE_TRADE_NUMBER){var s=t.appsType;return Object.assign({},e,Object(o.a)({},s,Object.assign({},e[s],Object(o.a)({},a,{users:e.answer[a].users,tradeNumber:""}))))}if(n===f.ADD_REWARD_TAGLINE)return Object.assign({},e,{answer:Object.assign({},e.answer,Object(o.a)({},a,{users:e.answer[a].users,tradeNumber:e[a].tradeNumber,rewardTagline:t.text}))});if(n===f.GET_REWARD_USER.success)return Object.assign({},e,{answer:Object.assign({},e.answer,Object(o.a)({},a,{users:e.answer[a]?c()([].concat(Object(r.a)(e.answer[a].users),Object(r.a)(i.data)),"id"):i.data,endpoint:i.paging.next}))});if(n===f.ON_REWARD_SUCCESS){var u=t.users,l=t.appsType;return Object.assign({},e,Object(o.a)({},l,Object.assign({},e[l],Object(o.a)({},a,{users:u}))))}if(n===f.GET_REWARD_USER_DETAILS.success){var d=S(i.data);return Object.assign({},e,{answer:Object.assign({},e.answer,Object(o.a)({},a,{users:e.answer[a]?c()([].concat(Object(r.a)(e.answer[a].users),Object(r.a)(d)),"id"):d,notice:i.notice,endpoint:i.paging.next}))})}if(n===f.UPDATE_QUESTION_REWARDINFO){var p=t.questionId,h=t.isRewardable;return Object.assign({},e,{question:Object.assign({},e.question,Object(o.a)({},p,{isRewardable:h}))})}if(n===f.GET_ARTICLE_REWARD_USER.success)return Object.assign({},e,{article:Object.assign({},e.article,Object(o.a)({},a,Object.assign({},i)))});if(n===f.GET_PAGING_ARTICLE_REWARD_USER.success){var b=i.data,v=i.paging.next;return Object.assign({},e,{article:Object.assign({},e.article,Object(o.a)({},a,Object.assign({},e.article[a],{users:b,endpoint:v})))})}if(n===f.GET_PAGING_ARTICLE_REWARD_USER_DETAILS.success){var m=i.data,g=i.paging.next,O=i.notice,y=S(m);return Object.assign({},e,{article:Object.assign({},e.article,Object(o.a)({},a,Object.assign({},e.article[a],{users:y,notice:O,endpoint:g})))})}if(n===f.UPDATE_ARTICLE_REWARD.success){var j=t.tagline,E=t.canTip;return Object.assign({},e,{article:Object.assign({},e.article,Object(o.a)({},a,Object.assign({},e.article[a],{bio:j,canTip:E})))})}if(n===f.ADD_ARTICLE_REWARD.success)return Object.assign({},e,{article:Object.assign({},e.article,Object(o.a)({},a,Object.assign({},e.article[a],{tradeNumber:i.tradeNumber})))});if(n===f.UPDATE_REWARD_FOLLOWERS.request){var C=t.rewardType,w=t.id,T=t.user,_=t.count,k=t.expect,R=t.index,I=e[C][w].users.map((function(e,t){var n=e;return t===R&&(n.followerCount=T.followerCount+_,n.isFollowing=k),n}));return Object.assign({},e,Object(o.a)({},C,Object.assign({},e[C],Object(o.a)({},w,Object.assign({},e[C][w],{users:I})))))}if(n===f.UPDATE_REWARD_FOLLOWERS.failure){var x=t.rewardType,N=t.id,D=t.user,P=t.index,L=e[x][N].users.map((function(e,t){var n=e;return P===t&&(n=D),n}));return Object.assign({},e,Object(o.a)({},x,Object.assign({},e[x],Object(o.a)({},N,Object.assign({},e[x][N],{users:L})))))}return e}},function(e,t,n){"use strict";n.r(t),n.d(t,"dispatch",(function(){return a})),n.d(t,"HYBRID_ACTION_EVENT",(function(){return o})),n.d(t,"getTrackMacroOptions",(function(){return s})),n.d(t,"removeBIZParameter",(function(){return u})),n.d(t,"sendRaven",(function(){return l})),n.d(t,"base64Decode",(function(){return d.a})),n.d(t,"base64Encode",(function(){return d.b}));var r=n(42),o={commonAd:"ad/open",preloadAd:"ad/preload",answerAd:"answer/openAd",adOpenForm:"ad/openForm",openWithoutDeepLink:"ad/openWithoutDeepLink",baseOpenURL:"base/openURL",baseOpenInbox:"base/openInbox",adOpenWechat:"ad/openWechat",adECommerceOpen:"ad/eCommerceOpen",adDownloadApk:"ad/downloadApk",openWechatShare:"ad/openWechatShare",fetchAdLinkCardInfo:"editor/fetchADLinkCardInfo",adOpenContent:"ad/openContent",adSendContentPluginTracks:"ad/sendContentPluginTracks",adWxPushOnceMsgAuth:"ad/wxPushOnceMsgAuth"};function i(e){var t=e.type,n=e.payload;return new Promise((function(e){r.a.ready().then((function(){r.a.supportsAction(t).then((function(o){o?r.a.dispatch(t,n).then((function(t){var n=!t||!1!==t.status;e({status:n,type:2,data:t})}),(function(t){return e({status:!1,type:2,data:t})})):e({status:!1,type:1})}))})).catch((function(t){return e({status:!1,type:0,data:t})}))}))}function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Promise((function(e,n){i.apply(void 0,t).then((function(t){return t.status?e(t):n(t)}))}))}var c=n(62);function s(){var e=Object(c.g)(),t=e.os,n=e.platform,r=Object(c.h)(),o=(navigator&&Object(c.d)(navigator.userAgent)).version;return{os:t,ua:navigator.userAgent,platform:n,isHybrid:r?"1":"0",version:o}}function u(e){return e.replace("&BIZ=ECOMMERCE","").replace("?BIZ=ECOMMERCE","?").replace("&BIZFROM=ORG","").replace("?BIZFROM=ORG","?")}var l=function(e){void 0!==Object(c.c)(window,"Raven.captureException")&&window.Raven.captureException(new Error("Error in ad data."),{extra:e})},d=n(650)},function(e,t,n){var r=n(744);e.exports=function(e){return r(2,e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(30),o=n.n(r),i=(n(1),n(6)),a=n.n(i),c=n(56),s=n(164),u=[{spec:"s",size:25},{spec:"is",size:34},{spec:"xs",size:50},{spec:"im",size:68},{spec:"m",size:75},{spec:"l",size:100},{spec:"xl",size:200},{spec:"xll",size:400},{spec:"b",size:600}];var l=n.n(s)()((function(e){return(u.find((function(t){var n=t.size;return e<=n}))||u[u.length-1]).spec})),d=n(3),f=function(e){var t=e.className,n=e.url,r=void 0===n?"https://pic1.zhimg.com/da8e974dc.jpg":n,i=e.size,s=void 0===i?24:i,u=e.large,f=e.xlarge,p=e.round,h=e.imgFit,b=e.alt,v=e.onClick,m=s;u?m=60:f&&(m=180);var g=l(m),O=l(2*m);return Object(d.c)("img",o()({},h&&{css:{objectFit:h}},{className:a()("Avatar",{"Avatar--large":m>=60,"Avatar--medium":m>=40&&m<60,"Avatar--round":p},t),width:m,height:m,src:Object(c.imgUrl)(r,g),srcSet:"".concat(Object(c.imgUrl)(r,O)," 2x"),alt:b,onClick:v}))}},function(e,t,n){"use strict";n.d(t,"f",(function(){return _})),n.d(t,"g",(function(){return S})),n.d(t,"i",(function(){return A})),n.d(t,"h",(function(){return k})),n.d(t,"e",(function(){return R})),n.d(t,"a",(function(){return I})),n.d(t,"l",(function(){return x})),n.d(t,"d",(function(){return N})),n.d(t,"c",(function(){return D})),n.d(t,"j",(function(){return P})),n.d(t,"k",(function(){return L})),n.d(t,"m",(function(){return O})),n.d(t,"n",(function(){return y})),n.d(t,"o",(function(){return j}));var r=n(15),o=n(4),i=n(21),a=n(78),c=n(23),s=n(66),u=n.n(s),l=n(684),d=n.n(l),f=n(19),p=n(13),h=[],b={},v=function(e,t){return e.entities.zvideoContributions[t]},m=function(e,t){var n,r;return(null===(n=e.zvideos)||void 0===n||null===(r=n.contribution.contributionLists[t])||void 0===r?void 0:r.map((function(t){return v(e,t)})))||h},g=function(e){var t,n=null===(t=e.zvideos)||void 0===t?void 0:t.contribution.selectedContribution;return n?v(e,n):null},O=function(e){return Object(p.useSelector)((function(t){var n;return(null===(n=t.zvideos)||void 0===n?void 0:n.contribution.configs[e])||b}))},y=function(e){return Object(p.useSelector)((function(t){return m(t,e)}))},j=function(){return Object(p.useSelector)(g)},E=n(26),C=new E.b.Entity("zvideoContributions",{},{processStrategy:function(e){return Object.assign({},e,{abnormalReason:e.abnormalReason||null})}}),w=new E.b.Array(C),T=Object.assign({},Object(f.a)("zvideoContribution",["LOAD_CONFIG","LOAD_CONTRIBUTION_LIST","LOAD_RECOMMEND_QUESTIONS","LOAD_QUESTION_SEARCH_RESULT","CREATE_CONTRIBUTION","LOAD_CONTRIBUTION","UPDATE_CONTRIBUTION","DELETE_CONTRIBUTION_DRAFT","DELETE_CONTRIBUTED_ANSWER","PUBLISH_CONTRIBUTIONS"]),Object(f.b)("zvideoContribution",["SELECT_CONTRIBUTION"])),_=function(e){var t=e.zvideoId,n=e.target,r=void 0===n?"answer":n,o=e.duration;return{meta:{zvideoId:t},API:{types:T.LOAD_CONFIG,endpoint:"/zvideo-contribute/zvideos/".concat(t,"/status"),query:Object.assign({target:r},o&&{full_duration_millis:o})}}},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";return{meta:{zvideoId:e},API:{types:T.LOAD_CONTRIBUTION_LIST,endpoint:"zvideo-contribute/zvideos/".concat(e,"/contributions"),query:{scene:t}},schema:w}},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.zvideoId,n=e.title,r=e.description,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(e,i){var a=i().zvideos.contribution.recommendQuestions.paging.next,c=Boolean(a)&&!o;e({meta:{reload:o},API:Object.assign({types:T.LOAD_RECOMMEND_QUESTIONS,endpoint:c?a:"/zvideo-contribute/contribute/question/recommend"},!c&&{query:{zvideo_id:t,title:n,description:r,limit:20}})})}},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r){var o=r().zvideos.contribution.questionSearchResults.paging.next,i=Boolean(o)&&!t;n({meta:{reload:t},API:Object.assign({types:T.LOAD_QUESTION_SEARCH_RESULT,endpoint:i?o:"/zvideo-contribute/contribute/question/search"},!i&&{query:{query:e,limit:20}})})}},R=function(e){return{API:{types:T.LOAD_CONTRIBUTION,endpoint:"/zvideo-contribute/contribute/".concat(e)},schema:C}},I=function(e,t,n){return{meta:{zvideoId:e},API:{types:T.CREATE_CONTRIBUTION,endpoint:"/zvideo-contribute/contribute",method:"POST",body:Object(i.decamelizeKeys)(Object.assign({zvideoId:e},u()(t,["target.parentObject.title"]),n&&{full_duration_millis:n}))},UPDATE:{success:function(e){var n=e.id;return{zvideoContributions:Object(o.a)({},n,Object.assign({status:0,id:n},t))}}}}},x=function(e,t){return{API:{types:T.UPDATE_CONTRIBUTION,endpoint:"/zvideo-contribute/contribute/".concat(e),method:"PUT",body:Object(i.decamelizeKeys)(t)},UPDATE:{success:{zvideoContributions:Object(o.a)({},e,t)}}}},N=function(e,t){return{meta:{zvideoId:e,contributionId:t},API:{types:T.DELETE_CONTRIBUTION_DRAFT,endpoint:"/zvideo-contribute/contribute/".concat(t),method:"DELETE"}}},D=function(e,t,n){return{meta:{zvideoId:e,contributionId:t},API:{types:T.DELETE_CONTRIBUTED_ANSWER,endpoint:"/answers/".concat(n),method:"DELETE"}}},P=function(e){return function(t,n){var r,o=null===(r=m(n(),e))||void 0===r?void 0:r.filter((function(e){return 0===e.status})).map((function(e){return e.id}));return(null==o?void 0:o.length)?t({API:{types:T.PUBLISH_CONTRIBUTIONS,endpoint:"/zvideo-contribute/contribute/publish",method:"POST",body:{ids:o}}}):Promise.resolve()}},L=function(e){return{type:T.SELECT_CONTRIBUTION,payload:e}},M={isLoading:!0,paging:{isEnd:!1,isStart:!0,totals:0},data:[]},U=function(e,t){return Object(a.default)((function(n,o){var i=o.type,a=o.payload,c=o.meta;if(i===e.success){var s,u=t?t(a.data):a.data;n.isLoading=!1,n.paging=a.paging,(s=n.data).push.apply(s,Object(r.a)(u))}i===e.failure&&(n.isLoading=!1,n.paging.isEnd=!0),i===e.request&&(n.isLoading=!0,c.reload&&Object.assign(n,M))}),M)};t.b=Object(c.combineReducers)({selectedContribution:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;return n===T.SELECT_CONTRIBUTION?r:e},configs:Object(a.default)((function(e,t){var n=t.payload,r=t.type,o=t.meta;r===T.LOAD_CONFIG.success&&(e[o.zvideoId]=n)}),{}),contributionLists:Object(a.default)((function(e,t){var n=t.payload,r=t.type,o=t.meta,i=(o=void 0===o?{}:o).zvideoId,a=o.contributionId,c=t.result;r===T.LOAD_CONTRIBUTION_LIST.success&&(e[i]=c),r===T.CREATE_CONTRIBUTION.success&&(e[i]?e[i].push(n.id):e[i]=[n.id]),r!==T.DELETE_CONTRIBUTION_DRAFT.success&&r!==T.DELETE_CONTRIBUTED_ANSWER.success||d()(e[i],a)}),{}),recommendQuestions:U(T.LOAD_RECOMMEND_QUESTIONS),questionSearchResults:U(T.LOAD_QUESTION_SEARCH_RESULT,(function(e){return e.map((function(e){return Object.assign({},e.object,{highlight:e.highlight})}))}))})},function(e,t,n){"use strict";var r=n(100)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var o=n(622),i=n(487),a=n(932),c=n(86),s=n(293),u=c.OrderedSet,l=c.Record,d=c.Stack,f=l({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:d(),selection:null,treeMap:null,undoStack:d()}),p=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._immutable=t}return e.createEmpty=function(t){return e.createWithContent(i.createFromText(""),t)},e.createWithContent=function(t,n){var r=t.getBlockMap().first().getKey();return e.create({currentContent:t,undoStack:d(),redoStack:d(),decorator:n||null,selection:s.createEmpty(r)})},e.create=function(t){var n=t.currentContent,o=t.decorator,i=r({},t,{treeMap:b(n,o),directionMap:a.getDirectionMap(n)});return new e(new f(i))},e.set=function(t,n){return new e(t.getImmutable().withMutations((function(e){var r=e.get("decorator"),i=r;null===n.decorator?i=null:n.decorator&&(i=n.decorator);var a=n.currentContent||t.getCurrentContent();if(i!==r){var c,s=e.get("treeMap");return c=i&&r?function(e,t,n,r,i){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==i.getDecorations(t,e)})).map((function(t){return o.generate(e,t,r)})))}(a,a.getBlockMap(),s,i,r):b(a,i),void e.merge({decorator:i,treeMap:c,nativelyRenderedContent:null})}a!==t.getCurrentContent()&&e.set("treeMap",function(e,t,n,r){var i=e.getCurrentContent().set("entityMap",n),a=i.getBlockMap();return e.getImmutable().get("treeMap").merge(t.toSeq().filter((function(e,t){return e!==a.get(t)})).map((function(e){return o.generate(i,e,r)})))}(t,a.getBlockMap(),a.getEntityMap(),i)),e.merge(n)})))},e.prototype.toJS=function(){return this.getImmutable().toJS()},e.prototype.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.prototype.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.prototype.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.prototype.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.prototype.getSelection=function(){return this.getImmutable().get("selection")},e.prototype.getDecorator=function(){return this.getImmutable().get("decorator")},e.prototype.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.prototype.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.prototype.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.prototype.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.prototype.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},e.setInlineStyleOverride=function(t,n){return e.set(t,{inlineStyleOverride:n})},e.prototype.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r>0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return v(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r<o.getLength())return o.getInlineStyleAt(r);if(r>0)return o.getInlineStyleAt(r-1);return v(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,i=a.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var c=t.getSelection(),s=t.getCurrentContent(),u=t.getUndoStack(),l=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)?(u=u.push(s),l=l.set("selectionBefore",c)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",s.getSelectionBefore()));var f=t.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(f=null);var p={currentContent:l,directionMap:i,undoStack:u,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(),i=a.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,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(),i=a.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,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 v(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):u()}e.exports=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return C})),n.d(t,"b",(function(){return w}));var r=n(7),o=n(8),i=n(9),a=n(10),c=n(5),s=n(32),u=n(0),l=n(2),d=n.n(l),f=n(1),p=n(6),h=n.n(p),b=n(66),v=n.n(b),m=n(83),g=n(101),O=n(261);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}function j(e){return!!e&&!(Array.isArray(e)&&!e.some(Boolean))}function E(e){var t=e.onRef,n=e.listClassName,r=e.itemClassName,o=e.className,i=e.children,a=Object(s.a)(e,["onRef","listClassName","itemClassName","className","children"]);return Object(u.b)("div",Object.assign({ref:t,className:h()(n,o)},a,{children:f.Children.map(i,(function(e){return"string"==typeof e?Object(u.b)("span",{className:r,children:e}):e?Object(f.cloneElement)(e,{className:h()(r,e.props.className)}):e}))}))}var C=function(e){return Object(u.b)(E,Object.assign({listClassName:"ContentItem-actions",itemClassName:"ContentItem-action"},e))},w=function(e){return Object(u.b)(E,Object.assign({listClassName:"ContentItem-status",itemClassName:"ContentItem-statusItem"},e))},T=function(e){Object(i.a)(n,e);var t=y(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).onRef=function(t){e.domNode=t,e.props.onRef&&e.props.onRef(t)},e.onAccessContent=function(t,n){n===document.activeElement&&window.open(e.props.link)},e}return Object(o.a)(n,[{key:"componentDidMount",value:function(){var e=this;Object(m.onViewedOnce)(this.domNode,(function(){var t=e.props,n=t.data,r=(n=void 0===n?{}:n).type,o=n.id,i=t.lastreadTouchable;e.context.currentUser&&i&&r&&o&&Object(O.c)("article"===r?"post":r,o,O.b)}))}},{key:"render",value:function(){var e=v()(this.props,["noTrackCardShow","lastreadTouchable","data","onRef"]),t=e.className,n=e.title,r=e.meta,o=e.children,i=e.extra,a=e.image,c=e.link,l=Object(s.a)(e,["className","title","meta","children","extra","image","link"]),d=Object(u.c)(f.Fragment,{children:[n&&Object(u.b)("h2",{className:"ContentItem-title",children:n}),j(r)&&Object(u.b)("div",{className:"ContentItem-meta",children:r})]});return Object(u.c)("div",Object.assign({ref:this.onRef,className:h()("ContentItem",t)},l,{children:[c&&Object(u.b)(g.b,{keyMap:{ACCESS:"enter"},handlers:{ACCESS:this.onAccessContent}}),a||i?Object(u.c)("div",{className:"ContentItem-main",children:[a&&Object(u.b)("div",{className:"ContentItem-image",children:a}),Object(u.b)("div",{className:"ContentItem-head",children:d}),i&&Object(u.b)("div",{className:"ContentItem-extra",children:i})]}):d,o]}))}}]),n}(f.Component);T.contextTypes={currentUser:d.a.object};t.c=T},function(e,t,n){"use strict";n.r(t),n.d(t,"LEFT",(function(){return r})),n.d(t,"RIGHT",(function(){return o})),n.d(t,"TOP",(function(){return i})),n.d(t,"BOTTOM",(function(){return a})),n.d(t,"BOTTOM_LEFT",(function(){return c})),n.d(t,"BOTTOM_RIGHT",(function(){return s})),n.d(t,"TOP_LEFT",(function(){return u})),n.d(t,"TOP_RIGHT",(function(){return l})),n.d(t,"LEFT_TOP",(function(){return d})),n.d(t,"LEFT_BOTTOM",(function(){return f})),n.d(t,"RIGHT_TOP",(function(){return p})),n.d(t,"RIGHT_BOTTOM",(function(){return h}));var r="left",o="right",i="top",a="bottom",c="bottom-left",s="bottom-right",u="top-left",l="top-right",d="left-top",f="left-bottom",p="right-top",h="right-bottom"},function(e,t,n){e.exports=n(107)(65)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return O})),n.d(t,"d",(function(){return U})),n.d(t,"e",(function(){return G}));var r=n(7),o=n(8),i=n(9),a=n(10),c=n(5),s=n(1),u=n(13),l=n(308),d=n.n(l);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}var p=function(e){Object(i.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:"componentDidMount",value:function(){var e=this,t=this.props.shortcuts;this.mousetrap=new d.a,t.forEach((function(t){var n=t.key,r=t.action;e.mousetrap.bind(n,(function(t){e.props.enable&&r(t)}))}))}},{key:"componentWillUnmount",value:function(){this.mousetrap.reset()}},{key:"render",value:function(){return null}}]),n}(s.Component);p.defaultProps={enable:!0};var h=Object(u.connect)((function(e){return{enable:e.env.enableShortcut}}))(p),b=n(0),v=n(2),m=n.n(v);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}var O=Object(s.createContext)(null),y=[],j=function(e){Object(i.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:"componentDidMount",value:function(){var e=this,t=this.props,n=t.keyMap,r=t.scope,o=y.find((function(e){return e.scope===r}));this.mousetrap=o?o.instance:new d.a,o||y.push({scope:r,instance:this.mousetrap}),Object.keys(n).forEach((function(t){e.mousetrap.bind(n[t],(function(n){var o=e.props,i=o.enable,a=o.handlers;i&&r.contains(document.activeElement)&&a[t](n,r)}))}))}},{key:"componentWillUnmount",value:function(){var e=this,t=this.props.keyMap;Object.keys(t).forEach((function(n){e.mousetrap.unbind(t[n])}))}},{key:"render",value:function(){return null}}]),n}(s.PureComponent);j.contextType=O,j.propTypes={scope:m.a.object.isRequired,enable:m.a.bool},j.defaultProps={enable:!0};var E=Object(u.connect)((function(e){return{enable:e.env.enableShortcut}}))((function(e){return Object(b.b)(O.Consumer,{children:function(t){return t&&Object(b.b)(j,Object.assign({},e,{scope:t}))}})})),C=n(6),w=n.n(C);function T(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=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 i,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function S(e){if(!e)return!1;var t=e.getBoundingClientRect();return t.bottom>0&&t.top<window.innerHeight}function A(){return Math.max(window.innerHeight/10,100)}function k(e){return Math.abs(e.getBoundingClientRect().top-A())}function R(e){var t=window.pageYOffset/(document.body.scrollHeight-window.innerHeight);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e},r=t,o=n(e[r]),i=!1;r===e.length-1&&(i=!0);for(var a=!1;;){var c=r+(i?-1:1);if(-1===c||c===e.length)break;var s=n(e[c]);if(s>o){if(a||i)break;i=!0}else r=c,o=s,a=!0}return r}(e,Math.floor(e.length*t),k)}function I(e){if(!e.matches("a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]")){e.tabIndex=-1;e.addEventListener("blur",(function t(){e.removeAttribute("tabindex"),e.removeEventListener("blur",t)}))}e.focus({preventScroll:!0}),function(e){var t=e.getBoundingClientRect().top+window.pageYOffset-A();window.scrollTo({top:t,behavior:"smooth"})}(e)}function x(e,t){var n,r=T(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.contains(e))return t.indexOf(o)}}catch(e){r.e(e)}finally{r.f()}return-1}function N(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}s.Component;var D=n(47);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}var L=function(e){var t=e.keyCode,n=e.hint,r=t.split(/[ +]/),o=t.includes("+")?"+":" ";return Object(b.c)("div",{className:"KeyHint",children:[Object(b.b)("div",{className:"KeyHint-keyContainer",children:r.map((function(e,t){return Object(b.c)("div",{className:"KeyHint-key",children:[Object(b.b)("kbd",{className:"KeyHint-kbd",children:e}),t<r.length-1&&Object(b.b)("div",{className:w()("KeyHint-separator",{"KeyHint-separator--space":" "===o}),children:o})]},t)}))}),Object(b.c)("div",{children:[":",n]})]})},M=function(e){Object(i.a)(n,e);var t=P(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={show:!1},e.handleShow=function(){e.setState({show:!0})},e.handleHide=function(){e.setState({show:!1})},e}return Object(o.a)(n,[{key:"render",value:function(){var e=this.state.show,t=this.props.keyMaps,n=t.filter((function(e){return"action"===e.type})),r=t.filter((function(e){return"navigation"===e.type}));return Object(b.c)(b.a,{children:[Object(b.b)(h,{shortcuts:[{key:"?",action:this.handleShow}]}),Object(b.b)(D.b,{className:"ShortcutHintModal",title:"快捷键帮助",onClose:this.handleHide,children:e&&Object(b.b)("div",{className:"ShortcutHintModal-content",children:Object(b.c)("div",{className:"ShortcutHintModal-hintListContainer",children:[Object(b.c)("div",{className:"ShortcutHintModal-hintList",children:[Object(b.b)("div",{className:"ShortcutHintModal-hintTitle",children:"操作"}),n.map((function(e){return Object(b.b)(L,{keyCode:e.key,hint:e.hint},e.key)}))]}),Object(b.c)("div",{className:"ShortcutHintModal-hintList",children:[Object(b.b)("div",{className:"ShortcutHintModal-hintTitle",children:"导航"}),r.map((function(e){return Object(b.b)(L,{keyCode:e.key,hint:e.hint},e.key)}))]})]})})})]})}}]),n}(s.Component);M.defaultProps={keyMaps:[{key:"V",hint:"赞同",type:"action"},{key:"D",hint:"反对",type:"action"},{key:"L",hint:"喜欢",type:"action"},{key:"C",hint:"展开 / 收起评论",type:"action"},{key:"Shift+C",hint:"聚焦到评论框",type:"action"},{key:"O",hint:"展开 / 收起全文",type:"action"},{key:"S C",hint:"收藏",type:"action"},{key:"F X",hint:"分享",type:"action"},{key:"J",hint:"下一项",type:"navigation"},{key:"K",hint:"上一项",type:"navigation"},{key:"G G",hint:"滚动到页面顶部",type:"navigation"},{key:"Shift+G",hint:"滚动到页面底部",type:"navigation"},{key:"Shift+U",hint:"向上滚动半屏",type:"navigation"},{key:"Shift+D",hint:"向下滚动半屏",type:"navigation"},{key:"/",hint:"搜索",type:"navigation"},{key:"?",hint:"快捷键帮助",type:"navigation"}]};var U=M,B=n(353);function z(e){Object(B.scrollBy)(window,{behavior:"smooth",top:window.innerHeight/2*(e?1:-1)})}function F(e){Object(B.scrollIntoView)(document.body,{behavior:"smooth",block:e})}var G=function(){return Object(b.b)(h,{shortcuts:[{key:"shift+u",action:function(){return z(!1)}},{key:"shift+d",action:function(){return z(!0)}},{key:"g g",action:function(){return F("start")}},{key:"G",action:function(){return F("end")}}]})}},function(e,t,n){"use strict";var r=n(617),o=function(e,t){return e.reduce((function(e,n,r){return e.concat(n,String(t[r]))}),[])},i=function(e,t){return e.reduce((function(e,n){return e+t(e,n)+n}))};e.exports=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return i(o(e,n.concat("")).filter((function(e){return""!==e})),(function(e,t){return r(e,t)?" ":""}))}},function(e,t,n){e.exports=n(107)(38)},function(e,t,n){"use strict";var r=n(388);n.d(t,"a",(function(){return r.a}));n(300),n(389);var o=n(301);n.d(t,"d",(function(){return o.c})),n.d(t,"c",(function(){return o.b})),t.b=o.a},function(e,t,n){"use strict";n.d(t,"a",(function(){return D}));var r=n(77),o=n.n(r),i=n(22),a=n.n(i),c=n(24),s=n.n(c),u=n(25),l=n.n(u),d=n(27),f=n.n(d),p=n(16),h=n.n(p),b=n(30),v=n.n(b),m=n(2),g=n.n(m),O=n(1),y=n(46),j=n(6),E=n.n(j),C=n(128),w=n(121),T=n.n(w),_=n(442),S=n(185),A=n(430),k=n(99),R=n(431),I=(n(614),n(3));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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 N=["appear","enter","enter-active","exit","exit-active","leave","leave-active"].map((function(e){return"".concat("Popover-content","-").concat(e)})),D=function(e){l()(n,e);var t=x(n);function n(){var e;a()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={id:null,opened:!1,arrowStyle:null,targetContainerStyle:null,placement:null},e.handleMouseEnter=function(t){var n=e.props,r=n.delay,o=n.enterDelay,i=n.onMouseEnter;i&&i(t),t.isDefaultPrevented()||(clearTimeout(e.openTask),clearTimeout(e.closeTask),e.openTask=setTimeout((function(){e.openTask=null,e.open()}),null!=o?o:r))},e.handleMouseLeave=function(){var t=e.props,n=t.stickHover,r=t.delay,o=t.leaveDelay;n||(clearTimeout(e.openTask),clearTimeout(e.closeTask),e.state.opened&&(e.closeTask=setTimeout((function(){e.closeTask=null,e.close()}),null!=o?o:r)))},e.handleClick=function(t){var n=e.props.onClick;n&&n(t),t.isDefaultPrevented()||e.open()},e.position=function(){if(!e.toggler||!e.targetContainer)return null;var t=e.props,n=t.placement,r=t.getContainer,o=t.position,i=t.positionStatus,a=t.boundary,c=void 0===a?{}:a,s=Object(y.findDOMNode)(e.toggler),u=r(),l=e.targetContainer.getBoundingClientRect(),d=o?o(s,e.targetContainer):Object(A.a)(s.getBoundingClientRect(),Object(R.a)(c,u),l,n);return"fixed"!==i&&d&&d.targetContainerStyle&&(d.targetContainerStyle.top+=window.pageYOffset,d.targetContainerStyle.left+=window.pageXOffset),e.setState(d),d},e.close=function(){if(e.state.opened){var t=e.props.onClose;e.setState({opened:!1},(function(){e.removeGlobalListener(),t&&t()}))}},e.open=function(){e.state.opened||e.setState({opened:!0})},e.handleAfterEnter=function(){var t=e.props.onOpen,n=e.position();e.addGlobalListener(),t&&t(n)},e.handleGlobalClose=function(t){var n=e.props,r=n.preventCloseOnTarget;n.globalClose&&(r?e.toggler&&e.targetContainer&&document.body.contains(t.target)&&t.target.classList&&!e.targetContainer.contains(t.target)&&!Object(y.findDOMNode)(e.toggler).contains(t.target)&&!t.target.classList.contains("preventCloseOnTarget")&&e.close():e.close())},e.handleGlobalKeyDown=function(t){27===t.keyCode&&e.close()},e}return s()(n,[{key:"componentDidMount",value:function(){this.setState({id:T()("Popover")})}},{key:"getSnapshotBeforeUpdate",value:function(){return this.targetContainer?Array.from(this.targetContainer.classList).filter((function(e){return N.includes(e)})):null}},{key:"componentDidUpdate",value:function(e,t,n){var r;n&&n.length>0&&this.targetContainer&&this.targetContainer.classList&&(r=this.targetContainer.classList).add.apply(r,o()(n))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.openTask),clearTimeout(this.closeTask),this.removeGlobalListener()}},{key:"getEventProps",value:function(){var e=this.props.toggleEvent;return"hover"===e?{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave}:"click"===e?{onClick:this.handleClick}:{}}},{key:"addGlobalListener",value:function(){var e=this;document.addEventListener("click",this.handleGlobalClose),document.addEventListener("keydown",this.handleGlobalKeyDown),this.subscriptions=[Object(C.subscribe)("resize",this.position)],(this.props.scrollOutClear||this.props.hideOnScroll)&&this.subscriptions.push(Object(C.subscribe)("scroll",(function(){var t,n;!e.props.hideOnScroll&&(t=e.targetContainer,(n=t.getBoundingClientRect()).top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth))||e.handleGlobalClose()})))}},{key:"removeGlobalListener",value:function(){document.removeEventListener("click",this.handleGlobalClose),document.removeEventListener("keydown",this.globalKeyDown),this.subscriptions&&(this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions=null)}},{key:"render",value:function(){var e=this,t=this.props,n=t.toggler,r=t.toggleEvent,o=t.arrowed,i=t.children,a=t.className,c=t.targetClassName,s=t.positionStatus,u=t.noLayer,l=t.transitionEnterTimeout,d=t.transitionLeaveTimeout,f=this.state,p=f.id,h=f.opened,b=this.getEventProps(),m=Object.assign({ref:function(t){e.toggler=t},id:"".concat(p,"-toggle"),"aria-haspopup":!0,"aria-expanded":h,"aria-owns":"".concat(p,"-content")},b),g=this.state,y=g.arrowStyle,j=g.targetContainerStyle,C=g.placement,w=h&&Object(I.c)("div",v()({className:E()("Popover-content","Popover-content--".concat(C),c,{"Popover-content--fixed":"fixed"===s,"Popover-content--arrowed":o}),ref:function(t){e.targetContainer=t},style:j,id:"".concat(p,"-content"),"aria-labelledby":"".concat(p,"-toggle")},"hover"===r&&b),o&&Object(I.c)("span",{className:E()("Popover-arrow","Popover-arrow--".concat(C)),style:y}),i);return h&&!u&&(w=Object(I.c)(_.a,null,w)),Object(I.c)("div",{className:E()("Popover",a)},Object(O.cloneElement)(n,m),Object(I.c)(S.a,{transitionName:"Popover-content",timeout:{enter:l,exit:d},onAfterEnter:this.handleAfterEnter},w))}}]),n}(O.Component);D.propTypes={toggler:g.a.node.isRequired,toggleEvent:g.a.string,targetClassName:g.a.string,delay:g.a.number,enterDelay:g.a.number,leaveDelay:g.a.number,onOpen:g.a.func,onClose:g.a.func,noLayer:g.a.bool,getContainer:g.a.func,placement:g.a.oneOf(Object.keys(k).map((function(e){return k[e]}))),arrowed:g.a.bool,stickHover:g.a.bool,position:g.a.func,positionStatus:g.a.string,preventCloseOnTarget:g.a.bool,globalClose:g.a.bool,scrollOutClear:g.a.bool,hideOnScroll:g.a.bool,boundary:g.a.shape({padding:g.a.number,getElement:g.a.func,getBoundaryInfo:g.a.func})},D.defaultProps={toggleEvent:"click",delay:200,getContainer:function(){return document.body},placement:"bottom",arrowed:!1,preventCloseOnTarget:!1,globalClose:!0,stickHover:!1,noLayer:!1,scrollOutClear:!1,transitionEnterTimeout:200,transitionLeaveTimeout:200}},function(e,t,n){"use strict";n.d(t,"a",(function(){return A})),n.d(t,"b",(function(){return _})),n.d(t,"c",(function(){return T})),n.d(t,"d",(function(){return P})),n.d(t,"e",(function(){return j})),n.d(t,"f",(function(){return I})),n.d(t,"g",(function(){return C})),n.d(t,"h",(function(){return E}));var r=n(39),o=n.n(r),i=n(318),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(22),h=n.n(p),b=n(24),v=n.n(b),m=n(18),g=n(1);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var y=Symbol.for("Animated:node"),j=function(e){return e&&e[y]},E=function(e,t){return Object(m.h)(e,y,t)},C=function(e){return e&&e[y]&&e[y].getPayload()},w=function(){function e(){h()(this,e),E(this,this)}return v()(e,[{key:"getPayload",value:function(){return this.payload||[]}}]),e}(),T=function(e){s()(n,e);var t=O(n);function n(e){var r;return h()(this,n),(r=t.call(this))._value=e,r.done=!0,r.durationProgress=0,m.s.num(r._value)&&(r.lastPosition=r._value),r}return v()(n,[{key:"getPayload",value:function(){return[this]}},{key:"getValue",value:function(){return this._value}},{key:"setValue",value:function(e,t){return m.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,m.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}(w),_=function(e){s()(n,e);var t=O(n);function n(e){var r;return h()(this,n),(r=t.call(this,0))._string=null,r._toString=Object(m.f)({output:[e,e]}),r}return v()(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(m.s.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!a()(f()(n.prototype),"setValue",this).call(this,e))return!1;this._string=null}return!0}},{key:"reset",value:function(e){e&&(this._toString=Object(m.f)({output:[this.getValue(),e]})),this._value=0,a()(f()(n.prototype),"reset",this).call(this)}}],[{key:"create",value:function(e){return new n(e)}}]),n}(T),S={dependencies:null},A=function(e){s()(n,e);var t=O(n);function n(e){var r;return h()(this,n),(r=t.call(this)).source=e,r.setValue(e),r}return v()(n,[{key:"getValue",value:function(e){var t={};return Object(m.l)(this.source,(function(n,r){var o;(o=n)&&o[y]===o?t[r]=n.getValue(e):Object(m.r)(n)?t[r]=Object(m.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(m.k)(this.payload,(function(e){return e.reset()}))}},{key:"_makePayload",value:function(e){if(e){var t=new Set;return Object(m.l)(e,this._addToPayload,t),Array.from(t)}}},{key:"_addToPayload",value:function(e){var t=this;S.dependencies&&Object(m.r)(e)&&S.dependencies.add(e);var n=C(e);n&&Object(m.k)(n,(function(e){return t.add(e)}))}}]),n}(w),k=function(e){s()(n,e);var t=O(n);function n(e){return h()(this,n),t.call(this,e)}return v()(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])})):(a()(f()(n.prototype),"setValue",this).call(this,e.map(R)),!0)}}],[{key:"create",value:function(e){return new n(e)}}]),n}(A);function R(e){return(Object(m.t)(e)?_:T).create(e)}function I(e){var t=j(e);return t?t.constructor:m.s.arr(e)?k:Object(m.t)(e)?_:T}var x=function(e,t){var n=!m.s.fun(e)||e.prototype&&e.prototype.isReactComponent;return Object(g.forwardRef)((function(r,i){var a=Object(g.useRef)(null),c=n&&Object(g.useCallback)((function(e){a.current=function(e,t){e&&(m.s.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),s=function(e,t){var n=new Set;S.dependencies=n,e.style&&(e=Object.assign({},e,{style:t.createAnimatedStyle(e.style)}));return e=new A(e),S.dependencies=null,[e,n]}(r,t),u=o()(s,2),l=u[0],d=u[1],f=Object(m.z)(),p=function(){var e=a.current;n&&!e||!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&f()},h=new N(p,d),b=Object(g.useRef)();Object(m.A)((function(){var e=b.current;b.current=h,Object(m.k)(d,(function(e){return Object(m.c)(e,h)})),e&&(Object(m.k)(e.deps,(function(t){return Object(m.x)(t,e)})),m.w.cancel(e.update))})),Object(g.useEffect)(p,[]),Object(m.C)((function(){return function(){var e=b.current;Object(m.k)(e.deps,(function(t){return Object(m.x)(t,e)}))}}));var v=t.getComponentProps(l.getValue());return Object(g.createElement)(e,Object.assign({},v,{ref:c}))}))},N=function(){function e(t,n){h()(this,e),this.update=t,this.deps=n}return v()(e,[{key:"eventObserved",value:function(e){"change"==e.type&&m.w.write(this.update)}}]),e}();var D=Symbol.for("AnimatedComponent"),P=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,i=void 0===o?function(e){return new A(e)}:o,a=t.getComponentProps,c=void 0===a?function(e){return e}:a,s={applyAnimatedValues:r,createAnimatedStyle:i,getComponentProps:c},u=function e(t){var n=L(t)||"Anonymous";return(t=m.s.str(t)?e[t]||(e[t]=x(t,s)):t[D]||(t[D]=x(t,s))).displayName="Animated(".concat(n,")"),t};return Object(m.l)(e,(function(t,n){m.s.arr(e)&&(n=L(t)),u[n]=u(t)})),{animated:u}},L=function(e){return m.s.str(e)?e:e&&m.s.str(e.displayName)?e.displayName:m.s.fun(e)&&e.name||null}},function(e,t){e.exports=vendor_bfefaa5cfee5584ea98c},function(e,t,n){"use strict";var r=n(7),o=n(8),i=n(9),a=n(10),c=n(5),s=n(0),u=n(2),l=n.n(u),d=n(1),f=n(23),p=n(13),h=n(45),b=n(6),v=n.n(b),m=(n(104),n(12)),g=n(38),O=n(313),y=n(74);n(114);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}var E=function(e){Object(i.a)(n,e);var t=j(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).handleClick=function(t){var n=e.props,r=n.zaId,o=n.zaExtra,i=n.author.urlToken,a=n.isSpecialQuestionOrAnswer;if(n.preventOpenUrl)t.preventDefault();else if(r&&m.a.trackEvent(null,{id:r,action:"OpenUrl",element_name:"User"},o),a)return location.href="zhihu://people/".concat(i,"?utm_app_name=zhihu_check"),t.preventDefault(),void t.stopPropagation()},e}return Object(o.a)(n,[{key:"render",value:function(){var e="plain"===this.props.preset,t=this.props,n=t.author,r=t.noLink,o=t.avatarSize,i=void 0===o?e?24:38:o,a=t.children,c=t.className,u=t.extra,l=t.itemProp,d=t.roundAvatar,f=t.isMobile,p=t.target,h=t.noDetail,b=t.noHoverCard,m=t.noHeadline,g=e&&u||Object(s.b)("div",{className:"AuthorInfo-badge",children:a||Object(s.b)(O.a,{className:"AuthorInfo-badgeText",user:n,noHeadline:m})});return Object(s.c)("div",{className:v()("AuthorInfo",c,{"AuthorInfo--plain":e}),itemProp:l,itemScope:!0,itemType:"http://schema.org/Person",children:[Object(s.b)("meta",{itemProp:"name",content:n.name}),Object(s.b)("meta",{itemProp:"image",content:n.avatarUrl}),Object(s.b)("meta",{itemProp:"url",content:"https://www.zhihu.com/people/".concat(n.urlToken)}),Object(s.b)("meta",{itemProp:"zhihu:followerCount",content:n.followerCount}),Object(s.b)(y.a,Object.assign({onClick:this.handleClick,noHoverCard:f||b,noLink:r,className:"AuthorInfo-avatarWrapper",user:n,avatar:!0,avatarProps:{className:"AuthorInfo-avatar",size:i,round:d}},p&&{target:p})),Object(s.c)("div",{className:"AuthorInfo-content",children:[Object(s.c)("div",{className:"AuthorInfo-head",children:[Object(s.b)(y.a,Object.assign({noHoverCard:f||b,onClick:this.handleClick,className:"AuthorInfo-name",noLink:r,user:n},p&&{target:p})),!e&&u]}),!h&&Object(s.b)("div",{className:"AuthorInfo-detail",children:g})]})]})}}]),n}(d.Component);E.propTypes={author:l.a.object.isRequired,noLink:l.a.bool,avatarSize:l.a.number,preset:l.a.oneOf(["plain","default"]),className:l.a.string,itemProp:l.a.string,roundAvatar:l.a.bool,isMobile:l.a.bool,noDetail:l.a.bool,relatedTo:l.a.string,zaId:l.a.number,zaExtra:l.a.object,noHoverCard:l.a.bool,noHeadline:l.a.bool,preventOpenUrl:l.a.bool},E.defaultProps={noLink:!1,roundAvatar:!1,itemProp:"author",noHoverCard:!1,noHeadline:!1,preventOpenUrl:!1};t.a=Object(f.compose)(h.withRouter,Object(p.connect)((function(e,t){var n=t.relatedTo,r=t.params,o=["question","answer"].includes(n);return{isHuman:Object(g.c)(e),shouldOia:Object(g.i)(e)&&o,isMobile:Object(g.d)(e,{includeTablet:!0}),isSpecialQuestionOrAnswer:Object(g.k)(e,{type:o&&n,id:o?"question"===n?null==r?void 0:r.id:null==r?void 0:r.answerId:""})}})))(E)},function(e,t,n){e.exports=n(107)(97)},function(e,t,n){"use strict";var r=n(32),o=n(7),i=n(8),a=n(9),c=n(10),s=n(5),u=n(0),l=n(2),d=n.n(l),f=n(1),p=n(45),h=n(11);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 v=function(e){Object(a.a)(n,e);var t=b(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"render",value:function(){var e=this.props,t=e.a,n=e.to,o=e.activeClassName,i=Object(r.a)(e,["a","to","activeClassName"]);return t?(i.component="a",i.href=n):(i.component=p.Link,i.to=n,i.activeClassName=o),Object(u.b)(h.c,Object.assign({},i))}}]),n}(f.Component);v.propTypes={a:d.a.bool,to:d.a.string},v.defaultProps={a:!1},t.a=v},function(e,t,n){"use strict";n.d(t,"a",(function(){return W})),n.d(t,"c",(function(){return ce})),n.d(t,"b",(function(){return le}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(1),h=n.n(p),b=n(6),v=n.n(b),m=n(1063),g=n(1064),O=n(1065),y=n(1066),j=n(1067),E=n(1068),C=n(1069),w=n(1070),T=n(1071),_=n(1072),S=n(1073),A=n(1074),k=n(1075),R=n(1076),I=n(1077),x=n(1078),N=n(1079),D=n(1080),P=n(1081),L=n(12),M=n(183),U=n(43),B=n(30),z=n.n(B),F=n(41),G=n.n(F),V=n(11),H=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var K=function(e){return"undefined"!=typeof navigator&&/Mac/i.test(navigator.userAgent)?e.replace(/\+/g,""):e.replace("⌘","Ctrl").replace("⌥","Alt").replace("⇧","Shift")},W=function(e){s()(n,e);var t=q(n);function n(){return o()(this,n),t.apply(this,arguments)}return a()(n,[{key:"render",value:function(){var e=this.props,t=e.label,n=e.shortcut,r=e.icon,o=e.isActive,i=e.className,a=e.children,c=G()(e,["label","shortcut","icon","isActive","className","children"]);return Object(H.c)(V.c,z()({preset:"plain",className:v()(i,"Editable-control",{"is-active":o}),"aria-label":t},t&&{"data-tooltip":t+(n?" (".concat(K(n),")"):"")},{"data-tooltip-position":"bottom","data-tooltip-will-hide-on-click":!0},c),"function"==typeof r?Object(H.c)(r,null):r,a&&Object(H.c)("span",null,a))}}]),n}(p.Component);W.defaultProps={isActive:!1};var Y=n(39),Q=n.n(Y),Z=n(1062),J=n(40),X=n.n(J),$=n(14);var ee="Editor::toolbarCatalogAttentionShown",te={name:"u0wu5t",styles:"position:relative;line-height:0;"},ne={name:"enfhqm",styles:"left:50%;transform:translateX(-50%);position:absolute;border-radius:4px;box-shadow:0 5px 20px rgba(18, 18, 18, 0.1);z-index:1;"},re={name:"nchgvg",styles:"position:absolute;overflow:hidden;pointer-events:none;width:32px;height:16px;transform:translate(-50%, -100%);left:50%;"},oe={name:"q7m2vl",styles:"white-space:nowrap;line-height:40px;font-size:14px;"},ie=function(e){var t=Object(p.useState)(!1),n=Q()(t,2),r=n[0],o=n[1];return Object(p.useEffect)((function(){X.a.get(ee)||(o(!0),X.a.set(ee,!0),setTimeout((function(){o(!1)}),3e3))}),[]),Object(H.c)("div",{css:te},Object(H.c)(W,z()({label:"添加目录",shortcut:"⌘+⇧+0",icon:Z.a},e)),r&&Object(H.c)($.Box,{mt:"8px",bg:"GBK99A",sx:{border:"1px solid",borderColor:"GBK09B"},css:ne},Object(H.c)($.Box,{as:"span",sx:{"::after":{backgroundColor:"GBK99A",border:"1px solid",borderColor:"GBK09B",content:"''",position:"absolute",boxSizing:"border-box",width:"24px",height:"24px",margin:"-12px",transform:"rotate(45deg)",pointerEvents:"auto",left:"50%",bottom:"-8px"}},css:re}),Object(H.c)($.Text,{px:"16px",color:"GBL05A",css:oe},"添加标题后点击生成目录")))},ae=function(){return Object(H.c)("span",{className:"Editable-toolbar-separator"})},ce=function(e){var t=e.className,n=G()(e,["className"]);return Object(H.c)(U.b,z()({className:v()(t,"Editable-toolbarMenuItem")},n))},se=n(1031);function ue(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var le=function(e){s()(n,e);var t=ue(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).calloutRef=h.a.createRef(),e.state={arrowOffset:null},e}return a()(n,[{key:"componentDidMount",value:function(){this.positionArrow()}},{key:"componentDidUpdate",value:function(e){e.anchor!==this.props.anchor&&this.positionArrow()}},{key:"positionArrow",value:function(){var e=this.props.anchor.current,t=this.calloutRef.current;if(e&&t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect();this.setState({arrowOffset:{left:n.left+n.width/2-r.left}})}}},{key:"render",value:function(){var e=this.state.arrowOffset,t=this.props,n=t.className,r=t.children,o=t.onClose;return Object(H.c)("div",{className:v()("EditableToolbarMenuCallout",n),ref:this.calloutRef},r,e&&Object(H.c)("span",{className:"EditableToolbarMenuCallout-arrowBox",style:e}),Object(H.c)(V.c,{preset:"plain",icon:se.a,onClick:o,className:"EditableToolbarMenuCallout-closeButton"}))}}]),n}(h.a.Component);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var fe=[{icon:m.a,label:"引用块",style:"blockquote",shortcut:"⌘+⇧+U"},{icon:g.a,label:"代码块",style:"code-block",shortcut:"⌘+⌥+C"}],pe=[{icon:O.a,label:"一级标题",style:"header-two",shortcut:"⌘+⌥+1",enable:function(e){return!e.allowHeaderThree}},{icon:y.a,label:"一级标题",style:"header-two",shortcut:"⌘+⌥+1",enable:function(e){return e.allowHeaderThree}},{icon:j.a,label:"二级标题",style:"header-three",shortcut:"⌘+⌥+2",enable:function(e){return e.allowHeaderThree}}],he=[{icon:E.a,label:"有序列表",style:"ordered-list-item",shortcut:"⌘+⇧+7"},{icon:C.a,label:"无序列表",style:"unordered-list-item",shortcut:"⌘+⇧+8"}],be=[{icon:w.a,label:"粗体",style:"BOLD",shortcut:"⌘+B"},{icon:T.a,label:"斜体",style:"ITALIC",shortcut:"⌘+I"}],ve=function(e){s()(n,e);var t=de(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={isMenuOpen:!1,isMenuAttentionShown:!1},e.timeout=null,e.toolbarRef=h.a.createRef(),e.menuButtonRef=h.a.createRef(),e.showMenuAttention=function(){e.timeout=setTimeout((function(){e.setState({isMenuAttentionShown:!0}),e.timeout=setTimeout((function(){e.setState({isMenuAttentionShown:!1})}),5e3)}),2e3)},e}return a()(n,[{key:"componentDidMount",value:function(){this.props.toolbarMenuAttention&&this.showMenuAttention()}},{key:"componentDidUpdate",value:function(e){this.props.toolbarMenuAttention&&!e.toolbarMenuAttention&&this.showMenuAttention()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.currentStyle,o=t.currentBlockType,i=t.onCommand,a=t.toolbarMainPlugins,c=t.toolbarSidePlugins,s=t.toolbarMenuPlugins,u=t.toolbarMenuAttention,l=t.isFixed,d=t.style,f=t.allowReference,p=t.allowTable,b=t.allowLink,m=t.allowDivider,g=t.allowVideo,O=t.allowZVideo,y=t.allowCatalog,j=t.catalogEnabled,E=t.menuCallout,C=this.state,w=C.isMenuOpen,T=C.isMenuAttentionShown,B=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}(0,o);return Object(H.c)("div",{style:d,className:v()("Editable-toolbar",n),onMouseDown:function(e){return e.preventDefault()},ref:this.toolbarRef},Object(H.c)("div",{className:"Editable-toolbar-controls"},be.map((function(e){return Object(H.c)(W,{key:e.icon,icon:e.icon,label:e.label,shortcut:e.shortcut,disabled:B.inlineStyle,isActive:r.has(e.style),onClick:function(){return i("toggle-inline-style-".concat(e.style))}})})),pe.filter((function(t){return!t.enable||t.enable(e.props)})).map((function(e){return Object(H.c)(W,{key:e.icon,icon:e.icon,label:e.label,shortcut:e.shortcut,disabled:B.blockType,isActive:o===e.style,onClick:function(){return i("toggle-block-type-".concat(e.style))}})})),Object(H.c)(ae,null),he.filter((function(t){return!t.enable||t.enable(e.props)})).map((function(e){return Object(H.c)(W,{key:e.icon,icon:e.icon,label:e.label,shortcut:e.shortcut,disabled:B.blockType,isActive:o===e.style,onClick:function(){return i("toggle-block-type-".concat(e.style))}})})),Object(H.c)(ae,null),fe.filter((function(t){return!t.enable||t.enable(e.props)})).map((function(e){return Object(H.c)(W,{key:e.icon,icon:e.icon,label:e.label,shortcut:e.shortcut,disabled:B.blockType,isActive:o===e.style,onClick:function(){return i("toggle-block-type-".concat(e.style))}})})),Object(H.c)(ae,null),y&&Object(H.c)(ie,{isActive:j,onClick:function(){return i("toggle-catalog")}}),f&&Object(H.c)(W,{label:"插入注释",shortcut:"⌘+⇧+9",icon:_.a,disabled:B.entity,onClick:function(){return i("insert-reference")}}),m&&Object(H.c)(W,{label:"插入分割线",shortcut:"⌘+⇧+S",icon:S.a,disabled:B.entity,onClick:function(){return i("insert-divider")}}),Object(H.c)(ae,null),Object(H.c)(W,{label:"清除格式",shortcut:"⌘+\\",icon:A.a,disabled:B.clearFormat,onClick:function(){return i("clear-format")}}),Object(H.c)(U.c,{className:"Editable-toolbarMenu",getContainer:function(){return e.toolbarRef.current},toggler:Object(H.c)(W,{label:w?null:"更多",icon:k.a,disabled:B.entity,onRef:this.menuButtonRef,onMouseEnter:T?function(){clearTimeout(e.timeout),e.setState({isMenuAttentionShown:!1})}:null}),onClick:function(e){L.a.trackEvent(e.target,{id:1183,action:"Click"})},onOpen:function(){i("click-more"),e.setState({isMenuOpen:!0})},onClose:function(){e.setState({isMenuOpen:!1})}},Object(H.c)(ce,{onClick:function(e){i("insert-doc"),L.a.trackEvent(e.target,{id:1184,action:"Click",name:"文档导入"})}},Object(H.c)(R.a,{text:!0}),"文档导入"),s),Object(H.c)(M.a,{isOpen:T,target:T&&this.menuButtonRef.current,container:this.toolbarRef.current,isFixed:l},u),c&&Object(H.c)(ae,null),c),Object(H.c)("div",{className:"Editable-toolbar-controls"},b&&Object(H.c)(W,{label:"插入链接",shortcut:"⌘+K",icon:I.a,disabled:B.entity,onClick:function(){return i("insert-link")}}),Object(H.c)(W,{label:"上传图片",icon:x.a,disabled:B.entity,onClick:function(){return i("insert-image")}}),!O&&g&&Object(H.c)(W,{label:"上传视频",icon:N.a,disabled:B.entity,onClick:function(){return i("insert-video")}}),O&&Object(H.c)(W,{label:"插入视频",icon:N.a,disabled:B.entity,onClick:function(e){L.a.trackEvent(e.target,{id:8619,action:"Add"}),i("insert-zvideo")}}),Object(H.c)(ae,null),p&&Object(H.c)(W,{label:"插入表格",shortcut:"⌘+⇧+T",icon:D.a,disabled:B.entity,onClick:function(){return i("insert-table")}}),Object(H.c)(W,{label:"插入公式",shortcut:"⌘+⇧+E",icon:P.a,disabled:B.entity,onClick:function(){return i("insert-formula")}}),a&&Object(H.c)(ae,null),a),E&&h.a.cloneElement(E,{anchor:this.menuButtonRef}))}}]),n}(p.Component);t.d=ve},function(e,t,n){"use strict";n.d(t,"f",(function(){return S})),n.d(t,"g",(function(){return A})),n.d(t,"h",(function(){return k})),n.d(t,"i",(function(){return te})),n.d(t,"c",(function(){return re})),n.d(t,"a",(function(){return oe})),n.d(t,"e",(function(){return ie})),n.d(t,"d",(function(){return ae}));var r=n(15),o=n(4),i=n(32),a=n(21),c=n(23),s=n(26),u=n(29),l=n(131),d=n(414),f=(n(80),n(33)),p=n(140),h=n(81),b=n(138),v=n(153),m=n(284),g=n(19),O=n(258),y=n(28),j=n(63),E=n.n(j),C=new s.b.Array(u.a.ZVIDEO),w=Object.assign({},Object(g.a)("people",["GET","GET_MEMBER","GET_ACTIVITIES","GET_PUBLICATIONS","GET_ANSWERS","GET_ANSWERS_SORT_BY_VOTES","GET_ANSWERS_INCLUDED","GET_ZVIDEOS","GET_ARTICLES","GET_ARTICLES_SORT_BY_VOTES","GET_ARTICLES_INCLUDED","GET_PINS","GET_COLUMNS","GET_QUESTIONS","GET_COMMERCIAL_QUESTIONS","GET_FAVLISTS","GET_FOLLOWINGS","GET_FOLLOWERS","GET_FOLLOWING_COLUMNS","GET_FOLLOWING_QUESTIONS","GET_FOLLOWING_FAVLISTS","GET_FOLLOWING_TOPICS","GET_RELATIONS_VOTED","GET_RELATIONS_THANKED","GET_VOTE_ANSWERS","GET_VOTED_ANSWERS","GET_THANK_ANSWERS","GET_THANKED_ANSWERS","GET_IKNOW_FOLLOWERS","GET_TOPIC_ANSWERS","GET_ALL_FAVLISTS","GET_BRANDS","GET_CREATIONS","GET_CREATIONS_SORT_BY_VOTES","GET_CREATIONS_FEED","GET_INFINITY_INFO","UPDATE","UPDATE_SHIELD","DELETE_COLUMN","GET_BATCH_USERS"]),Object(g.b)("people",["CHANGE_ANSWER_ORDER","CHANGE_ARTICLE_ORDER","CHANGE_ANSWERS_TOPIC","MARK_USER_STATUS","CLEAR_CREATION_FEED"]));function T(e,t){var n=("string"==typeof t?{include:t}:t)||{},r=n.include,o=n.types,a=Object(i.a)(n,["include","types"]);return Object.assign({API:{types:o||w.GET_MEMBER,endpoint:"members/".concat(encodeURIComponent(e)),query:{include:r}},schema:u.a.USER},a)}var _=["juror","locations","employments","gender","educations","business","voteup_count","thanked_Count","follower_count","following_count","cover_url","following_topic_count","following_question_count","following_favlists_count","following_columns_count","avatar_hue","answer_count","zvideo_count","articles_count","pins_count","question_count","columns_count","commercial_question_count","favorite_count","favorited_count","logs_count","included_answers_count","included_articles_count","included_text","message_thread_token","account_status","is_active","is_bind_phone","is_force_renamed","is_privacy_protected","is_blocking","is_blocked","is_following","is_followed","mutual_followees_count","vote_to_count","vote_from_count","thank_to_count","thank_from_count","thanked_count","description","hosted_live_count","participated_live_count","allow_message","recognized_count","industry_category","org_name","org_homepage","is_org_createpin_white_user","badge[?(type=best_answerer)].topics"].join(",");function S(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;return function(r){return r(T(e,{include:_,types:w.GET,isOwnProfile:t,NOTIFICATION:!1})).catch((function(t){if(n){if(Object(O.c)(t))return r({type:w.MARK_USER_STATUS,UPDATE:{update:{users:Object(o.a)({},e,{accountStatus:[{name:y.K.destroy}]})}}});if(Object(O.d)(t))return r({type:w.MARK_USER_STATUS,UPDATE:{update:{users:Object(o.a)({},e,{accountStatus:[{name:y.K.hang}]})}}});if(Object(O.e)(t))return r({type:w.MARK_USER_STATUS,UPDATE:{update:{users:Object(o.a)({},e,{accountStatus:[{name:y.K.suicide}]})}}})}return Promise.reject(t)}))}}function A(e){return T(e,["allow_message","is_followed","is_following","is_org","is_blocking","employments","answer_count","follower_count","articles_count","gender","badge[?(type=best_answerer)].topics"].join(","))}function k(e,t){return function(n,r){var i=r(),c=i.entities.users,s=i.currentUser,u=c[s],l=Object(a.decamelizeKeys)(t||e);return n({API:{types:w.UPDATE,endpoint:"me",method:"PUT",query:{include:"".concat(Object.keys(l).join(","),",cover_url,verify_apply")},fetchOptions:{zsEncrypt:!0,bodyType:"json",body:l}},UPDATE:{request:{users:Object(o.a)({},s,e||u)},success:function(e){return{users:Object(o.a)({},s,e)}},failure:{users:Object(o.a)({},s,u)}}})}}var R=Object(o.a)({},"desktop",!0);function I(e,t){return{urlToken:e,API:{types:w.GET_ACTIVITIES,endpoint:t||"v3/moments/".concat(encodeURIComponent(e),"/activities"),query:!t&&Object.assign({limit:f.b},R),headers:{"X-API-VERSION":"3.0.40"}},FAILSAFE:{timeout:3e3},schema:u.a.ACTIVITY_ARRAY}}function x(e){var t=e.urlToken,n=e.topicId,r=e.types,o=e.resource,i=void 0===o?"answers":o,a=e.offset,c=void 0===a?0:a,s=e.sortBy,l=void 0===s?"created":s,d=e.endpoint,p=e.limit,h=void 0===p?f.b:p,b=["data[*].is_normal,","admin_closed_comment,","reward_info,","is_collapsed,","annotation_action,","annotation_detail,","collapse_reason,","collapsed_by,","suggest_edit,","comment_count,","can_comment,","content,","editable_content,","attachment,","voteup_count,","reshipment_settings,","comment_permission,","mark_infos,","created_time,","updated_time,","review_info,","excerpt,",n?"":"is_labeled,label_info,","relationship.is_authorized,","voting,is_author,","is_thanked,","is_nothelp,","is_recognized;","data[*].vessay_info;","data[*].author.badge[?(type=best_answerer)].topics;","data[*].author.vip_info;","data[*].question.has_publishing_draft,","relationship"].join("");return{urlToken:t,topicId:n,API:Object.assign({types:r},d?{endpoint:d}:{endpoint:"members/".concat(encodeURIComponent(t),"/").concat(i),query:{include:b,offset:c,limit:h,sortBy:l}}),limit:h,offset:c,schema:u.a.ANSWER_ARRAY}}function N(e,t){var n=t.endpoint,r=t.sortBy,o=void 0===r?"created":r,i=t.offset,a=t.limit,c={urlToken:e,endpoint:n,offset:i,limit:void 0===a?f.b:a,types:{created:w.GET_ANSWERS,voteups:w.GET_ANSWERS_SORT_BY_VOTES,included:w.GET_ANSWERS_INCLUDED}[o]};return"included"===o?(c.resource="marked-answers",c.sortBy="created"):c.sortBy=o,x(c)}function D(e,t){var n=t.endpoint,r=t.offset,o=void 0===r?0:r,i=t.limit;return x({urlToken:e,endpoint:n,offset:o,limit:void 0===i?f.b:i,types:w.GET_VOTED_ANSWERS,resource:"relations/voted"})}function P(e,t){var n=t.endpoint,r=t.offset,o=void 0===r?0:r,i=t.limit;return x({urlToken:e,endpoint:n,offset:o,limit:void 0===i?f.b:i,types:w.GET_THANKED_ANSWERS,resource:"relations/thanked"})}function L(e,t){var n=t.endpoint,r=t.offset,o=void 0===r?0:r,i=t.limit;return x({urlToken:e,endpoint:n,offset:o,limit:void 0===i?f.b:i,types:w.GET_VOTE_ANSWERS,resource:"relations/vote"})}function M(e,t){var n=t.endpoint,r=t.offset,o=void 0===r?0:r,i=t.limit;return x({urlToken:e,endpoint:n,offset:o,limit:void 0===i?f.b:i,types:w.GET_THANK_ANSWERS,resource:"relations/thank"})}function U(e,t){var n=t.endpoint,r=t.topicId,o=t.offset,i=void 0===o?0:o,a=t.limit;return x({topicId:r,urlToken:e,endpoint:n,offset:i,limit:void 0===a?f.b:a,types:w.GET_TOPIC_ANSWERS,resource:"topics/".concat(r,"/answers")})}function B(e,t){var n=t.offset,r=void 0===n?0:n,o=t.limit,i=void 0===o?f.b:o;return{urlToken:e,API:{types:w.GET_ZVIDEOS,endpoint:"/members/".concat(encodeURIComponent(e),"/zvideos"),query:{offset:r,limit:i}},offset:r,limit:i,schema:C}}function z(e,t){var n=t.endpoint,r=t.sortBy,o=void 0===r?"created":r,i=t.offset,a=void 0===i?0:i,c=t.limit,s=void 0===c?f.b:c,l=["data[*].comment_count,","suggest_edit,","is_normal,","thumbnail_extra_info,","thumbnail,","can_comment,","comment_permission,","admin_closed_comment,","content,","voteup_count,","created,","updated,","upvoted_followees,","voting,","review_info,","is_labeled,","label_info;","data[*].vessay_info;","data[*].author.badge[?(type=best_answerer)].topics;","data[*].author.vip_info;"].join(""),d={created:w.GET_ARTICLES,voteups:w.GET_ARTICLES_SORT_BY_VOTES,included:w.GET_ARTICLES_INCLUDED},p="included"===o?"included-articles":"articles";return{urlToken:e,offset:a,limit:s,API:Object.assign({types:d[o]},n?{endpoint:n}:{endpoint:"members/".concat(encodeURIComponent(e),"/").concat(p),query:{include:l,offset:a,limit:s,sortBy:o}}),schema:u.a.ARTICLE_ARRAY}}function F(e,t){var n=t.offset,r=void 0===n?0:n,o=t.limit,i=void 0===o?f.b:o;return{urlToken:e,API:{types:w.GET_PINS,endpoint:"/members/".concat(encodeURIComponent(e),"/pins"),query:{offset:r,limit:i,includes:"data[*].upvoted_followees,admin_closed_comment"}},offset:r,limit:i,schema:u.a.PIN_ARRAY}}function G(e,t){var n=t.endpoint,r=t.offset,o=void 0===r?0:r,i=t.limit,a=void 0===i?f.a:i;return{urlToken:e,offset:o,API:Object.assign({types:w.GET_COLUMNS},n?{endpoint:n}:{endpoint:"members/".concat(encodeURIComponent(e),"/column-contributions"),query:{include:"data[*].column.intro,followers,articles_count,voteup_count,items_count",offset:o,limit:a}}),schema:u.a.COLUMN_CONTRIBUTION_ARRAY}}function V(e,t){var n=t.endpoint,r=t.offset,o=void 0===r?0:r,i=t.limit,a=void 0===i?f.a:i;return{urlToken:e,offset:o,API:Object.assign({types:w.GET_QUESTIONS},n?{endpoint:n}:{endpoint:"members/".concat(encodeURIComponent(e),"/questions"),query:{include:"data[*].created,answer_count,follower_count,author,admin_closed_comment",offset:o,limit:a}}),schema:u.a.QUESTION_ARRAY}}function H(e,t){var n=t.endpoint,r=t.offset,o=void 0===r?0:r,i=t.limit,a=void 0===i?f.a:i;return{urlToken:e,offset:o,API:Object.assign({types:w.GET_COMMERCIAL_QUESTIONS},n?{endpoint:n}:{endpoint:"members/".concat(encodeURIComponent(e),"/commercial-questions"),query:{include:"data[*].created,answer_count,follower_count,author,is_muted,question_type,admin_closed_comment",offset:o,limit:a}}),schema:u.a.COMMERCIAL_QUESTION_ARRAY}}function q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.endpoint,r=t.offset,o=void 0===r?0:r,i=t.limit,a=void 0===i?f.a:i,c=t.isAll;return{urlToken:e,API:Object.assign({types:c?w.GET_ALL_FAVLISTS:w.GET_FAVLISTS},n?{endpoint:n}:{endpoint:"people/".concat(encodeURIComponent(e),"/collections"),query:{include:"data[*].updated_time,answer_count,follower_count,creator,description,is_following,comment_count,created_time;data[*].creator.vip_info",offset:o,limit:a}}),offset:o,schema:u.a.FAVLIST_ARRAY}}function K(e){var t=e.urlToken,n=e.resource,r=e.types,o=e.endpoint,i=e.offset,a=e.limit;return{urlToken:t,API:Object.assign({types:r},o?{endpoint:o}:{endpoint:"members/".concat(encodeURIComponent(t),"/").concat(n),query:{include:"data[*].answer_count,articles_count,gender,follower_count,is_followed,is_following,badge[?(type=best_answerer)].topics",offset:i,limit:a}}),offset:i,schema:u.a.USER_ARRAY}}function W(e,t){var n=t.endpoint,r=t.offset,o=void 0===r?0:r,i=t.limit,a=void 0===i?f.a:i;return K({urlToken:e,types:w.GET_FOLLOWINGS,resource:"followees",offset:o,endpoint:n,limit:a})}function Y(e,t){var n=t.endpoint,r=t.offset,o=void 0===r?0:r,i=t.limit,a=void 0===i?f.a:i;return K({urlToken:e,types:w.GET_FOLLOWERS,resource:"followers",endpoint:n,offset:o,limit:a})}function Q(e,t){var n=t.endpoint,r=t.offset,o=void 0===r?0:r,i=t.limit,a=void 0===i?f.a:i;return Object.assign({},K({urlToken:e,types:w.GET_IKNOW_FOLLOWERS,resource:"relations/mutuals",offset:o,endpoint:n,limit:a}),{NOTIFICATION:!1})}function Z(e,t){var n=t.endpoint,r=t.offset,o=void 0===r?0:r,i=t.limit,a=void 0===i?f.a:i;return{urlToken:e,API:Object.assign({types:w.GET_FOLLOWING_COLUMNS},n?{endpoint:n}:{endpoint:"members/".concat(encodeURIComponent(e),"/following-columns"),query:{include:"data[*].intro,followers,articles_count,voteup_count,items_count",offset:o,limit:a}}),offset:o,schema:u.a.COLUMN_ARRAY}}function J(e,t){var n=t.endpoint,r=t.offset,o=void 0===r?0:r,i=t.limit,a=void 0===i?f.a:i;return{urlToken:e,API:Object.assign({types:w.GET_FOLLOWING_QUESTIONS},n?{endpoint:n}:{endpoint:"members/".concat(encodeURIComponent(e),"/following-questions"),query:{include:"data[*].created,answer_count,follower_count,author",offset:o,limit:a}}),offset:o,schema:u.a.QUESTION_ARRAY}}function X(e,t){var n=t.endpoint,r=t.offset,o=void 0===r?0:r,i=t.limit,a=void 0===i?f.a:i;return{urlToken:e,API:Object.assign({types:w.GET_FOLLOWING_FAVLISTS},n?{endpoint:n}:{endpoint:"members/".concat(encodeURIComponent(e),"/following-favlists"),query:{include:"data[*].updated_time,answer_count,follower_count,creator,description,is_following,comment_count,created_time",offset:o,limit:a}}),offset:o,schema:u.a.FAVLIST_ARRAY}}function $(e,t){var n=t.endpoint,r=t.offset,o=void 0===r?0:r,i=t.limit,a=void 0===i?f.a:i;return{urlToken:e,API:Object.assign({types:w.GET_FOLLOWING_TOPICS},n?{endpoint:n}:{endpoint:"members/".concat(encodeURIComponent(e),"/following-topic-contributions"),query:{include:"data[*].topic.introduction",offset:o,limit:a}}),offset:o,schema:u.a.TOPIC_CONTRIBUTION_ARRAY}}function ee(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.endpoint,r=t.offset,o=void 0===r?0:r;return{urlToken:e,API:Object.assign({types:w.GET_PUBLICATIONS},n?{endpoint:n}:{root:E.a.fetchRoot.api,endpoint:"/books/people/".concat(encodeURIComponent(e),"/publications"),query:{offset:o,limit:5}}),offset:o,schema:u.a.EBOOK_ARRAY}}function te(e,t){return function(n,r){var i=r().entities.users[e];return n({API:{types:w.UPDATE_SHIELD,endpoint:"members/".concat(encodeURIComponent(e),"/actions/block"),method:t?"POST":"DELETE"},UPDATE:{request:{users:Object(o.a)({},e,{isBlocking:t})},failure:{users:Object(o.a)({},e,i)}}})}}function ne(e,t){var n=t.topicId,r=t.sortBy,o=void 0===r?"created":r,i=t.offset,a=void 0===i?0:i,c=t.limit,s=void 0===c?f.b:c,l=t.endpoint,d={created:w.GET_CREATIONS,votenum:w.GET_CREATIONS_SORT_BY_VOTES};return{urlToken:e,offset:a,limit:s,topicId:n,API:Object.assign({types:d[o]},l?{endpoint:l}:{endpoint:"members/".concat(encodeURIComponent(e),"/topics/").concat(n,"/creations"),query:{offset:a,limit:s,sortBy:o}}),schema:u.a.CREATION_ARRAY}}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="/members/".concat(encodeURIComponent(e),"/profile/creations/feed"),o=t.type,i=void 0===o?"all":o;return function(e,o){var a,c=null===(a=o().people.creationsFeed)||void 0===a?void 0:a[i],s=((null==c?void 0:c.paging)||{}).next;return e({meta:{contentType:i},API:Object.assign({types:w.GET_CREATIONS_FEED},s?{endpoint:s}:{endpoint:r,query:t}),FAILSAFE:n})}}function oe(){return{type:w.CLEAR_CREATION_FEED}}function ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.offset,o=n.limit,i=n.topicId;return function(n,a){var c=a(),s=c.people,u=c.currentUser,l=(s["".concat(t,"ByUser")][e]||{}).next,d=r||!l?{offset:r,limit:o}:{endpoint:l};switch(t){case"activities":return n(I(e,l));case"answers":return n(N(e,d));case"answersSortByVotes":return n(N(e,Object.assign({sortBy:"voteups"},d)));case"answersIncluded":return n(N(e,Object.assign({sortBy:"included"},d)));case"votedAnswers":return n(D(e,d));case"thankedAnswers":return n(P(e,d));case"voteAnswers":return n(L(e,d));case"thankAnswers":return n(M(e,d));case"topicAnswers":return n(U(e,Object.assign({topicId:i},d)));case"zvideos":return n(B(e,d));case"articles":return n(z(e,d));case"pins":return n(F(e,d));case"articlesSortByVotes":return n(z(e,Object.assign({sortBy:"voteups"},d)));case"articlesIncluded":return n(z(e,Object.assign({sortBy:"included"},d)));case"columns":return n(G(e,d));case"questions":return n(V(e,d));case"commercialQuestions":return n(H(e,d));case"favlists":return n(q(e,d));case"following":return n(W(e,d));case"followers":return n(Y(e,d));case"mutuals":return n(Q(e,d));case"followingColumns":return n(Z(e,d));case"followingQuestions":return n(J(e,d));case"followingFavlists":return n(X(e,d));case"followingTopics":return n($(e,d));case"publications":return n(ee(e,d));case"allFavlists":e=e||u;var f=(s["".concat(t,"ByUser")][e]||{}).next;return n(q(e,Object.assign({isAll:!0},{endpoint:f})));case"creations":return n(ne(e,Object.assign({topicId:i,sortBy:"created"},d)));case"creationsSortByVotes":return n(ne(e,Object.assign({topicId:i,sortBy:"votenum"},d)));default:return Promise.reject(new Error("Mismatched loadItems ".concat(t)))}}}function ae(e){return{API:{types:w.GET_BRANDS,endpoint:"/brand/".concat(e,"/brands")}}}var ce=Object(f.h)(w.GET_COLUMNS,{mapActionToKey:function(e){return e.urlToken}}),se=Object(f.h)(w.DELETE_COLUMN,{mapActionToKey:function(e){return e}});var ue=Object(f.h)(w.GET_FOLLOWING_TOPICS,{mapActionToKey:function(e){return e.urlToken},additionalCaseTypes:[b.a.UPDATE_FOLLOW.success],additionalCase:function(e,t){if(t.type===b.a.UPDATE_FOLLOW.success){var n=t.topicId,o=e.ids,i=e.totals;if(!o.includes(n))return Object.assign({},e,{totals:i+1,ids:[n].concat(Object(r.a)(o))})}return e}});var le=Object(f.h)(w.GET_TOPIC_ANSWERS,{mapActionToKey:function(e){return e.topicId}});var de=Object(f.h)(w.GET_CREATIONS,{mapActionToKey:function(e){return e.topicId}});var fe=Object(f.h)(w.GET_CREATIONS_SORT_BY_VOTES,{mapActionToKey:function(e){return e.topicId}});var pe=function(e){return e.urlToken};t.b=Object(c.combineReducers)({profileStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case w.GET.failure:case w.GET.success:return Object.assign({},e,Object(o.a)({},t.result,Object.assign({},t.payload&&{token:{id:t.payload.id,urlToken:t.payload.urlToken}},{isFetching:!1,isDrained:!0})));default:return e}},activitiesByUser:Object(f.e)(w.GET_ACTIVITIES,{mapActionToKey:pe}),answersByUser:Object(f.h)(w.GET_ANSWERS,{mapActionToKey:pe}),answersSortByVotesByUser:Object(f.h)(w.GET_ANSWERS_SORT_BY_VOTES,{mapActionToKey:pe}),answersIncludedByUser:Object(f.h)(w.GET_ANSWERS_INCLUDED,{mapActionToKey:pe}),votedAnswersByUser:Object(f.h)(w.GET_VOTED_ANSWERS,{mapActionToKey:pe}),thankedAnswersByUser:Object(f.h)(w.GET_THANKED_ANSWERS,{mapActionToKey:pe}),voteAnswersByUser:Object(f.h)(w.GET_VOTE_ANSWERS,{mapActionToKey:pe}),thankAnswersByUser:Object(f.h)(w.GET_THANK_ANSWERS,{mapActionToKey:pe}),topicAnswersByUser:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.urlToken;return Object.values(w.GET_TOPIC_ANSWERS).includes(n)?Object(o.a)({},r,le(e[r],t)):e},zvideosByUser:Object(f.h)(w.GET_ZVIDEOS,{mapActionToKey:pe}),articlesByUser:Object(f.h)(w.GET_ARTICLES,{mapActionToKey:pe}),articlesSortByVotesByUser:Object(f.h)(w.GET_ARTICLES_SORT_BY_VOTES,{mapActionToKey:pe}),articlesIncludedByUser:Object(f.h)(w.GET_ARTICLES_INCLUDED,{mapActionToKey:pe}),pinsByUser:Object(f.h)(w.GET_PINS,{mapActionToKey:pe}),questionsByUser:Object(f.h)(w.GET_QUESTIONS,{mapActionToKey:pe,addSuccessType:h.a.ADD.success}),commercialQuestionsByUser:Object(f.h)(w.GET_COMMERCIAL_QUESTIONS,{mapActionToKey:pe}),favlistsByUser:Object(f.h)(w.GET_FAVLISTS,{mapActionToKey:pe,additionalCaseTypes:[m.a.ADD.success,m.a.UPDATE.success,m.a.DELETE.success],additionalCase:m.c,addSuccessType:l.a.ADD.SUCCESS}),followingByUser:Object(f.h)(w.GET_FOLLOWINGS,{mapActionToKey:pe,additionalCaseTypes:[v.b.UPDATE_FOLLOWERS.success],additionalCase:function(e,t){var n=t.type,o=t.expect,i=t.userUrlToken;if(n===v.b.UPDATE_FOLLOWERS.success&&o){var a=e.ids,c=e.totals;if(!a.includes(i))return Object.assign({},e,{totals:c+1,ids:[i].concat(Object(r.a)(a))})}return e}}),followersByUser:Object(f.h)(w.GET_FOLLOWERS,{mapActionToKey:pe}),mutualsByUser:Object(f.e)(w.GET_IKNOW_FOLLOWERS,{mapActionToKey:pe}),followingColumnsByUser:Object(f.h)(w.GET_FOLLOWING_COLUMNS,{mapActionToKey:pe,additionalCaseTypes:[p.a.UPDATE_FOLLOW.success],additionalCase:function(e,t){var n=t.type,o=t.expect,i=t.columnId;if(n===p.a.UPDATE_FOLLOW.success&&o){var a=e.ids,c=e.totals;if(!a.includes(i))return Object.assign({},e,{totals:c+1,ids:[i].concat(Object(r.a)(a))})}return e}}),followingQuestionsByUser:Object(f.h)(w.GET_FOLLOWING_QUESTIONS,{mapActionToKey:pe,addSuccessType:h.a.ADD.success}),followingFavlistsByUser:Object(f.h)(w.GET_FOLLOWING_FAVLISTS,{mapActionToKey:pe}),followingTopicsByUser:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.urlToken;if(Object.values(w.GET_FOLLOWING_TOPICS).includes(n)){var i=t.result||[];t.result=i.map((function(e){return e.topic}));var a=e[r]||{isFetching:!1,isDrained:!1,totals:0,ids:[],contributions:{}};return ue(Object.assign({},e,Object(o.a)({},r,Object.assign({},a,{contributions:i.reduce((function(e,t){return Object.assign({},e,Object(o.a)({},t.topic,t.contributionsCount))}),a.contributions)}))),t)}return e},publicationsByUser:Object(f.e)(w.GET_PUBLICATIONS,{mapActionToKey:pe}),columnsByUser:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.urlToken;if(Object.values(w.DELETE_COLUMN).includes(n)){var i=t.columnId,a=t.memberToken,c=e[a].ids;return se(Object.assign({},e,Object(o.a)({},a,Object.assign({},e[a],{ids:c.map((function(e){if(e!==i)return e}))}))),t)}if(Object.values(w.GET_COLUMNS).includes(n)){var s=t.result||[];t.result=s.map((function(e){return e.column}));var u=e[r]||{isFetching:!1,isDrained:!1,totals:0,ids:[],contributions:{}};return ce(Object.assign({},e,Object(o.a)({},r,Object.assign({},u,{contributions:s.reduce((function(e,t){return Object.assign({},e,Object(o.a)({},t.column,t.contributionsCount))}),u.contributions)}))),t)}return e},allFavlistsByUser:d.a,brands:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return t.type===w.GET_BRANDS.success?t.payload.data:e},creationsByUser:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.urlToken;return Object.values(w.GET_CREATIONS).includes(n)?Object(o.a)({},r,de(e[r],t)):e},creationsSortByVotesByUser:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.urlToken;return Object.values(w.GET_CREATIONS_SORT_BY_VOTES).includes(n)?Object(o.a)({},r,fe(e[r],t)):e},creationsFeed:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case w.GET_CREATIONS_FEED.request:var i=t.meta.contentType,a=e[i]||{isFetching:!0,isDrained:!1,paging:{},ids:[],items:[]};return Object.assign({},e,Object(o.a)({},i,Object(f.g)(a,{isFetching:!0})));case w.GET_CREATIONS_FEED.failure:var c=t.meta.contentType;return Object.assign({},e,Object(o.a)({},c,Object(f.g)(e[c],{isFetching:!1,isDrained:!0})));case w.GET_CREATIONS_FEED.success:var s=r.data,u=r.paging;if(!s||!u)return e;var l=t.meta.contentType,d=u.isStart,p=u.isEnd,h=!d&&p||d&&p,b=e[l],v=s.map((function(e){var t=e.content,n=e.notiSubtype;return Object.assign({},t,{contentType:n})})),m=v.filter((function(e){var t=e.urlToken;return!t||!b.ids.includes(t)})),g=Object(f.g)(b,{isFetching:!1,isDrained:h,paging:u,ids:m.map((function(e){return e.urlToken})),items:m});return Object.assign({},e,Object(o.a)({},l,g));case w.CLEAR_CREATION_FEED:return{};default:return e}},infinity:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===w.GET_INFINITY_INFO.success){var n=t.meta,r=t.payload;return Object.assign({},e,Object(o.a)({},n,r))}return e},batchUsers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===w.GET_BATCH_USERS.success){var n=t.payload;return Object.assign({},e,n)}return e}})},function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"g",(function(){return l}));var r=n(17),o={success:"success",failure:"failure",loading:"loading"},i={0:"text",1:"image",2:"sticker",6:"ecomcard"},a=Object.entries(i).reduce((function(e,t){var n=Object(r.a)(t,2),o=n[0];return e[n[1]]=Number(o),e}),{}),c={text:"text",image:"image",sticker:"sticker",ecomcard:"ecomcard"},s=3e5,u=320,l=20},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n(17);var r=n(60),o=n.n(r),i=function(e){var t=e||{},n=t.type,r=t.id,i=t.urlToken,a=t.q;switch(n){case"question":return"/questions/".concat(r);case"answer":return"/answers/".concat(r);case"article":case"p":return"/articles/".concat(r);case"column":return"/columns/".concat(r);case"live":return"/lives/".concat(r);case"ebook":case"book":return"/pub/book/".concat(r);case"feed":return"/feed";case"topic":return"/topics/".concat(r);case"people":return"/people/".concat(i||r);case"search":return"/search?".concat(o.a.stringify({q:a}));case"video":return"video_topic/".concat(r);case"zvideo":return"/zvideo/".concat(r);case"zvideo_answer":case"zvideo_article":var c=n.replace("zvideo_","");return"/".concat(c,"s/").concat(r);default:return null}},a=function(e,t){var n=t?"?".concat(o.a.stringify(t)):"",r="string"==typeof e?e:i(e);if(r){var a=r.startsWith("/")?r.slice(1):r;return"zhihu://".concat(a).concat(n)}return"zhihu://".concat(n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return B}));var r=n(55),o=n.n(r),i=n(22),a=n.n(i),c=n(24),s=n.n(c),u=n(25),l=n.n(u),d=n(27),f=n.n(d),p=n(16),h=n.n(p),b=n(30),v=n.n(b),m=n(41),g=n.n(m),O=n(2),y=n.n(O),j=n(1),E=n(687),C=n.n(E),w=n(6),T=n.n(w),_=n(1056),S=n(247),A=n.n(S),k=n(121),R=n.n(k),I=n(66),x=n.n(I),N=n(444),D=n(445),P=n(105),L=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 U=function(e){l()(n,e);var t=M(n);function n(){var e;a()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleMouseEnter=function(){e.node.focus()},e}return s()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.value,r=t.text,o=t.className,i=t.onClick,a=t.children,c=g()(t,["value","text","className","onClick","children"]);return Object(L.c)("button",v()({ref:function(t){e.node=t},className:T()("Select-option",o),onClick:i,onMouseEnter:this.handleMouseEnter,tabIndex:-1,role:"option"},c),a||r||n)}}]),n}(j.Component);U.propTypes={value:y.a.oneOfType([y.a.string,y.a.number,y.a.bool]).isRequired,text:y.a.string,onClick:y.a.func,children:y.a.node};var B=U;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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 F=function(e){l()(n,e);var t=z(n);function n(){var e;return a()(this,n),(e=t.call(this)).state={open:!1},e.handleOpen=function(){e.timeout=setTimeout((function(){if(e.list){var t=e.getSelectedIndex(),n=e.isRepositioned?0:t,r=e.list.querySelector(".Select-option:nth-child(".concat(n+1,")"));r&&r.focus()}}),100),e.setState({open:!0})},e.handleClose=function(){clearTimeout(e.timeout),e.isRepositioned=!1,e.setState({open:!1})},e.handleItemClick=function(t){var n=e.props,r=n.onChange,o=n.children,i=j.Children.toArray(o)[t];r&&r(i.props.value,t)},e.position=function(t){if(!t)return null;var n=e.props,r=n.plain,o=n.margin,i=n.needsReposition,a=n.topExcludedHeight,c=t.getBoundingClientRect(),s=c.top,u=c.left,l=getComputedStyle(t);e.listRect||(e.listRect=e.list.getBoundingClientRect());var d=e.listRect.width,f=e.list.clientHeight,p=e.list.scrollHeight,h=e.getSelectedIndex(),b=e.list.querySelector(".Select-option:nth-child(".concat(h+1,")"));if(!b)return null;var v=b.offsetTop,m=b.offsetHeight,g=A()(Math.round(v-(f-m)/2),0,p-f),O=s+-(v-g+1)+o;i&&O<a&&(O=s-9+o,e.isRepositioned=!0);var y=u;return r&&(y-=20),y=Math.min(window.innerWidth-d,y),e.list.scrollTop=g,{targetContainerStyle:{top:O=Math.max(14,O),left:y=Math.max(14,y),fontSize:l.fontSize}}},e.id=R()("Select"),e.isRepositioned=!1,e}return s()(n,[{key:"getSelectedIndex",value:function(){var e=this.props,t=e.value,n=e.children,r=j.Children.toArray(n).findIndex((function(e){return e.props.value===t}));return-1!==r?r:0}},{key:"renderToggler",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.text,r=t.value,o=this.props,i=o.buttonClassName,a=o.plain,c=o.large,s=o.width,u=o.disabled;return Object(L.c)(D.a,{large:c,preset:a?"plain":null,className:T()("Select-button",i,{"Select-plainButton":a}),style:{width:s},role:"combobox","aria-expanded":!1,disabled:u},"function"==typeof e?e(n,r):e||n||r,Object(L.c)(_.a,{className:"Select-arrow"}))}},{key:"render",value:function(){var e=this,t=x()(this.props,["buttonClassName"]),n=t.text,r=t.children,i=t.listClassName,a=t.menuToggler,c=t.width,s=g()(t,["text","children","listClassName","menuToggler","width"]),u=j.Children.toArray(r),l=u[this.getSelectedIndex()],d=a||this.renderToggler(n,l&&l.props),f=T()(o()({"Select-list":!0},i,i));return Object(L.c)(P.a,v()({toggler:d,fade:!0,delay:0,arrowed:!1,targetClassName:"Select-popoverTarget",position:this.position,onOpen:this.handleOpen,onClose:this.handleClose},s),Object(L.c)(N.a,{selector:".Select-option"},Object(L.c)("div",{className:f,role:"listbox",style:{width:c},ref:function(t){e.list=t}},u.map((function(t,n){return Object(j.cloneElement)(t,{id:"".concat(e.id,"-").concat(n),onClick:function(r){t.props.onClick&&t.props.onClick(r),e.handleItemClick(n)},key:n})})))))}}]),n}(j.Component);F.propTypes={className:y.a.string,listClassName:y.a.string,buttonClassName:y.a.string,plain:y.a.bool,large:y.a.bool,width:y.a.number,value:y.a.oneOfType([y.a.string,y.a.number,y.a.bool]),text:y.a.oneOfType([y.a.node,y.a.func]),margin:y.a.number,needsReposition:y.a.bool,topExcludedHeight:y.a.number,onChange:y.a.func,children:y.a.node,disabled:y.a.bool},F.defaultProps={plain:!1,large:!1,margin:0,needsReposition:!1,topExcludedHeight:60,disabled:!1};t.b=C()(F,{value:"onChange"})},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return l}));n(4);var r=n(40),o=n.n(r),i=n(28),a=n(19),c=Object.assign({},Object(a.b)("env",["UPDATE_USERAGENT","SET_TRAFFICSOURCE","UPDATE_EDITION","SET_CTX","SET_THEME","TOGGLE_ENABLE_SHORTCUT","GET_ANNOUNCEMENT","SET_REFERER","UPDATE_CONF","UPDATE_LOGGED","UPDATE_AUTHINFO","UPDATE_APPVIEW_CONFIG","UPDATE_TRAFFIC_FREE","SET_UDID","SET_MODE","SET_ENV_VARS"]),Object(a.a)("env",["GET_IPINFO"]));function s(){return{API:{types:c.GET_IPINFO,endpoint:"ip_info"},FAILSAFE:!0}}function u(e){return{type:c.UPDATE_USERAGENT,payload:e}}function l(e){return e?o.a.delete(i.t):o.a.set(i.t,!1),{type:c.TOGGLE_ENABLE_SHORTCUT,payload:e}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l}));var r=n(55),o=n.n(r),i=n(208),a=n.n(i);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=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 i,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u={BASIC_STYLING:"basic_styling",LIST_CONTENT:"list_content",BLOCK_CONTENT:"block_content",STRUCTURE_STYLING:"structure_styling",FORMAT_EDITING:"format_editing",MENU:"menu",RIGHT_SIDE:"right_side",BASIC_MEDIA:"basic_media",PROFESSIONAL_MEDIA:"professional_media",CUSTOM_MAIN:"custom_main"},l=function(e){var t,n=Object.values(u).reduce((function(e,t){return Object.assign({},e,o()({},t,[]))}),{}),r=c(e);try{for(r.s();!(t=r.n()).done;){var i=t.value.toolbar;if(a()(i)||Array.isArray(i)){a()(i)&&(i=[i]);var s,l=c(i);try{for(l.s();!(s=l.n()).done;){var d=s.value,f=d.section;n[void 0===f?"custom-main":f].push(d)}}catch(e){l.e(e)}finally{l.f()}}}}catch(e){r.e(e)}finally{r.f()}return n};t.a=u},function(e,t,n){var r=n(552),o=n(466)((function(e,t,n){r(e,t,n)}));e.exports=o},function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var r=n(77),o=n.n(r),i=n(22),a=n.n(i),c=n(24),s=n.n(c),u=n(25),l=n.n(u),d=n(27),f=n.n(d),p=n(16),h=n.n(p),b=n(30),v=n.n(b),m=n(41),g=n.n(m),O=n(2),y=n.n(O),j=n(1),E=n(6),C=n.n(E),w=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 _=function(e){l()(n,e);var t=T(n);function n(){return a()(this,n),t.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.onRef,r=g()(e,["className","onRef"]);return Object(w.c)("ul",v()({ref:n,role:"tablist",className:C()("Tabs",t)},r))}}]),n}(j.Component);function S(e){var t=e.className,n=e.meta,r=e.children,i=g()(e,["className","meta","children"]),a=j.Children.only(r),c=a.type.displayName,s={className:C()("Tabs-link",a.props.className)};return void 0!==n&&(s.children=[].concat(o()(j.Children.toArray(a.props.children)),[Object(w.c)("span",{key:"meta",className:"Tabs-meta"},n)])),"Link"!==c&&"IndexLink"!==c||(s.activeClassName="is-active"),Object(w.c)("li",v()({role:"tab",className:C()("Tabs-item",t,{"Tabs-item--noMeta":void 0===n})},i),Object(j.cloneElement)(a,s))}S.propTypes={meta:y.a.node};t.b=_},function(e,t,n){var r=n(474),o=0;e.exports=function(e){var t=++o;return r(e)+t}},function(e,t,n){var r=n(163),o=n(839),i=n(457),a=Math.max,c=Math.min;e.exports=function(e,t,n){var s,u,l,d,f,p,h=0,b=!1,v=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=s,r=u;return s=u=void 0,h=t,d=e.apply(r,n)}function O(e){return h=e,f=setTimeout(j,t),b?g(e):d}function y(e){var n=e-p;return void 0===p||n>=t||n<0||v&&e-h>=l}function j(){var e=o();if(y(e))return E(e);f=setTimeout(j,function(e){var n=t-(e-p);return v?c(n,l-(e-h)):n}(e))}function E(e){return f=void 0,m&&s?g(e):(s=u=void 0,d)}function C(){var e=o(),n=y(e);if(s=arguments,u=this,p=e,n){if(void 0===f)return O(p);if(v)return clearTimeout(f),f=setTimeout(j,t),g(p)}return void 0===f&&(f=setTimeout(j,t)),d}return t=i(t)||0,r(n)&&(b=!!n.leading,l=(v="maxWait"in n)?a(i(n.maxWait)||0,t):l,m="trailing"in n?!!n.trailing:m),C.cancel=function(){void 0!==f&&clearTimeout(f),h=0,s=p=u=f=void 0},C.flush=function(){return void 0===f?d:E(o())},C}},function(e,t,n){"use strict";var r=n(199);t.a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(r.a)(t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return s}));var r=n(32),o=n(0),i=n(48),a=n(229),c=function(e,t){var n=Object.assign({delay:2e3},t),r=n.delay,i=n.theme,c=n.className;return a.a.show(Object(o.b)(a.a,{className:c,delay:r,notification:{text:e,theme:i}}))},s=function(e,t){var n=t||{},a=n.content,c=Object(r.a)(n,["content"]),s=a&&Object(o.b)("div",{style:{textAlign:"center"},children:a});return i.a.confirm(s,Object.assign({title:e},c))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return l}));n(550);var r=n(1),o=n(403),i=n(200),a=n(199),c=Object.prototype.hasOwnProperty,s=Object(r.createContext)("undefined"!=typeof HTMLElement?Object(o.a)():null),u=Object(r.createContext)({}),l=(s.Provider,function(e){var t=function(t,n){return Object(r.createElement)(s.Consumer,null,(function(r){return e(t,r,n)}))};return Object(r.forwardRef)(t)}),d="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",f=function(e,t){var n={};for(var r in t)c.call(t,r)&&(n[r]=t[r]);return n[d]=e,n},p=function(e,t,n,o){var s=null===n?t.css:t.css(n);"string"==typeof s&&void 0!==e.registered[s]&&(s=e.registered[s]);var u=t[d],l=[s],f="";"string"==typeof t.className?f=Object(i.a)(e.registered,l,t.className):null!=t.className&&(f=t.className+" ");var p=Object(a.a)(l);Object(i.b)(e,p,"string"==typeof u);f+=e.key+"-"+p.name;var h={};for(var b in t)c.call(t,b)&&"css"!==b&&b!==d&&(h[b]=t[b]);return h.ref=o,h.className=f,Object(r.createElement)(u,h)},h=l((function(e,t,n){return"function"==typeof e.css?Object(r.createElement)(u.Consumer,null,(function(r){return p(t,e,r,n)})):p(t,e,null,n)}))},function(e,t,n){"use strict";var r=n(0),o=n(82),i=n.n(o),a=n(13),c=n(319),s=n(110);t.a=function(e){var t=e.subtitle,n=e.errorImage,o=void 0===n?"//zhstatic.zhihu.com/assets/error/liukanshan_wire.svg":n,u=Object(a.useSelector)((function(e){return e.env.ctx.query.error_title}))||e.title;return Object(r.c)("div",{className:"ErrorPage",children:[Object(r.b)(i.a,{title:u}),Object(r.c)("div",{className:"ErrorPage-container",children:[Object(r.c)("div",{className:"ErrorPage-text",children:[Object(r.b)("h1",{className:"ErrorPage-title",children:u}),Object(r.b)("p",{className:"ErrorPage-subtitle",children:t}),Object(r.b)(s.a,{a:!0,preset:"primary",color:"blue",className:"ErrorPage-primaryButton",to:"https://www.zhihu.com",children:"去往首页"})]}),Object(r.b)("div",{className:"ErrorPage-errorImageContainer",children:Object(r.b)("img",{className:"ErrorPage-errorImage",src:o,alt:"page error"})})]}),Object(r.b)(c.c,{children:Object(r.b)(c.b,{})})]})}},function(e,t,n){var r,o;
|
|
|
/*!
|
|
|
* JavaScript Cookie v2.2.1
|
|
|
* https://github.com/js-cookie/js-cookie
|
|
|
*
|
|
|
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
|
* Released under the MIT license
|
|
|
*/!function(i){if(void 0===(o="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o),!0,e.exports=i(),!!0){var a=window.Cookies,c=window.Cookies=i();c.noConflict=function(){return window.Cookies=a,c}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var c="";for(var s in i)i[s]&&(c+="; "+s,!0!==i[s]&&(c+="="+i[s].split(";")[0]));return document.cookie=t+"="+n+c}}function a(e,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var c=i[a].split("="),s=c.slice(1).join("=");n||'"'!==s.charAt(0)||(s=s.slice(1,-1));try{var u=t(c[0]);if(s=(r.read||r)(s,u)||t(s),n)try{s=JSON.parse(s)}catch(e){}if(o[u]=s,e===u)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return a(e,!1)},o.getJSON=function(e){return a(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},function(e,t,n){"use strict";function r(){0}"undefined"!=typeof window?e.exports={listen:n(611),subscribe:n(903),unsubscribe:n(909)}:e.exports={listen:r,subscribe:r,unsubscribe:r}},function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u}));var r=/([-\w]+)(="([^"]+)"|='([^']+)')?/g,o=function(e){for(var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.decodeValue,i=void 0!==o&&o,c={};t=r.exec(e);){var s=t[1],u=t[3]||t[4];c[s]=(i?a(u):u)||""}return c},i=function(e){if(!e)return null;try{return JSON.parse(e)}catch(e){return null}};function a(){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 u(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";n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return i}));var r={};function o(e){r.http=e}function i(e){r.enableSchema=e}Object.defineProperties(r,{http:{writable:!0,value:function(e,t){return fetch(e,t).then((function(e){return e.ok?e.json():Promise.reject(e.json())}))}},enableSchema:{writable:!0,value:!1}}),Object.seal(r),t.a=r},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(161);t.a=Object(r.b)("favlists",["ADD","UPDATE_ITEM","GET_FAVORITE_STATUS"]);var o=Object(r.c)("favlists",["UPDATE_RELATIONS"])},function(e,t,n){"use strict";var r=n(77),o=n.n(r),i=n(30),a=n.n(i),c=n(41),s=n.n(c),u=(n(1),n(6)),l=n.n(u),d=n(3),f=function(e){var t=e.className,n=e.duration,r=e.count,i=e.fill,c=e.childWidth,u=e.gap,f=s()(e,["className","duration","count","fill","childWidth","gap"]),p=(c+u)*r-u;return Object(d.c)("div",a()({className:l()("BounceLoading",t),style:{width:p,height:3*c}},f),function(e){return o()(Array(e))}(r).map((function(e,t){var o={top:c,left:(c+u)*t,width:c,height:c,backgroundColor:i,animationDuration:"".concat(n,"s"),animationDelay:"".concat(-n/r/2*t,"s")};return Object(d.c)("span",{key:"circle-".concat(t),className:"BounceLoading-child",style:o})})))};f.defaultProps={childWidth:6,gap:12,count:4,duration:.8};t.a=f},function(e,t,n){"use strict";n.d(t,"h",(function(){return b})),n.d(t,"g",(function(){return v})),n.d(t,"e",(function(){return m})),n.d(t,"d",(function(){return g})),n.d(t,"a",(function(){return O})),n.d(t,"f",(function(){return y})),n.d(t,"c",(function(){return j}));var r=n(4),o=n(80),i=n.n(o),a=n(23),c=n(29),s=n(35),u=n(19),l=n(153),d=n(33),f=n(160),p=Object(u.a)("article",["LIKE","VOTE","GET_VOTERS","GET_COMMENT_PERMISSION","GET_CONCERNED_UPVOTERS"]),h={up:1,down:-1,neutral:0};function b(e,t,n){return function(o,i){var a,c=i().entities.articles[e],u=("koc"===n?c.article:c)||{},l=u.voteupCount,d=u.votePosting,f=u.voting;if(a=-1===f&&"neutral"===t||0===f&&"down"===t?l:Math.max(l+h[t],0),!d)return o({id:e,API:{types:p.VOTE,endpoint:"articles/".concat(e,"/voters"),method:"POST",body:{voting:h[t]}},UPDATE:{request:{articles:Object(r.a)({},e,{voteupCount:a,voting:h[t],votePosting:!0})},success:function(t){return"koc"===n?{articles:Object(r.a)({},e,{votePosting:!1,article:Object.assign({},t)})}:{articles:Object(r.a)({},e,Object.assign({votePosting:!1},t))}},failure:{articles:Object(r.a)({},e,Object.assign({votePosting:!1},c))}},NOTIFICATION:{failure:s.a}})}}function v(e){return function(t,n){var o=n().entities.articles[e],i=o.voteupCount,a=o.voting,c=1===a?i-1:i+1;return t({id:e,API:{types:p.LIKE,endpoint:"articles/".concat(e,"/likers"),method:1===a?"delete":"post"},UPDATE:{request:{articles:Object(r.a)({},e,{voteupCount:Math.max(c,0),voting:1===a?0:1})},success:function(t){return{articles:Object(r.a)({},e,t)}},failure:{articles:Object(r.a)({},e,o)}},NOTIFICATION:{failure:s.a}})}}function m(e){return function(t,n){var r=n().articles,o=((void 0===r?{}:r).voters[e]||{}).next;return t({id:e,API:Object.assign({types:p.GET_VOTERS},o?{endpoint:o}:{endpoint:"articles/".concat(e,"/likers"),query:{include:i()({data:[{answer_count:!0,articles_count:!0,follower_count:!0,gender:!0,is_followed:!0,is_following:!0,badge:!0}]}),offset:0,limit:d.a}}),schema:c.a.USER_ARRAY})}}function g(e){return{id:e,API:{types:p.GET_CONCERNED_UPVOTERS,endpoint:"articles/".concat(e,"/concerned_upvoters"),query:{limit:5,offset:0}},NOTIFICATION:!1,schema:c.a.USER_ARRAY}}function O(e,t){var n,r,o=t.id,i=null===(n=e.articles)||void 0===n||null===(r=n.concernedUpvoters)||void 0===r?void 0:r[o];return i?i.ids.map((function(t){return Object(l.c)(e,{id:t})})):null}var y=function(e){return function(t,n){var o=n().entities.articles[e].isLiked;return t({API:{types:f.a.UPDATE_COMMENT_PERMISSION,endpoint:"/articles/".concat(e,"/like"),method:o?"DELETE":"POST"},UPDATE:{success:function(){return{articles:Object(r.a)({},e,{isLiked:!o})}}}})}};function j(e){return{API:{types:p.GET_COMMENT_PERMISSION,endpoint:"articles/".concat(e),query:{include:i()({can_comment:!0,comment_permission:!0})}},UPDATE:{success:function(t){var n=t.canComment,o=t.commentPermission;return{articles:Object(r.a)({},e,{canComment:n,commentPermission:o})}}}}}t.b=Object(a.combineReducers)({voters:Object(d.e)(p.GET_VOTERS),concernedUpvoters:Object(d.e)(p.GET_CONCERNED_UPVOTERS)})},function(e,t,n){"use strict";n.d(t,"d",(function(){return v})),n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return y}));n(39);var r=n(1),o=n(46),i=n(60),a=n.n(i),c=n(230),s=n.n(c),u=n(12),l=(n(42),n(21),n(251)),d=n.n(l),f=(n(93),n(317)),p=n(62);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 v(e,t,n,r){"cardShow"===e?u.a.trackCardShow(b(t),n,r):"trackEvent"===e&&u.a.trackEvent(b(t),n,r)}n.d(t,"c",(function(){return p.p}));function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.o;if(!e)return new Promise((function(e){return e()}));var r=e,o=/^https?:\/\/[\w-.]+(:\d+)?/i.exec(e)[0];return o&&o.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,i=void 0===o?{}:o;if(r===f.a.TopicClick){var a=i.url;return"".concat(e,"&etu=").concat(btoa(unescape(encodeURIComponent(a))))}if(r===f.a.ExtendClick&&0===e.indexOf("https://sugar.zhihu.com"))try{var c=e.slice(),u=parseInt(Date.now()/1e3),l="".concat(s()(c).pathname,"+").concat(u),p=d()(l),h=i.clickEvent,b=void 0===h?{}:h,v=b.clientX,m=b.clientY,g=b.currentTarget,O=g.getBoundingClientRect(),y=O.width,j=O.height,E=O.left,C=O.top,w=v-E,T=m-C,_="".concat(parseInt(w),"x").concat(parseInt(T),"x").concat(parseInt(y),"x").concat(parseInt(j));return"".concat(c,"&ev=").concat(_,"&emfen=").concat(p,"&emfts=").concat(u)}catch(t){return e}return e}function O(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 i=e.filter(Boolean).map((function(e){var i="".concat(e).concat(n?"&et=".concat(n):"");return m(i=g(i,r),t,o)})),a=Promise.all(i).catch((function(){return null}));return Promise.race([a,new Promise((function(e){return setTimeout(e,500)}))])}catch(e){console.error("clickTrack: ",e)}}function y(e,t,n,r){var o;t&&"function"==typeof t.trackMethod&&(o=t.trackMethod,t=t.tracks),t&&t.length&&Object(p.l)(e,(function(){t.map((function(e){return Promise.race([m(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.i)()}})).then((function(e){if(e){var t=a.a.stringify(e);(r||[]).map((function(e){return e?Object(p.n)(t?"".concat(e).concat(e.includes("?")?"&":"?").concat(t):e):null}))}}))}))}))}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(1),o=Object(r.createContext)();function i(){return Object(r.useContext)(o)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var r=n(55),o=n.n(r),i=n(22),a=n.n(i),c=n(24),s=n.n(c),u=n(25),l=n.n(u),d=n(27),f=n.n(d),p=n(16),h=n.n(p),b=n(1),v=n.n(b),m=n(6),g=n.n(m),O=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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){l()(n,e);var t=y(n);function n(e){var r;a()(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,i=e.checked;if(!o||r){if(void 0!==n){var a=this.state.checked;i!==n&&n!==a&&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,i=t.className,a=t.preset,c=t.onClick,s=t.onChange,u=t.name,l=t.value,d=t.checked,f=t.disabled,p=t.forceControlled,h=this.state,b=h.focused,v=h.checked,m=p?d:v,y=p?s:this.handleChange;return Object(O.c)("label",{className:g()("Switch",i,(e={},o()(e,"Switch--".concat(a),"normal"!==a),o()(e,"Switch--focused",b),o()(e,"Switch--disabled",f),o()(e,"Switch--checked",Boolean(m)),e)),style:r},Object(O.c)("input",{id:n,className:"Switch-input",type:"checkbox",onClick:c,onChange:y,onFocus:this.handleFocus,onBlur:this.handleBlur,name:u,value:l,checked:Boolean(m),disabled:f}))}}]),n}(v.a.Component);j.defaultProps={preset:"normal"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return V})),n.d(t,"e",(function(){return q})),n.d(t,"c",(function(){return K})),n.d(t,"g",(function(){return W})),n.d(t,"f",(function(){return Y})),n.d(t,"b",(function(){return J}));var r=n(15),o=n(4),i=n(23),a=n(21),c=n(118),s=n.n(c),u=n(81),l=n(0),d=n(60),f=n.n(d),p=n(29),h=n(71),b=n(19),v=n(33),m=n(32),g=n(49),O=n(276),y=n(153),j=function(e){return e&&e.items},E=function(e,t){var n=t.id;return e.entities.topics[n]},C=function(e,t){var n=t.id;return e.topic.parent[n]},w=(Object(g.createSelector)(C,j),Object(g.createSelector)((function(e,t){var n=t.id;return e.topic.children[n]}),j)),T=function(e,t){var n=t.id;return e.topic.bestAnswerers[n]},_=(Object(g.createSelector)(T,j),function(e){return function(t,n){var r=n.id;return t.topic[e][r]}}),S=function(e){return Object(g.createSelector)((function(e){return e}),Object(g.createSelector)(e,v.d),(function(e,t){return Object.assign({},t,{items:(t.items||[]).map((function(t){return function(e,t){return{sourceTopic:E(e,{id:t.sourceTopic}),target:Object(O.b)(e,t.target)}}(e,t)}))})}))},A=_("top"),k=(S(A),function(e,t){var n=t.target;if(!n||!n.id)return n;var r=n.id,o=r.data,i=Object(m.a)(r,["data"]);return Object.assign({},i,{data:o.map((function(t){return Object.assign({},t,{target:Object(O.b)(e,t.target)})}))})}),R=function(e,t){var n=t.id,r=e.topic.hot[n];if(!r)return r;var o=r.items||[],i=o.find((function(e){var t=e.target;return"topicStickyModule"===(t=void 0===t?{}:t).schema}));return Object.assign({},r,{items:i?o.filter((function(e){var t=e.target;return"topicStickyModule"!==(t=void 0===t?{}:t).schema})):o,stickyModule:i&&k(e,i)})},I=(S(R),_("newest")),x=(S(I),_("unanswered")),N=(S(x),_("questions")),D=(S(N),_("followers")),P=(Object(g.createSelector)((function(e){return e}),Object(g.createSelector)(D,v.d),(function(e,t){return Object.assign({},t,{items:(t.items||[]).map((function(t){return Object(y.c)(e,{id:t})}))})})),_("contributors")),L=(Object(g.createSelector)((function(e){return e}),Object(g.createSelector)(P,v.d),(function(e,t){return Object.assign({},t,{items:t.items||[]})})),Object(g.createSelector)((function(e,t){var n=t.id;return e.topic.intro[n]}),(function(e){return e&&e.abstract}))),M=(Object(g.createSelector)([L,function(e,t){return t}],(function(e,t){var n=t.sid;return e.filter((function(e){return e.sid!==n}))})),Object(g.createSelector)([L,function(e,t){return t}],(function(e,t){return t.rank.map((function(t){return e.find((function(e){return e.sid===t}))}))})),Object(g.createSelector)(T,w,C,(function(e,t,n){return e&&t&&n})),Object(g.createSelector)(E,(function(e){if(e.showIntro)return!0;var t=e&&e.meta&&e.meta.category;return Boolean(t)&&(["variety_show","tv","movie","book","game"].includes(t)||t.startsWith("n_"))})),n(124)),U=n(63),B=n.n(U),z=n(37),F=n(421),G=Object(h.isNode)()?v.c:10,V=Object(b.a)("topic",["GET","GET_VOTE","CREATE","GET_STICKY","GET_INTRO","GET_INDEX","GET_TOP","GET_HOT","GET_NEWEST","GET_UNANSWERED","GET_QUESTIONS","GET_PARENT","GET_CHILDREN","GET_BESTANSWERERS","GET_WIKI_META","GET_WIKI_EDIT_INFO","GET_COMMITTED_WIKI","VOTE_WIKI","GET_FOLLOWERS","GET_CONTRIBUTORS","UPDATE_FOLLOW","UPDATE_BIO","UPDATE","UPDATE_INTRO","GET_META_CATEGORIES","GET_META_CATEGORY","CREATE_META","UPDATE_META","GET_META","UPDATE_TOPIC_CONTRIBUTOR_FOLLOWERS","GET_CREATOR_WALL","GET_CREATOR_WALL_ENTRY","GET_CREATOR_WALL_USER_INFO","UPDATE_VOTE_TOPIC","COMMIT_WIKI","CREATE_ABSTRACT","UPDATE_ABSTRACT_RANK","DELETE_ABSTRACT","GET_LANDING_BASIC_DATA","GET_LANDING_EXCELLENT_ITEMS","GET_LANDING_EXCELLENT_EDITORS","GET_LANDING_CATALOG","GET_LANDING_ENTRIES","APPLY_LANDING_PERMISSION"]);function H(e,t){return{API:{types:V.GET,endpoint:"topics/".concat(e),query:{include:t}},id:e,schema:p.a.TOPIC}}function q(e){return H(e,"introduction,questions_count,best_answers_count,followers_count,is_following,header_card")}function K(e){var t=e&&e.match(/创建 (\w+) 话题/);return t&&t[1]&&(e=t[1]),{API:{types:V.CREATE,endpoint:"/topics",method:"POST",body:{name:e}},NOTIFICATION:{failure:function(t){if(269===t.code){var n={message:"我想要创建「".concat(e,"」话题,系统提示被暂停使用,需要恢复")};return Object(M.b)(Object(l.c)("div",{children:["该话题被暂停使用,请",Object(l.b)("a",{style:{color:"#3e7ac2"},href:"//".concat(B.a.wwwHost,"/inbox/5582663910?").concat(f.a.stringify(n)),children:"私信「知一声」"}),"申请恢复创建"]}),{delay:6e3}),!1}return!0}}}}function W(e,t){return{API:{types:V.UPDATE_BIO,endpoint:"/topics/".concat(e,"/bio"),body:Object(a.decamelizeKeys)({bio:t}),method:"PUT"},id:e,bio:t}}function Y(e,t){return function(n,r){var i=r(),a=Object(z.b)(i),c=E(i,{id:e}),s=(t=void 0===t?!c.isFollowing:t)?1:-1,u={request:{},failure:{}};return c&&(u.request.topics=Object(o.a)({},e,{isFollowing:t}),u.failure.topics=Object(o.a)({},e,c)),a&&(u.request.users=Object(o.a)({},a.urlToken,{followingTopicCount:a.followingTopicCount+s}),u.failure.users=Object(o.a)({},a.urlToken,a)),n(Object.assign({},a&&{urlToken:a.urlToken},{topicId:e,UPDATE:u},function(e,t){return{API:{types:V.UPDATE_FOLLOW,endpoint:"topics/".concat(e,"/followers"),method:t?"POST":"DELETE"}}}(e,t)))}}function Q(e,t){var n=t.offset,r=t.limit,o=void 0===r?G:r,i=t.resource,a=t.endpoint,c=t.types;return{id:e,API:Object.assign({types:c},a?{endpoint:a}:{endpoint:"topics/".concat(e,"/feeds/").concat(i),query:Object.assign({include:F.a},n&&{offset:n},{limit:o})}),offset:n,limit:o,schema:p.a.TOPIC_FEED_ARRAY}}function Z(e,t){return function(n,r){return function(o,i){var a=(e(i(),{id:n})||{}).next,c=r||{},s=c.offset,u=c.limit;return o(t(n,s||!a?{offset:s,limit:u}:{endpoint:a}))}}}Z(A,(function(e,t){return Q(e,Object.assign({},t,{resource:"essence",types:V.GET_TOP}))})),Z(R,(function(e,t){return Q(e,Object.assign({},t,{resource:"top_activity",types:V.GET_HOT}))})),Z(I,(function(e,t){return Q(e,Object.assign({},t,{resource:"timeline_activity",types:V.GET_NEWEST}))})),Z(x,(function(e,t){return Q(e,Object.assign({},t,{resource:"top_question",types:V.GET_UNANSWERED}))})),Z(N,(function(e,t){return Q(e,Object.assign({},t,{resource:"timeline_question",types:V.GET_QUESTIONS}))})),Z(D,(function(e,t){var n=t.offset,r=t.limit,o=void 0===r?20:r,i=t.endpoint;return{id:e,API:Object.assign({types:V.GET_FOLLOWERS},i?{endpoint:i}:{endpoint:"topics/".concat(e,"/followers"),query:{offset:n,limit:o,include:["data[*].gender","answer_count","articles_count","follower_count","is_following","is_followed"].join(",")}}),offset:n,limit:o,schema:p.a.USER_ARRAY,NOTIFICATION:!1}})),Z(P,(function(e,t){var n=t.offset,r=t.limit,o=void 0===r?20:r,i=t.endpoint;return{id:e,API:Object.assign({types:V.GET_CONTRIBUTORS},i?{endpoint:i}:{endpoint:"topics/".concat(e,"/contributors"),query:{offset:n,limit:o,include:["data[*].gender","is_following","is_followed"].join(",")}}),offset:n,limit:o,schema:p.a.USER_ARRAY}}));var J=function(e){var t=e.topicId,n=e.type,r=e.token,o=e.content;return{API:{endpoint:"/topics/".concat(t,"/abstract"),types:V.CREATE_ABSTRACT,method:"POST",body:Object(a.decamelizeKeys)({type:n,token:r,content:o})},NOTIFICATION:{success:"操作成功",failure:function(e){return e.message}}}};var X=Object.prototype.hasOwnProperty;function $(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(n.type===e){var r=n.payload,i=n.id;return Object.assign({},t,r.data?Object(o.a)({},i,{items:r.data,next:(r.paging||{}).next,isDrained:(r.paging||{}).isEnd}):Object(o.a)({},i,n.result||r))}return t}}var ee=Object(i.combineReducers)({bios:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case u.a.GET_BIOS.request:return Object.assign({},e,{isFetching:!0});case u.a.GET_BIOS.success:return t.payload.data.reduce((function(e,t){var n=t.topic.id,r=t.bio;return Object.assign({},e,Object(o.a)({},n,r))}),Object.assign({},e,{isFetching:!1}));case u.a.GET_BIOS.failure:return Object.assign({},e,{isFetching:!1});case V.UPDATE_BIO.success:return Object.assign({},e,Object(o.a)({},t.id,t.bio));default:return e}},hot:Object(v.f)(V.GET_HOT),newest:Object(v.f)(V.GET_NEWEST),top:Object(v.f)(V.GET_TOP),unanswered:Object(v.f)(V.GET_UNANSWERED),questions:Object(v.f)(V.GET_QUESTIONS),followers:Object(v.f)(V.GET_FOLLOWERS),contributors:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.payload,r=t.id;switch(t.type){case V.GET_CONTRIBUTORS.request:return Object.assign({},e,Object(o.a)({},r,Object.assign({},e[r],{isFetching:!0,isDrained:!1})));case V.GET_CONTRIBUTORS.success:return Object.assign({},e,n.data?Object(o.a)({},r,{items:n.data,next:(n.paging||{}).next,isDrained:(n.paging||{}).isEnd,isFetching:!1}):Object(o.a)({},r,t.result||n));case V.GET_CONTRIBUTORS.failure:return Object.assign({},e,Object(o.a)({},r,Object.assign({},e[r],{isFetching:!1,isDrained:!0})));case V.UPDATE_TOPIC_CONTRIBUTOR_FOLLOWERS.success:var i=t.userUrlToken,a=e[r].items,c=a.map((function(e){var t=e.author,n=e.author,r=n.urlToken,o=n.isFollowing;return r===i?Object.assign({},e,{author:Object.assign({},t,{isFollowing:!o})}):e}));return Object.assign({},e,Object(o.a)({},r,Object.assign({},e[r],{items:c})));default:return e}},parent:$(V.GET_PARENT.success),children:$(V.GET_CHILDREN.success),bestAnswerers:$(V.GET_BESTANSWERERS.success),wikiMeta:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id;switch(t.type){case V.GET_WIKI_META.success:return Object.assign({},e,Object(o.a)({},n,t.payload));case V.VOTE_WIKI.success:var r=t.upVote,i=e[n].voteInfo.num;return Object.assign({},e,Object(o.a)({},n,Object.assign({},e[n],{hasVoted:r,voteInfo:{num:r?i+1:i-1}})));default:return e}},index:$(V.GET_INDEX.success),intro:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.topicAbstract,i=t.topicRestAbstract,a=t.topicRankedAbstract,c=void 0===a?[]:a;switch(t.type){case V.GET_INTRO.success:return Object.assign({},e,Object(o.a)({},n,t.payload));case V.DELETE_ABSTRACT.request:return Object.assign({},e,Object(o.a)({},n,Object.assign({},e[n],{abstract:i})));case V.UPDATE_ABSTRACT_RANK.request:return Object.assign({},e,Object(o.a)({},n,Object.assign({},e[n],{abstract:c})));case V.DELETE_ABSTRACT.failure:case V.UPDATE_ABSTRACT_RANK.failure:return Object.assign({},e,Object(o.a)({},n,Object.assign({},e[n],{abstract:r})));default:return e}},meta:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case V.GET_META.success:return Object.assign({},e,Object(o.a)({},t.id,t.payload.data));case V.UPDATE_META.success:var n=t.id,r=t.payload,i=e[n];return Object.assign({},e,Object(o.a)({},n,i.map((function(e){var t=e.target;if("Table"===t.type)return Object.assign({},e,{target:Object.assign({},e.target,{value:t.value.map((function(e){var t=Object(a.camelize)(e.target.name);return X.call(r,t)?Object.assign({},e,{target:Object.assign({},e.target,{value:r[t].value})}):e}))})});if(Array.isArray(t))return Object.assign({},e,{target:t.map((function(e){var t=Object(a.camelize)(e.target.name);return X.call(r,t)?Object.assign({},e,{target:Object.assign({},e.target,{value:r[t].value})}):e}))});var n=Object(a.camelize)(t.name);return X.call(r,n)?Object.assign({},e,{target:Object.assign({},e.target,{value:r[n].value})}):e}))));default:return e}},schema:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case V.GET_META_CATEGORIES.success:return Object.assign({},e,{categories:t.payload.data});case V.GET_META_CATEGORY.success:return Object.assign({},e,{category:Object.assign({},e.category,Object(o.a)({},t.category,t.payload.schema))});default:return e}},creatorWall:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.payload,i=t.id;if(t.type===V.GET_CREATOR_WALL.request)return s()(e,Object(o.a)({},i,{paging:{loading:!0}}));if(t.type===V.GET_CREATOR_WALL.success){var a=e[i],c=(a=void 0===a?{}:a).items,u=void 0===c?[]:c;return Object.assign({},e,Object(o.a)({},i,Object.assign({},n,{items:[].concat(Object(r.a)(u),Object(r.a)(t.result)),paging:Object.assign({},n.paging,{loading:!1})})))}return e},wikiEditInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.type,i=t.payload;if(r===V.GET_WIKI_EDIT_INFO.success){var a=i.canEdit,c=i.hasCommit;return void 0===a||void 0===c?e:Object.assign({},e,Object(o.a)({},n,i))}return e},committedWiki:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.type,i=t.payload;if(r===V.GET_COMMITTED_WIKI.success){var a=i.data;return a?Object.assign({},e,Object(o.a)({},n,a)):e}return e},landingBasicData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;return n===V.GET_LANDING_BASIC_DATA.success?r:e},landingExcellentItems:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;return n===V.GET_LANDING_EXCELLENT_ITEMS.success?r.excellentItems:e},landingExcellentEditors:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;return n===V.GET_LANDING_EXCELLENT_EDITORS.success?r.editors:e},landingCatalog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;return n===V.GET_LANDING_CATALOG.success?r.data:e},landingEntries:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;return n===V.GET_LANDING_ENTRIES.success?r:e}});t.d=ee},function(e,t,n){"use strict";n.r(t),n.d(t,"get",(function(){return u})),n.d(t,"createParser",(function(){return l})),n.d(t,"createStyleFunction",(function(){return p})),n.d(t,"compose",(function(){return b})),n.d(t,"system",(function(){return h})),n.d(t,"margin",(function(){return F})),n.d(t,"padding",(function(){return G})),n.d(t,"space",(function(){return V})),n.d(t,"color",(function(){return O})),n.d(t,"layout",(function(){return v})),n.d(t,"typography",(function(){return j})),n.d(t,"flexbox",(function(){return C})),n.d(t,"border",(function(){return k})),n.d(t,"background",(function(){return x})),n.d(t,"position",(function(){return P})),n.d(t,"grid",(function(){return _})),n.d(t,"shadow",(function(){return H})),n.d(t,"boxShadow",(function(){return q})),n.d(t,"textShadow",(function(){return q})),n.d(t,"variant",(function(){return W})),n.d(t,"buttonStyle",(function(){return Y})),n.d(t,"textStyle",(function(){return Q})),n.d(t,"colorStyle",(function(){return Z})),n.d(t,"borders",(function(){return R})),n.d(t,"width",(function(){return J})),n.d(t,"height",(function(){return X})),n.d(t,"minWidth",(function(){return $})),n.d(t,"minHeight",(function(){return ee})),n.d(t,"maxWidth",(function(){return te})),n.d(t,"maxHeight",(function(){return ne})),n.d(t,"size",(function(){return re})),n.d(t,"verticalAlign",(function(){return oe})),n.d(t,"display",(function(){return ie})),n.d(t,"overflow",(function(){return ae})),n.d(t,"overflowX",(function(){return ce})),n.d(t,"overflowY",(function(){return se})),n.d(t,"opacity",(function(){return ue})),n.d(t,"fontSize",(function(){return le})),n.d(t,"fontFamily",(function(){return de})),n.d(t,"fontWeight",(function(){return fe})),n.d(t,"lineHeight",(function(){return pe})),n.d(t,"textAlign",(function(){return he})),n.d(t,"fontStyle",(function(){return be})),n.d(t,"letterSpacing",(function(){return ve})),n.d(t,"alignItems",(function(){return me})),n.d(t,"alignContent",(function(){return ge})),n.d(t,"justifyItems",(function(){return Oe})),n.d(t,"justifyContent",(function(){return ye})),n.d(t,"flexWrap",(function(){return je})),n.d(t,"flexDirection",(function(){return Ee})),n.d(t,"flex",(function(){return Ce})),n.d(t,"flexGrow",(function(){return we})),n.d(t,"flexShrink",(function(){return Te})),n.d(t,"flexBasis",(function(){return _e})),n.d(t,"justifySelf",(function(){return Se})),n.d(t,"alignSelf",(function(){return Ae})),n.d(t,"order",(function(){return ke})),n.d(t,"gridGap",(function(){return Re})),n.d(t,"gridColumnGap",(function(){return Ie})),n.d(t,"gridRowGap",(function(){return xe})),n.d(t,"gridColumn",(function(){return Ne})),n.d(t,"gridRow",(function(){return De})),n.d(t,"gridAutoFlow",(function(){return Pe})),n.d(t,"gridAutoColumns",(function(){return Le})),n.d(t,"gridAutoRows",(function(){return Me})),n.d(t,"gridTemplateColumns",(function(){return Ue})),n.d(t,"gridTemplateRows",(function(){return Be})),n.d(t,"gridTemplateAreas",(function(){return ze})),n.d(t,"gridArea",(function(){return Fe})),n.d(t,"borderWidth",(function(){return Ge})),n.d(t,"borderStyle",(function(){return Ve})),n.d(t,"borderColor",(function(){return He})),n.d(t,"borderTop",(function(){return qe})),n.d(t,"borderRight",(function(){return Ke})),n.d(t,"borderBottom",(function(){return We})),n.d(t,"borderLeft",(function(){return Ye})),n.d(t,"borderRadius",(function(){return Qe})),n.d(t,"backgroundImage",(function(){return Ze})),n.d(t,"backgroundSize",(function(){return Je})),n.d(t,"backgroundPosition",(function(){return Xe})),n.d(t,"backgroundRepeat",(function(){return $e})),n.d(t,"zIndex",(function(){return et})),n.d(t,"top",(function(){return tt})),n.d(t,"right",(function(){return nt})),n.d(t,"bottom",(function(){return rt})),n.d(t,"left",(function(){return ot})),n.d(t,"style",(function(){return it}));var r=n(100),o=n.n(r),i=function(e,t){var n=o()({},e,t);for(var r in e){var i;e[r]&&"object"==typeof t[r]&&o()(n,((i={})[r]=o()(e[r],t[r]),i))}return n},a={breakpoints:[40,52,64].map((function(e){return e+"em"}))},c=function(e){return"@media screen and (min-width: "+e+")"},s=function(e,t){return u(t,e,e)},u=function(e,t,n,r,o){for(t=t&&t.split?t.split("."):[t],r=0;r<t.length;r++)e=e?e[t[r]]:o;return e===o?n:e},l=function e(t){var n={},r=function(e){var r,s,l={},p=!1,h=e.theme&&e.theme.disableStyledSystemCache;for(var b in e)if(t[b]){var v=t[b],m=e[b],g=u(e.theme,v.scale,v.defaults);if("object"!=typeof m)o()(l,v(m,g,e));else{if(n.breakpoints=!h&&n.breakpoints||u(e.theme,"breakpoints",a.breakpoints),Array.isArray(m)){n.media=!h&&n.media||[null].concat(n.breakpoints.map(c)),l=i(l,d(n.media,v,g,m,e));continue}null!==m&&(l=i(l,f(n.breakpoints,v,g,m,e)),p=!0)}}return p&&(r=l,s={},Object.keys(r).sort((function(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})})).forEach((function(e){s[e]=r[e]})),l=s),l};r.config=t,r.propNames=Object.keys(t),r.cache=n;var s=Object.keys(t).filter((function(e){return"config"!==e}));return s.length>1&&s.forEach((function(n){var o;r[n]=e(((o={})[n]=t[n],o))})),r},d=function(e,t,n,r,i){var a={};return r.slice(0,e.length).forEach((function(r,c){var s,u=e[c],l=t(r,n,i);u?o()(a,((s={})[u]=o()({},a[u],l),s)):o()(a,l)})),a},f=function(e,t,n,r,i){var a={};for(var s in r){var u=e[s],l=t(r[s],n,i);if(u){var d,f=c(u);o()(a,((d={})[f]=o()({},a[f],l),d))}else o()(a,l)}return a},p=function(e){var t=e.properties,n=e.property,r=e.scale,o=e.transform,i=void 0===o?s:o,a=e.defaultScale;t=t||[n];var c=function(e,n,r){var o={},a=i(e,n,r);if(null!==a)return t.forEach((function(e){o[e]=a})),o};return c.scale=r,c.defaults=a,c},h=function(e){void 0===e&&(e={});var t={};return Object.keys(e).forEach((function(n){var r=e[n];t[n]=!0!==r?"function"!=typeof r?p(r):r:p({property:n,scale:n})})),l(t)},b=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach((function(t){t&&t.config&&o()(e,t.config)}));var i=l(e);return i},v=h({width:{property:"width",scale:"sizes",transform:function(e,t){return u(t,e,!function(e){return"number"==typeof e&&!isNaN(e)}(e)||e>1?e:100*e+"%")}},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0}),m=v,g={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};g.bg=g.backgroundColor;var O=h(g),y=O,j=h({fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:[12,14,16,20,24,32,48,64,72]},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0}),E=j,C=h({alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0}),w=C,T={space:[0,4,8,16,32,64,128,256,512]},_=h({gridGap:{property:"gridGap",scale:"space",defaultScale:T.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:T.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:T.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0}),S=_,A={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"},borderTopWidth:{property:"borderTopWidth",scale:"borderWidths"},borderTopColor:{property:"borderTopColor",scale:"colors"},borderTopStyle:{property:"borderTopStyle",scale:"borderStyles"}};A.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},A.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},A.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},A.borderBottomColor={property:"borderBottomColor",scale:"colors"},A.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},A.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},A.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},A.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},A.borderLeftColor={property:"borderLeftColor",scale:"colors"},A.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},A.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},A.borderRightColor={property:"borderRightColor",scale:"colors"},A.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var k=h(A),R=k,I={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};I.bgImage=I.backgroundImage,I.bgSize=I.backgroundSize,I.bgPosition=I.backgroundPosition,I.bgRepeat=I.backgroundRepeat;var x=h(I),N=x,D={space:[0,4,8,16,32,64,128,256,512]},P=h({position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:D.space},right:{property:"right",scale:"space",defaultScale:D.space},bottom:{property:"bottom",scale:"space",defaultScale:D.space},left:{property:"left",scale:"space",defaultScale:D.space}}),L=P,M={space:[0,4,8,16,32,64,128,256,512]},U=function(e){return"number"==typeof e&&!isNaN(e)},B=function(e,t){if(!U(e))return u(t,e,e);var n=e<0,r=Math.abs(e),o=u(t,r,r);return U(o)?o*(n?-1:1):n?"-"+o:o},z={};z.margin={margin:{property:"margin",scale:"space",transform:B,defaultScale:M.space},marginTop:{property:"marginTop",scale:"space",transform:B,defaultScale:M.space},marginRight:{property:"marginRight",scale:"space",transform:B,defaultScale:M.space},marginBottom:{property:"marginBottom",scale:"space",transform:B,defaultScale:M.space},marginLeft:{property:"marginLeft",scale:"space",transform:B,defaultScale:M.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:B,defaultScale:M.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:B,defaultScale:M.space}},z.margin.m=z.margin.margin,z.margin.mt=z.margin.marginTop,z.margin.mr=z.margin.marginRight,z.margin.mb=z.margin.marginBottom,z.margin.ml=z.margin.marginLeft,z.margin.mx=z.margin.marginX,z.margin.my=z.margin.marginY,z.padding={padding:{property:"padding",scale:"space",defaultScale:M.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:M.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:M.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:M.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:M.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:M.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:M.space}},z.padding.p=z.padding.padding,z.padding.pt=z.padding.paddingTop,z.padding.pr=z.padding.paddingRight,z.padding.pb=z.padding.paddingBottom,z.padding.pl=z.padding.paddingLeft,z.padding.px=z.padding.paddingX,z.padding.py=z.padding.paddingY;var F=h(z.margin),G=h(z.padding),V=b(F,G),H=h({boxShadow:{property:"boxShadow",scale:"shadows"},textShadow:{property:"textShadow",scale:"shadows"}}),q=H,K=n(503),W=function(e){var t,n,r=e.scale,o=e.prop,i=void 0===o?"variant":o,a=e.variants,c=void 0===a?{}:a,s=e.key;(n=Object.keys(c).length?function(e,t,n){return Object(K.default)(u(t,e,null))(n.theme)}:function(e,t){return u(t,e,null)}).scale=r||s,n.defaults=c;var d=((t={})[i]=n,t);return l(d)},Y=W({key:"buttons"}),Q=W({key:"textStyles",prop:"textStyle"}),Z=W({key:"colorStyles",prop:"colors"}),J=m.width,X=m.height,$=m.minWidth,ee=m.minHeight,te=m.maxWidth,ne=m.maxHeight,re=m.size,oe=m.verticalAlign,ie=m.display,ae=m.overflow,ce=m.overflowX,se=m.overflowY,ue=y.opacity,le=E.fontSize,de=E.fontFamily,fe=E.fontWeight,pe=E.lineHeight,he=E.textAlign,be=E.fontStyle,ve=E.letterSpacing,me=w.alignItems,ge=w.alignContent,Oe=w.justifyItems,ye=w.justifyContent,je=w.flexWrap,Ee=w.flexDirection,Ce=w.flex,we=w.flexGrow,Te=w.flexShrink,_e=w.flexBasis,Se=w.justifySelf,Ae=w.alignSelf,ke=w.order,Re=S.gridGap,Ie=S.gridColumnGap,xe=S.gridRowGap,Ne=S.gridColumn,De=S.gridRow,Pe=S.gridAutoFlow,Le=S.gridAutoColumns,Me=S.gridAutoRows,Ue=S.gridTemplateColumns,Be=S.gridTemplateRows,ze=S.gridTemplateAreas,Fe=S.gridArea,Ge=R.borderWidth,Ve=R.borderStyle,He=R.borderColor,qe=R.borderTop,Ke=R.borderRight,We=R.borderBottom,Ye=R.borderLeft,Qe=R.borderRadius,Ze=N.backgroundImage,Je=N.backgroundSize,Xe=N.backgroundPosition,$e=N.backgroundRepeat,et=L.zIndex,tt=L.top,nt=L.right,rt=L.bottom,ot=L.left,it=function(e){var t=e.prop,n=e.cssProperty,r=e.alias,o=e.key,i=e.transformValue,a=e.scale,c=e.properties,s={};return s[t]=p({properties:c,property:n||t,scale:o,defaultScale:a,transform:i}),r&&(s[r]=s[t]),l(s)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return d})),n.d(t,"d",(function(){return f}));var r=n(4),o=n(23),i=n(29),a=n(19),c=n(33),s=Object(a.a)("column",["GET","UPDATE_FOLLOW","GET_COLUMN_FOLLOWERS","SUBMIT_REQUEST"]);function u(e){return{API:{types:s.GET,endpoint:"columns/".concat(e),query:{include:"title,intro,description,image_url,articles_count,followers,is_following,last_article.created"}},urlToken:e,schema:i.a.COLUMN}}function l(e){var t=e.title,n=e.intro;return{API:{types:s.SUBMIT_REQUEST,endpoint:"/columns/request",method:"POST",body:{title:t,intro:n}},NOTIFICATION:!1}}function d(e){return function(t,n){var o=n(),i=o.entities,a=i.columns,c=i.users,u=o.currentUser,l=a[e],d=c[u],f=l.isFollowing,p=l.followers,h=f?-1:1;return t({urlToken:u,columnId:e,expect:!f,API:{types:s.UPDATE_FOLLOW,endpoint:"columns/".concat(e,"/followers"),method:f?"DELETE":"POST"},UPDATE:{request:{columns:Object(r.a)({},e,{isFollowing:!f,followers:p+h}),users:Object(r.a)({},u,{followingColumnsCount:d.followingColumnsCount+h})},failure:{columns:Object(r.a)({},e,l),users:Object(r.a)({},u,c)}}})}}function f(e){return function(t,n){var r=(n().columns.voters[e]||{}).next;return t({id:e,API:Object.assign({types:s.GET_COLUMN_FOLLOWERS},r?{endpoint:r}:{endpoint:"columns/".concat(e,"/followers"),query:{include:"data[*].follower_count,gender,is_followed,is_following",offset:0,limit:c.a}}),schema:i.a.USER_ARRAY})}}t.b=Object(o.combineReducers)({voters:Object(c.e)(s.GET_COLUMN_FOLLOWERS)})},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return v})),n.d(t,"c",(function(){return r.b})),n.d(t,"b",(function(){return r.a}));var r=n(269),o=n(60),i=n.n(o);var a=function(e){return e.includes("BIZ=ECOMMERCE")?e:e.includes(encodeURIComponent("BIZ=ECOMMERCE"))?decodeURIComponent(i.a.parse(e.slice(e.indexOf("?")+1)).target||""):""},c="".concat("BIZ=ECOMMERCE","|").concat(encodeURIComponent("BIZ=ECOMMERCE")),s=new RegExp(c),u=new RegExp('<a\\b[^>]*href="([^>\\s"]*('.concat(c,')[^>\\s"]*)"[^>]*>'),"g");var l=function(e){var t=e.content,n=e.type,o=e.urlToken,i=e.headers;return function(e,c){if(!Object(r.b)(c(),{type:n,urlToken:o})){var l=function(e){return s.test(e)}(t)&&function(e){u.lastIndex=0;for(var t,n=[];t=u.exec(e);)n.push(t[1]);return n.map((function(e){return a(e)})).filter((function(e){return e}))}(t);return l&&l.length>0?e(Object(r.c)({type:n,urlToken:o,urls:l,headers:i})):e(Object(r.d)({type:n,urlToken:o,isEcommerce:!1}))}}},d=n(17),f=n(0),p=n(1),h=n(46),b=n(31);var v=function(e,t){var n=t.ecommerce,r=void 0===n?{}:n,o=t.getComponent,i=t.Component,c=t.suger,s=Object(p.useState)(null),u=Object(d.a)(s,2),l=u[0],v=u[1],m=Object(p.useState)([]),g=Object(d.a)(m,2),O=g[0],y=g[1],j=r.isEcommerce,E=r.cards,C=r.parentType,w=r.urlToken,T=Object(b.c)((function(){return o?o():Promise.resolve(null)}),O.length>0);Object(p.useEffect)((function(){return function(){return v(null)}}),[e]);var _=i||T;return Object(p.useEffect)((function(){O.length&&_&&v(O.map((function(e){var t=e.data,n=e.node,r=document.createElement("div");return r.className="RichText-Ecommerce",n.parentNode.replaceChild(r,n),{data:t,target:r}})).map((function(e,t){var n=e.data,r=e.target;return Object(h.createPortal)(Object(f.b)(_,{data:n,parentType:C,urlToken:w,suger:c},t),r)})))}),[O,_,C,w,c]),Object(p.useEffect)((function(){if(e&&!l&&j&&C&&w&&E&&0!==Object.keys(E).length){var t=Array.from(e.querySelectorAll('a[data-draft-type="link-card"]')).map((function(e){var t=a(e.href);return t&&E[t]?{node:e,data:E[t]}:null})).filter((function(e){return e}));t.length&&y(t)}}),[e,j,E,C,w,l]),l}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));
|
|
|
/*! *****************************************************************************
|
|
|
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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return C})),n.d(t,"a",(function(){return D})),n.d(t,"b",(function(){return R}));var r=n(4),o=n(7),i=n(8),a=n(9),c=n(10),s=n(5),u=n(0),l=n(1),d=n(2),f=n.n(d),p=n(13),h=n(6),b=n.n(h),v=n(184),m=n(37),g=n(124);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 y={all:"开放评论",censor:"预审评论",nobody:"关闭评论"},j={all:"允许任何人评论",follower:"允许关注我的人评论",censor:"评论由我筛选后显示",followee:"允许我关注的人评论",paid:"付费用户可评论",nobody:"关闭评论"},E=function(e){Object(a.a)(n,e);var t=O(n);function n(){var e;Object(o.a)(this,n);for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).handleClickOption=function(t){var n=e.props,r=n.isOrg,o=n.target,i=n.onChange,a=n.current;if(t!==a)if(o){var c=o.id;o.adminClosedComment?Object(g.b)("此内容无法更改评论权限",{theme:"red-ghost"}):r||"censor"!==t&&"censor"!==a?i(c,t):Object(g.a)("你确定要更改评论权限吗?",{content:"censor"===t?"更改后,已有评论不变,新评论需要经过筛选才会公开显示":"更改后,所有待筛选评论都会被公开显示出来"}).then((function(){return i(c,t)})).catch((function(){return null}))}else i(t)},e.getCommentPermission=function(){var t=e.props.target,n=t&&"answer"===t.type&&"paid"===t.answerType;return Object.keys(j).filter((function(e){if("paid"!==e||n)return"follower"!==e||t&&"article"===t.type})).reduce((function(e,t){return Object.assign({},e,Object(r.a)({},t,j[t]))}),{})},e}return Object(i.a)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.isOrg,r=t.current,o=t.className,i=n?y:this.getCommentPermission();return Object(u.b)(l.Fragment,{children:Object.keys(i).map((function(t){return Object(u.b)(v.a,{onClick:function(){return e.handleClickOption(t)},className:b()("CommentPermission-item",o),checked:t===r,children:i[t]},t)}))})}}]),n}(l.Component);E.propTypes={current:f.a.string.isRequired,target:f.a.object,onChange:f.a.func.isRequired};var C=Object(p.connect)((function(e){return{isOrg:Object(m.f)(e)}}))(E),w=n(47),T=n(698),_=n.n(T),S=n(61);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 k=function(e){Object(a.a)(n,e);var t=A(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"render",value:function(){return Object(u.b)("img",{src:_.a,style:{maxWidth:"200px",marginTop:"30px"},alt:"delete-comment-success"})}}]),n}(l.Component);k.showModal=function(e){w.b.open((function(t){var n=(e||{}).reportText;return setTimeout(t,2e3),Object(u.b)(w.b,{title:"举报成功",onClose:t,children:Object(u.c)("div",{style:{textAlign:"center"},children:[Object(u.b)("div",{children:n||"你的举报我们已经收到,处理完成后将会私信告知处理结果。"}),Object(u.b)(k,{})]})})}))};var R=Object(S.b)({view:{id:3038},trackCardShow:!0})(k),I=n(11),x=n(179);function N(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 D=function(e){Object(a.a)(n,e);var t=N(n);function n(){var e;Object(o.a)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={reportModalShown:!1},e.handleSubmit=function(){var t=e.props,n=t.id,r=t.onDelete,o=t.onClose;r(n),o()},e.handleReportModalOpen=function(){return e.setState({reportModalShown:!0})},e.handleReportModalClose=function(){e.setState({reportModalShown:!1}),e.handleSubmit()},e.handleSuccess=function(){e.handleSubmit()},e}return Object(i.a)(n,[{key:"render",value:function(){var e=this.props,t=e.id,n=e.shown,r=e.onClose,o=e.reportAndDeleteExperiment;return Object(u.c)(l.Fragment,{children:[Object(u.b)(w.b,{title:"你确定要删除这条评论吗?",closeButton:null,maskClosable:!1,hotKeyClosable:!1,onClose:r,footer:o&&Object(u.c)("div",{className:"CommentDeleteAndReport-extra",children:["评论若构成举报条件可以",Object(u.b)(I.c,{preset:"link",onClick:this.handleReportModalOpen,children:"删除并举报"})]}),children:n&&Object(u.c)(w.a,{direction:"horizontal",children:[Object(u.b)(I.c,{onClick:r,children:"取消"}),Object(u.b)(I.c,{preset:"primary",color:"blue",onClick:this.handleSubmit,children:"确定"})]})}),Object(u.b)(x.a,{title:"删除成功,请选择举报理由",subtitle:"",shown:this.state.reportModalShown,type:"comment",urlToken:t,zaEnabled:!0,onSuccess:this.handleSuccess,onClose:this.handleReportModalClose})]})}}]),n}(l.Component)},function(e,t,n){"use strict";n.d(t,"a",(function(){return te})),n.d(t,"d",(function(){return re})),n.d(t,"g",(function(){return oe})),n.d(t,"e",(function(){return ie})),n.d(t,"c",(function(){return ae})),n.d(t,"f",(function(){return ce})),n.d(t,"b",(function(){return ue}));var r=n(15),o=n(4),i=n(21),a=n(121),c=n.n(a),s=n(275),u=n.n(s),l=(n(209),n(94)),d=n.n(l),f=n(193),p=n.n(f),h=(n(164),n(80)),b=n.n(h),v=(n(71),n(19)),m=n(186),g=(n(37),n(49)),O=n(38),y=n(1),j=n.n(y),E=n(20),C=function(e){return j.a.createElement(E.a,e,j.a.createElement("path",{d:"M4.594 7.506l2.595-1.153a3.576 3.576 0 0 1 3.292.201l.652.391a2 2 0 0 0 1.923.074l5.828-2.913a1 1 0 0 1 .84-.025l.36.154a.744.744 0 0 1 .383.994l-.172.374a1 1 0 0 1-.461.477l-6.071 3.036a3.363 3.363 0 0 1-3.235-.125l-.691-.415a2 2 0 0 0-1.841-.112L4.703 9.927A.5.5 0 0 1 4 9.47V8.42a1 1 0 0 1 .594-.914zm6.301 3.528l.294.177a2.202 2.202 0 0 0 2.118.081l.357-.179a.5.5 0 0 1 .724.448V19a1 1 0 0 1-1 1h-2.25a1 1 0 0 1-1-1v-7.538a.5.5 0 0 1 .757-.429zm-2.645-.1V19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-6.297a1 1 0 0 1 .594-.914l2.953-1.312a.5.5 0 0 1 .703.457zm12.276-2.35V19a1 1 0 0 1-1 1h-2.25a1 1 0 0 1-1-1v-8.48a1 1 0 0 1 .553-.895l2.973-1.487a.5.5 0 0 1 .724.447z",fillRule:"evenodd"}))};C.defaultProps={name:"Statistics"};var w=C,T=function(e){return j.a.createElement(E.a,e,j.a.createElement("path",{d:"M16.517 15.815a5.871 5.871 0 0 1-4.481 2.078 5.865 5.865 0 0 1-5.859-5.857 5.865 5.865 0 0 1 5.859-5.859c1.63 0 3.204.7 4.319 1.919.085.093.24.432.209.797a1.086 1.086 0 0 1-.436.779c-.248.193-.516.29-.797.29-.402 0-.7-.198-.814-.314A3.473 3.473 0 0 0 12 8.575a3.464 3.464 0 0 0-3.46 3.461 3.464 3.464 0 0 0 3.46 3.46 3.63 3.63 0 0 0 2.654-1.181c.136-.152.458-.306.806-.306.274 0 .542.095.773.274.35.269.45.588.473.809.032.308-.072.585-.188.723m4.686-7.699C20.67 6.883 19.96 5.82 19.07 4.929c-.891-.89-1.954-1.601-3.188-2.133A9.728 9.728 0 0 0 12 2a9.733 9.733 0 0 0-3.883.796c-1.234.532-2.297 1.243-3.186 2.133-.891.891-1.602 1.954-2.134 3.187A9.713 9.713 0 0 0 2 12a9.752 9.752 0 0 0 .797 3.883c.531 1.233 1.242 2.296 2.134 3.186.89.891 1.953 1.602 3.186 2.134A9.725 9.725 0 0 0 12 22a9.72 9.72 0 0 0 3.883-.797c1.233-.532 2.296-1.243 3.188-2.134.89-.89 1.601-1.953 2.132-3.186A9.73 9.73 0 0 0 22 12a9.69 9.69 0 0 0-.797-3.884",fillRule:"evenodd"}))};T.defaultProps={name:"Copyright"};var _=T,S=function(e){return j.a.createElement(E.a,e,j.a.createElement("path",{d:"M8.718 20.808a1.452 1.452 0 1 1 0-2.903 1.452 1.452 0 0 1 0 2.903zm7.76 0a1.452 1.452 0 1 1 0-2.903 1.452 1.452 0 0 1 0 2.903zM6.913 6.1h10.684a1.975 1.975 0 0 1 1.944 2.321l-.775 4.34a1.975 1.975 0 0 1-1.944 1.627H8.395l.136.763c.064.361.379.625.747.625h7.659a.977.977 0 1 1 0 1.954h-7.66a2.713 2.713 0 0 1-2.67-2.236l-1.766-9.89a.325.325 0 0 0-.24-.258l-.919-.23a.977.977 0 1 1 .474-1.895l.918.23c.87.217 1.533.926 1.69 1.81l.15.839z"}))};S.defaultProps={name:"CartFill"};var A=S,k=n(1050),R=function(e){return j.a.createElement(E.a,e,j.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 10zm0-15.063a.571.571 0 0 0-.571.572v.57h-.924a6.132 6.132 0 0 0-.314-.59.671.671 0 0 0-.813-.287.411.411 0 0 0-.193.621c.069.098.124.183.167.257H8.5a1 1 0 0 0-1 1v.66a.562.562 0 1 0 1.125 0v-.526c0-.11.09-.2.2-.2h6.35c.11 0 .2.09.2.2v.526a.562.562 0 1 0 1.125 0v-.66a1 1 0 0 0-1-1h-.78c.04-.059.085-.134.137-.224a.48.48 0 0 0-.256-.69.614.614 0 0 0-.758.31 9.023 9.023 0 0 1-.316.604h-.956v-.571A.571.571 0 0 0 12 6.937zm3.375 6.075a1 1 0 0 0-1-1h-4.74a1 1 0 0 0-1 1v1.235a.535.535 0 0 0 1.07 0v-1.328h4.6v1.328a.535.535 0 0 0 1.07 0v-1.235zm-2.68 1.704c-.047.403-.362.859-.362.859a22.857 22.857 0 0 1 2.956.87.702.702 0 0 0 .834-.27.434.434 0 0 0-.229-.652 18.48 18.48 0 0 0-.375-.119 29.74 29.74 0 0 0-2.823-.688zm-.116-1.32h-1.1c-.095.734-.347 1.266-.756 1.59-.432.305-1.275.51-2.531.6l-.088.005a.369.369 0 0 0-.315.516.741.741 0 0 0 .75.442l.068-.007c1.594-.164 2.616-.467 3.06-.902.455-.374.762-1.115.912-2.243zm-2.33-3.925h3.503a1 1 0 0 1 1 1v.098a1 1 0 0 1-1 1h-3.504a1 1 0 0 1-1-1v-.098a1 1 0 0 1 1-1zm3.482 1.35v-.581h-3.462v.581h3.462z",fillRule:"evenodd"}))};R.defaultProps={name:"Admire"};var I=R,x=n(1051),N=function(e){return j.a.createElement(E.a,e,j.a.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10zm-4.183-8.536c-.036-.108.03-.192.03-.192l5.664-7.34s.065-.086.14-.054c.074.032.05.123.05.123l-1.044 5.144 2.72-.067s.125-.005.16.103a.22.22 0 0 1-.029.193l-5.665 7.339s-.064.086-.139.054c-.075-.032-.05-.123-.05-.123l1.044-5.144-2.72.067s-.125.005-.16-.103z",fillRule:"evenodd"}))};N.defaultProps={name:"LiveCircle"};var D=N,P=function(e){return j.a.createElement(E.a,e,j.a.createElement("path",{d:"M4.71 9.84c0 .795.493 1.44 1.09 1.44.599 0 1.164-1.08 2.16-1.08.997 0 1.8.967 1.8 2.16s-.803 2.16-1.8 2.16c-.996 0-1.561-1.08-2.16-1.08-.597 0-1.029.65-1.123 1.44-.08.668-.527 4.465-.675 5.718a.36.36 0 0 0 .359.402h4.285c.798 0 1.474-.484 1.474-1.08 0-.596-1.08-1.166-1.08-2.16 0-.994.965-1.8 2.16-1.8 1.196 0 2.16.806 2.16 1.8s-1.08 1.564-1.08 2.16c0 .596.621 1.08 1.418 1.08h2.899c.199 0 .36-.16.36-.36v-2.88c0-.795.485-1.44 1.083-1.44s1.164 1.08 2.16 1.08c.997 0 1.8-.967 1.8-2.16s-.803-2.16-1.8-2.16c-.996 0-1.573 1.08-2.171 1.08-.598 0-1.133-.647-1.072-1.44.055-.705.289-3.578.365-4.66a.359.359 0 0 0-.395-.383c-.817.082-2.626.292-3.229.352-.793.078-1.418-.473-1.418-1.069s1.08-1.166 1.08-2.16c0-.994-.964-1.8-2.16-1.8-1.195 0-2.16.806-2.16 1.8s1.08 1.563 1.08 2.16c0 .597-.68 1.14-1.474 1.069-.645-.058-2.673-.28-3.543-.358a.36.36 0 0 0-.392.358V9.84z",fillRule:"evenodd"}))};P.defaultProps={name:"Puzzle"};var L=P,M=function(e){return j.a.createElement(E.a,e,j.a.createElement("path",{d:"M13.189 19.922c-.39.052-4.595 1.947-5.28 1.947-.685 0 .834-2.424 0-2.85a9 9 0 1 1 5.28.903zm-.404-6.783h1.996v-1.118h-1.996v-.832l.227-.403h1.769V9.624H13.6l1.452-2.644h-1.814l-1.224 2.778-1.18-2.778H8.978l1.45 2.644h-1.45l.045 1.162h1.768l.227.403v.832h-2.04v1.118h2.04v1.841l-.227 1.164 1.995-1.164v-1.84z",fillRule:"evenodd"}))};M.defaultProps={name:"CommercialMission"};var U=M,B=n(65),z=Object.assign;var F=function(e){return j.a.createElement(B.a,z({width:"24",height:"24",viewBox:"0 0 24 24",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),j.a.createElement("defs",null,j.a.createElement("path",{id:"id-1100645874-a",d:"M14.4 2.778c1.988 0 3.6 1.527 3.6 3.412v7.676c0 1.884-1.612 3.412-3.6 3.412H3.6c-1.988 0-3.6-1.528-3.6-3.412V6.19c0-1.885 1.612-3.412 3.6-3.412h10.8zM7.771 7c-.556 0-1.014.446-1.066 1.017l-.005.108v3.75l.005.108c.052.57.51 1.017 1.066 1.017.165 0 .32-.039.46-.109l.008.005 2.846-1.878A1.13 1.13 0 0011.7 10c0-.397-.196-.746-.492-.949L8.454 7.258A1.037 1.037 0 007.771 7zm-.328-3.444L5.361 1.463A.858.858 0 016.571.249l2.318 2.33L11.204.252a.856.856 0 111.213 1.21l-2.083 2.094h-2.89z"})),j.a.createElement("g",{fill:"none",fillRule:"evenodd"},j.a.createElement("path",{d:"M0 0h24v24H0z"}),j.a.createElement("g",{transform:"translate(3 3)"},j.a.createElement("mask",{id:"id-1100645874-b",fill:"#fff"},j.a.createElement("use",{xlinkHref:"#id-1100645874-a"})),j.a.createElement("use",{fill:"currentColor",xlinkHref:"#id-1100645874-a",fillRule:"nonzero"}),j.a.createElement("g",{fill:"currentColor",mask:"url(#id-1100645874-b)"},j.a.createElement("path",{d:"M-3-3h24v24H-3z"})))))},G=Object.assign;var V=function(e){return j.a.createElement(B.a,G({width:"18",height:"20",viewBox:"0 0 18 20"},e),j.a.createElement("path",{d:"M2 0h14a2 2 0 012 2v15.133a1.9 1.9 0 01-2.7 1.723l-1.788-.83a2 2 0 00-1.796.055l-1.86 1.009a2 2 0 01-1.75.076l-2.7-1.171a2 2 0 00-1.77.088l-1.386.773A1.513 1.513 0 010 17.534V2a2 2 0 012-2zm8.005 9.055a1.005 1.005 0 000 2.011h3.99a1.005 1.005 0 000-2.011h-3.99zm-1.05-6.033A3.479 3.479 0 006.5 2.011 3.51 3.51 0 003 5.531a3.51 3.51 0 003.5 3.518A3.51 3.51 0 0010 5.53c0-.478-.095-.934-.267-1.35L7.135 7.685a.654.654 0 01-.868.17l-1.859-1.14a.662.662 0 01-.218-.907.654.654 0 01.902-.22l1.348.827 2.515-3.392zm-4.95 10.055a1.005 1.005 0 100 2.011h9.99a1.005 1.005 0 000-2.011h-9.99z",fillRule:"evenodd"}))},H=Object.assign;var q=function(e){return j.a.createElement(B.a,H({viewBox:"0 0 96 96"},e),j.a.createElement("path",{fill:"none",d:"M0 0h96v96H0z"}),j.a.createElement("circle",{cx:"48",cy:"48",r:"36"}),j.a.createElement("g",{fill:"#fff"},j.a.createElement("path",{d:"M43.956 60.609a6.082 6.082 0 11-8.565-8.573V46.1a11.3 11.3 0 1014.5 14.508z"}),j.a.createElement("path",{d:"M45.299 39.429v5.862h-5.87v5.413h5.858v5.867h5.414v-5.862h5.87v-5.413h-5.858v-5.867z"}),j.a.createElement("path",{d:"M56.7 28a11.31 11.31 0 00-10.59 7.391h5.935A6.08 6.08 0 0162.783 39.3v.009a6.071 6.071 0 01-2.174 4.654V49.9A11.31 11.31 0 0068 39.31v-.01A11.314 11.314 0 0056.7 28z"})))},K=Object.assign;var W=function(e){return j.a.createElement(B.a,K({width:"96",height:"96",fill:"none",viewBox:"0 0 96 96"},e),j.a.createElement("path",{fill:"#fff",d:"M0 0h96v96H0z"}),j.a.createElement("circle",{cx:"48",cy:"48",r:"40",fill:"#06F"}),j.a.createElement("path",{fill:"#fff",d:"M29 34h31a2 2 0 012 2v24a2 2 0 01-2 2H29a2 2 0 01-2-2V36a2 2 0 012-2zm37 23.066V60a6 6 0 01-6 6H29a6 6 0 01-6-6V36a6 6 0 016-6h31a6 6 0 016 6v2.934l3.205-1.233C72.48 36.441 76 38.86 76 42.368v11.264c0 3.509-3.52 5.926-6.795 4.667L66 57.066zm0-4.286l4.641 1.785A1 1 0 0072 53.632V42.368a1 1 0 00-1.359-.933L66 43.22v9.56z",fillRule:"evenodd",clipRule:"evenodd"}),j.a.createElement("path",{stroke:"#fff",d:"M34 54l5.5-6 6.5 4.8L54 42",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"4"}))},Y="pass",Q="experience",Z="banned",J=function(e){return e.status===Y||e.status===Q},X={analytics:{id:"0513324000",name:"内容分析",icon:w,url:"/creator/analytics"},copyright:{id:"6513324000",name:"版权服务",icon:_,url:"/creator/explore/copyright"},mcn:{id:"1613324000",name:"好物推荐",icon:A,url:"/creator/mcn",noGuide:!0,independentStatusManagement:!0,exactActive:!0,shouldShowMenu:function(e){return e.status!==Z}},recommend:{id:"7413324000",name:"内容自荐",icon:k.a,url:"/creator/recommend",experienceText:"30 天,共 3 次自荐机会",experienceModalHint:"在权益限时体验期内,你可以将近期创作过的内容,推荐给更多知友",shouldShowMenu:J},drama:{id:"9513324000",name:"知乎直播",icon:F,url:"https://www.zhihu.com/drama/open",isExternal:!0,appOnly:!0},reward:{id:"1513324000",name:"赞赏功能",icon:I,url:"/creator/reward",experienceText:"15 天",experienceModalHint:"在权益限时体验期内,你可以将创作的内容开启「赞赏」来获得收益",shouldShowMenu:J},roundtableHost:{id:"7513324000",name:"圆桌主持人",icon:x.a,url:"/creator/roundtable-host",shouldShowMenu:J},live:{id:"2513324000",name:"知乎 Live",icon:D,url:"/creator/live",independentStatusManagement:!0,shouldShowMenu:J},customPromotion:{id:"9413324000",name:"自定义推广",icon:L,url:"/creator/custom-promotion",shouldShowMenu:J},commercialTask:{id:"3513324000",name:"品牌任务",icon:U,url:"/creator/commercial-task",independentStatusManagement:!0,shouldShowMenu:J},contentTask:{id:"0613324000",name:"知+互选",icon:V,url:"/creator/content-task",noListing:!0,noGuide:!0,shouldShowMenu:J},zixuan:{id:"2613324000",name:"知+自选",icon:q,url:"/creator/zixuan",independentStatusManagement:!0,shouldShowMenu:J},manager:{id:"4513324000",name:"作者经纪",noListing:!0,noGuide:!0,url:"/creator/manager",shouldShowMenu:J},recruitTask:{id:"3613324000",name:"招募任务",url:"/creator/recruit-task",noListing:!0,noGuide:!0,shouldShowMenu:J},videoDistribution:{id:"4613324000",name:"视频推广",url:"/creator/video-distribution",icon:W,noListing:!0,noGuide:!0,shouldShowMenu:J}},$=Object.values(X);$.filter((function(e){return!e.noGuide})),Object(g.createSelector)((function(e){return e.creator.rights}),O.e,(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.filterKey;return n}),(function(e,t,n){return e.map((function(e){var r=$.find((function(t){return t.id===e.id}));return r?n&&r[n]||r.officeOnly&&!t?null:Object.assign({},r,e):null})).filter(Boolean)})),n(1052),n(678),n(677),n(215);n(450),n(679);var ee=n(440),te=b()({data:[{question:{answer_count:!0,follower_count:!0,visit_count:!0,detail:!0,excerpt:!0,relationship:{is_following:!0}}}]}),ne=Object.assign({},Object(v.a)("creator",["GET_CREATOR_APPLY_STATUS","READ_NOTIFICATION","GET_CREATOR_APPLY_SKILL_LIST","GET_CREATOR_APPLY_INFO","GET_CREATOR_CAPTCHA","GET_CREATOR_SMS_SUPPORTED_COUNTRIES","VALIDATE_CREATOR_CAPTCHA","POST_CREATOR_APPLY_INFO","GET_GOODAT_TOPIC_LIST","SEARCH_TOPIC","MODIFY_GOODAT_TOPIC","GET_HOME_DATA","VALIDATE_CREATOR_CAPTCHA","LOAD_CREATOR_SMS_SUPPORTED_COUNTRIES","GET_TOOLS_QUESTION_IGNORE_REASON","POST_TOOLS_QUESTION_IGNORE_REASON","GET_TOOLS_QUESTION_INVITED_COUNT","GET_TOOLS_QUESTION_INVITED_LIST","DELETE_TOOLS_QUESTION_INVITED","GET_TOOLS_QUESTION_LIST","DELETE_TOOLS_QUESTION","GET_TOOLS_HOT_QUESTION_LIST","GET_TOOLS_MCN_QUESTION_LIST","GET_TOOLS_RECOMMEND_LIST_AVAILABLE_TIMES","GET_TOOLS_RECOMMEND_LIST","GET_TOOLS_RECOMMEND_TIMES_RECORD","POST_TOOLS_RECOMMEND","GET_TOOLS_RECOMMEND_RECORD","GET_PROFIT_REWARD_COMMUNITY_LIST","GET_PROFIT_REWARD_PROMOTION_TOTAL","GET_PROFIT_REWARD_PROMOTION_LIST","GET_CUSTOM_PROMOTION_STATUS","GET_PROMOTION_ITEM_LIST","GET_PROMOTION_ITEM","UPDATE_CURRENT_PROMOTION","DELETE_CURRENT_PROMOTION","LOAD_PROMOTION_PROTOCOL","GET_ACADEMY_TABS","GET_ACADEMY_ARTICLES","GET_GROWTH_LEVEL","GET_CREATOR_RIGHTS","GET_CREATOR_RIGHTS_STATUS","GET_CREATOR_SETTINGS","PATCH_CREATOR_SETTINGS_INFO","GET_CONTENT_RIGHTS_NOTIFICATION","READ_CONTENT_RIGHTS_NOTIFICATION","APPLY_CREATOR_RIGHTS","GET_REALNAME_STATUS","GET_MCN_DAILY_STATUS","GET_MCN_ORDER_LIST","GET_MCN_OVERDUE_GOODS_LIST","GET_MCN_ORDER_DETAIL","GET_MCN_STATISTICS","GET_MCN_CURRENT_MONTH_STATS","GET_MCN_OVERVIEW_DATA","GET_MCN_BALANCE_DATA","GET_MCN_BALANCE_LIST","LOAD_ACTIVITY_LIST","LOAD_TABLE","GET_VIDEO_SUPPORT_BASE_STATISTICS","GET_VIDEO_SUPPORT_USER_STATUS","APPLY_VIDEO_SUPPORT","GET_VIDEO_SUPPORT_DAILY_STATISTICS","GET_VIDEO_SUPPORT_CONTENT_STATISTICS","LOAD_MCN_HOMEPAGE","ACCEPT_MCN_INVITE","REJECT_MCN_INVITE","LAUNCH_UNBIND","ACCEPT_UNBIND","REJECT_UNBIND","GET_CREATOR_TASKS","GET_RECETLY_CREATED","LOAD_SCHOOL_ZVIDEOS","LOAD_HOT_QUESTION_LIST","LOAD_CREATOR_STATISTICS","DELETE_ANSWER","LOAD_CREATION_LIST","LOAD_CREATION","LOAD_ANALYSIS_STATUS","GET_DRAFT_COUNT","GET_DRAFTS","LOAD_ANALYTICS_AGGREGATION","LOAD_ANALYTICS_DAILY_TOTAL_DETAIL","LOAD_ANALYTICS_DAILY_SINGLE_DETAIL","LOAD_ANALYTICS_SINGLE_CONTENT_AGGREGATION","LOAD_ANALYTICS_SINGLE_CONTENT_DETAIL","LOAD_ANALYTICS_SINGLE_PIN_CONTENT_AGGREGATION","LOAD_ANALYTICS_SINGLE_PIN_CONTENT_DETAIL","LOAD_ANNOUNCEMENT_LIST","LOAD_ANNOUNCEMENT","LOAD_CREATOR_SCHOOL_KM_DATA","LOAD_CREATOR_SCHOOL_CONTENT_DETAIL","LOAD_MY_RECENTLY_STUDING","LOG_STUDING","LOAD_VIDEO_DISTRIBUTION_LIST","LOAD_VIDEO_DISTRIBUTION_MAPS","LOAD_VIDEO_DISTRIBUTION_RESOURCE","VIDEO_DISTRIBUTION_DETAIL","VIDEO_DISTRIBUTION_AUTH","VIDEO_DISTRIBUTION_ANSWER_DELETE","CHECK_ACTOR_STATUS","LOAD_CATEGORY_DATA","LOAD_ACTIVITY_DATA"]),Object(v.b)("creator",["SET_CURRENT_CREATOR","READ_CONTENT_RIGHTS_NOTIFICATION_LOCALLY","CLEAN_MCN_ORDER_LIST"]));function re(){return function(e,t,n){var r=n.fnRefs;return Object(m.a)(r,"loadCreatorApplyStatus",(function(){return d()((function(){return e({API:{types:ne.GET_CREATOR_APPLY_STATUS,endpoint:"/creator/apply"}})}))}))()}}function oe(e){return{API:{types:ne.READ_NOTIFICATION,endpoint:"/creator/notification/read",method:"PATCH",body:{type:e}},meta:{type:e}}}function ie(e,t){return{API:{types:ne.POST_TOOLS_RECOMMEND,endpoint:"/creators/recommendation/".concat(e),body:{url_token:t},method:"POST"}}}function ae(e,t){return{API:{types:ne.GET_CONTENT_RIGHTS_NOTIFICATION,method:"GET",endpoint:"/creator/notification/content/".concat(e,"s/").concat(t)},UPDATE:{success:function(n){return Object(o.a)({},"".concat(e,"s"),Object(o.a)({},t,{creatorRightsNotification:n}))}}}}function ce(e,t,n){return function(r,i){var a=i().entities["".concat(e,"s")][t].creatorRightsNotification,c=Object(o.a)({},"".concat(e,"s"),Object(o.a)({},t,{creatorRightsNotification:u()(a,(function(){return 0}))}));return r("current"===n?{type:ne.READ_CONTENT_RIGHTS_NOTIFICATION_LOCALLY,UPDATE:{update:c}}:{API:{types:ne.READ_CONTENT_RIGHTS_NOTIFICATION,method:"next"===n?"PATCH":"DELETE",endpoint:"/creator/notification/content/".concat(e,"s/").concat(t)},UPDATE:{request:c}})}}var se={currentCreatorUrlToken:null,homeData:{recommendQuestions:[]},tools:{question:{invitationCount:{questionFolloweeCount:0,questionTotalCount:0},goodatTopics:[]},customPromotion:{itemLists:{}},recommend:{recommendTimes:{}}},explore:{academy:{tabs:[],article:{}}},rights:[],rightsStatus:{},levelUpperLimit:10,account:{growthLevel:{}},mcn:{},applyStatus:{},videoSupport:{},mcnManage:{},tasks:{},recentlyCreated:[],analysis:{all:{},answer:{},zvideo:{},article:{},pin:{},singleContent:{}},announcement:{},school:{tabs:[],contents:[],banner:null,entities:{}}};function ue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:se,t=arguments.length>1?arguments[1]:void 0,n=t.meta,a=void 0===n?{}:n,s=t.payload;switch(t.type){case ne.GET_HOME_DATA.success:return Object.assign({},e,{homeData:Object.assign({},e.homeData,t.payload)});case ne.GET_TOOLS_QUESTION_LIST.request:var u=a.stateKey;return Object.assign({},e,{homeData:Object.assign({},e.homeData,Object(o.a)({},u,Object.assign({},e.homeData[u],{isLoading:!0})))});case ne.GET_TOOLS_QUESTION_LIST.failure:var l=a.stateKey;return Object.assign({},e,{homeData:Object.assign({},e.homeData,Object(o.a)({},l,Object.assign({},e.homeData[l],{isLoading:!1})))});case ne.GET_TOOLS_QUESTION_LIST.success:var d,f=a.stateKey;return Object.assign({},e,{homeData:Object.assign({},e.homeData,Object(o.a)({},f,Object.assign({},e.homeData[f],{isLoading:!1},s,{data:[].concat(Object(r.a)((null===(d=e.homeData[f])||void 0===d?void 0:d.data)||[]),Object(r.a)(s.data))})))});case ne.DELETE_TOOLS_QUESTION.success:var h=a.stateKey;return Object.assign({},e,{homeData:Object.assign({},e.homeData,Object(o.a)({},h,Object.assign({},e.homeData[h],{data:e.homeData[h].data.filter((function(e){return e.question.id!==t.meta.questionId}))})))});case ne.SET_CURRENT_CREATOR:return Object.assign({},e,{currentCreatorUrlToken:t.payload});case ne.GET_TOOLS_QUESTION_INVITED_COUNT.success:return Object.assign({},e,{tools:Object.assign({},e.tools,{question:Object.assign({},e.tools.question,{invitationCount:t.payload.data,isDrained:!0})})});case ne.GET_GOODAT_TOPIC_LIST.success:return Object.assign({},e,{tools:Object.assign({},e.tools,{question:Object.assign({},e.tools.question,{goodatTopics:t.payload.data.map((function(e){return Object.assign({},e,{isGoodat:!0})})),isDrained:!0})})});case ne.MODIFY_GOODAT_TOPIC.success:var b=t.meta.goodatTopics;return Object.assign({},e,{tools:Object.assign({},e.tools,{question:Object.assign({},e.tools.question,{goodatTopics:b})})});case ne.GET_CUSTOM_PROMOTION_STATUS.success:return Object.assign({},e,{tools:Object.assign({},e.tools,{customPromotion:Object.assign({},e.tools.customPromotion,t.payload)})});case ne.GET_PROMOTION_ITEM_LIST.success:var v=t.itemType,m=t.offset,g=t.limit,O=t.payload,y=O.data,j=O.count,E=e.tools.customPromotion.itemLists[v]||{count:j,data:Array.from({length:j},(function(){return null}))},C=Object.assign({},E,{data:[].concat(Object(r.a)(E.data.slice(0,m)),Object(r.a)(y),Object(r.a)(E.data.slice(m+g)))});return Object.assign({},e,{tools:Object.assign({},e.tools,{customPromotion:Object.assign({},e.tools.customPromotion,{itemLists:Object.assign({},e.tools.customPromotion.itemLists,Object(o.a)({},v,C))})})});case ne.GET_TOOLS_RECOMMEND_TIMES_RECORD.success:var w=t.itemType,T=t.offset,_=t.limit,S=t.payload,A=S.data,k=S.paging.totals,R=e.tools.recommend.recommendTimes[w]||{count:k,data:Array.from({length:k},(function(){return null}))},I=Object.assign({},R,{data:[].concat(Object(r.a)(R.data.slice(0,T)),Object(r.a)(A.map((function(e){return Object.assign({},e,{id:c()(e.created)})}))),Object(r.a)(R.data.slice(T+_)))});return Object.assign({},e,{tools:Object.assign({},e.tools,{recommend:Object.assign({},e.tools.recommend,{recommendTimes:Object.assign({},e.tools.recommend.recommendTimes,Object(o.a)({},w,I))})})});case ne.GET_ACADEMY_TABS.success:var x=t.payload.data;return Object.assign({},e,{explore:Object.assign({},e.explore,{academy:Object.assign({},e.explore.academy,{isDrained:!0,tabs:x.tabs})})});case ne.GET_ACADEMY_ARTICLES.success:var N=t.payload.data;return Object.assign({},e,{explore:Object.assign({},e.explore,{academy:Object.assign({},e.explore.academy,{article:N.contents.reduce((function(e,t){return Object.assign({},e,Object(o.a)({},t.id,t))}),e.explore.academy.article)})})});case ne.GET_CREATOR_RIGHTS.success:var D=t.payload.rights,P=void 0===D?[]:D;return Object.assign({},e,{rights:P});case ne.GET_GROWTH_LEVEL.success:var L=t.payload;return Object.assign({},e,{account:Object.assign({},e.account,{growthLevel:Object.assign({},e.account.growthLevel,L)})});case ne.GET_CREATOR_RIGHTS_STATUS.success:var M=t.payload,U=t.meta.rightsId;return Object.assign({},e,{rightsStatus:Object.assign({},e.rightsStatus,Object(o.a)({},U,M))});case ne.APPLY_CREATOR_RIGHTS.success:var B=t.meta,z=B.rightsId,F=B.isExperience,G=t.payload;return Object.assign({},e,{rights:e.rights.map((function(e){return Object.assign({},e,{status:e.id===z?F?"experience":G.status:e.status})}))});case ne.GET_CREATOR_APPLY_INFO.success:return Object.assign({},e,{applyConfigInfo:t.payload});case ne.GET_CREATOR_SETTINGS.success:return Object.assign({},e,{settings:t.payload.data});case ne.PATCH_CREATOR_SETTINGS_INFO.success:return Object.assign({},e,{settings:Object.assign({},e.settings,t.data)});case ne.GET_CREATOR_APPLY_STATUS.success:return Object.assign({},e,{applyStatus:Object.assign({},t.payload)});case ne.READ_NOTIFICATION.success:return Object.assign({},e,{applyStatus:Object.assign({},e.applyStatus,{notification:Object.assign({},e.applyStatus.notification,Object(o.a)({},Object(i.camelize)(t.meta.type),0))})});case ne.CLEAN_MCN_ORDER_LIST:return Object.assign({},e,{mcn:Object.assign({},e.mcn,{orderSource:void 0,orders:void 0})});case ne.GET_MCN_ORDER_LIST.success:var V=t.payload,H=V.data,q=V.paging.totals,K=t.source,W=t.limit,Y=t.offset,Q=e.mcn.orderSource===K?e.mcn.orders:Array.from({length:q});return Object.assign({},e,{mcn:Object.assign({},e.mcn,{orderSource:K,orders:Q.map((function(e,t){return t>=Y&&t<Y+W?H[t-Y]:e}))})});case ne.GET_MCN_OVERDUE_GOODS_LIST.success:var Z=t.payload,J=Z.data,X=Z.paging.totals,$=t.source,te=t.limit,re=t.offset,oe=e.mcn.goodsListSource===$?e.mcn.goodsList:Array.from({length:X});return Object.assign({},e,{mcn:Object.assign({},e.mcn,{goodsListSource:$,goodsList:oe.map((function(e,t){return t>=re&&t<re+te?J[t-re]:e}))})});case ne.GET_MCN_ORDER_DETAIL.success:var ie=t.payload,ae=t.id;return Object.assign({},e,{mcn:Object.assign({},e.mcn,{orders:e.mcn.orders.map((function(e){return(null==e?void 0:e.id)&&String(e.id)===ae?Object.assign({},e,ie,{id:e.id,imgURL:e.imgURL}):e}))})});case ne.GET_CREATOR_APPLY_STATUS.failure:return t.err&&403===t.err.status?Object.assign({},e,{guide:!0}):e;case ne.LOAD_ACTIVITY_LIST.success:var ce,ue=e.activity,le=void 0===ue?{}:ue,de=t.meta.groupToken,fe=t.payload;return Object.assign({},e,{activity:Object.assign({},le,Object(o.a)({},de,Object.assign({},le[de],fe,{data:[].concat(Object(r.a)((null===(ce=le[de])||void 0===ce?void 0:ce.data)||[]),Object(r.a)(fe.data||[])),page:Object.assign({},fe.page,{isLoading:!1})})))});case ne.LOAD_TABLE.success:var pe,he=a.stateKey,be=a.pagesKey,ve=a.totalKey,me=a.dataKey,ge=a.current,Oe=s.data,ye=s.paging;return Object.assign({},e,Object(o.a)({},he,Object(ee.b)(null!==(pe=e[he])&&void 0!==pe?pe:{},ge,{data:null!=Oe?Oe:[],total:null==ye?void 0:ye.totals},{pagesKey:be,totalKey:ve,dataKey:me})))}switch(t.type){case ne.GET_VIDEO_SUPPORT_USER_STATUS.success:return Object.assign({},e,{videoSupport:Object.assign({},e.videoSupport,{userStatus:t.payload})});case ne.GET_VIDEO_SUPPORT_BASE_STATISTICS.success:return Object.assign({},e,{videoSupport:Object.assign({},e.videoSupport,{base:t.payload})});case ne.GET_VIDEO_SUPPORT_DAILY_STATISTICS.success:return Object.assign({},e,{videoSupport:Object.assign({},e.videoSupport,{daily:t.payload})});case ne.GET_VIDEO_SUPPORT_CONTENT_STATISTICS.success:return Object.assign({},e,{videoSupport:Object.assign({},e.videoSupport,{content:t.payload})});case ne.LOAD_MCN_HOMEPAGE.success:return Object.assign({},e,{mcnManage:t.payload});case ne.GET_CREATOR_TASKS.success:var je=t.payload;return Object.assign({},e,{tasks:je});case ne.GET_RECETLY_CREATED.success:var Ee=t.payload;return Object.assign({},e,{recentlyCreated:null==Ee?void 0:Ee.data});case ne.LOAD_SCHOOL_ZVIDEOS.success:var Ce=t.payload;return Object.assign({},e,{schoolZvideos:null==Ce?void 0:Ce.data});case ne.LOAD_HOT_QUESTION_LIST.success:var we=t.payload;return Object.assign({},e,{hotQuestionList:null==we?void 0:we.data});case ne.LOAD_CREATOR_STATISTICS.success:return Object.assign({},e,{creatorStatistics:t.payload});case ne.GET_DRAFT_COUNT.success:var Te=t.meta.contentType;return"zvideo"===Te?Object.assign({},e,{draftCount:Object.assign({},e.draftCount,Object(o.a)({},Te,t.payload.paging.totals))}):Object.assign({},e,{draftCount:Object.assign({},e.draftCount,Object(o.a)({},Te,t.payload.count))});case ne.LOAD_ANALYTICS_AGGREGATION.success:var _e=a.stateKey;return Object.assign({},e,{analysis:Object.assign({},e.analysis,Object(o.a)({},_e,Object.assign({},e.analysis[_e],{aggregation:t.payload})))});case ne.LOAD_ANALYTICS_DAILY_TOTAL_DETAIL.success:var Se=a.stateKey;return Object.assign({},e,{analysis:Object.assign({},e.analysis,Object(o.a)({},Se,Object.assign({},e.analysis[Se],{totalDetail:t.payload})))});case ne.LOAD_ANALYTICS_DAILY_SINGLE_DETAIL.success:var Ae=a.stateKey;return Object.assign({},e,{analysis:Object.assign({},e.analysis,Object(o.a)({},Ae,Object.assign({},e.analysis[Ae],{singleDetail:t.payload})))});case ne.LOAD_ANALYTICS_SINGLE_CONTENT_AGGREGATION.success:case ne.LOAD_ANALYTICS_SINGLE_PIN_CONTENT_AGGREGATION.success:var ke=a.stateKey;return Object.assign({},e,{analysis:Object.assign({},e.analysis,{singleContent:Object.assign({},e.analysis.singleContent,Object(o.a)({},ke,Object.assign({},e.analysis.singleContent[ke],{aggregation:t.payload})))})});case ne.LOAD_ANALYTICS_SINGLE_CONTENT_DETAIL.success:case ne.LOAD_ANALYTICS_SINGLE_PIN_CONTENT_DETAIL.success:var Re=a.stateKey;return Object.assign({},e,{analysis:Object.assign({},e.analysis,{singleContent:Object.assign({},e.analysis.singleContent,Object(o.a)({},Re,Object.assign({},e.analysis.singleContent[Re],{detail:t.payload})))})});case ne.LOAD_ANALYSIS_STATUS.success:return Object.assign({},e,{analysisStatus:t.payload});case ne.LOAD_ANNOUNCEMENT_LIST.success:var Ie,xe=a.stateKey,Ne=a.offset;return Object.assign({},e,{announcement:Object.assign({},e.announcement,Object(o.a)({},xe,Object.assign({},s,{data:Object.assign({},null===(Ie=e.announcement[xe])||void 0===Ie?void 0:Ie.data,Object(o.a)({},Ne,s.data))})))});case ne.LOAD_CREATOR_SCHOOL_KM_DATA.success:var De=a.stateKey,Pe={tabs:"data.tabs",contents:"data.tabContents",banner:"data.banners"};return Object.assign({},e,{school:Object.assign({},e.school,Object(o.a)({},De,p()(s,Pe[De])))});case ne.LOAD_CREATOR_SCHOOL_CONTENT_DETAIL.success:var Le=s.data.reduce((function(e,t){return Object.assign({},e,Object(o.a)({},t.id,t))}),{});return Object.assign({},e,{school:Object.assign({},e.school,{entities:Object.assign({},e.school.entities,Le)})});case ne.LOAD_CATEGORY_DATA.success:var Me=s.data;return Object.assign({},e,{streaming:Object.assign({},e.streaming,{categoryList:Me})});case ne.LOAD_ACTIVITY_DATA.success:var Ue=s.data;return Object.assign({},e,{streaming:Object.assign({},e.streaming,{activity:Ue})});case ne.CHECK_ACTOR_STATUS.success:return Object.assign({},e,{streaming:Object.assign({},e.streaming,{status:null==s?void 0:s.data})})}return e}},function(e,t,n){"use strict";var r=n(165),o=n(921),i=n(245),a=n(86),c=n(922),s=n(924),u=n(381),l=n(927),d=n(928),f=n(87),p=n(929),h=n(619),b=n(930),v=n(931),m=a.OrderedSet,g={replaceText:function(e,t,n,o,i){var a=h(e,t),c=b(a,t),s=r.create({style:o||m(),entity:i||null});return d(c,c.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,o){return t.isCollapsed()||f(!1),g.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=u(e,t),o=g.removeRange(e,t,"backward");return g.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=h(e,t),o=b(r,t);return l(o,o.getSelectionAfter(),n)},removeRange:function(e,t,n){var r,o,a=void 0,c=void 0;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),a=e.getBlockForKey(r),c=e.getBlockForKey(o);var u=t.getStartOffset(),l=t.getEndOffset(),d=a.getEntityAt(u),f=c.getEntityAt(l-1);if(r===o&&d&&d===f){var p=s(e.getEntityMap(),a,c,t,n);return b(e,p)}var v=t;i.draft_segmented_entities_behavior&&(v=s(e.getEntityMap(),a,c,t,n));var m=h(e,v);return b(m,v)},splitBlock:function(e,t){var n=h(e,t),r=b(n,t);return v(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return o.add(e,t,n)},removeInlineStyle:function(e,t,n){return o.remove(e,t,n)},setBlockType:function(e,t,n){return p(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return p(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return p(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=h(e,t);return c(r,t,n)}};e.exports=g},function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(30),h=n.n(p),b=n(41),v=n.n(b),m=n(1),g=n(46),O=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var j=function(e){s()(n,e);var t=y(n);function n(e){var r;return o()(this,n),r=t.call(this,e),"undefined"!=typeof document&&(r.element=document.createElement("div")),r}return a()(n,[{key:"componentDidMount",value:function(){document.body.appendChild(this.element)}},{key:"componentWillUnmount",value:function(){document.body.removeChild(this.element),delete this.element}},{key:"render",value:function(){if(this.element){var e=this.props,t=e.onRef,n=v()(e,["onRef"]);return Object(g.createPortal)(Object(O.c)("div",h()({ref:t},n)),this.element)}return null}}]),n}(m.Component)},function(e,t,n){"use strict";n.d(t,"e",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"j",(function(){return b})),n.d(t,"i",(function(){return v})),n.d(t,"g",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"h",(function(){return O})),n.d(t,"d",(function(){return y})),n.d(t,"f",(function(){return j}));var r=n(15),o=n(4),i=n(21),a=n(23),c=n(29),s=n(33),u=n(35),l=n(19),d=Object.assign({},Object(l.a)("comment",["GET","GET_COLLAPSED","GET_REVERSE","GET_REVIEWING","GET_CONVERSATION","UPDATE_LIKE","UPDATE_DISLIKE","UPDATE_FEATURED","UPDATE_COLLAPSED","APPROVE","REJECT","DELETE","ADD","GET_MORE_REPLY_COMMENT","GET_CONVERSATION_MORE","GET_STICKERS","GET_COMMENT_WITH_PIC_PERMISSION","LOAD_NOTI_COMMENTS"]),Object(l.b)("comment",["ORDER"])),f={ebook:"book",collection:"favlist"};function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.order,i=void 0===r?"normal":r,a=n.isPrevious,l=void 0!==a&&a,p=n.byComment,h=n.status,b=void 0===h?"open":h,v=n.commentPattern,m=n.current,g=n.patternLimit,O=void 0===g?20:g,y=arguments.length>3?arguments[3]:void 0;return function(n,r){var a=r().comments,h=a.pagination,g=d.GET;"reviewing"===b&&(h=a.reviewing,g=d.GET_REVIEWING),"collapsed"===b&&(h=a.collapsed,g=d.GET_COLLAPSED),"reverse"===i&&"open"===b&&(h=a.reverse,g=d.GET_REVERSE);var j=h["".concat(e,"_").concat(t)]||{},E=j.next,C=j.previous,w=j.ids,T=(void 0===w?[]:w).length&&(l?C:E),_=0,S=s.a;return"bottom"!==v||y||(_=(m-1)*O,S=O,T=!1),n({parentId:t,parentType:e,isPrevious:l,API:Object.assign({types:g},T?{endpoint:T}:{endpoint:"".concat(f[e]||e,"s/").concat(t,"/comments"),query:Object.assign({include:"data[*].author",order:i,limit:S},"open"===b&&p?{byComment:p}:{offset:_,status:b})},{headers:{"X-APP-VERSION":"6.42.0"}}),schema:c.a.COMMENT_ARRAY,UPDATE:{failure:function(n){return n&&n.res&&403===n.res.status?Object(o.a)({},"".concat(e,"s"),Object(o.a)({},t,{adminClosedComment:!0})):{}}},NOTIFICATION:{key:u.b,failure:function(e){return(!e||403!==e.code)&&"获取评论失败,请稍后重试"}}})}}function h(e,t,n,r,a){return function(s,l){var p="".concat(e,"s"),h=(l().entities[p]||{})[t]||{};if(!h.isSubmitting){var b=h.commentCount,v=f[e]||e,m="评论发布成功!";return"commercial"===h.questionType&&"censor"===h.commentPermission&&(m="评论已提交,由品牌筛选后公开"),s({parentType:e,parentId:t,id:a,API:{types:d.ADD,endpoint:"".concat(v,"s/").concat(t,"/comments"),method:"POST",fetchOptions:{zsEncrypt:!0,bodyType:"json",body:Object(i.decamelizeKeys)({content:n,replyToId:r})}},schema:c.a.COMMENT,UPDATE:{request:Object(o.a)({},p,Object(o.a)({},t,{commentCount:b+1,isSubmitting:!0})),success:Object(o.a)({},p,Object(o.a)({},t,{isSubmitting:!1})),failure:Object(o.a)({},p,Object(o.a)({},t,{commentCount:b,isSubmitting:!1}))},NOTIFICATION:{key:u.b,success:m,failure:"评论发布失败。"},replyToId:r})}}}function b(e){return function(t,n){var r=n().entities.comments[e],i=r.voteCount,a=r.voting,c=r.disliked;return t({id:e,API:{types:d.UPDATE_LIKE,endpoint:"comments/".concat(e,"/actions/like"),method:a?"DELETE":"POST"},UPDATE:{request:{comments:Object(o.a)({},e,{voteCount:i+(a?-1:1),voting:!a,disliked:!!a&&c})},success:function(t){return{comments:Object(o.a)({},e,t)}},failure:{comments:Object(o.a)({},e,r)}},NOTIFICATION:{key:u.b,failure:u.a}})}}function v(e,t,n,r){return function(i,a){var c=a().entities.comments[e],s=c.featured,l=c.collapsed;return i({id:e,parentId:t,parentType:n,lastFeaturedIndex:r,expect:!s,API:{types:d.UPDATE_FEATURED,endpoint:"comments/".concat(e,"/actions/feature"),method:s?"delete":"post"},UPDATE:{request:{comments:Object(o.a)({},e,{featured:!s,collapsed:!!s&&l})},failure:{comments:Object(o.a)({},e,c)}},NOTIFICATION:{key:u.b,failure:u.a,endpoint:"comments/".concat(e,"/actions/feature"),method:s?"delete":"post"}})}}function m(e,t,n){return function(r,i){var a=i().entities.comments[e],c=a.collapsed,s=a.featured,l=!c;return r({id:e,expect:l,parentType:t,parentId:n,API:{types:d.UPDATE_COLLAPSED,endpoint:"comments/".concat(e,"/actions/collapse"),method:l?"post":"delete"},UPDATE:{request:{comments:Object(o.a)({},e,{collapsed:l,featured:!l&&s})},failure:{comments:Object(o.a)({},e,a)}},NOTIFICATION:{key:u.b,failure:u.a}})}}function g(e,t,n){return function(r,i){var a=i().entities,c=a.comments[e],s="".concat(t,"s"),u=a[s][n]||{commentCount:0};return r({id:e,parentId:n,parentType:t,API:{types:d.APPROVE,endpoint:"comments/".concat(e,"/actions/approve"),method:"PUT"},UPDATE:{request:Object(o.a)({comments:Object(o.a)({},e,{status:"open",isDelete:!0})},s,Object(o.a)({},n,{commentCount:u.commentCount+1})),failure:Object(o.a)({comments:Object(o.a)({},e,c)},s,Object(o.a)({},n,u))}})}}function O(e){return function(t,n){var r=n().entities.comments[e],i=r.voting,a=r.voteCount,c=r.disliked,s=!c;return t({id:e,API:{types:d.UPDATE_DISLIKE,endpoint:"comments/".concat(e,"/actions/dislike"),method:c?"DELETE":"POST"},UPDATE:{request:{comments:Object(o.a)({},e,{disliked:s,voting:!!c&&i,voteCount:s&&i?a-1:a})},failure:{comments:Object(o.a)({},e,r)}},NOTIFICATION:{key:u.b,failure:u.a}})}}function y(e,t,n){return function(r,i){var a=i(),c=function(e){return{API:{types:d.DELETE,endpoint:"comments/".concat(e),method:"delete"}}}(e),s={UPDATE:{request:{},failure:{}}},l=function(e,t){var n=t.id;return e.entities.comments[n]}(a,{id:e});l&&(s.UPDATE.request.comments=Object(o.a)({},e,{isDelete:!0}),s.UPDATE.failure.comments=Object(o.a)({},e,l));var f="".concat(t,"s"),p=(a.entities[f]||{})[n],h=!!l&&l.reviewing;return p&&!h&&(s.UPDATE.request[f]=Object(o.a)({},n,{commentCount:p.commentCount-1}),s.UPDATE.failure[f]=Object(o.a)({},n,p)),r(Object.assign({id:e,collapsed:l&&l.collapsed,reviewing:h,parentType:t,parentId:n},c,s,{NOTIFICATION:{key:u.b,failure:u.a}}))}}function j(e){return{id:e,API:{types:d.GET_CONVERSATION,endpoint:"comments/".concat(e,"/conversation")},schema:c.a.COMMENT_ARRAY,NOTIFICATION:{key:u.b,failure:u.a}}}var E=function(e){var t=e.parentType,n=e.parentId;return"".concat(t,"_").concat(n)};t.c=Object(a.combineReducers)({pagination:Object(s.e)(d.GET,{mapActionToKey:E,additionalCaseTypes:[d.APPROVE.success,d.ADD.success,d.GET_CONVERSATION.success].concat(Object(r.a)(Object.values(d.UPDATE_FEATURED)),Object(r.a)(Object.values(d.UPDATE_COLLAPSED))),additionalCase:function(e,t){switch(t.type){case d.APPROVE.success:return Object.assign({},e,{totals:e.totals+1,ids:[].concat(Object(r.a)(e.ids),[t.id])});case d.ADD.success:var n=t.replyToId,o=t.id;if(n&&!o){var i=e.ids.indexOf(n);return Object.assign({},e,{totals:e.totals+1,ids:[].concat(Object(r.a)(e.ids.slice(0,i+1)),[t.result],Object(r.a)(e.ids.slice(i+1))),newIds:[].concat(Object(r.a)(e.newIds.slice(0,i+1)),[t.result],Object(r.a)(e.newIds.slice(i+1)))})}return Object.assign({},e,{totals:e.totals+1,ids:[].concat(Object(r.a)(e.ids),[t.result]),newIds:[].concat(Object(r.a)(e.newIds),[t.result])});case d.UPDATE_COLLAPSED.request:var a=e.ids,c=a.indexOf(t.id),s=a.slice();return t.expect?s.splice(c,1):s.push(t.id),Object.assign({},e,{ids:s,newIds:s,index:c});case d.UPDATE_COLLAPSED.success:return delete e.index,Object.assign({},e);case d.UPDATE_COLLAPSED.failure:var u=e.ids.slice(),l=u.indexOf(t.id);return t.expect?u.splice(l,0,t.id):u.splice(l,1),delete e.index,Object.assign({},e,{ids:u,newIds:u});default:return e}}}),collapsed:Object(s.e)(d.GET_COLLAPSED,{mapActionToKey:E,additionalCaseTypes:Object(r.a)(Object.values(d.UPDATE_COLLAPSED)),additionalCase:function(e,t){switch(t.type){case d.UPDATE_COLLAPSED.request:var n=e.ids,r=n.indexOf(t.id),o=n.slice();return t.expect?o.push(t.id):o.splice(r,1),Object.assign({},e,{ids:o,newIds:o,index:r});case d.UPDATE_COLLAPSED.success:return delete e.index,Object.assign({},e);case d.UPDATE_COLLAPSED.failure:var i=e.ids,a=e.index,c=i.slice();return t.expect?c.splice(a,1):c.splice(a,0,t.id),delete e.index,Object.assign({},e,{ids:i,newIds:c});default:return e}}}),reverse:Object(s.e)(d.GET_REVERSE,{mapActionToKey:E,additionalCaseTypes:[d.APPROVE.success,d.ADD.success],additionalCase:function(e,t){switch(t.type){case d.APPROVE.success:return Object.assign({},e,{totals:e.totals+1,ids:[t.id].concat(Object(r.a)(e.ids))});case d.ADD.success:var n=t.replyToId,o=t.id;if(n&&!o){var i=e.ids.indexOf(n);return Object.assign({},e,{totals:e.totals+1,newIds:[].concat(Object(r.a)(e.newIds.slice(0,i+1)),[t.result],Object(r.a)(e.newIds.slice(i+1))),ids:[].concat(Object(r.a)(e.ids.slice(0,i+1)),[t.result],Object(r.a)(e.ids.slice(i+1)))})}return Object.assign({},e,{totals:e.totals+1,ids:[].concat(Object(r.a)(e.ids),[t.result]),newIds:[].concat(Object(r.a)(e.newIds),[t.result])});default:return null}}}),reviewing:Object(s.e)(d.GET_REVIEWING,{mapActionToKey:E,additionalCaseTypes:[d.APPROVE.success],additionalCase:function(e,t){if(t.type===d.APPROVE.success){var n=e.ids;return n.splice(n.indexOf(t.id),1),Object.assign({},e,{ids:n})}return e}}),conversation:Object(s.e)(d.GET_CONVERSATION,{additionalCaseTypes:[d.ADD.success].concat(Object(r.a)(Object.values(d.UPDATE_FEATURED))),additionalCase:function(e,t){return t.type===d.ADD.success?Object.assign({},e,{totals:e.totals+1,ids:[].concat(Object(r.a)(e.ids),[t.payload.id])}):e}}),parent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=E(t);switch(t.type){case d.GET.success:var r=t.payload,i=r.featuredCounts,a=r.collapsedCounts,c=r.reviewingCounts,s=r.commonCounts;return Object.assign({},e,Object(o.a)({},n,{featuredCounts:i,collapsedCounts:a,reviewingCounts:c,commonCounts:s}));case d.APPROVE.success:var u=e[n].reviewingCounts-1;return Object.assign({},e,Object(o.a)({},n,Object.assign({},e[n],{reviewingCounts:u})));case d.REJECT.success:var l=e[n].reviewingCounts+1;return Object.assign({},e,Object(o.a)({},n,Object.assign({},e[n],{reviewingCounts:l})));case d.UPDATE_COLLAPSED.success:var f=e[n]||{};return Object.assign({},e,Object(o.a)({},n,Object.assign({},f,{collapsedCounts:f.collapsedCounts+(t.expect?1:-1)})));case d.DELETE.success:var p=e[n]||{};return Object.assign({},e,Object(o.a)({},n,Object.assign({},p,t.collapsed&&{collapsedCounts:p.collapsedCounts-1},t.reviewing?{reviewingCounts:p.reviewingCounts-1}:{commonCount:p.commonCount-1})));default:return e}}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var r=n(55),o=n.n(r),i=n(22),a=n.n(i),c=n(24),s=n.n(c),u=n(25),l=n.n(u),d=n(27),f=n.n(d),p=n(16),h=n.n(p),b=n(2),v=n.n(b),m=n(1),g=n(277),O=n.n(g),y=n(6),j=n.n(y),E=n(128),C=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 T=["position","top","right","bottom","left","display","float","margin","marginLeft","marginRight","marginTop","marginBottom"],_=function(e){l()(n,e);var t=w(n);function n(){var e;a()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={status:e.props.initialStatus,rect:{}},e.positioningStyle={},e.check=function(){var t=e.placeholder||e.el;if(t&&!(window.pageYOffset<0)){var n=t.getBoundingClientRect(),r=e.props,o=r.offset,i=r.bottom,a=r.container,c=r.onPositionStatusChange,s=e.state.status,u="normal";if(i){var l=n.bottom,d=innerHeight-o;if(l>d)if(a){var f=n.height,p=a();if(!p)return;var h=p.getBoundingClientRect().top;h<=d-f?u="fixed":h<=d&&(u="absolute")}else u="fixed"}else{if(n.top<o)if(a){var b=n.height,v=a();if(!v)return;var m=v.getBoundingClientRect().bottom;m>=b+o?u="fixed":m>=o&&(u="absolute")}else u="fixed"}e.setState({status:u,rect:n},(function(){c&&s!==u&&c(u)}))}},e.updateHeight=function(){if(e.el){var t=e.el.getBoundingClientRect().height;e.setState({rect:Object.assign({},e.state.rect,{height:t})},e.check)}},e}return s()(n,[{key:"componentDidMount",value:function(){var e=this.props.positioningStyle,t=window.getComputedStyle(this.el);t&&(this.positioningStyle=Object.assign({},O()(t,T),{},O()(e,T)),this.subscriptions=[Object(E.subscribe)("scroll",this.check),Object(E.subscribe)("resize",this.check)],this.timeout=setTimeout(this.check))}},{key:"shouldComponentUpdate",value:function(e,t){var n=t.status,r=t.children,o=t.rect,i=o.width,a=o.height,c=o.left,s=this.state,u=s.status,l=s.rect,d=this.props,f=d.bottom,p=d.offset;return d.children!==r||f!==e.bottom||p!==e.offset||u!==n||"normal"!==n&&(l.width!==i||l.height!==a||l.left!==c)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),this.subscriptions&&this.subscriptions.forEach((function(e){e.unsubscribe()}))}},{key:"getPlaceholderStyle",value:function(){var e=this.state.rect,t=e.width,n=e.height,r=Object.assign({},this.positioningStyle,{height:n});return"block"===r.display&&r.float&&"none"===r.float||(r.width=t),r}},{key:"getStyle",value:function(){var e={},t=this.state.rect,n=t.left,r=t.width,o=this.props.getStyle;if(o)return o();if("static"!==this.positioningStyle.position&&"relative"!==this.positioningStyle.position||this.positioningStyle.float&&"none"!==this.positioningStyle.float||(e.width="".concat(r,"px")),"fixed"===this.state.status){var i,a,c=this.props,s=c.offset;e[c.bottom?"bottom":"top"]="".concat(s,"px"),e.left="".concat(null!==(i=n+(null===(a=window)||void 0===a?void 0:a.pageXOffset))&&void 0!==i?i:0,"px")}return e}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.bottom,i=n.children,a=this.state.status,c="function"==typeof i?i({isFixed:"fixed"===a}):m.Children.only(i),s="normal"!==a;return Object(C.c)("div",{ref:function(e){t.el=e&&e.firstChild}},Object(m.cloneElement)(c,{className:j()("Sticky",c.props.className,(e={},o()(e,"is-".concat(a),s),o()(e,"is-bottom",r),e)),style:s?Object.assign({},c.props.style||{},{},this.getStyle()):c.props.style}),s&&Object(C.c)("div",{ref:function(e){t.placeholder=e},className:"Sticky--holder",style:this.getPlaceholderStyle()}))}}]),n}(m.Component);_.propTypes={offset:v.a.number,bottom:v.a.bool,container:v.a.func,onPositionStatusChange:v.a.func,children:v.a.oneOfType([v.a.func,v.a.element]).isRequired,initialStatus:v.a.oneOf(["normal","fixed","absolute"]),positioningStyle:v.a.object,getStyle:v.a.func},_.defaultProps={offset:0,bottom:!1,initialStatus:"normal",positioningStyle:{}};var S=_;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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 k=function(e){l()(n,e);var t=A(n);function n(){return a()(this,n),t.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e=this.props,t=e.bottom,n=e.children,r=e.offset,i=m.Children.only(n);return Object(m.cloneElement)(i,{className:j()("Sticky",i.props.className,"Sticky--CSSSticky"),style:Object.assign({},i.props.style,{},void 0!==r&&o()({},t?"bottom":"top",r))})}}]),n}(m.Component);k.propTypes={offset:v.a.number,bottom:v.a.bool,positioningStyle:v.a.object},k.defaultProps={offset:0,bottom:!1,positioningStyle:{}};var R=k;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 Date.prototype.toString.call(Reflect.construct(Date,[],(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)}}m.Component},function(e,t,n){"use strict";var r=n(17),o=n(32),i=n(0),a=n(1),c=n.n(a),s=c.a.forwardRef((function(e,t){var n=e.getComponent,a=Object(o.a)(e,["getComponent"]),s=c.a.useState(null),u=Object(r.a)(s,2),l=u[0],d=u[1];return c.a.useEffect((function(){var e=!1;return n().then((function(t){e||d({Component:t.default||t})})),function(){e=!0}}),[]),l&&Object(i.b)(l.Component,Object.assign({ref:t},a))}));t.a=s},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var r={question:"问题",answer:"回答",comment:"评论",article:"文章",message:"私信",member:"用户",people:"用户",collection:"收藏",activity:"编辑",pin:"想法",ebook:"电子书",column:"专栏",roundtable:"圆桌",promotion:"文章",topic:"话题",live:"live",live_course:"live 课程",book_review:"书评",club_mask:"圈子用户",club_post:"帖子",zvideo:"视频",search_suggested_word:"搜索建议词",zvideo_collection:"视频合集"},o=Object.keys(r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.modifyQuery=t.parse=t.param=t.toAbsoluteUrl=t.decorateAPIAddress=t.isAbsoluteUrl=void 0;var r=n(789);Object.defineProperty(t,"isAbsoluteUrl",{enumerable:!0,get:function(){return r.isAbsoluteUrl}}),Object.defineProperty(t,"decorateAPIAddress",{enumerable:!0,get:function(){return r.decorateAPIAddress}}),Object.defineProperty(t,"toAbsoluteUrl",{enumerable:!0,get:function(){return r.toAbsoluteUrl}}),Object.defineProperty(t,"param",{enumerable:!0,get:function(){return r.param}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return r.parse}}),Object.defineProperty(t,"modifyQuery",{enumerable:!0,get:function(){return r.modifyQuery}})},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return u}));var r=n(4),o=n(19),i=n(35),a=n(28),c=Object(o.a)("user",["UPDATE_FOLLOWERS"]),s=function(e,t){var n=t.urlToken,r=t.id,o=e.entities.users,i=void 0===o?{}:o;return i[n||r]||i[Object.keys(i).find((function(e){return i[e].id===r}))]};function u(e,t){return function(n,o){var s,u,l=o(),d=l.entities.users,f=l.currentUser,p=d[e]||{};if(p.isBlocked)return n(Object(i.g)(a.H.blocked,"red"));var h=d[f],b=t?1:-1;return n({urlToken:f,userUrlToken:e,expect:t,API:{types:c.UPDATE_FOLLOWERS,endpoint:"members/".concat(e,"/followers"),method:t?"POST":"DELETE"},UPDATE:{request:{users:(s={},Object(r.a)(s,p.urlToken,{followerCount:p.followerCount+b,isFollowing:t}),Object(r.a)(s,h.urlToken,{followingCount:h.followingCount+b}),s)},failure:{users:(u={},Object(r.a)(u,p.urlToken,p),Object(r.a)(u,h.urlToken,h),u)},success:function(e){return{users:Object(r.a)({},p.urlToken,e)}}}})}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"f",(function(){return f}));var r=n(15),o=n(4),i=n(29),a=n(19),c=Object.assign({},Object(a.a)("label",["GET","GET_RECOGNIZER_LIST"])),s=function(e,t){return t&&e.label["".concat(t.type,"_").concat(t.id)]},u=function(e,t){return e.label.recognizerLists[t]};function l(e,t){return{itemType:e,id:t,API:{types:c.GET,endpoint:"/".concat(e,"s/").concat(t,"/labels")}}}function d(e){return function(t,n){var r=(n().label.recognizerLists[e]||{}).paging,o=(r=void 0===r?{}:r).next;return t({answerId:e,API:Object.assign({types:c.GET_RECOGNIZER_LIST},o?{endpoint:o}:{endpoint:"answers/".concat(e,"/recognizers"),query:{include:"data[*].is_following,is_followed,badge[?(type=best_answerer)].topics"}}),schema:i.a.USER_ARRAY})}}t.b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{recognizerLists:{}},t=arguments.length>1?arguments[1]:void 0;if(t.type===c.GET.success){var n=t.id,i=t.itemType,a=t.payload;e=Object.assign({},e,Object(o.a)({},"".concat(i,"_").concat(n),a))}if(t.type===c.GET_RECOGNIZER_LIST.request){var s=t.answerId,u=e.recognizerLists[s]||{};return Object.assign({},e,{recognizerLists:Object(o.a)({},s,Object.assign({},u,{paging:Object.assign({},u.paging,{isLoading:!0})}))})}if(t.type===c.GET_RECOGNIZER_LIST.success){var l=t.answerId,d=t.payload.paging,f=t.result,p=e.recognizerLists[l]||{};return Object.assign({},e,{recognizerLists:Object.assign({},e.recognizerLists,Object(o.a)({},l,{data:[].concat(Object(r.a)(p.data||[]),Object(r.a)(f)),paging:Object.assign({},p.paging,d,{isLoading:!1})}))})}return e};var f=function(e,t){return t&&"boolean"==typeof t.isLabeled}},function(e,t,n){var r=n(337),o=n(325),i=n(264),a=n(338),c=n(331),s=n(584),u=i((function(e){var t=s(e);return c(t)&&(t=void 0),a(r(e,1,c,!0),o(t,2))}));e.exports=u},function(e,t,n){"use strict";var r=n(32),o=n(17),i=n(0),a=n(1),c=n.n(a),s=n(13),u=n(127),l=n.n(u),d=n(77),f=n.n(d),p=n(39),h=n.n(p),b=n(30),v=n.n(b),m=n(41),g=n.n(m),O=n(2),y=n.n(O),j=n(59),E=n(433),C=n.n(E),w=n(211),T=n(356),_=n(6),S=n.n(_),A=n(69),k=n.n(A),R=n(292),I=/<p><br><\/p>/g,x=function(e){return e?e.replace(I,'<p class="ztext-empty-paragraph"><br /></p>'):e},N=n(204),D=n(539),P=n(129),L=n(3),M=/<a\b([^>]*data-draft-type="link-card"[^>]*)>(.*?)<\/a>/g,U=function(e,t,n){return e?e.replace(M,(function(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=Object(P.d)(r,{decodeValue:!0}),a=i.target,c=void 0===a?"_blank":a,s=i.href,u=void 0===s?"":s,l=i["data-image"],d=i["data-image-width"],f=i["data-image-height"],p=i["data-entity-type"],h=i["data-entity-data"],b=i["data-size"],m=o.replace(/<[^>]*>/g,"");m=Object(P.b)(m),u.match(/https:\/\/www.zhihu.com\/zvideo\/(\d+)$/)&&!m&&(m="知乎视频");var g=t||D.a;return Object(N.renderToStaticMarkup)(Object(L.c)(g,v()({text:m,url:u,target:c,image:l,imageWidth:d,imageHeight:f,entityType:p,entityData:Object(P.e)(h),size:b},["1","2","3"].includes(n)&&{newLinkCardAb:n})))})):e},B=n(538),z=/<a\b([^>]*data-draft-type="file-link-card"[^>]*)>(.*?)<\/a>/g,F=function(e){return e?e.replace(z,(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=Object(P.d)(t,{decodeValue:!0}),o=r.href,i=void 0===o?"":o,a=r["data-file-type"],c=r["data-file-extension"],s=r["data-file-size"],u=r["data-file-source"],l=Object(P.b)(n);return Object(N.renderToStaticMarkup)(Object(L.c)(B.a,{href:i,name:l,type:a,extension:c,size:s,source:u}))})):e},G=n(398),V=(n(717),n(518),[x]),H=Object(a.forwardRef)((function(e,t){var n,r=e.as,o=e.tag,i=e.className,a=e.html,s=e.clearBoth,u=void 0!==s&&s,l=e.richContentKey,d=e.root,f=e.Portal,p=e.useHooks,h=g()(e,["as","tag","className","html","clearBoth","richContentKey","root","Portal","useHooks"]),b=C()(V);p(d);var m=null!==(n=null!=r?r:o)&&void 0!==n?n:"div";return Object(L.c)(c.a.Fragment,null,f&&Object(L.c)(f,{root:d}),Object(L.c)(m,v()({key:l||a,ref:t,className:S()("RichText","ztext",i,{"RichText--clearBoth":u}),dangerouslySetInnerHTML:{__html:b(a)}},h)))}));H.propTypes={as:y.a.string,tag:y.a.string,html:y.a.string.isRequired,clearBoth:y.a.bool,ref:y.a.func,Portal:y.a.func,useHooks:y.a.func},H.defaultProps={useHooks:k.a};var q=c.a.memo(H),K=n(281),W=n(223),Y=function(e){var t=e.onRef,n=e.htmlProcessors,r=e.newLinkCardAb,o=e.shouldUseArticleCard,i=e.articleLinkCardProps,s=e.zvideoLinkCardProps,u=e.adLinkCardProps,l=e.mcnLinkCardProps,d=e.mkSkuLinkCardProps,p=e.html,b=e.sourceId,m=e.shouldShowCatalog,O=e.shouldFoldCatalog,y=e.referenceLinkProps,E=e.lazyLoadImageProps,_=g()(e,["onRef","htmlProcessors","newLinkCardAb","shouldUseArticleCard","articleLinkCardProps","zvideoLinkCardProps","adLinkCardProps","mcnLinkCardProps","mkSkuLinkCardProps","html","sourceId","shouldShowCatalog","shouldFoldCatalog","referenceLinkProps","lazyLoadImageProps"]),S=u||{},A=S.parentType,k=S.parentId,I=Object(a.useState)(null),x=h()(I,2),N=x[0],D=x[1],P=Object(j.f)();Object(K.b)(N),Object(K.e)(N,y),Object(K.a)(N),Object(K.f)(N),Object(K.c)(N,E);var M=!["1","2","3"].includes(r),B=C()([].concat(f()(n),f()(function(e){var t=!["1","2","3"].includes(e);return[Object(G.a)(),t?U:function(t){return U(t,T.a,e)},F,R.a]}(r)))),z=M?Object(L.c)(c.a.Fragment,null,o&&Object(L.c)(W.b,v()({},i,{root:N})),Object(L.c)(W.h,v()({},s,{root:N}))):Object(L.c)(W.f,{zvideoLinkCardProps:s,root:N,newLinkCardAb:r});return Object(L.c)(c.a.Fragment,null,m&&O&&Object(L.c)(W.c,{root:N}),z,Object(K.d)({root:N,mcnLinkCardProps:l,contentType:A,token:k}),Object(L.c)(W.a,v()({},u,{root:N})),Object(L.c)(W.e,v()({},d,{root:N})),Object(L.c)(W.g,{root:N}),Object(L.c)(q,v()({ref:Object(a.useCallback)(Object(w.a)(D,t),[]),html:B(p,{sourceId:b,theme:P,shouldShowCatalog:m,shouldFoldCatalog:O,newLinkCardAb:r})},_)))};Y.propTypes={html:y.a.string.isRequired,onRef:y.a.oneOfType([y.a.func,y.a.object]),htmlProcessors:y.a.array,newLinkCardAb:y.a.string},Y.defaultProps={shouldUseArticleCard:!1,htmlProcessors:[]};var Q=c.a.memo(Y),Z=n(348),J=n(141),X=n(64),$=n.n(X),ee=n(38),te=n(50),ne=n.n(te),re=n(76),oe=n(214),ie=n(42),ae=n(158),ce=n(68),se=n.n(ce),ue={"京东":"jingdong","淘宝":"taobao","知乎":"zhihu","拼多多":"pinduoduo","美团酒旅":"meituanhotel","苏宁":"suning","天猫":"taobao"},le=function(e,t,n){var r=e.id,o=e.url,i=e.source,a=e.children,c=void 0===a?0:a,s=e.scenes,u=e.fallbackUrl,l=ue[i],d=se()(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));ie.a.supportsAction("mcn/openURL").then((function(e){var t=e;if(r&&o&&i&&(Object(ae.versionControl)(d,{IOS:"6.15",ANDROID:"6.15"})||"taobao"!==l)&&(Object(ae.versionControl)(d,{IOS:"6.25",ANDROID:"6.25"})||"zhihu"!==l)&&(Object(ae.versionControl)(d,{IOS:"6.28",ANDROID:"6.29"})||"pinduoduo"!==l)&&(Object(ae.versionControl)(d,{IOS:"6.37",ANDROID:"6.37"})||"meituanhotel"!==l)&&(Object(ae.versionControl)(d,{IOS:"6.51",ANDROID:"6.51"})||"suning"!==l)&&(Object(ae.versionControl)(d,{ANDROID:"6.63"})||"0"!==r)||(t=!1),t){var n=Object.assign({id:r,url:o,type:l,fallbackUrl:u||o},s?{scenes:s}:{});ie.a.dispatch("mcn/openURL",n)}else ie.a.dispatch("base/openURL",{url:o})}))};var de=n(56),fe=n(88),pe=function(e){var t=Object(fe.b)(),n=Object(a.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")})),i=o.indexOf(r);if(-1!==i){e.preventDefault();var a=o.map((function(e){return e.dataset.thumbnail&&e.src.replace(/\.jpg|\.webp/,".gif")||e.dataset.src||e.src||""})).map((function(e){return Object(de.imgUrl)(e,Object.assign({quality:""},e.endsWith("webp")&&{extension:"jpg"}))}));ie.a.dispatch("base/openImage",{images:a,index:i})}}}}(n,{root:e})}),[e,t.ZhihuHybrid]);Object(a.useEffect)((function(){if(e)return e.addEventListener("click",n),function(){e.removeEventListener("click",n)}}),[e,n])},he=n(46),be=n(74),ve=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}}},me=function(e){var t=Object(a.useState)(null),n=Object(o.a)(t,2),r=n[0],c=n[1];return Object(a.useEffect)((function(){if(e){var t=Array.from(e.querySelectorAll(".member_mention"));if(t.length){var n=t.map(ve).map((function(e,t){var n=e.data,r=e.target;return Object(he.createPortal)(Object(i.c)(be.a,{user:n,children:["@",n.name]},t),r)}));c(n)}}}),[e]),r},ge=n(257),Oe=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}},ye=function(e){var t=Object(a.useState)(null),n=Object(o.a)(t,2),r=n[0],c=n[1];return Object(a.useEffect)((function(){if(e){var t=Array.from(e.querySelectorAll(".video-box, .video-link, .unprocessable_video"));if(t.length){var n=t.map(Oe).map((function(e,t){var n=e.data,r=e.target;return Object(he.createPortal)(Object(i.b)(ge.a,{data:n},t),r)}));c(n)}}}),[e]),r},je=n(31),Ee={},Ce=function(e,t){var n=function(e){return e.split("/").reverse()[0]}(t),r=n.split("."),i=Object(o.a)(r,2),a=i[0],c=i[1],s=a.split("_"),u=Object(o.a)(s,2)[1],l="webp"===c||"gif"===c?c:"image",d=Object(X.statGenerator)({appName:"heifetz"})("".concat(l,".").concat(u,".unknown.RichText"));switch(e){case"loadstart":Ee[n]=Date.now();break;case"load":if(Ee[n]){var f="".concat(d,".success");$.a.increment({raw:"".concat(f,".count")}),$.a.timing(f,Date.now()-Ee[n]),delete Ee[n]}break;case"timeout":Ee[n]&&($.a.increment({raw:"".concat(d,".timeout.count")}),delete Ee[n]);break;case"error":Ee[n]&&($.a.increment({raw:"".concat(d,".failure.count")}),delete Ee[n])}},we=function(e){return Object(i.b)(Z.a,Object.assign({onLoadStateChange:Ce},e,{useMp4:!0}))};t.a=function(e){var t=e.ecommerce,c=e.html,u=e.shouldUseArticleCard,d=e.shouldShowCatalog,f=e.sourceId,p=e.sourceType,h=Object(r.a)(e,["ecommerce","html","shouldUseArticleCard","shouldShowCatalog","sourceId","sourceType"]),b=Object(a.useState)(null),v=Object(o.a)(b,2),m=v[0],g=v[1],O=Object(a.useState)(!1),y=Object(o.a)(O,2),j=y[0],E=y[1],C=Object(a.useState)(""),w=Object(o.a)(C,2),T=w[0],_=w[1],S=!Object(ee.p)({includeTablet:!0}),A=Object(s.useSelector)((function(e){return e.currentUser}));pe(m);var k,R=Object(je.c)((function(){return n.e(4).then(n.bind(null,1352))})),I=(k=Object(s.useDispatch)(),Object(a.useCallback)(function(){var e=Object(re.a)(ne.a.mark((function e(t,n){var r,o,i,a;return ne.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 se()(navigator.userAgent).Safari&&"苏宁拼购"!==t.goodsType&&(o=window.open()),e.next=7,k(Object(oe.b)(t.id,0)).catch((function(){return null}));case 7:a=e.sent,r=Object.assign({},t,null==a||null===(i=a.payload)||void 0===i?void 0:i.data);case 9:"苏宁拼购"!==t.goodsType&&le(r,o,n);case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[k]));return Object(i.c)(i.a,{children:[Object(i.b)(Q,Object.assign({},h,{html:c,onRef:g,lazyLoadImageProps:{onLoadStateChange:Ce,useWebP:!1},adLinkCardProps:{parentId:f,parentType:p},mcnLinkCardProps:{onClick:function(e){var t=e.currentTarget,n=t.href,r=t.dataset,o=r.mcnId,i=r.mcnSource,a=r.mcnChildren,c=r.mcnAppSchemaIos,s=r.mcnAppSchemaAndroid,u=r.mcnGoodsType;S&&("拼多多"===i||"苏宁"===i&&"苏宁拼购"===u)||(e.preventDefault(),I({id:o,source:i,goodsType:u,url:n,children:Number(a),appSchemaIos:c,appSchemaAndroid:s},(function(){_(o),E(!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:u,shouldShowCatalog:d,sourceId:f})),Object(Z.b)(m,{Component:we}),ye(m),me(m),Object(J.d)(m,{ecommerce:t,getComponent:function(){return n.e(1).then(n.bind(null,1153))}}),j&&Object(i.b)(R,{showModal:j,id:T,userId:A,clientId:l.a.get("_zap"),onClose:function(){_(""),E(!1)},onSelectCard:function(e){var t=e.id,n=e.source,r=e.goods_type,o=e.url,i=e.app_schema_ios,a=e.app_schema_android;I({id:t,source:n,goodsType:r,url:o,appSchemaIos:i,appSchemaAndroid:a})}})]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(142),o=n(273),i=n(316),a=n(260),c=n(272),s=n(162),u=n(282),l=function(e){function t(n,r,o){var a=e.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=i.a;break;case 1:if(!n){a.destination=i.a;break}if("object"==typeof n){n instanceof t?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new d(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new d(a,n,r,o)}return a}return r.a(t,e),t.prototype[c.a]=function(){return this},t.create=function(e,n,r){var o=new t(e,n,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(a.a),d=function(e){function t(t,n,r,a){var c,s=e.call(this)||this;s._parentSubscriber=t;var u=s;return Object(o.a)(n)?c=n:n&&(c=n.next,r=n.error,a=n.complete,n!==i.a&&(u=Object.create(n),Object(o.a)(u.unsubscribe)&&s.add(u.unsubscribe.bind(u)),u.unsubscribe=s.unsubscribe.bind(s))),s._context=u,s._next=c,s._error=r,s._complete=a,s}return r.a(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;s.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=s.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(u.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(u.a)(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};s.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),s.a.useDeprecatedSynchronousErrorHandling)throw e;Object(u.a)(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!s.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return s.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(Object(u.a)(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(l)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.testVersion=t.versionControl=t.getVersionAndOS=t.compareVersion=t.parseVersionName=void 0;var r=n(585);Object.defineProperty(t,"parseVersionName",{enumerable:!0,get:function(){return r.parseVersionName}});var o=n(477);Object.defineProperty(t,"compareVersion",{enumerable:!0,get:function(){return o.compareVersion}});var i=n(586);Object.defineProperty(t,"getVersionAndOS",{enumerable:!0,get:function(){return i.getVersionAndOS}});var a=n(830);Object.defineProperty(t,"versionControl",{enumerable:!0,get:function(){return a.versionControl}});var c=n(831);Object.defineProperty(t,"testVersion",{enumerable:!0,get:function(){return c.testVersion}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var r=n(4),o=n(193),i=n.n(o),a=function(e,t,n){var o,a=n.total,c=n.data,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=s.dataKey,l=void 0===u?"id":u,d=s.pagesKey,f=void 0===d?"pages":d,p=s.entitiesKey,h=void 0===p?"entities":p,b=s.totalKey,v=void 0===b?"total":b,m=c.map((function(e,n){return"index"===l?"".concat(t,"-").concat(n):i()(e,l)}));return Object.assign({},e,(o={},Object(r.a)(o,v,a),Object(r.a)(o,h,m.reduce((function(e,t,n){return e[t]=c[n],e}),Object.assign({},e[h]||{}))),Object(r.a)(o,f,Object.assign({},e[f],Object(r.a)({},t,m))),o))},c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.pagesKey,o=void 0===r?"pages":r,i=n.entitiesKey,a=void 0===i?"entities":i,c=n.totalKey,s=void 0===c?"total":c,u=e[s],l=e[a]||{},d=(e[o]||{})[t]||[],f=d.map((function(e){return l[e]}));return{total:u,data:f}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"g",(function(){return b})),n.d(t,"c",(function(){return v})),n.d(t,"e",(function(){return m})),n.d(t,"f",(function(){return g}));var r=n(4),o=n(17),i=n(80),a=n.n(i),c=n(21),s=n(89),u=n(29),l=n(19),d=n(57),f=Object(l.a)("article",["GET","DELETE","UPDATE_COMMENT_PERMISSION","GET_COMMERCIAL_INFO","GET_UPVOTED_FOLLOWEES","TOGGLE_LIKE","LOAD_MARKET_ARTICLE_PAID_CONTENT"]),p=function(e){return function(t){var n=/^\d+/.exec(String(e))||["0"],i=Object(o.a)(n,1)[0];if("0"===i){var a=new Error;throw a.status=404,a}if(String(e)!==i){var c=new Error;throw c.status=302,c.redirect="/p/".concat(i),c}return t({API:{root:d.c,types:f.GET,endpoint:"/articles/".concat(i),method:"GET",fetchOptions:{credentials:"include"}},UPDATE:{success:function(e){var t=e.author,n=e.contributions,o={};return(void 0===n?[]:n).forEach((function(e){var t=e.column;o[t.id]=t})),{users:t.urlToken?Object(r.a)({},t.urlToken,t):{},columns:o}}},schema:u.a.ARTICLE})}},h=function(e,t){return{articleId:e,columnId:t,API:{types:f.DELETE,endpoint:"/articles/".concat(e),method:"DELETE",fetchOptions:{credentials:"include"}},schema:u.a.ARTICLE}};function b(e,t){return function(n,o){var i=o().entities.articles[e];return n({API:{types:f.UPDATE_COMMENT_PERMISSION,endpoint:"/articles/".concat(e,"/comment_permission"),method:"PUT",body:Object(s.getFormData)(Object(c.decamelizeKeys)({commentPermission:t}))},UPDATE:{request:{articles:Object(r.a)({},e,{commentPermission:t})},failure:{articles:Object(r.a)({},e,i)}}})}}var v=function(e){return function(t){return t({API:{root:d.c,types:f.GET_COMMERCIAL_INFO,endpoint:"/articles/".concat(e,"/commercial"),method:"GET",fetchOptions:{credentials:"include"}},UPDATE:{success:function(t){return{articles:Object(r.a)({},e,{commercialInfo:t.data||{}})}}}})}},m=function(e){return function(t){return t({API:{root:d.c,types:f.GET_UPVOTED_FOLLOWEES,endpoint:"/articles/".concat(e,"/concerned_upvoters"),method:"GET",fetchOptions:{credentials:"include"}},UPDATE:{success:function(t){return{articles:Object(r.a)({},e,{upvotedFollowees:t.data})}}}})}};function g(e){return{API:{endpoint:"/kmqa/articles/".concat(e,"/paid_content"),query:{include:a()({media_card:!0,btn_info:!0,goods_card:!0,za_info:!0,video_extra:!0})},types:f.LOAD_MARKET_ARTICLE_PAID_CONTENT},FAILSAFE:!0,UPDATE:{success:function(t){return{articles:Object(r.a)({},e,{paidContent:t})}}}}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return b}));var r=n(39),o=n.n(r),i=n(55),a=n.n(i),c=n(26),s=n(21),u=function(e){return!!e&&"function"==typeof e.then},l=["REQUEST","SUCCESS","FAILURE"];function d(e,t){return t.reduce((function(t,n){return Object.assign({},t,a()({},n,l.reduce((function(t,r){return Object.assign({},t,a()({},r,"".concat(e,"/").concat(Object(s.camelize)(n.toLowerCase()),"/").concat(r.toLowerCase())))}),{})))}),{})}function f(e,t){return t.reduce((function(t,n){return Object.assign({},t,a()({},n,"".concat(e,"/").concat(Object(s.camelize)(n.toLowerCase()))))}),{})}function p(e,t,n){var r=Array.isArray(e)?e:[e.REQUEST,e.SUCCESS,e.FAILURE],i=o()(r,3),a=i[0],s=i[1],l=i[2];return function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(e,o){var i=n?n.apply(void 0,r.concat([o])):{},d=t.apply(void 0,r);if(Function.prototype.isPrototypeOf(d)){var f=d(e,o);f.action&&f.fetcher?(i=Object.assign({},i,f.action),d=f.fetcher):d=f}if(!u(d))throw new Error("expected get a promise");return a&&e(Object.assign({type:a},i)),d.then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e(Object.assign({type:s,payload:t},i.schema&&t?Object(c.a)(t.data||t,i.schema):{},i))})).catch((function(t){return l&&e(Object.assign({type:l,payload:t.json,result:t},i))}))}}}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getExactState;return delete e.getExactState,t()}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Boolean(e.getExactState)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack;r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(460);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},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 i=n(86),a=i.Map,c=i.OrderedSet,s=i.Record,u=c(),l={style:u,entity:null},d=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.getStyle=function(){return this.get("style")},t.prototype.getEntity=function(){return this.get("entity")},t.prototype.hasStyle=function(e){return this.getStyle().includes(e)},t.applyStyle=function(e,n){var r=e.set("style",e.getStyle().add(n));return t.create(r)},t.removeStyle=function(e,n){var r=e.set("style",e.getStyle().remove(n));return t.create(r)},t.applyEntity=function(e,n){var r=e.getEntity()===n?e:e.set("entity",n);return t.create(r)},t.create=function(e){if(!e)return f;var n=a({style:u,entity:null}).merge(e),r=p.get(n);if(r)return r;var o=new t(n);return p=p.set(n,o),o},t}(s(l)),f=new d,p=a([[a(l),f]]);d.EMPTY=f,e.exports=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r={general:"general",live:"live",publication:"publication",album:"album",special:"special",manga:"manga"},o=(Object.assign({},r,{album_chapter:r.album,album_video_chapter:r.album,album_paid_column:r.album,paid_column_chapter:r.album,training:r.album,training_bundle:r.album,training_chapter:r.album,web_literature:r.publication,instabook:r.publication,ebook_audio:r.publication,publication_chapter:r.publication,publication_paid_magazine:r.publication,magazine_section:r.publication,paid_answer:r.album,assessment:r.album}),{paidAnswer:"PaidAnswer",paidPost:"PaidPost"})},function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return d}));var r=n(4),o=(n(71),n(63)),i=n.n(o),a=n(19);var c="".concat(i.a.fetchRoot.lens,"/api"),s=Object.assign({},Object(a.a)("VIDEO",["GET","GET_DETAILS","CREATE","GET_VIDEO_DEFAULT_COVER"]));function u(e){return{id:e,API:{types:s.GET,root:c,endpoint:"/embedded_videos/".concat(e)}}}function l(e){return{id:e,API:{types:s.GET_DETAILS,root:"".concat(i.a.fetchRoot.lens,"/api/v4"),endpoint:"/videos/".concat(e)}}}function d(e){return{API:{types:s.CREATE,root:c,endpoint:"/embedded_videos",method:"POST",body:{url:e}}}}var f={data:{},shareVideoDetail:{},last:{}};t.b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.GET.success:return Object.assign({},e,{data:Object.assign({},e.data,Object(r.a)({},t.id,t.payload))});case s.CREATE.success:return Object.assign({},e,{data:Object.assign({},e.data,Object(r.a)({},t.payload.id,t.payload)),last:t.payload});case s.GET_DETAILS.success:return Object.assign({},e,{shareVideoDetail:t.payload});default:return e}}},function(e,t,n){var r=n(481);e.exports=function(e,t){return r(e,t)}},function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d}));var r=n(4),o=n(19),i=n(192),a={emoticonGroupList:[],emoticonGroupDetail:{}},c=Object.assign({},Object(o.a)("emoticons",["GET_EMOTICONGROUP_LIST","GET_EMOTICONS_DETAIL"]),Object(o.b)("emoticons",["SAVE_EMOTICONS_TO_REDUX","CHANGE_SELECTED_EMOTICON_GROUP","CHANGE_SELECTED_EMOTICON_PANEL"]));function s(){return{API:{types:c.GET_EMOTICONGROUP_LIST,endpoint:"/me/sticker-groups"}}}function u(e){return{API:{types:c.GET_EMOTICONS_DETAIL,endpoint:"/sticker-groups/".concat(e),query:{business:"message"}},meta:{id:e}}}function l(e){return{type:c.CHANGE_SELECTED_EMOTICON_GROUP,meta:{id:e}}}function d(e){return{type:c.CHANGE_SELECTED_EMOTICON_PANEL,meta:{id:e}}}t.c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;if(t.type===c.GET_EMOTICONGROUP_LIST.success){var n=t.payload.data;return Object.assign({},e,{emoticonGroupList:n,curEmoticonGroupId:t.payload.data[0].id})}if(t.type===c.GET_EMOTICONS_DETAIL.success){var o=t.meta.id,s=Object.assign({},e.emoticonGroupDetail,Object(r.a)({},o,t.payload.data)),u=Object(i.b)(s,e.emoticonGroupList);return Object.assign({},e,{emoticonGroupDetail:s,emoticonPanelList:u})}if(t.type===c.SAVE_EMOTICONS_TO_REDUX){var l=t.meta.data.id,d=Object.assign({},e.emoticonGroupDetail,Object(r.a)({},l,t.meta.data)),f=Object(i.b)(d,e.emoticonGroupList);return Object.assign({},e,{emoticonGroupDetail:d,emoticonPanelList:f})}if(t.type===c.CHANGE_SELECTED_EMOTICON_GROUP){var p=t.meta.id;return Object.assign({},e,{curEmoticonGroupId:p})}if(t.type===c.CHANGE_SELECTED_EMOTICON_PANEL){var h=t.meta.id;return Object.assign({},e,{curEmoticonPanelId:h})}return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hide=t.show=t.hasScrollbar=t.getWidth=void 0;var r=n(867);Object.defineProperty(t,"getWidth",{enumerable:!0,get:function(){return r.getWidth}}),Object.defineProperty(t,"hasScrollbar",{enumerable:!0,get:function(){return r.hasScrollbar}}),Object.defineProperty(t,"show",{enumerable:!0,get:function(){return r.show}}),Object.defineProperty(t,"hide",{enumerable:!0,get:function(){return r.hide}})},function(e,t,n){"use strict";n.d(t,"b",(function(){return r.a})),n.d(t,"a",(function(){return g})),n.d(t,"c",(function(){return C})),n.d(t,"d",(function(){return S})),n.d(t,"f",(function(){return A.a})),n.d(t,"e",(function(){return O}));var r=n(404),o=n(7),i=n(8),a=n(9),c=n(10),s=n(5),u=n(0),l=n(1),d=n(6),f=n.n(d),p=n(11),h=n(1031),b=n(53),v=n(352);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(n,e);var t=m(n);function n(){var e;Object(o.a)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).handleSignUp=function(){Object(v.a)(e.props.isAppView,!0)},e.handleSignIn=function(){Object(v.a)(e.props.isAppView)},e}return Object(i.a)(n,[{key:"render",value:function(){var e=this.props,t=e.onClose,n=e.isAppView;return Object(u.b)(b.b,{title:"注册/登录后即可继续操作",size:"default",className:f()("AppAuthentication",{"AppAuthentication--appView":n}),closeButton:!1,onClose:t,children:Object(u.c)("div",{className:"AppAuthentication-buttonContainer",children:[!n&&Object(u.b)(p.c,{preset:"plain",className:"AppAuthentication-closeButton",onClick:t,"aria-label":"关闭",children:Object(u.b)(h.a,{size:16,name:"remove"})}),Object(u.b)(p.c,{className:"AppAuthentication-button",color:"blue",preset:"primary",onClick:this.handleSignUp,children:"注册"}),Object(u.c)(p.c,Object.assign({className:"AppAuthentication-button",onClick:this.handleSignIn},{},{children:["","登录"]}))]})})}}]),n}(l.Component),O=function(e){var t=e.onClose,n=e.shown,r=Object(l.useCallback)((function(){location.href="https://www.zhihu.com/authenticate/phone"}),[]),o=Object(l.useCallback)((function(){location.href="https://www.zhihu.com/authenticate/id-card"}),[]);return Object(u.b)(b.b,{title:"帐号实名制认证",onClose:t,size:"default",children:n&&Object(u.c)("div",{className:"RealNameModal",children:[Object(u.b)("p",{children:"根据相关法律法规,您需要完成真实身份核验后方可使用提问、回答、评论等功能。"}),Object(u.b)("p",{children:"你可选择以下任一方式完成实名认证。"}),Object(u.c)("p",{children:["如有其它问题可私信联系"," ",Object(u.b)("a",{href:"https://www.zhihu.com/messages/-10029",children:"知乎管理员"})," ","进行咨询沟通"]}),Object(u.c)("div",{className:"RealNameModal-buttonGroup",children:[Object(u.b)("div",{onClick:r,children:"中国大陆手机号认证"}),Object(u.b)("div",{onClick:o,children:"身份证件信息认证"})]})]})})},y=n(2),j=n.n(y);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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){Object(a.a)(n,e);var t=E(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"render",value:function(){var e=this.context.handleBindPhoneModalToggle;return Object(u.b)(p.c,{css:{display:"inline-block",border:"none"},preset:"link",onClick:e,children:"激活帐号"})}}]),n}(l.Component);C.contextTypes={handleBindPhoneModalToggle:j.a.func};var w=n(149);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 _=function(){return n.e(18).then(n.bind(null,1359))},S=function(e){Object(a.a)(n,e);var t=T(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"render",value:function(){return Object(u.b)(w.a,Object.assign({getComponent:_},this.props))}}]),n}(l.Component),A=n(524)},function(e,t,n){"use strict";var r=n(919),o=n(340),i=n(165),a=n(935),c=n(266),s=n(487),u=n(490),l=n(625),d=n(936),f=n(627),p=n(382),h=n(145),b=n(623),v=n(97),m=n(497),g=n(641),O=n(293),y=n(996),j={Editor:d,EditorBlock:f,EditorState:v,CompositeDecorator:a,Entity:p,EntityInstance:b,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:c,ContentState:s,SelectionState:O,AtomicBlockUtils:r,KeyBindingUtil:m,Modifier:h,RichUtils:g,DefaultDraftBlockRenderMap:u,DefaultDraftInlineStyle:l,convertFromHTML:n(639),convertFromRaw:n(999),convertToRaw:y,genKey:n(228),getDefaultKeyBinding:n(642),getVisibleSelectionRect:n(1004)};e.exports=j},,function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},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 i=n(165),a=n(86),c=n(341),s=a.List,u=a.Map,l=a.OrderedSet,d=a.Record,f=a.Repeat,p=l(),h={parent:null,characterList:s(),data:u(),depth:0,key:"",text:"",type:"unstyled",children:s(),prevSibling:null,nextSibling:null},b=function(e,t){return e.getStyle()===t.getStyle()},v=function(e,t){return e.getEntity()===t.getEntity()},m=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=s(f(i.EMPTY,n.length))),e},g=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return r(this,t),o(this,e.call(this,m(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(),v,e,t)},t}(d(h));e.exports=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadScript=void 0;var r=n(803);Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return r.loadScript}})},function(e,t,n){"use strict";var r=n(394);n.d(t,"b",(function(){return r.a}));var o=n(395);n.d(t,"a",(function(){return o.a}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return B})),n.d(t,"a",(function(){return x}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(2),h=n.n(p),b=n(1),v=n(6),m=n.n(v),g=n(60),O=n.n(g),y=n(68),j=n.n(y),E=n(265),C=n(1090),w=n(364),T=n(3);function _(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var S=function(e){s()(n,e);var t=_(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={isInputing:!1,value:e.props.value||""},e.handleChange=function(t){e.setState({value:Object(E.cutStringWidth)(t.target.value,30)})},e}return a()(n,[{key:"componentWillReceiveProps",value:function(e){e.value&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"render",value:function(){var e=this,t=this.state,n=t.isInputing,r=t.value,o=this.props.onChange,i=!n&&!r,a=!n&&r;return Object(T.c)("div",{className:"Editable-VideoTitleInput-container"},Object(T.c)(w.a,null,Object(T.c)("div",{className:m()("Editable-VideoTitleInput-innerContainer",{"Editable-VideoTitleInput-innerContainer--isBeforeIconShown":i}),onClick:function(){return e.setState({isInputing:!0})}},i&&Object(T.c)(C.a,{className:"Editable-VideoTitleInput-beforeIcon",center:!0}),!n&&Object(T.c)("div",{className:m()("Editable-VideoTitleInput-value",{"Editable-VideoTitleInput-value--noContent":!r})},r||"好的标题可以获得更多的推荐及关注者"),n&&Object(T.c)("input",{className:"Editable-VideoTitleInput",value:r,ref:function(e){e&&e.focus()},placeholder:"标题长度不超过 15 个字",onChange:this.handleChange,onBlur:function(t){e.setState({isInputing:!1}),o(t.target.value)}}),a&&Object(T.c)(C.a,{className:"Editable-VideoTitleInput-afterIcon",center:!0}))))}}]),n}(b.Component),A=n(448),k=n(1091),R=n(697),I=n.n(R),x=function(e){var t=e.className;return Object(T.c)("svg",{viewBox:"0 0 72 72",className:t},Object(T.c)("circle",{cx:"36",cy:"36",fill:"#fff",fillOpacity:".95",r:"36"}),Object(T.c)("path",{d:"M50.835 37.06L29.477 49.97a1.203 1.203 0 0 1-1.664-.43 1.25 1.25 0 0 1-.17-.631V23.091c0-.682.543-1.234 1.213-1.234.219 0 .433.06.62.173l21.359 12.91a1.245 1.245 0 0 1 0 2.12z",fill:"#444",fillRule:"nonzero"}))},N=function(){return Object(T.c)("div",{className:"VideoCardPlayButton"},Object(T.c)(x,{className:"VideoCardPlayButton-icon"}))},D=function(e){var t=e.fileSize;return Object(T.c)("div",{className:"VideoCardPlayButton-withFileSize--outer"},Object(T.c)("span",{className:"VideoCardPlayButton-withFileSize"},Object(T.c)(k.a,{center:!0,size:14}),t?I()(t,{decimalPlaces:1,unit:"MB"}):"流量播放"))};var P={name:"u03n1e",styles:"position:relative;height:100%;&::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(0, 0, 0, 0.05);}"};function L(e){var t=e.thumbnail,n=e.isLens,r=e.canPlay;return n||r?t&&"string"==typeof t?Object(T.c)("div",{css:P},Object(T.c)("img",{src:t,alt:"视频封面"})):t||null:Object(T.c)(x,{className:"VideoCard-playIcon VideoCard-playIcon--nonLens"})}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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var U=function(e){s()(n,e);var t=M(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={isMobile:!1,playerShown:!1,playerLoading:!1},e.handlePlay=function(t){t.preventDefault();var n=e.props,r=n.interactive,o=n.isConverting,i=n.isLens,a=n.playerUrl,c=n.onPlayFailed,s=n.onLensPlay,u=n.onBeforePlay;r&&!o&&(a||!c?u?Promise.resolve(u()).then((function(t){!1!==t&&e.play()})):i&&s&&s()||e.play():c())},e.handlePlayerLoad=function(){e.loadingCount--,0===e.loadingCount&&e.setState({playerLoading:!1})},e}return a()(n,[{key:"componentDidMount",value:function(){this.setState({isMobile:j()(navigator.userAgent).Mobile})}},{key:"canPlay",value:function(){return this.props.isLens}},{key:"inlinePlayer",value:function(){var e=this.props,t=e.interactive,n=e.isLens,r=e.onLensPlay,o=e.onBeforePlay;return t&&n&&!(r||o)}},{key:"showContent",value:function(){var e=this.props,t=e.content,n=e.isLens,r=e.title;return!e.isVideoTitleEditable&&(!n||Boolean(t||r))}},{key:"showDescription",value:function(){var e=this.props.isLens;return this.showContent()&&!e}},{key:"play",value:function(){var e=this.props.onPlay;this.loadingCount=2,this.setState({playerShown:!0,playerLoading:!0}),setTimeout(this.handlePlayerLoad,1e3),e&&e()}},{key:"renderContent",value:function(){var e=this.props,t=e.interactive,n=e.isLens,r=e.title,o=e.thumbnail,i=e.source,a=e.url,c=e.showPlayButton,s=e.usePlayButtonWithFileSize,u=e.fileSize,l=e.rightBottomButton,d=e.leftBottomButton,f=e.isVideoTitleEditable,p=e.onVideoTitleChange,h=e.isConverting,b=e.content,v=this.canPlay(),g=this.inlinePlayer(),O=Object(T.c)(L,{thumbnail:o,isLens:n,canPlay:v}),y=c&&!h&&(s?Object(T.c)(D,{fileSize:u}):Object(T.c)(N,null)),j=Object(T.c)("div",{className:"VideoCard-layout"},v?Object(T.c)("div",{className:"VideoCard-video"},Object(T.c)("div",{className:"VideoCard-video-content"},g?this.renderPlayer():Object(T.c)("div",{className:m()("VideoCard-thumbnail",{"VideoCard-thumbnail--placeholder":!o}),onClick:this.handlePlay},O,y,l,d))):Object(T.c)("div",{className:"VideoCard-poster"},O),this.showContent()&&(b||Object(T.c)("div",{className:"VideoCard-content"},Object(T.c)("div",{className:"VideoCard-title"},r),this.showDescription()&&Object(T.c)("div",{className:"VideoCard-description"},i&&Object(T.c)("span",{className:"VideoCard-source"},i),Object(T.c)("span",{className:"VideoCard-badge"},"视频")))),f&&Object(T.c)(S,{value:r,onChange:p}));return n?j:t?Object(T.c)("a",{className:"VideoCard-link",href:a,target:"_blank",rel:"noopener noreferrer"},j):Object(T.c)("div",{className:"VideoCard-link"},j)}},{key:"renderPlayer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.props,n=t.source,r=t.playerUrl,o=t.onIframeRef,i=t.useMSE,a=O.a.stringify({autoplay:e&&"lens"===n,useMSE:i});return Object(T.c)(A.a,{placeholder:Object(T.c)("div",{className:"VideoCard-player"})},Object(T.c)("div",{className:"VideoCard-player"},Object(T.c)("iframe",{ref:o,frameBorder:0,allowFullScreen:!0,src:"".concat(r,"?").concat(a),onLoad:this.handlePlayerLoad})))}},{key:"render",value:function(){var e=this.props,t=e.interactive,n=e.isConverting,r=e.isVideoAnswer,o=this.state,i=o.isMobile,a=o.playerShown,c=o.playerLoading;return Object(T.c)("div",{className:m()("VideoCard",{"VideoCard--converting":n,"VideoCard--interactive":t,"VideoCard--mobile":i,"is-videoAnswer":r})},this.renderContent(),a&&Object(T.c)("div",{className:m()("VideoCard-overlay",{"is-loading":c})},this.renderPlayer(!0)),Object(T.c)("div",{className:m()("VideoCard-mask",{"is-shown":c})}))}}]),n}(b.Component);U.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},U.defaultProps={interactive:!0,showPlayButton:!0};var B=U},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(7),o=n(8),i=n(9),a=n(10),c=n(5),s=n(0),u=n(1),l=n(13),d=n(149),f=n(112),p=n(309);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}var b=function(){return n.e(11).then(n.bind(null,1350)).then((function(e){return e.ReportModal}))};var v=function(e){Object(i.a)(n,e);var t=h(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"render",value:function(){return Object(s.b)(d.a,Object.assign({getComponent:b},this.props))}}]),n}(u.Component),m=Object(l.connect)(null,(function(e,t){return{loadProfile:function(t){e(Object(f.f)(t))},updateUserBlocking:function(t,n){e(Object(f.i)(t,n))},doReport:function(n,r,o,i){return e(Object(p.b)(n,r,o,i,void 0,{NOTIFICATION:t.notification})).then((function(e){return e.payload.sarcasmRecommend&&t.showWalle(),e}))}}}))(v);n(181)},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(39),o=n.n(r),i=n(1),a=n.n(i),c=n(6),s=n.n(c),u=n(20),l=function(e){return a.a.createElement(u.a,e,a.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"}))};l.defaultProps={name:"RadioButtonOn"};var d=l,f=function(e){return a.a.createElement(u.a,e,a.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(3);var b=function(e){var t=e.style,n=e.className,r=e.id,a=e.name,c=e.value,u=e.size,l=void 0===u?20:u,f=e.checked,b=e.onChange,v=e.disabled,m=Object(i.useState)(!1),g=o()(m,2),O=g[0],y=g[1];return Object(h.c)("label",{style:t,className:s()("RadioButton",n,{"RadioButton--focused":O,"RadioButton--disabled":v})},f?Object(h.c)(d,{size:l,className:"RadioButton-iconOn"}):Object(h.c)(p,{size:l,className:"RadioButton-iconOff"}),Object(h.c)("input",{className:"RadioButton-input",id:r,name:a,value:c,type:"radio",checked:f,onFocus:function(){return y(!0)},onBlur:function(){return y(!1)},onChange:b,disabled:v}))}},function(e,t,n){"use strict";var r=n(32),o=n(7),i=n(8),a=n(9),c=n(10),s=n(5),u=n(0),l=n(2),d=n.n(l),f=n(1),p=n(69),h=n.n(p),b=n(66),v=n.n(b),m=n(11),g=n(1060),O=n(12),y=n(150),j=n(179),E=n(53),C=n(110),w=function(e){var t=e.onClose,n=e.shown;return Object(u.b)(E.b,{wrapperClassName:"WalleModal",className:"WalleModal",title:"举报成功",onClose:t,children:n&&Object(u.c)("div",{className:"WalleModal-wrapper",children:[Object(u.b)("p",{className:"WalleModal-des",children:"你的举报我们已经收到,处理完成后将会私信告知处理结果。"}),Object(u.b)("img",{className:"WalleModal-img",src:"https://zhstatic.zhihu.com/heifetz/wall-E.png",alt:"walle"}),Object(u.c)("div",{className:"WalleModal-open",children:[Object(u.c)("div",{className:"WalleModal-content",children:[Object(u.b)("div",{className:"WalleModal-title",children:"遇到不友善评论了?"}),Object(u.b)("div",{className:"WalleModal-intro",children:"开启瓦力保镖评论区保护,瓦力将自动为你识别并处理不友善的评论。"})]}),Object(u.b)(C.a,{className:"WalleModal-btn",preset:"primary",color:"blue",to:"/settings/preference",children:"立即开启"})]})]})})},T=n(28);function _(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 S=function(e){Object(a.a)(n,e);var t=_(n);function n(){var e;Object(o.a)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={shown:!1,walleModalShown:!1},e.handleShow=e.context.authRequired((function(t){var n=e.props.zaReportId;e.setState({shown:!0}),e.props.onModalShown(!0),O.a.trackEvent(t.target,Object.assign({action:"Report",element:"Button",is_intent:!0},n&&{id:n}))}),T.J.report),e.handleHide=function(t){e.setState({shown:!1}),e.props.onModalShown(!1,t)},e.handleWalleShow=function(){e.setState({walleModalShown:!0}),e.props.onModalShown(!0)},e.handleWalleClose=function(){e.setState({walleModalShown:!1}),e.props.onModalShown(!1)},e}return Object(i.a)(n,[{key:"render",value:function(){var e=this.state,t=e.shown,n=e.walleModalShown,o=this.props,i=o.id,a=o.resourceType,c=o.type,s=o.modalProps,l=Object(r.a)(o,["id","resourceType","type","modalProps"]);return Object(u.c)(f.Fragment,{children:[Object(u.c)(m.c,Object.assign({preset:"plain",onClick:this.handleShow},v()(l,["zaReportId","onModalShown"]),{children:[Object(u.b)(g.a,{size:14,center:!0})," 举报"]})),Object(u.b)(j.a,Object.assign({resourceType:a,type:c,urlToken:i,shown:t,onClose:this.handleHide,showWalle:this.handleWalleShow},s,{zaEnabled:!0})),Object(u.b)(w,{shown:n,onClose:this.handleWalleClose})]})}}]),n}(f.Component);S.contextTypes={authRequired:d.a.func},S.propTypes={type:d.a.oneOf(y.a).isRequired,id:d.a.oneOfType([d.a.number,d.a.string]).isRequired,zaReportId:d.a.number,onModalShown:d.a.func},S.defaultProps={onModalShown:h.a};t.a=S},function(e,t,n){var r=n(566),o=n(567);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var c=0;c<16;++c)t[i+c]=a[c];return t||o(a)}},function(e,t,n){"use strict";n(1);var r=n(517),o=n(6),i=n.n(o),a=n(99),c=n(3);t.a=function(e){var t=e.placement,n=void 0===t?a.BOTTOM:t,o=e.children,s=e.target,u=e.container,l=e.isOpen,d=e.isFixed,f=void 0!==d&&d,p=e.repositionKey,h=e.boundary,b=e.className;return Object(c.c)(r.a,{arrowed:!0,listenResize:!0,placement:n,target:s,container:u,isOpen:l,className:i()("AttentionPopover",b),fixed:f,repositionKey:p||String(f),boundary:h},o)}},function(e,t,n){"use strict";var r=n(32),o=n(0),i=n(43),a=n(1032);t.a=function(e){var t=e.checked,n=e.children,c=Object(r.a)(e,["checked","children"]);return Object(o.c)(i.b,Object.assign({},c,{children:[Object(o.b)("span",{css:{display:"inline-block",width:24,marginLeft:-24},children:t&&Object(o.b)(a.a,{text:!0,center:!0})}),n]}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return F}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(1),h=n.n(p),b=n(72),v=n(103),m=n(152);n(2);function g(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var O=n(46),y=n.n(O),j=!1,E=h.a.createContext(null),C=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}Object(m.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]:[y.a.findDOMNode(this),r],i=o[0],a=o[1],c=this.getTimeouts(),s=r?c.appear:c.enter;!e&&!n||j?this.safeSetState({status:"entered"},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:"entering"},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:y.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:y.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],i=o[0],a=o[1];this.props.addEndListener(i,a)}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(v.default)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return h.a.createElement(E.Provider,{value:null},"function"==typeof n?n(e,r):h.a.cloneElement(h.a.Children.only(n),r))},t}(h.a.Component);function w(){}C.contextType=E,C.propTypes={},C.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:w,onEntering:w,onEntered:w,onExit:w,onExiting:w,onExited:w},C.UNMOUNTED="unmounted",C.EXITED="exited",C.ENTERING="entering",C.ENTERED="entered",C.EXITING="exiting";var T=C,_=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}))},S=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Object(m.a)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&_(e,r),o&&_(e,o),i&&_(e,i)},n.render=function(){var e=this.props,t=(e.classNames,Object(v.default)(e,["classNames"]));return h.a.createElement(T,Object(b.default)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(h.a.Component);S.defaultProps={classNames:""},S.propTypes={};var A=S,k=n(51);function R(e,t){var n=Object.create(null);return e&&p.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(p.isValidElement)(e)?t(e):e}(e)})),n}function I(e,t,n){return null!=n[t]?n[t]:e.props[t]}function x(e,t,n){var r=R(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var c={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];c[o[s][r]]=n(u)}c[s]=n(s)}for(r=0;r<i.length;r++)c[i[r]]=n(i[r]);return c}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(Object(p.isValidElement)(a)){var c=i in t,s=i in r,u=t[i],l=Object(p.isValidElement)(u)&&!u.props.in;!s||c&&!l?s||!c||l?s&&c&&Object(p.isValidElement)(u)&&(o[i]=Object(p.cloneElement)(a,{onExited:n.bind(null,a),in:u.props.in,exit:I(a,"exit",e),enter:I(a,"enter",e)})):o[i]=Object(p.cloneElement)(a,{in:!1}):o[i]=Object(p.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:I(a,"exit",e),enter:I(a,"enter",e)})}})),o}var N=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},D=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Object(k.a)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Object(m.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,R(n.children,(function(e){return Object(p.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:I(e,"appear",n),enter:I(e,"enter",n),exit:I(e,"exit",n)})}))):x(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=R(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(b.default)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Object(v.default)(e,["component","childFactory"]),o=this.state.contextValue,i=N(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?h.a.createElement(E.Provider,{value:o},i):h.a.createElement(E.Provider,{value:o},h.a.createElement(t,r,i))},t}(h.a.Component);D.propTypes={},D.defaultProps={component:"div",childFactory:function(e){return e}};var P=D,L=n(146),M=n(3);function U(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var B=function(e,t){e.addEventListener("transitionend",t,!1),e.addEventListener("transitioncancel",t,!1)},z=function(e){s()(n,e);var t=U(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={shouldMountPortal:!1,hasChildren:!1},e.handleExited=function(){e.setState((function(e){e.hasChildren}))},e}return a()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.portalClassName,r=t.transitionName,o=t.onAfterEnter,i=t.timeout,a=t.children,c=this.state,s=c.shouldMountPortal,u=c.hasChildren,l={appear:"".concat(r,"-enter"),appearActive:"".concat(r,"-enter-active"),enter:"".concat(r,"-enter"),enterActive:"".concat(r,"-enter-active"),enterDone:"".concat(r,"-enter-done"),exit:"".concat(r,"-leave"),exitActive:"".concat(r,"-leave-active"),exitDone:"".concat(r,"-leave-done")};return s&&Object(M.c)(L.a,{className:n},Object(M.c)(P,null,u&&p.Children.map(a,(function(t,n){return t&&Object(M.c)(A,{key:n,timeout:i,classNames:l,appear:!0,onExited:e.handleExited,onEntering:o,addEndListener:B},t)}))))}}]),n}(p.Component);z.getDerivedStateFromProps=function(e,t){var n=p.Children.toArray(e.children).some(Boolean),r=t.hasChildren;return!r&&n?{shouldMountPortal:!0,hasChildren:n}:r&&!n?{hasChildren:n}:null};var F=z},function(e,t,n){"use strict";t.a=function(e,t,n){return t in e?e[t]:e[t]=n()}},function(e,t,n){var r=n(55);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}},function(e,t,n){var r=n(551),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return s})),n.d(t,"i",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return f})),n.d(t,"h",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"e",(function(){return v}));var r=n(21),o=n(89),i=(n(63),n(19)),a=Object.assign({},Object(i.a)("captcha",["GET","POST","PUT","GET_V2","PUT_V2","GET_BUILT_IN","CHECK_BUILT_IN"]),Object(i.b)("captcha",["RESET_CAPTCHA_INFO","CAPTCHA_EXPIRES","RESET_CAPTCHA_V2"]));function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{API:{types:a.GET,endpoint:"v3/oauth/captcha",method:"GET",query:{lang:e}},NOTIFICATION:t}}function s(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{API:{types:a.GET_V2,endpoint:"v3/oauth/captcha/v2",method:"GET",query:{type:e},fetchOptions:{zsAutoSignature:!1}},NOTIFICATION:t}}function u(){return{type:a.RESET_CAPTCHA_V2}}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i){return i({API:{types:a.POST,endpoint:"v3/oauth/captcha",method:"POST",body:Object(o.getFormData)(Object(r.decamelizeKeys)({inputText:e})),query:{lang:t}},NOTIFICATION:n})}}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{API:{types:a.PUT,endpoint:"v3/oauth/captcha",method:"PUT",query:{lang:e}},NOTIFICATION:t}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n({API:{types:a.PUT_V2,endpoint:"v3/oauth/captcha/v2",method:"PUT",fetchOptions:{bodyType:"form",body:{ticket:e}}},NOTIFICATION:t})}}function p(){return{type:a.RESET_CAPTCHA_INFO}}function h(){return{type:a.CAPTCHA_EXPIRES}}var b={captchaNeeded:!1,captchaValidated:!1,captchaBase64String:null,captchaValidationMessage:null,loginCaptchaExpires:!1};function v(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,n=arguments.length>1?arguments[1]:void 0,r=n.type,o=n.payload;return r===a.GET.success?Object.assign({},t,{captchaNeeded:o.showCaptcha,captchaValidated:!1}):r===a.GET_BUILT_IN.success?Object.assign({},t,{captchaValidated:!1,captchaBase64String:o.imgBase64}):r===a.GET_V2.success?Object.assign({},t,{v2:o,captchaNeeded:Boolean(null===(e=o.script)||void 0===e?void 0:e.length),captchaValidated:!1}):r===a.PUT.success?Object.assign({},t,{captchaValidated:!1,captchaBase64String:o.imgBase64,level:o.level}):r===a.PUT_V2.success?Object.assign({},t,{captchaNeeded:!o.success,captchaValidated:o.success}):r===a.POST.request?Object.assign({},t,{captchaValidationMessage:null}):r===a.POST.success?Object.assign({},t,{captchaValidated:!0,loginCaptchaExpires:!1}):r===a.POST.failure?Object.assign({},t,{captchaValidationMessage:n.err.payload.message}):r===a.RESET_CAPTCHA_INFO?Object.assign({},b,{captchaValidated:t.captchaValidated,v2:t.v2}):r===a.CAPTCHA_EXPIRES?Object.assign({},t,{loginCaptchaExpires:!0}):r===a.RESET_CAPTCHA_V2?Object.assign({},t,{captchaValidated:!1}):t}},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){function n(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function c(e){n(a,o,i,c,s,"next",e)}function s(e){n(a,o,i,c,s,"throw",e)}c(void 0)}))}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"e",(function(){return f})),n.d(t,"d",(function(){return h})),n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return v}));var r,o=n(15),i=n(508),a=n.n(i),c=n(40),s=n.n(c),u=s.a.get("EMOTICON_EMOJI");function l(){return!!r}function d(){if(r)return r;var e=function(){u&&(u=s.a.get("EMOTICON_EMOJI"));return u}();return e?(r={},e.forEach((function(e){r[e.placeholder]=e.staticImageUrl})),r):{}}function f(e){u=e,s.a.set("EMOTICON_EMOJI",e)}function p(e){var t=d()[e];return t?'<img data-zhihu-emoticon="'.concat(e,'" src="').concat(t,'" alt="').concat(e,'" />'):e}function h(e){return e.replace(/\[.{1,8}?\]/g,p)}function b(e,t){return t.map((function(t){var n=t.id,r=t.type,i=e[n],c="emoji"===r?45:8;return i?a()(i.stickers,c).map((function(e,t){return{groupId:n,id:"".concat(n,"-").concat(t),data:e,type:r}})):a()(Object(o.a)(Array(t.stickerCount)),c).map((function(e,t){return{groupId:n,id:"".concat(n,"-").concat(t),data:[],type:r}}))})).flat()}function v(e,t){return e?t:t.filter((function(e){return"vip"!==e.type}))}},function(e,t,n){var r=n(336);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p}));var r=n(55),o=n.n(r),i=n(1),a=n.n(i),c=n(3),s=n(406);n(30),n(91);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var l=function(e,t){return"function"==typeof t?t(e):function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(n,!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{},t)},d=Object(s.a)((function(e){return Object(s.a)((function(t){return l(e,t)}))})),f=function(e){return Object(i.createElement)(c.a.Consumer,null,(function(t){return e.theme!==t&&(t=d(t)(e.theme)),Object(i.createElement)(c.a.Provider,{value:t},e.children)}))};function p(){return a.a.useContext(c.a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(7),o=n(8),i=n(9),a=n(10),c=n(5),s=(n(0),n(2)),u=n.n(s),l=n(1);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}var f=function(e){Object(i.a)(n,e);var t=d(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={visible:e.props.disabled},e.onShow=function(){e.setState({visible:!0})},e}return Object(o.a)(n,[{key:"componentDidMount",value:function(){this.state.visible||(this.props.timeout>0?this.timeout=setTimeout(this.onShow,this.props.timeout):this.onShow())}},{key:"componentWillUnmount",value:function(){this.timeout&&clearTimeout(this.timeout)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.placeholder;return this.state.visible?t:n}}]),n}(l.Component);f.propTypes={disabled:u.a.bool,placeholder:u.a.node,timeout:u.a.number},f.defaultProps={disabled:!1,placeholder:null,timeout:-1}},function(e,t,n){"use strict";var r=n(30),o=n.n(r),i=n(41),a=n.n(i),c=n(1),s=n.n(c),u=n(6),l=n.n(u),d=(n(518),n(3));t.a=s.a.memo(s.a.forwardRef((function(e,t){var n=e.className,r=e.inline,i=void 0!==r&&r,c=e.html,s=a()(e,["className","inline","html"]),u=i?"span":"div";return Object(d.c)(u,o()({className:l()("ztext",n)},c&&{dangerouslySetInnerHTML:{__html:c}},s,{ref:t}))})))},function(e,t,n){"use strict";var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(2),h=n.n(p),b=n(1),v=n(46);n(523);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var g=function(e){s()(n,e);var t=m(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).handleChange=function(t,n){var r=e.props,o=r.onObserve,i=r.onChange;o&&o(t),t.forEach((function(e){i&&i(e,n)}))},e}return a()(n,[{key:"componentDidMount",value:function(){var e=Object(v.findDOMNode)(this);e&&(this.observer=this.createObserver(),this.observer.observe(e))}},{key:"componentWillUnmount",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null)}},{key:"createObserver",value:function(){var e=this.props,t=e.root,n=e.rootMargin,r=e.threshold,o=e.trackVisibility,i=e.delay;return new window.IntersectionObserver(this.handleChange,{root:t,rootMargin:n,threshold:r,trackVisibility:o,delay:i})}},{key:"render",value:function(){return this.props.children}}]),n}(b.Component);g.propTypes={root:h.a.object,rootMargin:h.a.string,threshold:h.a.oneOfType([h.a.number,h.a.arrayOf(h.a.number)]),trackVisibility:h.a.bool,delay:h.a.number,onObserve:h.a.func,onChange:h.a.func},t.a=g},function(e,t,n){(function(e,r){var o;
|
|
|
/**
|
|
|
* @license
|
|
|
* Lodash <https://lodash.com/>
|
|
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
|
* Released under MIT license <https://lodash.com/license>
|
|
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
|
*/(function(){var i="Expected a function",a="__lodash_placeholder__",c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],s="[object Arguments]",u="[object Array]",l="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",h="[object GeneratorFunction]",b="[object Map]",v="[object Number]",m="[object Object]",g="[object RegExp]",O="[object Set]",y="[object String]",j="[object Symbol]",E="[object WeakMap]",C="[object ArrayBuffer]",w="[object DataView]",T="[object Float32Array]",_="[object Float64Array]",S="[object Int8Array]",A="[object Int16Array]",k="[object Int32Array]",R="[object Uint8Array]",I="[object Uint16Array]",x="[object Uint32Array]",N=/\b__p \+= '';/g,D=/\b(__p \+=) '' \+/g,P=/(__e\(.*?\)|\b__t\)) \+\n'';/g,L=/&(?:amp|lt|gt|quot|#39);/g,M=/[&<>"']/g,U=RegExp(L.source),B=RegExp(M.source),z=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,G=/<%=([\s\S]+?)%>/g,V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/,q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,K=/[\\^$.*+?()[\]{}|]/g,W=RegExp(K.source),Y=/^\s+|\s+$/g,Q=/^\s+/,Z=/\s+$/,J=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,X=/\{\n\/\* \[wrapped with (.+)\] \*/,$=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,oe=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,ce=/^0o[0-7]+$/i,se=/^(?:0|[1-9]\d*)$/,ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,le=/($^)/,de=/['\n\r\u2028\u2029\\]/g,fe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",he="[\\ud800-\\udfff]",be="["+pe+"]",ve="["+fe+"]",me="\\d+",ge="[\\u2700-\\u27bf]",Oe="[a-z\\xdf-\\xf6\\xf8-\\xff]",ye="[^\\ud800-\\udfff"+pe+me+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",je="\\ud83c[\\udffb-\\udfff]",Ee="[^\\ud800-\\udfff]",Ce="(?:\\ud83c[\\udde6-\\uddff]){2}",we="[\\ud800-\\udbff][\\udc00-\\udfff]",Te="[A-Z\\xc0-\\xd6\\xd8-\\xde]",_e="(?:"+Oe+"|"+ye+")",Se="(?:"+Te+"|"+ye+")",Ae="(?:"+ve+"|"+je+")"+"?",ke="[\\ufe0e\\ufe0f]?"+Ae+("(?:\\u200d(?:"+[Ee,Ce,we].join("|")+")[\\ufe0e\\ufe0f]?"+Ae+")*"),Re="(?:"+[ge,Ce,we].join("|")+")"+ke,Ie="(?:"+[Ee+ve+"?",ve,Ce,we,he].join("|")+")",xe=RegExp("['’]","g"),Ne=RegExp(ve,"g"),De=RegExp(je+"(?="+je+")|"+Ie+ke,"g"),Pe=RegExp([Te+"?"+Oe+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[be,Te,"$"].join("|")+")",Se+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[be,Te+_e,"$"].join("|")+")",Te+"?"+_e+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Te+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",me,Re].join("|"),"g"),Le=RegExp("[\\u200d\\ud800-\\udfff"+fe+"\\ufe0e\\ufe0f]"),Me=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ue=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Be=-1,ze={};ze[T]=ze[_]=ze[S]=ze[A]=ze[k]=ze[R]=ze["[object Uint8ClampedArray]"]=ze[I]=ze[x]=!0,ze[s]=ze[u]=ze[C]=ze[l]=ze[w]=ze[d]=ze[f]=ze[p]=ze[b]=ze[v]=ze[m]=ze[g]=ze[O]=ze[y]=ze[E]=!1;var Fe={};Fe[s]=Fe[u]=Fe[C]=Fe[w]=Fe[l]=Fe[d]=Fe[T]=Fe[_]=Fe[S]=Fe[A]=Fe[k]=Fe[b]=Fe[v]=Fe[m]=Fe[g]=Fe[O]=Fe[y]=Fe[j]=Fe[R]=Fe["[object Uint8ClampedArray]"]=Fe[I]=Fe[x]=!0,Fe[f]=Fe[p]=Fe[E]=!1;var Ge={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ve=parseFloat,He=parseInt,qe="object"==typeof e&&e&&e.Object===Object&&e,Ke="object"==typeof self&&self&&self.Object===Object&&self,We=qe||Ke||Function("return this")(),Ye=t&&!t.nodeType&&t,Qe=Ye&&"object"==typeof r&&r&&!r.nodeType&&r,Ze=Qe&&Qe.exports===Ye,Je=Ze&&qe.process,Xe=function(){try{var e=Qe&&Qe.require&&Qe.require("util").types;return e||Je&&Je.binding&&Je.binding("util")}catch(e){}}(),$e=Xe&&Xe.isArrayBuffer,et=Xe&&Xe.isDate,tt=Xe&&Xe.isMap,nt=Xe&&Xe.isRegExp,rt=Xe&&Xe.isSet,ot=Xe&&Xe.isTypedArray;function it(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function at(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function st(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ut(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function lt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function dt(e,t){return!!(null==e?0:e.length)&&jt(e,t,0)>-1}function ft(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function pt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function ht(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function bt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function vt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function mt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var gt=Tt("length");function Ot(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function yt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function jt(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):yt(e,Ct,n)}function Et(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Ct(e){return e!=e}function wt(e,t){var n=null==e?0:e.length;return n?At(e,t)/n:NaN}function Tt(e){return function(t){return null==t?void 0:t[e]}}function _t(e){return function(t){return null==e?void 0:e[t]}}function St(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function At(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}function kt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Rt(e){return function(t){return e(t)}}function It(e,t){return pt(t,(function(t){return e[t]}))}function xt(e,t){return e.has(t)}function Nt(e,t){for(var n=-1,r=e.length;++n<r&&jt(t,e[n],0)>-1;);return n}function Dt(e,t){for(var n=e.length;n--&&jt(t,e[n],0)>-1;);return n}function Pt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Lt=_t({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Mt=_t({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ut(e){return"\\"+Ge[e]}function Bt(e){return Le.test(e)}function zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Ft(e,t){return function(n){return e(t(n))}}function Gt(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var c=e[n];c!==t&&c!==a||(e[n]=a,i[o++]=n)}return i}function Vt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Ht(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function qt(e){return Bt(e)?function(e){var t=De.lastIndex=0;for(;De.test(e);)++t;return t}(e):gt(e)}function Kt(e){return Bt(e)?function(e){return e.match(De)||[]}(e):function(e){return e.split("")}(e)}var Wt=_t({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Yt=function e(t){var n,r=(t=null==t?We:Yt.defaults(We.Object(),t,Yt.pick(We,Ue))).Array,o=t.Date,fe=t.Error,pe=t.Function,he=t.Math,be=t.Object,ve=t.RegExp,me=t.String,ge=t.TypeError,Oe=r.prototype,ye=pe.prototype,je=be.prototype,Ee=t["__core-js_shared__"],Ce=ye.toString,we=je.hasOwnProperty,Te=0,_e=(n=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Se=je.toString,Ae=Ce.call(be),ke=We._,Re=ve("^"+Ce.call(we).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ie=Ze?t.Buffer:void 0,De=t.Symbol,Le=t.Uint8Array,Ge=Ie?Ie.allocUnsafe:void 0,qe=Ft(be.getPrototypeOf,be),Ke=be.create,Ye=je.propertyIsEnumerable,Qe=Oe.splice,Je=De?De.isConcatSpreadable:void 0,Xe=De?De.iterator:void 0,gt=De?De.toStringTag:void 0,_t=function(){try{var e=ei(be,"defineProperty");return e({},"",{}),e}catch(e){}}(),Qt=t.clearTimeout!==We.clearTimeout&&t.clearTimeout,Zt=o&&o.now!==We.Date.now&&o.now,Jt=t.setTimeout!==We.setTimeout&&t.setTimeout,Xt=he.ceil,$t=he.floor,en=be.getOwnPropertySymbols,tn=Ie?Ie.isBuffer:void 0,nn=t.isFinite,rn=Oe.join,on=Ft(be.keys,be),an=he.max,cn=he.min,sn=o.now,un=t.parseInt,ln=he.random,dn=Oe.reverse,fn=ei(t,"DataView"),pn=ei(t,"Map"),hn=ei(t,"Promise"),bn=ei(t,"Set"),vn=ei(t,"WeakMap"),mn=ei(be,"create"),gn=vn&&new vn,On={},yn=Si(fn),jn=Si(pn),En=Si(hn),Cn=Si(bn),wn=Si(vn),Tn=De?De.prototype:void 0,_n=Tn?Tn.valueOf:void 0,Sn=Tn?Tn.toString:void 0;function An(e){if(Ha(e)&&!Na(e)&&!(e instanceof xn)){if(e instanceof In)return e;if(we.call(e,"__wrapped__"))return Ai(e)}return new In(e)}var kn=function(){function e(){}return function(t){if(!Va(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Rn(){}function In(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function xn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Dn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Pn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ln(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Pn;++t<n;)this.add(e[t])}function Mn(e){var t=this.__data__=new Dn(e);this.size=t.size}function Un(e,t){var n=Na(e),r=!n&&xa(e),o=!n&&!r&&Ma(e),i=!n&&!r&&!o&&Xa(e),a=n||r||o||i,c=a?kt(e.length,me):[],s=c.length;for(var u in e)!t&&!we.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ci(u,s))||c.push(u);return c}function Bn(e){var t=e.length;return t?e[Lr(0,t-1)]:void 0}function zn(e,t){return wi(go(e),Qn(t,0,e.length))}function Fn(e){return wi(go(e))}function Gn(e,t,n){(void 0!==n&&!ka(e[t],n)||void 0===n&&!(t in e))&&Wn(e,t,n)}function Vn(e,t,n){var r=e[t];we.call(e,t)&&ka(r,n)&&(void 0!==n||t in e)||Wn(e,t,n)}function Hn(e,t){for(var n=e.length;n--;)if(ka(e[n][0],t))return n;return-1}function qn(e,t,n,r){return er(e,(function(e,o,i){t(r,e,n(e),i)})),r}function Kn(e,t){return e&&Oo(t,yc(t),e)}function Wn(e,t,n){"__proto__"==t&&_t?_t(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Yn(e,t){for(var n=-1,o=t.length,i=r(o),a=null==e;++n<o;)i[n]=a?void 0:bc(e,t[n]);return i}function Qn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Zn(e,t,n,r,o,i){var a,c=1&t,u=2&t,f=4&t;if(n&&(a=o?n(e,r,o,i):n(e)),void 0!==a)return a;if(!Va(e))return e;var E=Na(e);if(E){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&we.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return go(e,a)}else{var N=ri(e),D=N==p||N==h;if(Ma(e))return fo(e,c);if(N==m||N==s||D&&!o){if(a=u||D?{}:ii(e),!c)return u?function(e,t){return Oo(e,ni(e),t)}(e,function(e,t){return e&&Oo(t,jc(t),e)}(a,e)):function(e,t){return Oo(e,ti(e),t)}(e,Kn(a,e))}else{if(!Fe[N])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case C:return po(e);case l:case d:return new r(+e);case w:return function(e,t){var n=t?po(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case T:case _:case S:case A:case k:case R:case"[object Uint8ClampedArray]":case I:case x:return ho(e,n);case b:return new r;case v:case y:return new r(e);case g:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case O:return new r;case j:return o=e,_n?be(_n.call(o)):{}}var o}(e,N,c)}}i||(i=new Mn);var P=i.get(e);if(P)return P;i.set(e,a),Qa(e)?e.forEach((function(r){a.add(Zn(r,t,n,r,e,i))})):qa(e)&&e.forEach((function(r,o){a.set(o,Zn(r,t,n,o,e,i))}));var L=E?void 0:(f?u?Wo:Ko:u?jc:yc)(e);return ct(L||e,(function(r,o){L&&(r=e[o=r]),Vn(a,o,Zn(r,t,n,o,e,i))})),a}function Jn(e,t,n){var r=n.length;if(null==e)return!r;for(e=be(e);r--;){var o=n[r],i=t[o],a=e[o];if(void 0===a&&!(o in e)||!i(a))return!1}return!0}function Xn(e,t,n){if("function"!=typeof e)throw new ge(i);return yi((function(){e.apply(void 0,n)}),t)}function $n(e,t,n,r){var o=-1,i=dt,a=!0,c=e.length,s=[],u=t.length;if(!c)return s;n&&(t=pt(t,Rt(n))),r?(i=ft,a=!1):t.length>=200&&(i=xt,a=!1,t=new Ln(t));e:for(;++o<c;){var l=e[o],d=null==n?l:n(l);if(l=r||0!==l?l:0,a&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;s.push(l)}else i(t,d,r)||s.push(l)}return s}An.templateSettings={escape:z,evaluate:F,interpolate:G,variable:"",imports:{_:An}},An.prototype=Rn.prototype,An.prototype.constructor=An,In.prototype=kn(Rn.prototype),In.prototype.constructor=In,xn.prototype=kn(Rn.prototype),xn.prototype.constructor=xn,Nn.prototype.clear=function(){this.__data__=mn?mn(null):{},this.size=0},Nn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Nn.prototype.get=function(e){var t=this.__data__;if(mn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return we.call(t,e)?t[e]:void 0},Nn.prototype.has=function(e){var t=this.__data__;return mn?void 0!==t[e]:we.call(t,e)},Nn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=mn&&void 0===t?"__lodash_hash_undefined__":t,this},Dn.prototype.clear=function(){this.__data__=[],this.size=0},Dn.prototype.delete=function(e){var t=this.__data__,n=Hn(t,e);return!(n<0)&&(n==t.length-1?t.pop():Qe.call(t,n,1),--this.size,!0)},Dn.prototype.get=function(e){var t=this.__data__,n=Hn(t,e);return n<0?void 0:t[n][1]},Dn.prototype.has=function(e){return Hn(this.__data__,e)>-1},Dn.prototype.set=function(e,t){var n=this.__data__,r=Hn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Pn.prototype.clear=function(){this.size=0,this.__data__={hash:new Nn,map:new(pn||Dn),string:new Nn}},Pn.prototype.delete=function(e){var t=Xo(this,e).delete(e);return this.size-=t?1:0,t},Pn.prototype.get=function(e){return Xo(this,e).get(e)},Pn.prototype.has=function(e){return Xo(this,e).has(e)},Pn.prototype.set=function(e,t){var n=Xo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ln.prototype.add=Ln.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Ln.prototype.has=function(e){return this.__data__.has(e)},Mn.prototype.clear=function(){this.__data__=new Dn,this.size=0},Mn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Mn.prototype.get=function(e){return this.__data__.get(e)},Mn.prototype.has=function(e){return this.__data__.has(e)},Mn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Dn){var r=n.__data__;if(!pn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Pn(r)}return n.set(e,t),this.size=n.size,this};var er=Eo(sr),tr=Eo(ur,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function rr(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===c?a==a&&!Ja(a):n(a,c)))var c=a,s=i}return s}function or(e,t){var n=[];return er(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function ir(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=ai),o||(o=[]);++i<a;){var c=e[i];t>0&&n(c)?t>1?ir(c,t-1,n,r,o):ht(o,c):r||(o[o.length]=c)}return o}var ar=Co(),cr=Co(!0);function sr(e,t){return e&&ar(e,t,yc)}function ur(e,t){return e&&cr(e,t,yc)}function lr(e,t){return lt(t,(function(t){return za(e[t])}))}function dr(e,t){for(var n=0,r=(t=co(t,e)).length;null!=e&&n<r;)e=e[_i(t[n++])];return n&&n==r?e:void 0}function fr(e,t,n){var r=t(e);return Na(e)?r:ht(r,n(e))}function pr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":gt&> in be(e)?function(e){var t=we.call(e,gt),n=e[gt];try{e[gt]=void 0;var r=!0}catch(e){}var o=Se.call(e);r&&(t?e[gt]=n:delete e[gt]);return o}(e):function(e){return Se.call(e)}(e)}function hr(e,t){return e>t}function br(e,t){return null!=e&&we.call(e,t)}function vr(e,t){return null!=e&&t in be(e)}function mr(e,t,n){for(var o=n?ft:dt,i=e[0].length,a=e.length,c=a,s=r(a),u=1/0,l=[];c--;){var d=e[c];c&&t&&(d=pt(d,Rt(t))),u=cn(d.length,u),s[c]=!n&&(t||i>=120&&d.length>=120)?new Ln(c&&d):void 0}d=e[0];var f=-1,p=s[0];e:for(;++f<i&&l.length<u;){var h=d[f],b=t?t(h):h;if(h=n||0!==h?h:0,!(p?xt(p,b):o(l,b,n))){for(c=a;--c;){var v=s[c];if(!(v?xt(v,b):o(e[c],b,n)))continue e}p&&p.push(b),l.push(h)}}return l}function gr(e,t,n){var r=null==(e=vi(e,t=co(t,e)))?e:e[_i(Bi(t))];return null==r?void 0:it(r,e,n)}function Or(e){return Ha(e)&&pr(e)==s}function yr(e,t,n,r,o){return e===t||(null==e||null==t||!Ha(e)&&!Ha(t)?e!=e&&t!=t:function(e,t,n,r,o,i){var a=Na(e),c=Na(t),p=a?u:ri(e),h=c?u:ri(t),E=(p=p==s?m:p)==m,T=(h=h==s?m:h)==m,_=p==h;if(_&&Ma(e)){if(!Ma(t))return!1;a=!0,E=!1}if(_&&!E)return i||(i=new Mn),a||Xa(e)?Ho(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case C:return!(e.byteLength!=t.byteLength||!i(new Le(e),new Le(t)));case l:case d:case v:return ka(+e,+t);case f:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case b:var c=zt;case O:var s=1&r;if(c||(c=Vt),e.size!=t.size&&!s)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var p=Ho(c(e),c(t),r,o,i,a);return a.delete(e),p;case j:if(_n)return _n.call(e)==_n.call(t)}return!1}(e,t,p,n,r,o,i);if(!(1&n)){var S=E&&we.call(e,"__wrapped__"),A=T&&we.call(t,"__wrapped__");if(S||A){var k=S?e.value():e,R=A?t.value():t;return i||(i=new Mn),o(k,R,n,r,i)}}if(!_)return!1;return i||(i=new Mn),function(e,t,n,r,o,i){var a=1&n,c=Ko(e),s=c.length,u=Ko(t).length;if(s!=u&&!a)return!1;var l=s;for(;l--;){var d=c[l];if(!(a?d in t:we.call(t,d)))return!1}var f=i.get(e),p=i.get(t);if(f&&p)return f==t&&p==e;var h=!0;i.set(e,t),i.set(t,e);var b=a;for(;++l<s;){d=c[l];var v=e[d],m=t[d];if(r)var g=a?r(m,v,d,t,e,i):r(v,m,d,e,t,i);if(!(void 0===g?v===m||o(v,m,n,r,i):g)){h=!1;break}b||(b="constructor"==d)}if(h&&!b){var O=e.constructor,y=t.constructor;O==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof O&&O instanceof O&&"function"==typeof y&&y instanceof y||(h=!1)}return i.delete(e),i.delete(t),h}(e,t,n,r,o,i)}(e,t,n,r,yr,o))}function jr(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=be(e);o--;){var c=n[o];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<i;){var s=(c=n[o])[0],u=e[s],l=c[1];if(a&&c[2]){if(void 0===u&&!(s in e))return!1}else{var d=new Mn;if(r)var f=r(u,l,s,e,t,d);if(!(void 0===f?yr(l,u,3,r,d):f))return!1}}return!0}function Er(e){return!(!Va(e)||(t=e,_e&&_e in t))&&(za(e)?Re:ae).test(Si(e));var t}function Cr(e){return"function"==typeof e?e:null==e?Kc:"object"==typeof e?Na(e)?kr(e[0],e[1]):Ar(e):ts(e)}function wr(e){if(!fi(e))return on(e);var t=[];for(var n in be(e))we.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Tr(e){if(!Va(e))return function(e){var t=[];if(null!=e)for(var n in be(e))t.push(n);return t}(e);var t=fi(e),n=[];for(var r in e)("constructor"!=r||!t&&we.call(e,r))&&n.push(r);return n}function _r(e,t){return e<t}function Sr(e,t){var n=-1,o=Pa(e)?r(e.length):[];return er(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Ar(e){var t=$o(e);return 1==t.length&&t[0][2]?hi(t[0][0],t[0][1]):function(n){return n===e||jr(n,e,t)}}function kr(e,t){return ui(e)&&pi(t)?hi(_i(e),t):function(n){var r=bc(n,e);return void 0===r&&r===t?vc(n,e):yr(t,r,3)}}function Rr(e,t,n,r,o){e!==t&&ar(t,(function(i,a){if(o||(o=new Mn),Va(i))!function(e,t,n,r,o,i,a){var c=gi(e,n),s=gi(t,n),u=a.get(s);if(u)return void Gn(e,n,u);var l=i?i(c,s,n+"",e,t,a):void 0,d=void 0===l;if(d){var f=Na(s),p=!f&&Ma(s),h=!f&&!p&&Xa(s);l=s,f||p||h?Na(c)?l=c:La(c)?l=go(c):p?(d=!1,l=fo(s,!0)):h?(d=!1,l=ho(s,!0)):l=[]:Wa(s)||xa(s)?(l=c,xa(c)?l=ac(c):Va(c)&&!za(c)||(l=ii(s))):d=!1}d&&(a.set(s,l),o(l,s,r,i,a),a.delete(s));Gn(e,n,l)}(e,t,a,n,Rr,r,o);else{var c=r?r(gi(e,a),i,a+"",e,t,o):void 0;void 0===c&&(c=i),Gn(e,a,c)}}),jc)}function Ir(e,t){var n=e.length;if(n)return ci(t+=t<0?n:0,n)?e[t]:void 0}function xr(e,t,n){t=t.length?pt(t,(function(e){return Na(e)?function(t){return dr(t,1===e.length?e[0]:e)}:e})):[Kc];var r=-1;return t=pt(t,Rt(Jo())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Sr(e,(function(e,n,o){return{criteria:pt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,c=n.length;for(;++r<a;){var s=bo(o[r],i[r]);if(s){if(r>=c)return s;var u=n[r];return s*("desc"==u?-1:1)}}return e.index-t.index}(e,t,n)}))}function Nr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],c=dr(e,a);n(c,a)&&Fr(i,co(a,e),c)}return i}function Dr(e,t,n,r){var o=r?Et:jt,i=-1,a=t.length,c=e;for(e===t&&(t=go(t)),n&&(c=pt(e,Rt(n)));++i<a;)for(var s=0,u=t[i],l=n?n(u):u;(s=o(c,l,s,r))>-1;)c!==e&&Qe.call(c,s,1),Qe.call(e,s,1);return e}function Pr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;ci(o)?Qe.call(e,o,1):$r(e,o)}}return e}function Lr(e,t){return e+$t(ln()*(t-e+1))}function Mr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=$t(t/2))&&(e+=e)}while(t);return n}function Ur(e,t){return ji(bi(e,t,Kc),e+"")}function Br(e){return Bn(kc(e))}function zr(e,t){var n=kc(e);return wi(n,Qn(t,0,n.length))}function Fr(e,t,n,r){if(!Va(e))return e;for(var o=-1,i=(t=co(t,e)).length,a=i-1,c=e;null!=c&&++o<i;){var s=_i(t[o]),u=n;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(o!=a){var l=c[s];void 0===(u=r?r(l,s,c):void 0)&&(u=Va(l)?l:ci(t[o+1])?[]:{})}Vn(c,s,u),c=c[s]}return e}var Gr=gn?function(e,t){return gn.set(e,t),e}:Kc,Vr=_t?function(e,t){return _t(e,"toString",{configurable:!0,enumerable:!1,value:Vc(t),writable:!0})}:Kc;function Hr(e){return wi(kc(e))}function qr(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function Kr(e,t){var n;return er(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function Wr(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!Ja(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return Yr(e,t,Kc,n)}function Yr(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,c=null===t,s=Ja(t),u=void 0===t;o<i;){var l=$t((o+i)/2),d=n(e[l]),f=void 0!==d,p=null===d,h=d==d,b=Ja(d);if(a)var v=r||h;else v=u?h&&(r||f):c?h&&f&&(r||!p):s?h&&f&&!p&&(r||!b):!p&&!b&&(r?d<=t:d<t);v?o=l+1:i=l}return cn(i,4294967294)}function Qr(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],c=t?t(a):a;if(!n||!ka(c,s)){var s=c;i[o++]=0===a?0:a}}return i}function Zr(e){return"number"==typeof e?e:Ja(e)?NaN:+e}function Jr(e){if("string"==typeof e)return e;if(Na(e))return pt(e,Jr)+"";if(Ja(e))return Sn?Sn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Xr(e,t,n){var r=-1,o=dt,i=e.length,a=!0,c=[],s=c;if(n)a=!1,o=ft;else if(i>=200){var u=t?null:Uo(e);if(u)return Vt(u);a=!1,o=xt,s=new Ln}else s=t?[]:c;e:for(;++r<i;){var l=e[r],d=t?t(l):l;if(l=n||0!==l?l:0,a&&d==d){for(var f=s.length;f--;)if(s[f]===d)continue e;t&&s.push(d),c.push(l)}else o(s,d,n)||(s!==c&&s.push(d),c.push(l))}return c}function $r(e,t){return null==(e=vi(e,t=co(t,e)))||delete e[_i(Bi(t))]}function eo(e,t,n,r){return Fr(e,t,n(dr(e,t)),r)}function to(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?qr(e,r?0:i,r?i+1:o):qr(e,r?i+1:0,r?o:i)}function no(e,t){var n=e;return n instanceof xn&&(n=n.value()),bt(t,(function(e,t){return t.func.apply(t.thisArg,ht([e],t.args))}),n)}function ro(e,t,n){var o=e.length;if(o<2)return o?Xr(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var c=e[i],s=-1;++s<o;)s!=i&&(a[i]=$n(a[i]||c,e[s],t,n));return Xr(ir(a,1),t,n)}function oo(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var c=r<i?t[r]:void 0;n(a,e[r],c)}return a}function io(e){return La(e)?e:[]}function ao(e){return"function"==typeof e?e:Kc}function co(e,t){return Na(e)?e:ui(e,t)?[e]:Ti(cc(e))}var so=Ur;function uo(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:qr(e,t,n)}var lo=Qt||function(e){return We.clearTimeout(e)};function fo(e,t){if(t)return e.slice();var n=e.length,r=Ge?Ge(n):new e.constructor(n);return e.copy(r),r}function po(e){var t=new e.constructor(e.byteLength);return new Le(t).set(new Le(e)),t}function ho(e,t){var n=t?po(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function bo(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=Ja(e),a=void 0!==t,c=null===t,s=t==t,u=Ja(t);if(!c&&!u&&!i&&e>t||i&&a&&s&&!c&&!u||r&&a&&s||!n&&s||!o)return 1;if(!r&&!i&&!u&&e<t||u&&n&&o&&!r&&!i||c&&n&&o||!a&&o||!s)return-1}return 0}function vo(e,t,n,o){for(var i=-1,a=e.length,c=n.length,s=-1,u=t.length,l=an(a-c,0),d=r(u+l),f=!o;++s<u;)d[s]=t[s];for(;++i<c;)(f||i<a)&&(d[n[i]]=e[i]);for(;l--;)d[s++]=e[i++];return d}function mo(e,t,n,o){for(var i=-1,a=e.length,c=-1,s=n.length,u=-1,l=t.length,d=an(a-s,0),f=r(d+l),p=!o;++i<d;)f[i]=e[i];for(var h=i;++u<l;)f[h+u]=t[u];for(;++c<s;)(p||i<a)&&(f[h+n[c]]=e[i++]);return f}function go(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Oo(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var c=t[i],s=r?r(n[c],e[c],c,n,e):void 0;void 0===s&&(s=e[c]),o?Wn(n,c,s):Vn(n,c,s)}return n}function yo(e,t){return function(n,r){var o=Na(n)?at:qn,i=t?t():{};return o(n,e,Jo(r,2),i)}}function jo(e){return Ur((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&si(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=be(t);++r<o;){var c=n[r];c&&e(t,c,r,i)}return t}))}function Eo(e,t){return function(n,r){if(null==n)return n;if(!Pa(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=be(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Co(e){return function(t,n,r){for(var o=-1,i=be(t),a=r(t),c=a.length;c--;){var s=a[e?c:++o];if(!1===n(i[s],s,i))break}return t}}function wo(e){return function(t){var n=Bt(t=cc(t))?Kt(t):void 0,r=n?n[0]:t.charAt(0),o=n?uo(n,1).join(""):t.slice(1);return r[e]()+o}}function To(e){return function(t){return bt(zc(xc(t).replace(xe,"")),e,"")}}function _o(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=kn(e.prototype),r=e.apply(n,t);return Va(r)?r:n}}function So(e){return function(t,n,r){var o=be(t);if(!Pa(t)){var i=Jo(n,3);t=yc(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}}function Ao(e){return qo((function(t){var n=t.length,r=n,o=In.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ge(i);if(o&&!c&&"wrapper"==Qo(a))var c=new In([],!0)}for(r=c?r:n;++r<n;){var s=Qo(a=t[r]),u="wrapper"==s?Yo(a):void 0;c=u&&li(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[Qo(u[0])].apply(c,u[3]):1==a.length&&li(a)?c[s]():c.thru(a)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&Na(r))return c.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function ko(e,t,n,o,i,a,c,s,u,l){var d=128&t,f=1&t,p=2&t,h=24&t,b=512&t,v=p?void 0:_o(e);return function m(){for(var g=arguments.length,O=r(g),y=g;y--;)O[y]=arguments[y];if(h)var j=Zo(m),E=Pt(O,j);if(o&&(O=vo(O,o,i,h)),a&&(O=mo(O,a,c,h)),g-=E,h&&g<l){var C=Gt(O,j);return Lo(e,t,ko,m.placeholder,n,O,C,s,u,l-g)}var w=f?n:this,T=p?w[e]:e;return g=O.length,s?O=mi(O,s):b&&g>1&&O.reverse(),d&&u<g&&(O.length=u),this&&this!==We&&this instanceof m&&(T=v||_o(T)),T.apply(w,O)}}function Ro(e,t){return function(n,r){return function(e,t,n,r){return sr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Io(e,t){return function(n,r){var o;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(o=n),void 0!==r){if(void 0===o)return r;"string"==typeof n||"string"==typeof r?(n=Jr(n),r=Jr(r)):(n=Zr(n),r=Zr(r)),o=e(n,r)}return o}}function xo(e){return qo((function(t){return t=pt(t,Rt(Jo())),Ur((function(n){var r=this;return e(t,(function(e){return it(e,r,n)}))}))}))}function No(e,t){var n=(t=void 0===t?" ":Jr(t)).length;if(n<2)return n?Mr(t,e):t;var r=Mr(t,Xt(e/qt(t)));return Bt(t)?uo(Kt(r),0,e).join(""):r.slice(0,e)}function Do(e){return function(t,n,o){return o&&"number"!=typeof o&&si(t,n,o)&&(n=o=void 0),t=nc(t),void 0===n?(n=t,t=0):n=nc(n),function(e,t,n,o){for(var i=-1,a=an(Xt((t-e)/(n||1)),0),c=r(a);a--;)c[o?a:++i]=e,e+=n;return c}(t,n,o=void 0===o?t<n?1:-1:nc(o),e)}}function Po(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ic(t),n=ic(n)),e(t,n)}}function Lo(e,t,n,r,o,i,a,c,s,u){var l=8&t;t|=l?32:64,4&(t&=~(l?64:32))||(t&=-4);var d=[e,t,o,l?i:void 0,l?a:void 0,l?void 0:i,l?void 0:a,c,s,u],f=n.apply(void 0,d);return li(e)&&Oi(f,d),f.placeholder=r,Ei(f,e,t)}function Mo(e){var t=he[e];return function(e,n){if(e=ic(e),(n=null==n?0:cn(rc(n),292))&&nn(e)){var r=(cc(e)+"e").split("e");return+((r=(cc(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Uo=bn&&1/Vt(new bn([,-0]))[1]==1/0?function(e){return new bn(e)}:Jc;function Bo(e){return function(t){var n=ri(t);return n==b?zt(t):n==O?Ht(t):function(e,t){return pt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function zo(e,t,n,o,c,s,u,l){var d=2&t;if(!d&&"function"!=typeof e)throw new ge(i);var f=o?o.length:0;if(f||(t&=-97,o=c=void 0),u=void 0===u?u:an(rc(u),0),l=void 0===l?l:rc(l),f-=c?c.length:0,64&t){var p=o,h=c;o=c=void 0}var b=d?void 0:Yo(e),v=[e,t,n,o,c,p,h,s,u,l];if(b&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,c=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!c)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var s=t[3];if(s){var u=e[3];e[3]=u?vo(u,s,t[4]):s,e[4]=u?Gt(e[3],a):t[4]}(s=t[5])&&(u=e[5],e[5]=u?mo(u,s,t[6]):s,e[6]=u?Gt(e[5],a):t[6]);(s=t[7])&&(e[7]=s);128&r&&(e[8]=null==e[8]?t[8]:cn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(v,b),e=v[0],t=v[1],n=v[2],o=v[3],c=v[4],!(l=v[9]=void 0===v[9]?d?0:e.length:an(v[9]-f,0))&&24&t&&(t&=-25),t&&1!=t)m=8==t||16==t?function(e,t,n){var o=_o(e);return function i(){for(var a=arguments.length,c=r(a),s=a,u=Zo(i);s--;)c[s]=arguments[s];var l=a<3&&c[0]!==u&&c[a-1]!==u?[]:Gt(c,u);if((a-=l.length)<n)return Lo(e,t,ko,i.placeholder,void 0,c,l,void 0,void 0,n-a);var d=this&&this!==We&&this instanceof i?o:e;return it(d,this,c)}}(e,t,l):32!=t&&33!=t||c.length?ko.apply(void 0,v):function(e,t,n,o){var i=1&t,a=_o(e);return function t(){for(var c=-1,s=arguments.length,u=-1,l=o.length,d=r(l+s),f=this&&this!==We&&this instanceof t?a:e;++u<l;)d[u]=o[u];for(;s--;)d[u++]=arguments[++c];return it(f,i?n:this,d)}}(e,t,n,o);else var m=function(e,t,n){var r=1&t,o=_o(e);return function t(){var i=this&&this!==We&&this instanceof t?o:e;return i.apply(r?n:this,arguments)}}(e,t,n);return Ei((b?Gr:Oi)(m,v),e,t)}function Fo(e,t,n,r){return void 0===e||ka(e,je[n])&&!we.call(r,n)?t:e}function Go(e,t,n,r,o,i){return Va(e)&&Va(t)&&(i.set(t,e),Rr(e,t,void 0,Go,i),i.delete(t)),e}function Vo(e){return Wa(e)?void 0:e}function Ho(e,t,n,r,o,i){var a=1&n,c=e.length,s=t.length;if(c!=s&&!(a&&s>c))return!1;var u=i.get(e),l=i.get(t);if(u&&l)return u==t&&l==e;var d=-1,f=!0,p=2&n?new Ln:void 0;for(i.set(e,t),i.set(t,e);++d<c;){var h=e[d],b=t[d];if(r)var v=a?r(b,h,d,t,e,i):r(h,b,d,e,t,i);if(void 0!==v){if(v)continue;f=!1;break}if(p){if(!mt(t,(function(e,t){if(!xt(p,t)&&(h===e||o(h,e,n,r,i)))return p.push(t)}))){f=!1;break}}else if(h!==b&&!o(h,b,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function qo(e){return ji(bi(e,void 0,Di),e+"")}function Ko(e){return fr(e,yc,ti)}function Wo(e){return fr(e,jc,ni)}var Yo=gn?function(e){return gn.get(e)}:Jc;function Qo(e){for(var t=e.name+"",n=On[t],r=we.call(On,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Zo(e){return(we.call(An,"placeholder")?An:e).placeholder}function Jo(){var e=An.iteratee||Wc;return e=e===Wc?Cr:e,arguments.length?e(arguments[0],arguments[1]):e}function Xo(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function $o(e){for(var t=yc(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,pi(o)]}return t}function ei(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Er(n)?n:void 0}var ti=en?function(e){return null==e?[]:(e=be(e),lt(en(e),(function(t){return Ye.call(e,t)})))}:os,ni=en?function(e){for(var t=[];e;)ht(t,ti(e)),e=qe(e);return t}:os,ri=pr;function oi(e,t,n){for(var r=-1,o=(t=co(t,e)).length,i=!1;++r<o;){var a=_i(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Ga(o)&&ci(a,o)&&(Na(e)||xa(e))}function ii(e){return"function"!=typeof e.constructor||fi(e)?{}:kn(qe(e))}function ai(e){return Na(e)||xa(e)||!!(Je&&e&&e[Je])}function ci(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&se.test(e))&&e>-1&&e%1==0&&e<t}function si(e,t,n){if(!Va(n))return!1;var r=typeof t;return!!("number"==r?Pa(n)&&ci(t,n.length):"string"==r&&t in n)&&ka(n[t],e)}function ui(e,t){if(Na(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ja(e))||(H.test(e)||!V.test(e)||null!=t&&e in be(t))}function li(e){var t=Qo(e),n=An[t];if("function"!=typeof n||!(t in xn.prototype))return!1;if(e===n)return!0;var r=Yo(n);return!!r&&e===r[0]}(fn&&ri(new fn(new ArrayBuffer(1)))!=w||pn&&ri(new pn)!=b||hn&&"[object Promise]"!=ri(hn.resolve())||bn&&ri(new bn)!=O||vn&&ri(new vn)!=E)&&(ri=function(e){var t=pr(e),n=t==m?e.constructor:void 0,r=n?Si(n):"";if(r)switch(r){case yn:return w;case jn:return b;case En:return"[object Promise]";case Cn:return O;case wn:return E}return t});var di=Ee?za:is;function fi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||je)}function pi(e){return e==e&&!Va(e)}function hi(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in be(n)))}}function bi(e,t,n){return t=an(void 0===t?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=an(o.length-t,0),c=r(a);++i<a;)c[i]=o[t+i];i=-1;for(var s=r(t+1);++i<t;)s[i]=o[i];return s[t]=n(c),it(e,this,s)}}function vi(e,t){return t.length<2?e:dr(e,qr(t,0,-1))}function mi(e,t){for(var n=e.length,r=cn(t.length,n),o=go(e);r--;){var i=t[r];e[r]=ci(i,n)?o[i]:void 0}return e}function gi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Oi=Ci(Gr),yi=Jt||function(e,t){return We.setTimeout(e,t)},ji=Ci(Vr);function Ei(e,t,n){var r=t+"";return ji(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(J,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return ct(c,(function(n){var r="_."+n[0];t&n[1]&&!dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(X);return t?t[1].split($):[]}(r),n)))}function Ci(e){var t=0,n=0;return function(){var r=sn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function wi(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n<t;){var i=Lr(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}var Ti=function(e){var t=Ca(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(q,(function(e,n,r,o){t.push(r?o.replace(te,"$1"):n||e)})),t}));function _i(e){if("string"==typeof e||Ja(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Si(e){if(null!=e){try{return Ce.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ai(e){if(e instanceof xn)return e.clone();var t=new In(e.__wrapped__,e.__chain__);return t.__actions__=go(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var ki=Ur((function(e,t){return La(e)?$n(e,ir(t,1,La,!0)):[]})),Ri=Ur((function(e,t){var n=Bi(t);return La(n)&&(n=void 0),La(e)?$n(e,ir(t,1,La,!0),Jo(n,2)):[]})),Ii=Ur((function(e,t){var n=Bi(t);return La(n)&&(n=void 0),La(e)?$n(e,ir(t,1,La,!0),void 0,n):[]}));function xi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:rc(n);return o<0&&(o=an(r+o,0)),yt(e,Jo(t,3),o)}function Ni(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=rc(n),o=n<0?an(r+o,0):cn(o,r-1)),yt(e,Jo(t,3),o,!0)}function Di(e){return(null==e?0:e.length)?ir(e,1):[]}function Pi(e){return e&&e.length?e[0]:void 0}var Li=Ur((function(e){var t=pt(e,io);return t.length&&t[0]===e[0]?mr(t):[]})),Mi=Ur((function(e){var t=Bi(e),n=pt(e,io);return t===Bi(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?mr(n,Jo(t,2)):[]})),Ui=Ur((function(e){var t=Bi(e),n=pt(e,io);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?mr(n,void 0,t):[]}));function Bi(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var zi=Ur(Fi);function Fi(e,t){return e&&e.length&&t&&t.length?Dr(e,t):e}var Gi=qo((function(e,t){var n=null==e?0:e.length,r=Yn(e,t);return Pr(e,pt(t,(function(e){return ci(e,n)?+e:e})).sort(bo)),r}));function Vi(e){return null==e?e:dn.call(e)}var Hi=Ur((function(e){return Xr(ir(e,1,La,!0))})),qi=Ur((function(e){var t=Bi(e);return La(t)&&(t=void 0),Xr(ir(e,1,La,!0),Jo(t,2))})),Ki=Ur((function(e){var t=Bi(e);return t="function"==typeof t?t:void 0,Xr(ir(e,1,La,!0),void 0,t)}));function Wi(e){if(!e||!e.length)return[];var t=0;return e=lt(e,(function(e){if(La(e))return t=an(e.length,t),!0})),kt(t,(function(t){return pt(e,Tt(t))}))}function Yi(e,t){if(!e||!e.length)return[];var n=Wi(e);return null==t?n:pt(n,(function(e){return it(t,void 0,e)}))}var Qi=Ur((function(e,t){return La(e)?$n(e,t):[]})),Zi=Ur((function(e){return ro(lt(e,La))})),Ji=Ur((function(e){var t=Bi(e);return La(t)&&(t=void 0),ro(lt(e,La),Jo(t,2))})),Xi=Ur((function(e){var t=Bi(e);return t="function"==typeof t?t:void 0,ro(lt(e,La),void 0,t)})),$i=Ur(Wi);var ea=Ur((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Yi(e,n)}));function ta(e){var t=An(e);return t.__chain__=!0,t}function na(e,t){return t(e)}var ra=qo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Yn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof xn&&ci(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:na,args:[o],thisArg:void 0}),new In(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var oa=yo((function(e,t,n){we.call(e,n)?++e[n]:Wn(e,n,1)}));var ia=So(xi),aa=So(Ni);function ca(e,t){return(Na(e)?ct:er)(e,Jo(t,3))}function sa(e,t){return(Na(e)?st:tr)(e,Jo(t,3))}var ua=yo((function(e,t,n){we.call(e,n)?e[n].push(t):Wn(e,n,[t])}));var la=Ur((function(e,t,n){var o=-1,i="function"==typeof t,a=Pa(e)?r(e.length):[];return er(e,(function(e){a[++o]=i?it(t,e,n):gr(e,t,n)})),a})),da=yo((function(e,t,n){Wn(e,n,t)}));function fa(e,t){return(Na(e)?pt:Sr)(e,Jo(t,3))}var pa=yo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ha=Ur((function(e,t){if(null==e)return[];var n=t.length;return n>1&&si(e,t[0],t[1])?t=[]:n>2&&si(t[0],t[1],t[2])&&(t=[t[0]]),xr(e,ir(t,1),[])})),ba=Zt||function(){return We.Date.now()};function va(e,t,n){return t=n?void 0:t,zo(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ma(e,t){var n;if("function"!=typeof t)throw new ge(i);return e=rc(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ga=Ur((function(e,t,n){var r=1;if(n.length){var o=Gt(n,Zo(ga));r|=32}return zo(e,r,t,n,o)})),Oa=Ur((function(e,t,n){var r=3;if(n.length){var o=Gt(n,Zo(Oa));r|=32}return zo(t,r,e,n,o)}));function ya(e,t,n){var r,o,a,c,s,u,l=0,d=!1,f=!1,p=!0;if("function"!=typeof e)throw new ge(i);function h(t){var n=r,i=o;return r=o=void 0,l=t,c=e.apply(i,n)}function b(e){return l=e,s=yi(m,t),d?h(e):c}function v(e){var n=e-u;return void 0===u||n>=t||n<0||f&&e-l>=a}function m(){var e=ba();if(v(e))return g(e);s=yi(m,function(e){var n=t-(e-u);return f?cn(n,a-(e-l)):n}(e))}function g(e){return s=void 0,p&&r?h(e):(r=o=void 0,c)}function O(){var e=ba(),n=v(e);if(r=arguments,o=this,u=e,n){if(void 0===s)return b(u);if(f)return lo(s),s=yi(m,t),h(u)}return void 0===s&&(s=yi(m,t)),c}return t=ic(t)||0,Va(n)&&(d=!!n.leading,a=(f="maxWait"in n)?an(ic(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),O.cancel=function(){void 0!==s&&lo(s),l=0,r=u=o=s=void 0},O.flush=function(){return void 0===s?c:g(ba())},O}var ja=Ur((function(e,t){return Xn(e,1,t)})),Ea=Ur((function(e,t,n){return Xn(e,ic(t)||0,n)}));function Ca(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ge(i);var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Ca.Cache||Pn),n}function wa(e){if("function"!=typeof e)throw new ge(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ca.Cache=Pn;var Ta=so((function(e,t){var n=(t=1==t.length&&Na(t[0])?pt(t[0],Rt(Jo())):pt(ir(t,1),Rt(Jo()))).length;return Ur((function(r){for(var o=-1,i=cn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return it(e,this,r)}))})),_a=Ur((function(e,t){return zo(e,32,void 0,t,Gt(t,Zo(_a)))})),Sa=Ur((function(e,t){return zo(e,64,void 0,t,Gt(t,Zo(Sa)))})),Aa=qo((function(e,t){return zo(e,256,void 0,void 0,void 0,t)}));function ka(e,t){return e===t||e!=e&&t!=t}var Ra=Po(hr),Ia=Po((function(e,t){return e>=t})),xa=Or(function(){return arguments}())?Or:function(e){return Ha(e)&&we.call(e,"callee")&&!Ye.call(e,"callee")},Na=r.isArray,Da=$e?Rt($e):function(e){return Ha(e)&&pr(e)==C};function Pa(e){return null!=e&&Ga(e.length)&&!za(e)}function La(e){return Ha(e)&&Pa(e)}var Ma=tn||is,Ua=et?Rt(et):function(e){return Ha(e)&&pr(e)==d};function Ba(e){if(!Ha(e))return!1;var t=pr(e);return t==f||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Wa(e)}function za(e){if(!Va(e))return!1;var t=pr(e);return t==p||t==h||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Fa(e){return"number"==typeof e&&e==rc(e)}function Ga(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Va(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ha(e){return null!=e&&"object"==typeof e}var qa=tt?Rt(tt):function(e){return Ha(e)&&ri(e)==b};function Ka(e){return"number"==typeof e||Ha(e)&&pr(e)==v}function Wa(e){if(!Ha(e)||pr(e)!=m)return!1;var t=qe(e);if(null===t)return!0;var n=we.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ce.call(n)==Ae}var Ya=nt?Rt(nt):function(e){return Ha(e)&&pr(e)==g};var Qa=rt?Rt(rt):function(e){return Ha(e)&&ri(e)==O};function Za(e){return"string"==typeof e||!Na(e)&&Ha(e)&&pr(e)==y}function Ja(e){return"symbol"==typeof e||Ha(e)&&pr(e)==j}var Xa=ot?Rt(ot):function(e){return Ha(e)&&Ga(e.length)&&!!ze[pr(e)]};var $a=Po(_r),ec=Po((function(e,t){return e<=t}));function tc(e){if(!e)return[];if(Pa(e))return Za(e)?Kt(e):go(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=ri(e);return(t==b?zt:t==O?Vt:kc)(e)}function nc(e){return e?(e=ic(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function rc(e){var t=nc(e),n=t%1;return t==t?n?t-n:t:0}function oc(e){return e?Qn(rc(e),0,4294967295):0}function ic(e){if("number"==typeof e)return e;if(Ja(e))return NaN;if(Va(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Va(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Y,"");var n=ie.test(e);return n||ce.test(e)?He(e.slice(2),n?2:8):oe.test(e)?NaN:+e}function ac(e){return Oo(e,jc(e))}function cc(e){return null==e?"":Jr(e)}var sc=jo((function(e,t){if(fi(t)||Pa(t))Oo(t,yc(t),e);else for(var n in t)we.call(t,n)&&Vn(e,n,t[n])})),uc=jo((function(e,t){Oo(t,jc(t),e)})),lc=jo((function(e,t,n,r){Oo(t,jc(t),e,r)})),dc=jo((function(e,t,n,r){Oo(t,yc(t),e,r)})),fc=qo(Yn);var pc=Ur((function(e,t){e=be(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&si(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=jc(i),c=-1,s=a.length;++c<s;){var u=a[c],l=e[u];(void 0===l||ka(l,je[u])&&!we.call(e,u))&&(e[u]=i[u])}return e})),hc=Ur((function(e){return e.push(void 0,Go),it(Cc,void 0,e)}));function bc(e,t,n){var r=null==e?void 0:dr(e,t);return void 0===r?n:r}function vc(e,t){return null!=e&&oi(e,t,vr)}var mc=Ro((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Se.call(t)),e[t]=n}),Vc(Kc)),gc=Ro((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Se.call(t)),we.call(e,t)?e[t].push(n):e[t]=[n]}),Jo),Oc=Ur(gr);function yc(e){return Pa(e)?Un(e):wr(e)}function jc(e){return Pa(e)?Un(e,!0):Tr(e)}var Ec=jo((function(e,t,n){Rr(e,t,n)})),Cc=jo((function(e,t,n,r){Rr(e,t,n,r)})),wc=qo((function(e,t){var n={};if(null==e)return n;var r=!1;t=pt(t,(function(t){return t=co(t,e),r||(r=t.length>1),t})),Oo(e,Wo(e),n),r&&(n=Zn(n,7,Vo));for(var o=t.length;o--;)$r(n,t[o]);return n}));var Tc=qo((function(e,t){return null==e?{}:function(e,t){return Nr(e,t,(function(t,n){return vc(e,n)}))}(e,t)}));function _c(e,t){if(null==e)return{};var n=pt(Wo(e),(function(e){return[e]}));return t=Jo(t),Nr(e,n,(function(e,n){return t(e,n[0])}))}var Sc=Bo(yc),Ac=Bo(jc);function kc(e){return null==e?[]:It(e,yc(e))}var Rc=To((function(e,t,n){return t=t.toLowerCase(),e+(n?Ic(t):t)}));function Ic(e){return Bc(cc(e).toLowerCase())}function xc(e){return(e=cc(e))&&e.replace(ue,Lt).replace(Ne,"")}var Nc=To((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Dc=To((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Pc=wo("toLowerCase");var Lc=To((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Mc=To((function(e,t,n){return e+(n?" ":"")+Bc(t)}));var Uc=To((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Bc=wo("toUpperCase");function zc(e,t,n){return e=cc(e),void 0===(t=n?void 0:t)?function(e){return Me.test(e)}(e)?function(e){return e.match(Pe)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var Fc=Ur((function(e,t){try{return it(e,void 0,t)}catch(e){return Ba(e)?e:new fe(e)}})),Gc=qo((function(e,t){return ct(t,(function(t){t=_i(t),Wn(e,t,ga(e[t],e))})),e}));function Vc(e){return function(){return e}}var Hc=Ao(),qc=Ao(!0);function Kc(e){return e}function Wc(e){return Cr("function"==typeof e?e:Zn(e,1))}var Yc=Ur((function(e,t){return function(n){return gr(n,e,t)}})),Qc=Ur((function(e,t){return function(n){return gr(e,n,t)}}));function Zc(e,t,n){var r=yc(t),o=lr(t,r);null!=n||Va(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=lr(t,yc(t)));var i=!(Va(n)&&"chain"in n&&!n.chain),a=za(e);return ct(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=go(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,ht([this.value()],arguments))})})),e}function Jc(){}var Xc=xo(pt),$c=xo(ut),es=xo(mt);function ts(e){return ui(e)?Tt(_i(e)):function(e){return function(t){return dr(t,e)}}(e)}var ns=Do(),rs=Do(!0);function os(){return[]}function is(){return!1}var as=Io((function(e,t){return e+t}),0),cs=Mo("ceil"),ss=Io((function(e,t){return e/t}),1),us=Mo("floor");var ls,ds=Io((function(e,t){return e*t}),1),fs=Mo("round"),ps=Io((function(e,t){return e-t}),0);return An.after=function(e,t){if("function"!=typeof t)throw new ge(i);return e=rc(e),function(){if(--e<1)return t.apply(this,arguments)}},An.ary=va,An.assign=sc,An.assignIn=uc,An.assignInWith=lc,An.assignWith=dc,An.at=fc,An.before=ma,An.bind=ga,An.bindAll=Gc,An.bindKey=Oa,An.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Na(e)?e:[e]},An.chain=ta,An.chunk=function(e,t,n){t=(n?si(e,t,n):void 0===t)?1:an(rc(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,c=r(Xt(o/t));i<o;)c[a++]=qr(e,i,i+=t);return c},An.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},An.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return ht(Na(n)?go(n):[n],ir(t,1))},An.cond=function(e){var t=null==e?0:e.length,n=Jo();return e=t?pt(e,(function(e){if("function"!=typeof e[1])throw new ge(i);return[n(e[0]),e[1]]})):[],Ur((function(n){for(var r=-1;++r<t;){var o=e[r];if(it(o[0],this,n))return it(o[1],this,n)}}))},An.conforms=function(e){return function(e){var t=yc(e);return function(n){return Jn(n,e,t)}}(Zn(e,1))},An.constant=Vc,An.countBy=oa,An.create=function(e,t){var n=kn(e);return null==t?n:Kn(n,t)},An.curry=function e(t,n,r){var o=zo(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return o.placeholder=e.placeholder,o},An.curryRight=function e(t,n,r){var o=zo(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return o.placeholder=e.placeholder,o},An.debounce=ya,An.defaults=pc,An.defaultsDeep=hc,An.defer=ja,An.delay=Ea,An.difference=ki,An.differenceBy=Ri,An.differenceWith=Ii,An.drop=function(e,t,n){var r=null==e?0:e.length;return r?qr(e,(t=n||void 0===t?1:rc(t))<0?0:t,r):[]},An.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?qr(e,0,(t=r-(t=n||void 0===t?1:rc(t)))<0?0:t):[]},An.dropRightWhile=function(e,t){return e&&e.length?to(e,Jo(t,3),!0,!0):[]},An.dropWhile=function(e,t){return e&&e.length?to(e,Jo(t,3),!0):[]},An.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&si(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=rc(n))<0&&(n=-n>o?0:o+n),(r=void 0===r||r>o?o:rc(r))<0&&(r+=o),r=n>r?0:oc(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},An.filter=function(e,t){return(Na(e)?lt:or)(e,Jo(t,3))},An.flatMap=function(e,t){return ir(fa(e,t),1)},An.flatMapDeep=function(e,t){return ir(fa(e,t),1/0)},An.flatMapDepth=function(e,t,n){return n=void 0===n?1:rc(n),ir(fa(e,t),n)},An.flatten=Di,An.flattenDeep=function(e){return(null==e?0:e.length)?ir(e,1/0):[]},An.flattenDepth=function(e,t){return(null==e?0:e.length)?ir(e,t=void 0===t?1:rc(t)):[]},An.flip=function(e){return zo(e,512)},An.flow=Hc,An.flowRight=qc,An.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},An.functions=function(e){return null==e?[]:lr(e,yc(e))},An.functionsIn=function(e){return null==e?[]:lr(e,jc(e))},An.groupBy=ua,An.initial=function(e){return(null==e?0:e.length)?qr(e,0,-1):[]},An.intersection=Li,An.intersectionBy=Mi,An.intersectionWith=Ui,An.invert=mc,An.invertBy=gc,An.invokeMap=la,An.iteratee=Wc,An.keyBy=da,An.keys=yc,An.keysIn=jc,An.map=fa,An.mapKeys=function(e,t){var n={};return t=Jo(t,3),sr(e,(function(e,r,o){Wn(n,t(e,r,o),e)})),n},An.mapValues=function(e,t){var n={};return t=Jo(t,3),sr(e,(function(e,r,o){Wn(n,r,t(e,r,o))})),n},An.matches=function(e){return Ar(Zn(e,1))},An.matchesProperty=function(e,t){return kr(e,Zn(t,1))},An.memoize=Ca,An.merge=Ec,An.mergeWith=Cc,An.method=Yc,An.methodOf=Qc,An.mixin=Zc,An.negate=wa,An.nthArg=function(e){return e=rc(e),Ur((function(t){return Ir(t,e)}))},An.omit=wc,An.omitBy=function(e,t){return _c(e,wa(Jo(t)))},An.once=function(e){return ma(2,e)},An.orderBy=function(e,t,n,r){return null==e?[]:(Na(t)||(t=null==t?[]:[t]),Na(n=r?void 0:n)||(n=null==n?[]:[n]),xr(e,t,n))},An.over=Xc,An.overArgs=Ta,An.overEvery=$c,An.overSome=es,An.partial=_a,An.partialRight=Sa,An.partition=pa,An.pick=Tc,An.pickBy=_c,An.property=ts,An.propertyOf=function(e){return function(t){return null==e?void 0:dr(e,t)}},An.pull=zi,An.pullAll=Fi,An.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Dr(e,t,Jo(n,2)):e},An.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Dr(e,t,void 0,n):e},An.pullAt=Gi,An.range=ns,An.rangeRight=rs,An.rearg=Aa,An.reject=function(e,t){return(Na(e)?lt:or)(e,wa(Jo(t,3)))},An.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Jo(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Pr(e,o),n},An.rest=function(e,t){if("function"!=typeof e)throw new ge(i);return Ur(e,t=void 0===t?t:rc(t))},An.reverse=Vi,An.sampleSize=function(e,t,n){return t=(n?si(e,t,n):void 0===t)?1:rc(t),(Na(e)?zn:zr)(e,t)},An.set=function(e,t,n){return null==e?e:Fr(e,t,n)},An.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Fr(e,t,n,r)},An.shuffle=function(e){return(Na(e)?Fn:Hr)(e)},An.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&si(e,t,n)?(t=0,n=r):(t=null==t?0:rc(t),n=void 0===n?r:rc(n)),qr(e,t,n)):[]},An.sortBy=ha,An.sortedUniq=function(e){return e&&e.length?Qr(e):[]},An.sortedUniqBy=function(e,t){return e&&e.length?Qr(e,Jo(t,2)):[]},An.split=function(e,t,n){return n&&"number"!=typeof n&&si(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=cc(e))&&("string"==typeof t||null!=t&&!Ya(t))&&!(t=Jr(t))&&Bt(e)?uo(Kt(e),0,n):e.split(t,n):[]},An.spread=function(e,t){if("function"!=typeof e)throw new ge(i);return t=null==t?0:an(rc(t),0),Ur((function(n){var r=n[t],o=uo(n,0,t);return r&&ht(o,r),it(e,this,o)}))},An.tail=function(e){var t=null==e?0:e.length;return t?qr(e,1,t):[]},An.take=function(e,t,n){return e&&e.length?qr(e,0,(t=n||void 0===t?1:rc(t))<0?0:t):[]},An.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?qr(e,(t=r-(t=n||void 0===t?1:rc(t)))<0?0:t,r):[]},An.takeRightWhile=function(e,t){return e&&e.length?to(e,Jo(t,3),!1,!0):[]},An.takeWhile=function(e,t){return e&&e.length?to(e,Jo(t,3)):[]},An.tap=function(e,t){return t(e),e},An.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ge(i);return Va(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ya(e,t,{leading:r,maxWait:t,trailing:o})},An.thru=na,An.toArray=tc,An.toPairs=Sc,An.toPairsIn=Ac,An.toPath=function(e){return Na(e)?pt(e,_i):Ja(e)?[e]:go(Ti(cc(e)))},An.toPlainObject=ac,An.transform=function(e,t,n){var r=Na(e),o=r||Ma(e)||Xa(e);if(t=Jo(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Va(e)&&za(i)?kn(qe(e)):{}}return(o?ct:sr)(e,(function(e,r,o){return t(n,e,r,o)})),n},An.unary=function(e){return va(e,1)},An.union=Hi,An.unionBy=qi,An.unionWith=Ki,An.uniq=function(e){return e&&e.length?Xr(e):[]},An.uniqBy=function(e,t){return e&&e.length?Xr(e,Jo(t,2)):[]},An.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Xr(e,void 0,t):[]},An.unset=function(e,t){return null==e||$r(e,t)},An.unzip=Wi,An.unzipWith=Yi,An.update=function(e,t,n){return null==e?e:eo(e,t,ao(n))},An.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:eo(e,t,ao(n),r)},An.values=kc,An.valuesIn=function(e){return null==e?[]:It(e,jc(e))},An.without=Qi,An.words=zc,An.wrap=function(e,t){return _a(ao(t),e)},An.xor=Zi,An.xorBy=Ji,An.xorWith=Xi,An.zip=$i,An.zipObject=function(e,t){return oo(e||[],t||[],Vn)},An.zipObjectDeep=function(e,t){return oo(e||[],t||[],Fr)},An.zipWith=ea,An.entries=Sc,An.entriesIn=Ac,An.extend=uc,An.extendWith=lc,Zc(An,An),An.add=as,An.attempt=Fc,An.camelCase=Rc,An.capitalize=Ic,An.ceil=cs,An.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=ic(n))==n?n:0),void 0!==t&&(t=(t=ic(t))==t?t:0),Qn(ic(e),t,n)},An.clone=function(e){return Zn(e,4)},An.cloneDeep=function(e){return Zn(e,5)},An.cloneDeepWith=function(e,t){return Zn(e,5,t="function"==typeof t?t:void 0)},An.cloneWith=function(e,t){return Zn(e,4,t="function"==typeof t?t:void 0)},An.conformsTo=function(e,t){return null==t||Jn(e,t,yc(t))},An.deburr=xc,An.defaultTo=function(e,t){return null==e||e!=e?t:e},An.divide=ss,An.endsWith=function(e,t,n){e=cc(e),t=Jr(t);var r=e.length,o=n=void 0===n?r:Qn(rc(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},An.eq=ka,An.escape=function(e){return(e=cc(e))&&B.test(e)?e.replace(M,Mt):e},An.escapeRegExp=function(e){return(e=cc(e))&&W.test(e)?e.replace(K,"\\$&"):e},An.every=function(e,t,n){var r=Na(e)?ut:nr;return n&&si(e,t,n)&&(t=void 0),r(e,Jo(t,3))},An.find=ia,An.findIndex=xi,An.findKey=function(e,t){return Ot(e,Jo(t,3),sr)},An.findLast=aa,An.findLastIndex=Ni,An.findLastKey=function(e,t){return Ot(e,Jo(t,3),ur)},An.floor=us,An.forEach=ca,An.forEachRight=sa,An.forIn=function(e,t){return null==e?e:ar(e,Jo(t,3),jc)},An.forInRight=function(e,t){return null==e?e:cr(e,Jo(t,3),jc)},An.forOwn=function(e,t){return e&&sr(e,Jo(t,3))},An.forOwnRight=function(e,t){return e&&ur(e,Jo(t,3))},An.get=bc,An.gt=Ra,An.gte=Ia,An.has=function(e,t){return null!=e&&oi(e,t,br)},An.hasIn=vc,An.head=Pi,An.identity=Kc,An.includes=function(e,t,n,r){e=Pa(e)?e:kc(e),n=n&&!r?rc(n):0;var o=e.length;return n<0&&(n=an(o+n,0)),Za(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&jt(e,t,n)>-1},An.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:rc(n);return o<0&&(o=an(r+o,0)),jt(e,t,o)},An.inRange=function(e,t,n){return t=nc(t),void 0===n?(n=t,t=0):n=nc(n),function(e,t,n){return e>=cn(t,n)&&e<an(t,n)}(e=ic(e),t,n)},An.invoke=Oc,An.isArguments=xa,An.isArray=Na,An.isArrayBuffer=Da,An.isArrayLike=Pa,An.isArrayLikeObject=La,An.isBoolean=function(e){return!0===e||!1===e||Ha(e)&&pr(e)==l},An.isBuffer=Ma,An.isDate=Ua,An.isElement=function(e){return Ha(e)&&1===e.nodeType&&!Wa(e)},An.isEmpty=function(e){if(null==e)return!0;if(Pa(e)&&(Na(e)||"string"==typeof e||"function"==typeof e.splice||Ma(e)||Xa(e)||xa(e)))return!e.length;var t=ri(e);if(t==b||t==O)return!e.size;if(fi(e))return!wr(e).length;for(var n in e)if(we.call(e,n))return!1;return!0},An.isEqual=function(e,t){return yr(e,t)},An.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?yr(e,t,void 0,n):!!r},An.isError=Ba,An.isFinite=function(e){return"number"==typeof e&&nn(e)},An.isFunction=za,An.isInteger=Fa,An.isLength=Ga,An.isMap=qa,An.isMatch=function(e,t){return e===t||jr(e,t,$o(t))},An.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,jr(e,t,$o(t),n)},An.isNaN=function(e){return Ka(e)&&e!=+e},An.isNative=function(e){if(di(e))throw new fe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Er(e)},An.isNil=function(e){return null==e},An.isNull=function(e){return null===e},An.isNumber=Ka,An.isObject=Va,An.isObjectLike=Ha,An.isPlainObject=Wa,An.isRegExp=Ya,An.isSafeInteger=function(e){return Fa(e)&&e>=-9007199254740991&&e<=9007199254740991},An.isSet=Qa,An.isString=Za,An.isSymbol=Ja,An.isTypedArray=Xa,An.isUndefined=function(e){return void 0===e},An.isWeakMap=function(e){return Ha(e)&&ri(e)==E},An.isWeakSet=function(e){return Ha(e)&&"[object WeakSet]"==pr(e)},An.join=function(e,t){return null==e?"":rn.call(e,t)},An.kebabCase=Nc,An.last=Bi,An.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=rc(n))<0?an(r+o,0):cn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):yt(e,Ct,o,!0)},An.lowerCase=Dc,An.lowerFirst=Pc,An.lt=$a,An.lte=ec,An.max=function(e){return e&&e.length?rr(e,Kc,hr):void 0},An.maxBy=function(e,t){return e&&e.length?rr(e,Jo(t,2),hr):void 0},An.mean=function(e){return wt(e,Kc)},An.meanBy=function(e,t){return wt(e,Jo(t,2))},An.min=function(e){return e&&e.length?rr(e,Kc,_r):void 0},An.minBy=function(e,t){return e&&e.length?rr(e,Jo(t,2),_r):void 0},An.stubArray=os,An.stubFalse=is,An.stubObject=function(){return{}},An.stubString=function(){return""},An.stubTrue=function(){return!0},An.multiply=ds,An.nth=function(e,t){return e&&e.length?Ir(e,rc(t)):void 0},An.noConflict=function(){return We._===this&&(We._=ke),this},An.noop=Jc,An.now=ba,An.pad=function(e,t,n){e=cc(e);var r=(t=rc(t))?qt(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return No($t(o),n)+e+No(Xt(o),n)},An.padEnd=function(e,t,n){e=cc(e);var r=(t=rc(t))?qt(e):0;return t&&r<t?e+No(t-r,n):e},An.padStart=function(e,t,n){e=cc(e);var r=(t=rc(t))?qt(e):0;return t&&r<t?No(t-r,n)+e:e},An.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),un(cc(e).replace(Q,""),t||0)},An.random=function(e,t,n){if(n&&"boolean"!=typeof n&&si(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=nc(e),void 0===t?(t=e,e=0):t=nc(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=ln();return cn(e+o*(t-e+Ve("1e-"+((o+"").length-1))),t)}return Lr(e,t)},An.reduce=function(e,t,n){var r=Na(e)?bt:St,o=arguments.length<3;return r(e,Jo(t,4),n,o,er)},An.reduceRight=function(e,t,n){var r=Na(e)?vt:St,o=arguments.length<3;return r(e,Jo(t,4),n,o,tr)},An.repeat=function(e,t,n){return t=(n?si(e,t,n):void 0===t)?1:rc(t),Mr(cc(e),t)},An.replace=function(){var e=arguments,t=cc(e[0]);return e.length<3?t:t.replace(e[1],e[2])},An.result=function(e,t,n){var r=-1,o=(t=co(t,e)).length;for(o||(o=1,e=void 0);++r<o;){var i=null==e?void 0:e[_i(t[r])];void 0===i&&(r=o,i=n),e=za(i)?i.call(e):i}return e},An.round=fs,An.runInContext=e,An.sample=function(e){return(Na(e)?Bn:Br)(e)},An.size=function(e){if(null==e)return 0;if(Pa(e))return Za(e)?qt(e):e.length;var t=ri(e);return t==b||t==O?e.size:wr(e).length},An.snakeCase=Lc,An.some=function(e,t,n){var r=Na(e)?mt:Kr;return n&&si(e,t,n)&&(t=void 0),r(e,Jo(t,3))},An.sortedIndex=function(e,t){return Wr(e,t)},An.sortedIndexBy=function(e,t,n){return Yr(e,t,Jo(n,2))},An.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Wr(e,t);if(r<n&&ka(e[r],t))return r}return-1},An.sortedLastIndex=function(e,t){return Wr(e,t,!0)},An.sortedLastIndexBy=function(e,t,n){return Yr(e,t,Jo(n,2),!0)},An.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Wr(e,t,!0)-1;if(ka(e[n],t))return n}return-1},An.startCase=Mc,An.startsWith=function(e,t,n){return e=cc(e),n=null==n?0:Qn(rc(n),0,e.length),t=Jr(t),e.slice(n,n+t.length)==t},An.subtract=ps,An.sum=function(e){return e&&e.length?At(e,Kc):0},An.sumBy=function(e,t){return e&&e.length?At(e,Jo(t,2)):0},An.template=function(e,t,n){var r=An.templateSettings;n&&si(e,t,n)&&(t=void 0),e=cc(e),t=lc({},t,r,Fo);var o,i,a=lc({},t.imports,r.imports,Fo),c=yc(a),s=It(a,c),u=0,l=t.interpolate||le,d="__p += '",f=ve((t.escape||le).source+"|"+l.source+"|"+(l===G?ne:le).source+"|"+(t.evaluate||le).source+"|$","g"),p="//# sourceURL="+(we.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Be+"]")+"\n";e.replace(f,(function(t,n,r,a,c,s){return r||(r=a),d+=e.slice(u,s).replace(de,Ut),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),c&&(i=!0,d+="';\n"+c+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=s+t.length,t})),d+="';\n";var h=we.call(t,"variable")&&t.variable;h||(d="with (obj) {\n"+d+"\n}\n"),d=(i?d.replace(N,""):d).replace(D,"$1").replace(P,"$1;"),d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var b=Fc((function(){return pe(c,p+"return "+d).apply(void 0,s)}));if(b.source=d,Ba(b))throw b;return b},An.times=function(e,t){if((e=rc(e))<1||e>9007199254740991)return[];var n=4294967295,r=cn(e,4294967295);e-=4294967295;for(var o=kt(r,t=Jo(t));++n<e;)t(n);return o},An.toFinite=nc,An.toInteger=rc,An.toLength=oc,An.toLower=function(e){return cc(e).toLowerCase()},An.toNumber=ic,An.toSafeInteger=function(e){return e?Qn(rc(e),-9007199254740991,9007199254740991):0===e?e:0},An.toString=cc,An.toUpper=function(e){return cc(e).toUpperCase()},An.trim=function(e,t,n){if((e=cc(e))&&(n||void 0===t))return e.replace(Y,"");if(!e||!(t=Jr(t)))return e;var r=Kt(e),o=Kt(t);return uo(r,Nt(r,o),Dt(r,o)+1).join("")},An.trimEnd=function(e,t,n){if((e=cc(e))&&(n||void 0===t))return e.replace(Z,"");if(!e||!(t=Jr(t)))return e;var r=Kt(e);return uo(r,0,Dt(r,Kt(t))+1).join("")},An.trimStart=function(e,t,n){if((e=cc(e))&&(n||void 0===t))return e.replace(Q,"");if(!e||!(t=Jr(t)))return e;var r=Kt(e);return uo(r,Nt(r,Kt(t))).join("")},An.truncate=function(e,t){var n=30,r="...";if(Va(t)){var o="separator"in t?t.separator:o;n="length"in t?rc(t.length):n,r="omission"in t?Jr(t.omission):r}var i=(e=cc(e)).length;if(Bt(e)){var a=Kt(e);i=a.length}if(n>=i)return e;var c=n-qt(r);if(c<1)return r;var s=a?uo(a,0,c).join(""):e.slice(0,c);if(void 0===o)return s+r;if(a&&(c+=s.length-c),Ya(o)){if(e.slice(c).search(o)){var u,l=s;for(o.global||(o=ve(o.source,cc(re.exec(o))+"g")),o.lastIndex=0;u=o.exec(l);)var d=u.index;s=s.slice(0,void 0===d?c:d)}}else if(e.indexOf(Jr(o),c)!=c){var f=s.lastIndexOf(o);f>-1&&(s=s.slice(0,f))}return s+r},An.unescape=function(e){return(e=cc(e))&&U.test(e)?e.replace(L,Wt):e},An.uniqueId=function(e){var t=++Te;return cc(e)+t},An.upperCase=Uc,An.upperFirst=Bc,An.each=ca,An.eachRight=sa,An.first=Pi,Zc(An,(ls={},sr(An,(function(e,t){we.call(An.prototype,t)||(ls[t]=e)})),ls),{chain:!1}),An.VERSION="4.17.20",ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){An[e].placeholder=An})),ct(["drop","take"],(function(e,t){xn.prototype[e]=function(n){n=void 0===n?1:an(rc(n),0);var r=this.__filtered__&&!t?new xn(this):this.clone();return r.__filtered__?r.__takeCount__=cn(n,r.__takeCount__):r.__views__.push({size:cn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},xn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;xn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Jo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");xn.prototype[e]=function(){return this[n](1).value()[0]}})),ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");xn.prototype[e]=function(){return this.__filtered__?new xn(this):this[n](1)}})),xn.prototype.compact=function(){return this.filter(Kc)},xn.prototype.find=function(e){return this.filter(e).head()},xn.prototype.findLast=function(e){return this.reverse().find(e)},xn.prototype.invokeMap=Ur((function(e,t){return"function"==typeof e?new xn(this):this.map((function(n){return gr(n,e,t)}))})),xn.prototype.reject=function(e){return this.filter(wa(Jo(e)))},xn.prototype.slice=function(e,t){e=rc(e);var n=this;return n.__filtered__&&(e>0||t<0)?new xn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=rc(t))<0?n.dropRight(-t):n.take(t-e)),n)},xn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},xn.prototype.toArray=function(){return this.take(4294967295)},sr(xn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=An[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(An.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,c=t instanceof xn,s=a[0],u=c||Na(t),l=function(e){var t=o.apply(An,ht([e],a));return r&&d?t[0]:t};u&&n&&"function"==typeof s&&1!=s.length&&(c=u=!1);var d=this.__chain__,f=!!this.__actions__.length,p=i&&!d,h=c&&!f;if(!i&&u){t=h?t:new xn(this);var b=e.apply(t,a);return b.__actions__.push({func:na,args:[l],thisArg:void 0}),new In(b,d)}return p&&h?e.apply(this,a):(b=this.thru(l),p?r?b.value()[0]:b.value():b)})})),ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Oe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);An.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Na(o)?o:[],e)}return this[n]((function(n){return t.apply(Na(n)?n:[],e)}))}})),sr(xn.prototype,(function(e,t){var n=An[t];if(n){var r=n.name+"";we.call(On,r)||(On[r]=[]),On[r].push({name:t,func:n})}})),On[ko(void 0,2).name]=[{name:"wrapper",func:void 0}],xn.prototype.clone=function(){var e=new xn(this.__wrapped__);return e.__actions__=go(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=go(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=go(this.__views__),e},xn.prototype.reverse=function(){if(this.__filtered__){var e=new xn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},xn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Na(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=cn(t,e+a);break;case"takeRight":e=an(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,c=i.end,s=c-a,u=r?c:a-1,l=this.__iteratees__,d=l.length,f=0,p=cn(s,this.__takeCount__);if(!n||!r&&o==s&&p==s)return no(e,this.__actions__);var h=[];e:for(;s--&&f<p;){for(var b=-1,v=e[u+=t];++b<d;){var m=l[b],g=m.iteratee,O=m.type,y=g(v);if(2==O)v=y;else if(!y){if(1==O)continue e;break e}}h[f++]=v}return h},An.prototype.at=ra,An.prototype.chain=function(){return ta(this)},An.prototype.commit=function(){return new In(this.value(),this.__chain__)},An.prototype.next=function(){void 0===this.__values__&&(this.__values__=tc(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},An.prototype.plant=function(e){for(var t,n=this;n instanceof Rn;){var r=Ai(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},An.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof xn){var t=e;return this.__actions__.length&&(t=new xn(this)),(t=t.reverse()).__actions__.push({func:na,args:[Vi],thisArg:void 0}),new In(t,this.__chain__)}return this.thru(Vi)},An.prototype.toJSON=An.prototype.valueOf=An.prototype.value=function(){return no(this.__wrapped__,this.__actions__)},An.prototype.first=An.prototype.head,Xe&&(An.prototype[Xe]=function(){return this}),An}();We._=Yt,void 0===(o=function(){return Yt}.call(t,n,t,r))||(r.exports=o)}).call(this)}).call(this,n(109),n(328)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=n(303),a=/[A-Z]|^ms/g,c=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},l=Object(i.a)((function(e){return s(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(c,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===o[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)p={name:o.name,styles:o.styles,next:p},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=f(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":u(a)&&(r+=l(i)+":"+d(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var c=f(e,t,a,!1);switch(i){case"animation":case"animationName":r+=l(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}else for(var s=0;s<a.length;s++)u(a[s])&&(r+=l(i)+":"+d(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=p,a=n(e);return p=i,f(e,t,a,r)}break;case"string":}if(null==t)return n;var c=t[n];return void 0===c||r?n:c}var p,h=/label:\s*([^\s;\n{]+)\s*;/g;var b=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";p=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,i+=f(n,t,a,!1)):i+=a[0];for(var c=1;c<e.length;c++)i+=f(n,t,e[c],46===i.charCodeAt(i.length-1)),o&&(i+=a[c]);h.lastIndex=0;for(var s,u="";null!==(s=h.exec(i));)u+="-"+s[1];return{name:r(i)+u,styles:i,next:p}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}}},function(e,t,n){var r=n(873),o=n(182),i=o;i.v1=r,i.v4=o,e.exports=i},function(e,t,n){var r=n(337),o=n(264),i=n(338),a=n(331),c=o((function(e){return i(r(e,1,a,!0))}));e.exports=c},function(e,t,n){"use strict";var r=n(85),o={y:function(e,t){var n=e.getUTCFullYear(),o=n>0?n:1-n;return Object(r.a)("yy"===t?o%100:o,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Object(r.a)(n+1,2)},d:function(e,t){return Object(r.a)(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.toUpperCase();case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return Object(r.a)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Object(r.a)(e.getUTCHours(),t.length)},m:function(e,t){return Object(r.a)(e.getUTCMinutes(),t.length)},s:function(e,t){return Object(r.a)(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,o=e.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,n-3));return Object(r.a)(i,t.length)}};t.a=o},function(e,t,n){"use strict";e.exports=n(913)},function(e,t,n){"use strict";var r=n(942),o=n(944),i=n(945),a=n(946);function c(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var i=n.slice(e.length);return!!t&&(i=r?r(i):i,o.contains(i,t))}function s(e){return"Windows"===r.platformName?e.replace(/^\s*NT/,""):e}var u={isBrowser:function(e){return c(r.browserName,r.browserFullVersion,e)},isBrowserArchitecture:function(e){return c(r.browserArchitecture,null,e)},isDevice:function(e){return c(r.deviceName,null,e)},isEngine:function(e){return c(r.engineName,r.engineVersion,e)},isPlatform:function(e){return c(r.platformName,r.platformFullVersion,e,s)},isPlatformArchitecture:function(e){return c(r.platformArchitecture,null,e)}};e.exports=i(u,a)},function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return b}));var r=n(4),o=n(250),i=n(21),a=n(35),c=n(28),s=n(363),u=n(19),l=Object(u.a)("upload",["IMAGE","VIDEO"]);function d(e,t){var n=new FormData;return"string"==typeof e?n.append("url",e):n.append("picture",e),t&&n.append("source",t),{API:{types:l.IMAGE,endpoint:"/uploaded_images",method:"POST",body:n,headers:{Accept:"application/json"},fetchOptions:{credentials:"include"}}}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2?arguments[2]:void 0;return Object.assign({NOTIFICATION:"default"!==t&&{failure:"上传失败"},uploadId:t},d(e,n))}var p=Object(s.b)(o.a,!0),h=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2?arguments[2]:void 0;return function(o){return"string"!=typeof t?(null==t?void 0:t.size)>1024*c.G*1024?o(Object(a.g)({text:"请上传不超过 ".concat(c.G,"M 的图片"),theme:"red"})):p(t,r&&{source:r}).then((function(e){return o({type:l.IMAGE.success,uploadId:n,payload:Object(i.camelizeKeys)(e)})}),(function(i){if(e.raven){var a=new Error(i.message);a.name="UploadError",e.raven.captureException(a),e.raven.captureException(i)}return Object(s.b)((function(){return o(f.apply(void 0,arguments))}))(t,n,r)})):Object(s.b)((function(){return o(f.apply(void 0,arguments))}))(t,n,r)}};function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case l.IMAGE.request:case l.IMAGE.failure:return Object.assign({},e,Object(r.a)({},t.uploadId,null));case l.IMAGE.success:return Object.assign({},e,Object(r.a)({},t.uploadId,{url:t.payload.src,rawWidth:t.payload.dataRawwidth,rawHeight:t.payload.dataRawheight,id:t.payload.hash}));case l.VIDEO.request:case l.VIDEO.failure:return Object.assign({},e,{video:null});case l.VIDEO.success:return Object.assign({},e,{video:t.payload});default:return e}}}).call(this,n(109))},function(e,t,n){"use strict";var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(2),h=n.n(p),b=n(1),v=n.n(b),m=n(6),g=n.n(m),O=n(510),y=n(56),j=n(68),E=n.n(j),C=n(146),w=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var _={top:10,left:20},S={top:0,left:0};var A=function(e){s()(n,e);var t=T(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).scrollerRef=v.a.createRef(),e.state={transEnded:!1,rect:null,translate:null,scale:null},e.getBoundingClientRect=function(){var t=e.props,n=t.img,r=t.data,o=n.getBoundingClientRect(),i=o.left,a=o.top,c=o.width,s=o.height,u=r.width,l=r.height,d={left:i,top:a,width:c,height:s},f=1;return u>l?(d.height=s,f=s/l,d.width=u*f,d.left=i+(c-d.width)/2,d.top=a+(s-d.height)/2):u<l&&(d.width=c,f=c/u,d.height=l*f,d.left=i+(c-d.width)/2,d.top=a+(s-d.height)/2),d},e.handleClick=function(t){t.stopPropagation(),e.setState({translate:null,scale:null})},e.handleTransitionEnd=function(){var t=e.state,n=t.translate,r=t.scale,o=e.props.onClose;n&&r?(e.setState({transEnded:!0}),e.scrollerRef.current.style.overflow="auto"):o()},e}return a()(n,[{key:"componentWillMount",value:function(){var e=this.props,t=e.img,n=e.isOriginalUrl;this.originalSrc!==this.currentSrc&&((new Image).src=this.originalSrc);this.setState({rect:!1===n?this.getBoundingClientRect():t.getBoundingClientRect()})}},{key:"componentDidMount",value:function(){var e=this;Object(O.disableBodyScroll)(this.scrollerRef.current);var t=this.props.img;setTimeout((function(){return e.setState(Object.assign({},e.computeTransition(e.state.rect,{width:t.dataset.rawwidth||t.naturalWidth})))}))}},{key:"componentWillUnmount",value:function(){Object(O.enableBodyScroll)(this.scrollerRef.current)}},{key:"computeTransition",value:function(e,t){var n,r=this.props,o=r.transitionType,i=r.data,a=E()(navigator.userAgent).Mobile?S:_,c=a.top,s=a.left,u=window,l={left:0,top:0,width:u.innerWidth,height:u.innerHeight},d=function(e){return{x:e.left+e.width/2,y:e.top+e.height/2}}(l),f={width:l.width-2*s,height:l.height-2*c},p={},h={};return 1===o?(p.width=f.width>i.width?i.width:f.width,n=p.width/i.width,p.height=i.height*n,h={x:(f.width-p.width)/2+s,y:p.height<f.height?(f.height-p.height)/2+c:_.top}):(p.width=f.width>t.width?t.width:f.width,n=p.width/e.width,p.height=e.height*n,h={x:d.x-e.width/2,y:(p.height<f.height?d.y:_.top+p.height/2)-e.height/2}),{translate:h,scale:n}}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.img,o=n.isOriginalUrl,i=n.data,a=n.transitionType,c=n.className,s=this.state,u=s.translate,l=s.scale,d=s.rect,f=s.transEnded,p=u&&l,h=1,b="";if(1===a){var v=(E()(navigator.userAgent).Mobile?S:_).left;e=Math.min(window.innerWidth-2*v,i.width);var m=d.width/e;b=p?"translate(".concat(u.x,"px, ").concat(u.y,"px) scale(1) "):"translate(".concat(d.left,"px, ").concat(d.top,"px) scale(").concat(m,") "),h=p?1:0}else b=p?"translate(".concat(u.x,"px ,").concat(u.y,"px) scale(").concat(l,") "):"translate(".concat(d.left,"px,").concat(d.top,"px)");return Object(w.c)(C.a,null,Object(w.c)("div",{className:g()("ImageView",c,{"is-active":p}),style:{paddingBottom:_.top},onClick:this.handleClick},Object(w.c)("div",{className:"ImageView-inner",ref:this.scrollerRef},Object(w.c)("img",{ref:function(e){t.imgEl=e},src:!1===o?Object(y.imgUrl)(r.dataset.original,"r"):f&&this.originalSrc||this.currentSrc,className:g()("ImageView-img",{"ImageView-transformOrigin":1===a}),style:{width:e||d.width,transform:b,opacity:h},onTransitionEnd:this.handleTransitionEnd,alt:"preview"}))))}},{key:"originalSrc",get:function(){return this.props.img.dataset.original}},{key:"currentSrc",get:function(){var e=this.props.img;return e.currentSrc||e.src}}]),n}(b.Component);A.propTypes={img:h.a.object.isRequired,onClose:h.a.func.isRequired};t.a=A},function(e,t,n){var r=n(242),o=n(463),i=n(174),a=Function.prototype,c=Object.prototype,s=a.toString,u=c.hasOwnProperty,l=s.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==l}},function(e,t,n){var r=n(288),o=n(325),i=n(596),a=n(472);e.exports=function(e,t){if(null==e)return{};var n=r(a(e),(function(e){return[e]}));return t=o(t),i(e,n,(function(e,n){return t(e,n[0])}))}},function(e,t,n){"use strict";var r=n(17),o=n(32),i=n(0),a=n(1),c=n(14),s=n(47),u=n(11),l=n(121),d=n.n(l),f=n(88),p=n(411),h=function(e){var t=e.title,n=e.content,l=e.ok,d=e.cancel,p=e.onOk,h=e.onCancel,b=Object(o.a)(e,["title","content","ok","cancel","onOk","onCancel"]),v=Object(a.useState)(!0),m=Object(r.a)(v,2),g=m[0],O=m[1],y=function(e){return function(){O(!1),e()}},j=Object(f.b)();return Object(i.b)(s.b,Object.assign({closeButton:null,maskClosable:!1,hotKeyClosable:!1,css:[{overflow:"hidden",maxWidth:"96vw",".Modal-content":{margin:0,padding:0}},j.Mobile&&{width:320,borderRadius:12,boxShadow:""}]},b,{children:g&&Object(i.c)(c.Box,{px:"36px",py:"24px",children:[t&&Object(i.b)(c.Text,{fontSize:"18px",lineHeight:"28px",fontWeight:"bold",textAlign:"center",children:t}),n&&Object(i.b)(c.Text,{mt:t?"16px":"0",fontSize:"14px",lineHeight:"normal",color:"GBK03A",maxHeight:"calc(67vh - 100px)",css:{wordBreak:"break-all",overflowY:"auto",WebkitOverflowScrolling:"touch",marginRight:-10,paddingRight:10},children:n}),Object(i.c)(c.Flex,{mt:"16px",css:{button:{padding:0,flex:1,height:36,lineHeight:1,fontSize:15,borderRadius:4,":active":{opacity:.6}}},fontWeight:"bold",children:[d&&Object(i.b)(u.c,{css:{marginRight:4},onClick:y(h),children:d}),Object(i.b)(u.c,{preset:"primary",color:"blue",onClick:y(p),children:l})]})]})}))};t.a=function(){var e=Object(p.b)(),t=e.addInstance,n=e.removeInstance,r=function(e){return setTimeout((function(){return n(e)}),300)};return{alert:function(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.title,c=o.ok;return new Promise((function(r){n=Object(i.b)(h,{content:e,title:a,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]:{},a=o.title,c=o.ok,s=o.cancel;return new Promise((function(r,o){n=Object(i.b)(h,{content:e,title:a,ok:c||"确定",onOk:r,cancel:s||"取消",onCancel:o},d()("modal")),t(n)})).finally((function(){return r(n)}))}}}},function(e,t,n){"use strict";t.a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(13),a=n(432),c=n(206),s=n(167),u=n(35),l=n(28),d=[".webp",".jpg",".jpeg",".png",".gif"];function f(e,t){var n=Object(i.useDispatch)(),f=Object(i.useSelector)((function(e){return e.switches.couldSuperVideoUpload})),p=Object(i.useSelector)((function(e){return e.env.trafficSource})),h=Object(o.useCallback)((function(t){return n(Object(c.b)(t,e.uploadType,e.editingContentType)).then((function(e){return e.payload})).then((function(e){return{url:e.src,originalSrc:e.originalSrc,watermarkSrc:e.watermarkSrc,privateWatermarkSrc:e.privateWatermarkSrc,watermark:e.watermark,rawWidth:e.dataRawwidth,rawHeight:e.dataRawheight,id:e.hash}}))}),[n,e.editingContentType,e.uploadType]),b=Object(o.useCallback)((function(){return n(s.a.apply(void 0,arguments)).then((function(e){return e.payload}))}),[n]),v=Object(o.useCallback)((function(e){switch(e){case"type":return void n(Object(u.g)("格式不支持,请上传以下格式的图片:".concat(d.join(", ")),"red"));case"size":return void n(Object(u.g)("请上传不超过 ".concat(l.G,"M 的图片"),"red"));case"dimension":return void n(Object(u.g)("GIF 图片的长或宽低于 ".concat(120,"px,无法上传"),"red"));case"disable-question-answer-image-upload":return void n(Object(u.g)("图片服务进行升级改造,暂时不能在「问题」「回答」中添加图片","red"));case"other":return void n(Object(u.g)("图片上传未完成,请稍后发布"))}}),[n]),m=Object(o.useCallback)((function(){return n(s.c.apply(void 0,arguments)).then((function(e){return e.payload}))}),[n]);return Object(r.b)(a.a,Object.assign({},e,{ref:t,allowInlineCode:!0,allowImageCaption:!0,allowResizeImage:!0,onImageUpload:h,onVideoUpload:b,uploadImageError:v,loadVideo:m,couldSuperVideoUpload:f,isProduction:"production"===p}))}t.a=Object(o.forwardRef)(f)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));n(187),n(39);var r=n(42),o=(n(21),n(93));n(62);function i(e){var t=arguments.length>1&&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 a(e,t){return new Promise((function(n,r){i(t,e).then((function(e){return e.status?n(e):r(e)}))}))}},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return d}));var r=n(15),o=n(4),i=n(21),a=(n(37),n(19)),c=Object.assign({},Object(a.a)("mcn",["AGREE_CONTRACT","AGREE_TARGET_SOURCE_CONTRACT","GET_BIND_INFO","SET_BIND_INFO","SET_PINDUODUO_BIND_INFO","REMOVE_BIND_INFO","GET_MEMBER_CATEGORY","SET_MEMBER_CATEGORY","GET_PRODUCER","GET_CATEGORY","GET_SECONDARY_CATEGORY","SEARCH_GOOD","GET_TAOBAO_GOOD","GENERATE_LINK_CARD","UPDATE_LINK_CARD","GET_HOT_CITIES","SEARCH_CITY","GET_CITY_DISTRICTS","LOAD_LIST","LOAD_MCN_PERMISSION","GET_LINK_CARD_URL","LOAD_MCN_BANNER","GET_MCN_QUESTION_RECOMMEND_TABS","GET_MCN_QUESTION_RECOMMEND_LIST","LOAD_REDPACKET","GET_MEMBER_STATUS"]),Object(a.b)("mcn",["CLEAN_CATEGORY","REMOVE_RECENT_ADDED_GOODS"]));function s(e){return{API:{types:c.UPDATE_LINK_CARD,endpoint:"/mcn/linkcard/".concat(e.id),method:"PUT",body:Object(i.decamelizeKeys)(e)}}}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{API:{types:c.GET_LINK_CARD_URL,endpoint:"/mcn/linkcard/".concat(e,"/url"),query:Object(i.decamelizeKeys)({deepLink:t})},FAILSAFE:!0}}var l={bindInfo:{},memberCategoryList:[],producerList:[],categoryList:[],lists:{},banners:{},protocolStatus:{isAgreedNew:!0,isAgreedOld:!0},probationCountdownDays:0};function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;if(t.type===c.GET_BIND_INFO.success){var n=t.meta.source;return Object.assign({},e,{bindInfo:Object.assign({},e.bindInfo,Object(o.a)({},n,t.payload))})}if(t.type===c.SET_BIND_INFO.success){var i=t.meta,a=i.source,s=i.pid;return Object.assign({},e,{bindInfo:Object.assign({},e.bindInfo,Object(o.a)({},a,Object.assign({},e.bindInfo[a],{pid:s})))})}if(t.type===c.SET_PINDUODUO_BIND_INFO.success){var u=t.payload.pid;return Object.assign({},e,{bindInfo:Object.assign({},e.bindInfo,{pinduoduo:Object.assign({},e.bindInfo.pinduoduo,{pid:u})})})}if(t.type===c.REMOVE_BIND_INFO.success){var d=t.meta.source;return Object.assign({},e,{bindInfo:Object.assign({},e.bindInfo,Object(o.a)({},d,Object.assign({},e.bindInfo[d],{pid:"",store:{}})))})}if(t.type===c.GET_MEMBER_CATEGORY.success)return Object.assign({},e,{memberCategoryList:t.payload.data});if(t.type===c.SET_MEMBER_CATEGORY.success){var f=t.meta.categoryList;return Object.assign({},e,{memberCategoryList:f})}if(t.type===c.GET_PRODUCER.success)return Object.assign({},e,{producerList:t.payload.data});if(t.type===c.CLEAN_CATEGORY)return Object.assign({},e,{categoryList:[]});if(t.type===c.GET_CATEGORY.success)return Object.assign({},e,{categoryList:t.payload.data});if(t.type===c.GET_SECONDARY_CATEGORY.success){var p=t.meta.categoryId;return Object.assign({},e,{categoryList:e.categoryList.map((function(e){return e.id===p?Object.assign({},e,{categoryList:t.payload.data}):e}))})}if(t.type===c.LOAD_LIST.request){var h=t.meta.key;return Object.assign({},e,{lists:Object.assign({},e.lists,Object(o.a)({},h,Object.assign({},e.lists[h],{isLoading:!0})))})}if(t.type===c.LOAD_LIST.success){var b=t.meta.key,v=t.payload,m=v.data,g=v.paging,O=g.next,y=g.isEnd;return Object.assign({},e,{lists:Object.assign({},e.lists,Object(o.a)({},b,{data:[].concat(Object(r.a)(e.lists[b].data||[]),Object(r.a)(m)),paging:{next:O,isEnd:y},isLoading:!1}))})}if(t.type===c.LOAD_LIST.failure){var j=t.meta.key;return Object.assign({},e,{lists:Object.assign({},e.lists,Object(o.a)({},j,Object.assign({},e.lists[j],{isLoading:!1})))})}if(t.type===c.REMOVE_RECENT_ADDED_GOODS){var E,C,w=t.meta.skuid,T=e.lists.recentAddedGoods;return T?Object.assign({},e,{lists:Object.assign({},e.lists,{recentAddedGoods:Object.assign({},T,{data:null!==(E=null===(C=T.data)||void 0===C?void 0:C.filter((function(e){return e.skuid!==w})))&&void 0!==E?E:[]})})}):e}if(t.type===c.LOAD_MCN_BANNER.success){var _=t.meta.stateKey,S=t.payload.data;return Object.assign({},e,{banners:Object.assign({},e.banners,Object(o.a)({},_,S))})}if(t.type===c.AGREE_CONTRACT.success)return Object.assign({},e,{protocolStatus:Object.assign({},e.protocolStatus,{isAgreedNew:!0})});if(t.type===c.GET_MEMBER_STATUS.success){var A=t.payload,k=A.isAgreed,R=A.previousIsAgreed;return Object.assign({},e,{protocolStatus:{isAgreedNew:k,isAgreedOld:R}})}if(t.type===c.LOAD_MCN_PERMISSION.success){var I=t.payload.probationCountdownDays;return Object.assign({},e,{probationCountdownDays:I||0})}return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(52),o=n(44);function i(e){Object(o.a)(1,arguments);var t=Object(r.a)(e);return t.setHours(0,0,0,0),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));function r(e){return e.getTime()%6e4}function o(e){var t=new Date(e.getTime()),n=Math.ceil(t.getTimezoneOffset());return t.setSeconds(0,0),6e4*n+(n>0?(6e4+r(t))%6e4:r(t))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return u}));var r=n(4),o=n(23),i=(n(29),n(320),n(415)),a=n(19),c=n(249),s=Object(a.a)("favlist",["GET_HOT_FAVLISTS","UPDATE_FOLLOWERS"]);function u(e,t){return function(n,o){var i=o(),a=i.entities.favlists,u=Object(c.a)(i).id,l=a[e],d=t?1:-1;return n({API:{types:s.UPDATE_FOLLOWERS,endpoint:"collections/".concat(e,"/followers").concat(t?"":"/".concat(u)),method:t?"POST":"DELETE"},UPDATE:{request:{favlists:Object(r.a)({},e,{followerCount:l.followerCount+d,isFollowing:t})},failure:{favlists:Object(r.a)({},e,l)}}})}}t.a=Object(o.combineReducers)({relations:i.b})},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(157);var o=n(272),i=n(316);var a=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function c(e){return e}function s(e){return 0===e.length?c:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var u=n(162),l=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var a=this.operator,c=function(e,t,n){if(e){if(e instanceof r.a)return e;if(e[o.a])return e[o.a]()}return e||t||n?new r.a(e,t,n):new r.a(i.a)}(e,t,n);if(a?c.add(a.call(c,this.source)):c.add(this.source||u.a.useDeprecatedSynchronousErrorHandling&&!c.syncErrorThrowable?this._subscribe(c):this._trySubscribe(c)),u.a.useDeprecatedSynchronousErrorHandling&&c.syncErrorThrowable&&(c.syncErrorThrowable=!1,c.syncErrorThrown))throw c.syncErrorValue;return c},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){u.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),!function(e){for(;e;){var t=e,n=t.closed,o=t.destination,i=t.isStopped;if(n||i)return!1;e=o&&o instanceof r.a?o:null}return!0}(e)?console.warn(t):e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=d(t))((function(t,r){var o;o=n.subscribe((function(t){try{e(t)}catch(e){r(e),o&&o.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[a]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:s(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=d(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function d(e){if(e||(e=u.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},function(e,t,n){"use strict";var r=n(161);t.a=Object(r.b)("members",["GET_ALL_FAVLISTS","GET_ALL_FAVLISTS_WITH_RELATIONS"])},function(e,t,n){"use strict";var r=n(22),o=n.n(r),i=n(25),a=n.n(i),c=n(27),s=n.n(c),u=n(16),l=n.n(u),d=n(253);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l()(e);if(t){var o=l()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s()(this,n)}}var p=function(e){a()(n,e);var t=f(n);function n(e,r){var i;return o()(this,n),(i=t.call(this,"UploadError(".concat(e,"): ").concat(r))).name="UploadError",i.type=e,i.payload=r,i}return n}(n.n(d)()(Error));t.a=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u}));var r=n(22),o=n.n(r),i=function e(){o()(this,e)},a=function e(t){var n=this;o()(this,e),this.isCancelled=function(){return n.cts.isCancelled},this.throwIfCancelled=function(){if(n.isCancelled())throw new i},this.cts=t},c=function e(){var t=this;o()(this,e),this.isCancelled=!1,this.token=new a(this),this.cancel=function(){t.isCancelled=!0}};c.token=(new c).token;var s=function(){return!0};function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.times,r=void 0===n?3:n,o=t.delay,a=void 0===o?1e3:o,u=t.shouldRetry,l=void 0===u?s:u,d=t.cancellationToken,f=void 0===d?c.token:d,p=0;return new Promise((function(t,n){!function o(){f.isCancelled()?n(new i):e().then((function(e){f.throwIfCancelled(),t(e)})).catch((function(e){f.throwIfCancelled(),p<r&&l(e)?(p++,setTimeout(o,a)):n(e)})).catch(n)}()}))}},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 i}));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 i(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 i=o.origin||o.originalEvent.origin,a="*"===t||t===i,c=o.data||{},s=c.from,u=c.id,l=c.payload;if(a&&"griffith"===s&&(!n||e===u)&&l){var d=l.messageName,f=l.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,"a",(function(){return v})),n.d(t,"b",(function(){return L})),n.d(t,"d",(function(){return U})),n.d(t,"f",(function(){return z})),n.d(t,"e",(function(){return V})),n.d(t,"g",(function(){return W})),n.d(t,"h",(function(){return Y})),n.d(t,"c",(function(){return $}));var r=n(39),o=n.n(r),i=n(30),a=n.n(i),c=n(41),s=n.n(c),u=n(1),l=n.n(u),d=n(69),f=n.n(d),p=n(46),h=n(3),b=function(e){return function(t){var n=Object(u.useState)(null),r=o()(n,2),i=r[0],c=r[1],l=e.idAttr,d=e.selector,b=e.component,v=e.targetClassName,m=e.cardDataFilter,g=e.getCardProps,O=t.root,y=s()(t,["root"]),j=l&&d&&v&&Object(u.useCallback)(function(e){var t=e.idAttr,n=e.targetClassName;return function(e){var r=e.getAttribute(t),o=document.createElement("div");return o.className=n,e.parentNode.replaceChild(o,e),{data:{id:r},target:o}}}({idAttr:l,targetClassName:v}),[l,v]),E=Object(u.useMemo)((function(){return j?function(e){return Array.from(e.querySelectorAll(d)).map(j)}:f.a}),[j,O,d]);return Object(u.useEffect)((function(){if(O||d&&m){var e=(m||E)(O).map((function(e){var t=e.data,n=e.target,r=null;return"function"==typeof g&&(r=g(t)),Object(p.createPortal)(Object(h.c)(b,a()({key:t.id,id:t.id},r,y)),n)}));e.length>0&&c(e)}}),[O]),i}},v=b({idAttr:"data-ad-id",selector:"a[data-ad-id]",targetClassName:"RichText-ADLinkCardContainer",component:n(547).a}),m=n(12),g=n(36),O=n(21),y=n(295),j=n(360),E=n.n(j),C=n(6),w=n.n(C),T=n(102),_=n.n(T),S=n(56),A=n(58);function k(){var e=E()(["","的文章"]);return k=function(){return e},e}var R=function(e){var t=e.authorName,n=e.voteupCount;return Object(h.c)(l.a.Fragment,null,_()(k(),t),n>=100&&" · ".concat(Object(A.cnNiceNumber)(n),"赞同"))};function I(e){var t=e.cardRef,n=e.useOpenArticleButton,r=e.handleClickLink,o=e.title,i=e.excerptText,a=e.imgUrlSrc,c=e.voteupCount,s=e.commentCount;return Object(h.c)("div",{className:"ArticleLinkCard",ref:t},Object(h.c)("span",{className:"ArticleLinkCard-title"},o),Boolean(i)&&Object(h.c)("div",{className:"ArticleLinkCard-excerpt"},i),a&&Object(h.c)("div",{className:"ArticleLinkCard-imageWrapper"},Object(h.c)("img",{src:Object(S.imgUrl)(a,"540x300"),className:"ArticleLinkCard-image",alt:""})),Object(h.c)("div",{className:"ArticleLinkCard-bottom"},Object(h.c)("span",{className:"ArticleLinkCard-hint"},"".concat(Object(A.cnNiceNumber)(c),"赞同 · ").concat(Object(A.cnNiceNumber)(s),"评论")),n&&Object(h.c)("span",{onClick:r,className:"ArticleLinkCard-hybridLink"},"查看完整文章")),Object(h.c)("div",{className:"ArticleLinkCard-bottomCardGradient"}))}function x(e){var t=e.cardRef,n=e.useOpenArticleButton,r=e.handleClickLink,o=e.title,i=e.content,a=e.imgUrlSrc,c=e.voteupCount,s=e.authorName,u=e.avatarUrl;return Object(h.c)("div",{className:"ArticleLinkCard AvatarArticleLinkCard",ref:t},Object(h.c)("div",{className:"AvatarArticleLinkCard-info"},Object(h.c)("div",{className:"AvatarArticleLinkCard-hint"},u&&Object(h.c)("img",{className:"AvatarArticleLinkCard-avatar",src:u,alt:""}),Object(h.c)(R,{authorName:s,voteupCount:c})),n&&Object(h.c)("span",{onClick:r,className:"AvatarArticleLinkCard-hybridLink"},"查看全文")),Object(h.c)("span",{className:"ArticleLinkCard-title"},o),Object(h.c)("div",{className:w()("ArticleLinkCard-content",{"ArticleLinkCard-content--noImg":!a})},Object(h.c)("div",{dangerouslySetInnerHTML:{__html:i}})),!a&&Object(h.c)("span",{className:"AvatarArticleLinkCard-more"},"更多内容"),a&&Object(h.c)("img",{className:"AvatarArticleLinkCard-image",src:a,alt:""}))}function N(e){var t=e.cardRef,n=e.useOpenArticleButton,r=e.handleClickLink,o=e.title,i=e.content,a=e.imgUrlSrc,c=e.voteupCount,s=e.authorName;return Object(h.c)("div",{className:"ArticleLinkCard QuoteArticleLinkCard",ref:t},Object(h.c)("span",{className:"ArticleLinkCard-title"},o),Object(h.c)("div",{className:"QuoteArticleLinkCard-hint"},Object(h.c)(R,{authorName:s,voteupCount:c})),Object(h.c)("div",{className:w()("ArticleLinkCard-content QuoteArticleLinkCard-content",{"ArticleLinkCard-content--noImg":!a})},Object(h.c)("div",{dangerouslySetInnerHTML:{__html:i}})),!a&&n&&Object(h.c)("div",{onClick:r,className:"QuoteArticleLinkCard-hybridLink"},"查看全文"),a&&Object(h.c)("img",{className:"QuoteArticleLinkCard-image",src:a,alt:""}))}function D(e){var t=e.article,n=t.title,r=t.excerpt,o=t.content,i=t.imageUrl,a=t.voteupCount,c=t.commentCount,s=t.author,l=void 0===s?{}:s,d=e.styleAbParam,f=e.cardRef,p=e.useOpenArticleButton,b=e.handleClickLink,v=Object(u.useMemo)((function(){var e=document.createElement("div");return e.innerHTML=r,e.textContent}),[r]),m=l.name,g=l.avatarUrl;return"1"===d?Object(h.c)(x,{cardRef:f,useOpenArticleButton:p,handleClickLink:b,title:n,content:o,imgUrlSrc:i,voteupCount:a,authorName:m,avatarUrl:g}):"2"===d?Object(h.c)(N,{cardRef:f,useOpenArticleButton:p,handleClickLink:b,title:n,content:o,imgUrlSrc:i,voteupCount:a,authorName:m}):Object(h.c)(I,{cardRef:f,useOpenArticleButton:p,handleClickLink:b,title:n,excerptText:v,imgUrlSrc:i,voteupCount:a,commentCount:c})}var P=function(e){var t=e.article.id,n=e.article,r=e.useOpenArticleButton,o=e.enableZa,i=e.styleAbParam,a=Object(u.useRef)(null);Object(u.useEffect)((function(){o&&(m.a.setModule(a.current,{module:"Content"},{card:{content:{type:"Post",token:String(t)}}}),m.a.trackCardShow(a.current,{id:8589,element:"Card"}))}),[o,t]);var c="https://zhuanlan.zhihu.com/p/".concat(t),s=Object(u.useCallback)((function(){o&&m.a.trackEvent(a.current,{id:8590,action:"OpenUrl",element:"Card"})}),[o]);return Object(h.c)(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.c)(D,{styleAbParam:i,cardRef:a,useOpenArticleButton:r,linkUrl:c,handleClickLink:s,article:n}))},L=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 i=null===(t=n.match(/https:\/\/zhuanlan.zhihu.com\/p\/(\d+)$/))||void 0===t?void 0:t[1];if(i){var a=document.createElement("div");return a.className="RichText-ArticleLinkCardContainer",e.parentNode.replaceChild(a,e),{data:{id:i},target:a}}return null})).filter(Boolean)},component:function(e){var t=e.id,n=e.useOpenArticleButton,r=e.enableZa,i=e.styleAbParam,c=s()(e,["id","useOpenArticleButton","enableZa","styleAbParam"]),l=Object(u.useState)(null),d=o()(l,2),f=d[0],p=d[1],b=Object(u.useState)(null),v=o()(b,2),m=v[0],g=v[1],j=i&&["1","2"].includes(i)?"1":"0";return Object(u.useEffect)((function(){var e="https://www.zhihu.com/api/v4/articles/".concat(t,"?is_article_card=").concat(j);Object(y.a)(e).then((function(e){return Object(O.camelizeKeys)(e)})).then((function(e){e.error?g(e.error.message):p(e)})).catch((function(e){g(e.message||"未知错误")}))}),[t,j]),m?Object(h.c)("div",{className:"ArticleLinkCard-error"},m):f?Object(h.c)(P,a()({article:f,useOpenArticleButton:n,enableZa:r,styleAbParam:i},c)):Object(h.c)("div",{className:"ArticleLinkCard-loading"},"加载中...")}}),M=n(526),U=b({idAttr:"data-mcn-id",selector:"a[data-mcn-id]",targetClassName:"RichText-MCNLinkCardContainer",component:M.c}),B=n(385),z=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:B.a}),F=n(83),G=function(e){var t=Object(O.camelizeKeys)(e),n=t.resourceName,r=t.button,o=r.url,i=r.text,a=t.title,c=t.cover,s=t.price,u=t.source,l=void 0===u?"知乎":u;return{url:o,buttonText:i,title:a,imgUrl:c,price:s,authorText:t.desc,heatText:t.footer,producer:n,source:l}},V=b({idAttr:"data-sku-id",selector:"a[data-sku-id]",targetClassName:"RichText-MkSkuLinkCardContainer",component:function(e){var t=e.onClick,n=Object(u.useRef)(!1);return Object(h.c)(M.c,a()({processResponse:G,getUrl:function(e){return"https://www.zhihu.com/api/v4/market/km_sku_card/".concat(e)},fetcherOptions:{credentials:"same-origin"},onClick:function(e){m.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&&(m.a.setModule(t,{module:"Content"},{card:{content:{id:e.id}}}),Object(F.onViewedOnce)(t,(function(){m.a.trackCardShow(t,{id:7203})})),n.current=!0)},zaBlock:"ZTextMkSKuLinkCard"},e))}}),H=n(31),q=[{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.FileLinkCard",zaBlock:"ZTextFileLinkCard"}],K=function(e){var t=e.element,n=e.config,r={elementLocation:{type:"Button"},block:n.zaBlock},o={action:"OpenUrl",elementLocation:{type:"Button"},block:n.zaBlock,eventType:"Click"},i={link:{url:t.href}},a=Object(g.i)().trackEvent,c=Object(g.h)(r,i),s=Object(H.b)((function(e){a(o,i),"ZTextLinkCard"===n.zaBlock&&t.dataset.isEcommerce&&e.preventDefault()}));return Object(u.useEffect)((function(){return t.addEventListener("click",s),function(){t.removeEventListener("click",s)}}),[]),Object(u.useEffect)((function(){return c(t),function(){return c(null)}}),[]),null},W=function(e){var t=e.root,n=Object(u.useState)([]),r=o()(n,2),i=r[0],a=r[1];return Object(u.useEffect)((function(){if(t){var e=[];q.forEach((function(n){var r=n.selector;Array.from(t.querySelectorAll(r)).forEach((function(t){e.push({el:t,config:n})}))})),a(e)}}),[t]),Object(h.c)(l.a.Fragment,null,i.map((function(e,t){var n=e.el,r=e.config;return Object(h.c)(K,{key:t,element:n,config:r})})))},Y=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 i=document.createElement("div");return i.className="RichText-ZVideoLinkCardContainer",e.parentNode.replaceChild(i,e),{data:{id:o},target:i}}return null})).filter(Boolean)},component:n(521).a}),Q=n(14),Z=n(380);var J={name:"1wtde8n",styles:"font-size:12px;overflow:hidden;"},X=function(e){var t=e.contentHTML,n=Object(u.useState)(!0),r=o()(n,2),i=r[0],a=r[1],c=Object(H.b)((function(){a(!i)}));return Object(h.c)(g.b,{block:"ZTextCatalog"},Object(h.c)(g.e,{as:Q.Flex,zaType:"Block",className:"Catalog-content",flexDirection:"column",css:J,style:{height:i?"84px":"auto"},dangerouslySetInnerHTML:{__html:t}}),Object(h.c)(g.a,{as:Z.a,zaType:"Button",zaAction:i?"Expand":"Collapse",isFold:i,onClick:c}))},$=function(e){var t=e.root,n=Object(u.useState)(null),r=o()(n,2),i=r[0],a=r[1];return Object(u.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),a(Object(p.createPortal)(Object(h.c)(X,{contentHTML:n}),r))}}}),[t]),i}},function(e,t,n){e.exports=n(107)(4)},function(e,t,n){var r=n(325),o=n(338);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},function(e,t,n){var r=n(122),o=n(163);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},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";n.d(t,"a",(function(){return C}));var r,o=n(22),i=n.n(o),a=n(24),c=n.n(a),s=n(25),u=n.n(s),l=n(27),d=n.n(l),f=n(16),p=n.n(f),h=n(1),b=n(6),v=n.n(b),m=n(11),g=n(185),O=n(46),y=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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.White="white",e.Red="red",e.RedGhost="red-ghost"}(r||(r={}));var E=function(e){u()(n,e);var t=j(n);function n(){var e;i()(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={hidden:!1,key:""},e}return c()(n,[{key:"componentDidMount",value:function(){this.nextNotification()}},{key:"componentDidUpdate",value:function(e,t){this.state.key!==t.key&&this.nextNotification()}},{key:"nextNotification",value:function(){var e=this,t=this.props.delay,n=(this.props.notification||{}).text;!(void 0===n?"":n)||t<0||(this.state.hidden&&this.setState({hidden:!1}),clearTimeout(this.timeout),this.timeout=window.setTimeout((function(){e.setState({hidden:!0})}),t))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"renderActions",value:function(){var e=this,t=this.props.actions;return t?Object(y.c)("div",{className:"Notification-actionsSection"},!0===t?Object(y.c)(m.c,{preset:m.b.Link,color:m.a.Blue,onClick:function(){return e.setState({hidden:!0})}},"知道了"):t):null}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.wrapperClassName,o=e.style,i=e.notification,a=e.actions,c=i||{},s=c.text,u=void 0===s?"":s,l=c.theme,d=void 0===l?r.White:l,f=this.state,p=f.hidden,h=f.key;return Object(y.c)(g.a,{transitionName:"Notification",timeout:300,portalClassName:n&&v()(n,"Notification-wrapper")},!p&&Boolean(u)&&Object(y.c)("div",{className:v()(t,"Notification","Notification-".concat(d)),style:o,key:h},Object(y.c)("div",{className:v()("Notification-textSection","Notification-textSection--".concat(a?"withButton":"withoutButton"))},u),this.renderActions()))}}]),n}(h.Component);E.show=function(e){var t=document.createElement("div");document.body.appendChild(t);var n=!1,r=function(){if(!n){n=!0;Object(O.render)(Object(h.cloneElement)(o,{notification:null}),t),window.setTimeout((function(){Object(O.unmountComponentAtNode)(t),t.parentNode&&t.parentNode.removeChild(t)}),300)}},o="function"==typeof e?e(r):e;Object(O.render)(Object(h.cloneElement)(o),t);var i=o.props.delay,a=void 0===i?0:i;a>0&&window.setTimeout(r,a)},E.defaultProps={delay:-1,actions:!1},E.getDerivedStateFromProps=function(e){return{key:(t=e.notification,n=t||{},r=n.key,o=void 0===r?"":r,i=n.timestamp,a=void 0===i?0:i,"".concat(o,".").concat(a))};var t,n,r,o,i,a};var C=E},function(e,t,n){"use strict";(function(t){var r=n(857),o=n(858),i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,a=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,c=new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+");function s(e){return(e||"").toString().replace(c,"")}var u=[["#","hash"],["?","query"],function(e){return e.replace("\\","/")},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],l={hash:1,query:1};function d(e){var n,r=("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{}).location||{},o={},a=typeof(e=e||r);if("blob:"===e.protocol)o=new p(unescape(e.pathname),{});else if("string"===a)for(n in o=new p(e,{}),l)delete o[n];else if("object"===a){for(n in e)n in l||(o[n]=e[n]);void 0===o.slashes&&(o.slashes=i.test(e.href))}return o}function f(e){e=s(e);var t=a.exec(e);return{protocol:t[1]?t[1].toLowerCase():"",slashes:!!t[2],rest:t[3]}}function p(e,t,n){if(e=s(e),!(this instanceof p))return new p(e,t,n);var i,a,c,l,h,b,v=u.slice(),m=typeof t,g=this,O=0;for("object"!==m&&"string"!==m&&(n=t,t=null),n&&"function"!=typeof n&&(n=o.parse),t=d(t),i=!(a=f(e||"")).protocol&&!a.slashes,g.slashes=a.slashes||i&&t.slashes,g.protocol=a.protocol||t.protocol||"",e=a.rest,a.slashes||(v[3]=[/(.*)/,"pathname"]);O<v.length;O++)"function"!=typeof(l=v[O])?(c=l[0],b=l[1],c!=c?g[b]=e:"string"==typeof c?~(h=e.indexOf(c))&&("number"==typeof l[2]?(g[b]=e.slice(0,h),e=e.slice(h+l[2])):(g[b]=e.slice(h),e=e.slice(0,h))):(h=c.exec(e))&&(g[b]=h[1],e=e.slice(0,h.index)),g[b]=g[b]||i&&l[3]&&t[b]||"",l[4]&&(g[b]=g[b].toLowerCase())):e=l(e);n&&(g.query=n(g.query)),i&&t.slashes&&"/"!==g.pathname.charAt(0)&&(""!==g.pathname||""!==t.pathname)&&(g.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,o=n[r-1],i=!1,a=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),a++):a&&(0===r&&(i=!0),n.splice(r,1),a--);return i&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(g.pathname,t.pathname)),r(g.port,g.protocol)||(g.host=g.hostname,g.port=""),g.username=g.password="",g.auth&&(l=g.auth.split(":"),g.username=l[0]||"",g.password=l[1]||""),g.origin=g.protocol&&g.host&&"file:"!==g.protocol?g.protocol+"//"+g.host:"null",g.href=g.toString()}p.prototype={set:function(e,t,n){var i=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||o.parse)(t)),i[e]=t;break;case"port":i[e]=t,r(t,i.protocol)?t&&(i.host=i.hostname+":"+t):(i.host=i.hostname,i[e]="");break;case"hostname":i[e]=t,i.port&&(t+=":"+i.port),i.host=t;break;case"host":i[e]=t,/:\d+$/.test(t)?(t=t.split(":"),i.port=t.pop(),i.hostname=t.join(":")):(i.hostname=t,i.port="");break;case"protocol":i.protocol=t.toLowerCase(),i.slashes=!n;break;case"pathname":case"hash":if(t){var a="pathname"===e?"/":"#";i[e]=t.charAt(0)!==a?a+t:t}else i[e]=t;break;default:i[e]=t}for(var c=0;c<u.length;c++){var s=u[c];s[4]&&(i[s[1]]=i[s[1]].toLowerCase())}return i.origin=i.protocol&&i.host&&"file:"!==i.protocol?i.protocol+"//"+i.host:"null",i.href=i.toString(),i},toString:function(e){e&&"function"==typeof e||(e=o.stringify);var t,n=this,r=n.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var i=r+(n.slashes?"//":"");return n.username&&(i+=n.username,n.password&&(i+=":"+n.password),i+="@"),i+=n.host+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(i+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(i+=n.hash),i}},p.extractProtocol=f,p.location=d,p.trimLeft=s,p.qs=o,e.exports=p}).call(this,n(109))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Flex=t.Box=void 0;s(n(1));var r=s(n(1028)),o=n(139),i=function(e){if(e&&e.__esModule)return e;var t=c();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(503)),a=s(n(721));function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function s(e){return e&&e.__esModule?e:{default:e}}var u=(0,r.default)("div",{shouldForwardProp:a.default})({boxSizing:"border-box",margin:0,minWidth:0},(function(e){return(0,i.default)(e.__css)(e.theme)}),(function(e){var t=e.theme,n=e.variant,r=e.tx,o=void 0===r?"variants":r;return(0,i.default)((0,i.get)(t,o+"."+n,(0,i.get)(t,n)))(t)}),(function(e){return(0,i.default)(e.sx)(e.theme)}),(function(e){return e.css}),(0,o.compose)(o.space,o.layout,o.typography,o.color,o.flexbox));t.Box=u;var l=(0,r.default)(u)({display:"flex"});t.Flex=l},function(e,t,n){"use strict";n.d(t,"i",(function(){return D})),n.d(t,"j",(function(){return P})),n.d(t,"d",(function(){return L})),n.d(t,"h",(function(){return M})),n.d(t,"c",(function(){return U})),n.d(t,"f",(function(){return B})),n.d(t,"g",(function(){return z})),n.d(t,"k",(function(){return F})),n.d(t,"e",(function(){return G})),n.d(t,"b",(function(){return V})),n.d(t,"a",(function(){return q}));var r=n(4),o=n(21),i=n(89),a=(n(37),n(19));function c(e){if(!e)return"";var t=e+"";return t.slice(0,6)+"****"+t.slice(10)}function s(e){if(!e)return"";var t=e.indexOf("@");return t>2?e.slice(0,2)+"****"+e.slice(t):e}var u=n(127),l=n.n(u);function d(){return"undefined"!=typeof document&&l.a.remove("unlock_ticket"),{unlockTicketStatus:!1,unlockTicket:null,challenge:[]}}function f(e){var t=e.payload,n=e.res,r=t.unlockTicket;return r?{unlockTicketStatus:n.ok,unlockTicket:r,challenge:[],errorStatus:!1,message:""}:d()}var p=n(28),h=[p.E,p.p,p.q,p.r,p.o],b=Object.assign({},Object(a.a)("account",["UNLOCK_TICKET_BY_DIGITS","UNLOCK_TICKET_BY_PASSWORD","GET_UNLOCK_REQUEST","REQUEST_UNLOCK_TICKET","GET_UNBLOCK_INFO","REQUEST_PHONE_VERIFICATION_CODE","UPDATE_PHONE_NUMBER","GET_ACCOUNT_PHONE_VERIFY_CODE","UPDATE_ACCOUNT_PHONE","REQUEST_EMAIL_VERIFY_CODE","UPDATE_EMAIL","ACTIVE_EMAIL","MONOPOLIZE_PHONE_NUMBER","GET_LOCK_LEVEL","RESET_PASSWORD","RESET_ORG_PASSWORD","REQUEST_URL_TOKEN","UPDATE_URL_TOKEN","GET_ACCOUNT_INFO","GET_ORG_ACCOUNT_INFO","UPDATE_ORG_EMAIL","REQUEST_ORG_EMAIL_VERIFY_CODE"]),Object(a.b)("account",["RECOVER_DEFAULT_TYPE","SET_UNLOCK_TICKET"])),v=b.UNLOCK_TICKET_BY_DIGITS,m=b.UNLOCK_TICKET_BY_PASSWORD,g=b.GET_UNLOCK_REQUEST,O=b.REQUEST_UNLOCK_TICKET,y=b.GET_UNBLOCK_INFO,j=b.REQUEST_PHONE_VERIFICATION_CODE,E=b.UPDATE_PHONE_NUMBER,C=(b.GET_ACCOUNT_PHONE_VERIFY_CODE,b.UPDATE_ACCOUNT_PHONE),w=(b.REQUEST_EMAIL_VERIFY_CODE,b.REQUEST_ORG_EMAIL_VERIFY_CODE,b.UPDATE_EMAIL),T=(b.ACTIVE_EMAIL,b.MONOPOLIZE_PHONE_NUMBER),_=b.GET_LOCK_LEVEL,S=(b.RESET_PASSWORD,b.RESET_ORG_PASSWORD,b.REQUEST_URL_TOKEN),A=b.UPDATE_URL_TOKEN,k=b.GET_ACCOUNT_INFO,R=b.GET_ORG_ACCOUNT_INFO,I=b.UPDATE_ORG_EMAIL,x=b.RECOVER_DEFAULT_TYPE,N=b.SET_UNLOCK_TICKET;function D(e){return{API:{types:v,method:"POST",body:Object(i.getFormData)(Object(o.decamelizeKeys)({digits:e})),endpoint:"v3/oauth/account/unlock/digits"}}}function P(e){return{API:{types:m,method:"POST",body:Object(i.getFormData)(Object(o.decamelizeKeys)({password:e})),endpoint:"v3/oauth/account/unlock/password"}}}function L(){return{API:{types:g,method:"GET",endpoint:"v3/oauth/account/unlock/request",fetchOptions:{credentials:"include"}}}}function M(e){return{API:{types:O,method:"POST",endpoint:"v3/oauth/account/unlock/request/".concat(e)}}}function U(){return{API:{types:y,method:"GET",endpoint:"/antispam/lock_info"}}}function B(){return{type:x}}function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.notification,r=void 0===n||n;return{API:{types:j,endpoint:"v3/account/api/account/phone_no",method:"POST",fetchOptions:{credentials:"include",zsEncrypt:!0,bodyType:"form",body:{new_phone_no:e}}},NOTIFICATION:r}}function F(e,t){return{phone:e,API:{types:E,endpoint:"v3/account/api/account/phone_no",method:"PUT",fetchOptions:{credentials:"include",zsEncrypt:!0,bodyType:"form",body:{new_phone_no:e,digits:t}}},NOTIFICATION:!1}}var G=function(){return{API:{types:T,endpoint:"v3/account/api/account/phone_no/cover",method:"POST",fetchOptions:{credentials:"include"}}}};function V(){return{API:{types:k,method:"GET",endpoint:"v3/oauth/account"}}}var H={lockLevel:{},unlockTicketStatus:!1,unlockTicket:null,challenge:[],errorStatus:!1,message:"",isFetching:!1,accountInfo:{},urlToken:{loading:!1}};function q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:H,t=arguments.length>1?arguments[1]:void 0,n=t.type,o=t.payload;if(n===_.success)return Object.assign({},e,{lockLevel:Object.assign({},e.lockLevel,Object(r.a)({},t.id,o.level))});if(n===y.success){var i=o.spamLevel,a=o.isAppealed;return Object.assign({},e,{spamLevel:i,isAppealed:a,antispamLockInfo:o,isUnblockInfoFetched:!0})}var u=[v.success,m.success];if(-1!==u.indexOf(n))return Object.assign({},e,f(t));var l=[E.success,C.success];if(-1!==l.indexOf(n)){var p=t.phone,b=Object.assign({},e.accountInfo,{phoneNo:c(p)});return Object.assign({},e,d(),{accountInfo:b})}if(n===w.success||n===I.success){var O=t.email,j=Object.assign({},e.accountInfo,{email:s(O)});return Object.assign({},e,d(),{accountInfo:j})}if(n===g.request)return Object.assign({},e,{isFetching:!0});if(n===g.success)return Object.assign({},e,{challenge:o.challenge,isFetching:!1});if(n===g.failure)return Object.assign({},e,{isFetching:!1});if(n===k.success)return Object.assign({},e,{accountInfo:o});if(n===R.success)return Object.assign({},e,{accountInfo:{passwordSet:"已设置"===o.accountPwd.status,email:o.accountEmail.email}});if(n===S.request)return Object.assign({},e,{urlToken:{loading:!0}});if(n===S.success)return Object.assign({},e,{urlToken:{loading:!1,setable:o.setable,token:o.urlToken}});if(n===S.failure)return Object.assign({},e,{urlToken:{loading:!1}});if(n===A.success){var T=t.urlToken;return Object.assign({},e,{urlToken:{loading:!1,setable:!1,token:T}})}if(n===x)return Object.assign({},e,{errorStatus:!1,isFetching:!1});if(n===N)return Object.assign({},e,{unlockTicket:t.unlockTicket});if(t.err&&t.err.payload){var D=t.err.payload;if(h.includes(D.code))return Object.assign({},e,{unlockTicketStatus:!1,errorStatus:!0,message:D.message})}return e}},function(e,t,n){"use strict";var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(30),h=n.n(p),b=n(41),v=n.n(b),m=n(2),g=n.n(m),O=n(1),y=n(6),j=n.n(y),E=n(58),C=n(11),w=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}function _(e){var t=e.className,n=e.tag,r=e.name,o=e.value,i=v()(e,["className","tag","name","value"]),a="div";return n?a=n:i.href?a="a":i.onClick&&(a=C.c),Object(w.c)(a,h()({className:j()("NumberBoard-item",t)},i),Object(w.c)("div",{className:"NumberBoard-itemInner"},Object(w.c)("div",{className:"NumberBoard-itemName"},r),Object(w.c)("strong",{className:"NumberBoard-itemValue",title:o},Object(E.formatNumber)(o))))}var S=function(e){s()(n,e);var t=T(n);function n(){return o()(this,n),t.apply(this,arguments)}return a()(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.divider,r=e.children,o=e.items,i=v()(e,["className","divider","children","items"]);return Object(w.c)("div",h()({className:j()("NumberBoard",t,{"NumberBoard--divider":n})},i),r||o.map((function(e){return Object(w.c)(_,h()({key:e.name},e))})))}}]),n}(O.Component);S.propTypes={divider:g.a.bool},S.defaultProps={divider:!1},S.Item=_;var A=S;t.a=A},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";function r(e,t){var n=Object.assign({},e);return Object.keys(t).forEach((function(e){var r=Object.assign({},n[e]),o=t[e]||{};Object.keys(o).forEach((function(e){var t=o[e],n=Object.assign({},r[e]);if(t&&"object"==typeof t){for(var i=0,a=Object.keys(t);i<a.length;i++){var c=a[i],s=n[c],u=t[c];!Array.isArray(s)&&s instanceof Object&&u instanceof Object?n[c]=Object.assign({},s,u):n[c]=u}r[e]=n}else r[e]=t})),n[e]=r})),n}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n(1);var r=n(6),o=n.n(r),i=n(3),a=function(e){var t=e.avatar,n=e.bottom,r=e.button,a=e.className,c=e.height,s=e.icon,u=e.inline,l=e.right,d=e.style,f=void 0===d?{}:d,p=e.title,h=e.width,b=Object.assign({},f);return h&&(b.width="".concat(h,"px")),c&&(b.height="".concat(c,"px")),n&&(b.marginBottom="".concat(n,"px")),l&&(b.marginRight="".concat(l,"px")),Object(i.c)("div",{className:o()("Holder",a,{"Holder--inline":u,"Holder--title":p,"Holder--icon":s,"Holder--button":r,"Holder--avatar":t}),style:b})}},function(e,t,n){"use strict";n.d(t,"c",(function(){return m})),n.d(t,"l",(function(){return g})),n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return E})),n.d(t,"p",(function(){return C})),n.d(t,"j",(function(){return w})),n.d(t,"o",(function(){return T})),n.d(t,"i",(function(){return _})),n.d(t,"h",(function(){return S})),n.d(t,"g",(function(){return A})),n.d(t,"m",(function(){return k})),n.d(t,"n",(function(){return R})),n.d(t,"q",(function(){return I})),n.d(t,"f",(function(){return x})),n.d(t,"e",(function(){return N})),n.d(t,"k",(function(){return P})),n.d(t,"d",(function(){return H}));var r=n(4),o=n(15),i=n(121),a=n.n(i),c=n(63),s=n.n(c),u=n(113),l=n(192),d=n(19);var f=n(307),p=n(428),h=n(283),b=Object(d.b)("chat",["UPDATE_INBOX"]),v=function(e){var t=e.senderId,n=e.isRead;return function(e,o){var i=o(),a=i.entities,c=i.chat,s=a.chats[t],u=[],l=c.inbox.strangers||{};if(l.result&&(u=l.result),s){var d=s.unreadCount,v=void 0===d?0:d;return n?u.includes(t)?e(Object(h.a)(!1)):e(Object(h.c)(-1*v)):u.includes(t)?e(Object(h.a)(!0)):e(Object(h.c)(1)),e({type:b.UPDATE_INBOX,UPDATE:{update:{chats:Object(r.a)({},t,{unreadCount:n?0:v+1})}}})}return e((function(e){return e(Object(f.c)(!0)).then((function(t){return t.payload.strangerMessage.switch?e(Object(p.b)(!0)):Promise.resolve()}))}))}},m=Object.assign({},Object(d.a)("chat",["GET_HISTORY_MESSAGES","SEND_MESSAGE","SEND_ECOM_MESSAGE","SET_MESSAGE_READ","DELETE_MESSAGE","DELETE_MESSAGE_THREAD","GET_ECOM_EVENT","GET_ECOM_COUPON","GET_ECOM_PROFILE","SEND_ECOM_SUBMIT"]),Object(d.b)("chat",["ADD_NEW_MESSAGE","INPUT_MESSAGE","ADD_TEMP_IMAGE_MESSAGE","ADD_TEMP_ECOM_CARD_MESSAGE","SET_IMAGE_SEND_FAILURE","DELETE_LOCAL_MESSAGE"]));function g(e){var t=e.senderId,n=e.inputValue;return{type:m.INPUT_MESSAGE,meta:{inputValue:n,senderId:t}}}function O(e){return!!e&&new RegExp(/<a href="https:\/\/www.zhihu.com\/inbox\/+[\s\S]*?is_ecom=1/).test(e)}function y(e){var t=e.contentType,n=e.receiverId,r=e.data,o=e.tempMessageId||a()("tempMessageId_"),i=null;return t===u.a.text&&(i=Object(l.d)(r.text.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"))),{receiverId:n,data:Object.assign({userType:"receiver",type:"message",createdTime:Date.now(),contentType:t,id:o},r,{richText:i})}}function j(e,t,n,r,o){var i={id:n,image:{height:r,width:o,url:t}},a=y({contentType:u.a.image,receiverId:e,data:i,tempMessageId:n});return{type:m.ADD_TEMP_IMAGE_MESSAGE,meta:a}}function E(e,t,n){var r={id:t,ecomCard:{cardType:n}},o=y({contentType:u.a.ecomcard,receiverId:e,data:r,tempMessageId:t});return{type:m.ADD_TEMP_ECOM_CARD_MESSAGE,meta:o}}function C(e){var t=e.receiverId,n=e.tempMessageId,r=e.file;return{type:m.SET_IMAGE_SEND_FAILURE,meta:{receiverId:t,tempMessageId:n,file:r}}}function w(e){var t=e.senderId,n=e.nextApiUrl,r=(void 0===n?"":n).split("?")[1];return{API:{types:m.GET_HISTORY_MESSAGES,endpoint:r?"/chat?".concat(r):"/chat?sender_id=".concat(t),method:"GET"},meta:{senderId:t}}}function T(e){var t=e.contentType,n=e.receiverId,r=e.data,o=e.tempMessageId,i=e.sourceType,a=e.sourceId,c=y({contentType:t,receiverId:n,data:r,tempMessageId:o});return{API:{types:m.SEND_MESSAGE,endpoint:"/chat",method:"POST",body:Object.assign({content_type:u.c[t],receiver_id:n},i&&{source_type:i},a&&{source_id:a},r)},meta:c}}function _(e){return{API:{types:m.GET_ECOM_PROFILE,root:s.a.fetchRoot.api,endpoint:"api/v4/crm/chat/plugin/profile/".concat(e),method:"GET"}}}function S(e){var t=e.templateType,n=void 0===t?2:t,r=e.senderId;return{API:{types:m.GET_ECOM_EVENT,root:s.a.fetchRoot.api,endpoint:"api/v4/crm/chat/plugin/clue_activities?template_type=".concat(n),method:"GET"},meta:{senderId:r}}}function A(){return{API:{types:m.GET_ECOM_COUPON,root:s.a.fetchRoot.api,endpoint:"api/v4/crm/chat/plugin/coupons",method:"GET"}}}function k(e){var t=e.contentType,n=e.id,r=e.token,o=e.data,i=e.tempMessageId,a=o.receiverId,c=o.cardType,u=y({contentType:t,receiverId:a,data:o,tempMessageId:i});return{API:{types:m.SEND_ECOM_MESSAGE,root:s.a.fetchRoot.api,endpoint:1===c?"api/v4/crm/chat/plugin/clue_activities/".concat(r,"/action/send"):"api/v4/crm/chat/plugin/coupons/".concat(n,"/action/send"),method:"POST",body:{receiver_id:a}},meta:u}}function R(e){var t=e.token,n=e.data.phone;return{API:{types:m.SEND_ECOM_SUBMIT,root:s.a.fetchRoot.api,endpoint:"api/v4/crm/chat/plugin/clue_activities/".concat(t,"/action/submit"),method:"POST",body:{phone_no:n}}}}function I(e){return function(t){t(v({senderId:e,isRead:!0})),t({API:{types:m.SET_MESSAGE_READ,endpoint:"/messages/read/".concat(e),method:"PUT"}})}}function x(e,t){return{API:{types:m.DELETE_MESSAGE,endpoint:"/messages/".concat(e),method:"DELETE"},meta:{messageId:e,senderId:t}}}function N(e,t){return{type:m.DELETE_LOCAL_MESSAGE,meta:{messageId:e,senderId:t}}}function D(e,t){return e.filter((function(e){return e.id!==t}))}function P(e,t){var n=e.content,r=void 0===n?{}:n,o=e.meta,i=(o=void 0===o?{}:o).sender_id,a=o.content_type,c=o.created_at,s=o.id,d=e.extra,f=(d=void 0===d?{}:d).message_type,p=d.extra_content,h=d.associate_id,b=d.unfriendly,g={userType:t!==i?"sender":"receiver",type:f||"message",createdTime:c,contentType:a,id:s,status:u.e.success,extraContent:p,unfriendly:Boolean(Number(b)),associateId:h,isEcomWelcomeCard:!1};return g[g.contentType]=r[g.contentType],a===u.a.text&&(g.richText=Object(l.d)(g.text),g.isEcomWelcomeCard=O(g.richText)),a===u.a.ecomcard&&(g.ecomCard=Object.assign({},r.ecom_card)),function(e){e(v({senderId:i})),e({type:m.ADD_NEW_MESSAGE,meta:{messageInfo:g,senderId:i}})}}function L(e){var t=u.b[e.contentType],n="text"===t?Object(l.d)(e.text||e.content):null;return Object.assign({},e,{contentType:t,createdTime:1e3*e.createdTime,status:u.e.success,richText:n,isEcomWelcomeCard:"text"===t&&O(e.text||e.content)})}function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(!(null==e?void 0:e.length))return{formattedMessages:[],lastTimeStamp:t};var n=t||1e3*e[0].createdTime,r=e.map((function(t,r){var o=Object.assign({},t,{showTime:!1}),i=1e3*o.createdTime;if(Math.abs(n-i)>u.f||n===i)o.showTime=!0;else{var a=e[r+1];a&&Math.abs(i-1e3*a.createdTime)>u.f&&(o.showTime=!0)}return n=i,L(o)})).reverse();return{formattedMessages:r,lastTimeStamp:n}}var U=function(e){return(null==e?void 0:e.messages)||[]},B=function(e){var t=(e||{}).lastTimeStamp;return{lastTimeStamp:void 0===t?null:t}};function z(e,t,n,r){for(var i=Object(o.a)(e),a=Object.assign({},n),c=r,s=e.length-1;s>=0;s--)if(e[s].id===t){1e3*a.createdTime-c>=u.f?(a.showTime=!0,c=1e3*a.createdTime):a.showTime=!1,i[s]=Object.assign({},L(a),{tempMessageId:t});break}return{realMessageList:i,lastTimeStamp:c}}function F(e,t,n){for(var r=Object(o.a)(e),i=e.length-1;i>=0;i--)if(e[i].id===t){r[i].image.url=n;break}return r}function G(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object(o.a)(e),i=n.file,a=e.length-1;a>=0;a--)if(e[a].id===t){r[a].status=u.e.failure,i&&(r[a].file=i);break}return r}function V(e,t){var n=Object.assign({},e),r=t;return n.createdTime-r>=u.f?(n.showTime=!0,r=n.createdTime):n.showTime=!1,{message:n,lastTimeStamp:r}}function H(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===m.GET_HISTORY_MESSAGES.request){var n=t.meta.senderId;return Object.assign({},e,Object(r.a)({},n,Object.assign({},e[n],{isLoading:!0})))}if(t.type===m.GET_HISTORY_MESSAGES.success){var i=t.payload,a=i.warning,c=void 0===a?{}:a,s=i.paging,l=i.data,d=s.isEnd,f=s.next,p=l.receiver,h=l.sender,b=l.messages,v=h.id,g=e[v],O=(null==g?void 0:g.sender)?U(g):[],y=B(g),j=y.lastTimeStamp,E=M(b,j),C=E.formattedMessages,w=E.lastTimeStamp;return Object.assign({},e,Object(r.a)({},v,{receiver:p,sender:h,messages:[].concat(Object(o.a)(C),Object(o.a)(O)),isLoading:!1,isEnd:d,nextApiUrl:f,lastTimeStamp:w,inputValue:e[v].inputValue,warning:c}))}if(t.type===m.ADD_NEW_MESSAGE){var T=t.meta,_=T.senderId,S=T.messageInfo,A=e[_],k=U(A),R=B(A),I=R.lastTimeStamp,x=V(S,I),N=x.message,P=x.lastTimeStamp;return Object.assign({},e,Object(r.a)({},_,Object.assign({},e[_],{messages:[].concat(Object(o.a)(k),[N]),lastTimeStamp:P})))}if(t.type===m.INPUT_MESSAGE){var L=t.meta,H=L.senderId,q=L.inputValue;return Object.assign({},e,Object(r.a)({},H,Object.assign({},e[H],{inputValue:q})))}if(t.type===m.ADD_TEMP_IMAGE_MESSAGE||t.type===m.ADD_TEMP_ECOM_CARD_MESSAGE){var K=t.meta.receiverId;return Object.assign({},e,Object(r.a)({},K,Object.assign({},e[K],{messages:[].concat(Object(o.a)(e[K].messages),[Object.assign({},t.meta.data,{status:u.e.loading})])})))}if(t.type===m.SET_IMAGE_SEND_FAILURE){var W=t.meta,Y=W.receiverId,Q=W.tempMessageId,Z=W.file,J=e[Y].messages,X=G(J,Q,{file:Z});return Object.assign({},e,Object(r.a)({},Y,Object.assign({},e[Y],{messages:X})))}if(t.type===m.SEND_MESSAGE.request||t.type===m.SEND_ECOM_MESSAGE.request){var $=t.meta,ee=$.receiverId,te=$.data.contentType;if(te===u.a.image){var ne=t.meta.data,re=ne.image.url,oe=ne.id,ie=e[ee].messages,ae=F(ie,oe,re);return Object.assign({},e,Object(r.a)({},ee,Object.assign({},e[ee],{messages:ae})))}if(te===u.a.ecomcard&&1===t.meta.data.cardType){var ce=e[ee].messages;return Object.assign({},e,Object(r.a)({},ee,Object.assign({},e[ee],{messages:ce})))}return Object.assign({},e,Object(r.a)({},ee,Object.assign({},e[ee],te===u.a.text&&{inputValue:""},{messages:[].concat(Object(o.a)(e[ee].messages),[Object.assign({},t.meta.data,{status:u.e.loading})])})))}if(t.type===m.SEND_MESSAGE.success||t.type===m.SEND_ECOM_MESSAGE.success){var se=t.payload.info,ue=t.meta,le=ue.receiverId,de=ue.data,fe=de.id,pe=de.contentType,he=e[le],be=B(he),ve=be.lastTimeStamp,me=he.messages,ge=z(me,fe,se,ve),Oe=ge.realMessageList,ye=ge.lastTimeStamp;return Object.assign({},e,Object(r.a)({},le,Object.assign({},e[le],pe===u.a.text&&{inputValue:""},{messages:Oe,lastTimeStamp:ye})))}if(t.type===m.SEND_MESSAGE.failure||t.type===m.SEND_ECOM_MESSAGE.failure){var je=t.meta,Ee=je.receiverId,Ce=je.data.id,we=e[Ee].messages,Te=G(we,Ce);return Object.assign({},e,Object(r.a)({},Ee,Object.assign({},e[Ee],{messages:Te})))}if(t.type===m.DELETE_MESSAGE.success||t.type===m.DELETE_LOCAL_MESSAGE){var _e=t.meta,Se=_e.messageId,Ae=_e.senderId,ke=D(e[Ae].messages,Se);return Object.assign({},e,Object(r.a)({},Ae,Object.assign({},e[Ae],{messages:ke})))}if(t.type===m.GET_ECOM_PROFILE.success){var Re=t.payload.receiver;return Object.assign({},e,{isEcomMerchant:Boolean(Re.isMerchant)})}return e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return f}));var r=n(55),o=n.n(r),i=n(208),a=n.n(i),c=n(354),s=n.n(c);function u(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=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 i,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var d={CONTENT_OPERATION:"content_operation",TEXT_STYLE:"text_style",LIST:"list",BLOCK:"block",STRUCTURE_GENERATION:"structure_generation",PROFESSIONAL_MEDIA:"professional_media",BASIC_MEDIA:"basic_media",BUSINESS_MEDIA:"business_media"},f=function(e){var t,n=Object.values(d).reduce((function(e,t){return Object.assign({},e,o()({},t,[]))}),{}),r=[],i=[],c=u(e);try{for(c.s();!(t=c.n()).done;){var l=t.value.toolbarV2;if(a()(l)||Array.isArray(l)){var f,p=u(a()(l)?[l]:l);try{for(p.s();!(f=p.n()).done;){var h=f.value;h.parentName?i.push(h):r.push(h)}}catch(e){p.e(e)}finally{p.f()}}}}catch(e){c.e(e)}finally{c.f()}for(var b=function(){var e=m[v],t=e.section,r=e.parentName,o=n[t];if(r){var i=o.find((function(e){return e.name===r}));if(!i)return"continue";i.childItems||(i.childItems=[]),i.childItems.includes(e)||(i.childItems.push(e),i.childItems=s()(i.childItems,(function(e){var t;return null!==(t=e.priority)&&void 0!==t?t:1/0})))}else o.push(e),o=s()(o,(function(e){var t;return null!==(t=e.priority)&&void 0!==t?t:1/0}));n[t]=o},v=0,m=[].concat(r,i);v<m.length;v++)b();return n};t.a=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(680),o=n(681);function i(e){return t=e,"[object File]"!==Object.prototype.toString.call(t)?Promise.resolve(e):r.readOrientationCode(e).then((function(t){if(-1===t||1===t)return e;var n,r=window.URL.createObjectURL(e);return(n=r,new Promise((function(e,t){var r=new Image;r.src=n,r.onload=function(){return e(r)},r.onerror=t}))).then((function(e){return window.URL.revokeObjectURL(r),n=Object(o.drawImage)(e,t),new Promise((function(e){return n.toBlob(e,"image/jpeg")}));var n}))})).catch((function(){return e}));var t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return j}));var r=n(30),o=n.n(r),i=n(22),a=n.n(i),c=n(24),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(25),h=n.n(p),b=n(1),v=n.n(b),m=n(21),g=n(62),O=n(93),y=function(e){function t(e){var n;return a()(this,t),(n=l()(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(O.sendRaven)({adjson:Object(g.c)(this.props,"children.props"),error:e,info:t})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),t}(v.a.Component),j=function(e){return function(t){return t.data?v.a.createElement(y,null,v.a.createElement(e,o()({},t,{data:Object(m.camelizeKeys)(t.data)}))):null}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return P}));var r=n(2),o=n.n(r),i=n(1),a=n.n(i),c=n(95),s=n(196),u=n(3),l=function(e){var t=e.name,n=e.avatarUrl,r=e.headline;return Object(u.c)("div",{className:"AutoComplete-UserItem"},Object(u.c)(c.a,{className:"AutoComplete-UserAvatar",url:n,alt:t}),Object(u.c)("div",{className:"AutoComplete-UserDetail"},Object(u.c)("div",{className:"AutoComplete-UserName"},t),Object(u.c)(s.a,{className:"AutoComplete-UserHeadline",html:r})))};l.propTypes={name:o.a.string,avatarUrl:o.a.string,headline:o.a.string};var d=l,f=n(22),p=n.n(f),h=n(24),b=n.n(h),v=n(25),m=n.n(v),g=n(27),O=n.n(g),y=n(16),j=n.n(y),E=n(30),C=n.n(E),w=n(6),T=n.n(w),_=n(121),S=n.n(_),A=n(84),k=n(43),R=function(e){var t=e.name;return Object(u.c)("div",{className:"AutoComplete-DefaultItem"},t)};R.propTypes={name:o.a.string},R.defaultProps={name:""};var I=R,x=n(90);function N(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 O()(this,n)}}var D=function(e){m()(n,e);var t=N(n);function n(e){var r;p()(this,n),(r=t.call(this,e)).handleOpen=function(){var e=r.props,t=e.onChange,n=e.onOpen,o=r.state,i=o.value,a=o.menuOpened;r.isEmpty()||a||!r.menu||(r.menu.popover.open(),r.setState({selectedIndex:r.getDefaultSelectIndex(),menuOpened:!0},(function(){"function"==typeof n&&n(),t(i)})))},r.handleClose=function(e,t,n){if(r.state.menuOpened){var o,i=r.state.value,a=r.props,c=a.items,s=a.groups,u=a.getText,l=a.onSelect,d=a.onClose,f=a.onEnterInput;if(t=t||r.state.selectedIndex,e)if(r.openAvailable=!1,-1===t)f();else c?o=c[t]:s[n||r.state.selectedGroupKey]&&(o=s[n||r.state.selectedGroupKey][t]),o&&l(i=u(o),o);r.menu&&r.menu.popover.close(),r.setState({value:i,menuOpened:!1,selectedIndex:r.getDefaultSelectIndex()},(function(){"function"==typeof d&&d()}))}},r.handleChange=function(e){var t=e.target.value,n=r.props,o=n.onChange,i=n.inputProps.onChange;r.openAvailable=!0,r.setState({value:t}),i&&i(t),o(t)},r.handleFocus=function(e){var t=r.props.onFocus;r.openAvailable=!0,r.handleOpen(),t&&t(e)},r.handleBlur=function(e){var t=r.props.onBlur;r.openAvailable=!1,r.handleClose(),"function"==typeof t&&t(e)},r.handleKeyDown=function(e){var t=e.keyCode;13!==t||r.isCompositing||(r.isAbleEnterToSearch=!0),38!==t&&40!==t||e.preventDefault();var n=r.props.inputProps;n&&n.onKeyDown&&n.onKeyDown(e)},r.handleKeyUp=function(e){var t=r.props,n=t.items,o=t.groups,i=t.onEnterInput,a=e.keyCode;if(r.isAbleEnterToSearch||13!==a)if(13===a||27===a){if(r.state.menuOpened)r.openAvailable=!1,r.handleClose(13===a);else if(13===a)return void i()}else 38===a?n?r.setState((function(e){var t=e.selectedIndex;return{selectedIndex:t<=0?n.length-1:t-1}})):r.groupKeyArray&&r.groupKeyArray.length&&r.setState((function(e){var t=e.selectedIndex,n=e.selectedGroupKey,i=t-1,a=n;if(i<0){var c=r.groupKeyArray.indexOf(n),s=0===c?r.groupKeyArray.length-1:c-1;a=r.groupKeyArray[s],i=o[a].length-1}return{selectedIndex:i,selectedGroupKey:a}})):40===a&&(n?r.setState((function(e){var t=e.selectedIndex;return{selectedIndex:t===n.length-1?0:t+1}})):r.groupKeyArray&&r.groupKeyArray.length&&r.setState((function(e){var t=e.selectedIndex,n=e.selectedGroupKey,i=t+1,a=n;if(i===o[n].length){var c=r.groupKeyArray.indexOf(n),s=c===r.groupKeyArray.length-1?0:c+1;a=r.groupKeyArray[s],i=0}return{selectedIndex:i,selectedGroupKey:a}})));else r.isAbleEnterToSearch=!0},r.handleCompositionStart=function(){r.isCompositing=!0,r.isAbleEnterToSearch=!1},r.handleCompositionEnd=function(){r.isCompositing=!1};var o=r.props,i=o.value,a=o.items,c=o.groups;return r.state={id:null,value:i,selectedIndex:r.getDefaultSelectIndex(),selectedGroupKey:null,menuOpened:!1},r.openAvailable=!1,r.isCompositing=!1,r.isAbleEnterToSearch=!0,r.previous={items:a,groups:c},r}return b()(n,[{key:"componentDidMount",value:function(){this.setState({id:S()("AutoComplete")}),this.checkMenuStatus()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.value,n=e.value,r=e.items,o=e.groups;t!==n&&this.setState({value:n}),o&&(this.groupKeyArray=Object.keys(o).filter((function(e){return o[e].length>0})),this.groupKeyArray.length&&this.setState({selectedIndex:this.getDefaultSelectIndex(),selectedGroupKey:this.groupKeyArray[0]})),this.isEmpty(e)||(this.previous={items:r,groups:o})}},{key:"componentDidUpdate",value:function(){this.checkMenuStatus()}},{key:"getDefaultSelectIndex",value:function(){return this.props.autoSelect?0:-1}},{key:"checkMenuStatus",value:function(){var e=this.state.menuOpened,t=this.isEmpty();t||e||!this.openAvailable?t&&e&&this.handleClose():this.handleOpen()}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.items,n=e.groups,r=e.isItemDisabled,o="function"==typeof r&&t?t.filter((function(e){return!r(e)})):t;return!(o&&0!==o.length||n&&Object.values(n).some((function(e){return e.length>0})))}},{key:"renderItems",value:function(e){var t=this,n=this.props,r=n.renderItem,o=n.isItemDisabled,i=this.state,a=i.id,c=i.selectedIndex;return e.map((function(e,n){return Object(u.c)(k.b,{key:n,id:"".concat(a,"-").concat(n),tag:"div",disabled:o(e),hovered:n===c,onMouseEnter:function(){t.setState({selectedIndex:n})},onClick:function(){return t.handleClose(!0,n)},onMouseDown:function(e){return e.preventDefault()},role:"option"},r(e))}))}},{key:"renderGroupItems",value:function(e,t){var n=this,r=this.props,o=r.renderItem,i=r.isItemDisabled,a=this.state,c=a.id,s=a.selectedIndex,l=a.selectedGroupKey;return e.map((function(e,r){return Object(u.c)(k.b,{key:r,id:"".concat(c,"-").concat(t,"-").concat(r),tag:"div",disabled:i(e),hovered:r===s&&t===l,onMouseEnter:function(){n.setState({selectedIndex:r,selectedGroupKey:t})},onClick:function(){return n.handleClose(!0,r,t)},onMouseDown:function(e){return e.preventDefault()},role:"option"},o(e))}))}},{key:"renderGroups",value:function(){var e=this,t=this.props,n=t.labels,r=t.groups,o=t.renderLabel;return Object.keys(r).filter((function(e){return r[e].length>0})).map((function(t,i){return Object(u.c)("div",{className:"AutoComplete-group",key:i},n[t]&&o("".concat(n[t])),e.renderGroupItems(r[t],t))}))}},{key:"renderInner",value:function(){var e=this.props,t=e.items,n=e.groups,r=this.isEmpty(),o=r?this.previous.items:t,i=r?this.previous.groups:n;return Object(u.c)(a.a.Fragment,null,o&&this.renderItems(o),i&&this.renderGroups(i))}},{key:"renderInfiLoading",value:function(){var e=this.props.infiLoaderProps;return Object(u.c)(x.b,e,this.renderInner())}},{key:"render",value:function(){var e=this,t=this.props,n=t.inputProps,r=t.menuProps,o=t.infiLoaderProps,i=t.className,a=t.onRef,c=t.autoFocus,s=this.state,l=s.id,d=s.value,f=s.selectedIndex,p=s.selectedGroupKey,h=Object(u.c)(A.a,C()({},n,{value:d,onRef:function(t){e.inputNode=t,a&&a(t)},onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,onCompositionStart:this.handleCompositionStart,onCompositionEnd:this.handleCompositionEnd,autoComplete:"off",autoFocus:c,role:"combobox","aria-expanded":!1,"aria-autocomplete":"list","aria-activedescendant":"".concat(l).concat(p?"-".concat(p):"","-").concat(f)}));return Object(u.c)("div",{className:i},Object(u.c)(k.c,C()({},r,{menuClassName:T()("AutoComplete-menu",r.menuClassName),menuContainerClassName:r.menuContainerClassName,preventCloseOnTarget:void 0===r.preventCloseOnTarget||r.preventCloseOnTarget,toggler:h,placement:"bottom-left",arrowed:!1,ref:function(t){e.menu=t},toggleEvent:"keyup",ariaProps:{role:"listbox"},noLayer:!0}),o?this.renderInfiLoading():this.renderInner()))}}]),n}(i.Component);D.defaultProps={renderItem:function(e){return Object(u.c)(I,e)},renderLabel:function(e){return Object(u.c)("span",null,e)},getText:function(e){return e.name},value:"",autoFocus:!1,autoSelect:!0,onEnterInput:function(){},isItemDisabled:function(){return!1},inputProps:{},menuProps:{},onChange:function(){},onSelect:function(){}},D.propTypes={autoFocus:o.a.bool,autoSelect:o.a.bool,onRef:o.a.func,items:o.a.array,labels:o.a.object,groups:o.a.object,onChange:o.a.func,onSelect:o.a.func,onOpen:o.a.func,onClose:o.a.func,onFocus:o.a.func,onBlur:o.a.func,onEnterInput:o.a.func,inputProps:o.a.object,menuProps:o.a.object,isItemDisabled:o.a.func,renderItem:o.a.func,renderLabel:o.a.func,getText:o.a.func,value:o.a.string};var P=D},function(e,t,n){var r=n(286),o=n(745),i=n(746),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(459),o=n(464);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"k",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"m",(function(){return l})),n.d(t,"f",(function(){return d})),n.d(t,"c",(function(){return f})),n.d(t,"h",(function(){return p})),n.d(t,"i",(function(){return h})),n.d(t,"g",(function(){return b})),n.d(t,"a",(function(){return m})),n.d(t,"l",(function(){return g})),n.d(t,"e",(function(){return O})),n.d(t,"j",(function(){return y}));var r=n(49),o=n(13),i=n(28),a=n(37),c=function(e){return e.env.edition},s=function(e){return e.env.userAgent},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.includeTablet,r=void 0!==n&&n,o=s(e),i=o.Mobile||o.iOS,a=o.Tablet;return r?i:i&&!a},l=function(e){return Object(o.useSelector)((function(t){return u(t,e)}))},d=Object(r.createSelector)(s,(function(e){return e.Zhihu||e.ZhihuHybrid})),f=Object(r.createSelector)(s,(function(e){return!e.isBot})),p=Object(r.createSelector)(u,f,a.b,(function(e,t,n){return(t||!n)&&e})),h=(Object(r.createSelector)(p,c,(function(e,t){return e&&t.baidu})),Object(r.createSelector)(p,c,(function(e,t){return e&&t.sogouBeijing})),Object(r.createSelector)(p,c,(function(e,t){return e&&!t.sogouBeijing&&!t.baidu&&!t.miniProgram}))),b=function(e){return e.env.referer},v=["zhihu.com/special/19590770"],m=function(e,t){var n=(e.env.ab.config.params||[]).find((function(e){return e.id===t}));return n?n.value:null},g=function(e){return Object(o.useSelector)((function(t){return m(t,e)}))};Object(r.createSelector)(h,(function(e){return v.some((function(t){return e.env.referer.includes(t)}))}),(function(e,t){return e&&!t}));function O(e){var t=e.env;return"office"===(null==t?void 0:t.trafficSource)}var y=function(e,t){var n,r=t.type,o=t.id;return!!i.F[r]&&(e.env.userAgent.Mobile&&(null===(n=i.F[r])||void 0===n?void 0:n.includes(String(o))))}},function(e,t,n){"use strict";var r=n(920);e.exports=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return R})),n.d(t,"b",(function(){return k})),n.d(t,"c",(function(){return H})),n.d(t,"d",(function(){return P})),n.d(t,"e",(function(){return q}));n(360);var r=n(79),o=n.n(r),i=n(1),a=n.n(i),c=n(2),s=n.n(c),u=n(1050),l=n(1032),d=n(20),f=function(e){return a.a.createElement(d.a,e,a.a.createElement("path",{d:"M5.296 3.207L12 6l6.704-2.793A1.658 1.658 0 0 1 21 4.737v11.408c0 .67-.402 1.273-1.02 1.53L12 21l-7.98-3.325A1.658 1.658 0 0 1 3 16.145V4.737a1.658 1.658 0 0 1 2.296-1.53z"}))};f.defaultProps={name:"Wiki"};var p=f,h=n(59),b=n(3),v=n(14);n(102);var m=function(e){var t=e.as,n=void 0===t?"svg":t,r=e.size,i=o()(e,["as","size"]);return Object(b.c)(n,Object.assign({},i,r&&{width:r,height:r}))},g={name:"g9eqf4-StrutAlign",styles:"display:inline-flex;align-items:center;;label:StrutAlign;"},O=function(e){var t=e.children;return Object(b.c)("span",{css:g},"",t)},y=function(e){return Object(b.c)("path",Object.assign({d:"M2.63951518,13.3895441 C3.70763333,14.2842292 4.44777637,16.1226061 4.30075305,17.5023312 L4.32211542,17.3063047 C4.17509209,18.6910561 5.17786655,19.7063729 6.5613937,19.5844846 L6.364106,19.6008202 C7.75140298,19.4789319 9.57474349,20.2554985 10.4468305,21.3349009 L10.3224262,21.1803415 C11.1982831,22.2647703 12.6257916,22.2723098 13.5167278,21.2079863 L13.3898102,21.3600325 C14.2845162,20.2919393 16.1229361,19.5518136 17.5026934,19.6988334 L17.3054057,19.6774716 C18.6914461,19.8244915 19.7067866,18.8217404 19.5836389,17.4395022 L19.6012314,17.6367853 C19.4793403,16.2482641 20.255925,14.4249662 21.3353526,13.5528995 L21.1807897,13.677301 C22.2639871,12.8014646 22.2727834,11.3739894 21.2084351,10.483074 L21.3604848,10.6099886 C20.2923667,9.71530351 19.5522236,7.87818322 19.6992469,6.49720154 L19.6778846,6.69448464 C19.8249079,5.30847665 18.8221335,4.2944164 17.4386063,4.41630468 L17.635894,4.39871256 C16.248597,4.52185742 14.4252565,3.74529084 13.5531695,2.66588842 L13.6775738,2.81919121 C12.8017169,1.73601905 11.3742084,1.72722299 10.4832722,2.79154644 L10.6101898,2.63950024 C9.71548377,3.70759343 7.87706394,4.44771919 6.49730661,4.30195588 L6.69459432,4.32206116 C5.30855394,4.17504128 4.29447,5.17904888 4.41636114,6.56128713 L4.3987686,6.36400404 C4.52065973,7.75126861 3.74407501,9.57456653 2.66464737,10.4478898 L2.81921035,10.3222318 C1.73601288,11.1993248 1.72721662,12.6255433 2.79156494,13.5164587 L2.63951518,13.3895441 Z"},e))},j=function(){return Object(b.c)("path",{d:"M3.56231227,13.8535307 C2.40051305,12.768677 2.41398885,11.0669203 3.59484487,9.99979213 L3.59222085,9.99654885 C4.26730143,9.45036719 4.79446755,8.21005186 4.7184197,7.34453784 L4.72305873,7.34412719 C4.66942824,5.75539997 5.8824188,4.56066914 7.47188965,4.64242381 L7.47229112,4.6386236 C8.33515314,4.72977993 9.58467253,4.22534048 10.1426329,3.55925173 L10.1462611,3.56228565 C11.2316055,2.40008701 12.9353108,2.41394456 14.0015072,3.59634088 L14.0047263,3.59374004 C14.5498229,4.26841874 15.7896857,4.79521622 16.6545744,4.71844347 L16.6549836,4.72304294 C18.245027,4.66894057 19.4396947,5.88213996 19.3575031,7.47241135 L19.3623099,7.47292747 C19.2704388,8.3358681 19.7742711,9.58421483 20.4407199,10.1424506 L20.437686,10.1460789 C21.5997217,11.2312209 21.5860695,12.9345218 20.4042441,14.0007396 L20.4072865,14.0045125 C19.7325967,14.5495925 19.2055209,15.7896954 19.2815865,16.6561959 L19.2770449,16.6565978 C19.3315454,18.2453037 18.1173775,19.4393568 16.5274188,19.3571512 L16.5269029,19.3619539 C15.6647098,19.270083 14.415408,19.7741709 13.8573671,20.4403558 L13.8537409,20.4373235 C12.76842,21.5995708 11.0650432,21.5864553 9.99899434,20.4039226 L9.99527367,20.406923 C9.45025436,19.7323399 8.21017638,19.2051872 7.34461983,19.2812352 L7.344304,19.2776405 C5.75448683,19.3312904 4.55977145,18.1170085 4.64254978,16.527117 L4.63769921,16.5265942 C4.72957031,15.6644394 4.22547659,14.4151814 3.55928015,13.8571569 L3.56231227,13.8535307 Z"})},E=function(){return Object(b.c)("path",{d:"M15.7813142,3.57503307 L15.7854711,3.57151971 L15.8921602,3.69421038 C16.4424581,4.28431051 17.5350358,4.74412453 18.2894455,4.73316843 C19.9333771,4.58833861 21.2181294,5.79159049 21.15505,7.4886116 C21.0701034,8.2865101 21.5265142,9.46606744 22.1127648,10.035647 C23.3717224,11.0894606 23.4353862,12.8395995 22.2012979,14.0008558 C21.5713113,14.5098203 21.0601754,15.6488699 21.0713212,16.4574574 C21.2178026,18.101598 20.0080847,19.4177693 18.3112241,19.3546942 C17.5092159,19.2692363 16.3558202,19.7109277 15.7654686,20.3212774 L15.6621219,20.4336952 C14.6500533,21.6427249 13.0849849,21.6436494 11.9474232,20.5631265 C10.8923672,21.6870601 9.32522077,21.5992584 8.24023034,20.4486779 L8.1078387,20.3064513 C7.55404654,19.712602 6.49129072,19.2608283 5.70952995,19.2733367 L5.54483281,19.2812165 C3.90192421,19.4259562 2.78153527,18.2170275 2.84495915,16.5118397 C2.93043705,15.7096812 2.48857834,14.5554516 1.90697576,13.9902121 C0.646877359,12.9371723 0.564979867,11.1620752 1.79820938,10.0003274 C2.42856138,9.49033387 2.93982368,8.35088862 2.92860713,7.54223086 C2.78363994,5.89831142 3.99233598,4.58198069 5.68797562,4.64483357 C6.48630047,4.72917193 7.66684346,4.2727307 8.23582678,3.68720379 C9.25777524,2.46637146 10.9345424,2.36957086 12.0582149,3.44874212 C13.122914,2.42536528 14.7150653,2.44435809 15.755462,3.54647107 L15.7776557,3.57086138 L15.7813142,3.57503307 Z"})},C=function(e){return Object(b.c)(m,Object.assign({viewBox:"0 0 24 24",size:30,x:-3,y:-3},e))},w={name:"svsrxm-Octangle",styles:"overflow:visible!important;;label:Octangle;"},T=function(e){var t=e.fg,n=e.bg,r=e.stroke,i=e.icon,c=o()(e,["fg","bg","stroke","icon"]),s=Boolean(n);return Object(b.c)(m,Object.assign({viewBox:"0 0 24 24",size:24,css:w},c),Object(b.c)(C,{fill:r},s?Object(b.c)(E,null):Object(b.c)(j,null)),s?Object(b.c)(a.a.Fragment,null,Object(b.c)(y,{fill:n,transform:"translate(".concat(2,")")}),Object(b.c)(y,{fill:t,transform:"translate(-".concat(2,")")})):Object(b.c)(y,{fill:t}),Object(b.c)(i,{size:12,fill:"#fff",x:6+(s?-2:0),y:6}))},_=function(e){var t=e.size,n=void 0===t?18:t,r=e.center,i=void 0===r||r,a=e.icon,c=e.stroke,s=void 0===c?"background":c,u=e.fg,l=void 0===u?"currentColor":u,d=e.bg,f=o()(e,["size","center","icon","stroke","fg","bg"]),p=Object(h.f)().colors,v=function(e){return p[e]||e},m=Object(b.c)(T,Object.assign({size:n,bg:v(d),fg:v(l),stroke:v(s),icon:a},f));return i?Object(b.c)(O,null,m):m},S=a.a.memo(_),A={BadgeG:{fg:"#FF9607",icon:u.a},BadgeC:{fg:"#0066FF",icon:l.a},BadgeW:{fg:"#6C53F1",icon:p},BadgeGC:{fg:"#FF9607",bg:"#0066FF",icon:u.a},BadgeCW:{fg:"#0066FF",bg:"#6C53F1",icon:l.a},BadgeGW:{fg:"#FF9607",bg:"#6C53F1",icon:u.a}},k=function(e){return Object(b.c)(S,Object.assign({},A.BadgeG,e))},R=function(e){return Object(b.c)(S,Object.assign({},A.BadgeC,e))},I=function(e){return Object(b.c)(S,Object.assign({},A.BadgeW,e))},x=function(e){return Object(b.c)(S,Object.assign({},A.BadgeGC,e))},N=function(e){return Object(b.c)(S,Object.assign({},A.BadgeCW,e))},D=function(e){return Object(b.c)(S,Object.assign({},A.BadgeGW,e))};function P(e){return e?e.mergedBadges?e.mergedBadges.reduce((function(e,t){return"best"===t.type?e.bestAnswerer=Object.assign({},t,{topics:t.sources}):"identity"===t.type?(e.identity||(e.identity=[]),e.identity.push(t)):e[t.type]=t,e}),{title:e.title}):e.length?(e.forEach((function(e){"identity"===e.type&&(t?t.push(e):t=[e]),"best_answerer"===e.type&&(n=e),"baike"===e.type&&(r=e)})),{identity:t,bestAnswerer:n,baike:r}):{}:{};var t,n,r}var L="https://www.zhihu.com/question/48509984",M="https://www.zhihu.com/question/48510028",U="https://www.zhihu.com/question/330307214";function B(e){var t=e.Icon,n=e.badgeInfo,r=e.containerProps,a=o()(e,["Icon","badgeInfo","containerProps"]);return Object(b.c)(v.Link,Object.assign({href:Object(i.useMemo)((function(){return function(e){if(!e)return null;var t=e.bestAnswerer,n=e.identity,r=e.active,o=e.baike;return t?t.url||L:n?n.url||M:r?r.url:o?U:null}(n)}),[n]),target:"_blank",display:"inline-block"},r),Object(b.c)(t,a))}function z(e){return!0===e?"已认证的官方帐号":!1===e?"已认证的个人":"已认证的帐号"}function F(e,t){return Object(i.useMemo)((function(){var n=e||P(t);return{Icon:function(e){if(!e)return null;var t=e.identity,n=e.bestAnswerer,r=e.baike;return t?n?x:r?N:R:n?r?D:k:r?I:null}(n),parsedBadge:n}}),[e,t])}function G(e){var t=e.badgeInfo,n=e.badge,r=e.isOrg,a=e.className,c=e.linkify,s=e.enableTooltip,u=o()(e,["badgeInfo","badge","isOrg","className","linkify","enableTooltip"]),l=F(t,n),d=l.Icon,f=l.parsedBadge,p=Object(i.useMemo)((function(){return s?function(e,t){if(e.title)return e.title;var n=e.identity,r=e.bestAnswerer,o=e.baike;return[null==r?void 0:r.description,n&&z(t),null==o?void 0:o.description].filter(Boolean).join(" · ")}(f,r):null}),[s,f,r]);if(!d)return null;var h=Object.assign({className:a},p&&{"aria-label":p,"data-tooltip":p});return c?Object(b.c)(B,Object.assign({Icon:d,badgeInfo:f,containerProps:h},u)):Object(b.c)(d,Object.assign({},h,u))}function V(e){var t=e.badgeInfo,n=e.badge,r=e.size,i=void 0===r?18:r,a=e.linkify,c=void 0!==a&&a,s=e.enableTooltip,u=void 0!==s&&s,l=e.isOrg,d=void 0!==l&&l,f=o()(e,["badgeInfo","badge","size","linkify","enableTooltip","isOrg"]);return n||t&&Object.keys(t).length?Object(b.c)(G,Object.assign({},f,{badgeInfo:t,badge:n,size:i,linkify:c,enableTooltip:u,isOrg:d})):null}V.propTypes={badgeInfo:s.a.object,badge:s.a.oneOfType([s.a.shape({title:s.a.string,mergedBadges:s.a.array,detailBadges:s.a.array}),s.a.arrayOf(s.a.shape({type:s.a.oneOf(["identity","best_answerer","baike"])}))]),linkify:s.a.bool,enableTooltip:s.a.bool,isOrg:s.a.bool};var H=a.a.memo(V);var q=function(e){var t=arguments.length>1&&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}}},function(e,t,n){var r=n(899),o=n(457);e.exports=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=o(n))==n?n:0),void 0!==t&&(t=(t=o(t))==t?t:0),r(o(e),t,n)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return x}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(359),h=n(252),b=n(239);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var m=function(e){s()(n,e);var t=v(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state=Object.assign({},e.state,{imageReady:!1,image:null}),e}return a()(n,[{key:"handleStart",value:function(){var e,t=this;"file"===this.value.type?Object(b.a)(this.value.value).then((function(e){t.update({imageReady:!0,image:window.URL.createObjectURL(e)})})):this.update({imageReady:!0}),Promise.race([this.props.uploadImage(this.value.value),(e=9e4,new Promise((function(t,n){return setTimeout(n,e)})))]).then((function(e){t.state.aborted||t.complete(e)})).catch((function(e){t.state.aborted||t.error(e)}))}}]),n}(h.a),g=n(423);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var y=function(e){s()(n,e);var t=O(n);function n(){return o()(this,n),t.apply(this,arguments)}return a()(n,[{key:"handleStart",value:function(){var e=this;this.props.uploadEmbeddedVideo(this.value).then((function(t){e.state.aborted||e.complete(t)})).catch((function(t){e.state.aborted||e.error(t)}))}}]),n}(h.a);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var E=function(e){s()(n,e);var t=j(n);function n(){return o()(this,n),t.apply(this,arguments)}return a()(n,[{key:"handleStart",value:function(){var e=this,t=new FormData;t.append("document",this.value),fetch("https://www.zhihu.com/api/v4/document_convert",{method:"POST",body:t,credentials:"include",headers:{"x-requested-with":"fetch"}}).then((function(e){return e.ok?e.json():Promise.reject(e.json())})).then((function(t){e.state.aborted||e.complete(t)})).catch((function(t){e.state.aborted||e.error(t)}))}}]),n}(h.a),C={image:m,video:g.a,document:E,"embedded-video":y};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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var T={usage:null,useV5Api:!1,apiRoot:null,noSizeCheck:!1,noCoverFetch:!1},_=function(e){s()(n,e);var t=w(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o()(this,n),(e=t.call(this)).handleUploadStart=function(){0===e.uploadingCount&&e.emit("start"),e.uploadingCount++},e.handleUploadEnd=function(){e.uploadingCount--,0===e.uploadingCount&&e.emit("end")},e.handleUploadError=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];(t=e).emit.apply(t,["error"].concat(r))},e.props=Object.assign({},T,{},r),e.sessions={},Object.keys(C).forEach((function(t){e.sessions[t]=new Map})),e.uploadingCount=0,e}return a()(n,[{key:"createSession",value:function(e,t){var n=this,r=new C[e](t,this.props);return r.on("error",(function(t){try{n.handleUploadError(t,e,r)}catch(e){}})),r.on("start",this.handleUploadStart),r.on("abort",this.handleUploadEnd),r.on("complete",this.handleUploadEnd),r.on("error",this.handleUploadEnd),this.sessions[e].set(t,r),r}},{key:"getSession",value:function(e,t){return this.sessions[e].get(t)||this.createSession(e,t)}}]),n}(p.EventEmitter),S=n(30),A=n.n(S),k=n(1),R=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var x=function(e){return function(t){return function(n){s()(i,n);var r=I(i);function i(t){var n;o()(this,i),(n=r.call(this,t)).handleChange=function(){n.forceUpdate()};var a=n.props.uploadManager,c=e(n.props),s=c.type,u=c.value;return n.session=a.getSession(s,u),n}return a()(i,[{key:"componentDidMount",value:function(){this.session.addListener("change",this.handleChange),this.forceUpdate()}},{key:"componentWillUnmount",value:function(){this.session.removeListener("change",this.handleChange)}},{key:"render",value:function(){return Object(R.c)(t,A()({},this.props,{session:this.session}))}}]),i}(k.Component)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return l}));var r=n(49),o=n(13),i=n(28),a=function(e){var t=e.currentUser,n=e.entities.users;if(t){if(n[t])return n[t];var r=Object.keys(n).find((function(e){return n[e].id===t}));return r?n[r]:void 0}},c=Object(r.createSelector)(a,(function(e){return Boolean(e)&&"organization"===e.userType})),s=Object(r.createSelector)(a,(function(e){var t;return null==e||null===(t=e.vipInfo)||void 0===t?void 0:t.isVip})),u=Object(r.createSelector)([a,function(e,t){return t}],(function(e,t){return Boolean(e&&t&&e.id===t.id)})),l=function(e){return Object(o.useSelector)((function(t){return u(t,e)}))};Object(r.createSelector)(a,(function(e){var t;return[i.x.ENTER_RECRUIT,i.x.NO_SETTING,i.x.PASS].includes(null==e||null===(t=e.mcnUserInfo)||void 0===t?void 0:t.status)})),Object(r.createSelector)(a,(function(e){var t;return(null==e||null===(t=e.mcnUserInfo)||void 0===t?void 0:t.availableSource)||[]})),Object(r.createSelector)(a,(function(e){return Boolean(null==e?void 0:e.userType)&&"guest"!==e.userType}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(55),o=n.n(r),i=n(392),a=n(306),c=function(){return"https://api.zhihu.".concat(Object(a.a)()?"dev":"com")};function s(e){var t=e.accessKeyId,n=e.accessKeySecret,r=e.stsToken;return Object(i.a)().then((function(){return new window.OSS(Object.assign({},Object(a.a)()?{endpoint:"https://oss-cn-beijing.aliyuncs.com",bucket:"zhihu-pics-dev",cname:!1}:{endpoint:"https://zhihu-pics-upload.zhimg.com",bucket:"zhihu-pics",cname:!0},{secure:!0,accessKeyId:t,accessKeySecret:n,stsToken:r}))}))}var u=n(422);function l(e){var t=e.uploadId,n=e.objectKey,r=e.file,o=e.client,i=e.onProgress;return Promise.resolve(t&&o.listParts(n,t).then((function(e){return Object(u.a)(r,e)}))).then((function(e){return function e(t){var n=t.client,r=t.file,o=t.objectKey,i=t.onProgress,a=t.checkpoint,c=a;return n.multipartUpload(o,r,Object.assign({progress:function(e,t,n){if(c=t,i)return i(e,t,n)},mime:r.type,parallel:3,timeout:2e5,partSize:1048576},a&&{checkpoint:a})).catch((function(t){if(c!==a)return e({client:n,objectKey:o,file:r,checkpoint:c});throw t}))}({client:o,file:r,checkpoint:e,onProgress:i,objectKey:n})}))}var d=n(443);function f(e){var t=e.id,n=e.uploadResult;return fetch("".concat(c(),"/images/").concat(t,"/uploading_status"),{credentials:"include",headers:{"Content-Type":"application/json"},method:"PUT",body:JSON.stringify({upload_result:n})})}var p=n(239);function h(e){var t=e.file,n=e.hash,r=e.source,o=e.objectKey;return function(e){var t=e.hash,n=e.source;return fetch("".concat(c(),"/images"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(Object.assign({image_hash:t},n&&{source:n}))}).then((function(e){return e.status<=300?e.json():e.text().then((function(t){var n=new Error(t);throw n.status=e.status,n}))})).then((function(e){var t=e.upload_file,n=e.upload_token;return{uploadFile:{id:t.image_id,objectKey:t.object_key,state:t.state,uploadId:t.upload_id},uploadToken:n&&{accessKeyId:n.access_id,accessKeySecret:n.access_key,accessTimestamp:n.access_timestamp,accessToken:n.access_token,stsToken:n.access_token}}}))}({hash:n,source:r}).then((function(e){var i=e.uploadFile,a=e.uploadToken;return 1===i.state?i:s({accessKeyId:a.accessKeyId,accessKeySecret:a.accessKeySecret,stsToken:a.stsToken}).then((function(e){var a=i.objectKey,c=i.uploadId;return t.size<2097152?function(e){var t=e.client,n=e.objectKey,r=e.file;return t.put(n,r)}({objectKey:a,client:e,file:t}):l({objectKey:a,uploadId:c,client:e,file:t}).catch((function(e){if("SecurityTokenExpired"===e.code&&o!==i.objectKey)return h({file:t,objectKey:i.objectKey,hash:n,source:r});throw e}))})).then((function(){return f({id:i.id,uploadResult:"success"}).then((function(){return i}))}),(function(e){throw f({id:i.id,uploadResult:"fail"}),e}))}))}function b(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"jpg";return e.type?e.type.split("/").pop():e.name?e.name.split(".").pop():t}(e);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.source;return Object(p.a)(e).catch((function(){return e})).then((function(e){return Object(d.a)(e).then((function(t){return h({file:e,hash:t,source:n})}))}))}(e,t).then((function(e){return(t=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:25;return t().then((function(r){return r||n>0&&e(t,n-1)}))}((function(){return t={id:e.id},n=t.id,fetch("".concat(c(),"/images/").concat(n),{credentials:"include",headers:{"Content-Type":"application/json"}}).catch((function(){return null})).then((function(e){return e&&(e.status<=300?e.json():e.text().then((function(t){var n=new Error(t);throw n.status=e.status,n})))})).then((function(e){return!e||"init"!==e.status&&"processing"!==e.status?e:null}));var t,n}),1/0),n=3e4,Promise.race([t,new Promise((function(e,t){return setTimeout((function(){return t(new Error("timeout error: ".concat(r)))}),n)}))])).catch((function(t){throw f({id:e.id,uploadResult:"timeout"}),t}));var t,n,r})).then((function(t){if(t&&"success"===t.status)return(r=URL.createObjectURL(e),new Promise((function(e,t){var n=new Image;n.onload=function(){e(n)},n.onerror=t,n.src=r}))).then((function(e){return Object.assign({},Object.keys(t).reduce((function(e,t){return t.endsWith("src")?Object.assign({},e,o()({},t,[e[t],n].join("."))):e}),t),{data_rawwidth:e.width,data_rawheight:e.height,src:[t.original_src,n].join("."),hash:t.original_hash})}));var r,i=new Error(t&&t.status||"unknown");throw i.name="UploadImageError",i}))}},function(e,t,n){var r;!function(o){"use strict";function i(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,r,o,a){return i((c=i(i(t,e),i(r,a)))<<(s=o)|c>>>32-s,n);var c,s}function c(e,t,n,r,o,i,c){return a(t&n|~t&r,e,t,o,i,c)}function s(e,t,n,r,o,i,c){return a(t&r|n&~r,e,t,o,i,c)}function u(e,t,n,r,o,i,c){return a(t^n^r,e,t,o,i,c)}function l(e,t,n,r,o,i,c){return a(n^(t|~r),e,t,o,i,c)}function d(e,t){var n,r,o,a,d;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var f=1732584193,p=-271733879,h=-1732584194,b=271733878;for(n=0;n<e.length;n+=16)r=f,o=p,a=h,d=b,f=c(f,p,h,b,e[n],7,-680876936),b=c(b,f,p,h,e[n+1],12,-389564586),h=c(h,b,f,p,e[n+2],17,606105819),p=c(p,h,b,f,e[n+3],22,-1044525330),f=c(f,p,h,b,e[n+4],7,-176418897),b=c(b,f,p,h,e[n+5],12,1200080426),h=c(h,b,f,p,e[n+6],17,-1473231341),p=c(p,h,b,f,e[n+7],22,-45705983),f=c(f,p,h,b,e[n+8],7,1770035416),b=c(b,f,p,h,e[n+9],12,-1958414417),h=c(h,b,f,p,e[n+10],17,-42063),p=c(p,h,b,f,e[n+11],22,-1990404162),f=c(f,p,h,b,e[n+12],7,1804603682),b=c(b,f,p,h,e[n+13],12,-40341101),h=c(h,b,f,p,e[n+14],17,-1502002290),f=s(f,p=c(p,h,b,f,e[n+15],22,1236535329),h,b,e[n+1],5,-165796510),b=s(b,f,p,h,e[n+6],9,-1069501632),h=s(h,b,f,p,e[n+11],14,643717713),p=s(p,h,b,f,e[n],20,-373897302),f=s(f,p,h,b,e[n+5],5,-701558691),b=s(b,f,p,h,e[n+10],9,38016083),h=s(h,b,f,p,e[n+15],14,-660478335),p=s(p,h,b,f,e[n+4],20,-405537848),f=s(f,p,h,b,e[n+9],5,568446438),b=s(b,f,p,h,e[n+14],9,-1019803690),h=s(h,b,f,p,e[n+3],14,-187363961),p=s(p,h,b,f,e[n+8],20,1163531501),f=s(f,p,h,b,e[n+13],5,-1444681467),b=s(b,f,p,h,e[n+2],9,-51403784),h=s(h,b,f,p,e[n+7],14,1735328473),f=u(f,p=s(p,h,b,f,e[n+12],20,-1926607734),h,b,e[n+5],4,-378558),b=u(b,f,p,h,e[n+8],11,-2022574463),h=u(h,b,f,p,e[n+11],16,1839030562),p=u(p,h,b,f,e[n+14],23,-35309556),f=u(f,p,h,b,e[n+1],4,-1530992060),b=u(b,f,p,h,e[n+4],11,1272893353),h=u(h,b,f,p,e[n+7],16,-155497632),p=u(p,h,b,f,e[n+10],23,-1094730640),f=u(f,p,h,b,e[n+13],4,681279174),b=u(b,f,p,h,e[n],11,-358537222),h=u(h,b,f,p,e[n+3],16,-722521979),p=u(p,h,b,f,e[n+6],23,76029189),f=u(f,p,h,b,e[n+9],4,-640364487),b=u(b,f,p,h,e[n+12],11,-421815835),h=u(h,b,f,p,e[n+15],16,530742520),f=l(f,p=u(p,h,b,f,e[n+2],23,-995338651),h,b,e[n],6,-198630844),b=l(b,f,p,h,e[n+7],10,1126891415),h=l(h,b,f,p,e[n+14],15,-1416354905),p=l(p,h,b,f,e[n+5],21,-57434055),f=l(f,p,h,b,e[n+12],6,1700485571),b=l(b,f,p,h,e[n+3],10,-1894986606),h=l(h,b,f,p,e[n+10],15,-1051523),p=l(p,h,b,f,e[n+1],21,-2054922799),f=l(f,p,h,b,e[n+8],6,1873313359),b=l(b,f,p,h,e[n+15],10,-30611744),h=l(h,b,f,p,e[n+6],15,-1560198380),p=l(p,h,b,f,e[n+13],21,1309151649),f=l(f,p,h,b,e[n+4],6,-145523070),b=l(b,f,p,h,e[n+11],10,-1120210379),h=l(h,b,f,p,e[n+2],15,718787259),p=l(p,h,b,f,e[n+9],21,-343485551),f=i(f,r),p=i(p,o),h=i(h,a),b=i(b,d);return[f,p,h,b]}function f(e){var t,n="",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function p(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function h(e){var t,n,r="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),r+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return r}function b(e){return unescape(encodeURIComponent(e))}function v(e){return function(e){return f(d(p(e),8*e.length))}(b(e))}function m(e,t){return function(e,t){var n,r,o=p(e),i=[],a=[];for(i[15]=a[15]=void 0,o.length>16&&(o=d(o,8*e.length)),n=0;n<16;n+=1)i[n]=909522486^o[n],a[n]=1549556828^o[n];return r=d(i.concat(p(t)),512+8*t.length),f(d(a.concat(r),640))}(b(e),b(t))}function g(e,t,n){return t?n?m(t,e):h(m(t,e)):n?v(e):h(v(e))}void 0===(r=function(){return g}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(359),h=n(220);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var v={start:"handleStart",abort:"handleAbort",step:"handleStep",complete:"handleComplete",error:"handleError"},m=function(e){s()(n,e);var t=b(n);function n(e,r){var i,a,c,s,u,l;return o()(this,n),(i=t.call(this)).state={uploading:!1,error:!1,errorData:null,aborted:!1,completed:!1,result:null},i.shouldUpdate=!1,i.update=i.updateImmediately,i.value=e,i.props=r||{},i.abort=(a=i.abort,c=0,s=null,(l=function(){var e=arguments,t=this;u(),s=setTimeout((function(){a.apply(t,e)}),c)}).abort=u=function(){null!==s&&(clearTimeout(s),s=null)},l),Object.keys(v).forEach((function(e){var t=i[v[e]];t&&i.on(e,t)})),i.on("error",(function(e){setTimeout((function(){throw e}),0)})),i}return a()(n,[{key:"mergeState",value:function(e){this.state=Object.assign({},this.state,{},e)}},{key:"updateBatched",value:function(e){this.shouldUpdate=!0,this.mergeState(e)}},{key:"updateImmediately",value:function(e){this.mergeState(e),this.emit("change")}},{key:"batchUpdate",value:function(e){if(this.update!==this.updateBatched){this.shouldUpdate=!1,this.update=this.updateBatched;try{e()}finally{this.update=this.updateImmediately}this.shouldUpdate&&this.emit("change")}else e()}},{key:"start",value:function(){var e=this;this.abort.abort&&this.abort.abort(),this.state.uploading||this.state.completed||this.batchUpdate((function(){e.update({uploading:!0,error:!1,errorData:null,aborted:!1}),e.emit("start")}))}},{key:"abort",value:function(){var e=this;this.state.uploading&&this.batchUpdate((function(){e.update({uploading:!1,aborted:!0}),e.emit("abort")}))}},{key:"step",value:function(e,t){var n=this;this.batchUpdate((function(){n.update({uploading:!1,result:Object.assign({},n.result,{},t)}),n.emit("step",e,t)}))}},{key:"complete",value:function(e){var t=this;this.abort.abort&&this.abort.abort(),this.state.completed||this.batchUpdate((function(){t.update({uploading:!1,completed:!0,result:e}),t.emit("complete",e)}))}},{key:"error",value:function(e){var t=this;this.abort.abort&&this.abort.abort(),this.batchUpdate((function(){var n="UploadError"===(null==e?void 0:e.name)?e:new h.a("unknown",e);t.update({uploading:!1,error:!0,errorData:n}),t.emit("error",n)}))}}]),n}(p.EventEmitter);t.a=m},function(e,t,n){var r=n(16),o=n(482),i=n(876),a=n(877);function c(t){var n="function"==typeof Map?new Map:void 0;return e.exports=c=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},c(t)}e.exports=c},function(e,t,n){"use strict";var r=n(155),o=n.n(r),i={isFetching:!1,isDrained:!1,isPrevDrained:!1,result:[],next:null,key:null};t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e},r=e.request,a=e.success,c=e.failure;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,s=arguments.length>1?arguments[1]:void 0;switch(s.type){case t:return i;case r:return Object.assign({},e,{isFetching:!0});case a:var u=s.key,l=s.result,d=s.next,f=s.isDrained,p=s.isPrevDrained,h=u!==e.key;return Object.assign({},e,{result:h?l:o()(e.result,l),key:u,next:d,isDrained:f||l.length<10,isPrevDrained:p,isFetching:!1});case c:return Object.assign({},e,{isFetching:!1});default:return n(e,s)}}}},function(e,t,n){e.exports=n.p+"assets/liukanshan_wire.e7247fbf.svg"},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(7),o=n(8),i=n(9),a=n(10),c=n(5),s=n(0),u=n(2),l=n.n(u),d=n(1),f=n(68),p=n.n(f),h=n(61),b=n(53),v=n(104);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}var g={zhihu:"注册或登录",wechat:"使用微信快速登录",weibo:"使用微博快速登录",qq:"使用 QQ 快速登录"},O={qq:"qqconn",weibo:"sina",wechat:"wechat_mp"},y=function(e){Object(i.a)(n,e);var t=m(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).jumpToOAuthUrl=function(t){var n=e.props.redirectUrl,r=void 0===n?location.href:n,o=Object(v.c)(r),i=o.utm_source,a=o.utm_medium,c=p()(navigator.userAgent).isZhihu;location.href="zhihu"!==t?"https://www.zhihu.com/oauth/redirect/login/".concat(O[t],"?next=/oauth/account_callback&from=").concat(encodeURIComponent(r),"&utm_source=").concat(i,"&ref_source=").concat(a):c?"zhihu://signin?next=".concat(r):"https://www.zhihu.com/signin?next=".concat(r).concat(i?"?utm_source=".concat(i):"")},e.renderSignButtons=function(){var t=e.props.buttons;return"string"==typeof t?e.renderSingleSignButton({name:t}):t.map((function(t){return"string"==typeof t?e.renderSingleSignButton({name:t}):"object"==typeof t?e.renderSingleSignButton(t):null}))},e.renderSingleSignButton=function(t){var n=t.name,r=t.text,o=t.fill,i=t.color,a="#fff"===o||"#ffffff"===o;return Object.keys(g).includes(n)?Object(s.b)("button",{className:"SignInModal-button-".concat(n),style:{backgroundColor:o,borderColor:a?"#0f88eb":o,color:a?"#0f88eb":i},onClick:function(){e.jumpToOAuthUrl(n)},children:r||g[n]},n):null},e}return Object(o.a)(n,[{key:"render",value:function(){var e=this.props,t=e.onClose,n=e.urlScheme,r=this.props.title||"".concat(n?"打开 App 或":"","登录后继续操作");return Object(s.b)(b.b,{size:"small",className:"SignInModal",title:r,onClose:t,children:Object(s.b)(h.a,{module:"SignForm",moduleName:r,trackCardShow:!0,children:Object(s.c)("div",{className:"SignInModal-content",children:[n&&Object(s.b)(v.a,{className:"SignInModal-openInAppButton",href:n,children:"立即打开 App"}),this.renderSignButtons()]})})})}}]),n}(d.Component);y.propTypes={onClose:l.a.func.isRequired,urlScheme:l.a.string,redirectUrl:l.a.string,buttons:l.a.oneOfType([l.a.array,l.a.string])},y.defaultProps={buttons:["zhihu"]}},function(e,t,n){"use strict";var r=n(7),o=n(8),i=n(51),a=n(9),c=n(10),s=n(5),u=n(0),l=n(1),d=n(23),f=n(13),p=n(197),h=n(178),b=n(541),v=n(12),m=n(222),g=n(35),O=n(167),y=n(61),j=n(182),E=n.n(j),C=function(e,t){return e+(t?Date.now()-t:0)},w=function(e,t){return Math.abs(e-t)<.01},T={auto:"Auto",ld:"LD",sd:"SD",hd:"HD"},_={auto:"自动",ld:"低清",sd:"标清",hd:"超清"},S=[1,2,3,5,8,13];function A(e){var t,n="sd",r=0,o=null,i=0,a=null,c=!1,s=0,u=0;function l(t,c){e(t,Object.assign({play_event_identifier:o,duration:1e3*r,elapsed:C(i,a),video_quality:T[n]},c))}function d(){(++u<15?S.includes(u):u%15==0)&&l({action:"Playing"})}function f(){clearInterval(t)}return{handlePlayEvent:function(e){var n=e.currentTime,c=e.duration;r=c,w(n,0)&&(o=E()(),i=0),a=Date.now(),w(n,0)?l({action:"Play"}):l({action:"ResumePlay"}),u=0,f(),t=setInterval(d,1e3)},handlePauseEvent:function(e){var t=e.currentTime,n=e.duration;a&&(i+=Date.now()-a,a=null),w(t,n)?l({action:"EndPlay"}):l({action:"Pause"}),f()},handleQualityChangeEvent:function(e){var t=e.quality;l({action:"Switch",name:_[t]}),n=t},handleFragmentLoading:function(){c||(s=Date.now())},handleFragmentLoaded:function(){c||(c=!0,l({action:"Load"},{video_load_time:Date.now()-s}))},clearTick:f}}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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 R=function(e){Object(a.a)(n,e);var t=k(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,m.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,i=n.handlePauseEvent,a=n.handleQualityChangeEvent,c=n.handleFragmentLoading,s=n.handleFragmentLoaded;switch(e){case m.b.DOM.PLAY:o.pauseAllOtherVideos(),r(t);break;case m.b.DOM.PAUSE:i(t);break;case m.b.PLAYER.QUALITY_CHANGE:a(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(i.a)(o),{id:5500,action:"Play",element:"Video"})},o.handlePlayFailed=function(){(0,o.props.showNotification)("视频加载失败,请刷新页面重试","red")};var a=e.data;return o.messageHelper=Object(m.c)(a.id,"*",!0),o.videoTracker=A((function(e,t){v.a.trackEvent(Object(i.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,i=t.flvPlayerUrl,a=e.loadVideo;n||!r||o||i||a(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(u.b)("div",{className:"RichText-video",children:r?Object(u.b)(b.a,Object.assign({},n)):Object(u.b)(p.a,{onObserve:this.handleObserve,children:Object(u.b)(h.b,Object.assign({},n,{onIframeRef:function(t){return e.iframe=t},onPlay:this.handlePlay,onPlayFailed:this.handlePlayFailed,onBeforePlay:o}))})})}}]),n}(l.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.g,loadVideo:O.c}),Object(y.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}}})))(R)},function(e,t,n){"use strict";n.d(t,"c",(function(){return w})),n.d(t,"d",(function(){return T})),n.d(t,"e",(function(){return _})),n.d(t,"a",(function(){return A})),n.d(t,"b",(function(){return x}));var r=n(17),o=n(0),i=n(73),a=n(40),c=n.n(a),s=n(28),u=n(171),l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{color:"#3e7ac2"};return Object(o.b)("a",{target:"_blank",rel:"noopener noreferrer",href:e,style:n,children:t})},d=l("/term/community","知乎社区管理规定"),f=l("/term/community","知乎社区管理规定",{color:"#fff","text-decoration":"underline"}),p=l("/question/19551824","知乎用户信息管理规范"),h=l("/settings/profile#rename-section","修改"),b=l("/people/edit","修改"),v=l("/account/unblock","验证"),m={ads:"发布垃圾信息",unfriendly:"发布不友善内容",illegal:"发布违反法律法规的内容",politics:"发布不宜公开讨论的政治内容",animus_edit:"恶意编辑",other:"其他原因"},g={hang:Object(o.c)("span",{children:["由于严重违反 ",d,",该帐号已被停用。"]}),lock:function(e){var t=e.unBlockInfo,n=t.isAppealed,r=t.spamLevel;return n?Object(o.b)("span",{children:"你的帐号由于存在异常行为暂时被知乎反作弊系统限制使用,我们已收到了您的申诉信息,24 小时内会以私信的方式告知你申诉结果,请耐心等待。"}):6===r?Object(o.c)("span",{children:["您的帐号由于违反 ",f," ,已被永久封禁。"]}):4===r?Object(o.c)("span",{children:["您的帐号异常 ,部分功能暂不可用。如需恢复,请完成"," ",l("/account/unblock","帐号验证")]}):Object(o.c)("span",{children:["你的帐号存在异常行为,部分功能已被反作弊系统限制使用,如需恢复,请完成",v]})},ban:function(e){var t=e.expiredAt,n=e.reason;return t>999?Object(o.c)("span",{children:["由于严重违反 ",d," ,该帐号已被永久禁言"]}):Object(o.c)("span",{children:["您的帐号由于 ",Object(o.b)("a",{target:"_blank",href:"/term/community",style:{color:"#3e7ac2"},children:m[n]||"违反知乎社区规定"})," 暂时被限制使用,",t," 天后恢复正常。"]})},isForceRenamed:function(e){var t=e.isOrg;return Object(o.c)("span",{children:["您的用户名不符合 ",p,",请您 ",t?h:b,"。"]})},notBindPhone:Object(o.c)("span",{children:["您的帐号未激活,无法正常使用赞同、评论等功能。请 ",Object(o.b)(u.c,{})," 。"]})},O={hang:Object(o.c)("span",{children:["由于严重违反 ",d,",该帐号已被停用"]}),lock:function(e){var t=e.unBlockInfo,n=t.isAppealed,r=t.spamLevel;return n&&3===r||!r?null:4===r?Object(o.c)("span",{children:["您的帐号异常 ,部分功能暂不可用。如需恢复,请完成"," ",l("/account/unblock","帐号验证")]}):6===r?Object(o.c)("span",{children:["您的帐号由于违反 ",d," ,已被永久封禁。"]}):Object(o.c)("span",{children:["你的帐号存在异常行为,部分功能已被反作弊系统限制使用,如需恢复,请完成",v]})},ban:function(e){var t=e.isCurrentUser,n=e.expiredAt,r=e.reason;return n>999?Object(o.c)("span",{children:["由于严重违反 ",d," ,该帐号已被永久禁言"]}):t?Object(o.c)("span",{children:["您的帐号由于 ",Object(o.b)("a",{href:"/term/community",target:"_blank",style:{color:"#3e7ac2"},children:m[r]||"违规知乎社区规定"})," 暂时被限制使用,",n," 天后恢复正常。"]}):Object(o.c)("span",{children:["由于违反 ",d,",该用户暂时处于禁言状态,",n," ","日后将恢复正常使用。"]})},isForceRenamed:function(e){var t=e.isCurrentUser,n=e.hasRenamed,r=e.isOrg;return t?Object(o.b)("span",{children:n?"您的用户名已修改,请等待管理员确认。申诉邮箱:i@zhihu.com。":Object(o.c)("span",{children:["您的用户名不符合 ",p,",请您 ",r?h:b]})}):Object(o.c)("span",{children:["由于违反 ",p," ,该用户暂时处于改名状态。"]})},notBindPhone:function(){return null}},y={hang:0,lock:1,isForceRenamed:2,ban:3,notBindPhone:4,force_reset_password:6,noti_reset_password:7},j=function(e){var t;return null!==(t=y[e])&&void 0!==t?t:1e3},E={profile:O,behavior:g};function C(e,t,n){if(!t)return"";var r=E[e];return"function"==typeof r[t]?r[t](Object.assign({},n)):r[t]}function w(e){return e.payload&&31e4===e.payload.code}function T(e){return e.payload&&310001===e.payload.code}function _(e){return e.payload&&310001001===e.payload.code}function S(e,t){return Math.ceil(Object(i.parseUnixTimestampToDay)(t-Date.now()/1e3+e))}function A(e,t,n){var r=e.accountStatus,o=e.isForceRenamed,i=e.renamedFullname,a=e.isBindPhone,c=e.userType,u=function(e,t,n){var r=t?"isForceRenamed":!1===n&&"notBindPhone";if(!e||!e.length)return r;var o=e.slice(1).reduce((function(e,t){return j(e.name)<j(t.name)?e:t}),e[0]);return r&&j(o.name)>j(r)?r:o}(r,o,a);if(u===s.K.isForceRenamed)return C("profile",u,{isCurrentUser:t,hasRenamed:Boolean(i),isOrg:"organization"===c});if("notBindPhone"===u)return C("profile",u,{isCurrentUser:t});var l=u.name,d=u.createdAt,f=u.expiredAt,p=u.reason,h=null;return"ban"===l&&(h={expiredAt:S(d,f),isCurrentUser:t,reason:p}),l===s.K.lock&&(h={isCurrentUser:t,unBlockInfo:n}),C("profile",l,h)}function k(e,t,n){var r,o="object"==typeof e?e.name:e;if("ban"===o){var i=e.createdAt,a=e.expiredAt;r={reason:e.reason,expiredAt:S(i,a)}}return o===s.K.lock&&(r={unBlockInfo:t}),o===s.K.isForceRenamed&&(r={isOrg:Boolean(n&&"organization"===n.userType)}),C("behavior",o,r)}function R(e,t){var n=e.accountStatus,r=e.isForceRenamed,o=e.isBindPhone,i=e.userType,a=e.isRealname;if(n&&n.length){var c=n.find((function(e){var n=e.name;return t.includes(n)}));if(c)return c}return!1===o&&!a&&t.includes("notBindPhone")?"notBindPhone":r&&t.includes("isForceRenamed")?"isForceRenamed":"guest"===i&&t.includes("isGuest")?"isGuest":null}function I(e,t,n){for(var r=e.canWrite,o=e.alertTimeSpan,i=arguments.length,a=new Array(i>3?i-3:0),u=3;u<i;u++)a[u-3]=arguments[u];if(!r)return t.apply(void 0,a);var l=(new Date).getTime(),d=1e3*o,f=c.a.get(s.i);return isNaN(f)||f>l||f+d<l?(c.a.set(s.i,l),t.apply(void 0,a)):n.apply(void 0,a)}function x(e,t,n,o,i,a){return function(c){for(var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.I,l=arguments.length,d=new Array(l>2?l-2:0),f=2;f<l;f++)d[f-2]=arguments[f];if(!c){var p="function"==typeof e?e():e;return k(R(p,u),null,p)}var h=Array.isArray(c)?c:[c],b=Object(r.a)(h,2),v=b[0],m=b[1];function g(e){return function(){e.apply(void 0,arguments),"function"==typeof m&&m.apply(void 0,arguments)}}return function(){var r="function"==typeof e?e():e;if(!r)return g(o).apply(void 0,arguments);var c=R(r,u);return c?"notBindPhone"===c&&a?g(I.bind(null,t,a,v)).apply(void 0,arguments):"isGuest"===c?g(o).apply(void 0,arguments):g((function(){return i.apply(void 0,[k(c,c.name===s.K.lock?n():null,r)].concat(d))})).apply(void 0,arguments):v.apply(void 0,arguments)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p}));var r,o=n(17),i=n(4),a=n(0),c=n(31),s=n(1),u=n(47),l=n(311),d=n(136),f="https://www.zhihu.com/xen/market/vip-privileges",p={comment_img:"comment_img",dynamic_top:"dynamic_top",comment_sticker:"comment_sticker",block_keyword:"block_keyword"},h=(r={},Object(i.a)(r,p.comment_img,"https://pic1.zhimg.com/v2-1b6677f81c2df41f55332474e15bc5a8.png"),Object(i.a)(r,p.dynamic_top,"https://pic1.zhimg.com/v2-e16a265a43592abd5b98fceef02a1614.png"),Object(i.a)(r,p.comment_sticker,"https://pic1.zhimg.com/v2-183a98cd480d24cd3e3246ba7a26303b.png"),Object(i.a)(r,p.block_keyword,"https://pic3.zhimg.com/v2-0ad4e8aa43c3279cc7536f2fb7ac8348.png"),r);t.c=Object(l.a)((function(e){var t=e.show,n=e.setShow,r=e.type,i=e.isLogin,l=Object(s.useState)(""),p=Object(o.a)(l,2),b=p[0],v=p[1],m=Object(s.useState)(!1),g=Object(o.a)(m,2),O=g[0],y=g[1],j=Object(d.b)(),E=Object(c.b)((function(){t&&n(!1)})),C=Object(c.b)((function(){window.open(f,"_blank")}));return Object(s.useEffect)((function(){!b&&i&&(y(!0),j("/api/v4/unlimited/vip_rights/popup?token="+r).then((function(e){v(e.payload.button.text)})).catch((function(){})).then((function(){y(!1)})))}),[t]),Object(a.b)(u.b,{css:{".Modal-content":{padding:0,marginTop:0}},onClose:E,children:t&&!O&&Object(a.c)(a.a,{children:[Object(a.b)("img",{src:h[r],css:{height:"230px",width:"400px",display:"block"}}),Object(a.b)("div",{css:{padding:20},children:Object(a.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){"use strict";n.d(t,"a",(function(){return a}));var r=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}();var o=n(273),i=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),a=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n,a=this._parentOrParents,s=this._ctorUnsubscribe,u=this._unsubscribe,l=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,a instanceof e)a.remove(this);else if(null!==a)for(var d=0;d<a.length;++d){a[d].remove(this)}if(Object(o.a)(u)){s&&(this._unsubscribe=void 0);try{u.call(this)}catch(e){t=e instanceof i?c(e.errors):[e]}}if(r(l)){d=-1;for(var f=l.length;++d<f;){var p=l[d];if(null!==(n=p)&&"object"==typeof n)try{p.unsubscribe()}catch(e){t=t||[],e instanceof i?t=t.concat(c(e.errors)):t.push(e)}}}if(t)throw new i(t)}},e.prototype.add=function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof e){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.EMPTY=((t=new e).closed=!0,t),e}();function c(e){return e.reduce((function(e,t){return e.concat(t instanceof i?t.errors:t)}),[])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u}));var r=n(164),o=n.n(r),i=n(700),a=n.n(i),c=function(e,t){var n=[];return o()((function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];n.push(o),setTimeout((function(){n.length&&(t(n),n.length=0)}),e)}),(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return String(t)}))}(550,(function(e){var t=new FormData;return t.append("items",JSON.stringify(e)),a()("/lastread/touch",{method:"POST",body:t})})),s="read",u="touch";t.c=c},function(e,t,n){var r=n(757),o=n(760);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(374),o=n(371);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var c=-1,s=t.length;++c<s;){var u=t[c],l=i?i(n[u],e[u],u,n,e):void 0;void 0===l&&(l=e[u]),a?o(n,u,l):r(n,u,l)}return n}},function(e,t,n){var r=n(376),o=n(564),i=n(565);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cutStringWidth=t.stringWidth=t.sliceString=t.getHexRandom=void 0;var r=n(894);Object.defineProperty(t,"getHexRandom",{enumerable:!0,get:function(){return r.getHexRandom}}),Object.defineProperty(t,"sliceString",{enumerable:!0,get:function(){return r.sliceString}}),Object.defineProperty(t,"stringWidth",{enumerable:!0,get:function(){return r.stringWidth}}),Object.defineProperty(t,"cutStringWidth",{enumerable:!0,get:function(){return r.cutStringWidth}})},function(e,t,n){"use strict";var r=n(165),o=n(86),i=n(341),a=o.List,c=o.Map,s=o.OrderedSet,u=o.Record,l=o.Repeat,d=s(),f=u({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:c()}),p=function(e){function t(n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(l(r.EMPTY,n.length))),e}(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():d},t.prototype.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},t.prototype.findStyleRanges=function(e,t){i(this.getCharacterList(),h,e,t)},t.prototype.findEntityRanges=function(e,t){i(this.getCharacterList(),b,e,t)},t}(f);function h(e,t){return e.getStyle()===t.getStyle()}function b(e,t){return e.getEntity()===t.getEntity()}e.exports=p},function(e,t,n){"use strict";var r=n(87),o=/[\uD800-\uDFFF]/;function i(e){return 55296<=e&&e<=57343}function a(e){return o.test(e)}function c(e,t){return 1+i(e.charCodeAt(t))}function s(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!a(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=c(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=c(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=c(e,i);return e.substring(o,i)}var u={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=c(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:c,hasSurrogateUnit:a,isCodeUnitInSurrogateRange:i,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||r(!1),t+1===e.length)return!1;var n=e.charCodeAt(t),o=e.charCodeAt(t+1);return 55296<=n&&n<=56319&&56320<=o&&o<=57343},strlen:function(e){if(!a(e))return e.length;for(var t=0,n=0;n<e.length;n+=c(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return s(e,t=t<n?t:n,r)},substr:s};e.exports=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return p}));n(4);var r=n(274),o=n.n(r),i=n(21),a=(n(89),n(410)),c=n(186),s=n(19),u=n(249),l=Object.assign({},Object(s.a)("currentUser",["GET","GET_COLUMN_CONTRIBUTIONS","UPDATE_FULLNAME","GET_REAL_NAME_STATUS"]),Object(s.b)("currentUser",["ACTIVE_USER"])),d=function(e){return{API:Object.assign({types:l.GET,endpoint:"me"},e&&{query:{include:o()(e.map(i.decamelize)).join(",")}})}};function f(e){return function(t,n){var r=Object(u.a)(n());if(r){var o=e.filter((function(e){return!(e in r)}));return o.length?t(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n,r){var o=r.fnRefs;return Object(c.a)(o,"fetchCurrentUser",(function(){return Object(a.a)((function(t){return e(d(t.map((function(e){return e[0]})).flat()))}),queueMicrotask)})).apply(void 0,t)}}(o)):void 0}}}var p=function(){return function(e,t){var n=t().currentUser;return e({API:{types:l.GET_COLUMN_CONTRIBUTIONS,endpoint:"/members/".concat(n,"/column-contributions"),method:"GET",query:{offset:0,limit:50,include:"data[*].column.articles_count,voteup_count"},fetchOptions:{credentials:"include"}}})}}},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return f}));var r=n(4),o=n(68),i=n.n(o),a={request:"ECOMMERCE/FETCH_REQUEST",success:"ECOMMERCE/FETCH_SUCCESS",failure:"ECOMMERCE/FETCH_FAILURE"};function c(e,t){return e+"-"+t}function s(e,t){var n=t.type,r=t.urlToken;if(e&&e.ecommerce)return e.ecommerce[c(n,r)]}function u(t){var n=t.urls,r=t.type,o=t.urlToken,s=t.headers,u=e.navigator?i()(navigator.userAgent):{},l=u.iOS?"ios":u.Android?"android":"other";return{API:Object.assign({types:Object.values(a),endpoint:"/commercial/ecommerce",method:"POST",body:{urls:n,type:r,os:l,url_token:o}},s&&{headers:s}),meta:{key:c(r,o),parentType:r,urlToken:o},FAILSAFE:!0}}function l(e){return{type:"ECOMMERCE/SET",payload:Object.assign({},e),meta:{key:c(e.type,e.urlToken),parentType:e.type,urlToken:e.urlToken}}}function d(e){return e?e.reduce((function(e,t){return e[t.pluginUrl||t.url]=t,e}),{}):{}}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===a.success){var n=t.meta,o=n.key,i=n.parentType,c=n.urlToken,s=t.payload.data,u=s.isEcommerce,l=s.detail;return Object.assign({},e,Object(r.a)({},o,{isEcommerce:u,parentType:i,urlToken:c,cards:d(l)}))}if("ECOMMERCE/SET"===t.type){var f=t.meta,p=f.key,h=f.parentType,b=f.urlToken;return Object.assign({},e,Object(r.a)({},p,Object.assign({},t.payload,{parentType:h,urlToken:b})))}return e}}).call(this,n(109))},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var r=n(19),o=Object.assign({},Object(r.a)("sms",["SUPPORTED_COUNTRIES"]));function i(){return{API:{types:o.SUPPORTED_COUNTRIES,endpoint:"v3/oauth/sms/supported_countries",method:"GET"}}}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{supportedCountries:[]},t=arguments.length>1?arguments[1]:void 0;return t.type===o.SUPPORTED_COUNTRIES.success?{supportedCountries:t.payload.data}:e}},function(e,t,n){"use strict";var r=n(7),o=n(8),i=n(9),a=n(10),c=n(5),s=n(0),u=n(2),l=n.n(u),d=n(1),f=n(23),p=n(13),h=n(6),b=n.n(h),v=n(649),m=n.n(v),g=n(1061),O=n(11),y=n(12),j=n(36),E=n(150),C=n(38),w=n(4),T=n(19),_=n(35),S=n(28),A=Object(T.a)("user",["UPDATE_FOLLOWERS_PIN"]).UPDATE_FOLLOWERS_PIN;var k=n(153),R=n(81),I=n(217),x=n(140),N=n(441),D=n(138),P=n(92);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}var M={default:"default",primary:"primary"},U=function(e){Object(i.a)(n,e);var t=L(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).zaRef=Object(d.createRef)(),e.state={hovered:!1,isFetching:!1},e.handleMouseEnter=function(){e.setState({hovered:!0})},e.handleMouseLeave=function(){e.setState({hovered:!1})},e.toggleFollow=function(t){var n=e.props,r=n.isFollowing,o=n.type,i=n.id,a=n.zaId,c=n.useCustomZa,s=n.onFollowButtonClick,u=!r;c||(y.a.trackEvent(t.target,Object.assign({action:u?"Follow":"UnFollow",element:"Button",element_name:S.M[o]},a&&{id:a})),e.zaRef.current.trackEvent({action:u?"Follow":"UnFollow",eventType:"Click",elementLocation:{type:"Button"}}));var l="toggleFollow".concat(o.slice(0,1).toUpperCase()).concat(o.slice(1)),d=e.props[l](i,u);m()(d)&&(e.setState({isFetching:!0}),d.then((function(){e.setState({isFetching:!1}),s&&s()})).catch((function(){return e.setState({isFetching:!1})})))},e.handleToggleFollow=function(t){e.props.authRequired?e.props.authRequired(e.toggleFollow,S.J.follow,!0)(t):e.props.ua.Zhihu?e.toggleFollow(t):e.context.authRequired(e.toggleFollow,S.J.follow)(t)},e.handleClick=function(t){var n=e.props.onClick;n&&!n(t)||(e.handleToggleFollow(t),t.stopPropagation())},e}return Object(o.a)(n,[{key:"render",value:function(){var e,t,n,r=this.state.hovered,o=this.props,i=o.onRef,a=o.preset,c=o.entityHidden,u=o.type,l=o.isFollowing,d=o.gender,f=o.className,p=o.children,h=o.isMobile,v=o.disabled;l?(e="primary",n=r?"取消关注":"已关注",t={color:"grey"}):(e=a,t={color:"blue"},n=p||("people"===u||"rewardPeople"===u?[Object(s.b)(g.a,{className:"FollowButton-icon",text:!0,center:!0},"icon"),"关注".concat("number"==typeof d&&-1!==d?S.C[d]:"")]:"关注".concat(c?"":E.b[u])));var m=this.state.isFetching;return Object(s.c)(O.c,Object.assign({onRef:i,preset:e,onClick:this.handleClick,className:b()("FollowButton",f)},t,!h&&{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},{disabled:v||m,children:[Object(s.b)(j.d,{ref:this.zaRef}),n]}))}}]),n}(d.Component);U.contextTypes={authRequired:l.a.func},U.propTypes={preset:l.a.oneOf(Object.values(M)),type:l.a.oneOf(E.a).isRequired,id:l.a.oneOfType([l.a.number,l.a.string]).isRequired,zaId:l.a.number,useCustomZa:l.a.bool},U.defaultTypes={preset:M.default},U.PRESETS=M;t.a=Object(f.compose)(Object(p.connect)((function(e){return{ua:e.env.userAgent,isMobile:Object(C.d)(e,{includeTablet:!0})}}),{toggleFollowQuestion:R.o,toggleFollowCollection:I.c,toggleFollowColumn:x.f,toggleFollowRoundtable:N.b,toggleFollowTopic:D.f,toggleFollowPeople:k.a,toggleFollowRewardPeople:P.o,toggleFollowClub_mask:function(e,t,n){return function(r,o){var i=o(),a=i.entities.users,c=i.currentUser,s=a[e];return r(n?Object(_.g)(S.H.blocked,"red"):{urlToken:c,userUrlToken:e,expect:t,API:{types:A,endpoint:"members/".concat(e,"/followers"),method:t?"POST":"DELETE"},UPDATE:{request:{users:Object(w.a)({},e,{isFollowing:t})},failure:{users:Object(w.a)({},e,s)},success:function(t){return{users:Object(w.a)({},e,t)}}}})}}}))(U)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(338);e.exports=function(e){return e&&e.length?r(e):[]}},function(e,t,n){var r=n(371),o=n(602),i=n(325);e.exports=function(e,t){var n={};return t=i(t,3),o(e,(function(e,o,i){r(n,o,t(e,o,i))})),n}},function(e,t,n){"use strict";n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return b}));var r=n(4),o=n(676),i=n.n(o),a=n(305),c=n(414),s=n(415),u=n(66),l=n.n(u),d=n(37),f=n(235),p={users:{},questions:{},answers:{},articles:{},columns:{},topics:{},roundtables:{},favlists:{},comments:{},notifications:{},ebooks:{},activities:{},feeds:{},pins:{},promotions:{},drafts:{},chats:{},posts:{},clubs:{},clubTags:{},zvideos:{},zvideoContributions:{}},h=function(e,t){var n=t.schema,r=t.id,o=t.urlToken;return n?e["".concat(n,"s")][o||r]:t},b=function(e,t){return h(e.entities,t)};t.a=i()((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,t=arguments.length>1?arguments[1]:void 0;if(t.type===d.a.GET.success)return Object.assign({},e,{users:l()(Object.assign({},e.users,Object(r.a)({},t.payload.urlToken,Object.assign({},e.users[t.payload.id],e.users[t.payload.urlToken],t.payload))),t.payload.id)});if(t.type===d.a.ACTIVE_USER)return Object.assign({},e,{users:Object.assign({},e.users,Object(r.a)({},t.currentUser,Object.assign({},e.users[t.currentUser],{isActive:!0})))});if(t.entities&&(e=Object(f.a)(e,t.entities)),t.UPDATE){var n=t.type,o=t.payload,i=t.UPDATE,a=i.request,c=i.success,s=i.failure,u=i.update,h=t.err;if(n.endsWith("request")&&a&&(e=Object(f.a)(e,"function"==typeof a?a(o,t):a)),n.endsWith("success")&&c&&(e=Object(f.a)(e,"function"==typeof c?c(o,t):c)),n.endsWith("failure")&&s){var b="function"==typeof s?s(h):s;e=Object(f.a)(e,b)}else u&&(e=Object(f.a)(e,u))}return e}),Object(a.b)({users:c.b,favlists:s.a}))},function(e,t,n){var r=n(872),o=n(476)((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},function(e,t,n){var r=n(1008),o=n(644),i=n(454),a=n(474);e.exports=function(e,t,n){e=a(e);var c=(t=i(t))?o(e):0;return t&&c<t?r(t-c,n)+e:e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return c}));var r=n(278),o=n.n(r),i=n(28);function a(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,t){var n=Array.from(e).filter((function(e){return i.a.VIDEO.some((function(t){return e.name.toLowerCase().endsWith(t)}))}));return 0===n.length?{errMsg:"视频格式不支持",abortUpload:!0}:!t&&n.length>1?{errMsg:"一次仅能上传一个视频,请分开上传",abortUpload:!1,validFiles:[n[0]]}:{errMsg:null,abortUpload:!1,validFiles:n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return h}));var r=n(32),o=n(7),i=n(8),a=n(9),c=n(10),s=n(5),u=n(0),l=n(1),d=n(45);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(n,e);var t=f(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"render",value:function(){var e=this.props,t=e.message,n=e.location.pathname;return Object(u.b)("div",{className:"UnknownError",children:t||Object(u.c)("div",{children:["遇到不可预料的问题,请检查网络连接或",Object(u.b)("a",{href:n,children:"刷新重试"}),"。"]})})}}]),n}(l.Component),h=Object(d.withRouter)(p);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 v=function(e){Object(a.a)(n,e);var t=b(n);function n(){var e;Object(o.a)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={hasError:!1},e}return Object(i.a)(n,[{key:"componentDidCatch",value:function(e,t){window.Raven&&window.Raven.captureException(e,{extra:t})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.replacement,o=e.message,i=Object(r.a)(e,["children","replacement","message"]);if(this.state.hasError){var a=typeof n;return"undefined"===a?Object(u.b)(h,{message:o||"遇到不可预料的问题"}):"function"===a?n(Object.assign({},i,{children:t})):n}return t}}],[{key:"getDerivedStateFromError",value:function(){return{hasError:!0}}}]),n}(l.Component),m=n(126),g=n(255),O=n.n(g);var y=function(){return Object(u.b)(m.a,{title:"请求错误",subtitle:"无法访问当前页面",errorImage:O.a})};var j=function(){return Object(u.b)(m.a,{title:"未认证",subtitle:"无法访问当前页面",errorImage:O.a})};var E=function(){return Object(u.b)(m.a,{title:"没有权限",subtitle:"无法访问当前页面",errorImage:O.a})};var C=function(){return Object(u.b)(m.a,{title:"404",subtitle:"你似乎来到了没有知识存在的荒原",errorImage:O.a})},w=n(693),T=n.n(w);var _=function(){return Object(u.b)(m.a,{title:"该内容已删除",subtitle:"你似乎来到了没有知识存在的荒原",errorImage:T.a})};n(694);n(91),n(695);var S=n(1085),A=n(11);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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)}}l.Component;var R=[{name:"BadRequestErrorPage",path:"/400",component:y},{name:"UnauthorizedErrorPage",path:"/401",component:j},{name:"ForbiddenErrorPage",path:"/403",component:E},{name:"NotFoundErrorPage",path:"/404",component:C},{name:"GoneErrorPage",path:"/410",component:_}];Object(u.b)(d.Route,{name:"ErrorPageRoute",children:R.map((function(e){return Object(u.b)(d.Route,{name:e.name,path:e.path,component:e.component},e.path)}))})},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return j})),n.d(t,"e",(function(){return C})),n.d(t,"f",(function(){return _})),n.d(t,"d",(function(){return x}));var r=n(1),o=n.n(r),i=n(12),a=n(36),c=n(129),s=function(e){var t=Object(a.i)().trackEvent,n=Object(r.useCallback)((function(n){!function(e,t,n){if(!e.defaultPrevented&&e.target.matches("[data-catalog-target-id]")){n({action:"OpenUrl",block:"ZTextCatalog",eventType:"Click",elementLocation:{type:"Button",text:e.target.innerText}},{link:{url:window.location.href}});var r=e.target.getAttribute("data-catalog-target-id");i.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])},u=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])},l=(n(348),n(39)),d=n.n(l),f=n(94),p=n.n(f),h=n(56),b=function(e){return e.replace(/\.(jpg|png|jpeg|gif)/,".webp")},v=n(435),m=n(446),g=p()((function(){return/Mobile/.test(navigator.userAgent)}));function O(e,t){var n={monitor:{type:"Event",imgResourceErrorInfo:{error_description:t,img_url:e,img_from:"web"}}};i.a.trackMonitor({name:t},n)}var y=function(e){var t=e.onLoadStateChange,n=e.enableWebP,r=e.size,o=e.quality;return function(e){var i=e.target,a=function(e){var t=e.image,n=e.enableWebP,r=e.size,o=e.quality,i=void 0===o?80:o,a=t.dataset,c=a.actualsrc,s=a.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:i,size:r}))}({image:i,enableWebP:n,size:r,quality:o});if(n&&(a=b(a)),i.src=a,i.complete)i.dataset.lazyStatus="ok";else{t&&i.addEventListener("loadstart",(function(){t("loadstart",a)})),i.dataset.lazyStatus="loading";var c=setTimeout((function(){i.complete||O(i.url,"image_web_timeout_image"),t&&t("timeout",a)}),15e3);i.addEventListener("load",(function(){i.dataset.lazyStatus="ok",clearTimeout(c),O(i.url,"image_web_success_image"),t&&t("load",a)})),i.addEventListener("error",(function(){clearTimeout(c),O(i.url,"image_web_fail_image"),t&&t("error",a)}))}}},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.useWebP,o=void 0===n||n,i=t.disabled,a=void 0!==i&&i,c=t.onLoadStateChange,s=t.size,u=t.quality,l=Object(r.useState)([]),f=d()(l,2),p=f[0],h=f[1],b=Object(m.a)("lossless");Object(v.a)(p,y({onLoadStateChange:c,enableWebP:b&&o,size:s,quality:u}),{rootMargin:"300px"}),Object(r.useEffect)((function(){if(e&&!a){var t=Array.from(e.querySelectorAll("img.lazy:not([data-thumbnail])"));t.length&&h(t)}}),[e,a])},E=n(31),C=function(e,t){var n=Object(E.b)((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])},w=(n(523),function(e){var t=function(e){if(0!==e.intersectionRatio){var t=e.target;t.dataset.zaDetailViewId=t.cardShowViewId,i.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,i=t.clickViewId;Array.from(e.querySelectorAll(r)).forEach((function(e){e.cardShowViewId=o,e.clickViewId=i,n.observe(e)}))})),function(){n.disconnect()}}),T="function"==typeof queueMicrotask?queueMicrotask:function(e){return Promise.resolve().then(e)},_=function(e){var t=Object(r.useRef)(null);Object(r.useEffect)((function(){if(e)return T((function(){e&&(t.current=w(e))})),function(){t.current&&t.current()}}),[e])},S=n(30),A=n.n(S),k=n(223),R=n(295),I=n(3),x=function(e){var t=e.contentType,n=e.token,i=e.root,a=e.mcnLinkCardProps,c=Object(r.useState)(null),s=d()(c,2),u=s[0],l=s[1],f=Object(r.useState)(!1),p=d()(f,2),h=p[0],b=p[1];return Object(r.useEffect)((function(){var e=i&&i.querySelector("*[data-draft-type=mcn-link-card]");["answer","article"].includes(t)&&e&&Object(R.a)("https://www.zhihu.com/api/v4/mcn/linkcards?content_type=".concat(t,"&token=").concat(n)).then((function(e){var t=e.data;t&&(l(t),b(!0))})).catch((function(){b(!0)}))}),[i]),Object(I.c)(o.a.Fragment,null,h&&Object(I.c)(k.d,A()({},a,{goodsRecommendCards:u,root:i})))}},function(e,t,n){"use strict";function r(e){setTimeout((function(){throw e}),0)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return u}));var r=n(19),o=n(307),i=n(429),a={newCount:0,strangerMessageSwitch:!1,strangerMessageUnread:!1,friendCount:0},c=Object(r.b)("chat",["UPDATE_TOTAL_UNREAD_COUNT","CHANGE_STRANGER_MESSAGE_UNREAD_STATUS"]);function s(e){return{type:c.UPDATE_TOTAL_UNREAD_COUNT,meta:{count:e}}}function u(e){return{type:c.CHANGE_STRANGER_MESSAGE_UNREAD_STATUS,meta:{status:e}}}t.b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.a.GET_RECENTS.success:var n=t.payload,r=n.newCount,s=n.strangerMessage,u=s.switch,l=s.unread;return Object.assign({},e,{newCount:r,strangerMessageSwitch:u,strangerMessageUnread:l});case i.a.GET_FRIENDS.success:return Object.assign({},e,{friendCount:t.totals});case c.UPDATE_TOTAL_UNREAD_COUNT:var d=e.newCount,f=t.meta.count,p=void 0===f?0:f,h=d+p;return Object.assign({},e,{newCount:h>0?h:0});case c.CHANGE_STRANGER_MESSAGE_UNREAD_STATUS:var b=t.meta.status;return Object.assign({},e,{strangerMessageUnread:b});default:return e}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return h})),n.d(t,"a",(function(){return u}));var r=n(15),o=n(23),i=n(217),a=(n(4),n(26)),c=n(29),s=n(19),u=(n(21),new a.b.Array(new a.b.Entity("favlistFeedsByIds",{content:new a.b.Union({article:c.a.ARTICLE,answer:c.a.ANSWER,pin:c.a.PIN,zvideo:c.a.ZVIDEO},(function(e){return e.type}))},{idAttribute:function(e){var t=e.content,n=t.type,r=t.id;return"".concat(n,"_").concat(r)}})),Object.assign({},Object(s.a)("collections",["ADD","DELETE","UPDATE","GET_DETAIL","GET_FEEDS","DELETE_FEED_ITEM","CANCEL_DELETE_FEED_ITEM"]))),l=n(391),d={data:[],paging:{},isLoading:!1};var f=Object(l.g)(u.GET_FEEDS,{additionalCaseTypes:[u.DELETE_FEED_ITEM.success,u.CANCEL_DELETE_FEED_ITEM.success],additionalCase:function(e,t){return t.type===u.DELETE_FEED_ITEM.success?Object.assign({},e,{deletedItems:[].concat(Object(r.a)(e.deletedItems||[]),[t.deletedItemId])}):t.type===u.CANCEL_DELETE_FEED_ITEM.success?Object.assign({},e,{deletedItems:e.deletedItems.filter((function(e){return e!==t.deletedItemId}))}):e}}),p=Object(o.combineReducers)({hot:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;if(t.type===i.b.GET_HOT_FAVLISTS.request)return Object.assign({},e,{isLoading:!0});if(t.type===i.b.GET_HOT_FAVLISTS.success){var n=t.payload,o=n.data,a=n.paging;return{data:[].concat(Object(r.a)(e.data),Object(r.a)(o.map((function(e){return e.id})))),paging:a,isLoading:!1}}return t.type===i.b.GET_HOT_FAVLISTS.failure?Object.assign({},e,{paging:Object.assign({},e.paging,{isEnd:!0}),isLoading:!1}):e},collectionFeeds:f});function h(e,t){return t.type===u.ADD.success?Object.assign({},e,{totals:e.totals+1,ids:[t.result].concat(Object(r.a)(e.ids))}):t.type===u.DELETE.success?Object.assign({},e,{totals:e.totals-1,ids:e.ids.filter((function(e){return e!==t.id}))}):e}},function(e,t,n){e.exports=n(107)(311)},function(e,t,n){var r=n(188).Symbol;e.exports=r},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var r=n(563),o=n(576),i=n(243);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(135),o=n(473),i=n(823),a=n(474);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){var r=n(326);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},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(194),o=n(204),i=n(398),a=n(380),c=n(3),s=/<(h2|h3)[^>]*>(.*?)<\/\1>/g,u={h2:1,h3:2},l=function(e,t){return"h_".concat(e||"editor","_").concat(t)},d=function(e){return e.replace(i.b,"").replace(/<[^>]*>/g,"")},f=function(e){return u[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 i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=d(i),c=f(o),s=l(t,r.length);return r.push({text:a,titleLevel:c,Tag:o,targetId:s}),n({text:a,titleLevel:c,targetId:s,Tag:o,originText:i})})),{catalog:r,html:e}},h=function(e){var t=e.originText,n=e.targetId,r=e.Tag;return Object(o.renderToStaticMarkup)(Object(c.c)(r,{id:n,dangerouslySetInnerHTML:{__html:t}}))};t.a=function(e,t){var n=t.sourceId,i=t.theme,s=t.shouldShowCatalog,u=t.shouldFoldCatalog;if(!e)return e;if(!s)return e;var l=p(e,n,h),d=l.catalog,f=l.html;return d.length?Object(o.renderToStaticMarkup)(Object(c.c)(r.a,{theme:i},Object(c.c)(a.b,{catalog:d,canFold:u}))).concat(f):f}},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 i=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 i=this.getStartOffset();return t<=this.getEndOffset()&&i<=n}if(e!==r&&e!==o)return!1;var a=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=a&&n>=a},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(86).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=i},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";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";t.a=function(){return function(){}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return f})),n.d(t,"b",(function(){return p}));var r=n(4),o=n(15),i=(n(21),n(23)),a=n(29),c=n(37),s=n(19),u=Object.assign({},Object(s.a)("message",["GET_INBOXES","ADD","MARK_READ","UPDATE_COMMENTPERMISSION","UPDATE_RESHIPMENTSETTINGS"]),Object(s.b)("message",["CURRENT_TAB","INBOX_UNREAD_COUNT"]));function l(e){return function(t,n){var r=n(),o=r.messages,i=r.messages.currentTab,c=(!e&&o.data[i]||{}).next||("stranger"===i?"stranger_inbox":"inbox");return t({reFetch:e,currentTab:i,API:{types:u.GET_INBOXES,endpoint:c},schema:a.a.MESSAGE_ARRAY})}}function d(e){return{currentTab:e,type:u.CURRENT_TAB}}function f(){return function(e,t){var n=t(),r=n.entities.messages,o=n.messages,i=o.currentTab,a=o.data[i].ids.filter((function(e){return r[e].unreadCount>0}));return a.length?e({API:{types:u.MARK_READ,endpoint:"messages/actions/mark-as-read",method:"POST",body:{type:i,tokens:a}}}):null}}function p(e){var t=e.event_name,n=e.data;if("INBOX_UNREAD_COUNT"===t)return{type:u.INBOX_UNREAD_COUNT,payload:n}}t.a=Object(i.combineReducers)({data:function(e){var t=e.request,n=e.success,i=e.failure,a={isFetching:!1,isDrained:!1,ids:[]};function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case t:return r.reFetch?a:Object.assign({},e,{isFetching:!0});case n:var c=r.result,s=r.next,u=r.isDrained,l=e.ids;return Object.assign({},e,{isFetching:!1,isDrained:u,next:s,ids:[].concat(Object(o.a)(l),Object(o.a)(c.filter((function(e){return!l.includes(e)}))))});case i:return Object.assign({},e,{isFetching:!1,isDrained:!0});default:return e}}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,a=o.type,s=o.currentTab;switch(a){case t:case n:case i:return Object.assign({},e,Object(r.a)({},s,c(e[s],o)));default:return e}}}(u.GET_INBOXES),currentTab:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common",t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.currentTab;return n===u.CURRENT_TAB?r:e},messageCount:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;return n===u.INBOX_UNREAD_COUNT?r:n===c.a.GET.success?t.payload.messagesCount:e}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return Be})),n.d(t,"b",(function(){return ie})),n.d(t,"c",(function(){return ue}));var r=n(77),o=n.n(r),i=n(70),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(22),h=n.n(p),b=n(24),v=n.n(b),m=n(55),g=n.n(m),O=n(72),y=n(103),j=n(1),E=n.n(j);function C(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=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 i,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function 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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var _={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},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},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(_.str(e)||_.num(e))return e===t;if(_.obj(e)&&_.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!_.und(n)||e===t}};function S(){var e=Object(j.useState)(!1)[1];return Object(j.useCallback)((function(){return e((function(e){return!e}))}),[])}function A(e,t){return _.und(e)||_.nul(e)?t:e}function k(e){return _.und(e)?[]:_.arr(e)?e:[e]}function R(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return _.fun(e)?e.apply(void 0,n):e}function I(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,Object(y.default)(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(_.und(t))return Object(O.default)({to:t},e);var n=Object.keys(e).reduce((function(n,r){return _.und(t[r])?Object(O.default)({},n,g()({},r,e[r])):n}),{});return Object(O.default)({to:t},n)}var x,N,D=function(){function e(){h()(this,e),this.payload=void 0,this.children=[]}return v()(e,[{key:"getAnimatedValue",value:function(){return this.getValue()}},{key:"getPayload",value:function(){return this.payload||this}},{key:"attach",value:function(){}},{key:"detach",value:function(){}},{key:"getChildren",value:function(){return this.children}},{key:"addChild",value:function(e){0===this.children.length&&this.attach(),this.children.push(e)}},{key:"removeChild",value:function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}]),e}(),P=function(e){s()(n,e);var t=T(n);function n(){var e;return h()(this,n),(e=t.apply(this,arguments)).payload=[],e.attach=function(){return e.payload.forEach((function(t){return t instanceof D&&t.addChild(a()(e))}))},e.detach=function(){return e.payload.forEach((function(t){return t instanceof D&&t.removeChild(a()(e))}))},e}return n}(D),L=function(e){s()(n,e);var t=T(n);function n(){var e;return h()(this,n),(e=t.apply(this,arguments)).payload={},e.attach=function(){return Object.values(e.payload).forEach((function(t){return t instanceof D&&t.addChild(a()(e))}))},e.detach=function(){return Object.values(e.payload).forEach((function(t){return t instanceof D&&t.removeChild(a()(e))}))},e}return v()(n,[{key:"getValue",value:function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof D)&&(t[n]=r instanceof D?r[e?"getAnimatedValue":"getValue"]():r)}return t}},{key:"getAnimatedValue",value:function(){return this.getValue(!0)}}]),n}(D);function M(e,t){x={fn:e,transform:t}}function U(e){N=e}var B,z=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1};function F(e){B=e}var G=function(){return Date.now()};function V(e){e}var H,q,K=function(e){return e.current};function W(e){H=e}var Y=function(e){s()(n,e);var t=T(n);function n(e,r){var o;return h()(this,n),(o=t.call(this)).update=void 0,o.payload=e.style?Object(O.default)({},e,{style:H(e.style)}):e,o.update=r,o.attach(),o}return n}(L),Q=!1,Z=new Set,J=function e(){if(!Q)return!1;var t,n=G(),r=C(Z);try{for(r.s();!(t=r.n()).done;){for(var o=t.value,i=!1,a=0;a<o.configs.length;a++){for(var c=o.configs[a],s=void 0,u=void 0,l=0;l<c.animatedValues.length;l++){var d=c.animatedValues[l];if(!d.done){var f=c.fromValues[l],p=c.toValues[l],h=d.lastPosition,b=p instanceof D,v=Array.isArray(c.initialVelocity)?c.initialVelocity[l]:c.initialVelocity;if(b&&(p=p.getValue()),c.immediate)d.setValue(p),d.done=!0;else if("string"!=typeof f&&"string"!=typeof p){if(void 0!==c.duration)h=f+c.easing((n-d.startTime)/c.duration)*(p-f),s=n>=d.startTime+c.duration;else if(c.decay)h=f+v/(1-.998)*(1-Math.exp(-(1-.998)*(n-d.startTime))),(s=Math.abs(d.lastPosition-h)<.1)&&(p=h);else{u=void 0!==d.lastTime?d.lastTime:n,v=void 0!==d.lastVelocity?d.lastVelocity:c.initialVelocity,n>u+64&&(u=n);for(var m=Math.floor(n-u),g=0;g<m;++g){h+=1*(v+=1*((-c.tension*(h-p)+-c.friction*v)/c.mass)/1e3)/1e3}var O=!(!c.clamp||0===c.tension)&&(f<p?h>p:h<p),y=Math.abs(v)<=c.precision,j=0===c.tension||Math.abs(p-h)<=c.precision;s=O||y&&j,d.lastVelocity=v,d.lastTime=n}b&&!c.toValues[l].done&&(s=!1),s?(d.value!==p&&(h=p),d.done=!0):i=!0,d.setValue(h),d.lastPosition=h}else d.setValue(p),d.done=!0}}o.props.onFrame&&(o.values[c.name]=c.interpolation.getValue())}o.props.onFrame&&o.props.onFrame(o.values),i||(Z.delete(o),o.stop(!0))}}catch(e){r.e(e)}finally{r.f()}return Z.size?q?q():z(e):Q=!1,Q};function X(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return X({range:e,output:t,extrapolate:n});if(B&&"string"==typeof e.output[0])return B(e);var r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,c,s){var u=s?s(e):e;if(u<t){if("identity"===a)return u;"clamp"===a&&(u=t)}if(u>n){if("identity"===c)return u;"clamp"===c&&(u=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=i(u),r===-1/0?u=-u:o===1/0?u+=r:u=u*(o-r)+r;return u}(e,i[t],i[t+1],o[t],o[t+1],s,a,c,r.map)}}var $=function(e){s()(n,e);var t=T(n);function n(e,r,o,i){var a;return h()(this,n),(a=t.call(this)).calc=void 0,a.payload=e instanceof P&&!(e instanceof n)?e.getPayload():Array.isArray(e)?e:[e],a.calc=X(r,o,i),a}return v()(n,[{key:"getValue",value:function(){return this.calc.apply(this,o()(this.payload.map((function(e){return e.getValue()}))))}},{key:"updateConfig",value:function(e,t,n){this.calc=X(e,t,n)}},{key:"interpolate",value:function(e,t,r){return new n(this,e,t,r)}}]),n}(P);var ee=function(e){s()(n,e);var t=T(n);function n(e){var r,o;return h()(this,n),r=t.call(this),o=a()(r),r.animatedStyles=new Set,r.value=void 0,r.startPosition=void 0,r.lastPosition=void 0,r.lastVelocity=void 0,r.startTime=void 0,r.lastTime=void 0,r.done=!1,r.setValue=function(e,t){void 0===t&&(t=!0),o.value=e,t&&o.flush()},r.value=e,r.startPosition=e,r.lastPosition=e,r}return v()(n,[{key:"flush",value:function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))}},{key:"clearStyles",value:function(){this.animatedStyles.clear()}},{key:"getValue",value:function(){return this.value}},{key:"interpolate",value:function(e,t,n){return new $(this,e,t,n)}}]),n}(D),te=function(e){s()(n,e);var t=T(n);function n(e){var r;return h()(this,n),(r=t.call(this)).payload=e.map((function(e){return new ee(e)})),r}return v()(n,[{key:"setValue",value:function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))}},{key:"getValue",value:function(){return this.payload.map((function(e){return e.getValue()}))}},{key:"interpolate",value:function(e,t){return new $(this,e,t)}}]),n}(P),ne=0,re=function(){function e(){var t=this;h()(this,e),this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return t.interpolations},this.id=ne++}return v()(e,[{key:"update",value:function(e){if(!e)return this;var t=I(e),n=t.delay,r=void 0===n?0:n,o=t.to,i=Object(y.default)(t,["delay","to"]);if(_.arr(o)||_.fun(o))this.queue.push(Object(O.default)({},i,{delay:r,to:o}));else if(o){var a={};Object.entries(o).forEach((function(e){var t=e[0],n=e[1],o=Object(O.default)({to:g()({},t,n),delay:R(r,t)},i),c=a[o.delay]&&a[o.delay].to;a[o.delay]=Object(O.default)({},a[o.delay],o,{to:Object(O.default)({},c,o.to)})})),this.queue=Object.values(a)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(i),this}},{key:"start",value:function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,o=e.to,i=void 0===o?{}:o;_.obj(r)&&(n.merged=Object(O.default)({},r,n.merged)),_.obj(i)&&(n.merged=Object(O.default)({},n.merged,i))}));var r=this.local=++this.guid,o=this.localQueue=this.queue;this.queue=[],o.forEach((function(t,i){var a=t.delay,c=Object(y.default)(t,["delay"]),s=function(t){i===o.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},u=_.arr(c.to)||_.fun(c.to);a?setTimeout((function(){r===n.guid&&(u?n.runAsync(c,s):n.diff(c).start(s))}),a):u?n.runAsync(c,s):n.diff(c).start(s)}))}else _.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,Z.has(t)||Z.add(t),Q||(Q=!0,z(q||J));return this}},{key:"stop",value:function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this}},{key:"pause",value:function(e){var t;return this.stop(!0),e&&(t=this,Z.has(t)&&Z.delete(t)),this}},{key:"runAsync",value:function(e,t){var n=this,r=this,o=(e.delay,Object(y.default)(e,["delay"])),i=this.local,a=Promise.resolve(void 0);if(_.arr(o.to))for(var c=function(e){var t=e,r=Object(O.default)({},o,I(o.to[t]));_.arr(r.config)&&(r.config=r.config[t]),a=a.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(r).start(e)}))}))},s=0;s<o.to.length;s++)c(s);else if(_.fun(o.to)){var u,l=0;a=a.then((function(){return o.to((function(e){var t=Object(O.default)({},o,I(e));if(_.arr(t.config)&&(t.config=t.config[l]),l++,i===n.guid)return u=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),r.stop(e)})).then((function(){return u}))}))}a.then(t)}},{key:"diff",value:function(e){var t=this;this.props=Object(O.default)({},this.props,e);var n=this.props,r=n.from,o=void 0===r?{}:r,i=n.to,a=void 0===i?{}:i,c=n.config,s=void 0===c?{}:c,u=n.reverse,l=n.attach,d=n.reset,f=n.immediate;if(u){var p=[a,o];o=p[0],a=p[1]}this.merged=Object(O.default)({},o,this.merged,a),this.hasChanged=!1;var h=l&&l(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],i=n[1],a=e[r]||{},c=_.num(i),u=_.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!N[i],l=_.arr(i),p=!c&&!l&&!u,b=_.und(o[r])?i:o[r],v=c||l||u?i:1,m=R(s,r);h&&(v=h.animations[r].parent);var y,j=a.parent,E=a.interpolation,C=k(h?v.getPayload():v),w=i;p&&(w=B({range:[0,1],output:[i,i]})(1));var T=E&&E.getValue(),S=!_.und(j)&&a.animatedValues.some((function(e){return!e.done})),I=!_.equ(w,T),x=!_.equ(w,a.previous),D=!_.equ(m,a.config);if(d||x&&I||D){if(c||u)j=E=a.parent||new ee(b);else if(l)j=E=a.parent||new te(b);else if(p){var P=a.interpolation&&a.interpolation.calc(a.parent.value);P=void 0===P||d?b:P,a.parent?(j=a.parent).setValue(0,!1):j=new ee(0);var L={output:[P,i]};a.interpolation?(E=a.interpolation,a.interpolation.updateConfig(L)):E=j.interpolate(L)}return C=k(h?v.getPayload():v),y=k(j.getPayload()),d&&!p&&j.setValue(b,!1),t.hasChanged=!0,y.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=S?e.lastVelocity:void 0,e.lastTime=S?e.lastTime:void 0,e.startTime=G(),e.done=!1,e.animatedStyles.clear()})),R(f,r)&&j.setValue(p?v:i,!1),Object(O.default)({},e,g()({},r,Object(O.default)({},a,{name:r,parent:j,interpolation:E,animatedValues:y,toValues:C,previous:w,config:m,fromValues:k(j.getValue()),immediate:R(f,r),initialVelocity:A(m.velocity,0),clamp:A(m.clamp,!1),precision:A(m.precision,.01),tension:A(m.tension,170),friction:A(m.friction,26),mass:A(m.mass,1),duration:m.duration,easing:A(m.easing,(function(e){return e})),decay:m.decay})))}return I?e:(p&&(j.setValue(1,!1),E.updateConfig({output:[w,w]})),j.done=!0,t.hasChanged=!0,Object(O.default)({},e,g()({},r,Object(O.default)({},e[r],{previous:w}))))}),this.animations),this.hasChanged)for(var b in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[b]=this.animations[b].interpolation,this.values[b]=this.animations[b].interpolation.getValue();return this}},{key:"destroy",value:function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}}]),e}(),oe=function(e,t){var n=Object(j.useRef)(!1),r=Object(j.useRef)(),o=_.fun(t),i=Object(j.useMemo)((function(){var n;return r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,r){var i=new re,a=o?R(t,r,i):t[r];return 0===r&&(n=a.ref),i.update(a),n||i.start(),i})),n]}),[e]),a=i[0],c=i[1];r.current=a;Object(j.useImperativeHandle)(c,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var s=Object(j.useMemo)((function(){return function(e){return r.current.map((function(t,n){t.update(o?R(e,n,t):e[n]),c||t.start()}))}}),[e]);Object(j.useEffect)((function(){n.current?o||s(t):c||r.current.forEach((function(e){return e.start()}))})),Object(j.useEffect)((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var u=r.current.map((function(e){return e.getValues()}));return o?[u,s,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:u},ie=function(e){var t=_.fun(e),n=oe(1,t?e:[e]),r=n[0],o=n[1],i=n[2];return t?[r[0],o,i]:r},ae=0,ce=function(e,t){return("function"==typeof t?e.map(t):k(t)).map(String)},se=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,o=Object(y.default)(e,["items","keys"]);return t=k(void 0!==t?t:null),Object(O.default)({items:t,keys:ce(t,r)},o)};function ue(e,t,n){var r=Object(O.default)({items:e,keys:t||function(e){return e}},n),i=se(r),a=i.lazy,c=void 0!==a&&a,s=(i.unique,i.reset),u=void 0!==s&&s,l=(i.enter,i.leave,i.update,i.onDestroyed),d=(i.keys,i.items,i.onFrame),f=i.onRest,p=i.onStart,h=i.ref,b=Object(y.default)(i,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),v=S(),m=Object(j.useRef)(!1),g=Object(j.useRef)({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!m.current&&new Map,forceUpdate:v});return Object(j.useImperativeHandle)(r.ref,(function(){return{start:function(){return Promise.all(Array.from(g.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(g.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(g.current.instances).map((function(e){return e[1]}))}}})),g.current=function(e,t){var n=e.first,r=e.prevProps,i=Object(y.default)(e,["first","prevProps"]),a=se(t),c=a.items,s=a.keys,u=a.initial,l=a.from,d=a.enter,f=a.leave,p=a.update,h=a.trail,b=void 0===h?0:h,v=a.unique,m=a.config,g=a.order,j=void 0===g?["enter","leave","update"]:g,E=se(r),C=E.keys,w=E.items,T=Object(O.default)({},i.current),_=o()(i.deleted),S=Object.keys(T),A=new Set(S),k=new Set(s),I=s.filter((function(e){return!A.has(e)})),x=i.transitions.filter((function(e){return!e.destroyed&&!k.has(e.originalKey)})).map((function(e){return e.originalKey})),N=s.filter((function(e){return A.has(e)})),D=-b;for(;j.length;){switch(j.shift()){case"enter":I.forEach((function(e,t){v&&_.find((function(t){return t.originalKey===e}))&&(_=_.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=c[r],i=n&&void 0!==u?"initial":"enter";T[e]={slot:i,originalKey:e,key:v?String(e):ae++,item:o,trail:D+=b,config:R(m,o,i),from:R(n&&void 0!==u?u||{}:l,o),to:R(d,o)}}));break;case"leave":x.forEach((function(e){var t=C.indexOf(e),n=w[t];_.unshift(Object(O.default)({},T[e],{slot:"leave",destroyed:!0,left:C[Math.max(0,t-1)],right:C[Math.min(C.length,t+1)],trail:D+=b,config:R(m,n,"leave"),to:R(f,n)})),delete T[e]}));break;case"update":N.forEach((function(e){var t=s.indexOf(e),n=c[t];T[e]=Object(O.default)({},T[e],{item:n,slot:"update",trail:D+=b,config:R(m,n,"update"),to:R(p,n)})}))}}var P=s.map((function(e){return T[e]}));return _.forEach((function(e){var t,n=e.left,r=(e.right,Object(y.default)(e,["left","right"]));-1!==(t=P.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),P=[].concat(o()(P.slice(0,t)),[r],o()(P.slice(t)))})),Object(O.default)({},i,{changed:I.length||x.length||N.length,first:n&&0===I.length,transitions:P,current:T,deleted:_,prevProps:t})}(g.current,r),g.current.changed&&g.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,o=e.config,i=e.trail,a=e.key,s=e.item;g.current.instances.has(a)||g.current.instances.set(a,new re);var v=g.current.instances.get(a),m=Object(O.default)({},b,{to:r,from:n,config:o,ref:h,onRest:function(n){g.current.mounted&&(e.destroyed&&(h||c||le(g,a),l&&l(s)),!Array.from(g.current.instances).some((function(e){return!e[1].idle}))&&(h||c)&&g.current.deleted.length>0&&le(g),f&&f(s,t,n))},onStart:p&&function(){return p(s,t)},onFrame:d&&function(e){return d(s,t,e)},delay:i,reset:u&&"enter"===t});v.update(m),g.current.paused||v.start()})),Object(j.useEffect)((function(){return g.current.mounted=m.current=!0,function(){g.current.mounted=m.current=!1,Array.from(g.current.instances).map((function(e){return e[1].destroy()})),g.current.instances.clear()}}),[]),g.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:g.current.instances.get(r).getValues()}}))}function le(e,t){var n,r=C(e.current.deleted);try{var o=function(){var r=n.value.key,o=function(e){return e.key!==r};(_.und(t)||t===r)&&(e.current.instances.delete(r),e.current.transitions=e.current.transitions.filter(o),e.current.deleted=e.current.deleted.filter(o))};for(r.s();!(n=r.n()).done;)o()}catch(e){r.e(e)}finally{r.f()}e.current.forceUpdate()}var de=function(e){s()(n,e);var t=T(n);function n(e){var r;return h()(this,n),void 0===e&&(e={}),r=t.call(this),!e.transform||e.transform instanceof D||(e=x.transform(e)),r.payload=e,r}return n}(L),fe={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},pe="[-+]?\\d*\\.?\\d+";function he(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var be=new RegExp("rgb"+he(pe,pe,pe)),ve=new RegExp("rgba"+he(pe,pe,pe,pe)),me=new RegExp("hsl"+he(pe,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),ge=new RegExp("hsla"+he(pe,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",pe)),Oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ye=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,je=/^#([0-9a-fA-F]{6})$/,Ee=/^#([0-9a-fA-F]{8})$/;function Ce(e,t,n){return n<0&&(n+=1),n>1&&(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 we(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=Ce(o,r,e+1/3),a=Ce(o,r,e),c=Ce(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*c)<<8}function Te(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function _e(e){return(parseFloat(e)%360+360)%360/360}function Se(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Ae(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function ke(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=je.exec(t))?parseInt(n[1]+"ff",16)>>>0:fe.hasOwnProperty(t)?fe[t]:(n=be.exec(t))?(Te(n[1])<<24|Te(n[2])<<16|Te(n[3])<<8|255)>>>0:(n=ve.exec(t))?(Te(n[1])<<24|Te(n[2])<<16|Te(n[3])<<8|Se(n[4]))>>>0:(n=Oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=Ee.exec(t))?parseInt(n[1],16)>>>0:(n=ye.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=me.exec(t))?(255|we(_e(n[1]),Ae(n[2]),Ae(n[3])))>>>0:(n=ge.exec(t))?(we(_e(n[1]),Ae(n[2]),Ae(n[3]))|Se(n[4]))>>>0:null;if(null===r)return e;var o=(16711680&(r=r||0))>>>16,i=(65280&r)>>>8,a=(255&r)/255;return"rgba(".concat((4278190080&r)>>>24,", ").concat(o,", ").concat(i,", ").concat(a,")")}var Re=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ie=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,xe=new RegExp("(".concat(Object.keys(fe).join("|"),")"),"g"),Ne={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},De=["Webkit","Ms","Moz","O"];function Pe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Ne.hasOwnProperty(e)&&Ne[e]?(""+t).trim():t+"px"}Ne=Object.keys(Ne).reduce((function(e,t){return De.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),Ne);var Le={};W((function(e){return new de(e)})),V("div"),F((function(e){var t=e.output.map((function(e){return e.replace(Ie,ke)})).map((function(e){return e.replace(xe,ke)})),n=t[0].match(Re).map((function(){return[]}));t.forEach((function(e){e.match(Re).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(Re).map((function(t,r){return X(Object(O.default)({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(Re,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba(".concat(Math.round(t),", ").concat(Math.round(n),", ").concat(Math.round(r),", ").concat(o,")")}))}})),U(fe),M((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,i=t.scrollLeft,a=Object(y.default)(t,["style","children","scrollTop","scrollLeft"]),c="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var u=0===s.indexOf("--"),l=Pe(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,l):e.style[s]=l}for(var d in a){var f=c?d:Le[d]||(Le[d]=d.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,a[d])}}),(function(e){return e}));var Me,Ue,Be=(Me=function(e){return Object(j.forwardRef)((function(t,n){var r=S(),o=Object(j.useRef)(!0),i=Object(j.useRef)(null),a=Object(j.useRef)(null),c=Object(j.useCallback)((function(e){var t=i.current;i.current=new Y(e,(function(){var e=!1;a.current&&(e=x.fn(a.current,i.current.getAnimatedValue())),a.current&&!1!==e||r()})),t&&t.detach()}),[]);Object(j.useEffect)((function(){return function(){o.current=!1,i.current&&i.current.detach()}}),[]),Object(j.useImperativeHandle)(n,(function(){return K(a,o,r)})),c(t);var s,u=i.current.getValue(),l=(u.scrollTop,u.scrollLeft,Object(y.default)(u,["scrollTop","scrollLeft"])),d=(s=e,!_.fun(s)||s.prototype instanceof E.a.Component?function(e){return a.current=function(e,t){return t&&(_.fun(t)?t(e):_.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return E.a.createElement(e,Object(O.default)({},l,{ref:d}))}))},void 0===(Ue=!1)&&(Ue=!0),function(e){return(_.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=Ue?t[0].toLowerCase()+t.substring(1):t;return e[n]=Me(n),e}),Me)})(["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"])},function(e,t,n){"use strict";n.d(t,"b",(function(){return V}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(30),h=n.n(p),b=n(41),v=n.n(b),m=n(1),g=n.n(m),O=n(6),y=n.n(O),j=n(1075),E=n(12),C=n(36),w=n(209),T=n.n(w),_=n(646),S=n.n(_),A=n(354),k=n.n(A),R=n(66),I=n.n(R),x=n(183),N=n(43),D=n(399),P=(n(384),n(3)),L=function(){return Object(P.c)("span",{className:"Editable-toolbar-separator"})},M=function(e){var t=e.className,n=v()(e,["className"]);return Object(P.c)(N.b,h()({className:y()(t,"Editable-toolbarMenuItem")},n))},U=n(1031),B=n(11);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}g.a.Component;var F=n(117);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var V={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},q={FIRST_LINE:[F.a.BASIC_STYLING,F.a.LIST_CONTENT,F.a.BLOCK_CONTENT,F.a.STRUCTURE_STYLING,F.a.FORMAT_EDITING],SECOND_LINE:[F.a.BASIC_MEDIA,F.a.PROFESSIONAL_MEDIA,F.a.CUSTOM_MAIN]},K=function(e){s()(n,e);var t=G(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={isMenuOpen:!1,isMenuAttentionShown:!1},e.timeout=null,e.toolbarRef=g.a.createRef(),e.menuButtonRef=g.a.createRef(),e.showMenuAttention=function(){e.timeout=setTimeout((function(){e.setState({isMenuAttentionShown:!0}),e.timeout=setTimeout((function(){e.setState({isMenuAttentionShown:!1})}),5e3)}),2e3)},e}return a()(n,[{key:"componentDidMount",value:function(){this.props.toolbarMenuAttention&&this.showMenuAttention()}},{key:"componentDidUpdate",value:function(e){this.props.toolbarMenuAttention&&!e.toolbarMenuAttention&&this.showMenuAttention()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"renderToolbarSections",value:function(e){var t=this.props,n=t.currentStyle,r=t.currentBlockType,o=t.onCommand,i=t.plugins,a=Object(F.b)(i),c=H(0,r);return e.map((function(t,i){var s;return Object(P.c)(m.Fragment,{key:t},Object(P.c)(g.a.Fragment,null,k()(a[t],(function(e){var t;return null!==(t=e.priority)&&void 0!==t?t:1/0})).map((function(e){var t,i,a=I()(e,"style"),s=a.onClick,u=a.toolType,l=a.Component,d=void 0===l?D.a:l,f=a.commandName,p=a.shouldActive,b=a.shouldShow,m=void 0===b?function(){return!0}:b,g=a.shouldDisabled,O=void 0===g?function(){return null}:g,y=v()(a,["onClick","toolType","Component","commandName","shouldActive","shouldShow","shouldDisabled"]);if(!m())return null;if(e.section===F.a.MENU){var j,E=e.label,C=e.icon,w=e.onClick,_=e.commandName,A=v()(e,["label","icon","onClick","commandName"]);return Object(P.c)(M,h()({key:null!==(j=e.icon)&&void 0!==j?j:null==d?void 0:d.name,onClick:function(e){null==w||w(e),_&&o(_)}},A),Object(P.c)(C,{text:!0}),E)}var k=T()(Object.assign({onClick:function(e){null==s||s(e),f&&o(f)}},p&&{isActive:p({currentStyle:n,currentBlockType:r})},{disabled:null!==(t=O())&&void 0!==t?t:c[u]},y),(function(e){return!S()(e)}));return Object(P.c)(d,h()({key:null!==(i=e.icon)&&void 0!==i?i:null==d?void 0:d.name},k))}))),i!==q.FIRST_LINE.length-1&&(null===(s=a[e[i+1]])||void 0===s?void 0:s.length)>0&&Object(P.c)(L,null))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=(t.currentStyle,t.currentBlockType),o=t.onCommand,i=t.toolbarMainPlugins,a=t.toolbarSidePlugins,c=t.toolbarMenuPlugins,s=t.toolbarMenuAttention,u=t.isFixed,l=t.style,d=t.menuCallout,f=t.plugins,p=this.state,h=p.isMenuOpen,b=p.isMenuAttentionShown,v=H(0,r),m=Object(F.b)(f);return Object(P.c)(C.b,{block:"Toolbar"},Object(P.c)("div",{style:l,className:y()("Editable-toolbar",n),onMouseDown:function(e){return e.preventDefault()},ref:this.toolbarRef},Object(P.c)("div",{className:"Editable-toolbar-controls"},this.renderToolbarSections(q.FIRST_LINE),Object(P.c)(N.c,{className:"Editable-toolbarMenu",getContainer:function(){return e.toolbarRef.current},toggler:Object(P.c)(D.a,{label:h?null:"更多",icon:j.a,disabled:v.entity,onRef:this.menuButtonRef,onMouseEnter:b?function(){clearTimeout(e.timeout),e.setState({isMenuAttentionShown:!1})}:null}),onClick:function(e){E.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([F.a.MENU]),c),Object(P.c)(x.a,{isOpen:b,target:b&&this.menuButtonRef.current,container:this.toolbarRef.current,isFixed:u},s),a&&Object(P.c)(L,null),a),Object(P.c)("div",{className:"Editable-toolbar-controls"},this.renderToolbarSections(q.SECOND_LINE),i&&0===m[F.a.CUSTOM_MAIN].length&&Object(P.c)(L,null),i),d&&g.a.cloneElement(d,{anchor:this.menuButtonRef})))}}]),n}(m.Component);t.a=K},function(e,t,n){"use strict";var r=n(32),o=n(7),i=n(8),a=n(9),c=n(10),s=n(5),u=n(0),l=n(1),d=n.n(l),f=n(6),p=n.n(f),h=n(388);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 v=function(e){Object(a.a)(n,e);var t=b(n);function n(){var e;Object(o.a)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={loaded:!1},e}return Object(i.a)(n,[{key:"componentDidMount",value:function(){var e=this;if("complete"===document.readyState)this.setState({loaded:!0});else{window.addEventListener("load",(function t(){window.removeEventListener("load",t),e.setState({loaded:!0})}))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,o=Object(r.a)(t,["className"]),i=this.state.loaded;return Object(u.b)(h.a,Object.assign({className:p()("OpenInAppButton",n,{"is-shown":i}),ref:function(t){e.node=t}},o,{children:"App 内打开"}))}}]),n}(d.a.Component);t.a=v},function(e,t,n){"use strict";n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return w}));var r,o=n(17),i=n(32),a=n(60),c=n.n(a),s=n(12),u=n(66),l=n.n(u),d=n(151),f=n(68),p=n.n(f),h=n(158),b=n(176),v=n(40),m=n.n(v),g=n(4),O=(r={homepage:/zhihu.com(\/)?(?=(\?|$))/,zhuanlan:/(zhuanlan.zhihu.com)|zhihu.com\/column/},Object(g.a)(r,"QA",/zhihu.com\/question/),Object(g.a)(r,"pin",/zhihu.com\/pin/),Object(g.a)(r,"live",/zhihu.com(\/market)?\/lives/),Object(g.a)(r,"pub",/zhihu.com\/pub/),Object(g.a)(r,"people",/zhihu.com\/people/),Object(g.a)(r,"zhi",/zhihu.com\/zhi/),Object(g.a)(r,"topic",/zhihu.com\/topic/),Object(g.a)(r,"search",/zhihu.com\/search/),Object(g.a)(r,"roundtable",/zhihu.com\/roundtable/),Object(g.a)(r,"terms",/zhihu.com\/terms/),Object(g.a)(r,"more",/zhihu.com\/more/),Object(g.a)(r,"collection",/zhihu.com\/collection/),Object(g.a)(r,"copyright",/zhihu.com\/copyright/),Object(g.a)(r,"account",/zhihu.com\/account/),Object(g.a)(r,"explore",/zhihu.com\/explore/),Object(g.a)(r,"inbox",/zhihu.com\/inbox/),Object(g.a)(r,"org",/zhihu.com\/org/),Object(g.a)(r,"settings",/zhihu.com\/settings/),Object(g.a)(r,"report",/zhihu.com\/report/),r);function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object.keys(O).find((function(t){return O[t].test(Object(d.toAbsoluteUrl)(e))}))||"other_".concat(e)}var j=n(389);function E(e){if("undefined"==typeof window&&!e)return{};e=e||location.href;var t=c.a.parse(e.split("?")[1])||{},n=Object.keys(t).filter((function(e){return e.startsWith("utm_")||"zh_channel"===e})),r={};n.length&&n.forEach((function(e){r[e]=t[e]}));var o="undefined"!=typeof location&&y(location.href),i="QA"!==o,a=Object(j.a)(),s="";try{"undefined"!=typeof window&&(s=window.sessionStorage.getItem("utm_source"))}catch(e){}var u=s||a;return Object.assign({},i&&o&&{utm_medium:o},u&&{utm_source:u},r)}var C=function(e,t){var n=p()(window.navigator.userAgent),r=function(e){var t=p()(window.navigator.userAgent),n=c.a.parse(window.location.search.slice(1)).app,r=m.a.isSupported()&&"1"===window.sessionStorage.getItem("from_zhihulite"),o="https://oia.zhihu.com/".concat(e.replace("zhihu://","")),i=Object(d.modifyQuery)(e,(function(e){return Object.assign({open:"1"},e,r&&{app:"zhihulite"},n&&{app:n},{fallback_url:o})}));return t.Android&&(i=i.replace(/^zhihu:\/\/promotions/,"zhihu://promotion")),i}("".concat(e,"?").concat(c.a.stringify(l()(t,["preventToOIA"])))),o=r.replace("zhihu://","");if(n.Wechat&&window.wx){var i=navigator.userAgent.match(/MicroMessenger\/(\S*)/);if(i&&Object(h.compareVersion)(i[1],"6.5.16")>0)return void("function"==typeof window.wx.invoke&&window.wx.invoke("launchApplication",{appID:"wxd3f6cb54399a8489",parameter:"wechat_launch?scheme_url=".concat(encodeURIComponent(r)),extInfo:JSON.stringify({url:r})},(function(e){"launchApplication:ok"===e.err_msg||"oia.zhihu.com"===window.location.hostname||window.location.href.startsWith("https://www.zhihu.com/oia")||t.preventToOIA||(window.location.href=Object(d.modifyQuery)("https://oia.zhihu.com/".concat(o),(function(e){return Object.assign({},e,{auto_redirect:!1})})))})))}n.Wechat&&!window.wx&&console.warn("使用 openInApp 中的 initOpenInApp() 初始化、可以在微信中直接打开 App"),n.Android?n.Weibo?window.location.href="https://www.zhihu.com/oia_free/".concat(o):window.location.href="https://www.zhihu.com/oia/".concat(o):window.location.href="https://oia.zhihu.com/".concat(o)},w=function(){var e;return p()(window.navigator.userAgent).Wechat?(e="".concat(location.protocol,"//res.wx.qq.com/open/js/jweixin-1.3.2.js"),(window.wx?Promise.resolve():Object(b.loadScript)(e)).then((function(){return fetch("".concat("https://www.zhihu.com/wechat/jssdkconfig","?url=").concat(encodeURIComponent(location.href.split("#")[0]))).then((function(e){if(e.ok)return e.json();throw new Error("Failed to fetch wechat jssdk config")}))})).then((function(e){return new Promise((function(t,n){var r=function(){window.wx&&(window.wx.config(Object.assign({},e,{beta:!0,jsApiList:["onMenuShareTimeline","onMenuShareAppMessage","launchApplication"]})),window.wx.ready(t),window.wx.error(n))};window.wx?r():document.addEventListener("WeixinJSBridgeReady",r)}))}))):Promise.resolve()};t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.zaProps,r=Object(i.a)(t,["zaProps"]);n&&s.a.trackEvent(null,Object.assign({action:"OpenUrl"},n),{link:{url:e}});var a=E(),u=p()(window.navigator.userAgent),l=["BaiduApp","QQ","Qzone","Wechat","Weibo"],d=l.find((function(e){return u[e]}));d&&(r.utm_app_name=d);var f=e.split("?"),h=Object(o.a)(f,2),b=h[0],v=h[1],m=c.a.parse(v),g=Object.assign({},a,m,r);"function"==typeof window.gtag&&window.gtag("event","launch-app",{event_category:"engagement",event_label:g.utm_content||""}),C(b,g)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(1),h=n(6),b=n.n(h),v=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var g=function(e){s()(n,e);var t=m(n);function n(){return o()(this,n),t.apply(this,arguments)}return a()(n,[{key:"render",value:function(){var e=this.props,t=e.current,n=e.max,r=e.className,o=e.name,i=void 0===o?"字数":o,a=n-t;return t>n?Object(v.c)("span",{className:b()(r,"MaxLength","is-error")},i,"已超过 ",-a," 个字"):Object(v.c)("span",{className:b()(r,"MaxLength")},a<=10&&"还可以输入 ".concat(a," 个字"))}}]),n}(p.Component)},function(e,t,n){"use strict";t.a=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},function(e,t,n){"use strict";function r(e){if(e&&"true"!==e.dataset.stopScrollPropagation){var t={startPageY:0,maxScrollY:0,scrollElement:null};return e.addEventListener("touchstart",n),e.addEventListener("touchmove",r),e.addEventListener("touchend",o),e.addEventListener("touchecancel",o),e.dataset.stopScrollPropagation="true",function(){e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",r),e.removeEventListener("touchend",o),e.removeEventListener("touchecancel",o),e.dataset.stopScrollPropagation="false"}}function n(n){var r=n.target,o=function t(n){var r=n.scrollHeight-n.clientHeight>0;return e.contains(n)&&r||n===e?n:t(n.parentNode)}(r),i=o.contains(r),a=n.touches[0]&&n.touches[0].pageY||0;t.scrollElement=o,i&&(t.startPageY=a,t.maxScrollY=o.scrollHeight-o.clientHeight)}function r(e){if(t.maxScrollY<=0)e.preventDefault();else{var n=(e.touches[0]&&e.touches[0].pageY||0)-t.startPageY,r=t.scrollElement,o=r&&r.scrollTop;n>0&&0===Number(o)&&e.preventDefault(),n<0&&Number(o)+1>=t.maxScrollY&&e.preventDefault()}}function o(){t.maxScrollY=0}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s}));var r=n(55),o=n.n(r),i=n(118),a=n.n(i);function c(e){if(Function.prototype.isPrototypeOf(e))return function(t,n){var r=e(t,n);return t!==r&&r?a()({},t,r):t};if(Object.prototype.isPrototypeOf(e))return function(t,n){var r=n.type;if(!e.hasOwnProperty(r))return t;var o=e[r];if(!Function.prototype.isPrototypeOf(o))throw new Error("expected get a function to handler action");var i=o(t,n);return t!==i&&i?a()({},t,i):t};throw new Error("expected argument is a object or function")}function s(e){return function(t,n){return Object.keys(e).reduce((function(t,r){return Object.assign({},t,o()({},r,e[r](t[r],n)))}),t)}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var r=n(71),o=function(){return Object(r.isBrowser)()?location.host.includes("zhihu.dev"):"testing"===e.env.ZAE_ENV}}).call(this,n(285))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return u}));var r=n(15),o=n(427),i=n(19),a=n(254),c=n(237),s=Object(i.a)("chat",["GET_RECENTS"]),u=function(e){return function(t,n){var r=n().chat.inbox.recents.next,i=e||!r?"/inbox":r;return t({API:{types:s.GET_RECENTS,endpoint:i},schema:o.a})}};t.b=Object(a.a)(s.GET_RECENTS,null,(function(e,t){if(t.type===c.c.SEND_MESSAGE.success){var n=e.result,o=t.meta.receiverId;return n.indexOf(o)>=0?e:Object.assign({},e,{result:[o].concat(Object(r.a)(n))})}if(t.type===c.c.DELETE_MESSAGE_THREAD.success){var i=t.meta.chatId;return Object.assign({},e,{result:e.result.filter((function(e){return e!==i}))})}return e}))},function(e,t,n){var r;!function(o,i,a){if(o){for(var c,s={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},u={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},l={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},d={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},f=1;f<20;++f)s[111+f]="f"+f;for(f=0;f<=9;++f)s[f+96]=f.toString();g.prototype.bind=function(e,t,n){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,n),this},g.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},g.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},g.prototype.reset=function(){return this._callbacks={},this._directMap={},this},g.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function e(t,n){return null!==t&&t!==i&&(t===n||e(t.parentNode,n))}(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},g.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},g.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(s[t]=e[t]);c=null},g.init=function(){var e=g(i);for(var t in e)"_"!==t.charAt(0)&&(g[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},g.init(),o.Mousetrap=g,e.exports&&(e.exports=g),void 0===(r=function(){return g}.call(t,n,t,e))||(e.exports=r)}function p(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function h(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return s[e.which]?s[e.which]:u[e.which]?u[e.which]:String.fromCharCode(e.which).toLowerCase()}function b(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function v(e,t,n){return n||(n=function(){if(!c)for(var e in c={},s)e>95&&e<112||s.hasOwnProperty(e)&&(c[s[e]]=e);return c}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function m(e,t){var n,r,o,i=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),o=0;o<n.length;++o)r=n[o],d[r]&&(r=d[r]),t&&"keypress"!=t&&l[r]&&(r=l[r],i.push("shift")),b(r)&&i.push(r);return{key:r,modifiers:i,action:t=v(r,i,t)}}function g(e){var t=this;if(e=e||i,!(t instanceof g))return new g(e);t.target=e,t._callbacks={},t._directMap={};var n,r={},o=!1,a=!1,c=!1;function s(e){e=e||{};var t,n=!1;for(t in r)e[t]?n=!0:r[t]=0;n||(c=!1)}function u(e,n,o,i,a,c){var s,u,l,d,f=[],p=o.type;if(!t._callbacks[e])return[];for("keyup"==p&&b(e)&&(n=[e]),s=0;s<t._callbacks[e].length;++s)if(u=t._callbacks[e][s],(i||!u.seq||r[u.seq]==u.level)&&p==u.action&&("keypress"==p&&!o.metaKey&&!o.ctrlKey||(l=n,d=u.modifiers,l.sort().join(",")===d.sort().join(",")))){var h=!i&&u.combo==a,v=i&&u.seq==i&&u.level==c;(h||v)&&t._callbacks[e].splice(s,1),f.push(u)}return f}function l(e,n,r,o){t.stopCallback(n,n.target||n.srcElement,r,o)||!1===e(n,r)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}function d(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=h(e);n&&("keyup"!=e.type||o!==n?t.handleKey(n,function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):o=!1)}function f(e,t,i,a){function u(t){return function(){c=t,++r[e],clearTimeout(n),n=setTimeout(s,1e3)}}function d(t){l(i,t,e),"keyup"!==a&&(o=h(t)),setTimeout(s,10)}r[e]=0;for(var f=0;f<t.length;++f){var p=f+1===t.length?d:u(a||m(t[f+1]).action);v(t[f],p,a,e,f)}}function v(e,n,r,o,i){t._directMap[e+":"+r]=n;var a,c=(e=e.replace(/\s+/g," ")).split(" ");c.length>1?f(e,c,n,r):(a=m(e,r),t._callbacks[a.key]=t._callbacks[a.key]||[],u(a.key,a.modifiers,{type:a.action},o,e,i),t._callbacks[a.key][o?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:o,level:i,combo:e}))}t._handleKey=function(e,t,n){var r,o=u(e,t,n),i={},d=0,f=!1;for(r=0;r<o.length;++r)o[r].seq&&(d=Math.max(d,o[r].level));for(r=0;r<o.length;++r)if(o[r].seq){if(o[r].level!=d)continue;f=!0,i[o[r].seq]=1,l(o[r].callback,n,o[r].combo,o[r].seq)}else f||l(o[r].callback,n,o[r].combo);var p="keypress"==n.type&&a;n.type!=c||b(e)||p||s(i),a=f&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)v(e[r],t,n)},p(e,"keypress",d),p(e,"keydown",d),p(e,"keyup",d)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var r=n(21),o=n(347),i=n(35),a=n(19),c=Object(a.a)("report",["ADD","REPORT_USER_ACTION"]),s=function(e){var t=e.message,n=e.code;return[103006,103007].includes(n)?t||o.a.failure:[103003,103001].includes(e.code)?o.a.duplicate:o.a.failure},u=o.a.success;function l(e,t,n,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"web",l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return{API:{types:c.ADD,endpoint:"reports",method:"POST",body:Object(r.decamelizeKeys)({resourceId:e,type:t,reasonType:n,customReason:o,source:a})},NOTIFICATION:void 0===l.NOTIFICATION?{key:"comment"===t?i.b:i.c,success:u,failure:s}:l.NOTIFICATION}}},function(e,t,n){"use strict";var r=n(38);t.a=function(e){return"1"===Object(r.a)(e,"pc_editorplugin")}},function(e,t,n){"use strict";var r=n(7),o=n(8),i=n(9),a=n(10),c=n(5),s=n(0),u=n(1),l=n(2),d=n.n(l),f=n(91),p=n.n(f),h=n(394);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}t.a=function(e){var t=function(t){Object(i.a)(a,t);var n=b(a);function a(){return Object(r.a)(this,a),n.apply(this,arguments)}return Object(o.a)(a,[{key:"render",value:function(){var t=this.props.currentUser,n=this.context.authRequired,r=void 0===n?function(){}:n;return Object(s.b)(e,Object.assign({isLogin:t&&"guest"!==t.userType,authRequired:r},this.props))}}]),a}(u.Component);return t.contextTypes={authRequired:d.a.func},p()(Object(h.b)(t),e)}},function(e,t,n){"use strict";var r=n(17),o=n(1),i=n(40),a=n.n(i);t.a=function(e){var t=Object(o.useState)((function(){return a.a.get(e)})),n=Object(r.a)(t,2),i=n[0],c=n[1];return[i,Object(o.useCallback)((function(t){a.a.set(e,t),c(t)}),[e])]}},function(e,t,n){"use strict";var r=n(32),o=n(0),i=n(1),a=n(2),c=n.n(a),s=n(196),u=n(246),l=n(664);function d(e){var t,n=e.user,a=e.noHeadline,c=Object(r.a)(e,["user","noHeadline"]),d=n.headline,f=n.isOrg,p=Object(i.useMemo)((function(){return Object(u.d)(n.badgeV2||n.badge)}),[n]),h=p.identity,b=p.bestAnswerer,v=p.baike,m=p.title;return m?Object(o.b)(s.a,Object.assign({html:m},c)):!f&&(null==b||null===(t=b.topics)||void 0===t?void 0:t.length)?Object(o.c)("div",Object.assign({},c,{children:[Object(o.b)(l.a,{topics:b.topics,user:n}),"的优秀答主"]})):h?Object(o.b)("div",Object.assign({},c,{children:h[0].description})):v?Object(o.b)("div",Object.assign({},c,{children:v.description})):d&&!a?Object(o.b)(s.a,Object.assign({html:d},c)):null}d.propTypes={user:c.a.object.isRequired,noHeadline:c.a.bool},t.a=Object(i.memo)(d)},function(e,t,n){"use strict";var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(30),h=n.n(p),b=n(41),v=n.n(b),m=n(2),g=n.n(m),O=n(1),y=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var E=function(e){s()(n,e);var t=j(n);function n(){return o()(this,n),t.apply(this,arguments)}return a()(n,[{key:"render",value:function(){var e=this.props,t=e.src,n=t.content,r=t.attributes,o=e.title,i=v()(e,["src","title"]);return Object(y.c)("svg",h()({},r,i),Object(y.c)("title",null,o),Object(y.c)("g",{dangerouslySetInnerHTML:{__html:n}}))}}]),n}(O.Component);E.propTypes={src:g.a.object.isRequired},t.a=E},function(e,t,n){"use strict";n.d(t,"b",(function(){return x})),n.d(t,"a",(function(){return d}));var r=n(2),o=n.n(r),i=n(1),a=n(6),c=n.n(a),s=n(95),u=n(3),l=function(e){var t=e.title,n=e.subtitle,r=e.attrInfo,o=e.coverUrl,i=e.avatarUrl,a=e.avatarFit;return Object(u.c)("div",null,o&&Object(u.c)("div",{className:"HoverCard-coverContainer"},Object(u.c)("img",{className:"HoverCard-cover",src:o,alt:"cover"})),Object(u.c)("div",{className:c()("HoverCard-titleContainer",{"HoverCard-titleContainer--noAvatar":!o})},i&&Object(u.c)(s.a,{size:68,className:"HoverCard-avatar",url:i,imgFit:a}),Object(u.c)("div",{className:c()("HoverCard-titleText",{"HoverCard-titleText--noAvatar":!i})},Object(u.c)("div",{className:"HoverCard-title"},t),n&&Object(u.c)("div",{className:"HoverCard-subtitle"},n)),r&&Object(u.c)("div",{className:"HoverCard-attrInfo"},r)))};l.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=l,f=n(22),p=n.n(f),h=n(24),b=n.n(h),v=n(25),m=n.n(v),g=n(27),O=n.n(g),y=n(16),j=n.n(y),E=n(30),C=n.n(E),w=n(41),T=n.n(w),_=n(66),S=n.n(_),A=n(132),k=n(105);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 O()(this,n)}}var I=function(e){m()(n,e);var t=R(n);function n(){var e;p()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={opened:!1,placement:null,loaderStyle:null},e.handleOpen=function(t){var n=t.arrowStyle,r=t.placement,o=e.props.onOpen;o&&o(),e.setState({opened:!0,placement:r,loaderStyle:n})},e.handleClose=function(){var t=e.props.onClose;t&&t(),e.setState({opened:!1})},e}return b()(n,[{key:"render",value:function(){var e=S()(this.props,["onOpen","onClose"]),t=e.toggler,n=e.children,r=e.isLoading,o=e.onRef,a=e.size,s=T()(e,["toggler","children","isLoading","onRef","size"]),l=this.state,d=l.opened,f=l.loaderStyle;return Object(u.c)(k.a,C()({noLayer:!0,toggler:Object(u.c)("div",null,t),toggleEvent:"hover",targetClassName:"HoverCard-popoverTarget",placement:"bottom-left",onOpen:this.handleOpen,onClose:this.handleClose},s),Object(u.c)("div",{className:c()("HoverCard-container",{"HoverCard-container--large":"large"===a}),ref:o},r&&Object(u.c)("div",{className:"HoverCard-loading",style:f},Object(u.c)(A.a,null)),Object(u.c)("div",{className:c()("HoverCard",{"HoverCard--isLoading":r||!d})},i.Children.map(n,(function(e){return e&&("string"==typeof e?Object(u.c)("div",{className:"HoverCard-item"},e):Object(i.cloneElement)(e,{className:c()("HoverCard-item",e.props.className)}))})))))}}]),n}(i.Component);I.propTypes={toggler:o.a.node.isRequired,isLoading:o.a.bool,onOpen:o.a.func,onClose:o.a.func,size:o.a.oneOf(["default","large"])},I.defaultProps={margin:16,align:"left",topExcludedHeight:60,size:"default"};var x=I},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(162),o=n(282),i={closed:!0,next:function(e){},error:function(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(o.a)(e)},complete:function(){}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n(187),o={ready:"立即下载",downloading:"下载中...",pause:"继续下载",completed:"立即安装",error:"立即下载"},i=(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"},{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"}),"https://www.zhihu.com"),a=("".concat(i,"/m_banner.html"),"".concat(i,"/m_banner2.html"),"".concat(i,"/natsume/maozhua_m_banner.html"),"".concat(i,"/natsume/ruoying_m_banner.html"),"".concat(i,"/m_related_feed.html"),"".concat(i,"/natsume/ruoying_related_feed.html"),"".concat(i,"/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){var r=n(1025);function o(t,n,i){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=o=Reflect.get:e.exports=o=function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}},o(t,n,i||t)}e.exports=o},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return P})),n.d(t,"a",(function(){return G}));var r=n(1),o=n.n(r),i=n(6),a=n.n(i),c=n(3),s=function(e){var t=e.className,n=e.children;return Object(c.c)("div",{className:a()("CornerButtons",t)},n)},u=n(30),l=n.n(u),d=n(41),f=n.n(d),p=n(2),h=n.n(p),b=n(11),v=function(e){var t=e.visible,n=e.children;return Object(c.c)("div",{className:a()("CornerAnimayedFlex",{"CornerAnimayedFlex--hidden":!t})},n)};v.defaultProps={visible:!0};var m=v,g=function(e){var t=e.className,n=e.visible,r=e.tooltip,o=e.children,i=f()(e,["className","visible","tooltip","children"]);return Object(c.c)(m,{visible:n},Object(c.c)(b.c,l()({},i,{"data-tooltip":r,"data-tooltip-position":"left","data-tooltip-will-hide-on-click":!0,className:a()(t,"CornerButton"),"aria-label":r,preset:"plain"}),o))};g.propTypes={className:h.a.string,tooltip:h.a.string.isRequired,visible:h.a.bool,children:h.a.node};var O=g,y=n(22),j=n.n(y),E=n(24),C=n.n(E),w=n(25),T=n.n(w),_=n(27),S=n.n(_),A=n(16),k=n.n(A),R=n(20),I=function(e){return o.a.createElement(R.a,e,o.a.createElement("path",{d:"M19.99 6.99L18 5s-1-1-2-1H8C7 4 6 5 6 5L4 7S3 8 3 9v9s0 2 2.002 2H19c2 0 2-2 2-2V9c0-1-1.01-2.01-1.01-2.01zM16.5 5.5L19 8H5l2.5-2.5h9zm-2 5.5s.5 0 .5.5-.5.5-.5.5h-5s-.5 0-.5-.5.5-.5.5-.5h5z"}))};I.defaultProps={name:"Feedback"};var x=I;function N(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k()(e);if(t){var o=k()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S()(this,n)}}var D=function(e){T()(n,e);var t=N(n);function n(){return j()(this,n),t.apply(this,arguments)}return C()(n,[{key:"navigationToZhiyisheng",value:function(){location.href="https://www.zhihu.com/inbox/5582663910?message=".concat(encodeURIComponent("您好,我遇到的问题的场景是:\n具体功能是:\n具体反馈是:"))}},{key:"render",value:function(){var e=this.props.className;return Object(c.c)(O,{className:e,tooltip:"建议反馈",onClick:this.navigationToZhiyisheng},Object(c.c)(x,{"aria-label":"建议反馈"}))}}]),n}(r.Component);D.propTypes={className:h.a.string};var P=D,L=n(39),M=n.n(L),U=n(123),B=n(1058),z=n(31),F=n(146),G=function(e){var t=e.className,n=e.onClick,r=e.threshold,i=void 0===r?1200:r,a=Object(z.d)(),s=M()(a,2),u=s[0],l=s[1];return Object(c.c)(o.a.Fragment,null,Object(c.c)(O,{visible:!l,className:t,tooltip:"回到顶部",onClick:function(e){n&&n(e),e.defaultPrevented||window.scrollTo({top:0,behavior:"smooth"})}},Object(c.c)(B.a,{"aria-label":"回到顶部"})),Object(c.c)(F.a,null,Object(c.c)("div",{ref:u,css:Object(U.a)({position:"absolute",top:0,height:i},"")})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return p}));var r=n(131),o=n(21),i=n(130);function a(e){var t=e.collectionId,n=e.contentId,r=e.contentType;return i.a.http("/api/v4/collections/".concat(t,"/contents/").concat(n),{method:"DELETE",query:Object(o.decamelizeKeys)({contentType:r})})}function c(e){var t=e.collectionId,n=e.contentId,r=e.contentType;return i.a.http("/api/v4/collections/".concat(t,"/contents"),{method:"POST",query:Object(o.decamelizeKeys)({contentId:n,contentType:r})})}function s(e,t,n,r){return(t?a:c)({collectionId:e,contentId:n,contentType:r})}var u=n(161);var l=n(351),d=Object(u.a)(r.a.ADD,(function(e){return i.a.http("/api/v4/collections",{method:"POST",query:{include:"updated_time,answer_count,follower_count"},zsEncrypt:!0,bodyType:"json",body:Object(o.decamelizeKeys)(e)})}),(function(e,t){return Object.assign({},i.a.enableSchema&&{schema:l.a},{favlist:e},t)})),f=Object(u.a)(r.a.UPDATE_ITEM,(function(e,t,n,r){return function(o,i){var a=Object(u.e)(r)?Object(u.d)(r):function(e,t){var n=t.contentId,r=t.contentType,o=t.favlistId;return((e.favlists?e.favlists.relations:e.favlistRelations)["".concat(r,"_").concat(n)]||{})[o]}(i(),{favlistId:e,contentId:t,contentType:n});return{action:Object.assign({favlistId:e,contentId:t,contentType:n,collected:!a},r),fetcher:s(e,a,t,n)}}})),p=(Object(u.a)(r.a.GET_FAVORITE_STATUS,(function(e,t,n){return i.a.http("/api/v4/".concat(t,"s/").concat(e,"/relations/collected"),{query:Object(o.decamelizeKeys)({favlistIds:JSON.stringify(n)})})}),(function(e,t,n,r){return Object.assign({contentId:e,contentType:t,favlistIds:n},r)})),function(e){var t=e.contentId,n=e.contentType,o=e.relations;return{type:r.b.UPDATE_RELATIONS,contentId:t,contentType:n,payload:{relations:o}}})},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return c}));var r=n(412),o=n.n(r);function i(e,t){e&&(e.focus(t),e instanceof HTMLInputElement&&e.select())}function a(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(o()(t)),a=r.length;if(a){var c=r.indexOf(document.activeElement);-1===c?("prev"===e&&i(r[a-1]),"next"===e&&i(r[0])):("prev"===e&&i(r[(c-1+a)%a]),"next"===e&&i(r[(c+1)%a]))}}function c(e){a("next",e)}t.a=i},function(e,t,n){"use strict";n.d(t,"b",(function(){return p}));var r=n(30),o=n.n(r),i=n(41),a=n.n(i),c=(n(1),n(66)),s=n.n(c),u=n(6),l=n.n(u),d=n(60),f=n(3),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.c)("div",e,Object(f.c)("span",null),Object(f.c)("span",null))},b=function(e){var t=s()(e,["entityType","entityData"]),n=t.target,r=t.url,i=t.image,c=t.imageWidth,u=t.imageHeight,d=t.component,p=t.size,b=t.className,v=a()(t,["target","url","image","imageWidth","imageHeight","component","size","className"]);return Object(f.c)(d,o()({target:n,href:r,"data-draft-node":"block","data-draft-type":"link-card","data-is-ecommerce":"1","data-image":i},c&&{"data-image-width":c},u&&{"data-image-height":u},p&&{"data-size":p},{className:l()("LinkCard",b)},v),Object(f.c)("span",{className:"LinkCard-content LinkCard-ecommerceLoadingCard"},Object(f.c)("div",{className:"LinkCard-ecommerceLoadingCardAvatarWrapper"},Object(f.c)("img",{src:"https://pic2.zhimg.com/v2-1b0bbef27f0496a58468f92d94c8a80e_l.png",className:"LinkCard-ecommerceLoadingCardNetwork"})),Object(f.c)(h,{className:"LinkCard-ecommerceLoadingCardLoadingbar"})))};b.defaultProps={component:"a",target:"_blank"};t.a=b},function(e,t,n){"use strict";e.exports=n(734)},function(e,t,n){"use strict";var r=n(77),o=n.n(r),i=n(22),a=n.n(i),c=n(24),s=n.n(c),u=n(70),l=n.n(u),d=n(25),f=n.n(d),p=n(27),h=n.n(p),b=n(16),v=n.n(b),m=n(2),g=n.n(m),O=n(1),y=n.n(O),j=n(46),E=n(94),C=n.n(E),w=n(168),T=n.n(w),_=n(12),S=n(714),A=n.n(S);var k=function(e,t){return function(n){var r=t(n);return A()(r,n),r.displayName="".concat(e,"(").concat(function(e){return e.displayName||e.name||"Component"}(n),")"),r}};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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v()(e);if(t){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=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})),N=function(e,t,n,r){return k("track",(function(o){return function(i){f()(u,i);var c=R(u);function u(){var e;a()(this,u);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=c.call.apply(c,[this].concat(n)),I(l()(e),"values_",{}),I(l()(e),"trackCardShow",(function(){var t=e.values,n=t.viewInfo,r=t.extraInfo;_.a.trackCardShow(e.element,n,r)})),e}return s()(u,[{key:"parseValues",value:function(){var o,i=this,a=function(e){return"function"==typeof e?e(i.props):e};this.values={viewLocation:e,moduleInfo:(o=a(t),o?o.type||o.sub_type?{card:{card_type:"Content",content:o}}:o:null),viewInfo:a(n),extraInfo:a(r)}}},{key:"setModule",value:function(){var e=this.values,t=e.viewLocation,n=e.moduleInfo;_.a.setModule(this.element,t,n)}},{key:"componentDidMount",value:function(){this.element=Object(j.findDOMNode)(this),this.parseValues(),this.values.viewInfo&&(this.element.handleChange=this.trackCardShow,x().observe(this.element))}},{key:"componentDidUpdate",value:function(){this.parseValues()}},{key:"componentWillUnmount",value:function(){this.values.viewInfo&&(x().unobserve(this.element),this.element.handleChange=null),this.element=null}},{key:"render",value:function(){return y.a.createElement(o,this.props)}},{key:"values",get:function(){return this.values_},set:function(e){T()(e,this.values_)||(this.values_=e,this.setModule())}}]),u}(O.Component)}))},D=function(e){f()(n,e);var t=R(n);function n(){var e;a()(this,n);for(var r=arguments.length,i=new Array(r),c=0;c<r;c++)i[c]=arguments[c];return e=t.call.apply(t,[this].concat(i)),I(l()(e),"Component",N.apply(void 0,o()(e.props.options))((function(){return e.props.children}))),e}return s()(n,[{key:"render",value:function(){return"undefined"!=typeof window&&window.IntersectionObserver?y.a.createElement(this.Component,null):this.props.children}}]),n}(O.Component);I(D,"propTypes",{children:g.a.element.isRequired,options:g.a.array.isRequired});t.a=D},function(e,t,n){var r=n(841),o=n(849),i=n(376),a=n(135),c=n(852);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):c(e)}},function(e,t,n){var r=n(242),o=n(174);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(775),o=n(174),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!c.call(e,"callee")};e.exports=s},function(e,t,n){var r=n(243),o=n(174);e.exports=function(e){return o(e)&&r(e)}},function(e,t,n){(function(e){var r=n(188),o=n(776),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,c=a&&a.exports===i?r.Buffer:void 0,s=(c?c.isBuffer:void 0)||o;e.exports=s}).call(this,n(328)(e))},function(e,t,n){var r=n(563),o=n(780),i=n(243);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t,n){var r=n(327),o=n(243),i=n(375),a=n(163);e.exports=function(e,t,n){if(!a(n))return!1;var c=typeof t;return!!("number"==c?o(n)&&i(t,n.length):"string"==c&&t in n)&&r(n[t],e)}},function(e,t,n){var r=n(811),o=n(458),i=n(812),a=n(581),c=n(582),s=n(242),u=n(553),l=u(r),d=u(o),f=u(i),p=u(a),h=u(c),b=s;(r&&"[object DataView]"!=b(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=b(new o)||i&&"[object Promise]"!=b(i.resolve())||a&&"[object Set]"!=b(new a)||c&&"[object WeakMap]"!=b(new c))&&(b=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case l:return"[object DataView]";case d:return"[object Map]";case f:return"[object Promise]";case p:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=b},function(e,t,n){var r=n(290),o=n(291);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var r=n(471),o=n(828);e.exports=function e(t,n,i,a,c){var s=-1,u=t.length;for(i||(i=o),c||(c=[]);++s<u;){var l=t[s];n>0&&i(l)?n>1?e(l,n-1,i,a,c):r(c,l):a||(c[c.length]=l)}return c}},function(e,t,n){var r=n(478),o=n(588),i=n(590),a=n(479),c=n(837),s=n(480);e.exports=function(e,t,n){var u=-1,l=o,d=e.length,f=!0,p=[],h=p;if(n)f=!1,l=i;else if(d>=200){var b=t?null:c(e);if(b)return s(b);f=!1,l=a,h=new r}else h=t?[]:p;e:for(;++u<d;){var v=e[u],m=t?t(v):v;if(v=n||0!==v?v:0,f&&m==m){for(var g=h.length;g--;)if(h[g]===m)continue e;t&&h.push(m),p.push(v)}else l(h,m,n)||(h!==p&&h.push(m),p.push(v))}return p}},function(e,t,n){"use strict";var r=n(901),o=n(902);e.exports={connections:{},EE:new r,enableResizeInfo:!1,enableScrollInfo:!1,listeners:{},removers:[],supportPassiveEvent:o}},function(e,t,n){"use strict";var r=n(86).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,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),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(145);e.exports=function(e,t,n){var o=e.getSelection(),i=e.getCurrentContent(),a=o;if(o.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return i}else if(e.isSelectionAtStartOfContent())return i;if((a=t(e))===o)return i}return r.removeRange(i,a,n)}},function(e,t,n){"use strict";t.a=function(e){var t=e.getCurrentContent();return t.getBlockMap().filter((function(e){return"atomic"===e.getType()})).map((function(e){var n=e.getEntityAt(0);return n?t.getEntity(n):null})).filter(Boolean)}},function(e,t,n){e.exports=n(107)(202)},function(e,t,n){"use strict";t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{return e()}catch(e){return t}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var r={unfriendly:"其他不友善行为",untruth:"不实信息",provoke:"引战争议等非真实问题",subjective:"包含主观判断",abuse:"辱骂、人身攻击等不友善行为",spam:"垃圾广告信息",illegality:"违法违规",politics:"政治敏感",repost:"不规范转载",privacy:"泄露了我的隐私",enterprise:"企业侵权",oneself:"个人侵权",copy:"抄袭了我的内容",defamation:"诽谤我",temptation:"诱导赞同、关注等行为",intention:"骚扰我",mention:"提到我,但是我不想被讨论",personal:"寻人、征友、作业等个人任务",ambiguity:"不构成提问",worthless:"征友、裸露照片征集等非真实类问题",rumour:"缺乏可信来源",suicide:"有人意图自杀或自残",medicine:"针对具体病情的求医问药",superstition:"涉及封建迷信活动",harassment:"骚扰",imitation:"冒充我或他人",profile:"个人信息不符合规范",direction:"不符合专栏写作方向",tipjar:"滥用专栏赞赏功能",edit:"发生编辑战",porn:"色情低俗",minor:"未成年人",uncivilized_behavior:"驾驶/吸烟/纹身",atmosphere:"破坏弹幕区友好氛围",irrelevant:"弹幕与视频无关"};var o={success:"你的举报我们已经收到,处理结果会通过站务通知进行告知。",duplicate:"你已经举报过啦。管理员正在处理中,请耐心等待~",contentIllegal:"请提交正确的举报说明",contentTooLong:"举报说明不能超过 150 字",failure:"举报失败"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return ue}));var r=n(39),o=n.n(r),i=n(30),a=n.n(i),c=n(41),s=n.n(c),u=n(1),l=n.n(u),d=n(46),f=n(424),p=n.n(f),h=n(12),b=n(69),v=n.n(b),m=n(31),g=n(64),O=n.n(g),y=n(83),j=n(60),E=n.n(j),C=n(22),w=n.n(C),T=n(24),_=n.n(T),S=n(25),A=n.n(S),k=n(27),R=n.n(k),I=n(16),x=n.n(I),N=n(56),D=n(6),P=n.n(D),L=n(55),M=n.n(L),U=n(434),B=n.n(U),z=n(121),F=n.n(z),G=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=x()(e);if(t){var o=x()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R()(this,n)}}var H,q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F.a;return function(n){return B()(function(r){A()(i,r);var o=V(i);function i(){var e;w()(this,i);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=o.call.apply(o,[this].concat(r))).key=t(),e}return _()(i,[{key:"render",value:function(){return Object(G.c)(n,a()({},this.props,M()({},e,this.key)))}}]),i}(l.a.Component),n)}},K=n(532),W=n(275),Y=n.n(W),Q=function(e,t){return function(n){var r,o=(r=[],{value:{},listen:function(e){r.push(e)},unlisten:function(e){r=r.filter((function(t){return t!==e}))},emit:function(e){this.value=e,r.forEach((function(t){return t(e)}))}}),i=Object(K.createSubscription)({getCurrentValue:function(e){return e.value},subscribe:function(e,t){return e.listen(t),function(){return e.unlisten(t)}}}),c=function(e,t){return e?Y()(e,(function(e){return function(){return t(e.apply(void 0,arguments))}})):{dispatch:t}}(t,(function(e){return o.emit(e(o.value))})),s=Object.assign((function(t){return Object(G.c)(i,{source:o},(function(r){return Object(G.c)(n,a()({},t,e({value:r,source:o},t),c))}))}),{source:o});return B()(s,n)}};!function(e){e[e.Initial=0]="Initial",e[e.Loading=1]="Loading",e[e.Ok=2]="Ok",e[e.Failed=3]="Failed"}(H||(H={}));var Z=function(e){return Object(G.c)("svg",a()({width:60,height:60,viewBox:"0 0 60 60"},e),Object(G.c)("g",{fill:"none",fillRule:"evenodd"},Object(G.c)("ellipse",{fill:"#000",opacity:.45,cx:30,cy:30,rx:30,ry:30}),Object(G.c)("ellipse",{stroke:"#FFF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4,1,4",cx:30,cy:30,rx:26,ry:26}),Object(G.c)("svg",a()({x:16,y:18.5},e),Object(G.c)("path",{d:"M12.842 12.981V11.4H7.64v1.653h3.27v.272c-.018 1.881-1.442 3.147-3.516 3.147-2.382 0-3.876-1.846-3.876-4.834 0-2.936 1.485-4.79 3.832-4.79 1.732 0 2.936.835 3.428 2.364h1.977c-.43-2.566-2.522-4.201-5.405-4.201-3.55 0-5.845 2.601-5.845 6.644 0 4.096 2.268 6.654 5.863 6.654 3.322 0 5.475-2.083 5.475-5.327zM17.518 18V5.317H15.55V18h1.97zm5.142 0v-5.256h5.449v-1.74h-5.45V7.11h5.95V5.317h-7.918V18h1.969z",fill:"#fff"}))))},J=function(e){return Object(G.c)("svg",a()({width:"60px",height:"60px",viewBox:"0 0 60 60",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},e),Object(G.c)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Object(G.c)("ellipse",{fill:"#000000",opacity:"0.45",cx:"30",cy:"30",rx:"30",ry:"30"}),Object(G.c)("ellipse",{stroke:"#ffffff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.5",cx:"30",cy:"30",rx:"26",ry:"26"}),Object(G.c)("ellipse",{stroke:"#ffffff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4,1,4",cx:"30",cy:"30",rx:"26",ry:"26"},Object(G.c)("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 30 30",to:"90 30 30",dur:"0.3s"}),Object(G.c)("animate",{attributeName:"opacity",from:"1",to:"0",dur:"0.3",fill:"freeze"}))),Object(G.c)("svg",{x:"16",y:"18.5"},Object(G.c)("g",{fill:"#ffffff"},Object(G.c)("path",{x:"100",y:"100",d:"M12.8422852,12.9814453 L12.8422852,11.3994141 L7.63916016,11.3994141 L7.63916016,13.0517578 L10.9086914,13.0517578 L10.9086914,13.3242188 C10.8911133,15.2050781 9.46728516,16.4707031 7.39306641,16.4707031 C5.01123047,16.4707031 3.51708984,14.625 3.51708984,11.6367188 C3.51708984,8.70117188 5.00244141,6.84667969 7.34912109,6.84667969 C9.08056641,6.84667969 10.284668,7.68164062 10.7768555,9.2109375 L12.7543945,9.2109375 C12.3237305,6.64453125 10.2319336,5.00976562 7.34912109,5.00976562 C3.79833984,5.00976562 1.50439453,7.61132812 1.50439453,11.6542969 C1.50439453,15.75 3.77197266,18.3076172 7.36669922,18.3076172 C10.6889648,18.3076172 12.8422852,16.2246094 12.8422852,12.9814453 Z M17.5180664,18 L17.5180664,5.31738281 L15.5493164,5.31738281 L15.5493164,18 L17.5180664,18 Z M22.659668,18 L22.659668,12.7441406 L28.1088867,12.7441406 L28.1088867,11.0039062 L22.659668,11.0039062 L22.659668,7.11035156 L28.6098633,7.11035156 L28.6098633,5.31738281 L20.690918,5.31738281 L20.690918,18 L22.659668,18 Z"}))),Object(G.c)("path",{d:"M56,30 C56,15.6405965 44.3594035,4 30,4",stroke:"#FFFFFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0",fill:"none"},Object(G.c)("animate",{attributeName:"opacity",from:"0",to:"1",dur:".6",fill:"freeze"}),Object(G.c)("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 30 30",to:"360 30 30",dur:"1.625s",repeatCount:"indefinite"})))},X=function(e){return Object(G.c)("svg",a()({width:60,height:60,viewBox:"0 0 60 60"},e),Object(G.c)("g",{fill:"none",fillRule:"evenodd"},Object(G.c)("ellipse",{fill:"#282828",opacity:.45,cx:30,cy:30,rx:30,ry:30}),Object(G.c)("path",{d:"M41.552 18.93A15.954 15.954 0 0 0 30 14c-8.837 0-16 7.163-16 16s7.163 16 16 16c7.811 0 14.315-5.597 15.72-13",stroke:"#FFF",strokeWidth:2,strokeLinecap:"round"}),Object(G.c)("path",{d:"M45.108 16.236c.44-.33.797-.151.797.4v7.005c0 .55-.358.73-.797.4L40.7 20.736c-.44-.33-.439-.866 0-1.195l4.407-3.305z",fill:"#FFF"})))};function $(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=x()(e);if(t){var o=x()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R()(this,n)}}var ee=function(){return new Promise(requestAnimationFrame)},te=function(e){A()(n,e);var t=$(n);function n(){var e;w()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).videoEle=null,e.onPlay=function(){var t=e.props.onSuccess;t&&t()},e.onError=function(t){var n=e.props,r=n.onFailed,o=n.gifKey;r&&r(t.target.error),e.props.updateGif({gifKey:o,loadState:H.Failed})},e.handleClick=function(t){var n=e.props,r=n.gifKey,o=n.src,i=n.onLoadStart,a=n.onSuccess,c=n.onFailed,s=n.onClick,u=n.onPlayChange,l=n.loadState,d=n.isPlaying,f=n.videoUrl;if(s&&s(t),u&&u(d),f)return e.videoEle&&(d?e.videoEle.pause():(l===H.Failed&&(e.videoEle.src=e.videoEle.src),e.videoEle.play(),i&&i())),void e.props.updateGif({gifKey:r,isPlaying:!d});e.canPlay?e.props.updateGif({gifKey:r,isPlaying:!d}):l!==H.Loading&&(e.props.updateGif({gifKey:r,loadState:H.Loading}),i&&i(),Promise.all([Object(N.loadImage)(o),ee().then(ee)]).then((function(){a&&a(),e.props.updateGif({gifKey:r,isPlaying:!0,loadState:H.Ok})})).catch((function(t){c&&c(t),e.props.updateGif({gifKey:r,loadState:H.Failed})})))},e}return _()(n,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isPlaying,r=t.videoUrl;this.videoEle&&n&&r!==e.videoUrl&&this.videoEle.play(),this.videoEle&&this.videoEle.duration&&!n&&(this.videoEle.currentTime=0,this.videoEle.controls=!1,this.videoEle.pause())}},{key:"componentWillUnmount",value:function(){this.props.removeGif({gifKey:this.props.gifKey})}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.poster,o=n.src,i=n.size,a=n.loadState,c=n.isPlaying,s=n.onRef,u=n.videoUrl,l=this.canPlay&&c,d=a===H.Loading,f=a===H.Failed;return d?e=Object(G.c)(J,{className:"GifPlayer-icon"}):f?e=Object(G.c)(X,{className:"GifPlayer-icon"}):c||(e=Object(G.c)(Z,{className:"GifPlayer-icon"})),e&&(this.lastIcon=e),Object(G.c)("div",{className:P()("GifPlayer",{isPlaying:c}),"data-size":i,onClick:this.handleClick,ref:s},u&&Object(G.c)("video",{ref:function(e){t.videoEle=e},className:"ztext-gif GifPlayer-gif2mp4",src:u,"data-thumbnail":r,poster:r,"data-size":i,controls:!1,preload:"metadata",loop:!0,muted:!0,onPlay:this.onPlay,onError:this.onError,playsInline:!0}),Object(G.c)("img",{className:P()("ztext-gif",{"GifPlayer-gif2mp4Image":u}),role:"presentation",src:l?o:r,"data-thumbnail":r,"data-size":i}),e||this.lastIcon)}},{key:"canPlay",get:function(){return this.props.loadState===H.Ok}}]),n}(l.a.Component);te.defaultProps={isPlaying:!1,loadState:H.Initial};var ne=q("gifKey")(Q((function(e,t){return e.value[t.gifKey]}),{updateGif:function(e){return function(t){var n=e.gifKey,r=e.isPlaying,o=s()(e,["gifKey","isPlaying"]),i=Object.assign({},t);if(r)for(var a=0,c=Object.keys(i);a<c.length;a++){var u=c[a],l=i[u];u!==n&&l.isPlaying&&(i[u]=Object.assign({},l,{isPlaying:!1}))}return Object.assign({},i,M()({},n,Object.assign({},t[n],{isPlaying:r},o)))}},removeGif:function(e){return function(t){var n=Object.assign({},t);return delete n[e.gifKey],n}}})(te)),re=n(211),oe=function(e){return fetch("https://api.zhihu.com/gif2mp4/".concat(e),{credentials:"include",headers:{"X-Requested-With":"Fetch"}}).then((function(e){return e.json()}))},ie=n(435),ae=n(446),ce=function(e,t){h.a.trackEvent(e,{action:"StatusReport",element:"Card"},{status:{result:t}})},se=function(e,t){var n,r,o;null===(n=window)||void 0===n||null===(r=n.Raven)||void 0===r||null===(o=r.captureException)||void 0===o||o.call(r,e,{fingerprint:["gif2mp4"],extra:t})},ue=function(e){var t=e.src,n=e.useWebP,r=void 0===n?"auto":n,i=e.useMp4,c=void 0!==i&&i,l=e.onRef,d=e.onLoadStateChange,b=s()(e,["src","useWebP","useMp4","onRef","onLoadStateChange"]),g=Object(u.useState)(""),j=o()(g,2),C=j[0],w=j[1],T=Object(u.useState)(null),_=o()(T,2),S=_[0],A=_[1],k=Object(u.useState)(Date.now()),R=o()(k,2),I=R[0],x=R[1],N=Object(u.useState)(!1),D=o()(N,2),P=D[0],L=D[1],M=Object(u.useState)(null),U=o()(M,2),B=U[0],z=U[1],F=Object(ae.a)("animation"),V=Object(u.useCallback)((function(){var e=(Object(f.imgPathParse)(t)||{}).hash;c&&Object(y.onViewedOnce)(S,(function(){oe(e).then((function(e){var t,n,r=e.playlist,o=(null==r||null===(t=r.SD)||void 0===t?void 0:t.play_url)||(null==r||null===(n=r.LD)||void 0===n?void 0:n.play_url);o&&O.a.increment("Gif2Mp4Player.mp4.fetch.success.count"),w(o)})).catch(v.a)}))}),[S,t,c]);Object(u.useEffect)(V,[t,c,S]),Object(u.useEffect)((function(){S&&h.a.setModule(S,{module:"GifItem"})}),[S]),Object(ie.a)(S,(function(){h.a.trackCardShow(S,{element:"Card"})})),Object(m.g)((function(){O.a.increment("Gif2Mp4Player.mp4.play.failure.count"),se(new Error("Gif2Mp4 play timeout"),{src:t,videoUrl:C}),L(!1)}),P?2e3:null),Object(m.g)((function(){O.a.increment("Gif2Mp4Player.mp4.play.success.count"),O.a.timing("Gif2Mp4Player.mp4.first_frame_time",Date.now()-I-100),L(!1),z(null)}),B);var H=p()(t,{extension:("auto"===r?F:r)?"webp":"gif"});return Object(G.c)(ne,a()({videoUrl:C,src:H,onRef:Object(u.useCallback)(Object(re.a)(l,A),[]),onPlayChange:function(e){e||(x(Date.now()),C&&(O.a.increment("Gif2Mp4Player.mp4.click.count"),L(!0)),h.a.trackEvent(S,{action:"Click",element:"Image"}))},onLoadStart:function(){if(C){var e=E.a.parse(C).expiration;e&&Number(e)<Date.now()/1e3+900&&V()}x(Date.now()),d&&d("loadstart",H)},onSuccess:function(){ce(S,"Success"),C?P&&z(100):O.a.timing("Gif2Mp4Player.gif.first_frame_time",Date.now()-I),d&&d("load",H)},onFailed:function(e){ce(S,"Fail"),C&&(P&&(O.a.increment("Gif2Mp4Player.mp4.play.failure.count"),L(!1),z(null)),se(e,{videoUrl:C,src:t})),d&&d("error",H)}},b))},le=function(e){var t=e.dataset,n=t.thumbnail,r={src:n,poster:n,size:t.size},o=document.createElement("div");return o.className="RichText-gifPlaceholder",e.parentNode.replaceChild(o,e),{data:r,target:o}};t.b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.Component,r=void 0===n?ue:n,i=Object(u.useState)(null),c=o()(i,2),s=c[0],l=c[1];return Object(u.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 le(e)})).map((function(e,t){var n=e.data,o=e.target;return Object(d.createPortal)(Object(G.c)(r,a()({key:t},n)),o)}));l(n)}}}),[e]),s}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var o=r();o.withExtraArgument=r,t.a=o},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var r=n(26),o=new r.b.Entity("favlists"),i=new r.b.Array(o),a=new r.b.Entity("collections",{collection:o},{idAttribute:function(e){return e.collection.id}});new r.b.Array(o)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(42);function o(e){location.href="".concat(e?"/signup":"/signin","?next=").concat(encodeURIComponent(location.pathname+location.search))}function i(e){r.a.supportsAction("account/showLoginDialog").then((function(t){t?r.a.dispatch("account/showLoginDialog",{next:location.href}):location.href="zhihu://".concat(e?"signup":"signin","?next=").concat(encodeURIComponent(location.pathname+location.search))}))}function a(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?i(t):o(t)}},function(e,t,n){e.exports=n(107)(186)},function(e,t,n){var r=n(337),o=n(1016),i=n(264),a=n(334),c=i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return R}));var r=n(7),o=n(8),i=n(51),a=n(9),c=n(10),s=n(5),u=n(0),l=n(2),d=n.n(l),f=n(1),p=n.n(f),h=n(46),b=n(6),v=n.n(b),m=n(11),g=n(115),O=n(84),y=n(12),j=n(53),E=n(32),C=n(66),w=n.n(C);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 _=function(e){Object(a.a)(n,e);var t=T(n);function n(e){var o;return Object(r.a)(this,n),(o=t.call(this,e)).clearTimer=function(){o.timer&&window.clearInterval(o.timer)},o.handleClick=function(e){if(!o.state.isCounting){var t=o.props,n=t.onClick,r=t.type;o.startTiming(),n(r,e)}},o.state={countDownTime:e.countDownTime,isCounting:!1},o.isInitialState=!0,o}return Object(o.a)(n,[{key:"componentDidMount",value:function(){this.props.startAtOnce&&this.startTiming()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.interceptTime,r=t.reStartTime,o=e.interceptTime,i=e.reStartTime;n!==o&&this.resetTiming(),r!==i&&(this.resetTiming(),this.handleClick())}},{key:"componentWillUnmount",value:function(){this.clearTimer()}},{key:"resetTiming",value:function(){this.clearTimer();var e=this.props,t=e.countDownEndEvent,n=e.type;t&&t(n),this.setState({countDownTime:this.props.countDownTime,isCounting:!1})}},{key:"startTiming",value:function(){var e=this;this.isInitialState=!1,this.setState({isCounting:!0}),this.timer=setInterval((function(){var t=e.state.countDownTime;t<=0?e.resetTiming():e.setState({countDownTime:t-1})}),1e3)}},{key:"renderText",value:function(){var e=this.props,t=e.initialText,n=e.resetText,r=this.state,o=r.countDownTime;return r.isCounting?o:this.isInitialState?t:n||t}},{key:"render",value:function(){var e=w()(this.props,["initialText","resetText","countingText","startAtOnce","countDownTime","interceptTime","onClick","countDownEndEvent","reStartTime"]),t=e.className,n=e.disabled,r=Object(E.a)(e,["className","disabled"]),o=this.state.isCounting;return Object(u.b)(m.c,Object.assign({className:v()("CountingDownButton",t,{"is-counting":o})},r,{onClick:this.handleClick,disabled:n||o,children:this.renderText()}))}}]),n}(f.Component);_.propTypes={countDownTime:d.a.number,startAtOnce:d.a.bool,initialText:d.a.string.isRequired,resetText:d.a.string,interceptTime:d.a.number,reStartTime:d.a.number,onClick:d.a.func,type:d.a.string,countDownEndEvent:d.a.func},_.defaultProps={countDownTime:60,startAtOnce:!1,interceptTime:-1,reStartTime:-1};var S=_;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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 k={email_digits:{text:"邮箱",type:"email"},phone_digits:{text:"手机",type:"sms"},password:{text:"登录密码",type:"password"}},R=function(e){Object(a.a)(n,e);var t=A(n);function n(e){var o;Object(r.a)(this,n),(o=t.call(this,e)).handleChangeSmsType=function(){o.setState((function(e){var t=e.smsType;return{smsType:"text"===t?"voice":"text",smsBackUpName:"text"===t?"短信":"语音",reStartTime:Date.now()}}))},o.countDownEvent=function(e,t){var n=o.props,r=n.requestUnlockTicket,i=n.zaModuleName,a=o.state.smsType;r("sms"===e&&"voice"===a?a:e),i&&y.a.trackEvent(t.target,{action:"GetCaptcha"}),"sms"===e&&o.setState({smsBackUpDisplay:!1})},o.countDownEndEvent=function(e){"sms"===e&&o.setState({smsBackUpDisplay:!0})},o.handleInputKeyDown=function(e){13===e.keyCode&&e.target.value&&o.submit(e)};var a=o.props.account.challenge[0].challengeType;return o.state={code:"",type:a,smsType:"text",smsBackUpName:"语音",smsBackUpDisplay:!0,reStartTime:-1,showHelp:!1},o.submit=o.submit.bind(Object(i.a)(o)),o}return Object(o.a)(n,[{key:"componentDidMount",value:function(){var e=this.props.zaModuleName;e&&(y.a.setModule(this.container,{module:e}),y.a.trackCardShow(this.container))}},{key:"submit",value:function(e){var t=this.state,n=t.code,r=t.type,o=this.props,i=o.unlockTicketByPassword,a=o.unlockTicketByDigits,c=o.onSuccess;o.zaModuleName&&y.a.trackEvent(e.target,{action:"Ok"}),"password"===r?i(n).then(c):a(n).then(c)}},{key:"render",value:function(){var e=this,t=this.props,n=t.account,r=t.onClose,o=t.defaultMessage,i=t.isShown,a=n.challenge,c=n.message;if(!a||!a.length)return null;var s=this.state,l=s.type,d=s.code,f=s.smsType,p=s.smsBackUpName,h=s.smsBackUpDisplay,b=s.reStartTime,y=s.showHelp,E=d.length<6,C="password"===l?"password":"text",w=a.filter((function(e){return e.challengeType===l}))[0],T="使用".concat(k[w.challengeType].text," ").concat(w.hint," 验证"),_="邮箱";return"phone_digits"===l&&(_="voice"===f?"语音":"短信"),Object(u.b)(j.b,{title:!1,size:"default",onClose:r,children:i&&Object(u.c)("div",{className:v()({"MobileModal-content--plain":!1}),ref:function(t){e.container=t},children:[Object(u.c)("div",{className:"VerificationDialogModalHeader",children:[Object(u.b)("h1",{className:"VerificationDialogModalHeader-title",children:"身份验证"}),Object(u.b)("h2",{className:"VerificationDialogModalHeader-subTitle",children:c||o})]}),Object(u.b)("div",{children:a.length>1?Object(u.b)(g.b,{plain:!0,className:"VerificationDialogModal-select",buttonClassName:"VerificationDialogModal-selectButton",targetClassName:"VerificationDialogModal-selectPopover",text:T,onChange:function(t){e.setState({type:t})},children:a.map((function(e,t){return Object(u.b)(g.a,{text:"使用".concat(k[e.challengeType].text," ").concat(e.hint," 验证"),value:e.challengeType},t)}))}):Object(u.b)("div",{className:"VerificationDialogModal-oneSelection",children:"使用".concat(k[a[0].challengeType].text," ").concat(a[0].hint?a[0].hint:""," 验证")})}),Object(u.c)("div",{className:"VerificationDialogModal-code",children:[Object(u.b)(O.a,{className:"VerificationDialogModal-input",minLength:"6",maxLength:"128",type:C,placeholder:"password"===l?"输入登录密码":"输入6位".concat(_,"验证码"),onChange:function(t){var n=t.target.value;e.setState({code:n})},onKeyDown:this.handleInputKeyDown}),"password"!==l&&Object(u.b)(S,{className:"VerificationDialogModal-smsInputButton",preset:"plain",initialText:"获取".concat(_,"验证码"),resetText:"重新获取".concat(_,"验证码"),onClick:this.countDownEvent,countDownEndEvent:this.countDownEndEvent,startAtOnce:!1,type:k[l].type,reStartTime:b})]}),"phone_digits"===l&&h&&Object(u.b)("div",{className:"VerificationDialogModal-options",children:Object(u.b)(m.c,{preset:"plain",className:"VerificationDialogModal-cutSmsType",onClick:this.handleChangeSmsType,children:"接收".concat(p,"验证码")})}),Object(u.b)("div",{className:"VerificationDialogModal-HelpWrapper",children:Object(u.b)(m.c,{className:"VerificationDialogModal-HelpText",preset:"link",onClick:function(){e.setState({showHelp:!0})},children:"需要帮助?"})}),Object(u.b)("div",{className:"VerificationDialogModal-checkout",children:Object(u.b)(m.c,{className:"VerificationDialogModal-button",onClick:this.submit,disabled:E,children:"验证"})}),y&&Object(u.b)("div",{className:"VerificationDialogModal-tips",children:Object(u.c)("p",{className:"VerificationDialogModal-text",children:["验证身份遇到问题?你可以私信",Object(u.b)("span",{className:"VerificationDialogModal-blue",children:"@知乎小管家"}),"或者发邮件至",Object(u.b)("span",{className:"VerificationDialogModal-blue",children:"i@zhihu.com"}),"联系知乎管理员"]})})]})})}}]),n}(f.Component);R.propTypes={account:d.a.object,requestUnlockTicket:d.a.func,unlockTicketByDigits:d.a.func,unlockTicketByPassword:d.a.func,onClose:d.a.func,onSuccess:d.a.func,defaultMessage:d.a.string,zaModuleName:d.a.string,isShown:d.a.bool},R.defaultProps={defaultMessage:"为了保护你的帐号安全,请验证身份,验证成功后进行下一步操作",text:"手机",onSuccess:function(e){return e},isShown:!1};var I=function(){},x=null;R.open=R.show=function(e){if(!x){var t,n=document.createElement("div"),r="zhihu-modal-".concat(Date.now());n.id=r,x=r,document.body.appendChild(n),p.a.isValidElement(e)||(t=e,e=Object(u.b)(R,Object.assign({},t)));var o=!0,i=function(){o&&(o=!1,Object(h.render)(Object(f.cloneElement)(e,{isShown:o}),n,(function(){document.body.classList.remove("Modal--open")})),setTimeout((function(){window.requestAnimationFrame((function(){Object(h.unmountComponentAtNode)(n),document.body.removeChild(n),n=null,x=null}))}),300),R.close=R.hide=I)};R.close=R.hide=i;var a=e.props.onClose||i;Object(h.render)(Object(f.cloneElement)(e,{isShown:o,onClose:a}),n,(function(){e.props.disableAnimation?document.body.classList.add("Modal--open"):setTimeout((function(){return document.body.classList.add("Modal--open")}),10)}))}},R.close=R.hide=I},function(e,t,n){"use strict";var r=n(41),o=n.n(r),i=n(30),a=n.n(i),c=n(1),s=n.n(c),u=n(2),l=n.n(u),d=n(6),f=n.n(d),p=n(66),h=n.n(p),b=n(56),v=n(322),m=n(3),g=s.a.forwardRef((function(e,t){if(Object(v.b)(e.url))return Object(m.c)(v.a,a()({},e,{className:f()("new",e.className)}));var n=h()(e,["entityType","entityData"]),r=n.text,i=n.target,c=n.url,u=n.image,l=n.imageWidth,d=n.imageHeight,p=n.component,g=n.className,O=n.size,y=n.newLinkCardAb,j=n.children,E=o()(n,["text","target","url","image","imageWidth","imageHeight","component","className","size","newLinkCardAb","children"]),C=function(e,t){if(e>0&&t>0){var n=e/t;if(n>1.2)return"180x120";if(n<=.8)return"120x160"}return"ipico"}(l,d),w=Object(b.imgUrl)(u,C);return Object(m.c)(p,a()({ref:t,target:i,href:c,"data-draft-node":"block","data-draft-type":"link-card"},w&&{"data-image":w},l&&{"data-image-width":l},d&&{"data-image-height":d},O&&{"data-size":O},r!==c&&r&&{"data-text":r},{className:f()("LinkCard new",g)},E),j||("3"===y?Object(m.c)(s.a.Fragment,null,Object(m.c)("span",{className:"LinkCard-contents withTitle"},Object(m.c)("span",{className:"LinkCard-title loadingTitle"},r),Object(m.c)("span",{className:"LinkCard-title loading withTitle"}),Object(m.c)("span",{className:"LinkCard-desc loading"})),Object(m.c)("span",{className:"LinkCard-image LinkCard-image--default"})):Object(m.c)(s.a.Fragment,null,Object(m.c)("span",{className:"LinkCard-contents"},Object(m.c)("span",{className:"LinkCard-title loading","data-text":!0}),Object(m.c)("span",{className:"LinkCard-desc loading"})),Object(m.c)("span",{className:"LinkCard-image LinkCard-image--default"}))))}));g.propTypes={component:l.a.oneOfType([l.a.string,l.a.func]),target:l.a.string,url:l.a.string.isRequired,text:l.a.string,image:l.a.string,imageWidth:l.a.oneOfType([l.a.string,l.a.number]),imageHeight:l.a.oneOfType([l.a.string,l.a.number])},g.defaultProps={component:"a",target:"_blank"};t.a=g},function(e,t,n){t.colors=n(865),t.groups=n(866)},function(e,t,n){"use strict";n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"g",(function(){return d})),n.d(t,"j",(function(){return f})),n.d(t,"f",(function(){return h})),n.d(t,"i",(function(){return b})),n.d(t,"h",(function(){return v})),n.d(t,"c",(function(){return m})),n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return y}));n(32);var r=n(21),o=n(189),i=n(35),a=n(19),c=n(28),s=Object.assign({},Object(a.a)("login",["DIGITS","LOGIN","VALIDATE_LOGIN_FORM","VALIDATE_LOGIN_DIGITS","GET_WECHAT_SOCIAL_INFO","SMS_IDENTIFY"]),Object(a.b)("login",["RESET_LOGIN_VALIDATE_RESULT"]),Object(a.a)("qrcodeLogin",["TOKEN","SCAN_STATUS"]));function u(e){return{API:{types:s.SMS_IDENTIFY,endpoint:"v3/oauth/guardians/verify",query:{phone_no:e}}}}function l(e){return{API:{types:s.SMS_IDENTIFY,endpoint:"v3/oauth/guardians/verify",method:"POST",fetchOptions:{credentials:"include",zsEncrypt:!0,bodyType:"form",body:{phone_no:e}}}}}function d(e,t){var n={phoneNo:e};return t&&(n.smsType=t),function(e){return e({API:{types:s.DIGITS,endpoint:"v3/oauth/sign_in/digits",method:"POST",fetchOptions:{credentials:"include",zsEncrypt:!0,bodyType:"form",body:Object(r.decamelizeKeys)(n)}}}).then(null,(function(t){t&&t.err&&(120001===t.err.payload.code&&e(Object(i.g)("页面已过期,请刷新重试","red")))}))}}function f(e){var t=e.captcha,n=e.username,r=e.smsType,i=e.lang;return function(e,a){a().captcha.captchaNeeded?e(Object(o.b)(t,i)).then((function(t){t.payload.success&&e(d(n,r))})):e(d(n,r))}}function p(e){return function(t){return t({API:{types:s.LOGIN,endpoint:"v3/oauth/sign_in",method:"POST",fetchOptions:{credentials:"include",zsEncrypt:!0,bodyType:"form",body:Object(r.decamelizeKeys)(e)}},NOTIFICATION:!1}).catch((function(e){(null==e?void 0:e.err)?120005===e.err.payload.code&&t(Object(o.a)()):(null==e?void 0:e.payload)&&120001===e.payload.code&&t(Object(i.g)("页面已过期,请刷新重试","red"))}))}}function h(){return{type:s.RESET_LOGIN_VALIDATE_RESULT}}function b(e){return{API:{types:s.VALIDATE_LOGIN_DIGITS,endpoint:"v3/oauth/validate/sign_in/digits",method:"POST",fetchOptions:{credentials:"include",zsEncrypt:!0,bodyType:"form",body:Object(r.decamelizeKeys)(e)}}}}function v(e){return function(t){return t(h()),"digits"===e.grantType?(e.phoneNo=e.username,t(b(e)).then((function(n){n&&n.payload&&n.payload.success&&t(p(e))}))):t(p(e))}}function m(){return function(e){return e({API:{types:s.TOKEN,endpoint:"v3/account/api/login/qrcode",method:"POST",fetchOptions:{credentials:"include"}},NOTIFICATION:!1})}}function g(e){var t=e.token;return function(e){return e({API:{types:s.SCAN_STATUS,endpoint:"v3/account/api/login/qrcode/".concat(t,"/scan_info"),method:"GET",fetchOptions:{credentials:"include"}},NOTIFICATION:!1})}}var O={loginUnregisteredError:!1,loginBindWechatError:!1,loginConfirmError:null,sendDigitsError:null,needSMSIdentify:!1,validateDigitsError:!1,loginConfirmSucceeded:null,qrcodeLoginToken:"",qrcodeLoginScanStatus:0,qrcodeLoginError:null,qrcodeLoginReturnNewToken:!1};function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O,t=arguments.length>1?arguments[1]:void 0,n=t.type;if(n===s.RESET_LOGIN_VALIDATE_RESULT)return Object.assign({},O);if(n===s.LOGIN.success)return Object.assign({},e,{loginConfirmSucceeded:!0});if(n===s.LOGIN.failure)return Object.assign({},e,{loginConfirmSucceeded:!1,loginUnregisteredError:t.err.payload.code===c.m,loginBindWechatError:100077===t.err.payload.code,loginConfirmError:Object.assign({},e.loginConfirmError,Object(a.c)(t.err.payload))});if(n===s.DIGITS.failure)return Object.assign({},e,{sendDigitsError:Object.assign({},e.sendDigitsError,Object(a.c)(t.err.payload)),needSMSIdentify:410001===t.err.payload.code});if(n===s.VALIDATE_LOGIN_DIGITS.failure)return Object.assign({},e,{loginConfirmError:Object.assign({},e.loginConfirmError,Object(a.c)(t.err.payload))});if(n===s.VALIDATE_LOGIN_DIGITS.success)return t.payload.success?e:Object.assign({},e,{loginConfirmError:Object.assign({},e.loginConfirmError,{validateDigitsError:"验证码填写错误"})});if(n===s.TOKEN.failure||n===s.SCAN_STATUS.failure)return Object.assign({},e,{qrcodeLoginError:t.err.payload});if(n===s.TOKEN.success)return Object.assign({},e,{qrcodeLoginToken:t.payload.token,qrcodeLoginTokenExpires:t.payload.expiresAt,qrcodeLoginError:null});if(n===s.SCAN_STATUS.success){var r={qrcodeLoginError:null};return t.payload.accessToken?r.loginConfirmSucceeded=!0:(t.payload.newToken&&t.payload.newToken.token&&(r.qrcodeLoginReturnNewToken=!0),r.qrcodeLoginScanStatus=t.payload.status,r.qrcodeLoginToken=t.payload.newToken&&t.payload.newToken.token||e.qrcodeLoginToken,r.qrcodeLoginTokenExpires=t.payload.newToken&&t.payload.newToken.expiresAt||e.qrcodeLoginTokenExpires),Object.assign({},e,r)}return e}},function(e,t,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function c(){c.init.call(this)}e.exports=c,e.exports.once=function(e,t){return new Promise((function(n,r){function o(){void 0!==i&&e.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==t&&(i=function(n){e.removeListener(t,o),r(n)},e.once("error",i)),e.once(t,o)}))},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var o,i,a,c;if(u(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=l(e))>0&&a.length>o&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,c=s,console&&console.warn&&console.warn(c)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=f.bind(r);return o.listener=n,r.wrapFn=o,o}function h(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):v(o,o.length)}function b(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),c.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},c.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},c.prototype.getMaxListeners=function(){return l(this)},c.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var c=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw c.context=a,c}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)i(s,this,t);else{var u=s.length,l=v(s,u);for(n=0;n<u;++n)i(l[n],this,t)}return!0},c.prototype.addListener=function(e,t){return d(this,e,t,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(e,t){return d(this,e,t,!0)},c.prototype.once=function(e,t){return u(t),this.on(e,p(this,e,t)),this},c.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,p(this,e,t)),this},c.prototype.removeListener=function(e,t){var n,r,o,i,a;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},c.prototype.listeners=function(e){return h(this,e,!0)},c.prototype.rawListeners=function(e){return h(this,e,!1)},c.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):b.call(e,t)},c.prototype.listenerCount=b,c.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},function(e,t,n){"use strict";n.d(t,"c",(function(){return v})),n.d(t,"f",(function(){return m})),n.d(t,"k",(function(){return g})),n.d(t,"j",(function(){return O})),n.d(t,"g",(function(){return y})),n.d(t,"a",(function(){return j})),n.d(t,"p",(function(){return E})),n.d(t,"n",(function(){return C})),n.d(t,"e",(function(){return w})),n.d(t,"h",(function(){return T})),n.d(t,"i",(function(){return _})),n.d(t,"o",(function(){return S})),n.d(t,"m",(function(){return A})),n.d(t,"b",(function(){return k})),n.d(t,"l",(function(){return R}));var r=n(15),o=n(4),i=n(21),a=n(29),c=n(23),s=n(274),u=n.n(s),l=n(33),d=n(35),f=n(19),p={ebook:"book",videoanswer:"answer"},h={club_post:"posts"};function b(e,t){var n=e[t]&&e[t].ids||[],r=n.filter((function(e){return String(e).includes("_featured")})).length;return{featuredCounts:r,commonCounts:n.length-r}}var v=Object.assign({},Object(f.a)("commentV2",["GET","GET_COLLAPSED","GET_REVERSE","GET_REVIEWING","GET_CONVERSATION","UPDATE_LIKE","UPDATE_DISLIKE","UPDATE_FEATURED","UPDATE_COLLAPSED","APPROVE","REJECT","DELETE","ADD","GET_MORE_REPLY_COMMENT","GET_CONVERSATION_MORE","GET_STICKERS","GET_COMMENT_WITH_PIC_PERMISSION","LOAD_NOTI_COMMENTS"]),Object(f.b)("comment",["ORDER"]));function m(){return function(e){e({API:{types:v.GET_COMMENT_WITH_PIC_PERMISSION,method:"GET",endpoint:"/user-permission"}})}}function g(){return function(e){e({API:{types:v.GET_STICKERS,method:"GET",endpoint:"/stickers"}})}}function O(e){return function(t,n){var r=n().commentsV2.notificationsComments,o=(r||{})[e]||{},i=o.next,c=o.isDrained,s=o.isFetching,u="notifications/v2/timeline/".concat(e);if(!c&&i&&(u=i),!s)return t({id:e,notificationId:e,notificationsComments:r,API:{types:v.LOAD_NOTI_COMMENTS,endpoint:u},schema:a.a.NOTIFICATION_COMMENT_ARRAY,NOTIFICATION:{key:d.b,failure:function(e){return 403!==(null==e?void 0:e.code)&&40313!==(null==e?void 0:e.code)&&d.a}}})}}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.order,i=void 0===r?"normal":r,c=n.isPrevious,s=void 0!==c&&c,u=n.byComment,f=n.status,h=void 0===f?"open":f,b=n.commentPattern,m=n.current,g=n.patternLimit,O=void 0===g?20:g,y=arguments.length>3?arguments[3]:void 0;return function(n,r){var c=r().commentsV2,f=c.pagination,g=v.GET;"reviewing"===h&&(f=c.reviewing,g=v.GET_REVIEWING),"collapsed"===h&&(f=c.collapsed,g=v.GET_COLLAPSED),"reverse"===i&&"open"===h&&(f=c.reverse,g=v.GET_REVERSE);var j=f["".concat(e,"_").concat(t)]||{},E=j.next,C=j.previous,w=j.ids,T=(void 0===w?[]:w).length&&(s?C:E),_=0,S=l.a;"bottom"!==b||y||(_=(m-1)*O,S=O,T=!1);var A="reviewing"===h||u||"reverse"===i||y||"pin"===e;return n({parentId:t,parentType:e,isPrevious:s,API:Object.assign({types:g},T?{endpoint:T}:{endpoint:"".concat(p[e]||e,"s/").concat(t,"/").concat(A?"comments":"root_comments"),query:Object.assign({order:i,limit:S},"open"===h&&u?{byComment:u}:{offset:_,status:h})},{headers:{"X-APP-VERSION":"6.42.0"}}),schema:a.a.COMMENT_ARRAY_V2,UPDATE:{failure:function(n){return n&&n.res&&403===n.res.status?Object(o.a)({},"".concat(e,"s"),Object(o.a)({},t,{adminClosedComment:!0})):{}}},NOTIFICATION:{key:d.b,failure:function(e){return 403!==(null==e?void 0:e.code)&&40313!==(null==e?void 0:e.code)&&d.a}}})}}function j(e){var t=e.parentType,n=e.parentId,c=e.content,s=e.replyTo,u=e.conversationId,l=e.rootCommentId,f=e.isConversation,b=e.replyType,m=e.isAnchorComments,g=e.notificationId,O=e.useStrictMode,y=void 0===O||O,j=e.enableUnfriendlyCheck,E=void 0!==j&&j;return function(e,O){var j=parseInt(null==s?void 0:s.id,10)||void 0,C=O().entities,w=h[t]||"".concat(t,"s"),T=C[w][n]||{},_=T.commentCount,S=p[t]||t,A="评论发布成功!";"commercial"===T.questionType&&"censor"===T.commentPermission&&(A="评论已提交,由品牌筛选后公开");var k=C.comments[l],R=["replyToFeatured","replyToCommon","replyToSubCommon"].includes(b)&&k;return e({notificationId:g,parentType:t,parentId:n,id:u,shouldUpdateChildComments:R,isConversation:f,replyType:b,isAnchorComments:m,API:{types:v.ADD,endpoint:"".concat(S,"s/").concat(n,"/comments"),method:"POST",fetchOptions:{zsEncrypt:!0,bodyType:"json",body:Object(i.decamelizeKeys)(Object.assign({content:c,replyToId:j},E&&{unfriendlyCheck:y?"strict":"unstrict"}))}},schema:a.a.COMMENT,UPDATE:{request:Object(o.a)({},w,Object(o.a)({},n,{commentCount:_+1})),success:R&&function(e,t){var n=t.result,i=k.childComments,a=k.childCommentCount,c=void 0===a?0:a;return{comments:Object(o.a)({},l,{childCommentCount:c+1,childComments:[].concat(Object(r.a)(i||[]),[n])})}},failure:Object(o.a)({},w,Object(o.a)({},n,{commentCount:_}))},NOTIFICATION:{key:d.b,success:A,failure:function(e){return 40313!==(null==e?void 0:e.code)&&"评论发布失败"}},replyToId:j,replyTo:s})}}function E(e){return function(t,n){var r,i,a=n().entities.comments,c=a[e]||a["".concat(e,"_featured")],s=c.voteCount,u=c.voting,l=c.disliked;return t({id:e,API:{types:v.UPDATE_LIKE,endpoint:"comments/".concat(e,"/actions/like"),method:u?"DELETE":"POST"},UPDATE:{request:{comments:(r={},Object(o.a)(r,e,{voteCount:s+(u?-1:1),voting:!u,disliked:!!u&&l}),Object(o.a)(r,"".concat(e,"_featured"),{voteCount:s+(u?-1:1),voting:!u,disliked:!!u&&l}),r)},success:function(t){var n;return{comments:(n={},Object(o.a)(n,e,t),Object(o.a)(n,"".concat(e,"_featured"),t),n)}},failure:{comments:(i={},Object(o.a)(i,e,c),Object(o.a)(i,"".concat(e,"_featured"),{voteCount:s,disliked:l}),i)}},NOTIFICATION:{key:d.b,failure:d.a}})}}function C(e){return function(t,n){var r,i,a=n().entities.comments,c=a[e]||a["".concat(e,"_featured")],s=c.voting,u=c.voteCount,l=c.disliked,f=!l;return t({id:e,API:{types:v.UPDATE_DISLIKE,endpoint:"comments/".concat(e,"/actions/dislike"),method:l?"DELETE":"POST"},UPDATE:{request:{comments:(r={},Object(o.a)(r,e,{disliked:f,voting:!!l&&s,voteCount:f&&s?u-1:u}),Object(o.a)(r,"".concat(e,"_featured"),{disliked:f,voting:!!l&&s,voteCount:f&&s?u-1:u}),r)},failure:{comments:(i={},Object(o.a)(i,e,c),Object(o.a)(i,"".concat(e,"_featured"),{disliked:l,voting:s,voteCount:u}),i)}},NOTIFICATION:{key:d.b,failure:d.a}})}}function w(e,t,n){return function(r,i){var a=i(),c=function(e){return{API:{types:v.DELETE,endpoint:"comments/".concat(e),method:"delete"}}}(e),s={UPDATE:{request:{},failure:{}}},u=function(e,t){var n=t.id;return e.entities.comments[n]}(a,{id:e});u&&(s.UPDATE.request.comments=Object(o.a)({},e,{isDelete:!0,content:"该评论已删除"}),s.UPDATE.failure.comments=Object(o.a)({},e,Object.assign({},u,{isDelete:!1})));var l="".concat(t,"s"),f=a.entities[l]||{},p=!!u&&u.reviewing;if(!p){var h=f[n]?f[n].commentCount-1:0;s.UPDATE.request[l]=Object(o.a)({},n,{commentCount:h}),s.UPDATE.failure[l]=Object(o.a)({},n,f)}return r(Object.assign({id:e,collapsed:u&&u.collapsed,reviewing:p,parentType:t,parentId:n},c,s,{NOTIFICATION:{key:d.b,failure:d.a}}))}}function T(e){var t=e.id,n=e.isAnchorComments,i=e.isLoadRest;return function(e,c){var s,l=c(),f=l.commentsV2.conversation,p=l.entities.comments;if(f[t]&&f[t].newIds.length){var h=f[t],b=h.newIds,m=h.next,g=h.isFetching;if(!b.length||g)return;s=m}else s="comments/".concat(t,n?"/anchor_comments":"/child_comments");var O=(p[t]||p["".concat(t,"_featured")]||{}).childComments,y=void 0===O?[]:O;return e({id:t,isLoadRest:i,comments:p,API:{types:v.GET_CONVERSATION,endpoint:s},schema:a.a.COMMENT_ARRAY_V2,UPDATE:{success:i&&function(e,n){var i,a=n.result;return{comments:(i={},Object(o.a)(i,t,{childComments:u()([].concat(Object(r.a)(y),Object(r.a)(a)))}),Object(o.a)(i,"".concat(t,"_featured"),{childComments:u()([].concat(Object(r.a)(y),Object(r.a)(a)))}),i)}}},NOTIFICATION:{key:d.b,failure:d.a}})}}function _(e){var t=e.nextUrl,n=e.conversationId;return function(e,r){var o=r().commentsV2.conversationMore[n]||{},i=o.isFetching,c=o.next,s=o.isDrained;if(!i&&!s)return e({id:n,API:{types:v.GET_CONVERSATION_MORE,endpoint:c||t},schema:a.a.COMMENT_ARRAY,NOTIFICATION:{key:d.b,failure:d.a}})}}function S(e,t){var n=e.id,r=e.parentId,i=e.commentId,a=e.parentType,c=e.notificationId,s=e.noSideEffect,u=void 0!==s&&s;return function(e,s){var l,f=s(),p=f.entities.comments,h=f.commentsV2.notificationsComments,b=p[p["".concat(i,"_featured")]?"".concat(i,"_featured"):i],m=b.collapsed,g=b.id,O="boolean"==typeof t?t:b.featured,y=null;(y=O?p[g]?p[g]:Object(o.a)({},g,Object.assign({},b,{featured:!1,collapsed:m})):Object(o.a)({},"".concat(g,"_featured"),Object.assign({},b,{childComments:[],childCommentCount:0,featured:!0,collapsed:!1})),u)&&(l={},Object(o.a)(l,g,Object.assign({},b,{featured:!O})),Object(o.a)(l,"".concat(g,"_featured"),Object.assign({},b,{featured:!O})),y=l);return e({id:n,commentId:g,parentId:r,notificationsComments:h,parentType:a,expect:!O,notificationId:c,API:{types:v.UPDATE_FEATURED,endpoint:"comments/".concat(g,"/actions/feature"),method:O?"delete":"post"},UPDATE:{request:{comments:y},failure:{comments:Object(o.a)({},g,b)}},NOTIFICATION:{key:d.b,failure:d.a,endpoint:"comments/".concat(n,"/actions/feature"),method:O?"delete":"post"}})}}function A(e,t,n){return function(r,i){var a=i().entities.comments[e],c=a.collapsed,s=a.featured,u=!c;return r({id:e,expect:u,parentType:t,parentId:n,API:{types:v.UPDATE_COLLAPSED,endpoint:"comments/".concat(e,"/actions/collapse"),method:u?"post":"delete"},UPDATE:{request:{comments:Object(o.a)({},e,{collapsed:u,featured:!u&&s})},failure:{comments:Object(o.a)({},e,a)}},NOTIFICATION:{key:d.b,failure:d.a}})}}function k(e,t,n){return function(r,i){var a=i().entities,c=a.comments[e],s="".concat(t,"s"),u=a[s][n]||{commentCount:0};return r({id:e,parentId:n,parentType:t,API:{types:v.APPROVE,endpoint:"comments/".concat(e,"/actions/approve"),method:"PUT"},UPDATE:{request:Object(o.a)({comments:Object(o.a)({},e,{status:"open",isDelete:!0,reviewing:!1})},s,Object(o.a)({},n,{commentCount:u.commentCount+1})),failure:Object(o.a)({comments:Object(o.a)({},e,c)},s,Object(o.a)({},n,u))}})}}function R(e,t,n){return function(r,i){var a=i().entities,c=a.comments[e],s="".concat(t,"s"),u=a[s][n]||{commentCount:0};return r({id:e,parentId:n,parentType:t,API:{types:v.REJECT,endpoint:"comments/".concat(e,"/actions/approve"),method:"DELETE"},UPDATE:{request:Object(o.a)({comments:Object(o.a)({},e,{status:"open",isDelete:!0,reviewing:!0})},s,Object(o.a)({},n,{commentCount:u.commentCount-1})),failure:Object(o.a)({comments:Object(o.a)({},e,c)},s,Object(o.a)({},n,u))}})}}var I=function(e){var t=e.parentType,n=e.parentId;return"".concat(t,"_").concat(n)};t.d=Object(c.combineReducers)({stickers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.type===v.GET_STICKERS.success?[].concat(Object(r.a)(e),Object(r.a)(t.payload.data)):e},commentWithPicPermission:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===v.GET_COMMENT_WITH_PIC_PERMISSION.success?Object.assign({},e,t.payload):e},notificationsComments:Object(l.e)(v.LOAD_NOTI_COMMENTS,{mapActionToKey:function(e){return e.notificationId||e.id},additionalCaseTypes:[v.ADD.success].concat(Object(r.a)(Object.values(v.UPDATE_FEATURED))),additionalCase:function(e,t){switch(t.type){case v.ADD.success:var n=t.replyType,o=t.result;return"notification"===n?Object.assign({},e,{ids:[].concat(Object(r.a)(e.ids),[o])}):e;case v.UPDATE_FEATURED.success:var i=t.notificationId,a=t.commentId;if(i){var c=e.ids,s=c.indexOf("".concat(a,"_featured"));-1===s?c.unshift("".concat(a,"_featured")):c.splice(s,1)}return e;default:return e}}}),pagination:Object(l.e)(v.GET,{mapActionToKey:I,additionalCaseTypes:[v.APPROVE.success,v.REJECT.success,v.ADD.success,v.ADD.failure,v.GET_CONVERSATION.success].concat(Object(r.a)(Object.values(v.UPDATE_FEATURED)),Object(r.a)(Object.values(v.UPDATE_COLLAPSED))),additionalCase:function(e,t){switch(t.type){case v.APPROVE.success:return Object.assign({},e,{totals:e.totals+1,ids:[].concat(Object(r.a)(e.ids),[t.id])});case v.REJECT.success:var n=e.ids;return Object.assign({},e,{totals:e.totals-1,ids:n.filter((function(e){return e!==t.id}))});case v.ADD.success:var o=t.replyToId,i=t.shouldUpdateChildComments;switch(t.replyType){case"comment":return Object.assign({},e,{totals:e.totals+1,ids:[].concat(Object(r.a)(e.ids),[t.result]),newIds:[].concat(Object(r.a)(e.newIds),[t.result])});case"replyToFeatured":return i?Object.assign({totals:e.totals+1},e):Object.assign({},e,{totals:e.totals+1,ids:[].concat(Object(r.a)(e.ids),[t.result]),newIds:[].concat(Object(r.a)(e.newIds),[t.result])});case"replyToSubFeatured":var a=e.ids.indexOf("".concat(o,"_featured"));return Object.assign({},e,{totals:e.totals+1,ids:[].concat(Object(r.a)(e.ids.slice(0,a+1)),[t.result],Object(r.a)(e.ids.slice(a+1))),newIds:[].concat(Object(r.a)(e.newIds.slice(0,a+1)),[t.result],Object(r.a)(e.newIds.slice(a+1)))});case"replyToCommon":case"replyToSubCommon":return Object.assign({},e,{totals:e.totals+1});default:return e}case v.UPDATE_COLLAPSED.request:var c=e.ids,s=c.indexOf(t.id),u=c.slice();return t.expect?u.splice(s,1):u.push(t.id),Object.assign({},e,{ids:u,newIds:u,index:s});case v.UPDATE_COLLAPSED.success:return delete e.index,Object.assign({},e);case v.UPDATE_COLLAPSED.failure:var l=e.ids.slice(),d=l.indexOf(t.id);return t.expect?l.splice(d,0,t.id):l.splice(d,1),delete e.index,Object.assign({},e,{ids:l,newIds:l});case v.UPDATE_FEATURED.request:var f=t.commentId,p=e.ids,h=e.newIds,b=p.indexOf("".concat(f,"_featured"));return-1===b?Object.assign({},e,{ids:["".concat(f,"_featured")].concat(Object(r.a)(p)),newIds:["".concat(f,"_featured")].concat(Object(r.a)(h))}):(p.splice(b,1),h.splice(b,1),e);default:return e}}}),collapsed:Object(l.e)(v.GET_COLLAPSED,{mapActionToKey:I,additionalCaseTypes:Object(r.a)(Object.values(v.UPDATE_COLLAPSED)),additionalCase:function(e,t){switch(t.type){case v.UPDATE_COLLAPSED.request:var n=e.ids,r=n.indexOf(t.id),o=n.slice();return t.expect?o.push(t.id):o.splice(r,1),Object.assign({},e,{ids:o,newIds:o,index:r});case v.UPDATE_COLLAPSED.success:return delete e.index,Object.assign({},e);case v.UPDATE_COLLAPSED.failure:var i=e.ids,a=e.index,c=i.slice();return t.expect?c.splice(a,1):c.splice(a,0,t.id),delete e.index,Object.assign({},e,{ids:i,newIds:c});default:return e}}}),reverse:Object(l.e)(v.GET_REVERSE,{mapActionToKey:I,additionalCaseTypes:[v.APPROVE.success,v.ADD.success],additionalCase:function(e,t){switch(t.type){case v.APPROVE.success:return Object.assign({},e,{totals:e.totals+1,ids:[t.id].concat(Object(r.a)(e.ids))});case v.ADD.success:var n=t.replyToId,o=t.id;if(n&&!o){var i=e.ids.indexOf(n);return Object.assign({},e,{totals:e.totals+1,newIds:[].concat(Object(r.a)(e.newIds.slice(0,i+1)),[t.result],Object(r.a)(e.newIds.slice(i+1))),ids:[].concat(Object(r.a)(e.ids.slice(0,i+1)),[t.result],Object(r.a)(e.ids.slice(i+1)))})}return Object.assign({},e,{totals:e.totals+1,ids:[].concat(Object(r.a)(e.ids),[t.result]),newIds:[].concat(Object(r.a)(e.newIds),[t.result])});default:return null}}}),reviewing:Object(l.e)(v.GET_REVIEWING,{mapActionToKey:I,additionalCaseTypes:[v.APPROVE.success,v.REJECT.success],additionalCase:function(e,t){switch(t.type){case v.APPROVE.success:var n=e.ids;return n.splice(n.indexOf(t.id),1),Object.assign({},e,{ids:n});case v.REJECT.success:return Object.assign({},e,{totals:e.totals+1,ids:[].concat(Object(r.a)(e.ids),[t.id])});default:return e}}}),conversation:Object(l.e)(v.GET_CONVERSATION,{additionalCaseTypes:[v.ADD.success].concat(Object(r.a)(Object.values(v.UPDATE_FEATURED))),additionalCase:function(e,t){switch(t.type){case v.ADD.success:var n=t.replyToId,o=t.replyType,i=t.isAnchorComments;if("conversation"===o){var a=e.ids.indexOf(n);return-1===a&&(a=e.ids.indexOf("".concat(n,"_featured"))),i&&-1===a?e:Object.assign({},e,{totals:e.totals+1,ids:[].concat(Object(r.a)(e.ids.slice(0,a+1)),[t.result],Object(r.a)(e.ids.slice(a+1)))})}return e;case v.UPDATE_FEATURED.request:var c=t.commentId,s=e.ids,u=e.newIds,l=s.indexOf("".concat(c,"_featured")),d=s.indexOf(c);return-1!==l?(s.splice(l,1,c),u.splice(l,1,c)):-1!==d&&(s.splice(d,1,"".concat(c,"_featured")),u.splice(d,1,"".concat(c,"_featured"))),e;default:return e}}}),conversationMore:Object(l.e)(v.GET_CONVERSATION_MORE,{additionalCaseTypes:[v.ADD.success].concat(Object(r.a)(Object.values(v.UPDATE_FEATURED))),additionalCase:function(e,t){switch(t.type){case v.ADD.success:var n=t.replyToId,o=t.replyType,i=t.isAnchorComments;if("conversation"===o){if(!i)return Object.assign({},e);var a=e.ids.indexOf(n);return-1===a&&-1===(a=e.ids.indexOf("".concat(n,"_featured")))?e:Object.assign({},e,{totals:e.totals+1,ids:[].concat(Object(r.a)(e.ids.slice(0,a+1)),[t.result],Object(r.a)(e.ids.slice(a+1)))})}return e;case v.UPDATE_FEATURED.request:var c=t.commentId,s=e.ids,u=e.newIds,l=s.indexOf("".concat(c,"_featured")),d=s.indexOf(c);return-1!==l?(s.splice(l,1,c),u.splice(l,1,c)):-1!==d&&(s.splice(d,1,"".concat(c,"_featured")),u.splice(d,1,"".concat(c,"_featured"))),e;default:return e}}}),parent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=I(t);switch(t.type){case v.GET.success:var r=t.payload,i=r.featuredCounts,a=r.collapsedCounts,c=r.reviewingCounts,s=r.commonCounts;return Object.assign({},e,Object(o.a)({},n,{featuredCounts:i,collapsedCounts:a,reviewingCounts:c,commonCounts:s}));case v.APPROVE.success:var u=e[n].reviewingCounts-1;return Object.assign({},e,Object(o.a)({},n,Object.assign({},e[n],{reviewingCounts:u})));case v.REJECT.success:var l=e[n].reviewingCounts+1;return Object.assign({},e,Object(o.a)({},n,Object.assign({},e[n],{reviewingCounts:l})));case v.UPDATE_COLLAPSED.success:var d=e[n]||{};return Object.assign({},e,Object(o.a)({},n,Object.assign({},d,{collapsedCounts:d.collapsedCounts+(t.expect?1:-1)})));case v.DELETE.success:var f=e[n]||{};return Object.assign({},e,Object(o.a)({},n,Object.assign({},f,t.collapsed&&{collapsedCounts:f.collapsedCounts-1},t.reviewing?{reviewingCounts:f.reviewingCounts-1}:{commonCount:f.commonCount-1})));case v.LOAD_NOTI_COMMENTS.success:var p=t.notificationsComments,h=t.notificationId;return Object.assign({},e,Object(o.a)({},h,Object.assign({},b(p,h))));case v.UPDATE_FEATURED.request:case v.UPDATE_FEATURED.success:var m=t.notificationsComments,g=t.notificationId;return g?Object.assign({},e,Object(o.a)({},g,Object.assign({},b(m,g)))):e;default:return e}}})},function(e,t,n){"use strict";n.d(t,"e",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return b})),n.d(t,"g",(function(){return v})),n.d(t,"i",(function(){return m})),n.d(t,"h",(function(){return g})),n.d(t,"f",(function(){return O})),n.d(t,"c",(function(){return y})),n.d(t,"b",(function(){return E}));var r=n(72),o=n(32),i=n(21),a=n(127),c=n.n(a),s=n(89),u=n(28),l=n(189),d=n(19),f=Object.assign({},Object(d.a)("register",["DIGITS","REGISTER","VALIDATE_DIGITS","VALIDATE_REGISTER_FORM","GET_WECHAT_SOCIAL_INFO"]),Object(d.b)("register",["RESET_REGISTER_VALIDATE_RESULT"]));function p(e,t){var n={phoneNo:e};return t&&(n.smsType=t),{API:{types:f.DIGITS,endpoint:"v3/oauth/sms/digits",method:"POST",fetchOptions:{credentials:"include",zsEncrypt:!0,bodyType:"form",body:Object(i.decamelizeKeys)(n)}}}}function h(){return{type:f.RESET_REGISTER_VALIDATE_RESULT}}function b(e){return function(t){return t(h()),t({API:{types:f.REGISTER,endpoint:"v3/oauth/register",method:"POST",fetchOptions:{credentials:"include",zsEncrypt:!0,bodyType:"form",body:Object(i.decamelizeKeys)(e)}},NOTIFICATION:!1})}}function v(e,t){return{API:{types:f.VALIDATE_DIGITS,endpoint:"v3/oauth/validate/digits",method:"POST",fetchOptions:{credentials:"include",zsEncrypt:!0,bodyType:"form",body:Object(i.decamelizeKeys)({phoneNo:e,digits:t})}},NOTIFICATION:!1}}function m(e){return{API:{types:f.VALIDATE_REGISTER_FORM,endpoint:"v3/oauth/validate/register_form",method:"POST",fetchOptions:{credentials:"include",zsEncrypt:!0,bodyType:"form",body:Object(i.decamelizeKeys)(e)}}}}function g(e){var t=e.captcha,n=Object(o.a)(e,["captcha"]);return function(e,r){return e(h()),r().captcha.captchaNeeded?e(Object(l.b)(t)).then((function(t){return t.payload.success?e(m(n)):null})):e(m(n))}}function O(e){var t=Object(r.default)({},e);return function(e){return e(h()),e(m(t)).then((function(n){n.payload.success&&e(b(t))}))}}var y=function(e,t){return function(n){var r=c.a.get("atoken"),o=c.a.get("atoken_expired_in");if(!r)return Promise.reject();var a=Object(s.getFormData)(Object(i.decamelizeKeys)({socialType:e,appkey:u.h[t||e],expires_at:o,accessToken:r,source:"com.zhihu.web"}));return n({API:{types:f.GET_WECHAT_SOCIAL_INFO,endpoint:"/v3/oauth/social/info",method:"POST",body:a,fetchOptions:{credentials:"include"}},NOTIFICATION:!1})}},j={registerValidateSucceeded:null,registerValidateErrors:{},registerConfirmError:null,sendDigitsError:null,registerConfirmSucceeded:null};function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,t=arguments.length>1?arguments[1]:void 0,n=t.type;if(n===f.VALIDATE_REGISTER_FORM.success){var r=t.payload;return Object.assign({},e,{registerValidateSucceeded:Boolean(r.success),registerValidateErrors:Object.assign({},e.registerValidateErrors,r)})}return n===f.VALIDATE_REGISTER_FORM.failure?Object.assign({},e,{registerConfirmError:Object(d.c)(t.err.payload)}):n===f.RESET_REGISTER_VALIDATE_RESULT?Object.assign({},j):n===f.REGISTER.success?Object.assign({},e,{registerConfirmSucceeded:!0}):n===f.REGISTER.failure?Object.assign({},e,{registerConfirmSucceeded:!1,registerConfirmError:Object(d.c)(t.err.payload)}):n===f.DIGITS.failure?Object.assign({},e,{sendDigitsError:t.err.payload.message}):n===f.VALIDATE_DIGITS.failure?Object.assign({},e,{registerValidateErrors:Object.assign({},e.registerValidateErrors,Object(d.c)(t.err.payload))}):e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return f}));var r=n(64),o=n.n(r),i=n(12),a=n(609),c=n.n(a),s={2555:{id:2555,name:"SEM落地页顶部下载点击"},2556:{id:2556,name:"SEM落地页按钮下载点击"},2557:{id:2557,name:"SEM落地页内容下载点击"}},u=function(e,t){var n="number"==typeof t?s[t]:t;"object"==typeof n&&i.a.trackEvent(e&&e.currentTarget,Object.assign({action:"Click"},n))},l=["a","b","c","d","e","f","g","h","i","j","k","l"],d=function(e,t){var n=new Array(8).fill("").map((function(){return l[c()(11)]})).join("");(new Image).src="https://lens.zhihu.com/report?type=msg&msg=".concat(e,"&dummy=").concat(n,"&uploadtype=").concat(t)};function f(e,t){return function(n){var a=Date.now(),c={monitor:{type:"Event",img_upload:{start_time:a,length:n.size,upload_url:"https://www.zhihu.com/api/v4/uploaded_images",mime_type:n.type,end_time:0,upload_result_type:0}}},s=["upload",t?"new":"old",typeof n,n&&n.size?"normal":"empty"].join("_"),u=c.monitor.img_upload,l=Object(r.statGenerator)({appName:"heifetz"})("image.".concat(Object(r.getPageName)(),".").concat(s));o.a.increment({raw:"".concat(l,".start.count")}),d("puploadcount",s);for(var f=arguments.length,p=new Array(f>1?f-1:0),h=1;h<f;h++)p[h-1]=arguments[h];return Promise.resolve(e.apply(void 0,[n].concat(p))).then((function(e){var t=Date.now();u.end_time=t,u.upload_result_type=1,d("psuccesscount",s),o.a.increment({raw:"".concat(l,".success.count")});var n=t-a;return o.a.timing({raw:"".concat(l,".success")},n),i.a.trackMonitor({name:"upload-image"},c),e})).catch((function(e){throw u.end_time=Date.now(),o.a.increment({raw:"".concat(l,".error.count")}),i.a.trackMonitor({name:"upload-image"},c),d("pfailedcount",s),e}))}}},function(e,t,n){"use strict";var r=n(1),o=n(3);function i(e){var t=e.className,n=e.children,i=e.onEvent,a=Object(r.useCallback)((function(e){i(e)||e.stopPropagation()}),[i]);return Object(o.c)("div",{className:t,onBeforeInput:a,onBlur:a,onCompositionEnd:a,onCompositionStart:a,onCopy:a,onCut:a,onDragEnd:a,onDragEnter:a,onDragLeave:a,onDragOver:a,onDragStart:a,onDrop:a,onFocus:a,onInput:a,onKeyDown:a,onKeyPress:a,onKeyUp:a,onMouseUp:a,onPaste:a,onSelect:a,onClick:a},n)}i.defaultProps={onEvent:function(){return!1}},t.a=i},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(42),o={400:"请求参数有误",401:"用户认证失败",403:"服务已拒绝",404:"资源不存在",405:"请求方式有误",410:"资源已解散",502:"网关错误",503:"服务无响应",504:"网关超时"},i=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:i(e)})}},function(e,t,n){var r=n(367),o=n(752),i=n(753),a=n(754),c=n(755),s=n(756);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=c,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(747),o=n(748),i=n(749),a=n(750),c=n(751);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=c,e.exports=s},function(e,t,n){var r=n(327);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(262)(Object,"create");e.exports=r},function(e,t,n){var r=n(769);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(555);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(777),o=n(287),i=n(465),a=i&&i.isTypedArray,c=a?o(a):r;e.exports=c},function(e,t,n){var r=n(371),o=n(327),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";t.__esModule=!0,t.getDC0Cookie=t.shouldSignBody=t.bodyToString=t.stripUrlOrigin=t.toObject=void 0;var r=i(n(568)),o=i(n(208));function i(e){return e&&e.__esModule?e:{default:e}}var a=Object.fromEntries||function(e){var t={},n=e,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var a=i,c=a[0],s=a[1];t[c]=s}return t};t.toObject=a;t.stripUrlOrigin=function(e){var t=(0,r.default)(e),n=t.pathname,o=t.search;return o||/\?$/.test(e)?n+"?"+o.replace(/[']/g,(function(e){return"%"+e.charCodeAt(0).toString(16)})):n};t.bodyToString=function(e){return null==e?"":"string"==typeof e?e:(0,o.default)(e)?JSON.stringify(e):("object"==typeof(t=e)?null===t:"function"!=typeof t)?e.toString():"";var t};t.shouldSignBody=function(e,t){return void 0===t&&(t=4096),!!e&&function(e){return new Blob([e]).size}(e)<=t};var c=new RegExp("d_c0=([^;]+)");t.getDC0Cookie=function(){var e=document.cookie.match(c);return e&&e[1]}},function(e,t,n){e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],r=e[1],o=e[2],i=e[3];r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&o|~r&i)+t[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&o)+t[1]-389564586|0)<<12|i>>>20)+n|0)&n|~i&r)+t[2]+606105819|0)<<17|o>>>15)+i|0)&i|~o&n)+t[3]-1044525330|0)<<22|r>>>10)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&o|~r&i)+t[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&o)+t[5]+1200080426|0)<<12|i>>>20)+n|0)&n|~i&r)+t[6]-1473231341|0)<<17|o>>>15)+i|0)&i|~o&n)+t[7]-45705983|0)<<22|r>>>10)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&o|~r&i)+t[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&o)+t[9]-1958414417|0)<<12|i>>>20)+n|0)&n|~i&r)+t[10]-42063|0)<<17|o>>>15)+i|0)&i|~o&n)+t[11]-1990404162|0)<<22|r>>>10)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&o|~r&i)+t[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&o)+t[13]-40341101|0)<<12|i>>>20)+n|0)&n|~i&r)+t[14]-1502002290|0)<<17|o>>>15)+i|0)&i|~o&n)+t[15]+1236535329|0)<<22|r>>>10)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&i|o&~i)+t[1]-165796510|0)<<5|n>>>27)+r|0)&o|r&~o)+t[6]-1069501632|0)<<9|i>>>23)+n|0)&r|n&~r)+t[11]+643717713|0)<<14|o>>>18)+i|0)&n|i&~n)+t[0]-373897302|0)<<20|r>>>12)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&i|o&~i)+t[5]-701558691|0)<<5|n>>>27)+r|0)&o|r&~o)+t[10]+38016083|0)<<9|i>>>23)+n|0)&r|n&~r)+t[15]-660478335|0)<<14|o>>>18)+i|0)&n|i&~n)+t[4]-405537848|0)<<20|r>>>12)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&i|o&~i)+t[9]+568446438|0)<<5|n>>>27)+r|0)&o|r&~o)+t[14]-1019803690|0)<<9|i>>>23)+n|0)&r|n&~r)+t[3]-187363961|0)<<14|o>>>18)+i|0)&n|i&~n)+t[8]+1163531501|0)<<20|r>>>12)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&i|o&~i)+t[13]-1444681467|0)<<5|n>>>27)+r|0)&o|r&~o)+t[2]-51403784|0)<<9|i>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0)<<14|o>>>18)+i|0)&n|i&~n)+t[12]-1926607734|0)<<20|r>>>12)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r^o^i)+t[5]-378558|0)<<4|n>>>28)+r|0)^r^o)+t[8]-2022574463|0)<<11|i>>>21)+n|0)^n^r)+t[11]+1839030562|0)<<16|o>>>16)+i|0)^i^n)+t[14]-35309556|0)<<23|r>>>9)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r^o^i)+t[1]-1530992060|0)<<4|n>>>28)+r|0)^r^o)+t[4]+1272893353|0)<<11|i>>>21)+n|0)^n^r)+t[7]-155497632|0)<<16|o>>>16)+i|0)^i^n)+t[10]-1094730640|0)<<23|r>>>9)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r^o^i)+t[13]+681279174|0)<<4|n>>>28)+r|0)^r^o)+t[0]-358537222|0)<<11|i>>>21)+n|0)^n^r)+t[3]-722521979|0)<<16|o>>>16)+i|0)^i^n)+t[6]+76029189|0)<<23|r>>>9)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r^o^i)+t[9]-640364487|0)<<4|n>>>28)+r|0)^r^o)+t[12]-421815835|0)<<11|i>>>21)+n|0)^n^r)+t[15]+530742520|0)<<16|o>>>16)+i|0)^i^n)+t[2]-995338651|0)<<23|r>>>9)+o|0,r=((r+=((i=((i+=(r^((n=((n+=(o^(r|~i))+t[0]-198630844|0)<<6|n>>>26)+r|0)|~o))+t[7]+1126891415|0)<<10|i>>>22)+n|0)^((o=((o+=(n^(i|~r))+t[14]-1416354905|0)<<15|o>>>17)+i|0)|~n))+t[5]-57434055|0)<<21|r>>>11)+o|0,r=((r+=((i=((i+=(r^((n=((n+=(o^(r|~i))+t[12]+1700485571|0)<<6|n>>>26)+r|0)|~o))+t[3]-1894986606|0)<<10|i>>>22)+n|0)^((o=((o+=(n^(i|~r))+t[10]-1051523|0)<<15|o>>>17)+i|0)|~n))+t[1]-2054922799|0)<<21|r>>>11)+o|0,r=((r+=((i=((i+=(r^((n=((n+=(o^(r|~i))+t[8]+1873313359|0)<<6|n>>>26)+r|0)|~o))+t[15]-30611744|0)<<10|i>>>22)+n|0)^((o=((o+=(n^(i|~r))+t[6]-1560198380|0)<<15|o>>>17)+i|0)|~n))+t[13]+1309151649|0)<<21|r>>>11)+o|0,r=((r+=((i=((i+=(r^((n=((n+=(o^(r|~i))+t[4]-145523070|0)<<6|n>>>26)+r|0)|~o))+t[11]-1120210379|0)<<10|i>>>22)+n|0)^((o=((o+=(n^(i|~r))+t[2]+718787259|0)<<15|o>>>17)+i|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+o|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=o+e[2]|0,e[3]=i+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function o(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function i(e){var t,o,i,a,c,s,u=e.length,l=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=u;t+=64)n(l,r(e.substring(t-64,t)));for(o=(e=e.substring(t-64)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<o;t+=1)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(n(l,i),t=0;t<16;t+=1)i[t]=0;return a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/),c=parseInt(a[2],16),s=parseInt(a[1],16)||0,i[14]=c,i[15]=s,n(l,i),l}function a(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function c(e){var t;for(t=0;t<e.length;t+=1)e[t]=a(e[t]);return e.join("")}function s(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function u(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function l(){this.reset()}return c(i("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var o,i,a,c,s=this.byteLength,u=t(n,s),l=s;return r!==e&&(l=t(r,s)),u>l?new ArrayBuffer(0):(o=l-u,i=new ArrayBuffer(o),a=new Uint8Array(i),c=new Uint8Array(this,u,o),a.set(c),i)}}(),l.prototype.append=function(e){return this.appendBinary(s(e)),this},l.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,o=this._buff.length;for(t=64;t<=o;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},l.prototype.end=function(e){var t,n,r=this._buff,o=r.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<o;t+=1)i[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(i,o),n=c(this._hash),e&&(n=u(n)),this.reset(),n},l.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},l.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},l.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},l.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},l.prototype._finish=function(e,t){var r,o,i,a=t;if(e[a>>2]|=128<<(a%4<<3),a>55)for(n(this._hash,e),a=0;a<16;a+=1)e[a]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(r[2],16),i=parseInt(r[1],16)||0,e[14]=o,e[15]=i,n(this._hash,e)},l.hash=function(e,t){return l.hashBinary(s(e),t)},l.hashBinary=function(e,t){var n=c(i(e));return t?u(n):n},l.ArrayBuffer=function(){this.reset()},l.ArrayBuffer.prototype.append=function(e){var t,r,i,a,c,s=(r=this._buff.buffer,i=e,a=!0,(c=new Uint8Array(r.byteLength+i.byteLength)).set(new Uint8Array(r)),c.set(new Uint8Array(i),r.byteLength),a?c:c.buffer),u=s.length;for(this._length+=e.byteLength,t=64;t<=u;t+=64)n(this._hash,o(s.subarray(t-64,t)));return this._buff=t-64<u?new Uint8Array(s.buffer.slice(t-64)):new Uint8Array(0),this},l.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,o=r.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<o;t+=1)i[t>>2]|=r[t]<<(t%4<<3);return this._finish(i,o),n=c(this._hash),e&&(n=u(n)),this.reset(),n},l.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},l.ArrayBuffer.prototype.getState=function(){var e,t=l.prototype.getState.call(this);return t.buff=(e=t.buff,String.fromCharCode.apply(null,new Uint8Array(e))),t},l.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var n,r=e.length,o=new ArrayBuffer(r),i=new Uint8Array(o);for(n=0;n<r;n+=1)i[n]=e.charCodeAt(n);return t?i:o}(e.buff,!0),l.prototype.setState.call(this,e)},l.ArrayBuffer.prototype.destroy=l.prototype.destroy,l.ArrayBuffer.prototype._finish=l.prototype._finish,l.ArrayBuffer.hash=function(e,t){var r=c(function(e){var t,r,i,a,c,s,u=e.length,l=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=u;t+=64)n(l,o(e.subarray(t-64,t)));for(e=t-64<u?e.subarray(t-64):new Uint8Array(0),r=e.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)i[t>>2]|=e[t]<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(n(l,i),t=0;t<16;t+=1)i[t]=0;return a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/),c=parseInt(a[2],16),s=parseInt(a[1],16)||0,i[14]=c,i[15]=s,n(l,i),l}(new Uint8Array(e)));return t?u(r):r},l}()},function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s}));n(77),n(39);function r(t,n,r){var o,i=Object.assign({token:n,max_matches:10,use_similar:0},r),a=Object.keys(i).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(i[e]))})).join("&");return"".concat((o="undefined"!=typeof window?window.location.host:null,e.env.ZAE_PROXY_URL?o?"//".concat(o.replace(/[^.|-]+(?=-zhihu-com)/,"www"),"/"):"".concat(e.env.ZAE_PROXY_URL,"www.zhihu.com/"):o?"//".concat(function(e){return e.replace(/[a-z|A-Z]+(\d?)(?=\.zhihu)/,(function(e,t){return"www".concat(t)}))}(o),"/"):"//www.zhihu.com/")).concat(t?"".concat(t,"/"):"","autocomplete?").concat(a)}function o(e,t,n,r){return t[0].filter(Array.isArray).filter((function(t){return!e||t[0]===e})).filter((function(e){return!r.includes(e[1])}))}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3?arguments[3]:void 0;return fetch(r(e,t,i)).then((function(e){return e.json().then((function(t){return{res:e,json:t}}))})).then((function(t){var r=t.res,i=t.json;if(r.ok)return o(e,i,0,n);throw new Error("fetch ".concat(e," error"))}))}function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.apply(void 0,["topic"].concat(t)).then((function(e){return e.map((function(e){return{name:e[1],urlToken:e[2],avatarUrl:e[3]}}))}))}function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.apply(void 0,["people"].concat(t)).then((function(e){return e.map((function(e){return{name:e[1],urlToken:e[2],avatarUrl:e[3],id:e[4],headline:e[5]}}))}))}function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.apply(void 0,["question"].concat(t)).then((function(e){return e.map((function(e){return{name:e[1],urlToken:e[3],answersCount:e[5]}}))}))}}).call(this,n(285))},function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var r=n(30),o=n.n(r),i=n(123),a=n(41),c=n.n(a),s=n(1),u=n.n(s),l=n(14),d=n(1033),f=n(1034),p=n(1035),h=n(6),b=n.n(h),v=n(59),m=n(129),g=n(3);var O={name:"16fhh0i",styles:"&+.Catalog-FirstLevelTitle{margin-top:12px;}&+.Catalog-SecondLevelTitle{margin-top:6px;}"},y={name:"160ybly",styles:"cursor:pointer;align-items:center;"},j=function(e){var t=e.children,n=e.pl,r=e.targetId,a=e.handleScroll,s=e.index,u=c()(e,["children","pl","targetId","handleScroll","index"]);return Object(g.c)(l.Text,o()({flexShrink:0,display:"flex",alignItems:"center",color:"GBK02A",fontSize:"12px",height:"20px",lineHeight:"19px",css:O},u),Object(g.c)(l.Flex,{pl:n,css:y,"data-catalog-target-id":r,"data-za-detail-view-id":"9745","data-za-detail-view-action":"Click","data-za-detail-view-name":"正文",onClick:function(e){a(e,s)}},Object(g.c)(l.Text,{css:Object(i.a)([Object(v.d)(1),{pointerEvents:"none",wordBreak:"break-all"}],""),dangerouslySetInnerHTML:{__html:t}}),Object(g.c)(d.a,{size:"20px",css:function(e){var t;return{color:null===(t=e.colors)||void 0===t?void 0:t.GBK08A,flex:"0 0 auto",pointerEvents:"none"}}})))},E={name:"16fhh0i",styles:"&+.Catalog-FirstLevelTitle{margin-top:12px;}&+.Catalog-SecondLevelTitle{margin-top:6px;}"},C=function(e){var t=e.className,n=c()(e,["className"]);return Object(g.c)(j,o()({className:b()(t,"Catalog-FirstLevelTitle"),fontWeight:"bold",css:E},n))},w={name:"q7f27s",styles:"&+.Catalog-FirstLevelTitle{margin-top:12px;}&+.Catalog-SecondLevelTitle{margin-top:0px;}"},T={name:"4g6ai3",styles:"cursor:pointer;"},_={name:"eg4v4b",styles:"margin-top:1px;"},S=u.a.forwardRef((function(e,t){var n=e.isFold,r=e.onClick,o=n?f.a:p.a,i=n?"展开目录":"收起目录";return Object(g.c)(u.a.Fragment,null,Boolean(n)&&Object(g.c)("div",{className:"bottom-shadow",css:function(e){return{position:"absolute",bottom:"25px",width:"100%",height:"40px",background:"linear-gradient(to bottom, ".concat(e.colorMod(e.colors.GBK99A).alpha(0),", ").concat(e.colors.GBK99A,")")}}}),Object(g.c)(l.Flex,{ref:t,alignItems:"center",justifyContent:"center",height:"25px",fontSize:"12px",color:"GBL05A",css:T,onClick:r},i,Object(g.c)(o,{size:18,css:_})))})),A={1:C,2:function(e){var t=e.className,n=c()(e,["className"]);return Object(g.c)(j,o()({className:b()(t,"Catalog-SecondLevelTitle"),pl:"10px",css:w},n))}},k={name:"7cjcr7",styles:"& .Catalog-wrapper{position:relative;}"},R={name:"npr4z8",styles:"margin-bottom:18px !important;margin-top:0px !important;"};t.b=function(e){var t=e.catalog,n=e.className,r=e.canFold,o=e.inEditor,i=e.scrollOffset,a=void 0===i?0:i,c=r&&!o&&(null==t?void 0:t.length)>3,u=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(m.a)(r,a)}))}}}),[o,a]);return(null==t?void 0:t.length)?Object(g.c)(l.Box,{className:b()(n,"Catalog"),mb:"48px",css:k,"data-za-detail-view-name":"正文"},Object(g.c)("h2",{css:R},"目录"),Object(g.c)(l.Box,{className:"Catalog-wrapper"},Object(g.c)(l.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,i=A[t]||C;return Object(g.c)(i,{key:String([r,o]),targetId:r,handleScroll:u,index:o},n)}))),Boolean(c)&&Object(g.c)(S,{isFold:!0}))):o?Object(g.c)(l.Flex,{flexDirection:"column",alignItems:"center",mb:"18px"},Object(g.c)(l.Box,{size:"160px",mb:"10px"},Object(g.c)(l.Image,{size:"100%",src:"https://pic1.zhimg.com/v2-acf70e51e6f95a027a65a9209fd6a330_r.png"})),Object(g.c)(l.Text,{color:"GBK06A",fontSize:"17px",lineHeight:"24px",textAlign:"center"},"在内容中设置标题将会在此处同步展示")):null}},function(e,t,n){"use strict";var r=n(618),o=n(619);e.exports=function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),c=t.getEndOffset(),s=o(e,t).getBlockMap(),u=s.keySeq(),l=u.indexOf(n),d=u.indexOf(a)+1;return r(s.slice(l,d).map((function(e,t){var r=e.getText(),o=e.getCharacterList();return n===a?e.merge({text:r.slice(i,c),characterList:o.slice(i,c)}):t===n?e.merge({text:r.slice(i),characterList:o.slice(i)}):t===a?e.merge({text:r.slice(0,c),characterList:o.slice(0,c)}):e})))}},function(e,t,n){"use strict";var r=n(100)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(623),i=n(86),a=n(87),c=(0,i.Map)(),s=0;function u(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var l={getLastCreatedEntityKey:function(){return u("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),l.__getLastCreatedEntityKey()},create:function(e,t,n){return u("DraftEntity.create","contentState.createEntity"),l.__create(e,t,n)},add:function(e){return u("DraftEntity.add","contentState.addEntity"),l.__add(e)},get:function(e){return u("DraftEntity.get","contentState.getEntity"),l.__get(e)},mergeData:function(e,t){return u("DraftEntity.mergeData","contentState.mergeEntityData"),l.__mergeData(e,t)},replaceData:function(e,t){return u("DraftEntity.replaceData","contentState.replaceEntityData"),l.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return""+s},__create:function(e,t,n){return l.__add(new o({type:e,mutability:t,data:n||{}}))},__add:function(e){var t=""+ ++s;return c=c.set(t,e),t},__get:function(e){var t=c.get(e);return t||a(!1),t},__mergeData:function(e,t){var n=l.__get(e),o=r({},n.getData(),t),i=n.set("data",o);return c=c.set(e,i),i},__replaceData:function(e,t){var n=l.__get(e).set("data",t);return c=c.set(e,n),n}};e.exports=l},function(e,t,n){"use strict";var r={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-"),n=t[0],r=t[1],o=t[2];return{blockKey:n,decoratorKey:parseInt(r,10),leafKey:parseInt(o,10)}}};e.exports=r},function(e,t,n){},function(e,t,n){"use strict";var r=n(39),o=n.n(r),i=n(30),a=n.n(i),c=n(41),s=n.n(c),u=n(1),l=n.n(u),d=n(36),f=n(66),p=n.n(f),h=n(6),b=n.n(h),v=n(230),m=n.n(v),g=n(58),O=n(1077),y=n(1091),j=n(3),E={answer:"回答",article:"文章",zvideo:"视频",question:"问题",collection:"收藏夹",roundtable:"圆桌",topic:"话题"},C={voteupCount:"赞同",commentCount:"评论",playCount:"播放",followerCount:"关注",answerCount:"回答",visitCount:"浏览"},w={answer:["voteupCount","commentCount"],article:["voteupCount","commentCount"],zvideo:["playCount","voteupCount"],question:["followerCount","answerCount"],collection:["visitCount","followerCount"],default:["followerCount","visitCount"]},T=function(e){var t=e.twoLine,n=e.children;return Boolean(n)&&Object(j.c)("span",{className:b()("LinkCard-title",{"two-line":t})},n)},_=function(e){var t=e.author,n=e.children;return Boolean(t)&&Object(j.c)("span",{className:"LinkCard-excerpt"},Object(j.c)("span",{className:"LinkCard-author"},t,n?":":" 创作"),Boolean(n)&&n)},S=function(e){var t=e.data,n=t.objectType,r=(w[n]||w.default).map((function(e){var n=t[e];return"".concat(Object(g.cnNiceNumber)(n)).concat(C[e])})).filter(Boolean).join(" · ");return Object(j.c)("span",{className:"LinkCard-desc"},r,Object(j.c)("span",{className:"LinkCard-tag"},E[n]))},A=function(e){var t=e.url,n=Object(u.useMemo)((function(){var e=null,n=m()(t,!0);return"link.zhihu.com"===n.hostname&&(e=n.query.target),(e||t).replace(/^https?:\/\//,"")}),[t]);return Object(j.c)("span",{className:"LinkCard-desc"},Object(j.c)(O.a,{size:14,center:!0}),n)},k=function(e){var t=e.url,n=e.isVideo,r=e.onClick;return Boolean(t)&&Object(j.c)("span",{className:"LinkCard-image"},Object(j.c)("img",{src:t,onClick:r,alt:n?"点击可播放视频":""}),n&&Object(j.c)("span",{className:"LinkCard-image--video"},Object(j.c)(y.a,{size:10,center:!0})))},R=l.a.forwardRef((function(e,t){var n=e.url,r=e.data,o=e.onClick,i=e.onClickImage,a="2"===e.newLinkCardAb,c=r.title,s=r.author,u=r.excerpt,d=r.thumbnail,f=r.objectType;return Object(j.c)(l.a.Fragment,null,Object(j.c)("span",{ref:t,className:"LinkCard-contents",onClick:o},Object(j.c)(T,{twoLine:!s||a},c),!a&&Object(j.c)(_,{author:s},u),f?Object(j.c)(S,{data:r}):Object(j.c)(A,{url:n})),Object(j.c)(k,{url:d,isVideo:"zvideo"===f,onClick:i}))})),I=n(356),x=n(50),N=n.n(x),D=n(191),P=n.n(D),L=n(31),M=n(77),U=n.n(M),B=n(22),z=n.n(B),F=n(24),G=n.n(F),V=n(21),H=function(){function e(t){var n=this;z()(this,e),this.fetch=function(e){var t=arguments.length>1&&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 G()(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,i=!t.method||"GET"===t.method.toUpperCase();if(i){var a=m()(r,!0);a.query=Object.assign({},a.query,{},n),r=a.toString()}return[r,Object.assign({},t,{data:i?null:Object.assign({},t.data,{},n)})]}},{key:"doFetch",value:(t=P()(N.a.mark((function e(){var t,n;return N.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,U()(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}(),q=null,K=function(e){return function(t,n){return q||(q=new H(e)),q.fetch(t,n)}}(function(e){return function(){var t=P()(N.a.mark((function t(n,r){var o;return N.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=V.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)),W={},Y=function(e){var t=Object(u.useRef)(0),n=e.inEditor,r=e["data-offset-key"],i=e["data-text"],a=e["data-image"],c=e.href,s=Object(u.useState)((function(){return n&&W[r]||null})),l=o()(s,2),d=l[0],f=l[1],p=Object(L.d)({once:!0}),h=o()(p,2),b=h[0],v=h[1],m=Object(L.b)((function(e){var t=e||d;if(!t||0===Object.keys(t).length)return{objectType:null,title:i||c,thumbnail:a};t.title=i||t.title||c,t.thumbnail=a||t.thumbnail;var o=Object.assign({},t,{cached:!0});return n&&(W[r]=o),o})),g=Object(L.b)(P()(N.a.mark((function e(){var n;return N.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.current+=1,e.prev=1,e.next=4,K("/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(m(n)),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),t.current<=1?g():f(m());case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))));return Object(u.useEffect)((function(){!v||d&&d.cached||g()}),[v,d,g]),Object(u.useEffect)((function(){n&&f(m())}),[n,m,i,a]),[b,d]},Q=n(83),Z=n(12),J=function(e,t,n){var r=e["data-text"],o=e.href,i=e.zvideoLinkCardProps;Object(u.useEffect)((function(){n&&Object(Q.onViewedOnce)(t.current,(function(){Z.a.trackCardShow(t.current,{id:7844},{button:{text:"inlinezvideo"}})}))}),[n,t]);var a=Object(L.b)((function(e){var t;Z.a.trackEvent(e.target,{id:7846,action:"OpenUrl"},{button:{text:"inlinezvideo"}}),null==i||null===(t=i.onImageClick)||void 0===t||t.call(i,e,{title:r,url:o,video:{}})})),c=Object(L.b)((function(e){var t;Z.a.trackEvent(e.target,{id:7847,action:"OpenUrl"},{button:{text:"inlinezvideo"}}),null==i||null===(t=i.onInfoClick)||void 0===t||t.call(i,e,{title:r,url:o})}));return n?{handleImageClick:a,handleInfoClick:c}:{}},X=n(211),$={answer:"Answer",article:"Column",zvideo:"Zvideo",question:"Question",collection:"Collection",roundtable:"Roundtable",topic:"Topic"},ee=l.a.forwardRef((function(e,t){var n=p()(e,["zvideoLinkCardProps"]),r=n.inEditor,i=n["data-text"],c=n.href,l=n.newLinkCardAb,f=n.zaBlock,h=s()(n,["inEditor","data-text","href","newLinkCardAb","zaBlock"]),b=Object(u.useRef)(),v=Y(e),m=o()(v,2),g=m[0],O=m[1],y=J(e,b,"zvideo"===(null==O?void 0:O.objectType)),E=y.handleImageClick,C=y.handleInfoClick,w=Object(u.useCallback)(Object(X.a)(t,g,b),[]),T=r?R:d.a,_=r?null:{as:R,shouldTrackShow:!0,zaText:!0,zaType:"Button",zaAction:"OpenUrl",zaBlock:f,extra:{link:{url:c}},"data-za-module":"Content"},S=Object(j.c)(T,a()({},_,{url:c,data:O,onClick:C,onClickImage:E,newLinkCardAb:l}));return"3"===l?Object(j.c)(d.b,{content:{type:$[null==O?void 0:O.objectType]||"Unknown"}},Object(j.c)(I.a,a()({ref:w,text:i,url:c,component:"a",newLinkCardAb:l},h),Boolean(O)&&S)):Object(j.c)(I.a,a()({ref:w,text:i,url:c,component:"a",newLinkCardAb:l},h),Boolean(O)&&Object(j.c)(d.b,{content:{type:$[O.objectType]||"Unknown"}},S))}));t.a=ee},function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(1),h=n.n(p),b=n(6),v=n.n(b),m=n(121),g=n.n(m),O=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var j=function(e){s()(n,e);var t=y(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={uid:g()()},e.handleChange=function(t){var n=t.target.files;n&&e.uploadFiles(n),e.setState({uid:g()()})},e.uploadFiles=function(t){var n=e.props.multiple,r=g()(),o=Array.prototype.slice.call(t);n?o.map((function(t){e.upload(t,r)})):e.upload(o[0],r)},e.upload=function(t,n){var r,o=e.props,i=o.beforeUpload,a=o.customUpload,c=o.onStart,s=o.onSuccess,u=o.onError;if(i&&(r=i(t)),!1!==r&&a){var l={file:t,uid:n,status:"uploading"};c&&c(l),Promise.resolve().then((function(){return a({file:t})})).then((function(e){s&&s(Object.assign({},l,{remoteInfo:e,status:"success"}))})).catch((function(e){u&&u(Object.assign({},l,{remoteInfo:e,status:"error"}))}))}},e}return a()(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.accept,r=e.multiple,o=e.disabled,i=e.onRef,a=e.onClick,c=e.children;return Object(O.c)("label",{className:v()("UploadPicture-wrapper",t)},Object(O.c)("input",{type:"file",accept:n,multiple:r,className:"UploadPicture-input",disabled:o,ref:i,onChange:this.handleChange,onClick:a}),c)}}]),n}(h.a.Component);j.defaultProps={multiple:!1,disabled:!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(2),h=n.n(p),b=n(1),v=n(6),m=n.n(v),g=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var y=function(e){s()(n,e);var t=O(n);function n(){return o()(this,n),t.apply(this,arguments)}return a()(n,[{key:"render",value:function(){return Object(g.c)("div",{className:m()("LoadingBar",{"is-active":this.props.active})})}}]),n}(b.Component);y.propTypes={active:h.a.bool.isRequired}},function(e,t,n){"use strict";var r=n(7),o=n(8),i=n(9),a=n(10),c=n(5),s=n(0),u=n(1),l=n.n(u),d=n(301);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}var p=function(e){Object(i.a)(n,e);var t=f(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).handleClick=function(){var t=e.props,n=t.href,r=t.onClick;if(r)r();else{var o={};Object.keys(e.props).forEach((function(t){(t.startsWith("utm_")||"zaProps"===t)&&(o[t]=e.props[t])})),Object(d.a)(n,o)}},e}return Object(o.a)(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.children,r=e.useTouchEnd?{onTouchEnd:this.handleClick}:{onClick:this.handleClick};return Object(s.b)("button",Object.assign({className:t},r,{children:n||"App 内打开"}))}}]),n}(l.a.Component);t.a=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n(32),n(21),n(60),n(587),n(68),n(12);var r={sogou:[/sogou.com/],sm:[/sm\.cn/],google:[/google\.com/],so:[/so.com/]};function o(){return"undefined"==typeof document?null:Object.keys(r).find((function(e){return r[e].some((function(e){return e.test(document.referrer)}))}))}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"f",(function(){return v})),n.d(t,"e",(function(){return m}));var r=n(4),o=n(15),i=n(413),a=n.n(i),c=n(168),s=n.n(c),u=10,l=5,d=5;function f(e){return e.id}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.mapActionToKey,i=void 0===n?f:n,a=t.additionalCase,c=t.additionalCaseTypes,s=void 0===c?[]:c,u=t.addSuccessType,l=void 0===u?"addSuccessType does not exist":u,d=t.addAtTop,p=void 0===d||d,h=e.request,b=e.success,v=e.failure,m=[].concat(Object(o.a)(Object.values(e)),Object(o.a)(s),[l]);function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isFetching:!1,isDrained:!1,ids:[],newIds:[],totals:0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case h:return Object.assign({},e,{isFetching:!0,error:!1});case b:var n=e.ids,r=(t.result||[]).filter((function(e){return!e||!n.includes(e)})),i=t.isPrevious,c=t.isPrevDrained,s=t.isDrained,u=t.previous,d=t.next,f=t.totals,m=t.payload,g=null,O=t.rootComment,y=t.topComments;g=O&&y?i?[].concat(Object(o.a)(r),Object(o.a)(n)):[O].concat(Object(o.a)(y.result),Object(o.a)(n),Object(o.a)(r)):i?[].concat(Object(o.a)(r),Object(o.a)(n)):[].concat(Object(o.a)(n),Object(o.a)(r));var j=i||!n.length,E=!i||!n.length;return Object.assign({},e,{isFetching:!1,totals:f,topComments:y,ids:g,newIds:t.result},j?{isPrevDrained:c,previous:u}:{},E?{isDrained:s,next:d}:{},{error:!1,sensitiveLevel:null==m?void 0:m.sensitiveLevel});case v:return Object.assign({},e,{isFetching:!1,isDrained:!0,error:!0});case l:return"commercial"===t.question.questionType?e:Object.assign({},e,{totals:e.totals+1,ids:p?[t.result].concat(Object(o.a)(e.ids)):[].concat(Object(o.a)(e.ids),[t.result]),newIds:p?[t.result].concat(Object(o.a)(e.newIds)):[].concat(Object(o.a)(e.newIds),[t.result])});default:return a?a(e,t):e}}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(m.includes(t.type)){var n=i(t);if(void 0!==n)return Object.assign({},e,Object(r.a)({},n,g(e[n],t)))}return e}}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.mapActionToKey,i=void 0===n?f:n,a=t.additionalCase,c=t.additionalCaseTypes,s=void 0===c?[]:c,u=t.addSuccessType,l=void 0===u?"addSuccessType does not exist":u,d=t.addAtTop,p=void 0===d||d,h=e.request,b=e.success,v=e.failure,m=[].concat(Object(o.a)(Object.values(e)),Object(o.a)(s),[l]);function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isDrained:!1,isFetching:!1,ids:[],totals:0},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.offset;switch(n){case h:return Object.assign({},e,{isFetching:!0});case b:var i=t.totals,c=t.isDrained,s=t.result,u=void 0===s?[]:s,d=t.limit,f=void 0===d?20:d,m=e.ids,g=u.filter((function(e){return!m.includes(e)})),O=m.slice(r,r+f).filter(Boolean),y=f-O.length-g.length,j=[].concat(Object(o.a)(O),Object(o.a)(g),Object(o.a)(y<=0?[]:Array.from({length:y}).map((function(){return!1}))));return m.length=i||m.length+g.length,Object.assign({},e,{isDrained:c,isFetching:!1,ids:[].concat(Object(o.a)(m.slice(0,r)),Object(o.a)(j),Object(o.a)(m.slice(r+j.length))),totals:i});case v:var E=t.limit,C=e.ids;return Object.assign({},e,{isFetching:!1,isDrained:!0,ids:[].concat(Object(o.a)(C.slice(0,r)),Object(o.a)(Array.from({length:E}).map((function(){return!1}))))});case l:var w=e.ids,T=e.totals;return Object.assign({},e,{totals:T+1,ids:p?[t.result].concat(Object(o.a)(w)):[].concat(Object(o.a)(w),[t.result])});default:return a?a(e,t):e}}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(m.includes(t.type)){var n=i(t);if(void 0!==n)return Object.assign({},e,Object(r.a)({},n,g(e[n],t)))}return e}}function b(e,t){if(Array.isArray(e))return e.concat(t)}var v=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.a.apply(void 0,[{}].concat(t,[b]))};function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.defaultState,o=t.mergeState,i=void 0===o?function(e,t){var n=e.items,r=t.result;return{items:n&&n.length?r.filter((function(e){return!n.find((function(t){return s()(t,e)}))})):r,next:t.next}}:o,a=t.additionCase,c=t.keySelector,u=void 0===c?function(e){return e.id}:c,l=Object.assign({isFetching:!1,isDrained:!1},n);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case e.request:return v(t,Object(r.a)({},u(n),Object.assign({},l,{isFetching:!0})));case e.success:var o=u(n),c=n.payload||{},s=c.paging,d=(s=void 0!==s&&s).isEnd;return v(t,Object(r.a)({},o,Object.assign({isFetching:!1,isDrained:d},i(t[o],n))));case e.failure:return v(t,Object(r.a)({},u(n),{isFetching:!1,isDrained:!0}));default:return a?a(t,n):t}}}},function(e,t,n){"use strict";var r=n(164),o=n.n(r),i=n(176),a=o()(i.loadScript);t.a=function(){return a("https://unpkg.zhimg.com/ali-oss@6.8.0/dist/aliyun-oss-sdk.min.js")}},function(e,t,n){"use strict";n.d(t,"c",(function(){return f})),n.d(t,"e",(function(){return h})),n.d(t,"b",(function(){return b})),n.d(t,"d",(function(){return v}));var r=n(4),o=n(17),i=n(15),a=n(23),c=n(29),s=n(37),u=n(19),l=Object.assign({},Object(u.a)("pushNotifications",["GET_DEFAULT","GET_FOLLOW","GET_VOTE_THANK","MARK_ALL_READ"]),Object(u.b)("pushNotifications",["ADD","CURRENT_TAB"])),d={default:l.GET_DEFAULT,follow:l.GET_FOLLOW,vote_thank:l.GET_VOTE_THANK};function f(e){return function(t,n){var r=n(),o=r.pushNotifications,i=r.pushNotifications.currentTab,a=(!e&&o[i]||{}).next;return t({reFetch:e,API:{types:d[i],endpoint:a||"notifications/v2/".concat(i)},schema:c.a.NOTIFICATION_ARRAY})}}function p(e){var t=e.request,n=e.success,r=e.failure,o={isFetching:!1,isDrained:!1,ids:[]};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case t:return a.reFetch?o:Object.assign({},e,{isFetching:!0});case n:var c=a.result,s=a.next,u=a.isDrained,l=e.ids;return Object.assign({},e,{isFetching:!1,isDrained:u,next:s,ids:[].concat(Object(i.a)(l),Object(i.a)(c.filter((function(e){return!l.includes(e)}))))});case r:return Object.assign({},e,{isFetching:!1,isDrained:!1});default:return e}}}function h(e){return{type:l.CURRENT_TAB,currentTab:e}}function b(e){return{type:l.ADD,payload:e}}function v(){return function(e,t){var n=t().pushNotifications.currentTab;return e({API:{types:l.MARK_ALL_READ,endpoint:"notifications/v2/".concat(n,"/actions/readall"),method:"POST"},tab:n})}}var m={default:0,follow:0,vote_thank:0};t.a=Object(a.combineReducers)({default:p(l.GET_DEFAULT),follow:p(l.GET_FOLLOW),vote_thank:p(l.GET_VOTE_THANK),currentTab:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.currentTab;return n===l.CURRENT_TAB?r:e},notificationsCount:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=arguments.length>1?arguments[1]:void 0,n=t.type;if(n===l.ADD){var i=Object(o.a)(t.payload,3),a=i[0],c=i[1],u=i[2];return{default:a,follow:c,vote_thank:u}}if(n===s.a.GET.success){var d=t.payload,f=d.defaultNotificationsCount,p=d.followNotificationsCount,h=d.voteThankNotificationsCount;return{default:f,follow:p,vote_thank:h}}return n===l.MARK_ALL_READ.success?Object.assign({},e,Object(r.a)({},t.tab,0)):e}})},function(e,t,n){"use strict";n.d(t,"b",(function(){return b}));var r=n(7),o=n(8),i=n(9),a=n(10),c=n(5),s=n(0),u=n(1),l=n(13),d=n(37),f=n(91),p=n.n(f);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}var b=Object(l.connect)((function(e){return{currentUser:Object(d.b)(e)}}));t.a=function(){return function(e){var t=function(t){Object(i.a)(a,t);var n=h(a);function a(){return Object(r.a)(this,a),n.apply(this,arguments)}return Object(o.a)(a,[{key:"render",value:function(){var t=this.props.currentUser;return Object(s.b)(e,Object.assign({isLogin:t&&"guest"!==t.userType},this.props))}}]),a}(u.Component);return p()(b(t),e)}}},function(e,t,n){"use strict";var r=n(7),o=n(8),i=n(9),a=n(10),c=n(5),s=n(0),u=n(1),l=n(91),d=n.n(l);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}t.a=function(e){return function(t){var n=e.shouldLoad,a=void 0===n?function(e){return!e.isDrained}:n,c=e.load,l=function(e){Object(i.a)(u,e);var n=f(u);function u(){var e;Object(r.a)(this,u);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return(e=n.call.apply(n,[this].concat(o))).load=function(){return c(e.props,e.state)},e}return Object(o.a)(u,[{key:"componentDidMount",value:function(){a(this.props,this.state)&&this.load()}},{key:"componentDidUpdate",value:function(e,t){var n=a(e,t),r=a(this.props,this.state);r&&r!==n&&this.load()}},{key:"render",value:function(){return Object(s.b)(t,Object.assign({},this.props))}}]),u}(u.Component);return d()(l,t)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(70),s=n.n(c),u=n(25),l=n.n(u),d=n(27),f=n.n(d),p=n(16),h=n.n(p),b=n(30),v=n.n(b),m=n(41),g=n.n(m),O=n(2),y=n.n(O),j=n(1),E=n(6),C=n.n(E),w=n(11),T=(n(615),n(3));function _(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 S=function(e){l()(n,e);var t=_(n);function n(){var e;return o()(this,n),(e=t.call(this)).state={hovered:!1},e.handleMouseEnter=e.handleMouseEnter.bind(s()(e)),e.handleMouseLeave=e.handleMouseLeave.bind(s()(e)),e}return a()(n,[{key:"handleMouseEnter",value:function(){this.props.noActive||this.setState({hovered:!0})}},{key:"handleMouseLeave",value:function(){this.props.noActive||this.setState({hovered:!1})}},{key:"render",value:function(){var e=this.props,t=e.tag,n=e.onClick,r=e.onMouseDown,o=e.className,i=e.children,a=e.onMouseEnter,c=e.onMouseLeave,s=e.hovered,u=e.noActive,l=e.disabled,d=g()(e,["tag","onClick","onMouseDown","className","children","onMouseEnter","onMouseLeave","hovered","noActive","disabled"]),f=!l&&(s||this.state.hovered),p=t||w.c;return"string"!=typeof p&&(d.preset="plain"),Object(T.c)(p,v()({className:C()("Menu-item",{"is-active":f,"Menu-item--noActive":u},o),onClick:l?null:n,onMouseDown:l?null:r,onMouseEnter:a||this.handleMouseEnter,onMouseLeave:c||this.handleMouseLeave},d),i)}}]),n}(j.Component);S.propTypes={onClick:y.a.func,noActive:y.a.bool,onMouseDown:y.a.func,hovered:y.a.bool,onMouseEnter:y.a.func,onMouseLeave:y.a.func},S.defaultProps={hovered:!1,noActive:!1,disabled:!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n.n(r),i=n(65),a=Object.assign;var c=function(e){return o.a.createElement(i.a,a({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:"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"}),o.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"})))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c}));n(1);var r=n(204),o=n(129),i=n(546),a=n(3),c=/<sup\b([^>]*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 i=Object(o.d)(n,{decodeValue:!0}),c=i["data-text"],u=void 0===c?"":c,l=i["data-url"],d=void 0===l?"":l,f=i["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:u,url:d,numero:f});var v=[u,d].filter(Boolean).join(" ");return Object(r.renderToStaticMarkup)(Object(a.c)("sup",{"data-text":u,"data-url":d,"data-numero":f,"data-draft-node":"inline","data-draft-type":"reference","data-tooltip":v,"data-tooltip-preset":"white","data-tooltip-classname":"ztext-referene-tooltip"},Object(a.c)("a",{id:b,href:"#".concat(p),"data-reference-link":!0,"aria-labelledby":p},"[",f,"]")))})),s.length?n=n.concat(Object(r.renderToStaticMarkup)(Object(a.c)(i.a,{referenceList:s}))):n}(t,e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(30),h=n.n(p),b=n(41),v=n.n(b),m=n(1),g=n(6),O=n.n(g),y=n(36),j=n(11),E=(n(384),n(3));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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var w=function(e){return"undefined"!=typeof navigator&&/Mac/i.test(navigator.userAgent)?e.replace(/\+/g,""):e.replace("⌘","Ctrl").replace("⌥","Alt").replace("⇧","Shift")},T=function(e){s()(n,e);var t=C(n);function n(){return o()(this,n),t.apply(this,arguments)}return a()(n,[{key:"render",value:function(){var e=this.props,t=e.label,n=e.shortcut,r=e.icon,o=e.isActive,i=e.className,a=e.children,c=v()(e,["label","shortcut","icon","isActive","className","children"]);return Object(E.c)(y.a,h()({as:j.c,zaType:"Button",zaText:t,preset:"plain",className:O()(i,"Editable-control",{"is-active":o}),"aria-label":t},t&&{"data-tooltip":t+(n?" (".concat(w(n),")"):"")},{"data-tooltip-position":"bottom","data-tooltip-will-hide-on-click":!0},c),"function"==typeof r?Object(E.c)(r,null):r,a&&Object(E.c)("span",null,a))}}]),n}(m.Component);T.defaultProps={isActive:!1}},function(e,t,n){e.exports=n(102),e.exports.CJKSpace=n(1024).CJKSpace},function(e,t,n){"use strict";n.d(t,"useSpring",(function(){return Ke})),n.d(t,"useTransition",(function(){return Ye}));var r=n(70),o=n.n(r),i=n(77),a=n.n(i),c=n(79),s=n.n(c),u=n(39),l=n.n(u),d=n(30),f=n.n(d),p=n(318),h=n.n(p),b=n(24),v=n.n(b),m=n(25),g=n.n(m),O=n(27),y=n.n(O),j=n(16),E=n.n(j),C=n(253),w=n.n(C),T=n(50),_=n.n(T),S=n(191),A=n.n(S),k=n(22),R=n.n(k),I=n(18);n.d(t,"Globals",(function(){return I.b}));var x=n(1),N=n(106);n(652),n(653);function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=E()(e);if(t){var o=E()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y()(this,n)}}function P(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=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 i,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return I.s.fun(e)?e.apply(void 0,n):e}var U=function(e,t){return!0===e||!!(t&&e&&(I.s.fun(e)?e(t):Object(I.y)(e).includes(t)))},B=function(e,t){return I.s.obj(e)?t&&e[t]:e},z=function(e,t){return!0===e.default?e[t]:e.default?e.default[t]:void 0},F=function(e){return e},G=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F,n=V;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));var r,o={},i=P(n);try{for(i.s();!(r=i.n()).done;){var a=r.value,c=t(e[a],a);I.s.und(c)||(o[a]=c)}}catch(e){i.e(e)}finally{i.f()}return o},V=["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 q(e){var t=function(e){var t={},n=0;if(Object(I.l)(e,(function(e,r){H[r]||(t[r]=e,n++)})),n)return t}(e);if(t){var n={to:t};return Object(I.l)(e,(function(e,r){return r in t||(n[r]=e)})),n}return Object.assign({},e)}function K(e){return e=Object(I.q)(e),I.s.arr(e)?e.map(K):Object(I.t)(e)?I.b.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function W(e){for(var t in e)return!0;return!1}function Y(e){return I.s.fun(e)||I.s.arr(e)&&I.s.obj(e[0])}function Q(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 J=Object.assign({},{tension:170,friction:26},{mass:1,damping:1,easing:function(e){return e},clamp:!1}),X=function e(){R()(this,e),this.velocity=0,Object.assign(this,J)};function $(e,t){if(I.s.und(t.decay)){var n=!I.s.und(t.tension)||!I.s.und(t.friction);!n&&I.s.und(t.frequency)&&I.s.und(t.damping)&&I.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(){R()(this,e),this.changed=!1,this.values=ee,this.toValues=null,this.fromValues=ee,this.config=new X,this.immediate=!1};function ne(e,t){var n=t.key,r=t.props,o=t.defaultProps,i=t.state,a=t.actions;return new Promise((function(t,c){var s,u,l,d=U(null!=(s=r.cancel)?s:null==o?void 0:o.cancel,n);if(d)b();else{I.s.und(r.pause)||(i.paused=U(r.pause,n));var f=null==o?void 0:o.pause;!0!==f&&(f=i.paused||U(f,n)),u=M(r.delay||0,n),f?(i.resumeQueue.add(h),a.pause()):(a.resume(),h())}function p(){i.resumeQueue.add(h),i.timeouts.delete(l),l.cancel(),u=l.time-I.w.now()}function h(){u>0?(l=I.w.setTimeout(b,u),i.pauseQueue.add(p),i.timeouts.add(l)):b()}function b(){i.pauseQueue.delete(p),i.timeouts.delete(l),e<=(i.cancelId||0)&&(d=!0);try{a.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}))?ae(e.get()):t.every((function(e){return e.noop}))?oe(e.get()):ie(e.get(),t.every((function(e){return e.finished})))},oe=function(e){return{value:e,noop:!0,finished:!0,cancelled:!1}},ie=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{value:e,finished:t,cancelled:n}},ae=function(e){return{value:e,cancelled:!0,finished:!1}};function ce(e,t,n,r){var o=t.callId,i=t.parentId,a=t.onRest,c=n.asyncTo,s=n.promise;return i||e!==c||t.reset?n.promise=A()(_.a.mark((function u(){var l,d,f,p,h,b,v,m;return _.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(n.asyncId=o,n.asyncTo=e,l=G(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)&&ae(r)||o!==n.asyncId&&ie(r,!1);if(t)throw e.result=t,f(e),e},b=function(e,t){var i=new ue,a=new le;return A()(_.a.mark((function c(){var s,u;return _.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:if(!I.b.skipAnimation){c.next=5;break}throw se(n),a.result=ie(r,!1),f(a),a;case 5:return h(i),(s=I.s.obj(e)?Object.assign({},e):Object.assign({},t,{to:e})).parentId=o,Object(I.l)(l,(function(e,t){I.s.und(s[t])&&(s[t]=e)})),c.next=11,r.start(s);case 11:if(u=c.sent,h(i),!n.paused){c.next=16;break}return c.next=16,new Promise((function(e){n.resumeQueue.add(e)}));case 16:return c.abrupt("return",u);case 17:case"end":return c.stop()}}),c)})))()},!I.b.skipAnimation){u.next=9;break}return se(n),u.abrupt("return",ie(r,!1));case 9:return u.prev=9,m=I.s.arr(e)?function(){var e=A()(_.a.mark((function e(t){var n,r,o;return _.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=P(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))),u.next=13,Promise.all([m.then(d),p]);case 13:v=ie(r.get(),!0,!1),u.next=27;break;case 16:if(u.prev=16,u.t0=u.catch(9),!(u.t0 instanceof ue)){u.next=22;break}v=u.t0.result,u.next=27;break;case 22:if(!(u.t0 instanceof le)){u.next=26;break}v=u.t0.result,u.next=27;break;case 26:throw u.t0;case 27:return u.prev=27,o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?c:void 0,n.promise=i?s:void 0),u.finish(27);case 30:return I.s.fun(a)&&I.w.batchedUpdates((function(){a(v,r,r.item)})),u.abrupt("return",v);case 32:case"end":return u.stop()}}),u,null,[[9,16,27,30]])})))():s}function se(e,t){Object(I.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 ue=function(e){g()(n,e);var t=D(n);function n(){return R()(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}(w()(Error)),le=function(e){g()(n,e);var t=D(n);function n(){return R()(this,n),t.call(this,"SkipAnimationSignal")}return n}(w()(Error)),de=function(e){return e instanceof pe},fe=1,pe=function(e){g()(n,e);var t=D(n);function n(){var e;return R()(this,n),(e=t.apply(this,arguments)).id=fe++,e._priority=0,e}return v()(n,[{key:"get",value:function(){var e=Object(N.e)(this);return e&&e.getValue()}},{key:"to",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return I.b.to(this,t)}},{key:"interpolate",value:function(){Object(I.j)();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return I.b.to(this,t)}},{key:"toJSON",value:function(){return this.get()}},{key:"observerAdded",value:function(e){1==e&&this._attach()}},{key:"observerRemoved",value:function(e){0==e&&this._detach()}},{key:"_attach",value:function(){}},{key:"_detach",value:function(){}},{key:"_onChange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Object(I.d)(this,{type:"change",parent:this,value:e,idle:t})}},{key:"_onPriorityChange",value:function(e){this.idle||I.o.sort(this),Object(I.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}(I.a),he=Symbol.for("SpringPhase"),be=function(e){return(1&e[he])>0},ve=function(e){return(2&e[he])>0},me=function(e){return(4&e[he])>0},ge=function(e,t){return t?e[he]|=3:e[he]&=-3},Oe=function(e,t){return t?e[he]|=4:e[he]&=-5},ye=function(e){g()(n,e);var t=D(n);function n(e,r){var o;if(R()(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,!I.s.und(e)||!I.s.und(r)){var i=I.s.obj(e)?Object.assign({},e):Object.assign({},r,{from:e});I.s.und(i.default)&&(i.default=!0),o.start(i)}return o}return v()(n,[{key:"advance",value:function(e){var t=this,n=!0,r=!1,o=this.animation,i=o.config,a=o.toValues,c=Object(N.g)(o.to);!c&&Object(I.r)(o.to)&&(a=Object(I.y)(Object(I.q)(o.to))),o.values.forEach((function(s,u){if(!s.done){var l=s.constructor==N.b?1:c?c[u].lastPosition:a[u],d=o.immediate,f=l;if(!d){if(f=s.lastPosition,i.tension<=0)return void(s.done=!0);var p,h=s.elapsedTime+=e,b=o.fromValues[u],v=null!=s.v0?s.v0:s.v0=I.s.arr(i.velocity)?i.velocity[u]:i.velocity;if(I.s.und(i.duration))if(i.decay){var m=!0===i.decay?.998:i.decay,g=Math.exp(-(1-m)*h);f=b+v/(1-m)*(1-g),d=Math.abs(s.lastPosition-f)<.1,p=v*g}else{p=null==s.lastVelocity?v:s.lastVelocity;for(var O=i.precision||(b==l?.005:Math.min(1,.001*Math.abs(l-b))),y=i.restVelocity||O/10,j=i.clamp?0:i.bounce,E=!I.s.und(j),C=b==l?s.v0>0:b<l,w=Math.ceil(e/1),T=0;T<w&&(Math.abs(p)>y||!(d=Math.abs(l-f)<=O));++T){E&&(f==l||f>l==C)&&(p=-p*j,f=l),f+=1*(p+=1*((1e-6*-i.tension*(f-l)+.001*-i.friction*p)/i.mass))}}else{var _=1;i.duration>0&&(t._memoizedDuration!==i.duration&&(t._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,h=s.elapsedTime+=e)),_=(_=(i.progress||0)+h/t._memoizedDuration)>1?1:_<0?0:_,s.durationProgress=_),p=((f=b+i.easing(_)*(l-b))-s.lastPosition)/e,d=1==_}s.lastVelocity=p,Number.isNaN(f)&&(console.warn("Got NaN while animating:",t),d=!0)}c&&!c[u].done&&(d=!1),d?s.done=!0:n=!1,s.setValue(f,i.round)&&(r=!0)}}));var s=Object(N.e)(this);if(n){var u=Object(I.q)(o.to);(s.setValue(u)||r)&&this._onChange(u),this._stop()}else r&&this._onChange(s.getValue())}},{key:"set",value:function(e){var t=this;return I.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(ve(this)){var t=this.animation,n=t.to,r=t.config;I.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 I.s.und(e)?(n=this.queue||[],this.queue=[]):n=[I.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),I.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=I.s.obj(n)?n[t]:n)||Y(n))&&(n=void 0),null==(r=I.s.obj(r)?r[t]:r)&&(r=void 0);var o={to:n,from:r};if(!be(this)){if(e.reverse){var i=[r,n];n=i[0],r=i[1]}r=Object(I.q)(r),I.s.und(r)?Object(N.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,i=this.defaultProps;r.default&&Object.assign(i,G(r,(function(e,t){return/^on/.test(t)?B(e,o):e}))),Se(this,r,"onProps"),Ae(this,"onProps",r,this);var a=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:i,state:c,actions:{pause:function(){me(n)||(Oe(n,!0),Object(I.n)(c.pauseQueue),Ae(n,"onPause",ie(n,je(n,n.animation.to)),n))},resume:function(){me(n)&&(Oe(n,!1),ve(n)&&n._resume(),Object(I.n)(c.resumeQueue),Ae(n,"onResume",ie(n,je(n,n.animation.to)),n))},start:this._merge.bind(this,a)}}).then((function(e){if(r.loop&&e.finished&&(!t||!e.noop)){var o=Ee(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(ae(this));var o=!I.s.und(e.to),i=!I.s.und(e.from);if(o||i){if(!(t.callId>this._lastToId))return n(ae(this));this._lastToId=t.callId}var a=this.key,c=this.defaultProps,s=this.animation,u=s.to,l=s.from,d=e.to,f=void 0===d?u:d,p=e.from,h=void 0===p?l:p;if(!i||o||t.default&&!I.s.und(f)||(f=h),t.reverse){var b=[h,f];f=b[0],h=b[1]}var v=!Object(I.u)(h,l);v&&(s.from=h),h=Object(I.q)(h);var m=!Object(I.u)(f,u);m&&this._focus(f);var g=Y(t.to),O=s.config,y=O.decay,j=O.velocity;(o||i)&&(O.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),J)null==e[r]&&(e[r]=J[r]);var o=e.mass,i=e.frequency,a=e.damping;I.s.und(i)||(i<.01&&(i=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/i,2)*o,e.friction=4*Math.PI*a*o/i)}(O,M(t.config,a),t.config!==c.config?M(c.config,a):void 0);var E=Object(N.e)(this);if(!E||I.s.und(f))return n(ie(this,!0));var C=I.s.und(t.reset)?i&&!t.default:!I.s.und(h)&&U(t.reset,a),w=C?h:this.get(),T=K(f),_=I.s.num(T)||I.s.arr(T)||Object(I.t)(T),S=!g&&(!_||U(c.immediate||t.immediate,a));if(m){var A=Object(N.f)(f);if(A!==E.constructor){if(!S)throw Error("Cannot animate between ".concat(E.constructor.name," and ").concat(A.name,', as the "to" prop suggests'));E=this._set(T)}}var k=E.constructor,R=Object(I.r)(f),x=!1;if(!R){var D=C||!be(this)&&v;(m||D)&&(R=!(x=Object(I.u)(K(w),T))),Object(I.u)(O.decay,y)&&Object(I.u)(O.velocity,j)||(R=!0)}if(x&&ve(this)&&(s.changed&&!C?R=!0:R||this._stop(u)),!g&&((R||Object(I.r)(u))&&(s.values=E.getPayload(),s.toValues=Object(I.r)(f)?null:k==N.b?[1]:Object(I.y)(T)),s.immediate!=S&&(s.immediate=S,S||C||this._set(u)),R)){var P=s.onRest;Object(I.k)(_e,(function(e){return Se(r,t,e)}));var L=ie(this,je(this,u));Object(I.n)(this._pendingCalls,L),this._pendingCalls.add(n),s.changed&&I.w.batchedUpdates((function(){var e;s.changed=!C,null==P||P(L,r),C?M(c.onRest,L):null==(e=s.onStart)||e.call(s,L,r)}))}C&&this._set(w),g?n(ce(t.to,t,this._state,this)):R?this._start():ve(this)&&!m?this._pendingCalls.add(n):n(oe(w))}},{key:"_focus",value:function(e){var t=this.animation;e!==t.to&&(Object(I.p)(this)&&this._detach(),t.to=e,Object(I.p)(this)&&this._attach())}},{key:"_attach",value:function(){var e=0,t=this.animation.to;Object(I.r)(t)&&(Object(I.c)(t,this),de(t)&&(e=t.priority+1)),this.priority=e}},{key:"_detach",value:function(){var e=this.animation.to;Object(I.r)(e)&&Object(I.x)(e,this)}},{key:"_set",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=Object(I.q)(e);if(!I.s.und(r)){var o=Object(N.e)(this);if(!o||!Object(I.u)(r,o.getValue())){var i=Object(N.f)(r);o&&o.constructor==i?o.setValue(r):Object(N.h)(this,i.create(r)),o&&I.w.batchedUpdates((function(){t._onChange(r,n)}))}}return Object(N.e)(this)}},{key:"_onStart",value:function(){var e=this.animation;e.changed||(e.changed=!0,Ae(this,"onStart",ie(this,je(this,e.to)),this))}},{key:"_onChange",value:function(e,t){t||(this._onStart(),M(this.animation.onChange,e,this)),M(this.defaultProps.onChange,e,this),h()(E()(n.prototype),"_onChange",this).call(this,e,t)}},{key:"_start",value:function(){var e=this.animation;Object(N.e)(this).reset(Object(I.q)(e.to)),e.immediate||(e.fromValues=e.values.map((function(e){return e.lastPosition}))),ve(this)||(ge(this,!0),me(this)||this._resume())}},{key:"_resume",value:function(){I.b.skipAnimation?this.finish():I.o.start(this)}},{key:"_stop",value:function(e,t){if(ve(this)){ge(this,!1);var n=this.animation;Object(I.k)(n.values,(function(e){e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Object(I.d)(this,{type:"idle",parent:this});var r=t?ae(this.get()):ie(this.get(),je(this,null!=e?e:n.to));Object(I.n)(this._pendingCalls,r),n.changed&&(n.changed=!1,Ae(this,"onRest",r,this))}}},{key:"idle",get:function(){return!(ve(this)||this._state.asyncTo)||me(this)}},{key:"goal",get:function(){return Object(I.q)(this.animation.to)}},{key:"velocity",get:function(){var e=Object(N.e)(this);return e instanceof N.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 ve(this)}},{key:"isPaused",get:function(){return me(this)}}]),n}(pe);function je(e,t){var n=K(t),r=K(e.get());return Object(I.u)(r,n)}function Ee(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=M(t);if(r){var o=!0!==r&&q(r),i=(o||e).reverse,a=!o||o.reset;return Ce(Object.assign({},e,{loop:t,default:!1,pause:void 0,to:!i||Y(n)?n:void 0,from:a?e.from:void 0,reset:a},o))}}function Ce(e){var t=e=q(e),n=t.to,r=t.from,o=new Set;return I.s.obj(n)&&Te(n,o),I.s.obj(r)&&Te(r,o),e.keys=o.size?Array.from(o):null,e}function we(e){var t=Ce(e);return I.s.und(t.default)&&(t.default=G(t)),t}function Te(e,t){Object(I.l)(e,(function(e,n){return null!=e&&t.add(n)}))}var _e=["onStart","onRest","onChange","onPause","onResume"];function Se(e,t,n){e.animation[n]=t[n]!==z(t,n)?B(t[n],e.key):void 0}function Ae(e,t){for(var n,r,o,i,a,c,s=arguments.length,u=new Array(s>2?s-2:0),l=2;l<s;l++)u[l-2]=arguments[l];null==(i=(o=e.animation)[t])||(n=i).call.apply(n,[o].concat(u)),null==(c=(a=e.defaultProps)[t])||(r=c).call.apply(r,[a].concat(u))}var ke=["onStart","onChange","onRest"],Re=1,Ie=function(){function e(t,n){R()(this,e),this.id=Re++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),n&&(this._flush=n),t&&this.start(Object.assign({default:!0},t))}return v()(e,[{key:"get",value:function(){var e={};return this.each((function(t,n){return e[n]=t.get()})),e}},{key:"set",value:function(e){for(var t in e){var n=e[t];I.s.und(n)||this.springs[t].set(n)}}},{key:"update",value:function(e){return e&&this.queue.push(Ce(e)),this}},{key:"start",value:function(e){var t=this.queue;return e?t=Object(I.y)(e).map(Ce):this.queue=[],this._flush?this._flush(this,t):(Be(this,t),xe(this,t))}},{key:"stop",value:function(e,t){if(e!==!!e&&(t=e),t){var n=this.springs;Object(I.k)(Object(I.y)(t),(function(t){return n[t].stop(!!e)}))}else se(this._state,this._lastAsyncId),this.each((function(t){return t.stop(!!e)}));return this}},{key:"pause",value:function(e){if(I.s.und(e))this.start({pause:!0});else{var t=this.springs;Object(I.k)(Object(I.y)(e),(function(e){return t[e].pause()}))}return this}},{key:"resume",value:function(e){if(I.s.und(e))this.start({pause:!1});else{var t=this.springs;Object(I.k)(Object(I.y)(e),(function(e){return t[e].resume()}))}return this}},{key:"each",value:function(e){Object(I.l)(this.springs,e)}},{key:"_onFrame",value:function(){var e=this,t=this._events,n=t.onStart,r=t.onChange,o=t.onRest,i=this._active.size>0,a=this._changed.size>0;(i&&!this._started||a&&!this._started)&&(this._started=!0,Object(I.m)(n,(function(t){var n=l()(t,2),r=n[0],o=n[1];o.value=e.get(),r(o,e,e._item)})));var c=!i&&this._started,s=a||c&&o.size?this.get():null;a&&r.size&&Object(I.m)(r,(function(t){var n=l()(t,2),r=n[0],o=n[1];o.value=s,r(o,e,e._item)})),c&&(this._started=!1,Object(I.m)(o,(function(t){var n=l()(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)}I.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 xe(e,t){return Promise.all(t.map((function(t){return Ne(e,t)}))).then((function(t){return re(e,t)}))}function Ne(e,t,n){return De.apply(this,arguments)}function De(){return(De=A()(_.a.mark((function e(t,n,r){var o,i,a,c,s,u,l,d,f,p,h,b,v;return _.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n.keys,i=n.to,a=n.from,c=n.loop,s=n.onRest,u=n.onResolve,l=I.s.obj(n.default)&&n.default,c&&(n.loop=!1),!1===i&&(n.to=null),!1===a&&(n.from=null),(d=I.s.arr(i)||I.s.fun(i)?i:void 0)?(n.to=void 0,n.onRest=void 0,l&&(l.onRest=void 0)):Object(I.k)(ke,(function(e){var r=n[e];if(I.s.fun(r)){var o=t._events[e];n[e]=function(e){var t=e.finished,n=e.cancelled,i=o.get(r);i?(t||(i.finished=!1),n&&(i.cancelled=!0)):o.set(r,{value:null,finished:t||!1,cancelled:n||!1})},l&&(l[e]=n[e])}})),f=t._state,n.pause===!f.paused?(f.paused=n.pause,Object(I.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===z(n,"cancel"),(d||h&&f.asyncId)&&p.push(ne(++t._lastAsyncId,{props:n,state:f,actions:{pause:I.v,resume:I.v,start:function(e,n){h?(se(f,t._lastAsyncId),n(ae(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(!(v=Ee(n,c,i))){e.next=26;break}return Be(t,[v]),e.abrupt("return",Ne(t,v,!0));case 26:return u&&I.w.batchedUpdates((function(){return u(b,t,t.item)})),e.abrupt("return",b);case 28:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pe(e,t){var n=Object.assign({},e.springs);return t&&Object(I.k)(Object(I.y)(t),(function(e){I.s.und(e.keys)&&(e=Ce(e)),I.s.obj(e.to)||(e=Object.assign({},e,{to:void 0})),Ue(n,e,(function(e){return Me(e)}))})),n}function Le(e,t){Object(I.l)(t,(function(t,n){e.springs[n]||(e.springs[n]=t,Object(I.c)(t,e))}))}function Me(e,t){var n=new ye;return n.key=e,t&&Object(I.c)(n,t),n}function Ue(e,t,n){t.keys&&Object(I.k)(t.keys,(function(r){(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function Be(e,t){Object(I.k)(t,(function(t){Ue(e.springs,t,(function(t){return Me(t,e)}))}))}var ze,Fe,Ge=function(e){var t=e.children,n=s()(e,["children"]),r=Object(x.useContext)(Ve),o=n.pause||!!r.pause,i=n.immediate||!!r.immediate;n=Object(I.B)((function(){return{pause:o,immediate:i}}),[o,i]);var a=Ve.Provider;return Object(x.createElement)(a,{value:n},t)},Ve=(ze=Ge,Fe={},Object.assign(ze,Object(x.createContext)(Fe)),ze.Provider._context=ze,ze.Consumer._context=ze,ze);Ge.Provider=Ve.Provider,Ge.Consumer=Ve.Consumer;var He=function(e){g()(n,e);var t=D(n);function n(){var e;return R()(this,n),(e=t.call(this,"return arguments.callee._call.apply(arguments.callee, arguments)")).current=[],e}return v()(n,[{key:"_call",value:function(e){Object(I.i)(),this.start(e)}},{key:"set",value:function(e){Object(I.k)(this.current,(function(t){return t.set(e)}))}},{key:"start",value:function(e){var t=this,n=[];return Object(I.k)(this.current,(function(r,o){if(I.s.und(e))n.push(r.start());else{var i=t._getProps(e,r,o);i&&n.push(r.start(i))}})),n}},{key:"update",value:function(e){var t=this;return Object(I.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 I.s.fun(e)?e(n,t):e}}]),n}(w()(Function));function qe(e,t,n){var r=arguments,o=I.s.fun(t)&&t;o&&!n&&(n=[]);var i=Object(x.useMemo)((function(){return o||3==r.length?new He:void 0}),[]),c=Object(x.useRef)(0),s=Object(I.z)(),u=Object(x.useMemo)((function(){return{ctrls:[],queue:[],flush:function(e,t){var n=Pe(e,t);return c.current>0&&!u.queue.length&&!Object.keys(n).some((function(t){return!e.springs[t]}))?xe(e,t):new Promise((function(r){Le(e,n),u.queue.push((function(){r(xe(e,t))})),s()}))}}}),[]),l=a()(u.ctrls),d=[],f=Object(I.D)(e)||0,p=l.slice(e,f);function h(e,n){for(var r=e;r<n;r++){var i=l[r]||(l[r]=new Ie(null,u.flush)),a=o?o(r,i):t[r];a&&(d[r]=we(a))}}Object(x.useMemo)((function(){l.length=e,h(f,e)}),[e]),Object(x.useMemo)((function(){h(0,Math.min(f,e))}),n);var b=l.map((function(e,t){return Pe(e,d[t])})),v=Object(x.useContext)(Ge),m=Object(I.D)(v),g=v!==m&&W(v);Object(I.A)((function(){c.current++,u.ctrls=l;var e=u.queue;e.length&&(u.queue=[],Object(I.k)(e,(function(e){return e()}))),Object(I.k)(p,(function(e){Q(e,i),e.stop(!0)})),Object(I.k)(l,(function(e,t){Le(e,b[t]),null==i||i.add(e),g&&e.start({default:v});var n=d[t];n&&(Z(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),Object(I.C)((function(){return function(){Object(I.k)(u.ctrls,(function(e){return e.stop(!0)}))}}));var O=b.map((function(e){return Object.assign({},e)}));return i?[O,i]:O}function Ke(e,t){var n=I.s.fun(e),r=qe(1,n?e:[e],n?t||[]:t),o=l()(r,2),i=l()(o[0],1),a=i[0],c=o[1];return n||2==arguments.length?[a,c]:a}Object(I.k)(["stop","pause","resume"],(function(e){He.prototype[e]=function(){var t=arguments;return Object(I.k)(this.current,(function(n){return n[e].apply(n,a()(t))})),this}}));var We="enter";function Ye(e,t,n){var r=arguments,o=t.reset,i=t.sort,a=t.trail,c=void 0===a?0:a,s=t.expires,u=void 0===s||s,l=t.onDestroyed,d=Object(x.useMemo)((function(){return 3==r.length?new He:void 0}),[]),f=Object(I.y)(e),p=[],h=Object(x.useRef)(null),b=o?null:h.current;Object(I.A)((function(){h.current=p})),Object(I.C)((function(){return function(){return Object(I.k)(h.current,(function(e){e.expired&&clearTimeout(e.expirationId),Q(e.ctrl,d),e.ctrl.stop(!0)}))}}));var v=Ze(f,t,b),m=o&&h.current||[];Object(I.A)((function(){return Object(I.k)(m,(function(e){var t=e.ctrl,n=e.item,r=e.key;Q(t,d),M(l,n,r)}))}));var g=[];if(b&&Object(I.k)(b,(function(e,t){e.expired?(clearTimeout(e.expirationId),m.push(e)):~(t=g[t]=v.indexOf(e.key))&&(p[t]=e)})),Object(I.k)(f,(function(e,t){p[t]||(p[t]={key:v[t],item:e,phase:"mount",ctrl:new Ie},p[t].ctrl.item=e)})),g.length){var O=-1;Object(I.k)(g,(function(e,n){var r=b[n];~e?(O=p.indexOf(r),p[O]=Object.assign({},r,{item:f[e]})):t.leave&&p.splice(++O,0,r)}))}I.s.fun(i)&&p.sort((function(e,t){return i(e.item,t.item)}));var y=-c,j=Object(I.z)(),E=G(t),C=new Map;Object(I.k)(p,(function(e,n){var r,o,i=e.key,a=e.phase;if("mount"==a)r=t.enter,o=We;else{var s=v.indexOf(i)<0;if("leave"!=a)if(s)r=t.leave,o="leave";else{if(!(r=t.update))return;o="update"}else{if(s)return;r=t.enter,o=We}}if(r=M(r,e.item,n),!(r=I.s.obj(r)?q(r):{to:r}).config){var l=t.config||E.config;r.config=M(l,e.item,n,o)}var d=Object.assign({},E,{delay:y+=c,reset:!1},r);if(o==We&&I.s.und(d.from)){var f=I.s.und(t.initial)||b?t.from:t.initial;d.from=M(f,e.item,n)}var p=d.onResolve;d.onResolve=function(e){M(p,e);var t=h.current,n=t.find((function(e){return e.key===i}));if(n&&(!e.cancelled||"update"==n.phase)&&n.ctrl.idle){var r=t.every((function(e){return e.ctrl.idle}));if("leave"==n.phase){var o=M(u,n.item);if(!1!==o){var a=!0===o?0:o;if(n.expired=!0,!r&&a>0)return void(a<=2147483647&&(n.expirationId=setTimeout(j,a)))}}r&&t.some((function(e){return e.expired}))&&j()}};var m=Pe(e.ctrl,d);C.set(e,{phase:o,springs:m,payload:d})}));var w=Object(x.useContext)(Ge),T=Object(I.D)(w),_=w!==T&&W(w);Object(I.A)((function(){_&&Object(I.k)(p,(function(e){e.ctrl.start({default:w})}))}),[w]),Object(I.A)((function(){Object(I.k)(C,(function(e,t){var n=e.phase,r=e.springs,o=e.payload,i=t.ctrl;t.phase=n,null==d||d.add(i),Z(i,o.ref),Le(i,r),_&&n==We&&i.start({default:w}),i[i.ref?"update":"start"](o)}))}),o?void 0:n);var S=function(e){return Object(x.createElement)(x.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(x.createElement)(o.type,Object.assign({},o.props,{key:I.s.str(t.key)||I.s.num(t.key)?t.key:t.ctrl.id,ref:o.ref})):o})))};return d?[S,d]:S}var Qe=1;function Ze(e,t,n){var r=t.key,o=t.keys,i=void 0===o?r:o;if(null===i){var a=new Set;return e.map((function(e){var t=n&&n.find((function(t){return t.item===e&&"leave"!==t.phase&&!a.has(t)}));return t?(a.add(t),t.key):Qe++}))}return I.s.und(i)?e:I.s.fun(i)?e.map(i):Object(I.y)(i)}var Je=function(e){g()(n,e);var t=D(n);function n(e,r){var i;R()(this,n),(i=t.call(this)).source=e,i.idle=!0,i._active=new Set,i.calc=I.f.apply(void 0,a()(r));var c=i._get(),s=Object(N.f)(c);return Object(N.h)(o()(i),s.create(c)),i}return v()(n,[{key:"advance",value:function(e){var t=this._get(),n=this.get();Object(I.u)(t,n)||(Object(N.e)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&$e(this._active)&&et(this)}},{key:"_get",value:function(){var e=I.s.arr(this.source)?this.source.map(I.q):Object(I.y)(Object(I.q)(this.source));return this.calc.apply(this,a()(e))}},{key:"_start",value:function(){var e=this;this.idle&&!$e(this._active)&&(this.idle=!1,Object(I.k)(Object(N.g)(this),(function(e){e.done=!1})),I.b.skipAnimation?(I.w.batchedUpdates((function(){return e.advance()})),et(this)):I.o.start(this))}},{key:"_attach",value:function(){var e=this,t=1;Object(I.k)(Object(I.y)(this.source),(function(n){Object(I.r)(n)&&Object(I.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(I.k)(Object(I.y)(this.source),(function(t){Object(I.r)(t)&&Object(I.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(I.y)(this.source).reduce((function(e,t){return Math.max(e,(de(t)?t.priority:0)+1)}),0))}}]),n}(pe);function Xe(e){return!1!==e.idle}function $e(e){return!e.size||Array.from(e).every(Xe)}function et(e){e.idle||(e.idle=!0,Object(I.k)(Object(N.g)(e),(function(e){e.done=!0})),Object(I.d)(e,{type:"idle",parent:e}))}I.b.assign({createStringInterpolator:I.g,to:function(e,t){return new Je(e,t)}});I.o.advance},function(e,t,n){"use strict";n.d(t,"a",(function(){return ee}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(41),h=n.n(p),b=n(1),v=n.n(b),m=n(2),g=n.n(m),O=n(6),y=n.n(O),j=n(56),E=n(36),C=n(250),w=n(239),T=n(221),_=n(229),S=n(47),A=n(1058),k=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var I=function(e){s()(n,e);var t=R(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).handleVideoPosterChange=function(){e.props.onVideoPosterChange(e.input.files[0])},e}return a()(n,[{key:"render",value:function(){var e=this;return Object(k.c)("form",null,Object(k.c)("div",{className:"VideoCoverFileInput"},Object(k.c)("div",{className:"VideoCoverFile-uploader"},Object(k.c)("div",{className:"VideoCoverFile-uploader-icon"},Object(k.c)(A.a,{size:70})),Object(k.c)("div",{className:"VideoCoverFile-uploader-text"},"选择要上传的图片"),Object(k.c)("div",{className:"VideoCoverFile-uploader-tip"},"支持 jpg,png 格式,建议分辨率 1280*720"),Object(k.c)("input",{type:"file",className:"VideoCoverFileInput-input",accept:"image/png,image/jpeg",ref:function(t){e.input=t},onChange:this.handleVideoPosterChange,onClick:function(){return e.input.value=null}}))))}}]),n}(v.a.Component);I.propTypes={onVideoPosterChange:g.a.func.isRequired},I.defaultProps={onVideoPosterChange:function(){}};var x=n(364),N=n(645),D=n.n(N),P=n(658),L=n(11);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var U=function(e){s()(n,e);var t=M(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={range:1,image:e.props.image},e.handleSave=function(){var t=e.editorEl.getImage(),n=e.props.image;t&&t.toBlob(e.handleUploadBlob,n.type)},e.handleUploadBlob=function(t){e.props.onUploadImage(t,"avatar")},e.handleResetUpload=function(){e.setState({range:1,image:""}),e.props.onResetUpload()},e}return a()(n,[{key:"render",value:function(){var e=this,t=this.props.image,n=this.state.range;return Object(k.c)("div",{className:"VideoCoverCrop"},Object(k.c)(D.a,{ref:function(t){e.editorEl=t},image:t,width:340,height:208,border:[0,20],color:[246,246,246,.9],scale:parseFloat(n)}),Object(k.c)(P.a,{className:"VideoCoverCrop-range",value:n,onChange:function(t){return e.setState({range:t.target.value})}}),Object(k.c)("div",{className:"VideoCoverCrop-uplaodImgFooter"},Object(k.c)(L.c,{preset:"primary",onClick:this.handleResetUpload},"重新上传"),Object(k.c)(L.c,{color:"blue",preset:"primary",onClick:this.handleSave},"保存")))}}]),n}(v.a.Component);U.propTypes={image:g.a.oneOfType([g.a.string,g.a.object]).isRequired,onResetUpload:g.a.func.isRequired,onUploadImage:g.a.func.isRequired};var B={name:"12qah06",styles:"display:block;width:100%;height:100%;object-fit:cover;"},z={name:"1rwvvfg",styles:"width:100%;display:flex;flex-direction:row;margin-top:30px;& button{flex:1;}"},F={name:"8mg22s",styles:"margin-right:20px;"};function G(e){var t=e.image,n=e.file,r=e.onResetUpload,o=e.onUploadImage;return Object(k.c)("div",null,Object(k.c)("img",{src:t,css:B}),Object(k.c)("div",{css:z},Object(k.c)(L.c,{preset:"primary",onClick:r,css:F},"重新上传"),Object(k.c)(L.c,{color:"blue",preset:"primary",onClick:function(){return o(n)}},"保存")))}var V=n(12);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var q=function(e){s()(n,e);var t=H(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).handleSelect=function(t){t.preventDefault();var n=e.props.setTab;V.a.trackEvent(t.target,{id:2181}),n(1)},e}return a()(n,[{key:"render",value:function(){var e=this.props,t=e.curTabId,n=e.setTab;return Object(k.c)("ul",{className:"VideoCoverEditor-tabs"},Object(k.c)("li",{className:y()("VideoCoverEditor-tabItem",{active:0===t}),onClick:function(){return n(0)}},"上传封面"),Object(k.c)("li",{className:y()("VideoCoverEditor-tabItem",{active:1===t}),onClick:this.handleSelect},"选择封面"))}}]),n}(v.a.Component);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}q.propTypes={curTabId:g.a.number.isRequired,setTab:g.a.func.isRequired};var W=function(e){s()(n,e);var t=K(n);function n(){return o()(this,n),t.apply(this,arguments)}return a()(n,[{key:"render",value:function(){return Object(k.c)("div",{className:"VideoCoverPickerPending"},Object(k.c)("p",null,"视频处理中..."),Object(k.c)("p",null,"暂无系统封面,请使用上传封面"),Object(k.c)(L.c,{className:"VideoCoverPickerPending-nowUpdate",color:"blue",preset:"primary",onClick:this.props.backTab},"现在上传"))}}]),n}(v.a.Component);W.propTypes={backTab:g.a.func.isRequired};var Y=n(527),Q=n(661),Z=n(132);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var X=function(e){s()(n,e);var t=J(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={curPicIndex:0,thumbs:[]},e.handleCoverClick=function(t){e.setState({curPicIndex:t})},e.handleSubmit=function(t){t.preventDefault();var n=e.state.curPicIndex,r=e.props,o=r.items,i=r.onUploadPoster;V.a.trackEvent(t.target,{id:2234});var a=!o.length;i(e.list.children[n].children[0].src,a)},e}return a()(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.video;Object(Y.h)(t).then((function(t){e.setState({thumbs:t})}))}},{key:"render",value:function(){var e=this,t=this.state,n=t.curPicIndex,r=t.thumbs;return Object(k.c)("div",{className:"VideoCoverPicker-coverSelect"},0===r.length?Object(k.c)("div",{className:"VideoCoverPicker-coverList VideoCoverPicker-empty"},Array.from(Array(9)).map((function(e,t){return Object(k.c)("div",{className:"VideoCoverPicker-coverItem",key:t})})),Object(k.c)(Z.a,null)):Object(k.c)("div",{className:"VideoCoverPicker-coverList",ref:function(t){return e.list=t}},r.slice(0,9).map((function(t,r){return Object(k.c)("div",{className:y()("VideoCoverPicker-coverItem",{actived:n===r}),onClick:function(){return e.handleCoverClick(r)},key:r},Object(k.c)("img",{src:t.url}),Object(k.c)(Q.a,{shown:n!==r}))}))),Object(k.c)(L.c,{onClick:this.handleSubmit,className:"VideoCoverPicker-coverSelectBtn",color:"blue",preset:"primary"},"确定"))}}]),n}(v.a.Component);function $(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}X.propTypes={items:g.a.array.isRequired,onUploadPoster:g.a.func.isRequired};var ee=function(e){s()(n,e);var t=$(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={editorShown:!1,cropShown:!1,file:null,dataUrl:"",curTabId:0,errorMsg:""},e.renderTitle=function(){var t=e.state.curTabId;return Object(k.c)(q,{curTabId:t,setTab:e.setTab})},e.setTab=function(t){e.setState({curTabId:t})},e.showEditor=function(){e.setState({editorShown:!0})},e.hideEditor=function(){e.setState({editorShown:!1})},e.handleVideoPosterChange=function(t){if(t.size>10485760)return e.setState({errorMsg:"请上传不超过 10M 的图片"},(function(){e.resetErrorMsg()})),void e.resetUpload();Object(w.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 a()(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.thumbnail,r=t.needUploadThumbnail,o=t.uploading,i=t.id,a=t.changedVideoPoster,c=t.instantUpload;r&&n&&this.uploadVideoPoster(n,!n.startsWith("http")),!1!==o||a||c||(this.shouldRetry=!0,this.cts=new T.a,this.token=this.cts.token,Object(T.b)((function(){return e.load("https://lens.zhihu.com/api/v4/videos/".concat(i,"/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,i=t.dataUrl,a=t.curTabId,c=t.errorMsg,s=t.covers,u=void 0===s?[]:s,l=this.props,d=l.triggerClassName,f=l.coverButtonText,p=l.uploading,h=l.upload,b=l.originVideo,v=l.useCoverCrop,m=l.zvideoId,g=l.id,O=(null==h?void 0:h.file)||b,j="video/mp4"===(null==O?void 0:O.type),C=v?U:G;return Object(k.c)(x.a,null,Object(k.c)("div",{className:"VideoCoverEditor"},Object(k.c)(E.a,{className:y()(d,"Video-uploadPosterButton"),zaText:!0,zaType:"Button",zaBlock:"VideoUploadPoster",extra:{mediaInfo:{attachmentZvideoId:m,videoInfo:{videoId:g}}},onClick:this.showEditor},Object(k.c)("p",null,f)),n&&Object(k.c)(S.b,{className:"VideoCoverEditor-Modal",title:j&&this.renderTitle(),onClose:this.hideEditor},0===a&&(r?Object(k.c)(C,{file:o,image:i,onResetUpload:this.resetUpload,onUploadImage:this.handleUploadImage}):Object(k.c)(I,{onVideoPosterChange:this.handleVideoPosterChange})),1===a&&j&&(p?Object(k.c)(W,{backTab:function(){e.setState({curTabId:0})}}):Object(k.c)(X,{items:u,video:O,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(k.c)(_.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(405);var o=function(e){function t(e,t,r){var o=t.trim().split(h);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var c=0;for(e=0===a?"":e[0]+" ";c<i;++c)t[c]=n(e,t[c],r).trim();break;default:var s=c=0;for(t=[];c<i;++c)for(var u=0;u<a;++u)t[s++]=n(e[u]+" ",o[c],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(b,"$1"+e.trim());case 58:return e.trim()+t.replace(b,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(b,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",c=2*t+3*n+4*i;if(944===c){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===k||2===k&&o(s,1)?"-webkit-"+s+s:s}if(0===k||2===k&&!o(a,1))return a;switch(c){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(T,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return f.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(O,"tb");break;case 232:s=a.replace(O,"tb-rl");break;case 220:s=a.replace(O,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,c=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<c?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(E,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(E,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===w.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),N(2!==t?r:r.replace(C,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(j," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,c,u,l){for(var d,f=0,p=t;f<x;++f)switch(d=I[f].call(s,e,p,n,r,o,i,a,c,u,l)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(N=null,e?"function"!=typeof e?k=1:(k=2,N=e):k=0),c}function s(e,n){var c=e;if(33>c.charCodeAt(0)&&(c=c.trim()),c=[c],0<x){var s=a(-1,n,c,c,S,_,0,0,0,0);void 0!==s&&"string"==typeof s&&(n=s)}var d=function e(n,c,s,d,f){for(var p,h,b,O,j,E=0,C=0,w=0,T=0,I=0,N=0,P=b=p=0,L=0,M=0,U=0,B=0,z=s.length,F=z-1,G="",V="",H="",q="";L<z;){if(h=s.charCodeAt(L),L===F&&0!==C+T+w+E&&(0!==C&&(h=47===C?10:47),T=w=E=0,z++,F++),0===C+T+w+E){if(L===F&&(0<M&&(G=G.replace(l,"")),0<G.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:G+=s.charAt(L)}h=59}switch(h){case 123:for(p=(G=G.trim()).charCodeAt(0),b=1,B=++L;L<z;){switch(h=s.charCodeAt(L)){case 123:b++;break;case 125:b--;break;case 47:switch(h=s.charCodeAt(L+1)){case 42:case 47:e:{for(P=L+1;P<F;++P)switch(s.charCodeAt(P)){case 47:if(42===h&&42===s.charCodeAt(P-1)&&L+2!==P){L=P+1;break e}break;case 10:if(47===h){L=P+1;break e}}L=P}}break;case 91:h++;case 40:h++;case 34:case 39:for(;L++<F&&s.charCodeAt(L)!==h;);}if(0===b)break;L++}switch(b=s.substring(B,L),0===p&&(p=(G=G.replace(u,"").trim()).charCodeAt(0)),p){case 64:switch(0<M&&(G=G.replace(l,"")),h=G.charCodeAt(1)){case 100:case 109:case 115:case 45:M=c;break;default:M=R}if(B=(b=e(c,M,b,h,f+1)).length,0<x&&(j=a(3,b,M=t(R,G,U),c,S,_,B,h,f,d),G=M.join(""),void 0!==j&&0===(B=(b=j.trim()).length)&&(h=0,b="")),0<B)switch(h){case 115:G=G.replace(y,i);case 100:case 109:case 45:b=G+"{"+b+"}";break;case 107:b=(G=G.replace(v,"$1 $2"))+"{"+b+"}",b=1===k||2===k&&o("@"+b,3)?"@-webkit-"+b+"@"+b:"@"+b;break;default:b=G+b,112===d&&(V+=b,b="")}else b="";break;default:b=e(c,t(c,G,U),b,d,f+1)}H+=b,b=U=M=P=p=0,G="",h=s.charCodeAt(++L);break;case 125:case 59:if(1<(B=(G=(0<M?G.replace(l,""):G).trim()).length))switch(0===P&&(p=G.charCodeAt(0),45===p||96<p&&123>p)&&(B=(G=G.replace(" ",":")).length),0<x&&void 0!==(j=a(1,G,c,n,S,_,V.length,d,f,d))&&0===(B=(G=j.trim()).length)&&(G="\0\0"),p=G.charCodeAt(0),h=G.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){q+=G+s.charAt(L);break}default:58!==G.charCodeAt(B-1)&&(V+=r(G,p,h,G.charCodeAt(2)))}U=M=P=p=0,G="",h=s.charCodeAt(++L)}}switch(h){case 13:case 10:47===C?C=0:0===1+p&&107!==d&&0<G.length&&(M=1,G+="\0"),0<x*D&&a(0,G,c,n,S,_,V.length,d,f,d),_=1,S++;break;case 59:case 125:if(0===C+T+w+E){_++;break}default:switch(_++,O=s.charAt(L),h){case 9:case 32:if(0===T+E+C)switch(I){case 44:case 58:case 9:case 32:O="";break;default:32!==h&&(O=" ")}break;case 0:O="\\0";break;case 12:O="\\f";break;case 11:O="\\v";break;case 38:0===T+C+E&&(M=U=1,O="\f"+O);break;case 108:if(0===T+C+E+A&&0<P)switch(L-P){case 2:112===I&&58===s.charCodeAt(L-3)&&(A=I);case 8:111===N&&(A=N)}break;case 58:0===T+C+E&&(P=L);break;case 44:0===C+w+T+E&&(M=1,O+="\r");break;case 34:case 39:0===C&&(T=T===h?0:0===T?h:T);break;case 91:0===T+C+w&&E++;break;case 93:0===T+C+w&&E--;break;case 41:0===T+C+E&&w--;break;case 40:if(0===T+C+E){if(0===p)switch(2*I+3*N){case 533:break;default:p=1}w++}break;case 64:0===C+w+T+E+P+b&&(b=1);break;case 42:case 47:if(!(0<T+E+w))switch(C){case 0:switch(2*h+3*s.charCodeAt(L+1)){case 235:C=47;break;case 220:B=L,C=42}break;case 42:47===h&&42===I&&B+2!==L&&(33===s.charCodeAt(B+2)&&(V+=s.substring(B,L+1)),O="",C=0)}}0===C&&(G+=O)}N=I,I=h,L++}if(0<(B=V.length)){if(M=c,0<x&&(void 0!==(j=a(2,V,M,n,S,_,B,d,f,d))&&0===(V=j).length))return q+V+H;if(V=M.join(",")+"{"+V+"}",0!=k*A){switch(2!==k||o(V,2)||(A=0),A){case 111:V=V.replace(g,":-moz-$1")+V;break;case 112:V=V.replace(m,"::-webkit-input-$1")+V.replace(m,"::-moz-$1")+V.replace(m,":-ms-input-$1")+V}A=0}}return q+V+H}(R,c,n,0,0);return 0<x&&(void 0!==(s=a(-2,d,c,c,S,_,d.length,0,0,0))&&(d=s)),"",A=0,_=S=1,d}var u=/^\0+/g,l=/[\0\r\f]/g,d=/: */g,f=/zoo|gra/,p=/([,: ])(transform)/g,h=/,\r+?/g,b=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,g=/:(read-only)/g,O=/[svh]\w+-[tblr]{2}/,y=/\(\s*(.*)\s*\)/g,j=/([\s\S]*?);/g,E=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,w=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,_=1,S=1,A=0,k=1,R=[],I=[],x=0,N=null,D=0;return s.use=function e(t){switch(t){case void 0:case null:x=I.length=0;break;default:if("function"==typeof t)I[x++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else D=0|!!t}return e},s.set=c,void 0!==e&&c(e),s};n(406);function i(e){e&&a.current.insert(e+"}")}var a={current:null},c=function(e,t,n,r,o,c,s,u,l,d){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return a.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===u)return t+"/*|*/";break;case 3:switch(u){case 102:case 112:return a.current.insert(n[0]+t),"";default:return t+(0===d?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(i)}};t.a=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var i=new o(t);var s,u={};s=e.container||document.head;var l,d=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(d,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){u[e]=!0})),e.parentNode!==s&&s.appendChild(e)})),i.use(e.stylisPlugins)(c),l=function(e,t,n,r){var o=t.name;a.current=n,i(e,t.styles),r&&(f.inserted[o]=!0)};var f={key:n,sheet:new r.a({key:n,container:s,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:u,registered:{},insert:l};return f}},function(e,t,n){"use strict";var r=n(32),o=n(7),i=n(8),a=n(9),c=n(10),s=n(5),u=n(0),l=n(1),d=n(13),f=n(270),p=n(149);function h(){return n.e(18).then(n.bind(null,1351))}function b(e){return Object(u.b)(p.a,Object.assign({},e,{getComponent:h}))}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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(n,e);var t=v(n);function n(e){var r;return Object(o.a)(this,n),(r=t.call(this,e)).handleGetSupportedCountries=function(){var e=r.props,t=e.supportedCountries,n=e.getSupportedCountries;t&&t.length||n()},r.handleSignFlowModalOpen=function(e){r.setState({signFlowModalType:e,signFlowModalShown:!0})},r.handleSignFlowModalClose=function(){var e=r.props.onClose;r.setState({signFlowModalShown:!1},(function(){"function"==typeof e&&e()}))},r.handleLogin=function(e){var t=r.props.loginButton,n=t.props&&t.props.onClick;"function"==typeof n&&n(e),r.handleSignFlowModalOpen("login")},r.handleRegister=function(e){var t=r.props.registerButton,n=t.props&&t.props.onClick;"function"==typeof n&&n(e),r.handleSignFlowModalOpen("register")},e.defaultType?r.state={signFlowModalType:e.defaultType,signFlowModalShown:!0}:r.state={signFlowModalType:"initial",signFlowModalShown:!1},r}return Object(i.a)(n,[{key:"render",value:function(){var e=this.state,t=e.signFlowModalType,n=e.signFlowModalShown,o=this.props,i=o.loginButton,a=o.registerButton,c=o.children,s=o.wrapperClassName,d=Object(r.a)(o,["loginButton","registerButton","children","wrapperClassName"]),f=Object(u.b)(b,Object.assign({signType:t,onClose:this.handleSignFlowModalClose},d));return Object(u.c)("div",{className:s,children:[i&&Object(l.cloneElement)(i,{onMouseOver:this.handleGetSupportedCountries,onClick:this.handleLogin}),a&&Object(l.cloneElement)(a,{onMouseOver:this.handleGetSupportedCountries,onClick:this.handleRegister}),c,n&&f]})}}]),n}(l.Component);t.a=Object(d.connect)((function(e){return{supportedCountries:e.sms.supportedCountries}}),{getSupportedCountries:f.b})(m)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,i?0:o.cssRules.length)}catch(e){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},function(e,t,n){"use strict";t.a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(349);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=a(n(736)),o=a(n(740)),i=a(n(742));function a(e){return e&&e.__esModule?e:{default:e}}var c={fetchConfig:r.default,headers:o.default,getAbExperiments:i.default};t.default=c},function(e,t,n){e.exports=n(743)},function(e,t,n){"use strict";t.a=function(e,t){var n=!1,r=[],o=null;return function(){for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return r.push(a),n||(n=!0,o=new Promise((function(o){t((function(){var t=r;n=!1,r=[],o(e(t))}))}))),o}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(17),o=n(0),i=n(1),a=Object(i.createContext)(),c=function(e){var t=e.children,n=Object(i.useState)([]),c=Object(r.a)(n,2),s=c[0],u=c[1],l=Object(i.useCallback)((function(e){return u((function(t){return t.concat(e)}))}),[]),d=Object(i.useCallback)((function(e){return u((function(t){return t.filter((function(t){return t!==e}))}))}),[]),f=Object(i.useRef)({addInstance:l,removeInstance:d});return Object(o.c)(o.a,{children:[Object(o.b)(a.Provider,{value:f.current,children:t}),s]})};t.b=function(){var e=Object(i.useContext)(a);return{addInstance:e.addInstance,removeInstance:e.removeInstance}}},function(e,t){var n=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],r=n.join(","),o="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function i(e,t){t=t||{};var n,i,c,s=[],d=[],p=new f(e.ownerDocument||e),h=e.querySelectorAll(r);for(t.includeContainer&&o.call(e,r)&&(h=Array.prototype.slice.apply(h)).unshift(e),n=0;n<h.length;n++)a(i=h[n],p)&&(0===(c=u(i))?s.push(i):d.push({documentOrder:n,tabIndex:c,node:i}));return d.sort(l).map((function(e){return e.node})).concat(s)}function a(e,t){return!(!c(e,t)||function(e){return function(e){return d(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t=function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}(e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'));return!t||t===e}(e)}(e)||u(e)<0)}function c(e,t){return t=t||new f(e.ownerDocument||e),!(e.disabled||function(e){return d(e)&&"hidden"===e.type}(e)||t.isUntouchable(e))}i.isTabbable=function(e,t){if(!e)throw new Error("No node provided");return!1!==o.call(e,r)&&a(e,t)},i.isFocusable=function(e,t){if(!e)throw new Error("No node provided");return!1!==o.call(e,s)&&c(e,t)};var s=n.concat("iframe").join(",");function u(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:e.tabIndex:t}function l(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function d(e){return"INPUT"===e.tagName}function f(e){this.doc=e,this.cache=[]}f.prototype.hasDisplayNone=function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var n=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n]))return e[n]}(this.cache,(function(t){return t===e}));if(n)return n[1];var r=!1;return"none"===(t=t||this.doc.defaultView.getComputedStyle(e)).display?r=!0:e.parentNode&&(r=this.hasDisplayNone(e.parentNode)),this.cache.push([e,r]),r},f.prototype.isUntouchable=function(e){if(e===this.doc.documentElement)return!1;var t=this.doc.defaultView.getComputedStyle(e);return!!this.hasDisplayNone(e,t)||"hidden"===t.visibility},e.exports=i},function(e,t,n){var r=n(552),o=n(466)((function(e,t,n,o){r(e,t,n,o)}));e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p}));var r=n(77),o=n.n(r),i=n(55),a=n.n(i),c=n(219),s=n(131),u=n(305),l={isFetching:!1,isDrained:!1,ids:[],offset:0,limit:10},d=Object.create(null);function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case c.a.GET_ALL_FAVLISTS.REQUEST,c.a.GET_ALL_FAVLISTS_WITH_RELATIONS.REQUEST:return Object.assign({},e,a()({},t.urlToken,Object.assign({},l,e[t.urlToken],{isFetching:!0,isDrained:!1})));case c.a.GET_ALL_FAVLISTS.SUCCESS,c.a.GET_ALL_FAVLISTS_WITH_RELATIONS.SUCCESS:var n=t.result,r=t.paging,i=r.offset,u=r.limit,f=n.filter((function(n){return!e[t.urlToken].ids.includes(n)}));return Object.assign({},e,a()({},t.urlToken,Object.assign({},l,e[t.urlToken],{isFetching:!1,ids:[].concat(o()(e[t.urlToken].ids),o()(f)),isDrained:t.payload.paging.isEnd,offset:i+u,limit:u})));case c.a.GET_ALL_FAVLISTS.FAILURE,c.a.GET_ALL_FAVLISTS_WITH_RELATIONS.FAILURE:return Object.assign({},e,a()({},t.urlToken,Object.assign({},e[t.urlToken],{isFetching:!1})));case s.a.ADD.SUCCESS:var p=t.result;return Object.assign({},e,a()({},t.urlToken,Object.assign({},e[t.urlToken],{ids:[p].concat(o()(e[t.urlToken].ids))})));default:return e}}var p=Object(u.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0,n=t.urlToken,r=t.type,o=e[n];switch(r){case s.a.ADD.REQUEST:return a()({},n,{favlistsCount:o.favlistsCount+1});case s.a.ADD.FAILURE:return a()({},n,{favlistsCount:o.favlistsCount-1});default:return e}}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return s}));var r=n(55),o=n.n(r),i=n(305),a=n(131);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.contentId,r=t.contentType,i=t.payload,c="".concat(r,"_").concat(n);switch(t.type){case a.a.GET_FAVORITE_STATUS.SUCCESS:return Object.assign({},e,o()({},c,Object.assign({},e[c],i.reduce((function(e,t){return Object.assign({},e,o()({},t.favlistId,t.collected))}),{}))));case a.a.UPDATE_ITEM.SUCCESS:return Object.assign({},e,o()({},c,Object.assign({},e[c],o()({},t.favlistId,t.collected))));case a.a.ADD.SUCCESS:return Object.keys(e).reduce((function(e,n){return Object.assign({},e,o()({},n,Object.assign({},e[n],o()({},t.result,!1))))}),e);case a.b.UPDATE_RELATIONS:return Object.assign({},e,o()({},c,Object.assign({},e[c],t.payload.relations)));default:return e}}var s=Object(i.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.favlistId,r=t.type,i=t.collected,c=e[n];switch(r){case a.a.UPDATE_ITEM.REQUEST:return o()({},n,{answerCount:c.answerCount+(i?1:-1)});case a.a.UPDATE_ITEM.FAILURE:return o()({},n,{answerCount:c.answerCount+(i?-1:1)});default:return e}}))},function(e,t,n){"use strict";var r=n(303),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=Object(r.a)((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(52),o=n(44);function i(e,t){Object(o.a)(2,arguments);var n=Object(r.a)(e),i=Object(r.a)(t);return n.getTime()-i.getTime()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(52),o=n(44);function i(e){Object(o.a)(1,arguments);var t=Object(r.a)(e);return!isNaN(t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(67),o=n(420),i=n(44);function a(e,t){Object(i.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 a}));var r=n(67),o=n(52),i=n(44);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.a)(e).getTime(),a=Object(r.a)(t);return new Date(n+a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="data[?(target.type=topic_sticky_module)].target.data[?(target.type=answer)].target.content,relationship.is_authorized,is_author,voting,is_thanked,is_nothelp;data[?(target.type=topic_sticky_module)].target.data[?(target.type=answer)].target.is_normal,comment_count,voteup_count,content,relevant_info,excerpt.author.badge[?(type=best_answerer)].topics;data[?(target.type=topic_sticky_module)].target.data[?(target.type=article)].target.content,voteup_count,comment_count,voting,author.badge[?(type=best_answerer)].topics;data[?(target.type=topic_sticky_module)].target.data[?(target.type=people)].target.answer_count,articles_count,gender,follower_count,is_followed,is_following,badge[?(type=best_answerer)].topics;data[?(target.type=answer)].target.annotation_detail,content,hermes_label,is_labeled,relationship.is_authorized,is_author,voting,is_thanked,is_nothelp,answer_type;data[?(target.type=answer)].target.author.badge[?(type=best_answerer)].topics;data[?(target.type=answer)].target.paid_info;data[?(target.type=article)].target.annotation_detail,content,hermes_label,is_labeled,author.badge[?(type=best_answerer)].topics;data[?(target.type=question)].target.annotation_detail,comment_count;"},function(e,t,n){"use strict";function r(e,t){var n=t.uploadId,r=t.parts,o=t.name;return{file:e,uploadId:n,doneParts:r.map((function(e){var t=e.PartNumber;return{etag:e.ETag,number:Number(t)}})),partSize:Number(r[0].Size),name:o,fileSize:e.size}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return D}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(41),h=n.n(p),b=n(60),v=n.n(b),m=n(64),g=n.n(m),O=n(306),y=n(346),j=n(221),E=n(443),C=n(422),w=n(392),T=n(252),_=n(220);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var A=1,k=2,R=function(e,t){var n,r,o;null===(n=window)||void 0===n||null===(r=n.Raven)||void 0===r||null===(o=r.captureException)||void 0===o||o.call(r,e,{fingerprint:["upload-video"],extra:t})},I=function(){return"https://lens.zhihu.".concat(Object(O.a)()?"dev":"com")},x=function(){return Object(O.a)()?{endpoint:"https://oss-cn-hangzhou.aliyuncs.com",bucket:"zhihu-video-input-dev",cname:!1}:{endpoint:"https://upload-oss.vzuu.com",bucket:"zhihu-video-input",cname:!0}},N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return fetch(e,Object.assign({},t,{headers:Object.assign({},t.headers,{Accept:"application/json"}),credentials:"include"})).then((function(e){return e.json().catch((function(){return{}})).then((function(t){if(!e.ok)throw t;return t}))}))},D=function(e,t){var n,r=t.apiRoot,o=void 0===r?I():r,i=h()(t,["apiRoot"]);return new Promise((function(t,r){Object(j.b)((function(){return N("".concat(o,"/api/v4/videos/").concat(e,"/default_cover")).then((function(e){var t=e.default_cover_url,r=e.algorithm_cover_url;if(r)return r;throw t&&!n&&(n=t),new _.a("cover","algorithm_cover_url not exists.")})).catch((function(e){if("UploadError"===e.name)throw e;throw new _.a("unknown",e)}))}),Object.assign({times:20,delay:1e3},i)).then(t).catch((function(e){n?t(n):r(e)}))}))},P=function(e){s()(n,e);var t=S(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state=Object.assign({},e.state,{uploadingType:null,uploadingStatus:null,uploadTime:0,uploadedSize:0,uploadId:"",fileSize:e.value.size,mime:e.value.type,reportedId:""}),e.video=null,e.videoInfo={},e.checkpoint=null,e.expireTimes=0,e.handleUploadVideo=function(){var t=e.video.upload_file,n=t.state;if(n===A)return e.handleVideoUploadSuccess(n);if(n===k){var r=t.object_key,o=t.upload_id;return e.getClient().then((function(){e.client.listParts(r,o).then((function(t){e.checkpoint=Object(C.a)(e.value,t),e.uploadVideo()}))}))}return e.uploadVideo()},e.handleVideoUploadSuccess=function(t){g.a.increment("VideoUpload.".concat(e.usage,".upload.uploading_status.count")),e.videoInfo={id:e.video.upload_file.video_id,thumbnail:"",originVideo:e.value,instantUpload:t===A};var n=e.state.mime;return Promise.resolve().then((function(){e.step("uploaded",Object.assign({},e.videoInfo)),g.a.increment("VideoUpload.".concat(e.usage,".upload.uploaded.count"))})).then((function(){return(null==n?void 0:n.startsWith("audio/"))||e.props.noCoverFetch?Promise.resolve():e.loadCover()})).then((function(){return e.updateUploadingStatus("UPLOADING_SUCCESS")})).then((function(){e.step("cover",Object.assign({},e.videoInfo)),e.complete(e.videoInfo),g.a.increment("VideoUpload.".concat(e.usage,".upload.success.").concat(t,".count"))}))},e.handleThrowError=function(t){e.token.throwIfCancelled(),Object(y.a)((function(){var n="UploadError"===t.name?t.type:t.name;g.a.increment("VideoUpload.".concat(e.usage,".upload.error.").concat(n||"unknown",".count")),g.a.increment("VideoUpload.".concat(e.usage,".upload.failure.count"))})),e.error(t)},e.handleProgress=function(t,n){var r=(n||{}).uploadId,o=void 0===r?"":r,i=e.value.size*t;e.update({uploadedSize:i,uploadId:o}),e.checkpoint=n,0===t?e.updateUploadingStatus("UPLOADING_START"):t/.1%1==0&&e.updateUploadingStatus("UPLOADING")},e.handleResume=function(){var t=e.video.upload_file.object_key;return e.getClient().then((function(){var n=e.expireObjectKey&&e.expireObjectKey!==t;return n&&(e.expireObjectKey=""),e.client.multipartUpload(t,e.value,{progress:e.handleProgress,parallel:3,checkpoint:n?null:e.checkpoint,timeout:2e4})}))},e.updateUploadingStatus=function(t){var n=e.state.uploadId,r=e.video.upload_file,o=r.video_id,i=r.object_key;return e.update({uploadingStatus:t}),N("".concat(e.apiRoot,"/api/v4/videos/").concat(o,"/uploading_status"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({object_key:i,upload_id:n,video_source:"origin",upload_event:t})})},e.handleReport=function(t){var n=e.state,r=n.fileSize,o=n.uploadId,i=t.payload||{},a=i.requestId,c=i.code,s=i.message,u=i.status,l=e.video.upload_file,d={msg:"upload",platform:"web",uploadid:o,videoid:l.video_id,requestid:a,object:l.object_key,filesize:r,url:location.href,errorcode:c,errormsg:s||JSON.stringify(t),errorstatus:u};N("".concat(e.apiRoot,"/report?").concat(v.a.stringify(d)))},e.refreshSTSToken=function(){return Object(j.b)((function(){var t=e.video.upload_file,n=t.video_id,r=t.object_key;return N("".concat(e.apiRoot,"/api/v4/videos/upload_token"),{method:"GET",headers:{"Content-Type":"application/json"},upload_id:e.state.uploadId,video_id:n,object_key:r,vendor_code:"ali"})}),{cancellationToken:e.token}).then((function(t){return e.token.throwIfCancelled(),e.video.upload_token=Object.assign({},t),t})).catch((function(t){throw e.token.throwIfCancelled(),new _.a("upload",t)}))},e.getClient=function(){var t=e.video.upload_token,n=t.access_id,r=t.access_key,o=t.access_token;return Object(w.a)().then((function(){e.client=new window.OSS(Object.assign({},x(),{secure:!0,accessKeyId:n,accessKeySecret:r,stsToken:o,refreshSTSToken:e.refreshSTSToken}))})).catch((function(t){var n,r;throw null===(n=(r=console).error)||void 0===n||n.call(r,"Upload client init failed.",t),g.a.increment("VideoUpload.".concat(e.usage,".oss.error.").concat(t.type||"unknown",".count")),t}))},e.createVideo=function(t){var n=e.state,r=n.fileSize,o=n.mime;if(r<=102400&&!(null==o?void 0:o.startsWith("audio/"))&&!e.props.noSizeCheck)throw new _.a("file","Video uploading entity is too small.");if(e.token.throwIfCancelled(),e.video&&!e.expireObjectKey)return Promise.resolve();var i={file_md5:t};return e.props.useV5Api&&e.props.source&&(i.source=e.props.source),Object(j.b)((function(){return N("".concat(e.apiRoot,"/api/").concat(e.props.useV5Api?"v5":"v4","/videos"),{method:"POST",headers:{"Content-Type":"application/json","X-Upload-Content-Type":e.value.type,"X-Upload-Content-Length":e.value.size},body:JSON.stringify(i)})}),{cancellationToken:e.token}).then((function(t){var n;(e.token.throwIfCancelled(),e.props.useV5Api)?e.video={upload_file:t.upload_file,upload_token:null===(n=t.upload_vendor)||void 0===n?void 0:n.upload_token}:e.video=Object.assign({},t)})).catch((function(t){throw e.token.throwIfCancelled(),new _.a("upload",t)}))},e.uploadVideo=function(){var t=e.video.upload_file,n=t.object_key,r=t.state;e.token.throwIfCancelled(),e.update({reportedId:""});var o=function(){return e.handleVideoUploadSuccess(r)};if(e.checkpoint)return e.update({uploadingType:"upload",error:!1,uploading:!0}),Object(j.b)(e.handleResume).catch((function(t){var n;if("NoSuchUpload"!==(null==t||null===(n=t.payload)||void 0===n?void 0:n.code))throw e.token.throwIfCancelled(),new _.a("upload",t)})).then(o);return e.getClient().then((function(){return e.client.multipartUpload(n,e.value,{progress:e.handleProgress,mime:e.value.type,parallel:3,timeout:2e4,partSize:1048576}).catch((function(){return Object(j.b)(e.handleResume)})).then(o).catch((function(t){throw"SecurityTokenExpired"===t.code&&0===e.expireTimes&&(e.expireTimes=e.expireTimes+1,e.expireObjectKey=n,e.handleStart(!1)),e.token.throwIfCancelled(),new _.a("upload",t)}))}))},e.loadCover=function(){e.token.throwIfCancelled();var t=e.video.upload_file.video_id;return D(t,{apiRoot:e.apiRoot,cancellationToken:e.token}).then((function(t){t&&(e.videoInfo.thumbnail=t)}))},e}return a()(n,[{key:"handleStart",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.cts=new j.a,this.token=this.cts.token,this.update({uploadingType:"upload",uploadedSize:0}),e&&g.a.increment("VideoUpload.".concat(this.usage,".upload.intention.count")),Object(E.a)(this.value).then(this.createVideo).then(this.handleUploadVideo).catch(this.handleThrowError).catch((function(){}))}},{key:"handleAbort",value:function(){var e;this.update({uploadedSize:0}),this.video&&this.updateUploadingStatus("CANCEL"),this.cts.cancel(),null===(e=this.client)||void 0===e||e.cancel(),this.video=null}},{key:"handleError",value:function(e){var t,n,r,o=this;this.update({uploadedSize:0});var i=(e||{}).type;"upload"===i&&(null===(t=this.video)||void 0===t?void 0:t.upload_file)?Object(y.a)((function(){var t=o.video.upload_file.video_id;if(t!==o.state.reportedId){o.update({reportedId:t});var n=o.value,r=n.name,a=n.size;e.name="".concat(e.name," video_error_").concat(o.expireTimes),R(e,{name:r,size:a,id:t,type:i}),o.updateUploadingStatus("UPLOADING_FAILURE"),o.handleReport(e)}})):R(e,Object.assign({},this.value,{id:null===(n=this.video)||void 0===n||null===(r=n.upload_file)||void 0===r?void 0:r.video_id,type:i}))}},{key:"usage",get:function(){return this.props.usage||"default"}},{key:"apiRoot",get:function(){return this.props.apiRoot||I()}}]),n}(T.a);t.a=P},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.imgPathParse=void 0;var o=r(n(230)),i="/",a="/",c=".",s="_";t.imgPathParse=function(e){var t={hash:"",prefix:""},n=e,r=e.lastIndexOf(c),o=e.slice(r+1);r>=0&&function(e){return e.indexOf("/")<0}(o)&&(t.extension=o,n=e.slice(0,r));var u=n.lastIndexOf(s);u>=0&&(t.size=n.slice(u+1),n=n.slice(0,u));var l=n.lastIndexOf(i);t.hash=n.slice(l+1);var d,f=(n=n.slice(0,l)).lastIndexOf(a),p=n.slice(f+1);return d=p,isNaN(d-parseFloat(d))?p&&(t.prefix=n):(t.quality=Number(p),t.prefix=n.slice(0,f)),t};var u=function(e){return 10*Math.floor(e/10)},l=function(e){var t=e.prefix,n=e.quality,r=e.hash,o=e.size,i=e.extension;return[t||"",n?"".concat(a).concat(u(Number(n))):"","/".concat(r),o?"".concat(s).concat(o):"",i?"".concat(c).concat(i):""].join("")};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"string"!=typeof e)return"";n="string"==typeof n?{size:n}:n;var r=o.default(e);if("data:"===r.protocol||!r.hostname.endsWith("zhimg.com"))return e;var i=t.imgPathParse(r.pathname),a=l(Object.assign(Object.assign(Object.assign({},i),n),{extension:n.extension||i.extension}));return r.set("pathname",a),String(r)}},function(e,t,n){var r=n(605)();e.exports=r},function(e,t,n){var r=n(338);e.exports=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?r(e,void 0,t):[]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(26),o=n(29),i=new r.b.Entity("chats",{participant:o.a.USER},{idAttribute:function(e){return e.participant.id}}),a=new r.b.Array(i)},function(e,t,n){"use strict";n.d(t,"b",(function(){return s}));var r=n(427),o=n(19),i=n(254),a=n(237),c=Object(o.a)("chat",["GET_STRANGERS"]),s=function(e){return function(t,n){var o=n().chat.inbox.strangers.next,i=e||!o?"/stranger_inbox":o;return t({API:{types:c.GET_STRANGERS,endpoint:i},schema:r.a})}};t.a=Object(i.a)(c.GET_STRANGERS,null,(function(e,t){if(t.type===a.c.SEND_MESSAGE.success){var n=e.result,r=t.meta.receiverId;return n.indexOf(r)<0?e:Object.assign({},e,{result:n.filter((function(e){return e!==r}))})}if(t.type===a.c.DELETE_MESSAGE_THREAD.success){var o=t.meta.chatId;return Object.assign({},e,{result:e.result.filter((function(e){return e!==o}))})}return e}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n(29);var r=n(19),o=n(254),i=Object(r.a)("chat",["GET_FRIENDS"]);t.b=Object(o.a)(i.GET_FRIENDS)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(39),o=n.n(r),i=n(99),a=[i.TOP,i.BOTTOM],c=[i.LEFT,i.RIGHT];function s(e,t,n,r){var s,u,l,d,f,p=r.split("-"),h=o()(p,2),b=h[0],v=h[1],m=(u=(s=t).top,l=s.bottom,d=s.left,f=s.right,{top:Math.max(u,0),bottom:Math.min(Math.max(l,0),window.innerHeight),left:Math.max(d,0),right:Math.min(Math.max(f,0),window.innerWidth)}),g={},O={},y=b;if(a.includes(b)){var j,E,C=m.right-n.width,w=m.left;if(v===i.LEFT?(j=e.left,E=w):v===i.RIGHT?(j=e.right-n.width,E=C):(j=e.left+e.width/2-n.width/2,E=w),O.left=C>w?j<w?w:j<C?j:C:E,e.width<=n.width){var T=e.left+e.width/2;g.left=T-O.left}else g.left=n.width/2;b===i.BOTTOM&&e.bottom+n.height>m.bottom&&e.top-n.height>m.top&&(y=i.TOP),b===i.TOP&&e.bottom+n.height<m.bottom&&e.top-n.height<m.top&&(y=i.BOTTOM);var _=y===i.TOP?[n.height,e.top-n.height]:[0,e.bottom],S=o()(_,2);g.top=S[0],O.top=S[1]}if(c.includes(b)){var A,k,R=m.bottom-n.height,I=m.top;if(v===i.TOP?(A=e.top,k=I):v===i.BOTTOM?(A=e.bottom-n.height,k=R):(A=e.top+e.height/2-n.height/2,k=I),O.top=R>I?A<I?I:A<R?A:R:k,e.width<=n.width){var x=e.top+e.height/2;g.top=x-O.top}else g.top=n.height/2;b===i.RIGHT&&e.right+n.width>m.right&&e.left-n.width>m.left&&(y=i.LEFT),b===i.LEFT&&e.right+n.width<m.right&&e.left-n.width<m.left&&(y=i.RIGHT);var N=y===i.LEFT?[n.width,e.left-n.width]:[0,e.right],D=o()(N,2);g.left=D[0],O.left=D[1]}return{arrowStyle:g,targetContainerStyle:O,placement:y}}},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=e.getElement,r=e.padding,o=void 0===r?0:r,i=e.getBoundaryInfo;if(i)return i();var a={};n?a=n():t&&(a=t);var c=a.getBoundingClientRect(),s=c.top,u=c.right,l=c.bottom,d=c.left;return{top:s+o,right:u-o,bottom:l-o,left:d+o}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(13),a=n(149),c=n(310);var s=Object(o.forwardRef)((function(e,t){var o=Object(i.useSelector)(c.a);return Object(r.b)(a.a,Object.assign({ref:t,getComponent:function(){return function(e){return e?n.e(17).then(n.bind(null,1039)):n.e(16).then(n.bind(null,1037))}(o)}},e))}));t.a=s},function(e,t,n){var r=n(605)(!0);e.exports=r},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,a=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,s=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,l=u&&u(Object);e.exports=function e(t,n,d){if("string"!=typeof n){if(l){var f=u(n);f&&f!==l&&e(t,f,d)}var p=a(n);c&&(p=p.concat(c(n)));for(var h=0;h<p.length;++h){var b=p[h];if(!(r[b]||o[b]||d&&d[b])){var v=s(n,b);try{i(t,b,v)}catch(e){}}}return t}return t}},function(e,t,n){"use strict";var r=n(1),o=n(31);t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.rootMargin,a=n.threshold,c=n.once,s=void 0===c||c;e=Array.isArray(e)?e:e?[e]:[];var u=Object(r.useRef)(null),l=Object(o.b)(t);Object(r.useEffect)((function(){if(e.length)return u.current&&e.forEach((function(e){return u.current.unobserve(e)})),u.current=new IntersectionObserver((function(e){e.forEach((function(e){e.intersectionRatio>0&&(l(e),s&&u.current.unobserve(e.target))}))}),{rootMargin:i,threshold:a}),e.forEach((function(e){return u.current.observe(e)})),function(){e.forEach((function(e){return u.current.unobserve(e)}))}}),[e,i,JSON.stringify(a),s])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1)),a=n(917);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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 u=function(e){function t(){var e,n,r;c(this,t);for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];return n=r=s(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={inView:!1},r.node=null,r.handleNode=function(e){r.node&&(0,a.unobserve)(r.node),r.node=e,r.observeNode(),r.props.innerRef&&r.props.innerRef(e)},r.handleChange=function(e){r.setState({inView:e}),r.props.onChange&&r.props.onChange(e)},s(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidUpdate",value:function(e,t){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold||((0,a.unobserve)(this.node),this.observeNode()),t.inView!==this.state.inView&&this.state.inView&&this.props.triggerOnce&&((0,a.unobserve)(this.node),this.node=null)}},{key:"componentWillUnmount",value:function(){this.node&&((0,a.unobserve)(this.node),this.node=null)}},{key:"observeNode",value:function(){if(this.node){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin,o=e.rootId;(0,a.observe)(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r},o)}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.render,o=e.tag,a=(e.innerRef,e.triggerOnce,e.threshold,e.root,e.rootId,e.rootMargin,function(e,t){var n={};for(var r in e)t.indexOf(r)>=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 i.createElement(o,r({},a,{ref:this.handleNode}),"function"==typeof n?n(c):null,"function"==typeof t?t(c):t)}}]),t}(i.Component);u.defaultProps={tag:"div",threshold:0,triggerOnce:!1},t.default=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1),o=n.n(r);function i(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(30),o=n.n(r),i=n(1),a=n.n(i);function c(e){return a.a.createElement("svg",o()({width:"16",height:"16",viewBox:"0 0 24 25"},e),a.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 i}));var r=n(1),o=n.n(r);function i(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,"b",(function(){return s.a}));var r=n(15),o=n(4),i=n(23),a=n(19),c=(n(21),Object(a.a)("host",["GET_USER_PERMISSIONS","UPDATE_ROUNDTABLE_SUBJECT","GET_ROUNDTABLE_SUBJECT","GET_ROUNDTABLE_APPLICATIONS","GET_ONLINE_ROUNDTABLES","UPDATE_ROUNDTABLE_APPLY","CREATE_ROUNDTABLE_APPLY","GET_ROUNDTABLE_APPLY","GET_ROUNDTABLE_DETAIL","GET_ROUNDTABLE_INCLUDEDRESOURCE","GET_ROUNDTABLE_HOT_QUESTIONS","UPDATE_HIDDEN_ROUNDTABLE_INCLUDEDRESOURCE","UPDATE_ROUNDTABLE_INCLUDERESOURCE","TOGGLE_ROUNDTABLE_HOT_QUESTION_HIDDEN","POST_ROUNDTABLE_INCLUDEDRESOURCE","ADD_ROUNDTABLE_HOT_QUESTIONS","UPDATE_ROUNDTABLE_HOT_QUESTION","SEARCH_ROUNDTABLE_INCLUDED_RESOURCE","BATCH_ADD_ROUNDTABLE_INCLUDED_RESOURCE","GET_ROUNDTABLE_WARMUP_CONTENTS","TOGGLE_WARMUP_CONTENT_HIDDEN","SET_WARMUP_CONTENT_WEIGHT","GET_SPECIAL_APPLICATIONS","GET_SPECIAL_APPLY_CENSOR_HISTORY","GET_SPECIAL_DRAFT","SAVE_SPECIAL_DRAFT","SUBMIT_SPECIAL_APPLY"]));var s=n(159),u=n(78),l=Object(i.combineReducers)({subjects:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===c.GET_ROUNDTABLE_SUBJECT.success){var n=t.payload.data;return Object.assign({},e,Object(o.a)({},n.id,n))}return e},applications:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{total:0},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload,o=t.meta;return n===c.GET_ROUNDTABLE_APPLICATIONS.success?Object(s.a)(e,o.current,r):e},online:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{total:0},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload,o=t.meta;return n===c.GET_ONLINE_ROUNDTABLES.success?Object(s.a)(e,o.current,r):e},applies:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===c.GET_ROUNDTABLE_APPLY.success){var n=t.payload.data;return Object.assign({},e,Object(o.a)({},n.id,n))}return e},details:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.meta,r=t.payload;return t.type===c.GET_ROUNDTABLE_DETAIL.success?Object.assign({},e,Object(o.a)({},n.id,r.data)):e},includedResource:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,i=t.payload,a=t.meta;if(n===c.GET_ROUNDTABLE_INCLUDEDRESOURCE.success)return Object.assign({},e,Object(o.a)({},a.id,Object.assign({},e[a.id],Object(s.a)(e[a.id]||{},a.current,i,{dataKey:"objectId"}))));if(n===c.UPDATE_HIDDEN_ROUNDTABLE_INCLUDEDRESOURCE.success)return Object(u.produce)(e,(function(e){e[a.id].entities[a.objectId].isDeleted=a.isDeleted}));if(n===c.UPDATE_ROUNDTABLE_INCLUDERESOURCE.success)return Object(u.produce)(e,(function(e){Object.assign(e[a.id].entities[a.resource.objectId],a.body)}));if(n===c.POST_ROUNDTABLE_INCLUDEDRESOURCE.success){var l=t.payload.payload;if(l){var d=l.objectId;return Object(u.produce)(e,(function(e){e[a.id].pages[1]=e[a.id].pages[1]?[d].concat(Object(r.a)(e[a.id].pages[1])):[d],e[a.id].entities[d]=l}))}}return e},hotQuestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload,i=t.meta;return n===c.GET_ROUNDTABLE_HOT_QUESTIONS.success?Object.assign({},e,Object(o.a)({},i.id,Object.assign({},e[i.id],Object(s.a)(e[i.id]||{},i.current,r,{dataKey:"question.id"})))):n===c.TOGGLE_ROUNDTABLE_HOT_QUESTION_HIDDEN.success?Object(u.produce)(e,(function(e){e[i.id].entities[i.questionId].isDeleted=i.isDeleted})):n===c.UPDATE_ROUNDTABLE_HOT_QUESTION.success?Object(u.produce)(e,(function(e){Object.assign(e[i.id].entities[i.question.id],i.body)})):e},warmupContents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload,i=t.meta;return n===c.GET_ROUNDTABLE_WARMUP_CONTENTS.success?Object.assign({},e,Object(o.a)({},i.roundtableId,Object.assign({},e[i.roundtableId],Object(s.a)(e[i.roundtableId]||{},i.current,r,{dataKey:"id"})))):n===c.TOGGLE_WARMUP_CONTENT_HIDDEN.success?Object(u.produce)(e,(function(e){e[i.roundtableId].entities[i.contentId].isDeleted=i.isDeleted})):n===c.SET_WARMUP_CONTENT_WEIGHT.success?Object(u.produce)(e,(function(e){e[i.roundtableId].entities[i.contentId].weight=i.weight})):e},batchInclude:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload,i=t.meta;return n===c.SEARCH_ROUNDTABLE_INCLUDED_RESOURCE.success?Object.assign({},e,Object(o.a)({},i.id,Object.assign({},e[i.id],Object(s.a)(e[i.id]||{},i.current,r)))):e}}),d=Object(i.combineReducers)({applications:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{total:0,pages:{},entities:{}},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.meta,o=t.payload;return n===c.GET_SPECIAL_APPLICATIONS.success?Object(s.a)(e,r.current,{total:o.paging.total,data:o.data}):e},censorHistory:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.meta,i=t.payload;return n===c.GET_SPECIAL_APPLY_CENSOR_HISTORY.success?Object.assign({},e,Object(o.a)({},r.draftId,i.data)):e},drafts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;return n===c.GET_SPECIAL_DRAFT.success?Object.assign({},e,Object(o.a)({},r.draftId,r)):e}}),f=Object(i.combineReducers)({roundtable:l,special:d});t.a=f},function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n(4),o=(n(29),n(19)),i=Object(o.a)("roundtable",["LOAD_OLD_ROUNDTABLE","LOAD_ROUNDTABLE_LIST","LOAD_ROUNDTABLE_DETAIL","LOAD_ROUNDTABLE_HOT_QUESTIONS","LOAD_ROUNDTABLE_WARM_UP_CONTENTS","LOAD_ROUNDTABLE_HOT_DISCUSSIONS","LOAD_ROUNDTABLE_SELECTED_CONTENTS","TOGGLE_FOLLOW_ROUNDTABLE"]);function a(e){return function(t,n){var o=n().entities.roundtables[e],a=o.isFollowing,c=o.followersCount;return t({API:{types:i.TOGGLE_FOLLOW_ROUNDTABLE,endpoint:"roundtables/".concat(e,"/followers"),method:a?"DELETE":"POST"},UPDATE:{request:{roundtables:Object(r.a)({},e,{isFollowing:!a,followersCount:a?c-1:c+1})},failure:{roundtables:Object(r.a)({},e,o)}}})}}var c=n(155),s=n.n(c),u=n(202),l=n.n(u),d={hotQuestions:{},warmupContents:{},hotDiscussions:{},selectedContents:{},roundtables:{}};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0,n=t.type,o=t.payload;switch(n){case i.LOAD_ROUNDTABLE_LIST.request:return Object.assign({},e,{roundtables:Object.assign({},e.roundtables,{isLoading:!0})});case i.LOAD_ROUNDTABLE_LIST.failure:return Object.assign({},e,{roundtables:Object.assign({},e.roundtables,{isLoading:!1})});case i.LOAD_ROUNDTABLE_LIST.success:if(o){var a=o.data,c=o.paging;return Object.assign({},e,{roundtables:Object.assign({},e.roundtables,{isLoading:!1,paging:c,data:s()(e.roundtables.data,a,"urlToken")})})}return Object.assign({},e,{roundtables:Object.assign({},e.roundtables,{isLoading:!1})});case i.LOAD_ROUNDTABLE_HOT_QUESTIONS.request:var u=t.meta.urlToken;return Object.assign({},e,{hotQuestions:Object.assign({},e.hotQuestions,Object(r.a)({},u,Object.assign({},e.hotQuestions[u],{isLoading:!0})))});case i.LOAD_ROUNDTABLE_HOT_QUESTIONS.failure:var f=t.meta.urlToken;return Object.assign({},e,{hotQuestions:Object.assign({},e.hotQuestions,Object(r.a)({},f,Object.assign({},e.hotQuestions[f],{isLoading:!1})))});case i.LOAD_ROUNDTABLE_HOT_QUESTIONS.success:var p,h=t.meta.urlToken,b=o.data,v=o.paging,m=b.map((function(e){var t=e.question,n=e.answers;return t?{question:{id:t.id},answers:n.map((function(e){return{id:e.id}}))}:null}));return Object.assign({},e,{hotQuestions:Object.assign({},e.hotQuestions,Object(r.a)({},h,Object.assign({},e.hotQuestions[h],{isLoading:!1,paging:v,data:l()(null===(p=e.hotQuestions[h])||void 0===p?void 0:p.data,m)})))});case i.LOAD_ROUNDTABLE_WARM_UP_CONTENTS.request:var g=t.meta.urlToken;return Object.assign({},e,{warmupContents:Object.assign({},e.warmupContents,Object(r.a)({},g,Object.assign({},e.warmupContents[g],{isLoading:!0})))});case i.LOAD_ROUNDTABLE_WARM_UP_CONTENTS.failure:var O=t.meta.urlToken;return Object.assign({},e,{warmupContents:Object.assign({},e.warmupContents,Object(r.a)({},O,Object.assign({},e.warmupContents[O],{isLoading:!1})))});case i.LOAD_ROUNDTABLE_WARM_UP_CONTENTS.success:var y=t.meta.urlToken,j=o.data,E=j.map((function(e){return{question:{id:e.id}}}));return Object.assign({},e,{warmupContents:Object.assign({},e.warmupContents,Object(r.a)({},y,Object.assign({},e.warmupContents[y],{isLoading:!1,data:E})))});case i.LOAD_ROUNDTABLE_HOT_DISCUSSIONS.request:var C=t.meta.urlToken;return Object.assign({},e,{hotDiscussions:Object.assign({},e.hotDiscussions,Object(r.a)({},C,Object.assign({},e.hotDiscussions[C],{isLoading:!0})))});case i.LOAD_ROUNDTABLE_HOT_DISCUSSIONS.failure:var w=t.meta.urlToken;return Object.assign({},e,{hotDiscussions:Object.assign({},e.hotDiscussions,Object(r.a)({},w,Object.assign({},e.hotDiscussions[w],{isLoading:!1})))});case i.LOAD_ROUNDTABLE_HOT_DISCUSSIONS.success:var T,_=t.meta.urlToken,S=o.paging,A=o.data,k=A.map((function(e){var t=e.question,n=e.answers,r=e.article;return t?{question:{id:t.id},answers:(null==n?void 0:n.map((function(e){return{id:e.id}})))||[]}:r?{article:{id:r.id}}:null}));return Object.assign({},e,{hotDiscussions:Object.assign({},e.hotDiscussions,Object(r.a)({},_,Object.assign({},e.hotDiscussions[_],{isLoading:!1,paging:S,data:l()(null===(T=e.hotDiscussions[_])||void 0===T?void 0:T.data,k)})))});case i.LOAD_ROUNDTABLE_SELECTED_CONTENTS.request:var R=t.meta.urlToken;return Object.assign({},e,{selectedContents:Object.assign({},e.selectedContents,Object(r.a)({},R,Object.assign({},e.selectedContents[R],{isLoading:!0})))});case i.LOAD_ROUNDTABLE_SELECTED_CONTENTS.failure:var I=t.meta.urlToken;return Object.assign({},e,{selectedContents:Object.assign({},e.selectedContents,Object(r.a)({},I,Object.assign({},e.selectedContents[I],{isLoading:!1})))});case i.LOAD_ROUNDTABLE_SELECTED_CONTENTS.success:var x,N=t.meta.urlToken,D=o.paging,P=o.data,L=P.map((function(e){var t=e.answer,n=e.article;return t?{answer:{id:t.id}}:n?{article:{id:n.id}}:null}));return Object.assign({},e,{selectedContents:Object.assign({},e.selectedContents,Object(r.a)({},N,Object.assign({},e.selectedContents[N],{isLoading:!1,paging:D,data:l()(null===(x=e.selectedContents[N])||void 0===x?void 0:x.data,L)})))});default:return e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(70),s=n.n(c),u=n(25),l=n.n(u),d=n(27),f=n.n(d),p=n(16),h=n.n(p),b=n(1),v=n.n(b),m=n(46),g=n(321),O=n(234);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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=[],E=function(e){l()(n,e);var t=y(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).handleKeyDown=function(t){if(e.isTopLayer()){var n=e.props.onKeyDown;if(n&&n(t),!t.defaultPrevented&&t.keyCode===O.a.TAB){t.preventDefault();var r=Object(m.findDOMNode)(s()(e));Object(g.c)(t.shiftKey?"prev":"next",r,(function(e){return e.filter((function(e){return"true"===e.contentEditable||!e.closest("[contentEditable]")}))}))}}},e}return a()(n,[{key:"componentDidMount",value:function(){j.push(this),window.addEventListener("keydown",this.handleKeyDown,!0),this.enterFocusZone()}},{key:"componentWillUnmount",value:function(){j.splice(j.indexOf(this),1),window.removeEventListener("keydown",this.handleKeyDown,!0),this.leaveFocusZone()}},{key:"enterFocusZone",value:function(){var e=this;this.prevActiveElement=document.activeElement,this.timeout=window.setTimeout((function(){var t=Object(m.findDOMNode)(e);t&&!t.contains(document.activeElement)&&Object(g.b)(t)}),100)}},{key:"leaveFocusZone",value:function(){clearTimeout(this.timeout),this.prevActiveElement&&!this.prevActiveElement.closest("[contentEditable]")&&Object(g.a)(this.prevActiveElement)}},{key:"isTopLayer",value:function(){return j[j.length-1]===this}},{key:"render",value:function(){return b.Children.only(this.props.children)}}]),n}(v.a.Component)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(378),o=n.n(r);function i(e,t,n){return t=t||0,n=n||e.size,new Promise((function(r,i){var a=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,c=new o.a.ArrayBuffer,s=new FileReader;s.onload=function(e){c.append(e.target.result);var t=c.end();r(t)},s.onerror=function(){i()},s.readAsArrayBuffer(a.call(e,t,n))}))}function a(e){return new Promise((function(t){if(e.size>52428800)return Promise.all([i(e,0,10485760),i(e,Math.floor(26214400),Math.floor(26214400)+10485760),i(e,41943040,52428800)]).then((function(n){return t(o.a.hash(n.join("")+e.size))}));i(e).then((function(e){return t(e)}))}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(2),h=n.n(p),b=n(1),v=n(321),m=n(234);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var O=function(e){s()(n,e);var t=g(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).handleKeyDown=function(t){var n=e.props,r=n.direction,o=n.selector,i=n.children;if(i.props.onKeyDown&&i.props.onKeyDown(t),!t.defaultPrevented){var a=null;if(("vertical"===r&&t.keyCode===m.a.ARROW_UP||"horizontal"===r&&t.keyCode===m.a.ARROW_LEFT)&&(a="prev"),("vertical"===r&&t.keyCode===m.a.ARROW_DOWN||"horizontal"===r&&t.keyCode===m.a.ARROW_RIGHT)&&(a="next"),a){t.preventDefault();var c=e.navigator;Object(v.c)(a,c,o&&function(){return Array.from(c.querySelectorAll(o))})}}},e}return a()(n,[{key:"render",value:function(){var e=this,t=this.props.children;return Object(b.cloneElement)(t,{onKeyDown:this.handleKeyDown,ref:function(n){e.navigator=n;var r=t.ref;"function"==typeof r&&r(n)}})}}]),n}(b.Component);O.propTypes={direction:h.a.oneOf(["vertical","horizontal"]),selector:h.a.string,children:h.a.element.isRequired},O.defaultProps={direction:"vertical"};var y=O},function(e,t,n){"use strict";var r=n(30),o=n.n(r),i=n(41),a=n.n(i),c=n(1),s=n(6),u=n.n(s),l=n(11),d=n(543),f=n(3),p=Object(c.forwardRef)((function(e,t){var n=e.className,r=e.large,i=a()(e,["className","large"]);return Object(f.c)(d.a,o()({as:l.c,className:u()("InputButton",n),large:r,ref:t},i))}));t.a=p},function(e,t,n){"use strict";var r=n(39),o=n.n(r),i=n(1),a=n(164);var c="function"==typeof Image,s={},u=c?a((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(i.useState)(t),r=o()(n,2),a=r[0],l=r[1];return c&&void 0===t&&u(e).then(l),a}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n(6),i=n.n(o);function a(e){var t=e.header,n=e.options,o=e.className,a=e.onRef,c=e.showOptions,s=void 0===c||c;return Object(r.c)("div",{className:i()("Topbar",o,void 0),ref:a,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 y}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(2),h=n.n(p),b=n(1),v=n(197),m=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var O=function(e){s()(n,e);var t=g(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={shown:!1},e.handleObserve=function(t){(t[0].isIntersecting||t[0].intersectionRatio>0)&&e.setState({shown:!0})},e}return a()(n,[{key:"render",value:function(){var e=this.props,t=e.placeholder,n=e.rootMargin,r=e.children;return this.state.shown?r:Object(m.c)(v.a,{rootMargin:n,onObserve:this.handleObserve,threshold:[0,.1]},t||Object(m.c)("div",{style:{height:"1px"}}))}}]),n}(b.Component);O.propTypes={placeholder:h.a.element,rootMargin:h.a.string},O.defaultProps={rootMargin:"200px"};var y=O},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 p}));var r=n(52),o=n(203),i=n(216),a=n(418),c=n(419),s=n(44),u=/(\w)\1*|''|'(''|[^'])+('|$)|./g,l=/^'([^]*?)'?$/,d=/''/g,f=/[a-zA-Z]/;function p(e,t){Object(s.a)(2,arguments);var n=String(t),l=Object(r.a)(e);if(!Object(a.a)(l))throw new RangeError("Invalid time value");var d=Object(i.a)(l),p=Object(c.a)(l,d),b=n.match(u).map((function(e){if("''"===e)return"'";var t=e[0];if("'"===t)return h(e);var n=o.a[t];if(n)return n(p,e,null,{});if(t.match(f))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e})).join("");return b}function h(e){return e.match(l)[1].replace(d,"'")}},function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).map((function(t){var n=e[t];return null!=n&&"".concat(t,"=").concat(encodeURIComponent(n))})).filter(Boolean).join("&")},c=function(e,t){return Object.keys(e).reduce((function(n,r){var o=e[r];return n[r]=t(o,r,e),n}),{})};function s(){return"undefined"!=typeof window}var u=0,l={},d={};s()&&(window.zhihuAppCallback=function(e,t){var n=JSON.parse(t),r=l[e]&&l[e][n.type];r&&r(n.params)});var f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.success,r=t.fail,o=t.complete,c=t.cancel,s=i(t,["success","fail","complete","cancel"]);u++,l[u]={success:n,complete:o,fail:r,cancel:c};var d=document.createElement("iframe");d.style.display="none";var f={callbackId:u,callback:"zhihuAppCallback",params:JSON.stringify(s)};d.src="".concat(e,"?").concat(a(f)),document.body.appendChild(d),setTimeout((function(){document.body.removeChild(d)}),0)},p=c({wechatAuth:"auth/wechat-auth",wechatPay:"order/wechat-pay",IAPPay:"order/iap-pay",pay:"order/pay",startRecord:"audio/start-record",stopRecord:"audio/stop-record",onVoiceRecordEnd:"audio/on-voice-record-end",playVoice:"audio/play-voice",stopVoice:"audio/stop-play-voice",onVoicePlayEnd:"audio/on-voice-play-end",uploadVoice:"audio/upload-voice",onShareDefault:"share/on-share-default",onShareWechatTimeLine:"share/on-share-wechat-timeline",onShareWechatSession:"share/on-share-wechat-session",shareToWechatSession:"share/share-to-wechat-session",shareToZhihuMessage:"share/share-to-zhihu-message",showShareActionSheet:"share/show-share-action-sheet"},(function(e){return"zhihujs://".concat(e)})),h=c(p,(function(e){return f.bind(void 0,e)})),b=new Promise((function(e,t){if(s()){var n=navigator.userAgent,o=document.querySelector('meta[name="inApp"]');if(Boolean(o)||/Zhihu/.test(n)||/osee2unifiedRelease/.test(n)||/Futureve/.test(n)){var a,c,u,l=setTimeout((function(){return t("需要更新到最新版的知乎 App 才能提供流畅的提问、回答和收听体验。")}),3e3);a={jsApiList:Object.values(p),success:function(t){clearTimeout(l),d=t,e()}},c=a.jsApiList,u=i(a,["jsApiList"]),f("zhihujs://config/check-js-api",r({},u,{jsApiList:c,success:function(e){e=e.checkResult||e,"function"==typeof u.success&&u.success(e)}}))}else t()}else t()}));b.catch((function(){}));var v=r({ready:b,supports:function(e){var t=p[e];return d[t]}},h);t.default=v},function(e,t,n){"use strict";var r=n(651);n.o(r,"animated")&&n.d(t,"animated",(function(){return r.animated})),n.o(r,"useSpring")&&n.d(t,"useSpring",(function(){return r.useSpring})),n.o(r,"useTransition")&&n.d(t,"useTransition",(function(){return r.useTransition}))},function(e,t,n){"use strict";var r=n(172);t.a=function(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:" ",a=e.getSelection(),c=e.getCurrentContent(),s=c.createEntity(t,n,o),u=s.getLastCreatedEntityKey(),l=r.EditorState.set(e,{currentContent:s}),d=(l=r.AtomicBlockUtils.insertAtomicBlock(l,u,i)).getCurrentContent(),f=d.getBlockMap(),p=a.getStartKey(),h=d.getBlockForKey(p);h!==f.first()&&0===h.getLength()&&(f=f.delete(p),d=d.merge({blockMap:f}));var b=l.getSelection().getFocusKey(),v=d.getBlockForKey(b);return v!==f.last()&&0===v.getLength()&&(f=f.delete(b),d=d.merge({blockMap:f,selectionAfter:r.SelectionState.createEmpty(d.getKeyAfter(b))})),l=r.EditorState.set(l,{currentContent:d}),r.EditorState.forceSelection(l,l.getCurrentContent().getSelectionAfter())}},function(e,t,n){var r=n(456);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){"use strict";var r=n(892),o=n(893);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=O,t.resolve=function(e,t){return O(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?O(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=O(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var a=/^([a-z0-9.+-]+:)/i,c=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(u),d=["%","/","?",";","#"].concat(l),f=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(60);function O(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),c=-1!==i&&i<e.indexOf("#")?"?":"#",u=e.split(c);u[0]=u[0].replace(/\\/g,"/");var O=e=u.join(c);if(O=O.trim(),!n&&1===e.split("#").length){var y=s.exec(O);if(y)return this.path=O,this.href=O,this.pathname=y[1],y[2]?(this.search=y[2],this.query=t?g.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var j=a.exec(O);if(j){var E=(j=j[0]).toLowerCase();this.protocol=E,O=O.substr(j.length)}if(n||j||O.match(/^\/\/[^@\/]+@[^@\/]+/)){var C="//"===O.substr(0,2);!C||j&&v[j]||(O=O.substr(2),this.slashes=!0)}if(!v[j]&&(C||j&&!m[j])){for(var w,T,_=-1,S=0;S<f.length;S++){-1!==(A=O.indexOf(f[S]))&&(-1===_||A<_)&&(_=A)}-1!==(T=-1===_?O.lastIndexOf("@"):O.lastIndexOf("@",_))&&(w=O.slice(0,T),O=O.slice(T+1),this.auth=decodeURIComponent(w)),_=-1;for(S=0;S<d.length;S++){var A;-1!==(A=O.indexOf(d[S]))&&(-1===_||A<_)&&(_=A)}-1===_&&(_=O.length),this.host=O.slice(0,_),O=O.slice(_),this.parseHost(),this.hostname=this.hostname||"";var k="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!k)for(var R=this.hostname.split(/\./),I=(S=0,R.length);S<I;S++){var x=R[S];if(x&&!x.match(p)){for(var N="",D=0,P=x.length;D<P;D++)x.charCodeAt(D)>127?N+="x":N+=x[D];if(!N.match(p)){var L=R.slice(0,S),M=R.slice(S+1),U=x.match(h);U&&(L.push(U[1]),M.unshift(U[2])),M.length&&(O="/"+M.join(".")+O),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),k||(this.hostname=r.toASCII(this.hostname));var B=this.port?":"+this.port:"",z=this.hostname||"";this.host=z+B,this.href+=this.host,k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==O[0]&&(O="/"+O))}if(!b[E])for(S=0,I=l.length;S<I;S++){var F=l[S];if(-1!==O.indexOf(F)){var G=encodeURIComponent(F);G===F&&(G=escape(F)),O=O.split(F).join(G)}}var V=O.indexOf("#");-1!==V&&(this.hash=O.substr(V),O=O.slice(0,V));var H=O.indexOf("?");if(-1!==H?(this.search=O.substr(H),this.query=O.substr(H+1),t&&(this.query=g.parse(this.query)),O=O.slice(0,H)):t&&(this.search="",this.query={}),O&&(this.pathname=O),m[E]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){B=this.pathname||"";var q=this.search||"";this.path=B+q}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=g.stringify(this.query));var c=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||m[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),c&&"?"!==c.charAt(0)&&(c="?"+c),t+i+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(c=c.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(O(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(o.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),a=0;a<r.length;a++){var c=r[a];n[c]=this[c]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),u=0;u<s.length;u++){var l=s[u];"protocol"!==l&&(n[l]=e[l])}return m[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!m[e.protocol]){for(var d=Object.keys(e),f=0;f<d.length;f++){var p=d[f];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||v[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var b=n.pathname||"",g=n.search||"";n.path=b+g}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var O=n.pathname&&"/"===n.pathname.charAt(0),y=e.host||e.pathname&&"/"===e.pathname.charAt(0),j=y||O||n.host&&e.pathname,E=j,C=n.pathname&&n.pathname.split("/")||[],w=(h=e.pathname&&e.pathname.split("/")||[],n.protocol&&!m[n.protocol]);if(w&&(n.hostname="",n.port=null,n.host&&(""===C[0]?C[0]=n.host:C.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),j=j&&(""===h[0]||""===C[0])),y)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,C=h;else if(h.length)C||(C=[]),C.pop(),C=C.concat(h),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(w)n.hostname=n.host=C.shift(),(k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=k.shift(),n.host=n.hostname=k.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!C.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=C.slice(-1)[0],_=(n.host||e.host||C.length>1)&&("."===T||".."===T)||""===T,S=0,A=C.length;A>=0;A--)"."===(T=C[A])?C.splice(A,1):".."===T?(C.splice(A,1),S++):S&&(C.splice(A,1),S--);if(!j&&!E)for(;S--;S)C.unshift("..");!j||""===C[0]||C[0]&&"/"===C[0].charAt(0)||C.unshift(""),_&&"/"!==C.join("/").substr(-1)&&C.push("");var k,R=""===C[0]||C[0]&&"/"===C[0].charAt(0);w&&(n.hostname=n.host=R?"":C.length?C.shift():"",(k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=k.shift(),n.host=n.hostname=k.shift()));return(j=j||n.host&&C.length)&&!R&&C.unshift(""),C.length?n.pathname=C.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=c.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){var r=n(457);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(163),o=n(326),i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=c.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){var r=n(262)(n(188),"Map");e.exports=r},function(e,t,n){var r=n(242),o=n(163);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(761),o=n(768),i=n(770),a=n(771),c=n(772);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=c,e.exports=s},function(e,t,n){var r=n(559);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){var r=n(163),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){var r=n(561)(Object.getPrototypeOf,Object);e.exports=r},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){(function(e){var r=n(551),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=c}).call(this,n(328)(e))},function(e,t,n){var r=n(264),o=n(334);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,c=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,c&&o(n[0],n[1],c)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t}))}},function(module,exports,__webpack_require__){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.A?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(exports,"__esModule",{value:!0});var A="2.0",__g={};function s(){}function i(e){this.t=(2048&e)>>11,this.s=(1536&e)>>9,this.i=511&e,this.h=511&e}function h(e){this.s=(3072&e)>>10,this.h=1023&e}function a(e){this.a=(3072&e)>>10,this.c=(768&e)>>8,this.n=(192&e)>>6,this.t=63&e}function c(e){this.s=e>>10&3,this.i=1023&e}function n(){}function e(e){this.a=(3072&e)>>10,this.c=(768&e)>>8,this.n=(192&e)>>6,this.t=63&e}function o(e){this.h=(4095&e)>>2,this.t=3&e}function r(e){this.s=e>>10&3,this.i=e>>2&255,this.t=3&e}s.prototype.e=function(e){e.o=!1},i.prototype.e=function(e){switch(this.t){case 0:e.r[this.s]=this.i;break;case 1:e.r[this.s]=e.k[this.h]}},h.prototype.e=function(e){e.k[this.h]=e.r[this.s]},a.prototype.e=function(e){switch(this.t){case 0:e.r[this.a]=e.r[this.c]+e.r[this.n];break;case 1:e.r[this.a]=e.r[this.c]-e.r[this.n];break;case 2:e.r[this.a]=e.r[this.c]*e.r[this.n];break;case 3:e.r[this.a]=e.r[this.c]/e.r[this.n];break;case 4:e.r[this.a]=e.r[this.c]%e.r[this.n];break;case 5:e.r[this.a]=e.r[this.c]==e.r[this.n];break;case 6:e.r[this.a]=e.r[this.c]>=e.r[this.n];break;case 7:e.r[this.a]=e.r[this.c]||e.r[this.n];break;case 8:e.r[this.a]=e.r[this.c]&&e.r[this.n];break;case 9:e.r[this.a]=e.r[this.c]!==e.r[this.n];break;case 10:e.r[this.a]=t(e.r[this.c]);break;case 11:e.r[this.a]=e.r[this.c]in e.r[this.n];break;case 12:e.r[this.a]=e.r[this.c]>e.r[this.n];break;case 13:e.r[this.a]=-e.r[this.c];break;case 14:e.r[this.a]=e.r[this.c]<e.r[this.n];break;case 15:e.r[this.a]=e.r[this.c]&e.r[this.n];break;case 16:e.r[this.a]=e.r[this.c]^e.r[this.n];break;case 17:e.r[this.a]=e.r[this.c]<<e.r[this.n];break;case 18:e.r[this.a]=e.r[this.c]>>>e.r[this.n];break;case 19:e.r[this.a]=e.r[this.c]|e.r[this.n];break;case 20:e.r[this.a]=!e.r[this.c]}},c.prototype.e=function(e){e.Q.push(e.C),e.B.push(e.k),e.C=e.r[this.s],e.k=[];for(var t=0;t<this.i;t++)e.k.unshift(e.f.pop());e.g.push(e.f),e.f=[]},n.prototype.e=function(e){e.C=e.Q.pop(),e.k=e.B.pop(),e.f=e.g.pop()},e.prototype.e=function(e){switch(this.t){case 0:e.u=e.r[this.a]>=e.r[this.c];break;case 1:e.u=e.r[this.a]<=e.r[this.c];break;case 2:e.u=e.r[this.a]>e.r[this.c];break;case 3:e.u=e.r[this.a]<e.r[this.c];break;case 4:e.u=e.r[this.a]==e.r[this.c];break;case 5:e.u=e.r[this.a]!=e.r[this.c];break;case 6:e.u=e.r[this.a];break;case 7:e.u=!e.r[this.a]}},o.prototype.e=function(e){switch(this.t){case 0:e.C=this.h;break;case 1:e.u&&(e.C=this.h);break;case 2:e.u||(e.C=this.h);break;case 3:e.C=this.h,e.w=null}e.u=!1},r.prototype.e=function(e){switch(this.t){case 0:for(var t=[],n=0;n<this.i;n++)t.unshift(e.f.pop());e.r[3]=e.r[this.s](t[0],t[1]);break;case 1:for(var r=e.f.pop(),o=[],i=0;i<this.i;i++)o.unshift(e.f.pop());e.r[3]=e.r[this.s][r](o[0],o[1]);break;case 2:for(var a=[],c=0;c<this.i;c++)a.unshift(e.f.pop());e.r[3]=new e.r[this.s](a[0],a[1])}};var k=function(e){for(var t=66,n=[],r=0;r<e.length;r++){var o=24^e.charCodeAt(r)^t;n.push(String.fromCharCode(o)),t=o}return n.join("")};function Q(e){this.t=(4095&e)>>10,this.s=(1023&e)>>8,this.i=1023&e,this.h=63&e}function C(e){this.t=(4095&e)>>10,this.a=(1023&e)>>8,this.c=(255&e)>>6}function B(e){this.s=(3072&e)>>10,this.h=1023&e}function f(e){this.h=4095&e}function g(e){this.s=(3072&e)>>10}function u(e){this.h=4095&e}function w(e){this.t=(3840&e)>>8,this.s=(192&e)>>6,this.i=63&e}function G(){this.r=[0,0,0,0],this.C=0,this.Q=[],this.k=[],this.B=[],this.f=[],this.g=[],this.u=!1,this.G=[],this.b=[],this.o=!1,this.w=null,this.U=null,this.F=[],this.R=0,this.J={0:s,1:i,2:h,3:a,4:c,5:n,6:e,7:o,8:r,9:Q,10:C,11:B,12:f,13:g,14:u,15:w}}Q.prototype.e=function(e){switch(this.t){case 0:e.f.push(e.r[this.s]);break;case 1:e.f.push(this.i);break;case 2:e.f.push(e.k[this.h]);break;case 3:e.f.push(k(e.b[this.h]))}},C.prototype.e=function(A){switch(this.t){case 0:var t=A.f.pop();A.r[this.a]=A.r[this.c][t];break;case 1:var s=A.f.pop(),i=A.f.pop();A.r[this.c][s]=i;break;case 2:var h=A.f.pop();A.r[this.a]=eval(h)}},B.prototype.e=function(e){e.r[this.s]=k(e.b[this.h])},f.prototype.e=function(e){e.w=this.h},g.prototype.e=function(e){throw e.r[this.s]},u.prototype.e=function(e){var t=this,n=[0];e.k.forEach((function(e){n.push(e)}));var r=function(r){var o=new G;return o.k=n,o.k[0]=r,o.v(e.G,t.h,e.b,e.F),o.r[3]};r.toString=function(){return"() { [native code] }"},e.r[3]=r},w.prototype.e=function(e){switch(this.t){case 0:for(var t={},n=0;n<this.i;n++){var r=e.f.pop();t[e.f.pop()]=r}e.r[this.s]=t;break;case 1:for(var o=[],i=0;i<this.i;i++)o.unshift(e.f.pop());e.r[this.s]=o}},G.prototype.D=function(e){for(var t=atob(e),n=t.charCodeAt(0)<<8|t.charCodeAt(1),r=[],o=2;o<n+2;o+=2)r.push(t.charCodeAt(o)<<8|t.charCodeAt(o+1));this.G=r;for(var i=[],a=n+2;a<t.length;){var c=t.charCodeAt(a)<<8|t.charCodeAt(a+1),s=t.slice(a+2,a+2+c);i.push(s),a+=c+2}this.b=i},G.prototype.v=function(e,t,n){for(t=t||0,n=n||[],this.C=t,"string"==typeof e?this.D(e):(this.G=e,this.b=n),this.o=!0,this.R=Date.now();this.o;){var r=this.G[this.C++];if("number"!=typeof r)break;var o=Date.now();if(500<o-this.R)return;this.R=o;try{this.e(r)}catch(e){this.U=e,this.w&&(this.C=this.w)}}},G.prototype.e=function(e){var t=(61440&e)>>12;new this.J[t](e).e(this)},"undefined"!=typeof window&&(new G).v("AxjgB5MAnACoAJwBpAAAABAAIAKcAqgAMAq0AzRJZAZwUpwCqACQACACGAKcBKAAIAOcBagAIAQYAjAUGgKcBqFAuAc5hTSHZAZwqrAIGgA0QJEAJAAYAzAUGgOcCaFANRQ0R2QGcOKwChoANECRACQAsAuQABgDnAmgAJwMgAGcDYwFEAAzBmAGcSqwDhoANECRACQAGAKcD6AAGgKcEKFANEcYApwRoAAxB2AGcXKwEhoANECRACQAGAKcE6AAGgKcFKFANEdkBnGqsBUaADRAkQAkABgCnBagAGAGcdKwFxoANECRACQAGAKcGKAAYAZx+rAZGgA0QJEAJAAYA5waoABgBnIisBsaADRAkQAkABgCnBygABoCnB2hQDRHZAZyWrAeGgA0QJEAJAAYBJwfoAAwFGAGcoawIBoANECRACQAGAOQALAJkAAYBJwfgAlsBnK+sCEaADRAkQAkABgDkACwGpAAGAScH4AJbAZy9rAiGgA0QJEAJACwI5AAGAScH6AAkACcJKgAnCWgAJwmoACcJ4AFnA2MBRAAMw5gBnNasCgaADRAkQAkABgBEio0R5EAJAGwKSAFGACcKqAAEgM0RCQGGAYSATRFZAZzshgAtCs0QCQAGAYSAjRFZAZz1hgAtCw0QCQAEAAgB7AtIAgYAJwqoAASATRBJAkYCRIANEZkBnYqEAgaBxQBOYAoBxQEOYQ0giQKGAmQABgAnC6ABRgBGgo0UhD/MQ8zECALEAgaBxQBOYAoBxQEOYQ0gpEAJAoYARoKNFIQ/zEPkAAgChgLGgkUATmBkgAaAJwuhAUaCjdQFAg5kTSTJAsQCBoHFAE5gCgHFAQ5hDSCkQAkChgBGgo0UhD/MQ+QACAKGAsaCRQCOYGSABoAnC6EBRoKN1AUEDmRNJMkCxgFGgsUPzmPkgAaCJwvhAU0wCQFGAUaCxQGOZISPzZPkQAaCJwvhAU0wCQFGAUaCxQMOZISPzZPkQAaCJwvhAU0wCQFGAUaCxQSOZISPzZPkQAaCJwvhAU0wCQFGAkSAzRBJAlz/B4FUAAAAwUYIAAIBSITFQkTERwABi0GHxITAAAJLwMSGRsXHxMZAAk0Fw8HFh4NAwUABhU1EBceDwAENBcUEAAGNBkTGRcBAAFKAAkvHg4PKz4aEwIAAUsACDIVHB0QEQ4YAAsuAzs7AAoPKToKDgAHMx8SGQUvMQABSAALORoVGCQgERcCAxoACAU3ABEXAgMaAAsFGDcAERcCAxoUCgABSQAGOA8LGBsPAAYYLwsYGw8AAU4ABD8QHAUAAU8ABSkbCQ4BAAFMAAktCh8eDgMHCw8AAU0ADT4TGjQsGQMaFA0FHhkAFz4TGjQsGQMaFA0FHhk1NBkCHgUbGBEPAAFCABg9GgkjIAEmOgUHDQ8eFSU5DggJAwEcAwUAAUMAAUAAAUEADQEtFw0FBwtdWxQTGSAACBwrAxUPBR4ZAAkqGgUDAwMVEQ0ACC4DJD8eAx8RAAQ5GhUYAAFGAAAABjYRExELBAACWhgAAVoAQAg/PTw0NxcQPCQ5C3JZEBs9fkcnDRcUAXZia0Q4EhQgXHojMBY3MWVCNT0uDhMXcGQ7AUFPHigkQUwQFkhaAkEACjkTEQspNBMZPC0ABjkTEQsrLQ==");var b=function(e){return __g._encrypt(encodeURIComponent(e))};exports.ENCRYPT_VERSION=A,exports.default=b},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Command=void 0,t.Command=r,function(e){e.increment="i",e.decrement="d",e.gauge="g",e.timing="t"}(r||(t.Command=r={}))},function(e,t,n){var r=n(366),o=n(804),i=n(374),a=n(805),c=n(807),s=n(557),u=n(372),l=n(808),d=n(810),f=n(579),p=n(472),h=n(335),b=n(813),v=n(814),m=n(560),g=n(135),O=n(332),y=n(818),j=n(163),E=n(820),C=n(289),w=n(333),T={};T["[object Arguments]"]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T["[object Object]"]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T["[object Function]"]=T["[object WeakMap]"]=!1,e.exports=function e(t,n,_,S,A,k){var R,I=1&n,x=2&n,N=4&n;if(_&&(R=A?_(t,S,A,k):_(t)),void 0!==R)return R;if(!j(t))return t;var D=g(t);if(D){if(R=b(t),!I)return u(t,R)}else{var P=h(t),L="[object Function]"==P||"[object GeneratorFunction]"==P;if(O(t))return s(t,I);if("[object Object]"==P||"[object Arguments]"==P||L&&!A){if(R=x||L?{}:m(t),!I)return x?d(t,c(R,t)):l(t,a(R,t))}else{if(!T[P])return A?t:{};R=v(t,P,I)}}k||(k=new r);var M=k.get(t);if(M)return M;k.set(t,R),E(t)?t.forEach((function(r){R.add(e(r,n,_,r,t,k))})):y(t)&&t.forEach((function(r,o){R.set(o,e(r,n,_,o,t,k))}));var U=D?void 0:(N?x?p:f:x?w:C)(t);return o(U||t,(function(r,o){U&&(r=t[o=r]),i(R,o,e(r,n,_,o,t,k))})),R}},function(e,t,n){var r=n(809),o=n(577),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=c},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(580),o=n(578),i=n(333);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(135),o=n(326),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(583);e.exports=function(e){return null==e?"":r(e)}},function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},function(e,t,n){var r=n(827),o=n(564),i=n(565);e.exports=function(e){return i(o(e,void 0,r),e+"")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareVersion=void 0;var r=n(585);t.compareVersion=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=r.parseVersionName(e),o=r.parseVersionName(t);return Number(n.major)-Number(o.major)!=0?Number(n.major)-Number(o.major)>0?1:-1:Number(n.minor)-Number(o.minor)!=0?Number(n.minor)-Number(o.minor)>0?1:-1:Number(n.patch)-Number(o.patch)!=0?Number(n.patch)-Number(o.patch)>0?1:-1:0}},function(e,t,n){var r=n(460),o=n(833),i=n(834);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(843),o=n(174);e.exports=function e(t,n,i,a,c){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,c))}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){var r=n(462),o=n(484);function i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(462),o=n(484);function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},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 i=n(340),a=n(165),c=n(266),s=n(175),u=n(382),l=n(245),d=n(86),f=n(293),p=n(228),h=n(488),b=d.List,v=d.Record,m=d.Repeat,g=l.draft_tree_data_support?s:c,O=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.getEntityMap=function(){return u},t.prototype.getBlockMap=function(){return this.get("blockMap")},t.prototype.getSelectionBefore=function(){return this.get("selectionBefore")},t.prototype.getSelectionAfter=function(){return this.get("selectionAfter")},t.prototype.getBlockForKey=function(e){return this.getBlockMap().get(e)},t.prototype.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},t.prototype.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},t.prototype.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},t.prototype.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},t.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray()},t.prototype.getFirstBlock=function(){return this.getBlockMap().first()},t.prototype.getLastBlock=function(){return this.getBlockMap().last()},t.prototype.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},t.prototype.getLastCreatedEntityKey=function(){return u.__getLastCreatedEntityKey()},t.prototype.hasText=function(){var e=this.getBlockMap();return e.size>1||e.first().getLength()>0},t.prototype.createEntity=function(e,t,n){return u.__create(e,t,n),this},t.prototype.mergeEntityData=function(e,t){return u.__mergeData(e,t),this},t.prototype.replaceEntityData=function(e,t){return u.__replaceData(e,t),this},t.prototype.addEntity=function(e){return u.__add(e),this},t.prototype.getEntity=function(e){return u.__get(e)},t.createFromBlockArray=function(e,n){var r=Array.isArray(e)?e:e.contentBlocks,o=i.createFromArray(r),a=o.isEmpty()?new f:f.createEmpty(o.first().getKey());return new t({blockMap:o,entityMap:n||u,selectionBefore:a,selectionAfter:a})},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(m(a.EMPTY,e.length))})}));return t.createFromBlockArray(o)},t}(v({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=O},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(87),o=null;function i(e){return"LTR"===e||"RTL"===e}function a(e){return i(e)||r(!1),"LTR"===e?"ltr":"rtl"}function c(e){o=e}var s={NEUTRAL:"NEUTRAL",LTR:"LTR",RTL:"RTL",isStrong:i,getHTMLDir:a,getHTMLDirIfDifferent:function(e,t){return i(e)||r(!1),i(t)||r(!1),e===t?null:a(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(86).Map,o=n(1),i=n(294),a=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:i("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:o.createElement("ol",{className:i("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:o.createElement("pre",{className:i("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=a},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(),i=t.getAnchorOffset();return i>0?(n=e.getBlockForKey(o).getEntityAt(i-1))!==e.getBlockForKey(o).getEntityAt(i)?null:r(e.getEntityMap(),n):null}var a=t.getStartKey(),c=t.getStartOffset(),s=e.getBlockForKey(a);return n=c===s.getLength()?null:s.getEntityAt(c),r(e.getEntityMap(),n)}},function(e,t,n){"use strict";var r=n(949);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(951),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(956),o=n(957);e.exports=function(e){var t=r(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=o(e),i=e===t?e.ownerDocument.documentElement:e,a=e.scrollWidth-i.clientWidth,c=e.scrollHeight-i.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,c)),n}},function(e,t,n){"use strict";var r=n(631);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(205).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(),i=n.getStartOffset(),a=o,c=0;if(t>i){var s=r.getKeyBefore(o);if(null==s)a=o;else a=s,c=r.getBlockForKey(s).getText().length}else c=i-t;return n.merge({focusKey:a,focusOffset:c,isBackward:!0})}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(501)),i=(r=n(840))&&r.__esModule?r:{default:r};var a=[(0,o.query)(),(0,o.bodyStringifier)(),(0,o.defaults)({credentials:"include"}),(0,o.headers)({"x-requested-with":"fetch"})],c=[(0,i.default)()];t.default=function(e,t){return void 0===t&&(t=[]),(0,o.default)(e,a.concat(t,c))}},function(e,t,n){"use strict";n.r(t),n.d(t,"baseUrl",(function(){return s})),n.d(t,"defaults",(function(){return u})),n.d(t,"headers",(function(){return l})),n.d(t,"query",(function(){return f})),n.d(t,"bodyStringifier",(function(){return p})),n.d(t,"xsrf",(function(){return b}));var r=n(60),o=n.n(r),i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}},a=/^(\w+:)?\/\//,c=/^data:[^,]*,/,s=function(e){return function(t){return function(n,r){return t(a.test(n)||c.test(n)?n:(o=n,[e.replace(/\/$/,""),o.replace(/^\//,"")].join("/")),r);var o}}},u=function(e){return void 0===e&&(e={}),function(t){return function(n,r){return void 0===r&&(r={}),t(n,Object.assign({},e,r,{headers:Object.assign({},e.headers,r.headers)}))}}},l=function(e){return u({headers:e})};function d(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var f=function(){return function(e){return function(t,n){var r=void 0===n?{}:n,i=r.query,a=d(r,["query"]);if("object"==typeof i){var c=o.a.stringify(i);if(c){var s=t.lastIndexOf("?");t+=(-1===s?"?":s===t.length-1?"":"&")+c}}return e(t,a)}}},p=function(){return function(e){return function(t,n){var r,i=void 0===n?{}:n,a=i.body,c=i.bodyType,s=d(i,["body","bodyType"]),u=null;return("object"==typeof(r=a)&&null!==r&&Object.getPrototypeOf(r)===Object.prototype||Array.isArray(a))&&("form"===c?(a=o.a.stringify(a),u={"content-type":"application/x-www-form-urlencoded"}):"json"!==c&&void 0!==c||(a=JSON.stringify(a),u={"content-type":"application/json"})),e(t,Object.assign({},s,{body:a,headers:Object.assign({},s.headers,u)}))}}},h=["DELETE","PATCH","POST","PUT"],b=function(e){var t=void 0===e?{}:e,n=t.cookieName,r=void 0===n?"_xsrf":n,o=t.headerName,i=void 0===o?"x-xsrftoken":o;return function(e){return function(t,n){var o,a;if(void 0===n&&(n={}),"undefined"!=typeof document&&n.method&&-1!==h.indexOf(n.method.toUpperCase())){var c,s=(a=r,(document.cookie.match(new RegExp(a+"=([^;]+)"))||[])[1]);if(s)(c={})[i]=s,o=c}return e(t,Object.assign({},n,{headers:Object.assign({},n.headers,o)}))}}};t.default=function(e,t){return void 0===t&&(t=[]),i.apply(void 0,t)(e)}},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e){var t="function"==typeof Map?new Map:void 0;return(o=function(e){if(null===e)return null;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return a(e,arguments,s(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)})(e)}function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function a(e,t,n){return(a=i()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&c(o,n.prototype),o}).apply(null,arguments)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.__esModule=!0,t.default=void 0;var u=function(e){var t,n;function o(t,n){var i,a=t.status,c=t.url,s="request "+c+(n?" with extra of "+JSON.stringify(n):"")+" failed, status: "+a;return i=e.call(this,s)||this,Object.setPrototypeOf&&Object.setPrototypeOf(r(r(i)),o.prototype),i.name="ResponseError",i.status=a,i.url=c,i.headers=Array.from(t.headers),i.extra=n,i}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o}(o(Error));t.default=u},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.r(t),n.d(t,"get",(function(){return o})),n.d(t,"responsive",(function(){return f})),n.d(t,"css",(function(){return p}));var o=function(e,t,n,r,o){for(t=t&&t.split?t.split("."):[t],r=0;r<t.length;r++)e=e?e[t[r]]:o;return e===o?n:e},i=[40,52,64].map((function(e){return e+"em"})),a={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},c={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},s={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},u={color:"colors",backgroundColor:"colors",borderColor:"colors",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",outlineColor:"colors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",fill:"colors",stroke:"colors"},l=function(e,t){if("number"!=typeof t||t>=0)return o(e,t,t);var n=Math.abs(t),r=o(e,n,n);return"string"==typeof r?"-"+r:-1*r},d=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce((function(e,t){var n;return r({},e,((n={})[t]=l,n))}),{}),f=function(e){return function(t){var n={},r=o(t,"breakpoints",i),a=[null].concat(r.map((function(e){return"@media screen and (min-width: "+e+")"})));for(var c in e){var s="function"==typeof e[c]?e[c](t):e[c];if(null!=s)if(Array.isArray(s))for(var u=0;u<s.slice(0,a.length).length;u++){var l=a[u];l?(n[l]=n[l]||{},null!=s[u]&&(n[l][c]=s[u])):n[c]=s[u]}else n[c]=s}return n}},p=function e(t){return function(n){void 0===n&&(n={});var i=r({},a,{},n.theme||n),l={},p="function"==typeof t?t(i):t,h=f(p)(i);for(var b in h){var v=h[b],m="function"==typeof v?v(i):v;if("variant"!==b)if(m&&"object"==typeof m)l[b]=e(m)(i);else{var g=o(c,b,b),O=o(u,g),y=o(i,O,o(i,g,{})),j=o(d,g,o)(y,m,m);if(s[g])for(var E=s[g],C=0;C<E.length;C++)l[E[C]]=j;else l[g]=j}else l=r({},l,{},e(o(i,m))(i))}return l}};t.default=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var r=n(1),o=n.n(r),i=n(59),a=n(31),c=n(6),s=n.n(c),u=n(11),l=n(2),d=n.n(l),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),v=Object.assign({},h,{title:d.a.string.isRequired}),m=Object.assign({},v,{},p),g=Object.assign({},h,{},f),O=Object.assign({},g,{},p),y=Object.assign({},g,{title:d.a.string.isRequired}),j=Object.assign({},y,{},p),E=n(3),C=o.a.memo((function(e){var t=e.className,r=e.image,o=e.title,c=e.content,l=e.buttonText,d=e.buttonOnClick,f=Object(i.f)().isDarkMode,p=Object(a.c)((function(){return n.e(10).then(n.bind(null,1353))})),h=r&&r.replace(/\b\w/g,(function(e){return e.toUpperCase()}))+(f?"Dark":""),b=p&&p[h],v=r&&b,m=s()("EmptyView-content",{"EmptyView-withTitle":Boolean(o)});return Object(E.c)("div",{className:s()("EmptyView-container",t)},Boolean(v)&&Object(E.c)("div",{className:"EmptyView--placeholder"}),Object(E.c)("div",{className:"EmptyView"},Boolean(v)&&Object(E.c)(v,null),Boolean(o)&&Object(E.c)("div",{className:"EmptyView-title"},o),Object(E.c)("div",{className:m},Boolean(c)&&Object(E.c)("div",null,c)),Boolean(l)&&Object(E.c)(u.c,{className:"EmptyView-button",onClick:d},l)),Boolean(v)&&Object(E.c)("div",{className:"EmptyView--placeholder"}))}));function w(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(E.c)(C,n)};return t.propTypes=e,t}var T={ET1:w(h),ET1A:w(b),ET2:w(v),ET2A:w(m),EI1:w(g),EI1A:w(O),EI2:w(y),EI2A:w(j)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),o=n(45),i=n(31),a=["answer","question","article","pin","zvideo","club_post","videoanswer"];var c=Object(o.withRouter)((function(e){var t=e.parent.type,o=a.includes(t),c=Object(i.c)((function(){return n.e(8).then(n.bind(null,1364))}),!o),s=Object(i.c)((function(){return n.e(8).then(n.bind(null,1358))}),o),u=o?s:c;return u?Object(r.b)(u,Object.assign({},e)):null}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){}},function(e,t,n){var r=n(608),o=n(337),i=n(264),a=n(331),c=i((function(e,t){return a(e)?r(e,o(t,1,a,!0)):[]}));e.exports=c},function(e,t,n){var r=n(475),o=n(334),i=n(454),a=Math.ceil,c=Math.max;e.exports=function(e,t,n){t=(n?o(e,t,n):void 0===t)?1:c(i(t),0);var s=null==e?0:e.length;if(!s||t<1)return[];for(var u=0,l=0,d=Array(a(s/t));u<s;)d[l++]=r(e,u,u+=t);return d}},function(e,t,n){e.exports=n.p+"assets/apple-touch-icon-152.a53ae37b.png"},function(e,t,n){var r,o,i;o=[t],void 0===(i="function"==typeof(r=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(e,"__esModule",{value:!0});var n=!1;if("undefined"!=typeof window){var r={get passive(){n=!0}};window.addEventListener("testPassive",null,r),window.removeEventListener("testPassive",null,r)}function o(e){return s.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))}function i(e){var t=e||window.event;return!!o(t.target)||1<t.touches.length||(t.preventDefault&&t.preventDefault(),!1)}function a(){setTimeout((function(){void 0!==f&&(document.body.style.paddingRight=f,f=void 0),void 0!==d&&(document.body.style.overflow=d,d=void 0)}))}var c="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&1<window.navigator.maxTouchPoints),s=[],u=!1,l=-1,d=void 0,f=void 0;e.disableBodyScroll=function(e,r){if(c){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!s.some((function(t){return t.targetElement===e}))){var a={targetElement:e,options:r||{}};s=[].concat(t(s),[a]),e.ontouchstart=function(e){1===e.targetTouches.length&&(l=e.targetTouches[0].clientY)},e.ontouchmove=function(t){var n,r,a,c;1===t.targetTouches.length&&(r=e,c=(n=t).targetTouches[0].clientY-l,o(n.target)||(r&&0===r.scrollTop&&0<c||(a=r)&&a.scrollHeight-a.scrollTop<=a.clientHeight&&c<0?i(n):n.stopPropagation()))},u||(document.addEventListener("touchmove",i,n?{passive:!1}:void 0),u=!0)}}else{h=r,setTimeout((function(){if(void 0===f){var e=!!h&&!0===h.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth;e&&0<t&&(f=document.body.style.paddingRight,document.body.style.paddingRight=t+"px")}void 0===d&&(d=document.body.style.overflow,document.body.style.overflow="hidden")}));var p={targetElement:e,options:r||{}};s=[].concat(t(s),[p])}var h},e.clearAllBodyScrollLocks=function(){c?(s.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),u&&(document.removeEventListener("touchmove",i,n?{passive:!1}:void 0),u=!1),s=[],l=-1):(a(),s=[])},e.enableBodyScroll=function(e){if(c){if(!e)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");e.ontouchstart=null,e.ontouchmove=null,s=s.filter((function(t){return t.targetElement!==e})),u&&0===s.length&&(document.removeEventListener("touchmove",i,n?{passive:!1}:void 0),u=!1)}else(s=s.filter((function(t){return t.targetElement!==e}))).length||a()}})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){e.exports=n.p+"assets/liukanshan_coin.29bf8333.svg"},function(e,t,n){e.exports=n.p+"assets/liukanshan_paper.d98ba9b2.svg"},function(e,t,n){e.exports=n.p+"assets/liukanshan_loudspeaker.292ada3b.svg"},function(e,t,n){var r=n(1006)();e.exports=r},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return j}));var r=n(22),o=n.n(r),i=n(70),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(253),h=n.n(p);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var v="testing"===e.env.ZAE_ENV?"dev":"com";function m(){return"https://api.zhihu.".concat(v)}var g=function(e){s()(n,e);var t=b(n);function n(e,r){var i;return o()(this,n),i=t.call(this,e),Object.defineProperty(a()(i),"name",{value:"ResponseError"}),i.status=r,i}return n}(h()(Error));function O(e){return e.status>=200&&e.status<300}function y(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")}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object.assign({},t,{credentials:"include"});var n=e;return/^(https?:)?\/\//i.test(e)||(n="".concat(m()).concat(e)),fetch(n,t).then((function(e){return O(e)?y(e)?e.json():e.text():y(e)?e.json().then((function(t){return Promise.reject(Object.assign(new g("".concat(e.status),e.status),t))})):e.text().then((function(){return Promise.reject(new g("".concat(e.status),e.status))}))}))}}).call(this,n(285))},function(e,t,n){"use strict";n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return E}));var r=n(218);function o(e){var t=e.error;e.subscriber.error(t)}var i=n(142),a=n(157);function c(e,t){return function(n){return n.lift(new s(e,t))}}var s=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.predicate,this.thisArg))},e}(),u=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return i.a(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(a.a);function l(){}var d=n(273);function f(e,t,n){return function(r){return r.lift(new h(e,t,n))}}var p,h=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new b(e,this.nextOrObserver,this.error,this.complete))},e}(),b=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;return i._tapNext=l,i._tapError=l,i._tapComplete=l,i._tapError=r||l,i._tapComplete=o||l,Object(d.a)(n)?(i._context=i,i._tapNext=n):n&&(i._context=n,i._tapNext=n.next||l,i._tapError=n.error||l,i._tapComplete=n.complete||l),i}return i.a(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(a.a),v=(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.then=function(e,n){return t.toPromise().then(e,n)},t.catch=function(e){return t.toPromise().catch(e)},t}return v(t,e),t.cast=function(e){var n=new t;return n.source=e,n},t}(r.a),g=n(182),O=n.n(g),y=function(e){var t=String(e);return t.length<2?"0"+t:t},j=function(){function e(e){this.adapter=e,this.handled={}}return e.prototype.connect=function(){this.adapter.connect()},e.prototype.disconnect=function(){this.adapter.disconnect()},e.prototype.onDispatch=function(e){var t=this;return this.adapter.messages.pipe(c((function(t){return"dispatch"===t.type&&t.payload.action===e})),f((function(e){return t.adapter.log("incoming",e)})))},e.prototype.onCallback=function(e){var t=this;return this.adapter.messages.pipe(c((function(t){return"callback"===t.type&&t.id===e})),f((function(e){return t.adapter.log("incoming",e)})))},e.prototype.dispatch=function(e,t){void 0===t&&(t=null);try{return this._dispatch(e,t)}catch(e){return m.cast(function(e,t){return t?new r.a((function(n){return t.schedule(o,0,{error:e,subscriber:n})})):new r.a((function(t){return t.error(e)}))}(e))}},e.prototype._dispatch=function(e,t){var n=this,o=O()(),i={type:"dispatch",id:o,payload:{action:e,params:t}};this.adapter.log("outgoing",i),this.adapter.postMessage(i);var a=r.a.create((function(e){var t=null,r=n.onCallback(o).subscribe((function(n){var r=n.payload,o=r.type,i=r.result;switch(o){case"next":t=i,e.next(i);break;case"complete":JSON.stringify(i)!==JSON.stringify(t)&&e.next(i),e.complete();break;case"error":e.error(i)}}));return function(){r.unsubscribe()}}));return m.cast(a)},e.prototype.callback=function(e,t,n){void 0===n&&(n=null);var r={type:"callback",id:e,payload:{type:t,result:n}};this.adapter.log("outgoing",r),this.adapter.postMessage(r)},e.prototype.listen=function(e,t){this.adapter.log("listen",e);var n=this.onDispatch(e).subscribe((function(e){t(e.payload.params)}));return function(){return n.unsubscribe()}},e.prototype.handle=function(e,t){var n=this;if(this.handled[e])throw new Error('Action "'+e+'" is already handled by anthor handler.');this.handled[e]=!0,this.adapter.log("handle",e);var r=this.onDispatch(e).subscribe((function(e){var r,o=e.id;try{r=t(e.payload.params)}catch(e){return void n.callback(o,"error",e)}if(r&&r.then)r.then((function(e){n.callback(o,"complete",e)}),(function(e){n.callback(o,"error",e)}));else if(r&&r.subscribe){var i=null;r.subscribe({next:function(e){i=e,n.callback(o,"next",e)},complete:function(){return n.callback(o,"complete",i)},error:function(e){return n.callback(o,"error",e)}})}else r&&n.callback(o,"complete",r)}));return function(){n.handled[e]=!1,r.unsubscribe()}},e}(),E=function(){function e(){}return e.prototype.connect=function(){},e.prototype.disconnect=function(){},e.prototype.log=function(e,t){if("undefined"!=typeof console&&console.log&&"undefined"!=typeof JSON&&JSON.stringify){var n,r,o=(n=Date.now(),(r=new Date(n)).getFullYear()+"-"+y(r.getMonth()+1)+"-"+y(r.getDate())+" "+y(r.getHours())+":"+y(r.getMinutes())+":"+y(r.getSeconds()));"incoming"!==e&&"outgoing"!==e||"string"==typeof t?"listen"!==e&&"handle"!==e||console.log("["+o+"][ZhihuBridge/Event:"+e+"]\nevent: "+t):console.log("["+o+"][ZhihuBridge/Message:"+e+"]\ntype: "+t.type+"\nid: "+t.id+"\npayload: "+JSON.stringify(t.payload))}},e}()},function(e,t,n){"use strict";var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(30),h=n.n(p),b=n(41),v=n.n(b),m=n(2),g=n.n(m),O=n(1),y=n(46),j=n(6),E=n.n(j),C=n(185),w=n(430),T=n(99),_=n(431),S=(n(614),n(3));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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var k=function(e){s()(n,e);var t=A(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={placement:e.props.placement},e.position=function(){var t=e.props,n=t.target,r=t.container,o=t.placement,i=t.fixed,a=t.boundary;if(e.element&&n){var c=n instanceof HTMLElement?n:Object(y.findDOMNode)(n),s=document.body;r&&(s=r instanceof HTMLElement?r:Object(y.findDOMNode)(r));var u=Object(w.a)(c.getBoundingClientRect(),Object(_.a)(a,s),e.element.getBoundingClientRect(),o);i||(u.targetContainerStyle.left+=window.pageXOffset,u.targetContainerStyle.top+=window.pageYOffset),e.setState(u)}},e.handleRef=function(t){e.element=t,e.props.onRef(t)},e.handleAfterEnter=function(){e.position()},e}return a()(n,[{key:"componentDidMount",value:function(){this.props.listenResize&&window.addEventListener("resize",this.position)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.target,r=t.repositionKey;e.target===n&&e.repositionKey===r||requestAnimationFrame(this.position)}},{key:"componentWillUnmount",value:function(){this.props.listenResize&&window.removeEventListener("resize",this.position)}},{key:"render",value:function(){var e=this.props,t=e.isOpen,n=e.arrowed,r=e.fixed,o=e.children,i=e.className,a=v()(e,["isOpen","arrowed","fixed","children","className","placement","repositionKey","onRef","listenResize","target","container","boundary"]),c=this.state,s=c.arrowStyle,u=c.targetContainerStyle,l=c.placement,d=t&&Object(S.c)("div",h()({className:E()(i,"Popover-content","Popover-content--".concat(l),{"Popover-content--fixed":r,"Popover-content--arrowed":n}),ref:this.handleRef,style:u},a),n&&Object(S.c)("span",{className:E()("Popover-arrow","Popover-arrow--".concat(l)),style:s}),o);return Object(S.c)(C.a,{onAfterEnter:this.handleAfterEnter,transitionName:"Popover-content",timeout:200},d)}}]),n}(O.Component);k.propTypes={isOpen:g.a.bool,arrowed:g.a.bool,fixed:g.a.bool,placement:g.a.oneOf(Object.keys(T).map((function(e){return T[e]}))),repositionKey:g.a.string,onRef:g.a.func,listenResize:g.a.bool,container:g.a.object,boundary:g.a.shape({getElement:g.a.func,padding:g.a.number,getBoundaryInfo:g.a.func})},k.defaultProps={isOpen:!1,arrowed:!1,fixed:!1,placement:"bottom",onRef:function(){}},t.a=k},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return b}));var r=n(32),o=n(0),i=n(14),a=function(e){var t=e.children,n=Object(r.a)(e,["children"]);return Object(o.b)(i.Flex,Object.assign({alignItems:"center",justifyContent:"center",flex:1,height:"100%"},n,{children:Object(o.b)(i.Text,{textAlign:"center",color:"GBL05A",children:t})}))},c=n(1),s=n.n(c),u=n(65);Object.assign;Object.assign;n(397),Object.assign;var l=Object.assign;var d=function(e){return s.a.createElement(u.a,l({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"})))},f=Object.assign;var p=function(e){return s.a.createElement(u.a,f({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"}))},h=Object.assign;var b=function(e){return s.a.createElement(u.a,h({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"}))};Object.assign;Object.assign;Object.assign},function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var r=n(7),o=n(8),i=n(9),a=n(10),c=n(5),s=n(0),u=n(1),l=n.n(u),d=n(2),f=n.n(d),p=n(6),h=n.n(p),b=n(120),v=n(11),m=n(58),g=n(447),O=n(20),y=function(e){return l.a.createElement(O.a,e,l.a.createElement("path",{d:"M13.004 7V4.232c0-.405.35-.733.781-.733.183 0 .36.06.501.17l6.437 5.033c.331.26.376.722.1 1.033a.803.803 0 0 1-.601.264H2.75a.75.75 0 0 1-.75-.75V7.75A.75.75 0 0 1 2.75 7h10.254zm-1.997 9.999v2.768c0 .405-.35.733-.782.733a.814.814 0 0 1-.5-.17l-6.437-5.034a.702.702 0 0 1-.1-1.032.803.803 0 0 1 .6-.264H21.25a.75.75 0 0 1 .75.75v1.499a.75.75 0 0 1-.75.75H11.007z",fillRule:"evenodd"}))};y.defaultProps={name:"Switch"};var j=y;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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}var C={normal:{text:"默认排序",value:"reverse"},reverse:{text:"时间排序",value:"normal"}},w=function(e){Object(i.a)(n,e);var t=E(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={text:"时间排序",value:"normal"},e.switchType=function(t){var n=e.state.value,r=e.props.onOrderChange,o=C[n],i=o.text,a=o.value;e.setState({text:i,value:a}),r&&r(a,t)},e}return Object(o.a)(n,[{key:"render",value:function(){var e=this.state.text,t=this.props,n=t.isConversation,r=t.commentClosed;return t.shouldReverse?!n&&!r&&Object(s.b)(v.c,{preset:"plain",onClick:this.switchType,icon:j,label:"切换为".concat(e)}):null}}]),n}(u.Component);w.propTypes={isConversation:f.a.bool,commentClosed:f.a.bool,onOrderChange:f.a.func,shouldReverse:f.a.bool};var T=n(1101);function _(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}var S=function(e){Object(i.a)(n,e);var t=_(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.commentPattern,n=e.onNavBack;return Object(s.b)("h2",{className:"CommentTopbar-title",children:"bottom"!==t?Object(s.c)(v.c,{className:"CommentTopbar-back",preset:"plain",onClick:n,children:[Object(s.b)(T.a,{text:!0,center:!0})," 返回评论"]}):Object(s.b)("div",{children:"查看对话"})})}}]),n}(u.Component);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}S.propTypes={commentPattern:f.a.string,onNavBack:f.a.func};var k=function(e){Object(i.a)(n,e);var t=A(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).renderTopBarSwitch=function(){var t=e.props,n=t.isMobile,r=t.status,o=t.isConversation,i=t.commentCount,a=t.onOrderChange,c=t.commentClosed,u=t.shouldReverse;return!n&&Boolean(i&&!c)&&"reviewing"!==r&&Object(s.b)(w,{isConversation:o,onOrderChange:a,commentClosed:c,shouldReverse:u})},e}return Object(o.a)(n,[{key:"renderTitle",value:function(){var e=this.props,t=e.commentCount,n=e.commentClosed,r=e.isConversation,o=e.onNavBack,i=e.targetLink,a=e.isCommentReviewer,c=e.reviewingCounts,l=e.onStatusChange,d=e.status,f=e.commentPattern,p=e.isOrg,g=e.isMobile;return r?Object(s.b)(S,{commentPattern:f,onNavBack:o}):a&&!n?Object(s.c)("div",{className:"CommentTopbar-tabsWrapper",children:[Object(s.c)(b.b,{className:"CommentTopbar-tabs",children:[Object(s.b)(b.a,{className:"CommentTopbar-tab","aria-controls":"CommentTopbar-open",meta:Object(m.formatNumber)(t),children:Object(s.b)(v.c,{className:h()("CommentTopbar-tabButton",{"is-active":"open"===d}),onClick:function(){return l("open")},children:"公开评论"})}),!g&&Object(s.b)(b.a,{className:"CommentTopbar-tab","aria-controls":"CommentTopbar-reviewing",meta:void 0===c?null:Object(m.formatNumber)(c),children:Object(s.b)(v.c,{className:h()("CommentTopbar-tabButton",{"is-active":"reviewing"===d}),onClick:function(){return l("reviewing")},children:"待".concat(p?"审核":"筛选","评论")})})]}),i]}):Object(s.b)(u.Fragment,{children:Object(s.c)("h2",{className:"CommentTopbar-title",children:[t&&!n?"".concat(Object(m.formatNumber)(t)," 条评论"):"还没有评论",i]})})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.onRef,r=e.isMobile;return Object(s.b)(g.a,{className:h()("CommentTopbar",t),onRef:n,header:this.renderTitle(),options:this.renderTopBarSwitch(),showOptions:!r})}}]),n}(u.Component);k.propTypes={commentCount:f.a.oneOfType([f.a.number,f.a.string]),isConversation:f.a.bool,onNavBack:f.a.func,isCommentReviewer:f.a.bool,onStatusChange:f.a.func,onOrderChange:f.a.func,status:f.a.string,reviewingCounts:f.a.oneOfType([f.a.number,f.a.string]),targetLink:f.a.node,commentClosed:f.a.bool,commentPattern:f.a.string,isOrg:f.a.bool,isMobile:f.a.bool,options:f.a.element,shouldReverse:f.a.bool},k.defaultProps={shouldReverse:!0}},function(e,t,n){"use strict";var r=n(39),o=n.n(r),i=n(30),a=n.n(i),c=n(41),s=n.n(c),u=n(1),l=n.n(u),d=n(6),f=n.n(d),p=n(12),h=n(69),b=n.n(h),v=n(21),m=n(83),g=n(58),O=n(36),y=n(534),j=n(95),E=n(295),C=n(448),w=n(178),T=n(385),_=n(3);function S(e){var t=Object(u.useRef)(null),n=e.component,r=void 0===n?"a":n,o=e.className,i=e.onClick,a=e.onMouseDown,c=e.zvideo,s=e.enableInlinePlay,d=void 0!==s&&s,h=e.onImageClick,v=void 0===h?b.a:h,E=e.onInfoClick,T=void 0===E?b.a:E,S=c.id,k=c.title,R=c.url,I=c.imageUrl,x=c.video,N=x.videoId,D=x.duration,P=x.status,L=c.author,M=c.playCount,U=!R?"inlinezvideo":"zvideo";Object(u.useEffect)((function(){Object(m.onViewedOnce)(t.current,(function(){p.a.trackCardShow(t.current,{id:7844},{button:{text:U}})}))}),[U]);var B=Object(u.useCallback)((function(e){p.a.trackEvent(e.target,{id:7846,action:"OpenUrl"},{button:{text:U}}),v(e,c)}),[v,c,U]),z=Object(u.useCallback)((function(e){p.a.trackEvent(e.target,{id:7847,action:"OpenUrl"},{button:{text:U}}),T(e,c)}),[T,c,U]);return"converting_failure"===P?Object(_.c)(A,{error:"视频转码失败,请重新上传视频"}):Object(_.c)(l.a.Fragment,null,Object(_.c)(O.c,{as:r,shouldTrackClick:!0,shouldTrackShow:!0,zaAction:"OpenUrl",zaEventType:"Click",zaBlock:"ZTextZVideoLinkCard",zaType:"Button",extra:{link:{url:R}},className:f()("ZVideoLinkCard",o),ref:t,href:R,target:"_blank",rel:"noopener noreferrer",onClick:i,onMouseDown:a,"data-za-not-track-link":!0,"data-za-module":"Content","data-za-module-info":JSON.stringify({card:{content:{type:"Zvideo",token:S,video_id:N}}})},d?Object(_.c)(C.a,{placeholder:Object(_.c)("div",{className:"ZVideoLinkCard-playerContainer"})},Object(_.c)("div",{className:"ZVideoLinkCard-playerContainer"},Object(_.c)("iframe",{className:"ZVideoLinkCard-player",frameBorder:0,allowFullScreen:!0,src:"https://www.zhihu.com/video/".concat(N)}))):Object(_.c)("div",{className:"ZVideoLinkCard-image",style:{backgroundImage:"url(".concat(I,")")},onClick:B},Object(_.c)(w.a,{className:"ZVideoLinkCard-playIcon"}),Boolean(D)&&Object(_.c)("div",{className:"ZVideoLinkCard-duration"},Object(y.a)(D))),Object(_.c)("div",{className:"ZVideoLinkCard-info",onClick:z},Object(_.c)("div",{className:"ZVideoLinkCard-title"},k),Boolean(R)&&Object(_.c)("div",{className:"ZVideoLinkCard-author"},Object(_.c)(j.a,{className:"ZVideoLinkCard-avatar",url:L.avatarUrl,alt:"",size:20,round:!0}),Object(_.c)("div",null,L.name,"的视频"),Boolean(M)&&Object(_.c)("div",null," · ",Object(g.cnNiceNumber)(M),"播放")))))}function A(e){var t=e.error;return Object(_.c)("div",{className:"ZVideoLinkErrorCard"},Object(_.c)("div",{className:"ZVideoLinkErrorCard-message"},t.message||"视频加载错误"))}function k(e){var t=e.id,n=e.shouldUseOldLinkCard,r=s()(e,["id","shouldUseOldLinkCard"]),i=Object(u.useState)(null),c=o()(i,2),l=c[0],d=c[1],f=Object(u.useState)(null),p=o()(f,2),h=p[0],b=p[1];return Object(u.useEffect)((function(){if(n){var e="https://www.zhihu.com/api/v4/zvideos/".concat(t,"/card");Object(E.a)(e).then((function(e){return Object(v.camelizeKeys)(e)})).then((function(e){e.error?b(e.error):d(e)})).catch((function(e){b(e)}))}}),[n,t]),n?h?Object(_.c)(A,{error:h}):l?Object(_.c)(S,a()({zvideo:l},r)):null:Object(_.c)(T.a,a()({inEditor:!0,component:"div",href:"https://www.zhihu.com/zvideo/".concat(t)},r))}k.defaultProps={shouldUseOldLinkCard:!0};t.a=k},function(e,t,n){var r=n(600);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){e.exports=n(107)(312)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(40),o=n.n(r);function i(){return o.a.get("lastuser")||o.a.get("lastuser:email")}function a(e){o.a.set("lastuser",e)}},function(e,t,n){var r=n(576),o=n(335),i=n(330),a=n(135),c=n(243),s=n(332),u=n(329),l=n(373),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(c(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||s(e)||l(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(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";n.d(t,"b",(function(){return ie})),n.d(t,"a",(function(){return ae}));var r=n(39),o=n.n(r),i=n(1),a=n.n(i),c=n(21),s=n(83),u=n(68),l=n.n(u),d=n(1094),f=n(1084),p=n(36),h=n(12),b=n(69),v=n.n(b),m=n(6),g=n.n(m),O=n(533),y=n(30),j=n.n(y),E=n(41),C=n.n(E),w=n(22),T=n.n(w),_=n(24),S=n.n(_),A=n(25),k=n.n(A),R=n(27),I=n.n(R),x=n(16),N=n.n(x),D=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N()(e);if(t){var o=N()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return I()(this,n)}}var L=function(e){k()(n,e);var t=P(n);function n(){return T()(this,n),t.apply(this,arguments)}return S()(n,[{key:"render",value:function(){return Object(D.c)("svg",{width:"30",height:"30",viewBox:"0 0 66 66",xmlns:"http://www.w3.org/2000/svg",className:"CircleLoadingBar","aria-hidden":"true"},Object(D.c)("g",null,Object(D.c)("circle",{className:"path",fill:"none",strokeWidth:"6",strokeLinecap:"round",cx:"33",cy:"33",r:"30"})))}}]),n}(i.Component),M=n(659);var U=function(e){var t=e.className,n=e.url,r=e.source,o=C()(e,["className","url","source"]),i="苏宁"===r?"拼购":"",a="目前".concat(r,"暂不支持在电脑端购买").concat(i,"商品");return Object(D.c)(M.a,j()({className:g()("QRCodeModal",t)},o),Object(D.c)("div",{className:"QRCodeModal-title"},"用知乎 App 扫码查看"),Object(D.c)("div",{className:"QRCodeModal-tip"},a),Object(D.c)("div",{className:"QRCodeModal-qrcode"},Object(D.c)(L,null),Object(D.c)("img",{src:"https://www.zhihu.com/qrcode?url=".concat(encodeURIComponent(n))})))},B=n(123),z=n(59);var F=function(e){return Object(D.c)("svg",j()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 12",fill:"currentColor"},e),Object(D.c)("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 G={hotel:"酒店",ticket:"门票"},V=Object.keys(G);var H={name:"1rguia",styles:"display:flex;padding:14px;"},q={name:"1c8iba8",styles:"flex:1;margin-left:12px;overflow:hidden;"},K={name:"gg4vpm",styles:"display:flex;justify-content:space-between;"},W={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 Q(e){var t,n,r,o=e.onRef,i=e.data,a=e.titleRightArea,c=i.imgUrl,s=i.title,u=i.priceText,l=i.areaName,d=Object(z.e)();return Object(D.c)("div",{css:H,ref:o},Object(D.c)("img",{src:c,css:Object(B.a)([{width:75,height:100,borderRadius:6,flexShrink:0,objectFit:"cover"},d],"")}),Object(D.c)("div",{css:q},Object(D.c)("div",{css:K},Object(D.c)("div",{css:function(e){return Object.assign({color:e.colors.GBK02A,fontSize:15,fontWeight:e.fontWeights.bold,lineHeight:1.2,height:36},Object(z.d)(2))}},s),a),Object(D.c)("div",{css:function(e){return{color:e.colors.GBK05A,fontSize:12,marginTop:4,fontWeight:e.fontWeights.bold,height:16,lineHeight:"16px"}}},(n=(t=i).source,r=t.productTypeName,[n,G[r]].filter(Boolean).join(" · "))),Object(D.c)("div",{css:function(e){return{display:"flex",alignItems:"center",color:e.colors.GRD08A,marginTop:8,height:18,lineHeight:"18px"}}},Object(D.c)("div",{css:function(e){return{fontSize:15,fontWeight:e.fontWeights.bold}}},u," ",Object(D.c)("span",{css:W},"起")),Object(D.c)("div",{role:"button",css:function(e){return{marginLeft:"auto",cursor:"pointer",fontSize:13,fontWeight:e.fontWeights.bold}}},"去购买 ",Object(D.c)(f.a,{size:16,center:!0}))),Object(D.c)("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(D.c)(F,{width:"12",height:"12",css:Object(B.a)({flexShrink:0,marginTop:-1,marginRight:2},"")}),Object(D.c)("span",{css:Y},l))))}var Z=Object(i.forwardRef)((function(e,t){return Object(D.c)(Q,j()({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 X=function(e){return Object(D.c)("svg",j()({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Object(D.c)("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"}))},$=n(158),ee=n(42);var te=function(e){var t,n,r,o,i,a,c=e.id,s=e.bottomInfo,u=function(e,t){var n;e&&(t.preventDefault(),t.stopPropagation(),(l()(null===(n=navigator)||void 0===n?void 0:n.userAgent)||{}).ZhihuHybrid?ee.a.dispatch("base/openURL",{url:e}):window.open(e))};return Object(D.c)(p.b,{content:{id:c,type:"GoodsRecommend"}},Object(D.c)(p.e,{zaText:!0,as:"div",zaType:"Card",zaBlock:"goodsRecommendCardBottomInfo",className:"BottomInfo"},Object(D.c)(p.a,{as:"div",zaText:!0,zaAction:"OpenUrl",zaBlock:"icon",zaType:"Button",extra:{link:{url:null===(t=s.icon)||void 0===t?void 0:t.clickUrl}},onClick:function(e){var t;return u(null===(t=s.icon)||void 0===t?void 0:t.clickUrl,e)}},Object(D.c)("img",{src:null===(n=s.icon)||void 0===n?void 0:n.iconUrl,alt:""}),Object(D.c)("span",null,null===(r=s.icon)||void 0===r?void 0:r.iconText)),Object(D.c)(p.a,{as:"span",zaText:!0,zaAction:"OpenUrl",zaBlock:"text",zaType:"Text",extra:{link:{url:null===(o=s.text)||void 0===o?void 0:o.clickUrl}},onClick:function(e){var t;return u(null===(t=s.text)||void 0===t?void 0:t.clickUrl,e)}},null===(i=s.text)||void 0===i?void 0:i.text,(null===(a=s.text)||void 0===a?void 0:a.clickUrl)&&Object(D.c)(f.a,null))))},ne=function(e){var t=e.id,n=e.image,r=e.title,o=e.price,i=void 0===o?"0.00":o,a=e.sourceList,c=void 0===a?[]:a,s=e.bottomInfo,u=e.isContent,d=Object($.versionControl)(l.a,{IOS:"7.8.0",ANDROID:"7.4.0"}),f=l()(navigator.userAgent),h=f.Mobile,b=f.Android,v=f.iOS,m=f.ZhihuHybrid,O=h?d&&m&&v?"zhihu://goods/bottom_sheet_hybrid?url=https://www.zhihu.com/grapp/select/method?page=paperBook&paperBookCardId=".concat(t):d&&m&&b?"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):"";return Object(D.c)(p.b,{as:"div",className:"AssociatedCard",block:"polymericCard",content:{type:"GoodsRecommend",id:t},extra:{link:{url:O}}},Object(D.c)(p.e,{as:"div",className:"AssociatedCard-cardContainer",shouldTrackShow:!0,shouldTrackClick:!0,zaType:"Card",zaText:r,zaAction:"OpenUrl",zaEventType:"Click",extra:{link:{url:O}}},Object(D.c)("div",{className:g()("AssociatedCard-imageBox")},Object(D.c)("img",{className:"AssociatedCard-image",src:n,alt:""})),Object(D.c)("div",{className:"AssociatedCard-main"},Object(D.c)("div",{className:"AssociatedCard-title"},r),Object(D.c)("div",{className:"AssociatedCard-tool"},Object(D.c)("div",{className:"AssociatedCard-price"},Object(D.c)("span",null,i),Object(D.c)("span",{className:"AssociatedCard-priceQi"},"起")),Object(D.c)("div",{className:"AssociatedCard-sources"},c.length&&c.map((function(e,t){return t>2?null:Object(D.c)("img",{key:e,className:"AssociatedCard-sourceLogo",src:J[e],alt:""})})),Object(D.c)("span",{className:"AssociatedCard-sourceLength",style:{display:c.length>3?"inline-flex":"none"}},c.length),Object(D.c)(X,{size:17,css:function(e){var t;return{color:null===(t=e.colors)||void 0===t?void 0:t.GRD08A}}}))))),s&&u&&Object(D.c)(te,{id:t,bottomInfo:s}))},re=n(2),oe=n.n(re),ie={CONTENT:0,MENTION_IN_CONTENT:1,SHOWCASE:2,LIVING_THEATER:3},ae={EDITOR:"editor",CONTENT:"content"},ce=1,se={"淘宝":"taobao","天猫":"tmall","京东":"jingdong","京东自营":"jingdongSale","知乎":"zhihu","美团酒旅":"meituanhotel","苏宁":"suning","有赞":"youzan"};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 le(e){var t=e.source,n=e.producer,r=e.price,o=e.zhihuVipText,i=e.isInvalidCard;if(null===r)return null;var a="¥ ".concat(ue(r)).concat("网络文学"===n?"/千字":"");return o?Object(D.c)("div",{className:"MCNLinkCard-VIPPrice"},Object(D.c)("span",{className:"MCNLinkCard-VIPPriceHint"},o),Object(D.c)("span",{className:"MCNLinkCard-originalPrice"},a)):Object(D.c)("div",{className:g()("MCNLinkCard-price",{"MCNLinkCard-price--invalid":i})},"拼多多"===t&&Object(D.c)("span",{className:"MCNLinkCard-pricePrefix"},"拼团价"),Object(D.c)("span",null,a))}function de(e,t){var n=Object(i.useState)(null),r=o()(n,2),u=r[0],b=r[1],m=Object(i.useState)(!1),y=o()(m,2),j=y[0],E=y[1],C=e.component,w=void 0===C?"a":C,T=e.id,_=e.scenes,S=void 0===_?ie.CONTENT:_,A=e.className,k=e.onClick,R=e.onMouseDown,I=e.refetchKey,x=e.onData,N=void 0===x?v.a:x,P=e.processResponse,L=e.getUrl,M=e.buttonText,B=e.fetcher,z=void 0===B?O.a:B,F=e.fetcherOptions,G=e.cardShowHandler,H=e.disableZa,q=e.titleRightArea,K=e.position,W=void 0===K?ae.CONTENT:K,Y=e.zaBlock,Q=e.goodsRecommendCards,J=Object(i.useRef)(null);if(Object(i.useEffect)((function(){if(null!==I)if(Q){var e=Q[T]||{};b(Object(c.camelizeKeys)(e))}else{var t=L?L(T):"https://www.zhihu.com/api/v4/mcn/linkcard/".concat(T,"?scenes=").concat(S);z(t,F).then((function(e){var t=P?P(e):Object(c.camelizeKeys)(e.data);b(t),N(t)})).catch((function(){}))}}),[T,S,b,N,I,L,P,z,F,Q]),Object(i.useEffect)((function(){J.current&&!H&&Object(s.onViewedOnce)(J.current.parentNode,(function(){h.a.trackCardShow(J.current.parentNode,{id:6108},{button:{text:J.current.parentNode.dataset.zaExtraButtonText}})}))}),[G,u,H]),!u)return Object(D.c)(w,{ref:t,className:g()("MCNLinkCard","MCNLinkCard-placeholder",A),"data-draft-node":"block","data-draft-type":"mcn-link-card"});var X,$=u.url,ee=u.title,re=u.imgUrl,oe=u.price,de=u.source,fe=u.children,pe=u.productTypeName,he=u.goodsType,be=u.producer,ve=u.authorText,me=u.zhihuButtonText,ge=u.zhihuVipText,Oe=u.appSchemaAndroid,ye=u.appSchemaIos,je=u.subtitle,Ee=u.status,Ce=u.banClick,we=u.description,Te=u.bottomInfo,_e=null,Se="square",Ae=M||"去购买",ke=!0,Re=!1,Ie=!1;(W===ae.EDITOR&&Ee===ce||"red_packet"===pe&&Ce)&&(Re=!0),"知乎"===de&&(_e=be,Se="rectangle",Ae=me||"去查看",X=ve);var xe=de;X&&(xe=X),"有赞"===de&&"store"===pe&&(ke=!1,Ae="去浏览"),"red_packet"===pe&&(Ae="去领取",ke=!1,Ie=!0);var Ne=["天猫","京东自营"].includes(xe)?"1":void 0,De=V.includes(pe),Pe=fe&&fe.length&&[se[xe]].concat(fe.map((function(e){return se[e.source]})))||[],Le=fe&&fe.length&&fe.reduce((function(e,t){return parseInt((null==e?void 0:e.price)||0)>parseInt((null==t?void 0:t.price)||0)?t:e})),Me=parseInt((null==Le?void 0:Le.price)||0)>parseInt(oe||0)?parseInt(oe||0):parseInt((null==Le?void 0:Le.price)||0),Ue=fe&&fe.length?Object(D.c)(ne,{cardElementRef:J,id:T,image:re,title:ee,price:"¥ ".concat(ue(Me)),sourceList:Pe,isContent:W===ae.CONTENT,bottomInfo:Te}):De?Object(D.c)(Z,{data:u,ref:J,titleRightArea:q}):Object(D.c)("div",{className:"MCNLinkCard-card",ref:J},Object(D.c)("div",{className:"MCNLinkCard-cardContainer"},Object(D.c)("div",{className:g()("MCNLinkCard-imageContainer","MCNLinkCard-imageContainer--".concat(Se),{"MCNLinkCard-imageContainer--invalid":Re,"MCNLinkCard-redPacketImageContainer":Ie})},Object(D.c)("img",{className:"MCNLinkCard-image",src:re,alt:""}),_e&&Object(D.c)("div",{className:"MCNLinkCard-tagInImage"},_e)),Object(D.c)("div",{className:"MCNLinkCard-info"},Object(D.c)("div",{className:"MCNLinkCard-titleContainer"},Object(D.c)("div",{className:g()("MCNLinkCard-title",{"MCNLinkCard-title--invalid":Re,"MCNLinkCard-redPacketTitle":Ie})},ee),q),Ie&&we&&Object(D.c)("div",{className:"MCNLinkCard-desc"},we),!Ie&&Object(D.c)("div",{className:g()("MCNLinkCard-source",{"MCNLinkCard-source--invalid":Re})},je||xe),Object(D.c)("div",{className:"MCNLinkCard-tool"},Object(D.c)("div",{className:"MCNLinkCard-toolLeft"},Ie&&Object(D.c)("div",{className:"MCNLinkCard-redEvenlope-time"},je),ke&&Object(D.c)(le,{source:de,producer:be,price:oe,zhihuVipText:ge,isInvalidCard:Re})),Re?Object(D.c)("div",{className:"MCNLinkCard-invalidButton",role:"button"},Object(D.c)(d.a,{size:17,center:!0}),Object(D.c)("span",null,"已失效")):Object(D.c)("div",{className:"MCNLinkCard-button",role:"button"},Ae,Object(D.c)(f.a,{size:17,center:!0}))))),Te&&W===ae.CONTENT&&Object(D.c)(te,{id:T,bottomInfo:Te}));return Object(D.c)(a.a.Fragment,null,j&&Object(D.c)(U,{url:$,source:de,onClose:function(){return E(!1)}}),Object(D.c)(p.b,{block:"goodsRecommendCard",content:{type:"GoodsRecommend",id:T},extra:{link:{url:$}}},Object(D.c)(p.c,{shouldTrackShow:!0,shouldTrackClick:!0,extra:{link:{url:$}},zaAction:"OpenUrl",zaBlock:Y,zaType:"Card",zaText:ee,zaEventType:"Click",as:w,ref:t,className:g()("MCNLinkCard",A),"data-draft-node":"block","data-draft-type":"mcn-link-card","data-mcn-id":u.id,"data-mcn-skuid":u.skuid,"data-mcn-source":u.source,"data-mcn-goods-type":u.goodsType,"data-mcn-app-schema-android":Oe,"data-mcn-app-schema-ios":ye,"data-mcn-children":fe&&fe.length||0,"data-za-detail-view-name":u.id,"data-za-extra-button-text":Ne,"data-za-not-track-link":!0,href:$,target:"_blank",rel:"noopener noreferrer",onClick:function(e){if(!H&&h.a.trackEvent(e.currentTarget,{id:6208,action:"Click"},{button:{text:e.currentTarget.dataset.zaExtraButtonText}}),Ie&&Re)e.preventDefault();else if(k&&k(e),!e.defaultPrevented){var t=l()(navigator.userAgent),n=t.Tablet,r=t.Mobile;"拼多多"!==de||n||r||(e.preventDefault(),E(!0)),"苏宁"!==de||"苏宁拼购"!==he||n||r||(e.preventDefault(),E(!0))}},onMouseDown:R},Ue)))}de.prototype={component:oe.a.element,id:oe.a.number,className:oe.a.string,onClick:oe.a.func};t.c=a.a.forwardRef(de)},function(e,t,n){"use strict";function r(e){var t,n,r=window.URL||window.webkitURL;try{n=document.createElement("video"),t=r.createObjectURL(e)}catch(e){}return new Promise((function(e){var r=setTimeout((function(){e(0)}),1e3);n.addEventListener("loadeddata",(function(){clearTimeout(r),e(n.duration?n.duration:0)})),n.src=t}))}n.d(t,"g",(function(){return r})),n.d(t,"h",(function(){return o})),n.d(t,"i",(function(){return i})),n.d(t,"f",(function(){return a})),n.d(t,"e",(function(){return c})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return d}));function o(e){var t=arguments.length>1&&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),i=0,a=0,c=[],s=document.createElement("canvas"),u=s.getContext("2d"),l=function(){a=r.duration/(t-1),r.currentTime=i};r.addEventListener("loadeddata",l);r.addEventListener("seeked",(function e(){!function(){if(u){var e=r.videoWidth,t=r.videoHeight;s.width=e,s.height=t,u.drawImage(r,0,0,e,t),c.push({url:s.toDataURL("image/jpeg")})}}(),(i+=a)<=r.duration?r.currentTime=i:(r.removeEventListener("loadeddata",l),r.removeEventListener("seeked",e),n(c))})),r.src=o}else n([])}))}var i=function(){return"undefined"!=typeof window&&!/Maxthon/.test(window.navigator.userAgent)},a={reprint:"reprint",original:"original"},c=[{value:a.reprint,label:"转载"},{value:a.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"],u=2147483648,l=102400,d=3600},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return c}));var r=n(19),o={isChatMqttExisted:!1},i=Object(r.b)("chatGlobal",["SET_CHAT_MQTT_STATUS"]);function a(e){return{type:i.SET_CHAT_MQTT_STATUS,meta:{status:e}}}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1?arguments[1]:void 0;if(t.type===i.SET_CHAT_MQTT_STATUS){var n=t.meta.status;return Object.assign({},e,{isChatMqttExisted:n})}return e}},function(e,t,n){"use strict";function r(e){n.e(12).then(n.t.bind(null,1038,7)).then((function(t){t.createMqttClient(e)}))}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=function(e,t){var n,r,o,i,a=0;return function(){n=this,r=arguments;var e=new Date-a;return i||(e>=t?c():i=setTimeout(c,t-e)),o};function c(){i=0,a=+new Date,o=e.apply(n,r),n=null,r=null}}},function(e,t,n){"use strict";var r=n(17),o=n(0),i=n(1),a=n(91),c=n.n(a),s=n(13),u=n(169),l=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 l(c()((function(t){var a=t.hasData,c=Object(i.useState)(!1),l=Object(r.a)(c,2),d=l[0],f=l[1],p=Object(s.useDispatch)();return Object(i.useEffect)((function(){a?f(!0):p(Object(u.d)()).then((function(e){var t=e.payload.data[0].id;p(Object(u.e)(t)),f(!0)})).catch((function(){f(!0)}))}),[p,a]),(!d||!n)&&Object(o.b)(e,Object.assign({},t))}),e))}}},function(e,t,n){"use strict";e.exports=n(916)},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";function r(e){var t=String(e);return t.length<2&&(t="0"+t),t}t.a=function(e){if(!Number.isFinite(e))return"";var t=(e=Math.floor(e))%60,n=Math.floor(e/60);return"".concat(r(n),":").concat(r(t))}},function(e,t,n){"use strict";var r=n(7),o=n(8),i=n(9),a=n(10),c=n(5),s=n(0),u=n(1),l=n(13),d=n(23),f=n(2),p=n.n(f),h=n(6),b=n.n(h),v=n(308),m=n.n(v),g=n(31),O=n(36),y=n(169),j=n(37),E=n(75),C=n(259),w=n(17),T=n(192);function _(e){var t,n,r,o,i,a,c,l,d,f=e.className,p=e.emoticonGroupList,h=e.curEmoticonGroupId,v=e.onGroupSelected,m=e.vipEnabled,O=Object(u.useRef)(),y=Object(T.a)(m,p),j=(t=O,n=Object(u.useState)({left:null,x:null}),r=Object(w.a)(n,2),o=r[0],i=r[1],a=Object(u.useState)(!1),c=Object(w.a)(a,2),l=c[0],d=c[1],{onMouseDown:Object(g.b)((function(e){var n;d(!0);var r=null===(n=t.current)||void 0===n?void 0:n.scrollLeft,o=e.clientX;i({left:r,x:o}),e.preventDefault()})),onMouseMove:Object(g.b)((function(e){if(l){var n=e.clientX-o.x;t.current&&(t.current.scrollLeft=o.left-n)}})),onMouseUp:Object(g.b)((function(){l&&d(!1)}))});return Object(s.b)("div",{className:b()("EmoticonsFooter",f),children:Object(s.b)("ul",Object.assign({className:"EmoticonsFooter-items",ref:O},j,{children:y.map((function(e){return Object(s.b)("li",{className:b()("EmoticonsFooter-item",{"EmoticonsFooter-item--selected":h===e.id}),onClick:function(){v(e.id)},children:Object(s.b)("img",{src:e.iconUrl,className:"EmoticonsFooter-itemIcon"})},e.id)}))}))})}var S=n(540);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}var k=function(e){Object(i.a)(n,e);var t=A(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).handleMouseEnter=function(e,t){e.dynamicImageUrl&&(t.target.src=e.dynamicImageUrl)},e.handleMouseLeave=function(e,t){e.dynamicImageUrl&&(t.target.src=e.staticImageUrl)},e.handleSelectEmoticon=function(t,n){(0,e.props.onSelectEmoticon)(t,n)},e}return Object(o.a)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.type,r=t.data,o=void 0===r?[]:r;return 0===o.length?Object(s.b)(S.a,{className:"EmoticonPanel-spinner"}):Object(s.b)("ul",{className:"EmoticonPanel",children:o.map((function(t){return Object(s.c)(O.a,{zaType:"Button",zaText:t.title,zaEventType:"Click",zaBlock:"vip"===n?"VipEmoticon":"Emoticon",as:"li",className:b()("EmoticonPanel-item",{"EmoticonPanel-item--big":"emoji"!==n}),onClick:function(){e.handleSelectEmoticon(t,n)},children:[Object(s.b)("img",{src:t.staticImageUrl,title:"emoji"===n?t.title:"",className:b()({"EmoticonPanel-itemImg--small":"emoji"===n,"EmoticonPanel-itemImg--big":"emoji"!==n}),onMouseOver:function(n){e.handleMouseEnter(t,n)},onMouseOut:function(n){e.handleMouseLeave(t,n)},alt:t.title}),"emoji"!==n&&Object(s.b)("span",{className:"EmoticonPanel-itemTitle",children:t.title})]},t.id)}))})}}]),n}(u.Component);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}k.propTypes={type:p.a.string.isRequired,data:p.a.array.isRequired,onSelectEmoticon:p.a.func.isRequired};var I=function(e){Object(i.a)(n,e);var t=R(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).getCurEmoticonGroupPanleData=function(){var t=e.props,n=t.curEmoticonGroupId;return t.emoticonPanelList.filter((function(e){return e.groupId===n}))},e}return Object(o.a)(n,[{key:"render",value:function(){var e=this.props,t=e.changeSelectedEmoticonPanel,n=e.curEmoticonPanelId,r=e.className,o=this.getCurEmoticonGroupPanleData();return o.length<=1?null:Object(s.b)("ul",{className:b()("EmoticonPagination",r),children:o.map((function(e){return Object(s.b)("li",{className:b()("EmoticonPagination-bullet",{"EmoticonPagination-bullet--active":e.id===n}),onClick:function(){t(e.id)}},e.id)}))})}}]),n}(u.Component);I.propsTypes={className:p.a.string};var x=Object(l.connect)((function(e){var t=e.emoticons;return{curEmoticonGroupId:t.curEmoticonGroupId,emoticonPanelList:t.emoticonPanelList,curEmoticonPanelId:t.curEmoticonPanelId}}),{changeSelectedEmoticonPanel:y.b})(I),N=n(4),D=n(1084);function P(e){var t=e.show,n=e.onClick,r=Object(g.b)((function(){null==n||n()}));return t&&Object(s.c)(O.a,{zaType:"Button",zaEventType:"Click",zaAction:"OpenUrl",zaBlock:"VipBrand",extra:{link:{url:C.a}},css:function(e){return Object(N.a)({backgroundColor:e.colorMod(e.colors.GYL08A).alpha(.25),color:e.colors.GYL12A,display:"flex",alignItems:"center",justifyContent:"center",height:"25px",fontSize:"12px",lineHeight:"17px",userSelect:"none"},"&:hover",{cursor:"pointer"})},onClick:r,children:["开通会员解锁全部会员表情 ",Object(s.b)(D.a,{})]})}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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}var M={containerClass:"Emoticons-panelContainer",ContainerEl:"ul",threshold:10},U=function(e){Object(i.a)(n,e);var t=L(n);function n(e){var o;return Object(r.a)(this,n),(o=t.call(this,e)).state={showVipStickerModal:!1},o.setShowVipStickerModal=function(e){o.setState({showVipStickerModal:e})},o.handleGetSwiperInstance=function(e){o.mousetrap=new m.a,o.swiperInstance=e,o.mousetrap.bind("left",(function(){e.slidePrev()})),o.mousetrap.bind("right",(function(){e.slideNext()}))},o.handleEmoticonGroupSelected=function(e){var t=o.props,n=t.getEmoticonsDetail,r=t.emoticonGroupDetail,i=t.changeSelectedEmoticonGroup,a=t.changeSelectedEmoticonPanel;r[e]||n(e),i(e),a("".concat(e,"-0"))},o.handleSlideChange=function(){var e=o.props,t=e.emoticonPanelList,n=e.getEmoticonsDetail,r=e.changeSelectedEmoticonPanel,i=e.changeSelectedEmoticonGroup;if(o.swiperInstance){var a=t[o.swiperInstance.activeIndex];r(a.id),i(a.groupId),0===a.data.length&&n(a.groupId)}},o.handleRequestVip=function(){o.setShowVipStickerModal(!0)},o.handleSelectEmoticon=function(e,t){var n=o.props,r=n.onSelectEmoticon,i=n.isVip;"vip"!==t||i?r(e,t):o.handleRequestVip()},o.swiperInstance=Object(u.createRef)(),o}return Object(o.a)(n,[{key:"componentWillUnmount",value:function(){var e=this.props,t=e.changeSelectedEmoticonGroup,n=e.changeSelectedEmoticonPanel,r=e.emoticonPanelList;t(r[0].groupId),n(r[0].id),this.mousetrap.reset()}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.emoticonGroupList,o=void 0===r?[]:r,i=t.curEmoticonGroupId,a=t.emoticonPanelList,c=t.curEmoticonPanelId,u=t.isVip,l=t.vipEnabled,d=void 0!==l&&l,f=t.Swiper,p=this.state.showVipStickerModal,h=this.setShowVipStickerModal,v=Object(T.a)(d,a);return Object(s.b)(O.b,{block:"EmoticonsCard",children:Object(s.c)("div",{className:b()("Emoticons",n),children:[f?Object(s.b)(f,Object.assign({},M,{activeSlideKey:c,getSwiper:this.handleGetSwiperInstance,on:{slideChange:this.handleSlideChange},children:v.map((function(t){return Object(s.b)("li",{className:"Emoticons-panels-item",children:Object(s.b)(k,{type:t.type,data:t.data,onSelectEmoticon:e.handleSelectEmoticon})},t.id)}))})):Object(s.b)("div",{css:{height:183}}),Object(s.b)(x,{className:"Emoticons-Pagination"}),Object(s.b)(P,{show:d&&!u,onClick:this.handleRequestVip}),Object(s.b)(_,{emoticonGroupList:o,curEmoticonGroupId:i,onGroupSelected:this.handleEmoticonGroupSelected,vipEnabled:d}),Object(s.b)(C.c,{show:p,setShow:h,type:C.b.comment_sticker})]})})}}]),n}(u.Component);U.propTypes={className:p.a.string,onSelectEmoticon:p.a.func};t.a=Object(d.compose)(Object(l.connect)((function(e){var t=e.emoticons,n=t.emoticonGroupList,r=t.curEmoticonGroupId,o=t.emoticonGroupDetail,i=t.emoticonPanelList;return{emoticonGroupList:n,curEmoticonGroupId:r,emoticonGroupDetail:o,emoticonPanelList:void 0===i?[]:i,curEmoticonPanelId:t.curEmoticonPanelId,isVip:Object(j.h)(e)}}),{getEmoticonsDetail:y.e,changeSelectedEmoticonGroup:y.a,changeSelectedEmoticonPanel:y.b}),Object(E.a)(null),(function(e){return function(t){var r=Object(g.c)((function(){return n.e(15).then(n.t.bind(null,1347,7))}));return Object(s.b)(e,Object.assign({},t,{Swiper:r}))}}))(U)},function(e,t,n){"use strict";var r=n(7),o=n(8),i=n(9),a=n(10),c=n(5),s=n(0),u=n(1),l=n.n(u),d=n(23),f=n(2),p=n.n(f),h=n(13),b=n(45),v=n(6),m=n.n(v),g=n(73),O=n(11),y=n(1095),j=n(1088),E=n(1059),C=n(1096),w=n(1053),T=n(1097),_=n(1098),S=n(1099),A=n(20),k=function(e){return l.a.createElement(A.a,e,l.a.createElement("path",{d:"M11.31.813c2.475.403 3.584 2.211 2.827 5.746l-.062.275-.043.173h3.689c2.17 0 3.694 1.704 3.487 3.798l-.024.197-.034.194-.145.732-.025.102-1.823 6.32c-.4 1.384-1.741 2.601-3.085 2.841l-.184.027-.126.007-.166-.001-8.152-.638-.15-.018-.149-.03-.014-.004H3.385a2.612 2.612 0 0 1-2.591-2.277l-.016-.169-.005-.165V9.615A2.612 2.612 0 0 1 3.219 7.01l.166-.006h2.904l.103-.123.476-.59c1.413-1.77 1.883-2.496 2.082-3.3l.025-.11.04-.207c.025-.153.034-.269.037-.365a1.638 1.638 0 0 1 1.52-1.524c.215-.021.463-.016.738.029zm-.324 1.936l-.012.097-.049.3c-.221 1.193-.677 2.016-2.09 3.824l-.2.253-.613.767-.21.255-.187.21V18.63l8.078.632h.032c.463-.052 1.126-.584 1.425-1.178l.062-.138.048-.14 1.809-6.259.145-.732c.2-1.007-.38-1.77-1.36-1.838l-.143-.005h-4.988a.97.97 0 0 1-.935-1.304l.022-.067.015-.046.217-.718c.817-2.888.38-3.802-.943-4.065l-.123-.022zM5.75 18.57V8.966l-2.365.001a.648.648 0 0 0-.642.553l-.007.095v8.308c0 .325.24.595.553.641l.096.007H5.75z"}))};k.defaultProps={name:"LikeOutline"};var R=k,I=function(e){return l.a.createElement(A.a,e,l.a.createElement("path",{d:"M11.93 2C6.447 2 2 6.446 2 11.93 2 17.438 6.467 22 11.93 22c.986 0 2.163-.252 3.548-.745a2.6 2.6 0 0 1 1.556-.059l2.454.67a1.936 1.936 0 0 0 2.377-2.378l-.669-2.453a2.6 2.6 0 0 1 .06-1.557c.492-1.385.744-2.562.744-3.547C22 6.467 17.437 2 11.93 2zm0 2C16.343 4 20 7.581 20 11.93c0 .725-.206 1.69-.63 2.878l-.085.268a4.6 4.6 0 0 0-.018 2.485l.638 2.344-2.344-.638a4.6 4.6 0 0 0-2.753.104c-1.188.423-2.153.629-2.877.629C7.58 20 4 16.342 4 11.93A7.93 7.93 0 0 1 11.93 4z"}))};I.defaultProps={name:"SpeechBalloonOutline"};var x=I,N=n(36),D=n(104),P=n(114),L=n(35),M=n(81),U=n(309),B=n(124),z=n(143),F=n(74),G=n(181),V=n(657),H=n(32),q=n(15),K=n(46),W=n(207),Y=n(56),Q=n(156);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}var J=function(e){Object(i.a)(n,e);var t=Z(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={previewImg:null},e.handlePreview=function(t){var n=t.target,r=e.props.onPreviewImage;"function"==typeof r?r(t).catch((function(){e.setState({previewImg:n})})):e.setState({previewImg:n})},e}return Object(o.a)(n,[{key:"mount",value:function(){var e=this;this.imagesGifNode=this.root.getElementsByClassName("comment_gif"),this.imagesNode=this.root.getElementsByClassName("comment_img"),this.imagesStickerNode=this.root.getElementsByClassName("comment_sticker"),this.imgNode=this.root.getElementsByClassName("origin_image zh-lightbox-thumb"),this.imagesNodes=Array.from([].concat(Object(q.a)(this.imagesGifNode),Object(q.a)(this.imagesNode),Object(q.a)(this.imagesStickerNode),Object(q.a)(this.imgNode))).map((function(t){var n=t.dataset||{},r=n.width,o=n.height,i=n.rawwidth,a=n.rawheight,c=Number(r||i),s=Number(o||a),u=document.createElement("div");u.className="Richtext-content_img",t.parentNode.replaceChild(u,t);var l=t.getAttribute("href")||t.getAttribute("src"),d=new Image,f=t.getAttribute("class");return"comment_sticker"!==f&&u.addEventListener("click",e.handlePreview),d.className=f,d.src=l,d.dataset.original=Object(Y.imgUrl)(l,"r"),d.dataset.rawwidth=c,d.onload=function(){c===s||"comment_sticker"===f?u.classList.add("Richtext-content_img-square"):c>s?u.classList.add("Richtext-content_img-square--wideShape"):u.classList.add("Richtext-content_img-square--highShape"),u.appendChild(d)},u}))}},{key:"unmount",value:function(){this.imagesNodes&&this.imagesNodes.forEach((function(e){Object(K.unmountComponentAtNode)(e)}))}},{key:"componentDidMount",value:function(){this.mount()}},{key:"componentWillUpdate",value:function(e){this.props.html!==e.html&&this.unmount()}},{key:"componentDidUpdate",value:function(e){e.html!==this.props.html&&this.mount()}},{key:"componentWillUnmount",value:function(){this.unmount()}},{key:"render",value:function(){var e=this,t=this.state.previewImg,n=this.props,r=n.html,o=n.className,i=n.prefix,a=Object(H.a)(n,["html","className","prefix"]);return Object(s.c)("div",{className:m()("CommentRichText",o),ref:function(t){return e.root=t},children:[i,Object(s.b)(Q.a,Object.assign({html:r},a)),t&&Object(s.b)(W.a,{className:"CommentRichText-ImageView",img:t,onClose:function(){return e.setState({previewImg:null})}})]})}}]),n}(u.Component),X=n(28);function $(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}var ee=function(e){Object(i.a)(n,e);var t=$(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).zaRef=Object(u.createRef)(),e.state={isReplying:!1,deleteModal:!1},e.toggleReply=e.context.authRequired((function(){e.setState({isReplying:!e.state.isReplying})}),"club_post"===e.props.type?X.J.reply_club:void 0,L.b),e.like=e.context.authRequired((function(t){var n=e.props;(0,n.onLike)(n.comment.id,t),e.zaRef.current.trackEvent({action:"Upvote",eventType:"Click",elementLocation:{type:"Button"}})}),X.J.like,L.b),e.dislike=e.context.authRequired((function(){var t=e.props;(0,t.onDislike)(t.comment.id),e.zaRef.current.trackEvent({action:"UnUpvote",eventType:"Click",elementLocation:{type:"Button"}})}),X.J.like,L.b),e.delete=function(){var t=e.props;return(0,t.onDelete)(t.comment.id)},e.feature=function(t){var n=e.props,r=n.onFeature,o=n.comment.id;r(t?"".concat(o,"_featured"):o)},e.collapse=function(){var t=e.props;(0,t.onCollapse)(t.comment.id)},e.approve=function(){var t=e.props;(0,t.onApprove)(t.comment.id)},e.reject=function(){var t=e.props;(0,t.onReject)(t.comment.id)},e.showConversation=function(t){var n=e.props;(0,n.onShowConversation)({commentId:n.comment.id,isAnchorComments:t})},e.stopReply=function(){e.setState({isReplying:!1})},e.closeReportModal=function(e){if(e){var t=e.result.payload,n=t&&t.message||t&&t.code&&"举报失败";e.commentDeleteResult&&!(e.commentDeleteResult.payload||{}).code?z.b.showModal({reportText:n}):t&&t.sarcasmRecommend||Object(B.b)(n||"举报成功")}},e.handleCloseDelete=function(){return e.setState({deleteModal:!1})},e.handleDelete=function(){return e.setState({deleteModal:!0})},e.handleClick=function(t,n){var r=e.props.parent,o=r.type,i=r.id;Object(D.b)(Object(P.a)({type:o,id:i},{utm_campaign:"routine",utm_medium:"internal",utm_source:"video",utm_content:n})),t.stopPropagation(),t.preventDefault()},e}return Object(o.a)(n,[{key:"renderRoleInfo",value:function(e,t){return"normal"===e?null:Object(s.b)("span",{className:"CommentItemV2-roleInfo",children:"ancestor"===e||"author"===e&&"question"===t?" (提问者) ":" (作者) "})}},{key:"renderReplyTo",value:function(){var e=this.props.comment,t=e.replyToAuthor,n=e.resourceType;if(!t)return null;var r=t.member,o=t.role,i=t.mask;return Object(s.c)(u.Fragment,{children:[Object(s.b)("span",{className:"CommentItemV2-reply",children:"回复"}),Object(s.b)(F.a,{noBadge:!0,noHoverCard:!0,user:r||i||{}}),this.renderRoleInfo(o,n)]})}},{key:"renderItem",value:function(){var e,t=this,n=this.props,r=n.isConversation,o=n.ownerAuthorIsOrg,i=n.parent,a=i.canComment,c=(a=void 0===a?{status:!0}:a).status,l=i.questionType,d=n.parent,f=n.commentNeedsReview,p=n.comment,h=n.onReply,b=n.status,v=n.type,A=n.canOperate,k=n.commentPattern,I=n.rootCommentId,N=n.byComment,D=n.isReverseAndStatusOpen,P=n.hasRecommend,L=n.permission.canBrandAdminEdit,M=n.showCollapsed,B=n.isMobile,H=this.state.isReplying,q=p.id,K=p.author,W=p.richText,Y=p.content,Q=p.voteCount,Z=p.replyToAuthor,X=p.isAuthor,$=p.createdTime,ee=p.featured,te=p.voting,ne=p.reviewing,re=p.disliked,oe=p.resourceType,ie=p.childCommentCount,ae=p.allowDelete,ce=p.allowVote,se=p.canRecommend,ue=p.canCollapse,le=p.collapsedReason,de=void 0===le?"":le,fe=p.isDelete,pe=p.collapsed,he=p.top,be=pe&&!M,ve=be?"该评论已被折叠":fe?function(e){var t=e.content,n=e.deleteReason;if(n){var r=JSON.stringify({button:{text:String(n.reasonId)}}).replace(/"/g,""");return'<a href="'.concat(n.url,'" target="_blank" data-za-detail-view-id="7641" data-za-extra="').concat(r,'">').concat(n.tip,"</a>")}return t}(p):W||Y,me=fe||be,ge=K||{},Oe=ge.role,ye=ge.mask,je=(null==K?void 0:K.member)||ye,Ee=Boolean(Z),Ce=ee&&(ie>0||Ee)&&!r||N&&Ee||D&&Ee,we=X||ae&&("question"!==v||"commercial"===l),Te=Object(s.c)("div",{className:"CommentItemV2-footer",children:[Object(s.c)(O.c,{className:m()("CommentItemV2-likeBtn",te&&"is-liked"),preset:"plain",onClick:this.like,disabled:X||!c,children:[Object(s.b)(y.a,{style:{marginRight:5},center:!0,size:16}),Q>0?Q:"赞"]}),pe&&de&&Object(s.c)("div",{className:"CommentItemV2-walleTag",children:["阴阳怪气自动折叠"===de&&Object(s.b)(j.a,{size:16,className:"CommentItemV2-walleIcon"}),de]}),Ce&&Object(s.c)(O.c,{preset:"plain",className:"CommentItemV2-talkBtn",onClick:function(){return t.showConversation(Ee)},children:[Object(s.b)(E.a,{style:{marginRight:5},center:!0,size:16}),"查看回复"]}),!X&&c&&!pe&&Object(s.c)(O.c,{preset:"plain",className:m()({"CommentItemV2-hoverBtn":!H}),onClick:this.toggleReply,children:[Object(s.b)(C.a,{style:{marginRight:5},center:!0,size:16}),H?"取消回复":"回复"]}),se&&!P&&A&&Object(s.c)(O.c,{className:m()({"CommentItemV2-hoverBtn":!X&&!H}),preset:"plain",onClick:function(){return t.feature(ee)},children:[Object(s.b)(w.a,{style:{marginRight:5},center:!0,size:16}),ee?"取消推荐":"推荐"]}),ue&&!X&&Object(s.c)(O.c,{className:m()({"CommentItemV2-hoverBtn":!X&&!H}),preset:"plain",onClick:this.collapse,children:[Object(s.b)(T.a,{style:{marginRight:5},center:!0,size:14}),pe?"取消折叠":"折叠"]}),ce&&!X&&A&&Object(s.c)(O.c,{className:m()({"CommentItemV2-hoverBtn":!H}),preset:"plain",onClick:this.dislike,disabled:!c,children:[Object(s.b)(y.a,{style:{transform:"rotate(180deg)",marginRight:5},size:16,center:!0}),re?"取消踩":"踩"]}),X||Object(s.c)(u.Fragment,{children:[Object(s.b)(G.a,{id:q,type:"comment",className:"CommentItemV2-hoverBtn",onModalShown:function(e,n){e||t.closeReportModal(n)},modalProps:Object.assign({},we&&{onDeleteComment:this.delete},{notification:{failure:U.a}})}),"question"===v&&"commercial"===l&&L&&Object(s.c)(O.c,{className:"CommentItemV2-hoverBtn",preset:"plain",onClick:this.reject,children:[Object(s.b)(T.a,{style:{marginRight:5},center:!0,size:16}),"隐藏"]})]}),we&&Object(s.c)(O.c,{className:m()({"CommentItemV2-hoverBtn":!X&&!H&&!H}),preset:"plain",onClick:this.handleDelete,children:[Object(s.b)(_.a,{style:{marginRight:5},center:!0,size:16}),"删除"]}),Object(s.b)(z.a,{shown:this.state.deleteModal,id:q,onDelete:this.delete,onClose:this.handleCloseDelete})]});return e=H?Object(s.c)("div",{children:[Te,Object(s.b)(V.a,{type:"comment",id:q,commentNeedsReview:f,className:"CommentItemV2-editor",defaultActive:!0,replyTo:p,onCancel:this.stopReply,onSubmit:h,rootCommentId:I,isConversation:r})]}):"reviewing"===b?Object(s.c)("div",{className:"CommentItemV2-footer",children:[Object(s.c)(O.c,{preset:"plain",onClick:this.approve,children:[Object(s.b)(S.a,{style:{marginRight:5},center:!0,size:14}),"公开"]}),Object(s.c)(O.c,{className:"CommentItemV2-hoverBtn",preset:"plain",onClick:this.handleDelete,children:[Object(s.b)(_.a,{style:{marginRight:5},center:!0,size:16}),"删除"]}),Object(s.b)(z.a,{shown:this.state.deleteModal,id:q,onDelete:this.delete,onClose:this.handleCloseDelete})]}):Te,Object(s.c)("div",{children:[Object(s.c)("div",{className:"CommentItemV2-meta",children:[je&&Object(s.b)(F.a,{className:"CommentItemV2-avatar",avatar:!0,noHoverCard:"fixed"===k||"club_post"===v,user:je}),je&&Object(s.b)(F.a,{noBadge:!0,noHoverCard:!0,user:je}),this.renderRoleInfo(Oe,oe),this.renderReplyTo(),he&&Object(s.b)("span",{className:"CommentItemV2-officialTop",children:"官方置顶"}),ne&&Object(s.b)(T.a,{className:"CommentItemV2-reviewing","data-tooltip":"".concat(!1===o?"评论未公开,由作者筛选后显示":"已开启预审评论,评论由机构筛选后公开"),center:!0,size:14}),Object(s.b)("span",{className:"CommentItemV2-time",children:Object(g.toSmartString)($)})]}),Object(s.c)("div",{className:"CommentItemV2-metaSibling",children:[Object(s.b)(J,{className:m()("CommentItemV2-content",{"CommentItemV2-shield":me}),html:ve}),"zvideo"===d.type&&B&&Object(s.c)("div",{className:"CommentItemV2-zvideoFooter",children:[Object(s.c)("div",{onClick:function(e){return t.handleClick(e,"agree")},children:[Q>0&&Q,te?Object(s.b)(y.a,{style:{marginRight:20,marginLeft:5},center:!0,size:14}):Object(s.b)(R,{style:{marginRight:20,marginLeft:5},center:!0,size:14})]}),Object(s.b)("div",{onClick:function(e){return t.handleClick(e,"reply")},children:Object(s.b)(x,{center:!0,size:14})})]}),!me&&e]})]})}},{key:"render",value:function(){var e=this.props,t=e.comment,n=e.onRef;return Object(s.c)(N.b,{content:{type:"Comment",id:String(t.id)},children:[Object(s.b)(N.d,{ref:this.zaRef}),Object(s.b)("div",{className:"CommentItemV2",ref:n,children:this.renderItem()})]})}}]),n}(u.Component);ee.propTypes={comment:p.a.object.isRequired,parent:p.a.object.isRequired,commentNeedsReview:p.a.bool,type:p.a.string,isConversation:p.a.bool,onLike:p.a.func.isRequired,onShowConversation:p.a.func,onReply:p.a.func,onFeature:p.a.func,onDelete:p.a.func.isRequired,onCollapse:p.a.func,commentPattern:p.a.string,showCollapsed:p.a.bool},ee.contextTypes={currentUser:p.a.object,authRequired:p.a.func};t.a=Object(d.compose)(b.withRouter,Object(h.connect)((function(e){return{isWechat:e.env.userAgent.Wechat,permission:Object(M.l)(e),isMobile:e.env.userAgent.Mobile}})))(ee)},function(e,t,n){"use strict";n.d(t,"a",(function(){return ot})),n.d(t,"b",(function(){return ut})),n.d(t,"c",(function(){return ct})),n.d(t,"d",(function(){return Ue})),n.d(t,"e",(function(){return Be})),n.d(t,"f",(function(){return Fe})),n.d(t,"g",(function(){return rt})),n.d(t,"h",(function(){return ft})),n.d(t,"i",(function(){return tt})),n.d(t,"j",(function(){return et})),n.d(t,"k",(function(){return Me}));var r=n(39),o=n.n(r),i=n(79),a=n.n(i),c=n(1),s=n.n(c),u=n(1031),l=n(1035),d=n(1034),f=n(1084),p=n(1105),h=n(1114),b=n(20),v=function(e){return s.a.createElement(b.a,e,s.a.createElement("path",{d:"M15.333 19.333l-2.764 2.765a.333.333 0 0 1-.569-.236v-2.529h3.333zm0-13.333c.737 0 1.334.597 1.334 1.333V16A2.667 2.667 0 0 1 14 18.667H7.333A1.333 1.333 0 0 1 6 17.333v-10C6 6.597 6.597 6 7.333 6zm.394-1.987a2.933 2.933 0 0 1 2.93 2.791l.004.142v8.838c0 .693-.53 1.262-1.205 1.327l-.129.006V6.947a1.6 1.6 0 0 0-1.49-1.597l-.11-.004H7.333c0-.736.597-1.333 1.334-1.333h7.06z",fillRule:"evenodd"}))};v.defaultProps={name:"BlueBook"};var m=v,g=n(1102),O=n(1051),y=n(1107),j=n(1108),E=n(1055),C=n(1109),w=n(1110),T=n(1111),_=n(1112),S=n(1113),A=n(1088),k=n(1083),R=n(123),I=n(14),x=n(88),N=n(59),D=n(42),P=n(118),L=n.n(P),M=n(36),U=n(3),B=function(e){return/^(\w+:)?\/\//.test(e)?e:location.origin+e},z=function(e,t){var n=t.params,r=t.onRequestOpen,i=Object(x.b)();return function(t){var a=e.href,c=e.onClick;if(c&&c(t),!t.defaultPrevented&&a){var s=function(e,t){if(!t)return e;var n=e.split("#"),r=o()(n,2),i=r[0],a=r[1],c=i+(i.includes("?")?"&":"?")+t;return a?c+"#"+a:c}(B(a),n);if((null==i?void 0:i.ZhihuHybrid)||(null==i?void 0:i.Zhihu))return t.preventDefault(),void D.a.dispatch("base/openURL",{url:s});(null==r?void 0:r({ua:i,url:s}))&&t.preventDefault()}}},F=function(e,t){var n=t.extra;return{zaType:"Button",zaAction:"OpenUrl",zaEventType:"Click",shouldTrackClick:Boolean(e),extra:L()({link:{get url(){return B(e)}}},n)}},G=Object(c.forwardRef)((function(e,t){var n=e.params,r=e.onRequestOpen,o=e.extra,i=e.as,c=void 0===i?I.Link:i,s=a()(e,["params","onRequestOpen","extra","as"]);return Object(U.c)(M.c,Object.assign({as:c},F(s.href,{extra:o}),s,{ref:t,onClick:z(s,{params:n,onRequestOpen:r})}))})),V=n(56),H=n(12),q=n(31),K=n(83),W=n(22),Y=n.n(W),Q=n(24),Z=n.n(Q),J=n(25),X=n.n(J),$=n(27),ee=n.n($),te=n(16),ne=n.n(te),re=n(46),oe=n(2),ie=n.n(oe),ae=n(69),ce=n.n(ae),se=n(452),ue=n(654),le=n.n(ue);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ne()(e);if(t){var o=ne()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ee()(this,n)}}var fe="top",pe=Object.freeze({__proto__:null,LEFT:"left",RIGHT:"right",TOP:fe,BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right",LEFT_TOP:"left-top",LEFT_BOTTOM:"left-bottom",RIGHT_TOP:"right-top",RIGHT_BOTTOM:"right-bottom"}),he=[fe,"bottom"],be=["left","right"];function ve(e,t,n,r){var i,a,c,s,u,l=r.split("-"),d=o()(l,2),f=d[0],p=d[1],h=(a=(i=t).top,c=i.bottom,s=i.left,u=i.right,{top:Math.max(a,0),bottom:Math.min(Math.max(c,0),window.innerHeight),left:Math.max(s,0),right:Math.min(Math.max(u,0),window.innerWidth)}),b={},v={},m=f;if(he.includes(f)){var g,O,y=h.right-n.width,j=h.left;if("left"===p?(g=e.left,O=j):"right"===p?(g=e.right-n.width,O=y):(g=e.left+e.width/2-n.width/2,O=j),v.left=y>j?g<j?j:g<y?g:y:O,e.width<=n.width){var E=e.left+e.width/2;b.left=E-v.left}else b.left=n.width/2;"bottom"===f&&e.bottom+n.height>h.bottom&&e.top-n.height>h.top&&(m=fe),f===fe&&e.bottom+n.height<h.bottom&&e.top-n.height<h.top&&(m="bottom");var C=m===fe?[n.height,e.top-n.height]:[0,e.bottom],w=o()(C,2);b.top=w[0],v.top=w[1]}if(be.includes(f)){var T,_,S=h.bottom-n.height,A=h.top;if(p===fe?(T=e.top,_=A):"bottom"===p?(T=e.bottom-n.height,_=S):(T=e.top+e.height/2-n.height/2,_=A),v.top=S>A?T<A?A:T<S?T:S:_,e.width<=n.width){var k=e.top+e.height/2;b.top=k-v.top}else b.top=n.height/2;"right"===f&&e.right+n.width>h.right&&e.left-n.width>h.left&&(m="left"),"left"===f&&e.right+n.width<h.right&&e.left-n.width<h.left&&(m="right");var R="left"===m?[n.width,e.left-n.width]:[0,e.right],I=o()(R,2);b.left=I[0],v.left=I[1]}return{arrowStyle:b,targetContainerStyle:v,placement:m}}var me=function(e){return Object(U.c)("svg",Object.assign({width:"26",height:"10",viewBox:"0 0 26 10",fill:"currentColor"},e),Object(U.c)("path",{d:"M0 0h26v1c-4.498 0-9 9-13 9S4.5 1 0 1V0z",fillRule:"evenodd"}))},ge={top:{width:"32px",height:"16px",marginTop:"-5px",transform:"translate(-50%, 0)","&::after":{left:"50%",top:"-8px"}},bottom:{width:"32px",height:"16px",marginTop:"3px",transform:"translate(-50%, -100%) rotate(180deg)","&::after":{left:"50%",bottom:"-8px"}},left:{width:"16px",height:"32px",marginLeft:"-5px",transform:"translate(0, -50%) rotate(-90deg)","&::after":{left:"-8px",top:"50%"}},right:{width:"16px",height:"32px",marginLeft:"6px",transform:"translate(-100%, -50%) rotate(90deg)","&::after":{right:"-8px",top:"50%"}}},Oe={top:{marginTop:"-16px"},bottom:{marginTop:"16px"},left:{marginLeft:"-16px"},right:{marginRight:"16px"}},ye={top:{transformOrigin:"bottom center",marginTop:"-8px"},bottom:{marginTop:"8px"},left:{transformOrigin:"right center",marginLeft:"-16px"},right:{marginLeft:"16px"}},je=s.a.forwardRef((function(e,t){var n=e.withArrow,r=e.arrowStyle,o=e.arrowColor,i=e.placement,a=e.fixed,c=e.style,s=e.children,u=Object(N.f)();return Object(U.c)("div",{key:"popoverContent",ref:t,css:Object(R.a)({position:"absolute",background:u.colors.GBK99C,borderRadius:"4px",zIndex:203,boxShadow:"rgba(0, 0, 0, 0.16) 0 0 20px 0"},";label:PopoverContent;"),style:Object.assign({},ye[i],n&&Oe[i],a&&{position:"fixed"},c)},n&&Object(U.c)(me,{css:Object(R.a)({position:"absolute",overflow:"hidden",pointerEvents:"none",fill:o||u.colors.GBK99C,"&:after":{content:'""',position:"absolute",boxSizing:"border-box",width:"24px",height:"24px",margin:"-12px",background:o||u.colors.GBK99C,transform:"rotate(45deg)",pointerEvents:"auto"}},";label:PopoverContent;"),style:Object.assign({},ge[i],r)}),"function"==typeof s?s(e):s)})),Ee=Object(se.animated)(je),Ce=function(e){X()(n,e);var t=de(n);function n(e){var r;return Y()(this,n),r=t.call(this,e),"undefined"!=typeof document&&(r.element=document.createElement("div")),r}return Z()(n,[{key:"componentDidMount",value:function(){document.body.appendChild(this.element)}},{key:"componentWillUnmount",value:function(){document.body.removeChild(this.element),delete this.element}},{key:"render",value:function(){if(this.element){var e=this.props,t=e.onRef,n=a()(e,["onRef"]);return Object(re.createPortal)(Object(U.c)("div",Object.assign({ref:t},n)),this.element)}return null}}]),n}(c.Component),we=function(e){var t,n,r=e.renderChildren,i=e.children,a=e.transitionProps,s=e.springProps,u=e.onAfterEnter,l=e.onAfterLeave,d=Object(c.useState)(!1),f=o()(d,2),p=f[0],h=f[1],b=!!i,v=Object(se.useSpring)((function(){return s.from})),m=o()(v,2),g=m[0],O=m[1],y=(t=i,n=Object(c.useRef)(),Object(c.useEffect)((function(){t&&(n.current=t)})),n.current),j=Object(se.useTransition)(b,Object.assign({},a,{onRest:function(e,t){e.finished&&t.item&&2===e.value.p&&(l&&l(),h(!1))}}));return Object(c.useEffect)((function(){b?(h(!0),O(s.enter)):O(s.leave)}),[b]),Object(c.useLayoutEffect)((function(){p&&u&&u()}),[p]),p?Object(U.c)(Ce,null,j((function(e,t){return t?r({transitionStyles:e,springStyles:g,item:b?i:y}):null}))):null},Te=le()(.25,.1,.25,1),_e={from:{opacity:0},enter:{opacity:1,config:{duration:200,easing:Te}},leave:{opacity:0,config:{duration:300,easing:Te}}},Se=function(e){var t=e.isOpen,n=e.arrowed,r=e.fixed,i=e.globalClose,a=e.target,s=e.container,u=e.boundary,l=e.placement,d=e.listenResize,f=e.customStyle,p=e.backgroundColor,h=e.transitionProps,b=e.springProps,v=e.customPosition,m=e.onClose,g=e.onAfterLeave,O=e.children,y=Object(c.useState)(l),j=o()(y,2),E=j[0],C=j[1],w=Object(c.useState)({}),T=o()(w,2),_=T[0],S=T[1],A=Object(c.useState)({}),k=o()(A,2),R=k[0],I=k[1],N=Object(c.useRef)(null),D=Object(x.b)(),P=Object(q.b)((function(){var e=function(e){var t=e.target,n=e.container,r=e.placement,o=e.fixed,i=e.boundary,a=e.element,c=e.customPosition;if(a&&t){var s=t instanceof HTMLElement?t:Object(re.findDOMNode)(t),u=document.body;n&&(u=n instanceof HTMLElement?n:Object(re.findDOMNode)(n));var l=(c||ve)(s.getBoundingClientRect(),function(){var e,t,n,r,o,i,a,c,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0,l=s.getElement,d=s.padding,f=void 0===d?0:d,p=s.getBoundaryInfo;if("object"==typeof f&&(o=f.top||0,i=f.bottom||0,a=f.left||0,c=f.right||0),p)return p();var h={};l?h=l():u&&(h=u);var b=h.getBoundingClientRect(),v=b.top,m=b.right,g=b.bottom,O=b.left;return{top:v+(null!==(e=o)&&void 0!==e?e:f),right:m-(null!==(t=c)&&void 0!==t?t:f),bottom:g-(null!==(n=i)&&void 0!==n?n:f),left:O+(null!==(r=a)&&void 0!==r?r:f)}}(i,u),a.getBoundingClientRect(),r);return o||(l.targetContainerStyle.left+=window.pageXOffset,l.targetContainerStyle.top+=window.pageYOffset),l}}({target:a,container:s,placement:E,fixed:r,boundary:u,element:N.current,customPosition:v});if(e){var t=e.placement,n=e.targetContainerStyle,o=e.arrowStyle;C(t),S(n),I(o)}}));Object(c.useEffect)((function(){t&&P()}),[t]),Object(c.useLayoutEffect)((function(){if(d)return window.addEventListener("resize",P),function(){window.removeEventListener("resize",P)}}),[]);var L=Object(q.b)((function(e){var n;t&&(!document.body.contains(e.target)||(null==N||null===(n=N.current)||void 0===n?void 0:n.contains(e.target))||(null==a?void 0:a.contains(e.target))||m&&m())}));Object(c.useEffect)((function(){return i&&(D.Mobile?document.addEventListener("touchstart",L):document.addEventListener("click",L)),i&&function(){D.Mobile?document.removeEventListener("touchstart",L):document.removeEventListener("click",L)}}),[i,D,L]);var M=Object(q.b)((function(){C(l),g()})),B=Object(c.useCallback)((function(e){var t=e.transitionStyles,o=e.springStyles,i=e.item;return Object(U.c)(Ee,{key:"popover",ref:N,withArrow:n,arrowStyle:R,arrowColor:p,placement:E,fixed:r,style:Object.assign({},_,t,o,"function"==typeof f?f(E):f,{backgroundColor:p}),onMounted:P},i)}),[n,R,p,E,r,_,f,P]);return Object(U.c)(we,{renderChildren:B,transitionProps:h,springProps:b,onAfterEnter:P,onAfterLeave:M},t&&O)};Se.propTypes={isOpen:ie.a.bool,arrowed:ie.a.bool,fixed:ie.a.bool,globalClose:ie.a.bool,placement:ie.a.oneOf(Object.values(pe)),listenResize:ie.a.bool,container:ie.a.object,boundary:ie.a.shape({getElement:ie.a.func,padding:ie.a.oneOfType([ie.a.number,ie.a.object]),getBoundaryInfo:ie.a.func}),transitionProps:ie.a.shape({from:ie.a.object.isRequired,enter:ie.a.object.isRequired,leave:ie.a.object.isRequired,config:ie.a.oneOfType([ie.a.object,ie.a.func])}),springProps:ie.a.shape({from:ie.a.object.isRequired,enter:ie.a.object.isRequired,leave:ie.a.object.isRequired}),customStyle:ie.a.oneOfType([ie.a.object,ie.a.func]),backgroundColor:ie.a.string,customPosition:ie.a.func,onClose:ie.a.func,onAfterLeave:ie.a.func},Se.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:_e,onClose:ie.a.func,onAfterLeave:ce.a};var Ae=Se,ke={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}},Re=function(e){var t=e.bg,n=e.color,r=e.bgNoAlpha,o=e.colorNoAlpha,i=Object(N.f)(),a=i.colors,c=i.colorMod;return{bg:r?a[t]:c(a[t]).alpha(.08),color:o?a[n]:c(a[n]).alpha(.72)}};var Ie={name:"2q0wp1-Label",styles:"flex:0 0 auto;;label:Label;"},xe={name:"2q0wp1-Label",styles:"flex:0 0 auto;;label:Label;"},Ne={name:"18mqqn8-Label",styles:"flex:0 0 auto;cursor:pointer;;label:Label;"},De={name:"zzd7cz-Label",styles:"margin:0 -4px;flex:0 0 auto;;label:Label;"},Pe=s.a.forwardRef((function(e,t){var n=e.color,r=void 0===n?ke.BLUE:n,o=e.iconUrl,i=e.icon,c=e.name,s=e.subText,p=e.linkText,h=e.link,b=e.expandable,v=e.isExpanded,m=e.showDeleteButton,g=e.onDelete,O=e.onClick,y=e.style,j=e.css,E=a()(e,["color","iconUrl","icon","name","subText","linkText","link","expandable","isExpanded","showDeleteButton","onDelete","onClick","style","css"]),C=Object(x.b)().Mobile,w=Object(N.f)().fontWeights,T=Re(r),_=T.bg,S=T.color,A=h&&!b?G:"div",k=null,D=null;return m?D=u.a:b?k=v?l.a:d.a:h&&(k=f.a),Object(U.c)(A,Object.assign({ref:t,css:Object(R.a)(Object.assign({flex:"0 1 auto",display:"flex",alignItems:"center",justifyContent:"flex-start",background:_,padding:"0 8px",height:C?28:30,borderRadius:C?14:15,textDecoration:"none",fontSize:C?13:14,lineHeight:C?"16px":"18px",color:S,overflow:"hidden"},j),";label:Label;")},h&&{href:h},{style:Object.assign({cursor:k?"pointer":"default"},y),onClick:O},E),o?Object(U.c)("img",{src:Object(V.imgUrl)(o,"m"),height:C?16:19,width:C?16:19,alt:"",css:Ie}):Boolean(i)&&Object(U.c)(i,{fill:S,size:C?17:20,css:xe}),Object(U.c)(I.Flex,{overflow:"hidden",flex:"0 1 auto",mx:"4px"},Object(U.c)(I.Text,{flexShrink:0,fontWeight:w.bold,mt:C?"1px":0},c)),Boolean(s||p)&&Object(U.c)(I.Text,{flex:"0 0 auto",display:"flex",alignItems:"center",mt:C?"1px":0,mr:"4px"},s||p),Boolean(D)&&Object(U.c)(D,{fill:S,size:18,onClick:g,css:Ne}),Boolean(k)&&Object(U.c)(k,{fill:S,size:C?23:26,css:De}))}));Pe.displayName="Label";var Le={name:"134vuwg-text",styles:"margin-left:4px;text-decoration:none;color:inherit;;label:text;"},Me=function(e){var t=e.inviter,n=a()(e,["inviter"]),r=t.name,o=t.urlToken,i=Object(U.c)(s.a.Fragment,null,"谢邀",Object(U.c)("a",{"data-za-detail-view-id":8126,href:"https://www.zhihu.com/people/".concat(o),css:Le},"@".concat(r)));return Object(U.c)(Pe,Object.assign({icon:p.a,name:i},n))};var Ue=function(e){var t=e.data,n=a()(e,["data"]),r=t.url,o=t.title;return Object(U.c)(Pe,Object.assign({},n,{name:"知乎蓝宝书收录",icon:m,subText:o,link:r}))};function Be(e){var t=e.data,n=a()(e,["data"]),r=t.name,o=t.iconUrl,i=t.linkText,c=t.link;return Object(U.c)(Pe,Object.assign({},n,{color:ke.PURPLE,name:r,subText:i,iconUrl:o,icon:g.a,link:c}))}var ze={answer:"品牌特邀",article:"特邀文章"};function Fe(e){var t=e.data,n=e.type,r=void 0===n?"answer":n,o=Boolean(null==t?void 0:t.subText),i=t.name,a=void 0===i?"谢邀":i,c=t.iconUrl;return Object(U.c)(Pe,{iconUrl:c,icon:h.a,name:o?a:ze[r],subText:(null==t?void 0:t.subText)||"本文由品牌邀请撰写"})}var Ge=["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"],Ve={online_roundtable:O.a,relevant:y.a,editor_recommendation:j.a,roundtable:O.a,special:E.a,raise_hand:E.a,weekly:C.a,daily:w.a,professional:T.a,zhizhi_plan_recommend:_.a,zhizhi_plan_edu_recommend:_.a,zhizhi_plan_baby_recommend:_.a,zhizhi_plan_acg_recommend:_.a,zhizhi_plan_outing_recommend:_.a,zhizhi_plan_rumour_deny:S.a,zhizhi_plan:_.a},He={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:"科学求真"},qe=Object.assign({},He,{weekly:"知乎周刊收录",daily:"知乎日报收录"}),Ke={relevant:"此回答由问题相关方亲自撰写",professional:"已有 {} 人赠与了专业徽章"},We={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:"辟谣标识"},Ye=s.a.forwardRef((function(e,t){var n=e.children,r=e.placement,i=void 0===r?"bottom":r,u=e.onClick,l=e.onPopoverClosed,d=a()(e,["children","placement","onClick","onPopoverClosed"]),f=Object(N.f)(),p=Object(c.useRef)(),h=Object(c.useState)(!1),b=o()(h,2),v=b[0],m=b[1],g=Object(c.useRef)(),O=Object(x.b)().Mobile,y=Boolean(n),j=Object(q.b)((function(e){var n,r;p.current=(r=e,(n=t)?("function"==typeof n?n(r):n.current=r,r):r)})),E=Object(q.b)((function(e){u&&u(e),y&&m(!v)})),C=Object(q.b)((function(){g.current&&clearTimeout(g.current),y&&!v&&m(!0)})),w=Object(q.b)((function(){g.current=setTimeout((function(){m(!1)}),100)}));return Object(U.c)(s.a.Fragment,null,Object(U.c)(Pe,Object.assign({},d,{ref:j,expandable:y,isExpanded:v,onClick:E},!O&&{onMouseOver:C,onMouseLeave:w})),y&&Object(U.c)(Ae,{isOpen:v,arrowed:!0,globalClose:!0,listenResize:!0,target:p.current,placement:i,boundary:{padding:16},customStyle:{borderRadius:"8px",boxShadow:"0 -3px 10px 0 rgba(0, 0, 0, 0.1)"},backgroundColor:f.colors.GBK99C,onClose:w,onAfterLeave:l},Object(U.c)("div",{onMouseOver:C,onMouseLeave:w},n)))}));Ye.displayName="ExpandableLabel";var Qe=function(e){return{icon:Ve[e],title:qe[e],shortTitle:He[e],description:Ke[e],zaName:We[e]}},Ze=function(e,t){return e.includedInfos?e.includedInfos.find((function(e){return e.type===t})):null},Je=function(e){var t=e.data,n=e.onLinkClick,r=t.type,o=t.icon,i=t.title,a=t.description,s=t.zaName,u=t.link,l=Object(x.b)().Mobile,d=Object(N.f)(),f=Object(c.useRef)(),p=Object(q.b)((function(e){H.a.trackEvent(f.current,{id:3771,name:"多个"},{button:{text:s}}),u&&n&&n(e,u,r)}));return Object(U.c)(Pe,Object.assign({ref:f,color:ke.GOLDEN,icon:o,name:i},u&&{zaText:!0,shouldTrackShow:!0,zaBlock:r},{subText:a,link:u,onClick:p,css:Object(R.a)({height:l?34:36,borderRadius:0,background:"none","&:hover":{background:u?d.colors.GBK10A:"none"}},";label:ContentItem;")}))},Xe=function(e){var t=e.data,n=e.onLinkClick,r=Object(x.b)().Mobile;return Object(U.c)(I.Box,{py:"8px",maxWidth:r?"calc(100vw - 34px)":"400px"},t.map((function(e){return Object(U.c)(Je,{key:e.type,data:e,onLinkClick:n})})))},$e=function(e){return Object(c.useMemo)((function(){var t=[];if(Ge.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:Ke[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&&!Ge.includes(e.type)})):null;return n?{icon:Ve[n.type]||Ve[t],title:qe[n.type]||qe[t],shortTitle:He[n.type]||He[t],description:n.title,link:n.url,zaName:We[n.type]||n.type}:null;case"special":case"raise_hand":var r=Ze(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 i=Ze(e,t);return i?Object.assign({},Qe(t),{description:i.title,link:i.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])},et=function(e){var t=e.placement,n=void 0===t?"bottom":t,r=e.data,o=e.onExpand,i=e.onLinkClick,a=$e(r),s=Object(c.useRef)(),u=Object(c.useRef)(!1);if(!a)return null;var l=a.label,d=a.items,f=a.expandable,p=l.type,h=l.icon,b=l.title,v=l.shortTitle,m=l.meta,g=l.description,O=l.link,y=l.zaName,j=Boolean(O&&!f),E=j?Ye:M.e;Object(c.useLayoutEffect)((function(){H.a.setModule(s.current,{module:"Content",module_name:y}),Object(K.onViewedOnce)(s.current,(function(){H.a.trackCardShow(s.current,{id:3769,name:f?"多个":"一个"})}))}),[f,y]);var C=Object(q.b)((function(){u.current=!1})),w=Object(q.b)((function(e){f&&!u.current&&(u.current=!u.current,o&&o(a)),!f&&j&&(H.a.trackEvent(s.current,{id:3771,name:"一个"},{button:{text:y}}),i&&i(e,O,p))})),T={as:Ye,zaType:"Block"};return j?T={zaText:!0,zaBlock:p,shouldTrackShow:!0}:f&&(T=Object.assign({},T,{zaText:!0,onPopoverClosed:C})),Object(U.c)(E,Object.assign({},T,{ref:s,color:ke.GOLDEN,icon:h,name:m&&v||b,subText:m||g,link:O,placement:n,onClick:w}),f&&Object(U.c)(Xe,{data:d,onLinkClick:i}))},tt=function(){return Object(U.c)(Pe,{color:ke.GOLDEN,icon:y.a,name:"亲自答",subText:"此回答由问题相关方亲自撰写"})},nt=function(e){var t=e.color,n=void 0===t?ke.GREY:t,r=e.icon,o=e.name,i=e.subText,a=e.moreLink,c=e.renderMoreIcon,u=e.description,l=Object(x.b)().Mobile,d=Re(n).color,f=null;return f=a&&c?Object(U.c)(s.a.Fragment,null,i,Object(U.c)(G,{href:a,css:Object(R.a)({marginLeft:i?4:0,textDecoration:"none",color:"inherit"},";label:PopoverContent;")},c)):i,Object(U.c)(I.Box,{py:"8px",maxWidth:l?"calc(100vw - 34px)":"400px"},Object(U.c)(Pe,{color:n,icon:r,name:o,subText:f,css:Object(R.a)({height:l?32:36,borderRadius:0,background:"none"},";label:PopoverContent;")}),Boolean(u)&&Object(U.c)(I.Text,{lineHeight:l?"16px":"18px",fontSize:l?"13px":"14px",color:d,mx:"12px",mb:"8px"},u))},rt=function(e){var t=e.disclaimerInfo,n=t.excerpt,r=t.description,o=t.subDescription,i=n?"创作声明":r,a=n&&"内容".concat(n);return Object(U.c)(Ye,{name:i,subText:a},Object(U.c)(nt,{color:ke.BLUE,name:i,subText:a,description:o}))},ot=function(e){var t=e.annotationDetail;if(!t)return null;var n=t.detail,r=t.member,o=t.reasonDescription||"该内容已被标记",i="strong"===t.type&&A.a,a=r?"".concat(r.name,":"):"";return Object(U.c)(Ye,{color:ke.GREY,icon:i,name:o},Object(U.c)(nt,{icon:i,name:o,description:(n||a)&&Object(U.c)("span",{dangerouslySetInnerHTML:{__html:"".concat(a).concat(n||"未填写原因")}})}))};var it={name:"14z35ax-HelpIcon",styles:"vertical-align:bottom;;label:HelpIcon;"},at=function(e){var t=e.fill,n=Object(N.f)().colors.GBL05A;return Object(U.c)(k.a,{fill:t||n,size:18,css:it})},ct=function(e){var t=e.collapseReason;return Object(U.c)(Ye,{color:ke.GREY,name:"该回答已被折叠"},Object(U.c)(nt,{name:"该回答已被折叠",renderMoreIcon:Object(U.c)(at,null),moreLink:"/question/20120168/answer/35704072",description:"折叠原因:".concat(t)}))},st={color:"inherit",textDecoration:"underline"},ut=function(e){var t=e.abnormalDetail,n=void 0===t?{description:"回答建议修改",reason:""}:t,r=n.description,o=n.reasonId,i=n.reason,a=[10015,30005].includes(o)?Object(U.c)(s.a.Fragment,null,"不规范转载",Object(U.c)(G,{href:"https://www.zhihu.com/question/20258015",css:st,onClick:function(e){return e.stopPropagation()}},i)):i,c=10027===o?Object(U.c)(s.a.Fragment,null,"作者修改内容或举证后,回答会重新展示。如果一周内未得到有效修改,回答会自动折叠。",Object(U.c)("br",null),"知乎严格按照公开的流程处理各类投诉,不收任何费用也不与任何中介机构合作。",Object(U.c)(G,{href:"https://www.zhihu.com/term/zhihu-terms#sec-report",css:st},"投诉流程")):"作者修改内容通过后,回答会重新显示。如果一周内未得到有效修改,回答会自动折叠。";return Object(U.c)(Ye,{color:ke.GREY,name:r,subText:a},Object(U.c)(nt,{name:r,renderMoreIcon:Object(U.c)(at,null),moreLink:"https://www.zhihu.com/question/24752645",description:c}))};var lt={name:"pf9kc0-Labels",styles:"& > div, & > a{margin-right:8px;margin-bottom:8px;};label:Labels;"},dt=function(e){var t=e.answerCollapsed,n=e.answerAbnormal,r=e.commercial,o=e.thanksForInviting,i=e.positive,c=e.bluebook,s=e.annotation,u=e.disclaimer,l=e.adPromotion,d=e.campaign,f=e.limit,p=void 0===f?2:f,h=a()(e,["answerCollapsed","answerAbnormal","commercial","thanksForInviting","positive","bluebook","annotation","disclaimer","adPromotion","campaign","limit"]);if(!(t||n||r||o||i||c||s||u||l||d))return null;var b=[t||n,r||o||l||c,i,s||u,d].filter(Boolean).slice(0,p);return Object(U.c)(I.Flex,Object.assign({flexDirection:"row",flexWrap:"wrap",pt:"8px",css:lt},h),b.map((function(e,t){return Object(U.c)("div",{key:t},e)})))};dt.propTypes={answerCollapsed:ie.a.node,answerAbnormal:ie.a.node,commercial:ie.a.node,thanksForInviting:ie.a.node,bluebook:ie.a.node,positive:ie.a.node,annotation:ie.a.node,disclaimer:ie.a.node,adPromotion:ie.a.node,campaign:ie.a.node};var ft=s.a.memo(dt)},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(1),o=n.n(r),i=n(6),a=n.n(i),c=n(58),s=n(3),u=[{extensionList:["doc","docx","txt"],type:"doc"},{extensionList:["jpg","jpeg","png","bmp"],type:"image"},{extensionList:["mp3","aac"],type:"music"},{extensionList:["pdf"],type:"pdf"},{extensionList:["xls","xlsx","csv"],type:"table"},{extensionList:["torrent"],type:"torrent"},{extensionList:["mp4","flv"],type:"video"},{extensionList:["zip","rar","7z"],type:"zip"},{extensionList:[""],type:"folder"}];var l=function(e){var t=e.className,n=e.isDirectory,r=void 0!==n&&n,o=e.extension,i=function(e){return"https://zhstatic.zhihu.com/assets/zhihu-components/file-icon/zhimg_answer_editor_file_".concat(e,".svg")}(r?"folder":function(e){var t=u.find((function(t){return t.extensionList.includes(e)}));return t?t.type:"other"}(o));return Object(s.c)("img",{className:a()("FileExtensionIcon",t),src:i})},d={baidu:"百度网盘"};var f=function(e){var t=e.component,n=void 0===t?"a":t,r=e.className,i=e.href,u=e.type,f=void 0===u?"file":u,p=e.name,h=e.extension,b=e.size,v=e.source,m=e.onRef,g=e.onClick,O=e.onMouseDown,y=Number(b);return Object(s.c)(n,{className:a()("FileLinkCard",r),href:i,target:"_blank",rel:"noopener noreferrer","data-za-detail-view-id":7693,ref:m,onClick:g,onMouseDown:O},Object(s.c)(l,{className:"FileLinkCard-icon",isDirectory:"directory"===f,extension:h}),Object(s.c)("div",{className:"FileLinkCard-info"},Object(s.c)("div",{className:"FileLinkCard-name"},p),Object(s.c)("div",{className:"FileLinkCard-meta"},Boolean(y)&&Object(s.c)("div",{className:"FileLinkCard-size"},Object(c.unitPrefix)(y)),Boolean(y)&&v&&Object(s.c)(o.a.Fragment,null," · "),v&&Object(s.c)("div",{className:"FileLinkCard-source"},function(e){return d[e]||e}(v)))))}},function(e,t,n){"use strict";var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(39),h=n.n(p),b=n(30),v=n.n(b),m=n(41),g=n.n(m),O=n(1),y=n.n(O),j=n(2),E=n.n(j),C=n(20),w=function(e){return y.a.createElement(C.a,e,y.a.createElement("path",{d:"M11.991 3C7.023 3 3 7.032 3 12s4.023 9 8.991 9C16.968 21 21 16.968 21 12s-4.032-9-9.009-9zm6.237 5.4h-2.655a14.084 14.084 0 0 0-1.242-3.204A7.227 7.227 0 0 1 18.228 8.4zM12 4.836A12.678 12.678 0 0 1 13.719 8.4h-3.438A12.678 12.678 0 0 1 12 4.836zM5.034 13.8A7.418 7.418 0 0 1 4.8 12c0-.621.09-1.224.234-1.8h3.042A14.864 14.864 0 0 0 7.95 12c0 .612.054 1.206.126 1.8H5.034zm.738 1.8h2.655a14.084 14.084 0 0 0 1.242 3.204A7.188 7.188 0 0 1 5.772 15.6zm2.655-7.2H5.772a7.188 7.188 0 0 1 3.897-3.204c-.54.999-.954 2.079-1.242 3.204zM12 19.164a12.678 12.678 0 0 1-1.719-3.564h3.438A12.678 12.678 0 0 1 12 19.164zm2.106-5.364H9.894A13.242 13.242 0 0 1 9.75 12c0-.612.063-1.215.144-1.8h4.212c.081.585.144 1.188.144 1.8 0 .612-.063 1.206-.144 1.8zm.225 5.004c.54-.999.954-2.079 1.242-3.204h2.655a7.227 7.227 0 0 1-3.897 3.204zm1.593-5.004c.072-.594.126-1.188.126-1.8 0-.612-.054-1.206-.126-1.8h3.042c.144.576.234 1.179.234 1.8s-.09 1.224-.234 1.8h-3.042z"}))};w.defaultProps={name:"Browser"};var T=w,_=n(1077),S=n(6),A=n.n(S),k=n(66),R=n.n(k),I=n(56),x=n(322),N=n(3);function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var P=function(){return Object(N.c)("div",{className:"LinkCard-image LinkCard-image--default"},Object(N.c)(T,{size:32}))},L=/^https?:\/\/link\.zhihu\.com/,M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e;if(L.test(e)){var n=e.match(/target=([^=]+)/)||[],r=h()(n,2),o=r[1];o&&(t=decodeURIComponent(o))}var i=t.split("/"),a=h()(i,3),c=a[2];return c||""},U=function(e){s()(n,e);var t=D(n);function n(){return o()(this,n),t.apply(this,arguments)}return a()(n,[{key:"renderLinkMeta",value:function(){var e=this.props,t=e.url,n=e.entityType,r=e.entityData,o=M(t);if(n&&r&&"job"===n){var i=r.salary,a=r.city,c=r.location,s=r.seniority,u=r.education;return Object(N.c)("span",{className:"LinkCard-meta"},Object(N.c)("span",{className:"LinkCard-textMeta"},s&&Object(N.c)("span",{className:"LinkCard-metaItem"},s),u&&Object(N.c)("span",{className:"LinkCard-metaItem"},u),(a||c)&&Object(N.c)("span",{className:"LinkCard-metaItem"},a,Object(N.c)("span",{className:"LinkCard-metaItem-jobLocation"},c))),i&&Object(N.c)("span",{className:"LinkCard-badge"},i))}return Object(N.c)("span",{className:"LinkCard-meta"},Object(N.c)(_.a,{size:17,center:!0}),o)}},{key:"render",value:function(){var e=R()(this.props,["entityType","entityData"]),t=e.text,n=e.target,r=e.url,o=e.image,i=e.imageWidth,a=e.imageHeight,c=e.component,s=e.className,u=e.size,l=g()(e,["text","target","url","image","imageWidth","imageHeight","component","className","size"]);if(Object(x.b)(r))return Object(N.c)(x.a,v()({className:A()("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"}}(i,a),f=d.modifier,p=d.size,h=!o&&function(e){var t=M(e);return"zhihu.com"===t||t.endsWith(".zhihu.com")}(r)?"https://zhstatic.zhihu.com/assets/zhihu/editor/zhihu-card-default.svg":Object(I.imgUrl)(o,p);return Object(N.c)(c,v()({target:n,href:r,"data-draft-node":"block","data-draft-type":"link-card"},h&&{"data-image":h},i&&{"data-image-width":i},a&&{"data-image-height":a},u&&{"data-size":u},{className:A()("LinkCard old",s,{"LinkCard--hasImage":Boolean(h),"LinkCard--noImage":!h})},l),h&&Object(N.c)("span",{className:"LinkCard-backdrop",style:{backgroundImage:"url(".concat(h,")")}}),Object(N.c)("span",{className:"LinkCard-content"},Object(N.c)("span",{className:"LinkCard-text"},Object(N.c)("span",{className:"LinkCard-title","data-text":!0},t),this.renderLinkMeta()),Object(N.c)("span",{className:"LinkCard-imageCell"},h?Object(N.c)("img",{className:A()("LinkCard-image","LinkCard-image--".concat(f)),alt:"图标",src:h}):Object(N.c)(P,null))))}}]),n}(y.a.Component);U.propTypes={component:E.a.oneOfType([E.a.string,E.a.func]),target:E.a.string,url:E.a.string.isRequired,text:E.a.string.isRequired,image:E.a.string,imageWidth:E.a.oneOfType([E.a.string,E.a.number]),imageHeight:E.a.oneOfType([E.a.string,E.a.number])},U.defaultProps={component:"a",target:"_blank"};t.a=U},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n.n(o),a=n(6),c=n.n(a),s=Array.from(Array(12),(function(e,t){return Object(r.b)("span",{className:"Spinner-blade-12"},t)}));function u(e){var t=e.className,n=e.white,o=e.large;return Object(r.b)("div",{className:c()("Spinner-blade",t,{"Spinner-blade--large":o,"Spinner-blade--white":n}),children:s})}u.propTypes={className:i.a.string,large:i.a.bool,white:i.a.bool};var l=u;t.a=l},function(e,t,n){"use strict";var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(30),h=n.n(p),b=n(2),v=n.n(b),m=n(1),g=n(178),O=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var j=function(e){s()(n,e);var t=y(n);function n(){return o()(this,n),t.apply(this,arguments)}return a()(n,[{key:"renderThumbnail",value:function(){var e=this.props.error;return Object(O.c)("div",{className:"VideoErrorCard-thumbnail"},Object(O.c)("div",{className:"VideoErrorCard-error"},e.message||"错误"))}},{key:"render",value:function(){var e=this.props,t=e.isLens,n=e.id;return Object(O.c)("div",{className:"VideoErrorCard"},Object(O.c)(g.b,h()({},this.props,t&&{playerUrl:"https://www.zhihu.com/video/".concat(n)},{thumbnail:this.renderThumbnail(),showPlayButton:!1,onBeforePlay:function(){return!1}})))}}]),n}(m.Component);j.propTypes={error:v.a.object.isRequired};t.a=j},function(e,t,n){"use strict";var r=n(7),o=n(8),i=n(9),a=n(10),c=n(5),s=n(0),u=n(2),l=n.n(u),d=n(1),f=n(23),p=n(13),h=n(45),b=n(6),v=n.n(b),m=(n(1106),n(1099)),g=n(1098),O=n(1095),y=n(1088),j=n(1059),E=n(1096),C=n(1053),w=n(1097),T=n(1060),_=n(11),S=(n(43),n(256),n(73)),A=(n(58),n(35)),k=n(38),R=n(28),I=n(179),x=n(156),N=n(74),D=n(143),P=(n(114),n(124)),L=n(309),M=n(545);function U(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}var B=function(e){Object(i.a)(n,e);var t=U(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={reportModalShown:!1,isReplying:!1,collapsed:!0,guideShown:!1},e.getRedirectUrl=function(){var t=e.props.parent;switch(t.type){case"answer":return"/question/".concat(t.question.id,"/answer/").concat(t.id);case"article":return"https://zhuanlan.zhihu.com/p/".concat(t.id);default:return""}},e.like=e.context.authRequired((function(t){var n=e.props;(0,n.onLike)(n.comment.id,t)}),R.J.like,A.b),e.dislike=e.context.authRequired((function(){var t=e.props;(0,t.onDislike)(t.comment.id)}),R.J.like,A.b),e.delete=function(){var t=e.props;(0,t.onDelete)(t.comment.id)},e.feature=function(){var t=e.props;(0,t.onFeature)(t.comment.id)},e.collapse=function(){var t=e.props;(0,t.onCollapse)(t.comment.id)},e.approve=function(){var t=e.props;(0,t.onApprove)(t.comment.id)},e.showConversation=function(){var t=e.props;(0,t.onShowConversation)(t.comment.id)},e.startReply=e.context.authRequired((function(){e.setState({isReplying:!0})}),void 0,A.b),e.stopReply=function(){e.setState({isReplying:!1})},e.openReportModal=e.context.authRequired((function(){e.setState({reportModalShown:!0})})),e.closeReportModal=function(t){if(t){var n=t.result.payload,r=n&&n.message||n&&n.code&&"举报失败";t.commentDeleteResult&&!(t.commentDeleteResult.payload||{}).code?D.b.showModal({reportText:r}):Object(P.b)(r||"举报成功")}e.setState({reportModalShown:!1})},e.handleExpand=function(){e.setState({collapsed:!1})},e.handleToggleGuide=function(){e.setState({guideShown:!e.state.guideShown})},e.handleDelete=function(){return e.setState({deleteModal:!0})},e.handleCloseDelete=function(){return e.setState({deleteModal:!1})},e}return Object(o.a)(n,[{key:"renderRoleInfo",value:function(e,t){return"normal"===e?null:Object(s.b)("span",{className:"CommentItem-roleInfo",children:"ancestor"===e||"author"===e&&"question"===t?" (提问者) ":" (作者) "})}},{key:"renderReplyTo",value:function(){var e=this.props.comment,t=e.replyToAuthor,n=e.resourceType;if(!t)return null;var r=t.member,o=void 0===r?{}:r,i=t.role;return Object(s.c)("span",{children:[Object(s.b)("span",{className:"CommentItem-reply",children:"回复"}),Object(s.b)(N.a,{className:v()({"CommentItem-userLink":void 0}),noBadge:!0,noHoverCard:!0,user:o}),this.renderRoleInfo(i,n)]})}},{key:"renderInner",value:function(){var e=this,t=this.props,n=t.comment,r=n.isDelete,o=n.collapsed,i=t.isConversation,a=t.ownerAuthorIsOrg;if(r)return i?Object(s.b)("div",{className:"CommentItem-deletedContent",children:"这里有一条已删除的评论"}):null;if(o&&i&&this.state.collapsed)return Object(s.c)("div",{className:"CommentItem-deletedContent",children:["这里有一条已折叠的评论,",Object(s.b)(_.c,{preset:"plain",onClick:this.handleExpand,children:"查看"})]});var c,u=this.state,l=u.reportModalShown,d=u.isReplying,f=this.props,p=f.parent,h=p.canComment,b=(h=void 0===h?{status:!0}:h).status,A=p.questionType,k=f.commentNeedsReview,R=f.comment,P=f.onReply,U=f.status,B=f.type,z=f.canOperate,F=f.commentPattern,G=f.isMobile,V=R.id,H=R.author,q=R.content,K=R.voteCount,W=R.replyToAuthor,Y=R.isAuthor,Q=R.isParentAuthor,Z=R.createdTime,J=R.featured,X=R.voting,$=R.reviewing,ee=R.disliked,te=R.resourceType,ne=R.collapsedReason,re=void 0===ne?"":ne,oe=H||{},ie=oe.member,ae=oe.role;if(d)c=Object(s.b)(M.a,{type:"comment",id:V,commentNeedsReview:k,className:"CommentItem-editor",defaultActive:!0,replyTo:R,onCancel:this.stopReply,onSubmit:P});else if("reviewing"===U)c=Object(s.c)("div",{className:"CommentItem-footer",children:[Object(s.c)(_.c,{preset:"plain",onClick:this.approve,children:[Object(s.b)(m.a,{style:{marginRight:5},center:!0,size:14}),"公开"]}),Object(s.c)(_.c,{className:v()({"CommentItem-hoverBtn":!0}),preset:"plain",onClick:this.handleDelete,children:[Object(s.b)(g.a,{style:{marginRight:5},center:!0,size:16}),"删除"]})]});else{var ce=Y||Q&&("question"!==B||"commercial"===A);c=Object(s.c)("div",{className:v()("CommentItem-footer",{"CommentItem-mobileFooter":void 0}),children:[Object(s.c)(_.c,{className:v()("CommentItem-likeBtn",X&&"is-liked"),preset:"plain",onClick:this.like,disabled:Y||!b,children:[Object(s.b)(O.a,{style:{marginRight:5},center:!0,size:16}),K>0?K:"赞"]}),o&&re&&Object(s.c)("div",{className:"CommentItem-walleTag",children:["阴阳怪气自动折叠"===re&&Object(s.b)(y.a,{size:16,className:"CommentItem-walleIcon"}),re]}),!i&&W&&Object(s.c)(_.c,{preset:"plain",className:"CommentItem-talkBtn",onClick:this.showConversation,children:[Object(s.b)(j.a,{style:{marginRight:5},center:!0,size:16}),"查看对话"]}),!i&&!Y&&b&&!o&&Object(s.c)(_.c,{preset:"plain",className:v()({"CommentItem-hoverBtn":!0}),onClick:this.startReply,children:[Object(s.b)(E.a,{style:{marginRight:5},center:!0,size:16}),"回复"]}),Q&&z&&!G&&Object(s.c)(_.c,{className:v()({"CommentItem-hoverBtn":!Y}),preset:"plain",onClick:this.feature,children:[Object(s.b)(C.a,{style:{marginRight:5},center:!0,size:16}),J?"取消推荐":"推荐"]}),Q&&z&&!G&&Object(s.c)(_.c,{className:v()({"CommentItem-hoverBtn":!Y}),preset:"plain",onClick:this.collapse,children:[Object(s.b)(w.a,{style:{marginRight:5},center:!0,size:14}),o?"取消折叠":"折叠"]}),!Q&&!Y&&z&&!G&&Object(s.c)(_.c,{className:v()({"CommentItem-hoverBtn":!0}),preset:"plain",onClick:this.dislike,children:[Object(s.b)(O.a,{style:{transform:"rotate(180deg)",marginRight:5},size:16,center:!0}),ee?"取消踩":"踩"]}),Y||Object(s.c)(_.c,{className:v()({"CommentItem-hoverBtn":!0}),preset:"plain",onClick:this.openReportModal,children:[Object(s.b)(T.a,{style:{marginRight:5},center:!0,size:16}),"举报"]}),ce&&Object(s.c)(_.c,{className:v()({"CommentItem-hoverBtn":!Y}),preset:"plain",onClick:this.handleDelete,children:[Object(s.b)(g.a,{style:{marginRight:5},center:!0,size:16}),"删除"]}),void 0,void 0,Object(s.b)(D.a,{shown:this.state.deleteModal,id:V,onDelete:this.delete,onClose:this.handleCloseDelete}),Object(s.b)(I.a,Object.assign({type:"comment",urlToken:V,shown:l,onClose:this.closeReportModal},ce&&{onDeleteComment:function(){return e.props.onDelete(V)}},{notification:{failure:L.a},zaEnabled:!0}))]})}return Object(s.c)("div",{children:[Object(s.c)("div",{className:"CommentItem-meta",children:[ie&&Object(s.b)(N.a,{className:"CommentItem-avatar",avatar:!0,noHoverCard:"fixed"===F,user:ie}),ie&&Object(s.b)(N.a,{className:v()({"CommentItem-userLink":void 0}),noBadge:!0,noHoverCard:!0,user:ie}),this.renderRoleInfo(ae,te),this.renderReplyTo(),$&&Object(s.b)(w.a,{className:"CommentItem-reviewing","data-tooltip":"".concat(!1===a?"评论未公开,由作者筛选后显示":"已开启预审评论,评论由机构筛选后公开"),center:!0,size:14}),Object(s.b)("span",{className:"CommentItem-time",children:Object(S.toRelativeString)(Z)})]}),Object(s.b)(x.a,{className:"CommentItem-content",html:q}),c]})}},{key:"render",value:function(){var e=this.renderInner(),t=this.props,n=t.parent;n.type,n.id,t.isWechat;return e&&Object(s.c)("div",{className:"CommentItem",ref:this.props.onRef,children:[e,void 0]})}}]),n}(d.PureComponent);B.propTypes={comment:l.a.object.isRequired,parent:l.a.object.isRequired,commentNeedsReview:l.a.bool,type:l.a.string,isConversation:l.a.bool,onLike:l.a.func.isRequired,onShowConversation:l.a.func,onReply:l.a.func,onFeature:l.a.func,onDelete:l.a.func.isRequired,onCollapse:l.a.func,commentPattern:l.a.string,isMobile:l.a.bool},B.contextTypes={currentUser:l.a.object,authRequired:l.a.func};t.a=Object(f.compose)(h.withRouter,Object(p.connect)((function(e){return{isWechat:e.env.userAgent.Wechat,shouldSpecialOia:Object(k.j)(e)}})))(B)},function(e,t,n){"use strict";var r=n(30),o=n.n(r),i=n(41),a=n.n(i),c=n(1),s=n(6),u=n.n(s),l=n(3),d=Object(c.forwardRef)((function(e,t){var n=e.as,r=void 0===n?"div":n,i=e.className,c=e.large,s=e.isFocus,d=a()(e,["as","className","large","isFocus"]);return Object(l.c)(r,o()({},d,{ref:t,className:u()("InputLike",i,{"is-focus":s,"is-large":c})}))}));t.a=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(27),s=n.n(c),u=n(16),l=n.n(u),d=n(25),f=n.n(d),p=n(1),h=n.n(p),b=n(2),v=n.n(b),m=n(437),g=n(438),O=n(439),y=n(62),j=function(e){function t(){return o()(this,t),s()(this,l()(t).apply(this,arguments))}return f()(t,e),a()(t,[{key:"render",value:function(){var e=this.props.score;return h.a.createElement("span",{className:"zhihu-advert-stars-score"},Object(y.j)(e).map((function(e,t){return 1===e?h.a.createElement(m.a,{key:t,style:{width:"12px",height:"12px"}}):h.a.createElement("span",{key:t,className:"zhihu-advert-stars-score-item"},h.a.createElement(g.a,{style:{width:"12px",height:"12px"}}),Boolean(e)&&h.a.createElement("span",{style:{width:"".concat(100*e,"%"),position:"absolute",left:"0px",top:"0px",overflow:"hidden"}},h.a.createElement(O.a,{style:{width:"12px",height:"12px"}})))})),this.props.showScore&&h.a.createElement("span",{style:{marginLeft:4}},e,"分"))}}]),t}(p.PureComponent);j.propTypes={score:v.a.number,showScore:v.a.bool},j.defaultProps={score:0,showScore:!1}},function(e,t,n){"use strict";var r=n(119),o=n(15),i=n(7),a=n(8),c=n(51),s=n(9),u=n(10),l=n(5),d=n(0),f=n(2),p=n.n(f),h=n(1),b=n(23),v=n(45),m=n(13),g=n(6),O=n.n(g),y=n(12),j=n(102),E=n.n(j),C=n(40),w=n.n(C),T=n(11),_=(n(53),n(104),n(101)),S=n(212),A=n(35),k=n(38);n(114);function R(){var e=Object(r.a)(["回复","",""]);return R=function(){return e},e}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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var x=function(){return""},N=function(e){Object(s.a)(n,e);var t=I(n);function n(e,r){var a;return Object(i.a)(this,n),(a=t.call(this,e,r)).initLocalComment=function(){var e=a.props,t=e.type,n=e.id;if(t&&n){var r=w.a.get("zhihu::comment_local_key")||[],o="".concat(t,"_").concat(n),i=r.find((function(e){return e.key===o})),c=i&&i.value;c&&a.setState({value:{toHTML:function(){return c}},hasNoContent:!1})}},a.saveLocalComment=function(e){var t=a.props,n=t.type,r=t.id;if(n&&r){var i=e?e.toHTML():a.state.value.toHTML(),c="".concat(n,"_").concat(r),s=(w.a.get("zhihu::comment_local_key")||[]).filter((function(e){return e.key!==c})),u=i?[].concat(Object(o.a)(s.slice(0,4)),[{key:c,value:i}]):s;w.a.set("zhihu::comment_local_key",u)}},a.handleChange=function(e){a.setState({value:e,hasNoContent:e.isEmpty})},a.handleCommentShow=a.context.authRequired((function(){a.setState({shown:!0}),a.hiddenInput.focus()})),a.handleCommentHide=function(){a.setState({shown:!1})},a.handleMobileComment=function(){a.onSubmit(),a.handleCommentHide()},a.focusInput=function(e){e.preventDefault(),a.input.focus()},a.onChange=a.handleChange.bind(Object(c.a)(a)),a.onFocus=a.handleFocus.bind(Object(c.a)(a)),a.onBlur=a.handleBlur.bind(Object(c.a)(a)),a.onSubmit=a.context.authRequired(a.handleSubmit.bind(Object(c.a)(a)),void 0,A.b),a.state={active:e.defaultActive,hasNoContent:!0,submitting:!1,shown:!1,value:{toHTML:x}},a}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.initLocalComment()}},{key:"componentWillUnmount",value:function(){this.saveLocalComment()}},{key:"handleFocus",value:function(){this.setState({active:!0})}},{key:"handleBlur",value:function(){var e=this;setTimeout((function(){return e.setState({active:!1})}),100)}},{key:"handleSubmit",value:function(){var e=this,t=this.props,n=t.replyTo,r=t.onSubmit,o=t.onCancel,i=this.state.submitting,a=this.input.toHTML();if(a&&r&&!i){this.setState({submitting:!0}),this.saveLocalComment();var c=r(a,n);c.then?c.then((function(){o&&o(),e.input?(e.input.reset(),e.setState({value:{toHTML:x}},(function(){return e.saveLocalComment()}))):e.saveLocalComment({toHTML:x})})).finally((function(){e.setState({submitting:!1})})):(this.setState({submitting:!1}),o&&o(),this.input.reset()),y.a.trackEvent(this,{action:"Comment",element:"Button"})}}},{key:"renderInput",value:function(e){var t=this,n=e.placeholder,r=e.className,o=this.props.autoFocus;return Object(d.c)(h.Fragment,{children:[Object(d.b)(_.b,{keyMap:{FOCUS_COMMENT_INPUT:"shift+c"},handlers:{FOCUS_COMMENT_INPUT:this.focusInput}}),Object(d.b)(S.a,{className:O()("CommentEditor-input",r),defaultValue:this.state.value.toHTML(),allowMention:!0,allowPasteRichText:!1,autoFocus:Boolean(void 0)||o,outputBlockType:"div",ref:function(e){t.input=e},placeholder:n,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,onSubmit:this.onSubmit,minRows:5})]})}},{key:"render",value:function(){var e=this.props,t=e.replyTo,n=e.commentNeedsReview,r=e.className,o=(e.onClick,e.onCancel),i=e.ownerAuthorIsOrg,a=e.ownerAuthorIsBrand,c=(e.type,e.id,e.shouldOia,e.preset,this.state),s=c.active,u=c.hasNoContent,l=c.submitting,f=i?"机构":"作者",p={preset:"primary",color:"blue",children:"评论",disabled:u||l};if(t){var h=E()(R(),t.author.member.name,n?",评论由".concat(f,"筛选后公开"):"");return Object(d.c)("div",{className:O()(r,"CommentEditor--inCommentItem",{"CommentEditor--active":s||!u}),children:[this.renderInput({placeholder:h}),Object(d.c)("div",{className:"CommentEditor-actions",children:[Object(d.b)(T.c,{preset:"plain",onClick:o,children:"取消"}),Object(d.b)(T.c,Object.assign({},p,{onClick:this.onSubmit}))]})]})}var b="写下你的评论...";n&&(b=a?"已开启预审评论,评论由品牌筛选后公开":i?"已开启预审评论,评论由机构筛选后公开":"评论由作者筛选后显示");O()(r,"CommentEditor--normal"),this.state.shown;return Object(d.c)("div",{className:O()(r,"CommentEditor--normal",{"CommentEditor--active":s||!u}),children:[this.renderInput({placeholder:b}),Object(d.b)(T.c,Object.assign({},p,{className:"CommentEditor-singleButton",onClick:this.onSubmit}))]})}}]),n}(h.Component);N.contextTypes={authRequired:p.a.func},N.defaultProps={defaultActive:!1,replyTo:null,inCommentItem:!1,autoFocus:!0,ownerAuthorIsOrg:!1,ownerAuthorIsBrand:!1},N.propTypes={className:p.a.string,defaultActive:p.a.bool,replyTo:p.a.object,inCommentItem:p.a.bool,commentNeedsReview:p.a.bool,canComment:p.a.object,onCancel:p.a.func,onSubmit:p.a.func.isRequired};t.a=Object(b.compose)(v.withRouter,Object(m.connect)((function(e){return{shouldOia:Object(k.i)(e)}})))(N)},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(225),a=n.n(i),c=n(3);t.a=function(e){var t=e.referenceList,n=e.onClick,r=e.listRef;return Object(c.c)(o.a.Fragment,null,Object(c.c)("h2",null,"参考"),Object(c.c)("ol",{className:"ReferenceList",onClick:n,ref:r},a()(t,"refKey").map((function(e){var n=t.filter((function(t){return t.refKey===e.refKey})),r=n.length>1?Object(c.c)(o.a.Fragment,null,Object(c.c)("span",{className:"ReferenceList-backHint","aria-label":"back"},"^"),n.map((function(e,t){var n="".concat(e.refKey,"_").concat(t);return Object(c.c)("sup",{key:n,className:"ReferenceList-backLink"},Object(c.c)("a",{href:"#".concat(n),"data-reference-link":!0},"abcdefghijklmnopqrstuvwxyz"[t%26]))}))):Object(c.c)("a",{className:"ReferenceList-backLink",href:"#".concat(e.refKey,"_0"),"aria-label":"back","data-reference-link":!0},"^");return Object(c.c)("li",{id:e.refKey,key:e.refKey,tabIndex:0},r,e.text&&Object(c.c)("span",null,e.text),e.text&&e.url&&" ",e.url&&Object(c.c)("a",{href:e.url,className:"external",target:"_blank",rel:"noopener noreferrer"},e.url))}))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));n(1);var r=n(2),o=n.n(r),i=n(31),a=n(3);function c(e){var t=e.id,r=e.parentType,o=e.parentId,c=e.suger,s=e.data,u=e.isEditor,l=void 0!==u&&u,d=Object(i.c)((function(){return n.e(2).then(n.bind(null,1356))}),t),f=Object(i.c)((function(){return n.e(3).then(n.bind(null,1354))}),t);return t.startsWith("fee_")&&f?Object(a.c)(f,{id:t,isEditor:l}):d?Object(a.c)(d,{id:t,parentType:r,urlToken:o,suger:c,data:s,isEditor:l}):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(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(30),h=n.n(p),b=n(1),v=n(6),m=n.n(v),g=n(12),O=n(1085),y=n(346),j=n(11),E=n(178),C=n(402),w=n(248),T=n(3);function _(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var S={upload:"视频上传失败"};function A(e){var t=e/1e3/1e3;return t=t<10?t.toPrecision(1):Math.round(t),"".concat(t,"M")}var k=function(e){s()(n,e);var t=_(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).handleStart=function(){e.trackEvent("Upload")},e.handleRetry=function(t){t.stopPropagation(),e.props.session.start()},e.handleAbort=function(){e.trackEvent("Cancel")},e.handleError=function(t){e.trackEvent("StatusReport",{status:{event:{action:"Upload",path:[{module:"VideoItem"}],url:location.href},result:"Fail"}}),e.props.onVideoUploadError&&e.props.onVideoUploadError(e.props.entityKey,t)},e.handleStep=function(t,n){Object(y.a)((function(){var r,o;return null===(r=(o=e.props).onVideoProcessStep)||void 0===r?void 0:r.call(o,t,n)})),"uploaded"===t&&e.trackEvent("StatusReport",{status:{event:{action:"Add"},result:"Success"}},{id:9381})},e.handleComplete=function(t){var n=e.props.session.state,r=n.uploadTime,o=n.transcodeTime;e.trackEvent("StatusReport",{status:{event:{action:"Upload",path:[{module:"VideoItem"}],url:location.href},result:"Success"},play:{upload_time:r,transcode_time:o}}),e.handleVideoUploadComplete(t)},e}return a()(n,[{key:"componentDidMount",value:function(){this.pendingEvents=[];var e=this.props.session;this.video=e.video,this.setModule(),e.addListener("start",this.handleStart),e.addListener("abort",this.handleAbort),e.addListener("error",this.handleError),e.addListener("step",this.handleStep),e.addListener("complete",this.handleComplete),e.state.error||e.start()}},{key:"componentWillReceiveProps",value:function(e){this.video!==e.session.video&&(this.video=e.session.video,this.setModule(),this.flushPendingEvents())}},{key:"componentWillUnmount",value:function(){var e=this.props.session;e.removeListener("start",this.handleStart),e.removeListener("abort",this.handleAbort),e.removeListener("error",this.handleError),e.removeListener("step",this.handleStep),e.removeListener("complete",this.handleComplete),e.abort()}},{key:"setModule",value:function(){g.a.setModule(this,{module:"VideoItem"},{card:{content:{type:"Video",video_id:this.video?this.video.id:null}}})}},{key:"trackEvent",value:function(e,t,n){this.video?g.a.trackEvent(this,Object.assign({},n,{action:e}),t):this.pendingEvents.push({action:e,extra:t,detailView:n})}},{key:"flushPendingEvents",value:function(){var e=this,t=this.pendingEvents;this.pendingEvents=[],t.forEach((function(t){var n=t.action,r=t.extra,o=t.detailView;e.trackEvent(n,r,o)}))}},{key:"handleVideoUploadComplete",value:function(e){if(this.props.onVideoUploaded){var t=this.props.data,n=t.thumbnail,r=t.title;this.props.onVideoUploaded(this.props.entityKey,Object.assign({},e,{isLens:!0,id:e.id,isPlayable:!0,title:r||"",thumbnail:n||e.thumbnail,needUploadThumbnail:e.needUploadThumbnail||Boolean(n),url:"https://www.zhihu.com/video/".concat(e.id),playerUrl:"https://www.zhihu.com/video/".concat(e.id)}))}}},{key:"renderThumbnail",value:function(){var e=this.props,t=e.session,n=e.data,r=e.handleVideoPosterChange,o=e.isPin,i=e.coverButtonText,a=e.isVideoAnswer,c=t.state,s=c.uploading,u=c.uploadingType,l=c.error,d=c.errorData,f=c.fileSize,p=c.uploadedSize,b=n.thumbnail,v=!(o||a&&l)&&Object(T.c)(C.a,h()({triggerClassName:m()("Editable-videoUploader-uploadPosterButton",{"is-videoAnswer":a}),onVideoPosterChange:r,coverButtonText:i},this.props.data));return Object(T.c)("div",{className:"Editable-videoUploader-thumbnail"},b&&Object(T.c)("img",{src:b,alt:"视频封面",className:"Editable-videoUploader-image"}),b&&Object(T.c)("div",{className:m()("Editable-videoUploader-imageMask",{"is-videoAnswer":a})}),Object(T.c)("div",{className:m()("Editable-videoUploader-text",{"is-bright":b&&a})},Object(T.c)("div",{className:m()("Editable-videoUploader-status",{"is-videoAnswer":a})},s&&"upload"===u&&"视频上传中",l&&(S[d.type]||d.payload&&d.payload.message||"未知错误"),l&&Object(T.c)("div",{className:m()("Editable-videoUploader-retry",{"is-videoAnswer":a})},Object(T.c)(j.c,{preset:"link",color:"blue",icon:O.a,label:"重试",onClick:this.handleRetry}))),s&&Object(T.c)("div",{className:m()("Editable-videoUploader-size",{"is-videoAnswer":a})},A(p)," / ",A(f))),Object(T.c)("div",{className:m()("Editable-videoUploader-progress",{"is-videoAnswer":a})},Object(T.c)("div",{className:m()("Editable-videoUploader-progress-bar",{"is-error":l}),style:{width:l?"100%":"".concat(p/f*100,"%")}})),v)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.onClick,r=e.onMouseDown,o=e.allowVideoTitleChange,i=e.handleVideoTitleChange,a=e.isVideoAnswer;return Object(T.c)("div",{className:m()("Editable-videoUploader",t,{"is-videoAnswer":a}),onClick:n,onMouseDown:r},Object(T.c)(E.b,h()({isLens:!0,id:"0",isPlayable:!0,isVideoAnswer:a,url:"https://www.zhihu.com/video/".concat("0"),playerUrl:"https://www.zhihu.com/video/".concat("0"),thumbnail:this.renderThumbnail(),showPlayButton:!1,onBeforePlay:function(){return!1}},o()&&{isVideoTitleEditable:!0,onVideoTitleChange:i})))}}]),n}(b.Component);k.defaultProps={allowVideoTitleChange:function(){return!1},isVideoAnswer:!1};t.a=Object(w.a)((function(e){return{type:"video",value:e.data.upload.file}}))(k)},,function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(109))},function(e,t,n){var r=n(366),o=n(554),i=n(556),a=n(774),c=n(163),s=n(333),u=n(562);e.exports=function e(t,n,l,d,f){t!==n&&i(n,(function(i,s){if(f||(f=new r),c(i))a(t,n,s,l,e,d,f);else{var p=d?d(u(t,s),i,s+"",t,n,f):void 0;void 0===p&&(p=i),o(t,s,p)}}),s)}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(371),o=n(327);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},function(e,t,n){var r=n(262),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(773)();e.exports=r},function(e,t,n){(function(e){var r=n(188),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,c=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(328)(e))},function(e,t,n){var r=n(461);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(188).Uint8Array;e.exports=r},function(e,t,n){var r=n(462),o=n(463),i=n(329);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){var r=n(779),o=n(330),i=n(135),a=n(332),c=n(375),s=n(373),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),d=!n&&!l&&a(e),f=!n&&!l&&!d&&s(e),p=n||l||d||f,h=p?r(e.length,String):[],b=h.length;for(var v in e)!t&&!u.call(e,v)||p&&("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||c(v,b))||h.push(v);return h}},function(e,t,n){var r=n(782),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,c=o(i.length-t,0),s=Array(c);++a<c;)s[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=n(s),r(e,this,u)}}},function(e,t,n){var r=n(783),o=n(785)(r);e.exports=o},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},function(e,t,n){"use strict";var r=n(569),o=n(786),i=n(60);e.exports=function(e){e=(e||"").trim();var t={protocols:r(e),protocol:null,port:null,resource:"",user:"",pathname:"",hash:"",search:"",href:e,query:Object.create(null)},n=e.indexOf("://"),a=null,c=null;return e.startsWith(".")&&(e.startsWith("./")&&(e=e.substring(2)),t.pathname=e,t.protocol="file"),t.protocol=t.protocol||t.protocols[0]||(o(e)?"ssh":"/"===e.charAt(1)?(e=e.substring(2))&&"":"file"),-1!==n&&(e=e.substring(n+3)),c=e.split("/"),"file"!==t.protocol&&(t.resource=c.shift()),2===(a=t.resource.split("@")).length&&(t.user=a[0],t.resource=a[1]),2===(a=t.resource.split(":")).length&&(t.resource=a[0],t.port=Number(a[1]),isNaN(t.port)&&(t.port=null,c.unshift(a[1]))),c=c.filter(Boolean),t.pathname=t.pathname||("file"!==t.protocol||"/"===t.href[0]?"/":"")+c.join("/"),2===(a=t.pathname.split("#")).length&&(t.pathname=a[0],t.hash=a[1]),2===(a=t.pathname.split("?")).length&&(t.pathname=a[0],t.search=a[1]),t.query=i.parse(t.search),t}},function(e,t,n){"use strict";e.exports=function(e,t){!0===t&&(t=0);var n=e.indexOf("://"),r=e.substring(0,n).split("+").filter(Boolean);return"number"==typeof t?r[t]:r}},function(e,t,n){"use strict";var r=n(227);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(224)),i=n(571),a=n(792),c=function(e){(0,o.default)("undefined"!=typeof window,"statsc-client should be used in browser environment.");var t=e.appName,n=e.env,r=e.platform,c=e.version;(0,o.default)("string"==typeof t,"statsc-client.connect() needs appName at least.");var s={environments:{appName:t,env:n||(0,i.getEnv)(),platform:r||(0,i.getPlatform)(),version:c||(0,i.getVersion)()}};return e.endpoint&&(s.endpoint=e.endpoint),e._flushInterval&&(s._flushInterval=e._flushInterval),e.timingSampleRate&&(s.timingSampleRate=e.timingSampleRate),new a.Client(s)};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getVersion=t.getPlatform=t.getEnv=void 0;var r=n(791);t.getEnv=function(){try{return"production"}catch(e){return"development"}};t.getPlatform=function(){var e=(0,r.parseUA)();return e.Zhihu?e.Android?"Android":"iOS":e.Mobile?"mobile":"desktop"};t.getVersion=function(){var e=(0,r.parseUA)();if(e.Zhihu){var t=e.userAgent,n=e.Android?t.match(/Futureve\/(\d+\.\d+\.\d+)/):t.match(/osee2unifiedReleaseVersion\/(\d+\.\d+\.\d+)/);return n&&n[1]?n[1]:"unknown"}return"v1"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.statGenerator=void 0;var r=n(571),o=function(e){for(var t=e.appName,n=e.env||(0,r.getEnv)(),o=e.platform||(0,r.getPlatform)(),i=(e.version||(0,r.getVersion)()).replace(/\./g,"_"),a="".concat(n,".").concat(t,".").concat(o,".").concat(i),c=arguments.length,s=new Array(c>1?c-1:0),u=1;u<c;u++)s[u-1]=arguments[u];return s.length&&(a="".concat(a,".").concat(s.join("."))),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"".concat(a,".").concat(t.join("."))}};t.statGenerator=o;var i=o;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return function(t){try{for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.apply(void 0,[t].concat(r))}catch(e){console.error(e)}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t,n){if("undefined"!=typeof window&&window.statsc&&window.statsc[e]){var r=window.statsc;if("timing"!==e||function(e){return!(!e||e<=0)&&(e>=1||Math.random()<e)}(r.options.timingSampleRate)){var o=t.name,i=t.value,a=t.sampleRate;return n?r[e].call(r,o,a):"number"==typeof i?r[e].call(r,o,i,a):void 0}}},o={increment:function(e,t){return r("increment",{name:e,sampleRate:t},!0)},decrement:function(e,t){return r("decrement",{name:e,sampleRate:t},!0)},gauge:function(e,t,n){return r("gauge",{name:e,value:t,sampleRate:n},!1)},timing:function(e,t,n){return r("timing",{name:e,value:t,sampleRate:n},!1)},timer:function(e,t){return r("timer",{name:e,sampleRate:t},!0)}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPageName=t.setPageName=void 0;var r="";t.setPageName=function(e){r=e};t.getPageName=function(){return r||"Unknown"}},function(e,t,n){var r=n(329),o=n(806),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(471),o=n(463),i=n(470),a=n(577),c=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=c},function(e,t,n){var r=n(580),o=n(470),i=n(289);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(471),o=n(135);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t,n){var r=n(262)(n(188),"Set");e.exports=r},function(e,t,n){var r=n(262)(n(188),"WeakMap");e.exports=r},function(e,t,n){var r=n(286),o=n(288),i=n(135),a=n(326),c=r?r.prototype:void 0,s=c?c.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseVersionName=void 0,t.parseVersionName=function(e){var t=e.split("."),n={major:"0",minor:"0",patch:"0",tail:""};if(t[0]&&t[0].match(/\d+/)){var r=t[0].match(/\d+/);n.major=r[0]}if(t[1]&&t[1].match(/\d+/)){var o=t[1].match(/\d+/);n.minor=o[0]}if(t[2]&&t[2].match(/\d+/)){var i=t[2].match(/\d+/);n.patch=i[0]}var a=t[t.length-1];if(a&&a.match(/(\d+)(\D(.*))/)){var c=a.match(/(\d+)(\D(.*))/);n.tail=c[2]}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getVersionAndOS=void 0,t.getVersionAndOS=function(e){var t=e.iOS,n=e.Android,r=e.ZhihuIOSVersionName,o=e.ZhihuAndroidVersionName;return t?{OS:"IOS",version:r||""}:n?{OS:"ANDROID",version:o||""}:{OS:"",version:""}}},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.initOpenInApp=t.default=void 0;var o=n(832);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r(o).default}}),Object.defineProperty(t,"initOpenInApp",{enumerable:!0,get:function(){return o.initOpenInApp}})},function(e,t,n){var r=n(589);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t,n){var r=n(722),o=n(835),i=n(836);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(478),o=n(844),i=n(479);e.exports=function(e,t,n,a,c,s){var u=1&n,l=e.length,d=t.length;if(l!=d&&!(u&&d>l))return!1;var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var h=-1,b=!0,v=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++h<l;){var m=e[h],g=t[h];if(a)var O=u?a(g,m,h,t,e,s):a(m,g,h,e,t,s);if(void 0!==O){if(O)continue;b=!1;break}if(v){if(!o(t,(function(e,t){if(!i(v,t)&&(m===e||c(m,e,n,a,s)))return v.push(t)}))){b=!1;break}}else if(m!==g&&!c(m,g,n,a,s)){b=!1;break}}return s.delete(e),s.delete(t),b}},function(e,t,n){var r=n(163);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(850),o=n(851);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(336),o=n(854),i=n(290);e.exports=function(e,t,n){for(var a=-1,c=t.length,s={};++a<c;){var u=t[a],l=r(e,u);n(l,u)&&o(s,i(u,e),l)}return s}},function(e,t,n){"use strict";t.__esModule=!0,t.ZSE_83_VERSION=void 0;t.ZSE_83_VERSION={iOS:"5_2.0",Android:"4_2.0",web:"3_2.0"}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.zsAutoSignature,n=e.skipAutoSign,r=e.url,o=e.options,i=e.headers;return!1===t||"function"==typeof n&&n(r,o)||o.body instanceof FormData||Boolean(i&&i.has("x-zse-83")&&!i.has("x-zse-84"))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n){var r=t.url,o=t.options,i=void 0===n?{}:n,a=i.captureException,c=i.signatureSource;return e(r,o).catch((function(e){throw a&&"ResponseError"===e.name&&403===e.status&&e.payload&&[10001,10002].includes(e.payload.code)&&a(e,{type:"VerifyFailed",url:r,options:o,signatureSource:c}),e}))}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){t.__esModule=!0;t.ATTRIBUTE_NAMES={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"};var n=t.TAG_NAMES={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},r=(t.VALID_TAG_NAMES=Object.keys(n).map((function(e){return n[e]})),t.TAG_PROPERTIES={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src"},t.REACT_TAG_MAP={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"});t.HELMET_PROPS={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},t.HTML_TAG_MAP=Object.keys(r).reduce((function(e,t){return e[r[t]]=t,e}),{}),t.SELF_CLOSING_TAGS=[n.NOSCRIPT,n.SCRIPT,n.STYLE],t.HELMET_ATTRIBUTE="data-react-helmet"},function(e,t,n){var r=n(556),o=n(289);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){"use strict";var r=n(50),o=n(191),i=n(882);e.exports=function(e){if(!Number.isInteger(e)&&e!==1/0||!(e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");var t=[],n=0,a=function(){n--,t.length>0&&t.shift()()},c=function(){var e=o(r.mark((function e(t,o){var c,s,u,l,d=arguments;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n++,c=d.length,s=new Array(c>2?c-2:0),u=2;u<c;u++)s[u-2]=d[u];return l=i.apply(void 0,[t].concat(s)),o(l),e.prev=4,e.next=7,l;case 7:e.next=11;break;case 9:e.prev=9,e.t0=e.catch(4);case 11:a();case 12:case"end":return e.stop()}}),e,null,[[4,9]])})));return function(t,n){return e.apply(this,arguments)}}(),s=function(i,a){for(var s=arguments.length,u=new Array(s>2?s-2:0),l=2;l<s;l++)u[l-2]=arguments[l];t.push(c.bind.apply(c,[null,i,a].concat(u))),o(r.mark((function o(){return r.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.resolve();case 2:n<e&&t.length>0&&t.shift()();case 3:case"end":return r.stop()}}),o)})))()},u=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new Promise((function(t){return s.apply(void 0,[e,t].concat(n))}))};return Object.defineProperties(u,{activeCount:{get:function(){return n}},pendingCount:{get:function(){return t.length}},clearQueue:{value:function(){t.length=0}}}),u}},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){var r=n(483),o=n(476),i=n(606),a=n(607),c=n(135),s=n(885);e.exports=function(e){return o((function(t){var n=t.length,o=n,u=r.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if("function"!=typeof l)throw new TypeError("Expected a function");if(u&&!d&&"wrapper"==a(l))var d=new r([],!0)}for(o=d?o:n;++o<n;){l=t[o];var f=a(l),p="wrapper"==f?i(l):void 0;d=p&&s(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?d[a(p[0])].apply(d,p[3]):1==l.length&&s(l)?d[f]():d.thru(l)}return function(){var e=arguments,r=e[0];if(d&&1==e.length&&c(r))return d.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}},function(e,t,n){var r=n(883),o=n(69),i=r?function(e){return r.get(e)}:o;e.exports=i},function(e,t,n){var r=n(884),o=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],i=o.call(r,t)?n.length:0;i--;){var a=n[i],c=a.func;if(null==c||c==e)return a.name}return t}},function(e,t,n){var r=n(478),o=n(588),i=n(590),a=n(288),c=n(287),s=n(479);e.exports=function(e,t,n,u){var l=-1,d=o,f=!0,p=e.length,h=[],b=t.length;if(!p)return h;n&&(t=a(t,c(n))),u?(d=i,f=!1):t.length>=200&&(d=s,f=!1,t=new r(t));e:for(;++l<p;){var v=e[l],m=null==n?v:n(v);if(v=u||0!==v?v:0,f&&m==m){for(var g=b;g--;)if(t[g]===m)continue e;h.push(v)}else d(t,m,u)||h.push(v)}return h}},function(e,t,n){var r=n(888),o=n(334),i=n(456),a=parseFloat,c=Math.min,s=Math.random;e.exports=function(e,t,n){if(n&&"boolean"!=typeof n&&o(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=i(e),void 0===t?(t=e,e=0):t=i(t)),e>t){var u=e;e=t,t=u}if(n||e%1||t%1){var l=s();return c(e+l*(t-e+a("1e-"+((l+"").length-1))),t)}return r(e,t)}},function(e,t,n){"use strict";(function(e){var r=n(32),o=n(15),i=n(7),a=n(8),c=n(9),s=n(10),u=n(5),l=n(1),d=n(2),f=n.n(d),p=n(455),h=n.n(p),b=n(176),v=n(68),m=n.n(v),g=n(265),O=n(451),y=n.n(O),j=n(42);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(s.a)(this,n)}}var C="https://zhstatic.zhihu.com/assets/images/wechat-share-image.png",w=e.navigator?m()(navigator.userAgent):{},T=null,_=null,S=!1,A=0;function k(e,t){var n=h.a.parse(e,!0);return Object.assign(n.query,t),n.search=void 0,h.a.format(n)}var R=function(e){Object(c.a)(n,e);var t=E(n);function n(e){var r;return Object(i.a)(this,n),(r=t.call(this,e)).setShareInfoInZhihuApp=function(){j.a.ready().then((function(){return A?j.a.dispatch("share/setShareInfo",{wechatTimeline:r.timelineShareInfo,wechatMessage:r.sessionShareInfo}):Promise.resolve()})).catch((function(){y.a.ready.then((function(){A&&!w.Android&&(y.a.onShareWechatTimeLine(r.timelineShareInfo),y.a.onShareWechatSession(r.sessionShareInfo))}))}))},r.fetchSDKConfig=function(){var e=r.props.onError;return fetch("".concat(r.props.jssdkconfigAPIAddress,"?url=").concat(encodeURIComponent(location.href.split("#")[0]))).then((function(e){if(e.ok)return e.json()})).catch((function(t){"function"==typeof e&&e(t)}))},r.shouldAct=w.Wechat||w.Zhihu||w.QQ||w.Qzone,r.timelineShareInfo={},r.sessionShareInfo={},r}return Object(a.a)(n,[{key:"componentDidMount",value:function(){if(this.shouldAct){if(1===A)throw new Error("Multiple WechatShareInfo on page is not supported");A++,this.setShareInfo()}}},{key:"componentDidUpdate",value:function(e){!this.shouldAct||JSON.stringify(e.title)===JSON.stringify(this.props.title)&&e.desc===this.props.desc&&e.imgUrl===this.props.imgUrl&&JSON.stringify(e.extraQuery)===JSON.stringify(this.props.extraQuery)||this.setShareInfo()}},{key:"componentWillUnmount",value:function(){this.shouldAct&&(A--,this.clearShareInfo())}},{key:"getShareLink",value:function(e){var t=this.props.extraQuery,n=void 0===t?{}:t;if(!w.iOS||!w.Wechat)return k(e,n);if(e.split("#")[0]!==window.location.href.split("#")[0])return k(e,n);var r=e.indexOf("wechatShare=1")<0?1:2;return k(e,Object.assign({wechatShare:r},n))}},{key:"getShareInfo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TIMELINE_SHARE",n=Object.assign({title:document.title,desc:"与世界分享你的知识、经验和见解",link:location.href,imgUrl:e.imgUrl||C,summary:"与世界分享你的知识、经验和见解",url:location.href,pic:e.imgUrl||C},e),r=null;switch(t){case"TIMELINE_SHARE":r={utm_source:"wechat_timeline",utm_medium:"social"};break;case"SESSTION_SHARE":r={utm_source:"wechat_session",utm_medium:"social"};break;case"QQ_SESSION_SHARE":r={utm_source:"qq_session",utm_medium:"social"};break;case"QZONE_SHARE":r={utm_source:"qzone",utm_medium:"social"}}return r&&(n.link=k(n.link,r)),n.link=this.getShareLink(n.link),n.title=Object(g.sliceString)(n.title,500),n.desc=Object(g.sliceString)(n.desc,1e3),n}},{key:"setShareInfo",value:function(){this.makeShareInfo(),this.setShareInfoByEnv()}},{key:"setShareInfoByEnv",value:function(){return w.Wechat?this.setShareInfoInWechat():w.Zhihu?this.setShareInfoInZhihuApp():!(!w.QQ&&!w.Qzone)&&this.setShareInfoInQQ()}},{key:"setShareInfoInQQ",value:function(){var e=this;_||(_=Object(b.loadScript)("".concat(location.protocol).concat("//qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js"))),_.then((function(){window.setShareInfo(e.qqSessionShareInfo)}))}},{key:"setShareInfoInWechat",value:function(){var e=this,t=function(){window.wx.ready((function(){S=!0,window.wx.onMenuShareTimeline(e.timelineShareInfo),window.wx.onMenuShareAppMessage(e.sessionShareInfo)}))};if(S)t();else{var n=Object(o.a)(document.scripts).find((function(e){var t=e.src;return/.*\/\/res\.wx\.qq\.com\/open\/js\/jweixin-.+\.js$/.test(t)}));n?window.wx?t():n.addEventListener("load",(function(){window.wx&&t()})):(T||(T=Object(b.loadScript)("".concat(location.protocol).concat("//res.wx.qq.com/open/js/jweixin-1.2.0.js")).then(this.fetchSDKConfig).then((function(e){window.wx.config(Object.assign({},e,{beta:!0,jsApiList:["onMenuShareTimeline","onMenuShareAppMessage","launchApplication"]}))}))),T.then(t))}}},{key:"clearShareInfo",value:function(){this.timelineShareInfo={},this.sessionShareInfo={},this.setShareInfoByEnv()}},{key:"makeShareInfo",value:function(){var e=this.props,t=e.title,n=Object(r.a)(e,["title"]),o=t,i=t;t&&"object"==typeof t&&(o=t.timeline,i=t.appMessage),this.timelineShareInfo=this.getShareInfo(Object.assign({title:o},n),"TIMELINE_SHARE"),this.sessionShareInfo=this.getShareInfo(Object.assign({title:i},n),"SESSTION_SHARE"),this.qqSessionShareInfo=this.getShareInfo({title:t,summary:n.desc,pic:n.imgUrl,url:n.link},w.Qzone?"QZONE_SHARE":"QQ_SESSION_SHARE")}},{key:"render",value:function(){return null}}]),n}(l.Component);R.propTypes={jssdkconfigAPIAddress:f.a.string,title:f.a.oneOfType([f.a.string,f.a.shape({timeline:f.a.string,appMessage:f.a.string})]),desc:f.a.string,imgUrl:f.a.string,onError:f.a.func,extraQuery:f.a.object},R.defaultProps={jssdkconfigAPIAddress:"https://www.zhihu.com/wechat/jssdkconfig",title:"",desc:"",imgUrl:C},t.a=R}).call(this,n(109))},function(e,t,n){"use strict";var r=n(900),o=n(339),i={capture:!1,passive:!1};e.exports=function(e,t,n,a){var c="addEventListener",s="removeEventListener",u=!!o.supportPassiveEvent&&r({},i,a);return!e.addEventListener&&e.attachEvent&&(c="attachEvent",s="detachEvent",t="on"+t),e[c](t,n,u),{remove:function(){e[s](t,n)}}}},function(e,t,n){"use strict";var r=!1;if("undefined"!=typeof navigator){var o=navigator.userAgent.match(/MSIE (\d+\.\d+)/);o&&(r=parseFloat(o[1],10)<9)}e.exports=r},function(e,t,n){"use strict";e.exports={EVENT_END_DELAY:100,DEFAULT_THROTTLE_RATE:50}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(70),s=n.n(c),u=n(25),l=n.n(u),d=n(27),f=n.n(d),p=n(16),h=n.n(p),b=n(2),v=n.n(b),m=n(1),g=n(530),O=n.n(g),y=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 E=function(e){l()(n,e);var t=j(n);function n(){var e;return o()(this,n),(e=t.call(this)).handleMouseWheel=e.handleMouseWheel.bind(s()(e)),e.manualScroll=O()(e.manualScroll,50),e}return a()(n,[{key:"componentDidMount",value:function(){this.props.stopPropagation&&(this.scroller.addEventListener("mousewheel",this.handleMouseWheel),this.scroller.addEventListener("DOMMouseScroll",this.handleMouseWheel))}},{key:"handleMouseWheel",value:function(e){var t;"mousewheel"===e.type?t=-e.wheelDelta:"DOMMouseScroll"===e.type&&(t=40*e.detail),t&&(e.preventDefault(),this.manualScroll(t))}},{key:"manualScroll",value:function(e){this.scroller&&(this.scroller.scrollTop=e+this.scroller.scrollTop)}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.children,o=t.onRef;return Object(y.c)("div",{ref:function(t){e.scroller=t,o&&o(t)},className:n},r)}}]),n}(m.Component);E.propTypes={stopPropagation:v.a.bool,onRef:v.a.func},t.a=E},function(e,t,n){"use strict";var r=/(?:[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F])/,o=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,i=/(?:[\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u3005\u3007\u3021-\u3029\u3038-\u303B\u3400-\u4DB5\u4E00-\u9FEF\uF900-\uFA6D\uFA70-\uFAD9]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])|(?:[\u30A1-\u30FA\u30FD-\u30FF\u31F0-\u31FF\u32D0-\u32FE\u3300-\u3357\uFF66-\uFF6F\uFF71-\uFF9D]|\uD82C\uDC00)|(?:[\u3041-\u3096\u309D-\u309F]|\uD82C[\uDC01-\uDD1E]|\uD83C\uDE00)|[\u1100-\u11FF\u302E\u302F\u3131-\u318E\u3200-\u321E\u3260-\u327E\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/;e.exports=function(e,t){if("string"!=typeof e||"string"!=typeof t)return!1;var n=e.slice(-1),a=t.slice(0,1);return!(""===n||""===a||o.test(n)||o.test(a)||r.test(n)||r.test(a)||i.test(n)===i.test(a))}},function(e,t,n){"use strict";var r=n(175),o=n(86),i=n(228),a=o.OrderedMap;e.exports=function(e){return e.first()instanceof r?function(e){var t={},n=void 0;return a(e.withMutations((function(e){e.forEach((function(r,o){var a=r.getKey(),c=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),u=r.getChildKeys(),l=r.getParentKey(),d=i();(t[a]=d,c)&&(e.get(c)?e.setIn([c,"prevSibling"],d):e.setIn([a,"nextSibling"],null));s&&(e.get(s)?e.setIn([s,"nextSibling"],d):e.setIn([a,"prevSibling"],null));if(l&&e.get(l)){var f=e.get(l).getChildKeys();e.setIn([l,"children"],f.set(f.indexOf(r.getKey()),d))}else e.setIn([a,"parent"],null),n&&(e.setIn([n.getKey(),"nextSibling"],d),e.setIn([a,"prevSibling"],t[n.getKey()])),n=e.get(a);u.forEach((function(t){e.get(t)?e.setIn([t,"parent"],d):e.setIn([a,"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 a(e.toArray().map((function(e){var t=i();return[t,e.set("key",t)]})))}(e)}},function(e,t,n){"use strict";var r=n(165),o=n(341),i=n(87);function a(e,t,n){var a=t.getCharacterList(),c=n>0?a.get(n-1):void 0,s=n<a.count()?a.get(n):void 0,u=c?c.getEntity():void 0,l=s?s.getEntity():void 0;if(l&&l===u&&"MUTABLE"!==e.__get(l).getMutability()){for(var d,f=function(e,t,n){var r;return o(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!=typeof r&&i(!1),r}(a,l,n),p=f.start,h=f.end;p<h;)d=a.get(p),a=a.set(p,r.applyEntity(d,null)),p++;return t.set("characterList",a)}return t}e.exports=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),c=t.getStartOffset(),s=n.get(i),u=a(r,s,c);u!==s&&(o[i]=u);var l=t.getEndKey(),d=t.getEndOffset(),f=n.get(l);i===l&&(f=u);var p=a(r,f,d);return p!==f&&(o[l]=p),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)}},function(e,t,n){"use strict";e.exports=function(e,t,n){if(n===e.count())t.forEach((function(t){e=e.push(t)}));else if(0===n)t.reverse().forEach((function(t){e=e.unshift(t)}));else{var r=e.slice(0,n),o=e.slice(n);e=r.concat(t,o).toList()}return e}},function(e,t,n){"use strict";var r=n(175);e.exports=function(e,t){if(!(e instanceof r))return null;var n=e.getNextSiblingKey();if(n)return n;var o=e.getParentKey();if(!o)return null;for(var i=t.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?t.get(a):null}return i?i.getNextSiblingKey():null}},function(e,t,n){"use strict";var r=n(86),o=n(486),i=n(341),a=r.List,c=r.Repeat,s=r.Record,u=o.thatReturnsTrue,l=s({start:null,end:null}),d=s({start:null,end:null,decoratorKey:null,leaves:null}),f={generate:function(e,t,n){var r=t.getLength();if(!r)return a.of(new d({start:0,end:0,decoratorKey:null,leaves:a.of(new l({start:0,end:0}))}));var o=[],s=n?n.getDecorations(t,e):a(c(null,r)),f=t.getCharacterList();return i(s,h,u,(function(e,t){o.push(new d({start:e,end:t,decoratorKey:s.get(e),leaves:p(f.slice(e,t).toList(),e)}))})),a(o)},getFingerprint:function(e){return e.map((function(e){var t=e.get("decoratorKey");return(null!==t?t+"."+(e.get("end")-e.get("start")):"")+"."+e.get("leaves").size})).join("-")}};function p(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return i(r,h,u,(function(e,r){n.push(new l({start:e+t,end:r+t}))})),a(n)}function h(e,t){return e===t}e.exports=f},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 i=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.getType=function(){return this.get("type")},t.prototype.getMutability=function(){return this.get("mutability")},t.prototype.getData=function(){return this.get("data")},t}((0,n(86).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));e.exports=i},function(e,t,n){"use strict";var r=n(489),o=n(87),i="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",a="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",c=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+i+a+"]"),s=new RegExp("["+i+a+"]");function u(e){var t=c.exec(e);return null==t?null:t[0]}function l(e){var t=u(e);return null==t?r.NEUTRAL:s.exec(t)?r.RTL:r.LTR}function d(e,t){if(t=t||r.NEUTRAL,!e.length)return t;var n=l(e);return n===r.NEUTRAL?t:n}function f(e,t){return t||(t=r.getGlobalDir()),r.isStrong(t)||o(!1),d(e,t)}var p={firstStrongChar:u,firstStrongCharDir:l,resolveBlockDir:d,getDirection:f,isDirectionLTR:function(e,t){return f(e,t)===r.LTR},isDirectionRTL:function(e,t){return f(e,t)===r.RTL}};e.exports=p},function(e,t,n){"use strict";e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},function(e,t,n){"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i}},function(e,t,n){"use strict";var r=n(100)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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=n(940),c=n(383),s=n(1),u=n(46),l=n(629),d=n(494),f=n(624),p=n(489),h=n(294),b=n(954),v=n(495),m=n(958),g=n(87),O=n(190),y=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},j=function(e){function t(){return o(this,t),i(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.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||y(e.selection,e.block.getKey())&&e.forceSelection},t.prototype.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=u.findDOMNode(this),r=d.getScrollParent(n),o=v(r),i=void 0;if(r===window){var a=b(n);(i=a.y+a.height-m().height)>0&&window.scrollTo(o.x,o.y+i+10)}else{n instanceof HTMLElement||g(!1),(i=n.offsetHeight+n.offsetTop-(r.offsetHeight+o.y))>0&&l.setTop(r,l.getTop(r)+i+10)}}},t.prototype._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),o=t.getText(),i=this.props.tree.size-1,u=y(this.props.selection,n);return this.props.tree.map((function(l,d){var h=l.get("leaves"),b=h.size-1,v=h.map((function(r,l){var f=c.encode(n,d,l),p=r.get("start"),h=r.get("end");return s.createElement(a,{key:f,offsetKey:f,block:t,start:p,selection:u?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===i&&l===b})})).toArray(),m=l.get("decoratorKey");if(null==m)return v;if(!e.props.decorator)return v;var g=O(e.props.decorator),y=g.getComponentForKey(m);if(!y)return v;var j=g.getPropsForKey(m),E=c.encode(n,d,0),C=o.slice(h.first().get("start"),h.last().get("end")),w=p.getHTMLDirIfDifferent(f.getDirection(C),e.props.direction);return s.createElement(y,r({},j,{contentState:e.props.contentState,decoratedText:C,dir:w,key:E,entityKey:t.getEntityAt(l.get("start")),offsetKey:E}),v)})).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(961),o=n(962),i=n(486),a=new RegExp("\r\n","g"),c={"text/rtf":1,"text/html":1};function s(e){if("file"==e.kind)return e.getAsFile()}var u=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(a,"\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;n<t.length;n++){var o=t[n].type;if(!r.isImage(o))return!1}return!0},e.prototype.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},e.prototype.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(s).filter(i.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},e.prototype.hasFiles=function(){return this.getFiles().length>0},e}();e.exports=u},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;r<t.childNodes.length;r++){var o=e(t.childNodes[r]);if(o)return o}}return null}},function(e,t,n){"use strict";(function(t){var r=n(87),o=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,n){var a=0,c=[];e.forEach((function(s){!function(e,n){if(!t.FileReader||e.type&&!(e.type in i))return void n("");if(""===e.type){var a="";return o.test(e.name)&&(a=e.name.replace(o,"")),void n(a)}var c=new FileReader;c.onload=function(){var e=c.result;"string"!=typeof e&&r(!1),n(e)},c.onerror=function(){n("")},c.readAsText(e)}(s,(function(t){a++,t&&c.push(t.slice(0,5e3)),a==e.length&&n(c.join("\r"))}))}))}}).call(this,n(109))},function(e,t,n){"use strict";var r=n(383),o=n(190);e.exports=function(e,t,n,i,a){var c=o(e.getSelection()),s=r.decode(t),u=s.blockKey,l=e.getBlockTree(u).getIn([s.decoratorKey,"leaves",s.leafKey]),d=r.decode(i),f=d.blockKey,p=e.getBlockTree(f).getIn([d.decoratorKey,"leaves",d.leafKey]),h=l.get("start"),b=p.get("start"),v=l?h+n:null,m=p?b+a:null;if(c.getAnchorKey()===u&&c.getAnchorOffset()===v&&c.getFocusKey()===f&&c.getFocusOffset()===m)return c;var g=!1;if(u===f){var O=l.get("end"),y=p.get("end");g=b===h&&y===O?a<n:b<h}else{g=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===u||e===f})).first()===f}return c.merge({anchorKey:u,anchorOffset:v,focusKey:f,focusOffset:m,isBackward:g})}},function(e,t,n){"use strict";var r=n(381);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:r(e.getCurrentContent(),t)}},function(e,t,n){"use strict";var r=n(205),o=n(87);var i=r.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var i=r===e.commonAncestorContainer;i?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var a,c=Array.from(t.getClientRects());if(n.push(c),i)return n.reverse(),(a=[]).concat.apply(a,n);t.setEndBefore(r)}o(!1)}:function(e){return Array.from(e.getClientRects())};e.exports=i},function(e,t,n){"use strict";var r=n(496),o=n(631),i=n(633),a=n(87),c=n(190);function s(e,t,n){var i=t,s=r(i);if(null!=s||e&&(e===i||e.firstChild===i)||a(!1),e===i&&((i=i.firstChild)instanceof Element&&"true"===i.getAttribute("data-contents")||a(!1),n>0&&(n=i.childNodes.length)),0===n){var l=null;if(null!=s)l=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}(i);l=c(o(d))}return{key:l,offset:0}}var f=i.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=u(b)}else p=c(s),h=u(f);return{key:p,offset:h}}function u(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,o,a,u){var l=n.nodeType===Node.TEXT_NODE,d=a.nodeType===Node.TEXT_NODE;if(l&&d)return{selectionState:i(e,c(r(n)),o,c(r(a)),u),needsRecovery:!1};var f=null,p=null,h=!0;return l?(f={key:c(r(n)),offset:o},p=s(t,a,u)):d?(p={key:c(r(a)),offset:u},f=s(t,n,o)):(f=s(t,n,o),p=s(t,a,u),n===a&&o===u&&(h=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:i(e,f.key,f.offset,p.key,p.offset),needsRecovery:h}}},function(e,t,n){"use strict";var r="\\s|(?![_])"+n(979).getPunctuation(),o=new RegExp("^(?:"+r+")*(?:['‘’]|(?!"+r+").)*(?:(?!"+r+").)"),i=new RegExp("(?:(?!"+r+").)(?:['‘’]|(?!"+r+").)*(?:"+r+")*$");function a(e,t){var n=t?i.exec(e):o.exec(e);return n?n[0]:e}var c={getBackward:function(e){return a(e,!0)},getForward:function(e){return a(e,!1)}};e.exports=c},function(e,t,n){"use strict";e.exports=function(e,t){var n,r=e.getSelection(),o=r.getStartKey(),i=r.getStartOffset(),a=e.getCurrentContent(),c=o;return t>a.getBlockForKey(o).getText().length-i?(c=a.getKeyAfter(o),n=0):n=i+t,r.merge({focusKey:c,focusOffset:n})}},function(e,t,n){"use strict";var r,o=i||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(100);function a(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=n(165),s=n(266),u=n(175),l=n(490),d=n(382),f=n(245),p=n(86),h=n(86).Set,b=n(990),v=n(294),m=n(228),g=n(640),O=n(87),y=n(488),j=f.draft_tree_data_support,E=p.List,C=p.OrderedSet,w=new RegExp("\r","g"),T=new RegExp("\n","g"),_=new RegExp(" ","g"),S=new RegExp(" ?","g"),A=new RegExp("​?","g"),k=["bold","bolder","500","600","700","800","900"],R=["light","lighter","100","200","300","400"],I={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},x=(a(r={},v("public/DraftStyleDefault/depth0"),0),a(r,v("public/DraftStyleDefault/depth1"),1),a(r,v("public/DraftStyleDefault/depth2"),2),a(r,v("public/DraftStyleDefault/depth3"),3),a(r,v("public/DraftStyleDefault/depth4"),4),r),N=["className","href","rel","target","title"],D=["alt","className","height","src","width"],P=void 0,L={text:"",inlines:[],entities:[],blocks:[]},M={children:E(),depth:0,key:"",type:""},U=function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null},B=function(e,t,n){var r=n.filter((function(t){return t.element===e||t.wrapper===e||t.aliasedElements&&t.aliasedElements.some((function(t){return t===e}))})).keySeq().toSet().toArray().sort();switch(r.length){case 0:return"unstyled";case 1:return r[0];default:return function(e,t,n){for(var r=0;r<n.length;r++){var o=n[r](e,t);if(o)return o}return null}(e,t,[U])||"unstyled"}},z=function(e,t,n){var r=e.text.slice(-1),o=t.text.slice(0,1);if("\r"!==r||"\r"!==o||n||(e.text=e.text.slice(0,-1),e.inlines.pop(),e.entities.pop(),e.blocks.pop()),"\r"===r){if(" "===t.text||"\n"===t.text)return e;" "!==o&&"\n"!==o||(t.text=t.text.slice(1),t.inlines.shift(),t.entities.shift())}return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},F=function(e){e instanceof HTMLAnchorElement||O(!1);var t=e.protocol;return"http:"===t||"https:"===t||"mailto:"===t},G=function(e){var t=new Array(1);return e&&(t[0]=e),o({},L,{text:" ",inlines:[C()],entities:t})},V=function(){return o({},L,{text:"\n",inlines:[C()],entities:new Array(1)})},H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o({},M,e)},q=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:m(),type:e,depth:Math.max(0,Math.min(4,t))})]}},K=function e(t,n,r,i,a,c,s,u,l,f){var p=P,h=n.nodeName.toLowerCase(),v=t,m="unstyled",g=!1,O=a&&B(a,i,u),y=o({},L),E=void 0;if("#text"===h){var C=n.textContent,w=C.trim();if(i&&""===w&&n.parentElement){var _=n.parentElement.nodeName.toLowerCase();if("ol"===_||"ul"===_)return{chunk:o({},L),entityMap:t}}return""===w&&"pre"!==a?{chunk:G(l),entityMap:t}:("pre"!==a&&(C=C.replace(T," ")),P=h,{chunk:{text:C,inlines:Array(C.length).fill(r),entities:Array(C.length).fill(l),blocks:[]},entityMap:t})}if(P=h,"br"===h)return"br"!==p||a&&"unstyled"!==O?{chunk:V(),entityMap:t}:{chunk:q("unstyled",s,f),entityMap:t};if("img"===h&&n instanceof HTMLImageElement&&n.attributes.getNamedItem("src")&&n.attributes.getNamedItem("src").value){var S=n,A={};D.forEach((function(e){var t=S.getAttribute(e);t&&(A[e]=t)})),n.textContent="📷",l=d.__create("IMAGE","MUTABLE",A||{})}r=function(e,t,n){var r=I[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;k.indexOf(t)>=0?e.add("BOLD"):R.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||(i&&(s+=1),i=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(x).some((function(n){e.classList.contains(n)&&(t=x[n])})),t}(n,s));var M=B(h,i,u),U=i&&"li"===a&&"li"===h,H=(!a||j)&&-1!==c.indexOf(h);(U||H)&&(E=(y=q(M,s,f)).blocks[0].key,a=h,g=!j),U&&(m="ul"===i?"unordered-list-item":"ordered-list-item");var K=n.firstChild;null!=K&&(h=K.nodeName.toLowerCase());for(var W=null;K;){K instanceof HTMLAnchorElement&&K.href&&F(K)?function(){var e=K,t={};N.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 Y=e(v,K,r,i,a,c,s,u,W||l,j?E:null),Q=Y.chunk;v=Y.entityMap,y=z(y,Q,j);var Z=K.nextSibling;!f&&Z&&c.indexOf(h)>=0&&a&&(y=z(y,V())),Z&&(h=Z.nodeName.toLowerCase()),K=Z}return g&&(y=z(y,q(m,s,f))),{chunk:y,entityMap:v}},W=function(e,t,n,r){e=e.trim().replace(w,"").replace(_," ").replace(S,"").replace(A,"");var i=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),a=t(e);if(!a)return null;P=null;var c=function(e,t){return t.some((function(t){return-1!==e.indexOf("<"+t)}))}(e,i)?i:["div"],s=K(r,a,C(),"ul",null,c,-1,n),u=s.chunk,l=s.entityMap;return 0===u.text.indexOf("\r")&&(u={text:u.text.slice(1),inlines:u.inlines.slice(1),entities:u.entities.slice(1),blocks:u.blocks}),"\r"===u.text.slice(-1)&&(u.text=u.text.slice(0,-1),u.inlines=u.inlines.slice(0,-1),u.entities=u.entities.slice(0,-1),u.blocks.pop()),0===u.blocks.length&&u.blocks.push(o({},L,{type:"unstyled",depth:0})),u.text.split("\r").length===u.blocks.length+1&&u.blocks.unshift({type:"unstyled",depth:0}),{chunk:u,entityMap:l}},Y=function(e){if(!e||!e.text||!Array.isArray(e.blocks))return null;var t=0,n=e.blocks,r=e.inlines,o=e.entities,i=j?u:s;return e.text.split("\r").reduce((function(e,a,s){a=y(a);var l=n[s],d=t+a.length,f=r.slice(t,d),p=o.slice(t,d),h=E(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=l.depth,v=l.type,g=l.parent,O=l.key||m(),j=null;if(g){var C=e.cacheRef[g],w=e.contentBlocks[C];if(w.getChildKeys().isEmpty()&&w.getText()){var T=w.getCharacterList(),_=w.getText();j=m();var S=new u({key:j,text:_,characterList:T,parent:g,nextSibling:O});e.contentBlocks.push(S),w=w.withMutations((function(e){e.set("characterList",E()).set("text","").set("children",w.children.push(S.getKey()))}))}e.contentBlocks[C]=w.set("children",w.children.push(O))}var A=new i({key:O,parent:g,type:v,depth:b,text:a,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(A),e.cacheRef[A.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]:l,r=W(e,t,n,d);if(null==r)return null;var o=r.chunk,i=r.entityMap,a=Y(o);return{contentBlocks:a,entityMap:i}}},function(e,t,n){"use strict";var r=n(205),o=n(87),i=r.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!i&&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(145),o=n(97),i=(n(293),n(991)),a=n(190),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(),i=n.getBlockBefore(r);if(i&&"atomic"===i.getType()){var a=n.getBlockMap().delete(i.getKey()),s=n.merge({blockMap:a,selectionAfter:t});if(s!==n)return o.push(e,s,"remove-range")}var u=c.tryToRemoveBlockStyle(e);return u?o.push(e,u,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),i=t.getStartKey(),a=n.getBlockForKey(i).getLength();if(t.getStartOffset()<a)return null;var c=n.getBlockAfter(i);if(!c||"atomic"!==c.getType())return null;var s=t.merge({focusKey:c.getKey(),focusOffset:c.getLength()}),u=r.removeRange(n,s,"forward");return u!==n?o.push(e,u,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),a=r.getAnchorKey();if(a!==r.getFocusKey())return t;var c=t.getCurrentContent(),s=c.getBlockForKey(a),u=s.getType();if("unordered-list-item"!==u&&"ordered-list-item"!==u)return t;e.preventDefault();var l=c.getBlockBefore(a);if(!l)return t;var d=l.getType();if("unordered-list-item"!==d&&"ordered-list-item"!==d)return t;var f=s.getDepth();if(!e.shiftKey&&f===n)return t;n=Math.min(l.getDepth()+1,n);var p=i(c,r,e.shiftKey?-1:1,n);return o.push(t,p,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),i=n.getStartKey(),c=n.getEndKey(),s=e.getCurrentContent(),u=n;if(i!==c&&0===n.getEndOffset()){var l=a(s.getBlockBefore(c));c=l.getKey(),u=u.merge({anchorKey:i,anchorOffset:n.getStartOffset(),focusKey:c,focusOffset:l.getLength(),isBackward:!1})}if(s.getBlockMap().skipWhile((function(e,t){return t!==i})).reverse().skipWhile((function(e,t){return t!==c})).some((function(e){return"atomic"===e.getType()})))return e;var d=s.getBlockForKey(i).getType()===t?"unstyled":t;return o.push(e,r.setBlockType(s,u,d),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?c.toggleBlockType(e,"code-block"):c.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),i=e.getCurrentInlineStyle();if(n.isCollapsed())return o.setInlineStyleOverride(e,i.has(t)?i.remove(t):i.add(t));var a,c=e.getCurrentContent();return a=i.has(t)?r.removeInlineStyle(c,n,t):r.applyInlineStyle(c,n,t),o.push(e,a,"change-inline-style")},toggleLink:function(e,t,n){var i=r.applyEntity(e.getCurrentContent(),t,n);return o.push(e,i,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var o=t.getAnchorKey(),i=e.getCurrentContent(),a=i.getBlockForKey(o),c=i.getFirstBlock();if(a.getLength()>0&&a!==c)return null;var s=a.getType(),u=i.getBlockBefore(o);if("code-block"===s&&u&&"code-block"===u.getType()&&0!==u.getLength())return null;if("unstyled"!==s)return r.setBlockType(i,t,"unstyled")}return null}};e.exports=c},function(e,t,n){"use strict";var r=n(497),o=n(491),i=n(205),a=i.isPlatform("Mac OS X"),c=i.isPlatform("Windows"),s=a&&i.isBrowser("Firefox < 29"),u=r.hasCommandModifier,l=r.isCtrlKeyCommand;function d(e){return a&&e.altKey||l(e)}e.exports=function(e){switch(e.keyCode){case 66:return u(e)?"bold":null;case 68:return l(e)?"delete":null;case 72:return l(e)?"backspace":null;case 73:return u(e)?"italic":null;case 74:return u(e)?"code":null;case 75:return!c&&l(e)?"secondary-cut":null;case 77:case 79:return l(e)?"split-block":null;case 84:return a&&l(e)?"transpose-characters":null;case 85:return u(e)?"underline":null;case 87:return a&&l(e)?"backspace-word":null;case 89:return l(e)?c?"redo":"secondary-paste":null;case 90:return function(e){return u(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 u(e)&&a?"backspace-to-start-of-line":d(e)?"backspace-word":"backspace"}(e);case o.LEFT:return s&&u(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return s&&u(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){var r=n(1011),o=n(499),i=n(1012);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t,n){e.exports=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}e=e&&e.hasOwnProperty("default")?e.default:e,t=t&&t.hasOwnProperty("default")?t.default:t,n=n&&n.hasOwnProperty("default")?n.default:n;var i=function(e){var t="undefined"==typeof DOMParser?null:new DOMParser;return t?t.parseFromString(e,"text/html"):null},a=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if("text/html"===r.type){r.getAsString((function(e){var n=i(e).querySelector("img");n&&n.src&&t(n.src)}));break}}},c=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=!("undefined"==typeof window||"undefined"==typeof navigator||!("ontouchstart"in window||navigator.msMaxTouchPoints>0)),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=l?f.touch:f.desktop,h="undefined"!=typeof window&&window.devicePixelRatio?window.devicePixelRatio:1,b=function(e){function i(){var e,t,n;r(this,i);for(var c=arguments.length,u=Array(c),l=0;l<c;l++)u[l]=arguments[l];return t=n=o(this,(e=i.__proto__||Object.getPrototypeOf(i)).call.apply(e,[this].concat(u))),n.state={drag:!1,my:null,mx:null,image:{x:.5,y:.5}},n.handleMouseDown=function(e){(e=e||window.event).preventDefault(),n.setState({drag:!0,mx:null,my:null})},n.handleMouseUp=function(){n.state.drag&&(n.setState({drag:!1}),n.props.onMouseUp())},n.handleMouseMove=function(e){if(e=e||window.event,!1!==n.state.drag){var t=e.targetTouches?e.targetTouches[0].pageX:e.clientX,r=e.targetTouches?e.targetTouches[0].pageY:e.clientY,o={mx:t,my:r},i=n.props.rotate;if(i=(i%=360)<0?i+360:i,n.state.mx&&n.state.my){var a=n.state.mx-t,c=n.state.my-r,u=n.state.image.width*n.props.scale,l=n.state.image.height*n.props.scale,d=n.getCroppingRect(),f=d.x,p=d.y;f*=u,p*=l;var h=function(e){return e*(Math.PI/180)},b=Math.cos(h(i)),v=Math.sin(h(i)),m=p+-a*v+c*b,g={x:(f+a*b+c*v)/u+1/n.props.scale*n.getXScale()/2,y:m/l+1/n.props.scale*n.getYScale()/2};n.props.onPositionChange(g),o.image=s({},n.state.image,g)}n.setState(o),n.props.onMouseMove(e)}},n.handleDragOver=function(e){(e=e||window.event).preventDefault()},n.handleDrop=function(){var e=arguments.length>0&&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&&a(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)}(i,t.Component),u(i,[{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,i={},a=this.getBorders(o),s=c(a,2),u=s[0],l=s[1],d=t,f=n;return this.isVertical()?(i.width=f,i.height=d):(i.width=d,i.height=f),i.width+=2*u,i.height+=2*l,{canvas:i,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,i=1-r.width,a=0,c=1-r.height;return(t>1||n>1)&&(o=-r.width,i=1,a=-r.height,c=1),s({},r,{x:Math.max(o,Math.min(r.x,i)),y:Math.max(a,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),l&&(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),l&&(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],i=r[1],a=this.getCroppingRect(),s=e.width*this.props.scale,u=e.height*this.props.scale,l=-a.x*s,d=-a.y*u;return this.isVertical()?(l+=i,d+=o):(l+=o,d+=i),{x:l,y:d,height:u,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),i=o[0],a=o[1],s=n.canvas.height,u=n.canvas.width;t=Math.max(t,0),t=Math.min(t,u/2-i,s/2-a),e.beginPath(),function(e,t,n,r,o,i){if(0===i)e.rect(t,n,r,o);else{var a=r-i,c=o-i;e.translate(t,n),e.arc(i,i,i,Math.PI,1.5*Math.PI),e.lineTo(a,0),e.arc(a,i,i,1.5*Math.PI,2*Math.PI),e.lineTo(r,c),e.arc(a,c,i,2*Math.PI,.5*Math.PI),e.lineTo(i,o),e.arc(i,c,i,.5*Math.PI,Math.PI),e.translate(-t,-n)}}(e,i,a,u-2*i,s-2*a,t),e.rect(u,0,-u,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),l&&(r[p.react.mouseDown]=this.handleMouseDown),t.createElement("canvas",s({ref:this.setCanvas},r))}}]),i}();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);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(d?[e.instanceOf(File)]:[]))),border:e.oneOfType([e.number,e.arrayOf(e.number)]),borderRadius:e.number,width:e.number,height:e.number,position:e.shape({x:e.number,y:e.number}),color:e.arrayOf(e.number),style:e.object,crossOrigin:e.oneOf(["","anonymous","use-credentials"]),onDropFile:e.func,onLoadFailure:e.func,onLoadSuccess:e.func,onImageReady:e.func,onImageChange:e.func,onMouseUp:e.func,onMouseMove:e.func,onPositionChange:e.func,disableDrop:e.bool},b.defaultProps={disableDrop:!1,scale:1,rotate:0,border:25,borderRadius:0,width:200,height:200,color:[0,0,0,.5],style:{},onDropFile:function(){},onLoadFailure:function(){},onLoadSuccess:function(){},onImageReady:function(){},onImageChange:function(){},onMouseUp:function(){},onMouseMove:function(){},onPositionChange:function(){}},b}(n(2),n(1),n(46))},function(e,t){e.exports=function(e){return null==e}},function(e,t,n){"use strict";var r=n(77),o=n.n(r);function i(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=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 i,c=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){s=!0,i=e},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c=["DIV","P","BLOCKQUOTE","PRE","CODE","OL","UL","H1","H2","H3","H4","H5","H6"],s=function(e){return c.includes(e.nodeName)||e.classList&&(e.classList.contains("video-box")||e.classList.contains("link-box")||e.classList.contains("origin_image")||e.classList.contains("content_image"))};t.a=function(e){if("undefined"==typeof window)return e;if(-1!==e.indexOf("<p>"))return e;var t=document,n=t.createElement("div");n.innerHTML=e;var r,a=i(o()(n.childNodes));try{for(a.s();!(r=a.n()).done;){var c=r.value;if("BR"===c.nodeName&&c.previousSibling&&"BR"!==c.previousSibling.nodeName&&c.nextSibling&&"BR"===c.nextSibling.nodeName){for(var u=t.createElement("p"),l=c.previousSibling;l&&!s(l)&&("BR"!==l.nodeName||l.previousSibling&&"BR"!==l.previousSibling.nodeName&&!s(l.previousSibling));){var d=u.childNodes;d.length>0?u.insertBefore(l,d[0]):u.appendChild(l),l=c.previousSibling}u.childNodes.length>0&&(n.insertBefore(u,c),c.nextSibling.parentNode.removeChild(c.nextSibling),c.parentNode.removeChild(c))}}}catch(e){a.e(e)}finally{a.f()}return n.innerHTML}},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(1023);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){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";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=e.Buffer,o=function(e){if("undefined"!=typeof atob)return atob(e);if(r)return r.from(e,"base64").toString("binary");throw new Error("Do not support Base64 decoding")},i=function(e){if("undefined"!=typeof btoa)return btoa(e);if(r)return r.from(String(e),"binary").toString("base64");throw new Error("Do not support Base64 encoding")}}).call(this,n(109))},function(e,t,n){"use strict";n.d(t,"animated",(function(){return D}));var r=n(24),o=n.n(r),i=n(39),a=n.n(i),c=n(22),s=n.n(c),u=n(25),l=n.n(u),d=n(27),f=n.n(d),p=n(16),h=n.n(p),b=n(79),v=n.n(b),m=n(401);n.o(m,"useSpring")&&n.d(t,"useSpring",(function(){return m.useSpring})),n.o(m,"useTransition")&&n.d(t,"useTransition",(function(){return m.useTransition}));var g=n(46),O=n(18),y=n(106);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 E=/^--/;function C(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||E.test(e)||T.hasOwnProperty(e)&&T[e]?(""+t).trim():t+"px"}var w={};var T={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},_=["Webkit","Ms","Moz","O"];T=Object.keys(T).reduce((function(e,t){return _.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),T);var S=/^(matrix|translate|scale|rotate|skew)/,A=/^(translate)/,k=/^(rotate|skew)/,R=function(e,t){return O.s.num(e)&&0!==e?e+t:e},I=function e(t,n){return O.s.arr(t)?t.every((function(t){return e(t,n)})):O.s.num(t)?t===n:parseFloat(t)===n},x=function(e){l()(n,e);var t=j(n);function n(e){var r=e.x,o=e.y,i=e.z,c=v()(e,["x","y","z"]);s()(this,n);var u=[],l=[];return(r||o||i)&&(u.push([r||0,o||0,i||0]),l.push((function(e){return["translate3d(".concat(e.map((function(e){return R(e,"px")})).join(","),")"),I(e,0)]}))),Object(O.l)(c,(function(e,t){if("transform"===t)u.push([e||""]),l.push((function(e){return[e,""===e]}));else if(S.test(t)){if(delete c[t],O.s.und(e))return;var n=A.test(t)?"px":k.test(t)?"deg":"";u.push(Object(O.y)(e)),l.push("rotate3d"===t?function(e){var t=a()(e,4),r=t[0],o=t[1],i=t[2],c=t[3];return["rotate3d(".concat(r,",").concat(o,",").concat(i,",").concat(R(c,n),")"),I(c,0)]}:function(e){return["".concat(t,"(").concat(e.map((function(e){return R(e,n)})).join(","),")"),I(e,t.startsWith("scale")?1:0)]})}})),u.length&&(c.transform=new N(u,l)),t.call(this,c)}return n}(y.a),N=function(e){l()(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(O.k)(this.inputs,(function(r,o){var i=Object(O.q)(r[0]),c=e.transforms[o](O.s.arr(i)?i:r.map(O.q)),s=a()(c,2),u=s[0],l=s[1];t+=" "+u,n=n&&l})),n?"none":t}},{key:"observerAdded",value:function(e){var t=this;1==e&&Object(O.k)(this.inputs,(function(e){return Object(O.k)(e,(function(e){return Object(O.r)(e)&&Object(O.c)(e,t)}))}))}},{key:"observerRemoved",value:function(e){var t=this;0==e&&Object(O.k)(this.inputs,(function(e){return Object(O.k)(e,(function(e){return Object(O.r)(e)&&Object(O.x)(e,t)}))}))}},{key:"eventObserved",value:function(e){"change"==e.type&&(this._value=null),Object(O.d)(this,e)}}]),n}(O.a);m.Globals.assign({batchedUpdates:g.unstable_batchedUpdates,createStringInterpolator:O.g,colors:O.e});var D=Object(y.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,i=t.scrollTop,a=t.scrollLeft,c=v()(t,["style","children","scrollTop","scrollLeft"]),s=Object.values(c),u=Object.keys(c).map((function(t){return n||e.hasAttribute(t)?t:w[t]||(w[t]=t.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})))}));for(var l in void 0!==o&&(e.textContent=o),r)if(r.hasOwnProperty(l)){var d=C(l,r[l]);"float"===l?l="cssFloat":E.test(l)?e.style.setProperty(l,d):e.style[l]=d}u.forEach((function(t,n){e.setAttribute(t,s[n])})),void 0!==i&&(e.scrollTop=i),void 0!==a&&(e.scrollLeft=a)},createAnimatedStyle:function(e){return new x(e)},getComponentProps:function(e){e.scrollTop,e.scrollLeft;return v()(e,["scrollTop","scrollLeft"])}}).animated},function(e,t){},function(e,t){},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 i(e){return 3*e}function a(e,t,n){return((r(t,n)*e+o(t,n))*e+i(t))*e}function c(e,t,n){return 3*r(t,n)*e*e+2*o(t,n)*e+i(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 i=n?new Float32Array(11):new Array(11),u=0;u<11;++u)i[u]=a(.1*u,e,r);function l(t){for(var n=0,o=1;10!==o&&i[o]<=t;++o)n+=.1;--o;var s=n+.1*((t-i[o])/(i[o+1]-i[o])),u=c(s,e,r);return u>=.001?function(e,t,n,r){for(var o=0;o<4;++o){var i=c(t,n,r);if(0===i)return t;t-=(a(t,n,r)-e)/i}return t}(t,s,e,r):0===u?s:function(e,t,n,r,o){var i,c,s=0;do{(i=a(c=t+(n-t)/2,r,o)-e)>0?n=c:t=c}while(Math.abs(i)>1e-7&&++s<10);return c}(t,n,n+.1,e,r)}return function(e){return 0===e?0:1===e?1:a(l(e),t,o)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(42);function o(e,t){t.ZhihuHybrid?r.a.dispatch("base/openURL",{url:e}):window.location.href=e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return K}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(1),h=n.n(p),b=n(72),v=n(103),m=n(152);n(2);function g(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var O=n(46),y=n.n(O),j=!1,E=h.a.createContext(null),C=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}Object(m.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]:[y.a.findDOMNode(this),r],i=o[0],a=o[1],c=this.getTimeouts(),s=r?c.appear:c.enter;!e&&!n||j?this.safeSetState({status:"entered"},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:"entering"},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:y.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:y.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],i=o[0],a=o[1];this.props.addEndListener(i,a)}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(v.default)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return h.a.createElement(E.Provider,{value:null},"function"==typeof n?n(e,r):h.a.cloneElement(h.a.Children.only(n),r))},t}(h.a.Component);function w(){}C.contextType=E,C.propTypes={},C.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:w,onEntering:w,onEntered:w,onExit:w,onExiting:w,onExited:w},C.UNMOUNTED="unmounted",C.EXITED="exited",C.ENTERING="entering",C.ENTERED="entered",C.EXITING="exiting";var T=C,_=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}))},S=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Object(m.a)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&_(e,r),o&&_(e,o),i&&_(e,i)},n.render=function(){var e=this.props,t=(e.classNames,Object(v.default)(e,["classNames"]));return h.a.createElement(T,Object(b.default)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(h.a.Component);S.defaultProps={classNames:""},S.propTypes={};var A=S,k=n(51);function R(e,t){var n=Object.create(null);return e&&p.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(p.isValidElement)(e)?t(e):e}(e)})),n}function I(e,t,n){return null!=n[t]?n[t]:e.props[t]}function x(e,t,n){var r=R(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var c={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];c[o[s][r]]=n(u)}c[s]=n(s)}for(r=0;r<i.length;r++)c[i[r]]=n(i[r]);return c}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(Object(p.isValidElement)(a)){var c=i in t,s=i in r,u=t[i],l=Object(p.isValidElement)(u)&&!u.props.in;!s||c&&!l?s||!c||l?s&&c&&Object(p.isValidElement)(u)&&(o[i]=Object(p.cloneElement)(a,{onExited:n.bind(null,a),in:u.props.in,exit:I(a,"exit",e),enter:I(a,"enter",e)})):o[i]=Object(p.cloneElement)(a,{in:!1}):o[i]=Object(p.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:I(a,"exit",e),enter:I(a,"enter",e)})}})),o}var N=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},D=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Object(k.a)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Object(m.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,R(n.children,(function(e){return Object(p.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:I(e,"appear",n),enter:I(e,"enter",n),exit:I(e,"exit",n)})}))):x(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=R(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(b.default)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Object(v.default)(e,["component","childFactory"]),o=this.state.contextValue,i=N(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?h.a.createElement(E.Provider,{value:o},i):h.a.createElement(E.Provider,{value:o},h.a.createElement(t,r,i))},t}(h.a.Component);D.propTypes={},D.defaultProps={component:"div",childFactory:function(e){return e}};var P=D,L=n(30),M=n.n(L),U=n(41),B=n.n(U),z=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var G=function(e){s()(n,e);var t=F(n);function n(e){var r;return o()(this,n),r=t.call(this,e),"undefined"!=typeof document&&(r.element=document.createElement("div")),r}return a()(n,[{key:"componentDidMount",value:function(){document.body.appendChild(this.element)}},{key:"componentWillUnmount",value:function(){document.body.removeChild(this.element),delete this.element}},{key:"render",value:function(){if(this.element){var e=this.props,t=e.onRef,n=B()(e,["onRef"]);return Object(O.createPortal)(Object(z.c)("div",M()({ref:t},n)),this.element)}return null}}]),n}(p.Component);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var H=function(e,t){e.addEventListener("transitionend",t,!1),e.addEventListener("transitioncancel",t,!1)},q=function(e){s()(n,e);var t=V(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={shouldMountPortal:!1,hasChildren:!1},e.handleExited=function(){e.setState((function(e){e.hasChildren}))},e}return a()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.portalClassName,r=t.transitionName,o=t.onAfterEnter,i=t.timeout,a=t.children,c=this.state,s=c.shouldMountPortal,u=c.hasChildren,l={appear:"".concat(r,"-enter"),appearActive:"".concat(r,"-enter-active"),enter:"".concat(r,"-enter"),enterActive:"".concat(r,"-enter-active"),enterDone:"".concat(r,"-enter-done"),exit:"".concat(r,"-leave"),exitActive:"".concat(r,"-leave-active"),exitDone:"".concat(r,"-leave-done")};return s&&Object(z.c)(G,{className:n},Object(z.c)(P,null,u&&p.Children.map(a,(function(t,n){return t&&Object(z.c)(A,{key:n,timeout:i,classNames:l,appear:!0,onExited:e.handleExited,onEntering:o,addEndListener:H},t)}))))}}]),n}(p.Component);q.getDerivedStateFromProps=function(e,t){var n=p.Children.toArray(e.children).some(Boolean),r=t.hasChildren;return!r&&n?{shouldMountPortal:!0,hasChildren:n}:r&&!n?{hasChildren:n}:null};var K=q},function(e,t,n){"use strict";var r=n(119),o=n(15),i=n(7),a=n(8),c=n(51),s=n(9),u=n(10),l=n(5),d=n(0),f=n(1),p=n.n(f),h=n(23),b=n(2),v=n.n(b),m=n(46),g=n(45),O=n(13),y=n(6),j=n.n(y),E=n(12),C=n(36),w=n(102),T=n.n(w),_=n(40),S=n.n(_),A=n(11),k=n(302),R=n(101),I=n(531),x=n(212),N=n(32),D=n(17),P=n(198),L=n(105),M=n(111),U=n(386),B=n(1031),z=n(1092),F=n(31),G=n(259),V=n(37),H=n(206),q=n(35),K=n(311),W=n(28),Y="zhihu::comment_local_key",Q=(W.G,function(){return""}),Z="上传失败",J="上传中",X="",$="emoticon",ee="selected",te="image",ne=Object(f.forwardRef)((function(e,t){var n=e.children,r=Object(f.useRef)(!1),o=Object(f.useRef)(null),i=Object(f.useRef)(null),a=Object(f.useRef)(null),c=Object(F.b)((function(){var e,t,n;null===(e=o.current)||void 0===e||e.position(),null===(t=i.current)||void 0===t||t.position(),null===(n=a.current)||void 0===n||n.position()})),s=Object(F.b)((function(){var e;null===(e=o.current)||void 0===e||e.open()})),u=Object(F.b)((function(){var e,t,n;null===(e=a.current)||void 0===e||e.open(),null===(t=i.current)||void 0===t||t.close(),null===(n=o.current)||void 0===n||n.close()})),l=Object(F.b)((function(){var e;null===(e=a.current)||void 0===e||e.close()})),d=Object(F.b)((function(){var e,t,n;null===(e=i.current)||void 0===e||e.open(),null===(t=a.current)||void 0===t||t.close(),null===(n=o.current)||void 0===n||n.close()})),p=Object(F.b)((function(){var e;null===(e=i.current)||void 0===e||e.close()})),h=Object(F.b)((function(){var e,t,n;null===(e=a.current)||void 0===e||e.close(),null===(t=i.current)||void 0===t||t.close(),null===(n=o.current)||void 0===n||n.close()})),b=Object(F.b)((function(){var e,t;r.current||(r.current=!0,null===(e=i.current)||void 0===e||e.open(),null===(t=a.current)||void 0===t||t.open(),Promise.resolve().then((function(){var e,t;null===(e=i.current)||void 0===e||e.close(),null===(t=a.current)||void 0===t||t.close()})))})),v=Object(f.useState)({register:function(e,t){e===$&&(o.current=t),e===ee&&(i.current=t),e===te&&(a.current=t)},position:c,openEmoticon:s,openImage:u,openSelected:d,closeImage:l,closeSelected:p,closeAll:h,prepare:b}),m=Object(D.a)(v,1)[0];return Object(f.useImperativeHandle)(t,(function(){return m})),n&&n.map((function(e){return Object(f.cloneElement)(e,{popoversController:m})}))})),re=n(65),oe=Object.assign;var ie=function(e){return p.a.createElement(re.a,oe({width:"21",height:"14",fill:"none"},e),p.a.createElement("path",{fill:"url(#A)",stroke:"#f6f6f6",d:"M7.486.504a6 6 0 100 12h7a6 6 0 100-12h-7z"}),p.a.createElement("g",{fill:"#935d14"},p.a.createElement("path",{d:"M8.459 9.431l2.465-5.366h-.916L8.401 7.751l-1.6-3.687h-.923L8.35 9.431h.109zm3.825 0V4.065h-.814v5.366h.814zm2.05 0V7.445h.284c.659 0 1.156-.153 1.491-.46s.502-.747.502-1.321c0-.496-.154-.887-.462-1.172s-.794-.427-1.458-.427h-1.178v5.366h.822zm.305-2.708h-.305V4.78h.378c.388 0 .664.09.829.27s.247.414.247.701c0 .268-.085.496-.254.686s-.468.285-.894.285z",fillRule:"evenodd"}),p.a.createElement("path",{d:"M8.459 9.431v.146h.094l.039-.085-.133-.061zm2.465-5.366l.133.061.095-.207h-.228v.146zm-.916 0v-.146h-.096l-.038.088.134.058zM8.401 7.751l-.134.058.134.309.134-.309-.134-.058zm-1.6-3.687l.134-.058-.038-.088h-.096v.146zm-.923 0v-.146h-.229l.096.208.133-.061zM8.35 9.431l-.133.061.039.085h.094v-.146zm3.934 0v.146h.146v-.146h-.146zm0-5.366h.146v-.146h-.146v.146zm-.814 0v-.146h-.146v.146h.146zm0 5.366h-.146v.146h.146v-.146zm2.865 0v.146h.146v-.146h-.146zm0-1.986v-.146h-.146v.146h.146zm-.822-3.38v-.146h-.146v.146h.146zm0 5.366h-.146v.146h.146v-.146zm.822-2.708h-.146v.146h.146v-.146zm0-1.942v-.146h-.146v.146h.146zM8.592 9.492l2.465-5.366-.266-.122L8.326 9.37l.266.122zm2.332-5.573h-.916v.293h.916v-.293zm-1.05.088L8.267 7.693l.268.117 1.607-3.687-.268-.117zM8.535 7.693l-1.6-3.687-.269.116 1.6 3.687.268-.116zM6.801 3.918h-.923v.293h.923v-.293zm-1.056.208l2.472 5.366.266-.122-2.472-5.366-.266.122zM8.35 9.577h.109v-.293H8.35v.293zm4.08-.146V4.065h-.293v5.366h.293zm-.146-5.512h-.814v.293h.814v-.293zm-.961.146v5.366h.293V4.065h-.293zm.146 5.512h.814v-.293h-.814v.293zm3.011-.146V7.445h-.293v1.986h.293zm-.146-1.839h.284v-.293h-.284v.293zm.284 0c.68 0 1.218-.158 1.589-.498l-.198-.216c-.297.273-.753.421-1.392.421v.293zm1.589-.498c.372-.341.549-.826.549-1.429h-.293c0 .545-.158.942-.454 1.214l.198.216zm.549-1.429c0-.529-.166-.962-.509-1.279l-.199.215c.272.252.415.6.415 1.064h.293zm-.509-1.279c-.347-.321-.877-.466-1.557-.466v.293c.648 0 1.09.14 1.358.388l.199-.215zM14.69 3.92h-1.178v.293h1.178V3.92zm-1.324.146v5.366h.293V4.065h-.293zm.146 5.512h.822v-.293h-.822v.293zm1.127-3.001h-.305v.293h.305v-.293zm-.159.146V4.78h-.293v1.942h.293zm-.146-1.796h.378v-.293h-.378v.293zm.378 0c.37 0 .597.087.721.223l.216-.198c-.205-.224-.532-.318-.937-.318v.293zm.721.223c.136.148.209.345.209.602h.293c0-.317-.092-.588-.286-.8l-.216.198zm.209.602a.85.85 0 01-.217.589l.218.195a1.14 1.14 0 00.292-.784h-.293zm-.217.589c-.128.143-.373.236-.785.236v.293c.441 0 .792-.097 1.003-.334l-.218-.195z"})),p.a.createElement("defs",null,p.a.createElement("linearGradient",{id:"A",x1:"1.986",x2:"19.986",y1:"12.004",y2:"12.004",gradientUnits:"userSpaceOnUse"},p.a.createElement("stop",{stopColor:"#f8e2c4"}),p.a.createElement("stop",{offset:"1",stopColor:"#f3bb6c"}))))};function ae(e){var t=e.images,n=e.onClick,r=e.onReset,o=Object(f.useState)(!1),i=Object(D.a)(o,2),a=i[0],c=i[1],s=Object(F.b)((function(){return c(!0)})),u=Object(F.b)((function(){return c(!1)}));return Object(d.c)(f.Fragment,{children:[Object(d.c)("div",{onMouseEnter:s,onMouseLeave:u,css:{width:"110px",height:"110px",position:"relative",display:"flex",alignItems:"center",justifyContent:"center"},children:[Object(d.b)("img",{src:t[0].src}),a&&Object(d.b)(ce,{onClick:n})]}),Object(d.b)("div",{className:"closeButton",onClick:r,css:function(e){return{color:e.colors.GBK06A}},children:Object(d.b)(B.a,{})})]})}function ce(e){var t=e.onClick;return Object(d.b)("div",{css:{position:"absolute",width:"100%",height:"100%",backgroundColor:"rgba(0,0,0,0.3)",display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",borderRadius:"4px","&:hover":{cursor:"pointer"}},onClick:t,children:Object(d.b)("div",{css:function(e){return{color:e.colors.GBK99B,lineHeight:"27px",width:"74px",borderRadius:"20px",borderColor:"#fefefe",borderWidth:"1px",borderStyle:"solid",fontSize:"12px",textAlign:"center"}},children:"更换图片"})})}var se=Object(f.forwardRef)((function(e,t){var n=e.showVipBadge,r=Object(N.a)(e,["showVipBadge"]);return Object(d.b)(C.a,Object.assign({as:M.a,zaType:"Button",zaEventType:"Click",zaBlock:"AppendImage",label:"插入图片",ref:t,icon:Object(d.c)(f.Fragment,{children:[Object(d.b)(z.a,{}),n&&Object(d.b)(ie,{css:{position:"absolute",transform:"translate(10px, -6.5px)",width:"20px",height:"13px"}})]})},r))})),ue=Object(h.compose)(Object(O.connect)((function(e){return{isVip:Object(V.h)(e)}}),{showNotification:q.g,uploadImage:H.b}),K.a)((function(e){var t=e.popoversController,n=Object(f.useState)(X),r=Object(D.a)(n,2),o=r[0],i=r[1],a=Object(f.useState)(!1),c=Object(D.a)(a,2),s=c[0],u=c[1],l=Object(f.useRef)();Object(f.useEffect)((function(){t.register(te,l.current)}),[t]);var p=Object(f.useRef)(),h=Object(F.b)((function(t){t.preventDefault(),(0,e.authRequired)((function(){var t,n=e.handleInputActive;e.hasPermission?(null===(t=p.current)||void 0===t||t.click(),n(!0)):u(!0)}))()})),b=function(){p.current&&(p.current.value=null)},v=function(){var t=e.handleImages,n=e.showNotification,r=e.resetUploadImg;t([]),n("图片上传失败","red"),r(),i(Z)},m=function(t){var n=e.handleImages,r=e.updatePublishStatus;n([Object.assign({},t.payload,{url:t.payload.src})]),r(!1),b(),i(X)},g=Object(F.b)((function(n){var r=e.showNotification;return n?n.size>1024*W.G*1024?(r("请上传小于 ".concat(W.G,"M 的图片。"),"red"),b(),!1):(t.openImage(),void i(J)):(b(),!1)})),O=Object(F.b)((function(t){var n=t.file;return(0,e.uploadImage)(n).then(m).catch(v)})),y=Object(F.b)((function(){var n=e.resetUploadImg,r=void 0===n?P.noop:n;t.closeImage(),r()})),j=e.images,E=e.disableButton,C=e.hasPermission,w=e.onPopoverOpen,T=e.isVip,_=Boolean(j.length)&&o===X,S=T||!C;return Object(d.c)(f.Fragment,{children:[Object(d.b)(L.a,{className:"ImagePopover",arrowed:!0,ref:l,placement:"bottom",globalClose:!j.length,onOpen:w,onClick:h,toggler:Object(d.b)(se,{disabled:E,showVipBadge:S}),children:Object(d.c)("div",{className:"ImagePopover-thumbnail",children:[_&&Object(d.b)(ae,{images:j,onClick:h,onReset:y}),o&&!_&&Object(d.b)("p",{className:"ImagePopover-uplodaStatus",children:o})]})}),Object(d.b)(U.a,{accept:"image/png,image/jpeg",onRef:p,beforeUpload:g,customUpload:O}),Object(d.b)(G.c,{show:s,setShow:u,type:G.b.comment_img})]})})),le=n(53);function de(e){var t=e.onClose,n=e.onSubmit;return Object(d.c)(le.b,{className:"CommentCheckModal-wrapper",onClose:t,children:[Object(d.b)("div",{className:"CommentCheckModal-image"}),Object(d.b)("div",{className:"CommentCheckModal-title",children:"评论可能包含不友善内容"}),Object(d.b)("div",{className:"CommentCheckModal-content",children:"友善的交流是沟通的起点,请遵守知乎社区规范,认真友善发言"}),Object(d.c)("div",{className:"CommentCheckModal-button",children:[Object(d.b)(A.c,{className:"CommentCheckModal-submit",onClick:n,preset:"primary",children:"继续发布"}),Object(d.b)(A.c,{className:"CommentCheckModal-modify",onClick:t,preset:"primary",color:"blue",children:"返回修改"})]})]})}var fe=function(e){var t=e.url,n=e.title,r=e.onReset,o=void 0===r?P.noop:r,i=e.popoversController,a=Object(f.useRef)();Object(f.useEffect)((function(){i.register(ee,a.current)}),[i]);var c=Object(F.b)((function(){i.closeSelected(),o()}));return Object(d.b)(L.a,{arrowed:!0,globalClose:!1,ref:a,preventCloseOnTarget:!0,placement:"bottom",toggler:Object(d.b)("div",{css:{height:"28px",transform:"translateX(18px)"}}),children:Object(d.c)("div",{css:{width:"140px",height:"143px",position:"relative"},children:[Object(d.b)("img",{src:t,alt:n,css:{width:"100px",height:"100px",padding:"20px"}}),Object(d.b)("div",{onClick:c,css:{position:"absolute",width:"16px",height:"16px",right:"8px",top:"8px",".Zi--Close":{width:"16px",height:"16px"}},children:Object(d.b)(B.a,{})})]})})},pe=n(1093),he=n(535),be=Object(f.forwardRef)((function(e,t){var n=e.onInsertEmoji,r=void 0===n?P.noop:n,o=e.onAddSticker,i=void 0===o?P.noop:o,a=e.vipEnabled,c=void 0!==a&&a,s=Object(N.a)(e,["onInsertEmoji","onAddSticker","vipEnabled"]),u=Object(F.b)((function(e,t){"emoji"===t?r(e.placeholder):i(e)}));return Object(d.b)(L.a,Object.assign({arrowed:!0,preventCloseOnTarget:!0},s,{ref:t,children:Object(d.b)(he.a,{onSelectEmoticon:u,css:{border:"none"},vipEnabled:c})}))}));var ve=Object(K.a)((function(e){var t=e.disabled,n=e.onInsertEmoji,r=void 0===n?P.noop:n,o=e.onAddSticker,i=void 0===o?P.noop:o,a=e.popoversController,c=Object(f.useRef)();Object(f.useEffect)((function(){a.register($,c.current)}),[a]);var s=Object(F.b)((function(){r.apply(void 0,arguments),setTimeout(a.position,400)})),u=Object(F.b)((function(){a.openSelected(),i.apply(void 0,arguments),setTimeout(a.position,400)})),l=Object(F.b)((function(t){(0,e.authRequired)([P.noop,function(){t.preventDefault()}])()}));return Object(d.b)(be,{ref:c,onInsertEmoji:s,onAddSticker:u,vipEnabled:!0,onClick:l,toggler:Object(d.b)(M.a,{label:"插入表情",icon:pe.a,disabled:t,onMouseEnter:a.prepare})})}));function me(){var e=Object(r.a)(["回复","",""]);return me=function(){return e},e}function ge(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}function Oe(e){var t=e.dynamicImageUrl||e.staticImageUrl,n=e.id,r=e.title||"[sticker]";return'<a class="comment_sticker" href="'.concat(t,'" data-sticker-id="').concat(n,'">').concat(r,"</a>")}function ye(e){var t=e.url,n=e.dataRawwidth,r=e.dataRawheight,o=e.title,i=t.includes(".gif")?"comment_gif":"comment_img";return'<a class="'.concat(i,"\" href='").concat(t,"' data-width='").concat(n||"","' data-height='").concat(r||"","'>[").concat(o||"图片","]</a>")}var je=function(e){Object(s.a)(n,e);var t=ge(n);function n(){var e;Object(i.a)(this,n);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return(e=t.call.apply(t,[this].concat(a))).zaRef=Object(f.createRef)(),e.state={active:!1,hasNoContent:!0,shown:!1,submitting:!1,value:{toHTML:Q},images:[],uploadIsFetchingNum:0,stickers:[],toggleInputStyle:!1,commentTextLength:0,showCommentCheckModal:!1},e.isClubPostPage=function(){var t=e.props,n=t.type,r=(t.replyTo||{}).resourceType;return"club_post"===n||"club_post"===r},e.handleCheckClosed=function(){e.setState({showCommentCheckModal:!1}),e.trackCommentCheckClick("返回修改"),e.input.focus()},e.handleCommentCheck=function(){e.setState({showCommentCheckModal:!1}),e.handleSubmit(!1),e.trackCommentCheckClick("继续发布")},e.handleButtonSubmit=function(){e.handleSubmit(!0,"0"!==e.props.autoCheckAb)},e.handleSubmit=e.context.authRequired((function(t,n){return e.context.realNameRequired((function(){var r=e.props,o=r.replyTo,i=r.onSubmit,a=r.onCancel,s=r.rootCommentId,u=r.isConversation,l=r.zaInfo.zaSubmitCommentId;if(!e.state.submitting){e.setState({submitting:!0});var d=e.state,f=d.images,p=d.stickers,h=e.input.toHTML();if(h||f.length||p.length){var b;h&&e.saveLocalComment();var v=h;f.length&&(v+=ye(f[0])),p.length&&(v+=Oe(p[0]));var m,g=i(v,o,{rootCommentId:s,isConversation:u},t,n);if(g.then)g.then((function(){var t;(a&&a(),e.input)?(e.input.reset(),null===(t=e.popoverControllerRef.current)||void 0===t||t.closeAll(),e.resetImage(),e.setState({value:{toHTML:Q}},(function(){return e.saveLocalComment()}))):e.saveLocalComment({toHTML:Q})})).catch((function(t){40313===t.payload.code&&e.setState({showCommentCheckModal:!0})})).finally((function(){e.setState({submitting:!1})}));else e.setState({submitting:!1}),a&&a(),e.input.reset(),null===(m=e.popoverControllerRef.current)||void 0===m||m.closeAll();E.a.trackEvent(Object(c.a)(e),Object.assign({action:"Comment",element:"Button"},l&&{id:l})),null===(b=e.zaRef.current)||void 0===b||b.trackEvent({eventType:"Click",action:"Comment",elementLocation:{type:"Button"}})}}}))()}),e.isClubPostPage()?W.J.reply_club:void 0,q.b),e.handleCommentShow=e.context.authRequired((function(){e.setState({shown:!0}),e.hiddenInput.focus()})),e.handleCommentHide=function(){e.setState({shown:!1})},e.initLocalComment=function(){var t=e.props,n=t.type,r=t.id;if(n&&r){var o=S.a.get(Y)||[],i="".concat(n,"_").concat(r),a=o.find((function(e){return e.key===i})),c=a&&a.value;c&&e.setState({value:{toHTML:function(){return c}},hasNoContent:!1})}},e.saveLocalComment=function(t){var n=e.props,r=n.type,i=n.id;if(r&&i){var a=t?t.toHTML():e.state.value.toHTML(),c="".concat(r,"_").concat(i),s=(S.a.get(Y)||[]).filter((function(e){return e.key!==c})),u=a?[].concat(Object(o.a)(s.slice(0,4)),[{key:c,value:a}]):s;S.a.set(Y,u)}},e.handleChange=function(t){var n=e.state,r=n.stickers,o=n.images;r.length||o.length?e.setState({value:t}):e.setState({value:t,hasNoContent:t.isEmpty}),e.handleInputChange()},e.handleFocus=function(){e.setState({active:!0},e.handleInputChange)},e.handleBlur=function(){var t=e.state,n=t.stickers,r=t.images;n.length||r.length||(e.setState({active:!1}),e.handleInputChange())},e.handleMobileComment=function(){e.handleSubmit(),e.handleCommentHide()},e.handleInputChange=function(){var t,n,r=Object(m.findDOMNode)(e.input);r&&(r.getBoundingClientRect().height>40?e.setState({toggleInputStyle:!0}):e.setState({toggleInputStyle:!1}),n="innerText"in document?r.innerText.length:r.textContent.length,e.setState({commentTextLength:n}),null===(t=e.popoverControllerRef.current)||void 0===t||t.position())},e.handleImages=function(t){var n;e.setState({images:t},null===(n=e.popoverControllerRef.current)||void 0===n?void 0:n.position)},e.handleInputActive=function(t){e.setState({active:t})},e.updatePublishStatus=function(t){e.setState({hasNoContent:t})},e.resetStickers=function(){var t=e.state.value,n=void 0===t.isEmpty||t.isEmpty;e.setState({stickers:[],hasNoContent:n})},e.resetImage=function(){e.resetStickers(),e.resetUploadImg()},e.resetUploadImg=function(){var t=e.state.value,n=void 0===t.isEmpty||t.isEmpty;e.setState({images:[],hasNoContent:n})},e.insertEmoji=function(t){var n;null===(n=e.input)||void 0===n||n.handleCommand("insert-text:".concat(t))},e.addSticker=function(t){e.setState({stickers:[t],images:[],hasNoContent:!1})},e.handleImagePopoverOpen=function(){e.setState({stickers:[]})},e.focusInput=function(t){t.preventDefault(),e.input.focus()},e.popoverControllerRef=Object(f.createRef)(),e.renderInput=function(t){var n,r,o,i=t.placeholder,a=t.className,c=e.props,s=c.autoFocus,u=c.commentWithPicPermission.commentWithPic,l=e.state,f=l.images,p=l.stickers,h=l.toggleInputStyle,b=l.active,v=l.hasNoContent,m=l.commentTextLength;return Object(d.c)("div",{className:j()("CommentEditorV2-inputWrap",{"CommentEditorV2-inputWrap--change":h,"CommentEditorV2-inputWrap--active":b||!v}),onClick:function(e){e.nativeEvent.stopImmediatePropagation()},children:[Object(d.b)(R.b,{keyMap:{FOCUS_COMMENT_INPUT:"shift+c"},handlers:{FOCUS_COMMENT_INPUT:e.focusInput}}),Object(d.b)(x.a,{className:j()("CommentEditorV2-input",a),defaultValue:e.state.value.toHTML(),allowMention:!0,allowPasteRichText:!1,autoFocus:s,outputBlockType:"div",ref:function(t){e.input=t},placeholder:i,onFocus:e.handleFocus,onChange:e.handleChange,onSubmit:e.handleButtonSubmit,minRows:5}),Object(d.c)("div",{className:j()("CommentEditorV2-inputUpload",{"CommentEditorV2-inputUpload--FlexEnd":h,"CommentEditorV2-inputUpload--SpaceBetween":h&&m>980}),children:[h&&m>980&&Object(d.b)(k.a,{className:"CommentEditorV2-MaxLength",current:m,max:1e3}),Object(d.b)("div",{className:"CommentEditorV2-popoverWrap",children:Object(d.c)(ne,{ref:e.popoverControllerRef,children:[Object(d.b)(ue,{images:f,resetUploadImg:e.resetUploadImg,handleInputActive:e.handleInputActive,updatePublishStatus:e.updatePublishStatus,handleImages:e.handleImages,onPopoverOpen:e.handleImagePopoverOpen,hasPermission:u||e.isClubPostPage()}),Object(d.b)(fe,{url:(null===(n=p[0])||void 0===n?void 0:n.dynamicImageUrl)||(null===(r=p[0])||void 0===r?void 0:r.staticImageUrl),title:null===(o=p[0])||void 0===o?void 0:o.title,onReset:e.resetStickers}),Object(d.b)(ve,{onAddSticker:e.addSticker,onInsertEmoji:e.insertEmoji,preparePopoverIndex:e.preparePopoverIndex})]})})]})]})},e}return Object(a.a)(n,[{key:"trackCommentCheckClick",value:function(e){E.a.trackEvent(null,{id:7497,action:"Click",path:[{module_name:"图文弹窗"}]},{button:{text:e}})}},{key:"componentDidMount",value:function(){this.initLocalComment(),document.addEventListener("click",this.handleBlur)}},{key:"componentWillUnmount",value:function(){this.saveLocalComment(),document.removeEventListener("click",this.handleBlur)}},{key:"render",value:function(){var e=this.props,t=e.replyTo,n=e.commentNeedsReview,r=e.className,o=e.ownerAuthorIsOrg,i=e.ownerAuthorIsBrand,a=this.state,c=a.active,s=a.hasNoContent,u=a.submitting,l=a.showCommentCheckModal,f=o?"机构":"作者",p={preset:"primary",color:"blue",children:"发布",disabled:s||u},h="写下你的评论...";if(n&&(h=i?"已开启预审评论,评论由品牌筛选后公开":o?"已开启预审评论,评论由机构筛选后公开":"评论由作者筛选后显示"),t&&t.author){var b=t.author,v=b.member,m=b.mask,g=(null==v?void 0:v.name)||(null==m?void 0:m.name)||t.author.name;h=T()(me(),g,n?",评论由".concat(f,"筛选后公开"):"")}return Object(d.c)("div",{children:[Object(d.b)(C.d,{ref:this.zaRef}),Object(d.c)("div",{className:j()(r,"CommentEditorV2--normal",{"CommentEditorV2--active":c||!s}),children:[this.renderInput({placeholder:h}),Object(d.b)(A.c,Object.assign({},p,{className:"CommentEditorV2-singleButton",onClick:this.handleButtonSubmit}))]}),l&&Object(d.b)(de,{onClose:this.handleCheckClosed,onSubmit:this.handleCommentCheck})]})}}]),n}(f.Component);je.propTypes={className:v.a.string,defaultActive:v.a.bool,replyTo:v.a.object,inCommentItem:v.a.bool,commentNeedsReview:v.a.bool,canComment:v.a.object,onCancel:v.a.func,onSubmit:v.a.func.isRequired,zaInfo:v.a.object},je.defaultProps={defaultActive:!1,replyTo:null,inCommentItem:!1,autoFocus:!0,ownerAuthorIsOrg:!1,ownerAuthorIsBrand:!1,zaInfo:{}},je.contextTypes={authRequired:v.a.func,realNameRequired:v.a.func};t.a=Object(h.compose)(g.withRouter,Object(I.a)(),Object(O.connect)((function(e){return{stickers:e.commentsV2.stickers||[],commentWithPicPermission:e.commentsV2.commentWithPicPermission||{}}}),{showNotification:q.g}))(je)},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(30),h=n.n(p),b=n(41),v=n.n(b),m=n(1),g=n.n(m),O=n(20),y=function(e){return g.a.createElement(O.a,e,g.a.createElement("path",{d:"M16.296 7h.697A1.01 1.01 0 0 1 18 8.003v10.995c0 .554-.45 1.003-1.007 1.003H4.007A1.01 1.01 0 0 1 3 18.998V8.003C3 7.449 3.45 7 4.007 7h12.289zm-.892 11a.6.6 0 0 0 .597-.601V9.601A.597.597 0 0 0 15.405 9H5.596A.599.599 0 0 0 5 9.602v7.797c0 .335.267.601.596.601h9.808zM7 4h13a1 1 0 0 1 1 1v11a1 1 0 0 1-2 0V6.5c0-.5-.5-.5-.5-.5H7a1 1 0 0 1 0-2z",fillRule:"evenodd"}))};y.defaultProps={name:"Size"};var j=y,E=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var w=function(e){s()(n,e);var t=C(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).handleMouseMove=function(t){1!==t.buttons&&1!==t.which||e.handleChange(t)},e.handleChange=function(t){var n=e.input.value;e.value!==n&&(e.value=n,e.props.onChange&&e.props.onChange(t))},e}return a()(n,[{key:"componentDidMount",value:function(){this.value=this.input.value}},{key:"render",value:function(){var e=this;return Object(E.c)("input",h()({},this.props,{onMouseMove:this.handleMouseMove,onClick:this.handleChange,onKeyDown:this.handleChange,onChange:this.handleChange,ref:function(t){e.input=t}}))}}]),n}(m.Component);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var _=function(e){s()(n,e);var t=T(n);function n(){return o()(this,n),t.apply(this,arguments)}return a()(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=v()(e,["className"]);return Object(E.c)("div",{className:t},Object(E.c)(j,{center:!0,size:18}),Object(E.c)(w,h()({type:"range",className:"RangeInput",min:"1",max:"2",step:"0.01"},n)),Object(E.c)(j,{center:!0,size:22}))}}]),n}(m.Component)},function(e,t,n){"use strict";var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(25),s=n.n(c),u=n(27),l=n.n(u),d=n(16),f=n.n(d),p=n(2),h=n.n(p),b=n(1),v=n(46),m=n(1031),g=n(6),O=n.n(g),y=n(170),j=n(449),E=n(660),C=n(656),w=n(30),T=n.n(w),_=n(41),S=n.n(_),A=n(3),k=function(e){var t=e.children,n=e.className,r=e.direction,o=S()(e,["children","className","direction"]);return Object(A.c)("div",T()({className:O()("ModalButtonGroup",n,"ModalButtonGroup--".concat(r))},o),t)};k.defaultProps={direction:"vertical"},k.propTypes={children:h.a.node,direction:h.a.oneOf(["vertical","horizontal"])};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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 l()(this,n)}}var I,x=[],N=function(e){s()(n,e);var t=R(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={transparent:!1},e.handleKeydown=function(t){var n=e.props,r=n.hotKeyClosable,o=n.onClose;t.keyCode===j.a.ESCAPE&&r&&o&&o(t)},e.handleBackdropClick=function(t){var n=e.props,r=n.maskClosable,o=n.onClose;r&&o&&o(t)},e.handleButtonClick=function(t){var n=e.props.onClose;n&&n(t)},e}return a()(n,[{key:"componentDidMount",value:function(){this.props.children&&this.handleShow()}},{key:"componentDidUpdate",value:function(e){var t=e.children,n=this.props.children;!t&&n?this.handleShow():t&&!n&&this.handleHide()}},{key:"componentWillUnmount",value:function(){this.props.children&&this.handleHide()}},{key:"handleShow",value:function(){var e=x[x.length-1];e&&e.setState({transparent:!0}),x.push(this),x.length>0&&(clearTimeout(I),y.hide())}},{key:"handleHide",value:function(){x.pop();var e=x[x.length-1];e&&e.setState({transparent:!1}),x.length<=0&&(I=setTimeout((function(){y.show()}),300))}},{key:"render",value:function(){var e=this.props,t=e.size,n=e.spread,r=e.title,o=e.subtitle,i=e.footer,a=e.closeButton,c=void 0===a?Object(A.c)("div",{className:"ModalWindow-closeButton",onClick:this.handleButtonClick},Object(A.c)(m.a,{className:"ModalWindow-closeIcon"})):a,s=e.buttonGroupOnly,u=e.className,l=e.children,d=e.onScroll,f=e.contentClassName,p=void 0===f?"":f,h=e.backDropClassName,b=void 0===h?"":h,v=this.state.transparent;return Object(A.c)(C.a,{transitionName:"ModalWindow",timeout:300},l&&Object(A.c)(E.a,{onKeyDown:this.handleKeydown},Object(A.c)("div",{className:O()("ModalWindow-wrapper",{"ModalWindow-wrapper--transparent":v})},Object(A.c)("div",{className:O()("ModalWindow-backdrop",b),onClick:this.handleBackdropClick}),Object(A.c)("div",{className:O()("ModalWindow","ModalWindow--".concat(t),u),tabIndex:0},Object(A.c)("div",{className:"ModalWindow-inner",onScroll:d},r&&Object(A.c)("h3",{className:O()("ModalWindow-title",{"ModalWindow-title--simple":!o&&s})},r),o&&Object(A.c)("div",{className:"ModalWindow-subtitle"},o),Object(A.c)("div",{className:O()("ModalWindow-content",{"ModalWindow-content--spread":n||"fullPage"===t&&!r&&!o},p)},l),i&&Object(A.c)("div",{className:"ModalWindow-footer"},i)),c))))}}]),n}(b.Component);N.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},N.defaultProps={size:"default",spread:!1,buttonGroupOnly:!1,hotKeyClosable:!0,maskClosable:!0},N.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(v.render)(Object(b.cloneElement)(e,{children:null}),t),setTimeout((function(){Object(v.unmountComponentAtNode)(t),t.parentNode.removeChild(t)}),300)};Object(v.render)(e.props.onClose?e:Object(b.cloneElement)(e,{onClose:r}),t)};t.a=N},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=n(22),o=n.n(r),i=n(24),a=n.n(i),c=n(70),s=n.n(c),u=n(25),l=n.n(u),d=n(27),f=n.n(d),p=n(16),h=n.n(p),b=n(1),v=n.n(b),m=n(46),g=n(412),O=n.n(g);function y(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(O()(t)),o=r.length;if(o){var i=r.indexOf(document.activeElement);-1===i?("prev"===e&&y(r[o-1]),"next"===e&&y(r[0])):("prev"===e&&y(r[(i-1+o)%o]),"next"===e&&y(r[(i+1)%o]))}}var E=y,C=n(449);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 T=[],_=function(e){l()(n,e);var t=w(n);function n(){var e;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).handleKeyDown=function(t){if(e.isTopLayer()){var n=e.props.onKeyDown;if(n&&n(t),!t.defaultPrevented&&t.keyCode===C.a.TAB){t.preventDefault();var r=Object(m.findDOMNode)(s()(e));j(t.shiftKey?"prev":"next",r,(function(e){return e.filter((function(e){return"true"===e.contentEditable||!e.closest("[contentEditable]")}))}))}}},e}return a()(n,[{key:"componentDidMount",value:function(){T.push(this),window.addEventListener("keydown",this.handleKeyDown,!0),this.enterFocusZone()}},{key:"componentWillUnmount",value:function(){T.splice(T.indexOf(this),1),window.removeEventListener("keydown",this.handleKeyDown,!0),this.leaveFocusZone()}},{key:"enterFocusZone",value:function(){var e=this;this.prevActiveElement=document.activeElement,this.timeout=window.setTimeout((function(){var t=Object(m.findDOMNode)(e);t&&!t.contains(document.activeElement)&&function(e){j("next",e)}(t)}),100)}},{key:"leaveFocusZone",value:function(){clearTimeout(this.timeout),this.prevActiveElement&&!this.prevActiveElement.closest("[contentEditable]")&&E(this.prevActiveElement)}},{key:"isTopLayer",value:function(){return T[T.length-1]===this}},{key:"render",value:function(){return b.Children.only(this.props.children)}}]),n}(v.a.Component)},function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var r,o=n(22),i=n.n(o),a=n(24),c=n.n(a),s=n(25),u=n.n(s),l=n(27),d=n.n(l),f=n(16),p=n.n(f),h=n(1),b=n.n(h),v=n(6),m=n.n(v),g=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 y=function(e){u()(n,e);var t=O(n);function n(){return i()(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,i=e.children,a=e.fullContent;return Object(g.c)("div",{className:m()("Mask",t,{"Mask-hidden":!r})},Object(g.c)("div",{className:m()("Mask-mask","Mask-mask--".concat(o),n)}),i&&Object(g.c)("div",{className:a?"Mask-content--full":"Mask-content"},i))}}]),n}(b.a.Component);y.defaultProps={shown:!1,background:r.BLACK};var j=y},function(e,t,n){"use strict";var r,o=n(7),i=n(8),a=n(9),c=n(10),s=n(5),u=n(0),l=n(2),d=n.n(l),f=n(1),p=n(6),h=n.n(p),b=n(71),v=n(146),m=n(1031),g=n(11),O=n(304);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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=[];var E=function(e){Object(a.a)(n,e);var t=y(n);function n(){var e;Object(o.a)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={absoluted:!1},e.setRootRef=function(t){var n=e.props.onRef;n&&n(t),e.rootRef=t},e.setAbsolute=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.setState({absoluted:t})},e.handleBackdropClick=function(){var t=e.props,n=t.maskClosable,r=t.onClose;n&&r&&r()},e}return Object(i.a)(n,[{key:"componentDidMount",value:function(){Object(b.isBrowser)()&&this.props.children&&this.handleShow()}},{key:"componentDidUpdate",value:function(e){!e.children&&this.props.children&&this.handleShow(),e.children&&!this.props.children&&this.handleHide()}},{key:"componentWillUnmount",value:function(){this.props.children&&this.handleHide()}},{key:"isPlain",value:function(){return"small"===this.props.size}},{key:"handleShow",value:function(){if(this.isPlain()){var e=document.body;this.bodyPosition=e.style.position,this.bodyOverflow=e.style.overflow,e.style.position="relative",e.style.overflow="hidden",this.removeScrollBoundary=Object(O.a)(this.rootRef)}else{var t=j[j.length-1];j.push(this),this.scrollTop=window.pageYOffset,window.scrollTo(0,0),t?t.setAbsolute(!0):(r.style.top="0",r.style.position="absolute",r.style.zIndex="-1",r.style.maxHeight="100vh",r.style.maxWidth="100vw",r.style.overflow="hidden")}}},{key:"handleHide",value:function(){if(this.isPlain()){var e=document.body;e.style.position=this.bodyPosition,e.style.overflow=this.bodyOverflow,this.removeScrollBoundary&&this.removeScrollBoundary()}else{j.pop();var t=j[j.length-1];t?t.setAbsolute(!1):(r.style.top="",r.style.position="",r.style.zIndex="",r.style.maxHeight="",r.style.maxWidth="",r.style.overflow=""),window.scrollTo(0,this.scrollTop)}}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.className,r=e.backdropClassName,o=e.subtitle,i=e.children,a=void 0===i?null:i,c=e.onClose,s=this.isPlain(),l=s?"plain":"default",d=this.state.absoluted,f=this.props.closeButton,p=void 0===f?Object(u.b)(g.c,{preset:"plain",className:"MobileModal-closeButton",onClick:c,"aria-label":"关闭",children:Object(u.b)(m.a,{className:"MobileModal-closeIcon"})}):f;return a&&Object(u.b)(v.a,{children:Object(u.c)("div",{className:h()("MobileModal-wrapper",{"MobileModal-wrapper--absoluted":d}),ref:this.setRootRef,children:[s&&Object(u.b)("div",{className:h()("MobileModal-backdrop",r),onClick:this.handleBackdropClick}),Object(u.c)("div",{className:h()("MobileModal","MobileModal--".concat(l),n),children:[t&&Object(u.b)("h3",{className:h()("MobileModal-title","MobileModal-title--".concat(l)),children:t}),o&&s&&Object(u.b)("div",{className:"MobileModal-subtitle",children:o}),Object(u.b)("div",{className:h()("MobileModal-content","MobileModal-content--".concat(l)),children:a}),p]})]})})}}]),n}(f.Component);E.propTypes={size:d.a.oneOf(["small","default","large","fullPage"]),title:d.a.node,footer:d.a.node,closeButton:d.a.node,maskClosable:d.a.bool,onClose:d.a.func},E.defaultProps={size:"default",maskClosable:!0},E.setAppElement=function(e){"undefined"!=typeof document&&(r="string"==typeof e?document.querySelector(e):e)};t.a=E},function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var r=n(7),o=n(8),i=n(9),a=n(10),c=n(5),s=n(0),u=n(2),l=n.n(u),d=n(1),f=n(12),p=n(73),h=n(58),b=n(271),v=n(665),m=n(74),g=n(313),O=n(98);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}var j=function(e){Object(i.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:"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,i=t.answerCount,a=t.articlesCount,c=t.followerCount,u=t.id,l=t.isOrg,d=e.user,f=e.type,p=e.isRewardList,y=e.action,j=e.meta,E=e.status,C=e.noTrackCardShow,w=e.onClick,T=e.currentUser,_=!n,S=T&&T.id===u,A=void 0!==y?y:!S&&!_&&Object(s.b)(b.a,{id:d.urlToken,type:f||d.type,preset:b.a.PRESETS.primary,gender:d.gender,isFollowing:o,onClick:w}),k=void 0!==j?j:_||Object(s.b)(g.a,{user:d}),R=void 0!==E?Object(s.b)(O.b,{children:E}):!_&&Object(s.c)(O.b,{children:[Boolean(i)&&"".concat(Object(h.formatNumber)(i)," 回答"),Boolean(a)&&"".concat(Object(h.formatNumber)(a)," 文章"),Boolean(c)&&"".concat(Object(h.formatNumber)(c)," 关注者")]}),I="//www.zhihu.com/".concat(l?"org":"people","/").concat(n||u);return Object(s.b)(O.c,{data:d,link:I,image:Object(s.b)(m.a,{className:"UserItem-avatar",avatar:!0,avatarProps:{size:60},user:d,target:"_blank"}),title:Object(s.c)("div",{className:"UserItem-title",children:[Object(s.b)(m.a,{user:d,target:"_blank"}),Object(s.b)(v.a,{isFollowing:o,isFollowed:r})]}),meta:Object(s.c)("div",{children:[k,R]}),noTrackCardShow:C,extra:p?this.renderRewardDetails():A})}}]),n}(d.Component);j.contextTypes={authRequired:l.a.func},j.propTypes={action:l.a.node,status:l.a.node,meta:l.a.node,type:l.a.string,isRewardList:l.a.bool,onClick:l.a.func,currentUser:l.a.object}},function(e,t,n){"use strict";var r=n(7),o=n(8),i=n(51),a=n(9),c=n(10),s=n(5),u=n(0),l=n(2),d=n.n(l),f=n(1),p=n(45),h=n(11),b=n(404),v=function(e){var t=e.children,n=e.showPrivacyPage,r=e.authWrapperClassName,o=e.authChild,i=f.Children.only(t),a=o?f.Children.only(o):i;return n?Object(u.b)(b.a,{wrapperClassName:r,loginButton:a}):i},m=n(28);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 O=function(e){Object(a.a)(n,e);var t=g(n);function n(){var e;return Object(r.a)(this,n),(e=t.call(this)).state={expanded:!1},e.onExpand=e.handleExpand.bind(Object(i.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,i=e.privacyEnabled,a=e.showPrivacyPage,c=this.state.expanded,s="等 ".concat(t.length," 个"),l=t;return c||(l=t.slice(0,r)),Object(u.c)("span",{children:[l.map((function(e,t){return Object(u.c)("span",{children:[Object(u.b)(v,{showPrivacyPage:i&&a,authWrapperClassName:"ProfileMainPrivacy-authWrapper",authChild:Object(u.b)("span",{className:"ProfileMainPrivacy-pointerWrapper",children:e.name}),children:Object(u.b)(p.Link,{to:"".concat(m.u,"/").concat(n.isOrg?"org":"people","/").concat(n.urlToken,"/creations/").concat(e.id),children:e.name})}),t<l.length-1?"、":" "]},t)})),!c&&t.length>r&&(o?Object(u.b)(h.c,{preset:"plain",onClick:this.onExpand,children:s}):s),"话题"]})}}]),n}(f.Component);O.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},O.defaultProps={ellipsisLength:3,expandable:!0,noHoverCard:!1};t.a=O},function(e,t,n){"use strict";var r=n(7),o=n(8),i=n(9),a=n(10),c=n(5),s=n(0);function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}var l=function(e){Object(i.a)(n,e);var t=u(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=l},function(e,t,n){"use strict";var r=n(17),o=n(0),i=n(31),a=n(13),c=n(14),s=n(36),u=n(1061),l=n(48),d=n(69),f=n.n(d),p=n(96),h=n(312),b=n(4),v=n(1),m=n(59),g=n(105),O=n(1031),y=n(279),j=function(e){var t=e.className,n=e.index,r=void 0===n?0:n,i=e.selected,a=e.onClick,u=e.onDelete,l=e.item,d=e.item,f=d.status,p=d.startTime,h=d.endTime,j=d.target,E=(j=void 0===j?{}:j).parentObject.title,C=0===f,w=Object(v.useMemo)((function(){return"".concat(Object(y.b)(p/1e3)," - ").concat(Object(y.b)(h/1e3))}),[p,h]),T=Object(o.c)(s.a,Object.assign({zaType:"Card",zaText:E,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:a},{css:function(e){var t;return{border:"1px solid ".concat(i?"transparent":C?e.colorMod(e.colors.GBL01A).alpha(.08):e.colors.GBK09A),boxShadow:i?"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:w}),Object(o.b)(s.a,{zaBlock:"Delete",zaText:"删除投稿",zaType:"Button",as:c.Box,role:"button",className:"ContributionItem-deleteButton",onClick:function(e){e.stopPropagation(),null==u||u(l)},css:{cursor:"pointer",visibility:"hidden"},children:Object(o.b)(O.a,{size:12})})]})),Object(o.b)(c.Box,{mt:"4px",fontSize:"13px",css:[Object(m.d)(2),{wordBreak:"break-all"}],children:E})]}));return Object(o.b)(s.b,{block:"VideoAnswerItem",children:C?T:Object(o.b)(g.a,{toggler:T,placement:"top",arrowed:!0,toggleEvent:"hover",children:Object(o.b)(c.Box,{fontSize:"12px",p:"8px",children:"已投稿问题仅支持在回答详情页编辑"})})})},E=function(e){var t=e.className,n=e.onClick,i=e.totalCount,a=e.currentCount,l=Object(h.a)("zvideo_contribution_form:should_hide_new_tag"),d=Object(r.a)(l,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)(u.a,{size:12}),Object(o.b)(c.Box,{fontSize:"14px",fontWeight:"500",mt:"1px",children:a&&i?"继续添加 (".concat(a,"/").concat(i,")"):"添加问题"})]})};t.a=function(e){var t=e.zvideoId,n=e.showCreateButton,r=void 0!==n&&n,s=e.showSelect,u=void 0!==s&&s,d=e.onAdd,h=e.onSelect,b=Object(a.useDispatch)(),v=Object(p.o)(),m=Object(p.n)(t),g=Object(p.m)(t).answer,O=(g=void 0===g?{}:g).canContribute,y=void 0!==O&&O,C=g.totalCount,w=void 0===C?0:C,T=m.length,_=Object(i.b)((function(e){b(Object(p.k)(e.id)),b(Object(p.e)(e.id)),null==h||h(e)})),S=Object(i.b)((function(e){l.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:[m.map((function(e){return Object(o.b)(j,{selected:u&&(null==v?void 0:v.id)===e.id,onClick:function(){return _(e)},onDelete:function(){return S(e)},item:e,css:{marginLeft:"8px",marginTop:"12px"}},e.id)})),y&&T<w&&r&&Object(o.b)(E,{onClick:d,currentCount:T,totalCount:w,css:{marginLeft:"8px",marginTop:"12px"}})]})}},function(e,t){var n=function(e,t){function n(){try{return this.__guardedRender__()}catch(e){return t(e,{props:this.props,state:this.state,displayName:this.constructor.displayName||this.constructor.name})}}function r(e){var n=function(n,r,o){try{return e(n,r,o)}catch(r){return t(r,{props:n,displayName:e.displayName})}};return Object.assign(n,e),n}t=t||function(){return null},e.__reactGuardOriginalCreateElement__=e.createElement,e.createElement=function(t,o){if("string"==typeof t){if(2===arguments.length)return e.__reactGuardOriginalCreateElement__(t,o);for(var i=new Array(arguments.length),a=0;a<i.length;++a)i[a]=arguments[a];return e.__reactGuardOriginalCreateElement__.apply(e,i)}if("function"==typeof t&&t.prototype&&"render"in t.prototype&&!("__guardedRender__"in t.prototype)){t.prototype.__guardedRender__=t.prototype.render,t.prototype.render=n;for(i=new Array(arguments.length),a=0;a<i.length;++a)i[a]=arguments[a];return e.__reactGuardOriginalCreateElement__.apply(e,i)}if("function"!=typeof t||t.prototype&&"render"in t.prototype){if(2===arguments.length)return e.__reactGuardOriginalCreateElement__(t,o);for(i=new Array(arguments.length),a=0;a<i.length;++a)i[a]=arguments[a];return e.__reactGuardOriginalCreateElement__.apply(e,i)}var c;t.__reactGuardGuardedFunction__?c=t.__reactGuardGuardedFunction__:(c=r(t),t.__reactGuardGuardedFunction__=c),(i=new Array(arguments.length))[0]=c;for(var a=1;a<i.length;++a)i[a]=arguments[a];return e.__reactGuardOriginalCreateElement__.apply(e,i)}};n.restore=function(e){"__reactGuardOriginalCreateElement__"in e&&(e.createElement=e.__reactGuardOriginalCreateElement__,delete e.__reactGuardOriginalCreateElement__)},e.exports=n},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(467));var o=function(e){return function(t){return function(n,o){var i=void 0===o?{}:o,a=i.body,c=i.zsEncrypt,s=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(i,["body","zsEncrypt"]),u=null;return c&&"string"==typeof a&&(a=(0,r.default)(a),u=Object.assign({"X-Zse-83":"3_"+r.ENCRYPT_VERSION},e&&{"X-Zse-85":(0,r.default)(e)})),t(n,Object.assign({},s,{body:a,headers:Object.assign({},s.headers,u)}))}}};t.default=o},function(e,t,n){"use strict";(function(e){function n(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}t.__esModule=!0,t.default=void 0;var r=new RegExp("d_c0=([^;]+)");var o="https://"+("testing"===e.env.ZAE_ENV?"www.zhihu.dev":"www.zhihu.com")+"/udid",i=function(e){return e(o,{method:"POST",timeout:150,credentials:"include"})};var a="undefined"!=typeof window?function(){return function(e){var t=(document.cookie.match(r)||[])[1]||i(e).catch((function(){return null}));return function(r,o){return n(t,(function(){return e(r,o)}))}}}:function(e){return function(t){var r=e.get("x-udid")||i(t).then((function(e){return e.ok?e.text():""})).catch((function(){return""}));return function(e,o){return void 0===o&&(o={}),n(r,(function(n){return t(e,Object.assign({},o,{headers:Object.assign({},o.headers,n&&{"x-udid":n})}))}))}}};t.default=a}).call(this,n(285))},function(e,t,n){"use strict";(function(e){t.__esModule=!0,t.default=void 0;var r,o=(r=n(568))&&r.__esModule?r:{default:r},i=n(151),a=n(71);function c(e){return e.replace(/[^\d]+\d+--([^.]+).+/,"$1").replace(/-/g,".")}var s=function(t){if(!t)throw new TypeError("preProxy's proxyUrl="+t+" can not be Falsy.");var n=(0,o.default)(t);return function(t){return function(r,s){var u=(0,i.isAbsoluteUrl)(r),l=(0,o.default)(r);if(l.resource=l.resource||"localhost",u&&/--(mr|box)/.test(l.resource)&&!/zhihu-com/.test(l.resource))return t(r,s);var d=/--(mr|box)/.test(l.resource)?c(l.resource):l.resource,f=null,p=l.pathname,h=l.search,b=p+(h?"?"+h:"");if((0,a.isNode)()||u&&d!==c(e.location.host))f="https://"+n.resource+"/"+d+b;else{var v=e.location;f=v.protocol+"//"+v.host+b}return t(f,s)}}};t.default=s}).call(this,n(109))},function(e,t,n){"use strict";var r=n(227);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(570)),i=r(n(799)),a={connect:o.default,install:i.default};t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(597),o=n(377),i=s(n(855)),a=s(n(598)),c=s(n(599));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e,t){void 0===t&&(t={});var n=e.userAgent,s=e.authInfo,u=e.xAppVersion,l=e.xUDId,d=e.xZst81,f=t,p=f.skipAutoSign,h=f.captureException,b="function"==typeof h,v=s&&s.id,m=Object.assign({},v&&{"x-hd":v},u&&{"x-app-version":u},d&&{"x-zst-81":d}),g=n.iOS?r.ZSE_83_VERSION.iOS:r.ZSE_83_VERSION.Android,O=void 0;return function(e){return function(t,n){var r=void 0===n?{}:n,s=r.zsAutoSignature,f=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(r,["zsAutoSignature"]),y=new Headers(Object.assign({},f.headers));if((0,a.default)({zsAutoSignature:s,skipAutoSign:p,url:t,options:f,headers:y}))return e(t,f);O||(O=(0,o.getDC0Cookie)());var j=l||O,E=null;try{var C=(0,i.default)(t,f.body,{xUDId:j,zse83:g,xAppVersion:u,authId:v,xZst81:d}),w=C.source,T=C.signature;E=w,Object.keys(m).forEach((function(e){return y.set(e,m[e])})),j&&y.set("x-ac-udid",j),y.set("x-zse-83",g),y.set("x-zse-86","2.0_"+T)}catch(e){b&&h(e,{type:"SignFailed",url:t,options:f,signatureSource:E})}var _={url:t,options:Object.assign({},f,{headers:(0,o.toObject)(y)})};return(0,c.default)(e,_,{captureException:b&&h,signatureSource:E})}}};t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=(void 0===e?{}:e).headerRefs,s=void 0===n?{}:n,u=void 0===t?{}:t,l=u.skipAutoSign,d=u.captureException,f="function"==typeof d;return function(e){return function(t,n){var u=void 0===n?{}:n,p=u.zsAutoSignature,h=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(u,["zsAutoSignature"]),b=new Headers(Object.assign({},h.headers));if((0,a.default)({zsAutoSignature:p,skipAutoSign:l,url:t,options:h,headers:b}))return e(t,h);var v=o.ZSE_83_VERSION.web,m=s.xZst81||b.get("x-zst-81"),g=null;try{var O=(0,r.getDC0Cookie)(),y=(0,i.default)(t,h.body,{zse83:v,dc0:O,xZst81:m}),j=y.signature;g=y.source,m&&b.set("x-zst-81",m),b.set("x-zse-83",v),b.set("x-zse-86","2.0_"+j)}catch(e){f&&d(e,{type:"SignFailed",url:t,options:h,signatureSource:g})}var E={url:t,options:Object.assign({},h,{headers:(0,r.toObject)(b)})};return(0,c.default)(e,E,{captureException:f&&d,signatureSource:g})}}};var r=n(377),o=n(597),i=s(n(856)),a=s(n(598)),c=s(n(599));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){e.exports=n(1027)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.preset=void 0;var r={colors:{text:"#000",background:"#fff",primary:"#07c",secondary:"#30c",muted:"#f6f6f9",gray:"#dddddf",highlight:"hsla(205, 100%, 40%, 0.125)"},fonts:{body:"system-ui, sans-serif",heading:"inherit",monospace:"Menlo, monospace"},fontSizes:[12,14,16,20,24,32,48,64,96],fontWeights:{body:400,heading:700,bold:700},lineHeights:{body:1.5,heading:1.25},space:[0,4,8,16,32,64,128,256,512],sizes:{avatar:48},radii:{default:4,circle:99999},shadows:{card:"0 0 4px rgba(0, 0, 0, .125)"},text:{heading:{fontFamily:"heading",lineHeight:"heading",fontWeight:"heading"},display:{fontFamily:"heading",fontWeight:"heading",lineHeight:"heading",fontSize:[5,6,7]},caps:{textTransform:"uppercase",letterSpacing:"0.1em"}},variants:{avatar:{width:"avatar",height:"avatar",borderRadius:"circle"},card:{p:2,bg:"background",boxShadow:"card"},link:{color:"primary"},nav:{fontSize:1,fontWeight:"bold",display:"inline-block",p:2,color:"inherit",textDecoration:"none",":hover,:focus,.active":{color:"primary"}}},buttons:{primary:{fontSize:2,fontWeight:"bold",color:"background",bg:"primary",borderRadius:"default"},outline:{variant:"buttons.primary",color:"primary",bg:"transparent",boxShadow:"inset 0 0 2px"},secondary:{variant:"buttons.primary",color:"background",bg:"secondary"}},styles:{root:{fontFamily:"body",fontWeight:"body",lineHeight:"body"}}};t.preset=r;var o=r;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n){return t.reduce((function(e,t){return t(e,n)}),e)}},e.exports=t.default},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(216),o=n(215),i=n(44);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.a)(e),a=Object(o.a)(t),c=n.getTime()-Object(r.a)(n),s=a.getTime()-Object(r.a)(a);return Math.round((c-s)/864e5)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(417),o=n(44);function i(e,t){Object(o.a)(2,arguments);var n=Object(r.a)(e,t)/36e5;return n>0?Math.floor(n):Math.ceil(n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(67),o=n(52),i=n(44);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.a)(e),a=Object(r.a)(t);return isNaN(a)?new Date(NaN):a?(n.setDate(n.getDate()+a),n):n}},function(e,t,n){"use strict";(function(e){var r,o=n(50),i=n(55),a=o.mark(N);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=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 i,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u,l=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))},d=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}},f=this&&this.__await||function(e){return this instanceof f?(this.v=e,this):new f(e)},p=this&&this.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||c(e,t)}))})}function c(e,t){try{(n=o[e](t)).value instanceof f?Promise.resolve(n.value.v).then(s,u):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function s(e){c("next",e)}function u(e){c("throw",e)}function l(e,t){e(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};Object.defineProperty(t,"__esModule",{value:!0}),t.getOrientationInfo=t.updateOrientationCode=t.readOrientationCode=t.getOrientation=t.OrientationCode=void 0,function(e){e[e.original=1]="original",e[e.deg90=6]="deg90",e[e.deg180=3]="deg180",e[e.deg270=8]="deg270",e[e.flipped=2]="flipped",e[e.deg90Flipped=5]="deg90Flipped",e[e.deg180Flipped=4]="deg180Flipped",e[e.deg270Flipped=7]="deg270Flipped",e[e.unknown=-1]="unknown"}(u=t.OrientationCode||(t.OrientationCode={}));var h=(i(r={},u.original,{rotation:0,flipped:!1}),i(r,u.deg90,{rotation:90,flipped:!1}),i(r,u.deg180,{rotation:180,flipped:!1}),i(r,u.deg270,{rotation:270,flipped:!1}),i(r,u.flipped,{rotation:0,flipped:!0}),i(r,u.deg90Flipped,{rotation:90,flipped:!0}),i(r,u.deg180Flipped,{rotation:180,flipped:!0}),i(r,u.deg270Flipped,{rotation:270,flipped:!0}),r),b=65496,v=65505,m=1165519206,g=18761,O=42,y=2,j=274,E={firstMarker:2,segment:{marker:0,length:2,exifId:4},tiffHeader:{fromSegment:10,byteOrder:0,endianAssertion:2,ifdOffset:4},ifd:{fromTiffHeader:-1,tag:0,type:2,count:4,value:8}};function C(e){return new Promise((function(t){return setTimeout(t,e)}))}function w(e){return l(this,void 0,void 0,o.mark((function t(){var n,r,i,a,c,s;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_(e);case 2:if(A(n=t.sent)){t.next=5;break}return t.abrupt("return",u.unknown);case 5:return t.next=7,k(n);case 7:if(!((r=t.sent)<0)){t.next=10;break}return t.abrupt("return",u.unknown);case 10:if(i=T(n,r),a=i.littleEndian,!((c=i.orientationOffset)<0)){t.next=14;break}return console.warn("Rotation information was not found"),t.abrupt("return",u.unknown);case 14:return s=D(n,c,a),t.abrupt("return",s);case 16:case"end":return t.stop()}}),t)})))}function T(e,t){var n=t+E.tiffHeader.fromSegment,r=function(e,t){return e.getUint16(t+E.tiffHeader.byteOrder,!1)===g}(e,n),o=function(e,t,n){var r=e.getUint16(t+E.tiffHeader.endianAssertion,n);if(r!==O)throw new Error("Invalid JPEG format: littleEndian ".concat(n,", assertion: 0x").concat(r));var o=e.getUint32(t+E.tiffHeader.ifdOffset,n);return t+o}(e,n,r);return{littleEndian:r,orientationOffset:function(e,t,n){var r,o=c(N(e,t,n));try{for(o.s();!(r=o.n()).done;){var i=r.value;if(e.getUint16(t+i,n)===j)return t+i+E.ifd.value}}catch(e){o.e(e)}finally{o.f()}return-1}(e,o+y,r)}}function _(t){return l(this,void 0,void 0,o.mark((function n(){var r,i;return o.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!("undefined"!=typeof File&&t instanceof File)){n.next=6;break}return n.next=3,S(t);case 3:r=n.sent,n.next=7;break;case 6:r=void 0!==e&&t instanceof e?t.buffer:t;case 7:return i=new DataView(r),n.abrupt("return",i);case 9:case"end":return n.stop()}}),n)})))}function S(e){return l(this,void 0,void 0,o.mark((function t(){var n;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,new Promise((function(t){var n=new FileReader;n.onload=function(){return t(n.result)},n.readAsArrayBuffer(e)}));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))}function A(e){return e.byteLength>=2&&e.getUint16(0,!1)===b}function k(e){var t,n;return l(this,void 0,void 0,o.mark((function r(){var i,a,c;return o.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:r.prev=0,i=d(R(e));case 2:return r.next=4,i.next();case 4:if((a=r.sent).done){r.next=12;break}if(c=a.value,!I(e,c)){r.next=10;break}return x(e,c),r.abrupt("return",c);case 10:r.next=2;break;case 12:r.next=17;break;case 14:r.prev=14,r.t0=r.catch(0),t={error:r.t0};case 17:if(r.prev=17,r.prev=18,!a||a.done||!(n=i.return)){r.next=22;break}return r.next=22,n.call(i);case 22:if(r.prev=22,!t){r.next=25;break}throw t.error;case 25:return r.finish(22);case 26:return r.finish(17);case 27:return r.abrupt("return",-1);case 28:case"end":return r.stop()}}),r,null,[[0,14,17,27],[18,,22,26]])})))}function R(e){return p(this,arguments,o.mark((function t(){var n,r,i;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=E.firstMarker;case 1:return t.next=4,f(C(1));case 4:return t.next=6,f(n);case 6:return t.next=8,t.sent;case 8:if(r=E.segment.length,i=r+e.getUint16(n+r,!1),!((n+=i)>e.byteLength)){t.next=16;break}return console.warn("APP1 not found"),t.next=15,f(-1);case 15:return t.abrupt("return",t.sent);case 16:t.next=1;break;case 18:case"end":return t.stop()}}),t)})))}function I(e,t){return e.getUint16(t+E.segment.marker,!1)===v}function x(e,t){if(e.getUint32(t+E.segment.exifId,!1)!==m)throw new Error("Segment marked as Exif does not have Exif identifier")}function N(e,t,n){var r,i,c,s;return o.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:r=e.getUint16(t,n),i=12,c=0;case 3:if(!(c<r)){o.next=10;break}return s=c*i,o.next=7,s;case 7:c++,o.next=3;break;case 10:case"end":return o.stop()}}),a)}function D(e,t,n){return e.getUint16(t,n)}function P(e,t,n,r){e.setUint16(t,n,r)}function L(e){return h[e]}t.getOrientation=function(e){return l(this,void 0,void 0,o.mark((function t(){var n,r;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w(e);case 2:return n=t.sent,r=L(n),t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)})))},t.readOrientationCode=w,t.updateOrientationCode=function(e,t){return l(this,void 0,void 0,o.mark((function n(){var r,i,a,c,s;return o.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_(e);case 2:if(A(r=n.sent)){n.next=5;break}throw new Error("The File you are trying to update is not a jpeg");case 5:return n.next=7,k(r);case 7:if(!((i=n.sent)<0)){n.next=10;break}throw new Error("The File you are trying to update has no exif data");case 10:a=T(r,i),c=a.littleEndian,s=a.orientationOffset,P(r,s,t,c);case 12:case"end":return n.stop()}}),n)})))},t.getOrientationInfo=L}).call(this,n(716).Buffer)},function(e,t,n){var r,o,i;o=[],void 0===(i="function"==typeof(r=function(){"use strict";return{drawImage:function(e,t,n,r,o,i){if(!/^[1-8]$/.test(t))throw new Error("orientation should be [1-8]");null==n&&(n=0),null==r&&(r=0),null==o&&(o=e.width),null==i&&(i=e.height);var a=document.createElement("canvas"),c=a.getContext("2d");switch(a.width=o,a.height=i,c.save(),+t){case 1:break;case 2:c.translate(o,0),c.scale(-1,1);break;case 3:c.translate(o,i),c.rotate(1*Math.PI);break;case 4:c.translate(0,i),c.scale(1,-1);break;case 5:a.width=i,a.height=o,c.rotate(.5*Math.PI),c.scale(1,-1);break;case 6:a.width=i,a.height=o,c.rotate(.5*Math.PI),c.translate(0,-i);break;case 7:a.width=i,a.height=o,c.rotate(1.5*Math.PI),c.translate(-o,i),c.scale(1,-1);break;case 8:a.width=i,a.height=o,c.translate(0,o),c.rotate(1.5*Math.PI)}return c.drawImage(e,n,r,o,i),c.restore(),a}}})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){var r=n(469);e.exports=function(e){return r(e,5)}},function(e,t,n){var r=n(608),o=n(264),i=n(331),a=o((function(e,t){return i(e)?r(e,t):[]}));e.exports=a},function(e,t,n){var r=n(264)(n(889));e.exports=r},function(e,t,n){var r=n(242),o=n(174);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)}},function(e,t,n){e.exports=n.p+"assets/wechat-share-logo.9e834e09.png"},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(897),i=(r=o)&&r.__esModule?r:{default:r};t.default=(0,i.default)({shouldComponentUpdate:function(){return!this._notifying}},(function(e,t,n,r,o){n&&(e._notifying=!0,n.call.apply(n,[e,r].concat(o)),e._notifying=!1),e._values[t]=r,e.unmounted||e.forceUpdate()})),e.exports=t.default},function(e,t,n){e.exports=n.p+"assets/apple-touch-icon-120.bbce8f18.png"},function(e,t,n){e.exports=n.p+"assets/apple-touch-icon-76.cbade8f9.png"},function(e,t,n){e.exports=n.p+"assets/apple-touch-icon-60.8f6c52aa.png"},function(e,t,n){e.exports=n.p+"assets/navbar-download-qrcode.df7c249a.png"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(910);t.default=function e(t,n,i){return void 0===n&&(n=0),void 0===i&&(i=[]),r.Children.toArray(t).reduce((function(t,a,c){return o.isFragment(a)?t.push.apply(t,e(a.props.children,n+1,i.concat(a.key||c))):r.isValidElement(a)?t.push(r.cloneElement(a,{key:i.concat(String(a.key)).join(".")})):"string"!=typeof a&&"number"!=typeof a||t.push(a),t}),[])}},function(e,t,n){e.exports=n.p+"assets/liukanshan_delete.2e77dc55.png"},function(e,t,n){e.exports=n.p+"assets/liukanshan_delivery.fce10af1.svg"},function(e,t,n){e.exports=n.p+"assets/reviewing.475ae21b.svg"},function(e,t,n){"use strict";(function(e){var r=n(7),o=n(8),i=n(9),a=n(10),c=n(5),s=n(0),u=n(1),l=n(1031),d=n(11),f=n(40),p=n.n(f);n(912);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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(a.a)(this,n)}}var b=function(t){Object(i.a)(a,t);var n=h(a);function a(){var e;Object(r.a)(this,a);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return(e=n.call.apply(n,[this].concat(o))).state={shown:!1},e.handleClose=function(){p.a.set("AdblockBanner::dismiss",!0),e.setState({shown:!1})},e}return Object(o.a)(a,[{key:"componentDidMount",value:function(){!0!==p.a.get("AdblockBanner::dismiss")&&(e.navigator&&/Mobile/.test(navigator.userAgent)||!function(){var e=document.createElement("div");e.className="adsbox",document.body.appendChild(e);var t="none"===getComputedStyle(e).display;return document.body.removeChild(e),t}()||this.setState({shown:!0}))}},{key:"render",value:function(){return this.state.shown&&Object(s.c)("div",{className:"AdblockBanner",children:[Object(s.c)("div",{className:"AdblockBanner-inner",children:["我们检测到你可能使用了 AdBlock 或 Adblock Plus,它的部分策略可能会影响到正常功能的使用(如关注)。",Object(s.b)("br",{}),"你可以设定特殊规则或将知乎加入白名单,以便我们更好地提供服务。 (",Object(s.b)("a",{href:"//www.zhihu.com/question/54919485",target:"_blank",children:"为什么?"}),")"]}),Object(s.b)(d.c,{preset:"plain",className:"AdblockBanner-close",onClick:this.handleClose,icon:l.a})]})}}]),a}(u.Component);t.a=b}).call(this,n(109))},function(e,t,n){"use strict";
|
|
|
/*!
|
|
|
* bytes
|
|
|
* Copyright(c) 2012-2014 TJ Holowaychuk
|
|
|
* Copyright(c) 2015 Jed Watson
|
|
|
* MIT Licensed
|
|
|
*/e.exports=function(e,t){if("string"==typeof e)return s(e);if("number"==typeof e)return c(e,t);return null},e.exports.format=c,e.exports.parse=s;var r=/\B(?=(\d{3})+(?!\d))/g,o=/(?:\.0*|(\.[^0]+)0+)$/,i={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},a=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function c(e,t){if(!Number.isFinite(e))return null;var n=Math.abs(e),a=t&&t.thousandsSeparator||"",c=t&&t.unitSeparator||"",s=t&&void 0!==t.decimalPlaces?t.decimalPlaces:2,u=Boolean(t&&t.fixedDecimals),l=t&&t.unit||"";l&&i[l.toLowerCase()]||(l=n>=i.pb?"PB":n>=i.tb?"TB":n>=i.gb?"GB":n>=i.mb?"MB":n>=i.kb?"KB":"B");var d=(e/i[l.toLowerCase()]).toFixed(s);return u||(d=d.replace(o,"$1")),a&&(d=d.replace(r,a)),d+c+l}function s(e){if("number"==typeof e&&!isNaN(e))return e;if("string"!=typeof e)return null;var t,n=a.exec(e),r="b";return n?(t=parseFloat(n[1]),r=n[4].toLowerCase()):(t=parseInt(e,10),r="b"),Math.floor(i[r]*t)}},function(e,t,n){e.exports=n.p+"assets/deleteComment.97d8abc0.gif"},function(e,t,n){e.exports=n.p+"assets/background_blue.dc578fa3.svg"},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=i(n(500)),o=i(n(502));function i(e){return e&&e.__esModule?e:{default:e}}var a=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?a(e)?e.json():e.text():a(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),u=function(e,t){return s(e,t).then(c)};t.default=u},function(e,t,n){"use strict";var r=n(918),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,c,s,u,l=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),c=document.createRange(),s=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),c.selectNodeContents(u),s.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(c):s.removeAllRanges()),u&&document.body.removeChild(u),a()}return l}},function(e,t,n){e.exports=n.p+"assets/logo.804f083e.png"},function(e,t,n){e.exports=n.p+"assets/ReviewingPlaceholder.b2c9d906.svg"},function(e,t,n){var r=n(242),o=n(135),i=n(174);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},function(e,t,n){e.exports=n.p+"assets/column_empty_placeholder.8816207c.svg"},function(e,t,n){e.exports=n.p+"assets/column_empty_placeholder_night.d0bb1bc1.svg"},function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},content:'<polygon fill-rule="evenodd" points="7.464 10.92 13.512 4.872 12 3.36 3.36 12 12 20.64 13.512 19.128 7.464 13.08 20.64 13.08 20.64 10.92"/>'}},function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},content:'<path fill-rule="evenodd" d="M5.14446039,12.3534672 C4.95033703,12.1594545 4.95336198,11.8418236 5.14446039,11.6507736 L14.652643,2.14499625 C14.8467663,1.950922 15.1625262,1.95176534 15.3579895,2.14695686 L16.8526881,3.63957745 C17.0481169,3.83473451 17.0517815,4.14578385 16.8476128,4.34742177 L9.09678114,12.0021761 L16.8476128,19.6538374 C17.0458446,19.8495328 17.0481514,20.1663469 16.8526881,20.3615384 L15.3579895,21.854159 C15.1625607,22.0493161 14.8437414,22.0472205 14.652643,21.856231 L5.14446039,12.3534672 Z"/>'}},function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},content:'<path fill-rule="evenodd" d="M12,8 C13.1,8 14,7.1 14,6 C14,4.9 13.1,4 12,4 C10.9,4 10,4.9 10,6 C10,7.1 10.9,8 12,8 L12,8 Z M10,12 C10,13.1 10.9,14 12,14 C13.1,14 14,13.1 14,12 C14,10.9 13.1,10 12,10 C10.9,10 10,10.9 10,12 Z M12,16 C10.9,16 10,16.9 10,18 C10,19.1 10.9,20 12,20 C13.1,20 14,19.1 14,18 C14,16.9 13.1,16 12,16 L12,16 Z"/>'}},function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},content:'<path fill-rule="evenodd" d="M4,14.5 C2.61928813,14.5 1.5,13.3807119 1.5,12 C1.5,10.6192881 2.61928813,9.5 4,9.5 C5.38071187,9.5 6.5,10.6192881 6.5,12 C6.5,13.3807119 5.38071187,14.5 4,14.5 Z M20,14.5 C18.6192881,14.5 17.5,13.3807119 17.5,12 C17.5,10.6192881 18.6192881,9.5 20,9.5 C21.3807119,9.5 22.5,10.6192881 22.5,12 C22.5,13.3807119 21.3807119,14.5 20,14.5 Z M12,14.5 C10.6192881,14.5 9.5,13.3807119 9.5,12 C9.5,10.6192881 10.6192881,9.5 12,9.5 C13.3807119,9.5 14.5,10.6192881 14.5,12 C14.5,13.3807119 13.3807119,14.5 12,14.5 Z"/>'}},function(e,t,n){e.exports=n.p+"assets/placeholder.765f50e5.svg"},function(e,t,n){e.exports=n.p+"assets/wechat-share-image.6e8f6318.png"},function(e,t,n){e.exports=n.p+"assets/liukanshan_blue@2x.97c95b87.png"},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,a=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,s=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,l=u&&u(Object);e.exports=function e(t,n,d){if("string"!=typeof n){if(l){var f=u(n);f&&f!==l&&e(t,f,d)}var p=a(n);c&&(p=p.concat(c(n)));for(var h=0;h<p.length;++h){var b=p[h];if(!(r[b]||o[b]||d&&d[b])){var v=s(n,b);try{i(t,b,v)}catch(e){}}}return t}return t}},function(e,t,n){e.exports=n.p+"assets/comment.66e07d4f.png"},function(e,t,n){"use strict";(function(e){
|
|
|
/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/
|
|
|
var r=n(874),o=n(875),i=n(723);function a(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=s.prototype:(null===e&&(e=new s(t)),e.length=t),e}function s(e,t,n){if(!(s.TYPED_ARRAY_SUPPORT||this instanceof s))return new s(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);s.TYPED_ARRAY_SUPPORT?(e=t).__proto__=s.prototype:e=f(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!s.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),o=(e=c(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(s.isBuffer(t)){var n=0|p(t.length);return 0===(e=c(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?c(e,0):f(e,t);if("Buffer"===t.type&&i(t.data))return f(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(l(t),e=c(e,t<0?0:0|p(t)),!s.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|p(t.length);e=c(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function b(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return k(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return S(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,o);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,o){var i,a=1,c=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,c/=2,s/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;i<c;i++)if(u(e,i)===u(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===s)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+s>c&&(n=c-s),i=n;i>=0;i--){for(var d=!0,f=0;f<s;f++)if(u(e,i+f)!==u(t,f)){d=!1;break}if(d)return i}return-1}function O(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var c=parseInt(t.substr(2*a,2),16);if(isNaN(c))return a;e[n+a]=c}return a}function y(e,t,n,r){return G(z(t,e.length-n),e,n,r)}function j(e,t,n,r){return G(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function E(e,t,n,r){return j(e,t,n,r)}function C(e,t,n,r){return G(F(t),e,n,r)}function w(e,t,n,r){return G(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function T(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function _(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,c,s,u=e[o],l=null,d=u>239?4:u>223?3:u>191?2:1;if(o+d<=n)switch(d){case 1:u<128&&(l=u);break;case 2:128==(192&(i=e[o+1]))&&(s=(31&u)<<6|63&i)>127&&(l=s);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(s=(15&u)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(l=s);break;case 4:i=e[o+1],a=e[o+2],c=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&c)&&(s=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&c)>65535&&s<1114112&&(l=s)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=s,t.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},t.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),s.poolSize=8192,s._augment=function(e){return e.__proto__=s.prototype,e},s.from=function(e,t,n){return u(null,e,t,n)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?c(e,t):void 0!==n?"string"==typeof r?c(e,t).fill(n,r):c(e,t).fill(n):c(e,t)}(null,e,t,n)},s.allocUnsafe=function(e){return d(null,e)},s.allocUnsafeSlow=function(e){return d(null,e)},s.isBuffer=function(e){return!(null==e||!e._isBuffer)},s.compare=function(e,t){if(!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=s.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!s.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},s.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?_(this,0,e):b.apply(this,arguments)},s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},s.prototype.compare=function(e,t,n,r,o){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),c=Math.min(i,a),u=this.slice(r,o),l=e.slice(t,n),d=0;d<c;++d)if(u[d]!==l[d]){i=u[d],a=l[d];break}return i<a?-1:a<i?1:0},s.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return O(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":return j(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function A(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function k(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=B(e[i]);return o}function R(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function I(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function x(e,t,n,r,o,i){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function N(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function D(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function P(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,i){return i||P(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function M(e,t,n,r,i){return i||P(e,0,n,8),o.write(e,t,n,r,52,8),n+8}s.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),s.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=s.prototype;else{var o=t-e;n=new s(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},s.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},s.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},s.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||x(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},s.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||x(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);x(this,e,t,n,o-1,-o)}var i=0,a=1,c=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===c&&0!==this[t+i-1]&&(c=1),this[t+i]=(e/a>>0)-c&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);x(this,e,t,n,o-1,-o)}var i=n-1,a=1,c=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===c&&0!==this[t+i+1]&&(c=1),this[t+i]=(e/a>>0)-c&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return M(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!s.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=s.isBuffer(e)?e:z(new s(e,r).toString()),c=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%c]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function F(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(109))},function(e,t,n){},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t,n){"use strict";n.r(t),n.d(t,"props",(function(){return a})),n.d(t,"createShouldForwardProp",(function(){return c}));var r=n(303),o=n(416),i=n(139),a=Object(i.compose)(i.space,i.typography,i.color,i.layout,i.flexbox,i.border,i.background,i.position,i.grid,i.shadow,i.buttonStyle,i.textStyle,i.colorStyle).propNames,c=function(e){var t=new RegExp("^("+e.join("|")+")$");return Object(r.a)((function(e){return Object(o.a)(e)&&!t.test(e)}))};t.default=c(a)},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,c,s=1,u={},l=!1,d=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){i.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(o=d.documentElement,r=function(e){var t=d.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",c=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",c,!1):e.attachEvent("onmessage",c),r=function(t){e.postMessage(a+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return u[s]=o,r(s),s++},f.clearImmediate=p}function p(e){delete u[e]}function h(e){if(l)setTimeout(h,0,e);else{var t=u[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{p(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(109),n(285))},,,,,,,,,,function(e,t,n){"use strict";
|
|
|
/** @license React v16.14.0
|
|
|
* react-jsx-runtime.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),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,l=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)c.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:l,props:i,_owner:a.current}}t.jsx=u,t.jsxs=u},function(e,t,n){e.exports=n(107)(210)},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=c(n(21)),o=c(n(737)),i=c(n(738)),a=c(n(739));function c(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return e},u=(0,a.default)((function(e){var t=void 0===e?{}:e,n=t.userId,a=t.clientId,c=t.platform,u=t.apiUrl,l=t.wrapFetch,d=void 0===l?s:l,f=r.default.decamelizeKeys({memberHashId:n,clientId:a,clientProfile:(0,o.default)(c)}),p=u||(0,i.default)(c);return d(fetch)(p,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(f)}).then((function(e){return e.json()})).then((function(e){return r.default.camelizeKeys(e)}))}));t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.Platform=void 0;var r={Android:1,iOS:2,Web:3};t.Platform=r;var o=function(e){return void 0===e&&(e="Web"),{platform:r[e]}};t.default=o},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=["Web","iOS","Android"],o=function(e){if(!e)return console.warn("Platform should be specified due to API BREAKING CHANGE"),"https://api.zhihu.com/ab/api/v1/config";if("string"==typeof e&&!r.includes(e))throw new Error("Platform should be one of "+r.join(", ")+".");return"https://api.zhihu.com/ab/api/v1/products/zhihu/platforms/"+e.toLowerCase()+"/config"};t.default=o},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new Promise((function(t){return t(e.apply(void 0,n))}))}};t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(741))&&r.__esModule?r:{default:r};var i=function(e){return e},a=function(e){return void 0===e&&(e={}),function(t){return function(n,r){void 0===r&&(r={});var a=e,c=a.config,s=a.onTrigger,u={};return c&&c.params&&(u["X-Ab-Param"]=(0,o.default)(c.params.filter((function(e){return"_all_"===e.chainId})))),c&&c.encodedParams&&(u["X-AB-PB"]=c.encodedParams),t(n,Object.assign({},r,{headers:Object.assign({},r.headers,u)})).then((function(e){if(e.ok){var t=e.headers.get("X-Ab-Trigger");t&&s((void 0===(n=t)&&(n=""),void 0===(r=function(e){return Boolean(Number(e))})&&(r=i),n.split(";").reduce((function(e,t){var n=t.split("="),o=n[0],i=n[1];return e[o]=r(i),e}),{})))}var n,r;return e}))}}};t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(e){return e.map((function(e){return e.id+"="+e.value})).join(";")};t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(e,t){if(void 0===t&&(t={}),!e||!e.experiments)return[];var n=[],r=e.experiments,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var a;if(o){if(i>=r.length)break;a=r[i++]}else{if((i=r.next()).done)break;a=i.value}var c=a,s=c.expId,u=c.includeTriggerInfo;if(c.isRuntime){var l=Boolean(t[c.expPrefix]);u?n.push({id:s,includeTriggerInfo:u,isTriggered:l}):l&&n.push({id:s,includeTriggerInfo:u})}else n.push({id:s})}return n};t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.updateAb=void 0;var r={config:{},triggers:{}};t.updateAb=function(e){return void 0===e&&(e={}),{type:"@fe/ab/UPDATE_AB",payload:e}};var o=function(e,t){void 0===e&&(e=r);var n=t.type,o=t.payload;if("@fe/ab/UPDATE_AB"===n){var i=o.triggers,a=o.config;return Object.assign({},e,{config:a||e.config,triggers:Object.assign({},e.triggers,i)})}return e};t.default=o},function(e,t,n){var r=n(454);e.exports=function(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=r(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}},function(e,t,n){var r=n(286),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[c]=n:delete e[c]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(368),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(368);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(368);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(368);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(367);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(367),o=n(458),i=n(460);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(459),o=n(758),i=n(163),a=n(553),c=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,l=s.toString,d=u.hasOwnProperty,f=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:c).test(a(e))}},function(e,t,n){var r,o=n(759),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(188)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(762),o=n(367),i=n(458);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(763),o=n(764),i=n(765),a=n(766),c=n(767);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=c,e.exports=s},function(e,t,n){var r=n(369);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(369),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(369),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(369);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(370);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(370);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(370);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(370);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),c=a.length;c--;){var s=a[e?c:++o];if(!1===n(i[s],s,i))break}return t}}},function(e,t,n){var r=n(554),o=n(557),i=n(558),a=n(372),c=n(560),s=n(330),u=n(135),l=n(331),d=n(332),f=n(459),p=n(163),h=n(208),b=n(373),v=n(562),m=n(778);e.exports=function(e,t,n,g,O,y,j){var E=v(e,n),C=v(t,n),w=j.get(C);if(w)r(e,n,w);else{var T=y?y(E,C,n+"",e,t,j):void 0,_=void 0===T;if(_){var S=u(C),A=!S&&d(C),k=!S&&!A&&b(C);T=C,S||A||k?u(E)?T=E:l(E)?T=a(E):A?(_=!1,T=o(C,!0)):k?(_=!1,T=i(C,!0)):T=[]:h(C)||s(C)?(T=E,s(E)?T=m(E):p(E)&&!f(E)||(T=c(C))):_=!1}_&&(j.set(C,T),O(T,C,g,y,j),j.delete(C)),r(e,n,T)}}},function(e,t,n){var r=n(242),o=n(174);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(242),o=n(464),i=n(174),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(263),o=n(333);e.exports=function(e){return r(e,o(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(163),o=n(329),i=n(781),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var c in e)("constructor"!=c||!t&&a.call(e,c))&&n.push(c);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(784),o=n(555),i=n(376),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var o=n(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){"use strict";var r=n(569);e.exports=function e(t){if(Array.isArray(t))return-1!==t.indexOf("ssh")||-1!==t.indexOf("rsync");if("string"!=typeof t)return!1;var n=r(t);return t=t.substring(t.indexOf("://")+3),!!e(n)||t.indexOf("@")<t.indexOf(":")}},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var c=/\+/g;e=e.split(t);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var u=e.length;s>0&&u>s&&(u=s);for(var l=0;l<u;++l){var d,f,p,h,b=e[l].replace(c,"%20"),v=b.indexOf(n);v>=0?(d=b.substr(0,v),f=b.substr(v+1)):(d=b,f=""),p=decodeURIComponent(d),h=decodeURIComponent(f),r(a,p)?o(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,c){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?i(a(e),(function(a){var c=encodeURIComponent(r(a))+n;return o(e[a])?i(e[a],(function(e){return c+encodeURIComponent(r(e))})).join(t):c+encodeURIComponent(r(e[a]))})).join(t):c?encodeURIComponent(r(c))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},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.modifyQuery=t.parse=t.param=t.toAbsoluteUrl=t.decorateAPIAddress=t.isAbsoluteUrl=void 0;var o=r(n(60)),i=n(71);function a(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("//")}t.isAbsoluteUrl=a,t.decorateAPIAddress=function(e){var t=e;return a(e)||(t="http://".concat(t)),t.endsWith("/")||(t="".concat(t,"/")),t},t.toAbsoluteUrl=function(e){if(e&&i.isBrowser()){if(e.startsWith("//"))return e;if(!a(e))return"".concat(location.origin).concat(e)}return e},t.param=function(e){return Object.keys(e).map((function(t){var n=e[t];return null!=n&&"".concat(t,"=").concat(encodeURIComponent(n))})).filter(Boolean).join("&")},t.parse=function(e){var t=e.match(/^(.*:)\/\/([A-Za-z0-9\-.]+)(:[0-9]+)?(.*)$/);return t?{protocol:t[1],hostname:t[2],port:t[3],pathname:t[4],href:e}:{}},t.modifyQuery=function(e,t){var n=e.split("?")[0],r=o.default.parse(e.split("?")[1]),i=o.default.stringify(t(r)),a=n;return i&&(a="".concat(n,"?").concat(i)),a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.isNode=void 0,t.isNode=function(){return"undefined"==typeof window},t.isBrowser=function(){return"undefined"!=typeof window}},function(e,t,n){"use strict";var r=n(227);Object.defineProperty(t,"__esModule",{value:!0}),t.parseUA=void 0;var o=r(n(224));t.parseUA=function(){(0,o.default)("undefined"!=typeof navigator,"parseUA should be used in browser environment.");var e=navigator.userAgent;return{userAgent:e,Mobile:/Mobile/.test(e),Android:/Android/.test(e),Zhihu:/Zhihu|osee2unifiedRelease|Futureve/.test(e)}}},function(e,t,n){"use strict";var r=n(227);Object.defineProperty(t,"__esModule",{value:!0}),t.Client=void 0;var o=r(n(22)),i=r(n(24)),a=r(n(224)),c=r(n(572)),s=r(n(573)),u=n(793),l=n(468),d={endpoint:"https://www.zhihu.com/sc-profiler",environments:{appName:""},timingSampleRate:1},f=function(){function e(t){var n=this;(0,o.default)(this,e),this.metricPrefix="",this.parseMetricName=function(e){if(!e)return null;if("string"==typeof e)return n.metricPrefix+e;if("raw"in e)return e.raw;if("name"in e&&"options"in e){var t=n.options.environments,r=Object.assign({},t,e.options);return(0,c.default)(r)(e.name)}return null},this.handleOperation=(0,s.default)((function(e){if(e){var t,r=e.name,o=e.operation;(0,a.default)("number"==typeof(t=o.value)&&isFinite(t),"value should be valid number."),(0,a.default)(o.sampleRate<=1,"sampleRate should be <= 1.");var i=n.parseMetricName(r);(0,a.default)("string"==typeof i,"metricName should be string."),n.consumer.consume(Object.assign({},o,{name:i}))}})),this.options=Object.assign({},d,t);var r=this.options,i=r.environments,l=r.endpoint,f=r._flushInterval;this.metricPrefix=(0,c.default)(i)(),this.consumer=new u.Compressor({endpoint:l,flushInterval:f})}return(0,i.default)(e,[{key:"increment",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n={op:l.Command.increment,value:1,sampleRate:t};this.handleOperation({name:e,operation:n})}},{key:"decrement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n={op:l.Command.decrement,value:1,sampleRate:t};this.handleOperation({name:e,operation:n})}},{key:"gauge",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r={op:l.Command.gauge,value:t,sampleRate:n};this.handleOperation({name:e,operation:r})}},{key:"timing",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r={op:l.Command.timing,value:t,sampleRate:n};this.handleOperation({name:e,operation:r})}},{key:"timer",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=Date.now();return function(){var o={op:l.Command.timing,value:Date.now()-r,sampleRate:n};t.handleOperation({name:e,operation:o})}}}]),e}();t.Client=f},function(e,t,n){"use strict";var r=n(227);Object.defineProperty(t,"__esModule",{value:!0}),t.Compressor=void 0;var o=r(n(22)),i=r(n(24)),a=r(n(224)),c=n(794),s=r(n(797)),u=r(n(798)),l=function(){function e(t){var n=this;(0,o.default)(this,e),this.timerId=null,this.handlePayload=function(e){var t=(0,s.default)(e);(0,u.default)(n.options.endpoint,t),n.timerId=null};var r=t.flushInterval||400;(0,a.default)(r>=400,"Flush executing of ".concat(r,"ms is too exhausted.")),this.options=Object.assign({},t,{flushInterval:r}),this.store=new c.Store({handlePayload:this.handlePayload}),window.addEventListener("unload",(function(){return n.dispose()}),!1)}return(0,i.default)(e,[{key:"consume",value:function(e){var t=this;this.store.set(e),this.timerId||(this.timerId=setTimeout((function(){return t.store.flush()}),this.options.flushInterval))}},{key:"dispose",value:function(){this.timerId&&(clearTimeout(this.timerId),this.timerId=null),this.store.flush()}}]),e}();t.Compressor=l},function(e,t,n){"use strict";var r=n(227);Object.defineProperty(t,"__esModule",{value:!0}),t.Store=void 0;var o=r(n(22)),i=r(n(24)),a=r(n(573)),c=n(795),s=n(796),u=function(){function e(t){var n=this,r=t.handlePayload;(0,o.default)(this,e),this.counterDict={},this.operationList=[],this.flush=(0,a.default)((function(){var e=Object.keys(n.counterDict).map((function(e){var t=n.counterDict[e];return delete n.counterDict[e],t})).concat(n.operationList);n.operationList=[],n.batchExecute(e)})),this.batchExecute=(0,s.createBatchExecute)(r)}return(0,i.default)(e,[{key:"set",value:function(e){if((0,c.canMerged)(e)){var t=e.name,n=this.counterDict[t];n&&(e=(0,c.merge)(n,e)),this.counterDict[t]=e}else this.operationList.push(e)}}]),e}();t.Store=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merge=t.canMerged=void 0;var r=n(468);t.canMerged=function(e){var t=e.op,n=e.sampleRate;return(t===r.Command.increment||t===r.Command.decrement)&&1===n};t.merge=function(e,t){var n=e.op,o=e.op===t.op?e.value+t.value:e.value-t.value;return o<0&&(n=n===r.Command.increment?r.Command.decrement:r.Command.increment,o=Math.abs(o)),Object.assign({},t,{op:n,value:o})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBatchExecute=void 0;t.createBatchExecute=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(n){var r=[];n.forEach((function(n,o){r.push(n),(o+1)%t==0&&(e(r),r=[])})),r.length&&e(r)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(468),o=function(e){return e.filter((function(e){var t=e.op;return 0!==e.value||r.Command.increment!==t&&r.Command.decrement!==t})).map((function(e){return[e.op,e.name,e.value,e.sampleRate||1]}))};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=new XMLHttpRequest;n.open("POST",e),n.setRequestHeader("Content-Type","application/json"),n.withCredentials=!0,n.onerror=function(){return console.error({status:n.status,responseText:n.responseText})},n.send(JSON.stringify(t))}},function(e,t,n){"use strict";var r=n(227);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(224)),i=r(n(570)),a=function(e){if((0,o.default)("undefined"!=typeof window,"statsc-client should be used in browser environment."),window.statsc){var t=(window.statsc.options||{environments:{appName:"unknown"}}).environments;throw new Error('window.statsc had been installed as "'.concat(t.appName,'".'))}window.statsc=(0,i.default)(e)};t.default=a},function(e,t,n){"use strict";var r=n(227);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"statGenerator",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"batchedTiming",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"setPageName",{enumerable:!0,get:function(){return c.setPageName}}),Object.defineProperty(t,"getPageName",{enumerable:!0,get:function(){return c.getPageName}});var o=r(n(574)),i=r(n(572)),a=r(n(801)),c=n(575)},function(e,t,n){"use strict";var r=n(227);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.raw,r=t.environments,a=t.sampleRate,c=(0,i.getPageName)();Object.keys(e).forEach((function(t){var i=e[t];if(void 0!==i){var s="".concat(c,".").concat(t),u=r?{name:s,options:r}:s;o.default.timing(n?{raw:t}:u,i,a)}}))};var o=r(n(574)),i=n(575)},function(e,t,n){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(164)),i={store:{},setItem:function(e,t){this.store[e]=t},removeItem:function(e){return delete this.store[e]},getItem:function(e){return this.store[e]}},a={isSupported:o.default((function(){try{var t={key:"__test_support_key__",value:"__test_support_value__"},n=Boolean(e.localStorage);return localStorage.setItem(t.key,t.value),localStorage.removeItem(t.key),n}catch(e){return!1}})),getStorage:o.default((function(){return a.isSupported()?localStorage:i})),set:function(e,t){a.getStorage().setItem(e,JSON.stringify(t))},get:function(e){try{var t=a.getStorage().getItem(e);return JSON.parse(t)}catch(e){return null}},delete:function(e){a.getStorage().removeItem(e)}};t.default=a}).call(this,n(109))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadScript=void 0,t.loadScript=function(e,t){return new Promise((function(n,r){var o=document.createElement("script");Object.assign(o,Object.assign({crossOrigin:""},t)),o.onload=function(){return n(o)},o.onerror=function(){return r(new Error("Load script from ".concat(e," failed")))},o.src=e;var i=document.head||document.getElementsByTagName("head")[0];(document.body||i).appendChild(o)}))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(263),o=n(289);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(561)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(263),o=n(333);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(263),o=n(470);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t,n){var r=n(263),o=n(578);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(262)(n(188),"DataView");e.exports=r},function(e,t,n){var r=n(262)(n(188),"Promise");e.exports=r},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(461),o=n(815),i=n(816),a=n(817),c=n(558);e.exports=function(e,t,n){var s=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return c(e,n);case"[object Map]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return i(e);case"[object Set]":return new s;case"[object Symbol]":return a(e)}}},function(e,t,n){var r=n(461);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(286),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},function(e,t,n){var r=n(819),o=n(287),i=n(465),a=i&&i.isMap,c=a?o(a):r;e.exports=c},function(e,t,n){var r=n(335),o=n(174);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},function(e,t,n){var r=n(821),o=n(287),i=n(465),a=i&&i.isSet,c=a?o(a):r;e.exports=c},function(e,t,n){var r=n(335),o=n(174);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},function(e,t,n){var r=n(290),o=n(584),i=n(825),a=n(291);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},function(e,t,n){var r=n(824),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},function(e,t,n){var r=n(164);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(336),o=n(475);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},function(e,t,n){var r=n(208);e.exports=function(e){return r(e)?void 0:e}},function(e,t,n){var r=n(337);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){var r=n(286),o=n(330),i=n(135),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={Edge:/Edge/i,IE:/MSIE|Trident/i,Wechat:/MicroMessenger/,Weibo:/Weibo/,QQ:/\sQQ\//,MQQBrowser:/MQQBrowser/i,Qzone:/\sQzone\//,Mobile:/Mobile/,Android:/Android/,iOS:/iPhone|iPad|iPod/,isAppleDevice:/iPad|iPhone|iPod|Mac OS X/,Zhihu:/Zhihu|osee2unifiedRelease|Futureve/,ZhihuHybrid:/ZhihuHybrid/,isBot:/Baiduspider|Sogou\s\w+\sspider|Yisouspider|Googlebot|Bingbot|360Spider/,Tablet:/(iPad|Tablet)|(Android.*Chrome(?!.*Mobile))/,UC:/UCBrowser/,Sogou:/Sogou/,Qihoo:/QHBrowser/,Baidu:/baidubrowser/,BaiduApp:/baidubox/,Safari:/^((?!chrome|android).)*safari/i,GoogleBot:/Googlebot/,AndroidDaily:/com.zhihu.daily.android/,iOSDaily:/知乎日报/,WxMiniProgram:/^(?=.*MicroMessenger)(?=.*miniProgram).*/,BaiduMiniProgram:/swan\//,QQMiniProgram:/^(?=.*QQ)(?=.*miniProgram).*/,JDMiniProgram:/jdmp/};t.default=function(e){var t=Object.keys(r).reduce((function(t,n){return t[n]=r[n].test(e),t}),{});if(t.isWebView=t.Wechat||t.Weibo||t.Zhihu||t.QQ,t.isMiniProgram=t.WxMiniProgram||t.BaiduMiniProgram||t.QQMiniProgram||t.JDMiniProgram,t.Zhihu){var n=e.match(/osee2unifiedReleaseVersion\/(\S+)/);n&&(t.ZhihuIOSVersionName=n[1]);var o=e.match(/Futureve\/(\S+)/);o&&(t.ZhihuAndroidVersionName=o[1])}return t.origin=e,t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.versionControl=void 0;var r=n(586),o=n(477);t.versionControl=function(e,t){var n=r.getVersionAndOS(e),i=n.OS,a=n.version,c=t[i]||"0";return-1!==o.compareVersion(a,c)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.testVersion=void 0;var r=n(477);t.testVersion=function(e,t,n){switch(t){case">=":return-1!==r.compareVersion(e,n);case">":return 1===r.compareVersion(e,n);case"=":return 0===r.compareVersion(e,n);case"<":return-1===r.compareVersion(e,n);case"<=":return 1!==r.compareVersion(e,n);default:throw new Error("operator must be one of >, >=, =, < and <=.")}}},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.initOpenInApp=void 0;var o=r(n(60)),i=n(151),a=r(n(68)),c=n(158),s=n(176),u=r(n(40));t.initOpenInApp=function(){var e;return a.default(window.navigator.userAgent).Wechat?(e="".concat(location.protocol,"//res.wx.qq.com/open/js/jweixin-1.3.2.js"),(window.wx?Promise.resolve():s.loadScript(e).then((function(){}))).then((function(){return fetch("".concat("https://www.zhihu.com/wechat/jssdkconfig","?url=").concat(encodeURIComponent(location.href.split("#")[0]))).then((function(e){if(e.ok)return e.json();throw new Error("Failed to fetch wechat jssdk config")}))})).then((function(e){return new Promise((function(t){var n=function(){window.wx&&(window.wx.config(Object.assign(Object.assign({},e),{beta:!0,jsApiList:["launchApplication"]})),window.wx.ready((function(){return t(void 0)})))};window.wx?n():document.addEventListener("WeixinJSBridgeReady",n)}))}))):Promise.resolve()},t.default=function(e){var t=a.default(window.navigator.userAgent),n=function(e){var t=a.default(window.navigator.userAgent),n=o.default.parse(window.location.search.slice(1)).app,r=u.default.isSupported()&&"1"===window.sessionStorage.getItem("from_zhihulite"),c="https://oia.zhihu.com/".concat(e.replace("zhihu://","")),s=i.modifyQuery(e,(function(e){return Object.assign(Object.assign(Object.assign(Object.assign({open:"1"},e),r&&{app:"zhihulite"}),n&&{app:n}),{fallback_url:c})}));return t.Android&&(s=s.replace(/^zhihu:\/\/promotions/,"zhihu://promotion")),s}(e),r=n.replace("zhihu://","");if(t.Wechat&&window.wx){var s=navigator.userAgent.match(/MicroMessenger\/(\S*)/);if(s&&c.compareVersion(s[1],"6.5.16")>0)return void("function"==typeof window.wx.invoke&&window.wx.invoke("launchApplication",{appID:"wxd3f6cb54399a8489",parameter:"wechat_launch?scheme_url=".concat(encodeURIComponent(n)),extInfo:JSON.stringify({url:n})},(function(e){"launchApplication:ok"===e.err_msg||"oia.zhihu.com"===window.location.hostname||window.location.href.startsWith("https://www.zhihu.com/oia")||(window.location.href=i.modifyQuery("https://oia.zhihu.com/".concat(r),(function(e){return Object.assign(Object.assign({},e),{auto_redirect:!1})})))})))}t.Wechat&&!window.wx&&console.warn("使用 openInApp 中的 initOpenInApp() 初始化、可以在微信中直接打开 App"),t.Android?t.Weibo?window.location.href="https://www.zhihu.com/oia_free/".concat(r):window.location.href="https://www.zhihu.com/oia/".concat(r):window.location.href="https://oia.zhihu.com/".concat(r)}},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},function(e,t,n){var r=n(581),o=n(69),i=n(480),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFormData=void 0,t.getFormData=function(e,t){return Object.keys(e).reduce((function(t,n){var r=e[n];return null!=r&&t.append(n,r),t}),t||new FormData)}},function(e,t,n){var r=n(188);e.exports=function(){return r.Date.now()}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(209))&&r.__esModule?r:{default:r};var i=Number.isNaN||function(e){return e!=e},a=function(e){return null!=e&&!i(e)};t.default=function(){return e=a,function(t){return function(n,r){return void 0===r&&(r={}),t(n,Object.assign({},r,{headers:(0,o.default)(r.headers,e)}))}};var e}},function(e,t,n){var r=n(842),o=n(848),i=n(593);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(366),o=n(481);e.exports=function(e,t,n,i){var a=n.length,c=a,s=!i;if(null==e)return!c;for(e=Object(e);a--;){var u=n[a];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<c;){var l=(u=n[a])[0],d=e[l],f=u[1];if(s&&u[2]){if(void 0===d&&!(l in e))return!1}else{var p=new r;if(i)var h=i(d,f,l,e,t,p);if(!(void 0===h?o(f,d,3,i,p):h))return!1}}return!0}},function(e,t,n){var r=n(366),o=n(591),i=n(845),a=n(847),c=n(335),s=n(135),u=n(332),l=n(373),d="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,p,h,b){var v=s(e),m=s(t),g=v?"[object Array]":c(e),O=m?"[object Array]":c(t),y=(g="[object Arguments]"==g?d:g)==d,j=(O="[object Arguments]"==O?d:O)==d,E=g==O;if(E&&u(e)){if(!u(t))return!1;v=!0,y=!1}if(E&&!y)return b||(b=new r),v||l(e)?o(e,t,n,p,h,b):i(e,t,g,n,p,h,b);if(!(1&n)){var C=y&&f.call(e,"__wrapped__"),w=j&&f.call(t,"__wrapped__");if(C||w){var T=C?e.value():e,_=w?t.value():t;return b||(b=new r),h(T,_,n,p,b)}}return!!E&&(b||(b=new r),a(e,t,n,p,h,b))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var r=n(286),o=n(559),i=n(327),a=n(591),c=n(846),s=n(480),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=c;case"[object Set]":var h=1&r;if(p||(p=s),e.size!=t.size&&!h)return!1;var b=f.get(e);if(b)return b==t;r|=2,f.set(e,t);var v=a(p(e),p(t),r,u,d,f);return f.delete(e),v;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t,n){var r=n(579),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,c){var s=1&n,u=r(e),l=u.length;if(l!=r(t).length&&!s)return!1;for(var d=l;d--;){var f=u[d];if(!(s?f in t:o.call(t,f)))return!1}var p=c.get(e),h=c.get(t);if(p&&h)return p==t&&h==e;var b=!0;c.set(e,t),c.set(t,e);for(var v=s;++d<l;){var m=e[f=u[d]],g=t[f];if(i)var O=s?i(g,m,f,t,e,c):i(m,g,f,e,t,c);if(!(void 0===O?m===g||a(m,g,n,i,c):O)){b=!1;break}v||(v="constructor"==f)}if(b&&!v){var y=e.constructor,j=t.constructor;y==j||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof j&&j instanceof j||(b=!1)}return c.delete(e),c.delete(t),b}},function(e,t,n){var r=n(592),o=n(289);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},function(e,t,n){var r=n(481),o=n(193),i=n(594),a=n(473),c=n(592),s=n(593),u=n(291);e.exports=function(e,t){return a(e)&&c(t)?s(u(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(290),o=n(330),i=n(135),a=n(375),c=n(464),s=n(291);e.exports=function(e,t,n){for(var u=-1,l=(t=r(t,e)).length,d=!1;++u<l;){var f=s(t[u]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++u!=l?d:!!(l=null==e?0:e.length)&&c(l)&&a(f,l)&&(i(e)||o(e))}},function(e,t,n){var r=n(595),o=n(853),i=n(473),a=n(291);e.exports=function(e){return i(e)?r(a(e)):o(e)}},function(e,t,n){var r=n(336);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(374),o=n(290),i=n(375),a=n(163),c=n(291);e.exports=function(e,t,n,s){if(!a(e))return e;for(var u=-1,l=(t=o(t,e)).length,d=l-1,f=e;null!=f&&++u<l;){var p=c(t[u]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(u!=d){var b=f[p];void 0===(h=s?s(b,p,f):void 0)&&(h=a(b)?b:i(t[u+1])?[]:{})}r(f,p,h),f=f[p]}return e}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=a(n(251)),o=a(n(467)),i=n(377);function a(e){return e&&e.__esModule?e:{default:e}}var c=function(e,t,n){var a=n.zse83,c=n.xAppVersion,s=n.authId,u=n.xUDId,l=n.xZst81,d=(0,i.stripUrlOrigin)(e),f=(0,i.bodyToString)(t),p=[a,d,c,s,u,(0,i.shouldSignBody)(f)&&f,l].filter(Boolean).join("+");return{source:p,signature:(0,o.default)((0,r.default)(p))}};t.default=c},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n){var a=n.zse83,c=n.dc0,s=n.xZst81,u=(0,i.stripUrlOrigin)(e),l=(0,i.bodyToString)(t),d=[a,u,c,(0,i.shouldSignBody)(l)&&l,s].filter(Boolean).join("+");return{source:d,signature:(0,o.default)((0,r.default)(d))}};var r=a(n(251)),o=a(n(467)),i=n(377);function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function i(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var n,o,a=[];for(o in"string"!=typeof t&&(t="?"),e)if(r.call(e,o)){if((n=e[o])||null!=n&&!isNaN(n)||(n=""),o=i(o),n=i(n),null===o||null===n)continue;a.push(o+"="+n)}return a.length?t+a.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,r={};t=n.exec(e);){var i=o(t[1]),a=o(t[2]);null===i||null===a||i in r||(r[i]=a)}return r}},function(e,t,n){"use strict";n.r(t);var r=JSON.parse(document.getElementById("js-clientConfig").textContent);t.default=r},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=n(1),i=r(o),a=r(n(862));function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var u,l=[];function d(){u=e(l.map((function(e){return e.props}))),f.canUseDOM?t(u):n&&(u=n(u))}var f=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.peek=function(){return u},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=u;return u=void 0,l=[],e};var c=o.prototype;return c.shouldComponentUpdate=function(e){return!a(e,this.props)},c.componentWillMount=function(){l.push(this),d()},c.componentDidUpdate=function(){d()},c.componentWillUnmount=function(){var e=l.indexOf(this);l.splice(e,1),d()},c.render=function(){return i.createElement(r,this.props)},o}(o.Component);return c(f,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),c(f,"canUseDOM",s),f}}},function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var u=i[s];if(!c(u))return!1;var l=e[u],d=t[u];if(!1===(o=n?n.call(r,l,d,u):void 0)||void 0===o&&l!==d)return!1}return!0}},function(e,t,n){"use strict";var r=Array.isArray,o=Object.keys,i=Object.prototype.hasOwnProperty,a="undefined"!=typeof Element;e.exports=function(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var c,s,u,l=r(t),d=r(n);if(l&&d){if((s=t.length)!=n.length)return!1;for(c=s;0!=c--;)if(!e(t[c],n[c]))return!1;return!0}if(l!=d)return!1;var f=t instanceof Date,p=n instanceof Date;if(f!=p)return!1;if(f&&p)return t.getTime()==n.getTime();var h=t instanceof RegExp,b=n instanceof RegExp;if(h!=b)return!1;if(h&&b)return t.toString()==n.toString();var v=o(t);if((s=v.length)!==o(n).length)return!1;for(c=s;0!=c--;)if(!i.call(n,v[c]))return!1;if(a&&t instanceof Element&&n instanceof Element)return t===n;for(c=s;0!=c--;)if(!("_owner"===(u=v[c])&&t.$$typeof||e(t[u],n[u])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},function(e,t,n){(function(e){t.__esModule=!0,t.warn=t.requestAnimationFrame=t.reducePropsToState=t.mapStateOnServer=t.handleClientStateChange=t.convertReactPropstoHtmlAttributes=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=s(n(1)),a=s(n(100)),c=n(601);function s(e){return e&&e.__esModule?e:{default:e}}var u,l=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},d=function(e){var t=v(e,c.TAG_NAMES.TITLE),n=v(e,c.HELMET_PROPS.TITLE_TEMPLATE);if(n&&t)return n.replace(/%s/g,(function(){return t}));var r=v(e,c.HELMET_PROPS.DEFAULT_TITLE);return t||r||void 0},f=function(e){return v(e,c.HELMET_PROPS.ON_CHANGE_CLIENT_STATE)||function(){}},p=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return o({},e,t)}),{})},h=function(e,t){return t.filter((function(e){return void 0!==e[c.TAG_NAMES.BASE]})).map((function(e){return e[c.TAG_NAMES.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},b=function(e,t,n){var o={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&j("Helmet: "+e+' should be of type "Array". Instead found type "'+r(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var r={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],u=s.toLowerCase();-1===t.indexOf(u)||n===c.TAG_PROPERTIES.REL&&"canonical"===e[n].toLowerCase()||u===c.TAG_PROPERTIES.REL&&"stylesheet"===e[u].toLowerCase()||(n=u),-1===t.indexOf(s)||s!==c.TAG_PROPERTIES.INNER_HTML&&s!==c.TAG_PROPERTIES.CSS_TEXT&&s!==c.TAG_PROPERTIES.ITEM_PROP||(n=s)}if(!n||!e[n])return!1;var l=e[n].toLowerCase();return o[n]||(o[n]={}),r[n]||(r[n]={}),!o[n][l]&&(r[n][l]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(r),s=0;s<i.length;s++){var u=i[s],l=(0,a.default)({},o[u],r[u]);o[u]=l}return e}),[]).reverse()},v=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},m=(u=Date.now(),function(e){var t=Date.now();t-u>16?(u=t,e(t)):setTimeout((function(){m(e)}),0)}),g=function(e){return clearTimeout(e)},O="undefined"!=typeof window?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||m:e.requestAnimationFrame||m,y="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||g:e.cancelAnimationFrame||g,j=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},E=null,C=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,u=e.onChangeClientState,l=e.scriptTags,d=e.styleTags,f=e.title,p=e.titleAttributes;_(c.TAG_NAMES.BODY,r),_(c.TAG_NAMES.HTML,o),T(f,p);var h={baseTag:S(c.TAG_NAMES.BASE,n),linkTags:S(c.TAG_NAMES.LINK,i),metaTags:S(c.TAG_NAMES.META,a),noscriptTags:S(c.TAG_NAMES.NOSCRIPT,s),scriptTags:S(c.TAG_NAMES.SCRIPT,l),styleTags:S(c.TAG_NAMES.STYLE,d)},b={},v={};Object.keys(h).forEach((function(e){var t=h[e],n=t.newTags,r=t.oldTags;n.length&&(b[e]=n),r.length&&(v[e]=h[e].oldTags)})),t&&t(),u(e,b,v)},w=function(e){return Array.isArray(e)?e.join(""):e},T=function(e,t){void 0!==e&&document.title!==e&&(document.title=w(e)),_(c.TAG_NAMES.TITLE,t)},_=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(c.HELMET_ATTRIBUTE),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s++){var u=a[s],l=t[u]||"";n.getAttribute(u)!==l&&n.setAttribute(u,l),-1===o.indexOf(u)&&o.push(u);var d=i.indexOf(u);-1!==d&&i.splice(d,1)}for(var f=i.length-1;f>=0;f--)n.removeAttribute(i[f]);o.length===i.length?n.removeAttribute(c.HELMET_ATTRIBUTE):n.getAttribute(c.HELMET_ATTRIBUTE)!==a.join(",")&&n.setAttribute(c.HELMET_ATTRIBUTE,a.join(","))}},S=function(e,t){var n=document.head||document.querySelector(c.TAG_NAMES.HEAD),r=n.querySelectorAll(e+"["+c.HELMET_ATTRIBUTE+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===c.TAG_PROPERTIES.INNER_HTML)n.innerHTML=t.innerHTML;else if(r===c.TAG_PROPERTIES.CSS_TEXT)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(c.HELMET_ATTRIBUTE,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},A=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[c.REACT_TAG_MAP[n]||n]=e[n],t}),t)},R=function(e,t,n){switch(e){case c.TAG_NAMES.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[c.HELMET_ATTRIBUTE]=!0,o=k(n,r),[i.default.createElement(c.TAG_NAMES.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=A(n),i=w(t);return o?"<"+e+" "+c.HELMET_ATTRIBUTE+'="true" '+o+">"+l(i,r)+"</"+e+">":"<"+e+" "+c.HELMET_ATTRIBUTE+'="true">'+l(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case c.ATTRIBUTE_NAMES.BODY:case c.ATTRIBUTE_NAMES.HTML:return{toComponent:function(){return k(t)},toString:function(){return A(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[c.HELMET_ATTRIBUTE]=!0,r);return Object.keys(t).forEach((function(e){var n=c.REACT_TAG_MAP[e]||e;if(n===c.TAG_PROPERTIES.INNER_HTML||n===c.TAG_PROPERTIES.CSS_TEXT){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),i.default.createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===c.TAG_PROPERTIES.INNER_HTML||e===c.TAG_PROPERTIES.CSS_TEXT)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+l(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===c.SELF_CLOSING_TAGS.indexOf(e);return t+"<"+e+" "+c.HELMET_ATTRIBUTE+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}};t.convertReactPropstoHtmlAttributes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[c.HTML_TAG_MAP[n]||n]=e[n],t}),t)},t.handleClientStateChange=function(e){E&&y(E),e.defer?E=O((function(){C(e,(function(){E=null}))})):(C(e),E=null)},t.mapStateOnServer=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,u=e.scriptTags,l=e.styleTags,d=e.title,f=void 0===d?"":d,p=e.titleAttributes;return{base:R(c.TAG_NAMES.BASE,t,r),bodyAttributes:R(c.ATTRIBUTE_NAMES.BODY,n,r),htmlAttributes:R(c.ATTRIBUTE_NAMES.HTML,o,r),link:R(c.TAG_NAMES.LINK,i,r),meta:R(c.TAG_NAMES.META,a,r),noscript:R(c.TAG_NAMES.NOSCRIPT,s,r),script:R(c.TAG_NAMES.SCRIPT,u,r),style:R(c.TAG_NAMES.STYLE,l,r),title:R(c.TAG_NAMES.TITLE,{title:f,titleAttributes:p},r)}},t.reducePropsToState=function(e){return{baseTag:h([c.TAG_PROPERTIES.HREF],e),bodyAttributes:p(c.ATTRIBUTE_NAMES.BODY,e),defer:v(e,c.HELMET_PROPS.DEFER),encode:v(e,c.HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:p(c.ATTRIBUTE_NAMES.HTML,e),linkTags:b(c.TAG_NAMES.LINK,[c.TAG_PROPERTIES.REL,c.TAG_PROPERTIES.HREF],e),metaTags:b(c.TAG_NAMES.META,[c.TAG_PROPERTIES.NAME,c.TAG_PROPERTIES.CHARSET,c.TAG_PROPERTIES.HTTPEQUIV,c.TAG_PROPERTIES.PROPERTY,c.TAG_PROPERTIES.ITEM_PROP],e),noscriptTags:b(c.TAG_NAMES.NOSCRIPT,[c.TAG_PROPERTIES.INNER_HTML],e),onChangeClientState:f(e),scriptTags:b(c.TAG_NAMES.SCRIPT,[c.TAG_PROPERTIES.SRC,c.TAG_PROPERTIES.INNER_HTML],e),styleTags:b(c.TAG_NAMES.STYLE,[c.TAG_PROPERTIES.CSS_TEXT],e),title:d(e),titleAttributes:p(c.ATTRIBUTE_NAMES.TITLE,e)}},t.requestAnimationFrame=O,t.warn=j}).call(this,n(109))},function(e){e.exports=JSON.parse('{"BK01":"#000000","BK02":"#121212","BK03":"#444444","BK04":"#646464","BK05":"#808080","BK06":"#999999","BK07":"#BFBFBF","BK08":"#D3D3D3","BK09":"#EBEBEB","BK10":"#F6F6F6","BK11":"#2E2E2E","BK12":"#FDFDFD","BK13":"#1B1B1B","BK99":"#FFFFFF","BL01":"#0066FF","BL02":"#3377FF","BL03":"#03A9F4","BL04":"#80C1FF","BL05":"#8590A6","BL06":"#606A80","BL07":"#175199","BL08":"#6385A6","BL09":"#A1AAB3","BL10":"#F0F2F7","RD01":"#FF3366","RD02":"#D92155","RD03":"#F1403C","RD04":"#B7302D","RD05":"#FF65C6","RD06":"#CC589E","RD07":"#5868D1","RD08":"#FF7955","RD09":"#CB5D3F","RD10":"#FD5409","RD11":"#B63B05","RD12":"#FF3230","RD13":"#C03228","YL01":"#FF9607","YL02":"#C2A469","YL03":"#806E46","YL04":"#E6AC73","YL05":"#A07953","YL06":"#F8E2C4","YL07":"#9F8665","YL08":"#F3BB6C","YL09":"#825D28","YL10":"#CE994F","YL11":"#9C7B4E","YL12":"#754E19","YL13":"#3C2B14","EB01":"#FF7C00","EB02":"#D3BA89","EB03":"#FFF4DF","EB04":"#B2AA9B","EB05":"#3A2B0D","EB06":"#009B4E","EB07":"#93C199","EB08":"#DAF2DD","EB09":"#98A89A","EB10":"#0B2B0F","GN01":"#67C23A"}')},function(e){e.exports=JSON.parse('{"GBK02A":["BK02","BK99"],"GBK02B":["BK02","BK01"],"GBK03A":["BK03","BK08"],"GBK04A":["BK04","BK08"],"GBK05A":["BK05","BK06"],"GBK06A":["BK06","BK06"],"GBK06B":["BK06","BK04"],"GBK07A":["BK07","BK03"],"GBK07B":["BK07","BK03"],"GBK08A":["BK08","BK11"],"GBK08B":["BK08","BK13"],"GBK09A":["BK09","BK11"],"GBK09B":["BK09","BK13"],"GBK09C":["BK09","BK01"],"GBK10A":["BK10","BK13"],"GBK10B":["BK10","BK10"],"GBK10C":["BK10","BK01"],"GBK12A":["BK12","BK11"],"GBK99A":["BK99","BK02"],"GBK99B":["BK99","BK99"],"GBK99C":["BK99","BK11"],"GBL01A":["BL01","BL02"],"GBL03A":["BL03","BL03"],"GBL05A":["BL05","BL05"],"GBL07A":["BL07","BL08"],"GRD01A":["RD01","RD01"],"GRD03A":["RD03","RD03"],"GRD05A":["RD05","RD05"],"GRD07A":["RD07","RD07"],"GRD08A":["RD08","RD08"],"GRD10A":["RD10","RD10"],"GRD12A":["RD12","RD13"],"GYL01A":["YL01","YL01"],"GYL02A":["YL02","YL02"],"GYL04A":["YL04","YL04"],"GYL10A":["YL10","YL10"],"GYL12A":["YL12","YL12"],"GYL12B":["YL12","YL06"],"GGN01A":["GN01","GN01"],"BookCoverBg":["BK04","BK04"],"ReaderLinkGreen":["EB06","EB06"],"ReaderLinkYellow":["EB01","EB01"],"ReaderLittleHeaderGreen":["EB07","EB07"],"ReaderLittleHeaderYellow":["EB02","EB02"],"YellowBG":["YL03","YL02"],"YellowSelect":["YL02","YL02"],"BG03":["BK01","BK01"],"BG04":["BK01","BK01"],"DarkBG":["BK01","BK01"],"GEB02A":["EB02","YL03"],"GBK03B":["BK03","BK02"],"GYL06A":["YL06","YL06"],"GYL08A":["YL08","YL08"],"GBK03C":["BK03","BK03"],"GBK04B":["BK04","BK04"],"GBL08A":["BL08","BL09"],"GBL10A":["BL10","BK11"]}')},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hide=t.show=t.hasScrollbar=t.getWidth=t.mobileShow=t.mobileHide=t.isSupportTouch=void 0;var r=n(71),o=null,i=null,a="",c=null,s="";function u(){return r.isBrowser()&&"ontouchstart"in window}function l(){var e=document.scrollingElement||document.documentElement;i=e.scrollTop,a=document.body.style.position,c=Number(document.body.style.width),s=document.body.style.top,document.body.style.position="fixed",document.body.style.width="100%",document.body.style.top=-i+"px"}function d(){var e=document.scrollingElement||document.documentElement;document.body.style.position=a,document.body.style.top=s,e.setAttribute("width",String(c)),e.scrollTop=Number(i)}function f(){if(null!==o)return o;var e=document.createElement("div");return e.style.position="fixed",e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.visibility="hidden",document.body.appendChild(e),o=e.offsetWidth-e.clientWidth,document.body.removeChild(e),o}function p(e){var t=getComputedStyle(e);return{horizontal:e.scrollWidth>e.clientWidth&&"hidden"!==t.overflowX,vertical:e.scrollHeight>e.clientHeight&&"hidden"!==t.overflowY}}t.isSupportTouch=u,t.mobileHide=l,t.mobileShow=d,t.getWidth=f,t.hasScrollbar=p;var h=!0;t.show=function(){if(!h){if(u())d();else{var e=document.documentElement;e.style.overflow="",e.style.marginRight="",e.style.marginBottom=""}h=!0}},t.hide=function(){if(h){if(u())l();else{var e=f(),t=document.documentElement,n=p(t);t.style.overflow="hidden",n.horizontal&&(t.style.marginBottom="".concat(e,"px")),n.vertical&&(t.style.marginRight="".concat(e,"px"))}h=!1}}},function(e,t,n){"use strict";var r=n(77),o=n(39),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(208)),c=function(e,t){return Object.keys(e).reduce((function(n,r){var o=e[r];return a.default(o)?(n.objectProps.push([r,o,t]),n):Array.isArray(o)?(n.objectProps.push([r+"[*]",o[0],t]),n):(n.simpleProps.push(r),n)}),{simpleProps:[],objectProps:[]})};t.default=function(e){if(!a.default(e))throw new Error("参数必须是 plain object");if(!Object.keys(e).length)throw new Error("参数不能是空对象");var t=JSON.stringify(e,(function(e,t){if(a.default(t)){if(!Object.keys(t).length)throw new Error("属性值不能是空对象");return t}if(Array.isArray(t)){if(1!==t.length||!a.default(t[0])||!Object.keys(t[0]).length)throw new Error("数组只能包含一个元素且这个元素必须是一个非空对象");return t}if("boolean"!=typeof t)throw new Error("基本类型的属性值只能是布尔值");return t})),n=JSON.parse(t,(function(e,t){if(!1!==t&&(!a.default(t)||Object.keys(t).length)&&(!Array.isArray(t)||1===t.length&&a.default(t[0])&&Object.keys(t[0]).length))return t}));return n?function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.contextPath,a=void 0===i?"":i,s=n.resultOfEachTraversal,u=void 0===s?"":s,l=n.finalResult,d=void 0===l?"":l,f=n.restStack,p=void 0===f?[]:f,h=c(t,a),b=h.simpleProps,v=h.objectProps,m=b.join(",");if(!v.length){var g=[d,u+m].filter(Boolean).join(";");if(!p.length)return g;var O=o(p[0],3),y=O[0],j=O[1],E=O[2],C=p.slice(1),w=E+y+".";return e(j,{contextPath:w,resultOfEachTraversal:w,restStack:C,finalResult:g})}var T=o(v[0],2),_=T[0],S=T[1],A=[].concat(r(v.slice(1)),r(p)),k=a+_+".",R=u+[m,_+"."].filter(Boolean).join(",");return e(S,{contextPath:k,resultOfEachTraversal:R,restStack:A,finalResult:d})}(n):""}},function(e,t,n){var r=n(600);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toAbsoluteDateTimeString=t.toSmartString=t.toRelativeString=t.defaultGetSuffix=t.defaultGetPrefix=t.toSmartDateTimeString=t.toSimpleDateTimeString=t.toChineseHourClock=t.toDayType=t.toChineseDateString=t.toDay=t.toSimpleDateString=t.toDateTimeString=t.toDateString=t.toTimeString=t.parseUnixTimestampToDay=t.parseInputTime=t.pad=void 0;var r=36e5,o=24*r,i=30*o,a=365*o,c={0:"星期天",1:"星期一",2:"星期二",3:"星期三",4:"星期四",5:"星期五",6:"星期六"};function s(e){var t=e.toString();return 1===t.length?"0".concat(t):t}function u(e){var t=new Date("number"==typeof e?1e3*e:e);return"Invalid Date"===t.toString()?"":t}function l(e){var t=u(e);return t?"".concat(s(t.getHours()),":").concat(s(t.getMinutes())):""}function d(e){var t=u(e);if(!t)return"";var n=t.getMonth()+1,r=t.getDate();return"".concat(t.getFullYear(),"-").concat(s(n),"-").concat(s(r))}function f(e){var t=u(e);return t?"".concat(d(t)," ").concat(l(t)):""}function p(e){var t=u(e);return t?"".concat(s(t.getMonth()+1),"-").concat(s(t.getDate())):""}function h(e){var t=u(e);return t?"".concat(p(t)," ").concat(l(t)):""}function b(e){return e>=0?"":"还有 "}function v(e){return e>=0?"前":""}t.pad=s,t.parseInputTime=u,t.parseUnixTimestampToDay=function(e){return 1e3*e/o},t.toTimeString=l,t.toDateString=d,t.toDateTimeString=f,t.toSimpleDateString=p,t.toDay=function(e){var t=u(e);return t?c[t.getDay()]:""},t.toChineseDateString=function(e){var t=u(e);if(!t)return"";var n=t.getMonth()+1,r=t.getDate();return"".concat(t.getFullYear()," 年 ").concat(s(n)," 月 ").concat(s(r)," 日")},t.toDayType=function(e){var t=u(e);return t?"".concat(t.getHours()>=12?"下午":"上午"):""},t.toChineseHourClock=function(e,t){var n=u(e);if(!n)return"";var r=n.getHours(),o=n.getMinutes();return"Military"===t||"24HourSystem"===t?"".concat(s(r)," 点 ").concat(s(o)," 分"):"".concat(s(r%12||12)," 点 ").concat(s(o)," 分")},t.toSimpleDateTimeString=h,t.toSmartDateTimeString=function(e){var t=u(e);if(!t)return"";var n=t.getTime(),r=new Date;r.setHours(0,0,0,0);var o=r.valueOf();return n>o?"".concat(l(t)):n>o-864e5?"昨天 ".concat(l(t)):d(e)},t.defaultGetPrefix=b,t.defaultGetSuffix=v,t.toRelativeString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ignoreMinorFuture,c=void 0!==n&&n,s=t.accurate,l=void 0===s?1e3:s,d=t.getPrefix,f=void 0===d?b:d,p=t.getSuffix,h=void 0===p?v:p,m=u(e);if(!m)return"";var g,O=new Date,y=Math.round((Number(O)-Number(m))/l)*l,j=Math.abs(y);return j<6e4?y>=0||c?"刚刚":"即将":(g=j<r?"".concat(Math.floor(j/6e4)," 分钟"):j<o?"".concat(Math.floor(j/r)," 小时"):j<i?"".concat(Math.floor(j/o)," 天"):j<a?"".concat(Math.floor(j/i)," 个月"):"".concat(Math.floor(j/a)," 年"),"".concat(f(y)).concat(g).concat(h(y)))},t.toSmartString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.accurate,i=void 0===n?1e3:n,a=u(e);if(!a)return"";var c=new Date,s=(new Date).setHours(0,0,0,0),f=Math.abs(Math.round((Number(c)-Number(a))/i)*i),h=Math.round(Number(s)-Number(a)),b=c.getFullYear(),v=a.getFullYear();return f<6e4?"刚刚":f<r?"".concat(Math.floor(f/6e4)," 分钟前"):f<o?"".concat(Math.floor(f/r)," 小时前"):h<o?"昨天 ".concat(l(a)):b===v?p(a):d(a)},t.toAbsoluteDateTimeString=function(e){var t=u(e);return t?(new Date).getFullYear()===t.getFullYear()?h(t):f(t):""}},function(e,t,n){var r=n(596),o=n(594);e.exports=function(e,t){return r(e,t,(function(t,n){return o(e,n)}))}},function(e,t,n){var r,o,i=n(566),a=n(567),c=0,s=0;e.exports=function(e,t,n){var u=t&&n||0,l=t||[],d=(e=e||{}).node||r,f=void 0!==e.clockseq?e.clockseq:o;if(null==d||null==f){var p=i();null==d&&(d=r=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==f&&(f=o=16383&(p[6]<<8|p[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),b=void 0!==e.nsecs?e.nsecs:s+1,v=h-c+(b-s)/1e4;if(v<0&&void 0===e.clockseq&&(f=f+1&16383),(v<0||h>c)&&void 0===e.nsecs&&(b=0),b>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=h,s=b,o=f;var m=(1e4*(268435455&(h+=122192928e5))+b)%4294967296;l[u++]=m>>>24&255,l[u++]=m>>>16&255,l[u++]=m>>>8&255,l[u++]=255&m;var g=h/4294967296*1e4&268435455;l[u++]=g>>>8&255,l[u++]=255&g,l[u++]=g>>>24&15|16,l[u++]=g>>>16&255,l[u++]=f>>>8|128,l[u++]=255&f;for(var O=0;O<6;++O)l[u+O]=d[O];return t||a(l)}},function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),a=r[0],c=r[1],s=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,c)),l=0,d=c>0?a-4:a;for(n=0;n<d;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],s[l++]=t>>16&255,s[l++]=t>>8&255,s[l++]=255&t;2===c&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,s[l++]=255&t);1===c&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,s[l++]=t>>8&255,s[l++]=255&t);return s},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,c=n-o;a<c;a+=16383)i.push(l(e,a,a+16383>c?c:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,s=a.length;c<s;++c)r[c]=a[c],o[a.charCodeAt(c)]=c;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,i,a=[],c=t;c<n;c+=3)o=(e[c]<<16&16711680)+(e[c+1]<<8&65280)+(255&e[c+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){
|
|
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
|
t.read=function(e,t,n,r,o){var i,a,c=8*o-r-1,s=(1<<c)-1,u=s>>1,l=-7,d=n?o-1:0,f=n?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-l)-1,p>>=-l,l+=c;l>0;i=256*i+e[t+d],d+=f,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=f,l-=8);if(0===i)i=1-u;else{if(i===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=u}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,c,s,u=8*i-o-1,l=(1<<u)-1,d=l>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),(t+=a+d>=1?f/s:f*Math.pow(2,1-d))*s>=2&&(a++,s/=2),a+d>=l?(c=0,a=l):a+d>=1?(c=(t*s-1)*Math.pow(2,o),a+=d):(c=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&c,p+=h,c/=256,o-=8);for(a=a<<o|c,u+=o;u>0;e[n+p]=255&a,p+=h,a/=256,u-=8);e[n+p-h]|=128*b}},function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},function(e,t,n){var r=n(482),o=n(878);function i(t,n,a){return o()?e.exports=i=Reflect.construct:e.exports=i=function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},i.apply(null,arguments)}e.exports=i},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,r){var o=new Image;Object.assign(o,t),o.onload=function(){return n(o)},o.onerror=r,o.src=e}))}},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});var o=r(n(881));t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"intrinsic",n=o.default[t],r=n.find((function(t){return t[1]>=e}))||n[n.length-1];return r[0]}},function(e){e.exports=JSON.parse('{"intrinsic":[["200x0",200],["qhd",480],["720w",720],["1440w",1440]],"square":[["l",100],["xl",200]]}')},function(e,t,n){"use strict";var r=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new Promise((function(t){t(e.apply(void 0,n))}))};e.exports=r,e.exports.default=r},function(e,t,n){var r=n(582),o=r&&new r;e.exports=o},function(e,t){e.exports={}},function(e,t,n){var r=n(485),o=n(606),i=n(607),a=n(886);e.exports=function(e){var t=i(e),n=a[t];if("function"!=typeof n||!(t in r.prototype))return!1;if(e===n)return!0;var c=o(n);return!!c&&e===c[0]}},function(e,t,n){var r=n(485),o=n(483),i=n(484),a=n(135),c=n(174),s=n(887),u=Object.prototype.hasOwnProperty;function l(e){if(c(e)&&!a(e)&&!(e instanceof r)){if(e instanceof o)return e;if(u.call(e,"__wrapped__"))return s(e)}return new o(e)}l.prototype=i.prototype,l.prototype.constructor=l,e.exports=l},function(e,t,n){var r=n(485),o=n(483),i=n(372);e.exports=function(e){if(e instanceof r)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},function(e,t){var n=Math.floor,r=Math.random;e.exports=function(e,t){return e+n(r()*(t-e+1))}},function(e,t,n){var r=n(890);e.exports=function(e,t){return e&&e.length&&t&&t.length?r(e,t):e}},function(e,t,n){var r=n(288),o=n(589),i=n(891),a=n(287),c=n(372),s=Array.prototype.splice;e.exports=function(e,t,n,u){var l=u?i:o,d=-1,f=t.length,p=e;for(e===t&&(t=c(t)),n&&(p=r(e,a(n)));++d<f;)for(var h=0,b=t[d],v=n?n(b):b;(h=l(p,v,h,u))>-1;)p!==e&&s.call(p,h,1),s.call(e,h,1);return e}},function(e,t){e.exports=function(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}},function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(i){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var c,s=2147483647,u=/^xn--/,l=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,h=String.fromCharCode;function b(e){throw new RangeError(f[e])}function v(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function m(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+v((e=e.replace(d,".")).split("."),t).join(".")}function g(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function O(e){return v(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function y(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function j(e,t,n){var r=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;r+=36)e=p(e/35);return p(r+36*e/(e+38))}function E(e){var t,n,r,o,i,a,c,u,l,d,f,h=[],v=e.length,m=0,g=128,y=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&b("not-basic"),h.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<v;){for(i=m,a=1,c=36;o>=v&&b("invalid-input"),((u=(f=e.charCodeAt(o++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:36)>=36||u>p((s-m)/a))&&b("overflow"),m+=u*a,!(u<(l=c<=y?1:c>=y+26?26:c-y));c+=36)a>p(s/(d=36-l))&&b("overflow"),a*=d;y=j(m-i,t=h.length+1,0==i),p(m/t)>s-g&&b("overflow"),g+=p(m/t),m%=t,h.splice(m++,0,g)}return O(h)}function C(e){var t,n,r,o,i,a,c,u,l,d,f,v,m,O,E,C=[];for(v=(e=g(e)).length,t=128,n=0,i=72,a=0;a<v;++a)(f=e[a])<128&&C.push(h(f));for(r=o=C.length,o&&C.push("-");r<v;){for(c=s,a=0;a<v;++a)(f=e[a])>=t&&f<c&&(c=f);for(c-t>p((s-n)/(m=r+1))&&b("overflow"),n+=(c-t)*m,t=c,a=0;a<v;++a)if((f=e[a])<t&&++n>s&&b("overflow"),f==t){for(u=n,l=36;!(u<(d=l<=i?1:l>=i+26?26:l-i));l+=36)E=u-d,O=36-d,C.push(h(y(d+E%O,0))),u=p(E/O);C.push(h(y(u,0))),i=j(n,m,r==o),n=0,++r}++n,++t}return C.join("")}c={version:"1.4.1",ucs2:{decode:g,encode:O},decode:E,encode:C,toASCII:function(e){return m(e,(function(e){return l.test(e)?"xn--"+C(e):e}))},toUnicode:function(e){return m(e,(function(e){return u.test(e)?E(e.slice(4).toLowerCase()):e}))}},void 0===(o=function(){return c}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(328)(e),n(109))},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},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.cutStringWidth=t.stringWidth=t.sliceString=t.getHexRandom=void 0;var o=r(n(895));function i(e){return"string"==typeof e&&e?Array.from(e).reduce((function(e,t){var n=t.codePointAt(0);return e+(o.default(n)?2:1)}),0):0}t.getHexRandom=function(e){return Array.from({length:e}).map((function(){return Math.floor(16*Math.random()).toString(16).toUpperCase()})).join("")},t.sliceString=function(e,t){return e.length>t?"".concat(e.slice(0,t),"..."):e},t.stringWidth=i,t.cutStringWidth=function(e,t){if("string"!=typeof e||"number"!=typeof t||i(e)<=t)return e;for(var n="",r=0;i(e.slice(0,r+1))<=t;)r++,n=e.slice(0,r);return n}},function(e,t,n){"use strict";var r=n(896);e.exports=function(e){return!r(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141))}},function(e,t,n){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e,t){return function n(c,d){var f,p,h,b=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],v=c.displayName||c.name||"Component",m=a.getType(c).propTypes,g=a.isReactComponent(c),O=Object.keys(d),y=["valueLink","checkedLink"].concat(O.map(a.defaultKey));h=a.uncontrolledPropTypes(d,m,v),(0,i.default)(g||!b.length,"[uncontrollable] stateless function components cannot pass through methods because they have no associated instances. Check component: "+v+", attempting to pass through methods: "+b.join(", ")),b=a.transform(b,(function(e,t){e[t]=function(){var e;return(e=this.refs.inner)[t].apply(e,arguments)}}),{});var j=(p=f=function(t){function n(){return s(this,n),u(this,t.apply(this,arguments))}return l(n,t),n.prototype.shouldComponentUpdate=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return!e.shouldComponentUpdate||e.shouldComponentUpdate.apply(this,n)},n.prototype.componentWillMount=function(){var e=this,t=this.props;this._values={},O.forEach((function(n){e._values[n]=t[a.defaultKey(n)]}))},n.prototype.componentWillReceiveProps=function(t){var n=this,r=this.props;e.componentWillReceiveProps&&e.componentWillReceiveProps.call(this,t),O.forEach((function(e){void 0===a.getValue(t,e)&&void 0!==a.getValue(r,e)&&(n._values[e]=t[a.defaultKey(e)])}))},n.prototype.componentWillUnmount=function(){this.unmounted=!0},n.prototype.getControlledInstance=function(){return this.refs.inner},n.prototype.render=function(){var e=this,t={},n=w(this.props);return a.each(d,(function(n,r){var o=a.getLinkName(r),i=e.props[r];o&&!C(e.props,r)&&C(e.props,o)&&(i=e.props[o].value),t[r]=void 0!==i?i:e._values[r],t[n]=E.bind(e,r)})),t=r({},n,t,{ref:g?"inner":null}),o.default.createElement(c,t)},n}(o.default.Component),f.displayName="Uncontrolled("+v+")",f.propTypes=h,p);return r(j.prototype,b),j.ControlledComponent=c,j.deferControlTo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments[2];return n(e,r({},d,t),o)},j;function E(e,n){var r=a.getLinkName(e),o=this.props[d[e]];r&&C(this.props,r)&&!o&&(o=this.props[r].requestChange);for(var i=arguments.length,c=Array(i>2?i-2:0),s=2;s<i;s++)c[s-2]=arguments[s];t(this,e,o,n,c)}function C(e,t){return void 0!==e[t]}function w(e){var t={};return a.each(e,(function(e,n){-1===y.indexOf(n)&&(t[n]=e)})),t}}};var o=c(n(1)),i=c(n(224)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(898));function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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}function l(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)}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.version=void 0,t.uncontrolledPropTypes=function(e,t,n){0;return{}},t.getType=function(e){return i[0]>=15||0===i[0]&&i[1]>=13?e:e.type},t.getValue=function(e,t){var n=c(t);return n&&!a(e,t)&&a(e,n)?e[n].value:e[t]},t.getLinkName=c,t.defaultKey=s,t.chain=function(e,t,n){return function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];t&&t.call.apply(t,[e].concat(o)),n&&n.call.apply(n,[e].concat(o))}},t.transform=function(e,t,n){return u(e,t.bind(null,n=n||(Array.isArray(e)?[]:{}))),n},t.each=u,t.has=l,t.isReactComponent=function(e){return!!(e&&e.prototype&&e.prototype.isReactComponent)};var r=o(n(1));o(n(224));function o(e){return e&&e.__esModule?e:{default:e}}var i=t.version=r.default.version.split(".").map(parseFloat);function a(e,t){return void 0!==e[t]}function c(e){return"value"===e?"valueLink":"checked"===e?"checkedLink":null}function s(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function u(e,t,n){if(Array.isArray(e))return e.forEach(t,n);for(var r in e)l(e,r)&&t.call(n,e[r],r,e)}function l(e,t){return!!e&&Object.prototype.hasOwnProperty.call(e,t)}},function(e,t){e.exports=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},function(e,t,n){var r=n(374),o=n(263),i=n(466),a=n(243),c=n(329),s=n(289),u=Object.prototype.hasOwnProperty,l=i((function(e,t){if(c(t)||a(t))o(t,s(t),e);else for(var n in t)u.call(t,n)&&r(e,n,t[n])}));e.exports=l},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o="~";function i(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function c(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(o=!1)),c.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},c.prototype.listeners=function(e,t){var n=o?o+e:e,r=this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,c=new Array(a);i<a;i++)c[i]=r[i].fn;return c},c.prototype.emit=function(e,t,n,r,i,a){var c=o?o+e:e;if(!this._events[c])return!1;var s,u,l=this._events[c],d=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,r),!0;case 5:return l.fn.call(l.context,t,n,r,i),!0;case 6:return l.fn.call(l.context,t,n,r,i,a),!0}for(u=1,s=new Array(d-1);u<d;u++)s[u-1]=arguments[u];l.fn.apply(l.context,s)}else{var f,p=l.length;for(u=0;u<p;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),d){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,n);break;case 4:l[u].fn.call(l[u].context,t,n,r);break;default:if(!s)for(f=1,s=new Array(d-1);f<d;f++)s[f-1]=arguments[f];l[u].fn.apply(l[u].context,s)}}return!0},c.prototype.on=function(e,t,n){var r=new a(t,n||this),i=o?o+e:e;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],r]:this._events[i].push(r):(this._events[i]=r,this._eventsCount++),this},c.prototype.once=function(e,t,n){var r=new a(t,n||this,!0),i=o?o+e:e;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],r]:this._events[i].push(r):(this._events[i]=r,this._eventsCount++),this},c.prototype.removeListener=function(e,t,n,r){var a=o?o+e:e;if(!this._events[a])return this;if(!t)return 0==--this._eventsCount?this._events=new i:delete this._events[a],this;var c=this._events[a];if(c.fn)c.fn!==t||r&&!c.once||n&&c.context!==n||(0==--this._eventsCount?this._events=new i:delete this._events[a]);else{for(var s=0,u=[],l=c.length;s<l;s++)(c[s].fn!==t||r&&!c[s].once||n&&c[s].context!==n)&&u.push(c[s]);u.length?this._events[a]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new i:delete this._events[a]}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new i:delete this._events[t])):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prototype.setMaxListeners=function(){return this},c.prefixed=o,c.EventEmitter=c,e.exports=c},function(e,t,n){"use strict";var r=!1;if("undefined"!=typeof window)try{var o=Object.defineProperty({},"passive",{get:function(){r=!0}});window.addEventListener("test",null,o)}catch(e){}e.exports=r},function(e,t,n){"use strict";var r=n(339),o=n(612),i=n(904),a=n(613).DEFAULT_THROTTLE_RATE;e.exports=function(e,t,n){var c=(n=n||{}).useRAF||!1,s=parseInt(n.throttleRate,10),u=n.eventOptions;return isNaN(s)&&(s=a),c&&(s="raf"),o&&(s=0),r.enableScrollInfo=r.enableScrollInfo||n.enableScrollInfo||!1,r.enableResizeInfo=r.enableResizeInfo||n.enableResizeInfo||!1,r.enableTouchInfo=r.enableTouchInfo||n.enableTouchInfo||!1,i[e](s,t,n,u)}},function(e,t,n){"use strict";var r,o,i,a=n(905),c=n(226),s=n(906),u=n(339),l=u.connections,d=u.EE,f=n(612),p=n(611),h=u.listeners,b=n(907),v=u.removers,m=(u.subscriptions,n(613).EVENT_END_DELAY),g=0;function O(e){return e.id||"target-id-"+g++}function y(e,t,n,r){return d.on(e,t,n),l[r=r||e]=(l[r]||0)+1,{_type:e,_cb:t,_ctx:n,unsubscribe:function(){if(this._type){d.removeListener(e,t,n),l[r]--,0===l[r]&&(h[r].remove(),h[r]=void 0),this._type=void 0,this._cb=void 0,this._ctx=void 0;for(var o=v.length-1;o>=0;o--){if(v[o]===this){v.splice(o,1);break}}}}}}function j(e,t,n,r){return function(o,i,u){var l=u.context,g=u.target,j=g&&O(g),E=j?":"+j:"",C=t+"Start:"+o+E,w=t+"End:"+o+E,T=t+":"+o+E,_=y(n+":"+o+E,i,l,T);if(v.push(_),h[T])return _;var S,A={start:new s({mainType:t,subType:"start"}),main:new s({mainType:t}),end:new s({mainType:t,subType:"end"})};function k(e){A.end.update(e),d.emit(w,e,A.end),S=null}function R(e){S||(A.start.update(e),d.emit(C,e,A.start)),clearTimeout(S),A.main.update(e),d.emit(T,e,A.main),f?(e=a(e),S=setTimeout((function(){k(e)}),o+m)):S=setTimeout(k.bind(null,e),o+m)}return"raf"===o?(o=16,R=b(R)):o>0&&(R=c(R,o)),h[T]=p(g||e,t,R,r),_}}function E(e,t){return function(n,r,o){var i=o.context,a=o.target,c=a&&O(a),u=t+":0"+(c?":"+c:""),l=y(u,r,i);if(v.push(l),h[u])return l;var f=new s({mainType:t});return h[u]=p(a||e,t,(function(e){f.update(e),d.emit(u,e,f)})),l}}"undefined"!=typeof window&&(i=(r=(o=window).document||document).body),e.exports={scrollStart:j(o,"scroll","scrollStart"),scrollEnd:j(o,"scroll","scrollEnd"),scroll:j(o,"scroll","scroll"),resizeStart:j(o,"resize","resizeStart"),resizeEnd:j(o,"resize","resizeEnd"),resize:j(o,"resize","resize"),visibilitychange:E(r,"visibilitychange"),touchmoveStart:j(i,"touchmove","touchmoveStart"),touchmoveEnd:j(i,"touchmove","touchmoveEnd"),touchmove:j(i,"touchmove","touchmove"),touchstart:E(i,"touchstart"),touchend:E(i,"touchend")}},function(e,t,n){var r=n(469);e.exports=function(e){return r(e,4)}},function(e,t,n){"use strict";var r=n(339),o={width:0,height:0},i={delta:0,top:0},a={axisIntention:"",startX:0,startY:0,deltaX:0,deltaY:0};function c(e){var t=((e=e||{}).mainType||"").toLowerCase(),n=(e.subType||"").toLowerCase();this.mainType=t,this.subType=n,this.type=t+n.charAt(0).toUpperCase()+n.slice(1)||"",this.scroll=i,this.resize=o,this.touch=a}c.prototype={getXY:function(e){var t={x:0,y:0},n=document.body,r=document.documentElement;return e.pageX||e.pageY?(t.x=e.pageX,t.y=e.pageY):(t.x=e.clientX+n.scrollLeft+r.scrollLeft,t.y=e.clientY+n.scrollTop+r.scrollTop),t},update:function(e){var t,n,o,i=this.mainType,a=this.subType,c=document.documentElement;if(r.enableScrollInfo&&("scroll"===i||"touchmove"===i)){var s=c.scrollTop+document.body.scrollTop;s!==this.scroll.top&&(this.scroll.delta=s-this.scroll.top,this.scroll.top=s)}(r.enableResizeInfo&&"resize"===i&&(this.resize.width=window.innerWidth||c.clientWidth,this.resize.height=window.innerHeight||c.clientHeight),r.enableTouchInfo&&e.touches&&("touchstart"===i||"touchmove"===i||"touchend"===i))&&("touchstart"===i||"start"===a?(t=this.getXY(e.touches[0]),this.touch.axisIntention="",this.touch.startX=t.x,this.touch.startY=t.y,this.touch.deltaX=0,this.touch.deltaY=0):"touchmove"===i&&(t=this.getXY(e.touches[0]),this.touch.deltaX=t.x-this.touch.startX,this.touch.deltaY=t.y-this.touch.startY,""===this.touch.axisIntention&&(n=Math.abs(this.touch.deltaX),o=Math.abs(this.touch.deltaY),n>5&&n>=o?this.touch.axisIntention="x":o>5&&o>n&&(this.touch.axisIntention="y"))))}},e.exports=c},function(e,t,n){"use strict";var r=n(908),o=Date.now||function(){return(new Date).getTime()};e.exports=function(e,t){var n,i,a=0,c=0;t=t||15;var s=function s(){var u=o();t-(u-a)<=0?(a=u,c=0,e.apply(n,i)):c=r(s)};return function(){n=this,i=arguments,c||(c=r(s))}}},function(e,t,n){e.exports=n(107)(309)},function(e,t,n){"use strict";var r=n(339).removers;e.exports=function(e,t,n){for(var o,i=r.length-1;i>=0;i--)(o=r[i])._cb===t&&o._type.indexOf(e)>=0&&(o.unsubscribe(),r.splice(i,1))}},function(e,t,n){e.exports=n(107)(60)},function(e,t,n){"use strict";function r(e){var t=e.lastIndexOf(".0");return t===e.length-2?e.slice(0,t):e}function o(e,t){return(Math.floor(e/t*10)/10).toFixed(1).toString()}Object.defineProperty(t,"__esModule",{value:!0}),t.cnNiceNumber=t.formatNumber=t.unitPrefix=t.niceNumber=void 0,t.niceNumber=function(e){return"number"!=typeof e?"":e<1e3?e.toString():e<1e4?"".concat(r((e/1e3).toFixed(1)),"K"):e<1e6?"".concat(Math.floor(e/1e3),"K"):e<1e9?"".concat(Math.floor(e/1e6),"M"):"".concat(Math.floor(e/1e9),"G")};var i=["","K","M","G","T","P","E","Z","Y"],a=["","Ki","Mi","Gi","Ti","Pi","Ei","Zi","Yi"];t.unitPrefix=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("number"!=typeof e)return"";for(var n=t.binary,o=t.fixedNumber,c=void 0===o?1:o,s=t.keepTailingZero,u=t.useIECBinaryPrefix,l=n?1024:1e3,d=u&&n?a:i,f=0,p=e;p>=l&&f<d.length-1;)f+=1,p/=l;var h=p.toFixed(c);return"".concat(s?h:r(h)).concat(d[f])},t.formatNumber=function(e){if("number"!=typeof e||e!=e)return"";var t=String(e);return t.indexOf(".")>0?t.replace(/(\d)(?=(\d{3})+\.)/g,"$1,"):t.replace(/(\d)(?=(\d{3})+$)/g,"$1,")},t.cnNiceNumber=function(e){return"number"!=typeof e?"":e<1e4?"".concat(e.toString()," "):e<1e6?"".concat(r(o(e,1e4))," 万"):e<1e8?"".concat(Math.floor(e/1e4)," 万"):e<1e10?"".concat(r(o(e,1e8))," 亿"):e<1e12?"".concat(Math.floor(e/1e8)," 亿"):"".concat(e<1e14?r(o(e,1e12)):Math.floor(e/1e12)," 万亿")}},function(e,t,n){},function(e,t,n){"use strict";
|
|
|
/** @license React v16.14.0
|
|
|
* react-dom-server.browser.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(100),o=n(1);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a="function"==typeof Symbol&&Symbol.for,c=a?Symbol.for("react.portal"):60106,s=a?Symbol.for("react.fragment"):60107,u=a?Symbol.for("react.strict_mode"):60108,l=a?Symbol.for("react.profiler"):60114,d=a?Symbol.for("react.provider"):60109,f=a?Symbol.for("react.context"):60110,p=a?Symbol.for("react.concurrent_mode"):60111,h=a?Symbol.for("react.forward_ref"):60112,b=a?Symbol.for("react.suspense"):60113,v=a?Symbol.for("react.suspense_list"):60120,m=a?Symbol.for("react.memo"):60115,g=a?Symbol.for("react.lazy"):60116,O=a?Symbol.for("react.block"):60121,y=a?Symbol.for("react.fundamental"):60117,j=a?Symbol.for("react.scope"):60119;function E(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case s:return"Fragment";case c:return"Portal";case l:return"Profiler";case u:return"StrictMode";case b:return"Suspense";case v:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case f:return"Context.Consumer";case d:return"Context.Provider";case h:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case m:return E(e.type);case O:return E(e.render);case g:if(e=1===e._status?e._result:null)return E(e)}return null}var C=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;C.hasOwnProperty("ReactCurrentDispatcher")||(C.ReactCurrentDispatcher={current:null}),C.hasOwnProperty("ReactCurrentBatchConfig")||(C.ReactCurrentBatchConfig={suspense:null});var w={};function T(e,t){for(var n=0|e._threadCount;n<=t;n++)e[n]=e._currentValue2,e._threadCount=n+1}for(var _=new Uint16Array(16),S=0;15>S;S++)_[S]=S+1;_[15]=0;var A=/^[: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]*$/,k=Object.prototype.hasOwnProperty,R={},I={};function x(e){return!!k.call(I,e)||!k.call(R,e)&&(A.test(e)?I[e]=!0:(R[e]=!0,!1))}function N(e,t,n,r,o,i){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=i}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){D[e]=new N(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];D[t]=new N(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){D[e]=new N(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){D[e]=new N(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){D[e]=new N(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){D[e]=new N(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){D[e]=new N(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){D[e]=new N(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){D[e]=new N(e,5,!1,e.toLowerCase(),null,!1)}));var P=/[\-:]([a-z])/g;function L(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(P,L);D[t]=new N(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(P,L);D[t]=new N(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(P,L);D[t]=new N(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){D[e]=new N(e,1,!1,e.toLowerCase(),null,!1)})),D.xlinkHref=new N("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){D[e]=new N(e,1,!1,e.toLowerCase(),null,!0)}));var M=/["'&<>]/;function U(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=M.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}function B(e,t){var n,r=D.hasOwnProperty(e)?D[e]:null;return(n="style"!==e)&&(n=null!==r?0===r.type:2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])),n||function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}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+'="'+U(t)+'"')):x(e)?e+'="'+U(t)+'"':""}var z="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},F=null,G=null,V=null,H=!1,q=!1,K=null,W=0;function Y(){if(null===F)throw Error(i(321));return F}function Q(){if(0<W)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function Z(){return null===V?null===G?(H=!1,G=V=Q()):(H=!0,V=G):null===V.next?(H=!1,V=V.next=Q()):(H=!0,V=V.next),V}function J(e,t,n,r){for(;q;)q=!1,W+=1,V=null,n=e(t,r);return G=F=null,W=0,V=K=null,n}function X(e,t){return"function"==typeof t?t(e):t}function $(e,t,n){if(F=Y(),V=Z(),H){var r=V.queue;if(t=r.dispatch,null!==K&&void 0!==(n=K.get(r))){K.delete(r),r=V.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return V.memoizedState=r,[r,t]}return[V.memoizedState,t]}return e=e===X?"function"==typeof t?t():t:void 0!==n?n(t):t,V.memoizedState=e,e=(e=V.queue={last:null,dispatch:null}).dispatch=ee.bind(null,F,e),[V.memoizedState,e]}function ee(e,t,n){if(!(25>W))throw Error(i(301));if(e===F)if(q=!0,e={action:n,next:null},null===K&&(K=new Map),void 0===(n=K.get(t)))K.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 T(e,t),e[t]},useContext:function(e){Y();var t=ne;return T(e,t),e[t]},useMemo:function(e,t){if(F=Y(),t=void 0===t?null:t,null!==(V=Z())){var n=V.memoizedState;if(null!==n&&null!==t){e:{var r=n[1];if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!z(t[o],r[o])){r=!1;break e}r=!0}}if(r)return n[0]}}return e=e(),V.memoizedState=[e,t],e},useReducer:$,useRef:function(e){F=Y();var t=(V=Z()).memoizedState;return null===t?(e={current:e},V.memoizedState=e):t},useState:function(e){return $(X,e)},useLayoutEffect:function(){},useCallback:function(e){return e},useImperativeHandle:te,useEffect:te,useDebugValue:te,useResponder:function(e,t){return{props:t,responder:e}},useDeferredValue:function(e){return Y(),e},useTransition:function(){return Y(),[function(e){e()},!1]}},oe="http://www.w3.org/1999/xhtml";function ie(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var ae={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},ce=r({menuitem:!0},ae),se={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,gridArea:!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},ue=["Webkit","ms","Moz","O"];Object.keys(se).forEach((function(e){ue.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),se[t]=se[e]}))}));var le=/([A-Z])/g,de=/^ms-/,fe=o.Children.toArray,pe=C.ReactCurrentDispatcher,he={listing:!0,pre:!0,textarea:!0},be=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ve={},me={};var ge=Object.prototype.hasOwnProperty,Oe={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function ye(e,t){if(void 0===e)throw Error(i(152,E(t)||"Component"))}function je(e,t,n){function a(o,a){var c=a.prototype&&a.prototype.isReactComponent,s=function(e,t,n,r){if(r&&("object"==typeof(r=e.contextType)&&null!==r))return T(r,n),r[n];if(e=e.contextTypes){for(var o in n={},e)n[o]=t[o];t=n}else t=w;return t}(a,t,n,c),u=[],l=!1,d={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===u)return null},enqueueReplaceState:function(e,t){l=!0,u=[t]},enqueueSetState:function(e,t){if(null===u)return null;u.push(t)}};if(c){if(c=new a(o.props,s,d),"function"==typeof a.getDerivedStateFromProps){var f=a.getDerivedStateFromProps.call(null,o.props,c.state);null!=f&&(c.state=r({},c.state,f))}}else if(F={},c=a(o.props,s,d),null==(c=J(a,o.props,c,s))||null==c.render)return void ye(e=c,a);if(c.props=o.props,c.context=s,c.updater=d,void 0===(d=c.state)&&(c.state=d=null),"function"==typeof c.UNSAFE_componentWillMount||"function"==typeof c.componentWillMount)if("function"==typeof c.componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&c.componentWillMount(),"function"==typeof c.UNSAFE_componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&c.UNSAFE_componentWillMount(),u.length){d=u;var p=l;if(u=null,l=!1,p&&1===d.length)c.state=d[0];else{f=p?d[0]:c.state;var h=!0;for(p=p?1:0;p<d.length;p++){var b=d[p];null!=(b="function"==typeof b?b.call(c,f,o.props,s):b)&&(h?(h=!1,f=r({},f,b)):r(f,b))}c.state=f}}else u=null;if(ye(e=c.render(),a),"function"==typeof c.getChildContext&&"object"==typeof(o=a.childContextTypes)){var v=c.getChildContext();for(var m in v)if(!(m in o))throw Error(i(108,E(a)||"Unknown",m))}v&&(t=r({},t,v))}for(;o.isValidElement(e);){var c=e,s=c.type;if("function"!=typeof s)break;a(c,s)}return{child:e,context:t}}var Ee=function(){function e(e,t){o.isValidElement(e)?e.type!==s?e=[e]:(e=e.props.children,e=o.isValidElement(e)?[e]:fe(e)):e=fe(e),e={type:null,domNamespace:oe,children:e,childIndex:0,context:w,footer:""};var n=_[0];if(0===n){var r=_,a=2*(n=r.length);if(!(65536>=a))throw Error(i(304));var c=new Uint16Array(a);for(c.set(r),(_=c)[0]=n+1,r=n;r<a-1;r++)_[r]=r+1;_[a-1]=0}else _[0]=_[n];this.threadID=n,this.stack=[e],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=t,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[]}var t=e.prototype;return t.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var e=this.threadID;_[e]=_[0],_[0]=e}},t.pushProvider=function(e){var t=++this.contextIndex,n=e.type._context,r=this.threadID;T(n,r);var o=n[r];this.contextStack[t]=n,this.contextValueStack[t]=o,n[r]=e.props.value},t.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],n=this.contextValueStack[e];this.contextStack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=n},t.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]},t.read=function(e){if(this.exhausted)return null;var t=ne;ne=this.threadID;var n=pe.current;pe.current=re;try{for(var r=[""],o=!1;r[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var a=this.threadID;_[a]=_[0],_[0]=a;break}var c=this.stack[this.stack.length-1];if(o||c.childIndex>=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 u=r.pop();if(o){o=!1;var l=c.fallbackFrame;if(!l)throw Error(i(303));this.stack.push(l),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=u}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(i(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?U(n):this.previousWasTextNode?"\x3c!-- --\x3e"+U(n):(this.previousWasTextNode=!0,U(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(i(257));throw Error(i(258,n.toString()))}return e=fe(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}var a=e.type;if("string"==typeof a)return this.renderDOM(e,t,n);switch(a){case u:case p:case l:case v: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(i(294))}if("object"==typeof a&&null!==a)switch(a.$$typeof){case h:F={};var O=a.render(e.props,e.ref);return O=J(a.render,e.props,O,e.ref),O=fe(O),this.stack.push({type:null,domNamespace:n,children:O,childIndex:0,context:t,footer:""}),"";case m:return e=[o.createElement(a.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:a=fe(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case f:a=e.type,O=e.props;var E=this.threadID;return T(a,E),a=fe(O.children(a[E])),this.stack.push({type:e,domNamespace:n,children:a,childIndex:0,context:t,footer:""}),"";case y:throw Error(i(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)}))}}(a=e.type),a._status){case 1:return e=[o.createElement(a._result,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw a._result;default:throw Error(i(295))}case j:throw Error(i(343))}throw Error(i(130,null==a?a:typeof a,""))},t.renderDOM=function(e,t,n){var a=e.type.toLowerCase();if(n===oe&&ie(a),!ve.hasOwnProperty(a)){if(!be.test(a))throw Error(i(65,a));ve[a]=!0}var c=e.props;if("input"===a)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"===a){var s=c.value;if(null==s){s=c.defaultValue;var u=c.children;if(null!=u){if(null!=s)throw Error(i(92));if(Array.isArray(u)){if(!(1>=u.length))throw Error(i(93));u=u[0]}s=""+u}null==s&&(s="")}c=r({},c,{value:void 0,children:""+s})}else if("select"===a)this.currentSelectValue=null!=c.value?c.value:c.defaultValue,c=r({},c,{value:void 0});else if("option"===a){u=this.currentSelectValue;var l=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!=u){var d=null!=c.value?c.value+"":l;if(s=!1,Array.isArray(u)){for(var f=0;f<u.length;f++)if(""+u[f]===d){s=!0;break}}else s=""+u===d;c=r({selected:void 0,children:void 0},c,{selected:s,children:l})}}if(s=c){if(ce[a]&&(null!=s.children||null!=s.dangerouslySetInnerHTML))throw Error(i(137,a,""));if(null!=s.dangerouslySetInnerHTML){if(null!=s.children)throw Error(i(60));if("object"!=typeof s.dangerouslySetInnerHTML||!("__html"in s.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=s.style&&"object"!=typeof s.style)throw Error(i(62,""))}for(y in s=c,u=this.makeStaticMarkup,l=1===this.stack.length,d="<"+e.type,s)if(ge.call(s,y)){var p=s[y];if(null!=p){if("style"===y){f=void 0;var h="",b="";for(f in p)if(p.hasOwnProperty(f)){var v=0===f.indexOf("--"),m=p[f];if(null!=m){if(v)var g=f;else if(g=f,me.hasOwnProperty(g))g=me[g];else{var O=g.replace(le,"-$1").toLowerCase().replace(de,"-ms-");g=me[g]=O}h+=b+g+":",b=f,h+=v=null==m||"boolean"==typeof m||""===m?"":v||"number"!=typeof m||0===m||se.hasOwnProperty(b)&&se[b]?(""+m).trim():m+"px",b=";"}}p=h||null}f=null;e:if(v=a,m=s,-1===v.indexOf("-"))v="string"==typeof m.is;else switch(v){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":v=!1;break e;default:v=!0}v?Oe.hasOwnProperty(y)||(f=x(f=y)&&null!=p?f+'="'+U(p)+'"':""):f=B(y,p),f&&(d+=" "+f)}}u||l&&(d+=' data-reactroot=""');var y=d;s="",ae.hasOwnProperty(a)?y+="/>":(y+=">",s="</"+e.type+">");e:{if(null!=(u=c.dangerouslySetInnerHTML)){if(null!=u.__html){u=u.__html;break e}}else if("string"==typeof(u=c.children)||"number"==typeof u){u=U(u);break e}u=null}return null!=u?(c=[],he.hasOwnProperty(a)&&"\n"===u.charAt(0)&&(y+="\n"),y+=u):c=fe(c.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?ie(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:a,children:c,childIndex:0,context:t,footer:s}),this.previousWasTextNode=!1,y},e}(),Ce={renderToString:function(e){e=new Ee(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new Ee(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){throw Error(i(207))},renderToStaticNodeStream:function(){throw Error(i(208))},version:"16.14.0"};e.exports=Ce.default||Ce},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(226));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 i=function(){};t.onViewedOnce=function(e,n,r){if(t.isViewed(e))return n.call(r,e),i;var a=o.default((function(){t.isViewed(e)&&(n.call(r,e),c())}),250);function c(){window.removeEventListener("scroll",a),window.removeEventListener("resize",a)}return window.addEventListener("scroll",a),window.addEventListener("resize",a),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(226)),i=r(n(69));t.isFullyViewed=function(e,t){var n=e.getBoundingClientRect(),r=n.right,o=n.bottom,i=t.getBoundingClientRect(),a=i.right;return o<=i.bottom&&r<=a},t.onFullyViewedOnce=function(e,n,r,a){if(t.isFullyViewed(e,n))return r.call(a,e),i.default;var c=o.default((function(){t.isFullyViewed(e,n)&&(r.call(a,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";
|
|
|
/** @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<n;o++)r[o]=arguments[o];return(n=e.call.apply(e,[this].concat(r))||this).state={source:n.props.source,value:null!=n.props.source?t(n.props.source):void 0},n._hasUnmounted=!1,n._unsubscribe=null,n}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(r,e),r.getDerivedStateFromProps=function(e,n){return e.source!==n.source?{source:e.source,value:null!=e.source?t(e.source):void 0}:null};var o=r.prototype;return o.componentDidMount=function(){this.subscribe()},o.componentDidUpdate=function(e,t){this.state.source!==t.source&&(this.unsubscribe(),this.subscribe())},o.componentWillUnmount=function(){this.unsubscribe(),this._hasUnmounted=!0},o.render=function(){return this.props.children(this.state.value)},o.subscribe=function(){var e=this,r=this.state.source;if(null!=r){var o=n(r,(function(t){e._hasUnmounted||e.setState((function(e){return t===e.value||r!==e.source?null:{value:t}}))}));if("function"!=typeof o)throw Error(function(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}(266));this._unsubscribe=o,(o=t(this.props.source))!==this.state.value&&this.setState({value:o})}},o.unsubscribe=function(){"function"==typeof this._unsubscribe&&this._unsubscribe(),this._unsubscribe=null},r}(r.Component)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observe=i,t.unobserve=a,t.destroy=c;var r=new Map,o=new Map;function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{threshold:0},i=arguments[3],a=n.root,c=n.rootMargin,u=n.threshold||0;if(e&&t){var l=c?u.toString()+"_"+c:""+u.toString();a&&(l=i?i+"_"+l:null);var d=l?o.get(l):null;d||(d=new IntersectionObserver(s,n),l&&o.set(l,d));var f={callback:t,visible:!1,options:n,observerId:l,observer:l?void 0:d};return r.set(e,f),d.observe(e),f}}function a(e){if(e){var t=r.get(e);if(t){var n=t.observerId,i=t.observer,a=n?o.get(n):i;a&&a.unobserve(e);var c=!1;n&&r.forEach((function(t,r){t&&t.observerId===n&&r!==e&&(c=!0)})),a&&!c&&(a.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,i=r.get(o);if(i&&n>=0){var a=i.options,c=!1;Array.isArray(a.threshold)?c=a.threshold.some((function(e){return i.visible?n>e:n>=e})):void 0!==a.threshold&&(c=i.visible?n>a.threshold:n>=a.threshold),void 0!==t&&(c=c&&t),i.callback&&i.callback(c)}}))}t.default={observe:i,unobserve:a,destroy:c}},function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},function(e,t,n){"use strict";var r=n(100)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(340),i=n(165),a=n(266),c=n(175),s=n(245),u=n(145),l=n(97),d=n(86),f=(n(293),n(228)),p=n(934),h=s.draft_tree_data_support,b=h?c:a,v=d.List,m=d.Repeat,g={insertAtomicBlock:function(e,t,n){var a=e.getCurrentContent(),c=e.getSelection(),s=u.removeRange(a,c,"backward"),d=s.getSelectionAfter(),p=u.splitBlock(s,d),g=p.getSelectionAfter(),O=u.setBlockType(p,g,"atomic"),y=i.create({entity:t}),j={key:f(),type:"atomic",text:n,characterList:v(m(y,n.length))},E={key:f(),type:"unstyled"};h&&(j=r({},j,{nextSibling:E.key}),E=r({},E,{prevSibling:j.key}));var C=[new b(j),new b(E)],w=o.createFromArray(C),T=u.replaceWithFragment(O,g,w),_=T.merge({selectionBefore:c,selectionAfter:T.getSelectionAfter().set("hasFocus",!0)});return l.push(e,_,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o=e.getCurrentContent(),i=e.getSelection(),a=void 0;if("before"===r||"after"===r){var c=o.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());a=p(o,t,c,r)}else{var s=u.removeRange(o,n,"backward"),d=s.getSelectionAfter(),f=s.getBlockForKey(d.getFocusKey());if(0===d.getStartOffset())a=p(s,t,f,"before");else if(d.getEndOffset()===f.getLength())a=p(s,t,f,"after");else{var h=u.splitBlock(s,d),b=h.getSelectionAfter(),v=h.getBlockForKey(b.getFocusKey());a=p(h,t,v,"before")}}var m=a.merge({selectionBefore:i,selectionAfter:a.getSelectionAfter().set("hasFocus",!0)});return l.push(e,m,"move-block")}};e.exports=g},function(e,t,n){"use strict";e.exports={draft_killswitch_allow_nontextnodes:!1,draft_segmented_entities_behavior:!1,draft_handlebeforeinput_composed_text:!1,draft_tree_data_support:!1}},function(e,t,n){"use strict";var r=n(165),o=n(86).Map,i={add:function(e,t,n){return a(e,t,n,!0)},remove:function(e,t,n){return a(e,t,n,!1)}};function a(e,t,n,i){var a=e.getBlockMap(),c=t.getStartKey(),s=t.getStartOffset(),u=t.getEndKey(),l=t.getEndOffset(),d=a.skipUntil((function(e,t){return t===c})).takeUntil((function(e,t){return t===u})).concat(o([[u,a.get(u)]])).map((function(e,t){var o,a;c===u?(o=s,a=l):(o=t===c?s:0,a=t===u?l:e.getLength());for(var d,f=e.getCharacterList();o<a;)d=f.get(o),f=f.set(o,i?r.applyStyle(d,n):r.removeStyle(d,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:a.merge(d),selectionBefore:t,selectionAfter:t})}e.exports=i},function(e,t,n){"use strict";var r=n(86),o=n(923);e.exports=function(e,t,n){var i=e.getBlockMap(),a=t.getStartKey(),c=t.getStartOffset(),s=t.getEndKey(),u=t.getEndOffset(),l=i.skipUntil((function(e,t){return t===a})).takeUntil((function(e,t){return t===s})).toOrderedMap().merge(r.OrderedMap([[s,i.get(s)]])).map((function(e,t){var r=t===a?c:0,i=t===s?u:e.getLength();return o(e,r,i,n)}));return e.merge({blockMap:i.merge(l),selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=n(165);e.exports=function(e,t,n,o){for(var i=e.getCharacterList();t<n;)i=i.set(t,r.applyEntity(i.get(t),o)),t++;return e.set("characterList",i)}},function(e,t,n){"use strict";var r=n(925),o=n(926),i=n(87);function a(e,t,n,a,c,s,u){var l=n.getStartOffset(),d=n.getEndOffset(),f=e.__get(c).getMutability(),p=u?l:d;if("MUTABLE"===f)return n;var h=o(t,c).filter((function(e){return p<=e.end&&p>=e.start}));1!=h.length&&i(!1);var b=h[0];if("IMMUTABLE"===f)return n.merge({anchorOffset:b.start,focusOffset:b.end,isBackward:!1});s||(u?d=b.end:l=b.start);var v=r.getRemovalRange(l,d,t.getText().slice(b.start,b.end),b.start,a);return n.merge({anchorOffset:v.start,focusOffset:v.end,isBackward:!1})}e.exports=function(e,t,n,r,o){var i=r.getStartOffset(),c=r.getEndOffset(),s=t.getEntityAt(i),u=n.getEntityAt(c-1);if(!s&&!u)return r;var l=r;if(s&&s===u)l=a(e,t,l,o,s,!0,!0);else if(s&&u){var d=a(e,t,l,o,s,!1,!0),f=a(e,n,l,o,u,!1,!1);l=l.merge({anchorOffset:d.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var p=a(e,t,l,o,s,!1,!0);l=l.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(u){var h=a(e,n,l,o,u,!1,!1);l=l.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return l}},function(e,t,n){"use strict";e.exports={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,c=r,s=null,u=null,l=0;l<i.length;l++){if(e<(a=c+i[l].length)&&c<t)null!==s||(s=c),u=a;else if(null!==s)break;c=a}var d=r+n.length,f=s===r,p=u===d;return(!f&&p||f&&!p)&&("forward"===o?u!==d&&u++:s!==r&&s--),{start:s,end:u}}}},function(e,t,n){"use strict";var r=n(87);e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||r(!1),n}},function(e,t,n){"use strict";var r=n(340),o=n(175),i=n(86),a=n(620),c=n(87),s=n(618),u=i.List,l=function(e,t,n,i,a,c){var s=n.first()instanceof o,l=[],d=i.size,f=n.get(a),p=i.first(),h=i.last(),b=h.getLength(),v=h.getKey(),m=s&&(!f.getChildKeys().isEmpty()||!p.getChildKeys().isEmpty());n.forEach((function(e,t){t===a?(m?l.push(e):l.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),c=n.first();return e.merge({text:i+c.getText(),characterList:a.concat(c.getCharacterList()),type:i?e.getType():c.getType(),data:c.getData()})}(e,c,i)),i.slice(m?0:1,d-1).forEach((function(e){return l.push(e)})),l.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),c=o.slice(t,i),s=n.last();return s.merge({text:s.getText()+a,characterList:s.getCharacterList().concat(c),data:s.getData()})}(e,c,i))):l.push(e)}));var g=r.createFromArray(l);return s&&(g=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),c=n.getParentKey(),s=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),l=s[s.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([l,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],l),s.forEach((function(e){return t.setIn([e,"parent"],c)})),c){var d=e.get(c).getChildKeys(),f=d.indexOf(o)+1,p=d.toArray();p.splice.apply(p,[f,0].concat(s)),t.setIn([c,"children"],u(p))}}))}(g,0,f,p)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:v,anchorOffset:b,focusKey:v,focusOffset:b,isBackward:!1})})};e.exports=function(e,t,n){t.isCollapsed()||c(!1);var r=e.getBlockMap(),i=s(n),u=t.getStartKey(),d=t.getStartOffset(),f=r.get(u);return f instanceof o&&(f.getChildKeys().isEmpty()||c(!1)),1===i.size?function(e,t,n,r,o,i){var c=n.get(o),s=c.getText(),u=c.getCharacterList(),l=o,d=i+r.getText().length,f=c.merge({text:s.slice(0,i)+r.getText()+s.slice(i),characterList:a(u,r.getCharacterList(),i),data:r.getData()});return e.merge({blockMap:n.set(o,f),selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:d,focusKey:l,focusOffset:d,isBackward:!1})})}(e,t,r,i.first(),u,d):l(e,t,r,i,u,d)}},function(e,t,n){"use strict";var r=n(86),o=n(620),i=n(87),a=r.Repeat;e.exports=function(e,t,n,r){t.isCollapsed()||i(!1);var c=n.length;if(!c)return e;var s=e.getBlockMap(),u=t.getStartKey(),l=t.getStartOffset(),d=s.get(u),f=d.getText(),p=d.merge({text:f.slice(0,l)+n+f.slice(l,d.getLength()),characterList:o(d.getCharacterList(),a(r,c).toList(),l)}),h=l+c;return e.merge({blockMap:s.set(u,p),selectionAfter:t.merge({anchorOffset:h,focusOffset:h})})}},function(e,t,n){"use strict";var r=n(86).Map;e.exports=function(e,t,n){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),c=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat(r([[i,a.get(i)]])).map(n);return e.merge({blockMap:a.merge(c),selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=n(175),o=n(86),i=n(621),a=(o.List,o.Map),c=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},s=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},u=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},l=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},d=function(e,t,n,r){return e.withMutations((function(e){c(t.getKey(),e,(function(n){return n.merge({nextSibling:u(t,e,r),prevSibling:l(t,e,r)})})),c(n.getKey(),e,(function(t){return t.merge({nextSibling:u(n,e,r),prevSibling:l(n,e,r)})})),s(t.getKey(),r).forEach((function(t){return c(t,e,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return e.get(t)})),nextSibling:u(t,e,r),prevSibling:l(t,e,r)})}))})),c(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),c(t.getPrevSiblingKey(),e,(function(n){return n.merge({nextSibling:u(t,e,r)})})),c(n.getNextSiblingKey(),e,(function(t){return t.merge({prevSibling:l(n,e,r)})})),c(n.getPrevSiblingKey(),e,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),s(n.getKey(),r).forEach((function(t){c(t,e,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return e.get(t)})),nextSibling:u(t,e,r),prevSibling:l(t,e,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=i(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?i(o,t):null}return n}(n,r).forEach((function(t){return c(t,e,(function(t){return t.merge({nextSibling:u(t,e,r),prevSibling:l(t,e,r)})}))}))}))},f=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)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(),u=t.getEndKey(),l=t.getEndOffset(),p=n.get(o),h=n.get(u),b=p instanceof r,v=[];if(b){var m=h.getChildKeys(),g=s(u,n);h.getNextSiblingKey()&&(v=v.concat(g)),m.isEmpty()||(v=v.concat(g.concat([u]))),v=v.concat(s(i(h,n),n))}var O=void 0;O=p===h?f(p.getCharacterList(),c,l):p.getCharacterList().slice(0,c).concat(h.getCharacterList().slice(l));var y=p.merge({text:p.getText().slice(0,c)+h.getText().slice(l),characterList:O}),j=n.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===u})).filter((function(e,t){return-1===v.indexOf(t)})).concat(a([[u,null]])).map((function(e,t){return t===o?y:null})),E=n.merge(j).filter((function(e){return!!e}));return b&&(E=d(E,p,h,n)),e.merge({blockMap:E,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:c,focusKey:o,focusOffset:c,isBackward:!1})})}},function(e,t,n){"use strict";var r=n(175),o=n(86),i=n(228),a=n(87),c=o.List,s=o.Map,u=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};e.exports=function(e,t){t.isCollapsed()||a(!1);var n=t.getAnchorKey(),o=t.getAnchorOffset(),l=e.getBlockMap(),d=l.get(n),f=d.getText(),p=d.getCharacterList(),h=i(),b=d instanceof r,v=d.merge({text:f.slice(0,o),characterList:p.slice(0,o)}),m=v.merge({key:h,text:f.slice(o),characterList:p.slice(o),data:s()}),g=l.toSeq().takeUntil((function(e){return e===d})),O=l.toSeq().skipUntil((function(e){return e===d})).rest(),y=g.concat([[n,v],[h,m]],O).toOrderedMap();return b&&(d.getChildKeys().isEmpty()||a(!1),y=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();u(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:c(i)})})),u(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),u(r,e,(function(e){return e.merge({nextSibling:o})})),u(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(y,v,m)),e.merge({blockMap:y,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(86),i=n(933),a=n(190),c=o.OrderedMap,s={getDirectionMap:function(e,t){r?r.reset():r=new i;var n=e.getBlockMap(),s=n.valueSeq().map((function(e){return a(r).getDirection(e.getText())})),u=c(n.keySeq().zip(s));return null!=t&&o.is(t,u)?t:u}};e.exports=s},function(e,t,n){"use strict";var r=n(624),o=n(489),i=n(87),a=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)||i(!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=a},function(e,t,n){"use strict";var r=n(175),o=n(86),i=n(621),a=n(87),c=o.OrderedMap,s=o.List,u=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},l=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),c=n.getKey(),l=t.getParentKey(),d=t.getNextSiblingKey(),f=t.getPrevSiblingKey(),p=n.getParentKey(),h=i?n.getNextSiblingKey():c,b=i?c:n.getPrevSiblingKey();return e.withMutations((function(e){u(l,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),u(f,e,(function(e){return e.merge({nextSibling:d})})),u(d,e,(function(e){return e.merge({prevSibling:f})})),u(h,e,(function(e){return e.merge({prevSibling:a})})),u(b,e,(function(e){return e.merge({nextSibling:a})})),u(p,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(c),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:s(o)})})),u(a,e,(function(e){return e.merge({nextSibling:h,prevSibling:b,parent:p})}))}))};e.exports=function(e,t,n,o){"replace"===o&&a(!1);var s=n.getKey(),u=t.getKey();u===s&&a(!1);var d=e.getBlockMap(),f=t instanceof r,p=[t],h=d.delete(u);f&&(p=[],h=d.withMutations((function(e){var n=t.getNextSiblingKey(),r=i(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===u})).takeWhile((function(e){var t=e.getKey(),o=t===u,i=n&&t!==n,a=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||i||a)})).forEach((function(t){p.push(t),e.delete(t.getKey())}))})));var b=h.toSeq().takeUntil((function(e){return e===n})),v=h.toSeq().skipUntil((function(e){return e===n})).skip(1),m=p.map((function(e){return[e.getKey(),e]})),g=c();if("before"===o){var O=e.getBlockBefore(s);O&&O.getKey()===t.getKey()&&a(!1),g=b.concat([].concat(m,[[s,n]]),v).toOrderedMap()}else if("after"===o){var y=e.getBlockAfter(s);y&&y.getKey()===u&&a(!1),g=b.concat([[s,n]].concat(m),v).toOrderedMap()}return e.merge({blockMap:l(g,t,n,o,f),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:u,focusKey:u})})}},function(e,t,n){"use strict";var r=n(86).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 i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(!function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),r(n)},e.prototype.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},e.prototype.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();e.exports=o},function(e,t,n){"use strict";var r=n(100)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var o=n(490),i=n(625),a=n(937),c=n(938),s=n(960),u=n(963),l=n(995),d=n(97),f=n(1),p=n(46),h=n(629),b=n(494),v=n(205),m=n(294),g=n(486),O=n(228),y=n(642),j=n(495),E=n(87),C=n(190),w=v.isBrowser("IE"),T=!w,_={edit:u,composite:a,drag:s,cut:null,render:null},S=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.focus=function(e){var t=r.props.editorState,n=t.getSelection().getHasFocus(),o=p.findDOMNode(r.editor);if(o){var i=b.getScrollParent(o),a=e||j(i),c=a.x,s=a.y;o instanceof HTMLElement||E(!1),o.focus(),i===window?window.scrollTo(c,s):h.setTop(i,s),n||r.update(d.forceSelection(t,t.getSelection()))}},r.blur=function(){var e=p.findDOMNode(r.editor);e instanceof HTMLElement||E(!1),e.blur()},r.setMode=function(e){r._handler=_[e]},r.exitCurrentMode=function(){r.setMode("edit")},r.restoreEditorDOM=function(e){r.setState({contentsKey:r.state.contentsKey+1},(function(){r.focus(e)}))},r.setClipboard=function(e){r._clipboard=e},r.getClipboard=function(){return r._clipboard},r.update=function(e){r._latestEditorState=e,r.props.onChange(e)},r.onDragEnter=function(){r._dragCount++},r.onDragLeave=function(){r._dragCount--,0===r._dragCount&&r.exitCurrentMode()},r._blockSelectEvents=!1,r._clipboard=null,r._handler=null,r._dragCount=0,r._editorKey=n.editorKey||O(),r._placeholderAccessibilityID="placeholder-"+r._editorKey,r._latestEditorState=n.editorState,r._latestCommittedEditorState=n.editorState,r._onBeforeInput=r._buildHandler("onBeforeInput"),r._onBlur=r._buildHandler("onBlur"),r._onCharacterData=r._buildHandler("onCharacterData"),r._onCompositionEnd=r._buildHandler("onCompositionEnd"),r._onCompositionStart=r._buildHandler("onCompositionStart"),r._onCopy=r._buildHandler("onCopy"),r._onCut=r._buildHandler("onCut"),r._onDragEnd=r._buildHandler("onDragEnd"),r._onDragOver=r._buildHandler("onDragOver"),r._onDragStart=r._buildHandler("onDragStart"),r._onDrop=r._buildHandler("onDrop"),r._onInput=r._buildHandler("onInput"),r._onFocus=r._buildHandler("onFocus"),r._onKeyDown=r._buildHandler("onKeyDown"),r._onKeyPress=r._buildHandler("onKeyPress"),r._onKeyUp=r._buildHandler("onKeyUp"),r._onMouseDown=r._buildHandler("onMouseDown"),r._onMouseUp=r._buildHandler("onMouseUp"),r._onPaste=r._buildHandler("onPaste"),r._onSelect=r._buildHandler("onSelect"),r.getEditorKey=function(){return r._editorKey},r.state={contentsKey:0},r}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._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&r(t,n)}}},t.prototype._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},t.prototype._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:C(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return f.createElement(l,e)}return null},t.prototype.render=function(){var e=this,t=this.props,n=t.blockRenderMap,o=t.blockRendererFn,a=t.blockStyleFn,s=t.customStyleFn,u=t.customStyleMap,l=t.editorState,d=t.readOnly,p=t.textAlignment,h=t.textDirectionality,b=m({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===p,"DraftEditor/alignRight":"right"===p,"DraftEditor/alignCenter":"center"===p}),v=this.props.role||"textbox",g="combobox"===v?!!this.props.ariaExpanded:null,O={blockRenderMap:n,blockRendererFn:o,blockStyleFn:a,customStyleMap:r({},i,u),customStyleFn:s,editorKey:this._editorKey,editorState:l,key:"contents"+this.state.contentsKey,textDirectionality:h};return f.createElement("div",{className:b},this._renderPlaceholder(),f.createElement("div",{className:m("DraftEditor/editorContainer"),ref:function(t){return e.editorContainer=t}},f.createElement("div",{"aria-activedescendant":d?null:this.props.ariaActiveDescendantID,"aria-autocomplete":d?null:this.props.ariaAutoComplete,"aria-controls":d?null:this.props.ariaControls,"aria-describedby":this.props.ariaDescribedBy||this._placeholderAccessibilityID,"aria-expanded":d?null:g,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:m({notranslate:!d,"public/DraftEditor/content":!0}),contentEditable:!d,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:function(t){return e.editor=t},role:d?null:v,spellCheck:T&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},f.createElement(c,O))))},t.prototype.componentDidMount=function(){this.setMode("edit"),w&&document.execCommand("AutoUrlDetect",!1,!1)},t.prototype.componentWillUpdate=function(e){this._blockSelectEvents=!0,this._latestEditorState=e.editorState},t.prototype.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestCommittedEditorState=this.props.editorState},t}(f.Component);S.defaultProps={blockRenderMap:o,blockRendererFn:g.thatReturnsNull,blockStyleFn:g.thatReturns(""),keyBindingFn:y,readOnly:!1,spellCheck:!1,stripPastedStyles:!1},e.exports=S},function(e,t,n){"use strict";var r=n(245),o=n(145),i=n(97),a=n(491),c=n(492),s=n(342),u=n(626),l=!1,d=!1,f="",p={onBeforeInput:function(e,t){f=(f||"")+t.data},onCompositionStart:function(e){d=!0},onCompositionEnd:function(e){l=!1,d=!1,setTimeout((function(){l||p.resolveComposition(e)}),20)},onKeyDown:function(e,t){if(!d)return p.resolveComposition(e),void e._onKeyDown(t);t.which!==a.RIGHT&&t.which!==a.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===a.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!d){l=!0;var t=f;f="";var n=i.set(e._latestEditorState,{inCompositionMode:!1}),a=n.getCurrentInlineStyle(),p=c(n.getCurrentContent(),n.getSelection()),h=!t||u(n)||a.size>0||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,a,p);e.update(i.push(n,b,"insert-characters"))}else h&&e.update(i.set(n,{nativelyRenderedContent:null,forceSelection:!0}))}}};e.exports=p},function(e,t,n){"use strict";var r=n(939);e.exports=r},function(e,t,n){"use strict";var r=n(100)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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=n(627),c=n(383),s=(n(97),n(1)),u=n(294),l=n(959),d=n(190),f=function(e,t,n,r){return u({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":4===t,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},p=function(e){function t(){return o(this,t),i(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.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),c=n.getCurrentContent(),s=t.getDecorator(),u=n.getDecorator();return o!==i||a!==c||s!==u||n.mustForceSelection()},t.prototype.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,o=e.blockStyleFn,i=e.customStyleMap,u=e.customStyleFn,p=e.editorState,h=e.editorKey,b=e.textDirectionality,v=p.getCurrentContent(),m=p.getSelection(),g=p.mustForceSelection(),O=p.getDecorator(),y=d(p.getDirectionMap()),j=v.getBlocksAsArray(),E=[],C=null,w=null,T=0;T<j.length;T++){var _=j[T],S=_.getKey(),A=_.getType(),k=n(_),R=void 0,I=void 0,x=void 0;k&&(R=k.component,I=k.props,x=k.editable);var N=b||y.get(S),D=c.encode(S,0,0),P={contentState:v,block:_,blockProps:I,blockStyleFn:o,customStyleMap:i,customStyleFn:u,decorator:O,direction:N,forceSelection:g,key:S,offsetKey:D,selection:m,tree:p.getBlockTree(S)},L=t.get(A)||t.get("unstyled"),M=L.wrapper,U=L.element||t.get("unstyled").element,B=_.getDepth(),z="";if(o&&(z=o(_)),"li"===U)z=l(z,f(A,B,w!==M||null===C||B>C,N));var F=R||a,G={className:z,"data-block":!0,"data-editor":h,"data-offset-key":D,key:S};void 0!==x&&(G=r({},G,{contentEditable:x,suppressContentEditableWarning:!0}));var V=s.createElement(U,G,s.createElement(F,P));E.push({block:V,wrapperTemplate:M,key:S,offsetKey:D}),C=M?_.getDepth():null,w=M}for(var H=[],q=0;q<E.length;){var K=E[q];if(K.wrapperTemplate){var W=[];do{W.push(E[q].block),q++}while(q<E.length&&E[q].wrapperTemplate===K.wrapperTemplate);var Y=s.cloneElement(K.wrapperTemplate,{key:K.key+"-wrap","data-offset-key":K.offsetKey},W);H.push(Y)}else H.push(K.block),q++}return s.createElement("div",{"data-contents":"true"},H)},t}(s.Component);e.exports=p},function(e,t,n){"use strict";var r=n(100);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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=n(941),c=n(1),s=n(46),u=n(87),l=n(947),d=function(e){function t(){return o(this,t),i(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._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),a=r+o.length;if(e.hasEdgeWithin(i,r,a)){var c=s.findDOMNode(this);c||u(!1);var d=c.firstChild;d||u(!1);var f=void 0;d.nodeType===Node.TEXT_NODE?f=d:"BR"===d.tagName?f=c:(f=d.firstChild)||u(!1),l(e,f,i,r,a)}}},t.prototype.shouldComponentUpdate=function(e){var t=s.findDOMNode(this.leaf);return t||u(!1),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},t.prototype.componentDidUpdate=function(){this._setSelection()},t.prototype.componentDidMount=function(){this._setSelection()},t.prototype.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var o=this.props,i=o.customStyleMap,s=o.customStyleFn,u=o.offsetKey,l=o.styleSet,d=l.reduce((function(e,t){var n={},o=i[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(n.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),r(e,o,n)}),{});if(s){var f=s(l,t);d=r(d,f)}return c.createElement("span",{"data-offset-key":u,ref:function(t){return e.leaf=t},style:d},c.createElement(a,null,n))},t}(c.Component);e.exports=d},function(e,t,n){"use strict";var r=n(1),o=n(46),i=n(205),a=n(87),c=i.isBrowser("IE <= 11");var s=c?r.createElement("span",{key:"A","data-text":"true"},"\n"):r.createElement("br",{key:"A","data-text":"true"}),u=c?r.createElement("span",{key:"B","data-text":"true"},"\n"):r.createElement("br",{key:"B","data-text":"true"}),l=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r._forceFlag=!1,r}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.shouldComponentUpdate=function(e){var t=o.findDOMNode(this),n=""===e.children;return t instanceof Element||a(!1),n?!function(e){return c?"\n"===e.textContent:"BR"===e.tagName}(t):t.textContent!==e.children},t.prototype.componentDidMount=function(){this._forceFlag=!this._forceFlag},t.prototype.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},t.prototype.render=function(){return""===this.props.children?this._forceFlag?s:u:r.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},t}(r.Component);e.exports=l},function(e,t,n){"use strict";var r=n(943),o="Unknown",i={"Mac OS":"Mac OS X"};var a,c=(new r).getResult(),s=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(c.browser.version),u={browserArchitecture:c.cpu.architecture||o,browserFullVersion:c.browser.version||o,browserMinorVersion:s.minor||o,browserName:c.browser.name||o,browserVersion:c.browser.major||o,deviceName:c.device.model||o,engineName:c.engine.name||o,engineVersion:c.engine.version||o,platformArchitecture:c.cpu.architecture||o,platformName:(a=c.os.name,i[a]||a||o),platformVersion:c.os.version||o,platformFullVersion:c.os.version||o};e.exports=u},function(e,t,n){var r;
|
|
|
/*!
|
|
|
* UAParser.js v0.7.22
|
|
|
* Lightweight JavaScript-based User-Agent string parser
|
|
|
* https://github.com/faisalman/ua-parser-js
|
|
|
*
|
|
|
* Copyright © 2012-2019 Faisal Salman <f@faisalman.com>
|
|
|
* Licensed under MIT License
|
|
|
*/!function(o,i){"use strict";var a="model",c="name",s="type",u="vendor",l="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,i,a,c,s=0;s<t.length&&!a;){var u=t[s],l=t[s+1];for(n=r=0;n<u.length&&!a;)if(a=u[n++].exec(e))for(o=0;o<l.length;o++)c=a[++r],"object"==typeof(i=l[o])&&i.length>0?2==i.length?"function"==typeof i[1]?this[i[0]]=i[1].call(this,c):this[i[0]]=i[1]:3==i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?this[i[0]]=c?c.replace(i[1],i[2]):void 0:this[i[0]]=c?i[1].call(this,c,i[2]):void 0:4==i.length&&(this[i[0]]=c?i[3].call(this,c.replace(i[1],i[2])):void 0):this[i]=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<t[n].length;r++)if(h.has(t[n][r],e))return"?"===n?void 0:n}else if(h.has(t[n],e))return"?"===n?void 0:n;return e}},v={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},m={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[c,l],[/(opios)[\/\s]+([\w\.]+)/i],[[c,"Opera Mini"],l],[/\s(opr)\/([\w\.]+)/i],[[c,"Opera"],l],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[c,l],[/(konqueror)\/([\w\.]+)/i],[[c,"Konqueror"],l],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[c,"IE"],l],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[c,"Edge"],l],[/(yabrowser)\/([\w\.]+)/i],[[c,"Yandex"],l],[/(Avast)\/([\w\.]+)/i],[[c,"Avast Secure Browser"],l],[/(AVG)\/([\w\.]+)/i],[[c,"AVG Secure Browser"],l],[/(puffin)\/([\w\.]+)/i],[[c,"Puffin"],l],[/(focus)\/([\w\.]+)/i],[[c,"Firefox Focus"],l],[/(opt)\/([\w\.]+)/i],[[c,"Opera Touch"],l],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[c,"UCBrowser"],l],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],l],[/(windowswechat qbcore)\/([\w\.]+)/i],[[c,"WeChat(Win) Desktop"],l],[/(micromessenger)\/([\w\.]+)/i],[[c,"WeChat"],l],[/(brave)\/([\w\.]+)/i],[[c,"Brave"],l],[/(qqbrowserlite)\/([\w\.]+)/i],[c,l],[/(QQ)\/([\d\.]+)/i],[c,l],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[c,l],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[c,l],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[c,l],[/(MetaSr)[\/\s]?([\w\.]+)/i],[c],[/(LBBROWSER)/i],[c],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[l,[c,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[l,[c,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[c,l],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[l,[c,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[c,/(.+)/,"$1 WebView"],l],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[c,/(.+(?:g|us))(.+)/,"$1 $2"],l],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[l,[c,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[c,"Sailfish Browser"],l],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[c,l],[/(dolfin)\/([\w\.]+)/i],[[c,"Dolphin"],l],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[c,"360 Browser"]],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[c,"Chrome"],l],[/(coast)\/([\w\.]+)/i],[[c,"Opera Coast"],l],[/fxios\/([\w\.-]+)/i],[l,[c,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[l,[c,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[l,c],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[c,"GSA"],l],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[c,[l,b.str,v.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[c,l],[/(navigator|netscape)\/([\w\.-]+)/i],[[c,"Netscape"],l],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[c,l]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",h.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",h.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",h.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[a,u,[s,f]],[/applecoremedia\/[\w\.]+ \((ipad)/],[a,[u,"Apple"],[s,f]],[/(apple\s{0,1}tv)/i],[[a,"Apple TV"],[u,"Apple"],[s,p]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[u,a,[s,f]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[a,[u,"Amazon"],[s,f]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[a,b.str,v.device.amazon.model],[u,"Amazon"],[s,d]],[/android.+aft([bms])\sbuild/i],[a,[u,"Amazon"],[s,p]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[a,u,[s,d]],[/\((ip[honed|\s\w*]+);/i],[a,[u,"Apple"],[s,d]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[u,a,[s,d]],[/\(bb10;\s(\w+)/i],[a,[u,"BlackBerry"],[s,d]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[a,[u,"Asus"],[s,f]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[u,"Sony"],[a,"Xperia Tablet"],[s,f]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[u,"Sony"],[s,d]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[u,a,[s,"console"]],[/android.+;\s(shield)\sbuild/i],[a,[u,"Nvidia"],[s,"console"]],[/(playstation\s[34portablevi]+)/i],[a,[u,"Sony"],[s,"console"]],[/(sprint\s(\w+))/i],[[u,b.str,v.device.sprint.vendor],[a,b.str,v.device.sprint.model],[s,d]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[u,[a,/_/g," "],[s,d]],[/(nexus\s9)/i],[a,[u,"HTC"],[s,f]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29|ele-l29)/i],[a,[u,"Huawei"],[s,d]],[/android.+(bah2?-a?[lw]\d{2})/i],[a,[u,"Huawei"],[s,f]],[/(microsoft);\s(lumia[\s\w]+)/i],[u,a,[s,d]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[a,[u,"Microsoft"],[s,"console"]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[u,"Microsoft"],[s,d]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[a,[u,"Motorola"],[s,d]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[a,[u,"Motorola"],[s,f]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[u,h.trim],[a,h.trim],[s,p]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[u,"Samsung"],[s,p]],[/\(dtv[\);].+(aquos)/i],[a,[u,"Sharp"],[s,p]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[u,"Samsung"],a,[s,f]],[/smart-tv.+(samsung)/i],[u,[s,p],a],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[u,"Samsung"],a,[s,d]],[/sie-(\w*)/i],[a,[u,"Siemens"],[s,d]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[u,"Nokia"],a,[s,d]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[a,[u,"Acer"],[s,f]],[/android.+([vl]k\-?\d{3})\s+build/i],[a,[u,"LG"],[s,f]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[u,"LG"],a,[s,f]],[/(lg) netcast\.tv/i],[u,a,[s,p]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[a,[u,"LG"],[s,d]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[u,a,[s,f]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[a,[u,"Lenovo"],[s,f]],[/(lenovo)[_\s-]?([\w-]+)/i],[u,a,[s,d]],[/linux;.+((jolla));/i],[u,a,[s,d]],[/((pebble))app\/[\d\.]+\s/i],[u,a,[s,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[u,a,[s,d]],[/crkey/i],[[a,"Chromecast"],[u,"Google"],[s,p]],[/android.+;\s(glass)\s\d/i],[a,[u,"Google"],[s,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[a,[u,"Google"],[s,f]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[a,[u,"Google"],[s,d]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]?[\w\s]+))\s+build/i],[[a,/_/g," "],[u,"Xiaomi"],[s,d]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]?[\w\s]+))\s+build/i],[[a,/_/g," "],[u,"Xiaomi"],[s,f]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[a,[u,"Meizu"],[s,d]],[/(mz)-([\w-]{2,})/i],[[u,"Meizu"],a,[s,d]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[a,[u,"OnePlus"],[s,d]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[a,[u,"RCA"],[s,f]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[a,[u,"Dell"],[s,f]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[a,[u,"Verizon"],[s,f]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[u,"Barnes & Noble"],a,[s,f]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[a,[u,"NuVision"],[s,f]],[/android.+;\s(k88)\sbuild/i],[a,[u,"ZTE"],[s,f]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[a,[u,"Swiss"],[s,d]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[a,[u,"Swiss"],[s,f]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[a,[u,"Zeki"],[s,f]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[u,"Dragon Touch"],a,[s,f]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[a,[u,"Insignia"],[s,f]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[a,[u,"NextBook"],[s,f]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[u,"Voice"],a,[s,d]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[u,"LvTel"],a,[s,d]],[/android.+;\s(PH-1)\s/i],[a,[u,"Essential"],[s,d]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[a,[u,"Envizen"],[s,f]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[u,a,[s,f]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[a,[u,"MachSpeed"],[s,f]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[u,a,[s,f]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[a,[u,"Rotor"],[s,f]],[/android.+(KS(.+))\s+build/i],[a,[u,"Amazon"],[s,f]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[u,a,[s,f]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[s,h.lowerize],u,a],[/[\s\/\(](smart-?tv)[;\)]/i],[[s,p]],[/(android[\w\.\s\-]{0,9});.+build/i],[a,[u,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[l,[c,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[c,l],[/rv\:([\w\.]{1,9}).+(gecko)/i],[l,c]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[c,l],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[c,[l,b.str,v.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[c,"Windows"],[l,b.str,v.os.windows.version]],[/\((bb)(10);/i],[[c,"BlackBerry"],l],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[c,l],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[c,"Symbian"],l],[/\((series40);/i],[c],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[c,"Firefox OS"],l],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[c,l],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[c,"Chromium OS"],l],[/(sunos)\s?([\w\.\d]*)/i],[[c,"Solaris"],l],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[c,l],[/(haiku)\s(\w+)/i],[c,l],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[l,/_/g,"."],[c,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[c,"Mac OS"],[l,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[c,l]]},g=function e(t,n){if("object"==typeof t&&(n=t,t=void 0),!(this instanceof e))return new e(t,n).getResult();var r=t||(o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),i=n?h.extend(m,n):m;return this.getBrowser=function(){var e={name:void 0,version:void 0};return b.rgx.call(e,r,i.browser),e.major=h.major(e.version),e},this.getCPU=function(){var e={architecture:void 0};return b.rgx.call(e,r,i.cpu),e},this.getDevice=function(){var e={vendor:void 0,model:void 0,type:void 0};return b.rgx.call(e,r,i.device),e},this.getEngine=function(){var e={name:void 0,version:void 0};return b.rgx.call(e,r,i.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return b.rgx.call(e,r,i.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=e,this},this};g.VERSION="0.7.22",g.BROWSER={NAME:c,MAJOR:"major",VERSION:l},g.CPU={ARCHITECTURE:"architecture"},g.DEVICE={MODEL:a,VENDOR:u,TYPE:s,CONSOLE:"console",MOBILE:d,SMARTTV:p,TABLET:f,WEARABLE:"wearable",EMBEDDED:"embedded"},g.ENGINE={NAME:c,VERSION:l},g.OS={NAME:c,VERSION:l},void 0!==t?(void 0!==e&&e.exports&&(t=e.exports=g),t.UAParser=g):void 0===(r=function(){return g}.call(t,n,t,e))||(e.exports=r);var O=o&&(o.jQuery||o.Zepto);if(O&&!O.ua){var y=new g;O.ua=y.getResult(),O.ua.get=function(){return y.getUA()},O.ua.set=function(e){y.setUA(e);var t=y.getResult();for(var n in t)O.ua[n]=t[n]}}}("object"==typeof window?window:this)},function(e,t,n){"use strict";var r=n(87),o=/\./,i=/\|\|/,a=/\s+\-\s+/,c=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,s=/^(\d*)(.*)/;function u(e,t){var n=e.split(i);return n.length>1?n.some((function(e){return y.contains(e,t)})):function(e,t){var n=e.split(a);if(n.length>0&&n.length<=2||r(!1),1===n.length)return l(n[0],t);var o=n[0],i=n[1];return b(o)&&b(i)||r(!1),l(">="+o,t)&&l("<="+i,t)}(e=n[0].trim(),t)}function l(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(o),i=p(e),a=i.modifier,c=i.rangeComponents;switch(a){case"<":return d(r,c);case"<=":return-1===(n=O(r,c))||0===n;case">=":return f(r,c);case">":return function(e,t){return 1===O(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,i=parseInt(r[o],10);h(i)&&(r[o]=i+1+"");return f(e,n)&&d(e,r)}(r,c);default:return function(e,t){return 0===O(e,t)}(r,c)}}function d(e,t){return-1===O(e,t)}function f(e,t){var n=O(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 v(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function m(e,t){var n=e.match(s)[1],r=t.match(s)[1],o=parseInt(n,10),i=parseInt(r,10);return h(o)&&h(i)&&o!==i?g(o,i):g(e,t)}function g(e,t){return typeof e!=typeof t&&r(!1),e>t?1:e<t?-1:0}function O(e,t){for(var n=function(e,t){v(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return v(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=m(r[i],o[i]);if(a)return a}return 0}var y={contains:function(e,t){return u(e.trim(),t.trim())}};e.exports=y},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!e)return null;var o={};for(var i in e)r.call(e,i)&&(o[i]=t.call(n,e[i],i,e));return o}},function(e,t,n){"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},function(e,t,n){"use strict";(function(t){var r=n(948),o=n(493),i=n(628),a=n(87);function c(e,t){if(!e)return"[empty]";var n=function e(t,n){var r=void 0!==n?n(t):[];if(t.nodeType===Node.TEXT_NODE){var o=t.textContent.length;return document.createTextNode("[text "+o+(r.length?" | "+r.join(", "):"")+"]")}var i=t.cloneNode();1===i.nodeType&&r.length&&i.setAttribute("data-labels",r.join(", "));for(var a=t.childNodes,c=0;c<a.length;c++)i.appendChild(e(a[c],n));return i}(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(n instanceof Element||a(!1),n.outerHTML)}function s(e,t){for(var n=e;n;){if(n instanceof Element&&n.hasAttribute("contenteditable"))return c(n,t);n=n.parentNode}return"Could not find contentEditable parent of node"}function u(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function l(e,t,n,a){var c=i();if(e.extend&&o(c,t)){n>u(t)&&r.logSelectionStateFailure({anonymizedDom:s(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(a.toJS())});var l=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:l,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(a.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 i=document.createRange();n>u(t)&&r.logSelectionStateFailure({anonymizedDom:s(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(o.toJS())}),i.setStart(t,n),e.addRange(i)}e.exports=function(e,n,r,i,a){if(o(document.documentElement,n)){var c=t.getSelection(),s=e.getAnchorKey(),u=e.getAnchorOffset(),f=e.getFocusKey(),p=e.getFocusOffset(),h=e.getIsBackward();if(!c.extend&&h){var b=s,v=u;s=f,u=p,f=b,p=v,h=!1}var m=s===r&&i<=u&&a>=u,g=f===r&&i<=p&&a>=p;if(m&&g)return c.removeAllRanges(),d(c,n,u-i,e),void l(c,n,p-i,e);if(h){if(g&&(c.removeAllRanges(),d(c,n,p-i,e)),m){var O=c.focusNode,y=c.focusOffset;c.removeAllRanges(),d(c,n,u-i,e),l(c,O,y,e)}}else m&&(c.removeAllRanges(),d(c,n,u-i,e)),g&&l(c,n,p-i,e)}}}).call(this,n(109))},function(e,t,n){"use strict";e.exports={logSelectionStateFailure:function(){return null}}},function(e,t,n){"use strict";var r=n(950);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(952),o=n(953);function i(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 i(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return i(n.getPropertyValue(o(t)));if("display"===t)return"none"}return e.currentStyle?i("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[r(t)]):i(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(955);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(493);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 i(){return{width:window.innerWidth||r(),height:window.innerHeight||o()}}i.withoutScrollbars=function(){return{width:r(),height:o()}},e.exports=i},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;r<n;r++)(t=arguments[r])&&(e=(e?e+" ":"")+t);return e}},function(e,t,n){"use strict";var r=n(630),o=n(145),i=n(97),a=n(496),c=n(632),s=n(633),u=n(342),l=n(190);var d={onDragEnd:function(e){e.exitCurrentMode()},onDrop:function(e,t){var n=new r(t.nativeEvent.dataTransfer),d=e._latestEditorState,p=function(e,t){var n=null,r=null;if("function"==typeof document.caretRangeFromPoint){var o=document.caretRangeFromPoint(e.x,e.y);n=o.startContainer,r=o.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=l(n),r=l(r);var i=l(a(n));return s(t,i,r,i,r)}(t.nativeEvent,d);if(t.preventDefault(),e.exitCurrentMode(),null!=p){var h=n.getFiles();if(h.length>0){if(e.props.handleDroppedFiles&&u(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&&u(e.props.handleDrop(p,n,b))||(e._internalDrag?e.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return i.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 i.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(87);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<t;o++)n[o]=e[o];return n}(e):[e]}},function(e,t,n){"use strict";var r={onBeforeInput:n(964),onBlur:n(966),onCompositionStart:n(967),onCopy:n(968),onCut:n(969),onDragOver:n(970),onDragStart:n(971),onFocus:n(972),onInput:n(973),onKeyDown:n(974),onPaste:n(988),onSelect:n(993)};e.exports=r},function(e,t,n){"use strict";(function(t){var r=n(622),o=n(145),i=n(97),a=n(205),c=n(492),s=n(342),u=n(626),l=n(190),d=n(965),f=a.isBrowser("Firefox");function p(e,t,n,r){var a=o.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return i.push(e,a,"insert-characters")}e.exports=function(e,n){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var o=e._latestEditorState,a=n.data;if(a)if(e.props.handleBeforeInput&&s(e.props.handleBeforeInput(a,o)))n.preventDefault();else{var h=o.getSelection(),b=h.getStartOffset(),v=h.getEndOffset(),m=h.getAnchorKey();if(!h.isCollapsed())return n.preventDefault(),void(a===o.getCurrentContent().getPlainText().slice(b,v)?e.update(i.forceSelection(o,h.merge({focusOffset:v}))):e.update(p(o,a,o.getCurrentInlineStyle(),c(o.getCurrentContent(),o.getSelection()))));var g,O=p(o,a,o.getCurrentInlineStyle(),c(o.getCurrentContent(),o.getSelection())),y=!1;if(y||(y=u(e._latestCommittedEditorState)),!y){var j=t.getSelection();if(j.anchorNode&&j.anchorNode.nodeType===Node.TEXT_NODE){var E=j.anchorNode.parentNode;y="SPAN"===E.nodeName&&E.firstChild.nodeType===Node.TEXT_NODE&&-1!==E.firstChild.nodeValue.indexOf("\t")}}if(!y)y=r.getFingerprint(o.getBlockTree(m))!==r.getFingerprint(O.getBlockTree(m));if(y||(g=a,y=f&&("'"==g||"/"==g)),y||(y=l(O.getDirectionMap()).get(m)!==l(o.getDirectionMap()).get(m)),y)return n.preventDefault(),void e.update(O);O=i.set(O,{nativelyRenderedContent:O.getCurrentContent()}),e._pendingStateFromBeforeInput=O,d((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}}}).call(this,n(109))},function(e,t,n){"use strict";(function(t){n(724),e.exports=t.setImmediate}).call(this,n(109))},function(e,t,n){"use strict";(function(t){var r=n(97),o=n(493),i=n(628);e.exports=function(e,n){if(i()===document.body){var a=t.getSelection(),c=e.editor;1===a.rangeCount&&o(c,a.anchorNode)&&o(c,a.focusNode)&&a.removeAllRanges()}var s=e._latestEditorState,u=s.getSelection();if(u.getHasFocus()){var l=u.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(n),e.update(r.acceptSelection(s,l))}}}).call(this,n(109))},function(e,t,n){"use strict";var r=n(97);e.exports=function(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},function(e,t,n){"use strict";var r=n(634);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}},function(e,t,n){"use strict";var r=n(145),o=n(97),i=n(494),a=n(634),c=n(495);e.exports=function(e,t){var n=e._latestEditorState,s=n.getSelection(),u=t.target,l=void 0;if(s.isCollapsed())t.preventDefault();else{u instanceof Node&&(l=c(i.getScrollParent(u)));var d=a(n);e.setClipboard(d),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(l),e.exitCurrentMode(),e.update(function(e){var t=r.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return o.push(e,t,"remove-range")}(n))}),0)}}},function(e,t,n){"use strict";e.exports=function(e,t){e._internalDrag=!1,e.setMode("drag"),t.preventDefault()}},function(e,t,n){"use strict";e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},function(e,t,n){"use strict";var r=n(97),o=n(205);e.exports=function(e,t){var n=e._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),o.isBrowser("Chrome < 60.0.3081.0")?e.update(r.forceSelection(n,a)):e.update(r.acceptSelection(n,a))}}},function(e,t,n){"use strict";(function(t){var r=n(245),o=n(145),i=n(383),a=n(97),c=n(205),s=n(496),u=n(190),l=c.isEngine("Gecko");e.exports=function(e){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=t.getSelection(),c=n.anchorNode,d=n.isCollapsed,f=c.nodeType!==Node.TEXT_NODE,p=c.nodeType!==Node.TEXT_NODE&&c.nodeType!==Node.ELEMENT_NODE;if(r.draft_killswitch_allow_nontextnodes){if(f)return}else if(p)return;if(c.nodeType===Node.TEXT_NODE&&(null!==c.previousSibling||null!==c.nextSibling)){var h=c.parentNode;c.nodeValue=h.textContent;for(var b=h.firstChild;null!==b;b=b.nextSibling)b!==c&&h.removeChild(b)}var v=c.textContent,m=e._latestEditorState,g=u(s(c)),O=i.decode(g),y=O.blockKey,j=O.decoratorKey,E=O.leafKey,C=m.getBlockTree(y).getIn([j,"leaves",E]),w=C.start,T=C.end,_=m.getCurrentContent(),S=_.getBlockForKey(y),A=S.getText().slice(w,T);if(v.endsWith("\n\n")&&(v=v.slice(0,-1)),v!==A){var k,R,I,x,N=m.getSelection(),D=N.merge({anchorOffset:w,focusOffset:T,isBackward:!1}),P=S.getEntityAt(w),L=P&&_.getEntity(P),M="MUTABLE"===(L&&L.getMutability()),U=M?"spellcheck-change":"apply-entity",B=o.replaceText(_,D,v,S.getInlineStyleAt(w),M?S.getEntityAt(w):null);if(l)k=n.anchorOffset,R=n.focusOffset,x=(I=w+Math.min(k,R))+Math.abs(k-R),k=I,R=x;else{var z=v.length-A.length;I=N.getStartOffset(),x=N.getEndOffset(),k=d?x+z:I,R=x+z}var F=B.merge({selectionBefore:_.getSelectionAfter(),selectionAfter:N.merge({anchorOffset:k,focusOffset:R})});e.update(a.push(m,F,U))}}}).call(this,n(109))},function(e,t,n){"use strict";var r=n(145),o=n(97),i=n(497),a=n(491),c=n(975),s=n(205),u=n(342),l=n(976),d=n(978),f=n(980),p=n(981),h=n(982),b=n(983),v=n(984),m=n(985),g=n(986),O=n(987),y=i.isOptionKeyCommand,j=s.isBrowser("Chrome");e.exports=function(e,t){var n=t.which,i=e._latestEditorState;switch(n){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&u(e.props.handleReturn(t,i)))return;break;case a.ESC:return t.preventDefault(),void(e.props.onEscape&&e.props.onEscape(t));case a.TAB:return void(e.props.onTab&&e.props.onTab(t));case a.UP:return void(e.props.onUpArrow&&e.props.onUpArrow(t));case a.RIGHT:return void(e.props.onRightArrow&&e.props.onRightArrow(t));case a.DOWN:return void(e.props.onDownArrow&&e.props.onDownArrow(t));case a.LEFT:return void(e.props.onLeftArrow&&e.props.onLeftArrow(t));case a.SPACE:if(j&&y(t)){t.preventDefault();var s=r.replaceText(i.getCurrentContent(),i.getSelection()," ");return void e.update(o.push(i,s,"insert-characters"))}}var E=e.props.keyBindingFn(t);if(E)if("undo"!==E){if(t.preventDefault(),!e.props.handleKeyCommand||!u(e.props.handleKeyCommand(E,i))){var C=function(e,t){switch(e){case"redo":return o.redo(t);case"delete":return m(t);case"delete-word":return f(t);case"backspace":return v(t);case"backspace-word":return d(t);case"backspace-to-start-of-line":return l(t);case"split-block":return p(t);case"transpose-characters":return g(t);case"move-selection-to-start-of-block":return b(t);case"move-selection-to-end-of-block":return h(t);case"secondary-cut":return c.cut(t);case"secondary-paste":return c.paste(t);default:return t}}(E,i);C!==i&&e.update(C)}}else O(t,i,e.update)}},function(e,t,n){"use strict";var r=n(145),o=n(97),i=n(381),a=n(190),c=null,s={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),s=null;if(n.isCollapsed()){var u=n.getAnchorKey(),l=t.getBlockForKey(u).getLength();if(l===n.getAnchorOffset())return e;s=n.set("focusOffset",l)}else s=n;s=a(s),c=i(t,s);var d=r.removeRange(t,s,"forward");return d===t?e:o.push(e,d,"remove-range")},paste:function(e){if(!c)return e;var t=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),c);return o.push(e,t,"insert-fragment")}};e.exports=s},function(e,t,n){"use strict";(function(t){var r=n(97),o=n(977),i=n(636),a=n(498),c=n(343);e.exports=function(e){var n=c(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return a(e,1);var r=t.getSelection().getRangeAt(0);return r=o(r),i(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:r.push(e,n,"remove-range")}}).call(this,n(109))},function(e,t,n){"use strict";var r=n(267),o=n(635),i=n(87);function a(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var c=e[a];0!==c.width&&1!==c.width&&(n=Math.min(n,c.top),r=Math.min(r,c.bottom),o=Math.max(o,c.top),i=Math.max(i,c.bottom))}return o<=r&&o-n<t&&i-r<t}function c(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}e.exports=function(e){e.collapsed||i(!1);var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=document.createElement("div");n.style.fontFamily=t.fontFamily,n.style.fontSize=t.fontSize,n.style.fontStyle=t.fontStyle,n.style.fontWeight=t.fontWeight,n.style.lineHeight=t.lineHeight,n.style.position="absolute",n.textContent="M";var r=document.body;r||i(!1),r.appendChild(n);var o=n.getBoundingClientRect();return r.removeChild(n),o.height}(t),s=e.endContainer,u=e.endOffset;for(e.setStart(e.startContainer,0);a(o(e),n)&&(s=e.startContainer,u=e.startOffset,s.parentNode||i(!1),e.setStartBefore(s),1!==s.nodeType||"inline"===getComputedStyle(s).display););for(var l=s,d=u-1;;){for(var f=l.nodeValue,p=d;p>=0;p--)if(!(null!=f&&p>0&&r.isSurrogatePair(f,p-1))){if(e.setStart(l,p),!a(o(e),n))break;s=l,u=p}if(-1===p||0===l.childNodes.length)break;d=c(l=l.childNodes[p])}return e.setStart(s,u),e}},function(e,t,n){"use strict";var r=n(637),o=n(97),i=n(498),a=n(343);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return i(e,1);var o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(0,n),c=r.getBackward(a);return i(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(637),o=n(97),i=n(638),a=n(343);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(n),c=r.getForward(a);return i(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(145),o=n(97);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(97);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(97);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(97),o=n(267),i=n(498),a=n(343);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),c=n.getBlockForKey(r).getText()[a-1];return i(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(97),o=n(267),i=n(638),a=n(343);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),c=n.getBlockForKey(r).getText()[a];return i(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(145),o=n(97),i=n(381);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,c,s=t.getAnchorKey(),u=e.getCurrentContent(),l=u.getBlockForKey(s).getLength();if(l<=1)return e;n===l?(a=t.set("anchorOffset",n-1),c=t):c=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var d=i(u,a),f=r.removeRange(u,a,"backward"),p=f.getSelectionAfter(),h=p.getAnchorOffset()-1,b=p.merge({anchorOffset:h,focusOffset:h}),v=r.replaceWithFragment(f,b,d),m=o.push(e,v,"insert-fragment");return o.acceptSelection(m,c)}},function(e,t,n){"use strict";var r=n(97);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 i=o.getCurrentContent();n(r.set(o,{nativelyRenderedContent:i}))}}},function(e,t,n){"use strict";var r=n(340),o=n(165),i=n(630),a=n(145),c=n(989),s=n(97),u=n(641),l=n(492),d=n(632),f=n(342),p=n(992);function h(e,t,n){var r=a.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 i(t.clipboardData);if(!n.isRichText()){var b=n.getFiles(),v=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||v){var n=e._latestEditorState,i=p(t),d=o.create({style:n.getCurrentInlineStyle(),entity:l(n.getCurrentContent(),n.getSelection())}),f=u.getCurrentBlockType(n),h=c.processText(i,d,f),b=r.createFromArray(h),m=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),b);e.update(s.push(n,m,"insert-fragment"))}}))}}var m=[],g=n.getText(),O=n.getHTML(),y=e._latestEditorState;if(!e.props.handlePastedText||!f(e.props.handlePastedText(g,O,y))){if(g&&(m=p(g)),!e.props.stripPastedStyles){var j=e.getClipboard();if(n.isRichText()&&j){if(-1!==O.indexOf(e.getEditorKey())||1===m.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]}))}(m,j))return void e.update(h(e._latestEditorState,j));if(O){var E=c.processHTML(O,e.props.blockRenderMap);if(E){var C=E.contentBlocks,w=E.entityMap;if(C){var T=r.createFromArray(C);return void e.update(h(e._latestEditorState,T,w))}}}e.setClipboard(null)}if(m.length){var _=o.create({style:y.getCurrentInlineStyle(),entity:l(y.getCurrentContent(),y.getSelection())}),S=u.getCurrentBlockType(y),A=c.processText(m,_,S),k=r.createFromArray(A);e.update(h(e._latestEditorState,k))}}}},function(e,t,n){"use strict";var r=n(100)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=(n(165),n(266)),i=n(175),a=n(245),c=n(86),s=n(639),u=n(228),l=n(640),d=n(488),f=c.List,p=c.Repeat,h=a.draft_tree_data_support,b=h?i:o,v={processHTML:function(e,t){return s(e,l,t)},processText:function(e,t,n){return e.reduce((function(e,o,i){o=d(o);var a=u(),c={key:a,type:n,text:o,characterList:f(p(t,o.length))};if(h&&0!==i){var s=i-1,l=e[s]=e[s].merge({nextSibling:a});c=r({},c,{prevSibling:l.getKey()})}return e.push(new b(c)),e}),[])}};e.exports=v},function(e,t,n){"use strict";var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._uri=t}return e.prototype.toString=function(){return this._uri},e}();e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),c=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(c),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=/\r\n?|\n/g;e.exports=function(e){return e.split(r)}},function(e,t,n){"use strict";var r=n(97),o=n(46),i=n(994),a=n(87);e.exports=function(e){if(!e._blockSelectEvents&&e._latestEditorState===e.props.editorState){var t=e.props.editorState,n=o.findDOMNode(e.editorContainer);n||a(!1),n.firstChild instanceof HTMLElement||a(!1);var c=i(t,n.firstChild),s=c.selectionState;s!==t.getSelection()&&(t=c.needsRecovery?r.forceSelection(t,s):r.acceptSelection(t,s),e.update(t))}}},function(e,t,n){"use strict";(function(t){var r=n(636);e.exports=function(e,n){var o=t.getSelection();return 0===o.rangeCount?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,n,o.anchorNode,o.anchorOffset,o.focusNode,o.focusOffset)}}).call(this,n(109))},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 i=n(1),a=n(294),c=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.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},t.prototype.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=a({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return i.createElement("div",{className:t},i.createElement("div",{className:a("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},t}(i.Component);e.exports=c},function(e,t,n){"use strict";var r=n(100)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(266),i=n(175),a=n(643),c=n(997),s=n(998),u=n(87),l=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:s(e),entityRanges:c(e,t),data:e.getData().toObject()}},d=function(e,t){var n=t.entityMap,c=[],s={},d={},f=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=a.stringify(r);d[o]||(d[o]=r,n[o]=""+f,f++)})),function(e,t,n,a){if(e instanceof o)n.push(l(e,t));else{e instanceof i||u(!1);var c=e.getParentKey(),s=a[e.getKey()]=r({},l(e,t),{children:[]});c?a[c].children.push(s):n.push(s)}}(e,n,c,s)})),{blocks:c,entityMap:n}};e.exports=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(a.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t=d(e,t))}},function(e,t,n){"use strict";var r=n(643),o=n(267).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(i,a){var c=e.getText(),s=e.getEntityAt(i);n.push({offset:o(c.slice(0,i)),length:o(c.slice(i,a)),key:Number(t[r.stringify(s)])})})),n}},function(e,t,n){"use strict";var r=n(267),o=n(341),i=function(e,t){return e===t},a=function(e){return!!e},c=[];e.exports=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var c=[],s=t.map((function(e){return e.has(n)})).toList();return o(s,i,a,(function(t,o){var i=e.getText();c.push({offset:r.strlen(i.slice(0,t)),length:r.strlen(i.slice(t,o)),style:n})})),c}(e,t,n)}));return Array.prototype.concat.apply(c,n.toJS())}},function(e,t,n){"use strict";var r=n(100)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(266),i=n(175),a=n(487),c=n(382),s=n(245),u=n(1e3),l=n(86),d=n(293),f=n(1001),p=n(1002),h=n(1003),b=n(228),v=n(87),m=s.draft_tree_data_support,g=l.List,O=l.Map,y=l.OrderedMap,j=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||b(),data:O(o),characterList:E(e,t)}},E=function(e,t){var n=e.text,o=e.entityRanges,i=e.inlineStyleRanges,a=o||[];return f(h(n,i||[]),p(n,a.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return r({},e,{key:t[e.key]})}))))},C=function(e){return r({},e,{key:e.key||b()})},w=function(e,t,n){var o=t.map((function(e){return r({},e,{parentRef:n})}));return e.concat(o.reverse())},T=function(e,t){var n=Array.isArray(e.blocks[0].children),a=m&&!n?u.fromRawStateToRawTreeState(e).blocks:e.blocks;return m?function(e,t){return e.map(C).reduce((function(n,o,a){Array.isArray(o.children)||v(!1);var c=o.children.map(C),s=new i(r({},j(o,t),{prevSibling:0===a?null:e[a-1].key,nextSibling:a===e.length-1?null:e[a+1].key,children:g(c.map((function(e){return e.key})))}));n=n.set(s.getKey(),s);for(var u=w([],c,s);u.length>0;){var l=u.pop(),d=l.parentRef,f=d.getChildKeys(),p=f.indexOf(l.key),h=Array.isArray(l.children);if(!h){h||v(!1);break}var b=l.children.map(C),m=new i(r({},j(l,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(m.getKey(),m),u=w(u,b,m)}return n}),y())}(a,t):function(e,t){return y(e.map((function(e){var n=new o(j(e,t));return[n.getKey(),n]})))}(n?u.fromRawTreeStateToRawState(e).blocks:a,t)};e.exports=function(e){Array.isArray(e.blocks)||v(!1);var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=c.__create(o,i,a||{})})),n}(e),n=T(e,t),r=n.isEmpty()?new d:d.createEmpty(n.first().getKey());return new a({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})}},function(e,t,n){"use strict";var r=n(100)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(87),i=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},a={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||o(!1),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var i=r.children;Array.isArray(i)||o(!1),n=n.concat([].concat(i.reverse()))}}(t,(function(e){var t=r({},e);i(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?r({},t,{depth:(e.depth||0)+1}):t})))}(e)),delete t.children,n.push(t)})),e.blocks=n,r({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t={},n=[];return e.blocks.forEach((function(e){var a=i(e),c=e.depth||0,s=r({},e,{children:[]});if(!a)return t={},void n.push(s);if(t[c]=s,c>0){var u=t[c-1];return u||o(!1),void u.children.push(s)}n.push(s)})),r({},e,{blocks:n})}};e.exports=a},function(e,t,n){"use strict";var r=n(165),o=n(86).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(267).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,i=o+r(e,t.offset,t.length).length,a=o;a<i;a++)n[a]=t.key})),n}},function(e,t,n){"use strict";var r=n(86).OrderedSet,o=n(267).substr,i=r();e.exports=function(e,t){var n=Array(e.length).fill(i);return t&&t.forEach((function(t){for(var r=o(e,0,t.offset).length,i=r+o(e,t.offset,t.length).length;r<i;)n[r]=n[r].add(t.style),r++})),n}},function(e,t,n){"use strict";var r=n(1005);e.exports=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),o=r(n),i=o.top,a=o.right,c=o.bottom,s=o.left;return 0===i&&0===a&&0===c&&0===s?null:o}},function(e,t,n){"use strict";var r=n(635);e.exports=function(e){var t=r(e),n=0,o=0,i=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var c=t[1];n=c.top,o=c.right,i=c.bottom,a=c.left}else{var s=t[0];n=s.top,o=s.right,i=s.bottom,a=s.left}for(var u=1;u<t.length;u++){var l=t[u];0!==l.height&&0!==l.width&&(n=Math.min(n,l.top),o=Math.max(o,l.right),i=Math.max(i,l.bottom),a=Math.min(a,l.left))}}return{top:n,right:o,bottom:i,left:a,width:o-a,height:i-n}}},function(e,t,n){var r=n(1007),o=n(334),i=n(456);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t<n?1:-1:i(a),r(t,n,a,e)}}},function(e,t){var n=Math.ceil,r=Math.max;e.exports=function(e,t,o,i){for(var a=-1,c=r(n((t-e)/(o||1)),0),s=Array(c);c--;)s[i?c:++a]=e,e+=o;return s}},function(e,t,n){var r=n(1009),o=n(583),i=n(1010),a=n(499),c=n(644),s=n(1013),u=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 l=r(t,u(e/c(t)));return a(t)?i(s(l),0,e).join(""):l.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(475);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(595)("length");e.exports=r},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+r+"|"+o+")"+"?",u="[\\ufe0e\\ufe0f]?"+s+("(?:\\u200d(?:"+[i,a,c].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*"),l="(?:"+[i+r+"?",r,a,c,n].join("|")+")",d=RegExp(o+"(?="+o+")|"+l+u,"g");e.exports=function(e){for(var t=d.lastIndex=0;d.test(e);)++t;return t}},function(e,t,n){var r=n(1014),o=n(499),i=n(1015);e.exports=function(e){return o(e)?i(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]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+r+"|"+o+")"+"?",u="[\\ufe0e\\ufe0f]?"+s+("(?:\\u200d(?:"+[i,a,c].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*"),l="(?:"+[i+r+"?",r,a,c,n].join("|")+")",d=RegExp(o+"(?="+o+")|"+l+u,"g");e.exports=function(e){return e.match(d)||[]}},function(e,t,n){var r=n(288),o=n(336),i=n(325),a=n(1017),c=n(1020),s=n(287),u=n(1021),l=n(376),d=n(135);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})):[l];var f=-1;t=r(t,s(i));var p=a(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 u(e,t,n)}))}},function(e,t,n){var r=n(1018),o=n(243);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}},function(e,t,n){var r=n(602),o=n(1019)(r);e.exports=o},function(e,t,n){var r=n(243);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,c=Object(n);(t?a--:++a<i)&&!1!==o(c[a],a,c););return n}}},function(e,t){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},function(e,t,n){var r=n(1022);e.exports=function(e,t,n){for(var o=-1,i=e.criteria,a=t.criteria,c=i.length,s=n.length;++o<c;){var u=r(i[o],a[o]);if(u)return o>=s?u:u*("desc"==n[o]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(326);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e==e,a=r(e),c=void 0!==t,s=null===t,u=t==t,l=r(t);if(!s&&!l&&!a&&e>t||a&&c&&u&&!s&&!l||o&&c&&u||!n&&u||!i)return 1;if(!o&&!a&&!l&&e<t||l&&n&&i&&!o&&!a||s&&n&&i||!c&&i||!u)return-1}return 0}},function(e,t,n){"use strict";var r=n(39);Object.defineProperty(t,"__esModule",{value:!0}),t.stripHTML=t.truncateHTML=t.getBlockType=t.parseTag=t.parseTagGroup=t.parseAttrs=t.TAG_RE=t.TAG_RE_TEMPLATE=void 0;var o=["img","br"],i=/([\w|-]+)(?:="([^"]*)")?/;function a(e){var t={};if((e=e.trim()).length)for(var n,o=new RegExp(i.source,"g");n=o.exec(e);){var a=n.slice(1),c=r(a,2),s=c[0],u=c[1];t[s]=u}return t}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r(e,5),i=n[0],c=n[1],s=n[2],u=n[3],l=n[4],d="open";"/"===c?d="close":(o.includes(s)||"/"===l)&&(d="self-close");var f=t.parseAttrs?a(u):u;return{tagHTML:i,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 u(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 l(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=a,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,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.endsWith,d=void 0===a?"…":a,f=i.placeholders,p=void 0===f?{}:f,h=[],b=[],v=[],m={},g={},O=new RegExp(t.TAG_RE.source,"g"),y=0,j=0,E=0,C=0,w=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];h.push(e),t||(y+=e.length),j+=e.length};n=O.exec(e);){var T=c(n,{parseAttrs:!0}),_=T.tagHTML,S=T.tagType,A=T.tagName,k="close"===S&&o.includes(A)?"invalid":s("close"!==S?T:b[b.length-1]),R=p[k]?{type:"replace",content:p[k]}:u(k);"close"!==S&&(m[k]=(m[k]||0)+1);var I=e.slice(j,n.index),x=I.length;if(y+x>=r&&0===E&&0===C){for(w(I.slice(0,r-y));v.length;){var N=v.pop();h.push("</".concat(N.tagName,">"))}break}0===E&&w(I,0!==C),"invalid"!==k&&("open"===S?b.push(T):"close"===S&&b.pop(),R?("replace"===R.type&&(0===E&&"close"!==S&&h.push(R.content),"open"===S?E++:"close"===S&&E--),0===E&&"replace-self"===R.type&&h.push(R.content),0===E&&"hide"===R.type&&("open"===S?C++:"close"===S&&C--,h.push(_))):0===E&&(h.push(_),"open"===S?v.push(T):"close"===S&&v.pop())),"video-box"!==k||g.type||"string"==typeof T.attrs||(g.type="video",g.url=T.attrs["data-poster"],g.id=T.attrs["data-lens-id"]),j=O.lastIndex}if(y<r){var D=e.slice(j).slice(0,r-y);w(D)}var P=y>r||y===r&&j<e.length||l(m);return{isTruncated:P,thumbnailInfo:g,content:"".concat(h.join("").trim().replace(/\s{2,}/g," ")).concat(P?d:"")}},t.stripHTML=function(e){var t=document.createElement("DIV");return t.innerHTML=e,t.textContent||t.innerText||""}},function(e,t,n){"use strict";var r=n(1),o=n(617),i="element",a="text",c="empty",s="fragment",u=function(e,t){return function e(n){var o,u=n.node;return n.type=(o=u,r.isValidElement(o)?i:function(e){return"string"==typeof e||"number"==typeof e}(o)?a:function(e){return null==e||"boolean"==typeof e}(o)?c:Array.isArray(o)?s:void 0),n.type===i?n.children=r.Children.map(u.props.children,(function(t){return e({node:t,parent:n})})):n.type===s&&(n.children=r.Children.map(u,(function(t){return e({node:t,parent:n})}))),t(n),n}({node:e,parent:null})},l=function e(t,n){return[t].concat(null==(r=n(t))?[]:function(t){return e(t,n)}(r));var r},d=function(e){var t=!1;return e.reduce((function(e,n){if(e&&n&&o(String(e.node),String(n.node))){var r=(c=n,s=l(e,(function(e){return e.parent})),u=l(c,(function(e){return e.parent})),d=s.findIndex((function(e){return u.includes(e)})),[s[d],s[d-1]]);a=r[1],(i=r[0]).children.splice(i.children.indexOf(a)+1,0,{node:" "}),t=!0}var i,a,c,s,u,d;return n})),t},f=function(e){if(!e)return null;var t=[],n=u(e,(function(e){e.type===a&&""!==e.node&&t.push(e)}));return t.length&&d(t)?function e(t){return Array.isArray(t.children)?t.type===s?r.Children.map(t.children.map(e),(function(e){return e})):r.createElement(t.node.type,t.node.props,r.Children.map(t.children.map(e),(function(e){return e}))):t.node}(n):e},p=function(e){var t=e.component,n=e.children;return r.createElement(t,{children:f(n)})};p.defaultProps={component:r.Fragment||"span"},t.CJKSpace=p},function(e,t,n){var r=n(16);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},function(e,t,n){"use strict";n.r(t);var r,o=n(0),i=n(15),a=(n(735),n(1)),c=n.n(a),s=n(667),u=n.n(s),l=n(408),d=n.n(l),f=n(409),p=n(42),h=n(501),b=n(668),v=n.n(b),m=n(669),g=n.n(m),O=(n(670),n(671)),y=n.n(O),j=n(64),E=n.n(j),C=n(40),w=n.n(C),T=n(176),_=n(104),S=n(50),A=n.n(S),k=n(76),R=n(94),I=n.n(R),x={},N=new Promise((function(e){return r=e})),D=function(){return new Promise(requestAnimationFrame)},P=function(e){try{return e()}catch(e){}},L=function(e){return P((function(){return localStorage.setItem("growth-chain",JSON.stringify(e))}))},M=I()(Object(k.a)(A.a.mark((function e(){var t,n,r,o,i,a,c;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N;case 2:if(t=e.sent,n=t.userId){e.next=6;break}return e.abrupt("return",null);case 6:if(r=P((function(){return JSON.parse(localStorage.getItem("growth-chain"))})),o=new Date,r&&r.userId===n&&!(o>new Date(r.expiresAt))){e.next=17;break}return e.next=11,fetch("".concat("https://www.zhihu.com","/api/v4/me/guides"),{credentials:"include"}).then((function(e){return e.json()}));case 11:return i=e.sent,(a=new Date(o)).setDate(o.getDate()+1),L(c={userId:n,data:i,expiresAt:a}),e.abrupt("return",c);case 17:return e.abrupt("return",r);case 18:case"end":return e.stop()}}),e)})))),U={config:function(e){r(Object.assign(x,e))},markAsShown:function(){var e=Object(k.a)(A.a.mark((function e(t){var n;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat("https://www.zhihu.com","/api/v4/me/operation_guides/").concat(t.operation_guide_id_str),{method:"DELETE",credentials:"include"});case 2:return e.next=4,M();case 4:(n=e.sent)&&(n.data.actions=n.data.actions.filter((function(e){return e!==t})),L(n));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),getActionsByNames:function(){var e=Object(k.a)(A.a.mark((function e(t){var n;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M();case 2:return n=e.sent,e.next=5,D();case 5:if(!n){e.next=7;break}return e.abrupt("return",n.data.actions.filter((function(e){return t.includes(e.guide_name)})));case 7:return e.abrupt("return",[]);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),getActionsByPage:function(){var e=Object(k.a)(A.a.mark((function e(t){var n;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M();case 2:return n=e.sent,e.next=5,D();case 5:if(!n){e.next=7;break}return e.abrupt("return",n.data.actions.filter((function(e){return e.show_page===t})));case 7:return e.abrupt("return",[]);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},B=n(37),z=n(38),F=function(){return null};var G=n(19),V=n(46),H=n.n(V),q=n(12),K=n(36),W=n(71),Y=function(){return null};function Q(e){return e?fetch(e,{mode:"no-cors"}).catch(Y):Promise.reject(new Error("request but no url"))}function Z(e){q.a.config({base:{ab:{experiment:d.a.getAbExperiments(e.config,e.triggers)}}})}var J=function(e){if(Object(W.isBrowser)()){var t=e.routes[e.routes.length-1];t.zaNotTrackPageShow||q.a.trackPageShow({id:t.zaPageShowId})}},X=function(e,t){var n=t.routes[t.routes.length-1];n.zaNotTrackPageShow||q.a.trackPageShow({id:n.zaPageShowId})},$=n(21),ee=n(500),te=n.n(ee),ne=n(502),re=n.n(ne),oe=n(151),ie=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")};function ae(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(t,n).catch((function(e){throw e.fetchOptions=n,e})).then((function(e){return n.responseProcessor?n.responseProcessor(e):ie(e)?e.json().then((function(t){return{json:t,res:e}})):e.text().then((function(t){return{text:t,res:e}}))})).then((function(e){var t=e.json,r=e.text,o=e.res,i=e.payload,a=Object($.camelizeKeys)(t),c=a||r||i,s=t||r||i,u=a&&a.code;if(o.status>=300||u&&!n.ignoreCode){var l,d,f=new re.a(o,n);throw f.payload=null!==(l=null===(d=c)||void 0===d?void 0:d.error)&&void 0!==l?l:c,f.res=o,f}return a&&Array.isArray(a)&&(c={count:Number(o.headers.get("x-result-count")),data:a},s=Object.assign({},c,{data:t})),Object.assign(o,{res:o,payload:c,payloadOrigin:s})}))}}function ce(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=te()(fetch,e);return function(e,r){return e=e.replace("zhuanlan.zhihu.com/api/api","zhuanlan.zhihu.com/api"),!Object(oe.isAbsoluteUrl)(e)&&t&&(e="".concat(/zhihu.com$/.test(t)?"":"http:","//").concat(t).concat(e)),n(e,r)}}var se=n(60),ue=n.n(se),le=n(28),de=Object.values(le.y);function fe(e){var t=e.payload,n=e.res,r=t||{},o=r.code,i=r.message,a=n&&n.status;if(401===a&&100===o){var c=w.a.get("UNAUTHORIZED_RELOAD");(!c||Date.now()-c.time>36e4)&&(w.a.set("UNAUTHORIZED_RELOAD",{time:Date.now()}),location.reload())}if(403===a&&de.includes(o)){var s=Object.keys(le.y).find((function(e){return le.y[e]===o}));location.href="/account/unhuman?".concat(ue.a.stringify({type:s,message:i,next:location.href}))}throw e}var pe=n(672),he=n.n(pe),be=n(673),ve=n.n(be),me={skipAutoSign:function(e){return!1},captureException:function(e,t){var n;null===(n=window.Raven)||void 0===n||n.captureException(e,{fingerprint:["ZsAutoSignature"],extra:t})}},ge=function(e){var t=e.ua,n=e.authInfo,r=e.passVars,o=e.xUDId;return t.ZhihuHybrid||t.Zhihu?he()({userAgent:t,authInfo:n,xUDId:o,xAppVersion:null==r?void 0:r["x-app-version"],xZst81:null==r?void 0:r["x-zst-81"]},me):ve()({},me)},Oe=n(230),ye=n.n(Oe);function je(e){var t=e.protocol,n=e.host;return[t?t.replace(":",""):"",n?n.replace(/\.|:/g,"-"):""].join("-")}function Ee(e){return e.replace(/(members|people|roundtables?)\/(\w+)/g,"$1").replace(/(\/appview|\/api|\/v4|\/\d+|-|\w{32})/g,"").substring(1).replace(/\//g,"-")||"Unknown"}function Ce(e,t){var n,r=t.url,o=t.options,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.namespace,c=void 0===a?"Unknown":a,s=i.entryName,u=void 0===s?"FetchErrorV2":s,l=o||{},d=l.method,f=void 0===d?"GET":d,p=l.headers,h=p?Object.keys(p).length:0,b=location,v=b.protocol,m=b.host,g=je({protocol:v,host:m}),O=ye()(r),y=Ee(O.pathname),j=O.host!==m||O.protocol!==v;if(j){var C="CrossOrigin",w=[c,u,C,g,f,je(O),"H_".concat(h),y,"count"].join(".");E.a.increment({name:w,options:{version:"all"}}),e.name="FetchError",null===(n=window.Raven)||void 0===n||n.captureException(e,{fingerprint:["FetchError",C],level:"warning",extra:{local:location.href,remote:r,method:f,headers:p}})}else{var T=[c,u,"SameOriginV1",g,f,y,"count"].join(".");E.a.increment({name:T,options:{version:"all"}})}}function we(e){var t=e.namespace;return function(e){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(n,r).catch((function(e){throw/--(mr|box)/.test(location.host)||/--(mr|box)/.test(n)||Ce(e,{url:n,options:r},{namespace:t}),e}))}}}var Te=I()((function(){var e={xZst81:void 0};try{window.addEventListener("wdfs1",(function(t){var n;e.xZst81=null==t||null===(n=t.detail)||void 0===n?void 0:n.xzst81})),n.e(20).then(n.t.bind(null,1345,7)).then((function(t){var n=t.wdfs1;e.xZst81=n()}))}catch(e){var t;null===(t=window.Raven)||void 0===t||t.captureException(e,{fingerprint:["zswsdid-sdk"],level:"warning"})}return e})),_e=n(32);var Se=n(72);var Ae=n(63),ke=n.n(Ae),Re=n(55),Ie=n.n(Re),xe=function(e){return function(e){return e&&e.reduce((function(e,t){return Object.assign({},e,Ie()({},t.name,Math.round(t.startTime)))}),{})}(function(e){var t=e&&e.getEntriesByType&&e.getEntriesByType("paint");return t&&t.length>0?t:null}(e))},Ne=function(e){e(Object.assign({},function(){if(window.performance&&window.performance.timing&&window.performance.timing.navigationStart){var e=window.performance.timing.navigationStart;return{x_app_inited:Math.round(Date.now()-e)}}}(),function(){if("number"==typeof window.FIRST_ANIMATION_FRAME&&window.performance&&window.performance.timing&&window.performance.timing.navigationStart)return{x_first_animation_frame:Math.round(window.FIRST_ANIMATION_FRAME-window.performance.timing.navigationStart)}}(),xe(window.performance))),function(e){"undefined"!=typeof PerformanceObserver&&"undefined"!=typeof PerformancePaintTiming&&new PerformanceObserver((function(t){return e(xe(t))})).observe({entryTypes:["paint"]})}(e)},De=n(224),Pe=n.n(De),Le=["click","scroll"],Me=function(e){return Math.floor(e/1e3)},Ue=function(e){var t=e.threshold,n=e.report;if(window.performance&&window.performance.now){var r=void 0,o=function(e){var o=function(e){var t=e.timeStamp,n=window.performance.timing.navigationStart;return t>=n?t-n:t}(e);setTimeout((function(){if(performance.now()-o>=t){var i={startTime:Me(o),finishTime:Me(performance.now()),eventType:e.type};if(c=r,(a=i)&&c&&(a.finishTime===c.finishTime||a.startTime===c.startTime)&&a.eventType===c.eventType)return;r=i,n("inputDelay",{entry:i})}var a,c}))},i=!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t)}catch(e){}return e}()||{capture:!0,passive:!0};Le.forEach((function(e){document.addEventListener(e,o,i)}))}},Be={threshold:1e3},ze=function(e){Pe()("function"==typeof e.report,"report callback is not a function");var t,n,r,o=Object.assign({},Be,e);if(window.PerformanceLongTaskTiming)return n=(t=o).threshold,r=t.report,void(window.PerformanceObserver&&new window.PerformanceObserver((function(e){e.getEntries().filter((function(e){return e.duration>=n})).forEach((function(){r("longtask")}))})).observe({entryTypes:["longtask"]}));Ue(o)};"\n if (window.requestAnimationFrame) {\n window.requestAnimationFrame(function() {\n window.FIRST_ANIMATION_FRAME = Date.now();\n });\n }\n".replace(/\n/g,"").trim();var Fe,Ge,Ve,He,qe=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v1-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},Ke=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},We=function(e,t){var n=function n(r){"pagehide"!==r.type&&"hidden"!==document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Ye=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Qe="function"==typeof WeakSet?new WeakSet:new Set,Ze=function(e,t,n){var r;return function(){t.value>=0&&(n||Qe.has(t)||"hidden"===document.visibilityState)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},Je=-1,Xe=function(){return"hidden"===document.visibilityState?0:1/0},$e=function(){We((function(e){var t=e.timeStamp;Je=t}),!0)},et=function(){return Je<0&&(Je=Xe(),$e(),Ye((function(){setTimeout((function(){Je=Xe(),$e()}),0)}))),{get timeStamp(){return Je}}},tt={passive:!0,capture:!0},nt=new Date,rt=function(e,t){Fe||(Fe=t,Ge=e,Ve=new Date,at(removeEventListener),ot())},ot=function(){if(Ge>=0&&Ge<Ve-nt){var e={entryType:"first-input",name:Fe.type,target:Fe.target,cancelable:Fe.cancelable,startTime:Fe.timeStamp,processingStart:Fe.timeStamp+Ge};He.forEach((function(t){t(e)})),He=[]}},it=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){rt(e,t),o()},r=function(){o()},o=function(){removeEventListener("pointerup",n,tt),removeEventListener("pointercancel",r,tt)};addEventListener("pointerup",n,tt),addEventListener("pointercancel",r,tt)}(t,e):rt(t,e)}},at=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,it,tt)}))},ct=function(e){var t,n,r;!function(e,t){var n,r=qe("CLS",0),o=function(e){e.hadRecentInput||(r.value+=e.value,r.entries.push(e),n())},i=Ke("layout-shift",o);i&&(n=Ze(e,r,t),We((function(){i.takeRecords().map(o),n()})),Ye((function(){r=qe("CLS",0),n=Ze(e,r,t)})))}(e),function(e,t){var n,r=et(),o=qe("FID"),i=function(e){e.startTime<r.timeStamp&&(o.value=e.processingStart-e.startTime,o.entries.push(e),Qe.add(o),n())},a=Ke("first-input",i);n=Ze(e,o,t),a&&We((function(){a.takeRecords().map(i),a.disconnect()}),!0),a&&Ye((function(){var r;o=qe("FID"),n=Ze(e,o,t),He=[],Ge=-1,Fe=null,at(addEventListener),r=i,He.push(r),ot()}))}(e),function(e,t){var n,r=et(),o=qe("LCP"),i=function(e){var t=e.startTime;t<r.timeStamp&&(o.value=t,o.entries.push(e)),n()},a=Ke("largest-contentful-paint",i);if(a){n=Ze(e,o,t);var c=function(){Qe.has(o)||(a.takeRecords().map(i),a.disconnect(),Qe.add(o),n())};["keydown","click"].forEach((function(e){addEventListener(e,c,{once:!0,capture:!0})})),We(c,!0),Ye((function(r){o=qe("LCP"),n=Ze(e,o,t),requestAnimationFrame((function(){requestAnimationFrame((function(){o.value=performance.now()-r.timeStamp,Qe.add(o),n()}))}))}))}}(e),function(e,t){var n,r=et(),o=qe("FCP"),i=Ke("paint",(function(e){"first-contentful-paint"===e.name&&(i&&i.disconnect(),e.startTime<r.timeStamp&&(o.value=e.startTime,o.entries.push(e),Qe.add(o),n()))}));i&&(n=Ze(e,o,t),Ye((function(r){o=qe("FCP"),n=Ze(e,o,t),requestAnimationFrame((function(){requestAnimationFrame((function(){o.value=performance.now()-r.timeStamp,Qe.add(o),n()}))}))})))}(e),t=e,r=qe("TTFB"),n=function(){try{var e=performance.getEntriesByType("navigation")[0]||function(){var e=performance.timing,t={entryType:"navigation",startTime:0};for(var n in e)"navigationStart"!==n&&"toJSON"!==n&&(t[n]=Math.max(e[n]-e.navigationStart,0));return t}();r.value=r.delta=e.responseStart,r.entries=[e],t(r)}catch(e){}},"complete"===document.readyState?setTimeout(n,0):addEventListener("pageshow",n)},st=n(45);function ut(e){return new Promise((function(t,n){Object(st.match)(e,(function(e,r,o){e?n(e):t({redirectLocation:r,renderProps:o})}))}))}function lt(e){return"/"===e?"Index":Object($.pascalize)(e.replace(/\/|:|(\/:)/g,"_")).replace(/Id|AnswerId|UrlToken/g,"")}function dt(e,t){return ft.apply(this,arguments)}function ft(){return(ft=Object(k.a)(A.a.mark((function e(t,n){var r,o,i,a;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&"string"==typeof n){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,ut({routes:t,location:n});case 4:if(r=e.sent){e.next=7;break}return e.abrupt("return");case 7:return o=r.renderProps.routes,i=o.map((function(e){var t=e.path;return t&&"/"!==t[0]&&(t="/"+t),t||""})),a=i.join(""),e.abrupt("return",lt(a));case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};window.Raven&&window.Raven.captureException&&window.Raven.captureException(new Error("WebVitals: ".concat(e)),{extra:t})}var ht=function(e){e&&ct((function(t){var n=t||{},r=n.value,o=n.name;isNaN(r)||(E.a.timing({name:"WebVitals.".concat(e,".").concat(o),options:{version:"all"}},r),r>=5e3&&pt("".concat(o," value >= 5000"),{value:r}),0===r&&pt("".concat(o," value === 0"),{value:r}))}))};function bt(){return(bt=Object(k.a)(A.a.mark((function e(t){return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.t0=ht,e.next=6,dt(t,location.pathname);case 6:e.t1=e.sent,(0,e.t0)(e.t1),e.next=13;break;case 10:e.prev=10,e.t2=e.catch(2),pt("reportWebVitalsPerformance() err",{err:e.t2});case 13:case"end":return e.stop()}}),e,null,[[2,10]])})))).apply(this,arguments)}function vt(e){var t=e.createStore,n=e.onRequestRender,r=e.routes;document.addEventListener("DOMContentLoaded",(function(){window.Raven||(window.Raven={captureException:F,captureMessage:F,captureBreadcrumb:F});var e=JSON.parse(document.getElementById("js-initialData").textContent);!function(e){bt.apply(this,arguments)}(r);var o,c,s,l,b,m=e.initialState,O=e.subAppName,j=e.fetchHost&&(/\.test$/.test(window.location.host)?e.fetchHost.replace(/test/,"dev"):e.fetchHost),C=Object(z.e)(m),S=m.env,A=S.vars.passThroughHeaders,k=Boolean(S.userAgent.ZhihuHybrid||S.userAgent.Zhihu),R=k?{}:Te(),I=[!1,d.a.headers({config:S.ab.config,onTrigger:function(e){var t=N;t.dispatch(Object(f.updateAb)({triggers:e})),Z(t.getState().env.ab)}}),v()(),g()(),Object(h.xsrf)(),(b=A,function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.allowPassThroughHeaders,o=void 0!==r&&r,i=Object(_e.a)(n,["allowPassThroughHeaders"]);return e(t,Object.assign({},i,{headers:o?Object.assign({},b,i.headers):i.headers}))}}),!k&&(l=R,function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object(Se.default)({},n);return e(t,Object.assign({},r,{headers:Object.assign({},r.headers,l.xZst81&&{"x-zst-81":l.xZst81})}))}}),ge({ua:S.userAgent,authInfo:{id:m.currentUser},xUDId:S.xUDId,passVars:A}),(s=S.xTrafficFreeOrigin,function(e){return s?function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(t,Object.assign({},n,{headers:Object.assign({},n.headers,{"x-traffic-free":s})}))}:e}),(o=null,c=fe,function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(t,n).then(o,c)}}),ae,we({namespace:O})].filter(Boolean),x=ce(I,j),N=t(m,{http:x});N.dispatch(Object(z.n)(navigator.userAgent)),!1===w.a.get(le.t)&&N.dispatch(Object(z.l)(!1)),"production"===S.trafficSource&&u()(a,(function(e,t){return window.Raven.captureException(e,{extra:t}),null})),Z(S.ab),y.a.install({appName:"main"===O?"heifetz":"heifetz-".concat(O),timingSampleRate:.001});var D=document.getElementById("root");n({store:N,http:x,container:D}),Object(G.d)(ce([function(e){return function(){return e.apply(void 0,arguments).then((function(e){var t=e.payload,n=void 0===t?{}:t;return n.data&&!n.paging?n.data:n}))}}].concat(Object(i.a)(I)),j));var P=Object(B.b)(N.getState()),L=Object(z.m)(N.getState());L.Wechat&&(E.a.increment("WechatSDK.config.intention.count"),Object(_.d)().catch((function(e){throw E.a.increment("WechatSDK.config.fail.count"),e}))),L.JDMiniProgram&&Object(T.loadScript)("https://beta-mini-app-static.jd.com/apps/jssdktest/js/jssdk.js"),function(e,t){var n=t.ZhihuHybrid,r={userId:null==e?void 0:e.uid,memberHashId:null==e?void 0:e.id,userType:{people:"People",organization:"Org"}[null==e?void 0:e.userType],orgStatus:{normal:"Normal",forbidden:"Forbidden",reject:"Reject",audit:"Audit",register:"Register"}[null==e?void 0:e.orgStatus],onBeforeSend:function(e){return!n||(p.a.ready().then((function(){p.a.dispatch("base/trackZA",{log:e.toBase64()})})),!1)}},o=Object.assign({},r,{sdkVersion:"2.32.0",normalizeElement:function(e){return e instanceof a.Component?Object(V.findDOMNode)(e):e},shouldAutoTrackPageShow:!1});n||(o.pageProfile="zhihu-web");var i=Object.assign({},r);!function(e){if(t.ZhihuHybrid){var n=/\b(from=home_tab|in_app_home_tab=|position=tab)\b/.test(location.search);if(t.Android&&n)var r=p.a.listen("base/viewDidAppear",(function(){r(),e()}));else p.a.onceViewAppeared().finally(e)}else e()}((function(){q.a.init(o).then((function(){var e=new window.zap.Client(i,{experimentalProto3:!0});Object(K.f)(e)})).catch((function(e){throw E.a.increment("za_helper.init_failed.count"),e}))}))}(P,L),L.ZhihuHybrid&&C&&p.a.enableLog(),U.config({userId:m.currentUser})}))}var mt=n(674),gt=n(17),Ot=n(13),yt=n(82),jt=n.n(yt),Et=n(59),Ct=n(88),wt=Object(a.createContext)(),Tt=n(411),_t=Object(a.createContext)({totalOffset:0}),St=function(e){var t=e.children,n=Object(a.useState)((function(){return new Map})),r=Object(gt.a)(n,2),i=r[0],c=r[1],s=Object(a.useCallback)((function(e,t){return c((function(n){return new Map(n.set(e,t))}))}),[]),u=Object(a.useCallback)((function(e){return c((function(t){return t.delete(e),new Map(t)}))}),[]),l=Object(a.useMemo)((function(){var e=0;return i.forEach((function(t){return e+=t})),{totalOffset:e,addOffset:s,removeOffset:u}}),[s,i,u]);return Object(o.b)(_t.Provider,{value:l,children:t})},At=function(e){var t=e.store,n=e.children,r=t.getState().env,i=r.theme,c=r.userAgent,s=Object(a.useState)("dark"===i),u=Object(gt.a)(s,2),l=u[0],d=u[1];return Object(a.useEffect)((function(){c.ZhihuHybrid&&p.a.listen("base/themeChange",(function(e){var t=e.theme;d("dark"===t)}))}),[]),Object(o.c)(Ot.Provider,{store:t,children:[Object(o.b)(jt.a,{htmlAttributes:{"data-theme":l?"dark":"light"}}),Object(o.b)(Ct.a.Provider,{value:c,children:Object(o.b)(wt.Provider,{value:l,children:Object(o.b)(Et.a,{isDarkMode:l,ua:c,children:Object(o.b)(St,{children:Object(o.b)(Tt.a,{children:n})})})})})]})};var kt=n(122),Rt=n.n(kt),It=[],xt=Rt()((function(){if(console.groupCollapsed){var e=It.reduce((function(e,t){return e+t.actualDuration}),0);console.groupCollapsed("[Click to expand]: React Profiler, ".concat(It.length," updates in ").concat(e.toFixed(2),"ms"))}for(var t;t=It.shift();)t.actualDuration>=5?console.warn(t):console.info(t);console.groupEnd&&console.groupEnd()}),300);function Nt(e,t,n,r,o,i,a){var c;c={id:e,phase:t,actualDuration:n,baseDuration:r,startTime:o,commitTime:i,interactions:a},It.push(c),xt()}var Dt=n(136);var Pt=n(53),Lt=n(23),Mt=n(141),Ut=n(4);var Bt=Object(Lt.combineReducers)({global:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{count:0},t=arguments.length>1?arguments[1]:void 0;if("undefined"==typeof window)return e;var n=t.type;return n.endsWith("request")?{count:e.count+1}:n.endsWith("success")||n.endsWith("failure")?{count:e.count?e.count-1:0}:e},local:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.id,o=t.urlToken;return["request","success","failure"].includes(n.split("/").pop())?Object.assign({},e,Object(Ut.a)({},"".concat(n.slice(0,n.lastIndexOf("/")),"/").concat(r||o||""),n.endsWith("request"))):e}}),zt=n(54),Ft=n(232),Gt=n(89),Vt=Object.assign({},Object(G.a)("social",["UNBIND_SOCIAL_ACCOUNT","DELETE_SOCIAL_ACCOUNT","GET_SOCIAL_BIND","GET_MESSAGE_SETTING","UPDATE_MESSAGE_SETTING","GET_NOTIFICATION_SETTING","UPDATE_NOTIFICATION_SETTING","GET_EMAIL_SETTING","UPDATE_EMAIL_SETTING","GET_PRIVACY_SETTING","UPDATE_PRIVACY_SETTING","GET_BLOCKED_USERS","UNBLOCK_USER","GET_BLOCKED_FOLLOWEES","UNBLOCK_FOLLOWEE","GET_IGNORED_TOPICS","GET_RESTRICTED_TOPICS","RELEASE_IGNORED_TOPIC","GET_LABORATORY_SETTING","UPDATE_LABORATORY_SETTING","UPDATE_WATERMARK_SETTING","UPDATE_WALLE_SETTING","GET_WALL_E_COMMENT_SETTING","UPDATE_WALL_E_COMMENT_SETTING","UPDATE_WALL_E_MESSAGE_SETTING","GET_PROFILE","UPDATE_AVATAR","UPDATE_ADMIN_PHONE","UPDATE_ADMIN","GET_ORG_PHONE_VERIFY_CODE","GET_WALL_E_BLACKLIST","UNDO_WALL_E_BLOCK"])),Ht=Vt.UNBIND_SOCIAL_ACCOUNT,qt=Vt.DELETE_SOCIAL_ACCOUNT,Kt=Vt.GET_SOCIAL_BIND,Wt=Vt.GET_MESSAGE_SETTING,Yt=Vt.UPDATE_MESSAGE_SETTING,Qt=Vt.GET_NOTIFICATION_SETTING,Zt=Vt.UPDATE_NOTIFICATION_SETTING,Jt=Vt.GET_EMAIL_SETTING,Xt=Vt.UPDATE_EMAIL_SETTING,$t=Vt.GET_PRIVACY_SETTING,en=Vt.UPDATE_PRIVACY_SETTING,tn=Vt.GET_BLOCKED_USERS,nn=Vt.UNBLOCK_USER,rn=Vt.GET_BLOCKED_FOLLOWEES,on=Vt.UNBLOCK_FOLLOWEE,an=Vt.GET_IGNORED_TOPICS,cn=Vt.GET_RESTRICTED_TOPICS,sn=Vt.RELEASE_IGNORED_TOPIC,un=Vt.GET_LABORATORY_SETTING,ln=Vt.UPDATE_LABORATORY_SETTING,dn=(Vt.UPDATE_WATERMARK_SETTING,Vt.UPDATE_WALLE_SETTING,Vt.GET_WALL_E_COMMENT_SETTING,Vt.UPDATE_WALL_E_COMMENT_SETTING,Vt.UPDATE_WALL_E_MESSAGE_SETTING,Vt.GET_PROFILE),fn=(Vt.UPDATE_AVATAR,Vt.UPDATE_ADMIN_PHONE,Vt.UPDATE_ADMIN,Vt.GET_ORG_PHONE_VERIFY_CODE,Vt.GET_WALL_E_BLACKLIST),pn=Vt.UNDO_WALL_E_BLOCK;var hn={socialBind:null,inboxMsg:null,notification:{},email:{},privacyFlag:null,blockedUsers:{isFetching:!1,paging:{pageNo:1,pageSize:6},data:[]},blockedFollowees:{isFetching:!1,paging:{pageNo:1,pageSize:6},data:[]},ignoredTopics:{isFetching:!1,paging:{pageNo:1,pageSize:6},data:[]},restrictedTopics:null,laboratory:{}};function bn(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Object.assign({},e,{isFetching:t})}function vn(e){var t=e.page,n=e.payload,r=n.paging,o=void 0===r?{}:r,i=n.data,a=void 0===i?[]:i;return{paging:Object.assign({},o,t),data:a.map((function(e){return Object.assign({},e,{isBlocked:!0})})),isFetching:!1}}function mn(e,t){var n=e.paging,r=e.data;return{paging:Object.assign({},n,{totals:n.totals-1}),data:r.map((function(e){return e.urlToken===t?Object.assign({},e,{isBlocked:!1}):e}))}}var gn=n(276),On=n(112),yn=n(81),jn=n(147),En=n(361),Cn=Object.assign({},Object(G.b)("vessayCommon",["SET_BLOCK_UNLOAD","SET_CALIBRATING","SET_EDITING_TRACK_DATA","SET_NEW_ADD_MATERIAL_DATA","SAVE_AUDIO_CACHE","SET_SOURCE","SET_AUTO_SAVE"]),Object(G.a)("vessayCommon",["LOAD_DRAFT","CREATE_DRAFT","UPDATE_DRAFT","EXPORT_FROM_DRAFT","QUERY_EXPORT","UPLOAD_MATERIALS","QUERY_UPLOAD_MATERIALS"])),wn=(Symbol("lastTracks"),{draftId:null,source:{type:null,id:null},autoSave:!0,blockUnload:!0,isCalibratingEditing:!1,editingTrackData:{editingOutlines:[],editingVideos:[]},newAddMaterialData:{},audioCache:{}}),Tn=Object(G.b)("vessayLoading",["SET_LOADING"]);var _n=Object(G.b)("vessayPlayer",["SET_PLAYER"]),Sn={currentTime:0,totalTime:0,playing:!1},An=n(33),kn=Object.assign({},Object(G.a)("vessayLibrary",["LOAD_MATERIAL_LIBRARY","LOAD_MUSIC_LIBRARY_CATEGORIES","LOAD_MUSIC_LIBRARY","LOAD_MUSIC_URL","LOAD_MATERIAL_LIBRARY_SEARCH_RESULT","DELETE_LIBRARY_ITEMS","SAVE_UPLOADED_MATERIAL"]),Object(G.b)("vessayLibrary",["CLEAR_LIBRARY"]));var Rn,In=function(e,t,n){return Object(An.f)(t,Object.assign({defaultState:{data:[]},keySelector:function(e){return e.meta.category},mergeState:function(e,t){var n=t.payload;return{data:n.data||[],next:n.paging.next}},additionCase:function(t,n){var r,o,i=n.type,a=n.meta,c=n.payload;return i===kn.DELETE_LIBRARY_ITEMS.success&&e===a.libraryType&&(null===(r=t.mine)||void 0===r?void 0:r.data)?Object.assign({},t,{mine:Object.assign({},t.mine,{data:t.mine.data.filter((function(e){var t=e.uploadId;return!a.ids.includes(t)}))})}):"music"===e&&"music"===(null==a?void 0:a.subtype)&&i===kn.SAVE_UPLOADED_MATERIAL.success&&(null===(o=t.mine)||void 0===o?void 0:o.data)?Object.assign({},t,{mine:Object.assign({},t.mine,{data:[c].concat(t.mine.data)})}):i===kn.CLEAR_LIBRARY&&e===a.libraryType?a.category?Object.assign({},t,Object(Ut.a)({},a.category,null)):{}:t}},n))},xn=Object(Lt.combineReducers)({material:In("material",kn.LOAD_MATERIAL_LIBRARY),materialSearchResult:In("materialSearchResult",kn.LOAD_MATERIAL_LIBRARY_SEARCH_RESULT),music:In("music",kn.LOAD_MUSIC_LIBRARY),musicLibraryCategories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;return n===kn.LOAD_MUSIC_LIBRARY_CATEGORIES.success&&r.data.length?r.data.map((function(e){var t=e.id;return{name:e.name,key:t}})):e},musicUrls:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.meta,o=t.payload;return n===kn.LOAD_MUSIC_URL.success?Object.assign({},e,Object(Ut.a)({},r.musicId,o.url)):e}}),Nn=n(127),Dn=n.n(Nn),Pn=n(277),Ln=n.n(Pn),Mn=n(201),Un=n.n(Mn),Bn=n(31),zn=n(250),Fn=n(248),Gn=n(56),Vn=n(603),Hn=n.n(Vn),qn=(n(604),n(296)),Kn=(Object(qn.a)("vessay"),ke.a.fetchRoot.lens,Hn()(8),540),Wn={x:480,y:Kn-45-12},Yn={x:960/2,y:Kn/2};function Qn(e,t,n,r,o,i,a,c){var s={font_size:e,font_color:t};return c&&(s.font_alpha=c),n&&(s.background_color=n),r&&(s.background_alpha=r),o&&(s.font_uline=o,s.font_alpha=100),i&&(s.shadow_color=i,s.shadow_alpha=100),a&&(s.border_width=1,s.border_color=a,s.border_alpha=100),s}var Zn=(Rn={},Object(Ut.a)(Rn,"subtitle",{meta:{demoImg:"https://pic4.zhimg.com/v2-12acabac8154bf186d91e5909f8b29ca.png"}}),Object(Ut.a)(Rn,"title",{meta:{isTitle:!0,demoImg:"https://pic4.zhimg.com/v2-85719f7216c661281763e559af78352c.png"},style:Qn(50,"#FFFFFF",null,null,null,null,"#000000"),position:Yn}),Object(Ut.a)(Rn,"subtitleBlackBg",{meta:{demoImg:"https://pic4.zhimg.com/v2-6977dcbeb3f9f4055738fb33da63273e.png"},style:Qn(32,"#FFFFFF","#000000",95),position:Wn}),Object(Ut.a)(Rn,"titleBlack",{meta:{isTitle:!0,demoImg:"https://pic1.zhimg.com/v2-98d197c9a1ac26d448317af99a4a325d.png"},style:Qn(50,"#FFFFFF","#000000",60,null,null,null),position:Yn}),Object(Ut.a)(Rn,"subtitlePurpleWhite",{meta:{demoImg:"https://pic2.zhimg.com/v2-fed50cfad350c78c0d7bd0e192e7ee76.png"},style:Qn(32,"#ffffff","#5300BC",20),position:Wn}),Object(Ut.a)(Rn,"titlePurple",{meta:{isTitle:!0,demoImg:"https://pic1.zhimg.com/v2-5e518a0a81a9f248864f168072847555.png"},style:Qn(50,"#FFFFFF","#5300BC",40,null,null,null),position:Yn}),Object(Ut.a)(Rn,"subtitleYellowBlack",{meta:{demoImg:"https://pic1.zhimg.com/v2-f4733e5ed8271b3fb319cb6bf772629a.png"},style:Qn(32,"#6C470F","#FFD600",95,null,null,null),position:Wn}),Object(Ut.a)(Rn,"titleGreen",{meta:{isTitle:!0,demoImg:"https://pic1.zhimg.com/v2-5241092a5048adb1fcb82bd1b5d6f067.png"},style:Qn(50,"#6C470F","#FFD600",90,null,null,null),position:Yn}),Object(Ut.a)(Rn,"subtitleBlueWhite",{meta:{demoImg:"https://pic4.zhimg.com/v2-723c4dd4b4b030ec421212cb51746d39.png"},style:Qn(32,"#96E6FF","#0066FF",80,null,null,"#003C96"),position:Wn}),Object(Ut.a)(Rn,"titleBlue",{meta:{isTitle:!0,demoImg:"https://pic2.zhimg.com/v2-76f4d2fded245f2f6f8b8a2061c252cd.png"},style:Qn(50,"#96E6FF","#0066FF",90,null,null,"#003C96"),position:Yn}),Object(Ut.a)(Rn,"subtitleBlueYellow",{meta:{demoImg:"https://pic1.zhimg.com/v2-1f392b55a2b0e536df5308363e65871d.png"},style:Qn(32,"#FFEA2F","#C14600",20,null,"#663700","#2E1600"),position:Wn}),Object(Ut.a)(Rn,"titleBlueYellow",{meta:{isTitle:!0,demoImg:"https://pic1.zhimg.com/v2-71a3361351d62aa99b488f4faf97134b.png"},style:Qn(50,"#FFEA2F","#C14600",20,null,"#663700","#2E1600"),position:Yn}),Object(Ut.a)(Rn,"subtitleBlueShadowUnderline",{meta:{demoImg:"https://pic1.zhimg.com/v2-a6ec21b9ec717a08eec5f5412c757812.png"},style:Qn(32,"#FFFFFF",null,null,null,"#FFFFFF","#023AFF"),position:Wn}),Object(Ut.a)(Rn,"titleBlueShadowUnderline",{meta:{isTitle:!0,demoImg:"https://pic1.zhimg.com/v2-80c0b128e401aa0de4737541a2600787.png"},style:Qn(50,"#FFFFFF",null,null,null,"#FFFFFF","#023AFF",null),position:Yn}),Object(Ut.a)(Rn,"subtitleRedShadow",{meta:{demoImg:"https://pic1.zhimg.com/v2-0b5711a8fde77137735c2a0a3c81119e.png"},style:Qn(32,"#FFFFFF",null,null,null,"#FFFFFF","#FF4079"),position:Wn}),Object(Ut.a)(Rn,"titleRedShadow",{meta:{isTitle:!0,demoImg:"https://pic1.zhimg.com/v2-4e53731fb2e14c75852ffa11c7150c6a.png"},style:Qn(50,"#FFFFFF",null,null,null,"#FFFFFF","#FF4079",null),position:Yn}),Object(Ut.a)(Rn,"subtitleGreenBorder",{meta:{demoImg:"https://pic1.zhimg.com/v2-88438e8b2a2ee51305dae37a82fb6366.png"},style:Qn(32,"#00FFB2","#3FFFBA",30,null,"#005A3F","#00402C"),position:Wn}),Object(Ut.a)(Rn,"titleGreenBorder",{meta:{isTitle:!0,demoImg:"https://pic1.zhimg.com/v2-7911218bdaa88c42747f6a5e335ec138.png"},style:Qn(50,"#00FFB2","#3FFFBA",30,null,"#005A3F","#00402C",null),position:Yn}),Object(Ut.a)(Rn,"subtitleOrangeBorder",{meta:{demoImg:"https://pic2.zhimg.com/v2-d5a8fcf909b684dd7cc3a61abcb7d061.png"},style:Qn(32,"#FF7A00",null,null,null,"#FFC27A","#FFFFFF",null),position:Wn}),Object(Ut.a)(Rn,"titleOrangeBorder",{meta:{isTitle:!0,demoImg:"https://pic4.zhimg.com/v2-45036987e749a5f011fc8f9a660d5224.png"},style:Qn(50,"#FF7A00",null,null,null,"#FFC27A","#FFFFFF",null),position:Yn}),Object(Ut.a)(Rn,"subtitleRedBorder",{meta:{demoImg:"https://pic1.zhimg.com/v2-a0938add7d03338030d67ee0ee2de56d.png"},style:Qn(32,"#FFFFFF",null,null,null,null,"#FF2828"),position:Wn}),Object(Ut.a)(Rn,"titleRedBorder",{meta:{isTitle:!0,demoImg:"https://pic1.zhimg.com/v2-fbbafb00886e49b4b5b72c9c96df3a1f.png"},style:Qn(50,"#E5F0FF",null,null,null,null,"#FF2828"),position:Yn}),Object(Ut.a)(Rn,"subtitlePurpleBorder",{meta:{demoImg:"https://pic1.zhimg.com/v2-11e25684f063199834e1e82bd71189ce.png"},style:Qn(32,"#FFFFFF",null,null,null,null,"#8F00FF"),position:Wn}),Object(Ut.a)(Rn,"watermark",{noTextBox:!0,meta:{hidden:!0},style:Qn(24,"#FFFFFF",null,null,null,null,null,100)}),Rn),Jn=[];Object.keys(Zn).map((function(e){var t,n=Zn[e];return(null===(t=n.meta)||void 0===t?void 0:t.isTitle)&&Jn.push(e),Object.assign({},n.meta,{id:e})}));var Xn,$n,er="title",tr="subtitle",nr="image",rr="frame",or="audio",ir="video",ar="video",cr="audio",sr="image",ur="title",lr="advanced_title",dr="subtitle",fr="frame",pr="transition",hr="advanced_text",br="text",vr="text_image",mr="audio",gr="sticker",Or="frame",yr="image",jr="video",Er="transition",Cr="subtitle",wr="style",Tr=(Xn={},Object(Ut.a)(Xn,hr,er),Object(Ut.a)(Xn,br,er),Object(Ut.a)(Xn,vr,er),Object(Ut.a)(Xn,mr,or),Object(Ut.a)(Xn,gr,nr),Object(Ut.a)(Xn,Or,rr),Object(Ut.a)(Xn,yr,ir),Object(Ut.a)(Xn,jr,ir),Object(Ut.a)(Xn,Er,ir),Object(Ut.a)(Xn,Cr,tr),Object(Ut.a)(Xn,wr,rr),$n={},Object(Ut.a)($n,hr,lr),Object(Ut.a)($n,br,ur),Object(Ut.a)($n,vr,ur),Object(Ut.a)($n,mr,cr),Object(Ut.a)($n,gr,sr),Object(Ut.a)($n,Or,fr),Object(Ut.a)($n,yr,sr),Object(Ut.a)($n,jr,ar),Object(Ut.a)($n,Er,pr),Object(Ut.a)($n,Cr,dr),Object(Ut.a)($n,wr,fr),$n);function _r(e){return Object.assign({isEmptySlot:!0,id:Un()()},e)}function Sr(e,t,n){var r=e.findIndex((function(e){return e.id===n}));if(!(void 0===r||r<0)){var o=e[r],i=o.startTime,a=o.duration;t.startTime=i,e.splice(r,1),e.forEach((function(e){e.startTime>=t.startTime&&(e.startTime+=t.duration-a)})),e.splice(r,0,t)}}function Ar(e,t,n){e.forEach((function(e){e.startTime>=t&&(e.startTime+=n)}))}function kr(e,t,n){Ar(e.audioTrack,t,n),Ar(e.videoTrack,t,n)}function Rr(e,t){var n=e.findIndex((function(e){return e.startTime>=t.startTime}));void 0!==n&&n>=0&&e.splice(n,0,t)}function Ir(e,t,n){return e.find((function(e,r){var o=e.startTime,i=o+e.duration;if(o<=t&&i>=t+n)return e.index=r,!0}))}var xr=n(425),Nr=n.n(xr),Dr=n(78),Pr=n(413),Lr=n.n(Pr),Mr=Nr()([function(e){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Lr.a.apply(void 0,[{}].concat(t,[function(e,t){if(Array.isArray(e))return e.concat(t)}]))}(e,{audioTrack:[],videoTrack:[],musicTrack:[],voiceOverData:{},materialData:{}})},function(e){return e.dataVersion||Object.keys(e.materialData||{}).length?e:Object(Dr.produce)(e,(function(e){var t={},n=[];e.videoTrack.forEach((function(e){e.isED||(n.push([e.coverAudioIndex||{},e.id]),t[e.id]=e)})),e.videoTrack=[],e.audioTrack.forEach((function(e,r){var o,i=null===(o=n.find((function(e){var t=Object(gt.a)(e,1)[0],n=t.startIndex,o=t.endIndex;return n===r||o===r})))||void 0===o?void 0:o[1];if(i)e.material={id:i};else{var a=_r();e.material={id:a.id},t[a.id]=a}})),e.materialData=t}))}]),Ur=Object.assign({},Object(G.a)("vessayTrack",["LOAD_TEXT_CONTENT","LOAD_BAIDU_TTS_AUDIO","IMPORT_CME_MATERIAL","GET_VIDEO_URL","GET_VIDEO_URL_FROM_LENS","GET_UPLOAD_STATUS","GET_MATCH_IMAGE"]),Object(G.b)("vessayTrack",["UPDATE_TRACK_DATA","ADD_AUDIO_TRACK","UPDATE_AUDIO_TRACK_DATA","SET_SELECTED_TRACK_ITEMS","MOVE_AUDIO_TRACK_ITEM","UPDATE_EDITING_SUBTITLE","UPDATE_PREVIEW_EDITING_TRACK_DATA","REMOVE_MATERIAL_FROM_OUTLINE","UPDATE_OUTLINE_APPLIED_STYLE"]));n(507);var Br=n(49),zr=n(225),Fr=n.n(zr),Gr={type:Tr[jr],materialType:jr,assetUrl:"https://1251625956.vod2.myqcloud.com/98989fa9vodgzp1251625956/9dedf1ff5285890811957177878/f0.mp4",thumbnail:"https://pic4.zhimg.com/v2-beb2c98143901099abaa7237b00a37d6.jpg",id:"a399c7af-212f-4a8c-9055-6ac21a2bcb86",duration:3e3,isED:!0,width:640,height:360};var Vr=function(e){return e.vessay.track.trackData.audioTrack},Hr=function(e){return e.vessay.track.trackData.voiceOverData},qr=(Object(Br.createSelector)([function(e){return e.vessay.track.selectedTrackItems}],(function(e){return new Set(e.map((function(e){return e.id})))})),Object(Br.createSelector)([Vr,Hr],(function(e,t){var n=0;return e.map((function(e,r){var o=e.duration||0;if(e.voiceOver){var i=t[e.voiceOver.id];o=i.duration/i.playbackRate}else"number"==typeof e.playbackRate&&1!==e.playbackRate&&(o/=e.playbackRate);var a=n;return n+=o,Object.assign({},e,{startTime:a,duration:o,section:{from:0,to:e.duration},isEmptySlot:!e.text,kind:"TextTrack",index:r})}))})));Object(Br.createSelector)([qr,Hr],(function(e,t){return Fr()(e.filter((function(e){var n;return null==t?void 0:t[null===(n=e.voiceOver)||void 0===n?void 0:n.id]})),(function(e){return e.voiceOver.id})).map((function(e){var n=t[e.voiceOver.id];return Object.assign({},n,{rawDuration:n.duration,duration:e.duration,startTime:e.startTime,kind:"VoiceOverTrack"})}))})),Object(Br.createSelector)([qr,function(e){return e.vessay.track.trackData.materialData}],(function(e,t){var n,r,o,i="MaterialTrack",a=(n=e,r=function(e){var t;return null===(t=e.material)||void 0===t?void 0:t.id},o=[],n.reduce((function(e,t){var n=r(t),i=e&&r(e);return n&&(i===n?o[o.length-1].push(t):o.push([t])),t}),null),o).map((function(e){var n=e.reduce((function(e,t){return e+t.duration}),0),r=e[0],o=t[r.material.id];return Object.assign({},o,{startTime:r.startTime,duration:n,kind:i,coverAudioIndex:{startIndex:r.index,endIndex:e[e.length-1].index}})})),c=a[a.length-1];if(!c)return[];var s=e.length;return a.concat(Object.assign({},Gr,{startTime:c?c.startTime+c.duration:0,kind:i,coverAudioIndex:{startIndex:s,endIndex:s}}))})),Object(Br.createSelector)([qr,function(e){return e.vessay.player.currentTime}],(function(e,t){return function(e,t){return t.find((function(t){if(e>=t.startTime&&e<=t.startTime+t.duration)return t}))}(t,e)})),Object(qn.a)("track");var Kr=Object(Lt.combineReducers)({common:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wn,n=arguments.length>1?arguments[1]:void 0,r=n.type,o=n.payload;return r===Cn.LOAD_DRAFT.success||r===Cn.CREATE_DRAFT.success?Object.assign({},t,{draftId:o.id,editingTrackData:null===(e=o.content)||void 0===e?void 0:e.editingTrackData}):r===Cn.SET_BLOCK_UNLOAD?Object.assign({},t,{blockUnload:o}):r===Cn.SET_CALIBRATING?Object.assign({},t,{isCalibratingEditing:o}):r===Cn.SET_EDITING_TRACK_DATA?Object.assign({},t,{editingTrackData:Object.assign({},t.editingTrackData,o)}):r===Cn.SET_NEW_ADD_MATERIAL_DATA?Object.assign({},t,{newAddMaterialData:o}):r===Cn.SAVE_AUDIO_CACHE?Object.assign({},t,{audioCache:Object.assign({},t.audioCache,Object(Ut.a)({},o.text,o))}):r===Cn.SET_SOURCE?Object.assign({},t,{source:Object.assign({},t.source,{type:o.type,id:o.id})}):r===Cn.SET_AUTO_SAVE?Object.assign({},t,{autoSave:o}):t},loading:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isLoading:!1,text:"正在加载中"},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.VESSAY_LOADING,o=t.payload;if(r){if(n.endsWith("request"))return Object.assign({},e,{isLoading:!0,text:"string"==typeof r?r:"正在加载中"});if(n.endsWith("failure")||n.endsWith("success"))return Object.assign({},e,{isLoading:!1})}return n===Tn.SET_LOADING?Object.assign({},e,o):e},player:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sn,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;return n===_n.SET_PLAYER?Object.assign({},e,r):e},library:xn,track:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{trackData:{dataVersion:1,videoTrack:[],audioTrack:[],musicTrack:[],voiceOverData:{}},previewEditingTrackData:{editingSubtitleItem:{},editingVideoItem:{}},selectedTrackItems:[],outlineRemoveMaterial:{},outlineAppliedStyle:{}},t=arguments.length>1?arguments[1]:void 0;if(t.type===Ur.UPDATE_TRACK_DATA)return Object.assign({},e,{trackData:Object.assign({},e.trackData,t.payload)});if(t.type===Ur.UPDATE_AUDIO_TRACK_DATA){var n,r=t.data,o=r.newTrack,i=r.audioData,a=i.id,c=i.duration,s=i.material,u=Object.assign({},null==o||null===(n=o.audios)||void 0===n?void 0:n[0],{material:s}),l=Object(Dr.produce)(e.trackData,(function(e){var t=e.audioTrack,n=e.videoTrack;Sr(t,u,a);var r=Ir(n,u.startTime,c);if(r){var o=u.duration-c;r.duration+=o,Ar(n,u.startTime+c,o)}}));return Object.assign({},e,{trackData:l})}if(t.type===Ur.REMOVE_MATERIAL_FROM_OUTLINE)return Object.assign({},e,{outlineRemoveMaterial:t.payload});if(t.type===Ur.MOVE_AUDIO_TRACK_ITEM)return Object.assign({},e,{trackData:Object.assign({},e.trackData,t.payload.newTrackData)});if(t.type===Ur.ADD_AUDIO_TRACK){var d=Object(Dr.produce)(e.trackData,(function(e){var n=e.videoTrack,r=e.audioTrack,o=t.payload.newAudio,i=o.startTime,a=o.duration,c=Ir(n,o.startTime,0);c.duration+=a;var s=i===c.startTime;kr({videoTrack:n,audioTrack:r},i,a),s&&(c.startTime=i),Rr(r,o)}));return Object.assign({},e,{trackData:Object.assign({},e.trackData,d)})}return t.type===Ur.SET_SELECTED_TRACK_ITEMS?Object.assign({},e,{selectedTrackItems:t.payload.items}):t.type===Cn.LOAD_DRAFT.success?Object.assign({},e,{trackData:Object.assign({},e.trackData,Mr(t.payloadOrigin.content.trackData))}):t.type===Ur.UPDATE_PREVIEW_EDITING_TRACK_DATA?Object.assign({},e,{previewEditingTrackData:Object.assign({},e.previewEditingTrackData,t.payload)}):t.type===Ur.UPDATE_OUTLINE_APPLIED_STYLE?Object.assign({},e,{outlineAppliedStyle:Object.assign({},e.outlineAppliedStyle,t.payload)}):e}}),Wr=Object(G.a)("shareText",["GET"]);function Yr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===Wr.GET.success){var n=t.id,r=t.shareType,o=t.payload.shareText;return Object.assign({},e,Object(Ut.a)({},"".concat(r).concat(n),o))}return e}var Qr=n(393),Zr=n(206),Jr=n(297),Xr=n(35),$r={isFetching:!1,isDrained:!1,isPrevDrained:!1,result:[],next:null,key:null};var eo=function(e,t){var n=e.request,r=e.success,o=e.failure;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$r,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case t:return $r;case n:var c=a.key,s=c!==e.key;return Object.assign({},s?$r:e,{key:c,isFetching:!0});case r:var u=a.result,l=a.next,d=a.isDrained,f=a.isPrevDrained;return Object.assign({},e,{result:[].concat(Object(i.a)(e.result),Object(i.a)(u)),next:l,isDrained:d||u.length<10,isPrevDrained:f,isFetching:!1});case o:return Object.assign({},e,{isFetching:!1});default:return e}}},to=n(26),no=n(29),ro=Object.assign({},Object(G.a)("notifications",["GET_RECENT","GET_HISTORY","GET_NOTIFICATION_ACTORS","MARK_ALL_READ"]),Object(G.b)("notifications",["CHANGE_RECENT_NOTIFICATION_ENTRY","CLEAR_NOTIFICATION_ACTORS"])),oo=(new to.b.Array(new to.b.Object({target:no.a.USER})),eo(ro.GET_RECENT,ro.CHANGE_RECENT_NOTIFICATION_ENTRY)),io=eo(ro.GET_HISTORY),ao=eo(ro.GET_NOTIFICATION_ACTORS,ro.CLEAR_NOTIFICATION_ACTORS),co=Object(Lt.combineReducers)({recent:oo,history:io,notificationActors:ao,recentNotificationEntry:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all",t=arguments.length>1?arguments[1]:void 0;return t.type===ro.CHANGE_RECENT_NOTIFICATION_ENTRY?t.entry:e}}),so=Object.assign({},Object(G.a)("banner",["GET","GET_BRANDTRACK"]),Object(G.b)("banner",["CLOSE"]));var uo=n(189),lo=n(138),fo=n(270),po=n(362),ho=n(358),bo=Object(G.a)("explore",["GET_RECOMMENDATIONS","GET_LATEST_SPECIALS","GET_LATEST_ROUNDTABLES","GET_HOT_COLLECTIONS","GET_RECOMMEND_COLUMNS","FOLLOW_SPECIAL","UNFOLLOW_SPECIAL","FOLLOW_ROUNDTABLE","UNFOLLOW_ROUNDTABLE","FOLLOW_COLLECTION","UNFOLLOW_COLLECTION"]);var vo=Object(Lt.combineReducers)({recommendations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===bo.GET_RECOMMENDATIONS.request)return{isLoading:!0};if(t.type===bo.GET_RECOMMENDATIONS.success){var n=t.payload.data;return{isDrained:!0,items:n}}return t.type===bo.GET_RECOMMENDATIONS.failure?{isError:!0}:e},specials:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{entities:{},order:[]},t=arguments.length>1?arguments[1]:void 0;if(t.type===bo.GET_LATEST_SPECIALS.success){var n=t.payload.data;return{entities:n.reduce((function(e,t){return Object.assign({},e,Object(Ut.a)({},t.id,t))}),{}),order:n.map((function(e){return e.id}))}}if([bo.FOLLOW_SPECIAL.request,bo.UNFOLLOW_SPECIAL.failure].includes(t.type)){var r=t.meta.id,o=e.entities;return o[r]?Object.assign({},e,{entities:Object.assign({},o,Object(Ut.a)({},r,Object.assign({},o[r],{isFollowing:!0})))}):e}if([bo.UNFOLLOW_SPECIAL.request,bo.FOLLOW_SPECIAL.failure].includes(t.type)){var i=t.meta.id,a=e.entities;return a[i]?Object.assign({},e,{entities:Object.assign({},a,Object(Ut.a)({},i,Object.assign({},a[i],{isFollowing:!1})))}):e}return e},roundtables:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{entities:{},order:[]},t=arguments.length>1?arguments[1]:void 0;if(t.type===bo.GET_LATEST_ROUNDTABLES.success){var n=t.payload.data;return{entities:n.reduce((function(e,t){return Object.assign({},e,Object(Ut.a)({},t.urlToken,t))}),{}),order:n.map((function(e){return e.urlToken}))}}if([bo.FOLLOW_ROUNDTABLE.request,bo.UNFOLLOW_ROUNDTABLE.failure].includes(t.type)){var r=t.meta.urlToken,o=e.entities;return o[r]?Object.assign({},e,{entities:Object.assign({},o,Object(Ut.a)({},r,Object.assign({},o[r],{followersCount:o[r].followersCount+1,isFollowing:!0})))}):e}if([bo.UNFOLLOW_ROUNDTABLE.request,bo.FOLLOW_ROUNDTABLE.failure].includes(t.type)){var i=t.meta.urlToken,a=e.entities;return a[i]?Object.assign({},e,{entities:Object.assign({},a,Object(Ut.a)({},i,Object.assign({},a[i],{followersCount:a[i].followersCount-1,isFollowing:!1})))}):e}return e},collections:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===bo.GET_HOT_COLLECTIONS.success){var n=t.payload.data;return n.reduce((function(e,t){return Object.assign({},e,Object(Ut.a)({},t.id,t))}),{})}if([bo.FOLLOW_COLLECTION.request,bo.UNFOLLOW_COLLECTION.failure].includes(t.type)){var r=t.meta.id;return e[r]?Object.assign({},e,Object(Ut.a)({},r,Object.assign({},e[r],{followerCount:e[r].followerCount+1,isFollowing:!0}))):e}if([bo.UNFOLLOW_COLLECTION.request,bo.FOLLOW_COLLECTION.failure].includes(t.type)){var o=t.meta.id;return e[o]?Object.assign({},e,Object(Ut.a)({},o,Object.assign({},e[o],{followerCount:e[o].followerCount-1,isFollowing:!1}))):e}return e},columns:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===bo.GET_RECOMMEND_COLUMNS.success){var n=t.payload.data;return n.reduce((function(e,t){return Object.assign({},e,Object(Ut.a)({},t.urlToken,t))}),{})}return e}}),mo=n(133),go=n(217);var Oo=Object(Lt.combineReducers)({reviewing:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("pins/SET_REVIEWING_ERROR"===t.type){var n=t.payload,r=n.id,o=n.error;return Object.assign({},e,Object(Ut.a)({},r,o))}return e}}),yo=Object(G.a)("pin",["LIKE","REACTION","DELETE","GET_VOTERS","CREATE_PINS","GET_LINK_CONTENT","GET_PIN_CONTENT"]);Object(Br.createSelector)((function(e,t){return{pin:e.entities.pins[t],users:e.entities.users}}),(function(e){var t=e.pin,n=e.users;return t?"string"==typeof t.author?Object.assign({},t,{author:n[t.author]}):t:{}}));var jo=Oo,Eo=(n(421),Object.assign({},Object(G.a)("topstory",["GET_RECOMMEND","GET_FOLLOW","GET_FOLLOW_WONDERFUL","GET_ROOM","GET_ROOM_CHANNEL","GET_ASIDEDATA","UNINTEREST","UNINTEREST_REASONS","GET_ANNOUNCEMENT","GET_HOT_LIST_CATEGORIES","UPDATE_HOT_LIST_CATEGORIES","GET_HOT_LIST","GET_GUEST_FEEDS","GET_FOLLOW_EXTRA","GET_HOT_DAILY","GET_HOT_HIGHLIGHT","GET_BANNER"]),Object(G.b)("topstory",["DIMISS_ANNOUNCEMENT","UPDATE_FOLLOW_COUNT","RESET_RECOMMEND","RESET_FOLLOW","RESET_FOLLOW_WONDERFUL","RESET_ROOM","RESET_HOT_LIST"])));Object(Ut.a)({},"desktop",!0);var Co=n(209),wo=n.n(Co),To=function(e){var t=e.payloadOrigin,n=e.currentUser;if(Object(W.isBrowser)()){var r=t.data.map((function(e){return e.target})).filter((function(e){return Boolean(e)}));Fr()(r,(function(e){return"".concat(e.type,"_").concat(e.id)})).length<r.length&&window.Raven.captureException(new Error("topstory recommend list duplication"),{extra:wo()({payloadOrigin:t,currentUser:n},Boolean),level:"warning"})}};var _o=Object(Lt.combineReducers)({recommend:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isFetching:!1,isDrained:!1,afterId:0,items:[],next:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Eo.GET_RECOMMEND.request:return Object.assign({},e,{isFetching:!0});case Eo.GET_RECOMMEND.success:var n=t.result,r=t.isDrained,o=t.next,a=t.payloadOrigin,c=t.currentUser,s=e.items,u=n.filter((function(e){var t=e.id;return!s.find((function(e){return e.id===t}))}));To({payloadOrigin:a,currentUser:c});var l=[].concat(Object(i.a)(s),Object(i.a)(u));return Object.assign({},e,{isDrained:r,isFetching:!1,afterId:(l[l.length-1]||{}).id,items:l,next:o,sessionToken:t.payload.sessionToken,serverPayloadOrigin:Object(W.isBrowser)()?null:a});case Eo.GET_RECOMMEND.failure:return Object.assign({},e,{isFetching:!1,isDrained:!0});case Eo.RESET_RECOMMEND:return{meta:{},isFetching:!1,isDrained:!1,afterId:0,items:[],next:null};default:return e}},follow:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isFetching:!1,isDrained:!1,afterId:0,items:[],next:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Eo.GET_FOLLOW.request:return Object.assign({},e,{isFetching:!0});case Eo.GET_FOLLOW.success:var n=t.result,r=t.isDrained,o=t.next,a=e.items,c=n.filter((function(e){var t=e.id;return!a.find((function(e){return e.id===t}))})),s=[].concat(Object(i.a)(a),Object(i.a)(c));return Object.assign({},e,{isDrained:r,isFetching:!1,afterId:(s[s.length-1]||{}).id,items:s,next:o,sessionToken:t.payload.sessionToken});case Eo.GET_FOLLOW.failure:return Object.assign({},e,{isFetching:!1,isDrained:!0});case Eo.RESET_FOLLOW:return{meta:{},isFetching:!1,isDrained:!1,afterId:0,items:[],next:null};default:return e}},room:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{meta:{},isFetching:!1,afterId:0,items:[],next:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Eo.GET_ROOM_CHANNEL.request:var n=t.meta;return Object.assign({},{meta:{},isFetching:!1,isDrained:!1,afterId:0,items:[],next:null},{isFetching:!0,meta:{roomId:n.roomId,channelId:null,channels:null}});case Eo.GET_ROOM_CHANNEL.success:var r=t.payload;return Object.assign({},e,{isFetching:!1,meta:Object.assign({},e.meta,{channels:r.data})});case Eo.GET_ROOM.request:var o=t.meta.channelId;return o!==e.meta.channelId?Object.assign({},{meta:{},isFetching:!1,isDrained:!1,afterId:0,items:[],next:null},{isFetching:!0,meta:Object.assign({},e.meta,{channelId:o})}):Object.assign({},e,{isFetching:!0});case Eo.GET_ROOM.success:var a=e.items,c=t.result,s=t.isDrained,u=t.next;if(t.meta.channelId!==e.meta.channelId)return e;var l=c.filter((function(e){var t=e.target.id;return!a.find((function(e){return e.target.id===t}))})),d=[].concat(Object(i.a)(a),Object(i.a)(l));return Object.assign({},e,{isDrained:s,isFetching:!1,items:d,next:u});case Eo.GET_ROOM.failure:return Object.assign({},e,{isFetching:!1,isDrained:!0});case Eo.RESET_ROOM:return{meta:{},isFetching:!1,isDrained:!1,afterId:0,items:[],next:null};default:return e}},followWonderful:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isFetching:!1,isDrained:!1,afterId:0,items:[],next:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Eo.GET_FOLLOW_WONDERFUL.request:return Object.assign({},e,{isFetching:!0});case Eo.GET_FOLLOW_WONDERFUL.success:var n=t.result,r=t.isDrained,o=t.next,a=t.hasNew,c=e.items,s=n.filter((function(e){var t=e.id;return!c.find((function(e){return e.id===t}))})),u=[].concat(Object(i.a)(c),Object(i.a)(s));return Object.assign({},e,{isDrained:r,isFetching:!1,afterId:(u[u.length-1]||{}).id,items:u,next:o,sessionToken:t.payload.sessionToken,hasNew:a});case Eo.GET_FOLLOW_WONDERFUL.failure:return Object.assign({},e,{isFetching:!1,isDrained:!0,hasNew:!0});case Eo.RESET_FOLLOW_WONDERFUL:return{meta:{},isFetching:!1,isDrained:!1,afterId:0,items:[],next:null};default:return e}},sidebar:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return t.type===Eo.GET_ASIDEDATA.success?t.payload:e},announcement:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===Eo.GET_ANNOUNCEMENT.success&&t.payload?Object.assign({},e,{data:t.payload}):t.type===Eo.DIMISS_ANNOUNCEMENT?Object.assign({},e,{dimiss:!0}):e},hotListCategories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.type===Eo.GET_HOT_LIST_CATEGORIES.success?t.payload:t.type===Eo.UPDATE_HOT_LIST_CATEGORIES.success?t.updatedLists:e},hotList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.payload||{},r=n.data;return t.type===Eo.GET_HOT_LIST.success?r:t.type===Eo.RESET_HOT_LIST?[]:e},guestFeeds:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isFetching:!1,isDrained:!1,afterId:0,items:[],next:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Eo.GET_GUEST_FEEDS.request:return Object.assign({},e,{isFetching:!0});case Eo.GET_GUEST_FEEDS.success:var n=t.result,r=t.isDrained,o=t.next,a=t.offset,c=e.items,s=n.slice(a||0).filter((function(e){var t=e.id;return!c.find((function(e){return e.id===t}))})),u=[].concat(Object(i.a)(c),Object(i.a)(s));return Object.assign({},e,{isDrained:r,isFetching:!1,afterId:(u[u.length-1]||{}).id,items:u,next:o,sessionToken:t.payload.sessionToken});case Eo.GET_GUEST_FEEDS.failure:return Object.assign({},e,{isFetching:!1,isDrained:!0});default:return e}},followExtra:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isNewUser:null,isFetched:!1,followCount:0,followers:[]},t=arguments.length>1?arguments[1]:void 0;if(t.type===Eo.GET_FOLLOW_EXTRA.success){var n=t.payload.guideCard.styleType;return Object.assign({},e,{isNewUser:"big"===n,isFetched:!0})}if(t.type===Eo.UPDATE_FOLLOW_COUNT){var r,o=t.payload.urlToken,a=e.followers,c=a.findIndex((function(e){return e===o}));return r=c>-1?a.filter((function(e){return e!==o})):[].concat(Object(i.a)(a),[o]),Object.assign({},e,{followers:r,followCount:r.length})}return e},hotDaily:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{data:[],paging:{}},t=arguments.length>1?arguments[1]:void 0;return t.type===Eo.GET_HOT_DAILY.success?t.payload:e},hotHighlight:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isFetching:!1,isDrained:!1,data:[],paging:{}},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case Eo.GET_HOT_HIGHLIGHT.request:case Eo.GET_HOT_HIGHLIGHT.failure:return Object.assign({},e,{isFetching:t.type===Eo.GET_HOT_HIGHLIGHT.request});case Eo.GET_HOT_HIGHLIGHT.success:return Object.assign({},e,{isFetching:!1,paging:t.payload.paging,data:[].concat(Object(i.a)(e.data),Object(i.a)(r.data))});default:return e}},banner:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;if(n===Eo.GET_BANNER.success){var o=t.meta.position;return Object.assign({},e,Object(Ut.a)({},o,r.data))}return e}}),So=Object(Br.createSelectorCreator)(Br.defaultMemoize,Ot.shallowEqual);function Ao(e,t){var n=e.feeds[t.id],r=n.target,o=(e["".concat(r.schema,"s")]||{})[r.id];return null!=o?Object.assign({},n,o&&{target:o}):n}function ko(e,t,n){var r,o,i,a,c,s,u,l,d=t.id,f=t.schema;if("room"===n)return Object.assign({},t,{target:Object(gn.c)(e,t.target)});try{switch(f){case"actionCard":return i={id:d},a=(o=e).actionCards,c=o.topics,s=a[i.id],u=s.card,(l=s.card.topicList)?Object.assign({},s,{card:Object.assign({},u,{topicList:l.map((function(e){return c[e]}))})}):null;case"feed":return Ao(e,{id:d});case"feedAdvert":return r={id:d},e.feedAdverts[r.id];case"feedGroup":return function(e,t){var n=t.id,r=e.feedGroups,o=r&&r[n];return Object.assign({},o,{list:o.list.map((function(t){return Ao(e,{id:t})}))})}(e,{id:d});default:return t}}catch(e){return Object(W.isBrowser)()&&window.Raven.captureException(e,{level:"warning",extra:t}),null}}var Ro={meta:{},isFetching:!1,items:[],isDrained:!1},Io=function(e){return So((function(t){return function(e,t){var n=e.topstory[t]||Ro,r=n.meta,o=n.isFetching,i=n.isDrained,a=n.items,c=n.serverPayloadOrigin;return Object.assign({meta:r,isFetching:o,isDrained:i,items:a},"recommend"===t&&{serverPayloadOrigin:c,currentUser:e.currentUser})}(t,e)}),(function(e){return e.entities}),(function(t,n){return Object.assign({},t,{items:t.items.map((function(t){return ko(n,t,e)})).filter(Boolean)})}))};Io("follow"),Io("followWonderful"),Io("recommend"),Io("room");Object(Br.createSelector)((function(e){var t=e.topstory.guestFeeds||Ro;return{isFetching:t.isFetching,isDrained:t.isDrained,items:t.items}}),(function(e){return e.entities}),(function(e,t){return Object.assign({},e,{items:e.items.map((function(e){return Ao(t,e)})).filter(Boolean)})}));var xo=_o,No=n(167),Do=Object.assign({},Object(G.a)("guide",["GET_TOPICS","SUBMIT_TOPICS"]),Object(G.b)("guide",["CHANGE_SELECT_TOPIC"]));var Po=Object(Lt.combineReducers)({guide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isFetching:!1,isShowGuide:!1},t=arguments.length>1?arguments[1]:void 0,n=t.type;switch(n){case Do.SUBMIT_TOPICS.request:case Do.SUBMIT_TOPICS.failure:return Object.assign({},e,{isSubmitTopic:"fail"});case Do.SUBMIT_TOPICS.success:var r=t.payload.success;return Object.assign({},e,{isSubmitTopic:r?"done":"fail"});case Do.GET_TOPICS.request:case Do.GET_TOPICS.failure:return Object.assign({},e,{isFetching:!1});case Do.GET_TOPICS.success:var o=t.payload.data;return Object.assign({data:o},e,{isFetching:!0});case Do.CHANGE_SELECT_TOPIC:var a=t.data.index,c=e.data,s=e.data[a],u=s.relatedTopics,l=s.isFollowing,d=s.isSelected,f=Object.entries(c).map((function(e,t){var n=Object(gt.a)(e,2),r=(n[0],n[1]);return t===a?Object.assign({},r,{isFollowing:!l,isSelected:!0}):r})),p=[];if(Boolean(u)&&!d){var h=u.map((function(e){return Object.assign({},e,{isRelated:!0})}));p=[].concat(Object(i.a)(f.slice(0,a+1)),Object(i.a)(h),Object(i.a)(f.slice(a+1)))}else p=f;return{data:Object.assign({},p),isFetching:!0};default:return e}}}),Lo=n(193),Mo=n.n(Lo),Uo=n(274),Bo=n.n(Uo),zo=n(164),Fo=n.n(zo),Go=n(410),Vo=n(186),Ho=Object(G.a)("switches",["GET","GET_VIP_SWITCHES","UPDATE_OPPOSE_RESON_PRE"]),qo=["hong-yuan-81-63","te-bie-mi-wang","15101089713","lewisiii","zhihuadmin","fei-xiao-gui","yan-sha-long","dong-hua-si-shu","bei-sen-80-3","2c0db1125100e7229cf159f66d859f8e","807e863f27d8bdb7d3bde20a991ace1d","c64379c8e25578f97e29c6395401d234","869e3a50498ee9f9b4e062267f4d7007","3d198a56310c02c4a83efb9f4a4c027e","41cd5c7249081389da3a523b3cb0629b","dbe159e1503acb112148055bb5b87e1d","07738e6e3211b95849334a4dc95a60a0","bab986472d44f9caa8d2c875f225b216","3b4c31848309b4109a738ee0e523cad7"];var Ko=function(e){return function(t,n,r){var o=r.fnRefs;return Object(Vo.a)(o,"loadSwitches",(function(){return Fo()(Object(Go.a)((function(e){return t(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return function(t,n){var r=n(),o=r.currentUser,i=r.switches;if(o){var a=e.filter((function(e){return!(e in i)}));if(a.length)return t({API:{types:Ho.GET,endpoint:"me/switches",query:{include:Bo()(a.map($.decamelize)).join(",")}},meta:{couldSuperVideoUpload:-1!==qo.indexOf(o)},NOTIFICATION:!1})}}}(e.flat()))}),queueMicrotask))}))(e)}},Wo=function(e){return function(){var t=Object(k.a)(A.a.mark((function t(n,r){return A.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all(e.map((function(e){return n(Ko(e))})));case 2:return t.abrupt("return",r().switches);case 3:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()};function Yo(e){var t=e?le.B.ON:le.B.OFF;return{API:{types:Ho.UPDATE_OPPOSE_RESON_PRE,method:"PUT",endpoint:"me/settings",body:Object(Gt.getFormData)({type:"oppose",value:t})},status:t}}function Qo(e){return e.switches&&e.switches.vipSwitches}Object(Br.createSelector)(Qo,(function(e){return e&&e.mAINSWITCH&&e.sPEEDRENAME})),Object(Br.createSelector)(Qo,(function(e){return e&&e.mAINSWITCH&&e.vIPICON})),Object(Br.createSelector)(Qo,(function(e){return e&&e.mAINSWITCH&&e.wIDGET}));function Zo(e){return function(e){return Mo()(e,"switches.opposeRight.status")}(e)===le.B.ON}var Jo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ho.GET.success:return Object.assign({},e,t.payload,{couldSuperVideoUpload:t.meta.couldSuperVideoUpload});case Ho.GET_VIP_SWITCHES.success:return Object.assign({},e,{vipSwitches:t.payload});case Ho.UPDATE_OPPOSE_RESON_PRE.success:return Object.assign({},e,{opposeRight:Object.assign({},e.opposeRight,{status:t.status})});default:return e}},Xo=n(92),$o=n(66),ei=n.n($o),ti=n(426),ni=n.n(ti),ri=["content","people","topic","column","km_general","live","album","publication","clubentity","club","zvideo"],oi=(["search_result","one_box","wiki_box","relevant_query","time_box","knowledge_ad","knowledge_result","ebook_saltpick","search_club","anniversary_activity","video_box","zvideo","koc_box","hot_landing"].concat(Object(i.a)([])),["relevant_query","search_club","anniversary_activity","video_box"].concat(Object(i.a)([])),["no_limit","a_day","a_week","three_months"]),ii={no_limit:{keyNameInReducer:"generalByQuery",keyNameInEntities:"searchGeneral"},a_day:{keyNameInReducer:"generalByQueryInADay",keyNameInEntities:"searchGeneralInADay"},a_week:{keyNameInReducer:"generalByQueryInAWeek",keyNameInEntities:"searchGeneralInAWeek"},three_months:{keyNameInReducer:"generalByQueryInThreeMonths",keyNameInEntities:"searchGeneralInThreeMonths"}},ai={no_limit:{keyNameInReducer:"generalByQuery",keyNameInEntities:"searchAdvancedGeneral"},a_day:{keyNameInReducer:"generalByQueryInADay",keyNameInEntities:"searchAdvancedGeneralInOneDay"},a_week:{keyNameInReducer:"generalByQueryInAWeek",keyNameInEntities:"searchAdvancedGeneralInOneWeek"},three_months:{keyNameInReducer:"generalByQueryInThreeMonths",keyNameInEntities:"searchAdvancedGeneralInThreeMonths"}},ci=n(73);var si=Object(G.a)("search",["GET_GENERAL","GET_GENERAL_A_DAY","GET_GENERAL_A_WEEK","GET_GENERAL_THREE_MONTHS","GET_PEOPLE","GET_TOPIC","GET_COLUMN","GET_LIVE","GET_CLUBENTITY","GET_CLUB_POST","GET_ALBUM","GET_EBOOK","GET_KM_GENERAL","GET_SUGGEST","GET_TOP_SEARCH","GET_PRESET_WORDS","LIKE_TOPIC","CANCEL_LIKE_TOPIC","DISLIKE_TOPIC","GET_MOBILE_TOP_SEARCH","CANCEL_DISLIKE_TOPIC","GET_ZVIDEO"]),ui=Object(G.b)("search",["UPDATE_SEARCH_VALUE","CLEAR_SEARCH_QUERY_DATA"]),li=Object.values(ei()(si,["GET_TOP_SEARCH","GET_MOBILE_TOP_SEARCH"])).map((function(e){return e.success})),di={no_limit:no.a.SEARCH_ADVANCED_GENERAL_ARRAY,a_day:no.a.SEARCH_ADVANCED_GENERAL_ONE_DAY_ARRAY,a_week:no.a.SEARCH_ADVANCED_GENERAL_ONE_WEEK_ARRAY,three_months:no.a.SEARCH_ADVANCED_GENERAL_THREE_MONTHS_ARRAY},fi={no_limit:si.GET_GENERAL,a_day:si.GET_GENERAL_A_DAY,a_week:si.GET_GENERAL_A_WEEK,three_months:si.GET_GENERAL_THREE_MONTHS},pi=new to.b.Array(new to.b.Entity("searchKnowledgeGeneral")),hi=new to.b.Array(new to.b.Entity("searchKnowledge"));function bi(e){var t=e.query,n=void 0===t?"":t,r=e.type,o=void 0===r?"general":r,i=e.correction,a=void 0===i?1:i,c=e.offset,s=void 0===c?0:c,u=e.limit,l=void 0===u?20:u,d=e.range,f=void 0===d?"no_limit":d,p=e.lcIdx,h=void 0===p?0:p,b=e.searchHashId,v=e.showAllTopics,m=e.verticalInfo,g=function(e){return ri.includes(e)?e:"general"}(o),O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"no_limit";return oi.includes(e)?e:"no_limit"}(f),y=function(e,t){switch(e){case"people":return{action:si.GET_PEOPLE,schema:no.a.SEARCH_PEOPLE_ARRAY};case"zvideo":return{action:si.GET_ZVIDEO,schema:no.a.SEARCH_ZVIDEO_ARRAY};case"topic":return{action:si.GET_TOPIC,schema:no.a.SEARCH_TOPIC_ARRAY};case"column":return{action:si.GET_COLUMN,schema:no.a.SEARCH_COLUMN_ARRAY};case"live":return{action:si.GET_LIVE,schema:no.a.SEARCH_LIVE_ARRAY};case"clubentity":return{action:si.GET_CLUBENTITY,schema:no.a.SEARCH_CLUB_ARRAY};case"club":return{action:si.GET_CLUB_POST,schema:no.a.SEARCH_POST_ARRAY};case"publication":return{action:si.GET_EBOOK,schema:no.a.SEARCH_EBOOK_ARRAY};case"album":return{action:si.GET_ALBUM,schema:no.a.SEARCH_ALBUM_ARRAY};case"km_general":return{action:si.GET_KM_GENERAL,schema:pi};case"general":default:return{action:fi[t],schema:di[t]}}}(g,O),j=function(e,t){var n=t;switch(oi.includes(t)||(n="no_limit"),e){case"people":return{keyNameInReducer:"peopleByQuery",keyNameInEntities:"searchPeople"};case"topic":return{keyNameInReducer:"topicByQuery",keyNameInEntities:"searchTopic"};case"column":return{keyNameInReducer:"columnByQuery",keyNameInEntities:"searchColumn"};case"live":return{keyNameInReducer:"liveByQuery",keyNameInEntities:"searchLive"};case"album":return{keyNameInReducer:"albumByQuery",keyNameInEntities:"searchAlbum"};case"publication":return{keyNameInReducer:"eBookByQuery",keyNameInEntities:"searchEBook"};case"km_general":return{keyNameInReducer:"kmGeneralByQuery",keyNameInEntities:"searchKmGeneral"};case"clubentity":return{keyNameInReducer:"clubentityByQuery",keyNameInEntities:"searchClub"};case"club":return{keyNameInReducer:"clubPostByQuery",keyNameInEntities:"searchPost"};case"zvideo":return{keyNameInReducer:"zvideoByQuery",keyNameInEntities:"searchZvideo"};case"general":default:return{keyNameInReducer:ii[n].keyNameInReducer,keyNameInEntities:ai[n].keyNameInEntities}}}(g,O).keyNameInReducer,E="general"===o&&oi.includes(O)&&"no_limit"!==O?{time_zone:O}:{},C=0===s?{}:{searchHashId:b},w=Object.assign({t:g,q:n,correction:a,offset:s,limit:l,lc_idx:h,show_all_topics:v?1:0},E,C);return s>0&&m&&(w.vertical_info=m),{query:n,loadSearchType:j,nextOffset:s,API:{types:y.action,endpoint:"search_v3",query:w,headers:{"X-API-Version":"3.0.91","X-App-Za":"OS=Web"}},schema:["live","album","publication"].includes(o)?hi:y.schema}}var vi=function(e){return e.query};var mi=Object(Lt.combineReducers)({recommendSearch:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;if(n.type===si.GET_GENERAL.success&&(null===(e=n.payload.relatedSearchResult)||void 0===e?void 0:e.length)){var r=n.payload.relatedSearchResult.map((function(e){return e.object||{}}));return ni()([].concat(Object(i.a)(t),Object(i.a)(r)),(function(e,t){return e.id===t.id&&e.type===t.type}))}return t},topSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===si.GET_TOP_SEARCH.success?t.payload?t.payload.topSearch:e:t.type===si.GET_MOBILE_TOP_SEARCH.success&&t.payload?{words:t.payload.data}:e},searchValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===ui.UPDATE_SEARCH_VALUE?{value:t.data.searchValue}:e},suggestSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===si.GET_SUGGEST.success&&t.payload?t.payload:e},attachedInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.payload,r=t.loadSearchType,o=null==n?void 0:n.searchActionInfo;return li.includes(t.type)&&o?Object.assign({},e,Object(Ut.a)({},r,o)):e},nextOffset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===ui.CLEAR_SEARCH_QUERY_DATA)return{};if(li.includes(t.type)){var n,r=t.nextOffset,o=t.loadSearchType,i=t.payload,a=null==i||null===(n=i.paging)||void 0===n?void 0:n.next,c=a?Object(se.parse)(a.split("?")[1]):{},s=c.offset,u=c.limit;return Object.assign({},e,Object(Ut.a)({},o,s?{offset:Number(s),limit:Number(u)}:{offset:r,limit:20}))}return e},topicReview:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.id,o=t.totalVotes,i=t.currentStatus;switch(n){case si.LIKE_TOPIC.success:return Object.assign({},e,Object(Ut.a)({},r,{status:"like",totalVotes:"dislike"===i?o:o+1}));case si.DISLIKE_TOPIC.success:return Object.assign({},e,Object(Ut.a)({},r,{status:"dislike",totalVotes:"like"===i?o:o+1}));case si.CANCEL_LIKE_TOPIC.success:case si.CANCEL_DISLIKE_TOPIC.success:return Object.assign({},e,Object(Ut.a)({},r,{status:"none",totalVotes:o-1}))}return e},generalByQuery:Object(An.e)(si.GET_GENERAL,{mapActionToKey:vi}),generalByQueryInADay:Object(An.e)(si.GET_GENERAL_A_DAY,{mapActionToKey:vi}),generalByQueryInAWeek:Object(An.e)(si.GET_GENERAL_A_WEEK,{mapActionToKey:vi}),generalByQueryInThreeMonths:Object(An.e)(si.GET_GENERAL_THREE_MONTHS,{mapActionToKey:vi}),peopleByQuery:Object(An.e)(si.GET_PEOPLE,{mapActionToKey:vi}),clubentityByQuery:Object(An.e)(si.GET_CLUBENTITY,{mapActionToKey:vi}),clubPostByQuery:Object(An.e)(si.GET_CLUB_POST,{mapActionToKey:vi}),topicByQuery:Object(An.e)(si.GET_TOPIC,{mapActionToKey:vi}),zvideoByQuery:Object(An.e)(si.GET_ZVIDEO,{mapActionToKey:vi}),columnByQuery:Object(An.e)(si.GET_COLUMN,{mapActionToKey:vi}),liveByQuery:Object(An.e)(si.GET_LIVE,{mapActionToKey:vi}),albumByQuery:Object(An.e)(si.GET_ALBUM,{mapActionToKey:vi}),eBookByQuery:Object(An.e)(si.GET_EBOOK,{mapActionToKey:vi}),kmGeneralByQuery:Object(An.e)(si.GET_KM_GENERAL,{mapActionToKey:vi})}),gi=n(144),Oi=Object(G.a)("ask",["GET_MATCH_TOPICS","ADD"]);var yi=Object(Lt.combineReducers)({ask:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(!t.payload||![Oi.ADD.success,Oi.ADD.failure].includes(t.type))return e;var n=t.payload,r=n.id,o=n.code,i=n.message;switch(o){case 103003:return Object.assign({},e,{title:{level:"error",text:"已经存在的问题"}});case 103001:return Object.assign({},e,{detail:{level:"error",text:"过长的补充说明"}});default:return r?{id:r}:Object.assign({},e,{overall:{text:i}})}}}),ji=Object(G.a)("publicEditPermission",["GET_PUBLIC_EDIT_PERMMISSION"]);var Ei=Object(G.b)("readStatus",["UPDATE"]);function Ci(e,t){return{type:Ei.UPDATE,data:{item:e,isRead:t}}}function wi(e,t){if(t){var n=t.type,r=t.id,o=e.readStatus[n];if("answer"===n||"article"===n)return Boolean(o&&o[r])}return!0}function Ti(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type;if(n===Ei.UPDATE){var r=t.data,o=r.item,i=o.type,a=o.id,c=r.isRead;return Object.assign({},e,Object(Ut.a)({},i,Object.assign({},e[i],Object(Ut.a)({},a,c))))}return e}var _i=n(154),Si=Object.assign({},Object(G.a)("draftHistory",["GET_HISTORY","GET_DRAFT","REVERT"]),Object(G.b)("draftHistory",["RESET"]));function Ai(e){return"".concat(e.meta.type,"_").concat(e.meta.id)}function ki(e){return"".concat(e.meta.versionType,"_").concat(e.meta.versionId)}var Ri=Object(Lt.combineReducers)({history:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Si.GET_HISTORY.request:var n=Ai(t);return Object(Ut.a)({},n,{items:e[n]?e[n].items:null,next:e[n]?e[n].next:null,isFetching:!0,isDrained:!1});case Si.GET_HISTORY.success:var r=Ai(t);return Object(Ut.a)({},r,{items:e[r]&&e[r].items?[].concat(Object(i.a)(e[r].items),Object(i.a)(t.payload.data)):t.payload.data,next:t.payload.paging.next,isFetching:!1,isDrained:t.payload.paging.isEnd});case Si.GET_HISTORY.failure:var o=Ai(t);return Object(Ut.a)({},o,{items:e[o]?e[o].items:null,next:e[o]?e[o].next:null,isFetching:!1,isDrained:!0});case Si.RESET:return{};default:return e}},drafts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Si.GET_DRAFT.request:var n=ki(t);return Object.assign({},e,Object(Ut.a)({},n,{data:null,isFetching:!0}));case Si.GET_DRAFT.success:var r=ki(t);return Object.assign({},e,Object(Ut.a)({},r,{data:t.payload,isFetching:!1}));case Si.GET_DRAFT.failure:var o=ki(t);return Object.assign({},e,Object(Ut.a)({},o,{data:null,isFetching:!1}));case Si.RESET:return{};default:return e}}}),Ii=n(237),xi=n(307),Ni=n(428),Di=n(429),Pi=n(254),Li=Object.assign({},Object(G.a)("chat",["SEARCH_USER"]),Object(G.b)("chat",["CLEAR_SEARCH_RESULT"])),Mi=Object(Pi.a)(Li.SEARCH_USER,Li.CLEAR_SEARCH_RESULT),Ui=n(283),Bi=Object(Lt.combineReducers)({recents:xi.b,strangers:Ni.a,friends:Di.b,search:Mi,config:Ui.b}),zi=n(528),Fi=Object(Lt.combineReducers)({chats:Ii.d,inbox:Bi,global:zi.a}),Gi=n(169),Vi=Object(G.a)("specials",["GET_SPECIALS","FOLLOW_SPECIAL","UNFOLLOW_SPECIAL"]);var Hi={entities:{},all:{data:[],paging:{},isLoading:!1}};var qi=n(284),Ki=Object.assign({},Object(G.a)("userProfit",["GET_MEMBER_STATUS","UPDATE_MEMBER_STATUS","GET_USER_PROFIT_PERMISSION"]));function Wi(){return{API:{types:Ki.GET_USER_PROFIT_PERMISSION,endpoint:"mcn/permission/profit"}}}var Yi={permission:{permissionStatus:{zhiZixuan:0,recommend:-1,task:0,plugin:0,infinity:0},visible:!1}};function Qi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yi,t=arguments.length>1?arguments[1]:void 0;return t.type===Ki.GET_USER_PROFIT_PERMISSION.success?Object.assign({},e,{permission:t.payload}):e}var Zi=n(214),Ji=n(155),Xi=n.n(Ji),$i=Object(G.a)("club/tags",["GET","UPDATE_TAG_STATUS","DELETE_TAG","CREATE_TAG"]),ea=Object(G.a)("category",["ALL","LIST"]),ta=Object(G.a)("club",["GET_JOINED_CLUBS","GET_VISITED_CLUBS","GET_CANDIDATE_SYNC_CLUB"]),na=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;return function(n,r){var o,i,a=null===(o=r().club.explore)||void 0===o||null===(i=o.candidateSyncClubs)||void 0===i?void 0:i.paging;return n({API:Object.assign({types:ta.GET_CANDIDATE_SYNC_CLUB},(null==a?void 0:a.next)&&!e?{endpoint:null==a?void 0:a.next}:{endpoint:"/clubs/candidate_sync_clubs",query:{limit:t}}),meta:{isReset:e}})}},ra=Object.assign({},Object(G.a)("profile",["GET","UPDATE","GET_NOTI","MARK_SILENCE","CANCEL_SILENCE"]),Object(G.b)("profile",["UPDATE_NOTI","SET_CLUB_MQTT_STATUS","CLEAR_NOTI","UPDATE_PROFILE"]));var oa=Object(G.a)("admins",["GET","POST","GET_RECRUIT_SETTING","UPDATE_RECRUIT_SETTING","APPLICATION_ADMIN","GET_APPLICATION_LIST","UPDATE_APPLICATION_ADMIN","GET_MASTER"]);var ia=Object(G.a)("member",["GET"]);var aa=n(682),ca=n.n(aa),sa=Object.assign({},Object(G.a)("silences",["GET","CANCEL_SILENCE"]),Object(G.b)("silences",["DELETE"]));var ua=Object(G.a)("club/checkin",["GET","POST"]),la=(Object(G.a)("club/shareLink",["POST"]),function(e){var t=e.parentType,n=e.parentId;return e.isTop?"".concat(t,"/").concat(n,"/top"):"".concat(t,"/").concat(n)}),da=function(e){var t=e.meta.parentId,n=e.rootComment;return{bottomKey:n?"comment/".concat(n):"club_post/".concat(t),topKey:n?"comment/".concat(n,"/top"):"club_post/".concat(t,"/top")}},fa=function(e){var t=e.isDrained,n=e.next;return{isEnd:t,isStart:e.isPrevDrained,next:n,previous:e.previous,totals:e.totals}},pa=function(e){var t=da(e),n=t.bottomKey,r=t.topKey,o=e.result,i=e.topComments,a=void 0===i?{}:i;return{bottomKey:n,bottomIds:o,bottomPaging:fa(e),topKey:r,topIds:a.result,topPaging:a.paging}},ha=n(202),ba=n.n(ha),va={isEnd:!1,isStart:!1,next:null,previous:null,totals:0},ma=[],ga=function(e,t){var n=t.parentType,r=t.parentId,o=t.isTop,i=t.target,a=t.defaultValue,c=la({parentType:n,parentId:r,isTop:o});return e.club.comments[i][c]||a},Oa=function(e){return!String(e).endsWith("_featured")},ya=function(e,t){var n=t.parentType,r=t.parentId;return ga(e,{parentType:n,parentId:r,isTop:!0,target:"paging",defaultValue:va})},ja=function(e,t){var n=t.parentType,r=t.parentId;return ga(e,{parentType:n,parentId:r,target:"paging",defaultValue:va})},Ea=function(e,t){var n=t.parentType,r=t.parentId,o=t.shouldFilterFeatured,i=void 0===o||o;return ga(e,{parentType:n,parentId:r,target:"ids",defaultValue:ma}).filter(i?Oa:function(e){return e})},Ca=function(e){return e.entities.comments},wa=(Object(Br.createSelector)([Ca,function(e,t){var n=t.parentType,r=t.parentId;return ga(e,{parentType:n,parentId:r,isTop:!0,target:"loading"})},ya,function(e,t){var n=t.parentType,r=t.parentId;return ga(e,{parentType:n,parentId:r,isTop:!0,target:"ids",defaultValue:ma}).filter(Oa)},function(e,t){var n=t.parentType,r=t.parentId;return ga(e,{parentType:n,parentId:r,target:"loading"})},ja,Ea],(function(e,t,n,r,o,i,a){return a[0]&&r.includes(a[0])?{topPaging:null,topIds:[],topComments:[],topLoading:!1,bottomLoading:t||o,bottomIds:a=ba()(r,a),bottomComments:a.map((function(t){return e[t]})),bottomPaging:Object.assign({},i,{isStart:n.isStart,previous:n.previous})}:{topPaging:n,topIds:r,topComments:r.map((function(t){return e[t]})),topLoading:t,bottomPaging:i,bottomIds:a,bottomComments:a.map((function(t){return e[t]})),bottomLoading:o}})),Object(Br.createSelector)([Ca,function(e,t){var n=t.postId;return Ea(e,{parentType:"club_post",parentId:n,shouldFilterFeatured:!1})}],(function(e,t){return t.map((function(t){return e[t]})).filter((function(e){return e.featured}))})),Object(G.a)("club_post",["GET_COMMENTS","GET_ANCHOR_COMMENTS","DELETE_COMMNET"])),Ta=Object(G.b)("club_post",["APPEND_COMMENT"]),_a=function(e,t,n){var r=n.isRefresh,o=n.isPrev;return t?!e||r?t:o?Object.assign({},e,{previous:t.previous,isStart:t.isStart,totals:t.totals}):Object.assign({},e,{next:t.next,isEnd:t.isEnd,totals:t.totals}):e},Sa=function(e,t,n){var r=n.isRefresh,o=n.isPrev;return t?!e||r?t:o?ba()(t,e):ba()(e,t):e};var Aa=Object(Lt.combineReducers)({paging:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case wa.GET_COMMENTS.success:var n=t.meta,r=n.isPrev,o=n.isRefresh,i=fa(t),a=la(t.meta);return Object.assign({},e,Object(Ut.a)({},a,_a(e[a],i,{isRefresh:o,isPrev:r})));case wa.GET_ANCHOR_COMMENTS.success:var c,s=t.meta,u=s.isPrev,l=s.isRefresh,d=pa(t),f=d.bottomKey,p=d.bottomPaging,h=d.topKey,b=d.topPaging;return Object.assign({},e,(c={},Object(Ut.a)(c,f,_a(e[f],p,{isRefresh:l,isPrev:u})),Object(Ut.a)(c,h,_a(e[h],b,{isRefresh:l,isPrev:u})),c));default:return e}},loading:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case wa.GET_ANCHOR_COMMENTS.request:case wa.GET_COMMENTS.request:var n,r=da(t),o=r.bottomKey,i=r.topKey;return Object.assign({},e,(n={},Object(Ut.a)(n,o,!0),Object(Ut.a)(n,i,!0),n));case wa.GET_ANCHOR_COMMENTS.success:case wa.GET_ANCHOR_COMMENTS.failure:case wa.GET_COMMENTS.failure:case wa.GET_COMMENTS.success:var a,c=da(t),s=c.bottomKey,u=c.topKey;return Object.assign({},e,(a={},Object(Ut.a)(a,s,!1),Object(Ut.a)(a,u,!1),a));default:return e}},meta:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.meta,o=t.payload;if(n===wa.GET_COMMENTS.success){var i=la(r),a=(o.data,Object(_e.a)(o,["data"]));return Object.assign({},e,Object(Ut.a)({},i,a))}return e},ids:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ta.APPEND_COMMENT:var n=t.meta.commentId,r=la(t.meta);return Object.assign({},e,Object(Ut.a)({},r,Sa(e[r],[n],{})));case wa.GET_COMMENTS.success:var o=t.meta,i=o.isPrev,a=o.isRefresh,c=la(t.meta);return Object.assign({},e,Object(Ut.a)({},c,Sa(e[c],t.result,{isRefresh:a,isPrev:i})));case wa.GET_ANCHOR_COMMENTS.success:var s,u=t.meta,l=u.isPrev,d=u.isRefresh,f=pa(t),p=f.bottomKey,h=f.bottomIds,b=f.topKey,v=f.topIds;return Object.assign({},e,(s={},Object(Ut.a)(s,p,Sa(e[p],h,{isRefresh:d,isPrev:l})),Object(Ut.a)(s,b,Sa(e[b],v,{isRefresh:d,isPrev:l})),s));case En.c.UPDATE_FEATURED.success:var m=la(t),g=e[m],O=g;if(t.expect&&Array.isArray(g)){var y=t.id,j="".concat(y,"_featured");g.includes(y)||g.includes(j)||O.push(j)}return Object.assign({},e,Object(Ut.a)({},m,O));default:return e}}}),ka=Object(G.a)("club_post_list",["GET"]),Ra=Object(G.b)("club_post_list",["UNSHIFT","DELETE"]),Ia=Object(G.a)("post",["GET","DELETE","DELETE_REACTION","UPDATE_REACTION","UPDATE_LIKE","PIN_TO_TOP","REMOVE_FROM_TOP","FEATURE","UNFEATURE","UNINTEREST"]);var xa=n(683),Na=n.n(xa),Da=Object(Lt.combineReducers)({paging:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===ka.GET.success){var n=t.meta,r=n.key,o=n.isPrev,i=n.isRefresh,a=t.next,c=t.previous,s=t.totals,u=t.isPrevDrained,l=t.isDrained,d={next:a,previous:c,totals:s,isStart:u,isEnd:l},f=e[r];return Object.assign({},e,Object(Ut.a)({},r,_a(f,d,{isRefresh:i,isPrev:o})))}return e},loading:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ka.GET.request:var n=t.meta.key;return Object.assign({},e,Object(Ut.a)({},n,!0));case ka.GET.success:case ka.GET.failure:var r=t.meta.key;return Object.assign({},e,Object(Ut.a)({},r,!1));default:return e}},ids:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===ka.GET.success){var n=t.meta,r=n.key,o=n.isPrev,i=n.isRefresh,a=t.result,c=e[r];return Object.assign({},e,Object(Ut.a)({},r,Sa(c,a,{isPrev:o,isRefresh:i})))}if(t.type===Ra.UNSHIFT){var s=t.payload,u=s.key,l=s.postId,d=[l],f=e[u];return Object.assign({},e,Object(Ut.a)({},u,Sa(f,d,{isPrev:!0})))}if(t.type===Ra.DELETE){var p=t.payload,h=p.key,b=p.postId,v=e[h],m=v.indexOf(b);return v.splice(m,1),Object.assign({},e,Object(Ut.a)({},h,v))}if(t.type===Ia.DELETE.success||t.type===Ia.UNINTEREST.success){var g=t.meta.postId,O={};return Object.keys(e).forEach((function(t){var n=e[t];n.includes(g)?O[t]=Na()(n,g):O[t]=n})),O}return e}}),Pa=Object(G.a)("recommend",["GET","SEND_READ","SEND_REAL_READ"]);var La=Object(G.a)("club/application/profile",["GET"]),Ma=Object(Lt.combineReducers)({profile:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return t.type===La.GET.success?t.payload:e}}),Ua=Object(Lt.combineReducers)({tags:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===$i.GET.request){var n=t.meta.clubId;return Object.assign({},e,Object(Ut.a)({},n,Object.assign({isFetching:!0},e[n])))}if(t.type===$i.GET.failure){var r=t.meta.clubId;return Object.assign({},e,Object(Ut.a)({},r,Object.assign({isFetching:!1},e[r])))}if(t.type===$i.GET.success){var o=t.meta.clubId;return Object.assign({},e,Object(Ut.a)({},o,Object.assign({},e[o],{isFetching:!1,data:Xi()([].concat(Object(i.a)(e[o].data||[]),Object(i.a)(t.payload.data)),"id"),topTags:e[o].topTags||t.payload.topTags,paging:t.payload.paging})))}if(t.type===$i.DELETE_TAG.success){var a=t.meta,c=a.clubId,s=a.tagId;return Object.assign({},e,Object(Ut.a)({},c,Object.assign({},e[c],{data:e[c].data.filter((function(e){return e.id!==s})),topTags:e[c].topTags.filter((function(e){return e.id!==s}))})))}if(t.type===$i.UPDATE_TAG_STATUS.success){var u=t.meta,l=u.clubId,d=u.isTop,f=u.id,p=d?e[l].topTags.find((function(e){return e.id===f})):e[l].data.find((function(e){return e.id===f})),h=d?[p].concat(Object(i.a)(e[l].data)):e[l].data.filter((function(e){return e.id!==f})),b=d?e[l].topTags.filter((function(e){return e.id!==f})):[p].concat(Object(i.a)(e[l].topTags));return Object.assign({},e,Object(Ut.a)({},l,Object.assign({},e[l],{data:h,topTags:b})))}return e},admins:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{data:[]},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;if(n===oa.GET.success)return Object.assign({},e,Object(Ut.a)({},t.meta.role,Object.assign({},r,{data:Xi()([].concat(Object(i.a)(e.data),Object(i.a)(r.data)),"id")})));if(n===oa.GET_RECRUIT_SETTING.success)return Object.assign({},e,r);if(n===oa.UPDATE_RECRUIT_SETTING.success)return Object.assign({},e,{openRecruit:t.meta.openRecruit});if(t.type===oa.GET_APPLICATION_LIST.request)return Object.assign({},e,{applicationList:Object.assign({},null==e?void 0:e.applicationList,{isLoading:!0})});if(t.type===oa.GET_APPLICATION_LIST.failure)return Object.assign({},e,{applicationList:Object.assign({},null==e?void 0:e.applicationList,{isLoading:!1})});if(t.type===oa.GET_APPLICATION_LIST.success){var o,a=t.meta.isReset;return Object.assign({},e,{applicationList:{data:a?t.payload.data:[].concat(Object(i.a)((null==e||null===(o=e.applicationList)||void 0===o?void 0:o.data)||[]),Object(i.a)(t.payload.data)),paging:t.payload.paging,isLoading:!1}})}if(n===oa.UPDATE_APPLICATION_ADMIN.success){var c=t.meta.applicationId,s=e.applicationList.data,u=s.filter((function(e){return e.id!==c}));return Object.assign({},e,{applicationList:Object.assign({},null==e?void 0:e.applicationList,{data:u})})}if(n===oa.UPDATE_APPLICATION_ADMIN.failure){var l=t.err.status,d=t.meta.applicationId;if(410===l){var f=e.applicationList.data.filter((function(e){return e.id!==d}));return Object.assign({},e,{applicationList:Object.assign({},null==e?void 0:e.applicationList,{data:f})})}return e}return t.type===oa.GET_MASTER.success?Object.assign({},e,{me:{isMaster:t.payload.isMaster}}):e},members:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{data:[]},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;return n===ia.GET.request?Object.assign({},e,{isFetching:!0}):n===ia.GET.failure?Object.assign({},e,{isFetching:!1}):n===ia.GET.success?Object.assign({},e,r,{isFetching:!1,data:Xi()([].concat(Object(i.a)(e.data),Object(i.a)(r.data)),"id")}):e},explore:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{candidateSyncClubs:{}},t=arguments.length>1?arguments[1]:void 0,n=t.payload,r=void 0===n?{}:n,o=t.meta,a=void 0===o?{}:o;if(t.type===ea.LIST.request){var c,s=a.categoryId,u=(null==e||null===(c=e.clubs)||void 0===c?void 0:c[s])||{};return Object.assign({},e,{clubs:Object.assign({},e.clubs,Object(Ut.a)({},s,Object.assign({},u,{paging:Object.assign({},u.paging,{isLoading:!0})})))})}if(t.type===ea.LIST.success){var l,d,f=a.categoryId,p=(null==e||null===(l=e.clubs)||void 0===l||null===(d=l[f])||void 0===d?void 0:d.data)||[];return Object.assign({},e,{clubs:Object.assign({},e.clubs,Object(Ut.a)({},f,{data:[].concat(Object(i.a)(p),Object(i.a)(r.data)),paging:Object.assign({},r.paging,{isLoading:!1})}))})}if(t.type===ea.ALL.success)return Object.assign({},e,{category:t.payload.categories});if(t.type===ta.GET_JOINED_CLUBS.request)return Object.assign({},e,{joinedClubs:Object.assign({},null==e?void 0:e.joinedClubs,{isLoading:!0})});if(t.type===ta.GET_JOINED_CLUBS.failure)return Object.assign({},e,{joinedClubs:Object.assign({},null==e?void 0:e.joinedClubs,{isLoading:!1})});if(t.type===ta.GET_JOINED_CLUBS.success){var h,b=t.meta.isReset;return Object.assign({},e,{joinedClubs:{data:b?t.payload.data:[].concat(Object(i.a)((null==e||null===(h=e.joinedClubs)||void 0===h?void 0:h.data)||[]),Object(i.a)(t.payload.data)),paging:t.payload.paging,isLoading:!1}})}if(t.type===ta.GET_CANDIDATE_SYNC_CLUB.request)return Object.assign({},e,{candidateSyncClubs:Object.assign({},null==e?void 0:e.candidateSyncClubs,{isLoading:!0})});if(t.type===ta.GET_CANDIDATE_SYNC_CLUB.failure)return Object.assign({},e,{candidateSyncClubs:Object.assign({},null==e?void 0:e.candidateSyncClubs,{isLoading:!1})});if(t.type===ta.GET_CANDIDATE_SYNC_CLUB.success){var v,m=t.meta.isReset;return Object.assign({},e,{candidateSyncClubs:{data:m?t.payload.data:[].concat(Object(i.a)((null==e||null===(v=e.candidateSyncClubs)||void 0===v?void 0:v.data)||[]),Object(i.a)(t.payload.data)),paging:t.payload.paging,isLoading:!1}})}if(t.type===ta.GET_VISITED_CLUBS.request||t.type===ta.GET_VISITED_CLUBS.failure)return Object.assign({},e,{visitedClubs:Object.assign({},null==e?void 0:e.visitedClubs,{isLoading:!1})});if(t.type===ta.GET_VISITED_CLUBS.success){var g,O=t.meta.isResetVisited;return Object.assign({},e,{visitedClubs:{data:O?t.payload.data:[].concat(Object(i.a)((null==e||null===(g=e.visitedClubs)||void 0===g?void 0:g.data)||[]),Object(i.a)(t.payload.data)),paging:t.payload.paging,isLoading:!1}})}return e},profile:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.meta,o=(r=void 0===r?{}:r).maskId;switch(n){case ra.GET.success:case ra.GET_NOTI.success:return Object.assign({},e,Object(Ut.a)({},o,Object.assign({},e[o],t.payload)));case ra.UPDATE.success:var i=t.meta.options;return Object.assign({},e,Object(Ut.a)({},o,Object.assign({},e[o],i)));case ra.MARK_SILENCE.success:return Object.assign({},e,Object(Ut.a)({},o,Object.assign({},e[o],{maskStatus:Object.assign({},e[o].maskStatus,{isSilenced:!0})})));case ra.CANCEL_SILENCE.success:return Object.assign({},e,Object(Ut.a)({},o,Object.assign({},e[o],{maskStatus:Object.assign({},e[o].maskStatus,{isSilenced:!1})})));case ra.UPDATE_NOTI:var a=t.payload,c=a.eventName,s=a.data,u=void 0===s?{}:s,l=t.meta.id,d=u.unreadCount,f=u.clubId;return"CLUB_NEW_NOTI"===c&&l===f?Object.assign({},e,Object(Ut.a)({},o,Object.assign({},e[o],{unreadCount:d}))):e;case ra.CLEAR_NOTI:return Object.assign({},e,Object(Ut.a)({},o,Object.assign({},e[o],{unreadCount:0})));case ra.SET_CLUB_MQTT_STATUS:var p=t.meta.status;return Object.assign({},e,{isClubMqttExisted:p});case ra.UPDATE_PROFILE:var h=t.payload,b=h.name,v=h.avatar,m=h.headline,g=h.maskId,O=h.enableZhihuLink,y=h.clubAccount;return Object.assign({},e,Object(Ut.a)({},g,Object.assign({},e[g],{name:b,avatar:v,headline:m,openZhihuLink:O,clubAccount:y})));default:return e}},checkin:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===ua.GET.success){var n=t.meta.clubId;return Object.assign({},e,Object(Ut.a)({},n,t.payload))}return e},comments:Aa,postList:Da,recommend:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{data:[]},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;if(n===Pa.GET.request)return Object.assign({},e,{isFetching:!0});if(n===Pa.GET.failure)return Object.assign({},e,{isFetching:!1});if(n===Pa.GET.success){var o=t.meta.isReset;return Object.assign({},e,r,{isFetching:!1,data:o?r.data:[].concat(Object(i.a)(e.data),Object(i.a)(r.data))})}return e},silences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{data:[]},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;if(n===sa.GET.request)return Object.assign({},e,{isFetching:!0});if(n===sa.GET.failure)return Object.assign({},e,{isFetching:!1});if(n===sa.GET.success)return Object.assign({},e,r,{isFetching:!1,data:Xi()([].concat(Object(i.a)(e.data),Object(i.a)(r.data)),"id")});if(n===sa.DELETE){var o=r.maskId,a=e.data,c=ca()(a);return a.forEach((function(e,t){e.id===o&&c.splice(t,1)})),Object.assign({},e,{data:c})}return e},application:Ma}),Ba=Object(G.a)("mcn",["LOAD_RANK_LIST","VOTE_PRODUCT","LOAD_ELIGIBLE_CONTENT","LOAD_CONTENT_PRODUCTS","POST_CONTENT_PRODUCTS"]);function za(e){var t={},n=[];return e.forEach((function(e){var r=e.linkcardId;t[r]=e,n.push(r)})),{entities:t,ids:n}}var Fa={products:{},rankList:{total:{},yesterday:{}}};var Ga=Object(Lt.combineReducers)({household:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fa,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload,o=t.meta;if(n===Ba.LOAD_RANK_LIST.success){var i={},a={};for(var c in r){var s=za(r[c]),u=s.entities,l=s.ids;Object.assign(i,u),a[c]=l}return Object.assign({},e,{products:Object.assign({},e.products,i),rankList:Object.assign({},e.rankList,Object(Ut.a)({},o.type,a))})}if(n===Ba.VOTE_PRODUCT.request){var d=o.id,f=o.topicStatus;return Object.assign({},e,{products:Object.assign({},e.products,Object(Ut.a)({},d,Object.assign({},e.products[d],{topicStatus:f})))})}if(n===Ba.VOTE_PRODUCT.failure){var p=o.id,h=o.originalStatus;return Object.assign({},e,{products:Object.assign({},e.products,Object(Ut.a)({},p,Object.assign({},e.products[p],{topicStatus:h})))})}return e}}),Va=Object(G.a)("brand",["LOAD_CONTENT_PLUGIN"]).LOAD_CONTENT_PLUGIN;var Ha=function(e){var t=e.contentType,n=e.contentToken;return"".concat(t,"_").concat(n)},qa=function(e,t){var n,r=e.brand,o=t.contentType,i=t.contentToken;return null==r||null===(n=r.contentPlugin)||void 0===n?void 0:n[Ha({contentType:o,contentToken:i})]},Ka={contentPlugin:{}};var Wa,Ya=n(440),Qa=n(80),Za=n.n(Qa),Ja="knowledgeBaby",Xa="bSide",$a="knowledgeDigital",ec="knowledgeAcg",tc="knowledgeXiaopengCar",nc="knowledgeCar",rc="knowledgeScience",oc="videoMakerAcquisition",ic="videoMakerAcquisitionV2",ac="videoMakerAcquisitionV3",cc="vote",sc="zhihuCar",uc=(Wa={},Object(Ut.a)(Wa,Ja,{id:3}),Object(Ut.a)(Wa,Xa,{id:4}),Object(Ut.a)(Wa,$a,{id:5}),Object(Ut.a)(Wa,ec,{id:10}),Object(Ut.a)(Wa,tc,{id:11}),Object(Ut.a)(Wa,nc,{id:12}),Object(Ut.a)(Wa,rc,{id:15}),Object(Ut.a)(Wa,oc,{id:1}),Object(Ut.a)(Wa,ic,{id:3}),Object(Ut.a)(Wa,ac,{id:5}),Object(Ut.a)(Wa,cc,{id:2}),Object(Ut.a)(Wa,sc,{id:21}),Object.assign({},Object(G.a)("card-collecting",["GET_PROFILE","DRAW_PRIZE","GET_TASK_LIST","GET_SHARE_LINK","GET_GIVER_INFO","GET_INVITER_INFO","GET_PROFILE","GET_CARD_LIST","FUSE_CARD","GET_SHARE_KEY","GET_FUSE_STATUS","GET_RECEIVED_CARD","RECEIVE_CARD","GET_PRIZE_LIST","GET_SHARE_POSTER","WITHDRAW"]),Object(G.b)("card-collecting",["SET_MODAL","SET_PANEL","SHIFT_CARD","SET_NEW_COIN_COUNT","SET_SHARE_INTENTION","CONSUME_NEW_USER_CARD","SET_MESSAGE","CLEAR_RECEIVED_CARD","CLEAR_PRIZE"]))),lc={message:null,profile:{balance:"0",chance:0,coinNum:0,gatherClose:!1,isGotMagicCard:!1,isPay:!1,partitionStart:!1,totalDone:0,withdrawStart:!1},sharePoster:{share:"",sendCard:"",invite:""},shareLink:null,shareIntention:"share",shareKey:null,shareCardId:null,inviterInfo:null,giverInfo:null,prize:null,receivedCard:null,newCoinCount:null,newCardList:[],newUserCardCount:1,taskList:[],prizeList:null,cardList:null,panel:{showTaskPanel:!1,showRewardPanel:!1},modal:{showWelcomeModal:!1,showFusionModal:!1,showFusionPromptModal:!1,showShareModal:!1,showBackModal:!1}},dc=function(){var e,t,n,r,o,i,a,c,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lc,u=arguments.length>1?arguments[1]:void 0,l=u.type,d=u.payload,f=u.meta;if(l.endsWith("/success")&&(null==d||null===(e=d.error)||void 0===e?void 0:e.message))return s.error?s:Object.assign({},s,{message:{text:d.error.message,closePage:l===uc.GET_SHARE_LINK.success}});if(l===uc.SET_MODAL)return Object.assign({},s,{modal:Object.assign({},s.modal,d)});if(l===uc.SET_PANEL)return Object.assign({},s,{panel:Object.assign({},s.panel,d)});if(l===uc.SET_NEW_COIN_COUNT)return Object.assign({},s,{newCoinCount:d});if(l===uc.SHIFT_CARD)return Object.assign({},s,{newCardList:s.newCardList.slice(1)});if(l===uc.DRAW_PRIZE.request)return Object.assign({},s,{prize:null});if(l===uc.DRAW_PRIZE.success)return"element"===(null===(n=d.data)||void 0===n?void 0:n.prizeType)?Object.assign({},s,{newCardList:s.newCardList.concat(Object.assign({},d.data,f))}):Object.assign({},s,{prize:d.data});if(l===uc.GET_TASK_LIST.success)return Object.assign({},s,{taskList:(null===(r=d.data)||void 0===r?void 0:r.taskList)||[]});if(l===uc.GET_SHARE_LINK.success)return d.error?Object.assign({},s,{error:null===(o=d.error)||void 0===o?void 0:o.message}):Object.assign({},s,{shareLink:d.data.linkUrl.replace("intention=invite&","")});if(l===uc.GET_INVITER_INFO.success)return Object.assign({},s,{inviterInfo:d.data});if(l===uc.SET_SHARE_INTENTION)return Object.assign({},s,{shareIntention:d});if(l===uc.GET_PROFILE.success)return Object.assign({},s,{profile:Object.assign({},s.profile,d.data)});if(l===uc.GET_CARD_LIST.success){var p=d.data.elements;return Object.assign({},s,{cardList:p})}return l===uc.GET_GIVER_INFO.success?Object.assign({},s,{giverInfo:d.data}):l===uc.CONSUME_NEW_USER_CARD?Object.assign({},s,{newUserCardCount:s.newUserCardCount-1}):l===uc.GET_SHARE_KEY.success?Object.assign({},s,d.data.posterUrl&&{sharePoster:Object.assign({},s.sharePoster,{sendCard:d.data.posterUrl})},{shareKey:d.data.shareKey,shareCardId:f.shareCardId}):l===uc.GET_FUSE_STATUS.success?Object.assign({},s,{profile:Object.assign({},s.profile,{fusionStatus:(null===(i=d.data)||void 0===i||null===(a=i.collections)||void 0===a||null===(c=a[0])||void 0===c?void 0:c.status)||0})}):l===uc.SET_MESSAGE?Object.assign({},s,{message:d}):l===uc.GET_RECEIVED_CARD.success?Object.assign({},s,{receivedCard:d}):l===uc.CLEAR_RECEIVED_CARD?Object.assign({},s,{receivedCard:null}):l===uc.CLEAR_PRIZE?Object.assign({},s,{prize:null}):l===uc.RECEIVE_CARD.success&&(null==d||null===(t=d.data)||void 0===t?void 0:t.length)?Object.assign({},s,{newCardList:s.newCardList.concat(d.data.filter((function(e){return e.linkId})))}):l===uc.GET_PRIZE_LIST.success&&(null==d?void 0:d.data)?Object.assign({},s,{prizeList:d.data}):l===uc.GET_SHARE_POSTER.success?Object.assign({},s,{sharePoster:Object.assign({},s.sharePoster,Object(Ut.a)({},s.shareIntention,d.data.imgUrl))}):s},fc=Object.assign({},Object(G.a)("zhiboPandian2020",["GET_STATISTICS"]));var pc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;if(t.type===fc.GET_STATISTICS.success){var n=t.payload;return Object.assign({},e,n)}return e},hc=Object.assign({},Object(G.a)("boarding",["GET","GET_SHARE_LINK","GET_SHARE_POSTER","GET_BUBBLES","GET_REWARD_LIST","GET_WITHDRAWAL_LIST","BIND_INVITER","GET_INVITER","GET_INVITE_LIST","CALL","DRAW_REWARD","GET_TASK","GET_NOTIFICATION","WITHDRAW"]),Object(G.b)("boarding",["CLEAR"])),bc={},vc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bc,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case hc.GET.success:return Object.assign({},e,{profile:Object.assign({},e.profile,r.data)});case hc.GET_SHARE_LINK.success:var o,i,a=null===(o=r.error)||void 0===o?void 0:o.code,c=1005===a||1003===a?["邀请任务已结束","快去提醒好友做任务得剩余奖励吧"]:null;return Object.assign({},e,{shareLink:null===(i=r.data)||void 0===i?void 0:i.linkUrl,taskError:c});case hc.GET_SHARE_POSTER.success:var s;return Object.assign({},e,{sharePoster:null===(s=r.data)||void 0===s?void 0:s.imgUrl});case hc.GET_BUBBLES.success:return Object.assign({},e,{bubbles:r.data});case hc.GET_REWARD_LIST.success:return Object.assign({},e,{rewardList:r.data});case hc.GET_WITHDRAWAL_LIST.success:return Object.assign({},e,{withdrawalList:r.data});case hc.GET_INVITER.success:return Object.assign({},e,{inviter:r.data});case hc.GET_INVITE_LIST.success:return Object.assign({},e,{inviteList:r.data});case hc.DRAW_REWARD.success:return Object.assign({},e,{currentReward:r.data});case hc.CLEAR:return Object.assign({},e,{currentReward:null});case hc.GET_TASK.success:return Object.assign({},e,{task:r.data});case hc.GET_NOTIFICATION.success:return Object.assign({},e,{notification:r.data});default:return e}},mc=Object.assign({},Object(G.a)("campaign",["LOAD_SINGLE","TOGGLE_FOLLOW_USER","APPLY_KNOWLEDGE","LOAD_LIST","POLL","REFRESH_VIDEO_LIST","ACCEPT_INVITATION","SUBMIT_INVITATION_CODE","APPLY_VIDEO_MAKER_ACQUISITION","LOAD_INVITEE_INFO","APPLY_ACCEPT_INVITE","APPLY_INVITE","LOAD_VOTE_USERS","APPLY_VOTE","GET_SHARE_POSTER","GET_IDENTITY_VERIFY_STATUS","FOLLOW_USER"]),Object(G.b)("campaign",["UPDATE_ZHIHU2020_RECOMMENDED_MEMBER_FOLLOE_STATUS","REFRESH_RESERVATION","SHARE_POSITION"])),gc="featuredQuestionsConfig";Object(Br.createSelector)([z.e,function(e){var t,n,r,o;return null===(t=e.campaign)||void 0===t||null===(n=t.single)||void 0===n||null===(r=n[gc])||void 0===r||null===(o=r.data)||void 0===o?void 0:o.config}],(function(e,t){return t?e?t:t.filter((function(e){return"1"===e.isPublic})):null}));var Oc=Object(Lt.combineReducers)({single:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.meta,o=t.payload,i=t.needMerge;return n===mc.LOAD_SINGLE.request?Object.assign({},e,Object(Ut.a)({},r.stateKey,Object.assign({},e[r.stateKey],{refreshLoading:!0}))):n===mc.LOAD_SINGLE.success?Object.assign({},e,Object(Ut.a)({},r.stateKey,Object.assign({},i&&e[r.stateKey],o,{refreshLoading:!1}))):n===mc.LOAD_SINGLE.failure?Object.assign({},e,Object(Ut.a)({},r.stateKey,Object.assign({},e[r.stateKey],{refreshLoading:!1}))):n===mc.REFRESH_RESERVATION?Object.assign({},e,Object(Ut.a)({},r.stateKey,Object.assign({},e[r.stateKey],{data:(e[r.stateKey].data||[]).concat(o)}))):n===mc.SHARE_POSITION?Object.assign({},e,Object(Ut.a)({},r.stateKey,Object.assign({},e[r.stateKey],{data:o}))):n===mc.UPDATE_ZHIHU2020_RECOMMENDED_MEMBER_FOLLOE_STATUS?Object.assign({},e,Object(Ut.a)({},r.stateKey,Object.assign({},e[r.stateKey],{data:e[r.stateKey].data.map((function(e){return e.urlToken===o?Object.assign({},e,{isFollowing:!e.isFollowing}):e}))}))):e},list:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=n.type,o=n.meta,a=n.payload;return r===mc.LOAD_LIST.request?Object.assign({},t,Object(Ut.a)({},o.stateKey,Object.assign({},t[o.stateKey],{isLoading:!0}))):r===mc.LOAD_LIST.failure?Object.assign({},t,Object(Ut.a)({},o.stateKey,Object.assign({},t[o.stateKey],{isLoading:!1}))):r===mc.LOAD_LIST.success?Object.assign({},t,Object(Ut.a)({},o.stateKey,Object.assign({},t[o.stateKey],a,{data:[].concat(Object(i.a)(!o.isRefetch&&(null===(e=t[o.stateKey])||void 0===e?void 0:e.data)||[]),Object(i.a)(a.data||[])),isLoading:!1}))):t},videoMakerAcq:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.meta,o=t.payload;return n===mc.LOAD_INVITEE_INFO.success?Object.assign({},e,Object(Ut.a)({},r.stateKey,o)):n===mc.GET_SHARE_POSTER.success?Object.assign({},e,{sharePoster:o.posterUrl}):e},vote:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.meta,o=t.payload;if(n===mc.LOAD_VOTE_USERS.success){var i=r.stateKey,a=o.activityInfo,c=o.userInfo,s=o.items;return{activityInfo:a,userInfo:c,candidatesList:Object.assign({},e.candidatesList,Object(Ut.a)({},i,s))}}return e},cardCollecting:dc,zhiboPandian2020:pc,boarding:vc}),yc=Object(G.a)("knowledgePlan",["APPLY_ACTIVITY","LOAD_ALL_CREATION_RANK_LIST","LOAD_FEATURED_QUESTIONS","LOAD_LIST","SEND_MESSAGE"]);var jc=Object(Lt.combineReducers)({lists:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.meta,o=t.payload;return n===yc.LOAD_LIST.success?Object.assign({},e,Object(Ut.a)({},r.stateKey,o)):e},allCreationRankList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;return n===yc.LOAD_ALL_CREATION_RANK_LIST.success?Object.assign({},e,r):e},featuredQuestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;return n===yc.LOAD_FEATURED_QUESTIONS.request?Object.assign({},e,{isLoading:!0}):n===yc.LOAD_FEATURED_QUESTIONS.failure?Object.assign({},e,{isLoading:!1}):n===yc.LOAD_FEATURED_QUESTIONS.success?Object.assign({},e,{isLoading:!1},r,{data:[].concat(Object(i.a)((null==e?void 0:e.data)||[]),Object(i.a)(r.data))}):e}}),Ec=Object.assign({},Object(G.a)("zvideoRecruit",["GET_FORM","POST_FORM"]));var Cc={form:{platform:"",nickname:"",followerCount:"",domain:"",contact:""},submited:!1,ranking:[]},wc=n(96),Tc=Object.assign({},Object(G.a)("zvideo",["GET","GET_INSERTABLE_ZVIDEOS","VOTE","LIKE","CHANGE_COMMENT_PERMISSION","TOGGLE_VISIBLE_STATUS","GET_DELETE_PROMPT_TEXT","REMOVE","GET_RECOMMENDATIONS","GET_CAMPAIGN","GET_CAMPAIGN_VIDEO","GET_TAGORE_CATEGORY","GET_TAGORE_RECOMMEND_CATEGORY","GET_MATCH_TOPIC","GET_CONTRIBUTABLE_ZVIDEO_CAMPAIGN","CREATE_DRAFT","GET_DRAFT","UPDATE_DRAFT","REMOVE_DRAFT","PUBLISH_DRAFT","PUBLISH_SCHEDULED_DRAFT","GET_ZVIDEO_BANNERS","GET_ZVIDEO_CLUB","UPDATE_ZVIDEO_UPLOAD_FEEDBACK","SYNC_TO_CLUB","GET_QY_ACTIVITY","GET_BATCHVIDEOS"]));function _c(){return function(e,t){var n=(t().zvideos.insertable||{}).paging;return e({API:{types:Tc.GET_INSERTABLE_ZVIDEOS,endpoint:(null==n?void 0:n.next)||"/zvideos/insertable"}})}}function Sc(e){return{API:{types:Tc.GET,endpoint:"zvideos/".concat(e),query:{include:Za()({contribute:!0})}},schema:no.a.ZVIDEO}}function Ac(e){return{API:{types:Tc.GET_ZVIDEO_CLUB,endpoint:"/clubs/zvideos/".concat(e,"/sync_club")},FAILSAFE:!0}}function kc(e){return{API:{types:Tc.GET_DELETE_PROMPT_TEXT,endpoint:"zvideos/".concat(e,"/delete-prompt")},FAILSAFE:!0}}var Rc=[{title:"热门",name:"hot"},{title:"最新",name:"latest"}];function Ic(){return{API:{types:Tc.GET_TAGORE_CATEGORY,endpoint:"/tagore/categories/tree"}}}function xc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=e.title,r=e.content;return{API:{types:Tc.GET_TAGORE_RECOMMEND_CATEGORY,endpoint:"/tagore/categories/recommend",query:Object($.decamelizeKeys)({type:t,title:n,content:r})}}}function Nc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=e.text,r=e.offset,o=void 0===r?0:r,i=e.limit,a=e.firstLevelCategoryId,c=e.secondLevelCategoryId;return{API:{types:Tc.GET_MATCH_TOPIC,endpoint:"/recommendations/match-topics",query:Object($.decamelizeKeys)({type:t,text:n,offset:o,limit:i,firstLevelCategoryId:a,secondLevelCategoryId:c})}}}function Dc(){return{API:{types:Tc.GET_CONTRIBUTABLE_ZVIDEO_CAMPAIGN,endpoint:"/contributable_zvideo_campaigns?limit=50"}}}function Pc(e){return{API:{types:Tc.CREATE_DRAFT,endpoint:"zvideos/drafts",method:"POST",body:Object($.decamelizeKeys)(e)}}}function Lc(e){return{API:{types:Tc.GET_DRAFT,endpoint:"zvideos/drafts/".concat(e),method:"GET"}}}function Mc(e,t){return{API:{types:Tc.UPDATE_DRAFT,endpoint:"zvideos/drafts/".concat(e),method:"PATCH",body:Object($.decamelizeKeys)(t)}}}function Uc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{API:{types:Tc.PUBLISH_DRAFT,endpoint:"zvideos/".concat(e,"/actions/publish"),method:"POST",body:Object($.decamelizeKeys)(t)}}}function Bc(e,t){return{API:{types:Tc.PUBLISH_SCHEDULED_DRAFT,endpoint:"auto-publish/".concat(e,"/zvideo"),method:"POST",body:Object($.decamelizeKeys)({publishAt:t})}}}var zc=function(e,t){return{API:{types:Tc.SYNC_TO_CLUB,method:"POST",endpoint:"clubs/zvideos/".concat(e,"/sync_club"),body:{club_id:t}}}},Fc=Object(Lt.combineReducers)({campaigns:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===Tc.GET_CAMPAIGN.success){var n=t.meta.id;return Object.assign({},e,Object(Ut.a)({},n,Object.assign({},t.payload,{zvideos:Rc.reduce((function(e,t){return Object.assign({},e,Object(Ut.a)({},t.name,{isLoading:!1,paging:{isEnd:!1,next:null},data:[]}))}),{})})))}if(t.type===Tc.GET_CAMPAIGN_VIDEO.request||t.type===Tc.GET_CAMPAIGN_VIDEO.failure){var r=t.meta,o=r.id,a=r.typeName,c=t.type===Tc.GET_CAMPAIGN_VIDEO.request;return Object.assign({},e,Object(Ut.a)({},o,Object.assign({},e[o],{zvideos:Object.assign({},e[o].zvideos,Object(Ut.a)({},a,Object.assign({},e[o].zvideos[a],{isLoading:c})))})))}if(t.type===Tc.GET_CAMPAIGN_VIDEO.success){var s=t.meta,u=s.id,l=s.typeName,d=t.payload,f=d.paging,p=d.data;return Object.assign({},e,Object(Ut.a)({},u,Object.assign({},e[u],{zvideos:Object.assign({},e[u].zvideos,Object(Ut.a)({},l,Object.assign({},e[u].zvideos[l],{isLoading:!1,paging:f,data:[].concat(Object(i.a)(e[u].zvideos[l].data),Object(i.a)(p))})))})))}return e},tagoreCategory:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(t.type===Tc.GET_TAGORE_CATEGORY.success){var n=t.payload.data;return Array.isArray(n)?n:[]}return e},recommendations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Tc.GET_RECOMMENDATIONS.request:return Object.assign({},e,Object(Ut.a)({},t.key,Object.assign({},e[t.key],{isLoading:!0})));case Tc.GET_RECOMMENDATIONS.success:return Object.assign({},e,Object(Ut.a)({},t.key,Object.assign({},e[t.key],{isLoading:!1,paging:t.payload.paging,data:[].concat(Object(i.a)(e[t.key].data||[]),Object(i.a)(t.payload.data))})));case Tc.GET_RECOMMENDATIONS.failure:return Object.assign({},e,Object(Ut.a)({},t.key,Object.assign({},e[t.key],{isLoading:!1})));default:return e}},insertable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Tc.GET_INSERTABLE_ZVIDEOS.request:case Tc.GET_INSERTABLE_ZVIDEOS.failure:return Object.assign({},e,{isLoading:t.type===Tc.GET_INSERTABLE_ZVIDEOS.request});case Tc.GET_INSERTABLE_ZVIDEOS.success:return Object.assign({},e,{isLoading:!1,paging:t.payload.paging,data:Xi()(e.data,t.payload.data,"id")});default:return e}},recruit:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cc,t=arguments.length>1?arguments[1]:void 0;if(t.type===Ec.GET_FORM.success){var n=t.payload;e=Object.assign({},e,{form:Object.assign({},e.form,n),submited:!0})}return e},club:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Tc.GET_ZVIDEO_CLUB.request:case Tc.GET_ZVIDEO_CLUB.failure:return Object.assign({},e,{isLoading:t.type===Tc.GET_ZVIDEO_CLUB.request});case Tc.GET_ZVIDEO_CLUB.success:return Object.assign({},e,{isLoading:!1},t.payload);default:return e}},qyActivityData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===Tc.GET_QY_ACTIVITY.success?Object.assign({},e,t.payload):e},batchVideos:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.meta,r=t.payload;return t.type===Tc.GET_BATCHVIDEOS.success?Object.assign({},e,Object(Ut.a)({},n,r)):e},contribution:wc.b}),Gc=n(159),Vc=Object(G.a)("WALL-E",["LOAD_PROTECT_HISTORY"]);var Hc={protectHistory:{total:0,pages:{},entities:{}}};var qc=n(441),Kc=Object(G.a)("helpCenter",["LOAD_QUESTION_CATEGORIES","LOAD_CATEGORY_QUESTIONS","LOAD_COMMON_QUESTIONS","LOAD_QUESTION_DETAIL","LOAD_RELATED_QUESTIONS","SEARCH_QUESTIONS"]);var Wc={entities:{question:{},category:{}},categories:[],commonQuestions:[],relatedQuestions:{}};var Yc=Object(G.a)("republish",["GET_ARTICLE_REPUBLISH_REQUESTS","GET_ALL_REPUBLISH_REQUESTS","POST_ARTICLE_REPUBLISH","UPDATE_REPUBLISH_PERMISSION"]),Qc={cancel:"canceled",approve:"approved",reject:"rejected"},Zc={column:"column_owner",article:"article_author"};function Jc(e){return{meta:{entityType:"article"},API:{types:Yc.GET_ARTICLE_REPUBLISH_REQUESTS,endpoint:"/articles/".concat(e,"/republish-requests")},FAILSAFE:!0,schema:no.a.REPUBLISH_ARRAY}}function Xc(e){var t=e.requestId,n=e.action,r=e.articleId,o=e.columnId;return{API:{types:Yc.POST_ARTICLE_REPUBLISH,endpoint:"/articles/".concat(r,"/republish"),method:"POST",body:Object.assign({action:n},"create"===n?{column:o}:{request_id:t})},meta:{articleId:r,requestId:t,result:n},UPDATE:{success:function(){return{republishes:Object(Ut.a)({},t,{state:Qc[n]})}}}}}var $c=function(e,t){return(null==t?void 0:t[0])?t.map((function(t){var n,r=t.object,o=r.id,i=r.schema,a=t.destination,c=t.proposer,s=t.approver,u=Object(_e.a)(t,["object","destination","proposer","approver"]);return Object.assign({},u,{object:null===(n=e.entities["".concat(i,"s")])||void 0===n?void 0:n[o],destination:e.entities.columns[a],approver:e.entities.users[s],proposer:e.entities.users[c]})})):[]},es=function(e){var t=e.isAuthor,n=e.isProfile,r=e.requestType;return n?"approver":t&&"self_recommend"===r?"proposer":"approver"},ts=function(e,t){var n=t.isAuthor,r=t.isProfile,o=t.entityType,i=t.requestType,a=e.entities.republishes||{},c=Object.keys(a).map((function(e){return a[e]})).filter((function(){var t,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=es({isAuthor:n,isProfile:r,requestType:i});if("column"===o)return a[c]===e.currentUser&&"self_recommend"===a.requestType;var s=i||"invite";return a[c]===e.currentUser&&(null===(t=a.object)||void 0===t?void 0:t.schema)===o&&a.requestType===s}));return $c(e,c)},ns=function(e){var t=e.entities.republishes||{},n=Object.keys(t).map((function(e){return t[e]})).filter((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.proposer===e.currentUser&&"pending"===t.state&&"self_recommend"===t.requestType}));return $c(e,n)},rs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.meta,o=t.payload;if(n===Yc.GET_ARTICLE_REPUBLISH_REQUESTS.request||n===Yc.GET_ARTICLE_REPUBLISH_REQUESTS.failure||n===Yc.GET_ALL_REPUBLISH_REQUESTS.failure||n===Yc.GET_ALL_REPUBLISH_REQUESTS.request){var i=r.entityType;return Object.assign({},e,Object(Ut.a)({},i,Object.assign({},e[i],{isLoading:n===Yc.GET_ARTICLE_REPUBLISH_REQUESTS.request||n===Yc.GET_ALL_REPUBLISH_REQUESTS.request})))}if(n===Yc.GET_ALL_REPUBLISH_REQUESTS.success||n===Yc.GET_ARTICLE_REPUBLISH_REQUESTS.success){var a=r.entityType,c=o.paging;return Object.assign({},e,Object(Ut.a)({},a,Object.assign({},e[a],{paging:c,isLoading:!1})))}return e},os=Object(G.a)("commercialReport",["GET_COMMERCIAL_REPORT_INFO"]).GET_COMMERCIAL_REPORT_INFO,is=Object(G.b)("commercialReport",["UPDATE_LOCAL_ANSWER_COMMERCIAL_REPORT_INFO"]).UPDATE_LOCAL_ANSWER_COMMERCIAL_REPORT_INFO,as={commercialTypes:[]};var cs=function(e){return e.creatorMCN},ss=Object(Br.createSelector)(cs,(function(e){return e.mcn})),us=(Object(Br.createSelector)(ss,(function(e){return e.id})),Object(Br.createSelector)(cs,(function(e){return e.isNoAuth})),Object(Br.createSelector)(cs,(function(e){return e.mcnStatistics})),Object(Br.createSelector)(cs,(function(e){return e.creatorManageData})),Object(Br.createSelector)(cs,(function(e){return e.creatorManageDataTotal})),Object(Br.createSelector)(cs,(function(e){return e.mcnDomains})),Object.assign({},Object(G.a)("creator-mcn",["GET_HOME_DATA","LOAD_ACTIVITY_LIST","GET_CREATOR_MANAGE_DATA","SEARCH_PEOPLE","DOWNLOAD_CREATORS","GET_MCN_DOMAINS","GET_INVITE_STATUS","LAUNCH_UNBIND","ACCEPT_UNBIND","REJECT_UNBIND","SUBMIT_INVITATION","GET_CONTENTS","GET_CONTENT_ANALYSIS","DOWNLOAD_CONTENTS","GET_CREATOR_STATISTICS","DOWNLOAD_CREATOR_STATISTICS","GET_CREATOR_INCOME","GET_CREATOR_INCOME_STATISTICS","GET_MCN_INCOME","GET_INCOME_TYPE","DOWNLOAD_CREATOR_INCOME","DOWNLOAD_MCN_INCOME"])));var ls={mcn:{},mcnStatistics:{},isNoAuth:!1,creatorManageData:[],creatorManageDataTotal:1,mcnDomains:[]};function ds(e,t){return e===t}function fs(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}function ps(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}var hs=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];var i=0,a=r.pop(),c=ps(r),s=e.apply(void 0,[function(){return i++,a.apply(null,arguments)}].concat(n)),u=e((function(){for(var e=[],t=c.length,n=0;n<t;n++)e.push(c[n].apply(null,arguments));return s.apply(null,e)}));return u.resultFunc=a,u.dependencies=c,u.recomputations=function(){return i},u.resetRecomputations=function(){return i=0},u}}((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ds,n=null,r=null;return function(){return fs(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}));n(350);var bs=function(){var e=hs.apply(void 0,arguments),t=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e.apply(void 0,[Object(Dr.isDraft)(t)?Object(Dr.current)(t):t].concat(r))};return t};function vs(){return(vs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;function ms(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function gs(e,t){function n(){if(t){var n=t.apply(void 0,arguments);if(!n)throw new Error("prepareAction did not return an object");return vs({type:e,payload:n.payload},"meta"in n&&{meta:n.meta},{},"error"in n&&{error:n.error})}return{type:e,payload:arguments.length<=0?void 0:arguments[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}function Os(e){return["type","payload","error","meta"].indexOf(e)>-1}function ys(e){var t,n={},r=[],o={addCase:function(e,t){var r="string"==typeof e?e:e.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=t,o},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),o},addDefaultCase:function(e){return t=e,o}};return e(o),[n,r,t]}function js(e){var t=e.name,n=e.initialState;if(!t)throw new Error("`name` is a required option for createSlice");var r=e.reducers||{},o=void 0===e.extraReducers?[]:"function"==typeof e.extraReducers?ys(e.extraReducers):[e.extraReducers],i=o[0],a=void 0===i?{}:i,c=o[1],s=void 0===c?[]:c,u=o[2],l=void 0===u?void 0:u,d=Object.keys(r),f={},p={},h={};d.forEach((function(e){var n,o,i=r[e],a=t+"/"+e;"reducer"in i?(n=i.reducer,o=i.prepare):n=i,f[e]=n,p[a]=n,h[e]=o?gs(a,o):gs(a)}));var b=function(e,t,n,r){void 0===n&&(n=[]);var o="function"==typeof t?ys(t):[t,n,r],i=o[0],a=o[1],c=o[2],s=Object(Dr.default)(e,(function(){}));return function(e,t){void 0===e&&(e=s);var n=[i[t.type]].concat(a.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[c]),n.reduce((function(e,n){if(n){if(Object(Dr.isDraft)(e)){var r=n(e,t);return void 0===r?e:r}if(Object(Dr.isDraftable)(e))return Object(Dr.default)(e,(function(e){return n(e,t)}));var o=n(e,t);if(void 0===o){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return e}),e)}}(n,vs({},a,{},p),s,l);return{name:t,reducer:b,actions:h,caseReducers:f}}function Es(e){return function(t,n){function r(e){return ms(t=e)&&"string"==typeof t.type&&Object.keys(t).every(Os);var t}var o=function(t){r(n)?e(n.payload,t):e(n,t)};return Object(Dr.isDraft)(t)?(o(t),t):Object(Dr.default)(t,o)}}function Cs(e,t){return t(e)}function ws(e){function t(t,n){var r=Cs(t,e);r in n.entities||(n.ids.push(r),n.entities[r]=t)}function n(e,n){Array.isArray(e)||(e=Object.values(e));var r=e,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var a;if(o){if(i>=r.length)break;a=r[i++]}else{if((i=r.next()).done)break;a=i.value}t(a,n)}}function r(e,t){var n=!1;e.forEach((function(e){e in t.entities&&(delete t.entities[e],n=!0)})),n&&(t.ids=t.ids.filter((function(e){return e in t.entities})))}function o(t,n){var r={},o={};(t.forEach((function(e){e.id in n.entities&&(o[e.id]={id:e.id,changes:vs({},o[e.id]?o[e.id].changes:null,{},e.changes)})})),(t=Object.values(o)).length>0)&&(t.filter((function(t){return function(t,n,r){var o=r.entities[n.id],i=Object.assign({},o,n.changes),a=Cs(i,e),c=a!==n.id;return c&&(t[n.id]=a,delete r.entities[n.id]),r.entities[a]=i,c}(r,t,n)})).length>0&&(n.ids=n.ids.map((function(e){return r[e]||e}))))}function i(t,r){Array.isArray(t)||(t=Object.values(t));var i=[],a=[],c=t,s=Array.isArray(c),u=0;for(c=s?c:c[Symbol.iterator]();;){var l;if(s){if(u>=c.length)break;l=c[u++]}else{if((u=c.next()).done)break;l=u.value}var d=l,f=Cs(d,e);f in r.entities?a.push({id:f,changes:d}):i.push(d)}o(a,r),n(i,r)}return{removeAll:(a=function(e){Object.assign(e,{ids:[],entities:{}})},c=Es((function(e,t){return a(t)})),function(e){return c(e,void 0)}),addOne:Es(t),addMany:Es(n),setAll:Es((function(e,t){Array.isArray(e)||(e=Object.values(e)),t.ids=[],t.entities={},n(e,t)})),updateOne:Es((function(e,t){return o([e],t)})),updateMany:Es(o),upsertOne:Es((function(e,t){return i([e],t)})),upsertMany:Es(i),removeOne:Es((function(e,t){return r([e],t)})),removeMany:Es(r)};var a,c}function Ts(e,t){var n=ws(e);function r(t,n){Array.isArray(t)||(t=Object.values(t));var r=t.filter((function(t){return!(Cs(t,e)in n.entities)}));0!==r.length&&a(r,n)}function o(t,n){var r=[];t.forEach((function(t){return function(t,n,r){if(!(n.id in r.entities))return!1;var o=r.entities[n.id],i=Object.assign({},o,n.changes),a=Cs(i,e);return delete r.entities[n.id],t.push(i),a!==n.id}(r,t,n)})),0!==r.length&&a(r,n)}function i(t,n){Array.isArray(t)||(t=Object.values(t));var i=[],a=[],c=t,s=Array.isArray(c),u=0;for(c=s?c:c[Symbol.iterator]();;){var l;if(s){if(u>=c.length)break;l=c[u++]}else{if((u=c.next()).done)break;l=u.value}var d=l,f=Cs(d,e);f in n.entities?a.push({id:f,changes:d}):i.push(d)}o(a,n),r(i,n)}function a(n,r){n.sort(t),n.forEach((function(t){r.entities[e(t)]=t}));var o=Object.values(r.entities);o.sort(t);var i=o.map(e);(function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(e[n]!==t[n])return!1;return!0})(r.ids,i)||(r.ids=i)}return{removeOne:n.removeOne,removeMany:n.removeMany,removeAll:n.removeAll,addOne:Es((function(e,t){return r([e],t)})),updateOne:Es((function(e,t){return o([e],t)})),upsertOne:Es((function(e,t){return i([e],t)})),setAll:Es((function(e,t){Array.isArray(e)||(e=Object.values(e)),t.entities={},t.ids=[],r(e,t)})),addMany:Es(r),updateMany:Es(o),upsertMany:Es(i)}}function _s(e){void 0===e&&(e={});var t=vs({sortComparer:!1,selectId:function(e){return e.id}},e),n=t.selectId,r=t.sortComparer;return vs({selectId:n,sortComparer:r},{getInitialState:function(e){return void 0===e&&(e={}),Object.assign({ids:[],entities:{}},e)}},{},{getSelectors:function(e){var t=function(e){return e.ids},n=function(e){return e.entities},r=bs(t,n,(function(e,t){return e.map((function(e){return t[e]}))})),o=function(e,t){return t},i=function(e,t){return e[t]},a=bs(t,(function(e){return e.length}));if(!e)return{selectIds:t,selectEntities:n,selectAll:r,selectTotal:a,selectById:bs(n,o,i)};var c=bs(e,n);return{selectIds:bs(e,t),selectEntities:c,selectAll:bs(e,r),selectTotal:bs(e,a),selectById:bs(c,o,i)}}},{},r?Ts(n,r):ws(n))}"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var Ss=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t};var As,ks;Object(Dr.enableES5)();var Rs=function(e){if(!e)return!1;var t=e.childCommentCount,n=e.isDelete,r=e.collapsed;return t>0||!n&&!r},Is=Object.assign({},Object(G.a)("commentMangage",["LOAD_UPDATE_STATUS","UPDATE_VISIT_STATUS","LOAD_COMMENT_LIST","UPDATE_COMMENT","UPDATE_COMMENT_LIKE","UPDATE_COMMENT_DISLIKE","UPDATE_COMMENT_HOT","UPDATE_COMMENT_COLLAPSED","DELETE_COMMENT","APPROVE_COMMENT","REJECT_COMMENT","REPLY_COMMENT","LOAD_SUB_COMMENT_LIST","UPDATE_SUB_COMMENT","UPDATE_SUB_COMMENT_LIKE","UPDATE_SUB_COMMENT_DISLIKE","UPDATE_SUB_COMMENT_HOT","UPDATE_SUB_COMMENT_COLLAPSED","DELETE_SUB_COMMENT","APPROVE_SUB_COMMENT","REJECT_SUB_COMMENT","REPLY_SUB_COMMENT"]));var xs=_s(),Ns=function(e){return e.commentManage.commentList},Ds=(xs.getSelectors(Ns),_s()),Ps=function(e){return e.commentManage.subCommentList};Ds.getSelectors(Ps);var Ls=xs.getInitialState({nextOffset:0,urlToken:""}),Ms=function(e,t){var n=t.meta;xs.updateOne(e,n)},Us=js({name:"commentManage/commentList",initialState:Ls,reducers:{resetCommentList:function(e,t){var n=t.payload;return Object.assign({},Ls,{urlToken:n})}},extraReducers:(As={},Object(Ut.a)(As,Is.LOAD_COMMENT_LIST.success,(function(e,t){var n,r=t.payload,o=t.meta.urlToken;o===e.urlToken&&r&&(e.nextOffset=r.nextOffset,e.urlToken=o,xs.addMany(e,((null===(n=r.data)||void 0===n?void 0:n.filter(Rs))||[]).map((function(e){return Object.assign({},e,{_id:Ss()})}))))})),Object(Ut.a)(As,Is.UPDATE_COMMENT_LIKE.request,Ms),Object(Ut.a)(As,Is.UPDATE_COMMENT_DISLIKE.request,Ms),Object(Ut.a)(As,Is.UPDATE_COMMENT_HOT.request,Ms),Object(Ut.a)(As,Is.UPDATE_COMMENT_COLLAPSED.request,Ms),Object(Ut.a)(As,Is.DELETE_COMMENT.success,Ms),Object(Ut.a)(As,Is.REPLY_COMMENT.success,Ms),Object(Ut.a)(As,Is.APPROVE_COMMENT.success,Ms),Object(Ut.a)(As,Is.UPDATE_COMMENT.success,(function(e,t){var n=t.payload;n&&xs.updateOne(e,{id:n.id,changes:n})})),As)}),Bs=(Us.actions.resetCommentList,Ds.getInitialState({paging:{next:"",isEnd:!1}})),zs=function(e,t){var n=t.meta,r=t.payload;n.inConversation&&Ds.addOne(e,r)},Fs=function(e,t){var n=t.meta;Ds.updateOne(e,n)},Gs=js({name:"commentManage/subCommentList",initialState:Bs,reducers:{resetSubCommentList:function(){return Bs}},extraReducers:(ks={},Object(Ut.a)(ks,Is.LOAD_SUB_COMMENT_LIST.success,(function(e,t){var n,r=t.payload;r&&(e.paging=r.paging,Ds.addMany(e,((null===(n=r.data)||void 0===n?void 0:n.filter(Rs))||[]).map((function(e){return Object.assign({},e,{_id:Ss()})}))))})),Object(Ut.a)(ks,Is.UPDATE_SUB_COMMENT_LIKE.request,Fs),Object(Ut.a)(ks,Is.UPDATE_SUB_COMMENT_DISLIKE.request,Fs),Object(Ut.a)(ks,Is.UPDATE_SUB_COMMENT_HOT.request,Fs),Object(Ut.a)(ks,Is.UPDATE_SUB_COMMENT_COLLAPSED.request,Fs),Object(Ut.a)(ks,Is.DELETE_SUB_COMMENT.success,Fs),Object(Ut.a)(ks,Is.REPLY_SUB_COMMENT.success,zs),Object(Ut.a)(ks,Is.REPLY_COMMENT.success,zs),Object(Ut.a)(ks,Is.APPROVE_SUB_COMMENT.success,Fs),Object(Ut.a)(ks,Is.UPDATE_SUB_COMMENT.success,(function(e,t){var n=t.payload;n&&Ds.updateOne(e,{id:n.id,changes:n})})),ks)}),Vs=(Gs.actions.resetSubCommentList,Object(Lt.combineReducers)({commentList:Us.reducer,subCommentList:Gs.reducer})),Hs=Object(G.a)("zhiPlus",["LOAD_ZHIPLUS_PERMISSION"]);var qs={permissionStatus:9999};var Ks={common:yi,loading:Bt,club:Ua,entities:gn.a,currentUser:B.c,account:Ft.a,settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hn,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;if(n===Kt.success)return Object.assign({},e,{socialBind:r});if(n===Ht.success||n===qt.success){var o=t.account,i=Object.assign({},e.socialBind);return i[o]&&delete i[o],Object.assign({},e,{socialBind:i})}if(n===Wt.success)return Object.assign({},e,{inboxMsg:r.inboxmsg});if(n===Yt.success){var a=t.input;return Object.assign({},e,{inboxMsg:Object.assign({},e.inboxMsg,a)})}if(n===Qt.success)return Object.assign({},e,{notification:r});if(n===Zt.success){var c=t.input,s=c.key,u=c.option,l=Object.assign({},e.notification[s],u);return Object.assign({},e,{notification:Object.assign({},e.notification,Object(Ut.a)({},s,l))})}if(n===$t.success)return Object.assign({},e,{privacyFlag:r.memberPrivateFlag});if(n===Jt.success)return Object.assign({},e,{email:r});if(n===Xt.success){var d=t.input;return Object.assign({},e,{email:Object.assign({},e.email,d)})}if(n===en.success)return Object.assign({},e,{privacyFlag:!e.privacyFlag});if(n===tn.request)return Object.assign({},e,{blockedUsers:bn(e.blockedUsers,!0)});if(n===tn.success)return Object.assign({},e,{blockedUsers:vn(t)});if(n===tn.failure)return Object.assign({},e,{blockedUsers:bn(e.blockedUsers,!1)});if(n===fn.request)return Object.assign({},e,{wallEBlacklist:bn(e.wallEBlacklist,!0)});if(n===fn.success)return Object.assign({},e,{wallEBlacklist:vn(t)});if(n===fn.failure)return Object.assign({},e,{wallEBlacklist:bn(e.wallEBlacklist,!1)});if(n===pn.success)return Object.assign({},e,{wallEBlacklist:mn(e.wallEBlacklist,t.meta.urlToken)});if(n===nn.success)return Object.assign({},e,{blockedUsers:mn(e.blockedUsers,t.meta.urlToken)});if(n===rn.request)return Object.assign({},e,{blockedFollowees:bn(e.blockedFollowees,!0)});if(n===rn.success)return Object.assign({},e,{blockedFollowees:vn(t)});if(n===rn.failure)return Object.assign({},e,{blockedFollowees:bn(e.blockedFollowees,!1)});if(t.type===dn.success)return Object.assign({},e,{account:t.payload});if(n===on.success)return Object.assign({},e,{blockedFollowees:mn(e.blockedFollowees,t.urlToken)});if(n===an.request)return Object.assign({},e,{ignoredTopics:bn(e.ignoredTopics,!0)});if(n===an.success)return Object.assign({},e,{ignoredTopics:vn(t)});if(n===an.failure)return Object.assign({},e,{ignoredTopics:bn(e.ignoredTopics,!1)});if(n===cn.success)return Object.assign({},e,{restrictedTopics:r.data});if(n===sn.success){var f=e.ignoredTopics,p=f.paging,h=f.data;return Object.assign({},e,{ignoredTopics:{paging:Object.assign({},p,{totals:p.totals-1}),data:h.filter((function(e){return e.id!==t.id}))}})}if(n===un.success)return Object.assign({},e,{laboratory:{useTopstory:r.useTopstory.enable}});if(n===ln.success){var b=t.input.useTopstory;return Object.assign({},e,{laboratory:{useTopstory:b}})}return e},notification:Xr.e,people:On.b,env:z.b,me:B.i,label:_i.b,ecommerce:Mt.b},Ws={comments:jn.c,commentsV2:En.d,pushNotifications:Qr.a,messages:Jr.a,register:po.b,login:ho.b,switches:Jo,captcha:uo.e,sms:fo.a,chat:Fi,emoticons:Gi.c,creator:gi.b},Ys=(Object(Lt.combineReducers)(Object.assign({},Ks,Ws,{question:yn.e,shareTexts:Yr,answers:zt.e,banner:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===so.GET.success){var n=t.id,r=t.location,o=t.payload.banner;e=Object.assign({},e,Object(Ut.a)({},n,Object.assign({},e[n],Object(Ut.a)({},r,{banner:o,isDrained:!0}))))}if(t.type===so.CLOSE){var i=t.id,a=t.location;e=Object.assign({},e,Object(Ut.a)({},i,Object.assign({},e[i],Object(Ut.a)({},a,null))))}return e},topic:lo.d,captcha:uo.e,sms:fo.a,explore:vo,articles:mo.b,favlists:go.a,pins:jo,topstory:xo,upload:Zr.a,video:No.b,zvideos:Fc,guide:Po,reward:Xo.d,search:mi,creator:gi.b,publicEditPermission:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===ji.GET_PUBLIC_EDIT_PERMMISSION.success){var n=t.payload,r=n.isQuestionRedirectEditable,o=n.isQuestionTopicEditable,i=n.isQuestionEditable;return Object.assign({},e,{isQuestionRedirectEditable:r,isQuestionTopicEditable:o,isQuestionEditable:i})}return e},vessay:Kr,readStatus:Ti,draftHistory:Ri,notifications:co,specials:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hi,t=arguments.length>1?arguments[1]:void 0;if(t.type===Vi.GET_SPECIALS.request)return Object.assign({},e,{all:Object.assign({},e.all,{isLoading:!0})});if(t.type===Vi.GET_SPECIALS.success){var n=t.payload,r=n.data,o=n.paging;return Object.assign({},e,{entities:Object.assign({},e.entities||{},r.reduce((function(e,t){return Object.assign(Object(Ut.a)({},t.id,t),e)}),{})),all:{data:[].concat(Object(i.a)(e.all.data),Object(i.a)(r.map((function(e){return e.id})))),paging:o,isLoading:!1}})}if(t.type===Vi.GET_SPECIALS.failure)return Object.assign({},e,{all:Object.assign({},e.all,{paging:Object.assign({},e.all.paging,{isEnd:!0}),isLoading:!1})});if([Vi.FOLLOW_SPECIAL.request,Vi.UNFOLLOW_SPECIAL.failure].includes(t.type)){var a=t.meta.id,c=e.entities;return c[a]?Object.assign({},e,{entities:Object.assign({},c,Object(Ut.a)({},a,Object.assign({},c[a],{isFollowing:!0})))}):e}if([Vi.UNFOLLOW_SPECIAL.request,Vi.FOLLOW_SPECIAL.failure].includes(t.type)){var s=t.meta.id,u=e.entities;return u[s]?Object.assign({},e,{entities:Object.assign({},u,Object(Ut.a)({},s,Object.assign({},u[s],{isFollowing:!1})))}):e}return e},collections:qi.b,userProfit:Qi,mcn:Zi.a,mcnActivity:Ga,brand:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ka,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;if(n===Va.success){var o=e.contentPlugin,i=t.meta,a=Ha(i);return Object.assign({},e,{contentPlugin:Object.assign({},o,Object(Ut.a)({},a,r))})}return e},host:Ya.a,campaign:Oc,knowledgePlan:jc,wallE:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hc,t=arguments.length>1?arguments[1]:void 0;if(t.type===Vc.LOAD_PROTECT_HISTORY.success){var n=t.meta,r=t.payload,o=r.data,i=r.paging.totals;return Object.assign({},e,{protectHistory:Object(Gc.a)(e.protectHistory,n.paging,{data:o,total:i})})}return e},roundtables:qc.a,helpCenter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wc,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload,o=t.meta;if(n===Kc.LOAD_QUESTION_CATEGORIES.success){var i={},a=r.data.map((function(e){var t=e.id;return i[t]=Object.assign({},e,{questions:[]}),t}));return Object.assign({},e,{entities:Object.assign({},e.entities,{category:i}),categories:a})}if(n===Kc.LOAD_CATEGORY_QUESTIONS.success){var c={},s=r.data.map((function(e){var t=e.id;return c[t]=e,t}));return Object.assign({},e,{entities:Object.assign({},e.entities,{category:Object.assign({},e.entities.category,Object(Ut.a)({},o.categoryId,Object.assign({},e.entities.category[o.categoryId],{questions:s}))),question:Object.assign({},e.entities.question,c)})})}if(n===Kc.LOAD_COMMON_QUESTIONS.success){var u={},l=r.data.map((function(e){var t=e.id;return u[t]=e,t}));return Object.assign({},e,{entities:Object.assign({},e.entities,{question:Object.assign({},e.entities.question,u)}),commonQuestions:l})}if(n===Kc.LOAD_QUESTION_DETAIL.success)return Object.assign({},e,{entities:Object.assign({},e.entities,{question:Object.assign({},e.entities.question,Object(Ut.a)({},r.id,r))})});if(n===Kc.LOAD_RELATED_QUESTIONS.success){var d={},f=r.data.map((function(e){var t=e.id;return d[t]=e,t}));return Object.assign({},e,{entities:Object.assign({},e.entities,{question:Object.assign({},e.entities.question,d)}),relatedQuestions:Object.assign({},e.relatedQuestions,Object(Ut.a)({},o.questionId,f))})}return e},republish:rs,commercialReport:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:as,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload,o=t.meta;if(n===os.success){var i=r.data||{},a=i.isReported,c=i.commercialTypes,s=void 0===c?[]:c,u=o.type,l=o.urlToken;return Object.assign({},e,{commercialTypes:s},l&&Object(Ut.a)({},"".concat(u,"s"),Object(Ut.a)({},l,{isCommercialReported:a,selectedCommercialTypes:s.filter((function(e){return e.isRecognized}))})))}if(n===is){var d=o.questionId,f=r.isCommercialReported;return Object.assign({},e,{questions:Object(Ut.a)({},d,{isCommercialReported:f})})}return e},creatorMCN:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ls,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case us.GET_HOME_DATA.success:return Object.assign({},e,{mcn:n.mcn,mcnStatistics:n.mcnStatistics});case us.GET_HOME_DATA.failure:return 2e4===t.err.payload.code?Object.assign({},e,{isNoAuth:!0}):e;case us.GET_CREATOR_MANAGE_DATA.success:return Object.assign({},e,{creatorManageData:n.data,creatorManageDataTotal:n.paging.totals});case us.GET_MCN_DOMAINS.success:return Object.assign({},e,{mcnDomains:n.data})}return e},commentManage:Vs,zhiPlus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qs,t=arguments.length>1?arguments[1]:void 0;if(t.type===Hs.LOAD_ZHIPLUS_PERMISSION.success){var n=t.payload.permissionStatus;return Object.assign({},e,{permissionStatus:null==n?void 0:n.zhiZixuan})}return e}})),n(140)),Qs=n(57),Zs=Object(G.a)("recommendations",["GET","GET_HOME"]);function Js(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){return n({API:{root:Qs.c,types:Zs.GET_HOME,endpoint:"/recommendations/".concat(e),query:t}})}}var Xs=Object.assign({},Object(G.a)("requestColumn",["SUBMIT_REQUEST","CHECK_REQUEST","GET_CATEGORIES"]),Object(G.b)("requestColumn",["CLEAR_REQUEST_ERROR"]));var $s={categories:[],error:null},eu=Object(G.a)("previewArticle",["GET"]);var tu=n(168),nu=n.n(tu),ru=n(160),ou=new to.b.Union({answer:no.a.ANSWER,article:no.a.ARTICLE,pin:no.a.PIN,zvideo:no.a.ZVIDEO},(function(e){var t=e.type;return Object($.camelize)(t)})),iu=new to.b.Array(ou),au=Object(G.a)("column",["GET","UPDATE","REMOVE","GET_PINNED_ARTICLE","SET_PINNED_ARTICLE","GET_PINNED_ITEMS","TOGGLE_PINNED_ITEM","REMOVE_COLUMN_COLLECT","UNCOLLECT_ITEM","GET_ARTICLES","GET_ITEMS","REFRESH_ITEMS","REMOVE_COLUMN_ARTICLE","SET_COAUTHOR","GET_COAUTHORS","CHANGE_COAUTHOR_ROLE","REMOVE_COAUTHOR","UNSUBSCRIBE"]),cu=(Za()({data:[{admin_closed_comment:!0,comment_count:!0,suggest_edit:!0,is_title_image_full_screen:!0,can_comment:!0,upvoted_followees:!0,can_open_tipjar:!0,can_tip:!0,voteup_count:!0,voting:!0,topics:!0,review_info:!0,author:{is_following:!0,is_labeled:!0,label_info:!0}}]}),function(e){return function(t){return t({API:{root:Qs.c,types:au.GET,endpoint:"/columns/".concat(e),method:"GET",fetchOptions:{credentials:"include"}},schema:no.a.COLUMN})}}),su=function(e,t){return function(n){return n({API:{root:Qs.c,types:au.UPDATE,endpoint:"/columns/".concat(e),method:"PATCH",body:t},schema:no.a.COLUMN})}},uu=function(e,t){return function(n,r){var o=(r().column[e]||{}).paging,i=o?{endpoint:o.next}:{endpoint:"/columns/".concat(e,"/items"),query:Object.assign({},t&&{offset:t})};return n({id:e,API:Object.assign({types:au.GET_ITEMS},i),schema:iu})}},lu=Object(G.a)("article",["ADD_CONTRIBUTE_REQUEST","DELETE_CONTRIBUTE_REQUEST","GET_CONTRIBUTE_REQUEST","HANDLE_CONTRIBUTE_REQUEST","GET_RECOMMENDED_CONTRIBUTE_COLUMNS"]),du=function(e,t){return{API:{types:lu.ADD_CONTRIBUTE_REQUEST,endpoint:"/articles/".concat(e,"/contribute_requests"),method:"POST",fetchOptions:{credentials:"include"},body:{column_id:t}},columnId:t}};var fu=Object(Lt.combineReducers)({contributeRequests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.type===lu.GET_CONTRIBUTE_REQUEST.success?t.payload.data:e},deleteContributeIdList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.type===lu.DELETE_CONTRIBUTE_REQUEST.success?[].concat(Object(i.a)(e),[t.id]):e},handledContributeIdList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.type===lu.HANDLE_CONTRIBUTE_REQUEST.success?[].concat(Object(i.a)(e),[t.id]):e},recommendedColumns:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.type===lu.GET_RECOMMENDED_CONTRIBUTE_COLUMNS.success?t.payload.data.recommendations:e},pinnedColumns:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.type===lu.GET_RECOMMENDED_CONTRIBUTE_COLUMNS.success?t.payload.data.pinColumns:e},sentContributeRequestsIdList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(t.type===ru.a.GET.success){var n=t.payload.contributions,r=void 0===n?[]:n,o=r.map((function(e){return e.column.id}));return[].concat(Object(i.a)(e),Object(i.a)(o))}return lu.ADD_CONTRIBUTE_REQUEST.success?[].concat(Object(i.a)(e),[t.columnId]):lu.DELETE_CONTRIBUTE_REQUEST.success?e.filter((function(e){return e===t.columnId})):e}}),pu=Object(G.a)("column",["GET_CONTRIBUTE_REQUEST","IGNORE_CONTRIBUTE_REQUEST","ADD_CONTRIBUTOR","DELETE_CONTRIBUTOR","GET_RECOMMENDED_CONTRIBUTORS","INVITE_CONTRIBUTOR","CANCEL_INVITE_CONTRIBUTOR","GET_INVITATION","SET_AUTO_INVITE"]),hu=Object(G.b)("column",["CLEAR_INVITATION"]);var bu=function(e,t){return{API:{types:pu.SET_AUTO_INVITE,method:"PATCH",endpoint:"/columns/".concat(e,"/recommendation-contributors"),fetchOptions:{credentials:"include"},body:{is_auto:t}},meta:t}},vu=function(e,t){return{API:{types:pu.INVITE_CONTRIBUTOR,method:"PUT",endpoint:"/columns/".concat(e,"/contribution-invitees"),fetchOptions:{credentials:"include"},body:{member_hash:t}},userId:t}},mu=Object(Lt.combineReducers)({contributeRequests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.type===pu.GET_CONTRIBUTE_REQUEST.success?t.payload.data:t.type===pu.IGNORE_CONTRIBUTE_REQUEST.success?e.filter((function(e){return e.article.id!==t.articleId})):e},autoInviteEnabled:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===pu.GET_RECOMMENDED_CONTRIBUTORS.success?Boolean(t.payload.isAuto):t.type===pu.SET_AUTO_INVITE.success?t.meta:e},recommendedContributors:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.type===pu.GET_RECOMMENDED_CONTRIBUTORS.success?t.payload.data:t.type===pu.INVITE_CONTRIBUTOR.success?e.map((function(e){return e.author.id===t.userId?Object.assign({},e,{hasInvited:!0}):e})):e},contributionInvitation:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return t.type===pu.GET_INVITATION.success?t.payload:t.type===hu.CLEAR_INVITATION?null:e}}),gu=function(e){var t=e.width,n=e.height;return t>=1366&&n>=550},Ou=Object.assign({},Object(G.a)("articleDraft",["UPLOAD_COVER","UPLOAD_CONTENT_IMAGE","UPLOAD_VIDEO","UPDATE_DRAFT","GET_DRAFT","REVIEW_COLUMN","PUBLISH_COLUMN","LOAD_DISCLAIMERS","ADD_TOPIC","DELETE_TOPIC","FETCH_RECOMMEND_TOPIC","SCHEDULED_PUBLISH","CANCEL_SCHEDULED_PUBLISH","VALIDATE_SCHEDULED_PUBLISH"]),Object(G.b)("articleDraft",["TOGGLE_FULL_SCREEN","REMOVE_COVER","RESET_DRAFT","SELECT_COLUMN"])),yu=Ou.UPLOAD_COVER,ju=Ou.UPLOAD_CONTENT_IMAGE,Eu=Ou.UPLOAD_VIDEO,Cu=Ou.UPDATE_DRAFT,wu=Ou.GET_DRAFT,Tu=Ou.REVIEW_COLUMN,_u=Ou.PUBLISH_COLUMN,Su=Ou.LOAD_DISCLAIMERS,Au=Ou.ADD_TOPIC,ku=Ou.DELETE_TOPIC,Ru=Ou.FETCH_RECOMMEND_TOPIC,Iu=Ou.TOGGLE_FULL_SCREEN,xu=Ou.REMOVE_COVER,Nu=Ou.RESET_DRAFT,Du=Ou.SELECT_COLUMN;function Pu(e,t,n){var r=new FormData;return"string"==typeof t?r.append("url",t):(t.length&&(t=t[0]),r.append("picture",t)),n&&r.append("source",n),{API:{types:e,endpoint:"uploaded_images",root:Qs.c,method:"POST",body:r}}}function Lu(e,t,n){return function(r){return Object(Zr.c)(t,n&&{source:n}).then((function(t){return r({type:e.success,payload:Object($.camelizeKeys)(t)})}),(function(t){return r({type:e.failure,err:t})}))}}function Mu(e){var t=e.payload,n=t.dataRawheight,r=t.dataRawwidth,o=t.hash;return{url:t.src,width:r,height:n,id:o,watermark:t.watermark,watermarkSrc:t.watermarkSrc,originalSrc:t.originalSrc}}function Uu(e){return{API:{root:Qs.c,method:"GET",types:Su,endpoint:"articles/".concat(e,"/disclaimers")}}}var Bu={titleImage:"",titleImageSize:{},isTitleImageFullScreen:!1,canTitleImageFullScreen:!1,title:"",titleImageUploading:!1,error:"",content:"",draftLoading:!1,updating:!1,globalLoading:!1,pendingVideo:{resource:null,error:null},deleteFail:{fail:!1},recommendTopics:[],selectedColumn:0,articleDisclaimers:[]};function zu(e){if(!e)return"尝试保存时发生未知错误";var t=e.message,n=e.status,r=e.payload,o=e.errors;return r&&r.message?"尝试保存时发生错误:".concat(r.message):Array.isArray(o)&&o[0]?"尝试保存时发生错误:".concat(o[0].message):t?["Network request failed","Failed to fetch"].some((function(e){return t.indexOf(e)>-1}))?"尝试保存时发生网络请求错误":t.startsWith("request http")?"尝试保存时发生错误".concat(n?":"+n:""):"尝试保存时发生错误:".concat(t):""}var Fu=Object(Br.createSelector)([B.b,function(e){return e.articleDraft},function(e){return e.me.columnContributions},z.d],(function(e,t,n,r){return{currentUser:e,draft:t,myColumns:n,isMobile:r}})),Gu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Bu,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ou.UPLOAD_COVER.request:return Object.assign({},e,{titleImageUploading:!0});case Ou.UPLOAD_COVER.success:var n=Mu(t),r=n.url,o=n.width,i=n.height,a=gu({width:o,height:i});return Object.assign({},e,{titleImage:r,titleImageSize:{width:o,height:i},canTitleImageFullScreen:a,isTitleImageFullScreen:a,titleImageUploading:!1});case Ou.UPLOAD_COVER.failure:return Object.assign({},e,{titleImageUploading:!1});case Ou.UPLOAD_CONTENT_IMAGE.request:return Object.assign({},e,{globalLoading:!0});case Ou.UPLOAD_CONTENT_IMAGE.success:case Ou.UPLOAD_CONTENT_IMAGE.failure:return Object.assign({},e,{globalLoading:!1});case Ou.UPLOAD_VIDEO.request:return Object.assign({},e,{globalLoading:!0,pendingVideo:Object.assign({},e.pendingVideo)});case Ou.UPLOAD_VIDEO.success:return Object.assign({},e,{globalLoading:!1,pendingVideo:Object.assign({},e.pendingVideo,{resource:t.payload})});case Ou.UPLOAD_VIDEO.failure:return Object.assign({},e,{globalLoading:!1,pendingVideo:Object.assign({},e.pendingVideo)});case Ou.DELETE_TOPIC.failure:return Object.assign({},e,{deleteFail:!0});case Ou.TOGGLE_FULL_SCREEN:return Object.assign({},e,{isTitleImageFullScreen:!e.isTitleImageFullScreen});case Ou.REMOVE_COVER:return Object.assign({},e,{titleImage:"",titleImageSize:{},isTitleImageFullScreen:!1,canTitleImageFullScreen:!1});case Ou.RESET_DRAFT:return Object.assign({},e,{content:"",title:""});case Ou.UPDATE_DRAFT.request:var c=t.meta.id;return Object.assign({},e,{draftLoading:!c,updating:!0});case Ou.UPDATE_DRAFT.success:var s=t.meta,u=t.payload,l=s.body,d=Object.assign({},ei()(l,["isTitleImageFullScreen","delta_time"]),u,{updatedTime:(new Date).toISOString(),updating:!1,draftLoading:!1,error:""});return Object.assign({},e,d);case Ou.UPDATE_DRAFT.failure:return Object.assign({},e,{updating:!1,draftLoading:!1,error:zu(t.err||t.error)});case Ou.GET_DRAFT.success:var f=t.payload;return Object.assign({},e,f,{updatedTime:new Date(1e3*f.updated).toISOString()});case Ou.FETCH_RECOMMEND_TOPIC.success:return Object.assign({},e,{recommendTopics:t.payload.data||[]});case Ou.LOAD_DISCLAIMERS.success:return Object.assign({},e,{articleDisclaimers:t.payload.data});case Ou.SELECT_COLUMN:return Object.assign({},e,{selectedColumn:t.payload});case Ou.CANCEL_SCHEDULED_PUBLISH.success:return Object.assign({},e,{schedule:null});default:return e}},Vu=Object.assign({},Object(G.a)("articleDrafts",["GET_DRAFTS","DELETE_DRAFT"])),Hu=Vu.GET_DRAFTS,qu=Vu.DELETE_DRAFT;function Ku(){return function(e,t){var n=t().articleDrafts.items;return e({API:{types:Hu,endpoint:"articles/my_drafts",root:Qs.c,query:{limit:10,offset:n.length,include:["$.data[*].schedule"].join(",")}}})}}var Wu={isDrained:!1,isLoading:!1,items:[]};var Yu=Object.assign({},Object(G.a)("columnAutocomplete",["FETCH_TOPICS","FETCH_USERS","FETCH_MY_FRIENDS"]),Object(G.b)("columnAutocomplete",["RESET_USERS","RESET_FRIENDS"]));var Qu={users:[],friends:[]},Zu=Object(G.a)("columnCollection",["TOGGLE_COLUMN_COLLECT"]),Ju=function(e,t){return e.columnCollection[t]},Xu=function(e){var t=e.type,n=e.id;return"".concat(t).concat(n)};var $u=Object(Lt.combineReducers)(Object.assign({},Ks,Ws,{answers:zt.e,sms:fo.a,comments:jn.c,recommendation:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{homeRecommendations:[]},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload,o=t.parentId;if(n===Zs.GET.success){var a=e[o]?e[o].data:[];return Object.assign({},e,Object(Ut.a)({},o,{data:[].concat(Object(i.a)(a),Object(i.a)(r.data)),paging:r.paging}))}return n===Zs.GET_HOME.success?Object.assign({},e,{homeRecommendations:r.data.filter(Boolean)}):e},shareTexts:Yr,articles:mo.b,previewPost:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.payload,r=t.type;return r===eu.GET.success&&n?n:e},favlists:go.a,columns:Ys.b,reward:Xo.d,video:No.b,switches:Jo,messages:Jr.a,register:po.b,captcha:uo.e,login:ho.b,topstory:xo,readStatus:Ti,column:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case au.GET_PINNED_ARTICLE.success:var n=e[t.columnId]||{};return Object.assign({},e,Object(Ut.a)({},t.columnId,Object.assign({},n,{pinnedArticle:t.payload.id})));case au.SET_PINNED_ARTICLE.success:var r=e[t.columnId]||{};return Object.assign({},e,Object(Ut.a)({},t.columnId,Object.assign({},r,{pinnedArticle:t.articleId})));case au.GET_ARTICLES.request:case au.REFRESH_ITEMS.request:case au.GET_ITEMS.request:var o=e[t.id]||{};return Object.assign({},e,Object(Ut.a)({},t.id,Object.assign({},o,{isLoading:!0})));case au.GET_ARTICLES.success:var a=e[t.id]||{},c=t.payload,s=c.data,u=c.paging,l=a.articles||[];return Object.assign({},e,Object(Ut.a)({},t.id,Object.assign({},a,{articlesPaging:u,articles:[].concat(Object(i.a)(l),Object(i.a)(s.map((function(e){return e.id})))),isLoading:!1})));case au.GET_ARTICLES.failure:case au.GET_ITEMS.failure:var d=e[t.id]||{};return Object.assign({},e,Object(Ut.a)({},t.id,Object.assign({},d,{isLoading:!1})));case au.GET_PINNED_ITEMS.success:var f=e[t.columnId]||{};return Object.assign({},e,Object(Ut.a)({},t.columnId,Object.assign({},f,{pinnedItems:t.result})));case au.GET_ITEMS.success:var p=e[t.id]||{},h=t.payload.paging,b=t.result,v=p.items||[];return Object.assign({},e,Object(Ut.a)({},t.id,Object.assign({},p,{paging:h,items:[].concat(Object(i.a)(v),Object(i.a)(b)),isLoading:!1})));case au.REFRESH_ITEMS.success:var m=e[t.id]||{},g=t.payload.paging,O=t.result;return Object.assign({},e,Object(Ut.a)({},t.id,Object.assign({},m,{paging:g,items:O,isLoading:!1})));case au.TOGGLE_PINNED_ITEM.success:var y=e[t.columnId]||{},j=t.columnId,E=t.contentType,C=t.contentId,w=t.toPin,T={schema:E,id:C};return Object.assign({},e,Object(Ut.a)({},j,Object.assign({},y,w?{pinnedItems:[T].concat(Object(i.a)(y.pinnedItems)),items:y.items.filter((function(e){return!nu()(e,T)}))}:{pinnedItems:y.pinnedItems.filter((function(e){return!nu()(e,T)})),items:[T].concat(Object(i.a)(y.items))})));case au.REMOVE_COLUMN_COLLECT.success:var _=e[t.columnId]||{},S=t.columnId,A=t.contentType,k=t.contentId,R={schema:A,id:k};return Object.assign({},e,Object(Ut.a)({},S,Object.assign({},_,{pinnedItems:_.pinnedItems.filter((function(e){return!nu()(e,R)})),items:_.items.filter((function(e){return!nu()(e,R)}))})));case au.REMOVE_COLUMN_ARTICLE.success:case ru.a.DELETE.success:var I=t.columnId,x=t.articleId,N=e[I]||{},D=N.articles||[];return Object.assign({},e,Object(Ut.a)({},I,Object.assign({},N,{pinnedArticle:N.pinnedArticle===x?null:N.pinnedArticle,articles:D.filter((function(e){return e!==x}))})));default:return e}},requestColumn:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$s,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Xs.SUBMIT_REQUEST.success:var n=t.payload.manualCensor;return Object.assign({},e,{manualCensor:n,error:null});case Xs.CHECK_REQUEST.success:case Xs.CLEAR_REQUEST_ERROR:return Object.assign({},e,{error:null});case Xs.SUBMIT_REQUEST.failure:case Xs.CHECK_REQUEST.failure:return Object.assign({},e,{error:t.err.payload});case Xs.GET_CATEGORIES.success:return Object.assign({},e,{categories:t.payload.data||[]})}return e},articleContribution:fu,columnContribution:mu,draftHistory:Ri,upload:Zr.a,articleDraft:Gu,articleDrafts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wu,t=arguments.length>1?arguments[1]:void 0,n=t.meta,r=t.type,o=t.payload;return r===Hu.request?Object.assign({},e,{isLoading:!0}):r===Hu.success?Object.assign({},e,{isDrained:o.paging.isEnd,isLoading:!1,items:[].concat(Object(i.a)(e.items),Object(i.a)(o.data))}):r===qu.success?Object.assign({},e,{items:e.items.filter((function(e){return e.id!==n.id}))}):e},columnAutocomplete:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qu,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Yu.FETCH_USERS.success:return Object.assign({},e,{users:t.payload.data||[]});case Yu.RESET_USERS:return Object.assign({},e,{users:[]});case Yu.FETCH_MY_FRIENDS.success:return Object.assign({},e,{friends:t.payload.data||[]});case Yu.RESET_FRIENDS:return Object.assign({},e,{friends:[]});default:return e}},columnCollection:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Zu.TOGGLE_COLUMN_COLLECT.request:case Zu.TOGGLE_COLUMN_COLLECT.failure:var n=t.meta,r=n.columnId,o=n.contentKey,i=n.optimisticCollected,a=e[r]||{},c=t.type===Zu.TOGGLE_COLUMN_COLLECT.request,s=c?i:!i;return Object.assign({},e,Object(Ut.a)({},r,Object.assign({},a,Object(Ut.a)({},o,s))));default:return e}},ecommerce:Mt.b,chat:Fi,emoticons:Gi.c,userProfit:Qi,mcn:Zi.a,zvideos:Fc,republish:rs})),el=n(91),tl=n.n(el),nl=n(6),rl=n.n(nl),ol=n(685),il=n.n(ol),al=n(244),cl=Object(a.memo)((function(e){var t=e.className,n=function(e){return Object.keys(e).filter((function(t){return il()(e[t])&&e[t]})).filter((function(t){return"Mobile"!==t||!e.Tablet})).map((function(e){return"Body--".concat(e)}))}(Object(Ot.useSelector)(al.k));return Object(o.b)(jt.a,{children:Object(o.b)("body",{className:rl()(t,n)})})})),sl=function(e){return function(t){var n=Object(a.forwardRef)((function(n,r){return Object(o.c)(o.a,{children:[Object(o.b)(cl,{className:e}),Object(o.b)(t,Object.assign({},n,{ref:r}))]})}));return tl()(n,t)}},ul=sl("LightGreyBg-body"),ll=sl("WhiteBg-body"),dl=sl("GreyBg-body"),fl=sl;var pl=Object(W.isBrowser)()?Object(o.b)(st.Route,{path:"*",onEnter:function(e){var t=e.location;if(/^\/{2,}/.test(t.pathname)){var n=/^\/{1,}(\/.*)$/.exec(t.pathname),r=Object(gt.a)(n,2)[1];t.pathname=r}window.location="".concat(t.pathname).concat(t.search)}}):null;function hl(e){return e.routes[e.routes.length-1].name}var bl=n(7),vl=n(8),ml=n(9),gl=n(10),Ol=n(5),yl=n(2),jl=n.n(yl),El=n(256),Cl=n(686),wl=n.n(Cl);var Tl=function(){return Object(o.b)("div",{className:"WechatShareImage",children:Object(o.b)("img",{src:wl.a,alt:"ZhiHu logo"})})},_l=n(610),Sl=n(355),Al=n(1087),kl=n(51),Rl=n(1057),Il=n(1031),xl=n(20),Nl=function(e){return c.a.createElement(xl.a,e,c.a.createElement("path",{d:"M3.5 5h16a1.5 1.5 0 0 1 0 3h-16a1.5 1.5 0 0 1 0-3zm0 6h16a1.5 1.5 0 0 1 0 3h-16a1.5 1.5 0 0 1 0-3zm0 6h16a1.5 1.5 0 0 1 0 3h-16a1.5 1.5 0 0 1 0-3z",fillRule:"evenodd"}))};Nl.defaultProps={name:"More"};var Dl=Nl,Pl=function(e){return c.a.createElement(xl.a,e,c.a.createElement("path",{d:"M3 3.99C3 2.892 3.893 2 4.995 2h14.01C20.107 2 21 2.898 21 3.99v16.02c0 1.099-.893 1.99-1.995 1.99H4.995A1.997 1.997 0 0 1 3 20.01V3.99zM6 7c0 .556.449 1 1.002 1h9.996a.999.999 0 1 0 0-2H7.002C6.456 6 6 6.448 6 7zm0 5c0 .556.449 1 1.002 1h9.996a.999.999 0 1 0 0-2H7.002C6.456 11 6 11.448 6 12zm0 5c0 .556.446 1 .997 1h6.006c.544 0 .997-.448.997-1 0-.556-.446-1-.997-1H6.997C6.453 16 6 16.448 6 17z"}))};Pl.defaultProps={name:"Home"};var Ll=Pl,Ml=function(e){return c.a.createElement(xl.a,e,c.a.createElement("path",{d:"M15.417 12.923c-.376.653-.837 1.281-.763 1.863.292 2.273 5.562 1.77 6.78 3.048.566.595.566.664.566 4.164-6.611-.07-13.363 0-20 0 .027-3.5 0-3.478.62-4.164 1.303-1.44 6.581-.715 6.78-3.133.045-.545-.38-1.114-.763-1.778C6.511 9.233 5.697 2 12 2s5.422 7.443 3.417 10.923z",fillRule:"evenodd"}))};Ml.defaultProps={name:"Profile"};var Ul=Ml,Bl=function(e){return c.a.createElement(xl.a,e,c.a.createElement("path",{d:"M2 11.999c0-2.756 1.154-5.417 3.167-7.3a1.266 1.266 0 0 1 1.73 1.847 7.396 7.396 0 0 0-2.367 5.453c0 4.119 3.35 7.47 7.47 7.47 4.119 0 7.47-3.351 7.47-7.47a7.41 7.41 0 0 0-2.279-5.37 1.266 1.266 0 0 1 1.76-1.819A9.923 9.923 0 0 1 22 12c0 5.513-4.486 10-10 10s-10-4.487-10-10zm8.699-.482V3.26a1.26 1.26 0 1 1 2.52 0v8.257a1.26 1.26 0 1 1-2.52 0z",fillRule:"evenodd"}))};Bl.defaultProps={name:"Logout"};var zl=Bl,Fl=n(68),Gl=n.n(Fl),Vl=n(185),Hl=n(84),ql=n(148),Kl=n(22),Wl=n.n(Kl),Yl=n(24),Ql=n.n(Yl),Zl=n(25),Jl=n.n(Zl),Xl=n(27),$l=n.n(Xl),ed=n(16),td=n.n(ed),nd=n(128);function rd(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=td()(e);if(t){var o=td()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $l()(this,n)}}var od=!1,id="pointer";function ad(){id="pointer"}function cd(){id="wheel"}var sd=function(e){Jl()(n,e);var t=rd(n);function n(){var e;Wl()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).currentDirection=null,e.lastEmitDirection=null,e.startPosition=0,e.previousPosition=0,e.handleScroll=function(){var t=window.pageYOffset;if(!(t<0)){var n=t<e.previousPosition?"up":"down";n!==e.currentDirection&&(e.currentDirection=n,e.startPosition=e.previousPosition),e.previousPosition=t;var r=e.props,o=r.threshold,i=r.emitOnce,a=r.onScrollUp,c=r.onScrollDown;Math.abs(e.startPosition-t)>=o&&("wheel"!==id||i&&e.lastEmitDirection===n||("up"===n&&a&&a(),"down"===n&&c&&c()),e.lastEmitDirection=n,e.startPosition=t)}},e}return Ql()(n,[{key:"componentDidMount",value:function(){od||(window.addEventListener("click",ad),window.addEventListener("wheel",cd,{passive:!0}),window.addEventListener("mousewheel",cd,{passive:!0}),window.addEventListener("touchmove",cd,{passive:!0}),od=!0);var e=this.props,t=e.throttleRate,n=e.useRAF,r=window.pageYOffset;this.startPosition=r,this.previousPosition=r,this.subscription=Object(nd.subscribe)("scroll",this.handleScroll,{throttleRate:t,useRAF:n})}},{key:"componentWillUnmount",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"render",value:function(){return this.props.children||null}}]),n}(a.Component);sd.propTypes={throttleRate:jl.a.number,useRAF:jl.a.bool,emitOnce:jl.a.bool,threshold:jl.a.number,onScrollUp:jl.a.func,onScrollDown:jl.a.func},sd.defaultProps={threshold:100,useRAF:!0,emitOnce:!0};var ud=sd,ld="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,dd=function(){var e=Object(a.useReducer)((function(e){return e+1}),0);return Object(gt.a)(e,2)[1]},fd=function(){var e,t,n=Object(a.createRef)(null),r=(t=e={props:null,set:function(){},reset:function(){}},{useProps:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=dd();return ld((function(){return Object.assign(t,{set:function(e){this.props=e,r()},reset:function(){this.set(n)}}),function(){t=e}}),[]),t.props||n},usePropsListener:function(e){ld((function(){return t.set(e)}),Object.values(e)),ld((function(){return function(){return t.reset()}}),[])}}),i=r.usePropsListener;return{Inlet:function(e){var t=e.children,r=Object(_e.a)(e,["children"]);return i(r),n.current&&Object(V.createPortal)(t,n.current)},Outlet:function(){return Object(o.b)("div",{ref:n})},useInletProps:r.useProps}}(),pd=function(e){var t=e.zoom,n=void 0===t?1:t,r=e.color,i=void 0===r?"primary":r,a=Object(_e.a)(e,["zoom","color"]);return Object(o.c)("svg",Object.assign({viewBox:"0 0 64 30",fill:Object(Et.f)().colors[i],width:64*n,height:30*n},a,{children:[Object(o.b)("path",{d:"M29.05 4.582H16.733V25.94h3.018l.403 2.572 4.081-2.572h4.815V4.582zm-5.207 18.69l-2.396 1.509-.235-1.508h-1.724V7.233h6.78v16.04h-2.425zM14.46 14.191H9.982c0-.471.033-.954.039-1.458v-5.5h5.106V5.935a1.352 1.352 0 0 0-.404-.957 1.378 1.378 0 0 0-.968-.396H5.783c.028-.088.056-.177.084-.255.274-.82 1.153-3.326 1.153-3.326a4.262 4.262 0 0 0-2.413.698c-.57.4-.912.682-1.371 1.946-.532 1.453-.997 2.856-1.31 3.693C1.444 8.674.28 11.025.28 11.025a5.85 5.85 0 0 0 2.52-.61c1.119-.593 1.679-1.502 2.054-2.883l.09-.3h2.334v5.5c0 .5-.045.982-.073 1.46h-4.12c-.71 0-1.39.278-1.893.775a2.638 2.638 0 0 0-.783 1.874h6.527a17.717 17.717 0 0 1-.778 3.649 16.796 16.796 0 0 1-3.012 5.273A33.104 33.104 0 0 1 0 28.74s3.13 1.175 5.425-.954c1.388-1.292 2.631-3.814 3.23-5.727a28.09 28.09 0 0 0 1.12-5.229h5.967v-1.37a1.254 1.254 0 0 0-.373-.899 1.279 1.279 0 0 0-.909-.37z"}),Object(o.b)("path",{d:"M11.27 19.675l-2.312 1.491 5.038 7.458a6.905 6.905 0 0 0 .672-2.218 3.15 3.15 0 0 0-.28-2.168l-3.118-4.563zM51.449 15.195V5.842c4.181-.205 7.988-.405 9.438-.483l.851-.05c.387-.399.885-2.395.689-3.021-.073-.25-.213-.666-.638-.555a33.279 33.279 0 0 1-4.277.727c-2.766.321-3.97.404-7.804.682-6.718.487-12.709.72-12.709.72a2.518 2.518 0 0 0 .788 1.834 2.567 2.567 0 0 0 1.883.706c2.278-.095 5.598-.25 8.996-.41v9.203h-12.78c0 .703.281 1.377.783 1.874a2.69 2.69 0 0 0 1.892.777h10.105v7.075c0 .887-.464 1.192-1.231 1.214h-3.92a4.15 4.15 0 0 0 .837 1.544 4.2 4.2 0 0 0 1.403 1.067 6.215 6.215 0 0 0 2.71.277c1.36-.066 2.967-.826 2.967-3.57v-7.607h11.28c.342 0 .67-.135.91-.374.242-.239.378-.563.378-.902v-1.375H51.449z"}),Object(o.b)("path",{d:"M42.614 8.873a2.304 2.304 0 0 0-1.508-.926 2.334 2.334 0 0 0-1.727.405l-.376.272 4.255 5.85 2.24-1.62-2.884-3.98zM57.35 8.68l-3.125 4.097 2.24 1.663 4.517-5.927-.375-.277a2.32 2.32 0 0 0-1.722-.452 2.327 2.327 0 0 0-1.536.896z"})]}))},hd=function(){var e=Object(a.useState)(!1),t=Object(gt.a)(e,2),n=t[0],r=t[1];return Object(a.useEffect)((function(){r(!0)}),[]),n};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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var vd=function(e){Object(ml.a)(n,e);var t=bd(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={showDownload:!0,isLite:!1,expanded:!1,visible:!0,next:"/",inputValue:""},e.handlePopstate=function(){e.inputEl&&e.setState({inputValue:""})},e.handleShow=function(){e.setState({visible:!0})},e.handleHide=function(){e.state.expanded||e.setState({visible:!1})},e.handleLogin=function(t){q.a.trackEvent(t.target,{id:3825});var n=e.props.onLogin;"function"==typeof n&&(t.preventDefault(),n())},e.handleToggleExpand=function(){e.setState({expanded:!e.state.expanded},(function(){document.body.className=rl()(e.state.originBodyClassName,{"MobileAppHeader-noScrollBody":e.state.expanded})}))},e.handleClickZhihuLogo=function(){q.a.trackEvent(Object(kl.a)(e),{action:"OpenUrl",id:3032,name:"知乎"})},e.handleLogout=function(){q.a.trackEvent(Object(kl.a)(e),{action:"Click",id:3747})},e.handleInputChange=function(t){var n=t.target.value;e.props.handleSearchInputChange(n),e.setState({inputValue:n})},e.onKeyDown=function(t){var n=t.keyCode,r=e.state.inputValue,o=void 0===r?"":r,i=e.props.word,a=(i=void 0===i?{}:i).realQuery,c=void 0===a?"":a;13===n&&(0===o.length?e.props.handleSearch(c):e.props.handleSearch(o),e.inputEl.blur())},e.handleCancelSearchPage=function(){e.setState({inputValue:""}),e.props.handleCancelSearchPage()},e.handleInputClick=function(){var t=e.state.inputValue;t&&e.props.handleSearchInputChange(t)},e.handleClickSearchBox=function(){e.setState({inputValue:"",expanded:!1}),e.props.handleClickSearchBox()},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e="zhihulite"===ue.a.parse(window.location.search.substring(1)).app||w.a.isSupported()&&"1"===window.sessionStorage.getItem("from_zhihulite");q.a.trackCardShow(this,{id:3031,name:"知乎"}),this.setState({isLite:e,next:location.href,originBodyClassName:document.body.className}),this.inputEl&&this.props.isSearchPage&&this.inputEl.focus(),window.addEventListener("popstate",this.handlePopstate)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("popstate",this.handlePopstate)}},{key:"render",value:function(){var e=this,t=this.props,n=t.currentUser,r=t.tag,i=t.neverHide,a=t.searchHeaderShown,c=t.isSearchPage,s=t.outlet,u=t.inletProps,l=t.word,d=(l=void 0===l?{}:l).queryDisplay,f=void 0===d?"搜索":d,p=t.logo,h=t.noAppDownloadButton,b=t.isClient,v={utm_source:"zhihu",utm_campaign:"guest_feed",utm_content:"guide"},m=Object.assign({},v,b&&Object(_.c)(),this.props.utm),g=Object.assign({},v,b&&Object(_.c)(),this.props.downloadUtm),O=this.state,y=O.visible,j=O.next,E=O.expanded,C=O.isLite,w=O.dynamicQuery,T=O.showDownload,S=O.inputValue,A=n&&"guest"!==n.userType,k=ue.a.stringify(Object.assign({auto_download:!0},g,C?{app:"zhihulite"}:w)),R=!h&&T&&Object(o.b)("a",{className:"MobileAppHeader-downloadLink",href:"https://www.zhihu.com/app?".concat(k),onClick:function(e){q.a.trackEvent(e.target,{id:3826})},"data-za-detail-view-name":"下载 App",children:"下载 App"}),I=r||ql.a,x=Object(o.b)(Hl.a,{value:S,className:rl()("MobileAppHeader-searchBox",{"MobileAppHeader-searchResultBox":c,"MobileAppHeader-searchBoxWithUnlogin":!A&&!c}),autoFocus:!!c,onRef:function(t){e.inputEl=t},onChange:this.handleInputChange,onClick:c?this.handleInputClick:this.handleClickSearchBox,onKeyDown:this.onKeyDown,placeholder:f,type:"search",before:Object(o.b)(Rl.a,{fill:"#999",size:18})}),N=Object(o.c)("div",{className:"MobileAppHeader-actions",children:[a&&x,R,Object(o.b)("div",{className:"MobileAppHeader-navItem MobileAppHeader-moreIconWrapper",children:Object(o.b)("span",{className:"MobileAppHeader-expandBtn",onClick:this.handleToggleExpand,children:E?Object(o.b)(Il.a,{}):Object(o.b)(Dl,{})})})]}),D=Object(o.c)("div",{className:"MobileAppHeader-inner",children:[a&&x,Object(o.c)("div",{className:"MobileAppHeader-actions",children:[R,Object(o.b)("a",{className:"MobileAppHeader-authLink",onClick:this.handleLogin,href:"https://www.zhihu.com/signin?next=".concat(j),"data-za-detail-view-name":"注册或登录",children:"注册登录"})]})]}),P=Object(o.c)("div",{className:"MobileAppHeader-actions",children:[x,Object(o.b)("span",{className:"MobileAppHeader-expandBtn",onClick:this.handleCancelSearchPage,children:"取消"})]});return Object(o.b)(I,{children:Object(o.c)("header",{className:rl()("MobileAppHeader",{"is-hide":!i&&!y,"is-hidden":u.shown}),style:{lineHeight:"".concat(50,"px")},children:[Object(o.b)(ud,{emitOnce:!0,onScrollUp:this.handleShow,onScrollDown:this.handleHide}),Object(o.c)("div",{className:rl()("MobileAppHeader-inner",{"MobileAppHeader-innerWithoutSearchHeader":!a}),children:[Object(o.b)("a",{className:"MobileAppHeader-logo",href:"//www.zhihu.com?".concat(ue.a.stringify(m)),onClick:this.handleClickZhihuLogo,"aria-label":"知乎",children:p||Object(o.b)(pd,{})}),c?P:A?N:D]}),Object(o.b)(Vl.a,{portalClassName:"MobileAppHeader-expandContainer",transitionName:"MobileAppHeader-expand",transitionEnterTimeout:300,transitionLeaveTimeout:300,children:E&&Object(o.c)("div",{className:"MobileAppHeader-expand",children:[Object(o.c)("a",{href:"//www.zhihu.com/",children:[Object(o.b)(Ll,{fill:"#8590a6"}),"首页"]}),Object(o.c)("a",{href:"//www.zhihu.com/people/".concat(n.urlToken||n.id),children:[Object(o.b)(Ul,{fill:"#8590a6"}),"我的主页"]}),Object(o.c)("a",{href:"//www.zhihu.com/logout?next=".concat(encodeURI(j)),onClick:this.handleLogout,children:[Object(o.b)(zl,{fill:"#8590a6"}),"退出帐号"]}),Object(o.b)("div",{className:"MobileAppHeader-expandBackdrop"})]})}),s]})})}}],[{key:"getDerivedStateFromProps",value:function(e,t){if("undefined"!=typeof window){var n=e.itemInfo,r=e.itemInfo,o=(r=void 0===r?{}:r).type,i=r.id,a=r.readStatus,c=t.prevShowDownload,s=Gl()(window.navigator.userAgent).BaiduApp,u="question"===o||"answer"===o||"article"===o||"/"===window.location.pathname,l=!(s&&u);if(!n&&l===c)return null;var d={ctype:{question:1,answer:2,article:3,topic:4}[o],ctoken:i,open:a?1:0},f=window.location.search,p=ue.a.parse(f.substring(1)),h=p.q,b=p.status,v=t.inputValue;return h&&"suggest"!==b&&(v=h),{showDownload:l,dynamicQuery:d,inputValue:v}}return null}}]),n}(a.Component);vd.propTypes={tag:jl.a.string,currentUser:jl.a.object,isSearchPage:jl.a.bool,handleSearchInputChange:jl.a.func,handleCancelSearchPage:jl.a.func,searchHeaderShown:jl.a.bool,handleSearch:jl.a.func,itemInfo:jl.a.shape({type:jl.a.string.isRequired,id:jl.a.number.isRequired,readStatus:jl.a.bool.isRequired}),word:jl.a.object},vd.defaultProps={handleSearchInputChange:function(){},handleCancelSearchPage:function(){},handleSearch:function(){},searchHeaderShown:!1,isSearchPage:!1,noAppDownloadButton:!1};var md=function(e){return Object(o.b)(vd,Object.assign({outlet:Object(o.b)(fd.Outlet,{}),inletProps:fd.useInletProps(),isClient:hd()},e))},gd=Object(Ot.connect)((function(e){return{sogouInput:e.env.edition.sogouInput}}))((function(e){var t=e.sogouInput,n=Object(_e.a)(e,["sogouInput"]);return!t&&Object(o.b)(md,Object.assign({},n))})),Od=n(258);var yd=n(352),jd=n(171),Ed=n(353),Cd=n(319);function wd(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=td()(e);if(t){var o=td()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $l()(this,n)}}var Td=!1,_d=["Control","Shift","Alt","Meta","Win"];function Sd(){document.documentElement.removeAttribute("data-focus-visible")}function Ad(e){e.key&&(_d.includes(e.key)||_d.map((function(t){return e.getModifierState(t)})).some((function(e){return e}))||document.documentElement.setAttribute("data-focus-visible",""))}var kd=function(e){Jl()(n,e);var t=wd(n);function n(){return Wl()(this,n),t.apply(this,arguments)}return Ql()(n,[{key:"componentDidMount",value:function(){Td||(document.addEventListener("pointerdown",Sd),document.addEventListener("mousedown",Sd),document.addEventListener("touchstart",Sd),document.addEventListener("keydown",Ad),Td=!0)}},{key:"render",value:function(){return null}}]),n}(a.Component),Rd=n(146),Id=n(70),xd=n.n(Id),Nd=n(30),Dd=n.n(Nd),Pd=n(41),Ld=n.n(Pd),Md=n(3);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=td()(e);if(t){var o=td()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $l()(this,n)}}var Bd=function(e){Jl()(n,e);var t=Ud(n);function n(){return Wl()(this,n),t.apply(this,arguments)}return Ql()(n,[{key:"render",value:function(){var e=this.props,t=e.position,n=e.preset,r=e.restricted,o=e.className,i=e.childrenClassName,a=e.children,c=Ld()(e,["position","preset","restricted","className","childrenClassName","children"]);return Object(Md.c)("div",{className:"TooltipContent-wrapper"},Object(Md.c)("div",Dd()({className:rl()("TooltipContent","TooltipContent--".concat(t),"TooltipContent--".concat(n),o)},c),Object(Md.c)("div",{className:"TooltipContent-arrow"}),Object(Md.c)("div",{className:rl()("TooltipContent-children",i,{"TooltipContent-children--restricted":r})},a)))}}]),n}(a.Component);Bd.propTypes={position:jl.a.oneOf(["top","bottom","left","right"]),preset:jl.a.oneOf(["black","white"]),restricted:jl.a.bool,className:jl.a.string,childrenClassName:jl.a.string,children:jl.a.node},Bd.defaultProps={position:"top",preset:"black",restricted:!0};var zd=Bd;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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=td()(e);if(t){var o=td()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $l()(this,n)}}var Gd=function(e){Jl()(n,e);var t=Fd(n);function n(){var e;return Wl()(this,n),(e=t.call(this)).handleBodyClick=e.handleBodyClick.bind(xd()(e)),e.hideOnNextClick=!1,e}return Ql()(n,[{key:"componentDidMount",value:function(){this.props.hideOnClick&&document.body.addEventListener("click",this.handleBodyClick)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.timeout,r=t.hideOnClick,o=t.onClose;!this.props.shown&&e.shown&&(r&&(this.hideOnNextClick=!0),-1!==n&&(this.timeoutId=setTimeout((function(){o&&o()}),n))),this.props.shown&&!e.shown&&this.reset()}},{key:"componentWillUnmount",value:function(){this.reset(),this.props.hideOnClick&&document.body.removeEventListener("click",this.handleBodyClick)}},{key:"handleBodyClick",value:function(){this.hideOnNextClick&&(this.reset(),this.props.onClose&&this.props.onClose())}},{key:"reset",value:function(){this.hideOnNextClick=!1,clearTimeout(this.timeoutId)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.contentClassName,r=e.contentChildrenClassName,o=e.preset,i=e.restricted,a=e.shown,c=e.x,s=e.y,u=e.position,l=e.content,d=e.children;return Object(Md.c)(Vl.a,{transitionName:"Tooltip",timeout:300},a&&Object(Md.c)("div",{style:{left:c,top:s},className:rl()("Tooltip",t),key:JSON.stringify({x:c,y:s})},Object(Md.c)(zd,{className:n,childrenClassName:r,position:u,preset:o,restricted:i},l||d)))}}]),n}(a.Component);Gd.propTypes={position:zd.propTypes.position,preset:zd.propTypes.preset,restricted:zd.propTypes.restricted,className:jl.a.string,contentClassName:jl.a.string,contentChildrenClassName:jl.a.string,shown:jl.a.bool,timeout:jl.a.number,hideOnClick:jl.a.bool,onClose:jl.a.func,content:jl.a.node,x:jl.a.number,y:jl.a.number},Gd.defaultProps={position:zd.defaultProps.position,preset:zd.defaultProps.preset,restricted:zd.defaultProps.restricted,shown:!0,timeout:-1,hideOnClick:!1};var Vd=Gd;function Hd(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=td()(e);if(t){var o=td()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $l()(this,n)}}var qd=function(e,t){if(e.closest)return e.closest(t);do{if(e.matches(t))break;e=e.parentElement}while(e);return e},Kd=function(e){Jl()(n,e);var t=Hd(n);function n(){var e;return Wl()(this,n),(e=t.call(this)).state={show:!1},e.onGlobalMouseover=e.handleGlobalMouseover.bind(xd()(e)),e.onCancelEvent=e.handleCancelEvent.bind(xd()(e)),e}return Ql()(n,[{key:"componentDidMount",value:function(){document.body.addEventListener("mouseover",this.onGlobalMouseover),window.addEventListener("scroll",this.onCancelEvent),window.addEventListener("resize",this.onCancelEvent)}},{key:"componentWillUnmount",value:function(){document.body.removeEventListener("mouseover",this.onGlobalMouseover),window.removeEventListener("scroll",this.onCancelEvent),window.removeEventListener("resize",this.onCancelEvent)}},{key:"handleGlobalMouseover",value:function(e){var t=this;clearTimeout(this.showTimeout),clearTimeout(this.hideTimeout);var n=qd(e.target,"[data-tooltip]");n&&!n.disabled?this.showTimeout=setTimeout((function(){var e,r,o=n.getAttribute("data-tooltip-position")||"top",i=n.getAttribute("data-tooltip"),a=n.getAttribute("data-tooltip-classname"),c=n.getAttribute("data-tooltip-preset")||"black",s=null!==n.getAttribute("data-tooltip-will-hide-on-click"),u=n.getBoundingClientRect(),l=u.left,d=u.right,f=u.top,p=u.bottom;switch(o){case"left":e=l-4,r=(f+p)/2;break;case"right":e=d+4,r=(f+p)/2;break;case"bottom":e=(l+d)/2,r=p+4;break;case"top":default:e=(l+d)/2,r=f-4}t.setState({show:!0,content:i,position:o,className:a,preset:c,willHideOnClick:s,x:Math.round(e),y:Math.round(r)})}),100):this.state.show&&(this.hideTimeout=setTimeout((function(){qd(e.target,".GlobalTooltip")||t.setState({show:!1})}),120))}},{key:"handleCancelEvent",value:function(){clearTimeout(this.showTimeout),clearTimeout(this.hideTimeout),this.state.show&&this.setState({show:!1})}},{key:"render",value:function(){var e=this.state,t=e.show,n=e.content,r=e.position,o=e.preset,i=e.restricted,a=e.className,c=e.contentClassName,s=e.contentChildrenClassName,u=e.x,l=e.y;return Object(Md.c)(Vd,{className:rl()("GlobalTooltip",a),contentClassName:c,contentChildrenClassName:s,shown:t,content:n,position:r,preset:o,restricted:i,x:u,y:l})}}]),n}(a.Component);function Wd(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Yd=function(e){Object(ml.a)(n,e);var t=Wd(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={cached:null},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=document.querySelector("#static-cache");e&&e.dataset.cached&&this.setState({cached:!0})}},{key:"render",value:function(){return this.state.cached&&Object(o.c)("div",{className:"StaticCacheBanner",children:["服务器提了个问题,这会儿只能为您提供最基本的阅读服务。我们将尽快恢复其他功能。",Object(o.b)("a",{href:"https://zhstatic.zhihu.com/intro/cached.html",target:"_blank",rel:"noopener noreferrer",children:"为什么?"})]})}}]),n}(a.Component),Qd=n(509),Zd=n.n(Qd),Jd=n(688),Xd=n.n(Jd),$d=n(689),ef=n.n($d),tf=n(690),nf=n.n(tf);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var of=function(e){Object(ml.a)(n,e);var t=rf(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props.ua,t=[{rel:"apple-touch-icon",href:Zd.a},{rel:"apple-touch-icon",href:Zd.a,sizes:"152x152"},{rel:"apple-touch-icon",href:Xd.a,sizes:"120x120"},{rel:"apple-touch-icon",href:ef.a,sizes:"76x76"},{rel:"apple-touch-icon",href:nf.a,sizes:"60x60"}];return Object(o.b)(jt.a,{title:"知乎",titleTemplate:e.Zhihu?"%s":"%s - 知乎",link:t})}}]),n}(a.Component),af=Object(Ot.connect)((function(e){return{ua:e.env.userAgent}}))(of),cf=n(195),sf=n(387);function uf(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var lf=function(e){Object(ml.a)(n,e);var t=uf(n);function n(){var e;return Object(bl.a)(this,n),(e=t.call(this)).state={actived:!1},e.displayLoadingTimeout=null,e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){this.setState({actived:Boolean(this.props.loadingCount)})}},{key:"componentWillReceiveProps",value:function(e){var t=this;e.page!==this.props.page&&(this.displayLoadingTimeout&&(clearTimeout(this.displayLoadingTimeout),this.displayLoadingTimeout=null),this.displayLoadingTimeout=setTimeout((function(){t.props.loadingCount&&t.setState({actived:!0})}),300)),this.props.loadingCount||!e.loadingCount||this.state.actived||this.setState({actived:!0}),this.props.loadingCount&&!e.loadingCount&&this.state.actived&&this.setState({actived:!1})}},{key:"componentWillUnmount",value:function(){clearTimeout(this.displayLoadingTimeout),this.displayLoadingTimeout=null}},{key:"render",value:function(){return Object(o.b)(sf.a,{active:this.state.actived})}}]),n}(a.Component);lf.propTypes={page:jl.a.string.isRequired};var df=Object(Ot.connect)((function(e){return{loadingCount:e.loading.global.count}}))(lf),ff=n(101);function pf(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var hf=function(e){var t=e.location;return Object(K.g)(t),null};var bf=function(e){Object(ml.a)(n,e);var t=pf(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.silent,n=e.fillCurrentUserIfNeeded,r=e.location.pathname;t||(console.log("\n _____ _____ _____ _____ \n /\\ \\ /\\ \\ /\\ \\ /\\ \\ \n /::\\____\\ /::\\ \\ /::\\ \\ /::\\ \\ \n /:::/ / \\:::\\ \\ /::::\\ \\ /::::\\ \\ \n /:::/ / \\:::\\ \\ /::::::\\ \\ /::::::\\ \\ \n /:::/ / \\:::\\ \\ /:::/\\:::\\ \\ /:::/\\:::\\ \\ \n /:::/____/ \\:::\\ \\ /:::/__\\:::\\ \\ /:::/__\\:::\\ \\ \n /::::\\ \\ /::::\\ \\ /::::\\ \\:::\\ \\ /::::\\ \\:::\\ \\ \n /::::::\\ \\ _____ ____ /::::::\\ \\ /::::::\\ \\:::\\ \\ /::::::\\ \\:::\\ \\ \n /:::/\\:::\\ \\ /\\ \\ /\\ \\ /:::/\\:::\\ \\ /:::/\\:::\\ \\:::\\____\\ /:::/\\:::\\ \\:::\\ \\ \n/:::/ \\:::\\ /::\\____\\/::\\ \\/:::/ \\:::\\____\\/:::/ \\:::\\ \\:::| |/:::/__\\:::\\ \\:::\\____\\\n\\::/ \\:::\\ /:::/ /\\:::\\ /:::/ \\::/ /\\::/ |::::\\ /:::|____|\\:::\\ \\:::\\ \\::/ /\n \\/____/ \\:::\\/:::/ / \\:::\\/:::/ / \\/____/ \\/____|:::::\\/:::/ / \\:::\\ \\:::\\ \\/____/ \n \\::::::/ / \\::::::/ / |:::::::::/ / \\:::\\ \\:::\\ \\ \n \\::::/ / \\::::/____/ |::|\\::::/ / \\:::\\ \\:::\\____\\ \n /:::/ / \\:::\\ \\ |::| \\::/____/ \\:::\\ \\::/ / \n /:::/ / \\:::\\ \\ |::| ~| \\:::\\ \\/____/ \n /:::/ / \\:::\\ \\ |::| | \\:::\\ \\ \n /:::/ / \\:::\\____\\ \\::| | \\:::\\____\\ \n \\::/ / \\::/ / \\:| | \\::/ / \n \\/____/ \\/____/ \\|___| \\/____/ \n\n知乎(zhihu.com),招聘前端开发工程师 http://zhi.hu/BDXoD\n "),r.match(/\/story\/\d+$/)||r.match(/\/authorize$/)||n(["email","accountStatus","isBindPhone"]))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.location,r=e.userAgent,i=e.disableMainHelmet;return Object(o.c)("div",{className:t,children:[!i&&Object(o.b)(af,{}),r.Wechat&&Object(o.b)(Tl,{}),!r.Zhihu&&Object(o.b)(df,{page:n.pathname.split("/").slice(0,3).join("/")}),Object(o.b)(hf,{location:n}),Object(o.b)(Yd,{}),this.props.children,Object(o.b)(kd,{}),Object(o.b)(Kd,{}),Object(o.b)(Rd.a,{style:{display:"none"},children:"想来知乎工作?请发送邮件到 jobs@zhihu.com"}),!r.Mobile&&Object(o.b)(cf.a,{children:Object(o.b)(Cd.c,{children:Object(o.b)(Cd.a,{onClick:function(e){e.preventDefault(),Object(Ed.scrollTo)(window,{top:0,behavior:"smooth"})}})})}),Object(o.b)(ff.d,{}),Object(o.b)(ff.e,{})]})}}]),n}(a.Component),vf=Object(Lt.compose)(Object(Ot.connect)((function(e){var t="/launcher"===e.env.ctx.path;return{currentUser:Object(B.b)(e),account:e.account,userAgent:e.env.userAgent,disableMainHelmet:t}}),{fillCurrentUserIfNeeded:B.d}),st.withRouter)(bf),mf=n(229),gf=Object(Ot.connect)((function(e){return{notification:Object(Xr.f)(e)}}))((function(e){var t=e.notification;return Object(o.b)(mf.a,{notification:t,delay:le.z})})),Of=n(105),yf=n(11),jf=n(120),Ef=n(14),Cf=n(529),wf=n(177);function Tf(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var _f=function(e){Object(ml.a)(n,e);var t=Tf(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props.hideSubtitle;return Object(o.c)("a",{className:"OrgZhihuLogo",href:"/organization","aria-label":"知乎机构号",children:[Object(o.b)(pd,{}),!e&&Object(o.b)("span",{className:"OrgZhihuLogo-appName",children:"机构号"})]})}}]),n}(a.PureComponent);function Sf(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Af=function(e){Object(ml.a)(n,e);var t=Sf(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.context.currentUser.email;return Object(o.b)("header",{role:"banner",className:"OrgAppHeader","data-za-module":"TopNavBar",children:Object(o.c)("div",{className:"OrgAppHeader-inner",children:[Object(o.b)(_f,{}),Object(o.c)("div",{className:"OrgAppHeader-userInfo",children:[Object(o.b)(jt.a,{title:"机构号 - 知乎"}),e,Object(o.b)(yf.c,{preset:"link",onClick:function(){location.href="/logout?next=/org/signup"},children:"退出"})]})]})})}}]),n}(a.Component);Af.contextTypes={currentUser:jl.a.object};var kf=n(691),Rf=n.n(kf),If=function(e){return c.a.createElement(xl.a,e,c.a.createElement("path",{d:"M4.523 15.076l.804-6.757a6.753 6.753 0 0 1 4.945-5.7 1.823 1.823 0 0 1 3.623 0 6.753 6.753 0 0 1 4.945 5.7l.804 6.757a2.293 2.293 0 0 0 1.712 2.108 1.093 1.093 0 0 1-.297 2.15H3.108a1.093 1.093 0 0 1-.297-2.15 2.293 2.293 0 0 0 1.712-2.108zM12.083 23a2.758 2.758 0 0 1-2.753-2.509.229.229 0 0 1 .232-.24h5.043a.229.229 0 0 1 .232.24 2.759 2.759 0 0 1-2.753 2.51z"}))};If.defaultProps={name:"Bell"};var xf=If,Nf=Object(a.forwardRef)((function(e,t){var n=e.Icon,r=e.count,i=Object(_e.a)(e,["Icon","count"]),a={position:"relative"};return"new"===("2"===Object(z.o)("web_pcleft")?"new":"old")&&(a=function(e){return{borderRadius:4,position:"relative",color:e.colors.GBK03A,height:36,width:36,"&:hover":{background:e.colors.GBK10A,color:e.colors.GBK03A}}}),Object(o.c)(yf.c,Object.assign({ref:t,preset:"plain",css:a},i,{children:[Object(o.b)(n,{size:22,center:!0}),r>0&&Object(o.c)(Ef.Box,{color:"GBK99B",bg:"GRD03A",px:"4px",css:{position:"absolute",bottom:"50%",left:"50%",fontSize:11,borderRadius:20},sx:{border:"2px solid",borderColor:"GBK99A"},children:[Math.min(r,99),r>99&&"+"]})]}))})),Df=Object(a.forwardRef)((function(e,t){return Object(o.b)(Nf,Object.assign({ref:t,Icon:xf},e))})),Pf=function(e){var t=e.className,r=Object(_e.a)(e,["className"]),i=Object(Bn.c)((function(){return n.e(14).then(n.bind(null,1363))}));return i?Object(o.b)(i,Object.assign({IconButton:Df,className:t},r)):Object(o.b)(Df,{className:t})},Lf=n(1059),Mf=Object(a.forwardRef)((function(e,t){return Object(o.b)(Nf,Object.assign({ref:t,Icon:Lf.a},e))})),Uf=function(e){var t=e.className,r=Object(_e.a)(e,["className"]),i=Object(Bn.c)((function(){return n.e(13).then(n.bind(null,1365))}));return i?Object(o.b)(i,Object.assign({IconButton:Mf,className:t},r)):Object(o.b)(Mf,{className:t})},Bf=n(179),zf=n(241),Ff=n(396);function Gf(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Vf=function(e){Object(ml.a)(n,e);var t=Gf(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"renderGroupItems",value:function(e,t){var n=this,r=this.props,i=r.renderItem,a=r.isItemDisabled,c=this.state,s=c.id,u=c.selectedIndex,l=c.selectedGroupKey;return e.map((function(e,r){var c=e.data||r;return Object(o.b)(Ff.a,{id:"".concat(s,"-").concat(t,"-").concat(c),tag:"div",disabled:a(e),hovered:r===u&&t===l,onMouseEnter:function(){n.setState({selectedIndex:r,selectedGroupKey:t})},onClick:function(){return n.handleClose(!0,r,t)},onMouseDown:function(e){return e.preventDefault()},role:"option",children:i(e)},c)}))}}]),n}(zf.b),Hf=function(){var e=w.a.get("search::top-search")||{},t=e.words,n=e.timeStamp;return t&&"string"==typeof t[0]?(w.a.delete("search::top-search"),null):t&&n&&(new Date).getTime()-Number(n)<6e5?t:null},qf=function(e){return function(){return e().then((function(e){var t=(e&&e.payload&&e.payload.topSearch||{}).words,n=(void 0===t?[]:t).map((function(e){return{displayQuery:e.displayQuery,query:e.query}})).slice(0,5);return w.a.set("search::top-search",{words:n,timeStamp:(new Date).getTime()}),n}))}},Kf=function(e,t){return e===t},Wf=function(e){return e?"search::history_".concat(e):"search::history_guest"},Yf=function(e,t,n){var r=w.a.get(e)||[];return t?r.filter((function(e){var n=e.q;return function(e,t){return"string"==typeof t&&t.toLowerCase().startsWith(e.toLowerCase())}(t,n)})).slice(0,2).map((function(e){return e.q})):r.slice(0,n?10:5).map((function(e){return e.q}))},Qf=function(e,t,n){var r=w.a.get(e)||[],o=r.findIndex((function(e){var n=e.q;return Kf(n,t)})),a=[];return t&&(a=o>-1?[].concat(Object(i.a)(r.slice(0,o)),Object(i.a)(r.slice(o+1))):r),w.a.set(e,a),a.slice(0,n?10:5).map((function(e){return e.q}))},Zf=function(e,t){return e.map((function(e,n){return Object.assign({data:(null==e?void 0:e.query)||e,index:n,id:null==e?void 0:e.rawId},t)}))},Jf=function(e,t){return"string"==typeof t&&e.startsWith(t)?Object(o.c)("span",{children:[Object(o.b)("em",{children:t}),e.slice(t.length)]}):e},Xf=function(e){return e?{history:{SearchSource:"SuggestionHistory",zaModuleName:"SearchHistoryItem"},suggest:{SearchSource:"Suggestion",zaModuleName:"SearchSuggestionItem"},searchLink:{SearchSource:"",zaModuleName:"SearchSuggestionList"}}:{topSearch:{SearchSource:"Hot",zaModuleName:"HotSearchWordItem"},history:{SearchSource:"History",zaModuleName:"SearchHistoryItem"}}},$f=function(e,t,n,r){q.a.trackCardShow(e,{},{search:Object.assign({search_source:Xf(r)[n].SearchSource,raw_query:t},r&&{input_query:r})})},ep=function(e){var t=e.type,n=e.index,r=e.rawSearchResult,o=e.data,i=null;"searchLink"!==t?i=(document.querySelectorAll(".SearchBar-menu div[data-za-detail-view-path-module =\n ".concat(Xf(r)[t].zaModuleName,"]"))||[])[n]:i=document.querySelector(".SearchBar-menu div[data-za-detail-view-element_name=ViewSeachResult]");i&&q.a.trackEvent(i,Object.assign({action:"Click"},"searchLink"===t?{element_name:"ViewSeachResult"}:{}),{search:Object.assign({search_source:Xf(r)[t].SearchSource,raw_query:o},r&&{input_query:r})})},tp=function(e,t){return t?"SearchSuggestionList":"history"===e?"SearchHistoryList":"topSearch"===e?"HotSearchWordList":""},np=function(e){return function(t){return e(t).then((function(e){return e.payload.suggest.map((function(e){return{query:e.query,rawId:e.rawId}}))}))}},rp=function(e){return c.a.createElement(xl.a,e,c.a.createElement("defs",null,c.a.createElement("linearGradient",{id:"id-2014200654-a",x1:"63.313%",x2:"46.604%",y1:"-13.472%",y2:"117.368%"},c.a.createElement("stop",{offset:"2.35%",stopColor:"#EC471E"}),c.a.createElement("stop",{offset:"100%",stopColor:"#FF6DC4"}))),c.a.createElement("path",{fill:"url(#id-2014200654-a)",d:"M14.553 20.78c.862-.651 1.39-1.792 1.583-3.421.298-2.511-.656-4.904-2.863-7.179.209 2.291.209 3.73 0 4.314-.41 1.143-1.123 1.983-1.91 2.03-1.35.079-2.305-.512-2.863-1.774-.676 1.25-.782 2.556-.318 3.915.31.906.94 1.684 1.89 2.333C7.144 20.131 5 17.336 5 14.022c0-2.144.898-4.072 2.325-5.4.062 2.072.682 3.598 2.13 4.822-.67-1.112-.734-2.11-.734-3.517 0-3.253 2.067-6.007 4.913-6.927a7.35 7.35 0 0 0 2.157 4.918C17.722 9.214 19 11.463 19 14.022c0 3.073-1.844 5.7-4.447 6.758z",fillRule:"evenodd"}))};rp.defaultProps={name:"Hot"};var op=rp;function ip(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var ap=function(e){Object(ml.a)(n,e);var t=ip(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.index,n=e.query;q.a.setModule(this.container,{module:"HotSearchWordItem",index:t}),$f(this.container,n,"topSearch","")}},{key:"render",value:function(){var e=this,t=this.props,n=t.index,r=t.query;return Object(o.c)("div",{className:"SearchBar-topSearchItem",ref:function(t){e.container=t},children:[r,n<3&&Object(o.b)(op,{className:"SearchBar-hotIcon",size:18})]},n)}}]),n}(a.Component);function cp(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var sp=function(e){Object(ml.a)(n,e);var t=cp(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleDelete=function(t,n){var r=e.props.rawSearchResult;q.a.trackEvent(t.target,{action:"Delete"},{search:Object.assign({raw_query:n},r&&{input_query:r,search_source:"SuggestionHistory"},!r&&{search_source:"History"})}),e.props.onDelete(t,n)},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.index,n=e.data,r=e.rawSearchResult;q.a.setModule(this.container,{module:"SearchHistoryItem",index:t}),$f(this.container,n,"history",r)}},{key:"render",value:function(){var e=this,t=this.props,n=t.data,r=t.rawSearchResult;return Object(o.c)("div",{ref:function(t){e.container=t},className:"SearchBar-historyItem",children:[Object(o.b)("span",{className:rl()("SearchBar-historyItemContent",{blueFont:r}),children:Jf(n,r)}),Object(o.c)("div",{className:"SearchBar-historyIconWrapper SearchBar-historyDelete",children:[Object(o.b)("span",{className:"preventCloseOnTarget SearchBar-historyIconShade",onClick:function(t){return e.handleDelete(t,n)},onMouseDown:function(e){return e.preventDefault()}}),Object(o.b)(Il.a,{width:18,height:18,fill:"#d3d3d3"})]})]})}}]),n}(a.Component),up=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lp=function(e){return c.a.createElement(xl.a,up({fill:"currentColor"},e),c.a.createElement("path",{d:"M15.5 3A1.5 1.5 0 0 1 17 4.5V6h3.75a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25H19v11.5a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 5 19.5V8H3.25A.25.25 0 0 1 3 7.75v-1.5A.25.25 0 0 1 3.25 6H7V4.5A1.5 1.5 0 0 1 8.5 3h7zM7 8v10.75c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V8H7zm8-2.75V6H9v-.75A.25.25 0 0 1 9.25 5h5.5a.25.25 0 0 1 .25.25zm-6 5a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25v6.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-6.5zm4.25-.25a.25.25 0 0 0-.25.25v6.5c0 .138.112.25.25.25h1.5a.25.25 0 0 0 .25-.25v-6.5a.25.25 0 0 0-.25-.25h-1.5z",fillRule:"evenodd",clipRule:"evenodd"}))};lp.defaultProps={name:"TrashOutline"};var dp=lp;function fp(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var pp=function(e){Object(ml.a)(n,e);var t=fp(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){q.a.trackCardShow(this.container,{name:"清空"})}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.onDelete;return Object(o.c)("div",{className:"SearchBar-label SearchBar-label--history","data-za-detail-view-path-module":tp("history",""),onMouseDown:function(e){return e.preventDefault()},children:[n,Object(o.c)("div",{ref:function(t){e.container=t},className:"SearchBar-historyIconWrapper",children:[Object(o.b)("span",{className:"SearchBar-historyIconShade preventCloseOnTarget",onClick:function(e){q.a.trackEvent(e.target,{action:"Click",name:"清空"}),r(e,null)}}),Object(o.b)(dp,{center:!0}),"清空"]})]})}}]),n}(a.Component);function hp(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var bp=function(e){Object(ml.a)(n,e);var t=hp(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.data,n=e.rawSearchResult,r=e.index;q.a.setModule(this.container,{module:"SearchSuggestionItem",index:r}),$f(this.container,t,"suggest",n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.data,r=t.rawSearchResult;return Object(o.b)("div",{ref:function(t){e.container=t},className:"SearchBar-defaultResult",children:Jf(n,r)})}}]),n}(a.Component);function vp(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var mp=function(e){Object(ml.a)(n,e);var t=vp(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.data,n=e.rawSearchResult;$f(this.container,t,"history",n)}},{key:"render",value:function(){var e=this,t=this.props.rawSearchResult;return Object(o.c)("div",{ref:function(t){e.container=t},className:"SearchBar-searchLink","data-za-detail-view-element_name":"ViewSeachResult",children:["查看「",t.length>12?"".concat(t.slice(0,12),"..."):t,"」的搜索结果"]})}}]),n}(a.Component),gp=function(e){var t=e.handleReportShow;return Object(o.b)(o.a,{children:Object(o.b)("div",{className:"ReportsItem",onClick:function(e){e.stopPropagation(),t()},children:"举报"})})},Op=function(){return w.a.get("search:preset_words")},yp=function(e){w.a.set("search:preset_words",e)},jp=function(e){var t=Op();if(t){var n=t.words,r={nextRequestTime:t.nextRequestTime,words:n.map((function(t){return t.id===e?Object.assign({},t,{valid:0}):t}))};yp(r)}},Ep=function(e){return!e||!e.lastUpdateTime||e.lastUpdateTime+3e4<Date.now()},Cp=function(e){var t=Op();if(t){var n=t.words,r=t.nextRequestTime,o=t.lastUpdateTime,i=t.lastId,a=Ep(t),c={nextRequestTime:r,lastUpdateTime:a?Date.now():o,lastId:a?e:i,words:n.map((function(t){return t.id===e?Object.assign({},t,{times:t.times+1}):t}))};yp(c)}},wp=function(e){var t=e&&e.payload&&e.payload.presetWords||{},n=t.nextRequestTs,r=t.words,o=(Op()||{}).words,i=void 0===o?[]:o,a={nextRequestTime:n?1e3*n:Date.now()+6e5,words:r.map((function(e){var t=e.id,n=e.beginTs,r=e.endTs,o=i.find((function(e){return e.id===t})),a=o&&o.times||0;return Object.assign({},e,{times:a,beginTs:1e3*n,endTs:1e3*r})}))};return yp(a),a},Tp=function(e){var t=Date.now(),n=e.filter((function(e){var n=e.valid,r=e.beginTs,o=e.endTs;return n&&r<t&&o>t}));if(!n.length)return!1;var r=[],o=n.filter((function(e){return e.weight>=10})),a=(function(e){var t=Math.random();return e.find((function(n,r){var o=n.range,i=r===e.length-1?1:o[1];return o[0]<t&&i>t}))||e[e.length-1]}(function(e){var t=e.reduce((function(e,t){return e+t.weight}),0);return e.reduce((function(e,n){var r=n.id,o=n.weight,a=e&&e[e.length-1]&&e[e.length-1].range[1]||0;return[].concat(Object(i.a)(e),[{id:r,range:[a,a+o/t]}])}),[])}((r=o.length>0?o:n).map((function(e){var t=e.weight,n=e.times;return{weight:t/((void 0===n?0:n)+1),id:e.id}}))))||{}).id,c=void 0===a?"-1":a;return r.find((function(e){return e.id===c}))},_p=function(e){var t=Op(),n=t||{},r=n.nextRequestTime,o=n.words;if(r&&(r<Date.now()||r>325036512e5)||!o)return e(function(e){return e?e.words.map((function(e){return{valid:e.valid,id:e.id}})):null}(t)).then(wp).then((function(e){var t=e.words.filter((function(e){return"general"===e.type})),n=Tp(t);return Cp(n.id),n}));var i=o.filter((function(e){return"general"===e.type}));if(!Ep(t)){var a=t.lastId;return Promise.resolve(i.find((function(e){var t=e.id;return a===t})))}var c=Tp(i);return Cp(c.id),Promise.resolve(c)};function Sp(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Ap=function(e){Object(ml.a)(n,e);var t=Sp(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={},e.hasChange=function(t){if(!t)return!1;var n=e.props,r=n.transitionKey,o=n.children;return t.transitionKey||r?t.transitionKey!==r:o!==t.children},e.handleRef=function(t){e.node=t},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){this.setState({height:this.getHeight()})}},{key:"componentDidUpdate",value:function(e){this.hasChange(e)&&this.setState({height:this.getHeight()})}},{key:"getHeight",value:function(){return this.node&&(Object(V.findDOMNode)(this.node)||{}).scrollHeight||0}},{key:"render",value:function(){var e=ei()(this.props,["transitionKey"]),t=e.component,n=e.children,r=e.style,i=e.timeout,c=e.transitionAppear,s=e.transitionLeave,u=Object(_e.a)(e,["component","children","style","timeout","transitionAppear","transitionLeave"]),l=this.state.height,d=c&&n||s&&!n;return Object(o.b)(t,Object.assign({style:Object.assign({height:l,overflow:"hidden"},d&&{transition:"height ".concat(i,"ms ease-out")},r)},u,{children:n&&Object(a.cloneElement)(n,{ref:this.handleRef})}))}}]),n}(a.Component);Ap.propTypes={transitionKey:jl.a.any,component:jl.a.any,children:jl.a.node,timeout:jl.a.number,transitionAppear:jl.a.bool,transitionLeave:jl.a.bool},Ap.defaultProps={component:"div",timeout:300,transitionAppear:!0,transitionLeave:!0};var kp=Ap;function Rp(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Ip=function(e){Object(ml.a)(n,e);var t=Rp(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e,t;this.unsubscriber=(e=this.props.onUnload,t=function(t){var n=e(t);if(n)return(t||window.event).returnValue=n,n},window.addEventListener("beforeunload",t),function(){return window.removeEventListener("beforeunload",t)})}},{key:"componentWillUnmount",value:function(){this.unsubscriber()}},{key:"render",value:function(){return this.props.children||null}}]),n}(a.Component),xp=n(115),Np=n(246);function Dp(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Pp=function(e){e=e||{};var t=a.createContext(e),n=t.Provider,r=t.Consumer;return{consume:function(e){return function(t){e=e||function(e){return e};var n=function(n){Object(ml.a)(a,n);var i=Dp(a);function a(){return Object(bl.a)(this,a),i.apply(this,arguments)}return Object(vl.a)(a,[{key:"render",value:function(){var n=this.props,i=n.forwardedRef,a=Object(_e.a)(n,["forwardedRef"]);return Object(o.b)(r,{children:function(n){return Object(o.b)(t,Object.assign({ref:i},a,e(n),{onChangeContext:n.onChangeContext}))}})}}]),a}(a.Component);return tl()(a.forwardRef((function(e,t){return Object(o.b)(n,Object.assign({},e,{forwardedRef:t}))})),t)}},provide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return function(t){var r=function(r){Object(ml.a)(a,r);var i=Dp(a);function a(){var t;Object(bl.a)(this,a);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=i.call.apply(i,[this].concat(r))).state=Object.assign({},"function"==typeof e?e(t.props):e),t.handleChange=function(e,n){return t.setState(e,n)},t}return Object(vl.a)(a,[{key:"render",value:function(){return Object(o.b)(n,{value:Object.assign({onChangeContext:this.handleChange},this.state),children:Object(o.b)(t,Object.assign({},this.props,this.state,{onChangeContext:this.handleChange}))})}}]),a}(a.Component);return tl()(r,t)}}}}(),Lp=Pp.provide,Mp=Pp.consume;function Up(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Bp=function(e){return function(t){var n=e.load,r=function(e){Object(ml.a)(i,e);var r=Up(i);function i(){var e;Object(bl.a)(this,i);for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return(e=r.call.apply(r,[this].concat(o))).state={isFetching:!1,isDrained:!1,error:null,data:null},e.load=function(){e.setState({isFetching:!0}),n(e.props).then((function(t){return e.setState({isFetching:!1,isDrained:!0,data:t})})).catch((function(t){return e.setState({isFetching:!1,error:t})}))},e}return Object(vl.a)(i,[{key:"render",value:function(){return Object(o.b)(t,Object.assign({},this.props,this.state,{load:this.load}))}}]),i}(a.Component);return tl()(r,t)}},zp=n(395);function Fp(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Gp=function(e){Object(ml.a)(n,e);var t=Fp(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleChange=function(t){return e.props.onChangeContext({brandId:t})},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.brandId,n=e.data,r=n&&n.payload&&n.payload.data||[];return Object(o.b)(xp.b,Object.assign({className:"AskBrand",listClassName:"AskBrand--list"},!t&&{text:Object(o.b)("span",{className:"AskBrand-text",children:"选择品牌"})},{value:t,onChange:this.handleChange,children:r.map((function(e){return Object(o.b)(xp.a,{value:e.id,text:Object(o.c)("span",{className:"AskBrand-text",children:[e.name,e.clickInfo&&e.clickInfo.target&&e.clickInfo.target.isOrg&&Object(o.b)(Np.a,{size:24,"aria-label":"已认证的官方帐号"})]})},e.id)}))}))}}]),n}(a.Component),Vp=Object(Lt.compose)(Object(Ot.connect)((function(e){return{currentUser:Object(B.b)(e)}})),Bp({load:function(e){return e.dispatch(Object(On.d)(e.currentUser.urlToken))}}),Object(zp.a)({load:function(e){return e.load()}}),Mp((function(e){return{brandId:e.brandId}})))(Gp),Hp=n(1061),qp=function(e){var t=e.removable,n=e.onRemove,r=e.className,o=e.children;return Object(Md.c)("div",{className:rl()("Tag",r,{"Tag--removable":t})},Object(Md.c)("span",{className:"Tag-content"},o),t&&Object(Md.c)("button",{type:"button",className:"Tag-remove",onClick:n},Object(Md.c)(Il.a,{text:!0})))};function Kp(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Wp=function(e){Object(ml.a)(n,e);var t=Kp(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).handleAdd=function(t){var n=e.props,r=n.value,o=n.onChange,a=n.onAdd;a&&a(t),o&&o([].concat(Object(i.a)(r),[t]))},e.handleRemove=function(t){var n=e.props,r=n.value,o=n.onChange,a=n.onRemove;a&&a(r[t],t),o&&o([].concat(Object(i.a)(r.slice(0,t)),Object(i.a)(r.slice(t+1))))},e.handleIfBackspace=function(t){var n=e.props.value;8===t.keyCode&&!e.state.value&&n.length&&e.handleRemove(n.length-1)},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.value,i=t.renderTagInner,a=t.renderInput;return Object(o.c)("div",{className:rl()("TagInputAlias",n),children:[r&&r.map((function(t,n){return Object(o.b)(qp,{removable:!0,onRemove:function(){return e.handleRemove(n)},children:i(t)},n)})),a({onAdd:this.handleAdd,onIfBackspace:this.handleIfBackspace})]})}}]),n}(a.Component);Wp.propTypes={renderTagInner:jl.a.func.isRequired,renderInput:jl.a.func,value:jl.a.array.isRequired,onAdd:jl.a.func,onRemove:jl.a.func,onChange:jl.a.func};var Yp=Wp,Qp=n(379);function Zp(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Jp=function(e){return e.name.startsWith("创建 ")&&e.name.endsWith(" 话题")},Xp=function(e){Object(ml.a)(n,e);var t=Zp(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={value:"",items:[]},e.mounted=!1,e.fetchTopic=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Qp.c.apply(void 0,n.concat([[],{topic_filter:1}])).then((function(t){t=t.filter((function(e){return!Jp(e)}));var r=e.props.currentUser,o=n[0];return r&&r.canEditTopic&&!t.find((function(e){return e.name===o}))?[].concat(Object(i.a)(t),[{urlToken:"topic",token:o,name:"创建 ".concat(o," 话题")}]):t}))},e.createTopic=function(t){return e.props.createTopic(t).then((function(e){return e.payload}))},e.handleSelect=function(t,n){var r=e.props.onSelect;Promise.resolve(Jp(n)?e.createTopic(n.token||n.name):n).then((function(t){r&&r(t),e.mounted&&e.setState({value:""})}))},e.handleChange=Rt()((function(t){e.setState({value:t}),e.fetchTopic(t).then((function(t){return e.mounted&&e.setState({items:t})}))}),200),e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){this.mounted=!0,(0,this.props.fillCurrentUserIfNeeded)(["canEditTopic"])}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"render",value:function(){var e=this.state,t=e.value,n=e.items,r=this.props.filter;return Object(o.b)(zf.b,Object.assign({},this.props,{autoFocus:!0,value:t,items:r&&n?n.filter(r):n,onChange:this.handleChange,onSelect:this.handleSelect}))}}]),n}(a.Component),$p=Object(Lt.compose)(Object(Ot.connect)((function(e){return{currentUser:Object(B.b)(e)}}),{createTopic:lo.c,fillCurrentUserIfNeeded:B.d}))(Xp);function eh(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var th=function(e){Object(ml.a)(n,e);var t=eh(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleClick=function(t){var n=e.props.onToggleActived;n&&n(),q.a.trackEvent(t.target,{id:2465,action:"Click"})},e.handleBlur=function(t){var n=e.props.onBlur;n&&n(t);var r=e.props.onToggleActived;r&&r()},e.handleChange=function(t){var n=e.props,r=n.max,o=n.onChange;r>0&&o(t.slice(0,r))},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.max,i=t.value,a=t.inputProps,c=t.onAdd,s=t.onRemove,u=t.actived,l=t.onRef,d=t.placeholderNote,f="添加话题".concat(i.length>0?"(".concat(i.length,"/").concat(r,")"):d||"(至少添加一个话题)");return Object(o.b)(Yp,{className:rl()("TopicInputAlias-tagInput",n),value:i,renderInput:function(t){var n=t.onAdd,c=t.onIfBackspace;return(!i||i.length<r)&&(u?Object(o.b)($p,{className:"TopicInputAlias-autocomplete",inputProps:{className:rl()("TopicInputAlias-input",null==a?void 0:a.className),after:Object(o.b)(Rl.a,{text:!0,center:!0})},menuProps:{menuClassName:"TopicInputAlias-suggestionContainer"},filter:i&&function(e){return!i.find((function(t){return function(e,t){if(!e||!t)return!1;var n=e.urlToken||e.id,r=t.urlToken||t.id;return n&&n===r}(t,e)}))},onRef:l,onKeyDown:c,onSelect:n,onBlur:e.handleBlur,placeholder:f}):Object(o.b)(yf.c,{className:"TopicInputAlias-placeholderButton",label:f,icon:Hp.a,onClick:e.handleClick,preset:"plain",color:"blue"}))},renderTagInner:function(e){return Object(o.b)("a",{target:"_blank",rel:"noopener noreferrer",href:"//www.zhihu.com/topic/".concat(e.id||e.urlToken),children:e.name})},onAdd:c,onRemove:s,onChange:this.handleChange})}}]),n}(a.Component);th.propTypes={max:jl.a.number},th.defaultProps={max:5};var nh=th,rh={title:"AskQuestion::title",topics:"AskQuestion::topics",detail:"AskQuestion::detail"},oh=function(){var e=w.a.get(rh.detail)||"";if(e&&"undefined"!==e){var t=e.html||e;if("string"==typeof t)return t}return""},ih=function(e){Object.keys(e).forEach((function(t){var n=rh[t];n&&void 0!==e[t]&&w.a.set(n,e[t])}))},ah=function(e){return e.length<4?{level:"error",text:"至少输入 ".concat(4," 个字"),ignoreInInput:!0,blockSubmit:!0}:e.length>51?{level:"error",text:"已超过 ".concat(e.length-51," 个字"),ignoreInInput:!0,blockSubmit:!0}:e.length>0&&-1===e.indexOf("?")&&-1===e.indexOf("?")?{level:"error",text:"你还没有给问题添加问号",blockSubmit:!0}:(e.match(/(\?|?)/g)||[]).length>1?{level:"warning",text:"多个问题建议拆分"}:null},ch=function(e){return e&&0!==e.length?null:{level:"error",text:"至少添加一个话题",blockSubmit:!0}},sh=function(e){return!!e&&(e.hasVideo("upload")?{level:"error",blockSubmit:!0,text:"请等待视频上传完成后发布"}:e.hasImage("upload")?{level:"error",blockSubmit:!0,text:"请等待图片上传完成后发布"}:e.hasImage("error")||e.hasVideo("error")&&!e.hasVideo("error-review")?{level:"fatal",blockSubmit:!0,text:"草稿中含有上传失败的内容,请更改后重新提交",title:"上传失败"}:!(!e.hasVideo("error-review")&&!e.hasVideo("censor"))&&{level:"fatal",blockSubmit:!0,text:"视频中包含未通过审核的信息,请更改后重新提交",title:"视频未通过审核"})},uh=function(e){return"commercial"===e};function lh(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var dh=function(e){Object(ml.a)(n,e);var t=lh(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={activated:!1,changed:!1},e.updateTopicsFromKeyword=Rt()((function(t){var n=e.props,r=n.loadMatchTopics,o=n.onChangeContext;r({text:t}).then((function(e){var t=e.payload;o({topics:t.data.slice(0,3)})}))}),200),e.handleChange=function(t){var n=e.props.onChangeContext,r=e.validate(t);r||e.setState({changed:!0}),n({topics:t,topicsTip:r}),r?e.focus():e.deactivated()},e.handleRemove=function(){return q.a.trackEvent(Object(kl.a)(e),{id:2466,action:"Delete"})},e.deactivated=function(){e.setState({activated:!1})},e.toggleActivated=function(){return e.setState({activated:!e.state.activated})},e.validate=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props.value;return ch(t)},e.focus=function(){return e.topicsInput&&e.topicsInput.focus()},e}return Object(vl.a)(n,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.keyword,r=t.onChangeContext;if(n!==e.keyword){if(!n)return void r({topics:[]});!this.state.changed&&(n.length>=5||Math.abs(e.keyword.length-n.length)>=3)&&this.updateTopicsFromKeyword(n)}}},{key:"render",value:function(){var e=this,t=this.props.value,n=void 0===t?[]:t,r=this.state.activated;return Object(o.b)(nh,{actived:r,inputProps:{className:"AskTopics-input"},onRef:function(t){e.topicsInput=t},value:n,onChange:this.handleChange,onRemove:this.handleRemove,onToggleActived:this.toggleActivated})}}]),n}(a.Component),fh=Object(Lt.compose)(Object(Ot.connect)(null,{loadMatchTopics:function(e){var t=Object.assign({type:"question"},e),n=t.text,r=t.type;return{API:{types:Oi.GET_MATCH_TOPICS,endpoint:"/recommendations/match-topics",query:{text:n,type:r}}}}}),Mp((function(e){return{keyword:e.title,value:e.topics||[]}})))(dh),ph=n(302),hh=n(58),bh=function(e){return Object(o.b)("div",{style:{textAlign:"right",minHeight:"1.67em"},children:Object(o.b)("span",{className:rl()("AskFieldTip",Object(Ut.a)({},"AskFieldTip--".concat(e.level),e.level)),children:e.text})})};function vh(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var mh=18,gh=16,Oh=Math.floor(1.34*mh*2),yh=function(e){Object(ml.a)(n,e);var t=vh(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={fontSize:mh,items:[],rows:1,pos:0},e.appended=!1,e.focus=function(){return e.input&&e.input.focus()},e.handleKeyDown=function(e){13===e.keyCode&&e.preventDefault()},e.handleSelect=function(e,t){window.open("/question/".concat(t.urlToken,"?q=").concat(e),"_self")},e.handleCompositionEnd=function(t){var n=t.target.value,r=e.props.onChangeContext;if(!e.appended&&"string"==typeof n&&n.length&&-1===n.indexOf("?")&&-1===n.indexOf("?")){e.appended=!0;var o=e.input&&e.input.selectionStart,i="".concat(n,"?");return e.setState({pos:o},(function(){e.input&&e.input.setSelectionRange(o,o)})),r({title:i,titleTip:e.validate(i)})}},e.handleFocus=function(t){e.change(t.target.value),e.setState({focused:!0});var n=e.props.onFocus;n&&n(t)},e.handleBlur=function(t){e.change(t.target.value),e.setState({focused:!1})},e.handleDivRef=function(t){e.div=t},e.handleChange=function(t){return e.change(t)},e.change=function(t){var n=e.props,r=n.onChangeContext;if(t!==n.value)return t?e.updateItems(t):e.setState({items:[]}),r({title:t,titleTip:e.validate(t)})},e.updateItems=Rt()((function(t){return Object(Qp.b)(t).then((function(t){return e.setState({items:t})}))}),200),e.updateHeight=function(){if(e.input&&e.div){var t=e.state.fontSize,n=e.props,r=n.line,o=n.onChangeLine,i=e.div.scrollHeight;i>=Oh&&r<2?o(2):i<Oh&&r>=2&&o(1),t!==gh?i>Oh&&e.setState({fontSize:gh}):t!==mh&&i<=Oh&&e.setState({fontSize:mh})}},e.validate=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props.value,n=ah(t||""),r=e.props.onError;return r&&r(n),n},e.renderLabel=function(e){return Object(o.c)("div",{className:"AskTitle-suggestionClose",children:[Object(o.b)("span",{children:e}),Object(o.b)(yf.c,{preset:"plain",children:"关闭"})]})},e.renderItem=function(t){var n=e.props.value;return Object(o.c)("a",{className:"AskTitle-suggestionItemLink",href:"//www.zhihu.com/question/".concat(t.urlToken,"?q=").concat(n),children:[Object(o.b)("span",{className:"AskTitle-suggestionItemTitle",dangerouslySetInnerHTML:{__html:t.name}}),Object(o.c)("span",{className:"AskTitle-suggestionItemDesc",children:[Object(hh.formatNumber)(t.answersCount)," 个回答"]})]},t.urlToken)},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this;this.updateHeight(),setTimeout((function(){e.focus();var t=e.props.onFocus;t&&t()}))}},{key:"componentDidUpdate",value:function(e){e.value!==this.props.value&&(this.updateHeight(),this.validate())}},{key:"render",value:function(){var e=this,t=this.state,n=t.focused,r=t.items,i=t.fontSize,c=this.props,s=c.value,u=c.line,l=c.tip;return Object(o.c)(a.Fragment,{children:[Object(o.c)("div",{className:"AskTitle",children:[Object(o.b)("div",{className:"AskTitle-text",ref:this.handleDivRef,children:s}),Object(o.b)(zf.b,{value:s,autoFocus:!0,onChange:this.handleChange,inputProps:{required:!0,multiline:!0,rows:u,spread:!0,large:!0,onCompositionEnd:this.handleCompositionEnd,placeholder:"写下你的问题,准确地描述问题更容易得到解答",className:"AskTitle-input",onKeyDown:this.handleKeyDown,style:{fontSize:i}},menuProps:{position:this.position,preventCloseOnTarget:!0,menuContainerClassName:"AskTitle-suggestionPopover",itemClassName:"AskTitle-suggestionItem",menuClassName:"AskTitle-suggestionContainer"},labels:Object(Ut.a)({},"group-title","你的问题可能已经有答案"),renderLabel:this.renderLabel,groups:Object(Ut.a)({},"group-title",r.slice(0,10)),renderItem:this.renderItem,preventOpenOnFocus:!0,onRef:function(t){return e.input=t},autoSelect:!1,onSelect:this.handleSelect,onBlur:this.handleBlur,onFocus:this.handleFocus})]}),Object(o.b)(bh,Object.assign({},!n||l&&!l.ignoreInInput?l:{text:Object(o.b)(ph.a,{current:s?s.length:0,max:51,name:""})}))]})}}]),n}(a.Component),jh=Mp((function(e){return{value:e.title||"",tip:e.titleTip}}))(yh),Eh=n(111),Ch=n(48),wh=function(e){return c.a.createElement(xl.a,e,c.a.createElement("path",{d:"M6.295 15.4L5.06 19H3L7.684 6h1.813l4.684 13h-2.06l-1.235-3.6h-4.59zM17.092 19c-1.548 0-2.647-.962-2.647-2.391 0-1.428 1.063-2.27 2.916-2.384l1.782-.103v-.43c0-.653-.419-.996-1.286-.996-.724 0-1.194.25-1.323.663l-.046.147H14.7l.027-.234c.161-1.366 1.436-2.24 3.196-2.24 1.93 0 3.076.987 3.076 2.66v5.188h-1.81v-.75c-.5.56-1.243.87-2.098.87zM6.89 13.646h3.4L8.59 8.69l-1.7 4.956zM17.582 15.7c-.901.06-1.267.325-1.267.842 0 .504.439.827 1.146.827.973 0 1.682-.6 1.682-1.383v-.385l-1.56.1z"}))};wh.defaultProps={name:"Format"};var Th=wh,_h=n(1082),Sh=n(1079),Ah=n(212),kh=n(124),Rh={"video-count":"最多只能上传 10 个视频","video-count-one":"视频暂时只支持上传一个","video-size":"请上传大小不超过 2G 的视频","video-duration":"请上传不超过 60 分钟的视频","video-type":"暂不支持该文件格式","video-uploading":"视频上传完成后即可发布","video-uploading-draft":"视频上传完成后即可保存草稿","video-upload-cancelled":"匿名身份不能使用视频功能","video-uploading-entity-small":"请上传大小超过 100KB 的视频","video-upload-error":"视频上传失败,请重新上传","doc-size":"文档最大 5MB,请重新上传","doc-type":"暂不支持该文件格式","image-uploading":"图片上传完成后即可发布","mage-uploading-draft":"图片上传完成后即可保存草稿","video-and-image":"图片、视频暂时无法同时上传","unsupported-browser":"暂不支持的浏览器, 请更换浏览器后重试"};function Ih(e,t,n,r){"image-upload-error"!==e?n(Rh[e],"red",r):n(Mo()(t,"payload.err.payload.message")||"图片上传失败,请重新上传","red",r)}function xh(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Nh=function(e){Object(ml.a)(n,e);var t=xh(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={toolBarShown:!1},e.focus=function(){return e.editable&&e.editable.focus()},e.triggerImageUpload=function(){e.editable&&e.editable.handleKeyCommand("insert-image")},e.triggerVideoUpload=function(){e.editable&&e.editable.handleKeyCommand("insert-video")},e.handleChange=function(t){var n=e.props.onChangeContext;n&&n({detail:t})},e.handleBlur=function(t){var n=e.validate();(0,e.props.onChangeContext)({detailTip:n});var r=e.props.onBlur;r&&r(t)},e.handleTrackDescriptionClickOnce=I()((function(e){q.a.trackEvent(e.target,{id:2464,action:"Click"})})),e.handleToggleToolbar=function(){return e.setState({toolBarShown:!e.state.toolBarShown})},e.handleRef=function(t){return e.editable=t},e.handleUploadError=function(t,n){switch(n){case"video":e.handleError("video-upload-error");break;case"image":e.handleError("image-upload-error",t)}},e.handleError=function(e,t){return Ih(e,t,kh.b)},e.checkIfCanUpload=function(){return e.props.canUpload},e.hasVideo=function(){return e.editable&&e.editable.hasVideo()},e.canExit=function(){return e.editable&&e.editable.hasVideo("upload")?Object(kh.a)("关闭弹窗将丢失上传中的视频内容"):Promise.resolve()},e.validate=function(){return sh(e.editable)},e.validateAndNotice=function(){var t=e.validate();return!!t&&("fatal"===t.level?Ch.a.alert(t.text,{title:t.title}):Object(kh.b)(t.text),e.focus(),t)},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.state.toolBarShown,t=this.props,n=t.onFocus,r=t.value;return Object(o.c)("div",{className:"AskDetail",children:[Object(o.b)("div",{className:"AskDetail-actionsWrapper",children:Object(o.c)("div",{className:"AskDetail-actions",children:[Object(o.b)(Eh.a,{label:"".concat(e?"收起":"展开","工具栏"),isActive:e,icon:Th,onClick:this.handleToggleToolbar}),Object(o.b)(Eh.a,{label:"插入图片",icon:_h.a,onClick:this.triggerImageUpload}),Object(o.b)(Eh.a,{label:"上传视频",icon:Sh.a,onClick:this.triggerVideoUpload})]})}),Object(o.b)("div",{className:"AskDetail-inputWrapper",onClick:this.handleTrackDescriptionClickOnce,children:Object(o.b)(Ah.a,{placeholder:"输入问题背景、条件等详细信息(选填)",className:"AskDetail-input",ref:this.handleRef,allowDragAndDrop:!0,allowLinkCard:!0,minRows:2,allowToolbar:e,allowHeaderThree:!1,defaultValue:r&&r.toHTML(),onChange:this.handleChange,onError:this.handleError,onUploadError:this.handleUploadError,onBeforeVideoUpload:this.checkIfCanUpload,onBlur:this.handleBlur,onFocus:n,editingContentType:"question"})})]})}}]),n}(a.Component),Dh=Mp((function(e){var t=e.detail;return{value:t&&t.toHTML?t:{toHTML:function(){return t}}}}))(Nh),Ph=n(1083),Lh=n(183);function Mh(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Uh=function(e){Object(ml.a)(n,e);var t=Mh(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={shouldShowHintText:!1},e.showHintText=function(){e.setState({shouldShowHintText:!0})},e.hideHintText=function(){e.setState({shouldShowHintText:!1})},e.setHintTextShown=function(){w.a.set("askQuestion::hasSeenShowAuthorHint",!0)},e.checkHintTextStatus=function(){w.a.get("askQuestion::hasSeenShowAuthorHint")||(e.showHintText(),e.setHintTextShown(),setTimeout((function(){e.hideHintText()}),5e3))},e.handleChange=function(){var t=e.props,n=t.value,r=t.hasVideo,o=t.onChangeContext,i=!n;i&&r()?Object(kh.b)("匿名不能使用知乎视频功能,如需启用匿名请删除问题中的视频",{theme:"red"}):o({isAnonymous:i})},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){this.props.showAuthorHint&&this.checkHintTextStatus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.currentUser,r=t.showAuthorHint,i=t.value,a=t.questionType,c=this.state.shouldShowHintText;return n&&"organization"===n.userType||"commercial"===a||Object(o.b)("div",{children:Object(o.c)("div",{className:"AskOptions",children:[Object(o.c)("label",{htmlFor:"anonymous-checkbox",className:"AskOptions-label",children:[Object(o.b)("input",{id:"anonymous-checkbox",className:"AskOptions-checkbox",type:"checkbox",checked:i,onChange:this.handleChange}),"匿名提问"]}),r&&Object(o.c)(o.a,{children:[Object(o.b)("span",{ref:function(t){return e.showAuthorHintElement=t},className:"AskOptions-showAuthorHint",onMouseEnter:this.showHintText,onMouseLeave:this.hideHintText,children:Object(o.b)(Ph.a,{size:18,center:!0})}),Object(o.b)(Lh.a,{placement:"right",className:"AskOptions-showAuthorHintText",isOpen:c,target:this.showAuthorHintElement,isFixed:!0,children:"默认会将你的头像和用户名展现在你的提问中,如需不展现请启动匿名功能"})]})]})})}}]),n}(a.Component);Uh.propTypes={hasVideo:jl.a.func,onChange:jl.a.func};var Bh=Object(Lt.compose)(Object(Ot.connect)((function(e){return{currentUser:Object(B.b)(e),showAuthorHint:"1"===Object(z.a)(e,"qap_question_author")}})),Mp((function(e){return{value:e.isAnonymous||!1}})))(Uh);function zh(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Fh=function(e){Object(ml.a)(n,e);var t=zh(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){return Object(o.c)("div",{className:"AskBrandTitle",children:[Object(o.b)("h2",{className:"AskBrandTitle-main",children:"品牌提问"}),Object(o.b)("div",{className:"AskBrandTitle-sub",children:"创建前请先与商务确认订单,如未确认联系 ad@zhihu.com"})]})}}]),n}(a.Component),Gh=n(95),Vh=function(e){var t=e.questionType,n=e.brandId,r=e.brand,i=e.isAnonymous,a=e.css,c=Object(_e.a)(e,["questionType","brandId","brand","isAnonymous","css"]),s=Object(Ot.useSelector)((function(e){var o;if(!i)return uh(t)?(null==r?void 0:r.logo)||function(e,t){var n,r;if(t)return null===(n=e.people.brands)||void 0===n||null===(r=n.find((function(e){return e.id===t})))||void 0===r?void 0:r.logo}(e,n):null===(o=Object(B.b)(e))||void 0===o?void 0:o.avatarUrl}));return Object(o.b)(Gh.a,Object.assign({size:40,url:s,css:a},c))};function Hh(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var qh=function(e){Object(ml.a)(n,e);var t=Hh(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,i=new Array(r),c=0;c<r;c++)i[c]=arguments[c];return(e=t.call.apply(t,[this].concat(i))).state={trans:!1,actived:!1,line:1},e.createAskFormRef=function(t){e.form=t},e.askDetail=Object(a.createRef)(),e.handleFocus=function(){e.state.trans&&e.setState({trans:!1})},e.handleChangeLine=function(t){return e.setState({line:t})},e.handleUnload=function(){var t=e.props,n=t.topics,r=t.title,o=t.detail;ih({title:r,topics:n,detail:o&&o.toHTML?o.toHTML():o})},e.transitionKey=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.state,n=e.props,r=n.title,o=n.titleTip,i=n.topics,a=n.detail,c=n.detailTip,s=t.line,u="".concat(Boolean(r),"-").concat(Boolean(a),"-").concat(i&&i.length,"-").concat(Boolean(o),"-").concat(Boolean(c),"-").concat(s);return u},e.handleSuccess=function(){ih({title:null,topics:null,detail:null});var t=e.props,n=t.onSuccess,r=t.id;n?n({id:r}):location.href="//".concat(ke.a.wwwHost,"/question/").concat(r)},e.handleSubmit=function(t){if(q.a.trackEvent(t.target,{id:2467,action:"Question"}),e.checkSubmitable()){var n=e.props,r=n.brandId,o=n.questionType,i=n.askQuestion,a=n.title,c=n.topics,s=n.detail,u=n.isAnonymous,l=s&&s.toHTML?s.toHTML():s,d=l&&l.html?l.html:l;i({type:uh(o)?2:0,brandId:r,title:a,topicUrlTokens:c.map((function(e){return e.urlToken||e.id})),detail:"string"==typeof d?d:"",isAnonymous:u}).then(e.handleSuccess)}},e.setTitle=function(){var t=e.props.setTitle;if(t){var n=e.props.currentUser.isOrg,r=e.props.questionType;n&&(uh(r)?t("创建品牌提问",Object(o.c)("p",{children:["创建前请先与商务确认订单,如未确认联系"," ",Object(o.b)("a",{href:"mailto:ad@zhihu.com",children:"ad@zhihu.com"})]})):t("创建社区提问",Object(o.c)("div",{children:["描述精确的问题更易得到解答",Object(o.b)("a",{href:"/question/19806261",target:"_blank",children:"知乎社区提问规范"})]}))),t("写下你的问题","描述精确的问题更易得到解答")}},e.canExit=function(){var t=e.askDetail&&e.askDetail.current;return e.handleUnload(),t&&t.canExit()},e.checkSubmitable=function(){var t=e.props,n=t.titleTip,r=t.topicsTip;if(n&&n.blockSubmit)return!1;var o=e.askDetail&&e.askDetail.current;return!(o&&o.validateAndNotice())&&(!r||!r.blockSubmit)},e.disabled=function(){var t=e.props,n=t.title,r=t.titleTip,o=t.topicsTip,i=t.topics;return!n||r&&r.blockSubmit||!(i&&i.length)||o&&o.blockSubmit},e.shouldToggleTrans=function(){if(e.form){var t=e.form.scrollHeight<=282;t&&!e.state.trans?e.setState({trans:!0}):!t&&e.state.trans&&e.setState({trans:!1})}},e.hasVideo=function(){var t=e.askDetail&&e.askDetail.current;return t&&t.hasVideo()},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this;this.props.onChangeContext({title:w.a.get(rh.title)||"",detail:oh(),topics:w.a.get(rh.topics)||[]},this.checkSubmitable),this.setTitle(),this.timeout=setTimeout((function(){e.setState({actived:!0}),e.shouldToggleTrans()}),300),this.props.imperativeRef&&(this.props.imperativeRef.current={canExit:this.canExit.bind(this)})}},{key:"componentDidUpdate",value:function(e,t){this.transitionKey(t)!==this.transitionKey()&&this.state.actived&&this.shouldToggleTrans()}},{key:"componentWillUnmount",value:function(){this.timeout&&clearTimeout(this.timeout),this.props.imperativeRef&&(this.props.imperativeRef.current=null)}},{key:"render",value:function(){var e=this.state,t=e.trans,n=e.line,r=this.props,i=r.questionType,a=r.brandId,c=r.title,s=r.detail,u=r.topics,l=r.isAnonymous,d=uh(i),f=Object(o.c)("div",{className:"Ask-items",children:[Object(o.c)("div",{className:rl()("Ask-item","Ask-titleWrapper"),children:[Object(o.b)(Vh,{isAnonymous:l,questionType:i,brandId:a,css:{float:"left",marginTop:"3px",marginRight:"16px"}}),Object(o.b)("div",{className:"Ask-title",children:Object(o.b)(jh,{line:n,onChangeLine:this.handleChangeLine})})]}),(c||s||Boolean(u&&u.length))&&Object(o.b)("div",{className:"Ask-item",children:Object(o.b)(Dh,{ref:this.askDetail,canUpload:!l,onFocus:this.handleFocus,onBlur:this.shouldToggleTrans})}),(c||s||Boolean(u&&u.length))&&Object(o.b)("div",{className:"Ask-item",children:Object(o.b)(fh,{})}),Object(o.b)(Ip,{onUnload:this.handleUnload})]});return Object(o.c)("form",{ref:this.createAskFormRef,className:"Ask-form",onSubmit:function(e){return e.preventDefault()},noValidate:!0,children:[d&&Object(o.c)("div",{className:"Ask-header",children:[Object(o.b)(Fh,{}),Object(o.b)(Vp,{})]}),t?Object(o.b)(kp,{transitionKey:this.transitionKey(),children:f}):Object(o.b)("div",{children:f}),Object(o.c)("div",{className:"Ask-footer",children:[!d&&Object(o.b)(Bh,{hasVideo:this.hasVideo}),Object(o.b)("div",{className:"Ask-footer-buttonWrapper",children:Object(o.b)(yf.c,{preset:"primary",color:"blue",disabled:this.disabled(),onClick:this.handleSubmit,children:"发布问题"})})]})]})}}]),n}(a.Component),Kh=Object(Lt.compose)(Lp(),Object(Ot.connect)((function(e){return Object.assign({},e.common.ask)}),{askQuestion:function(e){return{API:{types:Oi.ADD,method:"POST",endpoint:"questions",fetchOptions:{zsEncrypt:!0,bodyType:"json",body:Object($.decamelizeKeys)(e)}}}}}))(qh),Wh=n(47),Yh=n(1084);function Qh(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Zh=function(e){Object(ml.a)(n,e);var t=Qh(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).handleRefresh=function(){Promise.resolve(e.props.fillCurrentUserIfNeeded(["adType"])).then(e.handleCommercialSelect)},e.handleNormalSelect=function(){return e.props.onSelect("normal")},e.handleCommercialSelect=function(){var t=e.props,n=t.adType,r=t.onSelect;if("normal"===n)return Ch.a.alert(Object(o.c)("p",{children:["请发邮件至 ",Object(o.b)("a",{href:"mailto:ad@zhihu.com",children:"ad@zhihu.com"})," ","申请,标题为「申请品牌提问 - 帐号名称」。我们会在 1 个工作日内联系你。"]}),{title:"暂无权限"});if("invited"===n){var i=e.props.currentUser.urlToken;return Object(kh.a)("你尚未激活广告帐号",{content:Object(o.b)("div",{children:"激活广告帐号后即可创建品牌提问"}),text:{ok:"激活广告帐号",cancel:"已激活,继续创建"}}).then((function(){return window.open("https://e.zhihu.com/activate-advertiser?rf=createBrandQuestion&urlToken=".concat(i),"_blank")}),e.handleRefresh)}r("commercial")},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this.props.setTitle;e&&e("选择提问类型",Object(o.b)("a",{className:"QuestionCategory-link",href:"/organization/ophelp/faq/19",target:"_blank",children:"如何选择?"}))}},{key:"render",value:function(){return Object(o.c)("div",{className:"QuestionCategorySelect",children:[Object(o.b)(n.Item,{onClick:this.handleNormalSelect,title:"社区提问",desc:"公共提问,社区用户共同参与问题编辑和管理,适合发起公共讨论。"}),Object(o.b)(n.Item,{onClick:this.handleCommercialSelect,title:"品牌提问",desc:Object(o.c)("span",{children:["私有提问,由您自主管理问题展示和回答展示,适合承载官方活动。这是一款付费产品。",Object(o.b)("a",{href:"https://www.zhihu.com/introduction/brand_question",children:"了解更多"})]})})]})}}]),n}(a.Component);Zh.Item=function(e){var t=e.onClick,n=e.title,r=e.desc;return Object(o.c)("div",{className:"AskOrgSelect-item",onClick:t,children:[Object(o.c)("div",{className:"AskOrgSelect-ItemContent",children:[Object(o.b)("div",{className:"AskOrgSelect-itemTitle",children:n}),Object(o.b)("div",{className:"AskOrgSelect-itemDesc",children:r})]}),Object(o.b)(Yh.a,{size:"2em"})]})};var Jh=Object(Lt.compose)(Object(Ot.connect)((function(e){return{currentUser:Object(B.b)(e)}}),{fillCurrentUserIfNeeded:B.d}))(Zh);function Xh(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var $h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.userType,n=e.adType;return"organization"===t||"registered"===n},eb=function(e){return Boolean(e&&e.query&&"createBrandQuestion"===e.query.rf)},tb=function(e){Object(ml.a)(n,e);var t=Xh(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={selectShown:e.props.createBrandQuestion,askShown:!1,questionType:"normal"},e.askRef=Object(a.createRef)(),e.toggleSelectShown=function(){return e.setState({selectShown:!e.state.selectShown})},e.toggleAskShown=function(){return e.setState({askShown:!e.state.askShown})},e.setTitle=function(t,n){return e.setState({title:t,subtitle:n})},e.handleClose=function(){if(q.a.trackEvent(Object(kl.a)(e),{id:2463,action:"Close"}),e.askRef.current)return Promise.resolve(e.askRef.current.canExit()).then((function(){return e.toggleAskShown()})).catch((function(){return null}));e.toggleAskShown()},e.handleClick=e.context.authRequired((function(t){return e.context.realNameRequired((function(){var n,r;(null===(n=e.props.children)||void 0===n?void 0:n.props.onClick)&&(null===(r=e.props.children)||void 0===r||r.props.onClick(t));e.props.canCurrentAskBrandQuestion?e.toggleSelectShown():e.toggleAskShown()}))()})),e.handleSelect=function(t){e.setState({questionType:t}),"commercial"===t?e.props.loadBrands().then(e.toggleAskShown):e.toggleAskShown()},e.handleSuccess=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.id;e.toggleAskShown(),e.props.router.push("//".concat(ke.a.wwwHost,"/question/").concat(n))},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){(0,this.props.fillCurrentUserIfNeeded)(["adType"]),this.props.imperativeRef&&(this.props.imperativeRef.current={click:this.handleClick})}},{key:"render",value:function(){var e=this.state,t=e.selectShown,n=e.askShown,r=e.questionType,i=e.title,c=e.subtitle,s=this.props,u=s.children,l=s.currentUser;return Object(o.c)(a.Fragment,{children:[u&&Object(a.cloneElement)(u,{onClick:this.handleClick}),Object(o.b)(Wh.b,{size:"large",maskClosable:!1,onClose:this.handleClose,children:n&&Object(o.b)(Kh,{imperativeRef:this.askRef,questionType:r,onSuccess:this.handleSuccess})}),Object(o.b)(Wh.b,{title:i,subtitle:c,onClose:this.toggleSelectShown,children:t&&Object(o.b)(Jh,{adType:l&&l.adType,onSelect:this.handleSelect,setTitle:this.setTitle})})]})}}]),n}(a.Component);tb.contextTypes={authRequired:jl.a.func,realNameRequired:jl.a.func};var nb=Object(Lt.compose)(st.withRouter,Object(Ot.connect)((function(e,t){return{createBrandQuestion:eb(t.location),canCurrentAskBrandQuestion:$h(Object(B.b)(e)),currentUser:Object(B.b)(e)}}),{loadBrands:On.d,fillCurrentUserIfNeeded:B.d}))(tb),rb=n(75);function ob(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var ib={topSearch:"知乎热搜",history:"搜索历史"},ab=function(e){Object(ml.a)(n,e);var t=ob(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,c=new Array(r),s=0;s<r;s++)c[s]=arguments[s];return(e=t.call.apply(t,[this].concat(c))).state={rawSearchResult:"",searchResults:{},presetWordsData:{query:""},completeTopSearchData:[],reportModalShown:!1},e.domRef=Object(a.createRef)(),e.componentWillUnmount=function(){document.removeEventListener("visibilitychange",e.visibleCallback)},e.visibleCallback=function(){!1===document.hidden&&e.handleUpdatePresetWords()},e.handleReportHide=function(){e.setState({reportModalShown:!1})},e.handleReportShow=function(){e.setState({reportModalShown:!0})},e.handleUpdatePresetWords=function(){var t=e.props.getPresetWords;_p(t).then((function(t){if(!t)return e.setState({presetWordsData:{query:"搜索你感兴趣的内容…"}});q.a.trackCardShow(Object(kl.a)(e),{id:2403},{search:{raw_query:t.query}}),e.setState({presetWordsData:t})}))},e.getCurrentHistoryKey=function(){var t=(e.context.currentUser||{}).id;return Wf(t)},e.getHistoryData=function(t){return Yf(e.getCurrentHistoryKey(),t)},e.handleChange=Rt()((function(t){return void 0===t?null:t?e.handleInputHasValue(t):e.handleInputIsEmpty({rawSearchResult:t})}),300),e.handleInputHasValue=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=np(e.props.getSuggestActionCreator),o=e.getHistoryData(t);r(t).then((function(r){e.updateAutoComplete({suggestData:ni()([].concat(Object(i.a)(Zf(o,{type:"history",rawSearchResult:t})),Object(i.a)(Zf(r,{type:"suggest",rawSearchResult:t}))),(function(e,t){var n=e.data,r=t.data;return n.toLowerCase()===r.toLowerCase()}))},Object.assign({rawSearchResult:t},n))}))},e.handleInputIsEmpty=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.props.loadTopSearchActionCreator,r=e.getHistoryData(),o=Hf(),i=qf(n),a=function(n){e.setState({completeTopSearchData:n}),e.updateAutoComplete({topSearchData:n.map((function(e){return e.displayQuery})),historyData:r},t)};return o?a(o):i().then(a)},e.handleDeleteData=function(t,n){t.stopPropagation();var r=e.state,o=r.rawSearchResult,i=r.searchResults.suggest,a=void 0===i?[]:i,c=Qf(e.getCurrentHistoryKey(),n);if(o){var s=a.filter((function(e){var t=e.type,r=e.data;return!("history"===t&&r===n)}));e.updateAutoComplete({suggestData:s})}else e.updateAutoComplete({historyData:c})},e.updateAutoComplete=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.state,o=r.searchResults,i=r.rawSearchResult,a=n||{},c=a.rawSearchResult,s=void 0===c?i:c,u=t.topSearchData,l=t.historyData,d=t.suggestData,f=void 0===d?[]:d;if(!s){var p=o.topSearch,h=void 0===p?[]:p,b=o.history,v=void 0===b?[]:b;return e.setState(Object.assign({searchResults:Object.assign({},u?{topSearch:Zf(u,{type:"topSearch",rawSearchResult:s})}:{topSearch:h},l?{history:Zf(l,{type:"history",rawSearchResult:s})}:{history:v})},n))}var m=Zf([s],{type:"searchLink",rawSearchResult:s});return e.setState(Object.assign({searchResults:Object.assign({suggest:f,searchLink:m},f.length>0&&{reports:[{type:"reports"}]})},n))},e.handleSelect=function(t,n){var r=n.data,o=n.type,i=e.state.completeTopSearchData;ep(n),e.autoComplete.inputNode.blur();var a=r;"topSearch"===o&&(a=(i.find((function(e){return e.displayQuery===r}))||{}).query||r);var c=Object.assign({q:a},"topSearch"===o&&{utm_content:"search_hot"},"history"===o&&{utm_content:"search_history"},"suggest"===o&&{utm_content:"search_suggestion"});window.open("//www.zhihu.com/search?".concat(Object(se.stringify)(c)))},e.handleFocus=function(){var t=e.state.rawSearchResult,n={isFocus:!0};return t?e.handleInputHasValue(t,n):e.handleInputIsEmpty(n)},e.focusInput=function(t){t.preventDefault(),e.autoCompleteInput.closest(".AppHeader.is-hidden")?setTimeout((function(){return e.autoCompleteInput.focus()}),300):e.autoCompleteInput.focus()},e.handleSubmit=function(){var t=e.props.location.query.type,n=void 0===t?"content":t;if(e.autoComplete&&e.autoComplete.inputNode){var r=e.autoComplete.inputNode.value,o=n,i=r;if(!r){var a=e.state.presetWordsData||{},c=a.realQuery,s=a.type,u=a.id;if(!c||!s)return;o="general"===s?"content":s,i=c,jp(u)}var l=Object.assign({type:o,q:i},!r&&{utm_content:"search_preset"});location.href="//".concat(ke.a.wwwHost,"/search?").concat(Object(se.stringify)(l))}},e.renderItem=function(t){var n=t.type,r=t.data,i=t.index,a=t.rawSearchResult,c=null;switch(n){case"topSearch":c=Object(o.b)(ap,{index:i,query:r});break;case"history":var s=t.data;c=Object(o.b)(sp,{data:s,index:i,onDelete:e.handleDeleteData,rawSearchResult:a});break;case"searchLink":c=Object(o.b)(mp,{index:i,data:r,rawSearchResult:a});break;case"suggest":c=Object(o.b)(bp,{data:r,index:i,rawSearchResult:a});break;case"reports":c=Object(o.b)(gp,{handleReportShow:e.handleReportShow})}return c&&Object(o.b)("div",{"data-za-module":"TopNavBar",children:Object(o.b)("div",{"data-za-module":tp(n,a),children:c})})},e.renderAutoCompleteLabel=function(t){return"搜索历史"===t?Object(o.b)(pp,{onDelete:e.handleDeleteData,label:t}):Object(o.b)("div",{onMouseDown:function(e){return e.preventDefault()},className:"SearchBar-label",children:t})},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this.autoComplete.inputNode.value;e?this.setState({rawSearchResult:e}):this.handleUpdatePresetWords(),document.addEventListener("visibilitychange",this.visibleCallback)}},{key:"render",value:function(){var e,t=this,n=this.context.currentUser,r=this.state,i=r.searchResults,a=r.rawSearchResult,c=r.isFocus,s=r.presetWordsData,u=r.reportModalShown,l=this.props.location.query.q,d=this.props.className;return Object(o.c)("div",{className:rl()("SearchBar",d),role:"search","data-za-module":"PresetWordItem",ref:this.domRef,children:[Object(o.b)(ff.a,{shortcuts:[{key:"/",action:this.focusInput}]}),Object(o.b)("form",{className:rl()("SearchBar-tool",{"SearchBar-tool--focus":c}),onSubmit:function(e){return e.preventDefault()},children:Object(o.b)(Vf,{autoSelect:!1,ref:function(e){return t.autoComplete=e},onRef:function(e){return t.autoCompleteInput=e},labels:ib,groups:i,renderLabel:this.renderAutoCompleteLabel,value:l||"",renderItem:this.renderItem,inputProps:{type:"text",maxLength:100,grey:!0,placeholder:s&&s.query,className:rl()("SearchBar-input",{"SearchBar-input--focus":c}),after:Object(o.b)(yf.c,{className:"SearchBar-searchButton",preset:"primary",color:a?"blue":null,onClick:this.handleSubmit,"aria-label":"搜索",children:Object(o.b)(Rl.a,{size:18,center:!0,className:rl()("SearchBar-searchIcon",{isFocus:c,hasValue:a})})})},menuProps:{menuClassName:rl()("SearchBar-menu",{"SearchBar-hasValueMenu":a,"SearchBar-noValueMenu":!a}),menuContainerClassName:"SearchBar-menuContainer","data-za-module":"TopNavBar",positionStatus:"fixed",style:{width:null===(e=this.domRef.current)||void 0===e?void 0:e.getBoundingClientRect().width}},onFocus:this.handleFocus,onBlur:function(){setTimeout((function(){t.setState({isFocus:!1})}),100),t.autoComplete.menu.popover.close()},onSelect:this.handleSelect,onEnterInput:this.handleSubmit,onChange:this.handleChange})}),n&&!n.isOrg&&Object(o.b)(nb,{children:Object(o.b)(yf.c,{className:rl()("SearchBar-askButton",{"SearchBar-hiddenAskButton":c}),preset:"primary",color:"blue",onClick:function(){return q.a.trackEvent(t,{id:2581,action:"OpenUrl"})},children:"提问"})}),Object(o.b)(Bf.a,{type:"search_suggested_word",shown:u,onClose:this.handleReportHide,zaEnabled:!0,List:i.suggest})]})}}]),n}(a.Component);ab.contextTypes={currentUser:jl.a.object,authRequired:jl.a.func};var cb=Object(Lt.compose)(Object(rb.a)(null),st.withRouter,Object(Ot.connect)(null,{getPresetWords:function(){return{API:{endpoint:"search/preset_words",types:si.GET_PRESET_WORDS,headers:{"X-API-Version":"3.0.91","X-App-Za":"OS=Web"}},NOTIFICATION:!1}},loadTopSearchActionCreator:function(){return{API:{endpoint:"search/top_search",types:si.GET_TOP_SEARCH},NOTIFICATION:!1}},getSuggestActionCreator:function(e){return{API:{types:si.GET_SUGGEST,endpoint:"/search/suggest",query:{q:e},headers:{"X-API-Version":"3.0.91","X-App-Za":"OS=Web"}},NOTIFICATION:!1}}}))(ab);function sb(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}function ub(e){return Object(o.b)(yf.c,Object.assign({preset:"primary",className:"SimpleSearchBar-plainSearchButton"},e,{children:Object(o.b)(Rl.a,{center:!0,size:18})}))}function lb(e){return Object(o.b)(yf.c,Object.assign({preset:"primary",className:"SimpleSearchBar-solidSearchButton",color:"blue",type:"submit"},e,{children:Object(o.b)(Rl.a,{center:!0,fill:"#fff",size:18})}))}var db=function(e){Object(ml.a)(n,e);var t=sb(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={inputValue:e.props.initialValue},e.handleChange=function(t){e.setState({inputValue:t.target.value})},e.handleSubmit=function(t){t.preventDefault();var n=e.state.inputValue,r=e.props.type;n&&(location.href="/search?type=".concat(encodeURIComponent(r),"&q=").concat(encodeURIComponent(n)))},e}return Object(vl.a)(n,[{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.searchButtonType,i=this.state.inputValue;return"plain"===r?e=ub:"solid"===r&&(e=lb),Object(o.b)("form",{className:"SimpleSearchBar-wrapper",onSubmit:this.handleSubmit,children:Object(o.b)(Hl.a,{className:rl()("SimpleSearchBar-input",n),onChange:this.handleChange,value:i,placeholder:"搜索你感兴趣的内容…",after:e&&Object(o.b)(e,{onClick:this.handleSumit})})})}}]),n}(a.PureComponent);db.propTypes={className:jl.a.string,initialValue:jl.a.string.isRequired,type:jl.a.oneOf(["content","people","topic","column","km_general","live","album","publication","clubentity","club","zvideo"]).isRequired,searchButtonType:jl.a.oneOf(["solid","plain"])},db.defaultProps={initialValue:"",type:"content",searchButtonType:"plain"};var fb=function(e){var t=e.onClick,n=Object(_e.a)(e,["onClick"]);return Object(o.b)("a",Object.assign({href:"//".concat(ke.a.wwwHost),"aria-label":"知乎",onClick:function(e){t&&t(e),q.a.trackEvent(e.target,{action:"OpenUrl",id:2730},{button:{text:"知乎"}})}},n,{children:Object(o.b)(pd,{})}))},pb=n(1054),hb=n(1086),bb=n(43),vb=n(110);function mb(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var gb=function(e){Object(ml.a)(r,e);var t,n=mb(r);function r(){var e;Object(bl.a)(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return(e=n.call.apply(n,[this].concat(o))).state={isMenuOpen:!1},e.handleMenuOpen=function(){q.a.trackEvent(Object(kl.a)(e),{id:2764,action:"Click"}),e.setState({isMenuOpen:!0}),e.closeCreatorHint()},e.handleMenuClose=function(){e.setState({isMenuOpen:!1}),e.openCreatorHint()},e.handleCreatorHintRef=function(t){e.creatorHintPopover=t,e.openCreatorHint()},e.openCreatorHint=function(){e.props.creatorNotification.invitationBubble>0&&e.creatorHintPopover&&!e.props.routes.find((function(e){return"Creator"===e.name}))&&(e.creatorHintPopover.open(),e.trackCreatorHintCardshow())},e.closeCreatorHint=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.closeForever,r=void 0!==n&&n;e.creatorHintPopover.close(),r&&e.props.readNotification("invitation_bubble")},e.trackCreatorHintCardshow=I()((function(){q.a.trackCardShow(null,{id:4229})})),e.handleCreatorHintCloseIconClick=function(){q.a.trackEvent(null,{id:4232,action:"Click"}),e.closeCreatorHint({closeForever:!0})},e}return Object(vl.a)(r,[{key:"componentDidMount",value:function(){this.loadData()}},{key:"loadData",value:(t=Object(k.a)(A.a.mark((function e(){return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.props.loadSwitches(["isCreator"]);case 2:if(!e.sent.isCreator){e.next=7;break}return e.next=7,this.props.loadCreatorApplyStatus();case 7:this.props.creatorNotification.invitationBubble>0&&this.openCreatorHint();case 8:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"render",value:function(){if(!this.props.isLogin)return null;var e=this.props,t=e.className,n=e.preset,r=e.currentUser,i=e.currentUserIsCreator,a=e.creatorNotification,c=this.state.isMenuOpen,s=30;"new"===n&&(s=36);var u="//".concat(ke.a.wwwHost,"/").concat("organization"===r.userType?"org":"people","/").concat(r.urlToken||r.id),l=Object(o.c)(yf.c,{className:"AppHeader-profileEntry",preset:"plain",children:[Object(o.b)(Gh.a,{className:rl()("AppHeader-profileAvatar","AppHeader-profileAvatar--".concat(n)),size:s,url:r.avatarUrl}),!c&&i&&a.accessed>0&&Object(o.b)("div",{className:"AppHeader-profileAvatarRedDot"})]});return Object(o.c)(cf.a,{placeholder:l,children:[Object(o.c)(bb.c,{className:t,menuClassName:rl()("AppHeaderProfileMenu","AppHeaderProfileMenu--".concat(n)),menuContainerClassName:rl()("AppHeaderProfileMenu-container","AppHeaderProfileMenu-container--".concat(n)),positionStatus:"fixed",toggler:l,boundary:{padding:16},onOpen:this.handleMenuOpen,onClose:this.handleMenuClose,arrowed:"new"!==n,children:[Object(o.c)(bb.b,{tag:vb.a,href:u,className:rl()("AppHeaderProfileMenu-item","AppHeaderProfileMenu-item--".concat(n)),children:[Object(o.b)(Ul,{size:16}),"我的主页"]}),i&&Object(o.c)(bb.b,{a:!0,tag:vb.a,to:"//".concat(ke.a.wwwHost,"/creator"),target:"_blank",className:rl()("AppHeaderProfileMenu-item","AppHeaderProfileMenu-item--".concat(n)),"data-za-detail-view-id":2741,children:[Object(o.b)(pb.a,{size:16}),"创作中心",a.accessed>0&&Object(o.b)("div",{className:"AppHeaderProfileMenu-redDot"})]}),Object(o.c)(bb.b,{a:!0,tag:vb.a,to:"//".concat(ke.a.wwwHost,"/settings/profile"),className:rl()("AppHeaderProfileMenu-item","AppHeaderProfileMenu-item--".concat(n)),children:[Object(o.b)(hb.a,{size:16}),"设置"]}),Object(o.c)(bb.b,{tag:vb.a,a:!0,to:"//".concat(ke.a.wwwHost,"/logout"),className:rl()("AppHeaderProfileMenu-item","AppHeaderProfileMenu-item--".concat(n)),children:[Object(o.b)(zl,{size:16}),"退出"]})]}),Object(o.c)(Of.a,{className:"AppHeaderProfileMenu-creatorHintPopover",toggler:Object(o.b)("div",{className:rl()("AppHeaderProfileMenu-creatorHintToggler",void 0)}),toggleEvent:null,targetClassName:"AppHeaderProfileMenu-creatorHint",placement:"bottom",positionStatus:"fixed",globalClose:!1,boundary:{padding:16},ref:this.handleCreatorHintRef,arrowed:!0,children:[Object(o.b)(pb.a,{className:"AppHeaderProfileMenu-creatorHintCreatorIcon",size:20}),Object(o.b)("div",{className:"AppHeaderProfileMenu-creatorHintText",children:"你已被邀请入驻创作中心,"}),Object(o.b)("a",{className:"AppHeaderProfileMenu-creatorHintLink",href:"//".concat(ke.a.wwwHost,"/creator"),"data-za-detail-view-id":4231,children:"立即入驻"}),Object(o.b)("div",{className:"AppHeaderProfileMenu-creatorHintCloseContainer",onClick:this.handleCreatorHintCloseIconClick,children:Object(o.b)(Il.a,{size:20})})]})]})}}]),r}(a.PureComponent);gb.propTypes={currentUser:jl.a.object,currentUserIsCreator:jl.a.bool};var Ob=Object(Lt.compose)(Object(wf.b)(),st.withRouter,Object(Ot.connect)((function(e){return{currentUserIsCreator:e.switches.isCreator,creatorNotification:e.creator.applyStatus.notification||{},preset:"2"===Object(al.a)(e,"web_pcleft")?"new":"old"}}),{readNotification:gi.g,loadSwitches:Wo,loadCreatorApplyStatus:gi.d}))(gb);function yb(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var jb={};var Eb=function(e){Object(ml.a)(n,e);var t=yb(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={signFlowModalShown:!1},e.getPathname=function(){return e.props.pathname||e.props.location.pathname},e.isInTopstory=function(){var t=e.getPathname();return["/","/index","/follow","/hot"].includes(t)||t.startsWith("/room")},e.getMsgNoteTitle=function(){var t=e.props,n=t.notificationsCount,r=t.messageCount;if(t.isMobile)return"";var o=[],i="".concat(99,"+");r&&o.push("".concat(r>99?i:r," 封私信"));var a=Object.keys(n).reduce((function(e,t){return e+n[t]}),0);return a&&o.push("".concat(a>99?i:a," 条消息")),o.length?"(".concat(o.join(" / "),") "):""},e.handleAuth=e.context.authRequired((function(){return{}})),e.createNavClickHandler=function(e){return function(t){q.a.trackEvent(t.target,{action:"OpenUrl",id:2730},{button:{text:{home:"首页",explore:"发现",topic:"话题",quesetionWaiting:"等你来答"}[e]}})}},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this.getPathname(),t=this.props,n=t.currentUser,r=t.fillCurrentUserIfNeeded,o=t.referer;if(n&&"guest"!==n.userType){r(["availableMessageTypes","defaultNotificationsCount","followNotificationsCount","voteThankNotificationsCount","messagesCount"]);var i=this.props,a=i.handleNewPushNotifications,c=i.handleReceiveMessages;Object(Cf.a)([{name:"zhihu/notification/badge/web/v1/".concat(n.id,"/"),onMessage:a},{name:"zhihu/message/web/v1/user/".concat(n.id,"/"),onMessage:c}])}else o&&(o.startsWith("https://www.zhihu.com")||o.startsWith("https://zhuanlan.zhihu.com"))&&e.startsWith("/p/")&&this.setState({signFlowModalShown:!0})}},{key:"renderNotification",value:function(){var e=this.props,t=e.notification,n=e.account,r=n.isAppealed,i=n.spamLevel,a=r||i?le.A:le.z,c=null;return c=6===i?Object.assign({},t,{theme:"red"}):t,Object(o.b)(mf.a,{notification:c,delay:a,className:"AppHeader-notification",css:t.css})}},{key:"handleSignFlowModalClose",value:function(){this.setState({signFlowModalShown:!1})}},{key:"renderUserInfo",value:function(){var e=this.props,t=e.currentUser,n=e.isTopnavbarQrcodeShown,r=e.ua;return Object(o.c)("div",{className:"AppHeader-userInfo",children:[t&&Object(o.c)(o.a,{children:[Object(o.b)(Pf,{className:"AppHeader-notifications"}),Object(o.b)(Uf,{className:"AppHeader-messages"})]}),Object(o.b)(jt.a,{titleTemplate:r.Zhihu?"".concat(this.getMsgNoteTitle(),"%s"):"".concat(this.getMsgNoteTitle(),"%s - 知乎")}),Object(o.b)("div",{className:"AppHeader-profile",children:t&&"guest"!==t.userType?Object(o.b)(Ob,{className:"AppHeader-menu"}):Object(o.b)(jd.b,{loginButton:Object(o.b)(yf.c,{className:"AppHeader-login",color:"blue",children:"登录"}),registerButton:n?Object(o.b)(yf.c,{className:"AppHeader-login",color:"blue",children:"注册"}):Object(o.b)(yf.c,{preset:"primary",color:"blue",children:"加入知乎"}),children:n&&Object(o.b)(Of.a,{toggler:Object(o.b)(yf.c,{preset:"primary",color:"blue",children:"下载知乎 App"}),toggleEvent:"hover",targetClassName:"AppHeader-downloadPopover",arrowed:!0,children:Object(o.b)("img",{className:"AppHeader-downloadPopoverImage",src:Rf.a,alt:"QR Code of Downloading Zhihu App"})})})})]})}},{key:"render",value:function(){var e=this,t=this.getPathname(),n=this.state.signFlowModalShown,r=this.props,i=r.currentUser,c=r.outlet,s=r.inletProps,u=r.headerTitle,l=!t.startsWith("/creator")&&!t.startsWith("/mcn");return t.startsWith("/organization/enter")?Object(o.c)(a.Fragment,{children:[Object(o.b)(Af,{}),Object(o.b)(cf.a,{children:this.renderNotification()})]}):Object(o.b)(ql.a,{getStyle:function(){return{width:"100%",top:0}},children:Object(o.c)("header",{role:"banner",className:rl()("AppHeader",{"is-hidden":s.shown}),"data-za-module":"TopNavBar",children:[n&&(!i||"guest"===i.userType)&&Object(o.b)(jd.b,{defaultType:"login",onClose:function(){e.handleSignFlowModalClose()}}),Object(o.b)(cf.a,{children:this.renderNotification()}),Object(o.c)("div",{className:"AppHeader-inner",css:function(e){return l&&{width:"auto",maxWidth:1156,minWidth:1e3,paddingLeft:16,paddingRight:30,".AppHeader-userInfo":{marginLeft:30,width:"auto"},".AppHeader-TabsLink.is-active, .AppHeader-TabsLink:hover":{color:e.colors.GBK02A}}},children:[Object(o.b)(fb,{}),u?Object(o.b)(Ef.Text,{color:"GBL01A",fontSize:"18px",ml:"16px",flex:"1",children:u}):Object(o.c)(o.a,{children:[Object(o.c)(jf.b,{role:"navigation",className:"AppHeader-Tabs",css:l&&{marginLeft:25,marginRight:15,".AppHeader-Tab":{paddingLeft:15,paddingRight:15},".Tabs-link.is-active::after":{height:4}},children:[i&&i.isOrg&&Object(o.c)(a.Fragment,{children:[Object(o.b)(jf.a,{className:"AppHeader-Tab",children:Object(o.b)("a",{className:rl()("AppHeader-TabsLink",{"is-active":"/organization"===t||t.startsWith("/organization/question")}),href:"".concat(le.v,"/organization"),children:"管理中心"})}),Object(o.b)("div",{className:"AppHeader-navDivider"})]}),Object(o.b)(jf.a,{className:"AppHeader-Tab",children:Object(o.b)("a",{className:rl()("AppHeader-TabsLink",{"is-active":this.isInTopstory()}),href:"".concat(le.v).concat(i&&i.isOrg?"/index":"/"),onClick:this.createNavClickHandler("home"),"data-za-not-track-link":!0,children:"首页"})}),Object(o.b)(jf.a,{className:"AppHeader-Tab",children:Object(o.b)("a",{className:rl()("AppHeader-TabsLink",{"is-active":"/xen/vip-web"===t}),href:"".concat(le.v,"/xen/vip-web"),onClick:this.createNavClickHandler("vip"),"data-za-not-track-link":!0,children:"会员"})}),Object(o.b)(jf.a,{className:"AppHeader-Tab",children:Object(o.b)("a",{className:rl()("AppHeader-TabsLink",{"is-active":"/explore"===t}),href:"".concat(le.v,"/explore"),onClick:this.createNavClickHandler("explore"),"data-za-not-track-link":!0,children:"发现"})}),Object(o.b)(jf.a,{className:"AppHeader-Tab",children:Object(o.b)("a",{className:rl()("AppHeader-TabsLink",{"is-active":t.startsWith("/question/waiting")}),href:"".concat(le.v,"/question/waiting"),onClick:this.createNavClickHandler("quesetionWaiting"),"data-za-not-track-link":!0,children:"等你来答"})})]}),Object(o.b)(Ef.Flex,{flex:"1",justifyContent:"center",children:Object(o.b)(cb,{className:"AppHeader-SearchBar",currentUser:i,css:l&&{maxWidth:482,".SearchBar-input":{borderRadius:999,paddingLeft:16},".SearchBar-askButton":{borderRadius:999,width:70,marginLeft:12},".SearchBar-searchButton":{borderBottomRightRadius:999,borderTopRightRadius:999}}})})]}),this.renderUserInfo()]}),c]})})}}]),n}(a.PureComponent);Eb.contextTypes={authRequired:jl.a.func.isRequired};var Cb=Object(Lt.compose)(st.withRouter,Object(wf.b)(),Object(Ot.connect)((function(e){var t=e.account;return{messageCount:e.messages.messageCount,notificationsCount:e.pushNotifications.notificationsCount,account:t,notification:Object(Xr.f)(e)||jb,ua:e.env.userAgent,isMobile:Object(z.d)(e),referer:Object(z.h)(e)}}),{handleNewPushNotifications:Qr.b,handleReceiveMessages:Jr.b,fillCurrentUserIfNeeded:B.d}))(Eb),wb=function(e){return Object(o.b)(Cb,Object.assign({outlet:Object(o.b)(fd.Outlet,{}),inletProps:fd.useInletProps()},e))},Tb=a.memo(wb);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}function Sb(){return"undefined"==typeof document?null:document.querySelector(".VerificationDialogModalHeader")}var Ab=function(e){Object(ml.a)(n,e);var t=_b(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={authType:Object(W.isBrowser)()&&!e.props.currentUser&&Object(jd.f)()?"login":"register",authModalShown:!1,bindPhoneModalShown:!1,realNameModalShown:!1,signInModalShown:!1},e.closeModal=function(){var t=e.props.recoverDefaultType;Sl.a.close(),t()},e.handleInitAccount=function(t){var n=t||e.props,r=n.currentUser,o=n.account,i=n.getUnblockInfo;r&&r.accountStatus&&r.accountStatus.find((function(e){return"lock"===e.name}))&&!o.isUnblockInfoFetched&&i()},e.handleBindPhoneModalToggle=function(){e.setState((function(e){return{bindPhoneModalShown:!e.bindPhoneModalShown}}))},e.handleRealNameModalToggle=function(){e.setState((function(e){return{realNameModalShown:!e.realNameModalShown}}))},e.realNameRequired=function(t){return function(){var n=e.props.currentUser,r=n||{},o=r.isRealname;o?t.apply(void 0,arguments):e.handleRealNameModalToggle()}},e.handleAuthModalShow=function(){e.setState({authModalShown:!0})},e.handleAuthModalHide=function(){setTimeout((function(){e.setState({authModalShown:!1})}),300)},e.handleToggleSignInModalShown=function(){e.setState({signInModalShown:!e.state.signInModalShown})},e.handleLogin=function(){e.props.userAgent.Wechat?e.handleToggleSignInModalShown():location.href="https://www.zhihu.com/signin?next=".concat(encodeURIComponent(location.href))},e}return Object(vl.a)(n,[{key:"getChildContext",value:function(){var e=this,t=this.props,n=t.isMobile,r=t.showNotification;return{currentUser:this.props.currentUser,isMobile:n,authRequired:Object(Od.b)((function(){return e.props.currentUser}),le.D,(function(){return e.props.account}),n?function(){return Object(yd.a)()}:this.handleAuthModalShow,(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return r.apply(void 0,[e,"white"].concat(n))}),this.handleBindPhoneModalToggle),handleBindPhoneModalToggle:this.handleBindPhoneModalToggle,realNameRequired:this.realNameRequired}}},{key:"componentWillReceiveProps",value:function(e){var t=e.account,n=e.currentUser,r=e.getUnlockRequest,o=t.errorStatus;if(!t.isFetching){var i=Sb();o&&!i&&n&&"guest"!==n.userType&&r()}}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.requestUnlockTicket,r=t.unlockTicketByDigits,i=t.unlockTicketByPassword,a=t.account,c=a.unlockTicketStatus,s=a.isFetching,u=a.errorStatus,l=a.challenge;!s&&u&&l&&l.length&&(Sb()||Sl.a.show(Object(o.b)(Sl.a,{account:a,unlockTicketByDigits:r,requestUnlockTicket:n,unlockTicketByPassword:i,onClose:this.closeModal})));c&&Sl.a.close(),e.currentUser&&this.props.currentUser&&(!e.currentUser.accountStatus&&this.props.currentUser.accountStatus&&this.handleInitAccount(),void 0===e.currentUser.isBindPhone&&void 0!==this.props.currentUser.isBindPhone&&this.unlockRequestIfNeed())}},{key:"componentWillUnmount",value:function(){(0,this.props.recoverDefaultType)()}},{key:"unlockRequestIfNeed",value:function(){var e=this.props,t=e.currentUser,n=e.getUnlockRequest;t&&!1===t.isBindPhone&&"guest"!==t.userType&&n()}},{key:"renderAuthentication",value:function(){var e=this.props.userAgent,t=this.state.authType;return e.Zhihu?Object(o.b)(jd.a,{isAppView:!0,onClose:this.handleAuthModalHide}):Object(o.b)(jd.b,{defaultType:t,onClose:this.handleAuthModalHide})}},{key:"renderAppHeader",value:function(){var e=this.props,t=e.currentUser,n=e.isMobile,r=e.isZhihu,i=e.itemInfo,a=e.routes.some((function(e){return e.showAppHeader}));return!1===a||r?null:n?Object(o.b)(gd,{currentUser:t,onLogin:this.handleLogin,tag:"div",itemInfo:i}):a?Object(o.b)(Tb,{currentUser:t}):null}},{key:"render",value:function(){var e=this.props,t=e.currentUser,n=e.userAgent,r=e.children,i=this.state,a=i.authModalShown,c=i.bindPhoneModalShown,s=i.signInModalShown,u=i.realNameModalShown;return Object(o.c)(vf,{className:"App",children:[n.Wechat&&Object(o.b)(Tl,{}),this.renderAppHeader(),Object(o.b)(gf,{}),Object(o.b)("main",{role:"main",className:"App-main",children:r}),a&&this.renderAuthentication(),t&&!1===t.isBindPhone&&Object(o.b)(jd.d,{onToggle:this.handleBindPhoneModalToggle,shown:c}),t&&!t.isRealname&&Object(o.b)(jd.e,{onToggle:this.handleRealNameModalToggle,shown:u}),s&&Object(o.b)(El.a,{buttons:[{name:"zhihu",text:"使用知乎帐号登录",fill:"#0f88eb",color:"#fff"},{name:"wechat",text:Object(o.c)("span",{children:[Object(o.b)(Al.a,{text:!0,center:!0})," 微信快速登录"]}),fill:"#12b370",color:"#fff"}],onClose:this.handleLogin})]})}}]),n}(a.Component);Ab.fetchData=function(e){return(0,e.dispatch)(Object(z.g)())},Ab.childContextTypes={currentUser:jl.a.object,authRequired:jl.a.func,handleBindPhoneModalToggle:jl.a.func,isMobile:jl.a.bool,realNameRequired:jl.a.func};var kb=Object(Lt.compose)(Object(Ot.connect)((function(e,t){var n,r,o=e.env,i=o.userAgent,a=o.ab,c=o.trafficSource,s=Object(z.d)(e),u=(n=t.location.pathname,"p"===(r=n.split("/").slice(1))[0]?{type:"article",id:Number(r[1])}:"answer"===r[2]?{type:"answer",id:Number(r[3])}:"question"===r[0]?{type:"question",id:Number(r[1])}:"topic"===r[0]?{type:"topic",id:Number(r[1])}:null);return u&&(u.readStatus=wi(e,u)),{ab:a,trafficSource:c,currentUser:Object(B.b)(e),account:e.account,userAgent:i,isMobile:s,isZhihu:Object(z.f)(e),itemInfo:u||void 0}}),{showNotification:Xr.g,unlockTicketByDigits:Ft.i,getUnblockInfo:Ft.c,unlockTicketByPassword:Ft.j,getUnlockRequest:Ft.d,requestUnlockTicket:Ft.h,recoverDefaultType:Ft.f}))(Ab),Rb=n(1088);function Ib(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var xb=function(e){Object(ml.a)(n,e);var t=Ib(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={warnText:null},e.buildWarnText=function(t){var n=t||e.props,r=n.currentUser,o=n.user,i=n.unBlockInfo,a=o||r;if(a){var c=a.accountStatus,s=a.isForceRenamed,u=r&&a.urlToken===r.urlToken;e.setState({warnText:(c&&Boolean(c.length)||s)&&Object(Od.a)(a,u,u&&i)})}},e}return Object(vl.a)(n,[{key:"componentWillMount",value:function(){Object(W.isNode)()||this.buildWarnText()}},{key:"componentDidMount",value:function(){var e=this,t=this.props.fillCurrentUserIfNeeded;this.isSelf&&Promise.resolve(t(["accountStatus","isForceRenamed","renamedFullname","isBindPhone"])).then((function(){return e.buildWarnText()}))}},{key:"componentWillReceiveProps",value:function(e){var t=e.unBlockInfo,n=t.isAppealed,r=t.unBlockInfo,o=e.user,i=(void 0===o?{}:o).urlToken,a=this.props,c=a.unBlockInfo,s=c.prevIsAppealed,u=c.prevUnBlockInfo,l=a.user,d=(l=void 0===l?{}:l).urlToken;(i&&i!==d||n!==s||r!==u)&&this.buildWarnText(e)}},{key:"render",value:function(){var e=this.state.warnText;return e?Object(o.c)("div",{className:"UserStatus",children:[Object(o.b)(Rb.a,{center:!0,text:!0,fill:"#f75659"}),Object(o.b)("span",{className:"UserStatus-warnText",children:e})]}):null}},{key:"isSelf",get:function(){var e=this.props,t=e.user,n=e.currentUser;return!t||n&&n.urlToken===t.urlToken}}]),n}(a.Component);xb.propTypes={user:jl.a.object};var Nb=Object(Ot.connect)((function(e){var t=e.account,n=t.isAppealed,r=t.spamLevel;return{currentUser:Object(B.b)(e),unBlockInfo:{isAppealed:n,spamLevel:r}}}),{fillCurrentUserIfNeeded:B.d})(xb),Db=n(137),Pb=n(210);function Lb(e,t){for(var n,r=0,o="",i=e.length,a=0;a<i&&((n=e[a]).charCodeAt(0)<128?r+=1:r+=2,o+=n,!(r>=t-1));a+=1);return o}var Mb=null;function Ub(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"…",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];"undefined"==typeof document?t=Lb(n=e.replace(/<.+?>/g,""),r):((Mb=Mb||document.createElement("div")).textContent=e,t=Lb(n=Mb.textContent.replace(/<.+?>/g,""),r));var a=!1;return t!==n&&(a=!0,t=t.slice(0,t.length-o.length),t+=o),i?{output:t,truncated:a}:t}function Bb(e){return/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/g.test(e)}var zb=function(e){var t=e.required,n=e.getErrorText,r=e.initialValue,i=e.isModal,c=Object(_e.a)(e,["required","getErrorText","initialValue","isModal"]),s=Object(a.useState)(null!=r?r:""),u=Object(gt.a)(s,2),l=u[0],d=u[1],f=n(l),p=Boolean(!f&&(!t||l)),h=Object(a.useMemo)((function(){return Object(o.c)(Ef.Flex,{mx:i?"0":"24px",flexDirection:"column",children:[Object(o.b)(Hl.a,Object.assign({css:{width:"100%"},value:l,onChange:function(e){return d(e.target.value)}},c)),Object(o.b)(Ef.Text,{mt:"8px",mb:"12px",minHeight:"22px",color:"GRD03A",fontSize:"15px",textAlign:"end",children:f})]})}),[i,l,c,f]);return[l,p,h]},Fb=function(e){return function(t){var n=t.length-e;return n>0?"超出 ".concat(n," 个字"):Bb(t)?"不能包含 emoji":/^\s+$/.test(t)?"不能为纯空白字符":""}},Gb=function(e){var t=e.done,n=e.editing,r=e.columnId,i=e.isModal,c=void 0===i||i,s=e.disableRedirect,u=Object(Ot.useDispatch)(),l=Object(Pb.a)(),d=Object(Ot.useSelector)((function(e){return e.entities.columns[r]})),f=Object(Ot.useSelector)(B.b).hasApplyingColumn,p=zb({name:"专栏名称",required:!0,getErrorText:Fb(20),placeholder:"请输入专栏名称",initialValue:null==d?void 0:d.title,isModal:c}),h=Object(gt.a)(p,3),b=h[0],v=h[1],m=h[2],g=zb({name:"一句话介绍",required:!1,getErrorText:Fb(25),placeholder:"请输入一句话介绍",multiline:!0,rows:4,initialValue:null==d?void 0:d.intro,isModal:c}),O=Object(gt.a)(g,3),y=O[0],j=O[1],E=O[2],C=Object(a.useState)(null==d?void 0:d.acceptSubmission),w=Object(gt.a)(C,2),T=w[0],_=w[1],S=n,A=function(){q.a.trackEvent(null,{id:8173,action:"Click"})},k=Object(Bn.b)((function(e){e.preventDefault(),A(),u(su(r,Object.assign({},d,{intro:y,title:b,acceptSubmission:T}))).then((function(){l.alert("修改成功!该改动将在一个工作日内审核后生效。").then(t)}))}));return Object(a.useEffect)((function(){u(Object(B.d)(["hasApplyingColumn"]))}),[u]),Object(a.useEffect)((function(){f&&l.alert("你的专栏创建申请正在受理中。同时只能申请一个专栏。",{title:"你有正在申请的专栏",ok:"知道了"}).then((function(){t&&t()}))}),[t,f,l]),f?null:Object(o.c)("div",{children:[!c&&Object(o.b)(jt.a,{title:n?"修改专栏介绍":"新建专栏"}),Object(o.b)(Ef.Flex,{fontSize:"24px",justifyContent:"center",mt:"40px",mb:"32px",fontWeight:"bold",children:n?"修改专栏介绍":"新建专栏"}),m,E,S&&Object(o.c)(Ef.Flex,{justifyContent:"space-between","align-items":"center",mt:"-4px",fontSize:15,color:"GBL05A",children:["接受他人自荐内容",Object(o.b)(Db.a,{checked:T,onChange:function(e){_(e.target.checked)}})]}),Object(o.c)(Wh.a,{direction:"horizontal",css:{marginTop:S?32:48},children:[c&&Object(o.b)(yf.c,{color:yf.b.Primary,onClick:function(){return t&&t()},children:"取消"}),Object(o.b)(yf.c,{type:"submit",preset:yf.a.Blue,color:yf.b.Primary,disabled:!v||!j,onClick:n?k:function(e){e.preventDefault(),A(),u(Object(Ys.e)({title:b,intro:y})).then((function(e){var n=e.res;n.payload.manualCensor?l.alert("已收到您的申请,知乎会在 3 个工作日内处理并通过私信反馈结果。",{title:"正在审核",ok:"完成"}).then((function(){t&&t()})):(s||(location.href="https://www.zhihu.com/column/".concat(n.payload.id)),t&&t())})).catch((function(e){l.alert(e.payload.message,{title:"出错了",ok:"知道了"}).then((function(){t&&t()}))}))},children:n?"保存":"新建专栏"})]})]})},Vb=function(e){var t=e.onClose,n=e.shown,r=e.editing,i=void 0!==r&&r,a=e.columnId,c=e.disableRedirect;return Object(o.b)(Pt.b,{onClose:t,size:"large",children:n&&Object(o.b)(Gb,{isModal:!0,editing:i,columnId:a,done:t,disableRedirect:c})})},Hb=n(1090),qb=n(233),Kb=n(315),Wb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yb=function(e){return c.a.createElement(xl.a,Wb({fill:"currentColor"},e),c.a.createElement("path",{d:"M12.75 6a.25.25 0 0 1 .25.25v4.969a.5.5 0 0 0 .213.41l4.156 2.908a.25.25 0 0 1 .061.349l-.86 1.228a.25.25 0 0 1-.348.062l-5.009-3.506a.5.5 0 0 1-.213-.41V6.25a.25.25 0 0 1 .25-.25h1.5z"}),c.a.createElement("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16z",fillRule:"evenodd",clipRule:"evenodd"}))};Yb.defaultProps={name:"Time"};var Qb=Yb;function Zb(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Jb=function(e){Object(ml.a)(n,e);var t=Zb(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).load=function(){var t=e.props,n=t.dispatch,r=t.id;n(Object(Ys.c)(r))},e.track=function(){var t,n=e.props.column;e.hoverCardElement&&n&&(q.a.setModule(e.hoverCardElement,{module:"ColumnItem"},{card:{content:{type:"Column",token:n.id,item_num:n.articlesCount,follower_num:n.followers,publish_timestamp:1e3*n.updated,author_member_hash_id:null===(t=n.author)||void 0===t?void 0:t.id}}}),q.a.trackCardShow(e.hoverCardElement))},e.handleOpen=function(){e.load(),e.track()},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.toggler,r=t.column,i=t.id,a=t.isLoading,c=t.onRef,s=Object(_e.a)(t,["toggler","column","id","isLoading","onRef"]),u=r||{},l=u.title,d=u.intro,f=u.itemsCount,p=u.voteupCount,h=u.lastArticle,b=u.articlesCount,v=u.followers,m=h||{},g=m.title,O=m.created,y="".concat(le.v,"/column/").concat(i);return Object(o.c)(Kb.b,Object.assign({toggler:n,preventCloseOnTarget:!0,isLoading:a,onOpen:this.handleOpen,size:"large"},s,{onRef:function(t){c&&"function"==typeof c&&c(t),e.hoverCardElement=t},children:[Object(o.b)(Kb.a,{title:Object(o.b)("a",{target:"_black",href:y,children:l})}),d,h&&Object(o.c)("div",{children:[Object(o.b)(Qb,{text:!0,center:!0})," 最后更新",Object(o.b)("span",{className:"HoverCard-separate",children:" | "}),g,Object(o.c)("span",{children:["(",Object(ci.toRelativeString)(O),")"]})]}),Object(o.b)("div",{children:Object(o.c)(qb.a,{children:[Object(o.b)(qb.a.Item,{tag:vb.a,preset:"plain",a:!0,to:y,name:f>=0?"内容":"文章",value:null!=f?f:b}),Object(o.b)(qb.a.Item,{tag:vb.a,preset:"plain",a:!0,to:y,name:p>=0?"赞同":"关注",value:null!=p?p:v})]})})]}))}}]),n}(a.Component);Jb.contextTypes={currentUser:jl.a.object};var Xb=Object(Ot.connect)((function(e,t){var n=t.id,r=e.entities.columns,o=e.loading.local;return{column:r[n],isLoading:Boolean(o["column/".concat(n)])}}))(Jb);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var ev=function(e){Object(ml.a)(n,e);var t=$b(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e,t=this.props,n=t.isMobile,r=t.column,i=r.title,a=r.imageUrl,c=r.id,s=t.avatar,u=t.avatarProps,l=t.noHoverCard,d=t.style,f=t.className,p=t.children,h=Object(_e.a)(t,["isMobile","column","avatar","avatarProps","noHoverCard","style","className","children"]),b=void 0===l?n:l;return e=s?Object(o.b)(Gh.a,Object.assign({url:a,alt:i},u)):p||i,b||(e=Object(o.b)(Xb,{toggler:e,id:c})),Object(o.b)("a",Object.assign({style:d,className:rl()("ColumnLink",f),href:"".concat(le.v,"/column/").concat(c)},ei()(h,["dispatch"]),{children:e}))}}]),n}(a.Component);ev.propTypes={column:jl.a.object.isRequired,avatar:jl.a.bool,avatarProps:jl.a.object,noHoverCard:jl.a.bool,style:jl.a.object,className:jl.a.string,children:jl.a.node},ev.defaultProps={avatar:!1};var tv=Object(Lt.compose)(Object(Ot.connect)((function(e){return{isMobile:Object(z.d)(e,{includeTablet:!0})}})))(ev),nv=n(696),rv=n(268),ov=n(249),iv={1283:{id:1283,name:"设置"},1292:{id:1292,name:"MoreAction"},1293:{id:1293,name:"标记按钮"},1294:{id:1294,name:"举报"},1281:{id:1281,name:"底部bar评论"},1298:{id:1298,name:"赞赏"},1279:{id:1279,name:"关注专栏"},1280:{id:1280,name:"写文章",action:"OpenUrl"},1288:{id:1288,name:"关注专栏"},1282:{id:1288,action:"Collect"},1295:{id:1295,name:"话题",action:"OpenUrl"},1296:{id:1296,action:"OpenUrl",element:"Image"},1297:{id:1297,action:"OpenUrl",element_name:"MoreAction"},8928:{id:8928,action:"Click",element:"Text"}},av=function(e,t,n){var r="number"==typeof t?iv[t]:t;"object"==typeof r&&q.a.trackEvent(e&&e.currentTarget,Object.assign({action:"Click"},r),n)},cv=n(1089),sv=function(e){var t=e.column;return Object(o.c)(bb.b,{tag:"a",href:"".concat(le.v,"/column/").concat(t.id),children:[Object(o.b)(Gh.a,{round:!0,size:30,url:t.imageUrl}),t.title]},t.id)},uv=function(e,t){var n=e.columns,r=void 0===n?[]:n,i=t.currentUser,a=Object(o.b)(yf.c,{className:"ColumnPageHeader-MenuToggler",preset:"plain",title:"更多",children:Object(o.b)(cv.a,{})});return Object(o.c)(bb.c,{menuClassName:"ColumnPageHeader-Menu",positionStatus:"fixed",toggler:a,children:[Object(o.b)("div",{className:"ColumnPageHeader-ColumnList",children:r.map((function(e){return Object(o.b)(sv,{column:e},e.id)}))}),r.length>0&&Object(o.b)(bb.a,{}),Object(o.b)(bb.b,{tag:"a",href:"".concat(le.j,"/drafts"),children:"草稿"}),Object(o.b)(bb.b,{tag:"a",href:"https://www.zhihu.com/people/".concat(i.urlToken||i.id,"/posts"),children:"我的文章"}),Object(o.b)(bb.b,{tag:"a",href:le.j,children:"专栏 · 发现"})]})};uv.propTypes={columns:jl.a.arrayOf(jl.a.object).isRequired},uv.contextTypes={currentUser:jl.a.object};var lv=uv;function dv(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var fv=function(e){Object(ml.a)(n,e);var t=dv(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleWriteButtonClick=function(e){Promise.resolve(av(e,1280)).then((function(){window.open("https://zhuanlan.zhihu.com/write","_blank")}))},e.handleFollowClick=function(e){return av(e,1279),!0},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isLogin,n=e.currentUser,r=e.getColumnContributions;t&&n&&n.urlToken&&r()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isLogin,r=t.currentUser,o=t.getColumnContributions;n&&(e.currentUser&&!e.currentUser.urlToken||!e.currentUser)&&r&&r.urlToken&&o()}},{key:"renderTitle",value:function(){var e=this.props,t=e.title,n=e.titleMeta,r=e.preset,i=e.column;if(t||i){var a=t||Object(o.b)(o.a,{children:Object(o.c)("div",{className:"ColumnPageHeader-TitleName",children:[Object(o.b)("span",{className:"ColumnPageHeader-TitleMeta",children:n||("article"===r?"首发于":"专栏")}),Object(o.b)(tv,{column:i,noHoverCard:!0,className:"ColumnPageHeader-TitleColumn"})]})});return Object(o.c)(o.a,{children:[Object(o.b)("i",{className:"ColumnPageHeader-Line"}),Object(o.b)("div",{className:"ColumnPageHeader-Title",children:a})]})}return null}},{key:"renderButtons",value:function(){var e=this.props.renderNavbarFunctionality;return e?e():Object(o.c)(yf.c,{className:"ColumnPageHeader-WriteButton",color:"blue",onClick:this.handleWriteButtonClick,children:[Object(o.b)(Hb.a,{}),"写文章"]})}},{key:"render",value:function(){var e=this.props,t=e.columnContributions,n=e.isLogin,r=e.showAdblockBanner;return Object(o.c)("div",{className:"ColumnPageHeader-Wrapper",children:[r&&Object(o.b)(nv.a,{}),Object(o.b)(ql.a,{children:Object(o.b)("div",{className:"ColumnPageHeader",children:Object(o.c)("div",{className:"ColumnPageHeader-content",children:[Object(o.b)(fb,{}),this.renderTitle(),Object(o.c)("div",{className:"ColumnPageHeader-Button",children:[this.renderButtons(),n&&Object(o.b)(lv,{columns:t})]})]})})})]})}}]),n}(a.Component);fv.PRESETS={COLUMN:"column",ARTICLE:"article"},fv.propTypes={column:jl.a.object,preset:jl.a.oneOf(["column","article"]).isRequired,columnContributions:jl.a.array.isRequired,isLogin:jl.a.bool.isRequired,showAdblockBanner:jl.a.bool,title:jl.a.oneOfType([jl.a.element,jl.a.string]),titleMeta:jl.a.oneOfType([jl.a.element,jl.a.string]),renderNavbarFunctionality:jl.a.func},fv.defaultProps={preset:"article"};var pv=Object(Lt.compose)(Object(Ot.connect)((function(e,t){var n=t.columnId;return{currentUser:Object(ov.a)(e),column:e.entities.columns[n],isLogin:""!==e.currentUser,columnContributions:e.me.columnContributions}}),{getColumnContributions:rv.c}))(fv);var hv=Object(Ot.connect)((function(e){return{isZhihu:e.env.userAgent.Zhihu,isWebView:e.env.userAgent.isWebView}}))((function(e){var t=e.isZhihu,n=e.isWebView,r=e.onRequestClick;return Object(o.c)("div",{className:"ColumnHomeTop",children:[Object(o.b)("h1",{className:"ColumnHomeTop-logo",children:"知乎专栏"}),Object(o.b)("h2",{className:"ColumnHomeTop-subTitle",children:"随心写作,自由表达"}),!t&&!n&&Object(o.c)(a.Fragment,{children:[Object(o.b)(vb.a,{className:"ColumnHomeTop-writeButton",preset:"outline",color:"grey",target:"_blank",to:"/write",onClick:function(e){q.a.trackEvent(e.target,{id:8035,action:"OpenUrl"},{link:{url:"https://zhuanlan.zhihu.com/write"}})},children:"开始写文章"}),Object(o.c)(yf.c,{className:"ColumnHomeTop-requestButton",preset:"plain",color:"green",onClick:r,children:["申请开通专栏",Object(o.b)(Yh.a,{text:!0,center:!0})]})]})]})})),bv=n(1085);function vv(e){var t=e.children;return Object(o.c)("h3",{className:"ColumnHomeTitle",children:[Object(o.b)("div",{className:"ColumnHomeTitle-text",children:t}),Object(o.b)("div",{className:"ColumnHomeTitle-line"})]})}function mv(e){var t=e.className,n=e.column,r=n.url,i=n.imageUrl,a=n.title,c=n.description,s=n.followers,u=n.articlesCount;return Object(o.c)("a",{className:rl()("ColumnHomeColumnCard",t),target:"_blank",href:r,rel:"noopener noreferrer",children:[Object(o.b)(Gh.a,{className:"ColumnHomeColumnCard-Avatar",round:!0,size:48,url:i,alt:"专栏图像"}),Object(o.c)("div",{className:"ColumnHomeColumnCard-info",children:[Object(o.b)("div",{className:"ColumnHomeColumnCard-title",children:a}),Object(o.b)("div",{className:"ColumnHomeColumnCard-description",children:c})]}),Object(o.c)("div",{className:"ColumnHomeColumnCard-meta",children:[Object(hh.formatNumber)(s)," 人关注 | ",Object(hh.formatNumber)(u)," 篇文章"]}),Object(o.b)(yf.c,{className:"ColumnHomeColumnCard-followButton",preset:"outline",color:"green",children:"进入专栏"})]})}var gv=function(e){var t=e.recommendations,n=void 0===t?[]:t,r=e.onChange,i=Object(a.useState)(!1),c=Object(gt.a)(i,2),s=c[0],u=c[1];return Object(o.c)("div",{className:"ColumnHomeRecommendation",children:[Object(o.b)(vv,{children:"专栏 · 发现"}),Object(o.b)("div",{className:"ColumnHomeRecommendation-cardContainer",children:n.map((function(e){return Object(o.b)(mv,{className:"ColumnHomeRecommendation-card",column:e},e.id)}))}),Object(o.b)(yf.c,{className:rl()("ColumnHomeRecommendation-refreshButton",{"ColumnHomeRecommendation-refreshButton--rotating":s}),color:"grey",icon:bv.a,label:"换一换",onClick:function(e){u(!0),r(e)},onTransitionEnd:function(){u(!1)}})]})};var Ov=function(e){var t=e.className,n=e.onRequestClick,r=(new Date).getFullYear();return Object(o.c)("div",{className:rl()("ColumnHomeBottom",t),children:[Object(o.b)("h3",{className:"ColumnHomeBottom-title",children:"在知乎创作"}),Object(o.b)(yf.c,{className:"ColumnHomeBottom-requestButton",onClick:n,children:"申请专栏"}),Object(o.c)("footer",{className:"ColumnHomeBottom-footer",children:[Object(o.c)("span",{children:["© ",r," 知乎"]}),Object(o.b)("span",{children:" · "}),Object(o.b)("a",{target:"_blank",href:"/",rel:"noopener noreferrer",children:"知乎专栏"}),Object(o.b)("span",{children:" · "}),Object(o.b)("a",{target:"_blank",href:"https://www.zhihu.com/roundtable",rel:"noopener noreferrer",children:"圆桌"}),Object(o.b)("span",{children:"·"}),Object(o.b)("a",{target:"_blank",href:"https://www.zhihu.com/explore",rel:"noopener noreferrer",children:"发现"}),Object(o.b)("span",{children:" · "}),Object(o.b)("a",{target:"_blank",href:"https://www.zhihu.com/app",rel:"noopener noreferrer",children:"移动应用"}),Object(o.b)("span",{children:" · "}),Object(o.b)("a",{href:"https://www.zhihu.com/signin?no_qrcode=1",children:"使用机构帐号登录"}),Object(o.b)("span",{children:" · "}),Object(o.b)("a",{href:"https://www.zhihu.com/contact",children:"联系我们"}),Object(o.b)("span",{children:" · "}),Object(o.b)("a",{target:"_blank",href:"https://www.zhihu.com/careers",rel:"noopener noreferrer",children:"来知乎工作"}),Object(o.b)("br",{}),Object(o.b)("a",{href:"https://tsm.miit.gov.cn/dxxzsp/",target:"_blank",rel:"noopener noreferrer",children:"京 ICP 证 110745 号"}),Object(o.b)("span",{children:" · "}),Object(o.b)("a",{href:"https://beian.miit.gov.cn/",target:"_blank",rel:"noopener noreferrer",children:"京 ICP 备 13052560 号 - 1"}),Object(o.b)("span",{children:" · "}),Object(o.c)("a",{target:"_blank",rel:"noopener noreferrer",href:"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010802020088",children:[Object(o.b)("img",{src:"https://pic3.zhimg.com/80/v2-d0289dc0a46fc5b15b3363ffa78cf6c7.png"}),"京公网安备 11010802020088 号"]}),Object(o.b)("span",{children:" · "}),Object(o.b)("a",{href:"http://zhstatic.zhihu.com/assets/zhihu/publish-license.jpg",target:"_blank",rel:"noopener noreferrer",children:"出版物经营许可证"})]})]})},yv={limit:8,offset:0,seed:7};function jv(e){var t=e.currentUser,n=e.isMobile,r=e.homeRecommendations,i=e.getHomeRecommendations,c=e.showNotification,s=e.fillCurrentUserIfNeeded,u=Object(a.useState)(!1),l=Object(gt.a)(u,2),d=l[0],f=l[1],p=Object(a.useState)(!1),h=Object(gt.a)(p,2),b=h[0],v=h[1],m=Object(a.useState)(!1),g=Object(gt.a)(m,2),O=g[0],y=g[1],j=Object(Bn.b)((function(){var e=t.accountStatus,n=t.hasApplyingColumn;return(null==e?void 0:e.muted)?v(!0):n?f(!0):void y(!0)}));Object(a.useEffect)((function(){q.a.trackPageShow({id:3368})}),[]),Object(a.useEffect)((function(){w.a.get("requestColumn")&&(w.a.delete("requestColumn"),c("信息已提交,我们将在三个工作日内确认并答复"))}),[c]),Object(a.useEffect)((function(){s(["hasApplyingColumn"])}),[]);var E=Object(a.useCallback)((function(){window.innerWidth<=1020?(yv.offset+=6,yv.limit=6):(yv.offset+=8,yv.limit=8),i("columns",yv)}),[i]);return Object(o.c)("div",{className:"ColumnHome",children:[Object(o.b)(jt.a,{title:"知乎专栏 - 随心写作,自由表达"}),!n&&Object(o.b)(pv,{showAdblockBanner:!0}),Object(o.b)(hv,{onRequestClick:j}),Object(o.b)(gv,{recommendations:r,onChange:E}),Object(o.b)(Ov,{className:"ColumnHome-HomeBttom",onRequestClick:j}),Object(o.b)(Wh.b,{className:"ColumnHomeTop-PendingModal",onClose:function(){return f(!1)},children:d&&"你的专栏创建申请正在受理中。同时只能申请一个专栏。"}),Object(o.b)(Wh.b,{className:"ColumnHomeTop-MutedModal",onClose:function(){return v(!1)},children:b&&Object(o.b)(Nb,{user:t})}),Object(o.b)(Vb,{onClose:function(){return y(!1)},shown:O})]})}jv.fetchData=function(e){return(0,e.dispatch)(Js("columns",yv))};var Ev=Object(Lt.compose)(Object(Ot.connect)((function(e){var t=e.recommendation.homeRecommendations;return{currentUser:Object(B.b)(e),isMobile:Object(z.d)(e),homeRecommendations:t}}),{getHomeRecommendations:Js,fillCurrentUserIfNeeded:B.d,showNotification:Xr.g}),Object(wf.a)({shouldLoad:function(e){return 0===e.homeRecommendations.length},load:function(e){return(0,e.getHomeRecommendations)("columns",yv)}}))(jv),Cv=function(e){return"".concat(le.j,"/p/").concat(e)},wv=function(e){return"".concat(le.j,"/p/").concat(e,"/edit")},Tv=function(e){return"".concat(le.v,"/column/").concat(e)},_v=function(e){return Object.keys(e).map((function(t){return{property:"og:".concat(t),content:e[t]}}))},Sv=function(e){var t=e.imageUrl,n=e.title,r=e.url,o=e.excerpt,a=e.topics,c=Ub(o),s=[{name:"description",content:c}].concat(Object(i.a)(_v({title:n,url:r,description:c,image:t,type:"article",site_name:"知乎专栏"})));if(a){var u=a.map((function(e){return e.name})).join(",");if(u)return s.unshift({name:"keywords",content:u}),s}return s},Av=function(e){var t=e.title,n=e.intro,r=e.id,o=e.imageUrl;return[{name:"description",content:n}].concat(Object(i.a)(_v({title:t,url:"https:".concat(Tv(r)),description:n,image:o,site_name:"知乎专栏"})))};function kv(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Rv=function(e){Object(ml.a)(n,e);var t=kv(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.total,n=e.current,r=e.url,i=n<=t?n:1,a=1===i,c=i===t,s=Object(o.b)("a",{href:"".concat(r,"?page=").concat(i-1),children:"上一页"}),u=Object(o.b)("a",{href:"".concat(r,"?page=").concat(i+1),children:"下一页"});return Object(o.c)("div",{style:{width:0,height:0,visibility:"hidden"},children:[!a&&s,!c&&u]})}}]),n}(a.Component);Rv.propTypes={total:jl.a.number.isRequired,current:jl.a.number.isRequired,url:jl.a.string.isRequired};var Iv=Rv,xv=n(397),Nv=function(e){var t=e.isAuthor;return Object(o.c)("section",{className:"Column-EmptyCard",children:[Object(o.b)(xv.a,{className:"Column-EmptyCard-image"}),Object(o.c)("p",{children:["还没有文章",t&&",",t&&Object(o.b)("a",{href:"".concat(le.j,"/write"),children:"开始写第一篇文章"})]})]})};Nv.propTypes={isAuthor:jl.a.bool};var Dv=Nv,Pv=n(300),Lv=n(114),Mv=function(e,t){if(e!==t){var n=new Error;throw n.redirect="".concat(le.v,"/column/").concat(e),n}};function Uv(e){var t=e.params.id;return(0,e.dispatch)(cu(t)).then((function(e){var n=e.payload.id;return Mv(n,t),e}))}var Bv=n(90),zv=function(e){var t=e.className,n=e.onRef,r=Ld()(e,["className","onRef"]);return Object(Md.c)("div",Dd()({ref:n,className:rl()("Card",t)},r))},Fv=function(e){var t=e.className,n=e.options,r=e.children;return Object(Md.c)("div",{className:rl()("Card-header",t)},Object(Md.c)("div",{className:"Card-headerText"},r),n&&Object(Md.c)("div",{className:"Card-headerOptions"},n))},Gv=n(1104),Vv=function(e){return c.a.createElement(xl.a,e,c.a.createElement("g",{fillRule:"evenodd"},c.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"}),c.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"})))};Vv.defaultProps={name:"StickyUnset"};var Hv=Vv,qv=function(e){return c.a.createElement(xl.a,e,c.a.createElement("g",{fillRule:"evenodd"},c.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"}),c.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"})))};qv.defaultProps={name:"StickySet"};var Kv=qv,Wv=n(178),Yv=n(184),Qv=n(149),Zv=[{code:32309,description:"收到大量反对"},{code:32301,description:"可能包含争议观点"},{code:32302,description:"可能存在事实性错误",placeholder:"为了避免对您造成误导,请谨慎甄别"},{code:32303,description:"可能涉及金钱往来",placeholder:"为保障您的财产安全,请谨慎判断"},{code:32304,description:"可能包含剧透"},{code:32306,description:"可能包含具体的医疗建议",placeholder:"网络上的医疗建议仅供参考,如有需要请咨询专业人士或前往医疗机构就医"},{code:32307,description:"可能包含令人不适的图片或视频",placeholder:"为保障您的阅读体验,请谨慎浏览"},{code:32308,description:"已有回应"},{code:32300,description:"其他"}];function Jv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Xv=function(e){Object(ml.a)(n,e);var t=Jv(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.options,n=e.value,r=e.onChange,i=e.className;return Object(o.b)("div",{className:rl()("RadioButtons",i),children:t.map((function(e,t){var i=e.value,a=e.text,c=e.placeholder;return Object(o.c)("label",{className:"RadioButtons-item",children:[Object(o.b)("span",{className:"RadioButtons-text",children:a}),Object(o.b)("input",{type:"radio",className:"RadioButtons-input",value:i,checked:n===i,onChange:function(){return r(i,c)}})]},t)}))})}}]),n}(a.PureComponent);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}Xv.propTypes={options:jl.a.arrayOf(jl.a.shape({value:jl.a.string,text:jl.a.string,placeholder:jl.a.string})).isRequired,value:jl.a.string,onChange:jl.a.func,className:jl.a.string};var em=function(){return n.e(16).then(n.bind(null,1346))},tm=Zv.map((function(e){var t=e.code,n=e.description,r=e.placeholder;return{text:n,value:String(t),placeholder:r}})),nm=function(e){Object(ml.a)(n,e);var t=$v(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={selectedReasonCode:null,isReasonDescriptionEmpty:!0},e.handleReasonCodeChange=function(t,n){e.setState({selectedReasonCode:Number(t),selectedReasonPlaceholder:n||""}),e.input&&e.input.resetWithValue(n||"")},e.handleAddAnnotation=function(){var t=e.props,n=t.addAnnotation,r=t.type,o=t.urlToken,i=t.showNotification,a=t.onClose;n(r,o,e.state.selectedReasonCode,e.input.toHTML()).then((function(){a(),i&&i("标记内容成功")}))},e.handleReasonDescriptionChange=function(t){e.setState({isReasonDescriptionEmpty:t.isEmpty})},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.onClose,r=t.shown,i=t.className,a=this.state,c=a.selectedReasonCode,s=a.isReasonDescriptionEmpty,u=a.selectedReasonPlaceholder,l=function(e){var t=Zv.find((function(t){return t.code===e}));return t&&t.description}(c),d=32300===c;return Object(o.b)(Pt.b,{title:"标记内容",subtitle:"请选择标记原因",onClose:n,className:i,children:r&&Object(o.c)("div",{children:[Object(o.c)("div",{className:"AddAnnotationModal-body",children:[Object(o.b)(Xv,{options:tm,onChange:this.handleReasonCodeChange,value:String(c)}),c&&Object(o.c)("div",{children:[Object(o.c)("div",{className:"AddAnnotationModal-description",children:[l,"(",d?"必填":"选填",")"]}),Object(o.b)(Qv.a,{getComponent:em,multiline:!0,richtext:!0,allowMention:!0,large:!0,spread:!0,minRows:2,onRef:function(t){e.input=t},defaultValue:u,placeholder:"请填写原因",onChange:this.handleReasonDescriptionChange})]})]}),Object(o.b)(Pt.a,{direction:"horizontal",className:"AddAnnotationModal-buttonGroup",children:Object(o.b)(yf.c,{preset:"primary",color:"blue",onClick:this.handleAddAnnotation,size:"spread",disabled:!c||d&&s,children:"标记"})})]})})}}]),n}(a.PureComponent);function rm(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}nm.propTypes={addAnnotation:jl.a.func.isRequired,onClose:jl.a.func.isRequired,shown:jl.a.bool.isRequired,type:jl.a.oneOf([0,1,2]).isRequired,urlToken:jl.a.oneOfType([jl.a.number,jl.a.string]),showNotification:jl.a.func,className:jl.a.string};var om=function(e){Object(ml.a)(n,e);var t=rm(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={isReasonDescriptionEmpty:!0},e.handleCancelAnnotation=function(){var t=e.props,n=t.cancelAnnotation,r=t.type,o=t.urlToken,i=t.showNotification,a=t.onClose;n(r,o,32305,e.input.value).then((function(){a(),i&&i("撤销标记成功")}))},e.handleReasonDescriptionChange=function(t){return e.setState({isReasonDescriptionEmpty:t.isEmpty})},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.onClose,r=t.shown,i=t.className,a=this.state.isReasonDescriptionEmpty;return Object(o.b)(Pt.b,{title:"你确定要撤销这条内容的标记吗?",onClose:n,className:i,children:r&&Object(o.c)("div",{className:"CancelAnnotationModal",children:[Object(o.b)(Hl.a,{multiline:!0,large:!0,spread:!0,onRef:function(t){e.input=t},placeholder:"请填写撤销原因(必填)",onChange:this.handleReasonDescriptionChange,className:"CancelAnnotationModal-Input"}),Object(o.c)(Pt.a,{direction:"horizontal",children:[Object(W.isBrowser)()&&!Gl()(window.navigator.userAgent).Mobile&&Object(o.b)(yf.c,{onClick:n,size:"spread",children:"取消"}),Object(o.b)(yf.c,{preset:"primary",color:"blue",onClick:this.handleCancelAnnotation,size:"spread",className:"CancelAnnotationModal-CancelButton",disabled:a,children:"撤销标记"})]})]})})}}]),n}(a.PureComponent);om.propTypes={cancelAnnotation:jl.a.func.isRequired,onClose:jl.a.func.isRequired,shown:jl.a.bool.isRequired,type:jl.a.oneOf([0,1,2]).isRequired,urlToken:jl.a.oneOfType([jl.a.number.isRequired,jl.a.string.isRequired]),showNotification:jl.a.func,className:jl.a.string};var im=n(61),am=Object.assign({},Object(G.a)("collaboration",["ADD_ANNOTATION","CANCEL_ANNOTATION"])),cm=function(e){return e===le.c?"answers":e===le.e?"pins":e===le.d?"articles":null},sm=function(e,t,n,r){return{API:{types:am.ADD_ANNOTATION,endpoint:"v3/collaboration/annotation",method:"POST",body:Object(Gt.getFormData)(Object($.decamelizeKeys)({objectType:e,urlToken:t,reason:n,detail:r}))},UPDATE:{success:function(n){var r=cm(e);return r?Object(Ut.a)({},r,Object(Ut.a)({},t,n)):null}}}},um=function(e,t,n,r){return{API:{types:am.CANCEL_ANNOTATION,endpoint:"v3/collaboration/annotation_cancel",method:"POST",body:Object(Gt.getFormData)(Object($.decamelizeKeys)({objectType:e,urlToken:t,reason:n,detail:r}))},UPDATE:{success:function(n){var r=cm(e);return r?Object(Ut.a)({},r,Object(Ut.a)({},t,Object.assign({},n,{annotationDetail:null}))):null}}}};function lm(e){var t,n=e.isOrg,r=e.badgeV2,o=e.badge;if(!n)return!1;var i=Object(Np.d)(r||o);return Boolean(null===(t=i.identity)||void 0===t?void 0:t.length)}var dm=n(143),fm=function(e){return c.a.createElement(xl.a,e,c.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"}))};fm.defaultProps={name:"Catalog"};var pm=fm,hm=n(292),bm=function(e){var t=e.className,n=e.onClick,r=e.html,i=e.sourceId,c=Object(a.useCallback)((function(e){q.a.trackEvent(e.target,{id:9857,action:"Click"}),n&&n(e)}),[n]),s=Object(a.useMemo)((function(){return Object(hm.c)(r,i).catalog}),[r,i]);return(null==s?void 0:s.length)?Object(o.b)(im.a,{trackCardShow:!0,view:{id:9856},children:Object(o.b)(yf.c,{preset:"plain",className:t,onClick:c,icon:pm,label:"目录"})}):null},vm=n(119),mm=n(102),gm=n.n(mm),Om=n(129),ym=function(e){var t=e.children,n=e.targetId,r=e.active,i=e.setCursor,a=Object(_e.a)(e,["children","targetId","active","setCursor"]);return Object(o.b)(Ef.Text,Object.assign({color:r?"GBL01A":"GBK02A",fontWeight:r?"bold":"normal",css:{fontSize:"14px"}},a,{children:Object(o.b)(im.a,{module:"Content",moduleName:String(t),children:Object(o.c)(Ef.Flex,{css:{cursor:"pointer",alignItems:"center",height:"48px"},sx:{borderBottom:"1px solid",borderColor:"GBK09A"},onClick:function(e){q.a.trackEvent(e.target,{id:9745,action:"Click",name:"弹窗"});var t=document.querySelector("#"+n);i(n),t&&Object(Om.a)(t)},children:[Object(o.b)(Ef.Text,{css:Object(Et.d)(1),children:t}),Object(o.b)(Yh.a,{size:"24px",css:function(e){return{color:e.colors.GBL05A,flex:"0 0 auto",marginLeft:"auto"}}})]})})}))},jm=function(e){return Object(o.b)(ym,Object.assign({},e))},Em={1:jm,2:function(e){return Object(o.b)(ym,Object.assign({pl:"20px"},e))}},Cm=function(e){var t=e.catalog,n=e.className,r=e.zaContent,i=Object(a.useState)(null),c=Object(gt.a)(i,2),s=c[0],u=c[1];return Object(a.useEffect)((function(){if(null==t?void 0:t.length){var e=null,n=Object(Om.c)();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)(im.a,{trackCardShow:!0,view:{id:9744,name:"弹窗"},content:r,module:"Content",children:Object(o.b)(Ef.Box,{className:rl()(n),children:Object(o.b)(Ef.Flex,{flexDirection:"column",css:{fontSize:"12px"},children:t.map((function(e){var t=e.titleLevel,n=e.text,r=e.targetId,i=Em[t]||jm;return Object(o.b)(i,{targetId:r,active:s===r,setCursor:u,children:n},r)}))})})}):null};function wm(){var e=Object(vm.a)([""," 编辑于",""]);return wm=function(){return e},e}var Tm=function(e){var t=e.className,n=e.shown,r=e.onClose,i=e.html,c=e.sourceId,s=e.updated,u=e.author,l=e.zaContent,d=Object(a.useMemo)((function(){return Object(hm.c)(i,c).catalog}),[i,c]);return Object(o.b)(Pt.b,{wrapperClassName:"CatalogModal-wrapper",className:rl()("CatalogModal",t),title:"目录",subtitle:gm()(wm(),null==u?void 0:u.name,Object(ci.toSmartString)(s)),onClose:r,children:n&&Object(o.b)(Cm,{css:{paddingBottom:"16px"},catalog:d,zaContent:l})})},_m=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===(i=o.tableOfContent)||void 0===i?void 0:i.enabled))));var n,r,o,i},Sm=n(69),Am=n.n(Sm),km=n(536);var Rm={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"},Im={expand_answer:"force_launch_notif",expand_answer1:"auto_notif",expand_answer2:"auto_notif",up:"agree",down:"disagree",comment_answer:"comment",collect_answer:"star"},xm=Object(st.withRouter)(Object(Ot.connect)(null,{loadComments:jn.e})((function(e){var t=Object(a.useState)([]),n=Object(gt.a)(t,2),r=n[0],i=n[1],c=e.parent,s=c.type,u=c.id,l=c.question,d=e.parent,f=e.loadComments,p=e.location.pathname,h=-1!==(null==p?void 0:p.indexOf("answer")),b=-1!==(null==p?void 0:p.indexOf("question")),v=Object(Ot.useSelector)((function(e){return Object(z.k)(e,{type:h?"answer":b?"question":"",id:u||(null==l?void 0:l.id)})}));if(Object(a.useEffect)((function(){f(s,u).then((function(e){var t=e.payload;i(t.data)}))}),[u,s,f]),!(null==r?void 0:r.length))return null;var m=function(e,t){"zvideo"===s?Object(_.b)(Object(Lv.a)({type:s,id:u},{launch_button:t})):v?location.href="zhihu://".concat(s,"/").concat(u,"?utm_app_name=zhihu_check"):Object(_.b)(Object(Lv.a)({type:s,id:u},{launch_button:t})),e.preventDefault()};return Object(o.c)("div",{className:"CommentsForOia",children:[r.slice(0,2).map((function(e){return Object(o.b)("div",{onClick:function(e){return m(e,Rm.comment_list)},children:Object(o.b)(km.a,{parent:d,comment:e,onLike:Am.a,onDelete:Am.a})},e.id)})),r.length>2&&Object(o.b)(yf.c,{color:"blue",preset:"primary",onClick:function(e){return m(e,Rm.comment_more)},children:"打开 App 查看更多评论"})]})}))),Nm=n(65),Dm=Object.assign;var Pm=function(e){return c.a.createElement(Nm.a,Dm({width:"1.2em",height:"1.2em",viewBox:"0 0 24 24"},e),c.a.createElement("path",{d:"M19.027 10c.239.01 1.973.138 1.973 2l-.001 8.027c-.009.24-.137 1.973-2 1.973H5.003C3.138 22 3.009 20.266 3 20.027V12c0-1.862 1.733-1.99 1.972-2zm-8.481 3.004c-.475-.277-.86-.064-.86.5V18.5c0 .553.394.773.86.5l4.278-2.496c.475-.277.466-.731 0-1.003zM18 2a2 2 0 012 2v1.134a1 1 0 011.207 1.573l-1.5 1.5a1 1 0 01-1.414 0l-1.5-1.5A1 1 0 0118 5.134V4h-2a1 1 0 110-2h2zm-8 4a1 1 0 010 2H4a1 1 0 110-2h6zm2-4a1 1 0 010 2H4a1 1 0 110-2h8z",fillRule:"evenodd"}))};function Lm(e,t){return"https://www.zhihu.com/vessay/editor?type=".concat(e,"&id=").concat(t)}var Mm=n(320),Um=n(219),Bm=n(130);var zm=n(161),Fm=n(351),Gm=function(e,t){var n=t.urlToken;return e.people.allFavlistsByUser[n]||{}},Vm=function(e){return e.currentUser},Hm=(Object(zm.a)(Um.a.GET_ALL_FAVLISTS,(function(e,t,n){return function(r,o){var i=o();if(e=e||Vm(i),!t){var a=Gm(i,{urlToken:e}),c=a.offset,s=void 0===c?0:c,u=a.limit;t={offset:s,limit:void 0===u?10:u}}return{action:Object.assign({urlToken:e,paging:t},Bm.a.enableSchema&&{schema:Fm.b},{extra:n}),fetcher:function(e,t){var n=t.next,r=t.offset,o=void 0===r?0:r,i=t.limit,a=void 0===i?10:i;return n?Bm.a.http(n):Bm.a.http("/api/v4/people/".concat(e,"/collections"),{query:{include:"data[*].updated_time,answer_count,follower_count,creator,is_public",offset:o,limit:a}})}(e,t)}}})),Object(zm.a)(Um.a.GET_ALL_FAVLISTS_WITH_RELATIONS,(function(e,t,n,r,o){return function(i,a){var c=a();if(e=e||Vm(c),!r){var s=Gm(c,{urlToken:e}),u=s.offset,l=void 0===u?0:u,d=s.limit;r={offset:l,limit:void 0===d?10:d}}var f=Object.assign({contentType:t,contentId:n,urlToken:e,paging:r},Bm.a.enableSchema&&{schema:Fm.b},{extra:o});return{action:f,fetcher:function(e){var t=e.contentType,n=e.contentId,r=e.paging,o=(r=void 0===r?{}:r).next,i=r.offset,a=void 0===i?0:i,c=r.limit,s=void 0===c?10:c;return o?Bm.a.http(o):Bm.a.http("/api/v4/collections/contents/".concat(t,"/").concat(n),{query:{offset:a,limit:s}})}(f)}}})));function qm(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Km=function(){return n.e(11).then(n.bind(null,1357)).then((function(e){return e.FavlistsModal}))},Wm={ids:[],isFetching:!1,isDrained:!1},Ym=Object(Br.createSelector)((function(e){return e.people.allFavlistsByUser[e.currentUser]||Wm}),(function(e){return e.entities.favlists}),(function(e,t){var n=e.ids,r=Object(_e.a)(e,["ids"]);return Object.assign({},r,{items:n.map((function(e){return t[e]}))})}));var Qm=function(e){Object(ml.a)(n,e);var t=qm(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).onFavlistAdd=function(){for(var t=e.props,n=t.urlToken,r=t.onFavlistAdd,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r.apply(void 0,i.concat([{urlToken:n}]))},e.onLoad=function(){for(var t=e.props,n=t.onLoad,r=t.type,o=t.id,i=t.urlToken,a=t.onUpdateReaction,c=arguments.length,s=new Array(c),u=0;u<c;u++)s[u]=arguments[u];return n.apply(void 0,[i,r,o].concat(s)).then((function(e){a({contentType:r,contentId:o,relations:e.payload.data.reduce((function(e,t){return Object.assign({},e,Object(Ut.a)({},t.id,t.isFavorited))}),{})})}))},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.context.currentUser||{};return Object(o.b)(Qv.a,Object.assign({getComponent:Km},this.props,{authRequired:this.context.authRequired,isUserActive:Boolean(e.isActive),onLoad:this.onLoad,onFavlistAdd:this.onFavlistAdd}))}}]),n}(a.Component);Qm.contextTypes={authRequired:jl.a.func,currentUser:jl.a.object};var Zm=Object(Lt.compose)(Object(Ot.connect)((function(e,t){var n=t.id,r=t.type,o=e.favlists.relations,i=e.currentUser,a=Ym(e);return{isFetching:a.isFetching,isDrained:a.isDrained,items:a.items,relations:o["".concat(r,"_").concat(n)],zaEnabled:!0,urlToken:i}}),(function(e,t){return{onUpdateFav:function(){return e(Mm.b.apply(void 0,arguments))},onFavlistAdd:t.onFavlistAdd||function(){return e(Mm.a.apply(void 0,arguments))},onLoad:function(){return e(Hm.apply(void 0,arguments))},onUpdateReaction:function(){return e(Mm.c.apply(void 0,arguments))}}})))(Qm),Jm=n(699),Xm=n.n(Jm),$m=n(511),eg=n.n($m),tg=n(512),ng=n.n(tg),rg=n(513),og=n.n(rg),ig={answerAdmireCouldOpen:{image:eg.a,title:"开启「赞赏」权益",content:"你已经获得了「赞赏」权益,使用「赞赏」可以得到更多收益。快去开启权益吧。",buttonText:"立即开启",buttonLink:"https://www.zhihu.com/creator/reward/community",detailViewName:"admire",cardShowId:4922,buttonClickId:4924,readAlwaysId:4926,readNextId:4928},answerAdmireCouldUse:{image:eg.a,title:"使用「赞赏」权益",content:"你可以为这篇内容开启「赞赏」。「赞赏」开启后,读者将可以付费支持你的创作。",buttonText:"开启赞赏",detailViewName:"admire",cardShowId:4923,buttonClickId:4925,readAlwaysId:4927,readNextId:4929},promotionCouldOpen:{image:og.a,title:"开启「自定义推广」权益",content:"你已经获得了「自定义推广」权益,使用「自定义推广」可以让内容得到更多展示机会。快去开启权益吧。",buttonText:"立即开启",buttonLink:"https://www.zhihu.com/creator/custom-promotion",detailViewName:"promotion",cardShowId:4922,buttonClickId:4924,readAlwaysId:4926,readNextId:4928},promotionCouldUse:{image:og.a,title:"使用「自定义推广」权益",content:"你可以使用「自定义推广」权益,使这篇内容获得更多展示机会。快去使用权益吧。",buttonText:"立即使用权益",buttonLink:"https://www.zhihu.com/creator/custom-promotion",detailViewName:"promotion",cardShowId:4923,buttonClickId:4925,readAlwaysId:4927,readNextId:4929},recommendationCouldOpen:{image:ng.a,title:"开启「内容自荐」权益",content:"你已经获得了「内容自荐」权益,优质内容通过自荐后可以展示给更多人。快去开启权益吧。",buttonText:"立即开启",buttonLink:"https://www.zhihu.com/creator/recommend",detailViewName:"recommend",cardShowId:4922,buttonClickId:4924,readAlwaysId:4926,readNextId:4928},recommendationCouldUse:{image:ng.a,title:"使用「内容自荐」权益",content:"你可以使用「内容自荐」权益,让更多人看到这篇内容。快去使用权益吧。",buttonText:"立即自荐",detailViewName:"recommend",cardShowId:4923,buttonClickId:4925,readAlwaysId:4927,readNextId:4929}};var ag=function(e){var t=e.notification,n=void 0===t?{}:t,r=e.className,i=e.onRead,c=e.onUseAdmire,s=e.onUseRecommend,u=Object.keys(n).find((function(e){return n[e]})),l=ig[u]||{},d=l.title,f=l.image,p=l.content,h=l.buttonText,b=l.buttonLink,v=l.detailViewName,m=l.cardShowId,g=l.buttonClickId,O=l.readAlwaysId,y=l.readNextId;return Object(a.useEffect)((function(){u&&q.a.trackCardShow(null,{id:m,name:v})}),[u,m,v]),Object(o.b)(Wh.b,{className:rl()("CreatorRightsNotification",r),onClose:function(){i("next"),q.a.trackEvent(null,{id:y,name:v})},children:u&&Object(o.c)(a.Fragment,{children:[Object(o.b)("img",{className:"CreatorRightsNotification-background",src:Xm.a,alt:"blue background"}),Object(o.b)("img",{className:"CreatorRightsNotification-liukanshan",src:f,alt:"liukanshan image"}),Object(o.b)("div",{className:"CreatorRightsNotification-title",children:d}),Object(o.b)("div",{className:"CreatorRightsNotification-content",children:p}),Object(o.c)(Wh.a,{className:"CreatorRightsNotification-buttonGroup",children:[b?Object(o.b)(vb.a,{className:"CreatorRightsNotification-button",preset:"primary",color:"blue",to:b,target:"_blank",onClick:function(){i("current"),q.a.trackEvent(null,{id:g,name:v})},children:h}):Object(o.b)(yf.c,{className:"CreatorRightsNotification-button",preset:"primary",color:"blue",onClick:function(){i("current"),q.a.trackEvent(null,{id:g,name:v}),"answerAdmireCouldUse"===u&&c(),"recommendationCouldUse"===u&&s()},children:h}),Object(o.b)(yf.c,{className:"CreatorRightsNotification-dismiss",preset:"plain",color:"grey",onClick:function(){i("always"),q.a.trackEvent(null,{id:O,name:v})},children:"不再提醒"})]})]})})},cg=n(1050),sg=function(e){var t=e.className,n=e.onClick,r=e.label,i=e.onRef,c=e.disabled,s=e.showIcon,u=void 0===s||s;return Object(o.c)(a.Fragment,{children:[Object(o.b)(ff.b,{keyMap:{BOOKMARK:"s c"},handlers:{BOOKMARK:n}}),Object(o.b)(yf.c,{onRef:i,className:t,preset:"plain",onClick:n,icon:u?cg.a:null,label:r,disabled:c})]})};sg.defaultProps={label:"收藏"};var ug=sg,lg=n(436),dg=n.n(lg),fg=n(182),pg=n.n(fg);function hg(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}function bg(e,t){var n=t.os,r=t.id,o=t.sessionId,i=t.type;return e.replace("__OS__",n).replace("__REQUESTID__",o).replace("__SESSIONID__",o).replace("__ATOKEN__",r).replace("__AID__",r).replace("__PAGETYPE__",i)}var vg=function(e){Object(ml.a)(n,e);var t=hg(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={urls:null,logged:!1},e.handleObserve=function(t){t&&e.log()},e.log=function(){e.state.logged||Promise.resolve(e.state.urls||e.load().then((function(t){return t?(t=e.normalize(t),e.setState({urls:t}),t):[]}))).then((function(e){return e.forEach((function(e){return e&&Q(e)}))})).then((function(){return e.setState({logged:!0})}))},e.load=function(){var t=e.props,n=t.type,r=t.id;return(0,t.loadBrandEntityTrackUrl)({type:n,id:r}).then((function(e){return e&&e.payload&&e.payload.data}))},e.normalize=function(t){var n=pg()(),r=e.props,o=r.ua,i=r.id,a=r.type,c=encodeURIComponent("其他");o.Android?c="android":o.iOS&&(c="ios");var s={os:c,id:i,sessionId:n,type:a};return t.map((function(e){return bg(e,s)}))},e}return Object(vl.a)(n,[{key:"render",value:function(){return!this.state.logged&&Object(o.b)(dg.a,{rootMargin:"0px 0px 0px 0px",onChange:this.handleObserve})}}]),n}(a.Component),mg=Object(Lt.compose)(Object(Ot.connect)((function(e){return{ua:e.env.userAgent}}),{loadBrandEntityTrackUrl:function(e){var t=e.type,n=e.id;return{API:{types:so.GET_BRANDTRACK,endpoint:"/brand/track",query:{content_type:t,url_token:n}},NOTIFICATION:!1,FAILSAFE:!0}}}))(vg);function gg(e){var t=e.annotationDetail;if(!t||!t.showOuter)return null;var n=t.reason,r=t.reasonDescription;return Object(o.b)("span",{className:"AnnotationTag",children:32300===n?"该内容已被标记":r})}var Og=n(98),yg=n(701),jg=n.n(yg),Eg=n(1077),Cg=n(1100),wg=function(e){return c.a.createElement(xl.a,e,c.a.createElement("path",{d:"M2.931 7.89c-1.067.24-1.275 1.669-.318 2.207l5.277 2.908 8.168-4.776c.25-.127.477.198.273.39L9.05 14.66l.927 5.953c.18 1.084 1.593 1.376 2.182.456l9.644-15.242c.584-.892-.212-2.029-1.234-1.796L2.93 7.89z",fillRule:"evenodd"}))};wg.defaultProps={name:"Share"};var Tg=wg,_g=n(150);function Sg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}function Ag(e){return e&&e.startsWith("//")?"https:".concat(e):e}function kg(e){return Object.keys(e).map((function(t){return"".concat(t,"=").concat(encodeURIComponent(e[t]))})).join("&")}var Rg=function(e){Object(ml.a)(n,e);var t=Sg(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={qrCodeUrl:"",url:""},e.togglerRef=Object(a.createRef)(),e.shouldShowMenu=function(){var t=e.props,n=t.onTogglerClick,r=t.disabled;return!1!==n()&&!r},e.handleTogglerClick=function(t){e.shouldShowMenu()?(e.loadQrcodeImage(),e.onShare(t)):t.preventDefault()},e.handleMouseEnter=function(t){e.shouldShowMenu()?(e.loadQrcodeImage(),e.onShare(t)):t.preventDefault()},e.open=function(t){e.shouldShowMenu()&&(e.loadQrcodeImage(),e.menu.popover.open(),e.onShare(t))},e.onShare=function(){var t=e.props,n=t.id,r=t.type,o=t.getShareText,i=t.zaShareId;"live"!==r&&"club"!==r&&o(n,r),q.a.trackEvent(e.togglerRef.current,Object.assign({action:"Share",element:"Button",is_intent:!0,element_name:le.M[r]},i&&{id:i}))},e.copyLink=function(){var t=e.props,n=t.type,r=t.title,o=t.authorName,i=t.href,a=t.showNotification,c=_g.b[n]||"",s=r?"".concat(r," - "):"",u=o&&"匿名用户"!==o&&c?"".concat(o,"的").concat(c," - "):"",l=i?Object(oe.toAbsoluteUrl)(i):e.url();jg()("".concat(s).concat(u,"知乎\n").concat(Ag(l))),a("链接复制成功!")},e.url=function(){var t=e.props,n=t.id,r=t.type;return Ag(Object(oe.toAbsoluteUrl)(e.props.url))||"".concat(location.origin,"/").concat(r,"/").concat(n)},e.loadQrcodeImage=function(){var t=e.state.qrCodeUrl;if(!t){var n="".concat(location.protocol,"//www.zhihu.com/"),r=e.url();t="".concat(n,"qrcode?").concat(kg({url:"".concat(r).concat("#showWechatShareTip")})),e.setState({qrCodeUrl:t,url:r})}},e.shareToWeibo=function(){var t={appKey:"3063806388"},n=e.props.shareText;n&&(t.title=n);var r="http://service.weibo.com/share/share.php?".concat(kg(t));window.open(r,"_blank","width=615,height=505")||(location.href=r)},e}return Object(vl.a)(n,[{key:"componentDidUpdate",value:function(e){this.props.positionStatus!==e.positionStatus&&this.menu.popover.close()}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.togglerClassName,i=t.positionStatus,c=t.toggler,s=t.type,u=t.disabled,l=t.placement,d=t.toggleEvent,f=t.stickHover,p=t.children,h=this.state.qrCodeUrl,b=Object(o.c)("div",{className:rl()("ShareMenu-toggler",r),children:[h&&Object(o.b)("img",{className:"ShareMenu-fakeQRCode",src:h,alt:"微信二维码"}),Object(a.cloneElement)(c,{onMouseEnter:this.loadQrcodeImage,disabled:u,ref:this.togglerRef})]}),v="hover"===d?{onMouseEnter:this.handleMouseEnter}:{onClick:this.handleTogglerClick};return Object(o.c)(a.Fragment,{children:[Object(o.b)(ff.b,{keyMap:{SHARE:"f x"},handlers:{SHARE:this.open}}),Object(o.c)(bb.c,Object.assign({className:rl()("ShareMenu",n),positionStatus:i,ref:function(t){e.menu=t},toggler:b,placement:l,toggleEvent:d,stickHover:f},v,{children:[Object(o.c)(K.a,{as:bb.b,zaType:"Button",zaAction:"Share",zaText:!0,className:"ShareMenu-button",onClick:this.copyLink,children:[Object(o.b)(Eg.a,{size:20,className:"ShareMenu-Icon--normal",color:"#9FADC7"}),"复制链接"]}),"live"===s||Object(o.c)(K.a,{as:bb.b,zaType:"Button",zaAction:"Share",zaText:!0,className:"ShareMenu-button",onClick:this.shareToWeibo,children:[Object(o.b)(Cg.a,{size:17,className:"ShareMenu-Icon--small"}),"新浪微博"]}),Object(o.c)(bb.b,{tag:"div",className:"ShareMenu-wechat",noActive:!0,children:[Object(o.c)(yf.c,{className:"ShareMenu-button",preset:"plain",children:[Object(o.b)(Al.a,{size:17,className:"ShareMenu-Icon--small",color:"#60C84D"}),"微信扫一扫"]}),Object(o.b)("img",{className:"ShareMenu-qrCode",src:h,alt:"微信二维码"})]}),p]}))]})}}]),n}(a.Component);Rg.propTypes={toggler:jl.a.node,onTogglerClick:jl.a.func,zaShareId:jl.a.number},Rg.defaultProps={toggler:Object(o.b)(yf.c,{preset:"plain",icon:Tg,label:"分享"}),onTogglerClick:Am.a};var Ig=Object(Ot.connect)((function(e,t){var n=t.id,r=t.type,o=e.shareTexts;return{shareText:(null==o?void 0:o["".concat(r).concat(n)])||t.shareText}}),{showNotification:Xr.g,getShareText:function(e,t){return{id:e,shareType:t,API:{types:Wr.GET,endpoint:"".concat(t,"s/").concat(e),query:{include:"share_text"}}}}})(Rg),xg=function(e){return c.a.createElement(xl.a,e,c.a.createElement("path",{d:"M10.241 19.313a.97.97 0 0 0-.77.2 7.908 7.908 0 0 1-3.772 1.482.409.409 0 0 1-.38-.637 5.825 5.825 0 0 0 1.11-2.237.605.605 0 0 0-.227-.59A7.935 7.935 0 0 1 3 11.25C3 6.7 7.03 3 12 3s9 3.7 9 8.25-4.373 9.108-10.759 8.063z",fillRule:"evenodd"}))};xg.defaultProps={name:"Comment"};var Ng=xg;function Dg(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Pg=function(e){Object(ml.a)(n,e);var t=Dg(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).buttonRef=Object(a.createRef)(),e.handleClick=function(t){var n=e.props,r=n.zaInfos,o=r.toggleComment,i=r.getCommentAction,a=n.positionStatus,c=n.onClick,s=n.commentsShown;if(q.a.trackEvent(e.buttonRef.current,Object.assign({action:i?i(!s):"Comment",element:"Button",is_intent:!0},o&&{id:o})),c){var u="fixed"===a?"fixed":"bottom",l={commentsShown:!e.props.commentsShown,commentsAutoFocus:!(t instanceof KeyboardEvent),commentPattern:u};t instanceof KeyboardEvent&&"bottom"===u&&e.buttonRef.current.focus(),c(t,l)}},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){this.props.onInstance(this)}},{key:"componentWillUnmount",value:function(){this.props.onInstance(null)}},{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.count,i=t.commentsShown,c=t.commentClosed;if(i)e="收起评论";else{var s=r&&!c;e=s?"".concat(Object(hh.formatNumber)(r)," 条评论"):"添加评论"}return Object(o.c)(a.Fragment,{children:[Object(o.b)(ff.b,{keyMap:{COMMENT:"c"},handlers:{COMMENT:this.handleClick}}),Object(o.b)(yf.c,{onRef:this.buttonRef,preset:"plain",className:n,onClick:this.handleClick,icon:Ng,label:e})]})}}]),n}(a.Component);Pg.propTypes={commentsShown:jl.a.bool,count:jl.a.number,zaInfos:jl.a.shape({id:jl.a.number,getCommentAction:jl.a.func}),onInstance:jl.a.func},Pg.defaultProps={zaInfos:{},onInstance:function(){return null}};var Lg=Pg,Mg=n(505);function Ug(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Bg=function(e){Object(ml.a)(n,e);var t=Ug(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handlePackup=function(){var t=e.props.onClose;window.scrollTo(0,e.originPageYOffset),t&&t()},e}return Object(vl.a)(n,[{key:"componentWillReceiveProps",value:function(e){"bottom"===e.commentPattern&&e.shown&&!this.props.shown&&(this.originPageYOffset=window.pageYOffset)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.containerClassName,r=e.shown,i=e.showPackupButton,a=e.parent,c=e.commentPattern,s=e.commentInputPosition,u=e.onClose,l=e.byComment,d=e.needLoadCommentPermission,f=e.isMobile,p=e.onOrderChange,h=e.onItemLike,b=e.onPaginationClick,v=e.autoFocus,m=e.onMount,g=e.zaInfo;return r?"bottom"===c?Object(o.b)(Mg.a,{className:t,containerClassName:n,autoFocus:v,parent:a,commentPattern:c,commentInputPosition:s,showPackupButton:i,handlePackupButton:this.handlePackup,needLoadCommentPermission:d,isMobile:f,onOrderChange:p,onItemLike:h,onPaginationClick:b,onMount:m,zaInfo:g}):Object(o.b)(Pt.b,{size:"fullPage",onClose:u,maskClosable:!1,children:r&&"fixed"===c&&Object(o.b)(Mg.a,{className:t,containerClassName:n,parent:a,commentPattern:c,byComment:l,needLoadCommentPermission:d,onOrderChange:p,onItemLike:h,onPaginationClick:b,onMount:m,zaInfo:g})}):null}}]),n}(a.Component);Bg.propTypes={className:jl.a.string,containerClassName:jl.a.string,byComment:jl.a.oneOfType([jl.a.number,jl.a.string]),parent:jl.a.object,shown:jl.a.bool,showPackupButton:jl.a.bool,commentPattern:jl.a.string,commentInputPosition:jl.a.oneOf(["top","bottom"]),onClose:jl.a.func,needLoadCommentPermission:jl.a.bool,isMobile:jl.a.bool,onOrderChange:jl.a.func,onItemLike:jl.a.func,onPaginationClick:jl.a.func,autoFocus:jl.a.bool,onMount:jl.a.func,zaInfo:jl.a.object},Bg.defaultProps={commentPattern:"fixed",showPackupButton:!0,commentInputPosition:"bottom"};var zg=Bg,Fg=function(e){return c.a.createElement(xl.a,e,c.a.createElement("path",{d:"M10.47 12.47l1.06 1.06a.25.25 0 0 1 0 .354L6.413 19h4.337a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-7.5a.25.25 0 0 1-.25-.25v-7.5a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25v4.335l5.116-5.115a.25.25 0 0 1 .354 0zM20.75 3a.25.25 0 0 1 .25.25v7.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25V6.413l-5.116 5.117a.25.25 0 0 1-.354 0l-1.06-1.06a.25.25 0 0 1 0-.354L17.585 5H13.25a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h7.5z"}))};Fg.defaultProps={name:"FullscreenEnter"};var Gg=Fg;function Vg(e){var t=e.handleClick;return Object(o.c)(K.a,{as:Ef.Flex,zaAction:"Unknown",zaText:"全屏编辑",zaType:"Button",aliginItem:"center",fontSize:14,color:"GBL05A",pr:"20px",lineHeight:"55px",css:{cursor:"pointer"},onClick:t,children:[Object(o.b)(Ef.Text,{mr:"10px",children:"全屏编辑"}),Object(o.b)(Gg,{text:!0,center:!0})]})}var Hg=n(52),qg=n(44);function Kg(e,t){Object(qg.a)(2,arguments);var n=Object(Hg.a)(e),r=Object(Hg.a)(t);return n.getTime()<r.getTime()}var Wg=n(67),Yg=n(420);function Qg(e,t){Object(qg.a)(2,arguments);var n=Object(Wg.a)(t);return Object(Yg.a)(e,6e4*n)}var Zg=n(679),Jg=n(172),Xg=function(e){return c.a.createElement(xl.a,e,c.a.createElement("path",{d:"M17 3a1 1 0 0 1 .89 1.458l-.058.097-1.537 2.305C19.405 8.202 21.5 11 21.5 14.43 21.5 19.093 17.609 22 12 22s-9.5-2.907-9.5-7.571c0-3.43 2.096-6.227 5.205-7.569L6.168 4.555a1 1 0 0 1 .72-1.55L7 3h10zm-5 5c-4.273 0-7.5 2.761-7.5 6.429C4.5 17.826 7.37 20 12 20s7.5-2.174 7.5-5.571C19.5 10.76 16.273 8 12 8zm2.47.97l1.06 1.06a.25.25 0 0 1 0 .354L12.914 13h2.336a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25H13v1h2.25a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25H13v.75a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25V18H8.75a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25H11v-1H8.75a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h2.336L8.47 10.384a.25.25 0 0 1 0-.354l1.06-1.06a.25.25 0 0 1 .354 0l1.94 1.939a.25.25 0 0 0 .353 0l1.94-1.94a.25.25 0 0 1 .353 0zM15.13 5H8.868l.668 1h4.928l.667-1z"}))};Xg.defaultProps={name:"Income"};var $g=Xg,eO=function(e){return c.a.createElement(xl.a,e,c.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"}))};eO.defaultProps={name:"Folder"};var tO=eO,nO=n(1105),rO=function(e){return c.a.createElement(xl.a,e,c.a.createElement("path",{d:"M12.9 11.433v-5.1a.9.9 0 1 0-1.8 0v6a.9.9 0 0 0 .9.9h4.8a.9.9 0 1 0 0-1.8h-3.9zM2.652 8.246a3.3 3.3 0 0 1 4.43-4.851 10.241 10.241 0 0 0-4.43 4.851zm14.266-4.851a3.3 3.3 0 0 1 4.43 4.851 10.241 10.241 0 0 0-4.43-4.851zM12 21.333a9 9 0 1 1 0-18 9 9 0 0 1 0 18z",fillRule:"evenodd"}))};rO.defaultProps={name:"Clock"};var oO=rO,iO=n(1098),aO=function(e){return c.a.createElement(xl.a,e,c.a.createElement("path",{d:"M10.75 13a.25.25 0 0 1 .25.25v7.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-4.337L3.883 21.53a.25.25 0 0 1-.354 0l-1.06-1.06a.25.25 0 0 1 0-.354L7.585 15 3.25 15a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h7.5zm9.72-10.53l1.06 1.06a.25.25 0 0 1 0 .354l-5.117 5.115L20.75 9a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-7.5a.25.25 0 0 1-.25-.25v-7.5a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25v4.335l5.116-5.115a.25.25 0 0 1 .354 0z"}))};aO.defaultProps={name:"FullscreenExit"};var cO=aO,sO=n(132);function uO(e,t,n){var r=!1,o=Rt()((function(){r=!1,e.apply(void 0,arguments)}),t,n);return Object.assign((function(){r=!0,o.apply(void 0,arguments)}),{cancel:o.cancel,flush:o.flush,pending:function(){return r}})}var lO=n(170),dO=function(){return!0},fO="REDIRECT_URL",pO="CHANGE_IFRAME_HEIGHT",hO=function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(bl.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 r=Object.assign({},e.defaultOption,n);this.beforeMessage=r.beforeMessage,this.onMessage=r.onMessage,window.addEventListener("message",this.onIframeMessage)};hO.defaultOption={beforeMessage:dO,onMessage:dO};var bO="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)(Rt()(r,100));return o.observe(e,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),r(),function(){o.disconnect()}};function vO(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var mO={auto:"auto",yes:"scroll",no:"hidden"},gO=function(e){Object(ml.a)(n,e);var t=vO(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={locationHref:"",iframeHeight:900},e.iframe=null,e.iframeMessenger=null,e.iframeObserver=null,e.handleIframeLoad=function(){e.iframe.contentDocument&&(e.unlistenResize=bO(e.iframe.contentDocument.body,(function(t){e.setState({iframeHeight:t.height})})))},e.handleMessage=function(t){var n=e.props.onMessage;t.type===pO&&e.setState({iframeHeight:t.payload}),t.type===fO&&(window.location.href=t.payload),n&&n(t)},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){this.setState({locationHref:window.location.href,timestamp:Date.now()}),this.iframeMessenger=new hO({beforeMessage:function(e){return e.origin.endsWith("zhihu.com")},onMessage:this.handleMessage})}},{key:"componentWillUnmount",value:function(){this.iframeMessenger.close(),this.unlistenResize&&this.unlistenResize()}},{key:"render",value:function(){var e=this,t=this.props,n=t.src,r=t.className,i=t.scrolling,a=t.withParentUrl,c=t.withTimestamp,s=this.state,u=s.locationHref,l=s.timestamp,d=s.iframeHeight,f=n.split("?"),p=Object(gt.a)(f,2),h=p[0],b=p[1],v=Object(se.parse)(b);return a&&(v.parent_url=u),c&&(v.ts=l),Object(o.b)("iframe",{className:rl()("Iframe",r),src:"".concat(h,"?").concat(Object(se.stringify)(v)),ref:function(t){return e.iframe=t},height:d,onLoad:this.handleIframeLoad,scrolling:i,style:{border:"none",display:"block",overflow:mO[i],width:"100%"}})}}]),n}(a.Component);gO.defaultProps={scrolling:"auto",withParentUrl:!0,withTimestamp:!1},gO.propTypes={className:jl.a.string,src:jl.a.string,scrolling:jl.a.oneOf(["auto","yes","no"]),onMessage:jl.a.func};var OO=gO;function yO(e,t){Object(qg.a)(2,arguments);var n=Object(Hg.a)(e),r=Object(Wg.a)(t);return n.setSeconds(r),n}var jO=n(215);function EO(e){Object(qg.a)(1,arguments);var t=Object(Hg.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 CO=n(418),wO={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function TO(e){return function(t){var n=t||{},r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var _O={date:TO({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:TO({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:TO({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},SO={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function AO(e){return function(t,n){var r,o=n||{};if("formatting"===(o.context?String(o.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=o.width?String(o.width):i;r=e.formattingValues[a]||e.formattingValues[i]}else{var c=e.defaultWidth,s=o.width?String(o.width):e.defaultWidth;r=e.values[s]||e.values[c]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function kO(e){return function(t,n){var r=String(t),o=n||{},i=o.width,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],c=r.match(a);if(!c)return null;var s,u=c[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth];return s="[object Array]"===Object.prototype.toString.call(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(l,(function(e){return e.test(u)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(l,(function(e){return e.test(u)})),s=e.valueCallback?e.valueCallback(s):s,{value:s=o.valueCallback?o.valueCallback(s):s,rest:r.slice(u.length)}}}var RO,IO={code:"en-US",formatDistance:function(e,t,n){var r;return n=n||{},r="string"==typeof wO[e]?wO[e]:1===t?wO[e].one:wO[e].other.replace("{{count}}",t),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r},formatLong:_O,formatRelative:function(e,t,n,r){return SO[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:AO({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:AO({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:AO({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:AO({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:AO({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:(RO={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(RO.matchPattern);if(!o)return null;var i=o[0],a=n.match(RO.parsePattern);if(!a)return null;var c=RO.valueCallback?RO.valueCallback(a[0]):a[0];return{value:c=r.valueCallback?r.valueCallback(c):c,rest:n.slice(i.length)}}),era:kO({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:kO({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:kO({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:kO({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:kO({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}},xO=n(419),NO=n(203);function DO(e){Object(qg.a)(1,arguments);var t=1,n=Object(Hg.a)(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function PO(e){Object(qg.a)(1,arguments);var t=Object(Hg.a)(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=DO(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=DO(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function LO(e){Object(qg.a)(1,arguments);var t=PO(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=DO(n);return r}function MO(e,t){Object(qg.a)(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,i=null==o?0:Object(Wg.a)(o),a=null==n.weekStartsOn?i:Object(Wg.a)(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=Object(Hg.a)(e),s=c.getUTCDay(),u=(s<a?7:0)+s-a;return c.setUTCDate(c.getUTCDate()-u),c.setUTCHours(0,0,0,0),c}function UO(e,t){Object(qg.a)(1,arguments);var n=Object(Hg.a)(e,t),r=n.getUTCFullYear(),o=t||{},i=o.locale,a=i&&i.options&&i.options.firstWeekContainsDate,c=null==a?1:Object(Wg.a)(a),s=null==o.firstWeekContainsDate?c:Object(Wg.a)(o.firstWeekContainsDate);if(!(s>=1&&s<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(r+1,0,s),u.setUTCHours(0,0,0,0);var l=MO(u,t),d=new Date(0);d.setUTCFullYear(r,0,s),d.setUTCHours(0,0,0,0);var f=MO(d,t);return n.getTime()>=l.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function BO(e,t){Object(qg.a)(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.firstWeekContainsDate,i=null==o?1:Object(Wg.a)(o),a=null==n.firstWeekContainsDate?i:Object(Wg.a)(n.firstWeekContainsDate),c=UO(e,t),s=new Date(0);s.setUTCFullYear(c,0,a),s.setUTCHours(0,0,0,0);var u=MO(s,t);return u}var zO=n(85),FO="midnight",GO="noon",VO="morning",HO="afternoon",qO="evening",KO="night";function WO(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+Object(zO.a)(i,2)}function YO(e,t){return e%60==0?(e>0?"-":"+")+Object(zO.a)(Math.abs(e)/60,2):QO(e,t)}function QO(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+Object(zO.a)(Math.floor(o/60),2)+n+Object(zO.a)(o%60,2)}var ZO={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 NO.a.y(e,t)},Y:function(e,t,n,r){var o=UO(e,r),i=o>0?o:1-o;if("YY"===t){var a=i%100;return Object(zO.a)(a,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):Object(zO.a)(i,t.length)},R:function(e,t){var n=PO(e);return Object(zO.a)(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return Object(zO.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(zO.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(zO.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 NO.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(zO.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(qg.a)(1,arguments);var n=Object(Hg.a)(e),r=MO(n,t).getTime()-BO(n,t).getTime();return Math.round(r/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):Object(zO.a)(o,t.length)},I:function(e,t,n){var r=function(e){Object(qg.a)(1,arguments);var t=Object(Hg.a)(e),n=DO(t).getTime()-LO(t).getTime();return Math.round(n/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Object(zO.a)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):NO.a.d(e,t)},D:function(e,t,n){var r=function(e){Object(qg.a)(1,arguments);var t=Object(Hg.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(zO.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(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Object(zO.a)(i,2);case"eo":return n.ordinalNumber(i,{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(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Object(zO.a)(i,t.length);case"co":return n.ordinalNumber(i,{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(zO.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?GO:0===o?FO: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?qO:o>=12?HO:o>=4?VO:KO,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 NO.a.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):NO.a.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Object(zO.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(zO.a)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):NO.a.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):NO.a.s(e,t)},S:function(e,t){return NO.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 YO(o);case"XXXX":case"XX":return QO(o);case"XXXXX":case"XXX":default:return QO(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return YO(o);case"xxxx":case"xx":return QO(o);case"xxxxx":case"xxx":default:return QO(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+WO(o,":");case"OOOO":default:return"GMT"+QO(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+WO(o,":");case"zzzz":default:return"GMT"+QO(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e,i=Math.floor(o.getTime()/1e3);return Object(zO.a)(i,t.length)},T:function(e,t,n,r){var o=(r._originalDate||e).getTime();return Object(zO.a)(o,t.length)}};function JO(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 XO(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 $O={p:XO,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),o=r[1],i=r[2];if(!i)return JO(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}}",JO(o,t)).replace("{{time}}",XO(i,t))}},ey=n(216),ty=["D","DD"],ny=["YY","YYYY"];function ry(e){return-1!==ty.indexOf(e)}function oy(e){return-1!==ny.indexOf(e)}function iy(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 ay=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,cy=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,sy=/^'([^]*?)'?$/,uy=/''/g,ly=/[a-zA-Z]/;function dy(e,t,n){Object(qg.a)(2,arguments);var r=String(t),o=n||{},i=o.locale||IO,a=i.options&&i.options.firstWeekContainsDate,c=null==a?1:Object(Wg.a)(a),s=null==o.firstWeekContainsDate?c:Object(Wg.a)(o.firstWeekContainsDate);if(!(s>=1&&s<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=i.options&&i.options.weekStartsOn,l=null==u?0:Object(Wg.a)(u),d=null==o.weekStartsOn?l:Object(Wg.a)(o.weekStartsOn);if(!(d>=0&&d<=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 f=Object(Hg.a)(e);if(!Object(CO.a)(f))throw new RangeError("Invalid time value");var p=Object(ey.a)(f),h=Object(xO.a)(f,p),b={firstWeekContainsDate:s,weekStartsOn:d,locale:i,_originalDate:f},v=r.match(cy).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,$O[t])(e,i.formatLong,b):e})).join("").match(ay).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return fy(n);var a=ZO[r];if(a)return!o.useAdditionalWeekYearTokens&&oy(n)&&iy(n,t,e),!o.useAdditionalDayOfYearTokens&&ry(n)&&iy(n,t,e),a(h,n,i.localize,b);if(r.match(ly))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("");return v}function fy(e){return e.match(sy)[1].replace(uy,"'")}var py=n(514),hy=n.n(py),by=n(278),vy=n.n(by),my=n(445),gy=function(e){return c.a.createElement(xl.a,e,c.a.createElement("path",{d:"M13.8 4.903h-3.6v.943c0 .314-.082.609-.228.864H13.8V4.903zm3.6 0h2.85c.414 0 .75.333.75.735v.337a.742.742 0 0 1-.75.735H17.4V4.903zm-10.8 0H3.75a.742.742 0 0 0-.75.735v.337c0 .404.336.735.75.735h3.082a1.721 1.721 0 0 1-.232-.864v-.943zM3 9.252c0-.407.335-.735.75-.735h16.5c.414 0 .75.33.75.737v10.274a.742.742 0 0 1-.75.736H3.75A.74.74 0 0 1 3 19.53V9.252zm4.5 1.975v1.807h1.8v-1.807H7.5zm0 4.516v1.807h1.8v-1.807H7.5zm3.6 0v1.807h1.8v-1.807h-1.8zm3.6 0v1.807h1.8v-1.807h-1.8zm-3.6-4.516v1.807h1.8v-1.807h-1.8zm3.6 0v1.807h1.8v-1.807h-1.8zM7.5 4.893c0-.494.4-.893.9-.893.497 0 .9.4.9.893V6.72c0 .494-.4.894-.9.894a.898.898 0 0 1-.9-.894V4.893zm7.2 0c0-.494.4-.893.9-.893.497 0 .9.4.9.893V6.72c0 .494-.4.894-.9.894a.898.898 0 0 1-.9-.894V4.893z"}))};gy.defaultProps={name:"Calendar"};var Oy=gy;function yy(e,t){Object(qg.a)(2,arguments);var n=Object(Hg.a)(e),r=Object(Wg.a)(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function jy(e,t){Object(qg.a)(2,arguments);var n=Object(Wg.a)(t);return yy(e,12*n)}function Ey(e,t){Object(qg.a)(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,i=null==o?0:Object(Wg.a)(o),a=null==n.weekStartsOn?i:Object(Wg.a)(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=Object(Hg.a)(e),s=c.getDay(),u=(s<a?7:0)+s-a;return c.setDate(c.getDate()-u),c.setHours(0,0,0,0),c}var Cy=n(1052);function wy(e){Object(qg.a)(1,arguments);var t=Object(Hg.a)(e),n=t.getDay();return n}function Ty(e,t){Object(qg.a)(2,arguments);var n=Object(jO.a)(e),r=Object(jO.a)(t);return n.getTime()===r.getTime()}var _y=n(677);function Sy(e,t){Object(qg.a)(2,arguments);var n=Object(Hg.a)(e),r=Object(Hg.a)(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function Ay(e){Object(qg.a)(1,arguments);var t=Object(Hg.a)(e),n=t.getDate();return n}var ky=function(e){return c.a.createElement(xl.a,e,c.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"}))};ky.defaultProps={name:"DoubleArrowLeft"};var Ry=ky,Iy=n(1101),xy=function(e){return c.a.createElement(xl.a,e,c.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"}))};xy.defaultProps={name:"DoubleArrowRight"};var Ny=xy;function Dy(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Py=["日","一","二","三","四","五","六"],Ly=function(e){Object(ml.a)(n,e);var t=Dy(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={calendarDate:e.props.defaultCalendarDate||(Array.isArray(e.props.value)?e.props.value[0]:e.props.value),hoveringDate:null,now:new Date},e.handlePrevYearClick=function(){var t=jy(e.state.calendarDate,-1);e.setState({calendarDate:t}),e.props.onCalendarDateChange(t)},e.handlePrevMonthClick=function(){var t=yy(e.state.calendarDate,-1);e.setState({calendarDate:t}),e.props.onCalendarDateChange(t)},e.handleNextMonthClick=function(){var t=yy(e.state.calendarDate,1);e.setState({calendarDate:t}),e.props.onCalendarDateChange(t)},e.handleNextYearClick=function(){var t=jy(e.state.calendarDate,1);e.setState({calendarDate:t}),e.props.onCalendarDateChange(t)},e.handleDayClick=function(t){e.setState({calendarDate:t}),e.props.onCalendarDateChange(t),e.props.onChange(t)},e.handleDayHover=function(t){e.setState({hoveringDate:t}),e.props.onHover(t)},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.weekStartsOn,a=t.value,c=t.disabledDate,s=t.showToday,u=t.showPrevMonth,l=t.showPrevYear,d=t.showNextMonth,f=t.showNextYear,p=this.state,h=p.calendarDate,b=p.hoveringDate,v=p.now,m=Ey(function(e){Object(qg.a)(1,arguments);var t=Object(Hg.a)(e);return t.setDate(1),t.setHours(0,0,0,0),t}(h),{weekStartsOn:r}),g=function(e,t){Object(qg.a)(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,i=null==o?0:Object(Wg.a)(o),a=null==n.weekStartsOn?i:Object(Wg.a)(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var c=Object(Hg.a)(e),s=c.getDay(),u=6+(s<a?-7:0)-(s-a);return c.setHours(0,0,0,0),c.setDate(c.getDate()+u),c}(function(e){Object(qg.a)(1,arguments);var t=Object(Hg.a)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}(h),{weekStartsOn:r}),O=Object(i.a)(Array(Object(Cy.a)(g,m)+1)).map((function(e,t){return Object(Zg.a)(m,t)})).reduce((function(e,t){var n=function(e,t,n){Object(qg.a)(2,arguments);var r=Ey(e,n),o=Ey(t,n),i=r.getTime()-Object(ey.a)(r),a=o.getTime()-Object(ey.a)(o);return Math.round((i-a)/6048e5)}(t,m,{weekStartsOn:r});return e[n]=e[n]?[].concat(Object(i.a)(e[n]),[t]):[t],e}),[]),y=O[0].map(wy),j=Array.isArray(a),E=s;return Object(o.c)("div",{className:rl()("Calendar",n,{"Calendar--hasBottomTool":E}),children:[Object(o.c)("div",{className:"Calendar-topTool",children:[l&&Object(o.b)("button",{className:"Calendar-topToolButton Calendar-topToolButton--prevYear",onClick:this.handlePrevYearClick,children:Object(o.b)(Ry,{size:20,center:!0})}),u&&Object(o.b)("button",{className:"Calendar-topToolButton Calendar-topToolButton--prevMonth",onClick:this.handlePrevMonthClick,children:Object(o.b)(Iy.a,{size:20,center:!0})}),Object(o.b)("div",{className:"Calendar-topToolDate",children:dy(h,"yyyy 年 M 月")}),d&&Object(o.b)("button",{className:"Calendar-topToolButton Calendar-topToolButton--nextMonth",onClick:this.handleNextMonthClick,children:Object(o.b)(Yh.a,{size:20,center:!0})}),f&&Object(o.b)("button",{className:"Calendar-topToolButton Calendar-topToolButton--nextYear",onClick:this.handleNextYearClick,children:Object(o.b)(Ny,{size:20,center:!0})})]}),Object(o.c)("table",{className:"Calendar-table",cellSpacing:0,children:[Object(o.b)("thead",{className:"Calendar-thead",children:Object(o.b)("tr",{children:y.map((function(e){return Object(o.b)("th",{className:"Calendar-weekName",children:Py[e]},e)}))})}),Object(o.b)("tbody",{children:O.map((function(t,n){return Object(o.b)("tr",{children:t.map((function(t,n){var r=c(t),i=j?Ty(t,a[0])||Ty(t,a[1]):Ty(t,a),s=!1;if(j){var u=function(e){var t,n;if(Object(qg.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(Hg.a)(e);(void 0===n||n>t||isNaN(t))&&(n=t)})),n||new Date(NaN)}(a),l=function(e){var t,n;if(Object(qg.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(Hg.a)(e);(void 0===n||n<t||isNaN(t))&&(n=t)})),n||new Date(NaN)}(a);s=Object(_y.a)(t,u)>0&&Object(_y.a)(l,t)>0}return Object(o.b)("td",{className:rl()("Calendar-day",{"is-hovered":Ty(t,b),"is-today":Ty(t,v),"is-disabled":r,"is-not-this-month":!Sy(t,h),"is-input-date":i,"is-in-range":s}),onClick:function(){r||e.handleDayClick(t)},onMouseEnter:function(){r||e.handleDayHover(t)},onMouseLeave:function(){r||e.handleDayHover(null)},children:Ay(t)},n)}))},n)}))})]}),E&&Object(o.b)("div",{className:"Calendar-bottomTool",children:s&&Object(o.b)("button",{className:"Calendar-todayButton",onClick:function(){return e.handleDayClick(v)},disabled:c(v),children:"今天"})})]})}}]),n}(a.Component);Ly.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},Ly.propTypes={defaultCalendarDate:jl.a.instanceOf(Date),value:jl.a.oneOfType([jl.a.instanceOf(Date),jl.a.arrayOf(jl.a.instanceOf(Date))]),weekStartsOn:jl.a.number,disabledDate:jl.a.func,onChange:jl.a.func,onHover:jl.a.func,showToday:jl.a.bool,showPrevMonth:jl.a.bool,showPrevYear:jl.a.bool,showNextMonth:jl.a.bool,showNextYear:jl.a.bool};var My=Ly;function Uy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var By=function(e){Object(ml.a)(n,e);var t=Uy(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={isFocused:!1},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.large,i=t.value,a=t.onChange,c=t.isButtonActive,s=t.toggler,u=t.disabledDate,l=t.getContainer,d=this.state.isFocused;return Object(o.b)(Of.a,{className:rl()("DatePicker",n),toggler:s||Object(o.c)(my.a,{large:r,className:rl()("DatePicker-Button",{"is-active":d||c}),children:[Object(o.b)(Oy,{center:!0,size:20}),dy(i,"yyyy/MM/dd")]}),onOpen:function(){e.setState({isFocused:!0})},onClose:function(){e.setState({isFocused:!1})},ref:function(t){e.popover=t},placement:"bottom",arrowed:!0,preventCloseOnTarget:!0,getContainer:l,children:Object(o.b)(My,{value:i,onChange:function(t){e.popover.close(),a(t)},disabledDate:u})})}}]),n}(a.Component);function zy(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}By.propTypes={toggler:jl.a.element,disabledDate:jl.a.func};var Fy=hy()(0,24).map((function(e){return vy()(e,2,"0")})),Gy=hy()(0,60).map((function(e){return vy()(e,2,"0")})),Vy=function(e){Object(ml.a)(n,e);var t=zy(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={value:yO(e.props.value,0)},e}return Object(vl.a)(n,[{key:"handleChange",value:function(e,t){var n=this.props.onChange;this.setState({value:e}),n(e,t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.large,i=t.min,a=t.max,c=t.onRef,s=this.state.value;return Object(o.c)("div",{className:rl()("DateTimePicker",n),ref:c,children:[Object(o.b)(By,{large:r,value:s,disabledDate:function(e){return!(!i||!Kg(e,jO.a(i)))||!(!a||!function(e,t){Object(qg.a)(2,arguments);var n=Object(Hg.a)(e),r=Object(Hg.a)(t);return n.getTime()>r.getTime()}(e,jO.a(a)))},onChange:function(t){e.handleChange(Nr()((function(e){return function(e,t){Object(qg.a)(2,arguments);var n=Object(Hg.a)(e),r=Object(Wg.a)(t);return isNaN(n)?new Date(NaN):(n.setFullYear(r),n)}(e,t.getFullYear())}),(function(e){return function(e,t){Object(qg.a)(2,arguments);var n=Object(Hg.a)(e),r=Object(Wg.a)(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var c=EO(a);return n.setMonth(r,Math.min(i,c)),n}(e,t.getMonth())}),(function(e){return function(e,t){Object(qg.a)(2,arguments);var n=Object(Hg.a)(e),r=Object(Wg.a)(t);return n.setDate(r),n}(e,t.getDate())}))(s),{date:t})}}),Object(o.b)(xp.b,{large:r,value:dy(s,"HH"),onChange:function(t){return e.handleChange(function(e,t){Object(qg.a)(2,arguments);var n=Object(Hg.a)(e),r=Object(Wg.a)(t);return n.setHours(r),n}(s,t),{hours:t})},children:Fy.map((function(e){return Object(o.b)(xp.a,{value:e},e)}))}),Object(o.b)("span",{className:"DateTimePicker-label",children:"时"}),Object(o.b)(xp.b,{large:r,value:dy(s,"mm"),onChange:function(t){return e.handleChange(function(e,t){Object(qg.a)(2,arguments);var n=Object(Hg.a)(e),r=Object(Wg.a)(t);return n.setMinutes(r),n}(s,t),{minutes:t})},children:Gy.map((function(e){return Object(o.b)(xp.a,{value:e},e)}))}),Object(o.b)("span",{className:"DateTimePicker-label",children:"分"})]})}}]),n}(a.Component);var Hy=function(e){var t=e.shown,n=e.onClose,r=e.onSubmit,i=Object(a.useCallback)((function(e){var t=e.type,o=e.payload;"browser/closeCurrentPage"!==t?"editor/submitAttachment"!==t||r(o.files):n()}),[r,n]);return Object(o.b)(Wh.b,{className:"BaiduFileSelector",size:"large",onClose:n,children:t&&Object(o.b)("div",{className:"BaiduFileSelector-content",children:Object(o.b)(OO,{className:"BaiduFileSelector-iframe",src:"https://www.zhihu.com/appview/editor/attachment/baidu",onMessage:i})})})},qy="textAnswer",Ky="videoAnswer",Wy=[{key:qy,name:"图文回答"},{key:Ky,name:"视频回答"}];function Yy(e,t){var n=e.activeTabKey,r=e.onChange;return Object(o.b)(jf.b,{children:Wy.map((function(e){var i=e.key,a=e.name;return Object(o.b)(jf.a,{css:{padding:"0 10px",":first-of-type":{paddingLeft:20}},children:Object(o.b)(Ef.Text,{ref:i===Ky?t:null,onClick:function(){return r(i)},css:function(e){return Object.assign({color:e.colors.GBK03A,cursor:"pointer"},n===i&&{fontWeight:"bold",borderBottom:"4px solid ".concat(e.colors.GBL01A)})},children:a})},i)}))})}var Qy=c.a.forwardRef(Yy);function Zy(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Jy=function(e){Object(ml.a)(n,e);var t=Zy(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleHide=function(){w.a.set("AnswerOrg::know",!0),e.props.onClose()},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.shown,n=e.onClose;return Object(o.b)(Pt.b,{title:"机构帐号提问规则",subtitle:"这是一个「机构提问」,请在回答前了解以下规则",onClose:n,children:t&&Object(o.c)("div",{children:[Object(o.c)("ul",{className:"AnswerModal-list",children:[Object(o.b)("li",{children:"1. 提问机构如需使用你的回答,由提问机构联系你,共同商定确认使用条件。"}),Object(o.b)("li",{children:"2.「机构提问」下的回答,站内传播与社区公共提问下的回答有所区别。"}),Object(o.b)("li",{children:"3. 提问机构可能「隐藏」回答,被「隐藏」回答不在社区内流通。"})]}),Object(o.b)("a",{className:"AnswerModal-moreLink",href:"/org-intro#org-question",target:"_blank",children:"了解更多"}),Object(o.c)(Pt.a,{direction:"horizontal",children:[Object(o.b)(yf.c,{onClick:this.handleHide,children:"不再显示"}),Object(o.b)(yf.c,{color:"blue",preset:"primary",onClick:n,children:"知道了"})]})]})})}}],[{key:"getKnown",value:function(){return w.a.get("AnswerOrg::know")}}]),n}(a.Component);function Xy(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var $y=function(e){Object(ml.a)(n,e);var t=Xy(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleHide=function(){w.a.set("AnswerBrand::know",!0),e.props.onClose()},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.shown,n=e.onClose;return Object(o.b)(Wh.b,{title:"品牌提问规则",subtitle:"这是一个「品牌提问」,请在回答前了解:",onClose:n,children:t&&Object(o.c)("div",{children:[Object(o.b)("p",{children:"「品牌提问」由品牌方管理,回答由品牌方筛选后展示,传播与社区提问有所区别。回答著作权归作者所有。"}),Object(o.b)("a",{className:"AnswerModal-moreLink",href:"/introduction/brand_question",target:"_blank",children:"了解品牌提问"}),Object(o.c)(Wh.a,{direction:"horizontal",children:[Object(o.b)(yf.c,{onClick:this.handleHide,children:"知道了,继续回答"}),Object(o.b)(yf.c,{color:"blue",preset:"primary",onClick:n,children:"取消"})]})]})})}}],[{key:"getKnown",value:function(){return w.a.get("AnswerBrand::know")}}]),n}(a.Component),ej=n(423);function tj(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object(Ot.useDispatch)(),r=Array.isArray(e),o=r?e:[e];return Object(a.useMemo)((function(){return r?o.map((function(e){return Object(Lt.bindActionCreators)(e,n)})):Object(Lt.bindActionCreators)(o[0],n)}),[n].concat(Object(i.a)(o),Object(i.a)(t)))}var nj=n(279);var rj=function(e){var t=e.className,n=e.text,r=e.onFiles,i=e.zaClickId,c=e.multiple,s=void 0===c||c,u=Object(a.useRef)(null);return Object(o.c)(o.a,{children:[Object(o.b)(yf.c,{className:rl()("VideoUploadButton",t),preset:"primary",color:"blue",onClick:function(e){i&&q.a.trackEvent(e.target,{id:i,action:"Upload"}),u.current.click()},children:n}),Object(o.b)("input",{type:"file",className:"VideoUploadButton-fileInput",ref:u,onChange:function(){return r(u.current.files,"Add")},accept:le.a.VIDEO.join(","),multiple:s})]})},oj=[{value:"original",label:"原创"},{value:"reprint",label:"转载"}],ij="https://pic2.zhimg.com/v2-feb96045745dac939aa2a900c6d6845d.jpg";function aj(e){q.a.trackEvent(null,{id:9382,action:"StatusReport",path:[{module:"Content"}]},{module:[{card:{content:[{type:"Zvideo",id:String(e)}]}}],status:{result:"Success",event:{action:"Upload"}}})}Object(qn.a)("DraftOutline");var cj=function(e){return"vessay_outline:".concat(e)},sj=n(1058),uj=function(e){var t=e.dataTransfer;return t.items?Array.from(t.items).filter((function(e){return"file"===e.kind})).map((function(e){return e.getAsFile()})):Array.from(t.files)},lj=function(){return Object(o.b)("div",{className:"VideoUploadHint-footer",children:Object(o.c)("p",{children:["请不要添加无关的视频,详情查看"," ",Object(o.b)("a",{href:"https://www.zhihu.com/question/20118966",target:"_blank",rel:"noopener noreferrer",children:"知乎视频使用规范"}),Object(o.b)("br",{}),"上传视频,即代表你同意",Object(o.b)("a",{href:"https://www.zhihu.com/term/video",target:"_blank",rel:"noopener noreferrer",children:"《知乎视频用户协议》"})]})})};var dj=function(e){var t=e.onFiles,n=e.enableZVideoListSelectorEntry,r=e.multiple,i=e.onOpenZVideoList;return Object(o.c)("div",{className:"VideoUploadHint",onDragEnter:function(e){return e.preventDefault()},onDragOver:function(e){return e.preventDefault()},onDrop:function(e){e.preventDefault();var n=uj(e);t(n,"Drag")},children:[Object(o.b)("div",{className:"VideoUploadHint-iconBg",children:Object(o.b)(sj.a,{className:"VideoUploadHint-icon"})}),Object(o.b)("div",{className:"VideoUploadHint-title",children:"拖放要上传的视频文件"}),Object(o.b)(rj,{className:"VideoUploadHint-button",text:"上传视频",onFiles:t,zaClickId:7036,multiple:r}),r&&Object(o.b)("div",{className:"VideoUploadHint-uploadHint",children:"一次最多上传 20 个视频"}),n&&Object(o.c)("div",{className:"VideoUploadHint-listEntry",onClick:function(e){q.a.trackEvent(e.target,{id:8622,action:"Click"},{button:{text:"选择已发布的视频"}}),i()},children:["选择已发布的视频 ",Object(o.b)(Yh.a,{center:!0})]}),Object(o.b)(lj,{})]})},fj=n(280),pj=n(39),hj=n.n(pj),bj=function(e){return c.a.createElement(xl.a,e,c.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"}))};bj.defaultProps={name:"CheckboxOn"};var vj=bj,mj=function(e){return c.a.createElement(xl.a,e,c.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"}))};mj.defaultProps={name:"CheckboxOff"};var gj=mj;var Oj=function(e){var t=e.style,n=e.className,r=e.id,o=e.name,i=e.size,c=void 0===i?20:i,s=e.checked,u=e.onChange,l=e.disabled,d=Object(a.useState)(!1),f=hj()(d,2),p=f[0],h=f[1];return Object(Md.c)("label",{style:t,className:rl()("Checkbox",n,{"Checkbox--focused":p,"Checkbox--disabled":l})},s?Object(Md.c)(vj,{size:c,className:"Checkbox-iconOn"}):Object(Md.c)(gj,{size:c,className:"Checkbox-iconOff"}),Object(Md.c)("input",{className:"Checkbox-input",id:r,name:o,type:"checkbox",checked:s,onFocus:function(){return h(!0)},onBlur:function(){return h(!1)},onChange:u,disabled:l}))};function yj(e){var t=e.item,n=e.onCheck,r=Object(a.useState)(!1),i=Object(gt.a)(r,2),c=i[0],s=i[1],u=t.id,l=t.title,d=t.description,f=t.imageUrl,p=t.publishedAt,h=t.video,b=null==h?void 0:h.duration;return Object(o.c)(Ef.Flex,{p:"20px 24px",justifyContent:"space-between",alignItems:"center",children:[Object(o.c)(Ef.Flex,{flex:1,children:[Object(o.c)(Ef.Box,{width:112,height:70,flexShrink:0,marginRight:"16px",css:{position:"relative",borderRadius:3,overflow:"hidden"},children:[Object(o.b)(Ef.Image,{width:"100%",height:"100%",src:f,alt:"",css:{objectFit:"cover"}}),Object(o.b)(Ef.Text,{fontSize:12,lineHeight:"14px",color:"GBK99A",css:{position:"absolute",bottom:4,right:7,textShadow:"0 0 5px rgba(0,0,0,0.5)"},children:Object(nj.b)(b)})]}),Object(o.c)(Ef.Flex,{flexDirection:"column",justifyContent:"center",flex:1,children:[Object(o.b)(Ef.Text,{fontSize:14,fontWeight:500,lineHeight:"20px",color:"GBK03A",css:[Object(Et.d)(1)],children:l}),Object(o.b)(Ef.Text,{mt:"6px",fontSize:14,lineHeight:"20px",color:"GBK04A",css:[Object(Et.d)(1)],children:d}),Object(o.b)(Ef.Text,{mt:"8px",fontSize:13,lineHeight:"16px",color:"GBK06A",children:Object(ci.toRelativeString)(p)})]})]}),Object(o.b)(Oj,{css:{marginLeft:16,flexShrink:0},checked:c,onChange:function(e){s(e.currentTarget.checked),n(u)}})]})}function jj(e){var t,n=e.onClose,r=e.onSubmit,i=Object(a.useState)([]),c=Object(gt.a)(i,2),s=c[0],u=c[1],l=Object(Ot.useSelector)((function(e){return e.zvideos.insertable}))||{},d=l.isLoading,f=l.data,p=l.paging,h=Object(Ot.useDispatch)(),b=Object(a.useCallback)((function(){h(_c())}),[h]),v=Object(a.useCallback)((function(e){s.includes(e)?u(s.filter((function(t){return t!==e}))):u(s.concat([e]))}),[s]);return Object(o.c)(Ef.Box,{height:688,children:[Object(o.b)(Ef.Box,{m:"40px auto",fontSize:24,fontWeight:500,lineHeight:"30px",color:"GBK02A",textAlign:"center",children:"选择已发布的视频"}),Object(o.b)(Bv.b,{css:{marginBottom:100},onLoad:b,isLoading:null!=d&&d,isDrained:null!==(t=null==p?void 0:p.isEnd)&&void 0!==t&&t,getContainer:function(e){return e.parentElement.parentElement.parentElement},children:f.map((function(e,t){return Object(o.b)(fj.a,{children:Object(o.b)(yj,{item:e,onCheck:v})},t)}))}),Object(o.c)(Ef.Flex,{bg:"GBK99A",p:"32px 25px",width:"100%",height:100,justifyContent:"center",css:{position:"absolute",left:0,right:0,bottom:0},children:[Object(o.b)(yf.c,{css:{flex:1},onClick:n,children:"返回"}),Object(o.b)(yf.c,{disabled:0===s.length,css:{flex:1,marginLeft:18},preset:"primary",color:"blue",onClick:function(){r(s),n()},children:"添加"})]})]})}var Ej=n(548),Cj=n(247),wj=n.n(Cj),Tj=Object(W.isBrowser)()?a.useLayoutEffect:function(){},_j=function(e){var t=e.onKeyDown,n=void 0===t?Am.a:t,r=e.onChange,i=e.value,c=e.large,s=e.className,u=e.autoHeight,l=e.autoHeightOnInit,d=e.shiftEnter,f=Object(_e.a)(e,["onKeyDown","onChange","value","large","className","autoHeight","autoHeightOnInit","shiftEnter"]),p=Object(a.useRef)(),h=function(){var e=p.current;if(e){e.style.height="1px";var t=Math.max(e.scrollHeight,25);e.style.height="".concat(t,"px")}};Tj((function(){if(!u){var e=c?100:0,t=p.current;t.style.height="1px",t.style.height="".concat(wj()(t.scrollHeight,e,230),"px")}}),[i,c,u]);var b=Object(a.useCallback)((function(e){(d&&"Enter"===e.key&&!e.shiftKey||!c&&"Enter"===e.key)&&(h(),e.preventDefault()),n(e)}),[c,n,d]),v=Object(a.useCallback)((function(e){u&&h(),r&&r(e)}),[r,u]);return Object(a.useEffect)((function(){l&&u&&h()}),[l,u]),Object(o.b)("textarea",Object.assign({},f,{ref:p,onKeyDown:b,value:i,onChange:v,className:rl()("AutoSizeTextArea",s)}))},Sj=Object.assign;var Aj=function(e){return c.a.createElement(Nm.a,Sj({width:"16",height:"16",viewBox:"0 0 16 16"},e),c.a.createElement("g",{fill:"none",fillRule:"evenodd"},c.a.createElement("circle",{cx:"8",cy:"8",r:"8",fill:"#06F"}),c.a.createElement("path",{stroke:"#fff",d:"M4.5 8L7 10.5l4.5-5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})))},kj=Object.assign;var Rj=function(e){return c.a.createElement(Nm.a,kj({width:"16",height:"16",viewBox:"0 0 16 16"},e),c.a.createElement("circle",{cx:"8",cy:"8",r:"7.25",fill:"#fff",stroke:"#999",fillRule:"evenodd",strokeWidth:"1.5"}))},Ij=Object.assign;var xj=function(e){return c.a.createElement(Nm.a,Ij({width:"16",height:"16",viewBox:"0 0 16 16"},e),c.a.createElement("g",{fill:"none",fillRule:"evenodd"},c.a.createElement("circle",{cx:"8",cy:"8",r:"8",fill:"#3a76d0"}),c.a.createElement("path",{stroke:"#ebebeb",d:"M4.5 8L7 10.5l4.5-5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})))},Nj=Object.assign;var Dj=function(e){return c.a.createElement(Nm.a,Nj({width:"16",height:"16",viewBox:"0 0 16 16"},e),c.a.createElement("circle",{cx:"8",cy:"8",r:"7.25",fill:"#2e2e2e",stroke:"#646464",fillRule:"evenodd",strokeWidth:"1.5"}))},Pj=function(e){var t=e.checked,n=Object(_e.a)(e,["checked"]),r=function(e,t){return e?t?xj:Dj:t?Aj:Rj}(Object(Ot.useSelector)((function(e){return"dark"===e.env.theme})),t);return Object(o.c)(o.a,{children:[Object(o.b)("input",Object.assign({type:"checkbox",checked:t},n)),Object(o.b)(r,{className:"CheckboxIcon"})]})},Lj=function(e){return c.a.createElement(xl.a,e,c.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 10zm0-1.25a8.75 8.75 0 1 0 0-17.5 8.75 8.75 0 0 0 0 17.5zm0-2.431a1.17 1.17 0 0 1-.846-.344 1.143 1.143 0 0 1-.354-.856c0-.328.118-.61.354-.847.236-.235.518-.353.846-.353.328 0 .61.115.846.344.236.23.354.515.354.856 0 .342-.118.626-.354.856-.236.229-.518.344-.846.344zm1.534-6.228c-.163.154-.755.587-.843 1.532-.09.518-.377.777-.857.777a.86.86 0 0 1-.63-.254c-.17-.17-.255-.421-.255-.755 0-.419 0-1.055.684-1.895.206-.231.485-.506.835-.825.307-.28 1.158-.941 1.152-1.674a1.357 1.357 0 0 0-.428-1.01c-.286-.273-.655-.41-1.106-.41-.528 0-.917.138-1.166.414-.25.277-.46.684-.634 1.222-.163.563-.472.845-.928.845a.896.896 0 0 1-.68-.295c-.185-.197-.278-.41-.278-.64 0-.473.147-.952.44-1.438.292-.486.72-.888 1.28-1.207C10.683 6.16 11.339 6 12.087 6c.696 0 2.318.166 3.078 1.487.291.459.436.957.436 1.495 0 .423-.134 1.218-.839 1.94-.228.23-.637.62-1.227 1.169z",fillRule:"evenodd"}))};Lj.defaultProps={name:"HelpOutline"};var Mj=Lj,Uj=n(1102),Bj=function(e){return c.a.createElement(xl.a,e,c.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"}))};Bj.defaultProps={name:"Sync"};var zj=Bj,Fj=n(402),Gj=n(180);function Vj(e){var t=String(e);return t.length<2&&(t="0"+t),t}function Hj(e){if(!isFinite(e))return"";var t=(e=Math.floor(e))%60,n=Math.floor(e/60);return"".concat(Vj(n),":").concat(Vj(t))}function qj(e){var t=e.campaign,n=e.selected,r=e.onSelect,i=t.title,a=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:i}),Object(o.b)("div",{className:"VideoContributableCampaignModalCampaign-description",children:a})]}),Object(o.b)(Gj.a,{checked:n,onChange:r,size:16})]})}var Kj=function(e){var t=e.shown,n=e.onClose,r=e.defaultCampaignId,i=e.campaignList,c=e.onSubmit,s=Object(a.useState)((function(){return r?i.find((function(e){return e.id===r})):null})),u=Object(gt.a)(s,2),l=u[0],d=u[1];return Object(o.b)(Wh.b,{title:"选择活动",size:"large",onClose:n,children:t&&Object(o.c)(o.a,{children:[Object(o.b)("div",{className:"VideoContributableCampaignModal-list",children:i.map((function(e){return Object(o.b)(qj,{campaign:e,selected:(null==l?void 0:l.id)===e.id,onSelect:function(){d((null==l?void 0:l.id)===e.id?null:e)}},e.id)}))}),Object(o.c)(Wh.a,{direction:"horizontal",children:[Object(o.b)(yf.c,{onClick:n,children:"返回"}),Object(o.b)(yf.c,{preset:"primary",color:"blue",onClick:function(){c(l)},children:"确定"})]})]})})},Wj=Object(G.a)("club",["GET","JOIN","LEAVE","UPDATE","REQUEST_JOIN"]),Yj=function(e){return{API:{types:Wj.GET,method:"GET",endpoint:"clubs/".concat(e),fetchOptions:{credentials:"include"}},schema:no.a.CLUB,meta:{id:e}}};function Qj(e){var t=e.club,n=t.id,r=t.name,i=t.description,a=t.avatar,c=t.isJoined,s=t.joinType,u=t.postCount,l=t.allowSync,d=e.selected,f=e.onSelect,p=e.handleJoinButtonClick;return Object(o.c)("div",{className:"VideoSyncToClubModalItem",children:[Object(o.c)(Ef.Flex,{css:{width:"calc(100% - ".concat(c?20:92,"px)")},children:[Object(o.b)("img",{src:a,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:i}}),Object(o.c)("div",{className:"VideoSyncToClubModalItem-data",children:[u,"条内容"]})]})]}),c?Object(o.b)(Gj.a,{checked:d,onChange:f,size:16,disabled:!l}):Object(o.b)(yf.c,{preset:"secondary",color:"blue",onClick:function(){return p(n,s)},children:"all"===s?"加入圈子":"申请加入"})]})}var Zj=function(e){var t=e.shown,n=e.onClose,r=e.selectedClub,i=e.onSelectClub,c=Object(a.useState)(r),s=Object(gt.a)(c,2),u=s[0],l=s[1],d=Object(a.useState)(""),f=Object(gt.a)(d,2),p=f[0],h=f[1],b=Object(a.useState)(""),v=Object(gt.a)(b,2),m=v[0],g=v[1],O=Object(Ot.useSelector)((function(e){return e.club.explore.candidateSyncClubs})),y=Object(Ot.useSelector)((function(e){var t;return(null===(t=e.search)||void 0===t?void 0:t.clubentityByQuery[m])||{isFetching:!1,isDrained:!1,ids:[]}})),j=y.isFetching,E=y.isDrained,C=y.ids,w=Object(Ot.useSelector)((function(e){return e.entities})),T=w.searchClub,_={data:C.filter((function(e){return Boolean(e)})).map((function(e){var t=T[e]||{},n=t.object;return Object.assign({},t,{object:(w.clubs||{})[n]})})),isLoading:j,paging:{isEnd:E}},S=Object(Ot.useDispatch)();Object(a.useEffect)((function(){r||l(null)}),[r]);var A=Object(a.useRef)(null),k=Object(a.useCallback)((function(){return A.current.parentElement}),[A]),R=function(){(null==A?void 0:A.current)&&(A.current.parentElement.scrollTop=0)},I=Object(a.useCallback)((function(e){var t=e.target.value;h(t),m&&!t&&(g(""),R())}),[m]),x=Object(Ot.useSelector)((function(e){var t;return null===(t=e.search)||void 0===t?void 0:t.nextOffset.clubentityByQuery})),N=Object(a.useCallback)((function(e){S(bi(Object.assign({type:"clubentity",query:e},m===e?x:{limit:10,offset:0})))}),[x,m,S]),D=Object(a.useCallback)((function(e){R(),m!==e&&(N(e),g(e))}),[m,N]),P=Object(a.useCallback)((function(e){13===e.keyCode&&p.trim()&&(document.activeElement.blur(),D(p.trim()))}),[p,D]),L=Object(a.useCallback)((function(){m?N(p):S(na())}),[S,p,m,N]),M=m?_:O,U=M.data,B=void 0===U?[]:U,z=M.paging,F=(z=void 0===z?{}:z).isEnd,G=M.isLoading,V=function(e,t){"all"===t?S(function(e){return function(t){return t({API:{types:Wj.JOIN,method:"POST",endpoint:"clubs/".concat(e,"/join"),fetchOptions:{credentials:"include"}},meta:{id:e}}).then((function(){return t(Yj(e))}))}}(e)).then((function(){S(na(!0))})):window.open("https://www.zhihu.com/club/".concat(e),"_blank")},H=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(m,"」的相关圈子")})]}),q=Object(o.b)(Bv.b,{getContainer:k,onLoad:L,isLoading:Boolean(G),placeholder:Object(o.b)(Bv.a,{className:"List-item"}),isDrained:Boolean(F),className:"VideoSyncToClubModal-list",children:Object(o.c)(Ef.Box,{height:"100%",ref:A,children:[B.map((function(e){var t=m?Object.assign({},e.object,{id:e.object.id,avatar:e.object.avatarUrl,postCount:e.object.clubPostCount}):e;return Object(o.b)(Qj,{club:t,selected:(null==u?void 0:u.id)===t.id,onSelect:function(){t.isJoined&&(t.allowSync?l((null==u?void 0:u.id)===t.id?null:t):Ch.a.alert("无法同步到取消关联主站的圈子。"))},handleJoinButtonClick:V},t.id)})),F&&Object(o.b)("div",{className:"VideoSyncToClubModal-list--notMore",children:"没有更多内容"})]})});return Object(o.b)(Wh.b,{title:"选择圈子",size:"large",onClose:n,maskClosable:!1,children:t&&Object(o.c)(o.a,{children:[Object(o.b)(Hl.a,{className:"VideoSyncToClubModal-search",value:p,placeholder:"搜索圈子",before:Object(o.b)(Rl.a,{size:16,className:"VideoSyncToClubModal-search--icon"}),after:Boolean(p)&&Object(o.b)(Il.a,{size:12,onClick:function(){h(""),g(""),R()},className:"VideoSyncToClubModal-search--icon"}),onChange:I,onKeyUp:P}),m&&m===_.preSearchText&&0===B.length?H:q,Object(o.c)(Wh.a,{direction:"horizontal",children:[Object(o.b)(yf.c,{onClick:n,children:"返回"}),Object(o.b)(yf.c,{preset:"primary",color:"blue",onClick:function(){i(u)},disabled:!u,children:"确定"})]})]})})},Jj=n(666),Xj=n(312),$j=function(e){var t=e.defaultVideo,r=e.title,i=e.description,c=t.id,s=Object(Ot.useDispatch)(),u=Object(a.useRef)(),l=Object(a.useState)(0),d=Object(gt.a)(l,2),f=d[0],p=d[1],h=Object(Xj.a)("zvideo_contribution_form:should_hide_tooltip"),b=Object(gt.a)(h,2),v=b[0],m=b[1],g=Object(a.useState)(!1),O=Object(gt.a)(g,2),y=O[0],j=O[1],E=Object(a.useState)(!1),C=Object(gt.a)(E,2),w=C[0],T=C[1],_=Object(wc.m)(c).answer,S=(_=void 0===_?{}:_).canContribute,A=void 0!==S&&S,k=Object(wc.n)(c),R=Object(Bn.c)((function(){return n.e(9).then(n.bind(null,1361))})),I=Object(a.useCallback)((function(){r?f<6e4?s(Object(Xr.g)("大于 1 分钟的视频才可以投稿哦")):(s(Object(wc.k)(null)),j(!0),T(!1)):s(Object(Xr.g)("输入标题后才可以投稿哦"))}),[r,s,f]),x=Object(a.useCallback)((function(){j(!0),T(!0)}),[]);return Object(a.useEffect)((function(){s(Object(wc.g)(c,"edit"))}),[s,c]),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){s(Object(wc.f)({zvideoId:c,duration:e})),p(e)})):((null===(e=t.video)||void 0===e?void 0:e.duration)&&p(parseInt(1e3*t.video.duration)),s(Object(wc.f)({zvideoId:c})))}),[t,s,c]),Object(Bn.g)((function(){return m(!0)}),!v&&A?5e3:null),A||k.length?Object(o.c)(K.b,{block:"Contribution",children:[Object(o.b)(K.e,{ref:u,zaType:"Block",className:"VideoUploadForm-itemTitle",css:function(e){return{"::after":{content:'"投稿到问题可以获得更多曝光哦~"',color:e.colors.GBK06A,fontWeight:"normal"}}},children:"投稿问题(选填)"}),Object(o.b)(Lh.a,{placement:"top-left",isOpen:!v,target:u.current,css:{".Popover-arrow":{transform:"translate(-115px, 0)"}},children:"投稿到问题,让更多人看到你的视频"}),Object(o.b)(Jj.a,{zvideoId:c,showCreateButton:!0,onAdd:I,onSelect:x}),Boolean(R)&&Object(o.b)(R,{show:y,defaultVideo:t,title:r,description:i,duration:f,closeAfterEdit:w,onClose:function(){return j(!1)}})]}):null};var eE=function(e){var t,n,r,i,c,s,u,l,d,f,p,h,b,v,m,g,O=e.className,y=e.defaultVideo,j=e.defaultCampaignId,E=e.checkFormValid,C=e.shouldShowSyncToListCheckbox,w=e.onRemove,T=e.onSubmit,_=e.isEditing,S=e.shouldShowScheduledPublish,A=Qg(new Date,30),k=Object(a.useState)(!1),R=Object(gt.a)(k,2),I=R[0],x=R[1],N=Object(a.useState)(A),D=Object(gt.a)(N,2),P=D[0],L=D[1],M=(g=function(e){return e.zvideos.tagoreCategory},Object(Ot.useSelector)(g,Ot.shallowEqual)),U=tj([Lc,Mc,Ic,xc,Nc,Dc,Xr.g,Ac]),B=Object(gt.a)(U,8),z=B[0],F=B[1],G=B[2],V=B[3],H=B[4],W=B[5],Y=B[6],Q=B[7],Z=Object(a.useState)((null==y?void 0:y.title)||""),J=Object(gt.a)(Z,2),X=J[0],$=J[1],ee=Object(a.useState)(null!==(t=null==y?void 0:y.description)&&void 0!==t?t:""),te=Object(gt.a)(ee,2),ne=te[0],re=te[1],oe=Object(a.useState)(null!==(n=null==y||null===(r=y.category)||void 0===r||null===(i=r.firstLevel)||void 0===i?void 0:i.id)&&void 0!==n&&n),ie=Object(gt.a)(oe,2),ae=ie[0],ce=ie[1],se=M.find((function(e){return e.data.id===ae})),ue=Object(a.useState)(null!==(c=null==y||null===(s=y.category)||void 0===s||null===(u=s.secondLevel)||void 0===u?void 0:u.id)&&void 0!==c&&c),le=Object(gt.a)(ue,2),de=le[0],fe=le[1];Object(a.useEffect)((function(){M.length||G()}),[M,G]);var pe=Object(a.useState)(Boolean(null==y||null===(l=y.category)||void 0===l||null===(d=l.firstLevel)||void 0===d?void 0:d.id)||Boolean(null==y||null===(f=y.category)||void 0===f||null===(p=f.secondLevel)||void 0===p?void 0:p.id)),he=Object(gt.a)(pe,2),be=he[0],ve=he[1],me=Object(Bn.a)((function(e){V(e).then((function(e){var t=e.payload.data[0];t&&(ce(t.firstLevel.id),fe(t.secondLevel.id))}))}),300);Object(a.useEffect)((function(){be||me({title:X,type:"zvideo",content:ne})}),[X,ne,be,me]);var ge=Object(a.useState)(null!==(h=null==y?void 0:y.topics)&&void 0!==h?h:[]),Oe=Object(gt.a)(ge,2),ye=Oe[0],je=Oe[1],Ee=Object(a.useState)(Boolean(null==y||null===(b=y.topics)||void 0===b?void 0:b.length)),Ce=Object(gt.a)(Ee,2),we=Ce[0],Te=Ce[1],_e=Object(a.useState)(!1),Se=Object(gt.a)(_e,2),Ae=Se[0],ke=Se[1],Re=Object(Bn.a)((function(e){H(e).then((function(e){var t=e.payload.data;t.length&&je(t)}))}),300);Object(a.useEffect)((function(){!we&&ae&&de&&Re({type:"zvideo",text:X,firstLevelCategoryId:ae,secondLevelCategoryId:de,limit:6})}),[X,ae,de,we,Re]);var Ie=Object(a.useState)(null==y?void 0:y.imageUrl),xe=Object(gt.a)(Ie,2),Ne=xe[0],De=xe[1],Pe=Object(a.useCallback)((function(e){return De(e)}),[De]);Object(a.useEffect)((function(){(!Ne&&(null==y?void 0:y.imageUrl)||Ne===ij&&(null==y?void 0:y.imageUrl)&&y.imageUrl!==ij)&&De(y.imageUrl)}),[Ne,y]);var Le=Object(a.useState)(null==y?void 0:y.zvideoType),Me=Object(gt.a)(Le,2),Ue=Me[0],Be=Me[1],ze="published"===(null==y?void 0:y.zvideoState),Fe=Object(a.useState)(null==y?void 0:y.campaign),Ge=Object(gt.a)(Fe,2),Ve=Ge[0],He=Ge[1],qe=Object(a.useState)(!1),Ke=Object(gt.a)(qe,2),We=Ke[0],Ye=Ke[1],Qe=Object(a.useState)(!1),Ze=Object(gt.a)(Qe,2),Je=Ze[0],Xe=Ze[1],$e=Object(a.useState)(C),et=Object(gt.a)($e,2),tt=et[0],nt=et[1],rt=Object(a.useState)([]),ot=Object(gt.a)(rt,2),it=ot[0],at=ot[1],ct=Boolean(null==it?void 0:it.length)&&!Ve,st="published"===(null==y?void 0:y.zvideoState);Object(a.useEffect)((function(){W().then((function(e){var t=e.payload;at(t.data)}))}),[W]),Object(a.useEffect)((function(){var e=null==it?void 0:it.find((function(e){return e.id===j}));!e||We||Ve||He(e)}),[j,it,We,Ve]);var ut=Object(a.useState)("草稿已保存"),lt=Object(gt.a)(ut,2),dt=lt[0],ft=lt[1],pt=Object(Bn.a)((function(e,t){F(e,t).then((function(){ft("草稿已保存")}))}),300);Object(a.useEffect)((function(){y.id&&(ft("草稿保存中…"),pt(y.id,{title:X,description:ne,category:{firstLevel:ae||void 0,secondLevel:de||void 0},zvideoType:Ue,topicIds:ye.map((function(e){return e.id||e.urlToken})),campaignId:null==Ve?void 0:Ve.id,imageUrl:Ne,isVisible:tt}))}),[y.id,X,ne,ae,de,Ue,ye,Ve,Ne,tt,pt]);var ht=Object(Bn.a)((function(e){return z(e).then((function(e){var t,n,r,o,i,a,c,s,u=e.payload;u&&(!X&&$(u.title),!Ne&&u.imageUrl&&De(u.imageUrl),!ne&&re(null!==(t=u.description)&&void 0!==t?t:""),!ae&&ce(null!==(n=null===(r=u.category)||void 0===r||null===(o=r.firstLevel)||void 0===o?void 0:o.id)&&void 0!==n&&n),!de&&fe(null!==(i=null===(a=u.category)||void 0===a||null===(c=a.secondLevel)||void 0===c?void 0:c.id)&&void 0!==i&&i),!(null==ye?void 0:ye.length)&&je(null!==(s=u.topics)&&void 0!==s?s:[]),!Ue&&Be(u.zvideoType),!Ve&&He(u.campaign))}))}),300);Object(a.useEffect)((function(){y.id&&ht(y.id)}),[y,ht]);var bt=Object(Ot.useDispatch)(),vt=Object(Ot.useSelector)((function(e){return e.club.explore.joinedClubs})),mt=!C&&(null==vt||null===(v=vt.data)||void 0===v?void 0:v.length)>0,yt=Object(a.useState)(!1),jt=Object(gt.a)(yt,2),Et=jt[0],Ct=jt[1],wt=Object(a.useState)(!1),Tt=Object(gt.a)(wt,2),_t=Tt[0],St=Tt[1],At=Object(a.useState)(null),kt=Object(gt.a)(At,2),Rt=kt[0],It=kt[1];Object(a.useEffect)((function(){vt||C||bt(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;return function(n,r){var o,i,a=null===(o=r().club.explore)||void 0===o||null===(i=o.joinedClubs)||void 0===i?void 0:i.paging;return n({API:Object.assign({types:ta.GET_JOINED_CLUBS},(null==a?void 0:a.next)&&!e?{endpoint:null==a?void 0:a.next}:{endpoint:"/clubs/joined",query:{sortby:"visit_count",limit:t}},{fetchOptions:{zsAutoSignature:!1}}),meta:{isReset:e},schema:no.a.CLUB_ARRAY})}}())}),[bt,vt,C]),Object(a.useEffect)((function(){_&&y.id&&Q(y.id).then((function(e){(null==e?void 0:e.payload)&&(It(e.payload),Ct(!0))}))}),[_,y,Q]);var xt=function(){return C?"添加":I?"定时发布":"发布视频"},Nt=Boolean(y.id);return Object(o.b)(K.b,{block:"VideoUpLoadForm",content:{type:"Zvideo",id:y.id},children:Object(o.c)(K.e,{zaType:"Block",className:rl()("VideoUploadForm",O),children:[Object(o.c)("div",{className:"VideoUploadForm-item",children:[Object(o.b)("div",{className:"VideoUploadForm-itemTitle VideoUploadForm-itemTitle--first",children:"标题"}),Object(o.b)(Hl.a,{className:"VideoUploadForm-input",value:X,onChange:function(e){$(e.target.value)},placeholder:"输入视频标题",large:!0}),X.length<5&&Object(o.c)("div",{className:"VideoUploadForm-itemError",children:["还需要输入 ",5-X.length," 个字"]}),X.length>40&&Object(o.c)("div",{className:"VideoUploadForm-itemError",children:["已超出 ",X.length-40," 个字"]})]}),Object(o.c)("div",{className:"VideoUploadForm-item",children:[Object(o.b)("div",{className:"VideoUploadForm-itemTitle",children:"简介(选填)"}),Object(o.b)(Hl.a,{className:"VideoUploadForm-input VideoUploadForm-input--multiline",value:ne,onChange:function(e){re(e.target.value)},placeholder:"填写视频简介,让更多人找到你的视频",multiline:!0,large:!0}),ne.length>300&&Object(o.c)("div",{className:"VideoUploadForm-itemError",children:["已超出 ",ne.length-300," 个字"]})]}),Nt&&Object(o.b)($j,{defaultVideo:y,title:X,description:ne}),Object(o.b)("div",{className:"VideoUploadForm-itemTitle",children:"所属领域"}),Object(o.c)("div",{className:"VideoUploadForm-selectContainer",children:[Object(o.c)(xp.b,{className:"VideoUploadForm-select",listClassName:"VideoUploadForm-selectList",value:ae,onChange:function(e){ce(e),fe(!1),ve(!0)},children:[!se&&Object(o.b)(xp.a,{value:!1,text:"选择领域"},"all"),M.map((function(e){var t=e.data;return Object(o.b)(xp.a,{value:t.id,text:t.name},t.id)}))]}),se&&Object(o.c)(xp.b,{className:"VideoUploadForm-select",listClassName:"VideoUploadForm-selectList",value:de,onChange:function(e){fe(e),ve(!0)},children:[Object(o.b)(xp.a,{value:!1,text:"选择领域"},"all"),se.children.map((function(e){var t=e.data;return Object(o.b)(xp.a,{value:t.id,text:t.name},t.id)}))]})]}),Object(o.b)("div",{className:"VideoUploadForm-itemTitle",children:"绑定话题"}),Object(o.b)(nh,{className:"VideoUploadForm-topicInput",value:ye,onChange:function(e){je(e),Te(!0)},max:6,actived:Ae,onToggleActived:function(){return ke(!Ae)}}),Object(o.c)("div",{className:"VideoUploadForm-typeContainer",children:[Object(o.b)("div",{className:rl()("VideoUploadForm-radioContainer",{"VideoUploadForm-radioContainer--disabled":ze}),children:oj.map((function(e){return Object(o.c)("label",{className:"VideoUploadForm-radioLabel",children:[Object(o.b)(Gj.a,{className:"VideoUploadForm-radio",size:16,checked:e.value===Ue,onChange:function(){Be(e.value)},disabled:ze}),e.label]},e.value)}))}),"reprint"===Ue&&Object(o.b)("div",{className:"VideoUploadForm-typeHint",children:"请确保转载视频符合版权使用规范,如被举报侵权,视频将会被删除"})]}),S&&Object(o.c)("div",{className:"VideoUploadForm-scheduledPublish",children:[Object(o.b)("span",{className:"VideoUploadForm-scheduledPublish--text",children:"定时发布"}),Object(o.b)(Db.a,{className:"VideoUploadForm-scheduledPublish--switch",checked:I,onChange:function(e){return x(e.target.checked)}}),I&&Object(o.c)(o.a,{children:[Object(o.b)(Vy,{className:"VideoUploadForm-scheduledPublish--timePicker",value:P,min:A,onChange:function(e){L(Date.parse(e))}}),Object(o.b)(Mj,{className:"VideoUploadForm-scheduledPublish--tooltip",size:18,"data-tooltip":"时间需至少设置在30分钟以后","data-tooltip-position":"top"})]})]}),Ve&&Object(o.c)(o.a,{children:[Object(o.b)("div",{className:"VideoUploadForm-itemTitle",children:"视频活动"}),Object(o.b)(yf.c,{preset:"plain",color:"blue",className:"VideoUploadForm-campaignTitle",onClick:function(){Xe(!0),Ye(!0)},disabled:st,children:Ve.title})]}),Rt&&!I&&Object(o.c)(o.a,{children:[Object(o.b)("div",{className:"VideoUploadForm-itemTitle",children:"同步到圈子"}),Object(o.b)(im.a,{view:{id:8603},card:{content:{id:Rt.id,type:"Zvideo"}},trackCardShow:!0,children:Object(o.c)("div",{className:rl()("VideoUploadForm-syncClubTitle",{"VideoUploadForm-syncClubTitle--disabled":Et}),children:[!Et&&Object(o.b)(Il.a,{text:!0,center:!0,size:6,css:{marginRight:4},onClick:function(){It(null)}}),Object(o.b)("span",{dangerouslySetInnerHTML:{__html:Rt.name},onClick:function(){Et?Ch.a.alert("暂不支持修改已同步的圈子"):St(!0)}})]})})]}),(ct||mt)&&Object(o.c)("div",{className:"VideoUploadForm-featureList",children:[ct&&!st&&Object(o.c)("div",{className:"VideoUploadForm-feature",onClick:function(){Xe(!0),Ye(!0)},children:[Object(o.b)(Uj.a,{className:"VideoUploadForm-featureIcon",size:20}),Object(o.b)("div",{className:"VideoUploadForm-featureName",children:"绑定活动"})]}),mt&&!Rt&&!I&&Object(o.b)(im.a,{view:{id:8602},card:{content:{type:"Zvideo"}},trackCardShow:!0,children:Object(o.c)("div",{className:"VideoUploadForm-feature",onClick:function(){St(!0)},children:[Object(o.b)(zj,{className:"VideoUploadForm-featureIcon",size:20}),Object(o.b)("div",{className:"VideoUploadForm-featureName",children:"同步到圈子"})]})})]}),Boolean(null==it?void 0:it.length)&&Object(o.b)(Kj,{shown:Je,onClose:function(){Xe(!1)},defaultCampaignId:null==Ve?void 0:Ve.id,campaignList:it,onSubmit:function(e){Xe(!1),He(e)}}),mt&&Object(o.b)(Zj,{shown:_t,onClose:function(){return St(!1)},selectedClub:Rt,onSelectClub:function(e){It(e),St(!1)}}),C&&Object(o.c)("div",{className:"VideoUploadForm-syncToList",children:[Object(o.b)(Oj,{css:{marginRight:"8px"},checked:tt,onChange:function(e){return nt(e.target.checked)}}),"同步到个人主页「视频」列表"]}),Object(o.c)("div",{className:"VideoUploadForm-imageContainer",children:[Object(o.b)("img",{className:"VideoUploadForm-image",src:Ne||ij,alt:""}),Object(o.b)("div",{className:"VideoUploadForm-duration",children:Hj(null===(m=y.video)||void 0===m?void 0:m.duration)}),Object(o.b)(Fj.a,{triggerClassName:"VideoUploadForm-imageEditButton",useCoverCrop:!1,originVideo:y.file,onVideoPosterChange:Pe,zvideoId:y.id,id:y.videoId})]}),y.id&&Object(o.c)("div",{className:"VideoUploadForm-draftHint",children:[Object(o.b)(yf.c,{className:"VideoUploadForm-draftRemoveButton",preset:"plain",icon:iO.a,onClick:function(){w()}}),dt]}),Object(o.b)(im.a,{module:"Content",card:{content:{type:"Zvideo",token:y.id}},children:Object(o.b)(K.a,{zaType:"Button",zaText:xt(),zaAction:"Save",as:yf.c,className:"VideoUploadForm-submitButton",preset:"primary",color:"blue",onClick:function(e){var t=function(e,t){var n=e.title,r=e.description,o=e.categoryFirstLevel,i=e.categorySecondLevelId,a=e.topics,c=e.zvideoType;if(!n)return"视频标题至少 ".concat(5," 个字");if(n.length<5)return"视频标题至少 ".concat(5," 个字");if(n.length>40)return"视频标题最多 ".concat(40," 个字");if(r.length>300)return"视频描述最多 ".concat(300," 个字");if(!o)return"请选择所属领域";if(!i)return"请选择所属二级领域";if(!a.length)return"请绑定话题";if(!c)return"请选择类型";if(t){var s=t();if(s)return s}}({title:X,description:ne,categoryFirstLevel:se,categorySecondLevelId:de,topics:ye,zvideoType:Ue},E);if(t)return Y(t,"red");q.a.trackEvent(e.target,{id:7038,action:"Upload"},{button:{text:C?"添加":"发布视频"}});var n={id:y.id,videoId:y.videoId,title:X,description:ne,category:{firstLevel:ae,secondLevel:de},zvideoType:Ue,topicIds:ye.map((function(e){return e.id||e.urlToken})),campaignId:null==Ve?void 0:Ve.id,clubId:null==Rt?void 0:Rt.id,imageUrl:Ne,publishAt:P};T(n,I)},children:xt()})})]})})};var tE=function(e){var t=e.className,n=e.imageUrl,r=e.duration,i=e.title,a=e.titleHint,c=e.titleBottom,s=e.tool;return Object(o.c)("div",{className:rl()("VideoUploadItemInfo",t),children:[n&&Object(o.c)("div",{className:"VideoUploadItemInfo-imageContainer",children:[Object(o.b)("img",{className:"VideoUploadItemInfo-image",src:n,alt:""}),Object(o.b)("div",{className:"VideoUploadItemInfo-duration",children:Hj(r)})]}),Object(o.c)("div",{className:"VideoUploadItemInfo-titleContainer",children:[Object(o.b)("div",{className:"VideoUploadItemInfo-title",children:i}),Object(o.b)("div",{className:"VideoUploadItemInfo-titleHint",children:a}),c]}),Object(o.b)("div",{className:"VideoUploadItemInfo-toolContainer",children:s})]})};var nE=function(e){var t=e.className,n=e.current,r=e.max;return Object(o.b)("div",{className:rl()("VideoUploadProgress",t),children:Object(o.b)("div",{className:"VideoUploadProgress-current",style:{width:"".concat(n/r*100,"%")}})})};function rE(e){var t=e/1e3/1e3;return"".concat(t>=1?Math.round(t):t.toFixed(1),"MB")}var oE=["CHANGE_MIND","TOO_SLOW","NO_PROGRESS","OTHER"].sort((function(){return.5-Math.random()})),iE={CHANGE_MIND:"我不想发了",TOO_SLOW:"上传速度太慢",NO_PROGRESS:"上传卡住了",OTHER:"其他"};var aE=function(e){var t=Object(Ot.useDispatch)(),n=e.className,r=e.infoClassName,i=e.formClassName,c=e.video,s=e.shouldShowSyncToListCheckbox,u=void 0!==s&&s,l=e.forwardToZVideoPage,d=e.createVideoDraft,f=e.updateVideoDraft,p=e.onUploadError,h=e.onRemove,b=e.onPublish,v=e.handleVideoStateChange,m=e.shouldShowScheduledPublish,g=c.status,O=c.file,y=!!c.queryVideoId,j=Object(a.useRef)(null),E=Object(a.useRef)(null),C=Object(a.useState)(!1),w=Object(gt.a)(C,2),T=w[0],_=w[1],S=Object(a.useState)(""),A=Object(gt.a)(S,2),k=A[0],R=A[1],I=Object(a.useState)(""),x=Object(gt.a)(I,2),N=x[0],D=x[1],P=Object(a.useState)({uploadedSize:0}),L=Object(gt.a)(P,2),M=L[0],U=L[1],B=Object(a.useState)(!1),z=Object(gt.a)(B,2),F=z[0],G=z[1],V=Object(Bn.b)((function(){j.current&&(j.current.getSession("video",O).abort(),j.current=null,G(!1))}));Object(a.useEffect)((function(){"uploading"!==g||F||(j.current=new Fn.b({usage:"zvideo",apiRoot:ke.a.fetchRoot.lens}),G(!0))}),[g,O,F]);var H=Object(Bn.b)((function(){if(j.current){var e=j.current.getSession("video",O);v(e.state),U(e.state),e.state.completed&&e.off("change",H)}})),q=F&&j.current&&0===M.uploadedSize;Object(a.useEffect)((function(){q&&j.current.getSession("video",O).on("change",H)}),[q,O,H]);var K=Object(Bn.b)((function(e,t){return"uploaded"===e?null==d?void 0:d(Object.assign({},t,{isLens:!0,isPlayable:!0,thumbnail:ij,url:"https://www.zhihu.com/video/".concat(t.id),playerUrl:"https://www.zhihu.com/video/".concat(t.id)})):"cover"===e?(V(),null==f?void 0:f({imageUrl:t.thumbnail||ij})):void 0})),W=Object(Bn.b)((function(){if(V(),h(),k){var e="取消时上传进度:".concat(Math.round(M.uploadedSize/O.size*100),"%"),n=N?"「".concat(e,"」").concat(N,"}"):e,r=(c||{}).id;t((o=k,i=n,a=r,{API:{types:Tc.UPDATE_ZVIDEO_UPLOAD_FEEDBACK,endpoint:"zvideos/feedback",method:"POST",body:Object($.decamelizeKeys)({reason:o,reasonDetail:i,zvideoId:a})}}))}var o,i,a;D(""),R("")})),Y=function(){return _(!0)},Q=function(){return _(!1)},Z=function(e){var t=e.target.name;R(t)},J=Object(a.useCallback)((function(e){D(e.currentTarget.value)}),[D]),X=["uploading","uploaded"].includes(g),ee=Object(a.useMemo)((function(){return rE(O.size)}),[O.size]);return Object(o.c)("div",{className:rl()("VideoUploadItem","VideoUploadItem--".concat(g),n),children:["pending"===g&&Object(o.b)(tE,{className:r,title:O.name,titleHint:"等待上传 ".concat(ee),tool:Object(o.b)(yf.c,{preset:"plain",onClick:W,children:"取消上传"})}),"uploading"===g&&Object(o.b)(tE,{className:r,title:O.name,titleHint:"UPLOADING_SUCCESS"===M.uploadingStatus?"上传完成,正在生成默认视频封面":"正在上传 ".concat(Math.round(M.uploadedSize/O.size*100),"% ").concat(rE(M.uploadedSize)," / ").concat(ee),titleBottom:Object(o.b)(nE,{className:"VideoUploadItem-progress",current:M.uploadedSize,max:O.size}),tool:Object(o.b)(yf.c,{className:"VideoUploadItem-toolLastButton",preset:"plain",onClick:Y,children:"取消上传"})}),F&&Object(o.b)(Ej.a,{ref:E,className:"VideoUploadItem-videoUploader",coverButtonText:"编辑视频封面",uploadManager:j.current,onVideoProcessStep:K,onVideoUploadError:function(e){"uploaded"!==g&&p(e)},data:{upload:{file:O}},isPin:!0}),"uploadError"===g&&Object(o.b)(tE,{className:r,title:O.name,titleHint:"上传失败,请尝试重新上传",tool:Object(o.b)(yf.c,{preset:"plain",onClick:W,children:"删除视频"})}),"uploaded"===g&&Object(o.b)(tE,{className:r,title:O.name,titleHint:"上传完成 ".concat(y?"":ee),tool:y?"":Object(o.b)(yf.c,{preset:"plain",onClick:Y,children:"删除视频"})}),"published"===g&&!l&&Object(o.b)(tE,{className:r,imageUrl:c.imageUrl,duration:c.video.duration,title:c.title,titleHint:Object(o.b)("a",{href:"https://www.zhihu.com/zvideo/".concat(c.id),target:"_blank",rel:"noopener noreferrer",children:"发布成功,点击前往详情页查看"})}),X&&Object(o.b)(eE,{className:i,defaultVideo:c,defaultCampaignId:e.defaultCampaignId,shouldShowSyncToListCheckbox:u,shouldShowScheduledPublish:m,onRemove:Y,onSubmit:b,checkFormValid:function(){return"uploaded"!==g?"请在视频上传完成后发布":null}}),Object(o.b)(Wh.b,{className:"VideoUploadItem-modal",title:"确定取消上传该视频嘛?",subtitle:"取消上传后,已上传部分不会被保留",onClose:Q,children:T&&Object(o.c)("div",{className:"VideoUploadItem-modalContent",children:[Object(o.b)("p",{children:"为什么取消上传?你的建议也许能帮助我们"}),oE.map((function(e){return Object(o.c)("label",{children:[Object(o.b)(Pj,{name:e,onChange:Z,checked:k===e}),Object(o.b)("span",{className:"VideoUploadItem-OptionItem-Title",children:iE[e]})]},e)})),"OTHER"===k&&Object(o.b)(_j,{className:"VideoUploadItem-feedback",placeholder:"请在这里填上你的反馈",value:N,onChange:J,large:!0,maxLength:300}),Object(o.c)(Wh.a,{direction:"horizontal",children:[Object(o.b)(yf.c,{preset:"primary",onClick:Q,children:"继续上传"}),Object(o.b)(yf.c,{preset:"primary",onClick:W,color:"blue",children:"取消上传"})]})]})})]})},cE=function(e){var t=Object(Bn.c)((function(){return n.e(0).then(n.bind(null,1366))}));return t?Object(o.b)(t,Object.assign({},e)):null},sE=function(e,t){var n=e.ratio,r=void 0===n?1:n,i=e.children,a=Object(_e.a)(e,["ratio","children"]);return Object(o.b)(Ef.Box,Object.assign({css:{position:"relative",paddingBottom:"".concat(1/r*100,"%"),height:"0",borderRadius:"inherit"}},a,{ref:t,children:Object(o.b)("div",{css:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",borderRadius:"inherit"},children:i})}))},uE=Object(a.forwardRef)(sE);var lE=function(){var e=Object(a.useState)([]),t=Object(gt.a)(e,2),n=t[0],r=t[1],i=Object(Ot.useDispatch)(),c=Object(a.useRef)([]);Object(a.useEffect)((function(){i({API:{types:Tc.GET_ZVIDEO_BANNERS,endpoint:"zvideo_banners?type=upload_page"}}).then((function(e){var t=e.payload.data;r(t)}))}),[i]);var s=Object(a.useCallback)((function(e){var t=e.index;if(!c.current[t]){c.current[t]=!0;var r=n[t];q.a.trackCardShow(null,{id:9517},{link:{url:r.url},button:{text:String(r.id)}})}}),[n]),u=Object(a.useCallback)((function(e){return Object(o.b)(Ef.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(o.b)(uE,{ratio:7.5,css:{width:"100%"},children:Object(o.b)(Ef.Image,{src:e.imageUrl,alt:"",size:"100%",css:{objectFit:"cover"}})})})}),[]);return 0===n.length?null:Object(o.b)(Ef.Flex,{css:{justifyContent:"center",height:"100%",overflowX:"scroll",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},children:Object(o.b)(cE,{items:n.slice(0,5),renderItem:u,enableArrows:!0,interval:3e3,css:{maxWidth:1e3,margin:20,borderRadius:4},onSlide:s})})};var dE=Object(st.withRouter)((function(e){var t,n=e.type,r=void 0===n?"create":n,c=e.defaultCampaignId,s=e.enableMultipleUpload,u=void 0!==s&&s,l=e.enableZVideoListSelectorEntry,d=void 0!==l&&l,f=e.shouldShowSyncToListCheckbox,p=void 0!==f&&f,h=e.onClose,b=e.onSubmit,v=e.forwardToZVideoPage,m=void 0!==v&&v,g=e.isInModal,O=void 0!==g&&g,y=e.shouldPublish,j=void 0===y||y,C=e.showBanner,T=void 0!==C&&C,_=e.shouldShowScheduledPublish,S=void 0!==_&&_,A=e.route,k=e.router,R=e.location.query.videoId,I=Object(a.useState)(R?[{queryVideoId:R,tempId:pg()(),file:{size:0,name:"已上传视频"},status:"uploaded",imageUrl:ij}]:[]),x=Object(gt.a)(I,2),N=x[0],D=x[1],P=Object(a.useState)({}),L=Object(gt.a)(P,2),M=L[0],U=L[1],B=Object(a.useState)(!1),z=Object(gt.a)(B,2),F=z[0],G=z[1],V=(Object(Ot.useSelector)((function(e){return e.zvideos.insertable}))||{}).data,H=tj([Pc,Mc,Uc,Bc,Xr.g,_c,zc,wc.j]),K=Object(gt.a)(H,8),W=K[0],Y=K[1],Q=K[2],Z=K[3],J=K[4],X=K[5],$=K[6],ee=K[7],te=Object(Bn.b)((function(e,t){var n=Object.assign({},N[e],{status:"uploaded",videoId:t.id,imageUrl:t.thumbnail,video:{id:t.id,duration:t.duration}});return D(N.map((function(t,r){return e===r?n:t}))),W(n).then((function(t){var r=t.payload;D(N.map((function(t,o){return e===o?Object.assign({},n,{id:r.id}):t})))}))}));Object(a.useEffect)((function(){R&&te(0,{id:R}).then((function(){return Object(ej.b)(R,{apiRoot:ke.a.fetchRoot.lens})})).then((function(e){e&&D((function(t){return[Object.assign({},t[0],{imageUrl:e})]}))}))}),[R,te]),Object(a.useEffect)((function(){var e,t,n,r,o=null===(e=N[0])||void 0===e?void 0:e.id;if(o){var i=(n=cj(t=R),r=w.a.get(cj(t)),w.a.delete(n),r);i&&Y(o,{vessayOutline:i})}}),[N,R,Y]);var ne=Object(a.useCallback)((function(e,t){var n,r,o=Object(nj.a)(e,u);o.errMsg&&(J(o.errMsg,"red"),o.abortUpload)||(q.a.trackEvent(null,{id:9479,action:t,path:[{module:"Content"}]},{module:[{card:{content:[{video_count:null===(n=o.validFiles)||void 0===n?void 0:n.length}]}}]}),D([].concat(Object(i.a)(N),Object(i.a)(null===(r=o.validFiles)||void 0===r?void 0:r.map((function(e){return{tempId:pg()(),file:e,title:(t=e.name,(n=t,n?n.replace(/\.[^/.]+$/,""):"").slice(0,60)),status:"pending"};var t,n}))))))}),[u,N,J]),re=function(e){var t=Math.round(e.uploadedSize/e.fileSize*100);U({uploadProgress:t,fileSize:e.fileSize})},oe=Object(a.useCallback)((function(){(null==V?void 0:V.length)>0?G(!0):X().then((function(e){e.payload.data.length?G(!0):J("还没有发布过视频")}))}),[V,X,J]);Object(a.useEffect)((function(){if(!N.some((function(e){return"uploading"===e.status}))){var e=N.findIndex((function(e){return"pending"===e.status}));-1!==e&&D(N.map((function(t,n){return n!==e?t:Object.assign({},t,{status:"uploading",uploadedSize:0})})))}}),[N,D]);var ie=Object(a.useCallback)((function(){k.setRouteLeaveHook(A,null),window.onbeforeunload=null}),[k,A]);return Object(a.useEffect)((function(){if(A&&k){if(N.some((function(e){return"uploading"===e.status}))){var e,t,n=M.uploadProgress,r=M.fileSize,o=Math.round(1024*(null===(e=navigator)||void 0===e||null===(t=e.connection)||void 0===t?void 0:t.downlink)||1024e3);E.a.timing("VideoUpload.default.upload_cancel.downlink",o),E.a.timing("VideoUpload.default.upload_cancel.fileSize",r),E.a.timing("VideoUpload.default.upload_cancel.uploadProgress",n),k.setRouteLeaveHook(A,(function(){return"确定离开该页面?有暂未发布的视频,离开后内容将被清空"})),window.onbeforeunload=function(){return"确定离开该页面?有暂未发布的视频,离开后内容将被清空"}}else ie();return ie}}),[k,A,N,ie,M]),F?Object(o.b)(jj,{onSubmit:b,onClose:function(){G(!1)}}):void 0===R&&0===N.length?Object(o.c)(o.a,{children:[T&&Object(o.b)(lE,{}),Object(o.b)(dj,{onFiles:ne,enableZVideoListSelectorEntry:d,multiple:u,onOpenZVideoList:oe})]}):m&&"published"===(null===(t=N[0])||void 0===t?void 0:t.status)?Object(o.b)("div",{className:"ZVideoUploader-published",children:Object(o.b)("span",{children:"发布成功,跳转中..."})}):Object(o.c)("div",{className:rl()("ZVideoUploader-form",{"ZVideoUploader-modalForm":O}),children:[Object(o.c)("div",{className:"ZVideoUploader-titleArea",children:[Object(o.b)("span",{className:"ZVideoUploader-title",children:"insert"===r?"添加视频":"上传视频"}),u&&Object(o.b)(rj,{text:"添加视频",onFiles:ne,zaClickId:7037})]}),N.map((function(e,t){var n;return Object(o.b)(aE,{className:"ZVideoUploader-videoUploadItem",video:e,forwardToZVideoPage:m,handleVideoStateChange:re,shouldShowSyncToListCheckbox:p,shouldShowScheduledPublish:S,defaultCampaignId:c,createVideoDraft:function(e){return te(t,e)},updateVideoDraft:function(e){return function(e,t){var n=Object.assign({},N[e],t);D(N.map((function(t,r){return e===r?n:t}))),n.id&&Y(n.id,t)}(t,e)},onUploadError:function(){D(N.map((function(e,n){return t!==n?e:Object.assign({},e,{status:"uploadError"})})))},onRemove:function(){D(N.filter((function(e,n){return t!==n})))},onPublish:function(e,n){if(null==b||b([e.id]),null==h||h(),j){var r=e.id,o=e.publishAt,i=e.clubId;if(n&&o)return Z(r,Math.floor(o/1e3)).then((function(){J("内容已保存在草稿箱,将在 ".concat(dy(o,"yyyy/MM/dd HH:mm")," 时间发布")),ee(r),D(u?N.filter((function(e,n){return n!==t})):[])})),void aj(r);Q(r).then((function(){ee(r),D(N.map((function(n,r){return t!==r?n:Object.assign({},n,e,{status:"published"})}))),i&&$(r,i),aj(r),m&&(q.a.trackPageShow({id:9516}),window.location.href="https://www.zhihu.com/zvideo/".concat(r))}))}}},e.tempId||e.id||(null===(n=e.video)||void 0===n?void 0:n.id))}))]})}));var fE=function(e){var t=e.show,n=e.type,r=e.onSubmit,i=e.onClose,a=e.defaultCampaignId,c=e.enableZVideoListSelectorEntry,s=e.enableMultipleUpload;return t?Object(o.b)(Wh.b,{className:"ZVideoUploader-modal",onClose:i,size:"fullPage",children:Object(o.b)(dE,{type:n,onSubmit:r,onClose:i,defaultCampaignId:a,enableZVideoListSelectorEntry:c,enableMultipleUpload:s,shouldShowSyncToListCheckbox:!0,isInModal:!0,shouldPublish:!1})}):null},pE=n(702),hE=n.n(pE),bE=n(1034),vE=n(1035);function mE(e){var t=e.title,n=e.isSecondary,r=e.customTitle,i=e.children;return Object(o.c)(Ef.Flex,{pl:n?"20px":0,py:"20px",justifyContent:"space-between",alignItems:"center",css:function(e){return Object.assign({},Object(Et.c)({borderTop:"1px solid ".concat(e.colors.GBK09A)}))},children:[r||Object(o.b)(Ef.Text,{color:"GBL05A",fontSize:14,fontWeight:"bold",children:t}),i]})}function gE(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var OE=function(e){Object(ml.a)(n,e);var t=gE(n);function n(e){var r;Object(bl.a)(this,n),(r=t.call(this,e)).onChangeInputType=function(e){r.setState({checked:e.target.checked})},r.onChangeInputValue=function(e){r.setState({text:e.target.value})},r.submit=function(){var e=r.state.text;r.props.submitRewardText(e)};var o,i=e.tagline;return r.state={text:(o=i,o.replace(/^「/,"").replace(/」$/,"")||le.k),checked:!0},r}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.onClose,n=e.edit,r=this.state,i=r.text,a=r.checked;return Object(o.c)(Pt.b,{onClose:t,className:"RewardForm-rewardModal",children:[Object(o.b)("p",{className:"RewardForm-rewardTitle",children:n?"编辑赞赏描述":"开启赞赏"}),Object(o.b)(Hl.a,{className:"RewardForm-rewardInput",maxLength:"20",type:"text",value:i,onChange:this.onChangeInputValue}),Object(o.c)("div",{className:"RewardForm-remark",children:[!n&&Object(o.c)("label",{className:"RewardForm-protocol",children:[Object(o.b)(Oj,{className:"RewardForm-rewardCheckbox",onChange:this.onChangeInputType,checked:a,size:16}),"我已同意",Object(o.b)("a",{className:"RewardForm-rewardLink",href:"/terms/tipjar",children:"《知乎赞赏功能使用协议》"})]}),Object(o.b)("p",{className:"RewardForm-prompting",children:"还可以输入".concat(20-i.length,"个字")})]}),Object(o.b)(yf.c,{className:rl()("RewardForm-rewardSubmit",{"RewardForm-rewardSubmit-disabled":!a}),onClick:this.submit,disabled:!a,children:"确定"})]})}}]),n}(a.Component);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}OE.propTypes={onClose:jl.a.func,submitRewardText:jl.a.func,edit:jl.a.bool,tagline:jl.a.string},OE.defaultProps={tagline:le.k};var jE=Object(a.createContext)({updateFormData:function(){},formData:{}}),EE=function(e){var t=function(t){Object(ml.a)(r,t);var n=yE(r);function r(){var e;Object(bl.a)(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return(e=n.call.apply(n,[this].concat(o))).state={},e.answerFormDataProps={updateFormData:function(t){return e.setState(t)},getFormData:function(){return e.state}},e}return Object(vl.a)(r,[{key:"render",value:function(){return Object(o.b)(jE.Provider,{value:this.answerFormDataProps,children:Object(o.b)(e,Object.assign({},this.props,this.answerFormDataProps))})}}]),r}(a.Component);return tl()(t,e)},CE=function(e){var t,n=Object(B.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};function wE(e){var t=e.answer,n=(t=void 0===t?{}:t).rewardInfo,r=(n=void 0===n?{}:n).isRewardable,i=void 0!==r&&r,c=e.question,s=c.id,u=c.relationship.isAnonymous,l=e.isAnswerRewardable,d=Object(a.useState)(!1),f=Object(gt.a)(d,2),p=f[0],h=f[1],b=Object(Ot.useSelector)(CE),v=Object(a.useState)(!1),m=Object(gt.a)(v,2),g=m[0],O=m[1],y=Object(a.useContext)(jE),j=y.getFormData,E=y.updateFormData,C=Object(Ot.useDispatch)(),T=j().rewardTagline,_=Object(a.useState)(i||T),S=Object(gt.a)(_,2),A=S[0],k=S[1];return Object(a.useEffect)((function(){E({rewardTagline:b})}),[b,E]),Object(a.useEffect)((function(){l&&(w.a.get("rewardNotication")||(O(!0),w.a.set("rewardNotication",!0)))}),[l]),Object(Bn.g)((function(){return O(!1)}),g?2e3:null),l?Object(o.c)(o.a,{children:[Object(o.b)(Db.a,{checked:A,onChange:function(e){if(!u)return!e.target.checked||T?(E({rewardTagline:""}),k(!1),void Object(Xo.n)(s,!1)):void h(!0);C(Object(Xr.g)("匿名回答无法开启赞赏,请先取消匿名","red"))},forceControlled:!0}),p&&Object(o.b)(OE,{submitRewardText:function(e){E({rewardTagline:e}),k(!0),C(Object(Xo.n)()),h(!1)},onClose:function(){return h(!1)},tagline:T,edit:!1})]}):null}var TE={allowed:"允许规范转载",need_payment:"允许付费转载",disallowed:"禁止转载"},_E=function(e){var t=e.checked,n=e.onChange,r=e.text,i=e.disabled;return Object(o.c)(Ef.Flex,{ml:"16px",alignItems:"center",as:"label",children:[Object(o.b)(Gj.a,{disabled:i,size:13,checked:t,onChange:n}),Object(o.b)(Ef.Text,{ml:"4px",fontSize:13,children:r})]})};function SE(e){var t=e.currentUser,n=Object(a.useContext)(jE),r=n.updateFormData,i=(0,n.getFormData)().reshipmentSettings,c=Object(a.useState)("allowed"),s=Object(gt.a)(c,2),u=s[0],l=s[1],d="disallowed"!==u;Object(a.useEffect)((function(){i?l(i):t.caEnabled&&l("need_payment")}),[i,t]);var f=function(e){"need_payment"!==e||t.caEnabled||window.open("/copyright/invite"),l(e),r({reshipmentSettings:e})};return Object(o.c)(o.a,{children:[Object(o.b)(mE,{title:"允许转载",children:Object(o.b)(Db.a,{checked:d,onChange:function(){f(d?"disallowed":t.caEnabled?"need_payment":"allowed")},forceControlled:!0})}),Object(o.b)(mE,{title:"转载设置",isSecondary:!0,children:Object(o.b)(Ef.Flex,{css:{opacity:d?1:.3},children:Object.keys(TE).map((function(e){return"disallowed"===e||"need_payment"===e&&t.isOrg?null:Object(o.b)(_E,{disabled:!d,text:TE[e],checked:e===u,onChange:function(t){t.target.checked&&f(e)}},e)}))})})]})}function AE(e){var t=e.isAnonymous,n=e.handleToggleAnonymous,r=e.isSmall;return Object(o.b)(Db.a,{css:r?{transform:"scale(0.5)"}:{},checked:t,onChange:n,forceControlled:!0})}function kE(e){var t=e.isSmall,n=Object(a.useContext)(jE),r=n.updateFormData,i=(0,n.getFormData)().pushActivity,c=Object(Pb.a)();Object(a.useEffect)((function(){r({pushActivity:void 0===i||i})}),[i,r]);return Object(o.b)(Db.a,{css:t?{transform:"scale(0.5)"}:{},checked:i,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}),c.confirm("设置后,关注你的其他用户将无法在「首页 - 关注」阅读这篇回答",{title:"关闭推送给关注者吗",ok:"关闭推送"}).then((function(){q.a.trackEvent(null,{id:8363,action:"Click"}),r({pushActivity:!1})})).catch((function(){})))},forceControlled:!0})}var RE={all:"开放评论",censor:"预审评论",nobody:"关闭评论"},IE={all:"允许任何人评论",follower:"允许关注我的人评论",followee:"允许我关注的人评论",paid:"付费用户可评论",censor:"答主筛选显示",nobody:"禁止评论"},xE=function(e){var t=e.checked,n=e.onChange,r=e.text,i=e.disabled;return Object(o.c)(Ef.Flex,{ml:"16px",alignItems:"center",as:"label",children:[Object(o.b)(Gj.a,{size:12,checked:t,onChange:n,disabled:i}),Object(o.b)(Ef.Text,{ml:"4px",fontSize:13,children:r})]})};function NE(){var e=Object(Ot.useSelector)(B.f),t=Object(a.useContext)(jE),n=t.updateFormData,r=(0,t.getFormData)().commentPermission,i=Object(a.useState)("all"),c=Object(gt.a)(i,2),s=c[0],u=c[1],l="all"!==s;Object(a.useEffect)((function(){r&&u(r)}),[r]);var d=function(e){e!==s&&(u(e),e&&n({commentPermission:e}))},f=e?RE:Object.keys(IE).filter((function(e){if("paid"!==e)return"follower"!==e})).reduce((function(e,t){return Object.assign({},e,Object(Ut.a)({},t,IE[t]))}),{});return Object(o.c)(o.a,{children:[Object(o.b)(mE,{title:"评论限制",children:Object(o.b)(Db.a,{checked:l,onChange:function(){d(l?"all":Object.keys(f)[1])},forceControlled:!0})}),Object(o.b)(mE,{title:"限制类型",isSecondary:!0,children:Object(o.b)(Ef.Flex,{justifyContent:"space-between",css:{opacity:l?1:.3},children:Object.keys(f).map((function(e){return"all"===e?null:Object(o.b)(xE,{text:f[e],checked:e===s,onChange:function(t){t.target.checked&&d(e)},disabled:!l},e)}))})})]})}var DE=n(196),PE=n(1103);function LE(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=td()(e);if(t){var o=td()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $l()(this,n)}}var ME=function(e){Jl()(n,e);var t=LE(n);function n(){var e;Wl()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleChange=function(t){e.props.onChange(t)},e}return Ql()(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.children,r=e.name,o=e.type,i=e.value,a=e.checked,c=JSON.stringify(i);return Object(Md.c)("label",{className:rl()("CheckItem",t)},Object(Md.c)("input",{className:"CheckItem-input",type:o,name:r,value:c,onChange:this.handleChange,checked:a}),Object(Md.c)("div",{className:"CheckItem-box"},Object(Md.c)("div",{className:"CheckItem-inner"},n),Object(Md.c)(PE.a,{className:"CheckItem-icon",size:20})))}}]),n}(a.Component);ME.propTypes={name:jl.a.string,onChange:jl.a.func,checked:jl.a.bool,className:jl.a.string,type:jl.a.string,value:jl.a.any},ME.defaultProps={name:"checkitems",type:"checkbox"};var UE=ME,BE=function(e){var t=e.onClick,n=e.text,r=Object(_e.a)(e,["onClick","text"]);return Object(o.c)(yf.c,Object.assign({preset:"link",onClick:t,css:{fontSize:15}},r,{children:[Object(o.b)(Gv.a,{text:!0,center:!0})," ",n]}))};BE.defaultProps={text:"修改"};var zE=BE,FE=n(108);function GE(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var VE=function(e){Object(ml.a)(n,e);var t=GE(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={value:null},e.handleModify=function(){e.setState({modifying:!0})},e.handleChange=function(t){e.setState({value:t.target.value})},e.handleCancel=function(){e.setState({value:null,modifying:!1})},e.handleSubmit=function(t){t.preventDefault(),e.props.onBioChange(e.state.value),e.handleCancel()},e.handleSelect=function(){e.props.onSelect(e.props.value)},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.user,n=e.bio,r=e.title,i=e.checked,a=e.rich,c=this.state,s=c.modifying,u=c.value;return s?Object(o.c)("div",{className:"TopicBioItem",children:[Object(o.b)("div",{className:"TopicBioItem-title",children:r}),Object(o.c)("form",{onSubmit:this.handleSubmit,children:[Object(o.b)("div",{className:"TopicBioItem-inner",children:Object(o.b)(FE.a,{className:"TopicBioItem-authorInfo",noLink:!0,author:t,children:Object(o.b)(Hl.a,{className:"TopicBioItem-input",defaultValue:n,onChange:this.handleChange,placeholder:r,autoFocus:!0})})}),Object(o.c)("div",{className:"TopicBioItem-inputFooter",children:[Object(o.b)(ph.a,{current:u?u.length:0,max:40}),Object(o.c)("div",{className:"TopicBioItem-actions",children:[Object(o.b)(yf.c,{preset:"plain",type:"reset",onClick:this.handleCancel,children:"取消"}),Object(o.b)(yf.c,{preset:"primary",color:"blue",type:"submit",children:"保存"})]})]})]})]}):n?Object(o.c)("div",{className:"TopicBioItem",children:[Object(o.b)("div",{className:"TopicBioItem-title",children:r}),Object(o.b)(UE,{name:"topic-bio",type:"radio",onChange:this.handleSelect,value:this.props.value,checked:i,children:Object(o.b)(FE.a,{noLink:!0,author:t,className:"TopicBioItem-authorInfo",children:Object(o.c)("div",{children:[a?Object(o.b)(DE.a,{inline:!0,className:"TopicBioItem-bio",html:n}):Object(o.b)("span",{className:"TopicBioItem-bio",children:n}),Object(o.b)(zE,{className:"TopicBioItem-modifyButton",onClick:this.handleModify})]})})})]}):Object(o.b)("div",{className:"TopicBioItem",children:Object(o.c)(yf.c,{className:"TopicBioItem-addButton",size:"spread",preset:"link",onClick:this.handleModify,children:[Object(o.b)(Hp.a,{text:!0,center:!0})," 添加",r]})})}}]),n}(a.Component);VE.propTypes={user:jl.a.object.isRequired,title:jl.a.node.isRequired,value:jl.a.object.isRequired,onBioChange:jl.a.func.isRequired,onSelect:jl.a.func.isRequired,checked:jl.a.bool.isRequired};var HE=VE;function qE(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var KE=function(e,t){var n=e.type,r=e.topic,o=(r=void 0===r?{}:r).id,i=t.type,a=t.topic,c=(a=void 0===a?{}:a).id;return n===i&&o===c},WE=function(e){Object(ml.a)(n,e);var t=qE(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={value:null},e.handleSelect=function(t){return e.setState({value:t})},e.handleChoose=function(){return e.props.onBioChoose(e.state.value)},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this;if(this.props.isFetching)return Object(o.b)("div",{className:"TopicBios-loading",children:Object(o.b)(sO.a,{})});var t=this.props,n=t.user,r=t.question.topics,i=t.bios,a=t.currentBio,c=t.onHeadlineUpdate,s=t.onBioUpdate,u=this.state.value||a,l={type:"headline"};return Object(o.c)("div",{children:[Object(o.c)("div",{className:"TopicBioItems",children:[Object(o.b)(HE,{title:"一句话介绍",user:n,bio:n.headline,value:l,onBioChange:c,onSelect:this.handleSelect,checked:KE(u,l),rich:!0}),r.map((function(t){var r={type:"topic",topic:{id:t.id}};return Object(o.b)(HE,Object.assign({title:"在 ".concat(t.name," 话题下的话题经验"),user:n},function(e,t){return e.find((function(e){return e.topic.id===t}))}(i,t.id),{value:r,onBioChange:function(e){return s(t.id,e)},onSelect:e.handleSelect,checked:KE(u,r)}),t.id)}))]}),Object(o.b)(Wh.a,{children:Object(o.b)(yf.c,{color:"blue",preset:"primary",onClick:this.handleChoose,children:"完成"})})]})}}]),n}(a.Component);WE.propTypes={onHeadlineUpdate:jl.a.func.isRequired,onBioUpdate:jl.a.func.isRequired,onBioChoose:jl.a.func.isRequired,question:jl.a.object.isRequired,user:jl.a.object.isRequired};var YE=WE;function QE(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var ZE=function(e){Object(ml.a)(n,e);var t=QE(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleUpdateHeadline=function(t){e.props.updateProfile(null,{headline:t})},e.handleUpdateBio=function(t,n){e.props.updateBio(t,n)},e.handleBioChoose=function(t){t&&e.props.chooseBio(e.props.question.id,t),e.props.onClose()},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){this.props.loadBios(this.props.question.id)}},{key:"render",value:function(){return Object(o.b)(YE,Object.assign({onHeadlineUpdate:this.handleUpdateHeadline,onBioUpdate:this.handleUpdateBio,onBioChoose:this.handleBioChoose},this.props))}}]),n}(a.Component);ZE.contextTypes={currentUser:jl.a.object},ZE.propTypes={question:jl.a.object.isRequired};var JE=Object(Ot.connect)((function(e,t){var n=e.currentUser,r=e.question.bio,o=e.entities,i=o.questions,a=o.users,c=e.topic.bios,s=t.question.id,u=i[s],l=(r[s]||{result:{type:"headline"}}).result;return{isFetching:c.isFetching,currentBio:{type:l.type,topic:l.topic},bios:u.topics.map((function(e){return{topic:e,bio:c[e.id]}})),question:u,user:a[n]}}),{updateProfile:On.h,updateBio:lo.g,chooseBio:yn.d,loadBios:yn.j})(ZE);function XE(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var $E=function(e){Object(ml.a)(n,e);var t=XE(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.shown,n=e.onClose,r=Object(_e.a)(e,["shown","onClose"]);return Object(o.b)(Wh.b,{title:"编辑话题经验",subtitle:Object(o.c)("span",{children:["可以填写你从事的职业、取得的资格或过往经历,",Object(o.b)("br",{}),"让你在这个问题下的回答更具说服力。"]}),onClose:n,size:"large",hotKeyClosable:!1,maskClosable:!1,children:t&&Object(o.b)(JE,Object.assign({},r,{onClose:n}))})}}]),n}(a.Component);$E.propTypes=Object.assign({shown:jl.a.bool.isRequired,onClose:jl.a.func.isRequired},JE.propTypes);var eC=$E,tC=function(e){var t=e.questionId,n=e.currentUser,r=Object(Ot.useSelector)((function(e){return e.question.bio})),i=Object(Ot.useSelector)((function(e){return e.topic.bios})),a=(r[t]||{result:{type:"headline"}}).result;return"topic"===a.type&&(a.bio=i[a.topic.id]||a.bio),a.bio&&"headline"!==a.type?a.bio:n.headline?Object(o.b)(DE.a,{inline:!0,html:(a||{}).bio||n.headline}):""};function nC(e){var t=e.question,n=e.currentUser,r=Object(a.useState)(!1),i=Object(gt.a)(r,2),c=i[0],s=i[1];return Object(o.c)(o.a,{children:[Object(o.c)(Ef.Flex,{maxWidth:454,color:"GBL05A",alignItems:"center",css:{cursor:"pointer"},onClick:function(){s(!0)},children:[Object(o.b)(Hb.a,{size:20}),Object(o.b)(Ef.Text,{ml:"5px",fontSize:13,color:"GBK06A",css:[Object(Et.d)(1)],children:Object(o.b)(tC,{questionId:t.id,currentUser:n})})]}),Object(o.b)(eC,{shown:c,question:t,onClose:function(){return s(!1)}})]})}function rC(e){var t=e.setScheduledPublish,n=Object(a.useRef)(),r=new Date;return Object(o.b)(Vy,{css:function(e){return{fontSize:13,color:e.colors.GBL05A}},onRef:n,value:r,min:r,max:Zg.a(r,7),onChange:function(e,r){t(!0,e),q.a.setModule(n.current,{module:"Unknown",module_name:r.date?"日期":r.hours?"小时":r.minutes?"分钟":void 0}),q.a.trackEvent(n.current,{action:"Click",id:5731,name:"回答"})}})}var oC=n(1056),iC=function(e){var t=e.openModal,n=e.handleHelpClick,r=function(e){n(e)};return Object(o.b)(Wh.b,{title:"什么是「创作声明」?",subtitle:"",onClose:function(){r(!1)},className:"DisclaimerEntry-helpWrap",children:t&&Object(o.c)("div",{children:[Object(o.c)("div",{className:"DisclaimerEntry-helpContent",children:[Object(o.b)("span",{className:"DisclaimerEntry-helpContentBold",children:"「创作声明」"}),"是为自己创作的添加个人声明的工具。当你在创作特定内容(如内容存在虚构或剧透等情节)时,可设置创作声明,该声明将会展示在回答或文章开头。创作声明表达的是创作者对内容负责的态度。知乎鼓励创作者设置创作声明,以方便知友更好地辨识和理解内容信息。你也可以在编辑内容时,关闭创作声明。"]}),Object(o.b)("button",{className:"DisclaimerEntry-helpBtn",onClick:function(){r(!1)},children:"我知道了"})]})})},aC={type:"none",description:"无声明"},cC=function(){var e=Object(a.useState)(!1),t=Object(gt.a)(e,2),n=t[0],r=t[1];return Object(o.c)(o.a,{children:[Object(o.c)(Ef.Flex,{color:"GBL05A",alignItems:"center",children:[Object(o.b)(Ef.Text,{mr:"4px",fontSize:14,fontWeight:"bold",children:"创作声明"}),Object(o.b)(Ph.a,{text:!0,center:!0,css:{cursor:"pointer"},onClick:function(){r(!0),q.a.trackEvent(null,{id:5604,action:"Click"}),q.a.trackEvent(void 0,{id:7840,action:"Click"})}})]}),Object(o.b)(iC,{openModal:n,handleHelpClick:function(){return r(!1)}})]})},sC=function(e){var t=e.question,n=e.answer,r=e.isSmall,c=e.positionStatus,s=Object(a.useContext)(jE),u=s.getFormData,l=s.updateFormData,d=Object(Ot.useDispatch)(),f=Object(Ot.useSelector)((function(e){return e.question.disclaimers[t.id]})),p=u().disclaimerType,h=null==f?void 0:f.find((function(e){return e.type===p})),b=Object(Ot.useSelector)((function(e){return Object(zt.b)(e,null==n?void 0:n.id)})),v=(null==f?void 0:f.length)>0&&(!(null==n?void 0:n.id)||b);Object(a.useEffect)((function(){b&&l(function(e){var t,n,r,o,i="open"===(null==e||null===(t=e.disclaimerInfo)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.status);return{isDisclaimerChecked:i,disclaimerType:i?null==e||null===(r=e.disclaimerInfo)||void 0===r||null===(o=r[0])||void 0===o?void 0:o.type:"none"}}(b))}),[Boolean(b)]),Object(a.useEffect)((function(){f||d(Object(yn.k)(t.id))}),[]);return v?Object(o.b)(bb.c,{positionStatus:c,toggler:Object(o.c)(Ef.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(o.b)(Ef.Text,{mr:"4px",color:r?"GBL05A":"GBK06A",children:(null==h?void 0:h.description)||aC.description}),Object(o.b)(oC.a,{text:!0,center:!0})]})),menuClassName:"AnswerItem-selfMenu",itemClassName:"AnswerItem-selectMenuItem",children:[].concat(Object(i.a)(f),[aC]).map((function(e){return Object(o.b)(Yv.a,{onClick:function(){return function(e){l({isDisclaimerChecked:"none"!==e.type,disclaimerType:e.type})}(e)},checked:e.type===p,children:e.description},e.type)}))}):null};function uC(e){var t,n=e.question,r=e.answer,i=e.isVideoAnswer,c=e.handleToggleAnonymous,s=e.positionStatus,u=e.isReediting,l=e.setScheduledPublish,d=e.canScheduledPublish,f=e.settingExpanded,p=e.handleExpand,h=e.isFullScreen,b=Object(Ot.useDispatch)(),v=Object(Ot.useSelector)(B.b),m=Object(Ot.useSelector)((function(e){return e.switches})).isAnswerRewardable;Object(a.useEffect)((function(){void 0===m&&b(Wo(["isAnswerRewardable"]))}),[b,m]);var g=null==n||null===(t=n.relationship)||void 0===t?void 0:t.isAnonymous,O="show"===Object(z.o)("gue_anonymous"),y=(n||{}).questionType,j=v&&!v.isOrg,E=j&&("normal"===y||"commercial"===y&&O||g)&&!i,C=Boolean(n||r)&&!(null==r?void 0:r.id);return i&&u?null:Object(o.c)(Ef.Box,Object.assign({p:"0 20px",width:"100%"},h&&{mx:"auto",maxWidth:688},{bg:"GBK99A",css:function(e){return Object.assign({position:"relative"},f?Object(Et.c)({borderTop:"1px solid ".concat(e.colors.GBK09A)}):{boxShadow:"0 -1px 3px ".concat(e.colorMod(e.colors.GBK02B).alpha(.12))})},children:[Object(o.c)(Ef.Flex,{py:"13px",justifyContent:"space-between",alignItems:"center",css:function(e){return Object.assign({},Object(Et.c)({borderBottom:"1px solid ".concat(e.colors.GBK09A)}))},children:[Object(o.c)(Ef.Flex,{alignItems:"center",children:[Object(o.b)(Ef.Text,{mr:"4px",fontSize:15,fontWeight:"bold",color:"GBK03A",children:"发布设置"}),!f&&!i&&Object(o.c)(o.a,{children:[Object(o.c)(Ef.Flex,{ml:"16px",alignItems:"center",children:[Object(o.b)(cC,{}),Object(o.b)(sC,{isSmall:!0,question:n,answer:r,positionStatus:s})]}),E&&!u&&Object(o.c)(Ef.Flex,{ml:"16px",alignItems:"center",children:[Object(o.b)(Ef.Text,{fontSize:14,fontWeight:"bold",color:"GBL05A",children:"匿名发布"}),Object(o.b)(AE,{isSmall:!0,isAnonymous:g,answer:r,handleToggleAnonymous:c})]}),!u&&Object(o.c)(Ef.Flex,{ml:"16px",alignItems:"center",children:[Object(o.b)(Ef.Text,{fontSize:14,fontWeight:"bold",color:"GBL05A",children:"推送给关注者"}),Object(o.b)(kE,{isSmall:!0})]})]})]}),Object(o.c)(K.a,{as:Ef.Flex,zaAction:"Unknown",zaText:f?"收起":"全部设置",zaType:"Button",alignItems:"center",color:"GBL05A",css:{cursor:"pointer"},onClick:p,children:[Object(o.b)(Ef.Text,{fontSize:14,mr:"4px",children:f?"收起":"全部设置"}),f?Object(o.b)(bE.a,{size:20,center:!0}):Object(o.b)(vE.a,{size:20,center:!0})]})]}),Object(o.c)("div",{css:{maxHeight:f?"auto":0,overflowY:"hidden"},children:[!i&&Object(o.b)(mE,{customTitle:Object(o.b)(cC,{}),children:Object(o.b)(sC,{question:n,answer:r,positionStatus:s})}),E&&!u&&Object(o.b)(mE,{title:"匿名发布",children:Object(o.b)(AE,{isAnonymous:g,answer:r,handleToggleAnonymous:c})}),!u&&d&&Object(o.b)(mE,{title:"定时发布",children:Object(o.b)(rC,{setScheduledPublish:l})}),!u&&j&&Object(o.b)(mE,{title:"编辑一句话介绍 / 话题经验",children:Object(o.b)(nC,{question:n,currentUser:v})}),(n||r)&&!i&&m&&Object(o.b)(mE,{title:"开启赞赏",children:Object(o.b)(wE,{question:n,answer:r,isAnswerRewardable:!0})}),C&&!i&&Object(o.b)(mE,{title:"推送给关注者",children:Object(o.b)(kE,{})}),!u&&Object(o.c)(o.a,{children:[Object(o.b)(SE,{currentUser:v}),Object(o.b)(NE,{})]})]})]}))}function lC(e){var t=e.type,n=e.textCount,r=e.draftStatus,i=e.removeDraft,a=e.handleSubmit,c=e.isReediting,s=e.scheduledPublishAt,u=e.onCancelEdit,l=e.draft,d=e.canSubmit,f=e.isFullScreen;return Object(o.c)(Ef.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(o.c)(Ef.Flex,{alignItems:"center",children:[Object(o.b)(Ef.Text,{width:86,height:34,lineHeight:"34px",textAlign:"center",fontSize:14,color:"GBK99A",bg:"GBL01A",css:{borderRadius:3,cursor:d?"pointer":"not-allowed",opacity:d?1:.3},onClick:a,children:c?"提交修改":s?"定时发送":"发布".concat("answer"===t?"回答":"文章")}),c&&Object(o.b)(Ef.Text,{color:"GBL07A",ml:"10px",onClick:u,css:{cursor:"pointer"},children:l?"保存草稿并离开":"取消"})]}),Object(o.c)(Ef.Text,{fontSize:14,color:"GBL05A",children:[n?"共 ".concat(n," 字"):"",n&&r?",":"",r,r&&Object(o.b)(dp,{text:!0,center:!0,css:{marginLeft:8,cursor:"pointer"},onClick:i})]})]}))}function dC(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var fC=function(e){Object(ml.a)(n,e);var t=dC(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleSubmit=function(){var t=e.props,n=t.onSubmit,r=t.onCancel,o=t.needCancel;(void 0===o||o)&&r(),n()},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.subtitle,r=e.shown,i=e.onCancel,a=e.className,c=e.isMobile,s=e.confirmText,u=e.cancelText,l=e.showButtonHorizontal,d=e.showConfirmButtonRight,f=Object(o.b)(yf.c,{preset:"primary",color:"blue",onClick:this.handleSubmit,children:s||"确认"},"confirm"),p=Object(o.b)(yf.c,{onClick:i,children:u||"取消"},"cancel"),h=c||d?[p,f]:[f,p];return Object(o.b)(Pt.b,{wrapperClassName:"ConfirmModal-wrapper",className:rl()("ConfirmModal",a),title:t,size:c?"small":"default",subtitle:n,onClose:i,closeButton:!1,buttonGroupOnly:!0,children:r&&Object(o.b)(Pt.a,{direction:c||l?"horizontal":"vertical",children:h})})}}]),n}(a.Component),pC=function(e){var t=e.className,n=e.onClose,r=e.shown,i=e.allInviters,a=e.onChoose;return Object(o.b)(Pt.b,{title:"添加「谢邀」卡片",subtitle:"选择邀请人,添加感谢他的卡片",onClose:n,className:t,css:{width:"536px"},children:r&&i.map((function(e){return Object(o.c)(Ef.Flex,{css:{padding:"12px 0"},children:[Object(o.b)(FE.a,{author:e}),Object(o.b)(yf.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)}))})},hC=n(310),bC=n(156),vC=Object.assign;var mC=function(e){return c.a.createElement(Nm.a,vC({width:"150",height:"120",viewBox:"0 0 150 120"},e),c.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"}),c.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 gC(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var OC={current:"当前草稿",saved:"自动保存",published:"发布过的版本"},yC=function(e){Object(ml.a)(n,e);var t=gC(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).formatDate=function(e){return dy("current"===e.versionType?1e3*e.updatedAt:1e3*e.createdAt,"yyyy-MM-dd HH:mm")},e.handleDraftClick=function(e){e.preventDefault()},e}return Object(vl.a)(n,[{key:"renderCurrentDraft",value:function(){var e=this.props,t=e.currentDraft,n=e.onRevert,r=t.isFetching,i=t.data;return Object(o.c)("div",{className:"DraftHistory-main",children:[r&&Object(o.b)(sO.a,{className:"DraftHistory-loading"}),!r&&i&&Object(o.c)(a.Fragment,{children:[i.draft.title&&Object(o.b)("div",{className:"DraftHistory-draftTitle",children:i.draft.title}),Object(o.b)(bC.a,{className:"DraftHistory-draft",html:i.draft.content,onClick:this.handleDraftClick}),Object(o.c)("div",{className:"DraftHistory-actions",children:[Object(o.c)("div",{className:"DraftHistory-meta",children:[this.formatDate(i)," ",OC[i.versionType]]}),Object(o.b)(yf.c,{className:"DraftHistory-revert",disabled:"current"===i.versionType,onClick:function(){return n(i)},children:"恢复此版本"})]})]})]})}},{key:"render",value:function(){var e=this,t=this.props,n=t.history,r=t.currentVersion,i=t.currentDraft,a=t.getHistory,c=t.onSelect;return n?n.isFetching&&!n.items?Object(o.b)("div",{className:"DraftHistory",children:Object(o.b)(sO.a,{className:"DraftHistory-loading"})}):Object(o.c)("div",{className:"DraftHistory",children:[Object(o.c)("div",{className:"DraftHistory-side",children:[Object(o.b)("div",{className:"DraftHistory-title",children:"历史版本"}),Object(o.b)(Bv.b,{className:"DraftHistory-history",getContainer:function(e){return e},isLoading:n.isFetching,isDrained:n.isDrained,onLoad:a,children:Object(o.b)("div",{children:n.items&&n.items.map((function(t,n){return Object(o.c)("a",{href:"#",className:rl()("DraftHistory-version",{"DraftHistory-version--selected":r&&t.versionType===r.versionType&&t.id===r.id}),onClick:function(e){e.preventDefault(),c(t)},children:[Object(o.b)("div",{className:"DraftHistory-versionDate",children:e.formatDate(t)}),Object(o.b)("div",{className:"DraftHistory-versionType",children:OC[t.versionType]})]},n)}))})})]}),n.items&&!n.items.length&&Object(o.b)("div",{className:"DraftHistory-main",children:Object(o.c)("div",{className:"DraftHistory-empty",children:[Object(o.b)(mC,{className:"DraftHistory-emptyIcon"}),Object(o.b)("div",{className:"DraftHistory-emptyText",children:"还没有历史版本"})]})}),i&&this.renderCurrentDraft()]}):null}}]),n}(a.Component);yC.propTypes={history:jl.a.object,currentVersion:jl.a.object,currentDraft:jl.a.object,onSelect:jl.a.func,onRevert:jl.a.func};var jC=yC;function EC(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var CC=function(e){Object(ml.a)(n,e);var t=EC(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={currentVersion:null},e.getHistory=function(){var t=e.props,n=t.type,r=t.id;(0,t.getHistory)(n,r)},e.handleSelect=function(t){e.setState({currentVersion:t})},e.handleRevert=function(t){var n=e.props,r=n.revert,o=n.onReverted;r(t.versionType,t.id).then((function(){o&&o(t)}))},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.type,n=e.id;(0,e.getHistory)(t,n)}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.drafts,o=n.getDraft,i=this.state.currentVersion,a=t.currentVersion;!i||a&&a.versionType===i.versionType&&a.id===i.id||r["".concat(i.versionType,"_").concat(i.id)]||o(i.versionType,i.id)}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.type,n=e.id;(0,e.reset)(t,n)}},{key:"render",value:function(){var e=this.props,t=e.history,n=e.drafts,r=this.state.currentVersion;return Object(o.b)(jC,{history:t,currentVersion:r,currentDraft:r?n["".concat(r.versionType,"_").concat(r.id)]:null,getHistory:this.getHistory,onSelect:this.handleSelect,onRevert:this.handleRevert})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.history&&e.history.items&&e.history.items.length&&!t.currentVersion?{currentVersion:e.history.items[0]}:null}}]),n}(a.Component);CC.propTypes={type:jl.a.string.isRequired,id:jl.a.number.isRequired,onReverted:jl.a.func};var wC=Object(Ot.connect)((function(e,t){var n=t.type,r=t.id;return{history:e.draftHistory.history["".concat(n,"_").concat(r)],drafts:e.draftHistory.drafts}}),{getHistory:function(e,t){return function(n,r){var o=r().draftHistory.history["".concat(e,"_").concat(t)];return n({meta:{type:e,id:t},API:{types:Si.GET_HISTORY,endpoint:o&&o.next?o.next:"draft-histories",query:{objectType:e,objectId:t}}})}},getDraft:function(e,t){return{meta:{versionType:e,versionId:t},API:{types:Si.GET_DRAFT,endpoint:"draft-history",query:{versionType:e,id:t}}}},revert:function(e,t){return{meta:{versionType:e,versionId:t},API:{types:Si.REVERT,method:"POST",endpoint:"draft-history/revert",body:Object($.decamelizeKeys)({versionType:e,id:t})}}},reset:function(e,t){return{type:Si.RESET,meta:{type:e,id:t}}}})(CC);function TC(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var _C=function(e){Object(ml.a)(n,e);var t=TC(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleReverted=function(t){var n=e.props,r=n.onClose,o=n.onReverted;o&&o(t),r&&r(),q.a.trackEvent(null,{id:5016,action:"Click"})},e.handleClose=function(){var t=e.props.onClose;t&&t(),q.a.trackEvent(null,{id:5015,action:"Click"})},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.shown,n=e.type,r=e.id;return Object(o.b)(Wh.b,{className:"DraftHistoryModal",size:"fullPage",onClose:this.handleClose,children:t&&Object(o.b)(wC,{type:n,id:r,onReverted:this.handleReverted})})}}]),n}(a.Component);_C.propTypes={shown:jl.a.bool.isRequired,onClose:jl.a.func,type:jl.a.string.isRequired,id:jl.a.number.isRequired,onReverted:jl.a.func},_C.defaultProps={shown:!0};var SC=_C,AC=function(e){var t=e.shown,n=e.hasShown,r=e.children,o=Object(a.useRef)(n),i=Object(a.useRef)(t);return Object(a.useEffect)((function(){!t&&i.current&&(o.current=!0),i.current=t}),[t]),t&&!o.current&&r},kC=function(e){var t=e.className,n=e.shown,r=e.hasShown,i=e.inviters,c=e.onConfirm,s=e.onCancel,u=Object(a.useState)(n),l=Object(gt.a)(u,2),d=l[0],f=l[1],p=Object(a.useRef)(n);return Object(a.useEffect)((function(){p.current!==n&&f(n),p.current=n}),[n]),(null==i?void 0:i.length)>0&&Object(o.b)(AC,{shown:d,hasShown:r,children:Object(o.c)(Ef.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:[i.map((function(e,t){return Object(o.b)(Ef.Image,{src:i[0].avatarUrl,size:24,sx:{borderRadius:"50%",border:"2px solid",borderColor:"GBK99A",position:"relative",zIndex:i.length-t,marginLeft:t?"-14px":"0"}},e.id)})),Object(o.b)(Ef.Text,{ml:"8px",children:i[0].name+(i.length>1?"等 ".concat(i.length," 人"):"")}),"邀请你回答",Object(o.b)(Ef.Text,{color:"primary",ml:"16px",css:{cursor:"pointer"},onClick:function(){q.a.trackEvent(null,{id:7683,action:"Click",path:[{module_name:1===i.length?"0":"1"}]},{button:{text:"添加谢邀"}}),c&&c(i)},children:"添加谢邀"}),Object(o.b)(Ef.Text,{ml:"16px",css:{cursor:"pointer"},onClick:function(){f(!1),q.a.trackEvent(null,{id:7683,action:"Click",path:[{module_name:1===i.length?"0":"1"}]},{button:{text:"忽略"}}),s&&s()},children:"忽略"})]})})},RC=function(e){var t=e.shown,n=e.onClose;return Object(o.b)(Wh.b,{onClose:n,title:"该问题暂时只支持客户端进行回答",children:t&&Object(o.b)("div",{className:"SlideshowEditBlockModal",children:Object(o.b)(yf.c,{preset:yf.b.Primary,color:yf.a.Blue,onClick:n,children:"知道了"})})})};RC.propTypes={shown:jl.a.bool.isRequired,onClose:jl.a.func.isRequired};var IC=RC,xC=function(){return Object(o.b)("div",{className:"LabelContainer-loading"})},NC=function(e){var t=e.useOldLabels,r=e.item,i=e.abnormalDetailProps,c=e.collapseReasonProps,s=e.showDeleteButton,u=e.inviter,l=r.type,d=r.id,f=r.isLabeled,p=Object(Ot.useDispatch)(),h=Object(Ot.useSelector)((function(e){return t||i||c?{}:s?{thankInviterInfo:u}:Object(_i.c)(e,r)})),b=Object(Bn.c)((function(){return n.e(5).then(n.bind(null,1362))}));return Object(a.useEffect)((function(){f&&!h&&p(Object(_i.e)(l,d))}),[p,l,d,f,h]),b?Object(o.b)(b,Object.assign({data:h},e)):f&&!t?Object(o.b)(xC,{}):null},DC=Object(a.forwardRef)((function(e,t){var n=e.type,r=e.id,i=e.handleReverted,c=Object(a.useState)(!1),s=Object(gt.a)(c,2),u=s[0],l=s[1],d=Object(Bn.b)((function(){return l(!0)})),f=Object(Bn.b)((function(){return l(!1)}));return Object(a.useImperativeHandle)(t,(function(){return{handleOpen:d,handleClose:f}}),[d,f]),Object(o.b)(SC,{shown:u,onClose:function(){return l(!1)},type:n,id:r,onReverted:i})})),PC=function(e){var t=e.type,n=e.id,r=e.syncDraft,i=e.shouldShowToolbarButton,c=void 0===i?function(){return!0}:i,s={};s.draftModalRef=Object(a.createRef)(null);return{initialize:function(e){Object.assign(s,e)},components:[Object(o.b)(DC,{type:t,id:n,ref:s.draftModalRef,handleReverted:function(e){s.getEditorRef().props.resetWithValue(e.draft.content)}},"draft_history_modal")],toolbar:{section:"menu",label:"历史版本",icon:Qb,onClick:function(){r.flush(),s.draftModalRef.current.handleOpen(),q.a.trackEvent(null,{id:5013,action:"Click",name:"历史版本入口"})},shouldShow:c}}},LC=n(117),MC=n(238),UC=n(299),BC=n(344),zC=Object(a.forwardRef)((function(e,t){var n=e.getStore,r=e.getContentInfo,i=Object(a.useState)(!1),c=Object(gt.a)(i,2),s=c[0],u=c[1],l=r(),d=l.id,f=l.type;Object(a.useImperativeHandle)(t,(function(){return{setShowUserProfitCardSelector:u}}),[]);var p=function(){return Object(BC.a)(n().getEditorState()).filter((function(e){return"ad-link-card"===e.getType()}))};return Object(o.b)(o.a,{children:Object(o.b)(Wh.b,{className:"UserProfitCardSelector",size:"large",onClose:function(){u(!1)},children:s&&Object(o.b)("div",{className:"UserProfitCardSelector-content",children:Object(o.b)(OO,{className:"UserProfitCardSelector-iframe",src:"https://www.zhihu.com/selection/profit-selector?contentId=".concat(d,"&contentType=").concat(f),onMessage:function(e){var t=n().getEditorRef();if("ProfitCardSelector/submitProfitCardInfo"===(null==e?void 0:e.type)&&(null==e?void 0:e.payload)){var r=e.payload,o=r.type,i=r.id,a=r.url;if(r.preventClose||u(!1),"inserLinkCard"===o&&t.props.handleCommand("insert-link-card:".concat(a)),"insertMCNLinkCard"===o){if(Object(BC.a)(n().getEditorState()).filter((function(e){return"mcn-link-card"===e.getType()})).size>=rT)return void Ch.a.alert(null,{title:"一篇内容最多可添加 ".concat(rT," 个商品")});t.props.handleCommand("insert-mcn-link-card:".concat(i))}if("insertAdLinkCard"===o){if(i.startsWith("ZhiTask_"))if(p().filter((function(e){return e.getData().id.startsWith("ZhiTask_")})).size>=oT)return void Ch.a.alert("一篇内容最多可添加 ".concat(oT," 个「知+自选」卡片"));if(i.startsWith("fee_"))if(p().filter((function(e){return e.getData().id.startsWith("fee_")})).size>=aT)return void Ch.a.alert("一篇内容最多可添加 ".concat(aT," 个「付费回答」卡片"));t.props.handleCommand("insert-ad-link-card:".concat(i))}}}})})})})})),FC=function(e){var t=e.shouldDisabled,n=e.shouldShow,r=void 0===n?function(){return!0}:n,i=e.getContentInfo,c=void 0===i?function(){}:i,s={};return s.containerRef=Object(a.createRef)(),{initialize:function(e){Object.assign(s,e)},toolbar:{label:"用户收益",icon:$g,shouldShow:r,shouldDisabled:function(){return!!t()||null},section:LC.a.CUSTOM_MAIN,toolType:UC.b.ENTITY,onClick:function(){s.containerRef.current.setShowUserProfitCardSelector(!0),q.a.trackEvent(null,{id:6097,action:"Click"})},priority:1},toolbarV2:{label:"用户收益",text:"用户收益",icon:$g,shouldShow:r,shouldDisabled:function(){return!!t()||null},section:MC.a.BUSINESS_MEDIA,toolType:UC.b.ENTITY,onClick:function(){s.containerRef.current.setShowUserProfitCardSelector(!0),q.a.trackEvent(null,{id:6097,action:"Click"})},priority:1},components:Object(o.b)(zC,{ref:s.containerRef,getStore:function(){return s},getContentInfo:c})}},GC=Object(a.forwardRef)((function(e,t){var n=Object(a.useState)(!1),r=Object(gt.a)(n,2),i=r[0],c=r[1];return Object(a.useImperativeHandle)(t,(function(){return{setBaiduFileSelectorShown:c}}),[]),Object(o.b)(Hy,{shown:i,onClose:function(){return c(!1)},onSubmit:function(t){c(!1),e.onSubmit(t)}})})),VC=function(){var e={},t=function(t){e.getEditorRef().props.handleCommand("insert-file-link-card:".concat(JSON.stringify(t)))},n=function(){return Object(BC.a)(e.getEditorState()).filter((function(e){return"file-link-card"===e.getType()}))};return e.containerRef=Object(a.createRef)(),{initialize:function(t){Object.assign(e,t)},components:Object(o.b)(GC,{handleSubmit:t,ref:e.containerRef,onSubmit:t}),toolbar:{section:LC.a.CUSTOM_MAIN,label:"上传附件",icon:tO,toolType:UC.b.ENTITY,onClick:function(){n().size>=iT?Ch.a.alert(null,{title:"一篇内容最多可添加 ".concat(iT," 个附件")}):e.containerRef.current.setBaiduFileSelectorShown(!0)},priority:2},toolbarV2:{section:MC.a.BUSINESS_MEDIA,label:"上传附件",text:"网盘",icon:tO,toolType:UC.b.ENTITY,onClick:function(){n().size>=iT?Ch.a.alert(null,{title:"一篇内容最多可添加 ".concat(iT," 个附件")}):e.containerRef.current.setBaiduFileSelectorShown(!0)},priority:2}}};var HC=Object(a.forwardRef)((function(e,t){var n=e.getAllInviters,r=e.inviterQuery,i=e.getStore,c=e.getInitialThankInviterInfo,s=Object(a.useState)(!1),u=Object(gt.a)(s,2),l=u[0],d=u[1],f=Object(a.useState)(c()),p=Object(gt.a)(f,2),h=p[0],b=p[1],v=Object(a.useState)(null),m=Object(gt.a)(v,2),g=m[0],O=m[1],y=Object(Bn.b)((function(){return d(!1)}));return Object(a.useImperativeHandle)(t,(function(){return{openInviterListModal:function(){return d(!0)},getInvitersData:function(){return g},getThankInviterInfo:function(){return h}}}),[g,h]),Object(a.useEffect)((function(){n().then((function(e){var t=e.payload;O(t.data);var n=i();n.setEditorState(n.getEditorState())}))}),[]),Object(o.c)(o.a,{children:[h&&Object(o.b)(NC,{css:{marginBottom:16,marginTop:"4px !important"},showDeleteButton:!0,item:{isLabeled:!0},inviter:h,onDelete:function(){b(null)}}),(null==g?void 0:g.length)>0&&Object(o.b)(kC,{hasShown:Boolean(r)||Boolean(h),shown:!h,inviters:g,onConfirm:function(e){(null==e?void 0:e.length)&&(1!==e.length?d(!0):b(e[0]))}}),Object(o.b)(pC,{onClose:y,shown:l,allInviters:g,onChoose:function(e){b(e),y()}})]})})),qC=function(e){var t=e.getShouldShowToolbarButton,n=e.getAllInviters,r=e.inviterQuery,i=e.getInitialThankInviterInfo,c={},s=Object(a.createRef)(null);return{initialize:function(e){Object.assign(c,e)},componentsBeforeEditor:[{component:Object(o.b)(HC,{getAllInviters:n,inviterQuery:r,ref:s,getStore:function(){return c},getInitialThankInviterInfo:i}),priority:0}],getExtraPluginData:function(){var e,t,n;return t=i,n=null===(e=s.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:LC.a.CUSTOM_MAIN,priority:3,icon:nO.a,onClick:function(){s.current.openInviterListModal()},shouldShow:t,shouldDisabled:function(){var e,t,n;return Boolean(!(null===(e=s.current)||void 0===e||null===(t=e.getInvitersData())||void 0===t?void 0:t.length)||(null===(n=s.current)||void 0===n?void 0:n.getThankInviterInfo()))}},toolbarV2:{label:"添加谢邀",section:MC.a.BUSINESS_MEDIA,text:"谢邀",icon:nO.a,priority:3,onClick:function(){s.current.openInviterListModal()},shouldShow:t,shouldDisabled:function(){var e,t,n;return Boolean(!(null===(e=s.current)||void 0===e||null===(t=e.getInvitersData())||void 0===t?void 0:t.length)||(null===(n=s.current)||void 0===n?void 0:n.getThankInviterInfo()))}}}},KC=n(453),WC=n(345),YC=n.n(WC),QC=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 r=e.split("#"),o=Object(gt.a)(r,2),i=o[0],a=o[1],c=void 0===a?"":a,s=i.split("?"),u=Object(gt.a)(s,2),l=u[0],d=u[1],f=Object(WC.parse)(d),p=n?Object.assign({},f,t):Object.assign({},t,f),h=function(e,t){return t?e+t:""};return l+h("?",Object(WC.stringify)(p))+h("#",c)}catch(t){return console.error(t),e}},ZC=function(e){var t=e.tab,n=e.tabType,r=e.tabChange,i=e.searchPublicList,c=Object(a.useState)(""),s=Object(gt.a)(c,2),u=s[0],l=s[1];return Object(o.c)(Ef.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(o.b)(Ef.Flex,{children:t.map((function(e){return Object(o.b)("div",{className:rl()("MaterialLibraryHeader-classify",{active:n===e.type}),onClick:function(){r(e.type)},children:e.name},e.type)}))}),"public"===n&&Object(o.b)(Ef.Box,{width:"198px",children:Object(o.b)(Hl.a,{className:"MaterialLibraryHeader-search materials_library_public_search",placeholder:"搜索公共素材库",onChange:function(e){l(e.target.value)},after:Object(o.b)(Rl.a,{text:!0,onClick:function(){i({keyword:u,isFirst:!0})}}),onKeyUp:function(e){13===e.keyCode&&i({keyword:u,isFirst:!0})}})})]})};ZC.propTypes={tab:jl.a.array,tabType:jl.a.string,tabChange:jl.a.func,searchPublicList:jl.a.func};var JC=ZC,XC=n(1078),$C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ew=function(e){return c.a.createElement(xl.a,$C({fill:"currentColor"},e),c.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.586zm-.122 2.293A1 1 0 0 0 8.757 5H4.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h15.5a.25.25 0 0 0 .25-.25V7.25a.25.25 0 0 0-.25-.25h-8.164a1 1 0 0 1-.707-.293L9.464 5.293zM14.75 11a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25H13v1.75a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25V13H9.25a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25H11V9.25a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25V11h1.75z",fillRule:"evenodd",clipRule:"evenodd"}))};ew.defaultProps={name:"FolderPlus"};var tw=ew,nw=function(e){var t=e.type,n=e.className,r=e.inputShowName,i=void 0===r?"":r,c=e.resetInput,s=e.folderId,u=e.getFoldersList,l=e.navActiveId,d=Object(Dt.b)(),f=Object(a.useRef)(),p=Object(a.useState)(i),h=Object(gt.a)(p,2),b=h[0],v=h[1];return Object(o.b)("input",{ref:f,type:"text",className:rl()("MaterialLibrary-input-module",n),placeholder:"请输入文件名称",autoFocus:"autofocus",onChange:function(e){var t=e.target.value;v(t)},value:b,onBlur:function(){c&&c(""),"add"!==t&&b&&d("/api/v4/materials/pc_editor/folders/".concat(s),{method:"PUT",body:{name:b}}).then((function(){var e;null===(e=f.current)||void 0===e||e.blur(),u&&u(null,l)})).catch((function(e){var t,n,r;Ch.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)||"网络错误,稍后重试吧!")}))},onKeyUp:function(e){var t;13===e.keyCode&&(null===(t=f.current)||void 0===t||t.blur())}})};nw.propTypes={inputShowName:jl.a.string,resetInput:jl.a.func};var rw=nw,ow=function(e){var t,n=e.folders,r=void 0===n?{}:n,i=e.navActiveId,c=e.getFoldersList,s=e.navClick,u=Object(Dt.b)(),l=Object(a.useState)(""),d=Object(gt.a)(l,2),f=d[0],p=d[1],h=Object(a.useState)(""),b=Object(gt.a)(h,2),v=b[0],m=b[1],g=function(e,t){"nav-edit"===e?(p(t.id),m(t.name)):"nav-delete"===e&&Ch.a.confirm(Object(o.c)("div",{className:"MaterialLibrary-alert",children:[Object(o.b)("h2",{children:"是否删除已选择分类?"}),Object(o.b)("p",{children:"分类中的图片将归入未分类中"})]}),{text:{ok:"删除",cancel:"取消"}}).then((function(){u("/api/v4/materials/pc_editor/folders/".concat(t.id),{method:"DELETE",body:{delete_material:!1}}).then((function(e){var t,n;(null===(t=e.payload)||void 0===t?void 0:t.success)?(Ch.a.alert("已成功删除分组,该分组的图片已移动至「我的图片-未分类」"),c()):Ch.a.alert((null===(n=e.payload)||void 0===n?void 0:n.message)||"网络错误,稍后重试吧!")}))}),(function(){}))};return(null==r?void 0:r.hidden)?null:Object(o.c)("div",{className:"MaterialLibraryNav",children:[Object(o.c)("div",{className:"MaterialLibraryNav-nav",children:[Object(o.c)(Ef.Flex,{className:"MaterialLibraryNav-Mine",justifyContent:"space-between",alignItems:"center",children:[Object(o.c)(Ef.Flex,{justifyContent:"space-between",alignItems:"center",children:[Object(o.b)(XC.a,{className:"nav-icon"}),null==r?void 0:r.name]}),Object(o.b)("div",{className:"nav-num",children:null==r?void 0:r.materialCount})]}),null==r||null===(t=r.child)||void 0===t?void 0:t.map((function(e){return Object(o.c)(Ef.Flex,{className:rl()("MaterialLibraryNav-Folder",{active:i===e.id}),justifyContent:"space-between",alignItems:"center",onClick:function(){s(e.id)},children:[Object(o.c)(Ef.Flex,{justifyContent:"space-between",alignItems:"center",children:[Object(o.b)(tO,{className:"nav-icon"}),f!==e.id&&Object(o.b)("div",{className:"nav-name",children:e.name})]}),f!==e.id&&Object(o.b)("div",{className:rl()("nav-num",{"disable-hover":!e.supportEdit&&!e.supportDelete}),children:e.materialCount||0}),f!==e.id&&(e.supportEdit||e.supportDelete)&&Object(o.c)(Ef.Flex,{className:"nav-handle",children:[e.supportEdit&&Object(o.b)(K.a,{as:Ef.Flex,zaType:"Button",zaText:"编辑",alignItems:"center",justifyContent:"center",onClick:function(t){t.stopPropagation(),g("nav-edit",e)},width:"16px",height:"16px",css:function(e){return{borderRadius:"12px",backgroundColor:e.colors.GBK99A,cursor:"pointer"}},children:Object(o.b)(Hb.a,{fill:"currentColor",size:10})}),e.supportDelete&&Object(o.b)(K.a,{as:Ef.Flex,zaType:"Button",zaText:"删除",alignItems:"center",justifyContent:"center",onClick:function(t){t.stopPropagation(),g("nav-delete",e)},width:"16px",height:"16px",css:function(e){return{marginLeft:"4px",borderRadius:"12px",backgroundColor:e.colors.GBK99A,cursor:"pointer"}},children:Object(o.b)(Il.a,{fill:"currentColor",size:10})})]}),f===e.id&&Object(o.b)(rw,{folderId:e.id,navActiveId:i,inputShowName:v,getFoldersList:c,resetInput:function(e){p(e)}})]},e.id)}))]}),Object(o.c)(Ef.Flex,{className:"MaterialLibraryNav-Add",justifyContent:"space-between",alignItems:"center",onClick:function(){var e;(null==r||null===(e=r.child)||void 0===e?void 0:e.length)>15?Ch.a.alert("分组已达上限,请删除已有的分类后再行添加"):Ch.a.confirm(Object(o.c)("div",{className:"MaterialLibrary-alert",children:[Object(o.b)("h2",{children:"添加分类"}),Object(o.b)(rw,{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;u("/api/v4/materials/pc_editor/folders",{method:"POST",body:{name:t,material_type:"image"}}).then((function(){c()})).catch((function(e){var t,n,r;Ch.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(o.b)(tw,{className:"nav-icon"}),"添加分类"]})]})};ow.propTypes={folders:jl.a.object,getFoldersList:jl.a.func,navClick:jl.a.func};var iw=ow,aw=n(504),cw=n(239),sw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uw=function(e){return c.a.createElement(xl.a,sw({fill:"currentColor"},e),c.a.createElement("path",{d:"M6 20h12a2 2 0 0 0 2-2V8.828a2 2 0 0 0-.586-1.414l-2.828-2.828A2 2 0 0 0 15.172 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2zm.5-2h11a.5.5 0 0 0 .5-.5V9.207a.5.5 0 0 0-.146-.353l-2.708-2.708A.5.5 0 0 0 14.793 6H6.5a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5zm4.086-9.886a2 2 0 0 1 2.828 0l2.44 2.44a.5.5 0 0 1 0 .707l-.708.707a.5.5 0 0 1-.707 0L13 10.528V13.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-2.972l-1.438 1.44a.5.5 0 0 1-.707 0l-.708-.707a.5.5 0 0 1 0-.708l2.44-2.439zM7.5 15a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-9z",fillRule:"evenodd",clipRule:"evenodd"}))};uw.defaultProps={name:"UpLoad"};var lw=uw,dw=function(e){var t=e.handleUploadImage,n=Object(a.useRef)();return Object(o.c)(o.a,{children:[Object(o.b)("input",{css:{display:"none"},ref:n,type:"file",onChange:t,accept:"image/*",multiple:!0}),Object(o.c)(K.a,{zaType:"Button",zaText:"本地上传图片",as:Ef.Flex,role:"button",width:"96px",height:"96px",fontSize:"12px",color:"GBL05A",alignItems:"center",justifyContent:"center",flexDirection:"column",ml:"14px",mb:"10px",onClick:function(){return n.current.click()},css:function(e){return{verticalAlign:"top",display:"inline-flex",cursor:"pointer",borderRadius:"2px",backgroundColor:e.colorMod(e.colors.GBL05A).alpha(.08)}},children:[Object(o.b)(lw,{}),Object(o.b)(Ef.Box,{children:"本地上传"})]})]})},fw=Object.assign;var pw=function(e){return c.a.createElement(Nm.a,fw({width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),c.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"}))},hw=Object.assign;var bw=function(e){return c.a.createElement(Nm.a,hw({width:"20",height:"20",viewBox:"0 0 20 20"},e),c.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"}))},vw=function(){return Object(o.b)(Ef.Box,{color:"GBK02A",width:"96px",css:function(e){return{position:"absolute",left:"4px",bottom:"4px",width:"32px",height:"16px",lineHeight:"16px",textAlign:"center",fontSize:"12px",background:e.colorMod(e.colors.GBK02A).alpha(.8),color:e.colors.GBK99B,borderRadius:"2px"}},children:"GIF"})},mw=function(){return Object(o.b)(Ef.Box,{color:"GBK02A",width:"96px",css:function(e){return{position:"absolute",left:"4px",bottom:"4px",width:"48px",height:"16px",lineHeight:"16px",textAlign:"center",fontSize:"12px",background:e.colors.GBL05A,color:e.colors.GBK99A,borderRadius:"2px",zIndex:1}},children:"已删除"})},gw=function(e){var t=e.data,n=e.tabType,r=e.chooseImage,i=e.insertImageSingle,a=e.getLatestList,c=Object(Dt.b)();return Object(o.c)(Ef.Box,{color:"GBK02A",width:"96px",css:{display:"inline-block",marginBottom:"10px",marginLeft:"14px",verticalAlign:"top"},children:[Object(o.c)(Ef.Box,{width:"96px",height:"96px",css:function(e){return{borderRadius:"2px",cursor:"pointer",position:"relative",backgroundColor:e.colorMod(e.colors.GBK02A).alpha(.08),"&:hover > .MaterialLibrary-imgListItemHover":{display:"flex"}}},children:[Object(o.b)(Ef.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(o.c)("div",{className:"MaterialLibrary-imgListItemHover",children:[Object(o.b)(K.a,{as:Ef.Flex,zaType:"Button",zaText:"添加图片",alignItems:"center",justifyContent:"center",title:"添加",onClick:function(){i(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(o.b)(pw,{fill:"currentColor",size:18})}),(null==t?void 0:t.deleted)?Object(o.b)(K.a,{as:Ef.Flex,zaType:"Button",zaText:"选择图片",alignItems:"center",justifyContent:"center",title:"选择",onClick:function(){Ch.a.confirm(Object(o.c)("div",{className:"MaterialLibrary-alert",children:[Object(o.b)("h2",{children:"是否从最近使用删除图片?"}),Object(o.b)("p",{children:"插入至内容中的图片不会受到影响"})]}),{text:{ok:"删除",cancel:"取消"}}).then((function(){c("/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}):Ch.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(o.b)(dp,{fill:"currentColor",size:18})}):Object(o.b)(K.a,{as:Ef.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(o.b)(K.a,{as:Ef.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(o.b)(bw,{fill:"currentColor",size:13})}),"dynamic"===t.subtype&&Object(o.b)(vw,{}),t.deleted&&Object(o.b)(mw,{})]}),Object(o.b)(Ef.Box,{mt:"4px",fontSize:"10px",lineHeight:"20px",css:Object(Et.d)(1),title:"文件名称",children:null==t?void 0:t.name})]})};gw.propTypes={data:jl.a.string,tabType:jl.a.string,chooseImage:jl.a.func,insertImageSingle:jl.a.func,getLatestList:jl.a.func};var Ow=gw,yw=function(e){var t=e.tabType,n=(e.onLoad,e.checkboxValue),r=e.handleAllData,i=e.keywordCatch,c=e.isEmpty,s=Object(a.useState)("all"),u=Object(gt.a)(s,2);u[0],u[1];return Object(o.c)(Ef.Flex,{justifyContent:"space-between",css:{padding:"10px 20px 10px 8px"},children:[Object(o.c)("div",{children:[!1,i&&"public"===t&&!c&&Object(o.c)(Ef.Box,{color:"GBK03A",width:"200px",css:{margin:"0px 12px",fontSize:"12px"},children:["以下为「",i,"」相关搜索内容"]})]}),"private"===t||"latest"===t||"public"===t?Object(o.c)(Ef.Flex,{alignItems:"center",css:function(e){return{fontSize:"13px",color:e.colors.GBL04A}},children:[Object(o.b)(Oj,{type:"checkbox",checked:n,onChange:function(e){r(e.target.checked)},size:15,style:{marginRight:"5px"}}),"本页全选"]}):Object(o.b)("div",{})]})};yw.propTypes={tabType:jl.a.string,onLoad:jl.a.func,checkboxValue:jl.a.bool,handleAllData:jl.a.func,keywordCatch:jl.a.string,isEmpty:jl.a.bool};var jw=yw,Ew=function(e){var t,n,r,i=e.dataList,c=e.getFoldersList,s=e.getLatestList,u=e.navActiveId,l=e.folders,d=e.questionId,f=e.isMine,p=e.tabType,h=e.insertImage,b=Object(Dt.b)(),v=null==l||null===(t=l.child)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.id,m=Object(a.useMemo)((function(){return i.filter((function(e){return!0===e.checked}))}),[i]),g=function(e){var t=[];return m.forEach((function(n){"latest"===p||e?t.push(n.materialId):t.push(n.uniqueId)})),t};return Object(o.c)(Ef.Flex,{css:{padding:"13px 20px"},children:[Object(o.b)("button",{className:rl()("MaterialLibrary-handleButton insert",{active:m.length>0}),css:function(e){return{background:e.colorMod(e.colors.GBL01A).alpha(.3)}},onClick:function(){var e=[];m.forEach((function(t){e.push(null==t?void 0:t.origin)})),h(e),b("/api/v4/materials/pc_editor/recently-materials",{method:"POST",body:{source_type:"answer",source_id:String(d),material_type:"image",material_ids:g(!0)}})},children:"插入选择图片"}),f&&m.length>0&&(null==l||null===(r=l.child)||void 0===r?void 0:r.length)>1&&Object(o.b)("button",{className:"MaterialLibrary-handleButton change",onClick:function(){var e,t,n;0!==m.length&&(v=null==l||null===(e=l.child)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.id,Ch.a.confirm(Object(o.c)("div",{className:"MaterialLibrary-alert",children:[Object(o.c)("h2",{children:["为已选择共 ",m.length," 张图片分类"]}),Object(o.b)(xp.b,{buttonClassName:"MaterialLibraryContent-select",listClassName:"MaterialLibraryContent-option",onChange:function(e){v=e},children:null==l||null===(n=l.child)||void 0===n?void 0:n.map((function(e){var t=e.name,n=e.id;return Object(o.b)(xp.a,{value:n,text:t,children:t},n)}))})]}),{text:{ok:"确定",cancel:"取消"}}).then((function(){b("/api/v4/materials/pc_editor/material-move",{method:"POST",body:{folder_id:u,target_folder_id:v,folder_material_ids:g()}}).then((function(e){var t,n;(null===(t=e.payload)||void 0===t?void 0:t.success)?c(null,u):Ch.a.alert((null===(n=e.payload)||void 0===n?void 0:n.message)||"网络错误,稍后重试吧!")}))}),(function(){})))},children:"变更分类"}),(f||"latest"===p)&&m.length>0&&Object(o.b)("button",{className:"MaterialLibrary-handleButton delete",onClick:function(){0!==m.length&&Ch.a.confirm(Object(o.c)("div",{className:"MaterialLibrary-alert",children:[Object(o.c)("h2",{children:["是否删除已选择共 ",m.length," 张图片?"]}),Object(o.b)("p",{children:"插入至内容中的图片不会受到影响"})]}),{text:{ok:"删除",cancel:"取消"}}).then((function(){var e=f?"/api/v4/materials/pc_editor/folders/".concat(u,"/materials"):"/api/v4/materials/pc_editor/recently-materials";b(e,{method:"DELETE",body:Object(Ut.a)({material_type:"image"},"latest"===p?"material_ids":"folder_material_ids",g())}).then((function(e){var t,n;(null===(t=e.payload)||void 0===t?void 0:t.success)?"latest"===p?s({isFirst:!0}):c(null,u):Ch.a.alert((null===(n=e.payload)||void 0===n?void 0:n.message)||"网络错误,稍后重试吧!")}))}),(function(){}))},children:"删除图片"})]})};Ew.propTypes={dataList:jl.a.array};var Cw=Ew,ww={private:"上传图片",latest:"上传图片",public:"搜索其他内容"},Tw=function(e){var t=e.tabType,n=e.dataList,r=e.onLoad,i=e.isMine,a=e.folders,c=e.getFoldersList,s=e.getLatestList,u=e.navActiveId,l=e.insertImage,d=e.isLoading,f=e.isFetching,p=e.questionId,h=e.keywordCatch,b=e.isPageError,v=e.handleUploadImage,m=e.refreshImageList,g=e.clickHanlder,O=e.insertImageSingle,y=e.handleAllData,j=e.chooseImage,E=e.checkboxValue,C=e.uploadImageRef,w=e.restProps,T={private:"图片库为空,请上传个人图片吧",public:"没有找到".concat(h?"「"+h+"」":"","相关内容"),latest:"最近使用为空,请搜索网络素材或上传图片"};return Object(o.c)(Ef.Flex,{flexDirection:"column",width:"100%",children:[Object(o.b)(jw,{tabType:t,onLoad:r,checkboxValue:E,handleAllData:y,keywordCatch:h,isEmpty:0===n.length&&!d}),0===n.length&&!d&&!b&&Object(o.c)(o.a,{children:[Object(o.b)("input",{css:{display:"none"},ref:C,type:"file",onChange:v,accept:"image/*",multiple:!0}),Object(o.b)(aw.a.EI1A,{image:"default",content:T[t],buttonText:ww[t],buttonOnClick:g})]}),!d&&!f&&b&&Object(o.b)(aw.a.EI1A,{image:"loadingError",content:"网络连接失败",buttonText:"刷新页面",buttonOnClick:m}),n.length>0&&Object(o.c)(Bv.b,Object.assign({css:{flex:1,overflow:"auto"},getContainer:function(e){return e},onLoad:r,isLoading:d},w,{children:[i&&Object(o.b)(dw,{handleUploadImage:v},n.length),n.map((function(e,n){return Object(o.b)(Ow,{data:e,tabType:t,chooseImage:j,insertImage:l,insertImageSingle:O,getLatestList:s},n)})),Object(o.b)("i",{className:"MaterialLibraryList-placeholder"}),Object(o.b)("i",{className:"MaterialLibraryList-placeholder"}),Object(o.b)("i",{className:"MaterialLibraryList-placeholder"}),Object(o.b)("i",{className:"MaterialLibraryList-placeholder"}),Object(o.b)("i",{className:"MaterialLibraryList-placeholder"}),Object(o.b)("i",{className:"MaterialLibraryList-placeholder"})]})),f&&Object(o.b)("div",{className:"MaterialLibraryList-loading",children:"加载中..."}),(null==n?void 0:n.length)>0&&Object(o.b)(Cw,{dataList:n,getFoldersList:c,getLatestList:s,navActiveId:u,folders:a,questionId:p,isMine:i,tabType:t,insertImage:l})]})},_w=function(e){var t=e.tabType,n=e.materialList,r=e.onLoad,c=e.isMine,s=void 0!==c&&c,u=e.folders,l=e.getFoldersList,d=e.getLatestList,f=e.navActiveId,p=e.insertImage,h=e.tabChange,b=e.isLoading,v=e.isFetching,m=e.questionId,g=e.keywordCatch,O=e.isPageError,y=Object(_e.a)(e,["tabType","materialList","onLoad","isMine","folders","getFoldersList","getLatestList","navActiveId","insertImage","tabChange","isLoading","isFetching","questionId","keywordCatch","isPageError"]),j=Object(Dt.b)(),E=Object(a.useRef)(),C=Object(a.useState)(n||[]),w=Object(gt.a)(C,2),T=w[0],_=w[1],S=Object(a.useState)(!1),A=Object(gt.a)(S,2),k=A[0],R=A[1];Object(a.useEffect)((function(){var e=Object(i.a)(n);R(!1),_(e)}),[n,_]);return Object(o.b)(Tw,{tabType:t,dataList:T,onLoad:r,isMine:s,folders:u,getFoldersList:l,getLatestList:d,navActiveId:f,insertImage:p,isLoading:b,isFetching:v,questionId:m,keywordCatch:g,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)Ch.a.alert("添加图片请不要超过 100 张哦~");else for(var n=[],r=function(e){Object(cw.a)(t[e]).then((function(r){Object(zn.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){j("/api/v4/materials/pc_editor/folders/".concat(f,"/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)?l(null,f):Ch.a.alert((null===(n=e.payload)||void 0===n?void 0:n.message)||"网络错误,稍后重试吧!")})).catch((function(e){var t,n,r;Ch.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;o<t.length;o++)r(o)},refreshImageList:function(){"latest"===t?d({isFirst:!0}):l(null,f)},clickHanlder:function(){"private"===t?E.current.click():"latest"===t?h("private"):document.querySelector(".materials_library_public_search").focus()},insertImageSingle:function(e){p([null==e?void 0:e.origin]),j("/api/v4/materials/pc_editor/recently-materials",{method:"POST",body:{source_type:"answer",source_id:String(m),material_type:"image",material_ids:[null==e?void 0:e.materialId]}})},handleAllData:function(e){var t=Object(i.a)(T);t.forEach((function(t){!0!==t.deleted&&(t.checked=e)})),R(e),_(t)},chooseImage:function(e){var n=Object(i.a)(T),r=n.find((function(n){return("latest"===t?n.materialId:n.uniqueId)===e}));r.checked=!(null==r?void 0:r.checked),_(n)},checkboxValue:k,uploadImageRef:E,restProps:y})};_w.propTypes={imgList:jl.a.array,onLoad:jl.a.func,navActiveId:jl.a.any};var Sw=_w,Aw=[{type:"public",name:"公共素材"},{type:"private",name:"个人素材"},{type:"latest",name:"最近使用"}],kw=function(e){var t=e.isShow,n=void 0!==t&&t,r=e.onClose,i=e.questionId,c=e.insertImage,s=Object(Dt.b)(),u=Object(a.useState)("public"),l=Object(gt.a)(u,2),d=l[0],f=l[1],p=Object(a.useState)([]),h=Object(gt.a)(p,2),b=h[0],v=h[1],m=Object(a.useState)([]),g=Object(gt.a)(m,2),O=g[0],y=g[1],j=Object(a.useState)(!1),E=Object(gt.a)(j,2),C=E[0],w=E[1],T=Object(a.useState)(!1),_=Object(gt.a)(T,2),S=_[0],A=_[1],k=Object(a.useState)(!1),R=Object(gt.a)(k,2),I=R[0],x=R[1],N=Object(a.useState)(""),D=Object(gt.a)(N,2),P=D[0],L=D[1],M=Object(a.useState)(""),U=Object(gt.a)(M,2),B=U[0],z=U[1],F=Object(a.useState)(""),G=Object(gt.a)(F,2),V=G[0],H=G[1],q=Object(a.useState)(!1),K=Object(gt.a)(q,2),W=K[0],Y=K[1],Q=function(e,t){var n,r=Object($.camelizeKeys)(e||{});w(!1),A(!1),x(null==r||null===(n=r.paging)||void 0===n?void 0:n.isEnd);var o=O.concat((null==r?void 0:r.data)||[]);y(t?(null==r?void 0:r.data)||[]:o)},Z=function(e,t){var n;(w(!1),A(!1),t)?Y(!0):Ch.a.alert((null==e?void 0:e.message)||(null==e||null===(n=e.error)||void 0===n?void 0:n.message)||"网络错误,稍后重试吧!")},J=function(e){var t=e.id,n=e.isFirst;w(!0),A(n),Y(!1),s("/api/v4/materials/pc_editor/folders/".concat(t||V,"/materials?offset=").concat(n?0:null==O?void 0:O.length,"&limit=24")).then((function(e){Q(e.payload,n)})).catch((function(e){Z(e.payload,n)}))},X=function(e){var t=e.id,n=e.subType,r=e.isFirst,o=e.keyword;w(!0),A(r),Y(!1),o?z(o):r&&z(""),L(n),s(QC("/api/v4/materials/pc_editor/folders/".concat(t||V,"/search"),{offset:r?0:null==O?void 0:O.length,limit:24,keyword:r?o:o||B,source_type:"answer",source_id:i,sub_type:n||P})).then((function(e){Q(e.payload,r)})).catch((function(e){Z(e.payload,r)}))},ee=function(e,t){s("/api/v4/materials/pc_editor/folders?type=".concat(e||d,"&material_type=image")).then((function(n){var r,o,i,a,c,s,u,l=Object($.camelizeKeys)((null===(r=n.payload)||void 0===r?void 0:r.data)||{});(v(l),H(t||(null==l||null===(o=l.child)||void 0===o||null===(i=o[0])||void 0===i?void 0:i.id)),"public"===e)?X({id:t||(null==l||null===(a=l.child)||void 0===a||null===(c=a[0])||void 0===c?void 0:c.id),isFirst:!0}):J({id:t||(null==l||null===(s=l.child)||void 0===s||null===(u=s[0])||void 0===u?void 0:u.id),isFirst:!0})})).catch((function(e){Z(e.payload,!0)}))},te=function(e){var t=e.isFirst;w(!0),A(t),Y(!1),s(QC("/api/v4/materials/pc_editor/recently-materials",{offset:t?0:null==O?void 0:O.length,limit:24,material_type:"image"})).then((function(e){Q(e.payload,t)})).catch((function(e){Z(e.payload,t)}))},ne=function(e){C||(f(e),y([]),w(!0),A(!0),z(""),"latest"===e?te({isFirst:!0}):ee(e))};return Object(a.useEffect)((function(){n&&(z(""),"latest"===d?te({isFirst:!0}):ee(d))}),[n]),n?Object(o.b)(Wh.b,{css:{minWidth:"746px"},contentClassName:"MaterialLibrary-Modal-content",onClose:r,children:Object(o.c)("div",{children:[Object(o.b)(JC,{tab:Aw,tabType:d,tabChange:ne,searchPublicList:X}),Object(o.c)("div",{className:"MaterialLibrary-content",children:["private"===d&&Object(o.b)(iw,{folders:b,navActiveId:V,navClick:function(e){H(e),J({id:e,isFirst:!0})},getFoldersList:ee}),Object(o.b)(Ef.Flex,{overflow:"hidden",flex:"1",children:Object(o.b)(Sw,{tabType:d,materialList:O,isMine:"private"===d,css:{display:"flex",flexWrap:"wrap",justifyContent:"space-between",alignContent:"flex-start",height:"100%",marginLeft:"-14px",padding:"0 20px 0"},isLoading:C,isFetching:S,isDrained:I,onLoad:"public"===d?X:"latest"===d?te:J,folders:b,getFoldersList:ee,getLatestList:te,navActiveId:V,insertImage:c,tabChange:ne,questionId:i,keywordCatch:B,isPageError:W})})]})]})}):null};kw.propTypes={isShow:jl.a.bool,questionId:jl.a.number,onClose:jl.a.func,insertImage:jl.a.func};var Rw=kw,Iw=function(e,t){var n=e.questionId,r=e.insertImage,i=Object(a.useState)(!1),c=Object(gt.a)(i,2),s=c[0],u=c[1],l=Object(Bn.b)((function(){return u(!1)})),d=Object(Bn.b)((function(){return u(!0)}));return Object(a.useImperativeHandle)(t,(function(){return{onOpen:d,onClose:l}}),[d,l]),Object(o.b)(Rw,{isShow:s,onClose:l,questionId:n,insertImage:r})};Iw.propType={questionId:jl.a.number.isRequired,insertImage:jl.a.func.isRequired};var xw=Object(a.forwardRef)(Iw),Nw=function(e){var t=e.questionId,n=c.a.createRef(null),r={},i=!1,a=null;return{initialize:function(e){Object.assign(r,e)},components:[Object(o.b)(xw,{ref:n,questionId:t,insertImage:function(e){var t;t=function(){for(var t=0;t<e.length;t++)n={value:e[t]},i?a=Object(KC.a)(a,"image","IMMUTABLE",{upload:n,size:"normal"}):r.setEditorState(Object(KC.a)(r.getEditorState(),"image","IMMUTABLE",{upload:n,size:"normal"}));var n},i=!0,a=r.getEditorState(),t(),r.setEditorState(a),i=!1}},"material_library")],toolbarV2:[{section:MC.a.BASIC_MEDIA,parentName:"image",label:"图片库",text:"图片库",priority:2,onClick:function(){var e;null===(e=n.current)||void 0===e||e.onOpen()}}]}},Dw=function(){return Object(Ot.useSelector)(z.e)};function Pw(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Lw={type:"none",description:"无声明"},Mw=function(e){Object(ml.a)(n,e);var t=Pw(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={openModal:!1},e.handleChange=function(t){e.props.onChange(t.target.checked),q.a.trackEvent(null,{id:5603,action:"Click"})},e.handleHelpClick=function(t){e.setState({openModal:t}),q.a.trackEvent(null,{id:5604,action:"Click"}),q.a.trackEvent(Object(kl.a)(e),{id:7840,action:"Click"})},e.handleHelpClose=function(t){e.setState({openModal:t})},e.handleReshipmentDisclaimers=function(t){e.props.onChange(t),q.a.trackEvent(Object(kl.a)(e),{id:7831,action:"Click"},{button:{text:t.description}})},e.handleStatementClick=function(){q.a.trackEvent(Object(kl.a)(e),{id:7841,action:"Click"})},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){q.a.trackCardShow(null,{id:5602})}},{key:"componentDidUpdate",value:function(e,t){this.state.openModal&&!t.openModal&&q.a.trackCardShow(null,{id:7843})}},{key:"renderReshipmentDisclaimers",value:function(){var e=this,t=this.props,n=t.disclaimers,r=t.disclaimerChecked;return[].concat(Object(i.a)(n),[Lw]).map((function(t){return Object(o.b)(Yv.a,{onClick:function(){return e.handleReshipmentDisclaimers(t)},checked:t.type===r,children:t.description},t.type)}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.disclaimers,r=t.disclaimerChecked,i=n.find((function(e){return e.type===r}));return Object(o.c)("div",{className:"DisclaimerEntry",children:[Object(o.b)("span",{className:"DisclaimerEntry-help",onClick:function(){return e.handleHelpClick(!0)},children:Object(o.b)(Ph.a,{className:"DisclaimerEntry-helpIcon",text:!0,center:!0})}),Object(o.b)(iC,{openModal:this.state.openModal,handleHelpClick:function(t){return e.handleHelpClose(t)}}),Object(o.b)(bb.c,{toggler:Object(o.b)(yf.c,{preset:"plain",onRef:function(t){e.settingsTogglerEl=t},className:"DisclaimerEntry-selfMenu",children:Object(o.c)("span",{onClick:function(){return e.handleStatementClick()},children:["创作声明:",(null==i?void 0:i.description)||Lw.description,Object(o.b)(Yh.a,{center:!0,text:!0,className:"DisclaimerEntry-arrow"})]})}),menuClassName:"AnswerItem-selfMenu",itemClassName:"AnswerItem-selectMenuItem",children:this.renderReshipmentDisclaimers()})]})}}]),n}(a.Component),Uw=function(e){var t=e.question,n=e.answer,r=Object(Ot.useDispatch)(),i=Object(Ot.useSelector)((function(e){return Object(zt.b)(e,null==n?void 0:n.id)})),c=Object(Ot.useSelector)((function(e){return e.question.disclaimers[t.id]})),s=Object(a.useContext)(jE),u=s.getFormData,l=s.updateFormData,d=u(),f=d.isDisclaimerChecked,p=d.disclaimerType,h=(null==c?void 0:c.length)>0&&(!(null==n?void 0:n.id)||i);return Object(a.useEffect)((function(){i&&l(function(e){var t,n,r,o,i="open"===(null==e||null===(t=e.disclaimerInfo)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.status);return{isDisclaimerChecked:i,disclaimerType:i?null==e||null===(r=e.disclaimerInfo)||void 0===r||null===(o=r[0])||void 0===o?void 0:o.type:"none"}}(i))}),[Boolean(i)]),Object(a.useEffect)((function(){c||r(Object(yn.k)(t.id))}),[]),h?Object(o.b)(Mw,{disclaimers:c,checked:f,disclaimerChecked:p,onChange:function(e){l({isDisclaimerChecked:"none"!==e.type,disclaimerType:e.type})}}):Object(o.b)(Ef.Box,{width:"157px",mr:"40px"})};function Bw(e){var t=e.shown,n=e.onClose;return Object(o.b)(Wh.b,{title:"商业声明",subtitle:"",onClose:n,children:t&&Object(o.c)(Ef.Box,{children:[Object(o.b)(Ef.Text,{fontSize:15,lineHeight:"22px",color:"GBK02A",children:"「商业声明」是为自己创作的内容添加商业声明的工具。当你创作的内容中包含商业推广信息时,建议进行声明,选择「本内容含有商业推广」,并选择具体推广方式。对商业推广信息的正确声明有助于内容展示。"}),Object(o.b)(yf.c,{preset:"primary",color:"blue",onClick:n,css:{width:166,height:32,lineHeight:"32px",fontSize:14,margin:"25px 0 0 93px"},children:"知道了"})]})})}var zw=n(1032),Fw=function(e){var t=e.checked,n=e.onChange,r=e.text;return Object(o.c)(Ef.Flex,{flex:1,alignItems:"center",as:"label",css:{cursor:"pointer"},children:[Object(o.b)(Gj.a,{size:16,checked:t,onChange:n}),Object(o.b)(Ef.Text,{ml:"8px",fontSize:"15px",lineHeight:"21px",children:r})]})},Gw=function(e){var t=e.text,n=e.checked,r=e.onClick,i=e.showCheckIcon,a=Object(_e.a)(e,["text","checked","onClick","showCheckIcon"]);return Object(o.c)(Ef.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(o.b)(Ef.Text,{children:t}),n&&i&&Object(o.b)(zw.a,{text:!0,center:!0})]}))};function Vw(e){var t=e.shown,n=e.onClose,r=e.isCurrentReported,i=e.commercialTypes,c=e.currentSelectedTypes,s=e.setCommercialReportInfo,u=Object(a.useState)(!1),l=Object(gt.a)(u,2),d=l[0],f=l[1],p=Object(a.useState)([]),h=Object(gt.a)(p,2),b=h[0],v=h[1];Object(a.useEffect)((function(){f(r)}),[r]),Object(a.useEffect)((function(){v(c)}),[c]);return t?Object(o.b)(Wh.b,{title:"商业推广",subtitle:"",onClose:n,children:Object(o.c)(Ef.Box,{children:[Object(o.c)(Ef.Flex,{justifyContent:"space-between",alignItems:"center",children:[Object(o.b)(Fw,{checked:!d,onChange:function(){return f(!1)},text:"本内容不含商业推广"}),Object(o.b)(Fw,{checked:d,onChange:function(){return f(!0)},text:"本内容含有商业推广"})]}),d&&Object(o.c)(Ef.Box,{mt:"20px",children:[Object(o.b)(Ef.Text,{mb:"10px",fontSize:15,lineHeight:"21px",color:"GBK02A",children:"推广方式(必选)"}),Object(o.b)(Ef.Flex,{flexWrap:"wrap",children:i.map((function(e){var t=e.value,n=e.name;return Object(o.b)(Gw,{flexShrink:0,mb:"10px",mr:"8px",text:n,checked:b.includes(t),onClick:function(){return function(e){if(b.includes(e)){var t=b.filter((function(t){return t!==e}));v(t)}else v(b.concat([e]))}(t)}},t)}))})]}),Object(o.c)(Pt.a,{direction:"horizontal",css:{marginTop:32},children:[Object(o.b)(yf.c,{onClick:n,color:"grey",children:"取消"}),Object(o.b)(yf.c,{disabled:d&&0===b.length,preset:"primary",color:"blue",onClick:function(){s({isCurrentReported:d,currentSelectedTypes:b}),n()},children:"确认"})]})]})}):null}var Hw=function(e){var t,n=e.question,r=e.answerId,i=n.relationship.isAnonymous,c=Object(Ot.useDispatch)(),s=Object(a.useContext)(jE).updateFormData,u=Object(Ot.useSelector)((function(e){return e.commercialReport})),l=(u||{}).commercialTypes,d=void 0===l?[]:l,f=(null==u||null===(t=u.answers)||void 0===t?void 0:t[r])||{},p=f.isCommercialReported,h=f.selectedCommercialTypes,b=void 0===h?[]:h,v=Object(a.useState)(!1),m=Object(gt.a)(v,2),g=m[0],O=m[1],y=Object(a.useState)([]),j=Object(gt.a)(y,2),E=j[0],C=j[1],w=Object(a.useState)(!1),T=Object(gt.a)(w,2),_=T[0],S=T[1],A=Object(a.useState)(!1),k=Object(gt.a)(A,2),R=k[0],I=k[1];Object(a.useEffect)((function(){var e,t;(0===d.length||r)&&c((e="answer",t=r,{API:Object.assign({types:os,endpoint:"commercial/content-pool/report"},t&&{query:{content_type:{article:0,answer:1}[e],content_token:t}}),meta:{type:e,urlToken:t},FAILSAFE:!0}))}),[]),Object(a.useEffect)((function(){r&&(O(p),C(b.map((function(e){return e.value}))))}),[r,p,JSON.stringify(b)]);return 0===d.length?null:Object(o.c)(Ef.Flex,{px:"24px",pb:"12px",mx:"auto",width:"100%",maxWidth:694,css:{opacity:i?.3:1},children:[Object(o.c)(Ef.Flex,{fontSize:14,color:"GBL05A",children:[Object(o.b)(Ph.a,{text:!0,center:!0,onClick:function(){return I(!0)},css:{cursor:"pointer"}}),Object(o.c)(Ef.Text,{ml:"10px",color:"#606a80",children:["商业声明:本内容",g&&!i?"含有":"不含","商业推广"]})]}),Object(o.c)(Ef.Flex,{fontSize:14,ml:"8px",color:"#8490a8",css:{cursor:"pointer"},onClick:function(){i?c(Object(Xr.g)("匿名回答无法添加商业推广,请先取消匿名","red")):S(!0)},children:[Object(o.b)(Gv.a,{text:!0,center:!0}),Object(o.b)(Ef.Text,{ml:"4px",children:"修改"})]}),Object(o.b)(Vw,{onClose:function(){return S(!1)},shown:_,isCurrentReported:g,commercialTypes:d,currentSelectedTypes:E,setCommercialReportInfo:function(e){var t=e.isCurrentReported,r=e.currentSelectedTypes;s({commercialReportInfo:{isReport:t,commercialTypes:r}}),O(t),C(r),c(function(e){var t=e.questionId,n=e.isCommercialReported;return{type:is,meta:{questionId:t},payload:{isCommercialReported:n}}}({questionId:n.id,isCommercialReported:t}))}}),Object(o.b)(Bw,{onClose:function(){return I(!1)},shown:R})]})},qw=function(e){var t,n=Object(B.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},Kw=function(e){var t=e.answer,n=(t=void 0===t?{}:t).rewardInfo,r=(n=void 0===n?{}:n).isRewardable,i=void 0!==r&&r,c=e.question,s=c.id,u=c.relationship.isAnonymous,l=Object(a.useState)(!1),d=Object(gt.a)(l,2),f=d[0],p=d[1],h=Object(Ot.useSelector)((function(e){return e.switches})).isAnswerRewardable,b=Object(Ot.useSelector)(qw),v=Object(a.useState)(!1),m=Object(gt.a)(v,2),g=m[0],O=m[1],y=Object(a.useContext)(jE),j=y.getFormData,E=y.updateFormData,C=Object(a.useState)(i),T=Object(gt.a)(C,2),_=T[0],S=T[1],A=Object(Ot.useDispatch)(),k=j().rewardTagline;return Object(a.useEffect)((function(){E({rewardTagline:b})}),[b,E]),Object(a.useEffect)((function(){A(Wo(["isAnswerRewardable"]))}),[A]),Object(a.useEffect)((function(){h&&(w.a.get("rewardNotication")||(O(!0),w.a.set("rewardNotication",!0)))}),[h]),Object(Bn.g)((function(){return O(!1)}),g?2e3:null),h?Object(o.c)("div",{className:"AnswerForm-openRewardButton",children:[Object(o.c)("label",{className:"AnswerForm-openRewardLabel",htmlFor:"AnswerForm-openRewardInput",children:[Object(o.b)(Oj,{className:"AnswerForm-openRewardCheckbox",checked:_,onChange:function(e){if(!u)return!e.target.checked||k?(E({rewardTagline:""}),S(!1),void Object(Xo.n)(s,!1)):void p(!0);A(Object(Xr.g)("匿名回答无法开启赞赏,请先取消匿名","red"))},id:"AnswerForm-openRewardInput",size:16}),"开启赞赏"]}),f&&Object(o.b)(OE,{submitRewardText:function(e){E({rewardTagline:e}),S(!0),A(Object(Xo.n)()),p(!1)},onClose:function(){return p(!1)},tagline:k,edit:!1}),g&&Object(o.b)("span",{className:"AnswerForm-Notication",children:"你的回答可以开启赞赏了"})]}):null},Ww=function(e){var t=e.answer,n=Object(a.useContext)(jE),r=n.updateFormData,i=(0,n.getFormData)().pushActivity,c=Object(Pb.a)(),s=!(null==t?void 0:t.id);Object(a.useEffect)((function(){s&&r({pushActivity:!0})}),[s,r]);return s?Object(o.c)("label",{htmlFor:"pushFollowSwitch",css:{display:"flex",alignItems:"center"},children:[Object(o.b)(Oj,{checked:i,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}),c.confirm("设置后,关注你的其他用户将无法在「首页 - 关注」阅读这篇回答",{title:"关闭推送给关注者吗",ok:"关闭推送"}).then((function(){q.a.trackEvent(null,{id:8363,action:"Click"}),r({pushActivity:!1})})).catch((function(){})))},id:"pushFollowSwitch",size:16}),Object(o.b)(Ef.Text,{fontSize:"14px",color:"GBL05A",ml:"9px",children:"推送给我的关注者"})]}):null},Yw=Object(rb.a)(null)((function(e){var t=e.answer,n=e.question,r=Dw();return Object(o.c)(o.a,{children:[Object(o.c)("div",{className:"AnswerForm-footerContent AnswerForm-container",children:[Object(o.b)(Uw,{answer:t,question:n}),Object(o.b)(Kw,{answer:t,question:n}),Object(o.b)(Ww,{answer:t,question:n})]}),r&&Object(o.b)(Hw,{answerId:null==t?void 0:t.id,question:n})]})})),Qw=n(1076),Zw=n(1075),Jw=function(e){var t=e.question,n=Object(Ot.useSelector)(B.b);return t.relationship.isAnonymous?Object(o.b)(FE.a,{className:"AnswerAdd-info",noLink:!0,author:le.f}):n&&n.isOrg?Object(o.b)(FE.a,{className:"AnswerAdd-info",noLink:!0,author:n}):Object(o.b)(FE.a,{className:"AnswerAdd-info",noLink:!0,author:n,children:Object(o.b)(Ef.Text,{color:"GBK04A",children:Object(o.b)(tC,{questionId:t.id,currentUser:n})})})};function Xw(e){var t=e.question,n=e.handleHistoryVersion,r=e.handleImportDoc,i=Object(a.useRef)();return Object(o.b)(o.a,{children:Object(o.c)(Ef.Flex,{p:"11px 20px",justifyContent:"space-between",mx:"auto",width:"100%",maxWidth:688,children:[Object(o.b)(Jw,{question:t}),Object(o.c)(Ef.Flex,{justifyContent:"center",alignItems:"center",p:"7px 12px",height:34,fontSize:14,fontWeight:500,color:"GBL05A",bg:"GBK10A",css:{borderRadius:3},children:[Object(o.c)(K.a,{as:Ef.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(o.b)(Qw.a,{center:!0,text:!0,css:{marginRight:4}}),"文档导入"]}),Object(o.b)(bb.c,{arrowed:!1,toggler:Object(o.b)(yf.c,{preset:"plain",onRef:i,children:Object(o.b)(Zw.a,{css:{paddingLeft:8,position:"relative",top:1}})}),children:Object(o.b)(K.a,{as:bb.b,zaAction:"Unknown",zaText:"历史版本",zaType:"Button",onClick:n,css:{padding:"10px 20px"},children:"历史版本"})})]})]})})}function $w(){var e=Object(vm.a)(["草稿保存于",""]);return $w=function(){return e},e}function eT(){var e=Object(vm.a)(["草稿保存于",""]);return eT=function(){return e},e}function tT(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var nT={allowed:"允许规范转载",need_payment:"允许付费转载",disallowed:"禁止转载"},rT=30,oT=5,iT=10,aT=1,cT=function(e){Object(ml.a)(n,e);var t=tT(n);function n(e,r){var i;Object(bl.a)(this,n),(i=t.call(this,e,r)).onCompositionStart=function(){i.composition=!0,i.syncDraft.cancel()},i.onCompositionEnd=function(){i.composition=!1,i.prevValue&&i.syncDraft(i.prevValue),i.prevValue=null},i.onChangeContent=function(e){i.loggingDeltaTime||(i.loggingDeltaTime=!0,i.startCompositionTime=Math.floor((new Date).getTime()/1e3)),i.hasEdited=!0,i.setState({content:e,isEmpty:e.isEmpty,isTyping:!0}),i.composition?i.prevValue=e:i.syncDraft(e)},i.onInsertDoc=function(){return i.editable.handleKeyCommand("insert-doc")},i.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 i=r.commonAncestorContainer;1===i.nodeType&&(o=i.getBoundingClientRect())}if(0!==o.height){var a=o.bottom-(window.innerHeight-117);a>0&&window.scrollBy(0,a)}}},i.onDeleteDraftModalShow=function(){i.setState({deleteDraftModalShown:!0})},i.onDeleteDraft=function(){var e=i.props,t=e.isReediting,n=e.activeTabKey;t||(n===Ky?i.editable.clearAllContent():i.editable.reset(),i.setState({draft:"",content:{toHTML:function(){return""}},isEmpty:!0})),i.deleteDraft();var r=i.props.onDeleteDraft;r&&r()},i.onDeleteDraftModalHide=function(){i.setState({deleteDraftModalShown:!1})},i.checkVideoSectionReady=function(e){if(!e)return Ch.a.alert("没有上传视频,请上传后提交",{title:"无视频"}),!1;var t=e.videoId,n=e.isOriginal;if(t){if("zvideo"===e.type&&null==n)return Ch.a.alert("没有视频类型,请选择视频为原创或转载后提交",{title:"无视频类型"}),!1}else{var r=i.editable.checkVideoStatus();if(r.isUploading)return Ch.a.alert("视频上传中,请上传完成后提交",{title:"视频上传中"}),!1;if(r.hasError)return Ch.a.alert("视频上传失败,请重新上传后提交",{title:"上传失败"}),!1}return!0},i.checkEditorContentReady=function(){return i.editable.hasVideo("upload")?(i.handleError("video-uploading"),!1):i.editable.hasImage("upload")?(i.handleError("image-uploading"),!1):i.editable.hasImage("error")||i.editable.hasVideo("error")&&!i.editable.hasVideo("error-review")?(Ch.a.alert("草稿中含有上传失败的内容,请更改后重新提交",{title:"上传失败"}),!1):!i.editable.hasVideo("error-review")&&!i.editable.hasVideo("censor")||(Ch.a.alert("视频中包含未通过审核的信息,请更改后重新提交",{title:"视频未通过审核"}),!1)},i.getSubmitData=function(e,t,n){var r,a=i.state,c=a.reshipmentSettings,s=a.commentPermission,u=a.scheduledPublishAt,l=i.props,d=l.answer,f=l.disclaimers,p=l.settings,h=l.isReediting,b=l.getFormData,v=l.isOffice,m=l.useNewEditorSetting,g=l.useEditableV2,O={content:t},y=b(),j=y.isDisclaimerChecked,E=y.disclaimerType,C=y.commercialReportInfo,w=y.rewardTagline,T=y.pushActivity,_=y.commentPermission,S=y.reshipmentSettings;if(!h)if(m){var A=i.props.currentUser.caEnabled?"need_payment":"allowed";O.reshipmentSettings=S||A,O.commentPermission=_||"all"}else O.reshipmentSettings=c||"allowed",O.commentPermission=s||"all";if(e)return{content:t,attachment:n,reshipmentSettings:O.reshipmentSettings,commentPermission:O.commentPermission};if(O.rewardSetting={canReward:Boolean(w),tagline:w},f&&f.length&&(!d||p)&&(O.disclaimerStatus=j?"open":"close",O.disclaimerType=E||"none"),v&&(O.commercialReportInfo=C),u){if(q.a.trackEvent(Object(kl.a)(i),{action:"Click",id:5733,name:"回答"}),Kg(u,Qg(new Date,30)))return void Ch.a.alert(Object(o.b)("div",{style:{textAlign:"center"},children:"只能设置 30 分钟后的定时时间"}),{title:"定时发布"});O.publishAt=Math.floor(u/1e3)+0}(void 0!==T&&(O.pushActivity=T),O.tableOfContentsEnabled=i.editable.hasCatalog(),g)?Object.assign(O,null===(r=i.editable)||void 0===r?void 0:r.getExtraPluginData()):Object.assign(O,i.thankInviterParams);return O},i.canSubmit=function(){var e,t,n=null===(e=i.editable)||void 0===e?void 0:e.toHTML(),r=i.isVideoAnswer?null===(t=i.editable)||void 0===t?void 0:t.getAttachment():null;return i.isVideoAnswer?Boolean(r||n):Boolean(n)},i.handleSubmit=i.context.authRequired((function(){var e=i.props,t=e.answer,n=e.isReediting,r=e.onSubmit,o=e.showNotification,a=e.question,c=a.id,s=a.questionType,u=e.currentUser,l=e.updateSettingsDisclaimer,d=e.loadLabel,f=e.onCancel;if(i.editable){if(i.canSubmit()){var p=i.editable.toHTML(),h=i.isVideoAnswer?i.editable.getAttachment():null;if((!i.isVideoAnswer||i.checkVideoSectionReady(h))&&i.checkEditorContentReady()){var b=i.getSubmitData(i.isVideoAnswer,p,h);Promise.resolve(r(b)).then((function(){t&&b.disclaimerStatus&&l(t.id,b.disclaimerStatus,b.disclaimerType),t&&d("answer",t.id),q.a.trackCardShow(null,{id:7879}),n||q.a.trackEvent(null,{id:4931,action:"StatusReport"},{module:[{card:{content:[{type:"Answer",parent_token:String(c),author_member_hash_id:u.id}]}}],status:{result:"Success",event:{action:"Submit"}}}),"commercial"===s&&o("已发布!由品牌筛选后进入推荐区。")})).catch((function(){n||q.a.trackEvent(Object(kl.a)(i),{id:4931,action:"StatusReport"},{status:{result:"Fail",event:{action:"Submit"}}})}));var v=n?"Edit":"Answer";"Answer"===v&&q.a.trackEvent(Object(kl.a)(i),{id:4930}),q.a.trackEvent(Object(kl.a)(i),{action:v,is_intent:!1})}}}else f()})),i.onCancel=function(){var e=i.props.onCancel;i.editable.hasVideo("upload")?i.handleError("video-uploading-draft"):i.editable.hasImage("upload")?i.handleError("image-uploading-draft"):(i.hasEdited&&i.syncDraftImmediately(),e&&e())},i.onFocus=function(){"org"===i.props.question.questionType&&i.shouldAnswerOrgQuestionModalShow&&i.handleAnswerOrgQuestionModalShow(),i.setState({focusing:!0})},i.onFocusWithAuth=function(){return i.onFocusAuthChecked?i.onFocus():(i.onFocusAuthChecked=!0,i.context.authRequired(i.onFocus)())},i.onSelectText=function(e){i.setState({selectedText:e.replace(/\s/g,"")})},i.onLoadStart=function(){i.setState({loadingShown:!0})},i.onLoadEnd=function(){i.setState({loadingShown:!1})},i.getToolbarUserProfitPlugin=function(e){if(!i.props.showUserProfitButton||i.props.useEditableV2)return null;var t=i.props.question.relationship.isAnonymous,n=Jg.RichUtils.getCurrentBlockType(e.state.editorState),r=["atomic","code-block"].includes(n)||t;return Object(o.b)(Eh.a,{label:"用户收益",icon:Object(o.b)($g,{}),onClick:function(){i.setState({showUserProfitCardSelector:!0}),q.a.trackEvent(null,{id:6097,action:"Click"})},onRef:i.trackUserProfitCardshow,disabled:r},"userProfit")},i.trackUserProfitCardshow=I()((function(){q.a.trackCardShow(null,{id:6096})})),i.showInviterListModal=function(){i.setState({inviterListModalShown:!0})},i.hideInviterListModal=function(){i.setState({inviterListModalShown:!1})},i.getToolbarBaiduFilePlugin=function(e){var t=Jg.RichUtils.getCurrentBlockType(e.state.editorState),n=["atomic","code-block"].includes(t);return Object(o.b)(Eh.a,{label:"上传附件",icon:Object(o.b)(tO,{}),onClick:function(){e.getFileLinkCards().size>=iT?Ch.a.alert(null,{title:"一篇内容最多可添加 ".concat(iT," 个附件")}):i.setState({baiduFileSelectorShown:!0})},disabled:n},"baiduFile")},i.getToolbarThanksForInvitingPlugin=function(){var e=i.state.thankInviterInfo,t=i.props.allInviters;return Object(o.b)(Eh.a,{label:"添加谢邀",icon:Object(o.b)(nO.a,{}),onClick:i.showInviterListModal,disabled:Boolean(!(null==t?void 0:t.length)||e)},"thanksForInviting")},i.handleInsertZVideo=function(){i.setState({showZVideoUploader:!0})},i.getAllInviters=function(){var e=i.props,t=e.question;return(0,e.fetchAllInviters)(t.id)},i.getToolbarMainPlugins=function(){var e,t,n,r=i.props.useEditableV2;return r?null:Object(o.c)(o.a,{children:[!i.isVideoAnswer&&(e=i).getToolbarUserProfitPlugin.apply(e,arguments),(t=i).getToolbarBaiduFilePlugin.apply(t,arguments),!i.isVideoAnswer&&(n=i).getToolbarThanksForInvitingPlugin.apply(n,arguments)]})},i.getEditorBeforeThanksForInvitingPlugin=function(){var e=i.state.thankInviterInfo,t=i.props,n=t.inviterQuery,r=t.allInviters;return t.useEditableV2?null:Object(o.c)(o.a,{children:[e&&Object(o.b)(NC,{css:{marginBottom:16,marginTop:"4px !important"},showDeleteButton:!0,item:{isLabeled:!0},inviter:e,onDelete:function(){i.setState({thankInviterInfo:null})}}),(null==r?void 0:r.length)>0&&Object(o.b)(kC,{hasShown:Boolean(n)||Boolean(e),shown:!e,inviters:r,onConfirm:function(e){(null==e?void 0:e.length)&&(1!==e.length?i.showInviterListModal():i.setState({thankInviterInfo:e[0]}))}})]})},i.getEditorBeforePlugins=function(){var e;return i.isVideoAnswer?null:(e=i).getEditorBeforeThanksForInvitingPlugin.apply(e,arguments)},i.getToolbarSidePlugins=function(){var e=i.state,t=e.isFullscreen,n=e.isLeaveActive;return(!t||n)&&Object(o.b)(Eh.a,{icon:Object(o.b)(Gg,{text:!0}),className:"AnswerForm-enterFullscreenButton",onClick:i.toggleFullscreen},"enterFullscreen")},i.getToolbarMenuPlugins=function(){var e=i.state.scheduledPublishAt,t=i.props.useEditableV2;return Object(o.c)(a.Fragment,{children:[!t&&Object(o.c)(Eh.c,{onClick:i.showDraftHistoryModal,children:[Object(o.b)(Qb,{text:!0}),"历史版本"]}),i.canUseScheduledPublish&&Object(o.c)(Eh.c,{onClick:function(){i.setUseScheduledPublish(!e),q.a.trackEvent(Object(kl.a)(i),{action:"Click",id:5730,name:"回答"})},children:[Object(o.b)(oO,{text:!0}),e?"取消定时发布":"定时发布"]})]})},i.setUseScheduledPublish=function(e,t){if(e)if(t)i.setState({scheduledPublishAt:t});else{var n=Qg(new Date,30);i.setState({initialScheduledPublishAt:n,scheduledPublishAt:n})}else Ch.a.confirm("取消后,当前设定的定时发布将不会生效,确定要取消发布吗?",{title:"取消定时发布",text:{cancel:"我再想想"}}).then((function(){i.setState({scheduledPublishAt:void 0}),q.a.trackEvent(Object(kl.a)(i),{action:"Click",id:5737,name:"回答"})})).catch((function(){q.a.trackEvent(Object(kl.a)(i),{action:"Click",id:5736,name:"回答"})})),q.a.trackCardShow(Object(kl.a)(i),{id:5735,name:"回答"})},i.getEditorState=function(){return i.editable.state.editorState?i.editable.state.editorState:i.editable.getEditorState()},i.toggleFullscreen=function(){var e=i.state.isFullscreen,t=function(){var e=i.scroller.querySelector(".Editable");return e?e.offsetTop:0};i.scrollTop=e?i.scroller.scrollTop-t():Math.max(-i.scroller.getBoundingClientRect().top,0),i.setState({isFullscreen:!e},(function(){i.state.isFullscreen?i.scrollTop>0&&(i.scroller.scrollTop=i.scrollTop+t()):window.scrollTo(0,i.scroller.getBoundingClientRect().top-document.documentElement.getBoundingClientRect().top+i.scrollTop)}))},i.exitFullscreen=function(){i.cloneEditor.resetWithValue(i.getCloneContent());i.fullscreenContent.addEventListener("animationend",(function e(){i.fullscreenContent.removeEventListener("animationend",e),i.setState({isLeaveActive:!1}),i.toggleFullscreen()})),i.setState({isLeaveActive:!0})},i.handleFullscreenRef=function(e){e?lO.hide():(lO.show(),i.setState({isToolbarSticky:!1}))},i.handleScroll=function(){i.isHandleScrollPending||(i.isHandleScrollPending=!0,requestAnimationFrame((function(){var e=i.state,t=e.isFullscreen,n=e.isToolbarSticky,r=!1;if(t&&i.scroller){var o=i.scroller.querySelector(".Editable-toolbar");r=!!o&&i.scroller.scrollTop===o.offsetTop}r!==n&&i.setState({isToolbarSticky:r}),i.isHandleScrollPending=!1})))},i.showDraftHistoryModal=function(){i.syncDraft.flush(),i.setState({draftHistoryModalShown:!0}),q.a.trackEvent(null,{id:5013,action:"Click",name:"历史版本入口"})},i.hideDraftHistoryModal=function(){i.setState({draftHistoryModalShown:!1})},i.handleUploadStart=function(){i.setState({isUploading:!0})},i.handleUploadEnd=function(){i.setState({isUploading:!1})},i.handleUploadError=function(e,t){switch(t){case"video":i.handleError("video-upload-error");break;case"image":i.handleError("image-upload-error",e)}},i.handleAnswerOrgQuestionModalShow=function(){i.setState({answerModalShown:!0}),i.shouldAnswerOrgQuestionModalShow=!1},i.handleAnswerModalHide=function(){i.setState({answerModalShown:!1})},i.syncDraftImmediately=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.state.content,n=t.toHTML(),r=i.state.lastUpdatedTime,o=Math.floor((new Date).getTime()/1e3);e=!r||i.startCompositionTime-r>180?o-i.startCompositionTime:o-r,i.setState({isTyping:!1});var a,c=i.props.answer,s=(c=void 0===c?{}:c).attachment;a=i.videoAnswerEditable||"zvideo"===(null==s?void 0:s.type)?"video_answer":"video"===(null==s?void 0:s.type)?"video_answer_v2":"normal";var u=i.isVideoAnswer?t.getAttachment():null,l=i.isVideoAnswer?Boolean(u||n):Boolean(n);l?i.updateDraft(n,e,a,u).then((function(e){e.payload&&e.payload.updatedTime&&i.setState({lastUpdatedTime:e.payload.updatedTime}),i.loggingDeltaTime=!1,delete i.startCompositionTime,q.a.trackEvent(Object(kl.a)(i),{action:"AutoSave"})})):i.deleteDraft()},i.syncDraft=uO(i.syncDraftImmediately,2e3),i.updateDraft=function(){for(var e=i.props,t=e.question.id,n=e.draft,r=e.addDraft,o=e.updateDraft,a=arguments.length,c=new Array(a),s=0;s<a;s++)c[s]=arguments[s];return n?o.apply(void 0,[t].concat(c)):r.apply(void 0,[t].concat(c))},i.focus=function(){i.editable&&i.editable.focus()},i.hasVideo=function(){return!!i.editable&&i.editable.hasVideo()},i.hasADLinkCard=function(){return!!i.editable&&i.editable.hasADLinkCard()},i.hasFeeConsultCard=function(){return!!i.editable&&i.editable.hasFeeConsultCard()},i.hasMCNLinkCard=function(){return!!i.editable&&i.editable.hasMCNLinkCard()},i.hasCommercialReport=function(){var e=i.props.getFormData().commercialReportInfo;return null==e?void 0:e.isReport},i.handleChangeCommentPermission=function(e,t){var n=void 0===t?e:t;i.setState({commentPermission:n})},i.handleReshipmentSettings=function(e){"need_payment"!==e||i.props.currentUser.caEnabled||window.open("/copyright/invite"),i.setState({reshipmentSettings:e})},i.handleError=function(e,t){Ih(e,t,i.props.showNotification)},i.handleBeforeVideoUpload=function(){var e=i.props.question;return!e.relationship||!e.relationship.isAnonymous},i.handleReverted=function(e){i.editable.resetWithValue(e.draft.content)},i.handleUserProfitCardSelectorSubmit=function(e){if("ProfitCardSelector/submitProfitCardInfo"===(null==e?void 0:e.type)&&(null==e?void 0:e.payload)){var t=e.payload,n=t.type,r=t.id,o=t.url;if(t.preventClose||i.setState({showUserProfitCardSelector:!1}),"inserLinkCard"===n&&i.editable.handleCommand("insert-link-card:".concat(o)),"insertMCNLinkCard"===n){if(i.editable.getMCNLinkCards().size>=rT)return void Ch.a.alert(null,{title:"一篇内容最多可添加 ".concat(rT," 个商品")});i.editable.handleCommand("insert-mcn-link-card:".concat(r))}if("insertAdLinkCard"===n){if(r.startsWith("ZhiTask_"))if(i.editable.getADLinkCards().filter((function(e){return e.getData().id.startsWith("ZhiTask_")})).size>=oT)return void Ch.a.alert("一篇内容最多可添加 ".concat(oT," 个「知+自选」卡片"));if(r.startsWith("fee_"))if(i.editable.getADLinkCards().filter((function(e){return e.getData().id.startsWith("fee_")})).size>=aT)return void Ch.a.alert("一篇内容最多可添加 ".concat(aT," 个「付费回答」卡片"));i.editable.handleCommand("insert-ad-link-card:".concat(r))}}},i.getDraftStatus=function(){var e=i.props.draft,t=i.state,n=t.isTyping,r=t.dateNow;return e?e.updating||n?"草稿保存中…":e.updated&&r<1e3*e.updatedTime+6e4?"草稿已保存":e.updateFailed?Object(o.b)("span",{className:"AnswerForm-draftStatus--failed",children:"草稿保存失败"}):gm()(eT(),Object(ci.toRelativeString)(e.updatedTime)):""},i.handleSettingExpand=function(){var e=i.state.settingExpanded;i.setState({settingExpanded:!e},(function(){var t=i.expandedSettingsRef;if(i.state.isFullscreen){i.scroller.scrollTo(0,e?-(null==t?void 0:t.offsetTop):null==t?void 0:t.offsetTop)}else{var n=i.expandedSettingsRef;window.scrollTo(0,e?-(null==n?void 0:n.offsetTop):null==n?void 0:n.offsetTop)}e&&i.focus()}))},i.handleEditGGRCard=function(e){var t=e.type,n=e.payload,r=i.state.mcnEditingGood,o=i.props.updateLinkCard;"goodsEditor/submitNewGoodsInfo"!==t?"goodsEditor/closeGoodsEditor"!==t||i.setState({mcnEditingGood:null}):o(Object.assign({},r,{title:null==n?void 0:n.title})).finally((function(){i.setState({mcnEditingGood:null}),i.editable.handleCommand("edit-mcn-link-card:".concat(r.id))}))},i.draftHistoryPlugin=PC({type:"question",id:i.props.question.id,syncDraft:i.syncDraft}),i.thanksForInvitingPlugin=qC({getShouldShowToolbarButton:function(){return!i.isVideoAnswer},getAllInviters:i.getAllInviters,inviterQuery:i.props.inviterQuery,getInitialThankInviterInfo:function(){return i.props.thankInviterInfo}}),i.userProfitPlugin=FC({shouldDisabled:function(){return i.props.question.relationship.isAnonymous},shouldShow:function(){return i.props.showUserProfitButton&&!i.isVideoAnswer},getContentInfo:function(){var e;return{type:"answer",id:null===(e=i.props.answer)||void 0===e?void 0:e.id}}}),i.baiduFilePlugin=VC(),i.materialLibraryPlugin=Nw({questionId:i.props.question.id});var c=i.props,s=c.defaultValue,u=c.draft,l=u?u.editableContent:s,d=u?u.updatedTime:0;return i.state={draft:l,content:{toHTML:function(){return""}},isEmpty:!l,isTyping:!1,reshipmentSettings:null,commentPermission:null,answerModalShown:!1,focusing:!1,selectedText:null,loadingShown:!1,isUploading:!1,rewardNotication:!0,checked:e.isRewardable,isFullscreen:!1,isToolbarSticky:!1,isLeaveActive:!1,toolbarMenuAttention:null,dateNow:0,rewardModalShown:!1,lastUpdatedTime:d,draftHistoryModalShown:!1,baiduFileSelectorShown:!1,showUserProfitCardSelector:!1,showZVideoUploader:!1,mcnEditingGood:null,initialScheduledPublishAt:void 0,scheduledPublishAt:void 0,thankInviterInfo:e.thankInviterInfo||e.inviterFromNotification,inviterListModalShown:!1,footerPositionStatus:"",settingExpanded:!1},i.hasEdited=!1,i}return Object(vl.a)(n,[{key:"canUseScheduledPublish",get:function(){var e=this.props,t=e.currentUser,n=e.isReediting,r=e.activeTabKey;return t&&t.autoSendingCreations&&r===qy&&!n}},{key:"thankInviterParams",get:function(){var e=this.props.thankInviterInfo,t=this.state.thankInviterInfo;return e?t?t.id===e.id?{}:{thankInviterStatus:"open",thankInviter:t.id}:{thankInviterStatus:"close"}:t?{thankInviterStatus:"open",thankInviter:t.id}:{}}}]),Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this;this.shouldAnswerOrgQuestionModalShow=!Jy.getKnown(),this.onFocusAuthChecked=!1;var t=this.props,n=t.fillCurrentUserIfNeeded,r=t.getUserProfitPermission,o=n(["lastCommentPermission","caEnabled","autoSendingCreations","mcn_user_info"]);r(),Promise.resolve(o).then((function(){U.getActionsByNames(["a_draft_history",e.canUseScheduledPublish&&"auto_pub_answer"].filter(Boolean)).then((function(t){var n=Object(gt.a)(t,1)[0];n&&(e.setState({toolbarMenuAttention:n.description}),U.markAsShown(n),"auto_pub_answer"===n.guide_name&&q.a.trackCardShow(e,{id:5738}))})),q.a.trackCardShow(e,{id:5729,name:"回答"})})),document.addEventListener("compositionstart",this.onCompositionStart),document.addEventListener("compositionend",this.onCompositionEnd),window.onbeforeunload=function(){return e.state.isUploading||e.composition||e.syncDraft.pending()||e.props.draft&&e.props.draft.updating?"草稿尚未保存完毕,确定离开此页?":void 0},this.setState({dateNow:Date.now()}),this.reRenderTimer=setInterval((function(){return e.setState({dateNow:Date.now()})}),6e4);var i=this.props,a=i.question,c=i.answer,s=i.settings,u=i.loadSettings,l=i.allInviters,d=i.fetchAllInviters;c&&!s&&u(c.id),this.props.imperativeRef&&(this.props.imperativeRef.current={focus:this.focus.bind(this),hasVideo:this.hasVideo.bind(this),hasADLinkCard:this.hasADLinkCard.bind(this),hasMCNLinkCard:this.hasMCNLinkCard.bind(this),hasFeeConsultCard:this.hasFeeConsultCard.bind(this),toggleFullscreen:this.toggleFullscreen,hasCommercialReport:this.hasCommercialReport,hasEditorContent:function(){return!e.state.isEmpty}}),l||this.props.useEditableV2||d(a.id)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=e.currentUser,r={};if(t.reshipmentSettings||void 0===n.caEnabled||(r.reshipmentSettings=n.caEnabled?"need_payment":"allowed"),t.commentPermission||void 0===n.lastCommentPermission||(r.commentPermission=n.lastCommentPermission),Object.keys(r).length&&this.setState(r),!this.draftLoaded&&!this.state.draft&&!this.props.draft&&e.draft){var o=e.draft.editableContent;o&&(this.setState({draft:o,isEmpty:!o}),this.editable&&!this.editable.toHTML()&&this.editable.resetWithValue(o)),this.draftLoaded=!0}}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.state,r=n.focusing,o=n.thankInviterInfo,i=this.props,a=i.tagline,c=i.inviterFromNotification;if(a){var s=w.a.get("rewardNotication");r&&!s&&(this.setState({rewardNotication:!1}),w.a.set("rewardNotication",!0),this.timeout=setTimeout((function(){t.setState({rewardNotication:!0})}),2e3))}o||!c||e.inviterFromNotification||this.setState({thankInviterInfo:c})}},{key:"componentWillUnmount",value:function(){this.syncDraft.cancel(),document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd),window.onbeforeunload=null,this.timeout&&clearTimeout(this.timeout),this.reRenderTimer&&clearInterval(this.reRenderTimer),this.props.imperativeRef&&(this.props.imperativeRef.current=null)}},{key:"getCloneContent",value:function(){return this.getEditorState().getCurrentContent()}},{key:"deleteDraft",value:function(){var e=this.props,t=e.question,n=e.draft,r=e.deleteDraft;n&&r(t.id)}},{key:"renderReshipmentSettings",value:function(e){var t=this;return Object.keys(nT).map((function(n){return Object(o.b)(Yv.a,{onClick:function(){return t.handleReshipmentSettings(n)},checked:n===e,children:nT[n]},n)}))}},{key:"renderFooter",value:function(){var e=this,t=this.props,n=t.draft,r=t.isReediting,i=t.question.commercial,a=t.answer,c=t.question,s=t.useNewEditorSetting,u=t.handleToggleAnonymous,l=this.state,d=l.commentPermission,f=l.focusing,p=l.isEmpty,h=l.isTyping,b=l.isFullscreen,v=l.loadingShown,m=l.reshipmentSettings,g=l.selectedText,O=l.dateNow,y=l.scheduledPublishAt,j=null;if(v)j=Object(o.b)(sO.a,{count:3});else if(g)j="".concat(g.length," 个字");else if(n){var E=null;E=n.updating||h?"草稿保存中…":n.updated&&O<1e3*n.updatedTime+6e4?"草稿已保存":n.updateFailed?Object(o.b)("span",{className:"AnswerForm-draftStatus--failed",children:"草稿保存失败"}):gm()($w(),Object(ci.toRelativeString)(n.updatedTime)),j=Object(o.c)("div",{children:[Object(o.b)(yf.c,{preset:"plain",className:"AnswerForm-delete","aria-label":"删除草稿","data-tooltip":"删除草稿",onClick:this.onDeleteDraftModalShow,icon:iO.a}),E]})}else i&&i.tip&&i.tip.message&&(j=i.tip.message);var C=Object(o.b)("div",{className:rl()("AnswerForm-footer",{"AnswerForm-footer--hidden":!b&&!f&&p,useNewEditorSetting:s}),children:s?Object(o.c)(o.a,{children:[!this.state.settingExpanded&&Object(o.b)(uC,{question:c,answer:a,isVideoAnswer:this.isVideoAnswer,handleToggleAnonymous:u,isFullScreen:b,positionStatus:this.state.footerPositionStatus,isReediting:r,setScheduledPublish:this.setUseScheduledPublish,canScheduledPublish:this.canUseScheduledPublish,handleExpand:this.handleSettingExpand,settingExpanded:this.state.settingExpanded}),Object(o.b)(lC,{isFullScreen:b,type:"answer",questionId:c.id,textCount:null==g?void 0:g.length,draftStatus:this.getDraftStatus(),removeDraft:this.onDeleteDraftModalShow,isReediting:r,scheduledPublishAt:y,onCancelEdit:this.onCancel,draft:n,handleSubmit:this.handleSubmit,canSubmit:this.canSubmit()})]}):Object(o.c)(o.a,{children:[Object(o.c)("div",{className:"AnswerForm-footerContent AnswerForm-container",children:[Object(o.b)("div",{className:"AnswerForm-status",children:j}),Object(o.c)("div",{className:"AnswerForm-footerRight",children:[r?Object(o.b)("a",{className:"AnswerForm-cancel",onClick:this.onCancel,children:n?"保存草稿并离开":"取消"}):Object(o.c)(bb.c,{toggler:Object(o.b)(yf.c,{preset:"plain",onRef:function(t){e.settingsTogglerEl=t},icon:hb.a,label:"设置"}),reversed:!0,menuClassName:"AnswerItem-selfMenu",itemClassName:"AnswerItem-selectMenuItem",children:[this.renderReshipmentSettings(m),Object(o.b)(bb.a,{}),Object(o.b)(dm.c,{onChange:this.handleChangeCommentPermission,current:d})]}),Object(o.b)(yf.c,{className:"AnswerForm-submit",preset:"primary",color:"blue",onClick:this.handleSubmit,children:r?"提交修改":y?"定时发送":"提交回答"})]})]}),!this.isVideoAnswer&&Object(o.b)(Yw,{answer:a,question:c})]})});return!b?Object(o.b)(ql.a,{bottom:!0,container:function(){return e.form},children:C}):C}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.className,i=n.defaultValue,c=n.draft,s=n.isReediting,u=n.question,l=n.currentUser,d=n.isPuQuestion,f=n.answer,p=n.answer,h=(p=void 0===p?{}:p).id,b=p.answerType,v=p.attachment,m=n.allInviters,g=n.activeTabKey,O=n.handleTabChange,y=n.useEditableV2,j=n.useNewEditorSetting,E=this.state,C=E.deleteDraftModalShown,w=E.isFullscreen,T=E.isToolbarSticky,_=E.isLeaveActive,S=E.toolbarMenuAttention,A=E.draftHistoryModalShown,k=E.baiduFileSelectorShown,R=E.showUserProfitCardSelector,I=E.inviterListModalShown,x=E.showZVideoUploader,N=E.mcnEditingGood,D=E.initialScheduledPublishAt,P=E.scheduledPublishAt,L="".concat(s?"修改":"写","回答...");if("commercial"===u.questionType&&!d){L="这是一个「".concat("品牌提问","」,请在回答前了解:「").concat("品牌提问","」由品牌方管理,回答由品牌方筛选后展示,传播与社区提问有所区别。回答著作权归作者所有。")}this.isVideoAnswer&&(L="详细介绍下视频(选填)"),c?e=c.attachment:"zvideo"===(null==v?void 0:v.type)?e=v.zvideo:"video"===(null==v?void 0:v.type)&&(e=Object.assign({},v.video.videoInfo,{videoId:v.attachmentId}));var M=this.videoAnswerEditable||"video_answer"===(null==c?void 0:c.type)||"zvideo"===(null==v?void 0:v.type),U=Object(o.b)(Ah.a,Object.assign({className:rl()("AnswerForm-editor","AnswerForm-container",{isToolbarSticky:T,useNewEditorSetting:j}),ref:function(e){t.editable=e},allowDragAndDrop:!0,allowLinkCard:!0,allowMention:!0,allowToolbar:!0,allowUploadDocument:!0,allowVideoTitleChange:!this.isVideoAnswer,allowReference:!0,allowZVideo:!this.isVideoAnswer,allowTable:!this.isVideoAnswer,allowCatalog:!this.isVideoAnswer,catalogEnabled:_m(f,"answer"),allowHeaderThree:!1,allowToolbarSticky:!w,toolbarStickyOffset:le.g,onInsertZVideo:this.handleInsertZVideo,getToolbarMainPlugins:this.getToolbarMainPlugins,getToolbarSidePlugins:this.getToolbarSidePlugins,getToolbarMenuPlugins:this.getToolbarMenuPlugins,getEditorBeforePlugins:this.getEditorBeforePlugins,toolbarMenuAttention:S},y&&{getPlugins:function(){return[t.draftHistoryPlugin,t.thanksForInvitingPlugin,t.userProfitPlugin,t.baiduFilePlugin,t.materialLibraryPlugin]}},{toolbarProps:{menuCallout:P&&D&&Object(o.c)(Eh.b,{className:"AnswerForm-scheduledPublishCallout",onClose:function(){t.setUseScheduledPublish(!1),q.a.trackEvent(t,{action:"Click",id:5734,name:"回答"})},children:["发布时间:",Object(o.b)(Vy,{onRef:function(e){return t.dateTimePicker_=e},value:D,min:D,max:Zg.a(D,7),onChange:function(e,n){t.setUseScheduledPublish(!0,e),q.a.setModule(t.dateTimePicker_,{module:"Unknown",module_name:n.date?"日期":n.hours?"小时":n.minutes?"分钟":void 0}),q.a.trackEvent(t.dateTimePicker_,{action:"Click",id:5731,name:"回答"})}}),Object(o.c)("a",{href:"/draft?type=answer&filter=schedule",target:"_blank","data-za-detail-view-id":5732,"data-za-detail-view-name":"回答",style:{marginLeft:"2em"},children:[Object(o.b)(Gv.a,{text:!0,center:!0})," 管理待发布内容"]})]})},minRows:j?6:3,placeholder:L,defaultValue:c?c.editableContent:i,videoAnswerEditable:this.videoAnswerEditable,videoAnswerPublished:this.videoAnswerPublished,isLegacyVideoAnswer:M,defaultVideo:e,onChange:this.onChangeContent,onAfterChange:this.onAfterChangeContent,onFocus:this.onFocusWithAuth,onSelectText:this.onSelectText,onSubmit:this.handleSubmit,onError:this.handleError,onLoadStart:this.onLoadStart,onLoadEnd:this.onLoadEnd,onUploadStart:this.handleUploadStart,onUploadEnd:this.handleUploadEnd,onUploadError:this.handleUploadError,onBeforeVideoUpload:this.handleBeforeVideoUpload,logo:hE.a,location:u.title,editingContentType:"answer",onMCNLinkCardEdit:function(e,n){t.setState({mcnEditingGood:n})},useToolbarV2:j}));return Object(o.b)(im.a,{module:"AnswerEditView",content:{type:"Answer",parent_token:String(u.id),author_member_hash_id:l.id},children:Object(o.c)("form",{ref:function(e){t.form=e},className:rl()("AnswerForm",r),onSubmit:function(e){return e.preventDefault()},noValidate:!0,children:[w&&Object(o.b)("div",{className:rl()("AnswerForm-fullscreenBackdrop",{isLeaveActive:_})}),Object(o.c)("div",{className:rl()({"AnswerForm-fullscreenContent":w,isLeaveActive:_}),ref:function(e){return t.fullscreenContent=e},children:[j&&w&&Object(o.c)(Ef.Box,{bg:"GBK99A",css:{position:"relative",boxShadow:"0 0 32px rgba(0, 0, 0, 0.06);"},children:[Object(o.b)("div",{className:"AnswerForm-container",ref:this.handleFullscreenRef,children:Object(o.c)(Ef.Flex,{justifyContent:"space-between",alignItems:"center",children:[s?Object(o.b)(Ef.Box,{fontSize:15,fontWeight:"bold",lineHeight:"21px",color:"GBK03A",children:this.videoAnswerPublished?"本回答为视频回答":"本回答为图文回答"}):Object(o.b)(Qy,{activeTabKey:g,onChange:O}),Object(o.c)(K.a,{as:Ef.Flex,zaAction:"Unknown",zaText:"退出全屏编辑",zaType:"Button",aliginItem:"center",fontSize:14,color:"GBL05A",lineHeight:"55px",onClick:this.toggleFullscreen,css:{cursor:"pointer"},children:[Object(o.b)(Ef.Text,{mr:"10px",children:"退出全屏编辑"}),Object(o.b)(cO,{text:!0,center:!0})]})]})}),Object(o.b)(Xw,{question:u,handleImportDoc:this.onInsertDoc,handleHistoryVersion:this.showDraftHistoryModal})]}),Object(o.c)("div",{className:rl()({"AnswerForm-fullscreenScroller":w,useNewEditorSetting:j}),ref:function(e){return t.scroller=e},onScroll:this.handleScroll,children:[w&&!j&&Object(o.c)("div",{className:"AnswerForm-container",ref:this.handleFullscreenRef,children:[Object(o.b)("div",{className:"AnswerForm-title",children:u.title}),s?this.videoAnswerPublished?Object(o.b)("div",{css:function(e){return{padding:"4px 0 20px 20px",fontWeight:"bold",fontSize:15,lineHeight:"21px",color:e.colors.GBK03A}},children:"本回答为视频回答"}):null:Object(o.b)(Qy,{activeTabKey:g,onChange:O})]}),j&&!w&&Object(o.b)(Xw,{question:u,handleImportDoc:this.onInsertDoc,handleHistoryVersion:this.showDraftHistoryModal}),w&&!j&&Object(o.c)(yf.c,{className:"AnswerForm-exitFullscreenButton",onClick:this.exitFullscreen,onMouseDown:function(e){return e.preventDefault()},children:[Object(o.b)(cO,{text:!0,center:!0})," 退出全屏"]}),U,j&&this.state.settingExpanded&&Object(o.b)("div",{ref:function(e){t.expandedSettingsRef=e},children:Object(o.b)(uC,{question:u,answer:f,isVideoAnswer:this.isVideoAnswer,handleToggleAnonymous:this.props.handleToggleAnonymous,isReediting:s,setScheduledPublish:this.setUseScheduledPublish,canScheduledPublish:this.canUseScheduledPublish,handleExpand:this.handleSettingExpand,settingExpanded:this.state.settingExpanded,isFullScreen:w})})]}),this.renderFooter()]}),w&&Object(a.cloneElement)(U,{readOnly:!0,className:"AnswerForm-cloneEditor",defaultValue:this.getCloneContent(),allowToolbarSticky:!1,toolbarMenuAttention:null,ref:function(e){return t.cloneEditor=e}}),"org"===u.questionType&&Object(o.b)(Jy,{shown:this.state.answerModalShown,onClose:this.handleAnswerModalHide}),"commercial"===u.questionType&&Object(o.b)($y,{shown:this.state.answerModalShown,onClose:this.handleAnswerModalHide}),Object(o.b)(fC,{title:"清除草稿",subtitle:s?"你确定要清除保存的草稿并取消编辑吗?":"你确定要清除保存的草稿吗?",shown:C,onCancel:this.onDeleteDraftModalHide,onSubmit:this.onDeleteDraft}),Object(o.b)(SC,{shown:A,onClose:this.hideDraftHistoryModal,type:"question",id:u.id,onReverted:this.handleReverted}),Object(o.b)(Hy,{shown:k,onClose:function(){t.setState({baiduFileSelectorShown:!1})},onSubmit:function(e){t.setState({baiduFileSelectorShown:!1}),t.editable.handleCommand("insert-file-link-card:".concat(JSON.stringify(e)))}}),Object(o.b)(Pt.b,{className:"UserProfitCardSelector",size:"large",onClose:function(){t.setState({showUserProfitCardSelector:!1})},children:R&&Object(o.b)("div",{className:"UserProfitCardSelector-content",children:Object(o.b)(OO,{className:"UserProfitCardSelector-iframe",src:"https://www.zhihu.com/selection/profit-selector?contentId=".concat(h,"&contentType=answer"),onMessage:this.handleUserProfitCardSelectorSubmit})})}),x&&Object(o.b)(fE,{show:x,enableZVideoListSelectorEntry:!0,showFooter:!0,type:"insert",onClose:function(){t.setState({showZVideoUploader:!1})},onSubmit:function(e){t.setState({showZVideoUploader:!1}),t.editable.handleCommand("insert-zvideo-card:".concat(JSON.stringify(e)))}}),Object(o.b)(Pt.b,{className:"AnswerForm-MCNEditor",title:"编辑商品",onClose:function(){t.setState({mcnEditingGood:null})},children:Boolean(N)&&Object(o.b)(OO,{className:"AnswerForm-MCNEditorIframe",src:"https://www.zhihu.com/selection/goods-editor?title=".concat(N.title,"&originTitle=").concat(N.originTitle,"&source=").concat(N.source,"&sourceId=").concat(N.sourceId,"&productTypeName=").concat(N.productTypeName),onMessage:this.handleEditGGRCard})}),Object(o.b)(IC,{onClose:function(){t.props.onCancel()},shown:"slideshow"===b}),Object(o.b)(pC,{onClose:this.hideInviterListModal,shown:I,allInviters:m,onChoose:function(e){t.setState({thankInviterInfo:e}),t.hideInviterListModal()}})]})})}},{key:"videoAnswerPublished",get:function(){var e=this.props.answer,t=(e=void 0===e?{}:e).attachment;return["zvideo","video"].includes(null==t?void 0:t.type)}},{key:"videoAnswerEditable",get:function(){return this.props.activeTabKey===Ky}},{key:"isVideoAnswer",get:function(){return this.videoAnswerPublished||this.videoAnswerEditable}}]),n}(a.Component);cT.propTypes={activeTabKey:jl.a.string,handleTabChange:jl.a.func,question:jl.a.object,isReediting:jl.a.bool,defaultValue:jl.a.string,getFormData:jl.a.func},cT.defaultProps={isReediting:!1},cT.contextTypes={authRequired:jl.a.func};var sT={addDraft:yn.b,updateDraft:yn.n,deleteDraft:yn.f,showNotification:Xr.g,fillCurrentUserIfNeeded:B.d,loadSettings:zt.q,updateSettingsDisclaimer:zt.D,loadLabel:_i.e,getUserProfitPermission:Wi,updateLinkCard:Zi.c,fetchAllInviters:yn.g},uT=Object(Lt.compose)(st.withRouter,Object(Ot.connect)((function(e,t){var n,r,o=e.entities,i=o.questions,a=o.drafts,c=void 0===a?{}:a,s=e.question,u=t.location.query.inviter,l=Object(B.b)(e),d=Object(yn.c)(e,t.question.id),f=u&&(null==d||null===(n=d.find)||void 0===n?void 0:n.call(d,(function(e){return e.id===u})));return{question:i[t.question.id]||t.question,draft:c["question_".concat(t.question.id)],currentUser:l,isPuQuestion:Boolean(s&&s.brand&&s.brand.isPuQuestion),disclaimers:s.disclaimers[t.question.id],settings:t.answer?e.answers.settings[t.answer.id]:null,showUserProfitButton:e.userProfit.permission.visible,thankInviterInfo:null===(r=Object(_i.c)(e,t.answer))||void 0===r?void 0:r.thankInviterInfo,allInviters:d,inviterQuery:u,inviterFromNotification:f,isOffice:Object(z.e)(e),useEditableV2:Object(hC.a)(e),useNewEditorSetting:"1"===Object(z.a)(e,"editor")}}),sT),EE)(cT),lT=n(1106),dT=function(e){return c.a.createElement(xl.a,e,c.a.createElement("path",{d:"M20.044 3H3.956C2.876 3 2 3.517 2 4.9c0 .326.087.533.236.896L10.216 19c.355.571.87 1.143 1.784 1.143s1.429-.572 1.784-1.143l7.98-13.204c.149-.363.236-.57.236-.896 0-1.386-.876-1.9-1.956-1.9z",fillRule:"evenodd"}))};dT.defaultProps={name:"TriangleDown"};var fT=dT;function pT(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var hT=function(e){Object(ml.a)(n,e);var t=pT(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={step:0},e.containerRef=Object(a.createRef)(),e.reasonButtonRefs=[],e.toggleStep=function(){e.setState({step:0===e.state.step?1:0},(function(){e.popover.position()}))},e.handleKeyDown=function(t){var n=Number(t.key);n&&e.reasonButtonRefs[n-1]&&e.reasonButtonRefs[n-1].focus()},e.handleNeverShowVoteDownReason=function(){e.props.onSetVoteDownReason(!1),e.popover.close()},e.handleSelectReason=function(t){e.props.onSelectVoteDownReason(t),e.popover.close()},e}return Object(vl.a)(n,[{key:"componentDidUpdate",value:function(){"absolute"===this.props.positionStatus&&this.popover.close()}},{key:"render",value:function(){var e=this,t=this.props,n=t.reasonList,r=t.positionStatus,a=this.state.step,c=Object(i.a)(n).sort((function(e,t){return e.sort-t.sort}));return Object(o.b)(Of.a,{className:"VoteDownReasonMenu",targetClassName:"VoteDownReasonMenu-target",positionStatus:r,toggler:this.props.toggler,onOpen:function(){e.setState({step:0})},getContainer:function(){return document.querySelector(".ContentItem-actions")},onClick:this.props.onTogglerClick,ref:function(t){e.popover=t,e.props.popoverRef&&e.props.popoverRef(t)},placement:"top",arrowed:!0,preventCloseOnTarget:!0,children:Object(o.c)("div",{className:"VoteDownReasonMenu-container",onKeyDown:this.handleKeyDown,tabIndex:-1,children:[Object(o.c)("div",{className:"VoteDownReasonMenu-header",children:[0===a&&"已反对,你觉得",1===a&&"不再显示该反馈功能?"]}),Object(o.c)("div",{className:"VoteDownReasonMenu-action",children:[0===a&&Object(o.b)(yf.c,{preset:"plain",className:"VoteDownReasonMenu-ignoreButton preventCloseOnTarget",onClick:this.toggleStep,children:"不再显示"}),0===a&&Object(o.b)("div",{className:"VoteDownReasonMenu-spliter"}),Object(o.b)(yf.c,{preset:"plain",className:"VoteDownReasonMenu-closeButton",onClick:function(){e.popover.close()},"aria-label":"关闭",tabIndex:1,icon:Il.a})]}),0===a&&Object(o.b)("div",{className:"VoteDownReasonMenu-reasonList",children:c.map((function(t,n){return Object(o.b)(yf.c,{preset:"plain",className:"VoteDownReasonMenu-reason",onClick:function(){e.handleSelectReason(t)},onRef:function(t){return e.reasonButtonRefs[n]=t},children:t.name},t.reasonId)}))}),1===a&&Object(o.c)("div",{className:"VoteDownReasonMenu-disableReason",children:[Object(o.b)("div",{className:"VoteDownReasonMenu-disableReasonHint",children:"你可以在「设置」页面中的「屏蔽」开启。"}),Object(o.c)("div",{className:"VoteDownReasonMenu-disableReasonButtonList",children:[Object(o.b)(yf.c,{className:"preventCloseOnTarget",onClick:this.toggleStep,children:"返回"}),Object(o.b)(yf.c,{color:"blue",onClick:this.handleNeverShowVoteDownReason,children:"不再显示"})]})]})]})})}}]),n}(a.Component);hT.defaultProps={reasonList:[]};var bT=hT;function vT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var mT=function(e){Object(ml.a)(n,e);var t=vT(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,i=new Array(r),c=0;c<r;c++)i[c]=arguments[c];return(e=t.call.apply(t,[this].concat(i))).state={recognizeInfo:{showRecognizeModal:!1,action:"",voteType:"",isRecognized:e.props.isRecognized}},e.voteUpButtonRef=Object(a.createRef)(),e.voteDownButtonRef=Object(a.createRef)(),e.shouldShowMenu=function(){var t=e.props,n=t.voting,r=t.voteDownReason,o=t.onLoadVoteDownReason;return!!t.isShowVoteDownMenu&&(-1===n?(e.popover.close(),!1):!!r||(e.isPendingForVoteDownReason=!0,o(),!1))},e.onVote=e.context.authRequired((function(t){e.props.onVote(t)}),le.J.vote),e.voteUp=function(t){var n=1===e.props.voting?["UnUpvote","neutral"]:["Upvote","up"],r=Object(gt.a)(n,2),o=r[0],i=r[1];e.vote(t,o,i),e.voteUpButtonRef.current.focus()},e._voteDown=function(t){var n=-1===e.props.voting?["UnDownvote","neutral"]:["Downvote","down"],r=Object(gt.a)(n,2),o=r[0],i=r[1];e.vote(t,o,i),e.voteDownButtonRef.current.focus()},e.voteDown=function(t){e.shouldShowMenu()&&e.popover.open(),e._voteDown(t)},e.vote=function(t,n,r){var o=e.props,i=o.disableAuth,a=o.handleToggleGuide,c=o.onClick,s=o.type,u=o.zaIds,l=u.voteUp,d=u.voteDown,f=n.includes("Upvote")?l:d;"article"===s&&"down"===r&&q.a.trackEvent(e.voteDownButtonRef.current,{action:"Click",id:2315,name:"反对"}),q.a.trackEvent(n.includes("Upvote")?e.voteUpButtonRef.current:e.voteDownButtonRef.current,Object.assign({action:n,element:"Button"},f&&{id:f})),c?c(t,r):i?a():e.onVoteWithRecognize(n,r)},e.onVoteWithRecognize=function(t,n){var r=e.props.voting;!e.state.recognizeInfo.isRecognized||1!==r||"UnUpvote"!==t&&"Downvote"!==t?e.onVote(n):e.setState({recognizeInfo:Object.assign({},e.state.recognizeInfo,{showRecognizeModal:!0,action:t,voteType:n})})},e.handleConfirmCancelRecognize=function(){e.onVote(e.state.recognizeInfo.voteType),e.setState({recognizeInfo:Object.assign({},e.state.recognizeInfo,{isRecognized:!1,showRecognizeModal:!1})})},e.handleCloseCancelRecognizeModal=function(){return e.setState({recognizeInfo:Object.assign({},e.state.recognizeInfo,{showRecognizeModal:!1})})},e.handleTogglerClick=function(t){e.shouldShowMenu()||t.preventDefault(),e._voteDown(t)},e.renderVoteUpButton=function(){var t=e.props,n=t.isOwner,r=t.count,i=t.voting,a=t.disabled,c=t.hideDesc,s=1===i?"已赞同":"赞同",u=[s,Object(hh.cnNiceNumber)(r)].join(" "),l=[!c&&s,0!==r&&Object(hh.cnNiceNumber)(r).trim()].filter(Boolean).join(" ");return Object(o.c)(yf.c,{className:rl()("VoteButton VoteButton--up",{"is-active":1===i}),disabled:n||a,onClick:e.voteUp,"aria-label":u,onRef:e.voteUpButtonRef,children:[Object(o.b)(lT.a,{center:!0,size:10,className:"VoteButton-TriangleUp"}),l]})},e.renderVoteDownButton=function(){var t=e.props,n=t.voting,r=t.disabled,i=-1===n?"已反对":"反对";return Object(o.b)(yf.c,{className:rl()("VoteButton VoteButton--down",{"is-active":-1===n},{"VoteButton--mobileDown":void 0}),disabled:r,onClick:e._voteDown,"aria-label":i,onRef:e.voteDownButtonRef,children:Object(o.b)(fT,{center:!0,size:10})})},e}return Object(vl.a)(n,[{key:"componentWillReceiveProps",value:function(e){e.voteDownReason&&this.isPendingForVoteDownReason&&(this.isPendingForVoteDownReason=!1,this.popover.open())}},{key:"render",value:function(){var e=this,t=this.props,n=t.isOwner,r=t.positionStatus,i=t.isShowVoteDownMenu,a=t.voteDownReason,c=this.state.recognizeInfo,s=c.showRecognizeModal,u="UnUpvote"===c.action,l=i&&!0;return Object(o.c)("span",{ref:this.voteButtonRef,children:[Object(o.b)(ff.b,{keyMap:{VOTE_UP:"v",VOTE_DOWN:"d"},handlers:{VOTE_UP:this.voteUp,VOTE_DOWN:this.voteDown}}),this.renderVoteUpButton(),!n&&!l&&this.renderVoteDownButton(),!n&&l&&Object(o.b)(bT,{reasonList:a,toggler:this.renderVoteDownButton(),popoverRef:function(t){return e.popover=t},positionStatus:r,onTogglerClick:this.handleTogglerClick,onSelectVoteDownReason:this.props.onSelectVoteDownReason,onSetVoteDownReason:this.props.onSetVoteDownReason}),Object(o.b)(Wh.b,{title:"确定".concat(u?"取消赞同":"选择反对"),onClose:this.handleCloseCancelRecognizeModal,children:s&&Object(o.c)("div",{children:[Object(o.c)("div",{children:[u?"取消赞同":"选择反对","时,你赠与作者的专业徽章也会收回,并且赠与次数不会返还,是否仍要取消?"]}),Object(o.c)(Wh.a,{direction:"horizontal",children:[Object(o.b)(yf.c,{onClick:this.handleCloseCancelRecognizeModal,children:u?"暂不取消":"暂不选择"}),Object(o.b)(yf.c,{preset:"primary",color:"blue",onClick:this.handleConfirmCancelRecognize,children:u?"取消赞同":"选择反对"})]})]})})]})}}]),n}(a.Component);function gT(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}mT.contextTypes={authRequired:jl.a.func},mT.propTypes={voting:jl.a.oneOf([-1,0,1]).isRequired,disabled:jl.a.bool,type:jl.a.string,hideDesc:jl.a.bool,zaIds:jl.a.shape({voteUp:jl.a.number,voteDown:jl.a.number}),isRecognized:jl.a.bool},mT.defaultProps={voting:0,disabled:!1,type:"",hideDesc:!1,zaIds:{}};var OT=function(e,t){var n=e.entities.questions[t.answer.question.id];return n&&n.voteDownReason},yT={loadSwitches:Wo,showNotification:Xr.g,updateAnswerVote:zt.C,getVoteDownReason:zt.g,selectVoteDownReason:zt.u,setOpposeRightStatus:Yo},jT=function(e){Object(ml.a)(n,e);var t=gT(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleVote=e.context.authRequired((function(t){var n=e.props,r=n.answer;(0,n.updateAnswerVote)(r.id,t,{cardType:r.cardType})}),le.J.vote),e.handleLoadVoteDownReason=function(){var t=e.props,n=t.answer;(0,t.getVoteDownReason)(n.id,n.question.id)},e.handleSelectVoteDownReason=function(t){var n=e.props,r=n.answer,o=n.selectVoteDownReason,i=n.showNotification;o(r.id,t.reasonId).then((function(e){i(e.payload.message)}))},e.handleSetShowVoteDownReason=function(t){(0,e.props.setOpposeRightStatus)(t)},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this.props.loadSwitches;this.shouldShowVoteDownMenu&&e(["opposeRight"])}},{key:"render",value:function(){var e=this.props,t=e.answer,n=e.voteDownReason,r=e.opposeRightStatusIsOn,i=Object(_e.a)(e,["answer","voteDownReason","opposeRightStatusIsOn"]);return Object(o.b)(mT,Object.assign({count:t.voteupCount,voting:t.relationship&&t.relationship.voting,isOwner:t.relationship&&t.relationship.isAuthor,isShowVoteDownMenu:this.shouldShowVoteDownMenu&&r,onVote:this.handleVote,voteDownReason:n,onLoadVoteDownReason:this.handleLoadVoteDownReason,onSelectVoteDownReason:this.handleSelectVoteDownReason,onSetVoteDownReason:this.handleSetShowVoteDownReason},ei()(i,Object.keys(yT))))}},{key:"shouldShowVoteDownMenu",get:function(){return Boolean(!this.props.disabled&&this.context.currentUser)}}]),n}(a.Component);jT.contextTypes={currentUser:jl.a.object,authRequired:jl.a.func};var ET=Object(Lt.compose)(Object(Ot.connect)((function(e,t){return{voteDownReason:OT(e,t),opposeRightStatusIsOn:Zo(e)}}),yT))(jT),CT={up:1,neutral:0,down:-1};function wT(e){var t=e.id,n=e.voteupCount,r=e.voting,i=e.isOwner,c=e.answer,s=e.currentUser,u=e.disabled,l=Object(Ot.useDispatch)();Object(a.useEffect)((function(){!u&&s&&l(Wo(["opposeRight"]))}),[u,s,l]);var d=Object(Ot.useSelector)((function(e){var t=e.entities.questions[c.question.id];return null==t?void 0:t.voteDownReason})),f=Object(Ot.useSelector)((function(e){return Zo(e)})),p=Object(a.useCallback)((function(e){l(Object(zt.C)(c.id,CT[e],{zVideoId:t}))}),[t,l,c.id]);return Object(o.b)(mT,{type:"zvideo",isShowVoteDownMenu:Boolean(!u&&s)&&f,count:n,voting:r,onVote:p,isOwner:i,voteDownReason:d,onLoadVoteDownReason:function(){l(Object(zt.g)(c.id,c.question.id))},onSelectVoteDownReason:function(e){l(Object(zt.u)(c.id,e.reasonId)).then((function(e){l(Object(Xr.g)(e.payload.message))}))},onSetVoteDownReason:function(e){l(Yo(e))}})}var TT=n(207),_T=n(647);function ST(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=td()(e);if(t){var o=td()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $l()(this,n)}}function AT(e,t,n){var r=new Image;return r.addEventListener("load",t),r.onerror=n,r.src=e,r}var kT=function(e){Jl()(n,e);var t=ST(n);function n(){var e;Wl()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={thumbnailLoaded:!1,loaded:!1,vagued:!0,computedWidth:e.props.width,computedHeight:e.props.height},e.wrapperNode=null,e.hasLoaded=!1,e.loadThumbnail=function(){var t=e.props,n=t.onLoadImageFail,r=t.onLoadImageTimeout;e.thumbnail=AT(e.props.thumbnail,e.handleThumbnailLoaded,(function(){n&&n({type:"thumbnail",url:e.props.thumbnail})})),r&&setTimeout((function(){e.thumbnail&&!e.thumbnail.complete&&r({type:"thumbnail",url:e.props.thumbnail})}),3e3)},e.loadImage=function(){var t=e.props,n=t.onLoadImageFail,r=t.onLoadImageTimeout;e.image=AT(e.props.url,e.handleImageLoaded,(function(){n&&n({type:"image",url:e.props.url})})),r&&setTimeout((function(){e.image&&!e.image.complete&&r({type:"image",url:e.props.url})}),3e3)},e.handleObserve=function(t){t&&e.hasLoaded||t&&(e.hasLoaded=!0,e.loadThumbnail(),e.loadImage())},e.handleThumbnailLoaded=function(){var t=e.props.onLoadImageSuccess;t&&t({type:"thumbnail",url:e.props.thumbnail});var n=e.state,r=n.computedWidth;if(!n.computedHeight){var o=e.thumbnail,i=o.naturalWidth,a=o.naturalHeight*(Number(r)/i);e.setState({computeHeight:a})}e.setState({thumbnailLoaded:!0})},e.handleImageLoaded=function(){var t=e.props.onLoadImageSuccess;t&&t({type:"image",url:e.props.url}),e.setState({loaded:!0}),e.timeout=window.setTimeout((function(){return e.setState({vagued:!1})}),500)},e}return Ql()(n,[{key:"componentDidMount",value:function(){if(this.wrapperNode){var e=Object(V.findDOMNode)(this.wrapperNode),t=this.state,n=t.computedWidth,r=t.computedHeight;this.setState({computeWidth:n||e.offsetWidth,computeHeight:r||e.offsetHeight})}}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),this.thumbnail&&this.thumbnail.removeEventListener("load",this.handleThumbnailLoaded),this.image&&this.image.removeEventListener("load",this.handleImageLoaded)}},{key:"render",value:function(){var e=this,t=ei()(this.props,["onLoadImageFail","onLoadImageTimeout","onLoadImageSuccess"]),n=t.className,r=t.url,o=t.alt,i=t.threshold,a=t.thumbnail,c=Ld()(t,["className","url","alt","threshold","thumbnail"]),s=this.state,u=s.thumbnailLoaded,l=s.loaded,d=s.vagued,f=s.computedWidth,p=s.computedHeight;if(!d)return Object(Md.c)("img",Dd()({className:n,width:f,src:r,alt:o},c));var h=dg.a;return Object(Md.c)(h,{rootMargin:"".concat(i,"px 0px ").concat(i,"px 0px"),onChange:this.handleObserve,className:rl()("VagueImage",n),ref:function(t){e.wrapperNode=t},style:Object.assign({},f&&{width:"".concat(f,"px")},{},p&&{height:"".concat(p,"px")}),"data-src":r},Object(Md.c)("div",{className:rl()("VagueImage-mask",{"is-active":!l}),style:u?{backgroundImage:"url(".concat(a,")")}:{}}),l&&Object(Md.c)("img",{className:"VagueImage-innerLarge",src:r,alt:o}))}}]),n}(a.Component);kT.defaultProps={threshold:200};var RT=kT,IT=n(197),xT=n(83),NT=n(648),DT=n(1063);function PT(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var LT=function(e){Object(ml.a)(n,e);var t=PT(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.visible,n=e.top,r=e.onSelect,i=e.content,a=this.hintInfo,c=a&&"danger"===a.type;return Object(o.c)("div",{className:rl()("SharePopover",{"SharePopover--show":t}),style:{top:n},disabled:c,children:[Object(o.b)("span",{className:"SharePopover-arrow"}),Object(o.c)("div",{className:rl()("SharePopover-content",{"SharePopover-content--danger":c}),onClick:function(){c||r(i)},children:[Object(o.b)(DT.a,{className:"SharePopover-quote",size:24}),Object(o.b)("span",{className:"SharePopover-main",children:"发送到百科下的摘录"}),a&&Object(o.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}(a.Component);LT.propTypes={content:jl.a.string,top:jl.a.number,visible:jl.a.bool};var MT=LT,UT=n(450);function BT(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var zT=function(e){Object(ml.a)(n,e);var t=BT(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={expanded:!0},e.handleTitleClick=function(t){q.a.trackEvent(Object(kl.a)(e),{id:6121,action:"OpenUrl",element_name:"Title"}),window.open(t)},e.renderHeader=function(){var t=e.props,n=t.title,r=t.url,i=t.author;return Object(o.c)("div",{className:"AbstractCard-header",children:[Object(o.c)("div",{className:"AbstractCard-desc",children:[Object(o.b)("span",{className:"AbstractCard-title",onClick:function(){return e.handleTitleClick(r,n)},children:n}),Object(o.b)("span",{className:"AbstractCard-source",children:e.abstractSourceInfo})]}),Object(o.b)(FE.a,{zaId:6120,className:"AbstractCard-author",author:i,preset:"plain"})]})},e.renderContent=function(){var t=e.props,n=t.content,r=t.member.name,i=t.theme;return Object(o.c)("div",{className:"AbstractCard-content",children:[Object(o.b)("div",{className:"AbstractCard-text AbstractCard-text--".concat(i),children:n}),Object(o.b)("div",{className:"AbstractCard-tip",children:Object(o.c)("span",{className:"AbstractCard-info",children:[r," 摘录于 ",e.createdFormat]})})]})},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){Object(xT.onViewedOnce)(this.node,(function(){q.a.trackCardShow(null,{id:6118})}))}},{key:"render",value:function(){var e=this;return Object(o.c)("div",{className:"AbstractCard",ref:function(t){e.node=t},children:[this.renderHeader(),this.renderContent()]})}},{key:"abstractSourceInfo",get:function(){return"answer"===this.props.type?"下的回答内容摘录":"下的内容摘录"}},{key:"createdFormat",get:function(){var e=this.props.created;return Object(UT.a)(e?new Date(1e3*e):new Date,"yyyy-MM-dd")}}]),n}(a.Component);zT.propTypes={title:jl.a.string.isRequired,url:jl.a.string.isRequired,author:jl.a.object,member:jl.a.object,content:jl.a.string.isRequired,created:jl.a.number,theme:jl.a.string.isRequired};var FT=zT;function GT(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var VT=function(e){Object(ml.a)(n,e);var t=GT(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={topics:[],actived:!1},e.handleChange=function(t){(0,e.props.onChange)(t),e.setState((function(e){return Object.assign({},e,{actived:!1,topics:t})}))},e.deactived=function(){e.setState({actived:!1})},e.toggleActived=function(){e.setState((function(e){return Object.assign({},e,{actived:!e.actived})}))},e.focus=function(){return e.topicsInput&&e.topicsInput.focus()},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this,t=this.state,n=t.topics,r=t.actived;return Object(o.b)("div",{className:"TopicSelect",children:Object(o.b)(nh,{actived:r,placeholderNote:" ",max:1,inputProps:{className:"".concat("TopicSelect","-topicInput")},onRef:function(t){e.topicsInput=t},value:n,onChange:this.handleChange,onBlur:this.handleBlur,onToggleActived:this.toggleActived})})}}]),n}(a.Component);function HT(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var qT=function(e){Object(ml.a)(n,e);var t=HT(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={topics:[]},e.handleChangeTopics=function(t){e.setState((function(e){return Object.assign({},e,{topics:t})}))},e.handleSubmit=function(){var t=Object(gt.a)(e.state.topics,1)[0].urlToken;(0,e.props.onSubmit)(t)},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.type,n=e.author,r=e.currentUser,i=e.title,c=e.url,s=e.onClose,u=e.content,l=e.visible;return Object(o.b)(Pt.b,{onClose:s,size:"large",title:"发送摘录到百科",className:"AbstractForm",children:l&&Object(o.c)(a.Fragment,{children:[Object(o.b)(FT,{type:t,author:n,member:r,title:i,url:c,content:u,theme:"scroll"}),Object(o.b)(VT,{onChange:this.handleChangeTopics}),Object(o.b)("div",{className:"AbstractForm-footer",children:Object(o.b)(yf.c,{preset:"primary",color:"blue",disabled:this.disabled,onClick:this.handleSubmit,children:"确定"})})]})})}},{key:"disabled",get:function(){var e=this.state.topics,t=this.props.content;return 0===e.length||""===t}}]),n}(a.Component);function KT(e,t){return!(!e||!t)&&(e.id===t.id&&void 0!==e.id||e.urlToken===t.urlToken&&void 0!==e.urlToken)}function WT(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}qT.propTypes={type:jl.a.string.isRequired,author:jl.a.object,currentUser:jl.a.object,title:jl.a.string.isRequired,content:jl.a.string.isRequired,url:jl.a.string.isRequired,visible:jl.a.bool.isRequired,onClose:jl.a.func.isRequired,onSubmit:jl.a.func.isRequired};var YT=function(e){Object(ml.a)(n,e);var t=WT(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={popoverVisible:!1,top:0,content:"",abstractModalVisible:!1},e.handlePopoverShow=function(t,n){if(!e.hasAddBaikeSummaryPermission)return null;q.a.trackCardShow(null,{id:6115}),e.setState((function(e){return Object.assign({},e,{top:n,content:t,popoverVisible:!0})}))},e.handlePopoverClose=function(){if(!e.hasAddBaikeSummaryPermission)return null;e.setState((function(e){return Object.assign({},e,{popoverVisible:!1})}))},e.handleAbstractModalClose=function(){e.setState((function(e){return Object.assign({},e,{abstractModalVisible:!1})}))},e.handleAbstractSelected=function(t){q.a.trackEvent(null,{id:6116,action:"Send"}),e.setState((function(e){return Object.assign({},e,{content:t,popoverVisible:!1,abstractModalVisible:!0})}))},e.handleCreateAbstract=function(t){var n=e.props,r=n.type,o=n.objectId,i=n.createAbstract,a=e.state.content;q.a.trackEvent(null,{id:6117,action:"Submit"}),i({type:r,token:o,topicId:t,content:a}).then((function(){e.setState((function(e){return Object.assign({},e,{content:a,popoverVisible:!1,abstractModalVisible:!1})}))}))},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e,t,n;e=this.richContainer,t=this.handlePopoverShow,n=this.handlePopoverClose,e.onmouseup=function(){var r=Object(k.a)(A.a.mark((function r(o){var i,a;return A.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,new Promise((function(e){setTimeout((function(){var t="";t=document.selection?document.selection.createRange().text:document.getSelection(),e(t.toString())}),0)}));case 2:(i=r.sent)?(a=o.target===e?o.offsetY:o.offsetY+o.target.offsetTop+30,t(i,a)):n();case 4:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()}},{key:"render",value:function(){var e=this.state,t=e.popoverVisible,n=e.top,r=e.content,i=e.abstractModalVisible,c=this.props,s=c.type,u=c.author,l=c.currentUser,d=c.title,f=c.url,p=c.isCopyable;return this.hasAddBaikeSummaryPermission?Object(o.c)(a.Fragment,{children:[Object(o.b)(MT,{top:n,visible:t,content:r,isCopyable:this.isAuthor||p,onBlur:this.handlePopoverClose,onSelect:this.handleAbstractSelected}),Object(o.b)(qT,{type:s,onSubmit:this.handleCreateAbstract,author:u,visible:i,onClose:this.handleAbstractModalClose,currentUser:l,title:d,url:f,content:r})]}):null}},{key:"isAuthor",get:function(){var e=this.props;return KT(e.currentUser,e.author)}},{key:"hasAddBaikeSummaryPermission",get:function(){var e=this.props.currentUser;return e&&e.hasAddBaikeSummaryPermission}},{key:"richContainer",get:function(){var e=this.props,t=e.type,n=e.objectId;return"article"===t?document.querySelector(".Post-RichText"):document.querySelector(".AnswerItem[name='".concat(n,"'] .RichContent-inner"))}}]),n}(a.Component);YT.propTypes={type:jl.a.string.isRequired,author:jl.a.object.isRequired,currentUser:jl.a.object,title:jl.a.string.isRequired,url:jl.a.string.isRequired,objectId:jl.a.number.isRequired,isCopyable:jl.a.bool},YT.defaultProps={isCopyable:!0};var QT=Object(Lt.compose)(Object(wf.b)(),Object(Ot.connect)(null,{createAbstract:lo.b}))(YT);function ZT(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var JT=function(e){Object(ml.a)(n,e);var t=ZT(n);function n(){var e;return Object(bl.a)(this,n),(e=t.call(this)).state={tipShown:!1,tipContent:"",tipX:0,tipY:0,tipPosition:"bottom"},e.handleMouseDown=e.handleMouseDown.bind(Object(kl.a)(e)),e.handleCopy=e.handleCopy.bind(Object(kl.a)(e)),e.handleTipClose=e.handleTipClose.bind(Object(kl.a)(e)),e.rightClickX=-1,e.rightClickY=-1,e}return Object(vl.a)(n,[{key:"getRange",value:function(e){if(e&&e.rangeCount>0)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("<br />");return"<div>".concat(r?o+e:e+o,"</div>")}},{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),i=o.toString().trim(),a=this.getRangeHtml(o);if(i&&!(i.length<128)){var c=i.length>=512,s=this.getCopyHtml(a,t,n,c),u=this.getCopyText(i,t,n,c),l=e.nativeEvent.clipboardData;if("object"==typeof l){if(l.setData("text/html",'<meta charset="utf-8">'+s),l.setData("text/plain",u),l.getData("text/plain")&&l.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(),i=this.randomRange(44,66);if(!(o.length<=i)){e.preventDefault(),e.stopPropagation();var a,c=r.getBoundingClientRect(),s=window.pageYOffset,u=this.rightClickX,l=this.rightClickY,d="bottom";if(-1!==l)a=l+3;else{var f=this.props.viewPort,p=c.top+s,h=c.bottom+s,b=s+f.top+52,v=s+f.bottom-52;h<b?a=b-52:h<v?a=h:(d="top",a=p>b&&p<v?p:v+52)}var m=-1!==u?u+3:c.left+(c.right-c.left)/2-12;this.setState({tipShown:!0,tipContent:t,tipX:m,tipY:a,tipPosition:d}),this.rightClickX=-1,this.rightClickY=-1}}}},{key:"handleTipClose",value:function(){this.setState({tipShown:!1})}},{key:"handleCopy",value:function(e){var t=this.props,n=t.data,r=n.author,i=n.type,a=n.id,c=n.question,s=n.reshipmentSettings,u=n.relationship,l=(u=void 0===u?{}:u).isAuthor,d=u.isAuthorized,f=t.isCurrentUser,p="";if("article"===i?p="https://zhuanlan.zhihu.com/p/".concat(a):"answer"===i&&(p="https://www.zhihu.com/question/".concat(c.id,"/answer/").concat(a)),!f&&!l)switch(s){case"disallowed":this.showTip(e,Object(o.b)("a",{href:"https://www.zhihu.com/term/zhihu-terms#sec-licence-6",children:"禁止转载"}));break;case"need_payment":if(!d){this.showTip(e,Object(o.b)("a",{href:"https://www.zhihu.com/copyright/apply?answer=".concat(a),children:"申请转载"}));break}this.showTip(e,"已获授权,复制成功");default:this.addCopyright(e,p,r.name)}}},{key:"handleMouseDown",value:function(e){3===e.nativeEvent.which&&(this.rightClickX=e.pageX,this.rightClickY=e.pageY)}},{key:"render",value:function(){var e=this.props,t=e.onRef,n=e.data,r=e.tag,i=e.html,a=e.children,c=e.onClick,s=e.className,u=e.itemProp,l=e.style,d=e.prefix,f=e.ecommerce,p=e.shouldUseArticleCard,h=e.shouldShowCatalog,b=e.richContentKey,v=this.state,m=v.tipShown,g=v.tipContent,O=v.tipX,y=v.tipY,j=v.tipPosition;return Object(o.c)("div",{ref:t,onClick:c,className:s,style:l,children:[d,Object(o.b)(bC.a,{richContentKey:b,sourceId:n.id,sourceType:n.type,itemProp:u,tag:r,html:i,onCopy:this.handleCopy,onMouseDown:this.handleMouseDown,className:"CopyrightRichText-richText",ecommerce:f,shouldUseArticleCard:p,shouldShowCatalog:h}),a,Object(o.b)(Vd,{shown:m,timeout:1e4,hideOnClick:!0,onClose:this.handleTipClose,x:O,y:y,position:j,content:g,className:"CopyrightRichText-tooltip"})]})}}]),n}(a.Component);JT.propTypes={onRef:jl.a.func,viewPort:jl.a.object};var XT=Object(Lt.compose)(Object(Ot.connect)((function(e,t){return{isCurrentUser:Object(B.g)(e,t.data.author)}})))(JT),$T=n(257);function e_(){var e=Object(vm.a)(["发布于",""]);return e_=function(){return e},e}function t_(){var e=Object(vm.a)(["编辑于",""]);return t_=function(){return e},e}function n_(){var e=Object(vm.a)(["发布于",""]);return n_=function(){return e},e}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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var o_=function(e){Object(ml.a)(n,e);var t=r_(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.href,n=e.created,r=e.updated,i=e.onClick,a=e.videoPlayCount;return Object(o.c)("div",{className:"ContentItem-time",children:[Object(o.b)(st.Link,{to:t,target:"_blank",onClick:i,children:Object(o.b)("span",{"data-tooltip":gm()(n_(),Object(ci.toAbsoluteDateTimeString)(n)),children:r!==n?gm()(t_(),Object(ci.toSmartString)(r)):gm()(e_(),Object(ci.toSmartString)(n))})}),Boolean(a)&&Object(o.c)("span",{css:{marginTop:10,marginLeft:5},children:["· ",Object(hh.cnNiceNumber)(a),"次播放"]})]})}}]),n}(a.Component);o_.propTypes={href:jl.a.string,created:jl.a.number,updated:jl.a.number,videoPlayCount:jl.a.number,onClick:jl.a.func};var i_=o_,a_=n(261);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var s_=/.*?(class="link-box")/;var u_=function(e){Object(ml.a)(n,e);var t=c_(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state=Object.assign({},e.getInitTruncatedState(e.props),{shouldSticky:!1,offset:0}),e.richContentRef=Object(a.createRef)(),e.truncateContent=function(){var t=e.props.isMobile?400:800,n=e.props.expandedHeight||t;(!e.content||e.content.scrollHeight<n)&&e.setState({isTruncated:!1,isExpanded:!1}),e.content&&e.content.scrollHeight>e.content.offsetHeight&&e.setState({contentCollapsed:!0})},e.updateStateInBrowser=function(){var t=e.props,n=t.excerpt,r=t.allowCollapseWithEmptyExcerpt,o=t.html,i=t.expanded,a=t.cover,c=t.unescapable,s=t.limit,u=t.limitWithImage,l=t.truncateHTMLOptions,d=t.truncateDisabled,f=!0,p=e.state.truncatedContent;if((n||r)&&(s_.test(n)||d))p=n;else if(!c){var h=a?u:s,b=e.truncate(o,h,l);f=b.isTruncated,p=b.content}return{isTruncated:f,isExpanded:o&&i,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));q.a.trackEvent(e.richContentRef.current,Object.assign({action:"Expand"},n&&{name:n},o&&{id:o}));var i=e.props.onExpand;if(i)i(t);else{var a=e.props,c=a.onToggleExpend,s=a.data,u=s.type,l=s.id;e.context.currentUser&&Object(a_.c)("article"===u?"post":u,l,a_.a);c&&c(!0),e.setState({isExpanded:!0},(function(){"article"===u&&Object(xT.onViewedOnce)(e.richContentRef.current,(function(){q.a.trackEvent(e.richContentRef.current,{action:"ReadFinish"})}))}))}},e.handleCollapse=function(){var t=e.props.onToggleExpend;q.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,i=t.target;o||"IMG"!==i.tagName||!i.classList.contains("zh-lightbox-thumb")&&!i.classList.contains("Slideshow-swiperImage")||e.setState({previewImg:i})},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]),i=o.intersectionRatio,a=o.isIntersecting;e.truncateComputed||(i>0||a)&&(setTimeout((function(){return e.truncateContent()})),e.truncateComputed=!0)},e.isCollapsed=function(){var t=e.props,n=t.after,r=t.before,o=t.unescapable,i=e.state,a=i.isExpanded,c=i.isTruncated;return!r&&!n||o?c&&!a:!a},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this;this.setState(Object.assign({},this.updateStateInBrowser(),{viewPort:{top:148,bottom:window.innerHeight-56}})),Object(xT.onViewedOnce)(this.richContentRef.current,(function(){var t=e.props,n=t.data,r=n.type,o=n.id,i=t.expanded;e.context.currentUser&&i&&Object(a_.c)("article"===r?"post":r,o,a_.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.top<this.props.topExcludedHeight&&(this.rect=n,this.scroll=window.pageYOffset)}}},{key:"componentDidUpdate",value:function(e,t){if(t.isExpanded&&!this.state.isExpanded&&this.rect){var n=this.rect,r=n.top,o=n.bottom,i=n.height,a=this.richContentRef.current.offsetHeight,c=window.innerHeight,s=o<c?a-i:r-(c-a);window.scrollTo(0,this.scroll+s),this.rect=null,this.scroll=null}}},{key:"componentWillUnmount",value:function(){this.props.imperativeRef&&(this.props.imperativeRef.current=null)}},{key:"getInitTruncatedState",value:function(e){var t=e.excerpt,n=e.html,r=e.expanded,o=e.unescapable;return{isTruncated:t.length<=n.length,isExpanded:r,truncatedContent:o?n:t,previewImg:null}}},{key:"truncate",value:function(e,t,n){var r=Object(NT.truncateHTML)(e,t,n);return{isTruncated:r.isTruncated,content:r.content}}},{key:"renderActions",value:function(){var e=this,t=this.props,n=t.children,r=t.unescapable,i=t.noCollapsed,a=t.expandText,c=void 0===a?"展开阅读全文":a,s=t.onClick,u=t.videoData,l=t.needExpandArrow,d=void 0===l||l,f=this.state,p=f.isExpanded,h=f.isTruncated,b=f.shouldSticky,v=f.offset;if(!p)return[r&&h&&!u&&Object(o.c)(yf.c,{preset:"plain",className:"ContentItem-rightButton ContentItem-expandButton",onClick:s||this.handleExpand,children:[c,d&&Object(o.b)(bE.a,{className:"ContentItem-arrowIcon",center:!0})]},"expand-button"),n&&Object(o.b)(Og.a,{children:n},"actions")];var m=(n||!i)&&Object(o.c)(Og.a,{className:"RichContent-actions",children:[n,!i&&Object(o.c)(yf.c,{"data-zop-retract-question":!0,preset:"plain",className:"ContentItem-rightButton",onClick:this.handleCollapse,children:[Object(o.b)("span",{className:"RichContent-collapsedText",children:"收起"}),Object(o.b)(bE.a,{className:"ContentItem-arrowIcon is-active",center:!0})]})]});return b&&m?Object(o.b)(ql.a,{offset:v,bottom:!0,container:function(){return e.richContentRef.current.parentNode},onPositionStatusChange:this.handlePositionStatusChange,children:m}):m}},{key:"renderText",value:function(){var e=this,t=this.props,n=t.html,r=t.excerpt,i=t.data,a=t.itemProp,c=void 0===a?"text":a,s=t.expandText,u=void 0===s?"阅读全文":s,l=t.onClick,d=t.prefix,f=t.unescapable,p=(t.isSearchContent,t.collapsedHeight),h=t.ecommerce,b=t.canAbstract,v=t.shouldUseArticleCard,m=t.richContentKey,g=this.state,O=g.truncatedContent,y=g.previewImg,j=g.viewPort,E=g.contentCollapsed,C=g.isExpanded,w=this.isCollapsed(),T=O||r,_="answer"===i.type?Object(_T.a)(n):n,S=w?T:_,A={},k=Object(o.c)(XT,Object.assign({richContentKey:m&&String([m,w]),itemProp:c,className:rl()("RichContent-inner",{"RichContent-inner--collapsed":E}),style:w&&f?{maxHeight:p}:null,tag:"span",onRef:function(t){e.content=t},data:i,html:S,viewPort:j,prefix:d},w&&{onClick:l||this.handleExpand},A,{ecommerce:h,shouldUseArticleCard:v,shouldShowCatalog:_m(i)&&(C||f&&!w),children:[b&&Object(o.b)(QT,Object.assign({},this.abstractProps)),!f&&w&&Object(o.c)(yf.c,{preset:"plain",className:"ContentItem-more",children:[u,Object(o.b)(bE.a,{className:"ContentItem-arrowIcon",center:!0})]}),y&&Object(o.b)(TT.a,{img:y,onClose:function(){return e.setState({previewImg:null})}})]}),w);return f?Object(o.b)(IT.a,{rootMargin:"200px 0px 200px 0px",onObserve:this.handleTrunObserve,children:k}):k}},{key:"render",value:function(){var e=this.props,t=e.unescapable,r=e.after,i=e.before,c=e.extra,s=e.cover,u=e.hasVideo,l=e.renderCanExpandExtra,d=e.className,f=e.videoData,p=e.handleClickVideoMoreButton,h=e.duration,b=e.isVideoAnswer,v=this.state.isExpanded,m=this.isCollapsed(),g=f?Object(o.c)(a.Fragment,{children:[Object(o.b)($T.a,{data:f}),Object(o.b)("p",{className:"RichContent-videoMore",onClick:p,children:"点击查看全文"})]}):this.renderText(),O=v?Object(o.b)(IT.a,{rootMargin:"-".concat(240,"px 0px"),onObserve:this.handleObserve,children:g}):g;return Object(o.c)("div",{className:rl()("RichContent",d,{"is-collapsed":m,"RichContent--unescapable":t}),ref:this.richContentRef,onClick:this.handlePreview,children:[Object(o.b)(ff.b,{keyMap:{TOGGLE_EXPAND:"o"},handlers:{TOGGLE_EXPAND:this.toggle}}),!m&&i,!t&&m&&s&&Object(o.b)(n.Cover,{url:s,hasVideo:u,onClick:this.handleExpand,duration:h,isVideoAnswer:b}),O,c||"function"==typeof l&&l(v,this.handleExpand),!m&&r,this.renderActions()]})}},{key:"abstractProps",get:function(){var e=this.props.data;return{objectId:e.id,type:e.type,author:e.author,title:e.question.title,url:e.url,isCopyable:e.isCopyable}}}]),n}(a.Component);u_.contextTypes={currentUser:jl.a.object},u_.propTypes={enableConvert:jl.a.bool,unescapable:jl.a.bool,expanded:jl.a.bool,noCollapsed:jl.a.bool,limit:jl.a.number,limitWithImage:jl.a.number,collapsedHeight:jl.a.number,html:jl.a.string,excerpt:jl.a.string,allowCollapseWithEmptyExcerpt:jl.a.bool,truncateDisabled:jl.a.bool,before:jl.a.node,after:jl.a.node,prefix:jl.a.node,extra:jl.a.node,renderCanExpandExtra:jl.a.func,topExcludedHeight:jl.a.number,onPositionStatusChange:jl.a.func,type:jl.a.string,data:jl.a.object,canAbstract:jl.a.bool,cover:jl.a.string,hasVideo:jl.a.bool,truncateHTMLOptions:jl.a.object,expandText:jl.a.string,onToggleExpend:jl.a.func,videoData:jl.a.object,handleClickVideoMoreButton:jl.a.func,zaIds:jl.a.shape({expand:jl.a.number})},u_.defaultProps={limit:160,limitWithImage:100,expanded:!1,unescapable:!1,topExcludedHeight:60,excerpt:"",allowCollapseWithEmptyExcerpt:!1,hasVideo:!1,isVideoAnswer:!1,data:{},collapsedHeight:400,zaIds:{}},u_.Cover=function(e){var t=e.url,n=e.hasVideo,r=e.duration,i=e.isVideoAnswer,a=Object(_e.a)(e,["url","hasVideo","duration","isVideoAnswer"]);return Object(o.c)("div",Object.assign({className:rl()("RichContent-cover",{"RichContent-cover--mobile":void 0})},a,{children:[Object(o.c)("div",{className:"RichContent-cover-inner",children:[Object(o.b)(RT,{thumbnail:Object(Gn.imgUrl)(t,"60w"),url:Object(Gn.imgUrl)(t,"400x224"),alt:"cover"}),r&&Object(o.b)("div",{className:"RichContent-cover-mask"}),r&&Object(o.b)("div",{className:"RichContent-cover-duration",children:r})]}),i&&Object(o.b)("img",{css:{position:"absolute",left:0,top:0,width:"64px",height:"18px",objectFit:"cover"},src:"https://pic1.zhimg.com/80/v2-c19ceba4b1bea7204cb67e27f469c95b_1440w.png"}),n&&Object(o.b)(Wv.a,{className:"RichContent-cover-play"})]}))};var l_=Object(Ot.connect)((function(e){return{isMobile:Object(z.d)(e)}}),{updateReadStatus:Ci})(u_);function d_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var f_=function(e){Object(ml.a)(n,e);var t=d_(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props.activateReward;return Object(o.c)("div",{className:"Reward",children:[Object(o.b)("button",{className:"Reward-activateBtn",onClick:e,children:"开启赞赏"}),Object(o.b)("div",{className:"Reward-activateHint",children:"赞赏开启后,读者将可以付费支持你的创作。"})]})}}]),n}(a.Component);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}f_.propTypes={activateReward:jl.a.func};var h_=function(e){Object(ml.a)(n,e);var t=p_(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.tagline,n=e.totalMoney,r=e.showRewarders;return Object(o.c)("div",{children:[Object(o.b)("div",{className:"Reward-tagline",children:t||le.k}),Boolean(n)&&Object(o.b)("div",{className:"Reward-money",children:Object(o.c)("span",{onClick:r,children:["¥ ",n.toFixed(2)]})})]})}}]),n}(a.Component);h_.propTypes={tagline:jl.a.string,totalMoney:jl.a.number,showRewarders:jl.a.func};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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=td()(e);if(t){var o=td()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $l()(this,n)}}var v_=function(e){Jl()(n,e);var t=b_(n);function n(){return Wl()(this,n),t.apply(this,arguments)}return Ql()(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.tabIndex,r=e.meta,o=e.children,i=e.onRef;return Object(Md.c)("div",{className:rl()("List-item",t),tabIndex:n,ref:i},r&&Object(Md.c)("div",{className:"List-itemMeta"},r),o)}}]),n}(c.a.Component),m_=(n(236),n(447)),g_=n(663);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var y_=function(e){Object(ml.a)(n,e);var t=O_(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.isFetching,n=e.isDrained,r=e.items,i=e.voteupCount,a=e.onLoad,c=e.text,s=e.isRewardList,u=e.notice,l=e.type,d=e.currentUser,f={getContainer:function(e){return e}};return Object(o.c)("div",{className:"VoterList",children:[Object(o.b)(m_.a,{header:"".concat(Object(hh.formatNumber)(i)," 人").concat(c||"赞同了")}),s&&u&&Object(o.b)("div",{className:"VoterList-description",children:Object(o.b)("p",{children:u})}),Object(o.b)(Bv.b,Object.assign({className:"VoterList-content",isLoading:t,isDrained:n,onLoad:a,placeholder:Object(o.b)(Bv.a,{className:"List-item",withAvatar:!0})},f,{children:r&&r.map((function(e,t){return Object(o.b)(v_,{children:Object(o.b)(g_.a,{currentUser:d,user:e,isRewardList:s,meta:null,type:l})},"".concat(t,".").concat(e.urlToken))}))}))]})}}]),n}(a.Component);y_.propTypes={isFetching:jl.a.bool.isRequired,isDrained:jl.a.bool.isRequired,items:jl.a.array.isRequired,voteupCount:jl.a.number.isRequired,text:jl.a.string.isRequired,onLoad:jl.a.func.isRequired,isRewardList:jl.a.bool,type:jl.a.string,currentUser:jl.a.object};var j_=y_;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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var C_=function(e){Object(ml.a)(n,e);var t=E_(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.modalShown,n=e.onLoad,r=e.items,i=e.voteupCount,a=e.isRewardList,c=e.onClose,s=e.notice;return Object(o.b)(Pt.b,{size:"fullPage",onClose:c,children:t&&Object(o.b)(j_,{items:r,text:"赞赏了",isFetching:!1,isDrained:!1,voteupCount:i,onLoad:n,isRewardList:a,notice:s,type:"rewardPeople"})})}}]),n}(a.Component);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}C_.propTypes={onLoad:jl.a.func,modalShown:jl.a.bool};var T_=function(e){Object(ml.a)(n,e);var t=w_(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={hoverName:""},e.hoverUser=function(t){e.setState({hoverName:t.target.dataset.name})},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.users,r=t.handleListShown,i=t.rewardMemberCount,a=t.onUserClick,c=this.state.hoverName,s=n.slice(0,5);return Object(o.c)("div",{className:"Reward-count",children:[Object(o.b)("p",{className:"Reward-User-text",onClick:r,children:"".concat(Object(hh.formatNumber)(i)," 人已赞赏")}),Object(o.c)("div",{children:[s.map((function(t,n){return Object(o.b)(st.Link,{to:"//www.zhihu.com/".concat(t.userType,"/").concat(t.urlToken),className:"Reward-User-img","data-hover-title":c,target:"_blank",onClick:a,children:Object(o.b)("img",{src:t.avatarUrl,className:"Reward-User-avatar","data-name":t.name,"data-index":n,onMouseOver:e.hoverUser,alt:"赞赏用户"})},n)})),i>6&&Object(o.c)("span",{className:"Reward-MoreUser",onClick:r,children:[Object(o.b)("i",{}),Object(o.b)("i",{}),Object(o.b)("i",{})]})]})]})}}]),n}(a.Component);T_.propTypes={users:jl.a.array,handleListShown:jl.a.func,rewardMemberCount:jl.a.number,onUserClick:jl.a.func},T_.defaultProps={users:[]};var __=Object(im.b)({module:"UserList",moduleName:"*** 人已赞赏"})(T_);function S_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var A_=function(e){Object(ml.a)(n,e);var t=S_(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.rewardMemberCount,n=e.handleListShown,r=e.isAuthor,i=e.users,a=e.onUserClick;return t?Object(o.b)(__,{users:i,onUserClick:a,handleListShown:n,rewardMemberCount:t}):Object(o.b)("div",{className:"Reward-countZero",children:r?"还没有人赞赏。":"还没有人赞赏,快来当第一个赞赏的人吧!"})}}]),n}(a.Component);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}A_.propTypes={rewardMemberCount:jl.a.number,handleListShown:jl.a.func,isAuthor:jl.a.bool,users:jl.a.array,onUserClick:jl.a.func};var R_=function(e){Object(ml.a)(n,e);var t=k_(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.tagline,n=e.onClick;return Object(o.c)("div",{children:[Object(o.b)("div",{className:"Reward-tagline",children:t||le.k}),Object(o.b)("button",{className:"Reward-rewardBtn",onClick:n,children:"赞赏"})]})}}]),n}(a.Component);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}R_.propTypes={onClick:jl.a.func,tagline:jl.a.string};var x_=function(){return n.e(11).then(n.bind(null,1355)).then((function(e){return e.TipjarDialog}))},N_=function(e){Object(ml.a)(n,e);var t=I_(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={TipjarRender:!1,modalShown:!1},e.onSubmitReward=function(t){w.a.set("isRewardable",!0),e.updateReward(t)},e.onPaySuccess=function(){var t=e.props,n=t.reward,r=t.currentUser,o=t.id,i=t.type,a=n[i][o].users,c=[r];Array.isArray(a)&&(a.push(r),c=a),e.props.onRewardSuccess(c,o,i),e.colseTijarDialog(),e.props.showNotification("你已赞赏成功!")},e.onLoad=function(t){"article"===e.props.type?"normal"===t?e.onLoadArticleRewardUser():e.onLoadArticleRewardUserDetails():e.onLoadRewardUser()},e.onLoadArticleRewardUser=function(){var t=e.props.id;e.props.getArticleRewardUser(t)},e.onLoadArticleRewardUserDetails=function(){var t=e.props,n=t.id;t.isAuthor?e.props.getPagingArticleRewardUserDetails(n):e.props.getPagingArticleRewardUser(n)},e.onLoadRewardUser=function(){var t=e.props,n=t.id;t.isAuthor?e.props.getRewardUserDetails(e.props.id):e.props.getRewardUser(n).then((function(t){var n=t.payload.data;if(n.length>0){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,i=n.rewardInfo.canOpenReward;if("article"===r){var a=!!i||void 0;e.props.updateArticleReward(o,t,a)}else e.props.updateAnswerReward(o,t)},e.activateReward=function(){e.onSubmitReward(le.k)},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,Xr.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(vl.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,i=e.id,a=e.reward,c=e.author,s=e.type,u=e.ua,l=e.rewardInfo,d=l.canOpenReward,f=l.isRewardable,p=l.tagline,h=l.rewardTotalMoney,b=l.rewardMemberCount,v=e.onRewardUserClick,m=e.balanceEnable;if(n&&t&&"organization"===t.userType)return null;var g=this.state,O=g.TipjarRender,y=g.modalShown;if(n&&d)return Object(o.b)("div",{children:Object(o.b)(f_,{activateReward:this.activateReward})});if(f){var j=a&&a[s][i]||{},E=j.tradeNumber,C=j.users,w=j.notice,T=Object(o.b)(C_,{modalShown:y,items:C,voteupCount:b,onLoad:this.onLoad,isRewardList:n,notice:w,onClose:this.handleListHide}),_=Object(o.b)(A_,{rewardMemberCount:b,handleListShown:this.handleListShown,onUserClick:v,users:C,isAuthor:n});if(!n)return Object(o.c)("div",{className:"Reward",children:[Object(o.b)(R_,{tagline:p,onClick:this.handleRewardButtonClick}),_,T,Object(o.b)(Qv.a,{getComponent:x_,author:c,tagline:p,isMobile:r,ua:u,addReward:this.addReward,colseTijarDialog:this.colseTijarDialog,tradeNumber:E,removeTradeNumber:this.removeTradeNumber,onPaySuccess:this.onPaySuccess,TipjarRender:O,type:s,balanceEnable:m})]});var S=(Number(h)||0)/100;return Object(o.c)("div",{className:"Reward",children:[Object(o.b)(h_,{tagline:p,totalMoney:S,showRewarders:this.showRewarders}),T,_]})}return null}}]),n}(a.Component);N_.propTypes={reward:jl.a.object,isAuthor:jl.a.bool,author:jl.a.object,id:jl.a.number,rewardInfo:jl.a.object,currentUser:jl.a.object,ua:jl.a.object,type:jl.a.string,isMobile:jl.a.bool,balanceEnable:jl.a.bool,onRewardButtonClick:jl.a.func,onRewardUserClick:jl.a.func,onRewardUserMoreClick:jl.a.func},N_.contextTypes={authRequired:jl.a.func},N_.defaultProps={rewardInfo:{},type:"answer",balanceEnable:!0};var D_=Object(Lt.compose)(Object(Ot.connect)(null,{updateAnswerReward:zt.z,updateArticleReward:Xo.l,createArticleTipjar:Xo.b,getRewardUserDetails:Xo.i,getPagingArticleRewardUser:Xo.f,getPagingArticleRewardUserDetails:Xo.g,getArticleRewardUser:Xo.e,updateEntitiesUsers:Xo.m,getRewardUser:Xo.h,createTipjar:Xo.c,removeTradeNumber:Xo.k,onRewardSuccess:Xo.j,showNotification:Xr.g}))(N_),P_=function(e){return c.a.createElement(xl.a,e,c.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"}))};P_.defaultProps={name:"Jump"};var L_=P_;var M_=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,i=r.url,a=r.message;return Object(o.c)("a",{className:rl()("CommercialQuestionTail",t),href:i,children:[a,Object(o.b)(L_,{className:"CommercialQuestionTail-Icon",center:!0,text:!0})]})},U_=n(1114),B_=n(1051),z_=n(1107),F_=n(1108),G_=n(1055),V_=n(1109),H_=n(1110),q_=n(1111),K_=n(1112),W_=n(1113),Y_={online_roundtable:B_.a,relevant:z_.a,editor_recommendation:F_.a,roundtable:B_.a,special:G_.a,weekly:V_.a,daily:H_.a,professional:q_.a,zhizhi_plan_recommend:K_.a,zhizhi_plan_edu_recommend:K_.a,zhizhi_plan_baby_recommend:K_.a,zhizhi_plan_acg_recommend:K_.a,zhizhi_plan_outing_recommend:K_.a,zhizhi_plan_rumour_deny:W_.a,zhizhi_plan:K_.a},Q_={alpha:1,group:"GYL02A"},Z_={alpha:.08,group:"GYL02A"},J_={brand_special:U_.a},X_=Object.assign({},Y_,{COMMERCIAL_ICONS:J_}),$_=function(e){return"GBL07A"===(e||Q_).group?"commercial":"positive"},eS=function(e){return"GBL07A"===(e||Z_).group?"commercial":"positive"},tS=function(e){return"recognition"===e?"professional":e},nS=Object(rb.a)(null)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.labelInfo,n=e.extra,r=void 0===n?{}:n,i=e.className;if(!t)return null;var a=t.type,c=t.text,s=t.foregroundColor,u=t.backgroundColor,l=r.customIcon,d=r.customIconClassName,f=$_(s),p=eS(u),h=l||X_[tS(a)];return h?Object(o.c)("span",{className:rl()("Label-icon","Label-iconColor--".concat(f),Object(Ut.a)({},"Label-iconColor--".concat(p,"Background"),u),i),children:[Object(o.b)(h,{center:!0,className:rl()("Label-iconImg",d)}),c]}):null})),rS=["answer","article","post","item"],oS=function(e){return e.itemType||rS.find((function(t){return e[t]}))},iS=function(e){return tl()(Object(Ot.connect)((function(e,t){return{useNewLabels:Object(_i.f)(e,t[oS(t)])}}))((function(t){var n=t.showLabelInfo,r=void 0===n||n,i=t.showLabels,a=void 0===i||i,c=Object(_e.a)(t,["showLabelInfo","showLabels"]),s=oS(c),u=c,l=[];return a||l.push("isLabeled"),r||(l.push("labelInfo"),l.push("hermesLabel")),s&&l.length>0&&(u=Object.assign({},u,Object(Ut.a)({},s,ei()(c[s],l)))),Object(o.b)(e,Object.assign({},u))})),e)},aS=Object(a.createContext)({showLabelInfo:!0,showLabels:!0}),cS=(aS.Provider,aS.Consumer,n(187)),sS=n.n(cS),uS=n(134),lS=n(240),dS=n(317),fS=n(62);function pS(e,t){return e.length<=t?e:"".concat(e.substring(0,t),"...")}function hS(e){var t=e.logoUrl,n=e.productName,r=e.productDesc,o=e.link,i=void 0===o?"":o,a=e.btnText,s=void 0===a?"":a,u=e.className,l=void 0===u?"":u,d=e.productNameMaxLength,f=void 0===d?6:d,p=e.productDescMaxLength,h=void 0===p?15:p,b=e.btnTextMaxLength,v=void 0===b?4:b,m=e.type,g="".concat("pc"===m?"pc":"app","_EAnswerCard");return c.a.createElement("a",{ref:e.cardRef,onClick:e.onClick,href:i,target:"_blank",className:rl()("".concat(g),l)},c.a.createElement("img",{src:t,className:"".concat(g,"-image"),alt:"logo"}),c.a.createElement("div",{className:"".concat(g,"-content")},c.a.createElement("div",{className:rl()("".concat(g,"-content-appName")),style:{WebkitBoxOrient:"vertical",maxWidth:"".concat(f+1,"em")}},pS(n,f)),r&&c.a.createElement("div",{className:"".concat(g,"-content-desc"),style:{maxWidth:"".concat(h+1,"em")}},pS(r,h))),c.a.createElement("div",{className:"".concat(g,"-button"),style:{maxWidth:"".concat(v+1,"em")},onClick:e.onBtnClick},pS(s,v)),"app"===m&&c.a.createElement("div",{className:"app_EAnswerCard-bottom-close",onClick:function(t){return function(e,t){e.stopPropagation(),e.preventDefault(),t.onClose()}(t,e)}},"×"))}var bS=n(213),vS=function(e){function t(e){var n;return Wl()(this,t),(n=$l()(this,td()(t).call(this,e))).onceViewTrack=function(e,t){n.viewShow||(n.viewShow=!0,q.a.trackCardShow(e,{id:5642}),Object(uS.b)(e,{trackMethod:uS.c,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(fS.c)(n.props.data,"plugin.".concat(e,".plugin.").concat(e,".landingUrl"),"");var t=Object(fS.c)(n.props.data,"plugin.".concat(e,".plugin.").concat(e,".downloadInfo"),"{}"),r=Object(fS.c)(JSON.parse(t.adjson||"{}"),"ads[0].creatives[0].asset.app_promotion_url","");r&&(bS.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||p.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(fS.g)().os&&n.appPromotionUrl&&n.downloadInfo&&(e.stopPropagation(),e.preventDefault(),n.sendClickTrack(),bS.a(n.downloadInfo,"ad/downloadApk"))},n.sendClickTrack=function(){q.a.trackEvent(n.card,{id:5641,action:"OpenUrl"}),Object(uS.a)({trackMethod:uS.c,tracks:n.track.click})},n.handleClick=function(e){e.stopPropagation(),n.sendClickTrack(),"pc"!==Object(fS.g)().os&&n.landingUrl&&n.downloadInfo&&(e.preventDefault(),bS.a(n.downloadInfo,"ad/open"))},n.sessionId=Un()(),n.init(e),n.viewShow=!1,n.state={status:"ready"},n}return Jl()(t,e),Ql()(t,[{key:"init",value:function(e){var t=e.data,n=t.plugin,r=t.suger,o=void 0===r?"":r,i=(n[t.pluginType]||{}).trackUrl,a=void 0===i?{}:i,c=Object(fS.g)(),s={xSuger:o,sessionId:this.sessionId,os:c.os,cardType:"".concat(c.os,"_download")};this.track=Object(fS.m)(a,s)}},{key:"componentDidMount",value:function(){var e=this.props.data.visible,t=Object(fS.g)();q.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,i=t.className,a=void 0===i?"":i,s=t.pluginType,u=(o[s]||{}).plugin,l=(void 0===u?{}:u)[s],d=Object(fS.g)(),f=this.state.status,p=void 0===f?"ready":f,h={className:a,type:"pc"===d.os?"pc":"app",btnText:l.interaction||"立即下载",onClick:this.handleClick,productNameMaxLength:13,productDescMaxLength:15,btnTextMaxLength:4,onClose:this.props.onClose};return/^ios/i.test(s)?(h.logoUrl=l.icon,h.productName=l.name,l.score>0&&(h.productDesc="Appstore 评分:".concat(l.score)),h.link=l.landingUrl):/^android/i.test(s)&&(h.logoUrl=l.icon||r.avatarUrl||"",h.productName=l.name,h.link=l.landingUrl,h.onBtnClick=this.onBtnClick,dS.b[p]&&(h.btnText=dS.b[p])),h.link?c.a.createElement(hS,Dd()({cardRef:function(t){e.card=t}},h)):null}}]),t}(c.a.Component);vS.propTypes={data:jl.a.object.isRequired};var mS=function(e){var t=e.data;return t&&t.plugin&&t.plugin[t.pluginType]?c.a.createElement(lS.a,null,c.a.createElement(vS,e)):null},gS=function(e){function t(e){var n;return Wl()(this,t),(n=$l()(this,td()(t).call(this,e))).onceViewTrack=function(e,t){n.viewShow||(n.viewShow=!0,q.a.trackCardShow(n.card,{id:5642}),Object(uS.b)(e,{trackMethod:uS.c,tracks:t}))},n.handleClick=function(e){e.stopPropagation(),q.a.trackEvent(n.card,{id:5641,action:"OpenUrl"}),Object(uS.a)({trackMethod:uS.c,tracks:n.track.click});var t=Object(fS.c)(n.props.data,"plugin.leads.plugin.leads",{}),r=n.props.data,o=r.contentType,i=r.contentToken;t.isCanvas&&(e.preventDefault(),t.creativeId=Object(fS.e)(),bS.a(t,"ad/openForm"));var a=t.cardType,c=t.hashId;if("message"===a){e.preventDefault();var s={inbox_id:c,initial_message:"",auto_focus:!0,title:"",source_type:o,source_id:i};bS.a(s,"base/openInbox")}},n.isHiddenEcommerceAd=function(e){return!(!e.isCanvas||e.adjson)||!(e.isCanvas||e.token||e.landingUrl)},n.sessionId=Un()(),n.init(e),n.viewShow=!1,n}return Jl()(t,e),Ql()(t,[{key:"init",value:function(e){var t=e.data,n=t.plugin,r=t.suger,o=void 0===r?"":r,i=t.pluginType,a=Object(fS.c)(e.data,"plugin.leads.plugin.leads",{}).cardType,c=(n[i]||{}).trackUrl,s=void 0===c?{}:c,u=Object(fS.g)().os,l={xSuger:o,sessionId:this.sessionId,os:u,cardType:a};this.track=Object(fS.m)(s,l)}},{key:"componentDidMount",value:function(){var e=this.props.data.visible,t=Object(fS.g)();q.a.setModule(this.card,{module:"Content",module_name:"".concat(t.os,"_leads")}),e&&this.onceViewTrack(this.card,this.track.view);var n=Object(fS.c)(this.props.data,"plugin.leads.plugin.leads",{}),r=n.isCanvas,o=n.adjson;r&&bS.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,i=void 0===o?{}:o,a=t.className,s=void 0===a?"":a,u=t.pluginType,l=Object(fS.c)(i,"".concat(u,".plugin.").concat(u),{});return this.isHiddenEcommerceAd(l)?null:c.a.createElement(hS,Dd()({cardRef:function(t){e.card=t}},{className:s,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}(c.a.Component);gS.propTypes={data:jl.a.object.isRequired};var OS=function(e){var t=e.data;return t&&t.plugin&&t.plugin[t.pluginType]?c.a.createElement(lS.a,null,c.a.createElement(gS,e)):null},yS=function(e){function t(){var e,n;Wl()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=$l()(this,(e=td()(t)).call.apply(e,[this].concat(o)))).state={display:!1},n.onClose=function(){n.setState({display:!0})},n.getContent=function(e){var t=e.data;if(!t||!t.plugin)return null;var r=(t=Object(fS.b)(Object($.camelizeKeys)(t))).plugin,o=Object(fS.g)();if(r.androidDownload||r.iosDownload){var i="".concat(o.os,"Download");if("pc"===o.os)i=("mac"===o.pc?["iosDownload","androidDownload"]:["androidDownload","iosDownload"]).find((function(e){return r[e]}))||"";return c.a.createElement(mS,Dd()({},e,{data:sS()({},t,{pluginType:i}),onClose:n.onClose}))}return r.leads&&"pc"!==o.os?c.a.createElement(OS,Dd()({},e,{data:sS()({},t,{pluginType:"leads"}),onClose:n.onClose})):null},n}return Jl()(t,e),Ql()(t,[{key:"render",value:function(){var e=this.props.data,t=this.state.display;return e&&e.plugin&&!t?c.a.createElement(c.a.Fragment,null,this.getContent({data:e})):null}}]),t}(c.a.Component);function jS(e){var t=e.loadBrandContentPlugin,n=e.contentType,r=e.contentToken,i=e.author,c=e.plugin,s=Object(a.useCallback)((function(){t(n,r)}),[n,r,t]),u="organization"===i.userType&&!c;if(Object(a.useEffect)((function(){u&&s()}),[u,s]),!c)return null;var l={contentType:n,contentToken:r,suger:{},author:i,plugin:c,visible:!0};return Object(o.b)("div",{className:"OrgEquityPlugin",children:Object(o.b)(yS,{data:l})})}jS.propTypes={contentType:jl.a.oneOf(["answer","article"]).isRequired,contentToken:jl.a.oneOfType([jl.a.number,jl.a.string]).isRequired,author:jl.a.object.isRequired};var ES=Object(Lt.compose)(Object(rb.a)(null),Object(Ot.connect)((function(e,t){var n=t.contentType,r=t.contentToken;return{plugin:qa(e,{contentType:n,contentToken:r})}}),{loadBrandContentPlugin:function(e,t){var n={contentType:e,contentToken:t};return{FAILSAFE:!0,API:{types:Object.values(Va),endpoint:"brand/content/plugin",query:n},meta:n}}}))(jS);function CS(e){var t=e.content,n=e.type,r=e.urlToken,o=Object(Ot.useDispatch)(),i=Object(a.useCallback)((function(){o(Object(Mt.a)({content:t,type:n,urlToken:r}))}),[o,t,n,r]),c=Object(Ot.useSelector)((function(e){return Object(Mt.c)(e,{type:n,urlToken:r})}));return Object(a.useEffect)((function(){c||i()}),[c,i]),null}CS.propTypes={content:jl.a.string.isRequired,type:jl.a.oneOf(["answer","article"]).isRequired,urlToken:jl.a.string.isRequired};var wS=CS,TS=n(304),_S=function(e){var t=e.show,n=e.setModal,r=e.children,i=e.className,c=e.onCancel,s=e.hideIcon,u=e.maskClosable,l=void 0===u||u,d=function(){n?n(!1):c&&c()},f=Object(a.useRef)();return Object(a.useEffect)((function(){var e=null;return t?(document.body.style.overflow="hidden",e=Object(TS.a)(f.current)):document.body.style.overflow="auto",function(){e&&e()}}),[t]),Object(o.b)("div",{className:i,children:Object(o.c)("div",{ref:f,children:[Object(o.b)("div",Object.assign({className:rl()({"ModalExp-background":t})},l&&{onClick:d})),Object(o.c)("div",{className:rl()("ModalExp-content",{"ModalExp-modalShow":t}),onClick:function(e){e.stopPropagation()},children:[!s&&Object(o.b)(Il.a,{size:24,fill:"#d3d3d3",className:"ModalExp-closeIcon",onClick:d}),r]})]})})},SS=[{title:"知乎",imageSrc:"https://pic4.zhimg.com/80/v2-88158afcff1e7f4b8b00a1ba81171b61_720w.png",description:"发现更大的世界",button:"打开"},{title:"浏览器",imageSrc:"https://picb.zhimg.com/80/v2-a448b133c0201b59631ccfa93cb650f3_1440w.png",description:"",button:"继续"}],AS={uc:{imageSrc:"https://pic4.zhimg.com/80/v2-eb129ee601fe0521fbc05703a615ddd5_1440w.png",title:"UC 浏览器"},qq:{imageSrc:"https://pic1.zhimg.com/80/v2-211dd15e1000c599f5b89ecf4e1eb3b6_1440w.png",title:"QQ 浏览器"},wx:{imageSrc:"https://pic1.zhimg.com/80/v2-05fe05b84411fc88790189e95d7e84aa_1440w.png",title:"微信"},huawei:{imageSrc:"https://pic1.zhimg.com/80/v2-88a3ad0d3764917daaf92f5133a7024d_1440w.jpeg",title:"华为浏览器"},safari:{imageSrc:"https://pic2.zhimg.com/80/v2-da7d9e4b6a7ddba507299bcf5a4d0600_1440w.png",title:"Safari"},chrome:{imageSrc:"https://picb.zhimg.com/80/v2-a448b133c0201b59631ccfa93cb650f3_1440w.png",title:"Chrome"},default:{imageSrc:"https://picb.zhimg.com/80/v2-a448b133c0201b59631ccfa93cb650f3_1440w.png",title:"浏览器"}},kS=function(e){var t=e.show,n=e.onCancel,r=e.onSubmit,i=e.id,c=e.type,s=Object(Ct.b)(),u=s.origin.toLowerCase(),l=s.Android?AS.chrome.imageSrc:AS.safari.imageSrc,d=w.a.get("question:firstCheckedTrue");Object(a.useEffect)((function(){d&&t&&!s.Wechat&&(location.href="zhihu://".concat(c,"/").concat(i))}),[d,t,c,i,s.Wechat]);var f="";return f=s.UC?"uc":s.Wechat?"wx":s.MQQBrowser?"qq":/huawei|honor/g.test(u)?"huawei":/chrome/g.test(u)||/crios/g.test(u)?"chrome":s.Safari?"safari":"default",SS[1].title=AS[f].title,SS[1].imageSrc="default"===f?l:AS[f].imageSrc,Object(o.c)(_S,{className:"ModalWrap",show:t,onCancel:n,hideIcon:!0,maskClosable:!1,children:[t&&Object(o.b)(cl,{className:"ModalWrap-body"}),Object(o.c)("div",{className:"ModalWrap-content",children:[Object(o.b)("div",{className:"ModalWrap-title",children:"继续浏览内容"}),SS.map((function(e,t){return Object(o.c)("div",{className:"ModalWrap-item",children:[e.imageSrc&&Object(o.b)("div",{className:"ModalWrap-itemImg",children:Object(o.b)("img",{src:e.imageSrc})}),Object(o.c)("div",{className:"ModalWrap-itemContent",children:[Object(o.b)("div",{className:"ModalWrap-itemTitle",children:e.title}),e.description&&Object(o.b)("div",{className:"ModalWrap-itemDesc",children:e.description})]}),Object(o.b)("div",{className:"ModalWrap-itemBtn",onClick:function(){return function(e){0===e?(w.a.set("question:firstCheckedTrue","true"),r()):n()}(t)},children:e.button})]},t)}))]})]})};function RS(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=td()(e);if(t){var o=td()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $l()(this,n)}}var IS=function(e){Jl()(n,e);var t=RS(n);function n(){return Wl()(this,n),t.apply(this,arguments)}return Ql()(n,[{key:"render",value:function(){return Object(Md.c)("svg",{width:"30",height:"30",viewBox:"0 0 66 66",xmlns:"http://www.w3.org/2000/svg",className:"CircleLoadingBar","aria-hidden":"true"},Object(Md.c)("g",null,Object(Md.c)("circle",{className:"path",fill:"none",strokeWidth:"6",strokeLinecap:"round",cx:"33",cy:"33",r:"30"})))}}]),n}(a.Component),xS=function(e){var t=e.show,n=e.children,r=e.className,i=Object(a.useRef)();return Object(a.useEffect)((function(){var e=null;return t?(document.body.style.overflow="hidden",e=Object(TS.a)(i.current)):document.body.style.overflow="auto",function(){e&&e()}}),[t]),Object(o.b)("div",{className:r,children:Object(o.c)("div",{ref:i,children:[Object(o.b)("div",{className:rl()({"ModalLoading-background":t})}),Object(o.c)("div",{className:rl()("ModalLoading-content",{"ModalLoading-modalShow":t}),children:[n,Object(o.b)(IS,{})]})]})})},NS=function(e){return e.componentList.filter(Boolean).filter((function(e){var t=e.component;return Boolean(t)})).map((function(e){return e.component}))},DS=n(1115);function PS(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var LS={answer:jl.a.object.isRequired,renderThankButtonText:jl.a.func,zaInfo:jl.a.number},MS=[].concat(Object(i.a)(Object.keys(LS)),["updateAnswerThank"]),US=function(e){Object(ml.a)(n,e);var t=PS(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).buttonRef=Object(a.createRef)(),e.handleUpdateThanked=e.context.authRequired((function(){var t=e.props,n=t.answer,r=n.id,o=n.relationship.isThanked,i=t.zVideoId,a=t.updateAnswerThank,c=t.zaInfo,s=!o;q.a.trackEvent(e.buttonRef.current,Object.assign({action:s?"Thank":"UnThank",element:"Button"},c&&{id:c})),a(r,s,{zVideoId:i})}),le.J.thank),e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.answer,r=t.renderThankButtonText,i=t.disabled,c=ei()(this.props,MS),s=r(n);return Object(o.c)(a.Fragment,{children:[Object(o.b)(ff.b,{keyMap:{LIKE:"l"},handlers:{LIKE:function(t){e.buttonRef.current.focus(),e.handleUpdateThanked(t)}}}),Object(o.b)(yf.c,Object.assign({onRef:this.buttonRef,preset:"plain",onClick:this.handleUpdateThanked,icon:DS.a,label:s,disabled:i},c))]})}}]),n}(a.Component);US.contextTypes={authRequired:jl.a.func},US.propTypes=LS,US.defaultProps={renderThankButtonText:function(e){var t=e.relationship;return(t=void 0===t?{}:t).isThanked?"取消喜欢":"喜欢"}};var BS=Object(Lt.compose)(Object(Ot.connect)(null,{updateAnswerThank:zt.B}),Object(rb.a)(null))(US);function zS(e){var t=e.className;return Object(o.b)("span",{className:rl()("ActivityItem-StickyMark",t),children:"置顶"})}function FS(e){var t=e.questionId,n=e.title,r=e.href,i=e.zaTitleId,a=e.showStickyMark,c=e.onClick;return Object(o.c)("div",{itemProp:"zhihu:question",itemType:"http://schema.org/Question",itemScope:!0,children:[Object(o.b)("meta",{itemProp:"url",content:"https://www.zhihu.com/question/".concat(t)}),Object(o.b)("meta",{itemProp:"name",content:n}),a&&Object(o.b)(zS,{}),Object(o.b)(st.Link,Object.assign({to:r,target:"_blank","data-za-detail-view-element_name":"Title"},i&&{"data-za-detail-view-id":i},{onClick:c,children:n}))]})}FS.propTypes={questionId:jl.a.number.isRequired,title:jl.a.string.isRequired,href:jl.a.string.isRequired,zaTitleId:jl.a.number,showStickyMark:jl.a.bool,onClick:jl.a.func};var GS=n(400),VS=n(74),HS=function(e){var t=e.upvotedFollowees,n=e.voteupCount,r=e.actionText,i=e.canClick,a=e.onClick;if(!n)return null;var c=t.length,s=c===n?"":"".concat(Object(hh.formatNumber)(n)," 人");return Object(o.c)(GS.CJKSpace,{children:[t.map((function(e,t){return Object(o.c)("span",{children:[t>0&&"、",Object(o.b)(VS.a,{noBadge:!0,user:e,children:e.name},t)]},t)})),c>0&&n-c>0&&"等",i?Object(o.c)(yf.c,{preset:"plain",onClick:a,children:[s,r]}):s+r]})};HS.propTypes={voteupCount:jl.a.number.isRequired,upvotedFollowees:jl.a.array.isRequired,actionText:jl.a.string.isRequired,canClick:jl.a.bool,onClick:jl.a.func},HS.defaultProps={voteupCount:0,actionText:"赞了",upvotedFollowees:[]};var qS=HS;function KS(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var WS=function(e){Object(ml.a)(n,e);var t=KS(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={modalShown:e.props.defaultModalShown},e.handleListHide=function(){return e.setState({modalShown:!1})},e.handleListShown=function(){return e.setState({modalShown:!0})},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.voteupCount,n=e.upvotedFollowees,r=e.openable,i=e.type,a=e.too,c=e.isFetching,s=e.isDrained,u=e.items,l=e.onLoad;if(t<=0)return null;var d,f=this.state.modalShown;return d="pin"===i?"为该".concat(_g.b[i],"鼓掌"):"column"===i?"关注":"".concat(a?"也":"","赞同了该").concat(_g.b[i]),Object(o.c)("span",{className:"Voters",children:[Object(o.b)(qS,{canClick:r,onClick:this.handleListShown,voteupCount:t,upvotedFollowees:n,actionText:d}),Object(o.b)(Pt.b,{size:"fullPage",onClose:this.handleListHide,children:f&&Object(o.b)(j_,{isFetching:c,isDrained:s,text:"column"===i?"关注了":"赞同了",items:u,voteupCount:t,onLoad:l})})]})}}]),n}(a.Component);WS.propTypes={openable:jl.a.bool,upvotedFollowees:jl.a.array,id:jl.a.oneOfType([jl.a.number,jl.a.string]),type:jl.a.oneOf(["pin","answer","article","column"]).isRequired,defaultModalShown:jl.a.bool},WS.defaultProps={openable:!0,defaultModalShown:!1};var YS=WS;function QS(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var ZS={answer:"answers",article:"articles",pin:"pins",column:"columns"};var JS=function(e){Object(ml.a)(n,e);var t=QS(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleLoad=function(){var t=e.props,n=t.type,r=t.id,o=t.loadAnswerVoters,i=t.loadPinVoters,a=t.loadArticleVoters,c=t.loadColumnsFollowers;switch(n){case"answer":return o(r);case"pin":return i(r);case"article":return a(r);case"column":return c(r);default:return null}},e}return Object(vl.a)(n,[{key:"render",value:function(){return Object(o.b)(YS,Object.assign({onLoad:this.handleLoad},this.props))}}]),n}(a.Component);JS.propsTypes=Object.assign({},YS.propsTypes),JS.defaultProps=Object.assign({},YS.defaultProps);var XS=Object(Ot.connect)((function(e,t){var n=t.id,r=t.type,o=e.entities.users,a=e[ZS[r]]||{},c=a.voters,s=void 0===c?{}:c,u=a.concernedUpvoters,l=void 0===u?{}:u,d=s[n]||{isFetching:!1,isDrained:!1,order:"normal",ids:[]},f=d.isFetching,p=d.isDrained,h=d.order,b=d.ids,v=(l[n]||{ids:[]}).ids;return{isFetching:f,isDrained:p,order:h,items:[].concat(Object(i.a)(v),Object(i.a)(b.filter((function(e){return!v.includes(e)})))).map((function(e){return o[e]}))}}),{loadAnswerVoters:zt.n,loadArticleVoters:mo.e,loadPinVoters:function(e){return function(t,n){var r=(n().pins.voters[e]||{}).next;return t({id:e,API:Object.assign({types:yo.GET_VOTERS},r?{endpoint:r}:{endpoint:"pins/".concat(e,"/likers"),query:{include:"data[*].answer_count,articles_count,follower_count,gender,is_followed,is_following,badge",offset:0,limit:An.a}}),schema:no.a.USER_ARRAY})}},loadColumnsFollowers:Ys.d})(JS);function $S(e){var t=e.markInfo,n=le.w[t.markType];if(!n)return null;var r=t.roundtable&&"https://www.zhihu.com/roundtable/".concat(t.roundtable.urlToken);return r?Object(o.b)("a",{href:r,children:n}):Object(o.b)("span",{children:n})}function eA(e){var t=e.markInfos,n=Object(a.useMemo)((function(){return t.filter((function(e){return le.w[e.markType]})).map((function(e,t){return Object(o.c)(a.Fragment,{children:[0!==t&&"、",Object(o.b)($S,{markInfo:e})]},t)}))}),[t]);return n.length?Object(o.c)(GS.CJKSpace,{children:["收录于",n]}):null}function tA(e){var t,n=e.id,r=e.voteupCount,i=e.markInfos,a=e.actorToken,c=e.action,s=e.concernedUpvoters,u=Object(_e.a)(e,["id","voteupCount","markInfos","actorToken","action","concernedUpvoters"]);return Object(o.b)(im.a,{trackCardShow:!0,view:{id:8257},children:Object(o.c)(Ef.Text,Object.assign({color:"GBL05A",fontSize:14,mt:"10px",mb:"-4px"},u,{children:[i&&Object(o.c)(o.a,{children:[Object(o.b)(eA,{markInfos:i}),Boolean(r)&&" · "]}),Object(o.b)("span",{onClick:function(){return q.a.trackEvent(null,{id:8258,action:"Click"})},children:Object(o.b)(XS,{id:n,type:"answer",voteupCount:r,upvotedFollowees:null!==(t=null==s?void 0:s.filter((function(e){return a!==e.urlToken})))&&void 0!==t?t:[],too:"voted"===c})})]}))})}var nA=n(222),rA=Object.assign;var oA=function(e){return c.a.createElement(Nm.a,rA({width:"8",height:"10",fill:"none",viewBox:"0 0 8 10"},e),c.a.createElement("path",{fill:"#121212",d:"M1.315 9.302a.6.6 0 01-.915-.51v-7.52a.6.6 0 01.914-.51l6.11 3.754a.6.6 0 010 1.022l-6.11 3.764z",fillRule:"evenodd",clipRule:"evenodd"}))};function iA(e){var t=e.videoId,n=e.zvideoId,r=e.title,i=e.playCount,c=void 0===i?0:i,s=e.voteupCount,u=void 0===s?0:s,l=e.isComplete,d=void 0!==l&&l,f=e.startTime,p=Number((void 0===f?0:f)/1e3),h=Object(a.useRef)(),b=Object(a.useRef)({currentTime:0}),v=Object(a.useRef)(Object(nA.c)(t,"*",!0));Object(a.useEffect)((function(){var e=v.current.subscribeMessage((function(e,t){e===nA.b.DOM.TIMEUPDATE&&(b.current.currentTime=t.currentTime)}));return function(){return e.unsubscribe()}}),[]);return Object(o.c)("div",{className:"VideoContributionAnswer-container",children:[Object(o.b)("div",{className:"VideoContributionAnswer-video",children:Object(o.b)("iframe",{ref:h,className:"VideoContributionAnswer-player",src:"https://www.zhihu.com/video/".concat(t),allowFullScreen:!0})}),d?null:Object(o.c)("div",{className:"VideoContributionAnswer-stateBar",onClick:function(){v.current.dispatchMessage(h.current.contentWindow,nA.a.PLAYER.PAUSE,{});var e=(b.current.currentTime+p).toFixed(1);window.open("https://www.zhihu.com/zvideo/".concat(n,"?playTime=").concat(e))},children:[Object(o.c)("div",{className:"VideoContributionAnswer-state",children:[Object(o.b)("div",{className:"VideoContributionAnswer-state--title",children:r}),Object(o.c)("div",{className:"VideoContributionAnswer-state--data",children:[Object(hh.cnNiceNumber)(c),"播放",u>0?" · ".concat(Object(hh.cnNiceNumber)(u),"赞同"):null]})]}),Object(o.c)("div",{className:"VideoContributionAnswer-action",children:[Object(o.b)(oA,{style:{marginRight:"6px"}}),"完整版"]})]})]})}function aA(e){var t=Object(Bn.c)((function(){return n.e(6).then(n.bind(null,1348))}));return Object(o.b)(Ef.Box,{my:"14px",css:{minHeight:20},children:t?Object(o.b)(t,Object.assign({width:"70px",height:"20px",css:{display:"block"}},e)):null})}var cA=n(166);function sA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=td()(e);if(t){var o=td()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $l()(this,n)}}function uA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lA="dark",dA="light",fA=function(e){Jl()(n,e);var t=sA(n);function n(){var e;Wl()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),uA(xd()(e),"handleClick",(function(t,n){var r=e.props.onClick;q.a.trackEvent(e.node,{id:4240,action:"OpenUrl",name:n},{link:{url:t,anchor:n}}),r&&r({target:e.node})})),e}return Ql()(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.goodsCard.body.link;Object(xT.onViewedOnce)(this.node,(function(){q.a.trackCardShow(e.node,{id:4241,name:"课程"},{link:{url:t,anchor:"课程"}})}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.theme,r=t.zaInfo,o=void 0===r?{}:r,i=t.goodsCard,a=t.className,s=n===lA,u=i.header,l=u.title,d=u.subTitle,f=i.body,p=f.title,h=f.cover,b=f.coverLabel,v=f.link,m=f.desc,g=f.label,O=f.vipNote,y=i.catalog;return c.a.createElement(c.a.Fragment,null,c.a.createElement("section",{className:rl()("KfeCollection-GoodsCardV2",a),"data-za-module":"Content","data-za-extra-module":JSON.stringify({card:{content:[o]}})},c.a.createElement("h1",{className:"KfeCollection-GoodsCardV2-header"},"".concat(l).concat(d?" · ".concat(d):"")),c.a.createElement(K.b,{content:Object.assign({},o,{type:cA.a.paidAnswer}),block:"oldSkuCard"},c.a.createElement(K.a,{zaType:"Card",shouldTrackShow:!0,zaAction:"OpenUrl",extra:{link:{url:v}}},c.a.createElement("a",{href:v,target:"_blank",rel:"noopener noreferrer",className:"KfeCollection-GoodsCardV2-content",onClick:function(){return e.handleClick(v,p)},ref:function(t){return e.node=t}},c.a.createElement("div",{className:"KfeCollection-GoodsCardV2-cover"},c.a.createElement("img",{className:rl()("KfeCollection-GoodsCardV2-cover-img",{"KfeCollection-GoodsCardV2-cover-img--dark":s}),src:Object(Gn.imgUrl)(h,{size:"200x0"})}),c.a.createElement("div",{className:"KfeCollection-GoodsCardV2-cover-label"},b)),c.a.createElement("div",{className:"KfeCollection-GoodsCardV2-detail"},c.a.createElement("div",null,c.a.createElement("h2",{className:"KfeCollection-GoodsCardV2-detail-title"},p),m&&c.a.createElement("p",{className:"KfeCollection-GoodsCardV2-detail-desc"},m),c.a.createElement("p",{className:"KfeCollection-GoodsCardV2-detail-label"},g)),c.a.createElement("p",{className:"KfeCollection-GoodsCardV2-detail-vipNote",dangerouslySetInnerHTML:{__html:O}}))))),y&&y.length>0&&c.a.createElement("div",{className:"KfeCollection-GoodsCardV2-catalog"},"章节目录",c.a.createElement("div",{className:"KfeCollection-GoodsCardV2-catalogSectionList"},y.map((function(e){var t=e.manuscriptUrl,n=e.sectionId,r=e.title;return c.a.createElement(K.a,{zaType:"Text",key:n,zaBlock:"catalog",extra:{link:{url:t}},zaAction:"OpenUrl"},c.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,c.a.createElement(Yh.a,{className:"KfeCollection-GoodsCardV2-catalogSectionItemIcon"})))}))))))}}]),n}(c.a.Component);uA(fA,"propTypes",{theme:jl.a.oneOf([lA,dA]),onClick:jl.a.func}),uA(fA,"defaultProps",{theme:dA});var pA=fA,hA=n(1033),bA=function(e){return-1===e.indexOf("?")?"".concat(e,"?entry=qa"):"".concat(e,"&entry=qa")};function vA(e){var t=e.header,n=void 0===t?{}:t,r=e.onClick,o=n.title,i=n.subTitle,a=n.link;return c.a.createElement("a",{href:bA(a),target:"_blank",rel:"noopener noreferrer",className:"KfeCollection-GoodsCardV3-header",onClick:r},c.a.createElement("div",{className:"KfeCollection-GoodsCardV3-headerTitle"},o),c.a.createElement("div",{className:"KfeCollection-GoodsCardV3-headerSubTitle"},c.a.createElement("div",null,i),c.a.createElement(hA.a,{className:"KfeCollection-GoodsCardV3-headerIcon"})))}var mA=function(e){var t=Object(a.useRef)(),n=e.className,r=e.zaInfo,o=void 0===r?{}:r,i=e.goodsCard,s=e.shelvesInfo,u=e.onBookshelfButtonClick,l=void 0===u?Am.a:u,d=e.theme,f=void 0===d?"light":d,p=e.onClick,h=i.header,b=i.body,v=i.body,m=v.title,g=v.cover,O=v.coverLabel,y=v.link,j=v.desc,E=v.label,C=v.vipNote,w=v.icons,T=v.heatNote,_=Object(K.i)().trackEvent;Object(a.useEffect)((function(){Object(xT.onViewedOnce)(t.current,(function(){q.a.trackCardShow(t.current,{id:8467,name:b.title},{button:{text:h.title}})}))}),[b,h]);var S=Object(a.useCallback)((function(e){q.a.trackEvent(e.target,{id:8468,action:"OpenUrl",name:b.title},{link:{url:h.link},button:{text:h.title}}),_({action:"OpenUrl",eventType:"Click",elementLocation:{text:h.title,block:{blockText:"newSkuCardHeader"},type:"Button",content:{type:cA.a.paidAnswer}}},{link:{url:h.link}})}),[b,h,_]),A=Object(a.useCallback)((function(e){q.a.trackEvent(e.target,{id:8469,action:"OpenUrl",name:b.title},{link:{url:b.link},button:{text:h.title}}),p&&p(e)}),[b,h,p]),k=Object(a.useCallback)((function(e){var t=(null==s?void 0:s.whetherInShelf)?"去书架查看":"加入书架",n=(null==s?void 0:s.whetherInShelf)?"OpenUrl":"Collect",r={url:b.link};q.a.trackEvent(e.target,{id:8294,action:"OpenUrl",name:b.title},{link:r,button:{text:t}}),_({action:n,eventType:"Click",elementLocation:{type:"Button",text:t}},(null==s?void 0:s.whetherInShelf)?{link:{url:"https://www.zhihu.com/xen/market/vip/vip-recommend"}}:null),l(e)}),[b,l,s,_]);return c.a.createElement("section",{className:rl()("KfeCollection-GoodsCardV3",n),"data-za-module":"Content","data-za-extra-module":JSON.stringify({card:{content:[o]}})},c.a.createElement(vA,{header:h,onClick:S}),c.a.createElement(K.b,{content:Object.assign({},o,{type:cA.a.paidAnswer}),block:"newSkuCard"},c.a.createElement(K.a,{zaType:"Card",shouldTrackShow:!0,zaAction:"OpenUrl",extra:{link:{url:y}}},c.a.createElement("a",{href:bA(y),target:"_blank",rel:"noopener noreferrer",className:rl()("KfeCollection-GoodsCardV3-content","KfeCollection-GoodsCardV3-content--topHeader"),onClick:A,ref:t},c.a.createElement("div",{className:"KfeCollection-GoodsCardV3-cover"},c.a.createElement("img",{className:"KfeCollection-GoodsCardV3-coverVip",src:"light"===f?null==w?void 0:w.leftTopDayIcon:null==w?void 0:w.leftTopNightIcon,alt:""}),c.a.createElement("img",{className:rl()("KfeCollection-GoodsCardV3-coverImage"),src:Object(Gn.imgUrl)(g,{size:"200x0"})}),c.a.createElement("div",{className:"KfeCollection-GoodsCardV3-coverLabel"},O)),c.a.createElement("div",{className:"KfeCollection-GoodsCardV3-detail"},m&&c.a.createElement("h2",{className:"KfeCollection-GoodsCardV3-detailTitle"},m),j&&c.a.createElement("p",{className:"KfeCollection-GoodsCardV3-detailDescription"},j),E&&c.a.createElement("p",{className:"KfeCollection-GoodsCardV3-detailLabel"},E),T?c.a.createElement("p",{className:"KfeCollection-GoodsCardV3-detailHeatNote"},T):C&&c.a.createElement("p",{className:"KfeCollection-GoodsCardV3-detailVipNote",dangerouslySetInnerHTML:{__html:C}}),s&&c.a.createElement(yf.c,{className:"KfeCollection-GoodsCardV3-bookshelfButton",preset:"plain",color:"grey",onClick:k},s.whetherInShelf?"去书架查看":"加入书架",c.a.createElement(Yh.a,{text:!0,center:!0})))))))};function gA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=td()(e);if(t){var o=td()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $l()(this,n)}}function OA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yA=function(e){Jl()(n,e);var t=gA(n);function n(){var e;Wl()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),OA(xd()(e),"handleObserve",(function(t){var n=e.props.logPaidAnswerProgress;t.forEach((function(t){if(0!==t.intersectionRatio){var r=t.target;e.observer.unobserve(r),n&&n()}}))})),OA(xd()(e),"renderCard",(function(){var t=e.props,n=t.hasPurchased,r=t.result,o=void 0===r?{}:r,i=t.theme,a=t.onBookshelfButtonClick,s=void 0===a?Am.a:a,u=t.onClick,l=t.className,d=o.goodsCard,f=o.shelvesInfo,p=o.zaInfo;return n?c.a.createElement(mA,{goodsCard:d,zaInfo:p,hasPurchased:n,shelvesInfo:n?f:null,onBookshelfButtonClick:s,onClick:u,theme:i,className:l}):c.a.createElement(pA,{goodsCard:d,zaInfo:p,onClick:u,className:l})})),e}return Ql()(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.hasPurchased,r=t.logPaidAnswerProgress;n&&r&&"undefined"!=typeof window&&window.IntersectionObserver&&(this.target=Object(V.findDOMNode)(this),this.observer=new window.IntersectionObserver(this.handleObserve,{threshold:[.1]}),setTimeout((function(){e.observer.observe(e.target)})))}},{key:"componentWillUnmount",value:function(){this.observer&&this.observer.unobserve(this.target)}},{key:"render",value:function(){return this.renderCard()}}]),n}(c.a.Component);OA(yA,"propTypes",{result:jl.a.object.isRequired,theme:jl.a.string,hasPurchased:jl.a.bool,onBookshelfButtonClick:jl.a.func,logPaidAnswerProgress:jl.a.func}),OA(yA,"defaultProps",{result:{goodsCard:{},btnInfo:{},progressInfo:{},zaInfo:{}}});var jA=yA;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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=td()(e);if(t){var o=td()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $l()(this,n)}}function CA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wA=function(e){Jl()(n,e);var t=EA(n);function n(){var e;Wl()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),CA(xd()(e),"handleClick",(function(t,n){var r=e.props.onClick;q.a.trackEvent(e.node,{id:4240,action:"OpenUrl",name:n},{link:{url:t,anchor:n}}),"function"==typeof r&&r(e.node)})),e}return Ql()(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.btnInfo,n=t.btnText,r=t.link;p.a.dispatch("vip/preloadVIPHybridPopup",{url:r}),Object(xT.onViewedOnce)(this.node,(function(){q.a.trackCardShow(e.node,{id:4241,name:n},{link:{url:r,anchor:n}})}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.btnInfo,r=t.zaInfo,o=void 0===r?{}:r,i=t.className,a=n.btnText,s=n.link;return c.a.createElement("div",{className:rl()("KfeCollection-PurchaseBtn",i)},c.a.createElement("div",{className:"KfeCollection-PurchaseBtn-mask"}),c.a.createElement(K.b,{block:"textLink",content:Object.assign({},o||{},{type:cA.a.paidAnswer})},c.a.createElement(K.a,{zaType:"Text",shouldTrackShow:!0,zaAction:"OpenUrl",extra:{link:{url:s}}},c.a.createElement("a",{className:"KfeCollection-PurchaseBtn-HybridLink",href:s,target:"_blank",rel:"noopener noreferrer",onClick:function(){return e.handleClick(s,a)},ref:function(t){return e.node=t},"data-za-module":"Content","data-za-extra-module":JSON.stringify({card:{content:[o]}})},c.a.createElement("span",{className:"KfeCollection-PurchaseBtn-text"},a)," ",c.a.createElement(Yh.a,{className:"KfeCollection-PurchaseBtn-ArrowRight"})))))}}]),n}(c.a.Component);function TA(e){var t=e.id,n=e.children,r=Object(a.useRef)(),o=Object(Ot.useDispatch)();return Object(a.useEffect)((function(){var e=r.current;if(t&&e){var n=e instanceof Element?e:Object(V.findDOMNode)(e);n&&Object(xT.onViewedOnce)(n,(function(){return o(Object(zt.r)(t))}))}}),[o,t]),Object(a.cloneElement)(n,{ref:r})}TA.propTypes={id:jl.a.oneOfType([jl.a.number,jl.a.string]).isRequired};var _A=Object(rb.a)(null)(TA);function SA(e){var t,n=e.answer,r=(Object(Ot.useSelector)((function(e){return Object(zt.s)(e,null==n?void 0:n.id)}))||{}).result;if(!r)return null;var i=null==n||null===(t=n.paidInfo)||void 0===t?void 0:t.hasPurchased,a=r.btnInfo,c=r.zaInfo;return Object(o.c)(o.a,{children:[Object(o.b)(_A,{id:n.id,children:Object(o.b)("div",{})}),!i&&a&&Object(o.b)(wA,{btnInfo:a,zaInfo:c}),Object(o.b)(jA,{className:"AnswerItem-GoodsCard",result:r,hasPurchased:i})]})}var AA=Object(rb.a)(null)((function(e){var t=e.answer;return"paid"===(null==t?void 0:t.answerType)?Object(o.b)(SA,{answer:t}):null}));function kA(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return RA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RA(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=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 i,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function RA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var IA=function(e){return function(e){if(!window)return null;try{var t=document.createElement("div");t.innerHTML=e;var n,r=Array.from(t.childNodes),o=hj()(r,3),i=o[0].nodeValue,a=o[1],c=a.innerText,s=a.attributes,u=o[2].nodeValue,l={},d=kA(s);try{for(d.s();!(n=d.n()).done;){var f=n.value;l[f.name]=f.value}}catch(e){d.e(e)}finally{d.f()}return i&&c&&u?{prefixText:i,content:c,status:u,linkInfo:{name:"a",attr:l}}:null}catch(e){return null}}(e)},xA=function(e){var t=e.content;t=void 0===t?[]:t;var n=hj()(t,2),r=n[0],o=n[1],i=e.className,a=e.onClick;return c.a.createElement("div",{className:rl()("KfeCollection-CertainEndEllipsis",i),onClick:a},c.a.createElement("div",{className:"KfeCollection-CertainEndEllipsis-start"},r),c.a.createElement("div",{className:"KfeCollection-CertainEndEllipsis-end"},o))},NA=function(e){var t=e.contentName,n=e.fallbackContent,r=e.onClick,o=Object(a.useMemo)((function(){return IA(t)}),[t]);if(null===o)return n;var i=o.prefixText,s=o.content,u=o.status,l=o.linkInfo,d=l.name,f=c.a.createElement(c.a.Fragment,null,i,c.a.createElement(d,l.attr,s.slice(0,-1))),p=c.a.createElement(c.a.Fragment,null,c.a.createElement(d,l.attr,s.slice(-1)),u);return c.a.createElement(xA,{onClick:r,content:[f,p],className:"KfeCollection-PaidContentNameCertainEndEllipsis"})};var DA=function(e){var t=e.introCard,n=e.RichTextComponent,r=e.className,o=e.zaInfo,i=void 0===o?{}:o,a=e.handleTrack,s=e.extra,u=void 0===s?{}:s,l=t.statement,d=t.description,f=t.contentName,p=t.authorDesc,h=u.isNewStyle,b=u.isMobile,v=Object(K.i)().trackEvent,m=function(e,t){var n=e.target,r=e.target,o=r.text,i=r.href,c=5325===t?"userName":"bookTitle";"A"===r.tagName&&(q.a.trackEvent(n,{id:t,action:"OpenUrl"},{button:{text:o},link:{url:i}}),v({action:"OpenUrl",eventType:"Click",elementLocation:{type:"Text",block:{blockText:c},content:{type:cA.a.paidAnswer}}},{link:{url:i}})),a&&a(e,i)},g=function(e){return h?"".concat(e,b?"-newStyle-mobile":"-newStyle-pc"):e};return c.a.createElement("section",{className:rl()(g("KfeCollection-IntroCard"),r),"data-za-module":"Content","data-za-extra-module":JSON.stringify({card:{content:[i]}})},!h&&c.a.createElement(c.a.Fragment,null,!!l&&c.a.createElement("p",null,l),!!d&&c.a.createElement("p",null,d),(!!l||!!d)&&c.a.createElement("p",{className:"KfeCollection-IntroCard-spacing"})),c.a.createElement(NA,{contentName:f,onClick:function(e){return m(e,5326)},fallbackContent:c.a.createElement("p",{onClick:function(e){return m(e,5326)},className:g("KfeCollection-IntroCard-contentName"),dangerouslySetInnerHTML:{__html:f}})}),n?c.a.createElement(n,{className:g("KfeCollection-IntroCard-authorDesc"),html:p,onClick:function(e){return m(e,5325)}}):c.a.createElement("p",{onClick:function(e){return m(e,5325)},className:g("KfeCollection-IntroCard-authorDesc"),dangerouslySetInnerHTML:{__html:p}}))},PA=n(1116),LA=n(79),MA=n.n(LA),UA=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],i="function"==typeof o?o(e):o;return Object.assign({},e,i,i&&i.style&&{style:Object.assign({},e.style,i.style)})}return e}),Object.assign({},e))}(t,e.mapProps),r=n.name,o=n.className,i=n.defaultClassName,a=n.size,s=n.center,u=MA()(n,["name","className","defaultClassName","size","center"]),l=c.a.createElement("svg",Object.assign({className:"".concat(i," ").concat(i,"--").concat(r).concat(o?" ".concat(o):"")},u,a&&{width:a,height:a}));return s?c.a.createElement("span",{style:e.strutStyle},"",l):l};UA.defaultProps={defaultClassName:"Icon",fill:"currentColor"},UA.mapProps={text:{size:"1.2em"}},UA.strutStyle={display:"inline-flex",alignItems:"center"};var BA=UA,zA=function(e){return c.a.createElement(BA,Object.assign({viewBox:"0 0 140 43"},e),c.a.createElement("defs",null,c.a.createElement("rect",{id:"zhimg_ic_primelabel_01@2x-a",width:"70",height:"30",x:"0",y:"0"})),c.a.createElement("g",{fillRule:"evenodd",transform:"translate(0 -6)"},c.a.createElement("path",{fillRule:"nonzero",d:"M80.0023638,2.63706979 L129.732029,30.638653 C135.976314,34.154746 139.822785,40.6523917 139.822785,47.6843672 L139.822785,103.687744 C139.822785,110.719509 135.976314,117.217365 129.732029,120.733248 L80.0023638,148.734831 C73.758079,152.250924 66.0649216,152.250924 59.8206368,148.734831 L10.0909714,120.733248 C3.84668657,117.217365 -7.10542736e-14,110.719509 -7.10542736e-14,103.687744 L-7.10542736e-14,47.6843672 C-7.10542736e-14,40.6523917 3.84668657,34.154746 10.0909714,30.638653 L59.8206368,2.63706979 C66.0649216,-0.879023264 73.758079,-0.879023264 80.0023638,2.63706979 Z M62.8214584,21.9369801 L62.4917192,22.1167713 L25.9257887,42.6512656 C21.4364336,45.1724346 18.6325361,49.7839786 18.5101354,54.8082708 L18.5059568,55.1514561 L18.5059568,96.2205991 C18.5059568,101.262635 21.2100909,105.930346 25.6223198,108.545528 L25.9257887,108.720635 L62.4917192,129.25513 C66.9737863,131.772206 72.4710741,131.832136 77.0014851,129.434921 L77.3312243,129.25513 L113.897155,108.720635 C118.38651,106.199617 121.190256,101.587929 121.31265,96.5637746 L121.316828,96.2205991 L121.316828,55.1514561 C121.316828,50.1092692 118.612846,45.4417025 114.200623,42.826383 L113.897155,42.6512656 L77.3312243,22.1167713 C72.8491571,19.5996952 67.3518694,19.5397648 62.8214584,21.9369801 Z M69.2442049,35.8512397 L88.2394468,68.1217272 L103.868354,54.7872625 L103.868354,94.6758324 C103.868354,97.7547043 101.333778,100.250689 98.2071383,100.250689 L40.2839921,100.24974 C37.1573717,100.249699 34.6227848,97.7537776 34.6227848,94.674925 L34.6227848,54.7872625 L50.2512033,68.1217272 L69.2442049,35.8512397 Z",mask:"url(#zhimg_ic_primelabel_01@2x-b)",opacity:".54"})))};zA.defaultProps={name:"PrivilegeLabel"};var FA=zA,GA=function(e){var t=e.data,n=e.className,r=e.extra,o=t||{},i=o.vipText,a=o.worthText,s=o.cardColor,u=void 0===s?0:s,l=r||{},d=l.isNewStyle,f=l.isMobile,p=function(e){return d?"".concat(e,f?"-newStyle-mobile":"-newStyle-pc"):e};return 0===u?null:c.a.createElement("div",{className:rl()(p("KfeCollection-Privilege"),n)},c.a.createElement(PA.a,{className:p("KfeCollection-Privilege-vipIcon")}),c.a.createElement("div",{className:p("KfeCollection-Privilege-content")},c.a.createElement("span",{className:"KfeCollection-Privilege-vipText"},i),c.a.createElement("span",null," ".concat(a))),!d&&c.a.createElement(FA,{className:"KfeCollection-Privilege-label"}))},VA=function(e){var t=e.data,n=e.className,r=e.extra,o=t||{},i=o.worthText,a=o.cardColor,s=void 0===a?0:a,u=r||{},l=u.isNewStyle,d=u.isMobile;return 2!==s?null:c.a.createElement("div",{className:rl()(l?d?"KfeCollection-OrdinaryLabel-newStyle-mobile":"KfeCollection-OrdinaryLabel-newStyle-pc":"KfeCollection-OrdinaryLabel",n)},c.a.createElement("div",{className:"KfeCollection-OrdinaryLabel-content"},i))},HA=n(537),qA=function(e){var t=e.ua,n=void 0===t?{}:t,r=e.isDarkMode,o=void 0!==r&&r,i=e.isFixed,a=void 0!==i&&i;return c.a.createElement("div",{className:a?"KfeCollection-FabledStatement-fixed":"KfeCollection-FabledStatement"},c.a.createElement(Et.a,{isDarkMode:o,ua:n},c.a.createElement(Ct.a.Provider,{value:n},c.a.createElement(HA.g,{disclaimerInfo:{excerpt:"包含虚构创作",description:"创作声明",subDescription:"内容中的情节存在虚构加工,仅供参考"}}))))};function KA(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=td()(e);if(t){var o=td()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $l()(this,n)}}function WA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var YA=function(e){Jl()(n,e);var t=KA(n);function n(){return Wl()(this,n),t.apply(this,arguments)}return Ql()(n,[{key:"render",value:function(){var e=this.props,t=e.result,n=t.introCard,r=t.vipWorthInfo,o=t.isFabled,i=void 0!==o&&o,a=t.abParam,s=e.extra,u=s.ua,l=void 0===u?{}:u,d=s.isDarkMode,f=(r||{}).cardColor,p={isNewStyle:"1"===(a||{}).paTopLabel,isMobile:Boolean(l.Mobile)},h=p.isNewStyle&&!p.isMobile&&0!==f;return c.a.createElement("div",{className:"KfeCollection-AnswerTopCard-Container"},c.a.createElement("div",{className:h?"KfeCollection-AnswerTopCard-FlexContainer":""},2===f?c.a.createElement(VA,{data:r,extra:p}):c.a.createElement(GA,{data:r,className:p.isNewStyle?"":"KfeCollection-AnswerTopCard-Privilege",extra:p}),i&&p.isNewStyle&&c.a.createElement(qA,{ua:l,isDarkMode:d,isFixed:h})),Boolean(n)&&c.a.createElement("div",null,c.a.createElement(DA,{introCard:n,extra:p})))}}]),n}(c.a.Component);WA(YA,"propTypes",{className:jl.a.string,result:jl.a.object.isRequired}),WA(YA,"defaultProps",{result:{articleDesc:{},vipWorthInfo:{},goodsCard:{},btnInfo:{},progressInfo:{},zaInfo:{}},extra:{ua:{}}});var QA=YA,ZA=function(e){var t=e.answer,n=Object(Ot.useSelector)((function(e){return Object(zt.s)(e,null==t?void 0:t.id)}))||{},r=n.isRequesting,i=n.error,c=n.result,s=Boolean(!r&&!i&&!c),u=Object(Ot.useDispatch)();Object(a.useEffect)((function(){s&&u(Object(zt.o)(t.id))}),[s,u,t.id]);var l=Object(Ot.useSelector)(z.m),d=Object(Et.f)().isDarkMode;return Object(o.b)(QA,{result:c,extra:{ua:l,isDarkMode:d}})},JA=Object(rb.a)(null)((function(e){var t=e.answer;return"paid"===(null==t?void 0:t.answerType)?Object(o.b)(ZA,{answer:t}):null})),XA=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.contentExpanded,r=t.unescapable,i=e.labelInfo,c=e.hermesLabel;return Object(o.b)(a.Fragment,{children:!n&&!r&&Object(o.b)(nS,{labelInfo:i||c})})},$A=n(1117),ek=function(e){var t=e.className;return Object(o.c)("div",{className:rl()("Reviewing",t),children:[Object(o.c)("div",{className:"Reviewing-top",children:[Object(o.b)($A.a,{size:16}),Object(o.b)("span",{className:"Reviewing-tip",children:"内容审核中"})]}),Object(o.b)("div",{className:"Reviewing-text",children:"内容将在审核通过后自动发布"})]})},tk=function(){return Object(o.c)("div",{className:"SelfVisibleLable-wrap",children:[Object(o.b)($A.a,{className:"SelfVisibleLable-lockIcon",width:16,center:!0}),"仅自己可见"]})},nk=function(e){var t=e.answer,n=e.canCollapse,r=e.showReviewingLabel,i=t.collapsedBy,a=t.reviewInfo,c=(a=void 0===a?{}:a).isReviewing,s=a.tips,u=t.isVisible,l=t.relationship,d=(l=void 0===l?{}:l).isAuthor,f=t.visibleOnlyToAuthor;return d&&f?Object(o.b)(tk,{}):c&&u?Object(o.b)("div",{className:"AnswerItem-status",children:s},"negativeLabels"):r&&!1===u&&d?Object(o.b)("div",{children:Object(o.b)(ek,{})},"negativeLabelsReviewing"):"org"!==i||n?null:Object(o.c)("div",{className:"AnswerItem-status",children:["回答被提问机构移至隐藏区(",Object(o.b)("a",{href:"/org-intro#org-question",target:"_blank",children:"为什么?"}),")"]},"negativeLabels")},rk=function(e){var t=e.isNormal,n=void 0===t||t,r=e.collapsedBy,o=e.suggestEdit,i=e.collapseReason,a=e.isCollapsed,c=e.question,s=(c=void 0===c?{}:c).brand,u=(s=void 0===s?{}:s).isPuQuestion;return!n&&(null==o?void 0:o.unnormalDetails)?{abnormalDetailProps:{abnormalDetail:o.unnormalDetails}}:("community"===r||u)&&a?{collapseReasonProps:{collapseReason:i}}:null},ok=function(e){var t=e.answer,n=e.canCollapse,r=e.hideCommercialInviteLabel,o=t.collapsedBy,i=t.relevantInfo,a=(i=void 0===i?{}:i).relevantType,c=i.brandSpecialExtra;if(Object(zt.i)(t)||Object(zt.j)(t)||"org"===o&&!n){if("brand_special"===a&&!r)return{type:"answer",data:c};if("brand_best"===a)return{data:{name:"品牌精选",subText:"本回答由品牌设为精选"}}}return null},ik=function(e){var t=e.annotationDetail,n=e.reviewInfo,r=(n=void 0===n?{}:n).isReviewing,o=e.isNormal,i=void 0===o||o,a=e.collapsedBy;return!r&&i&&"community"!==a&&t?{annotationDetail:t}:null};function ak(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var ck=function(e){return"plain"===e||"special-plain"===e},sk=ck,uk={allowed:"允许规范转载",need_payment:"允许付费转载",disallowed:"禁止转载"},lk=["zhi-hu-ri-bao-51-41"],dk=Object(Br.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})),fk=function(e){Object(ml.a)(n,e);var t=ak(n);function n(){var e,r,i,c,s,u;Object(bl.a)(this,n);for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];return(e=t.call.apply(t,[this].concat(d))).state={commentsShown:!1,commentsAutoFocus:!0,reportModalShown:!1,deleteModalShown:!1,collapseModalShown:!1,favlistsShown:!1,editing:!1,commentPattern:"fixed",addAnnotationModalShown:!1,cancelAnnotationModalShown:!1,guideShown:!1,shareVideoQuery:e.getShareVideoId(),shouldShowVideoDetails:!1,contentExpanded:e.props.expanded,hasFetchedLabels:!1,showWechatExpand:!1,autoExpand:!1,shownLoadingBar:!1,shownCatalogModal:!1,wxIsReady:!1},e.answerFormRef=Object(a.createRef)(),e.rewardContainerRef=Object(a.createRef)(),e.richContentRef=Object(a.createRef)(),e.handleLoadedNext=function(){e.setState({wxIsReady:!0}),e.state.shownLoadingBar&&e.createOpenInAppHandler(e.state.autoExpand?"expand_answer2":"expand_answer1")(),e.setState({shownLoadingBar:!1})},e.showOiaModal=function(){var t=e.props,n=t.blockReading,r=t.itemProp,o=t.isBaidu,i=t.shouldAllAutoExpand;("mainEntityOfPage"===r||"acceptedAnswer"===r)&&(document.referrer.includes("zhihu.com")&&i||!o&&!document.referrer.includes("sm.cn")&&n)&&e.setState({showWechatExpand:!0,autoExpand:!0})},e.onCloseReward=function(){var t=e.props.answer.id;w.a.set("isRewardable",!1),e.props.updateAnswerReward(t,"")},e.openModal=function(t,n){e.setState(Object.assign({},n))},e.openDeleteModal=function(){setTimeout((function(){e.setState({deleteModalShown:!0})}))},e.closeModal=function(){e.setState({commentsShown:!1});var t=e.props.onCloseComment;"function"==typeof t&&t()},e.closeDeleteModal=function(){e.setState({deleteModalShown:!1})},e.toggleCatalogModal=function(){e.setState({shownCatalogModal:!e.state.shownCatalogModal})},e.disableAuth=(r=e.props,i=r.router,c=(i=void 0===i?{}:i).location,s=(c=void 0===c?{}:c).pathname,u=r.isBaidu,r.isMobile&&!e.context.currentUser&&!u&&!s.startsWith("/topic")),e.loadAnswerConcernedVoters=function(){var t=e.props,n=t.concernedUpvoters,r=t.answer,o=t.loadAnswerConcernedVoters;!n&&e.context.currentUser&&o(r.id)},e.handleExpand=function(t){var n=e.props,r=n.onToggleExpand,o=n.trackPromotionClick;t&&(e.loadAnswerConcernedVoters(),o&&o()),r&&r(t),e.setState({contentExpanded:t})},e.handleReshipmentSettings=function(t){var n=e.props,r=n.answer.id,o=n.updateAnswerReshipmentSettings,i=n.fillCurrentUserIfNeeded;"need_payment"===t?Promise.resolve(i(["caEnabled"])).then((function(){e.props.currentUser.caEnabled?o(r,t):window.open("/copyright/invite")})):o(r,t)},e.handleLoadAnswerForSettings=function(){var t=e.props,n=t.answer.id;(0,t.loadAnswerForSettings)(n)},e.handleDeleteAnswer=function(){var t=e.props,n=t.answer.id;(0,t.deleteAnswer)(n)},e.handlePositionStatusChange=function(t){e.setState({positionStatus:t})},e.handleCollapseModalShow=function(){e.setState({collapseModalShown:!0})},e.handleCollapseModalHide=function(){e.setState({collapseModalShown:!1})},e.handleUpdateAnswerCollapsed=function(){var t=e.props,n=t.answer,r=n.id,o=n.collapsedBy,i=t.updateAnswerCollapsed,a=t.showNotification;return"community"===o?a("该回答因违反社区规范已被管理员折叠,暂无法公开","red"):i(r)},e.handleUpdateAnswerStick=function(){var t=e.props,n=t.answer.id;return(0,t.updateAnswerStick)(n)},e.handleRestoreAnswer=function(){var t=e.props,n=t.answer,r=n.id,o=n.question;(0,t.restoreAnswer)(o.id,r)},e.handleStartEditAnswer=function(){var t=e.props,n=t.draftStatus,r=t.hasPublishingDraft,o=t.isMobile;n&&n.loading?Ch.a.alert("草稿正在加载中……"):r?Ch.a.alert("你有一份对该回答的修改正在发布中,请等待发布完成后再次修改。"):o?e.context.startAddAnswer(e.props.answer.id):e.setState({editing:!0},(function(){e.answerFormRef.current.focus()}))},e.handleCancelEditAnswer=function(){e.setState({editing:!1});var t=e.props,n=t.onCloseEditing,r=t.onCloseComment;"function"==typeof r&&r(),"function"==typeof n&&n()},e.handleSubmitAnswer=function(t){var n=e.props,r=n.answer.id,o=n.updateAnswer;return e.handleCancelEditAnswer(),o(r,t).then((function(t){return q.a.trackEvent(e.contentItem,{action:"StatusReport"},{status:{result:"Success",event:{action:"Edit"}}}),t}))},e.handleReportOpen=function(){var t=e.props.zaInfos.report;q.a.trackEvent(e.contentItem,Object.assign({action:"Report",element:"Button",is_intent:!0},t&&{id:t})),e.context.authRequired((function(){return e.setState({reportModalShown:!0})}),le.J.report)()},e.handleReportHide=function(){e.setState({reportModalShown:!1})},e.handleFavlistsShown=function(t){var n=e.props,r=n.shouldOia,o=n.zaInfos.favlists;q.a.trackEvent(e.favButtonRef,Object.assign({action:"Collect",element:"Button",is_intent:!0},o&&{id:o})),r?e.createOpenInAppHandler("collect_answer")(t):e.disableAuth?e.handleToggleGuide():e.context.authRequired((function(){return e.setState({favlistsShown:!0})}),le.J.favlists)()},e.handleFavlistHide=function(){e.setState({favlistsShown:!1})},e.handleLogMoreClick=function(){var t=e.props.zaInfos.options;q.a.trackEvent(e.contentItem,Object.assign({action:"Click",element_name:"MoreAction"},t&&{id:t}))},e.handleShowAddAnnotationModal=function(){return e.setState({addAnnotationModalShown:!0})},e.handleCloseAddAnnotationModal=function(){return e.setState({addAnnotationModalShown:!1})},e.handleShowCancelAnnotationModal=function(){return e.setState({cancelAnnotationModalShown:!0})},e.handleCloseCancelAnnotationModal=function(){return e.setState({cancelAnnotationModalShown:!1})},e.handleToggleGuide=function(){e.setState({guideShown:!e.state.guideShown})},e.handleClickVideoMoreButton=function(){e.setState({shouldShowVideoDetails:!1})},e.startEditing=function(){var t=e.props,n=t.isAuthor,r=t.editable;e.context.currentUser&&n&&r&&e.handleStartEditAnswer()},e.addRewardTagline=function(t){var n=e.props.answer.id;Object(Xo.a)(t,n)},e.createOpenInAppHandler=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.props,o=r.answer,i=o.type,a=o.id,c=r.blockReading,s=r.isSpecialQuestionOrAnswer;return function(r,o){if(r&&r.preventDefault(),c&&q.a.trackEvent(Object(kl.a)(e),{id:5550,action:"Click"},{button:{text:"openapp"}}),s)location.href="zhihu://".concat(i,"/").concat(a,"?utm_app_name=zhihu_check");else{var u=Im[o]||Im[t],l=Object.assign({},c&&{yyb_ckey:"CK1430255776739"},{preventToOIA:n});Rm[u]&&(l.launch_button=Rm[u]),Object(_.b)(Object(Lv.a)({type:i,id:a}),l)}}},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,i=r.useNewLabels,a=r.canCollapse,c=r.relatedTo,s=r.showReviewingLabel,u=r.hideCommercialInviteLabel,l=e.state,d=l.contentExpanded,f=l.editing,p=nk({answer:t,canCollapse:a,showReviewingLabel:s}),h=rk(t),b=ok({answer:t,canCollapse:a,hideCommercialInviteLabel:u}),v=ik(t);if(!i){var m=Object(o.b)(NC,Object.assign({useOldLabels:!0,item:{isLabeled:!0}},h,{commercialProps:b,annotationProps:v,showLegacyPositiveLabel:Object(zt.j)(t),editing:f}));return{labels:[p,m],editingLabels:[m]}}if(p||h)return{labels:[p,Object(o.b)(NC,Object.assign({item:{isLabeled:!0}},h),"labels")],editingLabels:[]};var g=[Object(o.b)(NC,{item:t,commercialProps:b,annotationProps:v,editing:f},"labels")];return{labels:d||c?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 XA(n,o)},e.renderVoteButton=function(){var t=e.props,n=t.answer,r=t.answer,i=r.question,a=i.questionType,c=i.isMuted,s=r.relationship,u=(s=void 0===s?{}:s).isRecognized,l=s.voting,d=r.attachment,f=r.voteupCount,p=t.shouldOia,h=t.zaInfos,b=h.voteUp,v=h.voteDown,m=t.isMuteSpecial,g=t.isMuteFreeze,O=t.isAuthor,y=e.context.currentUser,j=e.state.positionStatus,E="commercial"===a;return e.isLegacyVideoAnswer?Object(o.b)(wT,{answer:n,id:d.attachmentId,voteupCount:f,voting:l,isOwner:O,disabled:E&&c||m||g,currentUser:y}):Object(o.b)(ET,Object.assign({answer:n,disabled:E&&c||m||g},p&&{onClick:e.createOpenInAppHandler("vote_answer")},{disableAuth:e.disableAuth,isRecognized:u,handleToggleGuide:e.handleToggleGuide,positionStatus:j,zaIds:{voteUp:b,voteDown:v}}),"vote")},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.expanded,r=t.byComment,o=t.editing,i=t.loadVideoDetails,a=t.isSearchSpecialSource,c=t.isMobile,s=t.isWechat,u=this.state.shareVideoQuery;if(u&&i(u).then((function(){e.setState({shouldShowVideoDetails:!0})})),n&&this.loadAnswerConcernedVoters(),r&&setTimeout((function(){return e.setState({commentsShown:Boolean(r)})})),o&&this.startEditing(),c&&!a&&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,i=e.answer,a=i.reshipmentSettings,c=i.commentPermission;!r&&a&&!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(uk).map((function(n){return Object(o.b)(Yv.a,{onClick:function(){return t.handleReshipmentSettings(n)},checked:n===e,children:uk[n]},n)}))}},{key:"renderAnswerExtraInfo",value:function(){var e=this.props,t=e.answer,n=e.actor,r=e.action,i=e.concernedUpvoters,a=e.isHuman,c=e.useNewLabels,s=e.isMobile,u=t.id,l=t.voteupCount,d=t.markInfos,f=t.isNormal;if(!((!a||!s)&&(void 0===f||f)))return null;var p=(null==d?void 0:d.length)>0&&!c;return p||l?Object(o.b)(tA,{id:u,voteupCount:l,markInfos:p&&d,actorToken:null==n?void 0:n.urlToken,action:r,concernedUpvoters:i},"AnswerItemExtraInfo"):null}},{key:"renderSettings",value:function(){var e=this,t=this.context.currentUser,n=this.props,r=n.answer,i=r.collapsedBy,a=r.reshipmentSettings,c=r.commentPermission,s=r.question.questionType,u=r.rewardInfo,l=(u=void 0===u?{}:u).isRewardable,d=void 0!==l&&l,f=r.relevantInfo,p=n.answer,h=n.canCollapse,b=n.isMobile,v=n.isAuthor;return t&&v?a&&c?Object(o.c)(bb.c,{toggler:Object(o.b)(yf.c,{preset:"plain",onRef:function(t){e.settingsTogglerEl=t},icon:hb.a,label:!b&&"设置"}),reversed:!0,menuClassName:"AnswerItem-selfMenu",itemClassName:"AnswerItem-selectMenuItem",children:[this.renderReshipmentSettings(a),Object(o.b)(bb.a,{}),Object(o.b)(dm.c,{target:p,onChange:this.props.updateAnswerCommentPermission,current:p.commentPermission}),Object(o.b)(bb.a,{}),d&&Object(o.b)(bb.b,{onClick:this.onCloseReward,children:"关闭赞赏"}),Object(o.b)(bb.b,{onClick:this.openDeleteModal,children:"删除"}),"commercial"===s&&h&&"nobody"===i&&(!f||"brand_special"!==f.relevantType)&&[Object(o.b)(bb.a,{},"MenuDivider"),Object(o.b)(bb.b,{onClick:this.handleUpdateAnswerCollapsed,children:"隐藏"},"MenuItem")]]},"settings"):Object(o.b)(yf.c,{preset:"plain",onClick:this.handleLoadAnswerForSettings,icon:hb.a,label:!b&&"设置"},"settings"):null}},{key:"renderReshipment",value:function(e,t){var n=this;return"need_payment"===t?Object(o.b)(bb.b,{onClick:function(){q.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(o.b)(bb.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,i=t.renderExtraOptions,a=t.permission.canBrandAdminEdit,c=t.isMobile,s=t.isAuthor,u=n.id,l=n.reshipmentSettings,d=n.collapsedBy,f=n.question,p=f.questionType,h=f.brand,b=(h=void 0===h?{}:h).isPuQuestion,v=n.annotationAction,m=void 0===v?[]:v,g=n.annotationDetail,O={toggler:Object(o.b)(yf.c,{preset:"plain",className:"OptionsButton",icon:cv.a,"aria-label":"更多"}),reversed:!0,onOpen:this.handleLogMoreClick,menuClassName:"AnswerItem-selfMenu",itemClassName:"AnswerItem-selfMenuItem"},y="commercial"===p,j="nobody"!==d;return s?null:Object(Md.b)(bb.c,Object.assign({},O,{key:"options"}),c&&Object(o.b)(BS,{answer:n}),r&&!y&&Object(o.b)(bb.b,{onClick:j?this.handleUpdateAnswerCollapsed:this.handleCollapseModalShow,children:j?"取消隐藏":"隐藏"}),a&&y&&!j&&!b&&Object(o.b)(bb.b,{onClick:this.handleUpdateAnswerCollapsed,children:"隐藏"}),m&&m.some((function(e){return le.b.add===e}))&&!g&&Object(o.b)(bb.b,{onClick:this.handleShowAddAnnotationModal,children:"标记内容"}),m&&m.some((function(e){return le.b.cancel===e}))&&g&&Object(o.b)(bb.b,{onClick:this.handleShowCancelAnnotationModal,children:"撤销标记"}),Object(o.b)(bb.b,{onClick:this.handleReportOpen,children:"举报"}),this.renderReshipment(u,l),i&&i({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,i=e.createdTime,a=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*i).toISOString(),dateModified:new Date(1e3*a).toISOString(),commentCount:c}}(this.props.answer);return Object.keys(e).map((function(t){return Object(o.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,i=n.prizes;if(!n.status)return null;var a=["一","二","三"],c=null;return i&&r&&r.forEach((function(e,n){e.includes(t)&&null===c&&(c=i&&i[1]&&i[1].name?"得".concat(a[n],"等奖"):"奖")})),c&&Object(o.c)("div",{className:"AnswerItem-brandQuestionPrizeTip",children:["该回答在有奖问答中获",c]})}},{key:"renderBrandEntityTrack",value:function(){var e=this.state.contentExpanded,t=this.props,n=t.answer,r=t.expanded,i=t.isBrandAnswer,a=n.question;return(r||e)&&(a&&"commercial"===a.questionType||i)?Object(o.b)(mg,{type:n.type,id:n.id}):null}},{key:"renderEditTime",value:function(){var e,t,n,r=this.props,i=r.shouldOia,a=r.answer,c=a.id,s=a.createdTime,u=a.updatedTime,l=a.question.id,d=a.playCount,f=a.attachment,p=d||(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(le.v,"/question/").concat(l,"/answer/").concat(c);return Object(o.b)(i_,Object.assign({created:s,updated:u,href:h},this.isVideoAnswer&&p>0&&{videoPlayCount:Number(p)},i&&{onClick:this.createOpenInAppHandler("click_answer")}))}},{key:"render",value:function(){var e,t,n=this,r=this.props,a=r.answer,c=r.reward,s=r.answer,u=s.id,l=s.isNormal,d=void 0===l||l,f=s.isDelete,p=s.question,h=s.rewardInfo,b=s.question,v=b.title,m=b.id,g=b.questionType,O=b.commercial,y=b.brand,j=(y=void 0===y?{}:y).isPuQuestion,E=s.author,C=s.excerpt,w=s.content,T=s.enableConvert,_=s.editableContent,S=s.commentCount,A=s.adminClosedComment,k=s.collapsedBy,R=s.isSticky,I=s.thumbnail,x=s.thumbnailExtraInfo,N=s.reviewInfo,D=(N=void 0===N?{}:N).isReviewing,P=N.editType,L=s.relevantInfo,M=(L=void 0===L?{}:L).relevantType,U=s.annotationDetail,B=s.paidInfo,z=void 0===B?{}:B,F=s.creatorRightsNotification,G=s.attachment,V=s.vessayInfo,H=s.videoContribution,q=r.relatedTo,W=r.editable,Y=r.byComment,Q=r.draft,Z=r.expanded,J=r.lastreadTouchable,X=r.preset,$=r.canCollapse,ee=r.canStick,te=r.itemProp,ne=void 0===te?"answer":te,re=r.addAnnotation,oe=r.cancelAnnotation,ie=r.showNotification,ae=r.dataZaIndex,ce=r.blockReading,se=r.isWechat,ue=r.isHuaweiBrowser,de=r.isHonor,fe=r.lessExcerpt,pe=r.isHuman,he=r.ua,be=r.shouldSpecialOia,ve=r.shareVideoDetail,me=r.trackPromotionClick,ge=r.formatContent,Oe=r.zaInfos,ye=Oe.expand,je=Oe.title,Ee=Oe.thank,Ce=Oe.toggleComment,we=Oe.share,Te=Oe.getCommentAction,_e=r.handleToggleSticky,Se=r.renderActionButtons,Ae=r.permission.canBrandAdminEdit,ke=r.readContentRightsNotification,Re=r.ecommerce,Ie=r.isMobile,xe=r.canAbstract,Ne=r.isBaidu,De=r.isMuteSpecial,Pe=r.isMuteFreeze,Le=r.isAuthor,Me=r.shouldUseArticleCard,Ue=r.isTopic,Be=r.xiaomi,ze=r.showCommentForOia,Fe=r.pathname,Ge=r.richContentKey,Ve=r.isQuestionPage,He=r.useNewEditorSetting,qe="function"==typeof _e,Ke=this.context.currentUser,We="".concat(le.v,"/question/").concat(m,"/answer/").concat(u),Ye=this.state,Qe=Ye.reportModalShown,Ze=Ye.deleteModalShown,Je=Ye.collapseModalShown,Xe=Ye.favlistsShown,$e=Ye.editing,et=Ye.commentsShown,tt=Ye.commentsAutoFocus,nt=Ye.commentPattern,rt=Ye.addAnnotationModalShown,ot=Ye.cancelAnnotationModalShown,it=Ye.positionStatus,at=Ye.shareVideoQuery,ct=Ye.shouldShowVideoDetails,st=Ye.contentExpanded,ut=Ye.showWechatExpand,lt=Ye.autoExpand,dt=Ye.shownLoadingBar,ft=Ye.wxIsReady,pt=Ye.shownCatalogModal,ht=at&&ct?{title:ve.title,thumbnail:ve.coverUrl,isLens:!0,id:at,isPlayable:!0,url:"https://www.zhihu.com/video/".concat(at)}:null;if(f)return Object(o.c)("div",{className:"AnswerItem-deleted",children:["你已经删除了该问题的回答,如果需要修改,请先 ",Object(o.b)("a",{onClick:this.handleRestoreAnswer,children:"撤销删除"})]});var bt,vt=!(D&&"create"===P),mt="commercial"===g,Ot="nobody"!==k,yt=!function(e){return"special-plain"===e}(X)&&Object(o.b)(FE.a,{className:rl()("AnswerItem-authorInfo",{"AnswerItem-authorInfo--related":q}),preset:sk(X)?"plain":"default",author:E,relatedTo:q,id:u},"authorInfo"),jt=this.renderAnswerExtraInfo(),Et=this.renderLabels(),Ct=Et.labels,wt=Et.editingLabels,Tt=I||(null==G||null===(e=G.video)||void 0===e||null===(t=e.videoInfo)||void 0===t?void 0:t.thumbnail);if($e)return Object(o.c)("div",{children:[He?Object(o.c)(Ef.Flex,{alignItems:"center",justifyContent:"space-between",css:function(e){return{borderBottom:"1px solid ".concat(e.colors.GBK09A),".Tabs":{border:"none"}}},children:[Object(o.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(o.b)(Vg,{handleClick:null===(bt=this.answerFormRef.current)||void 0===bt?void 0:bt.toggleFullscreen})]}):Object(o.c)(o.a,{children:[this.isVideoAnswer&&Object(o.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)},Ve&&{marginBottom:16})},children:"本回答为视频回答"}),yt]}),!He&&wt,!He&&jt,Object(o.b)(uT,{css:He?{margin:"0 -20px -20px"}:{margin:"16px -20px 0"},className:"AnswerItem-form",isReediting:!0,imperativeRef:this.answerFormRef,question:p,answer:a,defaultValue:_,onDeleteDraft:this.handleCancelEditAnswer,onCancel:this.handleCancelEditAnswer,onSubmit:this.handleSubmitAnswer,isRewardable:h.isRewardable,addRewardTagline:this.addRewardTagline})]});var _t=ck(X)?[[yt].concat(Object(i.a)(Ct)),jt]:[[yt].concat(Object(i.a)(Ct),[jt]),null],St=Object(gt.a)(_t,2),At=St[0],kt=St[1],Rt="mainEntityOfPage"===ne||"acceptedAnswer"===ne,It=be&&!Rt,xt=!ht&&this.renderEditTime(),Nt=z.content,Dt=this.isPaidAnswer,Pt=Dt?Nt:w,Lt=!q&&Object(o.b)(FS,{questionId:m,title:v,href:We,zaTitleId:je,showStickyMark:qe&&this.props.isSticky,onClick:me}),Mt=d||Le,Ut=Be&&Fe.match(/\/question\/\d+$/g),Bt=ge?ge(Pt||C,a):Pt||C,zt=vt&&!Ie&&st&&_m(a,"answer"),Ft=Boolean(T||(null==V?void 0:V.enableVideoTranslate)),Gt=Lm("answer",u);return Object(o.c)(Og.c,{onRef:function(e){return n.contentItem=e},className:"AnswerItem","data-za-index":ae,"data-zop":JSON.stringify({authorName:E.name,itemId:u,title:v,type:"answer"}),data:a,link:We,meta:At,title:Lt,lastreadTouchable:J,name:u,itemProp:ne,itemType:"http://schema.org/Answer",itemScope:!0,children:[d&&(!Ue||st)&&Object(o.b)(JA,{answer:a}),this.renderMeta(),mt&&this.renderBrandQuestionPrizeTip(),this.renderBrandEntityTrack(),this.isLegacyVideoAnswer&&Object(o.b)("div",{css:{marginTop:16},children:Object(o.b)(Wv.b,{id:G.zvideo.videoId,thumbnail:G.zvideo.thumbnail,playerUrl:"https://video.zhihu.com/video/".concat(G.zvideo.videoId),isLens:!0,isPlayable:!0})}),(q||st)&&H&&Object(o.b)(iA,Object.assign({},H)),(q||st)&&this.isVideoAnswer&&Object(o.b)(aA,{}),Mt?Object(o.c)(l_,Object.assign({richContentKey:Ge,className:rl()({"RichContent-mobileBaidu":Ne}),imperativeRef:this.richContentRef,canAbstract:xe,onToggleExpend:this.handleExpand},It&&{expandText:"App 内查看"},ce&&Rt&&{expandText:"展开阅读全文"},Ie&&pe&&!Rt&&{collapsedHeight:180},{cover:Tt,hasVideo:Boolean(x&&"video"===x.type)||this.isVideoAnswer,videoData:ht,handleClickVideoMoreButton:this.handleClickVideoMoreButton,unescapable:Boolean(q),expanded:Z,onPositionStatusChange:this.handlePositionStatusChange,before:kt,excerpt:ge?ge(C,a):C,html:Bt,prefix:this.renderPrefix(),ecommerce:Re,after:Object(o.c)("div",{children:[Object(o.b)(AA,{answer:a}),Object(o.b)(M_,{className:"AnswerItem-CommercialQuestionTail",commercial:O}),!Ie&&st&&Object(o.b)(ES,{contentType:"answer",contentToken:u,author:E}),xt,Ke&&Le&&W&&Object(o.c)("a",{className:"AnswerItem-editButton",onClick:this.handleStartEditAnswer,children:[Object(o.b)(Gv.a,{text:!0,center:!0})," ",Object(o.c)("span",{className:"AnswerItem-editButtonText",children:["修改",Q&&Q.editableContent&&"(有未发布的编辑草稿)"]})]}),!Ie&&Ke&&Object(o.b)(D_,{imperativeRef:this.rewardContainerRef,reward:c,currentUser:Ke,rewardInfo:h,isAuthor:Le,id:u,author:E,ua:he,balanceEnable:!1})]}),data:a,onClick:ce&&Rt?function(){(Ut||se)&&Ie?(n.setState({autoExpand:!1}),n.richContentRef.current.handleExpand()):(ue||de)&&Ie?(n.setState({autoExpand:!1}),n.createOpenInAppHandler("expand_answer1",!0)(),n.richContentRef.current.handleExpand()):n.setState({showWechatExpand:!0,autoExpand:!1})}:It?n.createOpenInAppHandler("expand_answer"):n.disableAuth&&ce&&n.handleToggleGuide},fe?{limit:74}:{},{zaIds:{expand:ye},shouldUseArticleCard:Me,children:[vt&&Ae&&mt&&Ot&&!j&&Object(o.b)(yf.c,{className:rl()("ContentItem-rightButton AnswerItem-mainAction AnswerItem-open",{"AnswerItem-mainAction--disabled":"community"===k}),onClick:this.handleUpdateAnswerCollapsed,children:"公开回答"}),vt&&ee&&!Ot&&"brand_special"!==M&&Object(o.b)(yf.c,{className:"ContentItem-rightButton AnswerItem-mainAction AnswerItem-brandQuestionButton",onClick:this.handleUpdateAnswerStick,children:R?"取消精选":"设为精选"}),!this.props.isBaidu&&Se({componentList:[{name:"vote",component:vt&&this.renderVoteButton()},{name:"comment",component:vt&&Object(o.b)(Lg,Object.assign({onInstance:function(e){return n.commentButton=e},onClick:this.openModal},Ie&&pe&&be&&{onClick:this.createOpenInAppHandler("comment_answer")},{commentsShown:et,commentClosed:A,count:S,positionStatus:it,zaInfos:{toggleComment:Ce,getCommentAction:Te}}),"comment")},{name:"catalog",component:zt&&Object(o.b)(bm,{html:Bt,sourceId:a.id,onClick:this.toggleCatalogModal},"catalog")},{name:"share",component:vt&&!Ie&&Object(o.b)(Ig,{disabled:De||Pe,id:u,type:"answer",title:v,authorName:E&&E.name,href:We,positionStatus:it,zaShareId:we},"share")},{name:"favlist",component:vt&&(!Ke||!Ke.isOrg)&&Object(o.b)(ug,{onRef:function(e){return n.favButtonRef=e},onClick:this.handleFavlistsShown,label:Ie?"":"收藏",disabled:De||Pe},"favlist")},!Ie&&{name:"thank",component:vt&&!Le&&Object(o.b)(BS,Object.assign({zaInfo:Ee,answer:a,disabled:De||Pe},this.isLegacyVideoAnswer&&{zVideoId:G.attachmentId}),"thank")},{name:"sticky",component:!Ie&&qe&&Le&&lm(Ke)&&Object(o.b)(yf.c,{preset:"plain",onClick:_e,icon:this.props.isSticky?Hv:Kv,label:this.props.isSticky?"取消置顶":"置顶"},"sticky")},{name:"vessay",component:!Ie&&Le&&Ft&&Object(o.c)(K.a,{as:yf.c,zaAction:"OpenUrl",zaText:"生成视频",zaType:"Button",preset:"plain",onClick:function(){return window.open(Gt)},className:"ContentItem-convertVideoButton",extra:{link:{url:Gt}},children:[Object(o.b)(Pm,{}),Object(o.b)("span",{children:"生成视频"})]})},{name:"options",component:Ie&&pe||vt&&this.renderOptions()},{name:"settings",component:Ie&&pe||this.renderSettings()},{name:"annotation",component:!st&&Object(o.b)(gg,{annotationDetail:U},"annotation")}]})]})):xt,Mt&&!Dt&&Object(o.b)(wS,{content:Pt,type:"answer",urlToken:String(u)}),ze&&Fe.startsWith("/question")&&Object(o.b)("div",{children:Object(o.b)(xm,{parent:a})}),Object(o.b)(zg,{shown:et,parent:a,byComment:Y,commentPattern:nt,autoFocus:tt,onClose:this.closeModal}),Object(o.b)(Bf.a,{type:"answer",urlToken:u,shown:Qe,onClose:this.handleReportHide,zaEnabled:!0}),Object(o.b)(nm,{addAnnotation:re,onClose:this.handleCloseAddAnnotationModal,shown:rt,type:le.c,urlToken:u,showNotification:ie}),Object(o.b)(om,{cancelAnnotation:oe,onClose:this.handleCloseCancelAnnotationModal,shown:ot,type:le.c,urlToken:u,showNotification:ie}),Ke&&Le&&Object(o.b)(fC,{title:"你确定要删除自己的答案吗?",subtitle:"答案内容不会被永久删除,你还可以撤消本次删除操作。",shown:Ze,onCancel:this.closeDeleteModal,onSubmit:this.handleDeleteAnswer}),$&&Object(o.b)(fC,{title:"隐藏答案",subtitle:"隐藏后该回答将不展示也不流通,是否确定隐藏?",shown:Je,onCancel:this.handleCollapseModalHide,onSubmit:this.handleUpdateAnswerCollapsed}),Object(o.b)(Zm,{id:u,type:"answer",shown:Xe,onClose:this.handleFavlistHide,zaEnabled:!0}),Ie&&this.state.guideShown&&Object(o.b)(El.a,{redirectUrl:We,buttons:[se?{name:"wechat",text:"快速登录",fill:"#fff"}:"zhihu"],urlScheme:Object(Lv.a)({type:"answer",id:u}),onClose:this.handleToggleGuide}),Object(o.b)(ag,{notification:F,onRead:function(e){ke("answer",u,e)},onUseAdmire:function(){n.rewardContainerRef.current.activateReward()},onUseRecommend:function(){var e=n.props.postToolsRecommend;Ch.a.confirm(Object(o.b)("div",{style:{textAlign:"center"},children:"该推荐将使用本月的 1 次推荐次数。"}),{title:"确定是否推荐?"}).then((function(){return e("answer",u)}),(function(){}))}}),Object(o.b)(kS,{show:ut&&!Ut&&Ie&&!se,id:a.id,type:a.type,onCancel:function(){n.setState({showWechatExpand:!1},(function(){lt||n.richContentRef.current.handleExpand()}))},onSubmit:function(){n.setState({showWechatExpand:!1}),se?ft?n.createOpenInAppHandler(lt?"expand_answer2":"expand_answer1")():n.setState({shownLoadingBar:!0}):n.createOpenInAppHandler(lt?"expand_answer2":"expand_answer1")()}}),Object(o.b)(xS,{show:dt&&Ie}),zt&&Object(o.b)(Tm,{shown:pt,html:Bt,sourceId:a.id,onClose:this.toggleCatalogModal,created:a.createdTime,updated:a.updatedTime,author:E,zaContent:{type:"Answer",token:String(a.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}(a.PureComponent);fk.contextTypes={currentUser:jl.a.object,authRequired:jl.a.func,startAddAnswer:jl.a.func},fk.propTypes={relatedTo:jl.a.oneOf(["question","answer"]),editable:jl.a.bool,preset:jl.a.oneOf(["special-plain","plain","primary"]),lessExcerpt:jl.a.bool,shareVideoDetail:jl.a.object,formatContent:jl.a.func,renderExtraOptions:jl.a.func,zaInfos:jl.a.object,onToggleExpand:jl.a.func,useNewLabels:jl.a.bool,renderActionButtons:jl.a.func,canAbstract:jl.a.bool,trackPromotionClick:jl.a.func,isSearchSpecialSource:jl.a.bool,hideCommercialInviteLabel:jl.a.bool},fk.defaultProps={editable:!1,canAbstract:!1,isSearchSpecialSource:!1,preset:"primary",zaInfos:{},renderActionButtons:NS};var pk=Object(Lt.compose)(Object(im.b)((function(e){var t=e.answer,n=e.trackCardShow,r=void 0===n||n,o=e.zaInfos,i=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}},i.index&&{index:i.index},i.cardShow&&{view:{id:i.cardShow}},{trackCardShow:r})})),st.withRouter,Object(Ot.connect)((function(e,t){var n,r,o=e.entities.drafts,i=void 0===o?{}:o,a=e.question,c=(a=void 0===a?{}:a).draftStatus,s=e.answers,u=(s=void 0===s?{}:s).paidContent,l=void 0===u?{}:u,d=e.reward,f=e.switches,p=e.video.shareVideoDetail,h=e.env,b=h.edition,v=h.userAgent,m=t.answer,g=t.relatedTo,O=t.location.pathname,y=O.split("/"),j=!1,E=!0;!y[1]||"org"!==y[1]&&"people"!==y[1]||(j=y[2]&&-1!==lk.indexOf(y[2]),E=!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,i=n.parentVideoId,a=n.zvideoId,c={videoId:o,zvideoId:a,title:r,playCount:n.playCount,voteupCount:n.voteupCount,isComplete:!a||i===o,startTime:n.startTime};return Object.assign({},e,{videoContribution:c})}return e}(dk(e,t)),w=Object(B.b)(e),T=["question","answer"].includes(g),_=Object(z.c)(e)&&T,S=Object(z.j)(e),A=v.Mobile,k=v.Qzone,R=A&&S&&!k;return{draft:m&&i["question_".concat(m.question.id)],draftStatus:null==c?void 0:c[m.question.id],answer:C,ua:Object(z.m)(e),pathname:O,xiaomi:b.xiaomi,reward:d,switches:f,isHuman:_,shouldOia:Object(z.i)(e)&&!j,shouldSpecialOia:Object(z.j)(e)&&!j,isSpecialQuestionOrAnswer:Object(z.k)(e,{type:T&&g,id:T?"answer"===g?m.id:m.question.id:""}),shouldAllAutoExpand:"1"===Object(z.a)(e,"web_mweb_launch"),isMobile:Object(z.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(zt.d)(e,{id:m.id}),currentUser:w,shareVideoDetail:p,isBrandAnswer:Object(zt.h)(m),permission:Object(yn.l)(e),ecommerce:Object(Mt.c)(e,{type:"answer",urlToken:String(m.id)}),isBaidu:Object(z.i)(e)&&b.baidu,showCommentForOia:Object(z.i)(e),blockReading:R,paidContent:l,isMuteSpecial:Object(yn.i)(C.question),isMuteFreeze:Object(yn.h)(C.question),isAuthor:null!==(n=null===(r=m.relationship)||void 0===r?void 0:r.isAuthor)&&void 0!==n?n:Object(B.g)(e,m.author),shouldUseArticleCard:"1"===Object(z.a)(e,"gue_visit_n_artcard"),useNewEditorSetting:"1"===Object(z.a)(e,"editor"),isQuestionPage:E}}),{updateAnswerReshipmentSettings:zt.y,updateAnswerCommentPermission:zt.x,updateAnswerCollapsed:zt.w,updateAnswerStick:zt.A,deleteAnswer:zt.f,restoreAnswer:zt.t,updateAnswer:zt.v,loadAnswerForSettings:zt.m,showNotification:Xr.g,addAnnotation:sm,cancelAnnotation:um,addRewardTagline:Xo.a,updateAnswerReward:zt.z,getVoteDownReason:zt.g,selectVoteDownReason:zt.u,loadAnswerConcernedVoters:zt.l,fillCurrentUserIfNeeded:B.d,loadVideoDetails:No.d,readContentRightsNotification:gi.f,postToolsRecommend:gi.e}),iS)(fk),hk=Object(G.a)("brand",["GET_URL"]),bk=function(e){return{API:{types:hk.GET_URL,endpoint:"/brand/track",method:"GET",fetchOptions:{credentials:"include",failsafe:!0,timeout:100},query:{target_url:"https://zhuanlan.zhihu.com/p/".concat(e)}},FAILSAFE:!0,UPDATE:{success:function(t){return{articles:Object(Ut.a)({},e,{trackUrl:t.data||[]})}}}}};function vk(e,t){var n=e.trackUrl,r=void 0===n?[]:n,o=e.id;if(0===r.length)return null;var i="other";t.Android?i="android":t.iOS&&(i="ios");var a=pg()();return r.forEach((function(e){(new Image).src=e.replace("__OS__",i).replace("__ADPLATFORM__",i).replace("__REQUESTID__",a).replace("__SESSIONID__",a).replace("__ATOKEN__",o).replace("__PAGETYPE__","article")})),{os:i,pageId:o,sessionId:a,pageType:"article"}}var mk=n(1095),gk=Object(G.a)("live",["UPDATE_LIKED","UPDATE_COURSE_LIKED"]);var Ok=Object(G.a)("ebook",["FOLLOW","UNFOLLOW"]);var yk=Object(G.a)("promotion",["LIKE"]);function jk(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Ek={ebook:"updateEBookVoters",live:"updateLiveLiked",live_course:"updateLiveCourseLiked",article:"updateArticleLike",promotion:"updatePromotionLike",pin:"updatePinsLike"},Ck=function(e){Object(ml.a)(n,e);var t=jk(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleToggleVote=e.context.authRequired((function(t){var n=e.props,r=n.liked,o=n.type,i=n.id,a=!r;q.a.trackEvent(t.target,{action:a?"Upvote":"UnUpvote",element:"Button"});var c=Ek[o];e.props[c](i,a)}),le.J.vote),e.handleClick=function(t){var n=e.props,r=n.disableAuth,o=n.handleToggleGuide,i=n.onClick;i&&i(t)||(r?o(t):e.handleToggleVote(t))},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.liked,n=e.count,r=e.className,i=e.icon,a=void 0===i?"like":i,c=e.disabled;return Object(o.c)(yf.c,{className:rl()("LikeButton",{"is-active":t},r),onClick:this.handleClick,disabled:c,children:["thank"===a?Object(o.b)(DS.a,{center:!0}):Object(o.b)(mk.a,{center:!0})," ",Object(hh.cnNiceNumber)(n).trim()]})}}]),n}(a.Component);Ck.contextTypes={authRequired:jl.a.func},Ck.propTypes={type:jl.a.oneOf(_g.a).isRequired,id:jl.a.oneOfType([jl.a.number,jl.a.string]).isRequired,icon:jl.a.string,liked:jl.a.bool,count:jl.a.number};var wk=Object(Lt.compose)(Object(Ot.connect)(null,{updateEBookVoters:function(e){return function(t,n){var r=n().entities.ebooks[e],o=!(r.relationship||{}).voting;return t({API:{types:Ok.FOLLOW,method:o?"POST":"DELETE",endpoint:"v3/books/".concat(e,"/voters")},UPDATE:{request:{ebooks:Object(Ut.a)({},e,{relationship:Object.assign({},r.relationship,{voting:o}),voteupCount:r.voteupCount+(o?1:-1)})},failure:{ebooks:Object(Ut.a)({},e,r)}}})}},updateLiveLiked:function(e){return function(t,n){var r=n().entities.lives[e],o=!r.isLiked;return t({API:{types:gk.UPDATE_LIKED,endpoint:"v3/lives/".concat(e,"/like"),method:o?"POST":"DELETE"},UPDATE:{request:{lives:Object(Ut.a)({},e,{isLiked:o,likedNum:r.likedNum+(o?1:-1)})},failure:{lives:Object(Ut.a)({},e,r)}}})}},updateLiveCourseLiked:function(e){return function(t,n){var r=n().entities.liveCourses[e],o=!r.isLiked;return t({API:{types:gk.UPDATE_COURSE_LIKED,endpoint:"v3/lives/course/".concat(e,"/like"),method:o?"POST":"DELETE"},UPDATE:{request:{liveCourses:Object(Ut.a)({},e,{isLiked:o,likedNum:r.likedNum+(o?1:-1)})},failure:{liveCourses:Object(Ut.a)({},e,r)}}})}},updateArticleLike:mo.g,updatePromotionLike:function(e){return function(t,n){var r=n().entities.promotions[e]||{},o=r.voteupCount,i=r.voting,a=i?0:1;return t({API:{types:yk.LIKE,endpoint:"v3/promotions/".concat(e,"/voters"),query:{voting:a},method:"POST"},UPDATE:{request:{promotions:Object(Ut.a)({},e,{voteupCount:o+(i?-1:1),voting:a})},success:function(t){return{promotions:Object(Ut.a)({},e,t)}},failure:{promotions:Object(Ut.a)({},e,r)}},NOTIFICATION:{failure:Xr.a}})}},updatePinsLike:function(e){return function(t,n){var r=n().entities.pins[e],o=r.likeCount,i=r.virtuals,a=(i=void 0===i?{}:i).isLiked;return t({id:e,API:{types:yo.LIKE,endpoint:"pins/".concat(e,"/likers"),method:a?"delete":"post"},UPDATE:{request:{pins:Object(Ut.a)({},e,{likeCount:o+(a?-1:1),virtuals:{isLiked:!a}})},failure:{pins:Object(Ut.a)({},e,r)}},NOTIFICATION:{failure:Xr.a}})}}}))(Ck),Tk=n(181);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Sk=function(e){return"plain"===e||"special-plain"===e},Ak=Sk,kk=function(e){return e.thumbnailExtraInfo&&"video"===e.thumbnailExtraInfo.type?{cover:e.thumbnail,hasVideo:!0}:{cover:e.imageUrl||e.thumbnail,hasVideo:!1}},Rk=function(e){Object(ml.a)(n,e);var t=_k(n);function n(){var e,r,i,a,c;Object(bl.a)(this,n);for(var s=arguments.length,u=new Array(s),l=0;l<s;l++)u[l]=arguments[l];return(e=t.call.apply(t,[this].concat(u))).state={commentsShown:!1,commentsAutoFocus:!0,favlistsShown:!1,commentPattern:"fixed",positionStatus:null,guideShown:!1,contentExpanded:!1,hasFetchedLabels:!1,shownCatalogModal:!1},e.disableAuth=(r=e.props,i=r.router,a=(i=void 0===i?{}:i).location,c=(a=void 0===a?{}:a).pathname,r.isMobile&&!e.context.currentUser&&!c.startsWith("/topic")),e.handleCommentsShown=function(t,n){e.props.shouldOia?e.createOpenInAppHandler("comment_article")(t):e.setState(n)},e.handleCommentsHide=function(){e.setState({commentsShown:!1})},e.handlePositionStatusChange=function(t){e.setState({positionStatus:t})},e.handleFavButtonClick=function(t){var n=e.props,r=n.zaInfos.favlists;n.shouldOia?e.createOpenInAppHandler("comment_article")(t):(q.a.trackEvent(e.favButtonRef,Object.assign({action:"Collect",element:"Button",is_intent:!0},r&&{id:r})),e.disableAuth?e.handleToggleGuide():e.handleFavlistsShown())},e.handleFavlistsShown=e.context.authRequired((function(){return e.setState({favlistsShown:!0})}),le.J.favlists),e.handleFavlistHide=function(){e.setState({favlistsShown:!1})},e.handleToggleGuide=function(){e.setState({guideShown:!e.state.guideShown})},e.toggleCatalogModal=function(){e.setState({shownCatalogModal:!e.state.shownCatalogModal})},e.handleVote=function(t){var n=e.props,r=n.article.id;(0,n.updateArticleVote)(r,t)},e.handleLogMoreClick=function(){var t=e.props.zaInfos.options;q.a.trackEvent(Object(kl.a)(e),Object.assign({action:"Click",element_name:"MoreAction"},t&&{id:t}))},e.loadArticleConcernedVoters=function(){var t=e.props,n=t.concernedUpvoters,r=t.article,o=t.loadArticleConcernedVoters;!n&&e.context.currentUser&&o(r.id)},e.handleToggleExpand=function(t){var n=e.props,r=n.onToggleExpand,o=n.getTrackUrl,i=n.article,a=n.ua,c=n.trackPromotionClick;(r&&r(t),t)&&((i.trackUrl?Promise.resolve():o(i.id)).then((function(){return vk(e.props.article,a)})),e.loadArticleConcernedVoters(),c&&c());e.setState({contentExpanded:t})},e.renderPrefix=function(){var t=e.props.article,n=t.labelInfo,r=t.hermesLabel,i=e.state.contentExpanded;return!n&&!r||i?null:Object(o.b)(nS,{labelInfo:n||r})},e.createOpenInAppHandler=function(t){var n=e.props.article.id;return function(e){e.preventDefault(),Object(_.b)(Object(Lv.a)({type:"article",id:n}),{utm_content:t})}},e.handleLike=function(t){return!!e.props.shouldOia&&(e.createOpenInAppHandler("like_article")(t),!0)},e}return Object(vl.a)(n,[{key:"renderLabels",value:function(){if(!this.state.contentExpanded)return null;var e=this.props,t=e.article,n=e.useNewLabels,r=t.annotationDetail,i=t.reviewInfo,a=(i=void 0===i?{}:i).isReviewing,c=i.tips;return a?Object(o.b)("div",{className:"ArticleItem-status",children:c}):Object(o.b)(NC,{useOldLabels:!n,annotationProps:r&&{annotationDetail:r},item:t})}},{key:"renderArticleExtraInfo",value:function(){var e=this.props,t=e.actor,n=e.action,r=e.article,i=r.voteupCount,a=r.id,c=r.type,s=e.concernedUpvoters,u=void 0===s?[]:s,l=t&&t.urlToken;return i?Object(o.b)("div",{className:"ArticleItem-extraInfo",children:Object(o.b)(XS,{id:a,type:c,voteupCount:i,upvotedFollowees:null==u?void 0:u.filter((function(e){return l!==e.urlToken})),too:"voted"===n})},"articleExtraInfo"):null}},{key:"renderMeta",value:function(){var e=function(e){var t=e.title,n=e.id,r=e.created,o=e.updated,i=e.commentCount,a=e.imageUrl,c=e.thumbnail;return{headline:t,url:"".concat(le.j,"/p/").concat(n),datePublished:new Date(1e3*r).toISOString(),dateModified:new Date(1e3*o).toISOString(),commentCount:i,image:a||c}}(this.props.article);return Object.keys(e).map((function(t){return Object(o.b)("meta",{itemProp:t,content:e[t]},t)}))}},{key:"renderSuggestEdit",value:function(){var e=this.props.article,t=e.isNormal,n=void 0===t||t,r=e.suggestEdit,i=(r=void 0===r?{}:r).title,a=r.status,c=r.reason;return a&&!n?Object(o.c)("div",{className:"AnswerItem-statusContent",children:[Object(o.b)("div",{className:"AnswerItem-statusReason",children:c}),Object(o.c)("div",{className:"AnswerItem-statusDescription",children:["作者修改内容通过后,文章会重新显示恢复正常 ",Object(o.b)("a",{target:"_blank",href:"/question/24752645",className:"AnswerItem-statusLink",children:i})]})]}):null}},{key:"render",value:function(){var e=this,t=this.props,n=t.article,r=t.article,i=r.id,a=r.title,c=r.author,s=r.excerpt,u=r.content,l=r.voteupCount,d=r.voting,f=r.type,p=r.created,h=r.updated,b=r.imageUrl,v=r.commentCount,m=r.adminClosedComment,g=r.reviewInfo,O=(g=void 0===g?{}:g).isReviewing,y=g.editType,j=r.annotationDetail,E=r.vessayInfo,C=t.preset,w=t.lastreadTouchable,T=t.itemProp,_=void 0===T?"article":T,S=t.ua,A=t.lessExcerpt,k=t.formatContent,R=t.zaInfos,I=R.expand,x=R.title,N=R.voteUp,D=R.voteDown,P=R.toggleComment,L=R.share,M=R.report,U=R.options,B=R.getCommentAction,z=t.renderOptions,F=t.isSticky,G=t.handleToggleSticky,V=t.trackPromotionClick,H=t.renderActionButtons,q=t.className,W=t.isMobile,Y=t.ecommerce,Q=this.state,Z=Q.positionStatus,J=Q.favlistsShown,X=Q.commentsShown,$=Q.commentsAutoFocus,ee=Q.commentPattern,te=Q.contentExpanded,ne=Q.shownCatalogModal,re=this.context.currentUser,oe="".concat(le.j,"/p/").concat(i),ie=!(O&&"create"===y),ae=re&&re.urlToken===c.urlToken,ce=this.renderSuggestEdit(),se="function"==typeof G,ue=!function(e){return"special-plain"===e}(C)&&Object(o.b)(FE.a,Object.assign({},Ak(C)&&{preset:"plain"},{author:c,className:"ArticleItem-authorInfo"}),"authorInfo"),de=this.renderArticleExtraInfo(),fe=Sk(C)?[ue,de]:[[ue,de],null],pe=Object(gt.a)(fe,2),he=pe[0],be=pe[1],ve=!ce||ae,me=k?k(u||s,n):u||s,ge=ie&&!W&&te&&_m(n,"article"),Oe=Boolean(null==E?void 0:E.enableVideoTranslate),ye=Lm("article",i);return Object(o.c)(Og.c,{className:rl()("ArticleItem",q),onRef:function(t){e.contentItem=t},"data-zop":JSON.stringify({authorName:c.name,itemId:i,title:a,type:"article"}),data:n,link:oe,title:Object(o.c)(o.a,{children:[se&&F&&Object(o.b)(zS,{}),Object(o.b)("a",Object.assign({href:oe,target:"_blank",rel:"noopener noreferrer","data-za-detail-view-element_name":"Title"},x&&{"data-za-detail-view-id":x},{onClick:V,children:a}))]}),meta:he,lastreadTouchable:w,itemProp:_,itemType:"http://schema.org/SocialMediaPosting",itemScope:!0,children:[this.renderMeta(),this.renderLabels(),ve?Object(o.b)(l_,Object.assign({itemProp:"articleBody",data:n,excerpt:k?k(s,n):s,html:me,ecommerce:Y,onToggleExpend:this.handleToggleExpand,prefix:this.renderPrefix(),before:Object(o.c)("div",{children:[be,b&&Object(o.b)(RT,{className:"ArticleItem-image",thumbnail:Object(Gn.imgUrl)(b,"60w"),url:b,alt:a})]}),after:Object(o.b)(i_,{href:oe,created:p,updated:h})},A?{limit:74}:{},{onPositionStatusChange:this.handlePositionStatusChange},kk(n),{zaIds:{expand:I},children:H({componentList:[{name:"vote",component:ie&&!Qs.d.includes(i)&&(W?Object(o.b)(wk,{id:i,type:f,liked:Boolean(d),count:l,disabled:ae,onClick:this.handleLike,handleToggleGuide:this.handleToggleGuide,disableAuth:this.disableAuth},"vote"):Object(o.b)(mT,{type:f,count:l,onVote:this.handleVote,voting:d,isOwner:ae,handleToggleGuide:this.handleToggleGuide,zaIds:{voteUp:N,voteDown:D}},"vote"))},{name:"comment",component:ie&&Object(o.b)("div",{css:Qs.d.includes(i)?{marginLeft:-24}:{},children:Object(o.b)(Lg,{onClick:this.handleCommentsShown,commentsShown:X,commentClosed:m,count:v,positionStatus:Z,zaInfos:{toggleComment:P,getCommentAction:B}},"comment")})},{name:"catalog",component:ge&&Object(o.b)(bm,{html:me,sourceId:n.id,onClick:this.toggleCatalogModal},"catalog")},{name:"share",component:ie&&Object(o.b)(Ig,{id:i,type:"article",url:oe,title:a,authorName:c&&c.name,positionStatus:Z,zaShareId:L},"share")},{name:"favlist",component:ie&&(!re||!re.isOrg)&&Object(o.b)(ug,{onRef:function(t){return e.favButtonRef=t},onClick:this.handleFavButtonClick,label:W?"":"收藏"},"favlist")},{name:"sticky",component:!W&&se&&ae&&lm(re)&&Object(o.b)(yf.c,{preset:"plain",onClick:G,icon:F?Hv:Kv,label:F?"取消置顶":"置顶"},"sticky")},{name:"report",component:ie&&!ae&&!W&&re&&Object(o.b)(Tk.a,{id:i,type:f,zaReportId:M},"report")},{name:"vessay",component:!W&&ae&&Oe&&Object(o.c)(K.a,{as:yf.c,zaAction:"OpenUrl",zaText:"生成视频",zaType:"Button",preset:"plain",onClick:function(){return window.open(ye)},className:"ContentItem-convertVideoButton",extra:{link:{url:ye}},children:[Object(o.b)(Pm,{}),Object(o.b)("span",{children:"生成视频"})]})},{name:"options",component:!W&&ie&&(null==z?void 0:z((function(){return e.contentItem}),U))},{name:"annotation",component:!te&&Object(o.b)(gg,{annotationDetail:j},"annotation")}]})})):this.renderSuggestEdit(),ve&&Object(o.b)(wS,{content:u,type:"article",urlToken:String(i)}),this.disableAuth&&this.state.guideShown&&Object(o.b)(El.a,{redirectUrl:oe,urlScheme:Object(Lv.a)({type:"article",id:i}),buttons:[S.Wechat?{name:"wechat",text:"快速登录",fill:"#fff"}:"zhihu"],onClose:this.handleToggleGuide}),Object(o.b)(zg,{parent:n,commentPattern:ee,shown:X,autoFocus:$,onClose:this.handleCommentsHide}),Object(o.b)(Zm,{id:i,type:"article",shown:J,onClose:this.handleFavlistHide,zaEnabled:!0}),ge&&Object(o.b)(Tm,{shown:ne,html:me,sourceId:n.id,onClose:this.toggleCatalogModal,created:p,updated:h,author:c,zaContent:{type:"Answer",token:String(n.id)}})]})}}]),n}(a.Component);Rk.contextTypes={currentUser:jl.a.object,authRequired:jl.a.func,isMobile:jl.a.bool},Rk.propTypes={preset:jl.a.string,lessExperpt:jl.a.bool,formatContent:jl.a.func,renderOptions:jl.a.func,zaInfos:jl.a.object,trackPromotionClick:jl.a.func,renderActionButtons:jl.a.func},Rk.defaultProps={preset:"primary",zaInfos:{},renderActionButtons:NS};var Ik=Object(Lt.compose)(Object(im.b)((function(e){var t=e.article,n=e.trackCardShow,r=void 0===n||n,o=e.zaInfos,i=(o=void 0===o?{}:o).cardShow;return Object.assign({module:"PostItem",card:{has_image:Boolean(t.thumbnailExtraInfo&&"image"===t.thumbnailExtraInfo.type),has_video:Boolean(t.thumbnailExtraInfo&&"video"===t.thumbnailExtraInfo.type),content:{type:"Post",token:t.id.toString(),upvote_num:t.voteupCount,comment_num:t.commentCount,publish_timestamp:1e3*t.created,parent_token:t.column&&t.column.id,author_member_hash_id:t.author.id,video_id:t.thumbnailExtraInfo&&t.thumbnailExtraInfo.videoId}}},i&&{view:{id:i}},{trackCardShow:r})})),Object(Ot.connect)((function(e,t){var n=t.article;return{ua:e.env.userAgent,ecommerce:Object(Mt.c)(e,{type:"article",urlToken:t.article.id}),shouldOia:Object(z.i)(e),isMobile:Object(z.d)(e),concernedUpvoters:Object(mo.a)(e,{id:n.id})}}),{updateArticleVote:mo.h,getTrackUrl:bk,loadArticleConcernedVoters:mo.d}),st.withRouter,iS)(Rk),xk=n(1118);function Nk(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=td()(e);if(t){var o=td()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $l()(this,n)}}var Dk={top:10,left:20},Pk={top:0,left:0};function Lk(){var e,t=Gl()(navigator.userAgent).Mobile?Pk:Dk,n=t.top,r=t.left,o=window,i=o.innerWidth,a={left:0,top:0,width:i,height:o.innerHeight},c={x:(e=a).left+e.width/2,y:e.top+e.height/2},s=2*(96+r),u=i,l=0;return i<1e3+s?u=i-s:(u=1e3,l=(i-(1e3+s))/2),{x:c.x,y:c.y,imgContainerWidth:u,imgContainerHeight:a.height-2*n,left:l,top:n}}var Mk=function(e){Jl()(n,e);var t=Nk(n);function n(e){var r;return Wl()(this,n),(r=t.call(this,e)).getBoundingClientRect=function(e,t){var n=t.width,r=t.height,o={top:0,left:0,width:0,height:0},i=1;return e.width>e.height?(o.height=r,i=r/e.height,o.width=e.width*i,o.left="-".concat((o.width-n)/2)):e.width<e.height?(o.width=n,i=n/e.width,o.height=e.height*i,o.top="-".concat((o.height-r)/2)):(o.width=n,o.height=r),o},r.getParentNode=function(){for(var e,t=r.props.img.parentNode;t&&"BODY"!==t.nodeName;){if(t.classList.contains("Image-Wrapper-Preview"))return e=t;t=t.parentNode}return e},r.getChildImgNode=function(e){if(e){var t=e.childNodes,n=r.state.index,o=n;return{img:(n>=t.length?t[o=t.length-1]:t[o]).querySelector(".Image-Preview"),index:o}}},r.setImageElAttr=function(){var e=r.state,t=e.width,n=e.transition,o=r.props.images,i=r.getParentNode(),a=r.getChildImgNode(i);if(a&&a.img){var c=a.img.getBoundingClientRect(),s=r.getBoundingClientRect(o[a.index],{width:c.width,height:c.height}),u=r.imgEl.getBoundingClientRect(),l=r.containerClientRect,d=l.left,f=l.top,p={x:u.left+u.width/2-d-s.width/2,y:u.top+u.height/2-f-s.height/2},h=t/s.width;"transition"!==n?(r.setState({transition:""},(function(){r.setState({rect:c,transition:"",width:s.width,height:s.height,translate:p,scale:h,transform:"translate(".concat(p.x,"px ,").concat(p.y,"px) scale(").concat(h,")")})})),setTimeout((function(){r.setState({transition:"transition",translate:null,scale:null,transform:"translate(".concat(c.left-d,"px,").concat(c.top-f,"px)"),opacity:-1})}),20)):r.setState({translate:null,scale:null,opacity:-1,transform:"translate(".concat(c.left-d,"px,").concat(c.top-f,"px)")})}},r.getImageSize=function(e){var t=r.containerClientRect,n=t.imgContainerWidth,o=t.imgContainerHeight,i=e.width,a=e.height,c=!1,s=1;return(e.width>n||e.height>o)&&(e.width>n&&(s=n/e.width,i=e.width*s,a=s*e.height),a>o&&(a*=s=o/a,i*=s),c=!0),r.setState({cursorZoomIn:c}),{width:i,height:a}},r.handleResizeCallback=function(){r.containerClientRect=Lk();var e=r.state.index,t=r.props.images;r.setState(Object.assign({transition:"fixed",transform:""},r.getImageSize(t[e])))},r.handleClick=function(e){var t=r.state.cursorZoomIn,n=e.target;n&&n.classList&&n.classList.contains("ImageGallery-Img")&&t&&r.setState({previewImage:n}),(n.classList.contains("ImageGallery")||n.classList.contains("ImageGallery-Inner"))&&r.setImageElAttr()},r.handleTransEnd=function(){var e=r.state,t=e.translate,n=e.scale,o=r.props.onClose;t&&n||o()},r.handlePreviewImageClose=function(){r.setState({previewImage:null},(function(){lO.hide()}))},r.handleKeyUpCallback=function(e){39===e.keyCode?r.handleCutImage(1):37===e.keyCode&&r.handleCutImage(-1)},r.handleCutImage=function(e){var t=r.state.index+e,n=r.props.images;t<n.length&&t>=0&&r.setState(Object.assign({index:t,transition:"fixed",transform:""},r.getImageSize(n[t])))},r.state={transEnded:!1,translate:null,scale:null,url:null,index:e.index||0,width:0,height:0,rect:null,transition:"transition",previewImage:null,transform:"",cursorZoomIn:!1,opacity:1},r.containerClientRect=Lk(),r}return Ql()(n,[{key:"componentWillMount",value:function(){var e=this.props,t=e.data,n=e.img.getBoundingClientRect();lO.hide();var r=this.containerClientRect,o=r.left,i=r.top,a=this.getBoundingClientRect(t,{width:n.width,height:n.height}),c={left:n.left-o+Number(a.left),top:n.top-i+Number(a.top)};this.setState({rect:a,width:a.width,height:a.height,transform:"translate(".concat(c.left,"px, ").concat(c.top,"px)")})}},{key:"componentDidMount",value:function(){var e=this;setTimeout((function(){e.setState(Object.assign({},e.computeTransition(e.props.index)))}),20),window.addEventListener("keyup",this.handleKeyUpCallback),window.addEventListener("resize",this.handleResizeCallback)}},{key:"componentWillUnmount",value:function(){lO.show(),window.removeEventListener("keyup",this.handleKeyUpCallback),window.removeEventListener("resize",this.handleResizeCallback)}},{key:"computeTransition",value:function(e){var t=this.props.images[e],n=this.containerClientRect,r=n.x,o=n.y,i=n.left,a=n.top,c=this.getImageSize(t).width;if(this.imgEl){var s=this.imgEl.getBoundingClientRect(),u=c/s.width,l={x:r-s.width/2-i,y:o-s.height/2-a};return{translate:l,scale:u,transform:"translate(".concat(l.x,"px ,").concat(l.y,"px) scale(").concat(u,")")}}}},{key:"render",value:function(){var e=this,t=this.props.images,n=this.state,r=n.translate,o=n.index,i=n.width,a=n.height,c=n.transition,s=n.previewImage,u=n.transform,l=n.cursorZoomIn,d=n.opacity,f=this.containerClientRect,p=f.left,h=f.top,b=f.imgContainerWidth,v=f.imgContainerHeight,m=(Gl()(navigator.userAgent).Mobile?Pk:Dk).left,g=t[o];return Object(Md.c)(Rd.a,null,Object(Md.c)("div",{className:rl()("ImageGallery",{"is-active":r}),onClick:this.handleClick},Object(Md.c)("div",{className:"ImageGallery-Content",style:{width:"".concat(b+2*(96+m),"px"),height:"".concat(v,"px"),left:"".concat(p,"px"),top:"".concat(h,"px")}},!s&&t.length>1&&Object(Md.c)("a",{className:rl()("ImageGallery-arrow-left",{"ImageGallery-arrow-disabled":0===o}),style:{left:"".concat(m,"px")},onClick:function(){return e.handleCutImage(-1)}},Object(Md.c)(Iy.a,{fill:"#fff",size:42})),Object(Md.c)("div",{className:"ImageGallery-Inner",ref:function(t){e.scrollNode=t}},Object(Md.c)("img",{ref:function(t){e.imgEl=t},src:Object(Gn.imgUrl)(g.url,"r"),className:rl()("ImageGallery-Img",{"ImageGallery-transition":"transition"===c,"ImageGallery-fixed":"fixed"===c,"ImageGallery-CursorZoomIn":l}),style:{width:i,height:a,transform:u,opacity:d},onTransitionEnd:this.handleTransEnd,alt:"preview","data-rawwidth":g.width,"data-rawheight":g.height,"data-thumbnail":g.thumbnail,"data-original":Object(Gn.imgUrl)(g.url,"r"),"data-actualsrc":Object(Gn.imgUrl)(g.url,"b")})),!s&&t.length>1&&Object(Md.c)("a",{className:rl()("ImageGallery-arrow-right",{"ImageGallery-arrow-disabled":o>=t.length-1}),onClick:function(){return e.handleCutImage(1)},style:{right:"".concat(m,"px")}},Object(Md.c)(Yh.a,{fill:"#fff",size:42}))),!s&&Object(Md.c)("a",{className:"ImageGallery-close",onClick:this.setImageElAttr},Object(Md.c)(Il.a,{fill:"#fff"})),s&&Object(Md.c)(TT.a,{img:s,onClose:this.handlePreviewImageClose})))}}]),n}(a.Component);Mk.propTypes={img:jl.a.object.isRequired,data:jl.a.object.isRequired,onClose:jl.a.func.isRequired};var Uk=Mk;function Bk(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=td()(e);if(t){var o=td()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $l()(this,n)}}var zk=function(e){Jl()(n,e);var t=Bk(n);function n(e){var r;return Wl()(this,n),(r=t.call(this,e)).setImageAttr=function(){var e=r.state,t=e.width,n=e.height;if(!t||!n){var o=r.divEl.getBoundingClientRect();t=t||o.width,n=n||o.width,r.setState({width:t,height:n})}var i=r.getBoundingClientRect({width:t,height:n});r.setState({imageWidth:i.width,imageHeight:i.height,imageTop:i.top,imageLeft:i.left})},r.getBoundingClientRect=function(e){var t=e.width,n=e.height,o=r.props.data,i={top:0,let:0,width:0,height:0},a=1;return o.width>o.height?(i.height=n,a=n/o.height,i.width=o.width*a,i.left="-".concat((i.width-t)/2)):(i.width=t,a=t/o.width,i.height=o.height*a,i.top="-".concat((i.height-n)/2)),i},r.handlePreviewImageOpen=function(e){var t=r.props.onPreviewImageOpen;e.persist(),t&&t(e)||r.setState({previewImage:r.imgWrapper.querySelector("img")})},r.handlePreviewImageClose=function(){r.setState({previewImage:null})},r.state={width:e.width||0,height:e.height||0,imageWidth:0,imageHeight:0,imageTop:0,imageLeft:0,previewImage:null},r}return Ql()(n,[{key:"componentDidMount",value:function(){this.setImageAttr()}},{key:"render",value:function(){var e=this,t=this.state,n=t.width,r=t.height,o=t.previewImage,i=t.imageWidth,a=t.imageHeight,c=t.imageTop,s=t.imageLeft,u=this.props,l=u.data,d=u.images,f=u.index,p=u.surplus,h=u.previewType,b=void 0===h?1:h,v=u.data.isGif,m=u.vague,g=u.previewTransitionType,O=void 0===g?0:g;return Object(Md.c)("div",{onClick:this.handlePreviewImageOpen,className:"Thumbnail-Wrapper",ref:function(t){e.divEl=t},style:{width:n?"".concat(n,"px"):"",height:r?"".concat(r,"px"):""}},Object(Md.c)("span",{ref:function(t){e.imgWrapper=t},className:rl()({"Image-PreviewVague":m})},m?Object(Md.c)(RT,{className:"Image-Preview",url:v?Object(Gn.imgUrl)(l.thumbnail,"xl"):Object(Gn.imgUrl)(l.url,"xl"),width:n,height:r,alt:"cover",thumbnail:v?Object(Gn.imgUrl)(l.thumbnail,"xl"):Object(Gn.imgUrl)(l.url,"xl"),"data-rawwidth":l.width,"data-rawheight":l.height,"data-thumbnail":l.thumbnail,"data-original":Object(Gn.imgUrl)(l.url,"r"),"data-actualsrc":Object(Gn.imgUrl)(l.url,"b")}):Object(Md.c)("img",{className:"Image-Preview",src:v?l.thumbnail:Object(Gn.imgUrl)(l.url,"r"),width:i,height:a,style:{top:"".concat(c,"px"),left:"".concat(s,"px")},alt:"preview","data-rawwidth":l.width,"data-rawheight":l.height,"data-thumbnail":l.thumbnail,"data-original":Object(Gn.imgUrl)(l.url,"r"),"data-actualsrc":Object(Gn.imgUrl)(l.url,"b")})),p>0&&Object(Md.c)("em",{className:"Thumbnail-Surplus-Sign"},"+".concat(p)),v&&Object(Md.c)("em",{className:"Thumbnail-Gif-Sign"},"GIF"),o&&(1===b?Object(Md.c)(Uk,{img:o,data:l,index:f,images:d,onClose:this.handlePreviewImageClose}):Object(Md.c)(TT.a,{img:o,isOriginalUrl:!m,transitionType:O,data:l,onClose:this.handlePreviewImageClose})))}}]),n}(a.Component);zk.propTypes={width:jl.a.number,height:jl.a.number,index:jl.a.number,surplus:jl.a.number,data:jl.a.object,images:jl.a.array,onPreviewImageOpen:jl.a.func};var Fk=n(271),Gk=function(e){return c.a.createElement(xl.a,e,c.a.createElement("path",{d:"M17.917 6.713a.166.166 0 0 1-.274-.142l.252-2.887a.164.164 0 0 1 .02-.065.165.165 0 0 1 .225-.067l1.919 1.037a.167.167 0 0 1 .029.274l-2.171 1.85zm2.893-.257l.13 1.47c0 .014 0 .03-.003.044a.168.168 0 0 1-.195.133l-2.17-.409a.17.17 0 0 1-.118-.087.167.167 0 0 1 .072-.225l2.041-1.059a.166.166 0 0 1 .243.133zm-4.387-.017l-1.75-1.78a.167.167 0 0 1 .058-.272l1.547-.607a.167.167 0 0 1 .227.141l.203 2.387a.167.167 0 0 1-.285.131zm1.76 2.284l1.57 4.292a4.774 4.774 0 0 1-1.65 5.462l-.259.19a5.48 5.48 0 0 1-3.252 1.073c-.355 0-.709-.048-1.059-.117a4.779 4.779 0 0 1-1.658.3 4.89 4.89 0 0 1-3.144-1.139 45.328 45.328 0 0 0-.716-.587c-.498-.399-1.649-1.52-3.516-3.43a1.847 1.847 0 0 1-.225-2.287c.036-.056.077-.11.134-.176a1.749 1.749 0 0 1-.196-2.367c.125-.144.248-.256.375-.344a1.839 1.839 0 0 1 .3-1.595l.085-.106c.3-.335.707-.53 1.15-.556.338-.024.667.08.954.258.036-.06.065-.125.108-.182l.104-.127a1.86 1.86 0 0 1 1.82-.568 1.91 1.91 0 0 1 2.771-.28l.447.393.112-.135c.205-.247.473-.437.775-.547a1.799 1.799 0 0 1 1.385.06 1.8 1.8 0 0 1 .937 1.022l.114.311a1.967 1.967 0 0 1 1.506.066c.48.223.845.62 1.027 1.116zm-1.138 8.855l.26-.19a3.419 3.419 0 0 0 1.18-3.909l-1.572-4.292a.634.634 0 0 0-.904-.333l-.157.09a.796.796 0 0 0-.36.964l.228.64a.428.428 0 0 1-.252.542.499.499 0 0 1-.429-.08l-4.05-3.559a.553.553 0 0 0-.78.051.59.59 0 0 0 .022.803l2.742 2.48a.35.35 0 1 1-.476.514l-2.71-2.45-.038-.037-.734-.663a.513.513 0 0 0-.72.036c-.244.322-.208.721.055.963l3.371 3.106a.35.35 0 0 1-.47.52l-2.97-2.643a.485.485 0 0 0-.687.04.614.614 0 0 0 .05.844l3.028 2.763a.35.35 0 0 1-.467.521l-1.943-1.704a.38.38 0 0 0-.27-.092.375.375 0 0 0-.257.127c-.21.316-.177.672.051.906 1.901 1.958 3.1 3.14 3.56 3.508.207.165.556.402 1.036.704a4.127 4.127 0 0 0 4.663-.17zm-11.76-3.58c1.811 1.851 2.96 2.974 3.417 3.34.166.132.411.333.734.603.607.507 1.33.78 2.068.848a12.302 12.302 0 0 1-1-.69c-.518-.414-1.689-1.565-3.686-3.62a2.038 2.038 0 0 1-.55-1.116l-.435-.373a.428.428 0 0 0-.279-.103l-.033.001a.429.429 0 0 0-.292.147c-.224.337-.187.714.056.963zm.18-3.585a.534.534 0 0 0-.37.182.651.651 0 0 0 .057.9l1.156 1.04c.055-.208.141-.41.264-.6l.034-.05a1.952 1.952 0 0 1-.49-1.11l-.262-.23a.514.514 0 0 0-.39-.132zm.718-1.979a.562.562 0 0 0-.387.186c-.259.342-.219.764.062 1.02l.341.31a1.92 1.92 0 0 1 .383-.673c.074-.083.153-.158.237-.224-.02-.098-.024-.198-.03-.297l-.2-.18a.589.589 0 0 0-.406-.142zm7.102-1.038l-.132.16 1.203 1.056c.092-.169.208-.324.343-.463l-.198-.543a.714.714 0 0 0-1.216-.21z",fillRule:"evenodd"}))};Gk.defaultProps={name:"Clap"};var Vk=Gk;function Hk(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var qk={pin:"updatePinsReaction"},Kk=function(e){Object(ml.a)(n,e);var t=Hk(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleToggleVote=e.context.authRequired((function(t){var n=e.props,r=n.reactioned,o=n.type,i=n.id,a=!r;q.a.trackEvent(t.target,{action:a?"Upvote":"UnUpvote",element:"Button"});var c=qk[o];e.props[c](i,a)}),le.J.vote),e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.reactioned,n=e.count,r=e.className,i=e.disabled;return Object(o.c)(yf.c,{className:rl()("VoteButton","ReactionButton",{"is-active":t},r),onClick:this.handleToggleVote,disabled:i,children:[Object(o.b)(Vk,{size:20,center:!0})," ",Object(hh.formatNumber)(n)]})}}]),n}(a.Component);Kk.contextTypes={authRequired:jl.a.func},Kk.propTypes={type:jl.a.oneOf(_g.a).isRequired,id:jl.a.oneOfType([jl.a.number,jl.a.string]).isRequired,icon:jl.a.string,reactioned:jl.a.bool,count:jl.a.number};var Wk=Object(Ot.connect)(null,{updatePinsReaction:function(e){return function(t,n){var r=n().entities.pins[e],o=r.reactionCount,i=r.virtuals,a=(i=void 0===i?{}:i).reactionType,c="like"===a;return t({id:e,API:{types:yo.REACTION,endpoint:"pins/".concat(e,"/reactions"),method:c?"DELETE":"POST",fetchOptions:{bodyType:"form",body:{type:"like"}}},UPDATE:{request:{pins:Object(Ut.a)({},e,{reactionCount:o+(c?-1:1),virtuals:{reactionType:a?"":"like"}})},failure:{pins:Object(Ut.a)({},e,r)}},NOTIFICATION:{failure:Xr.a}})}}})(Kk);function Yk(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var Qk=function(e){Object(ml.a)(n,e);var t=Yk(n);function n(e){var r;Object(bl.a)(this,n),(r=t.call(this)).openDeleteModal=function(){r.setState({deleteModalShown:!0})},r.closeDeleteModal=function(){r.setState({deleteModalShown:!1})},r.handleFavlistsShown=function(){q.a.trackEvent(r.favButtonRef,{action:"Collect",element:"Button",is_intent:!0}),r.context.authRequired((function(){return r.setState({favlistsShown:!0})}),le.J.favlists)()},r.handleFavlistHide=function(){r.setState({favlistsShown:!1})},r.handlePositionStatusChange=function(e){r.setState({positionStatus:e})},r.handleDeletePin=function(){var e=r.context.authRequired,t=r.props,n=t.pin.id;return e((0,t.deletePin)(n),le.J.deletePin)},r.handleCommentsShown=function(e,t){r.setState(t)},r.handleCommentsHide=function(){r.setState({commentsShown:!1})},r.renderQuoteContents=function(e,t){var n=e.content;return Object(o.b)("blockquote",{className:"PinItem-3lineBlockquote",children:n},t)},r.renderLinkContents=function(e,t,n){var r=e.url,i=e.title,a=e.imageUrl,c=e.subtype;return"text"===n?Object(o.c)("a",{className:rl()("link-text",{"PinItem-contentTitle":!!i,"PinItem-contentUrl":!i}),href:r,target:"_blank",rel:"noopener noreferrer",children:[Object(o.b)(xk.a,{stroke:"#BBC1CC",text:!0,center:!0})," ",i||r]},t):Object(o.c)("a",{className:"link-box",href:r,target:"_blank",rel:"noopener noreferrer",children:[Object(o.c)("span",{className:"content",children:[Object(o.b)("span",{className:rl()("title",{"PinItem-contentTitle":!!i,"PinItem-contentUrl":!i}),children:i||r}),i&&Object(o.c)("span",{children:[(r.match(/^https?:\/\/([^/?#]+)(?:[/?#]|$)/i)||[])[1],c&&Object(o.b)("span",{className:"subtype",children:c})]})]}),a&&Object(o.b)("img",{className:"thumbnail",src:a,alt:"头像"})]},t)},r.renderVideoContents=function(e,t){var n=e.videoId||e.id,i={title:"",thumbnail:e.thumbnail||e.coverInfo&&e.coverInfo.thumbnail,isLens:!0,id:n,isPlayable:!0,url:"https://www.zhihu.com/video/".concat(n)};return Object(o.b)($T.a,{isAppView:r.isAppView,data:i},t)},r.renderOriginPinContents=function(e){if(!e)return null;if(e.isDeleted)return Object(o.b)("div",{className:rl()("PinItem-RichText","PinItem-content-originpin"),children:e.deletedReason});if(e.content&&e.content[0]){var t=r.props.noCollapsed,n=r.state.originPinExpanded,i=e.content.find((function(e){return"text"===e.type}));return Object(o.c)("div",{className:rl()("PinItem-RichText","PinItem-content-originpin"),children:[Object(o.c)("div",{children:[e.author.name,":"]}),i&&Object(o.b)(l_,{html:i.content,noCollapsed:t,expanded:n}),r.renderPinContents(e.content)]})}return null},r.renderPinContents=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=e.filter((function(e){return e.url&&"image"===e.type})),i=[];return Object(o.c)("div",{className:rl()("RichText","ztext","PinItem-remainContentRichText"),children:[e.map((function(e,a){var c=e.type;return"quote"===c?r.renderQuoteContents(e,a):"link"===c?r.renderLinkContents(e,a,t):"video"===c?r.renderVideoContents(e,a):("image"===c&&i.length<4&&e.url&&i.push(Object(o.b)(zk,{data:e,vague:!0,index:i.length,images:n,surplus:n.length>4&&3===i.length?n.length-4:0},a)),null)})),i.length>0&&Object(o.b)("div",{className:"Image-Wrapper-Preview",children:i})]})},r.renderRemainContents=function(){var e=r.props.pin,t=e.id,n=e.created,i=e.updated,a=e.originPin,c=e.content,s="//".concat(le.l,"/pin/").concat(t);return Object(o.c)("div",{children:[r.renderPinContents(c),r.renderOriginPinContents(a),Object(o.b)(i_,{href:s,created:n,updated:i})]})};var i=e.pin,a=e.noCollapsed,c=e.showCommentButton;return r.contentHTML=r.getContentHTML(i),r.state={expanded:a,originPinExpanded:a,commentPattern:c?"fixed":"bottom",commentsShown:!c,commentsAutoFocus:c,deleteModalShown:!1,favlistsShown:!1},r}return Object(vl.a)(n,[{key:"componentWillReceiveProps",value:function(e){this.contentHTML=this.getContentHTML(e.pin)}},{key:"getContentHTML",value:function(e){if(!e||!e.content)return"";var t=e.content,n="";return"text"===t[0].type&&(n=t[0].content),n}},{key:"render",value:function(){var e=this,t=this.props,n=t.pin,r=t.pin,i=r.id,a=r.author,c=r.virtuals,s=(c=void 0===c?{}:c).reactionType,u=r.commentCount,l=r.reactionCount,d=r.adminClosedComment,f=r.reviewingInfo,p=t.preset,h=t.lastreadTouchable,b=t.isSticky,v=t.handleToggleSticky,m=t.noCollapsed,g=t.showFollowAuthorButton,O=t.showCommentButton,y=t.commentInputPosition,j=t.isMobile,E=t.renderOptions,C=this.state,w=C.positionStatus,T=C.expanded,_=C.deleteModalShown,S=C.favlistsShown,A=C.commentsShown,k=C.commentsAutoFocus,R=C.commentPattern,I=this.context.currentUser,x=I&&I.urlToken===a.urlToken,N="plain"===p,D="like"===s,P="function"==typeof v,L="//".concat(le.l,"/pin/").concat(i);return Object(o.c)(Og.c,{data:n,link:L,meta:N||Object(o.b)("div",{children:Object(o.c)("div",{className:"PinItem-author",children:[Object(o.b)(FE.a,{author:a,className:"PinItem-authorInfo",children:(null==f?void 0:f.isReviewing)&&Object(o.b)(Ef.Text,{color:"GBK06A",fontSize:"15px",children:f.tips})},"authorInfo"),g&&!x&&I&&Object(o.b)(Fk.a,{preset:"primary",type:a.type,id:a.urlToken,gender:a.gender,isFollowing:a.isFollowing,onClick:this.handleFollowButtonClick})]})}),className:"PinItem",lastreadTouchable:h,children:[Object(o.c)(l_,{prefix:P&&b&&Object(o.b)(zS,{}),alwaysShowPrefix:!0,data:n,html:this.contentHTML,excerpt:this.contentHTML,noCollapsed:m,expanded:T,onPositionStatusChange:this.handlePositionStatusChange,renderCanExpandExtra:this.renderRemainContents,children:[Object(o.b)(Wk,{reactioned:Boolean(D),count:l,id:i,type:"pin"}),O&&Object(o.b)(Lg,{onClick:this.handleCommentsShown,commentsShown:A,commentClosed:d,count:u,positionStatus:w}),Object(o.b)(Ig,{id:i,type:"pin",authorName:a&&a.name,href:L,positionStatus:w}),(!I||!I.isOrg)&&Object(o.b)(ug,{onRef:function(t){return e.favButtonRef=t},onClick:this.handleFavlistsShown,label:j?"":"收藏"}),!x&&Object(o.b)(Tk.a,{type:"pin",id:i}),!j&&P&&x&&lm(I)&&Object(o.b)(yf.c,{preset:"plain",onClick:v,icon:b?Hv:Kv,label:b?"取消置顶":"置顶"}),x&&Object(o.b)(yf.c,{preset:"plain",onClick:this.openDeleteModal,icon:Il.a,label:"删除"}),E()]}),x&&Object(o.b)(fC,{title:"你确定要删除自己的想法吗?",shown:_,onCancel:this.closeDeleteModal,onSubmit:this.handleDeletePin}),Object(o.b)(zg,{parent:n,commentPattern:R,commentInputPosition:y,shown:A,showPackupButton:O,autoFocus:k,onClose:this.handleCommentsHide}),Object(o.b)(Zm,{id:i,type:"pin",shown:S,onClose:this.handleFavlistHide,zaEnabled:!0})]})}}]),n}(a.Component);Qk.contextTypes={authRequired:jl.a.func,currentUser:jl.a.object},Qk.propTypes={noCollapsed:jl.a.bool,showFollowAuthorButton:jl.a.bool,showCommentButton:jl.a.bool,commentInputPosition:jl.a.oneOf(["top","bottom"])},Qk.defaultProps={noCollapsed:!1,showFollowAuthorButton:!1,showCommentButton:!0,commentInputPosition:"bottom",renderOptions:function(){return[null]}};var Zk=Object(Lt.compose)(Object(im.b)((function(e){var t=e.pin,n=e.trackCardShow,r=void 0===n||n,o=e.zaInfos,i=(o=void 0===o?{}:o).cardShow;return Object.assign({module:"PinItem",card:{content:{type:"Pin",id:String(t.id),author_member_hash_id:t&&t.author.id}}},i&&{view:{id:i}},{trackCardShow:r})})),Object(Ot.connect)((function(e,t){var n=t.pin;return Object.assign({},"string"==typeof(null==n?void 0:n.author)&&{pin:Object.assign({},n,{author:e.entities.users[n.author]})},{isMobile:Object(z.d)(e)})}),{deletePin:function(e){return function(t,n){var r=n().entities.pins[e];return t({API:{types:yo.DELETE,endpoint:"pins/".concat(e),method:"DELETE"},UPDATE:{request:{pins:Object(Ut.a)({},e,{isDelete:!0})},failure:{pins:Object(Ut.a)({},e,r)}}})}}}))(Qk);n(703);var Jk=n(704),Xk=n.n(Jk),$k=n(1097),eR=function(e){var t=e.isLiked,n=e.onClick,r=e.showIcon,i=void 0===r||r,a=Object(_e.a)(e,["isLiked","onClick","showIcon"]);return Object(o.b)(yf.c,Object.assign({preset:"plain",onClick:n,icon:i?DS.a:null,label:t?"取消喜欢":"喜欢"},a))},tR=Object.assign;var nR=function(e){return c.a.createElement(Nm.a,tR({width:"14",height:"16",fill:"none",viewBox:"0 0 14 16"},e),c.a.createElement("path",{fill:"#8590A6",d:"M1 2.666c0-.736.597-1.333 1.334-1.333h9.333c.736 0 1.334.597 1.334 1.333v10.667c0 .736-.598 1.333-1.334 1.333h-1.666a.333.333 0 01-.334-.333v-4A2.333 2.333 0 007.334 8h-6A.333.333 0 011 7.667v-5zm2.667 0a.667.667 0 100 1.334h6.667a.667.667 0 100-1.333H3.667zM3 6c0-.368.299-.667.667-.667H9a.667.667 0 010 1.334H3.667A.667.667 0 013 6zm-2 4.334a1 1 0 011-1h5.333a1 1 0 011 1v3.333a1 1 0 01-1 1H2a1 1 0 01-1-1v-3.333zm5.167 1.377a.333.333 0 010 .578l-2 1.154a.333.333 0 01-.5-.288v-2.31c0-.256.277-.417.5-.288l2 1.154z",fillRule:"evenodd",clipRule:"evenodd"}))};function rR(e,t){var n=e.label,r=e.onClick,i=Object(_e.a)(e,["label","onClick"]);return Object(o.b)(K.a,{zaText:!0,zaType:"Button",zaBlock:"VideoContributeButton",className:"ContentItem-action",children:Object(o.b)(yf.c,Object.assign({ref:t,preset:"plain",onClick:r,icon:nR,label:n},i))})}var oR=Object(a.forwardRef)(rR),iR=Object(a.forwardRef)((function(e,t){var n=e.onClick,r=Object(_e.a)(e,["onClick"]);return Object(o.b)(yf.c,Object.assign({ref:t,preset:"plain",onClick:n,icon:hb.a,label:"设置"},r))})),aR=function(e){var t=e.className,n=e.zvideo,r=e.onEdit,i=e.onToggleVisibility,c=e.onRemove,s=e.onChangeCommentPermission,u=e.togglerProps,l=Object(Ot.useDispatch)(),d=n.id,f=n.commentPermission,p=n.isVisible,h=Object(a.useCallback)(function(){var e=Object(k.a)(A.a.mark((function e(t){var n;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="视频删除后将不可恢复",e.next=3,l(kc(d)).then((function(e){var t=e.payload.message;t&&(n=t)}));case 3:Ch.a.confirm(Object(o.b)(Ef.Text,{textAlign:"center",children:n}),{title:"确定删除视频",text:{ok:"删除视频"}}).then((function(){c(t)}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[l,d,c]);return Object(o.c)(bb.c,{className:rl()("ZVideoSettingMenu",t),itemClassName:"ZVideoSettingMenu-item",toggler:Object(o.b)(iR,Object.assign({},u)),reversed:!0,children:[Object(o.b)(bb.b,{onClick:r,children:"编辑视频"}),Object(o.b)(bb.b,{onClick:i,children:"在视频列表内".concat(p?"隐藏":"显示")}),Object(o.b)(bb.a,{}),Object(o.b)(dm.c,{current:f,target:n,onChange:s}),Object(o.b)(bb.a,{}),Object(o.b)(bb.b,{onClick:h,children:"删除"})]})},cR=function(e){var t=e.status,n=e.questionId,r=e.answerId,i=e.children,a=Object(_e.a)(e,["status","questionId","answerId","children"]);return 2===t?Object(o.b)(Ef.Link,Object.assign({target:"_blank",href:"https://www.zhihu.com/question/".concat(n,"/answer/").concat(r),css:{display:"block",cursor:"pointer"}},a,{children:i})):Object(o.b)(Ef.Box,Object.assign({},a,{children:i}))};var sR=function(e){var t=e.item,n=Object(_e.a)(e,["item"]),r=t.startTime,i=t.endTime,c=t.target,s=t.status,u=t.abnormalReason,l=Math.floor(r/1e3),d=Math.floor(i/1e3),f=c.parentObject,p=f.id,h=f.title,b=c.object.id,v=Object(a.useMemo)((function(){return 0===s?{statusText:"已保存草稿",statusColor:"GBK06A",StatusIcon:Object(o.b)(Yh.a,{}),titleColor:"GBK06A"}:1===s?{statusText:"发布中...",statusColor:"GBK06A",titleColor:"GBK06A"}:2===s?"审核中"===u?{statusText:"审核中",statusColor:"GBL05A",StatusIcon:Object(o.b)(Yh.a,{}),titleColor:"GBK06A"}:{statusText:"已投稿",statusColor:"GBL01A",StatusIcon:Object(o.b)(Yh.a,{}),titleColor:"GBK03A"}:3===s?{statusText:"发布失败",statusColor:"GRD03A",StatusIcon:Object(o.b)(Rb.a,{size:12,css:{marginLeft:5}}),titleColor:"GBK06A",hasAbnormalInfo:!0}:void 0}),[s,u]),m=v.statusText,g=v.statusColor,O=v.StatusIcon,y=void 0===O?null:O,j=v.titleColor,E=v.hasAbnormalInfo;return Object(o.c)(cR,Object.assign({py:"20px",css:function(e){return Object.assign({},0===s&&{cursor:"pointer"},Object(Et.c)({borderTop:"1px solid ".concat(e.colors.GBK09A)}))},status:s,questionId:p,answerId:b},n,{children:[Object(o.c)(Ef.Flex,{color:g,alignItems:"center",mb:"8px",fontSize:"12px",children:[Object(o.b)(Ef.Text,{children:"".concat(Hj(l)," - ").concat(Hj(d))}),Object(o.b)(Ef.Text,{ml:"auto",fontWeight:"bold",children:m}),y]}),Object(o.b)(Ef.Text,{color:j,fontSize:"14px",children:h}),E&&Object(o.b)(Ef.Text,{p:"8px",mt:"8px",color:"GBK03A",fontSize:"14px",css:function(e){return{borderRadius:2,backgroundColor:e.colorMod(e.colors.GRD03A).alpha(.08)}},children:u})]}))},uR={up:1,neutral:0,down:-1};function lR(e){var t,r=Object(Ot.useDispatch)(),c=e.className,s=e.zvideo,u=e.author,l=e.commentsShown,d=void 0!==l&&l,f=e.onCommentButtonClick,p=void 0===f?Am.a:f,h=e.renderOptions,b=e.renderActionButtons,v=e.enableContribute,m=void 0!==v&&v,g=s.id,O=s.title,y=s.description,j=s.voting,E=s.voteCount,C=s.voteupCount,w=s.commentCount,T=s.isLiked,_=s.isFavorited,S=s.contribute,A=s.video,k=s.video,R=(k=void 0===k?{}:k).duration,I=void 0===R?0:R,x=Object(B.j)(u),N=Object(z.p)(),D=Object(a.useMemo)((function(){return parseInt(1e3*I)}),[I]),P=Object(a.useMemo)((function(){return{id:g,video:A}}),[g,A]),L=Object(Bn.c)((function(){return n.e(9).then(n.bind(null,1361))})),M=Object(wc.n)(g),U=Object(a.useState)(!1),F=Object(gt.a)(U,2),G=F[0],V=F[1],H=Object(wc.m)(g).answer,W=(H=void 0===H?{}:H).canContribute,Y=void 0!==W&&W,Q=Boolean((null==S||null===(t=S.contributeList)||void 0===t?void 0:t.length)||(null==S?void 0:S.unfinishedCount)),Z=m&&!N&&x&&Q,J=!N&&x&&Y&&!Q,X=Object(Xj.a)("zvideo_toolbar:should_hide_contribution_tooltip"),ee=Object(gt.a)(X,2),te=ee[0],ne=ee[1],re=Object(a.useRef)();Object(Bn.g)((function(){return ne(!0)}),!te&&J?5e3:null);var oe=Object(a.useCallback)((function(){V(!0),r(Object(wc.g)(g,"edit"))}),[g,r]),ie=Object(a.useCallback)((function(){return r(Object(wc.f)({zvideoId:g,target:"answer",duration:D}))}),[r,g,D]),ae=Object(a.useCallback)((function(e){return r(function(e,t){return function(n,r){var o={API:{types:Tc.VOTE,method:"POST",endpoint:"zvideos/".concat(e,"/voters"),body:{voting:t},fetchOptions:{zsSignature:!0}}},i=r().entities.zvideos[e];if(i){var a=1===t?1:1===i.voting?-1:0;o=Object.assign({},o,{UPDATE:{success:{zvideos:Object(Ut.a)({},e,{voting:t,voteupCount:i.voteupCount+a})}}})}return n(o)}}(g,uR[e]))}),[g,r]),ce=Object(a.useCallback)((function(e){var t=!T;r(function(e,t){return function(n,r){var o={API:{types:Tc.LIKE,method:t?"POST":"DELETE",endpoint:"zvideos/".concat(e,"/likers"),fetchOptions:{zsSignature:!0}}},i=r().entities.zvideos[e];return i&&(o=Object.assign({},o,{UPDATE:{success:{zvideos:Object(Ut.a)({},e,{isLiked:t,likedCount:i.likedCount+t?1:0})}}})),n(o)}}(g,t));var n=t?"Like":"UnLike";q.a.trackEvent(e.target,{id:7448,action:n})}),[g,r,T]),se=Object(a.useState)(!1),ue=Object(gt.a)(se,2),le=ue[0],de=ue[1],fe=Object(a.useCallback)((function(e){de(!0),q.a.trackEvent(e.target,{id:8213,action:"Collect",is_intent:!_})}),[_]),pe=Object(a.useCallback)((function(){de(!1)}),[]),he=Object(a.useCallback)((function(e,t){r(function(e,t){return function(n,r){var o,i={API:{types:Tc.CHANGE_COMMENT_PERMISSION,method:"PUT",endpoint:"zvideos/".concat(e,"/comment_permission"),body:Object($.decamelizeKeys)({commentPermission:t}),fetchOptions:{zsSignature:!0}}};return(null===(o=r().entities.zvideos)||void 0===o?void 0:o[e])&&(i=Object.assign({},i,{UPDATE:{success:{zvideos:Object(Ut.a)({},e,{commentPermission:t})}}})),n(i)}}(g,t))}),[g,r]),be=Object(a.useCallback)((function(){r(function(e){return function(t,n){var r=n().entities.zvideos[e],o=!r.isVisible,i={API:{types:Tc.TOGGLE_VISIBLE_STATUS,method:"PUT",endpoint:"zvideos/".concat(e,"/is_visible"),body:Object($.decamelizeKeys)({isVisible:o}),fetchOptions:{zsSignature:!0}}};return r&&(i=Object.assign({},i,{UPDATE:{success:{zvideos:Object(Ut.a)({},e,{isVisible:o})}}})),t(i)}}(g))}),[g,r]),ve=Object(a.useCallback)((function(){r(function(e){return{API:{types:Tc.REMOVE,method:"DELETE",endpoint:"zvideos/".concat(e),fetchOptions:{zsSignature:!0}}}}(g)).then((function(){var e="https://www.zhihu.com/people/".concat(u.urlToken,"/zvideos");window.location.href=e}))}),[g,u,r]),me=Object(a.useState)(null),ge=Object(gt.a)(me,2),Oe=ge[0],ye=ge[1],je=Object(a.useState)(!1),Ee=Object(gt.a)(je,2),Ce=Ee[0],we=Ee[1],Te=Object(a.useState)(!1),_e=Object(gt.a)(Te,2),Se=_e[0],Ae=_e[1];Object(a.useEffect)((function(){Ce&&!Oe&&r(Lc(g)).then((function(e){var t=e.payload;ye(t)}))}),[g,Ce,Oe,r]),Object(a.useEffect)((function(){x&&!N&&m&&ie()}),[x,ie,N,m]);var ke=Object(a.useCallback)((function(){Ch.a.confirm(Object(o.b)(Ef.Text,{textAlign:"center",children:"删除后无法恢复,是否确定要删除这篇草稿"}),{title:"删除草稿"}).then((function(){r(function(e){return{API:{types:Tc.REMOVE_DRAFT,endpoint:"zvideos/drafts/".concat(e),method:"DELETE"}}}(g)).then((function(){ye(null),we(!1)}))}))}),[g,r]),Re=Object(a.useCallback)((function(e){r(Uc(g,e)).then((function(){r(Object(wc.j)(g)),e.clubId&&r(zc(g,e.clubId));var t="https://www.zhihu.com/zvideo/".concat(g);window.location.href=t}))}),[g,r]),Ie=Object(a.useState)(!1),xe=Object(gt.a)(Ie,2),Ne=xe[0],De=xe[1],Pe=b({componentList:[{name:"favlist",component:Object(o.b)(ug,{onClick:fe,label:"收藏",showIcon:!N},"favlist")},{name:"like",component:Object(o.b)(eR,{isLiked:T,onClick:ce,showIcon:!N},"like")},{name:"report",component:!x&&Object(o.b)(Tk.a,{id:g,type:"zvideo",onModalShown:De},"report")}]}).filter(Boolean),Le=Object(a.useMemo)((function(){return"1328062627923550208"===g||"zhi-hu-zheng-wu"===u.urlToken}),[g,u.urlToken]);return Object(o.c)(o.a,{children:[Object(o.c)(Og.a,{className:rl()("ZVideoToolbar",c),children:[!Le&&Object(o.b)(mT,{type:"zvideo",count:C||E,voting:j,onVote:ae,isOwner:x,zaIds:{voteUp:6599,voteDown:6600}}),Object(o.b)(Lg,{onClick:p,commentsShown:d,count:w,positionStatus:"normal"}),Object(o.b)(Ig,{id:g,type:"zvideo",url:"https://www.zhihu.com/zvideo/".concat(g),title:O,authorName:u.name,positionStatus:"normal"}),N?Object(o.c)(bb.c,{preventCloseOnTarget:!0,globalClose:!Ne,menuContainerClassName:"ZVideoToolbar-menuContainer",toggler:Object(o.b)(yf.c,{preset:"plain",icon:cv.a,"aria-label":"更多"}),children:[Pe.map((function(e){return Object(o.b)(bb.b,{className:"ZVideoToolbar-menuItem",children:e},e.key)})),h()]}):[].concat(Object(i.a)(Pe),Object(i.a)(h())),Z&&Object(o.b)(oR,{label:"全部投稿",onClick:function(){r(Object(wc.g)(g)),Ae(!0)}}),J&&Object(o.c)(o.a,{children:[Object(o.b)(oR,{ref:re,label:"添加投稿",onClick:oe}),Object(o.b)(Lh.a,{placement:"top",isOpen:!te,target:re.current,children:"投稿到问题,让更多人看到你的视频"})]}),x&&Object(o.b)(aR,Object.assign({zvideo:s,onEdit:function(){return we(!0)},onToggleVisibility:be,onChangeCommentPermission:he,onRemove:ve},N&&{togglerProps:{label:null}}))]}),x&&Object(o.b)(Wh.b,{className:"ZVideoToolbar-videoFormModal",title:"编辑视频",size:"fullPage",onClose:function(){ye(null),we(!1),r(Sc(g))},css:{width:"734px"},children:Ce&&Oe&&Object(o.b)(eE,{defaultVideo:Oe,onRemove:ke,onSubmit:Re,isEditing:!0})}),Object(o.b)(Zm,{id:g,type:"zvideo",shown:le,onClose:pe,zaEnabled:!0}),m&&!N&&x&&Object(o.c)(o.a,{children:[Object(o.b)(Wh.b,{title:Object(o.c)(Ef.Flex,{px:"24px",justifyContent:"space-between",children:[Object(o.b)(Ef.Text,{fontSize:"24px",color:"GBK02A",children:"全部视频回答投稿"}),Y&&Object(o.b)("button",{css:function(e){return{width:90,height:34,border:"none",borderRadius:3,fontSize:14,fontWeight:"normal",color:e.colors.GBL01A,backgroundColor:e.colorMod(e.colors.GBL01A).alpha(.08)}},onClick:function(){oe(),Ae(!1)},children:"添加投稿"})]}),css:function(e){return{width:536,height:554,backgroundColor:e.colors.GBK99A,".Modal-title":{marginTop:24},".Modal-inner::-webkit-scrollbar":{display:"none"}}},onClose:function(){return Ae(!1)},children:Se&&M.map((function(e){return Object(o.b)(sR,Object.assign({item:e},0===e.status&&{onClick:function(){oe(),r(Object(wc.k)(e.id)),Ae(!1)}}),e.id)}))}),Boolean(L)&&Object(o.b)(K.b,{block:"Contribution",children:Object(o.b)(L,{show:G,defaultVideo:P,title:O,description:y,duration:D,onClose:function(){ie(),r(Sc(g)),V(!1)},shouldPublish:!0})})]})]})}lR.defaultProps={renderOptions:function(){return[null]},renderActionButtons:NS};var dR=lR,fR=function(e){return"plain"===e||"special-plain"===e},pR=fR,hR=function(e,t,n){var r=Object(a.useMemo)((function(){var t=!function(e){return"special-plain"===e}(e)&&Object(o.b)(FE.a,Object.assign({},pR(e)&&{preset:"plain"},{author:n}),"authorInfo");return fR(e)?[t,null]:[[t,null],null]}),[e,n]),i=Object(gt.a)(r,2);return[i[0],i[1]]};function bR(e){var t,n,r=e.zvideo,i=e.zvideo,c=i.id,s=i.description,u=void 0===s?"":s,l=i.title,d=i.author,f=i.isVisible,p=e.lastreadTouchable,h=e.preset,b=void 0===h?"primary":h,v=e.onToggleExpand,m=e.renderOptions,g=e.couldShowHiddenSign,O=e.renderActionButtons;r.thumbnailExtraInfo&&(t=r.thumbnailExtraInfo.videoId,n=r.thumbnailExtraInfo.url),r.video&&(t=r.video.videoId,n=r.video.thumbnail);var y=Object(Ot.useSelector)((function(e){return Xk()(d)?e.entities.users[d]:d})),j=Object(B.j)(y),E=Object(a.useState)(!1),C=Object(gt.a)(E,2),w=C[0],T=C[1],_=Object(a.useState)({commentsShown:!1,commentsAutoFocus:!0,commentPattern:"fixed"}),S=Object(gt.a)(_,2),A=S[0],k=S[1],R=hR(b,w,y),I=Object(gt.a)(R,1)[0],x=j&&!f&&g,N="https://www.zhihu.com/zvideo/".concat(c);return Object(o.c)(Og.c,{className:"ZVideoItem",data:r,title:Object(o.c)(o.a,{children:[x&&Object(o.c)("span",{className:"ZVideoItem-hiddenSign",children:[Object(o.b)($k.a,{text:!0,center:!0}),"隐藏"]}),Object(o.b)("a",{href:N,target:"_blank",rel:"noopener noreferrer",children:l})]}),link:N,meta:I,expandedHeight:0,lastreadTouchable:p,"data-zop":JSON.stringify({authorName:null==y?void 0:y.name,itemId:c,title:l,type:"zvideo"}),children:[j&&(r.isReviewing||r.isUpdateReviewing)&&Object(o.b)(ek,{}),w&&t&&Object(o.b)("div",{className:"ZVideoItem-video",children:Object(o.b)("iframe",{className:"ZVideoItem-player",src:"https://www.zhihu.com/video/".concat(t),allowFullScreen:!0})}),Object(o.b)(l_,{excerpt:Ub(u),html:u,cover:n,hasVideo:!0,truncateDisabled:!0,allowCollapseWithEmptyExcerpt:!0,expanded:w,onToggleExpend:function(e){T(e),v&&v(e)},children:Object(o.b)(dR,{className:"ZVideoItem-toolbar",zvideo:r,author:y,commentsShown:A.commentsShown,onCommentButtonClick:function(e,t){return k(t)},renderOptions:m,renderActionButtons:O})}),Object(o.b)(zg,{className:"ZVideoItem-comment",containerClassName:"ZVideoItem-commentContainer",parent:r,shown:A.commentsShown,commentPattern:A.commentPattern,autoFocus:A.autoFocus,onClose:function(){return k(Object.assign({},A,{commentsShown:!1}))},commentInputPosition:"bottom",showPackupButton:!0})]})}bR.defaultProps={renderOptions:function(){return[null]}};var vR=bR,mR=function(e){var t=e.columnId,n=e.contentType,r=e.contentId,i=Object(Ot.useSelector)((function(e){return e.column[t]})),a=Object(Ot.useDispatch)(),c=i.pinnedItems.some((function(e){return nu()(e,{schema:n,id:r})}));return Object(o.b)(Ef.Box,{as:bb.b,onClick:function(){return a(function(e){var t=e.columnId,n=e.contentId,r=e.contentType,o=e.toPin;return{columnId:t,contentId:n,contentType:r,toPin:o,API:{types:au.TOGGLE_PINNED_ITEM,endpoint:"/columns/".concat(t,"/pinned-items"),method:o?"POST":"DELETE",body:{type:r,id:n}}}}({contentId:r,contentType:n,columnId:t,toPin:!c}))},lineHeight:"40px",children:c?"取消置顶":"置顶"})},gR=function(e){var t=e.columnId,n=e.contentType,r=e.contentId,i=Object(Ot.useDispatch)();return Object(o.b)(Ef.Box,{as:bb.b,onClick:function(){return i(function(e){var t=e.columnId,n=e.contentType,r=e.contentId;return{columnId:t,contentType:n,contentId:r,API:{endpoint:"/columns/".concat(t,"/items"),types:au.REMOVE_COLUMN_COLLECT,method:"DELETE",body:{type:n,id:r}}}}({columnId:t,contentType:n,contentId:r}))},lineHeight:"40px",children:"取消收录"})},OR=function(e){var t=e.columnId,n=e.contentType,r=e.contentId,i=Object(Ot.useSelector)((function(e){return e.entities.columns[t]})),a=Object(Ot.useSelector)((function(e){return Object(B.g)(e,i.author)})),c=Object(z.p)(),s={columnId:t,contentId:r,contentType:n};if(a){if("answer"===n)return{renderExtraOptions:function(){return[Object(o.b)(mR,Object.assign({},s),"pinned"),Object(o.b)(gR,Object.assign({},s),"toggle_collect")]}};if(["article","pin"].includes(n)||"zvideo"===n&&!c){var u=Object(o.c)(bb.c,{toggler:Object(o.b)(yf.c,{preset:"plain",className:"OptionsButton",icon:cv.a,"aria-label":"更多"}),children:[Object(o.b)(mR,Object.assign({},s)),Object(o.b)(gR,Object.assign({},s))]},"options");return["article","pin"].includes(n)?{renderOptions:function(){return u}}:{renderOptions:function(){return[u]}}}if("zvideo"===n&&c)return{renderOptions:function(){return Object(o.c)(o.a,{children:[Object(o.b)(mR,Object.assign({},s)),Object(o.b)(gR,Object.assign({},s))]})}}}return{}},yR=Object(st.withRouter)((function(e){var t,n=e.item,r=e.router.params.id,i=n.type,c=n.id,s=function(e){var t=Object(a.useState)(!1),n=Object(gt.a)(t,2),r=n[0],o=n[1];return[function(e){o(e)},Object(a.useCallback)((function(t){switch(e){case"answer":case"article":case"zvideo":return{preset:t?"plain":"special-plain"};default:return{}}}),[e])(r)]}(i),u=Object(gt.a)(s,2),l=u[0],d=u[1],f=OR({columnId:r,contentType:i,contentId:c});switch(i){case"answer":t=Object(o.b)(pk,Object.assign({onToggleExpand:l,answer:n},f,d));break;case"article":t=Object(o.b)(Ik,Object.assign({onToggleExpand:l,article:n},f,d));break;case"pin":t=Object(o.b)(Zk,Object.assign({pin:n},f));break;case"zvideo":t=Object(o.b)(vR,Object.assign({onToggleExpand:l,zvideo:n},f,d));break;default:t=null}return t?Object(o.b)(Ef.Box,{css:function(e){return{padding:"16px 20px",borderBottom:"1px solid ".concat(e.colors.GBK10A),width:"694px",maxWidth:"100vw",".RichContent-actions":{width:"initial","@media screen and (min-width: 690px)":{marginBottom:0}},".RichContent.is-collapsed .RichContent-inner":{fontSize:"15px"}}},children:t}):null})),jR=function(e){var t=e.schemas,n=e.onLoad,r=e.isLoading,i=e.isDrained,a=Object(Ot.useSelector)((function(e){return e.entities})),c=t.map((function(e){var t,n=e.schema,r=e.id;return null===(t=a["".concat(n,"s")])||void 0===t?void 0:t[r]}));return Object(o.b)(Ef.Flex,{as:zv,css:{width:"694px",boxSizing:"content-box",maxWidth:"100vw",margin:"10px auto 0"},children:Object(o.b)(Bv.b,{onLoad:n,isLoading:r,placeholder:Object(o.b)(Bv.a,{className:"List-item"}),isDrained:i,children:c.map((function(e){return Object(o.b)(yR,{item:e},"".concat(e.type,"_").concat(e.id))}))})})};jR.propTypes={schemas:jl.a.array.isRequired,isLoading:jl.a.bool,isDrained:jl.a.bool,onLoad:jl.a.func};var ER=jR,CR=function(e){var t=e.schemas,n=void 0===t?[]:t,r=Object(Ot.useSelector)((function(e){return e.entities})),i=n.map((function(e){var t,n=e.schema,o=e.id;return null===(t=r["".concat(n,"s")])||void 0===t?void 0:t[o]}));return n.length?Object(o.c)(Ef.Box,{as:zv,css:{width:"694px",boxSizing:"content-box",maxWidth:"100vw",margin:"10px auto 0"},children:[Object(o.b)(Fv,{children:"置顶内容"}),i.map((function(e){return Object(o.b)(yR,{item:e},"".concat(e.type,"_").concat(e.id))}))]}):null},wR=function(e){return c.a.createElement(xl.a,e,c.a.createElement("path",{d:"M5.171 4H18.83a1.5 1.5 0 0 1 1.455 1.136l2.597 10.386a4 4 0 0 1 .119.97V19s0 2-2.002 2H3c-2 0-2-2-2-2v-2.508a4 4 0 0 1 .12-.97L3.715 5.136A1.5 1.5 0 0 1 5.171 4zm1.074 2a1 1 0 0 0-.97.761l-2.123 8.62a.5.5 0 0 0 .486.619h4.717a1 1 0 0 1 .892.548C9.906 17.85 10.824 18.5 12 18.5c1.176 0 2.094-.65 2.753-1.952a1 1 0 0 1 .892-.548h4.717a.5.5 0 0 0 .486-.62l-2.122-8.619A1 1 0 0 0 17.755 6H6.245zM8 9c0-.552.453-1 .997-1h6.006c.55 0 .997.444.997 1 0 .552-.453 1-.997 1H8.997A.996.996 0 0 1 8 9zm-1.5 4c0-.552.445-1 .996-1h9.008c.55 0 .996.444.996 1 0 .552-.445 1-.996 1H7.496a.995.995 0 0 1-.996-1z"}))};wR.defaultProps={name:"Deliver"};var TR=wR,_R=function(e){var t=e.columnId,n=Object(Pb.a)(),r=Object(Ot.useDispatch)();return Object(o.b)(yf.c,{preset:yf.b.Plain,onClick:function(){n.confirm("确认要删除专栏?",{title:"删除专栏"}).then((function(){var e;r((e=t,function(t){return t({API:{root:Qs.c,types:au.REMOVE,endpoint:"/columns/".concat(e),method:"DELETE"},NOTIFICATION:{success:"删除专栏成功",fail:"删除专栏失败"}})})).then((function(){location.href="https://zhuanlan.zhihu.com"}))}))},children:"删除专栏"})},SR=function(e){var t=e.onConfirm,n=e.style,r=e.columnId,i=Object(Pb.a)(),a=Object(Ot.useDispatch)();return Object(o.b)(yf.c,{preset:yf.b.Plain,style:n,onClick:function(){i.confirm(" ",{title:"确定取消关注专栏?"}).then((function(){var e;a((e=r,function(t){return t({API:{root:Qs.c,types:au.UNSUBSCRIBE,endpoint:"/columns/".concat(e,"/followers"),method:"DELETE"}})})).then((function(){t()}))}))},children:"取消关注专栏"})},AR=function(e,t){var n=Object(a.useState)(!1),r=Object(gt.a)(n,2),i=r[0],c=r[1],s=Object(a.useState)(t),u=Object(gt.a)(s,2),l=u[0],d=u[1],f=Object(Ot.useSelector)((function(t){return t.entities.columns[e]})),p=Object(B.j)(f.author),h=function(){d(!1)},b=Object(a.useMemo)((function(){return p?[Object(o.b)(_R,{columnId:e},"delete")]:[Object(o.b)(Tk.a,{type:"column",id:e,onModalShown:c},"report"),Object(o.b)(SR,{style:{display:l?"":"none"},columnId:e,onConfirm:h},"unsubscribe")]}),[p,e,l]);return Object(o.b)(Ef.Box,{ml:"17px",height:"24px",children:Object(o.b)(bb.c,{preventCloseOnTarget:!0,globalClose:!i,toggler:Object(o.b)(yf.c,{preset:yf.b.Plain,children:Object(o.b)(cv.a,{})}),children:b.map((function(e){return Object(o.b)(bb.b,{tag:"div",style:{lineHeight:"40px"},children:e},e.key)}))})})},kR={answer:"回答",article:"文章",pin:"想法",zvideo:"视频"},RR=[{key:"answer",name:kR.answer},{key:"article",name:kR.article},{key:"zvideo",name:kR.zvideo}],IR=n(365),xR=function(e){var t=e.children,n=e.clamp,r=void 0===n?1:n;return Object(o.b)(Ef.Heading,{as:"h6",color:"GBK03A",fontSize:"15px",fontWeight:"bold",lineHeight:"22px",css:Object(Et.d)(r),children:t})},NR=function(e){var t=e.hasTitle,n=e.children;return Object(o.b)(Ef.Text,{color:"GBK03A",fontSize:"15px",lineHeight:"22px",mt:t?"8px":0,css:Object.assign({},Object(Et.d)(t?2:3),{wordBreak:"break-all"}),children:n})};function DR(e){var t=e.item,n=e.collected,r=e.onCollectClick,i=Object(_e.a)(e,["item","collected","onCollectClick"]),a=t.title,c=t.text,s=t.subText,u=Boolean(a);return Object(o.c)(Ef.Flex,Object.assign({as:"a",padding:"14px 16px",ml:"16px",mr:"16px",css:function(e){return Object.assign({borderRadius:"8px",border:"1px solid ".concat(n?e.colors.GBK10A:e.colors.GBK09A)},n&&{background:e.colors.GBK10A,overflow:"hidden"},{":active":{opacity:.6}})}},i,{onClick:function(e){return r(e,t)},children:[Object(o.c)(Ef.Box,{flex:"1",children:[u&&Object(o.b)(xR,{clamp:c?1:2,children:a}),c&&Object(o.b)(NR,{hasTitle:u,children:c}),Boolean(!u&&!c)&&Object(o.b)(NR,{children:" "}),Object(o.b)(Ef.Text,{color:"GBK06A",fontSize:"14px",lineHeight:"15px",mt:"8px",children:s})]}),Object(o.b)(Ef.Button,{bg:"transparent",width:"53px",textAlign:"right",padding:0,css:{flexShrink:0},children:Object(o.c)(Ef.Text,{color:n?"GBK06A":"GBL01A",fontSize:"15px",fontWeight:"bold",lineHeight:"18px",children:[n?"已":"","收录"]})})]}))}var PR={answer:"Answer",article:"Post",pin:"Pin",zvideo:"Zvideo"};function LR(e){var t=e.contentName,n=e.columnId,r=e.onCollectChange,i=e.enableCardShow,c=void 0===i||i,s=Object(_e.a)(e,["contentName","columnId","onCollectChange","enableCardShow"]),u=Object(Ot.useDispatch)(),l=Object(Ct.b)(),d=Object(Bn.b)((function(e,o){var i=o.contentType,a=o.urlToken;u(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r,o){var i,a=Xu(t),c=null===(i=Ju(o(),e))||void 0===i?void 0:i[a],s=c?"DELETE":"POST";return r(Object.assign({meta:{columnId:e,contentKey:a,optimisticCollected:!c},API:{endpoint:"/columns/".concat(e,"/items"),types:Zu.TOGGLE_COLUMN_COLLECT,method:s,body:t}},!1===n&&{NOTIFICATION:!1}))}}(n,{type:i,id:a},!l.isZhihu)).then((function(e){var t=e.meta;null==r||r(o,null==t?void 0:t.optimisticCollected)})).catch(l.Zhihu?IR.a:Am.a),q.a.trackEvent(e.target,{id:8171,action:"Click"},{button:{text:t}})})),f=Object(Ot.useSelector)((function(e){return Ju(e,n)})),p=s.item,h=p.contentType,b=p.urlToken,v=Object(a.useMemo)((function(){return Xu({type:h,id:b})}),[h,b]),m=Boolean(null==f?void 0:f[v]),g=Object(a.useMemo)((function(){return{content:{type:PR[h]||"Unknown",token:String(b)},extra:{button:{text:t}},view:{id:8170}}}),[h,b,t]);return Object(o.b)(im.a,Object.assign({},g,{module:"Content",trackCardShow:c,children:Object(o.b)(DR,Object.assign({},s,{collected:m,onCollectClick:d}))}))}var MR=n(194),UR=n(519),BR=n(705),zR=n.n(BR),FR=n(706),GR=n.n(FR);function VR(e){var t=e.contentName,n=Object(MR.b)();return Object(o.c)(UR.d,{css:{paddingTop:"100px"},height:"auto",children:[Object(o.b)("img",{src:n.isDarkMode?GR.a:zR.a,width:"170",height:"106",alt:""}),Object(o.c)(Ef.Text,{mt:"26px",fontSize:"15px",lineHeight:"21px",fontWeight:"bold",css:function(e){return{color:e.colorMod(e.colors.GBL05A).alpha(.8)}},children:["没有可收录的",t||"内容"]})]})}var HR={isFetching:!1,isDrained:!1,items:[]},qR=Object(st.withRouter)((function(e){var t=e.activeKey,n=e.router.params.id,r=Object(Ot.useSelector)(B.b).id,i=Object(Ot.useSelector)((function(e){var n;return null===(n=e.people.creationsFeed)||void 0===n?void 0:n[t]}))||HR,c=i.isDrained,s=i.isFetching,u=i.items,l=Object(Ot.useDispatch)();return Object(a.useEffect)((function(){0===u.length&&l(Object(On.c)(r,{type:t,columnId:n}))}),[t,l,r,u.length,n]),Object(o.b)(Ef.Box,{css:{height:"calc(100% - 54px)",">div:last-child":{height:"100%",overflowY:"auto"}},children:c&&0===u.length?Object(o.b)(VR,{contentName:kR[t]}):Object(o.b)(Bv.b,{isDrained:c,isLoading:s,onLoad:function(){0!==u.length&&l(Object(On.c)(r,{type:t,columnId:n}))},getContainer:function(e){return e},children:u.map((function(e){var t=e.contentType,r=e.urlToken;return Object(o.b)(LR,{mb:"16px",contentName:kR[t],columnId:n,item:e},"".concat(t,".").concat(r))}))})})})),KR=Object(Lt.compose)(Object(rb.a)(null),st.withRouter)((function(e){var t=e.router,n=t.params.id,r=t.location,i=r.query,c=r.pathname,s=Object(a.useState)(!1),u=Object(gt.a)(s,2),l=u[0],d=u[1],f=Object(a.useState)("answer"),p=Object(gt.a)(f,2),h=p[0],b=p[1],v=Object(Ot.useDispatch)();return Object(a.useEffect)((function(){if(i.with_collected){d(!0);var e=ei()(i,["with_collected"]);t.push({pathname:c,query:e})}}),[c,i,t]),Object(o.c)(o.a,{children:[Object(o.b)(yf.c,{color:yf.a.Blue,preset:yf.b.Primary,onClick:function(){return d(!0)},children:"收录内容"}),Object(o.b)(Pt.b,{title:"选择要收录的内容",onClose:function(){d(!1),b("answer"),v(function(e,t){return{id:e,API:Object.assign({types:au.REFRESH_ITEMS,endpoint:"/columns/".concat(e,"/items")},t&&{offset:t}),schema:iu}}(n)),v(Object(On.a)())},size:"fullPage",css:{".Modal-content":{height:"calc(100% - 97px)"}},children:l&&Object(o.c)(Ef.Flex,{flexDirection:"column",height:"100%",children:[Object(o.b)(Ef.Flex,{as:jf.b,children:RR.map((function(e){var t=e.key,n=e.name;return Object(o.b)(Ef.Flex,{as:jf.a,flex:1,justifyContent:"center",children:Object(o.b)(Ef.Text,{onClick:function(){return b(t)},css:function(e){return Object.assign({color:e.colors.GBK06A},h===t&&{borderBottom:"3px solid ".concat(e.colors.GBL01A),color:e.colors.GBK02A},{cursor:"pointer"})},children:n})},t)}))}),Object(o.b)(qR,{activeKey:h})]})})]})})),WR=Object(st.withRouter)((function(e){var t=e.router.params.id,n=Object(a.useState)(!1),r=Object(gt.a)(n,2),i=r[0],c=r[1];return Object(o.c)(o.a,{children:[Object(o.b)(yf.c,{preset:yf.b.Outline,color:yf.a.Blue,onClick:function(){return c(!0)},children:"修改介绍"}),Object(o.b)(Vb,{onClose:function(){return c(!1)},columnId:t,editing:!0,shown:i})]})})),YR=function(e){var t=e.column,n=e.onShowSubmission,r=t.author,i=t.title,a=t.intro,c=t.description,s=t.itemsCount,u=t.acceptSubmission,l=t.isFollowing,d=Object(B.j)(r),f=AR(t.id,l);return Object(o.b)(Ef.Box,{as:zv,width:"100vw",children:Object(o.c)(Ef.Flex,{width:"100vw",maxWidth:"726px",flexDirection:"column",px:"16px",css:{margin:"24px auto"},children:[Object(o.b)(Ef.Text,{fontSize:"26px",lineHeight:"36px",fontWeight:"600",children:i}),Object(o.b)(Ef.Text,{color:"GBK03A",fontSize:"18px",lineHeight:"22px",mt:"8px",children:a||c}),Object(o.c)(Ef.Flex,{mt:"12px",alignItems:"center",lineHeight:"normal",children:[Object(o.b)(FE.a,{author:Object.assign({},r,{headline:null}),preset:"plain",avatarSize:24}),Object(o.c)(Ef.Flex,{alignItems:"center",color:"GBL05A",fontSize:"15px",lineHeight:"24px",css:{whiteSpace:"pre-wrap"},children:[Object(o.b)(Ef.Box,{children:" · "}),Object(o.b)(Ef.Flex,{color:"GBK03A",children:"".concat(Object(hh.cnNiceNumber)(s))}),"篇内容",!d&&u&&Object(o.c)(Ef.Flex,{ml:"24px",mr:"7px",alignItems:"center",onClick:n,css:{cursor:"pointer"},children:[Object(o.b)(TR,{size:20}),Object(o.b)(Ef.Text,{ml:"4px",children:"推荐文章"})]})]}),!d&&f]}),d&&Object(o.c)(Ef.Flex,{mt:"16px",alignItems:"center",css:{">*:not(:first-child)":{marginLeft:"10px"}},children:[Object(o.b)(KR,{}),Object(o.b)(WR,{}),f]})]})})};YR.propTypes={column:jl.a.object.isRequired};var QR=YR,ZR=n(158),JR=function(e){p.a.dispatch("base/openURL",{url:"https://zhuanlan.zhihu.com/".concat(e)}).then((function(){var e=p.a.listen("base/viewDidAppear",(function(){p.a.dispatch("browser/closeCurrentPage"),e()}))}))},XR=Object(G.a)("column",["GET_SUBMISSION_CANDIDATES"]);function $R(){var e=Object(vm.a)(["编辑于",""]);return $R=function(){return e},e}function eI(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var tI=function(e){Object(ml.a)(n,e);var t=eI(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={autoCompleteData:[],recentCandidates:[],noCandidates:!1,selected:null,candidatesFetched:!1,modify:!1,candidatesFetching:!1,candidatesErrorMessage:""},e.jumpToWrite=function(e){Promise.resolve(av(e,1280)).then((function(){window.open("https://zhuanlan.zhihu.com/write","_blank")}))},e.handleChange=Rt()((function(t){if(t){var n=e.props;(0,n.getCandidates)(n.columnId,t).then((function(t){var n=t.payload;return e.setState({autoCompleteData:n.data})}))}else e.state.autoCompleteData.length>0&&e.setState({autoCompleteData:[]})}),500),e.handleSelect=function(t,n){return e.setState({selected:n})},e.handleRemove=function(){return e.setState({selected:null})},e.afterSubmit=function(){var t=e.props,n=t.showNotification,r=t.isV2;e.closeModal(),n(r?"推荐成功,被转载后你会收到消息通知":"文章已投递!被专栏收录后你会收到消息通知。"),e.setState({modify:!0})},e.handleSubmit=function(t){var n=e.props,r=n.addContributeRequest,o=n.postArticleRepublish,i=n.columnId,a=n.isV2,c=e.state.selected;if(c)return a?(q.a.trackEvent(t.target,{id:8956,action:"Submit",element:"Card"}),void o({action:"create",columnId:i,articleId:c.id}).then(e.afterSubmit)):void r(c.id,i).then(e.afterSubmit)},e.closeModal=function(){e.setState({autoCompleteData:[],selected:null}),e.props.onClose&&e.props.onClose()},e}return Object(vl.a)(n,[{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,r=n.getCandidates,o=n.columnId,i=n.show,a=this.state,c=a.noCandidates,s=a.recentCandidates,u=a.modify,l=a.candidatesFetching,d=0===s.length&&!c;(i&&!e.show&&d||u)&&!l&&(this.setState({candidatesFetching:!0}),r(o).then((function(e){var n=e.payload;return t.setState({recentCandidates:n.data,noCandidates:0===n.data.length,candidatesFetched:!0,candidatesFetching:!1,modify:!1})})).catch((function(e){403===e.payload.code&&t.setState({candidatesErrorMessage:e.payload.message})})))}},{key:"renderSearch",value:function(){var e=this.state,t=e.autoCompleteData,n=e.recentCandidates,r=0===t.length,i=r?n:t,a=r?"最近文章":"";return Object(o.b)(zf.b,{menuProps:{menuClassName:"Submission-Search-menu"},groups:{item:i},labels:{item:a},inputProps:{className:"Submission-Search-input",placeholder:"搜索你的文章..."},onChange:this.handleChange,onSelect:this.handleSelect,renderLabel:function(e){return Object(o.b)("div",{className:"label",children:e})},renderItem:function(e){return Object(o.b)(im.a,{view:{id:8955,element:"Card"},module:"Content",card:{content:{type:"Post",token:String(e.id)}},trackCardShow:!0,children:Object(o.c)("div",{children:[Object(o.b)("span",{className:"title",children:e.title}),Object(o.b)("span",{className:"time",children:gm()($R(),Object(ci.toSmartDateTimeString)(e.updated))})]})})}})}},{key:"renderSelectedItem",value:function(){return Object(o.c)("div",{className:"ColumnSubmissionDialog-selected",children:[this.state.selected.title,Object(o.b)(yf.c,{preset:"plain",className:"ColumnSubmissionDialog-removeSelected",onClick:this.handleRemove,icon:Il.a,"aria-label":"取消"})]})}},{key:"render",value:function(){var e=this.state,t=e.selected,n=e.noCandidates,r=e.candidatesFetched,i=e.candidatesErrorMessage,a=this.props.isV2;return Object(o.b)(Pt.b,{size:"large",title:a?"向专栏推荐文章":"投稿文章",subtitle:this.subtitle,onClose:this.closeModal,children:this.props.show&&(i?Object(o.b)("div",{className:"ColumnSubmissionErrorMessage",children:i}):Object(o.b)("div",{className:"ColumnSubmissionDialog",children:r&&(n?Object(o.b)("div",{className:"ColumnSubmissionDialog-empty",children:Object(o.b)(yf.c,{className:"ColumnSubmissionDialog-writebtn",preset:"primary",color:"blue",onClick:this.jumpToWrite,children:"写文章"})}):Object(o.b)(im.a,{module:"Content",card:{content:{type:"Post",token:String(null==t?void 0:t.id)}},children:Object(o.c)("div",{children:[t?this.renderSelectedItem():this.renderSearch(),Object(o.b)(Pt.a,{children:Object(o.b)(yf.c,{preset:"primary",color:"blue",disabled:!t,onClick:this.handleSubmit,children:"确定"})})]})}))}))})}},{key:"subtitle",get:function(){var e=this.state.noCandidates;return this.props.isV2?e?"没有可以推荐到该专栏的文章。":"选择文章推荐给该专栏,待专栏创建者处理推荐。":e?"没有可以投稿到该专栏的文章。":"选择要投稿到该专栏的文章,收到投稿后专栏编辑将审阅处理。"}}]),n}(a.Component);tI.propTypes={onClose:jl.a.func.isRequired,columnId:jl.a.oneOfType([jl.a.number,jl.a.string]).isRequired,show:jl.a.bool,getCandidates:jl.a.func.isRequired,addContributeRequest:jl.a.func.isRequired,isV2:jl.a.bool,postArticleRepublish:jl.a.func};var nI=Object(Lt.compose)(Object(Ot.connect)(null,{getCandidates:function(e,t){return function(n){return n({API:{root:Qs.c,types:XR.GET_SUBMISSION_CANDIDATES,endpoint:"/columns/".concat(e,"/submission_candidates"),method:"GET",fetchOptions:{credentials:"include"},query:{keyword:t},schema:no.a.ARTICLE_ARRAY}})}},addContributeRequest:du,showNotification:Xr.g,postArticleRepublish:Xc}))(tI),rI=function(e){var t=e.params.id,n=e.location,r=n.query,i=n.pathname,c=Object(Ot.useSelector)((function(e){return e.entities})).columns,s=Object(Ot.useSelector)((function(e){return e.column[t]}))||{},u=s.items,l=void 0===u?[]:u,d=s.pinnedItems,f=void 0===d?[]:d,p=s.paging,h=s.isLoading,b=c[t],v=p&&p.isEnd,m=Object(B.j)(b.author),g=Object(Ot.useDispatch)(),O=Object(z.p)(),y=Object(Ot.useSelector)((function(e){return Object(z.j)(e)})),j=Object(a.useState)(!1),E=Object(a.useState)(!1),C=Object(gt.a)(E,2),w=C[0],T=C[1],_=b.itemsCount>0;return Object(a.useEffect)((function(){var e,n=r.page,o=void 0===n?1:n;g((e=t,function(t){return t({columnId:e,API:{types:au.GET_PINNED_ITEMS,endpoint:"/columns/".concat(e,"/pinned-items"),fetchOptions:{credentials:"include"}},schema:iu})})),g(uu(t,10*(Number(o)-1)))}),[g,t,r]),function(e){var t=Object(Ct.b)();Object(a.useEffect)((function(){t.Zhihu&&t.Android&&!Object(ZR.versionControl)(t,{ANDROID:"6.36"})&&JR(e)}),[e,t])}(t),Object(o.c)("div",{children:[!O&&Object(o.b)(pv,{showAdblockBanner:!0,columnId:j&&(null==b?void 0:b.id),showHeaderColumn:j,preset:pv.PRESETS.COLUMN}),Object(o.b)(jt.a,{title:b.title,meta:Av(b)}),Object(o.b)(QR,{column:b,onShowSubmission:function(){q.a.trackEvent(null,{id:8954,action:"Click",element:"Button"},{button:{text:"投稿到专栏"}}),T(!0)}}),(null==f?void 0:f.length)>0&&Object(o.b)(CR,{schemas:f}),_&&Object(o.b)(Iv,{total:Math.ceil(b.itemsCount/10),current:Number(r.page)||1,url:i}),_?Object(o.b)(ER,{schemas:l,isLoading:null!=h&&h,isDrained:null!=v&&v,onLoad:function(){(null==p?void 0:p.next)&&g(uu(t))}}):Object(o.b)(Dv,{isAuthor:m}),y&&Object(o.b)(Pv.a,{href:Object(Lv.a)({type:"column",id:b.id},{utm_content:"app_jumping"})}),Object(o.b)(nI,{isV2:!0,show:w,columnId:b.id,onClose:function(){T(!1)}})]})};rI.fetchData=Uv;var oI=rI,iI=n(298),aI=n(226),cI=n.n(aI),sI=n(314),uI=n(707),lI=n.n(uI),dI=n(708),fI=n.n(dI),pI=function(e){var t=e.ua,n=e.left,r=e.onBack,i=e.isSoft,c=void 0!==i&&i,s=e.onBeforeBack,u=void 0===s?function(){return Promise.resolve()}:s;if(Object(a.isValidElement)(n)||null===n)return Object(o.b)("div",{className:"".concat("LeftArea"),children:n});var l="Android"===t?Object(o.b)(sI.a,{src:lI.a}):Object(o.b)(sI.a,{src:fI.a});return Object(o.b)("div",{className:"LeftArea",children:Object(o.b)("div",{className:rl()("".concat("LeftArea","-button"),"".concat("LeftArea","-button--").concat(t)),onClick:function(e){r&&"function"==typeof r?r(e):u().then((function(){"Android"===t&&c&&history.length>1?history.go(-1):p.a.dispatch("browser/closeCurrentPage")}))},children:l})})};pI.propTypes={ua:jl.a.string,left:jl.a.node};var hI=pI,bI=n(709),vI=n.n(bI),mI=n(710),gI=n.n(mI),OI=function(e){var t=e.ua,n=e.right;if(Object(a.isValidElement)(n)||null===n)return Object(o.b)("div",{className:"".concat("RightArea"),children:n});var r="Android"===t?Object(o.b)(sI.a,{src:vI.a}):Object(o.b)(sI.a,{src:gI.a});return Object(o.b)("div",{className:"RightArea",children:Object(o.b)("div",{className:rl()("".concat("RightArea","-button"),"".concat("RightArea","-button--").concat(t)),onClick:function(){p.a.dispatch("share/showShareActionSheet")},children:r})})};OI.propTypes={ua:jl.a.string,right:jl.a.node};var yI=OI,jI=Object(a.forwardRef)((function(e,t){var n;Object(a.useEffect)((function(){p.a.dispatch("browser/disableSwipeRefresh")}),[]);var r=e.className,i=e.onRef,c=e.isSoft,s=e.onBack,u=e.safeAreaClassName,l=e.placeholderClassName,d=e.left,f=e.right,h=e.bottom,b=e.bottomPlaceholder,v=e.isAndroid,m=void 0!==v&&v,g=e.dbClickToTop,O=e.scrollRef,y=e.onBeforeBack,j=e.transparent,E=e.dark,C=e.animatedStyle,w=e.tag,T=Object(a.useState)(m?"Android":"iOS"),_=Object(gt.a)(T,2),S=_[0],A=_[1];Object(a.useEffect)((function(){A(/Android/.test(navigator.userAgent)?"Android":"iOS")}),[]);var k,R,I,x=(g||O)&&(k=function(){((null==O?void 0:O.current)||window).scrollTo(0,0)},R=!1,function(){R?(R=!1,k()):(R=!0,setTimeout((function(){R=!1}),500))}),N=w||"div",D="".concat("NavigationBar","-transparent"),P="".concat("NavigationBar","-dark");return Object(o.c)("div",{className:rl()("NavigationBar",r,"".concat("NavigationBar","--").concat(S),(n={},Object(Ut.a)(n,D,j),Object(Ut.a)(n,P,E),n)),ref:t||function(e){i&&i(e)},children:[Object(o.c)(N,{className:"".concat("NavigationBar","-mainArea"),style:C,children:[Object(o.b)("div",{className:rl()("".concat("NavigationBar","-safeArea u-safeAreaInset-top"),u)}),Object(o.c)("div",{className:"".concat("NavigationBar","-contentArea"),children:[Object(o.b)(hI,{ua:S,left:d,isSoft:c,onBack:s,onBeforeBack:y}),Object(o.b)("div",{className:"".concat("NavigationBar","-middle"),onClick:x,children:(I=e.middle,Object(a.isValidElement)(I)||"string"==typeof I?I:null)}),Object(o.b)(yI,{ua:S,right:f})]}),h&&Object(o.b)("div",{className:"".concat("NavigationBar","-bottomArea"),children:h})]}),Object(o.c)("div",{className:"".concat("NavigationBar","-placeholderArea"),children:[Object(o.b)("div",{className:rl()("".concat("NavigationBar","-safeArea u-safeAreaInset-top"),u)}),Object(o.b)("div",{className:rl()("".concat("NavigationBar","-placeholder"),l)}),b&&Object(o.b)("div",{className:"".concat("NavigationBar","-bottomPlaceholder"),children:b})]})]})}));jI.propTypes={className:jl.a.string,safeAreaClassName:jl.a.string,placeholderClassName:jl.a.string,onRef:jl.a.func,onBack:jl.a.func,isAndroid:jl.a.bool,left:jl.a.node,middle:jl.a.oneOfType([jl.a.string,jl.a.node]),right:jl.a.node,bottom:jl.a.node,bottomPlaceholder:jl.a.node};var EI=jI,CI=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Array.isArray(e)?"rgba(".concat(e.join(","),",").concat(t,")"):Object(Et.b)(e).alpha(t)},wI=function(e){var t=e.backgroundColor,n=e.threshold,r=void 0===n?0:n,i=e.middle,c=e.fixedMiddle,s=e.right,u=e.fixedRight,l=e.fadeRight,d=e.containerRef,f=Object(_e.a)(e,["backgroundColor","threshold","middle","fixedMiddle","right","fixedRight","fadeRight","containerRef"]),p=hd(),h=Object(a.useMemo)((function(){return[CI(t,0),CI(t,1)]}),[t]),b=Object(gt.a)(h,2),v=b[0],m=b[1],g=Object(a.useRef)(),O=Object(iI.b)((function(){return{pct:0,immediate:!0}})),y=Object(gt.a)(O,2),j=y[0].pct,E=y[1],C=Object(a.useState)(!1),w=Object(gt.a)(C,2),T=w[0],_=w[1];Object(a.useEffect)((function(){var e="function"==typeof r?r():Number(r),t=g.current.getBoundingClientRect().height,n=Math.max(t,e-t),o=d?d.current:window,i=cI()((function(){var e=function(e){return e===window?window.pageYOffset:e.scrollTop}(o),t=function(e,t){return wj()(e/t,0,1)}(e,n);e>0?_(!0):0===t&&_(!1),E({pct:t})}),50);return i(),o.addEventListener("scroll",i),function(){o.removeEventListener("scroll",i)}}),[d,E,_,r]);var S=p?{opacity:j.interpolate([0,.2,1],[0,0,1]),transform:j.interpolate([0,.2,1],["translate3d(0,10px,0)","translate3d(0,10px,0)","translate3d(0,0px,0)"])}:{opacity:0},A={boxShadow:"none",backgroundColor:p?j.interpolate([0,1],[v,m]):"transparent"},k=p?iI.a.div:"div";return Object(o.b)(EI,Object.assign({},f,{ref:g,animatedStyle:A,middle:c||Object(o.b)(k,{style:S,children:i}),right:p?Object(o.c)(o.a,{children:[u||Object(o.b)(k,{style:S,children:s}),!T&&l]}):null,tag:k}))};function TI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"scroll",n=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=Object(a.useRef)();return Object(a.useEffect)((function(){o.current=e})),Object(a.useEffect)((function(){if(r){var e=Object(nd.subscribe)(t,(function(e,t){o.current(e,t)}),n);return function(){e.unsubscribe()}}}),[r]),null}var _I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=Object(Ot.useDispatch)(),n=Object(Ot.useSelector)((function(t){return Ln()(Object(B.b)(t),e)}),Ot.shallowEqual);return Object(a.useEffect)((function(){t(Object(B.d)(e))}),[t].concat(Object(i.a)(e))),n};function SI(e){var t=e.selectType,n=e.onClick,r=e.height,i=e.offsetTop,a=e.onPositionStatusChange;return Object(o.b)(ql.a,{top:!0,offset:i,onPositionStatusChange:a,children:Object(o.b)(jf.b,{css:function(e){return{height:r,background:e.colors.GBK99A,borderBottom:0,display:"flex",justifyContent:"center",overflowX:"auto",overflowY:"hidden",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch"}},children:RR.map((function(e){var r=e.key,i=e.name,a=t===r;return Object(o.b)(jf.a,{css:{padding:"0 31px"},children:Object(o.b)(Ef.Text,{color:a?"GBK02A":"GBK06A",className:a&&"is-active",fontWeight:"bold",onClick:function(){n(r),q.a.trackEvent(null,{id:8169,action:"Click"},{button:{text:i}})},children:i})},r)}))})})}function AI(e,t){var r=e.onScrollEnd,i=e.className,c=e.children,s=Object(Bn.c)((function(){return n.e(15).then(n.t.bind(null,1347,7))})),u=Object(a.useState)(null),l=Object(gt.a)(u,2),d=l[0],f=l[1],p=Object(Bn.b)(r);return Object(a.useEffect)((function(){if(d&&!t.current){t.current={slideTo:function(e){return d.slideTo(e)}};var e=function(){return p(d.realIndex)};return d.on("slideChange",e),function(){return null==d?void 0:d.off("slideChange",e)}}}),[d,t,p]),Object(o.b)(Ef.Box,{className:i,children:s?Object(o.b)(s,{containerClass:"NoIdeaSwiper-Container",wrapperClass:"NoIdeaSwiper-Wrapper",getSwiper:f,children:c(!0)}):c(!1)})}var kI=Object(a.forwardRef)(AI),RI={isFetching:!1,isDrained:!1,items:[]};function II(e){var t=e.userHash,n=e.columnId,r=e.contentType,i=e.onCollectChange,c=e.after,s=e.className,u=e.enableCardShow,l=void 0===u||u,d=Object(Ot.useSelector)((function(e){var t;return null===(t=e.people.creationsFeed)||void 0===t?void 0:t[r]}))||RI,f=d.isFetching,p=d.isDrained,h=d.items,b=void 0===h?[]:h,v=Object(Ot.useDispatch)(),m=Object(Bn.b)((function(){f||p||!t||v(Object(On.c)(t,{type:r,column_id:n}))})),g=kR[r],O=p&&0===b.length,y=Object(a.useRef)(),j=Object(a.useCallback)((function(){return y.current.parentElement}),[]);return Object(o.b)(Bv.b,{getContainer:j,onLoad:m,isLoading:f,isDrained:p,placeholder:b.length>4?Object(o.b)(Bv.a,{className:"List-item",css:{padding:"0 16px 16px"}}):null,className:s,children:Object(o.c)(Ef.Box,{ref:y,height:"100%",children:[O?Object(o.b)(VR,{contentName:g}):Object(o.b)(Ef.Box,{paddingTop:"16px"}),b.map((function(e){return Object(o.b)(LR,{mb:"16px",contentName:g,columnId:n,onCollectChange:i,item:e,enableCardShow:l},"".concat(r,".").concat(e.urlToken))})),c]})})}function xI(e){var t=e.selectType,n=e.setSelectType,r=e.columnId,i=e.onCollectChange,c=e.headHeight,s=e.scrollTop,u=_I(["id"]),l=null==u?void 0:u.id,d=Object(a.useRef)();Object(a.useEffect)((function(){var e,n,r=RR.findIndex((function(e){return e.key===t}));r>-1&&(null===(e=d.current)||void 0===e||null===(n=e.slideTo)||void 0===n||n.call(e,r))}),[t]);var f=Object(a.useState)(0),p=Object(gt.a)(f,2),h=p[0],b=p[1],v=Object(a.useRef)();Object(a.useEffect)((function(){requestAnimationFrame((function(){if(v.current){var e=v.current.getBoundingClientRect().top;b(e)}}))}),[]);var m=Math.max(0,h-c),g=Object(a.useState)(!1),O=Object(gt.a)(g,2),y=O[0],j=O[1],E=Math.max(0,s-c),C=function(e){var t=Object(a.useState)(0),n=Object(gt.a)(t,2),r=n[0],o=n[1];return Object(a.useEffect)((function(){o(window.innerHeight)}),[]),Math.max(0,r-e)}(s);return Object(o.c)(Ef.Box,{ref:v,height:"100vh",overflow:"hidden",children:[Object(o.b)(SI,{selectType:t,onClick:n,height:50,offsetTop:m,onPositionStatusChange:function(e){return j("fixed"===e)}}),Object(o.b)(kI,{ref:d,onScrollEnd:function(e){return n(RR[e].key)},css:Object.assign({maxWidth:"534px",margin:"0 auto",overflowY:"hidden"},y&&{marginTop:E,height:C}),children:function(e){return RR.map((function(t){var n=t.key;return Object(o.b)(II,{userHash:l,columnId:r,contentType:n,onCollectChange:i,after:Object(o.b)("div",{className:"u-safeAreaInset-bottom"}),enableCardShow:e,css:Object.assign({width:"100%",scrollSnapStop:"always"},y&&{height:C,overflowY:"scroll",WebkitOverflowScrolling:"touch"})},n)}))}})]})}var NI=function(e){var t=e.scale,n=void 0===t?1:t,r=Object(_e.a)(e,["scale"]);return Object(o.b)(Ef.Heading,Object.assign({as:"h4",bg:"GBK99A",color:"GBK02A",display:"flex",css:{justifyContent:"center",alignItems:"center"}},r,{children:Object(o.b)("span",{css:{opacity:n,transform:"scale(".concat(n,")")},children:"选择要收录的内容"})}))};function DI(e){var t,n,r=e.scrollTop,i=e.refHeight,a=void 0===i?60:i,c=Object(_e.a)(e,["scrollTop","refHeight"]),s=1-(t=r,n=a,wj()(t/n,0,1));return Object(o.b)(NI,Object.assign({fontSize:"20px",fontWeight:"600",height:60,scale:s},c))}var PI=RR[0].key;function LI(e){var t=e.params.id,n=Object(Ct.b)(),r=Object(Et.f)().isDarkMode,i=Object(a.useState)(PI),c=Object(gt.a)(i,2),s=c[0],u=c[1],l=Object(a.useRef)(),d=Object(a.useState)(0),f=Object(gt.a)(d,2),h=f[0],b=f[1];TI((function(e,t){var n=t.scroll.top;b(n);var r=n>0;r!==l.current&&(p.a.dispatch("base/".concat(r?"disable":"enable","TouchEvent")),l.current=r)}),"scroll",{enableScrollInfo:!0});var v=Object(Bn.b)((function(){n.iOS&&p.a.dispatch("column/refreshData",{type:"items",columnId:t})}));return Object(o.c)(Ef.Box,{minHeight:"100vh",overflowX:"hidden",children:[Object(o.b)(jt.a,{title:"专栏收录",titleTemplate:"%s"}),Object(o.b)(wI,{backgroundColor:r?[18,18,18]:[255,255,255],css:function(e){return{"&::after":{background:e.colors.GBK99A,content:"''",position:"absolute",top:0,right:0,bottom:0,left:0},"& .NavigationBar-mainArea":{boxShadow:"none"},"& .NavigationBar-safeArea":{display:n.iOS?"none":"block"},"& .NavigationBar-placeholderArea":Object.assign({},n.iOS&&{minHeight:44})}},middle:Object(o.b)(NI,{fontSize:"17px",fontWeight:"bold",height:44}),right:null,left:Object(o.b)(Ef.Button,{bg:"transparent",color:"GBK04A",height:44,lineHeight:"".concat(44,"px"),padding:0,pl:"16px",fontSize:"16px",fontWeight:"bold",onClick:function(){return function(e){p.a.dispatch("column/refreshData",{type:"items",columnId:e}),requestAnimationFrame((function(){return p.a.dispatch("browser/closeCurrentPage")}))}(t)},children:"确定"})}),Object(o.b)(DI,{refHeight:44,scrollTop:h}),Object(o.b)(xI,{selectType:s,setSelectType:u,columnId:t,onCollectChange:v,headHeight:60,scrollTop:h})]})}LI.fetchData=function(e){var t=e.dispatch,n=e.getState,r=e.params,o=n().currentUser,i=r.id;return Promise.all([t(Object(On.c)(o,{type:PI,column_id:i})),t(Object(On.c)(o,{type:RR[1].key,column_id:i},!0))])};var MI=function(e){var t=e.name,n=e.required,r=e.getErrorText,i=e.initialValue,c=Object(_e.a)(e,["name","required","getErrorText","initialValue"]),s=Object(a.useState)(null!=i?i:""),u=Object(gt.a)(s,2),l=u[0],d=u[1],f=r(l),p=Boolean(!f&&(!n||l)),h=function(){document.documentElement.scrollIntoView()},b=Object(a.useMemo)((function(){return Object(o.c)("div",{className:"RequestV2-inputItem",children:[Object(o.b)("div",{className:"RequestV2-inputItemName",children:t}),Object(o.b)(Hl.a,Object.assign({className:"RequestV2-inputItemInput",targetClassName:"RequestV2-inputItemInputTarget",value:l,onChange:function(e){return d(e.target.value)},onBlur:h,onFocus:h},c)),f&&Object(o.b)("div",{className:"RequestV2-inputItemErrorText",children:f})]})}),[t,l,c,f]);return[l,p,b]},UI=function(e){return function(t){var n=t.length-e;return n>0?"超出 ".concat(n," 个字"):Bb(t)?"不能包含 emoji":/^\s+$/.test(t)?"不能为纯空白字符":""}},BI=function(e){var t=e.params.id,n="ColumnSettingsV2"===e.route.name,r=Object(Ot.useSelector)((function(e){return function(e,t){var n,r;return null!==(n=null===(r=e.entities.columns)||void 0===r?void 0:r[t])&&void 0!==n?n:null}(e,t)})),i=Object(Ot.useDispatch)(),c=Object(Ct.b)(),s=MI({name:"专栏名称",required:!0,getErrorText:UI(20),placeholder:"请输入专栏名称",initialValue:null==r?void 0:r.title}),u=Object(gt.a)(s,3),l=u[0],d=u[1],f=u[2],h=MI({name:"一句话介绍",required:!1,getErrorText:UI(25),placeholder:"请输入一句话介绍",multiline:!0,rows:2,initialValue:null==r?void 0:r.intro}),b=Object(gt.a)(h,3),v=b[0],m=b[1],g=b[2],O=Object(a.useState)(!1),y=Object(gt.a)(O,2),j=y[0],E=y[1],C=Object(a.useState)(null==r?void 0:r.acceptSubmission),w=Object(gt.a)(C,2),T=w[0],_=w[1],S=Object(a.useRef)(!1),A=n,k=function(){q.a.trackEvent(null,{id:8173,action:"Click"})},R=function(){p.a.dispatch("browser/closeCurrentPage")},I=Object(a.useCallback)((function(e){e.preventDefault(),k(),i(su(t,Object.assign({},r,{intro:v,title:l,acceptSubmission:T}))).then((function(){p.a.dispatch("ui/showAlert",{title:"修改成功!该改动将在一个工作日内审核后生效。",affirm:"完成"}).then((function(){R()}))}))}),[i,t,r,v,l,T]),x=Object(Ot.useSelector)(B.b),N=null==x?void 0:x.hasApplyingColumn;if(Object(a.useEffect)((function(){N&&p.a.dispatch("ui/showAlert",{title:"你的专栏创建申请正在受理中。同时只能申请一个专栏。",dismiss:"知道了"}).then((function(){R()}))}),[N]),Object(a.useEffect)((function(){q.a.trackPageShow({id:8172})}),[]),TI((function(e,t){var n=t.scroll.top>20;n!==S.current&&(E(n),S.current=n)}),"scroll",{enableScrollInfo:!0}),Object(a.useEffect)((function(){return p.a.dispatch("browser/disableSwipeRefresh"),function(){return p.a.dispatch("browser/enableSwipeRefresh")}}),[]),N)return null;var D=n?"修改专栏介绍":"创建专栏";return Object(o.c)("div",{className:"RequestV2",children:[c.Android&&Object(o.b)("div",{className:"u-safeAreaInset-top"}),Object(o.c)("div",{className:"RequestV2-headerWrapper",children:[c.Android&&Object(o.b)("div",{className:"u-safeAreaInset-top"}),Object(o.c)("div",{className:"RequestV2-header",children:[Object(o.b)("div",{className:"RequestV2-headerCloseButton",onClick:R,children:"取消"}),j&&Object(o.b)("div",{children:D}),Object(o.b)("div",{className:"RequestV2-headerPlaceHolder"})]})]}),Object(o.b)("div",{className:"RequestV2-title",children:D}),Object(o.c)("div",{children:[f,g,A&&Object(o.c)("div",{className:"RequestV2-acceptSubmission",children:["接受他人自荐内容",Object(o.b)(Db.a,{checked:T,onChange:function(e){_(e.target.checked)}})]}),Object(o.b)(yf.c,{type:"submit",preset:yf.a.Blue,color:yf.b.Primary,disabled:!d||!m,className:"RequestV2-submitButton",onClick:n?I:function(e){e.preventDefault(),k(),i(Object(Ys.e)({title:l,intro:v})).then((function(e){var t=e.res;t.payload.manualCensor?p.a.dispatch("ui/showAlert",{title:"已收到您的申请,知乎会在 3 个工作日内处理并通过私信反馈结果。",dismiss:"完成"}).then((function(){R()})):p.a.dispatch("base/openURL",{url:"https://www.zhihu.com/column/".concat(t.payload.id)}).then((function(){p.a.dispatch("base/openURL",{url:"https://www.zhihu.com/column/".concat(t.payload.id,"/collect")}),p.a.dispatch("ui/showToast",{text:"专栏创建成功"}),p.a.dispatch("column/createSuccess",{columnId:t.payload.id});var e=p.a.listen("base/viewDidAppear",(function(){p.a.dispatch("browser/closeCurrentPage"),e()}))}))})).catch((function(e){p.a.dispatch("ui/showAlert",{title:"操作失败",content:Object(IR.b)(e),dismiss:"知道了"})}))},children:n?"保存":"创建专栏"})]}),Object(o.b)("div",{className:"u-safeAreaInset-bottom"})]})};BI.fetchData=function(e){var t=e.route.name,n=e.dispatch;return"ColumnSettingsV2"===t?Uv(e):"Request"===t?n(Object(B.d)(["hasApplyingColumn"])):Promise.resolve()};var zI=BI,FI=function(){return Object(o.b)(Ef.Box,{css:{maxWidth:768,margin:"0 auto"},children:Object(o.b)(Gb,{isModal:!1})})},GI=function(e){return Object(Ct.b)().Zhihu?Object(o.b)(zI,Object.assign({},e)):Object(o.b)(FI,Object.assign({},e))};GI.fetchData=function(e){var t=e.getState;return Object(z.m)(t()).Zhihu?zI.fetchData(e):Promise.resolve()};var VI=GI,HI=n(324),qI=function(e){var t=e.data,n=void 0===t?{}:t,r=e.className,o=e.onClick,i=e.zaInfo,s=n.prefix,u=n.suffix,l=n.url,d=Object(a.useCallback)((function(e){o&&o(e)}),[o]);return c.a.createElement("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:rl()("KfeCollection-Intro",r),onClick:d,"data-za-module":"Content","data-za-extra-module":JSON.stringify({card:{content:[i]}})},c.a.createElement("span",{className:"KfeCollection-Intro-des"},s),c.a.createElement("span",{className:"KfeCollection-Intro-title"},u))};function KI(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=td()(e);if(t){var o=td()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $l()(this,n)}}function WI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var YI=function(e){Jl()(n,e);var t=KI(n);function n(){var e;Wl()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),WI(xd()(e),"handleClick",(function(t){var n=e.props.result,r=(void 0===n?{}:n).articleDesc,o=r.url,i=r.suffix;q.a.trackEvent(t.target,{id:8999,action:"OpenUrl",name:i},{link:{url:o}})})),WI(xd()(e),"handleTrack",(function(e,t){q.a.trackEvent(e.target,{id:9e3,action:"OpenUrl"},{link:{url:t}})})),e}return Ql()(n,[{key:"render",value:function(){var e=this.props,t=e.result,n=t.articleDesc,r=t.vipWorthInfo,o=t.introCard,i=t.zaInfo,a=t.isFabled,s=void 0!==a&&a,u=t.abParam,l=e.extra,d=l.ua,f=void 0===d?{}:d,p=l.isDarkMode,h=(n||{}).url,b=(r||{}).cardColor,v=(o||{}).contentName,m={isNewStyle:"1"===(u||{}).paTopLabel,isMobile:Boolean(f.Mobile)},g=m.isNewStyle&&!m.isMobile&&0!==b,O="";return v&&(O=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=(null===(e=n.split(":"))||void 0===e||null===(t=e[1].split(" ").filter((function(e){return e.includes("href=")}))[0])||void 0===t?void 0:t.split('"')[1])||"";return r}(v)),c.a.createElement("div",{className:"KfeCollection-ArticleTopCard-container"},n&&c.a.createElement(K.b,{content:Object.assign({},i||{},{type:cA.a.paidPost})},c.a.createElement(K.a,{zaType:"Card",zaAction:"OpenUrl",zaBlock:"articleTitle",extra:{link:{url:h}}},c.a.createElement(qI,{data:n,onClick:this.handleClick,zaInfo:i,className:"KfeCollection-Intro-container"}))),c.a.createElement("div",{className:g?"KfeCollection-ArticleTopCard-FlexContainer":""},2===b?c.a.createElement(VA,{data:r,extra:m,className:m.isNewStyle&&!g?"KfeCollection-ArticleTopCard-OrdinaryLabel":""}):c.a.createElement(GA,{data:r,extra:m,className:m.isNewStyle&&!g?"KfeCollection-ArticleTopCard-Privilege":""}),s&&m.isNewStyle&&c.a.createElement(qA,{ua:f,isDarkMode:p,isFixed:g})),(null==o?void 0:o.contentName)&&c.a.createElement(HI.a,{options:[{},{},{id:9001}]},c.a.createElement(K.e,{zaType:"Card"},c.a.createElement(K.a,{zaType:"Text",zaAction:"OpenUrl",extra:{link:{url:O}}},c.a.createElement(DA,{introCard:o,zaInfo:i,handleTrack:this.handleTrack,extra:m})))))}}]),n}(c.a.Component);WI(YI,"propTypes",{className:jl.a.string,result:jl.a.object.isRequired}),WI(YI,"defaultProps",{result:{articleDesc:{},introCard:{},vipWorthInfo:{},goodsCard:{},btnInfo:{},progressInfo:{},zaInfo:{}},extra:{ua:{}}});var QI=YI,ZI=n(515),JI=[0],XI=function(e){var t=e.rootMargin,n=e.onTouchBottom;return c.a.createElement(IT.a,{rootMargin:t||"0px 0px 0px 0px",threshold:JI,onObserve:function(e){if(e&&e[0]){var t=e[0],r=t.boundingClientRect,o=t.rootBounds;r.top<o.bottom&&n&&n()}}},c.a.createElement("div",null))},$I=n(655);function ex(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=td()(e);if(t){var o=td()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $l()(this,n)}}function tx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nx=function(e){Jl()(n,e);var t=ex(n);function n(e){var r;return Wl()(this,n),r=t.call(this,e),tx(xd()(r),"handleCardClick",(function(e){var t=r.props.result.goodsCard.body,n=t.link,o=t.title;q.a.trackEvent(e.target,{id:8996,action:"OpenUrl",name:o},{link:{url:n}})})),tx(xd()(r),"handleBtnClick",(function(e){var t=r.props.result.btnInfo,n=void 0===t?{}:t,o=n.btnText,i=n.link;q.a.trackEvent(e,{id:8994,action:"OpenUrl",name:o},{link:{url:i}})})),tx(xd()(r),"handleBookshelfButtonClick",(function(e){var t=r.state.result.shelvesInfo,n=r.props.extra,o=(n=void 0===n?{}:n).ua,i=void 0===o?{}:o;if(i.ZhihuHybrid)if(e.preventDefault(),e.stopPropagation(),null==t?void 0:t.whetherInShelf){Object($I.a)("https://www.zhihu.com/xen/market/vip/vip-recommend",i)}else Object(ZI.a)("/pluton/shelves",{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(Object($.decamelizeKeys)(Object.assign({},t)))}).then((function(){var e=r.state.result,t=Object.assign({},Object.assign({},e),{shelvesInfo:Object.assign({},e.shelvesInfo,{whetherInShelf:!0})});r.setState({result:t}),p.a.dispatch("ui/showToast",{text:"已加入书架,可至「会员」页查看"})})).catch((function(){p.a.dispatch("ui/showToast",{text:"加入失败, 请重试"})}))})),tx(xd()(r),"handleTouchBottom",(function(){var e=r.state.result,t=e.hasOwnShip,n=e.progressInfo;!r.progressLogged&&t&&Object(ZI.a)("/promus/progress",{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify([Object($.decamelizeKeys)(Object.assign({},n,{progress:1}))])}).then((function(){r.progressLogged=!0})).catch((function(){}))})),r.progressLogged=!1,r.state={result:e.result||{},prevProps:e},r}return Ql()(n,[{key:"render",value:function(){var e=this,t=this.props.extra,n=(t=void 0===t?{}:t).theme,r=this.state.result,o=r.goodsCard,i=void 0===o?{}:o,a=r.btnInfo,s=void 0===a?{}:a,u=r.zaInfo,l=r.isVipAndFree,d=s.btnText,f=s.link,p=i.body,h=(p=void 0===p?{}:p).title;return c.a.createElement(K.b,{content:Object.assign({},u||{},{type:cA.a.paidPost})},c.a.createElement(c.a.Fragment,null,d&&c.a.createElement(c.a.Fragment,null,c.a.createElement(HI.a,{options:[{module:"Content",module_name:h},{card:{content:u}},{id:8995,name:h},null]},c.a.createElement(K.a,{shouldTrackShow:!0,zaType:"Text",zaBlock:"textLink",zaAction:"OpenUrl",extra:{link:{url:s.link}},className:"KfeCollection-ArticleBottomCard-title"},c.a.createElement(wA,{ref:function(t){e.btn=t},btnInfo:s,onClick:this.handleBtnClick,zaInfo:u,className:"KfeCollection-ArticleBottomCard-btn"})))),h&&c.a.createElement(HI.a,{options:[{module:"Content",module_name:h},{card:{content:u}},{id:8998,name:h},{link:{url:f}}]},c.a.createElement("div",null,c.a.createElement(K.a,{shouldTrackShow:!0,zaType:"Card",zaAction:"OpenUrl",zaBlock:"postContent",extra:{link:{url:s.link}}},c.a.createElement(jA,{hasPurchased:l,ref:function(t){e.card=t},result:r,onBookshelfButtonClick:this.handleBookshelfButtonClick,onClick:this.handleCardClick,theme:n,className:"KfeCollection-ArticleBottomCard-goodsCard"})))),c.a.createElement(XI,{rootMargin:"0px 0px 100px 0px",onTouchBottom:this.handleTouchBottom})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps||{};return e.result!==n.result?{result:e.result,preProps:e}:null}}]),n}(c.a.Component);tx(nx,"propTypes",{className:jl.a.string,result:jl.a.object.isRequired,zaExtra:jl.a.object}),tx(nx,"defaultProps",{result:{goodsCard:{},btnInfo:{},progressInfo:{},shelvesInfo:{},zaInfo:{}}});var rx=nx;var ox=/#comment-(\d+)/;var ix=Object(Br.createSelector)(z.d,z.h,(function(e,t){var n=decodeURIComponent(t.split("?title=")[1]||"");return{isSearchSpecialSource:e&&t.includes("zhihu.com/search-special")&&Boolean(n),searchSpecialTitle:n}}));function ax(){var e=Object(vm.a)(["发布于",""]);return ax=function(){return e},e}function cx(){var e=Object(vm.a)(["编辑于",""]);return cx=function(){return e},e}function sx(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var ux=function(e){Object(ml.a)(n,e);var t=sx(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={showUpdated:!0},e.handleClick=function(){e.setState((function(e){return{showUpdated:!e.showUpdated}}))},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.created,n=e.updated,r=e.extraInlineComponent,i=this.state.showUpdated;return Object(o.c)("div",{className:"ContentItem-time",onClick:this.handleClick,children:[i&&n!==t?gm()(cx(),Object(ci.toSmartString)(n)):gm()(ax(),Object(ci.toSmartString)(t)),r]})}}]),n}(a.Component);ux.propTypes={created:jl.a.number,updated:jl.a.number,extraInlineComponent:jl.a.node};var lx=ux;function dx(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var fx=function(e){Object(ml.a)(n,e);var t=dx(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).load=function(){var t=e.props,n=t.dispatch,r=t.id;n(Object(lo.e)(r))},e.track=function(){var t=e.props.topic;e.hoverCardElement&&t&&(q.a.setModule(e.hoverCardElement,{module:"TopicItem"},{card:{content:{type:"Topic",token:t.id,item_num:t.questionsCount,follower_num:t.followersCount}}}),q.a.trackCardShow(e.hoverCardElement))},e.handleFollow=e.context.authRequired((function(){var t=!e.props.topic.isFollowing;q.a.trackEvent(e.hoverCardElement,{action:t?"Follow":"UnFollow",element:"Button"});var n=e.props,r=n.dispatch,o=n.id;r(Object(lo.f)(o))}),le.J.follow),e.handleOpen=function(){e.load(),e.track()},e}return Object(vl.a)(n,[{key:"isTopicReady",value:function(){var e=this.props.topic||{},t=e.questionsCount,n=e.followersCount,r=e.bestAnswersCount;return!(void 0===t&&void 0===n&&void 0===r)}},{key:"render",value:function(){var e=this,t=this.props,n=t.toggler,r=t.topic,i=t.id,a=t.isLoading,c=t.onRef,s=Object(_e.a)(t,["toggler","topic","id","isLoading","onRef"]),u=r||{},l=u.name,d=u.introduction,f=u.questionsCount,p=u.followersCount,h=u.bestAnswersCount,b=u.avatarUrl,v=u.isFollowing,m=u.headerCard,g="//www.zhihu.com/topic/".concat(i),O=m&&m.avatarUrl||b;return Object(o.c)(Kb.b,Object.assign({toggler:n,preventCloseOnTarget:!0,isLoading:a,onOpen:this.handleOpen,size:"large"},s,{onRef:function(t){c&&"function"==typeof c&&c(t),e.hoverCardElement=t},children:[Object(o.b)(Kb.a,{title:Object(o.b)("a",{target:"_blank",rel:"noopener noreferrer",href:g,children:l}),avatarUrl:O,avatarFit:"cover"}),d&&Object(o.b)("div",{children:Object(o.b)(DE.a,{className:"HoverCard-description",html:d})}),Object(o.c)("div",{children:[this.isTopicReady()&&Object(o.c)(qb.a,{children:[Object(o.b)(qb.a.Item,{tag:vb.a,preset:"plain",a:!0,to:"".concat(g,"/questions"),name:"问题",value:f,target:"_blank"}),Object(o.b)(qb.a.Item,{tag:vb.a,preset:"plain",a:!0,to:"".concat(g,"/top-answers"),name:"精华",value:h,target:"_blank"}),Object(o.b)(qb.a.Item,{tag:vb.a,preset:"plain",a:!0,to:"".concat(g,"/followers"),name:"关注者",target:"_blank",value:p})]}),Object(o.b)("div",{className:"HoverCard-buttons",children:r&&Object(o.b)(yf.c,{preset:"primary",color:v?"grey":"blue",onClick:this.handleFollow,children:v?"已关注":"关注话题"})})]})]}))}}]),n}(a.Component);fx.contextTypes={authRequired:jl.a.func};var px=Object(Ot.connect)((function(e,t){var n=t.id,r=e.entities.topics,o=e.loading.local;return{topic:r[n],isLoading:Boolean(o["topic/".concat(n)])}}))(fx);function hx(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var bx=function(e){Object(ml.a)(n,e);var t=hx(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e,t=this.props,n=t.isMobile,r=t.topic,i=r.name,a=r.avatarUrl,c=r.id,s=r.headerCard,u=t.avatar,l=t.avatarProps,d=t.noHoverCard,f=t.noLink,p=t.style,h=t.className,b=t.children,v=(t.dispatch,t.trackEvent,Object(_e.a)(t,["isMobile","topic","avatar","avatarProps","noHoverCard","noLink","style","className","children","dispatch","trackEvent"])),m=void 0===d?n:d,g=s&&s.avatarUrl||a;e=u?Object(o.b)(Gh.a,Object.assign({className:"TopicLink-avatar",url:g,alt:i},l)):b||i,f||m||(e=Object(o.b)(px,{toggler:e,id:c}));var O=f?"span":"a";return Object(o.b)(O,Object.assign({style:p,className:rl()("TopicLink",h),href:"//www.zhihu.com/topic/".concat(c),target:"_blank"},v,{children:e}))}}]),n}(a.Component);bx.propTypes={topic:jl.a.object.isRequired,user:jl.a.object,avatar:jl.a.bool,avatarProps:jl.a.object,noHoverCard:jl.a.bool,noLink:jl.a.bool,style:jl.a.object,className:jl.a.string,children:jl.a.node},bx.defaultProps={avatar:!1,noLink:!1};var vx=Object(Lt.compose)(Object(Ot.connect)((function(e){return{isMobile:Object(z.d)(e,{includeTablet:!0})}})))(bx);function mx(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var gx=function(e){Object(ml.a)(n,e);var t=mx(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.item,n=e.noHoverCard,r=e.onClick;return Object(o.b)(qp,{className:"Topic",children:Object(o.b)(vx,{noHoverCard:n||void 0,topic:t,onClick:r})})}}]),n}(a.Component),Ox=Object(im.b)((function(e){return{module:"TopicItem",content:{type:"Topic",token:e.item.id},trackCardShow:!0}}))(gx),yx=function(e){var t=e.topics,n=e.className,r=e.noHoverCard,i=e.onItemClick;return Object(o.b)("div",{className:rl()("TopicList",n),children:t.map((function(e){return Object(o.b)(Ox,{item:e,noHoverCard:r,onClick:i},e.id)}))})};var jx=function(){navigator.cookieEnabled&&Gl()(navigator.userAgent).Wechat&&(Dn.a.get("social_id")||Dn.a.get("WECHAT_AUTHORIZATION_POPUP")||(Dn.a.set("WECHAT_AUTHORIZATION_POPUP","1",{expires:1,domain:"zhihu.com"}),window.location.replace("https://www.zhihu.com/oauth/redirect/social_info/wechat_mp?from=".concat(encodeURIComponent(location.href)))))};function Ex(){var e=Dn.a.get("social_id"),t=YC.a.parse(decodeURIComponent(location.search)),n=t.utm_oi,r=void 0===n?null:n,o=t.s_s_i;return{firstShareUid:r,shareSocialId:void 0===o?null:o,shareRecord:t.s_r,curUserSocialId:e}}function Cx(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var wx=function(e){Object(ml.a)(n,e);var t=Cx(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this;window.wx&&window.wx.ready((function(){jx(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:4408,t=Ex(),n=t.firstShareUid,r=t.shareSocialId,o=t.shareRecord,i=t.curUserSocialId;i&&0!==Number(o)&&(r||n)&&q.a.trackEvent(null,{id:e,action:"Share"},{share:{share_uid:n,share_unionid:r,open_unionid:i}})}(e.props.zaShareId)}))}},{key:"render",value:function(){return null}}]),n}(a.Component);var Tx=function(e){var t=e.title,n=e.className;Object(a.useEffect)((function(){q.a.trackCardShow(null,{id:8107},{button:{text:t}})}),[t]);var r=Object(a.useCallback)((function(){q.a.trackEvent(null,{id:8108,action:"OpenUrl"},{button:{text:t}});var e=Object(se.stringify)({type:"content",q:t});location.href="//www.zhihu.com/search?".concat(e)}),[t]);return Object(o.b)(zv,{className:rl()("SearchSpecialButton",n),children:Object(o.c)(yf.c,{className:"".concat("SearchSpecialButton","-inner"),preset:"primary",color:"blue",onClick:r,children:["查看更多「",t,"」相关内容"]})})},_x=n(126),Sx=n(711),Ax=n.n(Sx);var kx=function(){return Object(o.b)(_x.a,{title:"该内容仅作者可见",subtitle:"",errorImage:Ax.a})},Rx=Object(o.b)(jt.a,{meta:[{name:"robots",content:"noindex"}]}),Ix=Object(Lt.compose)(Object(rb.a)(null))((function(e){var t=e.entity,n=t.type,r=t.id,i=t.isVisible,a=t.isCollapsed,c=t.suggestEdit,s=void 0===c?{}:c,u=t.adminClosedComment,l="";"question"===n?l=r:"answer"===n&&(l=t.question.id);var d=Object(Ot.useSelector)((function(e){return Object(yn.m)(e,{id:l})}));if(d){var f=d.status,p=d.adminClosedComment,h=d.isMuted,b=d.visibleOnlyToAuthor,v=d.reviewInfo,m=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||b||m.editIsReviewing)return Rx}return"question"===n&&d.redirection?Object(o.b)("link",{rel:"canonical",href:"https://www.zhihu.com/question/".concat(d.redirection.to.id)}):"answer"===n&&((null==s?void 0:s.status)||a||u||!i)?Rx:"article"!==n||!(null==s?void 0:s.status)&&!u&&i?"":Rx}));function xx(e){var t=e.members,n=e.maxLength,r=e.size,i=void 0===r?20:r,a=t.slice(0,n);return Object(o.b)(Ef.Flex,{alignItems:"center",css:function(e){return{".UserLink":{borderRadius:"50%",border:"2px solid ".concat(e.colors.GBK99B),"&:nth-of-type(1)":{zIndex:1},"&:nth-of-type(n+2)":{marginLeft:-10}}}},children:a.map((function(e){return Object(o.b)(VS.a,{user:e,avatar:!0,avatarProps:{size:i,round:!0}},e.id)}))})}var Nx=Object(a.memo)(xx);function Dx(e){var t=e.members,n=e.hasMultiProposer;return Object(o.c)(Ef.Flex,{alignItems:"center",children:[n?Object(o.b)(Nx,{members:t,maxLength:2}):Object(o.b)(VS.a,{user:t[0],avatar:!0,avatarProps:{size:20,round:!0}}),Object(o.c)(Ef.Flex,{ml:"8px",fontSize:15,lineHeight:"20px",color:"GBK05A",children:[Object(o.b)(VS.a,{user:t[0],css:{".UserLink-link":Object.assign({maxWidth:90},Object(Et.d)(1))}}),n&&"等 ".concat(t.length," 人")]})]})}var Px=function(e){var t=e.children,n=e.extraStyle,r=Object(_e.a)(e,["children","extraStyle"]);return Object(o.b)(yf.c,Object.assign({},r,{css:{"&.Button":Object.assign({fontSize:15,padding:0},n)},children:t}))},Lx={invite:{requestText:"转载",cardShowId:8931,clickId:8932},self_recommend:{requestText:"推荐",cardShowId:8957,clickId:8958}};var Mx=Object(st.withRouter)((function(e){var t=Object(a.useState)(!0),n=Object(gt.a)(t,2),r=n[0],i=n[1],c=Object(Ot.useDispatch)(),s=e.entityType,u=e.id,l=e.isAuthor,d=e.onShowAllRequests,f="1"===e.location.query.has_contribution_apply;Object(a.useEffect)((function(){(l||f)&&c(Jc(u))}),[c,f,u,l]);var p=l?"invite":"self_recommend",h=Object(Ot.useSelector)((function(e){return ts(e,{isAuthor:l,requestType:p,entityType:"article"})})),b=Lx[p],v=b.cardShowId,m=b.clickId,g=b.requestText,O=h.map((function(e){return e.proposer})),y=O.length>1,j=l?"申请转载此文章到".concat(y?"他们的":"","专栏"):"申请推荐此文章到你的专栏",E=function(e,t){var n="approve"===t?"通过":"拒绝";q.a.trackEvent(e.target,{id:m,action:"Click",element:"Button"},{button:{text:n}}),c(Xc({requestId:h[0].id,action:t,articleId:u})).then((function(){c(Object(Xr.g)("已".concat(n).concat(g,"申请"))),i(!1)}))};return r&&(null==h?void 0:h[0])?Object(o.b)(im.a,{trackCardShow:!0,module:"Content",moduleName:l?y?"多人申请":"单人申请":"推荐申请处理",view:{id:v,element:"Dialog"},extra:{button:{text:"".concat(g,"申请处理")}},children:Object(o.c)(Ef.Flex,{justifyContent:"space-between",width:600,height:48,p:"12px",bg:"GBK99A",css:{position:"fixed",top:68,left:"50%",transform:"translateX(-50%)",borderRadius:8,boxShadow:"0 4px 8px 0 rgba(0, 0, 0, 0.1)"},children:[Object(o.c)(Ef.Flex,{flex:1,children:[Object(o.b)(Dx,{members:O,hasMultiProposer:y}),Object(o.c)(Ef.Flex,{my:"8px",fontSize:15,lineHeight:1.4,alignItems:"center",color:"GBK02A",children:[Object(o.b)(Ef.Text,{ml:"8px",flexShrink:0,children:j}),!y&&Object(o.b)(Ef.Link,{flex:1,ml:"4px",fontWeight:"bold",color:"GBL05A",href:"https://www.zhihu.com/column/".concat(h[0].destination.id),css:[Object(Et.d)(1)],children:Object(o.b)(tv,{column:h[0].destination})})]})]}),Object(o.c)(Ef.Flex,{ml:"10px",flexShrink:0,alignItems:"center",children:[Object(o.b)(Ef.Flex,{fontSize:15,fontWeight:"bold",lineHeight:1.4,alignItems:"center",children:y?Object(o.b)(Ef.Link,{"data-za-not-track-link":!0,onClick:function(e){q.a.trackEvent(e.target,{id:m,action:"Click",element:"Button"},{button:{text:"ViewAll"}}),d({id:u,entityType:s}),i(!1)},children:Object(o.b)(Px,{preset:"plain",color:"blue",children:"查看详情"})}):Object(o.c)(o.a,{children:[Object(o.b)(Px,{preset:"plain",color:"blue",onClick:function(e){return E(e,"approve")},children:"通过"}),Object(o.b)(Px,{preset:"plain",color:"grey",extraStyle:{marginLeft:22},onClick:function(e){return E(e,"reject")},children:"拒绝"})]})}),Object(o.b)(Ef.Text,{ml:"24px",as:Il.a,color:"GBK07A",size:16,onClick:function(){i(!1)}})]})]})}):null})),Ux={article:{text:"转载",subtitle:"他人申请将你的文章转载至他的专栏",description:"申请转载文章到专栏",zaInfo:{pageShowId:8935,profileEntryCardShowId:8933,profileEntryClickId:8934,listModalCardShowId:8937,listModalClickId:8938}},column:{text:"推荐",subtitle:"他人推荐他们的文章到你的专栏",description:"申请推荐文章到你的专栏",zaInfo:{pageShowId:8961,profileEntryCardShowId:8959,profileEntryClickId:8960,listModalCardShowId:8962,listModalClickId:8963}}},Bx={answer:"Answer",article:"Post"};function zx(e){var t=e.request,n=e.description,r=e.cardShowId,i=e.clickId,c=Object(Ot.useDispatch)(),s=Object(a.useState)(""),u=Object(gt.a)(s,2),l=u[0],d=u[1],f=t.id,p=t.destination,h=t.destination.id,b=t.object,v=b.id,m=b.type,g=b.title,O=b.imageUrl,y=b.voteupCount,j=void 0===y?0:y,E=b.commentCount,C=void 0===E?0:E,w=t.proposer,T=t.created,_=t.updated,S=t.state,A=function(e,t){var n="approve"===t?"通过":"拒绝";q.a.trackEvent(e.target,{id:i,action:"Click",element:"Button"},{button:{text:n}}),c(Xc({requestId:f,action:t,articleId:v})).then((function(){d("已".concat(n))}))};return l||"pending"===S?Object(o.b)(im.a,{trackCardShow:!0,view:{id:r,element:"Card"},module:"Content",content:{type:Bx[m],token:String(v),parent_token:String(h)},children:Object(o.c)(Ef.Box,{p:"16px",mb:"16px",bg:"GBK99A",css:function(e){return Object.assign({},Object(Et.c)({border:"1px solid ".concat(e.colors.GBK08A),borderRadius:8}))},children:[Object(o.c)(Ef.Flex,{alignItems:"center",children:[Object(o.c)(Ef.Flex,{alignItems:"center",children:[Object(o.b)(VS.a,{user:w,avatar:!0,avatarProps:{size:20,round:!0},css:{lineHeight:1}}),Object(o.b)(Ef.Text,{ml:"8px",flex:1,fontSize:15,color:"GBK06A",children:Object(o.b)(VS.a,{user:w,css:{".UserLink-link":Object.assign({maxWidth:90},Object(Et.d)(1))}})})]}),Object(o.c)(Ef.Flex,{ml:"8px",my:"8px",fontSize:15,lineHeight:1.4,alignItems:"center",color:"GBK02A",children:[Object(o.b)(Ef.Text,{flexShrink:0,children:n}),Object(o.b)(Ef.Text,{flex:1,ml:"4px",fontWeight:"bold",color:"GBL05A",css:[Object(Et.d)(1)],children:Object(o.b)(tv,{column:p})})]})]}),Object(o.c)(Ef.Flex,{p:"10px 12px",height:60,bg:"GBK10A",css:{borderRadius:4},children:[Object(o.c)(Ef.Link,{href:"https://zhuanlan.zhihu.com/p/".concat(v),flex:1,css:[Object(Et.d)(1)],children:[Object(o.b)(Ef.Text,{fontSize:14,lineHeight:"20px",color:"GBK03A",children:g}),Object(o.b)(Ef.Text,{mt:"4px",fontSize:12,lineHeight:"14px",color:"GBK07A",children:"".concat(Object(hh.cnNiceNumber)(j),"赞同 · ").concat(Object(hh.cnNiceNumber)(C),"评论")})]}),O&&Object(o.b)(Ef.Box,{width:40,height:40,flexShrink:0,css:{overflow:"hidden",borderRadius:2},children:Object(o.b)(Ef.Image,{width:"100%",height:"100%",src:O,alt:"",css:{filter:"brightness(0.95)",objectFit:"cover"}})})]}),Object(o.c)(Ef.Flex,{mt:"16px",pr:"4px",lineHeight:"21px",justifyContent:"space-between",alignItems:"center",children:[Object(o.b)(Ef.Text,{fontSize:12,color:"GBK07A",children:Object(ci.toRelativeString)(_||T)}),l?Object(o.b)(Ef.Text,{fontSize:15,fontWeight:"bold",color:"GBK08A",children:l}):Object(o.c)(Ef.Flex,{fontSize:15,fontWeight:"bold",justifyContent:"space-between",children:[Object(o.b)(yf.c,{preset:"plain",color:"grey",css:{padding:0},onClick:function(e){return A(e,"reject")},children:"拒绝"}),Object(o.b)(yf.c,{preset:"plain",color:"blue",css:{marginLeft:24},onClick:function(e){return A(e,"approve")},children:"通过"})]})]})]})}):null}function Fx(e){var t,n=e.isAuthor,r=e.isProfile,i=e.republishRequests,c=e.onClose,s=i||{},u=s.id,l=s.entityType,d=s.requestType,f=Object(Ot.useDispatch)(),p=function(){f(r?function(e,t){var n=Zc[t];return function(r,o){var i,a,c=(null!==(i=null===(a=o().republish)||void 0===a?void 0:a[t])&&void 0!==i?i:{}).paging,s=!1===(null==c?void 0:c.isEnd)?c.next:"/members/".concat(e,"/republish-requests?role=").concat(n);return r({meta:{id:e,entityType:t},API:{types:Yc.GET_ALL_REPUBLISH_REQUESTS,endpoint:s},FAILSAFE:!0,schema:no.a.REPUBLISH_ARRAY})}}(u,l):Jc(u))};Object(a.useEffect)(p,[u,l,r,f]);var h=Object(Ot.useSelector)((function(e){return ts(e,{isAuthor:n,isProfile:r,entityType:l,requestType:d})})),b=Object(Ot.useSelector)((function(e){return e.republish[l]})),v=b.isLoading,m=b.paging,g=Ux[l],O=g.text,y=g.subtitle,j=g.description,E=g.zaInfo,C=E.pageShowId,w=E.listModalCardShowId,T=E.listModalClickId,_=null!==(t=null==m?void 0:m.isEnd)&&void 0!==t?t:!r;Object(a.useEffect)((function(){q.a.trackPageShow({id:C})}),[]);return i?Object(o.b)(Ef.Box,{children:Object(o.b)(Wh.b,{size:"large",onClose:function(){p(),c()},title:"文章".concat(O,"申请"),subtitle:y,children:Object(o.b)(Ef.Box,{my:"24px",maxHeight:460,css:{overflowY:"scroll","&::-webkit-scrollbar":{display:"none"}},children:Object(o.b)(Bv.b,{onLoad:p,isLoading:null!=v&&v,isDrained:_,getContainer:function(e){return e.parentElement},children:h.map((function(e){return Object(o.b)(zx,{request:e,description:j,cardShowId:w,clickId:T},e.id)}))})})})}):null}function Gx(e){var t=e.id,n=e.selfRecommendedRepublishRequests,r=Object(Ot.useDispatch)(),i=Object(a.useState)(!1),c=Object(gt.a)(i,2),s=c[0],u=c[1],l=Object(a.useMemo)((function(){return n.map((function(e){var t=e.approver,n=e.destination;return"「".concat(t.name,"」的专栏「").concat(n.title,"」")})).join("、")}),[n]);return Object(o.c)(im.a,{view:{id:8964,element:"Text"},trackCardShow:!0,extra:{button:{text:"撤销推荐"}},children:[Object(o.c)(Ef.Text,{as:"span",children:[" · ",Object(o.b)(Ef.Text,{as:"span",color:"GBL01A",css:{cursor:"pointer"},onClick:function(e){e.stopPropagation(),u(!0),q.a.trackEvent(e.target,{id:8965,action:"Click",element:"Text"},{button:{text:"撤销推荐"}})},children:"撤销推荐"})]}),Object(o.b)(Wh.b,{className:"VerificationForm-allowUseCreatorModal",title:"要撤销推荐吗?",closeButton:null,maskClosable:!1,children:s&&Object(o.c)(o.a,{children:[Object(o.b)("span",{children:"当前文章被推荐到".concat(l,",要撤销吗?")}),Object(o.c)(Wh.a,{direction:"horizontal",children:[Object(o.b)(yf.c,{onClick:function(){return u(!1)},children:"暂不撤销"}),Object(o.b)(yf.c,{preset:"primary",color:"blue",onClick:function(){q.a.trackEvent(null,{id:8966,action:"Cancel",element:"Button"},{button:{text:"撤销推荐"}});var e=n.map((function(e){return r(Xc({requestId:e.id,action:"cancel",articleId:t}))}));Promise.all(e).then((function(){r(Object(Xr.g)("撤销成功"))})),u(!1)},children:"撤销推荐"})]})]})})]})}var Vx=n(712),Hx=n.n(Vx);function qx(e){if(!e)return!1;var t=e.reviewInfo||{},n=t.isReviewing,r=t.type;return!(n&&"create"===r)}function Kx(e){if(!e||!Array.isArray(e.contributions))return null;var t=e.contributions.find((function(e){return"accepted"===e.state}));return t?t.column:null}var Wx=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"?utm_medium=column&utm_content=".concat(e)},Yx=function(e,t){Object(_.b)("zhihu://articles/".concat(e).concat(Wx(t)))},Qx=function(e,t){Object(_.b)("zhihu://columns/".concat(e).concat(Wx(t)))};function Zx(e){return e&&e.offsetTop?e.offsetTop+(e.offsetParent?Zx(e.offsetParent):0):0}var Jx=Object(Br.createSelector)([function(e){return e.post},function(e){return e.columns},function(e){return e.articleContribution.deleteContributeIdList}],(function(e,t,n){return{contributions:Array.isArray(e&&e.contributions)?e.contributions.filter((function(e){var t=e.id;return!n.includes(t)})).map((function(e){var n=e.column,r=e.state,o=e.id;return{column:t[n.id],state:r,id:o}})):[]}})),Xx=Object(Br.createSelector)([function(e){return e.articleContribution.handledContributeIdList},function(e){return e.articleContribution.contributeRequests}],(function(e,t){return{contributeRequests:t.filter((function(t){var n=t.column;return!e.includes(n.id)}))}})),$x=Object(Br.createSelector)([function(e){return e.post},function(e){return e.reward}],(function(e,t){var n=e.canOpenTipjar,r=void 0!==n&&n,o=e.canTip,i=e.id,a=t.article[i]||{},c=a.bio,s=a.income,u=a.tipjarorsCount,l=a.tradeNumber,d=a.tipjarors,f=a.users,p=a.canTip,h=o,b=r;return"boolean"==typeof p&&(h=p,b=!p),{rewardInfo:{canOpenReward:b,isRewardable:h,rewardMemberCount:u,tagline:c,rewardTotalMoney:s},articleReward:{article:Object(Ut.a)({},i,{users:f||d,tradeNumber:l})}}}));function eN(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var tN=function(e){Object(ml.a)(n,e);var t=eN(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={showAllReviewers:!1,modalShown:!1,reviewersChangeLine:!1},e.handleListHide=function(){return e.setState({modalShown:!1})},e.handleListShown=function(){return e.setState({modalShown:!0})},e.handleShowAllReviewers=function(){var t=e.props.isAuthor;e.state.showAllReviewers||e.setState({showAllReviewers:!0}),t&&e.setState({showReviewComment:!0}),e.handleListShown()},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=document.querySelector(".TopicList").offsetHeight;this.handleReviewersChangeLine(e>=45)}},{key:"handleReviewersChangeLine",value:function(e){this.setState({reviewersChangeLine:e})}},{key:"render",value:function(){var e=this.props,t=e.reviewers,n=e.type,r=e.isAuthor,i=this.state,a=i.showAllReviewers,c=i.reviewersChangeLine,s=i.modalShown,u=t.slice(0,a?t.length:4).map((function(e,n){var r;return n!==t.length-1&&e.name.indexOf("、")<0&&(r=Object(o.b)("span",{children:"、"})),Object(o.c)("div",{className:"PostIndex-reviewers-userlink-wrapper",children:[Object(o.b)(VS.a,{className:"PostIndex-reviewerLink",blank:!0,user:e},e.id),r]},n)}));return Object(o.c)("div",{className:rl()("PostIndex-reviewers",{"PostIndex-reviewers-left":c}),children:[u,Boolean(t.length)&&Object(o.b)(yf.c,{preset:"plain",className:rl()("PostIndex-showReviewerButton",(t.length>4||r)&&"is-clickable"),onClick:this.handleShowAllReviewers,children:t.length>4&&!a?"等".concat(t.length,"人亦有帮助"):"亦有帮助"}),Object(o.b)(Pt.b,{size:"fullPage",onClose:this.handleListHide,children:s&&Object(o.b)(j_,{voteupCount:t.length,items:t,isDrained:!1,isFetching:!1,type:n,onLoad:function(){},text:"亦有帮助"})})]})}}]),n}(a.Component);function nN(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}tN.propTypes={reviewers:jl.a.array.isRequired,type:jl.a.string,isAuthor:jl.a.bool.isRequired};var rN=function(e){Object(ml.a)(n,e);var t=nN(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.fullScreen,n=e.imageUrl,r=e.title,i=rl()("TitleImage",{"TitleImage--fullScreen":t}),a=t?Object(Gn.imgUrl)(n):Object(Gn.imgUrl)(n,"1440w");return t?Object(o.b)("div",{className:i,style:{backgroundImage:"url(".concat(a,")")}}):Object(o.b)("img",{className:i,src:a,alt:r})}}]),n}(a.Component);function oN(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}rN.propTypes={fullScreen:jl.a.bool,imageUrl:jl.a.string.isRequired,title:jl.a.string},rN.defaultProps={title:"",fullScreen:!1};var iN=function(e){Object(ml.a)(n,e);var t=oN(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).openInApp=function(){var t=e.props.postId;Yx(t,"follow_column")},e.openLogin=function(){location.assign("https://www.zhihu.com/signin?next=".concat(encodeURIComponent(location.href)))},e.handleFollowButtonClick=function(t){var n=e.context,r=n.isMobile,o=n.currentUser,i=e.props,a=i.followOpenInApp,c=i.author,s=Boolean(o),u=c.isFollowing?"UnFollow":"Follow";return av(t,{id:1285,action:u}),a&&r?e.openInApp():!!s||e.openLogin()},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.context,t=e.isMobile,n=e.currentUser,r=this.props,i=r.author,a=r.isAuthor,c=Boolean(n);return Object(o.c)("div",{className:rl()("Post-Author",{"Post-Author-Mobile":t}),children:[Object(o.b)(FE.a,{author:i,roundAvatar:!0,avatarSize:t?34:38}),!a&&(c||t)&&Object(o.b)(Fk.a,{preset:"primary",type:i.type,id:i.urlToken,gender:!t&&i.gender,isFollowing:i.isFollowing,onClick:this.handleFollowButtonClick})]})}}]),n}(a.Component);function aN(e){var t=e.id,n=e.shown,r=e.onClose,i=Object(a.useState)(!1),c=Object(gt.a)(i,2),s=c[0],u=c[1],l=Object(a.useState)(!1),d=Object(gt.a)(l,2),f=d[0],p=d[1],h=Object(a.useState)(""),b=Object(gt.a)(h,2),v=b[0],m=b[1],g=Object(Ot.useDispatch)(),O=Object(a.useRef)([]).current,y=Object(Ot.useSelector)((function(e){return e.me.columnContributions.filter((function(t){var n;return"normal"===t.columnType&&(null===(n=t.author)||void 0===n?void 0:n.urlToken)===e.currentUser}))}))||O,j=function(){g(Object(B.e)()).finally((function(){0===y.length&&r()}))},E=function(){m(""),r()};return Object(a.useEffect)((function(){p(0===y.length)}),[y]),n?Object(o.c)("div",{children:[Object(o.b)(Wh.b,{size:"large",onClose:E,title:"申请转载到我的专栏",subtitle:"选择一个专栏,向作者发送文章转载申请",children:y.length>0&&Object(o.b)(im.a,{view:{id:8929,element:"Dialog"},extra:{button:{text:"申请转载到我的专栏"}},module:"Content",card:{content:{type:"Column",token:String(v)}},trackCardShow:!0,children:Object(o.c)("div",{children:[Object(o.b)(Ef.Box,{maxHeight:460,css:{overflowY:"scroll","&::-webkit-scrollbar":{display:"none"}},children:y.map((function(e,t){return Object(o.c)(Ef.Flex,{px:"8px",py:"16px",alignItems:"center",justifyContent:"space-between",as:"label",htmlFor:"RepublishApply-columnItem-".concat(t),css:function(e){return{borderBottom:"1px solid ".concat(e.colors.GBK10A)}},children:[Object(o.c)(Ef.Box,{flex:1,children:[Object(o.b)(Ef.Text,{fontSize:18,fontWeight:"bold",color:"GBK02A",lineHeight:"22px",css:[Object(Et.d)(1)],children:e.title}),Object(o.c)(Ef.Text,{mt:"12px",fontSize:14,lineHeight:1,color:"GBL05A",children:[e.articlesCount||0," 篇内容 ·"," ",e.voteupCount||0," 赞同"]})]}),Object(o.b)(Ef.Box,{flexShrink:0,as:"input",type:"radio",name:"RepublishApply-columnInput",id:"RepublishApply-columnItem-".concat(t),checked:e.id===v,onChange:function(){return m(e.id)}})]},e.id)}))}),Object(o.b)(Pt.a,{children:Object(o.b)(yf.c,{disabled:!v,preset:"primary",color:"blue",onClick:function(e){q.a.trackEvent(e.target,{id:8930,action:"Click",element:"Button"},{button:{text:"申请转载"}}),g(Xc({action:"create",articleId:t,columnId:v})).then((function(){g(Object(Xr.g)("已发送转载申请!"))})).finally(E)},children:"申请转载"})})]})})}),Object(o.b)(Wh.b,{onClose:r,title:"要创建专栏吗?",children:f&&Object(o.c)("div",{children:["你还没有可以用来转载文章的专栏,要创建专栏吗?",Object(o.c)(Pt.a,{direction:"horizontal",children:[Object(o.b)(yf.c,{onClick:r,children:"取消"}),Object(o.b)(yf.c,{preset:"primary",color:"blue",onClick:function(){p(!1),u(!0)},children:"创建专栏"})]})]})}),Object(o.b)(Vb,{onClose:function(){u(!1),j()},shown:s,disableRedirect:!0})]}):null}iN.contextTypes={currentUser:jl.a.object,isMobile:jl.a.bool},iN.propTypes={author:jl.a.object.isRequired,postId:jl.a.number.isRequired,isAuthor:jl.a.bool,followOpenInApp:jl.a.bool};var cN=function(e){var t=e.show,n=e.children,r=e.className;return Object(iI.c)(t,null,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}}).map((function(e){var t=e.item,i=e.key,a=e.props;return t&&Object(o.b)(iI.a.div,{style:a,className:r,children:n},i)}))},sN=function(e){return Object(o.b)(cf.a,{children:Object(o.b)(cN,Object.assign({},e))})},uN=function(e){return Boolean(1===e)},lN=function(e){return Boolean(-1===e)},dN=function(e,t){var n=uN(t)?function(e){return Math.max(e-1,0)}(e):lN(t)?e:function(e){return e+1}(e),r=uN(t)||lN(t)?"赞同 ":"已赞同 ";return 0===n?"赞同":r+Object(hh.cnNiceNumber)(n).trim()};function fN(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var pN=function(e){Object(ml.a)(n,e);var t=fN(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={show:!1,justLiked:!1},e.threshold=80,e.updateVisibility=function(){var t=window.pageYOffset;t>e.threshold&&!e.state.shown?e.setState({shown:!0,justLiked:!1}):t<e.threshold&&e.state.shown&&e.setState({shown:!1,justLiked:!1})},e.handleToggleVote=e.context.authRequired((function(t){var n=e.props,r=n.id,o=n.updateArticleVote,i=n.voting;q.a.trackEvent(t.target,{action:1===i?"UnUpvote":"Upvote",element:"Button"}),o(r,1===i?"neutral":"up")}),le.J.vote),e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=document.querySelector(".TitleImage--fullScreen");e&&(this.threshold=e.offsetHeight+this.threshold),this.updateVisibility()}},{key:"componentDidUpdate",value:function(e){var t=this;1!==this.props.voting||1===e.voting||this.state.justLiked||this.setState({justLiked:!0},(function(){t.timeoutId=setTimeout((function(){return t.setState({justLiked:!1})}),300)}))}},{key:"componentWillUnmount",value:function(){this.timeoutId&&clearTimeout(this.timeoutId)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.voting,r=e.count,i=e.url,c=e.title,s=e.authorName,u=e.isAuthor,l=e.stickyFixed,d=this.state,f=d.justLiked,p=d.shown,h=Object(o.c)("button",{children:[Object(o.b)("div",{className:"Post-SideActions-icon",children:Object(o.b)(Tg,{center:!0,size:20})}),"分享"]}),b=dN(r,n),v=function(e,t){return 0===e?"赞同":(uN(t)?"已赞同 ":"赞同 ")+Object(hh.cnNiceNumber)(e).trim()}(r,n);return Object(o.c)(a.Fragment,{children:[Object(o.c)(sN,{show:p&&l,className:rl()("Post-SideActions",{"Post-SideActionsDisabled":u}),children:[!Qs.d.includes(t)&&Object(o.c)("button",{disabled:u,className:rl()("like",{active:1===n,justLiked:f}),onClick:this.handleToggleVote,children:[Object(o.b)("div",{className:"Post-SideActions-icon",children:Object(o.b)(lT.a,{className:"Post-SideActions-upIcon",size:16})}),Object(o.b)("div",{className:"likeCount",children:Object(o.b)("div",{className:"likeCount-inner","data-previous":b,children:v})})]}),Object(o.b)(Ig,{id:t,type:"article",url:i,title:c,authorName:s,toggler:h,positionStatus:"fixed"})]}),Object(o.b)(ud,{threshold:50,emitOnce:!1,onScrollUp:this.updateVisibility,onScrollDown:this.updateVisibility})]})}}]),n}(a.Component);pN.contextTypes={authRequired:jl.a.func},pN.propTypes={id:jl.a.oneOfType([jl.a.number,jl.a.string]).isRequired,isAuthor:jl.a.bool,voting:jl.a.oneOf([-1,0,1]).isRequired,count:jl.a.number,url:jl.a.string.isRequired,title:jl.a.string.isRequired,authorName:jl.a.string.isRequired},pN.defaultProps={voting:0};var hN=Object(Lt.compose)(Object(Ot.connect)(null,{updateArticleVote:mo.h}))(pN),bN=function(e){var t=e.isLiked,n=e.onClick,r=Object(_e.a)(e,["isLiked","onClick"]);return Object(o.b)(yf.c,Object.assign({preset:"plain",onClick:n,icon:DS.a,label:t?"取消喜欢":"喜欢"},r))};function vN(e){var t=e.onClick,n=Object(_e.a)(e,["onClick"]);return Object(o.b)(yf.c,Object.assign({preset:"plain",onClick:t,icon:TR,label:"申请转载"},n))}var mN={need_review:"转载申请需要审核",public:"允许所有人转载到专栏",reserved:"不允许他人转载到专栏"};function gN(e){var t=e.current,n=e.id,r=e.onChange;return Object(o.b)(o.a,{children:Object.keys(mN).map((function(e){return Object(o.b)(Yv.a,{onClick:function(){return function(e){e!==t&&(q.a.trackEvent(null,{id:8939,action:"Click",element:"Button"},{button:{text:mN[e]}}),r(n,e))}(e)},checked:e===t,children:mN[e]},e)}))})}function ON(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var yN=function(e){Object(ml.a)(n,e);var t=ON(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={deleteModalShown:!1,reportModalShown:!1,addAnnotationModalShown:!1,cancelAnnotationModalShown:!1,showAttention:!1},e.onCloseReward=function(){var t=e.props,n=t.article,r=t.rewardInfo;(0,t.updateArticleReward)(n.id,r.tagline,!1)},e.isColumnPage=function(){var t=e.props.routes;return"Column"===t[t.length-1].name},e.handleDelete=function(){var t=e.props,n=t.showNotification,r=t.article,o=t.deletePost,i=t.router,a=e.isColumnPage(),c=Kx(r);o(r.id).then((function(){n("文章已删除"),a?window.location.reload():c&&c.id?i.replace("/".concat(c.id)):location.href="".concat(le.v,"/people/").concat(r.author.urlToken,"/posts")}))},e.handleModalClose=function(){e.setState({deleteModalShown:!1,reportModalShown:!1,addAnnotationModalShown:!1,cancelAnnotationModalShown:!1})},e.handleReportButtonClick=e.context.authRequired((function(t){av(t,1294),e.setState({reportModalShown:!0})}),le.J.report),e.handleResetAnnotation=function(){av(event,1293),e.setState({cancelAnnotationModalShown:!0})},e.handleAddAnnotation=function(t){av(t,1293),e.setState({addAnnotationModalShown:!0})},e.handleMenuClick=function(t,n){var r=n.isAuthor,o=n.isMobile;if(av(t,r&&!o?1283:1292),r){var i=e.props,a=i.getCommercialInfo,c=i.article.id;e.commercialInfoPromise_=a(c).then((function(e){return Boolean(e.payload&&e.payload.isAudit)}),(function(){return!1}))}},e.showEditAlert=function(){return Ch.a.confirm("文章在投放中,如修改会导致广告暂停,再次审核通过后,广告才会开启。确认修改?",{title:"确认修改"})},e.hendleEditButtonClick=function(){var t=wv(e.props.article.id);(e.commercialInfoPromise_?e.commercialInfoPromise_:Promise.resolve(!1)).then((function(t){return t?e.showEditAlert():Promise.resolve()})).then((function(){return location.href=t}),(function(){}))},e.renderReportItem=function(){return Object(o.c)(o.a,{children:[Object(o.b)(bb.b,{onClick:e.handleReportButtonClick,children:"举报"}),Object(o.b)(bb.a,{})]})},e.renderReportModal=function(){var t=e.props.article,n=t.type,r=t.id,i=e.state.reportModalShown;return Object(o.b)(Bf.a,{type:n,urlToken:r,isColumnArticle:e.isColumnPage(),shown:i,onClose:e.handleModalClose,zaEnabled:!0})},e.renderAnnotationItem=function(){var t=e.props.article.annotationDetail;return Object(o.b)(bb.b,{onClick:t?e.handleResetAnnotation:e.handleAddAnnotation,children:t?"撤销标记":"标记内容"})},e.renderAnnotationModal=function(){var t=e.props,n=t.addAnnotation,r=t.cancelAnnotation,i=t.showNotification,a=t.article.id,c=e.state,s=c.addAnnotationModalShown,u=c.cancelAnnotationModalShown;return Object(o.c)(o.a,{children:[Object(o.b)(nm,{addAnnotation:n,onClose:e.handleModalClose,shown:s,type:Qs.b,urlToken:a,showNotification:i}),Object(o.b)(om,{cancelAnnotation:r,onClose:e.handleModalClose,shown:u,type:Qs.b,urlToken:a,showNotification:i})]})},e.renderDeleteItem=function(){return Object(o.c)(o.a,{children:[Object(o.b)(bb.b,{onClick:function(){return e.setState({deleteModalShown:!0})},children:"删除"}),Object(o.b)(bb.a,{})]})},e.renderDeleteModal=function(){var t=e.context.isMobile,n=e.state.deleteModalShown;return Object(o.b)(fC,{isMobile:t,title:"删除文章",subtitle:"确定删除这篇文章?",shown:n,onCancel:e.handleModalClose,onSubmit:e.handleDelete})},e.renderEditItem=function(){return Object(o.c)(o.a,{children:[Object(o.b)(bb.b,{onClick:e.hendleEditButtonClick,children:"修改文章"}),Object(o.b)(bb.a,{})]})},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this;if(this.props.justPublished){if(w.a.get("leadCommentSetting"))return;this.forceTimeId=setTimeout((function(){e.reallytarget=e.target,e.setState({showAttention:!0})}),250),this.animateTimeId=setTimeout((function(){e.setState({showAttention:!1}),w.a.set("leadCommentSetting",!0)}),3e3)}}},{key:"componentWillUnmount",value:function(){clearTimeout(this.forceTimeId),clearTimeout(this.animateTimeId)}},{key:"render",value:function(){var e=this,t=this.context,n=t.isMobile,r=t.currentUser,i=this.state.showAttention,a=this.props,c=a.article,s=a.rewardInfo,u=c.author,l=c.annotationAction,d=c.commentPermission,f=c.copyrightPermission,p=KT(r,u),h=p&&!n,b=!p&&Array.isArray(l)&&(l.indexOf(Qs.a.add)>=0||l.indexOf(Qs.a.cancel)>=0),v=!p,m=d&&!n&&p,g=s.isRewardable&&p,O=Object(o.b)("div",{children:Object(o.b)(yf.c,{preset:"plain",icon:h?hb.a:cv.a,label:h?"设置":""})});return Object(o.c)("div",{className:"Post-ActionMenuButton",ref:function(t){e.target=t},children:[Object(o.b)(Lh.a,{placement:"top",isOpen:i,target:this.reallytarget,isFixed:!0,children:"你可以在这里设置评论权限"}),Object(o.c)(bb.c,{menuClassName:rl()("Post-ActionMenu",{"Post-ActionMenu--withCommentSettings":m}),toggler:O,onClick:function(t){return e.handleMenuClick(t,{isAuthor:p,isMobile:n})},stickHover:!0,reversed:!0,children:[v&&this.renderReportItem(),p&&this.renderEditItem(),p&&Object(o.c)(o.a,{children:[Object(o.b)(gN,{current:f,id:c.id,onChange:this.props.updateRepublishPermission}),Object(o.b)(bb.a,{})]}),m&&Object(o.c)(o.a,{children:[Object(o.b)(dm.c,{current:d,target:c,onChange:this.props.updateCommentPermission}),Object(o.b)(bb.a,{})]}),g&&Object(o.b)(bb.b,{onClick:this.onCloseReward,children:"关闭赞赏"}),p&&this.renderDeleteItem(),b&&this.renderAnnotationItem()]}),v&&this.renderReportModal(),p&&this.renderDeleteModal(),b&&this.renderAnnotationModal()]})}}]),n}(a.Component);yN.contextTypes={currentUser:jl.a.object,isMobile:jl.a.bool,authRequired:jl.a.func},yN.propTypes={article:jl.a.object.isRequired,addAnnotation:jl.a.func.isRequired,cancelAnnotation:jl.a.func.isRequired,deletePost:jl.a.func.isRequired,showNotification:jl.a.func.isRequired,updateCommentPermission:jl.a.func.isRequired,updateRepublishPermission:jl.a.func.isRequired,updateArticleReward:jl.a.func.isRequired,rewardInfo:jl.a.shape({isRewardable:jl.a.bool,tagline:jl.a.string}),justPublished:jl.a.bool},yN.defaultProps={rewardInfo:{isRewardable:!1,tagline:""}};var jN=Object(Ot.connect)(null,{addAnnotation:sm,cancelAnnotation:um,deletePost:ru.b,showNotification:Xr.g,updateCommentPermission:ru.g,updateRepublishPermission:function(e,t){return function(n,r){var o=r().entities.articles[e];return n({API:{types:Yc.UPDATE_REPUBLISH_PERMISSION,endpoint:"/articles/".concat(e,"/copyright-permission"),method:"PUT",body:{copyright_permission:t},fetchOptions:{bodyType:"form"}},UPDATE:{request:{articles:Object(Ut.a)({},e,{copyrightPermission:t})},failure:{articles:Object(Ut.a)({},e,o)}}})}},updateArticleReward:Xo.l,getCommercialInfo:ru.c})(Object(st.withRouter)(yN));function EN(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var CN=function(e){Object(ml.a)(n,e);var t=EN(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleVote=function(t){var n=e.props,r=n.article.id;(0,n.updateArticleVote)(r,t)},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this.context.currentUser,t=this.props,n=t.article,r=n.id,o=n.author,i=t.checkIfCanConvertToVessay;KT(e,o)&&i(r,"article")}},{key:"render",value:function(){var e=this.context,t=e.currentUser,n=e.isMobile,r=e.authRequired,i=this.props,c=i.rewardInfo,s=i.article,u=i.positionStatus,l=i.onCommentClick,d=i.onFavClick,f=i.onLikeClick,p=i.onRepublishClick,h=i.children,b=i.justPublished,v=i.onContributeClick,m=i.isInListItem,g=i.toggleLike2020,O=s.id,y=s.type,j=s.author,E=s.voteupCount,C=s.voting,w=s.title,T=s.commentCount,_=s.adminClosedComment,S=s.isLiked,A=s.copyrightPermission,k=s.enableConvert,R=qx(s),I=KT(t,j),x=t&&t.isOrg,N=R&&!x,D=Boolean(Kx(s)),P=I&&!n&&!D&&!m,L=!n&&!I&&["public","need_review"].includes(A),M=Lm("article",O),U=!n&&k&&I&&Object(o.c)(K.a,{as:yf.c,zaAction:"OpenUrl",zaText:"生成视频",zaType:"Button",preset:"plain",onClick:function(){return window.open(M)},className:"ContentItem-convertVideoButton",extra:{link:{url:M}},children:[Object(o.b)(Pm,{}),Object(o.b)("span",{children:"生成视频"})]});return Object(o.c)(Og.a,{children:[R&&Object(o.c)(a.Fragment,{children:[!Qs.d.includes(O)&&(n?Object(o.b)(wk,{id:O,type:y,liked:1===C,count:E,disabled:I,disableAuth:Boolean(f),handleToggleGuide:f}):Object(o.b)(mT,{type:y,count:E,onVote:this.handleVote,voting:C,isOwner:I,handleToggleGuide:f})),Object(o.b)("div",{css:{marginLeft:Qs.d.includes(O)?-24:0},children:Object(o.b)(Lg,{className:"BottomActions-CommentBtn",onClick:l,commentClosed:_,count:T,positionStatus:u})}),!n&&Object(o.b)(Ig,{id:O,type:"article",url:Cv(O),title:w,authorName:j&&j.name,positionStatus:u}),!n&&Object(o.b)(bN,{className:"ContentItem-action",onClick:r((function(){q.a.trackEvent(null,{id:S?7695:7694,action:S?"UnLike":"Like"}),g(O)})),isLiked:S})]}),N&&Object(o.b)(ug,{onClick:d,label:n?"":"收藏"}),L&&Object(o.b)(vN,{onClick:p}),Object(o.b)(jN,{article:s,rewardInfo:c,justPublished:b}),P&&Object(o.b)(yf.c,{preset:"plain",onClick:v,icon:TR,label:"投稿"}),U,h]})}}]),n}(a.Component);CN.contextTypes={currentUser:jl.a.object,authRequired:jl.a.func,isMobile:jl.a.bool},CN.propTypes={article:jl.a.object.isRequired,rewardInfo:jl.a.shape({isRewardable:jl.a.bool,tagline:jl.a.string}),positionStatus:jl.a.string,onCommentClick:jl.a.func.isRequired,onFavClick:jl.a.func.isRequired,onLikeClick:jl.a.func,onContributeClick:jl.a.func,justPublished:jl.a.bool,isInListItem:jl.a.bool};var wN=Object(Lt.compose)(Object(Ot.connect)(null,{updateArticleVote:mo.h,toggleLike2020:mo.f,checkIfCanConvertToVessay:zt.c}))(CN);function TN(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var _N=function(e){Object(ml.a)(n,e);var t=TN(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleNextArticleLink=function(){Promise.resolve(q.a.trackEvent(Object(kl.a)(e),{action:"OpenUrl",name:"下一篇"})).then((function(){location.href=Cv(e.props.next.id)}))},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props.next.title;return Object(o.c)("div",{className:"NextArticle",onClick:this.handleNextArticleLink,children:[Object(o.b)("span",{className:"NextArticle-Next",children:"下一篇"}),Object(o.b)("span",{className:"NextArticle-Title",children:e})]})}}]),n}(a.Component);function SN(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var AN=function(e){Object(ml.a)(n,e);var t=SN(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={favlistsShown:!1,republishApplyShown:!1,positionStatus:"normal"},e.handleOpenApp=function(t){var n=e.context.isMobile,r=e.props.article.id;if(n&&e.props.shouldSpecialOia)Yx(r,"vote");else{for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];t.apply(void 0,i)}},e.handleToggleGuide=function(){return e.handleOpenApp()},e.handleFavButtonClick=function(t){av(t,1282),e.handleOpenApp(e.handleFavlistsShown)},e.handleRepublishButtonClick=function(t){av(t,8928,{button:{text:"申请转载"}}),e.context.authRequired((function(){return e.setState({republishApplyShown:!0})}))()},e.handlePositionStatusChange=function(t){e.setState({positionStatus:t})},e.handleFavlistsShown=function(){e.context.authRequired((function(){return e.setState({favlistsShown:!0})}),le.J.favlists)()},e.handleFavlistHide=function(){e.setState({favlistsShown:!1})},e.handleScrollIntoComment=function(){if(e.context.isMobile){var t=document.querySelector(e.context.isMobile?".Post-MobileComments":".Comments-container");t&&t.scrollIntoView({block:"start",behavior:"smooth"})}else{var n=e.state.positionStatus;if("fixed"===n)e.props.updateCommentStatus(n);else{var r=document.querySelector(".Comments-container");r&&r.scrollIntoView({block:"start",behavior:"smooth"})}}},e.showComments=function(t){av(t,1281),e.handleOpenApp(e.handleScrollIntoComment)},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this,t=this.context,n=t.isMobile,r=t.currentUser,i=this.state,a=i.favlistsShown,c=i.republishApplyShown,s=i.positionStatus,u=this.props,l=u.article,d=u.paging,f=u.rewardInfo,p=u.justPublished,h=u.onContributeClick,b=u.shouldSpecialOia,v=l.id,m=l.author,g=l.voteupCount,O=l.voting,y=l.title,j=qx(l),E=KT(r,m),C="fixed"===s,w={content:{type:"Post",id:String(v)}},T=!n&&j;return Object(o.b)(ql.a,{bottom:!0,onPositionStatusChange:this.handlePositionStatusChange,children:Object(o.c)("div",{ref:function(t){e.actionEle=t},className:"RichContent-actions",children:[Object(o.b)(im.a,{module:"BottomBar",card:w,children:Object(o.c)(wN,{rewardInfo:f,article:l,positionStatus:s,onCommentClick:this.showComments,onFavClick:this.handleFavButtonClick,onLikeClick:n&&b?this.handleOpenApp:null,onRepublishClick:this.handleRepublishButtonClick,justPublished:p,onContributeClick:h,children:[d.next&&!n&&C&&Object(o.b)(_N,{next:d.next}),Object(o.b)(Zm,{id:v,type:"article",shown:a,onClose:this.handleFavlistHide}),Object(o.b)(aN,{id:v,shown:c,onClose:function(){e.setState({republishApplyShown:!1})}})]})}),T&&Object(o.b)(im.a,{module:"LeftTabBar",card:w,children:Object(o.b)(hN,{stickyFixed:C,id:v,isAuthor:E,voting:O,count:g,url:Cv(v),title:y,authorName:m&&m.name})})]})})}}]),n}(a.Component);AN.contextTypes={currentUser:jl.a.object,authRequired:jl.a.func,isMobile:jl.a.bool},AN.propTypes={article:jl.a.object.isRequired,paging:jl.a.object.isRequired,isRewardable:jl.a.bool,tagline:jl.a.string,updateCommentStatus:jl.a.func,justPublished:jl.a.bool,onContributeClick:jl.a.func},AN.defaultProps={paging:{}};var kN=Object(Lt.compose)(Object(Ot.connect)((function(e){return{shouldSpecialOia:Object(z.j)(e)}})))(AN);function RN(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var IN=function(e){Object(ml.a)(n,e);var t=RN(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={previewImage:null},e.handleClick=function(t){var n=t.target;"IMG"===n.tagName&&n.classList.contains("zh-lightbox-thumb")&&e.setState({previewImage:n})},e.handlePreviewImageClose=function(){e.setState({previewImage:null})},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.html,n=e.ecommerce,r=e.author,i=e.id,a=e.title,c=e.url,s=e.isVisible,u=e.isAuthor,l=e.shouldShowCatalog,d=this.state.previewImage;return Object(o.c)("div",{className:"Post-RichTextContainer",onClick:this.handleClick,children:[!1===s&&u&&Object(o.b)(ek,{}),Object(o.b)(bC.a,{html:t,className:"Post-RichText",ecommerce:n,sourceType:"article",sourceId:i,shouldShowCatalog:l}),Object(o.b)(QT,{type:"article",author:r,objectId:i,title:a,url:c}),d&&Object(o.b)(TT.a,{img:d,onClose:this.handlePreviewImageClose})]})}}]),n}(a.Component);function xN(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}IN.propTypes={html:jl.a.string.isRequired,author:jl.a.object};var NN=function(e){Object(ml.a)(n,e);var t=xN(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className;return Object(o.b)("h3",{className:rl()("BlockTitle",n),children:t})}}]),n}(a.PureComponent);function DN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}NN.propTypes={className:jl.a.string};var PN=function(e){Object(ml.a)(n,e);var t=DN(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).openApp=function(){return Yx(e.props.postId,"view_all")},e}return Object(vl.a)(n,[{key:"render",value:function(){return Object(o.b)("button",{onClick:this.openApp,className:"Post-Button-ViewMore",children:"查看更多"})}}]),n}(a.Component);PN.propTypes={postId:jl.a.number.isRequired};var LN=PN;function MN(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var UN=function(e){return e.displayName||e.name||"Component"};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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var zN=function(e){Object(ml.a)(n,e);var t=BN(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).openInApp=function(t){if(e.props.shouldSpecialOia){t.preventDefault();var n=e.props.article;Yx(n.id,"content_list")}},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){this.RecommendItemTitleEl.offsetHeight>25&&(this.RecommendItemSummaryEl.style.display="none");var e=this.props.article;e.author||window.Raven.captureException(new Error("Missing `author` in article data."),{tags:{scope:"Column"},extra:{article:e}})}},{key:"render",value:function(){var e=this,t=this.props,n=t.article,r=t.editorChoice,i=n.imageUrl,a=n.title,c=n.excerpt,s=n.author,u=(s=void 0===s?{}:s).name,l=void 0===u?"":u,d=n.column,f=n.url,p=i?64:Qs.g,h=d&&l.length>4?"".concat(l.slice(0,4),"..."):l,b=d?" · 发表于".concat(d.title):"";return Object(o.c)("a",{onClick:this.openInApp,href:f,className:"MobilePostItem",children:[Object(o.c)("div",{className:"MobilePostItem-Description",children:[Object(o.b)("div",{className:"MobilePostItem-Title",ref:function(t){e.RecommendItemTitleEl=t},children:a}),Object(o.b)("div",{className:"MobilePostItem-Summary u-ellipsis",ref:function(t){e.RecommendItemSummaryEl=t},children:Ub(c,p)}),Object(o.c)("div",{className:"MobilePostItem-Footer",children:[r&&Object(o.b)("span",{className:"MobilePostItem-edited",children:"编辑精选"}),h,b]})]}),i&&Object(o.b)("img",{src:Object(Gn.imgUrl)(i,"ipico"),srcSet:"".concat(Object(Gn.imgUrl)(i,"250x250")," 2x, ").concat(Object(Gn.imgUrl)(i,"ms")," 3x"),className:"MobilePostItem-TitleImage",alt:a})]})}}]),n}(a.PureComponent);zN.contextTypes={},zN.propTypes={article:jl.a.object.isRequired,editorChoice:jl.a.bool.isRequired};var FN=Object(Lt.compose)(Object(Ot.connect)((function(e){return{shouldSpecialOia:Object(z.j)(e)}})))(zN);function GN(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var VN=function(e){Object(ml.a)(n,e);var t=GN(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this.props.article;e.author||window.Raven.captureException(new Error("Missing `author` in article data."),{tags:{scope:"Column"},extra:{article:e}})}},{key:"render",value:function(){var e=this.props.article,t=e.imageUrl,n=e.title,r=e.excerpt,i=e.author,a=(i=void 0===i?{}:i).name,c=void 0===a?"":a,s=e.column,u=e.url,l=s&&c.length>5?"".concat(c.slice(0,5),"..."):c,d="";return s&&(d=s.title.length>5?"发表于".concat(s.title.slice(0,5),"..."):"发表于".concat(s.title)),Object(o.b)("a",{href:u,className:"PostItem",children:Object(o.c)("div",{children:[t&&Object(o.b)("img",{src:Object(Gn.imgUrl)(t,"250x0"),srcSet:"".concat(Object(Gn.imgUrl)(t,"qhd")," 2x"),className:"PostItem-TitleImage",alt:n}),Object(o.b)("h1",{className:"PostItem-Title",children:n}),!t&&Object(o.b)("p",{className:"PostItem-Summary",children:Ub(r,Qs.g)}),Object(o.c)("div",{className:"PostItem-Footer",children:[Object(o.b)("span",{children:l}),Object(o.b)("span",{className:"PostItem-FooterTitle",children:d})]})]})})}}]),n}(a.Component);function HN(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}VN.propTypes={article:jl.a.object.isRequired};var qN=function(e){Object(ml.a)(n,e);var t=HN(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.editorChoice,n=e.article;return this.context.isMobile?Object(o.b)(FN,{article:n,editorChoice:t}):Object(o.b)(VN,{article:n})}}]),n}(a.Component);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}qN.contextTypes={isMobile:jl.a.bool},qN.propTypes={article:jl.a.object.isRequired,editorChoice:jl.a.bool.isRequired};var WN=function(e){Object(ml.a)(n,e);var t=KN(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handlePagingButtonClick=function(){var t=e.props,n=t.onClick;"next"===t.direction&&q.a.trackEvent(Object(kl.a)(e),{action:"NextPage"}),n()},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.direction,n=e.disabled,r="previous"===t?Iy.a:Yh.a,i="previous"===t?"PagingButton-Previous":"PagingButton-Next";return Object(o.b)(im.a,{module:"Unknown",moduleName:"推荐阅读",children:Object(o.b)("button",{className:rl()("PagingButton",i),onClick:this.handlePagingButtonClick,disabled:n,children:Object(o.b)(r,{size:40,fill:"#d3d3d3"})})})}}]),n}(a.Component);function YN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}WN.propTypes={direction:jl.a.oneOf(["previous","next"]).isRequired,onClick:jl.a.func.isRequired,disabled:jl.a.bool},WN.defaultProps={direction:"next"};var QN=function(e){Object(ml.a)(n,e);var t=YN(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleResizeChange=function(){var t=e.props.isMobile,n=document.querySelector(".ColumnPageHeader-Wrapper");!t&&e.RecommendationsEl&&n&&(e.RecommendationsEl.style.width="".concat(n.offsetWidth,"px"))},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){this.subscription=Object(nd.subscribe)("resize",this.handleResizeChange)}},{key:"componentDidUpdate",value:function(){this.handleResizeChange()}},{key:"componentWillUnmount",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"render",value:function(){var e=this,t=this.props,n=t.isMobile,r=t.id,i=t.currentPageItems,a=t.shouldDisableNextPage,c=t.shouldDisablePreviousPage,s=t.nextPage,u=t.previousPage;return 0===i.length?null:Object(o.c)("div",{className:rl()({"Recommendations-Main":!n}),ref:function(t){e.RecommendationsEl=t},children:[Object(o.b)(NN,{className:"Recommendations-BlockTitle",children:"推荐阅读"}),Object(o.c)("ul",{className:rl()({"Recommendations-List":!n}),children:[!n&&Object(o.b)(WN,{disabled:c,direction:"previous",onClick:u}),i.map((function(e){var t=e.article,n=e.editorChoice;return Object(o.b)(qN,{article:t,editorChoice:n},t.id)})),!n&&Object(o.b)(WN,{disabled:a,direction:"next",onClick:s})]}),n&&Object(o.b)(LN,{postId:r})]})}}]),n}(a.Component);QN.propTypes={isMobile:jl.a.bool,id:jl.a.number,currentPageItems:jl.a.array,shouldDisableNextPage:jl.a.bool,shouldDisablePreviousPage:jl.a.bool,nextPage:jl.a.func.isRequired,previousPage:jl.a.func.isRequired},QN.defaultProps={currentPageItems:[]};var ZN=Object(Lt.compose)(Object(Ot.connect)((function(e,t){var n=t.id,r=(e.recommendation[n]||{}).data,o=Object(z.d)(e);return{items:r,onlyOnePage:o,isMobile:o}}),(function(e,t){var n=t.id;return{fetchData:function(t){return e(function(e,t){return Object(W.isBrowser)()&&E.a.increment("ArticleRecommendation.".concat(Object(j.getPageName)()||"Unknown",".intention.count")),function(n,r){var o=r().recommendation[e],i=o&&o.paging&&o.paging.next;return n({parentId:e,API:Object.assign({root:Qs.c,types:Zs.GET},i?{endpoint:i}:{endpoint:"/articles/".concat(e,"/recommendation"),query:{include:Za()({data:[{article:{column:!0}}]}),limit:t,offset:0}})})}}(n,t))}}})),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:4;return function(t){var n,r;return r=n=function(n){Object(ml.a)(i,n);var r=MN(i);function i(){var t;Object(bl.a)(this,i);for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return(t=r.call.apply(r,[this].concat(o))).fetchCount=0,t.state={isFetching:!1,page:0,isExhausted:!1},t.getCurrentPageItems=function(){var n=t.state.page;return t.props.items.slice(n*e,(n+1)*e)},t.beforeFetch=function(){if(t.state.isExhausted)return Promise.resolve({isExhausted:!0});var n=t.props.items.length,r=t.props.onlyOnePage?n>=e:n>(t.state.page+2)*e;return r||t.fetchCount>2?Promise.resolve({isExhausted:!r}):Promise.reject(new Error("not enough to fetch or fetch too many times"))},t.fetchUntilEnough=function(){return t.beforeFetch().then((function(e){var n=e.isExhausted;return t.fetchEnds(n)}),(function(){return t.fetchStart().then(t.fetchUntilEnough)}))},t.fetchStart=function(){0===t.fetchCount&&t.setState({isFetching:!0}),t.fetchCount+=1;var n=t.props,r=n.fetchData,o=n.onlyOnePage;return r(e*(o?1:3))},t.fetchEnds=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t.fetchCount=0,t.setState({isExhausted:e,isFetching:!1})},t.isFirstPage=function(){return 0===t.state.page},t.isLastPage=function(){var n=t.props.items.length;return 0===n||(t.state.page+1)*e>=n},t.previousPage=function(){t.isFirstPage()||t.setState((function(e){return{page:e.page-1}}))},t.nextPage=function(){t.isLastPage()||t.setState((function(e){return{page:e.page+1}}),t.fetchUntilEnough)},t}return Object(vl.a)(i,[{key:"componentDidMount",value:function(){this.fetchUntilEnough()}},{key:"shouldComponentUpdate",value:function(t,n){var r=this.props.items.length<e&&t.items.length>=e,o=!nu()(this.state,n);return r||o}},{key:"render",value:function(){var e=this.props,n=e.onlyOnePage,r=e.items,i=this.state,a=i.isFetching,c=i.isExhausted,s=0===r.length||this.isLastPage()&&(c||a);return Object(o.b)(t,Object.assign({currentPageItems:this.getCurrentPageItems(),shouldDisableNextPage:s||n,shouldDisablePreviousPage:this.isFirstPage()||n,nextPage:this.nextPage,previousPage:this.previousPage},ei()(this.props,["fetchData","onlyOnePage","items"])))}}]),i}(a.Component),n.displayName="PageManager(".concat(UN(t),")"),n.propTypes={onlyOnePage:jl.a.bool,fetchData:jl.a.func.isRequired,items:jl.a.array.isRequired},n.defaultProps={items:[]},r}}(Qs.f))(QN);function JN(e){return c.a.createElement("svg",Dd()({width:"12",height:"14",viewBox:"0 0 24 24"},e),c.a.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M41,34.647593 L46.4821856,29.8952505 C47.0573478,29.3171615 47.9939599,29.3212723 48.5741674,29.9044323 C49.1543749,30.4875923 49.1584649,31.4289706 48.5833027,32.0070596 L41.7409518,37.9384886 L41.0759034,38.6069213 C40.2968396,39.3899495 39.0305137,39.3931633 38.2474854,38.6140995 C38.2450866,38.6117128 38.2426938,38.6093201 38.2403072,38.6069213 L37.5569882,37.920125 L30.6628707,31.936666 C30.0826632,31.353506 30.0785732,30.4121277 30.6537354,29.8340386 C31.2288976,29.2559496 32.1655097,29.2600604 32.7457172,29.8432204 L38,34.403454 L38,22.5 C38,21.6715729 38.6715729,21 39.5,21 C40.3284271,21 41,21.6715729 41,22.5 L41,34.647593 Z M49,42.5 C49,43.3284271 48.3284271,44 47.5,44 L31.5,44 C30.6715729,44 30,43.3284271 30,42.5 C30,41.6715729 30.6715729,41 31.5,41 L47.5,41 C48.3284271,41 49,41.6715729 49,42.5 Z",transform:"translate(-30 -21)"}))}var XN=n(437),$N=n(438),eD=n(439),tD=function(e){var t,n;return n=t=function(t){function n(){var e,t;Wl()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=$l()(this,(e=td()(n)).call.apply(e,[this].concat(o)))).state={track:{}},t.fetchPluginTrackInfo=function(e){var n=e.data.related;if(n){var r=n.pageId,o=n.sessionId,i=n.os,a=n.xSuger;Object(fS.f)(n).then((function(e){var n={sessionId:o,os:i,aToken:r,xSuger:a,cardType:"null"},c=Object(fS.m)(e,n);q.a.setModule(t.card,{module:"Content",module_name:"".concat(i,"_download")}),Object(uS.b)(t.card,{trackMethod:uS.c,tracks:c.view}),Object(uS.d)("cardShow",t.card,{id:5642}),t.setState({track:c})}))}},t.handleClickTrack=function(){var e=t.state.track.click,n=void 0===e?[]:e;Object(uS.d)("trackEvent",t.card,{id:5641,action:"OpenUrl"}),Object(uS.a)({trackMethod:uS.c,tracks:n})},t.handleViewTrack=function(){},t}return Jl()(n,t),Ql()(n,[{key:"componentDidMount",value:function(){this.fetchPluginTrackInfo(this.props)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.data,n=e.data.related;JSON.stringify(t.related)!==JSON.stringify(n)&&this.fetchPluginTrackInfo(e)}},{key:"render",value:function(){var t=this;return c.a.createElement(e,Dd()({},this.props,{refCall:function(e){t.card=e},handleClickTrack:this.handleClickTrack,handleViewTrack:this.handleViewTrack}))}}]),n}(c.a.Component),t.propTypes={data:jl.a.object.isRequired},n};function nD(e){var t=e.refCall,n=e.data,r=void 0===n?{}:n,o=e.handleClickTrack,i=r.info,a=void 0===i?{}:i,s=r.className,u=a.android,l=a.ios;if(!u&&!l)return null;var d=u||l||{},f=d.appLogoUrl,p=d.appName,h=d.appRate,b=d.downloadLink;return b?c.a.createElement("a",{ref:t,onClick:o,href:b,target:"_blank",className:rl()("PcArticleDownLoad",s)},c.a.createElement("img",{src:f,className:"PcArticleDownLoad-image",alt:"logo"}),c.a.createElement("div",{className:"PcArticleDownLoad-des"},c.a.createElement("div",{className:"PcArticleDownLoad-appName"},p),c.a.createElement("span",{className:"PcArticleDownLoad-rate"},"app评分:",Object(fS.j)(h).map((function(e,t){if(1===e)return c.a.createElement(XN.a,{key:t});var n="".concat(24*e);return c.a.createElement("span",{className:"composeStar",key:t},c.a.createElement($N.a,null),n&&c.a.createElement(eD.a,{style:{position:"relative",left:"-16px"},cutWidth:n}))})),c.a.createElement("span",{className:"AppArticleDownLoad-margin"},Number(h).toFixed(1),"分"))),c.a.createElement("div",{className:"PcArticleDownLoad-button"},c.a.createElement(JN,null),"下载")):null}nD.propTypes={data:jl.a.object.isRequired,refCall:jl.a.func.isRequired,handleClickTrack:jl.a.func.isRequired};var rD=tD(nD);function oD(e){return e.data?c.a.createElement(lS.a,null,c.a.createElement(rD,Dd()({},e,{data:Object(fS.b)(Object($.camelizeKeys)(e.data))}))):null}var iD=n(544);function aD(e){var t=e.data,n=void 0===t?{}:t,r=e.refCall,o=e.handleClickTrack,i=n.info,a=void 0===i?{}:i,s=n.related,u=void 0===s?{}:s,l=n.className,d=a[u.os]||{},f=d.appLogoUrl,p=d.appName,h=d.appRate,b=d.downloadLink;return b?c.a.createElement("a",{ref:r,onClick:o,href:b,target:"_blank",className:rl()("AppArticleDownLoad",l)},c.a.createElement("img",{src:f,className:"AppArticleDownLoad-image",alt:"logo"}),c.a.createElement("div",{className:"AppArticleDownLoad-des"},c.a.createElement("div",{className:"AppArticleDownLoad-appName"},p),c.a.createElement("span",{className:"AppArticleDownLoad-rate"},"评分:",c.a.createElement(iD.a,{score:h}),c.a.createElement("span",{className:"AppArticleDownLoad-margin"},Number(h).toFixed(1),"分"))),c.a.createElement("div",{className:"AppArticleDownLoad-button"},c.a.createElement(JN,null),"下载")):null}aD.propTypes={data:jl.a.object.isRequired,refCall:jl.a.func.isRequired,handleClickTrack:jl.a.func.isRequired};var cD=tD(aD);function sD(e){return e.data?c.a.createElement(lS.a,null,c.a.createElement(cD,Dd()({},e,{data:Object(fS.b)(Object($.camelizeKeys)(e.data))}))):null}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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var lD=function(e){Object(ml.a)(n,e);var t=uD(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t={info:e.info,related:e.related};return e.isMobile?Object(o.b)(sD,{data:t}):Object(o.b)(oD,{data:t})}}]),n}(a.Component);lD.propTypes={info:jl.a.object.isRequired,related:jl.a.oneOfType([jl.a.oneOf([null]),jl.a.shape({pageId:jl.a.number.isRequired,sessionId:jl.a.number.isRequired,pageType:jl.a.string.isRequired})]),isMobile:jl.a.bool};var dD=Object(rb.a)(null)(lD),fD=function(e){var t=e.panels,n=void 0===t?[]:t;return Object(o.b)(Rd.a,{className:"TopRightPanelWrapper",children:Object(o.b)(sN,{show:!0,children:n.map((function(e){var t=e.title,n=e.content,r=e.buttonGroup,i=e.key,a=void 0===i?"":i;return Object(o.c)("div",{className:"TopRightPanel",children:[t&&Object(o.b)("div",{className:"TopRightPanel-title",children:t}),Object(o.b)("div",{className:"TopRightPanel-content",children:n}),Object(o.b)("div",{className:"TopRightPanel-foot",children:Object(o.b)("div",{className:"TopRightPanelButtonGroup",children:r})})]},a)}))})})};function pD(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var hD=function(e){Object(ml.a)(n,e);var t=pD(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleRequest=function(t,n){var r=e.props,o=r.postId;(0,r.handleContributeRequest)(o,t,n)},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.postId;(0,e.getContributeRequest)(t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.contributeRequests,r=t.author;if(0===n.length)return null;var i=n.map((function(t){var n=t.column,i=n.id,c=n.title,s=n.url;return{buttonGroup:Object(o.c)(a.Fragment,{children:[Object(o.b)(yf.c,{color:"grey",onClick:function(){return e.handleRequest(i,!1)},children:"忽略"}),Object(o.b)(yf.c,{color:"blue",onClick:function(){return e.handleRequest(i,!0)},children:"通过"})]}),content:Object(o.c)(a.Fragment,{children:[Object(o.b)(VS.a,{user:r,avatar:!1,target:"_blank",noBadge:!0})," 申请将该文章发布到 ",Object(o.b)("a",{href:s,target:"_blank",rel:"noopener noreferrer",children:c}),"。"]}),title:c,key:i}}));return Object(o.b)(fD,{panels:i})}}]),n}(a.Component);hD.propTypes={contributeRequests:jl.a.array.isRequired,postId:jl.a.oneOfType([jl.a.number,jl.a.string]).isRequired,author:jl.a.object.isRequired};var bD=Object(Lt.compose)(Object(Ot.connect)(null,{handleContributeRequest:function(e,t,n){var r=n?"已通过投稿审核":"已忽略投稿审核";return{API:{types:lu.HANDLE_CONTRIBUTE_REQUEST,endpoint:"/articles/".concat(e,"/contribute/requests/").concat(t),method:"PUT",body:{accept:n}},id:t,NOTIFICATION:{success:r}}},getContributeRequest:function(e){return{API:{types:lu.GET_CONTRIBUTE_REQUEST,endpoint:"/articles/".concat(e,"/contribute_requests"),method:"GET"}}}}))(hD),vD=n(520),mD=n(542);function gD(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var OD=function(e){Object(ml.a)(n,e);var t=gD(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).openApp=function(){return Yx(e.props.id,"comment")},e}return Object(vl.a)(n,[{key:"render",value:function(){return Object(o.b)("div",{role:"button",className:"Post-MobileCommentButton",onClick:this.openApp,children:"写下你的评论…"})}}]),n}(a.PureComponent);OD.propTypes={id:jl.a.number.isRequired};var yD=Object(Br.createSelector)([function(e){return e.comments},function(e){return e.entities.comments},function(e,t){return t.target},z.d],(function(e,t,n,r){var o=e.pagination,i=(void 0===o?{}:o)[n]||{},a=i.isDrained,c=i.isFetching,s=i.isPrevDrained,u=i.newIds,l=void 0===u?[]:u,d=i.ids,f=void 0===d?[]:d,p=i.totals;return{isDrained:a,isFetching:c,isPrevDrained:s,newComments:(r?l.slice(0,Qs.e):f).map((function(e){return t[e]})),totals:p}}));function jD(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var ED=function(e){Object(ml.a)(n,e);var t=jD(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleOpenApp=function(){var t=e.props.parent;Yx(t.id,"vote_comment")},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this.props.parent,t=e.id,n=e.type;this.props.loadComments(n,t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.totalCount,r=t.comments,i=t.isOrg,a=t.parent,c=t.parent,s=c.id,u=c.adminClosedComment,l=r.filter((function(e){return!e.isDelete}));return Object(o.c)("div",{className:"Post-MobileComments",children:[Object(o.b)(vD.a,{className:"Post-CommentTopbar",commentCount:n,commentClosed:u,isMobile:!0,commentPattern:"bottom",isOrg:i}),Object(o.b)(OD,{id:s,handleSubmit:this.handleOpenApp}),Object(o.b)("div",{className:"CommentsList",children:l.map((function(t){return Object(o.b)(mD.a,{comment:t,parent:a,onShowConversation:e.handleOpenApp,onLike:e.handleOpenApp,onDelete:e.handleOpenApp,onReply:e.handleOpenApp,isMobile:!0},t.id)}))}),n>l.length&&Object(o.b)(LN,{postId:s})]})}}]),n}(a.Component);ED.propTypes={parent:jl.a.object.isRequired};var CD=Object(Lt.compose)(Object(Ot.connect)((function(e,t){var n=e.entities.users,r=e.comments.parent,o=e.currentUser,i=t.parent,a=(n[o]||{}).isOrg,c="".concat(i.type,"_").concat(i.id),s=yD(e,{target:c});return{comments:s.newComments,totalCount:s.totals||0,isOrg:a,parentCommentDetail:r[c]||{}}}),{loadComments:jn.e}))(ED);function wD(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var TD=function(e){Object(ml.a)(n,e);var t=wD(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).trackChangeOrder=function(e,t){av(t,{id:1290,name:t.currentTarget.textContent})},e.trackLike=function(e,t){var n=t.currentTarget.classList.contains("is-liked");av(t,{id:1301,action:n?"UnUpvote":"Upvote"})},e.trackPaginationClick=function(t,n){var r=t>n?"PrevPage":"NextPage";q.a.trackEvent(Object(kl.a)(e),{id:1300,action:r})},e.handleCommentClose=function(){e.props.updateCommentStatus("bottom")},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.context.isMobile,t=this.props,n=t.parent,r=t.commentPattern,i=t.byComment,a=t.onMount;return e?Object(o.b)(CD,{parent:n}):Object(o.b)(zg,{autoFocus:!1,parent:n,isMobile:e,commentPattern:r,onOrderChange:this.trackChangeOrder,onItemLike:this.trackLike,onPaginationClick:this.trackPaginationClick,onClose:this.handleCommentClose,byComment:i,onMount:a,showPackupButton:!1,commentInputPosition:"top",shown:!0})}}]),n}(a.Component);TD.contextTypes={isMobile:jl.a.bool},TD.propTypes={parent:jl.a.object.isRequired,commentPattern:jl.a.string.isRequired,byComment:jl.a.oneOfType([jl.a.number,jl.a.string]),updateCommentStatus:jl.a.func.isRequired};var _D=Object(im.b)({module:"CommentList"})(TD);function SD(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var AD=function(e){Object(ml.a)(n,e);var t=SD(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).onCancelContributeClick=function(){var t=e.props,n=t.column;(0,t.handleCancelContributeClick)(n)},e.openInApp=function(){var t=e.props.column.id;Qx(t,"follow_column")},e.handleFollow=function(t){return av(t,1288),!e.context.isMobile||e.openInApp()},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.column,n=e.state,r=t.intro,i=t.description,c=this.context.isMobile,s=Object(o.b)(tv,{column:t,avatar:!0,avatarProps:{size:40,round:!0},noHoverCard:c}),u="need_approved"===n,l=Object(o.c)(a.Fragment,{children:[Object(o.b)(tv,{column:t,className:"ColumnItem-Title",noHoverCard:c}),u&&" · ",u&&Object(o.c)("button",{className:"ColumnItem-CancleButton",onClick:this.onCancelContributeClick,children:[Object(o.b)("span",{className:"status",children:"投稿中"}),Object(o.b)("span",{className:"cancel",children:"撤销投稿"})]})]});return Object(o.b)(Og.c,{className:"Column-ColumnItem",data:t,image:s,title:l,meta:r||i})}}]),n}(a.Component);AD.contextTypes={currentUser:jl.a.object,isMobile:jl.a.bool},AD.propTypes={column:jl.a.object.isRequired,state:jl.a.string};var kD=AD;function RD(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var ID=function(e){Object(ml.a)(n,e);var t=RD(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleCancelContributeClick=function(t){var n=e.props,r=n.postId;(0,n.deleteContributeRequest)(r,t.id)},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this,t=this.props.contributions;return Array.isArray(t)&&0!==t.length?Object(o.c)("div",{className:"PostIndex-Contributions",children:[Object(o.b)(NN,{children:"文章被以下专栏收录"}),Object(o.b)("ul",{children:t.map((function(t){var n=t.column,r=t.state;return Object(o.b)(kD,{column:n,state:r,handleCancelContributeClick:e.handleCancelContributeClick},n.id)}))})]}):null}}]),n}(a.Component);ID.propTypes={contributions:jl.a.arrayOf(jl.a.object),postId:jl.a.number};var xD=Object(Lt.compose)(Object(Ot.connect)(null,{deleteContributeRequest:function(e,t){return{API:{types:lu.DELETE_CONTRIBUTE_REQUEST,endpoint:"/articles/".concat(e,"/contribute/requests/").concat(t),method:"DELETE"},columnId:e,id:t}}}),Object(im.b)({module:"ColumnList",moduleName:"文章被以下专栏收录"}))(ID);function ND(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var DD=function(e){Object(ml.a)(n,e);var t=ND(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props.tips;return Object(o.b)("div",{className:"PostIndex-status",children:Object(o.b)("p",{children:e})})}}]),n}(a.Component);function PD(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}DD.propTypes={tips:jl.a.string};var LD=function(e){Object(ml.a)(n,e);var t=PD(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.reason,n=e.isAuthor;return Object(o.c)("div",{className:"PostIndex-warning",children:[t&&Object(o.b)("div",{className:"PostIndex-warningTitle",children:t}),Object(o.b)("div",{className:"PostIndex-warningContent",children:n?"建议修改期间,文章内容对其他用户不可见。修改提交后会自动进入评估状态。":"作者修改内容通过后,文章会重新显示。"}),Object(o.b)("a",{target:"_blank",href:"https://www.zhihu.com/question/24752645",rel:"noopener noreferrer",className:"PostIndex-warningHelp","aria-label":"帮助",children:Object(o.b)(Mj,{})})]})}}]),n}(a.Component);function MD(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}LD.propTypes={reason:jl.a.string.isRequired,isAuthor:jl.a.bool.isRequired};var UD=function(e){Object(ml.a)(n,e);var t=MD(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).trackClick=function(t){av(t,{id:1299,action:"OpenUrl",name:e.props.column.title})},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.time,n=e.column,r=e.isPaidArticle,i=n&&!r;return Object(o.c)("div",{className:"Post-TimeExtra",children:[Object(ci.toRelativeString)(t),i&&" · 来自专栏 ",i&&Object(o.b)(tv,{column:n,noHoverCard:!0,onClick:this.trackClick})]})}}]),n}(a.Component);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var zD=function(e){var t=w.a.get("column:hideOpenColumnModalUntil")?1/0:Date.now()+e;w.a.set("column:hideOpenColumnModalUntil",String(t))},FD=function(e){Object(ml.a)(n,e);var t=BD(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).onDeny=function(){e.props.onClose(),zD(2592e6)},e.onClose=function(){e.props.onClose(),zD(6048e5)},e.onConfirm=function(){e.props.onClose(),zD(1/0)},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props.shown;return Object(o.b)(Pt.b,{title:"邀请你开通专栏",subtitle:"专栏旨在为有持续创作及合作写作需求的用户提供写作工具。发布到专栏,让文章被更多人看到。",onClose:this.onClose,buttonGroupOnly:!0,className:"Column-SpecialModal",children:e&&Object(o.c)(Pt.a,{direction:"vertical",children:[Object(o.b)(yf.c,{preset:"primary",color:"blue",component:"a",onClick:this.onConfirm,href:"https://www.zhihu.com/column/request",target:"_blank",children:"立即开通"}),Object(o.b)(yf.c,{onClick:this.onDeny,children:"暂不开通"})]})})}}]),n}(a.Component);function GD(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}FD.propTypes={shown:jl.a.bool,onClose:jl.a.func.isRequired},FD.checkShouldShow=function(){var e=Number(w.a.get("column:hideOpenColumnModalUntil"))||0;return Date.now()>e};var VD=function(e){Object(ml.a)(n,e);var t=GD(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleColumnClick=function(t){q.a.trackEvent(t.currentTarget,{id:1591,name:e.props.reason||"推荐专栏的投稿"})},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.column,n=e.reason,r=e.contributed,i=e.onSubmit,a=t.articlesCount,c=t.followers,s=t.id,u=r?Object(o.b)(yf.c,{color:"grey",preset:"primary",className:"CancleButton",children:"已投稿"}):Object(o.b)(yf.c,{color:"blue",onClick:function(){return i(s)},children:"投稿"}),l={column:t,target:"_blank",onClick:this.handleColumnClick},d=Object(o.b)(tv,Object.assign({},l,{avatar:!0,avatarProps:{size:40}})),f=Object(o.b)(tv,Object.assign({},l,{className:"ColumnItem-Title"})),p=n||"".concat(Object(hh.formatNumber)(c)," 人关注 · ").concat(Object(hh.formatNumber)(a)," 篇文章");return Object(o.b)(Og.c,{className:"Column-ColumnItem",data:t,image:d,title:f,extra:u,meta:p})}}]),n}(a.Component);VD.propTypes={column:jl.a.object.isRequired,reason:jl.a.string,contributed:jl.a.bool,onSubmit:jl.a.func.isRequired};var HD=VD;function qD(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var KD=function(e){Object(ml.a)(n,e);var t=qD(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={loading:!1},e.submit=function(t){var n=e.props;(0,n.addContributeRequest)(n.articleId,t)},e.handleClose=function(){q.a.trackEvent(Object(kl.a)(e),{id:1592,action:"Close",name:"要将该文章投稿到专栏吗"}),e.props.onClose()},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){this.props.shown&&this.handleModalAppear()}},{key:"componentDidUpdate",value:function(e){this.props.shown&&!e.shown&&this.handleModalAppear()}},{key:"componentWillUnmount",value:function(){this.isUnmounted=!0}},{key:"handleModalAppear",value:function(){var e=this;q.a.trackCardShow(this,{id:1590,name:"要将该文章投稿到专栏吗"});var t=this.props,n=t.articleId,r=t.getRecommendedColumns;this.state.loading||(this.setState({loading:!0}),r(n).catch((function(){})).then((function(){e.isUnmounted||e.setState({loading:!1})})))}},{key:"renderContent",value:function(){var e=this,t=this.props,n=t.recommendedColumns,r=t.pinnedColumns,i=t.sentContributeRequestsIdList,c=t.isOpenedByUser,s=r.length>0,u=n.length>0;return c||s||u?this.state.loading?Object(o.b)(sO.a,{}):s||u?Object(o.c)(a.Fragment,{children:[s&&Object(o.b)("ul",{className:"PinnedColumns",children:r.map((function(t){var n=t.reason,r=t.column;return Object(o.b)("li",{children:Object(o.b)(HD,{column:r,reason:n,contributed:i.includes(r.id),onSubmit:e.submit})},r.id)}))}),u&&Object(o.c)(a.Fragment,{children:[Object(o.b)("h3",{className:"SectionTitle",children:"为你推荐的专栏"}),Object(o.b)("ul",{className:"RecommendedColumns",children:n.map((function(t){var n=t.column,r=t.reason;return Object(o.b)("li",{children:Object(o.b)(HD,{column:n,reason:r,contributed:i.includes(n.id),onSubmit:e.submit,onCancelSubmit:e.cancelSubmit})},n.id)}))})]})]}):Object(o.b)("div",{className:"EmptyState",children:"暂时没有匹配的专栏"}):null}},{key:"render",value:function(){var e=this.props.shown;return Object(o.b)(Pt.b,{title:"要将该文章投稿到专栏吗?",subtitle:"让好文章被更多人看到",size:"large",onClose:this.handleClose,className:"Column-RecommendationModal",children:e&&this.renderContent()})}}]),n}(a.Component);KD.propTypes={shown:jl.a.bool,onClose:jl.a.func.isRequired,getRecommendedColumns:jl.a.func.isRequired,recommendedColumns:jl.a.array.isRequired,pinnedColumns:jl.a.array.isRequired,articleId:jl.a.number.isRequired,sentContributeRequestsIdList:jl.a.array.isRequired,isOpenedByUser:jl.a.bool};var WD=Object(Ot.connect)((function(e){var t=e.articleContribution;return{recommendedColumns:t.recommendedColumns,pinnedColumns:t.pinnedColumns,sentContributeRequestsIdList:t.sentContributeRequestsIdList}}),{getRecommendedColumns:function(e){return{API:{types:lu.GET_RECOMMENDED_CONTRIBUTE_COLUMNS,endpoint:"/articles/".concat(e,"/recommendation-contribute-columns"),fetchOptions:{credentials:"include"},query:{include:Za()({data:{recommendations:[{column:{articles_count:!0,followers:!0}}]}})}}}},addContributeRequest:du})(KD);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var QD=function(e){Object(ml.a)(n,e);var t=YD(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.author,n=e.reason,r=e.hasInvited,i=e.onInvite,a=r?Object(o.b)(yf.c,{color:"grey",preset:"primary",className:"CancleButton",children:"已邀请"}):Object(o.b)(yf.c,{color:"blue",onClick:function(){return i(t.id)},children:"邀请投稿"}),c=Object(o.b)(VS.a,{user:t,avatar:!0,avatarProps:{size:40}}),s=Object(o.b)(VS.a,{user:t});return Object(o.b)(Og.c,{className:"Column-ColumnItem",data:t,title:s,image:c,meta:n,extra:a})}}]),n}(a.Component);QD.propTypes={author:jl.a.object.isRequired,reason:jl.a.string,hasInvited:jl.a.bool,onInvite:jl.a.func.isRequired};var ZD=QD,JD=n(713),XD=n.n(JD);function $D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var eP=function(e){Object(ml.a)(n,e);var t=$D(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={folded:e.props.enabled},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.enabled,r=t.onButtonClick,i=this.state.folded,a=Object(o.b)(Gh.a,{className:"UserLink-avatar",url:XD.a,alt:"刘看山图片",size:i?18:40});if(i)return Object(o.c)("li",{className:"AutoInvite-folded",onClick:function(){return e.setState({folded:!1})},children:[a,Object(o.b)("span",{className:"AutoInvite-title",children:"委托刘看山邀请"}),Object(o.c)("span",{className:"AutoInvite-badge",children:[Object(o.b)(PE.a,{height:16,width:16}),Object(o.b)("span",{className:"text",children:"已开启"})]}),Object(o.b)(bE.a,{height:24,width:24,className:"AutoInvite-arrow"})]});var c=n?Object(o.b)(yf.c,{color:"grey",preset:"primary",className:"CancleButton",onClick:r,children:"已开启"}):Object(o.b)(yf.c,{color:"blue",preset:"primary",onClick:r,children:"开启邀请"}),s=n?"正在为你智能邀请感兴趣的创作者":"开启后为你智能邀请感兴趣的创作者";return Object(o.b)("li",{children:Object(o.b)(Og.c,{className:"Column-ColumnItem",title:"委托刘看山邀请",image:a,meta:!i&&s,extra:!i&&c})})}}]),n}(a.Component);eP.propTypes={reason:jl.a.string,enabled:jl.a.bool,onButtonClick:jl.a.func.isRequired};var tP=eP;function nP(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var rP="column:closeInviteModalTimes",oP=function(){return Number(w.a.get(rP))||0},iP=function(e){Object(ml.a)(n,e);var t=nP(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={loading:!1},e.touched=!1,e.handleInvite=function(t){q.a.trackEvent(Object(kl.a)(e),{id:1589,action:"Click",name:"邀请投稿"}),e.touched=!0;var n=e.props,r=n.dispatch,o=n.columnId;r(vu(o,t))},e.toggleAutoInvite=function(){var t=e.props,n=t.dispatch,r=t.autoInviteEnabled,o=t.columnId;q.a.trackEvent(Object(kl.a)(e),{id:r?2605:2604}),n(bu(o,!r))},e.handleClose=function(){q.a.trackEvent(Object(kl.a)(e),{id:1593,action:"Close",name:"邀请大家来投稿"});var t=e.props,n=t.onClose;t.isOpenedByUser||e.touched||w.a.set(rP,String(oP()+1)),n()},e.handleNeverShow=function(t){q.a.trackEvent(t.currentTarget,{id:1594,action:"Click",name:"邀请投稿弹窗不再提示按钮"}),w.a.set(rP,String(1/0)),e.props.onClose()},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){this.props.shown&&this.handleModalAppear()}},{key:"componentDidUpdate",value:function(e){this.props.shown&&!e.shown&&this.handleModalAppear()}},{key:"componentWillUnmount",value:function(){this.isUnmounted=!0}},{key:"handleModalAppear",value:function(){var e=this;q.a.trackCardShow(this,{id:1587,name:"邀请大家来投稿"});var t=this.props,n=t.columnId,r=t.dispatch,o=t.isOpenedByUser;!this.state.loading&&n&&(this.setState({loading:!0}),r(function(e,t){return{API:{types:pu.GET_RECOMMENDED_CONTRIBUTORS,endpoint:"/columns/".concat(e,"/recommendation-contributors").concat(t?"?src=user":""),fetchOptions:{credentials:"include"}}}}(n,o)).then((function(){e.isUnmounted||(e.setState({loading:!1}),e.touched=!1)}),(function(e){if(!e.payload||409!==e.payload.code)throw e})))}},{key:"renderContent",value:function(){var e=this,t=this.props,n=t.recommendedContributors,r=t.isOpenedByUser,i=t.autoInviteEnabled,c=t.autoInviteAb;return r||0!==n.length?this.state.loading?Object(o.b)(sO.a,{}):Object(o.c)(a.Fragment,{children:[c&&Object(o.b)("ul",{className:"AutoInvite",children:Object(o.b)(tP,{onButtonClick:this.toggleAutoInvite,enabled:i})}),Object(o.b)("ul",{children:n.map((function(t){var n=t.author,r=t.reason,i=t.hasInvited;return Object(o.b)("li",{children:Object(o.b)(ZD,{author:n,reason:r,hasInvited:i,onInvite:e.handleInvite})},n.id)}))})]}):null}},{key:"render",value:function(){var e=this.props,t=e.shown,n=e.columnId,r=e.isOpenedByUser;if(!n)return null;var i=!r&&Object(o.c)("p",{children:["暂时不想邀请他人投稿?",Object(o.b)("button",{onClick:this.handleNeverShow,children:"不再显示"})]});return Object(o.b)(Pt.b,{title:"想要专栏获得更多文章?邀请大家来投稿",subtitle:"为你精选优质作者,让你的专栏更受欢迎",size:"large",onClose:this.handleClose,className:"Column-RecommendationModal",footer:i,children:t&&this.renderContent()})}}]),n}(a.Component);iP.propTypes={shown:jl.a.bool,onClose:jl.a.func.isRequired,columnId:jl.a.string.isRequired,recommendedContributors:jl.a.array.isRequired,autoInviteEnabled:jl.a.bool.isRequired,isOpenedByUser:jl.a.bool,autoInviteAb:jl.a.bool},iP.checkShouldShow=function(){return oP()<2};var aP=Object(Ot.connect)((function(e){var t=e.columnContribution,n=t.recommendedContributors,r=t.autoInviteEnabled;return{autoInviteAb:"1"===Object(z.a)(e,"web_column_auto_invite"),recommendedContributors:n,autoInviteEnabled:r}}))(iP);function cP(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var sP=function(e){Object(ml.a)(r,e);var t,n=cP(r);function r(){var e;Object(bl.a)(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return(e=n.call.apply(n,[this].concat(o))).state={applyModalShown:!1,recommendModalShown:!1,inviteModalShown:!1,isOpenedByUser:!1},e.handleCloseModals=function(){e.setState({applyModalShown:!1,recommendModalShown:!1,inviteModalShown:!1,isOpenedByUser:!1})},e}return Object(vl.a)(r,[{key:"componentDidMount",value:function(){var e=this,t=this.context.currentUser,n=this.props,r=n.justPublishedQuery,o=n.columnId;(0,n.getShowRecommendModalHandler)((function(){return e.setState({recommendModalShown:!0,isOpenedByUser:!0})})),"1"!==r||t.isOrg?"2"===r&&(o||t.isOrg?o&&aP.checkShouldShow()&&(this.timeout=setTimeout((function(){return e.setState({inviteModalShown:!0})}),600)):this.timeout=setTimeout((function(){return e.setState({recommendModalShown:!0})}),600)):this.checkShouldShowApplyColumnModal().then((function(t){e.isUnmounted||e.setState(t?{applyModalShown:!0}:{recommendModalShown:!0})}))}},{key:"componentWillUnmount",value:function(){this.isUnmounted=!0,clearTimeout(this.timeout)}},{key:"checkShouldShowApplyColumnModal",value:(t=Object(k.a)(A.a.mark((function e(){return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(FD.checkShouldShow()){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,this.props.loadSwitches(["couldApplyColumn"]);case 4:return e.abrupt("return",this.props.switches.couldApplyColumn);case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"render",value:function(){var e=this.state,t=e.applyModalShown,n=e.recommendModalShown,r=e.inviteModalShown,i=e.isOpenedByUser,c=this.props,s=c.articleId,u=c.columnId;return Object(o.c)(a.Fragment,{children:[Object(o.b)(FD,{shown:t,onClose:this.handleCloseModals}),Object(o.b)(WD,{articleId:s,shown:n,onClose:this.handleCloseModals,isOpenedByUser:i}),u&&Object(o.b)(aP,{shown:r,columnId:u,onClose:this.handleCloseModals})]})}}]),r}(a.Component);sP.propTypes={justPublishedQuery:jl.a.oneOf(["1","2"]),articleId:jl.a.number.isRequired,columnId:jl.a.string},sP.contextTypes={currentUser:jl.a.object};var uP=Object(Ot.connect)((function(e){return{switches:e.switches}}),{loadSwitches:Wo})(sP);function lP(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var dP=function(e){Object(ml.a)(n,e);var t=lP(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,i=new Array(r),c=0;c<r;c++)i[c]=arguments[c];return(e=t.call.apply(t,[this].concat(i))).state={columnHeaderShown:!1,contentDomPosition:"",commentPattern:e.getByCommentFromHash()?"fixed":"bottom",justPublishedQuery:e.getJustPublishedQuery(),shareVideoQuery:e.getShareVideoId(),shouldShowVideoDetails:!1,postMainRef:null,adTrackInfo:null,republishRequests:null,signFlowModalShown:!1},e.alreadyScrolled=!1,e.postMainRef=Object(a.createRef)(),e.rewardContainerRef=Object(a.createRef)(),e.readMarkRef=Object(a.createRef)(),e.onscoll=function(){var t=e.state.contentDomPosition,n=document.querySelector(".Post-RichText"),r=Zx(n),o=n?n.getBoundingClientRect().height:0;if(!t){if(!n)return;e.setState({contentDomPosition:r+o})}(document.documentElement.scrollTop||document.body.scrollTop)+window.innerHeight>r+o&&(q.a.trackEvent(Object(kl.a)(e),{action:"ScrollToBottom"}),e.scrollSubscription.unsubscribe())},e.handleVotersButtonClick=function(){e.context.isMobile&&Yx(e.props.post.id,"vote_list")},e.handleShowContributionModal=function(){e.showRecommendModalHandler&&e.showRecommendModalHandler()},e.handleClickVideoMoreButton=function(){e.setState({shouldShowVideoDetails:!1})},e.updateCommentStatus=function(t){e.setState({commentPattern:t})},e.onCommentMount=function(t){"#comments"===e.props.location.hash&&"bottom"===e.state.commentPattern&&!e.alreadyScrolled&&(e.timeoutId=setTimeout((function(){return t.scrollIntoView()}),500))},e.renderLabels=function(t){var n=e.props,r=n.post,i=n.useNewLabels,a=r.suggestEdit.status,c=r.annotationDetail,s=r.commercialInfo,u=r.visibleOnlyToAuthor;if(t&&u)return Object(o.b)(tk,{});var l=(null==s?void 0:s.isCommercial)&&{data:s},d=!a&&c&&{annotationDetail:c};return i?a?null:Object(o.b)(NC,{commercialProps:l,annotationProps:d,item:r}):Object(o.b)(NC,{useOldLabels:!0,commercialProps:l,annotationProps:d,item:r})},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e,t=this,n=this.props,r=n.location,o=n.router,i=n.loadVideoDetails,a=n.post,c=n.ua,s=n.getTrackUrl,u=n.getUpvotedFollowees,l=n.updateReadStatus,d=n.isLogin,f=n.loadContentRightsNotification,p=n.currentUser;(!(e=a.updated)||Date.now()-1e3*e>6e4)&&Object(T.loadScript)("https://zz.bdstatic.com/linksubmit/push.js",{crossOrigin:void 0});var h=this.context.isMobile,b=this.state.shareVideoQuery;a.trackUrl?this.setState({adTrackInfo:vk(a,c)}):s(a.id).then((function(){t.setState({adTrackInfo:vk(a,c)})})),b&&i(b).then((function(){t.setState({shouldShowVideoDetails:!0})}));var v=r.query,m=v.just_published,g=Object(_e.a)(v,["just_published"]);m&&(o.replace(Object.assign({},r,{query:g})),f("article",a.id)),this.scrollSubscription=Object(nd.subscribe)("scroll",this.onscoll),d&&u(a.id),h&&this.readMarkRef.current&&Object(xT.onViewedOnce)(this.readMarkRef.current,(function(){return l({type:"article",id:a.id},!0)})),h||p||this.setState({signFlowModalShown:!0}),this.setState({postMainRef:this.postMainRef.current}),q.a.trackPageShow({id:3366})}},{key:"handleSignFlowModalClose",value:function(){this.setState({signFlowModalShown:!1})}},{key:"componentWillUnmount",value:function(){this.scrollSubscription&&this.scrollSubscription.unsubscribe(),clearTimeout(this.timeoutId)}},{key:"getByCommentFromHash",value:function(){var e=this.props.location.hash;return e&&function(e){var t=e.match(ox);return t&&t[1]}(e)}},{key:"getJustPublishedQuery",value:function(){var e=this.props,t=e.author,n=e.location;return KT(e.currentUser,t)?n.query.just_published:null}},{key:"getShareVideoId",value:function(){var e=this.context.isMobile,t=this.props.location;return e?t.query.preview_video_id:null}},{key:"renderPostTimeAreaExtra",value:function(){var e=this.props,t=e.post,n=e.selfRecommendedRepublishRequests,r=void 0===n?[]:n;return 0===r.length?null:Object(o.b)(Gx,{id:t.id,selfRecommendedRepublishRequests:r})}},{key:"render",value:function(){var e=this,t=this.props,n=t.ua,r=t.post,i=t.reward,c=t.rewardInfo,s=t.author,u=t.contributions,l=void 0===u?[]:u,d=t.contributeRequests,f=t.location.query,p=t.shareVideoDetail,h=t.isRead,b=t.currentUser,v=t.useNewLabels,m=t.readContentRightsNotification,g=t.ecommerce,O=t.shouldSpecialOia,y=t.isSearchSpecialSource,j=t.searchSpecialTitle,E=t.theme;if(!r)return null;var C=r.id,w=r.imageUrl,T=r.title,_=r.isTitleImageFullScreen,S=r.content,A=r.voteupCount,k=r.upvotedFollowees,R=r.reviewers,I=void 0===R?[]:R,x=r.created,N=r.updated,D=r.topics,P=r.reviewInfo,L=r.paging,M=r.excerpt,U=r.type,B=r.url,z=r.commercialInfo,F=r.suggestEdit,G=F.status,V=F.reason,H=r.creatorRightsNotification,q=r.isVisible,K=r.visibleOnlyToAuthor,W=r.articleType,Y=r.paidInfo,Q=void 0===Y?{}:Y,Z=r.paidContent,J=KT(b,s);if(!J&&K)return Object(o.b)(kx,{});var X,$=z||{},ee=$.isCommercial,te=$.plugin,ne=this.context.isMobile,re=this.state,oe=re.commentPattern,ie=re.justPublishedQuery,ae=re.shareVideoQuery,ce=re.shouldShowVideoDetails,se=re.adTrackInfo,ue=re.republishRequests,le=re.signFlowModalShown,de=M.replace(/<.+?>/g,""),fe=Kx(r),pe=P||{},he=pe.isReviewing,be=pe.tips,ve=JSON.stringify({userToken:b&&b.urlToken||""}),me=JSON.stringify({authorName:s&&s.name,itemId:C,title:T,type:U}),ge={title:p.title,thumbnail:p.coverUrl,isLens:!0,id:ae,isPlayable:!0,url:"https://www.zhihu.com/video/".concat(ae)},Oe=Boolean(te&&te.download),ye="paid"===W,je=Q.content,Ee=ye?je:S,Ce=Object(o.b)(kN,{article:r,paging:L,rewardInfo:c,updateCommentStatus:this.updateCommentStatus,justPublished:Boolean(ie),onContributeClick:this.handleShowContributionModal}),we=Object(o.b)(iN,{postId:C,author:s,isAuthor:J,followOpenInApp:O}),Te=!G||J,_e=_m(r,"post");return Object(o.b)(im.a,{module:"PostItem",card:{content:{type:"Post",token:String(C)}},children:Object(o.c)("div",{className:"Post-content","data-zop-usertoken":ve,"data-zop":me,children:[Object(o.b)(Ix,{entity:r}),!ne&&Object(o.b)(uP,{justPublishedQuery:ie,articleId:C,columnId:fe&&fe.id,getShowRecommendModalHandler:function(t){return e.showRecommendModalHandler=t}}),le&&Object(o.b)(jd.b,{maskClosable:!1,showQrcodeFirst:!0,defaultType:"login",onClose:function(){e.handleSignFlowModalClose()}}),Object(o.b)(jt.a,{title:T,meta:Sv(r)}),!ne&&Object(o.b)(pv,{columnId:fe&&fe.id,showAdblockBanner:!0}),w&&!G&&Object(o.b)(rN,{imageUrl:w,title:T,fullScreen:!ne&&_}),ne&&we,Object(o.b)("article",{className:rl()("Post-Main",{"Post-NormalMain":!ne}),ref:this.postMainRef,tabIndex:-1,children:Object(o.c)(ff.c.Provider,{value:this.state.postMainRef,children:[Object(o.c)("header",{className:"Post-Header",children:[Object(o.b)("h1",{className:"Post-Title",children:T}),!ne&&we,!ye&&v&&this.renderLabels(J),!G&&!ne&&Object(o.b)("div",{onClick:this.handleVotersButtonClick,children:Object(o.b)(XS,{id:C,type:U,voteupCount:A,upvotedFollowees:k,defaultModalShown:"true"===f.from_voters_page})})]}),q&&he&&Object(o.b)(DD,{tips:be}),G&&Object(o.b)(LD,{reason:V,isAuthor:J}),!G&&ne&&Object(o.b)(UD,{time:N,column:fe,isPaidArticle:ye}),!ye&&!v&&this.renderLabels(J),ye&&Object(o.b)(QI,{result:Z,extra:{ua:n,isDarkMode:E.isDarkMode}}),ae&&ce?Object(o.c)(a.Fragment,{children:[Object(o.b)($T.a,{data:ge}),Object(o.b)("p",{className:"Post-VideoContentMore",onClick:this.handleClickVideoMoreButton,children:"点击查看全文"})]}):Te&&Object(o.b)(IN,{html:Ee,ecommerce:g,author:s,id:C,url:B,title:T,isVisible:q,isAuthor:J,shouldShowCatalog:_e}),Te&&Object(o.b)(wS,{content:S,type:"article",urlToken:String(C)}),ye&&Object(o.b)(rx,{result:Z,extra:{ua:n,theme:E}}),ne&&Object(o.b)("div",{className:"Post-ReadMark",ref:this.readMarkRef}),Oe&&Object(o.b)(dD,{isMobile:ne,info:te.download,related:se}),!G&&!(ae&&ce)&&Object(o.b)(lx,{created:x,updated:N,extraInlineComponent:this.renderPostTimeAreaExtra()}),!G&&b&&l.length>0&&Object(o.b)(D_,{imperativeRef:this.rewardContainerRef,reward:i,currentUser:b,rewardInfo:c,isMobile:ne,id:C,isAuthor:J,author:s,ua:n,type:U,onRewardUserClick:function(e){return av(e,1296)},onRewardUserMoreClick:function(e){return av(e,1297)},onRewardButtonClick:function(e){return av(e,1298)},balanceEnable:!1}),!G&&Object(o.c)("div",{className:"Post-topicsAndReviewer",children:[Object(o.b)(yx,{className:rl()("Post-Topics",{"Post-TopicsReviewer":I.length>0}),topics:D,onItemClick:function(e){return av(e,1295)}}),I.length>0&&Object(o.b)(tN,{reviewers:I,type:U,isAuthor:J})]}),!ne&&!(G&&!J)&&Ce]})}),y&&Object(o.b)(Tx,{className:"Post-searchSpecialButton",title:j}),Object(o.c)("div",{className:rl()("Post-Sub",{"Post-NormalSub":!ne}),children:[!G&&Object(o.b)(xD,{contributions:l,postId:C}),!ee&&!G&&Object(o.b)(ZN,{id:C}),!G&&Object(o.b)(_D,{parent:r,byComment:this.getByCommentFromHash(),commentPattern:oe,updateCommentStatus:this.updateCommentStatus,onMount:this.onCommentMount}),!ne&&b&&Object(o.b)(bD,{postId:C,author:s,contributeRequests:d}),O&&Object(o.b)(Pv.a,{href:Object(Lv.a)({type:"article",id:C},{utm_content:"app_jumping",open:h?"1":"0"})}),ne&&!(G&&!J)&&Ce]}),Object(o.b)(ag,{notification:H,onRead:function(e){m("article",r.id,e)},onUseAdmire:function(){e.rewardContainerRef.current.activateReward()},onUseRecommend:function(){var t=e.props.postToolsRecommend;Ch.a.confirm(Object(o.b)("div",{style:{textAlign:"center"},children:"该推荐将使用本月的 1 次推荐次数。"}),{title:"确定是否推荐?"}).then((function(){return t("article",C)}),(function(){}))}}),Object(o.c)(cf.a,{children:[Object(o.b)(_l.a,{title:T,desc:de,extraQuery:(X=Dn.a.get("social_id"),X?{s_s_i:X,s_r:1}:{s_r:0}),imgUrl:w||Hx.a}),Object(o.b)(wx,{})]}),!ne&&Object(o.b)(Mx,{entityType:"article",id:C,isAuthor:J,onShowAllRequests:function(t){e.setState({republishRequests:t})}}),!ne&&Boolean(ue)&&Object(o.b)(Fx,{isAuthor:J,republishRequests:ue,onClose:function(){e.setState({republishRequests:null})}})]})})}}]),n}(a.Component);dP.fetchData=function(e){var t=e.params.id,n=e.dispatch;return Promise.all([n(Object(ru.d)(t)).then((function(e){if("paid"===e.payload.articleType)return n(Object(ru.f)(t))})),n(bk(t))])},dP.contextTypes={isMobile:jl.a.bool},dP.propTypes={post:jl.a.object,author:jl.a.object,contributions:jl.a.array,contributeRequests:jl.a.array,shareVideoDetail:jl.a.object,isSearchSpecialSource:jl.a.bool,searchSpecialTitle:jl.a.string};var fP=Object(Lt.compose)(Object(wf.b)(),Object(Ot.connect)((function(e,t){var n=t.params,r=e.entities,o=r.articles,i=r.users,a=r.columns,c=e.articleContribution,s=e.reward,u=e.video.shareVideoDetail,l=o[n.id];!Object(W.isBrowser)()||l&&l.commercialInfo||window.Raven.captureException(new Error("Missing post data in PostIndex."),{tags:{scope:"Column"},extra:{columns:a,articles:o,params:n}});var d=Jx({columns:a,post:l,articleContribution:c}).contributions,f=Xx({articleContribution:c}).contributeRequests,p=$x({reward:s,post:l}),h=p.articleReward,b=p.rewardInfo,v=l.author,m=(v=void 0===v?{}:v).urlToken,g=ix(e);return{post:l,contributions:d,contributeRequests:f,rewardInfo:b,reward:h,isSearchSpecialSource:g.isSearchSpecialSource,searchSpecialTitle:g.searchSpecialTitle,ua:Object(z.m)(e),author:i[m]||l.author,shouldSpecialOia:Object(z.j)(e),shareVideoDetail:u,isRead:wi(e,{type:"article",id:n.id}),ecommerce:Object(Mt.c)(e,{type:"article",urlToken:n.id}),selfRecommendedRepublishRequests:ns(e),theme:e.env.theme}}),{loadSwitches:Wo,loadVideoDetails:No.d,getTrackUrl:bk,getUpvotedFollowees:ru.e,updateReadStatus:Ci,loadContentRightsNotification:gi.c,readContentRightsNotification:gi.f,postToolsRecommend:gi.e}),iS)(dP),pP=n(715),hP=n.n(pP);function bP(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var vP=function(e){Object(ml.a)(n,e);var t=bP(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){return Object(o.c)("div",{className:"PreviewComments-EmptyComment",children:[Object(o.b)("img",{src:hP.a,alt:"无草稿评论"}),Object(o.b)("p",{className:"PreviewComments-EmptyCommentText",children:"暂无草稿评论"})]})}}]),n}(a.PureComponent);function mP(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var gP=function(e){Object(ml.a)(n,e);var t=mP(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={active:!1,disabled:!0,changeHeight:!1},e.handleSubmit=function(){var t=e.input.toHTML();e.addComment(t)},e.handleBlur=function(){var t=e.state.disabled;t&&(document.querySelector(".PreviewComments-content").style.height="518px",e.setState({changeHeight:!1})),e.setState({active:!t})},e.handleChange=function(t){e.setState({disabled:t.isEmpty})},e.handleFocus=function(){if(!e.state.changeHeight){var t=document.querySelector(".PreviewComments-content").offsetHeight+48;document.querySelector(".PreviewComments-content").style.height="".concat(t,"px"),e.setState({changeHeight:!0})}e.setState({active:!0})},e.addComment=function(t){var n,r=["article_review",e.props.id,t];(n=e.props).addComment.apply(n,r).then((function(){e.input.reset()}))},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this,t=this.state,n=t.active,r={preset:"primary",color:"blue",children:"评论",disabled:t.disabled};return Object(o.c)("div",{className:"PreviewComments-InputContent",children:[Object(o.b)(Ah.a,{allowMention:!0,allowPasteRichText:!1,outputBlockType:"div",ref:function(t){e.input=t},placeholder:"写下你的评论…",onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onSubmit:this.handleSubmit}),n&&Object(o.b)(yf.c,Object.assign({},r,{className:"PreviewComments-singleButton",onClick:this.handleSubmit}))]})}}]),n}(a.Component);gP.propTypes={id:jl.a.number.isRequired};var OP=Object(Lt.compose)(Object(Ot.connect)(null,{addComment:jn.a}))(gP);function yP(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var jP=function(e){Object(ml.a)(n,e);var t=yP(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).handleDeleteComment=function(){var t=e.props,n=t.id,r=t.postId;e.props.deleteComment(n,"article",r)},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.author,n=t.member,r=t.member,i=(r=void 0===r?{}:r).name,a=e.isAuthor,c=e.createdTime,s=e.isArticleAuthor;return Object(o.c)("div",{className:"PreviewAuthorInfo",children:[Object(o.b)(VS.a,{className:"PreviewAuthorInfo-avatarWrapper",user:n,avatar:!0,avatarProps:{className:"AuthorInfo-avatar",size:36,round:!0}}),Object(o.c)("div",{className:"PreviewAuthorInfo-content",children:[Object(o.c)("div",{className:"PreviewAuthorInfo-head",children:[Object(o.b)("span",{className:"PreviewAuthorInfo-Author",children:i}),s&&Object(o.b)("span",{className:"PreviewAuthorInfo-Type",children:"(作者)"})]}),Object(o.c)("div",{className:"PreviewAuthorInfo-detail",children:[Object(o.b)("span",{children:Object(ci.toRelativeString)(c)}),(a||s)&&Object(o.c)("span",{className:"PreviewAuthorInfo-DeleteButton",onClick:this.handleDeleteComment,children:[" ","· 删除"]})]})]})]})}}]),n}(a.Component);jP.propTypes={author:jl.a.object.isRequired,createdTime:jl.a.number.isRequired,id:jl.a.number.isRequired,postId:jl.a.number.isRequired,isArticleAuthor:jl.a.bool},jP.defaultProps={author:{},isArticleAuthor:!1};var EP=Object(Lt.compose)(Object(Ot.connect)(null,{deleteComment:jn.d}))(jP);function CP(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var wP=function(e){Object(ml.a)(n,e);var t=CP(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.comment,n=t.author,r=t.content,i=t.createdTime,a=t.id,c=t.isDelete,s=e.postId,u=e.postAuthor;if(c)return null;var l=u.id===n.member.id;return Object(o.c)("div",{className:"PreviewContent",children:[Object(o.b)(EP,{author:n,createdTime:i,postId:s,id:a,isArticleAuthor:l}),Object(o.b)(bC.a,{html:r,className:"PreviewContent-RichText"}),Object(o.b)(NN,{className:"PreviewContent-Line"})]})}}]),n}(a.Component);function TP(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}wP.propTypes={comment:jl.a.object,postId:jl.a.number,postAuthor:jl.a.object};var _P=function(e){Object(ml.a)(n,e);var t=TP(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).load=function(t){var n=e.props,r=n.previewPost.id;(0,n.loadComments)("article_review",r,{order:"normal",isPrevious:t})},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){this.load()}},{key:"render",value:function(){var e=this.props,t=e.isDrained,n=e.isFetching,r=e.isPrevDrained,i=e.comments,a=e.previewPost,c=a.id,s=a.author,u=e.className,l=e.close;return Object(o.b)("div",{className:rl()("PreviewComments",u),children:Object(o.c)("div",{className:"PreviewComments-content",children:[Object(o.b)("p",{className:"PreviewComments-title",children:"草稿评论"}),Object(o.b)("p",{className:"PreviewComments-description",children:"文章发表后草稿评论仅文章作者可见"}),i.length>0?Object(o.b)(Bv.b,{className:"PreviewComments-List",isLocal:!0,isLoading:n,isPrevDrained:r,isDrained:t,onLoad:this.load,placeholder:Object(o.b)(Bv.a,{className:"CommentItem",small:!0}),children:i.map((function(e){return Object(o.b)(wP,{comment:e,postId:c,postAuthor:s},e.id)}))}):Object(o.b)(vP,{}),Object(o.b)(OP,{id:c}),l]})})}}]),n}(a.Component);_P.propTypes={previewPost:jl.a.object.isRequired,post:jl.a.object,isDrained:jl.a.bool,isFetching:jl.a.bool,isPrevDrained:jl.a.bool,comments:jl.a.array,className:jl.a.string,close:jl.a.element},_P.defaultProps={comments:[]};var SP=Object(Lt.compose)(Object(rb.a)(null),Object(Ot.connect)((function(e,t){var n=t.post||e.previewPost,r="article_review_".concat(n.id),o=yD(e,{target:r});return{comments:o.newComments,previewPost:n,isDrained:o.isDrained,isFetching:o.isFetching,isPrevDrained:o.isPrevDrained}}),{loadComments:jn.e}))(_P);function AP(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var kP=function(e){Object(ml.a)(n,e);var t=AP(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props.previewPost,t=e.imageUrl,n=e.title,r=e.isTitleImageFullScreen,i=e.content,a=e.author,c=e.column,s=this.context.isMobile,u=Object(o.b)(iN,{author:a,isAuthor:!0});return Object(o.c)("div",{className:"PreviewPost-content",children:[Object(o.b)(jt.a,{title:n}),!s&&Object(o.b)(pv,{columnId:c&&c.id}),t&&Object(o.b)(rN,{imageUrl:t,title:n,fullScreen:r}),s&&u,Object(o.c)("article",{className:"PreviewPost-Main",children:[Object(o.c)("header",{children:[Object(o.b)("h1",{className:"PreviewPost-Title",children:n}),!s&&u]}),Object(o.b)(bC.a,{html:i,className:"PreviewPost-RichText"}),!s&&Object(o.b)(SP,{})]})]})}}]),n}(a.Component);kP.fetchData=function(e){return(0,e.dispatch)(function(e){return{API:{root:Qs.c,types:eu.GET,endpoint:"/articles/".concat(e,"/review"),method:"GET",fetchOptions:{credentials:"include"}},schema:no.a.ARTICLE}}(e.params.id))},kP.contextTypes={currentUser:jl.a.object,isMobile:jl.a.bool},kP.propTypes={previewPost:jl.a.object};var RP=Object(Lt.compose)(Object(Ot.connect)((function(e){return{previewPost:e.previewPost}})))(kP),IP=n(525),xP=n.n(IP),NP=Object(a.createContext)({}),DP=Object(st.withRouter)((function(e){var t=e.to,n=e.router,r=Object(a.useContext)(NP);return r.url||(r.url=t),Object(a.useEffect)((function(){Object(oe.isAbsoluteUrl)(t)?window.location.replace(t):n.replace(t)}),[n,t]),null})),PP=function(e){return c.a.createElement(xl.a,e,c.a.createElement("path",{d:"M20.094 6S22 6 22 8v10.017S22 20 19 20H4.036S2 20 2 18V7.967S2 6 4 6h3s1-2 2-2h6c1 0 2 2 2 2h3.094zM12 16a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7zm0 1.5a5 5 0 1 0-.001-10.001A5 5 0 0 0 12 17.5zm7.5-8a1 1 0 1 0 0-2 1 1 0 0 0 0 2z",fillRule:"evenodd"}))};PP.defaultProps={name:"Camera"};var LP=PP,MP=n(386);function UP(e){var t=e.className,n=e.delay,r=Object(a.useState)(10),i=Object(gt.a)(r,2),c=i[0],s=i[1],u=Object(a.useState)(n),l=Object(gt.a)(u,2),d=l[0],f=l[1];return Object(Bn.e)((function(){c<90?s(c+10):f(null)}),d),Object(o.b)("div",{className:rl()("FakeProgress",t),children:Object(o.b)("div",{className:"FakeProgress-inner",style:{width:"".concat(c,"%")}})})}UP.propTypes={className:jl.a.string,delay:jl.a.number},UP.defaultProps={delay:200};var BP=UP;function zP(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var FP=function(e){Object(ml.a)(n,e);var t=zP(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"renderImage",value:function(){var e=this.props,t=e.fullScreen,n=e.imageUrl,r=e.imageSize,i=e.title,a=e.appWidth;if(t){var c={backgroundImage:"url(".concat(n,")")};return Object(o.b)("div",{className:"WriteTitleImage-image WriteTitleImage-image--full",style:c})}var s={className:"WriteTitleImage-imagePure"};if(r&&r.height){var u=Math.round(r.height*a/r.width);s.height=u,s.className+=" WriteTitleImage-imagePure--fixed"}return Object(o.b)("img",Object.assign({alt:i||"",src:n},s))}},{key:"render",value:function(){return Object(o.b)("div",{className:"WriteTitleImage",children:this.renderImage()})}}]),n}(a.Component);function GP(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}FP.propTypes={appWidth:jl.a.number,fullScreen:jl.a.bool,title:jl.a.string,imageUrl:jl.a.string.isRequired,imageSize:jl.a.shape({height:jl.a.number,width:jl.a.number})},FP.defaultProps={appWidth:660,fullScreen:!1,title:""};var VP=function(e){Object(ml.a)(n,e);var t=GP(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).uploadImage=function(t){var n=t.file;if(n){var r=e.props,o=r.logTime,i=r.updateDraft,a=r.uploadCover;o("start");var c=o("calculate");a(n).then((function(e){var t={titleImage:e.url,isTitleImageFullScreen:gu(e),delta_time:c};return i(t)})).catch(Am.a)}},e.handleToggleFullScreen=function(){var t=e.props,n=t.imageFullScreen,r=t.image,o=t.logTime,i=t.toggleFullScreen,a=t.updateDraft;o("start"),a({isTitleImageFullScreen:!n,titleImage:r,delta_time:o("calculate")}).then((function(){return i()}))},e.handleRemove=function(){var t=e.props,n=t.logTime,r=t.updateDraft,o=t.removeCover;n("start"),r({titleImage:"",delta_time:n("calculate")}).then(o)},e}return Object(vl.a)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.title,r=t.imageSize,i=t.image,c=t.imageFullScreen,s=t.uploading,u=t.onRef,l=gu(r),d=!i&&!s;return Object(o.b)("div",{className:"WriteCover-wrapper",children:Object(o.c)("div",{className:rl()("WriteCover-previewWrapper",{"WriteCover-previewWrapper--empty":d,"WriteCover-previewWrapper--uploading":s}),children:[i&&!s&&Object(o.c)(a.Fragment,{children:[Object(o.b)("img",{ref:u,src:i,style:{display:"none"}}),Object(o.b)(FP,{fullScreen:c,imageUrl:i,imageSize:r,title:n}),Object(o.c)("div",{className:"WriteCover-editWrapper",children:[l&&Object(o.b)(yf.c,{className:"WriteCover-editButton WriteCover-toggleFullButton",title:"更改大小","aria-label":"更改大小",onClick:this.handleToggleFullScreen,children:c?Object(o.b)(cO,{}):Object(o.b)(Gg,{})}),Object(o.b)(yf.c,{className:"WriteCover-editButton WriteCover-uploadButton",title:"更换","aria-label":"更换",onClick:function(){return e.uploadNode.click()},children:Object(o.b)(LP,{})}),Object(o.b)(yf.c,{className:"WriteCover-editButton WriteCover-deleteButton",title:"删除","aria-label":"删除",onClick:this.handleRemove,children:Object(o.b)(dp,{})})]})]}),Object(o.b)(MP.a,{accept:".jpeg, .jpg, .png",customUpload:this.uploadImage,onRef:function(t){t&&(e.uploadNode=t)},children:d&&Object(o.b)(LP,{size:42,className:"WriteCover-uploadIcon"})}),s&&Object(o.b)(BP,{className:"WriteCover-progress"})]})})}}]),n}(a.Component);VP.propTypes={image:jl.a.string,imageFullScreen:jl.a.bool,imageSize:jl.a.object,title:jl.a.string,uploading:jl.a.bool,onRef:jl.a.func,logTime:jl.a.func.isRequired},VP.defaultProps={onRef:function(){}};var HP=Object(Lt.compose)(Object(rb.a)(null),Object(Ot.connect)(null,{uploadCover:function(e){return e.length&&(e=e[0]),e.size>1024*le.G*1024?Promise.reject(new Error("抱歉!请上传大小为 ".concat(le.G,"M 以下的图片文件"))):function(t){return t(Lu(yu,e)).then(Mu).then((function(e){var t=e.width,n=e.height;if(t<330||n<100)throw new Error("图片太小,请重新上传");return e}))}},toggleFullScreen:function(){return{type:Iu}},removeCover:function(){return{type:xu}}}))(VP);function qP(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var KP=function(e,t){var n=t?e.replace(/<.+?>/g,""):e;return Array.from(n).length},WP=function(e,t,n){var r=KP(e,n);if(0===r)return{ok:!1,message:null};var o=r-t;return o>0?{ok:!1,message:"已超过 ".concat(o," 个字")}:o>=-10?{ok:!0,message:"还可以输入 ".concat(-o," 个字")}:{ok:!0,message:null}},YP=function(e){return KP(e,!0)<9},QP=function(e){Object(ml.a)(n,e);var t=qP(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).check="title"===e.props.type?function(e){return WP(e,100)}:function(e){return WP(e,5e4,!0)},e.state=e.check(e.props.content),e.compareState=function(t){var n=t.ok,r=t.message;return e.state.message!==r||e.state.ok!==n},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){this.props.onStatusChange(this.state.ok)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.onStatusChange,r=t.content;if(e.content!==r){var o=this.check(e.content);this.compareState(o)&&(n(o.ok),this.setState(o))}}},{key:"shouldComponentUpdate",value:function(e,t){return this.compareState(t)}},{key:"render",value:function(){var e=this.state,t=e.ok,n=e.message,r=rl()("WriteIndex-LengthStatus",{"WriteIndex-LengthStatus-warning":!t});return n&&Object(o.b)("div",{className:r,children:n})}}]),n}(a.Component);function ZP(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}QP.propTypes={content:jl.a.string,type:jl.a.oneOf(["content","title"]).isRequired,onStatusChange:jl.a.func.isRequired};var JP=function(e){Object(ml.a)(n,e);var t=ZP(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={titleChangeStatus:!1,textContent:e.props.title},e.isFocused=!1,e.onCompositionStart=function(){e.isFocused&&(e.composition=!0,e.handleChangeTitle.cancel())},e.onCompositionEnd=function(){e.isFocused&&(e.composition=!1,e.handleChangeTitle(e.prevValue||e.input.value),e.prevValue=null)},e.onChangeTitle=function(t){e.props.logTime("start"),e.checkHeight();var n=t.target.value;e.setState({titleChangeStatus:!0,textContent:n}),e.composition?e.prevValue=n:e.handleChangeTitle(n)},e.handleChangeTitle=uO((function(t){var n=e.props,r=n.logTime;(0,n.updateDraft)({title:t,delta_time:r("calculate")})}),300),e.handleKeyDown=function(e){13===e.keyCode&&e.preventDefault()},e}return Object(vl.a)(n,[{key:"componentWillReceiveProps",value:function(e){var t=this.state.titleChangeStatus,n=e.title;n&&this.props.title!==n&&!t&&(this.input.value=n,this.setState({textContent:n}),this.checkHeight())}},{key:"componentDidMount",value:function(){this.checkHeight(),document.addEventListener("compositionstart",this.onCompositionStart),document.addEventListener("compositionend",this.onCompositionEnd);var e=this.props.title;e&&(this.input.value=e)}},{key:"componentWillUnmount",value:function(){this.handleChangeTitle.cancel(),document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd)}},{key:"checkHeight",value:function(){if(this.input){this.input.style.height="1px";var e=Math.max(this.input.scrollHeight,44);this.input.style.height="".concat(e,"px")}}},{key:"render",value:function(){var e=this,t=this.props.onRef;return Object(o.c)("div",{children:[Object(o.b)(Hl.a,{className:"WriteIndex-titleInput",multiline:!0,placeholder:"请输入标题(最多 ".concat(100," 个字)"),onChange:this.onChangeTitle,onRef:function(n){e.input=n,t(n)},onKeyDown:this.handleKeyDown,onFocus:function(){return e.isFocused=!0},onBlur:function(){return e.isFocused=!1},rows:"1"}),Object(o.b)(QP,{content:this.state.textContent,type:"title",onStatusChange:this.props.onLengthStatusChange})]})}}]),n}(a.Component);JP.propTypes={title:jl.a.string,logTime:jl.a.func.isRequired,updateDraft:jl.a.func.isRequired,onRef:jl.a.func},JP.defaultProps={onRef:function(){}};var XP=Object(rb.a)(null)(JP),$P=n(432);function eL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var tL=[".jpg",".jpeg",".png",".gif"],nL=function(e){Object(ml.a)(n,e);var t=eL(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,i=new Array(r),c=0;c<r;c++)i[c]=arguments[c];return(e=t.call.apply(t,[this].concat(i))).state={content:e.props.content,realTimeContent:e.props.content,draftHistoryModalShown:!1,baiduFileSelectorShown:!1,showUserProfitCardSelector:!1,showZVideoUploader:!1,mcnEditingGood:null,toolbarMenuAttention:null,initialScheduledPublishAt:e.props.scheduledPublishAt},e.syncDraft=uO((function(t){var n=e.props,r=n.updateDraft,o=n.logTime,i=n.onTyping,a=t.toHTML();e.setState({realTimeContent:a}),r({content:a,delta_time:o("calculate")}),i(!1)}),1e3),e.handleChangeContent=function(t){var n=e.props,r=n.logTime;(0,n.onTyping)(!0),r("start"),e.syncDraft(t)},e.uploadImage=function(t){return(0,e.props.uploadContentImage)(t,"article").then((function(e){var t=e.id,n=e.width,r=e.height;return{url:e.url,id:t,rawWidth:n,rawHeight:r,watermark:e.watermark,watermarkSrc:e.watermarkSrc,originalSrc:e.originalSrc}}))},e.uploadVideo=function(){var t=e.props.uploadVideo;return t.apply(void 0,arguments).then((function(e){return e.payload}))},e.handleError=function(t,n){var r=e.props.showErrorMessage;if("image-upload-error"===t)return r(Mo()(n,"payload.payload.message")||"图片上传失败,请重新上传");Ih(t,n,r)},e.uploadImageError=function(t){var n=e.props.showErrorMessage;switch(t){case"type":return n("格式不支持,请上传以下格式的图片:".concat(tL.join(", ")));case"size":return n("请上传不超过 ".concat(le.G,"M 的图片"));case"dimension":return n("GIF 图片的长或宽低于 ".concat(120,"px,无法上传"));case"other":return n("图片上传未完成,请稍后发布")}},e.handleUploadError=function(t,n){switch(n){case"video":e.handleError("video-upload-error");break;case"image":e.handleError("image-upload-error",t)}},e.handleInsertZVideo=function(){e.setState({showZVideoUploader:!0})},e.getToolbarUserProfitPlugin=function(t){if(!e.props.showUserProfitButton)return null;var n=Jg.RichUtils.getCurrentBlockType(t.state.editorState),r=["atomic","code-block"].includes(n);return Object(o.b)(Eh.a,{label:"用户收益",icon:Object(o.b)($g,{}),onClick:function(){e.setState({showUserProfitCardSelector:!0}),q.a.trackEvent(null,{id:6097,action:"Click"})},onRef:e.trackUserProfitCardshow,disabled:r},"userProfit")},e.getToolbarBaiduFilePlugin=function(t){var n=Jg.RichUtils.getCurrentBlockType(t.state.editorState),r=["atomic","code-block"].includes(n);return Object(o.b)(Eh.a,{label:"上传附件",icon:Object(o.b)(tO,{}),onClick:function(){t.getFileLinkCards().size>=10?Ch.a.alert(null,{title:"一篇内容最多可添加 ".concat(10," 个附件")}):e.setState({baiduFileSelectorShown:!0})},disabled:r},"baiduFile")},e.getToolbarMainPlugins=function(){var t,n;return Object(o.c)(o.a,{children:[(t=e).getToolbarUserProfitPlugin.apply(t,arguments),(n=e).getToolbarBaiduFilePlugin.apply(n,arguments)]})},e.trackUserProfitCardshow=I()((function(){q.a.trackCardShow(null,{id:6096})})),e.getToolbarMenuPlugins=function(){var t=e.props,n=t.postId,r=t.scheduledPublishAt,i=Boolean(n),c=e.props.useEditableV2;return Object(o.c)(a.Fragment,{children:[i&&!c&&Object(o.c)(Eh.c,{onClick:e.showDraftHistoryModal,children:[Object(o.b)(Qb,{text:!0}),"历史版本"]}),e.canUseScheduledPublish&&Object(o.c)(Eh.c,{onClick:function(){e.setUseScheduledPublish(!r),q.a.trackEvent(Object(kl.a)(e),{action:"Click",id:5730,name:"文章"})},children:[Object(o.b)(oO,{text:!0}),r?"取消定时发布":"定时发布"]})]})},e.showDraftHistoryModal=function(){e.syncDraft.flush(),e.setState({draftHistoryModalShown:!0}),q.a.trackEvent(null,{id:5013,action:"Click",name:"历史版本入口"})},e.hideDraftHistoryModal=function(){e.setState({draftHistoryModalShown:!1})},e.handleReverted=function(t){var n=t.draft,r=n.content,o=n.title,i=e.props,a=i.logTime,c=i.updateDraft;a("start");var s=a("calculate");c({content:r,title:o,delta_time:s}).finally((function(){return e.editable.resetWithValue(r)}))},e.handleUserProfitCardSelectorSubmit=function(t){if("ProfitCardSelector/submitProfitCardInfo"===(null==t?void 0:t.type)&&(null==t?void 0:t.payload)){var n=t.payload,r=n.type,o=n.id,i=n.url;if(n.preventClose||e.setState({showUserProfitCardSelector:!1}),"inserLinkCard"===r&&e.editable.handleCommand("insert-link-card:".concat(i)),"insertMCNLinkCard"===r){if(e.editable.getMCNLinkCards().size>=30)return void Ch.a.alert("一篇内容最多可添加 ".concat(30," 个商品"));e.editable.handleCommand("insert-mcn-link-card:".concat(o))}if("insertAdLinkCard"===r){if(o.startsWith("ZhiTask_"))if(e.editable.getADLinkCards().filter((function(e){return e.getData().id.startsWith("ZhiTask_")})).size>=5)return void Ch.a.alert("一篇内容最多可添加 ".concat(5," 个「知+自选」卡片"));if(o.startsWith("fee_"))if(e.editable.getADLinkCards().filter((function(e){return e.getData().id.startsWith("fee_")})).size>=1)return void Ch.a.alert("一篇内容最多可添加 ".concat(1," 个「付费回答」卡片"));e.editable.handleCommand("insert-ad-link-card:".concat(o))}}},e.handleEditGGRCard=function(t){var n=t.type,r=t.payload,o=e.state.mcnEditingGood,i=e.props.updateLinkCard;"goodsEditor/submitNewGoodsInfo"!==n?"goodsEditor/closeGoodsEditor"!==n||e.setState({mcnEditingGood:null}):i(Object.assign({},o,{title:null==r?void 0:r.title})).finally((function(){e.setState({mcnEditingGood:null}),e.editable.handleCommand("edit-mcn-link-card:".concat(o.id))}))},e.draftHistoryPlugin=PC({type:"article",id:e.props.postId,syncDraft:e.syncDraft,shouldShowToolbarButton:function(){return e.props.postId}}),e}return Object(vl.a)(n,[{key:"componentWillReceiveProps",value:function(e){e.content&&this.props.content!==e.content&&(this.setState({realTimeContent:e.content}),this.editable&&!this.editable.toHTML()?this.editable.resetWithValue(e.content):this.setState({content:e.content}))}},{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.fillCurrentUserIfNeeded,r=t.getUserProfitPermission,o=n(["autoSendingCreations","mcn_user_info"]);r(),Promise.resolve(o).then((function(){U.getActionsByNames(["p_draft_history",e.canUseScheduledPublish&&"auto_pub_article"].filter(Boolean)).then((function(t){var n=Object(gt.a)(t,1)[0];n&&(e.setState({toolbarMenuAttention:n.description}),U.markAsShown(n),"auto_pub_article"===n.guide_name&&q.a.trackCardShow(e,{id:5738}))}))})),w.a.set("debug","ali-oss"),window.onbeforeunload=function(){return e.syncDraft.pending()||e.props.draft&&e.props.draft.updating?"草稿尚未保存完毕,确定离开此页?":void 0},q.a.trackCardShow(this,{id:5729,name:"文章"})}},{key:"componentWillUnmount",value:function(){this.syncDraft.cancel()}},{key:"setUseScheduledPublish",value:function(e,t){var n=this,r=this.props.onScheduledPublishAtChange;if(e)if(t)r(t);else{var o=Qg(new Date,30);this.setState({initialScheduledPublishAt:o}),r(o)}else Ch.a.confirm("取消后,当前设定的定时发布将不会生效,确定要取消发布吗?",{title:"取消定时发布",text:{cancel:"我再想想"}}).then((function(){r(void 0),q.a.trackEvent(n,{action:"Click",id:5737,name:"文章"})})).catch((function(){q.a.trackEvent(n,{action:"Click",id:5736,name:"文章"})})),q.a.trackCardShow(this,{id:5735,name:"文章"})}},{key:"render",value:function(){var e=this,t=this.props,n=t.postId,r=t.onEditableRef,i=t.videoPoster,a=void 0===i?{}:i,c=t.onLengthStatusChange,s=t.couldSuperVideoUpload,u=t.scheduledPublishAt,l=t.useEditableV2,d=this.state,f=d.content,p=d.realTimeContent,h=d.draftHistoryModalShown,b=d.baiduFileSelectorShown,v=d.showUserProfitCardSelector,m=d.showZVideoUploader,g=d.mcnEditingGood,O=d.toolbarMenuAttention,y=d.initialScheduledPublishAt;return Object(o.c)("div",{className:"PostEditor-wrapper",children:[Object(o.b)($P.a,Object.assign({ref:function(t){e.editable=t,r&&r(t)},large:!0,richtext:!0,spread:!0,allowLinkCard:!0,allowImageCaption:!0,allowResizeImage:!0,allowMention:!0,allowDragAndDrop:!0,allowToolbar:!0,allowToolbarSticky:!0,allowInlineCode:!0,allowUploadDocument:!0,allowVideoTitleChange:!0,allowZVideo:!0,allowReference:!0,allowTable:!0,allowHeaderThree:!1,placeholder:"请输入正文",className:"PostEditor",editingContentType:"article",toolbarMenuAttention:O,onInsertZVideo:this.handleInsertZVideo,toolbarProps:{menuCallout:u&&y&&Object(o.c)(Eh.b,{className:"PostEditor-scheduledPublishCallout",onClose:function(){e.setUseScheduledPublish(!1),q.a.trackEvent(e,{action:"Click",id:5734,name:"文章"})},children:["发布时间:",Object(o.b)(Vy,{onRef:function(t){return e.dateTimePicker_=t},value:y,min:y,max:Zg.a(y,7),onChange:function(t,n){e.setUseScheduledPublish(!0,t),q.a.setModule(e.dateTimePicker_,{module:"Unknown",module_name:n.date?"日期":n.hours?"小时":n.minutes?"分钟":void 0}),q.a.trackEvent(e.dateTimePicker_,{action:"Click",id:5731,name:"文章"})}}),Object(o.c)("a",{href:"https://www.zhihu.com/draft?type=article&filter=schedule",target:"_blank",rel:"noopener noreferrer","data-za-detail-view-id":5732,"data-za-detail-view-name":"文章",style:{marginLeft:"2em"},children:[Object(o.b)(Gv.a,{text:!0,center:!0})," 管理待发布内容"]})]})},onChange:this.handleChangeContent,onImageUpload:this.uploadImage,onVideoUpload:this.uploadVideo,defaultValue:f,poster:a.url,onError:this.handleError,uploadImageError:this.uploadImageError,onUploadError:this.handleUploadError,couldSuperVideoUpload:s,getToolbarMainPlugins:this.getToolbarMainPlugins,getToolbarMenuPlugins:this.getToolbarMenuPlugins,onMCNLinkCardEdit:function(t,n){e.setState({mcnEditingGood:n})}},l&&{getPlugins:function(){return[e.draftHistoryPlugin]}})),Object(o.b)(QP,{content:p,type:"content",onStatusChange:c}),n&&!l&&Object(o.b)(SC,{shown:h,onClose:this.hideDraftHistoryModal,type:"article",id:n,onReverted:this.handleReverted}),Object(o.b)(Hy,{shown:b,onClose:function(){e.setState({baiduFileSelectorShown:!1})},onSubmit:function(t){e.setState({baiduFileSelectorShown:!1}),e.editable.handleCommand("insert-file-link-card:".concat(JSON.stringify(t)))}}),Object(o.b)(Pt.b,{className:"UserProfitCardSelector",size:"large",onClose:function(){e.setState({showUserProfitCardSelector:!1})},children:v&&Object(o.b)("div",{className:"UserProfitCardSelector-content",children:Object(o.b)(OO,{className:"UserProfitCardSelector-iframe",src:"https://www.zhihu.com/selection/profit-selector?contentId=".concat(n,"&contentType=article"),onMessage:this.handleUserProfitCardSelectorSubmit})})}),Object(o.b)(Pt.b,{className:"PostEditor-MCNEditor",title:"编辑商品",onClose:function(){e.setState({mcnEditingGood:null})},children:Boolean(g)&&Object(o.b)(OO,{className:"PostEditor-MCNEditorIframe",src:"https://www.zhihu.com/selection/goods-editor?title=".concat(g.title,"&originTitle=").concat(g.originTitle,"&source=").concat(g.source,"&sourceId=").concat(g.sourceId,"&productTypeName=").concat(g.productTypeName),onMessage:this.handleEditGGRCard})}),m&&Object(o.b)(fE,{show:m,enableZVideoListSelectorEntry:!0,showFooter:!0,type:"insert",onClose:function(){e.setState({showZVideoUploader:!1})},onSubmit:function(t){e.setState({showZVideoUploader:!1}),e.editable.handleCommand("insert-zvideo-card:".concat(JSON.stringify(t)))}})]})}},{key:"canUseScheduledPublish",get:function(){var e=this.props,t=e.currentUser,n=e.isReediting;return t&&t.autoSendingCreations&&!n}}]),n}(a.Component);nL.propTypes={postId:jl.a.number,content:jl.a.string.isRequired,logTime:jl.a.func.isRequired,onEditableRef:jl.a.func,onTyping:jl.a.func.isRequired,onLengthStatusChange:jl.a.func.isRequired,updateDraft:jl.a.func.isRequired,showErrorMessage:jl.a.func.isRequired,onScheduledPublishAtChange:jl.a.func.isRequired,isReediting:jl.a.bool.isRequired};var rL=Object(Lt.compose)(Object(rb.a)(null),Object(Ot.connect)((function(e){return{couldSuperVideoUpload:qo.includes(e.currentUser),currentUser:Object(B.b)(e),showUserProfitButton:e.userProfit.permission.visible,useEditableV2:Object(hC.a)(e)}}),{uploadContentImage:function(e,t){return function(n){return n(("string"!=typeof e?Lu:Pu)(ju,e,t)).then(Mu)}},uploadVideo:function(e){return{API:{types:Eu,endpoint:"/api/embedded_videos",root:ke.a.fetchRoot.lens,method:"POST",body:{url:e}}}},fillCurrentUserIfNeeded:B.d,getUserProfitPermission:Wi,updateLinkCard:Zi.c}))(nL),oL=function(e){return c.a.createElement(xl.a,e,c.a.createElement("path",{d:"M19.49 14.362l-2.03-1.83 1.116-1.137a1.352 1.352 0 0 1 1.921-.009c.535.535.54 1.4.01 1.94l-1.016 1.036zm-4.883 4.935a2.3 2.3 0 0 1-1.12.63l-1.136.264c-.29.058-.668-.105-.56-.56l.27-1.158a2.3 2.3 0 0 1 .599-1.09l3.809-3.84 2.03 1.829-3.892 3.925zM4.06 5H19.94C20.526 5 21 5.448 21 6s-.474 1-1.059 1H4.06C3.474 7 3 6.552 3 6s.474-1 1.059-1zM4 11h9a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2zm0 6h4a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2z",fillRule:"evenodd"}))};oL.defaultProps={name:"Preview"};var iL=oL,aL=function(e){return c.a.createElement(xl.a,e,c.a.createElement("path",{d:"M9.035 19.433a.5.5 0 1 1-.37.93 8.981 8.981 0 0 1-2.682-1.668.5.5 0 1 1 .669-.744 7.974 7.974 0 0 0 2.383 1.482zm-4.938-6.186c.136.871.414 1.709.825 2.489a.5.5 0 1 1-.883.467 8.966 8.966 0 0 1-.931-2.802.5.5 0 0 1 .989-.154zm8.009-9.246A.501.501 0 0 1 12.113 3h.007a8.959 8.959 0 0 1 3.103.594.5.5 0 1 1-.358.934 8.003 8.003 0 0 0-2.759-.527zM6.73 5.831a.502.502 0 0 1-.311-.892 8.977 8.977 0 0 1 2.583-1.428.5.5 0 0 1 .333.943A7.95 7.95 0 0 0 7.04 5.723a.498.498 0 0 1-.31.108zM5.01 7.136a.501.501 0 0 1 .165.688 7.942 7.942 0 0 0-1.023 2.614.5.5 0 0 1-.981-.194 8.922 8.922 0 0 1 1.151-2.943.5.5 0 0 1 .688-.165zm12.917-1.908a8.981 8.981 0 0 1 1.874 2.28.5.5 0 0 1-.866.5 8.023 8.023 0 0 0-1.666-2.027.5.5 0 0 1 .658-.753zm2.367 4.843a.498.498 0 0 1 .577.408 9.19 9.19 0 0 1-.02 3.159.501.501 0 0 1-.984-.18A8.23 8.23 0 0 0 20 11.999c0-.455-.038-.911-.114-1.351a.5.5 0 0 1 .408-.577zm-.728 5.839a.498.498 0 0 1 .173.686 9.033 9.033 0 0 1-1.903 2.255.498.498 0 0 1-.705-.057.501.501 0 0 1 .057-.705 8.003 8.003 0 0 0 1.692-2.005.5.5 0 0 1 .686-.174zm-4.8 3.6a.498.498 0 1 1 .345.937A8.962 8.962 0 0 1 12 21l-.24-.002a.501.501 0 0 1-.487-.513.489.489 0 0 1 .513-.487l.208.002c.958 0 1.888-.165 2.772-.49zM12.8 11.2h1.9a.8.8 0 1 1 0 1.6h-1.9v1.9a.8.8 0 1 1-1.6 0v-1.9H9.3a.8.8 0 1 1 0-1.6h1.9V9.3a.8.8 0 1 1 1.6 0v1.9z",fillRule:"evenodd"}))};aL.defaultProps={name:"Add"};var cL=aL,sL=jl.a.shape({updated:jl.a.number,description:jl.a.string,title:jl.a.string,url:jl.a.string,commentPermission:jl.a.string,created:jl.a.number,acceptSubmission:jl.a.boolean,intro:jl.a.string,imageUrl:jl.a.string,type:jl.a.string,urlToken:jl.a.string,id:jl.a.string});function uL(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var lL=13,dL=32,fL=function(e){Object(ml.a)(n,e);var t=uL(n);function n(){return Object(bl.a)(this,n),t.apply(this,arguments)}return Object(vl.a)(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=Object(_e.a)(e,["className"]);return Object(o.b)(yf.c,Object.assign({className:rl()("Button Button--plain",t)},n))}}]),n}(a.Component);function pL(e){return Object(o.b)("li",Object.assign({},e,{className:rl()("ColumnMenu-item",e.className)}))}var hL=function(e){Object(ml.a)(n,e);var t=uL(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={isOpen:!1,expand:!1},e.handleMenuClick=function(t){"INPUT"!==t.target.nodeName&&e.toggle()},e.handleMenuKeyDown=function(t){t.keyCode!==lL&&t.keyCode!==dL||(e.toggle(),t.preventDefault())},e.handleWrapperMouseenter=function(){e.toggle(!0)},e.handleWrapperMouseleave=function(){e.toggle(!1)},e.handleDocClick=function(t){e.state.isOpen&&!e.wrapperNode.contains(t.target)&&(e.toggle(!1),t.stopPropagation(),t.preventDefault())},e.createButton=function(){var t=e.props,n=t.trigger,r=t.children,o=e.props.button;return o||a.Children.forEach(r,(function(e){e&&e.type===fL&&(o=e)})),Object(a.cloneElement)(o,{className:rl()("MenuButton MenuButton-listen-".concat(n),o.props.className),onKeyDown:e.handleMenuKeyDown,ref:function(t){e.buttonRef=t}})},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){this.buttonNode=H.a.findDOMNode(this.buttonRef);var e=this.props,t=e.trigger,n=e.autoHide;"click"===t?(this.buttonNode.addEventListener("click",this.handleMenuClick),this.dropdownNode.addEventListener("click",this.handleMenuClick),document.addEventListener("click",this.handleDocClick,!0)):(this.wrapperNode.addEventListener("mouseenter",this.handleWrapperMouseenter),this.wrapperNode.addEventListener("mouseleave",this.handleWrapperMouseleave),n&&this.dropdownNode.addEventListener("click",this.toggle.bind(this,!1)))}},{key:"componentWillUnmount",value:function(){"click"===this.props.trigger?(this.buttonNode.removeEventListener("click",this.handleMenuClick),this.dropdownNode.removeEventListener("click",this.handleMenuClick),document.removeEventListener("click",this.handleDocClick,!0)):(this.wrapperNode.removeEventListener("mouseenter",this.handleWrapperMouseenter),this.wrapperNode.removeEventListener("mouseleave",this.handleWrapperMouseleave)),clearTimeout(this.timer)}},{key:"toggle",value:function(e){var t=this,r=e;"boolean"!=typeof e&&(r=!this.state.isOpen);var o=this.props,i=o.onOpen,a=o.onClose,c=o.delay;r?(this.setState({isOpen:r}),this.timer=setTimeout((function(){t.setState({expand:!0}),i.call(t)}),c)):(this.setState({expand:!1}),this.timer=setTimeout((function(){t.setState({isOpen:r}),a.call(t)}),n.TRANSITION_DELAY+c))}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.children,i=t.arrow,c=this.state,s=c.expand,u=c.isOpen;return Object(o.c)("div",{className:rl()("ColumnMenu",s?"ColumnMenu--open":"",n),ref:function(t){return e.wrapperNode=t},children:[this.createButton(),Object(o.c)("div",{className:"ColumnMenu-dropdown",style:{visibility:!u&&"hidden"},ref:function(t){return e.dropdownNode=t},children:[u&&Object(o.b)("ul",{className:"ColumnMenu-list",children:a.Children.map(r,(function(e){return e?e.type===fL?null:e.type===pL?e:Object(o.b)(pL,{children:e}):e}))}),i]})]})}}]),n}(a.Component);hL.TRANSITION_DELAY=200,hL.propTypes={trigger:jl.a.oneOf(["click","hover"]),onOpen:jl.a.func,onClose:jl.a.func,button:jl.a.element,arrow:jl.a.element,autoHide:jl.a.bool,delay:jl.a.number},hL.defaultProps={trigger:"click",onOpen:function(){},onClose:function(){},arrow:null,autoHide:!1,delay:50};var bL=hL;function vL(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var mL=function(e){Object(ml.a)(n,e);var t=vL(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).onCompositionStart=function(){e.compositing=!0},e.onCompositionEnd=function(){e.compositing=!1,e.prevValue&&e.props.onChange(e.prevValue),e.prevValue=null},e.handleInputChange=function(t){var n=t.target.value;e.compositing?e.prevValue=n:e.props.onChange(n)},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){document.addEventListener("compositionstart",this.onCompositionStart),document.addEventListener("compositionend",this.onCompositionEnd)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd)}},{key:"render",value:function(){var e=this.props,t=e.menuButton,n=e.placeholder,r=e.friends,i=e.onClick,a=e.className,c=e.onOpen,s=e.onClose;return Object(o.c)(bL,{preventCloseOnTarget:!0,trigger:"click",className:rl()("ColumnSearchMenu",a),button:t,onOpen:c,onClose:s,children:[Object(o.b)(Hl.a,{placeholder:n,className:"ColumnSearchMenu-searchInput",targetClassName:"preventCloseOnTarget",onChange:this.handleInputChange,before:Object(o.b)(Rl.a,{text:!0})}),r&&r.map((function(e){return Object(o.b)(yf.c,{preset:"plain",className:"ColumnSearchMenu-selectFriendsButton preventCloseOnTarget",onClick:function(t){return i(t,e)},children:Object(o.c)("div",{className:"ColumnSearchMenu-friends preventCloseOnTarget",children:[Object(o.b)("img",{src:Object(Gn.imgUrl)(e.avatarUrl,"m"),className:"ColumnSearchMenu-image preventCloseOnTarget",alt:"头像"}),Object(o.b)("span",{className:"preventCloseOnTarget",children:e.name})]})},e.id)}))]})}}]),n}(a.Component);function gL(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}mL.propTypes={menuButton:jl.a.node.isRequired,placeholder:jl.a.string.isRequired,friends:jl.a.arrayOf(jl.a.shape({id:jl.a.string.isRequired,avatarUrl:jl.a.string,name:jl.a.string.isRequired})),onChange:jl.a.func.isRequired,onClick:jl.a.func.isRequired,className:jl.a.string,onOpen:jl.a.func,onClose:jl.a.func};var OL=function(e){Object(ml.a)(n,e);var t=gL(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={selectedColumn:null,isInvitedFriends:!1,selectedFriendList:[],isReviewInvite:!1},e.onClickSelectFriends=function(t,n){t.preventDefault(),e.props.resetFriends();var r=e.state.selectedFriendList;r.some((function(e){return e.id===n.id}))||e.setState({selectedFriendList:[].concat(Object(i.a)(r),[n])})},e.createDeleteFriendHandler=function(t){return function(n){n.preventDefault(),e.setState((function(e){return{selectedFriendList:e.selectedFriendList.filter((function(e){return e.id!==t.id}))}}))}},e.onCloseReview=function(){e.setState({isReviewInvite:!1})},e.createSelectColumnHandler=function(t){return function(n){n.preventDefault(),e.setState({selectedColumn:t})}},e.handleRemoveSelectedColumn=function(t){t.preventDefault(),e.setState({selectedColumn:null})},e.handleSelectFriends=function(){e.setState((function(e){return{isInvitedFriends:!e.isInvitedFriends}}))},e.handleReviewButton=function(){var t=e.state,n=t.selectedFriendList,r=t.selectedColumn,o=r&&r.id,i=n.map((function(e){return e.urlToken}));if(i.length||o){var a=e.props,c=a.postId,s=a.reviewColumn,u=a.handleOpenReviewComment;s(o,c,i).then((function(){e.setState({isReviewInvite:!0}),u()})).catch(Am.a)}},e.requestMyFriends=uO((function(t){(0,e.props.fetchMyFriends)(t)}),Qs.h),e}return Object(vl.a)(n,[{key:"renderToggler",value:function(){return Object(o.c)(yf.c,{preset:"plain",className:"ReviewPanel-triggerButton",children:[Object(o.b)(iL,{}),"邀请预览"]})}},{key:"renderFriendList",value:function(){var e=this,t=this.state.selectedFriendList;return Object(o.c)("div",{children:[t&&t.length>0&&Object(o.b)("span",{className:"ReviewPanel-friend",children:t.map((function(t,n){return Object(o.c)("div",{className:"ReviewPanel-selectFriend",children:[Object(o.b)(Gh.a,{url:t.avatarUrl,size:36}),Object(o.b)(yf.c,{onClick:e.createDeleteFriendHandler(t),preset:"plain",children:Object(o.b)(Il.a,{})})]},n)}))}),Object(o.b)(fL,{className:"ReviewPanel-selectButton",children:Object(o.b)(cL,{size:40})})]})}},{key:"renderReviewerSection",value:function(){var e=this.props,t=e.friends,n=e.resetFriends,r=this.state.isInvitedFriends;return Object(o.c)("div",{className:"ReviewPanel-section ReviewPanel-inviteColumn",children:[Object(o.c)("div",{className:rl()("ReviewPanel-sectionTitle","ReviewPanel-selectFriends",r&&"ReviewPanel-selectFriends-transform"),onClick:this.handleSelectFriends,children:["相互关注的知乎好友",Object(o.b)(bE.a,{})]}),r&&Object(o.b)(mL,{placeholder:"搜索相互关注的好友",menuButton:this.renderFriendList(),onChange:this.requestMyFriends,onClick:this.onClickSelectFriends,onClose:n,friends:t})]})}},{key:"renderColumnSection",value:function(){var e=this,t=this.props.columns,n=this.state.selectedColumn;return Object(o.c)("div",{className:"ReviewPanel-section ReviewPanel-inviteColumn",children:[Object(o.b)("div",{className:"ReviewPanel-sectionTitle",children:"你所在专栏的编辑"}),Boolean(n)&&Object(o.c)("div",{className:"ReviewPanel-selectedColumn",children:[Object(o.b)(Gh.a,{url:n.imageUrl,size:36}),Object(o.b)(yf.c,{onClick:this.handleRemoveSelectedColumn,preset:"plain",children:Object(o.b)(Il.a,{})})]}),!n&&Object(o.b)(bL,{preventCloseOnTarget:!0,trigger:"click",className:"ReviewPanel-selectColumnMenu",button:Object(o.b)(fL,{className:"ReviewPanel-selectButton",children:Object(o.b)(cL,{size:40})}),children:t&&t.map((function(t,n){return Object(o.c)(yf.c,{preset:"plain",className:"preventCloseOnTarget",onClick:e.createSelectColumnHandler(t),children:[Object(o.b)(Gh.a,{url:t.imageUrl,size:36,className:"ReviewPanel-columnName"}),t.title]},n)}))})]})}},{key:"render",value:function(){var e=this.state,t=e.selectedColumn,n=e.isReviewInvite,r=e.selectedFriendList;return Object(o.b)("div",{className:"ReviewPanel",children:Object(o.b)(Of.a,{noLayer:!0,preventCloseOnTarget:!0,onClose:this.onCloseReview,targetClassName:"ReviewPanel-popover",positionStatus:"fixed",toggler:this.renderToggler(),arrowed:!0,children:n?Object(o.c)("div",{className:"ReviewPanel-wrapper",children:[Object(o.b)("div",{className:"ReviewPanel-title",children:"邀请"}),Object(o.c)("div",{className:"ReviewPanel-review",children:[Object(o.b)(PE.a,{size:40,className:"ReviewPanel-reviewIcon"}),Object(o.b)("p",{children:r.length>0||Boolean(t)?"邀请预览已发出":"已取消预览邀请"})]})]}):Object(o.c)("div",{className:"ReviewPanel-wrapper",children:[Object(o.b)("div",{className:"ReviewPanel-title",children:"邀请"}),Object(o.b)("div",{className:"ReviewPanel-description",children:"邀请专栏编辑或好友来预览这篇草稿,他们将可通过草稿评论给出意见。"}),this.renderColumnSection(),this.renderReviewerSection(),Object(o.b)("div",{className:"ReviewPanel-button preventCloseOnTarget",children:Object(o.b)(yf.c,{color:"blue",className:"preventCloseOnTarget",onClick:this.handleReviewButton,children:"确定"})})]})})})}}]),n}(a.Component);OL.propTypes={columns:jl.a.arrayOf(sL),postId:jl.a.number.isRequired,handleOpenReviewComment:jl.a.func.isRequired};var yL=Object(Lt.compose)(Object(rb.a)(null),Object(Ot.connect)((function(e){return{friends:e.columnAutocomplete.friends}}),{fetchMyFriends:function(e){return{API:{types:Yu.FETCH_MY_FRIENDS,endpoint:"autocomplete/friends",query:{token:e,max_matches:5,use_similar:0},root:Qs.c}}},reviewColumn:function(e,t,n){return{API:{types:Tu,endpoint:"articles/".concat(t,"/review"),root:Qs.c,method:"POST",body:{column:e||null,users:n}}}},resetFriends:function(){return{type:Yu.RESET_FRIENDS}}}))(OL),jL=n(265);function EL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var CL=function(e){Object(ml.a)(n,e);var t=EL(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).state={menuGenerated:!1,openModal:!1,reshipmentDisclaimers:{type:"none",description:"无声明"},topicHints:[],selectedTopics:[],searchInputVal:"",step:1,suggestTop:"150px",panelShow:!1,contentIsTooShort:YP(e.props.draft.content)},e.columnRadios=[],e.initTopic=function(){var t=e.props,n=t.draft,r=n.state,o=n.topics,i=n.id,a=t.fetchRecommendTopics,c=t.addTopic,s=t.showErrorMessage,u=e.state,l=u.menuGenerated,d=u.selectedTopics;if(l)e.setState({topicHints:[]});else{if(e.setState({menuGenerated:!0}),d&&d.length>0)return;"draft"===r?a(i).then((function(){var t=e.props.draft.recommendTopics,n=(void 0===t?[]:t).slice(0,3).map((function(e){return c(i,e).catch(Am.a)}));return Promise.all(n)})).then((function(t){var n=t.filter(Boolean).map((function(e){return e.payload}));e.setState({selectedTopics:n})})).catch(s):"published"===r&&e.setState({selectedTopics:o,menuGenerated:!0})}},e.getSuggestPos=function(){if(e.tagsNode){var t=e.tagsNode.offsetHeight;e.setState({suggestTop:"".concat(t+165,"px")})}else e.setState({suggestTop:"150px"})},e.handleClosePanel=function(t){e.state.panelShow&&(e.targetContainer.contains(t.target)||t.target.classList.contains("preventCloseOnTarget")||e.setState({panelShow:!1}))},e.handleSearchInputChange=function(t){e.getSuggestPos();var n=t.target.value;e.state.searchInputVal!==n&&((0,e.props.fetchTopics)(n).then((function(t){var n=t.payload,r=t.token;e.state.searchInputVal===r&&e.setState({topicHints:n.data})})),e.setState({searchInputVal:n}))},e.createAddTopicHandler=function(t){return function(n){n.preventDefault();var r=e.props,o=r.draft.id,a=r.addTopic,c=e.state.selectedTopics;c.some((function(e){return e.name===t.name}))?e.setState({topicHints:[],searchInputVal:""}):a(o,t).then((function(t){var n=t.payload;n&&e.setState({topicHints:[],searchInputVal:"",selectedTopics:[].concat(Object(i.a)(c),[n])})})).catch(Am.a),e.topicSearchInput.value=""}},e.createRemoveTopicHandler=function(t){return function(){var n=e.props,r=n.draft.id;(0,n.deleteTopic)(r,t.id).then((function(){e.setState((function(e){return{selectedTopics:e.selectedTopics.filter((function(e){return e.id!==t.id}))}}),(function(){e.getSuggestPos()}))})).catch(Am.a)}},e.publishArticle=function(t,n,r){var o=e.props,i=o.currentUser,a=o.draft.id,c=o.publishColumn,s=o.scheduledPublishAt,u=o.scheduledPublish,l=o.validateScheduledPublish,d=e.state.reshipmentDisclaimers,f="";n&&(f="?just_published=".concat(r?2:1),q.a.trackEvent(e.confirmPublishButton,{action:"Post",id:1318,is_intent:!0},{attached_info_bytes:String(a)}));var p={column:t,commentPermission:n?"anyone":void 0,disclaimer_status:"none"===d.type?"close":"open",disclaimer_type:d.type};if(s)u(a,Object.assign({},p,{publish_at:Math.floor(s/1e3)})).then((function(){q.a.trackCardShow(null,{id:7879}),window.location.href="https://www.zhihu.com/draft?type=article"}));else{var h=function(){c(a,p).then((function(){q.a.trackCardShow(null,{id:7879}),window.location.href="https://zhuanlan.zhihu.com/p/".concat(a).concat(f)})).catch(Am.a)};i.autoSendingCreations?l(a).then(h,(function(e){if(e&&e.payload&&e.payload.message&&400===e.status)return Ch.a.confirm(e.payload.message,{title:"提醒",text:{ok:"确定发布",cancel:"我再想想"}}).then(h,(function(){}))})):h()}},e.handleNextStep=function(){var t=e.props,n=t.draft,r=t.editable,o=t.showErrorMessage,i=t.selectedColumnId,a=t.columns;if(r){if(r.hasVideo("upload"))return o("视频上传完成后即可发布");if(r.hasImage("upload"))return o("图片上传完成后即可发布");if(r.hasImage("error")||r.hasVideo("error")&&!r.hasVideo("error-review"))return o("草稿中含有上传失败的内容,请更改后重新提交");if(r.hasVideo("error-review")||r.hasVideo("censor"))return o("视频中包含未通过审核的信息,请更改后重新提交")}if("published"===n.state)e.publishArticle();else if("draft"===n.state)if(1===e.state.step)a.length?e.setState({step:2}):e.publishArticle(null,!0);else{var c=i>0?a[i-1]:null;e.publishArticle(c,!0,!0)}},e.handlePublishMenuShown=function(){var t,n=e.props,r=n.forceUpdateDraft,i=n.showErrorMessage,a=n.scheduledPublishAt,c=n.disclaimerLabel,s=n.draft.id,u=null===(t=c["article_".concat(s)])||void 0===t?void 0:t.disclaimerInfo;u&&e.setState({reshipmentDisclaimers:u}),e.state.panelShow||r().then((function(){if(e.state.contentIsTooShort)return i("正文至少输入 ".concat(9," 个字"));a&&(q.a.trackEvent(Object(kl.a)(e),{action:"Click",id:5733,name:"文章"}),Kg(a,Qg(new Date,30)))?Ch.a.alert(Object(o.b)("div",{style:{textAlign:"center"},children:"只能设置 30 分钟后的定时时间"}),{title:"定时发布"}):(e.setState({panelShow:!0}),e.initTopic(),q.a.trackEvent(e.publishMenuButton,{action:"Post",id:1329}))}))},e.handleReshipmentDisclaimers=function(t){e.setState({reshipmentDisclaimers:t}),q.a.trackEvent(Object(kl.a)(e),{id:7831,action:"Click"},{button:{text:t.description}})},e.renderDisclaimers=function(t,n){var r=JSON.parse(JSON.stringify(n));return r.push({type:"none",description:"无声明"}),r.map((function(n){var r=n.type===t.type;return Object(o.c)("div",{className:rl()("PublishPanel-disclaimersItem",{"PublishPanel-disclaimersItem--checked":r}),onClick:function(){return e.handleReshipmentDisclaimers(n)},children:[n.description,r&&Object(o.b)(zw.a,{text:!0})]},n.type)}))},e}return Object(vl.a)(n,[{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.selectedTopics,r=t.panelShow,o=e.draft,i=o.topics,a=void 0===i?[]:i,c=o.content,s={selectedTopics:0===n.length?a:n,panelShow:r&&!e.disabled};c!==this.props.draft.content&&(s.contentIsTooShort=YP(c)),this.setState(s)}},{key:"componentDidMount",value:function(){document.addEventListener("click",this.handleClosePanel)}},{key:"componentDidUpdate",value:function(e,t){var n=this.state,r=n.panelShow,o=n.openModal;r&&!t.panelShow&&q.a.trackCardShow(null,{id:7842}),o&&!t.openModal&&q.a.trackCardShow(null,{id:7843})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleClosePanel)}},{key:"renderToggler",value:function(){var e=this,t=this.props,n=t.disabled,r=t.draft,i=t.scheduledPublishAt;return Object(o.c)(yf.c,{color:"blue",onClick:this.handlePublishMenuShown,onRef:function(t){return e.publishMenuButton=t},disabled:n,className:"PublishPanel-triggerButton",children:[i?"定时发布":"draft"===r.state?"发布":"更新",Object(o.b)(bE.a,{})]})}},{key:"handleHelpClick",value:function(e){this.setState({openModal:e}),q.a.trackEvent(this,{id:7840,action:"Click"})}},{key:"handleHelpClose",value:function(e){this.setState({openModal:e})}},{key:"renderPublishStepOne",value:function(){var e=this,t=this.state,n=t.topicHints,r=t.selectedTopics,i=t.suggestTop,a=t.openModal,c=t.reshipmentDisclaimers,s=this.props,u=s.draft.state,l=s.articleDisclaimers,d=rl()("PublishPanel-searchInput",{"PublishPanel-searchEmptyInput":r.length>=3}),f={visibility:n.length>0?"visible":"hidden",top:i};return Object(o.c)("div",{children:[Object(o.c)("div",{className:"PublishPanel-title",children:["draft"===u?"发布":"更新","文章"]}),Object(o.c)("div",{className:"PublishPanel-content",children:[Object(o.b)("div",{children:"绑定合适的话题,能方便分类检索,文章也更容易让读者发现。"}),r.length>0&&Object(o.b)("ul",{className:"PublishPanel-tags",ref:function(t){return e.tagsNode=t},children:r.map((function(t,n){return Object(o.b)("li",{children:Object(o.c)("span",{className:"PublishPanel-tagsWrapper preventCloseOnTarget",onClick:e.createRemoveTopicHandler(t),children:[Object(o.b)("a",{className:"PublishPanel-tagLink preventCloseOnTarget",children:t.name}),Object(o.b)("a",{className:"PublishPanel-removeTag",children:Object(o.b)(Il.a,{text:!0})})]})},n)}))}),Object(o.b)(Hl.a,{placeholder:"搜索话题...",className:d,targetClassName:"preventCloseOnTarget",onChange:this.handleSearchInputChange,onRef:function(t){return e.topicSearchInput=t},before:Object(o.b)(Rl.a,{text:!0})}),Object(o.b)("i",{className:"PublishPanel-line"}),Object(o.b)("ul",{className:"PublishPanel-suggest",style:f,children:n.length>0?n.map((function(t){return Object(o.b)("li",{className:"PublishPanel-row PublishPanel-normalRow preventCloseOnTarget",onClick:e.createAddTopicHandler(t),children:Object(o.b)("span",{className:"PublishPanel-name preventCloseOnTarget",children:t.name})},t.id)})):Object(o.b)("li",{className:"PublishPanel-row",children:Object(o.b)("span",{className:"PublishPanel-name PublishPanel-empty",children:"没有找到该话题"})})})]}),Object(o.c)("div",{children:[Object(o.c)("div",{className:"PublishPanel-statement-title",children:["创作声明",Object(o.b)("span",{className:"DisclaimerEntry-help",onClick:function(){e.handleHelpClick(!0)},children:Object(o.b)(Ph.a,{className:"DisclaimerEntry-helpIcon",text:!0,center:!0})}),Object(o.b)(iC,{openModal:a,handleHelpClick:function(t){return e.handleHelpClose(t)}})]}),Object(o.b)("div",{className:"PublishPanel-statement-content",children:"知乎鼓励设置创作声明,方便知友更好的辨识和理解回答信息。"}),Object(o.b)("div",{className:"PublishPanel-disclaimers",children:this.renderDisclaimers(c,l)})]}),Object(o.b)("div",{className:"PublishPanel-stepOneButton",children:Object(o.b)(yf.c,{className:"PublishPanel-button preventCloseOnTarget",color:"blue",onRef:function(t){return e.confirmPublishButton=t},disabled:!r||0===r.length,onClick:this.handleNextStep,children:"draft"===u?"下一步":"确定"})})]})}},{key:"renderPublishStepNext",value:function(){var e=this,t=this.props,n=t.selectedColumnId,r=t.selectColumn,i=t.columns;return Object(o.c)("div",{children:[Object(o.b)("div",{className:"PublishPanel-title",children:"发布文章"}),Object(o.c)("div",{className:"PublishPanel-content",ref:function(t){return e.columnWrapper=t},children:[Object(o.b)("div",{className:"PublishPanel-columns",children:Object(o.c)("label",{className:"PublishPanel-columnLabel",htmlFor:"PublishPanel-columnLabel",children:[Object(o.c)("div",{children:[Object(o.b)("span",{children:"不发布到专栏"}),Object(o.b)("span",{className:"PublishPanel-description",children:"将发布到个人主页的「文章」栏目下"})]}),Object(o.b)("input",{type:"radio",id:"PublishPanel-columnLabel",className:"PublishPanel-columnInput",name:"PublishPanel-columnInput",checked:0===n,onChange:function(){return r(0)}})]})}),i.length>0&&Object(o.b)("div",{className:"PublishPanel-columnItem",children:i.map((function(t,i){return Object(o.c)("label",{htmlFor:"PublishPanel-columnItem-".concat(i),className:"PublishPanel-label",children:[Object(o.b)("img",{src:Object(Gn.imgUrl)(t.imageUrl,"m"),className:"PublishPanel-columnImg",alt:"头像"}),Object(o.b)("span",{children:Object(jL.sliceString)(t.title,14)}),Object(o.b)("input",{type:"radio",className:"PublishPanel-columnInput",name:"PublishPanel-columnInput",ref:function(t){return e.columnRadios[i]=t},id:"PublishPanel-columnItem-".concat(i),style:{top:"".concat(10+65*i,"px")},checked:i+1===n,onChange:function(){return r(i+1)}})]},i)}))})]}),Object(o.c)("div",{className:"PublishPanel-buttonWrapper",children:[Object(o.b)("button",{className:"PublishPanel-returnButton preventCloseOnTarget",onClick:function(){e.setState({step:1})},children:"返回"}),Object(o.b)(yf.c,{className:"PublishPanel-button preventCloseOnTarget PublishPanel-stepTwoButton",color:"blue",disabled:"number"!=typeof n,onClick:this.handleNextStep,children:"确定"})]})]})}},{key:"render",value:function(){var e=this,t=this.state,n=t.step,r=t.panelShow;return Object(o.c)("div",{className:"PublishPanel-wrapper",ref:function(t){return e.targetContainer=t},children:[this.renderToggler(),r&&Object(o.c)("div",{className:"PublishPanel-popover",children:[Object(o.b)("span",{className:"PublishPanel-popoverArrow"}),1===n?this.renderPublishStepOne():this.renderPublishStepNext()]})]})}}]),n}(a.Component);CL.propTypes={columns:jl.a.arrayOf(sL),editable:jl.a.object,isUploading:jl.a.bool,draft:jl.a.object.isRequired,disabled:jl.a.bool,forceUpdateDraft:jl.a.func.isRequired,showErrorMessage:jl.a.func.isRequired},CL.defaultProps={columns:[]};var wL=Object(Lt.compose)(Object(rb.a)(null),Object(Ot.connect)((function(e){var t=e.articleDraft,n=t.selectedColumn,r=t.articleDisclaimers;return{currentUser:Object(B.b)(e),selectedColumnId:n,articleDisclaimers:r,disclaimerLabel:e.label}}),{publishColumn:function(e,t){return{API:{types:_u,endpoint:"articles/".concat(e,"/publish"),root:Qs.c,method:"PUT",body:t}}},addTopic:function(e,t){return{API:{types:Au,endpoint:"articles/".concat(e,"/topics"),root:Qs.c,method:"POST",body:t}}},deleteTopic:function(e,t){return{API:{types:ku,endpoint:"articles/".concat(e,"/topics/").concat(t),root:Qs.c,method:"DELETE"}}},fetchTopics:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{token:e,API:{types:Yu.FETCH_TOPICS,endpoint:"autocomplete/topics",query:{token:e,max_matches:5,use_similar:0,topic_filter:1},root:Qs.c}}},fetchRecommendTopics:function(e){return{API:{types:Ru,endpoint:"/articles/".concat(e,"/recommend_topics")}}},selectColumn:function(e){return function(t,n){n().selectedColumn!==e&&t({type:Du,payload:e})}},scheduledPublish:function(e,t){return{API:{root:Qs.c,types:Ou.SCHEDULED_PUBLISH,endpoint:"articles/".concat(e,"/scheduled-publish"),method:"POST",body:t}}},validateScheduledPublish:function(e,t){return{API:{root:Qs.c,types:Ou.VALIDATE_SCHEDULED_PUBLISH,endpoint:"articles/".concat(e,"/scheduled-validate"),method:"POST",body:t},NOTIFICATION:!1}},loadArticlesDisclaimers:Uu,loadLabel:_i.e}))(CL);function TL(){var e=Object(vm.a)(["草稿保存于",""]);return TL=function(){return e},e}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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ol.a)(e);if(t){var o=Object(Ol.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(gl.a)(this,n)}}var SL=function(e){Object(ml.a)(n,e);var t=_L(n);function n(){var e;Object(bl.a)(this,n);for(var r=arguments.length,i=new Array(r),c=0;c<r;c++)i[c]=arguments[c];return(e=t.call.apply(t,[this].concat(i))).startCompositionTime=null,e.rootRef=Object(a.createRef)(),e.state={showReviewComment:!1,forceCloseReview:!1,isTyping:!1,titleLengthIsOk:!1,contentLengthIsOk:!1,scheduledPublishAt:void 0},e.checkShouldCancelScheduledPublish=function(){e.isEditBlocking&&Ch.a.confirm("如果继续编辑该文章,原定时发送设置将会失效,需重新设置定时发送时间,是否继续编辑?",{title:"编辑文章",text:{ok:"继续编辑",cancel:"我再想想"}}).then((function(){var t=e.props,n=t.draft;(0,t.cancelScheduledPublish)(n.id)}),(function(){window.location.href="https://www.zhihu.com/draft?type=article&filter=schedule"}))},e.handleOpenReviewComment=function(){e.setState({showReviewComment:!0})},e.handlePreviewCommentsClose=function(){e.setState({forceCloseReview:!0})},e.handleTyping=function(t){e.setState({isTyping:t})},e.renderDraftText=function(){var t=e.props.draft||{},n=t.updatedTime,r=t.updating,i=t.id,a=t.error,c=e.state.isTyping;return a?Object(o.c)("span",{className:"WriteIndex-pageTitleError",children:[a,",无法保存"]}):r||c?"草稿保存中…":i&&n?Date.now()<Date.parse(n)+6e4?"草稿已保存":gm()(TL(),Object(ci.toRelativeString)(n)):""},e.renderNavbarFunctionality=function(){var t=e.props,n=t.params,r=t.draft,i=t.myColumns,c=r.id||n.id,s=r.content,u=r.title,l=e.state,d=l.isUploading,f=l.contentLengthIsOk,p=l.titleLengthIsOk,h=l.scheduledPublishAt,b=f&&p,v=Boolean(s||u);return Object(o.c)(a.Fragment,{children:[v&&Object(o.b)(yL,{postId:c,columns:i,handleOpenReviewComment:e.handleOpenReviewComment}),Object(o.b)(wL,{scheduledPublishAt:h,columns:i,editable:e.editable,isUploading:d,draft:r,disabled:!b,forceUpdateDraft:e.forceUpdateDraft,showErrorMessage:e.showErrorMessage})]})},e.onTitleStatusChange=function(t){t!==e.state.titleLengthIsOk&&e.setState({titleLengthIsOk:t})},e.onContentStatusChange=function(t){t!==e.state.contentLengthIsOk&&e.setState({contentLengthIsOk:t})},e.getTimestamp=function(e){var t=e?new Date(e):new Date;return Math.floor(t.getTime()/1e3)},e.startLoggingTime=function(){e.startCompositionTime||(e.startCompositionTime=e.getTimestamp())},e.stopLoggingTime=function(){e.startCompositionTime=null},e.calculateLoggingTime=function(){var t=e.props.draft,n=e.getTimestamp(t.updatedTime),r=e.getTimestamp();return!n||e.startCompositionTime-n>180?r-e.startCompositionTime:r-n},e.showErrorMessage=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"red",r="未知错误";t&&("string"==typeof t?r=t:t.payload&&t.payload.message?r=t.payload.message:t.message&&(r=t.message)),e.props.showNotification(r,n)},e.updateDraft=function(t){if(!e.isUserBoundPhone)return e.context.handleBindPhoneModalToggle(),Promise.resolve();var n=e.props,r=n.draft,o=n.updateDraft;if(r.hasPublishingDraft)return Ch.a.alert("你有一份对该文章的修改正在发布中,请等待发布完成后再次修改。"),Promise.resolve();var i=r.id,a=r.draftLoading,c=function(){return e.logTime("stop")};return i||a?i?o(i,t).then(c):Promise.resolve():o(null,t).then(c)},e.forceUpdateDraft=function(){if(!e.isUserBoundPhone)return e.context.handleBindPhoneModalToggle(),Promise.resolve();var t=e.titleNode&&e.titleNode.value,n=e.coverNode&&e.coverNode.src,r=e.editable&&e.editable.toHTML(),o={},i=e.props.draft;return t&&!i.title&&(o.title=t),n&&!i.titleImage&&(o.titleImage=n),r&&!i.content&&(o.content=r),xP()(o)?Promise.resolve():e.updateDraft(o)},e.logTime=function(t){return e["".concat(t,"LoggingTime")]()},e}return Object(vl.a)(n,[{key:"componentDidMount",value:function(){var e=this;q.a.setModule(this.rootRef.current,{module:"PostEditView"}),q.a.trackPageShow({id:3371});var t=this.props,n=t.params.id,r=t.draft,o=t.getDraft,i=t.loadArticlesDisclaimers,a=t.loadLabel;n&&(r&&r.id===n||o(n).then(this.checkShouldCancelScheduledPublish).catch((function(t){if(t.res){var r=t.res,o=t.payload;404===r.status?window.location.href="https://zhuanlan.zhihu.com/p/".concat(n):e.showErrorMessage(o)}})),i(n),a("article",n))}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.draft,n=e.location,r=e.router,o=e.loadArticlesDisclaimers,i=e.loadLabel;if(t&&t.id&&"/write"===n.pathname)return o(t.id),i("article",t.id),void r.replace("/p/".concat(t.id,"/edit"))}},{key:"componentWillUnmount",value:function(){this.props.resetDraft()}},{key:"renderPageTitle",value:function(){return Object(o.c)("div",{className:"WriteIndex-pageTitleWrapper",children:[Object(o.b)("div",{className:"WriteIndex-pageTitle",children:"写文章"}),Object(o.b)("div",{className:"WriteIndex-pageSubTitle",children:this.renderDraftText()})]})}},{key:"renderPreviewComments",value:function(){var e=this.props.draft,t=this.state,n=t.forceCloseReview,r=t.showReviewComment,i=e.id,a=e.reviewers;if(!n&&(r||(void 0===a?[]:a).length>0)&&i)return Object(o.b)(SP,{className:"WriteIndex-previewWrapper",post:e,close:Object(o.b)(yf.c,{className:"WriteIndex-closePreview",onClick:this.handlePreviewCommentsClose,children:Object(o.b)(Il.a,{size:18})})})}},{key:"render",value:function(){var e=this,t=this.props,n=t.draft;if(t.isMobile)return Object(o.b)(DP,{to:"/"});if(!n)return Object(o.b)(sf.a,{active:!0});var r=n.titleImage,i=n.isTitleImageFullScreen,a=n.titleImageSize,c=n.title,s=n.titleImageUploading,u=n.content,l=this.state.scheduledPublishAt;return Object(o.c)("div",{className:"WriteIndexLayout",ref:this.rootRef,children:[Object(o.b)(yt.Helmet,{title:"写文章"}),Object(o.b)(pv,{title:this.renderPageTitle(),renderNavbarFunctionality:this.renderNavbarFunctionality}),Object(o.c)("div",{className:rl()("WriteIndexLayout-main WriteIndex",{"Layout-titleImage--full":r&&i,"Layout-titleImage--normal":r&&!i}),children:[Object(o.b)(HP,{onRef:function(t){return e.coverNode=t},image:r,imageFullScreen:i,imageSize:a,title:c,uploading:s,logTime:this.logTime,updateDraft:this.updateDraft}),Object(o.b)(XP,{onRef:function(t){return e.titleNode=t},title:c,logTime:this.logTime,updateDraft:this.updateDraft,onLengthStatusChange:this.onTitleStatusChange}),!this.isEditBlocking&&Object(o.b)(rL,{onEditableRef:function(t){return e.editable=t},isReediting:"published"===n.state,postId:n.id,content:u,onTyping:this.handleTyping,logTime:this.logTime,updateDraft:this.updateDraft,onLengthStatusChange:this.onContentStatusChange,showErrorMessage:this.showErrorMessage,scheduledPublishAt:l,onScheduledPublishAtChange:function(t){return e.setState({scheduledPublishAt:t})}}),this.renderPreviewComments()]})]})}},{key:"isEditBlocking",get:function(){var e=this.props.draft;return!(!e||!e.schedule)}},{key:"isUserBoundPhone",get:function(){var e=this.props.currentUser,t=e.isBindPhone,n=e.isRealname;return t||n}}]),n}(a.Component);SL.contextTypes={handleBindPhoneModalToggle:jl.a.func};var AL=Object(Lt.compose)(st.withRouter,Object(Ot.connect)(Fu,{getDraft:function(e){return{API:{types:wu,endpoint:"articles/".concat(e,"/draft"),root:Qs.c}}},resetDraft:function(){return{type:Nu}},updateDraft:function(e,t){if(null===t.content)throw new Error("The content of draft should not be null.");var n=e?"PATCH":"POST",r=e?"articles/".concat(e,"/draft"):"articles/drafts";return{meta:{id:e,body:t},API:{types:Cu,endpoint:r,root:Qs.c,method:n,body:t,fetchOptions:{zsAutoSignature:!1}}}},showNotification:Xr.g,cancelScheduledPublish:function(e){return{API:{root:Qs.c,types:Ou.CANCEL_SCHEDULED_PUBLISH,endpoint:"articles/".concat(e,"/scheduled-publish"),method:"DELETE"}}},loadArticlesDisclaimers:Uu,loadLabel:_i.e}))(SL);function kL(e){var t=e.draft,n=e.onDelete,r=e.onEdit,i=t.title,c=t.id,s=t.updated,u=t.contentLength,l=t.schedule,d=new Date(1e3*s);return Object(o.c)("div",{className:"ColumnDraftItem",children:[Object(o.b)(st.Link,{className:"ColumnDraftItem-title",to:"/p/".concat(c,"/edit"),onClick:r,children:i||"无标题"}),Object(o.c)("div",{className:"ColumnDraftItem-meta",children:[Object(o.b)("div",{className:"ColumnDraftItem-time","data-tooltip":dy(d,"yyyy-MM-dd HH:mm:ss"),"data-tooltip-position":"bottom",children:Object(ci.toRelativeString)(d)}),Object(o.b)("div",{className:"ColumnDraftItem-separator",children:"·"}),Object(o.c)("div",{children:["共 ",Object(hh.formatNumber)(u)," 字"]}),Object(o.b)("div",{className:"ColumnDraftItem-separator",children:"·"}),Object(o.b)(yf.c,{className:"ColumnDraftItem-deleteButton",preset:"plain",color:"grey",onClick:n,children:"删除"}),l&&Object(o.c)(a.Fragment,{children:[Object(o.b)("div",{className:"ColumnDraftItem-separator",children:"·"}),Object(o.b)("div",{children:"定时内容"})]})]})]})}function RL(e){var t=e.drafts,n=e.isMobile,r=e.getDrafts,i=e.deleteDraft,c=t.isLoading,s=t.isDrained,u=t.items,l=Object(a.useState)(null),d=Object(gt.a)(l,2),f=d[0],p=d[1],h=Object(a.useState)(null),b=Object(gt.a)(h,2),v=b[0],m=b[1];return Object(o.c)("div",{className:"ColumnDrafts",children:[Object(o.b)(jt.a,{title:"我的草稿 - 知乎专栏"}),!n&&Object(o.b)(pv,{title:Object(o.b)("div",{className:"ColumnDrafts-title",children:"草稿"}),showAdblockBanner:!0}),Object(o.b)(Bv.b,{className:"ColumnDrafts-drafts",isLoading:c,isDrained:s,onLoad:r,children:u.map((function(e){return Object(o.b)(kL,{draft:e,onDelete:function(){return p(e.id)},onEdit:function(t){e.schedule&&(t.preventDefault(),m(e.id))}},e.id)}))}),Object(o.b)(fC,{isMobile:n,title:"删除草稿",subtitle:"确定删除该草稿?",shown:f,onCancel:function(){return p(null)},onSubmit:function(){i(f),p(null)}}),Object(o.b)(fC,{isMobile:n,title:"编辑文章",subtitle:Object(o.c)(a.Fragment,{children:["如果继续编辑该文章,原定时发送设置将会失效",Object(o.b)("br",{}),"需重新设置定时发送的时间,是否继续编辑?"]}),shown:v,onCancel:function(){return m(null)},onSubmit:function(){return location.href="/p/".concat(v,"/edit")}})]})}RL.fetchData=function(e){return(0,e.dispatch)(Ku())};var IL=Object(Ot.connect)((function(e){return{isMobile:Object(z.d)(e),drafts:e.articleDrafts}}),{getDrafts:Ku,deleteDraft:function(e){return function(t){return t({meta:{id:e},API:{types:qu,endpoint:"articles/".concat(e,"/draft"),root:Qs.c,method:"DELETE",fetchOptions:{zsAutoSignature:!1}}})}}})(RL),xL=function(e){return c.a.createElement(xl.a,e,c.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 4zM12 16a.976.976 0 0 0 .705-.287.951.951 0 0 0 .295-.712.954.954 0 0 0-.295-.714A.976.976 0 0 0 12 14a.962.962 0 0 0-.705.295A.961.961 0 0 0 11 15c0 .284.098.522.295.713A.975.975 0 0 0 12 16zm1.278-4.924a36.81 36.81 0 0 0 1.023-.975c.19-.193.354-.422.492-.688.138-.266.207-.575.207-.928 0-.448-.12-.864-.363-1.246a2.517 2.517 0 0 0-1.029-.906C13.164 6.111 12.652 6 12.072 6c-.624 0-1.17.133-1.638.399-.468.265-.824.6-1.068 1.005-.244.405-.366.804-.366 1.2 0 .19.077.368.231.531a.747.747 0 0 0 .567.246c.38 0 .638-.234.774-.703.144-.449.32-.788.528-1.019.208-.23.532-.345.972-.345.376 0 .683.114.921.342.238.229.357.51.357.841 0 .17-.039.328-.117.473a1.782 1.782 0 0 1-.288.396c-.114.118-.3.294-.555.526a9.71 9.71 0 0 0-.696.688c-.172.194-.31.418-.414.673a2.391 2.391 0 0 0-.156.906c0 .278.071.488.213.63a.716.716 0 0 0 .525.211c.4 0 .638-.216.714-.648.044-.203.077-.345.099-.426.022-.081.053-.162.093-.243.04-.081.101-.17.183-.268.082-.098.191-.21.327-.34z",fillRule:"evenodd"}))};xL.defaultProps={name:"HelpBubble"};var NL=xL,DL={normal:Ph.a,outline:Mj,bubble:NL};var PL=function(e){var t=e.className,n=e.tooltip,r=e.position,i=void 0===r?"bottom":r,a=e.preset,c=void 0===a?"white":a,s=e.icon,u=void 0===s?"outline":s,l=Object(_e.a)(e,["className","tooltip","position","preset","icon"]),d=DL[u];return Object(o.b)(d,Object.assign({className:rl()("HelpTooltip",t),"data-tooltip":n,"data-tooltip-position":i,"data-tooltip-preset":c,"data-tooltip-classname":"HelpTooltip-tooltip"},l))};var LL=function(e){var t=e.title,n=e.titleLine,r=void 0===n||n,i=e.titleHint,a=e.titleTool,c=e.verticalBody,s=void 0!==c&&c,u=e.children;return Object(o.c)("div",{className:"ColumnSettingSection",children:[Object(o.c)("h2",{className:rl()("ColumnSettingSection-title",{"ColumnSettingSection-title--line":r}),children:[t,i&&Object(o.b)(PL,{className:"ColumnSettingSection-HelpTooltip",tooltip:i,text:!0,center:!0}),r&&Object(o.b)("div",{className:rl()("ColumnSettingSection-titleLine",{"ColumnSettingSection-titleLine--withTool":a})}),a]}),Object(o.b)("div",{className:rl()("ColumnSettingSection-body",{"ColumnSettingSection-body--vertical":s}),children:u})]})},ML=n(313);var UL=function(e){var t=e.user,n=e.meta,r=e.className,i=e.tool,a=e.showDescription,c=void 0===a||a,s=e.showCreatorMark,u=void 0!==s&&s,l=n.role,d=n.postsCount,f=n.column;return Object(o.c)("div",{className:rl()("ColumnUserItem",r),children:[Object(o.b)(VS.a,{user:t,avatar:!0,avatarProps:{size:48,round:!0}}),Object(o.c)("div",{className:"ColumnUserItem-info",children:[Object(o.c)("div",{className:"ColumnUserItem-nameContainer",children:[Object(o.b)(VS.a,{className:"ColumnUserItem-name",user:t}),c&&Object(o.b)(ML.a,{className:"ColumnUserItem-description",user:t}),u&&"creator"===l&&Object(o.b)("div",{className:"ColumnUserItem-creatorMark",children:"创建者"})]}),Object(o.b)("div",{className:"ColumnUserItem-meta",children:d>0?Object(o.c)(st.Link,{to:"/".concat(f.id,"?author=").concat(t.userToken),children:[Object(hh.formatNumber)(d)," 篇文章"]}):"0 篇文章"})]}),i]})};function BL(e){var t=e.isMobile,n=e.column,r=n.id,i=n.title,a=n.imageUrl,c=n.intro,s=n.topics,u=void 0===s?[]:s,l=n.description,d=n.coauthors,f=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.filter((function(e){return!t||"accepted"===e.state})),r=n.filter((function(e){return"editor"===e.role})).sort((function(e,t){return t.postsCount-e.postsCount})),o=n.filter((function(e){return"author"===e.role||"contributor"===e.role})).sort((function(e,t){return t.postsCount-e.postsCount})),i=n.find((function(e){return"creator"===e.role}));return i&&r.unshift(i),[r,o]}(void 0===d?[]:d),p=Object(gt.a)(f,2),h=p[0],b=p[1];return Object(o.c)("div",{className:"ColumnAbout",children:[Object(o.b)(jt.a,{title:"关于 - ".concat(i," - 知乎专栏")}),!t&&Object(o.b)(pv,{showAdblockBanner:!0,columnId:r,preset:pv.PRESETS.COLUMN}),Object(o.c)("div",{className:"ColumnAbout-body",children:[Object(o.c)(LL,{title:"关于",titleLine:!1,children:[Object(o.b)(Gh.a,{className:"ColumnAbout-Avatar",round:!0,size:100,url:a,alt:"专栏图像"}),Object(o.c)("div",{className:"ColumnAbout-introText",children:[Object(o.b)("div",{className:"ColumnAbout-title",children:i}),Object(o.b)("div",{children:c})]})]}),Object(o.b)(LL,{title:"专栏话题",children:u.map((function(e){return Object(o.b)(vx,{className:"ColumnAbout-TopicLink",topic:e,target:"_blank"},e.id)}))}),Object(o.b)(LL,{title:"专栏介绍",className:"ColumnAbout-description",children:l}),h.length>0&&Object(o.b)(LL,{title:"编辑",titleHint:"能发布文章并管理专栏",verticalBody:!0,children:h.map((function(e){return Object(o.b)(UL,{className:"ColumnAbout-UserItem",user:e.author,meta:Object.assign({},e,{column:n})},e.author.id)}))}),b.length>0&&Object(o.b)(LL,{title:"作者",titleHint:"能发布文章",verticalBody:!0,children:b.map((function(e){return Object(o.b)(UL,{className:"ColumnAbout-UserItem",user:e.author,meta:Object.assign({},e,{column:n})},e.author.id)}))})]})]})}BL.fetchData=Uv;var zL=Object(Lt.compose)(Object(Ot.connect)((function(e,t){var n=t.params.id;return{column:e.entities.columns[n]||{},isMobile:Object(z.d)(e)}})),Object(wf.a)({shouldLoad:function(e){return!e.column||!e.column.id},load:BL.fetchData}))(BL),FL=ll(fP),GL=ll(AL),VL=dl(oI),HL=Object(o.c)(st.Route,{path:"/",component:fl()(kb),name:"Index",onEnter:function(e){if(J(e),Object(W.isBrowser)()){var t=hl(e);Object(j.setPageName)(t),function(){var e=window.performance;e&&e.timing&&(Ne((function(e){return Object(j.batchedTiming)(e)})),ze({report:function(e){return E.a.increment("".concat(Object(j.getPageName)(),".").concat(e,".count"))}}))}()}},onChange:function(e,t){X(e,t),Object(j.setPageName)(hl(t))},children:[Object(o.b)(st.IndexRoute,{component:ul(Ev),name:"Home"}),Object(o.b)(st.Route,{authRequired:!0,path:"drafts",component:ll(IL),name:"Drafts"}),Object(o.b)(st.Route,{authRequired:!0,path:"write",component:GL,name:"WritePage"}),Object(o.b)(st.Route,{path:":id",component:VL,name:"Column"}),Object(o.b)(st.Route,{authRequired:!0,path:"column/request",component:ll(VI),name:"Request",showAppHeader:!0}),Object(o.b)(st.Route,{path:"column/p/:id",component:FL,name:"ColumnPost"}),Object(o.b)(st.Route,{path:"column/:id",component:VL,name:"NewColumn"}),Object(o.b)(st.Route,{authRequired:!0,path:"column/:id/collect",component:ll(LI),name:"ColumnCollect",showAppHeader:!1,zaPageShowId:8168}),Object(o.b)(st.Route,{path:"column/:id/about",component:ll(zL),name:"ColumnAbout"}),Object(o.b)(st.Route,{authRequired:!0,path:"column/:id/settings",component:zI,name:"ColumnSettingsV2"}),Object(o.b)(st.Route,{authRequired:!0,path:"p/:id/edit",component:GL,name:"EditPage"}),Object(o.b)(st.Route,{path:"p/:id",component:FL,name:"Post"}),Object(o.b)(st.Route,{authRequired:!0,path:"p/:id/preview",component:RP,name:"PreviewPost"}),Object(o.b)(st.Redirect,{from:"/p/:id/voters",to:"/p/:id",query:{from_voters_page:!0}}),Object(o.b)(st.Redirect,{from:"/:columnId/:id",to:"/p/:id"}),pl]});function qL(){return Object(o.b)(st.Router,{history:st.browserHistory,children:HL})}t.default=function(e){var t=e.rootReducer,n=e.renderCallback;return vt({routes:e.routes,createStore:Object(mt.getCreateStore)(t),onRequestRender:function(e){var t=function(t){return Object(V.hydrate)(Object(o.b)(a.Profiler,{id:"App",onRender:Nt,children:Object(o.b)(At,{store:e.store,children:Object(o.b)(Dt.a.Provider,{value:e.http,children:Object(o.b)(t,{})})})}),e.container)};new Promise((function(e){/interactive|complete/.test(document.readyState)?e():document.addEventListener("DOMContentLoaded",e)})).then((function(){return n(t,e)}))}})}({rootReducer:$u,renderCallback:function(e,t){var n=t.container;Pt.b.setAppElement&&Pt.b.setAppElement(n),e(qL)},routes:HL})},function(e,t,n){"use strict";n.r(t),n.d(t,"getCreateStore",(function(){return O}));var r=n(23),o=n(350),i=n(39),a=n.n(i),c=n(21),s=function(e,t){return[e.replace(/\/$/,""),t.replace(/^\//,"")].join("/")};function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/api/v4/",n=new RegExp(/(^\/?|api\/)v3\//).test(e)?t.replace(/v4\/$/,""):t,r=e.replace(/^https?:\/\/[^/]+(?:\/api(\/v\d))?/,(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"/v4"===t?"":t}));return s(n,r)}var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/api/v4/";return function(n){return function(n){return function(r){var o=r.API;if(!o)return n(r);var i=o.types,s=o.endpoint,l=o.method,d=o.query,f=o.body,p=o.headers,h=o.fetchOptions,b=void 0===h?{}:h,v=o.root;if(!i)throw new Error("API must special types key");var m=Array.isArray(i)?i:[i.request,i.success,i.failure],g=a()(m,3),O=g[0],y=g[1],j=g[2];function E(e){var t=Object.assign({},r,e);return delete t.API,t}O&&n(E({type:O}));var C=Object.assign({},b,l&&{method:l},d&&{query:Object(c.decamelizeKeys)(d)},f&&{body:f},{headers:Object.assign({},b.headers,p)}),w=u(s,v||t),T=l||"GET";return e(w,C).then((function(e){return n(E(Object.assign({},e,{type:y,requestMethod:T})))})).catch((function(e){throw n(E({type:j,err:e,requestMethod:T})),e}))}}}},d=n(29),f=n(118),p=n.n(f),h=function(){return{}},b=function(){return function(e){return function(t){if(t.FAILSAFE){t=p()(t,{NOTIFICATION:!1,API:{fetchOptions:{failsafe:!0,timeout:t.FAILSAFE.timeout||1e3}}});var n=e(t);return n.catch?n.catch(h):n}return e(t)}}},v=n(26),m=n(235),g=function(){return function(e){return function(t){if(!t.payload)return e(t);var n=t.payload,r=n.rootComment,o=n.topComments;if(r){var i=Object(v.a)(r,d.a.COMMENT_V2),a=i.entities,c=i.result;t.rootComment=c,t.entities=Object(m.a)(t.entities,a)}if(o){var s=o.data,u=o.paging,l=Object(v.a)(s,d.a.COMMENT_ARRAY_V2),f=l.entities,p=l.result;t.topComments={result:p,paging:u},t.entities=Object(m.a)(t.entities,f)}return e(t)}}};function O(e){return function(t,n){var i=n.http,a=n.root,c=[o.a.withExtraArgument({fnRefs:{}}),b,l(i,a),d.b,g];return Object(r.createStore)(e,t,r.applyMiddleware.apply(void 0,c))}}},function(e,t,n){"use strict";n.r(t);var r=n(55),o=n.n(r),i=n(1),a=n(416),c=n(3),s=n(200),u=n(199),l=a.a,d=function(e){return"theme"!==e&&"innerRef"!==e},f=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?l:d};function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(n,!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=function e(t,n){var r,o,a;void 0!==n&&(r=n.label,a=n.target,o=t.__emotion_forwardProp&&n.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var l=t.__emotion_real===t,d=l&&t.__emotion_base||t;"function"!=typeof o&&l&&(o=t.__emotion_forwardProp);var p=o||f(d),b=!p("as");return function(){var v=arguments,m=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&m.push("label:"+r+";"),null==v[0]||void 0===v[0].raw)m.push.apply(m,v);else{0,m.push(v[0][0]);for(var g=v.length,O=1;O<g;O++)m.push(v[O],v[0][O])}var y=Object(c.e)((function(e,t,n){return Object(i.createElement)(c.a.Consumer,null,(function(r){var c=b&&e.as||d,l="",h=[],v=e;if(null==e.theme){for(var g in v={},e)v[g]=e[g];v.theme=r}"string"==typeof e.className?l=Object(s.a)(t.registered,h,e.className):null!=e.className&&(l=e.className+" ");var O=Object(u.a)(m.concat(h),t.registered,v);Object(s.b)(t,O,"string"==typeof c);l+=t.key+"-"+O.name,void 0!==a&&(l+=" "+a);var y=b&&void 0===o?f(c):p,j={};for(var E in e)b&&"as"===E||y(E)&&(j[E]=e[E]);return j.className=l,j.ref=n||e.innerRef,Object(i.createElement)(c,j)}))}));return y.displayName=void 0!==r?r:"Styled("+("string"==typeof d?d:d.displayName||d.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=d,y.__emotion_styles=m,y.__emotion_forwardProp=o,Object.defineProperty(y,"toString",{value:function(){return"."+a}}),y.withComponent=function(t,r){return e(t,void 0!==r?h({},n||{},{},r):n).apply(void 0,m)},y}}.bind();["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","marquee","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"].forEach((function(e){b[e]=b(e)}));t.default=b},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(218),o=new r.a((function(e){return e.complete()}));function i(e){return e?function(e){return new r.a((function(t){return e.schedule((function(){return t.complete()}))}))}(e):o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(142),o=n(157);function i(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(e,t))}}var a=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.project,this.thisArg))},e}(),c=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return r.a(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(o.a)},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M13.486 12l5.208-5.207a1.048 1.048 0 0 0-.006-1.483 1.046 1.046 0 0 0-1.482-.005L12 10.514 6.793 5.305a1.048 1.048 0 0 0-1.483.005 1.046 1.046 0 0 0-.005 1.483L10.514 12l-5.208 5.207a1.048 1.048 0 0 0 .006 1.483 1.046 1.046 0 0 0 1.482.005L12 13.486l5.207 5.208a1.048 1.048 0 0 0 1.483-.006 1.046 1.046 0 0 0 .005-1.482L13.486 12z",fillRule:"evenodd"}))};a.defaultProps={name:"Close"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M10.229 17.516c-.318.327-.75.484-1.199.484-.453 0-.884-.16-1.202-.488l-4.335-4.47a1.77 1.77 0 0 1 .007-2.459 1.663 1.663 0 0 1 2.397.01l3.137 3.246 9.072-9.329a1.662 1.662 0 0 1 2.397 0c.663.681.663 1.786 0 2.466L10.23 17.516z",fillRule:"evenodd"}))};a.defaultProps={name:"Check"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M9 9.185v5.63c0 .378.18.685.665.685.114 0 .187-.03.314-.083l4.621-2.793c.2-.124.4-.304.4-.624s-.2-.5-.4-.624L9.979 8.583c-.127-.053-.2-.083-.314-.083-.485 0-.665.307-.665.685z"}))};a.defaultProps={name:"TriangleArrowRight"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M12 13L8.285 9.218a.758.758 0 0 0-1.064 0 .738.738 0 0 0 0 1.052l4.249 4.512a.758.758 0 0 0 1.064 0l4.246-4.512a.738.738 0 0 0 0-1.052.757.757 0 0 0-1.063 0L12.002 13z",fillRule:"evenodd"}))};a.defaultProps={name:"ArrowDown"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.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"}))};a.defaultProps={name:"ArrowUp"},t.a=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(142),o=n(218),i=n(157),a=n(260),c=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),s=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return r.a(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(a.a),u=n(272),l=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return r.a(t,e),t}(i.a),d=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.a(t,e),t.prototype[u.a]=function(){return new l(this)},t.prototype.lift=function(e){var t=new f(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new c;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].next(e)},t.prototype.error=function(e){if(this.closed)throw new c;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new c;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new c;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new c;return this.hasError?(e.error(this.thrownError),a.a.EMPTY):this.isStopped?(e.complete(),a.a.EMPTY):(this.observers.push(e),new s(this,e))},t.prototype.asObservable=function(){var e=new o.a;return e.source=this,e},t.create=function(e,t){return new f(e,t)},t}(o.a),f=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return r.a(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):a.a.EMPTY},t}(d)},,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M5.515 19.64l.918-5.355-3.89-3.792c-.926-.902-.639-1.784.64-1.97L8.56 7.74l2.404-4.871c.572-1.16 1.5-1.16 2.072 0L15.44 7.74l5.377.782c1.28.186 1.566 1.068.64 1.97l-3.89 3.793.918 5.354c.219 1.274-.532 1.82-1.676 1.218L12 18.33l-4.808 2.528c-1.145.602-1.896.056-1.677-1.218z",fillRule:"evenodd"}))};a.defaultProps={name:"Star"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M12 21.333a9.333 9.333 0 1 1 0-18.666 9.333 9.333 0 0 1 0 18.666zm-.66-11.287c.332.385.609.77.775 1.21.055-.054.665-.99.72-1.706.055-.385.126-1.616-.443-2.367-.443-.496-1.219-.77-1.884-.55a1.788 1.788 0 0 0-1.33 2.036c.887.276 1.607.771 2.161 1.377zm-1.33 1.541c.443-.055.941-.11 1.44 0 0-.055-.484-.936-1.108-1.486-.665-.496-1.33-.973-2.216-.771-.72.11-1.723.77-1.55 2.092.11.606.553 1.101 1.162 1.321.61-.605 1.44-1.046 2.272-1.156zm2.714.165c.056 0 1.164.055 1.828-.165.72-.275 1.412-.68 1.773-1.541.11-.276.23-1.248-.443-1.872-.72-.716-1.717-.716-2.438-.165.222.825.063 1.966-.11 2.532-.103.348-.333.88-.61 1.211zm-1.44.55c-.056 0-1.33.056-1.828.221-.72.275-1.447.668-1.773 1.541-.11.276-.21 1.26.443 1.872.665.661 1.718.661 2.438.11-.295-.811-.166-1.761.055-2.477.166-.495.388-.936.665-1.266zm5.041-.99c-.665.605-1.44.99-2.327 1.211-.443.055-.941.11-1.44 0 0 .055.554.991 1.108 1.431.665.496 1.385.771 2.216.771.72-.11 1.678-.692 1.551-2.092-.055-.605-.554-1.101-1.108-1.321zm-3.656 2.642a3.475 3.475 0 0 1-.776-1.156c-.055.055-.665.991-.72 1.707-.055.385-.101 1.506.499 2.312.443.496 1.218.77 1.883.55.887-.275 1.496-1.1 1.33-2.036a5.38 5.38 0 0 1-2.216-1.377z",fillRule:"evenodd"}))};a.defaultProps={name:"LabelRoundtable"},t.a=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(52),o=n(677),i=n(44);function a(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function c(e,t){Object(i.a)(2,arguments);var n=Object(r.a)(e),c=Object(r.a)(t),s=a(n,c),u=Math.abs(Object(o.a)(n,c));n.setDate(n.getDate()-s*u);var l=a(n,c)===-s,d=s*(u-l);return 0===d?0:d}},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M6.433 14.285l-.918 5.355c-.219 1.274.532 1.82 1.676 1.218l4.81-2.528 4.807 2.528c1.145.601 1.896.056 1.677-1.218l-.918-5.355 3.89-3.792c.925-.903.64-1.785-.64-1.97l-2.843-.414c-.538.583-4.195 4.547-5.757 6.12-.865.822-1.572.015-1.572.015l-1.92-1.906s-.405-.623.213-1.204c.62-.58 1.174-.193 1.174-.193l1.32 1.14 4.008-4.34-2.404-4.872c-.572-1.159-1.5-1.159-2.072 0L8.56 7.741l-5.376.781c-1.279.186-1.566 1.068-.64 1.971l3.89 3.792z",fillRule:"evenodd"}))};a.defaultProps={name:"Recommend"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M15.075 15.388l-3.024 3.024a4.041 4.041 0 0 0-1.014 1.697l-.26.868C7.844 20.986 4.91 21 2 21c.026-3.325 0-3.304.59-3.956 1.237-1.368 6.251-.68 6.44-2.976.043-.518-.36-1.06-.725-1.69C6.285 8.87 5.512 2 11.5 2c5.988 0 5.15 7.072 3.246 10.378-.357.62-.795 1.217-.724 1.77.073.571.477.958 1.053 1.24zm5.402 1.672c.523.55.523.646.523 3.94a535.11 535.11 0 0 0-4.434-.028l3.911-3.912zm-7.88 2.699c.111-.37.312-.705.584-.978l4.76-4.76a.291.291 0 0 1 .412 0l1.626 1.626a.291.291 0 0 1 0 .411l-4.76 4.76c-.272.273-.608.474-.978.585l-1.96.588a.219.219 0 0 1-.272-.272l.589-1.96zm9.157-6.742a.839.839 0 0 1 0 1.187l-.94.94a.28.28 0 0 1-.395 0l-1.563-1.563a.28.28 0 0 1 0-.395l.94-.94a.839.839 0 0 1 1.187 0l.771.771z",fillRule:"evenodd"}))};a.defaultProps={name:"Creator"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M7.667 3.667h11.466a1.2 1.2 0 0 1 1.2 1.2v13.066a2.4 2.4 0 0 1-2.4 2.4H6.467V4.867a1.2 1.2 0 0 1 1.2-1.2zM4.2 9.619h1.689v10.714H5.4a2.4 2.4 0 0 1-2.4-2.4V10.82a1.2 1.2 0 0 1 1.2-1.2zm5.178-2.38a.6.6 0 0 0-.6.6v.585a.6.6 0 0 0 .6.6h8.044a.6.6 0 0 0 .6-.6v-.586a.6.6 0 0 0-.6-.6H9.378zm0 3.57a.6.6 0 0 0-.6.6v.586a.6.6 0 0 0 .6.6h8.044a.6.6 0 0 0 .6-.6v-.585a.6.6 0 0 0-.6-.6H9.378zm0 3.572a.6.6 0 0 0-.6.6v.586a.6.6 0 0 0 .6.6h4.578a.6.6 0 0 0 .6-.6v-.586a.6.6 0 0 0-.6-.6H9.378z",fillRule:"evenodd"}))};a.defaultProps={name:"LabelSpecial"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M12 16.183l2.716-2.966a.757.757 0 0 1 1.064.001.738.738 0 0 1 0 1.052l-3.247 3.512a.758.758 0 0 1-1.064 0L8.22 14.27a.738.738 0 0 1 0-1.052.758.758 0 0 1 1.063 0L12 16.183zm0-9.365L9.284 9.782a.758.758 0 0 1-1.064 0 .738.738 0 0 1 0-1.052l3.248-3.512a.758.758 0 0 1 1.065 0L15.78 8.73a.738.738 0 0 1 0 1.052.757.757 0 0 1-1.063.001L12 6.818z",fillRule:"evenodd"}))};a.defaultProps={name:"Select"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M17.068 15.58a8.377 8.377 0 0 0 1.774-5.159 8.421 8.421 0 1 0-8.42 8.421 8.38 8.38 0 0 0 5.158-1.774l3.879 3.88c.957.573 2.131-.464 1.488-1.49l-3.879-3.878zm-6.647 1.157a6.323 6.323 0 0 1-6.316-6.316 6.323 6.323 0 0 1 6.316-6.316 6.323 6.323 0 0 1 6.316 6.316 6.323 6.323 0 0 1-6.316 6.316z",fillRule:"evenodd"}))};a.defaultProps={name:"Search"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M16.036 19.59a1 1 0 0 1-.997.995H9.032a.996.996 0 0 1-.997-.996v-7.005H5.03c-1.1 0-1.36-.633-.578-1.416L11.33 4.29a1.003 1.003 0 0 1 1.412 0l6.878 6.88c.782.78.523 1.415-.58 1.415h-3.004v7.005z"}))};a.defaultProps={name:"BackToTop"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M11 2c5.571 0 9 4.335 9 8 0 6-6.475 9.764-11.481 8.022-.315-.07-.379-.124-.78.078-1.455.54-2.413.921-3.525 1.122-.483.087-.916-.25-.588-.581 0 0 .677-.417.842-1.904.064-.351-.14-.879-.454-1.171A8.833 8.833 0 0 1 2 10c0-3.87 3.394-8 9-8zm10.14 9.628c.758.988.86 2.009.86 3.15 0 1.195-.619 3.11-1.368 3.938-.209.23-.354.467-.308.722.12 1.073.614 1.501.614 1.501.237.239-.188.562-.537.5-.803-.146-1.495-.42-2.546-.811-.29-.146-.336-.106-.563-.057-2.043.711-4.398.475-6.083-.927 5.965-.524 8.727-3.03 9.93-8.016z",fillRule:"evenodd"}))};a.defaultProps={name:"Comments"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M19.947 3.129c-.633.136-3.927.639-5.697.385-3.133-.45-4.776-2.54-9.949-.888-.997.413-1.277 1.038-1.277 2.019L3 20.808c0 .3.101.54.304.718a.97.97 0 0 0 .73.304c.275 0 .519-.102.73-.304.202-.179.304-.418.304-.718v-6.58c4.533-1.235 8.047.668 8.562.864 2.343.893 5.542.008 6.774-.657.397-.178.596-.474.596-.887V3.964c0-.599-.42-.972-1.053-.835z",fillRule:"evenodd"}))};a.defaultProps={name:"Report"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.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"}))};a.defaultProps={name:"Plus"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(e){return o.a.createElement(i.a,a({fill:"currentColor"},e),o.a.createElement("path",{d:"M3.25 4a.25.25 0 0 0-.25.25v1.5c0 .138.112.25.25.25h11.5a.25.25 0 0 0 .25-.25v-1.5a.25.25 0 0 0-.25-.25zm0 4a.25.25 0 0 0-.25.25v1.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25v-1.5a.25.25 0 0 0-.25-.25zm18.035-.571a.5.5 0 0 0 0-.858l-3.528-2.117a.5.5 0 0 0-.757.43v4.233a.5.5 0 0 0 .757.429zm0 9.142a.5.5 0 0 1 0 .858l-3.528 2.117a.5.5 0 0 1-.757-.43v-4.233a.5.5 0 0 1 .757-.429zM3 14.25a.25.25 0 0 1 .25-.25h11.5a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25H3.25a.25.25 0 0 1-.25-.25zM3.25 18a.25.25 0 0 0-.25.25v1.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25v-1.5a.25.25 0 0 0-.25-.25z",fillRule:"evenodd",clipRule:"evenodd"}))};c.defaultProps={name:"InsertCatalog"},t.a=c},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M9.443 4.232l.589 1.472a.247.247 0 0 1-.13.317c-2.14.946-3.826 3.015-3.9 4.856L6 11h3.718c.446 0 .607.046.77.133a.918.918 0 0 1 .378.379c.087.162.134.324.134.77v6.436c0 .446-.047.607-.134.77a.918.918 0 0 1-.378.379c-.163.087-.324.133-.77.133H5.282c-.446 0-.608-.046-.77-.133a.912.912 0 0 1-.374-.37c-.083-.153-.13-.301-.137-.681L4 11c0-2.784 2.3-5.627 5.219-6.862a.17.17 0 0 1 .224.094m8.776-.094a.17.17 0 0 1 .224.094l.589 1.472a.247.247 0 0 1-.13.317c-2.14.946-3.826 3.015-3.9 4.856L15 11h3.718c.446 0 .608.047.77.134a.922.922 0 0 1 .379.378c.086.163.133.324.133.77v6.436c0 .446-.047.608-.133.77a.922.922 0 0 1-.379.379c-.162.087-.324.133-.77.133h-4.436c-.446 0-.607-.046-.77-.133a.909.909 0 0 1-.374-.37c-.083-.153-.13-.301-.137-.681L13 11c0-2.784 2.3-5.627 5.219-6.862M8.749 13H6v4.75c0 .138.113.25.25.25h2.5a.25.25 0 0 0 .25-.25v-4.5a.25.25 0 0 0-.25-.25m9 0H15v4.75c0 .138.113.25.25.25h2.5a.25.25 0 0 0 .25-.25v-4.5a.25.25 0 0 0-.25-.25",fillRule:"evenodd"}))};a.defaultProps={name:"FormatBlockquote"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M14.205 3a.25.25 0 0 1 .25.25l-.001.02-2.92 17.521a.25.25 0 0 1-.246.209H9.795a.25.25 0 0 1-.25-.25l.001-.02 2.92-17.521A.25.25 0 0 1 12.711 3h1.493zM7.469 5.97l1.06 1.06a.25.25 0 0 1 0 .354L3.915 12l4.616 4.616a.25.25 0 0 1 0 .354l-1.061 1.06a.25.25 0 0 1-.354 0l-5.853-5.853a.25.25 0 0 1 0-.354L7.115 5.97a.25.25 0 0 1 .354 0zm9.413 0l5.854 5.853a.25.25 0 0 1 0 .354l-5.854 5.853a.25.25 0 0 1-.353 0l-1.06-1.06a.25.25 0 0 1 0-.354L20.083 12l-4.616-4.616a.25.25 0 0 1 0-.354l1.06-1.06a.25.25 0 0 1 .354 0z"}))};a.defaultProps={name:"FormatCode"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M7.75 4a.25.25 0 0 1 .25.25V11h8V4.25a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25v15.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25V13H8v6.75a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25V4.25A.25.25 0 0 1 6.25 4h1.5z"}))};a.defaultProps={name:"FormatHeader"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M5.75 4a.25.25 0 0 1 .25.25V11h8V4.25a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25v15.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25V13H6v6.75a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25V4.25A.25.25 0 0 1 4.25 4h1.5zm15.004 10c.113 0 .213.085.24.199l.006.059v5.484c0 .132-.08.227-.19.252l-.056.006H19.58a.248.248 0 0 1-.24-.199l-.006-.06v-3.816a.251.251 0 0 0-.198-.252l-.06-.006h-.819c-.13 0-.21-.08-.213-.19l.005-.056.236-1.175a.32.32 0 0 1 .228-.237L18.58 14h2.174z"}))};a.defaultProps={name:"FormatHeadingOne"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M5.75 4a.25.25 0 0 1 .25.25V11h8V4.25a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25v15.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25V13H6v6.75a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25V4.25A.25.25 0 0 1 4.25 4h1.5zm13.749 10c1.428 0 2.499.928 2.499 1.922 0 .582-.205.991-.886 1.64l-.153.144-.774.64c-.083.07-.079.133.01.15l.05.005 1.51.008c.118 0 .214.086.239.2l.006.06v.971c0 .123-.08.226-.186.253L21.76 20h-4.517a.24.24 0 0 1-.235-.19l-.006-.057v-.486c0-.102.057-.243.137-.34l.063-.062 2.149-1.66c.825-.632 1.025-.881 1.028-1.15.008-.41-.3-.747-.878-.747-.597 0-.886.36-.924.778l-.005.097H17C17 14.875 18.071 14 19.499 14z"}))};a.defaultProps={name:"FormatHeadingTwo"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M19.75 18a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-9.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h9.5zM5.499 14c1.428 0 2.499.928 2.499 1.922 0 .582-.205.991-.886 1.64l-.153.144-.774.64c-.083.07-.079.133.01.15l.05.005 1.51.008c.118 0 .214.086.239.2l.006.06v.971c0 .123-.08.226-.186.253L7.76 20H3.242a.24.24 0 0 1-.235-.19l-.006-.057v-.486c0-.102.057-.243.137-.34l.063-.062 2.149-1.66c.825-.632 1.025-.881 1.028-1.15.008-.41-.3-.747-.878-.747-.597 0-.886.36-.924.778l-.005.097H3C3 14.875 4.071 14 5.499 14zm16.251 0a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-11.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h11.5zm-2-6a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-9.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h9.5zM6.754 4c.113 0 .213.085.24.199L7 4.258v5.484c0 .132-.08.227-.19.252L6.755 10H5.58a.248.248 0 0 1-.24-.199l-.006-.06V5.926a.251.251 0 0 0-.198-.252l-.06-.006h-.819c-.13 0-.21-.08-.213-.19l.005-.056.236-1.175a.32.32 0 0 1 .228-.237L4.58 4h2.174zM21.75 4a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-11.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h11.5z",fillRule:"evenodd"}))};a.defaultProps={name:"InsertOrderedList"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M19.75 18a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-8.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h8.5zM6 14a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 2a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm15.75-2a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-10.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h10.5zm-2-6a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-8.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h8.5zM6 4a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 2a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm15.75-2a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-10.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h10.5z",fillRule:"evenodd"}))};a.defaultProps={name:"InsertUnorderedList"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M10.34 4.008c2.449 0 4.076.384 4.882 1.153.806.77 1.209 1.698 1.209 2.787 0 .725-.17 1.411-.512 2.057-.34.646-.883 1.128-1.627 1.447 1.1.262 1.91.719 2.43 1.372.518.653.778 1.422.778 2.307 0 .93-.155 1.742-.465 2.438-.31.697-.953 1.278-1.93 1.742-.91.433-2.2.665-3.867.693l-.363.003H7a1 1 0 0 1-.993-.883L6 19.008V5.013a1 1 0 0 1 .882-.993l.116-.007 3.342-.006zM8 13v4.735a.25.25 0 0 0 .192.243l.057.007 3.264.015c1.585 0 2.652-.253 3.2-.758.549-.505.823-1.145.823-1.92 0-.734-.313-1.302-.94-1.703-.579-.37-1.432-.57-2.56-.599l-.288-.003L8 13zm2.895-6.992H8.25a.25.25 0 0 0-.243.192L8 6.258v4.748l3.027.002c1.255 0 2.147-.265 2.677-.795.53-.53.795-1.202.795-2.016 0-1.407-1.117-2.136-3.351-2.186l-.253-.003z"}))};a.defaultProps={name:"FormatBold"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M12 6H9.25A.25.25 0 0 1 9 5.75v-1.5A.25.25 0 0 1 9.25 4h7.5a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25H14l-2 12h2.75a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-7.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25H10l2-12z"}))};a.defaultProps={name:"FormatItalic"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M8 3.25v1.5a.25.25 0 0 1-.25.25h-2.5a.25.25 0 0 0-.25.25v13.5c0 .138.112.25.25.25h2.5a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h3.75a.25.25 0 0 1 .25.25zM20 3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-3.75a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h2.5a.25.25 0 0 0 .25-.25V5.25a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25H20zm-7.25 4a.25.25 0 0 1 .243.193L13 7.25v9.5a.25.25 0 0 1-.193.243L12.75 17h-1.5a.25.25 0 0 1-.243-.193L11 16.75v-7.5a.25.25 0 0 0-.193-.243L10.75 9H9.32a.25.25 0 0 1-.25-.253l.008-.058.375-1.5a.25.25 0 0 1 .176-.18L9.695 7h3.055z",fillRule:"evenodd"}))};a.defaultProps={name:"InsertReference"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M20.75 17a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25H3.25a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h17.5zm-13-6a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-4.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h4.5zm6 0a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-3.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h3.5zm7 0a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-4.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h4.5zm0-6a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25H3.25A.25.25 0 0 1 3 6.75v-1.5A.25.25 0 0 1 3.25 5h17.5z"}))};a.defaultProps={name:"InsertDivider"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M20.309 20.309a.25.25 0 0 1 0 .353l-1.061 1.06a.25.25 0 0 1-.354 0l-7.299-7.299L11 18h1.75a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-5.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25H9l.881-5.29-4.73-4.73a.25.25 0 0 1-.13-.129L2.277 5.106a.25.25 0 0 1 0-.354l1.06-1.06a.25.25 0 0 1 .301-.041l.053.04L20.31 20.31zM18.75 4a.25.25 0 0 1 .25.25v3.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 0-.25-.25H13l-.597 3.575-1.714-1.714L11 6H8.826l-2-2H18.75z"}))};a.defaultProps={name:"FormatClear"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M5.5 10.5a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5h-2A.5.5 0 0 1 3 13v-2a.5.5 0 0 1 .5-.5h2zm7.5 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2a.5.5 0 0 1 .5-.5h2zm7.5 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2a.5.5 0 0 1 .5-.5h2z"}))};a.defaultProps={name:"SquareDots"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M6 2h8l6 6v12c0 1.243-.757 2-2 2H6c-1.243 0-2-.757-2-2V4c0-1.243.757-2 2-2zm1.5 8.5V12h9v-1.5h-9zm0 6H12V18H7.5v-1.5zm0-3h9V15h-9v-1.5zM14 4v4h4l-4-4z",fillRule:"evenodd"}))};a.defaultProps={name:"Document"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M13.414 4.222a4.5 4.5 0 1 1 6.364 6.364l-3.005 3.005a.5.5 0 0 1-.707 0l-.707-.707a.5.5 0 0 1 0-.707l3.005-3.005a2.5 2.5 0 1 0-3.536-3.536l-3.005 3.005a.5.5 0 0 1-.707 0l-.707-.707a.5.5 0 0 1 0-.707l3.005-3.005zm-6.187 6.187a.5.5 0 0 1 .638-.058l.07.058.706.707a.5.5 0 0 1 .058.638l-.058.07-3.005 3.004a2.5 2.5 0 0 0 3.405 3.658l.13-.122 3.006-3.005a.5.5 0 0 1 .638-.058l.069.058.707.707a.5.5 0 0 1 .058.638l-.058.069-3.005 3.005a4.5 4.5 0 0 1-6.524-6.196l.16-.168 3.005-3.005zm8.132-3.182a.25.25 0 0 1 .353 0l1.061 1.06a.25.25 0 0 1 0 .354l-8.132 8.132a.25.25 0 0 1-.353 0l-1.061-1.06a.25.25 0 0 1 0-.354l8.132-8.132z"}))};a.defaultProps={name:"InsertLink"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M3.75 4.002L20.078 4c.669 0 .911.07 1.156.2.244.131.436.323.567.567.13.245.2.487.2 1.156v12.154c0 .669-.07.911-.2 1.156-.131.244-.323.436-.567.567-.245.13-.487.2-1.156.2H3.923c-.669 0-.911-.07-1.156-.2a1.363 1.363 0 0 1-.567-.567c-.118-.223-.187-.443-.198-.984L2 5.923c0-.669.07-.911.2-1.156.131-.244.323-.436.567-.567.223-.118.443-.187.984-.198zM19.68 6H4.32c-.111 0-.151.012-.192.033a.227.227 0 0 0-.095.095.27.27 0 0 0-.03.121L4 6.32v11.36c0 .111.012.151.033.192.022.04.054.073.095.095a.27.27 0 0 0 .121.03L4.32 18h15.36c.111 0 .151-.012.192-.033a.227.227 0 0 0 .095-.095.27.27 0 0 0 .03-.121L20 17.68V6.32c0-.111-.012-.151-.033-.192a.227.227 0 0 0-.095-.095.27.27 0 0 0-.121-.03L19.68 6zm-5.176 2.18a.25.25 0 0 1 .088.09l4.195 7.356a.25.25 0 0 1-.217.374H5.44a.25.25 0 0 1-.216-.378l3.235-5.447a.25.25 0 0 1 .426-.006l1.899 2.99a.25.25 0 0 0 .425-.005l2.952-4.89a.25.25 0 0 1 .343-.084z"}))};a.defaultProps={name:"Image"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M3.75 4.002L20.078 4c.669 0 .911.07 1.156.2.244.131.436.323.567.567.13.245.2.487.2 1.156v12.154c0 .669-.07.911-.2 1.156-.131.244-.323.436-.567.567-.245.13-.487.2-1.156.2H3.923c-.669 0-.911-.07-1.156-.2a1.363 1.363 0 0 1-.567-.567c-.118-.223-.187-.443-.198-.984L2 5.923c0-.669.07-.911.2-1.156.131-.244.323-.436.567-.567.223-.118.443-.187.984-.198zM19.68 6H4.32c-.111 0-.151.012-.192.033a.227.227 0 0 0-.095.095.27.27 0 0 0-.03.121L4 6.32v11.36c0 .111.012.151.033.192.022.04.054.073.095.095a.27.27 0 0 0 .121.03L4.32 18h15.36c.111 0 .151-.012.192-.033a.227.227 0 0 0 .095-.095.27.27 0 0 0 .03-.121L20 17.68V6.32c0-.111-.012-.151-.033-.192a.227.227 0 0 0-.095-.095.27.27 0 0 0-.121-.03L19.68 6zM9.584 8.657a.5.5 0 0 1 .614-.182l.08.043 4.598 3.066a.5.5 0 0 1 .07.775l-.07.057-4.599 3.066a.5.5 0 0 1-.769-.326l-.008-.09V8.934a.5.5 0 0 1 .084-.277z"}))};a.defaultProps={name:"InsertVideo"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M20 3a1 1 0 0 1 1 1v15a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h16zm-9 12H5v2.75a.25.25 0 0 0 .193.243L5.25 18H11v-3zm8 0h-6v3h5.75a.25.25 0 0 0 .243-.193L19 17.75V15zm0-5h-6v3h6v-3zM5 10v3h6v-3H5zm13.75-5H13v3h6V5.25a.25.25 0 0 0-.25-.25zM5 8h6V5H5.25a.25.25 0 0 0-.243.193L5 5.25V8z"}))};a.defaultProps={name:"InsertTable"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M18.57 19.862l.75-1.5a.25.25 0 0 0-.225-.362H9.104a.25.25 0 0 1-.177-.427l5.88-5.88a.25.25 0 0 0-.014-.369L9.02 6.441A.25.25 0 0 1 9.182 6h8.568a.25.25 0 0 0 .25-.25v-1.5a.25.25 0 0 0-.25-.25h-13a.25.25 0 0 0-.25.25v.141c0 .07.029.136.08.183l7.237 6.755a.25.25 0 0 1 .012.354l-7.261 7.745a.25.25 0 0 0-.068.17v.152c0 .138.112.25.25.25h13.595a.25.25 0 0 0 .224-.138z"}))};a.defaultProps={name:"InsertFormula"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M21 17.444C21 18.3 20.1 19 19 19H5c-1.1 0-2-.7-2-1.556V6.556C3 5.7 3.9 5 5 5h14c1.1 0 2 .7 2 1.556v10.888zm-9.437-3.919a.5.5 0 0 1-.862.013l-1.26-2.065a.5.5 0 0 0-.861.012l-2.153 3.767a.5.5 0 0 0 .435.748h10.292a.5.5 0 0 0 .438-.741L14.573 9.78a.5.5 0 0 0-.872-.006l-2.138 3.75z",fillRule:"evenodd"}))};a.defaultProps={name:"InsertImage"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10zm0-3.681a1.17 1.17 0 0 1-.846-.344 1.143 1.143 0 0 1-.354-.856c0-.328.118-.61.354-.847.236-.235.518-.353.846-.353.328 0 .61.115.846.344.236.23.354.515.354.856 0 .342-.118.626-.354.856-.236.229-.518.344-.846.344zm2.761-7.398c-.228.232-.637.621-1.227 1.17-.163.154-.295.29-.393.407a1.643 1.643 0 0 0-.22.32 1.614 1.614 0 0 0-.111.293c-.026.097-.066.267-.119.512-.09.518-.377.777-.857.777a.86.86 0 0 1-.63-.254c-.17-.17-.255-.421-.255-.755 0-.419.062-.78.187-1.087.125-.307.29-.576.497-.808.206-.231.485-.506.835-.825.307-.28.53-.49.666-.632.137-.142.252-.3.346-.474.093-.175.14-.364.14-.568 0-.399-.143-.735-.428-1.01-.286-.273-.655-.41-1.106-.41-.528 0-.917.138-1.166.414-.25.277-.46.684-.634 1.222-.163.563-.472.845-.928.845a.896.896 0 0 1-.68-.295c-.185-.197-.278-.41-.278-.64 0-.473.147-.952.44-1.438.292-.486.72-.888 1.28-1.207C10.683 6.16 11.339 6 12.087 6c.696 0 1.31.133 1.844.4a3.02 3.02 0 0 1 1.234 1.087c.291.459.436.957.436 1.495 0 .423-.083.794-.248 1.113a3.413 3.413 0 0 1-.59.826z",fillRule:"evenodd"}))};a.defaultProps={name:"Help"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.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"}))};a.defaultProps={name:"ArrowRight"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M20 12.878C20 17.358 16.411 21 12 21s-8-3.643-8-8.122c0-4.044 3.032-7.51 6.954-8.038.034-1.185.012-1.049.012-1.049-.013-.728.461-1.003 1.057-.615l3.311 2.158c.598.39.596 1.026 0 1.418l-3.31 2.181c-.598.393-1.08.12-1.079-.606 0 0 .006-.606-.003-1.157-2.689.51-4.675 2.9-4.675 5.708 0 3.21 2.572 5.822 5.733 5.822 3.163 0 5.733-2.612 5.733-5.822 0-.633.51-1.148 1.134-1.148.625 0 1.133.515 1.133 1.148",fillRule:"evenodd"}))};a.defaultProps={name:"Refresh"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M20.868 17.185a.896.896 0 0 1-.452.137c-.123 0-1.397-.26-1.617-.233-1.354.014-1.78 1.276-1.835 1.742-.055.453 0 .892.191 1.303a.8.8 0 0 1-.068.851C16.224 21.877 14.922 22 14.73 22a.548.548 0 0 1-.356-.151c-.11-.096-.685-1.138-1.069-1.468-1.304-.955-2.247-.329-2.63 0-.398.33-.672.7-.836 1.125a.632.632 0 0 1-.329.37c-1.354.426-2.918-.919-3.014-1.056a.564.564 0 0 1-.123-.356c-.014-.138.383-1.276.342-1.688-.342-1.9-1.836-1.687-2.096-1.673a3.192 3.192 0 0 0-.918.178.873.873 0 0 1-.59-.055c-.887-.462-1.136-2.332-1.109-2.51.055-.315.192-.521.438-.604.425-.164.809-.452 1.151-.85.931-1.262.343-2.25 0-2.634-.342-.356-.726-.645-1.15-.809-.138-.041-.234-.151-.33-.316-.38-1.434.613-2.552.867-2.77.255-.22.6-.055.723 0 .425.164.877.219 1.343.15C6.7 6.636 6.784 5.141 6.81 4.908c.014-.247-.11-1.29-.137-1.4a.488.488 0 0 1 .027-.315C7.317 2.178 9.071 2 9.222 2a.56.56 0 0 1 .439.178c.11.124.63 1.111 1 1.4.4.338 1.583.83 2.59.013.397-.274.959-1.29 1.082-1.413A.55.55 0 0 1 14.717 2c1.56 0 2.329 1.029 2.438 1.22a.458.458 0 0 1 .069.371c-.028.151-.329 1.152-.26 1.605.365 1.537 1.383 1.742 1.89 1.783.493.028 1.644-.356 1.809-.343a.63.63 0 0 1 .424.206c.535.31.85 1.715.905 2.14.027.233-.014.439-.11.562-.11.138-1.165.714-1.48 1.112-.855.982-.342 2.25-.068 2.606.26.37 1.22.905 1.288.96.15.137.26.302.315.494.146 1.413-.89 2.387-1.069 2.47zm-8.905-.535c.644 0 1.246-.123 1.822-.356a4.576 4.576 0 0 0 1.493-1.016 4.694 4.694 0 0 0 1-1.495c.247-.562.357-1.18.357-1.81 0-.659-.11-1.262-.356-1.825a4.79 4.79 0 0 0-1-1.481 4.542 4.542 0 0 0-1.494-1.002 4.796 4.796 0 0 0-3.631 0 4.627 4.627 0 0 0-1.48 1.002c-.424.425-.767.919-1 1.481a4.479 4.479 0 0 0-.37 1.825c0 .644.124 1.248.37 1.81a4.62 4.62 0 0 0 1 1.495c.425.426.918.768 1.48 1.016a4.677 4.677 0 0 0 1.809.356z",fillRule:"evenodd"}))};a.defaultProps={name:"Settings"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.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"}))};a.defaultProps={name:"WeChat"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.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"}))};a.defaultProps={name:"Alert"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.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"}))};a.defaultProps={name:"Dots"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(e){return o.a.createElement(i.a,a({fill:"currentColor"},e),o.a.createElement("path",{d:"M4 6a2 2 0 0 1 2-2h5.75a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-5.5a.25.25 0 0 0-.25.25v11.5c0 .138.112.25.25.25h11.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25V18a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6z",fillRule:"evenodd",clipRule:"evenodd"}),o.a.createElement("path",{d:"M18.293 1.293a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1 0 1.414l-10 10A1 1 0 0 1 12 16H9a1 1 0 0 1-1-1v-3a1 1 0 0 1 .293-.707l10-10zm-8.22 11.048a.25.25 0 0 0-.073.177v1.232c0 .138.112.25.25.25h1.232a.25.25 0 0 0 .177-.073l8.75-8.75a.25.25 0 0 0 0-.354l-1.232-1.232a.25.25 0 0 0-.354 0l-8.75 8.75z",fillRule:"evenodd",clipRule:"evenodd"}))};c.defaultProps={name:"EditSurround"},t.a=c},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.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"}))};a.defaultProps={name:"Play"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.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"}))};a.defaultProps={name:"AddImage"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.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"}))};a.defaultProps={name:"Emotion"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M18.376 5.624c-3.498-3.499-9.254-3.499-12.752 0-3.499 3.498-3.499 9.254 0 12.752 3.498 3.499 9.254 3.499 12.752 0 3.499-3.498 3.499-9.14 0-12.752zm-1.693 1.693c2.37 2.37 2.596 6.094.678 8.69l-9.367-9.48c2.708-1.919 6.32-1.58 8.69.79zm-9.48 9.48c-2.37-2.37-2.595-6.095-.676-8.69l9.48 9.48c-2.822 1.918-6.433 1.58-8.803-.79z",fillRule:"evenodd"}))};a.defaultProps={name:"Ban"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.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"}))};a.defaultProps={name:"Like"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M22.959 17.22c-1.686-3.552-5.128-8.062-11.636-8.65-.539-.053-1.376-.436-1.376-1.561V4.678c0-.521-.635-.915-1.116-.521L1.469 10.67a1.506 1.506 0 0 0-.1 2.08s6.99 6.818 7.443 7.114c.453.295 1.136.124 1.135-.501V17a1.525 1.525 0 0 1 1.532-1.466c1.186-.139 7.597-.077 10.33 2.396 0 0 .396.257.536.257.892 0 .614-.967.614-.967z",fillRule:"evenodd"}))};a.defaultProps={name:"Reply"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.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"}))};a.defaultProps={name:"EyeSlash"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M16.464 4s.051-2-1.479-2H9C7.194 2 7.465 4 7.465 4H4.752c-2.57 0-2.09 3.5 0 3.5l1.213 13.027S5.965 22 7.475 22h8.987c1.502 0 1.502-1.473 1.502-1.473l1.2-13.027c2.34 0 2.563-3.5 0-3.5h-2.7zM8.936 18.5l-.581-9h1.802v9H8.936zm4.824 0v-9h1.801l-.61 9H13.76z",fillRule:"evenodd"}))};a.defaultProps={name:"Trash"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M1 11.5C1 15 7 19 12 19s11-4 11-7.5S17 4 12 4 1 8 1 11.5zm11 5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm-3-5c0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3-3 1.34-3 3z",fillRule:"evenodd"}))};a.defaultProps={name:"Eye"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.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"}))};a.defaultProps={name:"Weibo"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M14.782 16.78a.737.737 0 0 1-1.052 0L9.218 12.53a.758.758 0 0 1 0-1.063L13.73 7.22a.737.737 0 0 1 1.052 0c.29.294.29.77.001 1.063L11 12l3.782 3.716c.29.294.29.77 0 1.063z",fillRule:"evenodd"}))};a.defaultProps={name:"ArrowLeft"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M13.362 19.12l-1.951 1.73-.014.012a.595.595 0 0 1-.84-.078L9.178 19.12H7.481a2.985 2.985 0 0 1-2.966-3.292l.708-6.962c.151-1.489.348-2.183.789-2.891a3.963 3.963 0 0 1 1.635-1.481C8.395 4.126 9.103 4 10.596 4h5.923a2.985 2.985 0 0 1 2.966 3.292l-.708 6.962c-.151 1.488-.348 2.182-.789 2.89a3.963 3.963 0 0 1-1.635 1.482c-.748.367-1.456.494-2.949.494h-.042zm1.21-6.804a.198.198 0 0 1-.197-.23l.24-1.566a.199.199 0 0 1 .197-.169h1.01a.797.797 0 0 0 .795-.773.624.624 0 0 0-.624-.625h-.884a.198.198 0 0 1-.195-.233l.302-1.75a.676.676 0 0 0-.662-.789.9.9 0 0 0-.886.743l-.334 1.865a.199.199 0 0 1-.196.164h-1.62a.198.198 0 0 1-.196-.234l.314-1.748a.673.673 0 0 0-.659-.79.9.9 0 0 0-.886.743l-.334 1.865a.199.199 0 0 1-.195.164H8.51a.797.797 0 0 0-.795.773c0 .345.28.625.624.625h.942a.198.198 0 0 1 .197.23l-.24 1.566a.199.199 0 0 1-.197.17H7.979a.797.797 0 0 0-.794.772c0 .345.279.625.623.625h.959a.198.198 0 0 1 .196.23l-.308 1.968a.678.678 0 0 0 .666.78c.43 0 .796-.313.863-.74l.323-2.07a.199.199 0 0 1 .197-.168h1.64a.198.198 0 0 1 .196.23l-.306 1.96a.685.685 0 0 0 .673.788.883.883 0 0 0 .872-.748l.322-2.062a.199.199 0 0 1 .197-.168h1.01a.809.809 0 0 0 .805-.779.618.618 0 0 0-.618-.619h-.924zm-1.518-1.735l-.24 1.566a.199.199 0 0 1-.196.17h-1.623a.198.198 0 0 1-.197-.23l.24-1.567a.199.199 0 0 1 .197-.169h1.623a.198.198 0 0 1 .196.23z",fillRule:"evenodd"}))};a.defaultProps={name:"Hashtag"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.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"}))};a.defaultProps={name:"CheckCircle"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M4.076 16.966a4.19 4.19 0 0 1 1.05-1.76l8.568-8.569a.524.524 0 0 1 .741 0l2.928 2.927a.524.524 0 0 1 0 .74l-8.568 8.57c-.49.49-1.096.852-1.761 1.051l-3.528 1.058a.394.394 0 0 1-.49-.488l1.06-3.53zM20.558 4.83c.59.59.59 1.546 0 2.136l-1.693 1.692a.503.503 0 0 1-.712 0l-2.812-2.812a.504.504 0 0 1 0-.712l1.693-1.693a1.51 1.51 0 0 1 2.135 0l1.389 1.389z"}))};a.defaultProps={name:"Edit"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M19.722 18a.249.249 0 0 1-.242-.2 1 1 0 0 0-.906-.797L18.5 17h-.875a5.135 5.135 0 0 1-.527 1.003L17 18c1.524 0 2.783 1.237 2.974 2.72a.25.25 0 0 1-.249.28h-1.503a.249.249 0 0 1-.242-.2 1 1 0 0 0-.906-.797L17 20H7c-.465 0-.855.375-.967.818a.243.243 0 0 1-.237.182H4.385c-.266 0-.386-.12-.374-.262a3 3 0 0 1 2.876-2.736h.014a5.162 5.162 0 0 1-.527-1.001L5.5 17c-.465 0-.855.374-.967.818a.243.243 0 0 1-.237.182H2.885c-.266 0-.386-.12-.374-.262a3 3 0 0 1 2.876-2.736L5.5 15H6L6 14.895a4.736 4.736 0 0 1-3.684-5.329l.03-.173.442-2.365a3 3 0 0 1 1.94-5.017.25.25 0 0 1 .27.25v1.514a.249.249 0 0 1-.2.245A1 1 0 1 0 5.98 5.2a.25.25 0 0 1 .245-.2h1.514a.25.25 0 0 1 .25.271 3 3 0 0 1-3.342 2.708l-.334 1.782a2.735 2.735 0 0 0 2.089 3.172 5.012 5.012 0 0 1 1.076-1.637 2.006 2.006 0 0 1-.426-1.754 1.972 1.972 0 0 1 1.492-1.491A2.003 2.003 0 0 1 11 10h2a2.002 2.002 0 0 1 2.457-1.949c.741.164 1.328.75 1.492 1.492.148.669-.039 1.299-.426 1.754a5.021 5.021 0 0 1 1.077 1.64 2.903 2.903 0 0 0 2.248-3.406l-.031-.139-.357-1.427a3 3 0 0 1-3.448-2.692.251.251 0 0 1 .25-.273h1.515c.118 0 .22.083.243.198a1 1 0 1 0 1.178-1.178.248.248 0 0 1-.198-.243V2.263c0-.148.126-.264.273-.251A3.001 3.001 0 0 1 21.27 6.96l.486 1.946a4.906 4.906 0 0 1-3.759 5.992c.002.033.002.068.002.102h.5c1.524 0 2.783 1.236 2.975 2.72a.25.25 0 0 1-.25.28h-1.503zM13.5 12h-3C9.12 12 8 13.344 8 15c0 1.614 1.061 2.929 2.391 2.997L10.5 18h3c1.38 0 2.5-1.344 2.5-3 0-1.614-1.061-2.929-2.392-2.997L13.5 12z",fillRule:"evenodd"}))};a.defaultProps={name:"Crab"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.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"}))};a.defaultProps={name:"TriangleUp"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M15.465 4.544l2.272.406c.67.12 1.193.644 1.313 1.313l.406 2.272c.042.231.132.45.266.643l1.32 1.894a1.624 1.624 0 0 1 0 1.856l-1.32 1.894a1.624 1.624 0 0 0-.266.643l-.406 2.272a1.624 1.624 0 0 1-1.313 1.313l-2.272.406c-.231.042-.45.132-.643.266l-1.894 1.32a1.624 1.624 0 0 1-1.856 0l-1.894-1.32a1.624 1.624 0 0 0-.643-.266l-2.272-.406a1.624 1.624 0 0 1-1.313-1.313l-.406-2.272a1.624 1.624 0 0 0-.266-.643l-1.32-1.894a1.624 1.624 0 0 1 0-1.856l1.32-1.894c.134-.193.224-.412.266-.643l.406-2.272c.12-.67.644-1.193 1.313-1.313l2.272-.406c.231-.042.45-.132.643-.266l1.894-1.32a1.624 1.624 0 0 1 1.856 0l1.894 1.32.643.266zM12 14.187c.526 0 .977-.209 1.351-.625.375-.416.562-.916.562-1.501V8.659c0-.584-.187-1.085-.562-1.501-.374-.416-.825-.625-1.35-.625-.527 0-.978.209-1.352.625a2.166 2.166 0 0 0-.562 1.501v3.402c0 .585.187 1.085.562 1.501.374.416.825.625 1.351.625zm3.436-3.159a.373.373 0 0 0-.278-.121c-.107 0-.199.04-.277.121a.402.402 0 0 0-.117.289v.82c0 .79-.27 1.466-.812 2.027-.54.562-1.191.843-1.952.843-.76 0-1.412-.281-1.953-.843a2.818 2.818 0 0 1-.81-2.027v-.82a.402.402 0 0 0-.118-.289.373.373 0 0 0-.277-.121c-.107 0-.2.04-.278.121a.401.401 0 0 0-.117.289v.82c0 .944.303 1.765.91 2.463.606.698 1.356 1.098 2.248 1.2v1.94c-.002.22.13.33.395.33s.397-.11.395-.33V15.8c.892-.102 1.642-.502 2.248-1.2.607-.698.91-1.52.91-2.463v-.82a.401.401 0 0 0-.117-.289z",fillRule:"evenodd"}))};a.defaultProps={name:"LabelRelevant"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M12.868 2.899l6.597 3.8c.537.31.868.881.868 1.5v7.602c0 .619-.33 1.19-.868 1.5l-6.597 3.8c-.537.31-1.199.31-1.736 0l-6.597-3.8a1.731 1.731 0 0 1-.868-1.5V8.199c0-.619.33-1.19.868-1.5l6.597-3.8a1.74 1.74 0 0 1 1.736 0zm-2.614 11.85a.29.29 0 0 1 .255.148l1.239 2.207a.289.289 0 0 0 .504 0l1.24-2.207a.29.29 0 0 1 .254-.148l2.52.023a.29.29 0 0 0 .253-.434l-1.284-2.192a.288.288 0 0 1 0-.292l1.284-2.192a.288.288 0 0 0-.253-.434l-2.52.023a.29.29 0 0 1-.255-.148l-1.239-2.207a.289.289 0 0 0-.504 0l-1.24 2.207a.29.29 0 0 1-.254.148l-2.52-.023a.29.29 0 0 0-.253.434l1.284 2.192a.288.288 0 0 1 0 .292L7.48 14.338a.288.288 0 0 0 .253.434l2.52-.023z",fillRule:"evenodd"}))};a.defaultProps={name:"LabelEditorRecommendation"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M3.85 5.266c1.093-.4 2.175-.6 3.245-.6 1.338 0 2.675.313 4.01.939a.6.6 0 0 1 .346.543v10.31a.24.24 0 0 1-.342.216c-1.337-.626-2.675-.94-4.014-.94-1.186 0-2.387.246-3.604.738a.6.6 0 0 1-.824-.557V6.957a1.8 1.8 0 0 1 1.182-1.69zm9.045.339c1.335-.626 2.672-.938 4.01-.938 1.07 0 2.152.2 3.246.6a1.8 1.8 0 0 1 1.182 1.69v8.958a.6.6 0 0 1-.824.557c-1.217-.492-2.418-.737-3.604-.737-1.339 0-2.677.313-4.014.94a.24.24 0 0 1-.342-.218V6.148a.6.6 0 0 1 .346-.543zm4.01 11.282c1.311 0 2.619.27 3.918.806.419.172.62.656.45 1.081a.813.813 0 0 1-1.065.457c-1.108-.457-2.207-.684-3.303-.684-1.08 0-2.163.22-3.254.664h.001a1.8 1.8 0 0 1-.649.121l-2.079.001c-.195 0-.39-.04-.568-.12-1.094-.445-2.18-.666-3.261-.666-1.096 0-2.195.227-3.303.684a.813.813 0 0 1-1.065-.457.834.834 0 0 1 .45-1.081c1.3-.536 2.607-.806 3.918-.806a10.009 10.009 0 0 1 3.391.604 3 3 0 0 0 1.025.18l.973.001a3 3 0 0 0 1.028-.18 10.01 10.01 0 0 1 3.393-.604z",fillRule:"evenodd"}))};a.defaultProps={name:"LabelWeekly"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M10.037 3.2h3.926c2.377 0 3.24.248 4.109.712a4.846 4.846 0 0 1 2.016 2.016c.464.87.712 1.732.712 4.109v3.926c0 2.377-.248 3.24-.712 4.109a4.846 4.846 0 0 1-2.016 2.016c-.87.464-1.732.712-4.109.712h-3.926c-2.377 0-3.24-.248-4.109-.712a4.846 4.846 0 0 1-2.016-2.016c-.464-.87-.712-1.732-.712-4.109v-3.926c0-2.377.248-3.24.712-4.109a4.846 4.846 0 0 1 2.016-2.016c.87-.464 1.732-.712 4.109-.712zM12 17.61a1.027 1.027 0 0 0 0-2.053A3.557 3.557 0 1 1 15.557 12a1.027 1.027 0 1 0 2.053 0A5.61 5.61 0 1 0 12 17.61z",fillRule:"evenodd"}))};a.defaultProps={name:"LabelDaily"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M15.712 4.011l2.435.435a1.74 1.74 0 0 1 1.407 1.407l.435 2.435c.044.247.141.482.285.688l1.414 2.03a1.74 1.74 0 0 1 0 1.989l-1.414 2.029a1.74 1.74 0 0 0-.285.688l-.435 2.435a1.74 1.74 0 0 1-1.407 1.407l-2.435.435a1.74 1.74 0 0 0-.688.285l-2.03 1.414a1.74 1.74 0 0 1-1.989 0l-2.029-1.414a1.74 1.74 0 0 0-.688-.285l-2.435-.435a1.74 1.74 0 0 1-1.407-1.407l-.435-2.435a1.74 1.74 0 0 0-.285-.688l-1.414-2.03a1.74 1.74 0 0 1 0-1.989l1.414-2.029a1.74 1.74 0 0 0 .285-.688l.435-2.435a1.74 1.74 0 0 1 1.407-1.407l2.435-.435a1.74 1.74 0 0 0 .688-.285l2.03-1.414a1.74 1.74 0 0 1 1.989 0l2.029 1.414.688.285zM11.875 8.84a4.21 4.21 0 1 0 0 8.42 4.21 4.21 0 0 0 0-8.42zm2.086 4.044l-.8.815.19 1.152c.063.386-.149.555-.487.37l-.989-.545-.988.544c-.332.183-.551.025-.486-.37l.188-1.15-.8-.816c-.268-.274-.192-.54.186-.598l1.106-.168.494-1.047c.166-.352.432-.359.601 0l.494 1.047 1.106.168c.37.057.46.319.185.598zm2.066-6.143h-2.65a.298.298 0 0 0-.291.217l-.817 1.504s1.75.098 2.782 1.027l1.22-2.298a.268.268 0 0 0 .062-.164c0-.158-.137-.286-.306-.286zM11.73 8.46l-.816-1.503a.298.298 0 0 0-.292-.217h-2.65c-.169 0-.306.128-.306.286a.27.27 0 0 0 .062.164l1.22 2.298c1.033-.929 2.782-1.027 2.782-1.027z"}))};a.defaultProps={name:"LabelProfessional"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M12.3 3a9.3 9.3 0 1 1 0 18.6 9.3 9.3 0 0 1 0-18.6zM7.209 9.9v2.075a.729.729 0 0 1 .194 1.43l-.104.022-.09.006v1.055l.008.109c.037.248.2.461.43.562l.103.036 8.725 2.365.098.02a.733.733 0 0 0 .801-.535l.02-.095.006-.097v-1.96a.729.729 0 0 1-.099-1.452l.099-.007-.008-.11a.733.733 0 0 0-.444-.566l-.105-.034L7.71 10.47l-.106-.03c-.233-.078-.361-.207-.39-.436L7.21 9.9zm7.277 4.993a.729.729 0 1 1-.001 1.458.729.729 0 0 1 0-1.458zm-2.55-2.188a1.094 1.094 0 1 1-.002 2.187 1.094 1.094 0 0 1 .002-2.187zm-2.422-1.07a.6.6 0 1 1 0 1.2.6.6 0 0 1 0-1.2zM12.925 7.2l-.108-.116a1.663 1.663 0 0 0-1.813-.355l-.14.067L7.554 8.56l-.089.057c-.41.307-.332.987.136 1.183l.1.032 8.806 2.156.058.007a.22.22 0 0 0 .19-.32l-.03-.043-2.024-2.363a.723.723 0 0 1-.379.107.703.703 0 0 1-.712-.694c0-.144.045-.278.122-.389l.063-.079-.87-1.014z",fillRule:"evenodd"}))};a.defaultProps={name:"Cheese"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M12.3 3a9.3 9.3 0 1 1 0 18.6 9.3 9.3 0 0 1 0-18.6zm4.5 15H7.2v.6h9.6V18zm-9.99-5.785l-.394 1.082c-.028.078.008.167.084.213l.04.02.678.247-.162.443 8.989 3.272.161-.444.678.247c.087.032.18.004.226-.063l.019-.036.393-1.082L6.81 12.215zm.25-.673l-.045.11 10.713 3.899c.326-.897-.162-1.906-1.097-2.311l-.119-.047-7.05-2.567c-.971-.353-2.02.056-2.403.916zm6.467-5.502l-1.462 4.895 2.255.821 2.026-4.69a1.5 1.5 0 1 0-2.82-1.026z",fillRule:"evenodd"}))};a.defaultProps={name:"Stamp"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M15.712 4.011l2.435.435a1.74 1.74 0 0 1 1.407 1.407l.435 2.435c.044.247.141.482.285.688l1.414 2.03a1.74 1.74 0 0 1 0 1.989l-1.414 2.029a1.74 1.74 0 0 0-.285.688l-.435 2.435a1.74 1.74 0 0 1-1.407 1.407l-2.435.435a1.74 1.74 0 0 0-.688.285l-2.03 1.414a1.74 1.74 0 0 1-1.989 0l-2.029-1.414a1.74 1.74 0 0 0-.688-.285l-2.435-.435a1.74 1.74 0 0 1-1.407-1.407l-.435-2.435a1.74 1.74 0 0 0-.285-.688l-1.414-2.03a1.74 1.74 0 0 1 0-1.989l1.414-2.029a1.74 1.74 0 0 0 .285-.688l.435-2.435a1.74 1.74 0 0 1 1.407-1.407l2.435-.435a1.74 1.74 0 0 0 .688-.285l2.03-1.414a1.74 1.74 0 0 1 1.989 0l2.029 1.414.688.285zM7.874 14.585l-.551 1.838a.204.204 0 0 0 .255.254l1.836-.55c.347-.105.662-.293.918-.548l4.46-4.462a.273.273 0 0 0 0-.385l-1.524-1.524a.273.273 0 0 0-.386 0l-4.46 4.461c-.256.256-.444.57-.548.916zm8.581-6.317l-.723-.723a.786.786 0 0 0-1.111 0l-.882.88a.262.262 0 0 0 0 .371l1.465 1.465a.262.262 0 0 0 .37 0l.881-.881a.786.786 0 0 0 0-1.112z",fillRule:"evenodd"}))};a.defaultProps={name:"BadgeWrite"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M2 8.437C2 5.505 4.294 3.094 7.207 3 9.243 3 11.092 4.19 12 6c.823-1.758 2.649-3 4.651-3C19.545 3 22 5.507 22 8.432 22 16.24 13.842 21 12 21 10.158 21 2 16.24 2 8.437z",fillRule:"evenodd"}))};a.defaultProps={name:"Heart"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("defs",null,o.a.createElement("linearGradient",{id:"id-3811055512-a",x1:"11.015%",x2:"87.655%",y1:"18.594%",y2:"96.14%"},o.a.createElement("stop",{offset:"0%",stopColor:"#F2D9B6"}),o.a.createElement("stop",{offset:"100%",stopColor:"#BF8B43"}))),o.a.createElement("path",{fill:"url(#id-3811055512-a)",d:"M21.351 4.858A3.115 3.115 0 0 1 22.93 7.56v8.88a3.115 3.115 0 0 1-1.578 2.702l-7.774 4.44a3.185 3.185 0 0 1-3.154 0l-7.774-4.44A3.115 3.115 0 0 1 1.07 16.44V7.56c0-1.115.602-2.145 1.578-2.702l7.774-4.44a3.185 3.185 0 0 1 3.154 0l7.774 4.44zm-2.475 1.904L13.16 3.507a2.347 2.347 0 0 0-2.32 0L5.124 6.762a2.283 2.283 0 0 0-1.16 1.982v6.512c0 .817.442 1.573 1.16 1.982l5.716 3.255a2.347 2.347 0 0 0 2.32 0l5.716-3.255a2.283 2.283 0 0 0 1.16-1.982V8.744c0-.817-.442-1.573-1.16-1.982zm-9.874 4.13L12 5.76l2.998 5.131 2.466-2.12v6.343c0 .49-.4.886-.893.886H7.429a.89.89 0 0 1-.893-.887V8.771l2.466 2.12z"}))};a.defaultProps={name:"VIP"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.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"}))};a.defaultProps={name:"Lock"},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(20),a=function(e){return o.a.createElement(i.a,e,o.a.createElement("path",{d:"M13.234 7.506l-1.13-1.13.911-.913c1.544-1.544 4.012-1.587 5.528-.07 1.513 1.512 1.466 3.991-.083 5.542l-2.678 2.678c-1.606 1.608-4.509 2.012-5.989.534l1.13-1.132c.776.774 2.688.508 3.727-.533l2.678-2.678c.934-.935.962-2.402.084-3.28-.883-.883-2.338-.857-3.266.07l-.912.912zm-2.459 9.007l1.131 1.131-.912.912c-1.543 1.544-4.011 1.587-5.528.07-1.512-1.512-1.466-3.99.084-5.542l2.676-2.674c1.609-1.608 4.513-2.01 5.991-.53l-1.132 1.13c-.774-.775-2.686-.51-3.728.532l-2.676 2.673c-.934.935-.961 2.402-.083 3.28.882.883 2.338.857 3.265-.07l.912-.912z"}))};a.defaultProps={name:"Link"},t.a=a}]);
|
|
|
//# sourceMappingURL=column.app.efeca058bbd73033743f.js.map |