securityos/node_modules/eruda/eruda.js

3 lines
489 KiB
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
/*! eruda v2.11.3 https://eruda.liriliri.io/ */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.eruda=t():e.eruda=t()}(self,(function(){return function(){var __webpack_modules__={422:function(e,t,n){"use strict";n.d(t,{Z:function(){return G}});var o=n(5671),r=n(3144),i=n(9340),a=n(2963),s=n(1120),c=n(2461),l=n.n(c),u=n(3990),d=n.n(u),f=n(6768),h=n.n(f),p=n(4331),v=n.n(p),m=n(5610),g=n.n(m),y=n(7483),b=n.n(y),w=n(6341),x=n.n(w),_=n(3875),A=n.n(_),k=n(6954),C=n.n(k);n(9585);function S(e){var t="luna-".concat(e,"-");function n(e){return l()(v()(e).split(/\s+/),(function(e){return x()(e,t)?e:e.replace(/[\w-]+/,(function(e){return"".concat(t).concat(e)}))})).join(" ")}return function(e){if(/<[^>]*>/g.test(e))try{var t=b().parse(e);return E(t,(function(e){e.attrs&&e.attrs.class&&(e.attrs.class=n(e.attrs.class))})),b().stringify(t)}catch(t){return n(e)}return n(e)}}function E(e,t){for(var n=0,o=e.length;n<o;n++){var r=e[n];t(r),r.content&&E(r.content,t)}}g();function O(){var e=C()();return"os x"===e?"mac":e}var T=n(1443),N=n.n(T),j=n(1512),M=n.n(j),R=n(3783),z=n.n(R),I=n(6329),Z=n.n(I),D=n(4193),P=n.n(D),F=n(5852),B=n.n(F);function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=(0,s.Z)(e);if(t){var r=(0,s.Z)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,a.Z)(this,n)}}var H=function(e){(0,i.Z)(n,e);var t=L(n);function n(e,r){var i,a=r.compName,s=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).theme,c=void 0===s?"light":s;return(0,o.Z)(this,n),(i=t.call(this)).subComponents=[],i.compName=a,i.c=S(a),i.options={},i.container=e,i.$container=M()(e),i.$container.addClass(["luna-".concat(a),i.c("platform-".concat(O()))]),i.on("optionChange",(function(e,t,n){var o=i.c;"theme"===e&&(i.$container.rmClass(o("theme-".concat(n))).addClass(o("theme-".concat(t))),z()(i.subComponents,(function(e){return e.setOption("theme",t)})))})),i.setOption("theme",c),i}return(0,r.Z)(n,[{key:"destroy",value:function(){this.destroySubComponents();var e=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(e("platform-".concat(O()))).rmClass(e("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(e,t){var n=this,o=this.options,r={};"string"==typeof e?r[e]=t:r=e,z()(r,(function(e,t){var r=o[t];o[t]=e,n.emit("optionChange",t,e,r)}))}},{key:"getOption",value:function(e){return this.options[e]}},{key:"addSubComponent",value:function(e){e.setOption("theme",this.options.theme),this.subComponents.push(e)}},{key:"removeSubComponent",value:function(e){B()(this.subComponents,(function(t){return t===e}))}},{key:"destroySubComponents",value:function(){z()(this.subComponents,(function(e){return e.destroy()})),this.subComponents=[]}},{key:"initOptions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};P()(e,t),Z()(this.options,e)}},{key:"find",value:function(e){return this.$container.find(this.c(e))}}]),n}(N());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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=(0,s.Z)(e);if(t){var r=(0,s.Z)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,a.Z)(this,n)}}e=n.hmd(e);var G=function(e){(0,i.Z)(n,e);var t=$(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.Z)(this,n),(r=t.call(this,e,{compName:"box-model"})).initOptions(i),r.options.element&&r.render(),r.bindEvent(),r}return(0,r.Z)(n,[{key:"bindEvent",value:function(){var e=this;this.on("o
//# sourceMappingURL=eruda.js.map