mirror of
https://github.com/idanoo/m2.nz.git
synced 2024-11-30 04:05:13 +00:00
35 lines
768 KiB
JavaScript
35 lines
768 KiB
JavaScript
|
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Gitalk=t():e.Gitalk=t()}(this,function(){return function(e){function t(a){if(n[a])return n[a].exports;var i=n[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist",t(t.s=191)}([function(e,t,n){"use strict";function a(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}t.a=a},function(e,t,n){"use strict";function a(e){i.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))}t.a=a;var i=n(0)},function(e,t,n){"use strict";function a(e){return function(t){var n=t||{},a=n.width?String(n.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}t.a=a},function(e,t,n){"use strict";function a(e){return function(t,n){var a,i=n||{},r=i.context?String(i.context):"standalone";if("formatting"===r&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,u=i.width?String(i.width):o;a=e.formattingValues[u]||e.formattingValues[o]}else{var s=e.defaultWidth,d=i.width?String(i.width):e.defaultWidth;a=e.values[d]||e.values[s]}return a[e.argumentCallback?e.argumentCallback(t):t]}}t.a=a},function(e,t,n){"use strict";function a(e){return function(t,n){var a=String(t),i=n||{},r=a.match(e.matchPattern);if(!r)return null;var o=r[0],u=a.match(e.parsePattern);if(!u)return null;var s=e.valueCallback?e.valueCallback(u[0]):u[0];return s=i.valueCallback?i.valueCallback(s):s,{value:s,rest:a.slice(o.length)}}}t.a=a},function(e,t,n){"use strict";function a(e){return function(t,n){var a=String(t),o=n||{},u=o.width,s=u&&e.matchPatterns[u]||e.matchPatterns[e.defaultMatchWidth],d=a.match(s);if(!d)return null;var c,l=d[0],m=u&&e.parsePatterns[u]||e.parsePatterns[e.defaultParseWidth];return c="[object Array]"===Object.prototype.toString.call(m)?r(m,function(e){return e.test(l)}):i(m,function(e){return e.test(l)}),c=e.valueCallback?e.valueCallback(c):c,c=o.valueCallback?o.valueCallback(c):c,{value:c,rest:a.slice(l.length)}}}function i(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function r(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}t.a=a},function(e,t,n){"use strict";function a(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)}t.a=a},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var a=n(74)("wks"),i=n(52),r=n(8).Symbol,o="function"==typeof r;(e.exports=function(e){return a[e]||(a[e]=o&&r[e]||(o?r:i)("Symbol."+e))}).store=a},function(e,t,n){"use strict";function a(e){return"[object Array]"===x.call(e)}function i(e){return void 0===e}function r(e){return null!==e&&!i(e)&&null!==e.constructor&&!i(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function o(e){return"[object ArrayBuffer]"===x.call(e)}function u(e){return"undefined"!=typeof FormData&&e instanceof FormData}function s(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function d(e
|
||
|
* react-is.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.
|
||
|
*/
|
||
|
Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,u=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,d=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,m=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,g=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,w=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.fundamental"):60117,M=r?Symbol.for("react.responder"):60118,k=r?Symbol.for("react.scope"):60119;t.typeOf=a,t.AsyncMode=f,t.ConcurrentMode=h,t.ContextConsumer=m,t.ContextProvider=l,t.Element=o,t.ForwardRef=p,t.Fragment=s,t.Lazy=b,t.Memo=w,t.Portal=u,t.Profiler=c,t.StrictMode=d,t.Suspense=g,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===h||e===c||e===d||e===g||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===w||e.$$typeof===l||e.$$typeof===m||e.$$typeof===p||e.$$typeof===y||e.$$typeof===M||e.$$typeof===k)},t.isAsyncMode=function(e){return i(e)||a(e)===f},t.isConcurrentMode=i,t.isContextConsumer=function(e){return a(e)===m},t.isContextProvider=function(e){return a(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return a(e)===p},t.isFragment=function(e){return a(e)===s},t.isLazy=function(e){return a(e)===b},t.isMemo=function(e){return a(e)===w},t.isPortal=function(e){return a(e)===u},t.isProfiler=function(e){return a(e)===c},t.isStrictMode=function(e){return a(e)===d},t.isSuspense=function(e){return a(e)===g}},function(e,t,n){"use strict";(function(e){/** @license React v16.12.0
|
||
|
* react-is.development.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.
|
||
|
*/
|
||
|
"production"!==e.env.NODE_ENV&&function(){function e(e){return"string"==typeof e||"function"==typeof e||e===b||e===x||e===M||e===y||e===T||e===S||"object"==typeof e&&null!==e&&(e.$$typeof===z||e.$$typeof===C||e.$$typeof===k||e.$$typeof===P||e.$$typeof===j||e.$$typeof===N||e.$$typeof===D||e.$$typeof===E)}function n(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case v:var n=e.type;switch(n){case W:case x:case b:case M:case y:case T:return n;default:var a=n&&n.$$typeof;switch(a){case P:case j:case z:case C:case k:return a;default:return t}}case w:return t}}}function a(e){return $||($=!0,_(!1,"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),i(e)||n(e)===W}function i(e){return n(e)===x}function r(e){return n(e)===P}function o(e){return n(e)===k}function u(e){return"object"==typeof e&&null!==e&&e.$$typeof===v}function s(e){return n(e)===j}function d(e){return n(e)===b}function c(e){return n(e)===z}function l(e){return n(e)===C}function m(e){return n(e)===w}function f(e){return n(e)===M}function h(e){return n(e)===y}function p(e){return n(e)===T}Object.defineProperty(t,"__esModule",{value:!0});var g="function"==typeof Symbol&&Symbol.for,v=g?Symbol.for("react.element"):60103,w=g?Symbol.for("react.portal"):60106,b=g?Symbol.for("react.fragment"):60107,y=g?Symbol.for("react.strict_mode"):60108,M=g?Symbol.for("react.profiler"):60114,k=g?Symbol.for("react.provider"):60109,P=g?Symbol.for("react.context"):60110,W=g?Symbol.for("react.async_mode"):60111,x=g?Symbol.for("react.concurrent_mode"):60111,j=g?Symbol.for("react.forward_ref"):60112,T=g?Symbol.for("react.suspense"):60113,S=g?Symbol.for("react.suspense_list"):60120,C=g?Symbol.for("react.memo"):60115,z=g?Symbol.for("react.lazy"):60116,N=g?Symbol.for("react.fundamental"):60117,D=g?Symbol.for("react.responder"):60118,E=g?Symbol.for("react.scope"):60119,H=function(){},A=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];var i=0,r="Warning: "+e.replace(/%s/g,function(){return n[i++]});"undefined"!=typeof console&&console.warn(r);try{throw new Error(r)}catch(e){}};H=function(e,t){if(void 0===t)throw new Error("`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i];A.apply(void 0,[t].concat(a))}};var _=H,O=W,X=x,I=P,Y=k,F=v,L=j,q=b,G=z,R=C,U=w,K=M,J=y,B=T,$=!1;t.typeOf=n,t.AsyncMode=O,t.ConcurrentMode=X,t.ContextConsumer=I,t.ContextProvider=Y,t.Element=F,t.ForwardRef=L,t.Fragment=q,t.Lazy=G,t.Memo=R,t.Portal=U,t.Profiler=K,t.StrictMode=J,t.Suspense=B,t.isValidElementType=e,t.isAsyncMode=a,t.isConcurrentMode=i,t.isContextConsumer=r,t.isContextProvider=o,t.isElement=u,t.isForwardRef=s,t.isFragment=d,t.isLazy=c,t.isMemo=l,t.isPortal=m,t.isProfiler=f,t.isStrictMode=h,t.isSuspense=p}()}).call(t,n(18))},function(e,t,n){"use strict";(function(t){function a(){return null}var i=n(99),r=n(199),o=n(68),u=n(200),s=Function.call.bind(Object.prototype.hasOwnProperty),d=function(){};"production"!==t.env.NODE_ENV&&(d=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),e.exports=function(e,n){function c(e){var t=e&&(S&&e[S]||e[C]);if("function"==typeof t)return t}function l(e,t){return e===t?0!==e||1/e==1/t:e!==e&&t!==t}function m(e){this.message=e,this.stack=""}function f(e){function a(a,u,s,c,l,f,h){if(c=c||z,f=f||s,h!==o){if(n){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+s;!i[g]&&r<3&&(d("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may b
|
||
|
object-assign
|
||
|
(c) Sindre Sorhus
|
||
|
@license MIT
|
||
|
*/
|
||
|
var i=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(e){a[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,u,s=a(e),d=1;d<arguments.length;d++){n=Object(arguments[d]);for(var c in n)r.call(n,c)&&(s[c]=n[c]);if(i){u=i(n);for(var l=0;l<u.length;l++)o.call(n,u[l])&&(s[u[l]]=n[u[l]])}}return s}},function(e,t,n){"use strict";(function(t){function a(e,n,a,s,d){if("production"!==t.env.NODE_ENV)for(var c in e)if(u(e,c)){var l;try{if("function"!=typeof e[c]){var m=Error((s||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[c]+"`.");throw m.name="Invariant Violation",m}l=e[c](n,c,s,a,null,r)}catch(e){l=e}if(!l||l instanceof Error||i((s||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof l+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),l instanceof Error&&!(l.message in o)){o[l.message]=!0;var f=d?d():"";i("Failed "+a+" type: "+l.message+(null!=f?f:""))}}}var i=function(){};if("production"!==t.env.NODE_ENV){var r=n(68),o={},u=Function.call.bind(Object.prototype.hasOwnProperty);i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}a.resetWarningCache=function(){"production"!==t.env.NODE_ENV&&(o={})},e.exports=a}).call(t,n(18))},function(e,t,n){"use strict";function a(){}function i(){}var r=n(68);i.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,i,o){if(o!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:a};return n.PropTypes=n,n}},function(e,t,n){!function(){"use strict";function t(){}function n(e,n){var a,i,r,o,u=E;for(o=arguments.length;o-- >2;)D.push(arguments[o]);for(n&&null!=n.children&&(D.length||D.push(n.children),delete n.children);D.length;)if((i=D.pop())&&void 0!==i.pop)for(o=i.length;o--;)D.push(i[o]);else!0!==i&&!1!==i||(i=null),(r="function"!=typeof e)&&(null==i?i="":"number"==typeof i?i=String(i):"string"!=typeof i&&(r=!1)),r&&a?u[u.length-1]+=i:u===E?u=[i]:u.push(i),a=r;var s=new t;return s.nodeName=e,s.children=u,s.attributes=null==n?void 0:n,s.key=null==n?void 0:n.key,void 0!==N.vnode&&N.vnode(s),s}function a(e,t){for(var n in t)e[n]=t[n];return e}function i(e,t){return n(e.nodeName,a(a({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}function r(e){!e.__d&&(e.__d=!0)&&1==A.push(e)&&(N.debounceRendering||setTimeout)(o)}function o(){var e,t=A;for(A=[];e=t.pop();)e.__d&&j(e)}function u(e,t,n){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&s(e,t.nodeName):n||e._componentConstructor===t.nodeName}function s(e,t){return e.__n===t||e.nodeName.toLowerCase()===t.toLowerCase()}function d(e){var t=a({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var i in n)void 0===t[i]&&(t[i]=n[i]);return t}function c(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.__n=e,
|
||
|
* @overview es6-promise - a tiny implementation of Promises/A+.
|
||
|
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
||
|
* @license Licensed under MIT license
|
||
|
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
|
||
|
* @version 4.1.1
|
||
|
*/
|
||
|
!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function i(e){return"function"==typeof e}function r(e){R=e}function o(e){U=e}function u(){return void 0!==G?function(){G(d)}:s()}function s(){var e=setTimeout;return function(){return e(d,1)}}function d(){for(var e=0;e<q;e+=2){(0,Q[e])(Q[e+1]),Q[e]=void 0,Q[e+1]=void 0}q=0}function c(e,t){var n=arguments,a=this,i=new this.constructor(m);void 0===i[ee]&&N(i);var r=a._state;return r?function(){var e=n[r-1];U(function(){return S(r,i,e,a._result)})}():W(a,i,e,t),i}function l(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var n=new t(m);return y(n,e),n}function m(){}function f(){return new TypeError("You cannot resolve a promise with itself")}function h(){return new TypeError("A promises callback cannot return that same promise.")}function p(e){try{return e.then}catch(e){return ie.error=e,ie}}function g(e,t,n,a){try{e.call(t,n,a)}catch(e){return e}}function v(e,t,n){U(function(e){var a=!1,i=g(n,t,function(n){a||(a=!0,t!==n?y(e,n):k(e,n))},function(t){a||(a=!0,P(e,t))},"Settle: "+(e._label||" unknown promise"));!a&&i&&(a=!0,P(e,i))},e)}function w(e,t){t._state===ne?k(e,t._result):t._state===ae?P(e,t._result):W(t,void 0,function(t){return y(e,t)},function(t){return P(e,t)})}function b(e,t,n){t.constructor===e.constructor&&n===c&&t.constructor.resolve===l?w(e,t):n===ie?(P(e,ie.error),ie.error=null):void 0===n?k(e,t):i(n)?v(e,t,n):k(e,t)}function y(t,n){t===n?P(t,f()):e(n)?b(t,n,p(n)):k(t,n)}function M(e){e._onerror&&e._onerror(e._result),x(e)}function k(e,t){e._state===te&&(e._result=t,e._state=ne,0!==e._subscribers.length&&U(x,e))}function P(e,t){e._state===te&&(e._state=ae,e._result=t,U(M,e))}function W(e,t,n,a){var i=e._subscribers,r=i.length;e._onerror=null,i[r]=t,i[r+ne]=n,i[r+ae]=a,0===r&&e._state&&U(x,e)}function x(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var a=void 0,i=void 0,r=e._result,o=0;o<t.length;o+=3)a=t[o],i=t[o+n],a?S(n,a,i,r):i(r);e._subscribers.length=0}}function j(){this.error=null}function T(e,t){try{return e(t)}catch(e){return re.error=e,re}}function S(e,t,n,a){var r=i(n),o=void 0,u=void 0,s=void 0,d=void 0;if(r){if(o=T(n,a),o===re?(d=!0,u=o.error,o.error=null):s=!0,t===o)return void P(t,h())}else o=a,s=!0;t._state!==te||(r&&s?y(t,o):d?P(t,u):e===ne?k(t,o):e===ae&&P(t,o))}function C(e,t){try{t(function(t){y(e,t)},function(t){P(e,t)})}catch(t){P(e,t)}}function z(){return oe++}function N(e){e[ee]=oe++,e._state=void 0,e._result=void 0,e._subscribers=[]}function D(e,t){this._instanceConstructor=e,this.promise=new e(m),this.promise[ee]||N(this.promise),L(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):P(this.promise,E())}function E(){return new Error("Array Methods must be provided an Array")}function H(e){return new D(this,e).promise}function A(e){var t=this;return new t(L(e)?function(n,a){for(var i=e.length,r=0;r<i;r++)t.resolve(e[r]).then(n,a)}:function(e,t){return t(new TypeError("You must pass an array to race."))})}function _(e){var t=this,n=new t(m);return P(n,e),n}function O(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function X(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function I(e){this[ee]=z(),this._result=this._state=void 0,this._subscribers=[],m!==e&&("function"!=typeof e&&O(),this instanceof I?C(this,e):X())}function Y(){var e=void 0;if(void 0!==a)e=a;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=I}var F=void 0;F=Array.i
|
||
|
Autosize 3.0.21
|
||
|
license: MIT
|
||
|
http://www.jacklmoore.com/autosize
|
||
|
*/
|
||
|
!function(n,o){i=[t,e],a=o,void 0!==(r="function"==typeof a?a.apply(t,i):a)&&(e.exports=r)}(0,function(e,t){"use strict";function n(e){function t(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function n(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function a(){var t=e.style.height,a=n(e),i=document.documentElement&&document.documentElement.scrollTop;e.style.height="auto";var r=e.scrollHeight+u;if(0===e.scrollHeight)return void(e.style.height=t);e.style.height=r+"px",s=e.clientWidth,a.forEach(function(e){e.node.scrollTop=e.scrollTop}),i&&(document.documentElement.scrollTop=i)}function i(){a();var n=Math.round(parseFloat(e.style.height)),i=window.getComputedStyle(e,null),r="content-box"===i.boxSizing?Math.round(parseFloat(i.height)):e.offsetHeight;if(r!==n?"hidden"===i.overflowY&&(t("scroll"),a(),r="content-box"===i.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==i.overflowY&&(t("hidden"),a(),r="content-box"===i.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),d!==r){d=r;var u=o("autosize:resized");try{e.dispatchEvent(u)}catch(e){}}}if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!r.has(e)){var u=null,s=e.clientWidth,d=null,c=function(){e.clientWidth!==s&&i()},l=function(t){window.removeEventListener("resize",c,!1),e.removeEventListener("input",i,!1),e.removeEventListener("keyup",i,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",i,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),r.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",i,!1),window.addEventListener("resize",c,!1),e.addEventListener("input",i,!1),e.addEventListener("autosize:update",i,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",r.set(e,{destroy:l,update:i}),function(){var t=window.getComputedStyle(e,null);"vertical"===t.resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),u="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(u)&&(u=0),i()}()}}function a(e){var t=r.get(e);t&&t.destroy()}function i(e){var t=r.get(e);t&&t.update()}var r="function"==typeof Map?new Map:function(){var e=[],t=[];return{has:function(t){return e.indexOf(t)>-1},get:function(n){return t[e.indexOf(n)]},set:function(n,a){-1===e.indexOf(n)&&(e.push(n),t.push(a))},delete:function(n){var a=e.indexOf(n);a>-1&&(e.splice(a,1),t.splice(a,1))}}}(),o=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){o=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}var u=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?(u=function(e){return e},u.destroy=function(e){return e},u.update=function(e){return e}):(u=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return n(e)}),e},u.destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e},u.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e}),t.exports=u})},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return new r.default({phrases:W[e]||W.en,locale:e})};var i=n(261),r=a(i),o=n(262),u=a(o),s=n(263),d=a(s),c=n(264),l=a(c),m=n(265),f=a(m),h=n(266),p=a(h),g=n(267),v=a(g),w=n(268),b=a(w),y=n(269),M=a(y),k=n(270),P=a(k),W={zh:u.default,"zh-CN":u.default,"zh-TW":d.default,en:l.default,"es-ES":f.default,fr:p.default,ru:v.default,de:b.default,pl:M.default,ko:P.default}},function(e,t,n){var a,i;!function(n,r){a=[],void 0!==(i=function(){return r(n)}.apply(t,a))&&(e.e
|
||
|
//# sourceMappingURL=gitalk.min.js.map
|