mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
8 lines
78 KiB
JavaScript
8 lines
78 KiB
JavaScript
|
(()=>{var Y=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(l,b)=>(typeof require!="undefined"?require:l)[b]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});(function(){function e(l,b,t){function r(c,d){if(!b[c]){if(!l[c]){var v=typeof Y=="function"&&Y;if(!d&&v)return v(c,!0);if(n)return n(c,!0);var f=new Error("Cannot find module '"+c+"'");throw f.code="MODULE_NOT_FOUND",f}var u=b[c]={exports:{}};l[c][0].call(u.exports,function(p){var y=l[c][1][p];return r(y||p)},u,u.exports,e,l,b,t)}return b[c].exports}for(var n=typeof Y=="function"&&Y,s=0;s<t.length;s++)r(t[s]);return r}return e})()({1:[function(e,l,b){l.exports=function(t){if(typeof t!="function")throw TypeError(t+" is not a function!");return t}},{}],2:[function(e,l,b){var t=e("./_wks")("unscopables"),r=Array.prototype;r[t]==null&&e("./_hide")(r,t,{}),l.exports=function(n){r[t][n]=!0}},{"./_hide":27,"./_wks":81}],3:[function(e,l,b){"use strict";var t=e("./_string-at")(!0);l.exports=function(r,n,s){return n+(s?t(r,n).length:1)}},{"./_string-at":68}],4:[function(e,l,b){var t=e("./_is-object");l.exports=function(r){if(!t(r))throw TypeError(r+" is not an object!");return r}},{"./_is-object":34}],5:[function(e,l,b){var t=e("./_to-iobject"),r=e("./_to-length"),n=e("./_to-absolute-index");l.exports=function(s){return function(c,d,v){var f=t(c),u=r(f.length),p=n(v,u),y;if(s&&d!=d){for(;u>p;)if(y=f[p++],y!=y)return!0}else for(;u>p;p++)if((s||p in f)&&f[p]===d)return s||p||0;return!s&&-1}}},{"./_to-absolute-index":72,"./_to-iobject":74,"./_to-length":75}],6:[function(e,l,b){var t=e("./_ctx"),r=e("./_iobject"),n=e("./_to-object"),s=e("./_to-length"),c=e("./_array-species-create");l.exports=function(d,v){var f=d==1,u=d==2,p=d==3,y=d==4,R=d==6,P=d==5||R,O=v||c;return function(_,j,h){for(var x=n(_),S=r(x),I=t(j,h,3),g=s(S.length),o=0,i=f?O(_,g):u?O(_,0):void 0,a,m;g>o;o++)if((P||o in S)&&(a=S[o],m=I(a,o,x),d)){if(f)i[o]=m;else if(m)switch(d){case 3:return!0;case 5:return a;case 6:return o;case 2:i.push(a)}else if(y)return!1}return R?-1:p||y?y:i}}},{"./_array-species-create":8,"./_ctx":13,"./_iobject":31,"./_to-length":75,"./_to-object":76}],7:[function(e,l,b){var t=e("./_is-object"),r=e("./_is-array"),n=e("./_wks")("species");l.exports=function(s){var c;return r(s)&&(c=s.constructor,typeof c=="function"&&(c===Array||r(c.prototype))&&(c=void 0),t(c)&&(c=c[n],c===null&&(c=void 0))),c===void 0?Array:c}},{"./_is-array":33,"./_is-object":34,"./_wks":81}],8:[function(e,l,b){var t=e("./_array-species-constructor");l.exports=function(r,n){return new(t(r))(n)}},{"./_array-species-constructor":7}],9:[function(e,l,b){var t=e("./_cof"),r=e("./_wks")("toStringTag"),n=t(function(){return arguments}())=="Arguments",s=function(c,d){try{return c[d]}catch(v){}};l.exports=function(c){var d,v,f;return c===void 0?"Undefined":c===null?"Null":typeof(v=s(d=Object(c),r))=="string"?v:n?t(d):(f=t(d))=="Object"&&typeof d.callee=="function"?"Arguments":f}},{"./_cof":10,"./_wks":81}],10:[function(e,l,b){var t={}.toString;l.exports=function(r){return t.call(r).slice(8,-1)}},{}],11:[function(e,l,b){var t=l.exports={version:"2.6.12"};typeof __e=="number"&&(__e=t)},{}],12:[function(e,l,b){"use strict";var t=e("./_object-dp"),r=e("./_property-desc");l.exports=function(n,s,c){s in n?t.f(n,s,r(0,c)):n[s]=c}},{"./_object-dp":45,"./_property-desc":57}],13:[function(e,l,b){var t=e("./_a-function");l.exports=function(r,n,s){if(t(r),n===void 0)return r;switch(s){case 1:return function(c){return r.call(n,c)};case 2:return function(c,d){return r.call(n,c,d)};case 3:return function(c,d,v){return r.call(n,c,d,v)}}return function(){return r.apply(n,arguments)}}},{"./_a-function":1}],14:[function(e,l,b){l.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},{}],15:[function(e,l,b){l.exports=!e("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":21}],16:[function(e,l,b){var t=e("./_is-object"),r=e("./_global"
|
||
|
\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},{}],72:[function(e,l,b){var t=e("./_to-integer"),r=Math.max,n=Math.min;l.exports=function(s,c){return s=t(s),s<0?r(s+c,0):n(s,c)}},{"./_to-integer":73}],73:[function(e,l,b){var t=Math.ceil,r=Math.floor;l.exports=function(n){return isNaN(n=+n)?0:(n>0?r:t)(n)}},{}],74:[function(e,l,b){var t=e("./_iobject"),r=e("./_defined");l.exports=function(n){return t(r(n))}},{"./_defined":14,"./_iobject":31}],75:[function(e,l,b){var t=e("./_to-integer"),r=Math.min;l.exports=function(n){return n>0?r(t(n),9007199254740991):0}},{"./_to-integer":73}],76:[function(e,l,b){var t=e("./_defined");l.exports=function(r){return Object(t(r))}},{"./_defined":14}],77:[function(e,l,b){var t=e("./_is-object");l.exports=function(r,n){if(!t(r))return r;var s,c;if(n&&typeof(s=r.toString)=="function"&&!t(c=s.call(r))||typeof(s=r.valueOf)=="function"&&!t(c=s.call(r))||!n&&typeof(s=r.toString)=="function"&&!t(c=s.call(r)))return c;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":34}],78:[function(e,l,b){var t=0,r=Math.random();l.exports=function(n){return"Symbol(".concat(n===void 0?"":n,")_",(++t+r).toString(36))}},{}],79:[function(e,l,b){var t=e("./_global"),r=e("./_core"),n=e("./_library"),s=e("./_wks-ext"),c=e("./_object-dp").f;l.exports=function(d){var v=r.Symbol||(r.Symbol=n?{}:t.Symbol||{});d.charAt(0)!="_"&&!(d in v)&&c(v,d,{value:s.f(d)})}},{"./_core":11,"./_global":25,"./_library":42,"./_object-dp":45,"./_wks-ext":80}],80:[function(e,l,b){b.f=e("./_wks")},{"./_wks":81}],81:[function(e,l,b){var t=e("./_shared")("wks"),r=e("./_uid"),n=e("./_global").Symbol,s=typeof n=="function",c=l.exports=function(d){return t[d]||(t[d]=s&&n[d]||(s?n:r)("Symbol."+d))};c.store=t},{"./_global":25,"./_shared":65,"./_uid":78}],82:[function(e,l,b){var t=e("./_classof"),r=e("./_wks")("iterator"),n=e("./_iterators");l.exports=e("./_core").getIteratorMethod=function(s){if(s!=null)return s[r]||s["@@iterator"]||n[t(s)]}},{"./_classof":9,"./_core":11,"./_iterators":41,"./_wks":81}],83:[function(e,l,b){"use strict";var t=e("./_export"),r=e("./_array-methods")(2);t(t.P+t.F*!e("./_strict-method")([].filter,!0),"Array",{filter:function(s){return r(this,s,arguments[1])}})},{"./_array-methods":6,"./_export":19,"./_strict-method":67}],84:[function(e,l,b){"use strict";var t=e("./_ctx"),r=e("./_export"),n=e("./_to-object"),s=e("./_iter-call"),c=e("./_is-array-iter"),d=e("./_to-length"),v=e("./_create-property"),f=e("./core.get-iterator-method");r(r.S+r.F*!e("./_iter-detect")(function(u){Array.from(u)}),"Array",{from:function(p){var y=n(p),R=typeof this=="function"?this:Array,P=arguments.length,O=P>1?arguments[1]:void 0,_=O!==void 0,j=0,h=f(y),x,S,I,g;if(_&&(O=t(O,P>2?arguments[2]:void 0,2)),h!=null&&!(R==Array&&c(h)))for(g=h.call(y),S=new R;!(I=g.next()).done;j++)v(S,j,_?s(g,O,[I.value,j],!0):I.value);else for(x=d(y.length),S=new R(x);x>j;j++)v(S,j,_?O(y[j],j):y[j]);return S.length=j,S}})},{"./_create-property":12,"./_ctx":13,"./_export":19,"./_is-array-iter":32,"./_iter-call":36,"./_iter-detect":39,"./_to-length":75,"./_to-object":76,"./core.get-iterator-method":82}],85:[function(e,l,b){"use strict";var t=e("./_add-to-unscopables"),r=e("./_iter-step"),n=e("./_iterators"),s=e("./_to-iobject");l.exports=e("./_iter-define")(Array,"Array",function(c,d){this._t=s(c),this._i=0,this._k=d},function(){var c=this._t,d=this._k,v=this._i++;return!c||v>=c.length?(this._t=void 0,r(1)):d=="keys"?r(0,v):d=="values"?r(0,c[v]):r(0,[v,c[v]])},"values"),n.Arguments=n.Array,t("keys"),t("values"),t("entries")},{"./_add-to-unscopables":2,"./_iter-define":38,"./_iter-step":40,"./_iterators":41,"./_to-iobject":74}],86:[function(e,l,b){"use strict";var t=e("./_export"),r=e("./_array-methods")(1);t(t.P+t.F*!e("./_strict-method")([].map,!0),"Array",{map:function(s){return r(this,s,arguments[1])}})},{"./_array-methods":6,"./_export":19,"./_strict-method":67}],87:[function(e,l,b){"use strict";var t=e("./_export"),r=e("./_html"),n=e("./_cof"),s=e("./_to-absolute
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,E=!1,k;return{s:function(){i=i.call(g)},n:function(){var L=i.next();return w=L.done,L},e:function(L){E=!0,k=L},f:function(){try{!w&&i.return!=null&&i.return()}finally{if(E)throw k}}}}function n(g,o){if(g){if(typeof g=="string")return s(g,o);var i=Object.prototype.toString.call(g).slice(8,-1);if(i==="Object"&&g.constructor&&(i=g.constructor.name),i==="Map"||i==="Set")return Array.from(g);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return s(g,o)}}function s(g,o){(o==null||o>g.length)&&(o=g.length);for(var i=0,a=new Array(o);i<o;i++)a[i]=g[i];return a}function c(g,o){if(!(g instanceof o))throw new TypeError("Cannot call a class as a function")}function d(g,o){for(var i=0;i<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(g,f(a.key),a)}}function v(g,o,i){return o&&d(g.prototype,o),i&&d(g,i),Object.defineProperty(g,"prototype",{writable:!1}),g}function f(g){var o=u(g,"string");return t(o)==="symbol"?o:String(o)}function u(g,o){if(t(g)!=="object"||g===null)return g;var i=g[Symbol.toPrimitive];if(i!==void 0){var a=i.call(g,o||"default");if(t(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(g)}var p=e("./connector"),y=p.Connector,R=e("./timer"),P=R.Timer,O=e("./options"),_=O.Options,j=e("./reloader"),h=j.Reloader,x=e("./protocol"),S=x.ProtocolError,I=function(){function g(o){var i=this;if(c(this,g),this.window=o,this.listeners={},this.plugins=[],this.pluginIdentifiers={},this.console=this.window.console&&this.window.console.log&&this.window.console.error?this.window.location.href.match(/LR-verbose/)?this.window.console:{log:function(){},error:this.window.console.error.bind(this.window.console)}:{log:function(){},error:function(){}},!(this.WebSocket=this.window.WebSocket||this.window.MozWebSocket)){this.console.error("LiveReload disabled because the browser does not seem to support web sockets");return}if("LiveReloadOptions"in o){this.options=new _;for(var a=0,m=Object.keys(o.LiveReloadOptions||{});a<m.length;a++){var w=m[a],E=o.LiveReloadOptions[w];this.options.set(w,E)}}else if(this.options=_.extract(this.window.document),!this.options){this.console.error("LiveReload disabled because it could not find its own <SCRIPT> tag");return}this.reloader=new h(this.window,this.console,P),this.connector=new y(this.options,this.WebSocket,P,{connecting:function(){},socketConnected:function(){},connected:function(T){typeof i.listeners.connect=="function"&&i.listeners.connect();var L=i.options.host,A=i.options.port?":".concat(i.options.port):"";return i.log("LiveReload is connected to ".concat(L).concat(A," (protocol v").concat(T,").")),i.analyze()},error:function(T){if(T instanceof S){if(typeof console!="undefined"&&console!==null)return console.log("".concat(T.message,"."))}else if(typeof console!="undefined"&&console!==null)return console.log("LiveReload internal error: ".concat(T.message))},disconnected:function(T,L){typeof i.listeners.disconnect=="function"&&i.listeners.disconnect();var A=i.options.host,M=i.options.port?":".concat(i.options.port):"";switch(T){case"cannot-connect":return i.log("LiveReload cannot connect to ".concat(A).concat(M,", will retry in ").concat(L," sec."));case"broken":return i.log("LiveReload disconnected from ".concat(A).concat(M,", reconnecting in ").concat(L," sec."));case"handshake-timeout":return i.log("LiveReload cannot connect to ".concat(A).concat(M," (handshake timeout), will retry in ").concat(L," sec."));case"handshake-failed":return i.log("LiveReload cannot connect to ".concat(A).concat(M," (handshake failed), will retry in ").concat(L," sec."));case"manual":case"error":default:return i.log("LiveReload disconnected from ".concat(A).concat(M," (").concat(T,"), reconnecting in ").concat(L," sec."))}},message:function(T){switch(T.command){case"reload":return i.performReload(T);case"alert":return i.performAlert(T)}}}),this.initialized=
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var I=!0,g=!1,o;return{s:function(){h=h.call(_)},n:function(){var a=h.next();return I=a.done,a},e:function(a){g=!0,o=a},f:function(){try{!I&&h.return!=null&&h.return()}finally{if(g)throw o}}}}function r(_,j){return v(_)||d(_,j)||s(_,j)||n()}function n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(_,j){if(_){if(typeof _=="string")return c(_,j);var h=Object.prototype.toString.call(_).slice(8,-1);if(h==="Object"&&_.constructor&&(h=_.constructor.name),h==="Map"||h==="Set")return Array.from(_);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return c(_,j)}}function c(_,j){(j==null||j>_.length)&&(j=_.length);for(var h=0,x=new Array(j);h<j;h++)x[h]=_[h];return x}function d(_,j){var h=_==null?null:typeof Symbol!="undefined"&&_[Symbol.iterator]||_["@@iterator"];if(h!=null){var x,S,I,g,o=[],i=!0,a=!1;try{if(I=(h=h.call(_)).next,j===0){if(Object(h)!==h)return;i=!1}else for(;!(i=(x=I.call(h)).done)&&(o.push(x.value),o.length!==j);i=!0);}catch(m){a=!0,S=m}finally{try{if(!i&&h.return!=null&&(g=h.return(),Object(g)!==g))return}finally{if(a)throw S}}return o}}function v(_){if(Array.isArray(_))return _}function f(_){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},f(_)}function u(_,j){if(!(_ instanceof j))throw new TypeError("Cannot call a class as a function")}function p(_,j){for(var h=0;h<j.length;h++){var x=j[h];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,R(x.key),x)}}function y(_,j,h){return j&&p(_.prototype,j),h&&p(_,h),Object.defineProperty(_,"prototype",{writable:!1}),_}function R(_){var j=P(_,"string");return f(j)==="symbol"?j:String(j)}function P(_,j){if(f(_)!=="object"||_===null)return _;var h=_[Symbol.toPrimitive];if(h!==void 0){var x=h.call(_,j||"default");if(f(x)!=="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(_)}var O=function(){function _(){u(this,_),this.https=!1,this.host=null;var j=35729;Object.defineProperty(this,"port",{get:function(){return j},set:function(S){j=S?isNaN(S)?S:+S:""}}),this.snipver=null,this.ext=null,this.extver=null,this.mindelay=1e3,this.maxdelay=6e4,this.handshake_timeout=5e3;var h=[];Object.defineProperty(this,"pluginOrder",{get:function(){return h},set:function(S){h.push.apply(h,S.split(/[,;]/))}})}return y(_,[{key:"set",value:function(h,x){typeof x!="undefined"&&(isNaN(+x)||(x=+x),this[h]=x)}}]),_}();O.extract=function(_){for(var j=0,h=Array.from(_.getElementsByTagName("script"));j<h.length;j++){var x=h[j],S,I,g=x.src,o=x.getAttribute("src"),i=/^([^:]+:\/\/([^/:]+|\[[0-9a-f:]+\])(?::(\d+))?\/|\/\/|\/)?([^/].*\/)?z?livereload\.js(?:\?(.*))?$/,a=/^(?:(?:([^:/]+)?:?)\/{0,2})([^:]+|\[[0-9a-f:]+\])(?::(\d+))?/;if((S=g.match(i))&&(I=o.match(a))){var m=S,w=r(m,6),E=w[2],k=w[3],T=w[5],L=I,A=r(L,4),M=A[3],N=new O;N.https=x.src.indexOf("https")===0,N.host=E;var F=parseInt(k||M,10)||"";if(N.port=F||N.port,T){var U=t(T.split("&")),G;try{for(U.s();!(G=U.n()).done;){var z=G.value,H;(H=z.split("=")).length>1&&N.set(H[0].replace(/-/g,"_"),H.slice(1).join("="))}}catch(K){U.e(K)}finally{U.f()}}return N.port=N.port||F,N}}return null},b.Options=O},{"core-js/modules/es6.array.from.js":84,"core-js/modules/es6.array.iterator.js":85,"core-js/modules/es6.array.slice.js":87,"core-js/modules/es6.number.constructor.js":88,"core-js/modules/es6.object.to-string.js":91,"core-js/modules/es6.regexp.match.js":94,"core-js/modules/es6.regexp.replace.js":95,"core-js/modules/es6.regexp.split.js":96,"core-js/modules/es6.string.iterator.js":98,"core-js/modules/es6.symbol.js":99,"core-js/modules/web.dom.iterable.js":102}],108:[function(e,l,b){"use strict";e("core-js/modules/es6.number.constructor.js"),e("core-js/modules/es6.array.slice.js");function t(h){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},t(h)}e("core-js/modules/es6.regexp.match.js"),e("core-js/modules/es6.regexp.constructor.js"),e("core-js/modules/es
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(h,x){if(h){if(typeof h=="string")return c(h,x);var S=Object.prototype.toString.call(h).slice(8,-1);if(S==="Object"&&h.constructor&&(S=h.constructor.name),S==="Map"||S==="Set")return Array.from(h);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return c(h,x)}}function c(h,x){(x==null||x>h.length)&&(x=h.length);for(var S=0,I=new Array(x);S<x;S++)I[S]=h[S];return I}function d(h,x){var S=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(S!=null){var I,g,o,i,a=[],m=!0,w=!1;try{if(o=(S=S.call(h)).next,x===0){if(Object(S)!==S)return;m=!1}else for(;!(m=(I=o.call(S)).done)&&(a.push(I.value),a.length!==x);m=!0);}catch(E){w=!0,g=E}finally{try{if(!m&&S.return!=null&&(i=S.return(),Object(i)!==i))return}finally{if(w)throw g}}return a}}function v(h){if(Array.isArray(h))return h}function f(h,x){for(var S=0;S<x.length;S++){var I=x[S];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(h,p(I.key),I)}}function u(h,x,S){return x&&f(h.prototype,x),S&&f(h,S),Object.defineProperty(h,"prototype",{writable:!1}),h}function p(h){var x=y(h,"string");return t(x)==="symbol"?x:String(x)}function y(h,x){if(t(h)!=="object"||h===null)return h;var S=h[Symbol.toPrimitive];if(S!==void 0){var I=S.call(h,x||"default");if(t(I)!=="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(x==="string"?String:Number)(h)}function R(h,x){if(!(h instanceof x))throw new TypeError("Cannot call a class as a function")}var P,O;b.PROTOCOL_6=P="http://livereload.com/protocols/official-6",b.PROTOCOL_7=O="http://livereload.com/protocols/official-7";var _=u(function h(x,S){R(this,h),this.message="LiveReload protocol error (".concat(x,') after receiving data: "').concat(S,'".')}),j=function(){function h(x){R(this,h),this.handlers=x,this.reset()}return u(h,[{key:"reset",value:function(){this.protocol=null}},{key:"process",value:function(S){try{var I;if(!this.protocol){if(S.match(new RegExp("^!!ver:([\\d.]+)$")))this.protocol=6;else if(I=this._parseMessage(S,["hello"]))if(I.protocols.length)if(Array.from(I.protocols).includes(O))this.protocol=7;else if(Array.from(I.protocols).includes(P))this.protocol=6;else throw new _("no supported protocols found");else throw new _("no protocols specified in handshake message");return this.handlers.connected(this.protocol)}if(this.protocol===6){if(I=JSON.parse(S),!I.length)throw new _("protocol 6 messages must be arrays");var g=Array.from(I),o=r(g,2),i=o[0],a=o[1];if(i!=="refresh")throw new _("unknown protocol 6 command");return this.handlers.message({command:"reload",path:a.path,liveCSS:a.apply_css_live!=null?a.apply_css_live:!0})}return I=this._parseMessage(S,["reload","alert"]),this.handlers.message(I)}catch(m){if(m instanceof _)return this.handlers.error(m);throw m}}},{key:"_parseMessage",value:function(S,I){var g;try{g=JSON.parse(S)}catch(o){throw new _("unparsable JSON",S)}if(!g.command)throw new _('missing "command" key',S);if(!I.includes(g.command))throw new _("invalid command '".concat(g.command,"', only valid commands are: ").concat(I.join(", "),")"),S);return g}}]),h}();b.ProtocolError=_,b.Parser=j},{"core-js/modules/es6.array.from.js":84,"core-js/modules/es6.array.iterator.js":85,"core-js/modules/es6.array.slice.js":87,"core-js/modules/es6.number.constructor.js":88,"core-js/modules/es6.object.to-string.js":91,"core-js/modules/es6.regexp.constructor.js":92,"core-js/modules/es6.regexp.match.js":94,"core-js/modules/es6.string.includes.js":97,"core-js/modules/es6.string.iterator.js":98,"core-js/modules/es6.symbol.js":99,"core-js/modules/es7.array.includes.js":100,"core-js/modules/web.dom.iterable.js":102}],109:[function(e,l,b){"use strict";e("core-js/modules/es6.number.constructor.js"),e("core-js/modules/es6.object.keys.js"),e("core-js/modules/es6.object.get-own-property-descriptor.js"),e("core-js/modules/es7.object.get-own-property-descriptors.js");function t(o){"@babel/helpers - typeof";return t=typeof Sy
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,k=!1,T;return{s:function(){a=a.call(o)},n:function(){var A=a.next();return E=A.done,A},e:function(A){k=!0,T=A},f:function(){try{!E&&a.return!=null&&a.return()}finally{if(k)throw T}}}}function y(o,i){if(o){if(typeof o=="string")return R(o,i);var a=Object.prototype.toString.call(o).slice(8,-1);if(a==="Object"&&o.constructor&&(a=o.constructor.name),a==="Map"||a==="Set")return Array.from(o);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return R(o,i)}}function R(o,i){(i==null||i>o.length)&&(i=o.length);for(var a=0,m=new Array(i);a<i;a++)m[a]=o[a];return m}function P(o){var i="",a="",m=o.indexOf("#");m>=0&&(i=o.slice(m),o=o.slice(0,m));var w=o.indexOf("??");return w>=0?w+1!==o.lastIndexOf("?")&&(m=o.lastIndexOf("?")):m=o.indexOf("?"),m>=0&&(a=o.slice(m),o=o.slice(0,m)),{url:o,params:a,hash:i}}function O(o){if(!o)return"";var i,a=P(o);return o=a.url,o.indexOf("file://")===0?i=o.replace(new RegExp("^file://(localhost)?"),""):i=o.replace(new RegExp("^([^:]+:)?//([^:/]+)(:\\d*)?/"),"/"),decodeURIComponent(i)}function _(o,i){if(o=o.replace(/^\/+/,"").toLowerCase(),i=i.replace(/^\/+/,"").toLowerCase(),o===i)return 1e4;for(var a=o.split(/\/|\\/).reverse(),m=i.split(/\/|\\/).reverse(),w=Math.min(a.length,m.length),E=0;E<w&&a[E]===m[E];)++E;return E}function j(o,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(L){return L},m,w={score:0},E=p(i),k;try{for(E.s();!(k=E.n()).done;){var T=k.value;m=_(o,a(T)),m>w.score&&(w={object:T,score:m})}}catch(L){E.e(L)}finally{E.f()}return w.score===0?null:w}function h(o,i){return _(o,i)>0}var x=[{selector:"background",styleNames:["backgroundImage"]},{selector:"border",styleNames:["borderImage","webkitBorderImage","MozBorderImage"]}],S={stylesheetReloadTimeout:15e3},I=/\.(jpe?g|png|gif|svg)$/i,g=function(){function o(i,a,m){c(this,o),this.window=i,this.console=a,this.Timer=m,this.document=this.window.document,this.importCacheWaitPeriod=200,this.plugins=[]}return v(o,[{key:"addPlugin",value:function(a){return this.plugins.push(a)}},{key:"analyze",value:function(a){}},{key:"reload",value:function(a){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=n(n({},S),m),this.options.pluginOrder&&this.options.pluginOrder.length){this.runPluginsByOrder(a,m);return}for(var w=0,E=Array.from(this.plugins);w<E.length;w++){var k=E[w];if(k.reload&&k.reload(a,m))return}if(!(m.liveCSS&&a.match(/\.css(?:\.map)?$/i)&&this.reloadStylesheet(a))){if(m.liveImg&&a.match(I)){this.reloadImages(a);return}if(m.isChromeExtension){this.reloadChromeExtension();return}return this.reloadPage()}}},{key:"runPluginsByOrder",value:function(a,m){var w=this;m.pluginOrder.some(function(E){return E==="css"&&m.liveCSS&&a.match(/\.css(?:\.map)?$/i)&&w.reloadStylesheet(a)?!0:E==="img"&&m.liveImg&&a.match(I)?(w.reloadImages(a),!0):E==="extension"&&m.isChromeExtension?(w.reloadChromeExtension(),!0):E==="others"?(w.reloadPage(),!0):E==="external"?w.plugins.some(function(k){return k.reload&&k.reload(a,m)}):w.plugins.filter(function(k){return k.constructor.identifier===E}).some(function(k){return k.reload&&k.reload(a,m)})})}},{key:"reloadPage",value:function(){return this.window.document.location.reload()}},{key:"reloadChromeExtension",value:function(){return this.window.chrome.runtime.reload()}},{key:"reloadImages",value:function(a){for(var m=this,w,E=this.generateUniqueString(),k=0,T=Array.from(this.document.images);k<T.length;k++)w=T[k],h(a,O(w.src))&&(w.src=this.generateCacheBustUrl(w.src,E));if(this.document.querySelectorAll)for(var L=0,A=x;L<A.length;L++)for(var M=A[L],N=M.selector,F=M.styleNames,U=0,G=Array.from(this.document.querySelectorAll("[style*=".concat(N,"]")));U<G.length;U++)w=G[U],this.reloadStyleImages(w.style,F,a,E);if(this.document.styleSheets)return Array.from(this.document.styleSheets).map(function(z){return m.reloadStylesheetImages(z,a,E)})}},{key:"reloadStylesheetImages",value:function(a,m,w){var E;try{E=(a||{}).cssRules}catch(F){}if(E)for(var k=0,T=Array.from
|