docker-registry-ui/dist/docker-registry-ui.js

21 lines
128 KiB
JavaScript
Raw Normal View History

/*
* Copyright (C) 2016-2021 Jones Magloire @Joxit
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @license AGPL
*/
2022-04-18 14:57:13 +02:00
!function(){"use strict";function e(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 t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(e){return(n="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 r(){r=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,a){var i=new RegExp(e,r);return t.set(i,a||t.get(e)),p(i,n.prototype)}function a(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){return t[n]=e[r[n]],t}),Object.create(null))}return l(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=a(n,this)),n},n.prototype[Symbol.replace]=function(n,r){if("string"==typeof r){var i=t.get(this);return e[Symbol.replace].call(this,n,r.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+i[t]})))}if("function"==typeof r){var o=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(a(e,o)),r.apply(this,e)}))}return e[Symbol.replace].call(this,n,r)},r.apply(this,arguments)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(){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}}function d(e,t,n){return(d=c()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&p(a,n.prototype),a}).apply(null,arguments)}function m(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e,t){return v(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return i}(e,t)||x(e,t)||T()}function g(e){return v(e)||y(e)||x(e)||T()}function f(e){return function(e){if(Array.isArray(e))return b(e)}(e)||y(e)||x(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 v(e){if(Array.isArray(e))retur
/* Riot v6.1.2, @license MIT */function N(e){return e.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}))}function I(e,t){e.firstChild&&(t.appendChild(e.firstChild),I(e,t))}function R(e){k(e.childNodes)}function k(e){Array.from(e).forEach(U)}var U=function(e){return e&&e.parentNode&&e.parentNode.removeChild(e)},O=function(e,t){return t&&t.parentNode&&t.parentNode.insertBefore(e,t)},B=new Map,S=Symbol("riot-component"),L=new Set,D="is",j="mount",_="update",M="unmount",P="shouldUpdate",G="onBeforeMount",V="onMounted",$="onBeforeUpdate",z="onUpdated",H="onBeforeUnmount",F="onUnmounted",q="props",K="state",W="slots",X="root",Y=Symbol("pure"),Q=Symbol("is_updating"),J=Symbol("parent"),Z=Symbol("attributes"),ee=Symbol("template"),te=Object.freeze({__proto__:null,COMPONENTS_IMPLEMENTATION_MAP:B,DOM_COMPONENT_INSTANCE_PROPERTY:S,PLUGINS_SET:L,IS_DIRECTIVE:D,VALUE_ATTRIBUTE:"value",MOUNT_METHOD_KEY:j,UPDATE_METHOD_KEY:_,UNMOUNT_METHOD_KEY:M,SHOULD_UPDATE_KEY:P,ON_BEFORE_MOUNT_KEY:G,ON_MOUNTED_KEY:V,ON_BEFORE_UPDATE_KEY:$,ON_UPDATED_KEY:z,ON_BEFORE_UNMOUNT_KEY:H,ON_UNMOUNTED_KEY:F,PROPS_KEY:q,STATE_KEY:K,SLOTS_KEY:W,ROOT_KEY:X,IS_PURE_SYMBOL:Y,IS_COMPONENT_UPDATING:Q,PARENT_KEY_SYMBOL:J,ATTRIBUTES_KEY_SYMBOL:Z,TEMPLATE_KEY_SYMBOL:ee}),ne={EACH:0,IF:1,SIMPLE:2,TAG:3,SLOT:4},re={ATTRIBUTE:0,EVENT:1,TEXT:2,VALUE:3},ae=Symbol("head"),ie=Symbol("tail");function oe(e){var t=e.dom.cloneNode(!0),n=function(){var e=document.createTextNode(""),t=document.createTextNode("");return e[ae]=!0,t[ie]=!0,{head:e,tail:t}}(),r=n.head,a=n.tail;return{avoidDOMInjection:!0,fragment:t,head:r,tail:a,children:[r].concat(f(Array.from(t.childNodes)),[a])}}function se(e,t,n,r){return void 0===r&&(r={}),Object.defineProperty(e,t,Object.assign({value:n,enumerable:!1,writable:!1,configurable:!0},r)),e}function le(e,t,n){return Object.entries(t).forEach((function(t){var r=h(t,2),a=r[0],i=r[1];se(e,a,i,n)})),e}function ue(e,t){return Object.entries(t).forEach((function(t){var n=h(t,2),r=n[0],a=n[1];e[r]||(e[r]=a)})),e}function pe(e,t){return n(e)===t}function ce(e){var t=e.ownerSVGElement;return!!t||null===t}function de(e){return"template"===e.tagName.toLowerCase()}function me(e){return pe(e,"function")}function he(e){return!ge(e)&&e.constructor===Object}function ge(e){return null==e}var fe=Symbol("unmount"),ve={nodes:[],mount:function(e,t){return this.update(e,t)},update:function(e,t){var n=this.placeholder,r=this.nodes,a=this.childrenMap,i=e===fe?null:this.evaluate(e),o=function(e,t,n,r){var a=r.condition,i=r.template,o=r.childrenMap,s=r.itemName,l=r.getKey,u=r.indexName,p=r.root,c=r.isTemplateTag,d=new Map,m=[],h=[];return e.forEach((function(e,r){var g=function(e,t){var n=t.itemName,r=t.indexName,a=t.index,i=t.item;se(e,n,i),r&&se(e,r,a);return e}(Object.create(t),{itemName:s,indexName:u,index:r,item:e}),v=l?l(g):r,y=o.get(v),x=[];if(!function(e,t){return!!e&&!e(t)}(a,g)){var b=!y,T=y?y.template:i.clone(),E=T.el||p.cloneNode(),A=c&&b?oe(T):T.meta;b?m.push((function(){return T.mount(E,g,n,A)})):m.push((function(){return T.update(g,n)})),c?x.push.apply(x,f(A.children)):x.push(E),o.delete(v),h.push.apply(h,x),d.set(v,{nodes:x,template:T,context:g,index:r})}})),{newChildrenMap:d,batches:m,futureNodes:h}}(i?Array.from(i):[],e,t,this),s=o.newChildrenMap,l=o.batches,u=o.futureNodes;return function(e,t,n,r){for(var a,i,o=t.length,s=e.length,l=o,u=0,p=0,c=null;u<s||p<l;)if(s===u)for(var d=l<o?p?n(t[p-1],-0).nextSibling:n(t[l-p],0):r;p<l;)O(n(t[p++],1),d);else if(l===p)for(;u<s;)c&&c.has(e[u])||U(n(e[u],-1)),u++;else if(e[u]===t[p])u++,p++;else if(e[s-1]===t[l-1])s--,l--;else if(e[u]===t[l-1]&&t[p]===e[s-1]){var m=n(e[--s],-1).nextSibling;O(n(t[p++],1),n(e[u++],-1).nextSibling),O(n(t[--l],1),m),e[s]=t[l]}else{if(!c){c=new Map;for(var h=p;h<l;)c.set(t[h],h++)}if(c.has(e[u])){var g=c.get(e[u]);if(p<g&&g<l){for(var f=u,v=1;++f<s&&f<l&&c.get(e[f])===g+v;)v++;if(v>g-p)for(var y=n(e[u],0);p<g;)O(n(t[p++],1),y);else a=n(t[p++],1),(i=n(e[u++],-1))&&i.parentNode&&i.parentNode.replaceChild(a,i)}else u++}else U(n(e[u++],-1))}}(r,u,function(e,t){return function(n,r){if(r<0)