1
0
mirror of https://github.com/StarGazer114/stargazer114.github.io.git synced 2025-01-09 06:48:17 +08:00
stargazer114.github.io/pluginsSrc/disqusjs/dist/browser/disqusjs.es2015.umd.min.js

2 lines
39 KiB
JavaScript
Raw Permalink Normal View History

2025-01-05 20:41:38 +08:00
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).DisqusJS=t()}(this,function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(n){e(t,n,r[n])})}return t}var n,r,o,l,i,u,c,a,s,f={},d=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function m(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n){var r,o,i,u={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:u[i]=t[i];if(arguments.length>2&&(u.children=arguments.length>3?l.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===u[i]&&(u[i]=e.defaultProps[i]);return y(e,u,r,o,null)}function y(e,t,n,r,o){var l={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++u:o};return null==o&&null!=i.vnode&&i.vnode(l),l}function $(){return{current:null}}function g(e){return e.children}function b(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?S(e):null}function E(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return E(e)}}function N(e){(!e.__d&&(e.__d=!0)&&c.push(e)&&!k.__r++||a!==i.debounceRendering)&&((a=i.debounceRendering)||setTimeout)(k)}function k(){for(var e;k.__r=c.length;)e=c.sort(function(e,t){return e.__v.__b-t.__v.__b}),c=[],e.some(function(e){var t,n,r,o,l,i;e.__d&&(l=(o=(t=e).__v).__e,(i=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,U(i,o,r,t.__n,void 0!==i.ownerSVGElement,null!=o.__h?[l]:null,n,null==l?S(o):l,o.__h),H(n,o),o.__e!=l&&E(o)))})}function C(e,t,n,r,o,l,i,u,c,a){var s,h,p,m,v,$,b,E=r&&r.__k||d,N=E.length;for(n.__k=[],s=0;s<t.length;s++)if(null!=(m=n.__k[s]=null==(m=t[s])||"boolean"==typeof m?null:"string"==typeof m||"number"==typeof m||"bigint"==typeof m?y(null,m,null,null,m):Array.isArray(m)?y(g,{children:m},null,null,null):m.__b>0?y(m.type,m.props,m.key,null,m.__v):m)){if(m.__=n,m.__b=n.__b+1,null===(p=E[s])||p&&m.key==p.key&&m.type===p.type)E[s]=void 0;else for(h=0;h<N;h++){if((p=E[h])&&m.key==p.key&&m.type===p.type){E[h]=void 0;break}p=null}U(e,m,p=p||f,o,l,i,u,c,a),v=m.__e,(h=m.ref)&&p.ref!=h&&(b||(b=[]),p.ref&&b.push(p.ref,null,m),b.push(h,m.__c||v,m)),null!=v?(null==$&&($=v),"function"==typeof m.type&&m.__k===p.__k?m.__d=c=_(m,c,e):c=x(e,m,p,E,v,c),"function"==typeof n.type&&(n.__d=c)):c&&p.__e==c&&c.parentNode!=e&&(c=S(p))}for(n.__e=$,s=N;s--;)null!=E[s]&&("function"==typeof n.type&&null!=E[s].__e&&E[s].__e==n.__d&&(n.__d=S(r,s+1)),I(E[s],E[s]));if(b)for(s=0;s<b.length;s++)M(b[s],b[++s],b[++s])}function _(e,t,n){for(var r,o=e.__k,l=0;o&&l<o.length;l++)(r=o[l])&&(r.__=e,t="function"==typeof r.type?_(r,t,n):x(n,r,r,o,r.__e,t));return t}function P(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){P(e,t)}):t.push(e)),t}function x(e,t,n,r,o,l){var i,u,c;if(void 0!==t.__d)i=t.__d,t.__d=void 0;else if(null==n||o!=l||null==o.parentNode)n:if(null==l||l.parentNode!==e)e.appendChild(o),i=null;else{for(u=l,c=0;(u=u.nextSibling)&&c<r.length;c+=2)if(u==o)break n;e.insertBefore(o,l),i=l}return void 0!==i?i:o.nextSibling}function w(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||h.test(t)?n:n+"px"}function D(e,t,n,r,o){var l;n:if("style"===t){if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n