116 lines
2.5 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue"),require("__jszip"),require("__jsyaml")):"function"===typeof define&&define.amd?define([,"__jszip","__jsyaml"],t):"object"===typeof exports?exports["harvester-1.5.2-rc1"]=t(require("vue"),require("__jszip"),require("__jsyaml")):e["harvester-1.5.2-rc1"]=t(e["Vue"],e["__jszip"],e["__jsyaml"])})("undefined"!==typeof self?self:this,(function(e,t,n){return function(){var r={4979:function(){"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");const n=Object(e);for(let r=1;r<arguments.length;r++){const e=arguments[r];if(null!=e)for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},writable:!0,configurable:!0}),(()=>{function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,"function"!==typeof window.CustomEvent&&(window.CustomEvent=e)})(),Number.isInteger=Number.isInteger||function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e}},19469:function(e,t,n){var r={"./email":51557,"./email.vue":51557,"./opsgenie":72420,"./opsgenie.vue":72420,"./pagerduty":12772,"./pagerduty.vue":12772,"./slack":33427,"./slack.vue":33427,"./webhook":4496,"./webhook.vue":4496};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=19469},26093:function(e,t,n){"use strict";var r=n(39907),i=n(4364);function a(e){return a="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},a(e)}function o(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,l(r.key),r)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e){var t=c(e,"string");return"symbol"===a(t)?t:String(t)}function c(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d,h,p=n(41342),f=p.codes,m=f.ERR_AMBIGUOUS_ARGUMENT,g=f.ERR_INVALID_ARG_TYPE,v=f.ERR_INVALID_ARG_VALUE,b=f.ERR_INVALID_RETURN_VALUE,y=f.ERR_MISSING_ARGS,w=n(49801),E=n(49208),_=E.inspect,S=n(49208).types,k=S.isPromise,x=S.isRegExp,A=n(23225)(),N=n(61937)(),C=n(79818)("RegExp.prototype.test");new Map;function T(){var e=n(5656);d=e.isDeepEqual,h=e.isDeepStrictEqual}var R=!1,O=e.exports=M,I={};function L(e){if(e.message instanceof Error)throw e.message;throw new w(e)}function D(e,t,n,a,o){var s,l=arguments.length;if(0===l)s="Failed";else if(1===l)n=e,e=void 0;else{if(!1===R){R=!0;var c=r.emitWarning?r.emitWarning:i.warn.bind(i);c("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===l&&(a="!=")}if(n instanceof Error)throw n;var u={actual:e,expected:t,operator:void 0===a?"fail":a,stackStartFn:o||D};void 0!==n&&(u.message=n);var d=new w(u);throw s&&(d.message=s,d.generatedMessage=!0),d}function P(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var a=new w({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw a.generatedMessage=i,a}}function M(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];P.apply(void 0,[M,t.length].concat(t))}function B(e,t,n){if(arguments.length<2)throw new y("actual","expected");void 0===d&&T(),h(e,t)&&L({actual:e,expected:t,message:n,operator:"notDeepStrictEqual",stackStartFn:B})}O.fail=D,O.AssertionError=w,O.ok=M,O.equal=function e(t,n,r){if(arguments.length<2)throw new y("actual","expected");t!=n&&L({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},O.notEqual=function e(t,n,r){if(arguments.length<2)throw new y("actual","expected");t==n&&L({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},O.deepEqual=function e(t,n,r){if(arguments.length<2)throw new y("actual","expected");void 0===d&&T(),d(t,n)||L({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},O.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new y("actual","expected");void 0===d&&T(),d(t,n)&&L({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},O.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new y("actual","expected");void 0===d&&T(),h(t,n)||L({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},O.notDeepStrictEqual=B,O.strictEqual=function e(t,n,r){if(arguments.length<2)throw new y("actual","expected");N(t,n)||L({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},O.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new y("actual","expected");N(t,n)&&L({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var F=s((function e(t,n,r){var i=this;u(this,e),n.forEach((function(e){e in t&&(void 0!==r&&"string"===typeof r[e]&&x(t[e])&&C(t[e],r[e])?i[e]=r[e]:i[e]=t[e])}))}));function $(e,t,n,r,i,a){if(!(n in e)||!h(e[n],t[n])){if(!r){var o=new F(e,i),s=new F(t,i,e),l=new w({actual:o,expected:s,operator:"deepStrictEqual",stackStartFn:a});throw l.actual=e,l.expected=t,l.operator=a.name,l}L({actual:e,expected:t,message:r,operator:a.name,stackStartFn:a})}}function U(e,t,n,r){if("function"!==typeof t){if(x(t))return C(t,e);if(2===arguments.length)throw new g("expected",["Function","RegExp"],t);if("object"!==a(e)||null===e){var i=new w({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw i.operator=r.name,i}var o=Object.keys(t);if(t instanceof Error)o.push("name","message");else if(0===o.length)throw new v("error",t,"may not be an empty object");return void 0===d&&T(),o.forEach((function(i){"string"===typeof e[i]&&x(t[i])&&C(t[i],e[i])||$(e,t,i,n,o,r)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function j(e){if("function"!==typeof e)throw new g("fn","Function",e);try{e()}catch(t){return t}return I}function V(e){return k(e)||null!==e&&"object"===a(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function K(e){return Promise.resolve().then((function(){var t;if("function"===typeof e){if(t=e(),!V(t))throw new b("instance of Promise","promiseFn",t)}else{if(!V(e))throw new g("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return I})).catch((function(e){return e}))}))}function H(e,t,n,r){if("string"===typeof n){if(4===arguments.length)throw new g("error",["Object","Error","Function","RegExp"],n);if("object"===a(t)&&null!==t){if(t.message===n)throw new m("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new m("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==a(n)&&"function"!==typeof n)throw new g("error",["Object","Error","Function","RegExp"],n);if(t===I){var i="";n&&n.name&&(i+=" (".concat(n.name,")")),i+=r?": ".concat(r):".";var o="rejects"===e.name?"rejection":"exception";L({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(o).concat(i),stackStartFn:e})}if(n&&!U(t,n,r,e))throw t}function G(e,t,n,r){if(t!==I){if("string"===typeof n&&(r=n,n=void 0),!n||U(t,n)){var i=r?": ".concat(r):".",a="doesNotReject"===e.name?"rejection":"exception";L({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(a).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function z(e,t,n,r,i){if(!x(t))throw new g("regexp","RegExp",t);var o="match"===i;if("string"!==typeof e||C(t,e)!==o){if(n instanceof Error)throw n;var s=!n;n=n||("string"!==typeof e?'The "string" argument must be of type string. Received type '+"".concat(a(e)," (").concat(_(e),")"):(o?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(_(t),". Input:\n\n").concat(_(e),"\n"));var l=new w({actual:e,expected:t,message:n,operator:i,stackStartFn:r});throw l.generatedMessage=s,l}}function q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];P.apply(void 0,[q,t.length].concat(t))}O.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];H.apply(void 0,[e,j(t)].concat(r))},O.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return K(t).then((function(t){return H.apply(void 0,[e,t].concat(r))}))},O.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];G.apply(void 0,[e,j(t)].concat(r))},O.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return K(t).then((function(t){return G.apply(void 0,[e,t].concat(r))}))},O.ifError=function e(t){if(null!==t&&void 0!==t){var n="ifError got unwanted exception: ";"object"===a(t)&&"string"===typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=_(t);var r=new w({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),i=t.stack;if("string"===typeof i){var o=i.split("\n");o.shift();for(var s=r.stack.split("\n"),l=0;l<o.length;l++){var c=s.indexOf(o[l]);if(-1!==c){s=s.slice(0,c);break}}r.stack="".concat(s.join("\n"),"\n").concat(o.join("\n"))}throw r}},O.match=function e(t,n,r){z(t,n,r,e,"match")},O.doesNotMatch=function e(t,n,r){z(t,n,r,e,"doesNotMatch")},O.strict=A(q,O,{equal:O.strictEqual,deepEqual:O.deepStrictEqual,notEqual:O.notStrictEqual,notDeepEqual:O.notDeepStrictEqual}),O.strict.strict=O.strict},49801:function(e,t,n){"use strict";var r=n(39907);function i(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t=u(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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,u(r.key),r)}}function c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var t=d(e,"string");return"symbol"===_(t)?t:String(t)}function d(e,t){if("object"!==_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function h(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&&w(e,t)}function p(e){var t=b();return function(){var n,r=E(e);if(t){var i=E(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"===_(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){var t="function"===typeof Map?new Map:void 0;return g=function(e){if(null===e||!y(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return v(e,arguments,E(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),w(n,e)},g(e)}function v(e,t,n){return v=b()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=Function.bind.apply(e,r),a=new i;return n&&w(a,n.prototype),a},v.apply(null,arguments)}function b(){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 y(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function _(e){return _="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)}var S=n(49208),k=S.inspect,x=n(41342),A=x.codes.ERR_INVALID_ARG_TYPE;function N(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function C(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;t=Math.floor(Math.log(t)/Math.log(2));while(t)e+=e,t--;return e+=e.substring(0,n-e.length),e}var T="",R="",O="",I="",L={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},D=10;function P(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function M(e){return k(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function B(e,t,n){var i="",a="",o=0,s="",l=!1,c=M(e),u=c.split("\n"),d=M(t).split("\n"),h=0,p="";if("strictEqual"===n&&"object"===_(e)&&"object"===_(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===u.length&&1===d.length&&u[0]!==d[0]){var f=u[0].length+d[0].length;if(f<=D){if(("object"!==_(e)||null===e)&&("object"!==_(t)||null===t)&&(0!==e||0!==t))return"".concat(L[n],"\n\n")+"".concat(u[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==n){var m=r.stderr&&r.stderr.isTTY?r.stderr.columns:80;if(f<m){while(u[0][h]===d[0][h])h++;h>2&&(p="\n ".concat(C(" ",h),"^"),h=0)}}}var g=u[u.length-1],v=d[d.length-1];while(g===v){if(h++<2?s="\n ".concat(g).concat(s):i=g,u.pop(),d.pop(),0===u.length||0===d.length)break;g=u[u.length-1],v=d[d.length-1]}var b=Math.max(u.length,d.length);if(0===b){var y=c.split("\n");if(y.length>30){y[26]="".concat(T,"...").concat(I);while(y.length>27)y.pop()}return"".concat(L.notIdentical,"\n\n").concat(y.join("\n"),"\n")}h>3&&(s="\n".concat(T,"...").concat(I).concat(s),l=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var w=0,E=L[n]+"\n".concat(R,"+ actual").concat(I," ").concat(O,"- expected").concat(I),S=" ".concat(T,"...").concat(I," Lines skipped");for(h=0;h<b;h++){var k=h-o;if(u.length<h+1)k>1&&h>2&&(k>4?(a+="\n".concat(T,"...").concat(I),l=!0):k>3&&(a+="\n ".concat(d[h-2]),w++),a+="\n ".concat(d[h-1]),w++),o=h,i+="\n".concat(O,"-").concat(I," ").concat(d[h]),w++;else if(d.length<h+1)k>1&&h>2&&(k>4?(a+="\n".concat(T,"...").concat(I),l=!0):k>3&&(a+="\n ".concat(u[h-2]),w++),a+="\n ".concat(u[h-1]),w++),o=h,a+="\n".concat(R,"+").concat(I," ").concat(u[h]),w++;else{var x=d[h],A=u[h],P=A!==x&&(!N(A,",")||A.slice(0,-1)!==x);P&&N(x,",")&&x.slice(0,-1)===A&&(P=!1,A+=","),P?(k>1&&h>2&&(k>4?(a+="\n".concat(T,"...").concat(I),l=!0):k>3&&(a+="\n ".concat(u[h-2]),w++),a+="\n ".concat(u[h-1]),w++),o=h,a+="\n".concat(R,"+").concat(I," ").concat(A),i+="\n".concat(O,"-").concat(I," ").concat(x),w+=2):(a+=i,i="",1!==k&&0!==h||(a+="\n ".concat(A),w++))}if(w>20&&h<b-2)return"".concat(E).concat(S,"\n").concat(a,"\n").concat(T,"...").concat(I).concat(i,"\n")+"".concat(T,"...").concat(I)}return"".concat(E).concat(l?S:"","\n").concat(a).concat(i).concat(s).concat(p)}var F=function(e,t){h(i,e);var n=p(i);function i(e){var t;if(s(this,i),"object"!==_(e)||null===e)throw new A("options","Object",e);var a=e.message,o=e.operator,l=e.stackStartFn,c=e.actual,u=e.expected,d=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=a)t=n.call(this,String(a));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(T="",R="",I="",O=""):(T="",R="",I="",O="")),"object"===_(c)&&null!==c&&"object"===_(u)&&null!==u&&"stack"in c&&c instanceof Error&&"stack"in u&&u instanceof Error&&(c=P(c),u=P(u)),"deepStrictEqual"===o||"strictEqual"===o)t=n.call(this,B(c,u,o));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var h=L[o],p=M(c).split("\n");if("notStrictEqual"===o&&"object"===_(c)&&null!==c&&(h=L.notStrictEqualObject),p.length>30){p[26]="".concat(T,"...").concat(I);while(p.length>27)p.pop()}t=1===p.length?n.call(this,"".concat(h," ").concat(p[0])):n.call(this,"".concat(h,"\n\n").concat(p.join("\n"),"\n"))}else{var g=M(c),v="",b=L[o];"notDeepEqual"===o||"notEqual"===o?(g="".concat(L[o],"\n\n").concat(g),g.length>1024&&(g="".concat(g.slice(0,1021),"..."))):(v="".concat(M(u)),g.length>512&&(g="".concat(g.slice(0,509),"...")),v.length>512&&(v="".concat(v.slice(0,509),"...")),"deepEqual"===o||"equal"===o?g="".concat(b,"\n\n").concat(g,"\n\nshould equal\n\n"):v=" ".concat(o," ").concat(v)),t=n.call(this,"".concat(g).concat(v))}return Error.stackTraceLimit=d,t.generatedMessage=!a,Object.defineProperty(m(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=c,t.expected=u,t.operator=o,Error.captureStackTrace&&Error.captureStackTrace(m(t),l),t.stack,t.name="AssertionError",f(t)}return c(i,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return k(this,a(a({},t),{},{customInspect:!1,depth:0}))}}]),i}(g(Error),k.custom);e.exports=F},41342:function(e,t,n){"use strict";function r(e){return r="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},r(e)}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,o(r.key),r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){var t=s(e,"string");return"symbol"===r(t)?t:String(t)}function s(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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&&u(e,t)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function d(e){var t=f();return function(){var n,r=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(){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 m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var g,v,b={};function y(e,t,n){function r(e,n,r){return"string"===typeof t?t:t(e,n,r)}n||(n=Error);var i=function(t){c(i,t);var n=d(i);function i(t,a,o){var s;return l(this,i),s=n.call(this,r(t,a,o)),s.code=e,s}return a(i)}(n);b[e]=i}function w(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}function E(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function _(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function S(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}y("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),y("ERR_INVALID_ARG_TYPE",(function(e,t,i){var a,o;if(void 0===g&&(g=n(26093)),g("string"===typeof e,"'name' must be a string"),"string"===typeof t&&E(t,"not ")?(a="must not be",t=t.replace(/^not /,"")):a="must be",_(e," argument"))o="The ".concat(e," ").concat(a," ").concat(w(t,"type"));else{var s=S(e,".")?"property":"argument";o='The "'.concat(e,'" ').concat(s," ").concat(a," ").concat(w(t,"type"))}return o+=". Received type ".concat(r(i)),o}),TypeError),y("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===v&&(v=n(49208));var i=v.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),y("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),y("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];void 0===g&&(g=n(26093)),g(t.length>0,"At least one arg needs to be specified");var i="The ",a=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),a){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,a-1).join(", "),i+=", and ".concat(t[a-1]," arguments");break}return"".concat(i," must be specified")}),TypeError),e.exports.codes=b},5656:function(e,t,n){"use strict";function r(e,t){return l(e)||s(e,t)||a(e,t)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function l(e){if(Array.isArray(e))return e}function c(e){return c="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},c(e)}var u=void 0!==/a/g.flags,d=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},h=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},p=Object.is?Object.is:n(55968),f=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},m=Number.isNaN?Number.isNaN:n(7838);function g(e){return e.call.bind(e)}var v=g(Object.prototype.hasOwnProperty),b=g(Object.prototype.propertyIsEnumerable),y=g(Object.prototype.toString),w=n(49208).types,E=w.isAnyArrayBuffer,_=w.isArrayBufferView,S=w.isDate,k=w.isMap,x=w.isRegExp,A=w.isSet,N=w.isNativeError,C=w.isBoxedPrimitive,T=w.isNumberObject,R=w.isStringObject,O=w.isBooleanObject,I=w.isBigIntObject,L=w.isSymbolObject,D=w.isFloat32Array,P=w.isFloat64Array;function M(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function B(e){return Object.keys(e).filter(M).concat(f(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/function F(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}var $=void 0,U=!0,j=!1,V=0,K=1,H=2,G=3;function z(e,t){return u?e.source===t.source&&e.flags===t.flags:RegExp.prototype.toString.call(e)===RegExp.prototype.toString.call(t)}function q(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}function X(e,t){return e.byteLength===t.byteLength&&0===F(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function W(e,t){return e.byteLength===t.byteLength&&0===F(new Uint8Array(e),new Uint8Array(t))}function Y(e,t){return T(e)?T(t)&&p(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):R(e)?R(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):O(e)?O(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):I(e)?I(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):L(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}function Q(e,t,n,r){if(e===t)return 0!==e||(!n||p(e,t));if(n){if("object"!==c(e))return"number"===typeof e&&m(e)&&m(t);if("object"!==c(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==c(e))return(null===t||"object"!==c(t))&&e==t;if(null===t||"object"!==c(t))return!1}var i=y(e),a=y(t);if(i!==a)return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var o=B(e,$),s=B(t,$);return o.length===s.length&&Z(e,t,n,r,K,o)}if("[object Object]"===i&&(!k(e)&&k(t)||!A(e)&&A(t)))return!1;if(S(e)){if(!S(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(x(e)){if(!x(t)||!z(e,t))return!1}else if(N(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(_(e)){if(n||!D(e)&&!P(e)){if(!X(e,t))return!1}else if(!q(e,t))return!1;var l=B(e,$),u=B(t,$);return l.length===u.length&&Z(e,t,n,r,V,l)}if(A(e))return!(!A(t)||e.size!==t.size)&&Z(e,t,n,r,H);if(k(e))return!(!k(t)||e.size!==t.size)&&Z(e,t,n,r,G);if(E(e)){if(!W(e,t))return!1}else if(C(e)&&!Y(e,t))return!1}return Z(e,t,n,r,V)}function J(e,t){return t.filter((function(t){return b(e,t)}))}function Z(e,t,n,r,i,a){if(5===arguments.length){a=Object.keys(e);var o=Object.keys(t);if(a.length!==o.length)return!1}for(var s=0;s<a.length;s++)if(!v(t,a[s]))return!1;if(n&&5===arguments.length){var l=f(e);if(0!==l.length){var c=0;for(s=0;s<l.length;s++){var u=l[s];if(b(e,u)){if(!b(t,u))return!1;a.push(u),c++}else if(b(t,u))return!1}var d=f(t);if(l.length!==d.length&&J(t,d).length!==c)return!1}else{var h=f(t);if(0!==h.length&&0!==J(t,h).length)return!1}}if(0===a.length&&(i===V||i===K&&0===e.length||0===e.size))return!0;if(void 0===r)r={val1:new Map,val2:new Map,position:0};else{var p=r.val1.get(e);if(void 0!==p){var m=r.val2.get(t);if(void 0!==m)return p===m}r.position++}r.val1.set(e,r.position),r.val2.set(t,r.position);var g=se(e,t,n,a,r,i);return r.val1.delete(e),r.val2.delete(t),g}function ee(e,t,n,r){for(var i=d(e),a=0;a<i.length;a++){var o=i[a];if(Q(t,o,n,r))return e.delete(o),!0}return!1}function te(e){switch(c(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(m(e))return!1}return!0}function ne(e,t,n){var r=te(n);return null!=r?r:t.has(r)&&!e.has(r)}function re(e,t,n,r,i){var a=te(n);if(null!=a)return a;var o=t.get(a);return!(void 0===o&&!t.has(a)||!Q(r,o,!1,i))&&(!e.has(a)&&Q(r,o,!1,i))}function ie(e,t,n,r){for(var i=null,a=d(e),o=0;o<a.length;o++){var s=a[o];if("object"===c(s)&&null!==s)null===i&&(i=new Set),i.add(s);else if(!t.has(s)){if(n)return!1;if(!ne(e,t,s))return!1;null===i&&(i=new Set),i.add(s)}}if(null!==i){for(var l=d(t),u=0;u<l.length;u++){var h=l[u];if("object"===c(h)&&null!==h){if(!ee(i,h,n,r))return!1}else if(!n&&!e.has(h)&&!ee(i,h,n,r))return!1}return 0===i.size}return!0}function ae(e,t,n,r,i,a){for(var o=d(e),s=0;s<o.length;s++){var l=o[s];if(Q(n,l,i,a)&&Q(r,t.get(l),i,a))return e.delete(l),!0}return!1}function oe(e,t,n,i){for(var a=null,o=h(e),s=0;s<o.length;s++){var l=r(o[s],2),u=l[0],d=l[1];if("object"===c(u)&&null!==u)null===a&&(a=new Set),a.add(u);else{var p=t.get(u);if(void 0===p&&!t.has(u)||!Q(d,p,n,i)){if(n)return!1;if(!re(e,t,u,d,i))return!1;null===a&&(a=new Set),a.add(u)}}}if(null!==a){for(var f=h(t),m=0;m<f.length;m++){var g=r(f[m],2),v=g[0],b=g[1];if("object"===c(v)&&null!==v){if(!ae(a,e,v,b,n,i))return!1}else if(!n&&(!e.has(v)||!Q(e.get(v),b,!1,i))&&!ae(a,e,v,b,!1,i))return!1}return 0===a.size}return!0}function se(e,t,n,r,i,a){var o=0;if(a===H){if(!ie(e,t,n,i))return!1}else if(a===G){if(!oe(e,t,n,i))return!1}else if(a===K)for(;o<e.length;o++){if(!v(e,o)){if(v(t,o))return!1;for(var s=Object.keys(e);o<s.length;o++){var l=s[o];if(!v(t,l)||!Q(e[l],t[l],n,i))return!1}return s.length===Object.keys(t).length}if(!v(t,o)||!Q(e[o],t[o],n,i))return!1}for(o=0;o<r.length;o++){var c=r[o];if(!Q(e[c],t[c],n,i))return!1}return!0}function le(e,t){return Q(e,t,j)}function ce(e,t){return Q(e,t,U)}e.exports={isDeepEqual:le,isDeepStrictEqual:ce}},7991:function(e,t){"use strict";t.byteLength=c,t.toByteArray=d,t.fromByteArray=f;for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)n[o]=a[o],r[a.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function u(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,a=l(e),o=a[0],s=a[1],c=new i(u(e,o,s)),d=0,h=s>0?o-4:o;for(n=0;n<h;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[d++]=t>>16&255,c[d++]=t>>8&255,c[d++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[d++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[d++]=t>>8&255,c[d++]=255&t),c}function h(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function p(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),i.push(h(r));return i.join("")}function f(e){for(var t,r=e.length,i=r%3,a=[],o=16383,s=0,l=r-i;s<l;s+=o)a.push(p(e,s,s+o>l?l:s+o));return 1===i?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},1048:function(e,t,n){"use strict";var r=n(4364),i=n(7991),a=n(39318),o="function"===typeof Symbol&&"function"===typeof Symbol["for"]?Symbol["for"]("nodejs.util.inspect.custom"):null;
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/t.Buffer=u,t.SlowBuffer=E,t.INSPECT_MAX_BYTES=50;var s=2147483647;function l(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(n){return!1}}function c(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return d(e,t,n)}function d(e,t,n){if("string"===typeof e)return m(e,t);if(ArrayBuffer.isView(e))return v(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return b(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return b(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);var i=y(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e,t,n){return h(e),e<=0?c(e):void 0!==t?"string"===typeof n?c(e).fill(t,n):c(e).fill(t):c(e)}function f(e){return h(e),c(e<0?0:0|w(e))}function m(e,t){if("string"===typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|_(e,t),r=c(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function g(e){for(var t=e.length<0?0:0|w(e.length),n=c(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function v(e){if(J(e,Uint8Array)){var t=new Uint8Array(e);return b(t.buffer,t.byteOffset,t.byteLength)}return g(e)}function b(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,u.prototype),r}function y(e){if(u.isBuffer(e)){var t=0|w(e.length),n=c(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!==typeof e.length||Z(e.length)?c(0):g(e):"Buffer"===e.type&&Array.isArray(e.data)?g(e.data):void 0}function w(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function E(e){return+e!=e&&(e=0),u.alloc(+e)}function _(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(i)return r?-1:q(e).length;t=(""+t).toLowerCase(),i=!0}}function S(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return L(this,t,n);case"ascii":return M(this,t,n);case"latin1":case"binary":return B(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function k(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function x(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,Z(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:A(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):A(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function A(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;a<s;a++)if(c(e,a)===c(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===l)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var d=!0,h=0;h<l;h++)if(c(e,a+h)!==c(t,h)){d=!1;break}if(d)return a}return-1}function N(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(Z(s))return o;e[n+o]=s}return o}function C(e,t,n,r){return Q(q(t,e.length-n),e,n,r)}function T(e,t,n,r){return Q(X(t),e,n,r)}function R(e,t,n,r){return Q(Y(t),e,n,r)}function O(e,t,n,r){return Q(W(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function L(e,t,n){n=Math.min(e.length,n);var r=[],i=t;while(i<n){var a,o,s,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:a=e[i+1],128===(192&a)&&(l=(31&c)<<6|63&a,l>127&&(u=l));break;case 3:a=e[i+1],o=e[i+2],128===(192&a)&&128===(192&o)&&(l=(15&c)<<12|(63&a)<<6|63&o,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return P(r)}t.kMaxLength=s,u.TYPED_ARRAY_SUPPORT=l(),u.TYPED_ARRAY_SUPPORT||"undefined"===typeof r||"function"!==typeof r.error||r.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,n){return d(e,t,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,n){return p(e,t,n)},u.allocUnsafe=function(e){return f(e)},u.allocUnsafeSlow=function(e){return f(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(J(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),J(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(J(a,Uint8Array))i+a.length>r.length?u.from(a).copy(r,i):Uint8Array.prototype.set.call(r,a,i);else{if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i)}i+=a.length}return r},u.byteLength=_,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)k(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)k(this,t,t+3),k(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)k(this,t,t+7),k(this,t+1,t+6),k(this,t+2,t+5),k(this,t+3,t+4);return this},u.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?L(this,0,e):S.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,i){if(J(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,s=Math.min(a,o),l=this.slice(r,i),c=e.slice(t,n),d=0;d<s;++d)if(l[d]!==c[d]){a=l[d],o=c[d];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return x(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return x(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return N(this,e,t,n);case"utf8":case"utf-8":return C(this,e,t,n);case"ascii":case"latin1":case"binary":return T(this,e,t,n);case"base64":return R(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function P(e){var t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=D));return n}function M(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function B(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function F(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=ee[e[a]];return i}function $(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length-1;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function U(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,n,r,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function V(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function K(e,t,n,r,i){return t=+t,n>>>=0,i||V(e,t,n,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,n,r,23,4),n+4}function H(e,t,n,r,i){return t=+t,n>>>=0,i||V(e,t,n,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||U(e,t,this.length);var r=this[e],i=1,a=0;while(++a<t&&(i*=256))r+=this[e+a]*i;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||U(e,t,this.length);var r=this[e+--t],i=1;while(t>0&&(i*=256))r+=this[e+--t]*i;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||U(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||U(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||U(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||U(e,t,this.length);var r=this[e],i=1,a=0;while(++a<t&&(i*=256))r+=this[e+a]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||U(e,t,this.length);var r=t,i=1,a=this[e+--r];while(r>0&&(i*=256))a+=this[e+--r]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return e>>>=0,t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||U(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||U(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return e>>>=0,t||U(e,4,this.length),a.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||U(e,4,this.length),a.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||U(e,8,this.length),a.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||U(e,8,this.length),a.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;j(this,e,t,n,i,0)}var a=1,o=0;this[t]=255&e;while(++o<n&&(a*=256))this[t+o]=e/a&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;j(this,e,t,n,i,0)}var a=n-1,o=1;this[t+a]=255&e;while(--a>=0&&(o*=256))this[t+a]=e/o&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;this[t]=255&e;while(++a<n&&(o*=256))e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;this[t+a]=255&e;while(--a>=0&&(o*=256))e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeFloatLE=function(e,t,n){return K(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return K(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return H(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return H(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},u.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=u.isBuffer(e)?e:u.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var G=/[^+/0-9A-Za-z-_]/g;function z(e){if(e=e.split("=")[0],e=e.trim().replace(G,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function q(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function X(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function W(e,t){for(var n,r,i,a=[],o=0;o<e.length;++o){if((t-=2)<0)break;n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r)}return a}function Y(e){return i.toByteArray(z(e))}function Q(e,t,n,r){for(var i=0;i<r;++i){if(i+n>=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!==e}var ee=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},30049:function(e){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},82149:function(e,t,n){"use strict";n.d(t,{mG:function(){return se},$4:function(){return oe},kS:function(){return le}});var r=n(9274),i=n(4364),a=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],o=a.join(","),s="undefined"===typeof Element,l=s?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,c=!s&&Element.prototype.getRootNode?function(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null===e||void 0===e?void 0:e.ownerDocument},u=function e(t,n){var r;void 0===n&&(n=!0);var i=null===t||void 0===t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert"),a=""===i||"true"===i,o=a||n&&t&&e(t.parentNode);return o},d=function(e){var t,n=null===e||void 0===e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n},h=function(e,t,n){if(u(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(o));return t&&l.call(e,o)&&r.unshift(e),r=r.filter(n),r},p=function e(t,n,r){var i=[],a=Array.from(t);while(a.length){var s=a.shift();if(!u(s,!1))if("SLOT"===s.tagName){var c=s.assignedElements(),d=c.length?c:s.children,h=e(d,!0,r);r.flatten?i.push.apply(i,h):i.push({scopeParent:s,candidates:h})}else{var p=l.call(s,o);p&&r.filter(s)&&(n||!t.includes(s))&&i.push(s);var f=s.shadowRoot||"function"===typeof r.getShadowRoot&&r.getShadowRoot(s),m=!u(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(f&&m){var g=e(!0===f?s.children:f.children,!0,r);r.flatten?i.push.apply(i,g):i.push({scopeParent:s,candidates:g})}else a.unshift.apply(a,s.children)}}return i},f=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},m=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||d(e))&&!f(e)?0:e.tabIndex},g=function(e,t){var n=m(e);return n<0&&t&&!f(e)?0:n},v=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},b=function(e){return"INPUT"===e.tagName},y=function(e){return b(e)&&"hidden"===e.type},w=function(e){var t="DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}));return t},E=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},_=function(e){if(!e.name)return!0;var t,n=e.form||c(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(o){return i.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var a=E(t,e.form);return!a||a===e},S=function(e){return b(e)&&"radio"===e.type},k=function(e){return S(e)&&!_(e)},x=function(e){var t,n=e&&c(e),r=null===(t=n)||void 0===t?void 0:t.host,i=!1;if(n&&n!==e){var a,o,s;i=!!(null!==(a=r)&&void 0!==a&&null!==(o=a.ownerDocument)&&void 0!==o&&o.contains(r)||null!==e&&void 0!==e&&null!==(s=e.ownerDocument)&&void 0!==s&&s.contains(e));while(!i&&r){var l,u,d;n=c(r),r=null===(l=n)||void 0===l?void 0:l.host,i=!(null===(u=r)||void 0===u||null===(d=u.ownerDocument)||void 0===d||!d.contains(r))}}return i},A=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},N=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=l.call(e,"details>summary:first-of-type"),a=i?e.parentElement:e;if(l.call(a,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return A(e)}else{if("function"===typeof r){var o=e;while(e){var s=e.parentElement,u=c(e);if(s&&!s.shadowRoot&&!0===r(s))return A(e);e=e.assignedSlot?e.assignedSlot:s||u===e.ownerDocument?s:u.host}e=o}if(x(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},C=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName)){var t=e.parentElement;while(t){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!l.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}}return!1},T=function(e,t){return!(t.disabled||u(t)||y(t)||N(t,e)||w(t)||C(t))},R=function(e,t){return!(k(t)||m(t)<0||!T(e,t))},O=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},I=function e(t){var n=[],r=[];return t.forEach((function(t,i){var a=!!t.scopeParent,o=a?t.scopeParent:t,s=g(o,a),l=a?e(t.candidates):o;0===s?a?n.push.apply(n,l):n.push(o):r.push({documentOrder:i,tabIndex:s,item:t,isScope:a,content:l})})),r.sort(v).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},L=function(e,t){var n;return t=t||{},n=t.getShadowRoot?p([e],t.includeContainer,{filter:R.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:O}):h(e,t.includeContainer,R.bind(null,t)),I(n)},D=function(e,t){var n;return t=t||{},n=t.getShadowRoot?p([e],t.includeContainer,{filter:T.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):h(e,t.includeContainer,T.bind(null,t)),n},P=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==l.call(e,o)&&R(t,e)},M=a.concat("iframe").join(","),B=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==l.call(e,M)&&T(t,e)};
/*!
* focus-trap 7.6.2
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*/
function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $(e){if(Array.isArray(e))return F(e)}function U(e,t,n){return(t=q(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function V(){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 K(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 H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){U(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function G(e){return $(e)||j(e)||X(e)||V()}function z(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function q(e){var t=z(e,"string");return"symbol"==typeof t?t:t+""}function X(e,t){if(e){if("string"==typeof e)return F(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}var W={activateTrap:function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},Y=function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"===typeof e.select},Q=function(e){return"Escape"===(null===e||void 0===e?void 0:e.key)||"Esc"===(null===e||void 0===e?void 0:e.key)||27===(null===e||void 0===e?void 0:e.keyCode)},J=function(e){return"Tab"===(null===e||void 0===e?void 0:e.key)||9===(null===e||void 0===e?void 0:e.keyCode)},Z=function(e){return J(e)&&!e.shiftKey},ee=function(e){return J(e)&&e.shiftKey},te=function(e){return setTimeout(e,0)},ne=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"===typeof e?e.apply(void 0,n):e},re=function(e){return e.target.shadowRoot&&"function"===typeof e.composedPath?e.composedPath()[0]:e.target},ie=[],ae=function(e,t){var n,r=(null===t||void 0===t?void 0:t.document)||document,i=(null===t||void 0===t?void 0:t.trapStack)||ie,a=H({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Z,isKeyBackward:ee},t),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s=function(e,t,n){return e&&void 0!==e[t]?e[t]:a[n||t]},l=function(e,t){var n="function"===typeof(null===t||void 0===t?void 0:t.composedPath)?t.composedPath():void 0;return o.containerGroups.findIndex((function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||(null===n||void 0===n?void 0:n.includes(r))||i.find((function(t){return t===e}))}))},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.hasFallback,i=void 0!==n&&n,o=t.params,s=void 0===o?[]:o,l=a[e];if("function"===typeof l&&(l=l.apply(void 0,G(s))),!0===l&&(l=void 0),!l){if(void 0===l||!1===l)return l;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=l;if("string"===typeof l){try{c=r.querySelector(l)}catch(u){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(u.message,'"'))}if(!c&&!i)throw new Error("`".concat(e,"` as selector refers to no known node"))}return c},u=function(){var e=c("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!B(e,a.tabbableOptions))if(l(r.activeElement)>=0)e=r.activeElement;else{var t=o.tabbableGroups[0],n=t&&t.firstTabbableNode;e=n||c("fallbackFocus")}else null===e&&(e=c("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(o.containerGroups=o.containers.map((function(e){var t=L(e,a.tabbableOptions),n=D(e,a.tabbableOptions),r=t.length>0?t[0]:void 0,i=t.length>0?t[t.length-1]:void 0,o=n.find((function(e){return P(e)})),s=n.slice().reverse().find((function(e){return P(e)})),l=!!t.find((function(e){return m(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:r,lastTabbableNode:i,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find((function(e){return P(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return P(e)})):t[i+(r?1:-1)]}}})),o.tabbableGroups=o.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),o.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(o.containerGroups.find((function(e){return e.posTabIndexesFound}))&&o.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},h=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?h(t.shadowRoot):t},p=function(e){!1!==e&&e!==h(document)&&(e&&e.focus?(e.focus({preventScroll:!!a.preventScroll}),o.mostRecentlyFocusedNode=e,Y(e)&&e.select()):p(u()))},f=function(e){var t=c("setReturnFocus",{params:[e]});return t||!1!==t&&e},g=function(e){var t=e.target,n=e.event,r=e.isBackward,i=void 0!==r&&r;t=t||re(n),d();var s=null;if(o.tabbableGroups.length>0){var u=l(t,n),h=u>=0?o.containerGroups[u]:void 0;if(u<0)s=i?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode;else if(i){var p=o.tabbableGroups.findIndex((function(e){var n=e.firstTabbableNode;return t===n}));if(p<0&&(h.container===t||B(t,a.tabbableOptions)&&!P(t,a.tabbableOptions)&&!h.nextTabbableNode(t,!1))&&(p=u),p>=0){var f=0===p?o.tabbableGroups.length-1:p-1,g=o.tabbableGroups[f];s=m(t)>=0?g.lastTabbableNode:g.lastDomTabbableNode}else J(n)||(s=h.nextTabbableNode(t,!1))}else{var v=o.tabbableGroups.findIndex((function(e){var n=e.lastTabbableNode;return t===n}));if(v<0&&(h.container===t||B(t,a.tabbableOptions)&&!P(t,a.tabbableOptions)&&!h.nextTabbableNode(t))&&(v=u),v>=0){var b=v===o.tabbableGroups.length-1?0:v+1,y=o.tabbableGroups[b];s=m(t)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else J(n)||(s=h.nextTabbableNode(t))}}else s=c("fallbackFocus");return s},v=function(e){var t=re(e);l(t,e)>=0||(ne(a.clickOutsideDeactivates,e)?n.deactivate({returnFocus:a.returnFocusOnDeactivate}):ne(a.allowOutsideClick,e)||e.preventDefault())},b=function(e){var t=re(e),n=l(t,e)>=0;if(n||t instanceof Document)n&&(o.mostRecentlyFocusedNode=t);else{var r;e.stopImmediatePropagation();var i=!0;if(o.mostRecentlyFocusedNode)if(m(o.mostRecentlyFocusedNode)>0){var s=l(o.mostRecentlyFocusedNode),c=o.containerGroups[s].tabbableNodes;if(c.length>0){var d=c.findIndex((function(e){return e===o.mostRecentlyFocusedNode}));d>=0&&(a.isKeyForward(o.recentNavEvent)?d+1<c.length&&(r=c[d+1],i=!1):d-1>=0&&(r=c[d-1],i=!1))}}else o.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return m(e)>0}))}))||(i=!1);else i=!1;i&&(r=g({target:o.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(o.recentNavEvent)})),p(r||(o.mostRecentlyFocusedNode||u()))}o.recentNavEvent=void 0},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o.recentNavEvent=e;var n=g({event:e,isBackward:t});n&&(J(e)&&e.preventDefault(),p(n))},w=function(e){(a.isKeyForward(e)||a.isKeyBackward(e))&&y(e,a.isKeyBackward(e))},E=function(e){Q(e)&&!1!==ne(a.escapeDeactivates,e)&&(e.preventDefault(),n.deactivate())},_=function(e){var t=re(e);l(t,e)>=0||ne(a.clickOutsideDeactivates,e)||ne(a.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},S=function(){if(o.active)return W.activateTrap(i,n),o.delayInitialFocusTimer=a.delayInitialFocus?te((function(){p(u())})):p(u()),r.addEventListener("focusin",b,!0),r.addEventListener("mousedown",v,{capture:!0,passive:!1}),r.addEventListener("touchstart",v,{capture:!0,passive:!1}),r.addEventListener("click",_,{capture:!0,passive:!1}),r.addEventListener("keydown",w,{capture:!0,passive:!1}),r.addEventListener("keydown",E),n},k=function(){if(o.active)return r.removeEventListener("focusin",b,!0),r.removeEventListener("mousedown",v,!0),r.removeEventListener("touchstart",v,!0),r.removeEventListener("click",_,!0),r.removeEventListener("keydown",w,!0),r.removeEventListener("keydown",E),n},x=function(e){var t=e.some((function(e){var t=Array.from(e.removedNodes);return t.some((function(e){return e===o.mostRecentlyFocusedNode}))}));t&&p(u())},A="undefined"!==typeof window&&"MutationObserver"in window?new MutationObserver(x):void 0,N=function(){A&&(A.disconnect(),o.active&&!o.paused&&o.containers.map((function(e){A.observe(e,{subtree:!0,childList:!0})})))};return n={get active(){return o.active},get paused(){return o.paused},activate:function(e){if(o.active)return this;var t=s(e,"onActivate"),n=s(e,"onPostActivate"),i=s(e,"checkCanFocusTrap");i||d(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,null===t||void 0===t||t();var a=function(){i&&d(),S(),N(),null===n||void 0===n||n()};return i?(i(o.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(e){if(!o.active)return this;var t=H({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},e);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,k(),o.active=!1,o.paused=!1,N(),W.deactivateTrap(i,n);var r=s(t,"onDeactivate"),l=s(t,"onPostDeactivate"),c=s(t,"checkCanReturnFocus"),u=s(t,"returnFocus","returnFocusOnDeactivate");null===r||void 0===r||r();var d=function(){te((function(){u&&p(f(o.nodeFocusedBeforeActivation)),null===l||void 0===l||l()}))};return u&&c?(c(f(o.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){if(o.paused||!o.active)return this;var t=s(e,"onPause"),n=s(e,"onPostPause");return o.paused=!0,null===t||void 0===t||t(),k(),N(),null===n||void 0===n||n(),this},unpause:function(e){if(!o.paused||!o.active)return this;var t=s(e,"onUnpause"),n=s(e,"onPostUnpause");return o.paused=!1,null===t||void 0===t||t(),d(),S(),N(),null===n||void 0===n||n(),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return o.containers=t.map((function(e){return"string"===typeof e?r.querySelector(e):e})),o.active&&d(),N(),this}},n.updateContainerElements(e),n};function oe(e=document){const t=e.querySelectorAll('a, button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])'),n=[];return t.forEach((e=>{e.hasAttribute("disabled")||n.push(e)})),n.length?n[0]:document.body}const se={escapeDeactivates:!0,allowOutsideClick:!0};function le(e,t=se){let n,i;(0,r.onMounted)((()=>{i="string"===typeof e?document.querySelector(e):e,n=ae(i,t),(0,r.nextTick)((()=>{n.activate()}))})),(0,r.onBeforeUnmount)((()=>{Object.keys(n).length&&n.deactivate()}))}},9262:function(e,t,n){"use strict";n.d(t,{$8:function(){return o},Df:function(){return a},HG:function(){return i}});var r=n(40207);const i={VERSION_RANCHER:"server-version",VERSION_CLI:"cli-version",VERSION_MACHINE:"machine-version",VERSION_HELM:"helm-version",CLI_URL:{DARWIN:"cli-url-darwin",WINDOWS:"cli-url-windows",LINUX:"cli-url-linux"},API_HOST:"api-host",CA_CERTS:"cacerts",HIDE_LOCAL_CLUSTER:"hide-local-cluster",AUTH_TOKEN_MAX_TTL_MINUTES:"auth-token-max-ttl-minutes",KUBECONFIG_GENERATE_TOKEN:"kubeconfig-generate-token",KUBECONFIG_DEFAULT_TOKEN_TTL_MINUTES:"kubeconfig-default-token-ttl-minutes",ENGINE_URL:"engine-install-url",ENGINE_ISO_URL:"engine-iso-url",FIRST_LOGIN:"first-login",INGRESS_IP_DOMAIN:"ingress-ip-domain",SERVER_URL:"server-url",RKE_METADATA_CONFIG:"rke-metadata-config",EULA_AGREED:"eula-agreed",AUTH_USER_INFO_MAX_AGE_SECONDS:"auth-user-info-max-age-seconds",AUTH_USER_SESSION_TTL_MINUTES:"auth-user-session-ttl-minutes",AUTH_USER_INFO_RESYNC_CRON:"auth-user-info-resync-cron",AUTH_LOCAL_VALIDATE_DESC:"auth-password-requirements-description",PASSWORD_MIN_LENGTH:"password-min-length",CLUSTER_TEMPLATE_ENFORCEMENT:"cluster-template-enforcement",UI_INDEX:"ui-index",UI_DASHBOARD_INDEX:"ui-dashboard-index",UI_DASHBOARD_HARVESTER_LEGACY_PLUGIN:"ui-dashboard-harvester-legacy-plugin",UI_OFFLINE_PREFERRED:"ui-offline-preferred",SYSTEM_DEFAULT_REGISTRY:"system-default-registry",UI_ISSUES:"ui-issues",PL:"ui-pl",PL_RANCHER_VALUE:"rancher",SUPPORTED:"has-support",BANNERS:"ui-banners",ISSUES:"ui-issues",BRAND:"ui-brand",LOGO_LIGHT:"ui-logo-light",LOGO_DARK:"ui-logo-dark",BANNER_LIGHT:"ui-banner-light",BANNER_DARK:"ui-banner-dark",LOGIN_BACKGROUND_LIGHT:"ui-login-background-light",LOGIN_BACKGROUND_DARK:"ui-login-background-dark",PRIMARY_COLOR:"ui-primary-color",LINK_COLOR:"ui-link-color",COMMUNITY_LINKS:"ui-community-links",FAVICON:"ui-favicon",UI_PERFORMANCE:"ui-performance",UI_CUSTOM_LINKS:"ui-custom-links",UI_SUPPORTED_K8S_VERSIONS:"ui-k8s-supported-versions-range",THEME:"ui-theme",SYSTEM_NAMESPACES:"system-namespaces",CLUSTER_AGENT_DEFAULT_AFFINITY:"cluster-agent-default-affinity",FLEET_AGENT_DEFAULT_AFFINITY:"fleet-agent-default-affinity",ADD_EXTENSION_REPOS_BANNER_DISPLAY:"display-add-extension-repos-banner",AGENT_TLS_MODE:"agent-tls-mode",USER_RETENTION_CRON:"user-retention-cron",USER_RETENTION_DRY_RUN:"user-retention-dry-run",USER_LAST_LOGIN_DEFAULT:"user-last-login-default",DISABLE_INACTIVE_USER_AFTER:"disable-inactive-user-after",DELETE_INACTIVE_USER_AFTER:"delete-inactive-user-after",K3S_UPGRADER_UNINSTALL_CONCURRENCY:"k3s-based-upgrader-uninstall-concurrency",IMPORTED_CLUSTER_VERSION_MANAGEMENT:"imported-cluster-version-management",CLUSTER_AGENT_DEFAULT_PRIORITY_CLASS:"cluster-agent-default-priority-class",CLUSTER_AGENT_DEFAULT_POD_DISTRIBUTION_BUDGET:"cluster-agent-default-pod-disruption-budget"},a={[i.CA_CERTS]:{kind:"multiline",readOnly:!0},[i.ENGINE_URL]:{},[i.ENGINE_ISO_URL]:{},[i.PASSWORD_MIN_LENGTH]:{kind:"integer",ruleSet:[{name:"betweenValues",key:"Password",factoryArg:[2,256]},{name:"isInteger",key:"Password"},{name:"isPositive",key:"Password"},{name:"isOctal",key:"Password"}]},[i.INGRESS_IP_DOMAIN]:{},[i.AUTH_USER_INFO_MAX_AGE_SECONDS]:{},[i.AUTH_USER_SESSION_TTL_MINUTES]:{},[i.AUTH_TOKEN_MAX_TTL_MINUTES]:{},[i.KUBECONFIG_GENERATE_TOKEN]:{kind:"boolean"},[i.KUBECONFIG_DEFAULT_TOKEN_TTL_MINUTES]:{kind:"integer"},[i.AUTH_USER_INFO_RESYNC_CRON]:{},[i.SERVER_URL]:{kind:"url",canReset:!0},[i.RKE_METADATA_CONFIG]:{kind:"json"},[i.SYSTEM_DEFAULT_REGISTRY]:{},[i.UI_INDEX]:{},[i.UI_DASHBOARD_INDEX]:{},[i.UI_OFFLINE_PREFERRED]:{kind:"enum",options:["dynamic","true","false"]},[i.BRAND]:{canReset:!0},[i.CLUSTER_TEMPLATE_ENFORCEMENT]:{kind:"boolean"},[i.HIDE_LOCAL_CLUSTER]:{kind:"boolean"},[i.AGENT_TLS_MODE]:{kind:"enum",options:["strict","system-store"],warning:"agent-tls-mode"},[i.K3S_UPGRADER_UNINSTALL_CONCURRENCY]:{kind:"integer",ruleSet:[{name:"minValue",factoryArg:1}]},[i.IMPORTED_CLUSTER_VERSION_MANAGEMENT]:{kind:"boolean"},[i.CLUSTER_AGENT_DEFAULT_PRIORITY_CLASS]:{kind:"json"},[i.CLUSTER_AGENT_DEFAULT_POD_DISTRIBUTION_BUDGET]:{kind:"json"}},o={inactivity:{enabled:!1,threshold:900},incrementalLoading:{enabled:!0,threshold:1500},manualRefresh:{enabled:!1,threshold:1500},disableWebsocketNotification:!0,garbageCollection:r.W,forceNsFilterV2:{enabled:!1},advancedWorker:{enabled:!1},kubeAPI:{warningHeader:{separator:"299 - ",notificationBlockList:["299 - unknown field"]}},serverPagination:{enabled:!1,useDefaultStores:!0,stores:void 0}}},25659:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r,i=n(31915),a=n(35881),o=n(92043),s=n(14220),l=n(37327),c=n(76978);function u(e,t){const n=(0,l.P)(e);return"home"===t&&"home"===e.name||t===n}function d({name:e,query:t},n){return!(n!==s.G5||!t.mode||t.mode!==s.G5||t.as)||(!(n!==s.au||!t.as||t.as!==s.au)||(!(n!==s.fS||t.as||!e.includes("-id")||t.mode&&t?.mode===s.G5)||(!(n!==s.wC||e.includes("-id")||!e.includes("-resource"))||!(n!==s.YQ||!e.endsWith("-create")))))}function h(e,t,n){if(!Object.keys(t).length)return!0;const{params:r}=e,i=["product","resource","namespace","cluster","id","mode","path","hash","queryParam","context"];let a=!0;for(let o=0;o<i.length;o++){const s=i[o];if(t[s]){const i=Array.isArray(t[s])?t[s]:[t[s]];for(let t=0;t<i.length;t++){const o=i[t];if(o&&(a="hash"===s?!!e.hash&&e.hash.includes(o):"product"===s?u(e,o):"mode"===s?d(e,o):"resource"===s?r[s]&&"*"===o||o===r[s]:"context"===s?(0,c.n4)(o,n):"queryParam"===s?(0,c.n4)(o,e.query):"path"===s&&o.urlPath?o.endsWith?e.path.endsWith(o.urlPath):!Object.keys(o).includes("exact")||o.exact?o.urlPath===e.path:e.path.includes(o.urlPath):o===r[s]),a)break}if(!a)break}}return a}function p(e,t,n,r,s=e,l){const c=[];if(e.$plugin?.getUIConfig){const u=e.$plugin.getUIConfig(t,n);u.forEach(((e,d)=>{if(h(r,e.locationConfig,l||{})){if(t===i.c7.CARD)n===i.O4.CLUSTER_DASHBOARD_CARD&&e.labelKey&&(u[d].label=s.t(e.labelKey));else if(t===i.c7.ACTION&&(n===i.ug.TABLE&&(e.labelKey&&(u[d].label=s.t(e.labelKey)),u[d].bulkable=u[d].multiple||u[d].bulkable,u[d].action||(u[d].action=`custom-table-action-${(0,o.vx)(10).toLowerCase()}`)),n===i.ug.HEADER&&e.shortcut))if("string"===typeof e.shortcut)u[d].shortcutLabel=()=>a.cX?`(⌘-${e.shortcut.toUpperCase()})`:`(Ctrl-${e.shortcut.toUpperCase()})`,u[d].shortcutKey={windows:["ctrl",e.shortcut],mac:["meta",e.shortcut]};else if("object"===typeof e.shortcut&&!Array.isArray(e.shortcut)&&null!==e.shortcut){u[d].shortcutKey=e.shortcut;const t=a.cX?u[d].shortcut.mac:u[d].shortcut.windows?u[d].shortcut.windows:[];let n="";t.forEach(((e,r)=>{r<t.length-1?(e="meta"===e?"⌘":(0,o.TF)(e),n+=`${e}`,n+="-"):n+=`${e.toUpperCase()}`})),u[d].shortcutLabel=()=>`(${n})`}c.push(u[d])}}))}return c}(function(e){e["_CONFIG"]="config",e["_CREATE"]="create",e["_DETAIL"]="detail",e["_EDIT"]="edit",e["_LIST"]="list"})(r||(r={}))},31915:function(e,t,n){"use strict";var r,i,a,o,s,l;n.d(t,{O4:function(){return s},W3:function(){return l},W7:function(){return a},c7:function(){return r},lX:function(){return o},ug:function(){return i}}),function(e){e["ACTION"]="Action",e["TAB"]="Tab",e["PANEL"]="Panel",e["CARD"]="Card",e["TABLE_COL"]="TableColumn"}(r||(r={})),function(e){e["HEADER"]="header-action",e["TABLE"]="table-action"}(i||(i={})),function(e){e["DETAILS_MASTHEAD"]="details-masthead",e["DETAIL_TOP"]="detail-top",e["RESOURCE_LIST"]="resource-list"}(a||(a={})),function(e){e["RESOURCE_DETAIL"]="tab",e["CLUSTER_CREATE_RKE2"]="cluster-create-rke2"}(o||(o={})),function(e){e["CLUSTER_DASHBOARD_CARD"]="cluster-dashboard-card"}(s||(s={})),function(e){e["RESOURCE"]="resource-list"}(l||(l={}))},63503:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(14220);function i(e,t){e&&("function"===typeof t&&(t=t()),e.style.width="string"!==typeof t?`${t}px`:t)}function a(e){if(e&&e.length)return e.length?parseFloat(getComputedStyle(e[0]).width.replace("px","")):parseFloat(getComputedStyle(e).width.replace("px",""))}var o={inheritAttrs:!1,emits:["update:validation","on-focus","on-blur"],props:{mode:{type:String,default:r.G5},label:{type:String,default:null},labelKey:{type:String,default:null},placeholderKey:{type:String,default:null},tooltip:{type:[String,Object],default:null},hoverTooltip:{type:Boolean,default:!0},tooltipKey:{type:String,default:null},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:[String,Number],default:""},value:{type:[String,Number,Object],default:""},options:{default:null,type:Array},searchable:{default:!1,type:Boolean},filterable:{default:!0,type:Boolean},rules:{default:()=>[],type:Array,validator:e=>e.every((e=>["function"].includes(typeof e)))},requireDirty:{default:!0,type:Boolean}},data(){return{raised:this.mode===r.nW||!!`${this.value}`,focused:!1,blurred:null}},computed:{requiredField(){return this.required||this.rules.some((e=>"required"===e?.name))},empty(){return!!`${this.value}`},isView(){return this.mode===r.nW},isDisabled(){return this.disabled||this.isView},isSearchable(){const{searchable:e,canPaginate:t}=this;if(t)return!0;const n=this.options||[];return!!(e||n.length>=10)},isFilterable(){const{filterable:e,canPaginate:t}=this;return!t&&e},validationMessage(){const e=this.rules.find((e=>"required"===e?.name)),t=[],n=this?.value;if(e&&this.blurred&&!this.focused){const t=e(n);if(t)return this.$emit("update:validation",!1),t}for(const r of this.rules){const e=r(n);e&&"required"!==r.name&&t.push(e)}return t.length>0&&(this.blurred||this.focused||!this.requireDirty)?(this.$emit("update:validation",!1),t.join(", ")):void this.$emit("update:validation",!0)}},methods:{resizeHandler(){this.$nextTick((()=>{const e=this.$refs.select.querySelector("ul.vs__dropdown-menu"),t=a(this.$refs.select)||0,n=a(e)||0;n<t&&i(e,t)}))},onFocus(){return this.$emit("on-focus"),this.onFocusLabeled()},onFocusLabeled(){this.raised=!0,this.focused=!0},onBlur(){return this.$emit("on-blur"),this.onBlurLabeled()},onBlurLabeled(){this.focused=!1,this.value||(this.raised=!1),this.blurred=Date.now()}}}},25192:function(e,t,n){"use strict";n.r(t);var r=n(41212),i=n(35664);describe("class Deployment",(()=>{describe("replicaSetId",(()=>{it.each([{relationships:[],expected:void 0},{relationships:[{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id"}],expected:"rel-id"},{relationships:[{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-1",message:"ReplicaSet is available. Replicas: 1"}],expected:"rel-id-1"},{relationships:[{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-1",message:"ReplicaSet is available. Replicas: 0"},{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-2",message:"ReplicaSet is available. Replicas: 1"}],expected:"rel-id-2"},{relationships:[{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-1",message:"Message without replicas count"},{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-2",message:"Another message without replicas count"}],expected:"rel-id-1"},{relationships:[{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-1",message:"ReplicaSet is available. Replicas: 0"},{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-2",message:"ReplicaSet is available. Replicas: 0"}],expected:"rel-id-1"},{relationships:[{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-1",message:"Message without replicas count"},{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-2",message:"ReplicaSet is available. Replicas: 0"}],expected:"rel-id-1"}])("replicaSetId",(({relationships:e,expected:t})=>{const n={id:"any-id",type:i.oU.DEPLOYMENT,metadata:{name:"any-name",namespace:"any-namespace",uid:"any-uid",relationships:e}},a=new r["default"](n);expect(a.replicaSetId).toStrictEqual(t)}))}))}))},8432:function(e,t,n){"use strict";n.r(t);var r=n(43020);describe("class Cronjob",(()=>{it("should have no ownerReferences by default",(()=>{const e={id:"any-id",type:"batch.job",apiVersion:"batch/v1",kind:"Job",metadata:{name:"any-name",namespace:"any-namespace",uid:"any-uid"},spec:{jobTemplate:{}}},t={name:"any-name",namespace:"any-namespace",uid:"any-uid"},n=new r["default"](e);expect(n.metadata).toStrictEqual(t)})),describe("method runNow",(()=>{it("should populate job metadata",(async()=>{const e={id:"any-id",type:"batch.job",apiVersion:"batch/v1",kind:"Job",metadata:{name:"any-name",namespace:"any-namespace",uid:"any-uid"},spec:{jobTemplate:{}}},t=Date.now(),n={name:`${e.metadata.name}-${t}`,namespace:e.metadata.namespace,ownerReferences:[{apiVersion:"batch/v1",controller:!0,kind:"Job",name:e.metadata.name,uid:e.metadata.uid}],uid:e.metadata.uid},i=()=>({...e,save:jest.fn(),goToDetail:jest.fn()}),a=new r["default"](e,{dispatch:i});jest.useFakeTimers().setSystemTime(t),jest.spyOn(a,"$dispatch").mockImplementation(i),await a.runNow(),expect(a.metadata).toStrictEqual(n)})),it("should redirect to another page",(async()=>{const e={metadata:{name:"any-name"},spec:{jobTemplate:{}}},t=jest.fn(),n=()=>({...e,save:jest.fn(),goToDetail:t}),i=new r["default"](e,{dispatch:n});jest.spyOn(i,"$dispatch").mockImplementation(n),await i.runNow(),expect(t).toHaveBeenCalledWith()}))}))}))},94226:function(e,t,n){"use strict";n.r(t);var r=n(65502),i=n(97707),a=n(2841);const o="1.16.2",s="1.16.1",l="cert-manager",c={repoName:"appCo",home:"https://apps.rancher.io/applications/cert-manager"},u={repoName:"certManagerOfficial",home:"https://cert-manager.io",oldHome:"https://github.com/jetstack/cert-manager"},d={name:l,repoName:c.repoName,versions:[{version:o,home:c.home,repoName:c.repoName,annotations:{}},{version:s,home:c.home,repoName:c.repoName,annotations:{}}]},h={name:l,repoName:c.repoName,versions:[{version:o,home:c.home,repoName:c.repoName,annotations:{}},{version:s,home:c.home,repoName:c.repoName,annotations:{}}]},p={name:l,repoName:u.repoName,versions:[{version:o,home:u.home,repoName:u.repoName,annotations:{}},{version:s,home:u.oldHome,repoName:u.repoName,annotations:{}}]},f={name:l,repoName:u.repoName,versions:[{version:o,home:u.home,repoName:u.repoName,annotations:{}},{version:s,home:u.oldHome,repoName:u.repoName,annotations:{}}]},m={metadata:{annotations:{[a.W8.SOURCE_REPO_NAME]:c.repoName},name:l,home:c.home,version:s}},g={metadata:{name:l,home:u.oldHome,version:s}},v={metadata:{annotations:{[a.W8.SOURCE_REPO_NAME]:u.repoName},name:l,home:u.oldHome,version:s}};describe("class CatalogApp",(()=>{describe("upgradeAvailable",(()=>{const e=[[g,[],i.I0.NO_UPGRADE],[g,[d],i.I0.NO_UPGRADE],[g,[d,h],i.I0.NO_UPGRADE],[g,[d,h,p],i.I0.SINGLE_UPGRADE],[m,[],i.I0.NO_UPGRADE],[m,[d],i.I0.SINGLE_UPGRADE],[m,[d,p],i.I0.SINGLE_UPGRADE],[m,[d,h],i.I0.MULTIPLE_UPGRADES],[v,[],i.I0.NO_UPGRADE],[v,[p],i.I0.SINGLE_UPGRADE],[v,[p,d],i.I0.SINGLE_UPGRADE],[v,[p,f],i.I0.MULTIPLE_UPGRADES]];it.each(e)("should return the correct upgrade status",((e,t,n)=>{const i=new r["default"]({spec:{chart:e}},{rootGetters:{"catalog/chart":()=>t,currentCluster:{workerOSs:["linux"]},"prefs/get":()=>!1}});expect(i.upgradeAvailable).toBe(n)}))}))}))},13573:function(e,t,n){"use strict";n.r(t);var r=n(16787);describe("class NormanCluster",(()=>{const e=jest.fn((()=>"abc")),t={rootGetters:{"i18n/t":e},dispatch:jest.fn()};it("should return empty arrays of system labels and system annotations if cluster labels and annotations are undefined",(()=>{const e=new r["default"]({},t);expect(e.systemLabels).toStrictEqual([]),expect(e.systemAnnotations).toStrictEqual([])})),it("should list all the cluster's annotation keys that contain coreos.com, cattle.io, k3s.io, kubernetes.io, or k3s.io",(()=>{const e=["cattle.io/test","coreos.com","test.cattle.io/something","kubernetes.io/test"],n=new r["default"]({annotations:{"cattle.io/test":"abc","coreos.com":"abc","k3s.io/test":"abc","test.cattle.io/something":"abc","kubernetes.io/test":"abc","other-label":"abc"}},t);expect(e.find((e=>!n.systemAnnotations.includes(e)))).toBeUndefined()})),it("should list all the cluster's label keys that contain io.cattle.lifecycle, kubernetes.io, cattle.io, or k3s.io",(()=>{const e=["cattle.io/test","test.io.cattle.lifecycle","test.kubernetes.io/test","k3s.io/test"],n=new r["default"]({labels:{"cattle.io/test":"abc","test.io.cattle.lifecycle":"abc","k3s.io/test":"abc","test.kubernetes.io/test":"abc","other-label":"abc"}},t);expect(e.find((e=>!n.systemLabels.includes(e)))).toBeUndefined()}))}))},84264:function(e,t,n){"use strict";n.r(t);var r=n(5904);describe("class FleetCluster",(()=>{it("should provide bundleInfo if correct data is present",(()=>{const e=new r["default"]({metadata:{},spec:{},status:{display:{readyBundles:"0/1"}}});expect(e.bundleInfo.ready).toBe(0),expect(e.bundleInfo.total).toBe(1),expect(Object.getOwnPropertyNames(e.bundleInfo)).not.toContain("noValidData")})),describe("should provide bundleInfo with error",(()=>{it.each([[""],["/"],["1/"],["/1"],["1/1/2"],["a/1"],["a/b"],["any-string"],["any-string1/string2"]])('with multiple scenarios of wrongful "readyBundles" data',(e=>{const t=new r["default"]({metadata:{},spec:{},status:{display:{readyBundles:e}}});expect(Object.getOwnPropertyNames(t.bundleInfo)).toContain("noValidData")}))}))}))},44282:function(e,t,n){"use strict";n.r(t);var r=n(65751);const i={commit:"foo",conditions:[{error:!0,lastUpdateTime:"2025-02-28T15:39:52Z",message:"Modified(1) [Cluster fleet-local/local]; configmap.v1 lots-a/test-config-one missing",status:"False",transitioning:!0,type:"Ready"},{error:!1,lastUpdateTime:"2025-02-28T15:36:25Z",status:"True",transitioning:!1,type:"GitPolling"},{error:!1,lastUpdateTime:"2025-02-28T15:36:25Z",status:"False",transitioning:!1,type:"Reconciling"},{error:!1,lastUpdateTime:"2025-02-28T15:36:25Z",status:"False",transitioning:!1,type:"Stalled"},{error:!1,lastUpdateTime:"2025-02-28T15:36:25Z",status:"True",transitioning:!1,type:"Accepted"}],desiredReadyClusters:1,display:{readyBundleDeployments:"1/2",state:"Modified"},gitJobStatus:"Current",lastPollingTriggered:"2025-02-28T16:08:39Z",observedGeneration:1,perClusterResourceCounts:{"fleet-local/local":{desiredReady:2,missing:1,modified:0,notReady:0,orphaned:0,ready:2,unknown:0,waitApplied:0}},readyClusters:0,resourceCounts:{desiredReady:2,missing:1,modified:0,notReady:0,orphaned:0,ready:2,unknown:0,waitApplied:0},resources:[{apiVersion:"v1",id:"lots-a/test-config-one",kind:"ConfigMap",name:"test-config-one",namespace:"lots-a",perClusterState:{missing:["fleet-local/local"]},state:"Missing",type:"configmap"},{apiVersion:"v1",id:"lots-a/test-config-two",kind:"ConfigMap",name:"test-config-two",namespace:"lots-a",perClusterState:{ready:["fleet-local/local"]},state:"Ready",type:"configmap"}],summary:{desiredReady:2,modified:1,nonReadyResources:[{bundleState:"Modified",modifiedStatus:[{apiVersion:"v1",kind:"ConfigMap",missing:!0,name:"test-config-one",namespace:"lots-a"}],name:"lots-a-scale-lotsofbundles-one"}],ready:1}};describe("class GitRepo",(()=>{describe("resourcesStatuses",(()=>{it.each([[]])("foobat",(()=>{jest.spyOn(r["default"].prototype,"$getters","get").mockReturnValue({byId:jest.fn()}),jest.spyOn(r["default"].prototype,"targetClusters","get").mockReturnValue([{id:"fleet-local/local",metadata:{labels:{}}}]);const e=new r["default"]({metadata:{namespace:"fleet-local"},spec:{},status:i}),t=e.resourcesStatuses,n=t.find((e=>"lots-a/test-config-one"===e.id));expect(n.state).toStrictEqual("missing"),expect(n.detailLocation).toBeUndefined();const a=t.find((e=>"lots-a/test-config-two"===e.id));expect(a.state).toStrictEqual("ready"),expect(a.detailLocation).toBeDefined()}))}))}))},58221:function(e,t,n){"use strict";n.r(t);var r=n(16544);jest.mock("@shell/utils/clipboard",(()=>({copyTextToClipboard:jest.fn((()=>Promise.resolve({})))}))),describe("class MgmtCluster",(()=>{describe("provisioner",(()=>{const e=[[{provider:"rke",driver:"imported"},"imported"],[{provider:"k3s",driver:"K3S"},"K3S"],[{provider:"aks",driver:"AKS"},"AKS"],[{},"imported"]];it.each(e)("should return provisioner value properly based on the props data",((e,t)=>{const n=new r["default"]({status:e});expect(n.provisioner).toBe(t)}))}))}))},25529:function(e,t,n){"use strict";n.r(t);var r=n(77917);describe("class MgmtNode",(()=>{const e="foo",t="bar",n=jest.fn((()=>t)),i={rootGetters:{"i18n/t":n}},a=()=>{jest.clearAllMocks()};it("should not return addresses if they are not present in the resource status, the internalNodeStatus, or the rkeNode key in status",(()=>{const e=new r["default"]({status:{}});expect(e.addresses).toStrictEqual([]),a()})),describe("should return addresses",(()=>{const t=[e];it("if they are present directly on the resource status",(()=>{const e=new r["default"]({status:{addresses:t}});expect(e.addresses).toStrictEqual(t)})),it('if they are not present directly on the resource status but are on "status.internalNodeStatus"',(()=>{const e=new r["default"]({status:{internalNodeStatus:{addresses:t}}});expect(e.addresses).toStrictEqual(t)}))})),describe("should return an internalIp",(()=>{const t=[{type:"InternalIP",address:e}],n=e;it("if addresses includes an object with an appropriate type and address",(()=>{const n=new r["default"]({status:{addresses:t}});expect(n.internalIp).toStrictEqual(e)})),it("if internalNodeStatus.addresses includes an object with an appropriate type and address",(()=>{const n=new r["default"]({status:{internalNodeStatus:{addresses:t}}});expect(n.internalIp).toStrictEqual(e)})),it("if addresses and internalNodeStatus.addresses do not provide an internal ip and the status includes an rkeNode key with an appropriate type and address",(()=>{const e=new r["default"]({status:{rkeNode:{internalAddress:n}}});expect(e.internalIp).toStrictEqual(n)}))})),describe("should return an externalIp",(()=>{const t=[{type:"ExternalIP",address:e}],n=e;it("if addresses includes an object with an appropriate type and address",(()=>{const n=new r["default"]({status:{addresses:t}});expect(n.externalIp).toStrictEqual(e)})),it("if internalNodeStatus.addresses includes an object with an appropriate type and address",(()=>{const n=new r["default"]({status:{internalNodeStatus:{addresses:t}}});expect(n.externalIp).toStrictEqual(e)})),it("if addresses and internalNodeStatus.addresses do not provide an external ip and the status includes an rkeNode key with an appropriate type and address",(()=>{const e=new r["default"]({status:{rkeNode:{address:n}}});expect(e.externalIp).toStrictEqual(n)}))})),describe("should return an appropriate message",(()=>{it("if there is no internalIp to display",(()=>{const e=new r["default"]({status:{}},i);expect(e.internalIp).toStrictEqual(t),expect(n).toHaveBeenCalledTimes(1),expect(n).toHaveBeenCalledWith("generic.none"),a()})),it("if there is no externalIp to display",(()=>{const e=new r["default"]({status:{}},i);expect(e.externalIp).toStrictEqual(t),expect(n).toHaveBeenCalledTimes(1),expect(n).toHaveBeenCalledWith("generic.none"),a()}))})),describe("canScaleDown",(()=>{const e="test",t="test/id",i={worker:{worker:!0,etcd:!1,controlPlane:!1},etcd:{worker:!1,etcd:!0,controlPlane:!1},controlPlane:{worker:!1,etcd:!1,controlPlane:!0},etcdAndControlPlane:{worker:!1,etcd:!0,controlPlane:!0},all:{worker:!0,etcd:!0,controlPlane:!0}},a={id:"01",isWorker:!0,isControlPlane:!1,isEtcd:!1},o={id:"02",isWorker:!1,isControlPlane:!1,isEtcd:!0},s={id:"03",isWorker:!1,isControlPlane:!0,isEtcd:!1},l={id:"03",isWorker:!1,isControlPlane:!0,isEtcd:!0},c={id:"04",isWorker:!0,isControlPlane:!0,isEtcd:!0},u={rootGetters:{"rancher/byId":()=>({actions:{scaledown:"scaledown"}}),"i18n/t":n}};it.each([[{spec:i.worker,nodes:[a]},!0],[{spec:i.etcd,nodes:[o,o,s]},!0],[{spec:i.etcdAndControlPlane,nodes:[l,l]},!0],[{spec:i.etcdAndControlPlane,nodes:[l]},!1],[{spec:i.all,nodes:[c]},!1],[{spec:i.all,nodes:[c,c]},!0]])("should return canScaleDown properly",((n,i)=>{const{spec:a,nodes:o}=n,s=new r["default"]({spec:a,id:t},{...u,getters:{all:()=>[{mgmtClusterId:e,nodes:o}]}});expect(s.canScaleDown).toStrictEqual(i)}))}))}))},94479:function(e,t,n){"use strict";n.r(t);var r=n(68959);describe("class MgmtNodePool",(()=>{describe("canScaleDownPool",(()=>{const e="test",t="test/id",n={worker:{worker:!0,etcd:!1,controlPlane:!1},etcd:{worker:!1,etcd:!0,controlPlane:!1},controlPlane:{worker:!1,etcd:!1,controlPlane:!0},etcdAndControlPlane:{worker:!1,etcd:!0,controlPlane:!0},all:{worker:!0,etcd:!0,controlPlane:!0}},i={id:"01",isWorker:!0,isControlPlane:!1,isEtcd:!1},a={id:"02",isWorker:!1,isControlPlane:!1,isEtcd:!0},o={id:"03",isWorker:!1,isControlPlane:!0,isEtcd:!1},s={id:"03",isWorker:!1,isControlPlane:!0,isEtcd:!0},l={id:"04",isWorker:!0,isControlPlane:!0,isEtcd:!0},c={rootGetters:{"rancher/byId":()=>({actions:{scaledown:"scaledown"}})}};it.each([[{spec:n.worker,nodes:[i]},!0],[{spec:n.etcd,nodes:[a,a,o]},!0],[{spec:n.etcdAndControlPlane,nodes:[s,s]},!0],[{spec:n.etcdAndControlPlane,nodes:[s]},!1],[{spec:n.all,nodes:[l]},!1],[{spec:n.all,nodes:[l,l]},!0]])("should return canScaleDownPool properly",((n,i)=>{const{spec:a,nodes:o}=n,s=new r["default"]({spec:a,id:t},{...c,getters:{all:()=>[{mgmtClusterId:e,nodes:o}]}});expect(s.canScaleDownPool()).toStrictEqual(i)}))}))}))},68882:function(e,t,n){"use strict";n.r(t);var r=n(67867),i=n(2841),a=n(71025);describe("class Namespace",(()=>{describe("checking if isSystem",(()=>{it.each([["whatever1",i.eG,!0],["whatever2","any-annotation",!1],["whatever3","",!1]])("should return true if it has the correct annotation",((e,t,n)=>{const i=new r["default"]({});i.metadata={...i.metadata,name:e},t&&(i.metadata.annotations={[t]:"true"}),expect(i.isSystem).toBe(n)}));const e=[];a.A.forEach((t=>{e.push([t,!0])})),e.push(["c-whatever-system",!1]),e.push(["cattle-whatever",!1]),e.push(["",!1]),it.each(e)("should return true if it belongs to the curated list of namespaces",((e,t)=>{const n=new r["default"]({});n.metadata={...n.metadata,name:e},expect(n.isSystem).toBe(t)})),it.each([["cattle-c-whatever-system",!0],["cattle-whatever",!1],["c-whatever-system",!1]])('should return true if starts with "cattle-" end with "-system',((e,t)=>{const n=new r["default"]({});n.metadata={...n.metadata,name:e},expect(n.isSystem).toBe(t)}))})),it.todo("should check if isFleetManaged"),describe("checking if isObscure",(()=>{it.each([["c-whatever-system","management.cattle.io/system-namespace",!0],["p-whatever",i.eG,!0],["p-whatever","",!1],["","",!1]])("should return a value if is system AND has the correct prefix",((e,t,n)=>{const i=new r["default"]({});i.metadata={...i.metadata,name:e},t&&(i.metadata.annotations={[t]:"true"}),expect(i.isObscure).toBe(n)}))})),it.each([["foo:bar","bar"],["",null]])("given %p annotation, projectId should be %p",((e,t)=>{const n=new r["default"]({});n.metadata={name:"",annotations:{"field.cattle.io/projectId":e}},expect(n.projectId).toBe(t)})),it.todo("should return the project"),it.todo("should return the groupByLabel with i18n"),it.todo("should return the project name with i18n"),it.todo("should return the projectNameSort"),it.todo("should check if istioInstalled"),it.todo("should check if injectionEnabled"),describe("handling Istio labels",(()=>{const e=jest.fn();it.each([{metadata:{name:"",labels:{"istio-injection":"whatever"}},save:e},[{metadata:{name:"",labels:{"istio-injection":"whatever"}},save:e}]])("should handle both data as list and single object and save",(t=>{const n=new r["default"]({});n.enableAutoInjection(t),expect(e).toHaveBeenCalledWith()})),it("should add auto injection label as enable",(()=>{const t={metadata:{name:"",labels:{"istio-injection":"whatever"}},save:e},n=new r["default"]({});n.enableAutoInjection(t),expect(t.metadata.labels["istio-injection"]).toBe("enabled")})),it("should remove label on disable",(()=>{const t={metadata:{name:"",labels:{"istio-injection":"whatever"}},save:e},n=new r["default"]({});n.enableAutoInjection(t,!1),expect(t.metadata.labels["istio-injection"]).toBeUndefined()}))})),it.todo("should disableAutoInjection"),it.todo("should check if confirmRemove"),describe("handling listLocation",(()=>{it.each([["c-cluster-product-projectsnamespaces",!0],["c-cluster-product-resource",!1]])("should return the name %p if is Rancher (%p)",((e,t)=>{const n=new r["default"]({});jest.spyOn(n,"$rootGetters","get").mockReturnValue({isRancher:t,currentProduct:{inStore:""}}),expect(n.listLocation.name).toBe(e)})),it("should return the name and resource if Harvester",(()=>{const e=new r["default"]({});jest.spyOn(e,"$rootGetters","get").mockReturnValue({isRancher:!0,currentProduct:{inStore:"harvester"}});const t={name:"harvester-c-cluster-projectsnamespaces",params:{resource:"namespace"}};expect(e.listLocation).toStrictEqual(t)}))})),it.todo("should return _detailLocation with a name"),it.todo("should return the resourceQuota"),it.todo("should set the resourceQuota as reactive Vue property"),it.todo("should reset project with cleanForNew")}))},4915:function(e,t,n){"use strict";n.r(t);var r=n(77917);describe("class Node",(()=>{const e="foo",t="bar",n=jest.fn((()=>t)),i={rootGetters:{"i18n/t":n}},a=()=>{jest.clearAllMocks()};it("should not return addresses if they are not present in the resource status",(()=>{const e=new r["default"]({status:{}});expect(e.addresses).toStrictEqual([]),a()})),describe("should return addresses",(()=>{const t=[e];it("if they are present directly on the resource status",(()=>{const e=new r["default"]({status:{addresses:t}});expect(e.addresses).toStrictEqual(t)}))})),describe("should return an internalIp",(()=>{const t=[{type:"InternalIP",address:e}];it("if addresses includes an object with an appropriate type and address",(()=>{const n=new r["default"]({status:{addresses:t}});expect(n.internalIp).toStrictEqual(e)}))})),describe("should return an externalIp",(()=>{const t=[{type:"ExternalIP",address:e}];it("if addresses includes an object with an appropriate type and address",(()=>{const n=new r["default"]({status:{addresses:t}});expect(n.externalIp).toStrictEqual(e)})),it("if internalNodeStatus.addresses includes an object with an appropriate type and address",(()=>{const n=new r["default"]({status:{internalNodeStatus:{addresses:t}}});expect(n.externalIp).toStrictEqual(e)}))})),describe("should return an appropriate message",(()=>{it("if there is no internalIp to display",(()=>{const e=new r["default"]({status:{}},i);expect(e.internalIp).toStrictEqual(t),expect(n).toHaveBeenCalledTimes(1),expect(n).toHaveBeenCalledWith("generic.none"),a()})),it("if there is no externalIp to display",(()=>{const e=new r["default"]({status:{}},i);expect(e.externalIp).toStrictEqual(t),expect(n).toHaveBeenCalledTimes(1),expect(n).toHaveBeenCalledWith("generic.none"),a()}))}))}))},29759:function(e,t,n){"use strict";n.r(t);var r=n(47685);describe("class ProvCluster",(()=>{const e={clusterName:"test",provisioner:"GKE",spec:{rkeConfig:{}},mgmt:{spec:{gkeConfig:{privateClusterConfig:{enablePrivateEndpoint:!0}}}}},t={clusterName:"test",provisioner:"EKS",spec:{rkeConfig:{}},mgmt:{spec:{eksConfig:{privateAccess:!0}}}},n={clusterName:"test",provisioner:"AKS",spec:{rkeConfig:{}},mgmt:{spec:{aksConfig:{privateCluster:!0}}}};describe("isHostedKubernetesProvider + isPrivateHostedProvider",(()=>{const i=[[e,!0],[t,!0],[n,!0]],a=()=>{jest.clearAllMocks()};it.each(i)("should return the isHostedKubernetesProvider and isPrivateHostedProvider values properly based on the props data",((e,t)=>{const n=new r["default"]({spec:e.spec});jest.spyOn(n,"mgmt","get").mockReturnValue(e.mgmt),jest.spyOn(n,"provisioner","get").mockReturnValue(e.provisioner),expect(n.isRke2).toBe(t),expect(n.isHostedKubernetesProvider).toBe(t),expect(n.isPrivateHostedProvider).toBe(t),a()}))})),describe("hasError",(()=>{const e=[{error:!1,lastUpdateTime:"2022-10-17T23:09:15Z",status:"True",transitioning:!1,type:"Ready"}],t=[{error:!0,lastUpdateTime:"2022-10-17T23:09:15Z",status:"False",message:"some-error-message",transitioning:!1,type:"Pending"}],n=[],i=[{error:!0,lastUpdateTime:"2022-10-17T23:09:15Z",status:"False",message:"some-error-message",transitioning:!1,type:"Pending"},{error:!1,lastUpdateTime:"2023-10-17T23:09:15Z",status:"True",transitioning:!1,type:"Ready"}],a=[{error:!1,lastUpdateTime:"2022-10-17T23:09:15Z",status:"True",transitioning:!1,type:"Ready"},{error:!0,lastUpdateTime:"2023-10-17T23:09:15Z",status:"False",message:"some-error-message",transitioning:!1,type:"Pending"}],o=[{error:!0,lastUpdateTime:"",status:"False",message:"some-error-message",transitioning:!1,type:"Pending"},{error:!1,lastUpdateTime:"2023-10-17T23:09:15Z",status:"True",transitioning:!1,type:"Ready"}],s=[["conditionsWithoutError",e,!1],["conditionsWithoutReady",t,!0],["noConditions",n,!1],["conditionsWithReadyLatest",i,!1],["conditionsWithErrorLatest",a,!0],["conditionsWithProblemInLastUpdateTimeProp",o,!1]],l=()=>{jest.clearAllMocks()};it.each(s)('should return the hasError value properly based on the "status.conditions" props data for testcase %p',((e,t,n)=>{const i={rootGetters:{"management/byId":jest.fn()}},a=new r["default"]({status:{conditions:t}},i);expect(a.hasError).toBe(n),l()}))}))}))},81453:function(e,t,n){"use strict";n.r(t);var r=n(2334);describe("class: schema:",(()=>{describe("parseType",(()=>{it.each([["array",void 0,["array"]],["map",void 0,["map"]],["io.cattle.provisioning.v1.Cluster.status",void 0,["io.cattle.provisioning.v1.Cluster.status"]],["array[string]",void 0,["array","string"]],["array",{subtype:"string"},["array","string"]],["map[string]",void 0,["map","string"]],["map",{subtype:"string"},["map","string"]],["array[io.cattle.provisioning.v1.Cluster.status]",void 0,["array","io.cattle.provisioning.v1.Cluster.status"]],["array",{subtype:"io.cattle.provisioning.v1.Cluster.status"},["array","io.cattle.provisioning.v1.Cluster.status"]],["map[io.cattle.provisioning.v1.Cluster.status]",void 0,["map","io.cattle.provisioning.v1.Cluster.status"]],["map",{subtype:"io.cattle.provisioning.v1.Cluster.status"},["map","io.cattle.provisioning.v1.Cluster.status"]]])("string: %p and field: %p ... should equal %p",((e,t,n)=>{expect((0,r.parseType)(e,t)).toStrictEqual(n)}))}))}))},19147:function(e,t,n){"use strict";n.r(t);var r=n(1133),i=n(24989);describe("class Secret",(()=>{describe("cleanForDownload",(()=>{it("should contains the type attribute if cleanForDownload",(async()=>{const e=new r["default"]({}),t="apiVersion: v1\nkind: Secret\nmetadata:\n name: my-secret\ntype: Opaque\n",n=await e.cleanForDownload(t);expect(n).toBe(t)})),it("should remove id, links and actions keys if cleanForDownload",(async()=>{const e=new r["default"]({}),t="apiVersion: v1\nkind: Secret\nmetadata:\n name: my-secret\n namespace: default\ntype: Opaque\n",n="id: test_id\nlinks:\n view: https://example.com\nactions:\n remove: https://example.com",i=`${t}\n${n}`,a=await e.cleanForDownload(i);expect(a).toBe(t)}))})),describe("supportsSshKnownHosts",(()=>{it.each([[!1,"type is not SSH","generic",{known_hosts:"S05PV05fSE9TVFM="}],[!1,"missing known_hosts",i.J.SSH,{}],[!1,"data is null",i.J.SSH,null],[!0,"type is SSH key and known_hosts exists",i.J.SSH,{known_hosts:"S05PV05fSE9TVFM="}]])("is %p if %p",((e,t,n,i)=>{const a=new r["default"]({_type:n,data:i}),o=a.supportsSshKnownHosts;expect(o).toBe(e)}))}))}))},66888:function(e,t,n){"use strict";n.r(t);var r=n(45858),i=n(96730);describe("class SteveSchema",(()=>{describe("schema diet",(()=>{it("schema Definitions",(async()=>{const e="cluster",t="steveTest";r["default"].reset(e);const n={id:t,metadata:{name:t},resourceFields:null,links:{self:`/v1/schemas/${t}`}},a={type:t,resourceFields:{a:{},b:{}}},o={a:{type:"a"},b:{type:"b"}},s=new r["default"](n,{dispatch:jest.fn().mockImplementation(((e,n)=>(expect(e).toBe("request"),expect(n.type).toBe("schemaDefinition"),expect(n.url).toBe(`/v1/schemaDefinitions/${t}`),{definitionType:t,definitions:{[t]:a,...o}}))),state:{config:{namespace:e}}});expect(s.schemaDefinition).toBeNull(),expect(s.schemaDefinitions).toBeNull(),expect(s.requiresResourceFields).toBeTruthy(),expect(s.hasResourceFields).toBeFalsy(),await s.fetchResourceFields(),expect(s.schemaDefinition).toStrictEqual(a),expect(s.schemaDefinitions).toStrictEqual(o),expect(s.requiresResourceFields).toBeTruthy(),expect(s.hasResourceFields).toBeTruthy(),(0,i.HC)(s,{...n}),expect(s.schemaDefinition).toStrictEqual(a),expect(s.schemaDefinitions).toStrictEqual(o),expect(s.requiresResourceFields).toBeTruthy(),expect(s.hasResourceFields).toBeTruthy()}))}))}))},77107:function(e,t,n){"use strict";n.r(t);var r=n(63809);describe("class StorageClass",(()=>{describe("checking if provisionerDisplay",(()=>{it.each([["kubernetes.io/azure-disk",!0],["kubernetes.io/portworx-volume",!0],["rancher.io/local-path",!1],["some-random-string-as-provisioner",!1]])("should NOT show a suffix IF they are built-in (on the PROVISIONER_OPTIONS list)",((e,t)=>{const n=new r["default"]({metadata:{},spec:{},provisioner:e});jest.spyOn(n,"$rootGetters","get").mockReturnValue({"i18n/t":jest.fn()}),expect(!!r.PROVISIONER_OPTIONS.find((t=>t.value===e))).toBe(t)}))}))}))},91624:function(e,t,n){"use strict";var r=n(70775);const i="dsaf",a={type:i,__rehydrate:"whatever",__clone:"whatever"},o="asdasd",s={...a,type:o,__clone:"whatever",metadata:{clusterName:"whatever",creationTimestamp:"whatever",deletionGracePeriodSeconds:"whatever",deletionTimestamp:"whatever",fields:"whatever",finalizers:"whatever",generateName:"whatever",generation:"whatever",initializers:"whatever",managedFields:"whatever",ownerReferences:"whatever",relationships:"whatever",selfLink:"whatever",state:"whatever",uid:"whatever",resourceVersion:"whatever"},spec:{versions:{schema:"whatever"}},links:"whatever",status:"whatever",stringData:"whatever"};describe("class: Workload",(()=>{describe("given custom workload keys",(()=>{const e="image",t={image:e,__active:"whatever",active:"whatever",_init:"whatever",error:"whatever"},n={...s,type:"123abv",__rehydrate:"whatever",__clone:"whatever",spec:{template:{spec:{containers:[t],initContainers:[t]}}}};n.metadata.name="abc",it("should keep internal keys",(()=>{const e=new r["default"](n,{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:jest.fn(),rootGetters:{"i18n/t":jest.fn()}});expect({...e}).toStrictEqual(n)})),describe("method: save",(()=>{it("should remove all the internal keys",(async()=>{const t=jest.fn(),i=new r["default"](n,{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:t,rootGetters:{"i18n/t":jest.fn(),"i18n/exists":()=>!0}}),a={metadata:{name:"abc",fields:"whatever",resourceVersion:"whatever",clusterName:"whatever",deletionGracePeriodSeconds:"whatever",generateName:"whatever"},spec:{template:{spec:{containers:[{image:e}],initContainers:[{image:e}]}}}};await i.save();const o={data:a,headers:{accept:"application/json","content-type":"application/json"},method:"post",url:void 0};expect(t).toHaveBeenCalledWith("request",{opt:o,type:n.type}),expect({...i}).toStrictEqual(n)}))}))}))}))},45858:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(35664),i=n(2334),a=n(23330),o=n(4364);const s={};class l extends i["default"]{static reset(e){delete s[e]}constructor(e,t,n,r){super(e,t,n,r),s[this.store]||(s[this.store]={ids:{},definitions:{}}),this.requiresResourceFields=null===this._resourceFields}get hasResourceFields(){return this.requiresResourceFields?!!this.schemaDefinition?.resourceFields:!!this._resourceFields}get resourceFields(){if(this.requiresResourceFields){if(!this.schemaDefinitionsIds)throw new Error(`Cannot find resourceFields for Schema ${this.id} (schemaDefinitions have not been fetched) `);if(!this.schemaDefinition)throw new Error(`No schemaDefinition for ${this.id} found (not in schemaDefinition response) `);return this.schemaDefinition.resourceFields}return this._resourceFields}set resourceFields(e){this._resourceFields=e,this.requiresResourceFields=null===this._resourceFields}async fetchResourceFields(e=0){if(!this.requiresResourceFields)return;if(this.schemaDefinition)return this.schemaDefinition;const t=this.schemaDefinitionUrl;if(!t)return void o.warn(`Unable to fetch schema definitions for ${this.id} (failed to find url of schema definition)`);if(e>=4)return void o.warn(`Unable to fetch schema definitions for ${this.id} (too many failed requests)`);let n;try{n=await this.$dispatch("request",{type:r.m4.SCHEMA_DEFINITION,url:t})}catch(i){return 500===i?._status||503===i?._status?(await(0,a.u)(2e3),this.fetchResourceFields(++e)):void o.warn(`Unable to fetch schema definitions for ${this.id}`,i)}return this.cacheSchemaDefinitionResponse(n),this.schemaDefinition}cacheSchemaDefinitionResponse(e){const{[e.definitionType]:t,...n}=e.definitions,r=this.store;s[r].ids[this.id]={self:t.type,others:Object.keys(n)},Object.entries(e.definitions).forEach((([e,t])=>{s[r].definitions[e]=t}))}get schemaDefinition(){return this.schemaDefinitionsIds?s[this.store].definitions[this.schemaDefinitionsIds.self]:null}get schemaDefinitions(){return this.schemaDefinitionsIds?this.schemaDefinitionsIds.others.reduce(((e,t)=>(e[t]=s[this.store].definitions[t],e)),{}):null}get schemaDefinitionUrl(){return this.links?.self?.replace("/schemas/","/schemaDefinitions/")}get store(){return this.$ctx.state?.config?.namespace}get schemaDefinitionsIds(){return s[this.store]?.ids[this.id]}}},81565:function(e,t,n){"use strict";var r,i=n(18110),a=n(34765);class o{isApplicable(e){return Array.isArray(e.namespaced)}isEnabled(e){const t=e["currentProduct"];if("cluster"!==t?.inStore)return!1;if(t?.showWorkspaceSwitcher)return!1;const n=(0,a.fD)(e);return!!n.forceNsFilterV2?.enabled}checkAndCreateParam(e){return this.isApplicable(e)?this.createParam(e.namespaced):""}createParam(e){if(!e||!e.length)return"";const t=e.reduce(((e,t)=>{const n=t.replace(i.os,"").replace(i.tA,"");return n.startsWith("-")?e.exclude.push(t.substring(1,t.length)):e.include.push(n),e}),{include:[],exclude:[]});let n="";return t.include.length&&(n=`${o.param}=${t.include.join(",")}`),t.exclude.length&&(n=`${o.param}!=${t.exclude.join(",")}`),n}}r=o,r.param="projectsornamespaces",t.A=new o},22915:function(e,t,n){"use strict";n.d(t,{C:function(){return o}});var r=n(76978),i=n(20246),a=n.n(i);function o(e,t){if(!e)return;const{rootKeys:n=["id","links","type","actions"],metadataKeys:i=["fields","relationships","state"],conditionKeys:o=["error","transitioning"]}=t||{},s=a().load(e);return(0,r.cX)(s,n),(0,r.cX)(s?.metadata,i),(s?.status?.conditions||[]).forEach((e=>(0,r.cX)(e,o))),a().dump(s)}},82637:function(e,t,n){"use strict";n.d(t,{U:function(){return h}});var r,i=n(50025),a=n(18110),o=n(68851),s=n(35664),l=n(2841),c=n(4364);class u{handlePrefAndSettingFilter(e,t,n){return e.reduce(((e,r)=>{const a=!t&&r.isObscure,o=!!n&&r.isSystem;return(a||o)&&e.push(i.eY.createSingleField({field:"metadata.namespace",value:r.name,equals:!1})),e}),[])}handleSystemOrUserFilter(e,t,n){const r=e.filter((e=>e.isSystem));return t?[i.eY.createMultipleFields(r.map((e=>new i.Js({field:"metadata.namespace",value:e.name}))))]:r.map((e=>i.eY.createSingleField({field:"metadata.namespace",value:e.name,equals:!1})))}handleSelectionFilter(e,t){const n=[new i.B6({projectOrNamespace:e})];return t?{projectsOrNamespaces:n,filters:e.filter((e=>e.startsWith(a.tA))).map((e=>i.eY.createSingleField({field:"metadata.namespace",value:e.replace(a.tA,""),equals:!1})))}:{projectsOrNamespaces:n,filters:[]}}}class d extends u{convertArrayPath(e){return e.startsWith("metadata.fields.")?`metadata.fields[${e.substring(16)}]`:e}createSortForPagination(e){return this.convertArrayPath(e)}createParamsFromNsFilter({allNamespaces:e,selection:t,isAllNamespaces:n,isLocalCluster:r,showDynamicRancherNamespaces:i,productHidesSystemNamespaces:o}){if(n&&i&&!o)return{projectsOrNamespaces:[],filters:[]};let s=[],l=[];i&&!o||(l=this.handlePrefAndSettingFilter(e,i,o));const c=t[0]===a.Rc,u=t[0]===a.bE;if(1===t.length&&(c||u))l.push(...this.handleSystemOrUserFilter(e,c,u));else{const e=this.handleSelectionFilter(t,r);s=e.projectsOrNamespaces,l.push(...e.filters)}return{projectsOrNamespaces:s,filters:l}}createParamsForPagination(e,t){if(!t.pagination)return;const n=[],r=this.convertPaginationParams(e,t.pagination.projectsOrNamespaces);if(r&&n.push(r),t.pagination.page&&n.push(`page=${t.pagination.page}`),t.pagination.pageSize&&n.push(`pagesize=${t.pagination.pageSize}`),t.pagination.sort?.length){const r={checked:new Array,invalid:new Array},i=t.pagination.sort.map((t=>(this.validateField(r,e,t.field),`${t.asc?"":"-"}${this.convertArrayPath(t.field)}`))).join(",");n.push(`sort=${i}`),r.invalid.length&&c.warn(`Pagination API does not support sorting '${e.id}' by the requested fields: ${(0,o.sb)(r.invalid).join(", ")}`)}if(t.pagination.filters?.length){const r=this.convertPaginationParams(e,t.pagination.filters);r&&n.push(r)}return n.join("&")}validateField(e,t,n){n&&(e.checked.includes(n)||(e.checked.push(n),t?.attributes.columns.find((e=>e.field.replace("$.","").replace("[",".").replace("]","")===n))||e.invalid.push(n)))}convertPaginationParams(e,t=[]){const n={checked:new Array,invalid:new Array},r=t.filter((e=>!!e.fields.length)).map((t=>{const r=t.fields.map((t=>{if(t.field){this.validateField(n,e,t.field);const r=encodeURIComponent(t.value),i=`${t.equals?"":"!"}${t.exact?"=":"~"}`;return`${this.convertArrayPath(t.field)}${i}${r}`}return t.value})).join(",");return`${t.param}${t.equals?"=":"!="}${r}`})),i=r.reduce(((e,t)=>(e[t]=!0,e)),{}),a=Object.keys(i).join("&");return n.invalid.length&&c.warn(`Pagination API does not support filtering '${e.id}' by the requested fields: ${(0,o.sb)(n.invalid).join(", ")}`),a}}r=d,r.VALID_FIELDS={"":[{field:"metadata.name"},{field:"metadata.namespace"},{field:"id"},{field:"metadata.state.name"},{field:"metadata.creationTimestamp"}],[s.NW]:[{field:"status.nodeInfo.kubeletVersion"},{field:"status.nodeInfo.operatingSystem"}],[s.Sm]:[{field:"spec.containers.image"},{field:"spec.nodeName"}],[s.Mc.NODE]:[{field:"status.nodeName"}],[s.Mc.NODE_POOL]:[{field:"spec.clusterName"}],[s.Mc.NODE_TEMPLATE]:[{field:"spec.clusterName"}],[s.Mc.CLUSTER]:[{field:"spec.internal"},{field:"spec.displayName"},{field:"status.provider"},{field:`metadata.labels["${l.qt.PROVIDER}]`},{field:"status.connected"}],[s.K5]:[{field:"metadata.labels[harvesterhci.io/cloud-init-template]"}],[s.CU]:[{field:"metadata.labels[field.cattle.io/projectId]"}],[s.qt.MACHINE]:[{field:"spec.clusterName"}],[s.ll]:[{field:"_type"},{field:"reason"},{field:"involvedObject.kind"},{field:"message"}],[s.W8.CLUSTER_REPO]:[{field:"spec.gitRepo"},{field:"spec.gitBranch"},{field:"metadata.annotations[clusterrepo.cattle.io/hidden]"}],[s.W8.OPERATION]:[{field:"status.action"},{field:"status.namespace"},{field:"status.releaseName"}],[s.qt.RANCHER_CLUSTER]:[{field:`metadata.labels[${l.qt.PROVIDER}]`},{field:"status.provider"},{field:"status.clusterName"},{field:`metadata.annotations[${l.qt.HUMAN_NAME}]`}],[s.YV]:[{field:"spec.type"}],[s.kf]:[],[s.wT]:[],[s.YH]:[{field:"spec.volumeName"}],[s.PV]:[{field:"status.reason"},{field:"spec.persistentVolumeReclaimPolicy"}],[s.fJ]:[{field:"provisioner"}],[s.W8.APP]:[{field:"spec.chart.metadata.name"}],[s.oU.CRON_JOB]:[{field:`metadata.annotations[${l.bs}]`}],[s.oU.DAEMON_SET]:[{field:`metadata.annotations[${l.bs}]`}],[s.oU.DEPLOYMENT]:[{field:`metadata.annotations[${l.bs}]`}],[s.oU.JOB]:[{field:`metadata.annotations[${l.bs}]`}],[s.oU.STATEFUL_SET]:[{field:`metadata.annotations[${l.bs}]`}]};const h={cluster:{resources:{enableAll:!1,enableSome:{enabled:[s.NW,s.ll,s.oU.CRON_JOB,s.oU.DAEMON_SET,s.oU.DEPLOYMENT,s.oU.JOB,s.oU.STATEFUL_SET,s.Sm,s.W8.APP,s.W8.CLUSTER_REPO,s.W8.OPERATION,s.wT,s.kf,s.YV,s.PV,s.K5,s.fJ,s.YH,s.bB,s.oU.REPLICA_SET,s.oU.REPLICATION_CONTROLLER],generic:!0}}},management:{resources:{enableAll:!1,enableSome:{enabled:[{resource:s.qt.RANCHER_CLUSTER,context:["home","side-bar"]},{resource:s.Mc.CLUSTER,context:["side-bar"]}],generic:!1}}}};t.A=new d},87102:function(e,t,n){"use strict";n.d(t,{j:function(){return l}});var r=n(9274);function i(e,t,n,i,a,o){return(0,r.openBlock)(),(0,r.createElementBlock)("span",{class:(0,r.normalizeClass)(["badge-state",e.bg])},[e.icon?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:(0,r.normalizeClass)(["icon",{[e.icon]:!0,"mr-5":!!e.msg}])},null,2)):(0,r.createCommentVNode)("",!0),(0,r.createTextVNode)((0,r.toDisplayString)(e.msg),1)],2)}var a=(0,r.defineComponent)({props:{value:{type:Object,default:null},color:{type:String,default:null},icon:{type:String,default:null},label:{type:String,default:null}},computed:{bg(){return this.value?.stateBackground||this.color},msg(){return this.value?.stateDisplay||this.label}}}),o=(n(18111),n(32701),n(47433));const s=(0,o.A)(a,[["render",i],["__scopeId","data-v-64b26d7f"]]);var l=s},9980:function(e,t,n){"use strict";n.d(t,{l:function(){return r.A}});var r=n(56943)},84937:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(9274);const i={class:"card-wrap"},a={class:"card-title","data-testid":"card-title-slot"},o={class:"card-body","data-testid":"card-body-slot"},s={key:0,class:"card-actions","data-testid":"card-actions-slot"};function l(e,t,n,l,c,u){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{id:"focus-trap-card-container-element",class:(0,r.normalizeClass)(["card-container",{"highlight-border":e.showHighlightBorder,"card-sticky":e.sticky}]),"data-testid":"card"},[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.renderSlot)(e.$slots,"title",{},(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.title),1)]))]),t[1]||(t[1]=(0,r.createElementVNode)("hr",null,null,-1)),(0,r.createElementVNode)("div",o,[(0,r.renderSlot)(e.$slots,"body",{},(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.content),1)]))]),e.showActions?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.renderSlot)(e.$slots,"actions",{},(()=>[(0,r.createElementVNode)("button",{class:"btn role-primary",onClick:t[0]||(t[0]=(...t)=>e.buttonAction&&e.buttonAction(...t))},(0,r.toDisplayString)(e.buttonText),1)]))])):(0,r.createCommentVNode)("",!0)])],2)}var c=n(82149),u=(0,r.defineComponent)({name:"Card",props:{title:{type:String,default:""},content:{type:String,default:""},buttonAction:{type:Function,default:()=>{}},buttonText:{type:String,default:"go"},showHighlightBorder:{type:Boolean,default:!0},showActions:{type:Boolean,default:!0},sticky:{type:Boolean,default:!1},triggerFocusTrap:{type:Boolean,default:!1}},setup(e){e.triggerFocusTrap&&(0,c.kS)("#focus-trap-card-container-element",{escapeDeactivates:!1,allowOutsideClick:!0})}}),d=(n(4976),n(47433));const h=(0,d.A)(u,[["render",l]]);var p=h},42200:function(e,t,n){"use strict";n.d(t,{S:function(){return r.A}});var r=n(82212)},79380:function(e,t,n){"use strict";n.d(t,{o:function(){return r.A}});var r=n(13238)},10196:function(e,t,n){"use strict";n.d(t,{a:function(){return r.A},z:function(){return i.A}});var r=n(59005),i=n(94799)},6879:function(e,t,n){"use strict";n.d(t,{V:function(){return r.A}});var r=n(59378)},49924:function(e,t,n){"use strict";n.d(t,{Z:function(){return r.A}});var r=n(95603)},46392:function(e,t,n){"use strict";n.d(t,{Bm:function(){return a},Ng:function(){return c},UQ:function(){return o},h1:function(){return l}});var r=n(68851);n(35664);const i=/^\$\.metadata\.fields\[([0-9]*)\]/;function a(e,t){const{headers:n,typeOptions:i,schema:a,columns:o,pagination:l}=t,{state:c,name:u,namespace:d,id:h,age:p}=o,{rootGetters:f}=e,m=i.showState?[c]:[],g=a.attributes||{},v=g.columns||[];if(n?.[a.id]?.length)return n[a.id].map((e=>{if("string"===typeof e){const t=(0,r.jq)(v,"name",e);return t?s(t,f,l,p):null}return e})).filter((e=>!!e));let b=!1;const y=g.namespaced||!1;for(const r of v)"name"===r.format?(b=!0,m.push(u||s(r,f,l,p)),y&&m.push(d)):m.push(s(r,f,l,p));b||((0,r.PT)(m,1,h||u),y&&(0,r.PT)(m,2,d));const w=m.find((e=>"age"===e.name.toLocaleLowerCase()));return w&&((0,r.Gj)(m,w),i.showAge&&m.push(w)),m}function o(e,t,n,r,i){if(!t)throw new Error(`Unable to create header for column '${e}' from schema: schema is missing`);const a=t.attributes.columns.find((t=>t.name===e));if(!a)throw new Error(`Unable to find column '${e}' in schema '${t.id}'`);return s(a,n,r,i)}function s(e,t,n,r){let i,a,o;if((""===e.format||"date"===e.format)&&"Age"===e.name&&r)return r;"date"!==e.format&&"date"!==e.type||(i="Date",a=120,o={multiline:!0}),"number"!==e.type&&"int"!==e.type||(i="Number");const s=e.name.includes(" ")?e.name.split(" ").map((e=>e.charAt(0).toUpperCase()+e.substring(1))).join(""):e.name,c=t["i18n/exists"],u=t["i18n/t"],d=`tableHeaders.${s.charAt(0).toLowerCase()+s.slice(1)}`,h=e.description||"",p=h&&"."===h[h.length-1]?h.slice(0,-1):h,f=l(e,!1),m=n?f:l(e,!0);return{name:e.name.toLowerCase(),label:c(d)?u(d):e.name,value:m,sort:[f],search:f,formatter:i,formatterOpts:o,width:a,tooltip:p}}function l(e,t=!0){const n=e.field.startsWith(".")?`$${e.field}`:e.field,r=n.match(i);if(r&&2===r.length){const e=parseInt(r[1],10);return t?t=>t.metadata?.fields?.[e]:`metadata.fields.${e}`}return n}const c=(e,t)=>"function"===typeof e?!!t&&e(t):e},15328:function(e,t,n){"use strict";n.d(t,{c:function(){return r},w:function(){return i}});const r={GROUP:"group",DIVIDER:"divider",NONE:"none"},i=[r.GROUP,r.DIVIDER]},50025:function(e,t,n){"use strict";n.d(t,{B6:function(){return s},Js:function(){return i},eY:function(){return o},gR:function(){return l}});var r=n(18110);class i{constructor({field:e,value:t,equals:n=!0,exact:r=!0}){this.field=e,this.value=t,this.equals=n,this.exact=r}}class a{constructor({param:e,equals:t=!0,fields:n=[]}){this.param=e,this.equals=t,this.fields=n}}class o extends a{constructor({equals:e=!0,fields:t=[]}){super({param:"filter",equals:e,fields:t})}static createSingleField(e){return new o({fields:[new i(e)]})}static createMultipleFields(e){return new o({fields:e})}}class s extends a{constructor({equals:e=!0,projectOrNamespace:t=[]}){const n=t.map((e=>new i({value:e.replace(r.os,"").replace(r.tA,"")})));super({param:"projectsornamespaces",equals:e,fields:n})}}class l{constructor({page:e=1,pageSize:t=10,sort:n=[],filters:r=[],projectsOrNamespaces:i=[]}){this.page=e,this.pageSize=t,this.sort=n,this.filters=r?Array.isArray(r)?r:[r]:[],this.projectsOrNamespaces=i?Array.isArray(i)?i:[i]:[]}}},39669:function(e,t,n){"use strict";n.d(t,{c:function(){return r}});const r={TABLET:"tablet",LAPTOP:"laptop",DESKTOP:"desktop"}},68851:function(e,t,n){"use strict";n.d(t,{$M:function(){return s},Gj:function(){return o},IU:function(){return p},P1:function(){return v},PG:function(){return l},PT:function(){return u},WP:function(){return m},Wq:function(){return h},cn:function(){return c},cy:function(){return d},jq:function(){return g},oQ:function(){return w},sb:function(){return y},yI:function(){return b}});var r=n(13182),i=n.n(r),a=n(76978);function o(e,t){const n=e.indexOf(t);return n>=0&&e.splice(n,1),e}function s(e,t){let n,r=[];for(n=0;n<t.length;n++){let i=e.indexOf(t[n]);while(-1!==i)r.push(i),i=e.indexOf(t[n],i+1)}if(!r.length)return e;r=r.sort(((e,t)=>e-t));const i=[];let a,o;while(r.length){a=r.shift(),o=a;while(r.length&&r[0]===o+1)o=r.shift();i.push({start:a,end:o})}for(n=i.length-1;n>=0;n--){const{start:t,end:r}=i[n];e.splice(t,r-t+1)}return e}function l(e,t){const n=e.indexOf(t);-1===n&&e.push(t)}function c(e,t){const n=[];for(const r of t)e.includes(r)||n.includes(r)||n.push(r);e.push(...n)}function u(e,t,...n){e.splice(t,0,...n)}function d(e){return Array.isArray(e)}function h(e,t,n=1){if(t<0)throw new Error("Index too low");if(t+n>e.length)throw new Error("Index + length too high");return e.splice(t,n),e}function p(e){e.splice(0,e.length)}function f(e,t,n,r){return t=t||[],"object"===typeof n?t[e]((e=>{for(const t in n){const r=n[t],i=(0,a.Jt)(e,t);if("undefined"===typeof r){if(!i)return!1}else if(i!==r)return!1}return!0})):void 0===r?t[e]((e=>!!(0,a.Jt)(e,n))):t[e]((e=>(0,a.Jt)(e,n)===r))}function m(e,t,n){return f("filter",e,t,n)}function g(e,t,n){return f("find",e,t,n)}function v(e,t){return 0===i()(e,t).length}function b(e,t,n=!1){if(!e&&!t)return!1;if(e?.length!==t?.length)return!1;if(n){const n={};t.forEach(((e,t)=>{n[t]=!1}));for(let r=0;r<e.length;r++){const i=e[r],o=t.findIndex(((e,t)=>(0,a.n4)(e,i)&&!n[t]));if(!(o>=0))return!1;n[o]=!0}}else for(let r=0;r<e.length;r++)if(!(0,a.n4)(e[r],t[r]))return!1;return!0}function y(e){const t=[];return c(t,e),t}function w(e){const t=e.reduce(((e,t)=>(Object.keys(t.metadata.labels).forEach((t=>e[t]=!0)),e)),{});return Object.keys(t).sort()}},23330:function(e,t,n){"use strict";n.d(t,{f:function(){return i},u:function(){return a}});var r=n(4364);const i=(e,t="",n=3e6,i=500,a=!1)=>{return o("Starting wait for",t),new Promise(((r,a)=>{e()&&(o("Wait for",t||"unknown","done immediately"),r(void 0));const s=setTimeout((()=>{if(o("Wait for",t,"timed out"),clearInterval(l),clearTimeout(s),!t)throw new Error(`waitFor timed out after ${n/1e3} seconds`);a(new Error(`Failed waiting for: ${t}`))}),n),l=setInterval((()=>{e()?(o("Wait for",t,"done"),clearInterval(l),clearTimeout(s),r(void 0)):t&&o("Wait for",t,"not done yet")}),i)}));function o(...e){a&&r.log(...e)}},a=e=>new Promise((t=>setTimeout(t,e)))},40207:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});const r={enabled:!1,enabledInterval:!0,interval:300,enabledOnNavigate:!0,ageThreshold:120,countThreshold:500}},90599:function(e,t,n){"use strict";var r,i=n(9262),a=n(35664),o=n(40207),s=n(4364);class l{constructor(){this.cachedGcPrefs=o.W,this.cachedGcPrefsStamp="",this.debugLog=(...e)=>{l.ENABLE_DEBUG_LOGGING&&s.debug("GC",...e)},this.gcLastRun=0,this.getUiPerfGarbageCollection=e=>{const t=e.management.types[a.Mc.SETTING]?.list?.find((e=>e.id===i.HG.UI_PERFORMANCE));if(!t||!t.value)return;const n=`${t.metadata.generation}-${t.metadata.resourceVersion}`;if(this.cachedGcPrefsStamp!==n){this.debugLog(`Updating ${i.HG.UI_PERFORMANCE} cache`),this.cachedGcPrefsStamp=n;const e=JSON.parse(t.value);this.cachedGcPrefs=e.garbageCollection}return this.cachedGcPrefs},this.lastAccessedCache={},this.lastRouteChange=0}gcEnabledAll(e,t){return this.gcEnabledForStore(e.state)&&this.gcEnabledSetting(e)&&this.gcEnabledForType(e,t)}gcEnabledSetting(e){const{rootState:t}=e,n=this.getUiPerfGarbageCollection(t);return n?.enabled}gcEnabledForStore(e){return e?.config?.supportsGc}gcEnabledForType(e,t){const{getters:n}=e;return!(!t||n.gcIgnoreTypes[t])}gcEnabledInterval(e){const{rootState:t}=e,n=this.getUiPerfGarbageCollection(t);return{enabled:n?.enabledInterval,interval:n?.interval||0}}gcEnabledRoute(e){const{rootState:t}=e,n=this.getUiPerfGarbageCollection(t);return n?.enabledOnNavigate}garbageCollect(e,t={}){const n=(new Date).getTime();if(null===this.gcLastRun||n-this.gcLastRun<l.GC_RE_RUN_GAP)return void this.debugLog("Skipping (running or recently run)",this.gcLastRun?new Date(this.gcLastRun):"running");this.gcLastRun=null;const r={};try{const{getters:i,rootState:o,dispatch:s}=e;if(!o.clusterReady)return this.debugLog("Skipping (cluster not ready)"),void(this.gcLastRun=(new Date).getTime());this.debugLog("------ Started ------");const l=this.getUiPerfGarbageCollection(o);if(!l)return;const c=1e3*l.ageThreshold,u=l.countThreshold;this.debugLog(`Max Age: ${c}. Max Count: ${u}`);const d=e.state.config.namespace;Object.entries(this.lastAccessedCache[d]||{}).forEach((([o,l])=>{if(!l)return void this.debugLog(`${o}: Skipping (no accessed time)`);if(!this.gcEnabledForType(e,o))return void this.debugLog(`${o}: Skipping (type ignored by store)`);if(t[o])return void this.debugLog(`${o}: Skipping (navigating to type)`);if(n-l<=c)return void this.debugLog(`${o}: Skipping (recently accessed)`);if(void 0!==this.lastRouteChange&&this.lastRouteChange<l)return void this.debugLog(`${o}: Skipping (used in current route/page)`);const d=i.all(a.i2)[0].counts[o]?.summary.count,h=d??0;void 0===h||h<u?this.debugLog(`${o}: Skipping (too few of resource)`):(this.debugLog(`${o}: Removing from store`),s("forgetType",o),r[o]=h)})),this.gcLastRun=(new Date).getTime()}catch(i){this.debugLog(": Error",i),this.gcLastRun=(new Date).getTime()}Object.keys(r).length>0&&s.info("Garbage Collected Resources",r),this.debugLog("------ Finished ------")}gcUpdateLastAccessed(e,t){if(!this.gcEnabledAll(e,t))return;const n=e.state.config.namespace;this.lastAccessedCache[n]||(this.lastAccessedCache[n]={}),this.lastAccessedCache[n][t]=(new Date).getTime()}gcUpdateRouteChanged(){this.lastRouteChange=(new Date).getTime()}gcResetStore(e){const t=e.config.namespace;delete this.lastAccessedCache[t],this.debugLog("Forgetting Store:",t)}gcResetType(e,t){const n=e.config.namespace;this.lastAccessedCache[n]&&(delete this.lastAccessedCache[n][t],this.debugLog("Forgetting Type:",n,t))}}r=l,r.ENABLE_DEBUG_LOGGING=!1,r.GC_RE_RUN_GAP=5e3;const c=new l;t.A=c},15092:function(e,t,n){"use strict";var r=n(18110),i=n(68851),a=n(76978),o=n(95265),s=n(34765),l=n(82637);class c{constructor(){this.validNsProjectFilters=[r.tj,r.Rc,r.bE,r.Rc,r.T6.NAMESPACE,r.T6.PROJECT,r.x8,r.TD]}getSettings({rootGetters:e}){const t=(0,s.fD)(e);return t.serverPagination}getStoreSettings(e){const t=void 0!==e?.rootGetters?this.getSettings(e):e;return t?.useDefaultStores?this.getStoreDefault():t?.stores||this.getStoreDefault()}getStoreDefault(){return l.U}isSteveCacheEnabled({rootGetters:e}){return e["features/get"]?.(o.Vw)}isEnabled({rootGetters:e},t){if(!this.isSteveCacheEnabled({rootGetters:e}))return!1;const n=this.getSettings({rootGetters:e});if(!n?.enabled)return!1;if(!t)return!1;const r=this.getStoreSettings(n)?.[t.store];if(!r)return!1;if(!t.resource)return!0;if(r.resources.enableAll)return!0;if(!t.resource.id)return!1;const i=!e["type-map/configuredHeaders"](t.resource.id)&&!e["type-map/configuredPaginationHeaders"](t.resource.id)&&!e["type-map/hasCustomList"](t.resource.id);return!(!r.resources.enableSome.generic||!i)||!!r.resources.enableSome.enabled.find((e=>"string"===typeof e?e===t.resource?.id:e.resource===t.resource?.id&&(!e.context||!!t.resource?.context&&e.context.includes(t.resource.context))))}validateNsProjectFilters(e){return e?.every((e=>this.validateNsProjectFilter(e)))}validateNsProjectFilter(e){return!(!e.startsWith(r.os)&&!e.startsWith(r.tA))||this.validNsProjectFilters.includes(e)}paginationFilterEqual(e,t){return e.param===t.param&&e.equals===t.equals&&(0,i.yI)(e.fields,t.fields,!0)}paginationFiltersEqual(e,t){if(e&&e?.length!==t?.length)return!1;for(let n=0;n<e.length;n++)if(!this.paginationFilterEqual(e[n],t[n]))return!1;return!0}paginationEqual(e,t){const{filters:n=[],sort:r=[],projectsOrNamespaces:o=[],...s}=e||{},{filters:l=[],sort:c=[],projectsOrNamespaces:u=[],...d}=t||{};return(0,a.n4)(s,d)&&this.paginationFiltersEqual(n,l)&&this.paginationFiltersEqual(o,u)&&(0,i.yI)(r,c,!0)}}t.A=new c},34765:function(e,t,n){"use strict";n.d(t,{eB:function(){return o},fD:function(){return s}});var r=n(35664),i=n(9262),a=(n(92043),n(63905),n(4364));const o=async(e,t,n,i=!0)=>{let a;try{a=await e.dispatch("management/find",{type:r.Mc.SETTING,id:t})}catch{const o=e.getters["management/schemaFor"](r.Mc.SETTING),s=o.linkFor("collection");a=await e.dispatch("management/create",{type:r.Mc.SETTING,metadata:{name:t},value:n,default:n||""}),i&&await a.save({url:s})}return a},s=e=>{const t=e["management/byId"](r.Mc.SETTING,i.HG.UI_PERFORMANCE);let n={};if(t?.value)try{n=JSON.parse(t.value)}catch(s){a.warn("ui-performance setting contains invalid data")}const o=Object.assign({},i.$8);return Object.assign(o,n||{})}},49148:function(e,t){"use strict";t.A={memberOfObject:(e,t)=>Object.entries(e||{}).find((([e])=>e===t)),memberOfComponent:(e,t)=>e[t]}},50667:function(e,t,n){"use strict";function r(e,t,n){let r=e+(e.includes("?")?"&":"?");return Array.isArray(n)||(n=[n]),r+=n.map((e=>null===e?`${encodeURIComponent(t)}`:`${encodeURIComponent(t)}=${encodeURIComponent(e)}`)).join("&"),r}function i(e,t){return t&&"object"===typeof t&&Object.keys(t).forEach((n=>{e=r(e,n,t[n])})),e}function a(e,t){const n=t.toLowerCase();return o([e],[443,8443],["443"])||"https"===n}function o(e,t,n){for(let r=0;r<e.length;r++){const i=e[r];if(t.includes(i))return!0;for(let e=0;e<n.length;e++){const t=`${n[e]}`,r=`${i}`;if(r!==t&&r.endsWith(t))return!0}}return!1}function s(e){const t=s.options,n=t.parser[t.strictMode?"strict":"loose"].exec(e);if(!n)throw new Error(`Cannot parse as uri: ${e}`);const r={};let i=14;while(i--)r[t.key[i]]=n[i]||"";return r.query={},r.queryStr.replace(t.q.parser,((e,n,i)=>(n&&(r[t.q.name][n]=i),""))),r}function l(e){let t=`${e.protocol}://`;return e.user&&e.password?t+=`${e.user}:${e.password}@`:e.user&&(t+=`${e.user}@`),t+=e.host,e.port&&(t+=`:${e.port}`),t+=e.path||"/",t=i(t,e.query||{}),e.anchor&&(t+=`#${e.anchor}`),t}n.d(t,{As:function(){return l},E4:function(){return a},R_:function(){return r},g:function(){return i},qg:function(){return s}}),s.options={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","queryStr","anchor"],q:{name:"query",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}}},71274:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var r=n(35664),i=n(2841),a=n(3514),o=n.n(a),s=n(52103),l=n.n(s),c=n(24138),u=n.n(c),d=n(68094),h=n(70500);class p{constructor(e){this.string=String(e),this.int=parseInt(this.string,10),this.empty=!e&&0!==this.int,this.isNumber=!isNaN(this.int)&&!this.string.includes("e"),this.isInt=this.isNumber&&!this.string.includes(".")}}const f=(e,t)=>{for(const n of t){const t=n(e);if(t)return t}};function m(e,{key:t="Value"}){const n=n=>r=>"."===r?.slice(0,1)?e(`validation.dns.${n}.startDot`,{key:t}):void 0,a=n=>r=>"."===r?.slice(-1)?e(`validation.dns.${n}.endDot`,{key:t}):void 0,s=n=>r=>r?.slice(0,1)?.match(/[0-9]/)?e(`validation.dns.${n}.startNumber`,{key:t}):void 0,c=n=>r=>"-"===r?.slice(0,1)?e(`validation.dns.${n}.startHyphen`,{key:t}):void 0,m=n=>r=>"-"===r?.slice(-1)?e(`validation.dns.${n}.endHyphen`,{key:t}):void 0,g=n=>r=>Number(r)<Number(n)?e("validation.minValue",{key:t,min:n}):void 0,v=n=>r=>Number(r)>Number(n)?e("validation.maxValue",{key:t,max:n}):void 0,b=([n,r])=>i=>g(n)(i)||v(r)(i)?e("validation.betweenValues",{key:t,min:n,max:r}):void 0,y=n=>r=>r.length<Number(n)?e("validation.minLength",{key:t,min:n}):void 0,w=n=>r=>r.length>Number(n)?e("validation.maxLength",{key:t,max:n}):void 0,E=([n,r])=>i=>y(n)(i)||w(r)(i)?e("validation.betweenLengths",{key:t,min:n,max:r}):void 0,_=n=>isNaN(parseInt(n,10))?e("validation.number.requiredInt",{key:t}):void 0,S=n=>!Number.isInteger(+n)||`${n}`.match(/\.+/g)?e("validation.number.requiredInt",{key:t}):void 0,k=n=>+n<0?e("validation.number.isPositive",{key:t}):void 0,x=n=>{const r=`${n}`,i=r.match(/(^0+)(.+)/);return i?e("validation.number.isOctal",{key:t}):void 0},A=n=>parseInt(n,10)<1||parseInt(n,10)>65535?e("validation.number.between",{key:t,min:"1",max:"65535"}):void 0,N=n=>{const r=n?.match(/[^${'A-Za-z0-9-'}]/g);if(r)return e("validation.chars",{key:t,count:r.length,chars:r.map((e=>" "===e?"Space":`"${e}"`)).join(", ")})},C=n=>"--"===n?.substr(2,2)&&"xn"!==n?.substr(0,2)?e("validation.dns.doubleHyphen",{key:t}):void 0,T=n=>"--"===n?.substr(2,2)&&"xn"!==n?.substr(0,2)?e("validation.dns.doubleHyphen",{key:t}):void 0,R=n=>(r="")=>0===r.length?e(`validation.dns.${n}.emptyLabel`,{key:t,min:1}):void 0,O=(n,r=63)=>(i="")=>i.length>r?e(`validation.dns.${n}.tooLongLabel`,{key:t,max:r}):void 0,I=(n="")=>n.length>253?e("validation.dns.hostname.tooLong",{key:t,max:253}):void 0,L=(n="")=>"/"!==n[0]&&n.length>0?e("validation.path",{key:t}):void 0,D=n=>n||!1===n?void 0:e("validation.required",{key:t}),P=(n="")=>n.toLowerCase()!==n?e("validation.noUpperCase",{key:t}):void 0,M=t=>{try{h.M.validation(t)}catch(n){return e(h.M.message)}},B=t=>t&&!(0,d.Q6)(t)?e("validation.setting.serverUrl.https"):void 0,F=t=>(0,d.M8)(t)?e("validation.setting.serverUrl.localhost"):void 0,$=t=>(0,d.fB)(t)?e("validation.setting.serverUrl.trailingForwardSlash"):void 0,U=t=>t&&!u()(t)?e("validation.setting.serverUrl.url"):void 0,j=t=>t&&!/^((http|git|ssh|http(s)|file|\/?)|(git@[\w\.]+))(:(\/\/)?)([\w\.@\:\/\-]+)([\d\/\w.-]+?)(.git){0,1}(\/)?$/gm.test(t)?e("validation.git.repository"):void 0,V=n=>n&&!/^[a-zA-Z0-9]+$/.test(n)?e("validation.alphanumeric",{key:t}):void 0,K=n=>/^\d+[hms]$/.test(n)?void 0:e("validation.monitoring.route.interval",{key:t}),H=t=>t?.image?void 0:e("workload.validation.containerImage",{name:t.name}),G=t=>{const n=t.jobTemplate?t?.jobTemplate?.spec?.template?.spec?.containers:t?.template?.spec?.containers;return n&&n.length?n.map((e=>H(e))).find((e=>e)):e("validation.required",{key:e("workload.container.titles.containers")})},z=t=>{if(!t)return;const n=new RegExp("^([a-z\\-0-9]+:\\/\\/?)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?"),r=n.test(t);return r?void 0:e("cluster.privateRegistry.privateRegistryUrlError")},q=e=>{const t=[N,c("label"),m("label"),C,O("label")];return f(e,t)},X=e=>{const t=[N,c("label"),m("label"),T,R("label"),O("label",15)];return f(e,t)},W=e=>{const t=[N,s("label"),c("label"),m("label"),C,R("label"),O("label")];return f(e,t)},Y=e=>{if(e){const t=[n("hostname"),I,a("hostname")],r=f(e,t);if(r)return r;const i=e.split("."),o=[N,c("hostname"),m("hostname"),C,R("hostname"),O("hostname")];for(let e=0;e<i.length;e++){const t=f(i[e],o);if(t)return t}}},Q=e=>(e=e?e.replace(/^\*\./,""):e,Y(e)),J=t=>o()(t)?e("validation.service.externalName.none"):Y(t),Z=e=>"This is an error returned by the testRule validator",ee=t=>o()(t?.groups)?e("validation.prometheusRule.groups.required"):void 0,te=t=>n=>t&&(n||"")?.match(/^(c-.{5}|local)$/i)?e("validation.cluster.name"):void 0,ne=t=>{const{name:n,idx:r}=t,i=new p(t.nodePort),a=new p(t.port),s=new p(t.targetPort);if(o()(n))return e("validation.service.ports.name.required",{position:r+1});if(!i.empty){if(!i.isInt)return e("validation.service.ports.nodePort.requiredInt",{position:r+1});if(i.int<1||i.int>65535)return e("validation.service.ports.nodePort.between",{position:r+1})}if(a.empty)return e("validation.service.ports.port.required",{position:r+1});if(!a.isInt)return e("validation.service.ports.port.requiredInt",{position:r+1});if(a.int<1||a.int>65535)return e("validation.service.ports.port.between",{position:r+1});if(a.string?.includes("."))return a;if(s.empty)return e("validation.service.ports.targetPort.required",{position:r+1});if(s.isInt){if(s.int<1||s.int>65535)return e("validation.service.ports.targetPort.between",{position:r+1})}else{const e=X(s.string);if(e)return e}},re=(t,n)=>{let r;return o()(t?.name)?e("validation.prometheusRule.groups.valid.name",{index:n}):o()(t.rules)?e("validation.prometheusRule.groups.valid.singleEntry",{index:n}):(t.rules.forEach(((t,i)=>{const a=i+1;l()(t,"alert")&&o()(t?.alert)&&!r?r=e("validation.prometheusRule.groups.valid.rule.alertName",{groupIndex:n,ruleIndex:a}):l()(t,"record")&&o()(t?.record)&&(r=e("validation.prometheusRule.groups.valid.rule.recordName",{groupIndex:n,ruleIndex:a})),(l()(t,"expr")&&o()(t.expr)&&!r||!l()(t,"expr")&&!r)&&(r=e("validation.prometheusRule.groups.valid.rule.expr",{groupIndex:n,ruleIndex:a})),l()(t,"alert")&&(l()(t,"labels")&&o()(t.labels)&&!r||!l()(t,"labels")&&!r)&&(r=e("validation.prometheusRule.groups.valid.rule.labels",{groupIndex:n,ruleIndex:a}))})),r)},ie=e=>{const t=[...e];let n;return t.forEach(((e,t,r)=>{n=re(e,t+1),n&&(r.length=t+1)})),n},ae=t=>{if(o()(t?.match)&&o()(t?.["match_re"]))return e("validation.monitoring.route.match")},oe=t=>(n=[])=>{if(n.some((e=>o()(e.verbs))))return e("validation.roleTemplate.roleTemplateRules.missingVerb");if(n.some((e=>e.resources?.length&&e.nonResourceURLs?.length)))return e("validation.roleTemplate.roleTemplateRules.noResourceAndNonResource");if(t===r.lk.ROLE){if(n.some((e=>o()(e.resources))))return e("validation.roleTemplate.roleTemplateRules.missingResource");if(n.some((e=>o()(e.apiGroups))))return e("validation.roleTemplate.roleTemplateRules.missingApiGroup")}else if(n.some((e=>o()(e.resources)&&o()(e.nonResourceURLs))))return e("validation.roleTemplate.roleTemplateRules.missingOneResource")},se=e=>{},le=t=>{const n=JSON.parse(t),r=n.type;if(!r)return e("validation.required",{key:"Type"});if("s3"===r){if(!n.accessKeyId)return e("validation.required",{key:"accessKeyId"});if(!n.secretAccessKey)return e("validation.required",{key:"secretAccessKey"});if(!n.bucketRegion)return e("validation.required",{key:"bucketRegion"});if(!n.bucketName)return e("validation.required",{key:"bucketName"})}},ce=t=>{const n=["qcow","qcow2","raw","img","iso"];if(!t||""===t)return;const r=t.split("/").pop(),i=r.split(".").pop().toLowerCase();return n.includes(i)?void 0:e("harvester.validation.image.ruleTip")},ue=(t={})=>{if(!t[i.rk.IMAGE_NAME])return e("validation.required",{key:e("harvester.image.fileName")})},de=r=>{const i=r?.match(/[^a-z0-9.-]/g);return i?e("validation.chars",{key:t,count:i.length,chars:i.map((e=>" "===e?"Space":`"${e}"`)).join(", ")}):f(r,[c("label"),m("label"),n("label"),a("label"),D])};return{absolutePath:L,alphanumeric:V,backupTarget:le,betweenLengths:E,betweenValues:b,clusterIp:se,clusterName:te,containerImage:H,containerImages:G,cronSchedule:M,dnsLabel:q,dnsLabelIanaServiceName:X,dnsLabelRestricted:W,externalName:J,fileRequired:ue,gitRepository:j,groupsAreValid:ie,hostname:Y,imageUrl:ce,interval:K,https:B,localhost:F,trailingForwardSlash:$,url:U,matching:ae,maxLength:w,maxValue:v,minLength:y,minValue:g,noUpperCase:P,portNumber:A,registryUrl:z,required:D,requiredInt:_,isInteger:S,isPositive:k,isOctal:x,roleTemplateRules:oe,ruleGroups:ee,servicePort:ne,subDomain:de,testRule:Z,wildcardHostname:Q}}},20652:function(e,t,n){"use strict";n.d(t,{KR:function(){return r}});const r="harvester";n(53938)},50889:function(e,t,n){"use strict";n.d(t,{EP:function(){return r},LP:function(){return a},gh:function(){return i}});const r={BACKUP_TARGET:"backup-target",CONTAINERD_REGISTRY:"containerd-registry",LOG_LEVEL:"log-level",SERVER_VERSION:"server-version",UI_INDEX:"ui-index",UI_PLUGIN_INDEX:"ui-plugin-index",UPGRADE_CHECKER_ENABLED:"upgrade-checker-enabled",UPGRADE_CHECKER_URL:"upgrade-checker-url",VLAN:"vlan",UI_SOURCE:"ui-source",UI_PL:"ui-pl",HTTP_PROXY:"http-proxy",ADDITIONAL_CA:"additional-ca",OVERCOMMIT_CONFIG:"overcommit-config",CLUSTER_REGISTRATION_URL:"cluster-registration-url",DEFAULT_STORAGE_CLASS:"default-storage-class",SUPPORT_BUNDLE_TIMEOUT:"support-bundle-timeout",SUPPORT_BUNDLE_EXPIRATION:"support-bundle-expiration",SUPPORT_BUNDLE_IMAGE:"support-bundle-image",SUPPORT_BUNDLE_NODE_COLLECTION_TIMEOUT:"support-bundle-node-collection-timeout",STORAGE_NETWORK:"storage-network",VM_FORCE_RESET_POLICY:"vm-force-reset-policy",SSL_CERTIFICATES:"ssl-certificates",SSL_PARAMETERS:"ssl-parameters",SUPPORT_BUNDLE_NAMESPACES:"support-bundle-namespaces",AUTO_DISK_PROVISION_PATHS:"auto-disk-provision-paths",RELEASE_DOWNLOAD_URL:"release-download-url",CCM_CSI_VERSION:"harvester-csi-ccm-versions",CSI_DRIVER_CONFIG:"csi-driver-config",VM_TERMINATION_PERIOD:"default-vm-termination-grace-period-seconds",NTP_SERVERS:"ntp-servers",AUTO_ROTATE_RKE2_CERTS:"auto-rotate-rke2-certs",KUBECONFIG_DEFAULT_TOKEN_TTL_MINUTES:"kubeconfig-default-token-ttl-minutes",LONGHORN_V2_DATA_ENGINE_ENABLED:"longhorn-v2-data-engine-enabled",ADDITIONAL_GUEST_MEMORY_OVERHEAD_RATIO:"additional-guest-memory-overhead-ratio"},i={[r.BACKUP_TARGET]:{kind:"json",from:"import",canReset:!0},[r.LOG_LEVEL]:{kind:"enum",options:["info","debug","trace"]},[r.VLAN]:{kind:"custom",from:"import",alias:"vlan"},[r.AUTO_ROTATE_RKE2_CERTS]:{kind:"json",from:"import",featureFlag:"autoRotateRke2CertsSetting"},[r.CSI_DRIVER_CONFIG]:{kind:"json",from:"import"},[r.SERVER_VERSION]:{readOnly:!0},[r.UPGRADE_CHECKER_ENABLED]:{kind:"boolean"},[r.UPGRADE_CHECKER_URL]:{kind:"url"},[r.HTTP_PROXY]:{kind:"json",from:"import"},[r.ADDITIONAL_CA]:{kind:"multiline",canReset:!0,from:"import"},[r.OVERCOMMIT_CONFIG]:{kind:"json",from:"import"},[r.SUPPORT_BUNDLE_TIMEOUT]:{},[r.SUPPORT_BUNDLE_EXPIRATION]:{},[r.SUPPORT_BUNDLE_NODE_COLLECTION_TIMEOUT]:{featureFlag:"supportBundleNodeCollectionTimeoutSetting"},[r.SUPPORT_BUNDLE_IMAGE]:{kind:"json",from:"import"},[r.STORAGE_NETWORK]:{kind:"custom",from:"import",canReset:!0},[r.VM_FORCE_RESET_POLICY]:{kind:"json",from:"import"},[r.SSL_CERTIFICATES]:{kind:"json",from:"import"},[r.SSL_PARAMETERS]:{kind:"json",from:"import",canReset:!0},[r.SUPPORT_BUNDLE_NAMESPACES]:{from:"import",canReset:!0},[r.AUTO_DISK_PROVISION_PATHS]:{canReset:!0},[r.RELEASE_DOWNLOAD_URL]:{kind:"url"},[r.UI_PLUGIN_INDEX]:{kind:"url"},[r.CONTAINERD_REGISTRY]:{kind:"json",from:"import",canReset:!0},[r.UI_SOURCE]:{kind:"enum",options:["auto","external","bundled"]},[r.UI_INDEX]:{kind:"url"},[r.VM_TERMINATION_PERIOD]:{kind:"string",from:"import"},[r.NTP_SERVERS]:{kind:"json",from:"import",canReset:!0},[r.KUBECONFIG_DEFAULT_TOKEN_TTL_MINUTES]:{featureFlag:"kubeconfigDefaultTokenTTLMinutesSetting"},[r.LONGHORN_V2_DATA_ENGINE_ENABLED]:{kind:"boolean",experimental:!0,featureFlag:"longhornV2LVMSupport"},[r.ADDITIONAL_GUEST_MEMORY_OVERHEAD_RATIO]:{kind:"string",from:"import"}},a={[r.CLUSTER_REGISTRATION_URL]:{kind:"url",canReset:!0},[r.UI_PL]:{kind:"custom",from:"import",alias:"branding"}}},32766:function(e,t,n){"use strict";n.d(t,{Zq:function(){return a},nE:function(){return o},qY:function(){return i},rk:function(){return r}});const r={VM:"kubevirt.io.virtualmachine",VMI:"kubevirt.io.virtualmachineinstance",VMIM:"kubevirt.io.virtualmachineinstancemigration",VM_TEMPLATE:"harvesterhci.io.virtualmachinetemplate",VM_VERSION:"harvesterhci.io.virtualmachinetemplateversion",IMAGE:"harvesterhci.io.virtualmachineimage",SSH:"harvesterhci.io.keypair",VOLUME:"harvesterhci.io.volume",USER:"harvesterhci.io.user",SETTING:"harvesterhci.io.setting",UPGRADE:"harvesterhci.io.upgrade",UPGRADE_LOG:"harvesterhci.io.upgradelog",SCHEDULE_VM_BACKUP:"harvesterhci.io.schedulevmbackup",BACKUP:"harvesterhci.io.virtualmachinebackup",RESTORE:"harvesterhci.io.virtualmachinerestore",NODE_NETWORK:"network.harvesterhci.io.nodenetwork",CLUSTER_NETWORK:"network.harvesterhci.io.clusternetwork",VM_IMAGE_DOWNLOADER:"harvesterhci.io.virtualmachineimagedownloader",SUPPORT_BUNDLE:"harvesterhci.io.supportbundle",NETWORK_ATTACHMENT:"harvesterhci.io.networkattachmentdefinition",CLUSTER:"harvesterhci.io.management.cluster",DASHBOARD:"harvesterhci.io.dashboard",BLOCK_DEVICE:"harvesterhci.io.blockdevice",CLOUD_TEMPLATE:"harvesterhci.io.cloudtemplate",HOST:"harvesterhci.io.host",VERSION:"harvesterhci.io.version",SNAPSHOT:"harvesterhci.io.volumesnapshot",VM_SNAPSHOT:"harvesterhci.io.vmsnapshot",ALERTMANAGERCONFIG:"harvesterhci.io.monitoring.alertmanagerconfig",CLUSTER_FLOW:"harvesterhci.io.logging.clusterflow",CLUSTER_OUTPUT:"harvesterhci.io.logging.clusteroutput",FLOW:"harvesterhci.io.logging.flow",OUTPUT:"harvesterhci.io.logging.output",STORAGE:"harvesterhci.io.storage",RESOURCE_QUOTA:"harvesterhci.io.resourcequota",KSTUNED:"node.harvesterhci.io.ksmtuned",PCI_DEVICE:"devices.harvesterhci.io.pcidevice",PCI_CLAIM:"devices.harvesterhci.io.pcideviceclaim",SR_IOV:"devices.harvesterhci.io.sriovnetworkdevice",VGPU_DEVICE:"devices.harvesterhci.io.vgpudevice",SR_IOVGPU_DEVICE:"devices.harvesterhci.io.sriovgpudevice",USB_DEVICE:"devices.harvesterhci.io.usbdevice",USB_CLAIM:"devices.harvesterhci.io.usbdeviceclaim",VLAN_CONFIG:"network.harvesterhci.io.vlanconfig",VLAN_STATUS:"network.harvesterhci.io.vlanstatus",ADD_ONS:"harvesterhci.io.addon",LINK_MONITOR:"network.harvesterhci.io.linkmonitor",SECRET:"harvesterhci.io.secret",INVENTORY:"metal.harvesterhci.io.inventory",LB:"loadbalancer.harvesterhci.io.loadbalancer",IP_POOL:"loadbalancer.harvesterhci.io.ippool",HARVESTER_CONFIG:"rke-machine-config.cattle.io.harvesterconfig",LVM_VOLUME_GROUP:"harvesterhci.io.lvmvolumegroup"},i="snapshot.storage.k8s.io.volumesnapshot",a="storage.k8s.io.csidriver",o="snapshot.storage.k8s.io.volumesnapshotclass"},80252:function(e,t,n){"use strict";n.d(t,{A:function(){return b}});var r=n(9274);const i={key:0},a=["disabled","data-testid","tabindex","onClick","onKeyup"],o={key:0,class:"no-actions"};function s(e,t,n,s,l,c){const u=(0,r.resolveComponent)("IconOrSvg"),d=(0,r.resolveDirective)("clean-html"),h=(0,r.resolveDirective)("t");return c.showing||n.open?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",{class:"background",onClick:t[0]||(t[0]=(...e)=>c.hide&&c.hide(...e)),onContextmenu:t[1]||(t[1]=(0,r.withModifiers)((()=>{}),["prevent"]))},null,32),(0,r.createElementVNode)("ul",{class:"list-unstyled menu",style:(0,r.normalizeStyle)(l.style)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(c.menuOptions,((e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:t,disabled:!!e.disabled||null,class:(0,r.normalizeClass)({divider:e.divider}),"data-testid":n.componentTestid+"-"+t+"-item",tabindex:e.divider?-1:0,onClick:t=>c.execute(e,t),onKeyup:[(0,r.withKeys)((t=>c.execute(e,t)),["enter"]),(0,r.withKeys)((t=>c.execute(e,t)),["space"])]},[e.icon||e.svg?((0,r.openBlock)(),(0,r.createBlock)(u,{key:0,icon:e.icon,src:e.svg,class:"icon",color:"header"},null,8,["icon","src"])):(0,r.createCommentVNode)("",!0),(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[d,e.label]])],42,a)))),128)),c.hasOptions(c.menuOptions)?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("li",o,[(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[h,"sortableTable.noActions"]])]))],4)])):(0,r.createCommentVNode)("",!0)}var l=n(65359),c=n(14817),u=n(35881),d=n(40612);const h="hide",p="calculate",f="show";var m={name:"ActionMenu",emits:["close"],components:{IconOrSvg:d.A},props:{customActions:{type:Array,default:()=>[]},open:{type:Boolean,default:!1},useCustomTargetElement:{type:Boolean,default:!1},customTargetElement:{type:HTMLElement,default:null},customTargetEvent:{type:[PointerEvent,MouseEvent],default:null},componentTestid:{type:String,default:"action-menu"}},data(){return{phase:h,style:{}}},computed:{...(0,l.L8)({targetElem:"action-menu/elem",targetEvent:"action-menu/event",shouldShow:"action-menu/showing",options:"action-menu/options"}),showing(){return this.phase!==h},menuOptions(){return this.customActions.length>0?this.customActions:this.options}},watch:{shouldShow:{handler(e){e?(this.phase=p,this.updateStyle(),this.$nextTick((()=>{this.phase===p&&(this.phase=f,this.updateStyle())}))):this.phase=h}},open(){this.updateStyle()},"$route.path"(e,t){this.hide()}},methods:{hide(){this.useCustomTargetElement?this.$emit("close"):this.$store.commit("action-menu/hide")},updateStyle(){if(this.phase===f&&!this.useCustomTargetElement){const e=this.$el?.querySelector&&this.$el.querySelector(".menu"),t=this.targetEvent,n=this.targetElem;return this.style=(0,c.Tb)(e,n||t,{overlapX:!0,fudgeX:n?-2:0,fudgeY:n?20:0,positionX:n?c.Q8:c.Q7,positionY:c.Q8}),void(this.style.visibility="visible")}if(this.open&&this.useCustomTargetElement){const e=this.$el?.querySelector&&this.$el.querySelector(".menu"),t=this.customTargetElement;return this.style=(0,c.Tb)(e,t,{overlapX:!0,fudgeX:t?4:0,fudgeY:t?4:0,positionX:t?c.Q8:c.Q7,positionY:c.Q8},!0),void(this.style.visibility="visible")}this.style={}},execute(e,t,n){if(!e.disabled){if(e.invoke){const n=e.invoke;if(n&&e.enabled){const r=this.$store.getters["action-menu/resources"],i={event:t,action:e,isAlt:(0,u.nN)(t)};1===r.length&&n.apply(this,[i,r])}}else if(this.useCustomTargetElement)this.$emit(e.action,{action:e,event:t,...n,route:this.$route});else{const r={alt:(0,u.nN)(t)};this.$store.dispatch("action-menu/execute",{action:e,args:n,opts:r})}this.hide()}},hasOptions(e){return void 0!==e.length?e.length:Object.keys(e).length>0}}},g=(n(4071),n(47433));const v=(0,g.A)(m,[["render",s],["__scopeId","data-v-3af780f6"]]);var b=v},36832:function(e,t,n){"use strict";n.d(t,{h:function(){return d}});var r=n(9274);const i=["data-modal"];function a(e,t,n,a,o,s){return(0,r.openBlock)(),(0,r.createBlock)(r.Teleport,{to:"#modals"},[(0,r.createVNode)(r.Transition,{name:"modal-fade",appear:""},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",{class:"modal-overlay","data-modal":e.name,onClick:t[1]||(t[1]=(...t)=>e.handleClickOutside&&e.handleClickOutside(...t))},[(0,r.createElementVNode)("div",(0,r.mergeProps)(e.$attrs,{id:"modal-container-element",ref:"modalRef",class:[e.customClass,"modal-container"],style:e.modalStyles,onClick:t[0]||(t[0]=(0,r.withModifiers)((()=>{}),["stop"]))}),[(0,r.renderSlot)(e.$slots,"default")],16)],8,i)])),_:3})])}var o=n(82149);const s="body;";var l=(0,r.defineComponent)({name:"AppModal",emits:["close"],inheritAttrs:!1,props:{clickToClose:{type:Boolean,default:!0},width:{type:[Number,String],default:600,validator(e){return"number"===typeof e?e>0:"string"===typeof e&&/^(0*(?:[1-9][0-9]*|0)\.?\d*)+(px|%)$/.test(e)}},customClass:{type:String,default:""},styles:{type:String,default:""},name:{type:String,default:""},triggerFocusTrap:{type:Boolean,default:!1},returnFocusSelector:{type:String,default:""},returnFocusFirstIterableNodeSelector:{type:String,default:s}},computed:{modalWidth(){if(this.isValidWidth(this.width)){const e="number"===typeof this.width?"px":"";return`${this.width}${e}`}return"600px"},stylesPropToObj(){return this.styles.split(";").map((e=>e.trim().split(":"))).reduce(((e,[t,n])=>({...e,[t]:n})),{})},modalStyles(){return{width:this.modalWidth,...this.stylesPropToObj}}},setup(e){if(e.triggerFocusTrap){let t=o.mG;e.returnFocusFirstIterableNodeSelector&&e.returnFocusFirstIterableNodeSelector!==s&&e.returnFocusSelector?t={...o.mG,setReturnFocus:()=>document.querySelector(e.returnFocusSelector)?e.returnFocusSelector:(0,o.$4)(document.querySelector(e.returnFocusFirstIterableNodeSelector))}:e.returnFocusSelector&&(t={...o.mG,setReturnFocus:e.returnFocusSelector}),(0,o.kS)("#modal-container-element",t)}},mounted(){document.addEventListener("keydown",this.handleEscapeKey)},beforeUnmount(){document.removeEventListener("keydown",this.handleEscapeKey)},methods:{handleClickOutside(e){this.clickToClose&&this.$refs.modalRef&&!this.$refs.modalRef.contains(e.target)&&this.$emit("close")},handleEscapeKey(e){this.clickToClose&&"Escape"===e.key&&this.$emit("close")},isValidWidth(e){return"number"===typeof e?e>0:"string"===typeof e&&/^(0*(?:[1-9][0-9]*|0)\.?\d*)+(px|%)$/.test(e)}}}),c=(n(14534),n(47433));const u=(0,c.A)(l,[["render",a]]);var d=u},89651:function(e,t,n){"use strict";n.d(t,{R:function(){return l},A:function(){return m}});var r=n(9274);const i=["name","type","disabled","aria-disabled","tab-index","data-testid"],a={key:2};function o(e,t,n,o,s,l){const c=(0,r.resolveDirective)("clean-tooltip"),u=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("button",{ref:"btn",role:"button",class:(0,r.normalizeClass)(e.classes),name:e.name,type:e.type,disabled:e.isDisabled,"aria-disabled":e.isDisabled,"tab-index":e.tabIndex,"data-testid":e.componentTestid+"-async-button",onClick:t[0]||(t[0]=(...t)=>e.clicked&&e.clicked(...t))},[e.isManualRefresh?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,class:(0,r.normalizeClass)({"mr-10":e.displayIcon&&"sm"!==e.size,"mr-5":e.displayIcon&&"sm"===e.size})},(0,r.toDisplayString)(e.t("action.refresh")),3)):(0,r.createCommentVNode)("",!0),e.displayIcon?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:1,class:(0,r.normalizeClass)({icon:!0,"icon-lg":!0,[e.displayIcon]:!0,"mr-0":e.isManualRefresh})},null,2)),[[c,e.tooltip]]):(0,r.createCommentVNode)("",!0),"text"===e.labelAs&&e.displayLabel?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",a,null,512)),[[c,e.tooltip],[u,e.displayLabel]]):(0,r.createCommentVNode)("",!0)],10,i)}var s=n(49148);const l={ACTION:"action",WAITING:"waiting",SUCCESS:"success",ERROR:"error"},c="text",u="tooltip",d={timer:void 0};var h=(0,r.defineComponent)({props:{mode:{type:String,default:"edit"},delay:{type:Number,default:5e3},name:{type:String,default:null},disabled:{type:Boolean,default:!1},type:{type:String,default:"button"},tabIndex:{type:Number,default:null},actionColor:{type:String,default:"role-primary"},waitingColor:{type:String,default:"bg-primary"},successColor:{type:String,default:"bg-success"},errorColor:{type:String,default:"bg-error"},actionLabel:{type:String,default:null},waitingLabel:{type:String,default:null},successLabel:{type:String,default:null},errorLabel:{type:String,default:null},icon:{type:String,default:null},labelAs:{type:String,default:c},size:{type:String,default:""},currentPhase:{type:String,default:l.ACTION},componentTestid:{type:String,default:"action-button"},manual:{type:Boolean,default:!1}},setup(){const e=(0,r.inject)("timer",d.timer);return{timer:e}},emits:["click"],data(){return{phase:this.currentPhase}},watch:{currentPhase(e){this.phase=e}},computed:{classes(){const e=`${this.phase}Color`,t=s.A.memberOfComponent(this,e),n={btn:!0,[t]:!0};return this.size&&(n[`btn-${this.size}`]=!0),n},displayIcon(){const e=this.$store.getters["i18n/exists"],t=this.$store.getters["i18n/t"],n=`asyncButton.${this.mode}.${this.phase}Icon`,r=`asyncButton.default.${this.phase}Icon`;let i="";return this.icon?i=this.icon:e(n)?i=`icon-${t(n)}`:e(r)&&(i=`icon-${t(r)}`),this.isSpinning&&(i||(i="icon-spinner"),i+=" icon-spin"),i},displayLabel(){const e=s.A.memberOfComponent(this,`${this.phase}Label`),t=this.$store.getters["i18n/exists"],n=this.$store.getters["i18n/t"],r=`asyncButton.${this.mode}.${this.phase}`,i=`asyncButton.default.${this.phase}`;return e||(t(r)?n(r):t(i)?n(i):"")},isSpinning(){return this.phase===l.WAITING},isDisabled(){return this.disabled||this.phase===l.WAITING},isManualRefresh(){return"manual-refresh"===this.mode},tooltip(){return this.labelAs===u?{content:this.displayLabel,hideOnTargetClick:!1}:null}},beforeUnmount(){this.timer&&clearTimeout(this.timer)},methods:{clicked(){if(this.isDisabled)return;this.timer&&clearTimeout(this.timer),this.manual||(this.phase=l.WAITING);const e=e=>{this.done(e)};this.$emit("click",e)},done(e){"cancelled"===e?this.phase=l.ACTION:(this.phase=e?l.SUCCESS:l.ERROR,this.timer=setTimeout((()=>{this.timerDone()}),this.delay))},timerDone(){this.phase!==l.SUCCESS&&this.phase!==l.ERROR||(this.phase=l.ACTION)},focus(){this.$refs.btn.focus()}}}),p=(n(20679),n(47433));const f=(0,p.A)(h,[["render",o],["__scopeId","data-v-c051f5ae"]]);var m=f},8552:function(e,t,n){"use strict";n.d(t,{A:function(){return yt}});var r=n(9274);const i=["onClick"];function a(e,t,n,a,o,s){const l=(0,r.resolveComponent)("v-select");return(0,r.openBlock)(),(0,r.createBlock)(l,(0,r.mergeProps)({ref:"button-dropdown",class:["button-dropdown btn",{disabled:n.disabled,focused:o.focused}]},e.$attrs,{"append-to-body":!0,"calculate-position":s.withPopper,searchable:!1,clearable:!1,"close-on-select":n.closeOnSelect,filterable:!1,modelValue:n.buttonLabel,options:n.dropdownOptions,"map-keydown":e.mappedKeys,"get-option-key":e=>n.optionKey?s.get(e,n.optionKey):s.getOptionLabel(e),"get-option-label":e=>s.getOptionLabel(e),selectable:n.selectable,"onSearch:blur":s.onBlur,"onSearch:focus":s.onFocus,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("click-action",t))}),(0,r.createSlots)({"no-options":(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"no-options",{},void 0,!0)])),"selected-option":(0,r.withCtx)((e=>[(0,r.createElementVNode)("button",{tabindex:"-1",type:"button",class:"dropdown-button-two btn","data-testid":"dropdown-button",onClick:t=>s.ddButtonAction(e),onFocus:t[0]||(t[0]=(...e)=>s.focusSearch&&s.focusSearch(...e))},(0,r.toDisplayString)(e.label),41,i)])),_:2},[(0,r.renderList)(e.$slots,((t,n)=>({name:n,fn:(0,r.withCtx)((t=>["selected-option"!==n&&"function"===typeof e.$slots[n]?(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.mergeProps)({key:0},t)),void 0,!0):(0,r.createCommentVNode)("",!0)]))})))]),1040,["class","calculate-position","close-on-select","modelValue","options","map-keydown","get-option-key","get-option-label","selectable","onSearch:blur","onSearch:focus"])}function o(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function s(e){var t=o(e).Element;return e instanceof t||e instanceof Element}function l(e){var t=o(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function c(e){if("undefined"===typeof ShadowRoot)return!1;var t=o(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var u=Math.max,d=Math.min,h=Math.round;function p(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function f(){return!/^((?!chrome|android).)*safari/i.test(p())}function m(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&l(e)&&(i=e.offsetWidth>0&&h(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&h(r.height)/e.offsetHeight||1);var c=s(e)?o(e):window,u=c.visualViewport,d=!f()&&n,p=(r.left+(d&&u?u.offsetLeft:0))/i,m=(r.top+(d&&u?u.offsetTop:0))/a,g=r.width/i,v=r.height/a;return{width:g,height:v,top:m,right:p+g,bottom:m+v,left:p,x:p,y:m}}function g(e){var t=o(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function v(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function b(e){return e!==o(e)&&l(e)?v(e):g(e)}function y(e){return e?(e.nodeName||"").toLowerCase():null}function w(e){return((s(e)?e.ownerDocument:e.document)||window.document).documentElement}function E(e){return m(w(e)).left+g(e).scrollLeft}function _(e){return o(e).getComputedStyle(e)}function S(e){var t=_(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function k(e){var t=e.getBoundingClientRect(),n=h(t.width)/e.offsetWidth||1,r=h(t.height)/e.offsetHeight||1;return 1!==n||1!==r}function x(e,t,n){void 0===n&&(n=!1);var r=l(t),i=l(t)&&k(t),a=w(t),o=m(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(("body"!==y(t)||S(a))&&(s=b(t)),l(t)?(c=m(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=E(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function A(e){var t=m(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function N(e){return"html"===y(e)?e:e.assignedSlot||e.parentNode||(c(e)?e.host:null)||w(e)}function C(e){return["html","body","#document"].indexOf(y(e))>=0?e.ownerDocument.body:l(e)&&S(e)?e:C(N(e))}function T(e,t){var n;void 0===t&&(t=[]);var r=C(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=o(r),s=i?[a].concat(a.visualViewport||[],S(r)?r:[]):r,l=t.concat(s);return i?l:l.concat(T(N(s)))}function R(e){return["table","td","th"].indexOf(y(e))>=0}function O(e){return l(e)&&"fixed"!==_(e).position?e.offsetParent:null}function I(e){var t=/firefox/i.test(p()),n=/Trident/i.test(p());if(n&&l(e)){var r=_(e);if("fixed"===r.position)return null}var i=N(e);c(i)&&(i=i.host);while(l(i)&&["html","body"].indexOf(y(i))<0){var a=_(i);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||t&&"filter"===a.willChange||t&&a.filter&&"none"!==a.filter)return i;i=i.parentNode}return null}function L(e){var t=o(e),n=O(e);while(n&&R(n)&&"static"===_(n).position)n=O(n);return n&&("html"===y(n)||"body"===y(n)&&"static"===_(n).position)?t:n||I(e)||t}var D="top",P="bottom",M="right",B="left",F="auto",$=[D,P,M,B],U="start",j="end",V="clippingParents",K="viewport",H="popper",G="reference",z=$.reduce((function(e,t){return e.concat([t+"-"+U,t+"-"+j])}),[]),q=[].concat($,[F]).reduce((function(e,t){return e.concat([t,t+"-"+U,t+"-"+j])}),[]),X="beforeRead",W="read",Y="afterRead",Q="beforeMain",J="main",Z="afterMain",ee="beforeWrite",te="write",ne="afterWrite",re=[X,W,Y,Q,J,Z,ee,te,ne];function ie(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name);var a=[].concat(e.requires||[],e.requiresIfExists||[]);a.forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function ae(e){var t=ie(e);return re.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}function oe(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}function se(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}var le={placement:"bottom",modifiers:[],strategy:"absolute"};function ce(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function ue(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,a=void 0===i?le:i;return function(e,t,n){void 0===n&&(n=a);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},le,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],l=!1,c={state:i,setOptions:function(n){var o="function"===typeof n?n(i.options):n;d(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:s(e)?T(e):e.contextElement?T(e.contextElement):[],popper:T(t)};var l=ae(se([].concat(r,i.options.modifiers)));return i.orderedModifiers=l.filter((function(e){return e.enabled})),u(),c.update()},forceUpdate:function(){if(!l){var e=i.elements,t=e.reference,n=e.popper;if(ce(t,n)){i.rects={reference:x(t,L(n),"fixed"===i.options.strategy),popper:A(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var a=i.orderedModifiers[r],o=a.fn,s=a.options,u=void 0===s?{}:s,d=a.name;"function"===typeof o&&(i=o({state:i,options:u,name:d,instance:c})||i)}else i.reset=!1,r=-1}}},update:oe((function(){return new Promise((function(e){c.forceUpdate(),e(i)}))})),destroy:function(){d(),l=!0}};if(!ce(e,t))return c;function u(){i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,a=e.effect;if("function"===typeof a){var s=a({state:i,name:t,instance:c,options:r}),l=function(){};o.push(s||l)}}))}function d(){o.forEach((function(e){return e()})),o=[]}return c.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var de={passive:!0};function he(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=void 0===i||i,s=r.resize,l=void 0===s||s,c=o(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach((function(e){e.addEventListener("scroll",n.update,de)})),l&&c.addEventListener("resize",n.update,de),function(){a&&u.forEach((function(e){e.removeEventListener("scroll",n.update,de)})),l&&c.removeEventListener("resize",n.update,de)}}var pe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:he,data:{}};function fe(e){return e.split("-")[0]}function me(e){return e.split("-")[1]}function ge(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ve(e){var t,n=e.reference,r=e.element,i=e.placement,a=i?fe(i):null,o=i?me(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case D:t={x:s,y:n.y-r.height};break;case P:t={x:s,y:n.y+n.height};break;case M:t={x:n.x+n.width,y:l};break;case B:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?ge(a):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case U:t[c]=t[c]-(n[u]/2-r[u]/2);break;case j:t[c]=t[c]+(n[u]/2-r[u]/2);break;default:}}return t}function be(e){var t=e.state,n=e.name;t.modifiersData[n]=ve({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var ye={name:"popperOffsets",enabled:!0,phase:"read",fn:be,data:{}},we={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ee(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:h(n*i)/i||0,y:h(r*i)/i||0}}function _e(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,h=e.isFixed,p=s.x,f=void 0===p?0:p,m=s.y,g=void 0===m?0:m,v="function"===typeof d?d({x:f,y:g}):{x:f,y:g};f=v.x,g=v.y;var b=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),E=B,S=D,k=window;if(u){var x=L(n),A="clientHeight",N="clientWidth";if(x===o(n)&&(x=w(n),"static"!==_(x).position&&"absolute"===l&&(A="scrollHeight",N="scrollWidth")),i===D||(i===B||i===M)&&a===j){S=P;var C=h&&x===k&&k.visualViewport?k.visualViewport.height:x[A];g-=C-r.height,g*=c?1:-1}if(i===B||(i===D||i===P)&&a===j){E=M;var T=h&&x===k&&k.visualViewport?k.visualViewport.width:x[N];f-=T-r.width,f*=c?1:-1}}var R,O=Object.assign({position:l},u&&we),I=!0===d?Ee({x:f,y:g},o(n)):{x:f,y:g};return f=I.x,g=I.y,c?Object.assign({},O,(R={},R[S]=y?"0":"",R[E]=b?"0":"",R.transform=(k.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",R)):Object.assign({},O,(t={},t[S]=y?g+"px":"",t[E]=b?f+"px":"",t.transform="",t))}function Se(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,a=n.adaptive,o=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,c={placement:fe(t.placement),variation:me(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,_e(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,_e(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var ke={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Se,data:{}};function xe(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];l(i)&&y(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))}function Ae(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]),o=a.reduce((function(e,t){return e[t]="",e}),{});l(r)&&y(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}}var Ne={name:"applyStyles",enabled:!0,phase:"write",fn:xe,effect:Ae,requires:["computeStyles"]};function Ce(e,t,n){var r=fe(e),i=[B,D].indexOf(r)>=0?-1:1,a="function"===typeof n?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[B,M].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function Te(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=void 0===i?[0,0]:i,o=q.reduce((function(e,n){return e[n]=Ce(n,t.rects,a),e}),{}),s=o[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}var Re={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Te},Oe={left:"right",right:"left",bottom:"top",top:"bottom"};function Ie(e){return e.replace(/left|right|bottom|top/g,(function(e){return Oe[e]}))}var Le={start:"end",end:"start"};function De(e){return e.replace(/start|end/g,(function(e){return Le[e]}))}function Pe(e,t){var n=o(e),r=w(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,c=0;if(i){a=i.width,s=i.height;var u=f();(u||!u&&"fixed"===t)&&(l=i.offsetLeft,c=i.offsetTop)}return{width:a,height:s,x:l+E(e),y:c}}function Me(e){var t,n=w(e),r=g(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=u(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=u(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+E(e),l=-r.scrollTop;return"rtl"===_(i||n).direction&&(s+=u(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function Be(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&c(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Fe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $e(e,t){var n=m(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ue(e,t,n){return t===K?Fe(Pe(e,n)):s(t)?$e(t,n):Fe(Me(w(e)))}function je(e){var t=T(N(e)),n=["absolute","fixed"].indexOf(_(e).position)>=0,r=n&&l(e)?L(e):e;return s(r)?t.filter((function(e){return s(e)&&Be(e,r)&&"body"!==y(e)})):[]}function Ve(e,t,n,r){var i="clippingParents"===t?je(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce((function(t,n){var i=Ue(e,n,r);return t.top=u(i.top,t.top),t.right=d(i.right,t.right),t.bottom=d(i.bottom,t.bottom),t.left=u(i.left,t.left),t}),Ue(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ke(){return{top:0,right:0,bottom:0,left:0}}function He(e){return Object.assign({},Ke(),e)}function Ge(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ze(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,a=n.strategy,o=void 0===a?e.strategy:a,l=n.boundary,c=void 0===l?V:l,u=n.rootBoundary,d=void 0===u?K:u,h=n.elementContext,p=void 0===h?H:h,f=n.altBoundary,g=void 0!==f&&f,v=n.padding,b=void 0===v?0:v,y=He("number"!==typeof b?b:Ge(b,$)),E=p===H?G:H,_=e.rects.popper,S=e.elements[g?E:p],k=Ve(s(S)?S:S.contextElement||w(e.elements.popper),c,d,o),x=m(e.elements.reference),A=ve({reference:x,element:_,strategy:"absolute",placement:i}),N=Fe(Object.assign({},_,A)),C=p===H?N:x,T={top:k.top-C.top+y.top,bottom:C.bottom-k.bottom+y.bottom,left:k.left-C.left+y.left,right:C.right-k.right+y.right},R=e.modifiersData.offset;if(p===H&&R){var O=R[i];Object.keys(T).forEach((function(e){var t=[M,P].indexOf(e)>=0?1:-1,n=[D,P].indexOf(e)>=0?"y":"x";T[e]+=O[n]*t}))}return T}function qe(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?q:l,u=me(r),d=u?s?z:z.filter((function(e){return me(e)===u})):$,h=d.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=d);var p=h.reduce((function(t,n){return t[n]=ze(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[fe(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}function Xe(e){if(fe(e)===F)return[];var t=Ie(e);return[De(e),t,De(t)]}function We(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0===o||o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=fe(g),b=v===g,y=l||(b||!f?[Ie(g)]:Xe(g)),w=[g].concat(y).reduce((function(e,n){return e.concat(fe(n)===F?qe(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),E=t.rects.reference,_=t.rects.popper,S=new Map,k=!0,x=w[0],A=0;A<w.length;A++){var N=w[A],C=fe(N),T=me(N)===U,R=[D,P].indexOf(C)>=0,O=R?"width":"height",I=ze(t,{placement:N,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),L=R?T?M:B:T?P:D;E[O]>_[O]&&(L=Ie(L));var $=Ie(L),j=[];if(a&&j.push(I[C]<=0),s&&j.push(I[L]<=0,I[$]<=0),j.every((function(e){return e}))){x=N,k=!1;break}S.set(N,j)}if(k)for(var V=f?3:1,K=function(e){var t=w.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},H=V;H>0;H--){var G=K(H);if("break"===G)break}t.placement!==x&&(t.modifiersData[r]._skip=!0,t.placement=x,t.reset=!0)}}var Ye={name:"flip",enabled:!0,phase:"main",fn:We,requiresIfExists:["offset"],data:{_skip:!1}};function Qe(e){return"x"===e?"y":"x"}function Je(e,t,n){return u(e,d(t,n))}function Ze(e,t,n){var r=Je(e,t,n);return r>n?n:r}function et(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0!==o&&o,l=n.boundary,c=n.rootBoundary,h=n.altBoundary,p=n.padding,f=n.tether,m=void 0===f||f,g=n.tetherOffset,v=void 0===g?0:g,b=ze(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:h}),y=fe(t.placement),w=me(t.placement),E=!w,_=ge(y),S=Qe(_),k=t.modifiersData.popperOffsets,x=t.rects.reference,N=t.rects.popper,C="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,T="number"===typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(k){if(a){var I,F="y"===_?D:B,$="y"===_?P:M,j="y"===_?"height":"width",V=k[_],K=V+b[F],H=V-b[$],G=m?-N[j]/2:0,z=w===U?x[j]:N[j],q=w===U?-N[j]:-x[j],X=t.elements.arrow,W=m&&X?A(X):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ke(),Q=Y[F],J=Y[$],Z=Je(0,x[j],W[j]),ee=E?x[j]/2-G-Z-Q-T.mainAxis:z-Z-Q-T.mainAxis,te=E?-x[j]/2+G+Z+J+T.mainAxis:q+Z+J+T.mainAxis,ne=t.elements.arrow&&L(t.elements.arrow),re=ne?"y"===_?ne.clientTop||0:ne.clientLeft||0:0,ie=null!=(I=null==R?void 0:R[_])?I:0,ae=V+ee-ie-re,oe=V+te-ie,se=Je(m?d(K,ae):K,V,m?u(H,oe):H);k[_]=se,O[_]=se-V}if(s){var le,ce="x"===_?D:B,ue="x"===_?P:M,de=k[S],he="y"===S?"height":"width",pe=de+b[ce],ve=de-b[ue],be=-1!==[D,B].indexOf(y),ye=null!=(le=null==R?void 0:R[S])?le:0,we=be?pe:de-x[he]-N[he]-ye+T.altAxis,Ee=be?de+x[he]+N[he]-ye-T.altAxis:ve,_e=m&&be?Ze(we,de,Ee):Je(m?we:pe,de,m?Ee:ve);k[S]=_e,O[S]=_e-de}t.modifiersData[r]=O}}var tt={name:"preventOverflow",enabled:!0,phase:"main",fn:et,requiresIfExists:["offset"]},nt=function(e,t){return e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,He("number"!==typeof e?e:Ge(e,$))};function rt(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=fe(n.placement),l=ge(s),c=[B,M].indexOf(s)>=0,u=c?"height":"width";if(a&&o){var d=nt(i.padding,n),h=A(a),p="y"===l?D:B,f="y"===l?P:M,m=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],g=o[l]-n.rects.reference[l],v=L(a),b=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=m/2-g/2,w=d[p],E=b-h[u]-d[f],_=b/2-h[u]/2+y,S=Je(w,_,E),k=l;n.modifiersData[r]=(t={},t[k]=S,t.centerOffset=S-_,t)}}function it(e){var t=e.state,n=e.options,r=n.element,i=void 0===r?"[data-popper-arrow]":r;null!=i&&("string"!==typeof i||(i=t.elements.popper.querySelector(i),i))&&Be(t.elements.popper,i)&&(t.elements.arrow=i)}var at={name:"arrow",enabled:!0,phase:"main",fn:rt,effect:it,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ot(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function st(e){return[D,M,P,B].some((function(t){return e[t]>=0}))}function lt(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=ze(t,{elementContext:"reference"}),s=ze(t,{altBoundary:!0}),l=ot(o,r),c=ot(s,i,a),u=st(l),d=st(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var ct={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lt},ut=[pe,ye,ke,Ne,Re,Ye,tt,at,ct],dt=ue({defaultModifiers:ut}),ht=n(76978),pt=n(8138),ft=n.n(pt),mt=n(89626),gt={emits:["dd-button-action","click-action"],mixins:[mt.A],props:{buttonLabel:{default:"",type:String},closeOnSelect:{default:!0,type:Boolean},disabled:{default:!1,type:Boolean},dropdownOptions:{default:()=>[],type:Array},optionKey:{default:null,type:String},optionLabel:{default:"label",type:String},size:{default:null,type:String},value:{default:null,type:String},placement:{default:"bottom-start",type:String},selectable:{default:e=>!e||!e.disabled&&"group"!==e.kind&&"divider"!==e.kind&&!e.loading,type:Function}},data(){return{focused:!1}},methods:{withPopper(e,t,{width:n}){const r=t.$refs.search.clientWidth,i=e.clientWidth;e.style.width=i<r?`${r}px`:"min-content";const a=dt(t.$refs.toggle,e,{placement:this.placement||"bottom-start",modifiers:[{name:"offset",options:{offset:[-2,2]}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:e}){t.$el.setAttribute("x-placement",e.placement)}}]});return()=>a.destroy()},ddButtonAction(e){this.focusSearch(),this.$emit("dd-button-action",e)},getOptionLabel(e){return ft()(e)?e:this.$attrs["get-option-label"]?this.$attrs["get-option-label"](e):(0,ht.Jt)(e,this.optionLabel)?this.localizedLabel?this.$store.getters["i18n/t"]((0,ht.Jt)(e,this.optionLabel)):(0,ht.Jt)(e,this.optionLabel):e},onFocus(){return this.onFocusLabeled()},onFocusLabeled(){this.focused=!0},onBlur(){return this.onBlurLabeled()},onBlurLabeled(){this.focused=!1},focusSearch(){this.$nextTick((()=>{const e=this.$refs["button-dropdown"].searchEl;e&&e.focus()}))},get:ht.Jt}},vt=(n(9722),n(47433));const bt=(0,vt.A)(gt,[["render",a],["__scopeId","data-v-2ab9ff7a"]]);var yt=bt},12857:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(9274);const i={class:"btn-group"},a=["data-testid","disabled","aria-label","onClick"],o=["alt"],s={key:2};function l(e,t,n,l,c,u){const d=(0,r.resolveComponent)("t"),h=(0,r.resolveDirective)("clean-tooltip"),p=(0,r.resolveDirective)("trim-whitespace");return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(u.optionObjects,((t,i)=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:i,"data-testid":`button-group-child-${i}`,type:"button",class:(0,r.normalizeClass)(t.class),disabled:n.disabled||t.disabled,role:"button","aria-label":u.actionAriaLabel(t),onClick:e=>u.change(t.value)},[(0,r.renderSlot)(e.$slots,"option",{label:t.label,value:t.value},(()=>[t.icon?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:(0,r.normalizeClass)({icon:!0,[t.icon]:!0,[`icon-${n.iconSize}`]:!!n.iconSize}),alt:u.actionAriaLabel(t)},null,10,o)):(0,r.createCommentVNode)("",!0),t.labelKey?((0,r.openBlock)(),(0,r.createBlock)(d,{key:1,k:t.labelKey},null,8,["k"])):t.label?((0,r.openBlock)(),(0,r.createElementBlock)("span",s,(0,r.toDisplayString)(t.label),1)):(0,r.createCommentVNode)("",!0)]))],10,a)),[[h,t.tooltipKey?e.t(t.tooltipKey):t.tooltip]]))),128))])),[[p]])}var c={emits:["update:value"],props:{value:{type:[String,Number,Boolean,Object],required:!0},inactiveClass:{type:String,default:"bg-disabled"},activeClass:{type:String,default:"bg-primary"},options:{type:Array,required:!0},iconSize:{type:String,default:null},disabled:{type:Boolean,default:!1}},computed:{optionObjects(){const e=this.value;return this.options.map((t=>{let n;n=t&&"object"===typeof t&&"undefined"!==typeof t.value?Object.assign({},t):{label:t,value:t};const r=e===n.value;return n.class={btn:!0,[this.inactiveClass]:!r,[this.activeClass]:r},n}))}},methods:{change(e){this.$emit("update:value",e)},actionDescription(e){const t=e.tooltipKey?this.t(e.tooltipKey):e.tooltip,n=e.labelKey?this.t(e.labelKey):e.label;return t||n||""},actionAriaLabel(e){const t=e.ariaLabel,n=e.labelKey?this.t(e.labelKey):e.label,r=e.tooltipKey?this.t(e.tooltipKey):e.tooltip;return t||r||n||void 0}}},u=n(47433);const d=(0,u.A)(c,[["render",l]]);var h=d},56601:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var r=n(9274);const i=["alt"];var a=(0,r.defineComponent)({__name:"ButtonMultiAction",props:{borderless:{type:Boolean},invisible:{type:Boolean}},emits:["click"],setup(e){const t=e,n=(0,r.computed)((()=>({borderless:t?.borderless,invisible:t?.invisible})));return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("button",{type:"button",class:(0,r.normalizeClass)(["btn btn-sm role-multi-action actions",n.value]),role:"button",onClick:t[0]||(t[0]=t=>e.$emit("click",t))},[(0,r.createElementVNode)("i",{class:"icon icon-actions",alt:e.t("sortableTable.tableActionsImgAlt")},null,8,i)],2))}}),o=(n(83520),n(47433));const s=(0,o.A)(a,[["__scopeId","data-v-a3361b40"]]);var l=s},59843:function(e,t,n){"use strict";n.d(t,{A:function(){return g}});var r=n(9274);const i=["tabindex"],a={key:0},o={key:0,class:"keymap overlay"},s=["aria-describedby"],l={key:1};function c(e,t,n,c,u,d){const h=(0,r.resolveComponent)("Codemirror"),p=(0,r.resolveDirective)("clean-tooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:"codeMirrorContainer",tabindex:d.codeMirrorContainerTabIndex,class:(0,r.normalizeClass)(["code-mirror code-mirror-container",{["as-text-area"]:n.asTextArea}]),onFocusin:t[1]||(t[1]=(...e)=>d.focusChanged&&d.focusChanged(...e)),onBlur:t[2]||(t[2]=e=>d.focusChanged(e,!0))},[u.loaded?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[n.showKeyMapBox&&!u.removeKeyMapBox&&d.keyMapTooltip&&d.isNonDefaultKeyMap?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"keymap-indicator","data-testid":"code-mirror-keymap",onClick:t[0]||(t[0]=(...e)=>d.closeKeyMapInfo&&d.closeKeyMapInfo(...e))},t[3]||(t[3]=[(0,r.createElementVNode)("i",{class:"icon icon-keyboard keymap-icon"},null,-1),(0,r.createElementVNode)("div",{class:"close-indicator"},[(0,r.createElementVNode)("i",{class:"icon icon-close icon-sm"})],-1)]))),[[p,d.keyMapTooltip]])])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(h,{id:"code-mirror-el",ref:"codeMirrorRef",value:n.value,options:d.combinedOptions,disabled:d.isDisabled,"original-style":!0,onReady:d.onReady,onInput:d.onInput,onChanges:d.onChanges,onFocus:d.onFocus,onBlur:d.onBlur},null,8,["value","options","disabled","onReady","onInput","onChanges","onFocus","onBlur"]),(0,r.withDirectives)((0,r.createElementVNode)("span",{class:"escape-text",role:"alert","aria-describedby":e.t("wm.containerShell.escapeText")},(0,r.toDisplayString)(e.t("codeMirror.escapeText")),9,s),[[r.vShow,u.isCodeMirrorFocused]])])):((0,r.openBlock)(),(0,r.createElementBlock)("div",l," Loading... "))],42,i)}var u=n(91462),d=n(14220),h=n(4364),p={name:"CodeMirror",emits:["onReady","onInput","onChanges","onFocus","validationChanged"],props:{mode:{type:String,default:d.G5},value:{type:String,required:!0},options:{type:Object,default:()=>{}},asTextArea:{type:Boolean,default:!1},showKeyMapBox:{type:Boolean,default:!1}},data(){return{codeMirrorRef:null,loaded:!1,removeKeyMapBox:!1,hasLintErrors:!1,currFocusedElem:void 0,isCodeMirrorFocused:!1,codeMirrorContainerRef:void 0}},computed:{isDisabled(){return this.mode===d.nW},combinedOptions(){const e=this.$store.getters["prefs/theme"],t=this.$store.getters["prefs/get"](u.aP),n={tabSize:2,indentWithTabs:!1,mode:"yaml",keyMap:t,theme:`base16-${e}`,lineNumbers:!0,line:!0,styleActiveLine:!1,lineWrapping:!0,foldGutter:!0,styleSelectedText:!0,showCursorWhenSelecting:!0,autocorrect:!1};return this.asTextArea&&(n.lineNumbers=!1,n.foldGutter=!1,n.tabSize=0,n.extraKeys={Tab:!1}),Object.assign(n,this.options),this.options?.lint&&(n.lint={onUpdateLinting:this.handleLintErrors}),n.readOnly=!!this.isDisabled&&"nocursor",n},keyMapTooltip(){if(this.combinedOptions?.keyMap){const e=this.t(`prefs.keymap.${this.combinedOptions.keyMap}`);return this.t("codeMirror.keymap.indicatorToolip",{name:e})}return null},isNonDefaultKeyMap(){return"sublime"!==this.combinedOptions?.keyMap},isCodeMirrorContainerFocused(){return this.currFocusedElem===this.codeMirrorContainerRef},codeMirrorContainerTabIndex(){return this.isCodeMirrorFocused?0:-1}},created(){window.__codeMirrorLoader?window.__codeMirrorLoader().then((()=>{this.loaded=!0})):h.error("Code mirror loader not available")},async mounted(){const e=this.$refs.codeMirrorContainer;e.addEventListener("keydown",this.handleKeyPress),this.codeMirrorContainerRef=this.$refs.codeMirrorContainer},beforeUnmount(){const e=this.$refs.codeMirrorContainer;e.removeEventListener("keydown",this.handleKeyPress)},watch:{hasLintErrors(e){this.$emit("validationChanged",!e)},isCodeMirrorContainerFocused:{handler(e){const t=this.codeMirrorRef?.getInputField();t&&(t.tabIndex=e?-1:0)},immediate:!0}},methods:{focusChanged(e,t=!1){this.currFocusedElem=t?void 0:e.target},handleKeyPress(e){this.isCodeMirrorFocused&&"Escape"===e.code&&(e.preventDefault(),e.stopPropagation());const t=e.shiftKey&&"Escape"===e.code;this.isCodeMirrorFocused&&t&&this.$refs?.codeMirrorContainer?.focus(),!this.isCodeMirrorContainerFocused||"Enter"!==e.code&&"Space"!==e.code||this.codeMirrorRef.focus()},handleLintErrors(e=[]){const t=e.filter((e=>!e.severity||"error"===e.severity)).length>0;this.hasLintErrors=t},focus(){this.$refs.codeMirrorRef&&this.$refs.codeMirrorRef.cminstance.focus()},refresh(){this.$refs.codeMirrorRef&&this.$refs.codeMirrorRef.refresh()},onReady(e){this.$emit("validationChanged",!0),this.$nextTick((()=>{e.refresh(),this.codeMirrorRef=e})),this.$emit("onReady",e)},onInput(e){this.$emit("onInput",e)},onChanges(e,t){this.$emit("onChanges",e,t)},onFocus(){this.isCodeMirrorFocused=!0,this.$emit("onFocus",!0)},onBlur(){this.isCodeMirrorFocused=!1,this.$emit("onFocus",!1)},updateValue(e){this.$refs.codeMirrorRef&&this.$refs.codeMirrorRef.cminstance.doc.setValue(e)},closeKeyMapInfo(){this.removeKeyMapBox=!0}}},f=(n(46883),n(47433));const m=(0,f.A)(p,[["render",c]]);var g=m},2117:function(e,t,n){"use strict";n.d(t,{A:function(){return Ke}});var r=n(9274);const i={class:"cru"},a={key:0,class:"description"},o={key:0,id:"cru-errors",class:"cru__errors"},s={key:1,class:"subtypes-container cru__content"},l=["data-testid","aria-label","onClick","onKeyup"],c={class:"subtype-container"},u={class:"subtype-logo"},d=["src","alt"],h={key:1,class:"round-image"},p={key:0,class:"banner-abbrv"},f={key:0},m={key:1},g={class:"subtype-body"},v={key:0},b={key:1},y=["href"],w={key:0},E={key:1,class:"description"},_={key:0},S={key:1},k={key:0,class:"resource-container cru__content cru__content-wizard"},x={class:"controls-steps"},A=["onClick"],N=["disabled","onClick"],C=["data-testid"],T={key:4,class:"cru-resource-yaml-container resource-container cru__content"},R={class:"controls-middle"},O=["data-testid","onClick"],I=["data-testid","disabled","onClick"],L={key:0,class:"controls-right"},D=["data-testid","onClick"];function P(e,t,n,P,M,B){const F=(0,r.resolveComponent)("Banner"),$=(0,r.resolveComponent)("t"),U=(0,r.resolveComponent)("AsyncButton"),j=(0,r.resolveComponent)("CruResourceFooter"),V=(0,r.resolveComponent)("Wizard"),K=(0,r.resolveComponent)("ResourceYaml"),H=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("section",i,[(0,r.renderSlot)(e.$slots,"noticeBanner",{},void 0,!0),n.description?((0,r.openBlock)(),(0,r.createElementBlock)("p",a,(0,r.toDisplayString)(n.description),1)):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(B.isView?"div":"form"),{value:n.resource,"data-testid":"cru-form",class:"create-resource-container cru__form",onSubmit:t[6]||(t[6]=(0,r.withModifiers)((()=>{}),["prevent"])),onKeydown:t[7]||(t[7]=(0,r.withKeys)((e=>B.onPressEnter(e)),["enter"]))},{default:(0,r.withCtx)((()=>[B.hasErrors?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.errors,((e,t)=>((0,r.openBlock)(),(0,r.createBlock)(F,{key:t,color:"error","data-testid":`error-banner${t}`,label:B.stringify(B.mappedErrors[e].message),icon:B.mappedErrors[e].icon,closable:!0,onClose:e=>B.closeError(t)},null,8,["data-testid","label","icon","onClose"])))),128))])):(0,r.createCommentVNode)("",!0),B.showSubtypeSelection?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.renderSlot)(e.$slots,"subtypes",{subtypes:n.subtypes},(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.subtypes,((i,a)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:a,class:(0,r.normalizeClass)(["subtype-banner",{selected:i.id===B._selectedSubtype}]),"data-testid":`subtype-banner-item-${i.id}`,tabindex:"0","aria-disabled":!1,"aria-label":i.description?`${i.label} - ${i.description}`:i.label,role:"link",onClick:e=>B.selectType(i.id,e),onKeyup:(0,r.withKeys)((e=>B.selectType(i.id,e)),["enter","space"])},[(0,r.renderSlot)(e.$slots,"subtype-content",{},(()=>[(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("div",u,[i.bannerImage?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:0,src:i.bannerImage,alt:(n.resource.type?n.resource.type+": ":"")+(i.label||"")},null,8,d)):((0,r.openBlock)(),(0,r.createElementBlock)("div",h,[i.bannerAbbrv?((0,r.openBlock)(),(0,r.createElementBlock)("div",p,[e.$store.getters["i18n/exists"](i.bannerAbbrv)?((0,r.openBlock)(),(0,r.createElementBlock)("span",f,(0,r.toDisplayString)(e.t(i.bannerAbbrv)),1)):((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:1,style:(0,r.normalizeStyle)({fontSize:M.abbrSizes[i.bannerAbbrv.length]})},(0,r.toDisplayString)(i.bannerAbbrv),5))])):((0,r.openBlock)(),(0,r.createElementBlock)("div",m,(0,r.toDisplayString)(i.id.slice(0,1).toUpperCase()),1))]))]),(0,r.createElementVNode)("div",g,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["title",{"with-description":!!i.description}])},[(0,r.createElementVNode)("h5",null,[e.$store.getters["i18n/exists"](i.label)?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",v,null,512)),[[H,e.t(i.label)]]):((0,r.openBlock)(),(0,r.createElementBlock)("span",b,(0,r.toDisplayString)(i.label),1))]),i.docLink?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,href:i.docLink,target:"_blank",rel:"noopener nofollow",class:"flex-right"},[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("generic.moreInfo"))+" ",1),t[8]||(t[8]=(0,r.createElementVNode)("i",{class:"icon icon-external-link"},null,-1))],8,y)):(0,r.createCommentVNode)("",!0)],2),i.description?((0,r.openBlock)(),(0,r.createElementBlock)("hr",w)):(0,r.createCommentVNode)("",!0),i.description?((0,r.openBlock)(),(0,r.createElementBlock)("div",E,[e.$store.getters["i18n/exists"](i.description)?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",_,null,512)),[[H,e.t(i.description,{},!0)]]):((0,r.openBlock)(),(0,r.createElementBlock)("span",S,(0,r.toDisplayString)(i.description),1))])):(0,r.createCommentVNode)("",!0)])])]),!0)],42,l)))),128))]),!0)])):(0,r.createCommentVNode)("",!0),M.showAsForm&&n.steps.length?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:2},[B._selectedSubtype||!n.subtypes.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",k,[n.resource?((0,r.openBlock)(),(0,r.createBlock)(V,{key:0,ref:"Wizard","header-mode":n.mode,steps:n.steps,"edit-first-step":n.stepsOptions.editFirstStep,errors:n.errors,"finish-mode":n.finishMode,class:"wizard",onError:t[2]||(t[2]=e=>n.errors=e)},{stepContainer:(0,r.withCtx)((({activeStep:t})=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.steps,((n,i)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:i},[n.name===t.name||n.hidden?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:n.name,class:(0,r.normalizeClass)(["step-container__step",{hide:n.name!==t.name&&n.hidden}])},[(0,r.renderSlot)(e.$slots,n.name,{step:n},void 0,!0)],2)):(0,r.createCommentVNode)("",!0)],64)))),128))])),controlsContainer:(0,r.withCtx)((({showPrevious:i,next:a,back:o,activeStep:s,canNext:l,activeStepIndex:c,visibleSteps:u})=>[(0,r.createVNode)(j,{class:"cru__footer",mode:n.mode,"is-form":M.showAsForm,"show-cancel":n.showCancel,onCancelConfirmed:B.confirmCancel},(0,r.createSlots)({default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",x,[B.showYaml?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,type:"button",class:"btn role-secondary",onClick:t[0]||(t[0]=(...e)=>B.showPreviewYaml&&B.showPreviewYaml(...e))},[(0,r.createVNode)($,{k:"cruResource.previewYaml"})])):(0,r.createCommentVNode)("",!0),i?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:1,type:"button",class:"btn role-secondary",onClick:e=>o()},[(0,r.createVNode)($,{k:"wizard.previous"})],8,A)):(0,r.createCommentVNode)("",!0),c===u.length-1?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:2},[B.showSubtypeSelection||B.isView?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(U,{key:0,ref:"save",disabled:!s.ready,mode:n.finishButtonMode||n.mode,onClick:t[1]||(t[1]=t=>e.$emit("finish",t))},null,8,["disabled","mode"]))],64)):((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:3,disabled:!l,type:"button",class:"btn role-primary",onClick:e=>a()},[(0,r.createVNode)($,{k:"wizard.next"})],8,N))])])),_:2},[(0,r.renderList)(e.$slots,((t,n)=>({name:n,fn:(0,r.withCtx)((t=>[B.shouldProvideSlot(n)?(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.mergeProps)({key:0},t)),void 0,!0):(0,r.createCommentVNode)("",!0)]))})))]),1032,["mode","is-form","show-cancel","onCancelConfirmed"])])),_:3},8,["header-mode","steps","edit-first-step","errors","finish-mode"])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)],64)):M.showAsForm?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:3},[B._selectedSubtype||!n.subtypes.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"resource-container cru__content",style:(0,r.normalizeStyle)([n.minHeight?{"min-height":n.minHeight}:{}])},[(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)],4)):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"form-footer",{},(()=>[(0,r.createVNode)(j,{class:"cru__footer",mode:n.mode,"is-form":M.showAsForm,"show-cancel":n.showCancel,"component-testid":n.componentTestid,onCancelConfirmed:B.confirmCancel},(0,r.createSlots)({_:2},[(0,r.renderList)(e.$slots,((t,n)=>({name:n,fn:(0,r.withCtx)((t=>[B.shouldProvideSlot(n)?(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.mergeProps)({key:0},t)),void 0,!0):(0,r.createCommentVNode)("",!0)]))}))),B.isView?void 0:{name:"default",fn:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",null,[B.showYaml?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,"data-testid":n.componentTestid+"-yaml",type:"button",class:"btn role-secondary",onClick:t[3]||(t[3]=(...e)=>B.showPreviewYaml&&B.showPreviewYaml(...e))},[(0,r.createVNode)($,{k:"cruResource.previewYaml"})],8,C)):(0,r.createCommentVNode)("",!0),B.showSubtypeSelection?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(U,{key:1,ref:"save",disabled:!B.canSave,mode:n.finishButtonMode||n.mode,"data-testid":n.componentTestid+"-save",onClick:t[4]||(t[4]=e=>B.clickSave(e))},null,8,["disabled","mode","data-testid"]))])])),key:"0"}]),1032,["mode","is-form","show-cancel","component-testid","onCancelConfirmed"])]),!0)],64)):B.showYaml&&!M.showAsForm?((0,r.openBlock)(),(0,r.createElementBlock)("section",T,[(0,r.createVNode)(K,{ref:"resourceyaml",value:n.resource,mode:n.mode,"initial-yaml-for-diff":M.initialYaml,yaml:M.resourceYaml,"offer-preview":B.isEdit,"done-route":n.doneRoute,"done-override":n.resource.doneOverride,errors:n.errors,"apply-hooks":n.applyHooks,class:"resource-container cru__content",onError:t[5]||(t[5]=t=>e.$emit("error",t))},{yamlFooter:(0,r.withCtx)((({yamlSave:t,showPreview:i,yamlPreview:a,yamlUnpreview:o,canDiff:s})=>[(0,r.renderSlot)(e.$slots,"cru-yaml-footer",{},(()=>[(0,r.createVNode)(j,{class:"cru__footer","done-route":n.doneRoute,mode:n.mode,"is-form":M.showAsForm,onCancelConfirmed:B.confirmCancel},{default:(0,r.withCtx)((({checkCancel:l})=>[(0,r.createElementVNode)("div",R,[i?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,type:"button",class:"btn role-secondary","data-testid":n.componentTestid+"-yaml-yaml",onClick:o},[(0,r.createVNode)($,{k:"resourceYaml.buttons.continue"})],8,O)):(0,r.createCommentVNode)("",!0),!i&&B.isEdit?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:1,"data-testid":n.componentTestid+"-yaml-yaml-preview",disabled:!s,type:"button",class:"btn role-secondary",onClick:a},[(0,r.createVNode)($,{k:"resourceYaml.buttons.diff"})],8,I)):(0,r.createCommentVNode)("",!0)]),B._selectedSubtype||!n.subtypes.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",L,[(0,r.createElementVNode)("button",{"data-testid":n.componentTestid+"-yaml-cancel",type:"button",class:"btn role-secondary",onClick:e=>l(!1)},[(0,r.createVNode)($,{k:"cruResource.backToForm"})],8,D),B.showSubtypeSelection?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(U,{key:0,"data-testid":n.componentTestid+"-yaml-save",disabled:!B.canSave,"action-label":B.isEdit?e.t("generic.save"):e.t("generic.create"),onClick:e=>t(e)},null,8,["data-testid","disabled","action-label","onClick"]))])):(0,r.createCommentVNode)("",!0)])),_:2},1032,["done-route","mode","is-form","onCancelConfirmed"])]),!0)])),_:3},8,["value","mode","initial-yaml-for-diff","yaml","offer-preview","done-route","done-override","errors","apply-hooks"])])):(0,r.createCommentVNode)("",!0)])),_:3},40,["value"]))])}var M=n(3514),B=n.n(M),F=n(37648),$=n(76978),U=n(35664),j=n(39426),V=n(9980),K=n(89651),H=n(65359),G=n(99726);const z={class:"cru-resource-footer"},q=["data-testid"];function X(e,t,n,i,a,o){const s=(0,r.resolveComponent)("t"),l=(0,r.resolveComponent)("AsyncButton"),c=(0,r.resolveComponent)("ResourceCancelModal");return(0,r.openBlock)(),(0,r.createElementBlock)("div",z,[(0,r.renderSlot)(e.$slots,"footer-prefix"),(0,r.renderSlot)(e.$slots,"cancel",{},(()=>[!o.isView&&n.showCancel?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,id:"cru-cancel","data-testid":n.componentTestid+"-cancel",type:"button",class:"btn role-secondary",onClick:t[0]||(t[0]=t=>n.confirmCancelRequired?o.checkCancel(!0):e.$emit("cancel-confirmed",!0))},[(0,r.createVNode)(s,{k:"generic.cancel"})],8,q)):(0,r.createCommentVNode)("",!0)])),(0,r.renderSlot)(e.$slots,"default",{checkCancel:o.checkCancel},(()=>[o.isView?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,"data-testid":n.componentTestid+"-create",mode:n.finishButtonMode||n.mode,onClick:t[1]||(t[1]=t=>e.$emit("finish",t))},null,8,["data-testid","mode"]))])),(0,r.createVNode)(c,{ref:"cancelModal","is-cancel-modal":a.isCancelModal,"is-form":n.isForm,onConfirmCancel:t[2]||(t[2]=e=>o.confirmCancel(e))},null,8,["is-cancel-modal","is-form"])])}const W={class:"header"},Y={class:"text-default-text"},Q={key:1},J={class:"body"},Z={key:0},ee={key:1},te={class:"footer"},ne={key:0},re={key:1};function ie(e,t,n,i,a,o){const s=(0,r.resolveComponent)("t"),l=(0,r.resolveComponent)("app-modal");return a.showModal?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,customClass:"confirm-modal",name:"cancel-modal",width:440,height:"auto",onClose:o.cancelCancel},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",W,[(0,r.createElementVNode)("h4",Y,[n.isCancelModal?((0,r.openBlock)(),(0,r.createBlock)(s,{key:0,k:"generic.cancel"})):((0,r.openBlock)(),(0,r.createElementBlock)("span",Q,(0,r.toDisplayString)(e.t("cruResource.backToForm")),1))])]),(0,r.createElementVNode)("div",J,[n.isCancelModal?((0,r.openBlock)(),(0,r.createElementBlock)("p",Z,[(0,r.createVNode)(s,{k:"cruResource.cancelBody"})])):((0,r.openBlock)(),(0,r.createElementBlock)("p",ee,[(0,r.createVNode)(s,{k:"cruResource.backBody"})]))]),(0,r.createElementVNode)("div",te,[(0,r.createElementVNode)("button",{type:"button",class:"btn role-secondary",onClick:t[0]||(t[0]=(...e)=>o.cancelCancel&&o.cancelCancel(...e))},(0,r.toDisplayString)(n.isForm?e.t("cruResource.reviewForm"):e.t("cruResource.reviewYaml")),1),(0,r.createElementVNode)("button",{type:"button",class:"btn role-primary",onClick:t[1]||(t[1]=(...e)=>o.confirmCancel&&o.confirmCancel(...e))},[n.isCancelModal?((0,r.openBlock)(),(0,r.createElementBlock)("span",ne,(0,r.toDisplayString)(e.t("cruResource.confirmCancel")),1)):((0,r.openBlock)(),(0,r.createElementBlock)("span",re,(0,r.toDisplayString)(e.t("cruResource.confirmBack")),1))])])])),_:1},8,["onClose"])):(0,r.createCommentVNode)("",!0)}var ae=n(36832),oe={emits:["cancel-cancel","confirm-cancel"],components:{AppModal:ae.h},props:{isCancelModal:{type:Boolean,default:!1},isForm:{type:Boolean,default:!1}},data(){return{showModal:!1}},watch:{},methods:{show(){this.showModal=!0},cancelCancel(){this.showModal=!1,this.$emit("cancel-cancel")},confirmCancel(){this.showModal=!1,this.$emit("confirm-cancel",this.isCancelModal)}}},se=(n(93127),n(47433));const le=(0,se.A)(oe,[["render",ie],["__scopeId","data-v-72d8b215"]]);var ce=le,ue=n(14220),de={emits:["cancel-confirmed","finish"],components:{AsyncButton:K.A,ResourceCancelModal:ce},props:{mode:{type:String,default:"create"},isForm:{type:Boolean,default:!0},finishButtonMode:{type:String,default:null},confirmCancelRequired:{type:Boolean,default:!1},confirmBackRequired:{type:Boolean,default:!0},showCancel:{type:Boolean,default:!0},componentTestid:{type:String,default:"form-footer"}},data(){return{isCancelModal:!1}},computed:{...(0,H.L8)({t:"i18n/t"}),isView(){return this.mode===ue.nW}},methods:{checkCancel(e){this.isCancelModal=!!e,this.$refs.cancelModal.show()},confirmCancel(e){this.$emit("cancel-confirmed",e)}}};n(21255);const he=(0,se.A)(de,[["render",X]]);var pe=he,fe=n(8135);const me={ref:"wizard",class:"outer-container"},ge={class:"header"},ve={class:"title"},be={key:0,class:"top choice-banner"},ye={class:"title"},we={key:0,class:"round-image"},Ee={class:"subtitle"},_e={key:0},Se={key:1,class:"subtext"},ke={key:1,class:"subtitle"},xe={key:0,class:"subtext"},Ae={class:"step-sequence"},Ne=["id"],Ce=["aria-controls","aria-selected","onClick"],Te={id:"wizard-footer-controls",class:"controls-row pt-20"},Re={class:"controls-steps"},Oe=["disabled"],Ie=["disabled"];function Le(e,t,n,i,a,o){const s=(0,r.resolveComponent)("Loading"),l=(0,r.resolveComponent)("LazyImage"),c=(0,r.resolveComponent)("Banner"),u=(0,r.resolveComponent)("t"),d=(0,r.resolveComponent)("AsyncButton");return(0,r.openBlock)(),(0,r.createElementBlock)("div",me,[o.stepsLoaded?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(s,{key:0,mode:"relative"})),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["outer-container",{hide:!o.stepsLoaded}])},[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("div",ge,[(0,r.createElementVNode)("div",ve,[n.showBanner?((0,r.openBlock)(),(0,r.createElementBlock)("div",be,[n.bannerImage||n.bannerTitle?(0,r.renderSlot)(e.$slots,"bannerTitle",{key:0},(()=>[(0,r.withDirectives)((0,r.createElementVNode)("div",ye,[(0,r.renderSlot)(e.$slots,"bannerTitleImage",{},(()=>[n.bannerImage?((0,r.openBlock)(),(0,r.createElementBlock)("div",we,[(0,r.createVNode)(l,{src:n.bannerImage,class:"logo"},null,8,["src"])])):(0,r.createCommentVNode)("",!0)]),!0),(0,r.createElementVNode)("div",Ee,[n.bannerTitle?((0,r.openBlock)(),(0,r.createElementBlock)("h2",_e,(0,r.toDisplayString)(n.bannerTitle),1)):(0,r.createCommentVNode)("",!0),n.bannerTitleSubtext?((0,r.openBlock)(),(0,r.createElementBlock)("span",Se,(0,r.toDisplayString)(n.bannerTitleSubtext),1)):(0,r.createCommentVNode)("",!0)])],512),[[r.vShow,n.initialTitle||o.activeStepIndex>0]])]),!0):(0,r.createCommentVNode)("",!0),a.activeStep&&o.showSteps?((0,r.openBlock)(),(0,r.createElementBlock)("div",ke,[(0,r.createElementVNode)("h2",null,(0,r.toDisplayString)(n.headerMode?e.t(`wizard.${n.headerMode}`):e.t(`asyncButton.${n.finishMode}.action`))+": "+(0,r.toDisplayString)(e.t("wizard.step",{number:o.activeStepIndex+1})),1),(0,r.renderSlot)(e.$slots,"bannerSubtext",{},(()=>[null!==a.activeStep.subtext?((0,r.openBlock)(),(0,r.createElementBlock)("span",xe,(0,r.toDisplayString)(a.activeStep.subtext||a.activeStep.label),1)):(0,r.createCommentVNode)("",!0)]),!0)])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",Ae,[o.showSteps?((0,r.openBlock)(),(0,r.createElementBlock)("ul",{key:0,class:"steps",tabindex:"0",onKeyup:[t[0]||(t[0]=(0,r.withKeys)((0,r.withModifiers)((t=>e.selectNext(1)),["stop"]),["right"])),t[1]||(t[1]=(0,r.withKeys)((0,r.withModifiers)((t=>e.selectNext(-1)),["stop"]),["left"]))]},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.visibleSteps,((e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:t},[(0,r.createElementVNode)("li",{id:e.name,class:(0,r.normalizeClass)({step:!0,active:e.name===a.activeStep.name,disabled:!o.isAvailable(e)}),role:"presentation"},[(0,r.createElementVNode)("span",{"aria-controls":"step"+t+1,"aria-selected":e.name===a.activeStep.name,role:"tab",class:"controls",onClick:(0,r.withModifiers)((e=>o.goToStep(t+1,!0)),["prevent"])},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["icon icon-lg",{"icon-dot":e.name===a.activeStep.name,"icon-dot-open":e.name!==a.activeStep.name}])},null,2),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.label),1)],8,Ce)],10,Ne),t!==o.visibleSteps.length-1?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.name,class:"divider"})):(0,r.createCommentVNode)("",!0)],64)))),128))],32)):(0,r.createCommentVNode)("",!0)])])]),(0,r.renderSlot)(e.$slots,"stepContainer",{class:"step-container",activeStep:a.activeStep},(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.steps,((t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:n},[t.name===a.activeStep.name||t.hidden?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:t.name,class:(0,r.normalizeClass)(["step-container__step",{hide:t.name!==a.activeStep.name&&t.hidden}])},[(0,r.renderSlot)(e.$slots,t.name,{step:t},void 0,!0)],2)):(0,r.createCommentVNode)("",!0)],64)))),128))]),!0)]),(0,r.renderSlot)(e.$slots,"controlsContainer",{showPrevious:o.showPrevious,next:o.next,back:o.back,canNext:o.canNext,activeStepIndex:o.activeStepIndex,visibleSteps:o.visibleSteps,errorStrings:o.errorStrings,finish:o.finish,cancel:o.cancel,activeStep:a.activeStep},(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.errorStrings,((e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:t},[(0,r.createVNode)(c,{color:"error",label:e,closable:!0,class:"footer-error",onClose:e=>n.errors.splice(t,1)},null,8,["label","onClose"])])))),128)),(0,r.createElementVNode)("div",Te,[(0,r.renderSlot)(e.$slots,"cancel",{cancel:o.cancel},(()=>[(0,r.createElementVNode)("button",{type:"button",class:"btn role-secondary",onClick:t[2]||(t[2]=(...e)=>o.cancel&&o.cancel(...e))},[(0,r.createVNode)(u,{k:"generic.cancel"})])]),!0),(0,r.createElementVNode)("div",Re,[o.showPrevious?(0,r.renderSlot)(e.$slots,"back",{key:0,back:o.back},(()=>[(0,r.createElementVNode)("button",{disabled:!o.canPrevious||!n.editFirstStep&&1===o.activeStepIndex,type:"button",class:"btn role-secondary",onClick:t[3]||(t[3]=e=>o.back())},[(0,r.createVNode)(u,{k:"wizard.previous"})],8,Oe)]),!0):(0,r.createCommentVNode)("",!0),o.activeStepIndex===o.visibleSteps.length-1?(0,r.renderSlot)(e.$slots,"finish",{key:1,finish:o.finish},(()=>[(0,r.createVNode)(d,{disabled:!a.activeStep.ready,mode:n.finishMode,onClick:o.finish},null,8,["disabled","mode","onClick"])]),!0):(0,r.renderSlot)(e.$slots,"next",{key:2,next:o.next},(()=>[(0,r.createElementVNode)("button",{disabled:!o.canNext,type:"button",class:(0,r.normalizeClass)(o.nextButtonStyle),onClick:t[4]||(t[4]=e=>o.next())},[(0,r.createVNode)(u,{k:o.nextButtonLabel},null,8,["k"])],10,Ie)]),!0)])])]),!0)],2)],512)}var De=n(84409),Pe=n(48577),Me={name:"Wizard",emits:["next","cancel","finish"],components:{AsyncButton:K.A,Banner:V.l,Loading:De.A,LazyImage:Pe.A},props:{steps:{type:Array,required:!0},initStepIndex:{type:Number,default:0},editFirstStep:{type:Boolean,default:!1},showBanner:{type:Boolean,default:!0},initialTitle:{type:Boolean,default:!0},bannerTitle:{type:String,default:null},bannerImage:{type:String,default:null},bannerTitleSubtext:{type:String,default:null},headerMode:{type:String,default:null},finishMode:{type:String,default:"finish"},errors:{type:Array,default:null}},data(){return{activeStep:null}},computed:{errorStrings(){return(this.errors||[]).map((e=>(0,G.As)(e)))},activeStepIndex(){return this.visibleSteps.findIndex((e=>e.name===this.activeStep.name))},showPrevious(){if(0===this.activeStepIndex)return!1;for(let e=0;e<this.activeStepIndex;e++){const t=this.visibleSteps[e];if(!t)break;if(!t.hidden)return!0}return!1},canPrevious(){return!this.activeStep?.previousButton?.disable&&(this.activeStepIndex>1||this.editFirstStep)},canNext(){const e=this.visibleSteps[this.activeStepIndex];return this.activeStepIndex<this.visibleSteps.length-1&&e.ready},readySteps(){return this.visibleSteps.filter((e=>e.ready))},showSteps(){return!1!==this.activeStep.showSteps&&this.visibleSteps.length>1},stepsLoaded(){return!this.steps.some((e=>!0===e.loading))},visibleSteps(){return this.steps.filter((e=>!e.hidden))},nextButtonStyle(){return this.activeStep.nextButton?.style||"btn role-primary"},nextButtonLabel(){return this.activeStep.nextButton?.labelKey||"wizard.next"}},watch:{stepsLoaded(e,t){!t&&e&&(this.activeStep=this.visibleSteps[this.initStepIndex],this.goToStep(this.activeStepIndex+1))},errors(){this.$nextTick((()=>{this.$refs.wizard.scrollTop=this.$refs.wizard.scrollHeight}))}},created(){this.activeStep=this.visibleSteps[this.initStepIndex],this.goToStep(this.activeStepIndex+1)},methods:{goToStep(e,t){if(e<1)return;if(!this.editFirstStep&&1===e&&t)return;const n=this.visibleSteps[e-1];n&&(this.isAvailable(n)||1===e)&&(this.activeStep=n,this.$emit("next",{step:n}))},cancel(){this.$emit("cancel")},finish(e){this.$emit("finish",e)},next(){this.goToStep(this.activeStepIndex+2)},back(){this.goToStep(this.activeStepIndex)},isAvailable(e){if(!e)return!1;const t=this.visibleSteps.findIndex((t=>t.name===e.name));if(0===t&&!this.editFirstStep)return!1;for(let n=0;n<t;n++)if(!1===this.visibleSteps[n].ready)return!1;return!0}}};n(21362);const Be=(0,se.A)(Me,[["render",Le],["__scopeId","data-v-1449f802"]]);var Fe=Be,$e=n(4364);const Ue="show-preview-yaml";var je={name:"CruResource",emits:["select-type","error","cancel","finish"],components:{AsyncButton:K.A,Banner:V.l,CruResourceFooter:pe,ResourceYaml:j.A,Wizard:Fe},props:{doneRoute:{type:[String,Object],default:null},cancelEvent:{type:Boolean,default:!1},showCancel:{type:Boolean,default:!0},mode:{type:String,required:!0},resource:{type:[String,Object],required:!0},subtypes:{type:Array,default:()=>[]},selectedSubtype:{type:String,default:null},validationPassed:{type:Boolean,default:!0},errors:{type:Array,default:()=>[]},errorsMap:{type:Object,default:null},canYaml:{type:Boolean,default:!0},generateYaml:{type:Function,default:null},finishButtonMode:{type:String,default:null},preventEnterSubmit:{type:Boolean,default:!1},applyHooks:{type:Function,default:null},steps:{type:Array,default:()=>[]},stepsOptions:{type:Object,default:()=>({editFirstStep:!0})},finishMode:{type:String,default:"finish"},minHeight:{type:String,default:""},namespaceKey:{type:String,default:"metadata.namespace"},componentTestid:{type:String,default:"form"},description:{type:String,default:""},yamlModifiers:{type:Object,default:void 0}},data(e){const t=this.$store.getters["currentStore"](this.resource),n=this.$store.getters[`${t}/schemaFor`](this.resource.type);return{isCancelModal:!1,showAsForm:this.$route.query[ue.AS]!==ue.zD,resourceYaml:null,initialYaml:null,initialResource:(0,$.o8)(this.resource),abbrSizes:{3:"24px",4:"18px",5:"16px",6:"14px"},schema:n}},computed:{canSave(){const{validationPassed:e,showAsForm:t,steps:n}=this;return t&&n?.length?e&&this.steps.every((e=>e.ready)):!this.showAsForm||this.validationPassed},canEditYaml(){return!this.schema?.resourceMethods?.includes("blocked-PUT")},showYaml(){return this.canYaml&&(this._selectedSubtype||!this.subtypes.length)&&this.canEditYaml&&this.mode!==ue.nW},isView(){return this.mode===ue.nW},isEdit(){return this.mode===ue.G5},_selectedSubtype(){return this.selectedSubtype?this.selectedSubtype:this.$route.query[ue.UA]},showSubtypeSelection(){return!B()(this.subtypes)&&!this._selectedSubtype},...(0,H.L8)({t:"i18n/t"}),...(0,H.aH)("cru-resource",["createNamespace"]),...(0,H.i0)("cru-resource",["setCreateNamespace"]),hasErrors(){return this.errors?.length&&Array.isArray(this.errors)},mappedErrors(){return this.errors?this.errorsMap||this.errors.reduce(((e,t)=>({...e,[t]:{message:t,icon:null}})),{}):{}}},created(){this._selectedSubtype&&this.$emit("select-type",this._selectedSubtype)},mounted(){this.$store.dispatch("cru-resource/setCreateNamespace",!1)},beforeUnmount(){this.$store.dispatch("cru-resource/setCreateNamespace",!1)},methods:{stringify:G.As,confirmCancel(e=!0){e?this.emitOrRoute():this.showAsForm||(this.resourceYaml=null,this.showAsForm=!0,this.$router.applyQuery({[ue.AS]:ue.xz}))},closeError(e){const t=this.errors.filter(((t,n)=>n!==e));this.$emit("error",t,this.errors[e])},emitOrRoute(){if(this.cancelEvent)this.$emit("cancel");else{const{resource:e=this.resource.type}=this.$route.params,t=this.resource.doneOverride,n={name:this.doneRoute,params:{resource:e}};this.$router.replace(t||n)}},async createResourceYaml(e,t=this.resource){if(await(this.schema?.fetchResourceFields()),"function"===typeof this.generateYaml)return this.generateYaml.apply(this,t);{const n=this.$store.getters["currentStore"](t),r=this.$store.getters[`${n}/all`](U.yx),i=(0,$.o8)(t),a=(0,F.Yd)(r,t.type,i,e);return a}},async showPreviewYaml(){if(await(this.schema?.fetchResourceFields()),this.applyHooks)try{await this.applyHooks(fe.Fm,Ue)}catch(t){return void $e.warn("Unable to show yaml: ",t)}const e=await this.createResourceYaml(this.yamlModifiers);this.resourceYaml=e,this.showAsForm=!1,this.$router.applyQuery({[ue.AS]:ue.zD})},selectType(e,t){"A"!==t?.srcElement?.tagName&&(this.$router.applyQuery({[ue.UA]:e}),this.$emit("select-type",e))},async clickSave(e){try{await this.createNamespaceIfNeeded(),this.$emit("finish",e)}catch(t){this.$emit("error",(0,G.rz)(t.message)),e(!1)}},save(){this.$refs.save.clicked()},async createNamespaceIfNeeded(){const e=this.$store.getters["currentStore"](this.resource),t=(0,$.Jt)(this.resource,this.namespaceKey);let n=!1;if(this.createNamespace){try{n=!!await this.$store.dispatch(`${e}/find`,{type:U.CU,id:t})}catch{}if(this.createNamespace&&!n)try{const n=await this.$store.dispatch(`${e}/createNamespace`,{name:t},{root:!0});n.applyDefaults(),await n.save()}catch(r){throw this.$emit("error",(0,G.rz)(r)),new Error(`Could not create the new namespace. ${r.message}`)}}},onPressEnter(e){this.preventEnterSubmit&&e.preventDefault()},shouldProvideSlot(e){return"default"!==e&&"function"===typeof this.$slots[e]}},watch:{async showAsForm(e){e||this.initialYaml||(this.initialYaml=await this.createResourceYaml(void 0,this.initialResource))}}};n(80816);const Ve=(0,se.A)(je,[["render",P],["__scopeId","data-v-5da39a9c"]]);var Ke=Ve},87383:function(e,t,n){"use strict";n.d(t,{A:function(){return S}});var r=n(9274);const i={key:0},a={key:1},o={key:2,class:"text-italic"},s={key:3,class:"text-italic"};function l(e,t,n,l,c,u){const d=(0,r.resolveComponent)("CodeMirror"),h=(0,r.resolveComponent)("CopyToClipboard"),p=(0,r.resolveDirective)("t"),f=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)({"force-wrap":!0,"with-copy":n.copy})},[n.labelKey?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("h5",i,null,512)),[[p,n.labelKey]]):n.label?((0,r.openBlock)(),(0,r.createElementBlock)("h5",a,(0,r.toDisplayString)(n.label),1)):(0,r.createCommentVNode)("",!0),u.isEmpty?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",o,null,512)),[[p,"detailText.empty"]]):u.isBinary?((0,r.openBlock)(),(0,r.createElementBlock)("span",s,(0,r.toDisplayString)(u.body),1)):u.jsonStr?((0,r.openBlock)(),(0,r.createBlock)(d,{key:4,options:{mode:{name:"javascript",json:!0},lineNumbers:!1,foldGutter:!1,readOnly:!0},value:u.jsonStr,class:(0,r.normalizeClass)({conceal:u.concealed})},null,8,["value","class"])):(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:5,"data-testid":"detail-top_html",class:(0,r.normalizeClass)({conceal:u.concealed,monospace:n.monospace&&!u.isBinary})},null,2)),[[f,u.bodyHtml]]),u.isBinary||u.jsonStr||!u.isLong||c.expanded?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:6,href:"#",onClick:t[0]||(t[0]=(0,r.withModifiers)(((...e)=>u.expand&&u.expand(...e)),["prevent"]))},(0,r.toDisplayString)(u.plusMore),1)),n.copy&&!u.isBinary?((0,r.openBlock)(),(0,r.createBlock)(h,{key:7,text:n.value,class:"role-tertiary","action-color":""},null,8,["text"])):(0,r.createCommentVNode)("",!0)],2)}var c=n(65359),u=n(92043),d=n(91462);function h(e,t,n,i,a,o){const s=(0,r.resolveComponent)("AsyncButton");return(0,r.openBlock)(),(0,r.createBlock)(s,(0,r.mergeProps)({icon:"icon-copy","show-label":n.showLabel,"action-label":"Copy","waiting-label":"Copying...","success-label":"Copied!","error-label":"Error Copying"},e.$attrs,{delay:2e3,onClick:o.clicked}),null,16,["show-label","onClick"])}var p=n(89651),f=n(48881),m={components:{AsyncButton:p.A},props:{text:{type:String,required:!0},showLabel:{type:Boolean,default:!0}},methods:{clicked(e){(0,f.e)(this.text).then((()=>{e(!0)})).catch((()=>{e(!1)}))}}},g=n(47433);const v=(0,g.A)(m,[["render",h]]);var b=v,y=n(59843),w=n(4514),E={components:{CopyToClipboard:b,CodeMirror:y.A},props:{label:{type:String,default:null},labelKey:{type:String,default:null},value:{type:String,default:null},maxLength:{type:Number,default:640},binary:{type:Boolean,default:null},conceal:{type:Boolean,default:!1},monospace:{type:Boolean,default:!0},copy:{type:Boolean,default:!0}},data(){const e=this.value.length<=this.maxLength;return{expanded:e}},computed:{isBinary(){return null===this.binary?"string"===typeof this.value&&!(0,u.XC)(this.value):this.binary},size(){return`${this.value}`.length},isLong(){return this.size>this.maxLength},isEmpty(){return 0===this.size},body(){return this.isBinary?this.t("detailText.binary",{n:this.value.length?(0,w.dQ)(this.value):0},!0):this.expanded?this.value:this.value.slice(0,this.maxLength)},jsonStr(){const e=this.value;if(e&&(e.startsWith("{")||e.startsWith("[")))try{let t=JSON.parse(e);return t=JSON.stringify(t,null,2),t}catch{}return null},bodyHtml(){return(0,u.Kn)(this.body)},plusMore(){if(this.expanded)return this.t("detailText.collapse");const e=Math.max(this.size-this.maxLength,0);return this.t("detailText.plusMore",{n:e}).trim()},hideSensitiveData(){return this.$store.getters["prefs/get"](d.qv)},concealed(){return this.conceal&&this.hideSensitiveData&&!this.isBinary},...(0,c.L8)({t:"i18n/t"})},methods:{expand(){this.expanded=!this.expanded}}};n(27539);const _=(0,g.A)(E,[["render",l],["__scopeId","data-v-348d5cf1"]]);var S=_},40612:function(e,t,n){"use strict";n.d(t,{A:function(){return g}});var r=n(9274);const i=["src"],a={key:2,class:"icon icon-extension"};function o(e,t,n,o,s,l){return n.src?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:0,src:n.src,class:(0,r.normalizeClass)(["svg-icon",s.className])},null,10,i)):n.icon?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:1,class:(0,r.normalizeClass)(["icon group-icon",n.icon])},null,2)):((0,r.openBlock)(),(0,r.createElementBlock)("i",a))}class s{constructor(e,t,n){this.set(e,t,n)}toString(){return`rgb(${Math.round(this.r)}, ${Math.round(this.g)}, ${Math.round(this.b)})`}set(e,t,n){this.r=this.clamp(e),this.g=this.clamp(t),this.b=this.clamp(n)}hueRotate(e=0){e=e/180*Math.PI;const t=Math.sin(e),n=Math.cos(e);this.multiply([.213+.787*n-.213*t,.715-.715*n-.715*t,.072-.072*n+.928*t,.213-.213*n+.143*t,.715+.285*n+.14*t,.072-.072*n-.283*t,.213-.213*n-.787*t,.715-.715*n+.715*t,.072+.928*n+.072*t])}grayscale(e=1){this.multiply([.2126+.7874*(1-e),.7152-.7152*(1-e),.0722-.0722*(1-e),.2126-.2126*(1-e),.7152+.2848*(1-e),.0722-.0722*(1-e),.2126-.2126*(1-e),.7152-.7152*(1-e),.0722+.9278*(1-e)])}sepia(e=1){this.multiply([.393+.607*(1-e),.769-.769*(1-e),.189-.189*(1-e),.349-.349*(1-e),.686+.314*(1-e),.168-.168*(1-e),.272-.272*(1-e),.534-.534*(1-e),.131+.869*(1-e)])}saturate(e=1){this.multiply([.213+.787*e,.715-.715*e,.072-.072*e,.213-.213*e,.715+.285*e,.072-.072*e,.213-.213*e,.715-.715*e,.072+.928*e])}multiply(e){const t=this.clamp(this.r*e[0]+this.g*e[1]+this.b*e[2]),n=this.clamp(this.r*e[3]+this.g*e[4]+this.b*e[5]),r=this.clamp(this.r*e[6]+this.g*e[7]+this.b*e[8]);this.r=t,this.g=n,this.b=r}brightness(e=1){this.linear(e)}contrast(e=1){this.linear(e,-.5*e+.5)}linear(e=1,t=0){this.r=this.clamp(this.r*e+255*t),this.g=this.clamp(this.g*e+255*t),this.b=this.clamp(this.b*e+255*t)}invert(e=1){this.r=this.clamp(255*(e+this.r/255*(1-2*e))),this.g=this.clamp(255*(e+this.g/255*(1-2*e))),this.b=this.clamp(255*(e+this.b/255*(1-2*e)))}hsl(){const e=this.r/255,t=this.g/255,n=this.b/255,r=Math.max(e,t,n),i=Math.min(e,t,n),a=(r+i)/2;let o=a,s=a;if(r===i)o=s=0;else{const l=r-i;switch(s=a>.5?l/(2-r-i):l/(r+i),r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:100*o,s:100*s,l:100*a}}clamp(e){return e>255?e=255:e<0&&(e=0),e}}class l{constructor(e){this.target=new s(e.r,e.g,e.b),this.targetHSL=this.target.hsl(),this.reusedColor=new s(0,0,0)}solve(){const e=this.solveNarrow(this.solveWide());return{values:e.values,loss:e.loss,filter:this.css(e.values)}}solveWide(){const e=5,t=15,n=[60,180,18e3,600,1.2,1.2];let r={loss:1/0};for(let i=0;r.loss>25&&i<3;i++){const i=[50,20,3750,50,100,100],a=this.spsa(e,n,t,i,1e3);a.loss<r.loss&&(r=a)}return r}solveNarrow(e){const t=e.loss,n=2,r=t+1,i=[.25*r,.25*r,r,.25*r,.2*r,.2*r];return this.spsa(t,i,n,e.values,500)}spsa(e,t,n,r,i){const a=1,o=.16666666666666666;let s=null,l=1/0;const c=new Array(6),u=new Array(6),d=new Array(6);for(let p=0;p<i;p++){const i=n/Math.pow(p+1,o);for(let e=0;e<6;e++)c[e]=Math.random()>.5?1:-1,u[e]=r[e]+i*c[e],d[e]=r[e]-i*c[e];const f=this.loss(u)-this.loss(d);for(let n=0;n<6;n++){const o=f/(2*i)*c[n],s=t[n]/Math.pow(e+p+1,a);r[n]=h(r[n]-s*o,n)}const m=this.loss(r);m<l&&(s=r.slice(0),l=m)}return{values:s,loss:l};function h(e,t){let n=100;return 2===t?n=7500:4!==t&&5!==t||(n=200),3===t?e>n?e%=n:e<0&&(e=n+e%n):e<0?e=0:e>n&&(e=n),e}}loss(e){const t=this.reusedColor;t.set(0,0,0),t.invert(e[0]/100),t.sepia(e[1]/100),t.saturate(e[2]/100),t.hueRotate(3.6*e[3]),t.brightness(e[4]/100),t.contrast(e[5]/100);const n=t.hsl();return Math.abs(t.r-this.target.r)+Math.abs(t.g-this.target.g)+Math.abs(t.b-this.target.b)+Math.abs(n.h-this.targetHSL.h)+Math.abs(n.s-this.targetHSL.s)+Math.abs(n.l-this.targetHSL.l)}css(e){function t(t,n=1){return Math.round(e[t]*n)}return`filter: invert(${t(0)}%) sepia(${t(1)}%) saturate(${t(2)}%) hue-rotate(${t(3,3.6)}deg) brightness(${t(4)}%) contrast(${t(5)}%);`}}var c=n(78347);const u={},d={},h={header:{color:"--header-btn-text",hover:"--header-btn-text-hover"},primary:{color:"--link",hover:"--primary-hover-text"}};var p={name:"IconOrSvg",props:{src:{type:String,default:()=>{}},icon:{type:String,default:()=>{}},color:{type:String,default:()=>"primary"}},data(){return{className:""}},created(){this.src&&this.setColor()},methods:{setColor(){const e=this.$store.getters["prefs/theme"];let t,n;for(let l=0;l<Object.keys(document.styleSheets).length;l++){let r=!1;const i=document.styleSheets[l];if(i&&i.cssRules)for(let a=0;a<Object.keys(i.cssRules).length;a++){const o=i.cssRules[a];if(o.selectorText&&("light"===e&&(o.selectorText.includes("body")||o.selectorText.includes("BODY"))&&o.selectorText.includes(".theme-light")&&o.style.cssText.includes("--link:")||"dark"===e&&o.selectorText.includes(".theme-dark"))){t=(0,c.yq)(o.style.getPropertyValue(h[this.color].color).trim()),n=(0,c.yq)(o.style.getPropertyValue(h[this.color].hover).trim()),t=(0,c.Tv)(t),n=(0,c.Tv)(n),r=!0;break}}if(r)break}const r=(0,c.qe)(t),i=(0,c.qe)(n),a=`${r.r}-${r.g}-${r.b}`,o=`${i.r}-${i.g}-${i.b}`,s=`svg-icon-${a}-${o}`;if(!d[s]){let e=u[n];if(!e){const t=new l(i),r=t.solve();e=r?.filter,u[n]=e}let a=u[t];if(!a){const e=new l(r),n=e.solve();a=n?.filter,u[t]=a}const o=`\n img.${s} {\n ${a};\n }\n img.${s}:hover {\n ${e};\n }\n button:hover > img.${s} {\n ${e};\n }\n li:hover > img.${s} {\n ${e};\n }\n a.option:hover > img.${s} {\n ${e};\n } `,c=document.createElement("style");c.innerText=o,document.head.appendChild(c),d[s]=!0}this["className"]=s}}},f=(n(86961),n(47433));const m=(0,f.A)(p,[["render",o],["__scopeId","data-v-373e6345"]]);var g=m},26962:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274);const i={key:0,class:"step-number mb-10"};function a(e,t,n,a,o,s){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)([{stepped:!!n.step},"info-box"])},[n.step?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("h2",null,"Step "+(0,r.toDisplayString)(n.step),1)])):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)],2)}var o={props:{step:{type:Number,default:null}}},s=(n(40876),n(47433));const l=(0,s.A)(o,[["render",a],["__scopeId","data-v-1c5683df"]]);var c=l},48577:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274);const i=["src"];function a(e,t,n,a,o,s){return(0,r.openBlock)(),(0,r.createElementBlock)("img",(0,r.mergeProps)({ref:"img",src:n.initialSrc},e.$attrs),null,16,i)}var o={props:{initialSrc:{type:String,default:n(39802)},errorSrc:{type:String,default:n(39802)},src:{type:String,default:null}},watch:{src(e,t){e!==t&&this.loadImage()}},mounted(){this.loadImage()},beforeUnmount(){const e=this.$refs.img;e&&e.removeEventListener("error",this.boundError)},methods:{loadImage(){const e=this.$refs.img;this.src&&(e.setAttribute("src",this.src),this.boundError=this.onError.bind(this),e.addEventListener("error",this.boundError))},onError(){const e=this.$refs.img;e&&e.setAttribute("src",this.errorSrc)}}},s=n(47433);const l=(0,s.A)(o,[["render",a]]);var c=l},84409:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(9274);const i={key:0,class:"loading-indicator"},a={key:1};function o(e,t,n,o,s,l){const c=(0,r.resolveComponent)("t");return n.loading?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[s.showMessage?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["overlay",{"overlay-content-mode":"content"===n.mode,"overlay-main-mode":"main"===n.mode}])},[(0,r.createVNode)(c,{k:"generic.loading",raw:!0})],2)):(0,r.createCommentVNode)("",!0)])):((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)]))}var s={props:{loading:{type:Boolean,default:!0},mode:{type:String,default:"content"},noDelay:{type:Boolean,default:!1}},data(){return{timer:null,showMessage:this.noDelay}},mounted(){this.timer=setTimeout((()=>{this.showMessage=!0}),250)},beforeUnmount(){clearTimeout(this.timer)}},l=(n(54851),n(47433));const c=(0,l.A)(s,[["render",o],["__scopeId","data-v-1d9696d1"]]);var u=c},40973:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var r=n(9274);const i={class:"text-default-text"},a={class:"footer"};function o(e,t,n,o,s,l){const c=(0,r.resolveComponent)("Banner"),u=(0,r.resolveComponent)("AsyncButton"),d=(0,r.resolveComponent)("Card"),h=(0,r.resolveComponent)("app-modal");return(0,r.openBlock)(),(0,r.createBlock)(h,(0,r.mergeProps)({name:n.name,width:n.width,"click-to-close":!1,height:n.height},e.$attrs,{class:"modal","data-testid":"mvc__card",onClose:t[2]||(t[2]=t=>e.$emit("finish",t))}),{default:(0,r.withCtx)((()=>[(0,r.createVNode)(d,{class:"modal","show-highlight-border":!1},{title:(0,r.withCtx)((()=>[(0,r.createElementVNode)("h4",i,[(0,r.renderSlot)(e.$slots,"title",{},void 0,!0)])])),body:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"content",{},void 0,!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.errors,((e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:t},[(0,r.createVNode)(c,{class:"banner",color:"error",label:e},null,8,["label"])])))),128))])),actions:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"footer",{},(()=>[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("button",{class:"btn role-secondary mr-20",onClick:t[0]||(t[0]=(0,r.withModifiers)(((...e)=>l.hide&&l.hide(...e)),["prevent"]))},(0,r.toDisplayString)(n.closeText),1),(0,r.createVNode)(u,{mode:n.saveText,onClick:t[1]||(t[1]=t=>e.$emit("finish",t))},null,8,["mode"])])]),!0)])),_:3})])),_:3},16,["name","width","height"])}var s=n(84937),l=n(9980),c=n(89651),u=n(36832),d={name:"ModalWithCard",emits:["close","finish"],components:{Card:s.Z,Banner:l.l,AsyncButton:c.A,AppModal:u.h},props:{name:{type:String,required:!0},closeText:{type:String,default:"Close"},saveText:{type:String,default:"create"},width:{type:[String,Number],default:"50%"},height:{type:[String,Number],default:"auto"},errors:{type:Array,default:()=>[]}},methods:{hide(){this.$emit("close")}}},h=(n(76238),n(53456),n(47433));const p=(0,h.A)(d,[["render",o],["__scopeId","data-v-0430f766"]]);var f=p},15503:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(9274);const i=["aria-label"];function a(e,t,n,a,o,s){const l=(0,r.resolveDirective)("trim-whitespace");return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)({progress:!0,multi:s.pieces.length>1}),"aria-label":s.ariaLabelText},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(s.pieces,((e,t)=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:t,class:(0,r.normalizeClass)({piece:!0,[e.color]:!0}),style:(0,r.normalizeStyle)(e.style)},null,6)),[[l]]))),128))],10,i)),[[l]])}var o=n(74302),s=n(76978),l={props:{values:{type:Array,required:!0},colorKey:{type:String,default:"color"},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},min:{type:Number,default:0},max:{type:Number,default:null},minPercent:{type:Number,default:5},showZeros:{type:Boolean,default:!1}},computed:{pieces(){const e=[];for(const a of this.values){const t=(0,s.Jt)(a,this.colorKey),n=(0,s.Jt)(a,this.labelKey),r=(0,s.Jt)(a,this.valueKey);(0!==r||this.showZeros)&&e.push({color:t,label:n,value:r})}const t=this.minPercent||0,n=this.min||0;let r=this.max,i=0;this.max||(r=100,e.length&&(r=e.map((e=>e.value)).reduce(((e,t)=>e+t))));for(const a of e){const e=Math.max(t,c(a.value,n,r));a.percent=e,i+=e}i>100&&((0,o.Ul)(e,"percent",!0)[0].percent-=i-100);for(const a of e)a.style=`width: ${a.percent}%`;return e.filter((e=>e.percent))},ariaLabelText(){if(Array.isArray(this.values)&&this.values.length){let e="";return this.values.forEach((t=>{e+=`${t.value} ${1===t.value?"item":"items"} ${t.label}`})),e}return""}}};function c(e,t,n){e=Math.max(t,Math.min(n,e));let r=e/(n-t)*100;return r=Math.floor(100*r)/100,r}n(11740);var u=n(47433);const d=(0,u.A)(l,[["render",a],["__scopeId","data-v-f3ae1ea4"]]);var h=d},66656:function(e,t,n){"use strict";n.d(t,{A:function(){return x}});var r=n(9274);const i={class:"with-subheader"},a={class:"title"},o={class:"m-0"},s={class:"sub-header"},l={class:"actions-container"},c={class:"actions"};function u(e,t,n,u,d,h){const p=(0,r.resolveComponent)("TypeDescription"),f=(0,r.resolveComponent)("TabTitle"),m=(0,r.resolveComponent)("Favorite"),g=(0,r.resolveComponent)("ResourceLoadingIndicator"),v=(0,r.resolveComponent)("router-link");return(0,r.openBlock)(),(0,r.createElementBlock)("header",i,[(0,r.renderSlot)(e.$slots,"typeDescription",{},(()=>[(0,r.createVNode)(p,{resource:n.resource},null,8,["resource"])]),!0),(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("h1",o,[(0,r.createVNode)(f,null,{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(h._typeDisplay),1)])),_:1}),t[0]||(t[0]=(0,r.createTextVNode)()),e.isExplorer?((0,r.openBlock)(),(0,r.createBlock)(m,{key:0,resource:n.favoriteResource||n.resource},null,8,["resource"])):(0,r.createCommentVNode)("",!0)]),n.showIncrementalLoadingIndicator?((0,r.openBlock)(),(0,r.createBlock)(g,{key:0,resources:n.loadResources,indeterminate:n.loadIndeterminate},null,8,["resources","indeterminate"])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",s,[(0,r.renderSlot)(e.$slots,"subHeader",{},void 0,!0)]),(0,r.createElementVNode)("div",l,[(0,r.renderSlot)(e.$slots,"actions",{},(()=>[(0,r.createElementVNode)("div",c,[(0,r.renderSlot)(e.$slots,"extraActions",{},void 0,!0),(0,r.renderSlot)(e.$slots,"createButton",{},(()=>[d.hasEditComponent&&h._isCreatable?((0,r.openBlock)(),(0,r.createBlock)(v,{key:0,to:h._createLocation,class:"btn role-primary","data-testid":n.componentTestid+"-create"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(h._createButtonlabel),1)])),_:1},8,["to","data-testid"])):h._isYamlCreatable?((0,r.openBlock)(),(0,r.createBlock)(v,{key:1,to:h._yamlCreateLocation,class:"btn role-primary","data-testid":n.componentTestid+"-create-yaml"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("resourceList.head.createFromYaml")),1)])),_:1},8,["to","data-testid"])):(0,r.createCommentVNode)("",!0)]),!0)])]),!0)])])}var d=n(65359);const h=["aria-checked"];function p(e,t,n,i,a,o){return(0,r.openBlock)(),(0,r.createElementBlock)("i",{tabindex:0,"aria-checked":!!o.isFavorite,class:(0,r.normalizeClass)(["favorite icon",{"icon-star-open":!o.isFavorite,"icon-star":o.isFavorite}]),"aria-role":"button",onClick:t[0]||(t[0]=(0,r.withModifiers)(((...e)=>o.toggle&&o.toggle(...e)),["stop","prevent"])),onKeydown:[t[1]||(t[1]=(0,r.withKeys)((0,r.withModifiers)(((...e)=>o.toggle&&o.toggle(...e)),["prevent"]),["enter"])),t[2]||(t[2]=(0,r.withKeys)((0,r.withModifiers)(((...e)=>o.toggle&&o.toggle(...e)),["prevent"]),["space"]))]},null,42,h)}var f={props:{resource:{type:String,required:!0}},computed:{isFavorite(){return this.$store.getters["type-map/isFavorite"](this.resource)}},methods:{toggle(){this.isFavorite?this.$store.dispatch("type-map/removeFavorite",this.resource):this.$store.dispatch("type-map/addFavorite",this.resource)}}},m=(n(94246),n(47433));const g=(0,m.A)(f,[["render",p],["__scopeId","data-v-f74a378a"]]);var v=g,b=n(89559),y=n(76978),w=n(14220),E=n(44453),_=n(22896),S={name:"MastheadResourceList",components:{Favorite:v,TypeDescription:b.A,ResourceLoadingIndicator:E.A,TabTitle:_.A},props:{resource:{type:String,required:!0},favoriteResource:{type:String,default:null},schema:{type:Object,default:null},typeDisplay:{type:String,default:null},isCreatable:{type:Boolean,default:null},isYamlCreatable:{type:Boolean,default:null},createLocation:{type:Object,default:null},yamlCreateLocation:{type:Object,default:null},createButtonLabel:{type:String,default:null},loadResources:{type:Array,default:()=>[]},loadIndeterminate:{type:Boolean,default:!1},showIncrementalLoadingIndicator:{type:Boolean,default:!1},componentTestid:{type:String,default:"masthead"}},data(){const e={...this.$route.params},t={name:`${this.$route.name}-create`,params:e},n=this.$store.getters["type-map/hasCustomEdit"](this.resource),r={name:`${this.$route.name}-create`,params:e,query:{[w.AS]:w.zD}};return{formRoute:t,yamlRoute:r,hasEditComponent:n}},computed:{get:y.Jt,...(0,d.L8)(["isExplorer","currentCluster"]),resourceName(){return this.schema?this.$store.getters["type-map/labelFor"](this.schema):this.resource},_typeDisplay(){return null!==this.typeDisplay?this.typeDisplay:this.schema?this.$store.getters["type-map/labelFor"](this.schema,99):"?"},_isYamlCreatable(){return null!==this.isYamlCreatable?this.isYamlCreatable:this.schema&&this._isCreatable&&this.$store.getters["type-map/optionsFor"](this.resource).canYaml},_isCreatable(){return null!==this.isCreatable?this.isCreatable:!(this.schema&&!this.schema?.collectionMethods.find((e=>["blocked-post","post"].includes(e.toLowerCase()))))&&this.$store.getters["type-map/optionsFor"](this.resource).isCreatable},_createLocation(){return this.createLocation||this.formRoute},_yamlCreateLocation(){return this.yamlCreateLocation||this.yamlRoute},_createButtonlabel(){return this.createButtonLabel||this.t("resourceList.head.create")}}};n(93463);const k=(0,m.A)(S,[["render",u],["__scopeId","data-v-577fc9fa"]]);var x=k},44453:function(e,t,n){"use strict";n.d(t,{A:function(){return g}});var r=n(9274);const i={key:0,class:"ml-10 resource-loading-indicator"},a={class:"inner"},o={class:"resource-loader"},s={class:"rl-bg"},l={key:0},c={class:"rl-fg"},u={key:0};function d(e,t,n,d,h,p){return p.count&&!p.haveAll?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",s,[t[0]||(t[0]=(0,r.createElementVNode)("i",{class:"icon icon-spinner icon-spin"},null,-1)),(0,r.createElementVNode)("span",null,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("resourceLoadingIndicator.loading"))+" ",1),n.indeterminate?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("span",l,(0,r.toDisplayString)(p.count)+" / "+(0,r.toDisplayString)(p.total),1))])])]),(0,r.createElementVNode)("div",{class:"resource-loader",style:(0,r.normalizeStyle)({width:p.width})},[(0,r.createElementVNode)("div",c,[t[1]||(t[1]=(0,r.createElementVNode)("i",{class:"icon icon-spinner icon-spin"},null,-1)),(0,r.createElementVNode)("span",null,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("resourceLoadingIndicator.loading"))+" ",1),n.indeterminate?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("span",u,(0,r.toDisplayString)(p.count)+" / "+(0,r.toDisplayString)(p.total),1))])])],4)])])):(0,r.createCommentVNode)("",!0)}var h=n(35664),p={name:"ResourceLoadingIndicator",props:{resources:{type:Array,required:!0},indeterminate:{type:Boolean,default:!1}},data(){const e=this.$store.getters["currentStore"](this.resource);return{inStore:e}},computed:{rowsCount(){if(this.resources.length>0){const e=this.$store.getters[`${this.inStore}/all`](this.resources[0])||[];return(e||[]).length}return 0},haveAll(){return this.resources.reduce(((e,t)=>e&&this.$store.getters[`${this.inStore}/haveAll`](t)),!0)},total(){const e=this.$store.getters[`${this.inStore}/all`](h.i2);return this.resources.reduce(((t,n)=>{const r=e?.[0]?.counts?.[n],i=r?.summary?.count,a=i||0;return t+a}),0)},count(){return this.resources.reduce(((e,t)=>e+(this.$store.getters[`${this.inStore}/all`](t)||[]).length),0)},width(){const e=Math.ceil(this.count/this.total*100);return`${e}%`}}},f=(n(97876),n(47433));const m=(0,f.A)(p,[["render",d],["__scopeId","data-v-6457c305"]]);var g=m},31400:function(e,t,n){"use strict";n.d(t,{A:function(){return w},S:function(){return g}});var r=n(9274);const i={class:"group-tab"};function a(e,t,n,a,o,s){const l=(0,r.resolveComponent)("ButtonGroup"),c=(0,r.resolveComponent)("SortableTable"),u=(0,r.resolveDirective)("clean-html"),d=(0,r.resolveDirective)("shortkey");return(0,r.openBlock)(),(0,r.createBlock)(c,(0,r.mergeProps)({ref:"table"},e.$attrs,{headers:s._headers,rows:s.filteredRows,loading:n.loading,"alt-loading":n.altLoading,"group-by":s.computedGroupBy,group:s.group,"group-options":s.groupOptions,search:n.search,paging:!0,"paging-params":s.parsedPagingParams,"paging-label":n.pagingLabel,"rows-per-page":n.rowsPerPage,"row-actions":n.rowActions,"table-actions":s._showBulkActions,"overflow-x":n.overflowX,"overflow-y":n.overflowY,"get-custom-detail-link":n.getCustomDetailLink,"has-advanced-filtering":n.hasAdvancedFiltering,"adv-filter-hide-labels-as-cols":n.advFilterHideLabelsAsCols,"adv-filter-prevent-filtering-labels":n.advFilterPreventFilteringLabels,"key-field":n.keyField,sortGeneration:o.sortGeneration,"sort-generation-fn":s.safeSortGenerationFn,"use-query-params-for-simple-filtering":n.useQueryParamsForSimpleFiltering,"force-update-live-and-delayed":n.forceUpdateLiveAndDelayed,"external-pagination-enabled":n.externalPaginationEnabled,"external-pagination-result":n.externalPaginationResult,"mandatory-sort":s._mandatorySort,onClickedActionButton:s.handleActionButtonClick,onGroupValueChange:t[5]||(t[5]=e=>s.group=e),onEnter:s.handleEnterKeyPress}),(0,r.createSlots)({"group-by":(0,r.withCtx)((({group:e})=>[(0,r.withDirectives)((0,r.createElementVNode)("div",i,null,512),[[u,e.ref]])])),shortkeys:(0,r.withCtx)((()=>[(0,r.withDirectives)((0,r.createElementVNode)("button",{class:"hide",onShortkey:t[1]||(t[1]=e=>s.keyAction("edit"))},null,544),[[d,["e"],void 0,{once:!0}]]),(0,r.withDirectives)((0,r.createElementVNode)("button",{class:"hide",onShortkey:t[2]||(t[2]=e=>s.keyAction("yaml"))},null,544),[[d,["y"],void 0,{once:!0}]]),s._showBulkActions?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,class:"hide",onShortkey:t[3]||(t[3]=e=>s.keyAction("remove"))},null,544)),[[d,["del"],void 0,{once:!0}]]):(0,r.createCommentVNode)("",!0),s._showBulkActions?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:1,class:"hide",onShortkey:t[4]||(t[4]=e=>s.keyAction("remove"))},null,544)),[[d,["backspace"],void 0,{once:!0}]]):(0,r.createCommentVNode)("",!0)])),_:2},[!n.hideGroupingControls&&s.showGrouping?{name:"header-middle",fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"more-header-middle"),(0,r.createVNode)(l,{value:s.group,"onUpdate:value":t[0]||(t[0]=e=>s.group=e),options:s.groupOptions},null,8,["value","options"])])),key:"0"}:void 0,s.showGrouping?{name:"header-right",fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"header-right")])),key:"1"}:void 0,(0,r.renderList)(e.$slots,((t,n)=>({name:n,fn:(0,r.withCtx)((t=>[(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.guardReactiveProps)(t)))]))})))]),1040,["headers","rows","loading","alt-loading","group-by","group","group-options","search","paging-params","paging-label","rows-per-page","row-actions","table-actions","overflow-x","overflow-y","get-custom-detail-link","has-advanced-filtering","adv-filter-hide-labels-as-cols","adv-filter-prevent-filtering-labels","key-field","sortGeneration","sort-generation-fn","use-query-params-for-simple-filtering","force-update-live-and-delayed","external-pagination-enabled","external-pagination-result","mandatory-sort","onClickedActionButton","onEnter"])}var o=n(65359),s=n(76978),l=n(91462),c=n(12857),u=n(61747),d=n(68774),h=n(68851),p=n(31915),f=n(25659);const m="namespace",g=(e,t)=>{if(!e)return null;const n=e.id;let r=n;const i=t.getters["currentStore"](n),a=t.getters[`${i}/currentGeneration`]?.(n);a&&(r+=`/${a}`);const o=t.getters["activeNamespaceCacheKey"];return o?`${r}/${o}`:r};var v={name:"ResourceTable",emits:["clickedActionButton"],components:{ButtonGroup:c.A,SortableTable:u.A},props:{schema:{type:Object,default:null},rows:{type:Array,required:!0},loading:{type:Boolean,required:!1},altLoading:{type:Boolean,required:!1},keyField:{type:String,default:"_key"},headers:{type:Array,default:null},groupBy:{type:String,default:null},namespaced:{type:Boolean,default:null},search:{type:Boolean,default:!0},tableActions:{type:[Boolean,null],default:null},pagingLabel:{type:String,default:"sortableTable.paging.resource"},pagingParams:{type:Object,default:null},rowActions:{type:Boolean,default:!0},groupable:{type:Boolean,default:null},groupTooltip:{type:String,default:"resourceTable.groupBy.namespace"},overflowX:{type:Boolean,default:!1},overflowY:{type:Boolean,default:!1},sortGenerationFn:{type:Function,default:null},getCustomDetailLink:{type:Function,default:null},ignoreFilter:{type:Boolean,default:!1},hasAdvancedFiltering:{type:Boolean,default:!1},advFilterHideLabelsAsCols:{type:Boolean,default:!1},advFilterPreventFilteringLabels:{type:Boolean,default:!1},useQueryParamsForSimpleFiltering:{type:Boolean,default:!1},forceUpdateLiveAndDelayed:{type:Number,default:0},externalPaginationEnabled:{type:Boolean,default:!1},externalPaginationResult:{type:Object,default:null},rowsPerPage:{type:Number,default:null},hideGroupingControls:{type:Boolean,default:!1}},data(){const e=this.schema?.id?this.$store.getters["currentStore"](this.schema.id):void 0;return{inStore:e,sortGeneration:void 0}},watch:{filteredRows:{handler(){this.currentProduct.showWorkspaceSwitcher&&(this.sortGeneration=this.safeSortGenerationFn(this.schema,this.$store))},immediate:!0}},computed:{options(){return this.$store.getters["type-map/optionsFor"](this.schema,this.externalPaginationEnabled)},_listGroupMapped(){return this.options?.listGroups?.reduce(((e,t)=>(e[t.value]=t,e)),{})},_mandatorySort(){return this.options?.listMandatorySort},...(0,o.L8)(["currentProduct"]),isNamespaced(){return null!==this.namespaced?this.namespaced:!!(0,s.Jt)(this.schema,"attributes.namespaced")},showNamespaceColumn(){const e="namespace"===this.group,t=!this.showGrouping||!e;return t},_showBulkActions(){if(null!==this.tableActions)return this.tableActions;if(this.schema){const e=this.$store.getters["type-map/hideBulkActionsFor"](this.schema);return!e}return!1},_headers(){let e;const t=this.showNamespaceColumn;if(e=this.headers?this.headers.slice():this.$store.getters["type-map/headersFor"](this.schema,this.externalPaginationEnabled),this.$store.$plugin?.getUIConfig){const t=(0,f.A)(this,p.c7.TABLE_COL,p.W3.RESOURCE,this.$route);let n=e.length;if(e.length>0){const t=e.findIndex((e=>e.name===d.K.name));if(t>=0)n=t;else{const t=e.findIndex((e=>(!e.label||!e.label?.trim())&&(!e.labelKey||!e.labelKey?.trim())));t>=0&&(n=t)}}t.forEach((t=>{!t.value&&t.getValue&&(t.value=t.getValue),e.splice(n,0,t)}))}if(!t){const t=e.findIndex((e=>e.name===d.CU.name));t>=0&&e.splice(t,1)}const n=this._listGroupMapped?.[this.group];if(n?.hideColumn){const t=e.findIndex((e=>e.name===n.hideColumn));t>=0&&e.splice(t,1)}return e},filteredRows(){const e=this.$store.getters["isAllNamespaces"];if(!this.isNamespaced||this.ignoreFilter||this.externalPaginationEnabled||e&&!this.currentProduct?.hideSystemResources||this.inStore&&this.$store.getters[`${this.inStore}/haveNamespace`](this.schema.id)?.length)return this.rows||[];const t=this.$store.getters["namespaces"]();if(!this.rows)return[];const n=this.$store.getters["haveAllNamespace"];return this.rows.filter((e=>this.currentProduct?.hideSystemResources&&this.isNamespaced?!!t[e.metadata.namespace]&&!e.isSystemResource:!this.isNamespaced||(!!n||!!t[e.metadata.namespace])))},_group:(0,l.AN)(l.EI),group:{get(){const e=this.groupOptions.find((e=>e.value===this._group));return e?this._group:this.groupOptions.find((e=>e.value===m))?m:this.groupOptions[0]?.value||m},set(e){this._group=e}},showGrouping(){if(null===this.groupable){const e=this.$store.getters["isMultipleNamespaces"]&&this.isNamespaced,t=!!this.options?.listGroups?.length;return e||t}return this.groupable||!1},computedGroupBy(){if(!this.showGrouping)return null;if(this.groupBy)return this.groupBy;if("namespace"===this.group)return"groupByLabel";const e=this._listGroupMapped?.[this.group];return e?.field?e.field:null},groupOptions(){if(this.options?.listGroupsWillOverride&&this.options?.listGroups?.length)return this.options?.listGroups;const e=[{tooltipKey:"resourceTable.groupBy.none",icon:"icon-list-flat",value:"none"}];return this.options?.hiddenNamespaceGroupButton||e.push({tooltipKey:this.groupTooltip,icon:"icon-folder",value:"namespace"}),this.options?.listGroups?.length?e.concat(this.options.listGroups):e},parsedPagingParams(){return this.pagingParams?this.pagingParams:this.schema?{singularLabel:this.$store.getters["type-map/labelFor"](this.schema),pluralLabel:this.$store.getters["type-map/labelFor"](this.schema,99)}:{singularLabel:"",pluralLabel:""}}},methods:{keyAction(e){const t=this.$refs.table;if(!t)return;const n=t.selectedRows;if("remove"!==e){if(1===n.length)switch(e){case"detail":n[0].goToDetail();break;case"edit":n[0].goToEdit();break;case"yaml":n[0].goToViewYaml();break}}else{const e=(0,h.jq)(t.availableActions,"action","promptRemove");e&&(t.setBulkActionOfInterest(e),t.applyTableAction(e))}},clearSelection(){this.$refs.table.clearSelection()},safeSortGenerationFn(){return this.sortGenerationFn?this.sortGenerationFn(this.schema,this.$store):g(this.schema,this.$store)},handleActionButtonClick(e){this.$emit("clickedActionButton",e)},handleEnterKeyPress(e){"Enter"===e.key&&this.keyAction("detail")}}},b=n(47433);const y=(0,b.A)(v,[["render",a]]);var w=y},39426:function(e,t,n){"use strict";n.d(t,{A:function(){return E}});var r=n(9274);const i={class:"root resource-yaml flex-content"},a=["disabled"];function o(e,t,n,o,s,l){const c=(0,r.resolveComponent)("YamlEditor"),u=(0,r.resolveComponent)("FileSelector"),d=(0,r.resolveComponent)("t"),h=(0,r.resolveComponent)("Footer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createVNode)(c,{ref:"yamleditor",value:s.currentYaml,"onUpdate:value":t[0]||(t[0]=e=>s.currentYaml=e),mode:n.mode,"initial-yaml-values":s.initialYaml,class:"yaml-editor flex-content","editor-mode":l.editorMode,onOnReady:l.onReady},null,8,["value","mode","initial-yaml-values","editor-mode","onOnReady"]),(0,r.renderSlot)(e.$slots,"yamlFooter",{currentYaml:s.currentYaml,showPreview:s.showPreview,yamlPreview:l.preview,yamlSave:l.save,yamlUnpreview:l.unpreview,canDiff:l.canDiff},(()=>[n.showFooter?((0,r.openBlock)(),(0,r.createBlock)(h,{key:0,class:(0,r.normalizeClass)(["footer",{edit:!l.isView}]),mode:n.mode,errors:s.errors,onSave:l.save,onDone:l.done},(0,r.createSlots)({_:2},[l.isView?void 0:{name:"left",fn:(0,r.withCtx)((()=>[(0,r.createVNode)(u,{class:"btn role-secondary",label:e.t("generic.readFromFile"),onSelected:l.onFileSelected},null,8,["label","onSelected"])])),key:"0"},l.isView?void 0:{name:"middle",fn:(0,r.withCtx)((()=>[s.showPreview?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,type:"button",class:"btn role-secondary",onClick:t[1]||(t[1]=(...e)=>l.unpreview&&l.unpreview(...e))},[(0,r.createVNode)(d,{k:"resourceYaml.buttons.continue"})])):n.offerPreview?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:1,disabled:!l.canDiff,type:"button",class:"btn role-secondary",onClick:t[2]||(t[2]=(...e)=>l.preview&&l.preview(...e))},[(0,r.createVNode)(d,{k:"resourceYaml.buttons.diff"})],8,a)):(0,r.createCommentVNode)("",!0)])),key:"1"}]),1032,["class","mode","errors","onSave","onDone"])):(0,r.createCommentVNode)("",!0)]),!0)])}var s=n(20246),l=n.n(s),c=n(55544),u=n(29649),d=n(89210),h=n(2841),p=n(92043),f=n(74302),m=n(14220),g=n(8135),v=n(99726),b={emits:["error"],components:{Footer:d.A,FileSelector:u.A,YamlEditor:c.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},initialYamlForDiff:{type:String,default:null},yaml:{type:String,required:!0},doneRoute:{type:[String,Object],default:null},offerPreview:{type:Boolean,default:!0},parentParams:{type:Object,default:null},doneOverride:{type:[Function,Object],default:null},showFooter:{type:Boolean,default:!0},applyHooks:{type:Function,default:null}},data(){return this.$router.applyQuery({[m.$y]:m.xz}),{initialYaml:this.initialYamlForDiff||this.yaml,currentYaml:this.yaml,showPreview:!1,errors:null,cm:null,initialReady:!0}},computed:{schema(){const e=this.$store.getters["currentStore"](this.value.type);return this.$store.getters[`${e}/schemaFor`](this.value.type)},isCreate(){return this.mode===m.YQ},isView(){return this.mode===m.nW},isEdit(){return this.mode===m.G5},editorMode(){return this.$route.query.mode===m.nW||this.isView&&(this.$route.query.mode!==m.G5||this.$route.query.mode!==m.nW)?c.j.VIEW_CODE:this.showPreview?c.j.DIFF_CODE:c.j.EDIT_CODE},canDiff(){return this.initialYaml!==this.currentYaml}},watch:{yaml(e){this.mode===m.nW&&(this.currentYaml=e)},mode(e,t){e===m.YQ&&t===m.nW&&(this.currentYaml=this.value.cleanYaml(this.yaml,e))}},methods:{onInput(e){this.currentYaml=e,this.onReady(this.cm)},onReady(e){if(!this.initialReady)return;this.initialReady=!1,this.cm=e,this.isEdit&&e.foldLinesMatching(/^status:\s*$/);try{const t=l().load(this.currentYaml),n=Object.keys(t?.metadata?.annotations||{}),r=h.VT.map((e=>(0,p.OF)(e)));let i=!1;for(const e of n){if(i)break;for(const t of r)if(e.match(t)){i=!0;break}}i&&e.foldLinesMatching(/^\s+annotations:\s*$/)}catch(n){}e.foldLinesMatching(/managedFields/),this.value?.yamlFolding&&this.value.yamlFolding.forEach((t=>e.foldYaml(t)));const t=e.getMode().fold;e.getMode().fold="yamlcomments",e.execCommand("foldAll"),e.getMode().fold=t},updateValue(e){this.$refs.yamleditor.updateValue(e)},preview(){this.updateValue(this.currentYaml),this.showPreview=!0,this.$router.applyQuery({[m.$y]:m.Qp})},unpreview(){this.showPreview=!1,this.$router.applyQuery({[m.$y]:m.xz})},async save(e){const t=this.value.yamlForSave(this.currentYaml)||this.currentYaml;try{this.applyHooks&&await this.applyHooks(g.Fm);try{await this.value.saveYaml(t)}catch(r){return n.call(this,r)}this.applyHooks&&await this.applyHooks(g.Mz),e(!0),this.done()}catch(r){return n.call(this,r)}function n(t){if(t&&t.response&&t.response.data){const e=t.response.data;e&&e.message?this.errors=[e.message]:this.errors=[t]}else this.errors=[t];e(!1),this.$emit("error",(0,v.rz)(t))}},done(){if(this.doneOverride)return"function"===typeof this.doneOverride?this.doneOverride():this.$router.replace(this.doneOverride);this.doneRoute&&("object"!==(0,f.QP)(this.doneRoute)?this.$router.replace({name:this.doneRoute,params:{resource:this.value.type}}):this.$router.replace(this.doneRoute))},onFileSelected(e){const t=this.$refs.yamleditor;t&&t.updateValue(e)}}},y=(n(78627),n(70617),n(47433));const w=(0,y.A)(b,[["render",o],["__scopeId","data-v-bd6d9b3c"]]);var E=w},87211:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(9274);const i={key:0,class:"simple-box","data-testid":"simple-box-container"},a={key:0,class:"top"},o={key:0,"data-testid":"simple-box-title"},s={class:"content"};function l(e,t,n,l,c,u){return e.shown?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[n.title||n.canClose||e.$slots.title?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[(0,r.renderSlot)(e.$slots,"title",{},(()=>[n.title?((0,r.openBlock)(),(0,r.createElementBlock)("h2",o,(0,r.toDisplayString)(n.title),1)):(0,r.createCommentVNode)("",!0)]),!0),n.canClose||e.pref?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"close-button","data-testid":"simple-box-close",onClick:t[0]||(t[0]=e=>u.closeBox(e))},t[1]||(t[1]=[(0,r.createElementVNode)("i",{class:"icon icon-close"},null,-1)]))):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",s,[(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)])])):(0,r.createCommentVNode)("",!0)}var c=n(55277),u={name:"SimpleBox",emits:["close"],mixins:[c.A],props:{title:{type:String,default:null},canClose:{type:Boolean,default:!1}},methods:{closeBox(e){this.hide(),this.$emit("close",e)}}},d=(n(2578),n(87968),n(47433));const h=(0,d.A)(u,[["render",l],["__scopeId","data-v-48821e48"]]);var p=h},61747:function(e,t,n){"use strict";n.d(t,{A:function(){return pn}});var r=n(9274);const i=["data-testid"],a=["id","disabled","data-testid","onClick","onMouseover"],o=["disabled"],s={class:"list-unstyled menu"},l=["onClick","onMouseover"],c={key:0,class:"middle"},u={key:1,class:"search row","data-testid":"search-box-filter-row"},d={key:0,class:"advanced-filters-applied"},h={class:"label"},p=["onClick"],f={key:2,ref:"advanced-filter-group",class:"advanced-filter-group"},m={class:"advanced-filter-container"},g=["placeholder"],v={class:"middle-block"},b={class:"bottom-block"},y=["disabled"],w=["aria-label","placeholder"],E={key:1},_={key:2},S=["colspan"],k={class:"data-loading"},x={key:3},A={class:"no-rows"},N=["colspan"],C={key:4},T={class:"no-results"},R=["colspan"],O={class:"group-row"},I=["colspan"],L={class:"group-tab"},D=["data-testid","data-node-id","data-cant-run-bulk-action-of-interest"],P={key:0,class:"row-check",align:"middle"},M={key:1,class:"row-expand",align:"middle"},B=["onClick"],F=["data-title","data-testid","align","width"],$={key:4,class:"text-muted"},U={key:2},j=["data-testid"],V={key:0,class:"row-check",align:"middle"},K=["colspan"],H={key:0,class:"paging"},G=["disabled"],z=["disabled"],q=["disabled"],X=["disabled"];function W(e,t,n,W,Y,Q){const J=(0,r.resolveComponent)("ActionDropdown"),Z=(0,r.resolveComponent)("AsyncButton"),ee=(0,r.resolveComponent)("LabeledSelect"),te=(0,r.resolveComponent)("THead"),ne=(0,r.resolveComponent)("t"),re=(0,r.resolveComponent)("Checkbox"),ie=(0,r.resolveComponent)("ActionMenu"),ae=(0,r.resolveDirective)("clean-html"),oe=(0,r.resolveDirective)("clean-tooltip"),se=(0,r.resolveDirective)("close-popper"),le=(0,r.resolveDirective)("trim-whitespace"),ce=(0,r.resolveDirective)("shortkey");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:"container","data-testid":n.componentTestid+"-list-container"},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)([{titled:e.$slots.title&&e.$slots.title.length},"sortable-table-header"])},[(0,r.renderSlot)(e.$slots,"title",{},void 0,!0),Q.showHeaderRow?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["fixed-header-actions",{button:!!e.$slots["header-button"],"advanced-filtering":e.hasAdvancedFiltering}])},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)([e.bulkActionsClass,"bulk"])},[(0,r.renderSlot)(e.$slots,"header-left",{},(()=>[n.tableActions?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.availableActions,(i=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("button",{id:i.action,key:i.action,type:"button",class:(0,r.normalizeClass)(["btn role-primary",{[e.bulkActionClass]:!0}]),disabled:!i.enabled,"data-testid":n.componentTestid+"-"+i.action,onClick:t=>e.applyTableAction(i,null,t),onKeydown:t[0]||(t[0]=(0,r.withKeys)((0,r.withModifiers)((()=>{}),["stop"]),["enter"])),onMouseover:e=>Q.setBulkActionOfInterest(i),onMouseleave:t[1]||(t[1]=e=>Q.setBulkActionOfInterest(null))},[i.icon?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:(0,r.normalizeClass)(i.icon)},null,2)):(0,r.createCommentVNode)("",!0),(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[ae,i.label]])],42,a)),[[oe,e.actionTooltip]]))),128)),(0,r.createVNode)(J,{class:(0,r.normalizeClass)([e.bulkActionsDropdownClass,"bulk-actions-dropdown"]),"disable-button":!e.selectedRows.length,size:"sm"},{"button-content":(0,r.withCtx)((()=>[(0,r.createElementVNode)("button",{ref:"actionDropDown",class:"btn bg-primary mr-0",disabled:!e.selectedRows.length},[t[22]||(t[22]=(0,r.createElementVNode)("i",{class:"icon icon-gear"},null,-1)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.t("sortableTable.bulkActions.collapsed.label")),1),t[23]||(t[23]=(0,r.createElementVNode)("i",{class:"ml-10 icon icon-chevron-down"},null,-1))],8,o)])),"popover-content":(0,r.withCtx)((()=>[(0,r.createElementVNode)("ul",s,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.hiddenActions,((n,i)=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:i,class:(0,r.normalizeClass)({disabled:!n.enabled}),onClick:t=>e.applyTableAction(n,null,t),onMouseover:e=>Q.setBulkActionOfInterest(n),onMouseleave:t[2]||(t[2]=e=>Q.setBulkActionOfInterest(null))},[n.icon?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:(0,r.normalizeClass)(n.icon)},null,2)):(0,r.createCommentVNode)("",!0),(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[ae,n.label]])],42,l)),[[se],[oe,{content:e.actionTooltip,placement:"right"}]]))),128))])])),_:1},8,["class","disable-button"]),e.selectedRowsText?((0,r.openBlock)(),(0,r.createElementBlock)("label",{key:0,class:(0,r.normalizeClass)([e.bulkActionAvailabilityClass,"action-availability"])},(0,r.toDisplayString)(e.selectedRowsText),3)):(0,r.createCommentVNode)("",!0)],64)):(0,r.createCommentVNode)("",!0)]),!0)],2),!e.hasAdvancedFiltering&&e.$slots["header-middle"]?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,[(0,r.renderSlot)(e.$slots,"header-middle",{},void 0,!0)])):(0,r.createCommentVNode)("",!0),n.search||e.hasAdvancedFiltering||e.isTooManyItemsToAutoUpdate||e.$slots["header-right"]?((0,r.openBlock)(),(0,r.createElementBlock)("div",u,[e.hasAdvancedFiltering?((0,r.openBlock)(),(0,r.createElementBlock)("ul",d,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.advancedFilteringValues,((n,i)=>((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:i},[(0,r.createElementVNode)("span",h,(0,r.toDisplayString)(`"${n.value}" ${e.t("sortableTable.in")} ${n.label}`),1),(0,r.createElementVNode)("span",{class:"cross",onClick:t=>e.clearAdvancedFilter(i)},"✕",8,p),t[24]||(t[24]=(0,r.createElementVNode)("div",{class:"bg"},null,-1))])))),128))])):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"header-right",{},void 0,!0),e.isTooManyItemsToAutoUpdate?((0,r.openBlock)(),(0,r.createBlock)(Z,{key:1,mode:"manual-refresh",size:n.manualRefreshButtonSize,"current-phase":Y.refreshButtonPhase,onClick:e.debouncedRefreshTableData},null,8,["size","current-phase","onClick"])):(0,r.createCommentVNode)("",!0),e.hasAdvancedFiltering?((0,r.openBlock)(),(0,r.createElementBlock)("div",f,[(0,r.createElementVNode)("button",{class:"btn role-primary",onClick:t[3]||(t[3]=t=>{e.advancedFilteringVisibility=!e.advancedFilteringVisibility})},(0,r.toDisplayString)(e.t("sortableTable.addFilter")),1),(0,r.withDirectives)((0,r.createElementVNode)("div",m,[(0,r.withDirectives)((0,r.createElementVNode)("input",{ref:"advancedSearchQuery","onUpdate:modelValue":t[4]||(t[4]=t=>e.advFilterSearchTerm=t),type:"search",class:"advanced-search-box",placeholder:e.t("sortableTable.filterFor")},null,8,g),[[r.vModelText,e.advFilterSearchTerm]]),(0,r.createElementVNode)("div",v,[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.t("sortableTable.in")),1),(0,r.createVNode)(ee,{value:e.advFilterSelectedProp,"onUpdate:value":t[5]||(t[5]=t=>e.advFilterSelectedProp=t),class:"filter-select",clearable:!0,options:e.advFilterSelectOptions,disabled:!1,searchable:!1,mode:"edit",multiple:!1,taggable:!1,placeholder:e.t("sortableTable.selectCol"),onSelecting:t[6]||(t[6]=t=>e.advFilterSelectedLabel=t.label)},null,8,["value","options","placeholder"])]),(0,r.createElementVNode)("div",b,[(0,r.createElementVNode)("button",{class:"btn role-secondary",disabled:!e.advancedFilteringValues.length,onClick:t[7]||(t[7]=(...t)=>e.clearAllAdvancedFilters&&e.clearAllAdvancedFilters(...t))},(0,r.toDisplayString)(e.t("sortableTable.resetFilters")),9,y),(0,r.createElementVNode)("button",{class:"btn role-primary",onClick:t[8]||(t[8]=(...t)=>e.addAdvancedFilter&&e.addAdvancedFilter(...t))},(0,r.toDisplayString)(e.t("sortableTable.add")),1)])],512),[[r.vShow,e.advancedFilteringVisibility]])],512)):n.search?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("input",{key:3,ref:"searchQuery","onUpdate:modelValue":t[9]||(t[9]=e=>Y.eventualSearchQuery=e),type:"search",class:"input-sm search-box","aria-label":e.t("sortableTable.searchLabel"),placeholder:e.t("sortableTable.search")},null,8,w)),[[r.vModelText,Y.eventualSearchQuery]]):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"header-button",{},void 0,!0)])):(0,r.createCommentVNode)("",!0)],2)):(0,r.createCommentVNode)("",!0)],2),(0,r.createElementVNode)("table",{ref:"table",class:(0,r.normalizeClass)(["sortable-table",Q.classObject]),width:"100%",role:"table"},[n.showHeaders?((0,r.openBlock)(),(0,r.createBlock)(te,{key:0,"label-for":Q.labelFor,columns:Q.columns,group:e.group,"group-options":e.advGroupOptions,"has-advanced-filtering":e.hasAdvancedFiltering,"adv-filter-hide-labels-as-cols":e.advFilterHideLabelsAsCols,"table-actions":n.tableActions,"table-cols-options":e.columnOptions,"row-actions":n.rowActions,"sub-expand-column":n.subExpandColumn,"row-actions-width":n.rowActionsWidth,"how-much-selected":e.howMuchSelected,"sort-by":e.sortBy,"default-sort-by":e._defaultSortBy,descending:e.descending,"no-rows":Q.noRows,loading:Y.isLoading&&!Y.loadingDelay,"no-results":Q.noResults,onOnToggleAll:e.onToggleAll,onOnSortChange:e.changeSort,onColVisibilityChange:e.changeColVisibility,onGroupValueChange:t[10]||(t[10]=t=>e.$emit("group-value-change",t)),onUpdateColsOptions:e.updateColsOptions},null,8,["label-for","columns","group","group-options","has-advanced-filtering","adv-filter-hide-labels-as-cols","table-actions","table-cols-options","row-actions","sub-expand-column","row-actions-width","how-much-selected","sort-by","default-sort-by","descending","no-rows","loading","no-results","onOnToggleAll","onOnSortChange","onColVisibilityChange","onUpdateColsOptions"])):(0,r.createCommentVNode)("",!0),Y.isLoading&&!Y.loadingDelay?((0,r.openBlock)(),(0,r.createElementBlock)("div",E)):Y.isLoading&&!n.altLoading?((0,r.openBlock)(),(0,r.createElementBlock)("tbody",_,[(0,r.renderSlot)(e.$slots,"loading",{},(()=>[(0,r.createElementVNode)("tr",null,[(0,r.createElementVNode)("td",{colspan:Q.fullColspan},[(0,r.createElementVNode)("div",k,[t[25]||(t[25]=(0,r.createElementVNode)("i",{class:"icon-spin icon icon-spinner"},null,-1)),(0,r.createVNode)(ne,{k:"generic.loading",raw:!0})])],8,S)])]),!0)])):Q.noRows?((0,r.openBlock)(),(0,r.createElementBlock)("tbody",x,[(0,r.renderSlot)(e.$slots,"no-rows",{},(()=>[(0,r.createElementVNode)("tr",A,[(0,r.createElementVNode)("td",{colspan:Q.fullColspan},[n.showNoRows?((0,r.openBlock)(),(0,r.createBlock)(ne,{key:0,k:n.noRowsKey},null,8,["k"])):(0,r.createCommentVNode)("",!0)],8,N)])]),!0)])):Q.noResults?((0,r.openBlock)(),(0,r.createElementBlock)("tbody",C,[(0,r.renderSlot)(e.$slots,"no-results",{},(()=>[(0,r.createElementVNode)("tr",T,[(0,r.createElementVNode)("td",{colspan:Q.fullColspan,class:"text-center"},[(0,r.createVNode)(ne,{k:n.noDataKey},null,8,["k"])],8,R)])]),!0)])):((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:5},(0,r.renderList)(Q.displayRows,(i=>((0,r.openBlock)(),(0,r.createElementBlock)("tbody",{key:i.key,tabindex:"-1",class:(0,r.normalizeClass)({group:n.groupBy})},[n.groupBy?(0,r.renderSlot)(e.$slots,"group-row",{key:0,group:i,fullColspan:Q.fullColspan},(()=>[(0,r.createElementVNode)("tr",O,[(0,r.createElementVNode)("td",{colspan:Q.fullColspan},[(0,r.renderSlot)(e.$slots,"group-by",{group:i.grp},(()=>[(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",L,[(0,r.createTextVNode)((0,r.toDisplayString)(i.ref),1)])),[[le]])]),!0)],8,I)])]),!0):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.rows,((i,a)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:a},[(0,r.renderSlot)(e.$slots,"main-row",{row:i.row},(()=>[(0,r.renderSlot)(e.$slots,"main-row:"+(i.row.mainRowKey||a),{fullColspan:Q.fullColspan},(()=>[(0,r.createElementVNode)("tr",{class:(0,r.normalizeClass)(["main-row",{"has-sub-row":i.showSubRow}]),"data-testid":n.componentTestid+"-"+a+"-row","data-node-id":i.key,"data-cant-run-bulk-action-of-interest":Y.actionOfInterest&&!i.canRunBulkActionOfInterest},[n.tableActions?((0,r.openBlock)(),(0,r.createElementBlock)("td",P,[(0,r.createTextVNode)((0,r.toDisplayString)(i.mainRowKey)+" ",1),(0,r.createVNode)(re,{class:"selection-checkbox","data-node-id":i.key,"data-testid":n.componentTestid+"-"+a+"-checkbox",value:e.selectedRows.includes(i.row),"alternate-label":e.t("sortableTable.genericRowCheckbox",{item:i&&i.row?i.row.id:""})},null,8,["data-node-id","data-testid","value","alternate-label"])])):(0,r.createCommentVNode)("",!0),n.subExpandColumn?((0,r.openBlock)(),(0,r.createElementBlock)("td",M,[(0,r.createElementVNode)("i",{"data-title":"Toggle Expand",class:(0,r.normalizeClass)({icon:!0,"icon-chevron-right":!Y.expanded[i.row[n.keyField]],"icon-chevron-down":!!Y.expanded[i.row[n.keyField]]}),onClick:(0,r.withModifiers)((e=>Q.toggleExpand(i.row)),["stop"])},null,10,B)])):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.columns,((t,o)=>(0,r.renderSlot)(e.$slots,"col:"+t.col.name,{key:o,row:i.row,col:t.col,dt:Q.dt,expanded:Y.expanded,rowKey:i.key},(()=>[(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("td",{key:t.col.name,"data-title":t.col.label,"data-testid":`sortable-cell-${a}-${o}`,align:t.col.align||"left",class:(0,r.normalizeClass)({["col-"+t.dasherize]:!!t.col.formatter,[t.col.breakpoint]:!!t.col.breakpoint,["skip-select"]:t.col.skipSelect}),width:t.col.width},[(0,r.renderSlot)(e.$slots,"cell:"+t.col.name,{row:i.row,col:t.col,value:t.value},(()=>[t.component&&t.needRef?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(t.component),(0,r.mergeProps)({key:0,ref_for:!0,ref:"column",value:t.value,row:i.row,col:t.col},t.col.formatterOpts,{"row-key":i.key,"get-custom-detail-link":n.getCustomDetailLink}),null,16,["value","row","col","row-key","get-custom-detail-link"])):t.component?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(t.component),(0,r.mergeProps)({key:1,value:t.value,row:i.row,col:t.col,ref_for:!0},t.col.formatterOpts,{"row-key":i.key}),null,16,["value","row","col","row-key"])):t.col.formatter?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(t.col.formatter),(0,r.mergeProps)({key:2,value:t.value,row:i.row,col:t.col,ref_for:!0},t.col.formatterOpts,{"row-key":i.key}),null,16,["value","row","col","row-key"])):""!==t.value?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:3},[(0,r.createTextVNode)((0,r.toDisplayString)(t.formatted),1)],64)):t.col.dashIfEmpty?((0,r.openBlock)(),(0,r.createElementBlock)("span",$,"—")):(0,r.createCommentVNode)("",!0)]),!0)],10,F)),[[r.vShow,!e.hasAdvancedFiltering||e.hasAdvancedFiltering&&t.col.isColVisible]])]),!0))),128)),n.rowActions?((0,r.openBlock)(),(0,r.createElementBlock)("td",U,[(0,r.renderSlot)(e.$slots,"row-actions",{row:i.row,index:a},(()=>[(0,r.createVNode)(ie,{resource:i.row,"data-testid":n.componentTestid+"-"+a+"-action-button","button-aria-label":e.t("sortableTable.tableActionsLabel",{resource:i?.row?.id||""})},null,8,["resource","data-testid","button-aria-label"])]),!0)])):(0,r.createCommentVNode)("",!0)],10,D)]),!0)]),!0),i.showSubRow?(0,r.renderSlot)(e.$slots,"sub-row",{key:0,fullColspan:Q.fullColspan,row:i.row,subMatches:Y.subMatches,keyField:n.keyField,componentTestid:n.componentTestid,i:a,onRowMouseEnter:e.onRowMouseEnter,onRowMouseLeave:e.onRowMouseLeave},(()=>[i.row.stateDescription?((0,r.openBlock)(),(0,r.createElementBlock)("tr",{key:i.row[n.keyField]+"-description","data-testid":n.componentTestid+"-"+a+"-row-description",class:"state-description sub-row",onMouseenter:t[11]||(t[11]=(...t)=>e.onRowMouseEnter&&e.onRowMouseEnter(...t)),onMouseleave:t[12]||(t[12]=(...t)=>e.onRowMouseLeave&&e.onRowMouseLeave(...t))},[n.tableActions?((0,r.openBlock)(),(0,r.createElementBlock)("td",V)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("td",{colspan:Q.fullColspan-(n.tableActions?1:0),class:(0,r.normalizeClass)({"text-error":i.row.stateObj.error})},(0,r.toDisplayString)(i.row.stateDescription),11,K)],40,j)):(0,r.createCommentVNode)("",!0)]),!0):(0,r.createCommentVNode)("",!0)],64)))),128))],2)))),128))],2),e.showPaging?((0,r.openBlock)(),(0,r.createElementBlock)("div",H,[(0,r.createElementVNode)("button",{type:"button",class:"btn btn-sm role-multi-action","data-testid":"pagination-first",disabled:1==e.page||n.loading,onClick:t[13]||(t[13]=t=>e.goToPage("first"))},t[26]||(t[26]=[(0,r.createElementVNode)("i",{class:"icon icon-chevron-beginning"},null,-1)]),8,G),(0,r.createElementVNode)("button",{type:"button",class:"btn btn-sm role-multi-action","data-testid":"pagination-prev",disabled:1==e.page||n.loading,onClick:t[14]||(t[14]=t=>e.goToPage("prev"))},t[27]||(t[27]=[(0,r.createElementVNode)("i",{class:"icon icon-chevron-left"},null,-1)]),8,z),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.pagingDisplay),1),(0,r.createElementVNode)("button",{type:"button",class:"btn btn-sm role-multi-action","data-testid":"pagination-next",disabled:e.page==e.totalPages||n.loading,onClick:t[15]||(t[15]=t=>e.goToPage("next"))},t[28]||(t[28]=[(0,r.createElementVNode)("i",{class:"icon icon-chevron-right"},null,-1)]),8,q),(0,r.createElementVNode)("button",{type:"button",class:"btn btn-sm role-multi-action","data-testid":"pagination-last",disabled:e.page==e.totalPages||n.loading,onClick:t[16]||(t[16]=t=>e.goToPage("last"))},t[29]||(t[29]=[(0,r.createElementVNode)("i",{class:"icon icon-chevron-end"},null,-1)]),8,X)])):(0,r.createCommentVNode)("",!0),n.search?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:1,class:"hide",onShortkey:t[17]||(t[17]=e=>Q.focusSearch())},null,544)),[[ce,["/"],void 0,{once:!0}]]):(0,r.createCommentVNode)("",!0),n.tableActions?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:2},[(0,r.withDirectives)((0,r.createElementVNode)("button",{class:"hide",onShortkey:t[18]||(t[18]=e=>Q.focusNext(e))},null,544),[[ce,["j"]]]),(0,r.withDirectives)((0,r.createElementVNode)("button",{class:"hide",onShortkey:t[19]||(t[19]=e=>Q.focusPrevious(e))},null,544),[[ce,["k"]]]),(0,r.withDirectives)((0,r.createElementVNode)("button",{class:"hide",onShortkey:t[20]||(t[20]=e=>Q.focusNext(e,!0))},null,544),[[ce,["shift","j"]]]),(0,r.withDirectives)((0,r.createElementVNode)("button",{class:"hide",onShortkey:t[21]||(t[21]=e=>Q.focusPrevious(e,!0))},null,544),[[ce,["shift","k"]]]),(0,r.renderSlot)(e.$slots,"shortkeys",{},void 0,!0)],64)):(0,r.createCommentVNode)("",!0)],8,i)}var Y=n(65359),Q=n(23464),J=n.n(Q),Z=n(3514),ee=n.n(Z),te=n(92043),ne=n(76978),re=n(68851),ie=n(42200),ae=n(89651);const oe={class:"dropdown-button-group"},se=["disabled"];function le(e,t,n,i,a,o){const s=(0,r.resolveComponent)("v-dropdown");return(0,r.openBlock)(),(0,r.createElementBlock)("div",oe,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["dropdown-button bg-primary",{"one-action":!n.dualAction,[o.buttonSize]:!0,disabled:n.disableButton}])},[(0,r.createVNode)(s,{placement:"bottom",container:!1,disabled:n.disableButton,flip:!1},{popper:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"popover-content")])),default:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"button-content",{buttonSize:o.buttonSize},(()=>[(0,r.createElementVNode)("button",{ref:"popoverButton",class:(0,r.normalizeClass)(["icon-container bg-primary no-left-border-radius",o.buttonSize]),disabled:n.disableButton,type:"button"},t[0]||(t[0]=[(0,r.createTextVNode)(" Button "),(0,r.createElementVNode)("i",{class:"icon icon-chevron-down"},null,-1)]),10,se)]))])),_:3},8,["disabled"])],2)])}var ce={name:"ActionDropdown",props:{size:{type:String,default:""},dualAction:{type:Boolean,default:!0},disableButton:{type:Boolean,default:!1}},computed:{buttonSize(){const{size:e}=this;let t;switch(e){case"":t="btn";break;case"xs":t="btn btn-xs";break;case"sm":t="btn btn-sm";break;case"lg":t="btn btn-lg";break;default:}return t}},methods:{hasSlot(e="default"){return!!this.$slots[e]||!!this.$slots.name()},togglePopover(){}}},ue=(n(63864),n(47433));const de=(0,ue.A)(ce,[["render",le]]);var he=de,pe=n(97331),fe=n.n(pe),me=n(12784),ge=n.n(me);const ve=["width"],be=["width"],ye=["align","width","tabindex","aria-sort","onClick","onKeyup"],we={class:"content"},Ee={key:0,class:"text-muted"},_e={key:0,class:"sort","aria-hidden":"true"},Se={class:"icon icon-info not-filter-icon"},ke={class:"icon-stack"},xe={key:0,class:"icon icon-sort-down icon-stack-1x"},Ae={key:1,class:"icon icon-sort-up icon-stack-1x"},Ne=["width"],Ce={ref:"table-options",class:"table-options-group"},Te={key:0,class:"table-options-grouping"},Re={class:"table-options-col-subtitle"},Oe={class:"table-options-col-subtitle mb-20"},Ie=["width"];function Le(e,t,n,i,a,o){const s=(0,r.resolveComponent)("Checkbox"),l=(0,r.resolveComponent)("LabeledSelect"),c=(0,r.resolveDirective)("clean-html"),u=(0,r.resolveDirective)("clean-tooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("thead",null,[(0,r.createElementVNode)("tr",{class:(0,r.normalizeClass)({loading:n.loading,"top-aligned":o.hasColumnWithSubLabel})},[n.tableActions?((0,r.openBlock)(),(0,r.createElementBlock)("th",{key:0,width:n.checkWidth},[(0,r.createVNode)(s,{value:o.isAll,"onUpdate:value":t[0]||(t[0]=e=>o.isAll=e),class:"check","data-testid":"sortable-table_check_select_all",indeterminate:o.isIndeterminate,disabled:n.noRows||n.noResults,"alternate-label":e.t("sortableTable.genericGroupCheckbox")},null,8,["value","indeterminate","disabled","alternate-label"])],8,ve)):(0,r.createCommentVNode)("",!0),n.subExpandColumn?((0,r.openBlock)(),(0,r.createElementBlock)("th",{key:1,width:n.expandWidth},null,8,be)):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.columns,(i=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("th",{key:i.name,align:i.align||"left",width:i.width,class:(0,r.normalizeClass)([{sortable:i.sort,[i.breakpoint]:!!i.breakpoint},"sortable-table-head-element"]),tabindex:i.sort?0:-1,"aria-sort":o.ariaSort(i),onClick:(0,r.withModifiers)((e=>o.changeSort(e,i)),["prevent"]),onKeyup:[(0,r.withKeys)((e=>o.changeSort(e,i)),["enter"]),(0,r.withKeys)((e=>o.changeSort(e,i)),["space"])]},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["table-header-container",{"not-filterable":n.hasAdvancedFiltering&&!i.isFilter}])},[(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",we,[(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[c,n.labelFor(i)]]),i.subLabel?((0,r.openBlock)(),(0,r.createElementBlock)("span",Ee,(0,r.toDisplayString)(i.subLabel),1)):(0,r.createCommentVNode)("",!0)])),[[u,o.tooltip(i)]]),i.sort?((0,r.openBlock)(),(0,r.createElementBlock)("div",_e,[(0,r.withDirectives)((0,r.createElementVNode)("i",Se,null,512),[[r.vShow,n.hasAdvancedFiltering&&!i.isFilter],[u,e.t("sortableTable.tableHeader.noFilter")]]),(0,r.createElementVNode)("span",ke,[t[3]||(t[3]=(0,r.createElementVNode)("i",{class:"icon icon-sort icon-stack-1x faded"},null,-1)),o.isCurrent(i)&&!n.descending?((0,r.openBlock)(),(0,r.createElementBlock)("i",xe)):(0,r.createCommentVNode)("",!0),o.isCurrent(i)&&n.descending?((0,r.openBlock)(),(0,r.createElementBlock)("i",Ae)):(0,r.createCommentVNode)("",!0)])])):(0,r.createCommentVNode)("",!0)],2)],42,ye)),[[r.vShow,!n.hasAdvancedFiltering||n.hasAdvancedFiltering&&i.isColVisible]]))),128)),n.rowActions&&n.hasAdvancedFiltering&&n.tableColsOptions.length?((0,r.openBlock)(),(0,r.createElementBlock)("th",{key:2,width:n.rowActionsWidth},[(0,r.createElementVNode)("div",Ce,[(0,r.createElementVNode)("button",{"aria-haspopup":"true","aria-expanded":"false",type:"button",class:"btn btn-sm role-multi-action table-options-btn",onClick:t[1]||(t[1]=(...e)=>o.tableColsOptionsClick&&o.tableColsOptionsClick(...e))},t[4]||(t[4]=[(0,r.createElementVNode)("i",{class:"icon icon-actions"},null,-1)])),(0,r.withDirectives)((0,r.createElementVNode)("div",{class:"table-options-container",style:(0,r.normalizeStyle)(a.tableColsMenuPosition)},[o.hasAdvGrouping?((0,r.openBlock)(),(0,r.createElementBlock)("div",Te,[(0,r.createElementVNode)("span",Re,(0,r.toDisplayString)(e.t("sortableTable.tableHeader.groupBy"))+":",1),(0,r.createVNode)(l,{value:o.advGroup,"onUpdate:value":t[2]||(t[2]=e=>o.advGroup=e),class:"table-options-grouping-select",clearable:!0,options:n.groupOptions,disabled:!1,searchable:!1,mode:"edit",multiple:!1,taggable:!1},null,8,["value","options"])])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("p",Oe,(0,r.toDisplayString)(e.t("sortableTable.tableHeader.show"))+": ",1),(0,r.createElementVNode)("ul",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.tableColsOptions,((e,t)=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:t,class:(0,r.normalizeClass)({visible:!e.preventColToggle})},[(0,r.withDirectives)((0,r.createVNode)(s,{value:e.isColVisible,"onUpdate:value":[t=>e.isColVisible=t,t=>o.tableOptionsCheckbox(t,e.label)],class:"table-options-checkbox",label:e.label},null,8,["value","onUpdate:value","label"]),[[r.vShow,!e.preventColToggle]])],2)),[[r.vShow,e.isTableOption]]))),128))])],4),[[r.vShow,a.tableColsOptionsVisibility]])],512)],8,Ne)):n.rowActions?((0,r.openBlock)(),(0,r.createElementBlock)("th",{key:3,width:n.rowActionsWidth},null,8,Ie)):(0,r.createCommentVNode)("",!0)],2)])}var De=n(35881);function Pe(e,t){if(e=e?.parentElement,!e)return null;const n=e.matches||e.matchesSelector;return n.call(e,t)?e:Pe(e,t)}const Me="all",Be="some",Fe="none";var $e={mounted(){const e=this.$el.querySelector("TABLE");this._onRowClickBound=this.onRowClick.bind(this),this._onRowMousedownBound=this.onRowMousedown.bind(this),this._onRowContextBound=this.onRowContext.bind(this),e.addEventListener("click",this._onRowClickBound),e.addEventListener("mousedown",this._onRowMousedownBound),e.addEventListener("contextmenu",this._onRowContextBound)},beforeUnmount(){const e=this.$el.querySelector("TABLE");e.removeEventListener("click",this._onRowClickBound),e.removeEventListener("mousedown",this._onRowMousedownBound),e.removeEventListener("contextmenu",this._onRowContextBound)},computed:{...(0,Y.L8)({targetElem:"action-menu/elem",shouldShow:"action-menu/showing"}),howMuchSelected(){const e=this.pagedRows.length,t=this.selectedRows.length;return t>=e&&e>0?Me:t>0?Be:Fe},bulkActionsForSelection(){let e=!1;const t=this.pagedRows,n=this.arrangedRows||t;let r=this.selectedRows;if(!this.selectedRows.length){if(!n)return[];const t=n[0];r=t?[t]:[],e=!0}const i={};for(const o of t)if(o.availableActions)for(const e of o.availableActions)e.bulkable&&je(i,e,!1);for(const o of r)if(o.availableActions)for(const e of o.availableActions)e.bulkable&&e.enabled&&je(i,e,!1);const a=Ve(i,e);return a.forEach((e=>{const t=this.selectedRows.some((t=>{const n=t.availableActions||[];return n.some((t=>t.action===e.action&&t.enabled))}));e.enabled=this.selectedRows.length>0&&t})),a.sort(((e,t)=>(t.weight||0)-(e.weight||0)))}},data(){return{selectedRows:[],prevNode:null}},watch:{pagedRows(){const e=this.pagedRows,t=[];for(const n of this.selectedRows)e.includes(n)||t.push(n);this.update([],t)}},methods:{onToggleAll(e){return e?(this.update(this.pagedRows,[]),!0):(this.update([],this.pagedRows),!1)},onRowMousedown(e){((0,De._Z)(e)||this.isSelectionCheckbox(e.target))&&e.preventDefault()},onRowMouseEnter(e){const t=e.target.closest("TR");if(t.classList.contains("sub-row")){const e=t.previousElementSibling;e.classList.add("sub-row-hovered")}},onRowMouseLeave(e){const t=e.target.closest("TR");if(t.classList.contains("sub-row")){const e=t.previousElementSibling;e.classList.remove("sub-row-hovered")}},nodeForEvent(e){const t=e.target.tagName,n=e.target,r=n.closest(".actions");if(n.classList.contains("select-all-check"))return;if(!r&&("A"===t||"BUTTON"===t||Pe(n,".btn")))return;const i=e.target.closest("TR");return this.nodeForRow(i)},nodeForRow(e){if(e?.classList.contains("separator-row"))return;while(e&&!e.classList.contains("main-row"))e=e.previousElementSibling;if(!e)return;const t=e.dataset.nodeId;if(!t)return;const n=this.pagedRows.find((e=>(0,ne.Jt)(e,this.keyField)===t));return n},async onRowClick(e){const t=this.nodeForEvent(e),n=e.target.closest("TD"),r=n?.classList.contains("skip-select");if(r)return;const i=this.selectedRows,a=this.isSelectionCheckbox(e.target)||n?.classList.contains("row-check"),o=n?.classList.contains("row-expand"),s=this.pagedRows;if(this.$emit("rowClick",e),!t)return;if(o)return void this.toggleExpand(t);const l=e.target.closest(".actions");if(l){let n=[t];if(this.mangleActionResources){const e=l.querySelector("i");e.classList.remove("icon-actions"),e.classList.add("icon-spinner"),e.classList.add("icon-spin");try{n=await this.mangleActionResources(n)}finally{e.classList.remove("icon-spinner"),e.classList.remove("icon-spin"),e.classList.add("icon-actions")}}return void(this.targetElem||this.shouldShow?this.targetElem===l&&this.shouldShow&&this.$store.commit("action-menu/hide"):this.$store.commit("action-menu/show",{resources:n,event:e,elem:l}))}const c=i.includes(t);let u=this.prevNode;if(u&&s.includes(u)||(u=t),(0,De.yC)(e))this.toggle(t);else if((0,De._Z)(e)){const e=this.nodesBetween(u,t);c?this.update([],e):this.update(e,[])}else a?this.toggle(t):this.update([t],s);this.prevNode=t},async onRowContext(e){const t=this.nodeForEvent(e);if((0,De.A0)(e))return;if(!t)return;e.preventDefault(),e.stopPropagation(),this.prevNode=t;const n=this.selectedRows.includes(t);n||this.update([t],this.selectedRows.slice());let r=this.selectedRows;this.mangleActionResources&&(r=await this.mangleActionResources(r)),this.$store.commit("action-menu/show",{resources:r,event:e})},keySelectRow(e,t=!1){const n=this.nodeForRow(e),r=this.pagedRows;n&&(t?this.update([n],[]):this.update([n],r),this.prevNode=n)},isSelectionCheckbox(e){return"INPUT"===e.tagName&&"checkbox"===e.type&&null!==e.closest(".selection-checkbox")},nodesBetween(e,t){let n=[];const r=this.groupBy;if(r){const r=this.groupedRows;let i=this.groupIdx(e),a=this.groupIdx(t);if(!i||!a)return[];(i.group>a.group||i.group===a.group&&i.item>a.item)&&([i,a]=[a,i]);for(let e=i.group;e<=a.group;e++){const t=r[e].rows;let o=i.group===e?i.item:0;while(t[o]&&(e<a.group||o<=a.item))n.push(t[o]),o++}}else{const r=this.pagedRows;let i=r.indexOf(e),a=r.indexOf(t);[i,a]=[Math.min(i,a),Math.max(i,a)],n=r.slice(i,a+1)}return n=n.filter((e=>!this.selectedRows.includes(e))),n},groupIdx(e){const t=this.groupedRows;for(let n=0;n<t.length;n++){const r=t[n].rows;for(let t=0;t<r.length;t++)if(r[t]===e)return{group:n,item:t}}return null},toggle(e){const t=[],n=[];this.selectedRows.includes(e)?n.push(e):t.push(e),this.update(t,n)},update(e,t){t.forEach((e=>{const t=this.selectedRows.findIndex((t=>t===e));-1!==t&&this.selectedRows.splice(t,1)})),e&&this.selectedRows.push(...e),t.length&&this.$nextTick((()=>{for(let e=0;e<t.length;e++)this.updateInput(t[e],!1,this.keyField)})),e.length&&this.$nextTick((()=>{for(let t=0;t<e.length;t++)this.updateInput(e[t],!0,this.keyField)})),this.$nextTick((()=>{this.$emit("selection",this.selectedRows)}))},updateInput(e,t,n){const r=(0,ne.Jt)(e,n);if(r){const e=this.$el.querySelector(`div[data-checkbox-ctrl][data-node-id="${r}"]`);if(e&&!e.disabled){const n=e.querySelector("label");n&&(n.value=t);let r=e.closest("tr"),i=!0;while(r&&(i||r.classList.contains("sub-row")))t?r.classList.add("row-selected"):r.classList.remove("row-selected"),r=r.nextElementSibling,i=!1}}},select(e){e.forEach((e=>{const t=(0,ne.Jt)(e,this.keyField),n=this.$el.querySelector(`label[data-node-id="${t}"]`);n.dispatchEvent(new Event("click"))}))},applyTableAction(e,t,n){const r={alt:n&&(0,De.nN)(n),event:n},i=this.selectedRows.filter((t=>{const n=t.availableActions.find((t=>t.action===e.action));return n?.enabled}));Ke(i,e,t,r,this),this.actionOfInterest=null},clearSelection(){this.update([],this.selectedRows)}}};let Ue=0;function je(e,t,n=!0){let r=t.action;r||(r=`anon${Ue}`,Ue++);let i=e[r];return i||(i=Object.assign({},t),e[r]=i,i.allEnabled=!1),t.enabled?i.anyEnabled=!0:i.allEnabled=!1,n&&(i.available=(i.available||0)+(t.enabled?1:0),i.total=(i.total||0)+1),i}function Ve(e,t=!1){const n=(0,re.WP)(Object.values(e),"anyEnabled",!0);for(const r of n)r.enabled=!t&&r.available>=r.total;return n}function Ke(e,t,n,r={},i){if(n=n||[],t.invoke){const a={action:t,event:r.event,isAlt:!!r.alt};return t.invoke.apply(i,[a,e||[],n])}if(e.length>1&&t.bulkAction&&!r.alt){const r=e[0][t.bulkAction];if(r)return r.call(e[0],e,...n)}const a=[];for(const o of e){let e;e=r.alt&&t.altAction?o[t.altAction]:o[t.action],e&&a.push(e.apply(o,n))}return Promise.all(a)}var He=n(14817),Ge=n(8077),ze={emits:["update-cols-options","on-toggle-all","group-value-change","on-sort-change","col-visibility-change"],components:{Checkbox:ie.S,LabeledSelect:Ge.A},props:{columns:{type:Array,required:!0},sortBy:{type:String,required:!0},defaultSortBy:{type:String,default:""},group:{type:String,default:""},groupOptions:{type:Array,default:()=>[]},descending:{type:Boolean,required:!0},hasAdvancedFiltering:{type:Boolean,required:!1},tableColsOptions:{type:Array,default:()=>[]},tableActions:{type:Boolean,required:!0},rowActions:{type:Boolean,required:!0},howMuchSelected:{type:String,required:!0},checkWidth:{type:Number,default:30},rowActionsWidth:{type:Number,required:!0},subExpandColumn:{type:Boolean,default:!1},expandWidth:{type:Number,default:30},labelFor:{type:Function,required:!0},noRows:{type:Boolean,default:!0},noResults:{type:Boolean,default:!0},loading:{type:Boolean,required:!1}},data(){return{tableColsOptionsVisibility:!1,tableColsMenuPosition:null}},watch:{advancedFilteringValues(){this.watcherUpdateLiveAndDelayed(!0,!1)},tableColsOptionsVisibility(e){e?(window.addEventListener("click",this.onClickOutside),this.$emit("update-cols-options")):window.removeEventListener("click",this.onClickOutside)}},computed:{isAll:{get(){return this.howMuchSelected!==Fe},set(e){this.$emit("on-toggle-all",e)}},hasAdvGrouping(){return this.group?.length&&this.groupOptions?.length},advGroup:{get(){return this.group||this.advGroup},set(e){this.$emit("group-value-change",e)}},isIndeterminate(){return this.howMuchSelected===Be},hasColumnWithSubLabel(){return this.columns.some((e=>e.subLabel))}},methods:{changeSort(e,t){if(!t.sort)return;let n=!1;this.sortBy===t.name&&(n=!this.descending),this.$emit("on-sort-change",t.name,n)},isCurrent(e){return e.name===this.sortBy},ariaSort(e){return this.isCurrent(e)?this.descending?this.t("generic.descending"):this.t("generic.ascending"):this.t("generic.none")},tableColsOptionsClick(e){const t=document.querySelector(".table-options-container"),n=document.querySelector(".table-options-btn");this.tableColsMenuPosition=(0,He.Tb)(t,e||n,{overlapX:!0,fudgeX:326,fudgeY:-22,positionX:He.Q7,positionY:He.Q8}),this.tableColsOptionsVisibility=!this.tableColsOptionsVisibility},onClickOutside(e){const t=this.$refs["table-options"];t&&!t.contains(e.target)&&(this.tableColsOptionsVisibility=!1)},tableOptionsCheckbox(e,t){this.$emit("col-visibility-change",{label:t,value:e})},tooltip(e){if(!e.tooltip)return null;const t=this.$store.getters["i18n/exists"];return t(e.tooltip)?this.t(e.tooltip):e.tooltip}}};n(60045),n(1139);const qe=(0,ue.A)(ze,[["render",Le],["__scopeId","data-v-920b698a"]]);var Xe=qe;const We="allcols",Ye="All Columns",Qe=":::islabel";var Je={data(){return{searchQuery:null,previousFilter:null,previousResult:null}},computed:{searchFields(){const e=Ze(this.columns);return this.extraSearchFields&&(0,re.cn)(e,this.extraSearchFields),e},filteredRows(){if(!this.externalPaginationEnabled)return this.hasAdvancedFiltering?this.handleAdvancedFiltering():this.handleFiltering()}},methods:{handleAdvancedFiltering(){if(this.subMatches=null,this.searchQuery.length){const e=(this.arrangedRows||[]).slice(),t=e.filter((e=>this.searchQuery.every((t=>{if(t.prop===We){const n=this.advFilterSelectOptions.slice(1);let r=[];return n.forEach((e=>{if(e.value.includes("[")&&e.value.includes("]"))r=r.concat(JSON.parse(e.value));else{const t=e.isLabel?`${e.label}${Qe}`:e.value;r.push(t)}})),tt(r,[t.value],e)}{if(t.prop.includes("[")&&t.prop.includes("]"))return tt(JSON.parse(t.prop),[t.value],e);let n=t.prop;return t.prop.includes("metadata.labels")&&(n=`${t.label}${Qe}`),tt([n],[t.value],e)}}))));return t}return this.arrangedRows},handleFiltering(){const e=(this.searchQuery||"").trim().toLowerCase();let t;if(e&&this.previousResult&&e.startsWith(this.previousFilter)?t=this.previousResult.slice():(this.previousResult=null,t=(this.arrangedRows||[]).slice()),this.previousFilter=e,!e.length)return this.subMatches=null,this.previousResult=null,t;const n=this.searchFields,r=e.split(/\s*[, ]\s*/),i=this.subSearch,a=this.subFields,o={};for(let s=t.length-1;s>=0;s--){const e=t[s];let l=0,c=!0;if(c=tt(n,r,e),a&&i){const t=e[i]||[];for(let n=t.length-1;n>=0;n--){let t=!0;t=tt(a,r,e),t&&l++}o[(0,ne.Jt)(e,this.keyField)]=l}c||0!==l||(0,re.Wq)(t,s)}return this.subMatches=o,this.previousResult=t,t}},watch:{arrangedRows(e){this.previousResult=null},searchQuery(){this.debouncedPaginationChanged()}}};function Ze(e){const t=[];return(e||[]).forEach((e=>{const n=e.search;n?"string"===typeof n?(0,re.PG)(t,n):(0,re.cy)(n)&&(0,re.cn)(t,n):!1===n||(0,re.PG)(t,e.value||e.name)})),t.filter((e=>!!e))}const et=/^[0-9a-f\.:]+$/i;function tt(e,t,n){for(let r=0;r<t.length;r++){let i=!0,a=t[r];return"!"===a.substr(0,1)&&(i=!1,a=a.substr(1)),!a||nt(e,a,n)===i}}function nt(e,t,n){for(let r of e){if(!r)continue;if("function"!==typeof r&&r.includes(Qe)&&(!n.metadata.labels||!n.metadata.labels[r.replace(Qe,"")]))continue;let e,i;if("function"===typeof r)i=r(n);else if(r.includes(Qe))i=n.metadata.labels[r.replace(Qe,"")];else{const t=r.indexOf(":");t>0&&(e=r.substr(t+1),r=r.substr(0,t)),i=r.includes(".")?(0,ne.Jt)(n,r):n[r]}if(void 0!==i&&(i=`${i}`.toLowerCase(),i))if(e){if("exact"===e){if(i===t)return!0}else if("ip"===e){const e=et.test(t);if(e){const e=new RegExp(`(?:^|\\.)${t}(?:\\.|$)`);if(e.test(i))return!0}}else if("prefix"===e&&0===i.indexOf(t))return!0}else if(i.includes(`${t}`.toLowerCase()))return!0}return!1}var rt=n(74302);const it=["nameSort","id"];var at={computed:{sortFields(){let e=(this.groupBy?this.groupSort||this.groupBy:null)||[],t=[];const n=(this.columns||this.headers).find((e=>e&&e.name&&e.name.toLowerCase()===this.sortBy.toLowerCase()));return this.sortBy&&n&&n.sort&&(t=n.sort),Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),(0,re.sb)([...e,...t].concat(...this.mandatorySort||it))},arrangedRows(){if(this.externalPaginationEnabled)return;let e;const t=this.sortGeneration||this.sortGenerationFn?.apply(this);if(t&&(e=`${t}/${this.rows.length}/${this.descending}/${this.sortFields.join(",")}`,this.cacheKey===e))return this.cachedRows;const n=(0,rt.Ul)(this.rows,this.sortFields,this.descending);return e&&(this.cacheKey=e,this.cachedRows=n),n}},data(){let e=null;if(this._defaultSortBy=this.defaultSortBy,!this._defaultSortBy){const e=this.headers.find((e=>!!e.defaultSort)),t=this.headers.find((e=>"name"===e.name));if(e)this._defaultSortBy=e.name;else if(t)this._defaultSortBy=t.name;else{const e=this.headers.filter((e=>"state"!==e.name))[0];this._defaultSortBy=e?e.name:"id"}}return e&&this.headers.find((t=>t.name===e))||(e=this._defaultSortBy),{sortBy:e,descending:!1,cachedRows:null,cacheKey:null}},methods:{changeSort(e,t){this.sortBy=e,this.descending=t,this.setPage(1)}},watch:{sortFields(){this.debouncedPaginationChanged()},descending(){this.debouncedPaginationChanged()}}},ot=n(91462),st={computed:{totalRows(){return this.externalPaginationEnabled?this.externalPaginationResult?.count||0:this.filteredRows.length},indexFrom(){return Math.max(0,1+this.perPage*(this.page-1))},indexTo(){return Math.min(this.totalRows,this.indexFrom+this.perPage-1)},totalPages(){return Math.ceil(this.totalRows/this.perPage)},showPaging(){if(!this.paging)return!1;const e=this.totalPages>1;return(this.altLoading||!this.loading)&&e},pagingDisplay(){const e={...this.pagingParams||{},count:this.totalRows,pages:this.totalPages,from:this.indexFrom,to:this.indexTo};return this.$store.getters["i18n/t"](this.pagingLabel,e)},pagedRows(){return this.externalPaginationEnabled?this.rows:this.paging?this.filteredRows.slice(this.indexFrom-1,this.indexTo):this.filteredRows}},data(){const e=this.getPerPage();return{page:1,perPage:e}},watch:{pagedRows(){const e=this.indexFrom,t=this.totalRows;this.totalPages>0&&this.page>1&&e>t&&this.setPage(this.totalPages)},page(){this.debouncedPaginationChanged()},perPage(){this.debouncedPaginationChanged()}},methods:{getPerPage(){let e=this.rowsPerPage||0;return e<=0&&(e=parseInt(this.$store.getters["prefs/get"](ot.kc),10)||0),e<=0&&(e=10),e},setPage(e){this.page!==e&&(this.page=e)},goToPage(e){let t;switch(e){case"first":t=1;break;case"prev":t=Math.max(1,this.page-1);break;case"next":t=Math.min(this.totalPages,this.page+1);break;case"last":t=this.totalPages;break}this.setPage(t)},getPageByRow(e,t=e=>e){const n=this.filteredRows.map(t).indexOf(e);return-1===n?null:Math.ceil(n/this.perPage)}}},lt={computed:{selectedGroupOption(){return this.groupOptions?.find((e=>e.value===this.group))},groupedRows(){const e=this.groupBy,t=this.groupRef||this.selectedGroupOption?.groupLabelKey||e;if(!e)return[{key:"default",ref:"default",rows:this.pagedRows}];const n=[],r={};for(const i of this.pagedRows){const a=(0,ne.Jt)(i,e)||"",o=(0,ne.Jt)(i,t);let s=r[a];s?s.rows.push(i):(s={key:a,ref:o,rows:[i]},r[a]=s,n.push(s))}return n}}};const ct="inline-block";var ut={data(){return{bulkActionsClass:"bulk",bulkActionClass:"bulk-action",bulkActionsDropdownClass:"bulk-actions-dropdown",bulkActionAvailabilityClass:"action-availability",hiddenActions:[],updateHiddenBulkActions:ge()(this.protectedUpdateHiddenBulkActions,10)}},beforeUnmount(){window.removeEventListener("resize",this.onWindowResize)},mounted(){window.addEventListener("resize",this.onWindowResize),this.updateHiddenBulkActions()},watch:{selectedRows(){this.updateHiddenBulkActions()},keyedAvailableActions(){this.updateHiddenBulkActions()}},computed:{availableActions(){return this.bulkActionsForSelection.filter((e=>!e.external))},keyedAvailableActions(){return this.availableActions.map((e=>e.action))},selectedRowsText(){return this.selectedRows.length?this.t("sortableTable.actionAvailability.selected",{actionable:this.selectedRows.length}):null},actionTooltip(){if(!this.selectedRows.length||!this.actionOfInterest)return null;const e=this.selectedRows.filter(this.canRunBulkActionOfInterest).length;return e===this.selectedRows.length?null:this.t("sortableTable.actionAvailability.some",{actionable:e,total:this.selectedRows.length})}},methods:{onWindowResize(){this.updateHiddenBulkActions(),this.onScroll()},protectedUpdateHiddenBulkActions(){if(!this.$refs.container)return;const e=this.$refs.container.querySelector(`.${this.bulkActionsClass}`),t=this.$refs.container.querySelector(`.${this.bulkActionsDropdownClass}`);if(!e||!t)return;const n=e.offsetWidth,r=this.$refs.container.querySelectorAll(`.${this.bulkActionClass}`),i=Array.from(r||[]),a=this.$refs.container.querySelector(`.${this.bulkActionAvailabilityClass}`);let o=0;this.selectedRowsText&&(a?(a.style.display=ct,o=a.offsetWidth):a.style.display="none;"),this.hiddenActions=[];let s=0,l=!1,c=n-o;for(let u=0;u<i.length;u++){const e=i[u];e.style.display=ct;const r=e.offsetWidth;if(s+=r+15,s>=c)if(l){const t=e.attributes.getNamedItem("id").value;this.hiddenActions.push(this.availableActions.find((e=>e.action===t))),e.style.display="none"}else t.style.display=ct,u=-1,s=0,l=!0,c=n-t.offsetWidth-o}l||(t.style.display="none")}}};const dt=We;var ht={props:{group:{type:String,default:()=>""},groupOptions:{type:Array,default:()=>[]},hasAdvancedFiltering:{type:Boolean,default:!1},advFilterHideLabelsAsCols:{type:Boolean,default:!1},advFilterPreventFilteringLabels:{type:Boolean,default:!1}},data(){return{columnOptions:[],colOptionsWatcher:null,advancedFilteringVisibility:!1,advancedFilteringValues:[],advFilterSearchTerm:null,advFilterSelectedProp:dt,advFilterSelectedLabel:Ye,column:null}},mounted(){this.hasAdvancedFiltering&&this.updateColsOptions()},watch:{advancedFilteringValues(){this.watcherUpdateLiveAndDelayed(!0,!1)},advancedFilteringVisibility(e){e?(window.addEventListener("click",this.onClickOutside),this.updateColsOptions()):window.removeEventListener("click",this.onClickOutside)}},computed:{advFilterSelectOptions(){return this.columnOptions.filter((e=>e.isFilter&&!e.preventFiltering))},advGroupOptions(){return this.groupOptions.map((e=>({label:this.t(e.tooltipKey),value:e.value})))}},methods:{handleColsVisibilyAndFiltering(e){const t=e;return this.columnOptions.forEach((e=>{if(e.isTableOption){const n=t.findIndex((t=>t.name===e.name));-1!==n?(t[n].isColVisible=e.isColVisible,t[n].isFilter=e.isFilter):t.push(e)}})),t},setColsOptions(){let e=[];const t=[],n=[],r=this.headers.slice().filter((e=>!e.maxPageSize||e.maxPageSize&&e.maxPageSize>=this.perPage));return r.forEach((e=>{const t=e.name,r=e.labelKey?this.t(`${e.labelKey}`):e.label,i=!(Object.keys(e).includes("search")&&!e.search);let a=e.sort;const o=e.valueProp||e.value;let s=null,l=!0;if(e.sort&&o?("string"===typeof e.sort&&(a=e.sort.includes(":")?[e.sort.split(":")[0]]:[e.sort]),s=a.includes(o)?JSON.stringify([o]):JSON.stringify(a.concat([o]))):s=o?JSON.stringify([o]):null,this.columnOptions?.length){const e=this.columnOptions.find((e=>e.name===t&&e.label===r));e&&(l=e.isColVisible)}n.push({name:t,label:r,value:s,isFilter:i,isTableOption:!0,isColVisible:l})})),this.rows.length&&this.rows.forEach((e=>{e.metadata?.labels&&Object.keys(e.metadata?.labels).length&&Object.keys(e.metadata?.labels).forEach((e=>{const n={name:e,label:e,value:`metadata.labels.${e}`,isFilter:!0,isTableOption:!0,isColVisible:!1,isLabel:!0,preventFiltering:this.advFilterPreventFilteringLabels,preventColToggle:this.advFilterHideLabelsAsCols};if(this.columnOptions?.length){const t=this.columnOptions.find((t=>t.name===e&&t.label===e));t&&(n.isColVisible=t.isColVisible)}t.filter((t=>t.label===e)).length||t.push(n)}))})),e=n.concat(t),e.length&&e.unshift({name:Ye,label:Ye,value:We,isFilter:!0,isTableOption:!1}),e},addAdvancedFilter(){this.advFilterSelectedProp&&this.advFilterSearchTerm&&(this.advancedFilteringValues.push({prop:this.advFilterSelectedProp,value:this.advFilterSearchTerm,label:this.advFilterSelectedLabel}),this.eventualSearchQuery=this.advancedFilteringValues,this.advancedFilteringVisibility=!1,this.advFilterSelectedProp=dt,this.advFilterSelectedLabel=Ye,this.advFilterSearchTerm=null)},clearAllAdvancedFilters(){this.advancedFilteringValues=[],this.eventualSearchQuery=this.advancedFilteringValues,this.advancedFilteringVisibility=!1,this.advFilterSelectedProp=dt,this.advFilterSelectedLabel=Ye,this.advFilterSearchTerm=null},clearAdvancedFilter(e){this.advancedFilteringValues.splice(e,1),this.eventualSearchQuery=this.advancedFilteringValues},onClickOutside(e){const t=this.$refs["advanced-filter-group"];t&&!t.contains(e.target)&&(this.advancedFilteringVisibility=!1)},updateColsOptions(){this.columnOptions=this.setColsOptions()},changeColVisibility(e){const t=this.columnOptions.findIndex((t=>t.label===e.label));-1!==t&&(this.columnOptions[t].isColVisible=e.value)}}};const pt={};var ft=n(56601);n(4364);Object.assign;const mt=()=>{},gt=Array.isArray;function vt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function bt(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!yt(e[n],t[n]))return!1;return!0}function yt(e,t){return gt(e)?wt(e,t):gt(t)?wt(t,e):e===t}function wt(e,t){return gt(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var Et,_t;(function(e){e["pop"]="pop",e["push"]="push"})(Et||(Et={})),function(e){e["back"]="back",e["forward"]="forward",e["unknown"]=""}(_t||(_t={}));new Map;Symbol("");var St;(function(e){e[e["aborted"]=4]="aborted",e[e["cancelled"]=8]="cancelled",e[e["duplicated"]=16]="duplicated"})(St||(St={}));Symbol(""),Symbol("");const kt=Symbol(""),xt=Symbol("");Symbol("");function At(e){const t=(0,r.inject)(kt),n=(0,r.inject)(xt);const i=(0,r.computed)((()=>{const n=(0,r.unref)(e.to);return t.resolve(n)})),a=(0,r.computed)((()=>{const{matched:e}=i.value,{length:t}=e,r=e[t-1],a=n.matched;if(!r||!a.length)return-1;const o=a.findIndex(vt.bind(null,r));if(o>-1)return o;const s=Rt(e[t-2]);return t>1&&Rt(r)===s&&a[a.length-1].path!==s?a.findIndex(vt.bind(null,e[t-2])):o})),o=(0,r.computed)((()=>a.value>-1&&Tt(n.params,i.value.params))),s=(0,r.computed)((()=>a.value>-1&&a.value===n.matched.length-1&&bt(n.params,i.value.params)));function l(n={}){if(Ct(n)){const n=t[(0,r.unref)(e.replace)?"replace":"push"]((0,r.unref)(e.to)).catch(mt);return e.viewTransition&&"undefined"!==typeof document&&"startViewTransition"in document&&document.startViewTransition((()=>n)),n}return Promise.resolve()}return{route:i,href:(0,r.computed)((()=>i.value.href)),isActive:o,isExactActive:s,navigate:l}}function Nt(e){return 1===e.length?e[0]:e}Boolean,Boolean;function Ct(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Tt(e,t){for(const n in t){const r=t[n],i=e[n];if("string"===typeof r){if(r!==i)return!1}else if(!gt(i)||i.length!==r.length||r.some(((e,t)=>e!==i[t])))return!1}return!0}function Rt(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ot=(e,t,n)=>null!=e?e:null!=t?t:n;function It(e){return(0,r.inject)(xt)}const Lt=(e,t,n={})=>{const{ignore:i=[]}=n;let a=!0;const o=e=>i.some((t=>{if("string"===typeof t)return Array.from(window.document.querySelectorAll(t)).some((t=>t===e.target||e.composedPath().includes(t)));{const n=t;return n&&(e.target===n||e.composedPath().includes(n))}})),s=n=>{const r=e.value;r&&r!==n.target&&!n.composedPath().includes(r)&&(0===n.detail&&(a=!o(n)),a?"function"===typeof t&&t():a=!0)},l=t=>{const n=e.value;a=!o(t)&&!(!n||t.composedPath().includes(n))};(0,r.onMounted)((()=>{window.addEventListener("click",s),window.addEventListener("pointerdown",l)})),(0,r.onBeforeUnmount)((()=>{window.removeEventListener("click",s),window.removeEventListener("pointerDown",l)}))},Dt=()=>{const e=(0,r.ref)([]),t=(0,r.ref)(null),n=(0,r.ref)(null),i=r=>{t.value=r,t.value?.firstElementChild instanceof HTMLElement&&(a(),e.value[0]instanceof HTMLElement&&(n.value=e.value[0]))},a=()=>{e.value=[];const n=t.value?.querySelectorAll("[dropdown-menu-item]");n?.forEach((t=>{e.value.push(t)}))};return{dropdownItems:e,firstDropdownItem:n,dropdownContainer:t,registerDropdownCollection:i}},Pt=((0,r.defineEmits)(["update:open"]),e=>{const{dropdownItems:t,firstDropdownItem:n,dropdownContainer:i,registerDropdownCollection:a}=Dt(),o=(0,r.ref)(!1),s=t=>{t||(d.value=!1),o.value=t,e("update:open",t)},l=(0,r.ref)(null),c=e=>{l.value=e},u=()=>{s(!1),l?.value?.focus()},d=(0,r.ref)(!1),h=()=>{d.value=!0},p=()=>{(0,r.nextTick)((()=>{d.value?(n.value?.focus(),d.value=!1):i.value?.focus()}))},f=()=>{(0,r.provide)("dropdownContext",{showMenu:s,registerTrigger:c,isMenuOpen:o,dropdownItems:t,close:()=>u(),focusFirstElement:()=>{p()},handleKeydown:h})};return{isMenuOpen:o,showMenu:s,returnFocus:u,setFocus:p,provideDropdownContext:f,registerDropdownCollection:a,handleKeydown:h}}),Mt=["aria-label"];var Bt=(0,r.defineComponent)({__name:"RcDropdown",props:{ariaLabel:{}},emits:["update:open"],setup(e,{emit:t}){const n=t,{isMenuOpen:i,showMenu:a,returnFocus:o,setFocus:s,provideDropdownContext:l,registerDropdownCollection:c,handleKeydown:u}=Pt(n);l();const d=(0,r.useTemplateRef)("popperContainer"),h=(0,r.useTemplateRef)("dropdownTarget");Lt(h,(()=>a(!1)));const p=()=>{c(h.value),s()};return(e,t)=>{const n=(0,r.resolveComponent)("v-dropdown");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(n,{"no-auto-focus":"",triggers:[],shown:(0,r.unref)(i),"auto-hide":!1,container:(0,r.unref)(d),placement:"bottom-end",onApplyShow:p},{popper:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",{ref_key:"dropdownTarget",ref:h,class:"dropdownTarget",tabindex:"-1",role:"menu","aria-orientation":"vertical","dropdown-menu-collection":"","aria-label":e.ariaLabel||"Dropdown Menu",onKeydown:[t[0]||(t[0]=(...e)=>(0,r.unref)(u)&&(0,r.unref)(u)(...e)),t[1]||(t[1]=(0,r.withKeys)((e=>(0,r.unref)(s)()),["down"]))]},[(0,r.renderSlot)(e.$slots,"dropdownCollection")],40,Mt)])),default:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"default")])),_:3},8,["shown","container"]),(0,r.createElementVNode)("div",{ref_key:"popperContainer",ref:d,class:"popperContainer",onKeydown:[t[2]||(t[2]=(0,r.withKeys)((e=>(0,r.unref)(a)(!1)),["tab"])),t[3]||(t[3]=(0,r.withKeys)(((...e)=>(0,r.unref)(o)&&(0,r.unref)(o)(...e)),["escape"]))]},null,544)],64)}}});n(95583);const Ft=(0,ue.A)(Bt,[["__scopeId","data-v-6310c556"]]);var $t=Ft;const Ut={handleKeydown:()=>null,showMenu:e=>null,registerTrigger:e=>null,dropdownItems:(0,r.ref)([]),focusFirstElement:()=>null,isMenuOpen:(0,r.ref)(!1),close:()=>null},jt=["disabled","aria-disabled","onKeydown"];var Vt=(0,r.defineComponent)({__name:"RcDropdownItem",props:{disabled:Boolean},emits:["click"],setup(e,{emit:t}){const n=e,i=t,{close:a,dropdownItems:o}=(0,r.inject)("dropdownContext")||Ut,s=e=>{const t=document.activeElement,n=o.value.indexOf(t||new HTMLElement);if(n<0)return;const r="ArrowDown"===e.key,i=l(r,n,o.value);o.value[i]instanceof HTMLElement&&o.value[i].focus()},l=(e,t,n)=>{const r=e?t+1:t-1;return r>n.length-1?0:r<0?n.length-1:r},c=e=>{n.disabled||(i("click",e),a())},u=e=>{e?.target instanceof HTMLElement&&e?.target?.click()};return(t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:"dropdownMenuItem","dropdown-menu-item":"",tabindex:"-1",role:"menuitem",disabled:e.disabled||null,"aria-disabled":e.disabled||!1,onClick:(0,r.withModifiers)(c,["stop"]),onKeydown:[(0,r.withKeys)(u,["enter","space"]),(0,r.withKeys)((0,r.withModifiers)(s,["stop"]),["up","down"])]},[(0,r.renderSlot)(t.$slots,"before"),(0,r.renderSlot)(t.$slots,"default")],40,jt))}});n(61462);const Kt=(0,ue.A)(Vt,[["__scopeId","data-v-e656ee2e"]]);var Ht=Kt;const Gt={role:"separator","aria-orientation":"horizontal"};function zt(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("hr",Gt)}const qt={},Xt=(0,ue.A)(qt,[["render",zt]]);var Wt=Xt,Yt=(0,r.defineComponent)({__name:"RcButton",props:{primary:{type:Boolean},secondary:{type:Boolean},tertiary:{type:Boolean},link:{type:Boolean},ghost:{type:Boolean},small:{type:Boolean}},setup(e,{expose:t}){const n=[{role:"primary",className:"role-primary"},{role:"secondary",className:"role-secondary"},{role:"tertiary",className:"role-tertiary"},{role:"link",className:"role-link"},{role:"ghost",className:"role-ghost"}],i=[{size:"small",className:"btn-sm"}],a=e,o=(0,r.computed)((()=>{const e=n.find((({role:e})=>a[e])),t=i.some((({size:e})=>a[e]));return{btn:!0,[e?.className||"role-primary"]:!0,"btn-sm":t}})),s=(0,r.ref)(null),l=()=>{s?.value?.focus()};return t({focus:l}),(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("button",{ref_key:"RcFocusTarget",ref:s,role:"button",class:(0,r.normalizeClass)({...o.value,...e.$attrs.class||{}})},[(0,r.renderSlot)(e.$slots,"before"),(0,r.renderSlot)(e.$slots,"default"),(0,r.renderSlot)(e.$slots,"after")],2))}});n(1302);const Qt=(0,ue.A)(Yt,[["__scopeId","data-v-1a34c69c"]]);var Jt=Qt,Zt=(0,r.defineComponent)({__name:"RcDropdownTrigger",setup(e,{expose:t}){const{showMenu:n,registerTrigger:i,isMenuOpen:a,handleKeydown:o}=(0,r.inject)("dropdownContext")||Ut,s=(0,r.useTemplateRef)("dropdownTrigger");(0,r.onMounted)((()=>{i(s.value)}));const l=()=>{s?.value?.focus()};return t({focus:l}),(e,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Jt),{ref_key:"dropdownTrigger",ref:s,role:"button","aria-haspopup":"menu","aria-expanded":(0,r.unref)(a),onKeydown:(0,r.withKeys)((0,r.unref)(o),["enter","space"]),onClick:t[0]||(t[0]=e=>(0,r.unref)(n)(!0))},{default:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"default")])),_:3},8,["aria-expanded","onKeydown"]))}});const en=Zt;var tn=en,nn=n(40612),rn=(0,r.defineComponent)({__name:"RcDropdownMenu",props:{options:{},buttonRole:{default:"primary"},buttonSize:{default:""},buttonAriaLabel:{},dropdownAriaLabel:{},dataTestid:{}},emits:["update:open","select"],setup(e,{emit:t}){const n=t,i=e=>void 0!==e.length?e.length:Object.keys(e).length>0;return(e,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)($t),{"aria-label":e.dropdownAriaLabel,"onUpdate:open":t[0]||(t[0]=e=>n("update:open",e))},{dropdownCollection:(0,r.withCtx)((()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.options,(e=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:e.label},[e.divider?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Wt),{key:1})):((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Ht),{key:0,onClick:t=>n("select",t,e)},{before:(0,r.withCtx)((()=>[e.icon||e.svg?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(nn.A),{key:0,icon:e.icon,src:e.svg,class:"icon",color:"header"},null,8,["icon","src"])):(0,r.createCommentVNode)("",!0)])),default:(0,r.withCtx)((()=>[(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.label),1)])),_:2},1032,["onClick"]))],64)))),128)),i(e.options)?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Ht),{key:0,disabled:""},{default:(0,r.withCtx)((()=>t[2]||(t[2]=[(0,r.createTextVNode)(" No actions available ")]))),_:1}))])),default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(tn),(0,r.normalizeProps)({[e.buttonRole||""]:!0,[e.buttonSize||""]:!0,"data-testid":e.dataTestid,"aria-label":e.buttonAriaLabel}),{default:(0,r.withCtx)((()=>t[1]||(t[1]=[(0,r.createElementVNode)("i",{class:"icon icon-actions"},null,-1)]))),_:1},16,["data-testid","aria-label"])])),_:1},8,["aria-label"]))}});const an=rn;var on=an,sn=(0,r.defineComponent)({__name:"ActionMenuShell",props:{buttonRole:{},buttonSize:{},buttonAriaLabel:{},dropdownAriaLabel:{},dataTestid:{},resource:{},customActions:{}},setup(e,{emit:t}){const n=(0,Y.Pj)(),i=e,a=e=>{e&&n.dispatch("action-menu/setResource",i.resource)},o=t,s=It(),l=(e,t,r)=>{if(!e.disabled)if(e.invoke){const r=e.invoke;if(r&&e.enabled){const i=n.getters["action-menu/resources"],a={event:t,action:e,isAlt:(0,De.nN)(t)};1===i.length&&r.apply(this,[a,i])}}else if(i.customActions)o(e.action,{action:e,event:t,...r,route:s});else{const i={alt:(0,De.nN)(t)};n.dispatch("action-menu/execute",{action:e,args:r,opts:i})}},c=(0,r.computed)((()=>n.getters["action-menu/optionsArray"])),u=()=>i.customActions&&i.customActions.length>0?i.customActions:c.value;return(e,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(on),{"button-role":e.buttonRole||"link","button-size":e.buttonSize||"small","button-aria-label":e.buttonAriaLabel,"dropdown-aria-label":e.dropdownAriaLabel,options:u(),"data-testid":e.dataTestid,"onUpdate:open":a,onSelect:t[0]||(t[0]=(e,t)=>l(t,e))},null,8,["button-role","button-size","button-aria-label","dropdown-aria-label","options","data-testid"]))}});const ln=sn;var cn=ln,un=n(4364),dn={name:"SortableTable",emits:["clickedActionButton","pagination-changed","group-value-change","selection","rowClick","enter"],components:{THead:Xe,Checkbox:ie.S,AsyncButton:ae.A,ActionDropdown:he,LabeledSelect:Ge.A,ButtonMultiAction:ft.A,ActionMenu:cn},mixins:[Je,at,st,lt,$e,ut,ht],props:{headers:{type:Array,required:!0},rows:{type:Array,required:!0},keyField:{type:String,default:"_key"},loading:{type:Boolean,required:!1},altLoading:{type:Boolean,required:!1},groupBy:{type:String,default:null},groupRef:{type:String,default:null},groupSort:{type:Array,default:null},defaultSortBy:{type:String,default:null},tableActions:{type:Boolean,default:!0},rowActions:{type:Boolean,default:!0},mangleActionResources:{type:Function,default:null},rowActionsWidth:{type:Number,default:40},search:{type:Boolean,default:!0},extraSearchFields:{type:Array,default:null},subRows:{type:Boolean,default:!1},subRowsDescription:{type:Boolean,default:!0},subExpandable:{type:Boolean,default:!1},subExpandColumn:{type:Boolean,default:!1},subSearch:{type:String,default:null},subFields:{type:Array,default:null},topDivider:{type:Boolean,default:!0},bodyDividers:{type:Boolean,default:!1},overflowX:{type:Boolean,default:!1},overflowY:{type:Boolean,default:!1},paging:{type:Boolean,default:!1},pagingLabel:{type:String,default:"sortableTable.paging.generic"},pagingParams:{type:Object,default:null},rowsPerPage:{type:Number,default:null},noRowsKey:{type:String,default:"sortableTable.noRows"},showNoRows:{type:Boolean,default:!0},noDataKey:{type:String,default:"sortableTable.noData"},showHeaders:{type:Boolean,default:!0},sortGenerationFn:{type:Function,default:null},sortGeneration:{type:String,default:null},mandatorySort:{type:Array,default:null},getCustomDetailLink:{type:Function,default:null},componentTestid:{type:String,default:"sortable-table"},useQueryParamsForSimpleFiltering:{type:Boolean,default:!1},forceUpdateLiveAndDelayed:{type:Number,default:0},externalPaginationEnabled:{type:Boolean,default:!1},externalPaginationResult:{type:Object,default:null},manualRefreshButtonSize:{type:String,default:""}},data(){let e="",t="";!this.hasAdvancedFiltering&&this.useQueryParamsForSimpleFiltering&&this.$route.query?.q&&(e=this.$route.query?.q,t=this.$route.query?.q);const n=this.loading||!1;return{refreshButtonPhase:n?ae.R.WAITING:ae.R.ACTION,expanded:{},searchQuery:e,eventualSearchQuery:t,subMatches:null,actionOfInterest:null,loadingDelay:!1,debouncedPaginationChanged:null,isLoading:n}},mounted(){this._loadingDelayTimer=setTimeout((()=>{this.loadingDelay=!0}),200);const e=document.querySelector("main");this._onScroll=this.onScroll.bind(this),e?.addEventListener("scroll",this._onScroll),this.debouncedPaginationChanged()},beforeUnmount(){clearTimeout(this._scrollTimer),clearTimeout(this._loadingDelayTimer),clearTimeout(this._altLoadingDelayTimer),clearTimeout(this._liveColumnsTimer),clearTimeout(this._delayedColumnsTimer),clearTimeout(this.manualRefreshTimer);const e=document.querySelector("main");e?.removeEventListener("scroll",this._onScroll)},watch:{eventualSearchQuery:ge()((function(e){if(this.searchQuery=e,!this.hasAdvancedFiltering&&this.useQueryParamsForSimpleFiltering){const t={name:this.$route.name,params:{...this.$route.params},query:{...this.$route.query,q:e}};!e&&this.$route.query?.q&&(t.query={}),this.$router.replace(t)}}),200),descending(e,t){this.watcherUpdateLiveAndDelayed(e,t)},searchQuery(e,t){this.watcherUpdateLiveAndDelayed(e,t)},sortFields(e,t){this.watcherUpdateLiveAndDelayed(e,t)},groupBy(e,t){this.watcherUpdateLiveAndDelayed(e,t)},namespaces(e,t){this.watcherUpdateLiveAndDelayed(e,t)},page(e,t){this.watcherUpdateLiveAndDelayed(e,t)},forceUpdateLiveAndDelayed(e,t){this.watcherUpdateLiveAndDelayed(e,t)},initalLoad:{handler(e){e&&(this._didinit=!0,this.$nextTick((()=>this.updateLiveAndDelayed())))},immediate:!0},manualRefreshLoadingFinished:{handler(e,t){this.refreshButtonPhase=e?ae.R.ACTION:ae.R.WAITING,e&&e!==t&&this.$nextTick((()=>this.updateLiveAndDelayed()))},immediate:!0},loading:{handler(e,t){this.refreshButtonPhase=e?ae.R.WAITING:ae.R.ACTION,this.altLoading?e?this._altLoadingDelayTimer=setTimeout((()=>{this.isLoading=!0}),200):(clearTimeout(this._altLoadingDelayTimer),this.isLoading=!1):this.isLoading=e},immediate:!0}},setup(e,{emit:t}){const n=(0,r.useTemplateRef)("table"),i=e=>{"Enter"!==e.key||e.target?.classList?.contains("checkbox-custom")||t("enter",e)};(0,r.onMounted)((()=>{n.value.addEventListener("keyup",i)})),(0,r.onBeforeUnmount)((()=>{n.value.removeEventListener("keyup",i)}))},created(){this.debouncedRefreshTableData=ge()(this.refreshTableData,500),this.debouncedPaginationChanged=ge()(this.paginationChanged,50)},computed:{...(0,Y.L8)({isTooManyItemsToAutoUpdate:"resource-fetch/isTooManyItemsToAutoUpdate"}),...(0,Y.L8)({isManualRefreshLoading:"resource-fetch/manualRefreshIsLoading"}),namespaces(){return this.$store.getters["activeNamespaceCache"]},initalLoad(){return!(this.isLoading||this._didinit||!this.rows?.length)},manualRefreshLoadingFinished(){const e=!(this.isLoading||!this._didinit||!this.rows?.length||this.isManualRefreshLoading);return e},fullColspan(){let e=0;for(let t=0;t<this.columns.length;t++)this.columns[t].hide||e++;return this.tableActions&&e++,this.subExpandColumn&&e++,this.rowActions&&e++,e},noResults(){return!!this.searchQuery&&0===this.pagedRows.length},noRows(){return!this.noResults&&0===(this.rows||[]).length},showHeaderRow(){return this.search||this.tableActions||this.$slots["header-left"]||this.$slots["header-middle"]||this.$slots["header-right"]||this.isTooManyItemsToAutoUpdate},columns(){const e=this.headers.slice().filter((e=>!e.maxPageSize||e.maxPageSize&&e.maxPageSize>=this.perPage));if(this.groupBy){const t=e.find((e=>e.name===this.groupBy));t&&(0,re.Gj)(e,t)}const t=e.find((e=>!e.width));if(!t){const t=e.find((e=>e.canBeVariable));if(t){const n=(0,ne.o8)(t);delete n.width,e.splice(e.indexOf(t),1,n)}}if(this.hasAdvancedFiltering){const t=this.handleColsVisibilyAndFiltering(e);return t}return e},dt(){const e={check:"Select: ",actions:"Actions: "};return this.columns.forEach((t=>{e[t.name]=`${t.label||t.name}:`})),e},classObject(){return{"top-divider":this.topDivider,"body-dividers":this.bodyDividers,"overflow-y":this.overflowY,"overflow-x":this.overflowX,"alt-loading":this.altLoading&&this.isLoading}},hasLiveColumns(){const e=this.columns.find((e=>e.formatter?.startsWith("Live")||e.liveUpdates));return!!e},hasDelayedColumns(){const e=this.columns.find((e=>e.delayLoading));return!!e},columnFormmatterIDs(){const e={};return this.columns.forEach((t=>{t.formatter&&(e[t.formatter]=(0,te._k)(t.formatter))})),e},displayRows(){const e=[],t=this.columnFormmatterIDs;return this.groupedRows.forEach((n=>{const i={grp:n,key:n.key,ref:n.ref,rows:[]};e.push(i),n.rows.forEach((e=>{const n={row:e,key:this.get(e,this.keyField),showSubRow:this.showSubRow(e,this.keyField),canRunBulkActionOfInterest:this.canRunBulkActionOfInterest(e),columns:[]};i.rows.push(n),this.columns.forEach((i=>{const a=i.delayLoading?void 0:this.valueFor(e,i,i.isLabel);let o,s=a,l=!1;if(Array.isArray(a)&&(s=a.join(", ")),i.formatter)if(pt[i.formatter])o=pt[i.formatter],l=!0;else{const e=this.$plugin?.getDynamic("formatters",i.formatter);e&&(o=(0,r.defineAsyncComponent)(e),l=!0)}n.columns.push({col:i,value:a,formatted:s,component:o,needRef:l,delayed:i.delayLoading,live:i.formatter?.startsWith("Live")||i.liveUpdates,label:this.labelFor(i),dasherize:t[i.formatter]||""})}))}))})),e}},methods:{refreshTableData(){this.$store.dispatch("resource-fetch/doManualRefresh")},get:ne.Jt,dasherize:te._k,onScroll(){(this.hasLiveColumns||this.hasDelayedColumns)&&(clearTimeout(this._liveColumnsTimer),clearTimeout(this._scrollTimer),clearTimeout(this._delayedColumnsTimer),this._scrollTimer=setTimeout((()=>{this.updateLiveColumns(),this.updateDelayedColumns()}),300))},watcherUpdateLiveAndDelayed(e,t){e!==t&&this.$nextTick((()=>this.updateLiveAndDelayed()))},updateLiveAndDelayed(){this.hasLiveColumns&&this.updateLiveColumns(),this.hasDelayedColumns&&this.updateDelayedColumns()},updateDelayedColumns(){if(clearTimeout(this._delayedColumnsTimer),!this.$refs.column||0===this.pagedRows.length)return;const e=this.$refs.column.filter((e=>e.startDelayedLoading&&!e.__delayedLoading)),t=(window.innerHeight||document.documentElement.clientHeight)+100;let n=0;for(let r=0;r<e.length;r++){const i=e[r],a=i.$el.getBoundingClientRect().y;if(a>=0&&a<=t&&(i.startDelayedLoading(!0),i.__delayedLoading=!0,n++,4===n))return void(this._delayedColumnsTimer=setTimeout(this.updateDelayedColumns,100))}},updateLiveColumns(){if(clearTimeout(this._liveColumnsTimer),!this.$refs.column||!this.hasLiveColumns||0===this.pagedRows.length)return;const e=window.innerHeight||document.documentElement.clientHeight,t=this.$refs.column.filter((e=>!!e.liveUpdate)),n=J()();let r=Number.MAX_SAFE_INTEGER;for(let i=0;i<t.length;i++){const a=t[i],o=a.$el.getBoundingClientRect().y;if(o>=0&&o<=e){const e=a.liveUpdate(n);e<r&&(r=e)}}r<1&&(r=1),this._liveColumnsTimer=setTimeout((()=>this.updateLiveColumns()),1e3*r)},labelFor(e){return e.labelKey?this.t(e.labelKey,void 0,!0):e.label?e.label:(0,te.TF)(e.name)},valueFor(e,t,n){if("function"===typeof t.value)return t.value(e);if(n)return e.metadata?.labels&&e.metadata?.labels[t.label]?e.metadata?.labels[t.label]:"";const r=t.value||t.name;if(!r)return un.error("No path has been defined for this column, unable to get value of cell",t),"";const i=(0,ne.Jt)(e,r);return null===i||void 0===i?"":i},isExpanded(e){const t=e[this.keyField];return!!this.expanded[t]},toggleExpand(e){const t=e[this.keyField],n=!this.expanded[t];return this.expanded[t]=n,this.expanded={...this.expanded},n},setBulkActionOfInterest(e){this.actionOfInterest=e},canRunBulkActionOfInterest(e){if(!this.actionOfInterest||ee()(e?.availableActions))return!1;const t=e.availableActions?.find((e=>e.action===this.actionOfInterest.action));return t?.enabled},focusSearch(){this.$refs.searchQuery&&(this.$refs.searchQuery.focus(),this.$refs.searchQuery.select())},nearestCheckbox(){return document.activeElement.closest("tr.main-row")?.querySelector(".checkbox-custom")},focusAdjacent(e=!0){const t=Array.from(this.$el.querySelectorAll(".checkbox-custom")),n=this.nearestCheckbox();let r=-1;return r=n?t.indexOf(n)+(e?1:-1):e?1:t.length-1,r<1?(r=1,null):r>=t.length?(r=t.length-1,null):t[r]?(t[r].focus(),t[r]):void 0},focusNext:fe()((function(e,t=!1){const n=this.focusAdjacent(!0),r=Pe(n,"tr");r?.classList.contains("row-selected")||this.keySelectRow(r,t)}),50),focusPrevious:fe()((function(e,t=!1){const n=this.focusAdjacent(!1),r=Pe(n,"tr");r?.classList.contains("row-selected")||this.keySelectRow(r,t)}),50),showSubRow(e,t){const n=this.subRows&&(!this.subExpandable||this.expanded[(0,ne.Jt)(e,t)]),r=this.subRowsDescription&&e.stateDescription;return n||r},handleActionButtonClick(e,t){this.$emit("clickedActionButton",{event:t,targetElement:this.$refs[`actionButton${e}`][0]})},paginationChanged(){this.externalPaginationEnabled&&this.$emit("pagination-changed",{page:this.page,perPage:this.perPage,filter:{searchFields:this.searchFields,searchQuery:this.searchQuery},sort:this.sortFields,descending:this.descending})}}};n(72060),n(48254);const hn=(0,ue.A)(dn,[["render",W],["__scopeId","data-v-5c61b072"]]);var pn=hn},22896:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(65359);function i(...e){document.title=e.filter((e=>e)).join(" - ")}var a=n(49845),o=n(4364),s={props:{breadcrumb:{type:[String,Boolean],default:"full",validator(e){return["full","vendor-only"].includes(e)||!1===e}},includeVendor:{type:Boolean,default:!0},showChild:{type:Boolean,default:!0}},computed:{...(0,r.L8)(["isExplorer","currentCluster","currentProduct"])},methods:{computeTitle(){if(!this.$slots.default||"string"!==typeof this.$slots.default()[0].children)return o.error("The <TabTitle> component only supports text as the child."),[];const e=[this.$slots.default()[0].children.trim()];if("full"===this.breadcrumb)if(this.currentCluster&&(this.isExplorer||this.currentCluster.isHarvester))e.unshift(this.currentCluster.nameDisplay);else if(this.currentProduct?.name){const t=this.$store.getters["i18n/withFallback"](`product.${this.currentProduct.name}`,null,null);t&&e.unshift(t)}return this.includeVendor&&["full","vendor-only"].includes(this.breadcrumb)&&e.unshift((0,a.f7)()),e},updatePageTitle(){i(...this.computeTitle())}},created(){this.updatePageTitle()},render(){return this.updatePageTitle(),this.showChild?this.$slots.default():null}};const l=s;var c=l},49584:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var r=n(9274);const i=["id","aria-hidden"],a={key:0,class:"tab-header"},o={key:0,class:"icon icon-info icon-lg"};function s(e,t,n,s,l,c){const u=(0,r.resolveDirective)("clean-tooltip");return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("section",{id:n.name,"aria-hidden":!l.active,role:"tabpanel"},[c.shouldShowHeader?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[(0,r.createElementVNode)("h2",null,[(0,r.createTextVNode)((0,r.toDisplayString)(c.labelDisplay)+" ",1),n.tooltip?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",o,null,512)),[[u,n.tooltip]]):(0,r.createCommentVNode)("",!0)]),(0,r.renderSlot)(e.$slots,"tab-header-right",{},void 0,!0)])):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"default",(0,r.normalizeProps)((0,r.guardReactiveProps)({active:l.active})),void 0,!0)],8,i)),[[r.vShow,l.active]])}var l={inject:["addTab","removeTab","sideTabs"],emits:["active"],props:{label:{default:null,type:String},labelKey:{default:null,type:String},name:{required:!0,type:String},tooltip:{default:null,type:[String,Object]},weight:{default:0,required:!1,type:Number},showHeader:{type:Boolean,default:null},displayAlertIcon:{type:Boolean,default:null},error:{type:Boolean,default:!1},badge:{default:0,required:!1,type:Number}},data(){return{active:null}},computed:{labelDisplay(){return this.labelKey?this.$store.getters["i18n/t"](this.labelKey):this.label?this.label:this.name},shouldShowHeader(){return null!==this.showHeader?this.showHeader:this.sideTabs||!1}},watch:{active(e){e&&this.$emit("active")}},mounted(){this.addTab(this)},beforeUnmount(){this.removeTab(this)}},c=(n(24e3),n(47433));const u=(0,c.A)(l,[["render",s],["__scopeId","data-v-6f6df00a"]]);var d=u},10006:function(e,t,n){"use strict";n.d(t,{A:function(){return A}});var r=n(9274);const i=["id","data-testid"],a=["data-testid","aria-controls","aria-selected","aria-label","onClick","onKeyup"],o={key:0,class:"tab-badge"},s={key:1,class:"conditions-alert-icon icon-error"},l={key:0,class:"tab disabled"},c={key:1,class:"tab-list-footer"},u=["disabled"];function d(e,t,n,d,h,p){const f=(0,r.resolveComponent)("Tab"),m=(0,r.resolveDirective)("clean-tooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)({"side-tabs":!!n.sideTabs,"tabs-only":n.tabsOnly}),"data-testid":"tabbed"},[p.hideTabs?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("ul",{key:0,ref:"tablist",role:"tablist",class:(0,r.normalizeClass)(["tabs",{clearfix:!n.sideTabs,vertical:n.sideTabs,horizontal:!n.sideTabs}]),"data-testid":"tabbed-block",tabindex:"0",onKeydown:[t[3]||(t[3]=(0,r.withKeys)((0,r.withModifiers)((e=>p.selectNext(1)),["prevent"]),["right"])),t[4]||(t[4]=(0,r.withKeys)((0,r.withModifiers)((e=>p.selectNext(-1)),["prevent"]),["left"])),t[5]||(t[5]=(0,r.withKeys)((0,r.withModifiers)((e=>p.selectNext(1)),["prevent"]),["down"])),t[6]||(t[6]=(0,r.withKeys)((0,r.withModifiers)((e=>p.selectNext(-1)),["prevent"]),["up"]))]},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(p.sortedTabs,(t=>((0,r.openBlock)(),(0,r.createElementBlock)("li",{id:t.name,key:t.name,"data-testid":t.name,class:(0,r.normalizeClass)({tab:!0,active:t.active,disabled:t.disabled,error:t.error}),role:"presentation"},[(0,r.createElementVNode)("a",{"data-testid":`btn-${t.name}`,"aria-controls":"#"+t.name,"aria-selected":t.active,"aria-label":t.labelDisplay||"",role:"tab",onClick:(0,r.withModifiers)((e=>p.select(t.name,e)),["prevent"]),onKeyup:(0,r.withKeys)((e=>p.select(t.name,e)),["enter","space"])},[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(t.labelDisplay),1),t.badge?((0,r.openBlock)(),(0,r.createElementBlock)("span",o,(0,r.toDisplayString)(t.badge),1)):(0,r.createCommentVNode)("",!0),p.hasIcon(t)?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",s,null,512)),[[m,e.t("validation.tab")]]):(0,r.createCommentVNode)("",!0)],40,a)],10,i)))),128)),n.sideTabs&&!p.sortedTabs.length?((0,r.openBlock)(),(0,r.createElementBlock)("li",l,[(0,r.createElementVNode)("a",{href:"#",onClick:t[0]||(t[0]=(0,r.withModifiers)((()=>{}),["prevent"]))},"(None)")])):(0,r.createCommentVNode)("",!0),n.sideTabs&&n.showTabsAddRemove?((0,r.openBlock)(),(0,r.createElementBlock)("ul",c,[(0,r.createElementVNode)("li",null,[(0,r.createElementVNode)("button",{type:"button",class:"btn bg-transparent","data-testid":"tab-list-add",onClick:t[1]||(t[1]=(...e)=>p.tabAddClicked&&p.tabAddClicked(...e))},t[7]||(t[7]=[(0,r.createElementVNode)("i",{class:"icon icon-plus"},null,-1)])),(0,r.createElementVNode)("button",{type:"button",class:"btn bg-transparent",disabled:!p.sortedTabs.length,"data-testid":"tab-list-remove",onClick:t[2]||(t[2]=(...e)=>p.tabRemoveClicked&&p.tabRemoveClicked(...e))},t[8]||(t[8]=[(0,r.createElementVNode)("i",{class:"icon icon-minus"},null,-1)]),8,u)])])):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"tab-row-extras",{},void 0,!0)],34)),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)({"tab-container":!!h.tabs.length||!!n.sideTabs,"no-content":n.noContent,"tab-container--flat":!!n.flat})},[(0,r.renderSlot)(e.$slots,"default",{},void 0,!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(h.extensionTabs,((e,t)=>((0,r.openBlock)(),(0,r.createBlock)(f,{key:`${e.name}${t}`,name:e.name,label:e.label,"label-key":e.labelKey,weight:e.weight,tooltip:e.tooltip,"show-header":e.showHeader,"display-alert-icon":e.displayAlertIcon,error:e.error,badge:e.badge},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.component)))])),_:2},1032,["name","label","label-key","weight","tooltip","show-header","display-alert-icon","error","badge"])))),128))],2)],2)}var h=n(13981),p=n.n(h),f=n(3514),m=n.n(f),g=n(68851),v=n(74302),b=n(92154),y=n.n(b),w=n(31915),E=n(25659),_=n(49584),S={name:"Tabbed",components:{Tab:_.A},emits:["changed","addTab","removeTab"],props:{defaultTab:{type:String,default:null},sideTabs:{type:Boolean,default:!1},hideSingleTab:{type:Boolean,default:!1},showTabsAddRemove:{type:Boolean,default:!1},scrollOnChange:{type:Boolean,default:!1},useHash:{type:Boolean,default:!0},noContent:{type:Boolean,default:!1},flat:{type:Boolean,default:!1},tabsOnly:{type:Boolean,default:!1}},provide(){const e=this.tabs;return{sideTabs:this.sideTabs,addTab(t){const n=(0,g.jq)(e,"name",t.name);n&&(0,g.Gj)(e,n),(0,g.PG)(e,t)},removeTab(t){(0,g.Gj)(e,t)}}},data(){const e=(0,E.A)(this,w.c7.TAB,w.lX.RESOURCE_DETAIL,this.$route,this,this.extensionParams)||[],t=e.map((e=>({...e,active:!1})));return{tabs:[...t],extensionTabs:t,activeTabName:null}},computed:{sortedTabs(){return(0,v.Ul)(this.tabs,["weight:desc","labelDisplay","name"])},hideTabs(){return this.hideSingleTab&&1===this.sortedTabs.length}},watch:{sortedTabs(e){const{defaultTab:t,useHash:n}=this,r=e.find((e=>e.active)),i=n?this.$route.hash:void 0,a=n?i.slice(1):void 0,o=e.find((e=>e.name===a&&!e.active)),s=p()(e)||null;m()(r)?n&&!m()(o)?this.select(o.name):m()(t)||m()(e.find((e=>e.name===t)))?s?.name&&this.select(s.name):this.select(t):n&&r?.name===a&&this.select(r.name)}},mounted(){this.useHash&&window.addEventListener("hashchange",this.hashChange)},unmounted(){this.useHash&&window.removeEventListener("hashchange",this.hashChange)},methods:{hasIcon(e){return e.displayAlertIcon||e.error&&!e.active},hashChange(){if(!this.scrollOnChange){const e=document.getElementsByTagName("main")[0];e&&(e.scrollTop=0)}this.select(this.$route.hash)},find(e){return this.sortedTabs.find((t=>t.name===e))},select(e){const{sortedTabs:t}=this,n=this.find(e),r=`#${e}`;if(n&&!n.disabled){if(this.useHash){const e=this.$router.currentRoute._value,t=e.hash;if(this.useHash&&t!==r){const t={...e};t.hash=r,this.$router.replace(t)}}for(const e of t)e.active=e.name===n.name;this.$emit("changed",{tab:n,selectedName:n.name}),this.activeTabName=n.name}},selectNext(e){const{sortedTabs:t}=this,n=t.findIndex((e=>e.active)),r=a(n,e,t.length),i=t[r].name;function a(e,t,n){const r=e+t;return r>=n?0:r<0?n-1:r}this.select(i),this.$nextTick((()=>{this.$refs.tablist.focus()}))},tabAddClicked(){const e=y()(this.tabs,(e=>e.active));this.$emit("addTab",e)},tabRemoveClicked(){const e=y()(this.tabs,(e=>e.active));this.$emit("removeTab",e)}}},k=(n(36078),n(47433));const x=(0,k.A)(S,[["render",d],["__scopeId","data-v-dfd4c7ac"]]);var A=x},8529:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274);const i={class:"tag"};function a(e,t,n,a,o,s){return(0,r.openBlock)(),(0,r.createElementBlock)("span",i,[(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)])}var o={},s=(n(4901),n(47433));const l=(0,s.A)(o,[["render",a],["__scopeId","data-v-0d281a35"]]);var c=l},89559:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(9274);function i(e,t,n,i,a,o){const s=(0,r.resolveComponent)("Banner");return o.typeDescriptionKey?((0,r.openBlock)(),(0,r.createBlock)(s,{key:0,class:"type-banner mb-20 mt-0",color:"info",closable:!0,"label-key":o.typeDescriptionKey,onClose:o.hideTypeDescription},null,8,["label-key","onClose"])):(0,r.createCommentVNode)("",!0)}var a=n(65359),o=n(9980),s=n(91462),l=n(68851),c=n(35664),u={components:{Banner:o.l},props:{resource:{type:String,required:!0}},computed:{...(0,a.L8)(["currentCluster"]),hideDescriptions:(0,s.AN)(s.xL),typeDescriptionKey(){let e;return e=this.resource===c.W8.CLUSTER_REPO?!this.currentCluster||this.currentCluster.isLocal?'typeDescription."catalog.cattle.io.clusterrepo.local"':'typeDescription."catalog.cattle.io.clusterrepo"':`typeDescription."${this.resource}"`,!this.hideDescriptions.includes(this.resource)&&!this.hideDescriptions.includes("ALL")&&(!!this.$store.getters["i18n/exists"](e)&&e)}},methods:{hideTypeDescription(){const e=this.hideDescriptions.slice();(0,l.PG)(e,this.resource),this.hideDescriptions=e}}},d=n(47433);const h=(0,d.A)(u,[["render",i]]);var p=h},55544:function(e,t,n){"use strict";n.d(t,{j:function(){return x},A:function(){return C}});var r=n(9274);const i={class:"yaml-editor"},a={class:"text-right"},o={key:0,class:"btn-group btn-sm diff-mode"},s=["aria-label"],l=["aria-label"];function c(e,t,n,c,u,d){const h=(0,r.resolveComponent)("CodeMirror"),p=(0,r.resolveComponent)("FileDiff"),f=(0,r.resolveDirective)("trim-whitespace");return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",a,[d.isPreview&&!n.hidePreviewButtons?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",o,[(0,r.createElementVNode)("button",{role:"button","aria-label":e.t("generic.unified"),type:"button",class:(0,r.normalizeClass)(["btn btn-sm bg-default",{active:"split"!==d.diffMode}]),onClick:t[0]||(t[0]=e=>d.diffMode="unified")},(0,r.toDisplayString)(e.t("generic.unified")),11,s),(0,r.createElementVNode)("button",{role:"button","aria-label":e.t("generic.split"),type:"button",class:(0,r.normalizeClass)(["btn btn-sm bg-default",{active:"split"===d.diffMode}]),onClick:t[1]||(t[1]=e=>d.diffMode="split")},(0,r.toDisplayString)(e.t("generic.split")),11,l)])),[[f]]):(0,r.createCommentVNode)("",!0)]),d.showCodeEditor?((0,r.openBlock)(),(0,r.createBlock)(h,{key:0,ref:"cm",class:(0,r.normalizeClass)({fill:!0,scrolling:n.scrolling}),value:u.curValue,options:d.codeMirrorOptions,showKeyMapBox:!0,"data-testid":n.componentTestid+"-code-mirror",mode:n.mode,onOnInput:d.onInput,onOnReady:d.onReady,onOnChanges:d.onChanges,onValidationChanged:t[2]||(t[2]=t=>e.$emit("validationChanged",t))},null,8,["class","value","options","data-testid","mode","onOnInput","onOnReady","onOnChanges"])):((0,r.openBlock)(),(0,r.createBlock)(p,{key:1,class:(0,r.normalizeClass)({fill:!0,scrolling:n.scrolling}),filename:".yaml","side-by-side":"split"===d.diffMode,orig:u.original,neu:u.curValue,"footer-space":80},null,8,["class","side-by-side","orig","neu"]))])}var u=n(20246),d=n.n(u),h=n(91462),p=n(3514),f=n.n(p),m=n(37648),g=n(59843);const v={id:"diffElement",ref:"root",class:"root"};function b(e,t,n,i,a,o){const s=(0,r.resolveComponent)("resize-observer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(s,{onNotify:o.fit},null,8,["onNotify"]),(0,r.createElementVNode)("div",v,null,512)])}var y=n(34312),w=n(46867),E={props:{filename:{type:String,default:"file.txt"},sideBySide:{type:Boolean,default:!1},orig:{type:String,required:!0},neu:{type:String,required:!0},autoResize:{type:Boolean,default:!0},footerSpace:{type:Number,default:0},minHeight:{type:Number,default:200}},mounted(){this.draw()},watch:{sideBySide(){this.draw()}},methods:{draw(){const e=document.getElementById("diffElement"),t=(0,w.createPatch)(this.filename,this.orig,this.neu),n={synchronisedScroll:!0,outputFormat:this.sideBySide?"side-by-side":"line-by-line",drawFileList:!1,matching:"words"},r=new y.Diff2HtmlUI(e,t,n);r.draw(),this.fit()},fit(){if(!this.autoResize)return;const e=this.$refs.root;if(!e)return;const t=e.getBoundingClientRect();if(!t)return;const n=window.innerHeight-t.top-this.footerSpace;e.style.height=`${Math.max(0,n)}px`}}},_=(n(32435),n(45978),n(47433));const S=(0,_.A)(E,[["render",b],["__scopeId","data-v-639a852a"]]);var k=S;const x={EDIT_CODE:"EDIT_CODE",VIEW_CODE:"VIEW_CODE",DIFF_CODE:"DIFF_CODE"};var A={emits:["update:value","newObject","onInput","onReady","onChanges","validationChanged"],components:{CodeMirror:g.A,FileDiff:k},props:{editorMode:{type:String,default:x.EDIT_CODE,validator(e){return Object.values(x).includes(e)}},mode:{type:String,default:""},asObject:{type:Boolean,default:!1},initialYamlValues:{type:[String,Object],default:""},scrolling:{type:Boolean,default:!0},value:{type:[String,Object],default:""},hidePreviewButtons:{type:Boolean,default:!1},componentTestid:{type:String,default:"yaml-editor"}},data(){const{initialYamlValues:e,value:t}=this;let n,r;return n=this.asObject?(0,m.Kq)(t):t||"",r=this.asObject&&e?(0,m.Kq)(e):e,f()(r)&&(r=t),{original:r,curValue:n}},computed:{codeMirrorOptions(){const e=this.editorMode===x.VIEW_CODE,t=[];return e||t.push("CodeMirror-lint-markers"),t.push("CodeMirror-foldgutter"),{readOnly:e,gutters:t,mode:"yaml",lint:!e,lineNumbers:!e,styleActiveLine:!1,tabSize:2,indentWithTabs:!1,cursorBlinkRate:e?-1:530,extraKeys:{"Ctrl-Space":"autocomplete",Tab:e=>{e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertSoftTab")},"Shift-Tab":e=>{e.indentSelection("subtract")}},screenReaderLabel:this.t("import.editor.label")}},isPreview(){return this.editorMode===x.DIFF_CODE},diffMode:(0,h.AN)(h.Mu),showCodeEditor(){return[x.EDIT_CODE,x.VIEW_CODE].includes(this.editorMode)}},watch:{showUploadPrompt(e){e&&this.$refs.yamluploader.click()}},methods:{focus(){this.$refs.cm&&this.$refs.cm.focus()},refresh(){this.$refs.cm&&this.$refs.cm.refresh()},onInput(e){this.asObject||this.$emit("update:value",...arguments);try{const t=d().load(e);this.asObject?this.$emit("update:value",t):this.$emit("newObject",t)}catch(t){}this.$emit("onInput",...arguments)},onReady(){this.$emit("onReady",...arguments)},onChanges(){this.$emit("onChanges",...arguments)},updateValue(e){this.curValue=e,this.$refs.cm.updateValue(e)}}};n(1782);const N=(0,_.A)(A,[["render",c]]);var C=N},39569:function(e,t,n){"use strict";n.d(t,{A:function(){return R}});var r=n(9274);const i={key:0,class:"clearfix"},a={key:0,class:"required"},o={key:1,class:"icon icon-info"},s={key:0},l={class:"value text-label mb-10"},c=["data-testid"],u={class:"value"},d=["onUpdate:modelValue","data-testid","placeholder","disabled","onPaste"],h={key:0,class:"remove"},p=["disabled","data-testid","onClick"],f={key:2},m={key:0,class:"text-muted"},g={key:3,class:"footer mt-20"},v=["disabled"];function b(e,t,n,b,y,w){const E=(0,r.resolveComponent)("TextAreaAutoGrow"),_=(0,r.resolveComponent)("LabeledInput"),S=(0,r.resolveDirective)("clean-tooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[n.title?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.renderSlot)(e.$slots,"title",{},(()=>[(0,r.createElementVNode)("h3",null,[(0,r.createTextVNode)((0,r.toDisplayString)(n.title)+" ",1),n.required?((0,r.openBlock)(),(0,r.createElementBlock)("span",a,"*")):(0,r.createCommentVNode)("",!0),w.showProtip?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",o,null,512)),[[S,n.protip]]):(0,r.createCommentVNode)("",!0)])]),!0)])):(0,r.createCommentVNode)("",!0),y.rows.length?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[n.showHeader?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.renderSlot)(e.$slots,"column-headers",{},(()=>[(0,r.createElementVNode)("label",l,(0,r.toDisplayString)(n.valueLabel),1)]),!0)])):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(y.rows,((t,i)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:i,"data-testid":`array-list-box${i}`,class:"box"},[(0,r.renderSlot)(e.$slots,"columns",{queueUpdate:e.queueUpdate,i:i,rows:y.rows,row:t,mode:n.mode,isView:w.isView},(()=>[(0,r.createElementVNode)("div",u,[(0,r.renderSlot)(e.$slots,"value",{row:t,mode:n.mode,isView:w.isView,queueUpdate:e.queueUpdate},(()=>[n.valueMultiline?((0,r.openBlock)(),(0,r.createBlock)(E,{key:0,ref_for:!0,ref:"value",value:t.value,"onUpdate:value":[e=>t.value=e,e.queueUpdate],"data-testid":`textarea-${i}`,placeholder:n.valuePlaceholder,mode:n.mode,disabled:n.disabled,onPaste:e=>w.onPaste(i,e)},null,8,["value","onUpdate:value","data-testid","placeholder","mode","disabled","onPaste"])):n.rules.length>0?((0,r.openBlock)(),(0,r.createBlock)(_,{key:1,ref_for:!0,ref:"value",value:t.value,"onUpdate:value":[e=>t.value=e,e.queueUpdate],"data-testid":`labeled-input-${i}`,placeholder:n.valuePlaceholder,disabled:w.isView||n.disabled,rules:n.rules,compact:!1,onPaste:e=>w.onPaste(i,e)},null,8,["value","onUpdate:value","data-testid","placeholder","disabled","rules","onPaste"])):(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("input",{key:2,ref_for:!0,ref:"value","onUpdate:modelValue":e=>t.value=e,"data-testid":`input-${i}`,placeholder:n.valuePlaceholder,disabled:w.isView||n.disabled,onPaste:e=>w.onPaste(i,e)},null,40,d)),[[r.vModelText,t.value]])]),!0)])]),!0),w.showRemove?((0,r.openBlock)(),(0,r.createElementBlock)("div",h,[(0,r.renderSlot)(e.$slots,"remove-button",{remove:()=>w.remove(t,i),i:i,row:t},(()=>[(0,r.createElementVNode)("button",{type:"button",disabled:w.isView,class:"btn role-link","data-testid":`remove-item-${i}`,onClick:e=>w.remove(t,i)},(0,r.toDisplayString)(w._removeLabel),9,p)]),!0)])):(0,r.createCommentVNode)("",!0)],8,c)))),128))],64)):((0,r.openBlock)(),(0,r.createElementBlock)("div",f,[(0,r.renderSlot)(e.$slots,"empty",{},(()=>["view"===n.mode?((0,r.openBlock)(),(0,r.createElementBlock)("div",m," — ")):(0,r.createCommentVNode)("",!0)]),!0)])),w.showAdd&&!w.isView?((0,r.openBlock)(),(0,r.createElementBlock)("div",g,[w.showAdd?(0,r.renderSlot)(e.$slots,"add",{key:0,add:w.add},(()=>[(0,r.createElementVNode)("button",{type:"button",class:"btn role-tertiary add",disabled:n.loading||w.disableAdd,"data-testid":"array-list-button",onClick:t[0]||(t[0]=e=>w.add())},[(0,r.createElementVNode)("i",{class:(0,r.normalizeClass)(["mr-5 icon",n.loading?["icon-lg","icon-spinner","icon-spin"]:[n.addIcon]])},null,2),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(w._addLabel),1)],8,v)]),!0):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)])}var y=n(12784),w=n.n(y),E=n(14220),_=n(68851),S=n(6879),k=n(76978),x=n(79380);const A="Tip: Paste lines into any list field for easy bulk entry";var N={emits:["add","remove","update:value"],components:{TextAreaAutoGrow:S.V,LabeledInput:x.o},props:{value:{type:Array,default:null},mode:{type:String,default:E.G5},initialEmptyRow:{type:Boolean,default:!1},title:{type:String,default:""},protip:{type:[String,Boolean],default:A},showHeader:{type:Boolean,default:!1},valueLabel:{type:String,default:"Value"},valuePlaceholder:{type:String,default:"e.g. bar"},valueMultiline:{type:Boolean,default:!1},addIcon:{type:String,default:""},addLabel:{type:String,default:""},addAllowed:{type:Boolean,default:!0},addDisabled:{type:Boolean,default:!1},removeLabel:{type:String,default:""},removeAllowed:{type:Boolean,default:!0},defaultAddValue:{type:[String,Number,Object,Array],default:""},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},rules:{default:()=>[],type:Array,validator:e=>e.every((e=>["function"].includes(typeof e)))}},data(){const e=(Array.isArray(this.value)?this.value:[]).slice(),t=[];for(const n of e)t.push({value:n});if(!t.length&&this.initialEmptyRow){const e=this.defaultAddValue?(0,k.o8)(this.defaultAddValue):"";t.push({value:e})}return{rows:t,lastUpdateWasFromValue:!1}},computed:{_addLabel(){return this.addLabel||this.t("generic.add")},_removeLabel(){return this.removeLabel||this.t("generic.remove")},isView(){return this.mode===E.nW},showAdd(){return this.addAllowed},disableAdd(){return this.addDisabled},showRemove(){return this.removeAllowed},isDefaultProtip(){return this.protip===A},showProtip(){return!(!this.protip||this.isDefaultProtip)||!this.valueMultiline&&this.protip}},watch:{value:{deep:!0,handler(){this.lastUpdateWasFromValue=!0,this.rows=(this.value||[]).map((e=>({value:e})))}},rows:{deep:!0,handler(e,t){this.lastUpdateWasFromValue||this.queueUpdate(),this.lastUpdateWasFromValue=!1}}},created(){this.queueUpdate=w()(this.update,50)},methods:{add(){this.rows.push({value:(0,k.o8)(this.defaultAddValue)}),this.defaultAddValue&&this.queueUpdate(),this.$nextTick((()=>{const e=this.$refs.value;e&&e.length>0&&e[e.length-1].focus(),this.$emit("add")}))},remove(e,t){this.$emit("remove",{row:e,index:t}),(0,_.Wq)(this.rows,t),this.queueUpdate()},update(){if(this.isView)return;const e=[];for(const t of this.rows){const n=!this.valueMultiline&&"string"===typeof t.value,r=n?t.value.trim():t.value;"undefined"!==typeof r&&e.push(r)}this.$emit("update:value",e)},onPaste(e,t){t.preventDefault();const n=t.clipboardData.getData("text/plain");if(this.valueMultiline)this.rows[e].value=n;else{const r=n.split("\n").map((e=>({value:e})));t.preventDefault(),this.rows.splice(e,1,...r)}this.update()}}},C=(n(82055),n(47433));const T=(0,C.A)(N,[["render",b],["__scopeId","data-v-7c9042e0"]]);var R=T},31097:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(9274);const i=["data-testid","onClick"],a={key:1};function o(e,t,n,o,s,l){const c=(0,r.resolveComponent)("InfoBox"),u=(0,r.resolveComponent)("ArrayList");return(0,r.openBlock)(),(0,r.createBlock)(u,(0,r.mergeProps)({class:"array-list-grouped",value:n.value},e.$attrs,{"add-allowed":n.canAdd&&!l.isView,mode:n.mode,"initial-empty-row":n.initialEmptyRow,"onUpdate:value":t[0]||(t[0]=t=>e.$emit("update:value",t)),onAdd:t[1]||(t[1]=t=>e.$emit("add")),onRemove:t[2]||(t[2]=t=>e.$emit("remove",t))}),(0,r.createSlots)({columns:(0,r.withCtx)((t=>[(0,r.createVNode)(c,null,{default:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"default",(0,r.normalizeProps)((0,r.guardReactiveProps)(t)))])),_:2},1024)])),"remove-button":(0,r.withCtx)((e=>[l.canRemoveRow(e.row,e.i)?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,type:"button",class:"btn role-link close btn-sm","data-testid":`remove-item-${e.i}`,onClick:e.remove},t[3]||(t[3]=[(0,r.createElementVNode)("i",{class:"icon icon-x"},null,-1)]),8,i)):((0,r.openBlock)(),(0,r.createElementBlock)("span",a))])),_:2},[(0,r.renderList)(e.$slots,((t,n)=>({name:n,fn:(0,r.withCtx)((t=>["function"===typeof e.$slots[n]?(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.mergeProps)({key:0},t))):(0,r.createCommentVNode)("",!0)]))})))]),1040,["value","add-allowed","mode","initial-empty-row"])}var s=n(39569),l=n(26962),c=n(14220),u={name:"ArrayListGrouped",components:{ArrayList:s.A,InfoBox:l.A},props:{canRemove:{type:[Boolean,Function],default:!0},canAdd:{type:Boolean,default:!0},initialEmptyRow:{type:Boolean,default:!1},mode:{type:String,default:c.G5},value:{type:Object,default:()=>({})}},emits:["update:value","add","remove"],computed:{isView(){return this.mode===c.nW}},methods:{canRemoveRow(e,t){return!this.isView&&("function"===typeof this.canRemove?this.canRemove(e,t):this.canRemove)}}},d=(n(53575),n(47433));const h=(0,d.A)(u,[["render",o]]);var p=h},29649:function(e,t,n){"use strict";n.d(t,{B:function(){return c},A:function(){return p}});var r=n(9274);const i=["disabled","aria-label"],a=["multiple","webkitdirectory","accept"];function o(e,t,n,o,s,l){return l.isView?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,disabled:n.disabled,"aria-label":n.label,type:"button",role:"button",class:"file-selector btn","data-testid":"file-selector__uploader-button",onClick:t[1]||(t[1]=(...e)=>l.selectFile&&l.selectFile(...e))},[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(n.label),1),(0,r.createElementVNode)("input",{ref:"uploader",type:"file",class:"hide",multiple:n.multiple,webkitdirectory:n.directory,accept:n.accept,onChange:t[0]||(t[0]=(...e)=>l.fileChange&&l.fileChange(...e))},null,40,a)],8,i))}var s=n(14220),l=n(76978);function c(e){return function(t){(0,l.hZ)(this,e,t)}}var u={emits:["error","selected"],props:{label:{type:String,required:!0},mode:{type:String,default:s.G5},disabled:{type:Boolean,default:!1},includeFileName:{type:Boolean,default:!1},showGrowlError:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},byteLimit:{type:Number,default:0},readAsDataUrl:{type:Boolean,default:!1},directory:{type:Boolean,default:!1},rawData:{type:Boolean,default:!1},accept:{type:String,default:"*"}},computed:{isView(){return this.mode===s.nW}},methods:{selectFile(){this.$refs.uploader.value=null,this.$refs.uploader.click()},async fileChange(e){const t=e.target,n=Array.from(t.files||[]);if(this.byteLimit)for(const i of n)if(i.size>this.byteLimit)return void this.$emit("error",`${i.name} exceeds the file size limit of ${this.byteLimit} bytes`);if(this.rawData){const e=this.multiple||1!==n.length?n:n[0];this.$emit("selected",e)}else try{const e=n.map(this.getFileContents),t=await Promise.all(e),r=this.multiple||1!==t.length?t:t[0];this.$emit("selected",r)}catch(r){this.$emit("error",r),this.showGrowlError&&this.$store.dispatch("growl/fromError",{title:"Error reading file",error:r},{root:!0})}},getFileContents(e){return new Promise(((t,n)=>{const r=new FileReader;r.onload=n=>{const r=n.target.result,i=e.name,a=this.includeFileName?{value:r,name:i}:r;t(a)},r.onerror=e=>{n(e)},this.readAsDataUrl?r.readAsDataURL(e):r.readAsText(e)}))}}},d=n(47433);const h=(0,d.A)(u,[["render",o]]);var p=h},89210:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var r=n(9274);const i={key:0},a={class:"buttons"},o={class:"left"},s={class:"right"};function l(e,t,n,l,c,u){const d=(0,r.resolveComponent)("Banner"),h=(0,r.resolveComponent)("t"),p=(0,r.resolveComponent)("AsyncButton");return e.isView?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[t[1]||(t[1]=(0,r.createElementVNode)("div",{class:"spacer-small"},null,-1)),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.errors,((e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:t},[(0,r.createVNode)(d,{color:"error",label:e},null,8,["label"])])))),128)),(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",o,[(0,r.renderSlot)(e.$slots,"left")]),(0,r.createElementVNode)("div",s,[(0,r.renderSlot)(e.$slots,"cancel",{},(()=>[(0,r.createElementVNode)("button",{type:"button",class:"btn role-secondary",onClick:t[0]||(t[0]=(...t)=>e.done&&e.done(...t))},[(0,r.createVNode)(h,{k:"generic.cancel"})])])),(0,r.renderSlot)(e.$slots,"middle"),(0,r.renderSlot)(e.$slots,"save",{},(()=>[e.isView?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(p,{key:0,mode:e.mode,disabled:e.disableSave,onClick:e.save},null,8,["mode","disabled","onClick"]))])),(0,r.renderSlot)(e.$slots,"right")])])]))}var c=n(14220),u=n(89651),d=n(56943),h=(0,r.defineComponent)({emits:["save","done"],components:{AsyncButton:u.A,Banner:d.A},props:{mode:{type:String,required:!0},errors:{type:Array,default:null},disableSave:{type:Boolean,default:!1}},computed:{isView(){return this.mode===c.nW}},methods:{save(e){this.$emit("save",e)},done(){this.$emit("done")}}}),p=(n(13343),n(47433));const f=(0,p.A)(h,[["render",l]]);var m=f},8077:function(e,t,n){"use strict";n.d(t,{A:function(){return F}});var r=n(9274);const i=["tabindex"],a=["id"],o={key:2,class:"required"},s={key:0,class:"only-user-opts"},l={key:1,class:"vs__option-kind-group"},c={key:1},u={key:2},d={key:3,class:"option-kind-highlighted"},h=["onMousedown"],p={key:0,class:"icon icon-warning pull-right",style:{"font-size":"20px"}},f={key:0,class:"pagination-slot"},m={class:"load-more"},g={key:0,class:"icon icon-spinner icon-spin"},v={key:1},b={class:"count"},y={class:"no-options-slot"},w={key:0},E={key:1,class:"paginating"},_={key:0,class:"icon icon-spinner icon-spin icon-lg"};function S(e,t,n,S,k,x){const A=(0,r.resolveComponent)("t"),N=(0,r.resolveComponent)("v-select"),C=(0,r.resolveComponent)("LabeledTooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:"select",class:(0,r.normalizeClass)(["labeled-select",[e.$attrs.class,{disabled:e.isView||n.disabled,focused:e.focused,[e.mode]:!0,[n.status]:n.status,taggable:e.$attrs.taggable,taggable:e.$attrs.multiple,hoverable:n.hoverTooltip,"compact-input":e.isCompact,"no-label":!x.hasLabel}]]),tabindex:e.isView||n.disabled?-1:0,onClick:t[4]||(t[4]=(...e)=>x.focusSearch&&x.focusSearch(...e)),onKeydown:[t[5]||(t[5]=(0,r.withKeys)(((...e)=>x.focusSearch&&x.focusSearch(...e)),["enter"])),t[6]||(t[6]=(0,r.withKeys)((0,r.withModifiers)(((...e)=>x.focusSearch&&x.focusSearch(...e)),["prevent"]),["down"])),t[7]||(t[7]=(0,r.withKeys)((0,r.withModifiers)(((...e)=>x.focusSearch&&x.focusSearch(...e)),["prevent"]),["space"]))]},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)({"labeled-container":!0,raised:e.raised,empty:e.empty,[e.mode]:!0}),style:{border:"none"}},[x.hasLabel?((0,r.openBlock)(),(0,r.createElementBlock)("label",{key:0,id:`labeled-select-uid-${k.uid}`},[e.labelKey?((0,r.openBlock)(),(0,r.createBlock)(A,{key:0,k:e.labelKey},null,8,["k"])):e.label?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(e.label),1)],64)):(0,r.createCommentVNode)("",!0),e.requiredField?((0,r.openBlock)(),(0,r.createElementBlock)("span",o,"*")):(0,r.createCommentVNode)("",!0)],8,a)):(0,r.createCommentVNode)("",!0)],2),(0,r.createVNode)(N,(0,r.mergeProps)({ref:"select-input","aria-labelledby":x.hasLabel?`labeled-select-uid-${k.uid}`:""},x.filteredAttrs,{class:["inline",{"no-label":!(e.label||"").length}],"append-to-body":n.appendToBody,"calculate-position":x.positionDropdown,clearable:n.clearable,disabled:e.isView||n.disabled||n.loading,"get-option-key":x.getOptionKey,"get-option-label":e=>x.getOptionLabel(e),label:n.optionLabel,options:x._options,"map-keydown":e.mappedKeys,placeholder:e.placeholder,reduce:e=>n.reduce(e),filterable:e.isFilterable,searchable:e.isSearchable,selectable:n.selectable,modelValue:null==n.value||n.loading?"":n.value,"dropdown-should-open":x.dropdownShouldOpen,tabindex:-1,role:"listbox","onUpdate:modelValue":t[1]||(t[1]=t=>{e.$emit("selecting",t),e.$emit("update:value",t)}),"onSearch:blur":x.onBlur,"onSearch:focus":x.onFocus,onSearch:x.onSearch,onOpen:x.onOpen,onClose:x.onClose,"onOption:selecting":t[2]||(t[2]=t=>e.$emit("selecting",t)),"onOption:deselecting":t[3]||(t[3]=t=>e.$emit("deselecting",t))}),(0,r.createSlots)({option:(0,r.withCtx)((t=>[x.showTagPrompts?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,(0,r.toDisplayString)(e.t("labeledSelect.pressEnter",{input:x.getOptionLabel(t.label)})),1)):"group"===t.kind?((0,r.openBlock)(),(0,r.createElementBlock)("div",l,[t.icon?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:(0,r.normalizeClass)(["icon",{[t.icon]:!0}])},null,2)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("b",null,(0,r.toDisplayString)(x.getOptionLabel(t)),1),t.badge?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,(0,r.toDisplayString)(t.badge),1)):(0,r.createCommentVNode)("",!0)])):"divider"===t.kind?((0,r.openBlock)(),(0,r.createElementBlock)("hr",u)):"highlighted"===t.kind?((0,r.openBlock)(),(0,r.createElementBlock)("div",d,(0,r.toDisplayString)(t.label),1)):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:4,class:(0,r.normalizeClass)(["vs__option-kind",{"has-icon":x.hasGroupIcon}]),onMousedown:e=>x.onClickOption(t,e)},[(0,r.createTextVNode)((0,r.toDisplayString)(x.getOptionLabel(t))+" ",1),t.error?((0,r.openBlock)(),(0,r.createElementBlock)("i",p)):(0,r.createCommentVNode)("",!0)],42,h))])),"list-footer":(0,r.withCtx)((()=>[e.canPaginate&&e.totalResults&&e.pages>1?((0,r.openBlock)(),(0,r.createElementBlock)("div",f,[(0,r.createElementVNode)("div",m,[e.paginating?((0,r.openBlock)(),(0,r.createElementBlock)("i",g)):((0,r.openBlock)(),(0,r.createElementBlock)("div",v,[e.canLoadMore?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,onClick:t[0]||(t[0]=(...t)=>e.loadMore&&e.loadMore(...t))},(0,r.toDisplayString)(e.t("labelSelect.pagination.more")),1)):(0,r.createCommentVNode)("",!0)]))]),(0,r.createElementVNode)("div",b,(0,r.toDisplayString)(e.optionCounts),1)])):(0,r.createCommentVNode)("",!0)])),"no-options":(0,r.withCtx)((({search:i})=>[(0,r.createElementVNode)("div",y,[x.showTagPrompts?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[e.searching?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("span",w,(0,r.toDisplayString)(e.t("labeledSelect.startTyping")),1))],64)):e.paginating?((0,r.openBlock)(),(0,r.createElementBlock)("div",E,t[8]||(t[8]=[(0,r.createElementVNode)("i",{class:"icon icon-spinner icon-spin"},null,-1)]))):i?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:2},[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("labelSelect.noOptions.noMatch")),1)],64)):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:3},[(0,r.createTextVNode)((0,r.toDisplayString)(e.t(n.noOptionsLabelKey)),1)],64))])])),_:2},[(0,r.renderList)(e.$slots,((t,n)=>({name:n,fn:(0,r.withCtx)((t=>[(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.guardReactiveProps)(t)),void 0,!0)]))})))]),1040,["aria-labelledby","append-to-body","calculate-position","class","clearable","disabled","get-option-key","get-option-label","label","options","map-keydown","placeholder","reduce","filterable","searchable","selectable","modelValue","dropdown-should-open","onSearch:blur","onSearch:focus","onSearch","onOpen","onClose"]),n.loading?((0,r.openBlock)(),(0,r.createElementBlock)("i",_)):(0,r.createCommentVNode)("",!0),n.tooltip&&!e.focused?((0,r.openBlock)(),(0,r.createBlock)(C,{key:1,hover:n.hoverTooltip,value:n.tooltip,status:n.status},null,8,["hover","value","status"])):(0,r.createCommentVNode)("",!0),e.validationMessage?((0,r.openBlock)(),(0,r.createBlock)(C,{key:2,hover:n.hoverTooltip,value:e.validationMessage},null,8,["hover","value"])):(0,r.createCommentVNode)("",!0)],42,i)}var k={props:{compact:{type:Boolean,default:null},label:{type:String,default:null},labelKey:{type:String,default:null}},computed:{isCompact(){return null!==this.compact?this.compact:!(this.label||this.labelKey)}}},x=n(63503),A=n(76978),N=n(49924),C=n(89626),T=n(20162),R=n(92043),O=n(45250),I=n(15328),L=(0,r.defineComponent)({props:{paginate:{default:null,type:Function},inStore:{type:String,default:"cluster"},resourceType:{type:String,default:null}},data(){return{currentPage:1,search:"",pageSize:10,pages:0,debouncedRequestPagination:(0,O.debounce)(this.requestPagination,700),page:[],totalResults:0,paginating:!1}},async mounted(){this.canPaginate&&await this.requestPagination()},computed:{canPaginate(){return!!this.paginate&&!!this.resourceType&&this.$store.getters[`${this.inStore}/paginationEnabled`](this.resourceType)},canLoadMore(){return this.pages>this.currentPage},optionsInPage(){return this.canPaginate?this._options.filter((e=>e.kind!==I.c.NONE&&!I.w.includes(e.kind))).length:0},optionCounts(){return this.canPaginate&&this.optionsInPage!==this.totalResults?this.$store.getters["i18n/t"]("labelSelect.pagination.counts",{count:this.optionsInPage,totalCount:this.totalResults}):""}},methods:{loadMore(){this.currentPage++,this.requestPagination()},setPaginationFilter(e){this.paginating=!0,this.currentPage=1,this.search=e,this.debouncedRequestPagination(!0)},async requestPagination(e=!1){this.paginating=!0;const t=this.paginate,{page:n,pages:r,total:i}=await t({resetPage:e,pageContent:this.page||[],page:this.currentPage,filter:this.search,pageSize:this.pageSize});this.page=n,this.pages=r||0,this.totalResults=i||0,this.paginating=!1}}}),D=n(65359),P={name:"LabeledSelect",inheritAttrs:!1,components:{LabeledTooltip:N.Z},mixins:[k,x.A,C.A,L],emits:["on-open","on-close","selecting","deselecting","search","update:validation","update:value"],props:{appendToBody:{default:!0,type:Boolean},clearable:{default:!1,type:Boolean},disabled:{default:!1,type:Boolean},required:{default:!1,type:Boolean},hoverTooltip:{default:!0,type:Boolean},loading:{default:!1,type:Boolean},localizedLabel:{default:!1,type:Boolean},optionKey:{default:null,type:String},optionLabel:{default:"label",type:String},placement:{default:null,type:String},reduce:{default:e=>e&&"object"===typeof e&&void 0!==e.value?e.value:e,type:Function},selectable:{default:e=>!e||!(e.disabled||I.w.includes(e.kind)||e.loading),type:Function},status:{default:null,type:String},tooltip:{default:null,type:[String,Object]},value:{default:null,type:[String,Object,Number,Array,Boolean]},options:{type:Array,default:()=>[]},closeOnSelect:{type:Boolean,default:!0},noOptionsLabelKey:{type:String,default:"labelSelect.noOptions.empty"}},data(){return{selectedVisibility:"visible",shouldOpen:!0,uid:(0,R.aR)(10)}},computed:{...(0,D.L8)({t:"i18n/t"}),hasLabel(){return!this.isCompact&&(!!this.label||!!this.labelKey||!!this.$slots.label)},hasGroupIcon(){return!!this.canPaginate&&!!this._options.find((e=>"group"===e.kind&&!!e.icon))},_options(){return this.canPaginate?this.page:this.options},filteredAttrs(){const{class:e,...t}=this.$attrs;return t},showTagPrompts(){return!this.options.length&&this.$attrs.taggable&&this.isSearchable}},methods:{focusSearch(){this.isView||this.disabled||this.loading||(this.overridesMixinPreventDoubleTriggerKeysOpen?this.$nextTick((()=>{const e=this.$refs["select"];e&&e.focus(),this.overridesMixinPreventDoubleTriggerKeysOpen=!1})):(this.$refs["select-input"].open=!0,this.$nextTick((()=>{const e=this.$refs["select-input"]?.searchEl;e&&e.focus()}))))},onFocus(){this.selectedVisibility="hidden",this.onFocusLabeled()},onBlur(){this.selectedVisibility="visible",this.onBlurLabeled()},onOpen(){this.$emit("on-open"),this.resizeHandler()},onClose(){this.$emit("on-close")},getOptionLabel(e){if(e){if(this.$attrs["get-option-label"])return this.$attrs["get-option-label"](e);if((0,A.Jt)(e,this.optionLabel)){if(this.localizedLabel){const t=(0,A.Jt)(e,this.optionLabel);return this.$store.getters["i18n/t"](t)||t}return(0,A.Jt)(e,this.optionLabel)}return e}},positionDropdown(e,t,{width:n}){(0,T.s)(e,t,n,this.placement)},get:A.Jt,onClickOption(e,t){T.t.call(this,e,t)},dropdownShouldOpen(e,t=!1){const{noDrop:n,mutableLoading:r}=e,{open:i}=e,a=this.shouldOpen;return t?(e.open=!0,!0):(!1===a&&(this.shouldOpen=!0,e.closeSearchOptions()),!n&&(i&&a&&!r))},onSearch(e,t){this.canPaginate?this.setPaginationFilter(e):e&&this.dropdownShouldOpen(this.$refs["select-input"],!0),this.$emit("search",e,t)},getOptionKey(e){return this.optionKey?(0,A.Jt)(e,this.optionKey):this.getOptionLabel(e)}}},M=(n(98620),n(47433));const B=(0,M.A)(P,[["render",S],["__scopeId","data-v-61ff1cd2"]]);var F=B},94397:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(9274);function i(e,t,n,i,a,o){const s=(0,r.resolveComponent)("LabeledSelect");return(0,r.openBlock)(),(0,r.createBlock)(s,(0,r.mergeProps)(e.labelSelectAttributes,{loading:e.$fetchState.pending,options:e.allOfType,paginate:e.paginateType,"onUpdate:value":t[0]||(t[0]=t=>e.$emit("update:value",t))}),null,16,["loading","options","paginate"])}var a,o=n(8077),s=n(50025),l=n(4364);async function c({opts:e,type:t,ctx:n,filters:r=[],sort:i=[{asc:!0,field:"metadata.namespace"},{asc:!0,field:"metadata.name"}],store:a="cluster",groupByNamespace:o=!0,classify:c=!1}){const{pageContent:u,page:d,pageSize:h,resetPage:p}=e;try{const e=new s.gR({page:d,pageSize:h,sort:i,filters:r}),l=n.getters[`${a}/urlFor`](t,null,{pagination:e}),f=await n.dispatch(`${a}/request`,{url:l});let m=f.data;c&&(m=await n.dispatch("cluster/createMany",m));const g=p?m:u.concat(m);let v;if(o){const e={};g.forEach((t=>{const n=t.metadata.namespace;"group"!==t.kind&&(e[n]||(e[n]=[]),e[n].push(t))})),v=[],Object.keys(e).sort().forEach((t=>{v.push({kind:"group",icon:"icon-namespace",id:t,metadata:{name:t},disabled:!0}),v=v.concat(e[t])}))}else v=g;return{page:v,pages:f.pages||Math.ceil(f.count/(h||Number.MAX_SAFE_INTEGER)),total:f.count}}catch(f){l.error(f)}return{page:[],pages:0,total:0}}(function(e){e["ALL_RESOURCES"]="ALL",e["DYNAMIC"]="DYNAMIC"})(a||(a={}));var u=(0,r.defineComponent)({name:"ResourceLabeledSelect",components:{LabeledSelect:o.A},emits:["update:value"],props:{resourceType:{type:String,required:!0},inStore:{type:String,default:"cluster"},paginateMode:{type:String,default:a.DYNAMIC},allResourcesSettings:{type:Object,default:null},paginatedResourceSettings:{type:Object,default:null}},data(){return{paginate:!1}},async fetch(){switch(this.paginateMode){case a.ALL_RESOURCES:this.paginate=!1;break;case a.DYNAMIC:this.paginate=this.$store.getters[`${this.inStore}/paginationEnabled`](this.resourceType);break}this.paginate||await this.$store.dispatch(`${this.inStore}/findAll`,{type:this.resourceType})},computed:{labelSelectAttributes(){const e={...this.$attrs,...this.$props};return this.paginate?{...e,...this.paginatedResourceSettings?.labelSelectOptions||{}}:{...e,...this.allResourcesSettings?.labelSelectOptions||{}}},allOfType(){if(this.$fetchState.pending||this.paginate)return[];const e=this.$store.getters[`${this.inStore}/all`](this.resourceType);return this.allResourcesSettings?.updateResources?this.allResourcesSettings.updateResources(e):e}},methods:{async paginateType(e){if(this.paginatedResourceSettings?.overrideRequest)return await this.paginatedResourceSettings.overrideRequest(e);const{filter:t}=e,n=t?[s.eY.createSingleField({field:"metadata.name",value:t,exact:!1})]:[],r={opts:e,filters:n,type:this.resourceType,ctx:{getters:this.$store.getters,dispatch:this.$store.dispatch},sort:[{asc:!0,field:"metadata.name"}]},i=this.paginatedResourceSettings?.requestSettings?this.paginatedResourceSettings.requestSettings(r):r,a=await c(i);return this.paginatedResourceSettings?.updateResources?{...a,page:this.paginatedResourceSettings.updateResources(a.page)}:a}}}),d=n(47433);const h=(0,d.A)(u,[["render",i]]);var p=h},38569:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var r=n(9274);const i=["tabindex"],a=["onMousedown"];function o(e,t,n,o,s,l){const c=(0,r.resolveComponent)("v-select"),u=(0,r.resolveComponent)("LabeledTooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:"select",class:(0,r.normalizeClass)(["unlabeled-select",{disabled:n.disabled||e.isView,focused:e.focused,[n.mode]:!0,[n.status]:n.status,taggable:e.$attrs.taggable,taggable:e.$attrs.multiple,"compact-input":n.compact,[e.$attrs.class]:e.$attrs.class}]),tabindex:n.disabled||e.isView?-1:0,onClick:t[2]||(t[2]=(...e)=>l.focusSearch&&l.focusSearch(...e)),onKeydown:[t[3]||(t[3]=(0,r.withKeys)(((...e)=>l.focusSearch&&l.focusSearch(...e)),["enter"])),t[4]||(t[4]=(0,r.withKeys)((0,r.withModifiers)(((...e)=>l.focusSearch&&l.focusSearch(...e)),["prevent"]),["down"])),t[5]||(t[5]=(0,r.withKeys)((0,r.withModifiers)(((...e)=>l.focusSearch&&l.focusSearch(...e)),["prevent"]),["space"]))]},[(0,r.createVNode)(c,(0,r.mergeProps)({ref:"select-input"},l.deClassedAttrs,{class:["inline",{"select-input-view":"view"===n.mode}],autoscroll:!0,"append-to-body":n.appendToBody,"calculate-position":l.positionDropdown,disabled:e.isView||n.disabled,"get-option-key":e=>l.getOptionKey(e),"get-option-label":e=>l.getOptionLabel(e),label:n.optionLabel,options:e.options,"close-on-select":n.closeOnSelect,"map-keydown":e.mappedKeys,placeholder:n.placeholder,reduce:e=>n.reduce(e),searchable:e.isSearchable,selectable:l.selectable,modelValue:null!=n.value?n.value:"",dropdownShouldOpen:l.handleDropdownOpen,tabindex:-1,role:"listbox","onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:value",t)),"onSearch:blur":e.onBlur,"onSearch:focus":e.onFocus,onOpen:e.resizeHandler,"onOption:created":t[1]||(t[1]=t=>e.$emit("createdListItem",t))}),(0,r.createSlots)({option:(0,r.withCtx)((e=>[(0,r.createElementVNode)("div",{onMousedown:t=>l.onClickOption(e,t)},(0,r.toDisplayString)(l.getOptionLabel(e.label)),41,a)])),_:2},[(0,r.renderList)(e.$slots,((t,n)=>({name:n,fn:(0,r.withCtx)((t=>[(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.guardReactiveProps)(t)),void 0,!0)]))})))]),1040,["class","append-to-body","calculate-position","disabled","get-option-key","get-option-label","label","options","close-on-select","map-keydown","placeholder","reduce","searchable","selectable","modelValue","dropdownShouldOpen","onSearch:blur","onSearch:focus","onOpen"]),n.tooltip&&!e.focused?((0,r.openBlock)(),(0,r.createBlock)(u,{key:0,hover:n.hoverTooltip,value:n.tooltip,status:n.status},null,8,["hover","value","status"])):(0,r.createCommentVNode)("",!0),l.validationMessage?((0,r.openBlock)(),(0,r.createBlock)(u,{key:1,hover:n.hoverTooltip,value:l.validationMessage},null,8,["hover","value"])):(0,r.createCommentVNode)("",!0)],42,i)}var s=n(76978),l=n(63503),c=n(89626),u=n(49924),d=n(20162),h={emits:["update:value","createdListItem"],components:{LabeledTooltip:u.Z},mixins:[l.A,c.A],props:{appendToBody:{default:!0,type:Boolean},disabled:{default:!1,type:Boolean},getKeyForOption:{default:null,type:Function},mode:{default:"edit",type:String},optionKey:{default:null,type:String},optionLabel:{default:"label",type:String},placement:{default:null,type:String},placeholder:{type:String,default:""},popperOverride:{type:Function,default:null},reduce:{default:e=>e&&"object"===typeof e&&void 0!==e.value?e.value:e,type:Function},tooltip:{type:String,default:null},hoverTooltip:{type:Boolean,default:!0},status:{type:String,default:null},value:{default:null,type:[String,Object,Number,Array,Boolean]},closeOnSelect:{type:Boolean,default:!0},compact:{type:Boolean,default:null}},methods:{getOptionLabel(e){return this.$attrs["get-option-label"]?this.$attrs["get-option-label"](e):(0,s.Jt)(e,this.optionLabel)?this.localizedLabel?this.$store.getters["i18n/t"]((0,s.Jt)(e,this.optionLabel)):(0,s.Jt)(e,this.optionLabel):e},positionDropdown(e,t,{width:n}){if(this.popperOverride)return this.popperOverride(e,t,{width:n});(0,d.s)(e,t,n,this.placement)},focusSearch(){this.overridesMixinPreventDoubleTriggerKeysOpen?this.$nextTick((()=>{const e=this.$refs["select"];e&&e.focus(),this.overridesMixinPreventDoubleTriggerKeysOpen=!1})):(this.$refs["select-input"].open=!0,this.$nextTick((()=>{const e=this.$refs["select-input"]?.searchEl;e&&e.focus()})))},get:s.Jt,onClickOption(e,t){d.t.call(this,e,t)},selectable(e){return!e||!e.disabled&&"group"!==e.kind&&"divider"!==e.kind&&!e.loading},getOptionKey(e){if(e&&this.optionKey)return(0,s.Jt)(e,this.optionKey);if(e?.optionKey)return(0,s.Jt)(e,e.optionKey);const t=this.getOptionLabel(e);return"string"===typeof t||"number"===typeof t?t:Math.random(1e5)},report(e){alert(e)},handleDropdownOpen(e){return!e.noDrop&&!e.disabled&&e.open}},computed:{requiredField(){return this.required||this.rules.some((e=>"required"===e?.name))},validationMessage(){const e=this.rules.find((e=>"required"===e?.name)),t=[],n=this?.value;if(e&&this.blurred&&!this.focused){const t=e(n);if(t)return t}for(const r of this.rules){const e=r(n);e&&"required"!==r.name&&t.push(e)}return t.length>0&&(this.blurred||this.focused)?t.join(", "):void 0},canPaginate(){return!1},deClassedAttrs(){const{class:e,...t}=this.$attrs;return t}}},p=(n(13531),n(47433));const f=(0,p.A)(h,[["render",o],["__scopeId","data-v-36e59bb3"]]);var m=f},88703:function(e,t,n){"use strict";n.d(t,{A:function(){return b}});var r=n(9274);const i={class:"secret-selector show-key-selector"},a={class:"input-container"};function o(e,t,n,o,s,l){const c=(0,r.resolveComponent)("ResourceLabeledSelect"),u=(0,r.resolveComponent)("LabeledSelect");return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createVNode)(c,{value:s.name,"onUpdate:value":t[0]||(t[0]=e=>s.name=e),class:"col span-6",disabled:!l.isView&&n.disabled,loading:e.$fetchState.pending,label:n.secretNameLabel,mode:n.mode,"resource-type":s.SECRET,"paginated-resource-settings":s.paginateSecretsSetting,"all-resources-settings":s.allSecretsSettings,onSelecting:l.updateSecretName},null,8,["value","disabled","loading","label","mode","resource-type","paginated-resource-settings","all-resources-settings","onSelecting"]),(0,r.createVNode)(u,{value:s.key,"onUpdate:value":t[1]||(t[1]=e=>s.key=e),class:"col span-6",disabled:l.isKeyDisabled,options:l.keys,label:n.keyNameLabel,mode:n.mode,onSelecting:l.updateSecretKey},null,8,["value","disabled","options","label","mode","onSelecting"])])])}var s=n(8077),l=n(94397),c=n(35664),u=n(14220),d=n(1133),h=n(15328),p=n(50025);const f="__[[NONE]]__";var m={emits:["updateSecretName","updateSecretKey"],components:{LabeledSelect:s.A,ResourceLabeledSelect:l.A},props:{test:{type:String,default:""},initialName:{type:String,required:!0},initialKey:{type:String,required:!0},namespace:{type:String,required:!0},types:{type:Array,default:()=>Object.values(d.TYPES)},disabled:{type:Boolean,default:!1},secretNameLabel:{type:String,default:"Secret Name"},keyNameLabel:{type:String,default:"Key"},mode:{type:String,default:u.G5}},data(e){return{secrets:[],name:e.initialName,key:e.initialKey,none:f,SECRET:c.bB,allSecretsSettings:{mapResult:e=>{const t=e.filter((e=>this.types.includes(e._type)&&e.namespace===this.namespace)),n=this.mapSecrets(t.sort(((e,t)=>e.name.localeCompare(t.name))));return this.secrets=t,n}},paginateSecretsSetting:{requestSettings:this.paginatePageOptions,mapResult:e=>{const t=this.mapSecrets(e);return this.secrets=e,t}}}},computed:{keys(){const e=(this.secrets||[]).find((e=>e.name===this.name))||{};return Object.keys(e.data||{}).map((e=>({label:e,value:e})))},isView(){return this.mode===u.nW},isKeyDisabled(){return!this.isView&&(!this.name||this.name===f||this.disabled)}},methods:{mapSecrets(e){const t=e.reduce(((e,t)=>(t.kind===h.c.NONE||(t.id?e.push({label:t.name,value:t.name}):e.push(t)),e)),[]);return[{label:"None",value:f,kind:h.c.NONE},...t]},paginatePageOptions(e){const{opts:{filter:t}}=e,n=t?[p.eY.createSingleField({field:"metadata.name",value:t})]:[];return n.push(p.eY.createSingleField({field:"metadata.namespace",value:this.namespace}),p.eY.createSingleField({field:"metadata.fields.1",value:this.types.join(",")})),{...e,filters:n,groupByNamespace:!1,classify:!0,sort:[{asc:!0,field:"metadata.name"}]}},updateSecretName(e){e.value===this.none&&(this.key=""),e.value&&this.$emit("updateSecretName",e.value)},updateSecretKey(e){e.value&&this.$emit("updateSecretKey",e.value)}}},g=(n(91230),n(47433));const v=(0,g.A)(m,[["render",o]]);var b=v},99383:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var r=n(9274);const i={class:"row"},a={class:"col span-12"},o={class:"row mb-20"},s={class:"row mb-20"},l={class:"row mb-20"},c={class:"row mb-20"},u={class:"col span-12"};function d(e,t,n,d,h,p){const f=(0,r.resolveComponent)("SimpleSecretSelector"),m=(0,r.resolveComponent)("Banner"),g=(0,r.resolveComponent)("LabeledInput");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("h3",null,(0,r.toDisplayString)(e.t("monitoring.receiver.tls.label")),1)])]),(0,r.createElementVNode)("div",o,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,"initial-key":h.initialCaSecretKey,"initial-name":h.initialCaSecretName,mode:n.mode,namespace:n.namespace,disabled:n.mode===h.view,"secret-name-label":e.t("monitoringReceiver.tls.ca"),onUpdateSecretName:p.updateCaSecretName,onUpdateSecretKey:p.updateCaSecretKey},null,8,["initial-key","initial-name","mode","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(m,{key:1,color:"error"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)])),_:1}))]),(0,r.createElementVNode)("div",s,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,"initial-key":h.initialClientCertSecretKey,"initial-name":h.initialClientCertSecretName,mode:n.mode,namespace:n.namespace,disabled:n.mode===h.view,"secret-name-label":e.t("monitoringReceiver.tls.cert"),onUpdateSecretName:p.updateClientCertSecretName,onUpdateSecretKey:p.updateClientCertSecretKey},null,8,["initial-key","initial-name","mode","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(m,{key:1,color:"error"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)])),_:1}))]),(0,r.createElementVNode)("div",l,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,"initial-key":h.initialClientKeySecretKey,"initial-name":h.initialClientKeySecretName,mode:n.mode,namespace:n.namespace,disabled:n.mode===h.view,"secret-name-label":e.t("monitoringReceiver.tls.key"),onUpdateSecretName:p.updateClientKeySecretName,onUpdateSecretKey:p.updateClientKeySecretKey},null,8,["initial-key","initial-name","mode","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(m,{key:1,color:"error"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)])),_:1}))]),(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("div",u,[(0,r.createVNode)(g,{value:n.value.tlsConfig.serverName,"onUpdate:value":t[0]||(t[0]=e=>n.value.tlsConfig.serverName=e),mode:n.mode,label:e.t("monitoringReceiver.tls.serverName"),tooltip:e.t("monitoringReceiver.tls.serverNameTooltip")},null,8,["value","mode","label","tooltip"])])])])}var h=n(79380),p=n(9980),f=n(88703),m=n(14220),g={components:{Banner:p.l,LabeledInput:h.o,SimpleSecretSelector:f.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},namespace:{type:String,required:!0}},data(){return this.value["tlsConfig"]=this.value.tlsConfig||{},{initialCaSecretKey:this.value.tlsConfig.ca?.secret?.key?this.value.tlsConfig.ca.secret.key:"",initialCaSecretName:this.value.tlsConfig.ca?.secret?.name?this.value.tlsConfig.ca.secret.name:"",initialClientCertSecretKey:this.value.tlsConfig.cert?.secret?.key?this.value.tlsConfig.cert.secret.key:"",initialClientCertSecretName:this.value.tlsConfig.cert?.secret?.name?this.value.tlsConfig.cert.secret.name:"",initialClientKeySecretKey:this.value.tlsConfig.keySecret?.key?this.value.tlsConfig.keySecret.key:"",initialClientKeySecretName:this.value.tlsConfig.keySecret?.name?this.value.tlsConfig.keySecret.name:"",view:m.nW,none:"__[[NONE]]__"}},methods:{updateCaSecretName(e){const t=this.value.tlsConfig.ca?.secret?.key||"";this.value.tlsConfig.ca||(this.value.tlsConfig["ca"]={secret:{name:e,key:""}}),this.value.tlsConfig.ca?.secret?e===this.none?this.value.tlsConfig.ca={}:this.value.tlsConfig.ca.secret={key:t,name:e}:this.value.tlsConfig.ca["secret"]={key:t,name:e}},updateCaSecretKey(e){const t=this.value.tlsConfig.ca?.secret?.name||"";this.value.tlsConfig.ca||(this.value.tlsConfig["ca"]={secret:{name:"",key:e}}),this.value.tlsConfig.ca?.secret?this.value.tlsConfig.ca.secret={name:t,key:e}:this.value.tlsConfig.ca["secret"]={key:"",name:t}},updateClientCertSecretName(e){const t=this.value.tlsConfig.cert?.secret?.key||"";this.value.tlsConfig.cert||(this.value.tlsConfig["cert"]={secret:{name:e,key:""}}),this.value.tlsConfig.cert?.secret?e===this.none?this.value.tlsConfig.cert={}:this.value.tlsConfig.cert.secret={key:t,name:e}:this.value.tlsConfig.cert["secret"]={key:"",name:e}},updateClientCertSecretKey(e){const t=this.value.tlsConfig.cert?.secret?.name||"";this.value.tlsConfig.cert||(this.value.tlsConfig["cert"]={secret:{name:"",key:e}}),this.value.tlsConfig.cert?.secret?this.value.tlsConfig.cert.secret={name:t,key:e}:this.value.tlsConfig.cert["secret"]={key:"",name:t}},updateClientKeySecretName(e){const t=this.value.tlsConfig.keySecret?.key||"";this.value.tlsConfig.keySecret?e===this.none?this.value.tlsConfig.keySecret={}:this.value.tlsConfig.keySecret={key:t,name:e}:this.value.tlsConfig["keySecret"]={key:"",name:e}},updateClientKeySecretKey(e){const t=this.value.tlsConfig.keySecret?.name||"";this.value.tlsConfig.keySecret?this.value.tlsConfig.keySecret={name:t,key:e}:this.value.tlsConfig["keySecret"]={key:e,name:""}}}},v=n(47433);const b=(0,v.A)(g,[["render",d]]);var y=b},51557:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return k}});var r=n(9274);const i={class:"row mb-20"},a={class:"col span-6"},o={class:"col span-6"},s={class:"row mb-20"},l={class:"col span-12"},c={class:"row mb-20"},u={class:"col span-6"},d={class:"col span-6"},h={key:0,class:"row mb-20"},p={class:"col span-6"},f={class:"row mb-20"};function m(e,t,n,m,g,v){const b=(0,r.resolveComponent)("LabeledInput"),y=(0,r.resolveComponent)("Checkbox"),w=(0,r.resolveComponent)("SimpleSecretSelector"),E=(0,r.resolveComponent)("Banner"),_=(0,r.resolveComponent)("TLS");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[t[7]||(t[7]=(0,r.createElementVNode)("div",{class:"row"},[(0,r.createElementVNode)("div",{class:"col span-12"},[(0,r.createElementVNode)("h3",null,"Target")])],-1)),(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createVNode)(b,{value:n.value.to,"onUpdate:value":t[0]||(t[0]=e=>n.value.to=e),mode:n.mode,label:"Default Recipient Address",placeholder:"e.g. admin@example.com"},null,8,["value","mode"])]),(0,r.createElementVNode)("div",o,[(0,r.createVNode)(y,{value:n.value.sendResolved,"onUpdate:value":t[1]||(t[1]=e=>n.value.sendResolved=e),mode:n.mode,class:"mt-20",label:"Enable send resolved alerts"},null,8,["value","mode"])])]),t[8]||(t[8]=(0,r.createElementVNode)("h2",{class:"mb-10"}," SMTP ",-1)),(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("div",l,[(0,r.createVNode)(b,{value:n.value.from,"onUpdate:value":t[2]||(t[2]=e=>n.value.from=e),mode:n.mode,label:"Sender",placeholder:"e.g. admin@example.com"},null,8,["value","mode"])])]),(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("div",u,[(0,r.createVNode)(b,{value:n.value.smarthost,"onUpdate:value":t[3]||(t[3]=e=>n.value.smarthost=e),mode:n.mode,label:"Host",placeholder:"e.g. 192.168.1.121:587"},null,8,["value","mode"])]),(0,r.createElementVNode)("div",d,[(0,r.createVNode)(y,{value:n.value.requireTLS,"onUpdate:value":t[4]||(t[4]=e=>n.value.requireTLS=e),mode:n.mode,class:"mt-20",label:"Use TLS"},null,8,["value","mode"])])]),n.namespace?((0,r.openBlock)(),(0,r.createElementBlock)("div",h,[(0,r.createElementVNode)("div",p,[(0,r.createVNode)(b,{value:n.value.authUsername,"onUpdate:value":t[5]||(t[5]=e=>n.value.authUsername=e),mode:n.mode,label:e.t("monitoring.alertmanagerConfig.email.username"),placeholder:"e.g. John"},null,8,["value","mode","label"])])])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",f,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(w,{key:0,"initial-key":g.initialAuthPasswordSecretKey,mode:n.mode,"initial-name":g.initialAuthPasswordSecretName,namespace:n.namespace,disabled:n.mode===g.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.email.password"),onUpdateSecretName:v.updateAuthPasswordSecretName,onUpdateSecretKey:v.updateAuthPasswordSecretKey},null,8,["initial-key","mode","initial-name","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(E,{key:1,color:"error"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)])),_:1}))]),(0,r.createVNode)(_,{value:n.value,class:"mb-20",mode:n.mode,namespace:n.namespace,"onUpdate:value":t[6]||(t[6]=t=>e.$emit("input",t))},null,8,["value","mode","namespace"])])}var g=n(79380),v=n(42200),b=n(99383),y=n(88703),w=n(14220),E={emits:["input"],components:{Checkbox:v.S,LabeledInput:g.o,SimpleSecretSelector:y.A,TLS:b.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},namespace:{type:String,default:""}},data(){return this.value["sendResolved"]=this.value.sendResolved||!1,this.value["requireTLS"]=this.value.requireTLS||!1,{view:w.nW,initialAuthPasswordSecretName:this.value?.authPassword?.name?this.value.authPassword.name:"",initialAuthPasswordSecretKey:this.value.authPassword?.key?this.value.authPassword.key:"",none:"__[[NONE]]__"}},methods:{updateAuthPasswordSecretName(e){const t=this.value.authPassword?.key||"";this.value.authPassword?e===this.none?delete this.value.authPassword:this.value.authPassword={key:t,name:e}:this.value["authPassword"]={key:"",name:e}},updateAuthPasswordSecretKey(e){const t=this.value.authPassword?.name||"";this.value.authPassword?this.value.authPassword={name:t,key:e}:this.value["authPassword"]={name:"",key:e}}}},_=n(47433);const S=(0,_.A)(E,[["render",m]]);var k=S},72420:function(e,t,n){"use strict";n.r(t),n.d(t,{TARGETS:function(){return O},TYPES:function(){return I},default:function(){return P}});var r=n(9274);const i={class:"row mb-20"},a={class:"row mb-20"},o={class:"col span-12"},s={class:"row mb-20"},l={class:"row"},c={class:"col span-12"},u={class:"responders-heading"},d={class:"row responder"},h={class:"col span-6"},p={key:0},f={class:"col-span-6 target-container"},m={key:0};function g(e,t,n,g,v,b){const y=(0,r.resolveComponent)("SimpleSecretSelector"),w=(0,r.resolveComponent)("Banner"),E=(0,r.resolveComponent)("LabeledInput"),_=(0,r.resolveComponent)("Checkbox"),S=(0,r.resolveComponent)("Select"),k=(0,r.resolveComponent)("InputWithSelect"),x=(0,r.resolveComponent)("ArrayList");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[t[5]||(t[5]=(0,r.createElementVNode)("div",{class:"row"},[(0,r.createElementVNode)("div",{class:"col span-12"},[(0,r.createElementVNode)("h3",null,"Target")])],-1)),(0,r.createElementVNode)("div",i,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(y,{key:0,"initial-key":v.initialApiKeySecretKey,mode:n.mode,"initial-name":v.initialApiKeySecretName,namespace:n.namespace,disabled:n.mode===v.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.opsgenie.apiKey"),onUpdateSecretName:b.updateApiKeySecretName,onUpdateSecretKey:b.updateApiKeySecretKey},null,8,["initial-key","mode","initial-name","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(w,{key:1,color:"error"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)])),_:1}))]),(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",o,[(0,r.createVNode)(E,{value:n.value.httpConfig.proxyURL,"onUpdate:value":t[0]||(t[0]=e=>n.value.httpConfig.proxyURL=e),mode:n.mode,label:"Proxy URL",placeholder:"e.g. http://my-proxy/"},null,8,["value","mode"])])]),(0,r.createElementVNode)("div",s,[(0,r.createVNode)(_,{value:n.value.sendResolved,"onUpdate:value":t[1]||(t[1]=e=>n.value.sendResolved=e),mode:n.mode,label:"Enable send resolved alerts"},null,8,["value","mode"])]),(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("div",c,[t[4]||(t[4]=(0,r.createElementVNode)("h3",null,"Responders",-1)),(0,r.createVNode)(x,{value:v.responders,"onUpdate:value":t[2]||(t[2]=e=>v.responders=e),mode:n.mode,"default-add-value":v.defaultResponder,"show-header":!0},{"column-headers":(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["row",{"mb-15":b.isView,"mb-10":!b.isView}])},t[3]||(t[3]=[(0,r.createElementVNode)("div",{class:"col span-6"},[(0,r.createElementVNode)("span",{class:"text-label"},"Type")],-1),(0,r.createElementVNode)("div",{class:"col span-6 send-to"},[(0,r.createElementVNode)("span",{class:"text-label"},"Send To")],-1)]),2)])])),columns:(0,r.withCtx)((e=>[(0,r.createElementVNode)("div",d,[(0,r.createElementVNode)("div",h,[b.isView?((0,r.openBlock)(),(0,r.createElementBlock)("span",p,(0,r.toDisplayString)(b.typeLabel(e.row.value.type)),1)):((0,r.openBlock)(),(0,r.createBlock)(S,{key:1,value:e.row.value.type,"onUpdate:value":t=>e.row.value.type=t,mode:n.mode,options:v.TYPES},null,8,["value","onUpdate:value","mode","options"]))]),(0,r.createElementVNode)("div",f,[b.isView?((0,r.openBlock)(),(0,r.createElementBlock)("span",m,(0,r.toDisplayString)(b.targetLabel(e.row.value.target))+": "+(0,r.toDisplayString)(e.row.value.value),1)):((0,r.openBlock)(),(0,r.createBlock)(k,{key:1,class:"target",mode:n.mode,options:v.TARGETS,"select-value":e.row.value.target,"text-value":e.row.value.value,"onUpdate:value":t=>b.updateResponder(t,e.row.value)},null,8,["mode","options","select-value","text-value","onUpdate:value"]))])])])),_:1},8,["value","mode","default-add-value"])])])])}var v=n(39569),b=n(79380),y=n(38569),w=n(42200);const E=["disabled","placeholder"];function _(e,t,n,i,a,o){const s=(0,r.resolveComponent)("LabeledSelect"),l=(0,r.resolveComponent)("Select"),c=(0,r.resolveComponent)("LabeledInput");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)([{"select-after":!n.selectBeforeText},"input-container row"])},[n.selectLabel?((0,r.openBlock)(),(0,r.createBlock)(s,{key:0,value:a.selected,"onUpdate:value":[t[0]||(t[0]=e=>a.selected=e),o.change],label:n.selectLabel,class:(0,r.normalizeClass)({"in-input":!e.isView}),options:n.options,searchable:!1,clearable:!1,disabled:n.disabled||e.isView,taggable:n.taggable,"create-option":e=>({label:e,value:e}),multiple:!1,mode:e.mode,"option-label":n.optionLabel,placement:e.$attrs.placement?e.$attrs.placement:null,"v-bind":e.$attrs,rules:n.selectRules},null,8,["value","label","class","options","disabled","taggable","create-option","mode","option-label","placement","v-bind","rules","onUpdate:value"])):((0,r.openBlock)(),(0,r.createBlock)(l,{key:1,value:a.selected,"onUpdate:value":[t[1]||(t[1]=e=>a.selected=e),o.change],options:n.options,searchable:n.searchable,disabled:n.disabled||e.isView,clearable:!1,class:"in-input",taggable:n.taggable,"create-option":e=>({label:e,value:e}),multiple:!1,mode:e.mode,"option-label":n.optionLabel,placement:e.$attrs.placement?e.$attrs.placement:null,"v-bind":e.$attrs},null,8,["value","options","searchable","disabled","taggable","create-option","mode","option-label","placement","v-bind","onUpdate:value"])),n.textLabel||n.textRules.length>0?((0,r.openBlock)(),(0,r.createBlock)(c,(0,r.mergeProps)({key:2,ref:"text",value:a.string,"onUpdate:value":t[2]||(t[2]=e=>a.string=e),class:"input-string col span-8",label:n.textLabel,placeholder:n.placeholder,disabled:n.disabled||n.textDisabled,required:n.textRequired,mode:e.mode,rules:n.textRules},e.$attrs,{"onUpdate:value":o.change}),{label:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"label",{},void 0,!0)])),suffix:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"suffix",{},void 0,!0)])),_:3},16,["value","label","placeholder","disabled","required","mode","rules","onUpdate:value"])):(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("input",{key:3,ref:"text","onUpdate:modelValue":t[3]||(t[3]=e=>a.string=e),class:"input-string",disabled:e.isView,placeholder:n.placeholder,autocomplete:"off",onInput:t[4]||(t[4]=(...e)=>o.change&&o.change(...e))},null,40,E)),[[r.vModelText,a.string]])],2)}var S=n(63503),k=n(8077),x={name:"InputWithSelect",emits:["update:value"],components:{LabeledInput:b.o,LabeledSelect:k.A,Select:y.A},mixins:[S.A],props:{disabled:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},taggable:{type:Boolean,default:!1},selectLabel:{type:String,default:""},selectValue:{type:String,default:null},optionLabel:{type:String,default:"label"},options:{type:Array,required:!0},selectBeforeText:{type:Boolean,default:!0},textLabel:{type:String,default:""},textRequired:{type:Boolean,default:!1},textDisabled:{type:Boolean,default:!1},textValue:{type:[String,Number],default:""},placeholder:{type:String,default:""},textRules:{default:()=>[],type:Array},selectRules:{default:()=>[],type:Array}},data(){return{selected:this.selectValue||this.options[0].value,string:this.textValue}},computed:{canPaginate(){return!1}},methods:{focus(){const e=this.$refs.text;e&&e.focus()},change(){this.$emit("update:value",{selected:this.selected,text:this.string})}},watch:{textValue(e){this.string=e}}},A=(n(32254),n(47433));const N=(0,A.A)(x,[["render",_],["__scopeId","data-v-035f9ce5"]]);var C=N,T=n(88703),R=n(14220);const O=[{label:"Id",value:"id"},{label:"Name",value:"name"},{label:"Username",value:"username"}],I=[{label:"Team",value:"team"},{label:"User",value:"user"},{label:"Escalation",value:"escalation"},{label:"Schedule",value:"schedule"}];var L={components:{ArrayList:v.A,Checkbox:w.S,InputWithSelect:C,LabeledInput:b.o,Select:y.A,SimpleSecretSelector:T.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},namespace:{type:String,default:""}},data(){this.value["httpConfig"]=this.value.httpConfig||{},this.value["sendResolved"]="boolean"!==typeof this.value.sendResolved||this.value.send_resolved,this.value["responders"]=this.value.responders||[];const e=this.value.responders.map((e=>{const t=O.find((t=>e[t.value]));return{type:e.type,target:t.value,value:e[t.value]}}));return{defaultResponder:{type:I[0].value,target:O[0].value,value:""},responders:e,TARGETS:O,TYPES:I,view:R.nW,initialApiKeySecretName:this.value?.apiKey?.name?this.value.apiKey.name:"",initialApiKeySecretKey:this.value?.apiKey?.key?this.value.apiKey.key:"",none:"__[[NONE]]__"}},computed:{isView(){return this.mode===R.nW}},watch:{responders:{deep:!0,handler(){const e=this.responders.map((e=>({type:e.type,[e.target]:e.value})));this.value["responders"]=e}}},methods:{updateResponder({selected:e,text:t},n){n.target=e,n.value=t},typeLabel(e){return I.find((t=>t.value===e)).label},targetLabel(e){return O.find((t=>t.value===e)).label},updateApiKeySecretName(e){const t=this.value.apiKey?.key||"";this.value.apiKey?e===this.none?delete this.value.apiKey:this.value.apiKey={key:t,name:e}:this.value["apiKey"]={key:"",name:e}},updateApiKeySecretKey(e){const t=this.value.apiKey?.name||"";this.value.apiKey?this.value.apiKey={name:t,key:e}:this.value["apiKey"]={name:"",key:e}}}};n(7156);const D=(0,A.A)(L,[["render",g],["__scopeId","data-v-174af1a6"]]);var P=D},12772:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var r=n(9274);const i={key:0,class:"row mb-20"},a={class:"col span-6"},o={key:1,class:"row mb-20"},s={class:"row mb-20"},l={class:"col span-12"},c={class:"row"};function u(e,t,n,u,d,h){const p=(0,r.resolveComponent)("LabeledSelect"),f=(0,r.resolveComponent)("SimpleSecretSelector"),m=(0,r.resolveComponent)("Banner"),g=(0,r.resolveComponent)("LabeledInput"),v=(0,r.resolveComponent)("Checkbox");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[t[3]||(t[3]=(0,r.createElementVNode)("div",{class:"row"},[(0,r.createElementVNode)("div",{class:"col span-12"},[(0,r.createElementVNode)("h3",null,"Target")])],-1)),n.namespace?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createVNode)(p,{value:d.integrationType,"onUpdate:value":t[0]||(t[0]=e=>d.integrationType=e),options:d.integrationTypeOptions,mode:n.mode,label:"Integration Type"},null,8,["value","options","mode"])])])):(0,r.createCommentVNode)("",!0),n.namespace?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,["Events API v2"===d.integrationType?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,"initial-key":d.initialRoutingKeySecretKey,mode:n.mode,"initial-name":d.initialRoutingKeySecretName,namespace:n.namespace,disabled:n.mode===d.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.pagerDuty.routingKey"),onUpdateSecretName:h.updateRoutingKeySecretName,onUpdateSecretKey:h.updateRoutingKeySecretKey},null,8,["initial-key","mode","initial-name","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):(0,r.createCommentVNode)("",!0),"Prometheus"===d.integrationType?((0,r.openBlock)(),(0,r.createBlock)(f,{key:1,"initial-key":d.initialServiceKeySecretKey,mode:n.mode,"initial-name":d.initialServiceKeySecretName,namespace:n.namespace,disabled:n.mode===d.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.pagerDuty.serviceKey"),onUpdateSecretName:h.updateServiceKeySecretName,onUpdateSecretKey:h.updateServiceKeySecretKey},null,8,["initial-key","mode","initial-name","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):(0,r.createCommentVNode)("",!0)])):((0,r.openBlock)(),(0,r.createBlock)(m,{key:2,color:"error"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)])),_:1})),(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("div",l,[(0,r.createVNode)(g,{value:n.value.httpConfig.proxyURL,"onUpdate:value":t[1]||(t[1]=e=>n.value.httpConfig.proxyURL=e),mode:n.mode,label:"Proxy URL",placeholder:"e.g. http://my-proxy/","data-testid":"v2-monitoring-receiver-pagerduty-proxy-url"},null,8,["value","mode"])])]),(0,r.createElementVNode)("div",c,[(0,r.createVNode)(v,{value:n.value.sendResolved,"onUpdate:value":t[2]||(t[2]=e=>n.value.sendResolved=e),mode:n.mode,label:"Enable send resolved alerts"},null,8,["value","mode"])])])}var d=n(79380),h=n(8077),p=n(42200),f=n(88703),m=n(14220),g={components:{Checkbox:p.S,LabeledInput:d.o,LabeledSelect:h.A,SimpleSecretSelector:f.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},namespace:{type:String,default:""}},data(){this.value["httpConfig"]=this.value.httpConfig||{},this.value["sendResolved"]="boolean"!==typeof this.value.send_resolved||this.value.send_resolved;const e={"Events API v2":"routingKey",Prometheus:"serviceKey"},t=Object.keys(e);return{integrationMapping:e,integrationTypeOptions:t,integrationType:this.value.serviceKey?t[1]:t[0],initialRoutingKeySecretKey:this.value.routingKey?.key||"",initialRoutingKeySecretName:this.value.routingKey?.name||"",initialServiceKeySecretKey:this.value.serviceKey?.key||"",initialServiceKeySecretName:this.value.serviceKey?.name||"",view:m.nW,none:"__[[NONE]]__"}},watch:{integrationType(){this.integrationTypeOptions.forEach((e=>{this.value[this.integrationMapping[e]]=null}))}},methods:{updateRoutingKeySecretName(e){const t=this.value.routingKey?.key||"";this.value.routingKey?e===this.none?delete this.value.routingKey:this.value.routingKey={key:t,name:e}:this.value["routingKey"]={key:"",name:e}},updateRoutingKeySecretKey(e){const t=this.value.routingKey?.name||"";this.value.routingKey?this.value.routingKey={name:t,key:e}:this.value["routingKey"]={name:"",key:e}},updateServiceKeySecretName(e){const t=this.value.serviceKey?.key||"";this.value.serviceKey?e===this.none?delete this.value.serviceKey:this.value.serviceKey={key:t,name:e}:this.value["serviceKey"]={key:"",name:e}},updateServiceKeySecretKey(e){const t=this.value.serviceKey?.name||"";this.value.serviceKey?this.value.serviceKey={name:t,key:e}:this.value["serviceKey"]={name:"",key:e}}}},v=n(47433);const b=(0,v.A)(g,[["render",u]]);var y=b},33427:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var r=n(9274);const i={class:"row mb-20"},a={class:"helper-text text-right mt-10"},o={class:"row mb-20"},s={class:"col span-6"},l={class:"col span-6"},c={class:"row"};function u(e,t,n,u,d,h){const p=(0,r.resolveComponent)("SimpleSecretSelector"),f=(0,r.resolveComponent)("Banner"),m=(0,r.resolveComponent)("t"),g=(0,r.resolveComponent)("LabeledInput"),v=(0,r.resolveComponent)("Checkbox");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[t[3]||(t[3]=(0,r.createElementVNode)("div",{class:"row"},[(0,r.createElementVNode)("div",{class:"col span-12"},[(0,r.createElementVNode)("h3",null,"Target")])],-1)),(0,r.createElementVNode)("div",i,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(p,{key:0,"initial-key":d.initialSecretKey,mode:n.mode,"initial-name":d.initialSecretName,tooltip:e.t("alertmanagerConfigReceiver.slack.apiUrlTooltip"),namespace:n.namespace,disabled:n.mode===d.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.slack.apiUrl"),onUpdateSecretName:h.updateSecretName,onUpdateSecretKey:h.updateSecretKey},null,8,["initial-key","mode","initial-name","tooltip","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(f,{key:1,color:"error"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)])),_:1})),(0,r.createElementVNode)("p",a,[(0,r.createVNode)(m,{k:"monitoringReceiver.slack.info",raw:!0})])]),(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",s,[(0,r.createVNode)(g,{value:n.value.channel,"onUpdate:value":t[0]||(t[0]=e=>n.value.channel=e),mode:n.mode,label:"Default Channel",placeholder:"e.g. #example"},null,8,["value","mode"])]),(0,r.createElementVNode)("div",l,[(0,r.createVNode)(g,{value:n.value.httpConfig.proxyURL,"onUpdate:value":t[1]||(t[1]=e=>n.value.httpConfig.proxyURL=e),mode:n.mode,label:"Proxy URL",placeholder:"e.g. http://my-proxy/"},null,8,["value","mode"])])]),(0,r.createElementVNode)("div",c,[(0,r.createVNode)(v,{value:n.value.sendResolved,"onUpdate:value":t[2]||(t[2]=e=>n.value.sendResolved=e),mode:n.mode,label:"Enable send resolved alerts"},null,8,["value","mode"])])])}var d=n(79380),h=n(42200),p=n(9980),f=n(88703),m=n(14220),g={components:{Banner:p.l,Checkbox:h.S,LabeledInput:d.o,SimpleSecretSelector:f.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},namespace:{type:String,default:""}},data(){return this.value["httpConfig"]=this.value.httpConfig||{},this.value["sendResolved"]=this.value.sendResolved||!1,this.mode===m.YQ&&(this.value.text=this.value.text||'{{ template "slack.rancher.text" . }}'),{view:m.nW,initialSecretKey:this.value?.apiURL?.key?this.value.apiURL.key:"",initialSecretName:this.value.apiURL?.name?this.value.apiURL.name:"",none:"__[[NONE]]__"}},methods:{updateSecretName(e){const t=this.value.apiURL?.key||"";this.value.apiURL?e===this.none?delete this.value.apiURL:this.value.apiURL={key:t,name:e}:this.value["apiURL"]={key:"",name:e}},updateSecretKey(e){const t=this.value.apiURL?.name||"";this.value.apiURL?this.value.apiURL={key:e,name:t}:this.value["apiURL"]={key:e,name:""}}}},v=n(47433);const b=(0,v.A)(g,[["render",u]]);var y=b},4496:function(e,t,n){"use strict";n.r(t),n.d(t,{ALIBABA_CLOUD_SMS_URL:function(){return D},MS_TEAMS_URL:function(){return L},WEBHOOK_TYPES:function(){return P},default:function(){return F}});var r=n(9274);const i={class:"row mb-20"},a={class:"row mb-20"},o={class:"col span-12"},s={class:"row mb-20"},l={class:"row mb-20"},c={class:"col span-12"},u={class:"row mb-20"};function d(e,t,n,d,h,p){const f=(0,r.resolveComponent)("Banner"),m=(0,r.resolveComponent)("LabeledSelect"),g=(0,r.resolveComponent)("LabeledInput"),v=(0,r.resolveComponent)("SimpleSecretSelector"),b=(0,r.resolveComponent)("Checkbox"),y=(0,r.resolveComponent)("TLS"),w=(0,r.resolveComponent)("Auth"),E=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[n.mode!==h.view?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,color:"info"},null,512)),[[E,e.t("monitoringReceiver.webhook.banner",{},e.raw=!0)]]):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",i,[(0,r.createVNode)(m,{value:h.selectedWebhookType,"onUpdate:value":[t[0]||(t[0]=e=>h.selectedWebhookType=e),t[1]||(t[1]=e=>p.updateWebhookType(e))],disabled:n.mode===h.view,label:e.t("monitoringReceiver.webhook.add.selectWebhookType"),placeholder:e.t("monitoringReceiver.webhook.add.generic"),"localized-label":!0,options:h.webhookOptons},null,8,["value","disabled","label","placeholder","options"])]),t[7]||(t[7]=(0,r.createElementVNode)("div",{class:"row"},[(0,r.createElementVNode)("div",{class:"col span-12"},[(0,r.createElementVNode)("h3",{class:"mb-0"}," Target ")])],-1)),h.showNamespaceBanner?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)(f,{key:1,color:"info"},null,512)),[[E,e.t("monitoringReceiver.webhook.modifyNamespace",{},e.raw=!0)]]):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",o,[(0,r.createVNode)(g,{value:n.value.url,"onUpdate:value":t[2]||(t[2]=e=>n.value.url=e),mode:n.mode,label:e.t("monitoring.alertmanagerConfig.webhook.url"),tooltip:e.t("monitoring.alertmanagerConfig.webhook.urlSecretTooltip")},null,8,["value","mode","label","tooltip"])])]),(0,r.createElementVNode)("div",s,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(v,{key:0,"initial-key":h.initialUrlSecretKey,"initial-name":h.initialUrlSecretName,mode:n.mode,namespace:n.namespace,disabled:n.mode===h.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.webhook.urlSecret"),onUpdateSecretName:p.updateUrlSecretName,onUpdateSecretKey:p.updateUrlSecretKey},null,8,["initial-key","initial-name","mode","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(f,{key:1,color:"error"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)])),_:1}))]),(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("div",c,[(0,r.createVNode)(g,{value:n.value.httpConfig.proxyURL,"onUpdate:value":t[3]||(t[3]=e=>n.value.httpConfig.proxyURL=e),mode:n.mode,label:e.t("monitoringReceiver.shared.proxyUrl.label"),placeholder:e.t("monitoringReceiver.shared.proxyUrl.placeholder")},null,8,["value","mode","label","placeholder"])])]),(0,r.createElementVNode)("div",u,[(0,r.createVNode)(b,{value:n.value.sendResolved,"onUpdate:value":t[4]||(t[4]=e=>n.value.sendResolved=e),mode:n.mode,label:e.t("monitoringReceiver.shared.sendResolved.label")},null,8,["value","mode","label"])]),(0,r.createVNode)(y,{value:n.value.httpConfig,"onUpdate:value":t[5]||(t[5]=e=>n.value.httpConfig=e),class:"mb-20",mode:n.mode,namespace:n.namespace},null,8,["value","mode","namespace"]),(0,r.createVNode)(w,{value:n.value.httpConfig,"onUpdate:value":t[6]||(t[6]=e=>n.value.httpConfig=e),mode:n.mode,namespace:n.namespace},null,8,["value","mode","namespace"])])}var h=n(79380),p=n(8077),f=n(42200),m=n(9980),g=n(88703),v=n(14220),b=n(99383);const y={class:"row"},w={class:"col span-6"},E={class:"row mb-20"},_={class:"col span-12"},S={key:0,class:"row mb-20"},k={key:1,class:"row mb-20"},x={key:2,class:"row mb-20"};function A(e,t,n,i,a,o){const s=(0,r.resolveComponent)("LabeledSelect"),l=(0,r.resolveComponent)("SimpleSecretSelector"),c=(0,r.resolveComponent)("Banner");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("div",y,[(0,r.createElementVNode)("div",w,[(0,r.createElementVNode)("h3",null,(0,r.toDisplayString)(e.t("monitoringReceiver.auth.label")),1)])]),(0,r.createElementVNode)("div",E,[(0,r.createElementVNode)("div",_,[(0,r.createVNode)(s,{value:a.authType,"onUpdate:value":[t[0]||(t[0]=e=>a.authType=e),t[1]||(t[1]=e=>o.initializeType(a.authOptions,a.authType))],disabled:n.mode===a.view,options:a.authOptions,label:"Auth Type"},null,8,["value","disabled","options"])])]),"basicAuth"===a.authType?((0,r.openBlock)(),(0,r.createElementBlock)("div",S,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,"initial-key":a.initialBasicAuthUsernameSecretKey,"initial-name":a.initialBasicAuthUsernameSecretName,mode:n.mode,namespace:n.namespace,disabled:n.mode===a.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.auth.basicAuthUsername"),onUpdateSecretName:o.updateBasicAuthUsernameSecretName,onUpdateSecretKey:o.updateBasicAuthUsernameSecretKey},null,8,["initial-key","initial-name","mode","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(c,{key:1,color:"error"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)])),_:1}))])):(0,r.createCommentVNode)("",!0),"basicAuth"===a.authType?((0,r.openBlock)(),(0,r.createElementBlock)("div",k,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,"initial-key":a.initialBasicAuthPasswordSecretKey,"initial-name":a.initialBasicAuthPasswordSecretName,mode:n.mode,namespace:n.namespace,disabled:n.mode===a.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.auth.basicAuthPassword"),onUpdateSecretName:o.updateBasicAuthPasswordSecretName,onUpdateSecretKey:o.updateBasicAuthPasswordSecretKey},null,8,["initial-key","initial-name","mode","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(c,{key:1,color:"error"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)])),_:1}))])):(0,r.createCommentVNode)("",!0),"bearerTokenSecret"===a.authType?((0,r.openBlock)(),(0,r.createElementBlock)("div",x,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,"initial-key":a.initialBearerTokenSecretKey,"initial-name":a.initialBearerTokenSecretName,mode:n.mode,namespace:n.namespace,disabled:n.mode===a.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.auth.bearerTokenSecret"),onUpdateSecretName:o.updateBearerTokenSecretName,onUpdateSecretKey:o.updateBearerTokenSecretKey},null,8,["initial-key","initial-name","mode","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(c,{key:1,color:"error"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)])),_:1}))])):(0,r.createCommentVNode)("",!0)])}var N=n(3514),C=n.n(N),T={components:{LabeledSelect:p.A,SimpleSecretSelector:g.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},namespace:{type:String,required:!0}},data(){this.value["basicAuth"]=this.value.basicAuth||{};const e=[{value:"none",label:this.t("monitoringReceiver.auth.none.label")},{value:"basicAuth",label:this.t("monitoringReceiver.auth.basicAuth.label"),default:{}},{value:"bearerTokenSecret",label:this.t("monitoringReceiver.auth.bearerToken.label"),default:{}}],t=e.map((e=>e.value)),n=t.find((e=>!C()(this.value[e])))||t[0];return this.initializeType(e,n),{authOptions:e,authTypes:t,authType:n,view:v.nW,none:"__[[NONE]]__",initialBearerTokenSecretName:this.value?.bearerTokenSecret?.name?this.value.bearerTokenSecret.name:"",initialBearerTokenSecretKey:this.value?.bearerTokenSecret?.key?this.value.bearerTokenSecret.key:"",initialBasicAuthUsernameSecretName:this.value?.basicAuth?.username?.name?this.value.basicAuth.username.name:"",initialBasicAuthUsernameSecretKey:this.value?.basicAuth?.username?.key?this.value.basicAuth.username.key:"",initialBasicAuthPasswordSecretName:this.value?.basicAuth?.password?.name?this.value.basicAuth.password.name:"",initialBasicAuthPasswordSecretKey:this.value?.basicAuth?.password?.key?this.value.basicAuth.password.key:""}},methods:{initializeType(e,t){e.forEach((e=>{e.value===t&&"none"!==t?this.value.authOption.value=this.value[e.value]||e.default:"undefined"!==typeof this.value[e.value]&&delete this.value[e.value]}))},updateBearerTokenSecretName(e){const t=this.value.bearerTokenSecret?.key||"";this.value.bearerTokenSecret?e===this.none?delete this.value.bearerTokenSecret:this.value.bearerTokenSecret={key:t,name:e}:this.value["bearerTokenSecret"]={key:"",name:e}},updateBearerTokenSecretKey(e){const t=this.value.bearerTokenSecret?.name||"";this.value.bearerTokenSecret?this.value.bearerTokenSecret={name:t,key:e}:this.value["bearerTokenSecret"]={name:"",key:e}},updateBasicAuthUsernameSecretName(e){this.value.basicAuth||(this.value["basicAuth"]={username:{key:"",name:e},password:{key:"",name:""}});const t=this.value.basicAuth.username?.key||"";this.value.basicAuth.username?e===this.none?delete this.value.basicAuth.username:this.value.basicAuth.username={key:t,name:e}:this.value.basicAuth["username"]={key:"",name:e}},updateBasicAuthUsernameSecretKey(e){this.value.basicAuth||(this.value["basicAuth"]={username:{key:e,name:""},password:{key:"",name:""}});const t=this.value.basicAuth.username?.name||"";this.value.basicAuth.username?this.value.basicAuth.username={key:e,name:t}:this.value.basicAuth["username"]={key:e,name:""}},updateBasicAuthPasswordSecretName(e){this.value.basicAuth||(this.value["basicAuth"]={username:{key:"",name:""},password:{key:"",name:e}});const t=this.value.basicAuth.password?.key||"";this.value.basicAuth.password?e===this.none?delete this.value.basicAuth.password:this.value.basicAuth.password={key:t,name:e}:this.value.basicAuth["password"]={key:"",name:e}},updateBasicAuthPasswordSecretKey(e){this.value.basicAuth||(this.value["basicAuth"]={username:{key:"",name:""},password:{key:e,name:""}});const t=this.value.basicAuth.password?.name||"";this.value.basicAuth.password?this.value.basicAuth.password={key:e,name:t}:this.value.basicAuth["password"]={key:e,name:""}}}},R=n(47433);const O=(0,R.A)(T,[["render",A]]);var I=O;const L="http://rancher-alerting-drivers-prom2teams.cattle-monitoring-system.svc:8089/v2/connector",D="http://rancher-alerting-drivers-sachet.cattle-monitoring-system.svc:9876/alert",P={ALIBABA_CLOUD_SMS:"alibaba-cloud-sms",GENERIC:"generic",MS_TEAMS:"ms-teams"};var M={components:{Auth:I,Banner:m.l,Checkbox:f.S,LabeledInput:h.o,LabeledSelect:p.A,SimpleSecretSelector:g.A,TLS:b.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},namespace:{type:String,default:""}},data(e){this.value["httpConfig"]=this.value.httpConfig||{},this.value["sendResolved"]=this.value.sendResolved||!1;const t=this.value.url===L||this.value.url===D;return{showNamespaceBanner:t&&this.mode!==v.nW,view:v.nW,initialUrlSecretName:this.value?.urlSecret?.name?this.value.urlSecret.name:"",initialUrlSecretKey:this.value?.urlSecret?.key?this.value.urlSecret.key:"",webhookOptons:[{label:this.t("monitoringReceiver.webhook.add.generic"),value:P.GENERIC},{label:this.t("monitoringReceiver.webhook.add.msTeams"),value:P.MS_TEAMS},{label:this.t("monitoringReceiver.webhook.add.alibabaCloudSms"),value:P.ALIBABA_CLOUD_SMS}],msTeamsUrl:L,alibabaCloudSmsUrl:D,selectedWebhookType:this.getTypeFromUrl(this.value.url),none:"__[[NONE]]__"}},methods:{getTypeFromUrl(e){switch(e){case L:return P.MS_TEAMS;case D:return P.ALIBABA_CLOUD_SMS;default:return P.GENERIC}},updateUrlSecretName(e){const t=this.value.urlSecret?.key||"";this.value.urlSecret?e===this.none?delete this.value.urlSecret:this.value.urlSecret={key:t,name:e}:this.value["urlSecret"]={key:"",name:e}},updateUrlSecretKey(e){const t=this.value.urlSecret?.name||"";this.value.urlSecret?this.value.urlSecret={name:t,key:e}:this.value["urlSecret"]={name:"",key:e}},updateWebhookType(e){switch(e){case"ms-teams":this.value.url=this.msTeamsUrl,this.selectedWebhookType=P.MS_TEAMS;break;case"alibaba-cloud-sms":this.value.url=this.alibabaCloudSmsUrl,this.selectedWebhookType=P.ALIBABA_CLOUD_SMS;break;default:this.value.url="",this.selectedWebhookType=P.GENERIC}},updateWebhookUrl(e){this.value.url=e}}};const B=(0,R.A)(M,[["render",d]]);var F=B},54236:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var r=n(9274);const i={class:"mt-10"},a={class:"mb-10"},o={class:"description"};function s(e,t,n,s,l,c){const u=(0,r.resolveComponent)("Banner"),d=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("promptRemove.attemptingToRemove",{type:n.type}))+" ",1),(0,r.withDirectives)((0,r.createElementVNode)("span",o,null,512),[[d,c.resourceNames(n.names,e.t)]])]),(0,r.createVNode)(u,{color:"warning",class:"warning"},{default:(0,r.withCtx)((()=>[(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[d,e.t("fleet.workspaces.remove.warning",{},!0)]])])),_:1}),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(l.errors,((e,t)=>((0,r.openBlock)(),(0,r.createBlock)(u,{key:t,class:"",color:"error",label:e},null,8,["label"])))),128))])}var l=n(99726),c=n(92043),u=n(9980),d=n(65359),h=n(49845),p={name:"PromptRemoveFleetWorkspacesDialog",emits:["errors"],components:{Banner:u.l},props:{value:{type:Array,default:()=>[]},names:{type:Array,default:()=>[]},type:{type:String,required:!0},close:{type:Function,required:!0}},data(){return{vendor:(0,h.f7)(),errors:[]}},computed:{...(0,d.aH)("action-menu",["toRemove"]),...(0,d.L8)({t:"i18n/t"})},methods:{resourceNames:c.Nr,async remove(e){try{await Promise.all(this.value.map((e=>e.remove()))),this.close(e)}catch(t){this.errors=(0,l.rz)(t),e(!1)}}}},f=(n(63923),n(47433));const m=(0,f.A)(p,[["render",s],["__scopeId","data-v-00b8b38f"]]);var g=m},65966:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(9274);const i={key:0,class:"text info mb-10 mt-20"},a={key:1,class:"text-warning mb-10 mt-20"};function o(e,t,n,o,s,l){const c=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("promptRemove.attemptingToRemove",{type:n.type}))+" ",1),(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[c,e.resourceNames(e.names,e.t)]]),e.info?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[c,e.info]])])):(0,r.createCommentVNode)("",!0),e.warning?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,(0,r.toDisplayString)(e.warning),1)):(0,r.createCommentVNode)("",!0)])}var s=n(55105),l={name:"GlobalRolePromptRemove",mixins:[s["default"]],props:{value:{type:Array,default:()=>[]},type:{type:String,required:!0}}},c=(n(19592),n(47433));const u=(0,c.A)(l,[["render",o],["__scopeId","data-v-33b519e4"]]);var d=u},75386:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var r=n(9274);const i={class:"mb-10"},a={class:"display-name"},o={class:"delete-warning"},s={class:"mt-10"},l={key:0,class:"mt-20 remove-project-dialog"},c={class:"mt-10 ml-20"};function u(e,t,n,u,d,h){const p=(0,r.resolveComponent)("Checkbox"),f=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("div",i,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("promptRemove.attemptingToRemove",{type:n.type}))+" ",1),(0,r.createElementVNode)("span",a,(0,r.toDisplayString)(`${h.displayName}.`),1),h.canSeeProjectlessNamespaces?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createElementVNode)("span",o,(0,r.toDisplayString)(e.t("promptRemove.willDeleteAssociatedNamespaces")),1),t[1]||(t[1]=(0,r.createTextVNode)()),t[2]||(t[2]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.withDirectives)((0,r.createElementVNode)("div",s,null,512),[[f,h.resourceNames(h.names,e.t)]])],64))]),h.filteredNamespaces.length>0&&h.canSeeProjectlessNamespaces?((0,r.openBlock)(),(0,r.createElementBlock)("div",l,[(0,r.createVNode)(p,{value:d.deleteProjectNamespaces,"onUpdate:value":t[0]||(t[0]=e=>d.deleteProjectNamespaces=e),label:e.t("promptRemove.deleteAssociatedNamespaces")},null,8,["value","label"]),(0,r.createElementVNode)("div",c,[(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[f,h.resourceNames(h.names,e.t)]])])])):(0,r.createCommentVNode)("",!0)])])}var d=n(65359),h=n(2841),p=n(35664),f=n(42200),m=n(92043),g={name:"ProjectAndNamespacesPromptRemove",components:{Checkbox:f.S},props:{value:{type:Array,default:()=>[]},type:{type:String,required:!0}},async fetch(){this.allNamespaces=await this.$store.dispatch("cluster/findAll",{type:p.CU}),this.allProjects=await this.$store.dispatch("management/findAll",{type:p.Mc.PROJECT})},data(){return{deleteProjectNamespaces:!1,allNamespaces:[],allProjects:[]}},computed:{...(0,d.aH)("action-menu",["toRemove"]),...(0,d.L8)({t:"i18n/t"}),...(0,d.L8)(["currentCluster"]),currentProject(){return this.allProjects?this.value[0]:{}},filteredNamespaces(){return this.currentProject?this.allNamespaces.filter((e=>e.metadata.labels[h.yl]===this.currentProject.metadata?.name)):[]},displayName(){return this.currentProject?.spec?.displayName},names(){return this.filteredNamespaces.map((e=>e.nameDisplay)).slice(0,5)},canSeeProjectlessNamespaces(){return this.currentCluster.canUpdate}},methods:{resourceNames:m.Nr,remove(){return!(!this.deleteProjectNamespaces&&this.canSeeProjectlessNamespaces)&&Promise.all(this.filteredNamespaces.map((e=>e.remove()))).then((()=>!1))}}},v=(n(42266),n(47433));const b=(0,v.A)(g,[["render",u],["__scopeId","data-v-23844e28"]]);var y=b},22052:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(9274);const i={key:0,class:"text info mb-10 mt-20"},a={key:1,class:"text-warning mb-10 mt-20"};function o(e,t,n,o,s,l){const c=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("promptRemove.attemptingToRemove",{type:n.type}))+" ",1),(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[c,e.resourceNames(e.names,e.t)]]),e.info?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[c,e.info]])])):(0,r.createCommentVNode)("",!0),e.warning?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,(0,r.toDisplayString)(e.warning),1)):(0,r.createCommentVNode)("",!0)])}var s=n(55105),l={name:"RoleTemplatePromptRemove",mixins:[s["default"]],props:{value:{type:Array,default:()=>[]},type:{type:String,required:!0}}},c=(n(85659),n(47433));const u=(0,c.A)(l,[["render",o],["__scopeId","data-v-88ada8f8"]]);var d=u},84126:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var r=n(9274);const i={class:"mt-10"},a={class:"mb-30"},o={class:"body"},s={class:"mb-30"};function l(e,t,n,l,c,u){const d=(0,r.resolveComponent)("Checkbox"),h=(0,r.resolveComponent)("Banner"),p=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("promptRemove.attemptingToRemove",{type:n.type}))+" ",1),(0,r.withDirectives)((0,r.createElementVNode)("span",o,null,512),[[p,u.resourceNames(n.names,e.t)]])]),(0,r.createElementVNode)("div",s,[(0,r.createVNode)(d,{value:c.forceDelete,"onUpdate:value":t[0]||(t[0]=e=>c.forceDelete=e),label:e.t("promptForceRemove.forceDelete")},null,8,["value","label"])]),(0,r.createVNode)(h,{color:"warning","label-key":"promptForceRemove.podRemoveWarning"}),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(c.errors,((e,t)=>((0,r.openBlock)(),(0,r.createBlock)(h,{key:t,class:"",color:"error",label:e},null,8,["label"])))),128))])}var c=n(92043),u=n(9980),d=n(82212),h=n(65359),p=n(45250),f={name:"PromptRemovePodDialog",emits:["errors"],components:{Banner:u.l,Checkbox:d.A},props:{value:{type:Array,default:()=>[]},names:{type:Array,default:()=>[]},type:{type:String,required:!0},close:{type:Function,required:!0},doneLocation:{type:Object,default:()=>{}}},data(){return{errors:[],forceDelete:!1}},computed:{...(0,h.aH)("action-menu",["toRemove"]),...(0,h.L8)({t:"i18n/t"})},methods:{resourceNames:c.Nr,async remove(e){let t;this.doneLocation&&(t={...this.doneLocation});try{await Promise.all(this.value.map((e=>this.removePod(e)))),t&&!(0,p.isEmpty)(t)&&this.value?.[0]?.currentRouter().push(t),this.close()}catch(n){this.$emit("errors",n),e(!1)}},removePod(e){const t=this.forceDelete?{data:{gracePeriod:0,force:!0}}:void 0;return e.remove(t)}}},m=(n(54945),n(47433));const g=(0,m.A)(f,[["render",l],["__scopeId","data-v-f28e06b0"]]);var v=g},56943:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var r=n(9274);const i={key:0,class:"banner__icon","data-testid":"banner-icon"},a={key:1},o={key:2},s=["aria-label"];function l(e,t,n,l,c,u){const d=(0,r.resolveComponent)("t"),h=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["banner",{[e.color]:!0}]),role:"banner"},[e.icon?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("i",{class:(0,r.normalizeClass)(["icon icon-2x",e.icon])},null,2)])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["banner__content",{closable:e.closable,stacked:e.stacked,icon:e.icon}]),"data-testid":"banner-content"},[(0,r.renderSlot)(e.$slots,"default",{},(()=>[e.labelKey?((0,r.openBlock)(),(0,r.createBlock)(d,{key:0,k:e.labelKey,raw:!0},null,8,["k"])):e.messageLabel?((0,r.openBlock)(),(0,r.createElementBlock)("span",a,(0,r.toDisplayString)(e.messageLabel),1)):(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",o,null,512)),[[h,e.nlToBr(e.label)]])]),!0),e.closable?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"banner__content__closer",tabindex:"0",role:"button","aria-label":e.t("generic.close"),onClick:t[0]||(t[0]=t=>e.$emit("close")),onKeyup:[t[1]||(t[1]=(0,r.withKeys)((t=>e.$emit("close")),["enter"])),t[2]||(t[2]=(0,r.withKeys)((t=>e.$emit("close")),["space"]))]},t[3]||(t[3]=[(0,r.createElementVNode)("i",{"data-testid":"banner-close",class:"icon icon-close closer-icon"},null,-1)]),40,s)):(0,r.createCommentVNode)("",!0)],2)],2)}var c=n(92043),u=n(99726),d=(0,r.defineComponent)({props:{color:{type:String,default:"secondary"},label:{type:[String,Error,Object],default:null},labelKey:{type:String,default:null},icon:{type:String,default:null},closable:{type:Boolean,default:!1},stacked:{type:Boolean,default:!1}},emits:["close"],computed:{messageLabel(){return"string"!==typeof this.label?(0,u.As)(this.label):void 0}},methods:{nlToBr:c.Kn}}),h=(n(67394),n(47433));const p=(0,h.A)(d,[["render",l],["__scopeId","data-v-1a4e45d4"]]);var f=p},82212:function(e,t,n){"use strict";n.d(t,{A:function(){return w}});var r=n(9274);const i=["id","checked","value"],a=["tabindex","aria-label","aria-checked","aria-labelledby"],o=["id"],s=["tabindex"],l=["tabindex"],c={key:0,class:"checkbox-outer-container-description"},u={class:"checkbox-outer-container-extra"};function d(e,t,n,d,h,p){const f=(0,r.resolveComponent)("t"),m=(0,r.resolveDirective)("clean-tooltip"),g=(0,r.resolveDirective)("stripped-aria-label");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["checkbox-outer-container",{"v-popper--has-tooltip":e.hasTooltip}]),"data-checkbox-ctrl":""},[(0,r.createElementVNode)("label",{class:(0,r.normalizeClass)(["checkbox-container",{disabled:e.isDisabled}]),onKeydown:[t[2]||(t[2]=(0,r.withKeys)((0,r.withModifiers)((t=>e.clicked(t)),["prevent"]),["enter"])),t[3]||(t[3]=(0,r.withKeys)((0,r.withModifiers)((t=>e.clicked(t)),["prevent"]),["space"]))],onClick:t[4]||(t[4]=t=>e.clicked(t))},[(0,r.createElementVNode)("input",{id:e.id,checked:e.isChecked,value:e.valueWhenTrue,type:"checkbox",tabindex:"-1",onClick:t[0]||(t[0]=(0,r.withModifiers)((()=>{}),["stop","prevent"])),onKeyup:t[1]||(t[1]=(0,r.withKeys)((0,r.withModifiers)((()=>{}),["stop","prevent"]),["enter"]))},null,40,i),(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["checkbox-custom",{indeterminate:e.indeterminate}]),tabindex:e.isDisabled?-1:0,"aria-label":e.replacementLabel,"aria-checked":!!e.value,"aria-labelledby":e.labelKey||e.label?e.idForLabel:void 0,role:"checkbox"},null,10,a),e.$slots.label||e.label||e.labelKey||e.hasTooltip?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,class:(0,r.normalizeClass)(["checkbox-label",{"checkbox-primary":e.primary}])},[(0,r.renderSlot)(e.$slots,"label",{},(()=>[e.labelKey?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,id:e.idForLabel,k:e.labelKey,raw:!0},null,8,["id","k"])):e.label?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:1,id:e.idForLabel},(0,r.toDisplayString)(e.label),9,o)):(0,r.createCommentVNode)("",!0),e.tooltipKey?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:2,class:"checkbox-info icon icon-info icon-lg",tabindex:e.isDisabled?-1:0},null,8,s)),[[m,{content:e.t(e.tooltipKey),triggers:["hover","touch","focus"]}],[g,e.t(e.tooltipKey)]]):e.tooltip?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:3,class:"checkbox-info icon icon-info icon-lg",tabindex:e.isDisabled?-1:0},null,8,l)),[[m,{content:e.tooltip,triggers:["hover","touch","focus"]}],[g,e.tooltip]]):(0,r.createCommentVNode)("",!0)]))],2)):(0,r.createCommentVNode)("",!0)],34),e.descriptionKey||e.description?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,[e.descriptionKey?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,k:e.descriptionKey},null,8,["k"])):e.description?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(e.description),1)],64)):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",u,[(0,r.renderSlot)(e.$slots,"extra")])],2)}var h=n(14220),p=n(68851),f=n(46108),m=n.n(f),g=n(92043),v=(0,r.defineComponent)({name:"Checkbox",props:{value:{type:[Boolean,Array,String],default:!1},label:{type:String,default:null},labelKey:{type:String,default:null},id:{type:String,default:(0,g.aR)(12)},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},mode:{type:String,default:h.G5},tooltip:{type:[String,Object],default:null},tooltipKey:{type:String,default:null},valueWhenTrue:{type:[Boolean,String,Number],default:!0},descriptionKey:{type:String,default:null},description:{type:String,default:null},primary:{type:Boolean,default:!1},alternateLabel:{type:String,default:void 0}},emits:["update:value"],computed:{isDisabled(){return this.disabled||this.mode===h.nW},isChecked(){return this.isMulti(this.value)?this.findTrueValues(this.value):this.value===this.valueWhenTrue},hasTooltip(){return!!this.tooltip||!!this.tooltipKey},replacementLabel(){if(!this.label&&!this.labelKey&&this.alternateLabel)return this.alternateLabel},idForLabel(){return`${this.id}-label`}},methods:{clicked(e){if("A"===e.target.tagName&&e.target.href)return!0;if(e.stopPropagation(),e.preventDefault(),this.isDisabled)return;const t={bubbles:!0,cancelable:!1,shiftKey:e.shiftKey,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey},n=new CustomEvent("click",t),r=m()(this.value);this.isMulti(r)?(this.isChecked?(0,p.Gj)(r,this.valueWhenTrue):(0,p.PG)(r,this.valueWhenTrue),this.$emit("update:value",r)):this.isString(this.valueWhenTrue)?this.isChecked?this.$emit("update:value",null):this.$emit("update:value",this.valueWhenTrue):(this.$emit("update:value",!r),this.$el.dispatchEvent(n))},isMulti(e){return Array.isArray(e)},isString(e){return"string"===typeof e},findTrueValues(e){return e.find((e=>e===this.valueWhenTrue))||!1}}}),b=(n(72278),n(47433));const y=(0,b.A)(v,[["render",d]]);var w=y},13238:function(e,t,n){"use strict";n.d(t,{A:function(){return A}});var r=n(9274);const i=["for"],a={key:2,class:"required"},o=["id","maxlength","disabled","type","value","placeholder","data-lpignore"],s={key:2,class:"sub-label","data-testid":"sub-label"},l=["aria-label"],c={key:1};function u(e,t,n,u,d,h){const p=(0,r.resolveComponent)("t"),f=(0,r.resolveComponent)("TextAreaAutoGrow"),m=(0,r.resolveComponent)("LabeledTooltip"),g=(0,r.resolveDirective)("stripped-aria-label"),v=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)({"labeled-input":!0,focused:e.focused,[e.mode]:!0,disabled:e.isDisabled,[e.status]:e.status,suffix:e.hasSuffix,"v-popper--has-tooltip":e.hasTooltip,"compact-input":e.isCompact,hideArrows:e.hideArrows,[e.className]:!0})},[(0,r.renderSlot)(e.$slots,"label",{},(()=>[e.hasLabel?((0,r.openBlock)(),(0,r.createElementBlock)("label",{key:0,for:e.inputId},[e.labelKey?((0,r.openBlock)(),(0,r.createBlock)(p,{key:0,k:e.labelKey},null,8,["k"])):e.label?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(e.label),1)],64)):(0,r.createCommentVNode)("",!0),e.requiredField?((0,r.openBlock)(),(0,r.createElementBlock)("span",a,"*")):(0,r.createCommentVNode)("",!0)],8,i)):(0,r.createCommentVNode)("",!0)]),!0),(0,r.renderSlot)(e.$slots,"prefix",{},void 0,!0),(0,r.renderSlot)(e.$slots,"field",{},(()=>["multiline"===e.type||"multiline-password"===e.type?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)(f,(0,r.mergeProps)({key:0,id:e.inputId,ref:"value"},e.$attrs,{maxlength:e._maxlength,disabled:e.isDisabled,value:e.value||"",placeholder:e._placeholder,autocapitalize:"off",class:{conceal:"multiline-password"===e.type},"onUpdate:value":e.onInput,onFocus:e.onFocus,onBlur:e.onBlur}),null,16,["id","maxlength","disabled","value","placeholder","class","onUpdate:value","onFocus","onBlur"])),[[g,!e.hasLabel&&e.ariaLabel?e.ariaLabel:void 0]]):(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("input",(0,r.mergeProps)({key:1,id:e.inputId,ref:"value",role:"textbox",class:{"no-label":!e.hasLabel}},e.$attrs,{maxlength:e._maxlength,disabled:e.isDisabled,type:"cron"===e.type?"text":e.type,value:e.value,placeholder:e._placeholder,autocomplete:"off",autocapitalize:"off","data-lpignore":e.ignorePasswordManagers,onInput:t[0]||(t[0]=(...t)=>e.onInput&&e.onInput(...t)),onFocus:t[1]||(t[1]=(...t)=>e.onFocus&&e.onFocus(...t)),onBlur:t[2]||(t[2]=(...t)=>e.onBlur&&e.onBlur(...t)),onChange:t[3]||(t[3]=(...t)=>e.onChange&&e.onChange(...t))}),null,16,o)),[[g,!e.hasLabel&&e.ariaLabel?e.ariaLabel:void 0]])]),!0),(0,r.renderSlot)(e.$slots,"suffix",{},void 0,!0),e.hasTooltip?((0,r.openBlock)(),(0,r.createBlock)(m,{key:0,hover:e.hoverTooltip,value:e.tooltipValue,status:e.status},null,8,["hover","value","status"])):(0,r.createCommentVNode)("",!0),e.validationMessage?((0,r.openBlock)(),(0,r.createBlock)(m,{key:1,hover:e.hoverTooltip,value:e.validationMessage},null,8,["hover","value"])):(0,r.createCommentVNode)("",!0),e.cronHint||e.subLabel?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[e.cronHint?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,role:"alert","aria-label":e.cronHint},(0,r.toDisplayString)(e.cronHint),9,l)):(0,r.createCommentVNode)("",!0),e.subLabel?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",c,null,512)),[[v,e.subLabel]]):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)],2)}var d=n(59378),h=n(95603),p=n(92043),f=n(37021),m=n.n(f),g=n(3369),v=n(45250),b=n(14220);const y={tooltipKey:{type:String,default:null},placeholder:{type:[String,Number],default:""},placeholderKey:{type:String,default:null},label:{type:String,default:null},labelKey:{type:String,default:null},value:{type:[String,Number,Object],default:""},mode:{type:String,default:b.G5},rules:{default:()=>[],type:Array,validator:e=>e.every((e=>["function"].includes(typeof e)))},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},requireDirty:{default:!0,type:Boolean}},w=((0,r.defineEmits)(["update:validation"]),(e,t)=>{const n=(0,r.ref)(e.mode===b.nW||!!`${e.value}`),i=(0,r.ref)(!1),a=(0,r.ref)(null),o=(0,r.computed)((()=>e.required||e.rules?.some((e=>"required"===e?.name)))),s=(0,r.computed)((()=>e.mode===b.nW)),l=(0,r.computed)((()=>e.disabled||s.value)),c=(0,r.computed)((()=>{const n=e.rules.find((e=>"required"===e?.name)),r=[],o=e.value;if(n&&a.value&&!i.value){const e=n(o);if(e)return t("update:validation",!1),e}for(const t of e.rules){const e=t(o);e&&"required"!==t.name&&r.push(e)}return r.length>0&&(a.value||i.value||!e.requireDirty)?(t("update:validation",!1),r.join(", ")):void t("update:validation",!0)})),u=()=>{n.value=!0,i.value=!0},d=()=>{i.value=!1,e.value||(n.value=!1),a.value=Date.now()};return{raised:n,focused:i,blurred:a,onFocusLabeled:u,onBlurLabeled:d,isDisabled:l,validationMessage:c,requiredField:o}}),E=e=>{const t=(0,r.computed)((()=>null!==e.compact&&void 0!==e.compact?!!e.compact:!(e.label||e.labelKey)));return{isCompact:t}},_={onInput(){}};var S=(0,r.defineComponent)({components:{LabeledTooltip:h.A,TextAreaAutoGrow:d.A},inheritAttrs:!1,props:{...y,type:{type:String,default:"text"},status:{type:String,default:null},subLabel:{type:String,default:null},tooltip:{default:null,type:[String,Object]},hoverTooltip:{type:Boolean,default:!0},ignorePasswordManagers:{default:!1,type:Boolean},maxlength:{type:Number,default:null},hideArrows:{type:Boolean,default:!1},delay:{type:Number,default:0},class:{type:String,default:""},ariaLabel:{type:String,default:""}},emits:["change","update:value","blur","update:validation"],setup(e,{emit:t}){const{focused:n,onFocusLabeled:i,onBlurLabeled:a,isDisabled:o,validationMessage:s,requiredField:l}=w(e,t),{isCompact:c}=E(e),u=(0,r.inject)("onInput",_.onInput);return{focused:n,onFocusLabeled:i,onBlurLabeled:a,onInput:u,isDisabled:o,validationMessage:s,requiredField:l,isCompact:c}},data(){return{updated:!1,validationErrors:"",inputId:`input-${(0,p.aR)(12)}`}},computed:{hasLabel(){return!this.isCompact&&(!!this.label||!!this.labelKey||!!this.$slots.label)},hasTooltip(){return!!this.tooltip||!!this.tooltipKey},tooltipValue(){if(this.hasTooltip)return this.tooltipKey?this.t(this.tooltipKey):this.tooltip},hasSuffix(){return!!this.$slots.suffix},cronHint(){if("cron"!==this.type||!this.value)return;const e=["@yearly","@annually","@monthly","@weekly","@daily","@midnight","@hourly"],t=e.includes(this.value);if(!t&&!(0,g.isValidCron)(this.value,{alias:!0,allowBlankDay:!0,allowSevenAsSunday:!0}))return this.t("generic.invalidCron");try{const e=m().toString(this.value||"",{verbose:!0});return e}catch(n){return this.t("generic.invalidCron")}},_placeholder(){return this.placeholder?this.placeholder.toString():this.placeholderKey?this.t(this.placeholderKey):""},_maxlength(){if("text"===this.type&&this.maxlength)return this.maxlength},className(){return this.class}},mounted(){const e=this.$attrs?.id;e&&(this.inputId=e)},created(){this.onInput=this.delay?(0,v.debounce)(this.delayInput,this.delay):this.delayInput},methods:{focus(){const e=this.$refs.value;e&&e.focus()},select(){const e=this.$refs.value;e&&e.select()},onChange(e){this.$emit("change",e)},delayInput(e){const t="string"===typeof e?e:e?.target?.value;this.$emit("update:value",t)},onFocus(){this.onFocusLabeled()},onBlur(e){this.$emit("blur",e),this.onBlurLabeled()},escapeHtml:p.ZD}}),k=(n(69341),n(67071),n(47433));const x=(0,k.A)(S,[["render",u],["__scopeId","data-v-302d757b"]]);var A=x},59005:function(e,t,n){"use strict";n.d(t,{A:function(){return v}});var r=n(9274);const i=["id","disabled","name","value","data-testid","checked"],a=["tabindex","aria-label","aria-checked"],o={class:"labeling"},s=["for"],l={key:1},c={key:0,class:"radio-button-outer-container-description"},u={key:1,class:"radio-button-outer-container-description"};function d(e,t,n,d,h,p){const f=(0,r.resolveComponent)("t"),m=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("label",{class:(0,r.normalizeClass)({disabled:e.isDisabled,"radio-container":!0,"radio-button-checked":e.isChecked}),onKeydown:[t[1]||(t[1]=(0,r.withKeys)((t=>e.clicked(t)),["enter"])),t[2]||(t[2]=(0,r.withKeys)((t=>e.clicked(t)),["space"]))],onClick:t[3]||(t[3]=(0,r.withModifiers)((t=>e.clicked(t)),["stop"]))},[(0,r.createElementVNode)("input",{id:e.randomString,disabled:e.isDisabled,name:e.name,value:""+e.val,"data-testid":e.label,checked:e.isChecked,type:"radio",tabindex:-1,onClick:t[0]||(t[0]=(0,r.withModifiers)((()=>{}),["stop","prevent"]))},null,8,i),(0,r.createElementVNode)("span",{ref:"custom",class:(0,r.normalizeClass)([e.isDisabled?"text-muted":"","radio-custom"]),tabindex:e.isDisabled||e.preventFocusOnRadioGroups?-1:0,"aria-label":e.label,"aria-checked":e.isChecked,role:"radio"},null,10,a),(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("label",{class:(0,r.normalizeClass)([e.muteLabel?"text-muted":"","radio-label","m-0"]),for:e.name},[e.hasLabelSlot?(0,r.renderSlot)(e.$slots,"label",{key:0}):e.label?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",l,null,512)),[[m,e.label]]):(0,r.createCommentVNode)("",!0)],10,s),e.descriptionKey||e.description?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,[e.descriptionKey?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,k:e.descriptionKey},null,8,["k"])):e.description?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(e.description),1)],64)):(0,r.createCommentVNode)("",!0)])):e.hasDescriptionSlot?((0,r.openBlock)(),(0,r.createElementBlock)("div",u,[(0,r.renderSlot)(e.$slots,"description")])):(0,r.createCommentVNode)("",!0)])],34)}var h=n(14220),p=n(92043),f=(0,r.defineComponent)({props:{name:{type:String,default:""},val:{required:!0,validator:()=>!0},value:{required:!0,validator:()=>!0},label:{type:String,default:""},disabled:{type:Boolean,default:!1},mode:{type:String,default:"edit"},descriptionKey:{type:String,default:null},description:{type:String,default:null},preventFocusOnRadioGroups:{type:Boolean,default:!1}},emits:["update:value"],data(){return{isChecked:this.value===this.val,randomString:`${(0,p.vx)()}-radio`}},computed:{isDisabled(){return this.mode===h.nW||this.disabled},muteLabel(){return this.disabled&&!(this.mode===h.nW&&this.isChecked)},hasDescriptionSlot(){return!!this.$slots.description},hasLabelSlot(){return!!this.$slots.label}},watch:{value(e){this.isChecked=this.val===e,this.isChecked&&!this.preventFocusOnRadioGroups&&this.$refs.custom.focus()}},methods:{clicked(e){const t=e.target;this.isDisabled||t instanceof HTMLElement&&"A"===t.tagName||this.$emit("update:value",this.val)}}}),m=(n(8924),n(47433));const g=(0,m.A)(f,[["render",d]]);var v=g},94799:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var r=n(9274);const i={key:0,class:"radio-group label"},a={key:2,class:"icon icon-info icon-lg"},o={key:3,class:"icon icon-info icon-lg"},s=["aria-label"];function l(e,t,n,l,c,u){const d=(0,r.resolveComponent)("t"),h=(0,r.resolveComponent)("RadioButton"),p=(0,r.resolveDirective)("clean-tooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[e.label||e.labelKey||e.tooltip||e.tooltipKey||e.$slots.label?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.renderSlot)(e.$slots,"label",{},(()=>[(0,r.createElementVNode)("h3",null,[e.labelKey?((0,r.openBlock)(),(0,r.createBlock)(d,{key:0,k:e.labelKey},null,8,["k"])):e.label?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(e.label),1)],64)):(0,r.createCommentVNode)("",!0),e.tooltipKey?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",a,null,512)),[[p,e.t(e.tooltipKey)]]):e.tooltip?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",o,null,512)),[[p,e.tooltip]]):(0,r.createCommentVNode)("",!0)])]))])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",{ref:"radioGroup",role:"radiogroup","aria-label":e.radioGroupLabel,class:(0,r.normalizeClass)(["radio-group",{row:e.row}]),tabindex:"0",onKeydown:[t[1]||(t[1]=(0,r.withKeys)((0,r.withModifiers)((t=>e.clickNext(1)),["prevent","stop"]),["down"])),t[2]||(t[2]=(0,r.withKeys)((0,r.withModifiers)((t=>e.clickNext(-1)),["prevent","stop"]),["up"])),t[3]||(t[3]=(0,r.withKeys)((0,r.withModifiers)((()=>{}),["stop","prevent"]),["space","enter"]))]},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.normalizedOptions,((n,i)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:i},[(0,r.renderSlot)(e.$slots,i,{vBind:e.$attrs,option:n,isDisabled:e.isDisabled},(()=>[(0,r.createVNode)(h,{name:e.name,value:e.value,label:n.label,description:n.description,val:n.value,disabled:e.isDisabled,"data-testid":`radio-button-${i}`,mode:e.mode,"prevent-focus-on-radio-groups":!0,"onUpdate:value":t[0]||(t[0]=t=>e.$emit("update:value",t))},null,8,["name","value","label","description","val","disabled","data-testid","mode"])]))])))),128))],42,s)])}var c=n(14220),u=n(59005),d=(0,r.defineComponent)({components:{RadioButton:u.A},props:{name:{type:String,required:!0},options:{type:Array,required:!0},labels:{type:Array,default:null},value:{type:[Boolean,String,Object],default:null},disabled:{type:Boolean,default:!1},mode:{type:String,default:"edit"},label:{type:String,default:null},labelKey:{type:String,default:null},tooltip:{type:[String,Object],default:null},tooltipKey:{type:String,default:null},row:{type:Boolean,default:!1}},emits:["update:value"],data(){return{currFocusedElem:void 0}},computed:{normalizedOptions(){const e=[];for(let t=0;t<this.options.length;t++){const n=this.options[t];"object"===typeof n&&n?e.push(n):this.labels?e.push({label:this.labels[t],value:n}):e.push({label:n,value:n})}return e},isView(){return this.mode===c.nW},isDisabled(){return this.disabled||this.isView},radioGroupLabel(){return this.labelKey?this.t(this.labelKey):this.label?this.label:""}},beforeUnmount(){const e=this.$refs?.radioGroup;e.removeEventListener("focusin",this.focusChanged)},mounted(){const e=this.$refs?.radioGroup;e.addEventListener("focusin",this.focusChanged)},methods:{focusChanged(e){this.currFocusedElem=e.target},clickNext(e){if(this.currFocusedElem!==this.$refs?.radioGroup)return;const t=this.normalizedOptions,n=t.find((e=>e.value===this.value));let r=(n?t.indexOf(n):-1)+e;r>=t.length?r=t.length-1:r<0&&(r=0),this.$emit("update:value",t[r].value)}}}),h=(n(38247),n(47433));const p=(0,h.A)(d,[["render",l]]);var f=p},59378:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(9274);const i=["value","data-testid","disabled","placeholder","spellcheck"];function a(e,t,n,a,o,s){return(0,r.openBlock)(),(0,r.createElementBlock)("textarea",(0,r.mergeProps)({ref:"ta",value:e.value,"data-testid":e.$attrs["data-testid"]?e.$attrs["data-testid"]:"text-area-auto-grow",disabled:e.isDisabled,style:e.style,placeholder:e.placeholder,class:[e.className,"no-resize no-ease"]},e.$attrs,{spellcheck:e.spellcheck,onPaste:t[0]||(t[0]=t=>e.$emit("paste",t)),onInput:t[1]||(t[1]=t=>e.onInput(t)),onFocus:t[2]||(t[2]=t=>e.$emit("focus",t)),onBlur:t[3]||(t[3]=t=>e.$emit("blur",t))}),null,16,i)}var o=n(45250),s=n(14220);const l={queueResize(){}};var c=(0,r.defineComponent)({inheritAttrs:!1,props:{value:{type:String,required:!0},class:{type:[String,Array,Object],default:""},mode:{type:String,default:s.G5},minHeight:{type:Number,default:25},maxHeight:{type:Number,default:200},placeholder:{type:String,default:""},spellcheck:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},emits:["update:value","paste","focus","blur"],setup(){const e=(0,r.inject)("queueResize",l.queueResize);return{queueResize:e}},data(){return{curHeight:this.minHeight,overflow:"hidden"}},computed:{isDisabled(){return this.disabled||this.mode===s.nW},style(){return`height: ${this.curHeight}px; overflow: ${this.overflow};`},className(){return this.class}},watch:{$attrs:{deep:!0,handler(){this.queueResize()}}},created(){this.queueResize=(0,o.debounce)(this.autoSize,100)},mounted(){this.$refs.ta.style.height=`${this.curHeight}px`,this.$nextTick((()=>{this.autoSize()}))},methods:{onInput(e){const t=e?.target?.value;this.$emit("update:value",t),this.queueResize()},focus(){(this.$refs?.ta).focus()},autoSize(){const e=this.$refs.ta;if(!e)return;e.style.height="1px";const t=parseInt(getComputedStyle(e).getPropertyValue("borderTopWidth"),10)||0+parseInt(getComputedStyle(e).getPropertyValue("borderBottomWidth"),10)||0,n=Math.max(this.minHeight,Math.min(e.scrollHeight+t,this.maxHeight));e.style.overflowY=e.scrollHeight>n?"auto":"hidden",e.style.height=`${n}px`,this.curHeight=n}}}),u=n(47433);const d=(0,u.A)(c,[["render",a]]);var h=d},95603:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(9274);const i={key:0,class:"tooltip","x-placement":"bottom"},a={class:"tooltip-inner"};function o(e,t,n,o,s,l){const c=(0,r.resolveDirective)("clean-tooltip"),u=(0,r.resolveDirective)("stripped-aria-label");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:"container",class:(0,r.normalizeClass)(["labeled-tooltip",{[e.status]:!0,hoverable:e.hover}])},[e.hover?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:(0,r.normalizeClass)([{hover:!e.value,[e.iconClass]:!0},"icon status-icon"]),tabindex:"0"},null,2)),[[c,e.tooltipContent],[u,e.isObject(e.value)?e.value.content:e.value]]):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createElementVNode)("i",{class:(0,r.normalizeClass)([{hover:!e.value},"icon status-icon"])},null,2),e.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[t[0]||(t[0]=(0,r.createElementVNode)("div",{class:"tooltip-arrow"},null,-1)),(0,r.createElementVNode)("div",a,(0,r.toDisplayString)(e.value),1)])):(0,r.createCommentVNode)("",!0)],64))],2)}var s=(0,r.defineComponent)({props:{value:{type:[String,Object],default:null},status:{type:String,default:"error"},hover:{type:Boolean,default:!0}},computed:{iconClass(){return"error"===this.status?"icon-warning":"icon-info"},tooltipContent(){return this.isObject(this.value)?{content:this.value.content,popperClass:[`tooltip-${status}`],...this.value,triggers:["hover","touch","focus"]}:this.value?{content:this.value,triggers:["hover","touch","focus"]}:""}},methods:{isObject(e){return"object"===typeof e&&null!==e&&!!e.content}}}),l=(n(24304),n(47433));const c=(0,l.A)(s,[["render",o]]);var u=c},17252:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var r=n(9274);const i={class:"mb-5"},a={class:"mb-5"},o=["href"];function s(e,t,n,s,l,c){const u=(0,r.resolveComponent)("Banner"),d=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(u,{color:"warning"},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("strong",null,(0,r.toDisplayString)(e.t("harvester.upgradePage.upgradeInfo.warning"))+":",1),(0,r.withDirectives)((0,r.createElementVNode)("p",i,null,512),[[d,e.t("harvester.upgradePage.upgradeInfo.doc",{url:c.upgradeLink},!0)]]),(0,r.createElementVNode)("p",a,(0,r.toDisplayString)(e.t("harvester.upgradePage.upgradeInfo.tip")),1),(0,r.createElementVNode)("p",null,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("harvester.upgradePage.upgradeInfo.moreNotes"))+" ",1),(0,r.createElementVNode)("a",{href:c.releaseVersion,target:"_blank"},(0,r.toDisplayString)(e.t("generic.moreInfo")),9,o)])])])),_:1})])}var l=n(9980),c=n(66242),u=n(3791),d={name:"HarvesterUpgradeInfo",components:{Banner:l.l},props:{version:{type:String,default:""}},computed:{releaseVersion(){return this.version?`https://github.com/harvester/harvester/releases/tag/${this.version}`:"https://github.com/harvester/harvester/releases"},upgradeLink(){const e=this.$store.getters["harvester-common/getServerVersion"]();return(0,u.nn)(c.d.UPGRADE_URL,e)}}},h=n(47433);const p=(0,h.A)(d,[["render",s]]);var f=p},86328:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return B}});var r=n(9274);const i={class:"bundleModal"},a={class:"p-20"},o={key:0,class:"content"},s={key:1,class:"content"},l={class:"circle"},c={class:"footer mt-20"};function u(e,t,n,u,d,h){const p=(0,r.resolveComponent)("LabeledInput"),f=(0,r.resolveComponent)("GraphCircle"),m=(0,r.resolveComponent)("Banner"),g=(0,r.resolveComponent)("AsyncButton"),v=(0,r.resolveComponent)("app-modal");return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[d.isOpen?((0,r.openBlock)(),(0,r.createBlock)(v,{key:0,name:"bundle-modal","custom-class":"bundleModal","click-to-close":!1,width:550,height:390,class:"remove-modal support-modal",onClose:h.close},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("h2",null,(0,r.toDisplayString)(e.t("harvester.modal.bundle.title")),1),h.bundlePending?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.createElementVNode)("div",l,[(0,r.createVNode)(f,{"primary-stroke-color":"green","secondary-stroke-color":"white","stroke-width":6,percentage:h.percentage,"show-text":!0},null,8,["percentage"])])])):((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createVNode)(p,{value:d.url,"onUpdate:value":t[0]||(t[0]=e=>d.url=e),label:e.t("harvester.modal.bundle.url"),class:"mb-20"},null,8,["value","label"]),(0,r.createVNode)(p,{value:d.description,"onUpdate:value":t[1]||(t[1]=e=>d.description=e),label:e.t("harvester.modal.bundle.description"),type:"multiline","min-height":120,required:""},null,8,["value","label"])])),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(d.errors,((e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:t},[(0,r.createVNode)(m,{color:"error",label:h.stringify(e)},null,8,["label"])])))),128)),(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("button",{class:"btn btn-sm role-secondary mr-10",onClick:t[2]||(t[2]=(...e)=>h.close&&h.close(...e))},(0,r.toDisplayString)(e.t("generic.close")),1),(0,r.createVNode)(g,{type:"submit",mode:"generate",class:"btn btn-sm bg-primary",disabled:h.bundlePending,onClick:h.save},null,8,["disabled","onClick"])])])])),_:1},8,["onClose"])):(0,r.createCommentVNode)("",!0)])}var d=n(92043),h=n(99726),p=n(79380),f=n(89651);const m=["viewBox"],g=["transform"],v=["id"],b=["stop-color"],y=["stop-color"],w=["id"],E=["stop-color"],_=["stop-color"],S=["r","cy","cx","stroke-width","stroke"],k=["r","cy","cx","stroke-width","stroke","stroke-dasharray","stroke-dashoffset"],x=["x","y","fill"];function A(e,t,n,i,a,o){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",{class:"circle",width:"100%",height:"100%",viewBox:o.viewBox},[(0,r.createElementVNode)("g",{transform:o.transform},[(0,r.createElementVNode)("defs",null,[(0,r.createElementVNode)("linearGradient",{id:o.primaryStrokeColorId,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[(0,r.createElementVNode)("stop",{offset:"50%","stop-color":n.primaryStrokeGradientColor||n.primaryStrokeColor},null,8,b),(0,r.createElementVNode)("stop",{offset:"100%","stop-color":n.primaryStrokeColor},null,8,y)],8,v),(0,r.createElementVNode)("linearGradient",{id:o.secondaryStrokeColorId,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[(0,r.createElementVNode)("stop",{offset:"50%","stop-color":n.secondaryStrokeGradientColor||n.secondaryStrokeColor},null,8,E),(0,r.createElementVNode)("stop",{offset:"100%","stop-color":n.secondaryStrokeColor},null,8,_)],8,w)]),(0,r.createElementVNode)("circle",{r:o.radius,cy:o.center,cx:o.center,"stroke-width":n.strokeWidth,stroke:`url(#${o.secondaryStrokeColorId})`,fill:"none"},null,8,S),(0,r.createElementVNode)("circle",{r:o.radius,cy:o.center,cx:o.center,"stroke-width":n.strokeWidth,stroke:`url(#${o.primaryStrokeColorId})`,"stroke-dasharray":o.circumference,"stroke-dashoffset":o.circumference*(1-n.percentage),fill:"none"},null,8,k)],8,g),n.showText?((0,r.openBlock)(),(0,r.createElementBlock)("text",{key:0,x:o.center,y:o.center,style:{"font-size":"25","dominant-baseline":"middle","text-anchor":"middle"},fill:`url(#${o.primaryStrokeColorId})`},(0,r.toDisplayString)(o.parsePercentage)+"% ",9,x)):(0,r.createCommentVNode)("",!0)],8,m)}let N=0;var C={props:{percentage:{type:Number,default:.75},strokeWidth:{type:Number,default:22},primaryStrokeColor:{type:String,required:!0},primaryStrokeGradientColor:{type:String,default:null},secondaryStrokeColor:{type:String,required:!0},secondaryStrokeGradientColor:{type:String,default:null},rotate:{type:Number,default:90},showText:{type:Boolean,default:!1}},data(){return{id:N++}},computed:{viewportSize(){return 100},radius(){const e=this.viewportSize/2,t=this.strokeWidth/2;return e-t},center(){return this.viewportSize/2},viewBox(){return`0 0 ${this.viewportSize} ${this.viewportSize}`},circumference(){return 2*Math.PI*this.radius},transform(){return`rotate(${this.rotate}, ${this.center}, ${this.center})`},strokeDasharray(){return this.circumference},strokeDashoffset(){return this.circumference*(1-this.percentage)},primaryStrokeColorId(){return`primary-${N}`},secondaryStrokeColorId(){return`secondary-${N}`},parsePercentage(){return parseInt(100*this.percentage)||0}}},T=(n(34941),n(47433));const R=(0,T.A)(C,[["render",A],["__scopeId","data-v-5f78e642"]]);var O=R,I=n(9980),L=n(36832),D=n(32766),P={name:"SupportBundle",components:{LabeledInput:p.o,GraphCircle:O,AsyncButton:f.A,Banner:I.l,AppModal:L.h},data(){return{url:"",description:"",errors:[],isOpen:!1}},computed:{bundlePending(){return this.$store.getters["harvester-common/isBundlePending"]},isShowBundleModal(){return this.$store.getters["harvester-common/isShowBundleModal"]},percentage(){return this.$store.getters["harvester-common/getBundlePercentage"]}},watch:{isShowBundleModal:{handler(e){e?this.$nextTick((()=>{this.isOpen=!0})):(this.isOpen=!1,this.url="",this.description="")},immediate:!0}},methods:{stringify:h.As,close(){this.isOpen=!1,this.$store.commit("harvester-common/toggleBundleModal",!1),this.backUpName=""},async save(e){this.errors=[];const t=`bundle-${(0,d.vx)(5).toLowerCase()}`,n="harvester-system",r={apiVersion:"harvesterhci.io/v1beta1",type:D.rk.SUPPORT_BUNDLE,kind:"SupportBundle",metadata:{name:t,namespace:n},spec:{issueURL:this.url,description:this.description}},i=this.$store.getters["currentProduct"].inStore,a=await this.$store.dispatch(`${i}/create`,r);try{await a.save(),this.$store.commit("harvester-common/setLatestBundleId",`${n}/${t}`,{root:!0}),this.$store.dispatch("harvester-common/bundleProgress",{root:!0})}catch(o){this.errors=(0,h.rz)(o),e(!1)}}}};n(13358);const M=(0,T.A)(P,[["render",u],["__scopeId","data-v-4369f8da"]]);var B=M},68165:function(e,t,n){"use strict";var r=n(79138),i=n(6095),a=n(64531),o=n(87196);e.exports=o||r.call(a,i)},62012:function(e,t,n){"use strict";var r=n(79138),i=n(6095),a=n(68165);e.exports=function(){return a(r,i,arguments)}},6095:function(e){"use strict";e.exports=Function.prototype.apply},64531:function(e){"use strict";e.exports=Function.prototype.call},79903:function(e,t,n){"use strict";var r=n(79138),i=n(3468),a=n(64531),o=n(68165);e.exports=function(e){if(e.length<1||"function"!==typeof e[0])throw new i("a function is required");return o(r,a,e)}},87196:function(e){"use strict";e.exports="undefined"!==typeof Reflect&&Reflect&&Reflect.apply},79818:function(e,t,n){"use strict";var r=n(528),i=n(28498),a=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&a(e,".prototype.")>-1?i(n):n}},28498:function(e,t,n){"use strict";var r=n(26108),i=n(64940),a=n(79903),o=n(62012);e.exports=function(e){var t=a(arguments),n=e.length-(arguments.length-1);return r(t,1+(n>0?n:0),!0)},i?i(e.exports,"apply",{value:o}):e.exports.apply=o},14607:function(e,t,n){"use strict";var r=n(528),i=n(79903),a=i([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&a(e,".prototype.")>-1?i([n]):n}},59246:function(e,t,n){const r=n(76931),i={};for(const s of Object.keys(r))i[r[s]]=s;const a={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=a;for(const s of Object.keys(a)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);const{channels:e,labels:t}=a[s];delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:e}),Object.defineProperty(a[s],"labels",{value:t})}function o(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}a.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i;let s,l;a===i?s=0:t===a?s=(n-r)/o:n===a?s=2+(r-t)/o:r===a&&(s=4+(t-n)/o),s=Math.min(60*s,360),s<0&&(s+=360);const c=(i+a)/2;return l=a===i?0:c<=.5?o/(a+i):o/(2-a-i),[s,100*l,100*c]},a.rgb.hsv=function(e){let t,n,r,i,a;const o=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(o,s,l),u=c-Math.min(o,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?(i=0,a=0):(a=u/c,t=d(o),n=d(s),r=d(l),o===c?i=r-n:s===c?i=1/3+t-r:l===c&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*a,100*c]},a.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=a.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,100*o,100*r]},a.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),a=(1-t-i)/(1-i)||0,o=(1-n-i)/(1-i)||0,s=(1-r-i)/(1-i)||0;return[100*a,100*o,100*s,100*i]},a.rgb.keyword=function(e){const t=i[e];if(t)return t;let n,a=1/0;for(const i of Object.keys(r)){const t=r[i],s=o(e,t);s<a&&(a=s,n=i)}return n},a.keyword.rgb=function(e){return r[e]},a.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=.4124*t+.3576*n+.1805*r,a=.2126*t+.7152*n+.0722*r,o=.0193*t+.1192*n+.9505*r;return[100*i,100*a,100*o]},a.rgb.lab=function(e){const t=a.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const o=116*r-16,s=500*(n-r),l=200*(r-i);return[o,s,l]},a.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,a,o;if(0===n)return o=255*r,[o,o,o];i=r<.5?r*(1+n):r+n-r*n;const s=2*r-i,l=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,o=6*a<1?s+6*(i-s)*a:2*a<1?i:3*a<2?s+(i-s)*(2/3-a)*6:s,l[c]=255*o;return l},a.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;const o=(r+n)/2,s=0===r?2*i/(a+i):2*n/(r+n);return[t,100*s,100*o]},a.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,l,o];case 1:return[s,r,o];case 2:return[o,r,l];case 3:return[o,s,r];case 4:return[l,o,r];case 5:return[r,o,s]}},a.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let a,o;o=(2-n)*r;const s=(2-n)*i;return a=n*i,a/=s<=1?s:2-s,a=a||0,o/=2,[t,100*a,100*o]},a.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let a;i>1&&(n/=i,r/=i);const o=Math.floor(6*t),s=1-r;a=6*t-o,0!==(1&o)&&(a=1-a);const l=n+a*(s-n);let c,u,d;switch(o){default:case 6:case 0:c=s,u=l,d=n;break;case 1:c=l,u=s,d=n;break;case 2:c=n,u=s,d=l;break;case 3:c=n,u=l,d=s;break;case 4:c=l,u=n,d=s;break;case 5:c=s,u=n,d=l;break}return[255*c,255*u,255*d]},a.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[255*a,255*o,255*s]},a.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,a,o;return i=3.2406*t+-1.5372*n+-.4986*r,a=-.9689*t+1.8758*n+.0415*r,o=.0557*t+-.204*n+1.057*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[255*i,255*a,255*o]},a.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16,a=500*(t-n),o=200*(n-r);return[i,a,o]},a.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,a,o;a=(t+16)/116,i=n/500+a,o=a-r/200;const s=a**3,l=i**3,c=o**3;return a=s>.008856?s:(a-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]},a.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;const a=Math.atan2(r,n);i=360*a/2/Math.PI,i<0&&(i+=360);const o=Math.sqrt(n*n+r*r);return[t,o,i]},a.lch.lab=function(e){const t=e[0],n=e[1],r=e[2],i=r/360*2*Math.PI,a=n*Math.cos(i),o=n*Math.sin(i);return[t,a,o]},a.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let o=null===t?a.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),0===o)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===o&&(s+=60),s},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];if(t===n&&n===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;const i=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return i},a.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50)),r=(1&t)*n*255,i=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,i,a]},a.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[n,r,i]},a.rgb.hex=function(e){const t=((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2])),n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n},a.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16),i=r>>16&255,a=r>>8&255,o=255&r;return[i,a,o]},a.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),o=i-a;let s,l;return s=o<1?a/(1-o):0,l=o<=0?0:i===t?(n-r)/o%6:i===n?2+(r-t)/o:4+(t-n)/o,l/=6,l%=1,[360*l,100*o,100*s]},a.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},a.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const i=[0,0,0],a=t%1*6,o=a%1,s=1-o;let l=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-n)*r,[255*(n*i[0]+l),255*(n*i[1]+l),255*(n*i[2]+l)]},a.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let i=0;return r>0&&(i=t/r),[e[0],100*i,100*r]},a.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100,r=n*(1-t)+.5*t;let i=0;return r>0&&r<.5?i=t/(2*r):r>=.5&&r<1&&(i=t/(2*(1-r))),[e[0],100*i,100*r]},a.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],100*(r-t),100*(1-r)]},a.hwb.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=1-n,i=r-t;let a=0;return i<1&&(a=(r-i)/(1-i)),[e[0],100*i,100*a]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=function(e){return[0,0,e[0]]},a.gray.hsv=a.gray.hsl,a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=(t<<16)+(t<<8)+t,r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r},a.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},99047:function(e,t,n){const r=n(59246),i=n(30802),a={},o=Object.keys(r);function s(e){const t=function(...t){const n=t[0];return void 0===n||null===n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function l(e){const t=function(...t){const n=t[0];if(void 0===n||null===n)return n;n.length>1&&(t=n);const r=e(t);if("object"===typeof r)for(let e=r.length,i=0;i<e;i++)r[i]=Math.round(r[i]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}o.forEach((e=>{a[e]={},Object.defineProperty(a[e],"channels",{value:r[e].channels}),Object.defineProperty(a[e],"labels",{value:r[e].labels});const t=i(e),n=Object.keys(t);n.forEach((n=>{const r=t[n];a[e][n]=l(r),a[e][n].raw=s(r)}))})),e.exports=a},30802:function(e,t,n){const r=n(59246);function i(){const e={},t=Object.keys(r);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function a(e){const t=i(),n=[e];t[e].distance=0;while(n.length){const e=n.pop(),i=Object.keys(r[e]);for(let r=i.length,a=0;a<r;a++){const r=i[a],o=t[r];-1===o.distance&&(o.distance=t[e].distance+1,o.parent=e,n.unshift(r))}}return t}function o(e,t){return function(n){return t(e(n))}}function s(e,t){const n=[t[e].parent,e];let i=r[t[e].parent][e],a=t[e].parent;while(t[a].parent)n.unshift(t[a].parent),i=o(r[t[a].parent][a],i),a=t[a].parent;return i.conversion=n,i}e.exports=function(e){const t=a(e),n={},r=Object.keys(t);for(let i=r.length,a=0;a<i;a++){const e=r[a],i=t[e];null!==i.parent&&(n[e]=s(e,t))}return n}},76931:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},43269:function(e,t,n){var r=n(76931),i=n(59975),a=Object.hasOwnProperty,o=Object.create(null);for(var s in r)a.call(r,s)&&(o[r[s]]=s);var l=e.exports={to:{},get:{}};function c(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n,r=e.substring(0,3).toLowerCase();switch(r){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb";break}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,i,o=/^#([a-f0-9]{3,4})$/i,s=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,l=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,u=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,d=/^(\w+)$/,h=[0,0,0,1];if(t=e.match(s)){for(i=t[2],t=t[1],n=0;n<3;n++){var p=2*n;h[n]=parseInt(t.slice(p,p+2),16)}i&&(h[3]=parseInt(i,16)/255)}else if(t=e.match(o)){for(t=t[1],i=t[3],n=0;n<3;n++)h[n]=parseInt(t[n]+t[n],16);i&&(h[3]=parseInt(i+i,16)/255)}else if(t=e.match(l)){for(n=0;n<3;n++)h[n]=parseInt(t[n+1],0);t[4]&&(t[5]?h[3]=.01*parseFloat(t[4]):h[3]=parseFloat(t[4]))}else{if(!(t=e.match(u)))return(t=e.match(d))?"transparent"===t[1]?[0,0,0,0]:a.call(r,t[1])?(h=r[t[1]],h[3]=1,h):null:null;for(n=0;n<3;n++)h[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?h[3]=.01*parseFloat(t[4]):h[3]=parseFloat(t[4]))}for(n=0;n<3;n++)h[n]=c(h[n],0,255);return h[3]=c(h[3],0,1),h},l.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),i=(parseFloat(n[1])%360+360)%360,a=c(parseFloat(n[2]),0,100),o=c(parseFloat(n[3]),0,100),s=c(isNaN(r)?1:r,0,1);return[i,a,o,s]}return null},l.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),i=(parseFloat(n[1])%360+360)%360,a=c(parseFloat(n[2]),0,100),o=c(parseFloat(n[3]),0,100),s=c(isNaN(r)?1:r,0,1);return[i,a,o,s]}return null},l.to.hex=function(){var e=i(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=i(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=i(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=i(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=i(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return o[e.slice(0,3)]}},70465:function(e,t,n){const r=n(43269),i=n(99047),a=["keyword","gray","hex"],o={};for(const m of Object.keys(i))o[[...i[m].labels].sort().join("")]=m;const s={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in a&&(t=null),t&&!(t in i))throw new Error("Unknown model: "+t);let n,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"===typeof e){const t=r.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,c=i[this.model].channels,this.color=t.value.slice(0,c),this.valpha="number"===typeof t.value[c]?t.value[c]:1}else if(e.length>0){this.model=t||"rgb",c=i[this.model].channels;const n=Array.prototype.slice.call(e,0,c);this.color=f(n,c),this.valpha="number"===typeof e[c]?e[c]:1}else if("number"===typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"===typeof e.alpha?e.alpha:0);const r=t.sort().join("");if(!(r in o))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=o[r];const{labels:a}=i[this.model],s=[];for(n=0;n<a.length;n++)s.push(e[a[n]]);this.color=f(s)}if(s[this.model])for(c=i[this.model].channels,n=0;n<c;n++){const e=s[this.model][n];e&&(this.color[n]=e(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}l.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in r.to?this:this.rgb();t=t.round("number"===typeof e?e:1);const n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to[t.model](n)},percentString(e){const t=this.rgb().round("number"===typeof e?e:1),n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to.rgb.percent(n)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=i[this.model],{labels:n}=i[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new l([...this.color.map(u(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new l([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:d("rgb",0,h(255)),green:d("rgb",1,h(255)),blue:d("rgb",2,h(255)),hue:d(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:d("hsl",1,h(100)),lightness:d("hsl",2,h(100)),saturationv:d("hsv",1,h(100)),value:d("hsv",2,h(100)),chroma:d("hcg",1,h(100)),gray:d("hcg",2,h(100)),white:d("hwb",1,h(100)),wblack:d("hwb",2,h(100)),cyan:d("cmyk",0,h(100)),magenta:d("cmyk",1,h(100)),yellow:d("cmyk",2,h(100)),black:d("cmyk",3,h(100)),x:d("xyz",0,h(95.047)),y:d("xyz",1,h(100)),z:d("xyz",2,h(108.833)),l:d("lab",0,h(100)),a:d("lab",1),b:d("lab",2),keyword(e){return void 0!==e?new l(e):i[this.model].keyword(this.color)},hex(e){return void 0!==e?new l(e):r.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new l(e);const t=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),r.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const e=r/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color,t=(2126*e[0]+7152*e[1]+722*e[2])/1e4;return t<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),i=void 0===t?.5:t,a=2*i-1,o=n.alpha()-r.alpha(),s=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,c=1-s;return l.rgb(s*n.red()+c*r.red(),s*n.green()+c*r.green(),s*n.blue()+c*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const m of Object.keys(i)){if(a.includes(m))continue;const{channels:e}=i[m];l.prototype[m]=function(...e){return this.model===m?new l(this):e.length>0?new l(e,m):new l([...p(i[this.model][m].raw(this.color)),this.valpha],m)},l[m]=function(...t){let n=t[0];return"number"===typeof n&&(n=f(t,e)),new l(n,m)}}function c(e,t){return Number(e.toFixed(t))}function u(e){return function(t){return c(t,e)}}function d(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(s[r]||(s[r]=[]))[t]=n;return e=e[0],function(r){let i;return void 0!==r?(n&&(r=n(r)),i=this[e](),i.color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function h(e){return function(t){return Math.max(0,Math.min(e,t))}}function p(e){return Array.isArray(e)?e:[e]}function f(e,t){for(let n=0;n<t;n++)"number"!==typeof e[n]&&(e[n]=0);return e}e.exports=l},4364:function(e,t,n){var r=n(49208),i=n(26093);function a(){return(new Date).getTime()}var o,s=Array.prototype.slice,l={};o="undefined"!==typeof n.g&&n.g.console?n.g.console:"undefined"!==typeof window&&window.console?window.console:{};for(var c=[[f,"log"],[m,"info"],[g,"warn"],[v,"error"],[b,"time"],[y,"timeEnd"],[w,"trace"],[E,"dir"],[_,"assert"]],u=0;u<c.length;u++){var d=c[u],h=d[0],p=d[1];o[p]||(o[p]=h)}function f(){}function m(){o.log.apply(o,arguments)}function g(){o.log.apply(o,arguments)}function v(){o.warn.apply(o,arguments)}function b(e){l[e]=a()}function y(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var n=a()-t;o.log(e+": "+n+"ms")}function w(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),o.error(e.stack)}function E(e){o.log(r.inspect(e)+"\n")}function _(e){if(!e){var t=s.call(arguments,1);i.ok(!1,r.format.apply(null,t))}}e.exports=o},3369:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.isValidCron=void 0;var r=function(e){return/^\d+$/.test(e)?Number(e):NaN},i=function(e){return"*"===e},a=function(e){return"?"===e},o=function(e,t,n){return e>=t&&e<=n},s=function(e,t,n){var a=e.split("-");switch(a.length){case 1:return i(e)||o(r(e),t,n);case 2:var s=a.map((function(e){return r(e)})),l=s[0],c=s[1];return l<=c&&o(l,t,n)&&o(c,t,n);default:return!1}},l=function(e){return void 0===e||-1===e.search(/[^\d]/)&&r(e)>0},c=function(e,t,n){if(-1!==e.search(/[^\d-,\/*]/))return!1;var r=e.split(",");return r.every((function(e){var r=e.split("/");if(e.trim().endsWith("/"))return!1;if(r.length>2)return!1;var i=r[0],a=r[1];return s(i,t,n)&&l(a)}))},u=function(e){return c(e,0,59)},d=function(e){return c(e,0,59)},h=function(e){return c(e,0,23)},p=function(e,t){return t&&a(e)||c(e,1,31)},f={jan:"1",feb:"2",mar:"3",apr:"4",may:"5",jun:"6",jul:"7",aug:"8",sep:"9",oct:"10",nov:"11",dec:"12"},m=function(e,t){if(-1!==e.search(/\/[a-zA-Z]/))return!1;if(t){var n=e.toLowerCase().replace(/[a-z]{3}/g,(function(e){return void 0===f[e]?e:f[e]}));return c(n,1,12)}return c(e,1,12)},g={sun:"0",mon:"1",tue:"2",wed:"3",thu:"4",fri:"5",sat:"6"},v=function(e,t,n,r){if(n&&a(e))return!0;if(!n&&a(e))return!1;if(-1!==e.search(/\/[a-zA-Z]/))return!1;if(t){var i=e.toLowerCase().replace(/[a-z]{3}/g,(function(e){return void 0===g[e]?e:g[e]}));return c(i,0,r?7:6)}return c(e,0,r?7:6)},b=function(e,t,n){return!(n&&a(e)&&a(t))},y=function(e){return e.trim().split(/\s+/)},w={alias:!1,seconds:!1,allowBlankDay:!1,allowSevenAsSunday:!1};t.isValidCron=function(e,t){t=n(n({},w),t);var r=y(e);if(r.length>(t.seconds?6:5)||r.length<5)return!1;var i=[];if(6===r.length){var a=r.shift();a&&i.push(u(a))}var o=r[0],s=r[1],l=r[2],c=r[3],f=r[4];return i.push(d(o)),i.push(h(s)),i.push(p(l,t.allowBlankDay)),i.push(m(c,t.alias)),i.push(v(f,t.alias,t.allowBlankDay,t.allowSevenAsSunday)),i.push(b(l,f,t.allowBlankDay)),i.every(Boolean)}},37021:function(e,t,n){var r=n(4364);(function(t,n){e.exports=n()})(globalThis,(()=>(()=>{"use strict";var e={949:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CronParser=void 0;var r=n(515),i=function(){function e(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1),this.expression=e,this.dayOfWeekStartIndexZero=t,this.monthStartIndexZero=n}return e.prototype.parse=function(){var e,t,n=null!==(e=this.expression)&&void 0!==e?e:"";if(n.startsWith("@")){var r=this.parseSpecial(this.expression);t=this.extractParts(r)}else t=this.extractParts(this.expression);return this.normalize(t),this.validate(t),t},e.prototype.parseSpecial=function(e){var t={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *"},n=t[e];if(!n)throw new Error("Unknown special expression.");return n},e.prototype.extractParts=function(e){if(!this.expression)throw new Error("cron expression is empty");for(var t=e.trim().split(/[ ]+/),n=0;n<t.length;n++)if(t[n].includes(",")){var r=t[n].split(",").map((function(e){return e.trim()})).filter((function(e){return""!==e})).map((function(e){return isNaN(Number(e))?e:Number(e)})).filter((function(e){return null!==e&&""!==e}));0===r.length&&r.push("*"),r.sort((function(e,t){return null!==e&&null!==t?e-t:0})),t[n]=r.map((function(e){return null!==e?e.toString():""})).join(",")}if(t.length<5)throw new Error("Expression has only ".concat(t.length," part").concat(1==t.length?"":"s",". At least 5 parts are required."));if(5==t.length)t.unshift(""),t.push("");else if(6==t.length){var i=/\d{4}$/.test(t[5])||"?"==t[4]||"?"==t[2];i?t.unshift(""):t.push("")}else if(t.length>7)throw new Error("Expression has ".concat(t.length," parts; too many!"));return t},e.prototype.normalize=function(e){var t=this;if(e[3]=e[3].replace("?","*"),e[5]=e[5].replace("?","*"),e[2]=e[2].replace("?","*"),0==e[0].indexOf("0/")&&(e[0]=e[0].replace("0/","*/")),0==e[1].indexOf("0/")&&(e[1]=e[1].replace("0/","*/")),0==e[2].indexOf("0/")&&(e[2]=e[2].replace("0/","*/")),0==e[3].indexOf("1/")&&(e[3]=e[3].replace("1/","*/")),0==e[4].indexOf("1/")&&(e[4]=e[4].replace("1/","*/")),0==e[6].indexOf("1/")&&(e[6]=e[6].replace("1/","*/")),e[5]=e[5].replace(/(^\d)|([^#/\s]\d)/g,(function(e){var n=e.replace(/\D/,""),r=n;return t.dayOfWeekStartIndexZero?"7"==n&&(r="0"):r=(parseInt(n)-1).toString(),e.replace(n,r)})),"L"==e[5]&&(e[5]="6"),"?"==e[3]&&(e[3]="*"),e[3].indexOf("W")>-1&&(e[3].indexOf(",")>-1||e[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)e[5]=e[5].replace(new RegExp(r,"gi"),n[r].toString());e[4]=e[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,(function(e){var n=e.replace(/\D/,""),r=n;return t.monthStartIndexZero&&(r=(parseInt(n)+1).toString()),e.replace(n,r)}));var i={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var a in i)e[4]=e[4].replace(new RegExp(a,"gi"),i[a].toString());"0"==e[0]&&(e[0]=""),/\*|\-|\,|\//.test(e[2])||!/\*|\//.test(e[1])&&!/\*|\//.test(e[0])||(e[2]+="-".concat(e[2]));for(var o=0;o<e.length;o++)if(-1!=e[o].indexOf(",")&&(e[o]=e[o].split(",").filter((function(e){return""!==e})).join(",")||"*"),"*/1"==e[o]&&(e[o]="*"),e[o].indexOf("/")>-1&&!/^\*|\-|\,/.test(e[o])){var s=null;switch(o){case 4:s="12";break;case 5:s="6";break;case 6:s="9999";break;default:s=null;break}if(null!==s){var l=e[o].split("/");e[o]="".concat(l[0],"-").concat(s,"/").concat(l[1])}}},e.prototype.validate=function(e){var t="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(e[0],t),this.validateOnlyExpectedCharactersFound(e[1],t),this.validateOnlyExpectedCharactersFound(e[2],t),this.validateOnlyExpectedCharactersFound(e[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(e[4],t),this.validateOnlyExpectedCharactersFound(e[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(e[6],t),this.validateAnyRanges(e)},e.prototype.validateAnyRanges=function(e){r.default.secondRange(e[0]),r.default.minuteRange(e[1]),r.default.hourRange(e[2]),r.default.dayOfMonthRange(e[3]),r.default.monthRange(e[4],this.monthStartIndexZero),r.default.dayOfWeekRange(e[5],this.dayOfWeekStartIndexZero)},e.prototype.validateOnlyExpectedCharactersFound=function(e,t){var n=e.match(new RegExp("[^".concat(t,"]+"),"gi"));if(n&&n.length)throw new Error("Expression contains invalid values: '".concat(n.toString(),"'"))},e}();t.CronParser=i},333:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionDescriptor=void 0;var i=n(823),a=n(949),o=function(){function e(t,n){if(this.expression=t,this.options=n,this.expressionParts=new Array(5),!this.options.locale&&e.defaultLocale&&(this.options.locale=e.defaultLocale),!e.locales[this.options.locale]){var i=Object.keys(e.locales)[0];r.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(i,"'.")),this.options.locale=i}this.i18n=e.locales[this.options.locale],void 0===n.use24HourTimeFormat&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return e.toString=function(t,n){var i=void 0===n?{}:n,a=i.throwExceptionOnParseError,o=void 0===a||a,s=i.verbose,l=void 0!==s&&s,c=i.dayOfWeekStartIndexZero,u=void 0===c||c,d=i.monthStartIndexZero,h=void 0!==d&&d,p=i.use24HourTimeFormat,f=i.locale,m=void 0===f?null:f,g=i.tzOffset,v=void 0===g?0:g,b={throwExceptionOnParseError:o,verbose:l,dayOfWeekStartIndexZero:u,monthStartIndexZero:h,use24HourTimeFormat:p,locale:m,tzOffset:v};b.tzOffset&&r.warn("'tzOffset' option has been deprecated and will be removed in a future release.");var y=new e(t,b);return y.getFullDescription()},e.initialize=function(t,n){void 0===n&&(n="en"),e.specialCharacters=["/","-",",","*"],e.defaultLocale=n,t.load(e.locales)},e.prototype.getFullDescription=function(){var e="";try{var t=new a.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=t.parse();var n=this.getTimeOfDayDescription(),r=this.getDayOfMonthDescription(),i=this.getMonthDescription(),o=this.getDayOfWeekDescription(),s=this.getYearDescription();e+=n+r+o+i+s,e=this.transformVerbosity(e,!!this.options.verbose),e=e.charAt(0).toLocaleUpperCase()+e.substr(1)}catch(l){if(this.options.throwExceptionOnParseError)throw"".concat(l);e=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD()}return e},e.prototype.getTimeOfDayDescription=function(){var t=this.expressionParts[0],n=this.expressionParts[1],r=this.expressionParts[2],a="";if(i.StringUtilities.containsAny(n,e.specialCharacters)||i.StringUtilities.containsAny(r,e.specialCharacters)||i.StringUtilities.containsAny(t,e.specialCharacters))if(t||!(n.indexOf("-")>-1)||n.indexOf(",")>-1||n.indexOf("/")>-1||i.StringUtilities.containsAny(r,e.specialCharacters))if(!t&&r.indexOf(",")>-1&&-1==r.indexOf("-")&&-1==r.indexOf("/")&&!i.StringUtilities.containsAny(n,e.specialCharacters)){var o=r.split(",");a+=this.i18n.at();for(var s=0;s<o.length;s++)a+=" ",a+=this.formatTime(o[s],n,""),s<o.length-2&&(a+=","),s==o.length-2&&(a+=this.i18n.spaceAnd())}else{var l=this.getSecondsDescription(),c=this.getMinutesDescription(),u=this.getHoursDescription();if(a+=l,a&&c&&(a+=", "),a+=c,c===u)return a;a&&u&&(a+=", "),a+=u}else{var d=n.split("-");a+=i.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(r,d[0],""),this.formatTime(r,d[1],""))}else a+=this.i18n.atSpace()+this.formatTime(r,n,t);return a},e.prototype.getSecondsDescription=function(){var e=this,t=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),(function(e){return e}),(function(t){return i.StringUtilities.format(e.i18n.everyX0Seconds(t),t)}),(function(t){return e.i18n.secondsX0ThroughX1PastTheMinute()}),(function(t){return"0"==t?"":parseInt(t)<20?e.i18n.atX0SecondsPastTheMinute(t):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(t)}));return t},e.prototype.getMinutesDescription=function(){var e=this,t=this.expressionParts[0],n=this.expressionParts[2],r=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),(function(e){return e}),(function(t){return i.StringUtilities.format(e.i18n.everyX0Minutes(t),t)}),(function(t){return e.i18n.minutesX0ThroughX1PastTheHour()}),(function(r){try{return"0"==r&&-1==n.indexOf("/")&&""==t?e.i18n.everyHour():parseInt(r)<20?e.i18n.atX0MinutesPastTheHour(r):e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour(r)}catch(i){return e.i18n.atX0MinutesPastTheHour(r)}}));return r},e.prototype.getHoursDescription=function(){var e=this,t=this.expressionParts[2],n=0,r=[];t.split("/")[0].split(",").forEach((function(e){var t=e.split("-");2===t.length&&r.push({value:t[1],index:n+1}),n+=t.length}));var a=0,o=this.getSegmentDescription(t,this.i18n.everyHour(),(function(t){var n=r.find((function(e){return e.value===t&&e.index===a})),i=n&&"0"!==e.expressionParts[1];return a++,i?e.formatTime(t,"59",""):e.formatTime(t,"0","")}),(function(t){return i.StringUtilities.format(e.i18n.everyX0Hours(t),t)}),(function(t){return e.i18n.betweenX0AndX1()}),(function(t){return e.i18n.atX0()}));return o},e.prototype.getDayOfWeekDescription=function(){var e=this,t=this.i18n.daysOfTheWeek(),n=null;return n="*"==this.expressionParts[5]?"":this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),(function(n,r){var i=n;n.indexOf("#")>-1?i=n.substring(0,n.indexOf("#")):n.indexOf("L")>-1&&(i=i.replace("L",""));var a=parseInt(i);if(e.options.tzOffset){var o=e.expressionParts[2],s=parseInt(o)+(e.options.tzOffset?e.options.tzOffset:0);s>=24?a++:s<0&&a--,a>6?a=0:a<0&&(a=6)}var l=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(r)[a]:t[a];if(n.indexOf("#")>-1){var c=null,u=n.substring(n.indexOf("#")+1),d=n.substring(0,n.indexOf("#"));switch(u){case"1":c=e.i18n.first(d);break;case"2":c=e.i18n.second(d);break;case"3":c=e.i18n.third(d);break;case"4":c=e.i18n.fourth(d);break;case"5":c=e.i18n.fifth(d);break}l=c+" "+l}return l}),(function(t){return 1==parseInt(t)?"":i.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(t),t)}),(function(t){var n=t.substring(0,t.indexOf("-")),r="*"!=e.expressionParts[3];return r?e.i18n.commaAndX0ThroughX1(n):e.i18n.commaX0ThroughX1(n)}),(function(t){var n=null;if(t.indexOf("#")>-1){var r=t.substring(t.indexOf("#")+1),i=t.substring(0,t.indexOf("#"));n=e.i18n.commaOnThe(r,i).trim()+e.i18n.spaceX0OfTheMonth()}else if(t.indexOf("L")>-1)n=e.i18n.commaOnTheLastX0OfTheMonth(t.replace("L",""));else{var a="*"!=e.expressionParts[3];n=a?e.i18n.commaAndOnX0():e.i18n.commaOnlyOnX0(t)}return n})),n},e.prototype.getMonthDescription=function(){var e=this,t=this.i18n.monthsOfTheYear(),n=this.getSegmentDescription(this.expressionParts[4],"",(function(n,r){return r&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(r)[parseInt(n)-1]:t[parseInt(n)-1]}),(function(t){return 1==parseInt(t)?"":i.StringUtilities.format(e.i18n.commaEveryX0Months(t),t)}),(function(t){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()}),(function(t){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()}));return n},e.prototype.getDayOfMonthDescription=function(){var e=this,t=null,n=this.expressionParts[3];switch(n){case"L":t=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":t=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var r=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(r){var a=parseInt(r[0].replace("W","")),o=1==a?this.i18n.firstWeekday():i.StringUtilities.format(this.i18n.weekdayNearestDayX0(),a.toString());t=i.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),o);break}var s=n.match(/L-(\d{1,2})/);if(s){var l=s[1];t=i.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(l),l);break}if("*"==n&&"*"!=this.expressionParts[5])return"";t=this.getSegmentDescription(n,this.i18n.commaEveryDay(),(function(t){return"L"==t?e.i18n.lastDay():e.i18n.dayX0?i.StringUtilities.format(e.i18n.dayX0(),t):t}),(function(t){return"1"==t?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(t)}),(function(t){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(t)}),(function(t){return e.i18n.commaOnDayX0OfTheMonth(t)}));break}return t},e.prototype.getYearDescription=function(){var e=this,t=this.getSegmentDescription(this.expressionParts[6],"",(function(e){return/^\d+$/.test(e)?new Date(parseInt(e),1).getFullYear().toString():e}),(function(t){return i.StringUtilities.format(e.i18n.commaEveryX0Years(t),t)}),(function(t){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()}),(function(t){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()}));return t},e.prototype.getSegmentDescription=function(e,t,n,r,a,o){var s=null,l=e.indexOf("/")>-1,c=e.indexOf("-")>-1,u=e.indexOf(",")>-1;if(e)if("*"===e)s=t;else if(l||c||u)if(u){for(var d=e.split(","),h="",p=0;p<d.length;p++)if(p>0&&d.length>2&&(h+=",",p<d.length-1&&(h+=" ")),p>0&&d.length>1&&(p==d.length-1||2==d.length)&&(h+="".concat(this.i18n.spaceAnd()," ")),d[p].indexOf("/")>-1||d[p].indexOf("-")>-1){var f=d[p].indexOf("-")>-1&&-1==d[p].indexOf("/"),m=this.getSegmentDescription(d[p],t,n,r,f?this.i18n.commaX0ThroughX1:a,o);f&&(m=m.replace(", ","")),h+=m}else h+=l?this.getSegmentDescription(d[p],t,n,r,a,o):n(d[p]);s=l?h:i.StringUtilities.format(o(e),h)}else if(l){d=e.split("/");if(s=i.StringUtilities.format(r(d[1]),d[1]),d[0].indexOf("-")>-1){var g=this.generateRangeSegmentDescription(d[0],a,n);0!=g.indexOf(", ")&&(s+=", "),s+=g}else if(-1==d[0].indexOf("*")){var v=i.StringUtilities.format(o(d[0]),n(d[0]));v=v.replace(", ",""),s+=i.StringUtilities.format(this.i18n.commaStartingX0(),v)}}else c&&(s=this.generateRangeSegmentDescription(e,a,n));else s=i.StringUtilities.format(o(e),n(e));else s="";return s},e.prototype.generateRangeSegmentDescription=function(e,t,n){var r="",a=e.split("-"),o=n(a[0],1),s=n(a[1],2),l=t(e);return r+=i.StringUtilities.format(l,o,s),r},e.prototype.formatTime=function(e,t,n){var r=0,i=0;this.options.tzOffset&&(r=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),i=parseFloat((this.options.tzOffset%1).toFixed(2)),0!=i&&(i*=60));var a=parseInt(e)+r,o=parseInt(t)+i;o>=60?(o-=60,a+=1):o<0&&(o+=60,a-=1),a>=24?a-=24:a<0&&(a=24+a);var s="",l=!1;this.options.use24HourTimeFormat||(l=!(!this.i18n.setPeriodBeforeTime||!this.i18n.setPeriodBeforeTime()),s=l?"".concat(this.getPeriod(a)," "):" ".concat(this.getPeriod(a)),a>12&&(a-=12),0===a&&(a=12));var c="";return n&&(c=":".concat(("00"+n).substring(n.length))),"".concat(l?s:"").concat(("00"+a.toString()).substring(a.toString().length),":").concat(("00"+o.toString()).substring(o.toString().length)).concat(c).concat(l?"":s)},e.prototype.transformVerbosity=function(e,t){if(!t&&(e=e.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),e=e.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),e=e.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),e=e.replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var n=0,r=Object.entries(this.i18n.conciseVerbosityReplacements());n<r.length;n++){var i=r[n],a=i[0],o=i[1];e=e.replace(new RegExp(a,"g"),o)}return e},e.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},e.locales={},e}();t.ExpressionDescriptor=o},747:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.enLocaleLoader=void 0;var r=n(486),i=function(){function e(){}return e.prototype.load=function(e){e["en"]=new r.en},e}();t.enLocaleLoader=i},486:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.en=void 0;var n=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},e.prototype.everyMinute=function(){return"every minute"},e.prototype.everyHour=function(){return"every hour"},e.prototype.atSpace=function(){return"At "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},e.prototype.at=function(){return"At"},e.prototype.spaceAnd=function(){return" and"},e.prototype.everySecond=function(){return"every second"},e.prototype.everyX0Seconds=function(){return"every %s seconds"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},e.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},e.prototype.everyX0Minutes=function(){return"every %s minutes"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},e.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},e.prototype.everyX0Hours=function(){return"every %s hours"},e.prototype.betweenX0AndX1=function(){return"between %s and %s"},e.prototype.atX0=function(){return"at %s"},e.prototype.commaEveryDay=function(){return", every day"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},e.prototype.commaX0ThroughX1=function(){return", %s through %s"},e.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},e.prototype.first=function(){return"first"},e.prototype.second=function(){return"second"},e.prototype.third=function(){return"third"},e.prototype.fourth=function(){return"fourth"},e.prototype.fifth=function(){return"fifth"},e.prototype.commaOnThe=function(){return", on the "},e.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},e.prototype.lastDay=function(){return"the last day"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},e.prototype.commaOnlyOnX0=function(){return", only on %s"},e.prototype.commaAndOnX0=function(){return", and on %s"},e.prototype.commaEveryX0Months=function(){return", every %s months"},e.prototype.commaOnlyInX0=function(){return", only in %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},e.prototype.firstWeekday=function(){return"first weekday"},e.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},e.prototype.commaEveryX0Days=function(){return", every %s days"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},e.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},e.prototype.commaEveryHour=function(){return", every hour"},e.prototype.commaEveryX0Years=function(){return", every %s years"},e.prototype.commaStartingX0=function(){return", starting %s"},e.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},e.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},e}();t.en=n},515:(e,t)=>{function n(e,t){if(!e)throw new Error(t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.secondRange=function(e){for(var t=e.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,"seconds part must be >= 0 and <= 59")}},e.minuteRange=function(e){for(var t=e.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,"minutes part must be >= 0 and <= 59")}},e.hourRange=function(e){for(var t=e.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=23,"hours part must be >= 0 and <= 23")}},e.dayOfMonthRange=function(e){for(var t=e.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=1&&i<=31,"DOM part must be >= 1 and <= 31")}},e.monthRange=function(e,t){for(var r=e.split(","),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var a=parseInt(r[i],10);n(a>=1&&a<=12,t?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},e.dayOfWeekRange=function(e,t){for(var r=e.split(","),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var a=parseInt(r[i],10);n(a>=0&&a<=6,t?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},e}();t["default"]=r},823:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtilities=void 0;var n=function(){function e(){}return e.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.replace(/%s/g,(function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return t.shift()}))},e.containsAny=function(e,t){return t.some((function(t){return e.indexOf(t)>-1}))},e}();t.StringUtilities=n}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}var i={};return(()=>{var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.toString=void 0;var t=n(333),r=n(747);t.ExpressionDescriptor.initialize(new r.enLocaleLoader),e["default"]=t.ExpressionDescriptor;var a=t.ExpressionDescriptor.toString;e.toString=a})(),i})()))},91522:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".validation-message{padding:5px;position:absolute;bottom:-35px}",""]),t["default"]=s},28913:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,"#__layout,#__nuxt,#app,.vm-console,.vm-console>DIV,.vm-console>DIV>DIV,BODY,HTML,MAIN{height:100%}",""]),t["default"]=s},8199:function(e,t,n){"use strict";var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,'.d2h-wrapper{text-align:left}.d2h-file-header{background-color:#f7f7f7;border-bottom:1px solid #d8d8d8;display:flex;font-family:Source Sans Pro,Helvetica Neue,Helvetica,Arial,sans-serif;height:35px;padding:5px 10px}.d2h-file-header.d2h-sticky-header{position:sticky;top:0;z-index:1}.d2h-file-stats{display:flex;font-size:14px;margin-left:auto}.d2h-lines-added{border:1px solid #b4e2b4;border-radius:5px 0 0 5px;color:#399839;padding:2px;text-align:right;vertical-align:middle}.d2h-lines-deleted{border:1px solid #e9aeae;border-radius:0 5px 5px 0;color:#c33;margin-left:1px;padding:2px;text-align:left;vertical-align:middle}.d2h-file-name-wrapper{align-items:center;display:flex;font-size:15px;width:100%}.d2h-file-name{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.d2h-file-wrapper{margin-bottom:1em}.d2h-file-collapse,.d2h-file-wrapper{border:1px solid #ddd;border-radius:3px}.d2h-file-collapse{-webkit-box-pack:end;-ms-flex-pack:end;align-items:center;cursor:pointer;display:none;font-size:12px;justify-content:flex-end;padding:4px 8px}.d2h-file-collapse.d2h-selected{background-color:#c8e1ff}.d2h-file-collapse-input{margin:0 4px 0 0}.d2h-diff-table{border-collapse:collapse;font-family:Menlo,Consolas,monospace;font-size:13px;width:100%}.d2h-files-diff{display:flex;width:100%}.d2h-file-diff{overflow-y:hidden}.d2h-file-diff.d2h-d-none,.d2h-files-diff.d2h-d-none{display:none}.d2h-file-side-diff{display:inline-block;overflow-x:scroll;overflow-y:hidden;width:50%}.d2h-code-line{padding:0 8em}.d2h-code-line,.d2h-code-side-line{display:inline-block;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;width:100%}.d2h-code-side-line{padding:0 4.5em}.d2h-code-line-ctn{word-wrap:normal;background:none;display:inline-block;padding:0;-webkit-user-select:text;-moz-user-select:text;user-select:text;vertical-align:middle;white-space:pre;width:100%}.d2h-code-line del,.d2h-code-side-line del{background-color:#ffb6ba}.d2h-code-line del,.d2h-code-line ins,.d2h-code-side-line del,.d2h-code-side-line ins{border-radius:.2em;display:inline-block;margin-top:-1px;text-decoration:none;vertical-align:middle}.d2h-code-line ins,.d2h-code-side-line ins{background-color:#97f295;text-align:left}.d2h-code-line-prefix{word-wrap:normal;background:none;display:inline;padding:0;white-space:pre}.line-num1{float:left}.line-num1,.line-num2{box-sizing:border-box;overflow:hidden;padding:0 .5em;text-overflow:ellipsis;width:3.5em}.line-num2{float:right}.d2h-code-linenumber{background-color:#fff;border:solid #eee;border-width:0 1px;box-sizing:border-box;color:rgba(0,0,0,.3);cursor:pointer;display:inline-block;position:absolute;text-align:right;width:7.5em}.d2h-code-linenumber:after{content:"\\200b"}.d2h-code-side-linenumber{background-color:#fff;border:solid #eee;border-width:0 1px;box-sizing:border-box;color:rgba(0,0,0,.3);cursor:pointer;display:inline-block;overflow:hidden;padding:0 .5em;position:absolute;text-align:right;text-overflow:ellipsis;width:4em}.d2h-code-side-linenumber:after{content:"\\200b"}.d2h-code-side-emptyplaceholder,.d2h-emptyplaceholder{background-color:#f1f1f1;border-color:#e1e1e1}.d2h-code-line-prefix,.d2h-code-linenumber,.d2h-code-side-linenumber,.d2h-emptyplaceholder{-webkit-user-select:none;-moz-user-select:none;user-select:none}.d2h-code-linenumber,.d2h-code-side-linenumber{direction:rtl}.d2h-del{background-color:#fee8e9;border-color:#e9aeae}.d2h-ins{background-color:#dfd;border-color:#b4e2b4}.d2h-info{background-color:#f8fafd;border-color:#d5e4f2;color:rgba(0,0,0,.3)}.d2h-file-diff .d2h-del.d2h-change{background-color:#fdf2d0}.d2h-file-diff .d2h-ins.d2h-change{background-color:#ded}.d2h-file-list-wrapper{margin-bottom:10px}.d2h-file-list-wrapper a{color:#3572b0;text-decoration:none}.d2h-file-list-wrapper a:visited{color:#3572b0}.d2h-file-list-header{text-align:left}.d2h-file-list-title{font-weight:700}.d2h-file-list-line{display:flex;text-align:left}.d2h-file-list{display:block;list-style:none;margin:0;padding:0}.d2h-file-list>li{border-bottom:1px solid #ddd;margin:0;padding:5px 10px}.d2h-file-list>li:last-child{border-bottom:none}.d2h-file-switch{cursor:pointer;display:none;font-size:10px}.d2h-icon{fill:currentColor;margin-right:10px;vertical-align:middle}.d2h-deleted{color:#c33}.d2h-added{color:#399839}.d2h-changed{color:#d0b44c}.d2h-moved{color:#3572b0}.d2h-tag{background-color:#fff;display:flex;font-size:10px;margin-left:5px;padding:0 2px}.d2h-deleted-tag{border:1px solid #c33}.d2h-added-tag{border:1px solid #399839}.d2h-changed-tag{border:1px solid #d0b44c}.d2h-moved-tag{border:1px solid #3572b0}',""]),t.A=s},96696:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".dropdown-button-group .no-left-border-radius{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-button-group .no-right-border-radius{border-top-right-radius:0;border-bottom-right-radius:0}.dropdown-button-group .btn{line-height:normal;border:0}.dropdown-button-group .btn-group-xs>.btn,.dropdown-button-group .btn-xs,.dropdown-button-group .btn-xs .btn-label{padding:2px 3px;font-size:13px}.dropdown-button-group .v-popper .text-right{margin-top:5px}.dropdown-button-group .v-popper .trigger{height:100%}.dropdown-button-group .v-popper .trigger .icon-container{height:100%;padding:10px 10px 10px 10px}.dropdown-button-group .v-popper .trigger .icon-container i{transform:scale(1)}.dropdown-button-group .v-popper .trigger .icon-container.btn-xs{padding:2px 4px 4px 4px}.dropdown-button-group .v-popper .trigger .icon-container.btn-sm{padding:10px 10px 10px 10px}.dropdown-button-group .v-popper .trigger .icon-container.btn-lg{padding:18px 10px 10px 10px}.dropdown-button-group .v-popper .trigger .icon-container:focus{outline-style:none;box-shadow:none;border-color:transparent}.dropdown-button-group .dropdown-button{background:var(--tooltip-bg);color:var(--link-text);padding:0;display:inline-flex}.dropdown-button-group .dropdown-button .wrapper-content button{border-right:0}.dropdown-button-group .dropdown-button .icon-chevron-down,.dropdown-button-group .dropdown-button>*{color:var(--primary);background-color:transparent}.dropdown-button-group .dropdown-button.bg-primary:hover{background:var(--accent-btn-hover)}.dropdown-button-group .dropdown-button.one-action{position:relative}.dropdown-button-group .dropdown-button.one-action>.btn{padding:15px 35px 15px 15px}.dropdown-button-group .dropdown-button.one-action .v-popper .trigger{position:absolute;top:0;right:0;left:0;bottom:0}.dropdown-button-group .dropdown-button.one-action .v-popper .trigger BUTTON{position:absolute;right:0}.dropdown-button-group .v-popper__popper{border:none;margin-top:0}.dropdown-button-group .v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{display:none}.dropdown-button-group .v-popper__popper .v-popper__inner{color:var(--dropdown-text);background-color:var(--dropdown-bg);border:1px solid var(--dropdown-border);padding:0;text-align:left}.dropdown-button-group .v-popper__popper .v-popper__inner LI{padding:10px}.dropdown-button-group .v-popper__popper .v-popper__inner LI.divider{padding-top:0;padding-bottom:0}.dropdown-button-group .v-popper__popper .v-popper__inner LI.divider>.divider-inner{padding:0;border-bottom:1px solid var(--dropdown-divider);width:125%;margin:0 auto}.dropdown-button-group .v-popper__popper .v-popper__inner LI:not(.divider):hover{background-color:var(--dropdown-hover-bg);color:var(--dropdown-hover-text);cursor:pointer}.dropdown-button-group .user-info{border-bottom:1px solid var(--border);display:block}",""]),t["default"]=s},26855:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".menu[data-v-3af780f6],.root[data-v-3af780f6]{position:absolute}.menu[data-v-3af780f6]{visibility:hidden;top:0;left:0;z-index:41;min-width:145px;color:var(--dropdown-text);background-color:var(--dropdown-bg);border:1px solid var(--dropdown-border);border-radius:5px;box-shadow:0 5px 20px var(--shadow)}.menu LI[data-v-3af780f6]{align-items:center;display:flex;padding:8px 10px;margin:0}.menu LI[data-v-3af780f6]:focus-visible{outline:2px solid var(--primary-keyboard-focus);outline-offset:-2px}.menu LI[disabled][data-v-3af780f6]{cursor:not-allowed!important;color:var(--disabled-text)}.menu LI.divider[data-v-3af780f6]{padding:0;border-bottom:1px solid var(--dropdown-divider)}.menu LI[data-v-3af780f6]:not(.divider):hover{background-color:var(--dropdown-hover-bg);color:var(--dropdown-hover-text);cursor:pointer}.menu LI .icon[data-v-3af780f6]{display:unset;width:14px;text-align:center;margin-right:8px}.menu LI.no-actions[data-v-3af780f6],.menu LI.no-actions[data-v-3af780f6]:hover{color:var(--disabled-text)}.menu LI.no-actions[data-v-3af780f6]:hover{background-color:initial;cursor:default}.background[data-v-3af780f6]{position:fixed;top:0;left:0;right:0;bottom:0;opacity:0;z-index:40}",""]),t["default"]=s},93894:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".modal-overlay{position:absolute;top:0;left:0;width:100vw;height:100vh;background-color:var(--overlay-bg);display:flex;justify-content:center;align-items:center;z-index:20}.modal-overlay .modal-container{background-color:var(--modal-bg);border-radius:var(--border-radius);max-height:95vh;overflow:auto;border:2px solid var(--modal-border)}.modal-fade-enter-active,.modal-fade-leave-active{transition:opacity .2s}.modal-fade-enter,.modal-fade-leave-to{opacity:0}",""]),t["default"]=s},18503:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".manual-refresh i[data-v-c051f5ae]{margin:0 0 0 8px!important;font-size:1rem!important}",""]),t["default"]=s},70655:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".banner-graphic{position:relative}.banner-graphic .graphic{display:flex;flex-direction:column;height:240px;overflow:hidden}.banner-graphic .graphic>img.banner{flex:1;-o-object-fit:cover;object-fit:cover}.banner-graphic .title{display:flex;justify-content:center;align-items:center;position:absolute;text-align:center;top:0;height:100%;width:100%;margin-top:-20px}.banner-graphic.small .graphic{height:200px}.banner-graphic.small .graphic img.banner{margin-top:-20px}",""]),t["default"]=s},31354:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".button-dropdown.btn-sm[data-v-2ab9ff7a] >.vs__dropdown-toggle .vs__actions:after{font-size:1.6rem}.button-dropdown.btn-lg[data-v-2ab9ff7a] >.vs__dropdown-toggle .vs__actions:after{font-size:2.6rem}.button-dropdown[data-v-2ab9ff7a]{background:var(--accent-btn);border:solid 1px var(--link);color:var(--link);padding:0}.button-dropdown.vs--open[data-v-2ab9ff7a] {outline:none;box-shadow:none}.button-dropdown[data-v-2ab9ff7a]:hover .vs__dropdown-toggle .vs__actions,.button-dropdown[data-v-2ab9ff7a]:hover .vs__selected-options{background:var(--accent-btn-hover)}.button-dropdown[data-v-2ab9ff7a]:hover .vs__selected-options .vs__selected button{background-color:transparent;color:var(--accent-btn-hover-text)}.button-dropdown[data-v-2ab9ff7a]:hover .vs__dropdown-toggle .vs__actions:after{color:var(--accent-btn-hover-text)}.button-dropdown[data-v-2ab9ff7a] >.vs__dropdown-toggle{width:100%;display:grid;grid-template-columns:75% 25%;border:none;background:transparent}.button-dropdown[data-v-2ab9ff7a] >.vs__dropdown-toggle .vs__actions:after{color:var(--link);line-height:1}.button-dropdown[data-v-2ab9ff7a] .vs__selected-options .vs__selected{margin:unset;border:none}.button-dropdown[data-v-2ab9ff7a] .vs__selected-options .vs__selected button{border:none;background:transparent;color:var(--link)}.button-dropdown[data-v-2ab9ff7a] .vs__selected-options .vs__search{position:absolute;opacity:0;padding:0}.button-dropdown[data-v-2ab9ff7a] .vs__dropdown-menu{min-width:unset;width:-moz-fit-content;width:fit-content}",""]),t["default"]=s},53184:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".borderless[data-v-a3361b40]{background-color:transparent;border:none}.borderless[data-v-a3361b40]:focus-visible{outline:2px solid var(--primary-keyboard-focus);outline-offset:-2px}.borderless[data-v-a3361b40]:focus,.borderless[data-v-a3361b40]:hover{background-color:var(--accent-btn);box-shadow:none}",""]),t["default"]=s},96995:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,'.code-mirror.code-mirror-container:focus-visible{outline:2px solid var(--primary-keyboard-focus)}.code-mirror.as-text-area .codemirror-container{min-height:40px;position:relative;display:block;box-sizing:border-box;width:100%;padding:10px;background-color:var(--input-bg);border-radius:var(--border-radius);border:solid var(--border-width) var(--input-border);color:var(--input-text)}.code-mirror.as-text-area .codemirror-container:hover{border-color:var(--input-hover-border)}.code-mirror.as-text-area .codemirror-container.focus,.code-mirror.as-text-area .codemirror-container:focus{outline:none;border-color:var(--outline)}.code-mirror.as-text-area .codemirror-container .CodeMirror-wrap pre{word-break:break-word}.code-mirror.as-text-area .codemirror-container .CodeMirror-code .CodeMirror-line .cm-markdown-single-trailing-space-even:before,.code-mirror.as-text-area .codemirror-container .CodeMirror-code .CodeMirror-line .cm-markdown-single-trailing-space-odd:before,.code-mirror.as-text-area .codemirror-container .CodeMirror-code .CodeMirror-line:not(:last-child)>span:after{color:var(--muted);position:absolute;line-height:20px;pointer-events:none}.code-mirror.as-text-area .codemirror-container .CodeMirror-code .CodeMirror-line:not(:last-child)>span:after{content:"↵";margin-left:2px}.code-mirror.as-text-area .codemirror-container .CodeMirror-code .CodeMirror-line .cm-markdown-single-trailing-space-even:before,.code-mirror.as-text-area .codemirror-container .CodeMirror-code .CodeMirror-line .cm-markdown-single-trailing-space-odd:before{font-weight:700;content:"·"}.code-mirror.as-text-area .codemirror-container .CodeMirror-lines{color:var(--input-text);padding:0}.code-mirror.as-text-area .codemirror-container .CodeMirror-lines .CodeMirror-line>span>span.cm-overlay{font-family:monospace}.code-mirror.as-text-area .codemirror-container .CodeMirror-lines .CodeMirror-line>span{font-family:Lato,arial,helvetica,sans-serif}.code-mirror.as-text-area .codemirror-container .CodeMirror-sizer{min-height:20px}.code-mirror.as-text-area .codemirror-container .CodeMirror-selected{background-color:var(--primary)!important}.code-mirror.as-text-area .codemirror-container .CodeMirror-selectedtext{color:var(--primary-text)}.code-mirror.as-text-area .codemirror-container .CodeMirror-line::selection,.code-mirror.as-text-area .codemirror-container .CodeMirror-line>span::selection,.code-mirror.as-text-area .codemirror-container .CodeMirror-line>span>span::selection{color:var(--primary-text);background-color:var(--primary)}.code-mirror.as-text-area .codemirror-container .CodeMirror-line::-moz-selection,.code-mirror.as-text-area .codemirror-container .CodeMirror-line>span::-moz-selection,.code-mirror.as-text-area .codemirror-container .CodeMirror-line>span>span::-moz-selection{color:var(--primary-text);background-color:var(--primary)}.code-mirror.as-text-area .codemirror-container .CodeMirror-gutters .CodeMirror-foldgutter:empty{display:none}.code-mirror{position:relative;margin-bottom:20px}.code-mirror .escape-text{font-size:12px;position:absolute;bottom:-20px;left:0}.code-mirror .codemirror-container{z-index:0;font-size:inherit!important}.code-mirror .codemirror-container .CodeMirror{height:auto;background:none}.code-mirror .codemirror-container .CodeMirror-gutters{background:inherit}.code-mirror .keymap.overlay{position:absolute;display:flex;top:7px;right:7px;z-index:1;cursor:pointer}.code-mirror .keymap.overlay .keymap-indicator{width:48px;height:32px;display:flex;align-items:center;justify-content:center;border:1px solid transparent;color:var(--darker);background-color:var(--overlay-bg);font-size:12px}.code-mirror .keymap.overlay .keymap-indicator .close-indicator{width:0}.code-mirror .keymap.overlay .keymap-indicator .close-indicator .icon-close{color:var(--primary);opacity:0}.code-mirror .keymap.overlay .keymap-indicator .keymap-icon{font-size:24px;opacity:.8;transition:margin-right .1s ease-in-out}.code-mirror .keymap.overlay .keymap-indicator:hover{border:1px solid var(--primary);border-radius:var(--border-radius)}.code-mirror .keymap.overlay .keymap-indicator:hover .close-indicator{margin-left:-6px;width:auto}.code-mirror .keymap.overlay .keymap-indicator:hover .close-indicator .icon-close{opacity:1;transition:opacity .1s ease-in-out .1s}.code-mirror .keymap.overlay .keymap-indicator:hover .keymap-icon{opacity:.6;margin-right:10px}',""]),t["default"]=s},1694:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=n(20062),l=n.n(s),c=new URL(n(45605),n.b),u=o()(i()),d=l()(c);u.push([e.id,"h2[data-v-05573032]{display:flex;align-items:center}h2 i[data-v-05573032]{font-size:12px;margin-left:5px}.support-link[data-v-05573032]:not(:last-child){margin-bottom:15px}.wechat-modal[data-v-05573032]{margin:60px;display:flex;flex-direction:column;align-items:center}.link[data-v-05573032]{cursor:pointer}.btn[data-v-05573032]{margin:20px auto 0}.qr-img[data-v-05573032]{background-image:url("+d+");background-repeat:no-repeat;background-size:cover;background-position:50%;height:128px;width:128px;margin:15px auto 10px}",""]),t["default"]=u},69488:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".cru-resource-yaml-container .resource-yaml .yaml-editor[data-v-5da39a9c]{min-height:100px}.create-resource-container .resource-container[data-v-5da39a9c]{display:flex;flex-direction:column}.create-resource-container .subtype-banner .round-image[data-v-5da39a9c]{background-color:var(--primary)}.create-resource-container .subtype-banner[data-v-5da39a9c]:focus-visible{outline:2px solid var(--primary-keyboard-focus)}.title[data-v-5da39a9c]{margin-top:20px}.title.with-description[data-v-5da39a9c]{margin-top:0}.subtype-container[data-v-5da39a9c]{position:relative;display:flex;height:100%}.subtype-body[data-v-5da39a9c]{flex:1;padding:10px}.subtype-logo[data-v-5da39a9c]{align-items:center;display:flex;justify-content:center;min-width:100px;min-height:100px;overflow:hidden;background-color:var(--box-bg)}.subtype-logo img[data-v-5da39a9c]{width:56px;height:56px;-o-object-fit:contain;object-fit:contain;position:relative;top:2px}form.create-resource-container .cru__footer[data-v-5da39a9c]{border-top:var(--header-border-size) solid var(--header-border)}.cru[data-v-5da39a9c],.cru__form[data-v-5da39a9c]{display:flex;flex-direction:column;flex-grow:1}.cru__content[data-v-5da39a9c]{flex-grow:1}.cru__content-wizard[data-v-5da39a9c]{display:flex}.cru__footer[data-v-5da39a9c]{right:0;bottom:0;margin-left:-20px;margin-right:-20px;margin-bottom:-20px;padding:10px 20px}.cru__errors[data-v-5da39a9c],.cru__footer[data-v-5da39a9c]{position:sticky;background-color:var(--header-bg)}.cru__errors[data-v-5da39a9c]{top:0;z-index:1;margin:10px 0}.description[data-v-5da39a9c]{margin-bottom:15px;margin-top:5px}",""]),t["default"]=s},3367:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".cru-resource-footer{display:flex;justify-content:flex-end;margin-top:20px;z-index:19}.cru-resource-footer .btn{margin-left:20px}",""]),t["default"]=s},2387:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".with-copy[data-v-348d5cf1]{border:solid 1px var(--border);padding:10px;position:relative;background-color:var(--input-bg);border-radius:var(--border-radius);border:solid var(--border-width) var(--input-border)}.with-copy>button[data-v-348d5cf1]{position:absolute;top:-1px;right:-1px;border-radius:0 0 0 var(--border-radius)}.monospace[data-v-348d5cf1]{white-space:pre-wrap;word-wrap:break-all}",""]),t["default"]=s},6618:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,'.detail-top:not(.empty){padding-top:10px;border-top:1px solid var(--border);margin-top:10px}.detail-top .namespaceLinkList:not(:first-child):before{content:", "}.detail-top .tags{display:inline-flex;flex-direction:row;flex-wrap:wrap;position:relative;top:-2px}.detail-top .tags .label{position:relative;top:4px}.detail-top .tags .tag{margin:2px 4px 0 2px;font-size:12px}.detail-top .annotation{margin-top:10px}.detail-top .label{color:var(--input-label);margin:0 4px 0 0}.detail-top__label-button{padding:4px}.detail-top .details{display:flex;flex-direction:row;flex-wrap:wrap}.detail-top .details .detail{margin-right:20px;margin-bottom:3px}.detail-top .details:not(:first-of-type){margin-top:3px}.detail-top>div:not(:last-of-type){margin-bottom:4px}.detail-top .icon{vertical-align:top}',""]),t["default"]=s},42610:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".project-namespaces[data-v-623c683a] .project-namespaces-table table{table-layout:fixed}.project-namespaces[data-v-623c683a] .project-name{line-height:30px}.project-namespaces[data-v-623c683a] .project-bar{display:flex;flex-direction:row;justify-content:space-between}.project-namespaces[data-v-623c683a] .project-bar .group-tab{max-width:calc(100% - 230px)}.project-namespaces[data-v-623c683a] .project-bar .project-name{display:flex;flex-direction:row;align-items:center}.project-namespaces[data-v-623c683a] .project-bar .project-name span:first-child{padding-right:8px}.project-namespaces[data-v-623c683a] .project-bar .project-name span:last-child{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.project-namespaces[data-v-623c683a] .project-bar.has-description .right{margin-top:5px}.project-namespaces[data-v-623c683a] .project-bar.has-description .group-tab,.project-namespaces[data-v-623c683a] .project-bar.has-description .group-tab:after{height:50px}.project-namespaces[data-v-623c683a] .project-bar.has-description .group-tab:after{right:-20px}.project-namespaces[data-v-623c683a] .project-bar.has-description .group-tab .description{margin-top:-20px}.project-namespaces[data-v-623c683a] .namespace-name{display:flex;align-items:center}.project-namespaces[data-v-623c683a] .namespace-name .icon-istio{color:var(--primary)}",""]),t["default"]=s},63204:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".psa-tooltip{margin:3px 0;padding:0 8px 0 22px}",""]),t["default"]=s},9299:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".root[data-v-639a852a]{max-width:100%;position:relative;overflow:auto}",""]),t["default"]=s},20602:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=n(8199),l=o()(i());l.i(s.A),l.push([e.id,"[data-v-639a852a] .d2h-wrapper .d2h-file-header{display:none}[data-v-639a852a] .d2h-wrapper .d2h-file-wrapper{border-color:var(--diff-border)}[data-v-639a852a] .d2h-wrapper .d2h-diff-table{font-family:Menlo,Consolas,monospace;font-size:13px}[data-v-639a852a] .d2h-wrapper .d2h-code-side-emptyplaceholder,[data-v-639a852a] .d2h-wrapper .d2h-emptyplaceholder{border-color:var(--diff-linenum-border);background-color:var(--diff-empty-placeholder)}[data-v-639a852a] .d2h-wrapper .d2h-code-linenumber,[data-v-639a852a] .d2h-wrapper .d2h-code-side-linenumber{background-color:var(--diff-linenum-bg);color:var(--diff-linenum);border-color:var(--diff-linenum-border);border-left:0}[data-v-639a852a] .d2h-wrapper .d2h-code-line del,[data-v-639a852a] .d2h-wrapper .d2h-code-side-line del{background-color:var(--diff-line-del-bg)}[data-v-639a852a] .d2h-wrapper .d2h-code-line ins,[data-v-639a852a] .d2h-wrapper .d2h-code-side-line ins{background-color:var(--diff-line-ins-bg)}[data-v-639a852a] .d2h-wrapper .d2h-del{background-color:var(--diff-del-bg);border-color:var(--diff-del-border);color:var(--body-text)}[data-v-639a852a] .d2h-wrapper .d2h-ins{background-color:var(--diff-ins-bg);border-color:var(--diff-ins-border);color:var(--body-text)}[data-v-639a852a] .d2h-wrapper .d2h-info{background-color:var(--diff-header-bg);color:var(--diff-header);border-color:var(--diff-header-border)}[data-v-639a852a] .d2h-wrapper .d2h-file-diff .d2h-del.d2h-change{background-color:var(--diff-chg-del)}[data-v-639a852a] .d2h-wrapper .d2h-file-diff .d2h-ins.d2h-change{background-color:var(--diff-chg-ins)}",""]),t["default"]=l},71124:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".vertical[data-v-01996ade]{flex-direction:column;width:100%}.subtle[data-v-01996ade]{opacity:.7}.message-icon[data-v-01996ade]{display:flex;align-items:center;justify-content:center;flex:1;flex-direction:column}.message-icon>I[data-v-01996ade]{font-size:64px;margin-bottom:20px}.message-icon>I.info[data-v-01996ade]{color:var(--primary)}.message-icon>I.error[data-v-01996ade]{color:var(--error)}.message-icon>I.warning[data-v-01996ade]{color:var(--warning)}.message-icon>I.success[data-v-01996ade]{color:var(--success)}.message-icon>.message[data-v-01996ade]{font-size:20px;margin-bottom:40px;max-width:60%;text-align:center;line-height:30px}",""]),t["default"]=s},92049:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".svg-icon[data-v-373e6345]{height:24px;width:24px}",""]),t["default"]=s},83234:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".indented-panel{height:100%;width:90%;margin-left:5%}@media only screen and (max-width:992px){.indented-panel{margin:0 20px;width:auto}}",""]),t["default"]=s},73132:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".info-box[data-v-1c5683df]{border:2px solid var(--tabbed-border);padding:10px;margin-bottom:20px;border-radius:var(--border-radius);flex-grow:1;flex-basis:0;position:relative}.info-box .stepped[data-v-1c5683df]{padding-left:40px}.info-box .step-number[data-v-1c5683df]{border-radius:var(--border-radius);background:var(--secondary);color:var(--input-text);display:inline-block;padding:5px 10px}.info-box .step-list[data-v-1c5683df]{margin:0}.info-box .info-column[data-v-1c5683df]:not(:last-child){border-right:1px solid var(--tabbed-border)}.info-box .info-row[data-v-1c5683df]{margin-bottom:10px}.info-box .info-row .info-row-label[data-v-1c5683df]{padding-top:2px;display:inline-block}.info-box .info-column label[data-v-1c5683df],.info-box .info-row label[data-v-1c5683df]{color:var(--input-label)}.info-box .info-column .usage[data-v-1c5683df]{margin-bottom:10px}.info-box .info-column .usage label[data-v-1c5683df]{display:inline-block;font-size:12px;padding-top:6px}.info-box .info-column .flex-item-half[data-v-1c5683df]{align-items:center}",""]),t["default"]=s},89827:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".overlay[data-v-1d9696d1]{align-items:center;background-color:var(--overlay-bg);display:flex;justify-content:center;position:absolute;bottom:0;top:0;left:0;right:0;text-align:center;z-index:12}.overlay-main-mode[data-v-1d9696d1]{top:var(--header-height);z-index:51}.overlay-content-mode[data-v-1d9696d1]{left:calc(var(--nav-width));top:var(--header-height)}",""]),t["default"]=s},49358:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".footer[data-v-0430f766]{width:100%;display:flex;justify-content:center}.banner[data-v-0430f766]{margin-bottom:0}",""]),t["default"]=s},59024:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".modal{border-radius:var(--border-radius);max-height:100vh}.modal.card-container{box-shadow:none}",""]),t["default"]=s},46618:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".move-modal .namespaces{max-height:200px;overflow-y:scroll}.move-modal .move-modal-card{box-shadow:none;border-radius:var(--border-radius)}.move-modal .actions{text-align:right}.move-modal .card-actions{display:flex;justify-content:center}",""]),t["default"]=s},54492:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".progress[data-v-f3ae1ea4]{display:block;border-radius:90px;background-color:var(--progress-bg);height:10px;width:100px}.progress .piece[data-v-f3ae1ea4]{display:inline-block;height:10px;border-radius:0;border-right:1px solid var(--progress-divider);vertical-align:top}.progress .piece[data-v-f3ae1ea4]:first-child{border-top-left-radius:90px;border-bottom-left-radius:90px}.progress .piece[data-v-f3ae1ea4]:last-child{border-top-right-radius:90px;border-bottom-right-radius:90px;border-right:0}.piece.bg-success[data-v-f3ae1ea4]:only-child{opacity:.5}",""]),t["default"]=s},3284:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".confirm-modal .btn[data-v-72d8b215]{margin:0 10px}.confirm-modal .body[data-v-72d8b215]{min-height:75px;padding:10px 0 0 15px}.confirm-modal .body p[data-v-72d8b215]{margin-top:10px}.confirm-modal .header[data-v-72d8b215]{background-color:var(--error);padding:15px 0 0 15px;height:50px}.confirm-modal .header h4[data-v-72d8b215]{color:#fff}.confirm-modal .footer[data-v-72d8b215]{border-top:1px solid var(--border);text-align:center;padding:10px 0 0 15px;height:60px}",""]),t["default"]=s},19202:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".masthead[data-v-d6a0b0a2]{padding-bottom:10px;border-bottom:1px solid var(--border);margin-bottom:10px}HEADER[data-v-d6a0b0a2]{margin:0;grid-template-columns:minmax(0,1fr) auto}.primaryheader[data-v-d6a0b0a2],.primaryheader h1[data-v-d6a0b0a2]{display:flex;flex-direction:row;align-items:center}.primaryheader h1[data-v-d6a0b0a2]{margin:0 0 0 -5px;overflow-x:hidden}.primaryheader h1 .masthead-resource-title[data-v-d6a0b0a2]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.primaryheader h1 .masthead-resource-list-link[data-v-d6a0b0a2]{margin:5px}.subheader[data-v-d6a0b0a2]{display:flex;flex-direction:row;color:var(--input-label)}.subheader[data-v-d6a0b0a2]>*{margin:5px 20px 5px 0}.subheader .live-data[data-v-d6a0b0a2]{color:var(--body-text);margin-left:3px}.state-banner[data-v-d6a0b0a2]{margin:3px 0 0 0}.masthead-state[data-v-d6a0b0a2]{margin-left:8px;font-size:medium}.masthead-istio .icon[data-v-d6a0b0a2]{vertical-align:middle;color:var(--primary)}.left-right-split[data-v-d6a0b0a2]{display:grid;align-items:center}.left-right-split .left-half[data-v-d6a0b0a2]{grid-column:1}.left-right-split .right-half[data-v-d6a0b0a2]{grid-column:2}div.actions-container>div.actions[data-v-d6a0b0a2]{display:flex;flex-direction:row;justify-content:flex-end}.resource-external[data-v-d6a0b0a2]{font-size:18px}",""]),t["default"]=s},60392:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".flex-content[data-v-7a77cc4a]{display:flex;flex-direction:column;flex-grow:1}",""]),t["default"]=s},36631:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,'.title[data-v-577fc9fa]{align-items:center;display:flex}.title h1[data-v-577fc9fa]{margin:0}header[data-v-577fc9fa]{margin-bottom:20px}header.with-subheader[data-v-577fc9fa]{grid-template-areas:"type-banner type-banner" "title actions" "sub-header sub-header" "state-banner state-banner"}.sub-header[data-v-577fc9fa]{grid-area:sub-header}.sub-header a[data-v-577fc9fa]{display:inline-block}',""]),t["default"]=s},50612:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".resource-loading-indicator[data-v-6457c305]{border:1px solid var(--link);border-radius:10px;position:relative;width:-moz-min-content;width:min-content;overflow:hidden}.resource-loading-indicator .resource-loader[data-v-6457c305]:last-child{position:absolute;top:0;background-color:var(--link);color:var(--link-text);overflow:hidden;white-space:nowrap}.resource-loading-indicator .resource-loader[data-v-6457c305]{padding:1px 10px;width:-moz-max-content;width:max-content}.resource-loading-indicator .resource-loader .rl-bg[data-v-6457c305],.resource-loading-indicator .resource-loader .rl-fg[data-v-6457c305]{align-content:center;display:flex}.resource-loading-indicator .resource-loader .rl-bg>i[data-v-6457c305],.resource-loading-indicator .resource-loader .rl-fg>i[data-v-6457c305]{font-size:18px;line-height:18px}.resource-loading-indicator .resource-loader .rl-bg>span[data-v-6457c305],.resource-loading-indicator .resource-loader .rl-fg>span[data-v-6457c305]{margin-left:5px}",""]),t["default"]=s},23132:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".header[data-v-515e48d4],H2[data-v-515e48d4]{position:relative}H2[data-v-515e48d4]{margin:0 0 20px 0}.filter[data-v-515e48d4]{line-height:45px}.right-action[data-v-515e48d4]{position:absolute;top:10px;right:10px}",""]),t["default"]=s},37635:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".flex-content[data-v-bd6d9b3c]{display:flex;flex-direction:column;flex-grow:1}.footer[data-v-bd6d9b3c]{margin-top:20px;right:0;position:sticky;bottom:0;background-color:var(--header-bg);margin-left:-20px;margin-right:-20px;margin-bottom:-20px;padding:10px 20px}.footer.edit[data-v-bd6d9b3c]{border-top:var(--header-border-size) solid var(--header-border)}",""]),t["default"]=s},97497:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".resource-yaml .yaml-editor{min-height:200px}.resource-yaml footer .actions{text-align:right}.resource-yaml .spacer-small{padding:0}",""]),t["default"]=s},86226:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".top[data-v-48821e48]{display:flex;position:relative}.top>h2[data-v-48821e48]{flex:1}.close-button[data-v-48821e48]{cursor:pointer;display:flex;align-items:center;justify-content:center;padding:2px}.close-button>i[data-v-48821e48]{font-size:14px;opacity:.5}.close-button[data-v-48821e48]:hover{background-color:var(--wm-closer-hover-bg)}",""]),t["default"]=s},83904:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".simple-box{background:var(--simple-box-bg) 0 0 no-repeat padding-box;box-shadow:0 0 10px var(--simple-box-shadow);border:1px solid var(--simple-box-border);padding:15px}.simple-box .top{line-height:24px;font-size:18px;border-bottom:1px solid var(--simple-box-divider);padding-bottom:15px;margin:0 -15px 10px -15px;padding:0 15px 15px 15px;align-items:center;display:flex .simple-box .top BUTTON;display-padding:0;display-height:fit-content;display-align-self:flex-start}.simple-box .top H2{margin-bottom:0}.simple-box .content{padding:15px}",""]),t["default"]=s},6669:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".table-options-group .table-options-btn.role-multi-action[data-v-920b698a]{background-color:transparent;border:none;font-size:18px}.table-options-group .table-options-btn.role-multi-action[data-v-920b698a]:focus,.table-options-group .table-options-btn.role-multi-action[data-v-920b698a]:hover{background-color:var(--accent-btn);box-shadow:none}.table-options-group .table-options-container[data-v-920b698a]{width:350px;border:1px solid var(--primary);background-color:var(--body-bg);padding:20px;z-index:1}.table-options-group .table-options-container .table-options-grouping[data-v-920b698a]{display:flex;align-items:center;margin-bottom:20px}.table-options-group .table-options-container .table-options-grouping span[data-v-920b698a]{white-space:nowrap;margin-right:10px}.table-options-group .table-options-container ul[data-v-920b698a]{list-style:none;margin:0;padding:0;max-height:200px;overflow-y:auto}.table-options-group .table-options-container ul li[data-v-920b698a]{margin:0;padding:0}.table-options-group .table-options-container ul li.visible[data-v-920b698a]{margin:0 0 10px 0}.sortable>SPAN[data-v-920b698a]{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.sortable>SPAN[data-v-920b698a]:active,.sortable>SPAN[data-v-920b698a]:hover{text-decoration:underline;color:var(--body-text)}.top-aligned th[data-v-920b698a]{vertical-align:top;padding-top:10px}thead tr[data-v-920b698a]{background-color:var(--sortable-table-header-bg);text-align:left;border-bottom:1px solid var(--sortable-table-top-divider)}th[data-v-920b698a],thead tr[data-v-920b698a]{color:var(--body-text)}th[data-v-920b698a]{padding:8px 5px;font-weight:400;border:0}th.sortable-table-head-element[data-v-920b698a]:focus-visible{outline:2px solid var(--primary-keyboard-focus);outline-offset:-4px}th .table-header-container[data-v-920b698a]{display:inline-flex}th .table-header-container .content[data-v-920b698a]{display:flex;flex-direction:column}th .table-header-container.not-filterable[data-v-920b698a],th .table-header-container.not-filterable .icon-stack[data-v-920b698a]{margin-top:-2px}th .table-header-container .not-filter-icon[data-v-920b698a]{font-size:16px;color:var(--primary);vertical-align:super}th[data-v-920b698a]:first-child{padding-left:10px}th[data-v-920b698a]:last-child{padding-right:10px}th:not(.sortable)>SPAN[data-v-920b698a]{display:block;margin-bottom:2px}th A[data-v-920b698a]{color:var(--body-text)}@media only screen and (max-width:480px){th.desktop[data-v-920b698a],th.laptop[data-v-920b698a],th.tablet[data-v-920b698a]{display:none}}@media only screen and (max-width:992px){th.desktop[data-v-920b698a],th.laptop[data-v-920b698a]{display:none}}@media only screen and (max-width:1281px){th.desktop[data-v-920b698a]{display:none}}.icon-stack[data-v-920b698a]{width:12px}.icon-sort.faded[data-v-920b698a]{opacity:.3}",""]),t["default"]=s},71475:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".table-options-checkbox .checkbox-custom{min-width:14px}.table-options-checkbox .checkbox-label{color:var(--body-text)}",""]),t["default"]=s},58684:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".sortable-table.alt-loading[data-v-5c61b072]{opacity:.5;pointer-events:none}.advanced-filter-group[data-v-5c61b072]{position:relative;margin-left:10px}.advanced-filter-group .advanced-filter-container[data-v-5c61b072]{position:absolute;top:38px;right:0;width:300px;border:1px solid var(--primary);background-color:var(--body-bg);padding:20px;z-index:2}.advanced-filter-group .advanced-filter-container .middle-block[data-v-5c61b072]{display:flex;align-items:center;margin-top:20px}.advanced-filter-group .advanced-filter-container .middle-block span[data-v-5c61b072]{margin-right:20px}.advanced-filter-group .advanced-filter-container .middle-block button[data-v-5c61b072]{margin-left:20px}.advanced-filter-group .advanced-filter-container .bottom-block[data-v-5c61b072]{display:flex;align-items:center;margin-top:40px;justify-content:space-between}.advanced-filters-applied[data-v-5c61b072]{display:inline-flex;margin:0;padding:0;list-style:none;max-width:100%;flex-wrap:wrap;justify-content:flex-end}.advanced-filters-applied li[data-v-5c61b072]{margin:0 20px 10px 0;padding:2px 5px;border:1px solid;display:flex;align-items:center;position:relative;height:20px}.advanced-filters-applied li[data-v-5c61b072]:nth-child(4n+1){border-color:var(--success)}.advanced-filters-applied li:nth-child(4n+1) .bg[data-v-5c61b072]{background-color:var(--success)}.advanced-filters-applied li[data-v-5c61b072]:nth-child(4n+2){border-color:var(--warning)}.advanced-filters-applied li:nth-child(4n+2) .bg[data-v-5c61b072]{background-color:var(--warning)}.advanced-filters-applied li[data-v-5c61b072]:nth-child(4n+3){border-color:var(--info)}.advanced-filters-applied li:nth-child(4n+3) .bg[data-v-5c61b072]{background-color:var(--info)}.advanced-filters-applied li[data-v-5c61b072]:nth-child(4n+4){border-color:var(--error)}.advanced-filters-applied li:nth-child(4n+4) .bg[data-v-5c61b072]{background-color:var(--error)}.advanced-filters-applied li .bg[data-v-5c61b072]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:.2;z-index:-1}.advanced-filters-applied li .label[data-v-5c61b072]{margin-right:10px;font-size:11px}.advanced-filters-applied li .cross[data-v-5c61b072]{font-size:12px;font-weight:700;cursor:pointer}@media only screen and (max-width:480px){td.desktop[data-v-5c61b072],td.laptop[data-v-5c61b072],td.tablet[data-v-5c61b072]{display:none}}@media only screen and (max-width:992px){td.desktop[data-v-5c61b072],td.laptop[data-v-5c61b072]{display:none}}@media only screen and (max-width:1281px){td.desktop[data-v-5c61b072]{display:none}}tr td div.data-loading[data-v-5c61b072]{align-items:center;display:flex;justify-content:center;padding:20px 0}tr td div.data-loading>i[data-v-5c61b072]{font-size:20px;height:20px;margin-right:5px;width:20px}.search-box[data-v-5c61b072]{height:40px;margin-left:10px;min-width:180px}",""]),t["default"]=s},80446:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,'.filter-select .vs__selected-options .vs__selected{text-align:left}.sortable-table{border-collapse:collapse;min-width:400px;border-radius:5px 5px 0 0;outline:1px solid var(--border);background:var(--sortable-table-bg);border-radius:4px}.sortable-table.overflow-x{overflow-x:visible}.sortable-table.overflow-y{overflow-y:visible}.sortable-table td{padding:8px 5px;border:0}.sortable-table td:first-child{padding-left:10px}.sortable-table td:last-child{padding-right:10px}.sortable-table td.row-check{padding-top:12px}.sortable-table tbody tr{border-bottom:1px solid var(--sortable-table-top-divider);background-color:var(--sortable-table-row-bg)}.sortable-table tbody tr.main-row.has-sub-row{border-bottom:0}.sortable-table tbody tr.main-row:not(.row-selected):hover+.sub-row{background-color:var(--sortable-table-hover-bg)}.sortable-table tbody tr:last-of-type{border-bottom:0}.sortable-table tbody tr.sub-row-hovered,.sortable-table tbody tr:hover{background-color:var(--sortable-table-hover-bg)}.sortable-table tbody tr.state-description>td{font-size:13px;padding-top:0;overflow-wrap:anywhere}.sortable-table tbody tr.active-row{color:var(--sortable-table-header-bg)}.sortable-table tbody tr.row-selected{background:var(--sortable-table-selected-bg)}.sortable-table tbody .no-rows td{padding:30px 0;text-align:center}.sortable-table tbody .no-results:hover,.sortable-table tbody .no-rows:hover{background-color:var(--body-bg)}.sortable-table tbody.group:before{content:"";display:block;height:20px;background-color:transparent}.sortable-table tbody tr.group-row{background-color:initial}.sortable-table tbody tr.group-row:first-child{border-bottom:2px solid var(--sortable-table-row-bg)}.sortable-table tbody tr.group-row:not(:first-child){margin-top:20px}.sortable-table tbody tr.group-row td{padding:0}.sortable-table tbody tr.group-row td:first-of-type{border-left:1px solid var(--sortable-table-accent-bg)}.sortable-table tbody tr.group-row .group-tab{height:40px;line-height:40px;padding:0 10px;border-radius:4px 4px 0 0;background-color:var(--sortable-table-row-bg);position:relative;top:1px;display:inline-block;z-index:10;min-width:72px}.sortable-table tbody tr.group-row .group-tab:after,.sortable-table tbody tr.group-row .group-tab:before{content:" ";display:table}.sortable-table tbody tr.group-row .group-tab:after{clear:both}.sortable-table tbody tr.group-row .group-tab>SPAN{color:var(--sortable-table-group-label)}.sortable-table tbody tr.group-row .group-tab:after{height:40px;width:70px;border-radius:5px 5px 0 0;background-color:var(--sortable-table-row-bg);content:"";position:absolute;right:-15px;top:0;transform:skewX(40deg);z-index:-1}.for-inputs TABLE.sortable-table{width:100%;border-collapse:collapse;margin-bottom:10px}.for-inputs TABLE.sortable-table>TBODY>TR>TD,.for-inputs TABLE.sortable-table>THEAD>TR>TH{padding-right:10px;padding-bottom:10px}.for-inputs TABLE.sortable-table>TBODY>TR>TD:last-of-type,.for-inputs TABLE.sortable-table>THEAD>TR>TH:last-of-type{padding-right:0}.for-inputs TABLE.sortable-table>TBODY>TR:first-of-type>TD{padding-top:10px}.for-inputs TABLE.sortable-table>TBODY>TR:last-of-type>TD{padding-bottom:0}.for-inputs.clone TABLE.sortable-table>THEAD>TR>TH,.for-inputs.create TABLE.sortable-table>THEAD>TR>TH,.for-inputs.edit TABLE.sortable-table>THEAD>TR>TH{border-color:transparent}.sortable-table-header{position:relative;z-index:11}.sortable-table-header.titled{display:flex;align-items:center}.fixed-header-actions.button{grid-template-columns:[bulk] auto [middle] min-content [search] minmax(min-content,350px)}.fixed-header-actions{padding:0 0 20px 0;width:100%;z-index:11;background:transparent;display:grid;grid-template-columns:[bulk] auto [middle] min-content [search] minmax(min-content,200px);grid-column-gap:10px}.fixed-header-actions.advanced-filtering{grid-template-columns:[bulk] auto [middle] minmax(min-content,auto) [search] minmax(min-content,auto)}.fixed-header-actions .bulk{grid-area:bulk}.fixed-header-actions .bulk>BUTTON{display:none}.fixed-header-actions .bulk>BUTTON:not(:last-of-type){margin-right:10px}.fixed-header-actions .bulk .action-availability{display:none;margin-left:10px;vertical-align:middle;margin-top:2px}.fixed-header-actions .bulk .dropdown-button li.disabled{color:var(--disabled-text);cursor:not-allowed}.fixed-header-actions .bulk .dropdown-button li.disabled:hover{color:var(--disabled-text);background-color:unset;cursor:not-allowed}.fixed-header-actions .bulk .bulk-action .icon{vertical-align:-10%}.fixed-header-actions .middle{grid-area:middle;white-space:nowrap}.fixed-header-actions .middle .icon.icon-backup.animate{animation-name:spin;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fixed-header-actions .search{grid-area:search;text-align:right;justify-content:flex-end}.fixed-header-actions .bulk-actions-dropdown{display:none}.fixed-header-actions .bulk-actions-dropdown .dropdown-button{background-color:var(--primary)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button:hover{background-color:var(--primary-hover-bg);color:var(--primary-hover-text)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button .icon-chevron-down,.fixed-header-actions .bulk-actions-dropdown .dropdown-button>*{color:var(--primary-text)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button .button-divider{border-color:var(--primary-text)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button.disabled{border-color:var(--disabled-bg)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button.disabled .icon-chevron-down{color:var(--disabled-text)!important}.fixed-header-actions .bulk-actions-dropdown .dropdown-button.disabled .button-divider{border-color:var(--disabled-text)}.paging{margin-top:10px;text-align:center}.paging SPAN{display:inline-block;min-width:200px}',""]),t["default"]=s},94944:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".tab-header[data-v-6f6df00a]{display:flex;justify-content:space-between;margin-bottom:15px;align-items:center}.tab-header h2[data-v-6f6df00a]{margin:0}",""]),t["default"]=s},98670:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".tabs[data-v-dfd4c7ac]{list-style-type:none;margin:0;padding:0}.tabs[data-v-dfd4c7ac]:focus-visible{outline:none}.tabs:focus-visible .tab.active[data-v-dfd4c7ac]{outline:2px solid var(--primary-keyboard-focus);outline-offset:-2px}.tabs.horizontal[data-v-dfd4c7ac]{border:solid thin var(--border);border-bottom:0;display:flex;flex-direction:row}.tabs.horizontal+.tab-container[data-v-dfd4c7ac]{border:solid thin var(--border)}.tabs.horizontal .tab.active[data-v-dfd4c7ac]{border-bottom:solid 2px var(--primary)}.tabs:focus .tab.active a span[data-v-dfd4c7ac]{text-decoration:underline}.tabs .tab[data-v-dfd4c7ac]{position:relative;float:left;padding:0 8px 0 0;cursor:pointer}.tabs .tab A[data-v-dfd4c7ac]{display:flex;align-items:center;padding:10px 15px}.tabs .tab A[data-v-dfd4c7ac]:hover{text-decoration:none}.tabs .tab A:hover span[data-v-dfd4c7ac]{text-decoration:underline}.tabs .tab .conditions-alert-icon[data-v-dfd4c7ac]{color:var(--error);padding-left:4px}.tabs .tab[data-v-dfd4c7ac]:last-child{padding-right:0}.tabs .tab.active>A[data-v-dfd4c7ac]{color:var(--primary);text-decoration:none}.tabs .tab.error A>i[data-v-dfd4c7ac]{color:var(--error)}.tabs .tab .tab-badge[data-v-dfd4c7ac]{margin-left:5px;background-color:var(--link);color:#fff;border-radius:6px;padding:1px 7px;font-size:11px}.tab-container[data-v-dfd4c7ac]{padding:20px}.tab-container.no-content[data-v-dfd4c7ac]{padding:0 0 3px 0}.tab-container--flat[data-v-dfd4c7ac]{padding:0}.tab-container--flat .side-tabs[data-v-dfd4c7ac]{box-shadow:unset}.tabs-only[data-v-dfd4c7ac]{margin-bottom:20px}.tabs-only .tab-container[data-v-dfd4c7ac]{display:none}.tabs-only .tabs[data-v-dfd4c7ac]{border:0;border-bottom:2px solid var(--border)}.side-tabs[data-v-dfd4c7ac]{display:flex;box-shadow:0 0 20px var(--shadow);border-radius:calc(var(--border-radius)*2);background-color:var(--tabbed-sidebar-bg)}.side-tabs .tab-container[data-v-dfd4c7ac]{padding:20px}.side-tabs .tabs[data-v-dfd4c7ac]{width:200px;min-width:200px;display:flex;flex:1 0;flex-direction:column}.side-tabs .tabs .tab[data-v-dfd4c7ac]{width:100%;border-left:5px solid transparent}.side-tabs .tabs .tab A[data-v-dfd4c7ac],.side-tabs .tabs .tab.toggle A[data-v-dfd4c7ac]{color:var(--primary)}.side-tabs .tabs .tab.active[data-v-dfd4c7ac]{background-color:var(--body-bg);border-left:solid 5px var(--primary)}.side-tabs .tabs .tab.active A[data-v-dfd4c7ac]{color:var(--input-label)}.side-tabs .tabs .tab.disabled[data-v-dfd4c7ac]{background-color:var(--disabled-bg)}.side-tabs .tabs .tab.disabled A[data-v-dfd4c7ac]{color:var(--disabled-text);text-decoration:none}.side-tabs .tabs .tab-list-footer[data-v-dfd4c7ac]{list-style:none;padding:0;margin-top:auto}.side-tabs .tabs .tab-list-footer li[data-v-dfd4c7ac]{display:flex;flex:1}.side-tabs .tabs .tab-list-footer li .btn[data-v-dfd4c7ac]{flex:1 1;display:flex;justify-content:center}.side-tabs .tabs .tab-list-footer li button[data-v-dfd4c7ac]:first-of-type{border-top:solid 1px var(--border);border-right:solid 1px var(--border);border-top-right-radius:0}.side-tabs .tabs .tab-list-footer li button[data-v-dfd4c7ac]:last-of-type{border-top:solid 1px var(--border);border-top-left-radius:0}.side-tabs .tab-container[data-v-dfd4c7ac]{width:calc(100% - 200px);flex-grow:1;background-color:var(--body-bg)}",""]),t["default"]=s},32101:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".tag[data-v-0d281a35]{border-radius:var(--border-radius);color:var(--tag-primary);background-color:var(--tag-bg);padding:4px 6px 3px 6px;font-size:12px}",""]),t["default"]=s},23186:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".outer-container[data-v-1449f802]{display:flex;flex-direction:column;flex:1;padding:0;justify-content:space-between}.header[data-v-1449f802]{display:flex;align-content:space-between;align-items:center;margin-bottom:20px;border-bottom:var(--header-border-size) solid var(--header-border)}.header .step-sequence[data-v-1449f802],.header>.title[data-v-1449f802]{flex:1;min-height:60px;display:flex}.header .step-sequence .steps[data-v-1449f802]{flex:1;margin:0 30px;display:flex;justify-content:space-between;list-style-type:none;padding:0}.header .step-sequence .steps[data-v-1449f802]:focus{outline:none;box-shadow:none}.header .step-sequence .steps li.step[data-v-1449f802]{display:flex;flex-direction:row;flex-grow:1;align-items:center}.header .step-sequence .steps li.step>span>span[data-v-1449f802]:last-of-type{padding-bottom:0}.header .step-sequence .steps li.step[data-v-1449f802]:last-of-type{flex-grow:0}.header .step-sequence .steps li.step .controls[data-v-1449f802]{display:flex;flex-direction:column;align-items:center;width:40px;overflow:visible;padding-top:7px}.header .step-sequence .steps li.step .controls>span[data-v-1449f802]{padding-bottom:3px;margin-bottom:5px;white-space:nowrap}.header .step-sequence .steps li.step.active .controls[data-v-1449f802]{color:var(--primary)}.header .step-sequence .steps li.step:not(.disabled) .controls[data-v-1449f802]:hover>*{color:var(--primary)!important;cursor:pointer}.header .step-sequence .steps li.step:not(.active) .controls[data-v-1449f802]>*{color:var(--input-disabled-text);text-decoration:none}.header .step-sequence .steps .divider[data-v-1449f802]{flex-basis:100%;border-top:1px solid var(--border);position:relative;top:17px}.cru__content .header .step-sequence .steps .divider[data-v-1449f802]{top:13px}.header .choice-banner[data-v-1449f802]{flex-basis:40%;display:flex;align-items:center;margin-bottom:10px}.header .choice-banner.selected[data-v-1449f802]{background-color:var(--accent-btn)}.header .choice-banner.top H2[data-v-1449f802]{margin:0}.header .choice-banner.top .title[data-v-1449f802]{display:flex;align-items:center;justify-content:space-evenly;position:relative}.header .choice-banner.top .title>.subtitle[data-v-1449f802]{margin-right:20px}.header .choice-banner.top .subtitle[data-v-1449f802]{display:flex;flex-direction:column}.header .choice-banner.top .subtitle .subtext[data-v-1449f802]{color:var(--input-label)}.header .choice-banner[data-v-1449f802]:not(.top){box-shadow:0 0 12px 3px var(--box-bg);flex-direction:row;align-items:center;justify-content:start}.header .choice-banner[data-v-1449f802]:not(.top):hover{outline:var(--outline-width) solid var(--outline);cursor:pointer}.header .choice-banner .round-image[data-v-1449f802]{min-width:50px;height:50px;margin:10px 10px 10px 0;border-radius:50%;overflow:hidden}.header .choice-banner .round-image .logo[data-v-1449f802]{min-width:50px;height:50px}.step-container[data-v-1449f802]{position:relative;flex:1 1 auto;height:0;overflow-y:auto;padding:20px 2px 2px 2px;display:flex;flex-direction:column}.step-container__step[data-v-1449f802]{overflow:hidden;display:flex;flex-direction:column;flex:1}.footer-error[data-v-1449f802]{margin-top:-40px;margin-bottom:70px}.controls-row[data-v-1449f802]{margin-left:-20px;margin-right:-20px;padding:10px 20px;display:flex;justify-content:space-between;padding-top:10px;border-top:var(--header-border-size) solid var(--header-border);position:absolute;bottom:0;width:100%;background:var(--body-bg)}.controls-row .controls-steps .btn[data-v-1449f802]{margin-left:10px}",""]),t["default"]=s},53622:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".yaml-editor{display:flex;flex-direction:column}.yaml-editor .fill{flex:1}.yaml-editor .codemirror-container{position:relative}.yaml-editor .codemirror-container .CodeMirror,.yaml-editor .codemirror-container .CodeMirror .CodeMirror-gutters{background-color:var(--yaml-editor-bg)}.yaml-editor .diff-mode{background-color:var(--diff-header-bg);padding:5px 5px;border-bottom-right-radius:0;border-bottom-left-radius:0}.yaml-editor .d2h-file-wrapper{border-top-right-radius:0}",""]),t["default"]=s},51189:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,'.chart-container{position:relative;border:1px solid var(--border);min-height:100px}.chart-container,.chart-container .loading-container{display:flex;background-color:var(--body-bg);border-radius:var(--border-radius)}.chart-container .loading-container{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;align-items:center;justify-content:center;flex-direction:column}.chart-container .loading-container i{font-size:24px}.chart-container #tree{width:70%;height:-moz-fit-content;height:fit-content}.chart-container #tree svg{margin-top:3px}.chart-container #tree .link{stroke:var(--darker)}.chart-container #tree .node{cursor:pointer}.chart-container #tree .node.active .node-hover-layer{display:block}.chart-container #tree .node.repo.active>circle{transform:scale(1.2)}.chart-container #tree .node.bundle.active>circle{transform:scale(1.35)}.chart-container #tree .node.bundle-deployment.active>circle{transform:scale(1.6)}.chart-container #tree .node.node-default-fill>circle,.chart-container #tree .node.repo>circle{fill:var(--muted)}.chart-container #tree .node:not(.repo).node-success>circle{fill:var(--success)}.chart-container #tree .node:not(.repo).node-info>circle{fill:var(--info)}.chart-container #tree .node:not(.repo).node-warning>circle{fill:var(--warning)}.chart-container #tree .node:not(.repo).node-error>circle{fill:var(--error)}.chart-container #tree .node .node-hover-layer{stroke:var(--body-bg);stroke-width:2;display:none}.chart-container .more-info-container{width:30%;position:relative;border-left:1px solid var(--border);background-color:var(--body-bg);overflow:hidden}.chart-container .more-info-container,.chart-container .more-info-container .more-info{border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}.chart-container .more-info-container .more-info{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;padding:20px;overflow-y:auto}.chart-container .more-info-container .more-info table td{vertical-align:top;padding-bottom:10px}.chart-container .more-info-container .more-info table td.align-middle{vertical-align:middle}.chart-container .more-info-container .more-info table .more-info-item-label{color:var(--darker);margin-right:8px}.chart-container .more-info-container .more-info table .single-error{color:var(--error)}.chart-container .more-info-container .more-info table p{line-height:1.5em}',""]),t["default"]=s},98983:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".box[data-v-7c9042e0],.title[data-v-7c9042e0]{margin-bottom:10px}.box[data-v-7c9042e0]{display:grid;grid-template-columns:auto 75px;align-items:center}.box .value[data-v-7c9042e0]{flex:1}.box .value INPUT[data-v-7c9042e0]{height:40px}.remove[data-v-7c9042e0]{text-align:right}.footer .protip[data-v-7c9042e0]{float:right;padding:5px 0}.required[data-v-7c9042e0]{color:var(--error)}",""]),t["default"]=s},67271:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".array-list-grouped>.box{position:relative;display:block}.array-list-grouped>.box>.remove{position:absolute;top:0;right:0}.array-list-grouped>.box>.info-box{margin-bottom:0;padding-right:25px}",""]),t["default"]=s},99731:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".color-input[data-v-51338ccf]{border:1px solid var(--border);border-radius:var(--border-radius);padding:10px}.color-input[data-v-51338ccf]:focus-visible{outline:2px solid var(--primary-keyboard-focus)}.color-input.disabled[data-v-51338ccf],.color-input.disabled .selected[data-v-51338ccf],.color-input[disabled][data-v-51338ccf],.color-input[disabled][data-v-51338ccf]:hover{color:var(--input-disabled-text);background-color:var(--input-disabled-bg);outline-width:0;border-color:var(--input-disabled-border);cursor:not-allowed}.color-input.disabled .selected div[data-v-51338ccf],.color-input.disabled .selected input[data-v-51338ccf],.color-input.disabled .selected label[data-v-51338ccf],.color-input.disabled .selected span[data-v-51338ccf],.color-input.disabled div[data-v-51338ccf],.color-input.disabled input[data-v-51338ccf],.color-input.disabled label[data-v-51338ccf],.color-input.disabled span[data-v-51338ccf],.color-input[disabled] div[data-v-51338ccf],.color-input[disabled] input[data-v-51338ccf],.color-input[disabled] label[data-v-51338ccf],.color-input[disabled] span[data-v-51338ccf],.color-input[disabled]:hover div[data-v-51338ccf],.color-input[disabled]:hover input[data-v-51338ccf],.color-input[disabled]:hover label[data-v-51338ccf],.color-input[disabled]:hover span[data-v-51338ccf]{cursor:not-allowed!important}.color-input.disabled .selected label[data-v-51338ccf],.color-input.disabled label[data-v-51338ccf],.color-input[disabled] label[data-v-51338ccf],.color-input[disabled]:hover label[data-v-51338ccf]{color:var(--input-disabled-label);display:inline-block;z-index:1}.color-input.disabled .selected[data-v-51338ccf]::-moz-placeholder,.color-input.disabled[data-v-51338ccf]::-moz-placeholder,.color-input[disabled][data-v-51338ccf]::-moz-placeholder,.color-input[disabled][data-v-51338ccf]:hover::-moz-placeholder{color:var(--input-disabled-placeholder)}.color-input.disabled .selected[data-v-51338ccf]::placeholder,.color-input.disabled[data-v-51338ccf]::placeholder,.color-input[disabled][data-v-51338ccf]::placeholder,.color-input[disabled][data-v-51338ccf]:hover::placeholder{color:var(--input-disabled-placeholder)}.color-input LABEL[data-v-51338ccf]{display:block}.color-input .preview-container[data-v-51338ccf]:hover{cursor:pointer}.color-input .preview-container .color-value[data-v-51338ccf]{margin-left:4px}.color-input .color-display[data-v-51338ccf]{border:1px solid var(--border)}.color-input .color-display[data-v-51338ccf]:focus{outline:none;box-shadow:0 0 0 var(--outline-width) var(--outline);background:var(--input-focus-bg)}.color-input INPUT[data-v-51338ccf]{border:none;padding:0;width:23px;height:23px;-webkit-appearance:none;opacity:0}.color-input INPUT[data-v-51338ccf]:hover{cursor:pointer}",""]),t["default"]=s},58335:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,'.buttons{display:grid;grid-template-areas:"left right";grid-template-columns:"min-content auto"}.buttons .left{grid-area:left;text-align:left}.buttons .left .btn,.buttons .left button{margin:0 1.75% 0 0}.buttons .right{grid-area:right;text-align:right}.buttons .right .btn,.buttons .right button{margin:0 0 0 1.75%}',""]),t["default"]=s},38238:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".input-container[data-v-035f9ce5]{display:flex}.input-container.select-after[data-v-035f9ce5]{height:100%;flex-direction:row-reverse}.input-container.select-after .input-string[data-v-035f9ce5]{border-radius:var(--border-radius) 0 0 var(--border-radius);border-right:0;border-left-width:1px}.input-container.select-after .in-input[data-v-035f9ce5]{border-radius:0 var(--border-radius) var(--border-radius) 0}.input-container.select-after .in-input.labeled-select .selected[data-v-035f9ce5]{color:var(--input-text);text-align:center;margin-right:1em}.input-container.select-after .in-input.focused[data-v-035f9ce5]:not(.vs__dropdown-up){border-bottom-right-radius:0}.input-container.select-after .in-input.focused.vs__dropdown-up[data-v-035f9ce5]{border-top-right-radius:0}.input-container.select-after .input-string.focused[data-v-035f9ce5],.input-container.select-after .input-string[data-v-035f9ce5]:focus,.input-container.select-after .input-string[data-v-035f9ce5]:hover:not(.focused):not(.disabled):not(:focus){padding-left:10px!important}.input-container .input-string[data-v-035f9ce5]{padding-right:0;width:60%;flex-grow:1;border-radius:0 var(--border-radius) var(--border-radius) 0;border-left-width:0;margin-left:-1px;position:relative;display:table;border-collapse:separate}.input-container .input-string[data-v-035f9ce5]:hover:not(.focused):not(.disabled):not(:focus):not(.view){border-left:1px solid var(--input-hover-border);border-right:1px solid var(--input-hover-border);padding-left:9px}.input-container .input-string.focused[data-v-035f9ce5],.input-container .input-string[data-v-035f9ce5]:focus{border-left:1px solid var(--outline)!important;border-right:1px solid var(--outline)!important;padding-left:9px}.input-container .in-input[data-v-035f9ce5]{margin-right:0}.input-container .in-input[data-v-035f9ce5]:hover:not(.focused):not(.disabled),.input-container .in-input[data-v-035f9ce5]:hover:not(.focused):not(.disabled):not(.view){border:1px solid var(--input-hover-border)!important}.input-container .in-input.focused[data-v-035f9ce5]{border:1px solid var(--outline)!important}.input-container .in-input.labeled-select.focused[data-v-035f9ce5] ,.input-container .in-input.unlabeled-select.focused[data-v-035f9ce5] {outline:none}.input-container .in-input.labeled-select[data-v-035f9ce5]:not(.disabled):not(.view) ,.input-container .in-input.unlabeled-select[data-v-035f9ce5]:not(.disabled):not(.view) {border:solid 1px var(--input-border)}.input-container .in-input.labeled-select[data-v-035f9ce5] ,.input-container .in-input.unlabeled-select[data-v-035f9ce5] {box-shadow:none;width:20%;margin-right:1px}.input-container .in-input.labeled-select[data-v-035f9ce5] .vs__selected,.input-container .in-input.unlabeled-select[data-v-035f9ce5] .vs__selected{color:var(--input-text)}.input-container .in-input.labeled-select[data-v-035f9ce5] .vs__dropdown-menu,.input-container .in-input.unlabeled-select[data-v-035f9ce5] .vs__dropdown-menu{box-shadow:none}.input-container .in-input.labeled-select[data-v-035f9ce5] .vs__dropdown-menu .vs__dropdown-option,.input-container .in-input.unlabeled-select[data-v-035f9ce5] .vs__dropdown-menu .vs__dropdown-option{padding:3px 5px}.input-container .in-input.labeled-select[data-v-035f9ce5] .v-select:not(.vs--disabled) .vs__dropdown-toggle,.input-container .in-input.unlabeled-select[data-v-035f9ce5] .v-select:not(.vs--disabled) .vs__dropdown-toggle{border-radius:var(--border-radius) 0 0 var(--border-radius)}.input-container .in-input.labeled-select[data-v-035f9ce5] .v-select:not(.vs--disabled).vs--open .vs__dropdown-toggle,.input-container .in-input.unlabeled-select[data-v-035f9ce5] .v-select:not(.vs--disabled).vs--open .vs__dropdown-toggle{color:var(--outline)!important}",""]),t["default"]=s},29692:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".labeled-select[data-v-61ff1cd2]{position:relative;padding-bottom:1px}.labeled-select.no-label.compact-input[data-v-61ff1cd2] .vs__actions:after{top:-2px}.labeled-select.no-label.compact-input .labeled-container[data-v-61ff1cd2]{padding:5px 0 1px 10px}.labeled-select.no-label[data-v-61ff1cd2]:not(.compact-input){height:61px;padding-top:4px}.labeled-select.no-label[data-v-61ff1cd2]:not(.compact-input) .vs__actions:after{top:0}.labeled-select .icon-spinner[data-v-61ff1cd2]{position:absolute;left:calc(50% - .5em);top:calc(50% - .5em)}.labeled-select .labeled-container[data-v-61ff1cd2]{padding:7px 0 0 10px;padding:10px 0 0 10px}.labeled-select .labeled-container label[data-v-61ff1cd2]{margin:0}.labeled-select .labeled-container .selected[data-v-61ff1cd2]{background-color:transparent}.labeled-select.view.labeled-input .labeled-container[data-v-61ff1cd2]{padding:0}.labeled-select.taggable.compact-input[data-v-61ff1cd2]{min-height:40px}.labeled-select.taggable.compact-input[data-v-61ff1cd2] .vs__selected-options{padding-top:8px!important}.labeled-select.taggable[data-v-61ff1cd2]:not(.compact-input){min-height:61px}.labeled-select.taggable[data-v-61ff1cd2]:not(.compact-input) .vs__selected-options{margin-top:0}.labeled-select[data-v-61ff1cd2]:not(.taggable) .vs__selected-options .vs__selected{width:100%}.labeled-select.taggable[data-v-61ff1cd2] .vs__selected-options{padding:3px 0}.labeled-select.taggable[data-v-61ff1cd2] .vs__selected-options .vs__selected{border-color:var(--accent-btn);height:20px;min-height:unset!important;padding:0 0 0 7px!important}.labeled-select.taggable[data-v-61ff1cd2] .vs__selected-options .vs__selected>button{height:20px;line-height:14px}.labeled-select.taggable[data-v-61ff1cd2] .vs__selected-options .vs__selected>button:hover{background-color:var(--primary);border-radius:0}.labeled-select.taggable[data-v-61ff1cd2] .vs__selected-options .vs__selected>button:hover:after{color:#fff}.labeled-select[data-v-61ff1cd2] .vs__selected-options{margin-top:-5px}.labeled-select[data-v-61ff1cd2] .v-select:not(.vs--single) .vs__selected-options{padding:5px 0}.labeled-select[data-v-61ff1cd2] .vs__actions:after{position:relative;top:-10px}.labeled-select[data-v-61ff1cd2] .v-select.vs--open .vs__dropdown-toggle{color:var(--outline)!important}[data-v-61ff1cd2] .labeled-select.disabled .labeled-container,[data-v-61ff1cd2] .labeled-select.disabled .vs__dropdown-toggle,[data-v-61ff1cd2] .labeled-select.disabled input,[data-v-61ff1cd2] .labeled-select.disabled label{cursor:not-allowed}.labeled-select .no-label[data-v-61ff1cd2] .v-select:not(.vs--single){min-height:33px}.labeled-select .no-label[data-v-61ff1cd2] .selected{padding-top:8px;padding-bottom:9px;position:relative;max-height:2.3em;overflow:hidden}.labeled-select .no-label[data-v-61ff1cd2] .vs__selected-options{padding:8px 0 7px 0}.vs__dropdown-menu .vs__dropdown-option .vs__option-kind-group[data-v-61ff1cd2]{display:flex;align-items:center}.vs__dropdown-menu .vs__dropdown-option .vs__option-kind-group i[data-v-61ff1cd2]{width:18px}.vs__dropdown-menu .vs__dropdown-option .vs__option-kind-group>b[data-v-61ff1cd2]{flex:1}.vs__dropdown-menu .vs__dropdown-option .vs__option-kind-group>div[data-v-61ff1cd2]{background-color:var(--primary);border-radius:4px;color:var(--primary-text);font-size:12px;height:18px;line-height:18px;margin-top:1px;padding:0 10px}.vs__dropdown-menu .vs__dropdown-option .vs__option-kind.has-icon[data-v-61ff1cd2],.vs__dropdown-menu.has-icon .vs__option-kind div[data-v-61ff1cd2]{padding-left:18px}.vs__dropdown-menu .pagination-slot[data-v-61ff1cd2]{display:flex;align-items:center;justify-content:center;position:relative;margin-top:5px}.vs__dropdown-menu .pagination-slot .load-more[data-v-61ff1cd2]{display:flex;align-items:center;height:19px}.vs__dropdown-menu .pagination-slot .load-more a[data-v-61ff1cd2]{cursor:pointer}.vs__dropdown-menu .pagination-slot .count[data-v-61ff1cd2]{position:absolute;right:10px}.vs__dropdown-menu .no-options-slot .paginating[data-v-61ff1cd2]{display:flex;align-items:center;justify-content:center}.vs__dropdown-option>.option-kind-highlighted[data-v-61ff1cd2]{color:var(--dropdown-highlight-text)}.vs__dropdown-option.vs__dropdown-option--highlight>.option-kind-highlighted[data-v-61ff1cd2],.vs__dropdown-option.vs__dropdown-option--selected>.option-kind-highlighted[data-v-61ff1cd2],.vs__dropdown-option>.option-kind-highlighted[data-v-61ff1cd2]:hover{color:var(--dropdown-hover-text)}.vs__dropdown-menu .vs__dropdown-option .only-user-opts[data-v-61ff1cd2]{color:var(--dropdown-text);background-color:var(--dropdown-bg);margin:0 -5px;padding:3px 20px}",""]),t["default"]=s},24411:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".unlabeled-select[data-v-36e59bb3]{position:relative}.unlabeled-select[data-v-36e59bb3] .v-select.select-input-view .vs__actions{visibility:hidden}.unlabeled-select .vs--multiple[data-v-36e59bb3] .vs__selected-options .vs__selected{width:auto}.unlabeled-select[data-v-36e59bb3] .labeled-tooltip.error .status-icon{top:7px;right:2px}.unlabeled-select[data-v-36e59bb3] .vs__selected-options{display:flex;margin:3px}.unlabeled-select[data-v-36e59bb3] .vs__selected-options .vs__selected{width:auto}.unlabeled-select[data-v-36e59bb3] .v-select.vs--open .vs__dropdown-toggle{color:var(--outline)!important}.unlabeled-select.focused.success[data-v-36e59bb3],.unlabeled-select.success[data-v-36e59bb3]{border:solid 1px var(--success)}.unlabeled-select.focused.success .selected[data-v-36e59bb3],.unlabeled-select.focused.success .vs__actions[data-v-36e59bb3]:after,.unlabeled-select.focused.success input[data-v-36e59bb3],.unlabeled-select.success .selected[data-v-36e59bb3],.unlabeled-select.success .vs__actions[data-v-36e59bb3]:after,.unlabeled-select.success input[data-v-36e59bb3]{color:var(--success)}.unlabeled-select.focused.warning[data-v-36e59bb3],.unlabeled-select.warning[data-v-36e59bb3]{border:solid 1px var(--warning)}.unlabeled-select.focused.warning .selected[data-v-36e59bb3],.unlabeled-select.focused.warning .vs__actions[data-v-36e59bb3]:after,.unlabeled-select.focused.warning input[data-v-36e59bb3],.unlabeled-select.warning .selected[data-v-36e59bb3],.unlabeled-select.warning .vs__actions[data-v-36e59bb3]:after,.unlabeled-select.warning input[data-v-36e59bb3]{color:var(--warning)}.unlabeled-select.error[data-v-36e59bb3],.unlabeled-select.focused.error[data-v-36e59bb3]{border:solid 1px var(--error)}.unlabeled-select.error .vs__actions[data-v-36e59bb3]:after,.unlabeled-select.error>label[data-v-36e59bb3],.unlabeled-select.focused.error .vs__actions[data-v-36e59bb3]:after,.unlabeled-select.focused.error>label[data-v-36e59bb3]{color:var(--error)}.unlabeled-select.compact-input[data-v-36e59bb3]{min-height:40px;line-height:18px}",""]),t["default"]=s},61502:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".secret-selector{width:100%}.secret-selector label{display:block}.secret-selector .labeled-select{min-height:61px}.secret-selector .vs__selected-options{padding:8px 0 7px 0}.secret-selector label{display:inline-block}.secret-selector.show-key-selector .input-container>*{display:inline-block;width:50%}.secret-selector.show-key-selector .input-container>.labeled-select.focused{z-index:10}.secret-selector.show-key-selector .input-container>:first-child{border-top-right-radius:0;border-bottom-right-radius:0;margin-right:0}.secret-selector.show-key-selector .input-container>:last-child{border-top-left-radius:0;border-bottom-left-radius:0;border-left:none;float:right}",""]),t["default"]=s},38276:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,'.parent[data-v-5ad5aa7a]{display:grid;grid-template-areas:"progress text";grid-template-columns:auto 80px;align-items:center}.parent .progress[data-v-5ad5aa7a]{background-color:#b8c3dc;width:100%}.parent .progress-box[data-v-5ad5aa7a]{grid-area:progress}.parent .text[data-v-5ad5aa7a]{grid-area:text;text-align:center}',""]),t["default"]=s},38589:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,"svg.text[data-v-5f78e642]{fill:red}",""]),t["default"]=s},29094:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".favorite[data-v-f74a378a]{position:relative;cursor:pointer;font-size:20px;transform:ease-in-out-all 1s}.favorite.icon-star-open[data-v-f74a378a]{color:var(--muted)}.favorite.icon-star-closed[data-v-f74a378a]{color:var(--body-text)}",""]),t["default"]=s},35693:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".receiver .box-container.create-resource-container{display:flex;justify-content:space-between;flex-wrap:wrap;margin:0 -10px}.receiver .box-container.create-resource-container .subtype-banner{justify-content:space-between;align-items:center;flex-direction:row}.receiver .right{padding:30px;border-left:1px solid var(--border)}.receiver .logo{text-align:center;width:60px;height:60px;border-radius:calc(var(--border-radius)*2);overflow:hidden;background-color:#fff;display:inline-block;vertical-align:middle}.receiver .logo img{width:56px;height:56px;-o-object-fit:contain;object-fit:contain;position:relative;top:2px}.receiver .name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:0;display:inline-block;vertical-align:middle}",""]),t["default"]=s},42836:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".responders-heading[data-v-174af1a6]{display:grid;grid-template-columns:auto 75px}.responder[data-v-174af1a6],.responder .target-container[data-v-174af1a6]{width:100%}.responder .target-container[data-v-174af1a6] .unlabeled-select{min-width:35%;height:100%}.responder .target[data-v-174af1a6]{height:100%}",""]),t["default"]=s},84979:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".description[data-v-00b8b38f]{font-weight:600}",""]),t["default"]=s},6088:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".text.info[data-v-33b519e4]{display:flex;align-items:center}.text.info>span[data-v-33b519e4]{margin-right:5px}",""]),t["default"]=s},2586:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".delete-warning[data-v-23844e28]{color:var(--error)}.remove-project-dialog[data-v-23844e28]{border:1px solid var(--border);padding:10px;border-radius:5px}.remove-project-dialog .display-name[data-v-23844e28]{font-weight:700}",""]),t["default"]=s},51515:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".text.info[data-v-88ada8f8]{display:flex;align-items:center}.text.info>span[data-v-88ada8f8]{margin-right:5px}",""]),t["default"]=s},59233:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".body[data-v-f28e06b0]{font-weight:600}.actions[data-v-f28e06b0]{text-align:right}",""]),t["default"]=s},48415:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".badge-state[data-v-64b26d7f]{align-items:center;display:inline-flex;padding:2px 10px;border:1px solid transparent;border-radius:20px}.badge-state.bg-info[data-v-64b26d7f]{border-color:var(--info)}.badge-state.bg-error[data-v-64b26d7f]{border-color:var(--error)}.badge-state.bg-warning[data-v-64b26d7f]{border-color:var(--warning)}.badge-state.bg-success[data-v-64b26d7f]{color:var(--success);background:transparent;border-color:var(--success)}.badge-state.badge-disabled[data-v-64b26d7f]{color:var(--badge-state-disabled-text);background-color:var(--badge-state-disabled-bg);border:1px solid var(--badge-state-disabled-border)}",""]),t["default"]=s},30909:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".sortable-table TD .badge-state{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;word-wrap:break-word;display:inline-block;max-width:100%;position:relative;max-width:110px;font-size:.85em;vertical-align:middle}",""]),t["default"]=s},58498:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".banner[data-v-1a4e45d4]{display:flex;margin:15px 0;position:relative;width:100%;color:var(--body-text)}.banner__icon[data-v-1a4e45d4]{width:48px;flex-grow:1;display:flex;justify-content:center;align-items:center;box-sizing:content-box}.primary .banner__icon[data-v-1a4e45d4]{background:var(--primary)}.secondary .banner__icon[data-v-1a4e45d4]{background:var(--default)}.success .banner__icon[data-v-1a4e45d4]{background:var(--success)}.info .banner__icon[data-v-1a4e45d4]{background:var(--info)}.warning .banner__icon[data-v-1a4e45d4]{background:var(--warning)}.error .banner__icon[data-v-1a4e45d4]{background:var(--error);color:var(--primary-text)}.banner__content[data-v-1a4e45d4]{padding:10px;transition:all .2s ease;line-height:20px;width:100%;border-left:4px solid transparent;display:flex;gap:3px}.primary .banner__content[data-v-1a4e45d4]{background:var(--primary);border-color:var(--primary)}.secondary .banner__content[data-v-1a4e45d4]{background:var(--default-banner-bg);border-color:var(--default)}.success .banner__content[data-v-1a4e45d4]{background:var(--success-banner-bg);border-color:var(--success)}.info .banner__content[data-v-1a4e45d4]{background:var(--info-banner-bg);border-color:var(--info)}.warning .banner__content[data-v-1a4e45d4]{background:var(--warning-banner-bg);border-color:var(--warning)}.error .banner__content[data-v-1a4e45d4]{background:var(--error-banner-bg);border-color:var(--error);color:var(--error)}.banner__content.stacked[data-v-1a4e45d4]{padding:0 10px;margin:0;transition:none}.banner__content.stacked[data-v-1a4e45d4]:first-child{padding-top:10px}.banner__content.stacked[data-v-1a4e45d4]:last-child{padding-bottom:10px}.banner__content.closable[data-v-1a4e45d4]{padding-right:48px}.banner__content__closer[data-v-1a4e45d4]{display:flex;align-items:center;cursor:pointer;position:absolute;top:0;right:0;bottom:0;width:24px;line-height:24px;text-align:center;outline:none}.banner__content__closer .closer-icon[data-v-1a4e45d4]{opacity:.7}.banner__content__closer .closer-icon[data-v-1a4e45d4]:hover{opacity:1;color:var(--link)}.banner__content__closer:focus-visible i[data-v-1a4e45d4]{outline:2px solid var(--primary-keyboard-focus);outline-offset:2px}.banner__content.icon[data-v-1a4e45d4]{border-left:none}",""]),t["default"]=s},49360:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".card-container{border-radius:var(--border-radius);display:flex;flex-basis:40%;margin:10px;min-height:100px;padding:10px;box-shadow:0 0 20px var(--shadow)}.card-container.highlight-border{border-left:5px solid var(--primary)}.card-container:not(.top){align-items:top;flex-direction:row;justify-content:start}.card-container .card-wrap{width:100%}.card-container .card-body{color:var(--input-label);display:flex;flex-direction:column;justify-content:center}.card-container .card-actions{align-self:end;display:flex;padding-top:20px}.card-container .card-title{align-items:center;display:flex;width:100%}.card-container .card-title h5{margin:0}.card-container .card-title .flex-right{margin-left:auto}.card-container.card-sticky{overflow:hidden}.card-container.card-sticky .card-wrap{display:flex;flex-direction:column}.card-container.card-sticky .card-wrap .card-body{justify-content:flex-start;overflow:auto}.card-container.card-sticky .card-wrap>*{flex:0}.card-container.card-sticky .card-wrap .card-body{flex:1}",""]),t["default"]=s},91062:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,'.checkbox-outer-container{display:inline-flex;flex-direction:column}.checkbox-outer-container-description{color:var(--input-label);opacity:.8}.checkbox-outer-container-description,.checkbox-outer-container-extra{font-size:14px;margin-left:19px;margin-top:5px}.checkbox-container{position:relative;display:inline-flex;align-items:center;margin:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:var(--border-radius)}.checkbox-container .checkbox-label{color:var(--input-label);display:inline-flex;margin:0 10px 0 5px}.checkbox-container .checkbox-label.checkbox-primary{color:inherit;font-weight:600}.checkbox-container .checkbox-info{line-height:normal;margin-left:2px}.checkbox-container .checkbox-info:focus-visible{outline:2px solid var(--primary-keyboard-focus);outline-offset:2px}.checkbox-container .checkbox-custom{height:14px;width:14px;background-color:var(--body-bg);border-radius:var(--border-radius);border:1px solid var(--border);flex-shrink:0}.checkbox-container .checkbox-custom:focus-visible{outline:2px solid var(--primary-keyboard-focus);outline-offset:2px;border-radius:0}.checkbox-container input{opacity:0;position:absolute;z-index:-1}.checkbox-container input:focus-visible~.checkbox-custom{outline:2px solid var(--primary-keyboard-focus);outline-offset:2px;border-radius:0}.checkbox-container input:checked~.checkbox-custom{background-color:var(--primary);transform:rotate(0deg) scale(1);opacity:1;border:1px solid var(--primary)}.checkbox-container .checkbox-custom:after{position:absolute;content:"";left:0;top:0;height:0;width:0;border-radius:var(--border-radius);border:solid;border-color:var(--input-text);border-width:0 3px 3px 0;transform:rotate(0deg) scale(0);opacity:1}.checkbox-container input:checked~.checkbox-custom:after{transform:rotate(45deg) scale(1);opacity:1;left:4px;width:4px;height:10px;border:solid;border-color:var(--checkbox-tick);border-width:0 2px 2px 0;background-color:transparent}.checkbox-container input:checked~.checkbox-custom.indeterminate:after{transform:scale(1);opacity:1;left:3px;top:2px;width:6px;height:5px;border:solid;border-color:var(--checkbox-tick);border-width:0 0 2px 0;background-color:transparent}.checkbox-container.disabled .checkbox-custom,.checkbox-container.disabled input:checked~.checkbox-custom{background-color:var(--checkbox-disabled-bg);border-color:var(--checkbox-disabled-bg)}.checkbox-container.disabled input:checked~.checkbox-custom:after{border-color:var(--checkbox-tick-disabled)}.checkbox-container.disabled{cursor:not-allowed}.checkbox-container .checkbox-view{display:flex;flex-direction:column}.checkbox-container .checkbox-view LABEL{color:var(--input-label)}',""]),t["default"]=s},15869:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".labeled-input.view input[data-v-302d757b]{text-overflow:ellipsis}.hideArrows input[data-v-302d757b]::-webkit-inner-spin-button,.hideArrows input[data-v-302d757b]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.hideArrows input[type=number][data-v-302d757b]{-moz-appearance:textfield}",""]),t["default"]=s},29372:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".radio-view{display:flex;flex-direction:column}.radio-view LABEL{color:var(--input-label)}.radio-group .text-label{display:block;padding-bottom:5px}.radio-container{position:relative;display:inline-flex;align-items:flex-start;margin:0;left:-4px;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:var(--border-radius);padding-bottom:5px;padding-left:4px}.radio-container,.radio-container .radio-button-outer-container-description,.radio-container .radio-label{cursor:pointer}.radio-container.disabled,.radio-container.disabled .radio-button-outer-container-description,.radio-container.disabled .radio-label{cursor:not-allowed}.radio-container .radio-custom{height:14px;width:14px;min-height:14px;min-width:14px;background-color:var(--input-bg);border-radius:50%;border:1.5px solid var(--border);margin-top:5px}.radio-container input{display:none}.radio-container .radio-custom[aria-checked=true]{background-color:var(--primary);transform:rotate(0deg) scale(1);opacity:1;border:1.5px solid var(--primary)}.radio-container .radio-custom[aria-checked=true].text-muted{opacity:.25}.radio-container input:disabled~.radio-custom:not([aria-checked=true]){background-color:var(--disabled-bg);opacity:.25}.radio-container .radio-button-outer-container-description{color:var(--input-label);font-size:11px;margin-top:5px}.radio-container .labeling{display:inline-flex;flex-direction:column;margin:3px 10px 0 5px}",""]),t["default"]=s},14503:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".radio-group:focus,.radio-group:focus-visible{border:none;outline:none}.radio-group:focus-visible .radio-button-checked{outline:2px solid var(--primary-keyboard-focus)}.radio-group h3{position:relative}.radio-group.row{display:flex}.radio-group.row .radio-container{margin-right:10px}.radio-group .label{font-size:14px!important}",""]),t["default"]=s},62672:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".labeled-tooltip{position:absolute;width:100%;height:100%;left:0;top:0}.labeled-tooltip.hoverable{height:0}.labeled-tooltip .status-icon{position:absolute;right:30px;top:18px;z-index:3}.labeled-tooltip.error .status-icon{color:var(--error);top:7px;right:5px}.labeled-tooltip.warning .status-icon{color:var(--warning)}.labeled-tooltip.success .status-icon{color:var(--success)}.v-popper__popper.v-popper--theme-tooltip .v-popper__inner pre{padding:2px;vertical-align:middle}",""]),t["default"]=s},10166:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,"button.role-link.focused[data-v-1a34c69c],button.role-link[data-v-1a34c69c]:focus{outline:2px solid var(--primary-keyboard-focus);outline-offset:-2px}button.role-link[data-v-1a34c69c]:hover{background-color:var(--accent-btn);box-shadow:none}button.role-ghost[data-v-1a34c69c]{padding:0;background-color:transparent}button.role-ghost.focused[data-v-1a34c69c],button.role-ghost[data-v-1a34c69c]:focus{outline:2px solid var(--primary-keyboard-focus);outline-offset:0}button.role-ghost[data-v-1a34c69c]:focus-visible{outline:2px solid var(--primary-keyboard-focus);outline-offset:0}",""]),t["default"]=s},81407:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".popperContainer[data-v-6310c556]{display:contents}.popperContainer[data-v-6310c556] .v-popper__popper .v-popper__wrapper{box-shadow:0 6px 18px 0 rgba(0,0,0,.25),0 4px 10px 0 rgba(0,0,0,.15);border-radius:var(--border-radius-lg)}.popperContainer[data-v-6310c556] .v-popper__popper .v-popper__wrapper .v-popper__arrow-container{display:none}.popperContainer[data-v-6310c556] .v-popper__popper .v-popper__wrapper .v-popper__inner{padding:10px 0 10px 0}.dropdownTarget[data-v-6310c556]:focus,.dropdownTarget[data-v-6310c556]:focus-visible{outline:none}",""]),t["default"]=s},92278:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,"[dropdown-menu-item][data-v-e656ee2e]{display:flex;gap:8px;align-items:center;padding:9px 8px;margin:0 9px;border-radius:4px}[dropdown-menu-item][data-v-e656ee2e]:hover{cursor:pointer;background-color:var(--dropdown-hover-bg)}[dropdown-menu-item][data-v-e656ee2e]:focus,[dropdown-menu-item][data-v-e656ee2e]:focus-visible{outline:2px solid var(--primary-keyboard-focus);outline-offset:0}[dropdown-menu-item][disabled][data-v-e656ee2e]{color:var(--disabled-text)}[dropdown-menu-item][disabled][data-v-e656ee2e]:hover{cursor:not-allowed}",""]),t["default"]=s},52304:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".role[data-v-fa2c9f40]{align-items:center;background-color:rgba(0,0,0,.05);border:1px solid var(--header-border);border-radius:5px;color:var(--tag-text);line-height:20px;padding:2px 5px;white-space:nowrap;display:inline-flex;margin-right:3px}.role-value.text-link-enabled[data-v-fa2c9f40]{cursor:pointer}.role-value.text-link-enabled[data-v-fa2c9f40]:hover{color:var(--primary)}.role-value+.icon-close[data-v-fa2c9f40]{margin-left:3px;cursor:pointer}.role-value+.icon-close[data-v-fa2c9f40]:hover{color:var(--primary)}.project-members[data-v-fa2c9f40] .group-bar{display:flex;justify-content:space-between}.cluster-add[data-v-fa2c9f40]{justify-content:flex-end}",""]),t["default"]=s},72326:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=n(96599),l=o()(i());l.i(s.A),l.push([e.id,"#__layout,#__nuxt,MAIN,body{height:100%}.harvester-shell-container{height:100%;overflow:hidden}.harvester-shell-container .shell-body,.harvester-shell-container .terminal.xterm{height:100%}",""]),t["default"]=l},65320:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".error[data-v-56da10be]{overflow:hidden}.error .row[data-v-56da10be]{align-items:center}.error h1[data-v-56da10be]{font-size:5rem}.error .desert-landscape img[data-v-56da10be]{max-width:100%}",""]),t["default"]=s},64065:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".displayed-keys .banner[data-v-7821dcb9]{margin:0}.displayed-banners[data-v-7821dcb9]{max-height:155px;overflow:auto}.actions[data-v-7821dcb9]{width:100%;display:flex;justify-content:flex-end}",""]),t["default"]=s},38245:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".combination-keys__container[data-v-11c334cb]{max-width:60px}.combination-keys__container DIV[data-v-11c334cb],.combination-keys__container SPAN[data-v-11c334cb]{display:block;text-align:center}.combination-keys__container SPAN[data-v-11c334cb]{border-radius:3px}.combination-keys__container SPAN.open[data-v-11c334cb],.combination-keys__container SPAN[data-v-11c334cb]:hover{color:var(--primary-hover-text);background:var(--primary-hover-bg)}",""]),t["default"]=s},30116:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".vm-console[data-v-55ed4d1a]{height:100%;display:grid;grid-template-rows:30px auto}.combination-keys[data-v-55ed4d1a]{background:#282828}",""]),t["default"]=s},13998:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".bundleModal .support-modal[data-v-4369f8da]{border-radius:var(--border-radius);max-height:100vh}.bundleModal .bundle[data-v-4369f8da]{cursor:pointer;color:var(--primary)}.bundleModal .icon-spinner[data-v-4369f8da]{font-size:100px}.bundleModal .content[data-v-4369f8da]{height:218px}.bundleModal .content .circle[data-v-4369f8da]{padding-top:20px;height:160px}.bundleModal div[data-v-4369f8da]{line-height:normal}.bundleModal .footer[data-v-4369f8da]{display:flex;justify-content:center}",""]),t["default"]=s},56749:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,"#air-gap[data-v-0da6c36e]{padding:20px}#air-gap[data-v-0da6c36e] .image-group .radio-group{display:flex}#air-gap[data-v-0da6c36e] .image-group .radio-group .radio-container{margin-right:30px}#air-gap .parent[data-v-0da6c36e]{grid-template-columns:auto 40px}#air-gap .chooseFile[data-v-0da6c36e]{display:flex;align-items:center}",""]),t["default"]=s},64970:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".header[data-v-a0fecebc]{border-bottom:1px solid var(--border);margin-bottom:0;padding-bottom:20px}.header H1[data-v-a0fecebc]{flex:1}",""]),t["default"]=s},76592:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".link-example[data-v-45ae37da]{display:flex;align-content:center}.link-example a[data-v-45ae37da]{margin:auto}.logo-container[data-v-45ae37da]{display:flex;flex-direction:column}.logo-container[data-v-45ae37da] .simple-box{position:relative;flex:1;max-height:120px}.logo-container[data-v-45ae37da] .simple-box .content{height:100%;display:flex}.logo-container[data-v-45ae37da] .simple-box .logo-preview{max-width:100%}.logo-container LABEL[data-v-45ae37da]{position:absolute;top:10px;left:10px}",""]),t["default"]=s},75106:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,"#__layout[data-v-2efbfdaf],#__nuxt[data-v-2efbfdaf],body[data-v-2efbfdaf],main[data-v-2efbfdaf]{height:100%}",""]),t["default"]=s},81945:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".content[data-v-74e3f663]{display:grid;grid-column-gap:20px;grid-row-gap:20px;grid-template-columns:70% 30%}.only-community[data-v-74e3f663]{display:grid;grid-template-columns:100%}.community[data-v-74e3f663]{border-left:1px solid var(--border);padding-left:20px}.community>h2[data-v-74e3f663]{font-size:18px;font-weight:300;margin-bottom:20px}.community .support-link[data-v-74e3f663]{margin:10px 0}.box[data-v-74e3f663]{padding:20px;border:1px solid var(--border)}.box.box-primary[data-v-74e3f663]{border-color:var(--primary)}.box>h2[data-v-74e3f663]{font-size:20px;font-weight:300}.box>div[data-v-74e3f663]{font-weight:300;line-height:18px;opacity:.8}.role-secondary[data-v-74e3f663]:focus{background-color:transparent}.warning[data-v-74e3f663]{margin:0 -5px 0 -5px;padding:5px;background-color:var(--warning-banner-bg)}",""]),t["default"]=s},66208:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,'.dashboard-root[data-v-140c2578]{display:flex;flex-direction:column;height:100vh}.dashboard-content[data-v-140c2578]{display:grid;flex-grow:1;grid-template-areas:"main";grid-template-columns:auto;grid-template-rows:auto}.logo[data-v-140c2578]{margin:200px 0 40px 0}.logo[data-v-140c2578],.tagline[data-v-140c2578]{display:flex;justify-content:center}.tagline[data-v-140c2578]{margin-top:30px}.tagline>div[data-v-140c2578]{font-size:16px;line-height:22px;max-width:80%;text-align:center}.description[data-v-140c2578]{font-size:24px!important;font-weight:400}',""]),t["default"]=s},96599:function(e,t,n){"use strict";var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".xterm{cursor:text;position:relative;-moz-user-select:none;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm .xterm-cursor-pointer,.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}",""]),t.A=s},40935:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r="undefined"!==typeof t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,a){"string"===typeof e&&(e=[[null,e,void 0]]);var o={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(o[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&o[u[0]]||("undefined"!==typeof a&&("undefined"===typeof u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},20062:function(e){"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},36758:function(e){"use strict";e.exports=function(e){return e[1]}},23464:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="day",a="week",o="month",s="quarter",l="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,u=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},h={s:d,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+d(r,2,"0")+":"+d(i,2,"0")},m:function(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,o),i=t-r<0,a=e.clone().add(n+(i?-1:1),o);return Number(-(n+(t-r)/(i?r-a:a-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return{M:o,y:l,w:a,d:i,D:"date",h:r,m:n,s:t,ms:e,Q:s}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},f="en",m={};m[f]=p;var g=function(e){return e instanceof w},v=function(e,t,n){var r;if(!e)return f;if("string"==typeof e)m[e]&&(r=e),t&&(m[e]=t,r=e);else{var i=e.name;m[i]=e,r=i}return!n&&r&&(f=r),r||!n&&f},b=function(e,t){if(g(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new w(n)},y=h;y.l=v,y.i=g,y.w=function(e,t){return b(e,{locale:t.$L,utc:t.$u,$offset:t.$offset})};var w=function(){function d(e){this.$L=this.$L||v(e.locale,null,!0),this.parse(e)}var h=d.prototype;return h.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(y.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(c);if(r)return n?new Date(Date.UTC(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)):new Date(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)}return new Date(t)}(e),this.init()},h.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},h.$utils=function(){return y},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.isSame=function(e,t){var n=b(e);return this.startOf(t)<=n&&n<=this.endOf(t)},h.isAfter=function(e,t){return b(e)<this.startOf(t)},h.isBefore=function(e,t){return this.endOf(t)<b(e)},h.$g=function(e,t,n){return y.u(e)?this[t]:this.set(n,e)},h.year=function(e){return this.$g(e,"$y",l)},h.month=function(e){return this.$g(e,"$M",o)},h.day=function(e){return this.$g(e,"$W",i)},h.date=function(e){return this.$g(e,"$D","date")},h.hour=function(e){return this.$g(e,"$H",r)},h.minute=function(e){return this.$g(e,"$m",n)},h.second=function(e){return this.$g(e,"$s",t)},h.millisecond=function(t){return this.$g(t,"$ms",e)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,s){var c=this,u=!!y.u(s)||s,d=y.p(e),h=function(e,t){var n=y.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return u?n:n.endOf(i)},p=function(e,t){return y.w(c.toDate()[e].apply(c.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},f=this.$W,m=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case l:return u?h(1,0):h(31,11);case o:return u?h(1,m):h(0,m+1);case a:var b=this.$locale().weekStart||0,w=(f<b?f+7:f)-b;return h(u?g-w:g+(6-w),m);case i:case"date":return p(v+"Hours",0);case r:return p(v+"Minutes",1);case n:return p(v+"Seconds",2);case t:return p(v+"Milliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(a,s){var c,u=y.p(a),d="set"+(this.$u?"UTC":""),h=(c={},c[i]=d+"Date",c.date=d+"Date",c[o]=d+"Month",c[l]=d+"FullYear",c[r]=d+"Hours",c[n]=d+"Minutes",c[t]=d+"Seconds",c[e]=d+"Milliseconds",c)[u],p=u===i?this.$D+(s-this.$W):s;if(u===o||u===l){var f=this.clone().set("date",1);f.$d[h](p),f.init(),this.$d=f.set("date",Math.min(this.$D,f.daysInMonth())).toDate()}else h&&this.$d[h](p);return this.init(),this},h.set=function(e,t){return this.clone().$set(e,t)},h.get=function(e){return this[y.p(e)]()},h.add=function(e,s){var c,u=this;e=Number(e);var d=y.p(s),h=function(t){var n=b(u);return y.w(n.date(n.date()+Math.round(t*e)),u)};if(d===o)return this.set(o,this.$M+e);if(d===l)return this.set(l,this.$y+e);if(d===i)return h(1);if(d===a)return h(7);var p=(c={},c[n]=6e4,c[r]=36e5,c[t]=1e3,c)[d]||1,f=this.$d.getTime()+e*p;return y.w(f,this)},h.subtract=function(e,t){return this.add(-1*e,t)},h.format=function(e){var t=this;if(!this.isValid())return"Invalid Date";var n=e||"YYYY-MM-DDTHH:mm:ssZ",r=y.z(this),i=this.$locale(),a=this.$H,o=this.$m,s=this.$M,l=i.weekdays,c=i.months,d=function(e,r,i,a){return e&&(e[r]||e(t,n))||i[r].substr(0,a)},h=function(e){return y.s(a%12||12,e,"0")},p=i.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},f={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:y.s(s+1,2,"0"),MMM:d(i.monthsShort,s,c,3),MMMM:d(c,s),D:this.$D,DD:y.s(this.$D,2,"0"),d:String(this.$W),dd:d(i.weekdaysMin,this.$W,l,2),ddd:d(i.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(a),HH:y.s(a,2,"0"),h:h(1),hh:h(2),a:p(a,o,!0),A:p(a,o,!1),m:String(o),mm:y.s(o,2,"0"),s:String(this.$s),ss:y.s(this.$s,2,"0"),SSS:y.s(this.$ms,3,"0"),Z:r};return n.replace(u,(function(e,t){return t||f[e]||r.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(e,c,u){var d,h=y.p(c),p=b(e),f=6e4*(p.utcOffset()-this.utcOffset()),m=this-p,g=y.m(this,p);return g=(d={},d[l]=g/12,d[o]=g,d[s]=g/3,d[a]=(m-f)/6048e5,d[i]=(m-f)/864e5,d[r]=m/36e5,d[n]=m/6e4,d[t]=m/1e3,d)[h]||m,u?g:y.a(g)},h.daysInMonth=function(){return this.endOf(o).$D},h.$locale=function(){return m[this.$L]},h.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=v(e,t,!0);return r&&(n.$L=r),n},h.clone=function(){return y.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},d}();return b.prototype=w.prototype,b.extend=function(e,t){return e(t,w,b),b},b.locale=v,b.isDayjs=g,b.unix=function(e){return b(1e3*e)},b.en=m[f],b.Ls=m,b}))},70686:function(e,t,n){"use strict";var r=n(64940),i=n(5731),a=n(3468),o=n(69336);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new a("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!o&&o(e,t);if(r)r(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===s&&d?d.enumerable:!s,value:n,writable:null===l&&d?d.writable:!l});else{if(!u&&(s||l||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},41857:function(e,t,n){"use strict";var r=n(49228),i="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),a=Object.prototype.toString,o=Array.prototype.concat,s=n(70686),l=function(e){return"function"===typeof e&&"[object Function]"===a.call(e)},c=n(17239)(),u=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if(!l(r)||!r())return;c?s(e,t,n,!0):s(e,t,n)},d=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);i&&(a=o.call(a,Object.getOwnPropertySymbols(t)));for(var s=0;s<a.length;s+=1)u(e,a[s],t[a[s]],n[a[s]])};d.supportsDescriptors=!!c,e.exports=d},46867:function(e,t){
/*!
diff v4.0.1
Software License Agreement (BSD License)
Copyright (c) 2009-2015, Kevin Decker <kpdecker@gmail.com>
All rights reserved.
Redistribution and use of this software in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above
copyright notice, this list of conditions and the
following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the
following disclaimer in the documentation and/or other
materials provided with the distribution.
* Neither the name of Kevin Decker nor the names of its
contributors may be used to endorse or promote products
derived from this software without specific prior
written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@license
*/
(function(e,n){n(t)})(0,(function(e){"use strict";function t(){}function n(e,t,n,r,i){for(var a=0,o=t.length,s=0,l=0;a<o;a++){var c=t[a];if(c.removed){if(c.value=e.join(r.slice(l,l+c.count)),l+=c.count,a&&t[a-1].added){var u=t[a-1];t[a-1]=t[a],t[a]=u}}else{if(!c.added&&i){var d=n.slice(s,s+c.count);d=d.map((function(e,t){var n=r[l+t];return n.length>e.length?n:e})),c.value=e.join(d)}else c.value=e.join(n.slice(s,s+c.count));s+=c.count,c.added||(l+=c.count)}}var h=t[o-1];return o>1&&"string"===typeof h.value&&(h.added||h.removed)&&e.equals("",h.value)&&(t[o-2].value+=h.value,t.pop()),t}function r(e){return{newPos:e.newPos,components:e.components.slice(0)}}t.prototype={diff:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.callback;"function"===typeof i&&(a=i,i={}),this.options=i;var o=this;function s(e){return a?(setTimeout((function(){a(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var l=t.length,c=e.length,u=1,d=l+c,h=[{newPos:-1,components:[]}],p=this.extractCommon(h[0],t,e,0);if(h[0].newPos+1>=l&&p+1>=c)return s([{value:this.join(t),count:t.length}]);function f(){for(var i=-1*u;i<=u;i+=2){var a=void 0,d=h[i-1],p=h[i+1],f=(p?p.newPos:0)-i;d&&(h[i-1]=void 0);var m=d&&d.newPos+1<l,g=p&&0<=f&&f<c;if(m||g){if(!m||g&&d.newPos<p.newPos?(a=r(p),o.pushComponent(a.components,void 0,!0)):(a=d,a.newPos++,o.pushComponent(a.components,!0,void 0)),f=o.extractCommon(a,t,e,i),a.newPos+1>=l&&f+1>=c)return s(n(o,a.components,t,e,o.useLongestToken));h[i]=a}else h[i]=void 0}u++}if(a)(function e(){setTimeout((function(){if(u>d)return a();f()||e()}),0)})();else while(u<=d){var m=f();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){var i=t.length,a=n.length,o=e.newPos,s=o-r,l=0;while(o+1<i&&s+1<a&&this.equals(t[o+1],n[s+1]))o++,s++,l++;return l&&e.components.push({count:l}),e.newPos=o,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var i=new t;function a(e,t,n){return i.diff(e,t,n)}function o(e,t){if("function"===typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var s=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,l=/\S/,c=new t;function u(e,t,n){return n=o(n,{ignoreWhitespace:!0}),c.diff(e,t,n)}function d(e,t,n){return c.diff(e,t,n)}c.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!l.test(e)&&!l.test(t)},c.tokenize=function(e){for(var t=e.split(/(\s+|[()[\]{}'"]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&s.test(t[n])&&s.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var h=new t;function p(e,t,n){return h.diff(e,t,n)}function f(e,t,n){var r=o(n,{ignoreWhitespace:!0});return h.diff(e,t,r)}h.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var m=new t;function g(e,t,n){return m.diff(e,t,n)}m.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var v=new t;function b(e,t,n){return v.diff(e,t,n)}function y(e){return y="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},y(e)}function w(e){return E(e)||_(e)||S()}function E(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function _(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance")}v.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var k=Object.prototype.toString,x=new t;function A(e,t,n){return x.diff(e,t,n)}function N(e,t,n,r,i){var a,o;for(t=t||[],n=n||[],r&&(e=r(i,e)),a=0;a<t.length;a+=1)if(t[a]===e)return n[a];if("[object Array]"===k.call(e)){for(t.push(e),o=new Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=N(e[a],t,n,r,i);return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),"object"===y(e)&&null!==e){t.push(e),o={},n.push(o);var s,l=[];for(s in e)e.hasOwnProperty(s)&&l.push(s);for(l.sort(),a=0;a<l.length;a+=1)s=l[a],o[s]=N(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}x.useLongestToken=!0,x.tokenize=h.tokenize,x.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=void 0===r?function(e,t){return"undefined"===typeof t?n:t}:r;return"string"===typeof e?e:JSON.stringify(N(e,null,null,i),i," ")},x.equals=function(e,n){return t.prototype.equals.call(x,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};var C=new t;function T(e,t,n){return C.diff(e,t,n)}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=[],a=0;function o(){var e={};i.push(e);while(a<n.length){var r=n[a];if(/^(\-\-\-|\+\+\+|@@)\s/.test(r))break;var o=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(r);o&&(e.index=o[1]),a++}s(e),s(e),e.hunks=[];while(a<n.length){var c=n[a];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(c))break;if(/^@@/.test(c))e.hunks.push(l());else{if(c&&t.strict)throw new Error("Unknown line "+(a+1)+" "+JSON.stringify(c));a++}}}function s(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(n[a]);if(t){var r="---"===t[1]?"old":"new",i=t[2].split("\t",2),o=i[0].replace(/\\\\/g,"\\");/^".*"$/.test(o)&&(o=o.substr(1,o.length-2)),e[r+"FileName"]=o,e[r+"Header"]=(i[1]||"").trim(),a++}}function l(){for(var e=a,i=n[a++],o=i.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),s={oldStart:+o[1],oldLines:+o[2]||1,newStart:+o[3],newLines:+o[4]||1,lines:[],linedelimiters:[]},l=0,c=0;a<n.length;a++){if(0===n[a].indexOf("--- ")&&a+2<n.length&&0===n[a+1].indexOf("+++ ")&&0===n[a+2].indexOf("@@"))break;var u=0==n[a].length&&a!=n.length-1?" ":n[a][0];if("+"!==u&&"-"!==u&&" "!==u&&"\\"!==u)break;s.lines.push(n[a]),s.linedelimiters.push(r[a]||"\n"),"+"===u?l++:"-"===u?c++:" "===u&&(l++,c++)}if(l||1!==s.newLines||(s.newLines=0),c||1!==s.oldLines||(s.oldLines=0),t.strict){if(l!==s.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(c!==s.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return s}while(a<n.length)o();return i}function O(e,t,n){var r=!0,i=!1,a=!1,o=1;return function s(){if(r&&!a){if(i?o++:r=!1,e+o<=n)return o;a=!0}if(!i)return a||(r=!0),t<=e-o?-o++:(i=!0,s())}}function I(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof t&&(t=R(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r,i,a=e.split(/\r\n|[\n\v\f\r\x85]/),o=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],s=t.hunks,l=n.compareLine||function(e,t,n,r){return t===r},c=0,u=n.fuzzFactor||0,d=0,h=0;function p(e,t){for(var n=0;n<e.lines.length;n++){var r=e.lines[n],i=r.length>0?r[0]:" ",o=r.length>0?r.substr(1):r;if(" "===i||"-"===i){if(!l(t+1,a[t],i,o)&&(c++,c>u))return!1;t++}}return!0}for(var f=0;f<s.length;f++){for(var m=s[f],g=a.length-m.oldLines,v=0,b=h+m.oldStart-1,y=O(b,d,g);void 0!==v;v=y())if(p(m,b+v)){m.offset=h+=v;break}if(void 0===v)return!1;d=m.offset+m.oldStart+m.oldLines}for(var w=0,E=0;E<s.length;E++){var _=s[E],S=_.oldStart+_.offset+w-1;w+=_.newLines-_.oldLines,S<0&&(S=0);for(var k=0;k<_.lines.length;k++){var x=_.lines[k],A=x.length>0?x[0]:" ",N=x.length>0?x.substr(1):x,C=_.linedelimiters[k];if(" "===A)S++;else if("-"===A)a.splice(S,1),o.splice(S,1);else if("+"===A)a.splice(S,0,N),o.splice(S,0,C),S++;else if("\\"===A){var T=_.lines[k-1]?_.lines[k-1][0]:null;"+"===T?r=!0:"-"===T&&(i=!0)}}}if(r)while(!a[a.length-1])a.pop(),o.pop();else i&&(a.push(""),o.push("\n"));for(var I=0;I<a.length-1;I++)a[I]=a[I]+o[I];return a.join("")}function L(e,t){"string"===typeof e&&(e=R(e));var n=0;function r(){var i=e[n++];if(!i)return t.complete();t.loadFile(i,(function(e,n){if(e)return t.complete(e);var a=I(n,i,t);t.patched(i,a,(function(e){if(e)return t.complete(e);r()}))}))}r()}function D(e,t,n,r,i,a,o){o||(o={}),"undefined"===typeof o.context&&(o.context=4);var s=p(n,r,o);function l(e){return e.map((function(e){return" "+e}))}s.push({value:"",lines:[]});for(var c=[],u=0,d=0,h=[],f=1,m=1,g=function(e){var t=s[e],i=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=i,t.added||t.removed){var a;if(!u){var p=s[e-1];u=f,d=m,p&&(h=o.context>0?l(p.lines.slice(-o.context)):[],u-=h.length,d-=h.length)}(a=h).push.apply(a,w(i.map((function(e){return(t.added?"+":"-")+e})))),t.added?m+=i.length:f+=i.length}else{if(u)if(i.length<=2*o.context&&e<s.length-2){var g;(g=h).push.apply(g,w(l(i)))}else{var v,b=Math.min(i.length,o.context);(v=h).push.apply(v,w(l(i.slice(0,b))));var y={oldStart:u,oldLines:f-u+b,newStart:d,newLines:m-d+b,lines:h};if(e>=s.length-2&&i.length<=o.context){var E=/\n$/.test(n),_=/\n$/.test(r),S=0==i.length&&h.length>y.oldLines;!E&&S&&h.splice(y.oldLines,0,"\\ No newline at end of file"),(E||S)&&_||h.push("\\ No newline at end of file")}c.push(y),u=0,d=0,h=[]}f+=i.length,m+=i.length}},v=0;v<s.length;v++)g(v);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:a,hunks:c}}function P(e,t,n,r,i,a,o){var s=D(e,t,n,r,i,a,o),l=[];e==t&&l.push("Index: "+e),l.push("==================================================================="),l.push("--- "+s.oldFileName+("undefined"===typeof s.oldHeader?"":"\t"+s.oldHeader)),l.push("+++ "+s.newFileName+("undefined"===typeof s.newHeader?"":"\t"+s.newHeader));for(var c=0;c<s.hunks.length;c++){var u=s.hunks[c];l.push("@@ -"+u.oldStart+","+u.oldLines+" +"+u.newStart+","+u.newLines+" @@"),l.push.apply(l,u.lines)}return l.join("\n")+"\n"}function M(e,t,n,r,i,a){return P(e,e,t,n,r,i,a)}function B(e,t){return e.length===t.length&&F(e,t)}function F(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function $(e){var t=ne(e.lines),n=t.oldLines,r=t.newLines;void 0!==n?e.oldLines=n:delete e.oldLines,void 0!==r?e.newLines=r:delete e.newLines}function U(e,t,n){e=j(e,n),t=j(t,n);var r={};(e.index||t.index)&&(r.index=e.index||t.index),(e.newFileName||t.newFileName)&&(V(e)?V(t)?(r.oldFileName=K(r,e.oldFileName,t.oldFileName),r.newFileName=K(r,e.newFileName,t.newFileName),r.oldHeader=K(r,e.oldHeader,t.oldHeader),r.newHeader=K(r,e.newHeader,t.newHeader)):(r.oldFileName=e.oldFileName,r.newFileName=e.newFileName,r.oldHeader=e.oldHeader,r.newHeader=e.newHeader):(r.oldFileName=t.oldFileName||e.oldFileName,r.newFileName=t.newFileName||e.newFileName,r.oldHeader=t.oldHeader||e.oldHeader,r.newHeader=t.newHeader||e.newHeader)),r.hunks=[];var i=0,a=0,o=0,s=0;while(i<e.hunks.length||a<t.hunks.length){var l=e.hunks[i]||{oldStart:1/0},c=t.hunks[a]||{oldStart:1/0};if(H(l,c))r.hunks.push(G(l,o)),i++,s+=l.newLines-l.oldLines;else if(H(c,l))r.hunks.push(G(c,s)),a++,o+=c.newLines-c.oldLines;else{var u={oldStart:Math.min(l.oldStart,c.oldStart),oldLines:0,newStart:Math.min(l.newStart+o,c.oldStart+s),newLines:0,lines:[]};z(u,l.oldStart,l.lines,c.oldStart,c.lines),a++,i++,r.hunks.push(u)}}return r}function j(e,t){if("string"===typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return R(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return D(void 0,void 0,t,e)}return e}function V(e){return e.newFileName&&e.newFileName!==e.oldFileName}function K(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function H(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function G(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function z(e,t,n,r,i){var a={offset:t,lines:n,index:0},o={offset:r,lines:i,index:0};Y(e,a,o),Y(e,o,a);while(a.index<a.lines.length&&o.index<o.lines.length){var s=a.lines[a.index],l=o.lines[o.index];if("-"!==s[0]&&"+"!==s[0]||"-"!==l[0]&&"+"!==l[0])if("+"===s[0]&&" "===l[0]){var c;(c=e.lines).push.apply(c,w(J(a)))}else if("+"===l[0]&&" "===s[0]){var u;(u=e.lines).push.apply(u,w(J(o)))}else"-"===s[0]&&" "===l[0]?X(e,a,o):"-"===l[0]&&" "===s[0]?X(e,o,a,!0):s===l?(e.lines.push(s),a.index++,o.index++):W(e,J(a),J(o));else q(e,a,o)}Q(e,a),Q(e,o),$(e)}function q(e,t,n){var r=J(t),i=J(n);if(ee(r)&&ee(i)){var a,o;if(F(r,i)&&te(n,r,r.length-i.length))return void(a=e.lines).push.apply(a,w(r));if(F(i,r)&&te(t,i,i.length-r.length))return void(o=e.lines).push.apply(o,w(i))}else if(B(r,i)){var s;return void(s=e.lines).push.apply(s,w(r))}W(e,r,i)}function X(e,t,n,r){var i,a=J(t),o=Z(n,a);o.merged?(i=e.lines).push.apply(i,w(o.merged)):W(e,r?o:a,r?a:o)}function W(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function Y(e,t,n){while(t.offset<n.offset&&t.index<t.lines.length){var r=t.lines[t.index++];e.lines.push(r),t.offset++}}function Q(e,t){while(t.index<t.lines.length){var n=t.lines[t.index++];e.lines.push(n)}}function J(e){var t=[],n=e.lines[e.index][0];while(e.index<e.lines.length){var r=e.lines[e.index];if("-"===n&&"+"===r[0]&&(n="+"),n!==r[0])break;t.push(r),e.index++}return t}function Z(e,t){var n=[],r=[],i=0,a=!1,o=!1;while(i<t.length&&e.index<e.lines.length){var s=e.lines[e.index],l=t[i];if("+"===l[0])break;if(a=a||" "!==s[0],r.push(l),i++,"+"===s[0]){o=!0;while("+"===s[0])n.push(s),s=e.lines[++e.index]}l.substr(1)===s.substr(1)?(n.push(s),e.index++):o=!0}if("+"===(t[i]||"")[0]&&a&&(o=!0),o)return n;while(i<t.length)r.push(t[i++]);return{merged:r,changes:n}}function ee(e){return e.reduce((function(e,t){return e&&"-"===t[0]}),!0)}function te(e,t,n){for(var r=0;r<n;r++){var i=t[t.length-n+r].substr(1);if(e.lines[e.index+r]!==" "+i)return!1}return e.index+=n,!0}function ne(e){var t=0,n=0;return e.forEach((function(e){if("string"!==typeof e){var r=ne(e.mine),i=ne(e.theirs);void 0!==t&&(r.oldLines===i.oldLines?t+=r.oldLines:t=void 0),void 0!==n&&(r.newLines===i.newLines?n+=r.newLines:n=void 0)}else void 0===n||"+"!==e[0]&&" "!==e[0]||n++,void 0===t||"-"!==e[0]&&" "!==e[0]||t++})),{oldLines:t,newLines:n}}function re(e){for(var t,n,r=[],i=0;i<e.length;i++)t=e[i],n=t.added?1:t.removed?-1:0,r.push([n,t.value]);return r}function ie(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r.added?t.push("<ins>"):r.removed&&t.push("<del>"),t.push(ae(r.value)),r.added?t.push("</ins>"):r.removed&&t.push("</del>")}return t.join("")}function ae(e){var t=e;return t=t.replace(/&/g,"&amp;"),t=t.replace(/</g,"&lt;"),t=t.replace(/>/g,"&gt;"),t=t.replace(/"/g,"&quot;"),t}C.tokenize=function(e){return e.slice()},C.join=C.removeEmpty=function(e){return e},e.Diff=t,e.diffChars=a,e.diffWords=u,e.diffWordsWithSpace=d,e.diffLines=p,e.diffTrimmedLines=f,e.diffSentences=g,e.diffCss=b,e.diffJson=A,e.diffArrays=T,e.structuredPatch=D,e.createTwoFilesPatch=P,e.createPatch=M,e.applyPatch=I,e.applyPatches=L,e.parsePatch=R,e.merge=U,e.convertChangesToDMP=re,e.convertChangesToXML=ie,e.canonicalize=N,Object.defineProperty(e,"__esModule",{value:!0})}))},18841:function(e,t,n){"use strict";var r=n(4364),i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;var a=n(51305),o=n(44869);function s(e,t){var n=e.split(".");return n.length>1?n[n.length-1]:t}function l(e,t){return t.reduce((function(t,n){return t||e.startsWith(n)}),!1)}var c=["a/","b/","i/","w/","c/","o/"];function u(e,t,n){var r=void 0!==n?i(i([],c,!0),[n],!1):c,a=t?new RegExp("^".concat((0,o.escapeForRegExp)(t),' "?(.+?)"?$')):new RegExp('^"?(.+?)"?$'),s=a.exec(e)||[],l=s[1],u=void 0===l?"":l,d=r.find((function(e){return 0===u.indexOf(e)})),h=d?u.slice(d.length):u;return h.replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function d(e,t){return u(e,"---",t)}function h(e,t){return u(e,"+++",t)}function p(e,t){void 0===t&&(t={});var n=[],i=null,o=null,c=null,p=null,f=null,m=null,g=null,v="--- ",b="+++ ",y="@@",w=/^old mode (\d{6})/,E=/^new mode (\d{6})/,_=/^deleted file mode (\d{6})/,S=/^new file mode (\d{6})/,k=/^copy from "?(.+)"?/,x=/^copy to "?(.+)"?/,A=/^rename from "?(.+)"?/,N=/^rename to "?(.+)"?/,C=/^similarity index (\d+)%/,T=/^dissimilarity index (\d+)%/,R=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,O=/^Binary files (.*) and (.*) differ/,I=/^GIT binary patch/,L=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,D=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,P=/^new file mode (\d{6})/,M=/^deleted file mode (\d{6}),(\d{6})/,B=e.replace(/\\ No newline at end of file/g,"").replace(/\r\n?/g,"\n").split("\n");function F(){null!==o&&null!==i&&(i.blocks.push(o),o=null)}function $(){null!==i&&(i.oldName||null===m||(i.oldName=m),i.newName||null===g||(i.newName=g),i.newName&&(n.push(i),i=null)),m=null,g=null}function U(){F(),$(),i={blocks:[],deletedLines:0,addedLines:0}}function j(e){var t;F(),null!==i&&((t=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(e))?(i.isCombined=!1,c=parseInt(t[1],10),f=parseInt(t[2],10)):(t=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(e))?(i.isCombined=!0,c=parseInt(t[1],10),p=parseInt(t[2],10),f=parseInt(t[3],10)):(e.startsWith(y)&&r.error("Failed to parse lines, starting in 0!"),c=0,f=0,i.isCombined=!1)),o={lines:[],oldStartLine:c,oldStartLine2:p,newStartLine:f,header:e}}function V(e){if(null!==i&&null!==o&&null!==c&&null!==f){var t={content:e},n=i.isCombined?["+ "," +","++"]:["+"],r=i.isCombined?["- "," -","--"]:["-"];l(e,n)?(i.addedLines++,t.type=a.LineType.INSERT,t.oldNumber=void 0,t.newNumber=f++):l(e,r)?(i.deletedLines++,t.type=a.LineType.DELETE,t.oldNumber=c++,t.newNumber=void 0):(t.type=a.LineType.CONTEXT,t.oldNumber=c++,t.newNumber=f++),o.lines.push(t)}}function K(e,t){var n=t;while(n<B.length-3){if(e.startsWith("diff"))return!1;if(B[n].startsWith(v)&&B[n+1].startsWith(b)&&B[n+2].startsWith(y))return!0;n++}return!1}return B.forEach((function(e,r){if(e&&!e.startsWith("*")){var a,l=B[r-1],c=B[r+1],p=B[r+2];if(e.startsWith("diff")){U();var f=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/;if((a=f.exec(e))&&(m=u(a[1],void 0,t.dstPrefix),g=u(a[2],void 0,t.srcPrefix)),null===i)throw new Error("Where is my file !!!");i.isGitDiff=!0}else if((!i||!i.isGitDiff&&i&&e.startsWith(v)&&c.startsWith(b)&&p.startsWith(y))&&U(),!(null===i||void 0===i?void 0:i.isTooBig))if(i&&("number"===typeof t.diffMaxChanges&&i.addedLines+i.deletedLines>t.diffMaxChanges||"number"===typeof t.diffMaxLineLength&&e.length>t.diffMaxLineLength)){i.isTooBig=!0,i.addedLines=0,i.deletedLines=0,i.blocks=[],o=null;var F="function"===typeof t.diffTooBigMessage?t.diffTooBigMessage(n.length):"Diff too big to be displayed";j(F)}else{if(e.startsWith(v)&&c.startsWith(b)||e.startsWith(b)&&l.startsWith(v)){if(i&&!i.oldName&&e.startsWith("--- ")&&(a=d(e,t.srcPrefix)))return i.oldName=a,void(i.language=s(i.oldName,i.language));if(i&&!i.newName&&e.startsWith("+++ ")&&(a=h(e,t.dstPrefix)))return i.newName=a,void(i.language=s(i.newName,i.language))}if(i&&(e.startsWith(y)||i.isGitDiff&&i.oldName&&i.newName&&!o))j(e);else if(o&&(e.startsWith("+")||e.startsWith("-")||e.startsWith(" ")))V(e);else{var $=!K(e,r);if(null===i)throw new Error("Where is my file !!!");(a=w.exec(e))?i.oldMode=a[1]:(a=E.exec(e))?i.newMode=a[1]:(a=_.exec(e))?(i.deletedFileMode=a[1],i.isDeleted=!0):(a=S.exec(e))?(i.newFileMode=a[1],i.isNew=!0):(a=k.exec(e))?($&&(i.oldName=a[1]),i.isCopy=!0):(a=x.exec(e))?($&&(i.newName=a[1]),i.isCopy=!0):(a=A.exec(e))?($&&(i.oldName=a[1]),i.isRename=!0):(a=N.exec(e))?($&&(i.newName=a[1]),i.isRename=!0):(a=O.exec(e))?(i.isBinary=!0,i.oldName=u(a[1],void 0,t.srcPrefix),i.newName=u(a[2],void 0,t.dstPrefix),j("Binary file")):I.test(e)?(i.isBinary=!0,j(e)):(a=C.exec(e))?i.unchangedPercentage=parseInt(a[1],10):(a=T.exec(e))?i.changedPercentage=parseInt(a[1],10):(a=R.exec(e))?(i.checksumBefore=a[1],i.checksumAfter=a[2],a[3]&&(i.mode=a[3])):(a=L.exec(e))?(i.checksumBefore=[a[2],a[3]],i.checksumAfter=a[1]):(a=D.exec(e))?(i.oldMode=[a[2],a[3]],i.newMode=a[1]):(a=P.exec(e))?(i.newFileMode=a[1],i.isNew=!0):(a=M.exec(e))&&(i.deletedFileMode=a[1],i.isDeleted=!0)}}}})),F(),$(),n}t.parse=p},53052:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTemplates=void 0;var o=a(n(62133));t.defaultTemplates={},t.defaultTemplates["file-summary-line"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<li class="d2h-file-list-line">'),r.b("\n"+n),r.b(' <span class="d2h-file-name-wrapper">'),r.b("\n"+n),r.b(r.rp("<fileIcon0",e,t," ")),r.b(' <a href="#'),r.b(r.v(r.f("fileHtmlId",e,t,0))),r.b('" class="d2h-file-name">'),r.b(r.v(r.f("fileName",e,t,0))),r.b("</a>"),r.b("\n"+n),r.b(' <span class="d2h-file-stats">'),r.b("\n"+n),r.b(' <span class="d2h-lines-added">'),r.b(r.v(r.f("addedLines",e,t,0))),r.b("</span>"),r.b("\n"+n),r.b(' <span class="d2h-lines-deleted">'),r.b(r.v(r.f("deletedLines",e,t,0))),r.b("</span>"),r.b("\n"+n),r.b(" </span>"),r.b("\n"+n),r.b(" </span>"),r.b("\n"+n),r.b("</li>"),r.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}}),t.defaultTemplates["file-summary-wrapper"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div class="d2h-file-list-wrapper">'),r.b("\n"+n),r.b(' <div class="d2h-file-list-header">'),r.b("\n"+n),r.b(' <span class="d2h-file-list-title">Files changed ('),r.b(r.v(r.f("filesNumber",e,t,0))),r.b(")</span>"),r.b("\n"+n),r.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),r.b("\n"+n),r.b(' <a class="d2h-file-switch d2h-show">show</a>'),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <ol class="d2h-file-list">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("files",e,t,0))),r.b("\n"+n),r.b(" </ol>"),r.b("\n"+n),r.b("</div>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-block-header"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b("<tr>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.f("lineClass",e,t,0))),r.b(" "),r.b(r.v(r.d("CSSLineClass.INFO",e,t,0))),r.b('"></td>'),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.d("CSSLineClass.INFO",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="'),r.b(r.v(r.f("contentClass",e,t,0))),r.b('">'),r.b(r.t(r.f("blockHeader",e,t,0))),r.b("</div>"),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b("</tr>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-empty-diff"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b("<tr>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.d("CSSLineClass.INFO",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="'),r.b(r.v(r.f("contentClass",e,t,0))),r.b('">'),r.b("\n"+n),r.b(" File without changes"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b("</tr>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-file-path"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-file-name-wrapper">'),r.b("\n"+n),r.b(r.rp("<fileIcon0",e,t," ")),r.b(' <span class="d2h-file-name">'),r.b(r.v(r.f("fileDiffName",e,t,0))),r.b("</span>"),r.b("\n"+n),r.b(r.rp("<fileTag1",e,t," ")),r.b("</span>"),r.b("\n"+n),r.b('<label class="d2h-file-collapse">'),r.b("\n"+n),r.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),r.b("\n"+n),r.b(" Viewed"),r.b("\n"+n),r.b("</label>"),r.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}}),t.defaultTemplates["generic-line"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b("<tr>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.f("lineClass",e,t,0))),r.b(" "),r.b(r.v(r.f("type",e,t,0))),r.b('">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("lineNumber",e,t,0))),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.f("type",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="'),r.b(r.v(r.f("contentClass",e,t,0))),r.b('">'),r.b("\n"+n),r.s(r.f("prefix",e,t,1),e,t,0,162,238,"{{ }}")&&(r.rs(e,t,(function(e,t,r){r.b(' <span class="d2h-code-line-prefix">'),r.b(r.t(r.f("prefix",e,t,0))),r.b("</span>"),r.b("\n"+n)})),e.pop()),r.s(r.f("prefix",e,t,1),e,t,1,0,0,"")||(r.b(' <span class="d2h-code-line-prefix">&nbsp;</span>'),r.b("\n"+n)),r.s(r.f("content",e,t,1),e,t,0,371,445,"{{ }}")&&(r.rs(e,t,(function(e,t,r){r.b(' <span class="d2h-code-line-ctn">'),r.b(r.t(r.f("content",e,t,0))),r.b("</span>"),r.b("\n"+n)})),e.pop()),r.s(r.f("content",e,t,1),e,t,1,0,0,"")||(r.b(' <span class="d2h-code-line-ctn"><br></span>'),r.b("\n"+n)),r.b(" </div>"),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b("</tr>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-wrapper"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div class="d2h-wrapper">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("content",e,t,0))),r.b("\n"+n),r.b("</div>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-added"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),r.b("\n"+n),r.b(' width="14">'),r.b("\n"+n),r.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-changed"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),r.b("\n"+n),r.b(' viewBox="0 0 14 16" width="14">'),r.b("\n"+n),r.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-deleted"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),r.b("\n"+n),r.b(' viewBox="0 0 14 16" width="14">'),r.b("\n"+n),r.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-renamed"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),r.b("\n"+n),r.b(' viewBox="0 0 14 16" width="14">'),r.b("\n"+n),r.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),r.b("\n"+n),r.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["line-by-line-file-diff"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div id="'),r.b(r.v(r.f("fileHtmlId",e,t,0))),r.b('" class="d2h-file-wrapper" data-lang="'),r.b(r.v(r.d("file.language",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="d2h-file-header">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("filePath",e,t,0))),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <div class="d2h-file-diff">'),r.b("\n"+n),r.b(' <div class="d2h-code-wrapper">'),r.b("\n"+n),r.b(' <table class="d2h-diff-table">'),r.b("\n"+n),r.b(' <tbody class="d2h-diff-tbody">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("diffs",e,t,0))),r.b("\n"+n),r.b(" </tbody>"),r.b("\n"+n),r.b(" </table>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b("</div>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["line-by-line-numbers"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div class="line-num1">'),r.b(r.v(r.f("oldNumber",e,t,0))),r.b("</div>"),r.b("\n"+n),r.b('<div class="line-num2">'),r.b(r.v(r.f("newNumber",e,t,0))),r.b("</div>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["side-by-side-file-diff"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div id="'),r.b(r.v(r.f("fileHtmlId",e,t,0))),r.b('" class="d2h-file-wrapper" data-lang="'),r.b(r.v(r.d("file.language",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="d2h-file-header">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("filePath",e,t,0))),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <div class="d2h-files-diff">'),r.b("\n"+n),r.b(' <div class="d2h-file-side-diff">'),r.b("\n"+n),r.b(' <div class="d2h-code-wrapper">'),r.b("\n"+n),r.b(' <table class="d2h-diff-table">'),r.b("\n"+n),r.b(' <tbody class="d2h-diff-tbody">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.d("diffs.left",e,t,0))),r.b("\n"+n),r.b(" </tbody>"),r.b("\n"+n),r.b(" </table>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <div class="d2h-file-side-diff">'),r.b("\n"+n),r.b(' <div class="d2h-code-wrapper">'),r.b("\n"+n),r.b(' <table class="d2h-diff-table">'),r.b("\n"+n),r.b(' <tbody class="d2h-diff-tbody">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.d("diffs.right",e,t,0))),r.b("\n"+n),r.b(" </tbody>"),r.b("\n"+n),r.b(" </table>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b("</div>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-added"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),r.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-changed"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),r.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-deleted"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),r.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-renamed"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),r.fl()},partials:{},subs:{}})},9402:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.html=t.parse=t.defaultDiff2HtmlConfig=void 0;var l=o(n(18841)),c=o(n(82417)),u=o(n(14023)),d=o(n(39959)),h=n(51305),p=s(n(29706));function f(e,n){return void 0===n&&(n={}),l.parse(e,r(r({},t.defaultDiff2HtmlConfig),n))}function m(e,n){void 0===n&&(n={});var i=r(r({},t.defaultDiff2HtmlConfig),n),a="string"===typeof e?l.parse(e,i):e,o=new p.default(i),s=i.drawFileList?c.render(a,o):"",h="side-by-side"===i.outputFormat?new d.default(o,i).render(a):new u.default(o,i).render(a);return s+h}t.defaultDiff2HtmlConfig=r(r(r({},u.defaultLineByLineRendererConfig),d.defaultSideBySideRendererConfig),{outputFormat:h.OutputFormatType.LINE_BY_LINE,drawFileList:!0}),t.parse=f,t.html=m},82417:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.render=void 0;var o=a(n(94762)),s="file-summary",l="icon";function c(e,t){var n=e.map((function(e){return t.render(s,"line",{fileHtmlId:o.getHtmlId(e),oldName:e.oldName,newName:e.newName,fileName:o.filenameDiff(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:t.template(l,o.getFileIcon(e))})})).join("\n");return t.render(s,"wrapper",{filesNumber:e.length,files:n})}t.render=c},29706:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var s=o(n(62133)),l=n(53052),c=function(){function e(e){var t=e.compiledTemplates,n=void 0===t?{}:t,i=e.rawTemplates,a=void 0===i?{}:i,o=Object.entries(a).reduce((function(e,t){var n,i=t[0],a=t[1],o=s.compile(a,{asString:!1});return r(r({},e),(n={},n[i]=o,n))}),{});this.preCompiledTemplates=r(r(r({},l.defaultTemplates),n),o)}return e.compile=function(e){return s.compile(e,{asString:!1})},e.prototype.render=function(e,t,n,r,i){var a=this.templateKey(e,t);try{var o=this.preCompiledTemplates[a];return o.render(n,r,i)}catch(s){throw new Error("Could not find template to render '".concat(a,"'"))}},e.prototype.template=function(e,t){return this.preCompiledTemplates[this.templateKey(e,t)]},e.prototype.templateKey=function(e,t){return"".concat(e,"-").concat(t)},e}();t["default"]=c},14023:function(e,t,n){"use strict";var r=n(4364),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultLineByLineRendererConfig=void 0;var l=s(n(54166)),c=s(n(94762)),u=n(51305);t.defaultLineByLineRendererConfig=i(i({},c.defaultRenderConfig),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200});var d="generic",h="line-by-line",p="icon",f="tag",m=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=i(i({},t.defaultLineByLineRendererConfig),n)}return e.prototype.render=function(e){var t=this,n=e.map((function(e){var n;return n=e.blocks.length?t.generateFileHtml(e):t.generateEmptyDiff(),t.makeFileDiffHtml(e,n)})).join("\n");return this.hoganUtils.render(d,"wrapper",{content:n})},e.prototype.makeFileDiffHtml=function(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var n=this.hoganUtils.template(h,"file-diff"),r=this.hoganUtils.template(d,"file-path"),i=this.hoganUtils.template(p,"file"),a=this.hoganUtils.template(f,c.getFileIcon(e));return n.render({file:e,fileHtmlId:c.getHtmlId(e),diffs:t,filePath:r.render({fileDiffName:c.filenameDiff(e)},{fileIcon:i,fileTag:a})})},e.prototype.generateEmptyDiff=function(){return this.hoganUtils.render(d,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:c.CSSLineClass})},e.prototype.generateFileHtml=function(e){var t=this,n=l.newMatcherFn(l.newDistanceFn((function(t){return c.deconstructLine(t.content,e.isCombined).content})));return e.blocks.map((function(i){var a=t.hoganUtils.render(d,"block-header",{CSSLineClass:c.CSSLineClass,blockHeader:e.isTooBig?i.header:c.escapeForHtml(i.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return t.applyLineGroupping(i).forEach((function(i){var o=i[0],s=i[1],l=i[2];if(s.length&&l.length&&!o.length)t.applyRematchMatching(s,l,n).map((function(n){var r=n[0],i=n[1],o=t.processChangedLines(e.isCombined,r,i),s=o.left,l=o.right;a+=s,a+=l}));else if(o.length)o.forEach((function(n){var r=c.deconstructLine(n.content,e.isCombined),i=r.prefix,o=r.content;a+=t.generateSingleLineHtml({type:c.CSSLineClass.CONTEXT,prefix:i,content:o,oldNumber:n.oldNumber,newNumber:n.newNumber})}));else if(s.length||l.length){var u=t.processChangedLines(e.isCombined,s,l),d=u.left,h=u.right;a+=d,a+=h}else r.error("Unknown state reached while processing groups of lines",o,s,l)})),a})).join("\n")},e.prototype.applyLineGroupping=function(e){for(var t=[],n=[],r=[],i=0;i<e.lines.length;i++){var a=e.lines[i];(a.type!==u.LineType.INSERT&&r.length||a.type===u.LineType.CONTEXT&&n.length>0)&&(t.push([[],n,r]),n=[],r=[]),a.type===u.LineType.CONTEXT?t.push([[a],[],[]]):a.type===u.LineType.INSERT&&0===n.length?t.push([[],[],[a]]):a.type===u.LineType.INSERT&&n.length>0?r.push(a):a.type===u.LineType.DELETE&&n.push(a)}return(n.length||r.length)&&(t.push([[],n,r]),n=[],r=[]),t},e.prototype.applyRematchMatching=function(e,t,n){var r=e.length*t.length,i=Math.max.apply(null,[0].concat(e.concat(t).map((function(e){return e.content.length})))),a=r<this.config.matchingMaxComparisons&&i<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching);return a?n(e,t):[[e,t]]},e.prototype.processChangedLines=function(e,t,n){for(var r={right:"",left:""},a=Math.max(t.length,n.length),o=0;o<a;o++){var s=t[o],l=n[o],u=void 0!==s&&void 0!==l?c.diffHighlight(s.content,l.content,e,this.config):void 0,d=void 0!==s&&void 0!==s.oldNumber?i(i({},void 0!==u?{prefix:u.oldLine.prefix,content:u.oldLine.content,type:c.CSSLineClass.DELETE_CHANGES}:i(i({},c.deconstructLine(s.content,e)),{type:c.toCSSClass(s.type)})),{oldNumber:s.oldNumber,newNumber:s.newNumber}):void 0,h=void 0!==l&&void 0!==l.newNumber?i(i({},void 0!==u?{prefix:u.newLine.prefix,content:u.newLine.content,type:c.CSSLineClass.INSERT_CHANGES}:i(i({},c.deconstructLine(l.content,e)),{type:c.toCSSClass(l.type)})),{oldNumber:l.oldNumber,newNumber:l.newNumber}):void 0,p=this.generateLineHtml(d,h),f=p.left,m=p.right;r.left+=f,r.right+=m}return r},e.prototype.generateLineHtml=function(e,t){return{left:this.generateSingleLineHtml(e),right:this.generateSingleLineHtml(t)}},e.prototype.generateSingleLineHtml=function(e){if(void 0===e)return"";var t=this.hoganUtils.render(h,"numbers",{oldNumber:e.oldNumber||"",newNumber:e.newNumber||""});return this.hoganUtils.render(d,"line",{type:e.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:" "===e.prefix?"&nbsp;":e.prefix,content:e.content,lineNumber:t})},e}();t["default"]=m},54166:function(e,t){"use strict";function n(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;var n,r,i=[];for(n=0;n<=t.length;n++)i[n]=[n];for(r=0;r<=e.length;r++)i[0][r]=r;for(n=1;n<=t.length;n++)for(r=1;r<=e.length;r++)t.charAt(n-1)===e.charAt(r-1)?i[n][r]=i[n-1][r-1]:i[n][r]=Math.min(i[n-1][r-1]+1,Math.min(i[n][r-1]+1,i[n-1][r]+1));return i[t.length][e.length]}function r(e){return function(t,r){var i=e(t).trim(),a=e(r).trim(),o=n(i,a);return o/(i.length+a.length)}}function i(e){function t(t,n,r){void 0===r&&(r=new Map);for(var i,a=1/0,o=0;o<t.length;++o)for(var s=0;s<n.length;++s){var l=JSON.stringify([t[o],n[s]]),c=void 0;r.has(l)&&(c=r.get(l))||(c=e(t[o],n[s]),r.set(l,c)),c<a&&(a=c,i={indexA:o,indexB:s,score:a})}return i}function n(e,r,i,a){void 0===i&&(i=0),void 0===a&&(a=new Map);var o=t(e,r,a);if(!o||e.length+r.length<3)return[[e,r]];var s=e.slice(0,o.indexA),l=r.slice(0,o.indexB),c=[e[o.indexA]],u=[r[o.indexB]],d=o.indexA+1,h=o.indexB+1,p=e.slice(d),f=r.slice(h),m=n(s,l,i+1,a),g=n(c,u,i+1,a),v=n(p,f,i+1,a),b=g;return(o.indexA>0||o.indexB>0)&&(b=m.concat(b)),(e.length>d||r.length>h)&&(b=b.concat(v)),b}return n}Object.defineProperty(t,"__esModule",{value:!0}),t.newMatcherFn=t.newDistanceFn=t.levenshtein=void 0,t.levenshtein=n,t.newDistanceFn=r,t.newMatcherFn=i},94762:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.diffHighlight=t.getFileIcon=t.getHtmlId=t.filenameDiff=t.deconstructLine=t.escapeForHtml=t.toCSSClass=t.defaultRenderConfig=t.CSSLineClass=void 0;var s=o(n(48063)),l=n(44869),c=o(n(54166)),u=n(51305);t.CSSLineClass={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},t.defaultRenderConfig={matching:u.LineMatchingType.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:u.DiffStyleType.WORD};var d="/",h=c.newDistanceFn((function(e){return e.value})),p=c.newMatcherFn(h);function f(e){return-1!==e.indexOf("dev/null")}function m(e){return e.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function g(e){return e.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function v(e){switch(e){case u.LineType.CONTEXT:return t.CSSLineClass.CONTEXT;case u.LineType.INSERT:return t.CSSLineClass.INSERTS;case u.LineType.DELETE:return t.CSSLineClass.DELETES}}function b(e){return e?2:1}function y(e){return e.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function w(e,t,n){void 0===n&&(n=!0);var r=b(t);return{prefix:e.substring(0,r),content:n?y(e.substring(r)):e.substring(r)}}function E(e){var t=(0,l.unifyPath)(e.oldName),n=(0,l.unifyPath)(e.newName);if(t===n||f(t)||f(n))return f(n)?t:n;var r=[],i=[],a=t.split(d),o=n.split(d),s=a.length,c=o.length,u=0,h=s-1,p=c-1;while(u<h&&u<p){if(a[u]!==o[u])break;r.push(o[u]),u+=1}while(h>u&&p>u){if(a[h]!==o[p])break;i.unshift(o[p]),h-=1,p-=1}var m=r.join(d),g=i.join(d),v=a.slice(u,h+1).join(d),b=o.slice(u,p+1).join(d);return m.length&&g.length?m+d+"{"+v+" → "+b+"}"+d+g:m.length?m+d+"{"+v+" → "+b+"}":g.length?"{"+v+" → "+b+"}"+d+g:t+" → "+n}function _(e){return"d2h-".concat((0,l.hashCode)(E(e)).toString().slice(-6))}function S(e){var t="file-changed";return e.isRename||e.isCopy?t="file-renamed":e.isNew?t="file-added":e.isDeleted?t="file-deleted":e.newName!==e.oldName&&(t="file-renamed"),t}function k(e,n,i,a){void 0===a&&(a={});var o=r(r({},t.defaultRenderConfig),a),l=o.matching,c=o.maxLineLengthHighlight,u=o.matchWordsThreshold,d=o.diffStyle,f=w(e,i,!1),v=w(n,i,!1);if(f.content.length>c||v.content.length>c)return{oldLine:{prefix:f.prefix,content:y(f.content)},newLine:{prefix:v.prefix,content:y(v.content)}};var b="char"===d?s.diffChars(f.content,v.content):s.diffWordsWithSpace(f.content,v.content),E=[];if("word"===d&&"words"===l){var _=b.filter((function(e){return e.removed})),S=b.filter((function(e){return e.added})),k=p(S,_);k.forEach((function(e){if(1===e[0].length&&1===e[1].length){var t=h(e[0][0],e[1][0]);t<u&&(E.push(e[0][0]),E.push(e[1][0]))}}))}var x=b.reduce((function(e,t){var n=t.added?"ins":t.removed?"del":null,r=E.indexOf(t)>-1?' class="d2h-change"':"",i=y(t.value);return null!==n?"".concat(e,"<").concat(n).concat(r,">").concat(i,"</").concat(n,">"):"".concat(e).concat(i)}),"");return{oldLine:{prefix:f.prefix,content:m(x)},newLine:{prefix:v.prefix,content:g(x)}}}t.toCSSClass=v,t.escapeForHtml=y,t.deconstructLine=w,t.filenameDiff=E,t.getHtmlId=_,t.getFileIcon=S,t.diffHighlight=k},39959:function(e,t,n){"use strict";var r=n(4364),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultSideBySideRendererConfig=void 0;var l=s(n(54166)),c=s(n(94762)),u=n(51305);t.defaultSideBySideRendererConfig=i(i({},c.defaultRenderConfig),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200});var d="generic",h="side-by-side",p="icon",f="tag",m=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=i(i({},t.defaultSideBySideRendererConfig),n)}return e.prototype.render=function(e){var t=this,n=e.map((function(e){var n;return n=e.blocks.length?t.generateFileHtml(e):t.generateEmptyDiff(),t.makeFileDiffHtml(e,n)})).join("\n");return this.hoganUtils.render(d,"wrapper",{content:n})},e.prototype.makeFileDiffHtml=function(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var n=this.hoganUtils.template(h,"file-diff"),r=this.hoganUtils.template(d,"file-path"),i=this.hoganUtils.template(p,"file"),a=this.hoganUtils.template(f,c.getFileIcon(e));return n.render({file:e,fileHtmlId:c.getHtmlId(e),diffs:t,filePath:r.render({fileDiffName:c.filenameDiff(e)},{fileIcon:i,fileTag:a})})},e.prototype.generateEmptyDiff=function(){return{right:"",left:this.hoganUtils.render(d,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:c.CSSLineClass})}},e.prototype.generateFileHtml=function(e){var t=this,n=l.newMatcherFn(l.newDistanceFn((function(t){return c.deconstructLine(t.content,e.isCombined).content})));return e.blocks.map((function(i){var a={left:t.makeHeaderHtml(i.header,e),right:t.makeHeaderHtml("")};return t.applyLineGroupping(i).forEach((function(i){var o=i[0],s=i[1],l=i[2];if(s.length&&l.length&&!o.length)t.applyRematchMatching(s,l,n).map((function(n){var r=n[0],i=n[1],o=t.processChangedLines(e.isCombined,r,i),s=o.left,l=o.right;a.left+=s,a.right+=l}));else if(o.length)o.forEach((function(n){var r=c.deconstructLine(n.content,e.isCombined),i=r.prefix,o=r.content,s=t.generateLineHtml({type:c.CSSLineClass.CONTEXT,prefix:i,content:o,number:n.oldNumber},{type:c.CSSLineClass.CONTEXT,prefix:i,content:o,number:n.newNumber}),l=s.left,u=s.right;a.left+=l,a.right+=u}));else if(s.length||l.length){var u=t.processChangedLines(e.isCombined,s,l),d=u.left,h=u.right;a.left+=d,a.right+=h}else r.error("Unknown state reached while processing groups of lines",o,s,l)})),a})).reduce((function(e,t){return{left:e.left+t.left,right:e.right+t.right}}),{left:"",right:""})},e.prototype.applyLineGroupping=function(e){for(var t=[],n=[],r=[],i=0;i<e.lines.length;i++){var a=e.lines[i];(a.type!==u.LineType.INSERT&&r.length||a.type===u.LineType.CONTEXT&&n.length>0)&&(t.push([[],n,r]),n=[],r=[]),a.type===u.LineType.CONTEXT?t.push([[a],[],[]]):a.type===u.LineType.INSERT&&0===n.length?t.push([[],[],[a]]):a.type===u.LineType.INSERT&&n.length>0?r.push(a):a.type===u.LineType.DELETE&&n.push(a)}return(n.length||r.length)&&(t.push([[],n,r]),n=[],r=[]),t},e.prototype.applyRematchMatching=function(e,t,n){var r=e.length*t.length,i=Math.max.apply(null,[0].concat(e.concat(t).map((function(e){return e.content.length})))),a=r<this.config.matchingMaxComparisons&&i<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching);return a?n(e,t):[[e,t]]},e.prototype.makeHeaderHtml=function(e,t){return this.hoganUtils.render(d,"block-header",{CSSLineClass:c.CSSLineClass,blockHeader:(null===t||void 0===t?void 0:t.isTooBig)?e:c.escapeForHtml(e),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})},e.prototype.processChangedLines=function(e,t,n){for(var r={right:"",left:""},a=Math.max(t.length,n.length),o=0;o<a;o++){var s=t[o],l=n[o],u=void 0!==s&&void 0!==l?c.diffHighlight(s.content,l.content,e,this.config):void 0,d=void 0!==s&&void 0!==s.oldNumber?i(i({},void 0!==u?{prefix:u.oldLine.prefix,content:u.oldLine.content,type:c.CSSLineClass.DELETE_CHANGES}:i(i({},c.deconstructLine(s.content,e)),{type:c.toCSSClass(s.type)})),{number:s.oldNumber}):void 0,h=void 0!==l&&void 0!==l.newNumber?i(i({},void 0!==u?{prefix:u.newLine.prefix,content:u.newLine.content,type:c.CSSLineClass.INSERT_CHANGES}:i(i({},c.deconstructLine(l.content,e)),{type:c.toCSSClass(l.type)})),{number:l.newNumber}):void 0,p=this.generateLineHtml(d,h),f=p.left,m=p.right;r.left+=f,r.right+=m}return r},e.prototype.generateLineHtml=function(e,t){return{left:this.generateSingleHtml(e),right:this.generateSingleHtml(t)}},e.prototype.generateSingleHtml=function(e){var t="d2h-code-side-linenumber",n="d2h-code-side-line";return this.hoganUtils.render(d,"line",{type:(null===e||void 0===e?void 0:e.type)||"".concat(c.CSSLineClass.CONTEXT," d2h-emptyplaceholder"),lineClass:void 0!==e?t:"".concat(t," d2h-code-side-emptyplaceholder"),contentClass:void 0!==e?n:"".concat(n," d2h-code-side-emptyplaceholder"),prefix:" "===(null===e||void 0===e?void 0:e.prefix)?"&nbsp;":null===e||void 0===e?void 0:e.prefix,content:null===e||void 0===e?void 0:e.content,lineNumber:null===e||void 0===e?void 0:e.number})},e}();t["default"]=m},51305:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiffStyleType=t.LineMatchingType=t.OutputFormatType=t.LineType=void 0,function(e){e["INSERT"]="insert",e["DELETE"]="delete",e["CONTEXT"]="context"}(t.LineType||(t.LineType={})),t.OutputFormatType={LINE_BY_LINE:"line-by-line",SIDE_BY_SIDE:"side-by-side"},t.LineMatchingType={LINES:"lines",WORDS:"words",NONE:"none"},t.DiffStyleType={WORD:"word",CHAR:"char"}},33908:function(e,t,n){"use strict";var r=n(4364),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Diff2HtmlUI=t.defaultDiff2HtmlUIConfig=void 0;var a=n(53126),o=n(9402);t.defaultDiff2HtmlUIConfig=i(i({},o.defaultDiff2HtmlConfig),{synchronisedScroll:!0,highlight:!0,fileListToggle:!0,fileListStartVisible:!1,highlightLanguages:new Map,smartSelection:!0,fileContentToggle:!0,stickyFileHeaders:!0});var s=function(){function e(e,n,r,a){void 0===r&&(r={}),this.hljs=null,this.currentSelectionColumnId=-1,this.config=i(i({},t.defaultDiff2HtmlUIConfig),r),this.diffHtml=void 0!==n?(0,o.html)(n,this.config):e.innerHTML,this.targetElement=e,void 0!==a&&(this.hljs=a)}return e.prototype.draw=function(){this.targetElement.innerHTML=this.diffHtml,this.config.synchronisedScroll&&this.synchronisedScroll(),this.config.highlight&&this.highlightCode(),this.config.fileListToggle&&this.fileListToggle(this.config.fileListStartVisible),this.config.fileContentToggle&&this.fileContentToggle(),this.config.stickyFileHeaders&&this.stickyFileHeaders()},e.prototype.synchronisedScroll=function(){this.targetElement.querySelectorAll(".d2h-file-wrapper").forEach((function(e){var t=Array().slice.call(e.querySelectorAll(".d2h-file-side-diff")),n=t[0],r=t[1];if(void 0!==n&&void 0!==r){var i=function(e){null!==e&&null!==e.target&&(e.target===n?(r.scrollTop=n.scrollTop,r.scrollLeft=n.scrollLeft):(n.scrollTop=r.scrollTop,n.scrollLeft=r.scrollLeft))};n.addEventListener("scroll",i),r.addEventListener("scroll",i)}}))},e.prototype.fileListToggle=function(e){var t=this.targetElement.querySelector(".d2h-show"),n=this.targetElement.querySelector(".d2h-hide"),r=this.targetElement.querySelector(".d2h-file-list");if(null!==t&&null!==n&&null!==r){var i=function(){t.style.display="none",n.style.display="inline",r.style.display="block"},a=function(){t.style.display="inline",n.style.display="none",r.style.display="none"};t.addEventListener("click",(function(){return i()})),n.addEventListener("click",(function(){return a()}));var o=this.getHashTag();"files-summary-show"===o?i():"files-summary-hide"===o?a():e?i():a()}},e.prototype.fileContentToggle=function(){this.targetElement.querySelectorAll(".d2h-file-collapse").forEach((function(e){e.style.display="flex";var t=function(t){var n,r=null===(n=e.closest(".d2h-file-wrapper"))||void 0===n?void 0:n.querySelector(t);null!==r&&void 0!==r&&(e.classList.toggle("d2h-selected"),r.classList.toggle("d2h-d-none"))},n=function(n){e!==n.target&&(t(".d2h-file-diff"),t(".d2h-files-diff"))};e.addEventListener("click",(function(e){return n(e)}))}))},e.prototype.highlightCode=function(){var e=this,t=this.hljs;if(null===t)throw new Error("Missing a `highlight.js` implementation. Please provide one when instantiating Diff2HtmlUI.");var n=this.targetElement.querySelectorAll(".d2h-file-wrapper");n.forEach((function(n){var r=n.getAttribute("data-lang");e.config.highlightLanguages instanceof Map||(e.config.highlightLanguages=new Map(Object.entries(e.config.highlightLanguages)));var i=r&&e.config.highlightLanguages.has(r)?e.config.highlightLanguages.get(r):r?(0,a.getLanguage)(r):"plaintext",o=n.querySelectorAll(".d2h-code-line-ctn");o.forEach((function(n){var r=n.textContent,o=n.parentNode;if(null!==r&&null!==o&&e.isElement(o)){var s=(0,a.closeTags)(t.highlight(r,{language:i,ignoreIllegals:!0})),l=(0,a.nodeStream)(n);if(l.length){var c=document.createElementNS("http://www.w3.org/1999/xhtml","div");c.innerHTML=s.value,s.value=(0,a.mergeStreams)(l,(0,a.nodeStream)(c),r)}n.classList.add("hljs"),s.language&&n.classList.add(s.language),n.innerHTML=s.value}}))}))},e.prototype.stickyFileHeaders=function(){this.targetElement.querySelectorAll(".d2h-file-header").forEach((function(e){e.classList.add("d2h-sticky-header")}))},e.prototype.smartSelection=function(){r.warn("Smart selection is now enabled by default with CSS. No need to call this method anymore.")},e.prototype.getHashTag=function(){var e=document.URL,t=e.indexOf("#"),n=null;return-1!==t&&(n=e.substr(t+1)),n},e.prototype.isElement=function(e){return null!==e&&void 0!==(null===e||void 0===e?void 0:e.classList)},e}();t.Diff2HtmlUI=s},34312:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDiff2HtmlUIConfig=t.Diff2HtmlUI=void 0;var i=n(42418),a=n(33908);Object.defineProperty(t,"defaultDiff2HtmlUIConfig",{enumerable:!0,get:function(){return a.defaultDiff2HtmlUIConfig}});var o=function(e){function t(t,n,r){return void 0===r&&(r={}),e.call(this,t,n,r,i.hljs)||this}return r(t,e),t}(a.Diff2HtmlUI);t.Diff2HtmlUI=o},53126:function(e,t){"use strict";function n(e){return e.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function r(e){return e.nodeName.toLowerCase()}function i(e){var t=[],n=function(e,i){for(var a=e.firstChild;a;a=a.nextSibling)3===a.nodeType&&null!==a.nodeValue?i+=a.nodeValue.length:1===a.nodeType&&(t.push({event:"start",offset:i,node:a}),i=n(a,i),r(a).match(/br|hr|img|input/)||t.push({event:"stop",offset:i,node:a}));return i};return n(e,0),t}function a(e,t,i){var a=0,o="",s=[];function l(e){return null!==e&&void 0!==(null===e||void 0===e?void 0:e.attributes)}function c(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function u(e){if(!l(e))throw new Error("Node is not an Element");o+="<".concat(r(e)," ").concat(Array().map.call(e.attributes,(function(e){return"".concat(e.nodeName,'="').concat(n(e.value).replace(/"/g,"&quot;"),'"')})).join(" "),">")}function d(e){o+="</"+r(e)+">"}function h(e){("start"===e.event?u:d)(e.node)}while(e.length||t.length){var p=c();if(o+=n(i.substring(a,p[0].offset)),a=p[0].offset,p===e){s.reverse().forEach(d);do{h(p.splice(0,1)[0]),p=c()}while(p===e&&p.length&&p[0].offset===a);s.reverse().forEach(u)}else"start"===p[0].event?s.push(p[0].node):s.pop(),h(p.splice(0,1)[0])}return o+n(i.substr(a))}function o(e){var t=new Array;return e.value=e.value.split("\n").map((function(e){var n=t.map((function(e){return'<span class="'.concat(e,'">')})).join(""),r=e.matchAll(/(<span class="(.*?)">|<\/span>)/g);Array.from(r).forEach((function(e){"</span>"===e[0]?t.shift():t.unshift(e[2])}));var i="</span>".repeat(t.length);return n+e+i})).join("\n"),e}Object.defineProperty(t,"__esModule",{value:!0}),t.getLanguage=t.closeTags=t.mergeStreams=t.nodeStream=void 0,t.nodeStream=i,t.mergeStreams=a,t.closeTags=o;var s={"1c":"1c",abnf:"abnf",accesslog:"accesslog",as:"actionscript",adb:"ada",ada:"ada",ads:"ada",angelscript:"angelscript",apache:"apache",applescript:"applescript",scpt:"applescript",arcade:"arcade",cpp:"cpp",hpp:"cpp",arduino:"arduino",ino:"arduino",armasm:"armasm",arm:"armasm",xml:"xml",html:"xml",xhtml:"xml",rss:"xml",atom:"xml",xjb:"xml",xsd:"xml",xsl:"xml",plist:"xml",svg:"xml",asciidoc:"asciidoc",adoc:"asciidoc",asc:"asciidoc",aspectj:"aspectj",ahk:"autohotkey",ahkl:"autohotkey",au3:"autoit",avrasm:"avrasm",awk:"awk",axapta:"axapta","x++":"axapta",bash:"bash",sh:"bash",zsh:"bash",b:"basic",bnf:"bnf",bf:"brainfuck",c:"c",h:"c",cats:"c",idc:"c",cal:"cal",capnproto:"capnproto",capnp:"capnproto",ceylon:"ceylon",clean:"clean",clj:"clojure",boot:"clojure",cl2:"clojure",cljc:"clojure",cljs:"clojure","cljs.hl":"clojure",cljscm:"clojure",cljx:"clojure",hic:"clojure","clojure-repl":"clojure-repl",cmake:"cmake","cmake.in":"cmake",coffee:"coffeescript",_coffee:"coffeescript",cake:"coffeescript",cjsx:"coffeescript",iced:"coffeescript",cson:"coffeescript",coq:"coq",cos:"cos",cls:"cos",crmsh:"crmsh",crm:"crmsh",pcmk:"crmsh",cr:"crystal",cs:"csharp",csx:"csharp",csp:"csp",css:"css",d:"d",di:"d",md:"markdown",markdown:"markdown",mdown:"markdown",mdwn:"markdown",mkd:"markdown",mkdn:"markdown",mkdown:"markdown",ronn:"markdown",workbook:"markdown",dart:"dart",dpr:"delphi",dfm:"delphi",pas:"delphi",pascal:"delphi",diff:"diff",patch:"diff",django:"django",jinja:"django",dns:"dns",zone:"dns",bind:"dns",dockerfile:"dockerfile",docker:"dockerfile",dos:"dos",bat:"dos",cmd:"dos",dsconfig:"dsconfig",dts:"dts",dust:"dust",dst:"dust",ebnf:"ebnf",ex:"elixir",exs:"elixir",elm:"elm",rb:"ruby",builder:"ruby",eye:"ruby",gemspec:"ruby",god:"ruby",jbuilder:"ruby",mspec:"ruby",pluginspec:"ruby",podspec:"ruby",rabl:"ruby",rake:"ruby",rbuild:"ruby",rbw:"ruby",rbx:"ruby",ru:"ruby",ruby:"ruby",spec:"ruby",thor:"ruby",watchr:"ruby",erb:"erb","erlang-repl":"erlang-repl",erl:"erlang","app.src":"erlang",escript:"erlang",hrl:"erlang",xrl:"erlang",yrl:"erlang",excel:"excel",xls:"excel",xlsx:"excel",fix:"fix",flix:"flix",f90:"fortran",f:"fortran",f03:"fortran",f08:"fortran",f77:"fortran",f95:"fortran",for:"fortran",fpp:"fortran",fs:"fsharp",fsx:"fsharp",gams:"gams",gms:"gams",gauss:"gauss",gss:"gauss",gcode:"gcode",nc:"gcode",gherkin:"gherkin",glsl:"glsl",fp:"glsl",frag:"glsl",frg:"glsl",fsh:"glsl",fshader:"glsl",geo:"glsl",geom:"glsl",glslv:"glsl",gshader:"glsl",shader:"glsl",tesc:"glsl",tese:"glsl",vert:"glsl",vrx:"glsl",vsh:"glsl",vshader:"glsl",gml:"gml",go:"go",bal:"go",golo:"golo",gololang:"golo",gradle:"gradle",groovy:"groovy",grt:"groovy",gtpl:"groovy",gvy:"groovy",haml:"haml","haml.deface":"haml",handlebars:"handlebars",hbs:"handlebars","html.hbs":"handlebars","html.handlebars":"handlebars",hs:"haskell",hsc:"haskell",idr:"haskell",purs:"haskell",hx:"haxe",hxsl:"haxe",hsp:"hsp",htmlbars:"htmlbars",http:"http",https:"http",hy:"hy",inform7:"inform7",i7:"inform7",ini:"ini",toml:"ini",cfg:"ini",prefs:"ini",irpf90:"irpf90",isbl:"isbl",java:"java",jsp:"java",js:"javascript",jsx:"javascript",_js:"javascript",bones:"javascript",es:"javascript",es6:"javascript",gs:"javascript",jake:"javascript",jsb:"javascript",jscad:"javascript",jsfl:"javascript",jsm:"javascript",jss:"javascript",mjs:"javascript",njs:"javascript",pac:"javascript",sjs:"javascript",ssjs:"javascript",xsjs:"javascript",xsjslib:"javascript",cfc:"javascript","jboss-cli":"jboss-cli",json:"json",avsc:"json",geojson:"json",gltf:"json","JSON-tmLanguage":"json",jsonl:"json",tfstate:"json","tfstate.backup":"json",topojson:"json",webapp:"json",webmanifest:"json",jl:"julia","julia-repl":"julia-repl",kt:"kotlin",ktm:"kotlin",kts:"kotlin",lasso:"lasso",lassoscript:"lasso",tex:"latex",ldif:"ldif",leaf:"leaf",less:"less",lisp:"lisp",factor:"lisp",livecodeserver:"livecodeserver",ls:"livescript",_ls:"livescript",llvm:"llvm",lsl:"lsl",lua:"lua",nse:"lua",p8:"lua",pd_lua:"lua",rbxs:"lua",wlua:"lua",mak:"makefile",make:"makefile",mk:"makefile",mkfile:"makefile",mathematica:"mathematica",mma:"mathematica",wl:"mathematica",matlab:"matlab",maxima:"maxima",mel:"mel",mercury:"mercury",mipsasm:"mipsasm",miz:"mizar",voc:"mizar",al:"perl",cgi:"perl",fcgi:"perl",perl:"perl",ph:"perl",plx:"perl",pl:"perl",pm:"perl",psgi:"perl",t:"perl",mojolicious:"mojolicious",monkey:"monkey",monkey2:"monkey",moonscript:"moonscript",moon:"moonscript",n1ql:"n1ql",nginxconf:"nginx",nim:"nim",nimrod:"nim",nix:"nix",nsi:"nsis",nsh:"nsis",m:"objectivec",objc:"objectivec",mm:"objectivec","obj-c":"objectivec","obj-c++":"objectivec","objective-c++":"objectivec",fun:"ocaml",sig:"ocaml",ml:"ocaml",mli:"ocaml",eliom:"ocaml",eliomi:"ocaml",ml4:"ocaml",mll:"ocaml",mly:"ocaml",openscad:"openscad",oxygene:"oxygene",parser3:"parser3",pf:"pf","pf.conf":"pf",pgsql:"pgsql",postgres:"pgsql",postgresql:"pgsql",php:"php",aw:"php",ctp:"php",inc:"php",php3:"php",php4:"php",php5:"php",phps:"php",phpt:"php","php-template":"php-template",plaintext:"plaintext",txt:"plaintext",text:"plaintext",pony:"pony",ps:"powershell",ps1:"powershell",psd1:"powershell",psm1:"powershell",pde:"processing",profile:"profile",pro:"prolog",prolog:"prolog",yap:"prolog",properties:"properties",proto:"protobuf",puppet:"puppet",pp:"puppet",purebasic:"purebasic",py:"python",bzl:"python",gyp:"python",gypi:"python",lmi:"python",py3:"python",pyde:"python",pyi:"python",pyp:"python",pyt:"python",pyw:"python",rpy:"python",tac:"python",wsgi:"python",xpy:"python","python-repl":"python-repl",pycon:"python-repl",q:"q",k:"q",kdb:"q",qml:"qml",r:"r",rd:"r",rsx:"r",reasonml:"reasonml",re:"reasonml",rib:"rib",roboconf:"roboconf",graph:"roboconf",instances:"roboconf",routeros:"routeros",rsl:"rsl",ruleslanguage:"ruleslanguage",rs:"rust","rs.in":"rust",sas:"sas",scala:"scala",kojo:"scala",sbt:"scala",sc:"scala",scm:"scheme",sch:"scheme",sld:"scheme",sls:"scheme",sps:"scheme",ss:"scheme",rkt:"scheme",scilab:"scilab",scss:"scss",shell:"shell",smali:"smali",st:"smalltalk",sml:"sml",sqf:"sqf",sql:"sql",cql:"sql",ddl:"sql",mysql:"sql",prc:"sql",tab:"sql",udf:"sql",viw:"sql",stan:"stan",stanfuncs:"stan",stata:"stata",step21:"step21",step:"step21",stp:"step21",styl:"stylus",subunit:"subunit",swift:"swift",taggerscript:"taggerscript",yml:"yaml",mir:"yaml",reek:"yaml",rviz:"yaml","sublime-syntax":"yaml",syntax:"yaml",yaml:"yaml","yaml-tmlanguage":"yaml","yml.mysql":"yaml",tap:"tap",tcl:"tcl",adp:"tcl",tm:"tcl",thrift:"thrift",tp:"tp",twig:"twig",craftcms:"twig",ts:"typescript",tsx:"typescript",vala:"vala",vbnet:"vbnet",vb:"vbnet",vbscript:"vbscript",vbs:"vbscript","vbscript-html":"vbscript-html",v:"verilog",veo:"verilog",vhdl:"vhdl",vhd:"vhdl",vhf:"vhdl",vhi:"vhdl",vho:"vhdl",vhs:"vhdl",vht:"vhdl",vhw:"vhdl",vim:"vim",x86asm:"x86asm",xl:"xl",xquery:"xquery",xpath:"xquery",xq:"xquery",zephir:"zephir",zep:"zephir"};function l(e){var t;return null!==(t=s[e])&&void 0!==t?t:"plaintext"}t.getLanguage=l},42418:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.hljs=void 0;var i=r(n(3973)),a=r(n(68049)),o=r(n(21869)),s=r(n(69205)),l=r(n(46760)),c=r(n(33089)),u=r(n(37620)),d=r(n(25326)),h=r(n(17025)),p=r(n(35678)),f=r(n(63355)),m=r(n(50687)),g=r(n(92835)),v=r(n(16361)),b=r(n(82476)),y=r(n(74809)),w=r(n(42892)),E=r(n(79386)),_=r(n(84441)),S=r(n(25236)),k=r(n(51468)),x=r(n(95541)),A=r(n(53528)),N=r(n(88842)),C=r(n(74192)),T=r(n(99682)),R=r(n(26418)),O=r(n(73113)),I=r(n(90020)),L=r(n(44063)),D=r(n(1075)),P=r(n(8090)),M=r(n(77190)),B=r(n(30374)),F=r(n(3315)),$=r(n(86072)),U=r(n(69318)),j=r(n(74071)),V=r(n(37592)),K=r(n(50619)),H=r(n(45107)),G=r(n(76015)),z=r(n(2061)),q=r(n(90944)),X=r(n(8368)),W=r(n(31914)),Y=r(n(74222)),Q=r(n(7846)),J=r(n(90984)),Z=r(n(72723)),ee=r(n(98005)),te=r(n(45745));i.default.registerLanguage("cpp",a.default),i.default.registerLanguage("xml",o.default),i.default.registerLanguage("awk",s.default),i.default.registerLanguage("bash",l.default),i.default.registerLanguage("c",c.default),i.default.registerLanguage("clojure",u.default),i.default.registerLanguage("crystal",d.default),i.default.registerLanguage("csharp",h.default),i.default.registerLanguage("csp",p.default),i.default.registerLanguage("css",f.default),i.default.registerLanguage("markdown",m.default),i.default.registerLanguage("dart",g.default),i.default.registerLanguage("diff",v.default),i.default.registerLanguage("dockerfile",b.default),i.default.registerLanguage("elixir",y.default),i.default.registerLanguage("elm",w.default),i.default.registerLanguage("ruby",E.default),i.default.registerLanguage("erlang",_.default),i.default.registerLanguage("fsharp",S.default),i.default.registerLanguage("go",k.default),i.default.registerLanguage("gradle",x.default),i.default.registerLanguage("groovy",A.default),i.default.registerLanguage("handlebars",N.default),i.default.registerLanguage("haskell",C.default),i.default.registerLanguage("ini",T.default),i.default.registerLanguage("java",R.default),i.default.registerLanguage("javascript",O.default),i.default.registerLanguage("json",I.default),i.default.registerLanguage("kotlin",L.default),i.default.registerLanguage("less",D.default),i.default.registerLanguage("lisp",P.default),i.default.registerLanguage("lua",M.default),i.default.registerLanguage("makefile",B.default),i.default.registerLanguage("perl",F.default),i.default.registerLanguage("nginx",$.default),i.default.registerLanguage("objectivec",U.default),i.default.registerLanguage("pgsql",j.default),i.default.registerLanguage("php",V.default),i.default.registerLanguage("plaintext",K.default),i.default.registerLanguage("powershell",H.default),i.default.registerLanguage("properties",G.default),i.default.registerLanguage("protobuf",z.default),i.default.registerLanguage("python",q.default),i.default.registerLanguage("rust",X.default),i.default.registerLanguage("scala",W.default),i.default.registerLanguage("scss",Y.default),i.default.registerLanguage("shell",Q.default),i.default.registerLanguage("sql",J.default),i.default.registerLanguage("swift",Z.default),i.default.registerLanguage("yaml",ee.default),i.default.registerLanguage("typescript",te.default),t.hljs=i.default},44869:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashCode=t.unifyPath=t.escapeForRegExp=void 0;var n=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],r=RegExp("["+n.join("\\")+"]","g");function i(e){return e.replace(r,"\\$&")}function a(e){return e?e.replace(/\\/g,"/"):e}function o(e){var t,n,r,i=0;for(t=0,r=e.length;t<r;t++)n=e.charCodeAt(t),i=(i<<5)-i+n,i|=0;return i}t.escapeForRegExp=i,t.unifyPath=a,t.hashCode=o},26990:function(e,t){"use strict";function n(e){for(var t,n,r=[],i=0;i<e.length;i++)t=e[i],n=t.added?1:t.removed?-1:0,r.push([n,t.value]);return r}Object.defineProperty(t,"__esModule",{value:!0}),t.convertChangesToDMP=n},69438:function(e,t){"use strict";function n(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];i.added?t.push("<ins>"):i.removed&&t.push("<del>"),t.push(r(i.value)),i.added?t.push("</ins>"):i.removed&&t.push("</del>")}return t.join("")}function r(e){var t=e;return t=t.replace(/&/g,"&amp;"),t=t.replace(/</g,"&lt;"),t=t.replace(/>/g,"&gt;"),t=t.replace(/"/g,"&quot;"),t}Object.defineProperty(t,"__esModule",{value:!0}),t.convertChangesToXML=n},49906:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffArrays=o,t.arrayDiff=void 0;var r=i(n(22458));function i(e){return e&&e.__esModule?e:{default:e}}var a=new r["default"];function o(e,t,n){return a.diff(e,t,n)}t.arrayDiff=a,a.tokenize=function(e){return e.slice()},a.join=a.removeEmpty=function(e){return e}},22458:function(e,t){"use strict";function n(){}function r(e,t,n,r,i){for(var a=0,o=t.length,s=0,l=0;a<o;a++){var c=t[a];if(c.removed){if(c.value=e.join(r.slice(l,l+c.count)),l+=c.count,a&&t[a-1].added){var u=t[a-1];t[a-1]=t[a],t[a]=u}}else{if(!c.added&&i){var d=n.slice(s,s+c.count);d=d.map((function(e,t){var n=r[l+t];return n.length>e.length?n:e})),c.value=e.join(d)}else c.value=e.join(n.slice(s,s+c.count));s+=c.count,c.added||(l+=c.count)}}var h=t[o-1];return o>1&&"string"===typeof h.value&&(h.added||h.removed)&&e.equals("",h.value)&&(t[o-2].value+=h.value,t.pop()),t}function i(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.callback;"function"===typeof n&&(a=n,n={}),this.options=n;var o=this;function s(e){return a?(setTimeout((function(){a(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var l=t.length,c=e.length,u=1,d=l+c;n.maxEditLength&&(d=Math.min(d,n.maxEditLength));var h=[{newPos:-1,components:[]}],p=this.extractCommon(h[0],t,e,0);if(h[0].newPos+1>=l&&p+1>=c)return s([{value:this.join(t),count:t.length}]);function f(){for(var n=-1*u;n<=u;n+=2){var a=void 0,d=h[n-1],p=h[n+1],f=(p?p.newPos:0)-n;d&&(h[n-1]=void 0);var m=d&&d.newPos+1<l,g=p&&0<=f&&f<c;if(m||g){if(!m||g&&d.newPos<p.newPos?(a=i(p),o.pushComponent(a.components,void 0,!0)):(a=d,a.newPos++,o.pushComponent(a.components,!0,void 0)),f=o.extractCommon(a,t,e,n),a.newPos+1>=l&&f+1>=c)return s(r(o,a.components,t,e,o.useLongestToken));h[n]=a}else h[n]=void 0}u++}if(a)(function e(){setTimeout((function(){if(u>d)return a();f()||e()}),0)})();else while(u<=d){var m=f();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){var i=t.length,a=n.length,o=e.newPos,s=o-r,l=0;while(o+1<i&&s+1<a&&this.equals(t[o+1],n[s+1]))o++,s++,l++;return l&&e.components.push({count:l}),e.newPos=o,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},14960:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=o,t.characterDiff=void 0;var r=i(n(22458));function i(e){return e&&e.__esModule?e:{default:e}}var a=new r["default"];function o(e,t,n){return a.diff(e,t,n)}t.characterDiff=a},91224:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffCss=o,t.cssDiff=void 0;var r=i(n(22458));function i(e){return e&&e.__esModule?e:{default:e}}var a=new r["default"];function o(e,t,n){return a.diff(e,t,n)}t.cssDiff=a,a.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)}},69593:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffJson=c,t.canonicalize=u,t.jsonDiff=void 0;var r=a(n(22458)),i=n(91617);function a(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="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},o(e)}var s=Object.prototype.toString,l=new r["default"];function c(e,t,n){return l.diff(e,t,n)}function u(e,t,n,r,i){var a,l;for(t=t||[],n=n||[],r&&(e=r(i,e)),a=0;a<t.length;a+=1)if(t[a]===e)return n[a];if("[object Array]"===s.call(e)){for(t.push(e),l=new Array(e.length),n.push(l),a=0;a<e.length;a+=1)l[a]=u(e[a],t,n,r,i);return t.pop(),n.pop(),l}if(e&&e.toJSON&&(e=e.toJSON()),"object"===o(e)&&null!==e){t.push(e),l={},n.push(l);var c,d=[];for(c in e)e.hasOwnProperty(c)&&d.push(c);for(d.sort(),a=0;a<d.length;a+=1)c=d[a],l[c]=u(e[c],t,n,r,c);t.pop(),n.pop()}else l=e;return l}t.jsonDiff=l,l.useLongestToken=!0,l.tokenize=i.lineDiff.tokenize,l.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=void 0===r?function(e,t){return"undefined"===typeof t?n:t}:r;return"string"===typeof e?e:JSON.stringify(u(e,null,null,i),i," ")},l.equals=function(e,t){return r["default"].prototype.equals.call(l,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))}},91617:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffLines=s,t.diffTrimmedLines=l,t.lineDiff=void 0;var r=a(n(22458)),i=n(85928);function a(e){return e&&e.__esModule?e:{default:e}}var o=new r["default"];function s(e,t,n){return o.diff(e,t,n)}function l(e,t,n){var r=(0,i.generateOptions)(n,{ignoreWhitespace:!0});return o.diff(e,t,r)}t.lineDiff=o,o.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t}},82402:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffSentences=o,t.sentenceDiff=void 0;var r=i(n(22458));function i(e){return e&&e.__esModule?e:{default:e}}var a=new r["default"];function o(e,t,n){return a.diff(e,t,n)}t.sentenceDiff=a,a.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)}},82224:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffWords=c,t.diffWordsWithSpace=u,t.wordDiff=void 0;var r=a(n(22458)),i=n(85928);function a(e){return e&&e.__esModule?e:{default:e}}var o=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,s=/\S/,l=new r["default"];function c(e,t,n){return n=(0,i.generateOptions)(n,{ignoreWhitespace:!0}),l.diff(e,t,n)}function u(e,t,n){return l.diff(e,t,n)}t.wordDiff=l,l.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!s.test(e)&&!s.test(t)},l.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&o.test(t[n])&&o.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t}},48063:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Diff",{enumerable:!0,get:function(){return r["default"]}}),Object.defineProperty(t,"diffChars",{enumerable:!0,get:function(){return i.diffChars}}),Object.defineProperty(t,"diffWords",{enumerable:!0,get:function(){return a.diffWords}}),Object.defineProperty(t,"diffWordsWithSpace",{enumerable:!0,get:function(){return a.diffWordsWithSpace}}),Object.defineProperty(t,"diffLines",{enumerable:!0,get:function(){return o.diffLines}}),Object.defineProperty(t,"diffTrimmedLines",{enumerable:!0,get:function(){return o.diffTrimmedLines}}),Object.defineProperty(t,"diffSentences",{enumerable:!0,get:function(){return s.diffSentences}}),Object.defineProperty(t,"diffCss",{enumerable:!0,get:function(){return l.diffCss}}),Object.defineProperty(t,"diffJson",{enumerable:!0,get:function(){return c.diffJson}}),Object.defineProperty(t,"canonicalize",{enumerable:!0,get:function(){return c.canonicalize}}),Object.defineProperty(t,"diffArrays",{enumerable:!0,get:function(){return u.diffArrays}}),Object.defineProperty(t,"applyPatch",{enumerable:!0,get:function(){return d.applyPatch}}),Object.defineProperty(t,"applyPatches",{enumerable:!0,get:function(){return d.applyPatches}}),Object.defineProperty(t,"parsePatch",{enumerable:!0,get:function(){return h.parsePatch}}),Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return p.merge}}),Object.defineProperty(t,"structuredPatch",{enumerable:!0,get:function(){return f.structuredPatch}}),Object.defineProperty(t,"createTwoFilesPatch",{enumerable:!0,get:function(){return f.createTwoFilesPatch}}),Object.defineProperty(t,"createPatch",{enumerable:!0,get:function(){return f.createPatch}}),Object.defineProperty(t,"convertChangesToDMP",{enumerable:!0,get:function(){return m.convertChangesToDMP}}),Object.defineProperty(t,"convertChangesToXML",{enumerable:!0,get:function(){return g.convertChangesToXML}});var r=v(n(22458)),i=n(14960),a=n(82224),o=n(91617),s=n(82402),l=n(91224),c=n(69593),u=n(49906),d=n(55474),h=n(7709),p=n(26694),f=n(37668),m=n(26990),g=n(69438);function v(e){return e&&e.__esModule?e:{default:e}}},55474:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyPatch=o,t.applyPatches=s;var r=n(7709),i=a(n(55772));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof t&&(t=(0,r.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var a,o,s=e.split(/\r\n|[\n\v\f\r\x85]/),l=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],c=t.hunks,u=n.compareLine||function(e,t,n,r){return t===r},d=0,h=n.fuzzFactor||0,p=0,f=0;function m(e,t){for(var n=0;n<e.lines.length;n++){var r=e.lines[n],i=r.length>0?r[0]:" ",a=r.length>0?r.substr(1):r;if(" "===i||"-"===i){if(!u(t+1,s[t],i,a)&&(d++,d>h))return!1;t++}}return!0}for(var g=0;g<c.length;g++){for(var v=c[g],b=s.length-v.oldLines,y=0,w=f+v.oldStart-1,E=(0,i["default"])(w,p,b);void 0!==y;y=E())if(m(v,w+y)){v.offset=f+=y;break}if(void 0===y)return!1;p=v.offset+v.oldStart+v.oldLines}for(var _=0,S=0;S<c.length;S++){var k=c[S],x=k.oldStart+k.offset+_-1;_+=k.newLines-k.oldLines;for(var A=0;A<k.lines.length;A++){var N=k.lines[A],C=N.length>0?N[0]:" ",T=N.length>0?N.substr(1):N,R=k.linedelimiters[A];if(" "===C)x++;else if("-"===C)s.splice(x,1),l.splice(x,1);else if("+"===C)s.splice(x,0,T),l.splice(x,0,R),x++;else if("\\"===C){var O=k.lines[A-1]?k.lines[A-1][0]:null;"+"===O?a=!0:"-"===O&&(o=!0)}}}if(a)while(!s[s.length-1])s.pop(),l.pop();else o&&(s.push(""),l.push("\n"));for(var I=0;I<s.length-1;I++)s[I]=s[I]+l[I];return s.join("")}function s(e,t){"string"===typeof e&&(e=(0,r.parsePatch)(e));var n=0;function i(){var r=e[n++];if(!r)return t.complete();t.loadFile(r,(function(e,n){if(e)return t.complete(e);var a=o(n,r,t);t.patched(r,a,(function(e){if(e)return t.complete(e);i()}))}))}i()}},37668:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.structuredPatch=u,t.formatPatch=d,t.createTwoFilesPatch=h,t.createPatch=p;var r=n(91617);function i(e){return l(e)||s(e)||o(e)||a()}function a(){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 o(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function s(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function l(e){if(Array.isArray(e))return c(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n,a,o,s,l){l||(l={}),"undefined"===typeof l.context&&(l.context=4);var c=(0,r.diffLines)(n,a,l);if(c){c.push({value:"",lines:[]});for(var u=[],d=0,h=0,p=[],f=1,m=1,g=function(e){var t=c[e],r=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=r,t.added||t.removed){var o;if(!d){var s=c[e-1];d=f,h=m,s&&(p=l.context>0?b(s.lines.slice(-l.context)):[],d-=p.length,h-=p.length)}(o=p).push.apply(o,i(r.map((function(e){return(t.added?"+":"-")+e})))),t.added?m+=r.length:f+=r.length}else{if(d)if(r.length<=2*l.context&&e<c.length-2){var g;(g=p).push.apply(g,i(b(r)))}else{var v,y=Math.min(r.length,l.context);(v=p).push.apply(v,i(b(r.slice(0,y))));var w={oldStart:d,oldLines:f-d+y,newStart:h,newLines:m-h+y,lines:p};if(e>=c.length-2&&r.length<=l.context){var E=/\n$/.test(n),_=/\n$/.test(a),S=0==r.length&&p.length>w.oldLines;!E&&S&&n.length>0&&p.splice(w.oldLines,0,"\\ No newline at end of file"),(E||S)&&_||p.push("\\ No newline at end of file")}u.push(w),d=0,h=0,p=[]}f+=r.length,m+=r.length}},v=0;v<c.length;v++)g(v);return{oldFileName:e,newFileName:t,oldHeader:o,newHeader:s,hunks:u}}function b(e){return e.map((function(e){return" "+e}))}}function d(e){var t=[];e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),t.push("==================================================================="),t.push("--- "+e.oldFileName+("undefined"===typeof e.oldHeader?"":"\t"+e.oldHeader)),t.push("+++ "+e.newFileName+("undefined"===typeof e.newHeader?"":"\t"+e.newHeader));for(var n=0;n<e.hunks.length;n++){var r=e.hunks[n];0===r.oldLines&&(r.oldStart-=1),0===r.newLines&&(r.newStart-=1),t.push("@@ -"+r.oldStart+","+r.oldLines+" +"+r.newStart+","+r.newLines+" @@"),t.push.apply(t,r.lines)}return t.join("\n")+"\n"}function h(e,t,n,r,i,a,o){return d(u(e,t,n,r,i,a,o))}function p(e,t,n,r,i,a){return h(e,e,t,n,r,i,a)}},26694:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calcLineCount=h,t.merge=p;var r=n(37668),i=n(7709),a=n(73361);function o(e){return u(e)||c(e)||l(e)||s()}function s(){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 l(e,t){if(e){if("string"===typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function c(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function u(e){if(Array.isArray(e))return d(e)}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e){var t=T(e.lines),n=t.oldLines,r=t.newLines;void 0!==n?e.oldLines=n:delete e.oldLines,void 0!==r?e.newLines=r:delete e.newLines}function p(e,t,n){e=f(e,n),t=f(t,n);var r={};(e.index||t.index)&&(r.index=e.index||t.index),(e.newFileName||t.newFileName)&&(m(e)?m(t)?(r.oldFileName=g(r,e.oldFileName,t.oldFileName),r.newFileName=g(r,e.newFileName,t.newFileName),r.oldHeader=g(r,e.oldHeader,t.oldHeader),r.newHeader=g(r,e.newHeader,t.newHeader)):(r.oldFileName=e.oldFileName,r.newFileName=e.newFileName,r.oldHeader=e.oldHeader,r.newHeader=e.newHeader):(r.oldFileName=t.oldFileName||e.oldFileName,r.newFileName=t.newFileName||e.newFileName,r.oldHeader=t.oldHeader||e.oldHeader,r.newHeader=t.newHeader||e.newHeader)),r.hunks=[];var i=0,a=0,o=0,s=0;while(i<e.hunks.length||a<t.hunks.length){var l=e.hunks[i]||{oldStart:1/0},c=t.hunks[a]||{oldStart:1/0};if(v(l,c))r.hunks.push(b(l,o)),i++,s+=l.newLines-l.oldLines;else if(v(c,l))r.hunks.push(b(c,s)),a++,o+=c.newLines-c.oldLines;else{var u={oldStart:Math.min(l.oldStart,c.oldStart),oldLines:0,newStart:Math.min(l.newStart+o,c.oldStart+s),newLines:0,lines:[]};y(u,l.oldStart,l.lines,c.oldStart,c.lines),a++,i++,r.hunks.push(u)}}return r}function f(e,t){if("string"===typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return(0,i.parsePatch)(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return(0,r.structuredPatch)(void 0,void 0,t,e)}return e}function m(e){return e.newFileName&&e.newFileName!==e.oldFileName}function g(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function v(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function b(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function y(e,t,n,r,i){var a={offset:t,lines:n,index:0},s={offset:r,lines:i,index:0};S(e,a,s),S(e,s,a);while(a.index<a.lines.length&&s.index<s.lines.length){var l=a.lines[a.index],c=s.lines[s.index];if("-"!==l[0]&&"+"!==l[0]||"-"!==c[0]&&"+"!==c[0])if("+"===l[0]&&" "===c[0]){var u;(u=e.lines).push.apply(u,o(x(a)))}else if("+"===c[0]&&" "===l[0]){var d;(d=e.lines).push.apply(d,o(x(s)))}else"-"===l[0]&&" "===c[0]?E(e,a,s):"-"===c[0]&&" "===l[0]?E(e,s,a,!0):l===c?(e.lines.push(l),a.index++,s.index++):_(e,x(a),x(s));else w(e,a,s)}k(e,a),k(e,s),h(e)}function w(e,t,n){var r=x(t),i=x(n);if(N(r)&&N(i)){var s,l;if((0,a.arrayStartsWith)(r,i)&&C(n,r,r.length-i.length))return void(s=e.lines).push.apply(s,o(r));if((0,a.arrayStartsWith)(i,r)&&C(t,i,i.length-r.length))return void(l=e.lines).push.apply(l,o(i))}else if((0,a.arrayEqual)(r,i)){var c;return void(c=e.lines).push.apply(c,o(r))}_(e,r,i)}function E(e,t,n,r){var i,a=x(t),s=A(n,a);s.merged?(i=e.lines).push.apply(i,o(s.merged)):_(e,r?s:a,r?a:s)}function _(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function S(e,t,n){while(t.offset<n.offset&&t.index<t.lines.length){var r=t.lines[t.index++];e.lines.push(r),t.offset++}}function k(e,t){while(t.index<t.lines.length){var n=t.lines[t.index++];e.lines.push(n)}}function x(e){var t=[],n=e.lines[e.index][0];while(e.index<e.lines.length){var r=e.lines[e.index];if("-"===n&&"+"===r[0]&&(n="+"),n!==r[0])break;t.push(r),e.index++}return t}function A(e,t){var n=[],r=[],i=0,a=!1,o=!1;while(i<t.length&&e.index<e.lines.length){var s=e.lines[e.index],l=t[i];if("+"===l[0])break;if(a=a||" "!==s[0],r.push(l),i++,"+"===s[0]){o=!0;while("+"===s[0])n.push(s),s=e.lines[++e.index]}l.substr(1)===s.substr(1)?(n.push(s),e.index++):o=!0}if("+"===(t[i]||"")[0]&&a&&(o=!0),o)return n;while(i<t.length)r.push(t[i++]);return{merged:r,changes:n}}function N(e){return e.reduce((function(e,t){return e&&"-"===t[0]}),!0)}function C(e,t,n){for(var r=0;r<n;r++){var i=t[t.length-n+r].substr(1);if(e.lines[e.index+r]!==" "+i)return!1}return e.index+=n,!0}function T(e){var t=0,n=0;return e.forEach((function(e){if("string"!==typeof e){var r=T(e.mine),i=T(e.theirs);void 0!==t&&(r.oldLines===i.oldLines?t+=r.oldLines:t=void 0),void 0!==n&&(r.newLines===i.newLines?n+=r.newLines:n=void 0)}else void 0===n||"+"!==e[0]&&" "!==e[0]||n++,void 0===t||"-"!==e[0]&&" "!==e[0]||t++})),{oldLines:t,newLines:n}}},7709:function(e,t){"use strict";function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=[],a=0;function o(){var e={};i.push(e);while(a<n.length){var r=n[a];if(/^(\-\-\-|\+\+\+|@@)\s/.test(r))break;var o=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(r);o&&(e.index=o[1]),a++}s(e),s(e),e.hunks=[];while(a<n.length){var c=n[a];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(c))break;if(/^@@/.test(c))e.hunks.push(l());else{if(c&&t.strict)throw new Error("Unknown line "+(a+1)+" "+JSON.stringify(c));a++}}}function s(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(n[a]);if(t){var r="---"===t[1]?"old":"new",i=t[2].split("\t",2),o=i[0].replace(/\\\\/g,"\\");/^".*"$/.test(o)&&(o=o.substr(1,o.length-2)),e[r+"FileName"]=o,e[r+"Header"]=(i[1]||"").trim(),a++}}function l(){var e=a,i=n[a++],o=i.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),s={oldStart:+o[1],oldLines:"undefined"===typeof o[2]?1:+o[2],newStart:+o[3],newLines:"undefined"===typeof o[4]?1:+o[4],lines:[],linedelimiters:[]};0===s.oldLines&&(s.oldStart+=1),0===s.newLines&&(s.newStart+=1);for(var l=0,c=0;a<n.length;a++){if(0===n[a].indexOf("--- ")&&a+2<n.length&&0===n[a+1].indexOf("+++ ")&&0===n[a+2].indexOf("@@"))break;var u=0==n[a].length&&a!=n.length-1?" ":n[a][0];if("+"!==u&&"-"!==u&&" "!==u&&"\\"!==u)break;s.lines.push(n[a]),s.linedelimiters.push(r[a]||"\n"),"+"===u?l++:"-"===u?c++:" "===u&&(l++,c++)}if(l||1!==s.newLines||(s.newLines=0),c||1!==s.oldLines||(s.oldLines=0),t.strict){if(l!==s.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(c!==s.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return s}while(a<n.length)o();return i}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePatch=n},73361:function(e,t){"use strict";function n(e,t){return e.length===t.length&&r(e,t)}function r(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.arrayEqual=n,t.arrayStartsWith=r},55772:function(e,t){"use strict";function n(e,t,n){var r=!0,i=!1,a=!1,o=1;return function s(){if(r&&!a){if(i?o++:r=!1,e+o<=n)return o;a=!0}if(!i)return a||(r=!0),t<=e-o?-o++:(i=!0,s())}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},85928:function(e,t){"use strict";function n(e,t){if("function"===typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.generateOptions=n},71651:function(e,t,n){var r=n(4364);
/*! @license DOMPurify 2.5.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.4/LICENSE */(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(t){return e="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(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){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 i(e,r,a){return i=n()?Reflect.construct:function(e,n,r){var i=[null];i.push.apply(i,n);var a=Function.bind.apply(e,i),o=new a;return r&&t(o,r.prototype),o},i.apply(null,arguments)}function a(e){return o(e)||s(e)||l(e)||u()}function o(e){if(Array.isArray(e))return c(e)}function s(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function l(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var d=Object.hasOwnProperty,h=Object.setPrototypeOf,p=Object.isFrozen,f=Object.getPrototypeOf,m=Object.getOwnPropertyDescriptor,g=Object.freeze,v=Object.seal,b=Object.create,y="undefined"!==typeof Reflect&&Reflect,w=y.apply,E=y.construct;w||(w=function(e,t,n){return e.apply(t,n)}),g||(g=function(e){return e}),v||(v=function(e){return e}),E||(E=function(e,t){return i(e,a(t))});var _=D(Array.prototype.forEach),S=D(Array.prototype.pop),k=D(Array.prototype.push),x=D(String.prototype.toLowerCase),A=D(String.prototype.toString),N=D(String.prototype.match),C=D(String.prototype.replace),T=D(String.prototype.indexOf),R=D(String.prototype.trim),O=D(RegExp.prototype.test),I=P(TypeError);function L(e){return"number"===typeof e&&isNaN(e)}function D(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return w(e,t,r)}}function P(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return E(e,n)}}function M(e,t,n){var r;n=null!==(r=n)&&void 0!==r?r:x,h&&h(e,null);var i=t.length;while(i--){var a=t[i];if("string"===typeof a){var o=n(a);o!==a&&(p(t)||(t[i]=o),a=o)}e[a]=!0}return e}function B(e){var t,n=b(null);for(t in e)!0===w(d,e,[t])&&(n[t]=e[t]);return n}function F(e,t){while(null!==e){var n=m(e,t);if(n){if(n.get)return D(n.get);if("function"===typeof n.value)return D(n.value)}e=f(e)}function i(e){return r.warn("fallback value for",e),null}return i}var $=g(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),U=g(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),j=g(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),V=g(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),K=g(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),H=g(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),G=g(["#text"]),z=g(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),q=g(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),X=g(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),W=g(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Y=v(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Q=v(/<%[\w\W]*|[\w\W]*%>/gm),J=v(/\${[\w\W]*}/gm),Z=v(/^data-[\-\w.\u00B7-\uFFFF]/),ee=v(/^aria-[\-\w]+$/),te=v(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ne=v(/^(?:\w+script|data):/i),re=v(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ie=v(/^html$/i),ae=v(/^[a-z][.\w]*(-[.\w]+)+$/i),oe=function(){return"undefined"===typeof window?null:window},se=function(t,n){if("object"!==e(t)||"function"!==typeof t.createPolicy)return null;var i=null,a="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(a)&&(i=n.currentScript.getAttribute(a));var o="dompurify"+(i?"#"+i:"");try{return t.createPolicy(o,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(s){return r.warn("TrustedTypes policy "+o+" could not be created."),null}};function le(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe(),n=function(e){return le(e)};if(n.version="2.5.4",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,i=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,l=t.Node,c=t.Element,u=t.NodeFilter,d=t.NamedNodeMap,h=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,p=t.HTMLFormElement,f=t.DOMParser,m=t.trustedTypes,v=c.prototype,b=F(v,"cloneNode"),y=F(v,"nextSibling"),w=F(v,"childNodes"),E=F(v,"parentNode");if("function"===typeof s){var D=i.createElement("template");D.content&&D.content.ownerDocument&&(i=D.content.ownerDocument)}var P=se(m,r),ce=P?P.createHTML(""):"",ue=i,de=ue.implementation,he=ue.createNodeIterator,pe=ue.createDocumentFragment,fe=ue.getElementsByTagName,me=r.importNode,ge={};try{ge=B(i).documentMode?i.documentMode:{}}catch(Ft){}var ve={};n.isSupported="function"===typeof E&&de&&void 0!==de.createHTMLDocument&&9!==ge;var be,ye,we=Y,Ee=Q,_e=J,Se=Z,ke=ee,xe=ne,Ae=re,Ne=ae,Ce=te,Te=null,Re=M({},[].concat(a($),a(U),a(j),a(K),a(G))),Oe=null,Ie=M({},[].concat(a(z),a(q),a(X),a(W))),Le=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),De=null,Pe=null,Me=!0,Be=!0,Fe=!1,$e=!0,Ue=!1,je=!0,Ve=!1,Ke=!1,He=!1,Ge=!1,ze=!1,qe=!1,Xe=!0,We=!1,Ye="user-content-",Qe=!0,Je=!1,Ze={},et=null,tt=M({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),nt=null,rt=M({},["audio","video","img","source","image","track"]),it=null,at=M({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ot="http://www.w3.org/1998/Math/MathML",st="http://www.w3.org/2000/svg",lt="http://www.w3.org/1999/xhtml",ct=lt,ut=!1,dt=null,ht=M({},[ot,st,lt],A),pt=["application/xhtml+xml","text/html"],ft="text/html",mt=null,gt=255,vt=i.createElement("form"),bt=function(e){return e instanceof RegExp||e instanceof Function},yt=function(t){mt&&mt===t||(t&&"object"===e(t)||(t={}),t=B(t),be=be=-1===pt.indexOf(t.PARSER_MEDIA_TYPE)?ft:t.PARSER_MEDIA_TYPE,ye="application/xhtml+xml"===be?A:x,Te="ALLOWED_TAGS"in t?M({},t.ALLOWED_TAGS,ye):Re,Oe="ALLOWED_ATTR"in t?M({},t.ALLOWED_ATTR,ye):Ie,dt="ALLOWED_NAMESPACES"in t?M({},t.ALLOWED_NAMESPACES,A):ht,it="ADD_URI_SAFE_ATTR"in t?M(B(at),t.ADD_URI_SAFE_ATTR,ye):at,nt="ADD_DATA_URI_TAGS"in t?M(B(rt),t.ADD_DATA_URI_TAGS,ye):rt,et="FORBID_CONTENTS"in t?M({},t.FORBID_CONTENTS,ye):tt,De="FORBID_TAGS"in t?M({},t.FORBID_TAGS,ye):{},Pe="FORBID_ATTR"in t?M({},t.FORBID_ATTR,ye):{},Ze="USE_PROFILES"in t&&t.USE_PROFILES,Me=!1!==t.ALLOW_ARIA_ATTR,Be=!1!==t.ALLOW_DATA_ATTR,Fe=t.ALLOW_UNKNOWN_PROTOCOLS||!1,$e=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Ue=t.SAFE_FOR_TEMPLATES||!1,je=!1!==t.SAFE_FOR_XML,Ve=t.WHOLE_DOCUMENT||!1,Ge=t.RETURN_DOM||!1,ze=t.RETURN_DOM_FRAGMENT||!1,qe=t.RETURN_TRUSTED_TYPE||!1,He=t.FORCE_BODY||!1,Xe=!1!==t.SANITIZE_DOM,We=t.SANITIZE_NAMED_PROPS||!1,Qe=!1!==t.KEEP_CONTENT,Je=t.IN_PLACE||!1,Ce=t.ALLOWED_URI_REGEXP||Ce,ct=t.NAMESPACE||lt,Le=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&bt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Le.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&bt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Le.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Le.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ue&&(Be=!1),ze&&(Ge=!0),Ze&&(Te=M({},a(G)),Oe=[],!0===Ze.html&&(M(Te,$),M(Oe,z)),!0===Ze.svg&&(M(Te,U),M(Oe,q),M(Oe,W)),!0===Ze.svgFilters&&(M(Te,j),M(Oe,q),M(Oe,W)),!0===Ze.mathMl&&(M(Te,K),M(Oe,X),M(Oe,W))),t.ADD_TAGS&&(Te===Re&&(Te=B(Te)),M(Te,t.ADD_TAGS,ye)),t.ADD_ATTR&&(Oe===Ie&&(Oe=B(Oe)),M(Oe,t.ADD_ATTR,ye)),t.ADD_URI_SAFE_ATTR&&M(it,t.ADD_URI_SAFE_ATTR,ye),t.FORBID_CONTENTS&&(et===tt&&(et=B(et)),M(et,t.FORBID_CONTENTS,ye)),Qe&&(Te["#text"]=!0),Ve&&M(Te,["html","head","body"]),Te.table&&(M(Te,["tbody"]),delete De.tbody),g&&g(t),mt=t)},wt=M({},["mi","mo","mn","ms","mtext"]),Et=M({},["foreignobject","annotation-xml"]),_t=M({},["title","style","font","a","script"]),St=M({},U);M(St,j),M(St,V);var kt=M({},K);M(kt,H);var xt=function(e){var t=E(e);t&&t.tagName||(t={namespaceURI:ct,tagName:"template"});var n=x(e.tagName),r=x(t.tagName);return!!dt[e.namespaceURI]&&(e.namespaceURI===st?t.namespaceURI===lt?"svg"===n:t.namespaceURI===ot?"svg"===n&&("annotation-xml"===r||wt[r]):Boolean(St[n]):e.namespaceURI===ot?t.namespaceURI===lt?"math"===n:t.namespaceURI===st?"math"===n&&Et[r]:Boolean(kt[n]):e.namespaceURI===lt?!(t.namespaceURI===st&&!Et[r])&&(!(t.namespaceURI===ot&&!wt[r])&&(!kt[n]&&(_t[n]||!St[n]))):!("application/xhtml+xml"!==be||!dt[e.namespaceURI]))},At=function(e){k(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(Ft){try{e.outerHTML=ce}catch(Ft){e.remove()}}},Nt=function(e,t){try{k(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(Ft){k(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Oe[e])if(Ge||ze)try{At(t)}catch(Ft){}else try{t.setAttribute(e,"")}catch(Ft){}},Ct=function(e){var t,n;if(He)e="<remove></remove>"+e;else{var r=N(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===be&&ct===lt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var a=P?P.createHTML(e):e;if(ct===lt)try{t=(new f).parseFromString(a,be)}catch(Ft){}if(!t||!t.documentElement){t=de.createDocument(ct,"template",null);try{t.documentElement.innerHTML=ut?ce:a}catch(Ft){}}var o=t.body||t.documentElement;return e&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),ct===lt?fe.call(t,Ve?"html":"body")[0]:Ve?t.documentElement:o},Tt=function(e){return he.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null,!1)},Rt=function(e){return e instanceof p&&("undefined"!==typeof e.__depth&&"number"!==typeof e.__depth||"undefined"!==typeof e.__removalCount&&"number"!==typeof e.__removalCount||"string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof h)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},Ot=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"===typeof t.nodeType&&"string"===typeof t.nodeName},It=function(e,t,r){ve[e]&&_(ve[e],(function(e){e.call(n,t,r,mt)}))},Lt=function(e){var t;if(It("beforeSanitizeElements",e,null),Rt(e))return At(e),!0;if(O(/[\u0080-\uFFFF]/,e.nodeName))return At(e),!0;var r=ye(e.nodeName);if(It("uponSanitizeElement",e,{tagName:r,allowedTags:Te}),e.hasChildNodes()&&!Ot(e.firstElementChild)&&(!Ot(e.content)||!Ot(e.content.firstElementChild))&&O(/<[/\w]/g,e.innerHTML)&&O(/<[/\w]/g,e.textContent))return At(e),!0;if("select"===r&&O(/<template/i,e.innerHTML))return At(e),!0;if(7===e.nodeType)return At(e),!0;if(je&&8===e.nodeType&&O(/<[/\w]/g,e.data))return At(e),!0;if(!Te[r]||De[r]){if(!De[r]&&Pt(r)){if(Le.tagNameCheck instanceof RegExp&&O(Le.tagNameCheck,r))return!1;if(Le.tagNameCheck instanceof Function&&Le.tagNameCheck(r))return!1}if(Qe&&!et[r]){var i=E(e)||e.parentNode,a=w(e)||e.childNodes;if(a&&i)for(var o=a.length,s=o-1;s>=0;--s){var l=b(a[s],!0);l.__removalCount=(e.__removalCount||0)+1,i.insertBefore(l,y(e))}}return At(e),!0}return e instanceof c&&!xt(e)?(At(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!O(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ue&&3===e.nodeType&&(t=e.textContent,t=C(t,we," "),t=C(t,Ee," "),t=C(t,_e," "),e.textContent!==t&&(k(n.removed,{element:e.cloneNode()}),e.textContent=t)),It("afterSanitizeElements",e,null),!1):(At(e),!0)},Dt=function(e,t,n){if(Xe&&("id"===t||"name"===t)&&(n in i||n in vt||"__depth"===n||"__removalCount"===n))return!1;if(Be&&!Pe[t]&&O(Se,t));else if(Me&&O(ke,t));else if(!Oe[t]||Pe[t]){if(!(Pt(e)&&(Le.tagNameCheck instanceof RegExp&&O(Le.tagNameCheck,e)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(e))&&(Le.attributeNameCheck instanceof RegExp&&O(Le.attributeNameCheck,t)||Le.attributeNameCheck instanceof Function&&Le.attributeNameCheck(t))||"is"===t&&Le.allowCustomizedBuiltInElements&&(Le.tagNameCheck instanceof RegExp&&O(Le.tagNameCheck,n)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(n))))return!1}else if(it[t]);else if(O(Ce,C(n,Ae,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==T(n,"data:")||!nt[e]){if(Fe&&!O(xe,C(n,Ae,"")));else if(n)return!1}else;return!0},Pt=function(e){return"annotation-xml"!==e&&N(e,Ne)},Mt=function(t){var r,i,a,o;It("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Oe};o=s.length;while(o--){r=s[o];var c=r,u=c.name,d=c.namespaceURI;if(i="value"===u?r.value:R(r.value),a=ye(u),l.attrName=a,l.attrValue=i,l.keepAttr=!0,l.forceKeepAttr=void 0,It("uponSanitizeAttribute",t,l),i=l.attrValue,!l.forceKeepAttr&&(Nt(u,t),l.keepAttr))if($e||!O(/\/>/i,i))if(je&&O(/((--!?|])>)|<\/(style|title)/i,i))Nt(u,t);else{Ue&&(i=C(i,we," "),i=C(i,Ee," "),i=C(i,_e," "));var h=ye(t.nodeName);if(Dt(h,a,i)){if(!We||"id"!==a&&"name"!==a||(Nt(u,t),i=Ye+i),P&&"object"===e(m)&&"function"===typeof m.getAttributeType)if(d);else switch(m.getAttributeType(h,a)){case"TrustedHTML":i=P.createHTML(i);break;case"TrustedScriptURL":i=P.createScriptURL(i);break}try{d?t.setAttributeNS(d,u,i):t.setAttribute(u,i),Rt(t)?At(t):S(n.removed)}catch(Ft){}}}else Nt(u,t)}It("afterSanitizeAttributes",t,null)}},Bt=function e(t){var n,r=Tt(t);It("beforeSanitizeShadowDOM",t,null);while(n=r.nextNode())if(It("uponSanitizeShadowNode",n,null),!Lt(n)){var i=E(n);1===n.nodeType&&(i&&i.__depth?n.__depth=(n.__removalCount||0)+i.__depth+1:n.__depth=1),(n.__depth>=gt||L(n.__depth))&&At(n),n.content instanceof o&&(n.content.__depth=n.__depth,e(n.content)),Mt(n)}It("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(i){var a,s,c,u,d,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(ut=!i,ut&&(i="\x3c!--\x3e"),"string"!==typeof i&&!Ot(i)){if("function"!==typeof i.toString)throw I("toString is not a function");if(i=i.toString(),"string"!==typeof i)throw I("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"===typeof t.toStaticHTML){if("string"===typeof i)return t.toStaticHTML(i);if(Ot(i))return t.toStaticHTML(i.outerHTML)}return i}if(Ke||yt(h),n.removed=[],"string"===typeof i&&(Je=!1),Je){if(i.nodeName){var p=ye(i.nodeName);if(!Te[p]||De[p])throw I("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof l)a=Ct("\x3c!----\x3e"),s=a.ownerDocument.importNode(i,!0),1===s.nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?a=s:a.appendChild(s);else{if(!Ge&&!Ue&&!Ve&&-1===i.indexOf("<"))return P&&qe?P.createHTML(i):i;if(a=Ct(i),!a)return Ge?null:qe?ce:""}a&&He&&At(a.firstChild);var f=Tt(Je?i:a);while(c=f.nextNode())if((3!==c.nodeType||c!==u)&&!Lt(c)){var m=E(c);1===c.nodeType&&(m&&m.__depth?c.__depth=(c.__removalCount||0)+m.__depth+1:c.__depth=1),(c.__depth>=gt||L(c.__depth))&&At(c),c.content instanceof o&&(c.content.__depth=c.__depth,Bt(c.content)),Mt(c),u=c}if(u=null,Je)return i;if(Ge){if(ze){d=pe.call(a.ownerDocument);while(a.firstChild)d.appendChild(a.firstChild)}else d=a;return(Oe.shadowroot||Oe.shadowrootmod)&&(d=me.call(r,d,!0)),d}var g=Ve?a.outerHTML:a.innerHTML;return Ve&&Te["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&O(ie,a.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+g),Ue&&(g=C(g,we," "),g=C(g,Ee," "),g=C(g,_e," ")),P&&qe?P.createHTML(g):g},n.setConfig=function(e){yt(e),Ke=!0},n.clearConfig=function(){mt=null,Ke=!1},n.isValidAttribute=function(e,t,n){mt||yt({});var r=ye(e),i=ye(t);return Dt(r,i,n)},n.addHook=function(e,t){"function"===typeof t&&(ve[e]=ve[e]||[],k(ve[e],t))},n.removeHook=function(e){if(ve[e])return S(ve[e])},n.removeHooks=function(e){ve[e]&&(ve[e]=[])},n.removeAllHooks=function(){ve={}},n}var ce=le();return ce}))},46423:function(e,t,n){"use strict";var r,i=n(79903),a=n(69336);try{r=[].__proto__===Array.prototype}catch(c){if(!c||"object"!==typeof c||!("code"in c)||"ERR_PROTO_ACCESS"!==c.code)throw c}var o=!!r&&a&&a(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=o&&"function"===typeof o.get?i([o.get]):"function"===typeof l&&function(e){return l(null==e?e:s(e))}},64940:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(n){t=!1}e.exports=t},29110:function(e){"use strict";e.exports=EvalError},29838:function(e){"use strict";e.exports=Error},61155:function(e){"use strict";e.exports=RangeError},94943:function(e){"use strict";e.exports=ReferenceError},5731:function(e){"use strict";e.exports=SyntaxError},3468:function(e){"use strict";e.exports=TypeError},32140:function(e){"use strict";e.exports=URIError},9629:function(e){"use strict";e.exports=Object},50046:function(e,t,n){"use strict";var r,i=n(4364),a="object"===typeof Reflect?Reflect:null,o=a&&"function"===typeof a.apply?a.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};function s(e){i&&i.warn&&i.warn(e)}r=a&&"function"===typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var l=Number.isNaN||function(e){return e!==e};function c(){c.init.call(this)}e.exports=c,e.exports.once=E,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var u=10;function d(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function h(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function p(e,t,n,r){var i,a,o;if(d(n),a=e._events,void 0===a?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),void 0===o)o=a[t]=n,++e._eventsCount;else if("function"===typeof o?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),i=h(e),i>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,s(l)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}function g(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?w(i):b(i,i.length)}function v(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function b(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function y(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function w(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function E(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){"function"===typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}S(e,t,a,{once:!0}),"error"!==t&&_(e,i,{once:!0})}))}function _(e,t,n){"function"===typeof e.on&&S(e,"error",t,n)}function S(e,t,n,r){if("function"===typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(a){r.once&&e.removeEventListener(t,i),n(a)}))}}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!==typeof e||e<0||l(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),c.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},c.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||l(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},c.prototype.getMaxListeners=function(){return h(this)},c.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"===typeof l)o(l,this,t);else{var c=l.length,u=b(l,c);for(n=0;n<c;++n)o(u[n],this,t)}return!0},c.prototype.addListener=function(e,t){return p(this,e,t,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(e,t){return p(this,e,t,!0)},c.prototype.once=function(e,t){return d(t),this.on(e,m(this,e,t)),this},c.prototype.prependOnceListener=function(e,t){return d(t),this.prependListener(e,m(this,e,t)),this},c.prototype.removeListener=function(e,t){var n,r,i,a,o;if(d(t),r=this._events,void 0===r)return this;if(n=r[e],void 0===n)return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():y(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(e){var t,n,r;if(n=this._events,void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r<a.length;++r)i=a[r],"removeListener"!==i&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],"function"===typeof t)this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},c.prototype.listeners=function(e){return g(this,e,!0)},c.prototype.rawListeners=function(e){return g(this,e,!1)},c.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},c.prototype.listenerCount=v,c.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},80705:function(e,t,n){"use strict";var r=n(89617),i=Object.prototype.toString,a=Object.prototype.hasOwnProperty,o=function(e,t,n){for(var r=0,i=e.length;r<i;r++)a.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))},s=function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)},l=function(e,t,n){for(var r in e)a.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))},c=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===i.call(e)?o(e,t,a):"string"===typeof e?s(e,t,a):l(e,t,a)};e.exports=c},28794:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,i="[object Function]",a=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},o=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},s=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var l=this;if("function"!==typeof l||n.apply(l)!==i)throw new TypeError(t+l);for(var c,u=o(arguments,1),d=function(){if(this instanceof c){var t=l.apply(this,a(u,arguments));return Object(t)===t?t:this}return l.apply(e,a(u,arguments))},h=r(0,l.length-u.length),p=[],f=0;f<h;f++)p[f]="$"+f;if(c=Function("binder","return function ("+s(p,",")+"){ return binder.apply(this,arguments); }")(d),l.prototype){var m=function(){};m.prototype=l.prototype,c.prototype=new m,m.prototype=null}return c}},79138:function(e,t,n){"use strict";var r=n(28794);e.exports=Function.prototype.bind||r},528:function(e,t,n){"use strict";var r,i=n(9629),a=n(29838),o=n(29110),s=n(61155),l=n(94943),c=n(5731),u=n(3468),d=n(32140),h=n(58479),p=n(18449),f=n(88129),m=n(22387),g=n(85865),v=n(1319),b=n(36882),y=Function,w=function(e){try{return y('"use strict"; return ('+e+").constructor;")()}catch(t){}},E=n(69336),_=n(64940),S=function(){throw new u},k=E?function(){try{return S}catch(e){try{return E(arguments,"callee").get}catch(t){return S}}}():S,x=n(53558)(),A=n(46369),N=n(17345),C=n(57859),T=n(6095),R=n(64531),O={},I="undefined"!==typeof Uint8Array&&A?A(Uint8Array):r,L={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":x&&A?A([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":O,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":x&&A?A(A([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&x&&A?A((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&x&&A?A((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":x&&A?A(""[Symbol.iterator]()):r,"%Symbol%":x?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":k,"%TypedArray%":I,"%TypeError%":u,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet,"%Function.prototype.call%":R,"%Function.prototype.apply%":T,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":N,"%Math.abs%":h,"%Math.floor%":p,"%Math.max%":f,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":v,"%Math.sign%":b,"%Reflect.getPrototypeOf%":C};if(A)try{null.error}catch(X){var D=A(A(X));L["%Error.prototype%"]=D}var P=function e(t){var n;if("%AsyncFunction%"===t)n=w("async function () {}");else if("%GeneratorFunction%"===t)n=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=w("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&A&&(n=A(i.prototype))}return L[t]=n,n},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},B=n(79138),F=n(78554),$=B.call(R,Array.prototype.concat),U=B.call(T,Array.prototype.splice),j=B.call(R,String.prototype.replace),V=B.call(R,String.prototype.slice),K=B.call(R,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,z=function(e){var t=V(e,0,1),n=V(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return j(e,H,(function(e,t,n,i){r[r.length]=n?j(i,G,"$1"):t||e})),r},q=function(e,t){var n,r=e;if(F(M,r)&&(n=M[r],r="%"+n[0]+"%"),F(L,r)){var i=L[r];if(i===O&&(i=P(r)),"undefined"===typeof i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===K(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=z(e),r=n.length>0?n[0]:"",i=q("%"+r+"%",t),a=i.name,o=i.value,s=!1,l=i.alias;l&&(r=l[0],U(n,$([0,1],l)));for(var d=1,h=!0;d<n.length;d+=1){var p=n[d],f=V(p,0,1),m=V(p,-1);if(('"'===f||"'"===f||"`"===f||'"'===m||"'"===m||"`"===m)&&f!==m)throw new c("property names with quotes must have matching quotes");if("constructor"!==p&&h||(s=!0),r+="."+p,a="%"+r+"%",F(L,a))o=L[a];else if(null!=o){if(!(p in o)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(E&&d+1>=n.length){var g=E(o,p);h=!!g,o=h&&"get"in g&&!("originalValue"in g.get)?g.get:o[p]}else h=F(o,p),o=o[p];h&&!s&&(L[a]=o)}}return o}},17345:function(e,t,n){"use strict";var r=n(9629);e.exports=r.getPrototypeOf||null},57859:function(e){"use strict";e.exports="undefined"!==typeof Reflect&&Reflect.getPrototypeOf||null},46369:function(e,t,n){"use strict";var r=n(57859),i=n(17345),a=n(46423);e.exports=r?function(e){return r(e)}:i?function(e){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new TypeError("getProto: not an object");return i(e)}:a?function(e){return a(e)}:null},61292:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},69336:function(e,t,n){"use strict";var r=n(61292);if(r)try{r([],"length")}catch(i){r=null}e.exports=r},17239:function(e,t,n){"use strict";var r=n(64940),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},53558:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(62908);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},62908:function(e){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(var i in e[t]=r,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||!0!==o.enumerable)return!1}return!0}},51913:function(e,t,n){"use strict";var r=n(62908);e.exports=function(){return r()&&!!Symbol.toStringTag}},78554:function(e,t,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,a=n(79138);e.exports=a.call(r,i)},51815:function(e,t){(function(e){var t=/\S/,n=/\"/g,r=/\n/g,i=/\r/g,a=/\\/g,o=/\u2028/,s=/\u2029/;function l(e){"}"===e.n.substr(e.n.length-1)&&(e.n=e.n.substring(0,e.n.length-1))}function c(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function u(e,t,n){if(t.charAt(n)!=e.charAt(0))return!1;for(var r=1,i=e.length;r<i;r++)if(t.charAt(n+r)!=e.charAt(r))return!1;return!0}e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(n,r){var i=n.length,a=0,o=1,s=2,d=a,h=null,p=null,f="",m=[],g=!1,v=0,b=0,y="{{",w="}}";function E(){f.length>0&&(m.push({tag:"_t",text:new String(f)}),f="")}function _(){for(var n=!0,r=b;r<m.length;r++)if(n=e.tags[m[r].tag]<e.tags["_v"]||"_t"==m[r].tag&&null===m[r].text.match(t),!n)return!1;return n}function S(e,t){if(E(),e&&_())for(var n,r=b;r<m.length;r++)m[r].text&&((n=m[r+1])&&">"==n.tag&&(n.indent=m[r].text.toString()),m.splice(r,1));else t||m.push({tag:"\n"});g=!1,b=m.length}function k(e,t){var n="="+w,r=e.indexOf(n,t),i=c(e.substring(e.indexOf("=",t)+1,r)).split(" ");return y=i[0],w=i[i.length-1],r+n.length-1}for(r&&(r=r.split(" "),y=r[0],w=r[1]),v=0;v<i;v++)d==a?u(y,n,v)?(--v,E(),d=o):"\n"==n.charAt(v)?S(g):f+=n.charAt(v):d==o?(v+=y.length-1,p=e.tags[n.charAt(v+1)],h=p?n.charAt(v+1):"_v","="==h?(v=k(n,v),d=a):(p&&v++,d=s),g=v):u(w,n,v)?(m.push({tag:h,n:c(f),otag:y,ctag:w,i:"/"==h?g-y.length:v+w.length}),f="",v+=w.length-1,d=a,"{"==h&&("}}"==w?v++:l(m[m.length-1]))):f+=n.charAt(v);return S(g,!0),m};var d={_t:!0,"\n":!0,$:!0,"/":!0};function h(t,n,r,i){var a=[],o=null,s=null,l=null;s=r[r.length-1];while(t.length>0){if(l=t.shift(),s&&"<"==s.tag&&!(l.tag in d))throw new Error("Illegal content in < super tag.");if(e.tags[l.tag]<=e.tags["$"]||p(l,i))r.push(l),l.nodes=h(t,l.tag,r,i);else{if("/"==l.tag){if(0===r.length)throw new Error("Closing tag without opener: /"+l.n);if(o=r.pop(),l.n!=o.n&&!f(l.n,o.n,i))throw new Error("Nesting error: "+o.n+" vs. "+l.n);return o.end=l.i,a}"\n"==l.tag&&(l.last=0==t.length||"\n"==t[0].tag)}a.push(l)}if(r.length>0)throw new Error("missing closing tag: "+r.pop().n);return a}function p(e,t){for(var n=0,r=t.length;n<r;n++)if(t[n].o==e.n)return e.tag="#",!0}function f(e,t,n){for(var r=0,i=n.length;r<i;r++)if(n[r].c==e&&n[r].o==t)return!0}function m(e){var t=[];for(var n in e)t.push('"'+b(n)+'": function(c,p,t,i) {'+e[n]+"}");return"{ "+t.join(",")+" }"}function g(e){var t=[];for(var n in e.partials)t.push('"'+b(n)+'":{name:"'+b(e.partials[n].name)+'", '+g(e.partials[n])+"}");return"partials: {"+t.join(",")+"}, subs: "+m(e.subs)}e.stringify=function(t,n,r){return"{code: function (c,p,i) { "+e.wrapMain(t.code)+" },"+g(t)+"}"};var v=0;function b(e){return e.replace(a,"\\\\").replace(n,'\\"').replace(r,"\\n").replace(i,"\\r").replace(o,"\\u2028").replace(s,"\\u2029")}function y(e){return~e.indexOf(".")?"d":"f"}function w(e,t){var n="<"+(t.prefix||""),r=n+e.n+v++;return t.partials[r]={name:e.n,partials:{}},t.code+='t.b(t.rp("'+b(r)+'",c,p,"'+(e.indent||"")+'"));',r}function E(e,t){t.code+="t.b(t.t(t."+y(e.n)+'("'+b(e.n)+'",c,p,0)));'}function _(e){return"t.b("+e+");"}e.generate=function(t,n,r){v=0;var i={code:"",subs:{},partials:{}};return e.walk(t,i),r.asString?this.stringify(i,n,r):this.makeTemplate(i,n,r)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,t,n){var r=this.makePartials(e);return r.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(r,t,this,n)},e.makePartials=function(e){var t,n={subs:{},partials:e.partials,name:e.name};for(t in n.partials)n.partials[t]=this.makePartials(n.partials[t]);for(t in e.subs)n.subs[t]=new Function("c","p","t","i",e.subs[t]);return n},e.codegen={"#":function(t,n){n.code+="if(t.s(t."+y(t.n)+'("'+b(t.n)+'",c,p,1),c,p,0,'+t.i+","+t.end+',"'+t.otag+" "+t.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(t.nodes,n),n.code+="});c.pop();}"},"^":function(t,n){n.code+="if(!t.s(t."+y(t.n)+'("'+b(t.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(t.nodes,n),n.code+="};"},">":w,"<":function(t,n){var r={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,r);var i=n.partials[w(t,n)];i.subs=r.subs,i.partials=r.partials},$:function(t,n){var r={subs:{},code:"",partials:n.partials,prefix:t.n};e.walk(t.nodes,r),n.subs[t.n]=r.code,n.inPartial||(n.code+='t.sub("'+b(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=_('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+y(e.n)+'("'+b(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=_('"'+b(e.text)+'"')},"{":E,"&":E},e.walk=function(t,n){for(var r,i=0,a=t.length;i<a;i++)r=e.codegen[t[i].tag],r&&r(t[i],n);return n},e.parse=function(e,t,n){return n=n||{},h(e,"",[],n.sectionTags||[])},e.cache={},e.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},e.compile=function(t,n){n=n||{};var r=e.cacheKey(t,n),i=this.cache[r];if(i){var a=i.partials;for(var o in a)delete a[o].instance;return i}return i=this.generate(this.parse(this.scan(t,n.delimiters),t,n),t,n),this.cache[r]=i}})(t)},62133:function(e,t,n){var r=n(51815);r.Template=n(72252).Template,r.template=r.Template,e.exports=r},72252:function(e,t){(function(e){function t(e,t,n){var r;return t&&"object"==typeof t&&(void 0!==t[e]?r=t[e]:n&&t.get&&"function"==typeof t.get&&(r=t.get(e))),r}function n(e,t,n,r,i,a){function o(){}function s(){}var l;o.prototype=e,s.prototype=e.subs;var c=new o;for(l in c.subs=new s,c.subsText={},c.buf="",r=r||{},c.stackSubs=r,c.subsText=a,t)r[l]||(r[l]=t[l]);for(l in r)c.subs[l]=r[l];for(l in i=i||{},c.stackPartials=i,n)i[l]||(i[l]=n[l]);for(l in i)c.partials[l]=i[l];return c}e.Template=function(e,t,n,r){e=e||{},this.r=e.code||this.r,this.c=n,this.options=r||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,n){return""},v:u,t:c,render:function(e,t,n){return this.ri([e],t||{},n)},ri:function(e,t,n){return this.r(e,t,n)},ep:function(e,t){var r=this.partials[e],i=t[r.name];if(r.instance&&r.base==i)return r.instance;if("string"==typeof i){if(!this.c)throw new Error("No compiler available.");i=this.c.compile(i,this.options)}if(!i)return null;if(this.partials[e].base=i,r.subs){for(key in t.stackText||(t.stackText={}),r.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);i=n(i,r.subs,r.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=i,i},rp:function(e,t,n,r){var i=this.ep(e,n);return i?i.ri(t,n,r):""},rs:function(e,t,n){var r=e[e.length-1];if(d(r))for(var i=0;i<r.length;i++)e.push(r[i]),n(e,t,this),e.pop();else n(e,t,this)},s:function(e,t,n,r,i,a,o){var s;return(!d(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,t,n,r,i,a,o)),s=!!e,!r&&s&&t&&t.push("object"==typeof e?e:t[t.length-1]),s)},d:function(e,n,r,i){var a,o=e.split("."),s=this.f(o[0],n,r,i),l=this.options.modelGet,c=null;if("."===e&&d(n[n.length-2]))s=n[n.length-1];else for(var u=1;u<o.length;u++)a=t(o[u],s,l),void 0!==a?(c=s,s=a):s="";return!(i&&!s)&&(i||"function"!=typeof s||(n.push(c),s=this.mv(s,n,r),n.pop()),s)},f:function(e,n,r,i){for(var a=!1,o=null,s=!1,l=this.options.modelGet,c=n.length-1;c>=0;c--)if(o=n[c],a=t(e,o,l),void 0!==a){s=!0;break}return s?(i||"function"!=typeof a||(a=this.mv(a,n,r)),a):!i&&""},ls:function(e,t,n,r,i){var a=this.options.delimiters;return this.options.delimiters=i,this.b(this.ct(c(e.call(t,r)),t,n)),this.options.delimiters=a,!1},ct:function(e,t,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,n)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,n,r,i,a,o){var s,l=t[t.length-1],c=e.call(l);return"function"==typeof c?!!r||(s=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(c,l,n,s.substring(i,a),o)):c},mv:function(e,t,n){var r=t[t.length-1],i=e.call(r);return"function"==typeof i?this.ct(c(i.call(r)),r,n):i},sub:function(e,t,n,r){var i=this.subs[e];i&&(this.activeSub=e,i(t,n,this,r),this.activeSub=!1)}};var r=/&/g,i=/</g,a=/>/g,o=/\'/g,s=/\"/g,l=/[&<>\"\']/;function c(e){return String(null===e||void 0===e?"":e)}function u(e){return e=c(e),l.test(e)?e.replace(r,"&amp;").replace(i,"&lt;").replace(a,"&gt;").replace(o,"&#39;").replace(s,"&quot;"):e}var d=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}})(t)},27500:function(e,t,n){var r=n(4865),i=n(75442),a=e.exports;for(var o in r)r.hasOwnProperty(o)&&(a[o]=r[o]);function s(e){if("string"===typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}a.request=function(e,t){return e=s(e),r.request.call(this,e,t)},a.get=function(e,t){return e=s(e),r.get.call(this,e,t)}},36313:function(e,t,n){var r=n(33486)["hp"];(function(){var t;t="undefined"!==typeof e.exports?n(86530):window.PNGlib;var i=function(e,t){if("string"!==typeof e||e.length<15)throw"A hash of at least 15 characters is required.";this.defaults={background:[240,240,240,255],margin:.08,size:64,saturation:.7,brightness:.5,format:"png"},this.options="object"===typeof t?t:this.defaults,"number"===typeof arguments[1]&&(this.options.size=arguments[1]),arguments[2]&&(this.options.margin=arguments[2]),this.hash=e,this.background=this.options.background||this.defaults.background,this.size=this.options.size||this.defaults.size,this.format=this.options.format||this.defaults.format,this.margin=void 0!==this.options.margin?this.options.margin:this.defaults.margin;var n=parseInt(this.hash.substr(-7),16)/268435455,r=this.options.saturation||this.defaults.saturation,i=this.options.brightness||this.defaults.brightness;this.foreground=this.options.foreground||this.hsl2rgb(n,r,i)};i.prototype={background:null,foreground:null,hash:null,margin:null,size:null,format:null,image:function(){return this.isSvg()?new a(this.size,this.foreground,this.background):new t(this.size,this.size,256)},render:function(){var e,t,n=this.image(),r=this.size,i=Math.floor(r*this.margin),a=Math.floor((r-2*i)/5),o=Math.floor((r-5*a)/2),s=n.color.apply(n,this.background),l=n.color.apply(n,this.foreground);for(e=0;e<15;e++)t=parseInt(this.hash.charAt(e),16)%2?s:l,e<5?this.rectangle(2*a+o,e*a+o,a,a,t,n):e<10?(this.rectangle(1*a+o,(e-5)*a+o,a,a,t,n),this.rectangle(3*a+o,(e-5)*a+o,a,a,t,n)):e<15&&(this.rectangle(0*a+o,(e-10)*a+o,a,a,t,n),this.rectangle(4*a+o,(e-10)*a+o,a,a,t,n));return n},rectangle:function(e,t,n,r,i,a){var o,s;if(this.isSvg())a.rectangles.push({x:e,y:t,w:n,h:r,color:i});else for(o=e;o<e+n;o++)for(s=t;s<t+r;s++)a.buffer[a.index(o,s)]=i},hsl2rgb:function(e,t,n){return e*=6,t=[n+=t*=n<.5?n:1-n,n-e%1*t*2,n-=t*=2,n,n+e%1*t,n+t],[255*t[~~e%6],255*t[(16|e)%6],255*t[(8|e)%6]]},toString:function(e){return e?this.render().getDump():this.render().getBase64()},isSvg:function(){return this.format.match(/svg/i)}};var a=function(e,t,n){this.size=e,this.foreground=this.color.apply(this,t),this.background=this.color.apply(this,n),this.rectangles=[]};a.prototype={size:null,foreground:null,background:null,rectangles:null,color:function(e,t,n,r){var i=[e,t,n].map(Math.round);return i.push(r>=0&&r<=255?r/255:1),"rgba("+i.join(",")+")"},getDump:function(){var e,t,n,r=this.foreground,i=this.background,a=.005*this.size;for(t="<svg xmlns='http://www.w3.org/2000/svg' width='"+this.size+"' height='"+this.size+"' style='background-color:"+i+";'><g style='fill:"+r+"; stroke:"+r+"; stroke-width:"+a+";'>",e=0;e<this.rectangles.length;e++)n=this.rectangles[e],n.color!=i&&(t+="<rect x='"+n.x+"' y='"+n.y+"' width='"+n.w+"' height='"+n.h+"'/>");return t+="</g></svg>",t},getBase64:function(){if("function"===typeof btoa)return btoa(this.getDump());if(r)return new r(this.getDump(),"binary").toString("base64");throw"Cannot generate base64 output"}},"undefined"!==typeof e.exports?e.exports=i:window.Identicon=i})()},86530:function(e){
/**
* A handy class to calculate color values.
*
* @version 1.0
* @author Robert Eisele <robert@xarg.org>
* @copyright Copyright (c) 2010, Robert Eisele
* @link http://www.xarg.org/2010/03/generate-client-side-png-files-using-javascript/
* @license http://www.opensource.org/licenses/bsd-license.php BSD License
*
*/
(function(){function t(e,t){for(var n=2;n<arguments.length;n++)for(var r=0;r<arguments[n].length;r++)e[t++]=arguments[n].charAt(r)}function n(e){return String.fromCharCode(e>>8&255,255&e)}function r(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function i(e){return String.fromCharCode(255&e,e>>8&255)}var a=function(e,a,o){this.width=e,this.height=a,this.depth=o,this.pix_size=a*(e+1),this.data_size=2+this.pix_size+5*Math.floor((65534+this.pix_size)/65535)+4,this.ihdr_offs=0,this.ihdr_size=25,this.plte_offs=this.ihdr_offs+this.ihdr_size,this.plte_size=8+3*o+4,this.trns_offs=this.plte_offs+this.plte_size,this.trns_size=8+o+4,this.idat_offs=this.trns_offs+this.trns_size,this.idat_size=8+this.data_size+4,this.iend_offs=this.idat_offs+this.idat_size,this.iend_size=12,this.buffer_size=this.iend_offs+this.iend_size,this.buffer=new Array,this.palette=new Object,this.pindex=0;for(var s=new Array,l=0;l<this.buffer_size;l++)this.buffer[l]="\0";t(this.buffer,this.ihdr_offs,r(this.ihdr_size-12),"IHDR",r(e),r(a),"\b"),t(this.buffer,this.plte_offs,r(this.plte_size-12),"PLTE"),t(this.buffer,this.trns_offs,r(this.trns_size-12),"tRNS"),t(this.buffer,this.idat_offs,r(this.idat_size-12),"IDAT"),t(this.buffer,this.iend_offs,r(this.iend_size-12),"IEND");var c=30912;c+=31-c%31,t(this.buffer,this.idat_offs+8,n(c));for(l=0;(l<<16)-1<this.pix_size;l++){var u,d;l+65535<this.pix_size?(u=65535,d="\0"):(u=this.pix_size-(l<<16)-l,d=""),t(this.buffer,this.idat_offs+8+2+(l<<16)+(l<<2),d,i(u),i(~u))}for(l=0;l<256;l++){for(var h=l,p=0;p<8;p++)h=1&h?-306674912^h>>1&2147483647:h>>1&2147483647;s[l]=h}this.index=function(e,t){var n=t*(this.width+1)+e+1,r=this.idat_offs+8+2+5*Math.floor(n/65535+1)+n;return r},this.color=function(e,t,n,r){r=r>=0?r:255;var i=((r<<8|e)<<8|t)<<8|n;if("undefined"==typeof this.palette[i]){if(this.pindex==this.depth)return"\0";var a=this.plte_offs+8+3*this.pindex;this.buffer[a+0]=String.fromCharCode(e),this.buffer[a+1]=String.fromCharCode(t),this.buffer[a+2]=String.fromCharCode(n),this.buffer[this.trns_offs+8+this.pindex]=String.fromCharCode(r),this.palette[i]=String.fromCharCode(this.pindex++)}return this.palette[i]},this.getBase64=function(){var e,t,n,r,i,a,o,s=this.getDump(),l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=s.length,u=0,d="";do{e=s.charCodeAt(u),r=e>>2,t=s.charCodeAt(u+1),i=(3&e)<<4|t>>4,n=s.charCodeAt(u+2),a=c<u+2?64:(15&t)<<2|n>>6,o=c<u+3?64:63&n,d+=l.charAt(r)+l.charAt(i)+l.charAt(a)+l.charAt(o)}while((u+=3)<c);return d},this.getDump=function(){for(var e=65521,n=5552,i=1,a=0,o=n,l=0;l<this.height;l++)for(var c=-1;c<this.width;c++)i+=this.buffer[this.index(c,l)].charCodeAt(0),a+=i,0==(o-=1)&&(i%=e,a%=e,o=n);function u(e,n,i){for(var a=-1,o=4;o<i-4;o+=1)a=s[255&(a^e[n+o].charCodeAt(0))]^a>>8&16777215;t(e,n+i-4,r(~a))}return i%=e,a%=e,t(this.buffer,this.idat_offs+this.idat_size-8,r(a<<16|i)),u(this.buffer,this.ihdr_offs,this.ihdr_size),u(this.buffer,this.plte_offs,this.plte_size),u(this.buffer,this.trns_offs,this.trns_size),u(this.buffer,this.idat_offs,this.idat_size),u(this.buffer,this.iend_offs,this.iend_size),"‰PNG\r\n\n"+this.buffer.join("")}};"undefined"!==typeof e.exports?e.exports=a:window.PNGlib=a})()},39318:function(e,t){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=256*a+e[t+d],d+=h,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),a-=c}return(p?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,c=8*a-i-1,u=(1<<c)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),t+=o+d>=1?h/l:h*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;e[n+p]=255&o,p+=f,o/=256,c-=8);e[n+p-f]|=128*m}},35615:function(e){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},55387:function(e,t,n){"use strict";var r=n(51913)(),i=n(79818),a=i("Object.prototype.toString"),o=function(e){return!(r&&e&&"object"===typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===a(e)},s=function(e){return!!o(e)||null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Array]"!==a(e)&&"[object Function]"===a(e.callee)},l=function(){return o(arguments)}();o.isLegacyArguments=s,e.exports=l?o:s},37114:function(e){e.exports=function(e){return!(!e||"string"===typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},89617:function(e){"use strict";var t,n,r=Function.prototype.toString,i="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof i&&"function"===typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,t)}catch(y){y!==n&&(i=null)}else i=null;var a=/^\s*class\b/,o=function(e){try{var t=r.call(e);return a.test(t)}catch(n){return!1}},s=function(e){try{return!o(e)&&(r.call(e),!0)}catch(t){return!1}},l=Object.prototype.toString,c="[object Object]",u="[object Function]",d="[object GeneratorFunction]",h="[object HTMLAllCollection]",p="[object HTML document.all class]",f="[object HTMLCollection]",m="function"===typeof Symbol&&!!Symbol.toStringTag,g=!(0 in[,]),v=function(){return!1};if("object"===typeof document){var b=document.all;l.call(b)===l.call(document.all)&&(v=function(e){if((g||!e)&&("undefined"===typeof e||"object"===typeof e))try{var t=l.call(e);return(t===h||t===p||t===f||t===c)&&null==e("")}catch(n){}return!1})}e.exports=i?function(e){if(v(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;try{i(e,null,t)}catch(r){if(r!==n)return!1}return!o(e)&&s(e)}:function(e){if(v(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if(m)return s(e);if(o(e))return!1;var t=l.call(e);return!(t!==u&&t!==d&&!/^\[object HTML/.test(t))&&s(e)}},2625:function(e,t,n){"use strict";var r,i=n(14607),a=n(46132),o=a(/^\s*(?:function)?\*/),s=n(51913)(),l=n(46369),c=i("Object.prototype.toString"),u=i("Function.prototype.toString"),d=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}};e.exports=function(e){if("function"!==typeof e)return!1;if(o(u(e)))return!0;if(!s){var t=c(e);return"[object GeneratorFunction]"===t}if(!l)return!1;if("undefined"===typeof r){var n=d();r=!!n&&l(n)}return l(e)===r}},98006:function(e){"use strict";e.exports=function(e){return e!==e}},7838:function(e,t,n){"use strict";var r=n(28498),i=n(41857),a=n(98006),o=n(41591),s=n(61641),l=r(o(),Number);i(l,{getPolyfill:o,implementation:a,shim:s}),e.exports=l},41591:function(e,t,n){"use strict";var r=n(98006);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},61641:function(e,t,n){"use strict";var r=n(41857),i=n(41591);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},52672:function(e,t,n){"use strict";var r,i=n(14607),a=n(51913)(),o=n(78554),s=n(69336);if(a){var l=i("RegExp.prototype.exec"),c={},u=function(){throw c},d={toString:u,valueOf:u};"symbol"===typeof Symbol.toPrimitive&&(d[Symbol.toPrimitive]=u),r=function(e){if(!e||"object"!==typeof e)return!1;var t=s(e,"lastIndex"),n=t&&o(t,"value");if(!n)return!1;try{l(e,d)}catch(r){return r===c}}}else{var h=i("Object.prototype.toString"),p="[object RegExp]";r=function(e){return!(!e||"object"!==typeof e&&"function"!==typeof e)&&h(e)===p}}e.exports=r},95943:function(e,t,n){"use strict";var r=n(52730);e.exports=function(e){return!!r(e)}},24138:function(e){e.exports=i;var t=/^(?:\w+:)?\/\/(\S+)$/,n=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,r=/^[^\s\.]+\.\S{2,}$/;function i(e){if("string"!==typeof e)return!1;var i=e.match(t);if(!i)return!1;var a=i[1];return!!a&&!(!n.test(a)&&!r.test(a))}},39198:function(e,t,n){var r=n(33486)["hp"],i={userAgent:!1},a={},o="11.0.0",s="jsrsasign(all) 11.0.0 (2024-01-16) (c) 2010-2023 Kenji Urushima | kjur.github.io/jsrsasign/license",l=l||function(e,t){var n={},r=n.lib={},i=r.Base=function(){function e(){}return{extend:function(t){e.prototype=this;var n=new e;return t&&n.mixIn(t),n.hasOwnProperty("init")||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),a=r.WordArray=i.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||s).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a<i;a++){var o=n[a>>>2]>>>24-a%4*8&255;t[r+a>>>2]|=o<<24-(r+a)%4*8}else for(a=0;a<i;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n=[],r=0;r<t;r+=4)n.push(4294967296*e.random()|0);return new a.init(n,t)}}),o=n.enc={},s=o.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},l=o.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},c=o.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},u=r.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=4*o,l=i/s;l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0);var c=l*o,u=e.min(4*c,i);if(c){for(var d=0;d<c;d+=o)this._doProcessBlock(r,d);var h=r.splice(0,c);n.sigBytes-=u}return new a.init(h,u)},clone:function(){var e=i.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),d=(r.Hasher=u.extend({cfg:i.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){u.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new d.HMAC.init(e,n).finalize(t)}}}),n.algo={});return n}(Math);(function(e){var t=l,n=t.lib,r=n.Base,i=n.WordArray;t=t.x64={};t.Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),t.WordArray=r.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var a=e[r];n.push(a.high),n.push(a.low)}return i.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,i=0;i<n;i++)t[i]=t[i].clone();return e}})})(),l.lib.Cipher||function(e){var t=l,n=t.lib,r=n.Base,i=n.WordArray,a=n.BufferedBlockAlgorithm,o=t.enc.Base64,s=t.algo.EvpKDF,c=n.Cipher=a.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(e){return{encrypt:function(t,n,r){return("string"==typeof n?m:f).encrypt(e,t,n,r)},decrypt:function(t,n,r){return("string"==typeof n?m:f).decrypt(e,t,n,r)}}}});n.StreamCipher=c.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var u=t.mode={},d=function(t,n,r){var i=this._iv;i?this._iv=e:i=this._prevBlock;for(var a=0;a<r;a++)t[n+a]^=i[a]},h=(n.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}})).extend();h.Encryptor=h.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize;d.call(this,e,t,r),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+r)}}),h.Decryptor=h.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=e.slice(t,t+r);n.decryptBlock(e,t),d.call(this,e,t,r),this._prevBlock=i}}),u=u.CBC=h,h=(t.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=(n=n-e.sigBytes%n,n<<24|n<<16|n<<8|n),a=[],o=0;o<n;o+=4)a.push(r);n=i.create(a,n),e.concat(n)},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},n.BlockCipher=c.extend({cfg:c.cfg.extend({mode:u,padding:h}),reset:function(){c.reset.call(this);var e=this.cfg,t=e.iv;e=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=e.createEncryptor;else n=e.createDecryptor,this._minBufferSize=1;this._mode=n.call(e,this,t&&t.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4});var p=n.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),f=(u=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext;return e=e.salt,(e?i.create([1398893684,1701076831]).concat(e).concat(t):t).toString(o)},parse:function(e){e=o.parse(e);var t=e.words;if(1398893684==t[0]&&1701076831==t[1]){var n=i.create(t.slice(2,4));t.splice(0,4),e.sigBytes-=16}return p.create({ciphertext:e,salt:n})}},n.SerializableCipher=r.extend({cfg:r.extend({format:u}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r);return t=i.finalize(t),i=i.cfg,p.create({ciphertext:t,key:n,iv:i.iv,algorithm:e,mode:i.mode,padding:i.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}})),m=(t=(t.kdf={}).OpenSSL={execute:function(e,t,n,r){return r||(r=i.random(8)),e=s.create({keySize:t+n}).compute(e,r),n=i.create(e.words.slice(t),4*n),e.sigBytes=4*t,p.create({key:e,iv:n,salt:r})}},n.PasswordBasedCipher=f.extend({cfg:f.cfg.extend({kdf:t}),encrypt:function(e,t,n,r){return r=this.cfg.extend(r),n=r.kdf.execute(n,e.keySize,e.ivSize),r.iv=n.iv,e=f.encrypt.call(this,e,t,n.key,r),e.mixIn(n),e},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),n=r.kdf.execute(n,e.keySize,e.ivSize,t.salt),r.iv=n.iv,f.decrypt.call(this,e,t,n.key,r)}}))}(),function(){for(var e=l,t=e.lib.BlockCipher,n=e.algo,r=[],i=[],a=[],o=[],s=[],c=[],u=[],d=[],h=[],p=[],f=[],m=0;256>m;m++)f[m]=128>m?m<<1:m<<1^283;var g=0,v=0;for(m=0;256>m;m++){var b=v^v<<1^v<<2^v<<3^v<<4;b=b>>>8^255&b^99;r[g]=b,i[b]=g;var y=f[g],w=f[y],E=f[w],_=257*f[b]^16843008*b;a[g]=_<<24|_>>>8,o[g]=_<<16|_>>>16,s[g]=_<<8|_>>>24,c[g]=_,_=16843009*E^65537*w^257*y^16843008*g,u[b]=_<<24|_>>>8,d[b]=_<<16|_>>>16,h[b]=_<<8|_>>>24,p[b]=_,g?(g=y^f[f[f[E^y]]],v^=f[f[v]]):g=v=1}var S=[0,1,2,4,8,16,32,64,128,27,54];n=n.AES=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes/4,i=(e=4*((this._nRounds=n+6)+1),this._keySchedule=[]),a=0;a<e;a++)if(a<n)i[a]=t[a];else{var o=i[a-1];a%n?6<n&&4==a%n&&(o=r[o>>>24]<<24|r[o>>>16&255]<<16|r[o>>>8&255]<<8|r[255&o]):(o=o<<8|o>>>24,o=r[o>>>24]<<24|r[o>>>16&255]<<16|r[o>>>8&255]<<8|r[255&o],o^=S[a/n|0]<<24),i[a]=i[a-n]^o}for(t=this._invKeySchedule=[],n=0;n<e;n++)a=e-n,o=n%4?i[a]:i[a-4],t[n]=4>n||4>=a?o:u[r[o>>>24]]^d[r[o>>>16&255]]^h[r[o>>>8&255]]^p[r[255&o]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,o,s,c,r)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,h,p,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,a,o,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],h=e[t+3]^n[3],p=4,f=1;f<l;f++){var m=r[c>>>24]^i[u>>>16&255]^a[d>>>8&255]^o[255&h]^n[p++],g=r[u>>>24]^i[d>>>16&255]^a[h>>>8&255]^o[255&c]^n[p++],v=r[d>>>24]^i[h>>>16&255]^a[c>>>8&255]^o[255&u]^n[p++];h=r[h>>>24]^i[c>>>16&255]^a[u>>>8&255]^o[255&d]^n[p++],c=m,u=g,d=v}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[p++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[p++],v=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[p++],h=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[p++],e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=h},keySize:8});e.AES=t._createHelper(n)}(),function(){function e(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function t(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}var n=l,r=n.lib,i=r.WordArray,a=(r=r.BlockCipher,n.algo),o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=a.DES=r.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;56>n;n++){var r=o[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(e=this._subKeys=[],r=0;16>r;r++){var i=e[r]=[],a=c[r];for(n=0;24>n;n++)i[n/6|0]|=t[(s[n]-1+a)%28]<<31-n%6,i[4+(n/6|0)]|=t[28+(s[n+24]-1+a)%28]<<31-n%6;for(i[0]=i[0]<<1|i[0]>>>31,n=1;7>n;n++)i[n]>>>=4*(n-1)+3;i[7]=i[7]<<5|i[7]>>>27}for(t=this._invSubKeys=[],n=0;16>n;n++)t[n]=e[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(n,r,i){this._lBlock=n[r],this._rBlock=n[r+1],e.call(this,4,252645135),e.call(this,16,65535),t.call(this,2,858993459),t.call(this,8,16711935),e.call(this,1,1431655765);for(var a=0;16>a;a++){for(var o=i[a],s=this._lBlock,l=this._rBlock,c=0,h=0;8>h;h++)c|=u[h][((l^o[h])&d[h])>>>0];this._lBlock=l,this._rBlock=s^c}i=this._lBlock,this._lBlock=this._rBlock,this._rBlock=i,e.call(this,1,1431655765),t.call(this,8,16711935),t.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),n[r]=this._lBlock,n[r+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});n.DES=r._createHelper(h),a=a.TripleDES=r.extend({_doReset:function(){var e=this._key.words;this._des1=h.createEncryptor(i.create(e.slice(0,2))),this._des2=h.createEncryptor(i.create(e.slice(2,4))),this._des3=h.createEncryptor(i.create(e.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2}),n.TripleDES=r._createHelper(a)}(),function(){var e=l,t=e.lib.WordArray;e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp(),e=[];for(var i=0;i<n;i+=3)for(var a=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,o=0;4>o&&i+.75*o<n;o++)e.push(r.charAt(a>>>6*(3-o)&63));if(t=r.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var n=e.length,r=this._map,i=r.charAt(64);i&&(i=e.indexOf(i),-1!=i&&(n=i));i=[];for(var a=0,o=0;o<n;o++)if(o%4){var s=r.indexOf(e.charAt(o-1))<<o%4*2,l=r.indexOf(e.charAt(o))>>>6-o%4*2;i[a>>>2]|=(s|l)<<24-a%4*8,a++}return t.create(i,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(e){function t(e,t,n,r,i,a,o){return e=e+(t&n|~t&r)+i+o,(e<<a|e>>>32-a)+t}function n(e,t,n,r,i,a,o){return e=e+(t&r|n&~r)+i+o,(e<<a|e>>>32-a)+t}function r(e,t,n,r,i,a,o){return e=e+(t^n^r)+i+o,(e<<a|e>>>32-a)+t}function i(e,t,n,r,i,a,o){return e=e+(n^(t|~r))+i+o,(e<<a|e>>>32-a)+t}for(var a=l,o=a.lib,s=o.WordArray,c=o.Hasher,u=(o=a.algo,[]),d=0;64>d;d++)u[d]=4294967296*e.abs(e.sin(d+1))|0;o=o.MD5=c.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,a){for(var o=0;16>o;o++){var s=a+o,l=e[s];e[s]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}o=this._hash.words,s=e[a+0],l=e[a+1];var c=e[a+2],d=e[a+3],h=e[a+4],p=e[a+5],f=e[a+6],m=e[a+7],g=e[a+8],v=e[a+9],b=e[a+10],y=e[a+11],w=e[a+12],E=e[a+13],_=e[a+14],S=e[a+15],k=o[0],x=o[1],A=o[2],N=o[3];k=t(k,x,A,N,s,7,u[0]),N=t(N,k,x,A,l,12,u[1]),A=t(A,N,k,x,c,17,u[2]),x=t(x,A,N,k,d,22,u[3]),k=t(k,x,A,N,h,7,u[4]),N=t(N,k,x,A,p,12,u[5]),A=t(A,N,k,x,f,17,u[6]),x=t(x,A,N,k,m,22,u[7]),k=t(k,x,A,N,g,7,u[8]),N=t(N,k,x,A,v,12,u[9]),A=t(A,N,k,x,b,17,u[10]),x=t(x,A,N,k,y,22,u[11]),k=t(k,x,A,N,w,7,u[12]),N=t(N,k,x,A,E,12,u[13]),A=t(A,N,k,x,_,17,u[14]),x=t(x,A,N,k,S,22,u[15]),k=n(k,x,A,N,l,5,u[16]),N=n(N,k,x,A,f,9,u[17]),A=n(A,N,k,x,y,14,u[18]),x=n(x,A,N,k,s,20,u[19]),k=n(k,x,A,N,p,5,u[20]),N=n(N,k,x,A,b,9,u[21]),A=n(A,N,k,x,S,14,u[22]),x=n(x,A,N,k,h,20,u[23]),k=n(k,x,A,N,v,5,u[24]),N=n(N,k,x,A,_,9,u[25]),A=n(A,N,k,x,d,14,u[26]),x=n(x,A,N,k,g,20,u[27]),k=n(k,x,A,N,E,5,u[28]),N=n(N,k,x,A,c,9,u[29]),A=n(A,N,k,x,m,14,u[30]),x=n(x,A,N,k,w,20,u[31]),k=r(k,x,A,N,p,4,u[32]),N=r(N,k,x,A,g,11,u[33]),A=r(A,N,k,x,y,16,u[34]),x=r(x,A,N,k,_,23,u[35]),k=r(k,x,A,N,l,4,u[36]),N=r(N,k,x,A,h,11,u[37]),A=r(A,N,k,x,m,16,u[38]),x=r(x,A,N,k,b,23,u[39]),k=r(k,x,A,N,E,4,u[40]),N=r(N,k,x,A,s,11,u[41]),A=r(A,N,k,x,d,16,u[42]),x=r(x,A,N,k,f,23,u[43]),k=r(k,x,A,N,v,4,u[44]),N=r(N,k,x,A,w,11,u[45]),A=r(A,N,k,x,S,16,u[46]),x=r(x,A,N,k,c,23,u[47]),k=i(k,x,A,N,s,6,u[48]),N=i(N,k,x,A,m,10,u[49]),A=i(A,N,k,x,_,15,u[50]),x=i(x,A,N,k,p,21,u[51]),k=i(k,x,A,N,w,6,u[52]),N=i(N,k,x,A,d,10,u[53]),A=i(A,N,k,x,b,15,u[54]),x=i(x,A,N,k,l,21,u[55]),k=i(k,x,A,N,g,6,u[56]),N=i(N,k,x,A,S,10,u[57]),A=i(A,N,k,x,f,15,u[58]),x=i(x,A,N,k,E,21,u[59]),k=i(k,x,A,N,h,6,u[60]),N=i(N,k,x,A,y,10,u[61]),A=i(A,N,k,x,c,15,u[62]),x=i(x,A,N,k,v,21,u[63]);o[0]=o[0]+k|0,o[1]=o[1]+x|0,o[2]=o[2]+A|0,o[3]=o[3]+N|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var a=e.floor(r/4294967296);for(n[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(n.length+1),this._process(),t=this._hash,n=t.words,r=0;4>r;r++)i=n[r],n[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8);return t},clone:function(){var e=c.clone.call(this);return e._hash=this._hash.clone(),e}}),a.MD5=c._createHelper(o),a.HmacMD5=c._createHmacHelper(o)}(Math),function(){var e=l,t=e.lib,n=t.WordArray,r=t.Hasher,i=[];t=e.algo.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],a=n[1],o=n[2],s=n[3],l=n[4],c=0;80>c;c++){if(16>c)i[c]=0|e[t+c];else{var u=i[c-3]^i[c-8]^i[c-14]^i[c-16];i[c]=u<<1|u>>>31}u=(r<<5|r>>>27)+l+i[c],u=20>c?u+(1518500249+(a&o|~a&s)):40>c?u+(1859775393+(a^o^s)):60>c?u+((a&o|a&s|o&s)-1894007588):u+((a^o^s)-899497514),l=s,s=o,o=a<<30|a>>>2,a=r,r=u}n[0]=n[0]+r|0,n[1]=n[1]+a|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=r._createHelper(t),e.HmacSHA1=r._createHmacHelper(t)}(),function(e){for(var t=l,n=t.lib,r=n.WordArray,i=n.Hasher,a=(n=t.algo,[]),o=[],s=function(e){return 4294967296*(e-(0|e))|0},c=2,u=0;64>u;){var d;e:{d=c;for(var h=e.sqrt(d),p=2;p<=h;p++)if(!(d%p)){d=!1;break e}d=!0}d&&(8>u&&(a[u]=s(e.pow(c,.5))),o[u]=s(e.pow(c,1/3)),u++),c++}var f=[];n=n.SHA256=i.extend({_doReset:function(){this._hash=new r.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],s=n[3],l=n[4],c=n[5],u=n[6],d=n[7],h=0;64>h;h++){if(16>h)f[h]=0|e[t+h];else{var p=f[h-15],m=f[h-2];f[h]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+f[h-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+f[h-16]}p=d+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&c^~l&u)+o[h]+f[h],m=((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+(r&i^r&a^i&a),d=u,u=c,c=l,l=s+p|0,s=a,a=i,i=r,r=p+m|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0,n[5]=n[5]+c|0,n[6]=n[6]+u|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(n),t.HmacSHA256=i._createHmacHelper(n)}(Math),function(){var e=l,t=e.lib.WordArray,n=e.algo,r=n.SHA256;n=n.SHA224=r.extend({_doReset:function(){this._hash=new t.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=r._doFinalize.call(this);return e.sigBytes-=4,e}});e.SHA224=r._createHelper(n),e.HmacSHA224=r._createHmacHelper(n)}(),function(){function e(){return i.create.apply(i,arguments)}for(var t=l,n=t.lib.Hasher,r=t.x64,i=r.Word,a=r.WordArray,o=(r=t.algo,[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)]),s=[],c=0;80>c;c++)s[c]=e();r=r.SHA512=n.extend({_doReset:function(){this._hash=new a.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],l=n[3],c=n[4],u=n[5],d=n[6],h=(n=n[7],r.high),p=r.low,f=i.high,m=i.low,g=a.high,v=a.low,b=l.high,y=l.low,w=c.high,E=c.low,_=u.high,S=u.low,k=d.high,x=d.low,A=n.high,N=n.low,C=h,T=p,R=f,O=m,I=g,L=v,D=b,P=y,M=w,B=E,F=_,$=S,U=k,j=x,V=A,K=N,H=0;80>H;H++){var G=s[H];if(16>H)var z=G.high=0|e[t+2*H],q=G.low=0|e[t+2*H+1];else{z=s[H-15],q=z.high;var X=z.low,W=(z=(q>>>1|X<<31)^(q>>>8|X<<24)^q>>>7,X=(X>>>1|q<<31)^(X>>>8|q<<24)^(X>>>7|q<<25),s[H-2]),Y=(q=W.high,W.low),Q=(W=(q>>>19|Y<<13)^(q<<3|Y>>>29)^q>>>6,Y=(Y>>>19|q<<13)^(Y<<3|q>>>29)^(Y>>>6|q<<26),q=s[H-7],q.high),J=s[H-16],Z=J.high;J=J.low,q=X+q.low,z=z+Q+(q>>>0<X>>>0?1:0),q=q+Y,z=z+W+(q>>>0<Y>>>0?1:0),q=q+J,z=z+Z+(q>>>0<J>>>0?1:0);G.high=z,G.low=q}Q=M&F^~M&U,J=B&$^~B&j,G=C&R^C&I^R&I;var ee=T&O^T&L^O&L,te=(X=(C>>>28|T<<4)^(C<<30|T>>>2)^(C<<25|T>>>7),W=(T>>>28|C<<4)^(T<<30|C>>>2)^(T<<25|C>>>7),Y=o[H],Y.high),ne=Y.low;Y=K+((B>>>14|M<<18)^(B>>>18|M<<14)^(B<<23|M>>>9)),Z=V+((M>>>14|B<<18)^(M>>>18|B<<14)^(M<<23|B>>>9))+(Y>>>0<K>>>0?1:0),Y=Y+J,Z=Z+Q+(Y>>>0<J>>>0?1:0),Y=Y+ne,Z=Z+te+(Y>>>0<ne>>>0?1:0),Y=Y+q,Z=Z+z+(Y>>>0<q>>>0?1:0),q=W+ee,G=X+G+(q>>>0<W>>>0?1:0),V=U,K=j,U=F,j=$,F=M,$=B,B=P+Y|0,M=D+Z+(B>>>0<P>>>0?1:0)|0,D=I,P=L,I=R,L=O,R=C,O=T,T=Y+q|0,C=Z+G+(T>>>0<Y>>>0?1:0)|0}p=r.low=p+T,r.high=h+C+(p>>>0<T>>>0?1:0),m=i.low=m+O,i.high=f+R+(m>>>0<O>>>0?1:0),v=a.low=v+L,a.high=g+I+(v>>>0<L>>>0?1:0),y=l.low=y+P,l.high=b+D+(y>>>0<P>>>0?1:0),E=c.low=E+B,c.high=w+M+(E>>>0<B>>>0?1:0),S=u.low=S+$,u.high=_+F+(S>>>0<$>>>0?1:0),x=d.low=x+j,d.high=k+U+(x>>>0<j>>>0?1:0),N=n.low=N+K,n.high=A+V+(N>>>0<K>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32}),t.SHA512=n._createHelper(r),t.HmacSHA512=n._createHmacHelper(r)}(),function(){var e=l,t=e.x64,n=t.Word,r=t.WordArray,i=(t=e.algo,t.SHA512);t=t.SHA384=i.extend({_doReset:function(){this._hash=new r.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=i._createHelper(t),e.HmacSHA384=i._createHmacHelper(t)}(),function(){var e=l,t=e.lib,n=t.WordArray,r=t.Hasher,i=(t=e.algo,n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13])),a=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),o=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),s=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),c=n.create([0,1518500249,1859775393,2400959708,2840853838]),u=n.create([1352829926,1548603684,1836072691,2053994217,0]);t=t.RIPEMD160=r.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;16>n;n++){var r=t+n,l=e[r];e[r]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}r=this._hash.words,l=c.words;var d,h,p,f,m,g,v,b,y,w,E=u.words,_=i.words,S=a.words,k=o.words,x=s.words;g=d=r[0],v=h=r[1],b=p=r[2],y=f=r[3],w=m=r[4];var A;for(n=0;80>n;n+=1)A=d+e[t+_[n]]|0,A=16>n?A+((h^p^f)+l[0]):32>n?A+((h&p|~h&f)+l[1]):48>n?A+(((h|~p)^f)+l[2]):64>n?A+((h&f|p&~f)+l[3]):A+((h^(p|~f))+l[4]),A|=0,A=A<<k[n]|A>>>32-k[n],A=A+m|0,d=m,m=f,f=p<<10|p>>>22,p=h,h=A,A=g+e[t+S[n]]|0,A=16>n?A+((v^(b|~y))+E[0]):32>n?A+((v&y|b&~y)+E[1]):48>n?A+(((v|~b)^y)+E[2]):64>n?A+((v&b|~v&y)+E[3]):A+((v^b^y)+E[4]),A|=0,A=A<<x[n]|A>>>32-x[n],A=A+w|0,g=w,w=y,y=b<<10|b>>>22,b=v,v=A;A=r[1]+p+y|0,r[1]=r[2]+f+w|0,r[2]=r[3]+m+g|0,r[3]=r[4]+d+v|0,r[4]=r[0]+h+b|0,r[0]=A},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;for(t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process(),e=this._hash,t=e.words,n=0;5>n;n++)r=t[n],t[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);return e},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});e.RIPEMD160=r._createHelper(t),e.HmacRIPEMD160=r._createHmacHelper(t)}(Math),function(){var e=l,t=e.enc.Utf8;e.algo.HMAC=e.lib.Base.extend({init:function(e,n){e=this._hasher=new e.init,"string"==typeof n&&(n=t.parse(n));var r=e.blockSize,i=4*r;n.sigBytes>i&&(n=e.finalize(n)),n.clamp();for(var a=this._oKey=n.clone(),o=this._iKey=n.clone(),s=a.words,l=o.words,c=0;c<r;c++)s[c]^=1549556828,l[c]^=909522486;a.sigBytes=o.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher;return e=t.finalize(e),t.reset(),t.finalize(this._oKey.clone().concat(e))}})}(),function(){var e=l,t=e.lib,n=t.Base,r=t.WordArray,i=(t=e.algo,t.HMAC),a=t.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:t.SHA1,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var n=this.cfg,a=i.create(n.hasher,e),o=r.create(),s=r.create([1]),l=o.words,c=s.words,u=n.keySize;for(n=n.iterations;l.length<u;){var d=a.update(t).finalize(s);a.reset();for(var h=d.words,p=h.length,f=d,m=1;m<n;m++){f=a.finalize(f),a.reset();for(var g=f.words,v=0;v<p;v++)h[v]^=g[v]}o.concat(d),c[0]++}return o.sigBytes=4*u,o}});e.PBKDF2=function(e,t,n){return a.create(n).compute(e,t)}}();
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
*/
var c,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d="=";function h(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=u.charAt(n>>6)+u.charAt(63&n);if(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=u.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=u.charAt(n>>2)+u.charAt((3&n)<<4)),d)while((3&r.length)>0)r+=d;return r}function p(e){var t,n,r,i="",a=0;for(t=0;t<e.length;++t){if(e.charAt(t)==d)break;r=u.indexOf(e.charAt(t)),r<0||(0==a?(i+=N(r>>2),n=3&r,a=1):1==a?(i+=N(n<<2|r>>4),n=15&r,a=2):2==a?(i+=N(n),i+=N(r>>2),n=3&r,a=3):(i+=N(n<<2|r>>4),i+=N(15&r),a=0))}return 1==a&&(i+=N(n<<2)),i}function f(e){var t,n=p(e),r=new Array;for(t=0;2*t<n.length;++t)r[t]=parseInt(n.substring(2*t,2*t+2),16);return r}var m=0xdeadbeefcafe,g=15715070==(16777215&m);function v(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function b(){return new v(null)}function y(e,t,n,r,i,a){while(--a>=0){var o=t*this[e++]+n[r]+i;i=Math.floor(o/67108864),n[r++]=67108863&o}return i}function w(e,t,n,r,i,a){var o=32767&t,s=t>>15;while(--a>=0){var l=32767&this[e],c=this[e++]>>15,u=s*l+c*o;l=o*l+((32767&u)<<15)+n[r]+(1073741823&i),i=(l>>>30)+(u>>>15)+s*c+(i>>>30),n[r++]=1073741823&l}return i}function E(e,t,n,r,i,a){var o=16383&t,s=t>>14;while(--a>=0){var l=16383&this[e],c=this[e++]>>14,u=s*l+c*o;l=o*l+((16383&u)<<14)+n[r]+i,i=(l>>28)+(u>>14)+s*c,n[r++]=268435455&l}return i}g&&"Microsoft Internet Explorer"==i.appName?(v.prototype.am=w,c=30):g&&"Netscape"!=i.appName?(v.prototype.am=y,c=26):(v.prototype.am=E,c=28),v.prototype.DB=c,v.prototype.DM=(1<<c)-1,v.prototype.DV=1<<c;var _=52;v.prototype.FV=Math.pow(2,_),v.prototype.F1=_-c,v.prototype.F2=2*c-_;var S,k,x="0123456789abcdefghijklmnopqrstuvwxyz",A=new Array;for(S="0".charCodeAt(0),k=0;k<=9;++k)A[S++]=k;for(S="a".charCodeAt(0),k=10;k<36;++k)A[S++]=k;for(S="A".charCodeAt(0),k=10;k<36;++k)A[S++]=k;function N(e){return x.charAt(e)}function C(e,t){var n=A[e.charCodeAt(t)];return null==n?-1:n}function T(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s}function R(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0}function O(e){var t=b();return t.fromInt(e),t}function I(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;var r=e.length,i=!1,a=0;while(--r>=0){var o=8==n?255&e[r]:C(e,r);o<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==a?this[this.t++]=o:a+n>this.DB?(this[this.t-1]|=(o&(1<<this.DB-a)-1)<<a,this[this.t++]=o>>this.DB-a):this[this.t-1]|=o<<a,a+=n,a>=this.DB&&(a-=this.DB))}8==n&&0!=(128&e[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),i&&v.ZERO.subTo(this,this)}function L(){var e=this.s&this.DM;while(this.t>0&&this[this.t-1]==e)--this.t}function D(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,i=!1,a="",o=this.t,s=this.DB-o*this.DB%t;if(o-- >0){s<this.DB&&(n=this[o]>>s)>0&&(i=!0,a=N(n));while(o>=0)s<t?(n=(this[o]&(1<<s)-1)<<t-s,n|=this[--o]>>(s+=this.DB-t)):(n=this[o]>>(s-=t)&r,s<=0&&(s+=this.DB,--o)),n>0&&(i=!0),i&&(a+=N(n))}return i?a:"0"}function P(){var e=b();return v.ZERO.subTo(this,e),e}function M(){return this.s<0?this.negate():this}function B(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(t=n-e.t,0!=t)return this.s<0?-t:t;while(--n>=0)if(0!=(t=this[n]-e[n]))return t;return 0}function F(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function $(){return this.t<=0?0:this.DB*(this.t-1)+F(this[this.t-1]^this.s&this.DM)}function U(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s}function j(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s}function V(e,t){var n,r=e%this.DB,i=this.DB-r,a=(1<<i)-1,o=Math.floor(e/this.DB),s=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)t[n+o+1]=this[n]>>i|s,s=(this[n]&a)<<r;for(n=o-1;n>=0;--n)t[n]=0;t[o]=s,t.t=this.t+o+1,t.s=this.s,t.clamp()}function K(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,a=(1<<r)-1;t[0]=this[n]>>r;for(var o=n+1;o<this.t;++o)t[o-n-1]|=(this[o]&a)<<i,t[o-n]=this[o]>>r;r>0&&(t[this.t-n-1]|=(this.s&a)<<i),t.t=this.t-n,t.clamp()}}function H(e,t){var n=0,r=0,i=Math.min(e.t,this.t);while(n<i)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){r-=e.s;while(n<this.t)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{r+=this.s;while(n<e.t)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()}function G(e,t){var n=this.abs(),r=e.abs(),i=n.t;t.t=i+r.t;while(--i>=0)t[i]=0;for(i=0;i<r.t;++i)t[i+n.t]=n.am(0,r[i],t,i,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&v.ZERO.subTo(t,t)}function z(e){var t=this.abs(),n=e.t=2*t.t;while(--n>=0)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()}function q(e,t,n){var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t)return null!=t&&t.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=b());var a=b(),o=this.s,s=e.s,l=this.DB-F(r[r.t-1]);l>0?(r.lShiftTo(l,a),i.lShiftTo(l,n)):(r.copyTo(a),i.copyTo(n));var c=a.t,u=a[c-1];if(0!=u){var d=u*(1<<this.F1)+(c>1?a[c-2]>>this.F2:0),h=this.FV/d,p=(1<<this.F1)/d,f=1<<this.F2,m=n.t,g=m-c,y=null==t?b():t;a.dlShiftTo(g,y),n.compareTo(y)>=0&&(n[n.t++]=1,n.subTo(y,n)),v.ONE.dlShiftTo(c,y),y.subTo(a,a);while(a.t<c)a[a.t++]=0;while(--g>=0){var w=n[--m]==u?this.DM:Math.floor(n[m]*h+(n[m-1]+f)*p);if((n[m]+=a.am(0,w,n,g,0,c))<w){a.dlShiftTo(g,y),n.subTo(y,n);while(n[m]<--w)n.subTo(y,n)}}null!=t&&(n.drShiftTo(c,t),o!=s&&v.ZERO.subTo(t,t)),n.t=c,n.clamp(),l>0&&n.rShiftTo(l,n),o<0&&v.ZERO.subTo(n,n)}}}function X(e){var t=b();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(v.ZERO)>0&&e.subTo(t,t),t}function W(e){this.m=e}function Y(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e}function Q(e){return e}function J(e){e.divRemTo(this.m,null,e)}function Z(e,t,n){e.multiplyTo(t,n),this.reduce(n)}function ee(e,t){e.squareTo(t),this.reduce(t)}function te(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return t=t*(2-(15&e)*t)&15,t=t*(2-(255&e)*t)&255,t=t*(2-((65535&e)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function ne(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function re(e){var t=b();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(v.ZERO)>0&&this.m.subTo(t,t),t}function ie(e){var t=b();return e.copyTo(t),this.reduce(t),t}function ae(e){while(e.t<=this.mt2)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;n=t+this.m.t,e[n]+=this.m.am(0,r,e,t,0,this.m.t);while(e[n]>=e.DV)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function oe(e,t){e.squareTo(t),this.reduce(t)}function se(e,t,n){e.multiplyTo(t,n),this.reduce(n)}function le(){return 0==(this.t>0?1&this[0]:this.s)}function ce(e,t){if(e>4294967295||e<1)return v.ONE;var n=b(),r=b(),i=t.convert(this),a=F(e)-1;i.copyTo(n);while(--a>=0)if(t.sqrTo(n,r),(e&1<<a)>0)t.mulTo(r,i,n);else{var o=n;n=r,r=o}return t.revert(n)}function ue(e,t){var n;return n=e<256||t.isEven()?new W(t):new ne(t),this.exp(e,n)}
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
*/
function de(){var e=b();return this.copyTo(e),e}function he(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function pe(){return 0==this.t?this.s:this[0]<<24>>24}function fe(){return 0==this.t?this.s:this[0]<<16>>16}function me(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function ge(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1}function ve(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),r=O(n),i=b(),a=b(),o="";this.divRemTo(r,i,a);while(i.signum()>0)o=(n+a.intValue()).toString(e).substr(1)+o,i.divRemTo(r,i,a);return a.intValue().toString(e)+o}function be(e,t){this.fromInt(0),null==t&&(t=10);for(var n=this.chunkSize(t),r=Math.pow(t,n),i=!1,a=0,o=0,s=0;s<e.length;++s){var l=C(e,s);l<0?"-"==e.charAt(s)&&0==this.signum()&&(i=!0):(o=t*o+l,++a>=n&&(this.dMultiply(r),this.dAddOffset(o,0),a=0,o=0))}a>0&&(this.dMultiply(Math.pow(t,a)),this.dAddOffset(o,0)),i&&v.ZERO.subTo(this,this)}function ye(e,t,n){if("number"==typeof t)if(e<2)this.fromInt(1);else{this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(v.ONE.shiftLeft(e-1),Ne,this),this.isEven()&&this.dAddOffset(1,0);while(!this.isProbablePrime(t))this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(v.ONE.shiftLeft(e-1),this)}else{var r=new Array,i=7&e;r.length=1+(e>>3),t.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}}function we(){var e=this.t,t=new Array;t[0]=this.s;var n,r=this.DB-e*this.DB%8,i=0;if(e-- >0){r<this.DB&&(n=this[e]>>r)!=(this.s&this.DM)>>r&&(t[i++]=n|this.s<<this.DB-r);while(e>=0)r<8?(n=(this[e]&(1<<r)-1)<<8-r,n|=this[--e]>>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(t[i++]=n)}return t}function Ee(e){return 0==this.compareTo(e)}function _e(e){return this.compareTo(e)<0?this:e}function Se(e){return this.compareTo(e)>0?this:e}function ke(e,t,n){var r,i,a=Math.min(e.t,this.t);for(r=0;r<a;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(i=e.s&this.DM,r=a;r<this.t;++r)n[r]=t(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=a;r<e.t;++r)n[r]=t(i,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()}function xe(e,t){return e&t}function Ae(e){var t=b();return this.bitwiseTo(e,xe,t),t}function Ne(e,t){return e|t}function Ce(e){var t=b();return this.bitwiseTo(e,Ne,t),t}function Te(e,t){return e^t}function Re(e){var t=b();return this.bitwiseTo(e,Te,t),t}function Oe(e,t){return e&~t}function Ie(e){var t=b();return this.bitwiseTo(e,Oe,t),t}function Le(){for(var e=b(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e}function De(e){var t=b();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t}function Pe(e){var t=b();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t}function Me(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function Be(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+Me(this[e]);return this.s<0?this.t*this.DB:-1}function Fe(e){var t=0;while(0!=e)e&=e-1,++t;return t}function $e(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=Fe(this[n]^t);return e}function Ue(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)}function je(e,t){var n=v.ONE.shiftLeft(e);return this.bitwiseTo(n,t,n),n}function Ve(e){return this.changeBit(e,Ne)}function Ke(e){return this.changeBit(e,Oe)}function He(e){return this.changeBit(e,Te)}function Ge(e,t){var n=0,r=0,i=Math.min(e.t,this.t);while(n<i)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){r+=e.s;while(n<this.t)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{r+=this.s;while(n<e.t)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()}function ze(e){var t=b();return this.addTo(e,t),t}function qe(e){var t=b();return this.subTo(e,t),t}function Xe(e){var t=b();return this.multiplyTo(e,t),t}function We(){var e=b();return this.squareTo(e),e}function Ye(e){var t=b();return this.divRemTo(e,t,null),t}function Qe(e){var t=b();return this.divRemTo(e,null,t),t}function Je(e){var t=b(),n=b();return this.divRemTo(e,t,n),new Array(t,n)}function Ze(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()}function et(e,t){if(0!=e){while(this.t<=t)this[this.t++]=0;this[t]+=e;while(this[t]>=this.DV)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}}function tt(){}function nt(e){return e}function rt(e,t,n){e.multiplyTo(t,n)}function it(e,t){e.squareTo(t)}function at(e){return this.exp(e,new tt)}function ot(e,t,n){var r,i=Math.min(this.t+e.t,t);n.s=0,n.t=i;while(i>0)n[--i]=0;for(r=n.t-this.t;i<r;++i)n[i+this.t]=this.am(0,e[i],n,i,0,this.t);for(r=Math.min(e.t,t);i<r;++i)this.am(0,e[i],n,i,0,t-i);n.clamp()}function st(e,t,n){--t;var r=n.t=this.t+e.t-t;n.s=0;while(--r>=0)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)}function lt(e){this.r2=b(),this.q3=b(),v.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}function ct(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=b();return e.copyTo(t),this.reduce(t),t}function ut(e){return e}function dt(e){e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(e.compareTo(this.r2)<0)e.dAddOffset(1,this.m.t+1);e.subTo(this.r2,e);while(e.compareTo(this.m)>=0)e.subTo(this.m,e)}function ht(e,t){e.squareTo(t),this.reduce(t)}function pt(e,t,n){e.multiplyTo(t,n),this.reduce(n)}function ft(e,t){var n,r,i=e.bitLength(),a=O(1);if(i<=0)return a;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new W(t):t.isEven()?new lt(t):new ne(t);var o=new Array,s=3,l=n-1,c=(1<<n)-1;if(o[1]=r.convert(this),n>1){var u=b();r.sqrTo(o[1],u);while(s<=c)o[s]=b(),r.mulTo(u,o[s-2],o[s]),s+=2}var d,h,p=e.t-1,f=!0,m=b();i=F(e[p])-1;while(p>=0){i>=l?d=e[p]>>i-l&c:(d=(e[p]&(1<<i+1)-1)<<l-i,p>0&&(d|=e[p-1]>>this.DB+i-l)),s=n;while(0==(1&d))d>>=1,--s;if((i-=s)<0&&(i+=this.DB,--p),f)o[d].copyTo(a),f=!1;else{while(s>1)r.sqrTo(a,m),r.sqrTo(m,a),s-=2;s>0?r.sqrTo(a,m):(h=a,a=m,m=h),r.mulTo(m,o[d],a)}while(p>=0&&0==(e[p]&1<<i))r.sqrTo(a,m),h=a,a=m,m=h,--i<0&&(i=this.DB-1,--p)}return r.revert(a)}function mt(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var i=t.getLowestSetBit(),a=n.getLowestSetBit();if(a<0)return t;i<a&&(a=i),a>0&&(t.rShiftTo(a,t),n.rShiftTo(a,n));while(t.signum()>0)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return a>0&&n.lShiftTo(a,n),n}function gt(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n}function vt(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return v.ZERO;var n=e.clone(),r=this.clone(),i=O(1),a=O(0),o=O(0),s=O(1);while(0!=n.signum()){while(n.isEven())n.rShiftTo(1,n),t?(i.isEven()&&a.isEven()||(i.addTo(this,i),a.subTo(e,a)),i.rShiftTo(1,i)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);while(r.isEven())r.rShiftTo(1,r),t?(o.isEven()&&s.isEven()||(o.addTo(this,o),s.subTo(e,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);n.compareTo(r)>=0?(n.subTo(r,n),t&&i.subTo(o,i),a.subTo(s,a)):(r.subTo(n,r),t&&o.subTo(i,o),s.subTo(a,s))}return 0!=r.compareTo(v.ONE)?v.ZERO:s.compareTo(e)>=0?s.subtract(e):s.signum()<0?(s.addTo(e,s),s.signum()<0?s.add(e):s):s}W.prototype.convert=Y,W.prototype.revert=Q,W.prototype.reduce=J,W.prototype.mulTo=Z,W.prototype.sqrTo=ee,ne.prototype.convert=re,ne.prototype.revert=ie,ne.prototype.reduce=ae,ne.prototype.mulTo=se,ne.prototype.sqrTo=oe,v.prototype.copyTo=T,v.prototype.fromInt=R,v.prototype.fromString=I,v.prototype.clamp=L,v.prototype.dlShiftTo=U,v.prototype.drShiftTo=j,v.prototype.lShiftTo=V,v.prototype.rShiftTo=K,v.prototype.subTo=H,v.prototype.multiplyTo=G,v.prototype.squareTo=z,v.prototype.divRemTo=q,v.prototype.invDigit=te,v.prototype.isEven=le,v.prototype.exp=ce,v.prototype.toString=D,v.prototype.negate=P,v.prototype.abs=M,v.prototype.compareTo=B,v.prototype.bitLength=$,v.prototype.mod=X,v.prototype.modPowInt=ue,v.ZERO=O(0),v.ONE=O(1),tt.prototype.convert=nt,tt.prototype.revert=nt,tt.prototype.mulTo=rt,tt.prototype.sqrTo=it,lt.prototype.convert=ct,lt.prototype.revert=ut,lt.prototype.reduce=dt,lt.prototype.mulTo=pt,lt.prototype.sqrTo=ht;var bt=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],yt=(1<<26)/bt[bt.length-1];function wt(e){var t,n=this.abs();if(1==n.t&&n[0]<=bt[bt.length-1]){for(t=0;t<bt.length;++t)if(n[0]==bt[t])return!0;return!1}if(n.isEven())return!1;t=1;while(t<bt.length){var r=bt[t],i=t+1;while(i<bt.length&&r<yt)r*=bt[i++];r=n.modInt(r);while(t<i)if(r%bt[t++]==0)return!1}return n.millerRabin(e)}function Et(e){var t=this.subtract(v.ONE),n=t.getLowestSetBit();if(n<=0)return!1;var r=t.shiftRight(n);e=e+1>>1,e>bt.length&&(e=bt.length);for(var i=b(),a=0;a<e;++a){i.fromInt(bt[Math.floor(Math.random()*bt.length)]);var o=i.modPow(r,this);if(0!=o.compareTo(v.ONE)&&0!=o.compareTo(t)){var s=1;while(s++<n&&0!=o.compareTo(t))if(o=o.modPowInt(2,this),0==o.compareTo(v.ONE))return!1;if(0!=o.compareTo(t))return!1}}return!0}
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
*/
function _t(){this.i=0,this.j=0,this.S=new Array}function St(e){var t,n,r;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,r=this.S[t],this.S[t]=this.S[n],this.S[n]=r;this.i=0,this.j=0}function kt(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]}function xt(){return new _t}v.prototype.chunkSize=me,v.prototype.toRadix=ve,v.prototype.fromRadix=be,v.prototype.fromNumber=ye,v.prototype.bitwiseTo=ke,v.prototype.changeBit=je,v.prototype.addTo=Ge,v.prototype.dMultiply=Ze,v.prototype.dAddOffset=et,v.prototype.multiplyLowerTo=ot,v.prototype.multiplyUpperTo=st,v.prototype.modInt=gt,v.prototype.millerRabin=Et,v.prototype.clone=de,v.prototype.intValue=he,v.prototype.byteValue=pe,v.prototype.shortValue=fe,v.prototype.signum=ge,v.prototype.toByteArray=we,v.prototype.equals=Ee,v.prototype.min=_e,v.prototype.max=Se,v.prototype.and=Ae,v.prototype.or=Ce,v.prototype.xor=Re,v.prototype.andNot=Ie,v.prototype.not=Le,v.prototype.shiftLeft=De,v.prototype.shiftRight=Pe,v.prototype.getLowestSetBit=Be,v.prototype.bitCount=$e,v.prototype.testBit=Ue,v.prototype.setBit=Ve,v.prototype.clearBit=Ke,v.prototype.flipBit=He,v.prototype.add=ze,v.prototype.subtract=qe,v.prototype.multiply=Xe,v.prototype.divide=Ye,v.prototype.remainder=Qe,v.prototype.divideAndRemainder=Je,v.prototype.modPow=ft,v.prototype.modInverse=vt,v.prototype.pow=at,v.prototype.gcd=mt,v.prototype.isProbablePrime=wt,v.prototype.square=We,_t.prototype.init=St,_t.prototype.next=kt;var At,Nt,Ct,Tt=256;
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
*/function Rt(e){Nt[Ct++]^=255&e,Nt[Ct++]^=e>>8&255,Nt[Ct++]^=e>>16&255,Nt[Ct++]^=e>>24&255,Ct>=Tt&&(Ct-=Tt)}function Ot(){Rt((new Date).getTime())}if(null==Nt){var It;if(Nt=new Array,Ct=0,void 0!==a&&(void 0!==a.crypto||void 0!==a.msCrypto)){var Lt=a.crypto||a.msCrypto;if(Lt.getRandomValues){var Dt=new Uint8Array(32);for(Lt.getRandomValues(Dt),It=0;It<32;++It)Nt[Ct++]=Dt[It]}else if("Netscape"==i.appName&&i.appVersion<"5"){var Pt=a.crypto.random(32);for(It=0;It<Pt.length;++It)Nt[Ct++]=255&Pt.charCodeAt(It)}}while(Ct<Tt)It=Math.floor(65536*Math.random()),Nt[Ct++]=It>>>8,Nt[Ct++]=255&It;Ct=0,Ot()}function Mt(){if(null==At){for(Ot(),At=xt(),At.init(Nt),Ct=0;Ct<Nt.length;++Ct)Nt[Ct]=0;Ct=0}return At.next()}function Bt(e){var t;for(t=0;t<e.length;++t)e[t]=Mt()}function Ft(){}
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
*/
function $t(e,t){return new v(e,t)}function Ut(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function jt(e,t){if(this.isPublic=!0,this.isPrivate=!1,"string"!==typeof e)this.n=e,this.e=t;else{if(!(null!=e&&null!=t&&e.length>0&&t.length>0))throw"Invalid RSA public key";this.n=$t(e,16),this.e=parseInt(t,16)}}function Vt(e){return e.modPowInt(this.e,this.n)}function Kt(e,t,n){if(this.isPrivate=!0,"string"!==typeof e)this.n=e,this.e=t,this.d=n;else{if(!(null!=e&&null!=t&&e.length>0&&t.length>0))throw"Invalid RSA private key";this.n=$t(e,16),this.e=parseInt(t,16),this.d=$t(n,16)}}function Ht(e,t,n,r,i,a,o,s){if(this.isPrivate=!0,this.isPublic=!1,null==e)throw"RSASetPrivateEx N == null";if(null==t)throw"RSASetPrivateEx E == null";if(0==e.length)throw"RSASetPrivateEx N.length == 0";if(0==t.length)throw"RSASetPrivateEx E.length == 0";if(!(null!=e&&null!=t&&e.length>0&&t.length>0))throw"Invalid RSA private key in RSASetPrivateEx";this.n=$t(e,16),this.e=parseInt(t,16),this.d=$t(n,16),this.p=$t(r,16),this.q=$t(i,16),this.dmp1=$t(a,16),this.dmq1=$t(o,16),this.coeff=$t(s,16)}function Gt(e,t){var n=new Ft,r=e>>1;this.e=parseInt(t,16);for(var i=new v(t,16),a=e/2-100,o=v.ONE.shiftLeft(a);;){for(;;)if(this.p=new v(e-r,1,n),0==this.p.subtract(v.ONE).gcd(i).compareTo(v.ONE)&&this.p.isProbablePrime(10))break;for(;;)if(this.q=new v(r,1,n),0==this.q.subtract(v.ONE).gcd(i).compareTo(v.ONE)&&this.q.isProbablePrime(10))break;if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var l=this.q.subtract(this.p).abs();if(!(l.bitLength()<a||l.compareTo(o)<=0)){var c=this.p.subtract(v.ONE),u=this.q.subtract(v.ONE),d=c.multiply(u);if(0==d.gcd(i).compareTo(v.ONE)&&(this.n=this.p.multiply(this.q),this.n.bitLength()==e)){this.d=i.modInverse(d),this.dmp1=this.d.mod(c),this.dmq1=this.d.mod(u),this.coeff=this.q.modInverse(this.p);break}}}this.isPrivate=!0}function zt(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);while(t.compareTo(n)<0)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)}
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
*/
function qt(e,t){this.x=t,this.q=e}function Xt(e){return e==this||this.q.equals(e.q)&&this.x.equals(e.x)}function Wt(){return this.x}function Yt(){return new qt(this.q,this.x.negate().mod(this.q))}function Qt(e){return new qt(this.q,this.x.add(e.toBigInteger()).mod(this.q))}function Jt(e){return new qt(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))}function Zt(e){return new qt(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))}function en(){return new qt(this.q,this.x.square().mod(this.q))}function tn(e){return new qt(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))}function nn(e,t,n,r){this.curve=e,this.x=t,this.y=n,this.z=null==r?v.ONE:r,this.zinv=null}function rn(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))}function an(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))}function on(e){return e==this||(this.isInfinity()?e.isInfinity():e.isInfinity()?this.isInfinity():(t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),!!t.equals(v.ZERO)&&(n=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q),n.equals(v.ZERO))));var t,n}function sn(){return null==this.x&&null==this.y||this.z.equals(v.ZERO)&&!this.y.toBigInteger().equals(v.ZERO)}function ln(){return new nn(this.curve,this.x,this.y.negate(),this.z)}function cn(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),n=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(v.ZERO.equals(n))return v.ZERO.equals(t)?this.twice():this.curve.getInfinity();var r=new v("3"),i=this.x.toBigInteger(),a=this.y.toBigInteger(),o=(e.x.toBigInteger(),e.y.toBigInteger(),n.square()),s=o.multiply(n),l=i.multiply(o),c=t.square().multiply(this.z),u=c.subtract(l.shiftLeft(1)).multiply(e.z).subtract(s).multiply(n).mod(this.curve.q),d=l.multiply(r).multiply(t).subtract(a.multiply(s)).subtract(c.multiply(t)).multiply(e.z).add(t.multiply(s)).mod(this.curve.q),h=s.multiply(this.z).multiply(e.z).mod(this.curve.q);return new nn(this.curve,this.curve.fromBigInteger(u),this.curve.fromBigInteger(d),h)}function un(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=new v("3"),t=this.x.toBigInteger(),n=this.y.toBigInteger(),r=n.multiply(this.z),i=r.multiply(n).mod(this.curve.q),a=this.curve.a.toBigInteger(),o=t.square().multiply(e);v.ZERO.equals(a)||(o=o.add(this.z.square().multiply(a))),o=o.mod(this.curve.q);var s=o.square().subtract(t.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(r).mod(this.curve.q),l=o.multiply(e).multiply(t).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(o.square().multiply(o)).mod(this.curve.q),c=r.square().multiply(r).shiftLeft(3).mod(this.curve.q);return new nn(this.curve,this.curve.fromBigInteger(s),this.curve.fromBigInteger(l),c)}function dn(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,n=e,r=n.multiply(new v("3")),i=this.negate(),a=this,o=this.curve.q.subtract(e),s=o.multiply(new v("3")),l=new nn(this.curve,this.x,this.y),c=l.negate();for(t=r.bitLength()-2;t>0;--t){a=a.twice();var u=r.testBit(t),d=n.testBit(t);u!=d&&(a=a.add(u?this:i))}for(t=s.bitLength()-2;t>0;--t){l=l.twice();var h=s.testBit(t),p=o.testBit(t);h!=p&&(l=l.add(h?l:c))}return a}function hn(e,t,n){var r;r=e.bitLength()>n.bitLength()?e.bitLength()-1:n.bitLength()-1;var i=this.curve.getInfinity(),a=this.add(t);while(r>=0)i=i.twice(),e.testBit(r)?i=n.testBit(r)?i.add(a):i.add(this):n.testBit(r)&&(i=i.add(t)),--r;return i}function pn(e,t,n){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(n),this.infinity=new nn(this,null,null)}function fn(){return this.q}function mn(){return this.a}function gn(){return this.b}function vn(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)}function bn(){return this.infinity}function yn(e){return new qt(this.q,e)}function wn(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:var t=e.substr(0,2),n=(e.substr(2),this.fromBigInteger(new v(l,16))),r=this.getA(),i=this.getB(),a=n.square().add(r).multiply(n).add(i),o=a.sqrt();return"03"==t&&(o=o.negate()),new nn(this,n,o);case 4:case 6:case 7:var s=(e.length-2)/2,l=e.substr(2,s),c=e.substr(s+2,s);return new nn(this,this.fromBigInteger(new v(l,16)),this.fromBigInteger(new v(c,16)));default:return null}}Ft.prototype.nextBytes=Bt,Ut.prototype.doPublic=Vt,Ut.prototype.setPublic=jt,Ut.prototype.type="RSA",Ut.prototype.doPrivate=zt,Ut.prototype.setPrivate=Kt,Ut.prototype.setPrivateEx=Ht,Ut.prototype.generate=Gt,qt.prototype.equals=Xt,qt.prototype.toBigInteger=Wt,qt.prototype.negate=Yt,qt.prototype.add=Qt,qt.prototype.subtract=Jt,qt.prototype.multiply=Zt,qt.prototype.square=en,qt.prototype.divide=tn,qt.prototype.sqrt=function(){return new qt(this.q,this.x.sqrt().mod(this.q))},nn.prototype.getX=rn,nn.prototype.getY=an,nn.prototype.equals=on,nn.prototype.isInfinity=sn,nn.prototype.negate=ln,nn.prototype.add=cn,nn.prototype.twice=un,nn.prototype.multiply=dn,nn.prototype.multiplyTwo=hn,pn.prototype.getQ=fn,pn.prototype.getA=mn,pn.prototype.getB=gn,pn.prototype.equals=vn,pn.prototype.getInfinity=bn,pn.prototype.fromBigInteger=yn,pn.prototype.decodePointHex=wn,
/*! (c) Stefan Thomas | https://github.com/bitcoinjs/bitcoinjs-lib
*/
qt.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},nn.prototype.getEncoded=function(e){var t=function(e,t){var n=e.toByteArrayUnsigned();if(t<n.length)n=n.slice(n.length-t);else while(t>n.length)n.unshift(0);return n},n=this.getX().toBigInteger(),r=this.getY().toBigInteger(),i=t(n,32);return e?r.isEven()?i.unshift(2):i.unshift(3):(i.unshift(4),i=i.concat(t(r,32))),i},nn.decodeFrom=function(e,t){t[0];var n=t.length-1,r=t.slice(1,1+n/2),i=t.slice(1+n/2,1+n);r.unshift(0),i.unshift(0);var a=new v(r),o=new v(i);return new nn(e,e.fromBigInteger(a),e.fromBigInteger(o))},nn.decodeFromHex=function(e,t){t.substr(0,2);var n=t.length-2,r=t.substr(2,n/2),i=t.substr(2+n/2,n/2),a=new v(r,16),o=new v(i,16);return new nn(e,e.fromBigInteger(a),e.fromBigInteger(o))},nn.prototype.add2D=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;if(this.x.equals(e.x))return this.y.equals(e.y)?this.twice():this.curve.getInfinity();var t=e.x.subtract(this.x),n=e.y.subtract(this.y),r=n.divide(t),i=r.square().subtract(this.x).subtract(e.x),a=r.multiply(this.x.subtract(i)).subtract(this.y);return new nn(this.curve,i,a)},nn.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=this.curve.fromBigInteger(v.valueOf(2)),t=this.curve.fromBigInteger(v.valueOf(3)),n=this.x.square().multiply(t).add(this.curve.a).divide(this.y.multiply(e)),r=n.square().subtract(this.x.multiply(e)),i=n.multiply(this.x.subtract(r)).subtract(this.y);return new nn(this.curve,r,i)},nn.prototype.multiply2D=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,n=e,r=n.multiply(new v("3")),i=this.negate(),a=this;for(t=r.bitLength()-2;t>0;--t){a=a.twice();var o=r.testBit(t),s=n.testBit(t);o!=s&&(a=a.add2D(o?this:i))}return a},nn.prototype.isOnCurve=function(){var e=this.getX().toBigInteger(),t=this.getY().toBigInteger(),n=this.curve.getA().toBigInteger(),r=this.curve.getB().toBigInteger(),i=this.curve.getQ(),a=t.multiply(t).mod(i),o=e.multiply(e).multiply(e).add(n.multiply(e)).add(r).mod(i);return a.equals(o)},nn.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},nn.prototype.validate=function(){var e=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var t=this.getX().toBigInteger(),n=this.getY().toBigInteger();if(t.compareTo(v.ONE)<0||t.compareTo(e.subtract(v.ONE))>0)throw new Error("x coordinate out of bounds");if(n.compareTo(v.ONE)<0||n.compareTo(e.subtract(v.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(e).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};
/*! Mike Samuel (c) 2009 | code.google.com/p/json-sans-eval
*/
var En=function(){var e="(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)",t='(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))',n='(?:"'+t+'*")',r=new RegExp("(?:false|true|null|[\\{\\}\\[\\]]|"+e+"|"+n+")","g"),i=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),a={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function o(e,t,n){return t?a[t]:String.fromCharCode(parseInt(n,16))}var s=new String(""),l="\\",c=Object.hasOwnProperty;return function(e,t){var n,a,u=e.match(r),d=u[0],h=!1;"{"===d?n={}:"["===d?n=[]:(n=[],h=!0);for(var p=[n],f=1-h,m=u.length;f<m;++f){var g;switch(d=u[f],d.charCodeAt(0)){default:g=p[0],g[a||g.length]=+d,a=void 0;break;case 34:if(d=d.substring(1,d.length-1),-1!==d.indexOf(l)&&(d=d.replace(i,o)),g=p[0],!a){if(!(g instanceof Array)){a=d||s;break}a=g.length}g[a]=d,a=void 0;break;case 91:g=p[0],p.unshift(g[a||g.length]=[]),a=void 0;break;case 93:p.shift();break;case 102:g=p[0],g[a||g.length]=!1,a=void 0;break;case 110:g=p[0],g[a||g.length]=null,a=void 0;break;case 116:g=p[0],g[a||g.length]=!0,a=void 0;break;case 123:g=p[0],p.unshift(g[a||g.length]={}),a=void 0;break;case 125:p.shift();break}}if(h){if(1!==p.length)throw new Error;n=n[0]}else if(p.length)throw new Error;if(t){var v=function(e,n){var r=e[n];if(r&&"object"===typeof r){var i=null;for(var a in r)if(c.call(r,a)&&r!==e){var o=v(r,a);void 0!==o?r[a]=o:(i||(i=[]),i.push(a))}if(i)for(var s=i.length;--s>=0;)delete r[i[s]]}return t.call(e,n,r)};n=v({"":n},"")}return n}}();"undefined"!=typeof _n&&_n||(_n={}),"undefined"!=typeof _n.asn1&&_n.asn1||(_n.asn1={}),_n.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){return Nr(e)},this.getPEMStringFromHex=function(e,t){return Yn(e,t)},this.newObject=function(e){var t=_n,n=t.asn1,r=n.ASN1Object,i=n.DERBoolean,a=n.DERInteger,o=n.DERBitString,s=n.DEROctetString,l=n.DERNull,c=n.DERObjectIdentifier,u=n.DEREnumerated,d=n.DERUTF8String,h=n.DERNumericString,p=n.DERPrintableString,f=n.DERTeletexString,m=n.DERIA5String,g=n.DERUTCTime,v=n.DERGeneralizedTime,b=n.DERVisibleString,y=n.DERBMPString,w=n.DERSequence,E=n.DERSet,_=n.DERTaggedObject,S=n.ASN1Util.newObject;if(e instanceof n.ASN1Object)return e;var k=Object.keys(e);if(1!=k.length)throw new Error("key of param shall be only one.");var x=k[0];if(-1==":asn1:bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:visstr:bmpstr:seq:set:tag:".indexOf(":"+x+":"))throw new Error("undefined key: "+x);if("bool"==x)return new i(e[x]);if("int"==x)return new a(e[x]);if("bitstr"==x)return new o(e[x]);if("octstr"==x)return new s(e[x]);if("null"==x)return new l(e[x]);if("oid"==x)return new c(e[x]);if("enum"==x)return new u(e[x]);if("utf8str"==x)return new d(e[x]);if("numstr"==x)return new h(e[x]);if("prnstr"==x)return new p(e[x]);if("telstr"==x)return new f(e[x]);if("ia5str"==x)return new m(e[x]);if("utctime"==x)return new g(e[x]);if("gentime"==x)return new v(e[x]);if("visstr"==x)return new b(e[x]);if("bmpstr"==x)return new y(e[x]);if("asn1"==x)return new r(e[x]);if("seq"==x){for(var A=e[x],N=[],C=0;C<A.length;C++){var T=S(A[C]);N.push(T)}return new w({array:N})}if("set"==x){for(A=e[x],N=[],C=0;C<A.length;C++){T=S(A[C]);N.push(T)}return new E({array:N})}if("tag"==x){var R=e[x];if("[object Array]"===Object.prototype.toString.call(R)&&3==R.length){var O=S(R[2]);return new _({tag:R[0],explicit:R[1],obj:O})}return new _(R)}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.tohex()}},_n.asn1.ASN1Util.oidHexToInt=function(e){for(var t="",n=parseInt(e.substr(0,2),16),r=Math.floor(n/40),i=n%40,a=(t=r+"."+i,""),o=2;o<e.length;o+=2){var s=parseInt(e.substr(o,2),16),l=("00000000"+s.toString(2)).slice(-8);if(a+=l.substr(1,7),"0"==l.substr(0,1)){var c=new v(a,2);t=t+"."+c.toString(10),a=""}}return t},_n.asn1.ASN1Util.oidIntToHex=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=new v(e,10),i=r.toString(2),a=7-i.length%7;7==a&&(a=0);for(var o="",s=0;s<a;s++)o+="0";i=o+i;for(s=0;s<i.length-1;s+=7){var l=i.substr(s,7);s!=i.length-7&&(l="1"+l),n+=t(parseInt(l,2))}return n};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),a=40*parseInt(i[0])+parseInt(i[1]);r+=t(a),i.splice(0,2);for(var o=0;o<i.length;o++)r+=n(i[o]);return r},_n.asn1.ASN1Object=function(e){var t="";this.params=null,this.getLengthHexFromValue=function(){if("undefined"==typeof this.hV||null==this.hV)throw new Error("this.hV is null or undefined");if(this.hV.length%2==1)throw new Error("value hex must be even length: n="+t.length+",v="+this.hV);var e=this.hV.length/2,n=e.toString(16);if(n.length%2==1&&(n="0"+n),e<128)return n;var r=n.length/2;if(r>15)throw new Error("ASN.1 length too long to represent by 8x: n = "+e.toString(16));var i=128+r;return i.toString(16)+n},this.tohex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.getValueHex=function(){return this.tohex(),this.hV},this.getFreshValueHex=function(){return""},this.setByParam=function(e){this.params=e},void 0!=e&&void 0!=e.tlv&&(this.hTLV=e.tlv,this.isModified=!1)},_n.asn1.DERAbstractString=function(e){_n.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=$n(this.s).toLowerCase()},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("string"==typeof e?this.setString(e):"undefined"!=typeof e.str?this.setString(e.str):"undefined"!=typeof e.hex&&this.setStringHex(e.hex))},Pr(_n.asn1.DERAbstractString,_n.asn1.ASN1Object),_n.asn1.DERAbstractTime=function(e){_n.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(e){var t=e.getTime()+6e4*e.getTimezoneOffset(),n=new Date(t);return n},this.formatDate=function(e,t,n){var r=this.zeroPadding,i=this.localDateToUTC(e),a=String(i.getFullYear());"utc"==t&&(a=a.substr(2,2));var o=r(String(i.getMonth()+1),2),s=r(String(i.getDate()),2),l=r(String(i.getHours()),2),c=r(String(i.getMinutes()),2),u=r(String(i.getSeconds()),2),d=a+o+s+l+c+u;if(!0===n){var h=i.getMilliseconds();if(0!=h){var p=r(String(h),3);p=p.replace(/[0]+$/,""),d=d+"."+p}}return d+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.setByParam=function(e){this.hV=null,this.hTLV=null,this.params=e},this.getString=function(){},this.setString=function(e){this.hTLV=null,this.isModified=!0,void 0==this.params&&(this.params={}),this.params.str=e},this.setByDate=function(e){this.hTLV=null,this.isModified=!0,void 0==this.params&&(this.params={}),this.params.date=e},this.setByDateValue=function(e,t,n,r,i,a){var o=new Date(Date.UTC(e,t-1,n,r,i,a,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},Pr(_n.asn1.DERAbstractTime,_n.asn1.ASN1Object),_n.asn1.DERAbstractStructured=function(e){_n.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,"undefined"!=typeof e&&"undefined"!=typeof e.array&&(this.asn1Array=e.array)},Pr(_n.asn1.DERAbstractStructured,_n.asn1.ASN1Object),_n.asn1.DERBoolean=function(e){_n.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV=0==e?"010100":"0101ff"},Pr(_n.asn1.DERBoolean,_n.asn1.ASN1Object),_n.asn1.DERInteger=function(e){_n.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.params=null;var t=Nr;this.setByBigInteger=function(e){this.isModified=!0,this.params={bigint:e}},this.setByInteger=function(e){this.isModified=!0,this.params=e},this.setValueHex=function(e){this.isModified=!0,this.params={hex:e}},this.getFreshValueHex=function(){var e=this.params,n=null;if(null==e)throw new Error("value not set");if("object"==typeof e&&void 0!=e.hex)return this.hV=e.hex,this.hV;if("number"==typeof e)n=new v(String(e),10);else if(void 0!=e["int"])n=new v(String(e["int"]),10);else{if(void 0==e.bigint)throw new Error("wrong parameter");n=e.bigint}return this.hV=t(n),this.hV},void 0!=e&&(this.params=e)},Pr(_n.asn1.DERInteger,_n.asn1.ASN1Object),_n.asn1.DERBitString=function(e){if(void 0!==e&&"undefined"!==typeof e.obj){var t=_n.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.tohex()}_n.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var n="0"+e;this.hTLV=null,this.isModified=!0,this.hV=n+t},this.setByBinaryString=function(e){e=e.replace(/0+$/,"");var t=8-e.length%8;8==t&&(t=0),e+="0000000".substr(0,t);for(var n="",r=0;r<e.length-1;r+=8){var i=e.substr(r,8),a=parseInt(i,2).toString(16);1==a.length&&(a="0"+a),n+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+t+n},this.setByBooleanArray=function(e){for(var t="",n=0;n<e.length;n++)1==e[n]?t+="1":t+="0";this.setByBinaryString(t)},this.newFalseArray=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=!1;return t},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("string"==typeof e&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):"undefined"!=typeof e.hex?this.setHexValueIncludingUnusedBits(e.hex):"undefined"!=typeof e.bin?this.setByBinaryString(e.bin):"undefined"!=typeof e.array&&this.setByBooleanArray(e.array))},Pr(_n.asn1.DERBitString,_n.asn1.ASN1Object),_n.asn1.DEROctetString=function(e){if(void 0!==e&&"undefined"!==typeof e.obj){var t=_n.asn1.ASN1Util.newObject(e.obj);e.hex=t.tohex()}_n.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Pr(_n.asn1.DEROctetString,_n.asn1.DERAbstractString),_n.asn1.DERNull=function(){_n.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Pr(_n.asn1.DERNull,_n.asn1.ASN1Object),_n.asn1.DERObjectIdentifier=function(e){_n.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueOidString=function(e){var t=kr(e);if(null==t)throw new Error("malformed oid string: "+e);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueName=function(e){var t=_n.asn1.x509.OID.name2oid(e);if(""===t)throw new Error("DERObjectIdentifier oidName undefined: "+e);this.setValueOidString(t)},this.setValueNameOrOid=function(e){e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e)},this.getFreshValueHex=function(){return this.hV},this.setByParam=function(e){"string"===typeof e?this.setValueNameOrOid(e):void 0!==e.oid?this.setValueNameOrOid(e.oid):void 0!==e.name?this.setValueNameOrOid(e.name):void 0!==e.hex&&this.setValueHex(e.hex)},void 0!==e&&this.setByParam(e)},Pr(_n.asn1.DERObjectIdentifier,_n.asn1.ASN1Object),_n.asn1.DEREnumerated=function(e){_n.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=Nr(e)},this.setByInteger=function(e){var t=new v(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("undefined"!=typeof e["int"]?this.setByInteger(e["int"]):"number"==typeof e?this.setByInteger(e):"undefined"!=typeof e.hex&&this.setValueHex(e.hex))},Pr(_n.asn1.DEREnumerated,_n.asn1.ASN1Object),_n.asn1.DERUTF8String=function(e){_n.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Pr(_n.asn1.DERUTF8String,_n.asn1.DERAbstractString),_n.asn1.DERNumericString=function(e){_n.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Pr(_n.asn1.DERNumericString,_n.asn1.DERAbstractString),_n.asn1.DERPrintableString=function(e){_n.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Pr(_n.asn1.DERPrintableString,_n.asn1.DERAbstractString),_n.asn1.DERTeletexString=function(e){_n.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Pr(_n.asn1.DERTeletexString,_n.asn1.DERAbstractString),_n.asn1.DERIA5String=function(e){_n.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Pr(_n.asn1.DERIA5String,_n.asn1.DERAbstractString),_n.asn1.DERVisibleString=function(e){_n.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="1a"},Pr(_n.asn1.DERVisibleString,_n.asn1.DERAbstractString),_n.asn1.DERBMPString=function(e){_n.asn1.DERBMPString.superclass.constructor.call(this,e),this.hT="1e"},Pr(_n.asn1.DERBMPString,_n.asn1.DERAbstractString),_n.asn1.DERUTCTime=function(e){_n.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.params=void 0,this.getFreshValueHex=function(){var e=this.params;if(void 0==this.params&&(e={date:new Date}),"string"==typeof e){if(!e.match(/^[0-9]{12}Z$/)&&!e.match(/^[0-9]{12}\.[0-9]+Z$/))throw new Error("malformed string for UTCTime: "+e);this.hV=Tn(e)}else if(void 0!=e.str)this.hV=Tn(e.str);else if(void 0==e.date&&1==e.millis){var t=new Date;this.hV=Tn(this.formatDate(t,"utc",!0))}else if(void 0!=e.date&&e.date instanceof Date){var n=!0===e.millis;this.hV=Tn(this.formatDate(e.date,"utc",n))}else e instanceof Date&&(this.hV=Tn(this.formatDate(e,"utc")));if(void 0==this.hV)throw new Error("parameter not specified properly for UTCTime");return this.hV},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.DERUTCTime,_n.asn1.DERAbstractTime),_n.asn1.DERGeneralizedTime=function(e){_n.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.params=e,this.getFreshValueHex=function(){var e=this.params;if(void 0==this.params&&(e={date:new Date}),"string"==typeof e){if(!e.match(/^[0-9]{14}Z$/)&&!e.match(/^[0-9]{14}\.[0-9]+Z$/))throw new Error("malformed string for GeneralizedTime: "+e);this.hV=Tn(e)}else if(void 0!=e.str)this.hV=Tn(e.str);else if(void 0==e.date&&1==e.millis){var t=new Date;this.hV=Tn(this.formatDate(t,"gen",!0))}else if(void 0!=e.date&&e.date instanceof Date){var n=!0===e.millis;this.hV=Tn(this.formatDate(e.date,"gen",n))}else e instanceof Date&&(this.hV=Tn(this.formatDate(e,"gen")));if(void 0==this.hV)throw new Error("parameter not specified properly for GeneralizedTime");return this.hV},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.DERGeneralizedTime,_n.asn1.DERAbstractTime),_n.asn1.DERSequence=function(e){_n.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e+=n.tohex()}return this.hV=e,this.hV}},Pr(_n.asn1.DERSequence,_n.asn1.DERAbstractStructured),_n.asn1.DERSet=function(e){_n.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e.push(n.tohex())}return 1==this.sortFlag&&e.sort(),this.hV=e.join(""),this.hV},"undefined"!=typeof e&&"undefined"!=typeof e.sortflag&&0==e.sortflag&&(this.sortFlag=!1)},Pr(_n.asn1.DERSet,_n.asn1.DERAbstractStructured),_n.asn1.DERTaggedObject=function(e){_n.asn1.DERTaggedObject.superclass.constructor.call(this);var t=_n.asn1,n=xn,r=n.getV,i=(n.isASN1HEX,t.ASN1Util.newObject);this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.params={tag:"a0",explicit:!0},this.setASN1Object=function(e,t,n){this.params={tag:t,explicit:e,obj:n}},this.getFreshValueHex=function(){var e=this.params;if(void 0==e.explicit&&(e.explicit=!0),void 0!=e.tage&&(e.tag=e.tage,e.explicit=!0),void 0!=e.tagi&&(e.tag=e.tagi,e.explicit=!1),void 0!=e.str)this.hV=$n(e.str);else if(void 0!=e.hex)this.hV=e.hex;else{if(void 0==e.obj)throw new Error("str, hex nor obj not specified");var n;e.obj instanceof t.ASN1Object?n=e.obj.tohex():"object"==typeof e.obj&&(n=i(e.obj).tohex()),e.explicit?this.hV=n:this.hV=r(n,0)}return void 0==e.tag&&(e.tag="a0"),this.hT=e.tag,this.hTLV=null,this.isModified=!0,this.hV},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},Pr(_n.asn1.DERTaggedObject,_n.asn1.ASN1Object);var _n,Sn,kn,xn=new function(){};function An(e){for(var t=new Array,n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}function Nn(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}function Cn(e){for(var t="",n=0;n<e.length;n++){var r=e[n].toString(16);1==r.length&&(r="0"+r),t+=r}return t}function Tn(e){return Cn(An(e))}function Rn(e){return h(Tn(e))}function On(e){return Ln(h(Tn(e)))}function In(e){return Nn(f(Dn(e)))}function Ln(e){return e=e.replace(/\=/g,""),e=e.replace(/\+/g,"-"),e=e.replace(/\//g,"_"),e}function Dn(e){return e.length%4==2?e+="==":e.length%4==3&&(e+="="),e=e.replace(/-/g,"+"),e=e.replace(/_/g,"/"),e}function Pn(e){return e.length%2==1&&(e="0"+e),Ln(h(e))}function Mn(e){return p(Dn(e))}function Bn(e){return h(sr(gr(e)))}function Fn(e){return decodeURIComponent(lr(p(e)))}function $n(e){return sr(gr(e)).toLowerCase()}function Un(e){try{return decodeURIComponent(lr(e))}catch(t){return null}}function jn(e){return Un(Vn(e))}function Vn(e){for(var t=e.match(/.{1,2}/g),n=[],r=0;r<t.length;r++){var i=parseInt(t[r],16);161<=i&&i<=191?(n.push("c2"),n.push(t[r])):192<=i&&i<=255?(n.push("c3"),n.push((i-64).toString(16))):n.push(t[r])}return n.join("")}function Kn(e){for(var t="",n=0;n<e.length-1;n+=2)t+=String.fromCharCode(parseInt(e.substr(n,2),16));return t}function Hn(e){for(var t="",n=0;n<e.length;n++)t+=("0"+e.charCodeAt(n).toString(16)).slice(-2);return t}function Gn(e){return h(e)}function zn(e){return qn(Gn(e),64)}function qn(e,t){return e=e.replace(new RegExp("(.{"+t+"})","g"),"$1\r\n"),e=e.replace(/\s+$/,""),e}function Xn(e){var t=e.replace(/[^0-9A-Za-z\/+=]*/g,""),n=p(t);return n}function Wn(e,t){return"-----BEGIN "+t+"-----\r\n"+qn(e,64)+"\r\n-----END "+t+"-----\r\n"}function Yn(e,t){return"-----BEGIN "+t+"-----\r\n"+qn(Gn(e),64)+"\r\n-----END "+t+"-----\r\n"}function Qn(e,t){if(-1==e.indexOf("-----BEGIN "))throw new Error("can't find PEM header");return void 0!==t?(e=e.replace(new RegExp("^[^]*-----BEGIN "+t+"-----"),""),e=e.replace(new RegExp("-----END "+t+"-----[^]*$"),"")):(e=e.replace(/^[^]*-----BEGIN [^-]+-----/,""),e=e.replace(/-----END [^-]+-----[^]*$/,"")),Xn(e)}function Jn(e){return-1==e.indexOf("-----BEGIN ")||-1==e.indexOf("-----END ")?null:(e=e.replace(/^[\s\S]*?-----BEGIN [^-]+-----/m,""),e=e.replace(/-----END [\s\S]+$/m,""),e=e.replace(/\s+/g,""),e.match(/^[0-9a-zA-Z+/=]+$/)?e:null)}function Zn(e){if(e.length%2!=0)throw"input is not even length";if(null==e.match(/^[0-9A-Fa-f]+$/))throw"input is not hexadecimal";for(var t=new ArrayBuffer(e.length/2),n=new DataView(t),r=0;r<e.length/2;r++)n.setUint8(r,parseInt(e.substr(2*r,2),16));return t}function er(e){for(var t="",n=new DataView(e),r=0;r<e.byteLength;r++)t+=("00"+n.getUint8(r).toString(16)).slice(-2);return t}function tr(e){var t,n,r,i,a,o,s,l,c,u;if(e=or(e),u=e.match(/^(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(|\.\d+)Z$/),u)return t=parseInt(u[1]),n=parseInt(u[2])-1,r=parseInt(u[3]),i=parseInt(u[4]),a=parseInt(u[5]),o=parseInt(u[6]),s=0,l=u[7],""!==l&&(c=(l.substr(1)+"00").substr(0,3),s=parseInt(c)),Date.UTC(t,n,r,i,a,o,s);throw new Error("unsupported zulu format: "+e)}function nr(e){var t=new Date(e),n=("0000"+t.getUTCFullYear()).slice(-4),r=("00"+(t.getUTCMonth()+1)).slice(-2),i=("00"+t.getUTCDate()).slice(-2),a=("00"+t.getUTCHours()).slice(-2),o=("00"+t.getUTCMinutes()).slice(-2),s=("00"+t.getUTCSeconds()).slice(-2),l=("000"+t.getUTCMilliseconds()).slice(-3);return l=l.replace(/0+$/,""),l=""!=l?"."+l:l,n+r+i+a+o+s+l+"Z"}function rr(e){return Math.round(tr(e)/1e3)}function ir(e){return new Date(tr(e))}function ar(e,t,n){var r,i=e.getUTCFullYear();if(t){if(i<1950||2049<i)throw"not proper year for UTCTime: "+i;r=(""+i).slice(-2)}else r=("000"+i).slice(-4);if(r+=("0"+(e.getUTCMonth()+1)).slice(-2),r+=("0"+e.getUTCDate()).slice(-2),r+=("0"+e.getUTCHours()).slice(-2),r+=("0"+e.getUTCMinutes()).slice(-2),r+=("0"+e.getUTCSeconds()).slice(-2),n){var a=e.getUTCMilliseconds();0!==a&&(a=("00"+a).slice(-3),a=a.replace(/0+$/g,""),r+="."+a)}return r+="Z",r}function or(e){return e.match(/^[0-9]{12}Z$/)||e.match(/^[0-9]{12}[.][0-9]*Z$/)?e.match(/^[0-4]/)?"20"+e:"19"+e:e}function sr(e){return e.replace(/%/g,"")}function lr(e){return e.replace(/(..)/g,"%$1")}function cr(e){var t="malformed IPv6 address";if(!e.match(/^[0-9A-Fa-f:]+$/))throw t;e=e.toLowerCase();var n=e.split(":").length-1;if(n<2)throw t;var r=":".repeat(7-n+2);e=e.replace("::",r);var i=e.split(":");if(8!=i.length)throw t;for(var a=0;a<8;a++)i[a]=("0000"+i[a]).slice(-4);return i.join("")}function ur(e){if(!e.match(/^[0-9A-Fa-f]{32}$/))throw new Error("malformed IPv6 address: "+e);e=e.toLowerCase();var t=e.match(/.{1,4}/g);t=t.map((function(e){return e.replace(/^0+/,"")})),t=t.map((function(e){return""==e?"0":e})),e=":"+t.join(":")+":";var n=e.match(/:(0:){2,}/g);if(null==n)return e.slice(1,-1);var r=n.sort().slice(-1)[0];return e=e.replace(r.substr(0,r.length-1),":"),"::"!=e.substr(0,2)&&(e=e.substr(1)),"::"!=e.substr(-2,2)&&(e=e.substr(0,e.length-1)),e}function dr(e){var t=new Error("malformed hex value");if(!e.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw t;if(8==e.length){var n;try{return n=parseInt(e.substr(0,2),16)+"."+parseInt(e.substr(2,2),16)+"."+parseInt(e.substr(4,2),16)+"."+parseInt(e.substr(6,2),16),n}catch(r){throw t}}else{if(16!=e.length){if(32==e.length)return ur(e);if(64==e.length){try{return ur(e.substr(0,32))+"/"+hr(e.substr(32))}catch(r){throw t}return}return e}try{return dr(e.substr(0,8))+"/"+hr(e.substr(8))}catch(r){throw t}}}function hr(e){var t,n=new Error("malformed mask");try{t=new v(e,16).toString(2)}catch(r){throw n}if(!t.match(/^1*0*$/))throw n;return t.replace(/0+$/,"").length}function pr(e){var t=new Error("malformed IP address");if(e=e.toLowerCase(e),!e.match(/^[0-9a-f.:/]+$/))throw t;if(!e.match(/^[0-9.]+$/)){if(e.match(/^[0-9.]+\/[0-9]+$/)){var n=e.split("/");return pr(n[0])+fr(parseInt(n[1]),32)}if(e.match(/^[0-9a-f:]+$/)&&-1!==e.indexOf(":"))return cr(e);if(e.match(/^[0-9a-f:]+\/[0-9]+$/)&&-1!==e.indexOf(":")){n=e.split("/");return cr(n[0])+fr(parseInt(n[1]),128)}throw t}var r=e.split(".");if(4!==r.length)throw t;var i="";try{for(var a=0;a<4;a++){var o=parseInt(r[a]);i+=("0"+o.toString(16)).slice(-2)}return i}catch(s){throw t}}function fr(e,t){if(32==t&&0==e)return"00000000";if(128==t&&0==e)return"00000000000000000000000000000000";var n=Array(e+1).join("1")+Array(t-e+1).join("0");return new v(n,2).toString(16)}function mr(e){function t(e){var t=parseInt(e.substr(0,2),16),n=parseInt(e.substr(2),16);if(0==t&n<128)return String.fromCharCode(n);if(t<8){var r=192|(7&t)<<3|(192&n)>>6,i=128|63&n;return Un(r.toString(16)+i.toString(16))}r=224|(240&t)>>4,i=128|(15&t)<<2|(192&n)>>6;var a=128|63&n;return Un(r.toString(16)+i.toString(16)+a.toString(16))}var n=e.match(/.{4}/g),r=n.map(t);return r.join("")}function gr(e){for(var t=encodeURIComponent(e),n="",r=0;r<t.length;r++)"%"==t[r]?(n+=t.substr(r,3),r+=2):n=n+"%"+Tn(t[r]);return n}function vr(e){return e=e.replace(/\r\n/gm,"\n"),e}function br(e){return e=e.replace(/\r\n/gm,"\n"),e=e.replace(/\n/gm,"\r\n"),e}function yr(e){return!(e.length%2!=0||!e.match(/^[0-9a-f]+$/)&&!e.match(/^[0-9A-F]+$/))}function wr(e){return!!e.match(/^[0-9A-Za-z-_.]+$/)}function Er(e){return e.length%2==1?"0"+e:e.substr(0,1)>"7"?"00"+e:e}function _r(e){e=e.replace(/^\s*\[\s*/,""),e=e.replace(/\s*\]\s*$/,""),e=e.replace(/\s*/g,"");try{var t=e.split(/,/).map((function(e,t,n){var r=parseInt(e);if(r<0||255<r)throw"integer not in range 0-255";var i=("00"+r.toString(16)).slice(-2);return i})).join("");return t}catch(n){throw"malformed integer array string: "+n}}xn.getLblen=function(e,t){if("8"!=e.substr(t+2,1))return 1;var n=parseInt(e.substr(t+3,1));return 0==n?-1:0<n&&n<10?n+1:-2},xn.getL=function(e,t){var n=xn.getLblen(e,t);return n<1?"":e.substr(t+2,2*n)},xn.getVblen=function(e,t){var n,r;return n=xn.getL(e,t),""==n?-1:(r="8"===n.substr(0,1)?new v(n.substr(2),16):new v(n,16),r.intValue())},xn.getVidx=function(e,t){var n=xn.getLblen(e,t);return n<0?n:t+2*(n+1)},xn.getV=function(e,t){var n=xn.getVidx(e,t),r=xn.getVblen(e,t);return e.substr(n,2*r)},xn.getTLV=function(e,t){return e.substr(t,2)+xn.getL(e,t)+xn.getV(e,t)},xn.getTLVblen=function(e,t){return 2+2*xn.getLblen(e,t)+2*xn.getVblen(e,t)},xn.getNextSiblingIdx=function(e,t){var n=xn.getVidx(e,t),r=xn.getVblen(e,t);return n+2*r},xn.getChildIdx=function(e,t){var n,r,i,a=xn,o=[];n=a.getVidx(e,t),r=2*a.getVblen(e,t),"03"==e.substr(t,2)&&(n+=2,r-=2),i=0;var s=n;while(i<=r){var l=a.getTLVblen(e,s);if(i+=l,i<=r&&o.push(s),s+=l,i>=r)break}return o},xn.getNthChildIdx=function(e,t,n){var r=xn.getChildIdx(e,t);return r[n]},xn.getIdxbyList=function(e,t,n,r){var i,a,o=xn;return 0==n.length?void 0!==r&&e.substr(t,2)!==r?-1:t:(i=n.shift(),a=o.getChildIdx(e,t),i>=a.length?-1:o.getIdxbyList(e,a[i],n,r))},xn.getIdxbyListEx=function(e,t,n,r){var i,a,o=xn;if(0==n.length)return void 0!==r&&e.substr(t,2)!==r?-1:t;i=n.shift(),a=o.getChildIdx(e,t);for(var s=0,l=0;l<a.length;l++){var c=e.substr(a[l],2);if("number"==typeof i&&!o.isContextTag(c)&&s==i||"string"==typeof i&&o.isContextTag(c,i))return o.getIdxbyListEx(e,a[l],n,r);o.isContextTag(c)||s++}return-1},xn.getTLVbyList=function(e,t,n,r){var i=xn,a=i.getIdxbyList(e,t,n,r);return-1==a||a>=e.length?null:i.getTLV(e,a)},xn.getTLVbyListEx=function(e,t,n,r){var i=xn,a=i.getIdxbyListEx(e,t,n,r);return-1==a?null:i.getTLV(e,a)},xn.getVbyList=function(e,t,n,r,i){var a,o,s=xn;return a=s.getIdxbyList(e,t,n,r),-1==a||a>=e.length?null:(o=s.getV(e,a),!0===i&&(o=o.substr(2)),o)},xn.getVbyListEx=function(e,t,n,r,i){var a,o,s=xn;return a=s.getIdxbyListEx(e,t,n,r),-1==a?null:(o=s.getV(e,a),"03"==e.substr(a,2)&&!1!==i&&(o=o.substr(2)),o)},xn.getInt=function(e,t,n){void 0==n&&(n=-1);try{var r=e.substr(t,2);if("02"!=r&&"03"!=r)return n;var i=xn.getV(e,t);return"02"==r?parseInt(i,16):Tr(i)}catch(a){return n}},xn.getOID=function(e,t,n){void 0==n&&(n=null);try{if("06"!=e.substr(t,2))return n;var r=xn.getV(e,t);return xr(r)}catch(i){return n}},xn.getOIDName=function(e,t,n){void 0==n&&(n=null);try{var r=xn.getOID(e,t,n);if(r==n)return n;var i=_n.asn1.x509.OID.oid2name(r);return""==i?r:i}catch(a){return n}},xn.getString=function(e,t,n){void 0==n&&(n=null);try{var r=xn.getV(e,t);return Kn(r)}catch(i){return n}},xn.hextooidstr=function(e){var t=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},n=[],r=e.substr(0,2),i=parseInt(r,16);n[0]=new String(Math.floor(i/40)),n[1]=new String(i%40);for(var a=e.substr(2),o=[],s=0;s<a.length/2;s++)o.push(parseInt(a.substr(2*s,2),16));var l=[],c="";for(s=0;s<o.length;s++)128&o[s]?c+=t((127&o[s]).toString(2),7):(c+=t((127&o[s]).toString(2),7),l.push(new String(parseInt(c,2))),c="");var u=n.join(".");return l.length>0&&(u=u+"."+l.join(".")),u},xn.dump=function(e,t,n,r){var i=xn,a=i.getV,o=i.dump,s=i.getChildIdx,l=e;e instanceof _n.asn1.ASN1Object&&(l=e.tohex());var c=function(e,t){if(e.length<=2*t)return e;var n=e.substr(0,t)+"..(total "+e.length/2+"bytes).."+e.substr(e.length-t,t);return n};void 0===t&&(t={ommit_long_octet:32}),void 0===n&&(n=0),void 0===r&&(r="");var u=t.ommit_long_octet,d=l.substr(n,2);if("01"==d){var h=a(l,n);return"00"==h?r+"BOOLEAN FALSE\n":r+"BOOLEAN TRUE\n"}if("02"==d){h=a(l,n);return r+"INTEGER "+c(h,u)+"\n"}if("03"==d){h=a(l,n);if(i.isASN1HEX(h.substr(2))){var p=r+"BITSTRING, encapsulates\n";return p+=o(h.substr(2),t,0,r+" "),p}return r+"BITSTRING "+c(h,u)+"\n"}if("04"==d){h=a(l,n);if(i.isASN1HEX(h)){p=r+"OCTETSTRING, encapsulates\n";return p+=o(h,t,0,r+" "),p}return r+"OCTETSTRING "+c(h,u)+"\n"}if("05"==d)return r+"NULL\n";if("06"==d){var f=a(l,n),m=_n.asn1.ASN1Util.oidHexToInt(f),g=_n.asn1.x509.OID.oid2name(m),v=m.replace(/\./g," ");return""!=g?r+"ObjectIdentifier "+g+" ("+v+")\n":r+"ObjectIdentifier ("+v+")\n"}if("0a"==d)return r+"ENUMERATED "+parseInt(a(l,n))+"\n";if("0c"==d)return r+"UTF8String '"+Un(a(l,n))+"'\n";if("13"==d)return r+"PrintableString '"+Un(a(l,n))+"'\n";if("14"==d)return r+"TeletexString '"+Un(a(l,n))+"'\n";if("16"==d)return r+"IA5String '"+Un(a(l,n))+"'\n";if("17"==d)return r+"UTCTime "+Un(a(l,n))+"\n";if("18"==d)return r+"GeneralizedTime "+Un(a(l,n))+"\n";if("1a"==d)return r+"VisualString '"+Un(a(l,n))+"'\n";if("1e"==d)return r+"BMPString '"+mr(a(l,n))+"'\n";if("30"==d){if("3000"==l.substr(n,4))return r+"SEQUENCE {}\n";p=r+"SEQUENCE\n";var b=s(l,n),y=t;if((2==b.length||3==b.length)&&"06"==l.substr(b[0],2)&&"04"==l.substr(b[b.length-1],2)){g=i.oidname(a(l,b[0]));var w=JSON.parse(JSON.stringify(t));w.x509ExtName=g,y=w}for(var E=0;E<b.length;E++)p+=o(l,y,b[E],r+" ");return p}if("31"==d){for(p=r+"SET\n",b=s(l,n),E=0;E<b.length;E++)p+=o(l,t,b[E],r+" ");return p}d=parseInt(d,16);if(0!=(128&d)){var _=31&d;if(0!=(32&d)){for(p=r+"["+_+"]\n",b=s(l,n),E=0;E<b.length;E++)p+=o(l,t,b[E],r+" ");return p}h=a(l,n);if(xn.isASN1HEX(h)){p=r+"["+_+"]\n";return p+=o(h,t,0,r+" "),p}("68747470"==h.substr(0,8)||"subjectAltName"===t.x509ExtName&&2==_)&&(h=Un(h));p=r+"["+_+"] "+h+"\n";return p}return r+"UNKNOWN("+d+") "+a(l,n)+"\n"},xn.parse=function(e){var t=xn,n=t.parse,r=t.isASN1HEX,i=t.getV,a=t.getTLV,o=t.getChildIdx,s=_n.asn1,l=s.ASN1Util.oidHexToInt,c=s.x509.OID.oid2name,u=Un,d=mr,h=jn,p={"0c":"utf8str",12:"numstr",13:"prnstr",14:"telstr",16:"ia5str",17:"utctime",18:"gentime","1a":"visstr","1e":"bmpstr",30:"seq",31:"set"},f=function(e){for(var t=[],r=o(e,0),i=0;i<r.length;i++){var s=r[i],l=a(e,s),c=n(l);t.push(c)}return t},m=e.substr(0,2),g={},v=i(e,0);if("01"==m)return"0101ff"==e?{bool:!0}:{bool:!1};if("02"==m)return{int:{hex:v}};if("03"==m)try{if("00"!=v.substr(0,2))throw"not encap";var b=v.substr(2);if(!r(b))throw"not encap";return{bitstr:{obj:n(b)}}}catch(Pt){var y=null;return v.length<=10&&(y=Or(v)),null==y?{bitstr:{hex:v}}:{bitstr:{bin:y}}}else if("04"==m)try{if(!r(v))throw"not encap";return{octstr:{obj:n(v)}}}catch(Pt){return{octstr:{hex:v}}}else{if("05"==m)return{null:""};if("06"==m){var w=l(v),E=c(w);return""==E?{oid:w}:{oid:E}}if("0a"==m)return v.length>4?{enum:{hex:v}}:{enum:parseInt(v,16)};if("30"==m||"31"==m)return g[p[m]]=f(e),g;if("14"==m){var _=h(v);return g[p[m]]={str:_},g}if("1e"==m){_=d(v);return g[p[m]]={str:_},g}if(-1!=":0c:12:13:16:17:18:1a:".indexOf(m)){_=u(v);return g[p[m]]={str:_},g}if(m.match(/^8[0-9]$/)){_=u(v);return null==_|""==_||null!=_.match(/[\x00-\x1F\x7F-\x9F]/)||null!=_.match(/[\u0000-\u001F\u0080\u009F]/)?{tag:{tag:m,explicit:!1,hex:v}}:{tag:{tag:m,explicit:!1,str:_}}}if(!m.match(/^a[0-9]$/)){var S=new _n.asn1.ASN1Object;S.hV=v;var k=S.getLengthHexFromValue();return{asn1:{tlv:m+k+v}}}try{if(!r(v))throw new Error("not encap");return{tag:{tag:m,explicit:!0,obj:n(v)}}}catch(Pt){return{tag:{tag:m,explicit:!0,hex:v}}}}},xn.isContextTag=function(e,t){var n,r;e=e.toLowerCase();try{n=parseInt(e,16)}catch(a){return-1}if(void 0===t)return 128==(192&n);try{var i=t.match(/^\[[0-9]+\]$/);return null!=i&&(r=parseInt(t.substr(1,t.length-1),10),!(r>31)&&(128==(192&n)&&(31&n)==r))}catch(a){return!1}},xn.isASN1HEX=function(e){var t=xn;if(e.length%2==1)return!1;var n=t.getVblen(e,0),r=e.substr(0,2),i=t.getL(e,0),a=e.length-r.length-i.length;return a==2*n},xn.checkStrictDER=function(e,t,n,r,i){var a=xn;if(void 0===n){if("string"!=typeof e)throw new Error("not hex string");if(e=e.toLowerCase(),!_n.lang.String.isHex(e))throw new Error("not hex string");n=e.length,r=e.length/2,i=r<128?1:Math.ceil(r.toString(16))+1}var o=a.getL(e,t);if(o.length>2*i)throw new Error("L of TLV too long: idx="+t);var s=a.getVblen(e,t);if(s>r)throw new Error("value of L too long than hex: idx="+t);var l=a.getTLV(e,t),c=l.length-2-a.getL(e,t).length;if(c!==2*s)throw new Error("V string length and L's value not the same:"+c+"/"+2*s);if(0===t&&e.length!=l.length)throw new Error("total length and TLV length unmatch:"+e.length+"!="+l.length);var u=e.substr(t,2);if("02"===u){var d=a.getVidx(e,t);if("00"==e.substr(d,2)&&e.charCodeAt(d+2)<56)throw new Error("not least zeros for DER INTEGER")}if(32&parseInt(u,16)){for(var h=a.getVblen(e,t),p=0,f=a.getChildIdx(e,t),m=0;m<f.length;m++){var g=a.getTLV(e,f[m]);p+=g.length,a.checkStrictDER(e,f[m],n,r,i)}if(2*h!=p)throw new Error("sum of children's TLV length and L unmatch: "+2*h+"!="+p)}},xn.oidname=function(e){var t=_n.asn1;_n.lang.String.isHex(e)&&(e=t.ASN1Util.oidHexToInt(e));var n=t.x509.OID.oid2name(e);return""===n&&(n=e),n},"undefined"!=typeof _n&&_n||(_n={}),"undefined"!=typeof _n.asn1&&_n.asn1||(_n.asn1={}),"undefined"!=typeof _n.asn1.x509&&_n.asn1.x509||(_n.asn1.x509={}),_n.asn1.x509.Certificate=function(e){_n.asn1.x509.Certificate.superclass.constructor.call(this);var t=_n,n=t.asn1,r=n.DERBitString,i=n.DERSequence,a=n.x509,o=a.TBSCertificate,s=a.AlgorithmIdentifier;this.params=void 0,this.setByParam=function(e){this.params=e},this.sign=function(){var e=this.params,t=e.sigalg;void 0!=e.sigalg.name&&(t=e.sigalg.name);var n=e.tbsobj.tohex(),r=new _n.crypto.Signature({alg:t});r.init(e.cakey),r.updateHex(n),e.sighex=r.sign()},this.getPEM=function(){return Yn(this.tohex(),"CERTIFICATE")},this.tohex=function(){var e=this.params;if(void 0!=e.tbsobj&&null!=e.tbsobj||(e.tbsobj=new o(e)),void 0==e.sighex&&void 0!=e.cakey&&this.sign(),void 0==e.sighex)throw new Error("sighex or cakey parameter not defined");var t=[];t.push(e.tbsobj),t.push(new s({name:e.sigalg})),t.push(new r({hex:"00"+e.sighex}));var n=new i({array:t});return n.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&(this.params=e)},Pr(_n.asn1.x509.Certificate,_n.asn1.ASN1Object),_n.asn1.x509.TBSCertificate=function(e){_n.asn1.x509.TBSCertificate.superclass.constructor.call(this);var t=_n,n=t.asn1,r=n.x509,i=n.DERTaggedObject,a=n.DERInteger,o=n.DERSequence,s=r.AlgorithmIdentifier,l=r.Time,c=r.X500Name,u=r.Extensions,d=r.SubjectPublicKeyInfo;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=[],t=this.params;if(void 0!=t.version||1!=t.version){var n=2;void 0!=t.version&&(n=t.version-1);var r=new i({obj:new a({int:n})});e.push(r)}e.push(new a(t.serial)),e.push(new s({name:t.sigalg})),e.push(new c(t.issuer)),e.push(new o({array:[new l(t.notbefore),new l(t.notafter)]})),e.push(new c(t.subject)),e.push(new d(Mr.getKey(t.sbjpubkey))),void 0!==t.ext&&t.ext.length>0&&e.push(new i({tag:"a3",obj:new u(t.ext)}));var h=new _n.asn1.DERSequence({array:e});return h.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(_n.asn1.x509.TBSCertificate,_n.asn1.ASN1Object),_n.asn1.x509.Extensions=function(e){_n.asn1.x509.Extensions.superclass.constructor.call(this);var t=_n,n=t.asn1,r=n.DERSequence,i=n.x509;this.aParam=[],this.setByParam=function(e){this.aParam=e},this.tohex=function(){for(var e=[],t=0;t<this.aParam.length;t++){var n=this.aParam[t],a=n.extname,o=null;if(void 0!=n.extn)o=new i.PrivateExtension(n);else if("subjectKeyIdentifier"==a)o=new i.SubjectKeyIdentifier(n);else if("keyUsage"==a)o=new i.KeyUsage(n);else if("subjectAltName"==a)o=new i.SubjectAltName(n);else if("issuerAltName"==a)o=new i.IssuerAltName(n);else if("basicConstraints"==a)o=new i.BasicConstraints(n);else if("nameConstraints"==a)o=new i.NameConstraints(n);else if("cRLDistributionPoints"==a)o=new i.CRLDistributionPoints(n);else if("certificatePolicies"==a)o=new i.CertificatePolicies(n);else if("policyMappings"==a)o=new i.PolicyMappings(n);else if("policyConstraints"==a)o=new i.PolicyConstraints(n);else if("inhibitAnyPolicy"==a)o=new i.InhibitAnyPolicy(n);else if("authorityKeyIdentifier"==a)o=new i.AuthorityKeyIdentifier(n);else if("extKeyUsage"==a)o=new i.ExtKeyUsage(n);else if("authorityInfoAccess"==a)o=new i.AuthorityInfoAccess(n);else if("cRLNumber"==a)o=new i.CRLNumber(n);else if("cRLReason"==a)o=new i.CRLReason(n);else if("ocspNonce"==a)o=new i.OCSPNonce(n);else if("ocspNoCheck"==a)o=new i.OCSPNoCheck(n);else if("adobeTimeStamp"==a)o=new i.AdobeTimeStamp(n);else{if("subjectDirectoryAttributes"!=a)throw new Error("extension not supported:"+JSON.stringify(n));o=new i.SubjectDirectoryAttributes(n)}null!=o&&e.push(o)}var s=new r({array:e});return s.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.x509.Extensions,_n.asn1.ASN1Object),_n.asn1.x509.Extension=function(e){_n.asn1.x509.Extension.superclass.constructor.call(this);var t=_n,n=t.asn1,r=n.DERObjectIdentifier,i=n.DEROctetString,a=(n.DERBitString,n.DERBoolean),o=n.DERSequence;this.tohex=function(){var e=new r({oid:this.oid}),t=new i({hex:this.getExtnValueHex()}),n=new Array;n.push(e),this.critical&&n.push(new a),n.push(t);var s=new o({array:n});return s.tohex()},this.getEncodedHex=function(){return this.tohex()},this.critical=!1,void 0!==e&&void 0!==e.critical&&(this.critical=e.critical)},Pr(_n.asn1.x509.Extension,_n.asn1.ASN1Object),_n.asn1.x509.KeyUsage=function(e){_n.asn1.x509.KeyUsage.superclass.constructor.call(this,e);var t=Error,n={digitalSignature:0,nonRepudiation:1,keyEncipherment:2,dataEncipherment:3,keyAgreement:4,keyCertSign:5,cRLSign:6,encipherOnly:7,decipherOnly:8};this.getExtnValueHex=function(){var e=this.getBinValue();return this.asn1ExtnValue=new _n.asn1.DERBitString({bin:e}),this.asn1ExtnValue.tohex()},this.getBinValue=function(){var e=this.params;if("object"!=typeof e||"object"!=typeof e.names&&"string"!=typeof e.bin)throw new t("parameter not yet set");if(void 0!=e.names)return Lr(e.names,n);if(void 0!=e.bin)return e.bin;throw new t("parameter not set properly")},this.oid="2.5.29.15",void 0!==e&&(this.params=e)},Pr(_n.asn1.x509.KeyUsage,_n.asn1.x509.Extension),_n.asn1.x509.BasicConstraints=function(e){_n.asn1.x509.BasicConstraints.superclass.constructor.call(this,e);var t=_n.asn1,n=t.DERBoolean,r=t.DERInteger,i=t.DERSequence;this.getExtnValueHex=function(){var e=new Array;this.cA&&e.push(new n),this.pathLen>-1&&e.push(new r({int:this.pathLen}));var t=new i({array:e});return this.asn1ExtnValue=t,this.asn1ExtnValue.tohex()},this.oid="2.5.29.19",this.cA=!1,this.pathLen=-1,void 0!==e&&(void 0!==e.cA&&(this.cA=e.cA),void 0!==e.pathLen&&(this.pathLen=e.pathLen))},Pr(_n.asn1.x509.BasicConstraints,_n.asn1.x509.Extension),_n.asn1.x509.CRLDistributionPoints=function(e){_n.asn1.x509.CRLDistributionPoints.superclass.constructor.call(this,e);var t=_n,n=t.asn1,r=n.x509;this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.setByDPArray=function(e){for(var t=[],i=0;i<e.length;i++)if(e[i]instanceof _n.asn1.ASN1Object)t.push(e[i]);else{var a=new r.DistributionPoint(e[i]);t.push(a)}this.asn1ExtnValue=new n.DERSequence({array:t})},this.setByOneURI=function(e){var t=new r.DistributionPoint({fulluri:e});this.setByDPArray([t])},this.oid="2.5.29.31",void 0!==e&&(void 0!==e.array?this.setByDPArray(e.array):void 0!==e.uri&&this.setByOneURI(e.uri))},Pr(_n.asn1.x509.CRLDistributionPoints,_n.asn1.x509.Extension),_n.asn1.x509.DistributionPoint=function(e){_n.asn1.x509.DistributionPoint.superclass.constructor.call(this);var t=_n,n=t.asn1,r=n.x509.DistributionPointName;this.tohex=function(){var e=new n.DERSequence;if(null!=this.asn1DP){var t=new n.DERTaggedObject({explicit:!0,tag:"a0",obj:this.asn1DP});e.appendASN1Object(t)}return this.hTLV=e.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(void 0!==e.dpobj?this.asn1DP=e.dpobj:void 0!==e.dpname?this.asn1DP=new r(e.dpname):void 0!==e.fulluri&&(this.asn1DP=new r({full:[{uri:e.fulluri}]})))},Pr(_n.asn1.x509.DistributionPoint,_n.asn1.ASN1Object),_n.asn1.x509.DistributionPointName=function(e){_n.asn1.x509.DistributionPointName.superclass.constructor.call(this);var t=_n,n=t.asn1,r=n.DERTaggedObject;if(this.tohex=function(){if("full"!=this.type)throw new Error("currently type shall be 'full': "+this.type);return this.asn1Obj=new r({explicit:!1,tag:this.tag,obj:this.asn1V}),this.hTLV=this.asn1Obj.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e)if(n.x509.GeneralNames.prototype.isPrototypeOf(e))this.type="full",this.tag="a0",this.asn1V=e;else{if(void 0===e.full)throw new Error("This class supports GeneralNames only as argument");this.type="full",this.tag="a0",this.asn1V=new n.x509.GeneralNames(e.full)}},Pr(_n.asn1.x509.DistributionPointName,_n.asn1.ASN1Object),_n.asn1.x509.CertificatePolicies=function(e){_n.asn1.x509.CertificatePolicies.superclass.constructor.call(this,e);var t=_n,n=t.asn1,r=n.x509,i=n.DERSequence,a=r.PolicyInformation;this.params=null,this.getExtnValueHex=function(){for(var e=[],t=0;t<this.params.array.length;t++)e.push(new a(this.params.array[t]));var n=new i({array:e});return this.asn1ExtnValue=n,this.asn1ExtnValue.tohex()},this.oid="2.5.29.32",void 0!==e&&(this.params=e)},Pr(_n.asn1.x509.CertificatePolicies,_n.asn1.x509.Extension),_n.asn1.x509.PolicyInformation=function(e){_n.asn1.x509.PolicyInformation.superclass.constructor.call(this,e);var t=_n.asn1,n=t.DERSequence,r=t.DERObjectIdentifier,i=t.x509.PolicyQualifierInfo;this.params=null,this.tohex=function(){if(void 0===this.params.policyoid&&void 0===this.params.array)throw new Error("parameter oid and array missing");var e=[new r(this.params.policyoid)];if(void 0!==this.params.array){for(var t=[],a=0;a<this.params.array.length;a++)t.push(new i(this.params.array[a]));t.length>0&&e.push(new n({array:t}))}var o=new n({array:e});return o.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},Pr(_n.asn1.x509.PolicyInformation,_n.asn1.ASN1Object),_n.asn1.x509.PolicyQualifierInfo=function(e){_n.asn1.x509.PolicyQualifierInfo.superclass.constructor.call(this,e);var t=_n.asn1,n=t.DERSequence,r=t.DERIA5String,i=t.DERObjectIdentifier,a=t.x509.UserNotice;this.params=null,this.tohex=function(){if(void 0!==this.params.cps){var e=new n({array:[new i({oid:"1.3.6.1.5.5.7.2.1"}),new r({str:this.params.cps})]});return e.tohex()}if(void 0!=this.params.unotice){e=new n({array:[new i({oid:"1.3.6.1.5.5.7.2.2"}),new a(this.params.unotice)]});return e.tohex()}},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},Pr(_n.asn1.x509.PolicyQualifierInfo,_n.asn1.ASN1Object),_n.asn1.x509.UserNotice=function(e){_n.asn1.x509.UserNotice.superclass.constructor.call(this,e);var t=_n.asn1.DERSequence,n=(_n.asn1.DERInteger,_n.asn1.x509.DisplayText),r=_n.asn1.x509.NoticeReference;this.params=null,this.tohex=function(){var e=[];void 0!==this.params.noticeref&&e.push(new r(this.params.noticeref)),void 0!==this.params.exptext&&e.push(new n(this.params.exptext));var i=new t({array:e});return i.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},Pr(_n.asn1.x509.UserNotice,_n.asn1.ASN1Object),_n.asn1.x509.NoticeReference=function(e){_n.asn1.x509.NoticeReference.superclass.constructor.call(this,e);var t=_n.asn1.DERSequence,n=_n.asn1.DERInteger,r=_n.asn1.x509.DisplayText;this.params=null,this.tohex=function(){var e=[];if(void 0!==this.params.org&&e.push(new r(this.params.org)),void 0!==this.params.noticenum){for(var i=[],a=this.params.noticenum,o=0;o<a.length;o++)i.push(new n(a[o]));e.push(new t({array:i}))}if(0==e.length)throw new Error("parameter is empty");var s=new t({array:e});return s.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},Pr(_n.asn1.x509.NoticeReference,_n.asn1.ASN1Object),_n.asn1.x509.DisplayText=function(e){_n.asn1.x509.DisplayText.superclass.constructor.call(this,e),this.hT="0c",void 0!==e&&("ia5"===e.type?this.hT="16":"vis"===e.type?this.hT="1a":"bmp"===e.type&&(this.hT="1e"))},Pr(_n.asn1.x509.DisplayText,_n.asn1.DERAbstractString),_n.asn1.x509.PolicyMappings=function(e){_n.asn1.x509.PolicyMappings.superclass.constructor.call(this,e);var t=_n,n=t.asn1,r=(n.x509,n.ASN1Util.newObject);this.params=null,this.getExtnValueHex=function(){for(var e=this.params,t=[],n=0;n<e.array.length;n++){var i=e.array[n];t.push({seq:[{oid:i[0]},{oid:i[1]}]})}return this.asn1ExtnValue=r({seq:t}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.33",void 0!==e&&(this.params=e)},Pr(_n.asn1.x509.PolicyMappings,_n.asn1.x509.Extension),_n.asn1.x509.PolicyConstraints=function(e){_n.asn1.x509.PolicyConstraints.superclass.constructor.call(this,e);var t=_n,n=t.asn1,r=(n.x509,n.ASN1Util.newObject);this.params=null,this.getExtnValueHex=function(){var e=this.params,t=[];return void 0!=e.reqexp&&t.push({tag:{tagi:"80",obj:{int:e.reqexp}}}),void 0!=e.inhibit&&t.push({tag:{tagi:"81",obj:{int:e.inhibit}}}),this.asn1ExtnValue=r({seq:t}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.36",void 0!==e&&(this.params=e)},Pr(_n.asn1.x509.PolicyConstraints,_n.asn1.x509.Extension),_n.asn1.x509.InhibitAnyPolicy=function(e){_n.asn1.x509.InhibitAnyPolicy.superclass.constructor.call(this,e);var t=_n,n=t.asn1,r=(n.x509,n.ASN1Util.newObject);this.params=null,this.getExtnValueHex=function(){return this.asn1ExtnValue=r({int:this.params.skip}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.54",void 0!==e&&(this.params=e)},Pr(_n.asn1.x509.InhibitAnyPolicy,_n.asn1.x509.Extension),_n.asn1.x509.NameConstraints=function(e){_n.asn1.x509.NameConstraints.superclass.constructor.call(this,e);var t=_n,n=t.asn1,r=n.x509,i=n.ASN1Util.newObject,a=r.GeneralSubtree;this.params=null,this.getExtnValueHex=function(){var e=this.params,t=[];if(void 0!=e.permit&&void 0!=e.permit.length){for(var n=[],r=0;r<e.permit.length;r++)n.push(new a(e.permit[r]));t.push({tag:{tagi:"a0",obj:{seq:n}}})}if(void 0!=e.exclude&&void 0!=e.exclude.length){var o=[];for(r=0;r<e.exclude.length;r++)o.push(new a(e.exclude[r]));t.push({tag:{tagi:"a1",obj:{seq:o}}})}return this.asn1ExtnValue=i({seq:t}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.30",void 0!==e&&(this.params=e)},Pr(_n.asn1.x509.NameConstraints,_n.asn1.x509.Extension),_n.asn1.x509.GeneralSubtree=function(e){_n.asn1.x509.GeneralSubtree.superclass.constructor.call(this);var t=_n.asn1,n=t.x509,r=n.GeneralName,i=t.ASN1Util.newObject;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params,t=[new r(e)];void 0!=e.min&&t.push({tag:{tagi:"80",obj:{int:e.min}}}),void 0!=e.max&&t.push({tag:{tagi:"81",obj:{int:e.max}}});var n=i({seq:t});return n.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(_n.asn1.x509.GeneralSubtree,_n.asn1.ASN1Object),_n.asn1.x509.ExtKeyUsage=function(e){_n.asn1.x509.ExtKeyUsage.superclass.constructor.call(this,e);var t=_n,n=t.asn1;this.setPurposeArray=function(e){this.asn1ExtnValue=new n.DERSequence;for(var t=0;t<e.length;t++){var r=new n.DERObjectIdentifier(e[t]);this.asn1ExtnValue.appendASN1Object(r)}},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="2.5.29.37",void 0!==e&&void 0!==e.array&&this.setPurposeArray(e.array)},Pr(_n.asn1.x509.ExtKeyUsage,_n.asn1.x509.Extension),_n.asn1.x509.AuthorityKeyIdentifier=function(e){_n.asn1.x509.AuthorityKeyIdentifier.superclass.constructor.call(this,e);var t=_n,n=t.asn1,r=n.DERTaggedObject,i=n.x509.GeneralNames;t.crypto.Util.isKey;this.asn1KID=null,this.asn1CertIssuer=null,this.asn1CertSN=null,this.getExtnValueHex=function(){var e=new Array;this.asn1KID&&e.push(new r({explicit:!1,tag:"80",obj:this.asn1KID})),this.asn1CertIssuer&&e.push(new r({explicit:!1,tag:"a1",obj:new i([{dn:this.asn1CertIssuer}])})),this.asn1CertSN&&e.push(new r({explicit:!1,tag:"82",obj:this.asn1CertSN}));var t=new n.DERSequence({array:e});return this.asn1ExtnValue=t,this.asn1ExtnValue.tohex()},this.setKIDByParam=function(e){if(void 0!==e.str||void 0!==e.hex)this.asn1KID=new _n.asn1.DEROctetString(e);else if("object"===typeof e&&_n.crypto.Util.isKey(e)||"string"===typeof e&&-1!=e.indexOf("BEGIN ")){var t=e;"string"===typeof e&&(t=Mr.getKey(e));var n=Mr.getKeyID(t);this.asn1KID=new _n.asn1.DEROctetString({hex:n})}},this.setCertIssuerByParam=function(e){void 0!==e.str||void 0!==e.ldapstr||void 0!==e.hex||void 0!==e.certsubject||void 0!==e.certissuer?this.asn1CertIssuer=new _n.asn1.x509.X500Name(e):"string"===typeof e&&-1!=e.indexOf("BEGIN ")&&-1!=e.indexOf("CERTIFICATE")&&(this.asn1CertIssuer=new _n.asn1.x509.X500Name({certissuer:e}))},this.setCertSNByParam=function(e){if(void 0!==e.str||void 0!==e.bigint||void 0!==e.hex)this.asn1CertSN=new _n.asn1.DERInteger(e);else if("string"===typeof e&&-1!=e.indexOf("BEGIN ")&&e.indexOf("CERTIFICATE")){var t=new Ur;t.readCertPEM(e);var n=t.getSerialNumberHex();this.asn1CertSN=new _n.asn1.DERInteger({hex:n})}},this.oid="2.5.29.35",void 0!==e&&(void 0!==e.kid&&this.setKIDByParam(e.kid),void 0!==e.issuer&&this.setCertIssuerByParam(e.issuer),void 0!==e.sn&&this.setCertSNByParam(e.sn),void 0!==e.issuersn&&"string"===typeof e.issuersn&&-1!=e.issuersn.indexOf("BEGIN ")&&e.issuersn.indexOf("CERTIFICATE")&&(this.setCertSNByParam(e.issuersn),this.setCertIssuerByParam(e.issuersn)))},Pr(_n.asn1.x509.AuthorityKeyIdentifier,_n.asn1.x509.Extension),_n.asn1.x509.SubjectKeyIdentifier=function(e){_n.asn1.x509.SubjectKeyIdentifier.superclass.constructor.call(this,e);var t=_n,n=t.asn1,r=n.DEROctetString;this.asn1KID=null,this.getExtnValueHex=function(){return this.asn1ExtnValue=this.asn1KID,this.asn1ExtnValue.tohex()},this.setKIDByParam=function(e){if(void 0!==e.str||void 0!==e.hex)this.asn1KID=new r(e);else if("object"===typeof e&&_n.crypto.Util.isKey(e)||"string"===typeof e&&-1!=e.indexOf("BEGIN")){var t=e;"string"===typeof e&&(t=Mr.getKey(e));var n=Mr.getKeyID(t);this.asn1KID=new _n.asn1.DEROctetString({hex:n})}},this.oid="2.5.29.14",void 0!==e&&void 0!==e.kid&&this.setKIDByParam(e.kid)},Pr(_n.asn1.x509.SubjectKeyIdentifier,_n.asn1.x509.Extension),_n.asn1.x509.AuthorityInfoAccess=function(e){_n.asn1.x509.AuthorityInfoAccess.superclass.constructor.call(this,e),this.setAccessDescriptionArray=function(e){for(var t=new Array,n=_n,r=n.asn1,i=r.DERSequence,a=r.DERObjectIdentifier,o=r.x509.GeneralName,s=0;s<e.length;s++){var l,c=e[s];if(void 0!==c.ocsp)l=new i({array:[new a({oid:"1.3.6.1.5.5.7.48.1"}),new o({uri:c.ocsp})]});else{if(void 0===c.caissuer)throw new Error("unknown AccessMethod parameter: "+JSON.stringify(c));l=new i({array:[new a({oid:"1.3.6.1.5.5.7.48.2"}),new o({uri:c.caissuer})]})}t.push(l)}this.asn1ExtnValue=new i({array:t})},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="1.3.6.1.5.5.7.1.1",void 0!==e&&void 0!==e.array&&this.setAccessDescriptionArray(e.array)},Pr(_n.asn1.x509.AuthorityInfoAccess,_n.asn1.x509.Extension),_n.asn1.x509.SubjectAltName=function(e){_n.asn1.x509.SubjectAltName.superclass.constructor.call(this,e),this.setNameArray=function(e){this.asn1ExtnValue=new _n.asn1.x509.GeneralNames(e)},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="2.5.29.17",void 0!==e&&void 0!==e.array&&this.setNameArray(e.array)},Pr(_n.asn1.x509.SubjectAltName,_n.asn1.x509.Extension),_n.asn1.x509.IssuerAltName=function(e){_n.asn1.x509.IssuerAltName.superclass.constructor.call(this,e),this.setNameArray=function(e){this.asn1ExtnValue=new _n.asn1.x509.GeneralNames(e)},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="2.5.29.18",void 0!==e&&void 0!==e.array&&this.setNameArray(e.array)},Pr(_n.asn1.x509.IssuerAltName,_n.asn1.x509.Extension),_n.asn1.x509.SubjectDirectoryAttributes=function(e){_n.asn1.x509.SubjectDirectoryAttributes.superclass.constructor.call(this,e);var t=_n.asn1,n=t.DERSequence,r=t.ASN1Util.newObject,i=t.x509.OID.name2oid;this.params=null,this.getExtnValueHex=function(){for(var e=[],t=0;t<this.params.array.length;t++){var a=this.params.array[t];if(void 0==a.attr||void 0==a.array){var o={seq:[{oid:"1.2.3.4"},{set:[{utf8str:"DE"}]}]};if("dateOfBirth"==a.attr)o.seq[0].oid=i(a.attr),o.seq[1].set[0]={gentime:a.str};else if("placeOfBirth"==a.attr)o.seq[0].oid=i(a.attr),o.seq[1].set[0]={utf8str:a.str};else if("gender"==a.attr)o.seq[0].oid=i(a.attr),o.seq[1].set[0]={prnstr:a.str};else if("countryOfCitizenship"==a.attr)o.seq[0].oid=i(a.attr),o.seq[1].set[0]={prnstr:a.str};else{if("countryOfResidence"!=a.attr)throw new Error("unsupported attribute: "+a.attr);o.seq[0].oid=i(a.attr),o.seq[1].set[0]={prnstr:a.str}}e.push(new r(o))}else{var s={seq:[{oid:a.attr},{set:a.array}]};e.push(r(s))}}var l=new n({array:e});return this.asn1ExtnValue=l,this.asn1ExtnValue.tohex()},this.oid="2.5.29.9",void 0!==e&&(this.params=e)},Pr(_n.asn1.x509.SubjectDirectoryAttributes,_n.asn1.x509.Extension),_n.asn1.x509.PrivateExtension=function(e){_n.asn1.x509.PrivateExtension.superclass.constructor.call(this,e);var t=_n,n=t.lang.String.isHex,r=t.asn1,i=r.x509.OID.name2oid,a=r.ASN1Util.newObject;this.params=null,this.setByParam=function(e){this.oid=i(e.extname),this.params=e},this.getExtnValueHex=function(){if(void 0==this.params.extname||void 0==this.params.extn)throw new Error("extname or extnhex not specified");var e=this.params.extn;if("string"==typeof e&&n(e))return e;if("object"==typeof e)try{return a(e).tohex()}catch(t){}throw new Error("unsupported extn value")},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.x509.PrivateExtension,_n.asn1.x509.Extension),_n.asn1.x509.CRL=function(e){_n.asn1.x509.CRL.superclass.constructor.call(this);var t=_n,n=t.asn1,r=n.DERSequence,i=n.DERBitString,a=n.x509,o=a.AlgorithmIdentifier,s=a.TBSCertList;this.params=void 0,this.setByParam=function(e){this.params=e},this.sign=function(){var e=new s(this.params).tohex(),t=new _n.crypto.Signature({alg:this.params.sigalg});t.init(this.params.cakey),t.updateHex(e);var n=t.sign();this.params.sighex=n},this.getPEM=function(){return Yn(this.tohex(),"X509 CRL")},this.tohex=function(){var e=this.params;if(void 0==e.tbsobj&&(e.tbsobj=new s(e)),void 0==e.sighex&&void 0!=e.cakey&&this.sign(),void 0==e.sighex)throw new Error("sighex or cakey parameter not defined");var t=[];t.push(e.tbsobj),t.push(new o({name:e.sigalg})),t.push(new i({hex:"00"+e.sighex}));var n=new r({array:t});return n.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&(this.params=e)},Pr(_n.asn1.x509.CRL,_n.asn1.ASN1Object),_n.asn1.x509.TBSCertList=function(e){_n.asn1.x509.TBSCertList.superclass.constructor.call(this);var t=_n,n=t.asn1,r=n.DERInteger,i=n.DERSequence,a=n.DERTaggedObject,o=(n.DERObjectIdentifier,n.x509),s=o.AlgorithmIdentifier,l=o.Time,c=o.Extensions,u=o.X500Name;this.params=null,this.setByParam=function(e){this.params=e},this.getRevCertSequence=function(){for(var e=[],t=this.params.revcert,n=0;n<t.length;n++){var a=[new r(t[n].sn),new l(t[n].date)];void 0!=t[n].ext&&a.push(new c(t[n].ext)),e.push(new i({array:a}))}return new i({array:e})},this.tohex=function(){var e=[],t=this.params;if(void 0!=t.version){var n=t.version-1,o=new r({int:n});e.push(o)}if(e.push(new s({name:t.sigalg})),e.push(new u(t.issuer)),e.push(new l(t.thisupdate)),void 0!=t.nextupdate&&e.push(new l(t.nextupdate)),void 0!=t.revcert&&e.push(this.getRevCertSequence()),void 0!=t.ext){var d=new c(t.ext);e.push(new a({tag:"a0",explicit:!0,obj:d}))}var h=new i({array:e});return h.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(_n.asn1.x509.TBSCertList,_n.asn1.ASN1Object),_n.asn1.x509.CRLEntry=function(e){_n.asn1.x509.CRLEntry.superclass.constructor.call(this);var t=_n,n=t.asn1;this.setCertSerial=function(e){this.sn=new n.DERInteger(e)},this.setRevocationDate=function(e){this.time=new n.x509.Time(e)},this.tohex=function(){var e=new n.DERSequence({array:[this.sn,this.time]});return this.TLV=e.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(void 0!==e.time&&this.setRevocationDate(e.time),void 0!==e.sn&&this.setCertSerial(e.sn))},Pr(_n.asn1.x509.CRLEntry,_n.asn1.ASN1Object),_n.asn1.x509.CRLNumber=function(e){_n.asn1.x509.CRLNumber.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new _n.asn1.DERInteger(this.params.num),this.asn1ExtnValue.tohex()},this.oid="2.5.29.20",void 0!=e&&(this.params=e)},Pr(_n.asn1.x509.CRLNumber,_n.asn1.x509.Extension),_n.asn1.x509.CRLReason=function(e){_n.asn1.x509.CRLReason.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new _n.asn1.DEREnumerated(this.params.code),this.asn1ExtnValue.tohex()},this.oid="2.5.29.21",void 0!=e&&(this.params=e)},Pr(_n.asn1.x509.CRLReason,_n.asn1.x509.Extension),_n.asn1.x509.OCSPNonce=function(e){_n.asn1.x509.OCSPNonce.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new _n.asn1.DEROctetString(this.params),this.asn1ExtnValue.tohex()},this.oid="1.3.6.1.5.5.7.48.1.2",void 0!=e&&(this.params=e)},Pr(_n.asn1.x509.OCSPNonce,_n.asn1.x509.Extension),_n.asn1.x509.OCSPNoCheck=function(e){_n.asn1.x509.OCSPNoCheck.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new _n.asn1.DERNull,this.asn1ExtnValue.tohex()},this.oid="1.3.6.1.5.5.7.48.1.5",void 0!=e&&(this.params=e)},Pr(_n.asn1.x509.OCSPNoCheck,_n.asn1.x509.Extension),_n.asn1.x509.AdobeTimeStamp=function(e){_n.asn1.x509.AdobeTimeStamp.superclass.constructor.call(this,e);var t=_n,n=t.asn1,r=n.DERInteger,i=n.DERBoolean,a=n.DERSequence,o=n.x509.GeneralName;this.params=null,this.getExtnValueHex=function(){var e=this.params,t=[new r(1)];return t.push(new o({uri:e.uri})),void 0!=e.reqauth&&t.push(new i(e.reqauth)),this.asn1ExtnValue=new a({array:t}),this.asn1ExtnValue.tohex()},this.oid="1.2.840.113583.1.1.9.1",void 0!==e&&this.setByParam(e)},Pr(_n.asn1.x509.AdobeTimeStamp,_n.asn1.x509.Extension),_n.asn1.x509.X500Name=function(e){_n.asn1.x509.X500Name.superclass.constructor.call(this),this.asn1Array=[],this.paramArray=[],this.sRule="utf8";var t=_n,n=t.asn1,r=n.x509,i=r.RDN;this.setByString=function(e,t){void 0!==t&&(this.sRule=t);var n=e.split("/");n.shift();for(var r=[],a=0;a<n.length;a++)if(n[a].match(/^[^=]+=.+$/))r.push(n[a]);else{var o=r.length-1;r[o]=r[o]+"/"+n[a]}for(a=0;a<r.length;a++)this.asn1Array.push(new i({str:r[a],rule:this.sRule}))},this.setByLdapString=function(e,t){void 0!==t&&(this.sRule=t);var n=r.X500Name.ldapToCompat(e);this.setByString(n,t)},this.setByObject=function(e,t){for(var n in void 0!==t&&(this.sRule=t),e)if(e.hasOwnProperty(n)){var r=new i({str:n+"="+e[n],rule:this.sRule});this.asn1Array?this.asn1Array.push(r):this.asn1Array=[r]}},this.setByParam=function(e){if(void 0!==e.rule&&(this.sRule=e.rule),void 0!==e.array)this.paramArray=e.array;else if(void 0!==e.str)this.setByString(e.str);else if(void 0!==e.ldapstr)this.setByLdapString(e.ldapstr);else if(void 0!==e.hex)this.hTLV=e.hex;else if(void 0!==e.certissuer){var t=new Ur;t.readCertPEM(e.certissuer),this.hTLV=t.getIssuerHex()}else if(void 0!==e.certsubject){t=new Ur;t.readCertPEM(e.certsubject),this.hTLV=t.getSubjectHex()}else"object"===typeof e&&void 0===e.certsubject&&void 0===e.certissuer&&this.setByObject(e)},this.tohex=function(){if("string"==typeof this.hTLV)return this.hTLV;if(0==this.asn1Array.length&&this.paramArray.length>0)for(var e=0;e<this.paramArray.length;e++){var t={array:this.paramArray[e]};"utf8"!=this.sRule&&(t.rule=this.sRule);var r=new i(t);this.asn1Array.push(r)}var a=new n.DERSequence({array:this.asn1Array});return this.hTLV=a.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(_n.asn1.x509.X500Name,_n.asn1.ASN1Object),_n.asn1.x509.X500Name.compatToLDAP=function(e){if("/"!==e.substr(0,1))throw"malformed input";e=e.substr(1);var t=e.split("/");return t.reverse(),t=t.map((function(e){return e.replace(/,/,"\\,")})),t.join(",")},_n.asn1.x509.X500Name.onelineToLDAP=function(e){return _n.asn1.x509.X500Name.compatToLDAP(e)},_n.asn1.x509.X500Name.ldapToCompat=function(e){for(var t=e.split(","),n=!1,r=[],i=0;t.length>0;i++){var a=t.shift();if(!0===n){var o=r.pop(),s=(o+","+a).replace(/\\,/g,",");r.push(s),n=!1}else r.push(a);"\\"===a.substr(-1,1)&&(n=!0)}return r=r.map((function(e){return e.replace("/","\\/")})),r.reverse(),"/"+r.join("/")},_n.asn1.x509.X500Name.ldapToOneline=function(e){return _n.asn1.x509.X500Name.ldapToCompat(e)},_n.asn1.x509.RDN=function(e){_n.asn1.x509.RDN.superclass.constructor.call(this),this.asn1Array=[],this.paramArray=[],this.sRule="utf8";var t=_n.asn1.x509.AttributeTypeAndValue;this.setByParam=function(e){void 0!==e.rule&&(this.sRule=e.rule),void 0!==e.str&&this.addByMultiValuedString(e.str),void 0!==e.array&&(this.paramArray=e.array)},this.addByString=function(e){this.asn1Array.push(new _n.asn1.x509.AttributeTypeAndValue({str:e,rule:this.sRule}))},this.addByMultiValuedString=function(e){for(var t=_n.asn1.x509.RDN.parseString(e),n=0;n<t.length;n++)this.addByString(t[n])},this.tohex=function(){if(0==this.asn1Array.length&&this.paramArray.length>0)for(var e=0;e<this.paramArray.length;e++){var n=this.paramArray[e];void 0!==n.rule&&"utf8"!=this.sRule&&(n.rule=this.sRule);var r=new t(n);this.asn1Array.push(r)}var i=new _n.asn1.DERSet({array:this.asn1Array});return this.TLV=i.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(_n.asn1.x509.RDN,_n.asn1.ASN1Object),_n.asn1.x509.RDN.parseString=function(e){for(var t=e.split(/\+/),n=!1,r=[],i=0;t.length>0;i++){var a=t.shift();if(!0===n){var o=r.pop(),s=(o+"+"+a).replace(/\\\+/g,"+");r.push(s),n=!1}else r.push(a);"\\"===a.substr(-1,1)&&(n=!0)}var l=!1,c=[];for(i=0;r.length>0;i++){a=r.shift();if(!0===l){var u=c.pop();if(a.match(/"$/)){s=(u+"+"+a).replace(/^([^=]+)="(.*)"$/,"$1=$2");c.push(s),l=!1}else c.push(u+"+"+a)}else c.push(a);a.match(/^[^=]+="/)&&(l=!0)}return c},_n.asn1.x509.AttributeTypeAndValue=function(e){_n.asn1.x509.AttributeTypeAndValue.superclass.constructor.call(this),this.sRule="utf8",this.sType=null,this.sValue=null,this.dsType=null;var t=_n,n=t.asn1,r=n.DERSequence,i=n.DERUTF8String,a=n.DERPrintableString,o=n.DERTeletexString,s=n.DERIA5String,l=n.DERVisibleString,c=n.DERBMPString,u=t.lang.String.isMail,d=t.lang.String.isPrintable;this.setByParam=function(e){if(void 0!==e.rule&&(this.sRule=e.rule),void 0!==e.ds&&(this.dsType=e.ds),void 0===e.value&&void 0!==e.str){var t=e.str,n=t.match(/^([^=]+)=(.+)$/);if(!n)throw new Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr);this.sType=n[1],this.sValue=n[2]}else this.sType=e.type,this.sValue=e.value},this.setByString=function(e,t){void 0!==t&&(this.sRule=t);var n=e.match(/^([^=]+)=(.+)$/);if(!n)throw new Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr);this.setByAttrTypeAndValueStr(n[1],n[2])},this._getDsType=function(){var e=this.sType,t=this.sValue,n=this.sRule;return"prn"===n?"CN"==e&&u(t)?"ia5":d(t)?"prn":"utf8":"utf8"===n?"CN"==e&&u(t)?"ia5":"C"==e?"prn":"utf8":"utf8"},this.setByAttrTypeAndValueStr=function(e,t,n){void 0!==n&&(this.sRule=n),this.sType=e,this.sValue=t},this.getValueObj=function(e,t){if("utf8"==e)return new i({str:t});if("prn"==e)return new a({str:t});if("tel"==e)return new o({str:t});if("ia5"==e)return new s({str:t});if("vis"==e)return new l({str:t});if("bmp"==e)return new c({str:t});throw new Error("unsupported directory string type: type="+e+" value="+t)},this.tohex=function(){null==this.dsType&&(this.dsType=this._getDsType());var e=_n.asn1.x509.OID.atype2obj(this.sType),t=this.getValueObj(this.dsType,this.sValue),n=new r({array:[e,t]});return this.TLV=n.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(_n.asn1.x509.AttributeTypeAndValue,_n.asn1.ASN1Object),_n.asn1.x509.SubjectPublicKeyInfo=function(e){_n.asn1.x509.SubjectPublicKeyInfo.superclass.constructor.call(this);var t=_n,n=t.asn1,r=n.DERInteger,i=n.DERBitString,a=n.DERObjectIdentifier,o=n.DERSequence,s=n.ASN1Util.newObject,l=n.x509,c=l.AlgorithmIdentifier,u=t.crypto;u.ECDSA,u.DSA;this.getASN1Object=function(){if(null==this.asn1AlgId||null==this.asn1SubjPKey)throw"algId and/or subjPubKey not set";var e=new o({array:[this.asn1AlgId,this.asn1SubjPKey]});return e},this.tohex=function(){var e=this.getASN1Object();return this.hTLV=e.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.setPubKey=function(e){try{if(e instanceof Ut){var t=s({seq:[{int:{bigint:e.n}},{int:{int:e.e}}]}),n=t.tohex();this.asn1AlgId=new c({name:"rsaEncryption"}),this.asn1SubjPKey=new i({hex:"00"+n})}}catch(u){}try{if(e instanceof _n.crypto.ECDSA){var o=new a({name:e.curveName});this.asn1AlgId=new c({name:"ecPublicKey",asn1params:o}),this.asn1SubjPKey=new i({hex:"00"+e.pubKeyHex})}}catch(u){}try{if(e instanceof _n.crypto.DSA){o=new s({seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]});this.asn1AlgId=new c({name:"dsa",asn1params:o});var l=new r({bigint:e.y});this.asn1SubjPKey=new i({hex:"00"+l.tohex()})}}catch(u){}},void 0!==e&&this.setPubKey(e)},Pr(_n.asn1.x509.SubjectPublicKeyInfo,_n.asn1.ASN1Object),_n.asn1.x509.Time=function(e){_n.asn1.x509.Time.superclass.constructor.call(this);var t=_n,n=t.asn1,r=n.DERUTCTime,i=n.DERGeneralizedTime;this.params=null,this.type=null,this.setTimeParams=function(e){this.timeParams=e},this.setByParam=function(e){this.params=e},this.getType=function(e){return e.match(/^[0-9]{12}Z$/)?"utc":e.match(/^[0-9]{14}Z$/)?"gen":e.match(/^[0-9]{12}\.[0-9]+Z$/)?"utc":e.match(/^[0-9]{14}\.[0-9]+Z$/)?"gen":null},this.tohex=function(){var e=this.params,t=null;if("string"==typeof e&&(e={str:e}),null==e||!e.str||null!=e.type&&void 0!=e.type||(e.type=this.getType(e.str)),null!=e&&e.str?("utc"==e.type&&(t=new r(e.str)),"gen"==e.type&&(t=new i(e.str))):t="gen"==this.type?new i:new r,null==t)throw new Error("wrong setting for Time");return this.TLV=t.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},_n.asn1.x509.Time_bak=function(e){_n.asn1.x509.Time_bak.superclass.constructor.call(this);var t=_n,n=t.asn1,r=n.DERUTCTime,i=n.DERGeneralizedTime;this.setTimeParams=function(e){this.timeParams=e},this.tohex=function(){var e=null;return e=null!=this.timeParams?"utc"==this.type?new r(this.timeParams):new i(this.timeParams):"utc"==this.type?new r:new i,this.TLV=e.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},this.type="utc",void 0!==e&&(void 0!==e.type?this.type=e.type:void 0!==e.str&&(e.str.match(/^[0-9]{12}Z$/)&&(this.type="utc"),e.str.match(/^[0-9]{14}Z$/)&&(this.type="gen")),this.timeParams=e)},Pr(_n.asn1.x509.Time,_n.asn1.ASN1Object),_n.asn1.x509.AlgorithmIdentifier=function(e){_n.asn1.x509.AlgorithmIdentifier.superclass.constructor.call(this),this.nameAlg=null,this.asn1Alg=null,this.asn1Params=null,this.paramEmpty=!1;var t=_n,n=t.asn1,r=n.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV;if(this.tohex=function(){if(null===this.nameAlg&&null===this.asn1Alg)throw new Error("algorithm not specified");if(null!==this.nameAlg){var e=null;for(var t in r)t===this.nameAlg&&(e=r[t]);if(null!==e)return this.hTLV=e,this.hTLV}null!==this.nameAlg&&null===this.asn1Alg&&(this.asn1Alg=n.x509.OID.name2obj(this.nameAlg));var i=[this.asn1Alg];null!==this.asn1Params&&i.push(this.asn1Params);var a=new n.DERSequence({array:i});return this.hTLV=a.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(void 0!==e.name&&(this.nameAlg=e.name),void 0!==e.asn1params&&(this.asn1Params=e.asn1params),void 0!==e.paramempty&&(this.paramEmpty=e.paramempty)),null===this.asn1Params&&!1===this.paramEmpty&&null!==this.nameAlg){void 0!==this.nameAlg.name&&(this.nameAlg=this.nameAlg.name);var i=this.nameAlg.toLowerCase();"withdsa"!==i.substr(-7,7)&&"withecdsa"!==i.substr(-9,9)&&(this.asn1Params=new n.DERNull)}},Pr(_n.asn1.x509.AlgorithmIdentifier,_n.asn1.ASN1Object),_n.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV={SHAwithRSAandMGF1:"300d06092a864886f70d01010a3000",SHA256withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040201a11a301806092a864886f70d010108300b0609608648016503040201a203020120",SHA384withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040202a11a301806092a864886f70d010108300b0609608648016503040202a203020130",SHA512withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040203a11a301806092a864886f70d010108300b0609608648016503040203a203020140"},_n.asn1.x509.GeneralName=function(e){_n.asn1.x509.GeneralName.superclass.constructor.call(this);var t=_n,n=t.asn1,r=n.x509,i=r.X500Name,a=r.OtherName,o=n.DERIA5String,s=(n.DERPrintableString,n.DEROctetString),l=n.DERTaggedObject,c=n.ASN1Object,u=Error;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e,t,n=this.params,r=!1;if(void 0!==n.other)e="a0",t=new a(n.other);else if(void 0!==n.rfc822)e="81",t=new o({str:n.rfc822});else if(void 0!==n.dns)e="82",t=new o({str:n.dns});else if(void 0!==n.dn)e="a4",r=!0,t="string"===typeof n.dn?new i({str:n.dn}):n.dn instanceof _n.asn1.x509.X500Name?n.dn:new i(n.dn);else if(void 0!==n.ldapdn)e="a4",r=!0,t=new i({ldapstr:n.ldapdn});else if(void 0!==n.certissuer||void 0!==n.certsubj){var d,h;e="a4",r=!0;var p=null;if(void 0!==n.certsubj?(d=!1,h=n.certsubj):(d=!0,h=n.certissuer),h.match(/^[0-9A-Fa-f]+$/),-1!=h.indexOf("-----BEGIN ")&&(p=Qn(h)),null==p)throw new Error("certsubj/certissuer not cert");var f,m=new Ur;m.hex=p,f=d?m.getIssuerHex():m.getSubjectHex(),t=new c,t.hTLV=f}else if(void 0!==n.uri)e="86",t=new o({str:n.uri});else{if(void 0===n.ip)throw new u("improper params");var g;e="87";var v=n.ip;try{if(v.match(/^[0-9a-f]+$/)){var b=v.length;if(8!=b&&16!=b&&32!=b&&64!=b)throw"err";g=v}else g=pr(v)}catch(w){throw new u("malformed IP address: "+n.ip+":"+w.message)}t=new s({hex:g})}var y=new l({tag:e,explicit:r,obj:t});return y.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(_n.asn1.x509.GeneralName,_n.asn1.ASN1Object),_n.asn1.x509.GeneralNames=function(e){_n.asn1.x509.GeneralNames.superclass.constructor.call(this);var t=_n,n=t.asn1;this.setByParamArray=function(e){for(var t=0;t<e.length;t++){var r=new n.x509.GeneralName(e[t]);this.asn1Array.push(r)}},this.tohex=function(){var e=new n.DERSequence({array:this.asn1Array});return e.tohex()},this.getEncodedHex=function(){return this.tohex()},this.asn1Array=new Array,"undefined"!=typeof e&&this.setByParamArray(e)},Pr(_n.asn1.x509.GeneralNames,_n.asn1.ASN1Object),_n.asn1.x509.OtherName=function(e){_n.asn1.x509.OtherName.superclass.constructor.call(this);var t=_n,n=t.asn1,r=n.DERObjectIdentifier,i=n.DERSequence,a=n.ASN1Util.newObject;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params;if(void 0==e.oid||void 0==e.value)throw new Error("oid or value not specified");var t=new r({oid:e.oid}),n=a({tag:{tag:"a0",explicit:!0,obj:e.value}}),o=new i({array:[t,n]});return o.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(_n.asn1.x509.OtherName,_n.asn1.ASN1Object),_n.asn1.x509.OID=new function(){var e=_n.asn1.DERObjectIdentifier;this.name2oidList={"aes128-CBC":"2.16.840.1.101.3.4.1.2","aes256-CBC":"2.16.840.1.101.3.4.1.42",sha1:"1.3.14.3.2.26",sha256:"2.16.840.1.101.3.4.2.1",sha384:"2.16.840.1.101.3.4.2.2",sha512:"2.16.840.1.101.3.4.2.3",sha224:"2.16.840.1.101.3.4.2.4",md5:"1.2.840.113549.2.5",md2:"1.3.14.7.2.2.1",ripemd160:"1.3.36.3.2.1",hmacWithSHA1:"1.2.840.113549.2.7",hmacWithSHA224:"1.2.840.113549.2.8",hmacWithSHA256:"1.2.840.113549.2.9",hmacWithSHA384:"1.2.840.113549.2.10",hmacWithSHA512:"1.2.840.113549.2.11",MD2withRSA:"1.2.840.113549.1.1.2",MD4withRSA:"1.2.840.113549.1.1.3",MD5withRSA:"1.2.840.113549.1.1.4",SHA1withRSA:"1.2.840.113549.1.1.5","pkcs1-MGF":"1.2.840.113549.1.1.8",rsaPSS:"1.2.840.113549.1.1.10",SHA224withRSA:"1.2.840.113549.1.1.14",SHA256withRSA:"1.2.840.113549.1.1.11",SHA384withRSA:"1.2.840.113549.1.1.12",SHA512withRSA:"1.2.840.113549.1.1.13",SHA1withECDSA:"1.2.840.10045.4.1",SHA224withECDSA:"1.2.840.10045.4.3.1",SHA256withECDSA:"1.2.840.10045.4.3.2",SHA384withECDSA:"1.2.840.10045.4.3.3",SHA512withECDSA:"1.2.840.10045.4.3.4",dsa:"1.2.840.10040.4.1",SHA1withDSA:"1.2.840.10040.4.3",SHA224withDSA:"2.16.840.1.101.3.4.3.1",SHA256withDSA:"2.16.840.1.101.3.4.3.2",rsaEncryption:"1.2.840.113549.1.1.1",commonName:"2.5.4.3",countryName:"2.5.4.6",localityName:"2.5.4.7",stateOrProvinceName:"2.5.4.8",streetAddress:"2.5.4.9",organizationName:"2.5.4.10",organizationalUnitName:"2.5.4.11",domainComponent:"0.9.2342.19200300.100.1.25",userId:"0.9.2342.19200300.100.1.1",surname:"2.5.4.4",givenName:"2.5.4.42",title:"2.5.4.12",distinguishedName:"2.5.4.49",emailAddress:"1.2.840.113549.1.9.1",description:"2.5.4.13",businessCategory:"2.5.4.15",postalCode:"2.5.4.17",uniqueIdentifier:"2.5.4.45",organizationIdentifier:"2.5.4.97",jurisdictionOfIncorporationL:"1.3.6.1.4.1.311.60.2.1.1",jurisdictionOfIncorporationSP:"1.3.6.1.4.1.311.60.2.1.2",jurisdictionOfIncorporationC:"1.3.6.1.4.1.311.60.2.1.3",subjectDirectoryAttributes:"2.5.29.9",subjectKeyIdentifier:"2.5.29.14",keyUsage:"2.5.29.15",subjectAltName:"2.5.29.17",issuerAltName:"2.5.29.18",basicConstraints:"2.5.29.19",cRLNumber:"2.5.29.20",cRLReason:"2.5.29.21",nameConstraints:"2.5.29.30",cRLDistributionPoints:"2.5.29.31",certificatePolicies:"2.5.29.32",anyPolicy:"2.5.29.32.0",policyMappings:"2.5.29.33",authorityKeyIdentifier:"2.5.29.35",policyConstraints:"2.5.29.36",extKeyUsage:"2.5.29.37",inhibitAnyPolicy:"2.5.29.54",authorityInfoAccess:"1.3.6.1.5.5.7.1.1",ocsp:"1.3.6.1.5.5.7.48.1",ocspBasic:"1.3.6.1.5.5.7.48.1.1",ocspNonce:"1.3.6.1.5.5.7.48.1.2",ocspNoCheck:"1.3.6.1.5.5.7.48.1.5",caIssuers:"1.3.6.1.5.5.7.48.2",anyExtendedKeyUsage:"2.5.29.37.0",serverAuth:"1.3.6.1.5.5.7.3.1",clientAuth:"1.3.6.1.5.5.7.3.2",codeSigning:"1.3.6.1.5.5.7.3.3",emailProtection:"1.3.6.1.5.5.7.3.4",timeStamping:"1.3.6.1.5.5.7.3.8",ocspSigning:"1.3.6.1.5.5.7.3.9",smtpUTF8Mailbox:"1.3.6.1.5.5.7.8.9",dateOfBirth:"1.3.6.1.5.5.7.9.1",placeOfBirth:"1.3.6.1.5.5.7.9.2",gender:"1.3.6.1.5.5.7.9.3",countryOfCitizenship:"1.3.6.1.5.5.7.9.4",countryOfResidence:"1.3.6.1.5.5.7.9.5",ecPublicKey:"1.2.840.10045.2.1","P-256":"1.2.840.10045.3.1.7",secp256r1:"1.2.840.10045.3.1.7",secp256k1:"1.3.132.0.10",secp384r1:"1.3.132.0.34",secp521r1:"1.3.132.0.35",pkcs5PBES2:"1.2.840.113549.1.5.13",pkcs5PBKDF2:"1.2.840.113549.1.5.12","des-EDE3-CBC":"1.2.840.113549.3.7",data:"1.2.840.113549.1.7.1","signed-data":"1.2.840.113549.1.7.2","enveloped-data":"1.2.840.113549.1.7.3","digested-data":"1.2.840.113549.1.7.5","encrypted-data":"1.2.840.113549.1.7.6","authenticated-data":"1.2.840.113549.1.9.16.1.2",tstinfo:"1.2.840.113549.1.9.16.1.4",signingCertificate:"1.2.840.113549.1.9.16.2.12",timeStampToken:"1.2.840.113549.1.9.16.2.14",signaturePolicyIdentifier:"1.2.840.113549.1.9.16.2.15",etsArchiveTimeStamp:"1.2.840.113549.1.9.16.2.27",signingCertificateV2:"1.2.840.113549.1.9.16.2.47",etsArchiveTimeStampV2:"1.2.840.113549.1.9.16.2.48",extensionRequest:"1.2.840.113549.1.9.14",contentType:"1.2.840.113549.1.9.3",messageDigest:"1.2.840.113549.1.9.4",signingTime:"1.2.840.113549.1.9.5",counterSignature:"1.2.840.113549.1.9.6",archiveTimeStampV3:"0.4.0.1733.2.4",pdfRevocationInfoArchival:"1.2.840.113583.1.1.8",adobeTimeStamp:"1.2.840.113583.1.1.9.1",smimeMailboxLegacy:"2.23.140.1.5.1.1",smimeMailboxMulti:"2.23.140.1.5.1.2",smimeMailboxStrict:"2.23.140.1.5.1.3",smimeOrganizationLegacy:"2.23.140.1.5.2.1",smimeOrganizationMulti:"2.23.140.1.5.2.2",smimeOrganizationStrict:"2.23.140.1.5.2.3",smimeSponsorLegacy:"2.23.140.1.5.3.1",smimeSponsorMulti:"2.23.140.1.5.3.2",smimeSponsorStrict:"2.23.140.1.5.3.3",smimeIndividualLegacy:"2.23.140.1.5.4.1",smimeIndividualMulti:"2.23.140.1.5.4.2",smimeIndividualStrict:"2.23.140.1.5.4.3"},this.atype2oidList={CN:"2.5.4.3",L:"2.5.4.7",ST:"2.5.4.8",O:"2.5.4.10",OU:"2.5.4.11",C:"2.5.4.6",STREET:"2.5.4.9",DC:"0.9.2342.19200300.100.1.25",UID:"0.9.2342.19200300.100.1.1",SN:"2.5.4.4",T:"2.5.4.12",GN:"2.5.4.42",DN:"2.5.4.49",E:"1.2.840.113549.1.9.1",description:"2.5.4.13",businessCategory:"2.5.4.15",postalCode:"2.5.4.17",serialNumber:"2.5.4.5",uniqueIdentifier:"2.5.4.45",organizationIdentifier:"2.5.4.97",jurisdictionOfIncorporationL:"1.3.6.1.4.1.311.60.2.1.1",jurisdictionOfIncorporationSP:"1.3.6.1.4.1.311.60.2.1.2",jurisdictionOfIncorporationC:"1.3.6.1.4.1.311.60.2.1.3"},this.objCache={},this.name2obj=function(t){if("undefined"!=typeof this.objCache[t])return this.objCache[t];if("undefined"==typeof this.name2oidList[t])throw"Name of ObjectIdentifier not defined: "+t;var n=this.name2oidList[t],r=new e({oid:n});return this.objCache[t]=r,r},this.atype2obj=function(t){if(void 0!==this.objCache[t])return this.objCache[t];var n;if(t.match(/^\d+\.\d+\.[0-9.]+$/))n=t;else if(void 0!==this.atype2oidList[t])n=this.atype2oidList[t];else{if(void 0===this.name2oidList[t])throw new Error("AttributeType name undefined: "+t);n=this.name2oidList[t]}var r=new e({oid:n});return this.objCache[t]=r,r},this.registerOIDs=function(e){if(this.checkOIDs(e))for(var t in e)this.name2oidList[t]=e[t]},this.checkOIDs=function(e){try{var t=Object.keys(e);return 0!=t.length&&(t.map((function(e,t,n){var r=this[e];if(!r.match(/^[0-2]\.[0-9.]+$/))throw new Error("value is not OID")}),e),!0)}catch(n){return!1}}},_n.asn1.x509.OID.oid2name=function(e){var t=_n.asn1.x509.OID.name2oidList;for(var n in t)if(t[n]==e)return n;return""},_n.asn1.x509.OID.oid2atype=function(e){var t=_n.asn1.x509.OID.atype2oidList;for(var n in t)if(t[n]==e)return n;return e},_n.asn1.x509.OID.name2oid=function(e){if(e.match(/^[0-9.]+$/))return e;var t=_n.asn1.x509.OID.name2oidList;return void 0===t[e]?"":t[e]},_n.asn1.x509.X509Util={},_n.asn1.x509.X509Util.newCertPEM=function(e){var t=_n.asn1.x509,n=(t.TBSCertificate,t.Certificate),r=new n(e);return r.getPEM()},"undefined"!=typeof _n&&_n||(_n={}),"undefined"!=typeof _n.asn1&&_n.asn1||(_n.asn1={}),"undefined"!=typeof _n.asn1.cms&&_n.asn1.cms||(_n.asn1.cms={}),_n.asn1.cms.Attribute=function(e){var t=Error,n=_n,r=n.asn1,i=r.DERSequence,a=r.DERSet,o=r.DERObjectIdentifier;this.params=null,this.typeOid=null,this.setByParam=function(e){this.params=e},this.getValueArray=function(){throw new t("not yet implemented abstract")},this.tohex=function(){var e=new o({oid:this.typeOid}),t=new a({array:this.getValueArray()}),n=new i({array:[e,t]});return n.tohex()},this.getEncodedHex=function(){return this.tohex()}},Pr(_n.asn1.cms.Attribute,_n.asn1.ASN1Object),_n.asn1.cms.ContentType=function(e){var t=_n,n=t.asn1;n.cms.ContentType.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.3",this.getValueArray=function(){var e=new n.DERObjectIdentifier(this.params.type);return[e]},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cms.ContentType,_n.asn1.cms.Attribute),_n.asn1.cms.MessageDigest=function(e){var t=_n,n=t.asn1,r=n.DEROctetString,i=n.cms;i.MessageDigest.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.4",this.getValueArray=function(){var e=new r(this.params);return[e]},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cms.MessageDigest,_n.asn1.cms.Attribute),_n.asn1.cms.SigningTime=function(e){var t=_n,n=t.asn1;n.cms.SigningTime.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.5",this.getValueArray=function(){var e=new n.x509.Time(this.params);return[e]},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cms.SigningTime,_n.asn1.cms.Attribute),_n.asn1.cms.SigningCertificate=function(e){var t=Error,n=_n,r=n.asn1,i=r.DERSequence,a=r.cms,o=a.ESSCertID;n.crypto;a.SigningCertificate.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.12",this.getValueArray=function(){if(null==this.params||void 0==this.params||void 0==this.params.array)throw new t("parameter 'array' not specified");for(var n=this.params.array,r=[],a=0;a<n.length;a++){var s=n[a];0!=e.hasis||"string"!=typeof s||-1==s.indexOf("-----BEGIN")&&!xn.isASN1HEX(s)||(s={cert:s}),0!=s.hasis&&0==e.hasis&&(s.hasis=!1),r.push(new o(s))}var l=new i({array:r}),c=new i({array:[l]});return[c]},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cms.SigningCertificate,_n.asn1.cms.Attribute),_n.asn1.cms.ESSCertID=function(e){_n.asn1.cms.ESSCertID.superclass.constructor.call(this);var t=Error,n=_n,r=n.asn1,i=r.DEROctetString,a=r.DERSequence,o=r.cms.IssuerSerial;this.params=null,this.getCertHash=function(e,r){if(void 0!=e.hash)return e.hash;if("string"==typeof e&&-1==e.indexOf("-----BEGIN")&&!xn.isASN1HEX(e))return e;var i,a,o;if("string"==typeof e)i=e;else{if(void 0==e.cert)throw new t("hash nor cert unspecified");i=e.cert}if(a=-1!=i.indexOf("-----BEGIN")?Qn(i):i,"string"==typeof e&&(-1!=e.indexOf("-----BEGIN")?a=Qn(e):xn.isASN1HEX(e)&&(a=e)),void 0!=e.alg)o=e.alg;else{if(void 0==r)throw new t("hash alg unspecified");o=r}return n.crypto.Util.hashHex(a,o)},this.tohex=function(){var e=this.params,t=this.getCertHash(e,"sha1"),n=[];n.push(new i({hex:t})),("string"==typeof e&&-1!=e.indexOf("-----BEGIN")||void 0!=e.cert&&0!=e.hasis||void 0!=e.issuer&&void 0!=e.serial)&&n.push(new o(e));var r=new a({array:n});return r.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cms.ESSCertID,_n.asn1.ASN1Object),_n.asn1.cms.SigningCertificateV2=function(e){var t=Error,n=_n,r=n.asn1,i=r.DERSequence,a=(r.x509,r.cms),o=a.ESSCertIDv2;n.crypto;a.SigningCertificateV2.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.47",this.getValueArray=function(){if(null==this.params||void 0==this.params||void 0==this.params.array)throw new t("parameter 'array' not specified");for(var n=this.params.array,r=[],a=0;a<n.length;a++){var s=n[a];void 0==e.alg&&0!=e.hasis||"string"!=typeof s||-1==s.indexOf("-----BEGIN")&&!xn.isASN1HEX(s)||(s={cert:s}),void 0==s.alg&&void 0!=e.alg&&(s.alg=e.alg),0!=s.hasis&&0==e.hasis&&(s.hasis=!1),r.push(new o(s))}var l=new i({array:r}),c=new i({array:[l]});return[c]},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cms.SigningCertificateV2,_n.asn1.cms.Attribute),_n.asn1.cms.ESSCertIDv2=function(e){_n.asn1.cms.ESSCertIDv2.superclass.constructor.call(this);Error;var t=_n,n=t.asn1,r=n.DEROctetString,i=n.DERSequence,a=n.cms.IssuerSerial,o=n.x509.AlgorithmIdentifier;this.params=null,this.tohex=function(){var e=this.params,t=this.getCertHash(e,"sha256"),n=[];void 0!=e.alg&&"sha256"!=e.alg&&n.push(new o({name:e.alg})),n.push(new r({hex:t})),("string"==typeof e&&-1!=e.indexOf("-----BEGIN")||void 0!=e.cert&&0!=e.hasis||void 0!=e.issuer&&void 0!=e.serial)&&n.push(new a(e));var s=new i({array:n});return s.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cms.ESSCertIDv2,_n.asn1.cms.ESSCertID),_n.asn1.cms.IssuerSerial=function(e){var t=Error,n=_n,r=n.asn1,i=r.DERInteger,a=r.DERSequence,o=r.cms,s=r.x509,l=s.GeneralNames,c=Ur;o.IssuerSerial.superclass.constructor.call(this),this.setByParam=function(e){this.params=e},this.tohex=function(){var e,n,r=this.params;if("string"==typeof r&&-1!=r.indexOf("-----BEGIN")||void 0!=r.cert){var o;o=void 0!=r.cert?r.cert:r;var s=new c;s.readCertPEM(o),e=s.getIssuer(),n={hex:s.getSerialNumberHex()}}else{if(void 0==r.issuer||!r.serial)throw new t("cert or issuer and serial parameter not specified");e=r.issuer,n=r.serial}var u=new l([{dn:e}]),d=new i(n),h=new a({array:[u,d]});return h.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cms.IssuerSerial,_n.asn1.ASN1Object),_n.asn1.cms.SignerIdentifier=function(e){var t=_n,n=t.asn1,r=(n.DERInteger,n.DERSequence,n.cms),i=r.IssuerAndSerialNumber,a=r.SubjectKeyIdentifier,o=n.x509;o.X500Name,Error;r.SignerIdentifier.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if("isssn"==e.type){var t=new i(e);return t.tohex()}if("skid"==e.type){var n=new a(e);return n.tohex()}throw new Error("wrong property for isssn or skid")},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cms.SignerIdentifier,_n.asn1.ASN1Object),_n.asn1.cms.IssuerAndSerialNumber=function(e){var t=_n,n=t.asn1,r=n.DERInteger,i=n.DERSequence,a=n.cms,o=n.x509,s=o.X500Name,l=Ur,c=Error;a.IssuerAndSerialNumber.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e,t,n=this.params;if("string"==typeof n&&-1!=n.indexOf("-----BEGIN")||void 0!=n.cert){var a;a=void 0!=n.cert?n.cert:n;var o=new l;o.readCertPEM(a),e=o.getIssuer(),t={hex:o.getSerialNumberHex()}}else{if(void 0==n.issuer||!n.serial)throw new c("cert or issuer and serial parameter not specified");e=n.issuer,t=n.serial}var u=new s(e),d=new r(t),h=new i({array:[u,d]});return h.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cms.IssuerAndSerialNumber,_n.asn1.ASN1Object),_n.asn1.cms.SubjectKeyIdentifier=function(e){var t=_n,n=t.asn1,r=(n.DERInteger,n.DERSequence,n.ASN1Util.newObject),i=n.cms,a=(i.IssuerAndSerialName,i.SubjectKeyIdentifier,n.x509),o=(a.X500Name,Ur),s=Error;i.SubjectKeyIdentifier.superclass.constructor.call(this),this.tohex=function(){var e,t=this.params;if(void 0==t.cert&&void 0==t.skid)throw new s("property cert nor skid undefined");if(void 0!=t.cert){var n=new o(t.cert),i=n.getExtSubjectKeyIdentifier();e=i.kid.hex}else void 0!=t.skid&&(e=t.skid);var a=r({tag:{tage:"a0",obj:{octstr:{hex:e}}}});return a.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cms.SubjectKeyIdentifier,_n.asn1.ASN1Object),_n.asn1.cms.AttributeList=function(e){var t=Error,n=_n,r=n.asn1,i=r.DERSet,a=r.cms;a.AttributeList.superclass.constructor.call(this),this.params=null,this.hTLV=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params;if(null!=this.hTLV)return this.hTLV;var n=!0;void 0!=e.sortflag&&(n=e.sortflag);for(var r=e.array,o=[],s=0;s<r.length;s++){var l=r[s],c=l.attr;if("contentType"==c)o.push(new a.ContentType(l));else if("messageDigest"==c)o.push(new a.MessageDigest(l));else if("signingTime"==c)o.push(new a.SigningTime(l));else if("signingCertificate"==c)o.push(new a.SigningCertificate(l));else if("signingCertificateV2"==c)o.push(new a.SigningCertificateV2(l));else if("signaturePolicyIdentifier"==c)o.push(new _n.asn1.cades.SignaturePolicyIdentifier(l));else{if("signatureTimeStamp"!=c&&"timeStampToken"!=c)throw new t("unknown attr: "+c);o.push(new _n.asn1.cades.SignatureTimeStamp(l))}}var u=new i({array:o,sortflag:n});return this.hTLV=u.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cms.AttributeList,_n.asn1.ASN1Object),_n.asn1.cms.SignerInfo=function(e){var t=Error,n=_n,r=n.asn1,i=r.DERInteger,a=r.DEROctetString,o=r.DERSequence,s=r.DERTaggedObject,l=r.cms,c=l.SignerIdentifier,u=l.AttributeList,d=(l.ContentType,l.EncapsulatedContentInfo,l.MessageDigest,l.SignedData,r.x509),h=d.AlgorithmIdentifier,p=n.crypto,f=Mr;l.SignerInfo.superclass.constructor.call(this),this.params=null,this.sign=function(){var e=this.params,t=e.sigalg,n=new u(e.sattrs).tohex(),r=f.getKey(e.signkey),i=new p.Signature({alg:t});i.init(r),i.updateHex(n);var a=i.sign();e.sighex=a},this.tohex=function(){var e=this.params,n=[];if(n.push(new i({int:e.version})),n.push(new c(e.id)),n.push(new h({name:e.hashalg})),void 0!=e.sattrs){var r=new u(e.sattrs);try{n.push(new s({tag:"a0",explicit:!1,obj:r}))}catch(d){throw new t("si sattr error: "+d)}}if(void 0!=e.sigalgfield?n.push(new h({name:e.sigalgfield})):n.push(new h({name:e.sigalg})),void 0==e.sighex&&void 0!=e.signkey&&this.sign(),n.push(new a({hex:e.sighex})),void 0!=e.uattrs){r=new u(e.uattrs);try{n.push(new s({tag:"a1",explicit:!1,obj:r}))}catch(d){throw new t("si uattr error: "+d)}}var l=new o({array:n});return l.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cms.SignerInfo,_n.asn1.ASN1Object),_n.asn1.cms.EncapsulatedContentInfo=function(e){var t=_n,n=t.asn1,r=n.DERTaggedObject,i=n.DERSequence,a=n.DERObjectIdentifier,o=n.DEROctetString,s=n.cms;s.EncapsulatedContentInfo.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];if(t.push(new a(e.type)),void 0!=e.content&&(void 0!=e.content.hex||void 0!=e.content.str)&&1!=e.isDetached){var n=new o(e.content),s=new r({tag:"a0",explicit:!0,obj:n});t.push(s)}var l=new i({array:t});return l.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cms.EncapsulatedContentInfo,_n.asn1.ASN1Object),_n.asn1.cms.ContentInfo=function(e){var t=_n,n=t.asn1,r=n.DERTaggedObject,i=n.DERSequence,a=n.DERObjectIdentifier,o=n.x509;o.OID.name2obj;_n.asn1.cms.ContentInfo.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];t.push(new a(e.type));var n=new r({tag:"a0",explicit:!0,obj:e.obj});t.push(n);var o=new i({array:t});return o.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cms.ContentInfo,_n.asn1.ASN1Object),_n.asn1.cms.SignedData=function(e){Error;var t=_n,n=t.asn1,r=(n.ASN1Object,n.DERInteger),i=n.DERSet,a=n.DERSequence,o=(n.DERTaggedObject,n.cms),s=o.EncapsulatedContentInfo,l=o.SignerInfo,c=o.ContentInfo,u=o.CertificateSet,d=o.RevocationInfoChoices,h=n.x509,p=h.AlgorithmIdentifier;_n.asn1.cms.SignedData.superclass.constructor.call(this),this.params=null,this.checkAndFixParam=function(){var e=this.params;this._setDigestAlgs(e),this._setContentTypeByEContent(e),this._setMessageDigestByEContent(e),this._setSignerInfoVersion(e),this._setSignedDataVersion(e)},this._setDigestAlgs=function(e){for(var t={},n=e.sinfos,r=0;r<n.length;r++){var i=n[r];t[i.hashalg]=1}e.hashalgs=Object.keys(t).sort()},this._setContentTypeByEContent=function(e){for(var t=e.econtent.type,n=e.sinfos,r=0;r<n.length;r++){var i=n[r],a=this._getAttrParamByName(i,"contentType");a.type=t}},this._setMessageDigestByEContent=function(e){var t=e.econtent,n=(e.econtent.type,t.content.hex);void 0==n&&"data"==t.type&&void 0!=t.content.str&&(n=Hn(t.content.str));for(var r=e.sinfos,i=0;i<r.length;i++){var a=r[i],o=a.hashalg,s=this._getAttrParamByName(a,"messageDigest"),l=_n.crypto.Util.hashHex(n,o);s.hex=l}},this._getAttrParamByName=function(e,t){for(var n=e.sattrs.array,r=0;r<n.length;r++)if(n[r].attr==t)return n[r]},this._setSignerInfoVersion=function(e){for(var t=e.sinfos,n=0;n<t.length;n++){var r=t[n],i=1;"skid"==r.id.type&&(i=3),r.version=i}},this._setSignedDataVersion=function(e){var t=this._getSignedDataVersion(e);e.version=t},this._getSignedDataVersion=function(e){if(void 0!=e.revinfos)for(var t=e.revinfos,n=0;n<t.length;n++){var r=t[n];if(void 0!=r.ocsp)return 5}var i=e.sinfos;for(n=0;n<i.length;n++){var a=e.sinfos[n];if(3==a.version)return 3}return"data"!=e.econtent.type?3:1},this.tohex=function(){var e=this.params;void 0!=this.getEncodedHexPrepare&&this.getEncodedHexPrepare(),1!=e.fixed&&this.checkAndFixParam();var t=[];t.push(new r({int:e.version}));for(var n=[],o=0;o<e.hashalgs.length;o++){var c=e.hashalgs[o];n.push(new p({name:c}))}t.push(new i({array:n})),t.push(new s(e.econtent)),void 0!=e.certs&&t.push(new u(e.certs)),void 0!=e.revinfos&&t.push(new d(e.revinfos));var h=[];for(o=0;o<e.sinfos.length;o++){var f=e.sinfos[o];h.push(new l(f))}t.push(new i({array:h}));var m=new a({array:t});return m.tohex()},this.getEncodedHex=function(){return this.tohex()},this.getContentInfo=function(){var e=new c({type:"signed-data",obj:this});return e},this.getContentInfoEncodedHex=function(){return this.getContentInfo().tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cms.SignedData,_n.asn1.ASN1Object),_n.asn1.cms.CertificateSet=function(e){_n.asn1.cms.CertificateSet.superclass.constructor.call(this);var t=Error,n=_n.asn1,r=n.DERTaggedObject,i=n.DERSet,a=n.ASN1Object;this.params=null,this.tohex=function(){var e,n=this.params,o=[];if(n instanceof Array)e=n;else{if(void 0==n.array)throw new t("cert array not specified");e=n.array}for(var s=0;s<e.length;s++){var l=e[s],c=Qn(l),u=new a;u.hTLV=c,o.push(u)}var d={array:o};0==n.sortflag&&(d.sortflag=!1);var h=new i(d),p=new r({tag:"a0",explicit:!1,obj:h});return p.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cms.CertificateSet,_n.asn1.ASN1Object),_n.asn1.cms.RevocationInfoChoices=function(e){_n.asn1.cms.RevocationInfoChoices.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if(!e instanceof Array)throw new Error("params is not array");for(var t=[],n=0;n<e.length;n++)t.push(new _n.asn1.cms.RevocationInfoChoice(e[n]));var r=_n.asn1.ASN1Util.newObject({tag:{tagi:"a1",obj:{set:t}}});return r.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cms.RevocationInfoChoices,_n.asn1.ASN1Object),_n.asn1.cms.RevocationInfoChoice=function(e){_n.asn1.cms.RevocationInfoChoice.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if(void 0!=e.crl&&"string"==typeof e.crl){var t=e.crl;return-1!=e.crl.indexOf("-----BEGIN")&&(t=Qn(e.crl)),t}if(void 0!=e.ocsp){var n=_n.asn1.ASN1Util.newObject({tag:{tagi:"a1",obj:new _n.asn1.cms.OtherRevocationFormat(e)}});return n.tohex()}throw new Error("property crl or ocsp undefined")},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cms.RevocationInfoChoice,_n.asn1.ASN1Object),_n.asn1.cms.OtherRevocationFormat=function(e){_n.asn1.cms.OtherRevocationFormat.superclass.constructor.call(this);var t=Error,n=_n,r=n.asn1,i=r.ASN1Util.newObject,a=n.lang.String.isHex;this.params=null,this.tohex=function(){var e=this.params;if(void 0==e.ocsp)throw new t("property ocsp not specified");if(!a(e.ocsp)||!xn.isASN1HEX(e.ocsp))throw new t("ocsp value not ASN.1 hex string");var n=i({seq:[{oid:"1.3.6.1.5.5.7.16.2"},{asn1:{tlv:e.ocsp}}]});return n.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cms.OtherRevocationFormat,_n.asn1.ASN1Object),_n.asn1.cms.CMSUtil=new function(){},_n.asn1.cms.CMSUtil.newSignedData=function(e){return new _n.asn1.cms.SignedData(e)},_n.asn1.cms.CMSUtil.verifySignedData=function(e){var t=_n,n=t.asn1,r=n.cms,i=(r.SignerInfo,r.SignedData,r.SigningTime,r.SigningCertificate,r.SigningCertificateV2,n.cades),a=(i.SignaturePolicyIdentifier,t.lang.String.isHex),o=xn,s=o.getVbyList,l=o.getTLVbyList,c=o.getIdxbyList,u=o.getChildIdx,d=o.getTLV,h=o.oidname,p=t.crypto.Util.hashHex;void 0===e.cms&&a(e.cms);var f=e.cms,m=function(e,t){for(var n,r=3;r<6;r++)if(n=c(e,0,[1,0,r]),void 0!==n){var i=e.substr(n,2);"a0"===i&&(t.certsIdx=n),"a1"===i&&(t.revinfosIdx=n),"31"===i&&(t.signerinfosIdx=n)}},g=function(e,t){var n=t.signerinfosIdx;if(void 0!==n){var r=u(e,n);t.signerInfoIdxList=r;for(var i=0;i<r.length;i++){var a=r[i],o={idx:a};v(e,o),t.signerInfos.push(o)}}},v=function(e,t){var n=t.idx;t.signerid_issuer1=l(e,n,[1,0],"30"),t.signerid_serial1=s(e,n,[1,1],"02"),t.hashalg=h(s(e,n,[2,0],"06"));var r=c(e,n,[3],"a0");t.idxSignedAttrs=r,b(e,t,r);var i=u(e,n),a=i.length;if(a<6)throw"malformed SignerInfo";t.sigalg=h(s(e,n,[a-2,0],"06")),t.sigval=s(e,n,[a-1],"04")},b=function(e,t,n){var r=u(e,n);t.signedAttrIdxList=r;for(var i=0;i<r.length;i++){var a,o=r[i],l=s(e,o,[0],"06");"2a864886f70d010905"===l?(a=Un(s(e,o,[1,0])),t.saSigningTime=a):"2a864886f70d010904"===l&&(a=s(e,o,[1,0],"04"),t.saMessageDigest=a)}},y=function(e,t){if("2a864886f70d010702"!==s(e,0,[0],"06"))return t;t.cmsType="signedData",t.econtent=s(e,0,[1,0,2,1,0]),m(e,t),t.signerInfos=[],g(e,t)},w=function(e,t){for(var n=t.parse.signerInfos,r=n.length,i=!0,a=0;a<r;a++){var o=n[a];_(e,t,o,a),o.isValid||(i=!1)}t.isValid=i},E=function(e,t,n,r){var i,a=t.parse.certsIdx;if(void 0===t.certs){i=[],t.certkeys=[];for(var o=u(e,a),s=0;s<o.length;s++){var l=d(e,o[s]),c=new Ur;c.readCertHex(l),i[s]=c,t.certkeys[s]=c.getPublicKey()}t.certs=i}else i=t.certs;t.cccc=i.length,t.cccci=o.length;for(s=0;s<i.length;s++){var h=c.getIssuerHex(),p=c.getSerialNumberHex();n.signerid_issuer1===h&&n.signerid_serial1===p&&(n.certkey_idx=s)}},_=function(e,t,n,r){n.verifyDetail={};var i=n.verifyDetail,a=t.parse.econtent,o=n.hashalg,s=n.saMessageDigest;i.validMessageDigest=!1,p(a,o)===s&&(i.validMessageDigest=!0),E(e,t,n,r),i.validSignatureValue=!1;var l=n.sigalg,c="31"+d(e,n.idxSignedAttrs).substr(2);n.signedattrshex=c;var u=t.certs[n.certkey_idx].getPublicKey(),h=new _n.crypto.Signature({alg:l});h.init(u),h.updateHex(c);var f=h.verify(n.sigval);i.validSignatureValue_isValid=f,!0===f&&(i.validSignatureValue=!0),n.isValid=!1,i.validMessageDigest&&i.validSignatureValue&&(n.isValid=!0)},S={isValid:!1,parse:{}};return y(f,S.parse),w(f,S),S},_n.asn1.cms.CMSParser=function(){var e=Error,t=Ur,n=new t,r=xn,i=r.getV,a=r.getTLV,o=(r.getIdxbyList,r.getTLVbyList),s=r.getTLVbyListEx,l=r.getVbyList,c=r.getVbyListEx,u=r.getChildIdx;this.getCMSSignedData=function(e){var t=o(e,0,[1,0]),n=this.getSignedData(t);return n},this.getSignedData=function(e){var t=u(e,0),n={},r=i(e,t[0]),o=parseInt(r,16);n.version=o;var l=a(e,t[1]);n.hashalgs=this.getHashAlgArray(l);var c=a(e,t[2]);n.econtent=this.getEContent(c);var d=s(e,0,["[0]"]);null!=d&&(n.certs=this.getCertificateSet(d));s(e,0,["[1]"]);var h=s(e,0,[3]);return n.sinfos=this.getSignerInfos(h),n},this.getHashAlgArray=function(e){for(var n=u(e,0),r=new t,i=[],o=0;o<n.length;o++){var s=a(e,n[o]),l=r.getAlgorithmIdentifierName(s);i.push(l)}return i},this.getEContent=function(e){var t={},n=l(e,0,[0]),r=l(e,0,[1,0]);return t.type=_n.asn1.x509.OID.oid2name(xn.hextooidstr(n)),t.content={hex:r},t},this.getSignerInfos=function(e){for(var t=[],n=u(e,0),r=0;r<n.length;r++){var i=a(e,n[r]),o=this.getSignerInfo(i);t.push(o)}return t},this.getSignerInfo=function(e){var t={},i=u(e,0),o=r.getInt(e,i[0],-1);-1!=o&&(t.version=o);var l=a(e,i[1]),d=this.getIssuerAndSerialNumber(l);t.id=d;var h=a(e,i[2]),p=n.getAlgorithmIdentifierName(h);t.hashalg=p;var f=s(e,0,["[0]"]);if(null!=f){var m=this.getAttributeList(f);t.sattrs=m}var g=s(e,0,[3]),v=n.getAlgorithmIdentifierName(g);t.sigalg=v;var b=c(e,0,[4]);t.sighex=b;var y=s(e,0,["[1]"]);if(null!=y){var w=this.getAttributeList(y);t.uattrs=w}return t},this.getSignerIdentifier=function(e){if("30"==e.substr(0,2))return this.getIssuerAndSerialNumber(e);throw new Error("SKID of signerIdentifier not supported")},this.getIssuerAndSerialNumber=function(e){var t={type:"isssn"},r=u(e,0),o=a(e,r[0]);t.issuer=n.getX500Name(o);var s=i(e,r[1]);return t.serial={hex:s},t},this.getAttributeList=function(e){for(var t=[],n=u(e,0),r=0;r<n.length;r++){var i=a(e,n[r]),o=this.getAttribute(i);t.push(o)}return{array:t}},this.getAttribute=function(e){var t={},n=u(e,0),i=r.getOID(e,n[0]),o=_n.asn1.x509.OID.oid2name(i);t.attr=o;var s=a(e,n[1]),l=u(s,0);if(1==l.length)t.valhex=a(s,l[0]);else{for(var c=[],d=0;d<l.length;d++)c.push(a(s,l[d]));t.valhex=c}return"contentType"==o?this.setContentType(t):"messageDigest"==o?this.setMessageDigest(t):"signingTime"==o?this.setSigningTime(t):"signingCertificate"==o?this.setSigningCertificate(t):"signingCertificateV2"==o?this.setSigningCertificateV2(t):"signaturePolicyIdentifier"==o&&this.setSignaturePolicyIdentifier(t),t},this.setContentType=function(e){var t=r.getOIDName(e.valhex,0,null);null!=t&&(e.type=t,delete e.valhex)},this.setSigningTime=function(e){var t=i(e.valhex,0),n=Un(t);e.str=n,delete e.valhex},this.setMessageDigest=function(e){var t=i(e.valhex,0);e.hex=t,delete e.valhex},this.setSigningCertificate=function(e){var t=u(e.valhex,0);if(t.length>0){for(var n=a(e.valhex,t[0]),r=u(n,0),i=[],o=0;o<r.length;o++){var s=a(n,r[o]),l=this.getESSCertID(s);i.push(l)}e.array=i}if(t.length>1){var c=a(e.valhex,t[1]);e.polhex=c}delete e.valhex},this.setSignaturePolicyIdentifier=function(e){var n=u(e.valhex,0);if(n.length>0){var o=r.getOID(e.valhex,n[0]);e.oid=o}if(n.length>1){var s=new t,l=u(e.valhex,n[1]),c=a(e.valhex,l[0]),d=s.getAlgorithmIdentifierName(c);e.alg=d;var h=i(e.valhex,l[1]);e.hash=h}delete e.valhex},this.setSigningCertificateV2=function(e){var t=u(e.valhex,0);if(t.length>0){for(var n=a(e.valhex,t[0]),r=u(n,0),i=[],o=0;o<r.length;o++){var s=a(n,r[o]),l=this.getESSCertIDv2(s);i.push(l)}e.array=i}if(t.length>1){var c=a(e.valhex,t[1]);e.polhex=c}delete e.valhex},this.getESSCertID=function(e){var t={},n=u(e,0);if(n.length>0){var r=i(e,n[0]);t.hash=r}if(n.length>1){var o=a(e,n[1]),s=this.getIssuerSerial(o);void 0!=s.serial&&(t.serial=s.serial),void 0!=s.issuer&&(t.issuer=s.issuer)}return t},this.getESSCertIDv2=function(t){var r={},o=u(t,0);if(o.length<1||3<o.length)throw new e("wrong number of elements");var s=0;if("30"==t.substr(o[0],2)){var l=a(t,o[0]);r.alg=n.getAlgorithmIdentifierName(l),s++}else r.alg="sha256";var c=i(t,o[s]);if(r.hash=c,o.length>s+1){var d=a(t,o[s+1]),h=this.getIssuerSerial(d);r.issuer=h.issuer,r.serial=h.serial}return r},this.getIssuerSerial=function(e){var t={},r=u(e,0),o=a(e,r[0]),s=n.getGeneralNames(o),l=s[0].dn;t.issuer=l;var c=i(e,r[1]);return t.serial={hex:c},t},this.getCertificateSet=function(e){for(var t=u(e,0),n=[],r=0;r<t.length;r++){var i=a(e,t[r]);if("30"==i.substr(0,2)){var o=Yn(i,"CERTIFICATE");n.push(o)}}return{array:n,sortflag:!1}}},"undefined"!=typeof _n&&_n||(_n={}),"undefined"!=typeof _n.asn1&&_n.asn1||(_n.asn1={}),"undefined"!=typeof _n.asn1.tsp&&_n.asn1.tsp||(_n.asn1.tsp={}),_n.asn1.tsp.TimeStampToken=function(e){var t=_n,n=t.asn1,r=n.tsp;r.TimeStampToken.superclass.constructor.call(this),this.params=null,this.getEncodedHexPrepare=function(){var e=new r.TSTInfo(this.params.econtent.content);this.params.econtent.content.hex=e.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.tsp.TimeStampToken,_n.asn1.cms.SignedData),_n.asn1.tsp.TSTInfo=function(e){Error;var t=_n,n=t.asn1,r=n.DERSequence,i=n.DERInteger,a=n.DERBoolean,o=n.DERGeneralizedTime,s=n.DERObjectIdentifier,l=n.DERTaggedObject,c=n.tsp,u=c.MessageImprint,d=c.Accuracy,h=(n.x509.X500Name,n.x509.GeneralName);if(c.TSTInfo.superclass.constructor.call(this),this.dVersion=new i({int:1}),this.dPolicy=null,this.dMessageImprint=null,this.dSerial=null,this.dGenTime=null,this.dAccuracy=null,this.dOrdering=null,this.dNonce=null,this.dTsa=null,this.tohex=function(){var e=[this.dVersion];if(null==this.dPolicy)throw new Error("policy shall be specified.");if(e.push(this.dPolicy),null==this.dMessageImprint)throw new Error("messageImprint shall be specified.");if(e.push(this.dMessageImprint),null==this.dSerial)throw new Error("serialNumber shall be specified.");if(e.push(this.dSerial),null==this.dGenTime)throw new Error("genTime shall be specified.");e.push(this.dGenTime),null!=this.dAccuracy&&e.push(this.dAccuracy),null!=this.dOrdering&&e.push(this.dOrdering),null!=this.dNonce&&e.push(this.dNonce),null!=this.dTsa&&e.push(this.dTsa);var t=new r({array:e});return this.hTLV=t.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e){if("string"==typeof e.policy){if(!e.policy.match(/^[0-9.]+$/))throw"policy shall be oid like 0.1.4.134";this.dPolicy=new s({oid:e.policy})}void 0!==e.messageImprint&&(this.dMessageImprint=new u(e.messageImprint)),void 0!==e.serial&&(this.dSerial=new i(e.serial)),void 0!==e.genTime&&(this.dGenTime=new o(e.genTime)),void 0!==e.accuracy&&(this.dAccuracy=new d(e.accuracy)),void 0!==e.ordering&&1==e.ordering&&(this.dOrdering=new a),void 0!==e.nonce&&(this.dNonce=new i(e.nonce)),void 0!==e.tsa&&(this.dTsa=new l({tag:"a0",explicit:!0,obj:new h({dn:e.tsa})}))}},Pr(_n.asn1.tsp.TSTInfo,_n.asn1.ASN1Object),_n.asn1.tsp.Accuracy=function(e){var t=_n,n=t.asn1,r=n.ASN1Util.newObject;n.tsp.Accuracy.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];return void 0!=e.seconds&&"number"==typeof e.seconds&&t.push({int:e.seconds}),void 0!=e.millis&&"number"==typeof e.millis&&t.push({tag:{tagi:"80",obj:{int:e.millis}}}),void 0!=e.micros&&"number"==typeof e.micros&&t.push({tag:{tagi:"81",obj:{int:e.micros}}}),r({seq:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.tsp.Accuracy,_n.asn1.ASN1Object),_n.asn1.tsp.MessageImprint=function(e){var t=_n,n=t.asn1,r=n.DERSequence,i=n.DEROctetString,a=n.x509,o=a.AlgorithmIdentifier;n.tsp.MessageImprint.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=new o({name:e.alg}),n=new i({hex:e.hash}),a=new r({array:[t,n]});return a.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(_n.asn1.tsp.MessageImprint,_n.asn1.ASN1Object),_n.asn1.tsp.TimeStampReq=function(e){var t=_n,n=t.asn1,r=n.DERSequence,i=n.DERInteger,a=n.DERBoolean,o=(n.ASN1Object,n.DERObjectIdentifier),s=n.tsp,l=s.MessageImprint;s.TimeStampReq.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];t.push(new i({int:1})),e.messageImprint instanceof _n.asn1.ASN1Object?t.push(e.messageImprint):t.push(new l(e.messageImprint)),void 0!=e.policy&&t.push(new o(e.policy)),void 0!=e.nonce&&t.push(new i(e.nonce)),1==e.certreq&&t.push(new a);var n=new r({array:t});return n.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.tsp.TimeStampReq,_n.asn1.ASN1Object),_n.asn1.tsp.TimeStampResp=function(e){var t=_n,n=t.asn1,r=n.DERSequence,i=(n.ASN1Object,n.tsp),a=i.PKIStatusInfo;i.TimeStampResp.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];if(void 0!=e.econtent||void 0!=e.tst)if(void 0!=e.statusinfo?t.push(new a(e.statusinfo)):t.push(new a("granted")),void 0!=e.econtent)t.push(new i.TimeStampToken(e).getContentInfo());else{if(!(e.tst instanceof n.ASN1Object))throw new Error("improper member tst value");t.push(e.tst)}else{if(void 0==e.statusinfo)throw new Error("parameter for token nor statusinfo not specified");t.push(new a(e.statusinfo))}var o=new r({array:t});return o.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.tsp.TimeStampResp,_n.asn1.ASN1Object),_n.asn1.tsp.PKIStatusInfo=function(e){var t=Error,n=_n,r=n.asn1,i=r.DERSequence,a=r.tsp,o=a.PKIStatus,s=a.PKIFreeText,l=a.PKIFailureInfo;a.PKIStatusInfo.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,n=[];if("string"==typeof e)n.push(new o(e));else{if(void 0==e.status)throw new t("property 'status' unspecified");n.push(new o(e.status)),void 0!=e.statusstr&&n.push(new s(e.statusstr)),void 0!=e.failinfo&&n.push(new l(e.failinfo))}var r=new i({array:n});return r.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.tsp.PKIStatusInfo,_n.asn1.ASN1Object),_n.asn1.tsp.PKIStatus=function(e){var t=Error,n=_n,r=n.asn1,i=r.DERInteger,a=r.tsp;a.PKIStatus.superclass.constructor.call(this);var o={granted:0,grantedWithMods:1,rejection:2,waiting:3,revocationWarning:4,revocationNotification:5};this.params=null,this.tohex=function(){var e,n=this.params;if("string"==typeof n)try{e=o[n]}catch(r){throw new t("undefined name: "+n)}else{if("number"!=typeof n)throw new t("unsupported params");e=n}return new i({int:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.tsp.PKIStatus,_n.asn1.ASN1Object),_n.asn1.tsp.PKIFreeText=function(e){var t=Error,n=_n,r=n.asn1,i=r.DERSequence,a=r.DERUTF8String,o=r.tsp;o.PKIFreeText.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if(!e instanceof Array)throw new t("wrong params: not array");for(var n=[],r=0;r<e.length;r++)n.push(new a({str:e[r]}));var o=new i({array:n});return o.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.tsp.PKIFreeText,_n.asn1.ASN1Object),_n.asn1.tsp.PKIFailureInfo=function(e){var t=Error,n=_n,r=n.asn1,i=r.DERBitString,a=r.tsp,o=a.PKIFailureInfo,s={badAlg:0,badRequest:2,badDataFormat:5,timeNotAvailable:14,unacceptedPolicy:15,unacceptedExtension:16,addInfoNotAvailable:17,systemFailure:25};o.superclass.constructor.call(this),this.params=null,this.getBinValue=function(){var e=this.params,n=0;if("number"==typeof e&&0<=e&&e<=25){n|=1<<e;for(var r=n.toString(2),i="",a=r.length-1;a>=0;a--)i+=r[a];return i}if("string"==typeof e&&void 0!=s[e])return Lr([e],s);if("object"==typeof e&&void 0!=e.length)return Lr(e,s);throw new t("wrong params")},this.tohex=function(){this.params;var e=this.getBinValue();return new i({bin:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.tsp.PKIFailureInfo,_n.asn1.ASN1Object),_n.asn1.tsp.AbstractTSAAdapter=function(e){this.getTSTHex=function(e,t){throw"not implemented yet"}},_n.asn1.tsp.SimpleTSAAdapter=function(e){var t=_n,n=t.asn1,r=n.tsp,i=t.crypto.Util.hashHex;r.SimpleTSAAdapter.superclass.constructor.call(this),this.params=null,this.serial=0,this.getTSTHex=function(e,t){var n=i(e,t);this.params.econtent.content.messageImprint={alg:t,hash:n},this.params.econtent.content.serial={int:this.serial++};var a=Math.floor(1e9*Math.random());this.params.econtent.content.nonce={int:a};var o=new r.TimeStampToken(this.params);return o.getContentInfoEncodedHex()},void 0!==e&&(this.params=e)},Pr(_n.asn1.tsp.SimpleTSAAdapter,_n.asn1.tsp.AbstractTSAAdapter),_n.asn1.tsp.FixedTSAAdapter=function(e){var t=_n,n=t.asn1,r=n.tsp,i=t.crypto.Util.hashHex;r.FixedTSAAdapter.superclass.constructor.call(this),this.params=null,this.getTSTHex=function(e,t){var n=i(e,t);this.params.econtent.content.messageImprint={alg:t,hash:n};var a=new r.TimeStampToken(this.params);return a.getContentInfoEncodedHex()},void 0!==e&&(this.params=e)},Pr(_n.asn1.tsp.FixedTSAAdapter,_n.asn1.tsp.AbstractTSAAdapter),_n.asn1.tsp.TSPUtil=new function(){},_n.asn1.tsp.TSPUtil.newTimeStampToken=function(e){return new _n.asn1.tsp.TimeStampToken(e)},_n.asn1.tsp.TSPUtil.parseTimeStampReq=function(e){var t=new _n.asn1.tsp.TSPParser;return t.getTimeStampReq(e)},_n.asn1.tsp.TSPUtil.parseMessageImprint=function(e){var t=new _n.asn1.tsp.TSPParser;return t.getMessageImprint(e)},_n.asn1.tsp.TSPParser=function(){Error;var e=Ur,t=new e,n=xn,r=n.getV,i=n.getTLV,a=n.getIdxbyList,o=(n.getTLVbyListEx,n.getChildIdx),s=["granted","grantedWithMods","rejection","waiting","revocationWarning","revocationNotification"],l={0:"badAlg",2:"badRequest",5:"badDataFormat",14:"timeNotAvailable",15:"unacceptedPolicy",16:"unacceptedExtension",17:"addInfoNotAvailable",25:"systemFailure"};this.getResponse=function(e){var t=o(e,0);if(1==t.length)return this.getPKIStatusInfo(i(e,t[0]));if(t.length>1){var n=this.getPKIStatusInfo(i(e,t[0])),r=i(e,t[1]),a=this.getToken(r);return a.statusinfo=n,a}},this.getToken=function(e){var t=new _n.asn1.cms.CMSParser,n=t.getCMSSignedData(e);return this.setTSTInfo(n),n},this.setTSTInfo=function(e){var t=e.econtent;if("tstinfo"==t.type){var n=t.content.hex,r=this.getTSTInfo(n);t.content=r}},this.getTSTInfo=function(e){var n={},a=o(e,0),s=r(e,a[1]);n.policy=xr(s);var l=i(e,a[2]);n.messageImprint=this.getMessageImprint(l);var c=r(e,a[3]);n.serial={hex:c};var u=r(e,a[4]);n.genTime={str:Un(u)};var d=0;if(a.length>5&&"30"==e.substr(a[5],2)){var h=i(e,a[5]);n.accuracy=this.getAccuracy(h),d++}if(a.length>5+d&&"01"==e.substr(a[5+d],2)){var p=r(e,a[5+d]);"ff"==p&&(n.ordering=!0),d++}if(a.length>5+d&&"02"==e.substr(a[5+d],2)){var f=r(e,a[5+d]);n.nonce={hex:f},d++}if(a.length>5+d&&"a0"==e.substr(a[5+d],2)){var m=i(e,a[5+d]);m="30"+m.substr(2),pGeneralNames=t.getGeneralNames(m);var g=pGeneralNames[0].dn;n.tsa=g,d++}if(a.length>5+d&&"a1"==e.substr(a[5+d],2)){var v=i(e,a[5+d]);v="30"+v.substr(2);var b=t.getExtParamArray(v);n.ext=b,d++}return n},this.getAccuracy=function(e){for(var t={},n=o(e,0),i=0;i<n.length;i++){var a=e.substr(n[i],2),s=r(e,n[i]),l=parseInt(s,16);"02"==a?t.seconds=l:"80"==a?t.millis=l:"81"==a&&(t.micros=l)}return t},this.getMessageImprint=function(e){if("30"!=e.substr(0,2))throw new Error("head of messageImprint hex shall be x30");var t={},i=(o(e,0),a(e,0,[0,0])),s=r(e,i),l=n.hextooidstr(s),c=_n.asn1.x509.OID.oid2name(l);if(""==c)throw new Error("hashAlg name undefined: "+l);var u=c,d=a(e,0,[1]);return t.alg=u,t.hash=r(e,d),t},this.getPKIStatusInfo=function(e){var t={},n=o(e,0),a=0;try{var l=r(e,n[0]),c=parseInt(l,16);t.status=s[c]}catch(h){}if(n.length>1&&"30"==e.substr(n[1],2)){var u=i(e,n[1]);t.statusstr=this.getPKIFreeText(u),a++}if(n.length>a&&"03"==e.substr(n[1+a],2)){var d=i(e,n[1+a]);t.failinfo=this.getPKIFailureInfo(d)}return t},this.getPKIFreeText=function(e){for(var t=[],r=o(e,0),i=0;i<r.length;i++)t.push(n.getString(e,r[i]));return t},this.getPKIFailureInfo=function(e){var t=n.getInt(e,0);return void 0!=l[t]?l[t]:t},this.getTimeStampReq=function(e){var t={certreq:!1},a=o(e,0);if(a.length<2)throw new Error("TimeStampReq must have at least 2 items");var s=i(e,a[1]);t.messageImprint=_n.asn1.tsp.TSPUtil.parseMessageImprint(s);for(var l=2;l<a.length;l++){var c=a[l],u=e.substr(c,2);if("06"==u){var d=r(e,c);t.policy=n.hextooidstr(d)}"02"==u&&(t.nonce=r(e,c)),"01"==u&&(t.certreq=!0)}return t}},"undefined"!=typeof _n&&_n||(_n={}),"undefined"!=typeof _n.asn1&&_n.asn1||(_n.asn1={}),"undefined"!=typeof _n.asn1.cades&&_n.asn1.cades||(_n.asn1.cades={}),_n.asn1.cades.SignaturePolicyIdentifier=function(e){var t=_n,n=t.asn1,r=n.cades,i=r.SignaturePolicyId;r.SignaturePolicyIdentifier.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.15",this.params=null,this.getValueArray=function(){return[new i(this.params)]},this.setByParam=function(e){this.params=e},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cades.SignaturePolicyIdentifier,_n.asn1.cms.Attribute),_n.asn1.cades.SignaturePolicyId=function(e){var t=_n,n=t.asn1,r=n.DERSequence,i=n.DERObjectIdentifier,a=n.x509,o=(a.AlgorithmIdentifier,n.cades),s=o.SignaturePolicyId,l=o.OtherHashAlgAndValue;s.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];t.push(new i(e.oid)),t.push(new l(e));var n=new r({array:t});return n.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cades.SignaturePolicyId,_n.asn1.ASN1Object),_n.asn1.cades.OtherHashAlgAndValue=function(e){var t=Error,n=_n,r=n.asn1,i=r.DERSequence,a=r.DEROctetString,o=r.x509,s=o.AlgorithmIdentifier,l=r.cades,c=l.OtherHashAlgAndValue;c.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if(void 0==e.alg)throw new t("property 'alg' not specified");if(void 0==e.hash&&void 0==e.cert)throw new t("property 'hash' nor 'cert' not specified");var n=null;if(void 0!=e.hash)n=e.hash;else if(void 0!=e.cert){if("string"!=typeof e.cert)throw new t("cert not string");var r=e.cert;-1!=e.cert.indexOf("-----BEGIN")&&(r=Qn(e.cert)),n=_n.crypto.Util.hashHex(r,e.alg)}var o=[];o.push(new s({name:e.alg})),o.push(new a({hex:n}));var l=new i({array:o});return l.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cades.OtherHashAlgAndValue,_n.asn1.ASN1Object),_n.asn1.cades.OtherHashValue=function(e){_n.asn1.cades.OtherHashValue.superclass.constructor.call(this);var t=Error,n=_n,r=(n.lang.String.isHex,n.asn1),i=r.DEROctetString;n.crypto.Util.hashHex;this.params=null,this.tohex=function(){var e=this.params;if(void 0==e.hash&&void 0==e.cert)throw new t("hash or cert not specified");var n=null;if(void 0!=e.hash)n=e.hash;else if(void 0!=e.cert){if("string"!=typeof e.cert)throw new t("cert not string");var r=e.cert;-1!=e.cert.indexOf("-----BEGIN")&&(r=Qn(e.cert)),n=_n.crypto.Util.hashHex(r,"sha1")}return new i({hex:n}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cades.OtherHashValue,_n.asn1.ASN1Object),_n.asn1.cades.SignatureTimeStamp=function(e){var t=Error,n=_n,r=n.lang.String.isHex,i=n.asn1,a=i.ASN1Object,o=(i.x509,i.cades);o.SignatureTimeStamp.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.14",this.params=null,this.getValueArray=function(){var e=this.params;if(void 0!=e.tst){if(r(e.tst)){var n=new a;return n.hTLV=e.tst,[n]}if(e.tst instanceof a)return[e.tst];throw new t("params.tst has wrong value")}if(void 0!=e.res){var i=e.res;if(i instanceof a&&(i=i.tohex()),"string"!=typeof i||!r(i))throw new t("params.res has wrong value");xn.getTLVbyList(i,0,[1]),n=new a;return n.hTLV=e.tst,[n]}},null!=e&&this.setByParam(e)},Pr(_n.asn1.cades.SignatureTimeStamp,_n.asn1.cms.Attribute),_n.asn1.cades.CompleteCertificateRefs=function(e){var t=Error,n=_n,r=n.asn1,i=r.DERSequence,a=r.cades,o=a.OtherCertID,s=n.lang.String.isHex;a.CompleteCertificateRefs.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.21",this.params=null,this.getValueArray=function(){for(var e=this.params,n=[],r=0;r<e.array.length;r++){var a=e.array[r];if("string"==typeof a)if(-1!=a.indexOf("-----BEGIN"))a={cert:a};else{if(!s(a))throw new t("unsupported value: "+a);a={hash:a}}void 0!=e.alg&&void 0==a.alg&&(a.alg=e.alg),void 0!=e.hasis&&void 0==a.hasis&&(a.hasis=e.hasis);var l=new o(a);n.push(l)}var c=new i({array:n});return[c]},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cades.CompleteCertificateRefs,_n.asn1.cms.Attribute),_n.asn1.cades.OtherCertID=function(e){var t=_n,n=t.asn1,r=n.DERSequence,i=n.cms,a=i.IssuerSerial,o=n.cades,s=o.OtherHashValue,l=o.OtherHashAlgAndValue;o.OtherCertID.superclass.constructor.call(this),this.params=e,this.tohex=function(){var e=this.params;"string"==typeof e&&(-1!=e.indexOf("-----BEGIN")?e={cert:e}:_isHex(e)&&(e={hash:e}));var t=[],n=null;if(n=void 0!=e.alg?new l(e):new s(e),t.push(n),void 0!=e.cert&&1==e.hasis||void 0!=e.issuer&&void 0!=e.serial){var i=new a(e);t.push(i)}var o=new r({array:t});return o.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cades.OtherCertID,_n.asn1.ASN1Object),_n.asn1.cades.OtherHash=function(e){Error;var t=_n,n=t.asn1,r=(n.cms,n.cades),i=r.OtherHashAlgAndValue,a=r.OtherHashValue,o=(t.crypto.Util.hashHex,t.lang.String.isHex);r.OtherHash.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;"string"==typeof e&&(-1!=e.indexOf("-----BEGIN")?e={cert:e}:o(e)&&(e={hash:e}));var t=null;return t=void 0!=e.alg?new i(e):new a(e),t.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.cades.OtherHash,_n.asn1.ASN1Object),_n.asn1.cades.CAdESUtil=new function(){},_n.asn1.cades.CAdESUtil.parseSignedDataForAddingUnsigned=function(e){var t=new _n.asn1.cms.CMSParser,n=t.getCMSSignedData(e);return n},_n.asn1.cades.CAdESUtil.parseSignerInfoForAddingUnsigned=function(e,t,n){var r=xn,i=r.getChildIdx,a=r.getTLV,o=r.getV,s=_n,l=s.asn1,c=l.ASN1Object,u=l.cms,d=u.AttributeList,h=u.SignerInfo,p={},f=i(e,t);if(6!=f.length)throw"not supported items for SignerInfo (!=6)";var m=f.shift();p.version=a(e,m);var g=f.shift();p.si=a(e,g);var v=f.shift();p.digalg=a(e,v);var b=f.shift();p.sattrs=a(e,b);var y=f.shift();p.sigalg=a(e,y);var w=f.shift();p.sig=a(e,w),p.sigval=o(e,w);var E=null;return p.obj=new h,E=new c,E.hTLV=p.version,p.obj.dCMSVersion=E,E=new c,E.hTLV=p.si,p.obj.dSignerIdentifier=E,E=new c,E.hTLV=p.digalg,p.obj.dDigestAlgorithm=E,E=new c,E.hTLV=p.sattrs,p.obj.dSignedAttrs=E,E=new c,E.hTLV=p.sigalg,p.obj.dSigAlg=E,E=new c,E.hTLV=p.sig,p.obj.dSig=E,p.obj.dUnsignedAttrs=new d,p},"undefined"!=typeof _n.asn1.csr&&_n.asn1.csr||(_n.asn1.csr={}),_n.asn1.csr.CertificationRequest=function(e){var t=_n,n=t.asn1,r=n.DERBitString,i=n.DERSequence,a=n.csr,o=(n.x509,a.CertificationRequestInfo);a.CertificationRequest.superclass.constructor.call(this),this.setByParam=function(e){this.params=e},this.sign=function(){var e=new o(this.params).tohex(),t=new _n.crypto.Signature({alg:this.params.sigalg});t.init(this.params.sbjprvkey),t.updateHex(e);var n=t.sign();this.params.sighex=n},this.getPEM=function(){return Yn(this.tohex(),"CERTIFICATE REQUEST")},this.tohex=function(){var e=this.params,t=new _n.asn1.csr.CertificationRequestInfo(this.params),n=new _n.asn1.x509.AlgorithmIdentifier({name:e.sigalg});if(void 0==e.sighex&&void 0!=e.sbjprvkey&&this.sign(),void 0==e.sighex)throw new Error("sighex or sbjprvkey parameter not defined");var a=new r({hex:"00"+e.sighex}),o=new i({array:[t,n,a]});return o.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(_n.asn1.csr.CertificationRequest,_n.asn1.ASN1Object),_n.asn1.csr.CertificationRequestInfo=function(e){var t=_n,n=t.asn1,r=(n.DERBitString,n.DERSequence),i=n.DERInteger,a=n.DERUTF8String,o=n.DERTaggedObject,s=n.ASN1Util.newObject,l=n.csr,c=n.x509,u=c.X500Name,d=c.Extensions,h=c.SubjectPublicKeyInfo;l.AttributeList;function p(e){for(var t=Error,n=_n.asn1.x509.Extensions,r=[],i=0;i<e.length;i++){var a=e[i],o=a.attr;if("extensionRequest"==o){var s=new n(a.ext),l={seq:[{oid:"1.2.840.113549.1.9.14"},{set:[s]}]};r.push(l)}else if("unstructuredName"==o){l={seq:[{oid:"1.2.840.113549.1.9.2"},{set:a.names}]};r.push(l)}else{if("challengePassword"!=o)throw new t("unknown CSR attribute");l={seq:[{oid:"1.2.840.113549.1.9.7"},{set:[{utf8str:a.password}]}]};r.push(l)}}return{set:r}}l.CertificationRequestInfo.superclass.constructor.call(this),this.params=null,this.setByParam=function(e){void 0!=e&&(this.params=e)},this.tohex=function(){var e=this.params,t=[];if(t.push(new i({int:0})),t.push(new u(e.subject)),t.push(new h(Mr.getKey(e.sbjpubkey))),void 0!=e.attrs){var n=p(e.attrs),l=s({tag:{tage:"a0",obj:n}});t.push(l)}else if(void 0!=e.extreq){var c=new d(e.extreq);l=s({tag:{tage:"a0",obj:{seq:[{oid:"1.2.840.113549.1.9.14"},{set:[c]}]}}});t.push(l)}else t.push(new o({tag:"a0",explicit:!1,obj:new a({str:""})}));var f=new r({array:t});return f.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(_n.asn1.csr.CertificationRequestInfo,_n.asn1.ASN1Object),_n.asn1.csr.AttributeList=function(e){},Pr(_n.asn1.csr.AttributeList,_n.asn1.ASN1Object),_n.asn1.csr.CSRUtil=new function(){},_n.asn1.csr.CSRUtil.newCSRPEM=function(e){var t=_n.asn1.csr,n=new t.CertificationRequest(e),r=n.getPEM();return r},_n.asn1.csr.CSRUtil.getParam=function(e,t){var n=xn,r=n.getV,i=n.getIdxbyList,a=n.getTLVbyList,o=n.getTLVbyListEx,s=n.getVbyListEx,l=function(e){var t=i(e,0,[0,3,0,0],"06");return"2a864886f70d01090e"!=r(e,t)?null:a(e,0,[0,3,0,1,0],"30")},c={};if(-1==e.indexOf("-----BEGIN CERTIFICATE REQUEST"))throw new Error("argument is not PEM file");var u=Qn(e,"CERTIFICATE REQUEST");t&&(c.tbs=a(u,0,[0]));try{var d=o(u,0,[0,1]);if("3000"==d)c.subject={};else{var h=new Ur;c.subject=h.getX500Name(d)}}catch(b){}var p=o(u,0,[0,2]),f=Mr.getKey(p,null,"pkcs8pub");c.sbjpubkey=Mr.getPEM(f,"PKCS8PUB");var m=l(u);h=new Ur;null!=m&&(c.extreq=h.getExtParamArray(m));try{var g=o(u,0,[1],"30");h=new Ur;c.sigalg=h.getAlgorithmIdentifierName(g)}catch(b){}try{var v=s(u,0,[2]);c.sighex=v}catch(b){}return c},_n.asn1.csr.CSRUtil.verifySignature=function(e){try{var t=null;if("string"==typeof e&&-1!=e.indexOf("-----BEGIN CERTIFICATE REQUEST")?t=_n.asn1.csr.CSRUtil.getParam(e,!0):"object"==typeof e&&void 0!=e.sbjpubkey&&void 0!=e.sigalg&&void 0!=e.sighex&&void 0!=e.tbs&&(t=e),null==t)return!1;var n=new _n.crypto.Signature({alg:t.sigalg});return n.init(t.sbjpubkey),n.updateHex(t.tbs),n.verify(t.sighex)}catch(r){return alert(r),!1}},"undefined"!=typeof _n&&_n||(_n={}),"undefined"!=typeof _n.asn1&&_n.asn1||(_n.asn1={}),"undefined"!=typeof _n.asn1.ocsp&&_n.asn1.ocsp||(_n.asn1.ocsp={}),_n.asn1.ocsp.DEFAULT_HASH="sha1",_n.asn1.ocsp.OCSPResponse=function(e){_n.asn1.ocsp.OCSPResponse.superclass.constructor.call(this);_n.asn1.DEREnumerated;var t=_n.asn1.ASN1Util.newObject,n=_n.asn1.ocsp.ResponseBytes,r=["successful","malformedRequest","internalError","tryLater","_not_used_","sigRequired","unauthorized"];this.params=null,this._getStatusCode=function(){var e=this.params.resstatus;return"number"==typeof e?e:"string"!=typeof e?-1:r.indexOf(e)},this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params,r=this._getStatusCode();if(-1==r)throw new Error("responseStatus not supported: "+e.resstatus);if(0!=r)return t({seq:[{enum:{int:r}}]}).tohex();var i=new n(e);return t({seq:[{enum:{int:0}},{tag:{tag:"a0",explicit:!0,obj:i}}]}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(_n.asn1.ocsp.OCSPResponse,_n.asn1.ASN1Object),_n.asn1.ocsp.ResponseBytes=function(e){_n.asn1.ocsp.ResponseBytes.superclass.constructor.call(this);var t=_n.asn1,n=t.DERSequence,r=t.DERObjectIdentifier,i=t.DEROctetString,a=t.ocsp.BasicOCSPResponse;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params;if("ocspBasic"!=e.restype)throw new Error("not supported responseType: "+e.restype);var t=new a(e),o=[];o.push(new r({name:"ocspBasic"})),o.push(new i({hex:t.tohex()}));var s=new n({array:o});return s.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(_n.asn1.ocsp.ResponseBytes,_n.asn1.ASN1Object),_n.asn1.ocsp.BasicOCSPResponse=function(e){_n.asn1.ocsp.BasicOCSPResponse.superclass.constructor.call(this);var t=Error,n=_n.asn1,r=n.ASN1Object,i=n.DERSequence,a=(n.DERGeneralizedTime,n.DERTaggedObject),o=n.DERBitString,s=(n.x509.Extensions,n.x509.AlgorithmIdentifier),l=n.ocsp;l.ResponderID;_SingleResponseList=l.SingleResponseList,_ResponseData=l.ResponseData,this.params=null,this.setByParam=function(e){this.params=e},this.sign=function(){var e=this.params,t=e.tbsresp.tohex(),n=new _n.crypto.Signature({alg:e.sigalg});n.init(e.reskey),n.updateHex(t),e.sighex=n.sign()},this.tohex=function(){var e=this.params;void 0==e.tbsresp&&(e.tbsresp=new _ResponseData(e)),void 0==e.sighex&&void 0!=e.reskey&&this.sign();var n=[];if(n.push(e.tbsresp),n.push(new s({name:e.sigalg})),n.push(new o({hex:"00"+e.sighex})),void 0!=e.certs&&void 0!=e.certs.length){for(var l=[],c=0;c<e.certs.length;c++){var u=e.certs[c],d=null;if(xn.isASN1HEX(u))d=u;else{if(!u.match(/-----BEGIN/))throw new t("certs["+c+"] not hex or PEM");d=Qn(u)}l.push(new r({tlv:d}))}var h=new i({array:l});n.push(new a({tag:"a0",explicit:!0,obj:h}))}var p=new i({array:n});return p.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(_n.asn1.ocsp.BasicOCSPResponse,_n.asn1.ASN1Object),_n.asn1.ocsp.ResponseData=function(e){_n.asn1.ocsp.ResponseData.superclass.constructor.call(this);var t=Error,n=_n.asn1,r=n.DERSequence,i=n.DERGeneralizedTime,a=n.DERTaggedObject,o=n.x509.Extensions,s=n.ocsp,l=s.ResponderID;_SingleResponseList=s.SingleResponseList,this.params=null,this.tohex=function(){var e=this.params;void 0!=e.respid&&new t("respid not specified"),void 0!=e.prodat&&new t("prodat not specified"),void 0!=e.array&&new t("array not specified");var n=[];if(n.push(new l(e.respid)),n.push(new i(e.prodat)),n.push(new _SingleResponseList(e.array)),void 0!=e.ext){var s=new o(e.ext);n.push(new a({tag:"a1",explicit:!0,obj:s}))}var c=new r({array:n});return c.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},Pr(_n.asn1.ocsp.ResponseData,_n.asn1.ASN1Object),_n.asn1.ocsp.ResponderID=function(e){_n.asn1.ocsp.ResponderID.superclass.constructor.call(this);var t=_n,n=t.asn1,r=n.ASN1Util.newObject,i=n.x509.X500Name,a=t.lang.String.isHex,o=Error;this.params=null,this.tohex=function(){var e=this.params;if(void 0!=e.key){var t=null;if("string"==typeof e.key){if(a(e.key)&&(t=e.key),e.key.match(/-----BEGIN CERTIFICATE/)){var n=new Ur(e.key),s=n.getExtSubjectKeyIdentifier();null!=s&&(t=s.kid.hex)}}else if(e.key instanceof Ur){s=e.key.getExtSubjectKeyIdentifier();null!=s&&(t=s.kid.hex)}if(null==t)throw new o("wrong key member value");var l=r({tag:{tag:"a2",explicit:!0,obj:{octstr:{hex:t}}}});return l.tohex()}if(void 0!=e.name){var c=null;if("string"==typeof e.name&&e.name.match(/-----BEGIN CERTIFICATE/)){n=new Ur(e.name);c=n.getSubject()}else e.name instanceof Ur?c=e.name.getSubject():"object"!=typeof e.name||void 0==e.name.array&&void 0==e.name.str||(c=e.name);if(null==c)throw new o("wrong name member value");l=r({tag:{tag:"a1",explicit:!0,obj:new i(c)}});return l.tohex()}throw new o("key or name not specified")},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},Pr(_n.asn1.ocsp.ResponderID,_n.asn1.ASN1Object),_n.asn1.ocsp.SingleResponseList=function(e){_n.asn1.ocsp.SingleResponseList.superclass.constructor.call(this);var t=_n.asn1,n=t.DERSequence,r=t.ocsp.SingleResponse;this.params=null,this.tohex=function(){var e=this.params;if("object"!=typeof e||void 0==e.length)throw new Error("params not specified properly");for(var t=[],i=0;i<e.length;i++)t.push(new r(e[i]));var a=new n({array:t});return a.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},Pr(_n.asn1.ocsp.SingleResponseList,_n.asn1.ASN1Object),_n.asn1.ocsp.SingleResponse=function(e){var t=Error,n=_n,r=n.asn1,i=r.DERSequence,a=r.DERGeneralizedTime,o=r.DERTaggedObject,s=r.ocsp,l=s.CertID,c=s.CertStatus,u=r.x509,d=u.Extensions;s.SingleResponse.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,n=[];if(void 0==e.certid)throw new t("certid unspecified");if(void 0==e.status)throw new t("status unspecified");if(void 0==e.thisupdate)throw new t("thisupdate unspecified");if(n.push(new l(e.certid)),n.push(new c(e.status)),n.push(new a(e.thisupdate)),void 0!=e.nextupdate){var r=new a(e.nextupdate);n.push(new o({tag:"a0",explicit:!0,obj:r}))}if(void 0!=e.ext){var s=new d(e.ext);n.push(new o({tag:"a1",explicit:!0,obj:s}))}var u=new i({array:n});return u.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},Pr(_n.asn1.ocsp.SingleResponse,_n.asn1.ASN1Object),_n.asn1.ocsp.CertID=function(e){var t=_n,n=t.asn1,r=n.DEROctetString,i=n.DERInteger,a=n.DERSequence,o=n.x509,s=o.AlgorithmIdentifier,l=n.ocsp,c=(l.DEFAULT_HASH,t.crypto),u=c.Util.hashHex,d=Ur,h=xn,p=h.getVbyList;l.CertID.superclass.constructor.call(this),this.DEFAULT_HASH="sha1",this.params=null,this.setByValue=function(e,t,n,r){void 0==r&&(r=this.DEFAULT_HASH),this.params={alg:r,issname:e,isskey:t,sbjsn:n}},this.setByCert=function(e,t,n){void 0==n&&(n=this.DEFAULT_HASH),this.params={alg:n,issuerCert:e,subjectCert:t}},this.getParamByCerts=function(e,t,n){void 0==n&&(n=this.DEFAULT_HASH);var r=new d(e),i=new d(t),a=u(r.getSubjectHex(),n),o=r.getPublicKeyHex(),s=u(p(o,0,[1],"03",!0),n),l=i.getSerialNumberHex(),c={alg:n,issname:a,isskey:s,sbjsn:l};return c},this.tohex=function(){if("object"!=typeof this.params)throw new Error("params not set");var e,t,n,o,l=this.params;if(o=void 0==l.alg?this.DEFAULT_HASH:l.alg,void 0!=l.issuerCert&&void 0!=l.subjectCert){var c=this.getParamByCerts(l.issuerCert,l.subjectCert,o);e=c.issname,t=c.isskey,n=c.sbjsn}else{if(void 0==l.issname||void 0==l.isskey||void 0==l.sbjsn)throw new Error("required param members not defined");e=l.issname,t=l.isskey,n=l.sbjsn}var u=new s({name:o}),d=new r({hex:e}),h=new r({hex:t}),p=new i({hex:n}),f=new a({array:[u,d,h,p]});return this.hTLV=f.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(_n.asn1.ocsp.CertID,_n.asn1.ASN1Object),_n.asn1.ocsp.CertStatus=function(e){_n.asn1.ocsp.CertStatus.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if("good"==e.status)return"8000";if("unknown"==e.status)return"8200";if("revoked"==e.status){var t=[{gentime:{str:e.time}}];void 0!=e.reason&&t.push({tag:{tag:"a0",explicit:!0,obj:{enum:{int:e.reason}}}});var n={tag:"a1",explicit:!1,obj:{seq:t}};return _n.asn1.ASN1Util.newObject({tag:n}).tohex()}throw new Error("bad status")},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},Pr(_n.asn1.ocsp.CertStatus,_n.asn1.ASN1Object),_n.asn1.ocsp.Request=function(e){var t=_n,n=t.asn1,r=n.DERSequence,i=n.ocsp;if(i.Request.superclass.constructor.call(this),this.dReqCert=null,this.dExt=null,this.tohex=function(){var e=[];if(null===this.dReqCert)throw"reqCert not set";e.push(this.dReqCert);var t=new r({array:e});return this.hTLV=t.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},"undefined"!==typeof e){var a=new i.CertID(e);this.dReqCert=a}},Pr(_n.asn1.ocsp.Request,_n.asn1.ASN1Object),_n.asn1.ocsp.TBSRequest=function(e){var t=_n,n=t.asn1,r=n.DERSequence,i=n.ocsp;i.TBSRequest.superclass.constructor.call(this),this.version=0,this.dRequestorName=null,this.dRequestList=[],this.dRequestExt=null,this.setRequestListByParam=function(e){for(var t=[],n=0;n<e.length;n++){var r=new i.Request(e[0]);t.push(r)}this.dRequestList=t},this.tohex=function(){var e=[];if(0!==this.version)throw"not supported version: "+this.version;if(null!==this.dRequestorName)throw"requestorName not supported";var t=new r({array:this.dRequestList});if(e.push(t),null!==this.dRequestExt)throw"requestExtensions not supported";var n=new r({array:e});return this.hTLV=n.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&void 0!==e.reqList&&this.setRequestListByParam(e.reqList)},Pr(_n.asn1.ocsp.TBSRequest,_n.asn1.ASN1Object),_n.asn1.ocsp.OCSPRequest=function(e){var t=_n,n=t.asn1,r=n.DERSequence,i=n.ocsp;if(i.OCSPRequest.superclass.constructor.call(this),this.dTbsRequest=null,this.dOptionalSignature=null,this.tohex=function(){var e=[];if(null===this.dTbsRequest)throw"tbsRequest not set";if(e.push(this.dTbsRequest),null!==this.dOptionalSignature)throw"optionalSignature not supported";var t=new r({array:e});return this.hTLV=t.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&void 0!==e.reqList){var a=new i.TBSRequest(e);this.dTbsRequest=a}},Pr(_n.asn1.ocsp.OCSPRequest,_n.asn1.ASN1Object),_n.asn1.ocsp.OCSPUtil={},_n.asn1.ocsp.OCSPUtil.getRequestHex=function(e,t,n){var r=_n,i=r.asn1,a=i.ocsp;void 0===n&&(n=a.DEFAULT_HASH);var o={alg:n,issuerCert:e,subjectCert:t},s=new a.OCSPRequest({reqList:[o]});return s.tohex()},_n.asn1.ocsp.OCSPUtil.getOCSPResponseInfo=function(e){var t=xn,n=t.getVbyList,r=t.getVbyListEx,i=t.getIdxbyList,a=(t.getIdxbyListEx,t.getV),o={};try{var s=r(e,0,[0],"0a");o.responseStatus=parseInt(s,16)}catch(d){}if(0!==o.responseStatus)return o;try{var l=i(e,0,[1,0,1,0,0,2,0,1]);"80"===e.substr(l,2)?o.certStatus="good":"a1"===e.substr(l,2)?(o.certStatus="revoked",o.revocationTime=Un(n(e,l,[0]))):"82"===e.substr(l,2)&&(o.certStatus="unknown")}catch(d){}try{var c=i(e,0,[1,0,1,0,0,2,0,2]);o.thisUpdate=Un(a(e,c))}catch(d){}try{var u=i(e,0,[1,0,1,0,0,2,0,3]);"a0"===e.substr(u,2)&&(o.nextUpdate=Un(n(e,u,[0])))}catch(d){}return o},_n.asn1.ocsp.OCSPParser=function(){var e=Error,t=Ur,n=new t,r=xn,i=r.getV,a=r.getTLV,o=r.getIdxbyList,s=r.getVbyList,l=r.getTLVbyList,c=r.getVbyListEx,u=r.getTLVbyListEx,d=r.getChildIdx;this.getOCSPRequest=function(t){var n=d(t,0);if(1!=n.length&&2!=n.length)throw new e("wrong number elements: "+n.length);var r=this.getTBSRequest(a(t,n[0]));return r},this.getTBSRequest=function(e){var t={},r=u(e,0,[0],"30");t.array=this.getRequestList(r);var i=u(e,0,["[2]",0],"30");return null!=i&&(t.ext=n.getExtParamArray(i)),t},this.getRequestList=function(e){for(var t=[],n=d(e,0),r=0;r<n.length;r++){e=a(e,n[r]);t.push(this.getRequest(e))}return t},this.getRequest=function(t){var r=d(t,0);if(1!=r.length&&2!=r.length)throw new e("wrong number elements: "+r.length);var i=this.getCertID(a(t,r[0]));if(2==r.length){var s=o(t,0,[1,0]);i.ext=n.getExtParamArray(a(t,s))}return i},this.getCertID=function(n){var r=d(n,0);if(4!=r.length)throw new e("wrong number elements: "+r.length);var o=new t,s={};return s.alg=o.getAlgorithmIdentifierName(a(n,r[0])),s.issname=i(n,r[1]),s.isskey=i(n,r[2]),s.sbjsn=i(n,r[3]),s},this.getOCSPResponse=function(e){var t,n=d(e,0),r=i(e,n[0]),a=parseInt(r);if(1==n.length)return{resstatus:a};var o=l(e,0,[1,0]);return t=this.getResponseBytes(o),t.resstatus=a,t},this.getResponseBytes=function(e){var t,n=d(e,0),r=l(e,0,[1,0]);t=this.getBasicOCSPResponse(r);var a=i(e,n[0]);return t.restype=_n.asn1.x509.OID.oid2name(xr(a)),t},this.getBasicOCSPResponse=function(e){var t,n=d(e,0);t=this.getResponseData(a(e,n[0]));var r=new Ur;t.alg=r.getAlgorithmIdentifierName(a(e,n[1]));var o=i(e,n[2]);t.sighex=o.substr(2);var s=c(e,0,["[0]"]);if(null!=s){for(var l=d(s,0),u=[],h=0;h<l.length;h++){var p=a(s,l[h]);u.push(p)}t.certs=u}return t},this.getResponseData=function(e){var t=d(e,0),n=t.length,r={},o=0;"a0"==e.substr(t[0],2)&&o++,r.respid=this.getResponderID(a(e,t[o++]));var s=i(e,t[o++]);if(r.prodat=Un(s),r.array=this.getSingleResponseList(a(e,t[o++])),"a1"==e.substr(t[n-1],2)){var c=l(e,t[n-1],[0]),u=new Ur;r.ext=u.getExtParamArray(c)}return r},this.getResponderID=function(e){var t={};if("a2"==e.substr(0,2)){var n=s(e,0,[0]);t.key=n}if("a1"==e.substr(0,2)){var r=l(e,0,[0]),i=new Ur;t.name=i.getX500Name(r)}return t},this.getSingleResponseList=function(e){for(var t=d(e,0),n=[],r=0;r<t.length;r++){var i=this.getSingleResponse(a(e,t[r]));n.push(i)}return n},this.getSingleResponse=function(e){var t=d(e,0),n={},r=this.getCertID(a(e,t[0]));n.certid=r;var o=this.getCertStatus(a(e,t[1]));if(n.status=o,"18"==e.substr(t[2],2)){var c=i(e,t[2]);n.thisupdate=Un(c)}for(var u=3;u<t.length;u++){if("a0"==e.substr(t[u],2)){var h=s(e,t[u],[0],"18");n.nextupdate=Un(h)}if("a1"==e.substr(t[u],2)){var p=new Ur,f=l(e,0,[u,0]);n.ext=p.getExtParamArray(f)}}return n},this.getCertStatus=function(e){var t={};if("8000"==e)return{status:"good"};if("8200"==e)return{status:"unknown"};if("a1"==e.substr(0,2)){t.status="revoked";var n=s(e,0,[0]),r=Un(n);t.time=r}return t}},"undefined"!=typeof _n&&_n||(_n={}),"undefined"!=typeof _n.lang&&_n.lang||(_n.lang={}),_n.lang.String=function(){},"function"===typeof r?(Sn=function(e){return Ln(r.from(e,"utf8").toString("base64"))},kn=function(e){return r.from(Dn(e),"base64").toString("utf8")}):(Sn=function(e){return Pn(sr(gr(e)))},kn=function(e){return decodeURIComponent(lr(Mn(e)))}),_n.lang.String.isInteger=function(e){return!!e.match(/^[0-9]+$/)||!!e.match(/^-[0-9]+$/)},_n.lang.String.isHex=function(e){return yr(e)},_n.lang.String.isBase64=function(e){return e=e.replace(/\s+/g,""),!(!e.match(/^[0-9A-Za-z+\/]+={0,3}$/)||e.length%4!=0)},_n.lang.String.isBase64URL=function(e){return!e.match(/[+/=]/)&&(e=Dn(e),_n.lang.String.isBase64(e))},_n.lang.String.isIntegerArray=function(e){return e=e.replace(/\s+/g,""),!!e.match(/^\[[0-9,]+\]$/)},_n.lang.String.isPrintable=function(e){return null!==e.match(/^[0-9A-Za-z '()+,-./:=?]*$/)},_n.lang.String.isIA5=function(e){return null!==e.match(/^[\x20-\x21\x23-\x7f]*$/)},_n.lang.String.isMail=function(e){return null!==e.match(/^[A-Za-z0-9]{1}[A-Za-z0-9_.-]*@{1}[A-Za-z0-9_.-]{1,}\.[A-Za-z0-9]{1,}$/)};var Sr=function(e,t){var n=e.length;e.length>t.length&&(n=t.length);for(var r=0;r<n;r++)if(e.charCodeAt(r)!=t.charCodeAt(r))return r;return e.length!=t.length?n:-1};function kr(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=parseInt(e,10),i=r.toString(2),a=7-i.length%7;7==a&&(a=0);for(var o="",s=0;s<a;s++)o+="0";i=o+i;for(s=0;s<i.length-1;s+=7){var l=i.substr(s,7);s!=i.length-7&&(l="1"+l),n+=t(parseInt(l,2))}return n};try{if(!e.match(/^[0-9.]+$/))return null;var r="",i=e.split("."),a=40*parseInt(i[0],10)+parseInt(i[1],10);r+=t(a),i.splice(0,2);for(var o=0;o<i.length;o++)r+=n(i[o]);return r}catch(s){return null}}function xr(e){if(!yr(e))return null;try{var t=[],n=e.substr(0,2),r=parseInt(n,16);t[0]=new String(Math.floor(r/40)),t[1]=new String(r%40);for(var i=e.substr(2),a=[],o=0;o<i.length/2;o++)a.push(parseInt(i.substr(2*o,2),16));var s=[],l="";for(o=0;o<a.length;o++)128&a[o]?l+=Cr((127&a[o]).toString(2),7):(l+=Cr((127&a[o]).toString(2),7),s.push(new String(parseInt(l,2))),l="");var c=t.join(".");return s.length>0&&(c=c+"."+s.join(".")),c}catch(u){return null}}function Ar(e){var t=new v(String(e),10);return Nr(t)}function Nr(e){var t=e.toString(16);if("-"!=t.substr(0,1))return t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t),t;var n=t.substr(1),r=n.length;r%2==1?r+=1:t.match(/^[0-7]/)||(r+=2);for(var i="",a=0;a<r;a++)i+="f";var o=new v(i,16),s=o.xor(e).add(v.ONE);return t=s.toString(16).replace(/^-/,""),t}var Cr=function(e,t,n){return void 0==n&&(n="0"),e.length>=t?e:new Array(t-e.length+1).join(n)+e};function Tr(e){if(e.length%2!=0)return-1;if(e=e.toLowerCase(),null==e.match(/^[0-9a-f]+$/))return-1;try{var t=e.substr(0,2);if("00"==t)return parseInt(e.substr(2),16);var n=parseInt(t,16);if(n>7)return-1;var r=e.substr(2),i=parseInt(r,16).toString(2);"0"==i&&(i="00000000"),i=i.slice(0,0-n);var a=parseInt(i,2);return NaN==a?-1:a}catch(o){return-1}}function Rr(e){if("number"!=typeof e)return null;if(e<0)return null;var t=Number(e).toString(2),n=8-t.length%8;8==n&&(n=0),t+=Cr("",n,"0");var r=parseInt(t,2).toString(16);r.length%2==1&&(r="0"+r);var i="0"+n;return i+r}function Or(e){if("string"!=typeof e)return null;if(e.length%2!=0)return null;if(!e.match(/^[0-9a-f]+$/))return null;try{var t=parseInt(e.substr(0,2),16);if(t<0||7<t)return null;for(var n=e.substr(2),r="",i=0;i<n.length;i+=2){var a=n.substr(i,2),o=parseInt(a,16).toString(2);o=("0000000"+o).slice(-8),r+=o}return r.substr(0,r.length-t)}catch(s){return null}}function Ir(e){if("string"!=typeof e)return null;if(null==e.match(/^[01]+$/))return null;try{var t=parseInt(e,2);return Rr(t)}catch(n){return null}}function Lr(e,t){for(var n=0,r=0;r<e.length;r++)n|=1<<t[e[r]];var i=n.toString(2),a="";for(r=i.length-1;r>=0;r--)a+=i[r];return a}function Dr(e,t,n){if("object"==typeof e){t=String(t).split(".");for(var r=0;r<t.length&&e;r++){var i=t[r];i.match(/^[0-9]+$/)&&(i=parseInt(i)),e=e[i]}return e||!1===e?e:n}}function Pr(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t)}"undefined"!=typeof _n&&_n||(_n={}),"undefined"!=typeof _n.crypto&&_n.crypto||(_n.crypto={}),_n.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},this.DEFAULTPROVIDER={md5:"cryptojs",sha1:"cryptojs",sha224:"cryptojs",sha256:"cryptojs",sha384:"cryptojs",sha512:"cryptojs",ripemd160:"cryptojs",hmacmd5:"cryptojs",hmacsha1:"cryptojs",hmacsha224:"cryptojs",hmacsha256:"cryptojs",hmacsha384:"cryptojs",hmacsha512:"cryptojs",hmacripemd160:"cryptojs",MD5withRSA:"cryptojs/jsrsa",SHA1withRSA:"cryptojs/jsrsa",SHA224withRSA:"cryptojs/jsrsa",SHA256withRSA:"cryptojs/jsrsa",SHA384withRSA:"cryptojs/jsrsa",SHA512withRSA:"cryptojs/jsrsa",RIPEMD160withRSA:"cryptojs/jsrsa",MD5withECDSA:"cryptojs/jsrsa",SHA1withECDSA:"cryptojs/jsrsa",SHA224withECDSA:"cryptojs/jsrsa",SHA256withECDSA:"cryptojs/jsrsa",SHA384withECDSA:"cryptojs/jsrsa",SHA512withECDSA:"cryptojs/jsrsa",RIPEMD160withECDSA:"cryptojs/jsrsa",SHA1withDSA:"cryptojs/jsrsa",SHA224withDSA:"cryptojs/jsrsa",SHA256withDSA:"cryptojs/jsrsa",MD5withRSAandMGF1:"cryptojs/jsrsa",SHAwithRSAandMGF1:"cryptojs/jsrsa",SHA1withRSAandMGF1:"cryptojs/jsrsa",SHA224withRSAandMGF1:"cryptojs/jsrsa",SHA256withRSAandMGF1:"cryptojs/jsrsa",SHA384withRSAandMGF1:"cryptojs/jsrsa",SHA512withRSAandMGF1:"cryptojs/jsrsa",RIPEMD160withRSAandMGF1:"cryptojs/jsrsa"},this.CRYPTOJSMESSAGEDIGESTNAME={md5:l.algo.MD5,sha1:l.algo.SHA1,sha224:l.algo.SHA224,sha256:l.algo.SHA256,sha384:l.algo.SHA384,sha512:l.algo.SHA512,ripemd160:l.algo.RIPEMD160},this.getDigestInfoHex=function(e,t){if("undefined"==typeof this.DIGESTINFOHEAD[t])throw"alg not supported in Util.DIGESTINFOHEAD: "+t;return this.DIGESTINFOHEAD[t]+e},this.getPaddedDigestInfoHex=function(e,t,n){var r=this.getDigestInfoHex(e,t),i=n/4;if(r.length+22>i)throw"key is too short for SigAlg: keylen="+n+","+t;for(var a="0001",o="00"+r,s="",l=i-a.length-o.length,c=0;c<l;c+=2)s+="ff";var u=a+s+o;return u},this.hashString=function(e,t){var n=new _n.crypto.MessageDigest({alg:t});return n.digestString(e)},this.hashHex=function(e,t){var n=new _n.crypto.MessageDigest({alg:t});return n.digestHex(e)},this.sha1=function(e){return this.hashString(e,"sha1")},this.sha256=function(e){return this.hashString(e,"sha256")},this.sha256Hex=function(e){return this.hashHex(e,"sha256")},this.sha512=function(e){return this.hashString(e,"sha512")},this.sha512Hex=function(e){return this.hashHex(e,"sha512")},this.isKey=function(e){return e instanceof Ut||e instanceof _n.crypto.DSA||e instanceof _n.crypto.ECDSA}},_n.crypto.Util.md5=function(e){var t=new _n.crypto.MessageDigest({alg:"md5",prov:"cryptojs"});return t.digestString(e)},_n.crypto.Util.ripemd160=function(e){var t=new _n.crypto.MessageDigest({alg:"ripemd160",prov:"cryptojs"});return t.digestString(e)},_n.crypto.Util.SECURERANDOMGEN=new Ft,_n.crypto.Util.getRandomHexOfNbytes=function(e){var t=new Array(e);return _n.crypto.Util.SECURERANDOMGEN.nextBytes(t),Cn(t)},_n.crypto.Util.getRandomBigIntegerOfNbytes=function(e){return new v(_n.crypto.Util.getRandomHexOfNbytes(e),16)},_n.crypto.Util.getRandomHexOfNbits=function(e){var t=e%8,n=(e-t)/8,r=new Array(n+1);return _n.crypto.Util.SECURERANDOMGEN.nextBytes(r),r[0]=(255<<t&255^255)&r[0],Cn(r)},_n.crypto.Util.getRandomBigIntegerOfNbits=function(e){return new v(_n.crypto.Util.getRandomHexOfNbits(e),16)},_n.crypto.Util.getRandomBigIntegerZeroToMax=function(e){var t=e.bitLength();while(1){var n=_n.crypto.Util.getRandomBigIntegerOfNbits(t);if(-1!=e.compareTo(n))return n}},_n.crypto.Util.getRandomBigIntegerMinToMax=function(e,t){var n=e.compareTo(t);if(1==n)throw"biMin is greater than biMax";if(0==n)return e;var r=t.subtract(e),i=_n.crypto.Util.getRandomBigIntegerZeroToMax(r);return i.add(e)},_n.crypto.MessageDigest=function(e){this.setAlgAndProvider=function(e,t){if(e=_n.crypto.MessageDigest.getCanonicalAlgName(e),null!==e&&void 0===t&&(t=_n.crypto.Util.DEFAULTPROVIDER[e]),-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(e)&&"cryptojs"==t){try{this.md=_n.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[e].create()}catch(n){throw"setAlgAndProvider hash alg set fail alg="+e+"/"+n}this.updateString=function(e){this.md.update(e)},this.updateHex=function(e){var t=l.enc.Hex.parse(e);this.md.update(t)},this.digest=function(){var e=this.md.finalize();return e.toString(l.enc.Hex)},this.digestString=function(e){return this.updateString(e),this.digest()},this.digestHex=function(e){return this.updateHex(e),this.digest()}}if(-1!=":sha256:".indexOf(e)&&"sjcl"==t){try{this.md=new sjcl.hash.sha256}catch(n){throw"setAlgAndProvider hash alg set fail alg="+e+"/"+n}this.updateString=function(e){this.md.update(e)},this.updateHex=function(e){var t=sjcl.codec.hex.toBits(e);this.md.update(t)},this.digest=function(){var e=this.md.finalize();return sjcl.codec.hex.fromBits(e)},this.digestString=function(e){return this.updateString(e),this.digest()},this.digestHex=function(e){return this.updateHex(e),this.digest()}}},this.updateString=function(e){throw"updateString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.updateHex=function(e){throw"updateHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digest=function(){throw"digest() not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestString=function(e){throw"digestString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestHex=function(e){throw"digestHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},void 0!==e&&void 0!==e.alg&&(this.algName=e.alg,void 0===e.prov&&(this.provName=_n.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName))},_n.crypto.MessageDigest.getCanonicalAlgName=function(e){return"string"===typeof e&&(e=e.toLowerCase(),e=e.replace(/-/,"")),e},_n.crypto.MessageDigest.getHashLength=function(e){var t=_n.crypto.MessageDigest,n=t.getCanonicalAlgName(e);if(void 0===t.HASHLENGTH[n])throw"not supported algorithm: "+e;return t.HASHLENGTH[n]},_n.crypto.MessageDigest.HASHLENGTH={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,ripemd160:20},_n.crypto.Mac=function(e){this.setAlgAndProvider=function(e,t){if(e=e.toLowerCase(),null==e&&(e="hmacsha1"),e=e.toLowerCase(),"hmac"!=e.substr(0,4))throw"setAlgAndProvider unsupported HMAC alg: "+e;void 0===t&&(t=_n.crypto.Util.DEFAULTPROVIDER[e]),this.algProv=e+"/"+t;var n=e.substr(4);if(-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(n)&&"cryptojs"==t){try{var r=_n.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[n];this.mac=l.algo.HMAC.create(r,this.pass)}catch(i){throw"setAlgAndProvider hash alg set fail hashAlg="+n+"/"+i}this.updateString=function(e){this.mac.update(e)},this.updateHex=function(e){var t=l.enc.Hex.parse(e);this.mac.update(t)},this.doFinal=function(){var e=this.mac.finalize();return e.toString(l.enc.Hex)},this.doFinalString=function(e){return this.updateString(e),this.doFinal()},this.doFinalHex=function(e){return this.updateHex(e),this.doFinal()}}},this.updateString=function(e){throw"updateString(str) not supported for this alg/prov: "+this.algProv},this.updateHex=function(e){throw"updateHex(hex) not supported for this alg/prov: "+this.algProv},this.doFinal=function(){throw"digest() not supported for this alg/prov: "+this.algProv},this.doFinalString=function(e){throw"digestString(str) not supported for this alg/prov: "+this.algProv},this.doFinalHex=function(e){throw"digestHex(hex) not supported for this alg/prov: "+this.algProv},this.setPassword=function(e){if("string"==typeof e){var t=e;return e.length%2!=1&&e.match(/^[0-9A-Fa-f]+$/)||(t=Hn(e)),void(this.pass=l.enc.Hex.parse(t))}if("object"!=typeof e)throw"KJUR.crypto.Mac unsupported password type: "+e;t=null;if(void 0!==e.hex){if(e.hex.length%2!=0||!e.hex.match(/^[0-9A-Fa-f]+$/))throw"Mac: wrong hex password: "+e.hex;t=e.hex}if(void 0!==e.utf8&&(t=$n(e.utf8)),void 0!==e.rstr&&(t=Hn(e.rstr)),void 0!==e.b64&&(t=p(e.b64)),void 0!==e.b64u&&(t=Mn(e.b64u)),null==t)throw"KJUR.crypto.Mac unsupported password type: "+e;this.pass=l.enc.Hex.parse(t)},void 0!==e&&(void 0!==e.pass&&this.setPassword(e.pass),void 0!==e.alg&&(this.algName=e.alg,void 0===e.prov&&(this.provName=_n.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName)))},_n.crypto.Signature=function(e){var t=null;if(this._setAlgNames=function(){var e=this.algName.match(/^(.+)with(.+)$/);e&&(this.mdAlgName=e[1].toLowerCase(),this.pubkeyAlgName=e[2].toLowerCase(),"rsaandmgf1"==this.pubkeyAlgName&&"sha"==this.mdAlgName&&(this.mdAlgName="sha1"))},this._zeroPaddingOfSignature=function(e,t){for(var n="",r=t/4-e.length,i=0;i<r;i++)n+="0";return n+e},this.setAlgAndProvider=function(e,t){if(this._setAlgNames(),"cryptojs/jsrsa"!=t)throw new Error("provider not supported: "+t);if(-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(this.mdAlgName)){try{this.md=new _n.crypto.MessageDigest({alg:this.mdAlgName})}catch(n){throw new Error("setAlgAndProvider hash alg set fail alg="+this.mdAlgName+"/"+n)}this.init=function(e,t){var n=null;try{n=void 0===t?Mr.getKey(e):Mr.getKey(e,t)}catch(r){throw"init failed:"+r}if(!0===n.isPrivate)this.prvKey=n,this.state="SIGN";else{if(!0!==n.isPublic)throw"init failed.:"+n;this.pubKey=n,this.state="VERIFY"}},this.updateString=function(e){this.md.updateString(e)},this.updateHex=function(e){this.md.updateHex(e)},this.sign=function(){if(this.sHashHex=this.md.digest(),void 0===this.prvKey&&void 0!==this.ecprvhex&&void 0!==this.eccurvename&&void 0!==_n.crypto.ECDSA&&(this.prvKey=new _n.crypto.ECDSA({curve:this.eccurvename,prv:this.ecprvhex})),this.prvKey instanceof Ut&&"rsaandmgf1"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHashPSS(this.sHashHex,this.mdAlgName,this.pssSaltLen);else if(this.prvKey instanceof Ut&&"rsa"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex,this.mdAlgName);else if(this.prvKey instanceof _n.crypto.ECDSA)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex);else{if(!(this.prvKey instanceof _n.crypto.DSA))throw"Signature: unsupported private key alg: "+this.pubkeyAlgName;this.hSign=this.prvKey.signWithMessageHash(this.sHashHex)}return this.hSign},this.signString=function(e){return this.updateString(e),this.sign()},this.signHex=function(e){return this.updateHex(e),this.sign()},this.verify=function(e){if(this.sHashHex=this.md.digest(),void 0===this.pubKey&&void 0!==this.ecpubhex&&void 0!==this.eccurvename&&void 0!==_n.crypto.ECDSA&&(this.pubKey=new _n.crypto.ECDSA({curve:this.eccurvename,pub:this.ecpubhex})),this.pubKey instanceof Ut&&"rsaandmgf1"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHashPSS(this.sHashHex,e,this.mdAlgName,this.pssSaltLen);if(this.pubKey instanceof Ut&&"rsa"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);if(void 0!==_n.crypto.ECDSA&&this.pubKey instanceof _n.crypto.ECDSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);if(void 0!==_n.crypto.DSA&&this.pubKey instanceof _n.crypto.DSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);throw"Signature: unsupported public key alg: "+this.pubkeyAlgName}}},this.init=function(e,t){throw"init(key, pass) not supported for this alg:prov="+this.algProvName},this.updateString=function(e){throw"updateString(str) not supported for this alg:prov="+this.algProvName},this.updateHex=function(e){throw"updateHex(hex) not supported for this alg:prov="+this.algProvName},this.sign=function(){throw"sign() not supported for this alg:prov="+this.algProvName},this.signString=function(e){throw"digestString(str) not supported for this alg:prov="+this.algProvName},this.signHex=function(e){throw"digestHex(hex) not supported for this alg:prov="+this.algProvName},this.verify=function(e){throw"verify(hSigVal) not supported for this alg:prov="+this.algProvName},this.initParams=e,void 0!==e&&(void 0!==e.alg&&(this.algName=e.alg,void 0===e.prov?this.provName=_n.crypto.Util.DEFAULTPROVIDER[this.algName]:this.provName=e.prov,this.algProvName=this.algName+":"+this.provName,this.setAlgAndProvider(this.algName,this.provName),this._setAlgNames()),void 0!==e.psssaltlen&&(this.pssSaltLen=e.psssaltlen),void 0!==e.prvkeypem)){if(void 0!==e.prvkeypas)throw"both prvkeypem and prvkeypas parameters not supported";try{t=Mr.getKey(e.prvkeypem);this.init(t)}catch(n){throw"fatal error to load pem private key: "+n}}},_n.crypto.OID=new function(){this.oidhex2name={"2a864886f70d010101":"rsaEncryption","2a8648ce3d0201":"ecPublicKey","2a8648ce380401":"dsa","2a8648ce3d030107":"secp256r1","2b8104001f":"secp192k1","2b81040021":"secp224r1","2b8104000a":"secp256k1","2b81040022":"secp384r1","2b81040023":"secp521r1","2a8648ce380403":"SHA1withDSA","608648016503040301":"SHA224withDSA","608648016503040302":"SHA256withDSA"}},"undefined"!=typeof _n&&_n||(_n={}),"undefined"!=typeof _n.crypto&&_n.crypto||(_n.crypto={}),_n.crypto.ECDSA=function(e){var t="secp256r1",n=Error,r=v,i=nn,a=_n.crypto.ECDSA,o=_n.crypto.ECParameterDB,s=a.getName,l=xn,c=l.getVbyListEx,u=l.isASN1HEX,d=new Ft;this.type="EC",this.isPrivate=!1,this.isPublic=!1,this.getBigRandom=function(e){return new r(e.bitLength(),d).mod(e.subtract(r.ONE)).add(r.ONE)},this.setNamedCurve=function(e){this.ecparams=o.getByName(e),this.prvKeyHex=null,this.pubKeyHex=null,this.curveName=e},this.setPrivateKeyHex=function(e){this.isPrivate=!0,this.prvKeyHex=e},this.setPublicKeyHex=function(e){this.isPublic=!0,this.pubKeyHex=e},this.getPublicKeyXYHex=function(){var e=this.pubKeyHex;if("04"!==e.substr(0,2))throw"this method supports uncompressed format(04) only";var t=this.ecparams.keycharlen;if(e.length!==2+2*t)throw"malformed public key hex length";var n={};return n.x=e.substr(2,t),n.y=e.substr(2+t),n},this.getShortNISTPCurveName=function(){var e=this.curveName;return"secp256r1"===e||"NIST P-256"===e||"P-256"===e||"prime256v1"===e?"P-256":"secp384r1"===e||"NIST P-384"===e||"P-384"===e?"P-384":"secp521r1"===e||"NIST P-521"===e||"P-521"===e?"P-521":null},this.generateKeyPairHex=function(){var e=this.ecparams.n,t=this.getBigRandom(e),n=this.ecparams.keycharlen,r=("0000000000"+t.toString(16)).slice(-n);this.setPrivateKeyHex(r);var i=this.generatePublicKeyHex();return{ecprvhex:r,ecpubhex:i}},this.generatePublicKeyHex=function(){var e=new r(this.prvKeyHex,16),t=this.ecparams.G.multiply(e),n=t.getX().toBigInteger(),i=t.getY().toBigInteger(),a=this.ecparams.keycharlen,o=("0000000000"+n.toString(16)).slice(-a),s=("0000000000"+i.toString(16)).slice(-a),l="04"+o+s;return this.setPublicKeyHex(l),l},this.signWithMessageHash=function(e){return this.signHex(e,this.prvKeyHex)},this.signHex=function(e,t){var n=new r(t,16),i=this.ecparams.n,o=new r(e.substring(0,this.ecparams.keycharlen),16);do{var s=this.getBigRandom(i),l=this.ecparams.G,c=l.multiply(s),u=c.getX().toBigInteger().mod(i)}while(u.compareTo(r.ZERO)<=0);var d=s.modInverse(i).multiply(o.add(n.multiply(u))).mod(i);return a.biRSSigToASN1Sig(u,d)},this.sign=function(e,t){var n=t,i=this.ecparams.n,a=r.fromByteArrayUnsigned(e);do{var o=this.getBigRandom(i),s=this.ecparams.G,l=s.multiply(o),c=l.getX().toBigInteger().mod(i)}while(c.compareTo(v.ZERO)<=0);var u=o.modInverse(i).multiply(a.add(n.multiply(c))).mod(i);return this.serializeSig(c,u)},this.verifyWithMessageHash=function(e,t){return this.verifyHex(e,t,this.pubKeyHex)},this.verifyHex=function(e,t,n){try{var o,s,l=a.parseSigHex(t);o=l.r,s=l.s;var c=i.decodeFromHex(this.ecparams.curve,n),u=new r(e.substring(0,this.ecparams.keycharlen),16);return this.verifyRaw(u,o,s,c)}catch(d){return!1}},this.verify=function(e,t,n){var a,o,s;if(Bitcoin.Util.isArray(t)){var l=this.parseSig(t);a=l.r,o=l.s}else{if("object"!==typeof t||!t.r||!t.s)throw"Invalid value for signature";a=t.r,o=t.s}if(n instanceof nn)s=n;else{if(!Bitcoin.Util.isArray(n))throw"Invalid format for pubkey value, must be byte array or ECPointFp";s=i.decodeFrom(this.ecparams.curve,n)}var c=r.fromByteArrayUnsigned(e);return this.verifyRaw(c,a,o,s)},this.verifyRaw=function(e,t,n,i){var a=this.ecparams.n,o=this.ecparams.G;if(t.compareTo(r.ONE)<0||t.compareTo(a)>=0)return!1;if(n.compareTo(r.ONE)<0||n.compareTo(a)>=0)return!1;var s=n.modInverse(a),l=e.multiply(s).mod(a),c=t.multiply(s).mod(a),u=o.multiply(l).add(i.multiply(c)),d=u.getX().toBigInteger().mod(a);return d.equals(t)},this.serializeSig=function(e,t){var n=e.toByteArraySigned(),r=t.toByteArraySigned(),i=[];return i.push(2),i.push(n.length),i=i.concat(n),i.push(2),i.push(r.length),i=i.concat(r),i.unshift(i.length),i.unshift(48),i},this.parseSig=function(e){var t;if(48!=e[0])throw new Error("Signature not a valid DERSequence");if(t=2,2!=e[t])throw new Error("First element in signature must be a DERInteger");var n=e.slice(t+2,t+2+e[t+1]);if(t+=2+e[t+1],2!=e[t])throw new Error("Second element in signature must be a DERInteger");var i=e.slice(t+2,t+2+e[t+1]);t+=2+e[t+1];var a=r.fromByteArrayUnsigned(n),o=r.fromByteArrayUnsigned(i);return{r:a,s:o}},this.parseSigCompact=function(e){if(65!==e.length)throw"Signature has the wrong length";var t=e[0]-27;if(t<0||t>7)throw"Invalid signature type";var n=this.ecparams.n,i=r.fromByteArrayUnsigned(e.slice(1,33)).mod(n),a=r.fromByteArrayUnsigned(e.slice(33,65)).mod(n);return{r:i,s:a,i:t}},this.readPKCS5PrvKeyHex=function(e){if(!1===u(e))throw new Error("not ASN.1 hex string");var t,n,r;try{t=c(e,0,["[0]",0],"06"),n=c(e,0,[1],"04");try{r=c(e,0,["[1]",0],"03")}catch(i){}}catch(i){throw new Error("malformed PKCS#1/5 plain ECC private key")}if(this.curveName=s(t),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(r),this.setPrivateKeyHex(n),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(e){if(!1===u(e))throw new n("not ASN.1 hex string");var t,r,i;try{c(e,0,[1,0],"06"),t=c(e,0,[1,1],"06"),r=c(e,0,[2,0,1],"04");try{i=c(e,0,[2,0,"[1]",0],"03")}catch(a){}}catch(a){throw new n("malformed PKCS#8 plain ECC private key")}if(this.curveName=s(t),void 0===this.curveName)throw new n("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(i),this.setPrivateKeyHex(r),this.isPublic=!1},this.readPKCS8PubKeyHex=function(e){if(!1===u(e))throw new n("not ASN.1 hex string");var t,r;try{c(e,0,[0,0],"06"),t=c(e,0,[0,1],"06"),r=c(e,0,[1],"03")}catch(i){throw new n("malformed PKCS#8 ECC public key")}if(this.curveName=s(t),null===this.curveName)throw new n("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(r)},this.readCertPubKeyHex=function(e,t){if(!1===u(e))throw new n("not ASN.1 hex string");var r,i;try{r=c(e,0,[0,5,0,1],"06"),i=c(e,0,[0,5,1],"03")}catch(a){throw new n("malformed X.509 certificate ECC public key")}if(this.curveName=s(r),null===this.curveName)throw new n("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},void 0!==e&&void 0!==e.curve&&(this.curveName=e.curve),void 0===this.curveName&&(this.curveName=t),this.setNamedCurve(this.curveName),void 0!==e&&(void 0!==e.prv&&this.setPrivateKeyHex(e.prv),void 0!==e.pub&&this.setPublicKeyHex(e.pub))},_n.crypto.ECDSA.parseSigHex=function(e){var t=_n.crypto.ECDSA.parseSigHexInHexRS(e),n=new v(t.r,16),r=new v(t.s,16);return{r:n,s:r}},_n.crypto.ECDSA.parseSigHexInHexRS=function(e){var t=xn,n=t.getChildIdx,r=t.getV;if(t.checkStrictDER(e,0),"30"!=e.substr(0,2))throw new Error("signature is not a ASN.1 sequence");var i=n(e,0);if(2!=i.length)throw new Error("signature shall have two elements");var a=i[0],o=i[1];if("02"!=e.substr(a,2))throw new Error("1st item not ASN.1 integer");if("02"!=e.substr(o,2))throw new Error("2nd item not ASN.1 integer");var s=r(e,a),l=r(e,o);return{r:s,s:l}},_n.crypto.ECDSA.asn1SigToConcatSig=function(e){var t=_n.crypto.ECDSA.parseSigHexInHexRS(e),n=t.r,r=t.s;if(n.length>=130&&n.length<=134){if(n.length%2!=0)throw Error("unknown ECDSA sig r length error");if(r.length%2!=0)throw Error("unknown ECDSA sig s length error");"00"==n.substr(0,2)&&(n=n.substr(2)),"00"==r.substr(0,2)&&(r=r.substr(2));var i=Math.max(n.length,r.length);return n=("000000"+n).slice(-i),r=("000000"+r).slice(-i),n+r}if("00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),"00"==r.substr(0,2)&&r.length%32==2&&(r=r.substr(2)),n.length%32==30&&(n="00"+n),r.length%32==30&&(r="00"+r),n.length%32!=0)throw Error("unknown ECDSA sig r length error");if(r.length%32!=0)throw Error("unknown ECDSA sig s length error");return n+r},_n.crypto.ECDSA.concatSigToASN1Sig=function(e){if(e.length%4!=0)throw Error("unknown ECDSA concatinated r-s sig length error");var t=e.substr(0,e.length/2),n=e.substr(e.length/2);return _n.crypto.ECDSA.hexRSSigToASN1Sig(t,n)},_n.crypto.ECDSA.hexRSSigToASN1Sig=function(e,t){var n=new v(e,16),r=new v(t,16);return _n.crypto.ECDSA.biRSSigToASN1Sig(n,r)},_n.crypto.ECDSA.biRSSigToASN1Sig=function(e,t){var n=_n.asn1,r=new n.DERInteger({bigint:e}),i=new n.DERInteger({bigint:t}),a=new n.DERSequence({array:[r,i]});return a.tohex()},_n.crypto.ECDSA.getName=function(e){return"2b8104001f"===e?"secp192k1":"2a8648ce3d030107"===e?"secp256r1":"2b8104000a"===e?"secp256k1":"2b81040021"===e?"secp224r1":"2b81040022"===e?"secp384r1":"2b81040023"===e?"secp521r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(e)?"secp256r1":-1!=="|secp256k1|".indexOf(e)?"secp256k1":-1!=="|secp224r1|NIST P-224|P-224|".indexOf(e)?"secp224r1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(e)?"secp384r1":-1!=="|secp521r1|NIST P-521|P-521|".indexOf(e)?"secp521r1":null},"undefined"!=typeof _n&&_n||(_n={}),"undefined"!=typeof _n.crypto&&_n.crypto||(_n.crypto={}),_n.crypto.ECParameterDB=new function(){var e={},t={};function n(e){return new v(e,16)}this.getByName=function(n){var r=n;if("undefined"!=typeof t[r]&&(r=t[n]),"undefined"!=typeof e[r])return e[r];throw"unregistered EC curve name: "+r},this.regist=function(r,i,a,o,s,l,c,u,d,h,p,f){e[r]={};var m=n(a),g=n(o),v=n(s),b=n(l),y=n(c),w=new pn(m,g,v),E=w.decodePointHex("04"+u+d);e[r]["name"]=r,e[r]["keylen"]=i,e[r]["keycharlen"]=2*Math.ceil(i/8),e[r]["curve"]=w,e[r]["G"]=E,e[r]["n"]=b,e[r]["h"]=y,e[r]["oid"]=p,e[r]["info"]=f;for(var _=0;_<h.length;_++)t[h[_]]=r}},_n.crypto.ECParameterDB.regist("secp128r1",128,"FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC","E87579C11079F43DD824993C2CEE5ED3","FFFFFFFE0000000075A30D1B9038A115","1","161FF7528B899B2D0C28607CA52C5B86","CF5AC8395BAFEB13C02DA292DDED7A83",[],"","secp128r1 : SECG curve over a 128 bit prime field"),_n.crypto.ECParameterDB.regist("secp160k1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73","0","7","0100000000000000000001B8FA16DFAB9ACA16B6B3","1","3B4C382CE37AA192A4019E763036F4F5DD4D7EBB","938CF935318FDCED6BC28286531733C3F03C4FEE",[],"","secp160k1 : SECG curve over a 160 bit prime field"),_n.crypto.ECParameterDB.regist("secp160r1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC","1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45","0100000000000000000001F4C8F927AED3CA752257","1","4A96B5688EF573284664698968C38BB913CBFC82","23A628553168947D59DCC912042351377AC5FB32",[],"","secp160r1 : SECG curve over a 160 bit prime field"),_n.crypto.ECParameterDB.regist("secp192k1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37","0","3","FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D","1","DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D","9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D",[]),_n.crypto.ECParameterDB.regist("secp192r1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC","64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1","FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831","1","188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012","07192B95FFC8DA78631011ED6B24CDD573F977A11E794811",[]),_n.crypto.ECParameterDB.regist("secp224r1",224,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE","B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4","FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D","1","B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21","BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34",[]),_n.crypto.ECParameterDB.regist("secp256k1",256,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F","0","7","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","1","79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798","483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8",[]),_n.crypto.ECParameterDB.regist("secp256r1",256,"FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC","5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B","FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551","1","6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296","4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5",["NIST P-256","P-256","prime256v1"]),_n.crypto.ECParameterDB.regist("secp384r1",384,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFC","B3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973","1","AA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7","3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f",["NIST P-384","P-384"]),_n.crypto.ECParameterDB.regist("secp521r1",521,"1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC","051953EB9618E1C9A1F929A21A0B68540EEA2DA725B99B315F3B8B489918EF109E156193951EC7E937B1652C0BD3BB1BF073573DF883D2C34F1EF451FD46B503F00","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409","1","00C6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66","011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650",["NIST P-521","P-521"]),"undefined"!=typeof _n&&_n||(_n={}),"undefined"!=typeof _n.crypto&&_n.crypto||(_n.crypto={}),_n.crypto.DSA=function(){var e=xn,t=(e.getVbyList,e.getVbyListEx),n=e.isASN1HEX,r=v;this.p=null,this.q=null,this.g=null,this.y=null,this.x=null,this.type="DSA",this.isPrivate=!1,this.isPublic=!1,this.setPrivate=function(e,t,n,r,i){this.isPrivate=!0,this.p=e,this.q=t,this.g=n,this.y=r,this.x=i},this.setPrivateHex=function(e,t,n,r,i){var a,o,s,l,c;a=new v(e,16),o=new v(t,16),s=new v(n,16),l="string"===typeof r&&r.length>1?new v(r,16):null,c=new v(i,16),this.setPrivate(a,o,s,l,c)},this.setPublic=function(e,t,n,r){this.isPublic=!0,this.p=e,this.q=t,this.g=n,this.y=r,this.x=null},this.setPublicHex=function(e,t,n,r){var i,a,o,s;i=new v(e,16),a=new v(t,16),o=new v(n,16),s=new v(r,16),this.setPublic(i,a,o,s)},this.signWithMessageHash=function(e){var t=this.p,n=this.q,r=this.g,i=(this.y,this.x),a=_n.crypto.Util.getRandomBigIntegerMinToMax(v.ONE.add(v.ONE),n.subtract(v.ONE)),o=e.substr(0,n.bitLength()/4),s=new v(o,16),l=r.modPow(a,t).mod(n),c=a.modInverse(n).multiply(s.add(i.multiply(l))).mod(n),u=_n.asn1.ASN1Util.jsonToASN1HEX({seq:[{int:{bigint:l}},{int:{bigint:c}}]});return u},this.verifyWithMessageHash=function(e,t){var n=this.p,r=this.q,i=this.g,a=this.y,o=this.parseASN1Signature(t),s=o[0],l=o[1],c=e.substr(0,r.bitLength()/4),u=new v(c,16);if(v.ZERO.compareTo(s)>0||s.compareTo(r)>0)throw"invalid DSA signature";if(v.ZERO.compareTo(l)>=0||l.compareTo(r)>0)throw"invalid DSA signature";var d=l.modInverse(r),h=u.multiply(d).mod(r),p=s.multiply(d).mod(r),f=i.modPow(h,n).multiply(a.modPow(p,n)).mod(n).mod(r);return 0==f.compareTo(s)},this.parseASN1Signature=function(e){try{var n=new r(t(e,0,[0],"02"),16),i=new r(t(e,0,[1],"02"),16);return[n,i]}catch(a){throw new Error("malformed ASN.1 DSA signature")}},this.readPKCS5PrvKeyHex=function(e){var r,i,a,o,s;if(!1===n(e))throw new Error("not ASN.1 hex string");try{r=t(e,0,[1],"02"),i=t(e,0,[2],"02"),a=t(e,0,[3],"02"),o=t(e,0,[4],"02"),s=t(e,0,[5],"02")}catch(l){throw new Error("malformed PKCS#1/5 plain DSA private key")}this.setPrivateHex(r,i,a,o,s)},this.readPKCS8PrvKeyHex=function(e){var r,i,a,o;if(!1===n(e))throw new Error("not ASN.1 hex string");try{r=t(e,0,[1,1,0],"02"),i=t(e,0,[1,1,1],"02"),a=t(e,0,[1,1,2],"02"),o=t(e,0,[2,0],"02")}catch(s){throw new Error("malformed PKCS#8 plain DSA private key")}this.setPrivateHex(r,i,a,null,o)},this.readPKCS8PubKeyHex=function(e){var r,i,a,o;if(!1===n(e))throw new Error("not ASN.1 hex string");try{r=t(e,0,[0,1,0],"02"),i=t(e,0,[0,1,1],"02"),a=t(e,0,[0,1,2],"02"),o=t(e,0,[1,0],"02")}catch(s){throw new Error("malformed PKCS#8 DSA public key")}this.setPublicHex(r,i,a,o)},this.readCertPubKeyHex=function(e,r){var i,a,o,s;if(!1===n(e))throw new Error("not ASN.1 hex string");try{i=t(e,0,[0,5,0,1,0],"02"),a=t(e,0,[0,5,0,1,1],"02"),o=t(e,0,[0,5,0,1,2],"02"),s=t(e,0,[0,5,1,0],"02")}catch(l){throw new Error("malformed X.509 certificate DSA public key")}this.setPublicHex(i,a,o,s)}};var Mr=function(){var e=function(e,t,n){return r(l.AES,e,t,n)},t=function(e,t,n){return r(l.TripleDES,e,t,n)},n=function(e,t,n){return r(l.DES,e,t,n)},r=function(e,t,n,r){var i=l.enc.Hex.parse(t),a=l.enc.Hex.parse(n),o=l.enc.Hex.parse(r),s={};s.key=a,s.iv=o,s.ciphertext=i;var c=e.decrypt(s,a,{iv:o});return l.enc.Hex.stringify(c)},i=function(e,t,n){return s(l.AES,e,t,n)},a=function(e,t,n){return s(l.TripleDES,e,t,n)},o=function(e,t,n){return s(l.DES,e,t,n)},s=function(e,t,n,r){var i=l.enc.Hex.parse(t),a=l.enc.Hex.parse(n),o=l.enc.Hex.parse(r),s=e.encrypt(i,a,{iv:o}),c=l.enc.Hex.parse(s.toString()),u=l.enc.Base64.stringify(c);return u},c={"AES-256-CBC":{proc:e,eproc:i,keylen:32,ivlen:16},"AES-192-CBC":{proc:e,eproc:i,keylen:24,ivlen:16},"AES-128-CBC":{proc:e,eproc:i,keylen:16,ivlen:16},"DES-EDE3-CBC":{proc:t,eproc:a,keylen:24,ivlen:8},"DES-CBC":{proc:n,eproc:o,keylen:8,ivlen:8}},u=function(e){var t=l.lib.WordArray.random(e),n=l.enc.Hex.stringify(t);return n},d=function(e){var t={},n=e.match(new RegExp("DEK-Info: ([^,]+),([0-9A-Fa-f]+)","m"));n&&(t.cipher=n[1],t.ivsalt=n[2]);var r=e.match(new RegExp("-----BEGIN ([A-Z]+) PRIVATE KEY-----"));r&&(t.type=r[1]);var i=-1,a=0;-1!=e.indexOf("\r\n\r\n")&&(i=e.indexOf("\r\n\r\n"),a=2),-1!=e.indexOf("\n\n")&&(i=e.indexOf("\n\n"),a=1);var o=e.indexOf("-----END");if(-1!=i&&-1!=o){var s=e.substring(i+2*a,o-a);s=s.replace(/\s+/g,""),t.data=s}return t},h=function(e,t,n){for(var r=n.substring(0,16),i=l.enc.Hex.parse(r),a=l.enc.Utf8.parse(t),o=c[e]["keylen"]+c[e]["ivlen"],s="",u=null;;){var d=l.algo.MD5.create();if(null!=u&&d.update(u),d.update(a),d.update(i),u=d.finalize(),s+=l.enc.Hex.stringify(u),s.length>=2*o)break}var h={};return h.keyhex=s.substr(0,2*c[e]["keylen"]),h.ivhex=s.substr(2*c[e]["keylen"],2*c[e]["ivlen"]),h},p=function(e,t,n,r){var i=l.enc.Base64.parse(e),a=l.enc.Hex.stringify(i),o=c[t]["proc"],s=o(a,n,r);return s},f=function(e,t,n,r){var i=c[t]["eproc"],a=i(e,n,r);return a};return{version:"1.0.0",parsePKCS5PEM:function(e){return d(e)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(e,t,n){return h(e,t,n)},decryptKeyB64:function(e,t,n,r){return p(e,t,n,r)},getDecryptedKeyHex:function(e,t){var n=d(e),r=(n.type,n.cipher),i=n.ivsalt,a=n.data,o=h(r,t,i),s=o.keyhex,l=p(a,r,s,i);return l},getEncryptedPKCS5PEMFromPrvKeyHex:function(e,t,n,r,i){var a="";if("undefined"!=typeof r&&null!=r||(r="AES-256-CBC"),"undefined"==typeof c[r])throw new Error("KEYUTIL unsupported algorithm: "+r);if("undefined"==typeof i||null==i){var o=c[r]["ivlen"],s=u(o);i=s.toUpperCase()}var l=h(r,n,i),d=l.keyhex,p=f(t,r,d,i),m=p.replace(/(.{64})/g,"$1\r\n");a="-----BEGIN "+e+" PRIVATE KEY-----\r\n";return a+="Proc-Type: 4,ENCRYPTED\r\n",a+="DEK-Info: "+r+","+i+"\r\n",a+="\r\n",a+=m,a+="\r\n-----END "+e+" PRIVATE KEY-----\r\n",a},getEncryptedPKCS8PEM:function(e,t,n){var r=this.getEncryptedPKCS8Hex(e,t,n);return Yn(r,"ENCRYPTED PRIVATE KEY")},getEncryptedPKCS8Hex:function(e,t,n){var r;r=void 0==n||null==n?{}:JSON.parse(JSON.stringify(n)),r.plain=e,this.initPBES2Param(r),this.encryptPBES2Param(r,t);var i=this.generatePBES2ASN1Param(r);return _n.asn1.ASN1Util.newObject(i).tohex()},initPBES2Param:function(e){var t;(void 0==Dr(e,"encalg")&&(e.encalg="aes256-CBC"),void 0==Dr(e,"iter")&&(e.iter=2048),void 0==Dr(e,"prf")&&(e.prf="hmacWithSHA256"),void 0==Dr(e,"salt")&&(e.salt=l.enc.Hex.stringify(l.lib.WordArray.random(8))),void 0==Dr(e,"enciv"))&&("des-EDE3-CBC"==e.encalg&&(t=8),"aes128-CBC"==e.encalg&&(t=16),"aes256-CBC"==e.encalg&&(t=16),e.enciv=l.enc.Hex.stringify(l.lib.WordArray.random(t)))},encryptPBES2Param:function(e,t){var n=Mr.getDKFromPBES2Param(e,t);try{var r=_n.crypto.Cipher.encrypt(e.plain,n,e.encalg,{iv:e.enciv})}catch(i){throw new Error("encrypt error: "+e.plain+" "+n+" "+e.encalg+" "+e.enciv)}e.enc=r},generatePBES2ASN1Param:function(e){var t={seq:[{seq:[{oid:"pkcs5PBES2"},{seq:[{seq:[{oid:"pkcs5PBKDF2"},{seq:[{octstr:{hex:e.salt}},{int:{hex:Ar(e.iter)}}]}]},{seq:[{oid:e.encalg},{octstr:{hex:e.enciv}}]}]}]},{octstr:{hex:e.enc}}]};return"hmacWithSHA1"!=e.prf&&t.seq[0].seq[1].seq[0].seq[1].seq.push({seq:[{oid:e.prf},{null:""}]}),t},parseHexOfEncryptedPKCS8:function(e){var t=xn,n=t.getChildIdx,r=t.getV,i={},a=n(e,0);if(2!=a.length)throw new Error("malformed format: SEQUENCE(0).items != 2: "+a.length);i.ciphertext=r(e,a[1]);var o=n(e,a[0]);if(2!=o.length)throw new Error("malformed format: SEQUENCE(0.0).items != 2: "+o.length);if("2a864886f70d01050d"!=r(e,o[0]))throw new Error("this only supports pkcs5PBES2");var s=n(e,o[1]);if(2!=o.length)throw new Error("malformed format: SEQUENCE(0.0.1).items != 2: "+s.length);var l=n(e,s[1]);if(2!=l.length)throw new Error("malformed format: SEQUENCE(0.0.1.1).items != 2: "+l.length);if("2a864886f70d0307"!=r(e,l[0]))throw"this only supports TripleDES";i.encryptionSchemeAlg="TripleDES",i.encryptionSchemeIV=r(e,l[1]);var c=n(e,s[0]);if(2!=c.length)throw new Error("malformed format: SEQUENCE(0.0.1.0).items != 2: "+c.length);if("2a864886f70d01050c"!=r(e,c[0]))throw new Error("this only supports pkcs5PBKDF2");var u=n(e,c[1]);if(u.length<2)throw new Error("malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+u.length);i.pbkdf2Salt=r(e,u[0]);var d=r(e,u[1]);try{i.pbkdf2Iter=parseInt(d,16)}catch(h){throw new Error("malformed format pbkdf2Iter: "+d)}return i},getPBKDF2KeyHexFromParam:function(e,t){var n=l.enc.Hex.parse(e.pbkdf2Salt),r=e.pbkdf2Iter,i=l.PBKDF2(t,n,{keySize:6,iterations:r}),a=l.enc.Hex.stringify(i);return a},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(e,t){var n=Qn(e,"ENCRYPTED PRIVATE KEY"),r=this.parseHexOfEncryptedPKCS8(n),i=Mr.getPBKDF2KeyHexFromParam(r,t),a={};a.ciphertext=l.enc.Hex.parse(r.ciphertext);var o=l.enc.Hex.parse(i),s=l.enc.Hex.parse(r.encryptionSchemeIV),c=l.TripleDES.decrypt(a,o,{iv:s}),u=l.enc.Hex.stringify(c);return u},parsePBES2:function(e){var t=xn.parse(e);if("pkcs5PBES2"!=Dr(t,"seq.0.seq.0.oid")||"pkcs5PBKDF2"!=Dr(t,"seq.0.seq.1.seq.0.seq.0.oid"))throw new Error("not pkcs5PBES2 and pkcs5PBKDF2 used");var n=Dr(t,"seq.0.seq.1.seq.0.seq.1.seq");if(void 0==n)throw new Error("PBKDF2 parameter not found");var r=Dr(n,"0.octstr.hex"),i=Dr(n,"1.int.hex"),a=Dr(n,"2.seq.0.oid","hmacWithSHA1"),o=-1;try{o=parseInt(i,16)}catch(d){throw new Error("iter not proper value")}var s=Dr(t,"seq.0.seq.1.seq.1.seq.0.oid"),l=Dr(t,"seq.0.seq.1.seq.1.seq.1.octstr.hex"),c=Dr(t,"seq.1.octstr.hex");if(void 0==s||void 0==l||void 0==c)throw new Error("encalg, enciv or enc is undefined");var u={salt:r,iter:o,prf:a,encalg:s,enciv:l,enc:c};return u},getDKFromPBES2Param:function(e,t){var n={hmacWithSHA1:l.algo.SHA1,hmacWithSHA224:l.algo.SHA224,hmacWithSHA256:l.algo.SHA256,hmacWithSHA384:l.algo.SHA384,hmacWithSHA512:l.algo.SHA512},r={"des-EDE3-CBC":6,"aes128-CBC":4,"aes256-CBC":8},i=n[e.prf];if(void 0==i)throw new Error("unsupported prf");var a=r[e.encalg];if(void 0==a)throw new Error("unsupported encalg");var o=l.enc.Hex.parse(e.salt),s=e.iter;try{var c=l.PBKDF2(t,o,{keySize:a,iterations:s,hasher:i});return l.enc.Hex.stringify(c)}catch(It){throw new Error("PBKDF2 error: "+It+" "+JSON.stringify(e)+" "+t)}},getPlainHexFromEncryptedPKCS8PEM:function(e,t){if(-1==e.indexOf("BEGIN ENCRYPTED PRIVATE KEY"))throw new Error("not Encrypted PKCS#8 PEM string");var n,r=Qn(e);try{n=Mr.parsePBES2(r)}catch(a){throw new Error("malformed PBES2 format: "+a.message)}var i=Mr.getDKFromPBES2Param(n,t);return _n.crypto.Cipher.decrypt(n.enc,i,n.encalg,{iv:n.enciv})},getKeyFromEncryptedPKCS8PEM:function(e,t){var n=this.getPlainHexFromEncryptedPKCS8PEM(e,t),r=this.getKeyFromPlainPrivatePKCS8Hex(n);return r},parsePlainPrivatePKCS8Hex:function(e){var t=xn,n=t.getChildIdx,r=t.getV,i={algparam:null};if("30"!=e.substr(0,2))throw new Error("malformed plain PKCS8 private key(code:001)");var a=n(e,0);if(a.length<3)throw new Error("malformed plain PKCS8 private key(code:002)");if("30"!=e.substr(a[1],2))throw new Error("malformed PKCS8 private key(code:003)");var o=n(e,a[1]);if(2!=o.length)throw new Error("malformed PKCS8 private key(code:004)");if("06"!=e.substr(o[0],2))throw new Error("malformed PKCS8 private key(code:005)");if(i.algoid=r(e,o[0]),"06"==e.substr(o[1],2)&&(i.algparam=r(e,o[1])),"04"!=e.substr(a[2],2))throw new Error("malformed PKCS8 private key(code:006)");return i.keyidx=t.getVidx(e,a[2]),i},getKeyFromPlainPrivatePKCS8PEM:function(e){var t=Qn(e,"PRIVATE KEY"),n=this.getKeyFromPlainPrivatePKCS8Hex(t);return n},getKeyFromPlainPrivatePKCS8Hex:function(e){var t,n=this.parsePlainPrivatePKCS8Hex(e);if("2a864886f70d010101"==n.algoid)t=new Ut;else if("2a8648ce380401"==n.algoid)t=new _n.crypto.DSA;else{if("2a8648ce3d0201"!=n.algoid)throw new Error("unsupported private key algorithm");t=new _n.crypto.ECDSA}return t.readPKCS8PrvKeyHex(e),t},_getKeyFromPublicPKCS8Hex:function(e){var t,n=xn.getVbyList(e,0,[0,0],"06");if("2a864886f70d010101"===n)t=new Ut;else if("2a8648ce380401"===n)t=new _n.crypto.DSA;else{if("2a8648ce3d0201"!==n)throw new Error("unsupported PKCS#8 public key hex");t=new _n.crypto.ECDSA}return t.readPKCS8PubKeyHex(e),t},parsePublicRawRSAKeyHex:function(e){var t=xn,n=t.getChildIdx,r=t.getV,i={};if("30"!=e.substr(0,2))throw new Error("malformed RSA key(code:001)");var a=n(e,0);if(2!=a.length)throw new Error("malformed RSA key(code:002)");if("02"!=e.substr(a[0],2))throw new Error("malformed RSA key(code:003)");if(i.n=r(e,a[0]),"02"!=e.substr(a[1],2))throw new Error("malformed RSA key(code:004)");return i.e=r(e,a[1]),i},parsePublicPKCS8Hex:function(e){var t=xn,n=t.getChildIdx,r=t.getV,i={algparam:null},a=n(e,0);if(2!=a.length)throw new Error("outer DERSequence shall have 2 elements: "+a.length);var o=a[0];if("30"!=e.substr(o,2))throw new Error("malformed PKCS8 public key(code:001)");var s=n(e,o);if(2!=s.length)throw new Error("malformed PKCS8 public key(code:002)");if("06"!=e.substr(s[0],2))throw new Error("malformed PKCS8 public key(code:003)");if(i.algoid=r(e,s[0]),"06"==e.substr(s[1],2)?i.algparam=r(e,s[1]):"30"==e.substr(s[1],2)&&(i.algparam={},i.algparam.p=t.getVbyList(e,s[1],[0],"02"),i.algparam.q=t.getVbyList(e,s[1],[1],"02"),i.algparam.g=t.getVbyList(e,s[1],[2],"02")),"03"!=e.substr(a[1],2))throw new Error("malformed PKCS8 public key(code:004)");return i.key=r(e,a[1]).substr(2),i}}}();Mr.getKey=function(e,t,n){var r=xn,i=r.getChildIdx,a=(r.getV,r.getVbyList),o=_n.crypto,s=o.ECDSA,l=o.DSA,c=Ut,u=Qn,d=Mr;if("undefined"!=typeof c&&e instanceof c)return e;if("undefined"!=typeof s&&e instanceof s)return e;if("undefined"!=typeof l&&e instanceof l)return e;if(void 0!==e.curve&&void 0!==e.xy&&void 0===e.d)return new s({pub:e.xy,curve:e.curve});if(void 0!==e.curve&&void 0!==e.d)return new s({prv:e.d,curve:e.curve});if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d){var h=new c;return h.setPublic(e.n,e.e),h}if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0!==e.p&&void 0!==e.q&&void 0!==e.dp&&void 0!==e.dq&&void 0!==e.co&&void 0===e.qi){h=new c;return h.setPrivateEx(e.n,e.e,e.d,e.p,e.q,e.dp,e.dq,e.co),h}if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0===e.p){h=new c;return h.setPrivate(e.n,e.e,e.d),h}if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0===e.x){h=new l;return h.setPublic(e.p,e.q,e.g,e.y),h}if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0!==e.x){h=new l;return h.setPrivate(e.p,e.q,e.g,e.y,e.x),h}if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d){h=new c;return h.setPublic(Mn(e.n),Mn(e.e)),h}if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0!==e.p&&void 0!==e.q&&void 0!==e.dp&&void 0!==e.dq&&void 0!==e.qi){h=new c;return h.setPrivateEx(Mn(e.n),Mn(e.e),Mn(e.d),Mn(e.p),Mn(e.q),Mn(e.dp),Mn(e.dq),Mn(e.qi)),h}if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d){h=new c;return h.setPrivate(Mn(e.n),Mn(e.e),Mn(e.d)),h}if("EC"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0===e.d){var p=new s({curve:e.crv}),f=p.ecparams.keycharlen,m=("0000000000"+Mn(e.x)).slice(-f),g=("0000000000"+Mn(e.y)).slice(-f),b="04"+m+g;return p.setPublicKeyHex(b),p}if("EC"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0!==e.d){p=new s({curve:e.crv}),f=p.ecparams.keycharlen,m=("0000000000"+Mn(e.x)).slice(-f),g=("0000000000"+Mn(e.y)).slice(-f),b="04"+m+g;var y=("0000000000"+Mn(e.d)).slice(-f);return p.setPublicKeyHex(b),p.setPrivateKeyHex(y),p}if("pkcs5prv"===n){var w,E=e;r=xn;if(w=i(E,0),9===w.length)h=new c,h.readPKCS5PrvKeyHex(E);else if(6===w.length)h=new l,h.readPKCS5PrvKeyHex(E);else{if(!(w.length>2&&"04"===E.substr(w[1],2)))throw new Error("unsupported PKCS#1/5 hexadecimal key");h=new s,h.readPKCS5PrvKeyHex(E)}return h}if("pkcs8prv"===n){h=d.getKeyFromPlainPrivatePKCS8Hex(e);return h}if("pkcs8pub"===n)return d._getKeyFromPublicPKCS8Hex(e);if("x509pub"===n)return Ur.getPublicKeyFromCertHex(e);if(-1!=e.indexOf("-END CERTIFICATE-",0)||-1!=e.indexOf("-END X509 CERTIFICATE-",0)||-1!=e.indexOf("-END TRUSTED CERTIFICATE-",0))return Ur.getPublicKeyFromCertPEM(e);if(-1!=e.indexOf("-END PUBLIC KEY-")){var _=Qn(e,"PUBLIC KEY");return d._getKeyFromPublicPKCS8Hex(_)}if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var S=u(e,"RSA PRIVATE KEY");return d.getKey(S,null,"pkcs5prv")}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var k=u(e,"DSA PRIVATE KEY"),x=a(k,0,[1],"02"),A=a(k,0,[2],"02"),N=a(k,0,[3],"02"),C=a(k,0,[4],"02"),T=a(k,0,[5],"02");h=new l;return h.setPrivate(new v(x,16),new v(A,16),new v(N,16),new v(C,16),new v(T,16)),h}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){S=u(e,"EC PRIVATE KEY");return d.getKey(S,null,"pkcs5prv")}if(-1!=e.indexOf("-END PRIVATE KEY-"))return d.getKeyFromPlainPrivatePKCS8PEM(e);if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var R=d.getDecryptedKeyHex(e,t),O=new Ut;return O.readPKCS5PrvKeyHex(R),O}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){k=d.getDecryptedKeyHex(e,t),h=a(k,0,[1],"04");var I=a(k,0,[2,0],"06"),L=a(k,0,[3,0],"03").substr(2),D="";if(void 0===_n.crypto.OID.oidhex2name[I])throw new Error("undefined OID(hex) in KJUR.crypto.OID: "+I);D=_n.crypto.OID.oidhex2name[I];p=new s({curve:D});return p.setPublicKeyHex(L),p.setPrivateKeyHex(h),p.isPublic=!1,p}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){k=d.getDecryptedKeyHex(e,t),x=a(k,0,[1],"02"),A=a(k,0,[2],"02"),N=a(k,0,[3],"02"),C=a(k,0,[4],"02"),T=a(k,0,[5],"02"),h=new l;return h.setPrivate(new v(x,16),new v(A,16),new v(N,16),new v(C,16),new v(T,16)),h}if(-1!=e.indexOf("-END ENCRYPTED PRIVATE KEY-"))return d.getKeyFromEncryptedPKCS8PEM(e,t);throw new Error("not supported argument")},Mr.generateKeypair=function(e,t){if("RSA"==e){var n=t,r=new Ut;r.generate(n,"10001"),r.isPrivate=!0,r.isPublic=!0;var i=new Ut,a=r.n.toString(16),o=r.e.toString(16);i.setPublic(a,o),i.isPrivate=!1,i.isPublic=!0;var s={};return s.prvKeyObj=r,s.pubKeyObj=i,s}if("EC"==e){var l=t,c=new _n.crypto.ECDSA({curve:l}),u=c.generateKeyPairHex();r=new _n.crypto.ECDSA({curve:l});r.setPublicKeyHex(u.ecpubhex),r.setPrivateKeyHex(u.ecprvhex),r.isPrivate=!0,r.isPublic=!1;i=new _n.crypto.ECDSA({curve:l});i.setPublicKeyHex(u.ecpubhex),i.isPrivate=!1,i.isPublic=!0;s={};return s.prvKeyObj=r,s.pubKeyObj=i,s}throw new Error("unknown algorithm: "+e)},Mr.getPEM=function(e,t,n,r,i,a){var o=_n,s=o.asn1,l=s.DERObjectIdentifier,c=s.DERInteger,u=s.ASN1Util.newObject,d=s.x509,h=d.SubjectPublicKeyInfo,p=o.crypto,f=p.DSA,m=p.ECDSA,g=Ut;function v(e){var t=u({seq:[{int:0},{int:{bigint:e.n}},{int:e.e},{int:{bigint:e.d}},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.dmp1}},{int:{bigint:e.dmq1}},{int:{bigint:e.coeff}}]});return t}function b(e){var t=u({seq:[{int:1},{octstr:{hex:e.prvKeyHex}},{tag:["a0",!0,{oid:{name:e.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]}]});return t}function y(e){var t=u({seq:[{int:0},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}},{int:{bigint:e.y}},{int:{bigint:e.x}}]});return t}if((void 0!==g&&e instanceof g||void 0!==f&&e instanceof f||void 0!==m&&e instanceof m)&&1==e.isPublic&&(void 0===t||"PKCS8PUB"==t)){var w=new h(e),E=w.tohex();return Yn(E,"PUBLIC KEY")}if("PKCS1PRV"==t&&void 0!==g&&e instanceof g&&(void 0===n||null==n)&&1==e.isPrivate){w=v(e),E=w.tohex();return Yn(E,"RSA PRIVATE KEY")}if("PKCS1PRV"==t&&void 0!==m&&e instanceof m&&(void 0===n||null==n)&&1==e.isPrivate){var _=new l({name:e.curveName}),S=_.tohex(),k=b(e),x=k.tohex(),A="";return A+=Yn(S,"EC PARAMETERS"),A+=Yn(x,"EC PRIVATE KEY"),A}if("PKCS1PRV"==t&&void 0!==f&&e instanceof f&&(void 0===n||null==n)&&1==e.isPrivate){w=y(e),E=w.tohex();return Yn(E,"DSA PRIVATE KEY")}if("PKCS5PRV"==t&&void 0!==g&&e instanceof g&&void 0!==n&&null!=n&&1==e.isPrivate){w=v(e),E=w.tohex();return void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",E,n,r,a)}if("PKCS5PRV"==t&&void 0!==m&&e instanceof m&&void 0!==n&&null!=n&&1==e.isPrivate){w=b(e),E=w.tohex();return void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",E,n,r,a)}if("PKCS5PRV"==t&&void 0!==f&&e instanceof f&&void 0!==n&&null!=n&&1==e.isPrivate){w=y(e),E=w.tohex();return void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",E,n,r,a)}var N=function(e,t){if("string"==typeof t)return Mr.getEncryptedPKCS8PEM(e,t);if("object"==typeof t&&void 0!=Dr(t,"passcode")){var n=JSON.parse(JSON.stringify(t)),r=n.passcode;return delete n.passcode,Mr.getEncryptedPKCS8PEM(e,r,n)}};if("PKCS8PRV"==t&&void 0!=g&&e instanceof g&&1==e.isPrivate){var C=v(e),T=C.tohex();w=u({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:T}}]}),E=w.tohex();return void 0===n||null==n?Yn(E,"PRIVATE KEY"):N(E,n)}if("PKCS8PRV"==t&&void 0!==m&&e instanceof m&&1==e.isPrivate){var R={seq:[{int:1},{octstr:{hex:e.prvKeyHex}}]};"string"==typeof e.pubKeyHex&&R.seq.push({tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]});C=new u(R),T=C.tohex(),w=u({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:e.curveName}}]},{octstr:{hex:T}}]}),E=w.tohex();return void 0===n||null==n?Yn(E,"PRIVATE KEY"):N(E,n)}if("PKCS8PRV"==t&&void 0!==f&&e instanceof f&&1==e.isPrivate){C=new c({bigint:e.x}),T=C.tohex(),w=u({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]}]},{octstr:{hex:T}}]}),E=w.tohex();return void 0===n||null==n?Yn(E,"PRIVATE KEY"):N(E,n)}throw new Error("unsupported object nor format")},Mr.getKeyFromCSRPEM=function(e){var t=Qn(e,"CERTIFICATE REQUEST"),n=Mr.getKeyFromCSRHex(t);return n},Mr.getKeyFromCSRHex=function(e){var t=Mr.parseCSRHex(e),n=Mr.getKey(t.p8pubkeyhex,null,"pkcs8pub");return n},Mr.parseCSRHex=function(e){var t=xn,n=t.getChildIdx,r=t.getTLV,i={},a=e;if("30"!=a.substr(0,2))throw new Error("malformed CSR(code:001)");var o=n(a,0);if(o.length<1)throw new Error("malformed CSR(code:002)");if("30"!=a.substr(o[0],2))throw new Error("malformed CSR(code:003)");var s=n(a,o[0]);if(s.length<3)throw new Error("malformed CSR(code:004)");return i.p8pubkeyhex=r(a,s[2]),i},Mr.getKeyID=function(e){var t=Mr,n=xn;"string"===typeof e&&-1!=e.indexOf("BEGIN ")&&(e=t.getKey(e));var r=Qn(t.getPEM(e)),i=n.getIdxbyList(r,0,[1]),a=n.getV(r,i).substring(2);return _n.crypto.Util.hashHex(a,"sha1")},Mr.getJWK=function(e,t,n,r,i){var a,o,s={},l=_n.crypto.Util.hashHex;if("string"==typeof e)a=Mr.getKey(e),-1!=e.indexOf("CERTIFICATE")&&(o=Qn(e));else{if("object"!=typeof e)throw new Error("unsupported keyinfo type");e instanceof Ur?(a=e.getPublicKey(),o=e.hex):a=e}if(a instanceof Ut&&a.isPrivate)s.kty="RSA",s.n=Pn(a.n.toString(16)),s.e=Pn(a.e.toString(16)),s.d=Pn(a.d.toString(16)),s.p=Pn(a.p.toString(16)),s.q=Pn(a.q.toString(16)),s.dp=Pn(a.dmp1.toString(16)),s.dq=Pn(a.dmq1.toString(16)),s.qi=Pn(a.coeff.toString(16));else if(a instanceof Ut&&a.isPublic)s.kty="RSA",s.n=Pn(a.n.toString(16)),s.e=Pn(a.e.toString(16));else if(a instanceof _n.crypto.ECDSA&&a.isPrivate){var c=a.getShortNISTPCurveName();if("P-256"!==c&&"P-384"!==c&&"P-521"!==c)throw new Error("unsupported curve name for JWT: "+c);var u=a.getPublicKeyXYHex();s.kty="EC",s.crv=c,s.x=Pn(u.x),s.y=Pn(u.y),s.d=Pn(a.prvKeyHex)}else if(a instanceof _n.crypto.ECDSA&&a.isPublic){c=a.getShortNISTPCurveName();if("P-256"!==c&&"P-384"!==c&&"P-521"!==c)throw new Error("unsupported curve name for JWT: "+c);u=a.getPublicKeyXYHex();s.kty="EC",s.crv=c,s.x=Pn(u.x),s.y=Pn(u.y)}if(void 0==s.kty)throw new Error("unsupported keyinfo");return a.isPrivate||1==t||(s.kid=_n.jws.JWS.getJWKthumbprint(s)),void 0!=o&&1!=n&&(s.x5c=[h(o)]),void 0!=o&&1!=r&&(s.x5t=Ln(h(l(o,"sha1")))),void 0!=o&&1!=i&&(s["x5t#S256"]=Ln(h(l(o,"sha256")))),s},Mr.getJWKFromKey=function(e){return Mr.getJWK(e,!0,!0,!0,!0)},Ut.getPosArrayOfChildrenFromHex=function(e){return xn.getChildIdx(e,0)},Ut.getHexValueArrayOfChildrenFromHex=function(e){var t=xn,n=t.getV,r=Ut.getPosArrayOfChildrenFromHex(e),i=n(e,r[0]),a=n(e,r[1]),o=n(e,r[2]),s=n(e,r[3]),l=n(e,r[4]),c=n(e,r[5]),u=n(e,r[6]),d=n(e,r[7]),h=n(e,r[8]);r=new Array;return r.push(i,a,o,s,l,c,u,d,h),r},Ut.prototype.readPrivateKeyFromPEMString=function(e){var t=Qn(e),n=Ut.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8])},Ut.prototype.readPKCS5PrvKeyHex=function(e){var t=Ut.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},Ut.prototype.readPKCS8PrvKeyHex=function(e){var t,n,r,i,a,o,s,l,c=xn,u=c.getVbyListEx;if(!1===c.isASN1HEX(e))throw new Error("not ASN.1 hex string");try{t=u(e,0,[2,0,1],"02"),n=u(e,0,[2,0,2],"02"),r=u(e,0,[2,0,3],"02"),i=u(e,0,[2,0,4],"02"),a=u(e,0,[2,0,5],"02"),o=u(e,0,[2,0,6],"02"),s=u(e,0,[2,0,7],"02"),l=u(e,0,[2,0,8],"02")}catch(d){throw new Error("malformed PKCS#8 plain RSA private key")}this.setPrivateEx(t,n,r,i,a,o,s,l)},Ut.prototype.readPKCS5PubKeyHex=function(e){var t=xn,n=t.getV;if(!1===t.isASN1HEX(e))throw new Error("keyHex is not ASN.1 hex string");var r=t.getChildIdx(e,0);if(2!==r.length||"02"!==e.substr(r[0],2)||"02"!==e.substr(r[1],2))throw new Error("wrong hex for PKCS#5 public key");var i=n(e,r[0]),a=n(e,r[1]);this.setPublic(i,a)},Ut.prototype.readPKCS8PubKeyHex=function(e){var t=xn;if(!1===t.isASN1HEX(e))throw new Error("not ASN.1 hex string");if("06092a864886f70d010101"!==t.getTLVbyListEx(e,0,[0,0]))throw new Error("not PKCS8 RSA public key");var n=t.getTLVbyListEx(e,0,[1,0]);this.readPKCS5PubKeyHex(n)},Ut.prototype.readCertPubKeyHex=function(e,t){var n,r;n=new Ur,n.readCertHex(e),r=n.getPublicKeyHex(),this.readPKCS8PubKeyHex(r)};function Br(e,t){for(var n="",r=t/4-e.length,i=0;i<r;i++)n+="0";return n+e}function Fr(e,t,n){var r="",i=0;while(r.length<t)r+=Kn(n(Hn(e+String.fromCharCode.apply(String,[(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i])))),i+=1;return r}function $r(e){for(var t in _n.crypto.Util.DIGESTINFOHEAD){var n=_n.crypto.Util.DIGESTINFOHEAD[t],r=n.length;if(e.substring(0,r)==n){var i=[t,e.substring(r)];return i}}return[]}function Ur(e){var t,n=xn,r=n.getChildIdx,i=n.getV,a=(n.dump,n.parse),o=n.getTLV,s=n.getVbyList,l=n.getVbyListEx,c=n.getTLVbyList,u=n.getTLVbyListEx,d=n.getIdxbyList,h=n.getIdxbyListEx,p=n.getVidx,f=n.getInt,m=n.oidname,g=n.hextooidstr,v=Qn,b=Error;try{t=_n.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV}catch(It){}this.HEX2STAG={"0c":"utf8",13:"prn",16:"ia5","1a":"vis","1e":"bmp"},this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){if(null===this.hex||0!==this.version)return this.version;var e=c(this.hex,0,[0,0]);if("a0"==e.substr(0,2)){var t=c(e,0,[0]),n=f(t,0);if(n<0||2<n)throw new Error("malformed version field");return this.version=n+1,this.version}return this.version=1,this.foffset=-1,1},this.getSerialNumberHex=function(){return l(this.hex,0,[0,0],"02")},this.getSignatureAlgorithmField=function(){var e=u(this.hex,0,[0,1]);return this.getAlgorithmIdentifierName(e)},this.getAlgorithmIdentifierName=function(e){for(var n in t)if(e===t[n])return n;return m(l(e,0,[0],"06"))},this.getIssuer=function(e,t){return this.getX500Name(this.getIssuerHex(),e,t)},this.getIssuerHex=function(){return c(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){var e=this.getIssuer();return e.str},this.getSubject=function(e,t){return this.getX500Name(this.getSubjectHex(),e,t)},this.getSubjectHex=function(){return c(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){var e=this.getSubject();return e.str},this.getNotBefore=function(){var e=s(this.hex,0,[0,4+this.foffset,0]);return e=e.replace(/(..)/g,"%$1"),e=decodeURIComponent(e),e},this.getNotAfter=function(){var e=s(this.hex,0,[0,4+this.foffset,1]);return e=e.replace(/(..)/g,"%$1"),e=decodeURIComponent(e),e},this.getPublicKeyHex=function(){return this.getSPKI()},this.getSPKI=function(){return c(this.hex,0,[0,6+this.foffset],"30")},this.getSPKIValue=function(){var e=this.getSPKI();return null==e?null:s(e,0,[1],"03",!0)},this.getPublicKeyIdx=function(){return d(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var e=this.getPublicKeyIdx();return d(this.hex,e,[1,0],"30")},this.getPublicKey=function(){return Mr.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){var e=c(this.hex,0,[1],"30");return this.getAlgorithmIdentifierName(e)},this.getSignatureValueHex=function(){return s(this.hex,0,[2],"03",!0)},this.verifySignature=function(e){var t=this.getSignatureAlgorithmField(),n=this.getSignatureValueHex(),r=c(this.hex,0,[0],"30"),i=new _n.crypto.Signature({alg:t});return i.init(e),i.updateHex(r),i.verify(n)},this.parseExt=function(e){var t,a,o;if(void 0===e){if(o=this.hex,3!==this.version)return-1;t=d(o,0,[0,7,0],"30"),a=r(o,t)}else{o=Qn(e);var l=d(o,0,[0,3,0,0],"06");if("2a864886f70d01090e"!=i(o,l))return void(this.aExtInfo=new Array);t=d(o,0,[0,3,0,1,0],"30"),a=r(o,t),this.hex=o}this.aExtInfo=new Array;for(var c=0;c<a.length;c++){var u={critical:!1},h=r(o,a[c]),f=0;3===h.length&&(u.critical=!0,f=1),u.oid=n.hextooidstr(s(o,a[c],[0],"06"));var m=d(o,a[c],[1+f]);u.vidx=p(o,m),this.aExtInfo.push(u)}},this.getExtInfo=function(e){var t=this.aExtInfo,n=e;if(e.match(/^[0-9.]+$/)||(n=_n.asn1.x509.OID.name2oid(e)),""!==n)for(var r=0;r<t.length;r++)if(t[r].oid===n)return t[r]},this.getCriticalExtV=function(e,t,n){if(void 0!=t)return[t,n];var r=this.getExtInfo(e);return void 0==r?[null,null]:[o(this.hex,r.vidx),r.critical]},this.getExtBasicConstraints=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("basicConstraints");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var r={extname:"basicConstraints"};if(t&&(r.critical=!0),"3000"===e)return r;if("30030101ff"===e)return r.cA=!0,r;if("30060101ff02"===e.substr(0,12)){var a=i(e,10),s=parseInt(a,16);return r.cA=!0,r.pathLen=s,r}throw new Error("hExtV parse error: "+e)},this.getExtNameConstraints=function(e,t){var n=this.getCriticalExtV("nameConstraints",e,t);if(e=n[0],t=n[1],null!=e){var i={extname:"nameConstraints"};t&&(i.critical=!0);for(var a=r(e,0),s=0;s<a.length;s++){for(var l=[],c=r(e,a[s]),u=0;u<c.length;u++){var d=o(e,c[u]),h=this.getGeneralSubtree(d);l.push(h)}var p=e.substr(a[s],2);"a0"==p?i.permit=l:"a1"==p&&(i.exclude=l)}return i}},this.getGeneralSubtree=function(e){var t=r(e,0),n=t.length;if(n<1||2<n)throw new Error("wrong num elements");for(var a=this.getGeneralName(o(e,t[0])),s=1;s<n;s++){var l=e.substr(t[s],2),c=i(e,t[s]),u=parseInt(c,16);"80"==l&&(a.min=u),"81"==l&&(a.max=u)}return a},this.getExtKeyUsage=function(e,t){var n=this.getCriticalExtV("keyUsage",e,t);if(e=n[0],t=n[1],null!=e){var r={extname:"keyUsage"};return t&&(r.critical=!0),r.names=this.getExtKeyUsageString(e).split(","),r}},this.getExtKeyUsageBin=function(e){if(void 0===e){var t=this.getExtInfo("keyUsage");if(void 0===t)return"";e=o(this.hex,t.vidx)}if(8!=e.length&&10!=e.length)throw new Error("malformed key usage value: "+e);var n="000000000000000"+parseInt(e.substr(6),16).toString(2);return 8==e.length&&(n=n.slice(-8)),10==e.length&&(n=n.slice(-16)),n=n.replace(/0+$/,""),""==n&&(n="0"),n},this.getExtKeyUsageString=function(e){for(var t=this.getExtKeyUsageBin(e),n=new Array,r=0;r<t.length;r++)"1"==t.substr(r,1)&&n.push(Ur.KEYUSAGE_NAME[r]);return n.join(",")},this.getExtSubjectKeyIdentifier=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("subjectKeyIdentifier");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var r={extname:"subjectKeyIdentifier"};t&&(r.critical=!0);var a=i(e,0);return r.kid={hex:a},r},this.getExtAuthorityKeyIdentifier=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("authorityKeyIdentifier");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var a={extname:"authorityKeyIdentifier"};t&&(a.critical=!0);for(var s=r(e,0),l=0;l<s.length;l++){var c=e.substr(s[l],2);if("80"===c&&(a.kid={hex:i(e,s[l])}),"a1"===c){var u=o(e,s[l]),d=this.getGeneralNames(u);a.issuer=d[0]["dn"]}"82"===c&&(a.sn={hex:i(e,s[l])})}return a},this.getExtExtKeyUsage=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("extKeyUsage");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var a={extname:"extKeyUsage",array:[]};t&&(a.critical=!0);for(var s=r(e,0),l=0;l<s.length;l++)a.array.push(m(i(e,s[l])));return a},this.getExtExtKeyUsageName=function(){var e=this.getExtInfo("extKeyUsage");if(void 0===e)return e;var t=new Array,n=o(this.hex,e.vidx);if(""===n)return t;for(var a=r(n,0),s=0;s<a.length;s++)t.push(m(i(n,a[s])));return t},this.getExtSubjectAltName=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("subjectAltName");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var r={extname:"subjectAltName",array:[]};return t&&(r.critical=!0),r.array=this.getGeneralNames(e),r},this.getExtIssuerAltName=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("issuerAltName");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var r={extname:"issuerAltName",array:[]};return t&&(r.critical=!0),r.array=this.getGeneralNames(e),r},this.getGeneralNames=function(e){for(var t=r(e,0),n=[],i=0;i<t.length;i++){var a=this.getGeneralName(o(e,t[i]));void 0!==a&&n.push(a)}return n},this.getGeneralName=function(e){var t=e.substr(0,2),n=i(e,0),r=Kn(n);return"81"==t?{rfc822:r}:"82"==t?{dns:r}:"86"==t?{uri:r}:"87"==t?{ip:dr(n)}:"a4"==t?{dn:this.getX500Name(n)}:"a0"==t?{other:this.getOtherName(e)}:void 0},this.getExtSubjectAltName2=function(){var e,t,n,a=this.getExtInfo("subjectAltName");if(void 0===a)return a;for(var s=new Array,l=o(this.hex,a.vidx),c=r(l,0),u=0;u<c.length;u++)n=l.substr(c[u],2),e=i(l,c[u]),"81"===n&&(t=Un(e),s.push(["MAIL",t])),"82"===n&&(t=Un(e),s.push(["DNS",t])),"84"===n&&(t=Ur.hex2dn(e,0),s.push(["DN",t])),"86"===n&&(t=Un(e),s.push(["URI",t])),"87"===n&&(t=dr(e),s.push(["IP",t]));return s},this.getExtCRLDistributionPoints=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("cRLDistributionPoints");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var i={extname:"cRLDistributionPoints",array:[]};t&&(i.critical=!0);for(var a=r(e,0),s=0;s<a.length;s++){var l=o(e,a[s]);i.array.push(this.getDistributionPoint(l))}return i},this.getDistributionPoint=function(e){for(var t={},n=r(e,0),i=0;i<n.length;i++){var a=e.substr(n[i],2),s=o(e,n[i]);"a0"==a&&(t.dpname=this.getDistributionPointName(s))}return t},this.getDistributionPointName=function(e){for(var t={},n=r(e,0),i=0;i<n.length;i++){var a=e.substr(n[i],2),s=o(e,n[i]);"a0"==a&&(t.full=this.getGeneralNames(s))}return t},this.getExtCRLDistributionPointsURI=function(){var e=this.getExtCRLDistributionPoints();if(void 0==e)return e;for(var t=e.array,n=[],r=0;r<t.length;r++)try{void 0!=t[r].dpname.full[0].uri&&n.push(t[r].dpname.full[0].uri)}catch(i){}return n},this.getExtAIAInfo=function(){var e=this.getExtInfo("authorityInfoAccess");if(void 0===e)return e;for(var t={ocsp:[],caissuer:[]},n=r(this.hex,e.vidx),i=0;i<n.length;i++){var a=s(this.hex,n[i],[0],"06"),o=s(this.hex,n[i],[1],"86");"2b06010505073001"===a&&t.ocsp.push(Un(o)),"2b06010505073002"===a&&t.caissuer.push(Un(o))}return t},this.getExtAuthorityInfoAccess=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("authorityInfoAccess");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var i={extname:"authorityInfoAccess",array:[]};t&&(i.critical=!0);for(var a=r(e,0),c=0;c<a.length;c++){var u=l(e,a[c],[0],"06"),d=s(e,a[c],[1],"86"),h=Un(d);if("2b06010505073001"==u)i.array.push({ocsp:h});else{if("2b06010505073002"!=u)throw new Error("unknown method: "+u);i.array.push({caissuer:h})}}return i},this.getExtCertificatePolicies=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("certificatePolicies");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var i={extname:"certificatePolicies",array:[]};t&&(i.critical=!0);for(var a=r(e,0),s=0;s<a.length;s++){var l=o(e,a[s]),c=this.getPolicyInformation(l);i.array.push(c)}return i},this.getPolicyInformation=function(e){var t={},n=s(e,0,[0],"06");t.policyoid=m(n);var i=h(e,0,[1],"30");if(-1!=i){t.array=[];for(var a=r(e,i),l=0;l<a.length;l++){var c=o(e,a[l]),u=this.getPolicyQualifierInfo(c);t.array.push(u)}}return t},this.getOtherName=function(e){var t={},n=r(e,0),i=s(e,n[0],[],"06"),o=s(e,n[1],[]);return t.oid=m(i),t.value=a(o),t},this.getPolicyQualifierInfo=function(e){var t={},n=s(e,0,[0],"06");if("2b06010505070201"===n){var r=l(e,0,[1],"16");t.cps=Kn(r)}else if("2b06010505070202"===n){var i=c(e,0,[1],"30");t.unotice=this.getUserNotice(i)}return t},this.getUserNotice=function(e){var t=null;try{t=n.parse(e);var r=this._asn1ToUnotice(t);return r}catch(i){return}},this._asn1ToUnotice=function(e){try{for(var t={},n=Dr(e,"seq"),r=0;r<n.length;r++){var i=this._asn1ToNoticeRef(n[r]);void 0!=i&&(t.noticeref=i);var a=this.asn1ToDisplayText(n[r]);void 0!=a&&(t.exptext=a)}return Object.keys(t).length>0?t:void 0}catch(o){return}},this._asn1ToNoticeRef=function(e){try{for(var t={},n=Dr(e,"seq"),r=0;r<n.length;r++){var i=this._asn1ToNoticeNum(n[r]);void 0!=i&&(t.noticenum=i);var a=this.asn1ToDisplayText(n[r]);void 0!=a&&(t.org=a)}return Object.keys(t).length>0?t:void 0}catch(o){return}},this._asn1ToNoticeNum=function(e){try{for(var t=Dr(e,"seq"),n=[],r=0;r<t.length;r++){var i=t[r];n.push(parseInt(Dr(i,"int.hex"),16))}return n}catch(a){return}},this.getDisplayText=function(e){var t={"0c":"utf8",16:"ia5","1a":"vis","1e":"bmp"},n={};return n.type=t[e.substr(0,2)],n.str=Kn(i(e,0)),n},this.asn1ToDisplayText=function(e){return void 0!=e.utf8str?{type:"utf8",str:e.utf8str.str}:void 0!=e.ia5str?{type:"ia5",str:e.ia5str.str}:void 0!=e.visstr?{type:"vis",str:e.visstr.str}:void 0!=e.bmpstr?{type:"bmp",str:e.bmpstr.str}:void 0!=e.prnstr?{type:"prn",str:e.prnstr.str}:void 0},this.getExtPolicyMappings=function(e,t){var n=this.getCriticalExtV("policyMappings",e,t);if(e=n[0],t=n[1],null!=e){var r={extname:"policyMappings"};t&&(r.critical=!0);try{for(var i=a(e),o=i.seq,s=[],l=0;l<o.length;l++){var c=o[l].seq;s.push([c[0].oid,c[1].oid])}r.array=s}catch(u){throw new b("malformed policyMappings")}return r}},this.getExtPolicyConstraints=function(e,t){var n=this.getCriticalExtV("policyConstraints",e,t);if(e=n[0],t=n[1],null!=e){var r={extname:"policyConstraints"};t&&(r.critical=!0);var i=a(e);try{for(var o=i.seq,s=0;s<o.length;s++){var l=o[s].tag;0==l.explicit&&("80"==l.tag&&(r.reqexp=parseInt(l.hex,16)),"81"==l.tag&&(r.inhibit=parseInt(l.hex,16)))}}catch(c){return new b("malformed policyConstraints value")}return r}},this.getExtInhibitAnyPolicy=function(e,t){var n=this.getCriticalExtV("inhibitAnyPolicy",e,t);if(e=n[0],t=n[1],null!=e){var r={extname:"inhibitAnyPolicy"};t&&(r.critical=!0);var i=f(e,0);return-1==i?new b("wrong value"):(r.skip=i,r)}},this.getExtCRLNumber=function(e,t){var n={extname:"cRLNumber"};if(t&&(n.critical=!0),"02"==e.substr(0,2))return n.num={hex:i(e,0)},n;throw new b("hExtV parse error: "+e)},this.getExtCRLReason=function(e,t){var n={extname:"cRLReason"};if(t&&(n.critical=!0),"0a"==e.substr(0,2))return n.code=parseInt(i(e,0),16),n;throw new Error("hExtV parse error: "+e)},this.getExtOcspNonce=function(e,t){var n={extname:"ocspNonce"};t&&(n.critical=!0);var r=i(e,0);return n.hex=r,n},this.getExtOcspNoCheck=function(e,t){var n={extname:"ocspNoCheck"};return t&&(n.critical=!0),n},this.getExtAdobeTimeStamp=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("adobeTimeStamp");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var i={extname:"adobeTimeStamp"};t&&(i.critical=!0);var a=r(e,0);if(a.length>1){var s=o(e,a[1]),l=this.getGeneralName(s);void 0!=l.uri&&(i.uri=l.uri)}if(a.length>2){var c=o(e,a[2]);"0101ff"==c&&(i.reqauth=!0),"010100"==c&&(i.reqauth=!1)}return i},this.getExtSubjectDirectoryAttributes=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("subjectDirectoryAttributes");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var r={extname:"subjectDirectoryAttributes"};t&&(r.critical=!0);try{for(var i=a(e),s=[],l=0;l<i.seq.length;l++){var c=i.seq[l],u=Dr(c,"seq.0.oid"),d=Dr(c,"seq.1.set");if(void 0==u||void 0==d)throw"error";s.push({attr:u,array:d})}return r.array=s,r}catch(h){throw new Error("malformed subjectDirectoryAttributes extension value")}};var y=function(e){var t={};try{var n=e.seq[0].oid,r=_n.asn1.x509.OID.name2oid(n);t.type=_n.asn1.x509.OID.oid2atype(r);var i=e.seq[1];if(void 0!=i.utf8str)t.ds="utf8",t.value=i.utf8str.str;else if(void 0!=i.numstr)t.ds="num",t.value=i.numstr.str;else if(void 0!=i.telstr)t.ds="tel",t.value=i.telstr.str;else if(void 0!=i.prnstr)t.ds="prn",t.value=i.prnstr.str;else if(void 0!=i.ia5str)t.ds="ia5",t.value=i.ia5str.str;else if(void 0!=i.visstr)t.ds="vis",t.value=i.visstr.str;else{if(void 0==i.bmpstr)throw"error";t.ds="bmp",t.value=i.bmpstr.str}return t}catch(a){throw new Erorr("improper ASN.1 parsed AttrTypeAndValue")}},w=function(e){try{return e.set.map((function(e){return y(e)}))}catch(Pt){throw new Error("improper ASN.1 parsed RDN: "+Pt)}},E=function(e){try{return e.seq.map((function(e){return w(e)}))}catch(Pt){throw new Error("improper ASN.1 parsed X500Name: "+Pt)}};this.getX500NameRule=function(e){for(var t=null,n=[],r=0;r<e.length;r++)for(var i=e[r],a=0;a<i.length;a++)n.push(i[a]);for(r=0;r<n.length;r++){var o=n[r],s=o.ds,l=o.value,c=o.type;if("prn"!=s&&"utf8"!=s&&"ia5"!=s)return"mixed";if("ia5"==s){if("CN"!=c)return"mixed";if(_n.lang.String.isMail(l))continue;return"mixed"}if("C"==c){if("prn"==s)continue;return"mixed"}if(null==t)t=s;else if(t!==s)return"mixed"}return null==t?"prn":t},this.getAttrTypeAndValue=function(e){var t=a(e);return y(t)},this.getRDN=function(e){var t=a(e);return w(t)},this.getX500NameArray=function(e){var t=a(e);return E(t)},this.getX500Name=function(e,t,n){var r=this.getX500NameArray(e),i=this.dnarraytostr(r),a={str:i};return a.array=r,1==n&&(a.hex=e),1==t&&(a.canon=this.c14nRDNArray(r)),a},this.readCertPEM=function(e){this.readCertHex(v(e))},this.readCertHex=function(e){this.hex=e,this.getVersion();try{d(this.hex,0,[0,7],"a3"),this.parseExt()}catch(t){}},this.getParam=function(e){var t={};return void 0==e&&(e={}),t.version=this.getVersion(),t.serial={hex:this.getSerialNumberHex()},t.sigalg=this.getSignatureAlgorithmField(),t.issuer=this.getIssuer(e.dncanon,e.dnhex),t.notbefore=this.getNotBefore(),t.notafter=this.getNotAfter(),t.subject=this.getSubject(e.dncanon,e.dnhex),t.sbjpubkey=Yn(this.getPublicKeyHex(),"PUBLIC KEY"),void 0!=this.aExtInfo&&this.aExtInfo.length>0&&(t.ext=this.getExtParamArray()),t.sighex=this.getSignatureValueHex(),1==e.tbshex&&(t.tbshex=c(this.hex,0,[0])),1==e.nodnarray&&(delete t.issuer.array,delete t.subject.array),t},this.getExtParamArray=function(e){if(void 0==e){var t=h(this.hex,0,[0,"[3]"]);-1!=t&&(e=u(this.hex,0,[0,"[3]",0],"30"))}for(var n=[],i=r(e,0),a=0;a<i.length;a++){var s=o(e,i[a]),l=this.getExtParam(s);null!=l&&n.push(l)}return n},this.getExtParam=function(e){var t=r(e,0),n=t.length;if(2!=n&&3!=n)throw new Error("wrong number elements in Extension: "+n+" "+e);var i=g(s(e,0,[0],"06")),o=!1;3==n&&"0101ff"==c(e,0,[1])&&(o=!0);var l=c(e,0,[n-1,0]),u=void 0;if("2.5.29.14"==i?u=this.getExtSubjectKeyIdentifier(l,o):"2.5.29.15"==i?u=this.getExtKeyUsage(l,o):"2.5.29.17"==i?u=this.getExtSubjectAltName(l,o):"2.5.29.18"==i?u=this.getExtIssuerAltName(l,o):"2.5.29.19"==i?u=this.getExtBasicConstraints(l,o):"2.5.29.30"==i?u=this.getExtNameConstraints(l,o):"2.5.29.31"==i?u=this.getExtCRLDistributionPoints(l,o):"2.5.29.32"==i?u=this.getExtCertificatePolicies(l,o):"2.5.29.33"==i?u=this.getExtPolicyMappings(l,o):"2.5.29.35"==i?u=this.getExtAuthorityKeyIdentifier(l,o):"2.5.29.36"==i?u=this.getExtPolicyConstraints(l,o):"2.5.29.37"==i?u=this.getExtExtKeyUsage(l,o):"2.5.29.54"==i?u=this.getExtInhibitAnyPolicy(l,o):"1.3.6.1.5.5.7.1.1"==i?u=this.getExtAuthorityInfoAccess(l,o):"2.5.29.20"==i?u=this.getExtCRLNumber(l,o):"2.5.29.21"==i?u=this.getExtCRLReason(l,o):"2.5.29.9"==i?u=this.getExtSubjectDirectoryAttributes(l,o):"1.3.6.1.5.5.7.48.1.2"==i?u=this.getExtOcspNonce(l,o):"1.3.6.1.5.5.7.48.1.5"==i?u=this.getExtOcspNoCheck(l,o):"1.2.840.113583.1.1.9.1"==i?u=this.getExtAdobeTimeStamp(l,o):void 0!=Ur.EXT_PARSER[i]&&(u=Ur.EXT_PARSER[i](i,o,l)),void 0!=u)return u;var d={extname:i,extn:l};try{d.extn=a(l)}catch(h){}return o&&(d.critical=!0),d},this.findExt=function(e,t){for(var n=0;n<e.length;n++)if(e[n].extname==t)return e[n];return null},this.updateExtCDPFullURI=function(e,t){var n=this.findExt(e,"cRLDistributionPoints");if(null!=n&&void 0!=n.array)for(var r=n.array,i=0;i<r.length;i++)if(void 0!=r[i].dpname&&void 0!=r[i].dpname.full)for(var a=r[i].dpname.full,o=0;o<a.length;o++){var s=a[i];void 0!=s.uri&&(s.uri=t)}},this.updateExtAIAOCSP=function(e,t){var n=this.findExt(e,"authorityInfoAccess");if(null!=n&&void 0!=n.array)for(var r=n.array,i=0;i<r.length;i++)void 0!=r[i].ocsp&&(r[i].ocsp=t)},this.updateExtAIACAIssuer=function(e,t){var n=this.findExt(e,"authorityInfoAccess");if(null!=n&&void 0!=n.array)for(var r=n.array,i=0;i<r.length;i++)void 0!=r[i].caissuer&&(r[i].caissuer=t)},this.dnarraytostr=function(e){function t(e){return e.map((function(e){return n(e).replace(/\+/,"\\+")})).join("+")}function n(e){return e.type+"="+e.value}return"/"+e.map((function(e){return t(e).replace(/\//,"\\/")})).join("/")},this.setCanonicalizedDN=function(e){var t;if(void 0!=e.str&&void 0==e.array){var n=new _n.asn1.x509.X500Name({str:e.str}),r=n.tohex();t=this.getX500NameArray(r)}else t=e.array;void 0==e.canon&&(e.canon=this.c14nRDNArray(t))},this.c14nRDNArray=function(e){for(var t=[],n=0;n<e.length;n++){for(var r=e[n],i=[],a=0;a<r.length;a++){var o=r[a],s=o.value;s=s.replace(/^\s*/,""),s=s.replace(/\s*$/,""),s=s.replace(/\s+/g," "),s=s.toLowerCase(),i.push(o.type.toLowerCase()+"="+s)}t.push(i.join("+"))}return"/"+t.join("/")},this.getInfo=function(){var e,t,n,r=function(e){for(var t="",n=" ",r="\n",i=e.array,a=0;a<i.length;a++){var o=i[a];if(void 0!=o.dn&&(t+=n+"dn: "+o.dn.str+r),void 0!=o.ip&&(t+=n+"ip: "+o.ip+r),void 0!=o.rfc822&&(t+=n+"rfc822: "+o.rfc822+r),void 0!=o.dns&&(t+=n+"dns: "+o.dns+r),void 0!=o.uri&&(t+=n+"uri: "+o.uri+r),void 0!=o.other){var s=o.other.oid,l=JSON.stringify(o.other.value).replace(/\"/g,"");t+=n+"other: "+s+"="+l+r}}return t=t.replace(/\n$/,""),t},i=function(e){for(var t="",n=e.array,r=0;r<n.length;r++){var i=n[r];if(t+=" policy oid: "+i.policyoid+"\n",void 0!==i.array)for(var a=0;a<i.array.length;a++){var o=i.array[a];void 0!==o.cps&&(t+=" cps: "+o.cps+"\n")}}return t},a=function(e){for(var t="",n=e.array,r=0;r<n.length;r++){var i=n[r];try{void 0!==i.dpname.full[0].uri&&(t+=" "+i.dpname.full[0].uri+"\n")}catch(a){}try{void 0!==i.dname.full[0].dn.hex&&(t+=" "+Ur.hex2dn(i.dpname.full[0].dn.hex)+"\n")}catch(a){}}return t},o=function(e){for(var t="",n=e.array,r=0;r<n.length;r++){var i=n[r];void 0!==i.caissuer&&(t+=" caissuer: "+i.caissuer+"\n"),void 0!==i.ocsp&&(t+=" ocsp: "+i.ocsp+"\n")}return t};if(e="Basic Fields\n",e+=" serial number: "+this.getSerialNumberHex()+"\n",e+=" signature algorithm: "+this.getSignatureAlgorithmField()+"\n",e+=" issuer: "+this.getIssuerString()+"\n",e+=" notBefore: "+this.getNotBefore()+"\n",e+=" notAfter: "+this.getNotAfter()+"\n",e+=" subject: "+this.getSubjectString()+"\n",e+=" subject public key info: \n",t=this.getPublicKey(),e+=" key algorithm: "+t.type+"\n","RSA"===t.type&&(e+=" n="+Er(t.n.toString(16)).substr(0,16)+"...\n",e+=" e="+Er(t.e.toString(16))+"\n"),n=this.aExtInfo,void 0!==n&&null!==n){e+="X509v3 Extensions:\n";for(var s=0;s<n.length;s++){var l=n[s],c=_n.asn1.x509.OID.oid2name(l.oid);""===c&&(c=l.oid);var u="";if(!0===l.critical&&(u="CRITICAL"),e+=" "+c+" "+u+":\n","basicConstraints"===c){var d=this.getExtBasicConstraints();void 0===d.cA?e+=" {}\n":(e+=" cA=true",void 0!==d.pathLen&&(e+=", pathLen="+d.pathLen),e+="\n")}else if("policyMappings"==c){var h=this.getExtPolicyMappings().array,p=h.map((function(e){var t=e;return t[0]+":"+t[1]})).join(", ");e+=" "+p+"\n"}else if("policyConstraints"==c){var f=this.getExtPolicyConstraints();e+=" ",void 0!=f.reqexp&&(e+=" reqexp="+f.reqexp),void 0!=f.inhibit&&(e+=" inhibit="+f.inhibit),e+="\n"}else if("inhibitAnyPolicy"==c){f=this.getExtInhibitAnyPolicy();e+=" skip="+f.skip+"\n"}else if("keyUsage"==c)e+=" "+this.getExtKeyUsageString()+"\n";else if("subjectKeyIdentifier"==c)e+=" "+this.getExtSubjectKeyIdentifier().kid.hex+"\n";else if("authorityKeyIdentifier"==c){var m=this.getExtAuthorityKeyIdentifier();void 0!==m.kid&&(e+=" kid="+m.kid.hex+"\n")}else if("extKeyUsage"==c){var g=this.getExtExtKeyUsage().array;e+=" "+g.join(", ")+"\n"}else if("subjectAltName"==c){var v=r(this.getExtSubjectAltName());e+=v+"\n"}else if("cRLDistributionPoints"==c){var b=this.getExtCRLDistributionPoints();e+=a(b)}else if("authorityInfoAccess"==c){var y=this.getExtAuthorityInfoAccess();e+=o(y)}else"certificatePolicies"==c&&(e+=i(this.getExtCertificatePolicies()))}}return e+="signature algorithm: "+this.getSignatureAlgorithmName()+"\n",e+="signature: "+this.getSignatureValueHex().substr(0,16)+"...\n",e},"string"==typeof e&&(-1!=e.indexOf("-----BEGIN")?this.readCertPEM(e):_n.lang.String.isHex(e)&&this.readCertHex(e))}Ut.prototype.sign=function(e,t){var n=function(e){return _n.crypto.Util.hashString(e,t)},r=n(e);return this.signWithMessageHash(r,t)},Ut.prototype.signWithMessageHash=function(e,t){var n=_n.crypto.Util.getPaddedDigestInfoHex(e,t,this.n.bitLength()),r=$t(n,16),i=this.doPrivate(r),a=i.toString(16);return Br(a,this.n.bitLength())},Ut.prototype.signPSS=function(e,t,n){var r=function(e){return _n.crypto.Util.hashHex(e,t)},i=r(Hn(e));return void 0===n&&(n=-1),this.signWithMessageHashPSS(i,t,n)},Ut.prototype.signWithMessageHashPSS=function(e,t,n){var r,i=Kn(e),a=i.length,o=this.n.bitLength()-1,s=Math.ceil(o/8),l=function(e){return _n.crypto.Util.hashHex(e,t)};if(-1===n||void 0===n)n=a;else if(-2===n)n=s-a-2;else if(n<-2)throw new Error("invalid salt length");if(s<a+n+2)throw new Error("data too long");var c="";n>0&&(c=new Array(n),(new Ft).nextBytes(c),c=String.fromCharCode.apply(String,c));var u=Kn(l(Hn("\0\0\0\0\0\0\0\0"+i+c))),d=[];for(r=0;r<s-n-a-2;r+=1)d[r]=0;var h=String.fromCharCode.apply(String,d)+""+c,p=Fr(u,h.length,l),f=[];for(r=0;r<h.length;r+=1)f[r]=h.charCodeAt(r)^p.charCodeAt(r);var m=65280>>8*s-o&255;for(f[0]&=~m,r=0;r<a;r++)f.push(u.charCodeAt(r));return f.push(188),Br(this.doPrivate(new v(f)).toString(16),this.n.bitLength())},Ut.prototype.verify=function(e,t){if(t=t.toLowerCase(),null==t.match(/^[0-9a-f]+$/))return!1;var n=$t(t,16),r=this.n.bitLength();if(n.bitLength()>r)return!1;var i=this.doPublic(n),a=i.toString(16);if(a.length+3!=r/4)return!1;var o=a.replace(/^1f+00/,""),s=$r(o);if(0==s.length)return!1;var l=s[0],c=s[1],u=function(e){return _n.crypto.Util.hashString(e,l)},d=u(e);return c==d},Ut.prototype.verifyWithMessageHash=function(e,t){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var n=$t(t,16);if(n.bitLength()>this.n.bitLength())return 0;var r=this.doPublic(n),i=r.toString(16).replace(/^1f+00/,""),a=$r(i);if(0==a.length)return!1;a[0];var o=a[1];return o==e},Ut.prototype.verifyPSS=function(e,t,n,r){var i=function(e){return _n.crypto.Util.hashHex(e,n)},a=i(Hn(e));return void 0===r&&(r=-1),this.verifyWithMessageHashPSS(a,t,n,r)},Ut.prototype.verifyWithMessageHashPSS=function(e,t,n,r){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var i,a=new v(t,16),o=function(e){return _n.crypto.Util.hashHex(e,n)},s=Kn(e),l=s.length,c=this.n.bitLength()-1,u=Math.ceil(c/8);if(-1===r||void 0===r)r=l;else if(-2===r)r=u-l-2;else if(r<-2)throw new Error("invalid salt length");if(u<l+r+2)throw new Error("data too long");var d=this.doPublic(a).toByteArray();for(i=0;i<d.length;i+=1)d[i]&=255;while(d.length<u)d.unshift(0);if(188!==d[u-1])throw new Error("encoded message does not end in 0xbc");d=String.fromCharCode.apply(String,d);var h=d.substr(0,u-l-1),p=d.substr(h.length,l),f=65280>>8*u-c&255;if(0!==(h.charCodeAt(0)&f))throw new Error("bits beyond keysize not zero");var m=Fr(p,h.length,o),g=[];for(i=0;i<h.length;i+=1)g[i]=h.charCodeAt(i)^m.charCodeAt(i);g[0]&=~f;var b=u-l-r-2;for(i=0;i<b;i+=1)if(0!==g[i])throw new Error("leftmost octets not zero");if(1!==g[b])throw new Error("0x01 marker not found");return p===Kn(o(Hn("\0\0\0\0\0\0\0\0"+s+String.fromCharCode.apply(String,g.slice(-r)))))},Ut.SALT_LEN_HLEN=-1,Ut.SALT_LEN_MAX=-2,Ut.SALT_LEN_RECOVER=-2,Ur.EXT_PARSER={},Ur.registExtParser=function(e,t){Ur.EXT_PARSER[e]=t},Ur.hex2dn=function(e,t){void 0===t&&(t=0);var n=new Ur,r=(xn.getTLV(e,t),n.getX500Name(e));return r.str},Ur.hex2rdn=function(e,t){if(void 0===t&&(t=0),"31"!==e.substr(t,2))throw new Error("malformed RDN");for(var n=new Array,r=xn.getChildIdx(e,t),i=0;i<r.length;i++)n.push(Ur.hex2attrTypeValue(e,r[i]));return n=n.map((function(e){return e.replace("+","\\+")})),n.join("+")},Ur.hex2attrTypeValue=function(e,t){var n=xn,r=n.getV;if(void 0===t&&(t=0),"30"!==e.substr(t,2))throw new Error("malformed attribute type and value");var i=n.getChildIdx(e,t);2!==i.length||e.substr(i[0],2);var a=r(e,i[0]),o=_n.asn1.ASN1Util.oidHexToInt(a),s=_n.asn1.x509.OID.oid2atype(o),l=r(e,i[1]),c=Kn(l);return s+"="+c},Ur.getPublicKeyFromCertHex=function(e){var t=new Ur;return t.readCertHex(e),t.getPublicKey()},Ur.getPublicKeyFromCertPEM=function(e){var t=new Ur;return t.readCertPEM(e),t.getPublicKey()},Ur.getPublicKeyInfoPropOfCertPEM=function(e){var t,n,r=xn,i=r.getVbyList,a={};return a.algparam=null,t=new Ur,t.readCertPEM(e),n=t.getPublicKeyHex(),a.keyhex=i(n,0,[1],"03").substr(2),a.algoid=i(n,0,[0,0],"06"),"2a8648ce3d0201"===a.algoid&&(a.algparam=i(n,0,[0,1],"06")),a},Ur.KEYUSAGE_NAME=["digitalSignature","nonRepudiation","keyEncipherment","dataEncipherment","keyAgreement","keyCertSign","cRLSign","encipherOnly","decipherOnly"];var jr=function(e){var t=_n,n=t.lang.String.isHex,r=xn,i=r.getV,a=r.getTLV,o=r.getVbyList,s=r.getTLVbyList,l=r.getTLVbyListEx,c=r.getIdxbyList,u=r.getIdxbyListEx,d=r.getChildIdx,h=new Ur;this.hex=null,this.posSigAlg=null,this.posRevCert=null,this.parsed=null,this._setPos=function(){var e=c(this.hex,0,[0,0]),t=this.hex.substr(e,2);if("02"==t)this.posSigAlg=1;else{if("30"!=t)throw new Error("malformed 1st item of TBSCertList: "+t);this.posSigAlg=0}var n,r,i=c(this.hex,0,[0,this.posSigAlg+3]),a=this.hex.substr(i,2);if("17"==a||"18"==a)n=c(this.hex,0,[0,this.posSigAlg+4]),this.posRevCert=null,-1!=n&&(r=this.hex.substr(n,2),"30"==r&&(this.posRevCert=this.posSigAlg+4));else if("30"==a)this.posRevCert=this.posSigAlg+3;else{if("a0"!=a)throw new Error("malformed nextUpdate or revCert tag: "+a);this.posRevCert=null}},this.getVersion=function(){return 0==this.posSigAlg?null:parseInt(o(this.hex,0,[0,0],"02"),16)+1},this.getSignatureAlgorithmField=function(){var e=s(this.hex,0,[0,this.posSigAlg],"30");return h.getAlgorithmIdentifierName(e)},this.getIssuer=function(){return h.getX500Name(this.getIssuerHex())},this.getIssuerHex=function(){return s(this.hex,0,[0,this.posSigAlg+1],"30")},this.getThisUpdate=function(){var e=o(this.hex,0,[0,this.posSigAlg+2]);return result=Kn(e)},this.getNextUpdate=function(){var e=c(this.hex,0,[0,this.posSigAlg+3]),t=this.hex.substr(e,2);return"17"!=t&&"18"!=t?null:Kn(i(this.hex,e))},this.getRevCertArray=function(){if(null==this.posRevCert)return null;for(var e=[],t=c(this.hex,0,[0,this.posRevCert]),n=d(this.hex,t),r=0;r<n.length;r++){var i=a(this.hex,n[r]);e.push(this.getRevCert(i))}return e},this.getRevCert=function(e){var t={},n=d(e,0);return t.sn={hex:o(e,0,[0],"02")},t.date=Kn(o(e,0,[1])),3==n.length&&(t.ext=h.getExtParamArray(s(e,0,[2]))),t},this.findRevCert=function(e){var t=new Ur(e),n=t.getSerialNumberHex();return this.findRevCertBySN(n)},this.findRevCertBySN=function(e){if(null==this.parsed&&this.getParam(),null==this.parsed.revcert)return null;for(var t=this.parsed.revcert,n=0;n<t.length;n++)if(e==t[n].sn.hex)return t[n];return null},this.getSignatureValueHex=function(){return o(this.hex,0,[2],"03",!0)},this.verifySignature=function(e){var t=this.getSignatureAlgorithmField(),n=this.getSignatureValueHex(),r=s(this.hex,0,[0],"30"),i=new _n.crypto.Signature({alg:t});return i.init(e),i.updateHex(r),i.verify(n)},this.getParam=function(e){var t={},n=this.getVersion();null!=n&&(t.version=n),t.sigalg=this.getSignatureAlgorithmField(),t.issuer=this.getIssuer(),t.thisupdate=this.getThisUpdate();var r=this.getNextUpdate();null!=r&&(t.nextupdate=r);var i=this.getRevCertArray();null!=i&&(t.revcert=i);var a=u(this.hex,0,[0,"[0]"]);if(-1!=a){var o=l(this.hex,0,[0,"[0]",0]);t.ext=h.getExtParamArray(o)}return t.sighex=this.getSignatureValueHex(),this.parsed=t,"object"==typeof e&&(1==e.tbshex&&(t.tbshex=s(this.hex,0,[0])),1==e.nodnarray&&delete t.issuer.array),t},"string"==typeof e&&(n(e)?this.hex=e:e.match(/-----BEGIN X509 CRL/)&&(this.hex=Qn(e)),this._setPos())};"undefined"!=typeof _n&&_n||(_n={}),"undefined"!=typeof _n.jws&&_n.jws||(_n.jws={}),_n.jws.JWS=function(){var e=_n,t=e.jws.JWS,n=t.isSafeJSONString;this.parseJWS=function(e,t){if(void 0===this.parsedJWS||!t&&void 0===this.parsedJWS.sigvalH){var r=e.match(/^([^.]+)\.([^.]+)\.([^.]+)$/);if(null==r)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";var i=r[1],a=r[2],o=r[3],s=i+"."+a;if(this.parsedJWS={},this.parsedJWS.headB64U=i,this.parsedJWS.payloadB64U=a,this.parsedJWS.sigvalB64U=o,this.parsedJWS.si=s,!t){var l=Mn(o),c=$t(l,16);this.parsedJWS.sigvalH=l,this.parsedJWS.sigvalBI=c}var u=kn(i),d=kn(a);if(this.parsedJWS.headS=u,this.parsedJWS.payloadS=d,!n(u,this.parsedJWS,"headP"))throw"malformed JSON string for JWS Head: "+u}}},_n.jws.JWS.sign=function(e,t,n,r,i){var a,o,s,l=_n,c=l.jws,u=c.JWS,d=u.readSafeJSONString,h=u.isSafeJSONString,p=l.crypto,f=(p.ECDSA,p.Mac),m=p.Signature,g=JSON;if("string"!=typeof t&&"object"!=typeof t)throw"spHeader must be JSON string or object: "+t;if("object"==typeof t&&(o=t,a=g.stringify(o)),"string"==typeof t){if(a=t,!h(a))throw"JWS Head is not safe JSON string: "+a;o=d(a)}if(s=n,"object"==typeof n&&(s=g.stringify(n)),""!=e&&null!=e||void 0===o.alg||(e=o.alg),""!=e&&null!=e&&void 0===o.alg&&(o.alg=e,a=g.stringify(o)),e!==o.alg)throw"alg and sHeader.alg doesn't match: "+e+"!="+o.alg;var v=null;if(void 0===u.jwsalg2sigalg[e])throw"unsupported alg name: "+e;v=u.jwsalg2sigalg[e];var b=Sn(a),y=Sn(s),w=b+"."+y,E="";if("Hmac"==v.substr(0,4)){if(void 0===r)throw"mac key shall be specified for HS* alg";var _=new f({alg:v,prov:"cryptojs",pass:r});_.updateString(w),E=_.doFinal()}else if(-1!=v.indexOf("withECDSA")){var S=new m({alg:v});S.init(r,i),S.updateString(w);var k=S.sign();E=_n.crypto.ECDSA.asn1SigToConcatSig(k)}else if("none"!=v){S=new m({alg:v});S.init(r,i),S.updateString(w),E=S.sign()}var x=Pn(E);return w+"."+x},_n.jws.JWS.verify=function(e,t,n){var r,i=_n,a=i.jws,o=a.JWS,s=o.readSafeJSONString,l=i.crypto,c=l.ECDSA,u=l.Mac,d=l.Signature;if(void 0!==typeof Ut&&(r=Ut),!wr(e))return!1;var h=e.split(".");if(3!==h.length)return!1;var p=h[0],f=h[1],m=p+"."+f,g=Mn(h[2]),v=s(kn(h[0])),b=null,y=null;if(void 0===v.alg)throw"algorithm not specified in header";if(b=v.alg,y=b.substr(0,2),null!=n&&"[object Array]"===Object.prototype.toString.call(n)&&n.length>0){var w=":"+n.join(":")+":";if(-1==w.indexOf(":"+b+":"))throw"algorithm '"+b+"' not accepted in the list"}if("none"!=b&&null===t)throw"key shall be specified to verify.";if("string"==typeof t&&-1!=t.indexOf("-----BEGIN ")&&(t=Mr.getKey(t)),("RS"==y||"PS"==y)&&!(t instanceof r))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==y&&!(t instanceof c))throw"key shall be a ECDSA obj for ES* algs";var E=null;if(void 0===o.jwsalg2sigalg[v.alg])throw"unsupported alg name: "+b;if(E=o.jwsalg2sigalg[b],"none"==E)throw"not supported";if("Hmac"==E.substr(0,4)){var _=null;if(void 0===t)throw"hexadecimal key shall be specified for HMAC";var S=new u({alg:E,pass:t});return S.updateString(m),_=S.doFinal(),g==_}if(-1!=E.indexOf("withECDSA")){var k=null;try{k=c.concatSigToASN1Sig(g)}catch(A){return!1}var x=new d({alg:E});return x.init(t),x.updateString(m),x.verify(k)}x=new d({alg:E});return x.init(t),x.updateString(m),x.verify(g)},_n.jws.JWS.parse=function(e){var t,n,r,i=e.split("."),a={};if(2!=i.length&&3!=i.length)throw"malformed sJWS: wrong number of '.' splitted elements";return t=i[0],n=i[1],3==i.length&&(r=i[2]),a.headerObj=_n.jws.JWS.readSafeJSONString(kn(t)),a.payloadObj=_n.jws.JWS.readSafeJSONString(kn(n)),a.headerPP=JSON.stringify(a.headerObj,null," "),null==a.payloadObj?a.payloadPP=kn(n):a.payloadPP=JSON.stringify(a.payloadObj,null," "),void 0!==r&&(a.sigHex=Mn(r)),a},_n.jws.JWS.verifyJWT=function(e,t,n){var r=_n,i=r.jws,a=i.JWS,o=a.readSafeJSONString,s=a.inArray,l=a.includedArray;if(!wr(e))return!1;var c=e.split(".");if(3!=c.length)return!1;var u=c[0],d=c[1],h=(Mn(c[2]),o(kn(u))),p=o(kn(d));if(void 0===h.alg)return!1;if(void 0===n.alg)throw"acceptField.alg shall be specified";if(!s(h.alg,n.alg))return!1;if(void 0!==p.iss&&"object"===typeof n.iss&&!s(p.iss,n.iss))return!1;if(void 0!==p.sub&&"object"===typeof n.sub&&!s(p.sub,n.sub))return!1;if(void 0!==p.aud&&"object"===typeof n.aud)if("string"==typeof p.aud){if(!s(p.aud,n.aud))return!1}else if("object"==typeof p.aud&&!l(p.aud,n.aud))return!1;var f=i.IntDate.getNow();return void 0!==n.verifyAt&&"number"===typeof n.verifyAt&&(f=n.verifyAt),void 0!==n.gracePeriod&&"number"===typeof n.gracePeriod||(n.gracePeriod=0),!(void 0!==p.exp&&"number"==typeof p.exp&&p.exp+n.gracePeriod<f)&&(!(void 0!==p.nbf&&"number"==typeof p.nbf&&f<p.nbf-n.gracePeriod)&&(!(void 0!==p.iat&&"number"==typeof p.iat&&f<p.iat-n.gracePeriod)&&((void 0===p.jti||void 0===n.jti||p.jti===n.jti)&&!!a.verify(e,t,n.alg))))},_n.jws.JWS.includedArray=function(e,t){var n=_n.jws.JWS.inArray;if(null===e)return!1;if("object"!==typeof e)return!1;if("number"!==typeof e.length)return!1;for(var r=0;r<e.length;r++)if(!n(e[r],t))return!1;return!0},_n.jws.JWS.inArray=function(e,t){if(null===t)return!1;if("object"!==typeof t)return!1;if("number"!==typeof t.length)return!1;for(var n=0;n<t.length;n++)if(t[n]==e)return!0;return!1},_n.jws.JWS.jwsalg2sigalg={HS256:"HmacSHA256",HS384:"HmacSHA384",HS512:"HmacSHA512",RS256:"SHA256withRSA",RS384:"SHA384withRSA",RS512:"SHA512withRSA",ES256:"SHA256withECDSA",ES384:"SHA384withECDSA",ES512:"SHA512withECDSA",PS256:"SHA256withRSAandMGF1",PS384:"SHA384withRSAandMGF1",PS512:"SHA512withRSAandMGF1",none:"none"},_n.jws.JWS.isSafeJSONString=function(e,t,n){var r=null;try{return r=En(e),"object"!=typeof r?0:r.constructor===Array?0:(t&&(t[n]=r),1)}catch(i){return 0}},_n.jws.JWS.readSafeJSONString=function(e){var t=null;try{return t=En(e),"object"!=typeof t||t.constructor===Array?null:t}catch(n){return null}},_n.jws.JWS.getEncodedSignatureValueFromJWS=function(e){var t=e.match(/^[^.]+\.[^.]+\.([^.]+)$/);if(null==t)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";return t[1]},_n.jws.JWS.getJWKthumbprint=function(e){if("RSA"!==e.kty&&"EC"!==e.kty&&"oct"!==e.kty)throw"unsupported algorithm for JWK Thumprint";var t="{";if("RSA"===e.kty){if("string"!=typeof e.n||"string"!=typeof e.e)throw"wrong n and e value for RSA key";t+='"e":"'+e.e+'",',t+='"kty":"'+e.kty+'",',t+='"n":"'+e.n+'"}'}else if("EC"===e.kty){if("string"!=typeof e.crv||"string"!=typeof e.x||"string"!=typeof e.y)throw"wrong crv, x and y value for EC key";t+='"crv":"'+e.crv+'",',t+='"kty":"'+e.kty+'",',t+='"x":"'+e.x+'",',t+='"y":"'+e.y+'"}'}else if("oct"===e.kty){if("string"!=typeof e.k)throw"wrong k value for oct(symmetric) key";t+='"kty":"'+e.kty+'",',t+='"k":"'+e.k+'"}'}var n=Hn(t),r=_n.crypto.Util.hashHex(n,"sha256"),i=Pn(r);return i},_n.jws.IntDate={},_n.jws.IntDate.get=function(e){var t=_n.jws.IntDate,n=t.getNow,r=t.getZulu;if("now"==e)return n();if("now + 1hour"==e)return n()+3600;if("now + 1day"==e)return n()+86400;if("now + 1month"==e)return n()+2592e3;if("now + 1year"==e)return n()+31536e3;if(e.match(/Z$/))return r(e);if(e.match(/^[0-9]+$/))return parseInt(e);throw"unsupported format: "+e},_n.jws.IntDate.getZulu=function(e){return rr(e)},_n.jws.IntDate.getNow=function(){var e=~~(new Date/1e3);return e},_n.jws.IntDate.intDate2UTCString=function(e){var t=new Date(1e3*e);return t.toUTCString()},_n.jws.IntDate.intDate2Zulu=function(e){var t=new Date(1e3*e),n=("0000"+t.getUTCFullYear()).slice(-4),r=("00"+(t.getUTCMonth()+1)).slice(-2),i=("00"+t.getUTCDate()).slice(-2),a=("00"+t.getUTCHours()).slice(-2),o=("00"+t.getUTCMinutes()).slice(-2),s=("00"+t.getUTCSeconds()).slice(-2);return n+r+i+a+o+s+"Z"},"undefined"!=typeof _n&&_n||(_n={}),"undefined"!=typeof _n.jws&&_n.jws||(_n.jws={}),_n.jws.JWSJS=function(){var e=_n,t=e.jws,n=t.JWS,r=n.readSafeJSONString;this.aHeader=[],this.sPayload="",this.aSignature=[],this.init=function(){this.aHeader=[],this.sPayload=void 0,this.aSignature=[]},this.initWithJWS=function(e){this.init();var t=e.split(".");if(3!=t.length)throw"malformed input JWS";this.aHeader.push(t[0]),this.sPayload=t[1],this.aSignature.push(t[2])},this.addSignature=function(e,t,n,r){if(void 0===this.sPayload||null===this.sPayload)throw"there's no JSON-JS signature to add.";var i=this.aHeader.length;if(this.aHeader.length!=this.aSignature.length)throw"aHeader.length != aSignature.length";try{var a=_n.jws.JWS.sign(e,t,this.sPayload,n,r),o=a.split(".");o[0],o[2];this.aHeader.push(o[0]),this.aSignature.push(o[2])}catch(s){throw this.aHeader.length>i&&this.aHeader.pop(),this.aSignature.length>i&&this.aSignature.pop(),"addSignature failed: "+s}},this.verifyAll=function(e){if(this.aHeader.length!==e.length||this.aSignature.length!==e.length)return!1;for(var t=0;t<e.length;t++){var n=e[t];if(2!==n.length)return!1;var r=this.verifyNth(t,n[0],n[1]);if(!1===r)return!1}return!0},this.verifyNth=function(e,t,r){if(this.aHeader.length<=e||this.aSignature.length<=e)return!1;var i=this.aHeader[e],a=this.aSignature[e],o=i+"."+this.sPayload+"."+a,s=!1;try{s=n.verify(o,t,r)}catch(l){return!1}return s},this.readJWSJS=function(e){if("string"===typeof e){var t=r(e);if(null==t)throw"argument is not safe JSON object string";this.aHeader=t.headers,this.sPayload=t.payload,this.aSignature=t.signatures}else try{if(!(e.headers.length>0))throw"malformed header";if(this.aHeader=e.headers,"string"!==typeof e.payload)throw"malformed signatures";if(this.sPayload=e.payload,!(e.signatures.length>0))throw"malformed signatures";this.aSignature=e.signatures}catch(n){throw"malformed JWS-JS JSON object: "+n}},this.getJSON=function(){return{headers:this.aHeader,payload:this.sPayload,signatures:this.aSignature}},this.isEmpty=function(){return 0==this.aHeader.length?1:0}},t.SecureRandom=Ft,t.rng_seed_time=Ot,t.BigInteger=v,t.RSAKey=Ut,t.ECDSA=_n.crypto.ECDSA,t.DSA=_n.crypto.DSA,t.Signature=_n.crypto.Signature,t.MessageDigest=_n.crypto.MessageDigest,t.Mac=_n.crypto.Mac,t.KEYUTIL=Mr,t.ASN1HEX=xn,t.X509=Ur,t.X509CRL=jr,t.CryptoJS=l,t.b64tohex=p,t.b64toBA=f,t.ECFieldElementFp=qt,t.ECPointFp=nn,t.ECCurveFp=pn,t.stoBA=An,t.BAtos=Nn,t.BAtohex=Cn,t.stohex=Tn,t.stob64=Rn,t.stob64u=On,t.b64utos=In,t.b64tob64u=Ln,t.b64utob64=Dn,t.hex2b64=h,t.hextob64u=Pn,t.b64utohex=Mn,t.utf8tob64u=Sn,t.b64utoutf8=kn,t.utf8tob64=Bn,t.b64toutf8=Fn,t.utf8tohex=$n,t.hextoutf8=Un,t.hextorstr=Kn,t.rstrtohex=Hn,t.hextob64=Gn,t.hextob64nl=zn,t.b64nltohex=Xn,t.hextopem=Yn,t.pemtohex=Qn,t.hextoArrayBuffer=Zn,t.ArrayBuffertohex=er,t.zulutomsec=tr,t.msectozulu=nr,t.zulutosec=rr,t.zulutodate=ir,t.datetozulu=ar,t.uricmptohex=sr,t.hextouricmp=lr,t.ipv6tohex=cr,t.hextoipv6=ur,t.hextoip=dr,t.iptohex=pr,t.ucs2hextoutf8=mr,t.encodeURIComponentAll=gr,t.newline_toUnix=vr,t.newline_toDos=br,t.hextoposhex=Er,t.intarystrtohex=_r,t.strdiffidx=Sr,t.oidtohex=kr,t.hextooid=xr,t.strpad=Cr,t.bitstrtoint=Tr,t.inttobitstr=Rr,t.bitstrtobinstr=Or,t.binstrtobitstr=Ir,t.isBase64URLDot=wr,t.namearraytobinstr=Lr,t.extendClass=Pr,t.foldnl=qn,t.b64topem=Wn,t.pemtob64=Jn,t.timeogen=or,t.aryval=Dr,t.inttohex=Ar,t.twoscompl=Nr,t.KJUR=_n,t.crypto=_n.crypto,t.asn1=_n.asn1,t.jws=_n.jws,t.lang=_n.lang,t.VERSION=o,t.VERSION_FULL=s},33103:function(e,t,n){var r=n(94715),i=n(78942),a=r(i,"DataView");e.exports=a},25098:function(e,t,n){var r=n(23305),i=n(39361),a=n(11112),o=n(25276),s=n(57452);function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},1386:function(e,t,n){var r=n(12393),i=n(62049),a=n(7144),o=n(7452),s=n(13964);function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},19770:function(e,t,n){var r=n(94715),i=n(78942),a=r(i,"Map");e.exports=a},68250:function(e,t,n){var r=n(49753),i=n(5681),a=n(80088),o=n(54732),s=n(59068);function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},89413:function(e,t,n){var r=n(94715),i=n(78942),a=r(i,"Promise");e.exports=a},64512:function(e,t,n){var r=n(94715),i=n(78942),a=r(i,"Set");e.exports=a},23212:function(e,t,n){var r=n(68250),i=n(1877),a=n(8006);function o(e){var t=-1,n=null==e?0:e.length;this.__data__=new r;while(++t<n)this.add(e[t])}o.prototype.add=o.prototype.push=i,o.prototype.has=a,e.exports=o},51340:function(e,t,n){var r=n(1386),i=n(64103),a=n(21779),o=n(34162),s=n(7462),l=n(96638);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype["delete"]=a,c.prototype.get=o,c.prototype.has=s,c.prototype.set=l,e.exports=c},65650:function(e,t,n){var r=n(78942),i=r.Symbol;e.exports=i},31623:function(e,t,n){var r=n(78942),i=r.Uint8Array;e.exports=i},19270:function(e,t,n){var r=n(94715),i=n(78942),a=r(i,"WeakMap");e.exports=a},86912:function(e){function t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=t},79968:function(e){function t(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}e.exports=t},79847:function(e){function t(e,t){var n=-1,r=null==e?0:e.length,i=0,a=[];while(++n<r){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}e.exports=t},59756:function(e,t,n){var r=n(2478);function i(e,t){var n=null==e?0:e.length;return!!n&&r(e,t,0)>-1}e.exports=i},43316:function(e){function t(e,t,n){var r=-1,i=null==e?0:e.length;while(++r<i)if(n(t,e[r]))return!0;return!1}e.exports=t},10358:function(e,t,n){var r=n(26137),i=n(3283),a=n(53142),o=n(75853),s=n(69632),l=n(8666),c=Object.prototype,u=c.hasOwnProperty;function d(e,t){var n=a(e),c=!n&&i(e),d=!n&&!c&&o(e),h=!n&&!c&&!d&&l(e),p=n||c||d||h,f=p?r(e.length,String):[],m=f.length;for(var g in e)!t&&!u.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||f.push(g);return f}e.exports=d},65111:function(e){function t(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}e.exports=t},11129:function(e){function t(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}e.exports=t},44187:function(e){function t(e,t,n,r){var i=-1,a=null==e?0:e.length;r&&a&&(n=e[++i]);while(++i<a)n=t(n,e[i],i,e);return n}e.exports=t},36465:function(e){function t(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}e.exports=t},52837:function(e){function t(e){return e.split("")}e.exports=t},39546:function(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function n(e){return e.match(t)||[]}e.exports=n},24810:function(e,t,n){var r=n(57073),i=n(46285);function a(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}e.exports=a},3422:function(e,t,n){var r=n(57073),i=n(46285),a=Object.prototype,o=a.hasOwnProperty;function s(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}e.exports=s},97034:function(e,t,n){var r=n(46285);function i(e,t){var n=e.length;while(n--)if(r(e[n][0],t))return n;return-1}e.exports=i},37930:function(e,t,n){var r=n(39032),i=n(81211);function a(e,t){return e&&r(t,i(t),e)}e.exports=a},30125:function(e,t,n){var r=n(39032),i=n(25288);function a(e,t){return e&&r(t,i(t),e)}e.exports=a},57073:function(e,t,n){var r=n(72532);function i(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}e.exports=i},69334:function(e,t,n){var r=n(51340),i=n(79968),a=n(3422),o=n(37930),s=n(30125),l=n(17099),c=n(84354),u=n(83546),d=n(24733),h=n(80393),p=n(93650),f=n(28486),m=n(97350),g=n(50424),v=n(75964),b=n(53142),y=n(75853),w=n(37681),E=n(41580),_=n(83943),S=n(81211),k=n(25288),x=1,A=2,N=4,C="[object Arguments]",T="[object Array]",R="[object Boolean]",O="[object Date]",I="[object Error]",L="[object Function]",D="[object GeneratorFunction]",P="[object Map]",M="[object Number]",B="[object Object]",F="[object RegExp]",$="[object Set]",U="[object String]",j="[object Symbol]",V="[object WeakMap]",K="[object ArrayBuffer]",H="[object DataView]",G="[object Float32Array]",z="[object Float64Array]",q="[object Int8Array]",X="[object Int16Array]",W="[object Int32Array]",Y="[object Uint8Array]",Q="[object Uint8ClampedArray]",J="[object Uint16Array]",Z="[object Uint32Array]",ee={};function te(e,t,n,T,R,O){var I,P=t&x,M=t&A,F=t&N;if(n&&(I=R?n(e,T,R,O):n(e)),void 0!==I)return I;if(!E(e))return e;var $=b(e);if($){if(I=m(e),!P)return c(e,I)}else{var U=f(e),j=U==L||U==D;if(y(e))return l(e,P);if(U==B||U==C||j&&!R){if(I=M||j?{}:v(e),!P)return M?d(e,s(I,e)):u(e,o(I,e))}else{if(!ee[U])return R?e:{};I=g(e,U,P)}}O||(O=new r);var V=O.get(e);if(V)return V;O.set(e,I),_(e)?e.forEach((function(r){I.add(te(r,t,n,r,e,O))})):w(e)&&e.forEach((function(r,i){I.set(i,te(r,t,n,i,e,O))}));var K=F?M?p:h:M?k:S,H=$?void 0:K(e);return i(H||e,(function(r,i){H&&(i=r,r=e[i]),a(I,i,te(r,t,n,i,e,O))})),I}ee[C]=ee[T]=ee[K]=ee[H]=ee[R]=ee[O]=ee[G]=ee[z]=ee[q]=ee[X]=ee[W]=ee[P]=ee[M]=ee[B]=ee[F]=ee[$]=ee[U]=ee[j]=ee[Y]=ee[Q]=ee[J]=ee[Z]=!0,ee[I]=ee[L]=ee[V]=!1,e.exports=te},39747:function(e,t,n){var r=n(41580),i=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},96576:function(e,t,n){var r=n(23212),i=n(59756),a=n(43316),o=n(65111),s=n(49460),l=n(65568),c=200;function u(e,t,n,u){var d=-1,h=i,p=!0,f=e.length,m=[],g=t.length;if(!f)return m;n&&(t=o(t,s(n))),u?(h=a,p=!1):t.length>=c&&(h=l,p=!1,t=new r(t));e:while(++d<f){var v=e[d],b=null==n?v:n(v);if(v=u||0!==v?v:0,p&&b===b){var y=g;while(y--)if(t[y]===b)continue e;m.push(v)}else h(t,b,u)||m.push(v)}return m}e.exports=u},37250:function(e){function t(e,t,n,r){var i=e.length,a=n+(r?1:-1);while(r?a--:++a<i)if(t(e[a],a,e))return a;return-1}e.exports=t},90313:function(e,t,n){var r=n(11129),i=n(20714);function a(e,t,n,o,s){var l=-1,c=e.length;n||(n=i),s||(s=[]);while(++l<c){var u=e[l];t>0&&n(u)?t>1?a(u,t-1,n,o,s):r(s,u):o||(s[s.length]=u)}return s}e.exports=a},35636:function(e,t,n){var r=n(86596),i=r();e.exports=i},47170:function(e,t,n){var r=n(35636),i=n(81211);function a(e,t){return e&&r(e,t,i)}e.exports=a},57923:function(e,t,n){var r=n(93526),i=n(66040);function a(e,t){t=r(t,e);var n=0,a=t.length;while(null!=e&&n<a)e=e[i(t[n++])];return n&&n==a?e:void 0}e.exports=a},48244:function(e,t,n){var r=n(11129),i=n(53142);function a(e,t,n){var a=t(e);return i(e)?a:r(a,n(e))}e.exports=a},87379:function(e,t,n){var r=n(65650),i=n(8870),a=n(29005),o="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;function c(e){return null==e?void 0===e?s:o:l&&l in Object(e)?i(e):a(e)}e.exports=c},63599:function(e){var t=Object.prototype,n=t.hasOwnProperty;function r(e,t){return null!=e&&n.call(e,t)}e.exports=r},43636:function(e){function t(e,t){return null!=e&&t in Object(e)}e.exports=t},2478:function(e,t,n){var r=n(37250),i=n(69454),a=n(97706);function o(e,t,n){return t===t?a(e,t,n):r(e,i,n)}e.exports=o},56027:function(e,t,n){var r=n(87379),i=n(80547),a="[object Arguments]";function o(e){return i(e)&&r(e)==a}e.exports=o},94687:function(e,t,n){var r=n(90353),i=n(80547);function a(e,t,n,o,s){return e===t||(null==e||null==t||!i(e)&&!i(t)?e!==e&&t!==t:r(e,t,n,o,a,s))}e.exports=a},90353:function(e,t,n){var r=n(51340),i=n(33934),a=n(88861),o=n(31182),s=n(28486),l=n(53142),c=n(75853),u=n(8666),d=1,h="[object Arguments]",p="[object Array]",f="[object Object]",m=Object.prototype,g=m.hasOwnProperty;function v(e,t,n,m,v,b){var y=l(e),w=l(t),E=y?p:s(e),_=w?p:s(t);E=E==h?f:E,_=_==h?f:_;var S=E==f,k=_==f,x=E==_;if(x&&c(e)){if(!c(t))return!1;y=!0,S=!1}if(x&&!S)return b||(b=new r),y||u(e)?i(e,t,n,m,v,b):a(e,t,E,n,m,v,b);if(!(n&d)){var A=S&&g.call(e,"__wrapped__"),N=k&&g.call(t,"__wrapped__");if(A||N){var C=A?e.value():e,T=N?t.value():t;return b||(b=new r),v(C,T,n,m,b)}}return!!x&&(b||(b=new r),o(e,t,n,m,v,b))}e.exports=v},80777:function(e,t,n){var r=n(28486),i=n(80547),a="[object Map]";function o(e){return i(e)&&r(e)==a}e.exports=o},38330:function(e,t,n){var r=n(51340),i=n(94687),a=1,o=2;function s(e,t,n,s){var l=n.length,c=l,u=!s;if(null==e)return!c;e=Object(e);while(l--){var d=n[l];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}while(++l<c){d=n[l];var h=d[0],p=e[h],f=d[1];if(u&&d[2]){if(void 0===p&&!(h in e))return!1}else{var m=new r;if(s)var g=s(p,f,h,e,t,m);if(!(void 0===g?i(f,p,a|o,s,m):g))return!1}}return!0}e.exports=s},69454:function(e){function t(e){return e!==e}e.exports=t},89624:function(e,t,n){var r=n(93655),i=n(64759),a=n(41580),o=n(64066),s=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,d=c.toString,h=u.hasOwnProperty,p=RegExp("^"+d.call(h).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(e){if(!a(e)||i(e))return!1;var t=r(e)?p:l;return t.test(o(e))}e.exports=f},81935:function(e,t,n){var r=n(28486),i=n(80547),a="[object Set]";function o(e){return i(e)&&r(e)==a}e.exports=o},70674:function(e,t,n){var r=n(87379),i=n(65387),a=n(80547),o="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",h="[object Map]",p="[object Number]",f="[object Object]",m="[object RegExp]",g="[object Set]",v="[object String]",b="[object WeakMap]",y="[object ArrayBuffer]",w="[object DataView]",E="[object Float32Array]",_="[object Float64Array]",S="[object Int8Array]",k="[object Int16Array]",x="[object Int32Array]",A="[object Uint8Array]",N="[object Uint8ClampedArray]",C="[object Uint16Array]",T="[object Uint32Array]",R={};function O(e){return a(e)&&i(e.length)&&!!R[r(e)]}R[E]=R[_]=R[S]=R[k]=R[x]=R[A]=R[N]=R[C]=R[T]=!0,R[o]=R[s]=R[y]=R[l]=R[w]=R[c]=R[u]=R[d]=R[h]=R[p]=R[f]=R[m]=R[g]=R[v]=R[b]=!1,e.exports=O},3334:function(e,t,n){var r=n(36526),i=n(12343),a=n(22053),o=n(53142),s=n(43282);function l(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?o(e)?i(e[0],e[1]):r(e):s(e)}e.exports=l},195:function(e,t,n){var r=n(84882),i=n(98121),a=Object.prototype,o=a.hasOwnProperty;function s(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}e.exports=s},57200:function(e,t,n){var r=n(41580),i=n(84882),a=n(38546),o=Object.prototype,s=o.hasOwnProperty;function l(e){if(!r(e))return a(e);var t=i(e),n=[];for(var o in e)("constructor"!=o||!t&&s.call(e,o))&&n.push(o);return n}e.exports=l},36526:function(e,t,n){var r=n(38330),i=n(24367),a=n(23904);function o(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}e.exports=o},12343:function(e,t,n){var r=n(94687),i=n(46123),a=n(27276),o=n(65187),s=n(67267),l=n(23904),c=n(66040),u=1,d=2;function h(e,t){return o(e)&&s(t)?l(c(e),t):function(n){var o=i(n,e);return void 0===o&&o===t?a(n,e):r(t,o,u|d)}}e.exports=h},40091:function(e,t,n){var r=n(51340),i=n(24810),a=n(35636),o=n(26885),s=n(41580),l=n(25288),c=n(78763);function u(e,t,n,d,h){e!==t&&a(t,(function(a,l){if(h||(h=new r),s(a))o(e,t,l,n,u,d,h);else{var p=d?d(c(e,l),a,l+"",e,t,h):void 0;void 0===p&&(p=a),i(e,l,p)}}),l)}e.exports=u},26885:function(e,t,n){var r=n(24810),i=n(17099),a=n(92264),o=n(84354),s=n(75964),l=n(3283),c=n(53142),u=n(65406),d=n(75853),h=n(93655),p=n(41580),f=n(48360),m=n(8666),g=n(78763),v=n(64207);function b(e,t,n,b,y,w,E){var _=g(e,n),S=g(t,n),k=E.get(S);if(k)r(e,n,k);else{var x=w?w(_,S,n+"",e,t,E):void 0,A=void 0===x;if(A){var N=c(S),C=!N&&d(S),T=!N&&!C&&m(S);x=S,N||C||T?c(_)?x=_:u(_)?x=o(_):C?(A=!1,x=i(S,!0)):T?(A=!1,x=a(S,!0)):x=[]:f(S)||l(S)?(x=_,l(_)?x=v(_):p(_)&&!h(_)||(x=s(S))):A=!1}A&&(E.set(S,x),y(x,S,b,w,E),E["delete"](S)),r(e,n,x)}}e.exports=b},90242:function(e,t,n){var r=n(35031),i=n(27276);function a(e,t){return r(e,t,(function(t,n){return i(e,n)}))}e.exports=a},35031:function(e,t,n){var r=n(57923),i=n(87655),a=n(93526);function o(e,t,n){var o=-1,s=t.length,l={};while(++o<s){var c=t[o],u=r(e,c);n(u,c)&&i(l,a(c,e),u)}return l}e.exports=o},12762:function(e){function t(e){return function(t){return null==t?void 0:t[e]}}e.exports=t},98880:function(e,t,n){var r=n(57923);function i(e){return function(t){return r(t,e)}}e.exports=i},51035:function(e){function t(e){return function(t){return null==e?void 0:e[t]}}e.exports=t},23945:function(e,t,n){var r=n(22053),i=n(75234),a=n(80796);function o(e,t){return a(i(e,t,r),e+"")}e.exports=o},87655:function(e,t,n){var r=n(3422),i=n(93526),a=n(69632),o=n(41580),s=n(66040);function l(e,t,n,l){if(!o(e))return e;t=i(t,e);var c=-1,u=t.length,d=u-1,h=e;while(null!=h&&++c<u){var p=s(t[c]),f=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=d){var m=h[p];f=l?l(m,p,h):void 0,void 0===f&&(f=o(m)?m:a(t[c+1])?[]:{})}r(h,p,f),h=h[p]}return e}e.exports=l},47403:function(e,t,n){var r=n(82619),i=n(72532),a=n(22053),o=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=o},73501:function(e){function t(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;var a=Array(i);while(++r<i)a[r]=e[r+t];return a}e.exports=t},26137:function(e){function t(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}e.exports=t},52291:function(e,t,n){var r=n(65650),i=n(65111),a=n(53142),o=n(51187),s=1/0,l=r?r.prototype:void 0,c=l?l.toString:void 0;function u(e){if("string"==typeof e)return e;if(a(e))return i(e,u)+"";if(o(e))return c?c.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}e.exports=u},86403:function(e,t,n){var r=n(62945),i=/^\s+/;function a(e){return e?e.slice(0,r(e)+1).replace(i,""):e}e.exports=a},49460:function(e){function t(e){return function(t){return e(t)}}e.exports=t},15630:function(e,t,n){var r=n(23212),i=n(59756),a=n(43316),o=n(65568),s=n(36208),l=n(49828),c=200;function u(e,t,n){var u=-1,d=i,h=e.length,p=!0,f=[],m=f;if(n)p=!1,d=a;else if(h>=c){var g=t?null:s(e);if(g)return l(g);p=!1,d=o,m=new r}else m=t?[]:f;e:while(++u<h){var v=e[u],b=t?t(v):v;if(v=n||0!==v?v:0,p&&b===b){var y=m.length;while(y--)if(m[y]===b)continue e;t&&m.push(b),f.push(v)}else d(m,b,n)||(m!==f&&m.push(b),f.push(v))}return f}e.exports=u},3905:function(e,t,n){var r=n(65111);function i(e,t){return r(t,(function(t){return e[t]}))}e.exports=i},80214:function(e,t,n){var r=n(96576),i=n(90313),a=n(15630);function o(e,t,n){var o=e.length;if(o<2)return o?a(e[0]):[];var s=-1,l=Array(o);while(++s<o){var c=e[s],u=-1;while(++u<o)u!=s&&(l[s]=r(l[s]||c,e[u],t,n))}return a(i(l,1),t,n)}e.exports=o},65568:function(e){function t(e,t){return e.has(t)}e.exports=t},23997:function(e,t,n){var r=n(22053);function i(e){return"function"==typeof e?e:r}e.exports=i},93526:function(e,t,n){var r=n(53142),i=n(65187),a=n(96493),o=n(95243);function s(e,t){return r(e)?e:i(e,t)?[e]:a(o(e))}e.exports=s},28931:function(e,t,n){var r=n(73501);function i(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}e.exports=i},58898:function(e,t,n){var r=n(31623);function i(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}e.exports=i},17099:function(e,t,n){e=n.nmd(e);var r=n(78942),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,l=s?s.allocUnsafe:void 0;function c(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}e.exports=c},92480:function(e,t,n){var r=n(58898);function i(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}e.exports=i},78340:function(e){var t=/\w*$/;function n(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}e.exports=n},18069:function(e,t,n){var r=n(65650),i=r?r.prototype:void 0,a=i?i.valueOf:void 0;function o(e){return a?Object(a.call(e)):{}}e.exports=o},92264:function(e,t,n){var r=n(58898);function i(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}e.exports=i},84354:function(e){function t(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}e.exports=t},39032:function(e,t,n){var r=n(3422),i=n(57073);function a(e,t,n,a){var o=!n;n||(n={});var s=-1,l=t.length;while(++s<l){var c=t[s],u=a?a(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),o?i(n,c,u):r(n,c,u)}return n}e.exports=a},83546:function(e,t,n){var r=n(39032),i=n(77979);function a(e,t){return r(e,i(e),t)}e.exports=a},24733:function(e,t,n){var r=n(39032),i=n(85832);function a(e,t){return r(e,i(e),t)}e.exports=a},41950:function(e,t,n){var r=n(78942),i=r["__core-js_shared__"];e.exports=i},77848:function(e,t,n){var r=n(23945),i=n(74535);function a(e){return r((function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;o=e.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);while(++r<a){var l=n[r];l&&e(t,l,r,o)}return t}))}e.exports=a},86596:function(e){function t(e){return function(t,n,r){var i=-1,a=Object(t),o=r(t),s=o.length;while(s--){var l=o[e?s:++i];if(!1===n(a[l],l,a))break}return t}}e.exports=t},4326:function(e,t,n){var r=n(28931),i=n(83417),a=n(82237),o=n(95243);function s(e){return function(t){t=o(t);var n=i(t)?a(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}e.exports=s},93640:function(e,t,n){var r=n(44187),i=n(45881),a=n(39850),o="[']",s=RegExp(o,"g");function l(e){return function(t){return r(a(i(t).replace(s,"")),e,"")}}e.exports=l},77317:function(e,t,n){var r=n(3334),i=n(36529),a=n(81211);function o(e){return function(t,n,o){var s=Object(t);if(!i(t)){var l=r(n,3);t=a(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,o);return c>-1?s[l?t[c]:c]:void 0}}e.exports=o},36208:function(e,t,n){var r=n(64512),i=n(79071),a=n(49828),o=1/0,s=r&&1/a(new r([,-0]))[1]==o?function(e){return new r(e)}:i;e.exports=s},69968:function(e,t,n){var r=n(51035),i={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},a=r(i);e.exports=a},72532:function(e,t,n){var r=n(94715),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},33934:function(e,t,n){var r=n(23212),i=n(36465),a=n(65568),o=1,s=2;function l(e,t,n,l,c,u){var d=n&o,h=e.length,p=t.length;if(h!=p&&!(d&&p>h))return!1;var f=u.get(e),m=u.get(t);if(f&&m)return f==t&&m==e;var g=-1,v=!0,b=n&s?new r:void 0;u.set(e,t),u.set(t,e);while(++g<h){var y=e[g],w=t[g];if(l)var E=d?l(w,y,g,t,e,u):l(y,w,g,e,t,u);if(void 0!==E){if(E)continue;v=!1;break}if(b){if(!i(t,(function(e,t){if(!a(b,t)&&(y===e||c(y,e,n,l,u)))return b.push(t)}))){v=!1;break}}else if(y!==w&&!c(y,w,n,l,u)){v=!1;break}}return u["delete"](e),u["delete"](t),v}e.exports=l},88861:function(e,t,n){var r=n(65650),i=n(31623),a=n(46285),o=n(33934),s=n(95894),l=n(49828),c=1,u=2,d="[object Boolean]",h="[object Date]",p="[object Error]",f="[object Map]",m="[object Number]",g="[object RegExp]",v="[object Set]",b="[object String]",y="[object Symbol]",w="[object ArrayBuffer]",E="[object DataView]",_=r?r.prototype:void 0,S=_?_.valueOf:void 0;function k(e,t,n,r,_,k,x){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!k(new i(e),new i(t)));case d:case h:case m:return a(+e,+t);case p:return e.name==t.name&&e.message==t.message;case g:case b:return e==t+"";case f:var A=s;case v:var N=r&c;if(A||(A=l),e.size!=t.size&&!N)return!1;var C=x.get(e);if(C)return C==t;r|=u,x.set(e,t);var T=o(A(e),A(t),r,_,k,x);return x["delete"](e),T;case y:if(S)return S.call(e)==S.call(t)}return!1}e.exports=k},31182:function(e,t,n){var r=n(80393),i=1,a=Object.prototype,o=a.hasOwnProperty;function s(e,t,n,a,s,l){var c=n&i,u=r(e),d=u.length,h=r(t),p=h.length;if(d!=p&&!c)return!1;var f=d;while(f--){var m=u[f];if(!(c?m in t:o.call(t,m)))return!1}var g=l.get(e),v=l.get(t);if(g&&v)return g==t&&v==e;var b=!0;l.set(e,t),l.set(t,e);var y=c;while(++f<d){m=u[f];var w=e[m],E=t[m];if(a)var _=c?a(E,w,m,t,e,l):a(w,E,m,e,t,l);if(!(void 0===_?w===E||s(w,E,n,a,l):_)){b=!1;break}y||(y="constructor"==m)}if(b&&!y){var S=e.constructor,k=t.constructor;S==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof S&&S instanceof S&&"function"==typeof k&&k instanceof k||(b=!1)}return l["delete"](e),l["delete"](t),b}e.exports=s},41439:function(e,t,n){var r=n(75857),i=n(75234),a=n(80796);function o(e){return a(i(e,void 0,r),e+"")}e.exports=o},74967:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},80393:function(e,t,n){var r=n(48244),i=n(77979),a=n(81211);function o(e){return r(e,a,i)}e.exports=o},93650:function(e,t,n){var r=n(48244),i=n(85832),a=n(25288);function o(e){return r(e,a,i)}e.exports=o},44700:function(e,t,n){var r=n(79067);function i(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}e.exports=i},24367:function(e,t,n){var r=n(67267),i=n(81211);function a(e){var t=i(e),n=t.length;while(n--){var a=t[n],o=e[a];t[n]=[a,o,r(o)]}return t}e.exports=a},94715:function(e,t,n){var r=n(89624),i=n(20155);function a(e,t){var n=i(e,t);return r(n)?n:void 0}e.exports=a},74784:function(e,t,n){var r=n(3766),i=r(Object.getPrototypeOf,Object);e.exports=i},8870:function(e,t,n){var r=n(65650),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;function l(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}e.exports=l},77979:function(e,t,n){var r=n(79847),i=n(99306),a=Object.prototype,o=a.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(e){return null==e?[]:(e=Object(e),r(s(e),(function(t){return o.call(e,t)})))}:i;e.exports=l},85832:function(e,t,n){var r=n(11129),i=n(74784),a=n(77979),o=n(99306),s=Object.getOwnPropertySymbols,l=s?function(e){var t=[];while(e)r(t,a(e)),e=i(e);return t}:o;e.exports=l},28486:function(e,t,n){var r=n(33103),i=n(19770),a=n(89413),o=n(64512),s=n(19270),l=n(87379),c=n(64066),u="[object Map]",d="[object Object]",h="[object Promise]",p="[object Set]",f="[object WeakMap]",m="[object DataView]",g=c(r),v=c(i),b=c(a),y=c(o),w=c(s),E=l;(r&&E(new r(new ArrayBuffer(1)))!=m||i&&E(new i)!=u||a&&E(a.resolve())!=h||o&&E(new o)!=p||s&&E(new s)!=f)&&(E=function(e){var t=l(e),n=t==d?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return m;case v:return u;case b:return h;case y:return p;case w:return f}return t}),e.exports=E},20155:function(e){function t(e,t){return null==e?void 0:e[t]}e.exports=t},85899:function(e,t,n){var r=n(93526),i=n(3283),a=n(53142),o=n(69632),s=n(65387),l=n(66040);function c(e,t,n){t=r(t,e);var c=-1,u=t.length,d=!1;while(++c<u){var h=l(t[c]);if(!(d=null!=e&&n(e,h)))break;e=e[h]}return d||++c!=u?d:(u=null==e?0:e.length,!!u&&s(u)&&o(h,u)&&(a(e)||i(e)))}e.exports=c},83417:function(e){var t="\\ud800-\\udfff",n="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",a=n+r+i,o="\\ufe0e\\ufe0f",s="\\u200d",l=RegExp("["+s+t+a+o+"]");function c(e){return l.test(e)}e.exports=c},15813:function(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function n(e){return t.test(e)}e.exports=n},23305:function(e,t,n){var r=n(94497);function i(){this.__data__=r?r(null):{},this.size=0}e.exports=i},39361:function(e){function t(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=t},11112:function(e,t,n){var r=n(94497),i="__lodash_hash_undefined__",a=Object.prototype,o=a.hasOwnProperty;function s(e){var t=this.__data__;if(r){var n=t[e];return n===i?void 0:n}return o.call(t,e)?t[e]:void 0}e.exports=s},25276:function(e,t,n){var r=n(94497),i=Object.prototype,a=i.hasOwnProperty;function o(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}e.exports=o},57452:function(e,t,n){var r=n(94497),i="__lodash_hash_undefined__";function a(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?i:t,this}e.exports=a},97350:function(e){var t=Object.prototype,n=t.hasOwnProperty;function r(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}e.exports=r},50424:function(e,t,n){var r=n(58898),i=n(92480),a=n(78340),o=n(18069),s=n(92264),l="[object Boolean]",c="[object Date]",u="[object Map]",d="[object Number]",h="[object RegExp]",p="[object Set]",f="[object String]",m="[object Symbol]",g="[object ArrayBuffer]",v="[object DataView]",b="[object Float32Array]",y="[object Float64Array]",w="[object Int8Array]",E="[object Int16Array]",_="[object Int32Array]",S="[object Uint8Array]",k="[object Uint8ClampedArray]",x="[object Uint16Array]",A="[object Uint32Array]";function N(e,t,n){var N=e.constructor;switch(t){case g:return r(e);case l:case c:return new N(+e);case v:return i(e,n);case b:case y:case w:case E:case _:case S:case k:case x:case A:return s(e,n);case u:return new N;case d:case f:return new N(e);case h:return a(e);case p:return new N;case m:return o(e)}}e.exports=N},75964:function(e,t,n){var r=n(39747),i=n(74784),a=n(84882);function o(e){return"function"!=typeof e.constructor||a(e)?{}:r(i(e))}e.exports=o},20714:function(e,t,n){var r=n(65650),i=n(3283),a=n(53142),o=r?r.isConcatSpreadable:void 0;function s(e){return a(e)||i(e)||!!(o&&e&&e[o])}e.exports=s},69632:function(e){var t=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function r(e,r){var i=typeof e;return r=null==r?t:r,!!r&&("number"==i||"symbol"!=i&&n.test(e))&&e>-1&&e%1==0&&e<r}e.exports=r},74535:function(e,t,n){var r=n(46285),i=n(36529),a=n(69632),o=n(41580);function s(e,t,n){if(!o(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&a(t,n.length):"string"==s&&t in n)&&r(n[t],e)}e.exports=s},65187:function(e,t,n){var r=n(53142),i=n(51187),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;function s(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(o.test(e)||!a.test(e)||null!=t&&e in Object(t))}e.exports=s},79067:function(e){function t(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=t},64759:function(e,t,n){var r=n(41950),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function a(e){return!!i&&i in e}e.exports=a},84882:function(e){var t=Object.prototype;function n(e){var n=e&&e.constructor,r="function"==typeof n&&n.prototype||t;return e===r}e.exports=n},67267:function(e,t,n){var r=n(41580);function i(e){return e===e&&!r(e)}e.exports=i},12393:function(e){function t(){this.__data__=[],this.size=0}e.exports=t},62049:function(e,t,n){var r=n(97034),i=Array.prototype,a=i.splice;function o(e){var t=this.__data__,n=r(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():a.call(t,n,1),--this.size,!0}e.exports=o},7144:function(e,t,n){var r=n(97034);function i(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}e.exports=i},7452:function(e,t,n){var r=n(97034);function i(e){return r(this.__data__,e)>-1}e.exports=i},13964:function(e,t,n){var r=n(97034);function i(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}e.exports=i},49753:function(e,t,n){var r=n(25098),i=n(1386),a=n(19770);function o(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}e.exports=o},5681:function(e,t,n){var r=n(44700);function i(e){var t=r(this,e)["delete"](e);return this.size-=t?1:0,t}e.exports=i},80088:function(e,t,n){var r=n(44700);function i(e){return r(this,e).get(e)}e.exports=i},54732:function(e,t,n){var r=n(44700);function i(e){return r(this,e).has(e)}e.exports=i},59068:function(e,t,n){var r=n(44700);function i(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}e.exports=i},95894:function(e){function t(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}e.exports=t},23904:function(e){function t(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}e.exports=t},76853:function(e,t,n){var r=n(69011),i=500;function a(e){var t=r(e,(function(e){return n.size===i&&n.clear(),e})),n=t.cache;return t}e.exports=a},94497:function(e,t,n){var r=n(94715),i=r(Object,"create");e.exports=i},98121:function(e,t,n){var r=n(3766),i=r(Object.keys,Object);e.exports=i},38546:function(e){function t(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=t},2306:function(e,t,n){e=n.nmd(e);var r=n(74967),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o&&r.process,l=function(){try{var e=a&&a.require&&a.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();e.exports=l},29005:function(e){var t=Object.prototype,n=t.toString;function r(e){return n.call(e)}e.exports=r},3766:function(e){function t(e,t){return function(n){return e(t(n))}}e.exports=t},75234:function(e,t,n){var r=n(86912),i=Math.max;function a(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){var a=arguments,o=-1,s=i(a.length-t,0),l=Array(s);while(++o<s)l[o]=a[t+o];o=-1;var c=Array(t+1);while(++o<t)c[o]=a[o];return c[t]=n(l),r(e,this,c)}}e.exports=a},78942:function(e,t,n){var r=n(74967),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();e.exports=a},78763:function(e){function t(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}e.exports=t},1877:function(e){var t="__lodash_hash_undefined__";function n(e){return this.__data__.set(e,t),this}e.exports=n},8006:function(e){function t(e){return this.__data__.has(e)}e.exports=t},49828:function(e){function t(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}e.exports=t},80796:function(e,t,n){var r=n(47403),i=n(3316),a=i(r);e.exports=a},3316:function(e){var t=800,n=16,r=Date.now;function i(e){var i=0,a=0;return function(){var o=r(),s=n-(o-a);if(a=o,s>0){if(++i>=t)return arguments[0]}else i=0;return e.apply(void 0,arguments)}}e.exports=i},64103:function(e,t,n){var r=n(1386);function i(){this.__data__=new r,this.size=0}e.exports=i},21779:function(e){function t(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}e.exports=t},34162:function(e){function t(e){return this.__data__.get(e)}e.exports=t},7462:function(e){function t(e){return this.__data__.has(e)}e.exports=t},96638:function(e,t,n){var r=n(1386),i=n(19770),a=n(68250),o=200;function s(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<o-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(s)}return n.set(e,t),this.size=n.size,this}e.exports=s},97706:function(e){function t(e,t,n){var r=n-1,i=e.length;while(++r<i)if(e[r]===t)return r;return-1}e.exports=t},82237:function(e,t,n){var r=n(52837),i=n(83417),a=n(92013);function o(e){return i(e)?a(e):r(e)}e.exports=o},96493:function(e,t,n){var r=n(76853),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)})),t}));e.exports=o},66040:function(e,t,n){var r=n(51187),i=1/0;function a(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}e.exports=a},64066:function(e){var t=Function.prototype,n=t.toString;function r(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(t){}}return""}e.exports=r},62945:function(e){var t=/\s/;function n(e){var n=e.length;while(n--&&t.test(e.charAt(n)));return n}e.exports=n},92013:function(e){var t="\\ud800-\\udfff",n="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",a=n+r+i,o="\\ufe0e\\ufe0f",s="["+t+"]",l="["+a+"]",c="\\ud83c[\\udffb-\\udfff]",u="(?:"+l+"|"+c+")",d="[^"+t+"]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",f="\\u200d",m=u+"?",g="["+o+"]?",v="(?:"+f+"(?:"+[d,h,p].join("|")+")"+g+m+")*",b=g+m+v,y="(?:"+[d+l+"?",l,h,p,s].join("|")+")",w=RegExp(c+"(?="+c+")|"+y+b,"g");function E(e){return e.match(w)||[]}e.exports=E},10482:function(e){var t="\\ud800-\\udfff",n="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",a=n+r+i,o="\\u2700-\\u27bf",s="a-z\\xdf-\\xf6\\xf8-\\xff",l="\\xac\\xb1\\xd7\\xf7",c="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",u="\\u2000-\\u206f",d=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",h="A-Z\\xc0-\\xd6\\xd8-\\xde",p="\\ufe0e\\ufe0f",f=l+c+u+d,m="[']",g="["+f+"]",v="["+a+"]",b="\\d+",y="["+o+"]",w="["+s+"]",E="[^"+t+f+b+o+s+h+"]",_="\\ud83c[\\udffb-\\udfff]",S="(?:"+v+"|"+_+")",k="[^"+t+"]",x="(?:\\ud83c[\\udde6-\\uddff]){2}",A="[\\ud800-\\udbff][\\udc00-\\udfff]",N="["+h+"]",C="\\u200d",T="(?:"+w+"|"+E+")",R="(?:"+N+"|"+E+")",O="(?:"+m+"(?:d|ll|m|re|s|t|ve))?",I="(?:"+m+"(?:D|LL|M|RE|S|T|VE))?",L=S+"?",D="["+p+"]?",P="(?:"+C+"(?:"+[k,x,A].join("|")+")"+D+L+")*",M="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",B="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",F=D+L+P,$="(?:"+[y,x,A].join("|")+")"+F,U=RegExp([N+"?"+w+"+"+O+"(?="+[g,N,"$"].join("|")+")",R+"+"+I+"(?="+[g,N+T,"$"].join("|")+")",N+"?"+T+"+"+O,N+"+"+I,B,M,b,$].join("|"),"g");function j(e){return e.match(U)||[]}e.exports=j},56005:function(e,t,n){var r=n(95243),i=n(5485);function a(e){return i(r(e).toLowerCase())}e.exports=a},46108:function(e,t,n){var r=n(69334),i=1,a=4;function o(e){return r(e,i|a)}e.exports=o},16238:function(e){function t(e){var t=-1,n=null==e?0:e.length,r=0,i=[];while(++t<n){var a=e[t];a&&(i[r++]=a)}return i}e.exports=t},82619:function(e){function t(e){return function(){return e}}e.exports=t},12784:function(e,t,n){var r=n(41580),i=n(94495),a=n(6131),o="Expected a function",s=Math.max,l=Math.min;function c(e,t,n){var c,u,d,h,p,f,m=0,g=!1,v=!1,b=!0;if("function"!=typeof e)throw new TypeError(o);function y(t){var n=c,r=u;return c=u=void 0,m=t,h=e.apply(r,n),h}function w(e){return m=e,p=setTimeout(S,t),g?y(e):h}function E(e){var n=e-f,r=e-m,i=t-n;return v?l(i,d-r):i}function _(e){var n=e-f,r=e-m;return void 0===f||n>=t||n<0||v&&r>=d}function S(){var e=i();if(_(e))return k(e);p=setTimeout(S,E(e))}function k(e){return p=void 0,b&&c?y(e):(c=u=void 0,h)}function x(){void 0!==p&&clearTimeout(p),m=0,c=f=u=p=void 0}function A(){return void 0===p?h:k(i())}function N(){var e=i(),n=_(e);if(c=arguments,u=this,f=e,n){if(void 0===p)return w(f);if(v)return clearTimeout(p),p=setTimeout(S,t),y(f)}return void 0===p&&(p=setTimeout(S,t)),h}return t=a(t)||0,r(n)&&(g=!!n.leading,v="maxWait"in n,d=v?s(a(n.maxWait)||0,t):d,b="trailing"in n?!!n.trailing:b),N.cancel=x,N.flush=A,N}e.exports=c},45881:function(e,t,n){var r=n(69968),i=n(95243),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\\u0300-\\u036f",s="\\ufe20-\\ufe2f",l="\\u20d0-\\u20ff",c=o+s+l,u="["+c+"]",d=RegExp(u,"g");function h(e){return e=i(e),e&&e.replace(a,r).replace(d,"")}e.exports=h},88088:function(e,t,n){var r=n(96576),i=n(90313),a=n(23945),o=n(65406),s=a((function(e,t){return o(e)?r(e,i(t,1,o,!0)):[]}));e.exports=s},46285:function(e){function t(e,t){return e===t||e!==e&&t!==t}e.exports=t},81936:function(e,t,n){var r=n(77317),i=n(92154),a=r(i);e.exports=a},92154:function(e,t,n){var r=n(37250),i=n(3334),a=n(67642),o=Math.max;function s(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:a(n);return l<0&&(l=o(s+l,0)),r(e,i(t,3),l)}e.exports=s},24576:function(e,t,n){var r=n(77317),i=n(40458),a=r(i);e.exports=a},40458:function(e,t,n){var r=n(37250),i=n(3334),a=n(67642),o=Math.max,s=Math.min;function l(e,t,n){var l=null==e?0:e.length;if(!l)return-1;var c=l-1;return void 0!==n&&(c=a(n),c=n<0?o(l+c,0):s(c,l-1)),r(e,i(t,3),c,!0)}e.exports=l},75857:function(e,t,n){var r=n(90313);function i(e){var t=null==e?0:e.length;return t?r(e,1):[]}e.exports=i},53435:function(e,t,n){var r=n(90313),i=1/0;function a(e){var t=null==e?0:e.length;return t?r(e,i):[]}e.exports=a},68371:function(e,t,n){var r=n(35636),i=n(23997),a=n(25288);function o(e,t){return null==e?e:r(e,i(t),a)}e.exports=o},46123:function(e,t,n){var r=n(57923);function i(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}e.exports=i},52103:function(e,t,n){var r=n(63599),i=n(85899);function a(e,t){return null!=e&&i(e,t,r)}e.exports=a},27276:function(e,t,n){var r=n(43636),i=n(85899);function a(e,t){return null!=e&&i(e,t,r)}e.exports=a},13981:function(e){function t(e){return e&&e.length?e[0]:void 0}e.exports=t},22053:function(e){function t(e){return e}e.exports=t},65145:function(e,t,n){var r=n(2478),i=n(36529),a=n(8138),o=n(67642),s=n(39817),l=Math.max;function c(e,t,n,c){e=i(e)?e:s(e),n=n&&!c?o(n):0;var u=e.length;return n<0&&(n=l(u+n,0)),a(e)?n<=u&&e.indexOf(t,n)>-1:!!u&&r(e,t,n)>-1}e.exports=c},3283:function(e,t,n){var r=n(56027),i=n(80547),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},53142:function(e){var t=Array.isArray;e.exports=t},36529:function(e,t,n){var r=n(93655),i=n(65387);function a(e){return null!=e&&i(e.length)&&!r(e)}e.exports=a},65406:function(e,t,n){var r=n(36529),i=n(80547);function a(e){return i(e)&&r(e)}e.exports=a},75853:function(e,t,n){e=n.nmd(e);var r=n(78942),i=n(34772),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,s=o&&o.exports===a,l=s?r.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||i;e.exports=u},3514:function(e,t,n){var r=n(195),i=n(28486),a=n(3283),o=n(53142),s=n(36529),l=n(75853),c=n(84882),u=n(8666),d="[object Map]",h="[object Set]",p=Object.prototype,f=p.hasOwnProperty;function m(e){if(null==e)return!0;if(s(e)&&(o(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||a(e)))return!e.length;var t=i(e);if(t==d||t==h)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(f.call(e,n))return!1;return!0}e.exports=m},46343:function(e,t,n){var r=n(94687);function i(e,t){return r(e,t)}e.exports=i},93655:function(e,t,n){var r=n(87379),i=n(41580),a="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function c(e){if(!i(e))return!1;var t=r(e);return t==o||t==s||t==a||t==l}e.exports=c},65387:function(e){var t=9007199254740991;function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}e.exports=n},37681:function(e,t,n){var r=n(80777),i=n(49460),a=n(2306),o=a&&a.isMap,s=o?i(o):r;e.exports=s},41580:function(e){function t(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=t},80547:function(e){function t(e){return null!=e&&"object"==typeof e}e.exports=t},48360:function(e,t,n){var r=n(87379),i=n(74784),a=n(80547),o="[object Object]",s=Function.prototype,l=Object.prototype,c=s.toString,u=l.hasOwnProperty,d=c.call(Object);function h(e){if(!a(e)||r(e)!=o)return!1;var t=i(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}e.exports=h},83943:function(e,t,n){var r=n(81935),i=n(49460),a=n(2306),o=a&&a.isSet,s=o?i(o):r;e.exports=s},8138:function(e,t,n){var r=n(87379),i=n(53142),a=n(80547),o="[object String]";function s(e){return"string"==typeof e||!i(e)&&a(e)&&r(e)==o}e.exports=s},51187:function(e,t,n){var r=n(87379),i=n(80547),a="[object Symbol]";function o(e){return"symbol"==typeof e||i(e)&&r(e)==a}e.exports=o},8666:function(e,t,n){var r=n(70674),i=n(49460),a=n(2306),o=a&&a.isTypedArray,s=o?i(o):r;e.exports=s},81211:function(e,t,n){var r=n(10358),i=n(195),a=n(36529);function o(e){return a(e)?r(e):i(e)}e.exports=o},25288:function(e,t,n){var r=n(10358),i=n(57200),a=n(36529);function o(e){return a(e)?r(e,!0):i(e)}e.exports=o},45250:function(e,t,n){var r;
/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/e=n.nmd(e),function(){var i,a="4.17.21",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",p=1,f=2,m=4,g=1,v=2,b=1,y=2,w=4,E=8,_=16,S=32,k=64,x=128,A=256,N=512,C=30,T="...",R=800,O=16,I=1,L=2,D=3,P=1/0,M=9007199254740991,B=17976931348623157e292,F=NaN,$=4294967295,U=$-1,j=$>>>1,V=[["ary",x],["bind",b],["bindKey",y],["curry",E],["curryRight",_],["flip",N],["partial",S],["partialRight",k],["rearg",A]],K="[object Arguments]",H="[object Array]",G="[object AsyncFunction]",z="[object Boolean]",q="[object Date]",X="[object DOMException]",W="[object Error]",Y="[object Function]",Q="[object GeneratorFunction]",J="[object Map]",Z="[object Number]",ee="[object Null]",te="[object Object]",ne="[object Promise]",re="[object Proxy]",ie="[object RegExp]",ae="[object Set]",oe="[object String]",se="[object Symbol]",le="[object Undefined]",ce="[object WeakMap]",ue="[object WeakSet]",de="[object ArrayBuffer]",he="[object DataView]",pe="[object Float32Array]",fe="[object Float64Array]",me="[object Int8Array]",ge="[object Int16Array]",ve="[object Int32Array]",be="[object Uint8Array]",ye="[object Uint8ClampedArray]",we="[object Uint16Array]",Ee="[object Uint32Array]",_e=/\b__p \+= '';/g,Se=/\b(__p \+=) '' \+/g,ke=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xe=/&(?:amp|lt|gt|quot|#39);/g,Ae=/[&<>"']/g,Ne=RegExp(xe.source),Ce=RegExp(Ae.source),Te=/<%-([\s\S]+?)%>/g,Re=/<%([\s\S]+?)%>/g,Oe=/<%=([\s\S]+?)%>/g,Ie=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Le=/^\w*$/,De=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,Me=RegExp(Pe.source),Be=/^\s+/,Fe=/\s/,$e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ue=/\{\n\/\* \[wrapped with (.+)\] \*/,je=/,? & /,Ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ke=/[()=,{}\[\]\/\s]/,He=/\\(\\)?/g,Ge=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ze=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,Xe=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,Ye=/^0o[0-7]+$/i,Qe=/^(?:0|[1-9]\d*)$/,Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,et=/['\n\r\u2028\u2029\\]/g,tt="\\ud800-\\udfff",nt="\\u0300-\\u036f",rt="\\ufe20-\\ufe2f",it="\\u20d0-\\u20ff",at=nt+rt+it,ot="\\u2700-\\u27bf",st="a-z\\xdf-\\xf6\\xf8-\\xff",lt="\\xac\\xb1\\xd7\\xf7",ct="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ut="\\u2000-\\u206f",dt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ht="A-Z\\xc0-\\xd6\\xd8-\\xde",pt="\\ufe0e\\ufe0f",ft=lt+ct+ut+dt,mt="[']",gt="["+tt+"]",vt="["+ft+"]",bt="["+at+"]",yt="\\d+",wt="["+ot+"]",Et="["+st+"]",_t="[^"+tt+ft+yt+ot+st+ht+"]",St="\\ud83c[\\udffb-\\udfff]",kt="(?:"+bt+"|"+St+")",xt="[^"+tt+"]",At="(?:\\ud83c[\\udde6-\\uddff]){2}",Nt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ct="["+ht+"]",Tt="\\u200d",Rt="(?:"+Et+"|"+_t+")",Ot="(?:"+Ct+"|"+_t+")",It="(?:"+mt+"(?:d|ll|m|re|s|t|ve))?",Lt="(?:"+mt+"(?:D|LL|M|RE|S|T|VE))?",Dt=kt+"?",Pt="["+pt+"]?",Mt="(?:"+Tt+"(?:"+[xt,At,Nt].join("|")+")"+Pt+Dt+")*",Bt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ft="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$t=Pt+Dt+Mt,Ut="(?:"+[wt,At,Nt].join("|")+")"+$t,jt="(?:"+[xt+bt+"?",bt,At,Nt,gt].join("|")+")",Vt=RegExp(mt,"g"),Kt=RegExp(bt,"g"),Ht=RegExp(St+"(?="+St+")|"+jt+$t,"g"),Gt=RegExp([Ct+"?"+Et+"+"+It+"(?="+[vt,Ct,"$"].join("|")+")",Ot+"+"+Lt+"(?="+[vt,Ct+Rt,"$"].join("|")+")",Ct+"?"+Rt+"+"+It,Ct+"+"+Lt,Ft,Bt,yt,Ut].join("|"),"g"),zt=RegExp("["+Tt+tt+at+pt+"]"),qt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Wt=-1,Yt={};Yt[pe]=Yt[fe]=Yt[me]=Yt[ge]=Yt[ve]=Yt[be]=Yt[ye]=Yt[we]=Yt[Ee]=!0,Yt[K]=Yt[H]=Yt[de]=Yt[z]=Yt[he]=Yt[q]=Yt[W]=Yt[Y]=Yt[J]=Yt[Z]=Yt[te]=Yt[ie]=Yt[ae]=Yt[oe]=Yt[ce]=!1;var Qt={};Qt[K]=Qt[H]=Qt[de]=Qt[he]=Qt[z]=Qt[q]=Qt[pe]=Qt[fe]=Qt[me]=Qt[ge]=Qt[ve]=Qt[J]=Qt[Z]=Qt[te]=Qt[ie]=Qt[ae]=Qt[oe]=Qt[se]=Qt[be]=Qt[ye]=Qt[we]=Qt[Ee]=!0,Qt[W]=Qt[Y]=Qt[ce]=!1;var Jt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Zt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},en={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},tn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nn=parseFloat,rn=parseInt,an="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,on="object"==typeof self&&self&&self.Object===Object&&self,sn=an||on||Function("return this")(),ln=t&&!t.nodeType&&t,cn=ln&&e&&!e.nodeType&&e,un=cn&&cn.exports===ln,dn=un&&an.process,hn=function(){try{var e=cn&&cn.require&&cn.require("util").types;return e||dn&&dn.binding&&dn.binding("util")}catch(t){}}(),pn=hn&&hn.isArrayBuffer,fn=hn&&hn.isDate,mn=hn&&hn.isMap,gn=hn&&hn.isRegExp,vn=hn&&hn.isSet,bn=hn&&hn.isTypedArray;function yn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function wn(e,t,n,r){var i=-1,a=null==e?0:e.length;while(++i<a){var o=e[i];t(r,o,n(o),e)}return r}function En(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}function _n(e,t){var n=null==e?0:e.length;while(n--)if(!1===t(e[n],n,e))break;return e}function Sn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!t(e[n],n,e))return!1;return!0}function kn(e,t){var n=-1,r=null==e?0:e.length,i=0,a=[];while(++n<r){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function xn(e,t){var n=null==e?0:e.length;return!!n&&Bn(e,t,0)>-1}function An(e,t,n){var r=-1,i=null==e?0:e.length;while(++r<i)if(n(t,e[r]))return!0;return!1}function Nn(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}function Cn(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}function Tn(e,t,n,r){var i=-1,a=null==e?0:e.length;r&&a&&(n=e[++i]);while(++i<a)n=t(n,e[i],i,e);return n}function Rn(e,t,n,r){var i=null==e?0:e.length;r&&i&&(n=e[--i]);while(i--)n=t(n,e[i],i,e);return n}function On(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var In=jn("length");function Ln(e){return e.split("")}function Dn(e){return e.match(Ve)||[]}function Pn(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Mn(e,t,n,r){var i=e.length,a=n+(r?1:-1);while(r?a--:++a<i)if(t(e[a],a,e))return a;return-1}function Bn(e,t,n){return t===t?pr(e,t,n):Mn(e,$n,n)}function Fn(e,t,n,r){var i=n-1,a=e.length;while(++i<a)if(r(e[i],t))return i;return-1}function $n(e){return e!==e}function Un(e,t){var n=null==e?0:e.length;return n?Gn(e,t)/n:F}function jn(e){return function(t){return null==t?i:t[e]}}function Vn(e){return function(t){return null==e?i:e[t]}}function Kn(e,t,n,r,i){return i(e,(function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)})),n}function Hn(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function Gn(e,t){var n,r=-1,a=e.length;while(++r<a){var o=t(e[r]);o!==i&&(n=n===i?o:n+o)}return n}function zn(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function qn(e,t){return Nn(t,(function(t){return[t,e[t]]}))}function Xn(e){return e?e.slice(0,vr(e)+1).replace(Be,""):e}function Wn(e){return function(t){return e(t)}}function Yn(e,t){return Nn(t,(function(t){return e[t]}))}function Qn(e,t){return e.has(t)}function Jn(e,t){var n=-1,r=e.length;while(++n<r&&Bn(t,e[n],0)>-1);return n}function Zn(e,t){var n=e.length;while(n--&&Bn(t,e[n],0)>-1);return n}function er(e,t){var n=e.length,r=0;while(n--)e[n]===t&&++r;return r}var tr=Vn(Jt),nr=Vn(Zt);function rr(e){return"\\"+tn[e]}function ir(e,t){return null==e?i:e[t]}function ar(e){return zt.test(e)}function or(e){return qt.test(e)}function sr(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function lr(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cr(e,t){return function(n){return e(t(n))}}function ur(e,t){var n=-1,r=e.length,i=0,a=[];while(++n<r){var o=e[n];o!==t&&o!==h||(e[n]=h,a[i++]=n)}return a}function dr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pr(e,t,n){var r=n-1,i=e.length;while(++r<i)if(e[r]===t)return r;return-1}function fr(e,t,n){var r=n+1;while(r--)if(e[r]===t)return r;return r}function mr(e){return ar(e)?yr(e):In(e)}function gr(e){return ar(e)?wr(e):Ln(e)}function vr(e){var t=e.length;while(t--&&Fe.test(e.charAt(t)));return t}var br=Vn(en);function yr(e){var t=Ht.lastIndex=0;while(Ht.test(e))++t;return t}function wr(e){return e.match(Ht)||[]}function Er(e){return e.match(Gt)||[]}var _r=function e(t){t=null==t?sn:Sr.defaults(sn.Object(),t,Sr.pick(sn,Xt));var n=t.Array,r=t.Date,Fe=t.Error,Ve=t.Function,tt=t.Math,nt=t.Object,rt=t.RegExp,it=t.String,at=t.TypeError,ot=n.prototype,st=Ve.prototype,lt=nt.prototype,ct=t["__core-js_shared__"],ut=st.toString,dt=lt.hasOwnProperty,ht=0,pt=function(){var e=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ft=lt.toString,mt=ut.call(nt),gt=sn._,vt=rt("^"+ut.call(dt).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bt=un?t.Buffer:i,yt=t.Symbol,wt=t.Uint8Array,Et=bt?bt.allocUnsafe:i,_t=cr(nt.getPrototypeOf,nt),St=nt.create,kt=lt.propertyIsEnumerable,xt=ot.splice,At=yt?yt.isConcatSpreadable:i,Nt=yt?yt.iterator:i,Ct=yt?yt.toStringTag:i,Tt=function(){try{var e=qo(nt,"defineProperty");return e({},"",{}),e}catch(t){}}(),Rt=t.clearTimeout!==sn.clearTimeout&&t.clearTimeout,Ot=r&&r.now!==sn.Date.now&&r.now,It=t.setTimeout!==sn.setTimeout&&t.setTimeout,Lt=tt.ceil,Dt=tt.floor,Pt=nt.getOwnPropertySymbols,Mt=bt?bt.isBuffer:i,Bt=t.isFinite,Ft=ot.join,$t=cr(nt.keys,nt),Ut=tt.max,jt=tt.min,Ht=r.now,Gt=t.parseInt,zt=tt.random,qt=ot.reverse,Jt=qo(t,"DataView"),Zt=qo(t,"Map"),en=qo(t,"Promise"),tn=qo(t,"Set"),an=qo(t,"WeakMap"),on=qo(nt,"create"),ln=an&&new an,cn={},dn=Is(Jt),hn=Is(Zt),In=Is(en),Ln=Is(tn),Vn=Is(an),pr=yt?yt.prototype:i,yr=pr?pr.valueOf:i,wr=pr?pr.toString:i;function _r(e){if(xu(e)&&!lu(e)&&!(e instanceof Nr)){if(e instanceof Ar)return e;if(dt.call(e,"__wrapped__"))return Ds(e)}return new Ar(e)}var kr=function(){function e(){}return function(t){if(!ku(t))return{};if(St)return St(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function xr(){}function Ar(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Nr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$,this.__views__=[]}function Cr(){var e=new Nr(this.__wrapped__);return e.__actions__=ro(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ro(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ro(this.__views__),e}function Tr(){if(this.__filtered__){var e=new Nr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Rr(){var e=this.__wrapped__.value(),t=this.__dir__,n=lu(e),r=t<0,i=n?e.length:0,a=Jo(0,i,this.__views__),o=a.start,s=a.end,l=s-o,c=r?s:o-1,u=this.__iteratees__,d=u.length,h=0,p=jt(l,this.__takeCount__);if(!n||!r&&i==l&&p==l)return Fa(e,this.__actions__);var f=[];e:while(l--&&h<p){c+=t;var m=-1,g=e[c];while(++m<d){var v=u[m],b=v.iteratee,y=v.type,w=b(g);if(y==L)g=w;else if(!w){if(y==I)continue e;break e}}f[h++]=g}return f}function Or(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Ir(){this.__data__=on?on(null):{},this.size=0}function Lr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Dr(e){var t=this.__data__;if(on){var n=t[e];return n===u?i:n}return dt.call(t,e)?t[e]:i}function Pr(e){var t=this.__data__;return on?t[e]!==i:dt.call(t,e)}function Mr(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=on&&t===i?u:t,this}function Br(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Fr(){this.__data__=[],this.size=0}function $r(e){var t=this.__data__,n=ui(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():xt.call(t,n,1),--this.size,!0}function Ur(e){var t=this.__data__,n=ui(t,e);return n<0?i:t[n][1]}function jr(e){return ui(this.__data__,e)>-1}function Vr(e,t){var n=this.__data__,r=ui(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Kr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Hr(){this.size=0,this.__data__={hash:new Or,map:new(Zt||Br),string:new Or}}function Gr(e){var t=Go(this,e)["delete"](e);return this.size-=t?1:0,t}function zr(e){return Go(this,e).get(e)}function qr(e){return Go(this,e).has(e)}function Xr(e,t){var n=Go(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Wr(e){var t=-1,n=null==e?0:e.length;this.__data__=new Kr;while(++t<n)this.add(e[t])}function Yr(e){return this.__data__.set(e,u),this}function Qr(e){return this.__data__.has(e)}function Jr(e){var t=this.__data__=new Br(e);this.size=t.size}function Zr(){this.__data__=new Br,this.size=0}function ei(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function ti(e){return this.__data__.get(e)}function ni(e){return this.__data__.has(e)}function ri(e,t){var n=this.__data__;if(n instanceof Br){var r=n.__data__;if(!Zt||r.length<o-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kr(r)}return n.set(e,t),this.size=n.size,this}function ii(e,t){var n=lu(e),r=!n&&su(e),i=!n&&!r&&pu(e),a=!n&&!r&&!i&&Uu(e),o=n||r||i||a,s=o?zn(e.length,it):[],l=s.length;for(var c in e)!t&&!dt.call(e,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||os(c,l))||s.push(c);return s}function ai(e){var t=e.length;return t?e[va(0,t-1)]:i}function oi(e,t){return Ts(ro(e),gi(t,0,e.length))}function si(e){return Ts(ro(e))}function li(e,t,n){(n!==i&&!iu(e[t],n)||n===i&&!(t in e))&&fi(e,t,n)}function ci(e,t,n){var r=e[t];dt.call(e,t)&&iu(r,n)&&(n!==i||t in e)||fi(e,t,n)}function ui(e,t){var n=e.length;while(n--)if(iu(e[n][0],t))return n;return-1}function di(e,t,n,r){return _i(e,(function(e,i,a){t(r,e,n(e),a)})),r}function hi(e,t){return e&&io(t,_d(t),e)}function pi(e,t){return e&&io(t,Sd(t),e)}function fi(e,t,n){"__proto__"==t&&Tt?Tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function mi(e,t){var r=-1,a=t.length,o=n(a),s=null==e;while(++r<a)o[r]=s?i:gd(e,t[r]);return o}function gi(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function vi(e,t,n,r,a,o){var s,l=t&p,c=t&f,u=t&m;if(n&&(s=a?n(e,r,a,o):n(e)),s!==i)return s;if(!ku(e))return e;var d=lu(e);if(d){if(s=ts(e),!l)return ro(e,s)}else{var h=Qo(e),g=h==Y||h==Q;if(pu(e))return qa(e,l);if(h==te||h==K||g&&!a){if(s=c||g?{}:ns(e),!l)return c?oo(e,pi(s,e)):ao(e,hi(s,e))}else{if(!Qt[h])return a?e:{};s=rs(e,h,l)}}o||(o=new Jr);var v=o.get(e);if(v)return v;o.set(e,s),Bu(e)?e.forEach((function(r){s.add(vi(r,t,n,r,e,o))})):Au(e)&&e.forEach((function(r,i){s.set(i,vi(r,t,n,i,e,o))}));var b=u?c?Uo:$o:c?Sd:_d,y=d?i:b(e);return En(y||e,(function(r,i){y&&(i=r,r=e[i]),ci(s,i,vi(r,t,n,i,e,o))})),s}function bi(e){var t=_d(e);return function(n){return yi(n,e,t)}}function yi(e,t,n){var r=n.length;if(null==e)return!r;e=nt(e);while(r--){var a=n[r],o=t[a],s=e[a];if(s===i&&!(a in e)||!o(s))return!1}return!0}function wi(e,t,n){if("function"!=typeof e)throw new at(l);return xs((function(){e.apply(i,n)}),t)}function Ei(e,t,n,r){var i=-1,a=xn,s=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=Nn(t,Wn(n))),r?(a=An,s=!1):t.length>=o&&(a=Qn,s=!1,t=new Wr(t));e:while(++i<l){var d=e[i],h=null==n?d:n(d);if(d=r||0!==d?d:0,s&&h===h){var p=u;while(p--)if(t[p]===h)continue e;c.push(d)}else a(t,h,r)||c.push(d)}return c}_r.templateSettings={escape:Te,evaluate:Re,interpolate:Oe,variable:"",imports:{_:_r}},_r.prototype=xr.prototype,_r.prototype.constructor=_r,Ar.prototype=kr(xr.prototype),Ar.prototype.constructor=Ar,Nr.prototype=kr(xr.prototype),Nr.prototype.constructor=Nr,Or.prototype.clear=Ir,Or.prototype["delete"]=Lr,Or.prototype.get=Dr,Or.prototype.has=Pr,Or.prototype.set=Mr,Br.prototype.clear=Fr,Br.prototype["delete"]=$r,Br.prototype.get=Ur,Br.prototype.has=jr,Br.prototype.set=Vr,Kr.prototype.clear=Hr,Kr.prototype["delete"]=Gr,Kr.prototype.get=zr,Kr.prototype.has=qr,Kr.prototype.set=Xr,Wr.prototype.add=Wr.prototype.push=Yr,Wr.prototype.has=Qr,Jr.prototype.clear=Zr,Jr.prototype["delete"]=ei,Jr.prototype.get=ti,Jr.prototype.has=ni,Jr.prototype.set=ri;var _i=co(Oi),Si=co(Ii,!0);function ki(e,t){var n=!0;return _i(e,(function(e,r,i){return n=!!t(e,r,i),n})),n}function xi(e,t,n){var r=-1,a=e.length;while(++r<a){var o=e[r],s=t(o);if(null!=s&&(l===i?s===s&&!$u(s):n(s,l)))var l=s,c=o}return c}function Ai(e,t,n,r){var a=e.length;n=Xu(n),n<0&&(n=-n>a?0:a+n),r=r===i||r>a?a:Xu(r),r<0&&(r+=a),r=n>r?0:Wu(r);while(n<r)e[n++]=t;return e}function Ni(e,t){var n=[];return _i(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function Ci(e,t,n,r,i){var a=-1,o=e.length;n||(n=as),i||(i=[]);while(++a<o){var s=e[a];t>0&&n(s)?t>1?Ci(s,t-1,n,r,i):Cn(i,s):r||(i[i.length]=s)}return i}var Ti=uo(),Ri=uo(!0);function Oi(e,t){return e&&Ti(e,t,_d)}function Ii(e,t){return e&&Ri(e,t,_d)}function Li(e,t){return kn(t,(function(t){return Eu(e[t])}))}function Di(e,t){t=Ka(t,e);var n=0,r=t.length;while(null!=e&&n<r)e=e[Os(t[n++])];return n&&n==r?e:i}function Pi(e,t,n){var r=t(e);return lu(e)?r:Cn(r,n(e))}function Mi(e){return null==e?e===i?le:ee:Ct&&Ct in nt(e)?Xo(e):ys(e)}function Bi(e,t){return e>t}function Fi(e,t){return null!=e&&dt.call(e,t)}function $i(e,t){return null!=e&&t in nt(e)}function Ui(e,t,n){return e>=jt(t,n)&&e<Ut(t,n)}function ji(e,t,r){var a=r?An:xn,o=e[0].length,s=e.length,l=s,c=n(s),u=1/0,d=[];while(l--){var h=e[l];l&&t&&(h=Nn(h,Wn(t))),u=jt(h.length,u),c[l]=!r&&(t||o>=120&&h.length>=120)?new Wr(l&&h):i}h=e[0];var p=-1,f=c[0];e:while(++p<o&&d.length<u){var m=h[p],g=t?t(m):m;if(m=r||0!==m?m:0,!(f?Qn(f,g):a(d,g,r))){l=s;while(--l){var v=c[l];if(!(v?Qn(v,g):a(e[l],g,r)))continue e}f&&f.push(g),d.push(m)}}return d}function Vi(e,t,n,r){return Oi(e,(function(e,i,a){t(r,n(e),i,a)})),r}function Ki(e,t,n){t=Ka(t,e),e=Es(e,t);var r=null==e?e:e[Os(al(t))];return null==r?i:yn(r,e,n)}function Hi(e){return xu(e)&&Mi(e)==K}function Gi(e){return xu(e)&&Mi(e)==de}function zi(e){return xu(e)&&Mi(e)==q}function qi(e,t,n,r,i){return e===t||(null==e||null==t||!xu(e)&&!xu(t)?e!==e&&t!==t:Xi(e,t,n,r,qi,i))}function Xi(e,t,n,r,i,a){var o=lu(e),s=lu(t),l=o?H:Qo(e),c=s?H:Qo(t);l=l==K?te:l,c=c==K?te:c;var u=l==te,d=c==te,h=l==c;if(h&&pu(e)){if(!pu(t))return!1;o=!0,u=!1}if(h&&!u)return a||(a=new Jr),o||Uu(e)?Po(e,t,n,r,i,a):Mo(e,t,l,n,r,i,a);if(!(n&g)){var p=u&&dt.call(e,"__wrapped__"),f=d&&dt.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,v=f?t.value():t;return a||(a=new Jr),i(m,v,n,r,a)}}return!!h&&(a||(a=new Jr),Bo(e,t,n,r,i,a))}function Wi(e){return xu(e)&&Qo(e)==J}function Yi(e,t,n,r){var a=n.length,o=a,s=!r;if(null==e)return!o;e=nt(e);while(a--){var l=n[a];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}while(++a<o){l=n[a];var c=l[0],u=e[c],d=l[1];if(s&&l[2]){if(u===i&&!(c in e))return!1}else{var h=new Jr;if(r)var p=r(u,d,c,e,t,h);if(!(p===i?qi(d,u,g|v,r,h):p))return!1}}return!0}function Qi(e){if(!ku(e)||ds(e))return!1;var t=Eu(e)?vt:We;return t.test(Is(e))}function Ji(e){return xu(e)&&Mi(e)==ie}function Zi(e){return xu(e)&&Qo(e)==ae}function ea(e){return xu(e)&&Su(e.length)&&!!Yt[Mi(e)]}function ta(e){return"function"==typeof e?e:null==e?Rh:"object"==typeof e?lu(e)?sa(e[0],e[1]):oa(e):Kh(e)}function na(e){if(!ps(e))return $t(e);var t=[];for(var n in nt(e))dt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ra(e){if(!ku(e))return bs(e);var t=ps(e),n=[];for(var r in e)("constructor"!=r||!t&&dt.call(e,r))&&n.push(r);return n}function ia(e,t){return e<t}function aa(e,t){var r=-1,i=uu(e)?n(e.length):[];return _i(e,(function(e,n,a){i[++r]=t(e,n,a)})),i}function oa(e){var t=zo(e);return 1==t.length&&t[0][2]?ms(t[0][0],t[0][1]):function(n){return n===e||Yi(n,e,t)}}function sa(e,t){return ls(e)&&fs(t)?ms(Os(e),t):function(n){var r=gd(n,e);return r===i&&r===t?bd(n,e):qi(t,r,g|v)}}function la(e,t,n,r,a){e!==t&&Ti(t,(function(o,s){if(a||(a=new Jr),ku(o))ca(e,t,s,n,la,r,a);else{var l=r?r(Ss(e,s),o,s+"",e,t,a):i;l===i&&(l=o),li(e,s,l)}}),Sd)}function ca(e,t,n,r,a,o,s){var l=Ss(e,n),c=Ss(t,n),u=s.get(c);if(u)li(e,n,u);else{var d=o?o(l,c,n+"",e,t,s):i,h=d===i;if(h){var p=lu(c),f=!p&&pu(c),m=!p&&!f&&Uu(c);d=c,p||f||m?lu(l)?d=l:du(l)?d=ro(l):f?(h=!1,d=qa(c,!0)):m?(h=!1,d=Ja(c,!0)):d=[]:Du(c)||su(c)?(d=l,su(l)?d=Qu(l):ku(l)&&!Eu(l)||(d=ns(c))):h=!1}h&&(s.set(c,d),a(d,c,r,o,s),s["delete"](c)),li(e,n,d)}}function ua(e,t){var n=e.length;if(n)return t+=t<0?n:0,os(t,n)?e[t]:i}function da(e,t,n){t=t.length?Nn(t,(function(e){return lu(e)?function(t){return Di(t,1===e.length?e[0]:e)}:e})):[Rh];var r=-1;t=Nn(t,Wn(Ho()));var i=aa(e,(function(e,n,i){var a=Nn(t,(function(t){return t(e)}));return{criteria:a,index:++r,value:e}}));return Hn(i,(function(e,t){return eo(e,t,n)}))}function ha(e,t){return pa(e,t,(function(t,n){return bd(e,n)}))}function pa(e,t,n){var r=-1,i=t.length,a={};while(++r<i){var o=t[r],s=Di(e,o);n(s,o)&&Sa(a,Ka(o,e),s)}return a}function fa(e){return function(t){return Di(t,e)}}function ma(e,t,n,r){var i=r?Fn:Bn,a=-1,o=t.length,s=e;e===t&&(t=ro(t)),n&&(s=Nn(e,Wn(n)));while(++a<o){var l=0,c=t[a],u=n?n(c):c;while((l=i(s,u,l,r))>-1)s!==e&&xt.call(s,l,1),xt.call(e,l,1)}return e}function ga(e,t){var n=e?t.length:0,r=n-1;while(n--){var i=t[n];if(n==r||i!==a){var a=i;os(i)?xt.call(e,i,1):Pa(e,i)}}return e}function va(e,t){return e+Dt(zt()*(t-e+1))}function ba(e,t,r,i){var a=-1,o=Ut(Lt((t-e)/(r||1)),0),s=n(o);while(o--)s[i?o:++a]=e,e+=r;return s}function ya(e,t){var n="";if(!e||t<1||t>M)return n;do{t%2&&(n+=e),t=Dt(t/2),t&&(e+=e)}while(t);return n}function wa(e,t){return As(ws(e,t,Rh),e+"")}function Ea(e){return ai(jd(e))}function _a(e,t){var n=jd(e);return Ts(n,gi(t,0,n.length))}function Sa(e,t,n,r){if(!ku(e))return e;t=Ka(t,e);var a=-1,o=t.length,s=o-1,l=e;while(null!=l&&++a<o){var c=Os(t[a]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(a!=s){var d=l[c];u=r?r(d,c,l):i,u===i&&(u=ku(d)?d:os(t[a+1])?[]:{})}ci(l,c,u),l=l[c]}return e}var ka=ln?function(e,t){return ln.set(e,t),e}:Rh,xa=Tt?function(e,t){return Tt(e,"toString",{configurable:!0,enumerable:!1,value:Ah(t),writable:!0})}:Rh;function Aa(e){return Ts(jd(e))}function Na(e,t,r){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;var o=n(a);while(++i<a)o[i]=e[i+t];return o}function Ca(e,t){var n;return _i(e,(function(e,r,i){return n=t(e,r,i),!n})),!!n}function Ta(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=j){while(r<i){var a=r+i>>>1,o=e[a];null!==o&&!$u(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return Ra(e,t,Rh,n)}function Ra(e,t,n,r){var a=0,o=null==e?0:e.length;if(0===o)return 0;t=n(t);var s=t!==t,l=null===t,c=$u(t),u=t===i;while(a<o){var d=Dt((a+o)/2),h=n(e[d]),p=h!==i,f=null===h,m=h===h,g=$u(h);if(s)var v=r||m;else v=u?m&&(r||p):l?m&&p&&(r||!f):c?m&&p&&!f&&(r||!g):!f&&!g&&(r?h<=t:h<t);v?a=d+1:o=d}return jt(o,U)}function Oa(e,t){var n=-1,r=e.length,i=0,a=[];while(++n<r){var o=e[n],s=t?t(o):o;if(!n||!iu(s,l)){var l=s;a[i++]=0===o?0:o}}return a}function Ia(e){return"number"==typeof e?e:$u(e)?F:+e}function La(e){if("string"==typeof e)return e;if(lu(e))return Nn(e,La)+"";if($u(e))return wr?wr.call(e):"";var t=e+"";return"0"==t&&1/e==-P?"-0":t}function Da(e,t,n){var r=-1,i=xn,a=e.length,s=!0,l=[],c=l;if(n)s=!1,i=An;else if(a>=o){var u=t?null:To(e);if(u)return dr(u);s=!1,i=Qn,c=new Wr}else c=t?[]:l;e:while(++r<a){var d=e[r],h=t?t(d):d;if(d=n||0!==d?d:0,s&&h===h){var p=c.length;while(p--)if(c[p]===h)continue e;t&&c.push(h),l.push(d)}else i(c,h,n)||(c!==l&&c.push(h),l.push(d))}return l}function Pa(e,t){return t=Ka(t,e),e=Es(e,t),null==e||delete e[Os(al(t))]}function Ma(e,t,n,r){return Sa(e,t,n(Di(e,t)),r)}function Ba(e,t,n,r){var i=e.length,a=r?i:-1;while((r?a--:++a<i)&&t(e[a],a,e));return n?Na(e,r?0:a,r?a+1:i):Na(e,r?a+1:0,r?i:a)}function Fa(e,t){var n=e;return n instanceof Nr&&(n=n.value()),Tn(t,(function(e,t){return t.func.apply(t.thisArg,Cn([e],t.args))}),n)}function $a(e,t,r){var i=e.length;if(i<2)return i?Da(e[0]):[];var a=-1,o=n(i);while(++a<i){var s=e[a],l=-1;while(++l<i)l!=a&&(o[a]=Ei(o[a]||s,e[l],t,r))}return Da(Ci(o,1),t,r)}function Ua(e,t,n){var r=-1,a=e.length,o=t.length,s={};while(++r<a){var l=r<o?t[r]:i;n(s,e[r],l)}return s}function ja(e){return du(e)?e:[]}function Va(e){return"function"==typeof e?e:Rh}function Ka(e,t){return lu(e)?e:ls(e,t)?[e]:Rs(Zu(e))}var Ha=wa;function Ga(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:Na(e,t,n)}var za=Rt||function(e){return sn.clearTimeout(e)};function qa(e,t){if(t)return e.slice();var n=e.length,r=Et?Et(n):new e.constructor(n);return e.copy(r),r}function Xa(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}function Wa(e,t){var n=t?Xa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Ya(e){var t=new e.constructor(e.source,ze.exec(e));return t.lastIndex=e.lastIndex,t}function Qa(e){return yr?nt(yr.call(e)):{}}function Ja(e,t){var n=t?Xa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Za(e,t){if(e!==t){var n=e!==i,r=null===e,a=e===e,o=$u(e),s=t!==i,l=null===t,c=t===t,u=$u(t);if(!l&&!u&&!o&&e>t||o&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!a)return 1;if(!r&&!o&&!u&&e<t||u&&n&&a&&!r&&!o||l&&n&&a||!s&&a||!c)return-1}return 0}function eo(e,t,n){var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;while(++r<o){var l=Za(i[r],a[r]);if(l){if(r>=s)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}function to(e,t,r,i){var a=-1,o=e.length,s=r.length,l=-1,c=t.length,u=Ut(o-s,0),d=n(c+u),h=!i;while(++l<c)d[l]=t[l];while(++a<s)(h||a<o)&&(d[r[a]]=e[a]);while(u--)d[l++]=e[a++];return d}function no(e,t,r,i){var a=-1,o=e.length,s=-1,l=r.length,c=-1,u=t.length,d=Ut(o-l,0),h=n(d+u),p=!i;while(++a<d)h[a]=e[a];var f=a;while(++c<u)h[f+c]=t[c];while(++s<l)(p||a<o)&&(h[f+r[s]]=e[a++]);return h}function ro(e,t){var r=-1,i=e.length;t||(t=n(i));while(++r<i)t[r]=e[r];return t}function io(e,t,n,r){var a=!n;n||(n={});var o=-1,s=t.length;while(++o<s){var l=t[o],c=r?r(n[l],e[l],l,n,e):i;c===i&&(c=e[l]),a?fi(n,l,c):ci(n,l,c)}return n}function ao(e,t){return io(e,Wo(e),t)}function oo(e,t){return io(e,Yo(e),t)}function so(e,t){return function(n,r){var i=lu(n)?wn:di,a=t?t():{};return i(n,e,Ho(r,2),a)}}function lo(e){return wa((function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:i,s=a>2?n[2]:i;o=e.length>3&&"function"==typeof o?(a--,o):i,s&&ss(n[0],n[1],s)&&(o=a<3?i:o,a=1),t=nt(t);while(++r<a){var l=n[r];l&&e(t,l,r,o)}return t}))}function co(e,t){return function(n,r){if(null==n)return n;if(!uu(n))return e(n,r);var i=n.length,a=t?i:-1,o=nt(n);while(t?a--:++a<i)if(!1===r(o[a],a,o))break;return n}}function uo(e){return function(t,n,r){var i=-1,a=nt(t),o=r(t),s=o.length;while(s--){var l=o[e?s:++i];if(!1===n(a[l],l,a))break}return t}}function ho(e,t,n){var r=t&b,i=mo(e);function a(){var t=this&&this!==sn&&this instanceof a?i:e;return t.apply(r?n:this,arguments)}return a}function po(e){return function(t){t=Zu(t);var n=ar(t)?gr(t):i,r=n?n[0]:t.charAt(0),a=n?Ga(n,1).join(""):t.slice(1);return r[e]()+a}}function fo(e){return function(t){return Tn(Eh(Xd(t).replace(Vt,"")),e,"")}}function mo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=kr(e.prototype),r=e.apply(n,t);return ku(r)?r:n}}function go(e,t,r){var a=mo(e);function o(){var s=arguments.length,l=n(s),c=s,u=Ko(o);while(c--)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:ur(l,u);if(s-=d.length,s<r)return No(e,t,yo,o.placeholder,i,l,d,i,i,r-s);var h=this&&this!==sn&&this instanceof o?a:e;return yn(h,this,l)}return o}function vo(e){return function(t,n,r){var a=nt(t);if(!uu(t)){var o=Ho(n,3);t=_d(t),n=function(e){return o(a[e],e,a)}}var s=e(t,n,r);return s>-1?a[o?t[s]:s]:i}}function bo(e){return Fo((function(t){var n=t.length,r=n,a=Ar.prototype.thru;e&&t.reverse();while(r--){var o=t[r];if("function"!=typeof o)throw new at(l);if(a&&!s&&"wrapper"==Vo(o))var s=new Ar([],!0)}r=s?r:n;while(++r<n){o=t[r];var c=Vo(o),u="wrapper"==c?jo(o):i;s=u&&us(u[0])&&u[1]==(x|E|S|A)&&!u[4].length&&1==u[9]?s[Vo(u[0])].apply(s,u[3]):1==o.length&&us(o)?s[c]():s.thru(o)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&lu(r))return s.plant(r).value();var i=0,a=n?t[i].apply(this,e):r;while(++i<n)a=t[i].call(this,a);return a}}))}function yo(e,t,r,a,o,s,l,c,u,d){var h=t&x,p=t&b,f=t&y,m=t&(E|_),g=t&N,v=f?i:mo(e);function w(){var i=arguments.length,b=n(i),y=i;while(y--)b[y]=arguments[y];if(m)var E=Ko(w),_=er(b,E);if(a&&(b=to(b,a,o,m)),s&&(b=no(b,s,l,m)),i-=_,m&&i<d){var S=ur(b,E);return No(e,t,yo,w.placeholder,r,b,S,c,u,d-i)}var k=p?r:this,x=f?k[e]:e;return i=b.length,c?b=_s(b,c):g&&i>1&&b.reverse(),h&&u<i&&(b.length=u),this&&this!==sn&&this instanceof w&&(x=v||mo(x)),x.apply(k,b)}return w}function wo(e,t){return function(n,r){return Vi(n,e,t(r),{})}}function Eo(e,t){return function(n,r){var a;if(n===i&&r===i)return t;if(n!==i&&(a=n),r!==i){if(a===i)return r;"string"==typeof n||"string"==typeof r?(n=La(n),r=La(r)):(n=Ia(n),r=Ia(r)),a=e(n,r)}return a}}function _o(e){return Fo((function(t){return t=Nn(t,Wn(Ho())),wa((function(n){var r=this;return e(t,(function(e){return yn(e,r,n)}))}))}))}function So(e,t){t=t===i?" ":La(t);var n=t.length;if(n<2)return n?ya(t,e):t;var r=ya(t,Lt(e/mr(t)));return ar(t)?Ga(gr(r),0,e).join(""):r.slice(0,e)}function ko(e,t,r,i){var a=t&b,o=mo(e);function s(){var t=-1,l=arguments.length,c=-1,u=i.length,d=n(u+l),h=this&&this!==sn&&this instanceof s?o:e;while(++c<u)d[c]=i[c];while(l--)d[c++]=arguments[++t];return yn(h,a?r:this,d)}return s}function xo(e){return function(t,n,r){return r&&"number"!=typeof r&&ss(t,n,r)&&(n=r=i),t=qu(t),n===i?(n=t,t=0):n=qu(n),r=r===i?t<n?1:-1:qu(r),ba(t,n,r,e)}}function Ao(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Yu(t),n=Yu(n)),e(t,n)}}function No(e,t,n,r,a,o,s,l,c,u){var d=t&E,h=d?s:i,p=d?i:s,f=d?o:i,m=d?i:o;t|=d?S:k,t&=~(d?k:S),t&w||(t&=~(b|y));var g=[e,t,a,f,h,m,p,l,c,u],v=n.apply(i,g);return us(e)&&ks(v,g),v.placeholder=r,Ns(v,e,t)}function Co(e){var t=tt[e];return function(e,n){if(e=Yu(e),n=null==n?0:jt(Xu(n),292),n&&Bt(e)){var r=(Zu(e)+"e").split("e"),i=t(r[0]+"e"+(+r[1]+n));return r=(Zu(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}var To=tn&&1/dr(new tn([,-0]))[1]==P?function(e){return new tn(e)}:Fh;function Ro(e){return function(t){var n=Qo(t);return n==J?lr(t):n==ae?hr(t):qn(t,e(t))}}function Oo(e,t,n,r,a,o,s,c){var u=t&y;if(!u&&"function"!=typeof e)throw new at(l);var d=r?r.length:0;if(d||(t&=~(S|k),r=a=i),s=s===i?s:Ut(Xu(s),0),c=c===i?c:Xu(c),d-=a?a.length:0,t&k){var h=r,p=a;r=a=i}var f=u?i:jo(e),m=[e,t,n,r,a,h,p,o,s,c];if(f&&vs(m,f),e=m[0],t=m[1],n=m[2],r=m[3],a=m[4],c=m[9]=m[9]===i?u?0:e.length:Ut(m[9]-d,0),!c&&t&(E|_)&&(t&=~(E|_)),t&&t!=b)g=t==E||t==_?go(e,t,c):t!=S&&t!=(b|S)||a.length?yo.apply(i,m):ko(e,t,n,r);else var g=ho(e,t,n);var v=f?ka:ks;return Ns(v(g,m),e,t)}function Io(e,t,n,r){return e===i||iu(e,lt[n])&&!dt.call(r,n)?t:e}function Lo(e,t,n,r,a,o){return ku(e)&&ku(t)&&(o.set(t,e),la(e,t,i,Lo,o),o["delete"](t)),e}function Do(e){return Du(e)?i:e}function Po(e,t,n,r,a,o){var s=n&g,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var h=-1,p=!0,f=n&v?new Wr:i;o.set(e,t),o.set(t,e);while(++h<l){var m=e[h],b=t[h];if(r)var y=s?r(b,m,h,t,e,o):r(m,b,h,e,t,o);if(y!==i){if(y)continue;p=!1;break}if(f){if(!On(t,(function(e,t){if(!Qn(f,t)&&(m===e||a(m,e,n,r,o)))return f.push(t)}))){p=!1;break}}else if(m!==b&&!a(m,b,n,r,o)){p=!1;break}}return o["delete"](e),o["delete"](t),p}function Mo(e,t,n,r,i,a,o){switch(n){case he:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case de:return!(e.byteLength!=t.byteLength||!a(new wt(e),new wt(t)));case z:case q:case Z:return iu(+e,+t);case W:return e.name==t.name&&e.message==t.message;case ie:case oe:return e==t+"";case J:var s=lr;case ae:var l=r&g;if(s||(s=dr),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=v,o.set(e,t);var u=Po(s(e),s(t),r,i,a,o);return o["delete"](e),u;case se:if(yr)return yr.call(e)==yr.call(t)}return!1}function Bo(e,t,n,r,a,o){var s=n&g,l=$o(e),c=l.length,u=$o(t),d=u.length;if(c!=d&&!s)return!1;var h=c;while(h--){var p=l[h];if(!(s?p in t:dt.call(t,p)))return!1}var f=o.get(e),m=o.get(t);if(f&&m)return f==t&&m==e;var v=!0;o.set(e,t),o.set(t,e);var b=s;while(++h<c){p=l[h];var y=e[p],w=t[p];if(r)var E=s?r(w,y,p,t,e,o):r(y,w,p,e,t,o);if(!(E===i?y===w||a(y,w,n,r,o):E)){v=!1;break}b||(b="constructor"==p)}if(v&&!b){var _=e.constructor,S=t.constructor;_==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof S&&S instanceof S||(v=!1)}return o["delete"](e),o["delete"](t),v}function Fo(e){return As(ws(e,i,Xs),e+"")}function $o(e){return Pi(e,_d,Wo)}function Uo(e){return Pi(e,Sd,Yo)}var jo=ln?function(e){return ln.get(e)}:Fh;function Vo(e){var t=e.name+"",n=cn[t],r=dt.call(cn,t)?n.length:0;while(r--){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t}function Ko(e){var t=dt.call(_r,"placeholder")?_r:e;return t.placeholder}function Ho(){var e=_r.iteratee||Oh;return e=e===Oh?ta:e,arguments.length?e(arguments[0],arguments[1]):e}function Go(e,t){var n=e.__data__;return cs(t)?n["string"==typeof t?"string":"hash"]:n.map}function zo(e){var t=_d(e),n=t.length;while(n--){var r=t[n],i=e[r];t[n]=[r,i,fs(i)]}return t}function qo(e,t){var n=ir(e,t);return Qi(n)?n:i}function Xo(e){var t=dt.call(e,Ct),n=e[Ct];try{e[Ct]=i;var r=!0}catch(o){}var a=ft.call(e);return r&&(t?e[Ct]=n:delete e[Ct]),a}var Wo=Pt?function(e){return null==e?[]:(e=nt(e),kn(Pt(e),(function(t){return kt.call(e,t)})))}:qh,Yo=Pt?function(e){var t=[];while(e)Cn(t,Wo(e)),e=_t(e);return t}:qh,Qo=Mi;function Jo(e,t,n){var r=-1,i=n.length;while(++r<i){var a=n[r],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=jt(t,e+o);break;case"takeRight":e=Ut(e,t-o);break}}return{start:e,end:t}}function Zo(e){var t=e.match(Ue);return t?t[1].split(je):[]}function es(e,t,n){t=Ka(t,e);var r=-1,i=t.length,a=!1;while(++r<i){var o=Os(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=null==e?0:e.length,!!i&&Su(i)&&os(o,i)&&(lu(e)||su(e)))}function ts(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&dt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ns(e){return"function"!=typeof e.constructor||ps(e)?{}:kr(_t(e))}function rs(e,t,n){var r=e.constructor;switch(t){case de:return Xa(e);case z:case q:return new r(+e);case he:return Wa(e,n);case pe:case fe:case me:case ge:case ve:case be:case ye:case we:case Ee:return Ja(e,n);case J:return new r;case Z:case oe:return new r(e);case ie:return Ya(e);case ae:return new r;case se:return Qa(e)}}function is(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace($e,"{\n/* [wrapped with "+t+"] */\n")}function as(e){return lu(e)||su(e)||!!(At&&e&&e[At])}function os(e,t){var n=typeof e;return t=null==t?M:t,!!t&&("number"==n||"symbol"!=n&&Qe.test(e))&&e>-1&&e%1==0&&e<t}function ss(e,t,n){if(!ku(n))return!1;var r=typeof t;return!!("number"==r?uu(n)&&os(t,n.length):"string"==r&&t in n)&&iu(n[t],e)}function ls(e,t){if(lu(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!$u(e))||(Le.test(e)||!Ie.test(e)||null!=t&&e in nt(t))}function cs(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function us(e){var t=Vo(e),n=_r[t];if("function"!=typeof n||!(t in Nr.prototype))return!1;if(e===n)return!0;var r=jo(n);return!!r&&e===r[0]}function ds(e){return!!pt&&pt in e}(Jt&&Qo(new Jt(new ArrayBuffer(1)))!=he||Zt&&Qo(new Zt)!=J||en&&Qo(en.resolve())!=ne||tn&&Qo(new tn)!=ae||an&&Qo(new an)!=ce)&&(Qo=function(e){var t=Mi(e),n=t==te?e.constructor:i,r=n?Is(n):"";if(r)switch(r){case dn:return he;case hn:return J;case In:return ne;case Ln:return ae;case Vn:return ce}return t});var hs=ct?Eu:Xh;function ps(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||lt;return e===n}function fs(e){return e===e&&!ku(e)}function ms(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in nt(n)))}}function gs(e){var t=Uc(e,(function(e){return n.size===d&&n.clear(),e})),n=t.cache;return t}function vs(e,t){var n=e[1],r=t[1],i=n|r,a=i<(b|y|x),o=r==x&&n==E||r==x&&n==A&&e[7].length<=t[8]||r==(x|A)&&t[7].length<=t[8]&&n==E;if(!a&&!o)return e;r&b&&(e[2]=t[2],i|=n&b?0:w);var s=t[3];if(s){var l=e[3];e[3]=l?to(l,s,t[4]):s,e[4]=l?ur(e[3],h):t[4]}return s=t[5],s&&(l=e[5],e[5]=l?no(l,s,t[6]):s,e[6]=l?ur(e[5],h):t[6]),s=t[7],s&&(e[7]=s),r&x&&(e[8]=null==e[8]?t[8]:jt(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function bs(e){var t=[];if(null!=e)for(var n in nt(e))t.push(n);return t}function ys(e){return ft.call(e)}function ws(e,t,r){return t=Ut(t===i?e.length-1:t,0),function(){var i=arguments,a=-1,o=Ut(i.length-t,0),s=n(o);while(++a<o)s[a]=i[t+a];a=-1;var l=n(t+1);while(++a<t)l[a]=i[a];return l[t]=r(s),yn(e,this,l)}}function Es(e,t){return t.length<2?e:Di(e,Na(t,0,-1))}function _s(e,t){var n=e.length,r=jt(t.length,n),a=ro(e);while(r--){var o=t[r];e[r]=os(o,n)?a[o]:i}return e}function Ss(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var ks=Cs(ka),xs=It||function(e,t){return sn.setTimeout(e,t)},As=Cs(xa);function Ns(e,t,n){var r=t+"";return As(e,is(r,Ls(Zo(r),n)))}function Cs(e){var t=0,n=0;return function(){var r=Ht(),a=O-(r-n);if(n=r,a>0){if(++t>=R)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ts(e,t){var n=-1,r=e.length,a=r-1;t=t===i?r:t;while(++n<t){var o=va(n,a),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}var Rs=gs((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(De,(function(e,n,r,i){t.push(r?i.replace(He,"$1"):n||e)})),t}));function Os(e){if("string"==typeof e||$u(e))return e;var t=e+"";return"0"==t&&1/e==-P?"-0":t}function Is(e){if(null!=e){try{return ut.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ls(e,t){return En(V,(function(n){var r="_."+n[0];t&n[1]&&!xn(e,r)&&e.push(r)})),e.sort()}function Ds(e){if(e instanceof Nr)return e.clone();var t=new Ar(e.__wrapped__,e.__chain__);return t.__actions__=ro(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Ps(e,t,r){t=(r?ss(e,t,r):t===i)?1:Ut(Xu(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];var o=0,s=0,l=n(Lt(a/t));while(o<a)l[s++]=Na(e,o,o+=t);return l}function Ms(e){var t=-1,n=null==e?0:e.length,r=0,i=[];while(++t<n){var a=e[t];a&&(i[r++]=a)}return i}function Bs(){var e=arguments.length;if(!e)return[];var t=n(e-1),r=arguments[0],i=e;while(i--)t[i-1]=arguments[i];return Cn(lu(r)?ro(r):[r],Ci(t,1))}var Fs=wa((function(e,t){return du(e)?Ei(e,Ci(t,1,du,!0)):[]})),$s=wa((function(e,t){var n=al(t);return du(n)&&(n=i),du(e)?Ei(e,Ci(t,1,du,!0),Ho(n,2)):[]})),Us=wa((function(e,t){var n=al(t);return du(n)&&(n=i),du(e)?Ei(e,Ci(t,1,du,!0),i,n):[]}));function js(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===i?1:Xu(t),Na(e,t<0?0:t,r)):[]}function Vs(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===i?1:Xu(t),t=r-t,Na(e,0,t<0?0:t)):[]}function Ks(e,t){return e&&e.length?Ba(e,Ho(t,3),!0,!0):[]}function Hs(e,t){return e&&e.length?Ba(e,Ho(t,3),!0):[]}function Gs(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&ss(e,t,n)&&(n=0,r=i),Ai(e,t,n,r)):[]}function zs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Xu(n);return i<0&&(i=Ut(r+i,0)),Mn(e,Ho(t,3),i)}function qs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r-1;return n!==i&&(a=Xu(n),a=n<0?Ut(r+a,0):jt(a,r-1)),Mn(e,Ho(t,3),a,!0)}function Xs(e){var t=null==e?0:e.length;return t?Ci(e,1):[]}function Ws(e){var t=null==e?0:e.length;return t?Ci(e,P):[]}function Ys(e,t){var n=null==e?0:e.length;return n?(t=t===i?1:Xu(t),Ci(e,t)):[]}function Qs(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var i=e[t];r[i[0]]=i[1]}return r}function Js(e){return e&&e.length?e[0]:i}function Zs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Xu(n);return i<0&&(i=Ut(r+i,0)),Bn(e,t,i)}function el(e){var t=null==e?0:e.length;return t?Na(e,0,-1):[]}var tl=wa((function(e){var t=Nn(e,ja);return t.length&&t[0]===e[0]?ji(t):[]})),nl=wa((function(e){var t=al(e),n=Nn(e,ja);return t===al(n)?t=i:n.pop(),n.length&&n[0]===e[0]?ji(n,Ho(t,2)):[]})),rl=wa((function(e){var t=al(e),n=Nn(e,ja);return t="function"==typeof t?t:i,t&&n.pop(),n.length&&n[0]===e[0]?ji(n,i,t):[]}));function il(e,t){return null==e?"":Ft.call(e,t)}function al(e){var t=null==e?0:e.length;return t?e[t-1]:i}function ol(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return n!==i&&(a=Xu(n),a=a<0?Ut(r+a,0):jt(a,r-1)),t===t?fr(e,t,a):Mn(e,$n,a,!0)}function sl(e,t){return e&&e.length?ua(e,Xu(t)):i}var ll=wa(cl);function cl(e,t){return e&&e.length&&t&&t.length?ma(e,t):e}function ul(e,t,n){return e&&e.length&&t&&t.length?ma(e,t,Ho(n,2)):e}function dl(e,t,n){return e&&e.length&&t&&t.length?ma(e,t,i,n):e}var hl=Fo((function(e,t){var n=null==e?0:e.length,r=mi(e,t);return ga(e,Nn(t,(function(e){return os(e,n)?+e:e})).sort(Za)),r}));function pl(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],a=e.length;t=Ho(t,3);while(++r<a){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return ga(e,i),n}function fl(e){return null==e?e:qt.call(e)}function ml(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ss(e,t,n)?(t=0,n=r):(t=null==t?0:Xu(t),n=n===i?r:Xu(n)),Na(e,t,n)):[]}function gl(e,t){return Ta(e,t)}function vl(e,t,n){return Ra(e,t,Ho(n,2))}function bl(e,t){var n=null==e?0:e.length;if(n){var r=Ta(e,t);if(r<n&&iu(e[r],t))return r}return-1}function yl(e,t){return Ta(e,t,!0)}function wl(e,t,n){return Ra(e,t,Ho(n,2),!0)}function El(e,t){var n=null==e?0:e.length;if(n){var r=Ta(e,t,!0)-1;if(iu(e[r],t))return r}return-1}function _l(e){return e&&e.length?Oa(e):[]}function Sl(e,t){return e&&e.length?Oa(e,Ho(t,2)):[]}function kl(e){var t=null==e?0:e.length;return t?Na(e,1,t):[]}function xl(e,t,n){return e&&e.length?(t=n||t===i?1:Xu(t),Na(e,0,t<0?0:t)):[]}function Al(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===i?1:Xu(t),t=r-t,Na(e,t<0?0:t,r)):[]}function Nl(e,t){return e&&e.length?Ba(e,Ho(t,3),!1,!0):[]}function Cl(e,t){return e&&e.length?Ba(e,Ho(t,3)):[]}var Tl=wa((function(e){return Da(Ci(e,1,du,!0))})),Rl=wa((function(e){var t=al(e);return du(t)&&(t=i),Da(Ci(e,1,du,!0),Ho(t,2))})),Ol=wa((function(e){var t=al(e);return t="function"==typeof t?t:i,Da(Ci(e,1,du,!0),i,t)}));function Il(e){return e&&e.length?Da(e):[]}function Ll(e,t){return e&&e.length?Da(e,Ho(t,2)):[]}function Dl(e,t){return t="function"==typeof t?t:i,e&&e.length?Da(e,i,t):[]}function Pl(e){if(!e||!e.length)return[];var t=0;return e=kn(e,(function(e){if(du(e))return t=Ut(e.length,t),!0})),zn(t,(function(t){return Nn(e,jn(t))}))}function Ml(e,t){if(!e||!e.length)return[];var n=Pl(e);return null==t?n:Nn(n,(function(e){return yn(t,i,e)}))}var Bl=wa((function(e,t){return du(e)?Ei(e,t):[]})),Fl=wa((function(e){return $a(kn(e,du))})),$l=wa((function(e){var t=al(e);return du(t)&&(t=i),$a(kn(e,du),Ho(t,2))})),Ul=wa((function(e){var t=al(e);return t="function"==typeof t?t:i,$a(kn(e,du),i,t)})),jl=wa(Pl);function Vl(e,t){return Ua(e||[],t||[],ci)}function Kl(e,t){return Ua(e||[],t||[],Sa)}var Hl=wa((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,Ml(e,n)}));function Gl(e){var t=_r(e);return t.__chain__=!0,t}function zl(e,t){return t(e),e}function ql(e,t){return t(e)}var Xl=Fo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return mi(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Nr&&os(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:ql,args:[a],thisArg:i}),new Ar(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(a)}));function Wl(){return Gl(this)}function Yl(){return new Ar(this.value(),this.__chain__)}function Ql(){this.__values__===i&&(this.__values__=zu(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Jl(){return this}function Zl(e){var t,n=this;while(n instanceof xr){var r=Ds(n);r.__index__=0,r.__values__=i,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t}function ec(){var e=this.__wrapped__;if(e instanceof Nr){var t=e;return this.__actions__.length&&(t=new Nr(this)),t=t.reverse(),t.__actions__.push({func:ql,args:[fl],thisArg:i}),new Ar(t,this.__chain__)}return this.thru(fl)}function tc(){return Fa(this.__wrapped__,this.__actions__)}var nc=so((function(e,t,n){dt.call(e,n)?++e[n]:fi(e,n,1)}));function rc(e,t,n){var r=lu(e)?Sn:ki;return n&&ss(e,t,n)&&(t=i),r(e,Ho(t,3))}function ic(e,t){var n=lu(e)?kn:Ni;return n(e,Ho(t,3))}var ac=vo(zs),oc=vo(qs);function sc(e,t){return Ci(gc(e,t),1)}function lc(e,t){return Ci(gc(e,t),P)}function cc(e,t,n){return n=n===i?1:Xu(n),Ci(gc(e,t),n)}function uc(e,t){var n=lu(e)?En:_i;return n(e,Ho(t,3))}function dc(e,t){var n=lu(e)?_n:Si;return n(e,Ho(t,3))}var hc=so((function(e,t,n){dt.call(e,n)?e[n].push(t):fi(e,n,[t])}));function pc(e,t,n,r){e=uu(e)?e:jd(e),n=n&&!r?Xu(n):0;var i=e.length;return n<0&&(n=Ut(i+n,0)),Fu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Bn(e,t,n)>-1}var fc=wa((function(e,t,r){var i=-1,a="function"==typeof t,o=uu(e)?n(e.length):[];return _i(e,(function(e){o[++i]=a?yn(t,e,r):Ki(e,t,r)})),o})),mc=so((function(e,t,n){fi(e,n,t)}));function gc(e,t){var n=lu(e)?Nn:aa;return n(e,Ho(t,3))}function vc(e,t,n,r){return null==e?[]:(lu(t)||(t=null==t?[]:[t]),n=r?i:n,lu(n)||(n=null==n?[]:[n]),da(e,t,n))}var bc=so((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function yc(e,t,n){var r=lu(e)?Tn:Kn,i=arguments.length<3;return r(e,Ho(t,4),n,i,_i)}function wc(e,t,n){var r=lu(e)?Rn:Kn,i=arguments.length<3;return r(e,Ho(t,4),n,i,Si)}function Ec(e,t){var n=lu(e)?kn:Ni;return n(e,jc(Ho(t,3)))}function _c(e){var t=lu(e)?ai:Ea;return t(e)}function Sc(e,t,n){t=(n?ss(e,t,n):t===i)?1:Xu(t);var r=lu(e)?oi:_a;return r(e,t)}function kc(e){var t=lu(e)?si:Aa;return t(e)}function xc(e){if(null==e)return 0;if(uu(e))return Fu(e)?mr(e):e.length;var t=Qo(e);return t==J||t==ae?e.size:na(e).length}function Ac(e,t,n){var r=lu(e)?On:Ca;return n&&ss(e,t,n)&&(t=i),r(e,Ho(t,3))}var Nc=wa((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ss(e,t[0],t[1])?t=[]:n>2&&ss(t[0],t[1],t[2])&&(t=[t[0]]),da(e,Ci(t,1),[])})),Cc=Ot||function(){return sn.Date.now()};function Tc(e,t){if("function"!=typeof t)throw new at(l);return e=Xu(e),function(){if(--e<1)return t.apply(this,arguments)}}function Rc(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Oo(e,x,i,i,i,i,t)}function Oc(e,t){var n;if("function"!=typeof t)throw new at(l);return e=Xu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ic=wa((function(e,t,n){var r=b;if(n.length){var i=ur(n,Ko(Ic));r|=S}return Oo(e,r,t,n,i)})),Lc=wa((function(e,t,n){var r=b|y;if(n.length){var i=ur(n,Ko(Lc));r|=S}return Oo(t,r,e,n,i)}));function Dc(e,t,n){t=n?i:t;var r=Oo(e,E,i,i,i,i,i,t);return r.placeholder=Dc.placeholder,r}function Pc(e,t,n){t=n?i:t;var r=Oo(e,_,i,i,i,i,i,t);return r.placeholder=Pc.placeholder,r}function Mc(e,t,n){var r,a,o,s,c,u,d=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new at(l);function m(t){var n=r,o=a;return r=a=i,d=t,s=e.apply(o,n),s}function g(e){return d=e,c=xs(y,t),h?m(e):s}function v(e){var n=e-u,r=e-d,i=t-n;return p?jt(i,o-r):i}function b(e){var n=e-u,r=e-d;return u===i||n>=t||n<0||p&&r>=o}function y(){var e=Cc();if(b(e))return w(e);c=xs(y,v(e))}function w(e){return c=i,f&&r?m(e):(r=a=i,s)}function E(){c!==i&&za(c),d=0,r=u=a=c=i}function _(){return c===i?s:w(Cc())}function S(){var e=Cc(),n=b(e);if(r=arguments,a=this,u=e,n){if(c===i)return g(u);if(p)return za(c),c=xs(y,t),m(u)}return c===i&&(c=xs(y,t)),s}return t=Yu(t)||0,ku(n)&&(h=!!n.leading,p="maxWait"in n,o=p?Ut(Yu(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),S.cancel=E,S.flush=_,S}var Bc=wa((function(e,t){return wi(e,1,t)})),Fc=wa((function(e,t,n){return wi(e,Yu(t)||0,n)}));function $c(e){return Oo(e,N)}function Uc(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new at(l);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Uc.Cache||Kr),n}function jc(e){if("function"!=typeof e)throw new at(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Vc(e){return Oc(2,e)}Uc.Cache=Kr;var Kc=Ha((function(e,t){t=1==t.length&&lu(t[0])?Nn(t[0],Wn(Ho())):Nn(Ci(t,1),Wn(Ho()));var n=t.length;return wa((function(r){var i=-1,a=jt(r.length,n);while(++i<a)r[i]=t[i].call(this,r[i]);return yn(e,this,r)}))})),Hc=wa((function(e,t){var n=ur(t,Ko(Hc));return Oo(e,S,i,t,n)})),Gc=wa((function(e,t){var n=ur(t,Ko(Gc));return Oo(e,k,i,t,n)})),zc=Fo((function(e,t){return Oo(e,A,i,i,i,t)}));function qc(e,t){if("function"!=typeof e)throw new at(l);return t=t===i?t:Xu(t),wa(e,t)}function Xc(e,t){if("function"!=typeof e)throw new at(l);return t=null==t?0:Ut(Xu(t),0),wa((function(n){var r=n[t],i=Ga(n,0,t);return r&&Cn(i,r),yn(e,this,i)}))}function Wc(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new at(l);return ku(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Mc(e,t,{leading:r,maxWait:t,trailing:i})}function Yc(e){return Rc(e,1)}function Qc(e,t){return Hc(Va(t),e)}function Jc(){if(!arguments.length)return[];var e=arguments[0];return lu(e)?e:[e]}function Zc(e){return vi(e,m)}function eu(e,t){return t="function"==typeof t?t:i,vi(e,m,t)}function tu(e){return vi(e,p|m)}function nu(e,t){return t="function"==typeof t?t:i,vi(e,p|m,t)}function ru(e,t){return null==t||yi(e,t,_d(t))}function iu(e,t){return e===t||e!==e&&t!==t}var au=Ao(Bi),ou=Ao((function(e,t){return e>=t})),su=Hi(function(){return arguments}())?Hi:function(e){return xu(e)&&dt.call(e,"callee")&&!kt.call(e,"callee")},lu=n.isArray,cu=pn?Wn(pn):Gi;function uu(e){return null!=e&&Su(e.length)&&!Eu(e)}function du(e){return xu(e)&&uu(e)}function hu(e){return!0===e||!1===e||xu(e)&&Mi(e)==z}var pu=Mt||Xh,fu=fn?Wn(fn):zi;function mu(e){return xu(e)&&1===e.nodeType&&!Du(e)}function gu(e){if(null==e)return!0;if(uu(e)&&(lu(e)||"string"==typeof e||"function"==typeof e.splice||pu(e)||Uu(e)||su(e)))return!e.length;var t=Qo(e);if(t==J||t==ae)return!e.size;if(ps(e))return!na(e).length;for(var n in e)if(dt.call(e,n))return!1;return!0}function vu(e,t){return qi(e,t)}function bu(e,t,n){n="function"==typeof n?n:i;var r=n?n(e,t):i;return r===i?qi(e,t,i,n):!!r}function yu(e){if(!xu(e))return!1;var t=Mi(e);return t==W||t==X||"string"==typeof e.message&&"string"==typeof e.name&&!Du(e)}function wu(e){return"number"==typeof e&&Bt(e)}function Eu(e){if(!ku(e))return!1;var t=Mi(e);return t==Y||t==Q||t==G||t==re}function _u(e){return"number"==typeof e&&e==Xu(e)}function Su(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=M}function ku(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function xu(e){return null!=e&&"object"==typeof e}var Au=mn?Wn(mn):Wi;function Nu(e,t){return e===t||Yi(e,t,zo(t))}function Cu(e,t,n){return n="function"==typeof n?n:i,Yi(e,t,zo(t),n)}function Tu(e){return Lu(e)&&e!=+e}function Ru(e){if(hs(e))throw new Fe(s);return Qi(e)}function Ou(e){return null===e}function Iu(e){return null==e}function Lu(e){return"number"==typeof e||xu(e)&&Mi(e)==Z}function Du(e){if(!xu(e)||Mi(e)!=te)return!1;var t=_t(e);if(null===t)return!0;var n=dt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ut.call(n)==mt}var Pu=gn?Wn(gn):Ji;function Mu(e){return _u(e)&&e>=-M&&e<=M}var Bu=vn?Wn(vn):Zi;function Fu(e){return"string"==typeof e||!lu(e)&&xu(e)&&Mi(e)==oe}function $u(e){return"symbol"==typeof e||xu(e)&&Mi(e)==se}var Uu=bn?Wn(bn):ea;function ju(e){return e===i}function Vu(e){return xu(e)&&Qo(e)==ce}function Ku(e){return xu(e)&&Mi(e)==ue}var Hu=Ao(ia),Gu=Ao((function(e,t){return e<=t}));function zu(e){if(!e)return[];if(uu(e))return Fu(e)?gr(e):ro(e);if(Nt&&e[Nt])return sr(e[Nt]());var t=Qo(e),n=t==J?lr:t==ae?dr:jd;return n(e)}function qu(e){if(!e)return 0===e?e:0;if(e=Yu(e),e===P||e===-P){var t=e<0?-1:1;return t*B}return e===e?e:0}function Xu(e){var t=qu(e),n=t%1;return t===t?n?t-n:t:0}function Wu(e){return e?gi(Xu(e),0,$):0}function Yu(e){if("number"==typeof e)return e;if($u(e))return F;if(ku(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ku(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xn(e);var n=Xe.test(e);return n||Ye.test(e)?rn(e.slice(2),n?2:8):qe.test(e)?F:+e}function Qu(e){return io(e,Sd(e))}function Ju(e){return e?gi(Xu(e),-M,M):0===e?e:0}function Zu(e){return null==e?"":La(e)}var ed=lo((function(e,t){if(ps(t)||uu(t))io(t,_d(t),e);else for(var n in t)dt.call(t,n)&&ci(e,n,t[n])})),td=lo((function(e,t){io(t,Sd(t),e)})),nd=lo((function(e,t,n,r){io(t,Sd(t),e,r)})),rd=lo((function(e,t,n,r){io(t,_d(t),e,r)})),id=Fo(mi);function ad(e,t){var n=kr(e);return null==t?n:hi(n,t)}var od=wa((function(e,t){e=nt(e);var n=-1,r=t.length,a=r>2?t[2]:i;a&&ss(t[0],t[1],a)&&(r=1);while(++n<r){var o=t[n],s=Sd(o),l=-1,c=s.length;while(++l<c){var u=s[l],d=e[u];(d===i||iu(d,lt[u])&&!dt.call(e,u))&&(e[u]=o[u])}}return e})),sd=wa((function(e){return e.push(i,Lo),yn(Nd,i,e)}));function ld(e,t){return Pn(e,Ho(t,3),Oi)}function cd(e,t){return Pn(e,Ho(t,3),Ii)}function ud(e,t){return null==e?e:Ti(e,Ho(t,3),Sd)}function dd(e,t){return null==e?e:Ri(e,Ho(t,3),Sd)}function hd(e,t){return e&&Oi(e,Ho(t,3))}function pd(e,t){return e&&Ii(e,Ho(t,3))}function fd(e){return null==e?[]:Li(e,_d(e))}function md(e){return null==e?[]:Li(e,Sd(e))}function gd(e,t,n){var r=null==e?i:Di(e,t);return r===i?n:r}function vd(e,t){return null!=e&&es(e,t,Fi)}function bd(e,t){return null!=e&&es(e,t,$i)}var yd=wo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ft.call(t)),e[t]=n}),Ah(Rh)),wd=wo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ft.call(t)),dt.call(e,t)?e[t].push(n):e[t]=[n]}),Ho),Ed=wa(Ki);function _d(e){return uu(e)?ii(e):na(e)}function Sd(e){return uu(e)?ii(e,!0):ra(e)}function kd(e,t){var n={};return t=Ho(t,3),Oi(e,(function(e,r,i){fi(n,t(e,r,i),e)})),n}function xd(e,t){var n={};return t=Ho(t,3),Oi(e,(function(e,r,i){fi(n,r,t(e,r,i))})),n}var Ad=lo((function(e,t,n){la(e,t,n)})),Nd=lo((function(e,t,n,r){la(e,t,n,r)})),Cd=Fo((function(e,t){var n={};if(null==e)return n;var r=!1;t=Nn(t,(function(t){return t=Ka(t,e),r||(r=t.length>1),t})),io(e,Uo(e),n),r&&(n=vi(n,p|f|m,Do));var i=t.length;while(i--)Pa(n,t[i]);return n}));function Td(e,t){return Od(e,jc(Ho(t)))}var Rd=Fo((function(e,t){return null==e?{}:ha(e,t)}));function Od(e,t){if(null==e)return{};var n=Nn(Uo(e),(function(e){return[e]}));return t=Ho(t),pa(e,n,(function(e,n){return t(e,n[0])}))}function Id(e,t,n){t=Ka(t,e);var r=-1,a=t.length;a||(a=1,e=i);while(++r<a){var o=null==e?i:e[Os(t[r])];o===i&&(r=a,o=n),e=Eu(o)?o.call(e):o}return e}function Ld(e,t,n){return null==e?e:Sa(e,t,n)}function Dd(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Sa(e,t,n,r)}var Pd=Ro(_d),Md=Ro(Sd);function Bd(e,t,n){var r=lu(e),i=r||pu(e)||Uu(e);if(t=Ho(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:ku(e)&&Eu(a)?kr(_t(e)):{}}return(i?En:Oi)(e,(function(e,r,i){return t(n,e,r,i)})),n}function Fd(e,t){return null==e||Pa(e,t)}function $d(e,t,n){return null==e?e:Ma(e,t,Va(n))}function Ud(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Ma(e,t,Va(n),r)}function jd(e){return null==e?[]:Yn(e,_d(e))}function Vd(e){return null==e?[]:Yn(e,Sd(e))}function Kd(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=Yu(n),n=n===n?n:0),t!==i&&(t=Yu(t),t=t===t?t:0),gi(Yu(e),t,n)}function Hd(e,t,n){return t=qu(t),n===i?(n=t,t=0):n=qu(n),e=Yu(e),Ui(e,t,n)}function Gd(e,t,n){if(n&&"boolean"!=typeof n&&ss(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=qu(e),t===i?(t=e,e=0):t=qu(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var a=zt();return jt(e+a*(t-e+nn("1e-"+((a+"").length-1))),t)}return va(e,t)}var zd=fo((function(e,t,n){return t=t.toLowerCase(),e+(n?qd(t):t)}));function qd(e){return wh(Zu(e).toLowerCase())}function Xd(e){return e=Zu(e),e&&e.replace(Je,tr).replace(Kt,"")}function Wd(e,t,n){e=Zu(e),t=La(t);var r=e.length;n=n===i?r:gi(Xu(n),0,r);var a=n;return n-=t.length,n>=0&&e.slice(n,a)==t}function Yd(e){return e=Zu(e),e&&Ce.test(e)?e.replace(Ae,nr):e}function Qd(e){return e=Zu(e),e&&Me.test(e)?e.replace(Pe,"\\$&"):e}var Jd=fo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Zd=fo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),eh=po("toLowerCase");function th(e,t,n){e=Zu(e),t=Xu(t);var r=t?mr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return So(Dt(i),n)+e+So(Lt(i),n)}function nh(e,t,n){e=Zu(e),t=Xu(t);var r=t?mr(e):0;return t&&r<t?e+So(t-r,n):e}function rh(e,t,n){e=Zu(e),t=Xu(t);var r=t?mr(e):0;return t&&r<t?So(t-r,n)+e:e}function ih(e,t,n){return n||null==t?t=0:t&&(t=+t),Gt(Zu(e).replace(Be,""),t||0)}function ah(e,t,n){return t=(n?ss(e,t,n):t===i)?1:Xu(t),ya(Zu(e),t)}function oh(){var e=arguments,t=Zu(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var sh=fo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function lh(e,t,n){return n&&"number"!=typeof n&&ss(e,t,n)&&(t=n=i),n=n===i?$:n>>>0,n?(e=Zu(e),e&&("string"==typeof t||null!=t&&!Pu(t))&&(t=La(t),!t&&ar(e))?Ga(gr(e),0,n):e.split(t,n)):[]}var ch=fo((function(e,t,n){return e+(n?" ":"")+wh(t)}));function uh(e,t,n){return e=Zu(e),n=null==n?0:gi(Xu(n),0,e.length),t=La(t),e.slice(n,n+t.length)==t}function dh(e,t,n){var r=_r.templateSettings;n&&ss(e,t,n)&&(t=i),e=Zu(e),t=nd({},t,r,Io);var a,o,s=nd({},t.imports,r.imports,Io),l=_d(s),u=Yn(s,l),d=0,h=t.interpolate||Ze,p="__p += '",f=rt((t.escape||Ze).source+"|"+h.source+"|"+(h===Oe?Ge:Ze).source+"|"+(t.evaluate||Ze).source+"|$","g"),m="//# sourceURL="+(dt.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Wt+"]")+"\n";e.replace(f,(function(t,n,r,i,s,l){return r||(r=i),p+=e.slice(d,l).replace(et,rr),n&&(a=!0,p+="' +\n__e("+n+") +\n'"),s&&(o=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=l+t.length,t})),p+="';\n";var g=dt.call(t,"variable")&&t.variable;if(g){if(Ke.test(g))throw new Fe(c)}else p="with (obj) {\n"+p+"\n}\n";p=(o?p.replace(_e,""):p).replace(Se,"$1").replace(ke,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=_h((function(){return Ve(l,m+"return "+p).apply(i,u)}));if(v.source=p,yu(v))throw v;return v}function hh(e){return Zu(e).toLowerCase()}function ph(e){return Zu(e).toUpperCase()}function fh(e,t,n){if(e=Zu(e),e&&(n||t===i))return Xn(e);if(!e||!(t=La(t)))return e;var r=gr(e),a=gr(t),o=Jn(r,a),s=Zn(r,a)+1;return Ga(r,o,s).join("")}function mh(e,t,n){if(e=Zu(e),e&&(n||t===i))return e.slice(0,vr(e)+1);if(!e||!(t=La(t)))return e;var r=gr(e),a=Zn(r,gr(t))+1;return Ga(r,0,a).join("")}function gh(e,t,n){if(e=Zu(e),e&&(n||t===i))return e.replace(Be,"");if(!e||!(t=La(t)))return e;var r=gr(e),a=Jn(r,gr(t));return Ga(r,a).join("")}function vh(e,t){var n=C,r=T;if(ku(t)){var a="separator"in t?t.separator:a;n="length"in t?Xu(t.length):n,r="omission"in t?La(t.omission):r}e=Zu(e);var o=e.length;if(ar(e)){var s=gr(e);o=s.length}if(n>=o)return e;var l=n-mr(r);if(l<1)return r;var c=s?Ga(s,0,l).join(""):e.slice(0,l);if(a===i)return c+r;if(s&&(l+=c.length-l),Pu(a)){if(e.slice(l).search(a)){var u,d=c;a.global||(a=rt(a.source,Zu(ze.exec(a))+"g")),a.lastIndex=0;while(u=a.exec(d))var h=u.index;c=c.slice(0,h===i?l:h)}}else if(e.indexOf(La(a),l)!=l){var p=c.lastIndexOf(a);p>-1&&(c=c.slice(0,p))}return c+r}function bh(e){return e=Zu(e),e&&Ne.test(e)?e.replace(xe,br):e}var yh=fo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),wh=po("toUpperCase");function Eh(e,t,n){return e=Zu(e),t=n?i:t,t===i?or(e)?Er(e):Dn(e):e.match(t)||[]}var _h=wa((function(e,t){try{return yn(e,i,t)}catch(n){return yu(n)?n:new Fe(n)}})),Sh=Fo((function(e,t){return En(t,(function(t){t=Os(t),fi(e,t,Ic(e[t],e))})),e}));function kh(e){var t=null==e?0:e.length,n=Ho();return e=t?Nn(e,(function(e){if("function"!=typeof e[1])throw new at(l);return[n(e[0]),e[1]]})):[],wa((function(n){var r=-1;while(++r<t){var i=e[r];if(yn(i[0],this,n))return yn(i[1],this,n)}}))}function xh(e){return bi(vi(e,p))}function Ah(e){return function(){return e}}function Nh(e,t){return null==e||e!==e?t:e}var Ch=bo(),Th=bo(!0);function Rh(e){return e}function Oh(e){return ta("function"==typeof e?e:vi(e,p))}function Ih(e){return oa(vi(e,p))}function Lh(e,t){return sa(e,vi(t,p))}var Dh=wa((function(e,t){return function(n){return Ki(n,e,t)}})),Ph=wa((function(e,t){return function(n){return Ki(e,n,t)}}));function Mh(e,t,n){var r=_d(t),i=Li(t,r);null!=n||ku(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Li(t,_d(t)));var a=!(ku(n)&&"chain"in n)||!!n.chain,o=Eu(e);return En(i,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__),i=n.__actions__=ro(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Cn([this.value()],arguments))})})),e}function Bh(){return sn._===this&&(sn._=gt),this}function Fh(){}function $h(e){return e=Xu(e),wa((function(t){return ua(t,e)}))}var Uh=_o(Nn),jh=_o(Sn),Vh=_o(On);function Kh(e){return ls(e)?jn(Os(e)):fa(e)}function Hh(e){return function(t){return null==e?i:Di(e,t)}}var Gh=xo(),zh=xo(!0);function qh(){return[]}function Xh(){return!1}function Wh(){return{}}function Yh(){return""}function Qh(){return!0}function Jh(e,t){if(e=Xu(e),e<1||e>M)return[];var n=$,r=jt(e,$);t=Ho(t),e-=$;var i=zn(r,t);while(++n<e)t(n);return i}function Zh(e){return lu(e)?Nn(e,Os):$u(e)?[e]:ro(Rs(Zu(e)))}function ep(e){var t=++ht;return Zu(e)+t}var tp=Eo((function(e,t){return e+t}),0),np=Co("ceil"),rp=Eo((function(e,t){return e/t}),1),ip=Co("floor");function ap(e){return e&&e.length?xi(e,Rh,Bi):i}function op(e,t){return e&&e.length?xi(e,Ho(t,2),Bi):i}function sp(e){return Un(e,Rh)}function lp(e,t){return Un(e,Ho(t,2))}function cp(e){return e&&e.length?xi(e,Rh,ia):i}function up(e,t){return e&&e.length?xi(e,Ho(t,2),ia):i}var dp=Eo((function(e,t){return e*t}),1),hp=Co("round"),pp=Eo((function(e,t){return e-t}),0);function fp(e){return e&&e.length?Gn(e,Rh):0}function mp(e,t){return e&&e.length?Gn(e,Ho(t,2)):0}return _r.after=Tc,_r.ary=Rc,_r.assign=ed,_r.assignIn=td,_r.assignInWith=nd,_r.assignWith=rd,_r.at=id,_r.before=Oc,_r.bind=Ic,_r.bindAll=Sh,_r.bindKey=Lc,_r.castArray=Jc,_r.chain=Gl,_r.chunk=Ps,_r.compact=Ms,_r.concat=Bs,_r.cond=kh,_r.conforms=xh,_r.constant=Ah,_r.countBy=nc,_r.create=ad,_r.curry=Dc,_r.curryRight=Pc,_r.debounce=Mc,_r.defaults=od,_r.defaultsDeep=sd,_r.defer=Bc,_r.delay=Fc,_r.difference=Fs,_r.differenceBy=$s,_r.differenceWith=Us,_r.drop=js,_r.dropRight=Vs,_r.dropRightWhile=Ks,_r.dropWhile=Hs,_r.fill=Gs,_r.filter=ic,_r.flatMap=sc,_r.flatMapDeep=lc,_r.flatMapDepth=cc,_r.flatten=Xs,_r.flattenDeep=Ws,_r.flattenDepth=Ys,_r.flip=$c,_r.flow=Ch,_r.flowRight=Th,_r.fromPairs=Qs,_r.functions=fd,_r.functionsIn=md,_r.groupBy=hc,_r.initial=el,_r.intersection=tl,_r.intersectionBy=nl,_r.intersectionWith=rl,_r.invert=yd,_r.invertBy=wd,_r.invokeMap=fc,_r.iteratee=Oh,_r.keyBy=mc,_r.keys=_d,_r.keysIn=Sd,_r.map=gc,_r.mapKeys=kd,_r.mapValues=xd,_r.matches=Ih,_r.matchesProperty=Lh,_r.memoize=Uc,_r.merge=Ad,_r.mergeWith=Nd,_r.method=Dh,_r.methodOf=Ph,_r.mixin=Mh,_r.negate=jc,_r.nthArg=$h,_r.omit=Cd,_r.omitBy=Td,_r.once=Vc,_r.orderBy=vc,_r.over=Uh,_r.overArgs=Kc,_r.overEvery=jh,_r.overSome=Vh,_r.partial=Hc,_r.partialRight=Gc,_r.partition=bc,_r.pick=Rd,_r.pickBy=Od,_r.property=Kh,_r.propertyOf=Hh,_r.pull=ll,_r.pullAll=cl,_r.pullAllBy=ul,_r.pullAllWith=dl,_r.pullAt=hl,_r.range=Gh,_r.rangeRight=zh,_r.rearg=zc,_r.reject=Ec,_r.remove=pl,_r.rest=qc,_r.reverse=fl,_r.sampleSize=Sc,_r.set=Ld,_r.setWith=Dd,_r.shuffle=kc,_r.slice=ml,_r.sortBy=Nc,_r.sortedUniq=_l,_r.sortedUniqBy=Sl,_r.split=lh,_r.spread=Xc,_r.tail=kl,_r.take=xl,_r.takeRight=Al,_r.takeRightWhile=Nl,_r.takeWhile=Cl,_r.tap=zl,_r.throttle=Wc,_r.thru=ql,_r.toArray=zu,_r.toPairs=Pd,_r.toPairsIn=Md,_r.toPath=Zh,_r.toPlainObject=Qu,_r.transform=Bd,_r.unary=Yc,_r.union=Tl,_r.unionBy=Rl,_r.unionWith=Ol,_r.uniq=Il,_r.uniqBy=Ll,_r.uniqWith=Dl,_r.unset=Fd,_r.unzip=Pl,_r.unzipWith=Ml,_r.update=$d,_r.updateWith=Ud,_r.values=jd,_r.valuesIn=Vd,_r.without=Bl,_r.words=Eh,_r.wrap=Qc,_r.xor=Fl,_r.xorBy=$l,_r.xorWith=Ul,_r.zip=jl,_r.zipObject=Vl,_r.zipObjectDeep=Kl,_r.zipWith=Hl,_r.entries=Pd,_r.entriesIn=Md,_r.extend=td,_r.extendWith=nd,Mh(_r,_r),_r.add=tp,_r.attempt=_h,_r.camelCase=zd,_r.capitalize=qd,_r.ceil=np,_r.clamp=Kd,_r.clone=Zc,_r.cloneDeep=tu,_r.cloneDeepWith=nu,_r.cloneWith=eu,_r.conformsTo=ru,_r.deburr=Xd,_r.defaultTo=Nh,_r.divide=rp,_r.endsWith=Wd,_r.eq=iu,_r.escape=Yd,_r.escapeRegExp=Qd,_r.every=rc,_r.find=ac,_r.findIndex=zs,_r.findKey=ld,_r.findLast=oc,_r.findLastIndex=qs,_r.findLastKey=cd,_r.floor=ip,_r.forEach=uc,_r.forEachRight=dc,_r.forIn=ud,_r.forInRight=dd,_r.forOwn=hd,_r.forOwnRight=pd,_r.get=gd,_r.gt=au,_r.gte=ou,_r.has=vd,_r.hasIn=bd,_r.head=Js,_r.identity=Rh,_r.includes=pc,_r.indexOf=Zs,_r.inRange=Hd,_r.invoke=Ed,_r.isArguments=su,_r.isArray=lu,_r.isArrayBuffer=cu,_r.isArrayLike=uu,_r.isArrayLikeObject=du,_r.isBoolean=hu,_r.isBuffer=pu,_r.isDate=fu,_r.isElement=mu,_r.isEmpty=gu,_r.isEqual=vu,_r.isEqualWith=bu,_r.isError=yu,_r.isFinite=wu,_r.isFunction=Eu,_r.isInteger=_u,_r.isLength=Su,_r.isMap=Au,_r.isMatch=Nu,_r.isMatchWith=Cu,_r.isNaN=Tu,_r.isNative=Ru,_r.isNil=Iu,_r.isNull=Ou,_r.isNumber=Lu,_r.isObject=ku,_r.isObjectLike=xu,_r.isPlainObject=Du,_r.isRegExp=Pu,_r.isSafeInteger=Mu,_r.isSet=Bu,_r.isString=Fu,_r.isSymbol=$u,_r.isTypedArray=Uu,_r.isUndefined=ju,_r.isWeakMap=Vu,_r.isWeakSet=Ku,_r.join=il,_r.kebabCase=Jd,_r.last=al,_r.lastIndexOf=ol,_r.lowerCase=Zd,_r.lowerFirst=eh,_r.lt=Hu,_r.lte=Gu,_r.max=ap,_r.maxBy=op,_r.mean=sp,_r.meanBy=lp,_r.min=cp,_r.minBy=up,_r.stubArray=qh,_r.stubFalse=Xh,_r.stubObject=Wh,_r.stubString=Yh,_r.stubTrue=Qh,_r.multiply=dp,_r.nth=sl,_r.noConflict=Bh,_r.noop=Fh,_r.now=Cc,_r.pad=th,_r.padEnd=nh,_r.padStart=rh,_r.parseInt=ih,_r.random=Gd,_r.reduce=yc,_r.reduceRight=wc,_r.repeat=ah,_r.replace=oh,_r.result=Id,_r.round=hp,_r.runInContext=e,_r.sample=_c,_r.size=xc,_r.snakeCase=sh,_r.some=Ac,_r.sortedIndex=gl,_r.sortedIndexBy=vl,_r.sortedIndexOf=bl,_r.sortedLastIndex=yl,_r.sortedLastIndexBy=wl,_r.sortedLastIndexOf=El,_r.startCase=ch,_r.startsWith=uh,_r.subtract=pp,_r.sum=fp,_r.sumBy=mp,_r.template=dh,_r.times=Jh,_r.toFinite=qu,_r.toInteger=Xu,_r.toLength=Wu,_r.toLower=hh,_r.toNumber=Yu,_r.toSafeInteger=Ju,_r.toString=Zu,_r.toUpper=ph,_r.trim=fh,_r.trimEnd=mh,_r.trimStart=gh,_r.truncate=vh,_r.unescape=bh,_r.uniqueId=ep,_r.upperCase=yh,_r.upperFirst=wh,_r.each=uc,_r.eachRight=dc,_r.first=Js,Mh(_r,function(){var e={};return Oi(_r,(function(t,n){dt.call(_r.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),_r.VERSION=a,En(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){_r[e].placeholder=_r})),En(["drop","take"],(function(e,t){Nr.prototype[e]=function(n){n=n===i?1:Ut(Xu(n),0);var r=this.__filtered__&&!t?new Nr(this):this.clone();return r.__filtered__?r.__takeCount__=jt(n,r.__takeCount__):r.__views__.push({size:jt(n,$),type:e+(r.__dir__<0?"Right":"")}),r},Nr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),En(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==I||n==D;Nr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ho(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),En(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Nr.prototype[e]=function(){return this[n](1).value()[0]}})),En(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Nr.prototype[e]=function(){return this.__filtered__?new Nr(this):this[n](1)}})),Nr.prototype.compact=function(){return this.filter(Rh)},Nr.prototype.find=function(e){return this.filter(e).head()},Nr.prototype.findLast=function(e){return this.reverse().find(e)},Nr.prototype.invokeMap=wa((function(e,t){return"function"==typeof e?new Nr(this):this.map((function(n){return Ki(n,e,t)}))})),Nr.prototype.reject=function(e){return this.filter(jc(Ho(e)))},Nr.prototype.slice=function(e,t){e=Xu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Nr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=Xu(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Nr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Nr.prototype.toArray=function(){return this.take($)},Oi(Nr.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=_r[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);a&&(_r.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Nr,c=s[0],u=l||lu(t),d=function(e){var t=a.apply(_r,Cn([e],s));return r&&h?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,p=!!this.__actions__.length,f=o&&!h,m=l&&!p;if(!o&&u){t=m?t:new Nr(this);var g=e.apply(t,s);return g.__actions__.push({func:ql,args:[d],thisArg:i}),new Ar(g,h)}return f&&m?e.apply(this,s):(g=this.thru(d),f?r?g.value()[0]:g.value():g)})})),En(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ot[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);_r.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(lu(i)?i:[],e)}return this[n]((function(n){return t.apply(lu(n)?n:[],e)}))}})),Oi(Nr.prototype,(function(e,t){var n=_r[t];if(n){var r=n.name+"";dt.call(cn,r)||(cn[r]=[]),cn[r].push({name:t,func:n})}})),cn[yo(i,y).name]=[{name:"wrapper",func:i}],Nr.prototype.clone=Cr,Nr.prototype.reverse=Tr,Nr.prototype.value=Rr,_r.prototype.at=Xl,_r.prototype.chain=Wl,_r.prototype.commit=Yl,_r.prototype.next=Ql,_r.prototype.plant=Zl,_r.prototype.reverse=ec,_r.prototype.toJSON=_r.prototype.valueOf=_r.prototype.value=tc,_r.prototype.first=_r.prototype.head,Nt&&(_r.prototype[Nt]=Jl),_r},Sr=_r();sn._=Sr,r=function(){return Sr}.call(t,n,t,e),r===i||(e.exports=r)}.call(this)},69011:function(e,t,n){var r=n(68250),i="Expected a function";function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(a.Cache||r),n}a.Cache=r,e.exports=a},82451:function(e,t,n){var r=n(40091),i=n(77848),a=i((function(e,t,n){r(e,t,n)}));e.exports=a},48875:function(e,t,n){var r=n(40091),i=n(77848),a=i((function(e,t,n,i){r(e,t,n,i)}));e.exports=a},21517:function(e){var t="Expected a function";function n(e){if("function"!=typeof e)throw new TypeError(t);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}e.exports=n},79071:function(e){function t(){}e.exports=t},94495:function(e,t,n){var r=n(78942),i=function(){return r.Date.now()};e.exports=i},38403:function(e,t,n){var r=n(3334),i=n(21517),a=n(16735);function o(e,t){return a(e,i(r(t)))}e.exports=o},74874:function(e,t,n){var r=n(90242),i=n(41439),a=i((function(e,t){return null==e?{}:r(e,t)}));e.exports=a},16735:function(e,t,n){var r=n(65111),i=n(3334),a=n(35031),o=n(93650);function s(e,t){if(null==e)return{};var n=r(o(e),(function(e){return[e]}));return t=i(t),a(e,n,(function(e,n){return t(e,n[0])}))}e.exports=s},43282:function(e,t,n){var r=n(12762),i=n(98880),a=n(65187),o=n(66040);function s(e){return a(e)?r(o(e)):i(e)}e.exports=s},95479:function(e,t,n){var r=n(93640),i=n(5485),a=r((function(e,t,n){return e+(n?" ":"")+i(t)}));e.exports=a},99306:function(e){function t(){return[]}e.exports=t},34772:function(e){function t(){return!1}e.exports=t},97331:function(e,t,n){var r=n(12784),i=n(41580),a="Expected a function";function o(e,t,n){var o=!0,s=!0;if("function"!=typeof e)throw new TypeError(a);return i(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:o,maxWait:t,trailing:s})}e.exports=o},43301:function(e,t,n){var r=n(6131),i=1/0,a=17976931348623157e292;function o(e){if(!e)return 0===e?e:0;if(e=r(e),e===i||e===-i){var t=e<0?-1:1;return t*a}return e===e?e:0}e.exports=o},67642:function(e,t,n){var r=n(43301);function i(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}e.exports=i},6131:function(e,t,n){var r=n(86403),i=n(41580),a=n(51187),o=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;function d(e){if("number"==typeof e)return e;if(a(e))return o;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):s.test(e)?o:+e}e.exports=d},64207:function(e,t,n){var r=n(39032),i=n(25288);function a(e){return r(e,i(e))}e.exports=a},95243:function(e,t,n){var r=n(52291);function i(e){return null==e?"":r(e)}e.exports=i},2011:function(e,t,n){var r=n(79968),i=n(39747),a=n(47170),o=n(3334),s=n(74784),l=n(53142),c=n(75853),u=n(93655),d=n(41580),h=n(8666);function p(e,t,n){var p=l(e),f=p||c(e)||h(e);if(t=o(t,4),null==n){var m=e&&e.constructor;n=f?p?new m:[]:d(e)&&u(m)?i(s(e)):{}}return(f?r:a)(e,(function(e,r,i){return t(n,e,r,i)})),n}e.exports=p},82438:function(e,t,n){var r=n(15630);function i(e){return e&&e.length?r(e):[]}e.exports=i},5485:function(e,t,n){var r=n(4326),i=r("toUpperCase");e.exports=i},39817:function(e,t,n){var r=n(3905),i=n(81211);function a(e){return null==e?[]:r(e,i(e))}e.exports=a},39850:function(e,t,n){var r=n(39546),i=n(15813),a=n(95243),o=n(10482);function s(e,t,n){return e=a(e),t=n?void 0:t,void 0===t?i(e)?o(e):r(e):e.match(t)||[]}e.exports=s},13182:function(e,t,n){var r=n(79847),i=n(23945),a=n(80214),o=n(65406),s=i((function(e){return a(r(e,o))}));e.exports=s},58479:function(e){"use strict";e.exports=Math.abs},18449:function(e){"use strict";e.exports=Math.floor},62422:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!==e}},88129:function(e){"use strict";e.exports=Math.max},22387:function(e){"use strict";e.exports=Math.min},85865:function(e){"use strict";e.exports=Math.pow},1319:function(e){"use strict";e.exports=Math.round},36882:function(e,t,n){"use strict";var r=n(62422);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},33486:function(e,t,n){"use strict";var r=n(4364);
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
const i=n(7991),a=n(39318),o="function"===typeof Symbol&&"function"===typeof Symbol["for"]?Symbol["for"]("nodejs.util.inspect.custom"):null;t.hp=u,t.IS=50;const s=2147483647;function l(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}function c(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return d(e,t,n)}function d(e,t,n){if("string"===typeof e)return m(e,t);if(ArrayBuffer.isView(e))return v(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(se(e,ArrayBuffer)||e&&se(e.buffer,ArrayBuffer))return b(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(se(e,SharedArrayBuffer)||e&&se(e.buffer,SharedArrayBuffer)))return b(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);const i=y(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e,t,n){return h(e),e<=0?c(e):void 0!==t?"string"===typeof n?c(e).fill(t,n):c(e).fill(t):c(e)}function f(e){return h(e),c(e<0?0:0|w(e))}function m(e,t){if("string"===typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|_(e,t);let r=c(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function g(e){const t=e.length<0?0:0|w(e.length),n=c(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function v(e){if(se(e,Uint8Array)){const t=new Uint8Array(e);return b(t.buffer,t.byteOffset,t.byteLength)}return g(e)}function b(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,u.prototype),r}function y(e){if(u.isBuffer(e)){const t=0|w(e.length),n=c(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!==typeof e.length||le(e.length)?c(0):g(e):"Buffer"===e.type&&Array.isArray(e.data)?g(e.data):void 0}function w(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function E(e){return+e!=e&&0,u.alloc(+e)}function _(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||se(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return ne(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return ae(e).length;default:if(i)return r?-1:ne(e).length;t=(""+t).toLowerCase(),i=!0}}function S(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return L(this,t,n);case"ascii":return M(this,t,n);case"latin1":case"binary":return B(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function k(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function x(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,le(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:A(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):A(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function A(e,t,n,r,i){let a,o=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){let r=-1;for(a=n;a<s;a++)if(c(e,a)===c(t,-1===r?0:a-r)){if(-1===r&&(r=a),a-r+1===l)return r*o}else-1!==r&&(a-=a-r),r=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){let n=!0;for(let r=0;r<l;r++)if(c(e,a+r)!==c(t,r)){n=!1;break}if(n)return a}return-1}function N(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;const a=t.length;let o;for(r>a/2&&(r=a/2),o=0;o<r;++o){const r=parseInt(t.substr(2*o,2),16);if(le(r))return o;e[n+o]=r}return o}function C(e,t,n,r){return oe(ne(t,e.length-n),e,n,r)}function T(e,t,n,r){return oe(re(t),e,n,r)}function R(e,t,n,r){return oe(ae(t),e,n,r)}function O(e,t,n,r){return oe(ie(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function L(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;while(i<n){const t=e[i];let a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,l;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],128===(192&n)&&(l=(31&t)<<6|63&n,l>127&&(a=l));break;case 3:n=e[i+1],r=e[i+2],128===(192&n)&&128===(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(a=l));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(a=l))}}null===a?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=o}return P(r)}u.TYPED_ARRAY_SUPPORT=l(),u.TYPED_ARRAY_SUPPORT||"undefined"===typeof r||"function"!==typeof r.error||r.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,n){return d(e,t,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,n){return p(e,t,n)},u.allocUnsafe=function(e){return f(e)},u.allocUnsafeSlow=function(e){return f(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(se(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),se(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=u.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(se(t,Uint8Array))i+t.length>r.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},u.byteLength=_,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)k(this,t,t+1);return this},u.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)k(this,t,t+3),k(this,t+1,t+2);return this},u.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)k(this,t,t+7),k(this,t+1,t+6),k(this,t+2,t+5),k(this,t+3,t+4);return this},u.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?L(this,0,e):S.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){let e="";const n=t.IS;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,i){if(se(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let a=i-r,o=n-t;const s=Math.min(a,o),l=this.slice(r,i),c=e.slice(t,n);for(let u=0;u<s;++u)if(l[u]!==c[u]){a=l[u],o=c[u];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return x(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return x(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let a=!1;for(;;)switch(r){case"hex":return N(this,e,t,n);case"utf8":case"utf-8":return C(this,e,t,n);case"ascii":case"latin1":case"binary":return T(this,e,t,n);case"base64":return R(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const D=4096;function P(e){const t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);let n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=D));return n}function M(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function B(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function F(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let a=t;a<n;++a)i+=ce[e[a]];return i}function $(e,t,n){const r=e.slice(t,n);let i="";for(let a=0;a<r.length-1;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function U(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,n,r,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function V(e,t,n,r,i){Q(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function K(e,t,n,r,i){Q(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function H(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function G(e,t,n,r,i){return t=+t,n>>>=0,i||H(e,t,n,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,i){return t=+t,n>>>=0,i||H(e,t,n,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){const n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||U(e,t,this.length);let r=this[e],i=1,a=0;while(++a<t&&(i*=256))r+=this[e+a]*i;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||U(e,t,this.length);let r=this[e+--t],i=1;while(t>0&&(i*=256))r+=this[e+--t]*i;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||U(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||U(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||U(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=ue((function(e){e>>>=0,J(e,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),u.prototype.readBigUInt64BE=ue((function(e){e>>>=0,J(e,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||U(e,t,this.length);let r=this[e],i=1,a=0;while(++a<t&&(i*=256))r+=this[e+a]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||U(e,t,this.length);let r=t,i=1,a=this[e+--r];while(r>0&&(i*=256))a+=this[e+--r]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return e>>>=0,t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||U(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||U(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=ue((function(e){e>>>=0,J(e,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),u.prototype.readBigInt64BE=ue((function(e){e>>>=0,J(e,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||U(e,4,this.length),a.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||U(e,4,this.length),a.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||U(e,8,this.length),a.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||U(e,8,this.length),a.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){const r=Math.pow(2,8*n)-1;j(this,e,t,n,r,0)}let i=1,a=0;this[t]=255&e;while(++a<n&&(i*=256))this[t+a]=e/i&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){const r=Math.pow(2,8*n)-1;j(this,e,t,n,r,0)}let i=n-1,a=1;this[t+i]=255&e;while(--i>=0&&(a*=256))this[t+i]=e/a&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=ue((function(e,t=0){return V(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=ue((function(e,t=0){return K(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);j(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;this[t]=255&e;while(++i<n&&(a*=256))e<0&&0===o&&0!==this[t+i-1]&&(o=1),this[t+i]=(e/a|0)-o&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);j(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;this[t+i]=255&e;while(--i>=0&&(a*=256))e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/a|0)-o&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=ue((function(e,t=0){return V(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=ue((function(e,t=0){return K(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(e,t,n){return G(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return G(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},u.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i<n;++i)this[i]=e;else{const a=u.isBuffer(e)?e:u.from(e,r),o=a.length;if(0===o)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};const q={};function X(e,t,n){q[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function W(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function Y(e,t,n){J(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||Z(t,e.length-(n+1))}function Q(e,t,n,r,i,a){if(e>n||e<t){const r="bigint"===typeof t?"n":"";let i;throw i=a>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(a+1)}${r}`:`>= -(2${r} ** ${8*(a+1)-1}${r}) and < 2 ** ${8*(a+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new q.ERR_OUT_OF_RANGE("value",i,e)}Y(r,i,a)}function J(e,t){if("number"!==typeof e)throw new q.ERR_INVALID_ARG_TYPE(t,"number",e)}function Z(e,t,n){if(Math.floor(e)!==e)throw J(e,n),new q.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new q.ERR_BUFFER_OUT_OF_BOUNDS;throw new q.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}X("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),X("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),X("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=W(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=W(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const ee=/[^+/0-9A-Za-z-_]/g;function te(e){if(e=e.split("=")[0],e=e.trim().replace(ee,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function ne(e,t){let n;t=t||1/0;const r=e.length;let i=null;const a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function re(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function ie(e,t){let n,r,i;const a=[];for(let o=0;o<e.length;++o){if((t-=2)<0)break;n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r)}return a}function ae(e){return i.toByteArray(te(e))}function oe(e,t,n,r){let i;for(i=0;i<r;++i){if(i+n>=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function se(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function le(e){return e!==e}const ce=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function ue(e){return"undefined"===typeof BigInt?de:e}function de(){throw new Error("BigInt not supported")}},48660:function(e,t,n){var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&i&&"function"===typeof i.get?i.get:null,o=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"===typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype,h=d?WeakMap.prototype.has:null,p="function"===typeof WeakSet&&WeakSet.prototype,f=p?WeakSet.prototype.has:null,m="function"===typeof WeakRef&&WeakRef.prototype,g=m?WeakRef.prototype.deref:null,v=Boolean.prototype.valueOf,b=Object.prototype.toString,y=Function.prototype.toString,w=String.prototype.match,E=String.prototype.slice,_=String.prototype.replace,S=String.prototype.toUpperCase,k=String.prototype.toLowerCase,x=RegExp.prototype.test,A=Array.prototype.concat,N=Array.prototype.join,C=Array.prototype.slice,T=Math.floor,R="function"===typeof BigInt?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,I="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,L="function"===typeof Symbol&&"object"===typeof Symbol.iterator,D="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===L||"symbol")?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,M=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function B(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-T(-e):T(e);if(r!==e){var i=String(r),a=E.call(t,i.length+1);return _.call(i,n,"$&_")+"."+_.call(_.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(t,n,"$&_")}var F=n(86973),$=F.custom,U=J($)?$:null,j={__proto__:null,double:'"',single:"'"},V={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function K(e,t,n){var r=n.quoteStyle||t,i=j[r];return i+e+i}function H(e){return _.call(String(e),/"/g,"&quot;")}function G(e){return"[object Array]"===ne(e)&&(!D||!("object"===typeof e&&D in e))}function z(e){return"[object Date]"===ne(e)&&(!D||!("object"===typeof e&&D in e))}function q(e){return"[object RegExp]"===ne(e)&&(!D||!("object"===typeof e&&D in e))}function X(e){return"[object Error]"===ne(e)&&(!D||!("object"===typeof e&&D in e))}function W(e){return"[object String]"===ne(e)&&(!D||!("object"===typeof e&&D in e))}function Y(e){return"[object Number]"===ne(e)&&(!D||!("object"===typeof e&&D in e))}function Q(e){return"[object Boolean]"===ne(e)&&(!D||!("object"===typeof e&&D in e))}function J(e){if(L)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!I)return!1;try{return I.call(e),!0}catch(t){}return!1}function Z(e){if(!e||"object"!==typeof e||!R)return!1;try{return R.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,i,s){var l=r||{};if(te(l,"quoteStyle")&&!te(j,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(te(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var d=!te(l,"customInspect")||l.customInspect;if("boolean"!==typeof d&&"symbol"!==d)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(te(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(te(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var h=l.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return de(t,l);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var p=String(t);return h?B(t,p):p}if("bigint"===typeof t){var f=String(t)+"n";return h?B(t,f):f}var m="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof i&&(i=0),i>=m&&m>0&&"object"===typeof t)return G(t)?"[Array]":"[Object]";var g=ve(l,i);if("undefined"===typeof s)s=[];else if(ie(s,t)>=0)return"[Circular]";function b(t,n,r){if(n&&(s=C.call(s),s.push(n)),r){var a={depth:l.depth};return te(l,"quoteStyle")&&(a.quoteStyle=l.quoteStyle),e(t,a,i+1,s)}return e(t,l,i+1,s)}if("function"===typeof t&&!q(t)){var y=re(t),w=ye(t,b);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(w.length>0?" { "+N.call(w,", ")+" }":"")}if(J(t)){var S=L?_.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(t);return"object"!==typeof t||L?S:pe(S)}if(ue(t)){for(var x="<"+k.call(String(t.nodeName)),T=t.attributes||[],O=0;O<T.length;O++)x+=" "+T[O].name+"="+K(H(T[O].value),"double",l);return x+=">",t.childNodes&&t.childNodes.length&&(x+="..."),x+="</"+k.call(String(t.nodeName))+">",x}if(G(t)){if(0===t.length)return"[]";var $=ye(t,b);return g&&!ge($)?"["+be($,g)+"]":"[ "+N.call($,", ")+" ]"}if(X(t)){var V=ye(t,b);return"cause"in Error.prototype||!("cause"in t)||P.call(t,"cause")?0===V.length?"["+String(t)+"]":"{ ["+String(t)+"] "+N.call(V,", ")+" }":"{ ["+String(t)+"] "+N.call(A.call("[cause]: "+b(t.cause),V),", ")+" }"}if("object"===typeof t&&d){if(U&&"function"===typeof t[U]&&F)return F(t,{depth:m-i});if("symbol"!==d&&"function"===typeof t.inspect)return t.inspect()}if(ae(t)){var ee=[];return o&&o.call(t,(function(e,n){ee.push(b(n,t,!0)+" => "+b(e,t))})),me("Map",a.call(t),ee,g)}if(le(t)){var he=[];return u&&u.call(t,(function(e){he.push(b(e,t))})),me("Set",c.call(t),he,g)}if(oe(t))return fe("WeakMap");if(ce(t))return fe("WeakSet");if(se(t))return fe("WeakRef");if(Y(t))return pe(b(Number(t)));if(Z(t))return pe(b(R.call(t)));if(Q(t))return pe(v.call(t));if(W(t))return pe(b(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&t===globalThis||"undefined"!==typeof n.g&&t===n.g)return"{ [object globalThis] }";if(!z(t)&&!q(t)){var we=ye(t,b),Ee=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,_e=t instanceof Object?"":"null prototype",Se=!Ee&&D&&Object(t)===t&&D in t?E.call(ne(t),8,-1):_e?"Object":"",ke=Ee||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"",xe=ke+(Se||_e?"["+N.call(A.call([],Se||[],_e||[]),": ")+"] ":"");return 0===we.length?xe+"{}":g?xe+"{"+be(we,g)+"}":xe+"{ "+N.call(we,", ")+" }"}return String(t)};var ee=Object.prototype.hasOwnProperty||function(e){return e in this};function te(e,t){return ee.call(e,t)}function ne(e){return b.call(e)}function re(e){if(e.name)return e.name;var t=w.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ie(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function ae(e){if(!a||!e||"object"!==typeof e)return!1;try{a.call(e);try{c.call(e)}catch(t){return!0}return e instanceof Map}catch(n){}return!1}function oe(e){if(!h||!e||"object"!==typeof e)return!1;try{h.call(e,h);try{f.call(e,f)}catch(t){return!0}return e instanceof WeakMap}catch(n){}return!1}function se(e){if(!g||!e||"object"!==typeof e)return!1;try{return g.call(e),!0}catch(t){}return!1}function le(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{a.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}function ce(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{h.call(e,h)}catch(t){return!0}return e instanceof WeakSet}catch(n){}return!1}function ue(e){return!(!e||"object"!==typeof e)&&("undefined"!==typeof HTMLElement&&e instanceof HTMLElement||"string"===typeof e.nodeName&&"function"===typeof e.getAttribute)}function de(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return de(E.call(e,0,t.maxStringLength),t)+r}var i=V[t.quoteStyle||"single"];i.lastIndex=0;var a=_.call(_.call(e,i,"\\$1"),/[\x00-\x1f]/g,he);return K(a,"single",t)}function he(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+S.call(t.toString(16))}function pe(e){return"Object("+e+")"}function fe(e){return e+" { ? }"}function me(e,t,n,r){var i=r?be(n,r):N.call(n,", ");return e+" ("+t+") {"+i+"}"}function ge(e){for(var t=0;t<e.length;t++)if(ie(e[t],"\n")>=0)return!1;return!0}function ve(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=N.call(Array(e.indent+1)," ")}return{base:n,prev:N.call(Array(t+1),n)}}function be(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+N.call(e,","+n)+"\n"+t.prev}function ye(e,t){var n=G(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=te(e,i)?t(e[i],e):""}var a,o="function"===typeof O?O(e):[];if(L){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var l in e)te(e,l)&&(n&&String(Number(l))===l&&l<e.length||L&&a["$"+l]instanceof Symbol||(x.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"===typeof O)for(var c=0;c<o.length;c++)P.call(e,o[c])&&r.push("["+t(o[c])+"]: "+t(e[o[c]],e));return r}},82372:function(e){"use strict";var t=function(e){return e!==e};e.exports=function(e,n){return 0===e&&0===n?1/e===1/n:e===n||!(!t(e)||!t(n))}},55968:function(e,t,n){"use strict";var r=n(41857),i=n(28498),a=n(82372),o=n(61937),s=n(85087),l=i(o(),Object);r(l,{getPolyfill:o,implementation:a,shim:s}),e.exports=l},61937:function(e,t,n){"use strict";var r=n(82372);e.exports=function(){return"function"===typeof Object.is?Object.is:r}},85087:function(e,t,n){"use strict";var r=n(61937),i=n(41857);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},78160:function(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,o=n(50968),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{d(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),f=function(e){if("undefined"===typeof window||!p)return d(e);try{return d(e)}catch(t){return!1}};r=function(e){var t=null!==e&&"object"===typeof e,n="[object Function]"===a.call(e),r=o(e),s=t&&"[object String]"===a.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=c&&n;if(s&&e.length>0&&!i.call(e,0))for(var p=0;p<e.length;++p)d.push(String(p));if(r&&e.length>0)for(var m=0;m<e.length;++m)d.push(String(m));else for(var g in e)h&&"prototype"===g||!i.call(e,g)||d.push(String(g));if(l)for(var v=f(e),b=0;b<u.length;++b)v&&"constructor"===u[b]||!i.call(e,u[b])||d.push(u[b]);return d}}e.exports=r},49228:function(e,t,n){"use strict";var r=Array.prototype.slice,i=n(50968),a=Object.keys,o=a?function(e){return a(e)}:n(78160),s=Object.keys;o.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=o;return Object.keys||o},e.exports=o},50968:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},25164:function(e,t,n){"use strict";var r=n(49228),i=n(62908)(),a=n(14607),o=n(9629),s=a("Array.prototype.push"),l=a("Object.prototype.propertyIsEnumerable"),c=i?o.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=o(e);if(1===arguments.length)return n;for(var a=1;a<arguments.length;++a){var u=o(arguments[a]),d=r(u),h=i&&(o.getOwnPropertySymbols||c);if(h)for(var p=h(u),f=0;f<p.length;++f){var m=p[f];l(u,m)&&s(d,m)}for(var g=0;g<d.length;++g){var v=d[g];if(l(u,v)){var b=u[v];n[v]=b}}}return n}},23225:function(e,t,n){"use strict";var r=n(25164),i=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var i=Object.assign({},n),a="";for(var o in i)a+=o;return e!==a},a=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1};e.exports=function(){return Object.assign?i()||a()?r:Object.assign:r}},69501:function(e){"use strict";e.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},39907:function(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}function s(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(function(){try{t="function"===typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"===typeof clearTimeout?clearTimeout:a}catch(e){n=a}})();var l,c=[],u=!1,d=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var e=o(h);u=!0;var t=c.length;while(t){l=c,c=[];while(++d<t)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,s(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||u||o(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},1830:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:r.RFC3986,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986}},45810:function(e,t,n){"use strict";var r=n(16623),i=n(26193),a=n(1830);e.exports={formats:a,parse:i,stringify:r}},26193:function(e,t,n){"use strict";var r=n(91539),i=Object.prototype.hasOwnProperty,a=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t,n){if(e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},c="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",d=function(e,t){var n={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;d=d.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var h=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded?h+1:h);if(t.throwOnLimitExceeded&&p.length>h)throw new RangeError("Parameter limit exceeded. Only "+h+" parameter"+(1===h?"":"s")+" allowed.");var f,m=-1,g=t.charset;if(t.charsetSentinel)for(f=0;f<p.length;++f)0===p[f].indexOf("utf8=")&&(p[f]===u?g="utf-8":p[f]===c&&(g="iso-8859-1"),m=f,f=p.length);for(f=0;f<p.length;++f)if(f!==m){var v,b,y=p[f],w=y.indexOf("]="),E=-1===w?y.indexOf("="):w+1;-1===E?(v=t.decoder(y,o.decoder,g,"key"),b=t.strictNullHandling?null:""):(v=t.decoder(y.slice(0,E),o.decoder,g,"key"),b=r.maybeMap(l(y.slice(E+1),t,a(n[v])?n[v].length:0),(function(e){return t.decoder(e,o.decoder,g,"value")}))),b&&t.interpretNumericEntities&&"iso-8859-1"===g&&(b=s(String(b))),y.indexOf("[]=")>-1&&(b=a(b)?[b]:b);var _=i.call(n,v);_&&"combine"===t.duplicates?n[v]=r.combine(n[v],b):_&&"last"!==t.duplicates||(n[v]=b)}return n},h=function(e,t,n,i){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var o=e.slice(0,-1).join("");a=Array.isArray(t)&&t[o]?t[o].length:0}for(var s=i?t:l(t,n,a),c=e.length-1;c>=0;--c){var u,d=e[c];if("[]"===d&&n.parseArrays)u=n.allowEmptyArrays&&(""===s||n.strictNullHandling&&null===s)?[]:r.combine([],s);else{u=n.plainObjects?{__proto__:null}:{};var h="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,p=n.decodeDotInKeys?h.replace(/%2E/g,"."):h,f=parseInt(p,10);n.parseArrays||""!==p?!isNaN(f)&&d!==p&&String(f)===p&&f>=0&&n.parseArrays&&f<=n.arrayLimit?(u=[],u[f]=s):"__proto__"!==p&&(u[p]=s):u={0:s}}s=u}return s},p=function(e,t,n,r){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=n.depth>0&&o.exec(a),c=l?a.slice(0,l.index):a,u=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}var d=0;while(n.depth>0&&null!==(l=s.exec(a))&&d<n.depth){if(d+=1,!n.plainObjects&&i.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(l[1])}if(l){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+a.slice(l.index)+"]")}return h(u,t,n,r)}},f=function(e){if(!e)return o;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.decodeDotInKeys&&"boolean"!==typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&"undefined"!==typeof e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if("undefined"!==typeof e.throwOnLimitExceeded&&"boolean"!==typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t="undefined"===typeof e.charset?o.charset:e.charset,n="undefined"===typeof e.duplicates?o.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");var i="undefined"===typeof e.allowDots?!0===e.decodeDotInKeys||o.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:o.comma,decodeDotInKeys:"boolean"===typeof e.decodeDotInKeys?e.decodeDotInKeys:o.decodeDotInKeys,decoder:"function"===typeof e.decoder?e.decoder:o.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:o.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:o.plainObjects,strictDepth:"boolean"===typeof e.strictDepth?!!e.strictDepth:o.strictDepth,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:"boolean"===typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var n=f(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?{__proto__:null}:{};for(var i="string"===typeof e?d(e,n):e,a=n.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var l=o[s],c=p(l,i[l],n,"string"===typeof e);a=r.merge(a,c,n)}return!0===n.allowSparse?a:r.compact(a)}},16623:function(e,t,n){"use strict";var r=n(77575),i=n(91539),a=n(1830),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,h=a["default"],p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:h,formatter:a.formatters[h],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},f=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},m={},g=function e(t,n,a,o,s,c,d,h,g,v,b,y,w,E,_,S,k,x){var A=t,N=x,C=0,T=!1;while(void 0!==(N=N.get(m))&&!T){var R=N.get(t);if(C+=1,"undefined"!==typeof R){if(R===C)throw new RangeError("Cyclic object value");T=!0}"undefined"===typeof N.get(m)&&(C=0)}if("function"===typeof v?A=v(n,A):A instanceof Date?A=w(A):"comma"===a&&l(A)&&(A=i.maybeMap(A,(function(e){return e instanceof Date?w(e):e}))),null===A){if(c)return g&&!S?g(n,p.encoder,k,"key",E):n;A=""}if(f(A)||i.isBuffer(A)){if(g){var O=S?n:g(n,p.encoder,k,"key",E);return[_(O)+"="+_(g(A,p.encoder,k,"value",E))]}return[_(n)+"="+_(String(A))]}var I,L=[];if("undefined"===typeof A)return L;if("comma"===a&&l(A))S&&g&&(A=i.maybeMap(A,g)),I=[{value:A.length>0?A.join(",")||null:void 0}];else if(l(v))I=v;else{var D=Object.keys(A);I=b?D.sort(b):D}var P=h?String(n).replace(/\./g,"%2E"):String(n),M=o&&l(A)&&1===A.length?P+"[]":P;if(s&&l(A)&&0===A.length)return M+"[]";for(var B=0;B<I.length;++B){var F=I[B],$="object"===typeof F&&F&&"undefined"!==typeof F.value?F.value:A[F];if(!d||null!==$){var U=y&&h?String(F).replace(/\./g,"%2E"):String(F),j=l(A)?"function"===typeof a?a(M,U):M:M+(y?"."+U:"["+U+"]");x.set(t,C);var V=r();V.set(m,x),u(L,e($,j,a,o,s,c,d,h,"comma"===a&&S&&l(A)?null:g,v,b,y,w,E,_,S,k,V))}}return L},v=function(e){if(!e)return p;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.encodeDotInKeys&&"boolean"!==typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a["default"];if("undefined"!==typeof e.format){if(!o.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,i=a.formatters[n],c=p.filter;if(("function"===typeof e.filter||l(e.filter))&&(c=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in e&&"boolean"!==typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u="undefined"===typeof e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:"undefined"===typeof e.delimiter?p.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:p.encode,encodeDotInKeys:"boolean"===typeof e.encodeDotInKeys?e.encodeDotInKeys:p.encodeDotInKeys,encoder:"function"===typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:c,format:n,formatter:i,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}};e.exports=function(e,t){var n,i,a=e,o=v(t);"function"===typeof o.filter?(i=o.filter,a=i("",a)):l(o.filter)&&(i=o.filter,n=i);var c=[];if("object"!==typeof a||null===a)return"";var d=s[o.arrayFormat],h="comma"===d&&o.commaRoundTrip;n||(n=Object.keys(a)),o.sort&&n.sort(o.sort);for(var p=r(),f=0;f<n.length;++f){var m=n[f],b=a[m];o.skipNulls&&null===b||u(c,g(b,m,d,h,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,p))}var y=c.join(o.delimiter),w=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),y.length>0?w+y:""}},91539:function(e,t,n){"use strict";var r=n(1830),i=Object.prototype.hasOwnProperty,a=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e){while(e.length>1){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var r=[],i=0;i<n.length;++i)"undefined"!==typeof n[i]&&r.push(n[i]);t.obj[t.prop]=r}}},l=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},c=function e(t,n,r){if(!n)return t;if("object"!==typeof n&&"function"!==typeof n){if(a(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var o=t;return a(t)&&!a(n)&&(o=l(t,r)),a(t)&&a(n)?(n.forEach((function(n,a){if(i.call(t,a)){var o=t[a];o&&"object"===typeof o&&n&&"object"===typeof n?t[a]=e(o,n,r):t.push(n)}else t[a]=n})),t):Object.keys(n).reduce((function(t,a){var o=n[a];return i.call(t,a)?t[a]=e(t[a],o,r):t[a]=o,t}),o)},u=function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},d=function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},h=1024,p=function(e,t,n,i,a){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",c=0;c<s.length;c+=h){for(var u=s.length>=h?s.slice(c,c+h):s,d=[],p=0;p<u.length;++p){var f=u.charCodeAt(p);45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||a===r.RFC1738&&(40===f||41===f)?d[d.length]=u.charAt(p):f<128?d[d.length]=o[f]:f<2048?d[d.length]=o[192|f>>6]+o[128|63&f]:f<55296||f>=57344?d[d.length]=o[224|f>>12]+o[128|f>>6&63]+o[128|63&f]:(p+=1,f=65536+((1023&f)<<10|1023&u.charCodeAt(p)),d[d.length]=o[240|f>>18]+o[128|f>>12&63]+o[128|f>>6&63]+o[128|63&f])}l+=d.join("")}return l},f=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],o=Object.keys(a),l=0;l<o.length;++l){var c=o[l],u=a[c];"object"===typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:c}),n.push(u))}return s(t),e},m=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},g=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},v=function(e,t){return[].concat(e,t)},b=function(e,t){if(a(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};e.exports={arrayToObject:l,assign:u,combine:v,compact:f,decode:d,encode:p,isBuffer:g,isRegExp:m,maybeMap:b,merge:c}},1359:function(e,t){"use strict";var n,r=Object.prototype.hasOwnProperty;function i(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return null}}function a(e){try{return encodeURIComponent(e)}catch(t){return null}}function o(e){var t,n=/([^=?#&]+)=?([^&]*)/g,r={};while(t=n.exec(e)){var a=i(t[1]),o=i(t[2]);null===a||null===o||a in r||(r[a]=o)}return r}function s(e,t){t=t||"";var i,o,s=[];for(o in"string"!==typeof t&&(t="?"),e)if(r.call(e,o)){if(i=e[o],i||null!==i&&i!==n&&!isNaN(i)||(i=""),o=a(o),i=a(i),null===o||null===i)continue;s.push(o+"="+i)}return s.length?t+s.join("&"):""}t.stringify=s,t.parse=o},85699:function(e){"use strict";function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var n={};function r(e,r,i){function a(e,t,n){return"string"===typeof r?r:r(e,t,n)}i||(i=Error);var o=function(e){function n(t,n,r){return e.call(this,a(t,n,r))||this}return t(n,e),n}(i);o.prototype.name=i.name,o.prototype.code=e,n[e]=o}function i(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}function a(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function o(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function s(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,l;if("string"===typeof t&&a(t,"not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be",o(e," argument"))l="The ".concat(e," ").concat(r," ").concat(i(t,"type"));else{var c=s(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(c," ").concat(r," ").concat(i(t,"type"))}return l+=". Received type ".concat(typeof n),l}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=n},11265:function(e,t,n){"use strict";var r=n(39907),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=u;var a=n(28199),o=n(5291);n(35615)(u,a);for(var s=i(o.prototype),l=0;l<s.length;l++){var c=s[l];u.prototype[c]||(u.prototype[c]=o.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);a.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",d)))}function d(){this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},94421:function(e,t,n){"use strict";e.exports=i;var r=n(99415);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(35615)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},28199:function(e,t,n){"use strict";var r,i=n(39907);e.exports=T,T.ReadableState=C;n(50046).EventEmitter;var a=function(e,t){return e.listeners(t).length},o=n(64856),s=n(1048).Buffer,l=("undefined"!==typeof n.g?n.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function c(e){return s.from(e)}function u(e){return s.isBuffer(e)||e instanceof l}var d,h=n(43951);d=h&&h.debuglog?h.debuglog("stream"):function(){};var p,f,m,g=n(82),v=n(16527),b=n(89952),y=b.getHighWaterMark,w=n(85699).F,E=w.ERR_INVALID_ARG_TYPE,_=w.ERR_STREAM_PUSH_AFTER_EOF,S=w.ERR_METHOD_NOT_IMPLEMENTED,k=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(35615)(T,o);var x=v.errorOrDestroy,A=["error","close","destroy","pause","resume"];function N(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function C(e,t,i){r=r||n(11265),e=e||{},"boolean"!==typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",i),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=n(18888).I),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function T(e){if(r=r||n(11265),!(this instanceof T))return new T(e);var t=this instanceof r;this._readableState=new C(e,this,t),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function R(e,t,n,r,i){d("readableAddChunk",t);var a,o=e._readableState;if(null===t)o.reading=!1,M(e,o);else if(i||(a=I(o,t)),a)x(e,a);else if(o.objectMode||t&&t.length>0)if("string"===typeof t||o.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=c(t)),r)o.endEmitted?x(e,new k):O(e,o,t,!0);else if(o.ended)x(e,new _);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?O(e,o,t,!1):$(e,o)):O(e,o,t,!1)}else r||(o.reading=!1,$(e,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function O(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&B(e)),$(e,t)}function I(e,t){var n;return u(t)||"string"===typeof t||void 0===t||e.objectMode||(n=new E("chunk",["string","Buffer","Uint8Array"],t)),n}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),T.prototype.destroy=v.destroy,T.prototype._undestroy=v.undestroy,T.prototype._destroy=function(e,t){t(e)},T.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"===typeof e&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=s.from(e,t),t=""),n=!0),R(this,e,t,!1,n)},T.prototype.unshift=function(e){return R(this,e,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(e){p||(p=n(18888).I);var t=new p(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;var r=this._readableState.buffer.head,i="";while(null!==r)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var L=1073741824;function D(e){return e>=L?e=L:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function P(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=D(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e,t){if(d("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?B(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,F(e)))}}function B(e){var t=e._readableState;d("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(F,e))}function F(e){var t=e._readableState;d("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,z(e)}function $(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(U,e,t))}function U(e,t){while(!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length)){var n=t.length;if(d("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function j(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,z(e))}}function V(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function K(e){d("readable nexttick read 0"),e.read(0)}function H(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(G,e,t))}function G(e,t){d("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),z(e),t.flowing&&!t.reading&&e.read(0)}function z(e){var t=e._readableState;d("flow",t.flowing);while(t.flowing&&null!==e.read());}function q(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function X(e){var t=e._readableState;d("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(W,t,e))}function W(e,t){if(d("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function Y(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}T.prototype.read=function(e){d("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?X(this):B(this),null;if(e=P(e,t),0===e&&t.ended)return 0===t.length&&X(this),null;var r,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&(i=!0,d("length less than watermark",i)),t.ended||t.reading?(i=!1,d("reading or ended",i)):i&&(d("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=P(n,t))),r=e>0?q(e,t):null,null===r?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&X(this)),null!==r&&this.emit("data",r),r},T.prototype._read=function(e){x(this,new S("_read()"))},T.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e);break}r.pipesCount+=1,d("pipe count=%d opts=%j",r.pipesCount,t);var o=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr,s=o?c:b;function l(e,t){d("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,p())}function c(){d("onend"),e.end()}r.endEmitted?i.nextTick(s):n.once("end",s),e.on("unpipe",l);var u=j(n);e.on("drain",u);var h=!1;function p(){d("cleanup"),e.removeListener("close",g),e.removeListener("finish",v),e.removeListener("drain",u),e.removeListener("error",m),e.removeListener("unpipe",l),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",f),h=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u()}function f(t){d("ondata");var i=e.write(t);d("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==Y(r.pipes,e))&&!h&&(d("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function m(t){d("onerror",t),b(),e.removeListener("error",m),0===a(e,"error")&&x(e,t)}function g(){e.removeListener("finish",v),b()}function v(){d("onfinish"),e.removeListener("close",g),b()}function b(){d("unpipe"),n.unpipe(e)}return n.on("data",f),N(e,"error",m),e.once("close",g),e.once("finish",v),e.emit("pipe",n),r.flowing||(d("pipe resume"),n.resume()),e},T.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Y(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},T.prototype.on=function(e,t){var n=o.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,d("on readable",r.length,r.reading),r.length?B(this):r.reading||i.nextTick(K,this))),n},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(e,t){var n=o.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(V,this),n},T.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(V,this),t},T.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!e.readableListening,H(this,e)),e.paused=!1,this},T.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(d("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){if(d("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)){var a=t.push(i);a||(r=!0,e.pause())}})),e)void 0===this[i]&&"function"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<A.length;a++)e.on(A[a],this.emit.bind(this,A[a]));return this._read=function(t){d("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"===typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=n(60534)),f(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),T._fromList=q,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(T.from=function(e,t){return void 0===m&&(m=n(71260)),m(T,e,t)})},99415:function(e,t,n){"use strict";e.exports=u;var r=n(85699).F,i=r.ERR_METHOD_NOT_IMPLEMENTED,a=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,l=n(11265);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new a);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"===typeof e.transform&&(this._transform=e.transform),"function"===typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!==typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(t,n){h(e,t,n)}))}function h(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}n(35615)(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,n){n(new i("_transform()"))},u.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,(function(e){t(e)}))}},5291:function(e,t,n){"use strict";var r,i=n(39907);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){G(t,e)}}e.exports=C,C.WritableState=N;var o={deprecate:n(66732)},s=n(64856),l=n(1048).Buffer,c=("undefined"!==typeof n.g?n.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function u(e){return l.from(e)}function d(e){return l.isBuffer(e)||e instanceof c}var h,p=n(16527),f=n(89952),m=f.getHighWaterMark,g=n(85699).F,v=g.ERR_INVALID_ARG_TYPE,b=g.ERR_METHOD_NOT_IMPLEMENTED,y=g.ERR_MULTIPLE_CALLBACK,w=g.ERR_STREAM_CANNOT_PIPE,E=g.ERR_STREAM_DESTROYED,_=g.ERR_STREAM_NULL_VALUES,S=g.ERR_STREAM_WRITE_AFTER_END,k=g.ERR_UNKNOWN_ENCODING,x=p.errorOrDestroy;function A(){}function N(e,t,i){r=r||n(11265),e=e||{},"boolean"!==typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=m(this,e,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){M(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function C(e){r=r||n(11265);var t=this instanceof r;if(!t&&!h.call(C,this))return new C(e);this._writableState=new N(e,this,t),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),s.call(this)}function T(e,t){var n=new S;x(e,n),i.nextTick(t,n)}function R(e,t,n,r){var a;return null===n?a=new _:"string"===typeof n||t.objectMode||(a=new v("chunk",["string","Buffer"],n)),!a||(x(e,a),i.nextTick(r,a),!1)}function O(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=l.from(t,n)),t}function I(e,t,n,r,i,a){if(!n){var o=O(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else L(e,t,!1,s,r,i,a);return l}function L(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new E("write")):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function D(e,t,n,r,a){--t.pendingcb,n?(i.nextTick(a,r),i.nextTick(K,e,t),e._writableState.errorEmitted=!0,x(e,r)):(a(r),e._writableState.errorEmitted=!0,x(e,r),K(e,t))}function P(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function M(e,t){var n=e._writableState,r=n.sync,a=n.writecb;if("function"!==typeof a)throw new y;if(P(n),t)D(e,n,r,t,a);else{var o=U(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||$(e,n),r?i.nextTick(B,e,n,o,a):B(e,n,o,a)}}function B(e,t,n,r){n||F(e,t),t.pendingcb--,r(),K(e,t)}function F(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function $(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;var s=0,l=!0;while(n)i[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;i.allBuffers=l,L(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{while(n){var c=n.chunk,u=n.encoding,d=n.callback,h=t.objectMode?1:c.length;if(L(e,t,!1,h,c,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function U(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function j(e,t){e._final((function(n){t.pendingcb--,n&&x(e,n),t.prefinished=!0,e.emit("prefinish"),K(e,t)}))}function V(e,t){t.prefinished||t.finalCalled||("function"!==typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(j,e,t)))}function K(e,t){var n=U(t);if(n&&(V(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}function H(e,t,n){t.ending=!0,K(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}function G(e,t,n){var r=e.entry;e.entry=null;while(r){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}n(35615)(C,s),N.prototype.getBuffer=function(){var e=this.bufferedRequest,t=[];while(e)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(N.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(C,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===C&&(e&&e._writableState instanceof N)}})):h=function(e){return e instanceof this},C.prototype.pipe=function(){x(this,new w)},C.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&d(e);return a&&!l.isBuffer(e)&&(e=u(e)),"function"===typeof t&&(n=t,t=null),a?t="buffer":t||(t=r.defaultEncoding),"function"!==typeof n&&(n=A),r.ending?T(this,n):(a||R(this,r,e,n))&&(r.pendingcb++,i=I(this,r,a,e,t,n)),i},C.prototype.cork=function(){this._writableState.corked++},C.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||$(this,e))},C.prototype.setDefaultEncoding=function(e){if("string"===typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new k(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(C.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),C.prototype._write=function(e,t,n){n(new b("_write()"))},C.prototype._writev=null,C.prototype.end=function(e,t,n){var r=this._writableState;return"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||H(this,r,n),this},Object.defineProperty(C.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),C.prototype.destroy=p.destroy,C.prototype._undestroy=p.undestroy,C.prototype._destroy=function(e,t){t(e)}},60534:function(e,t,n){"use strict";var r,i=n(39907);function a(e,t,n){return t=o(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=s(e,"string");return"symbol"===typeof t?t:String(t)}function s(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var l=n(94869),c=Symbol("lastResolve"),u=Symbol("lastReject"),d=Symbol("error"),h=Symbol("ended"),p=Symbol("lastPromise"),f=Symbol("handlePromise"),m=Symbol("stream");function g(e,t){return{value:e,done:t}}function v(e){var t=e[c];if(null!==t){var n=e[m].read();null!==n&&(e[p]=null,e[c]=null,e[u]=null,t(g(n,!1)))}}function b(e){i.nextTick(v,e)}function y(e,t){return function(n,r){e.then((function(){t[h]?n(g(void 0,!0)):t[f](n,r)}),r)}}var w=Object.getPrototypeOf((function(){})),E=Object.setPrototypeOf((r={get stream(){return this[m]},next:function(){var e=this,t=this[d];if(null!==t)return Promise.reject(t);if(this[h])return Promise.resolve(g(void 0,!0));if(this[m].destroyed)return new Promise((function(t,n){i.nextTick((function(){e[d]?n(e[d]):t(g(void 0,!0))}))}));var n,r=this[p];if(r)n=new Promise(y(r,this));else{var a=this[m].read();if(null!==a)return Promise.resolve(g(a,!1));n=new Promise(this[f])}return this[p]=n,n}},a(r,Symbol.asyncIterator,(function(){return this})),a(r,"return",(function(){var e=this;return new Promise((function(t,n){e[m].destroy(null,(function(e){e?n(e):t(g(void 0,!0))}))}))})),r),w),_=function(e){var t,n=Object.create(E,(t={},a(t,m,{value:e,writable:!0}),a(t,c,{value:null,writable:!0}),a(t,u,{value:null,writable:!0}),a(t,d,{value:null,writable:!0}),a(t,h,{value:e._readableState.endEmitted,writable:!0}),a(t,f,{value:function(e,t){var r=n[m].read();r?(n[p]=null,n[c]=null,n[u]=null,e(g(r,!1))):(n[c]=e,n[u]=t)},writable:!0}),t));return n[p]=null,l(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[u];return null!==t&&(n[p]=null,n[c]=null,n[u]=null,t(e)),void(n[d]=e)}var r=n[c];null!==r&&(n[p]=null,n[c]=null,n[u]=null,r(g(void 0,!0))),n[h]=!0})),e.on("readable",b.bind(null,n)),n};e.exports=_},82:function(e,t,n){"use strict";function r(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t=c(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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,c(r.key),r)}}function l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=u(e,"string");return"symbol"===typeof t?t:String(t)}function u(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var d=n(1048),h=d.Buffer,p=n(63011),f=p.inspect,m=f&&f.custom||"inspect";function g(e,t,n){h.prototype.copy.call(e,t,n)}e.exports=function(){function e(){o(this,e),this.head=null,this.tail=null,this.length=0}return l(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";var t=this.head,n=""+t.data;while(t=t.next)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return h.alloc(0);var t=h.allocUnsafe(e>>>0),n=this.head,r=0;while(n)g(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;e-=r.length;while(t=t.next){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),e-=a,0===e){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=h.allocUnsafe(e),n=this.head,r=1;n.data.copy(t),e-=n.data.length;while(n=n.next){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),e-=a,0===e){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:m,value:function(e,t){return f(this,i(i({},t),{},{depth:0,customInspect:!1}))}}]),e}()},16527:function(e,t,n){"use strict";var r=n(39907);function i(e,t){var n=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(l,this,e)):r.nextTick(l,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted?r.nextTick(o,n):(n._writableState.errorEmitted=!0,r.nextTick(a,n,e)):r.nextTick(a,n,e):t?(r.nextTick(o,n),t(e)):r.nextTick(o,n)})),this)}function a(e,t){l(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function s(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function l(e,t){e.emit("error",t)}function c(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:i,undestroy:s,errorOrDestroy:c}},94869:function(e,t,n){"use strict";var r=n(85699).F.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}function a(){}function o(e){return e.setHeader&&"function"===typeof e.abort}function s(e,t,n){if("function"===typeof t)return s(e,null,t);t||(t={}),n=i(n||a);var l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,u=function(){e.writable||h()},d=e._writableState&&e._writableState.finished,h=function(){c=!1,d=!0,l||n.call(e)},p=e._readableState&&e._readableState.endEmitted,f=function(){l=!1,p=!0,c||n.call(e)},m=function(t){n.call(e,t)},g=function(){var t;return l&&!p?(e._readableState&&e._readableState.ended||(t=new r),n.call(e,t)):c&&!d?(e._writableState&&e._writableState.ended||(t=new r),n.call(e,t)):void 0},v=function(){e.req.on("finish",h)};return o(e)?(e.on("complete",h),e.on("abort",g),e.req?v():e.on("request",v)):c&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",f),e.on("finish",h),!1!==t.error&&e.on("error",m),e.on("close",g),function(){e.removeListener("complete",h),e.removeListener("abort",g),e.removeListener("request",v),e.req&&e.req.removeListener("finish",h),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",h),e.removeListener("end",f),e.removeListener("error",m),e.removeListener("close",g)}}e.exports=s},71260:function(e){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},16815:function(e,t,n){"use strict";var r;function i(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var a=n(85699).F,o=a.ERR_MISSING_ARGS,s=a.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function c(e){return e.setHeader&&"function"===typeof e.abort}function u(e,t,a,o){o=i(o);var l=!1;e.on("close",(function(){l=!0})),void 0===r&&(r=n(94869)),r(e,{readable:t,writable:a},(function(e){if(e)return o(e);l=!0,o()}));var u=!1;return function(t){if(!l&&!u)return u=!0,c(e)?e.abort():"function"===typeof e.destroy?e.destroy():void o(t||new s("pipe"))}}function d(e){e()}function h(e,t){return e.pipe(t)}function p(e){return e.length?"function"!==typeof e[e.length-1]?l:e.pop():l}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=p(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var a=t.map((function(e,n){var o=n<t.length-1,s=n>0;return u(e,o,s,(function(e){r||(r=e),e&&a.forEach(d),o||(a.forEach(d),i(r))}))}));return t.reduce(h)}e.exports=f},89952:function(e,t,n){"use strict";var r=n(85699).F.ERR_INVALID_OPT_VALUE;function i(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}function a(e,t,n,a){var o=i(t,a,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0){var s=a?n:"highWaterMark";throw new r(s,o)}return Math.floor(o)}return e.objectMode?16:16384}e.exports={getHighWaterMark:a}},64856:function(e,t,n){e.exports=n(50046).EventEmitter},34156:function(e,t,n){t=e.exports=n(28199),t.Stream=t,t.Readable=t,t.Writable=n(5291),t.Duplex=n(11265),t.Transform=n(99415),t.PassThrough=n(94421),t.finished=n(94869),t.pipeline=n(16815)},33062:function(e){"use strict";e.exports=function(e,t){if(t=t.split(":")[0],e=+e,!e)return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},25636:function(e,t,n){
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var r=n(1048),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},46132:function(e,t,n){"use strict";var r=n(14607),i=n(52672),a=r("RegExp.prototype.exec"),o=n(3468);e.exports=function(e){if(!i(e))throw new o("`regex` must be a RegExp");return function(t){return null!==a(e,t)}}},51565:function(e,t,n){"use strict";const r=Symbol("SemVer ANY");class i{static get ANY(){return r}constructor(e,t){if(t=a(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?o[s.COMPARATORLOOSE]:o[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"===typeof e)try{e=new u(e,this.options)}catch(t){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):(t=a(t),(!t.includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))))))))}}e.exports=i;const a=n(13990),{safeRe:o,t:s}=n(72841),l=n(54004),c=n(41361),u=n(24517),d=n(37476)},37476:function(e,t,n){"use strict";const r=/\s+/g;class i{constructor(e,t){if(t=s(t),e instanceof i)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new i(e.raw,t);if(e instanceof l)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(r," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!b(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&y(t[0])){this.set=[t];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&g)|(this.options.loose&&v),n=t+":"+e,r=o.get(n);if(r)return r;const i=this.options.loose,a=i?d[h.HYPHENRANGELOOSE]:d[h.HYPHENRANGE];e=e.replace(a,O(this.options.includePrerelease)),c("hyphen replace",e),e=e.replace(d[h.COMPARATORTRIM],p),c("comparator trim",e),e=e.replace(d[h.TILDETRIM],f),c("tilde trim",e),e=e.replace(d[h.CARETTRIM],m),c("caret trim",e);let s=e.split(" ").map((e=>E(e,this.options))).join(" ").split(/\s+/).map((e=>R(e,this.options)));i&&(s=s.filter((e=>(c("loose invalid filter",e,this.options),!!e.match(d[h.COMPARATORLOOSE]))))),c("range list",s);const u=new Map,y=s.map((e=>new l(e,this.options)));for(const o of y){if(b(o))return[o];u.set(o.value,o)}u.size>1&&u.has("")&&u.delete("");const w=[...u.values()];return o.set(n,w),w}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Range is required");return this.set.some((n=>w(n,t)&&e.set.some((e=>w(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"===typeof e)try{e=new u(e,this.options)}catch(t){return!1}for(let n=0;n<this.set.length;n++)if(I(this.set[n],e,this.options))return!0;return!1}}e.exports=i;const a=n(58953),o=new a,s=n(13990),l=n(51565),c=n(41361),u=n(24517),{safeRe:d,t:h,comparatorTrimReplace:p,tildeTrimReplace:f,caretTrimReplace:m}=n(72841),{FLAG_INCLUDE_PRERELEASE:g,FLAG_LOOSE:v}=n(79543),b=e=>"<0.0.0-0"===e.value,y=e=>""===e.value,w=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();while(n&&r.length)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},E=(e,t)=>(c("comp",e,t),e=x(e,t),c("caret",e),e=S(e,t),c("tildes",e),e=N(e,t),c("xrange",e),e=T(e,t),c("stars",e),e),_=e=>!e||"x"===e.toLowerCase()||"*"===e,S=(e,t)=>e.trim().split(/\s+/).map((e=>k(e,t))).join(" "),k=(e,t)=>{const n=t.loose?d[h.TILDELOOSE]:d[h.TILDE];return e.replace(n,((t,n,r,i,a)=>{let o;return c("tilde",e,t,n,r,i,a),_(n)?o="":_(r)?o=`>=${n}.0.0 <${+n+1}.0.0-0`:_(i)?o=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(c("replaceTilde pr",a),o=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):o=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,c("tilde return",o),o}))},x=(e,t)=>e.trim().split(/\s+/).map((e=>A(e,t))).join(" "),A=(e,t)=>{c("caret",e,t);const n=t.loose?d[h.CARETLOOSE]:d[h.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,a,o)=>{let s;return c("caret",e,t,n,i,a,o),_(n)?s="":_(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:_(a)?s="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:o?(c("replaceCaret pr",o),s="0"===n?"0"===i?`>=${n}.${i}.${a}-${o} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${o} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${o} <${+n+1}.0.0-0`):(c("no pr"),s="0"===n?"0"===i?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),c("caret return",s),s}))},N=(e,t)=>(c("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>{e=e.trim();const n=t.loose?d[h.XRANGELOOSE]:d[h.XRANGE];return e.replace(n,((n,r,i,a,o,s)=>{c("xRange",e,n,r,i,a,o,s);const l=_(i),u=l||_(a),d=u||_(o),h=d;return"="===r&&h&&(r=""),s=t.includePrerelease?"-0":"",l?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&h?(u&&(a=0),o=0,">"===r?(r=">=",u?(i=+i+1,a=0,o=0):(a=+a+1,o=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(s="-0"),n=`${r+i}.${a}.${o}${s}`):u?n=`>=${i}.0.0${s} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${s} <${i}.${+a+1}.0-0`),c("xRange return",n),n}))},T=(e,t)=>(c("replaceStars",e,t),e.trim().replace(d[h.STAR],"")),R=(e,t)=>(c("replaceGTE0",e,t),e.trim().replace(d[t.includePrerelease?h.GTE0PRE:h.GTE0],"")),O=e=>(t,n,r,i,a,o,s,l,c,u,d,h)=>(n=_(r)?"":_(i)?`>=${r}.0.0${e?"-0":""}`:_(a)?`>=${r}.${i}.0${e?"-0":""}`:o?`>=${n}`:`>=${n}${e?"-0":""}`,l=_(c)?"":_(u)?`<${+c+1}.0.0-0`:_(d)?`<${c}.${+u+1}.0-0`:h?`<=${c}.${u}.${d}-${h}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`,`${n} ${l}`.trim()),I=(e,t,n)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(c(e[n].semver),e[n].semver!==l.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},24517:function(e,t,n){"use strict";const r=n(41361),{MAX_LENGTH:i,MAX_SAFE_INTEGER:a}=n(79543),{safeRe:o,t:s}=n(72841),l=n(13990),{compareIdentifiers:c}=n(93806);class u{constructor(e,t){if(t=l(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!==typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?o[s.LOOSE]:o[s.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>a||this.major<0)throw new TypeError("Invalid major version");if(this.minor>a||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>a||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<a)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"===typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return c(n,i)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const n=this.build[t],i=e.build[t];if(r("build compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return c(n,i)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?o[s.PRERELEASELOOSE]:o[s.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;while(--r>=0)"number"===typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=u},92281:function(e,t,n){"use strict";const r=n(93955),i=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};e.exports=i},54004:function(e,t,n){"use strict";const r=n(28848),i=n(28220),a=n(89761),o=n(72386),s=n(51262),l=n(89639),c=(e,t,n,c)=>{switch(t){case"===":return"object"===typeof e&&(e=e.version),"object"===typeof n&&(n=n.version),e===n;case"!==":return"object"===typeof e&&(e=e.version),"object"===typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,c);case"!=":return i(e,n,c);case">":return a(e,n,c);case">=":return o(e,n,c);case"<":return s(e,n,c);case"<=":return l(e,n,c);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=c},56783:function(e,t,n){"use strict";const r=n(24517),i=n(93955),{safeRe:a,t:o}=n(72841),s=(e,t)=>{if(e instanceof r)return e;if("number"===typeof e&&(e=String(e)),"string"!==typeof e)return null;t=t||{};let n=null;if(t.rtl){const r=t.includePrerelease?a[o.COERCERTLFULL]:a[o.COERCERTL];let i;while((i=r.exec(e))&&(!n||n.index+n[0].length!==e.length))n&&i.index+i[0].length===n.index+n[0].length||(n=i),r.lastIndex=i.index+i[1].length+i[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?a[o.COERCEFULL]:a[o.COERCE]);if(null===n)return null;const s=n[2],l=n[3]||"0",c=n[4]||"0",u=t.includePrerelease&&n[5]?`-${n[5]}`:"",d=t.includePrerelease&&n[6]?`+${n[6]}`:"";return i(`${s}.${l}.${c}${u}${d}`,t)};e.exports=s},6106:function(e,t,n){"use strict";const r=n(24517),i=(e,t,n)=>{const i=new r(e,n),a=new r(t,n);return i.compare(a)||i.compareBuild(a)};e.exports=i},52132:function(e,t,n){"use strict";const r=n(87851),i=(e,t)=>r(e,t,!0);e.exports=i},87851:function(e,t,n){"use strict";const r=n(24517),i=(e,t,n)=>new r(e,n).compare(new r(t,n));e.exports=i},73269:function(e,t,n){"use strict";const r=n(93955),i=(e,t)=>{const n=r(e,null,!0),i=r(t,null,!0),a=n.compare(i);if(0===a)return null;const o=a>0,s=o?n:i,l=o?i:n,c=!!s.prerelease.length,u=!!l.prerelease.length;if(u&&!c){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(s))return l.minor&&!l.patch?"minor":"patch"}const d=c?"pre":"";return n.major!==i.major?d+"major":n.minor!==i.minor?d+"minor":n.patch!==i.patch?d+"patch":"prerelease"};e.exports=i},28848:function(e,t,n){"use strict";const r=n(87851),i=(e,t,n)=>0===r(e,t,n);e.exports=i},89761:function(e,t,n){"use strict";const r=n(87851),i=(e,t,n)=>r(e,t,n)>0;e.exports=i},72386:function(e,t,n){"use strict";const r=n(87851),i=(e,t,n)=>r(e,t,n)>=0;e.exports=i},38868:function(e,t,n){"use strict";const r=n(24517),i=(e,t,n,i,a)=>{"string"===typeof n&&(a=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,a).version}catch(o){return null}};e.exports=i},51262:function(e,t,n){"use strict";const r=n(87851),i=(e,t,n)=>r(e,t,n)<0;e.exports=i},89639:function(e,t,n){"use strict";const r=n(87851),i=(e,t,n)=>r(e,t,n)<=0;e.exports=i},26381:function(e,t,n){"use strict";const r=n(24517),i=(e,t)=>new r(e,t).major;e.exports=i},31353:function(e,t,n){"use strict";const r=n(24517),i=(e,t)=>new r(e,t).minor;e.exports=i},28220:function(e,t,n){"use strict";const r=n(87851),i=(e,t,n)=>0!==r(e,t,n);e.exports=i},93955:function(e,t,n){"use strict";const r=n(24517),i=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t)}catch(i){if(!n)return null;throw i}};e.exports=i},96082:function(e,t,n){"use strict";const r=n(24517),i=(e,t)=>new r(e,t).patch;e.exports=i},69428:function(e,t,n){"use strict";const r=n(93955),i=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null};e.exports=i},87555:function(e,t,n){"use strict";const r=n(87851),i=(e,t,n)=>r(t,e,n);e.exports=i},93810:function(e,t,n){"use strict";const r=n(6106),i=(e,t)=>e.sort(((e,n)=>r(n,e,t)));e.exports=i},27229:function(e,t,n){"use strict";const r=n(37476),i=(e,t,n)=>{try{t=new r(t,n)}catch(i){return!1}return t.test(e)};e.exports=i},34042:function(e,t,n){"use strict";const r=n(6106),i=(e,t)=>e.sort(((e,n)=>r(e,n,t)));e.exports=i},28474:function(e,t,n){"use strict";const r=n(93955),i=(e,t)=>{const n=r(e,t);return n?n.version:null};e.exports=i},2722:function(e,t,n){"use strict";const r=n(72841),i=n(79543),a=n(24517),o=n(93806),s=n(93955),l=n(28474),c=n(92281),u=n(38868),d=n(73269),h=n(26381),p=n(31353),f=n(96082),m=n(69428),g=n(87851),v=n(87555),b=n(52132),y=n(6106),w=n(34042),E=n(93810),_=n(89761),S=n(51262),k=n(28848),x=n(28220),A=n(72386),N=n(89639),C=n(54004),T=n(56783),R=n(51565),O=n(37476),I=n(27229),L=n(26364),D=n(55039),P=n(55357),M=n(71280),B=n(37403),F=n(58854),$=n(27226),U=n(37183),j=n(18623),V=n(76486),K=n(40583);e.exports={parse:s,valid:l,clean:c,inc:u,diff:d,major:h,minor:p,patch:f,prerelease:m,compare:g,rcompare:v,compareLoose:b,compareBuild:y,sort:w,rsort:E,gt:_,lt:S,eq:k,neq:x,gte:A,lte:N,cmp:C,coerce:T,Comparator:R,Range:O,satisfies:I,toComparators:L,maxSatisfying:D,minSatisfying:P,minVersion:M,validRange:B,outside:F,gtr:$,ltr:U,intersects:j,simplifyRange:V,subset:K,SemVer:a,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},79543:function(e){"use strict";const t="2.0.0",n=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,i=16,a=n-6,o=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:a,MAX_SAFE_INTEGER:r,RELEASE_TYPES:o,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},41361:function(e,t,n){"use strict";var r=n(39907),i=n(4364);const a="object"===typeof r&&{NODE_ENV:"production",BASE_URL:"/"}.NODE_DEBUG&&/\bsemver\b/i.test({NODE_ENV:"production",BASE_URL:"/"}.NODE_DEBUG)?(...e)=>i.error("SEMVER",...e):()=>{};e.exports=a},93806:function(e){"use strict";const t=/^[0-9]+$/,n=(e,n)=>{const r=t.test(e),i=t.test(n);return r&&i&&(e=+e,n=+n),e===n?0:r&&!i?-1:i&&!r?1:e<n?-1:1},r=(e,t)=>n(t,e);e.exports={compareIdentifiers:n,rcompareIdentifiers:r}},58953:function(e){"use strict";class t{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){const n=this.delete(e);if(!n&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=t},13990:function(e){"use strict";const t=Object.freeze({loose:!0}),n=Object.freeze({}),r=e=>e?"object"!==typeof e?t:e:n;e.exports=r},72841:function(e,t,n){"use strict";const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:a}=n(79543),o=n(41361);t=e.exports={};const s=t.re=[],l=t.safeRe=[],c=t.src=[],u=t.safeSrc=[],d=t.t={};let h=0;const p="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",a],[p,i]],m=e=>{for(const[t,n]of f)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},g=(e,t,n)=>{const r=m(t),i=h++;o(e,i,t),d[e]=i,c[i]=t,u[i]=r,s[i]=new RegExp(t,n?"g":void 0),l[i]=new RegExp(r,n?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),g("MAINVERSION",`(${c[d.NUMERICIDENTIFIER]})\\.(${c[d.NUMERICIDENTIFIER]})\\.(${c[d.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${c[d.NUMERICIDENTIFIERLOOSE]})\\.(${c[d.NUMERICIDENTIFIERLOOSE]})\\.(${c[d.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${c[d.NONNUMERICIDENTIFIER]}|${c[d.NUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${c[d.NONNUMERICIDENTIFIER]}|${c[d.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASE",`(?:-(${c[d.PRERELEASEIDENTIFIER]}(?:\\.${c[d.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${c[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[d.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${p}+`),g("BUILD",`(?:\\+(${c[d.BUILDIDENTIFIER]}(?:\\.${c[d.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${c[d.MAINVERSION]}${c[d.PRERELEASE]}?${c[d.BUILD]}?`),g("FULL",`^${c[d.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${c[d.MAINVERSIONLOOSE]}${c[d.PRERELEASELOOSE]}?${c[d.BUILD]}?`),g("LOOSE",`^${c[d.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${c[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${c[d.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${c[d.XRANGEIDENTIFIER]})(?:\\.(${c[d.XRANGEIDENTIFIER]})(?:\\.(${c[d.XRANGEIDENTIFIER]})(?:${c[d.PRERELEASE]})?${c[d.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${c[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[d.XRANGEIDENTIFIERLOOSE]})(?:${c[d.PRERELEASELOOSE]})?${c[d.BUILD]}?)?)?`),g("XRANGE",`^${c[d.GTLT]}\\s*${c[d.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${c[d.GTLT]}\\s*${c[d.XRANGEPLAINLOOSE]}$`),g("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),g("COERCE",`${c[d.COERCEPLAIN]}(?:$|[^\\d])`),g("COERCEFULL",c[d.COERCEPLAIN]+`(?:${c[d.PRERELEASE]})?`+`(?:${c[d.BUILD]})?(?:$|[^\\d])`),g("COERCERTL",c[d.COERCE],!0),g("COERCERTLFULL",c[d.COERCEFULL],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${c[d.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",g("TILDE",`^${c[d.LONETILDE]}${c[d.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${c[d.LONETILDE]}${c[d.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${c[d.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",g("CARET",`^${c[d.LONECARET]}${c[d.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${c[d.LONECARET]}${c[d.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${c[d.GTLT]}\\s*(${c[d.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${c[d.GTLT]}\\s*(${c[d.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${c[d.GTLT]}\\s*(${c[d.LOOSEPLAIN]}|${c[d.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${c[d.XRANGEPLAIN]})\\s+-\\s+(${c[d.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${c[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[d.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},27226:function(e,t,n){"use strict";const r=n(58854),i=(e,t,n)=>r(e,t,">",n);e.exports=i},18623:function(e,t,n){"use strict";const r=n(37476),i=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n));e.exports=i},37183:function(e,t,n){"use strict";const r=n(58854),i=(e,t,n)=>r(e,t,"<",n);e.exports=i},55039:function(e,t,n){"use strict";const r=n(24517),i=n(37476),a=(e,t,n)=>{let a=null,o=null,s=null;try{s=new i(t,n)}catch(l){return null}return e.forEach((e=>{s.test(e)&&(a&&-1!==o.compare(e)||(a=e,o=new r(a,n)))})),a};e.exports=a},55357:function(e,t,n){"use strict";const r=n(24517),i=n(37476),a=(e,t,n)=>{let a=null,o=null,s=null;try{s=new i(t,n)}catch(l){return null}return e.forEach((e=>{s.test(e)&&(a&&1!==o.compare(e)||(a=e,o=new r(a,n)))})),a};e.exports=a},71280:function(e,t,n){"use strict";const r=n(24517),i=n(37476),a=n(89761),o=(e,t)=>{e=new i(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let i=0;i<e.set.length;++i){const t=e.set[i];let o=null;t.forEach((e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!a(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!o||n&&!a(n,o)||(n=o)}return n&&e.test(n)?n:null};e.exports=o},58854:function(e,t,n){"use strict";const r=n(24517),i=n(51565),{ANY:a}=i,o=n(37476),s=n(27229),l=n(89761),c=n(51262),u=n(89639),d=n(72386),h=(e,t,n,h)=>{let p,f,m,g,v;switch(e=new r(e,h),t=new o(t,h),n){case">":p=l,f=u,m=c,g=">",v=">=";break;case"<":p=c,f=d,m=l,g="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,h))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let o=null,s=null;if(n.forEach((e=>{e.semver===a&&(e=new i(">=0.0.0")),o=o||e,s=s||e,p(e.semver,o.semver,h)?o=e:m(e.semver,s.semver,h)&&(s=e)})),o.operator===g||o.operator===v)return!1;if((!s.operator||s.operator===g)&&f(e,s.semver))return!1;if(s.operator===v&&m(e,s.semver))return!1}return!0};e.exports=h},76486:function(e,t,n){"use strict";const r=n(27229),i=n(87851);e.exports=(e,t,n)=>{const a=[];let o=null,s=null;const l=e.sort(((e,t)=>i(e,t,n)));for(const i of l){const e=r(i,t,n);e?(s=i,o||(o=i)):(s&&a.push([o,s]),s=null,o=null)}o&&a.push([o,null]);const c=[];for(const[r,i]of a)r===i?c.push(r):i||r!==l[0]?i?r===l[0]?c.push(`<=${i}`):c.push(`${r} - ${i}`):c.push(`>=${r}`):c.push("*");const u=c.join(" || "),d="string"===typeof t.raw?t.raw:String(t);return u.length<d.length?u:t}},40583:function(e,t,n){"use strict";const r=n(37476),i=n(51565),{ANY:a}=i,o=n(27229),s=n(87851),l=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(const r of e.set){for(const e of t.set){const t=d(r,e,n);if(i=i||null!==t,t)continue e}if(i)return!1}return!0},c=[new i(">=0.0.0-0")],u=[new i(">=0.0.0")],d=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===a){if(1===t.length&&t[0].semver===a)return!0;e=n.includePrerelease?c:u}if(1===t.length&&t[0].semver===a){if(n.includePrerelease)return!0;t=u}const r=new Set;let i,l,d,f,m,g,v;for(const a of e)">"===a.operator||">="===a.operator?i=h(i,a,n):"<"===a.operator||"<="===a.operator?l=p(l,a,n):r.add(a.semver);if(r.size>1)return null;if(i&&l){if(d=s(i.semver,l.semver,n),d>0)return null;if(0===d&&(">="!==i.operator||"<="!==l.operator))return null}for(const a of r){if(i&&!o(a,String(i),n))return null;if(l&&!o(a,String(l),n))return null;for(const e of t)if(!o(a,String(e),n))return!1;return!0}let b=!(!l||n.includePrerelease||!l.semver.prerelease.length)&&l.semver,y=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver;b&&1===b.prerelease.length&&"<"===l.operator&&0===b.prerelease[0]&&(b=!1);for(const a of t){if(v=v||">"===a.operator||">="===a.operator,g=g||"<"===a.operator||"<="===a.operator,i)if(y&&a.semver.prerelease&&a.semver.prerelease.length&&a.semver.major===y.major&&a.semver.minor===y.minor&&a.semver.patch===y.patch&&(y=!1),">"===a.operator||">="===a.operator){if(f=h(i,a,n),f===a&&f!==i)return!1}else if(">="===i.operator&&!o(i.semver,String(a),n))return!1;if(l)if(b&&a.semver.prerelease&&a.semver.prerelease.length&&a.semver.major===b.major&&a.semver.minor===b.minor&&a.semver.patch===b.patch&&(b=!1),"<"===a.operator||"<="===a.operator){if(m=p(l,a,n),m===a&&m!==l)return!1}else if("<="===l.operator&&!o(l.semver,String(a),n))return!1;if(!a.operator&&(l||i)&&0!==d)return!1}return!(i&&g&&!l&&0!==d)&&(!(l&&v&&!i&&0!==d)&&(!y&&!b))},h=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},p=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=l},26364:function(e,t,n){"use strict";const r=n(37476),i=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=i},37403:function(e,t,n){"use strict";const r=n(37476),i=(e,t)=>{try{return new r(e,t).range||"*"}catch(n){return null}};e.exports=i},26108:function(e,t,n){"use strict";var r=n(528),i=n(70686),a=n(17239)(),o=n(69336),s=n(3468),l=r("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&o){var u=o(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!n)&&(a?i(e,"length",t,!0,!0):i(e,"length",t)),e}},83346:function(e,t,n){"use strict";var r=n(48660),i=n(3468),a=function(e,t,n){for(var r,i=e;null!=(r=i.next);i=r)if(r.key===t)return i.next=r.next,n||(r.next=e.next,e.next=r),r},o=function(e,t){if(e){var n=a(e,t);return n&&n.value}},s=function(e,t,n){var r=a(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},l=function(e,t){return!!e&&!!a(e,t)},c=function(e,t){if(e)return a(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+r(e))},delete:function(t){var n=e&&e.next,r=c(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return o(e,t)},has:function(t){return l(e,t)},set:function(t,n){e||(e={next:void 0}),s(e,t,n)}};return t}},27004:function(e,t,n){"use strict";var r=n(528),i=n(14607),a=n(48660),o=n(3468),s=r("%Map%",!0),l=i("Map.prototype.get",!0),c=i("Map.prototype.set",!0),u=i("Map.prototype.has",!0),d=i("Map.prototype.delete",!0),h=i("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+a(e))},delete:function(t){if(e){var n=d(e,t);return 0===h(e)&&(e=void 0),n}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,n){e||(e=new s),c(e,t,n)}};return t}},66348:function(e,t,n){"use strict";var r=n(528),i=n(14607),a=n(48660),o=n(27004),s=n(3468),l=r("%WeakMap%",!0),c=i("WeakMap.prototype.get",!0),u=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),h=i("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+a(e))},delete:function(n){if(l&&n&&("object"===typeof n||"function"===typeof n)){if(e)return h(e,n)}else if(o&&t)return t["delete"](n);return!1},get:function(n){return l&&n&&("object"===typeof n||"function"===typeof n)&&e?c(e,n):t&&t.get(n)},has:function(n){return l&&n&&("object"===typeof n||"function"===typeof n)&&e?d(e,n):!!t&&t.has(n)},set:function(n,r){l&&n&&("object"===typeof n||"function"===typeof n)?(e||(e=new l),u(e,n,r)):o&&(t||(t=o()),t.set(n,r))}};return n}:o},77575:function(e,t,n){"use strict";var r=n(3468),i=n(48660),a=n(83346),o=n(27004),s=n(66348),l=s||o||a;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e["delete"](t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=l()),e.set(t,n)}};return t}},59975:function(e,t,n){"use strict";var r=n(37114),i=Array.prototype.concat,a=Array.prototype.slice,o=e.exports=function(e){for(var t=[],n=0,o=e.length;n<o;n++){var s=e[n];r(s)?t=i.call(t,a.call(s)):t.push(s)}return t};o.wrap=function(e){return function(){return e(o(arguments))}}},4865:function(e,t,n){var r=n(98636),i=n(36846),a=n(93227),o=n(30049),s=n(75442),l=t;l.request=function(e,t){e="string"===typeof e?s.parse(e):a(e);var i=-1===n.g.location.protocol.search(/^https?:$/)?"http:":"",o=e.protocol||i,l=e.hostname||e.host,c=e.port,u=e.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),e.url=(l?o+"//"+l:"")+(c?":"+c:"")+u,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var d=new r(e);return t&&d.on("response",t),d},l.get=function(e,t){var n=l.request(e,t);return n.end(),n},l.ClientRequest=r,l.IncomingMessage=i.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=o,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},42271:function(e,t,n){var r;function i(){if(void 0!==r)return r;if(n.g.XMLHttpRequest){r=new n.g.XMLHttpRequest;try{r.open("GET",n.g.XDomainRequest?"/":"https://example.com")}catch(e){r=null}}else r=null;return r}function a(e){var t=i();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(n){}return!1}function o(e){return"function"===typeof e}t.fetch=o(n.g.fetch)&&o(n.g.ReadableStream),t.writableStream=o(n.g.WritableStream),t.abortController=o(n.g.AbortController),t.arraybuffer=t.fetch||a("arraybuffer"),t.msstream=!t.fetch&&a("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&a("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!i()&&o(i().overrideMimeType),r=null},98636:function(e,t,n){var r=n(33486)["hp"],i=n(39907),a=n(42271),o=n(35615),s=n(36846),l=n(34156),c=s.IncomingMessage,u=s.readyStates;function d(e,t){return a.fetch&&t?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&e?"arraybuffer":"text"}var h=e.exports=function(e){var t,n=this;l.Writable.call(n),n._opts=e,n._body=[],n._headers={},e.auth&&n.setHeader("Authorization","Basic "+r.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){n.setHeader(t,e.headers[t])}));var i=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!a.abortController)i=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!a.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}n._mode=d(t,i),n._fetchTimer=null,n._socketTimeout=null,n._socketTimer=null,n.on("finish",(function(){n._onFinish()}))};function p(e){try{var t=e.status;return null!==t&&0!==t}catch(n){return!1}}o(h,l.Writable),h.prototype.setHeader=function(e,t){var n=this,r=e.toLowerCase();-1===f.indexOf(r)&&(n._headers[r]={name:e,value:t})},h.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},h.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},h.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&0!==t.timeout&&e.setTimeout(t.timeout);var r=e._headers,o=null;"GET"!==t.method&&"HEAD"!==t.method&&(o=new Blob(e._body,{type:(r["content-type"]||{}).value||""}));var s=[];if(Object.keys(r).forEach((function(e){var t=r[e].name,n=r[e].value;Array.isArray(n)?n.forEach((function(e){s.push([t,e])})):s.push([t,n])})),"fetch"===e._mode){var l=null;if(a.abortController){var c=new AbortController;l=c.signal,e._fetchAbortController=c,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=n.g.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}n.g.fetch(e._opts.url,{method:e._opts.method,headers:s,body:o||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:l}).then((function(t){e._fetchResponse=t,e._resetTimers(!1),e._connect()}),(function(t){e._resetTimers(!0),e._destroyed||e.emit("error",t)}))}else{var d=e._xhr=new n.g.XMLHttpRequest;try{d.open(e._opts.method,e._opts.url,!0)}catch(h){return void i.nextTick((function(){e.emit("error",h)}))}"responseType"in d&&(d.responseType=e._mode),"withCredentials"in d&&(d.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in d&&d.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(d.timeout=t.requestTimeout,d.ontimeout=function(){e.emit("requestTimeout")}),s.forEach((function(e){d.setRequestHeader(e[0],e[1])})),e._response=null,d.onreadystatechange=function(){switch(d.readyState){case u.LOADING:case u.DONE:e._onXHRProgress();break}},"moz-chunked-arraybuffer"===e._mode&&(d.onprogress=function(){e._onXHRProgress()}),d.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{d.send(o)}catch(h){return void i.nextTick((function(){e.emit("error",h)}))}}}},h.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),p(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},h.prototype._connect=function(){var e=this;e._destroyed||(e._response=new c(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},h.prototype._write=function(e,t,n){var r=this;r._body.push(e),n()},h.prototype._resetTimers=function(e){var t=this;n.g.clearTimeout(t._socketTimer),t._socketTimer=null,e?(n.g.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=n.g.setTimeout((function(){t.emit("timeout")}),t._socketTimeout))},h.prototype.abort=h.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},h.prototype.end=function(e,t,n){var r=this;"function"===typeof e&&(n=e,e=void 0),l.Writable.prototype.end.call(r,e,t,n)},h.prototype.setTimeout=function(e,t){var n=this;t&&n.once("timeout",t),n._socketTimeout=e,n._resetTimers(!1)},h.prototype.flushHeaders=function(){},h.prototype.setNoDelay=function(){},h.prototype.setSocketKeepAlive=function(){};var f=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},36846:function(e,t,n){var r=n(39907),i=n(33486)["hp"],a=n(42271),o=n(35615),s=n(34156),l=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=t.IncomingMessage=function(e,t,n,o){var l=this;if(s.Readable.call(l),l._mode=n,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",(function(){r.nextTick((function(){l.emit("close")}))})),"fetch"===n){if(l._fetchResponse=t,l.url=t.url,l.statusCode=t.status,l.statusMessage=t.statusText,t.headers.forEach((function(e,t){l.headers[t.toLowerCase()]=e,l.rawHeaders.push(t,e)})),a.writableStream){var c=new WritableStream({write:function(e){return o(!1),new Promise((function(t,n){l._destroyed?n():l.push(i.from(e))?t():l._resumeFetch=t}))},close:function(){o(!0),l._destroyed||l.push(null)},abort:function(e){o(!0),l._destroyed||l.emit("error",e)}});try{return void t.body.pipeTo(c).catch((function(e){o(!0),l._destroyed||l.emit("error",e)}))}catch(m){}}var u=t.body.getReader();function d(){u.read().then((function(e){l._destroyed||(o(e.done),e.done?l.push(null):(l.push(i.from(e.value)),d()))})).catch((function(e){o(!0),l._destroyed||l.emit("error",e)}))}d()}else{l._xhr=e,l._pos=0,l.url=e.responseURL,l.statusCode=e.status,l.statusMessage=e.statusText;var h=e.getAllResponseHeaders().split(/\r?\n/);if(h.forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===l.headers[n]&&(l.headers[n]=[]),l.headers[n].push(t[2])):void 0!==l.headers[n]?l.headers[n]+=", "+t[2]:l.headers[n]=t[2],l.rawHeaders.push(t[1],t[2])}})),l._charset="x-user-defined",!a.overrideMimeType){var p=l.rawHeaders["mime-type"];if(p){var f=p.match(/;\s*charset=([^;])(;|$)/);f&&(l._charset=f[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};o(c,s.Readable),c.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())},c.prototype._onXHRProgress=function(e){var t=this,r=t._xhr,a=null;switch(t._mode){case"text":if(a=r.responseText,a.length>t._pos){var o=a.substr(t._pos);if("x-user-defined"===t._charset){for(var s=i.alloc(o.length),c=0;c<o.length;c++)s[c]=255&o.charCodeAt(c);t.push(s)}else t.push(o,t._charset);t._pos=a.length}break;case"arraybuffer":if(r.readyState!==l.DONE||!r.response)break;a=r.response,t.push(i.from(new Uint8Array(a)));break;case"moz-chunked-arraybuffer":if(a=r.response,r.readyState!==l.LOADING||!a)break;t.push(i.from(new Uint8Array(a)));break;case"ms-stream":if(a=r.response,r.readyState!==l.LOADING)break;var u=new n.g.MSStreamReader;u.onprogress=function(){u.result.byteLength>t._pos&&(t.push(i.from(new Uint8Array(u.result.slice(t._pos)))),t._pos=u.result.byteLength)},u.onload=function(){e(!0),t.push(null)},u.readAsArrayBuffer(a);break}t._xhr.readyState===l.DONE&&"ms-stream"!==t._mode&&(e(!0),t.push(null))}},18888:function(e,t,n){"use strict";var r=n(25636).Buffer,i=r.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function o(e){var t=a(e);if("string"!==typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=o(e),this.encoding){case"utf16le":this.text=f,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=g,this.end=v,t=3;break;default:return this.write=b,void(this.end=y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function l(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function c(e,t,n){var r=t.length-1;if(r<n)return 0;var i=l(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=l(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=l(t[r]),i>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0))}function u(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"<22>";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"<22>";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"<22>"}}function d(e){var t=this.lastTotal-this.lastNeed,n=u(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function h(e,t){var n=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t}function f(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function g(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function y(e){return e&&e.length?this.write(e):""}t.I=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},s.prototype.end=p,s.prototype.text=h,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},90703:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});const r="ResourceList"},11518:function(e,t,n){"use strict";n.d(t,{T3:function(){return i},r6:function(){return r}});const r=["token-hashing","multi-cluster-management"],i="harvester"},2841:function(e,t,n){"use strict";n.d(t,{$E:function(){return d},B9:function(){return T},Do:function(){return E},G5:function(){return y},Hs:function(){return A},MW:function(){return u},O3:function(){return w},Pl:function(){return v},Rw:function(){return m},S5:function(){return I},Ub:function(){return S},VT:function(){return L},W8:function(){return x},XH:function(){return P},Z_:function(){return N},_n:function(){return g},bs:function(){return h},d6:function(){return f},eG:function(){return s},ht:function(){return o},ks:function(){return r},lq:function(){return O},nN:function(){return p},ol:function(){return c},pS:function(){return b},qt:function(){return k},rW:function(){return B},rk:function(){return D},tC:function(){return i},uf:function(){return M},vi:function(){return _},xO:function(){return C},yA:function(){return a},yl:function(){return l}});const r="field.cattle.io/name",i="field.cattle.io/description",a="kubernetes.io/hostname",o="cattle.io/timestamp",s="management.cattle.io/system-namespace",l="field.cattle.io/projectId",c="authz.management.cattle.io/default-project",u="authz.management.cattle.io/system-project",d="field.cattle.io/containerDefaultResourceLimit",h="field.cattle.io/publicEndpoints",p="field.cattle.io/targetWorkloadIds",f="management.cattle.io/ui-managed",m="field.cattle.io/creatorId",g="field.cattle.io/resourceQuota",v="kubernetes.io/arch",b={SERVICE_ACCOUNT_UID:"kubernetes.io/service-account.uid",SERVICE_ACCOUNT_NAME:"kubernetes.io/service-account.name",MANAGED_BY:"app.kubernetes.io/managed-by",MANAGED_NAME:"app.kubernetes.io/name",INSTANCE:"app.kubernetes.io/instance"},y={ISSUER:"cert-manager.io/issuer-name"},w={DEFAULT_STORAGE_CLASS:"storageclass.kubernetes.io/is-default-class",BETA_DEFAULT_STORAGE_CLASS:"storageclass.beta.kubernetes.io/is-default-class"},E={NODE_NAME:"management.cattle.io/nodename"},_={CONTROL_PLANE_OLD:"node-role.kubernetes.io/controlplane",CONTROL_PLANE:"node-role.kubernetes.io/control-plane",WORKER:"node-role.kubernetes.io/worker",ETCD:"node-role.kubernetes.io/etcd"},S={CONTROL_PLANE:"rke.cattle.io/control-plane-role",WORKER:"rke.cattle.io/worker-role",ETCD:"rke.cattle.io/etcd-role"},k={DEPLOYMENT_NAME:"cluster.x-k8s.io/deployment-name",CREDENTIAL_DRIVER:"provisioning.cattle.io/driver",CLUSTER_NAMESPACE:"cluster.x-k8s.io/cluster-namespace",FORCE_MACHINE_REMOVE:"provisioning.cattle.io/force-machine-remove",MACHINE_NAME:"cluster.x-k8s.io/machine",DELETE_MACHINE:"cluster.x-k8s.io/delete-machine",PROVIDER:"provider.cattle.io",HUMAN_NAME:"provisioning.cattle.io/management-cluster-display-name",SECRET_AUTH:"v2prov-secret-authorized-for-cluster",SECRET_WILL_DELETE:"v2prov-authorized-secret-deletes-on-cluster-removal",UI_CUSTOM_PROVIDER:"ui.rancher/provider"},x={CERTIFIED:"catalog.cattle.io/certified",_RANCHER:"rancher",_PARTNER:"partner",_OTHER:"other",EXPERIMENTAL:"catalog.cattle.io/experimental",NAMESPACE:"catalog.cattle.io/namespace",RELEASE_NAME:"catalog.cattle.io/release-name",FEATURED:"catalog.cattle.io/featured",REQUIRES_GVK:"catalog.cattle.io/requires-gvr",PROVIDES:"catalog.cattle.io/provides-gvr",AUTO_INSTALL_GVK:"catalog.cattle.io/auto-install-gvr",AUTO_INSTALL:"catalog.cattle.io/auto-install",HIDDEN:"catalog.cattle.io/hidden",REQUESTS_CPU:"catalog.cattle.io/requests-cpu",REQUESTS_MEMORY:"catalog.cattle.io/requests-memory",SCOPE:"catalog.cattle.io/scope",_MANAGEMENT:"management",_DOWNSTREAM:"downstream",TYPE:"catalog.cattle.io/type",_APP:"app",_CLUSTER_TPL:"cluster-template",_CLUSTER_TOOL:"cluster-tool",COMPONENT:"catalog.cattle.io/ui-component",SOURCE_REPO_TYPE:"catalog.cattle.io/ui-source-repo-type",SOURCE_REPO_NAME:"catalog.cattle.io/ui-source-repo",COLOR:"catalog.cattle.io/ui-color",DISPLAY_NAME:"catalog.cattle.io/display-name",CLUSTER_REPO_NAME:"catalog.cattle.io/cluster-repo-name",SUPPORTED_OS:"catalog.cattle.io/os",PERMITTED_OS:"catalog.cattle.io/permits-os",DEPLOYED_OS:"catalog.cattle.io/deploys-on-os",MIGRATED:"apps.cattle.io/migrated",MANAGED:"catalog.cattle.io/managed",HIDDEN_REPO:"clusterrepo.cattle.io/hidden"},A={REPO_NAME:"fleet.cattle.io/repo-name",CLUSTER_DISPLAY_NAME:"management.cattle.io/cluster-display-name",CLUSTER_NAME:"management.cattle.io/cluster-name",BUNDLE_ID:"fleet.cattle.io/bundle-id",BUNDLE_NAME:"fleet.cattle.io/bundle-name",BUNDLE_NAMESPACE:"fleet.cattle.io/bundle-namespace",MANAGED:"fleet.cattle.io/managed",CLUSTER_NAMESPACE:"fleet.cattle.io/cluster-namespace",CLUSTER:"fleet.cattle.io/cluster",CREATED_BY_USER_ID:"fleet.cattle.io/created-by-user-id",CREATED_BY_USER_NAME:"fleet.cattle.io/created-by-display-name"},N={EXTERNAL_IP:"rke.cattle.io/external-ip"},C={CLUSTER_NAME:"rke.cattle.io/cluster-name"},T={AUTO_INJECTION:"istio-injection"},R=/cattle\.io\//,O=[R],I=[R],L=[/^kubectl\.kubernetes\.io\/.*$/,/^objectset\.rio\.cattle\.io\/.*$/],D={CLOUD_INIT:"harvesterhci.io/cloud-init-template",CLOUD_PROVIDER_IPAM:"cloudprovider.harvesterhci.io/ipam",NETWORK_ROUTE:"network.harvesterhci.io/route",IMAGE_NAME:"harvesterhci.io/image-name",NETWORK_TYPE:"network.harvesterhci.io/type",CLUSTER_NETWORK:"network.harvesterhci.io/clusternetwork",PRIMARY_SERVICE:"cloudprovider.harvesterhci.io/primary-service"},P={TEXT:"ui.rancher/badge-text",COLOR:"ui.rancher/badge-color",ICON_TEXT:"ui.rancher/badge-icon-text"},M=["io.cattle.lifecycle.","beta.kubernetes.io","failure-domain.beta.kubernetes.io","node-role.kubernetes.io","kubernetes.io","cattle.io","authz.management.cattle.io","rke.cattle.io","field.cattle.io","workload.user.cattle.io","k3s.io","node.kubernetes.io","egress.rke2.io"],B={EXPIRATION:"rancher.io/expiration-timestamp"}},57699:function(e,t,n){"use strict";n.d(t,{Xc:function(){return o},ce:function(){return d},ke:function(){return c},l3:function(){return i},nl:function(){return a},qI:function(){return u},r1:function(){return l},tm:function(){return s}});var r=n(68774);const i={...r.o_,defaultSort:!0,value:"metadata.name",sort:["metadata.name"],search:"metadata.name"},a={name:"steve-id",labelKey:"tableHeaders.id",value:"id",sort:["id"],search:"id"},o={...r.c4,sort:["metadata.state.name"],search:"metadata.state.name"},s={...r.K,value:"metadata.creationTimestamp",sort:"metadata.creationTimestamp",search:!1},l={...r.CU,value:"metadata.namespace",sort:"metadata.namespace",search:"metadata.namespace"},c=(r.qv,{...r.g6,value:"metadata.fields.0",sort:"metadata.fields.0"}),u={...r.cP,value:"_type",sort:"_type"},d=[{tooltipKey:"resourceTable.groupBy.none",icon:"icon-list-flat",value:"none"},{icon:"icon-folder",value:"metadata.namespace",field:"metadata.namespace",hideColumn:r.CU.name,tooltipKey:"resourceTable.groupBy.namespace",groupLabelKey:"groupByLabel"}]},49845:function(e,t,n){"use strict";n.d(t,{M0:function(){return a},f7:function(){return d},xc:function(){return u}});var r=n(9262),i=n(83297);const a=`https://ranchermanager.docs.rancher.com/v${i.ji}`,o="Rancher",s={suse:"Rancher Prime",csp:"SUSE Rancher"};let l=o,c=null;function u(e){l=e,h()}function d(){return l===r.HG.PL_RANCHER_VALUE?c&&s[c]?s[c]:o:l}function h(){const e=d();if("Harvester"===e){const e=n(57074);document.title="Harvester";const t=document.createElement("link");t.hid="icon",t.rel="icon",t.type="image/x-icon",t.hrefv=e;const r=document.getElementsByTagName("head")[0];r.appendChild(t)}}},10844:function(e,t,n){"use strict";n.d(t,{o_:function(){return r}});n(86565),n(35664),n(68774);const r="cis"},27278:function(e,t,n){"use strict";n.d(t,{o:function(){return r}});n(35664),n(68774),n(86565),n(57699),n(39669),n(95265),n(46392),n(2841);const r="explorer"},47034:function(e,t,n){"use strict";n.d(t,{o:function(){return r}});n(68774),n(35664),n(95265),n(86565),n(10213);const r="manager"},14220:function(e,t,n){"use strict";n.d(t,{$y:function(){return w},AS:function(){return f},CU:function(){return N},Eo:function(){return _},G5:function(){return c},G8:function(){return r},HC:function(){return p},L_:function(){return y},NO:function(){return S},Qp:function(){return i},RX:function(){return k},Rm:function(){return C},Sd:function(){return R},UA:function(){return E},YQ:function(){return s},Yq:function(){return b},_N:function(){return I},au:function(){return g},dT:function(){return d},dV:function(){return T},fS:function(){return m},g:function(){return o},iJ:function(){return O},nW:function(){return l},o_:function(){return A},wC:function(){return u},wZ:function(){return h},xv:function(){return x},xz:function(){return a},zD:function(){return v}});const r="local",i=null,a=void 0,o="mode",s="create",l="view",c="edit",u="list",d="clone",h="stage",p="import",f="as",m="detail",g="config",v="yaml",b="graph",y="focus",w="preview",E="type",_="repo-type",S="repo",k="chart",x="version",A="name",N="namespace",C="tools",T="hide-side-nav",R="cloud",O="projectId",I="flatView"},24989:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});const r={OPAQUE:"Opaque",SERVICE_ACCT:"kubernetes.io/service-account-token",DOCKER_JSON:"kubernetes.io/dockerconfigjson",BASIC:"kubernetes.io/basic-auth",SSH:"kubernetes.io/ssh-auth",TLS:"kubernetes.io/tls",BOOTSTRAP:"bootstrap.kubernetes.io/token",ISTIO_TLS:"istio.io/key-and-cert",HELM_RELEASE:"helm.sh/release.v1",FLEET_CLUSTER:"fleet.cattle.io/cluster-registration-values",CLOUD_CREDENTIAL:"provisioning.cattle.io/cloud-credential",RKE_AUTH_CONFIG:"rke.cattle.io/auth-config"}},71025:function(e,t){"use strict";t.A=["cattle-dashboards","cattle-global-data","cattle-system","gatekeeper-system","ingress-nginx","kube-node-lease","kube-public","kube-system","linkerd","security-scan","tekton-pipelines","cis-operator-system","istio-system","longhorn-system"]},68774:function(e,t,n){"use strict";n.d(t,{BD:function(){return E},CU:function(){return g},K:function(){return b},P4:function(){return l},Qg:function(){return O},Si:function(){return y},UA:function(){return S},X:function(){return d},X0:function(){return c},Yf:function(){return p},ZE:function(){return _},ZU:function(){return m},_:function(){return R},aQ:function(){return h},c4:function(){return o},cP:function(){return k},g6:function(){return A},hX:function(){return f},nv:function(){return v},o_:function(){return s},qv:function(){return C},rh:function(){return N},w5:function(){return T},wS:function(){return u},z7:function(){return L}});var r=n(2841),i=n(35664),a=n(39669);const o={name:"state",labelKey:"tableHeaders.state",sort:["stateSort","nameSort"],value:"stateDisplay",getValue:e=>e.stateDisplay,width:100,default:"unknown",formatter:"BadgeStateFormatter"},s={name:"name",labelKey:"tableHeaders.name",value:"nameDisplay",getValue:e=>e.nameDisplay,sort:["nameSort"],formatter:"LinkDetail",canBeVariable:!0},l={name:"logging-output-providers",labelKey:"tableHeaders.loggingOutputProviders",value:"providersDisplay",sort:["providersSortable"],formatter:"List"},c={name:"name",labelKey:"tableHeaders.simpleName",value:"name",sort:["name"],width:200,canBeVariable:!0},u={name:"storage_class_provisioner",labelKey:"tableHeaders.storage_class_provisioner",value:"provisionerListDisplay",sort:["provisioner"]},d={name:"storage_class_default",labelKey:"tableHeaders.default",value:"isDefault",sort:["isDefault"],formatter:"Checked"},h={name:"localOutputRefs",labelKey:"tableHeaders.output",value:"outputs",sort:["outputsSortable"],formatter:"ListLink",formatterOpts:{options:{internal:!0}}},p={name:"providers",labelKey:"tableHeaders.providers",value:"providersDisplay",sort:"providersSortable",formatter:"List"},f={...h,name:"globalOutputRefs",value:"clusterOutputs",sort:["clusterOutputsSortable"],labelKey:"tableHeaders.clusterOutput"},m={name:"name",labelKey:"tableHeaders.nameUnlinked",value:"nameDisplay",sort:["nameSort"],canBeVariable:!0},g={name:"namespace",labelKey:"tableHeaders.namespace",value:"namespace",getValue:e=>e.namespace,sort:"namespace",dashIfEmpty:!0},v=(i.NW,{name:"principal",labelKey:"tableHeaders.name",sort:"principal.loginName",value:"principalId",formatter:"Principal"}),b={name:"age",labelKey:"tableHeaders.age",value:"creationTimestamp",getValue:e=>e.creationTimestamp,sort:"creationTimestamp:desc",search:!1,formatter:"LiveDate",width:100,align:"left"},y={name:"NamespaceSnapshotQuota",labelKey:"harvester.tableHeaders.totalSnapshotQuota",value:"snapshotSizeQuota",sort:"snapshotSizeQuota",align:"center",formatter:"Si",formatterOpts:{opts:{increment:1024,addSuffix:!0,suffix:"i"},needParseSi:!1}},w={name:"pod_images",labelKey:"tableHeaders.podImages",value:"imageNames",getValue:e=>e.imageNames,sort:"imageNames",formatter:"PodImages"},E={name:"address",labelKey:"tableHeaders.address",value:"address",sort:["address"]},_={name:"type",labelKey:"tableHeaders.type",value:"typeDisplay",getValue:e=>e.typeDisplay,sort:["typeDisplay"],width:100},S={name:"subType",labelKey:"tableHeaders.subType",value:"subTypeDisplay",sort:["subTypeDisplay"],width:120},k={name:"type",labelKey:"tableHeaders.type",value:"eventType",sort:"eventType"},x={name:"lastSeen",labelKey:"tableHeaders.lastSeen",value:"lastSeen",sort:"lastTimestamp:desc",tooltip:"tableHeaders.lastSeenTooltip"},A={...x,defaultSort:!0},N={name:"reason",labelKey:"tableHeaders.reason",value:"reason",sort:["reason"]},C={name:"object",labelKey:"tableHeaders.object",value:"involvedObject",sort:["involvedObject.kind","involvedObject.name"],canBeVariable:!0,formatter:"InvolvedObjectLink"},T={name:"message",labelKey:"tableHeaders.message",value:"message",sort:["message"]},R={name:"key",labelKey:"tableHeaders.key",value:"key",sort:["key"]},O={name:"value",labelKey:"tableHeaders.value",value:"value",sort:["value"]},I=(a.c.LAPTOP,r.bs,a.c.DESKTOP,{name:"scope",value:"clusterName",labelKey:"tableHeaders.scope",dashIfEmpty:!0,align:"left",sort:["scope"],width:100}),L={name:"role",value:"roleDisplay",labelKey:"tableHeaders.role"}},35664:function(e,t,n){"use strict";n.d(t,{$v:function(){return I},B9:function(){return H},BN:function(){return Y},CU:function(){return d},FV:function(){return Q},GQ:function(){return ee},Hr:function(){return l},Hs:function(){return K},K5:function(){return a},Mc:function(){return j},NW:function(){return h},PV:function(){return f},Rp:function(){return P},SB:function(){return $},Sg:function(){return y},Sm:function(){return p},UI:function(){return q},UP:function(){return k},W8:function(){return L},XG:function(){return _},YH:function(){return m},YV:function(){return v},ZV:function(){return te},Zd:function(){return F},Zq:function(){return E},_n:function(){return z},bB:function(){return b},cG:function(){return X},cm:function(){return G},d_:function(){return Z},eo:function(){return J},fJ:function(){return w},fj:function(){return D},i2:function(){return o},k$:function(){return i},kf:function(){return u},lI:function(){return B},lk:function(){return x},ll:function(){return s},m3:function(){return S},m4:function(){return r},oU:function(){return A},oe:function(){return M},qt:function(){return V},rW:function(){return N},rk:function(){return W},wT:function(){return c},xO:function(){return U},yx:function(){return g}});const r={PREFERENCE:"userpreference",SCHEMA_DEFINITION:"schemaDefinition"},i={APP:"app",AUTH_CONFIG:"authconfig",ETCD_BACKUP:"etcdbackup",CLUSTER:"cluster",CLUSTER_TOKEN:"clusterregistrationtoken",CLUSTER_ROLE_TEMPLATE_BINDING:"clusterroletemplatebinding",CLOUD_CREDENTIAL:"cloudcredential",FLEET_WORKSPACES:"fleetworkspace",GLOBAL_ROLE:"globalRole",GLOBAL_ROLE_BINDING:"globalRoleBinding",NODE_POOL:"nodePool",NODE:"node",PRINCIPAL:"principal",PROJECT:"project",PROJECT_ROLE_TEMPLATE_BINDING:"projectroletemplatebinding",SETTING:"setting",SPOOFED:{GROUP_PRINCIPAL:"group.principal"},ROLE_TEMPLATE:"roleTemplate",TOKEN:"token",USER:"user",KONTAINER_DRIVER:"kontainerDriver",NODE_DRIVER:"nodeDriver"},a="configmap",o="count",s="event",l="endpoints",c="autoscaling.horizontalpodautoscaler",u="networking.k8s.io.ingress",d="namespace",h="node",p="pod",f="persistentvolume",m="persistentvolumeclaim",g="schema",v="service",b="secret",y="serviceaccount",w="storage.k8s.io.storageclass",E="storage.k8s.io.csidriver",_="k8s.cni.cncf.io.networkattachmentdefinition",S="user",k="group",x={ROLE:"rbac.authorization.k8s.io.role",CLUSTER_ROLE:"rbac.authorization.k8s.io.clusterrole",ROLE_BINDING:"rbac.authorization.k8s.io.rolebinding",CLUSTER_ROLE_BINDING:"rbac.authorization.k8s.io.clusterrolebinding"},A={DEPLOYMENT:"apps.deployment",CRON_JOB:"batch.cronjob",DAEMON_SET:"apps.daemonset",JOB:"batch.job",STATEFUL_SET:"apps.statefulset",REPLICA_SET:"apps.replicaset",REPLICATION_CONTROLLER:"replicationcontroller"},N={[A.DEPLOYMENT]:"ReplicaSet",[A.CRON_JOB]:"CronJob",[A.DAEMON_SET]:"DaemonSet",[A.JOB]:"Job",[A.STATEFUL_SET]:"StatefulSet",[A.REPLICA_SET]:"ReplicaSet",[A.REPLICATION_CONTROLLER]:"ReplicationController"},{DAEMON_SET:C,CRON_JOB:T,JOB:R,...O}=(A.DAEMON_SET,A.REPLICA_SET,A.STATEFUL_SET,A.DEPLOYMENT,A),I={NODE:"metrics.k8s.io.nodemetrics",POD:"metrics.k8s.io.podmetrics"},L={CLUSTER_REPO:"catalog.cattle.io.clusterrepo",OPERATION:"catalog.cattle.io.operation",APP:"catalog.cattle.io.app",REPO:"catalog.cattle.io.repo"},D={PROJECTHELMCHART:"helm.cattle.io.projecthelmchart"},P={ALERTMANAGER:"monitoring.coreos.com.alertmanager",ALERTMANAGERCONFIG:"monitoring.coreos.com.alertmanagerconfig",PODMONITOR:"monitoring.coreos.com.podmonitor",PROMETHEUS:"monitoring.coreos.com.prometheus",PROMETHEUSRULE:"monitoring.coreos.com.prometheusrule",SERVICEMONITOR:"monitoring.coreos.com.servicemonitor",THANOSRULER:"monitoring.coreos.com.thanosruler",SPOOFED:{RECEIVER:"monitoring.coreos.com.receiver",RECEIVER_SPEC:"monitoring.coreos.com.receiver.spec",RECEIVER_EMAIL:"monitoring.coreos.com.receiver.email",RECEIVER_SLACK:"monitoring.coreos.com.receiver.slack",RECEIVER_WEBHOOK:"monitoring.coreos.com.receiver.webhook",RECEIVER_PAGERDUTY:"monitoring.coreos.com.receiver.pagerduty",RECEIVER_OPSGENIE:"monitoring.coreos.com.receiver.opsgenie",RECEIVER_HTTP_CONFIG:"monitoring.coreos.com.receiver.httpconfig",RESPONDER:"monitoring.coreos.com.receiver.responder",ROUTE:"monitoring.coreos.com.route",ROUTE_SPEC:"monitoring.coreos.com.route.spec"}},M={ENGINES:"longhorn.io.engine",ENGINE_IMAGES:"longhorn.io.engineimage",NODES:"longhorn.io.node",REPLICAS:"longhorn.io.replica",SETTINGS:"longhorn.io.setting",VOLUMES:"longhorn.io.volume"},B="driver.longhorn.io",F="LonghornV1",$="LonghornV2",U="rke.cattle.io.etcdsnapshot",j={AUTH_CONFIG:"management.cattle.io.authconfig",CATALOG_TEMPLATE:"management.cattle.io.catalogtemplate",CLUSTER:"management.cattle.io.cluster",CLUSTER_ROLE_TEMPLATE_BINDING:"management.cattle.io.clusterroletemplatebinding",FEATURE:"management.cattle.io.feature",KONTAINER_DRIVER:"management.cattle.io.kontainerdriver",MULTI_CLUSTER_APP:"management.cattle.io.multiclusterapp",NODE:"management.cattle.io.node",NODE_DRIVER:"management.cattle.io.nodedriver",NODE_POOL:"management.cattle.io.nodepool",NODE_TEMPLATE:"management.cattle.io.nodetemplate",PROJECT:"management.cattle.io.project",PROJECT_ROLE_TEMPLATE_BINDING:"management.cattle.io.projectroletemplatebinding",ROLE_TEMPLATE:"management.cattle.io.roletemplate",SETTING:"management.cattle.io.setting",USER:"management.cattle.io.user",TOKEN:"management.cattle.io.token",GLOBAL_ROLE:"management.cattle.io.globalrole",GLOBAL_ROLE_BINDING:"management.cattle.io.globalrolebinding",PSA:"management.cattle.io.podsecurityadmissionconfigurationtemplate",MANAGED_CHART:"management.cattle.io.managedchart",USER_NOTIFICATION:"management.cattle.io.rancherusernotification",GLOBAL_DNS_PROVIDER:"management.cattle.io.globaldnsprovider",RKE_TEMPLATE:"management.cattle.io.clustertemplate",RKE_TEMPLATE_REVISION:"management.cattle.io.clustertemplaterevision",CLUSTER_PROXY_CONFIG:"management.cattle.io.clusterproxyconfig"},V={CAPI_CLUSTER:"cluster.x-k8s.io.cluster",MACHINE_DEPLOYMENT:"cluster.x-k8s.io.machinedeployment",MACHINE_SET:"cluster.x-k8s.io.machineset",MACHINE:"cluster.x-k8s.io.machine",RANCHER_CLUSTER:"provisioning.cattle.io.cluster",MACHINE_CONFIG_GROUP:"rke-machine-config.cattle.io"},K={BUNDLE:"fleet.cattle.io.bundle",BUNDLE_DEPLOYMENT:"fleet.cattle.io.bundledeployment",CLUSTER:"fleet.cattle.io.cluster",CLUSTER_GROUP:"fleet.cattle.io.clustergroup",DASHBOARD:"fleet.cattle.io.dashboard",GIT_REPO:"fleet.cattle.io.gitrepo",WORKSPACE:"management.cattle.io.fleetworkspace",TOKEN:"fleet.cattle.io.clusterregistrationtoken",BUNDLE_NAMESPACE_MAPPING:"fleet.cattle.io.bundlenamespacemapping",GIT_REPO_RESTRICTION:"fleet.cattle.io.gitreporestriction"},H={VIRTUAL_SERVICE:"networking.istio.io.virtualservice",DESTINATION_RULE:"networking.istio.io.destinationrule",GATEWAY:"networking.istio.io.gateway"},G={CLUSTER_FLOW:"logging.banzaicloud.io.clusterflow",CLUSTER_OUTPUT:"logging.banzaicloud.io.clusteroutput",FLOW:"logging.banzaicloud.io.flow",OUTPUT:"logging.banzaicloud.io.output",SPOOFED:{FILTERS:"logging.banzaicloud.io.output.filters",FILTER:"logging.banzaicloud.io.output.filter",CONCAT:"logging.banzaicloud.io.output.filters.concat",DEDOT:"logging.banzaicloud.io.output.filters.dedot",DETECTEXCEPTIONS:"logging.banzaicloud.io.output.filters.detectExceptions",GEOIP:"logging.banzaicloud.io.output.filters.geoip",GREP:"logging.banzaicloud.io.output.filters.grep",PARSER:"logging.banzaicloud.io.output.filters.parser",PROMETHEUS:"logging.banzaicloud.io.output.filters.prometheus",RECORD_MODIFIER:"logging.banzaicloud.io.output.filters.record_modifier",RECORD_TRANSFORMER:"logging.banzaicloud.io.output.filters.record_transformer",STDOUT:"logging.banzaicloud.io.output.filters.stdout",SUMOLOGIC:"logging.banzaicloud.io.output.filters.sumologic",TAG_NORMALISER:"logging.banzaicloud.io.output.filters.tag_normaliser",THROTTLE:"logging.banzaicloud.io.output.filters.throttle",RECORD:"logging.banzaicloud.io.output.filters.record",REGEXPSECTION:"logging.banzaicloud.io.output.filters.regexpsection",EXCLUDESECTION:"logging.banzaicloud.io.output.filters.excludesection",ORSECTION:"logging.banzaicloud.io.output.filters.orsection",ANDSECTION:"logging.banzaicloud.io.output.filters.andsection",PARSESECTION:"logging.banzaicloud.io.output.filters.parsesection",METRICSECTION:"logging.banzaicloud.io.output.filters.metricsection",REPLACE:"logging.banzaicloud.io.output.filters.replace",SINGLEPARSESECTION:"logging.banzaicloud.io.output.filters.replace.singleparsesection"}},z={CLUSTER_SCAN:"cis.cattle.io.clusterscan",CLUSTER_SCAN_PROFILE:"cis.cattle.io.clusterscanprofile",BENCHMARK:"cis.cattle.io.clusterscanbenchmark",REPORT:"cis.cattle.io.clusterscanreport"},q={NAV_LINK:"ui.cattle.io.navlink"},X={CLUSTER_MEMBERS:"cluster-members",PROJECT_NAMESPACES:"projects-namespaces",NAMESPACES:"namespaces",JWT_AUTHENTICATION:"jwt.authentication"},W={CLUSTER:"harvesterhci.io.management.cluster",DASHBOARD:"harvesterhci.io.dashboard",IMAGE:"harvesterhci.io.virtualmachineimage",VGPU_DEVICE:"devices.harvesterhci.io.vgpudevice",SETTING:"harvesterhci.io.setting",RESOURCE_QUOTA:"harvesterhci.io.resourcequota",HARVESTER_CONFIG:"rke-machine-config.cattle.io.harvesterconfig"},Y="harvester",Q={HOSTNAME:"Hostname",INTERNAL_IP:"InternalIP",EXTERNAL_IP:"ExternalIP"},J="fleet-default",Z="local",ee="Deprecated",te="Experimental"},83297:function(e,t,n){"use strict";n.d(t,{f$:function(){return i},ji:function(){return a}});let r={Version:"",RancherPrime:"false",GitCommit:""};function i(){return"true"===r.RancherPrime?.toLowerCase()}const a="2.11"},8135:function(e,t,n){"use strict";n.d(t,{Fm:function(){return s},Mz:function(){return l}});var r=n(68851),i=n(74302),a=n(4364);let o=1;const s="_beforeSaveHooks",l="_afterSaveHooks";t.Ay={methods:{registerBeforeHook(e,t,n=99,r){this._registerHook(s,e,t,n,r)},unregisterBeforeSaveHook(e){this[s]=this[s].filter((t=>t.name!==e))},registerAfterHook(e,t,n=99,r){this._registerHook(l,e,t,n,r)},async applyHooks(e,...t){if(!e)throw new Error("Must specify key");const n=(0,i.Ul)(this[e]||[],["priority","name"]),r={};for(const i of n)a.debug("Applying hook",i.name),r[i.name]=await i.fn.apply(i.fnContext||this,t);return r},_registerHook(e,t,n,i,a){if(!e)throw new Error("Must specify key");n||(n=`hook_${o}`,o++),i||(i=99);let s=this[e];s||(s=[],this[e]=s);let l=(0,r.jq)(s,"name",n);l?(l.priority=i,l.fn=t,l.fnContext=a):(l={name:n,priority:i,fn:t,fnContext:a},s.push(l))}}}},55277:function(e,t){"use strict";t.A={props:{pref:{type:String,default:null},prefKey:{type:String,default:null}},computed:{shown(){let e=!0;if(this.pref){const t=this.$store.getters["prefs/get"](this.pref);e=this.prefKey?!t[this.prefKey]:!t}return e}},methods:{async hide(){if(this.pref){let e=this.$store.getters["prefs/get"](this.pref);this.prefKey&&((!0===e||!1===e||e.length>0)&&(e={}),e[this.prefKey]=!0),await this.$store.dispatch("prefs/set",{key:this.pref,value:e})}}}}},65375:function(e,t,n){"use strict";var r=n(14220),i=n(91462),a=n(99726),o=n(8135),s=n(68851),l=n(35664),c=n(79401),u=n(4364);t.A={name:"CreateEditView",mixins:[o.Ay],emits:["done"],data(){return{errors:[]}},computed:{isCreate(){return this.mode===r.YQ},isEdit(){return this.mode===r.G5},isView(){return this.mode===r.nW},schema(){const e=this.storeOverride||this.$store.getters["currentStore"](this.value.type);return this.$store.getters[`${e}/schemaFor`](this.value.type)},isNamespaced(){return this.schema?.attributes?.namespaced||!1},labels:{get(){return this.value?.labels},set(e){this.value.setLabels(e)}},annotations:{get(){return this.value?.annotations},set(e){this.value.setAnnotations(e)}},doneRoute(){if(this.value?.doneRoute)return this.value.doneRoute;let e=this.$route.name;return e?.endsWith("-id")?e=e.replace(/(-namespace)?-id$/,""):e?.endsWith("-create")&&(e=e.replace(/-create$/,"")),e},doneParams(){if(this.value?.doneParams)return this.value.doneParams;const e={...this.$route.params};return delete e.namespace,delete e.id,e}},methods:{done(){if(!this.doneEvent)return this.doneLocationOverride?this.$router.replace(this.doneLocationOverride):void(this.doneRoute&&this.$router.replace({name:this.doneRoute,params:this.doneParams||{resource:this.value.type}}));this.$emit("done")},async conflict(){return await(0,c.Rq)(this.initialValue.toJSON(),this.value,this.liveValue,this.$store.getters,this.$store,this.storeOverride||this.$store.getters["currentStore"](this.value.type))},async save(e,t,n=0){this.errors&&(0,s.IU)(this.errors);try{if(await this.applyHooks(o.Fm,this.value),this.value?.metadata?.labels&&0===Object.keys(this.value.metadata.labels||{}).length&&delete this.value.metadata.labels,this.value?.metadata?.annotations&&0===Object.keys(this.value.metadata.annotations||{}).length&&delete this.value.metadata.annotations,this.isCreate){const e=this.value?.metadata?.namespace;e&&e!==l.eo&&this.value.$dispatch("prefs/set",{key:i.Ri,value:e},{root:!0})}await this.actuallySave(t),this.$store.getters["type-map/isSpoofed"](this.value.type)&&await this.$store.dispatch("cluster/findAll",{type:this.value.type,opt:{force:!0}},{root:!0}),await this.applyHooks(o.Mz,this.value),e&&e(!0),this.done()}catch(r){const i=409===r.status||409===r._status;if(i&&0===n&&this.isEdit){const r=await this.conflict();if(!1===r)return this.save(e,t,n+1);this.errors=r}else this.errors=(0,a.rz)(r);u.error("CreateEditView mixin failed to save: ",r),e&&e(!1)}},async actuallySave(e){if(this.isCreate){e=e||this.schema.linkFor("collection");const t=await this.value.save({url:e});t&&Object.assign(this.value,t)}else await this.value.save()},setErrors(e){this.errors=e}}}},91825:function(e,t,n){"use strict";var r=n(14220),i=n(9274),a=n(65375);t.A=(0,i.defineComponent)({...a.A,props:{mode:{type:String,default:r.G5},realMode:{type:String,default:r.G5},as:{type:String,default:r.zD},value:{type:Object,required:!0},initialValue:{type:Object,default:null},liveValue:{type:Object,default:null},doneEvent:{type:Boolean,default:!1}}})},77651:function(e,t,n){"use strict";var r=n(76978),i=n(71274);t.A={data(){return{fvFormRuleSets:[],fvReportedValidationPaths:[]}},methods:{fvGetPathRules(e){return this.fvRulesets.find((t=>t.path===e))?.rules||[]},fvGetAndReportPathRules(e){const t=this.fvGetPathRules(e);return t.length>0&&!this.fvReportedValidationPaths.includes(e)&&(this.fvReportedValidationPaths=[...this.fvReportedValidationPaths,e]),t},fvGetPathValues(e){const t=this.fvRulesets.find((t=>t.path===e));return t?(0,r.Ib)(t?.rootObject||this.value,t?.path):[]},fvGetValues(e,t,n){return n.length>1&&"object"===typeof e&&!Array.isArray(e)&&null!==e?{...e,idx:t}:e},fvGetPathErrors(e=[]){const t=e.reduce(((e,t)=>{const n=[],r=this.fvGetPathRules(t),i=this.fvGetPathValues(t).map(this.fvGetValues);return r.forEach((e=>{i.forEach((t=>{n.push(e(t))}))})),[...e,...n].filter(Boolean)}),[]);return t}},computed:{fvExtraRules(){return{}},fvRulesets(){const e=()=>{};return[...this.fvFormRuleSets.map((t=>{const n={...(0,i.A)(this.$store.getters["i18n/t"],{displayKey:t?.translationKey?this.$store.getters["i18n/t"](t.translationKey):"Value"}),...this.fvExtraRules};return{...t,rules:t.rules.map((t=>n[t]||e)),formValidationRule:!0}})),...(this?.value?.modelValidationRules||[]).map((e=>({...e,formValidationRule:!1})))]},fvUnreportedValidationErrors(){const e=this.fvRulesets.filter((e=>!!e.formValidationRule&&!this.fvReportedValidationPaths.includes(e.path))).map((e=>e.path)),t=this.fvGetPathErrors(e),n=this.value.customValidationErrors?this.value.customValidationErrors(this.value,this.fvReportedValidationPaths):[];return[...t,...n,...this.errors||[]]},fvValidationErrors(){const e=this.fvRulesets.filter((e=>!!e.formValidationRule)).map((e=>e.path)),t=this.fvGetPathErrors(e),n=this.value.customValidationErrors?this.value.customValidationErrors(this.value):[];return[...t,...n]},fvFormIsValid(){return 0===this.fvValidationErrors.length}}}},23667:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var r=n(65359),i=n(35664),a=n(9262),o=n(18110),s=n(90703),l=n(81565),c={data(){return{forceUpdateLiveAndDelayed:0}},computed:{...(0,r.L8)(["currentProduct","currentCluster","namespaceFilters"]),namespaceFilterRequired(){return this.__namespaceRequired&&!this.__validFilter},namespaceFilter(){return this.__namespaceRequired?this.__validFilter:""},__validFilter(){const e=this.namespaceFilters.length&&this.namespaceFilters.every((e=>e.startsWith(o.EF)||e.startsWith(o.xs)));return e?this.namespaceFilters:null},__namespaceRequired(){return!!l.A.isEnabled(this.$store.getters)&&this.__areResourcesNamespaced},__areResourcesNamespaced(){return"cluster"===this.currentProduct.inStore&&(this.loadResources||[]).every((e=>{const t=this.$store.getters["cluster/schemaFor"](e);return t?.attributes?.namespaced}))}},watch:{async namespaceFilter(e){e&&(this.$options.name!==s.v&&this.$fetch&&await this.$fetch(),this.forceUpdateLiveAndDelayed=(new Date).getTime())}}},u=n(91462),d=n(15092),h=n(12784),p=n.n(h),f=n(50025),m=n(82637),g={props:{namespaced:{type:Boolean,default:null},context:{type:String,default:null}},data(){return{forceUpdateLiveAndDelayed:0,pPagination:null,debouncedSetPagination:p()(this.setPagination,50),requestFilters:{filters:[],projectsOrNamespaces:[]}}},methods:{setPagination(e){e&&(this.pPagination=e)},paginationChanged(e){const t=e.filter.searchQuery?e.filter.searchFields.map((t=>new f.Js({field:t,value:e.filter.searchQuery,exact:!1}))):[],n=new f.gR({page:e.page,pageSize:e.perPage,sort:e.sort?.map((t=>({field:t,asc:!e.descending}))),projectsOrNamespaces:this.requestFilters.projectsOrNamespaces,filters:[new f.eY({fields:t}),...this.requestFilters.filters]});this.debouncedSetPagination(n)},namespaceFilterChanged(e){if(!this.canPaginate||!this.isNamespaced)return;const{projectsOrNamespaces:t,filters:n}=m.A.createParamsFromNsFilter({allNamespaces:this.$store.getters[`${this.currentProduct?.inStore}/all`](i.CU),selection:e,isAllNamespaces:this.isAllNamespaces,isLocalCluster:this.$store.getters["currentCluster"].isLocal,showDynamicRancherNamespaces:this.showDynamicRancherNamespaces,productHidesSystemNamespaces:this.productHidesSystemNamespaces});this.requestFilters.filters=n,this.requestFilters.projectsOrNamespaces=t,this.pPagination&&this.debouncedSetPagination({...this.pPagination})},paginationEqual(e,t){return!!e.page&&!!d.A.paginationEqual(e,t)}},computed:{...(0,r.L8)(["currentProduct","isAllNamespaces"]),namespaceFilters(){return this.$store.getters["namespaceFilters"]},paginationNsFilterRequired(){return this.canPaginate&&!this.__validPaginationNsFilter},__validPaginationNsFilter(){return d.A.validateNsProjectFilters(this.namespaceFilters)},isResourceList(){return!!this.hasListComponent},pagination(){if(!this.isResourceList)return this.canPaginate?this.pPagination:""},canPaginate(){if(this.isResourceList)return;if(!this.resource)return!1;const e={id:this.resource.id||this.resource,context:this.context};return this.resource&&this.$store.getters[`${this.inStore}/paginationEnabled`]?.(e)},paginationResult(){if(!this.isResourceList&&this.canPaginate)return this.havePaginated?.result},havePaginated(){if(!this.isResourceList)return this.$store.getters[`${this.inStore}/havePage`](this.resource)},productHidesSystemNamespaces(){return this.currentProduct?.hideSystemResources},showDynamicRancherNamespaces(){return this.$store.getters["prefs/get"](u.Pz)},isNamespaced(){return null!==this.namespaced?!!this.namespaced:this.schema?.attributes?.namespaced}},watch:{rows(e){this.canPaginate&&this.pagination&&!this.isResourceList&&this.pagination.page>1&&0===e.length&&this.setPagination({...this.pagination,page:this.pagination.page-1})},namespaceFilters:{immediate:!0,async handler(e,t){if(!this.canPaginate||!this.isNamespaced)return;if(this.isResourceList)return;const n=!e||0===e.length||e[0]===o.tj,r=!t||0===t.length||t[0]===o.tj;if(n&&r){const e=this.isAllNamespaces&&(!this.showDynamicRancherNamespaces||this.productHidesSystemNamespaces);if(!e)return}1===e.length&&[o.x8,o.TD].includes(e[0])||this.namespaceFilterChanged(e)}},async pagination(e,t){this.canPaginate&&(this.isResourceList||e&&this.$options.name!==s.v&&this.$fetch&&!this.paginationEqual(e,t)&&(await this.$fetch(!1),this.forceUpdateLiveAndDelayed=(new Date).getTime()))},async paginationResult(e,t){this.fetchPageSecondaryResources&&e&&e.timestamp!==t?.timestamp&&await this.fetchPageSecondaryResources({canPaginate:this.canPaginate,force:!1,page:this.rows,pagResult:this.paginationResult})}}},v=n(4364);const b=4;var y={mixins:[c,g],inheritAttrs:!1,data(){const e=this.$store.getters["management/byId"](i.Mc.SETTING,a.HG.UI_PERFORMANCE);let t={};if(e&&e.value)try{t=JSON.parse(e.value)}catch(s){v.warn("ui-performance setting contains invalid data")}else t=a.$8;const n={...this.$route.params},r=n.resource||this.schema?.id,o=this.$store.getters["currentStore"](r);return{inStore:o,perfConfig:t,init:!1,multipleResources:[],loadResources:[r],hasManualRefresh:!1,watch:!0,isTooManyItemsToAutoUpdate:!1,force:!1,incremental:!1,fetchedResourceType:[],paginating:null,isFirstLoad:!0}},beforeUnmount(){this.init&&(this.$store.dispatch("resource-fetch/clearData"),this.fetchedResourceType.forEach((e=>{this.$store.dispatch(`${e.currStore}/incrementLoadCounter`,e.type)})))},props:{localFilter:{type:Function,default:null},apiFilter:{type:Function,default:null}},computed:{...(0,r.L8)({refreshFlag:"resource-fetch/refreshFlag"}),rows(){const e=this.fetchedResourceType.find((e=>e.type===this.resource));if(e){const t=this.$store.getters[`${e.currStore}/all`](this.resource);if(!this.canPaginate)return this.localFilter?this.localFilter(t):t;if(this.havePaginated)return t}return[]},loading(){return this.canPaginate?null===this.paginating||this.paginating:!this.rows.length&&this.$fetchState.pending}},watch:{async refreshFlag(e){this.init&&e&&(await this.$fetch(),this.canPaginate&&this.fetchPageSecondaryResources&&this.fetchPageSecondaryResources({canPaginate:this.canPaginate,force:!0,page:this.rows,pagResult:this.paginationResult}))},loading(e,t){t&&!e&&(this.isFirstLoad=!1)}},methods:{$initializeFetchData(e,t=[],n){if(!this.init){const r=n||this.$store.getters["currentStore"]();this.__gatherResourceFetchData(e,t,r),this.watch||(this.force=!0),this.isTooManyItemsToAutoUpdate&&(this.hasManualRefresh=!0)}},$fetchType(e,t=[],n){const r=n||this.$store.getters["currentStore"]();this.$initializeFetchData(e,t,r),this.fetchedResourceType.find((t=>t.type===e))||this.fetchedResourceType.push({type:e,currStore:r});const i=this.$store.getters[`${r}/schemaFor`](e);if(this.canPaginate){if(!this.pagination)return;const t={hasManualRefresh:this.hasManualRefresh,pagination:{...this.pagination},force:null!==this.paginating};this.apiFilter&&(t.paginating=this.apiFilter(t.pagination)),this["paginating"]=!0;const n=this;return this.$store.dispatch(`${r}/findPage`,{type:e,opt:t}).finally((()=>n["paginating"]=!1))}let a=0;if(this.incremental){const t=this.__getCountForResources([e],this.namespaceFilter,r);a=Math.ceil(t/b)}const o={incremental:a,watch:this.watch,force:this.force,hasManualRefresh:this.hasManualRefresh};return i?.attributes?.namespaced&&(o.namespaced=this.namespaceFilter),this.$store.dispatch(`${r}/findAll`,{type:e,opt:o})},__getCountForResources(e,t,n){const r=n||this.$store.getters["currentStore"]();return e.reduce(((e,n)=>e+this.__getCountForResource(n,t,r)),0)},__getCountForResource(e,t,n){const r=this.$store.getters[`${n}/all`](i.i2)[0]?.counts[`${e}`],a=t&&r?.namespaces?r?.namespaces[t]?.count:r?.summary?.count;return a||0},__gatherResourceFetchData(e,t,n){this.init=!0;const r=this.perfConfig?.manualRefresh?.enabled,i=parseInt(this.perfConfig?.manualRefresh?.threshold||"0",10),a=this.perfConfig?.incrementalLoading?.enabled,o=parseInt(this.perfConfig?.incrementalLoading?.threshold||"0",10);this.multipleResources=t;let s=0,l=!0,c=!1,u=!1;const d=this.multipleResources.length?this.multipleResources:[e];s=this.__getCountForResources(d,this.namespaceFilter,n),r&&s>=i?(l=!1,c=!0):this.canPaginate&&(c=!0),u=a&&o>0&&s>=o,this.$store.dispatch("resource-fetch/updateIsTooManyItems",c),this.watch=l,this.isTooManyItemsToAutoUpdate=c,this.incremental=u}}}},89626:function(e,t){"use strict";t.A={data(){return{overridesMixinPreventDoubleTriggerKeysOpen:!1}},methods:{mappedKeys(e,t){const n={...e};return n[9]=e=>{t.open&&e.preventDefault()},n[27]=e=>(e.preventDefault(),e.stopPropagation(),t.open=!1,t.search="",this.$refs.select.focus(),!1),n[13]=(e,n)=>{if(!t.open)return void(t.open=!0);if(-1===t.typeAheadPointer)return;let r=t.filteredOptions[t.typeAheadPointer];t.$emit("option:selecting",r),t.isOptionSelected(r)||(t.taggable&&!t.optionExists(r)&&t.$emit("option:created",r),t.multiple&&(r=t.selectedValue.concat(r)),t.updateValue(r),t.$emit("option:selected",r),t.closeOnSelect&&(this.overridesMixinPreventDoubleTriggerKeysOpen=!0,t.open=!1,t.typeAheadPointer=-1),t.clearSearchOnSelect&&(t.search=""))},n[38]=e=>(e.preventDefault(),t.open||(t.open=!0),t.typeAheadUp()),n[40]=e=>(e.preventDefault(),t.open||(t.open=!0),t.typeAheadDown()),n}}}},426:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(14220),i=n(89865);const a={KIND_SEPARATOR:"://",GROUP_SEPARATOR:":",BASE_SEPARATOR:"*",ID_SEPARATOR:":",KIND_ALL:"containers",SYSTEM_CATEGORIES:["Rancher services"],CATALOG_DEFAULT_GROUP:"library"};function o(e){const t={kind:null,group:null,base:null,id:null,name:null,version:null};if(!e)return t;const n=e.indexOf(a.KIND_SEPARATOR);if(n>=0){t.kind=e.substr(0,n);let r=e.substr(n+a.KIND_SEPARATOR.length+1);t.id=e,r=r.split("&"),r.forEach((e=>{const[n,r]=e.split("=");t[n]=r}))}let r=t.catalog;return r=r.includes("/")?r.replace("/",":"):`cattle-global-data:${r}`,t.templateId=`${r}-${t.template}`,t.templateVersionId=`${r}-${t.template}-${t.version}`,t}class s extends i.A{get appEditUrl(){return this.detailLocation}goToEdit(e={}){const t=this.appEditUrl;t.query={...t.query,[r.g]:r.G5,...e},this.currentRouter().push(t)}get currentVersion(){return o(this.externalId).version}}},54686:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(25184);class i extends r.A{get revisionNumber(){return this.revision}}},89395:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(70775);class i extends r["default"]{async rollBack(e,t,n){const r=[{op:"replace",path:"/spec/template",value:{metadata:n.data.spec.template.metadata,spec:n.data.spec.template.spec}},{op:"replace",path:"/metadata/generation",value:n.revision}];await this.rollBackWorkload(e,t,"daemonsets",r)}}},41212:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(35664),i=n(70775);const a=["kubectl.kubernetes.io/last-applied-configuration","deployment.kubernetes.io/revision","deployment.kubernetes.io/revision-history","deployment.kubernetes.io/desired-replicas","deployment.kubernetes.io/max-replicas","deprecated.deployment.rollback.to"],o=/Replicas: (\d+)/;class s extends i["default"]{get replicaSetId(){const e=this.metadata?.relationships||[],t=e.filter((e=>"owner"===e.rel&&e.toType===r.oU.REPLICA_SET)),n=t.find((e=>{const t=e.message?.match(o),n=t?parseInt(t[1],10):0;return n>0})),i=n||t[0];return i?.toId?.replace(`${this.namespace}/`,"")}async rollBack(e,t,n){const r=[{op:"replace",path:"/spec/template",value:{metadata:{creationTimestamp:null,labels:Object.keys(n.spec.template.metadata?.labels||{}).reduce(((e,t)=>("pod-template-hash"!==t&&(e[t]=n.spec.template.metadata.labels[t]),e)),{}),annotations:Object.keys(n.spec.template.metadata?.annotations||{}).reduce(((e,t)=>(a.includes(t)||(e[t]=n.spec.template.metadata.annotations[t]),e)),{})},spec:n.spec.template.spec}},{op:"replace",path:"/metadata/annotations",value:{"deployment.kubernetes.io/revision":n.metadata.annotations["deployment.kubernetes.io/revision"]}}];await this.rollBackWorkload(e,t,"deployments",r)}}},77763:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(70775);class i extends r["default"]{get revisionNumber(){if(this.ownedByWorkload)return this.metadata.annotations["deployment.kubernetes.io/revision"]}}},86791:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(70775),i=n(35664);class a extends r["default"]{async rollBack(e,t,n){const r=[{op:"replace",path:"/spec/template",value:{metadata:n.data.spec.template.metadata,spec:n.data.spec.template.spec}},{op:"replace",path:"/metadata/generation",value:n.revision}];await this.rollBackWorkload(e,t,"statefulsets",r)}get pods(){const e=this.metadata?.relationships||[],t=e.filter((e=>e.toType===i.Sm))[0];if(t){const e=this.$getters["podsByNamespace"](this.metadata.namespace);return e.filter((e=>{if(e.metadata?.ownerReferences?.length){const t=e.metadata?.ownerReferences?.find((e=>e.kind===i.rW[i.oU.STATEFUL_SET]));if(t)return`${e.metadata.namespace}/${t.name}`===this.id}return!1}))}return[]}}},20763:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(25184);class i extends r.A{get customValidationRules(){return[{nullable:!1,path:"metadata.name",required:!0,translationKey:"generic.name",type:"dnsLabel"}]}get details(){const{spec:e={},status:t}=this,n=[{label:e?.scaleTargetRef?.kind??this.t("hpa.tabs.workload"),content:e?.scaleTargetRef?.name},{label:this.t("hpa.workloadTab.min"),content:e?.minReplicas},{label:this.t("hpa.workloadTab.max"),content:e?.maxReplicas},{label:this.t("hpa.workloadTab.current"),content:t?.currentReplicas??0},{label:this.t("hpa.workloadTab.last"),content:t?.lastScaleTime,formatter:"LiveDate"}];return n}}},43020:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(68851),i=n(76978),a=n(35664),o=n(70775);class s extends o["default"]{get state(){return this.spec?.suspend?"suspended":super.state}get _availableActions(){const e=super._availableActions,t=this.spec?.suspend||!1,n=this.$getters["schemaFor"](a.oU.JOB),i=!!n?.collectionMethods.find((e=>["blocked-post","post"].includes(e.toLowerCase())));return(0,r.PT)(e,0,{action:"runNow",label:this.t("action.runNow"),icon:"icon icon-spinner",enabled:i,bulkable:!0}),(0,r.PT)(e,1,{action:"suspend",label:this.t("action.suspend"),icon:"icon icon-pause",enabled:!t&&this.canUpdate,bulkable:!0}),(0,r.PT)(e,2,{action:"resume",label:this.t("action.resume"),icon:"icon icon-play",enabled:t&&this.canUpdate,bulkable:!0}),e}async runNow(){const e={apiVersion:this.apiVersion,controller:!0,kind:this.kind,name:this.metadata.name,uid:this.metadata.uid},t=await this.$dispatch("create",{type:a.oU.JOB,kind:a.rW[a.oU.JOB],...(0,i.o8)(this.spec.jobTemplate)});t.metadata=t.metadata||{},t.metadata.namespace=this.metadata.namespace,t.metadata.name=`${this.metadata.name}-${Date.now()}`,t.metadata.ownerReferences=[e],await t.save(),t.goToDetail()}suspend(){this.spec.suspend=!0,this.save()}resume(){this.spec.suspend=!1,this.save()}}},66184:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(70775),i=n(34255);class a extends r["default"]{get duration(){const e=this.$getters["schemaFor"](this.type),t=this.$rootGetters["type-map/rowValueGetter"],{completionTime:n,startTime:r}=this.status,a=e&&t?t(e,"Duration")(this):null,o=a&&r?(0,i.Fp)(r,n||new Date):0;return{value:n?{staticValue:a}:{startTime:r},seconds:o}}}},65502:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var r=n(14220),i=n(2841),a=n(83288),o=n(68851),s=n(35664),l=n(91462),c=n(76978),u=n(25184),d=n(97707),h=n(4364);class p extends u.A{showMasthead(e){return e===r.nW}applyDefaults(){(0,c.hZ)(this,"disableOpenApiValidation",!1),(0,c.hZ)(this,"noHooks",!1),(0,c.hZ)(this,"skipCRDs",!1),(0,c.hZ)(this,"timeout",300),(0,c.hZ)(this,"wait",!0),(0,c.hZ)(this,"upgradeAvailableVersion","")}get _availableActions(){const e=super._availableActions,t={action:"goToUpgrade",enabled:!0,icon:"icon icon-fw icon-edit",label:this.t("catalog.install.action.goToUpgrade")};return e.unshift(t),e}get warnDeletionMessage(){if(this.upgradeAvailable===d.I0.NOT_APPLICABLE){const e=this.spec?.chart?.metadata?.annotations?.[i.W8.MANAGED]||"Rancher";return this.t("catalog.delete.warning.managed",{manager:"true"===e?"Rancher":e,name:this.name})}return null}matchingCharts(e){const t=this.spec?.chart;if(!t)return[];const n=t.metadata?.name,r=t.metadata?.annotations?.[i.W8.SOURCE_REPO_NAME]||this.metadata?.labels?.[i.W8.CLUSTER_REPO_NAME],a=this.$rootGetters["catalog/chart"]({chartName:n,repoName:r,includeHidden:e,multiple:!0})||[];if(0===a.length)return[];const o=t?.metadata?.home,s=a.filter((({versions:e})=>{if(o===e[0]?.home)return!0;for(let t=1;t<e.length;t++){const{version:n,home:r}=e[t];if(n===this.currentVersion&&r===o)return!0}return!1}));return s}get currentVersion(){return this.spec?.chart?.metadata?.version}get upgradeAvailable(){if(this.spec?.chart?.metadata?.annotations?.[i.W8.MANAGED]||this.spec?.chart?.metadata?.annotations?.[i.Hs.BUNDLE_ID])return d.I0.NOT_APPLICABLE;const e=this.matchingCharts(!1);return 0===e.length?d.I0.NO_UPGRADE:1===e.length?this.evaluateUpgradeForChart(e[0]):this.handleMultipleUpgradeMatches(e)}evaluateUpgradeForChart(e){const t=this.$rootGetters["currentCluster"].workerOSs,n=this.$rootGetters["prefs/get"](l.kJ);let r=e.versions;n||(r=e.versions.filter((e=>!(0,a.V1)(e.version)))),r=(0,d.bh)(e,t,n);const i=r?.[0],o=i?.version;return this.currentVersion&&o&&(0,a.UD)(this.currentVersion,o)<0?(this.upgradeAvailableVersion=f(o),d.I0.SINGLE_UPGRADE):d.I0.NO_UPGRADE}handleMultipleUpgradeMatches(e){const t=[];for(const n of e){const e=this.evaluateUpgradeForChart(n);e===d.I0.SINGLE_UPGRADE&&t.push(n)}if(t.length>1)return d.I0.MULTIPLE_UPGRADES;if(1===t.length){const e=t[0]?.versions?.[0]?.version;return this.upgradeAvailableVersion=f(e),d.I0.SINGLE_UPGRADE}return d.I0.NO_UPGRADE}get upgradeAvailableSort(){return this.upgradeAvailable===d.I0.SINGLE_UPGRADE?(0,a.Xt)(this.upgradeAvailableVersion):"~"}get currentVersionCompatible(){const e=this.$rootGetters["currentCluster"].workerOSs,t=this.matchingCharts(!1)[0];if(!t)return!0;const n=t.versions.find((e=>e.version===this.currentVersion));if(!n)return!0;const r=(0,d.bh)(t,e,!0)||[],i=!!r.find((e=>e.version===this.currentVersion));return i}get stateDescription(){return this.currentVersionCompatible?null:this.upgradeAvailableVersion?this.t("catalog.os.versionIncompatible"):this.t("catalog.os.chartIncompatible")}goToUpgrade(e,t){const n=this.matchingCharts(!0)[0],i={[r.CU]:this.metadata.namespace,[r.o_]:this.metadata.name,[r.xv]:e||this.currentVersion};n&&(i[r.NO]=n.repoName,i[r.Eo]=n.repoType,i[r.RX]=n.chartName),t&&(i[r.Rm]=r.Qp),this.currentRouter().push({name:"c-cluster-apps-charts-install",params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"]},query:i})}get details(){const e=this.$rootGetters["i18n/t"],t=this.spec?.info?.firstDeployed,n=this.spec?.info?.lastDeployed;return t&&n&&t!==n?[{label:e('model."catalog.cattle.io.app".lastDeployed'),formatter:"LiveDate",content:n}]:[]}get nameDisplay(){const e=this.spec?.name||this.metadata?.name||this.id||"";return e}get chartDisplay(){const e=this.spec?.chart?.metadata?.name||"?";return`${e}:${this.versionDisplay}`}get versionDisplay(){return f(this.currentVersion)}get versionSort(){return(0,a.Xt)(this.versionDisplay)}async remove(e={}){const t=await this.doAction("uninstall",e),n=await this.$dispatch("find",{type:s.W8.OPERATION,id:`${t.operationNamespace}/${t.operationName}`});try{await n.waitForLink("logs"),n.openLogs()}catch(r){}}get relatedResourcesToRemove(){return async()=>{const e=this.spec.chart.metadata.annotations[i.W8.AUTO_INSTALL].replace("=match","");return await this.$dispatch("find",{type:s.W8.APP,id:`${this.metadata.namespace}/${e}`})}}get canDelete(){return this.hasAction("uninstall")}get deployedResources(){return(0,o.WP)(this.metadata?.relationships||[],"rel","helmresource")}get deployedAsMultiCluster(){return async()=>{try{const e=await this.$dispatch("management/findAll",{type:s.Mc.MULTI_CLUSTER_APP},{root:!0}).catch((()=>{throw new Error("You don't have permission to list multi-cluster apps")}));if(e)return e.find((e=>e.spec?.targets?.find((e=>e.appName===this.metadata?.name))))}catch(e){}return!1}}async deployedAsLegacy(){if(await this.fetchValues(),this.values?.global){const{clusterName:t,projectName:n}=this.values.global;if(t&&n)try{const e=await this.$dispatch("rancher/find",{type:s.k$.APP,id:`${n}:${this.metadata?.name}`,opt:{url:`/v3/project/${t}:${n}/apps/${n}:${this.metadata?.name}`}},{root:!0});if(e)return e}catch(e){}}return!1}async fetchValues(e=!1){if(!this.secretId)return;const t=!!this._values&&!!this._chartValues;if(!t||e)try{await this.$dispatch("find",{type:s.bB,id:this.secretId,opt:{force:e||!!this._secret&&!t,watch:!1,params:{includeHelmData:!0}}})}catch(n){h.error(`Cannot find values for ${this.id} (unable to fetch)`,n)}}get secretId(){const e=this.metadata,t=e.ownerReferences?.find((e=>e.kind.toLowerCase()===s.bB)),n=t?.name,r=e.namespace;return r&&n?`${r}/${n}`:(h.warn(`Cannot find values for ${this.id} (cannot find related secret namespace or id)`),null)}get _secret(){return this.secretId?this.$getters["byId"](s.bB,this.secretId):null}_validateSecret(e){if(void 0===this._secret)throw new Error(`Cannot find ${e} for ${this.id} (chart secret has not been fetched via app \`fetchValues\`)`);if(null===this._secret)throw new Error(`Cannot find ${e} for ${this.id} (chart secret cannot or has failed to fetch) `)}get values(){return this._validateSecret("values"),this._values}get _values(){return this._secret?.data?.release?.config}get chartValues(){return this._validateSecret("chartValues"),this._chartValues}get _chartValues(){return this._secret?.data?.release?.chart?.values}}function f(e){if(!e)return"?";e.match(/^v/i)&&(e=e.substr(1));const t=e.match(/[0-9a-f]{32,}/);return t&&(e=e.replace(t[0],t[0].substr(0,7))),e}},48723:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(50667),i=n(2841),a=n(68851),o=n(35664),s=n(73883),l=n(25184);class c extends l.A{applyDefaults(){this.spec||(this["spec"]={url:""})}get _isClusterRepoDisabled(){return!1===this.spec?.enabled}get _availableActions(){const e=super._availableActions;return(0,a.PT)(e,0,{divider:!0}),this._isClusterRepoDisabled?(0,a.PT)(e,1,{action:"enableClusterRepo",label:this.t("action.enable"),icon:"icon icon-play",enabled:!0,bulkable:!0}):((0,a.PT)(e,1,{action:"disableClusterRepo",label:this.t("action.disable"),icon:"icon icon-pause",enabled:!0,bulkable:!0}),(0,a.PT)(e,0,{action:"refresh",label:this.t("action.refresh"),icon:"icon icon-refresh",enabled:!!this.links.update,bulkable:!0})),e}async refresh(){const e=(new Date).toISOString().replace(/\.\d+Z$/,"Z");this.spec.forceUpdate=e,await this.save(),await this.waitForState("active",1e4,1e3),this.$dispatch("catalog/load",{force:!0,reset:!0},{root:!0})}async disableClusterRepo(){this.spec.enabled=!1,await this.save()}async enableClusterRepo(){this.spec.enabled=!0,await this.save()}get isGit(){return!!this.spec?.gitRepo}get isOciType(){const e="oci"===this.spec.url?.split(":")[0],t=Object.prototype.hasOwnProperty.call(this.spec,"insecurePlainHttp");return e||t}get isRancherSource(){let e;return(!this.spec?.url||!this.spec?.gitRepo)&&(!!(this.spec?.url&&(e=(0,r.qg)(this.spec.url),e&&t(e.host)))||!!(this.spec?.gitRepo&&(e=(0,r.qg)(this.spec.gitRepo),e&&t(e.host))));function t(e){return e=(e||"").toLowerCase(),"rancher.io"===e||e.endsWith(".rancher.io")}}get isRancher(){return this.isRancherSource&&"rancher-charts"===this.metadata.name}get isPartner(){return this.isRancherSource&&"rancher-partner-charts"===this.metadata.name}get color(){if(this.isRancher)return"rancher";if(this.isPartner)return"partner";{const e=parseInt(this.metadata?.annotations?.[i.W8.COLOR],10);return isNaN(e)||e<=0||e>8?null:`color${e}`}}get canLoad(){return"active"===this.metadata?.state?.name}get typeDisplay(){return this.spec.gitRepo?"git":this.spec.url?this.isOciType?"oci":"http":"?"}get nameDisplay(){const e=this.metadata?.name,t=`catalog.repo.name."${e}"`;return this.$rootGetters["i18n/withFallback"](t,null,e)}get urlDisplay(){return this.status?.url||this.spec.gitRepo||this.spec.url}get branchDisplay(){return this.spec?.gitBranch||"(default)"}get details(){return[{label:"Type",content:this.typeDisplay},{label:"Downloaded",content:this.status.downloadTime,formatter:"LiveDate",formatterOpts:{addSuffix:!0}}]}get stateObj(){return this.metadata?.state?{...this.metadata.state,transitioning:!(this.metadata.generation>this.status?.observedGeneration)&&this.metadata.state.transitioning}:void 0}get stateDisplay(){return this._isClusterRepoDisabled?this.t("generic.disabled"):(0,s.ch)(this.state)}get stateBackground(){return this._isClusterRepoDisabled?"badge-disabled":(0,s.uU)(this.state,this.stateObj?.error,this.stateObj?.transitioning).replace("text-","bg-")}waitForOperation(e,t,n=2e3){return this.waitForTestFn((()=>!!this.$getters["schemaFor"](o.W8.OPERATION)&&(!!this.$getters["byId"](o.W8.OPERATION,e)||void this.$dispatch("find",{type:o.W8.OPERATION,id:e}))),"catalog operation fetch",t,n)}}},67784:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(68851),i=n(92043),a=n(25184);class o extends a.A{get _availableActions(){const e=super._availableActions,t=(0,r.jq)(e,"altAction"," remove");let n=e.length-1;t&&(n=e.indexOf(t));const i={action:"openLogs",enabled:!0,icon:"icon icon-fw icon-chevron-right",label:this.t("action.openLogs"),total:1};return(0,r.PT)(e,n+1,i),(0,r.PT)(e,n+2,{divider:!0}),e}openLogs(){this.$dispatch("wm/open",{id:`${this.id}-logs`,label:`${(0,i.TF)(this.status.action)} ${this.status.namespace}:${this.status?.releaseName||"chart"}`,icon:"file",component:"ContainerLogs",attrs:{pod:this,url:this.links.logs}},{root:!0})}}},71029:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(48723);class i extends r["default"]{}},97960:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(25184);const i=Object.freeze({CACHED:"cached",DISABLED:"disabled",PENDING:"pending"});class a extends r.A{get name(){return this.spec?.plugin?.name}get description(){return this.spec?.plugin?.description}get version(){return this.spec?.plugin?.version}get isInitialized(){return this.status?.cacheState!==i.PENDING}get pluginMetadata(){return this.spec?.plugin?.metadata||{}}get isDeveloper(){return"true"===this.pluginMetadata?.developer}get plugin(){return this.spec?.plugin||{}}}},92737:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(97707),i=n(14220),a=n(10213),o=n(25184);class s extends o.A{queryParams(e,t){let n;const a=this.versions,o=this.$rootGetters["currentCluster"],s=o?.workerOSs,l=(0,r.bh)(this,s);n=l.length?l[0].version:a[0].version;const c={[i.Eo]:this.repoType,[i.NO]:this.repoName,[i.RX]:this.chartName,[i.xv]:n};return e&&(c[e]=i.Qp),t&&(c[i.dV]=i.Qp),c}goToInstall(e,t,n){const r=this.queryParams(e,n),i=this.$rootGetters["currentCluster"];this.currentRouter().push({name:"c-cluster-apps-charts-install",params:{cluster:t||i?.id||a.w},query:r})}}},91380:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(14220),i=n(76978),a=n(25184);class o extends a.A{showMasthead(e){return e===r.nW}applyDefaults(){this.charts||(0,i.hZ)(this,"charts",[{}])}}},4451:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(76978),i=n(25184);class a extends i.A{applyDefaults(){this.charts||(0,r.hZ)(this,"charts",[{}])}}},90960:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f},fetchSpecsScheduledScanConfig:function(){return h},hasSpecsScheduledScanConfig:function(){return p}});var r=n(10844),i=n(35664),a=n(68851),o=n(6198),s=n(76978),l=n(74302),c=n(23464),u=n.n(c),d=n(25184);const h=async e=>(await e.fetchResourceFields(),p(e)),p=e=>{const t=(0,s.Jt)(e,"resourceFields.spec.type"),n=e.schemaDefinitions?.[t];return!!n&&!!(0,s.Jt)(n,"resourceFields.scheduledScanConfig")};class f extends d.A{get _availableActions(){let e=super._availableActions;const t=["cloneYaml","goToEditYaml","download"];e=e.filter((e=>{if(!t.includes(e.action))return e}));const n=this.$rootGetters["i18n/t"],r={action:"downloadLatestReport",enabled:this.hasReport,icon:"icon icon-fw icon-download",label:n("cis.downloadReport"),total:1},i={action:"downloadAllReports",enabled:this.hasReport,icon:"icon icon-fw icon-download",label:n("cis.downloadAllReports"),total:1};return this.hasReports&&(e.unshift({divider:!0}),this.spec?.scheduledScanConfig?.cronSchedule&&(e.unshift(i),r.label=n("cis.downloadLatestReport")),e.unshift(r)),e}canBeScheduled(){return p(this.$getters["schemaFor"](this.type))}get isScheduled(){return!!(0,s.Jt)(this,"spec.scheduledScanConfig.cronSchedule")}get canUpdate(){return this.hasLink("update")&&this.isScheduled}get hasReports(){const{relationships:e=[]}=this.metadata,t=(0,a.jq)(e,"toType",i._n.REPORT);return!!t}async getReports(){const e=await this.findOwned(),t=e.filter((e=>e.type===i._n.REPORT))||[];return(0,l.Ul)(t,"metadata.creationTimestamp",!0)}async downloadLatestReport(){const e=await this.getReports()||[],t=(0,l.Ul)(e,"metadata.creationTimestamp",!0)[0],r=await n.e(829).then(n.t.bind(n,41880,23));try{const e=(t.aggregatedTests||[]).map((e=>(delete e.actual_value_per_node,e))),n=r.unparse(e);(0,o.PE)(`${m(t)}.csv`,n,"application/csv")}catch(i){this.$dispatch("growl/fromError",{title:"Error downloading file",err:i},{root:!0})}}async downloadAllReports(){const e={},t=await this.getReports()||[],r=await n.e(829).then(n.t.bind(n,41880,23));t.forEach((t=>{try{const n=(t.aggregatedTests||[]).map((e=>(delete e.actual_value_per_node,e))),i=r.unparse(n);e[`${m(t)}.csv`]=i}catch(n){this.$dispatch("growl/fromError",{title:"Error downloading file",err:n},{root:!0})}})),(0,s.Im)(e)||(0,o.jl)(e).then((e=>{(0,o.PE)(`${this.id}-reports`,e,"application/zip")}))}get scanProfileLink(){return this.status?.lastRunScanProfileName?{name:"c-cluster-product-resource-id",params:{resource:i._n.CLUSTER_SCAN_PROFILE,product:r.o_,id:this.status?.lastRunScanProfileName}}:{}}}const m=e=>{const{creationTimestamp:t}=e.metadata,n=u()(t).format("YYYY-MM-DD-HHmmss"),r=e.id.replace(/^scan-report-/,"");return`${r}--${n}`}},20173:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(35664),i=n(25184);class a extends i.A{warnDeletionMessage(e=[]){return this.$rootGetters["i18n/t"]("cis.deleteBenchmarkWarning",{count:e.length})}get isDefault(){const{relationships:e=[]}=this.metadata;return!!e&&e.filter((e=>e.fromType===r.W8.APP)).length>0}}},29875:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(25184),i=n(10844),a=n(35664);class o extends r.A{warnDeletionMessage(e=[]){return this.$rootGetters["i18n/t"]("cis.deleteProfileWarning",{count:e.length})}get numberTestsSkipped(){const{skipTests:e=[]}=this.spec;return e.length}get benchmarkVersionLink(){return this.spec?.benchmarkVersion?{name:"c-cluster-product-resource-id",params:{resource:a._n.BENCHMARK,product:i.o_,id:this.spec?.benchmarkVersion}}:{}}}},24574:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(74302),i=n(25184);class a extends i.A{get aggregatedTests(){const e=this.parsedReport,t=e?.results,n=t?t.reduce(((e,t)=>(t.checks&&e.push(...t.checks),e)),[]):null,i=e=>(e||"").split(".").map((e=>+e+1e3)).join("."),a=e=>{const t={other:7,notApplicable:6,skip:5,pass:4,warn:3,mixed:2,fail:1};return`${t[e]||t["other"]} ${e}`},o=n.slice().sort(((e,t)=>{const n=(0,r.UD)(a(e.state),a(t.state)),o=(0,r.UD)(i(e.id),i(t.id));return n||o}));return o}get nodes(){return this.parsedReport?this.parsedReport.nodes:{}}get parsedReport(){try{const e=this.spec?.reportJSON,t=JSON.parse(e);return t}catch(e){}return null}}},45231:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return b}});var r=n(2841);n(68851),n(4364);function i(e){return e.toLowerCase().replace(/[^a-z0-9]/gi,"")}["username","password","accesskey","secretkey","accesskeyid","secretkeyid","accesskeysecret","token","apikey","secret","clientid","clientsecret","subscriptionid","tenantid"].map((e=>i(e))),["location","region"].map((e=>i(e)));const a=["username","accesskey","accesskeyid","clientid"].map((e=>i(e))),o=["token","apikey","secret"].map((e=>i(e))),s=[].map((e=>i(e)));var l=n(76978),c=n(35664),u=n(92043),d=n(89865),h=n(91462),p=n(23464),f=n.n(p),m=n(4364);const g="harvester",v={[g]:{renew:({cloudCredential:e,$ctx:t})=>v[g].renewBulk({cloudCredentials:[e],$ctx:t}),renewBulk:async({cloudCredentials:e,$ctx:t})=>{await Promise.all(e.map((async e=>{try{if(!e.harvestercredentialConfig?.clusterId)throw new Error("credential has no matching harvester cluster");const n=t.rootGetters["management/byId"](c.Mc.CLUSTER,e.harvestercredentialConfig.clusterId);if(!n)throw new Error("cannot find harvester cluster");const r=await n.generateKubeConfig();e.setData("kubeconfigContent",r),await e.save()}catch(n){m.error(`Unable to refresh harvester cloud credential '${e.id}'`,n)}})))}}};class b extends d.A{get _availableActions(){const e=super._availableActions;return e.splice(0,0,{divider:!0}),e.splice(0,0,{action:"renew",enabled:this.canRenew,bulkable:this.canBulkRenew,bulkAction:"renewBulk",icon:"icon icon-fw icon-refresh",label:this.t("manager.cloudCredentials.renew")}),e}get hasSensitiveData(){return!0}get canCustomEdit(){return!0}get _detailLocation(){return{name:"c-cluster-manager-cloudCredential-id",params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],id:this.id}}}get parentLocationOverride(){return{name:"c-cluster-manager-cloudCredential",params:{cluster:this.$rootGetters["clusterId"]}}}get secretName(){return this.id.replace(":","/")}get secret(){return this.$rootGetters["management/byId"](c.bB,this.secretName)}async getSecret(){await this.$dispatch("management/find",{type:c.bB,id:this.secretName},{root:!0})}get configKey(){return Object.keys(this).find((e=>e.endsWith("credentialConfig")))}get provider(){const e=this.annotations?.[r.qt.CREDENTIAL_DRIVER];if(e)return e;const t=this.configKey;if(t){const e=this.$rootGetters["plugins/credentialDriverFor"](t.replace(/credentialConfig$/,""));return e}return null}setProvider(e){this.setAnnotation(r.qt.CREDENTIAL_DRIVER,e),Object.keys(this).forEach((t=>{t=t.toLowerCase(),t.endsWith("config")&&t!==`${e}config`&&(0,l.hZ)(this,t,null)})),this[`${e}credentialConfig`]||(0,l.hZ)(this,`${e}credentialConfig`,{})}get decodedData(){const e=this.configKey;return e?this[e]:{}}setData(e,t){const n=e&&"object"===typeof e;let r;this[this.configKey]&&!n||(0,l.hZ)(this,this.configKey,{}),r=n?e:{[e]:t};for(const i in r)(0,l.hZ)(this,`"${this.configKey}"."${i}"`,r[i])}get providerDisplay(){const e=(this.provider||"").toLowerCase();return this.$rootGetters["i18n/withFallback"](`cluster.provider."${e}"`,null,e)}get publicData(){let{publicKey:e,publicMode:t}=this.$rootGetters["plugins/credentialOptions"](this.provider);const n={full:a,prefix:o,suffix:s};if(!e)for(const a in this.decodedData||{}){if(e)break;if(!(0,l.Im)(this.decodedData[a]))for(const r in n)if(n[r].includes(i(a))){e=a,t=r;break}}if(!e)return null;let r=this.decodedData[e];if(r||(r=this.secret?.decodedData?.[`${this.provider}credentialConfig-${e}`]),!r)return null;const c=Math.min(8,Math.floor(r.length/2));return"prefix"===t?`${(0,u.ZD)(r.substr(0,c))}&hellip;`:"suffix"===t?`&hellip;${(0,u.ZD)(r.substr(-1*c))}`:(0,u.ZD)(r)}get doneRoute(){return"c-cluster-manager-secret"}get canRenew(){return!!v[this.provider]?.renew&&void 0!==this.expires&&this.canUpdate}get canBulkRenew(){return!!v[this.provider]?.renewBulk}get expiresForSort(){return void 0!==this.expires?this.expires:Number.MAX_SAFE_INTEGER}get expires(){const e=this.annotations[r.rW.EXPIRATION];return"string"===typeof e?parseInt(e):"number"===typeof e?e:void 0}get expireData(){if("number"!==typeof this.expiresIn)return null;const e=6048e5;return 0===this.expiresIn?{expired:!0,expiring:!1}:this.expiresIn<e?{expired:!1,expiring:!0}:null}get expiresString(){if(void 0===this.expires)return"";if(this.expireData.expired)return this.t("manager.cloudCredentials.expired");const e=(0,u.ZD)(this.$rootGetters["prefs/get"](h.DX)),t=(0,u.ZD)(this.$rootGetters["prefs/get"](h.G$));return f()(this.expires).format(`${e} ${t}`)}get expiresIn(){if(void 0===this.expires)return null;const e=this.expires,t=Date.now(),n=e-t;return n<0?0:n}renew(){const e=v[this.provider]?.renew;return e||m.error("No fn renew function for ",this.provider),e({cloudCredential:this,$ctx:this.$ctx})}async renewBulk(e=[]){const t=v[this.provider]?.renewBulk;return t||m.error("No fn renew bulk function for ",this.provider),t({cloudCredentials:e,$ctx:this.$ctx})}}},16787:function(e,t,n){"use strict";n.r(t),n.d(t,{ANNOTATIONS_CONTAINS_PROTECTED:function(){return o},LABEL_CONTAINS_PROTECTED:function(){return a},default:function(){return s}});var r=n(89865),i=n(35664);const a=["io.cattle.lifecycle","kubernetes.io","cattle.io","k3s.io"],o=["coreos.com","cattle.io","k3s.io","kubernetes.io","k3s.io","rancher.io"];class s extends r.A{get systemLabels(){return Object.keys(this.labels||{}).filter((e=>a.find((t=>e.includes(t)))))}get systemAnnotations(){return Object.keys(this.annotations||{}).filter((e=>o.find((t=>e.includes(t)))))}get hasSystemLabels(){return!!(this.systemLabels||[]).length}get hasSystemAnnotations(){return!!(this.systemAnnotations||[]).length}waitForProvisioning(e=6e4,t){return this.waitForTestFn((()=>{const e=this.annotations["objectset.rio.cattle.io/owner-namespace"]||"fleet-default",t=`${e}/${this.id}`;return t&&!!this.$rootGetters["management/byId"](i.qt.RANCHER_CLUSTER,t)}),this.$rootGetters["i18n/t"]("cluster.managementTimeout"),e,t)}}},61843:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p},notOnlyOfRole:function(){return h}});var r=n(35664),i=n(2841),a=n(27278),o=n(44458),s=n(92043),l=n(68851),c=n(76978),u=n(6198),d=n(25184);function h(e,t){const n={};if(e.isControlPlane&&(n.isControlPlane=!1),e.isEtcd&&(n.isEtcd=!1),0===Object.keys(n).length)return!0;for(const r of t)if(Object.keys(n).forEach((e=>{r[e]&&(n[e]?delete n[e]:n[e]=!0)})),0===Object.keys(n).length)return!0;return!1}class p extends d.A{get _availableActions(){const e=super._availableActions,t={action:"openSsh",enabled:!!this.links.shell&&this.isRunning,icon:"icon icon-fw icon-chevron-right",label:"SSH Shell"},n={action:"downloadKeys",enabled:!!this.links.sshkeys,icon:"icon icon-fw icon-download",label:this.t("node.actions.downloadSSHKey")},r={action:"toggleForceRemoveModal",altAction:"forceMachineRemove",enabled:!!this.isRemoveForceable,label:this.t("node.actions.forceDelete"),icon:"icon icon-trash"},i={action:"toggleScaleDownModal",bulkAction:"toggleScaleDownModal",enabled:!!this.canScaleDown,icon:"icon icon-minus icon-fw",label:this.t("node.actions.scaleDown"),bulkable:!0};return(0,l.PT)(e,0,{divider:!0}),(0,l.PT)(e,0,n),(0,l.PT)(e,0,t),(0,l.PT)(e,0,i),(0,l.PT)(e,0,r),e}get canClone(){return!1}openSsh(e){const t=e||this.nameDisplay;this.$dispatch("wm/open",{id:`${this.id}-ssh`,label:t,icon:"terminal",component:"MachineSsh",attrs:{machine:this,pod:{}}},{root:!0})}downloadKeys(){(0,u.Is)(this.links.sshkeys)}toggleForceRemoveModal(e=this){this.$dispatch("promptModal",{componentProps:{machine:e},component:"ForceMachineRemoveDialog"})}async forceMachineRemove(){const e=await this.machineRef();e.setAnnotation(i.qt.FORCE_MACHINE_REMOVE,"true"),await e.save()}toggleScaleDownModal(e=this){this.$dispatch("promptModal",{resources:e,component:"ScaleMachineDownDialog",modalWidth:"450px"})}async machineRef(){const e=this.spec.infrastructureRef,t=`${e.namespace}/${e.name}`,n=`rke-machine.cattle.io.${e.kind.toLowerCase()}`;return await this.$dispatch("find",{type:n,id:t})}get cluster(){if(!this.spec.clusterName)return null;const e=`${this.metadata.namespace}/${this.spec.clusterName}`,t=this.$rootGetters["management/byId"](r.qt.RANCHER_CLUSTER,e);return t}get poolName(){return this.metadata?.labels?.[i.qt.DEPLOYMENT_NAME]||""}get poolId(){const e=`${this.metadata.namespace}/${this.poolName}`;return e}get pool(){return this.$rootGetters["management/byId"](r.qt.MACHINE_DEPLOYMENT,this.poolId)}get operatingSystem(){return this.metadata?.labels["cattle.io/os"]||"linux"}get kubeNodeDetailLocation(){const e=this.status?.nodeRef?.name,t=this.cluster?.status?.clusterName;return e&&t?{name:"c-cluster-product-resource-id",params:{cluster:this.cluster.status.clusterName,product:a.o,resource:r.NW,id:e}}:e}get groupByLabel(){const e=this.cluster?.nameDisplay||this.spec.clusterName;return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.cluster",{name:(0,s.ZD)(e)})}get labels(){return this.metadata?.labels||{}}get isWorker(){return"true"===`${this.labels[i.Ub.WORKER]}`}get isControlPlane(){return"true"===`${this.labels[i.Ub.CONTROL_PLANE]}`}get isEtcd(){return"true"===`${this.labels[i.Ub.ETCD]}`}get isRemoveForceable(){const e=(0,c.Jt)(this,"status.conditions"),t=((0,l.jq)(e,"type","InfrastructureReady")||{}).reason;return"DeleteError"===t||null}get canScaleDown(){return!(!this.canUpdate||!this.pool?.canUpdate)&&h(this,this.cluster?.machines)}get roles(){const{isControlPlane:e,isWorker:t,isEtcd:n}=this;return(0,o.listNodeRoles)(e,t,n,this.t("generic.all"))}get isRunning(){return"Running"===this.status?.phase}get internalIp(){const e=this.status?.addresses?.find((({type:e})=>e===r.FV.INTERNAL_IP))?.address;return e||this.t("generic.none")}get externalIp(){const e=this.status?.addresses?.find((({type:e})=>e===r.FV.EXTERNAL_IP))?.address;return e||this.t("generic.none")}}},22456:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var r=n(35664),i=n(92043),a=n(74302),o=n(25184),s=n(99726),l=n(79401),c=n(2841),u=n(61843);const d={MACHINE_INV_SELECTOR_TEMPLATES:"MachineInventorySelectorTemplate"},h={MACHINE_TEMPLATE:"HarvesterMachineTemplate"};class p extends o.A{get cluster(){if(!this.spec.clusterName)return null;const e=`${this.metadata.namespace}/${this.spec.clusterName}`,t=this.$rootGetters["management/byId"](r.qt.RANCHER_CLUSTER,e);return t}get groupByLabel(){const e=this.cluster?.nameDisplay||this.spec.clusterName;return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.cluster",{name:(0,i.ZD)(e)})}get groupByPoolLabel(){return`${this.$rootGetters["i18n/t"]("resourceTable.groupLabel.machinePool",{name:(0,i.ZD)(this.nameDisplay)})}`}get groupByPoolShortLabel(){return`${this.$rootGetters["i18n/t"]("resourceTable.groupLabel.machinePool",{name:(0,i.ZD)(this.nameDisplay)})}`}get infrastructureRefKind(){return this.spec?.template?.spec?.infrastructureRef?.kind}get templateType(){return this.spec.template.spec.infrastructureRef.kind?`rke-machine.cattle.io.${this.spec.template.spec.infrastructureRef.kind.toLowerCase()}`:null}get template(){const e=this.spec.template.spec.infrastructureRef,t=`${e.namespace}/${e.name}`,n=this.$rootGetters["management/byId"](this.templateType,t);return n}get providerName(){return this.template?.nameDisplay}get providerDisplay(){const e=(this.template?.provider||"").toLowerCase();return this.$rootGetters["i18n/withFallback"](`cluster.provider."${e}"`,null,"generic.unknown",!0)}get providerLocation(){return this.template?.providerLocation||this.t("node.list.poolDescription.noLocation")}get providerSize(){return this.template?.providerSize||this.t("node.list.poolDescription.noSize")}get providerSummary(){if(this.template)switch(this.infrastructureRefKind){case h.MACHINE_TEMPLATE:return null;default:return`${this.providerDisplay} ${this.providerLocation} / ${this.providerSize} (${this.providerName})`}return null}get desired(){return this.spec?.replicas||0}get pending(){return Math.max(0,this.desired-(this.status?.replicas||0))}get outdated(){return Math.max(0,(this.status?.replicas||0)-(this.status?.updatedReplicas||0))}get ready(){return Math.max(0,(this.status?.replicas||0)-(this.status?.unavailableReplicas||0))}get unavailable(){return this.status?.unavailableReplicas||0}get isControlPlane(){return"true"===`${this.spec?.template?.metadata?.labels?.[c.Ub.CONTROL_PLANE]}`}get isEtcd(){return"true"===`${this.spec?.template?.metadata?.labels?.[c.Ub.ETCD]}`}get inClusterSpec(){const e=this.template?.metadata?.annotations["rke.cattle.io/cloned-from-name"],t=this.cluster.spec.rkeConfig.machinePools;return t.find((t=>t.machineConfigRef.name===e))}scalePool(e,t=!0,n=0){if(!this.inClusterSpec)return;const i=this.cluster.toJSON();if(this.inClusterSpec.quantity+=e,!t)return;const a=this.cluster,o=this.$rootGetters["management/byId"](r.qt.RANCHER_CLUSTER,this.cluster.id);this.scaleTimer&&clearTimeout(this.scaleTimer),this.scaleTimer=setTimeout((()=>{this.cluster.save().catch((async t=>{let r=(0,s.rz)(t);if(409===t.status&&n<2){const t=await(0,l.Rq)(i,a,o,this.$rootGetters,{dispatch:this.$dispatch},"management");if(!1===t)return this.scalePool(e,!0,n+1);r=t}this.$dispatch("growl/fromError",{title:"Error scaling pool",err:r},{root:!0})}))}),1e3)}canScaleDownPool(){return!(!this.canUpdate||0===this.inClusterSpec?.quantity||this.infrastructureRefKind===d.MACHINE_INV_SELECTOR_TEMPLATES)&&(!this.isEtcd&&!this.isControlPlane||(0,u.notOnlyOfRole)(this,this.cluster.machines))}canScaleUpPool(){return this.infrastructureRefKind!==d.MACHINE_INV_SELECTOR_TEMPLATES}get showScalePool(){return this.canScaleDownPool()||this.canScaleUpPool()}get stateParts(){const e=[{label:"Pending",color:"bg-info",textColor:"text-info",value:this.pending,sort:1},{label:"Outdated",color:"bg-warning",textColor:"text-warning",value:this.outdated,sort:2},{label:"Unavailable",color:"bg-error",textColor:"text-error",value:this.unavailable,sort:3},{label:"Ready",color:"bg-success",textColor:"text-success",value:this.ready,sort:4}].filter((e=>e.value>0));return(0,a.Ul)(e,"sort:desc")}}},5555:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(35664),i=n(92043),a=n(25184);class o extends a.A{get cluster(){if(!this.spec.clusterName)return null;const e=`${this.metadata.namespace}/${this.spec.clusterName}`,t=this.$rootGetters["management/byId"](r.qt.RANCHER_CLUSTER,e);return t}get groupByLabel(){const e=this.cluster?.nameDisplay||this.spec.clusterName;return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.cluster",{name:(0,i.ZD)(e)})}}},44458:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d},listNodeRoles:function(){return p}});var r=n(92043),i=n(2841),a=n(35664),o=n(95799),s=n(24576),l=n.n(s),c=n(25184),u=n(14220);class d extends c.A{get _availableActions(){const e=this.norman?.actions||{},t={action:"cordon",enabled:!!e.cordon,icon:"icon icon-fw icon-pause",label:"Cordon",total:1,bulkable:!0},n={action:"uncordon",enabled:!!e.uncordon,icon:"icon icon-fw icon-play",label:"Uncordon",total:1,bulkable:!0},r={action:"drain",enabled:!!e.drain,icon:"icon icon-fw icon-dot-open",label:this.t("drainNode.action"),bulkable:!0,bulkAction:"drain"},i={action:"stopDrain",enabled:!!e.stopDrain,icon:"icon icon-fw icon-x",label:this.t("drainNode.actionStop"),bulkable:!0},a={action:"openSsh",enabled:!!this.provisionedMachine?.links?.shell,icon:"icon icon-fw icon-chevron-right",label:"SSH Shell"},o={action:"downloadKeys",enabled:!!this.provisionedMachine?.links?.sshkeys,icon:"icon icon-fw icon-download",label:this.t("node.actions.downloadSSHKey")};return[a,o,{divider:!0},t,n,r,i,{divider:!0},...super._availableActions]}openSsh(){this.provisionedMachine.openSsh(this.nameDisplay)}downloadKeys(){this.provisionedMachine.downloadKeys()}get showDetailStateBadge(){return!0}get name(){return this.metadata.name}get addresses(){return this.status?.addresses||[]}get internalIp(){return l()(this.addresses,(e=>"InternalIP"===e.type))?.address}get externalIp(){const e=this.metadata.annotations[i.Z_.EXTERNAL_IP],t=l()(this.addresses,(e=>"ExternalIP"===e.type))?.address;return t||e}get labels(){return this.metadata?.labels||{}}get customLabelCount(){return this.customLabels.length}get customLabels(){const e=[];if(this.labels)for(const t in this.labels){const[n]=t.split("/");i.uf.includes(n)||e.push(`${t}=${this.labels[t]}`)}return e}get isWorker(){return this.managementNode?this.managementNode.isWorker:"true"===`${this.labels[i.vi.WORKER]}`}get isControlPlane(){return this.managementNode?this.managementNode.isControlPlane:"true"===`${this.labels[i.vi.CONTROL_PLANE]}`||"true"===`${this.labels[i.vi.CONTROL_PLANE_OLD]}`}get isEtcd(){return this.managementNode?this.managementNode.isEtcd:"true"===`${this.labels[i.vi.ETCD]}`}get hasARole(){const e=Object.values(i.vi);return Object.keys(this.labels).some((t=>{const n=e.includes(t),r="true"===`${this.labels[t]}`;return n&&r}))}get roles(){const{isControlPlane:e,isWorker:t,isEtcd:n}=this;return p(e,t,n,this.t("generic.all"))}get version(){return this.status.nodeInfo.kubeletVersion}get cpuUsage(){return this.isFromNorman&&"eks"===this.provider?(0,o.ao)(this.podRequests.cpu||"0"):(0,o.ao)(this.$rootGetters["cluster/byId"](a.$v.NODE,this.id)?.usage?.cpu||"0")}get cpuCapacity(){return(0,o.ao)(this.status.allocatable?.cpu)}get cpuUsagePercentage(){return(100*this.cpuUsage/this.cpuCapacity).toString()}get ramUsage(){return this.isFromNorman&&"eks"===this.provider?(0,o.ao)(this.podRequests.memory||"0"):(0,o.ao)(this.$rootGetters["cluster/byId"](a.$v.NODE,this.id)?.usage?.memory||"0")}get ramCapacity(){return(0,o.ao)(this.status.capacity?.memory)}get ramUsagePercentage(){return(100*this.ramUsage/this.ramCapacity).toString()}get ramReserved(){return(0,o.ao)(this.status?.allocatable?.memory)}get ramReservedPercentage(){return(100*this.ramUsage/this.ramReserved).toString()}get podUsage(){return h(this.status.allocatable?.pods,this.status.capacity?.pods)}get podConsumedUsage(){return(this.podConsumed/this.podCapacity*100).toString()}get podCapacity(){return Number.parseInt(this.status.capacity?.pods)}get podConsumed(){const e=this.pods.filter((e=>"running"===e.state));return e.length||0}get podRequests(){return JSON.parse(this.metadata.annotations["management.cattle.io/pod-requests"]||"{}")}get isPidPressureOk(){return this.isCondition("PIDPressure","False")}get isDiskPressureOk(){return this.isCondition("DiskPressure","False")}get isMemoryPressureOk(){return this.isCondition("MemoryPressure","False")}get isKubeletOk(){return this.isCondition("Ready")}get isCordoned(){return!!this.spec.unschedulable}get drainedState(){const e=this.managementNode?.status.conditions.find((e=>"Drained"===e.type));if(e){if("True"===e.status)return"drained";if(e.transitioning)return"draining"}return null}get containerRuntimeVersion(){return this.status.nodeInfo.containerRuntimeVersion.replace("docker://","")}get containerRuntimeIcon(){return this.status.nodeInfo.containerRuntimeVersion.includes("docker")?"icon-docker":""}async cordon(e){const t=Array.isArray(e)?e:[this];await Promise.all(t.map((e=>e.norman?.doAction("cordon"))))}async uncordon(e){const t=Array.isArray(e)?e:[this];await Promise.all(t.map((e=>e.norman?.doAction("uncordon"))))}get clusterId(){const e=this.links.self.split("/");return e.length>6&&"k8s"===e[e.length-6]&&"clusters"===e[e.length-5]?e[e.length-4]:u.G8}get normanNodeId(){const e=(this.$rootGetters["management/all"](a.Mc.NODE)||[]).find((e=>e.id.startsWith(this.clusterId)&&e.status.nodeName===this.name));return e?e.id.replace("/",":"):null}get norman(){return this.$rootGetters["rancher/byId"](a.k$.NODE,this.normanNodeId)}get managementNode(){return this.$rootGetters["management/all"](a.Mc.NODE).find((e=>e.id.startsWith(this.clusterId)&&e.status.nodeName===this.id))}drain(e){this.$dispatch("promptModal",{component:"DrainNode",componentProps:{kubeNodes:e||[this],normanNodeId:this.normanNodeId}})}async stopDrain(e){const t=Array.isArray(e)?e:[this];await Promise.all(t.map((e=>e.norman?.doAction("stopDrain"))))}get state(){return this.drainedState?this.drainedState:this.isCordoned?"cordoned":this.metadata?.state?.name||"unknown"}get details(){const e=[{label:this.t("node.detail.detailTop.version"),content:this.version},{label:this.t("node.detail.detailTop.os"),content:this.status.nodeInfo.osImage},{label:this.t("node.detail.detailTop.containerRuntime"),formatter:"IconText",formatterOpts:{iconClass:this.containerRuntimeIcon},content:this.containerRuntimeVersion}];return this.internalIp&&e.unshift({label:this.t("node.detail.detailTop.internalIP"),formatter:"CopyToClipboard",content:this.internalIp}),this.externalIp&&e.unshift({label:this.t("node.detail.detailTop.externalIP"),formatter:"CopyToClipboard",content:this.externalIp}),e}get pods(){const e=this.$rootGetters["cluster/all"](a.Sm);return e.filter((e=>e.spec.nodeName===this.name))}get confirmRemove(){return!0}get canClone(){return!1}get canDelete(){const e=["aks","azureaks","azurekubernetesservice","eks","amazoneks","gke","googlegke"];return!e.includes(this.provider)}get provisionedMachine(){const e=this.metadata?.annotations?.[i.qt.CLUSTER_NAMESPACE],t=this.metadata?.annotations?.[i.qt.MACHINE_NAME];return e&&t?this.$rootGetters["management/byId"](a.qt.MACHINE,`${e}/${t}`):null}get isFromNorman(){return"norman"===(this.$rootGetters["currentCluster"].metadata.labels||{})["cattle.io/creator"]}get provider(){return this.$rootGetters["currentCluster"].provisioner.toLowerCase()}get displayTaintsAndLabels(){return!!this.spec.taints?.length||!!this.customLabelCount}}function h(e,t){const n=Number.parseFloat(t),i=Number.parseFloat(e),a=(n-i)/n*100;return(0,r.l9)(a)}function p(e,t,n,r){const i=[];return e&&i.push("Control Plane"),t&&i.push("Worker"),n&&i.push("Etcd"),3===i.length||0===i.length?r:i.join(", ")}},62973:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(45858);class i extends r["default"]{}},40408:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(35664),i=n(89865);class a extends i.A{get principalId(){return this.userPrincipalId||this.groupPrincipalId}get roleDisplay(){return this.roleTemplate.nameDisplay}get roleDescription(){return this.roleTemplate.description}get roleTemplate(){return this.$rootGetters["management/byId"](r.Mc.ROLE_TEMPLATE,this.roleTemplateId)}get clusterroletemplatebinding(){return this.$rootGetters["management/byId"](r.Mc.CLUSTER_ROLE_TEMPLATE_BINDING,this.id?.replace(":","/"))}get steve(){return this.$dispatch("management/find",{type:r.Mc.CLUSTER_ROLE_TEMPLATE_BINDING,id:this.id?.replace(":","/")},{root:!0})}}},79925:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(25184);class i extends r.A{get keysDisplay(){const e=[...Object.keys(this.data||[]),...Object.keys(this.binaryData||[])];return e.length?e.join(", "):"(none)"}}},40172:function(e,t,n){"use strict";n.r(t),n.d(t,{ENFORCEMENT_ACTION_VALUES:function(){return s},default:function(){return l}});var r=n(20246),i=n.n(r),a=n(25184),o=n(6198);const s={DENY:"deny",DRYRUN:"dryrun"};class l extends a.A{get _availableActions(){const e=super._availableActions,t=this.$rootGetters["i18n/t"],n={action:"downloadViolations",icon:"icon icon-fw icon-download",label:t("gatekeeperConstraint.downloadViolations"),total:1};return e.unshift(n),e}async save(){let e,t;this.constraint?(e=await this.findLatestConstraint(),t=e?.metadata?.resourceVersion):e=await this.$dispatch("cluster/create",{type:`constraints.gatekeeper.sh.${this.kind.toLowerCase()}`},{root:!0}),e.spec=this.spec,e.metadata=this.metadata,t&&(e.metadata.resourceVersion=t),await e.save()}async downloadViolations(){const e=await n.e(829).then(n.t.bind(n,41880,23));try{const t=(this.violations||[]).map((e=>(delete e.resourceLink,delete e.constraintLink,e))),n=e.unparse(t);(0,o.PE)(`violations-${this.name}.csv`,n,"application/csv")}catch(t){this.$dispatch("growl/fromError",{title:"Error downloading file",err:t},{root:!0})}}cleanForNew(){this.$dispatch("cleanForNew",this),this.constraint&&delete this.constraint}saveYaml(e){const t=i().load(e);return Object.assign(this,t),this.save()}async remove(){const e=await this.findLatestConstraint();return e.remove()}findLatestConstraint(){return this.$dispatch("cluster/find",{type:this.constraint.type,id:this.constraint.id,opt:{force:!0}},{root:!0})}get totalViolations(){return this.status?.totalViolations||this.violations.length}get violations(){const e=this.status?.violations||[];return e.map((e=>({...e,resourceLink:{text:e.name,to:{name:"c-cluster-product-resource-id",params:{resource:e.kind.toLowerCase(),id:e.name,product:"explorer"}}},constraintLink:{text:this.nameDisplay,to:this.detailLocation}})))}}},81147:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(2841),i=n(89865),a=n(44660),o=n(56005),s=n.n(o);class l extends i.A{get canViewYaml(){return!1}get driverName(){if(!this.builtIn){const e=this.status?.displayName?.toLowerCase();if(e)return a.KONTAINER_TO_DRIVER[e]||e}return a.KONTAINER_TO_DRIVER[this.id]||this.name||this.id}get nameDisplay(){const e=`cluster.provider.${this.driverName}`,t=s()(this.driverName);return this.$rootGetters["i18n/withFallback"](e,t)}get description(){return this.builtIn||this.builtin?this.$rootGetters["i18n/withFallback"]("tableHeaders.builtIn"):this.url}set description(e){this.annotations&&(this.annotations[r.tC]=e),this._description=e}cleanForSave(e,t){const n=super.cleanForSave(e,t);return t&&(n.active=!0),delete n.metadata,n}}},10501:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(89865),i=n(73883);class a extends r.A{get _availableActions(){const e={action:"promptRestore",enabled:this.state===i.jv.ACTIVE,icon:"icon icon-fw icon-backup-restore",label:"Restore"},t=super._availableActions,n=[e];return t.length&&(n.push({divider:!0}),n.push(...t)),n}promptRestore(){this.$dispatch("promptRestore",[this])}get createdAt(){return this.created}get rke2(){return!1}get nameDisplay(){return this.name}get backupLocation(){return this.backupConfig.s3BackupConfig?this.t("cluster.snapshot.rke1.s3"):this.t("cluster.snapshot.rke1.local")}}},28473:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(3514),i=n.n(r),a=n(92043),o=n(25184);class s extends o.A{get displayInvolvedObject(){const e=this.involvedObject;return i()(e)?"N/A":`${e.kind} ${e.name}`}get displayMessage(){return(0,a.TF)(this.message)}get timestamp(){return this.lastTimestamp||this.metadata?.creationTimestamp}get eventType(){return this._type}get lastSeen(){const e=this.$getters["schemaFor"](this.type),t=this.$rootGetters["type-map/rowValueGetter"];return e&&t?t(e,"Last Seen")(this):null}}},5096:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(92043),i=n(25184),a=n(49148),o=n(68851),s=n(35664),l=n(2841),c=n(38823);class u extends i.A{get lastUpdateTime(){return this.status?.conditions?.[0].lastUpdateTime}get bundleType(){return a.A.memberOfObject(this.spec,"helm")?"helm":""}get repoName(){const e=this.metadata?.labels||{};return e[l.Hs.REPO_NAME]}get targetClusters(){const e=this.$getters["byId"](s.Hs.WORKSPACE,this.metadata.namespace),t=e?.clusters||[],n=e?.clusterGroups||[],r=[];if("fleet-local"===e.id){const e=(0,o.jq)(n,"id","fleet-local/default");return e?e.targetClusters:[]}for(const i of this.spec.targets)if(i.clusterName){const e=(0,o.jq)(t,"metadata.name",i.clusterName);e&&(0,o.PG)(r,e)}else if(i.clusterGroup){const e=(0,o.jq)(n,{"metadata.namespace":this.metadata.namespace,"metadata.name":i.clusterGroup});e&&(0,o.cn)(r,e.targetClusters)}else if(i.clusterGroupSelector){const e=(0,c._R)(i.clusterGroupSelector),t=(0,c.wC)(n,e);for(const n of t)(0,o.cn)(r,n.targetClusters)}else if(i.clusterSelector){const e=(0,c._R)(i.clusterSelector),n=(0,c.wC)(t,e);(0,o.cn)(r,n)}return r}get stateDescription(){const e=this.stateObj?.error||!1,t=this.stateObj?.message;return e?(0,r.TF)(t):""}get stateObj(){const e=this.status?.conditions?.find((e=>{const{error:t,message:n}=e,r=!!t,i=n?.toLowerCase().includes("errapplied")||n?.toLowerCase().includes("error");return r&&i}));return e?(e.name=e.message?.toLowerCase().includes("errapplied")?"errapplied":"error",e):{...this.metadata.state}}get groupByLabel(){const e=this.metadata.namespace;return e?this.$rootGetters["i18n/t"]("resourceTable.groupLabel.workspace",{name:(0,r.ZD)(e)}):this.$rootGetters["i18n/t"]("resourceTable.groupLabel.notInAWorkspace")}get authorId(){return this.metadata?.labels?.[l.Hs.CREATED_BY_USER_ID]}get author(){return this.authorId?this.$rootGetters["management/byId"](s.Mc.USER,this.authorId):null}get createdBy(){const e=this.metadata?.labels?.[l.Hs.CREATED_BY_USER_NAME];return e?{displayName:e,location:this.author?{name:"c-cluster-product-resource-id",params:{cluster:"_",product:"auth",resource:s.Mc.USER,id:this.author.id}}:null}:null}get showCreatedBy(){return!!this.createdBy}}},5904:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(35664),i=n(2841),a=n(91462),o=n(25184),s=n(92043),l=n(68851),c=n(20246),u=n.n(c),d=n(95265);class h extends o.A{get _availableActions(){const e=super._availableActions;return(0,l.PT)(e,0,{action:"pause",label:"Pause",icon:"icon icon-pause",bulkable:!0,enabled:!!this.links.update&&!this.spec?.paused}),(0,l.PT)(e,1,{action:"unpause",label:"Unpause",icon:"icon icon-play",bulkable:!0,enabled:!!this.links.update&&!0===this.spec?.paused}),(0,l.PT)(e,2,{action:"forceUpdate",label:"Force Update",icon:"icon icon-refresh",bulkable:!0,enabled:!!this.links.update}),this.canChangeWorkspace&&(0,l.PT)(e,3,{action:"assignTo",label:"Change workspace",icon:"icon icon-copy",bulkable:!0,bulkAction:"assignToBulk",enabled:!!this.links.update&&!!this.mgmt}),(0,l.PT)(e,4,{divider:!0}),e}pause(){this.spec.paused=!0,this.save()}unpause(){this.spec.paused=!1,this.save()}forceUpdate(){const e=this.spec.redeployAgentGeneration||1;this.spec.redeployAgentGeneration=e+1,this.save()}assignTo(){this.$dispatch("assignTo",[this])}assignToBulk(e){this.$dispatch("assignTo",e)}get canDelete(){return!1}get canChangeWorkspace(){return!this.isLocal&&(!this.isRke2||this.$rootGetters["features/get"](d.N8))}get isLocal(){return this.metadata.name===r.d_||this.metadata?.labels?.[i.Hs.CLUSTER_NAME]===r.d_}get isRke2(){const e=this?.metadata?.labels?.[i.qt.PROVIDER]||this?.status?.provider;return e===a.gM}get nameDisplay(){return this.metadata?.labels?.[i.Hs.CLUSTER_DISPLAY_NAME]||this.metadata?.name||this.id}get name(){return this.metadata?.name||this.metadata?.labels?.[i.Hs.CLUSTER_NAME]}get state(){return!0===this.spec?.paused?"paused":this.metadata?.state?.name||"unknown"}get repoInfo(){const e=this.status?.readyGitRepos||0,t=this.status?.desiredReadyGitRepos||0;return{ready:e,unready:t-e,total:t}}get bundleInfo(){const e={ready:0,total:0},t=this.status?.display?.readyBundles;if(t&&t.includes("/")){const n=t.split("/");if(2===n.length&&parseInt(n[0])>=0&&parseInt(n[1])>=0)return e.ready=parseInt(n[0]),e.total=parseInt(n[1]),e}return e.noValidData=!0,e}get mgmt(){const e=this.$getters["byId"](r.Mc.CLUSTER,this.metadata?.labels?.[i.Hs.CLUSTER_NAME]);return e}get basicNorman(){const e=this.$rootGetters["rancher/byId"](r.k$.CLUSTER,this.metadata?.labels?.[i.Hs.CLUSTER_NAME]);return e}get norman(){return this.basicNorman?this.basicNorman:this.$dispatch("rancher/find",{type:r.k$.CLUSTER,id:this.metadata.labels[i.Hs.CLUSTER_NAME]},{root:!0})}async normanClone(){const e=await this.norman;return this.$dispatch("rancher/clone",{resource:e},{root:!0})}get groupByLabel(){const e=this.metadata.namespace;return e?this.$rootGetters["i18n/t"]("resourceTable.groupLabel.workspace",{name:(0,s.ZD)(e)}):this.$rootGetters["i18n/t"]("resourceTable.groupLabel.notInAWorkspace")}get customLabels(){const e=[];if(this.labels)for(const t in this.labels){const[n]=t.split("/");i.uf.includes(n)||t===i.qt.PROVIDER||e.push(`${t}=${this.labels[t]}`)}return e}async saveYaml(e){await this._saveYaml(e);const t=u().load(e),n=await this.normanClone();n.setLabels(t.metadata.labels),n.setAnnotations(t.metadata.annotations),await n.save()}}},11173:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(92043),i=n(38823),a=n(35664),o=n(76978),s=n(25184);class l extends s.A{applyDefaults(){const e=this.spec||{};e.selector=e.selector||{},e.selector.matchExpressions=e.selector.matchExpressions||[],(0,o.hZ)(this,"spec",e)}get targetClusters(){const e=this.$getters["byId"](a.Hs.WORKSPACE,this.metadata.namespace),t=(0,i.C6)(this.spec?.selector?.matchLabels||{},this.spec?.selector?.matchExpressions||[]);if(!t.length)return e.clusters;const n=(0,i.wC)(e.clusters,t);return n}get groupByLabel(){const e=this.metadata.namespace;return e?this.$rootGetters["i18n/t"]("resourceTable.groupLabel.workspace",{name:(0,r.ZD)(e)}):this.$rootGetters["i18n/t"]("resourceTable.groupLabel.notInAWorkspace")}get clusterInfo(){const e=this.status?.clusterCount||0,t=this.status?.nonReadyClusterCount||0,n=e-t;return{ready:n,unready:t,total:e}}get details(){const e=[{label:"Clusters Ready",content:`${this.clusterInfo.ready} of ${this.clusterInfo.total}`}];return e}}},67424:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(92043),i=n(25184);class a extends i.A{get groupByLabel(){const e=this.metadata.namespace;return e?this.$rootGetters["i18n/t"]("resourceTable.groupLabel.workspace",{name:(0,r.ZD)(e)}):this.$rootGetters["i18n/t"]("resourceTable.groupLabel.notInAWorkspace")}}},65751:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return k}});var r=n(38823),i=n(20246),a=n.n(i),o=n(3514),s=n.n(o),l=n(92043),c=n(35664),u=n(2841),d=n(68851),h=n(76978),p=n(25184),f=n(73883),m=n(27278);function g(e,t){e[t]||(e[t]=0),e[t]++}function v(e){return`${e.kind}/${e.namespace}/${e.name}`}function b(e,t){return!!e&&!!e.find((e=>e.type===t&&"true"===e.status.toLowerCase()))}class y{resourceId(e){return e.namespace?`${e.namespace}/${e.name}`:e.name}resourceType(e){const t=e.kind.toLowerCase();return e.apiVersion&&"v1"!==e.apiVersion?`${e.apiVersion.split("/",2)[0]}.${t}`:t}resourcesFromBundleDeploymentStatus(e){const t=(e?.resources||[]).reduce(((e,t)=>(e[v(t)]=Object.assign({state:f.jv.READY},t),e)),{}),n=[];for(const r of e?.modifiedStatus||[]){const e=r.missing?f.jv.MISSING:r.delete?f.jv.ORPHANED:f.jv.MODIFIED,i=t[v(r)];i?i.state=e:n.push(Object.assign({state:e},r))}for(const r of e?.nonReadyStatus||[]){const e=r.summary?.state||f.jv.UNKNOWN,n=t[v(r)];n&&(n.state=e)}return n.concat(Object.values(t))}resourcesFromBundleStatus(e){const t=(e.resourceKey||[]).reduce(((e,t)=>{const n=v(t);return e[n]||(e[n]={r:t,count:{}}),g(e[n].count,f.jv.READY),e}),{});for(const n of e.summary?.nonReadyResources||[]){for(const e of n.modifiedStatus||[]){const n=v(e);t[n]||(t[n]={r:e,count:{}}),e.missing?g(t[n].count,f.jv.MISSING):e.delete?(t[n].count[f.jv.READY]--,g(t[n].count,f.jv.ORPHANED)):(t[n].count[f.jv.READY]--,g(t[n].count,f.jv.MODIFIED))}for(const e of n.nonReadyStatus||[]){const n=v(e),r=e.summary?.state||f.jv.UNKNOWN;t[n].count[f.jv.READY]--,g(t[n].count,r)}}return Object.values(t).reduce(((e,t)=>{const{r:n,count:r}=t;for(const i in r)for(let t=0;t<r[i];t++)e.push(Object.assign({state:i},n));return e}),[])}clusterIdFromBundleDeploymentLabels(e){const t=e?.[u.Hs.CLUSTER_NAMESPACE],n=e?.[u.Hs.CLUSTER];return`${t}/${n}`}bundleIdFromBundleDeploymentLabels(e){const t=e?.[u.Hs.BUNDLE_NAMESPACE],n=e?.[u.Hs.BUNDLE_NAME];return`${t}/${n}`}bundleDeploymentState(e){return e.status?.appliedDeploymentId!==e.spec.deploymentId?b(e.status?.conditions,"Deployed")?f.jv.WAIT_APPLIED:f.jv.ERR_APPLIED:e.status?.ready?e.spec.deploymentId!==e.spec.stagedDeploymentId?f.jv.OUT_OF_SYNC:e.status?.nonModified?f.jv.READY:f.jv.MODIFIED:f.jv.NOT_READY}}const w=new y;var E=w;function _(e){return!!e.match(/^[a-f0-9]{40,}$/i)}function S(e){if(s()(e))return{total:0,states:{}};const{desiredReady:t,...n}=e,r=Object.entries(n).reduce(((e,[t,n])=>(e[(0,f.hb)(t)]=n,e)),{});return{total:t,states:r}}class k extends p.A{get currentUser(){return this.$rootGetters["auth/v3User"]||{}}applyDefaults(){const e=this.spec||{},t=this.metadata||{};t.namespace=this.$rootGetters["workspace"],e.repo=e.repo||"",e.branch||e.revision||(e.branch="master"),e.paths=e.paths||[],e.clientSecretName=e.clientSecretName||null,e["correctDrift"]={enabled:!1},(0,h.hZ)(this,"spec",e),(0,h.hZ)(this,"metadata",t)}get _availableActions(){const e=super._availableActions;return(0,d.PT)(e,0,{action:"pause",label:this.t("fleet.gitRepo.actions.pause.label"),icon:"icon icon-pause",bulkable:!0,enabled:!!this.links.update&&!this.spec?.paused}),(0,d.PT)(e,1,{action:"unpause",label:this.t("fleet.gitRepo.actions.unpause.label"),icon:"icon icon-play",bulkable:!0,enabled:!!this.links.update&&!0===this.spec?.paused}),(0,d.PT)(e,2,{action:"enablePolling",label:this.t("fleet.gitRepo.actions.enablePolling.label"),icon:"icon icon-endpoints_connected",bulkable:!0,enabled:!!this.links.update&&!!this.spec?.disablePolling}),(0,d.PT)(e,3,{action:"disablePolling",label:this.t("fleet.gitRepo.actions.disablePolling.label"),icon:"icon icon-endpoints_disconnected",bulkable:!0,enabled:!!this.links.update&&!this.spec?.disablePolling}),(0,d.PT)(e,4,{action:"forceUpdate",label:this.t("fleet.gitRepo.actions.forceUpdate.label"),icon:"icon icon-refresh",bulkable:!0,bulkAction:"forceUpdateBulk",enabled:!!this.links.update}),(0,d.PT)(e,5,{divider:!0}),e}pause(){this.spec.paused=!0,this.save()}unpause(){this.spec.paused=!1,this.save()}enablePolling(){this.spec.disablePolling=!1,this.save()}disablePolling(){this.spec.disablePolling=!0,this.save()}goToClone(){this.metadata?.labels?.[u.Hs.CREATED_BY_USER_ID]&&delete this.metadata.labels[u.Hs.CREATED_BY_USER_ID],this.metadata?.labels?.[u.Hs.CREATED_BY_USER_NAME]&&delete this.metadata.labels[u.Hs.CREATED_BY_USER_NAME],super.goToClone()}forceUpdate(e=[this]){this.$dispatch("promptModal",{componentProps:{repositories:e},component:"GitRepoForceUpdateDialog"})}forceUpdateBulk(e){this.$dispatch("promptModal",{componentProps:{repositories:e},component:"GitRepoForceUpdateDialog"})}get state(){return!0===this.spec?.paused?"paused":this.metadata?.state?.name||"unknown"}get targetClusters(){const e=this.$getters["byId"](c.Hs.WORKSPACE,this.metadata.namespace),t=e?.clusters||[],n=e?.clusterGroups||[];if("fleet-local"===e?.id){const e=(0,d.jq)(n,"id","fleet-local/default");return e?e.targetClusters:[]}if(!this.spec.targets)return[];const i=[];for(const a of this.spec.targets)if(a.clusterName){const e=(0,d.jq)(t,"metadata.name",a.clusterName);e&&(0,d.PG)(i,e)}else if(a.clusterGroup){const e=(0,d.jq)(n,{"metadata.namespace":this.metadata.namespace,"metadata.name":a.clusterGroup});e&&(0,d.cn)(i,e.targetClusters)}else if(a.clusterGroupSelector){const e=(0,r._R)(a.clusterGroupSelector),t=(0,r.wC)(n,e);for(const n of t)(0,d.cn)(i,n.targetClusters)}else if(a.clusterSelector){const e=(0,r._R)(a.clusterSelector),n=(0,r.wC)(t,e);(0,d.cn)(i,n)}return i}get github(){const e=(this.spec.repo||"").match(/^https?:\/\/github\.com\/(.*?)(\.git)?\/*$/);return!!e&&e[1]}get repoIcon(){return this.github?"icon icon-github":""}get repoDisplay(){let e=this.spec.repo||"";return e?(e=e.replace(/.git$/,""),e=e.replace(/^https:\/\//,""),e=e.replace(/\/+$/,""),this.github?this.github:e):null}get commitDisplay(){const e=this.spec,t=this.status?.commit?.substr(0,7);return e&&e.repo?e.revision&&_(e.revision)?e.revision.substr(0,7):e.revision?e.revision:e.branch?e.branch+(t?` @ ${t}`:""):t:null}get targetInfo(){let e=null,t=null,n=null,i=null;const o=this.spec.targets||[];if(i=a().dump(o),"[]\n"===i&&(i="# - name:\n# clusterSelector:\n# matchLabels:\n# foo: bar\n# matchExpressions:\n# - key: foo\n# op: In\n# values: [bar, baz]\n# clusterGroup: foo\n# clusterGroupSelector:\n# matchLabels:\n# foo: bar\n# matchExpressions:\n# - key: foo\n# op: In\n# values: [bar, baz]\n"),"fleet-local"===this.metadata.namespace)e="local";else if(o.length){if(1===o.length){const i=o[0];if(Object.keys(i).length>1)e="advanced";else if(i.clusterGroup)n=i.clusterGroup,e||(e="clusterGroup");else if(i.clusterName)e="cluster",t=i.clusterName;else if(i.clusterSelector)if(0===Object.keys(i.clusterSelector).length)e="all";else{const n=(0,r.C6)(i.clusterSelector.matchLabels,i.clusterSelector.matchExpressions);1===n.length&&n[0].key===u.Hs.CLUSTER_NAME&&"In"===n[0].operator&&1===n[0].values.length&&(t=n[0].values[0],e||(e="cluster"))}}}else e="none";return e||(e="advanced"),{mode:e,modeDisplay:this.t(`fleet.gitRepo.targetDisplay."${e}"`),cluster:t,clusterGroup:n,advanced:i}}get groupByLabel(){const e=this.metadata.namespace;return e?this.$rootGetters["i18n/t"]("resourceTable.groupLabel.workspace",{name:(0,l.ZD)(e)}):this.$rootGetters["i18n/t"]("resourceTable.groupLabel.notInAWorkspace")}get bundles(){return this.$getters["matching"](c.Hs.BUNDLE,{[u.Hs.REPO_NAME]:this.name},this.namespace)}get bundleDeployments(){return this.$getters["matching"](c.Hs.BUNDLE_DEPLOYMENT,{[u.Hs.REPO_NAME]:this.name})}get allBundlesStatuses(){return this.bundles.reduce(((e,t)=>{if(s()(t.status?.summary))return e;const{nonReadyResources:n,...r}=t.status?.summary,i=S(r),a=(0,f.aB)(i.states);return e.states[a]||(e.states[a]=0),e.states[a]++,e.total++,e}),{total:0,states:{[f.jv.READY]:0}})}get allResourceStatuses(){return S(this.status?.resourceCounts||{})}statusResourceCountsForCluster(e){return this.targetClusters.some((t=>t.id===e))?this.status?.perClusterResourceCounts[e]||{desiredReady:0}:{}}get resourcesStatuses(){if(s()(this.status?.resources))return[];const e=(this.targetClusters||[]).reduce(((e,t)=>(e[t.id]=t,e)),{}),t=this.status?.resources?.reduce(((t,n)=>{const{perClusterState:r,...i}=n;return Object.entries(r).forEach((([n,r])=>{r.filter((t=>!!e[t])).forEach((e=>{t.push(Object.assign({},i,{clusterId:e,state:n}))}))})),t}),[]);return t.map((t=>{const{namespace:n,name:r,clusterId:i,state:a}=t,o=E.resourceId(t),s=E.resourceType(t),l=e[i],c=(0,f.uU)(a).replace("text-","bg-"),d=(0,f.ch)(a),h=a!==f.jv.MISSING?{name:`c-cluster-product-resource${t.namespace?"-namespace":""}-id`,params:{product:m.o,cluster:l.metadata.labels[u.Hs.CLUSTER_NAME],resource:s,namespace:n,id:r}}:void 0,p=`${i}-${s}-${n}-${r}`;return{key:p,tableKey:p,id:o,type:s,clusterId:i,state:(0,f.hb)(a),clusterName:l.nameDisplay,apiVersion:t.apiVersion,kind:t.kind,name:t.name,namespace:t.namespace,stateBackground:c,stateDisplay:d,stateSort:(0,f.gs)(c,d),detailLocation:h}}))}get clusterInfo(){const e=this.status?.readyClusters||0,t=this.status?.desiredReadyClusters||0;return{ready:e,unready:t-e,total:t}}clusterState(e){const t=this.statusResourceCountsForCluster(e);return(0,f.aB)(t)||f.jv.ACTIVE}get clustersList(){return this.$getters["all"](c.Hs.CLUSTER)}get authorId(){return this.metadata?.labels?.[u.Hs.CREATED_BY_USER_ID]}get author(){return this.authorId?this.$rootGetters["management/byId"](c.Mc.USER,this.authorId):null}get createdBy(){const e=this.metadata?.labels?.[u.Hs.CREATED_BY_USER_NAME];return e?{displayName:e,location:this.author?{name:"c-cluster-product-resource-id",params:{cluster:"_",product:"auth",resource:c.Mc.USER,id:this.author.id}}:null}:null}get showCreatedBy(){return!!this.createdBy}}},97030:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(35664),i=n(76978),a=n(97219);class o extends a["default"]{get canViewInApi(){return!1}get nameDisplay(){return this.principalNameDisplay}get principalNameDisplay(){const e=this.$rootGetters["rancher/byId"](r.k$.PRINCIPAL,this.id);return`${e.name} (${e.displayType})`}get detailLocation(){const e=(0,i.o8)(this._detailLocation);return e.params.id=this.id,e}get globalRoleBindings(){return this.$rootGetters["management/all"](r.Mc.GLOBAL_ROLE_BINDING).filter((e=>this.id===e.groupPrincipalName))}get _availableActions(){return[{action:"goToEdit",label:this.t("action.edit"),icon:"icon icon-edit",enabled:!0},{action:"promptUnassignGroupRoles",altAction:"unassignGroupRoles",label:this.t("action.unassign"),icon:"icon icon-trash",bulkable:!0,enabled:!!this.globalRoleBindings.length,bulkAction:"unassignGroupRoles"}]}promptUnassignGroupRoles(e=this){const t=Array.isArray(e)?e:[e],n=this.$rootGetters["management/all"](r.Mc.GLOBAL_ROLE_BINDING).filter((e=>t.find((t=>t.id===e.groupPrincipalName))));this.$dispatch("promptRemove",n)}async unassignGroupRoles(e=this){const t=Array.isArray(e)?e:[e],n=this.$rootGetters["management/all"](r.Mc.GLOBAL_ROLE_BINDING).filter((e=>t.find((t=>t.id===e.groupPrincipalName))));await Promise.all(n.map((e=>e.remove()))),this.$dispatch("promptRemove",null)}}},7899:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(25184),i=n(35664);class a extends r.A{applyDefaults(){this.spec||(this["spec"]={helmApiVersion:"monitoring.cattle.io/v1alpha1"},this["metadata"]={name:"project-monitoring"})}get projectId(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](i.CU),{projectId:n}=t.find((e=>e.id===this.metadata.namespace));return n}get projectDisplayName(){const e=this.$rootGetters["currentCluster"]?.id,t=this.$rootGetters["management/byId"](i.Mc.PROJECT,`${e}/${this.projectId}`);return t?.spec.displayName}get namespaces(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](i.CU),n=t.filter((e=>e.projectId===this.projectId));return[...n]}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${i.fj.PROJECTHELMCHART}"`,{count:1})?.trim()}}},72183:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(25184),i=n(2841);class a extends r.A{applyDefaults(){const e=this.spec||{config:JSON.stringify({cniVersion:"0.3.1",name:"",type:"bridge",bridge:"",promiscMode:!0,vlan:"",ipam:{}})};this["spec"]=e}get parseConfig(){try{return JSON.parse(this.spec.config)||{}}catch(e){return{}}}get isIpamStatic(){return"static"===this.parseConfig.ipam?.type}get clusterNetwork(){return this?.metadata?.labels?.[i.rk.CLUSTER_NETWORK]}get vlanType(){const e=this.metadata?.labels||{},t=e[i.rk.NETWORK_TYPE];return t}get vlanId(){return"UntaggedNetwork"===this.vlanType?"N/A":this.parseConfig.vlan}get customValidationRules(){const e=[{nullable:!1,path:"metadata.name",required:!0,minLength:1,maxLength:63,translationKey:"harvester.fields.name"}];return e}get connectivity(){const e=this.metadata?.annotations||{},t=e[i.rk.NETWORK_ROUTE];let n={};if("UntaggedNetwork"===this.vlanType)return"N/A";try{n=JSON.parse(t||"{}")}catch{return"invalid"}const r=n.connectivity;return"false"===r?"inactive":"true"===r?"active":r}}},83448:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(81147);class i extends r["default"]{get doneRoute(){return"c-cluster-manager-driver-kontainerdriver"}get _availableActions(){const e=[{action:"activate",label:this.t("action.activate"),icon:"icon icon-play",bulkable:!0,bulkAction:"activateBulk",enabled:!!this.links.update&&!this.active},{action:"deactivate",label:this.t("action.deactivate"),icon:"icon icon-pause",bulkable:!0,bulkAction:"deactivateBulk",enabled:!!this.links.update&&!!this.active,weight:-1},{divider:!0},{action:"viewInApi",enabled:!0,icon:"icon icon-external-link",label:this.t("action.viewInApi")},{divider:!0},{action:"goToEdit",label:this.t("action.edit"),icon:"icon icon-edit",bulkable:!1,enabled:!!this.links.update&&!this.builtin},{action:"promptRemove",altAction:"remove",bulkAction:"promptRemove",label:this.t("action.remove"),bulkable:!0,icon:"icon icon-delete",enabled:!!this.links.remove,weight:-10}];return e}deactivate(e=[this]){this.$dispatch("promptModal",{componentProps:{drivers:e,driverType:"kontainerDrivers"},component:"DeactivateDriverDialog"})}deactivateBulk(e){this.$dispatch("promptModal",{componentProps:{drivers:e,driverType:"kontainerDrivers"},component:"DeactivateDriverDialog"})}activate(){return this.$dispatch("rancher/request",{url:`v3/kontainerDrivers/${escape(this.id)}?action=activate`,method:"post"},{root:!0})}async activateBulk(e){await Promise.all(e.map((e=>this.$dispatch("rancher/request",{url:`v3/kontainerDrivers/${escape(e.id)}?action=activate`,method:"post"},{root:!0}))))}}},78694:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(35664),i=n(82438),a=n.n(i),o=n(21766);class s extends o["default"]{get allOutputs(){return this.$rootGetters["cluster/all"](r.cm.CLUSTER_OUTPUT)||[]}get outputs(){if(!this.allOutputs)return[];const e=this?.spec?.globalOutputRefs||this?.spec?.outputRefs||[];return this.allOutputs.filter((t=>e.includes(t.name)))}get outputProviders(){const e=this.outputs.flatMap((e=>e.providers));return a()(e)||[]}get customValidationRules(){return[{path:"spec",validators:["flowOutput"]}]}}},63331:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(44931);class i extends r["default"]{}},21766:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c},matchRuleIsPopulated:function(){return l}});var r=n(35664),i=n(76978),a=n(82438),o=n.n(a),s=n(25184);function l(e){return!!e&&(!(!e.labels||!Object.keys(e.labels).length)||(!!e.hosts?.length||(!!e.container_names?.length||!!e.namespaces?.length)))}class c extends s.A{applyDefaults(){(0,i.hZ)(this,"spec",this.spec||{}),(0,i.hZ)(this.spec,"match",this.spec.match||[]),(0,i.hZ)(this.spec,"filters",this.spec.filters||[]),(0,i.hZ)(this.spec,"localOutputRefs",this.spec.localOutputRefs||[]),(0,i.hZ)(this.spec,"globalOutputRefs",this.spec.globalOutputRefs||[])}get canCustomEdit(){if(!this.spec?.match?.length)return!0;let e=!0;for(const t of this.spec.match)if(l(t.select)&&l(t.exclude)){e=!1;break}return e}get allOutputs(){return this.$rootGetters["cluster/all"](r.cm.OUTPUT)||[]}get allClusterOutputs(){return this.$rootGetters["cluster/all"](r.cm.CLUSTER_OUTPUT)||[]}get outputs(){const e=this.spec?.localOutputRefs||[];return this.allOutputs.filter((t=>e.includes(t.name)))}get outputsSortable(){const e=this.outputs.map((e=>e.nameDisplay));return e.sort(),e.join("")}get clusterOutputs(){const e=this.spec?.globalOutputRefs||[];return this.allClusterOutputs?this.allClusterOutputs.filter((t=>e.includes(t.name))):[]}get clusterOutputsSortable(){const e=this.clusterOutputs.map((e=>e.nameDisplay));return e.sort(),e.join("")}get providersDisplay(){const e=[...this.outputs,...this.clusterOutputs],t=e.flatMap((e=>e.providersDisplay));return o()(t)||[]}get customValidationRules(){return[{path:"spec",validators:["flowOutput:verifyLocal"]}]}}},44931:function(e,t,n){"use strict";n.r(t),n.d(t,{PROVIDERS:function(){return i},default:function(){return a}});var r=n(25184);const i=[{name:"awsElasticsearch",labelKey:"logging.outputProviders.awsElasticsearch",default:{endpoint:{}}},{name:"azurestorage",labelKey:"logging.outputProviders.azurestorage",default:{}},{name:"cloudwatch",labelKey:"logging.outputProviders.cloudwatch",default:{}},{name:"datadog",labelKey:"logging.outputProviders.datadog",default:{}},{name:"elasticsearch",labelKey:"logging.outputProviders.elasticsearch",default:{}},{name:"file",labelKey:"logging.outputProviders.file",default:{}},{name:"forward",labelKey:"logging.outputProviders.forward",default:{servers:[{}]}},{name:"gelf",labelKey:"logging.outputProviders.gelf",default:{}},{name:"gcs",labelKey:"logging.outputProviders.gcs",default:{}},{name:"kafka",labelKey:"logging.outputProviders.kafka",default:{format:{type:"json"}}},{name:"kinesisStream",labelKey:"logging.outputProviders.kinesisStream",default:{}},{name:"logdna",labelKey:"logging.outputProviders.logdna",default:{}},{name:"logz",labelKey:"logging.outputProviders.logz",default:{endpoint:{}}},{name:"loki",labelKey:"logging.outputProviders.loki",default:{configure_kubernetes_labels:!0}},{name:"newrelic",labelKey:"logging.outputProviders.newrelic",default:{}},{name:"opensearch",labelKey:"logging.outputProviders.opensearch",default:{}},{name:"redis",labelKey:"logging.outputProviders.redis",default:{port:6379,db_number:0,ttl:0}},{name:"splunkHec",labelKey:"logging.outputProviders.splunkHec",default:{}},{name:"sumologic",labelKey:"logging.outputProviders.sumologic",default:{}},{name:"syslog",labelKey:"logging.outputProviders.syslog",default:{}},{name:"s3",labelKey:"logging.outputProviders.s3",default:{}}];class a extends r.A{get canCustomEdit(){return this.allProvidersSupported}get providers(){const e=this.spec||{};return Object.keys(e).filter((e=>"loggingRef"!==e))}get providersDisplay(){return this.providers.map((e=>{const t=this.t(`logging.outputProviders.${e}`);return t||this.t("logging.outputProviders.unknown")}))}isSupportedProvider(e){return!!i.find((t=>t.name===e))}get allProvidersSupported(){return this.providers.every(this.isSupportedProvider)}get providersSortable(){const e=[...this.providersDisplay];return e.sort(),e.join("")}get text(){return this.nameDisplay}get url(){return{name:"c-cluster-product-resource-namespace-id",params:{resource:this.type,id:this.name,namespace:this.namespace}}}get customValidationRules(){return[{path:"spec.logdna",validators:["logdna"]}]}}},78277:function(e,t,n){"use strict";n.r(t),n.d(t,{configType:function(){return a},default:function(){return s}});var r=n(68851),i=n(25184);const a={activedirectory:"ldap",azuread:"oauth",openldap:"ldap",freeipa:"ldap",ping:"saml",adfs:"saml",keycloak:"saml",okta:"saml",shibboleth:"saml",googleoauth:"oauth",local:"",github:"oauth",keycloakoidc:"oidc",genericoidc:"oidc"},o={keycloakoidc:"keycloak",genericoidc:"openid"};class s extends i.A{get _availableActions(){const e=super._availableActions;return(0,r.PT)(e,0,{action:"disable",label:"Disable",icon:"icon icon-spinner",enabled:!0===this.enabled}),(0,r.PT)(e,1,{divider:!0}),e}get nameDisplay(){return this.$rootGetters["i18n/withFallback"](`model.authConfig.name."${this.id}"`,null,this.provider)}get provider(){return this.$rootGetters["i18n/withFallback"](`model.authConfig.provider."${this.id}"`,null,this.id)}get configType(){return a[this.id]}get sideLabel(){return this.$rootGetters["i18n/withFallback"](`model.authConfig.description."${this.configType}"`,null,this.configType)}get icon(){try{return n(82360)(`./${o[this.id]||this.id}.svg`)}catch(e){return""}}get state(){return this.enabled?"active":"inactive"}}},16544:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return x}});var r=n(2841),i=n(35664),a=n(68851),o=n(6198),s=n(95799),l=n(78347),c=n(20246),u=n.n(c),d=n(88339),h=n(50667),p=n(76978),f=n(11518);n(2722),n(92043),n(9262),n(50025),n(83288),n(74302);function m(e){const t=e?.metadata?.labels?.[r.qt.PROVIDER]||e?.status?.provider;return t===i.BN}var g=n(25184),v=n(97707),b=n(44660),y=n(91462),w=n(48881),E=n(4364);const _="#707070",S={};function k(e,t,n=[]){const r=`${e}Type`,i=`${e}Id`;return n.find((e=>e[r]===t))?.[i]}class x extends g.A{get details(){const e=[{label:"Provisioner",content:this.provisionerDisplay},{label:"Machine Provider",content:this.machineProviderDisplay},{label:"Kubernetes Version",content:this.kubernetesVersion}];return e}get _availableActions(){const e=super._availableActions;return(0,a.PT)(e,0,{action:"openShell",label:this.t("nav.shell"),icon:"icon icon-terminal",enabled:!!this.links.shell}),(0,a.PT)(e,1,{action:"downloadKubeConfig",bulkAction:"downloadKubeConfigBulk",label:this.t("nav.kubeconfig.download"),icon:"icon icon-download",bulkable:!0,enabled:this.$rootGetters["isRancher"]&&this.hasAction("generateKubeconfig")}),(0,a.PT)(e,2,{action:"copyKubeConfig",label:this.t("cluster.copyConfig"),bulkable:!1,enabled:this.$rootGetters["isRancher"]&&this.hasAction("generateKubeconfig"),icon:"icon icon-copy"}),e}get canDelete(){return this.hasLink("remove")&&!this?.spec?.internal}get machinePools(){const e=this.$getters["all"](i.Mc.NODE_POOL);return e.filter((e=>e.spec?.clusterName===this.id))}get provisioner(){return this.status?.driver?this.status.driver:"imported"}get machineProvider(){const e=this.machinePools?.[0]?.provider;return e?e.replace(/config$/i,"").toLowerCase():this.spec?.internal?"local":null}get rkeTemplateVersion(){return this.spec?.clusterTemplateRevisionName}get providerForEmberParam(){let e;const t=b.KONTAINER_TO_DRIVER[(this.provisioner||"").toLowerCase()]||this.provisioner;return e="rancherKubernetesEngine"===t?this.machinePools?.[0]?this.machinePools[0]?.nodeTemplate?.spec?.driver||null:"custom":this.driver?this.driver:t&&t.endsWith("v2")?t:"import",e}get emberEditPath(){let e;this.rkeTemplateVersion&&(e=this.rkeTemplateVersion);const t=this.providerForEmberParam,n={};t&&(n["provider"]=t),e&&(n["clusterTemplateRevision"]=e),"import"===t&&(0,p.Im)(this.eksConfig)&&(0,p.Im)(this.gkeConfig)?n.importProvider="other":("amazoneks"===t&&!(0,p.Im)(this.eksConfig)||"gke"===t&&!(0,p.Im)(this.gkeConfig))&&(n.importProvider=b.KONTAINER_TO_DRIVER[t]),this.clusterTemplateRevisionId&&(n.clusterTemplateRevision=this.clusterTemplateRevisionId);const r=(0,h.g)(`/c/${escape(this.id)}/edit`,n);return r}get groupByLabel(){return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.notInAWorkspace")}get isReady(){return this.hasCondition("Connected")?this.isCondition("Connected"):this.isCondition("Ready")}get kubernetesVersionRaw(){const e=this.status?.version?.gitVersion,t=this.spec?.[`${this.provisioner}Config`]?.kubernetesVersion;return e||t}get kubernetesVersion(){return this.kubernetesVersionRaw||this.$rootGetters["i18n/t"]("generic.provisioning")}get kubernetesVersionBase(){return this.kubernetesVersion.replace(/[+-].*$/,"")}get kubernetesVersionExtension(){return this.kubernetesVersion.match(/[+-]/)?this.kubernetesVersion.replace(/^.*([+-])/,"$1"):""}get providerOs(){return this.status?.provider.endsWith(".windows")?"windows":"linux"}get providerOsLogo(){return n(82360)(`./${this.providerOs}.svg`)}get workerOSs(){const e=this.status?.windowsWorkerCount,t=this.status?.linuxWorkerCount;if(e||t){const n=[];return e&&n.push(v.CB),t&&n.push(v["do"]),n}return this.providerOs===v.CB?[v.CB]:[v["do"]]}get isLocal(){return!0===this.spec?.internal}get isHarvester(){return m(this)}get isHostedKubernetesProvider(){const e=["AKS","EKS","GKE"];return e.includes(this.provisioner)}get providerLogo(){let e=this.status?.provider||"kubernetes";this.isHarvester&&(e=f.T3);const t=e.split(".")[0],r=S[t]||t;let i;try{i=n(53588)(`./${t}.svg`)}catch(a){E.warn(`Can not find provider logo for provider ${r}`),i=n(9144)}return i}get providerMenuLogo(){return this.providerLogo}get providerNavLogo(){return this.providerLogo}get iconColor(){return this.metadata?.annotations[r.XH.COLOR]}get badge(){const e=this.metadata?.annotations?.[r.XH.ICON_TEXT],t=this.metadata?.annotations?.[r.XH.TEXT];if(!e&&!t)return;let n=this.iconColor||_;const i=this.metadata?.annotations[r.XH.ICON_TEXT]||"";let a;try{a=(0,l.hk)((0,l.H0)(n.trim()))}catch(o){n=_,a=(0,l.hk)((0,l.H0)(n))}return{text:t||void 0,color:n,textColor:a,iconText:i.substr(0,3)}}get scope(){return this.isLocal?r.W8._MANAGEMENT:r.W8._DOWNSTREAM}setClusterNameLabel(e){if(!this.ownerReferences?.length&&this.metadata?.labels?.[i.Hs.CLUSTER_NAME]!==this.id)return this.metadata=this.metadata||{},this.metadata.labels=this.metadata.labels||{},this.metadata.labels[i.Hs.CLUSTER_NAME]=this.id,e?this.save():void 0}get availableCpu(){const e=(0,s.ao)(this.status.requested?.cpu),t=(0,s.ao)(this.status.allocatable?.cpu);return t>0&&e>=0?Math.max(0,t-e):null}get availableMemory(){const e=(0,s.ao)(this.status.requested?.memory),t=(0,s.ao)(this.status.allocatable?.memory);return t>0&&e>=0?Math.max(0,t-e):null}openShell(){this.$dispatch("wm/open",{id:`kubectl-${this.id}`,label:this.$rootGetters["i18n/t"]("wm.kubectlShell.title",{name:this.nameDisplay}),icon:"terminal",component:"KubectlShell",attrs:{cluster:this,pod:{}}},{root:!0})}async generateKubeConfig(){const e=await this.doAction("generateKubeconfig");return e.config}async downloadKubeConfig(){const e=await this.generateKubeConfig();(0,o.PE)(`${this.nameDisplay}.yaml`,e,"application/yaml")}async downloadKubeConfigBulk(e){let t={},n=!0;await(0,d.hF)(e,10,((e,r)=>e.generateKubeConfig().then((e=>{const r=u().load(e);n?(t=r,n=!1):(t.clusters.push(...r.clusters),t.users.push(...r.users),t.contexts.push(...r.contexts))})))),delete t["current-context"];const r=u().dump(t);(0,o.PE)("kubeconfig.yaml",r,"application/yaml")}async copyKubeConfig(){try{const e=await this.generateKubeConfig();e&&await(0,w.e)(e)}catch{}}async fetchNodeMetrics(){const e=await this.$dispatch("cluster/findAll",{type:i.NW},{root:!0}),t=await this.$dispatch("cluster/findAll",{type:i.NW},{root:!0}),n=e.some((e=>e.hasARole&&!e.isWorker)),r=t.filter((t=>{const r=e.find((e=>e.id===t.id));return r&&(!n||r.isWorker)})),a={cpu:0,memory:0};return(0,p.Im)(r)?null:r.reduce(((e,t)=>(e.cpu+=(0,s.ao)(t?.usage?.cpu),e.memory+=(0,s.ao)(t?.usage?.memory),e)),a)}get nodes(){return this.$getters["all"](i.Mc.NODE).filter((e=>e.id.startsWith(this.id)))}get provClusterId(){const e=!!this.spec?.rancherKubernetesEngineConfig,t=this.isLocal||e||this.isHostedKubernetesProvider?"to":"from",n=k(t,i.qt.RANCHER_CLUSTER,this.metadata?.relationships);return n||k("to"===t?"from":"to",i.qt.RANCHER_CLUSTER,this.metadata?.relationships)}get pinned(){return this.$rootGetters["prefs/get"](y.Hu).includes(this.id)}pin(){const e=this.$rootGetters["prefs/get"](y.Hu)||[];(0,a.PG)(e,this.id),this.$dispatch("prefs/set",{key:y.Hu,value:e},{root:!0})}unpin(){const e=this.$rootGetters["prefs/get"](y.Hu)||[];(0,a.Gj)(e,this.id),this.$dispatch("prefs/set",{key:y.Hu,value:e},{root:!0})}}},54820:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(2841),i=n(14220),a=n(35664),o=n(82614),s=n(11518);class l extends o.A{detailPageHeaderActionOverride(e){if(e===i.YQ)return this.t("members.createActionLabel")}get canCustomEdit(){return!1}get canYaml(){return!1}get canClone(){return!1}get user(){return this.$rootGetters["management/byId"](a.Mc.USER,this.userName)}get principal(){const e=this.principalId.replace(/\//g,"%2F");return this.$dispatch("rancher/find",{type:a.k$.PRINCIPAL,id:this.principalId,opt:{url:`/v3/principals/${e}`}},{root:!0})}get syncPrincipal(){return this.$rootGetters["rancher/byId"](a.k$.PRINCIPAL,this.principalId)}get principalId(){return this.principalName||this.userPrincipalName||this.groupPrincipalName||""}get nameDisplay(){return this.user?.nameDisplay||this.userName||this.syncPrincipal?.nameDisplay||this.principalId}get roleDisplay(){return this.roleTemplate?.nameDisplay}get roleDescription(){return this.roleTemplate?.description}get roleTemplate(){return this.$rootGetters["management/byId"](a.Mc.ROLE_TEMPLATE,this.roleTemplateName)}get cluster(){return this.$rootGetters["management/byId"](a.Mc.CLUSTER,this.clusterName)}get clusterDisplayName(){return this.cluster?this.cluster.nameDisplay:this.clusterName}get clusterDetailLocation(){if(this.cluster)return this.cluster.detailLocation;const e="c-cluster-product-resource-id",t={resource:a.Mc.CLUSTER_ROLE_TEMPLATE_BINDING,id:this.clusterName,product:"explorer"};return{name:e,params:t}}get listLocation(){return this.$rootGetters["currentProduct"].inStore===s.T3?{name:`${s.T3}-c-cluster-members`}:{name:"c-cluster-product-members"}}get doneOverride(){return this.listLocation}get parentLocationOverride(){return this.listLocation}get subSearch(){return[{nameDisplay:this.nameDisplay}]}get isSystem(){return!this.metadata.annotations[r.Rw]}get norman(){return(async()=>{const e=await this.principal,t="group"===e?.principalType?"groupPrincipalId":"userPrincipalId";return this.$dispatch("rancher/create",{type:a.k$.CLUSTER_ROLE_TEMPLATE_BINDING,roleTemplateId:this.roleTemplateName,[t]:e?.id,clusterId:this.clusterName,id:this.id?.replace("/",":")},{root:!0})})()}async save(){const e=await this.norman;return e.save()}async remove(){const e=await this.norman;await e.remove({url:`/v3/clusterRoleTemplateBindings/${e.id}`})}}},58975:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(11518),i=n(82614);class a extends i.A{get state(){return this.enabled?"active":"off"}get enabled(){return null!==this.status.lockedValue?this.status.lockedValue:null!==this.spec.value?this.spec.value:this.status.default}get restartRequired(){return!this.status.dynamic}get canYaml(){return!1}get canDisable(){return this.canUpdate&&!r.r6.includes(this.id)}get _availableActions(){const e=super._availableActions,t=this.enabled,n={action:"toggleFeatureFlag",label:t?this.t("action.deactivate"):this.t("action.activate"),icon:"icon icon-edit",enabled:t?this.canDisable:this.canUpdate};return n.enabled=n.enabled&&null===this.status.lockedValue,e.unshift(n),e}toggleFeatureFlag(e=this){this.$dispatch("promptUpdate",e)}}},61504:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(35664),i=n(68851),a=n(82614);class o extends a.A{get isLocal(){return"fleet-local"===this.metadata.name}get counts(){const e=this.$rootGetters["management/all"](r.i2)[0].counts||{},t=this.metadata.name,n={clusterGroups:e[r.Hs.CLUSTER_GROUP]?.namespaces?.[t]?.count||0,clusters:e[r.Hs.CLUSTER]?.namespaces?.[t]?.count||0,gitRepos:e[r.Hs.GIT_REPO]?.namespaces?.[t]?.count||0};return n}get clusters(){const e=this.$getters["all"](r.Hs.CLUSTER),t=(0,i.WP)(e,"metadata.namespace",this.metadata.name);return t}get clusterGroups(){const e=this.$getters["all"](r.Hs.CLUSTER_GROUP),t=(0,i.WP)(e,"metadata.namespace",this.metadata.name);return t}get repos(){const e=this.$getters["all"](r.Hs.GIT_REPO),t=(0,i.WP)(e,"namespace",this.id);return t}get basicNorman(){return this.id?this.$dispatch("rancher/find",{id:this.id,type:r.k$.FLEET_WORKSPACES},{root:!0}):this.$dispatch("rancher/create",{type:r.k$.FLEET_WORKSPACES,name:this.metadata.name},{root:!0})}get norman(){return(async()=>{const e=await this.basicNorman;return e.annotations=this.metadata.annotations,e.labels=this.metadata.labels,e})()}async save(){const e=await this.norman;await e.save()}waitForWorkspaceSchema(e=2e4,t){return this.waitForTestFn((()=>{const e=this.$rootGetters["management/schemaFor"](r.Hs.WORKSPACE);return t?t(e):e}),this.$rootGetters["i18n/t"]("fleet.workspaces.timeout"),e)}async remove(){const e=await this.norman;await e.remove()}get confirmRemove(){return!0}}},33707:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(25184);class i extends r.A{}},14606:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var r=n(2841),i=n(35664),a=n(4799),o=n(68851),s=n(76978),l=n(63928),c=n(14220);const u="user-base",d="user",h="admin",p=[u,h,d],f=a.SUBTYPE_MAPPING.GLOBAL.key;class m extends l.A{get customValidationRules(){return[{path:"rules",validators:[`roleTemplateRules:${this.type}`],nullable:!1,type:"array"}]}get details(){const e=this._details;return e.unshift({label:this.t("resourceDetail.detailTop.name"),content:(0,s.Jt)(this,"name")}),e}get nameDisplay(){const e=`rbac.globalRoles.role.${this.id}.label`,t=this.displayName||this.metadata?.name||this.id;return this.$rootGetters["i18n/withFallback"](e,t)}get descriptionDisplay(){return this.description||this.metadata?.annotations?.[r.tC]||this.$rootGetters["i18n/withFallback"](`rbac.globalRoles.role.${this.id}.description`,this.t("rbac.globalRoles.unknownRole.description"))}get isSpecial(){return p.includes(this.id)}get subtype(){return f}get default(){return!!this.newUserDefault}get allResources(){return this.$getters["all"](i.yx).filter((e=>e.attributes?.kind))}get globalResources(){return this.allResources.filter((e=>e.attributes.group.includes(a.CATTLE_API_GROUP)))}get resources(){return(0,o.sb)(this.globalResources.map((e=>e.attributes?.resource))).sort()}get listLocation(){return{name:"c-cluster-auth-roles",hash:`#${f}`}}get detailLocation(){return{...this._detailLocation,name:"c-cluster-auth-roles-resource-id"}}get doneOverride(){return this.listLocation}get parentLocationOverride(){return this.listLocation}get basicNorman(){return this.id?this.$dispatch("rancher/find",{id:this.id,type:i.k$.GLOBAL_ROLE},{root:!0}):this.$dispatch("rancher/create",{type:i.k$.GLOBAL_ROLE,name:this.displayName},{root:!0})}get norman(){return(async()=>{const e=await this.basicNorman;return e.rules=this.rules,e.newUserDefault=this.newUserDefault,e.id=this.id,e.name=this.displayName,e.description=this.description,e.inheritedClusterRoles=this.inheritedClusterRoles,e})()}get canCreate(){const e=this.$getters["schemaFor"](this.type);return e?.resourceMethods.find((e=>a.CREATE_VERBS.has(e)))}goToClone(e={}){const t=this.detailLocation;t.query={...t.query,[c.g]:c.dT,[c.AS]:c.xz,roleContext:f,...e},this.currentRouter().push(t)}async save(){const e=await this.norman;for(const t of e.rules)t.nonResourceURLs&&t.nonResourceURLs.length?(delete t.resources,delete t.apiGroups):delete t.nonResourceURLs;return e.save()}async remove(){const e=await this.norman;await e.remove()}}},97621:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(35664),i=n(82614);class a extends i.A{get nameDisplay(){const e=this.$getters["byId"](r.Mc.GLOBAL_ROLE,this.globalRoleName);if(!e)return this.globalRoleName;const t=this.groupPrincipalName?this._displayPrincipal:this._displayUser;return t?`${e.displayName} (${t})`:e.displayName}get _displayPrincipal(){const e=this.$rootGetters["rancher/byId"](r.k$.PRINCIPAL,this.groupPrincipalName);return e?`${e.name} - ${e.displayType}`:null}get _displayUser(){return this.user}get basicNorman(){return this.id?this.$dispatch("rancher/find",{id:this.id,type:r.k$.GLOBAL_ROLE_BINDING},{root:!0}):this.$dispatch("rancher/create",{type:r.k$.GLOBAL_ROLE_BINDING,name:this.displayName},{root:!0})}get norman(){return(async()=>{const e=await this.basicNorman;return e.globalRoleId=this.globalRoleName,e.userId=this.userName,e.newUserDefault=this.newUserDefault,e.groupPrincipalId=this.groupPrincipalName,e})()}async save(){const e=await this.norman;return e.save()}async remove(){const e=await this.norman;await e.remove()}}},44660:function(e,t,n){"use strict";n.r(t),n.d(t,{DRIVER_TO_IMPORT:function(){return c},KEV1:function(){return l},KONTAINER_TO_DRIVER:function(){return s},default:function(){return u}});var r=n(82614);const i=["rke","rancherkubernetesengine"],a=["amazoneks","googlegke","azureaks"],o=["amazoneks","googlegke","azureaks"],s={amazonelasticcontainerservice:"amazoneks",azurekubernetesservice:"azureaks",aks:"azureaksv2",eks:"amazoneksv2",gke:"googlegkev2",googlekubernetesengine:"googlegke",huaweicontainercloudengine:"huaweicce",huaweiengine:"huaweicce",linodekubernetesengine:"linodelke",lke:"linodelke",lkeengine:"linodelke",okeengine:"oracleoke",oke:"oracleoke",oraclecontainerengine:"oracleoke",rke2:"rke2",tencentengine:"tencenttke",tencentkubernetesengine:"tencenttke",aliyunkubernetescontainerservice:"aliyun",baiducloudcontainerengine:"baidu",opentelekomcloudcontainerengine:"otccce"},l=["amazonelasticcontainerservice","azurekubernetesservice","googlekubernetesengine"],c={googlegke:"gke",amazoneks:"eks",azureaks:"aks"};class u extends r.A{get showCreate(){return!i.includes(this.driverName)&&!!this.spec.active}get showImport(){return this.showCreate&&o.includes(this.driverName)}get emberCreatePath(){let e=this.driverName;return a.includes(e)&&!e.endsWith("v2")&&(e+="v2"),`/g/clusters/add/launch/${e}`}get emberImportPath(){const e=c[this.driverName]||this.driverName;return`/g/clusters/add/launch/import?importProvider=${e}`}get driverName(){if(!this.spec.builtIn){const e=this.status?.displayName?.toLowerCase();if(e)return s[e]||e}return s[this.id]||this.id}}},77917:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var r=n(2841),i=n(35664),a=n(27278),o=n(44458),s=n(68851),l=n(6198),c=n(24576),u=n.n(c),d=n(82614),h=n(61843);class p extends d.A{get _availableActions(){const e=super._availableActions,t={action:"downloadKeys",enabled:!!this.norman?.links?.nodeConfig,icon:"icon icon-fw icon-download",label:this.t("node.actions.downloadNodeConfig")},n={action:"scaleDown",bulkAction:"scaleDown",enabled:!!this.canScaleDown,icon:"icon icon-minus icon-fw",label:this.t("node.actions.scaleDown"),bulkable:!0};return(0,s.PT)(e,0,{divider:!0}),(0,s.PT)(e,0,t),(0,s.PT)(e,0,n),e}get kubeNodeName(){return this.metadata.labels[r.Do.NODE_NAME]}get mgmtClusterId(){return this.id.substring(0,this.id.indexOf("/"))}get kubeNodeDetailLocation(){return this.kubeNodeName?{name:"c-cluster-product-resource-id",params:{cluster:this.mgmtClusterId,product:a.o,resource:i.NW,id:this.kubeNodeName}}:null}get isWorker(){return this.spec.worker}get isControlPlane(){return this.spec.controlPlane}get isEtcd(){return this.spec.etcd}get roles(){const{isControlPlane:e,isWorker:t,isEtcd:n}=this;return(0,o.listNodeRoles)(e,t,n,this.t("generic.all"))}get pool(){const e=this.spec.nodePoolName.replace(":","/");return this.$rootGetters["management/byId"](i.Mc.NODE_POOL,e)}get norman(){const e=this.id.replace("/",":");return this.$rootGetters["rancher/byId"](i.k$.NODE,e)}get canDelete(){return this.norman?.hasLink("remove")}get canUpdate(){return this.hasLink("update")&&this.norman?.hasLink("update")}remove(){return this.norman?.remove()}downloadKeys(){const e=this.norman?.links?.nodeConfig;e&&(0,l.Is)(e)}async scaleDown(e=this){this.$dispatch("promptModal",{resources:e,component:"ScaleMachineDownDialog",modalWidth:"450px"})}get provisioningCluster(){return this.$getters["all"](i.qt.RANCHER_CLUSTER).find((e=>e.mgmtClusterId===this.mgmtClusterId))}get doneOverride(){return this.provisioningCluster?.detailLocation}get canClone(){return!1}get addresses(){return this.status?.addresses||this.status?.internalNodeStatus?.addresses||[]}get internalIp(){const e=this.addresses.find((({type:e})=>e===i.FV.INTERNAL_IP));return e?e.address:!e&&this.status.rkeNode?this.status.rkeNode.internalAddress:this.t("generic.none")}get externalIp(){const e=u()(this.addresses,(e=>"ExternalIP"===e.type))?.address;return e||(!e&&this.status.rkeNode?this.status.rkeNode.address:this.t("generic.none"))}get canScaleDown(){if(!this.isEtcd&&!this.isControlPlane)return!0;const e=this.norman?.actions?.scaledown;return e&&(0,h.notOnlyOfRole)(this,this.provisioningCluster?.nodes)}}},68959:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(35664),i=n(74302),a=n(82614),o=n(61843);class s extends a.A{get nodeTemplateId(){return(this.spec?.nodeTemplateName||"").replace(/:/,"/")}get nodeTemplate(){return this.$getters["byId"](r.Mc.NODE_TEMPLATE,this.nodeTemplateId)}get provider(){return this.nodeTemplate?.provider}get providerName(){return this.nodeTemplate?.nameDisplay}get providerDisplay(){return this.nodeTemplate?.providerDisplay}get providerLocation(){return this.nodeTemplate?.providerLocation}get providerSize(){return this.nodeTemplate?.providerSize}get provisioningCluster(){return this.$getters["all"](r.qt.RANCHER_CLUSTER).find((e=>e.name===this.spec.clusterName))}get doneOverride(){return{name:"c-cluster-product-resource-namespace-id",params:{resource:r.qt.RANCHER_CLUSTER,namespace:this.provisioningCluster?.namespace,id:this.spec.clusterName}}}get scale(){return this.norman.quantity}scalePool(e){this.norman.quantity+=e,this.scaleTimer&&clearTimeout(this.scaleTimer),this.scaleTimer=setTimeout((()=>{try{this.norman.save()}catch(e){this.$dispatch("growl/fromError",{title:"Error scaling pool",error:e},{root:!0})}}),1e3)}get nodes(){const e=this.id.replace("/",":");return this.$getters["all"](r.Mc.NODE).filter((t=>t.spec.nodePoolName===e))}get nodeSummary(){const e={pending:0,unavailable:0,ready:0};return this.nodes?this.nodes.reduce(((e,t)=>(t.metadata.state.error?e.unavailable++:t.metadata.state.transitioning?e.pending++:"active"!==t.state?e.unavailable++:e.ready++,e)),{...e}):e}get desired(){return this.spec?.quantity||0}get pending(){return this.nodeSummary.pending}get ready(){return this.nodeSummary.ready}get unavailable(){return this.nodeSummary.unavailable}get stateParts(){const e=[{label:"Pending",color:"bg-info",textColor:"text-info",value:this.pending,sort:1},{label:"Unavailable",color:"bg-error",textColor:"text-error",value:this.unavailable,sort:3},{label:"Ready",color:"bg-success",textColor:"text-success",value:this.ready,sort:4}].filter((e=>e.value>0));return(0,i.Ul)(e,"sort:desc")}get norman(){const e=this.id.replace("/",":");return this.$rootGetters["rancher/byId"](r.k$.NODE_POOL,e)}get canDelete(){return this.norman?.hasLink("remove")}get canUpdate(){return this.norman?.hasLink("update")}get isControlPlane(){return!0===this.spec?.controlPlane}get isEtcd(){return!0===this.spec?.etcd}canScaleDownPool(){return!this.isEtcd&&!this.isControlPlane||(0,o.notOnlyOfRole)(this,this?.provisioningCluster?.nodes)}remove(){return this.norman?.remove()}}},57075:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(95799),i=n(82614);const a=[{driver:"aliyunecs",size:{key:"instanceType"},location:{getDisplayProperty(e){return`${e.providerConfig?.region}${e.providerConfig?.zone}`}}},{driver:"amazonec2",size:{key:"instanceType"},location:{getDisplayProperty(e){return`${e.providerConfig?.region}${e.providerConfig?.zone}`}}},{driver:"azure",size:{key:"size"},location:{key:"location"}},{driver:"digitalocean",size:{key:"size"},location:{key:"region"}},{driver:"exoscale",size:{key:"instanceProfile"},location:{key:"availabilityZone"}},{driver:"linode",size:{key:"instanceType"},location:{key:"region"}},{driver:"oci",size:{key:"nodeShape"},location:{}},{driver:"packet",size:{key:"plan"},location:{key:"facilityCode"}},{driver:"pnap",size:{key:"serverType"},location:{key:"serverLocation"}},{driver:"rackspace",size:{key:"flavorId"},location:{key:"region"}},{driver:"vmwarevsphere",size:{getDisplayProperty(e){const t=(0,r.Mo)(1048576*e.providerConfig?.memorySize,1024,"iB");return`${t}, ${e.providerConfig?.cpuCount} Core`}},location:{key:null}}];class o extends i.A{get provider(){const e=Object.keys(this),t=e.filter((e=>null!==this[e])).find((e=>e.endsWith("Config")));return t?t.replace(/config$/i,""):null}get providerConfig(){return this[`${this.provider}Config`]}get providerDisplay(){const e=(this.provider||"").toLowerCase();return this.$rootGetters["i18n/withFallback"](`cluster.provider."${e}"`,null,"generic.unknown",!0)}get providerLocation(){if(this.provider){const e=a.find((e=>e.driver===this.provider));if(e?.location){if(e.location.getDisplayProperty)return e.location.getDisplayProperty(this);const t=this.providerConfig?.[e.location.key];if(t)return t}}return this.providerConfig?.region||this.t("node.list.poolDescription.noLocation")}get providerSize(){if(this.provider){const e=a.find((e=>e.driver===this.provider));if(e?.size){if(e.size.getDisplayProperty)return e.size.getDisplayProperty(this);const t=this.providerConfig?.[e.size.key];if(t)return t}}return this.providerConfig?.size||this.t("node.list.poolDescription.noSize")}}},10311:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(63928);class i extends r.A{}},24220:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(2841),i=n(35664),a=n(82614),o=n(3514),s=n.n(o),l=n(11518);function c(e,t){return t.forEach((t=>{e[t]?.limit&&!s()(e[t].limit)&&Object.keys(e[t].limit).forEach((n=>{e[t].limit[n]||delete e[t].limit[n]})),e[t]?.usedLimit&&!s()(e[t].usedLimit)&&Object.keys(e[t].usedLimit).forEach((n=>{e[t].usedLimit[n]||delete e[t].usedLimit[n]})),e[t]?.limit&&s()(e[t].limit)&&(e[t].limit=null),e[t]?.usedLimit&&s()(e[t].usedLimit)&&(e[t].usedLimit=null),e[t]&&!s()(e[t])&&Object.keys(e[t]).every((n=>null===e[t][n]))&&(e[t]=null)})),e}class u extends a.A{get isSystem(){return"true"===this.metadata?.labels?.[r.MW]}get isDefault(){return"true"===this.metadata?.labels?.[r.ol]}get namespaces(){if(!this.$rootGetters["isRancher"])return[];const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](i.CU);return t.filter((e=>e.projectId===this.metadata.name))}get description(){return this.spec?.description}get doneOverride(){return this.listLocation}get listLocation(){return this.$rootGetters["currentProduct"].inStore===l.T3?{name:`${l.T3}-c-cluster-projectsnamespaces`}:{name:"c-cluster-product-projectsnamespaces"}}get _detailLocation(){const e=super._detailLocation;return this.$rootGetters["currentProduct"].inStore===l.T3&&(e.name=`${l.T3}-${e.name}`.replace("-product","")),e}get parentLocationOverride(){return this.listLocation}async save(e){const t=await this.norman,n=await t.save({replace:e});return n}async remove(){const e=await this.norman;await e.remove(...arguments),await this.$dispatch("management/findAll",{type:i.Mc.PROJECT,opt:{force:!0}},{root:!0})}get norman(){return this.id?this.normanEditProject:this.normanNewProject}get normanNewProject(){return(async()=>{const e=c(this.spec,["resourceQuota","namespaceDefaultResourceQuota"]),t=await this.$dispatch("rancher/create",{type:i.k$.PROJECT,name:this.spec.displayName,description:this.spec.description,annotations:this.metadata.annotations,labels:this.metadata.labels,clusterId:this.$rootGetters["currentCluster"].id,creatorId:this.$rootGetters["auth/principalId"],containerDefaultResourceLimit:this.spec.containerDefaultResourceLimit},{root:!0});return t.setAnnotations(this.metadata.annotations),t.setLabels(this.metadata.labels),t.setResourceQuotas(e),t})()}get normanEditProject(){return(async()=>{const e=await this.$dispatch("rancher/find",{type:i.k$.PROJECT,id:this.id.replace("/",":")},{root:!0}),t=c(this.spec,["resourceQuota","namespaceDefaultResourceQuota"]);return e.setAnnotations(this.metadata.annotations),e.setLabels(this.metadata.labels),e.setResourceQuotas(t),e.description=this.spec.description,e.name=this.spec.displayName,e.containerDefaultResourceLimit=this.spec.containerDefaultResourceLimit,e})()}get canUpdate(){return super.canUpdate||this.canUpdateProjectBindings}get canUpdateProjectBindings(){const e=this.$rootGetters["rancher/schemaFor"](i.k$.PROJECT_ROLE_TEMPLATE_BINDING);return e?.collectionMethods.includes("POST")}get canEditYaml(){return!this.schema?.resourceMethods?.find((e=>"blocked-PUT"===e))&&super.canUpdate}get confirmRemove(){return!0}}},91673:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2841),i=n(35664),a=n(82614);class o extends a.A{get canCustomEdit(){return!1}get canYaml(){return!1}get canClone(){return!1}get user(){return this.$rootGetters["management/byId"](i.Mc.USER,this.userName)}get principal(){const e=this.principalId.replace(/\//g,"%2F");return this.$dispatch("rancher/find",{type:i.k$.PRINCIPAL,id:this.principalId,opt:{url:`/v3/principals/${e}`}},{root:!0})}get principalId(){return this.principalName||this.userPrincipalName||this.groupPrincipalName||""}get nameDisplay(){return this.user?.nameDisplay}get projectId(){return this.projectName?.replace(":","/")}get clusterId(){return this.projectName.substring(0,this.projectName.lastIndexOf(":"))}get project(){return this.$rootGetters["management/byId"](i.Mc.PROJECT,this.projectId)}get cluster(){return this.$rootGetters["management/byId"](i.Mc.CLUSTER,this.clusterId)}get projectDisplayName(){return this.project?this.project.nameDisplay:this.projectName}get clusterDisplayName(){return this.cluster?this.cluster.nameDisplay:this.clusterId}get userAvatar(){return{nameDisplay:this.nameDisplay,userName:this.user.username,avatarSrc:this.user.avatarSrc}}get projectDetailLocation(){if(this.project)return this.project.detailLocation;const e="c-cluster-product-resource-id",t={resource:i.Mc.PROJECT,id:this.projectId,product:"explorer"};return{name:e,params:t}}get clusterDetailLocation(){if(this.cluster)return this.cluster.detailLocation;const e="c-cluster-product-resource-id",t={resource:i.Mc.CLUSTER_ROLE_TEMPLATE_BINDING,id:this.clusterName,product:"explorer"};return{name:e,params:t}}get roleTemplate(){return this.$rootGetters["management/byId"](i.Mc.ROLE_TEMPLATE,this.roleTemplateName)}get roleDisplay(){return this.roleTemplate.nameDisplay}get listLocation(){return{name:"c-cluster-explorer-project-members"}}get isSystem(){return!this.metadata.annotations[r.Rw]}get norman(){return(async()=>{const e=await this.principal,t="group"===e?.principalType?"groupPrincipalId":"userPrincipalId";return this.$dispatch("rancher/create",{type:i.k$.PROJECT_ROLE_TEMPLATE_BINDING,roleTemplateId:this.roleTemplateName,[t]:e?.id,projectId:this.projectName,projectRoleTemplateId:"",id:this.id?.replace("/",":")},{root:!0})})()}async save(){const e=await this.norman;return e.save()}async remove(){const e=await this.norman;await e.remove({url:`/v3/projectRoleTemplateBindings/${e.id}`})}}},4799:function(e,t,n){"use strict";n.r(t),n.d(t,{CATTLE_API_GROUP:function(){return l},CREATE_VERBS:function(){return d},SUBTYPE_MAPPING:function(){return c},VERBS:function(){return u},default:function(){return h}});var r=n(76978),i=n(2841),a=n(35664),o=n(63928),s=n(14220);const l=".cattle.io",c={GLOBAL:{key:"GLOBAL",type:"management.cattle.io.globalrole",defaultKey:"newUserDefault",id:"GLOBAL",labelKey:"rbac.roletemplate.subtypes.GLOBAL.label"},CLUSTER:{key:"CLUSTER",type:"management.cattle.io.roletemplate",context:"cluster",defaultKey:"clusterCreatorDefault",id:"CLUSTER",labelKey:"rbac.roletemplate.subtypes.CLUSTER.label"},NAMESPACE:{key:"NAMESPACE",type:"management.cattle.io.roletemplate",context:"project",defaultKey:"projectCreatorDefault",id:"NAMESPACE",labelKey:"rbac.roletemplate.subtypes.NAMESPACE.label"},RBAC_ROLE:{key:"RBAC_ROLE",type:"rbac.authorization.k8s.io.role",id:"RBAC_ROLE",labelKey:"rbac.roletemplate.subtypes.RBAC_ROLE.label"},RBAC_CLUSTER_ROLE:{key:"RBAC_CLUSTER_ROLE",type:"rbac.authorization.k8s.io.clusterrole",id:"RBAC_CLUSTER_ROLE",labelKey:"rbac.roletemplate.subtypes.RBAC_CLUSTER_ROLE.label"}},u=["create","delete","get","list","patch","update","watch"],d=new Set(["PUT","blocked-PUT"]);class h extends o.A{get customValidationRules(){return[{path:"rules",validators:[`roleTemplateRules:${this.type}`],nullable:!1,type:"array"}]}get details(){const e=this._details;return e.unshift({label:this.t("resourceDetail.detailTop.name"),content:(0,r.Jt)(this,"name")},{label:this.t("resourceDetail.detailTop.description"),content:this.metadata?.annotations?.[i.tC]}),e}get state(){return this.locked?"locked":this.metadata?.state?.name||"unknown"}get subtype(){return this._subtype?this._subtype:this.type===c.CLUSTER.type&&this.context===c.CLUSTER.context?c.CLUSTER.key:this.type===c.NAMESPACE.type&&this.context===c.NAMESPACE.context?c.NAMESPACE.key:null}updateSubtype(e){this["_subtype"]=e,this.context=c[e].context}get default(){const e=c[this.subtype]?.defaultKey;return!!this[e]}updateDefault(e){const t=c[this.subtype].defaultKey;this[t]=e}get listLocation(){return{name:"c-cluster-auth-roles",hash:`#${this.subtype}`}}get detailLocation(){return{...this._detailLocation,name:"c-cluster-auth-roles-resource-id"}}get doneOverride(){return this.listLocation}get parentLocationOverride(){return this.listLocation}get basicNorman(){return this.id?this.$dispatch("rancher/find",{id:this.id,type:a.k$.ROLE_TEMPLATE},{root:!0}):this.$dispatch("rancher/create",{type:a.k$.ROLE_TEMPLATE,name:this.displayName},{root:!0})}get norman(){return(async()=>{const e=await this.basicNorman;return e.rules=this.rules,e.locked=this.locked,e.clusterCreatorDefault=this.clusterCreatorDefault||!1,e.projectCreatorDefault=this.projectCreatorDefault||!1,e.context=this.context,e.description=this.description,e.roleTemplateIds=this.roleTemplateNames,e})()}get canCreate(){const e=this.$getters["schemaFor"](this.type);return e?.resourceMethods.find((e=>d.has(e)))}goToClone(e={}){const t=this.detailLocation;t.query={...t.query,[s.g]:s.dT,[s.AS]:s.xz,roleContext:this.subtype,...e},this.currentRouter().push(t)}async save(){const e=await this.norman;for(const t of e.rules)t.nonResourceURLs&&t.nonResourceURLs.length?(delete t.resources,delete t.apiGroups):delete t.nonResourceURLs;return e.save()}async remove(){const e=await this.norman;await e.remove()}}},76061:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(9262),i=n(82614),a=n(68094),o=n(11518),s=n(14220);class l extends i.A{get fromEnv(){return"env"===(this.source||"").toLowerCase()}get _availableActions(){const e=["cloneYaml","download","goToEditYaml","goToViewYaml","goToViewConfig"],t=r.Df[this.id];let n=super._availableActions;t?.readOnly&&e.push("goToEdit"),n=n.filter((t=>!e.includes(t.action)));const i=n.find((e=>"goToEdit"===e.action));return i&&(i.label=this.t("advancedSettings.edit.label")),n}get customValidationRules(){const e=[];return(0,a.L6)(this.metadata.name)&&e.push({path:"value",validators:["required","https","url","trailingForwardSlash"]}),e}goToEdit(e={}){this.$rootGetters["currentProduct"].inStore===o.T3?(location.name=`${o.T3}-c-cluster-brand`,location.params={cluster:this.$rootGetters["currentCluster"].id,product:o.T3},location.query={...location.query,[s.g]:s.G5,[s.AS]:s.xz,...e},this.currentRouter().push(location)):super.goToEdit()}}},69754:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(35664),i=n(82614),a=n(23464),o=n.n(a);class s extends i.A{constructor(e,t,n=null,r=!1){const i=e.description;super(e,t,n,r),this.description=i}cleanResource(e){const t=e.description,n=(0,i.T)(e);return n._description=t,n}get isSystem(){for(const e of this.principalIds||[])if(e.startsWith("system://"))return!0;return!1}get isCurrentUser(){const e=this.$rootGetters["auth/principalId"];return!!(this.principalIds||[]).find((t=>t===e))}get principals(){return this.principalIds.map((e=>this.$rootGetters["rancher/byId"](r.k$.PRINCIPAL,e))).filter((e=>e))}get nameDisplay(){return this.displayName||this.username||this.id}get labelForSelect(){const e=this.nameDisplay,t=this.id;return e===t?t:`${e} (${t})`}get provider(){const e=this.principalIds||[];let t,n=!1,r=!0,i="";for(const a of e){const e=a.indexOf(":"),t=a.substr(0,e).toLowerCase().split("_")[0];"system"===t?n=!0:"local"===t||(r=!1,i=i?"multiple":t)}return t=n?"system":r?"local":i,t}get providerDisplay(){return this.$rootGetters["i18n/withFallback"](`model.authConfig.provider."${this.provider}"`,null,this.provider)}get userLastLogin(){return 1e3*this.metadata?.labels?.["cattle.io/last-login"]||0}get userDisabledIn(){return 1e3*this.metadata?.labels?.["cattle.io/disable-after"]||0}get userDisabledInDisplay(){return"inactive"===this.state?null:this.userDisabledIn}get userDeletedIn(){return 1e3*this.metadata?.labels?.["cattle.io/delete-after"]||0}get state(){return!1===this.enabled?"inactive":this.metadata?.state?.name||"unknown"}get stateDisplay(){switch(this.state){case"inactive":return this.t("user.state.inactive");case"active":return this.t("user.state.active");case"unknown":return this.t("user.state.unknown");default:return this.state}}get description(){return this._description}set description(e){this._description=e}toJSON(){const e=super.toJSON();return e.description=this._description,delete e._description,e}async save(e){const t=await this.$dispatch("clone",{resource:this});return delete t.canRefreshAccess,t._save(e)}async setEnabled(e){const t=await this.$dispatch("rancher/clone",{resource:this.norman},{root:!0});t.enabled=e,await t.save()}async activate(){await this.setEnabled(!0)}async activateBulk(e){await Promise.all(e.map((e=>e.setEnabled(!0))))}async deactivate(){await this.setEnabled(!1)}async deactivateBulk(e){await Promise.all(e.map((e=>e.setEnabled(!1))))}async refreshGroupMembership(){const e=await this.$dispatch("rancher/find",{type:r.k$.USER,id:this.id},{root:!0});await e.doAction("refreshauthprovideraccess")}canActivate(e){const t=e?"inactive"===this.state:"active"===this.state,n=this.hasLink("update");return t&&n&&!this.isCurrentUser}get _availableActions(){return[{action:"activate",label:this.t("action.enable"),icon:"icon icon-play",bulkable:!0,bulkAction:"activateBulk",enabled:this.canActivate(!0),weight:2},{action:"deactivate",label:this.t("action.disable"),icon:"icon icon-pause",bulkable:!0,bulkAction:"deactivateBulk",enabled:this.canActivate(!1),weight:1},{action:"refreshGroupMembership",label:this.t("authGroups.actions.refresh"),icon:"icon icon-refresh",enabled:this.canRefreshAccess},{divider:!0},...super._availableActions]}get details(){return[{label:this.t("user.detail.username"),formatter:"CopyToClipboard",content:this.username},{separator:!0},{label:this.t("tableHeaders.userLastLogin"),formatter:"LiveDate",formatterOpts:{addSuffix:!0,suffix:`${this.t("suffix.ago")} (${o()(this.userLastLogin)})`},content:this.userLastLogin},{label:this.t("tableHeaders.userDisabledIn"),formatter:"LiveDate",formatterOpts:{isCountdown:!0},content:this.userDisabledInDisplay},{label:this.t("tableHeaders.userDeletedIn"),formatter:"LiveDate",formatterOpts:{isCountdown:!0},content:this.userDeletedIn},...this._details]}get confirmRemove(){return!0}get norman(){return this.$rootGetters["rancher/byId"](r.k$.USER,this.id)}get canDelete(){return this.norman?.hasLink("remove")&&!this.isCurrentUser}get canUpdate(){return this.norman?.hasLink("update")}remove(){return this.norman?.remove()}}},95694:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(45858);class i extends r["default"]{}},86465:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(35664),i=n(95799),a=n(25184);class o extends a.A{get cpuUsage(){return(0,i.ao)(this?.usage?.cpu||"0")}get cpuCapacity(){return(0,i.ao)(this.$rootGetters[`${this.inStore}/byId`](r.NW,this.id)?.status?.allocatable?.cpu||"0")}get cpuUsagePercentage(){return(1e4*this.cpuUsage/this.cpuCapacity).toString()}get memoryUsage(){return(0,i.ao)(this?.usage?.memory||"0")}get memoryCapacity(){return(0,i.ao)(this.$rootGetters[`${this.inStore}/byId`](r.NW,this.id)?.status?.capacity?.memory||"0")}get memoryUsagePercentage(){return(1e4*this.ramUsage/this.ramCapacity).toString()}get storageUsage(){return(0,i.ao)(this.$rootGetters[`${this.inStore}/byId`](r.NW,this.id)?.status?.capacity?.["ephemeral-storage"])-(0,i.ao)(this.$rootGetters[`${this.inStore}/byId`](r.NW,this.id)?.status?.allocatable?.["ephemeral-storage"])}get storageTotal(){return(0,i.ao)(this.$rootGetters[`${this.inStore}/byId`](r.NW,this.id)?.status?.capacity?.["ephemeral-storage"])}get inStore(){return this.$rootGetters["currentProduct"].inStore}}},34858:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(25184),i=n(35664),a=n(14220),o=n(76978);class s extends r.A{applyDefaults(){if(this.spec)return this.spec;const e=this.spec?.route?.receivers||[],t={receivers:[...e],route:{receivers:this.spec?.route?.receivers||[],groupBy:this.spec?.route?.groupBy||[],groupWait:this.spec?.route?.groupWait||"30s",groupInterval:this.spec?.route?.groupInterval||"5m",repeatInterval:this.spec?.route?.repeatInterval||"4h",match:this.spec?.route?.match||{},matchRe:this.spec?.route?.matchRe||{}}};(0,o.hZ)(this,"spec",t)}get _availableActions(){const e=super._availableActions;return e}getReceiverActions(e){return e.filter((e=>{if(e.divider)return!0;switch(e.action){case"goToEdit":return!0;case"goToEditYaml":return!0;case"promptRemove":return!0;default:return!1}}))}get alertmanagerConfigDoneRouteName(){return"c-cluster-product-resource-namespace-id"}get _detailLocation(){return{name:this.alertmanagerConfigDoneRouteName,params:{cluster:this.$rootGetters["clusterId"],product:"monitoring",resource:i.Rp.ALERTMANAGERCONFIG,namespace:this.metadata?.namespace,id:this.name},hash:"#receivers",query:{as:"config"}}}getCreateReceiverRoute(){return{name:"c-cluster-monitoring-alertmanagerconfig-alertmanagerconfigid-receiver",params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id},query:{mode:a.YQ,currentView:a.au}}}getReceiverDetailLink(e){return{name:"c-cluster-monitoring-alertmanagerconfig-alertmanagerconfigid-receiver",params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id,receiverName:e},query:{mode:a.nW,receiverName:e,currentView:a.au}}}getEditReceiverYamlRoute(e,t){return{name:"c-cluster-monitoring-alertmanagerconfig-alertmanagerconfigid-receiver",params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id},query:{mode:t||a.nW,receiverName:e,currentView:a.zD}}}getEditReceiverConfigRoute(e,t){return{name:"c-cluster-monitoring-alertmanagerconfig-alertmanagerconfigid-receiver",params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id},query:{mode:t||a.nW,receiverName:e,currentView:a.au}}}}},67750:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(25184);class i extends r.A{get _detailLocation(){const e=this.id?.replace(/.*\//,"");return{name:"c-cluster-monitoring-monitor-namespace-id",params:{cluster:this.$rootGetters["clusterId"],id:e,namespace:this.metadata.namespace},query:{resource:this.type}}}get doneOverride(){return{name:"c-cluster-monitoring-monitor",params:{cluster:this.$rootGetters["clusterId"]},query:{resource:this.type}}}}},61403:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(25184);class i extends r.A{get _availableActions(){const e=super._availableActions.filter((e=>!this.metadata.name.includes(".")||!["goToEdit","goToEditYaml","goToClone"].includes(e.action)));return e}get customValidationRules(){return[{nullable:!1,path:"metadata.name",required:!0,translationKey:"generic.name",type:"dnsLabel"},{nullable:!1,path:"spec",required:!0,type:"array",validators:["ruleGroups"]},{nullable:!1,path:"spec.groups",required:!0,type:"array",validators:["groupsAreValid"]}]}}},57e3:function(e,t,n){"use strict";n.r(t),n.d(t,{RECEIVERS_TYPES:function(){return c},default:function(){return u}});var r=n(39589),i=n(76978),a=n(35664),o=n(20246),s=n.n(o),l=n(25184);const c=[{name:"slack",label:"monitoringReceiver.slack.label",title:"monitoringReceiver.slack.title",info:"monitoringReceiver.slack.info",key:"slack_configs",logo:n(69742)},{name:"email",label:"monitoringReceiver.email.label",title:"monitoringReceiver.email.title",key:"email_configs",logo:n(41778)},{name:"pagerduty",label:"monitoringReceiver.pagerduty.label",title:"monitoringReceiver.pagerduty.title",info:"monitoringReceiver.pagerduty.info",key:"pagerduty_configs",logo:n(75495)},{name:"opsgenie",label:"monitoringReceiver.opsgenie.label",title:"monitoringReceiver.opsgenie.title",key:"opsgenie_configs",logo:n(41778)},{name:"webhook",label:"monitoringReceiver.webhook.label",title:"monitoringReceiver.webhook.title",key:"webhook_configs",logo:n(94569),banner:"webhook.banner",addButton:"webhook.add"},{name:"custom",label:"monitoringReceiver.custom.label",title:"monitoringReceiver.custom.title",info:"monitoringReceiver.custom.info",key:"webhook_configs",logo:n(98283)}];class u extends l.A{get removeSerially(){return!0}remove(){return this.updateReceivers((e=>e.filter((e=>e.name!==this.spec?.name))))}async save(){const e=this.validationErrors(this);return(0,i.Im)(e)?(await this.updateReceivers((e=>{const t=e.find((e=>e.name===this.spec?.name));return t?Object.assign(t,this.spec):e.push(this.spec),e})),{}):Promise.reject(e)}get canUpdate(){return this.secret.canUpdate}get canCustomEdit(){return!0}get canCreate(){return(0,r.BA)(this.$rootGetters)}get canDelete(){return"null"!==this.id&&"null"!==!this.spec.name&&this.secret.canDelete}get canViewInApi(){return!1}get canYaml(){return!0}get _detailLocation(){return{name:"c-cluster-monitoring-route-receiver-id",params:{cluster:this.$rootGetters["clusterId"],id:this.id},query:{resource:this.type}}}get doneOverride(){return{name:"c-cluster-monitoring-route-receiver",params:{cluster:this.$rootGetters["clusterId"]},query:{resource:this.type}}}get receiverTypes(){const e=c.filter((e=>"custom"!==e.name&&this.spec[e.key]?.length>0)).map((e=>this.t(e.label))),t=c.map((e=>e.key)).filter((e=>"custom"!==e));t.push("name");const n=Object.keys(this.spec).filter((e=>!t.includes(e)));if(n.length>0){const t=this.t(c.find((e=>"custom"===e.name)).label);e.push(t)}return e}get updateReceivers(){return e=>(0,r._R)(this.$dispatch,"receivers",this.type,e)}saveYaml(e){const t=s().load(e);return Object.assign(this,t),this.save()}get customValidationRules(){const e=[{nullable:!1,path:"spec.name",required:!0,translationKey:"monitoring.receiver.fields.name"}];return e}get routes(){if(!this.$rootGetters["cluster/haveAll"](a.Rp.SPOOFED.ROUTE))throw new Error("The routes have not been loaded");return this.$rootGetters["cluster/all"](a.Rp.SPOOFED.ROUTE)}get hasDependentRoutes(){return!!this.routes.find((e=>e.spec.receiver===this.id))}get preventDeletionMessage(){return this.hasDependentRoutes?"There are still routes using this receiver. You cannot delete this receiver while it's in use.":null}}},55162:function(e,t,n){"use strict";n.r(t),n.d(t,{ROOT_NAME:function(){return u},default:function(){return d}});var r=n(76978),i=n(39589),a=n(35664);n(86565),n(68774);const o="monitoring";var s=n(20246),l=n.n(s),c=n(25184);const u="root";class d extends c.A{applyDefaults(){const e=this.spec||{};e.group_by=e.group_by||[],e.group_wait=e.group_wait||"30s",e.group_interval=e.group_interval||"5m",e.repeat_interval=e.repeat_interval||"4h",e.match=e.match||{},e.match_re=e.match||{},(0,r.hZ)(this,"spec",e)}get removeSerially(){return!0}remove(){return this.updateRoutes((e=>e.filter(((e,t)=>(0,i.Eb)(t)!==this.id))))}async save(){const e=this.validationErrors(this);return(0,r.Im)(e)?(await this.updateRoutes((e=>{const t=e.find(((e,t)=>(0,i.Eb)(t)===this.id));return t?Object.assign(t,this.spec):e.push(this.spec),e})),{}):Promise.reject(e)}get canUpdate(){return this.secret.canUpdate}get canCustomEdit(){return!0}get canCreate(){return(0,i.BA)(this.$rootGetters)&&(0,i.gb)(this.secret)}get canDelete(){return!this.isRoot&&this.secret.canDelete}get canViewInApi(){return!1}get canYaml(){return(0,i.gb)(this.secret)}get _detailLocation(){return{name:"c-cluster-monitoring-route-receiver-id",params:{cluster:this.$rootGetters["clusterId"],id:this.id},query:{resource:this.type}}}get doneOverride(){return{name:"c-cluster-monitoring-route-receiver",params:{cluster:this.$rootGetters["clusterId"]},query:{resource:this.type}}}get customValidationRules(){const e=[{nullable:!1,path:"spec.receiver",required:!0,translationKey:"monitoring.route.fields.receiver"},{path:"spec.group_wait",validators:["interval"],translationKey:"monitoring.route.fields.groupWait"},{path:"spec.group_interval",validators:["interval"],translationKey:"monitoring.route.fields.groupInterval"},{path:"spec.repeat_interval",validators:["interval"],translationKey:"monitoring.route.fields.repeatInterval"}];return this.isRoot||e.push({path:"spec",validators:["matching"]}),e}updateRoutes(e){return(0,i._R)(this.$dispatch,"route.routes",this.type,e)}get isRoot(){return this.id===u}saveYaml(e){const t=l().load(e);return Object.assign(this,t),this.save()}get receiverLink(){return{text:this.spec.receiver,to:{name:"c-cluster-product-resource-id",params:{resource:a.Rp.SPOOFED.RECEIVER,product:o,id:this.spec.receiver}}}}}},906:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(25184);class i extends r.A{get _detailLocation(){const e=this.id?.replace(/.*\//,"");return{name:"c-cluster-monitoring-monitor-namespace-id",params:{cluster:this.$rootGetters["clusterId"],id:e,namespace:this.metadata.namespace},query:{resource:this.type}}}get doneOverride(){return{name:"c-cluster-monitoring-monitor",params:{cluster:this.$rootGetters["clusterId"]},query:{resource:this.type}}}}},67867:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return S}});var r=n(71025),i=n(2841),a=n(35664),o=n(76978),s=n(92043),l=n(68851),c=n(25184),u=n(11518),d=n(45250);const h="pod-security.kubernetes.io/",p=["enforce","audit","warn"],f=["privileged","baseline","restricted"],m=(f[0],p.reduce(((e,t)=>[...e,`${h}${t}`]),[])),g=p.reduce(((e,t)=>[...e,`${h}${t}-version`]),[]),v=[...m,...g],b=Object.assign({},...v.map((e=>({[e]:"icon-pod_security"})))),y=e=>(0,d.filter)((0,d.keys)(e?.metadata?.labels),(e=>v.includes(e))),w=e=>y(e).length>0,E=e=>(0,d.reduce)(e?.metadata?.labels,((t,n,r)=>{const i=v.includes(r),a="-version",o=r.includes(a),l=e?.metadata?.labels[`${r}${a}`],c=l||"latest";return i&&!o?{...t,[r]:`${(0,s._R)(r.replace(h,""))} ${(0,s._R)(n)} (${c})`}:t}),{}),_=["c-","p-","user-","local"];class S extends c.A{applyDefaults(){(0,o.hZ)(this,"disableOpenApiValidation",!1)}get _availableActions(){const e=super._availableActions;return(0,l.PT)(e,0,{divider:!0}),this.istioInstalled&&((0,l.PT)(e,0,{action:"enableAutoInjection",label:this.t("namespace.enableAutoInjection"),bulkable:!0,bulkAction:"enableAutoInjection",enabled:!this.injectionEnabled,icon:"icon icon-plus",weight:2}),(0,l.PT)(e,0,{action:"disableAutoInjection",label:this.t("namespace.disableAutoInjection"),bulkable:!0,bulkAction:"disableAutoInjection",enabled:this.injectionEnabled,icon:"icon icon-minus",weight:1})),this.$rootGetters["isRancher"]&&!this.$rootGetters["isSingleProduct"]&&(0,l.PT)(e,0,{action:"move",label:this.t("namespace.move"),bulkable:!0,bulkAction:"move",enabled:!0,icon:"icon icon-fork",weight:3}),e}move(e=this){this.$dispatch("promptMove",e)}get isSystem(){return"true"===this.metadata?.annotations?.[i.eG]||(!!r.A.includes(this.metadata.name)||(!(!this.metadata.name.startsWith("cattle-")||!this.metadata.name.endsWith("-system"))||!!this.project&&this.project.isSystem))}get isFleetManaged(){return"true"===(0,o.Jt)(this,`metadata.labels."${i.Hs.MANAGED}"`)}get isObscure(){return _.some((e=>this.metadata.name.startsWith(e)))&&this.isSystem}get projectId(){const e=this.metadata?.annotations?.[i.yl]||"";return e.split(":")[1]||null}get project(){if(!this.projectId||!this.$rootGetters["isRancher"])return null;const e=this.$rootGetters["currentCluster"]?.id,t=this.$rootGetters["management/byId"](a.Mc.PROJECT,`${e}/${this.projectId}`);return t}get groupByLabel(){const e=this.project?.nameDisplay;return e?this.$rootGetters["i18n/t"]("resourceTable.groupLabel.project",{name:(0,s.ZD)(e)}):this.$rootGetters["i18n/t"]("resourceTable.groupLabel.notInAProject")}get projectNameSort(){return this.project?.nameSort||""}get istioInstalled(){const e=this.$rootGetters["cluster/schemaFor"](a.B9.GATEWAY);return!!e}get injectionEnabled(){return"enabled"===this.labels[i.B9.AUTO_INJECTION]}enableAutoInjection(e=this,t=!0){(0,l.cy)(e)||(e=[e]),e.forEach((e=>{!t&&e?.metadata?.labels?delete e.metadata.labels[i.B9.AUTO_INJECTION]:(e.metadata.labels||(e.metadata.labels={}),e.metadata.labels[i.B9.AUTO_INJECTION]="enabled"),e.save()}))}disableAutoInjection(e=this){this.enableAutoInjection(e,!1)}get confirmRemove(){return!0}get listLocation(){const e={name:this.$rootGetters["isRancher"]?"c-cluster-product-projectsnamespaces":"c-cluster-product-resource"};return this.$rootGetters["currentProduct"].inStore===u.T3&&(e.name=`${u.T3}-${e.name}`.replace("-product",""),e.params={resource:"namespace"}),e}get _detailLocation(){const e=super._detailLocation;return e}get parentLocationOverride(){return this.listLocation}get doneOverride(){return this.listLocation}get resourceQuota(){return JSON.parse(this.metadata.annotations[i._n]||'{"limit":{}}')}set resourceQuota(e){this.metadata.annotations[i._n]=JSON.stringify(e)}get detailTopTooltips(){return this.psaTooltipsDescription}get detailTopIcons(){return b}get hasSystemLabels(){return w(this)}get filteredSystemLabels(){return Object.entries(this.labels).reduce(((e,[t,n])=>(g.includes(t)||(e[t]=n),e)),{})}get systemLabels(){return y(this)}get psaTooltipsDescription(){return E(this)}cleanForNew(){const e=this.metadata?.labels?.[i.yl];super.cleanForNew(),e&&(this.metadata=this.metadata||{},this.metadata.labels=this.metadata.labels||{},this.metadata.labels[i.yl]=e)}get hideDetailLocation(){return!!this.$rootGetters["currentProduct"].hideNamespaceLocation}}},1835:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(25184);class i extends r.A{applyDefaults(){this["spec"]={host:"",subsets:[],trafficPolicy:{loadBalancer:{simple:"ROUND_ROBIN"},connectionPool:{tcp:{},http:{}},outlierDetection:{},tls:{}}}}}},67462:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p},ingressFullPath:function(){return h}});var r=n(35664),i=n(24138),a=n.n(i),o=n(76978),s=n(3514),l=n.n(s),c=n(25184);function u(e){const t=e.tls||[];return t.flatMap((e=>e.hosts||[]))}function d(e,t){return u(e).includes(t)}function h(e,t,n={}){const r=e.spec,i=t.host||"",a=n.path||"";let o="";return i&&(o=d(r,i)?"https://":"http://"),`${o}${i}${a}`}class p extends c.A{get tlsHosts(){return u(this.spec)}get isTlsHost(){return e=>d(this.spec,e)}targetTo(e,t){if(!t)return null;const n=t.startsWith("ingress-"),i=`${this.namespace}/${t}`;if(n){const t=e.find((e=>e.id===i));return t?.detailLocation||""}return{name:"c-cluster-product-resource-namespace-id",params:{resource:r.YV,id:t,namespace:this.namespace}}}createRulesForListPage(e,t){const n=this.spec.rules||[];return n.flatMap((n=>{const r=n?.http?.paths||[];return r.map((r=>this.createPathForListPage(e,n,r,t)))}))}createPathForListPage(e,t,n,r){const i=(0,o.Jt)(n?.backend,this.serviceNamePath),s=this.fullPath(t,n);return{isUrl:a()(s)&&!s.includes("*"),pathType:n.pathType,fullPath:s,serviceName:i,serviceTargetTo:this.targetTo(e,i),certs:this.certLinks(t,r),targetLink:this.targetLink(e,i),port:(0,o.Jt)(n?.backend,this.servicePortPath)}}fullPath(e,t){return h(this,e,t)}certLink(e,t=[]){const n=e.secretName||this.t("ingress.rulesAndCertificates.defaultCertificate");let i;return e.secretName&&t.includes(n)&&(i={name:"c-cluster-product-resource-namespace-id",params:{resource:r.bB,id:n}}),{to:i,text:n,options:{internal:!0}}}certLinks(e,t){const n=this.spec.tls||[],r=n.filter((t=>{const n=t.hosts||[];return n.includes(e.host)}));return r.map((e=>this.certLink(e,t)))}targetLink(e,t){return{to:this.targetTo(e,t),text:t,options:{internal:!0}}}createDefaultService(e){const t=(0,o.Jt)(this.spec,this.defaultBackendPath),n=(0,o.Jt)(t,this.serviceNamePath);return n?{name:n,targetTo:this.targetTo(e,n)}:null}get cache(){return this.cacheObject||(this.cacheObject={}),this.cacheObject}get showPathType(){return this.cache.showPathType||(this.cache.showPathType=this.$rootGetters["cluster/pathExistsInSchema"](this.type,"spec.rules.http.paths.pathType")),this.cache.showPathType}get useNestedBackendField(){return this.cache.useNestedBackendField||(this.cache.useNestedBackendField=this.$rootGetters["cluster/pathExistsInSchema"](this.type,"spec.rules.http.paths.backend.service.name")),this.cache.useNestedBackendField}get serviceNamePath(){const e="service.name",t="serviceName";return this.useNestedBackendField?e:t}get servicePortPath(){const e="service.port.number",t="servicePort";return this.useNestedBackendField?e:t}get defaultBackendPath(){const e=this.$rootGetters["cluster/pathExistsInSchema"](this.type,"spec.defaultBackend");return e?"defaultBackend":"backend"}get hasDefaultBackend(){return!l()(this.spec[this.defaultBackendPath])}get details(){const e=this._details;return this.spec?.ingressClassName&&e.push({label:this.t("ingress.ingressClass.label"),content:this.spec.ingressClassName}),e}}},80903:function(e,t,n){"use strict";n.r(t),n.d(t,{CLOUD_CREDENTIAL_OVERRIDE:function(){return i},default:function(){return a}});var r=n(81147);const i={nutanix:!0,oci:!0};class a extends r["default"]{get doneRoute(){return"c-cluster-manager-driver-nodedriver"}get _availableActions(){const e=[{action:"activate",label:this.t("action.activate"),icon:"icon icon-play",bulkable:!0,bulkAction:"activateBulk",enabled:!!this.actions?.activate&&"inactive"===this.state},{action:"deactivate",label:this.t("action.deactivate"),icon:"icon icon-pause",bulkable:!0,bulkAction:"deactivateBulk",enabled:!!this.actions?.deactivate&&"active"===this.state,weight:-1},{divider:!0},{action:"viewInApi",enabled:!0,icon:"icon icon-external-link",label:this.t("action.viewInApi")},{divider:!0},{action:"goToEdit",label:this.t("action.edit"),icon:"icon icon-edit",bulkable:!1,enabled:!!this.links.update&&!this.builtin},{action:"promptRemove",altAction:"remove",bulkAction:"promptRemove",label:this.t("action.remove"),bulkable:!0,icon:"icon icon-delete",enabled:!!this.links.update&&!this.active,weight:-10}];return e}deactivate(e=[this]){this.$dispatch("promptModal",{componentProps:{drivers:e,driverType:"nodeDrivers"},component:"DeactivateDriverDialog"})}deactivateBulk(e){this.$dispatch("promptModal",{componentProps:{drivers:e,driverType:"nodeDrivers"},component:"DeactivateDriverDialog"})}activate(){return this.$dispatch("rancher/request",{url:`v3/nodeDrivers/${escape(this.id)}?action=activate`,method:"post"},{root:!0})}async activateBulk(e){await Promise.all(e.map((e=>this.$dispatch("rancher/request",{url:`v3/nodeDrivers/${escape(e.id)}?action=activate`,method:"post"},{root:!0}))))}}},13070:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(35664);const i=[{labelKey:"persistentVolume.awsElasticBlockStore.label",value:"awsElasticBlockStore",supported:!0},{labelKey:"persistentVolume.azureDisk.label",value:"azureDisk",supported:!0},{labelKey:"persistentVolume.azureFile.label",value:"azureFile",supported:!0},{labelKey:"persistentVolume.cephfs.label",value:"cephfs"},{labelKey:"persistentVolume.rbd.label",value:"rbd"},{labelKey:"persistentVolume.csi.label",value:"csi",supported:!0},{labelKey:"persistentVolume.fc.label",value:"fc"},{labelKey:"persistentVolume.flexVolume.label",value:"flexVolume"},{labelKey:"persistentVolume.flocker.label",value:"flocker"},{labelKey:"persistentVolume.glusterfs.label",value:"glusterfs"},{labelKey:"persistentVolume.gcePersistentDisk.label",value:"gcePersistentDisk",supported:!0},{labelKey:"persistentVolume.hostPath.label",value:"hostPath",supported:!0},{labelKey:"persistentVolume.iscsi.label",value:"iscsi"},{labelKey:"persistentVolume.local.label",value:"local",supported:!0},{labelKey:"persistentVolume.longhorn.label",value:"longhorn",supported:!0},{labelKey:"persistentVolume.nfs.label",value:"nfs",supported:!0},{labelKey:"persistentVolume.cinder.label",value:"cinder"},{labelKey:"persistentVolume.photonPersistentDisk.label",value:"photonPersistentDisk"},{labelKey:"persistentVolume.portworxVolume.label",value:"portworxVolume"},{labelKey:"persistentVolume.quobyte.label",value:"quobyte"},{labelKey:"persistentVolume.scaleIO.label",value:"scaleIO"},{labelKey:"persistentVolume.storageos.label",value:"storageos"},{labelKey:"persistentVolume.vsphereVolume.label",value:"vsphereVolume",supported:!0}];i.find((e=>"longhorn"===e.value));var a=n(25184);class o extends a.A{get source(){const e=this.spec?.csi?.driver,t=`${e} ${this.t("persistentVolume.csi.suffix")}`;if(e)return this.$rootGetters["i18n/withFallback"](`persistentVolume.csi.drivers.${e.replaceAll(".","-")}`,null,t);const n=i.find((e=>this.spec[e.value]));return n?this.t(n.labelKey):this.t("generic.unknown")}get isLonghorn(){return this.spec.csi&&this.spec.csi.driver===r.lI}get claim(){return this.name?this.$getters["all"](r.YH).find((e=>e.spec.volumeName===this.name)):null}get claimName(){return this.claim?.nameDisplay||this.t("generic.na")}get canDelete(){return"bound"!==this.state}}},17544:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(68851),i=n(14220),a=n(25184),o=n(73883),s=n(35664);class l extends a.A{applyDefaults(e,t){const n=t===i.dT?this.spec.accessModes:[],r=t===i.dT?this.spec.resources.requests.storage:null;this["spec"]={accessModes:n,storageClassName:"",volumeName:"",resources:{requests:{storage:r}}}}get bound(){return this.state===o.jv.BOUND}get expandable(){return!!this.$getters["byId"](s.fJ,this.spec?.storageClassName)?.allowVolumeExpansion}get _availableActions(){const e=super._availableActions;return(0,r.PT)(e,0,{divider:!0}),(0,r.PT)(e,0,{action:"goToEditVolumeSize",enabled:this.expandable&&this.bound,icon:"icon icon-fw icon-plus",label:this.t("persistentVolumeClaim.expand.label")}),e}goToEditVolumeSize(){const e=this.detailLocation;e.query={...e.query,[i.g]:i.G5,[i.AS]:i.xz,[i.L_]:"volumeclaim"},this.currentRouter().push(e)}}},76006:function(e,t,n){"use strict";n.r(t),n.d(t,{WORKLOAD_PRIORITY:function(){return h},default:function(){return p}});var r=n(68851),i=n(73883),a=n(35664),o=n(92043),s=n(2505),l=n(76978);function c(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){var t=d(e,"string");return"symbol"==typeof t?t:t+""}function d(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}const h={[a.oU.DEPLOYMENT]:1,[a.oU.CRON_JOB]:2,[a.oU.DAEMON_SET]:3,[a.oU.STATEFUL_SET]:4,[a.oU.JOB]:5,[a.oU.REPLICA_SET]:6,[a.oU.REPLICATION_CONTROLLER]:7};class p extends s["default"]{constructor(...e){super(...e),c(this,"_os",void 0)}get inStore(){return this.$rootGetters["currentProduct"].inStore}set os(e){this._os=e}get os(){return this._os?this._os:this?.node?.status?.nodeInfo?.operatingSystem}get node(){try{const e=this.$store.getters["cluster/schemaFor"](a.NW);e&&this.$dispatch("find",{type:a.NW,id:this.spec.nodeName})}catch{}return this.$getters["byId"](a.NW,this.spec.nodeName)}get _availableActions(){const e=super._availableActions;return(0,r.PT)(e,0,{divider:!0}),(0,r.PT)(e,0,this.openLogsMenuItem),(0,r.PT)(e,0,this.openShellMenuItem),e}get openShellMenuItem(){return{action:"openShell",enabled:!!this.links.view&&this.isRunning,icon:"icon icon-fw icon-chevron-right",label:"Execute Shell",total:1}}get openLogsMenuItem(){return{action:"openLogs",enabled:!!this.links.view,icon:"icon icon-fw icon-chevron-right",label:"View Logs",total:1}}get containerActions(){const e=[];return(0,r.PT)(e,0,this.openLogsMenuItem),(0,r.PT)(e,0,this.openShellMenuItem),e}get defaultContainerName(){const e=this.spec.containers,t=e.filter((e=>"istio-proxy"!==e.name));return t.length?t[0].name:e[0]?.name}openShell(e=this.defaultContainerName){this.$dispatch("wm/open",{id:`${this.id}-shell`,label:this.nameDisplay,icon:"terminal",component:"ContainerShell",attrs:{pod:this,initialContainer:e}},{root:!0})}openLogs(e=this.defaultContainerName){this.$dispatch("wm/open",{id:`${this.id}-logs`,label:this.nameDisplay,icon:"file",component:"ContainerLogs",attrs:{pod:this,initialContainer:e}},{root:!0})}containerStateDisplay(e){const t=Object.keys(e.state||{})[0];return(0,i.ch)(t)}containerStateColor(e){const t=Object.keys(e.state||{})[0];return(0,i.uU)(t)}containerIsInit(e){const{initContainers:t=[]}=this.spec;return t.includes(e)}get imageNames(){return this.spec.containers.map((e=>(0,o.qO)(e.image)))}get workloadRef(){const e=this.getOwners()||[],t=e.filter((e=>Object.values(a.oU).includes(e.type))).sort(((e,t)=>{const n=h[e.type],r=h[t.type];return n-r}));return t[0]}get ownedByWorkload(){return!!this.workloadRef}get details(){const e=[{label:this.t("workload.detailTop.podIP"),content:this.status.podIP}];return this.workloadRef&&e.push({label:"Workload",formatter:"LinkName",formatterOpts:{value:this.workloadRef.name,type:this.workloadRef.type,namespace:this.workloadRef.namespace},content:this.workloadRef.name}),this.spec.nodeName&&e.push({label:"Node",formatter:"LinkName",formatterOpts:{type:a.NW,value:this.spec.nodeName},content:this.spec.nodeName}),e}get isRunning(){return"Running"===this.status.phase}get groupByNode(){const e=this.spec?.nodeName||this.$rootGetters["i18n/t"]("generic.none");return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.node",{name:(0,o.ZD)(e)})}get restartCount(){return this.status.containerStatuses&&this.status?.containerStatuses[0].restartCount||0}processSaveResponse(e){if(e._headers&&e._headers.warning){const t=e._headers.warning.split("299")||[],n=t.filter((e=>e.includes("violate PodSecurity"))).length;n&&this.$dispatch("growl/warning",{title:this.$rootGetters["i18n/t"]("growl.podSecurity.title"),message:this.$rootGetters["i18n/t"]("growl.podSecurity.message"),timeout:5e3},{root:!0})}}save(){const e={...this},{metadata:t,spec:n}=this.spec.template;return this.spec={...this.spec,...n},this.metadata={...this.metadata,...t},delete this.spec.template,this._save(...arguments).catch((t=>(this.spec=e.spec,this.metadata=e.metadata,Promise.reject(t))))}cleanForSave(e){const t=super.cleanForSave(e);return t.spec?.containers?.forEach((e=>{this.cleanContainerForSave(e)})),t.spec?.initContainers?.forEach((e=>{this.cleanContainerForSave(e)})),(0,l.BJ)(t,"spec.selector"),t}}},97219:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(36313),i=n.n(r),a=n(4514),o=n(50667),s=n(92043),l=n(89865);class c extends l.A{get avatarSrc(){if("github"===this.provider)return(0,o.R_)(this.profilePicture,"s",80);{let e=this.id||"Unknown";e=e.replace(/[^:]+:\/\//,"");const t=(0,a.Fx)(e,"hex"),n=`data:image/png;base64,${new(i())(t,80,.01).toString()}`;return n}}get roundAvatar(){return"github"===this.provider}get providerSpecificType(){const e=this.id.replace(/:.*$/,"").split("_",2);return 2===e.length?e[1]:null}get displayType(){const e=this.$rootGetters["i18n/withFallback"](`model.authConfig.provider."${this.provider}"`,null,this.provider);return`${e} ${(0,s.TF)(this.providerSpecificType)}`}}},99493:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(35664),i=n(89865);class a extends i.A{get principalId(){return this.userPrincipalId||this.groupPrincipalId}get roleDisplay(){return this.roleTemplate?.nameDisplay}get roleDescription(){return this.roleTemplate?.description}get roleTemplate(){return this.$rootGetters["management/byId"](r.Mc.ROLE_TEMPLATE,this.roleTemplateId)}get steve(){return this.$dispatch("management/find",{type:r.Mc.PROJECT_ROLE_TEMPLATE_BINDING,id:this.id?.replace(":","/")},{root:!0})}get syncPrincipal(){return this.$rootGetters["rancher/byId"](r.k$.PRINCIPAL,this.principalId)}get nameDisplay(){return this.syncPrincipal?.nameDisplay||super.nameDisplay}}},47685:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var r=n(35664),i=n(25184),a=n(68851),o=n(76978),s=n(74302),l=n(92043),c=n(83288),u=n(14220),d=n(11518),h=n(2841),p=n(44660),f=n(4364);class m extends i.A{get details(){const e=[{label:this.t("cluster.detail.provisioner"),content:this.provisionerDisplay||this.t("generic.none")},{label:this.t("cluster.detail.machineProvider"),content:this.machineProvider?this.machineProviderDisplay:null},{label:this.t("cluster.detail.kubernetesVersion"),content:this.kubernetesVersion},{label:this.t("cluster.detail.machinePools"),content:this.pools.length},{label:this.t("cluster.detail.machines"),content:this.desired}].filter((e=>!!e.content)),t=this.rkeTemplate;return t&&e.push({label:this.t("cluster.detail.rkeTemplate"),formatter:"RKETemplateName",content:t}),this.machineProvider||e.splice(1,1),e}get creationTimestamp(){const e=Date.parse(this.metadata?.creationTimestamp),t=Date.parse(this.mgmt?.metadata?.creationTimestamp);return t&&t<e?this.mgmt?.metadata?.creationTimestamp:super.creationTimestamp}get detailsAction(){const e=this.mgmt?.isReady&&!this.hasError;return{action:"explore",label:this.$rootGetters["i18n/t"]("cluster.explore"),enabled:e}}get _availableActions(){const e=super._availableActions,t=this.mgmt?.isLocal;if(t){const t=e.findIndex((e=>"promptRemove"===e.action));t>-1&&e.splice(t,1)}const n=this.mgmt?.isReady,r=this.isRke2&&n&&this.canUpdate,i=n&&(this.isRke2&&this.canUpdate||this.isRke1&&this.mgmt?.hasAction("backupEtcd")),a=this.$getters["schemaFor"]("management.cattle.io.clustertemplate");let o=!1;a&&(a.resourceMethods?.includes("blocked-PUT")||a.resourceMethods?.includes("PUT"))&&(o=!0);const s=!!this.normanCluster?.actions?.saveAsTemplate,l=this.isRke1&&"rancherKubernetesEngine"===this.mgmt?.status?.driver&&!this.mgmt?.spec?.clusterTemplateName&&this.hasLink("update")&&o&&s,c=[{action:"openShell",label:this.$rootGetters["i18n/t"]("nav.shell"),icon:"icon icon-terminal",enabled:!!this.mgmt?.links.shell&&n},{action:"downloadKubeConfig",bulkAction:"downloadKubeConfigBulk",label:this.$rootGetters["i18n/t"]("nav.kubeconfig.download"),icon:"icon icon-download",bulkable:!0,enabled:this.mgmt?.hasAction("generateKubeconfig")},{action:"copyKubeConfig",label:this.t("cluster.copyConfig"),bulkable:!1,enabled:this.mgmt?.hasAction("generateKubeconfig"),icon:"icon icon-copy"},{action:"snapshotAction",label:this.$rootGetters["i18n/t"]("nav.takeSnapshot"),icon:"icon icon-snapshot",bulkAction:"snapshotBulk",bulkable:!0,enabled:i},{action:"restoreSnapshotAction",label:this.$rootGetters["i18n/t"]("nav.restoreSnapshot"),icon:"icon icon-fw icon-backup-restore",enabled:i},{action:"rotateCertificates",label:this.$rootGetters["i18n/t"]("nav.rotateCertificates"),icon:"icon icon-backup",enabled:r||this.mgmt?.hasAction("rotateCertificates")&&n},{action:"rotateEncryptionKey",label:this.$rootGetters["i18n/t"]("nav.rotateEncryptionKeys"),icon:"icon icon-refresh",enabled:r||this.isRke1&&this.mgmt?.hasAction("rotateEncryptionKey")&&n},{action:"saveAsRKETemplate",label:this.$rootGetters["i18n/t"]("nav.saveAsRKETemplate"),icon:"icon icon-folder",enabled:l},{divider:!0}];(this.cloudCredential?.canRenew||this.cloudCredential?.canBulkRenew)&&(e.splice(0,0,{divider:!0}),e.splice(0,0,{action:"renew",enabled:this.cloudCredential?.canRenew,bulkable:this.cloudCredential?.canBulkRenew,bulkAction:"renewBulk",icon:"icon icon-fw icon-refresh",label:this.$rootGetters["i18n/t"]("cluster.cloudCredentials.renew")}));const u=c.concat(e);if(this.isKev1){const e=u.find((e=>"goToEdit"===e.action));e&&(e.enabled=!1)}return this.customProvisionerHelper?.availableActions&&this.customProvisionerHelper?.availableActions(this,u)||u}get detailLocation(){if(!this.isKev1)return super.detailLocation}get normanCluster(){const e=this.status?.clusterName;if(!e)return null;const t=this.$rootGetters["rancher/byId"](r.k$.CLUSTER,e);return t}async findNormanCluster(){const e=this.status?.clusterName;return e?await this.$dispatch("rancher/find",{type:r.k$.CLUSTER,id:e},{root:!0}):null}explore(){const e={name:"c-cluster",params:{cluster:this.mgmt.id}};this.currentRouter().push(e)}async goToHarvesterCluster(){const e=await this.$dispatch("create",{...this,type:r.rk.CLUSTER});try{await e.goToCluster()}catch{}}goToViewYaml(){let e;this.isRke2||(e=this.mgmt?.detailLocation),e||(e=this.detailLocation),e.query={...e.query,[u.g]:u.nW,[u.AS]:u.zD},this.currentRouter().push(e)}get canDelete(){return super.canDelete&&"removing"!==this.stateObj?.name}get canEditYaml(){return!!this.isRke2&&super.canEditYaml}get isHostedKubernetesProvider(){const e=["AKS","EKS","GKE"];return e.includes(this.provisioner)}get isPrivateHostedProvider(){if(this.isHostedKubernetesProvider&&this.mgmt&&this.provisioner)switch(this.provisioner.toLowerCase()){case"gke":return this.mgmt.spec?.gkeConfig?.privateClusterConfig?.enablePrivateEndpoint;case"eks":return this.mgmt.spec?.eksConfig?.privateAccess;case"aks":return this.mgmt.spec?.aksConfig?.privateCluster}return!1}get isLocal(){return this.mgmt?.isLocal}get isKev1(){return p.KEV1.includes(this.mgmt?.spec?.genericEngineConfig?.driverName)}get isImported(){if(this.isLocal)return!1;if("k3s"===this.mgmt?.status?.provider||"rke2"===this.mgmt?.status?.provider)return this.mgmt?.status?.driver===this.mgmt?.status?.provider;const e=["aksConfig","eksConfig","gkeConfig"],t=e.filter((e=>!0===this.mgmt?.spec?.[e]?.imported)).length;return!!t||"imported"===this.provisioner}get isCustom(){return this.isRke2?!this.spec?.rkeConfig?.machinePools?.length:!!this.isRke1&&!this.pools?.length}get confirmRemove(){return!0}get isImportedK3s(){return this.isImported&&this.isK3s}get isImportedRke2(){return this.isImported&&this.mgmt?.status?.provider?.startsWith("rke2")}get isK3s(){return this.mgmt?.status?"k3s"===this.mgmt?.status.provider:(this.spec?.kubernetesVersion||"").includes("k3s")}get isRke2(){return!!this.spec?.rkeConfig}get isRke1(){return!!this.mgmt?.spec?.rancherKubernetesEngineConfig||"rke"===this.mgmt?.labels["provider.cattle.io"]}get isHarvester(){return!!this.mgmt?.isHarvester}get mgmtClusterId(){return this.status?.clusterName}get mgmt(){return this.$rootGetters["management/byId"](r.Mc.CLUSTER,this.mgmtClusterId)}get isReady(){return!!this.mgmt?.isReady}get eksNodeGroups(){return this.mgmt?.spec?.eksConfig?.nodeGroups||[]}waitForProvisioner(e,t){return this.waitForTestFn((()=>!!this.provisioner),"set provisioner",e,t)}waitForMgmt(e=6e4,t){return this.waitForTestFn((()=>{const e=this.$rootGetters["management/byId"](r.qt.RANCHER_CLUSTER,this.id),t=this.status?.clusterName||e?.status?.clusterName;return t&&!!this.$rootGetters["management/byId"](r.Mc.CLUSTER,t)}),this.$rootGetters["i18n/t"]("cluster.managementTimeout"),e,t)}get provisioner(){if(this.isRke2){const e=Object.keys(this.spec),t=e.find((e=>e.endsWith("Config")));if("rkeConfig"===t)return"rke2";if(t)return t.replace(/config$/i,"")}else if(this.mgmt)return this.mgmt.provisioner;return null}get provisionerDisplay(){if(this.customProvisionerHelper?.provisionerDisplay)return this.customProvisionerHelper?.provisionerDisplay(this);let e=(this.provisioner||"").toLowerCase();return"rke2"===e&&this.spec?.kubernetesVersion?.includes("k3s")||this.isImportedK3s?e="k3s":this.isImportedRke2?e="rke2":(this.isImported||this.isLocal)&&this.isRke1&&(e="rke"),this.$rootGetters["i18n/withFallback"](`cluster.provider."${e}"`,null,(0,l.TF)(e))}get providerLogo(){return this.mgmt?.providerLogo}get nodesArchitecture(){const e={};return this.nodes?.forEach((t=>{if(!t.metadata?.state?.transitioning){const n=t.status?.nodeLabels?.[h.Pl],r=n||this.t("cluster.architecture.label.unknown");e[r]=(e[r]||0)+1}})),e}get architecture(){const e=Object.keys(this.nodesArchitecture);switch(e.length){case 0:return{label:this.t("generic.provisioning")};case 1:return{label:e[0]};default:return{label:this.t("cluster.architecture.label.mixed"),tooltip:e.reduce(((e,t)=>`${e}${t}: ${this.nodesArchitecture[t]}<br>`),"")}}}get kubernetesVersion(){const e=this.$rootGetters["i18n/t"]("generic.unknown");if(this.isRke2){const t=this.status?.version?.gitVersion,n=this.spec?.kubernetesVersion;return t||n||e}return this.mgmt&&this.mgmt.kubernetesVersion||e}get machineProvider(){const e=this.annotations?.[h.qt.UI_CUSTOM_PROVIDER];if(e)return e;if(this.isHarvester)return d.T3;if(this.isImported)return null;if(this.isRke2){const e=this.spec?.rkeConfig?.machinePools?.[0]?.machineConfigRef?.kind?.toLowerCase();return e?e.replace(/config$/i,"").toLowerCase():null}return this.mgmt?.machineProvider?this.mgmt.machineProvider.toLowerCase():null}get machineProviderDisplay(){if(this.customProvisionerHelper?.machineProviderDisplay)return this.customProvisionerHelper?.machineProviderDisplay(this);if(this.isImported)return null;const e=(this.machineProvider||"").toLowerCase();return e?this.$rootGetters["i18n/withFallback"](`cluster.provider."${e}"`,null,e):this.$rootGetters["i18n/t"]("generic.unknown")}get machinePoolDefaults(){return this.spec.rkeConfig?.machinePoolDefaults}set defaultHostnameLengthLimit(e){this.spec.rkeConfig=this.spec.rkeConfig||{},this.spec.rkeConfig.machinePoolDefaults=this.spec.rkeConfig.machinePoolDefaults||{},this.spec.rkeConfig.machinePoolDefaults.hostnameLengthLimit=e}get defaultHostnameLengthLimit(){return this.spec.rkeConfig?.machinePoolDefaults?.hostnameLengthLimit}removeDefaultHostnameLengthLimit(){this.machinePoolDefaults?.hostnameLengthLimit&&(delete this.spec.rkeConfig.machinePoolDefaults.hostnameLengthLimit,0===Object.keys(this.spec?.rkeConfig?.machinePoolDefaults).length&&delete this.spec.rkeConfig.machinePoolDefaults)}get nodes(){return this.$rootGetters["management/all"](r.Mc.NODE).filter((e=>e.id.startsWith(this.mgmtClusterId)))}get machines(){return this.$rootGetters["management/all"](r.qt.MACHINE).filter((e=>e.metadata?.namespace===this.metadata.namespace&&e.spec?.clusterName===this.metadata.name))}get displayName(){return this.mgmt&&!this.isRke2?this.mgmt.spec.displayName:null}get pools(){const e=this.$rootGetters["management/all"](r.qt.MACHINE_DEPLOYMENT).filter((e=>e.spec?.clusterName===this.metadata.name));return e.length?e:this.$rootGetters["management/all"](r.Mc.NODE_POOL).filter((e=>e.spec.clusterName===this.status?.clusterName))}get desired(){return this.pools.reduce(((e,t)=>e+(t.desired||0)),0)}get pending(){return this.pools.reduce(((e,t)=>e+(t.pending||0)),0)}get outdated(){return this.pools.reduce(((e,t)=>e+(t.outdated||0)),0)}get ready(){return this.pools.reduce(((e,t)=>e+(t.ready||0)),0)}get unavailable(){return this.pools.reduce(((e,t)=>e+(t.unavailable||0)),0)}get unavailableMachines(){if(this.isReady){if(this.isRke1){const e=this.nodes.filter((e=>e.status.conditions.find((e=>e.error&&"Ready"===e.type)))).map((e=>{const t=e.status.nodeName||e.metadata.name;return this.t("cluster.availabilityWarnings.node",{name:t})}));return e.join("<br>")}{const e=this.machines.filter((e=>e.status?.conditions?.find((e=>e.error&&"NodeHealthy"===e.type)))).map((e=>e.status?.nodeRef?.name?this.t("cluster.availabilityWarnings.node",{name:e.status.nodeRef.name}):this.t("cluster.availabilityWarnings.machine",{name:e.metadata.name})));return e.join("<br>")}}return""}get stateParts(){const e=[{label:"Pending",color:"bg-info",textColor:"text-info",value:this.pending,sort:1},{label:"Outdated",color:"bg-warning",textColor:"text-warning",value:this.outdated,sort:2},{label:"Unavailable",color:"bg-error",textColor:"text-error",value:this.unavailable,sort:3},{label:"Ready",color:"bg-success",textColor:"text-success",value:this.ready,sort:4}].filter((e=>e.value>0));return(0,s.Ul)(e,"sort:desc")}async getOrCreateToken(){if(await this.waitForMgmt(),!this.mgmt)return;const e=await this.$dispatch("rancher/findAll",{type:r.k$.CLUSTER_TOKEN,force:!0},{root:!0});let t=(0,a.jq)(e,"clusterId",this.mgmt.id);return t||(this.links.update?(t=await this.$dispatch("rancher/create",{type:r.k$.CLUSTER_TOKEN,clusterId:this.mgmt.id},{root:!0}),t.save()):void 0)}openShell(){return this.mgmt?.openShell()}generateKubeConfig(){return this.mgmt?.generateKubeConfig()}async copyKubeConfig(){await(this.mgmt?.copyKubeConfig()),this.$dispatch("growl/success",{title:this.t("cluster.copiedConfig"),timeout:3e3},{root:!0})}downloadKubeConfig(){return this.mgmt?.downloadKubeConfig()}downloadKubeConfigBulk(e){return this.mgmt?.downloadKubeConfigBulk(e)}async snapshotAction(){try{await this.takeSnapshot(),this.$dispatch("growl/success",{title:this.$rootGetters["i18n/t"]("cluster.snapshot.successTitle",{name:this.nameDisplay}),message:this.$rootGetters["i18n/t"]("cluster.snapshot.successMessage",{name:this.nameDisplay})},{root:!0})}catch(e){this.$dispatch("growl/fromError",{title:this.$rootGetters["i18n/t"]("cluster.snapshot.errorTitle",{name:this.nameDisplay}),err:e},{root:!0})}}async snapshotBulk(e){const t=await Promise.allSettled(e.map((e=>e.takeSnapshot()))),n=t.filter((e=>"fulfilled"===e.status)).length;n&&this.$dispatch("growl/success",{title:this.$rootGetters["i18n/t"]("cluster.snapshot.bulkSuccessTitle"),message:this.$rootGetters["i18n/t"]("cluster.snapshot.bulkSuccessMessage",{count:n})},{root:!0});for(let r=0;r<t.length;r++)"fulfilled"!==t[r].status&&this.$dispatch("growl/fromError",{title:this.$rootGetters["i18n/t"]("cluster.snapshot.errorTitle",{name:e[r].nameDisplay}),err:t[r].value},{root:!0})}takeSnapshot(){if(this.isRke1)return this.$dispatch("rancher/request",{url:`/v3/clusters/${escape(this.mgmt.id)}?action=backupEtcd`,method:"post"},{root:!0});{const e=this.spec?.rkeConfig?.etcdSnapshotCreate?.generation||0,t={generation:e+1};return this.spec?.rkeConfig?.etcd?.s3&&(t.s3=this.spec.rkeConfig.etcd.s3),(0,o.hZ)(this.spec.rkeConfig,"etcdSnapshotCreate",t),this.save()}}get etcdSnapshots(){const e=this.$rootGetters["management/all"]({type:r.xO});return e.filter((e=>e.metadata.namespace===this.namespace&&e.clusterName===this.name))}restoreSnapshotAction(e=this){this.$dispatch("promptRestore",[e])}saveAsRKETemplate(e=this){this.$dispatch("promptModal",{componentProps:{cluster:e},component:"SaveAsRKETemplateDialog"})}rotateCertificates(e=this){this.$dispatch("promptModal",{componentProps:{cluster:e},component:"RotateCertificatesDialog"})}rotateEncryptionKey(e=this){this.$dispatch("promptModal",{componentProps:{cluster:e},component:"RotateEncryptionKeyDialog"})}get stateObj(){return this._stateObj}get rkeTemplate(){if(!this.isRke1||!this.mgmt)return!1;if(!this.mgmt.spec?.clusterTemplateRevisionName)return!1;const e=this.mgmt.spec.clusterTemplateName.replace(":","/"),t=this.mgmt.spec.clusterTemplateRevisionName.replace(":","/"),n=this.$rootGetters["management/all"](r.Mc.RKE_TEMPLATE).find((t=>t.id===e)),i=this.$rootGetters["management/all"](r.Mc.RKE_TEMPLATE_REVISION).find((e=>e.spec.enabled&&e.id===t));return!(!n||!i)&&{displayName:`${n.spec?.displayName}/${i.spec?.displayName}`,upgrade:this.rkeTemplateUpgrade,template:n,revision:i}}get rkeTemplateUpgrade(){if(!this.isRke1||!this.mgmt)return!1;if(!this.mgmt.spec?.clusterTemplateRevisionName)return!1;const e=this.mgmt.spec.clusterTemplateRevisionName.replace(":","/"),t=this.$rootGetters["management/all"](r.Mc.RKE_TEMPLATE_REVISION).filter((e=>e.spec.enabled&&e.spec.clusterTemplateName===this.mgmt.spec.clusterTemplateName));return!(t.length<=1)&&(t.sort(((e,t)=>parseInt(e.metadata.resourceVersion,10)-parseInt(t.metadata.resourceVersion,10))).reverse(),t[0].id!==e&&t[0].spec?.displayName)}get _stateObj(){return this.isRke2?this.metadata?.state:this.mgmt?.stateObj||this.metadata?.state}get supportsWindows(){if(this.isK3s||this.isImportedK3s)return!1;if(this.isRke1)return this.mgmt?.spec?.windowsPreferedCluster||!1;if(!this.isRke2)return!1;if(!this.kubernetesVersion||(0,c.UD)(this.kubernetesVersion,"v1.21.0")<0)return!1;const e=this.spec?.rkeConfig?.machineGlobalConfig?.cni;return!e||"calico"===e}get customValidationRules(){return[{path:"metadata.name",translationKey:"cluster.name.label",validators:[`clusterName:${this.isRke2}`],maxLength:63}]}get agentConfig(){return this.spec.rkeConfig?.machineSelectorConfig?.find((e=>!e.machineLabelSelector))?.config||{}}get cloudProvider(){return this.agentConfig?.["cloud-provider-name"]}get canClone(){return!1}async remove(e={}){e.url||(e.url=(this.links||{})["self"]),e.method="delete";const t=await this.$dispatch("request",e),n=(this.spec?.rkeConfig?.machinePools||[])[0];if("HarvesterConfig"===n?.machineConfigRef?.kind){const e=this.spec.cloudCredentialSecretName;await this.$dispatch("rancher/findAll",{type:r.k$.CLOUD_CREDENTIAL},{root:!0});const t=this.$rootGetters["rancher/byId"](r.k$.CLOUD_CREDENTIAL,e);if(t){const e=(0,o.Jt)(t,"decodedData.clusterId");try{const t=await this.$dispatch("management/find",{type:`${r.qt.MACHINE_CONFIG_GROUP}.${(n?.machineConfigRef?.kind||"").toLowerCase()}`,id:`${this.metadata.namespace}/${n?.machineConfigRef?.name}`},{root:!0});await this.$dispatch("management/request",{url:`/k8s/clusters/${e}/v1/harvester/serviceaccounts/${t.vmNamespace}/${this.metadata.name}`,method:"DELETE"},{root:!0})}catch(i){f.error(i)}}}if(204===t?._status&&await this.$dispatch("ws.resource.remove",{data:this}),this.customProvisionerHelper?.postDelete)return this.customProvisionerHelper?.postDelete(this)}get customProvisionerHelper(){return this.modelExtensions.find((e=>!!e.useFor&&e.useFor(this)))}get groupByParent(){return this.customProvisionerHelper?.parentCluster?.(this)||this.t("resourceTable.groupLabel.notInACluster")}get hasError(){if(this.status?.conditions&&this.status?.conditions.length&&this.status?.conditions.some((e=>!0===e.error))){if(!this.status?.conditions.some((e=>"Ready"===e.type)))return!0;const e=this.status?.conditions.filter((e=>!0===e.error||"Ready"===e.type)),t=e.reduce(((e,t)=>e.lastUpdateTime>t.lastUpdateTime?e:t));return t.error}return!1}get namespaceLocation(){const e=this.$rootGetters["management/byId"](r.Mc.CLUSTER,r.d_);return e?{name:"c-cluster-product-resource-id",params:{cluster:e.id,product:this.$rootGetters["productId"],resource:r.CU,id:this.namespace}}:null}get yamlFolding(){return["spec.rkeConfig.machinePools.dynamicSchemaSpec"]}get description(){return super.description||this.mgmt?.description}renew(){return this.cloudCredential?.renew()}renewBulk(e=[]){const t=e.filter((e=>e.cloudCredential)).map((e=>e.cloudCredential));return this.cloudCredential?.renewBulk(t)}get cloudCredential(){return this.$rootGetters["rancher/all"](r.k$.CLOUD_CREDENTIAL).find((e=>e.id===this.spec.cloudCredentialSecretName))}get cloudCredentialWarning(){const e=this.cloudCredential?.expireData;return e?.expired||e?.expiring}}},8324:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(4799),i=n(68851),a=n(51700);class o extends a["default"]{get subtype(){return r.SUBTYPE_MAPPING.RBAC_CLUSTER_ROLE.key}get namespaceResources(){return this.allResources.filter((e=>e.attributes.namespaced&&!e.attributes.group.includes(r.CATTLE_API_GROUP)))}get resources(){return(0,i.sb)(this.namespaceResources.map((e=>e.attributes?.kind))).sort()}}},69791:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(82614),i=n(35664);class a extends r.A{get users(){return this.subjects?.filter((({kind:e})=>e?.toLowerCase()===i.m3))}get serviceAccounts(){return this.subjects?.filter((({kind:e})=>e?.toLowerCase()===i.Sg))}get groups(){return this.subjects?.filter((({kind:e})=>e?.toLowerCase()===i.UP))}}},51700:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(35664),i=n(4799),a=n(68851),o=n(25184);class s extends o.A{get customValidationRules(){return[{path:"name",translationKey:"nameNsDescription.name.label",required:!0,nullable:!1,type:"string"},{path:"rules",validators:[`roleTemplateRules:${this.type}`],nullable:!1,type:"array"}]}get nameWithinProduct(){return this.$rootGetters["i18n/withFallback"](`rbac.displayRole.${this.name}`,this.name)}get subtype(){return i.SUBTYPE_MAPPING.RBAC_ROLE.key}get allResources(){return this.$getters["all"](r.yx).filter((e=>e.attributes?.kind))}get clusterResources(){return this.allResources.filter((e=>!e.attributes.namespaced&&!e.attributes.group.includes(i.CATTLE_API_GROUP)))}get resources(){return(0,a.sb)(this.clusterResources.map((e=>e.attributes?.kind))).sort()}set displayName(e){this.metadata.name=e}get displayName(){return this.metadata?.name}}},559:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(82614),i=n(35664);class a extends r.A{get users(){return this.subjects.filter((({kind:e})=>e?.toLowerCase()===i.m3))}get serviceAccounts(){return this.subjects.filter((({kind:e})=>e?.toLowerCase()===i.Sg))}get groups(){return this.subjects.filter((({kind:e})=>e?.toLowerCase()===i.UP))}}},12299:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(70775);class i extends r["default"]{}},89713:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(73883),i=n(68851),a=n(76978),o=n(25184);class s extends o.A{get readyMessage(){const e=(0,a.Jt)(this,"status.conditions"),t=((0,i.jq)(e,"type","Ready")||{}).message;return t}get colorForState(){return this.readyMessage?(0,r.uU)(this.readyMessage):(0,r.uU)()}get stateDisplay(){return this.readyMessage?(0,r.ch)(this.readyMessage):(0,r.ch)()}}},23741:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(73883),i=n(68851),a=n(76978),o=n(25184);class s extends o.A{get canUpdate(){return this?.metadata?.state?.error}get readyMessage(){const e=(0,a.Jt)(this,"status.conditions"),t=((0,i.jq)(e,"type","Ready")||{}).message;return t}get colorForState(){return this.readyMessage?(0,r.uU)(this.readyMessage):(0,r.uU)()}get stateDisplay(){return this.readyMessage?(0,r.ch)(this.readyMessage):(0,r.ch)()}}},81689:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(46108),i=n.n(r),a=n(82451),o=n.n(a),s=n(25184);class l extends s.A{applyDefaults(e,t){const n=i()(t);if(n[e]){const t=n[e]?.config;delete t.id,delete t.links,delete t.metadata,delete t.apiVersion,o()(this,t)}}}},39651:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(38799);class i extends r["default"]{get provider(){return"amazonec2"}get providerLocation(){return`${this.spec.template.spec.region}${this.spec.template.spec.zone}`}get providerSize(){return this.spec.template.spec.instanceType}}},79144:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(38799);class i extends r["default"]{get provider(){return"azure"}get providerLocation(){return this.spec.template.spec.location}get providerSize(){return this.spec.template.spec.size}}},81593:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(38799);class i extends r["default"]{get provider(){return"digitalocean"}get providerLocation(){return this.spec.template.spec.region}get providerSize(){return this.spec.template.spec.size}}},69770:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(38799);class i extends r["default"]{get provider(){return"linode"}get providerLocation(){return this.spec.template.spec.region}get providerSize(){return this.spec.template.spec.instanceType}}},38799:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(25184);class i extends r.A{get nameDisplay(){return this.name.replace(`${this.metadata.annotations["objectset.rio.cattle.io/owner-name"]}-`,"")}get provider(){return null}get providerLocation(){return null}get providerSize(){return null}}},82186:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(38799);class i extends r["default"]{get provider(){return"pnap"}get providerLocation(){return this.spec.template.spec.serverLocation}get providerSize(){return this.spec.template.spec.serverType}}},38816:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(95799),i=n(38799);class a extends i["default"]{get provider(){return"vmwarevsphere"}get providerSize(){const e=(0,r.Mo)(1048576*this.spec.template.spec.memorySize,1024,"iB");return`${e}, ${this.spec.template.spec.cpuCount} Core`}}},7100:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(89865),i=n(2841),a=n(35664),o=n(68851),s=n(76978),l=n(4514),c=n(92043),u=n(73883);class d extends r.A{get _availableActions(){const e=this.snapshotFile?.status===u.jv.SUCCESSFUL;return[{action:"promptRestore",enabled:e,icon:"icon icon-fw icon-backup-restore",label:"Restore"}]}promptRestore(){this.$dispatch("promptRestore",[this])}get clusterName(){return this.metadata.labels[i.xO.CLUSTER_NAME]}get clusterId(){return this.cluster.id}get name(){return this.metadata.name}get cluster(){return(0,o.jq)(this.$rootGetters["management/all"](a.qt.RANCHER_CLUSTER),"metadata.name",this.clusterName)}get rke2(){return this.cluster?.isRke2}get nameDisplay(){return this.snapshotFile?.name||this.name}get errorMessage(){const e=(0,s.Jt)(this,"snapshotFile.status")===u.jv.FAILED;return e?(0,l.u)(this.snapshotFile?.message):null}get stateDescription(){const e=this.stateObj?.transitioning||!1,t=this.stateObj?.error||this.snapshotFile?.status===u.jv.FAILED||!1,n=this.stateObj?.message,r=this.snapshotFile?.status===u.jv.FAILED?(0,l.u)(this.snapshotFile?.message):null;return e||t?r||(0,c.TF)(n):""}get backupLocation(){return this.metadata?.annotations?.["etcdsnapshot.rke.io/storage"]}}},2334:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i},parseType:function(){return o}});var r=n(73883);class i extends r.Ay{get groupName(){return this.attributes.namespaced?"ns":"cluster"}}const a=/([^[\s]*)(\[(.*)\])?/;function o(e,t){const n=a.exec(e),r=n[3]||t?.subtype,i=[n[1]];return r&&i.push(r),i}},1133:function(e,t,n){"use strict";n.r(t),n.d(t,{TYPES:function(){return y},default:function(){return E}});var r=n(39198),i=n(2841),a=n(4514),o=n(68851),s=n(35664),l=n(76978),c=n(47034),u=n(25184),d=n(73883),h=n(34255),p=n(23464),f=n.n(p),m=n(22915);function g(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=b(e,"string");return"symbol"==typeof t?t:t+""}function b(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}const y={OPAQUE:"Opaque",SERVICE_ACCT:"kubernetes.io/service-account-token",DOCKER:"kubernetes.io/dockercfg",DOCKER_JSON:"kubernetes.io/dockerconfigjson",BASIC:"kubernetes.io/basic-auth",SSH:"kubernetes.io/ssh-auth",TLS:"kubernetes.io/tls",BOOTSTRAP:"bootstrap.kubernetes.io/token",ISTIO_TLS:"istio.io/key-and-cert",HELM_RELEASE:"helm.sh/release.v1",FLEET_CLUSTER:"fleet.cattle.io/cluster-registration-values",CLOUD_CREDENTIAL:"provisioning.cattle.io/cloud-credential",RKE_AUTH_CONFIG:"rke.cattle.io/auth-config"},w=6912e5;class E extends u.A{constructor(...e){super(...e),g(this,"_cachedCertInfo",void 0)}get hasSensitiveData(){return!0}get isCertificate(){return this._type===y.TLS}get isRegistry(){return this._type===y.DOCKER_JSON}get isCloudCredential(){return this._type===y.CLOUD_CREDENTIAL||"cattle-global-data"===this.metadata.namespace&&"cc-"===this.metadata.generateName}get supportsSshKnownHosts(){return this._type===y.SSH&&!!this.data&&"known_hosts"in this.data}get issuer(){const{metadata:{annotations:e={}}}=this;return e[i.G5.ISSUER]?e[i.G5.ISSUER]:this.isCertificate?this.cachedCertInfo?.issuer:null}get notAfter(){return this.isCertificate?this.cachedCertInfo?.notAfter:null}get cn(){return this.isCertificate?this.cachedCertInfo?.cn:null}get plusMoreNames(){return this.isCertificate?this.unrepeatedSans.length:null}get dateClass(){if(this.isCertificate)switch(this.certState){case d.jv.EXPIRING:return"text-warning";case d.jv.EXPIRED:return"text-error";default:return""}return null}get details(){const e=[{label:this.t("secret.type"),content:this.typeDisplay}];if(this._type===y.SERVICE_ACCT){const t=this.metadata?.annotations?.[i.pS.SERVICE_ACCOUNT_NAME];t&&e.push({label:"Service Account",formatter:"LinkName",formatterOpts:{value:t,type:s.Sg,namespace:this.namespace},content:t})}return this.cn&&e.push({label:this.t("secret.certificate.cn"),content:this.plusMoreNames?`${this.cn} ${this.t("secret.certificate.plusMore",{n:this.plusMoreNames})}`:this.cn}),this.issuer&&e.push({label:this.t("secret.certificate.issuer"),content:this.issuer}),this.notAfter&&e.push({label:"Expires",formatter:"Date",formatterOpts:{class:this.dateClass},content:this.notAfter}),e}get canUpdate(){return!!this.hasLink("update")&&(this._type!==y.SERVICE_ACCT&&this.$rootGetters["type-map/optionsFor"](this.type).isEditable)}get keysDisplay(){const e=[...Object.keys(this.data||[]),...Object.keys(this.binaryData||[])];return e.length?e.join(", "):"(none)"}get dataPreview(){if(this._type===y.DOCKER_JSON){const t=this.data[".dockerconfigjson"];if(t){const n=(0,a.u)(t);try{const e=JSON.parse(n).auths,t=[];for(const n in e)t.push(n);return t.join(", ")}catch(e){return n}}}else{if(this._type===y.TLS)return this.certInfo||this.keysDisplay;if(this._type===y.BASIC)return(0,a.u)(this.data.username);if(this._type===y.SSH)return this.sshUser;if(this._type===y.SERVICE_ACCT)return this.metadata?.annotations?.["kubernetes.io/service-account.name"]}return this.keysDisplay}get sshUser(){if(this._type!==y.SSH)return null;const e=(0,a.u)(this.data["ssh-publickey"]);if(!e)return null;if(e.startsWith("----")){const t=e.match(/from OpenSSH by ([^"]+)"/);if(t)return t[1]}else if(e.startsWith("ssh-")){const t=e.replace(/\n/g,"").split(/\s+/);if(t&&3===t.length)return t[2]}return null}get subTypeDisplay(){const e=this._type||"",t=e.replace(/^kubernetes.io\//,"");return this.$rootGetters["i18n/withFallback"](`secret.types."${e}"`,null,t)}get certInfo(){const e=(0,a.u)(this.data["tls.crt"]);let t,n,i,o,s,l;const c="-----END CERTIFICATE-----";if(e){const a=e.split(c);let d=e;a.length>1&&(d=`${a[0]}${c}`);try{l=new r.X509,l.readCertPEM(d);const e=l.getIssuerString();t=e.slice(e.indexOf("CN=")+3),n=r.zulutodate(l.getNotBefore()),i=r.zulutodate(l.getNotAfter());const a=l.getSubjectString();o=a.slice(a.indexOf("CN=")+3)}catch{return null}try{s=l.getExtSubjectAltName()}catch(u){s=[]}const h={issuer:t,notBefore:n,notAfter:i,cn:o,sans:s};return h}return null}get cachedCertInfo(){return this._cachedCertInfo||(this._cachedCertInfo=this.certInfo),this._cachedCertInfo}get unrepeatedSans(){if(this._type===y.TLS){const e=this.cachedCertInfo;if(e?.sans?.filter){const t=e?.sans.filter((e=>0===e.indexOf("*.")||0===e.indexOf("www."))).map((e=>e.substr(e.indexOf(".")))),n=(0,o.$M)(e?.sans,t);return n}return e?.sans?.array||e?.sans||[]}return null}get timeTilExpiration(){if(this._type===y.TLS){const e=this.cachedCertInfo;if(!e?.notAfter)return null;const t=e.notAfter,n=t.valueOf(),r=Date.now(),i=n-r;return i<0?0:i}return null}get timeTilExpirationDate(){return this.timeTilExpiration>0?this.cachedCertInfo?.notAfter?.valueOf():null}get decodedData(){const e={};for(const t in this.data||{})e[t]=(0,a.u)(this.data[t]);return e}get setData(){return(e,t)=>{const n=e&&"object"===typeof e;let r;this.data&&!n||(0,l.hZ)(this,"data",{}),r=n?e:{[e]:t};for(const i in r)(0,l.hZ)(this.data,`"${i}"`,(0,a.KA)(r[i]))}}get doneRoute(){return this.$rootGetters["currentProduct"].name===c.o?"c-cluster-manager-secret":"c-cluster-product-resource"}get certLifetime(){if(this._type===y.TLS){const e=this.cachedCertInfo;if(e)return(0,h.qx)(f()(e.notBefore),f()(e.notAfter),((e,t)=>this.t(e,t))).string}return null}get certState(){if(this._type===y.TLS)return"number"!==typeof this.timeTilExpiration||this.timeTilExpiration>w?"":this.timeTilExpiration>0?d.jv.EXPIRING:d.jv.EXPIRED}get certStateDisplay(){if(this._type===y.TLS)return(0,d.ch)(this.certState)}get certStateBackground(){if(this._type!==y.TLS)return;const e=(0,d.uU)(this.certState);return e.replace("text-","bg-")}cleanForSave(e,t){const n=super.cleanForSave(e,t);return t&&delete n._type,n}async cleanForDownload(e){return(0,m.C)(e,{rootKeys:["id","links","actions"]})}}},96258:function(e,t,n){"use strict";n.r(t),n.d(t,{CLUSTERIP:function(){return c},DEFAULT_SERVICE_TYPES:function(){return s},HEADLESS:function(){return l},proxyUrlFromBase:function(){return d},proxyUrlFromParts:function(){return u}});var r=n(81936),i=n.n(r),a=n(35664),o=n(25184);const s=[{id:"ClusterIP",label:"servicesPage.serviceTypes.clusterIp.label",description:"servicesPage.serviceTypes.clusterIp.description",bannerAbbrv:"servicesPage.serviceTypes.clusterIp.abbrv"},{id:"ExternalName",label:"servicesPage.serviceTypes.externalName.label",description:"servicesPage.serviceTypes.externalName.description",bannerAbbrv:"servicesPage.serviceTypes.externalName.abbrv"},{id:"Headless",label:"servicesPage.serviceTypes.headless.label",description:"servicesPage.serviceTypes.headless.description",bannerAbbrv:"servicesPage.serviceTypes.headless.abbrv"},{id:"LoadBalancer",label:"servicesPage.serviceTypes.loadBalancer.label",description:"servicesPage.serviceTypes.loadBalancer.description",bannerAbbrv:"servicesPage.serviceTypes.loadBalancer.abbrv"},{id:"NodePort",label:"servicesPage.serviceTypes.nodePort.label",description:"servicesPage.serviceTypes.nodePort.description",bannerAbbrv:"servicesPage.serviceTypes.nodePort.abbrv"}],l=(()=>{const e=i()(s,["id","Headless"]);return e.id})(),c=(()=>{const e=i()(s,["id","ClusterIP"]);return e.id})();function u(e,t,n,r,i,a){const o=`/k8s/clusters/${escape(e)}/api/v1/namespaces/${escape(t)}/services`;return d(o,r,n,i,a)}function d(e,t,n,r,i){const a=(t?`${escape(t)}:`:"")+escape(n)+(r?`:${escape(r)}`:""),o=`/${(i||"").replace(/^\/+/g,"")}`,s=e.replace(/\/+$/g,""),l=`${s}/${a}/proxy${o}`;return l}t["default"]=class extends o.A{get customValidationRules(){return[{nullable:!1,path:"metadata.name",required:!0,translationKey:"generic.name",type:"dnsLabel"},{nullable:!1,path:"spec",required:!0,type:"array",validators:["servicePort"]},{nullable:!0,path:"spec",required:!0,type:"string",validators:["clusterIp"]},{nullable:!0,path:"spec",required:!0,type:"array",validators:["externalName"]}]}get details(){const e=[{label:this.t("generic.type"),content:this.serviceType?.id||this.serviceType}],{clusterIP:t,externalName:n,sessionAffinity:r,loadBalancerIP:i}=this.spec;if(t&&e.push({label:this.t("servicesPage.serviceTypes.clusterIp.label"),content:t}),"LoadBalancer"===this.serviceType){const t=this.status.loadBalancer?.ingress?.map((e=>e.hostname||e.ip)).join(", "),n=i||t||"";n&&e.push({label:this.t("servicesPage.ips.loadBalancer.label"),content:n})}return n&&e.push({label:this.t("servicesPage.serviceTypes.externalName.label"),content:n}),r&&e.push({label:this.t("servicesPage.affinity.label"),content:r}),e}get podRelationship(){const{metadata:{relationships:e=[]}}=this;return(e||[]).filter((e=>e.toType===a.Sm))[0]}async fetchPods(){this.podRelationship&&await this.$dispatch("cluster/findMatching",{type:a.Sm,selector:this.podRelationship.selector,namespace:this.namespace},{root:!0})}get pods(){return this.podRelationship?this.$getters.matching(a.Sm,this.podRelationship.selector,this.namespace):[]}get serviceType(){const e=this.spec?.type,t=this.spec?.clusterIP,n=i()(s,["id",c]);return e?e===c&&"None"===t?l:e:n}proxyUrl(e,t){const n=this.linkFor("view"),r=n.lastIndexOf("/");return d(n.slice(0,r),e,this.metadata.name,t)}}},63809:function(e,t,n){"use strict";n.r(t),n.d(t,{PROVISIONER_OPTIONS:function(){return o}});var r=n(2841),i=n(35664),a=n(25184);const o=[{labelKey:"storageClass.aws-ebs.title",value:"kubernetes.io/aws-ebs",supported:!0,deprecated:!0},{labelKey:"storageClass.azure-disk.title",value:"kubernetes.io/azure-disk",supported:!0,deprecated:!0},{labelKey:"storageClass.azure-file.title",value:"kubernetes.io/azure-file",supported:!0,deprecated:!0},{labelKey:"storageClass.rbd.title",value:"kubernetes.io/rbd"},{labelKey:"storageClass.glusterfs.title",value:"kubernetes.io/glusterfs"},{labelKey:"storageClass.gce-pd.title",value:"kubernetes.io/gce-pd",supported:!0,deprecated:!0},{labelKey:"storageClass.no-provisioner.title",value:"kubernetes.io/no-provisioner"},{labelKey:"storageClass.longhorn.title",value:"driver.longhorn.io",supported:!0},{labelKey:"storageClass.cinder.title",value:"kubernetes.io/cinder",deprecated:!0},{labelKey:"storageClass.portworx-volume.title",value:"kubernetes.io/portworx-volume"},{labelKey:"storageClass.quobyte.title",value:"kubernetes.io/quobyte"},{labelKey:"storageClass.scaleio.title",value:"kubernetes.io/scaleio"},{labelKey:"storageClass.storageos.title",value:"kubernetes.io/storageos"},{labelKey:"storageClass.vsphere-volume.title",value:"kubernetes.io/vsphere-volume",supported:!0,deprecated:!0},{labelKey:"storageClass.harvesterhci.title",value:"driver.harvesterhci.io",supported:!0,hideCustomize:!0}];t["default"]=class extends a.A{get provisionerListDisplay(){return`${this.provisioner} (${this.provisionerDisplay})`}get provisionerDisplay(){const e=o.find((e=>e.value===this.provisioner)),t=`${this.provisioner} ${this.t("persistentVolume.csi.suffix")}`;return e?this.t(e.labelKey):this.$rootGetters["i18n/withFallback"](`persistentVolume.csi.drivers.${this.provisioner.replaceAll(".","-")}`,null,t)}get isDefault(){return"true"===this.annotations[r.O3.DEFAULT_STORAGE_CLASS]}updateDefault(e){this.setAnnotation(r.O3.DEFAULT_STORAGE_CLASS,e.toString()),this.setAnnotation(r.O3.BETA_DEFAULT_STORAGE_CLASS,e.toString());const t={metadata:{annotations:{[r.O3.DEFAULT_STORAGE_CLASS]:e.toString(),[r.O3.BETA_DEFAULT_STORAGE_CLASS]:e.toString()}}};return this.patch(t,{},!0,!0)}async setDefault(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](i.fJ)||[];for(const n of t)await n.resetDefault();t.forEach((e=>e.resetDefault())),this.updateDefault(!0)}async resetDefault(){this.isDefault&&await this.updateDefault(!1)}get _availableActions(){const e=super._availableActions;return this.isDefault?e.unshift({action:"resetDefault",enabled:!0,icon:"icon icon-fw icon-checkmark",label:this.t("storageClass.actions.resetDefault")}):e.unshift({action:"setDefault",enabled:!0,icon:"icon icon-fw icon-checkmark",label:this.t("storageClass.actions.setAsDefault")}),e}cleanForNew(){this.$dispatch("cleanForNew",this),delete this?.metadata?.annotations?.[r.O3.DEFAULT_STORAGE_CLASS]}}},66491:function(e,t,n){"use strict";n.r(t);var r=n(25184);t["default"]=class extends r.A{get constraints(){const e=`constraints.gatekeeper.sh.${this.id}`;if(!this.$rootGetters["cluster/haveAll"](e))throw new Error("The constraints have not been loaded");return this.$rootGetters["cluster/all"](e)}get preventDeletionMessage(){const e=this.constraints;return e.length>0?"There are still constraints using this template. You cannot delete this template while it's in use.":null}}},24364:function(e,t,n){"use strict";n.r(t);var r=n(23464),i=n.n(r),a=n(89865);t["default"]=class extends a.A{get _availableActions(){return super._availableActions.filter((e=>["viewInApi","promptRemove"].includes(e.action)))}get state(){return this.isExpired?"expired":"active"}get isExpired(){const e=i()(this.expiresAt);return e.isBefore(i()())}}},51225:function(e,t,n){"use strict";n.r(t);var r=n(96258),i=n(25184);t["default"]=class extends i.A{get labelDisplay(){return this.spec?.label||this.metadata.name||"?"}get link(){if(this.spec?.toURL)return this.spec.toURL;if(this.spec?.toService){const e=this.spec.toService;return(0,r.proxyUrlFromParts)(this.$rootGetters["clusterId"],e.namespace,e.name,e.scheme,e.port,e.path)}return null}get normalizedGroup(){return this.spec.group?this.spec.group.toLowerCase().trim().replace(/[^a-z0-9]/g,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""):null}get actualTarget(){return(this.spec.target||"").trim()||"_blank"}}},70775:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p},defaultContainer:function(){return h}});var r=n(68851),i=n(2841),a=n(35664),o=n(76978),s=n(23464),l=n.n(s),c=n(38823);const u={separator:!0};var d=n(2505);const h={imagePullPolicy:"Always",name:"container-0",securityContext:{runAsNonRoot:!1,readOnlyRootFilesystem:!1,privileged:!1,allowPrivilegeEscalation:!1},volumeMounts:[]};class p extends d["default"]{get _availableActions(){let e=super._availableActions;const t=this._type?this._type:this.type,n=(0,r.jq)(e,"action","goToEditYaml"),i=n?e.indexOf(n):0;(0,r.PT)(e,i,{action:"addSidecar",label:this.t("action.addSidecar"),icon:"icon icon-plus",enabled:!!this.links.update}),t!==a.oU.JOB&&t!==a.oU.CRON_JOB&&((0,r.PT)(e,0,{action:"toggleRollbackModal",label:this.t("action.rollback"),icon:"icon icon-history",enabled:!!this.links.update}),(0,r.PT)(e,0,{action:"redeploy",label:this.t("action.redeploy"),icon:"icon icon-refresh",enabled:!!this.links.update,bulkable:!0}),(0,r.PT)(e,0,{action:"pause",label:this.t("asyncButton.pause.action"),icon:"icon icon-pause",enabled:!!this.links.update&&!this.spec?.paused}),(0,r.PT)(e,0,{action:"resume",label:this.t("asyncButton.resume.action"),icon:"icon icon-play",enabled:!!this.links.update&&!0===this.spec?.paused})),(0,r.PT)(e,0,{divider:!0}),(0,r.PT)(e,0,{action:"openShell",enabled:!!this.links.view,icon:"icon icon-fw icon-chevron-right",label:this.t("action.openShell"),total:1});const o=["cloneYaml"];return e=e.filter((e=>{if(!o.includes(e.action))return e})),e}applyDefaults(){const{spec:e={}}=this;this.type===a.oU.CRON_JOB?e.jobTemplate||(e.jobTemplate={spec:{template:{spec:{restartPolicy:"Never",containers:[{imagePullPolicy:"Always",name:"container-0"}],initContainers:[]}}}}):(e.replicas||0===e.replicas||(e.replicas=1),e.template||(e.template={spec:{restartPolicy:this.type===a.oU.JOB?"Never":"Always",containers:[{...structuredClone(h)}],initContainers:[]}}),e.selector||(e.selector={})),this.spec=e}toggleRollbackModal(e=this){this.$dispatch("promptModal",{componentProps:{workload:e},component:"RollbackWorkloadDialog"})}async rollBackWorkload(e,t,n,r){const i=JSON.stringify(r);if(Array.isArray(t))throw new TypeError(this.t("promptRollback.multipleWorkloadError"));const a=t.metadata.namespace,o=t.metadata.name;await this.patch(i,{url:`/k8s/clusters/${e.id}/apis/apps/v1/namespaces/${a}/${n}/${o}`})}pause(){(0,o.hZ)(this.spec,"paused",!0),this.save()}resume(){(0,o.hZ)(this.spec,"paused",!1),this.save()}async scaleDown(){const e=this.spec.replicas-1;e>=0&&((0,o.hZ)(this.spec,"replicas",e),await this.save())}async scaleUp(){(0,o.hZ)(this.spec,"replicas",this.spec.replicas+1),await this.save()}get state(){return!0===this.spec?.paused?"paused":super.state}async openShell(){const e=await this.matchingPods();for(const t of e)if(t.isRunning)return void t.openShell();this.$dispatch("growl/error",{title:"Unavailable",message:"There are no running pods to execute a shell in."},{root:!0})}addSidecar(){return this.goToEdit({sidecar:!0})}get showPodRestarts(){return!0}get restartCount(){const e=this.pods;let t=0;return e.forEach((e=>{e.status.containerStatuses&&(t+=e.status?.containerStatuses[0].restartCount||0)})),t}get hasSidecars(){const e=this.type===a.oU.CRON_JOB?this?.spec?.jobTemplate?.spec?.template?.spec:this.spec?.template?.spec,{containers:t=[],initContainers:n=[]}=e;return t.length>1||n.length}get customValidationRules(){const e=this._type?this._type:this.type,t=e===a.oU.CRON_JOB?"spec.jobTemplate.spec.template.spec":"spec.template.spec",n=[{nullable:!1,path:"metadata.name",required:!0,translationKey:"generic.name",type:"subDomain"},{nullable:!1,path:"spec",required:!0,type:"object",validators:["containerImages"]},{nullable:!0,path:`${t}.affinity`,type:"object",validators:["podAffinity"]}];switch(e){case a.oU.DEPLOYMENT:case a.oU.REPLICA_SET:n.push({nullable:!1,path:"spec.replicas",required:!0,type:"number",translationKey:"workload.replicas"});break;case a.oU.STATEFUL_SET:n.push({nullable:!1,path:"spec.replicas",required:!0,type:"number",translationKey:"workload.replicas"}),n.push({nullable:!1,path:"spec.serviceName",required:!0,type:"string",translationKey:"workload.serviceName"});break;case a.oU.CRON_JOB:n.push({nullable:!1,path:"spec.schedule",required:!0,type:"string",validators:["cronSchedule"],translationKey:"workload.cronSchedule"})}return n}get endpoint(){return this?.metadata?.annotations?.[i.bs]}get desired(){return this.spec?.replicas||0}get available(){return this.status?.readyReplicas||0}get ready(){const e=Math.max(0,(this.status?.replicas||0)-(this.status?.unavailableReplicas||0));return this.type===a.oU.DAEMON_SET?e:`${e}/${this.desired}`}get unavailable(){return this.status?.unavailableReplicas||0}get upToDate(){return this.status?.updatedReplicas}get details(){const e=[],t=this._type?this._type:this.type,n={endpoint:{label:"Endpoints",content:this.endpoint,formatter:"WorkloadDetailEndpoints"},ready:{label:"Ready",content:this.ready},upToDate:{label:"Up-to-date",content:this.upToDate},available:{label:"Available",content:this.available}};if(t===a.oU.JOB){const{completionTime:t,startTime:n}=this.status,r=[60,60,24],i=["sec","min","hour","day"];if(n&&e.push({label:"Started",content:n,formatter:"LiveDate",formatterOpts:{addSuffix:!0}}),t&&n){const a=l()(t),o=l()(n);let s,c=a.diff(o)/1e3,u=0;while(c>=r[u]&&u<r.length)c/=r[u],u++;s=c<5?Math.floor(10*c)/10:Math.floor(c),s+=` ${this.t(`unit.${i[u]}`,{count:s})} `,s=s.trim(),e.push({label:"Duration",content:s})}}else t===a.oU.CRON_JOB&&e.push({label:"Last Scheduled Time",content:this?.status?.lastScheduleTime,formatter:"LiveDate"});switch(e.push({label:"Image",content:this.imageNames,formatter:"PodImages"}),t){case a.oU.DEPLOYMENT:e.push(n.ready,n.upToDate,n.available,u,n.endpoint);break;case a.oU.DAEMON_SET:e.push(n.ready,u,n.endpoint);break;case a.oU.REPLICA_SET:e.push(n.ready,u,n.endpoint);break;case a.oU.STATEFUL_SET:e.push(n.ready,u,n.endpoint);break;case a.oU.REPLICATION_CONTROLLER:e.push(n.ready,u,n.endpoint);break;case a.oU.JOB:e.push(n.endpoint);break;case a.oU.CRON_JOB:e.push(n.endpoint);break;case a.Sm:e.push(n.ready);break;default:break}return e}redeploy(){const e=(new Date).toISOString().replace(/\.\d+Z$/,"Z");this.spec.template.metadata||(0,o.hZ)(this.spec.template,"metadata",{});const t=this.spec.template.metadata.annotations||{};t[i.ht]=e,(0,o.hZ)(this.spec.template.metadata,"annotations",t),this.save()}async getPortsWithServiceType(){const e=[];this.containers.forEach((t=>e.push(...t.ports||[]))),(this.initContainers||[]).forEach((t=>e.push(...t.ports||[])));const t=this.$getters["schemaFor"](a.YV),n=t?await this.getServicesOwned():[],i=[],o=[],s=[];return n.length&&n.forEach((e=>{switch(e.spec.type){case"ClusterIP":i.push(...e?.spec?.ports||[]);break;case"LoadBalancer":o.push(...e?.spec?.ports||[]);break;case"NodePort":s.push(...e?.spec?.ports||[]);break;default:break}})),e.forEach((e=>{const t=e.name?e.name:`${e.containerPort}${e.protocol.toLowerCase()}${e.hostPort||e._listeningPort||""}`;if(e.name=t,!e._serviceType||""===e._serviceType){if(o.length){const n=(0,r.jq)(o,"name",t);if(n)return e._listeningPort=n.port,void(e._serviceType="LoadBalancer")}if(s.length){const n=(0,r.jq)(s,"name",t);if(n)return e._listeningPort=n.nodePort,void(e._serviceType="NodePort")}i.length&&(0,r.jq)(i,"name",t)&&(e._serviceType="ClusterIP")}})),e}get ownedByWorkload(){const e=Object.values(a.oU);if(this.metadata?.ownerReferences)for(const t of this.metadata.ownerReferences){const n=`${t.apiVersion.replace(/\/.*/,"")}.${t.kind}`.toLowerCase();if(e.includes(n))return!0}return!1}get isFromNorman(){return"norman"===(this.metadata.labels||{})["cattle.io/creator"]}get warnDeletionMessage(){return this.isFromNorman?this.t("workload.normanWarning"):null}get pods(){const e=this.metadata?.relationships||[],t=e.filter((e=>e.toType===a.Sm))[0];if(t){const e=this.$getters["podsByNamespace"](this.metadata.namespace);return e.filter((e=>(0,c.cK)(e,t.selector)))}return[]}get podGauges(){const e={};return this.pods?(this.pods.map((t=>{const{stateColor:n,stateDisplay:r}=t;e[r]?e[r].count++:e[r]={color:n.replace("text-",""),count:1}})),e):e}get jobRelationships(){if(this.type===a.oU.CRON_JOB)return((0,o.Jt)(this,"metadata.relationships")||[]).filter((e=>e.toType===a.oU.JOB))}async matchingJobs(){if(this.type===a.oU.CRON_JOB)return Promise.all(this.jobRelationships.map((e=>this.$dispatch("find",{type:a.oU.JOB,id:e.toId}))))}get jobs(){if(this.type===a.oU.CRON_JOB)return this.jobRelationships.map((e=>this.$getters["byId"](a.oU.JOB,e.toId))).filter((e=>!!e))}get jobGauges(){const e={succeeded:{color:"success",count:0},running:{color:"info",count:0},failed:{color:"error",count:0}};if(this.type===a.oU.CRON_JOB)this.jobs.forEach((t=>{const{status:n={}}=t;e.running.count+=n.active||0,e.succeeded.count+=n.succeeded||0,e.failed.count+=n.failed||0}));else{if(this.type!==a.oU.JOB)return null;{const{status:t={}}=this;e.running.count=t.active||0,e.succeeded.count=t.succeeded||0,e.failed.count=t.failed||0}}return e}get currentRevisionNumber(){if(!this.ownedByWorkload&&"Job"!==this.kind&&"CronJob"!==this.kind)return"Deployment"===this.kind?this.metadata.annotations["deployment.kubernetes.io/revision"]:this.metadata.generation}async matchingPods(){const e=await this.$dispatch("findAll",{type:a.Sm}),t=e.filter((e=>e.metadata.namespace===this.metadata.namespace)),n=(0,c._R)(this.spec.selector);return(0,c.wC)(t,n)}cleanForSave(e){const t=super.cleanForSave(e);return t.spec?.template?.spec?.containers?.forEach((e=>{this.cleanContainerForSave(e)})),t.spec?.template?.spec?.initContainers?.forEach((e=>{this.cleanContainerForSave(e)})),t}}},2505:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(68851),i=n(2841),a=n(35664),o=n(76978),s=n(25184),l=n(92043);class c extends s.A{async getPortsWithServiceType(){const e=[];this.containers.forEach((t=>e.push(...t.ports||[]))),(this.initContainers||[]).forEach((t=>e.push(...t.ports||[])));const t=this.$getters["schemaFor"](a.YV),n=t?await this.getServicesOwned():[],i=[],o=[],s=[];return n.length&&n.forEach((e=>{switch(e.spec.type){case"ClusterIP":i.push(...e?.spec?.ports||[]);break;case"LoadBalancer":o.push(...e?.spec?.ports||[]);break;case"NodePort":s.push(...e?.spec?.ports||[]);break;default:break}})),e.forEach((e=>{const t=e.name?e.name:`${e.containerPort}${e.protocol.toLowerCase()}${e.hostPort||e._listeningPort||""}`;if(e.name=t,!e._serviceType||""===e._serviceType){if(o.length){const n=(0,r.jq)(o,"name",t);if(n)return e._listeningPort=n.port,void(e._serviceType="LoadBalancer")}if(s.length){const n=(0,r.jq)(s,"name",t);if(n)return e._listeningPort=n.nodePort,void(e._serviceType="NodePort")}i.length&&(0,r.jq)(i,"name",t)&&(e._serviceType="ClusterIP")}})),e}async getServicesOwned(e=!1){const t={[a.oU.REPLICA_SET]:"replicaSet",[a.oU.DEPLOYMENT]:"deployment",[a.oU.STATEFUL_SET]:"statefulSet",[a.oU.DAEMON_SET]:"daemonSet"},n=Object.keys(this.workloadSelector)[0],r=`${t[this._type?this._type:this.type]}-${this.metadata.namespace}-${this.metadata.name}`,i=this.workloadSelector[n],o=await this.$dispatch("cluster/findAll",{type:a.YV,opt:{force:e}},{root:!0});return(o||[]).filter((e=>(e.spec?.selector||{})[n]===i||(e.spec?.selector||{})[n]===r))}get imageNames(){let e;const t=[];return e=this.type===a.oU.CRON_JOB?(0,o.Jt)(this,"spec.jobTemplate.spec.template.spec.containers"):(0,o.Jt)(this,"spec.template.spec.containers"),e&&e.forEach((e=>{t.includes(e.image)||t.push(e.image)})),t.map(l.qO)}get containers(){if(this.type===a.oU.CRON_JOB){const{spec:{jobTemplate:{spec:{template:{spec:{containers:e}}}}}}=this;return e}if(this.spec.containers)return this.spec.containers;const{spec:{template:{spec:{containers:e}}}}=this;return e}get initContainers(){if(this.type===a.oU.CRON_JOB){const{spec:{jobTemplate:{spec:{template:{spec:{initContainers:e}}}}}}=this;return e}if(this.spec.initContainers)return this.spec.initContainers;const{spec:{template:{spec:{initContainers:e}}}}=this;return e}get workloadSelector(){return{"workload.user.cattle.io/workloadselector":`${this._type?this._type:this.type}-${this.metadata.namespace}-${this.metadata.name}`}}async servicesFromContainerPorts(e,t){const n={apiVersion:this.apiVersion,controller:!0,kind:this.kind,name:this.metadata.name,uid:this.metadata.uid},r={[i.nN]:JSON.stringify([`${this.metadata.namespace}/${this.metadata.name}`]),[i.d6]:"true"};let s={type:a.YV,spec:{ports:[],selector:this.workloadSelector,type:"ClusterIP"},metadata:{name:this.metadata.name,namespace:this.metadata.namespace,annotations:r,ownerReferences:[n]}},l={type:a.YV,spec:{ports:[],selector:this.workloadSelector,type:"NodePort"},metadata:{name:`${this.metadata.name}-nodeport`,namespace:this.metadata.namespace,annotations:r,ownerReferences:[n]}},c={type:a.YV,spec:{ports:[],selector:this.workloadSelector,type:"LoadBalancer",externalTrafficPolicy:"Cluster"},metadata:{name:`${this.metadata.name}-loadbalancer`,namespace:this.metadata.namespace,annotations:r,ownerReferences:[n]}};const u=await this.getServicesOwned(this.isFromNorman);u&&u.length&&u.forEach((e=>{switch(e.spec.type){case"ClusterIP":s=e,s.spec.ports=[];break;case"NodePort":l=e,l.spec.ports=[];break;case"LoadBalancer":c=e,c.spec.ports=[];break;default:break}})),t.forEach((e=>{const t={name:e.name,protocol:e.protocol,port:e.containerPort,targetPort:e.containerPort};if(""!==e._serviceType)switch(s.spec.ports.push(t),e._serviceType){case"NodePort":{const n=(0,o.o8)(t);e._listeningPort&&(n.nodePort=e._listeningPort),l.spec.ports.push(n);break}case"LoadBalancer":{const n=(0,o.o8)(t);e._listeningPort&&(n.port=e._listeningPort),c.spec.ports.push(n);break}default:break}}));const d=[],h=[];let p;if(s.spec.ports.length>0?(p=s.id?s:await this.$dispatch("cluster/create",s,{root:!0}),d.push(p)):s.id&&h.push(s),l.spec.ports.length>0){let e;e=l.id?l:await this.$dispatch("cluster/create",l,{root:!0}),d.push(e)}else l.id&&h.push(l);if(c.spec.ports.length>0){let e;e=c.id?c:await this.$dispatch("cluster/create",c,{root:!0});const n=t.filter((e=>e._ipam))||[];n.length>0&&(e.metadata.annotations[i.rk.CLOUD_PROVIDER_IPAM]=n[0]._ipam),d.push(e)}else c.id&&h.push(c);return{toSave:d,toRemove:h}}cleanForSave(e){const t=super.cleanForSave(e);return delete t.__active,delete t.type,t}cleanContainerForSave(e){return delete e.__active,delete e.active,delete e._init,delete e.error,e}}},27436:function(e,t,n){"use strict";function r(e){return()=>{}}function i(e){return()=>{}}function a(e){return()=>{}}function o(e){return()=>{}}function s(e){return()=>{}}function l(e){return()=>{}}function c(e){return()=>{}}function u(e){return()=>{}}function d(e){return()=>{}}function h(e){}function p(e){}function f(e){}function m(e){}function g(e){return()=>{}}function v(e){}function b(e){}function y(e){}n.d(t,{Gw:function(){return s},L7:function(){return d},Lk:function(){return i},Nh:function(){return h},PP:function(){return l},dM:function(){return p},eG:function(){return o},gc:function(){return v},hi:function(){return b},ho:function(){return a},iE:function(){return u},lB:function(){return f},oe:function(){return m},qq:function(){return r},ro:function(){return g},uc:function(){return c},yo:function(){return y}})},63905:function(e,t,n){"use strict";n.d(t,{BH:function(){return S},wA:function(){return _}});var r=n(82451),i=n.n(r),a=n(35664),o=n(86565),s=n(37648),l=n(50382),c=n(79401),u=n(90599),d=n(37417),h=n(50667),p=n(46392),f=n(4364);const m="all",g="merge",v="multi",b="none",y=15,w=15,E=10;async function _(e,t,n,r){if(n.url.includes(o.QF)||n.url.includes(o.lm)){const[i,l,c,...u]=n.url.split("/"),d=u.join("/"),h=l===o.lm,p=d?"getSpoofedInstance":"getSpoofedInstances",f=e[`${t}/all`](a.yx),m=await e[`type-map/${p}`](c,r,d),g=h?(0,s.mH)(f,c,m):m;return d&&!h?g:{data:g}}}async function S(e,t=!0){const{getters:n,dispatch:r,commit:i,rootGetters:o}=e,s=await r("findAll",{type:a.yx,opt:{url:"schemas",load:!1}}),l=o["type-map/allSpoofedSchemas"];Array.isArray(s.data)?s.data=s.data.concat(l):Array.isArray(s)&&(s.data=s.concat(l)),s.data.forEach(d.w),i("loadAll",{ctx:e,type:a.yx,data:s.data,revision:s.revision}),!1!==t&&r("watch",{type:a.yx,revision:s.revision});const c=n.all(a.yx);return c}const k=(e,t,n)=>n.namespaced?e.matching(t,null,n.namespaced,{skipSelector:!0}):e.all(t);t.Ay={request(){throw new Error("Not Implemented")},loadSchemas:S,async loadDataPage(e,{type:t,opt:n}){const{getters:r,commit:i,dispatch:a}=e;t=r.normalizeType(t),r.typeRegistered(t)||i("registerType",t);const o=r["loadCounter"](t);try{const s=await a("request",{opt:n,type:t}),l=r["loadCounter"](t);if(o!==l)return;i("loadAdd",{ctx:e,type:t,data:s.data}),s.pagination?.next?a("loadDataPage",{type:t,opt:{...n,url:s.pagination?.next}}):(n.hasManualRefresh&&a("resource-fetch/updateManualRefreshIsLoading",!1,{root:!0}),n.namespaced?i("setHaveNamespace",{type:t,namespace:n.namespaced}):i("setHaveAll",{type:t}))}catch(s){return n.hasManualRefresh&&a("resource-fetch/updateManualRefreshIsLoading",!1,{root:!0}),Promise.reject(s)}},async findAll(e,{type:t,opt:n}){const{getters:r,commit:i,dispatch:a,rootGetters:o}=e;if(n=n||{},t=r.normalizeType(t),r.typeRegistered(t)||i("registerType",t),!n.force&&(r["haveAll"](t)||r["haveAllNamespace"](t,n.namespaced))){if(!1!==n.watch){const e={type:t,revision:"",namespace:n.watchNamespace||n.namespaced};a("watch",e)}return k(r,t,n)}let s=void 0===n.load?m:n.load;!1!==n.load&&n.load!==b||(s=b);const l=o["type-map/optionsFor"](t);f.log(`Find All: [${e.state.config.namespace}] ${t}`),n=n||{},n.url=r.urlFor(t,null,n),n.stream=!1!==n.stream&&s!==b,n.depaginate=(0,p.Ng)(l?.depaginate,{ctx:e,args:{type:t,opt:n}});let c,d=!1;n.incremental&&(i("incrementLoadCounter",t),n.hasManualRefresh&&a("resource-fetch/updateManualRefreshIsLoading",!0,{root:!0}),c={...n,url:(0,h.R_)(n.url,"limit",`${n.incremental}`)},n.url=(0,h.R_)(n.url,"limit","100"),d=!0,n.force&&i("forgetType",t));let y,w,E=!1,_=[];n.onData=function(n){if(E){if(_.push(n),_.length>10){const t=_;_=[],i("loadMulti",{ctx:e,data:t})}}else i("forgetAll",{type:t}),E=!0,w=n};try{!n.incremental&&n.hasManualRefresh&&a("resource-fetch/updateManualRefreshIsLoading",!0,{root:!0});const o=await a("request",{opt:n,type:t});if(E){_.length&&(i("loadMulti",{ctx:e,data:_}),_=[]),i("loadedAll",{type:t});const n=r.all(t);o.finishDeferred(n),y=w}else y=o}catch(x){return!n.incremental&&n.hasManualRefresh&&a("resource-fetch/updateManualRefreshIsLoading",!1,{root:!0}),Promise.reject(x)}if(s===b)return!n.incremental&&n.hasManualRefresh&&a("resource-fetch/updateManualRefreshIsLoading",!1,{root:!0}),y;if(y.data&&(s===v?i("loadMulti",{ctx:e,data:y.data}):s===g?i("loadMerge",{ctx:e,type:t,data:y.data,existing:!0}):i("loadAll",{ctx:e,type:t,data:y.data,revision:y.revision,skipHaveAll:d,namespace:n.namespaced,pagination:n.pagination?{request:n.pagination,result:{count:y.count,pages:y.pages,timestamp:(new Date).getTime()}}:void 0}),n.incremental&&a("loadDataPage",{type:t,opt:c})),!1!==n.watch){const e={type:t,revision:y.revision,namespace:n.watchNamespace||n.namespaced,force:!0===n.forceWatch};a("watch",e)}const S=k(r,t,n);return!n.incremental&&n.hasManualRefresh&&a("resource-fetch/updateManualRefreshIsLoading",!1,{root:!0}),u.A.gcUpdateLastAccessed(e,t),S},async findPage(e,{type:t,opt:n}){const{getters:r,commit:i,dispatch:a}=e;if(n=n||{},!n.pagination)return void f.error("Attempting to find a page for a resource but no pagination settings supplied",t);if(t=r.normalizeType(t),r.typeRegistered(t)||i("registerType",t),!n.transient&&!n.force&&r["havePaginatedPage"](t,n))return k(r,t,n);let o;f.log(`Find Page: [${e.state.config.namespace}] ${t}. Page: ${n.pagination.page}. Size: ${n.pagination.pageSize}`),n=n||{},n.url=r.urlFor(t,null,n);try{n.hasManualRefresh&&a("resource-fetch/updateManualRefreshIsLoading",!0,{root:!0}),o=await a("request",{opt:n,type:t})}catch(l){return n.hasManualRefresh&&a("resource-fetch/updateManualRefreshIsLoading",!1,{root:!0}),Promise.reject(l)}await a("unwatch",{type:t,all:!0});const s=n.pagination?{request:{namespace:n.namespaced,pagination:n.pagination},result:{count:o.count,pages:o.pages||Math.ceil(o.count/(n.pagination.pageSize||Number.MAX_SAFE_INTEGER)),timestamp:(new Date).getTime()}}:void 0;return n.transient||i("loadPage",{ctx:e,type:t,data:o.data,pagination:s}),n.hasManualRefresh&&a("resource-fetch/updateManualRefreshIsLoading",!1,{root:!0}),u.A.gcUpdateLastAccessed(e,t),n.transient?{data:o.data,pagination:s}:k(r,t,n)},async findMatching(e,{type:t,selector:n,opt:r,namespace:i}){const{getters:a,commit:o,dispatch:s,rootGetters:l}=e;if(r=r||{},f.log(`Find Matching: [${e.state.config.namespace}] ${t}`,n),t=a.normalizeType(t),a.typeRegistered(t)||o("registerType",t),!0!==r.force&&a["haveSelector"](t,n))return a.matching(t,n,i);const c=l["type-map/optionsFor"](t);r=r||{},r.labelSelector=n,r.url=a.urlFor(t,null,r),r.depaginate=(0,p.Ng)(c?.depaginate,{ctx:e,args:{type:t,opt:r}});const d=await s("request",{opt:r,type:t});return!1===r.load?d.data:(o("loadSelector",{ctx:e,type:t,entries:d.data,selector:n,revision:d.revision}),!1!==r.watch&&s("watch",{type:t,selector:n,revision:d.revision,force:!0===r.forceWatch}),u.A.gcUpdateLastAccessed(e,t),a.matching(t,n,i))},async find(e,{type:t,id:n,opt:r}){if(!n)return void f.error("Attempting to find a resource with no id",t,n);const{getters:i,dispatch:a}=e;let o;if(r=r||{},t=(0,c.AZ)(t),f.log(`Find: [${e.state.config.namespace}] ${t} ${n}`),!0!==r.force&&(o=i.byId(t,n),o))return o;r=r||{},r.url=i.urlFor(t,n,r);const s=await a("request",{opt:r,type:t});if(await a("load",{data:s}),!1!==r.watch){const e={type:t,id:n,namespace:r.namespaced,revision:"undefined"!==typeof r.revision?r.revision:s?.metadata?.resourceVersion,force:!0===r.forceWatch},i=n.indexOf("/");i>0&&(e.namespace=n.substr(0,i),e.id=n.substr(i+1)),a("watch",e)}return o=i.byId(t,n),u.A.gcUpdateLastAccessed(e,t),o},load(e,{data:t,existing:n}){const{getters:r,commit:i}=e;let o=(0,c.AZ)(t.type);r.typeRegistered(o)||i("registerType",o),t.baseType&&t.baseType!==t.type&&(o=(0,c.AZ)(t.baseType),r.typeRegistered(o)||i("registerType",o)),o===a.yx&&(0,d.w)(t);const s=r.keyFieldForType(o),l=t?.[s]||n?.[s];if(l)return i("load",{ctx:e,data:t,existing:n}),o===a.yx&&i("type-map/schemaChanged",null,{root:!0}),r["byId"](o,l);f.warn("Attempting to load a resource with no id",t,n)},loadMulti(e,t){const{commit:n}=e;n("loadMulti",{data:t,ctx:e})},batchChanges(e,t){const{commit:n}=e;n("batchChanges",{ctx:e,batch:t})},loadAll(e,{type:t,data:n}){const{commit:r}=e;r("loadAll",{ctx:e,type:t,data:n})},create(e,t){return(0,l.L8)(e,t)},createMany(e,t){return t.map((t=>(0,l.L8)(e,t)))},async createPopulated(e,t){let n=null;const r=e.getters["schemaFor"](t.type);return r&&(r.fetchResourceFields&&await r.fetchResourceFields(),n=e.getters["defaultFor"](t.type,r)),i()(n,t),(0,l.L8)(e,n)},clone(e,{resource:t}={}){return(0,l.L8)(e,t.toJSON(),!0)},forgetType({commit:e,dispatch:t,state:n},r){n.started.filter((e=>e.type===r)).forEach((e=>t("unwatch",e))),e("forgetType",r)},promptRemove({commit:e,state:t},n){e("action-menu/togglePromptRemove",n,{root:!0})},promptModal({commit:e,state:t},n){e("action-menu/togglePromptModal",n,{root:!0})},resourceAction({getters:e,dispatch:t},{resource:n,actionName:r,body:i,opt:a}){throw new Error("Not Implemented")},collectionAction({getters:e,dispatch:t},{type:n,actionName:r,body:i,opt:a}){throw new Error("Not Implemented")},cleanForNew(e,t){throw new Error("Not Implemented")},createNamespace(e,t){throw new Error("Not Implemented")},cleanForDiff(e,t){throw new Error("Not Implemented")},cleanForDetail(e,t){return t},cleanForDownload(e,t){return t},async waitForSchema({getters:e,dispatch:t},{type:n}){let r=y,i=null;while(!i&&r>0)i=e["schemaFor"](n,!1,!1),i||(r===E&&f.warn(`Schema for ${n} not available... retrying...`),await new Promise((e=>setTimeout(e,1e3))),r--);0===r&&(f.warn(`Schema for ${n} still unavailable... loading schemas again...`),await t("loadSchemas",!0))},async waitForHaveAll({getters:e},{type:t,throwError:n=!1,attempts:r=w}){let i=r,a=null;while(!a&&i>0)a=e["haveAll"](t),a||(i===E&&f.warn(`wait for all of ${t} continuing...`),await new Promise((e=>setTimeout(e,1e3))),i--);if(0===i&&n)throw new Error(`Failed to wait for all of ${t}`)},incrementLoadCounter({commit:e},t){e("incrementLoadCounter",t)},garbageCollect(e,t){return u.A.garbageCollect(e,t)},gcResetStore({state:e}){u.A.gcResetStore(e)}}},50382:function(e,t,n){"use strict";n.d(t,{L8:function(){return a},vX:function(){return i}});var r=n(73883);const i="byType";function a(e,t,n=!1){if(t instanceof r.Ay)return t;const i=e.getters["classify"](t),a=new i(t,e,null,n);return a}},86794:function(e,t,n){"use strict";n.d(t,{d:function(){return p}});var r=n(35664),i=n(38823),a=n(37648),o=n(73883),s=n(96730),l=n(79401),c=n(48074),u=n(90599),d=n(15092),h=n(4364);const p=(e,t)=>(n,r,i)=>{i=i||{},n=t.normalizeType(n);let a,o=i.url;if(!o){if(a=t.schemaFor(n),!a)throw new Error(`Unknown schema for type: ${n}`);if(o=a.links.collection,!o)throw new Error(`You don't have permission to list this type: ${n}`);r&&(o+=`/${r}`)}if(!o.startsWith("/")&&!o.startsWith("http")){const t=e.config.baseUrl.replace(/\/$/,"");o=`${t}/${o}`}return o=t.urlOptions(o,i,a),o};function f(e,t){if(!e.namespaced||!e.byNamespace||null===t||null===e.count)return e.count;let n=0;for(const r of t)n+=e.byNamespace[r]?.count||0;return n}t.A={all:(e,t,n)=>r=>(r=t.normalizeType(r),t.typeRegistered(r)||(h.warn(`All of ${r} is not loaded yet`),s.Ay.registerType(e,r)),u.A.gcUpdateLastAccessed({state:e,getters:t,rootState:n},r),e.types[r].list),matching:(e,t,n)=>(r,a,o,s={skipSelector:!1})=>{let l=t["all"](r);return o&&"string"===typeof o&&(l=l.filter((e=>e.namespace===o))),u.A.gcUpdateLastAccessed({state:e,getters:t,rootState:n},r),s.skipSelector?l:l.filter((e=>(0,i.cK)(e,a)))},byId:(e,t,n)=>(r,i)=>{r=t.normalizeType(r);const a=e.types[r];if(a)return u.A.gcUpdateLastAccessed({state:e,getters:t,rootState:n},r),a.map.get(i)},pathExistsInSchema:(e,t)=>(e,t)=>!1,schema:(e,t)=>n=>{n=t.normalizeType(n);const i=e.types[r.yx],a=t.keyFieldForType(r.yx);return i.list.find((e=>{const r=t.normalizeType(e[a]);return r===n||r.endsWith(`.${n}`)}))},schemaName:(e,t)=>n=>{n=t.normalizeType(n);const i=e.types[r.yx],a=t.keyFieldForType(r.yx),o=i.list.find((e=>{const r=t.normalizeType(e[a]);return r===n||r.endsWith(`.${n}`)}));if(!o)return;const s=Array.isArray(o)?o:[o],l=s.map((e=>e[a])).sort(((e,t)=>e.length-t.length));return l[0]?l[0]:n},schemaFor:(e,t)=>(n,i=!1,a=!0)=>{const o=e.types[r.yx];if(n=t.normalizeType(n),!o){if(a)throw new Error("Schemas aren't loaded yet");return null}const s=o.map.get(n);if(!s&&i){const e=t.schemaName(n);if(e)return t.schemaFor(e)}return s},defaultFor:(e,t)=>(e,n,r=null)=>{let i;if(r)if(n.requiresResourceFields)i=r[e]?.resourceFields||{};else{const n=t["schemaFor"](e);i=n?.resourceFields||{}}else r=n.schemaDefinitions||{},i=n.resourceFields||{};const o={};for(const s in i){const e=i[s];if(!e)continue;const l=(0,a.fs)(e.type),c=(0,a.Cd)("map",l,e),u=(0,a.Cd)("array",l,e),d=(0,a.Cd)("reference",l);c||"map"===l||"json"===l?o[s]=t.defaultFor(l,n,r):u||"array"===l?o[s]=[]:d?o[s]=void 0:a.xs.includes(l)?"undefined"===typeof e["default"]?o[s]=void 0:o[s]=e["default"]:o[s]=t.defaultFor(l,n,r)}return o},canList:(e,t)=>e=>{const n=t.schemaFor(e);return n&&n.hasLink("collection")},typeRegistered:(e,t)=>n=>(n=t.normalizeType(n),!!e.types[n]),typeEntry:(e,t)=>n=>(n=t.normalizeType(n),e.types[n]),haveAll:(e,t)=>n=>{n=t.normalizeType(n);const r=e.types[n];return r&&r.haveAll||!1},haveAllNamespace:(e,t)=>(n,r)=>{if(!r)return!1;n=t.normalizeType(n);const i=e.types[n];return!!i&&i.haveNamespace===r},havePaginatedPage:(e,t)=>(n,r)=>{if(!r.pagination)return!1;n=t.normalizeType(n);const i=e.types[n];if(i?.havePage){const{namespace:e,pagination:t}=i.havePage.request,{namespace:n,pagination:a}={namespace:r.namespaced,pagination:r.pagination};return i.havePage&&e===n&&d.A.paginationEqual(t,a)}return!1},haveNamespace:(e,t)=>n=>(n=t.normalizeType(n),e.types[n]?.haveNamespace||null),havePage:(e,t)=>n=>(n=t.normalizeType(n),e.types[n]?.havePage||null),haveSelector:(e,t)=>(n,r)=>{n=t.normalizeType(n);const i=e.types[n];return i&&i.haveSelector[r]||!1},normalizeType:()=>e=>(0,l.AZ)(e),keyFieldForType:()=>e=>(0,l.BZ)(e),urlFor:p,urlOptions:()=>(e,t,n)=>e,storeName:e=>e.config.namespace,defaultModel:()=>()=>{},classify:(e,t,n)=>t=>(0,c.$)(e.config.namespace,t?.type,t?.metadata?.name,n)||o.Ay,cleanResource:()=>(e,t)=>t,isClusterStore:e=>e.config.isClusterStore,loadCounter:(e,t)=>n=>(n=t.normalizeType(n),e.types[n]?e.types[n].loadCounter:0),gcIgnoreTypes:()=>({}),count:(e,t,n,i)=>e=>{let n=e;const{name:a,count:o}=n;if(!a)throw new Error(`Resource type required to calc count: ${JSON.stringify(e)}`);if(!o){const e=t.schemaFor(a),i=t.all(r.i2)?.[0]?.counts||{},o=i[a];n={count:o?o.summary.count||0:null,byNamespace:o?o.namespaces:{},revision:o?o.revision:null,namespaced:e?.attributes?.namespaced}}const s=n?.namespaced&&!i.isAllNamespaces?Object.keys(i.activeNamespaceCache||{}):[];return f(n,s.length?s:null)},generation:(e,t)=>n=>{n=t.normalizeType(n);const r=e.types[n];if(r)return r.generation},paginationEnabled:(e,t,n,r)=>t=>{const n="object"===typeof t?t.id:t,i="object"===typeof t?t.context:void 0,a=e.config.namespace,o=n||i?{id:n,context:i}:null;return d.A.isEnabled({rootGetters:r},{store:a,resource:o})}}},25314:function(e,t,n){"use strict";n.d(t,{Ut:function(){return l},fs:function(){return s}});var r=n(63905),i=n(86794),a=n(96730),o=n(9274);const s={strict:!1,namespaced:!0,state(){return{...l()}},getters:{...i.A},mutations:{...a.Ay},actions:{...r.Ay}},l=(e,t,n)=>({config:{baseUrl:t,namespace:e,isClusterStore:n},types:{},$ctx:(0,o.markRaw)({})})},48074:function(e,t,n){"use strict";n.d(t,{$:function(){return l}});var r=n(79401);function i(e){return n(93197)(`./${e}`)}var a=n(4364);const o={};function s(e,t,n){const r=e[t];if(r)return r;if("undefined"!==typeof r)return null;try{const r=n.$plugin.getDynamic("models",t);let a;if(a=r?"function"===typeof r?r():r:i(t),a?.default?.prototype)return e[t]=a.default,a.default}catch(o){"MODULE_NOT_FOUND"!==o?.code&&a.error("Find error",t,o)}return e[t]=null,null}function l(e,t,n,i){let a;t=(0,r.AZ)(t).replace(/\//g,"");const l=[`${e}/${t}`,t];for(const r of l)if(a=s(o,r,i),a)return a;return null}},96730:function(e,t,n){"use strict";n.d(t,{AJ:function(){return y},HC:function(){return h},Hh:function(){return m},TF:function(){return b},WI:function(){return g},aW:function(){return E},gh:function(){return w},zp:function(){return v}});var r=n(9274),i=n(68851),a=n(35664),o=n(79401),s=n(37417),l=n(50382),c=n(90599),u=n(4364);function d(e,t){let n=e.types[t];return n||(n={list:[],haveAll:!1,haveSelector:{},haveNamespace:void 0,havePage:void 0,revision:0,generation:0,loadCounter:0,map:new Map},e.types[t]=n),n}function h(e,t){const n={};for(const r of Object.keys(e))delete e[r],n[r]=!0;let i=!1;for(const r of Object.keys(t))i||n[r]||(i=!0),e[r]=t[r];return i?(0,r.reactive)(e):e}function p(e,t,n){return t=n.cleanResource(e,t),h(e,t)}function f(e,t){const{getters:n}=e,r=(0,o.AZ)(t),i=n.keyFieldForType(r),a=e.rootGetters["type-map/optionsFor"](r);return{type:r,keyField:i,opts:a}}function m(e,{data:t,ctx:n,existing:c,cachedArgs:u}){const{getters:h}=n,{type:m,keyField:g,opts:v}=u||f(n,t.type);let b=m;const y=v?.limit;b===a.yx&&(0,s.w)(t);const w=t[g];let E=d(e,b);E.generation++;let _=E.map.get(w);const S=!!_;if(c&&!c.id){const e=p(c,t,h);_=S?p(_,e,h):e}else _=S?p(_,t,h):(0,r.reactive)((0,l.L8)(n,t));if(S||(E.list.push(_),E.map.set(w,_)),y&&E.list.length>y){const e=E.list.shift();E.map.delete(e.id)}return t.baseType&&(b=(0,o.AZ)(t.baseType),E=e.types[b],E&&((0,i.PG)(E.list,_),E.map.set(w,_))),E.havePage=!1,_}function g(e,t){const n=e.types[t];if(n)return n.haveAll=!1,n.haveSelector={},n.haveNamespace=void 0,n.havePage=void 0,n.revision=0,n.generation=0,(0,i.IU)(n.list),n.map.clear(),delete e.types[t],c.A.gcResetType(e,t),!0}function v(e,t){u.log("Reset store: ",e.config.namespace);for(const n of Object.keys(e.types))t(`${e.config.namespace}/forgetType`,n);c.A.gcResetStore(e)}function b(e,t,n){if(t){let r=(0,o.AZ)(t.type);const a=n[`${e.config.namespace}/keyFieldForType`](r),s=t[a];let l=e.types[r];l&&((0,i.Gj)(l.list,t),l.map.delete(s)),t.baseType&&(r=(0,o.AZ)(t.baseType),l=e.types[r],l&&((0,i.Gj)(l.list,t),l.map.delete(s)))}}function y(e,{ctx:t,batch:n}){const i=Object.keys(n),c={};i.forEach((e=>{c[e]=n[e];const r=t.rootGetters["type-map/optionsFor"](e);if(r?.alias?.length>0){const t=r?.alias||[];t.forEach((t=>{c[t]={};for(const[r,i]of Object.entries(n[e]))c[t][r]={...i,type:t}}))}}));const u=Object.keys(c);u.forEach((n=>{const i=(0,o.AZ)("counts"===n?a.i2:n),u=(0,o.BZ)(i),h=d(e,i),f={};h.list.forEach(((e,t)=>{f[e[u]]=t}));const m=[];Object.keys(c[i]).forEach((e=>{const n=f[e],o=c[i][e];if(0===Object.keys(o).length&&void 0!==n)h.map.delete(e),m.push(n);else if(0===Object.keys(o).length);else{i===a.yx&&(0,s.w)(o);const c=(0,r.reactive)((0,l.L8)(t,o));void 0===n?(h.list.push(c),h.map.set(e,c),f[c[u]]=h.list.length-1):p(h.list[n],o,t.getters)}})),m.sort().forEach(((e,t)=>{h.list.splice(e-t,1)}));const g=t.rootGetters["type-map/optionsFor"](n),v=g?.limit;if(v&&h.list.length>v){const e=h.list.shift();h.map.delete(e.id)}h.generation++}))}function w(e,{type:t,data:n,ctx:a,skipHaveAll:o,namespace:s,revision:c}){const{getters:u}=a;if(!n)return;const h=a.rootGetters["type-map/optionsFor"](t),p=h?.limit;p&&(n=n.slice(-p));const f=u.keyFieldForType(t),m=(0,r.reactive)(n.map((e=>(0,l.L8)(a,e)))),g=d(e,t);(0,i.IU)(g.list),g.map.clear(),g.revision=c||0,g.generation++,(0,i.cn)(g.list,m);for(let r=0;r<m.length;r++)g.map.set(m[r][f],m[r]);return o||(s?(g.havePage=!1,g.haveNamespace=s,g.haveAll=!1):(g.havePage=!1,g.haveNamespace=!1,g.haveAll=!0)),m}function E(e,{type:t,data:n,ctx:r}){const{getters:i}=r,a=i.keyFieldForType(t),o=f(r,n?.[0]?.type);n.forEach((n=>{const i=e.types[t].map.get(n[a]);m(e,{data:n,ctx:r,existing:i,cachedArgs:o})}))}t.Ay={registerType:d,load:m,applyConfig(e,t){e.config||(e.config={}),Object.assign(e.config,t)},loadMulti(e,{data:t,ctx:n}){for(const r of t)m(e,{data:r,ctx:n})},loadSelector(e,{type:t,entries:n,ctx:r,selector:i,revision:a}){const o=d(e,t),s=f(r,n?.[0]?.type);for(const l of n)m(e,{data:l,ctx:r,cachedArgs:s});o.haveSelector[i]=!0,o.revision=a||0},loadAll:w,batchChanges:y,loadMerge(e,{type:t,data:n,ctx:r}){const{commit:i,getters:a}=r,o=a.keyFieldForType(t),s=e.types[t],l=f(r,n?.[0].type);n.forEach((n=>{const i=e.types[t].map.get(n[o]);m(e,{data:n,ctx:r,existing:i,cachedArgs:l})})),s.list.forEach((e=>{n.find((t=>t.id===e.id))||i("remove",e)}))},loadAdd:E,loadPage(e,{type:t,data:n,ctx:a,pagination:o}){if(!n)return;const s=a.getters.keyFieldForType(t),c=(0,r.reactive)(n.map((e=>(0,l.L8)(a,e)))),u=d(e,t);(0,i.IU)(u.list),u.map.clear(),u.generation++,(0,i.cn)(u.list,c);for(let r=0;r<c.length;r++)u.map.set(c[r][s],c[r]);return u.havePage=o,u.haveNamespace=void 0,u.haveAll=void 0,c},forgetAll(e,{type:t}){const n=d(e,t);(0,i.IU)(n.list),n.map.clear(),n.generation++},setHaveAll(e,{type:t}){const n=d(e,t);n.haveAll=!0},setHaveNamespace(e,{type:t,namespace:n}){const r=d(e,t);r.haveNamespace=n},loadedAll(e,{type:t}){const n=d(e,t);n.generation++,n.haveAll=!0},remove(e,t){t&&b(e,t,this.getters)},reset(e){v(e,this.commit)},forgetType:g,incrementLoadCounter(e,t){const n=e.types[t];n&&n.loadCounter++}}},79401:function(e,t,n){"use strict";n.d(t,{AZ:function(){return l},BZ:function(){return s},Rq:function(){return c}});var r=n(35664),i=n(76978),a=n(4364);const o={[r.yx]:"_id",default:"id"};function s(e){return o[e]||o["default"]}function l(e){return e=(e?.type||e||"").toLowerCase(),e}async function c(e,t,n,r,o,s){const l=await o.dispatch(`${s}/cleanForDiff`,e,{root:!0}),c=await o.dispatch(`${s}/cleanForDiff`,t.toJSON(),{root:!0}),u=await o.dispatch(`${s}/cleanForDiff`,n.toJSON(),{root:!0}),d=(0,i.no)(l,u),h=(0,i.no)(l,c),p=(0,i.MA)(d,h);if(a.log("Background Change",d),a.log("User Change",h),a.log("Conflicts",p),t.metadata.resourceVersion=n.metadata.resourceVersion,(0,i.TJ)(t,d),p.length){const e=[r["i18n/t"]("validation.conflict",{fields:p.join(", "),fieldCount:p.length})];return e}return!1}},73883:function(e,t,n){"use strict";n.d(t,{qE:function(){return Y},xj:function(){return ie},jv:function(){return ne},uU:function(){return oe},Ay:function(){return he},rv:function(){return ue},hb:function(){return re},aB:function(){return le},ch:function(){return se},gs:function(){return ce}});var r=n(2841),i=n(14220),a=n(91462),o=n(68851),s=n(3514),l=n.n(s);function c(e,t,n,r){const i=r.includes("verifyLocal"),a=e.localOutputRefs||[],o=e.globalOutputRefs||[];i?l()(a)&&l()(o)&&n.push(t["i18n/t"]("validation.flowOutput.both")):l()(o)&&n.push(t["i18n/t"]("validation.flowOutput.global"))}function u(e,t,n,r){l()(e)||l()(e.api_key)&&n.push(t["i18n/t"]("validation.output.logdna.apiKey"))}var d=n(96047);function h(e,t,n,r){const{ports:i,type:a}=e;return"ExternalName"===a?n:l()(i)?(n.push(t["i18n/t"]("validation.required",{key:"Port Rules"})),n):(i.forEach(((e,r,i)=>{const{name:a,nodePort:o,port:s,targetPort:c}=e,u=r+1;if(i.length>1&&l()(a)&&n.push(t["i18n/t"]("validation.service.ports.name.required",{position:u})),!l()(a)){const e=(0,d.um)(a,"name",t,void 0,n);l()(e)||(n=n.length&&n.length>0?[...n,...e]:e)}if(o){const e=parseInt(o,10);isNaN(e)&&n.push(t["i18n/t"]("validation.service.ports.nodePort.requiredInt",{position:u}))}if(s){const e=parseInt(s,10);isNaN(e)&&n.push(t["i18n/t"]("validation.service.ports.port.requiredInt",{position:u}))}else n.push(t["i18n/t"]("validation.service.ports.port.required",{position:u}));if(c){const e=t["i18n/t"]("validation.service.ports.targetPort.ianaAt",{position:u}),r=parseInt(c,10),i=new RegExp("^\\d+$"),a=i.test(c);if(a)(r<1||r>65535)&&n.push(t["i18n/t"]("validation.service.ports.targetPort.between",{position:u}));else{const r={ianaServiceName:!0,maxLength:15,validChars:"A-Za-z0-9-"},i=(0,d.um)(c,e,t,r,n);l()(i)||n.push(...i)}}else n.push(t["i18n/t"]("validation.service.ports.targetPort.required",{position:u}))})),n)}function p(e,t,n,r){const i=["ClusterIP","NodePort","LoadBalancer"],a=e?.type;return i.includes(a),n}function f(e,t,n,r){if("ExternalName"===e?.type)if(l()(e?.externalName))n.push(t["i18n/t"]("validation.service.externalName.none"));else{const r=(0,d.cO)(e.externalName,"ExternalName",t,void 0,n);l()(r)||(n=n.length&&n.length>0?[...n,...r]:r)}return n}var m=n(52103),g=n.n(m);function v(e,t,n,r){return l()(e?.groups)&&n.push(t["i18n/t"]("validation.prometheusRule.groups.required")),n}function b(e=[],t,n,r){return e.forEach(((e,r)=>{const i=r+1;l()(e?.name)&&n.push(t["i18n/t"]("validation.prometheusRule.groups.valid.name",{index:i})),l()(e?.rules)?n.push(t["i18n/t"]("validation.prometheusRule.groups.valid.singleEntry",{index:i})):e.rules.forEach(((e,r)=>{const a=r+1;g()(e,"alert")&&l()(e?.alert)?n.push(t["i18n/t"]("validation.prometheusRule.groups.valid.rule.alertName",{groupIndex:i,ruleIndex:a})):g()(e,"record")&&l()(e?.record)&&n.push(t["i18n/t"]("validation.prometheusRule.groups.valid.rule.recordName",{groupIndex:i,ruleIndex:a})),(g()(e,"expr")&&l()(e.expr)||!g()(e,"expr"))&&n.push(t["i18n/t"]("validation.prometheusRule.groups.valid.rule.expr",{groupIndex:i,ruleIndex:a})),g()(e,"alert")&&(g()(e,"labels")&&l()(e.labels)||!g()(e,"labels"))&&n.push(t["i18n/t"]("validation.prometheusRule.groups.valid.rule.labels",{groupIndex:i,ruleIndex:a}))}))})),n}function y(e,t,n,r){l()(e?.match)&&l()(e?.["match_re"])&&n.push(t["i18n/t"]("validation.monitoring.route.match"))}function w(e,t,n,r,i){/^\d+[hms]$/.test(e)||n.push(t["i18n/t"]("validation.monitoring.route.interval",{key:i}))}var E=n(76978);function _(e,t,n){let r;r=e.jobTemplate?(0,E.Jt)(e,"jobTemplate.spec.template.spec"):(0,E.Jt)(e,"template.spec"),r.containers&&r.containers.length?r.containers.forEach((e=>{e&&!e.image&&n.push(t["i18n/t"]("workload.validation.containerImage",{name:e.name}))})):n.push(t["i18n/t"]("validation.required",{key:t["i18n/t"]("workload.container.titles.containers")}))}var S=n(70500);function k(e,t,n){if(!e)return;const{podAffinity:r,podAntiAffinity:i}=e;if(r&&!(0,E.Im)(r)){const{preferredDuringSchedulingIgnoredDuringExecution:e=[],requiredDuringSchedulingIgnoredDuringExecution:i=[]}=r;e.forEach(((e,r)=>{const i={index:r,group:t["i18n/t"]("validation.podAffinity.affinityTitle"),rules:t["i18n/t"]("validation.podAffinity.preferredDuringSchedulingIgnoredDuringExecution")};x(e,i,t,n);const{podAffinityTerm:a={}}=e;A(a,i,t,n),N(a,i,t,n)})),i.forEach(((e,r)=>{const i={index:r,group:t["i18n/t"]("validation.podAffinity.affinityTitle"),rules:t["i18n/t"]("validation.podAffinity.requiredDuringSchedulingIgnoredDuringExecution")};A(e,i,t,n),N(e,i,t,n)}))}if(i&&!(0,E.Im)(i)){const{preferredDuringSchedulingIgnoredDuringExecution:e=[],requiredDuringSchedulingIgnoredDuringExecution:r=[]}=i;e.forEach(((e,r)=>{const i={index:r,group:t["i18n/t"]("validation.podAffinity.antiAffinityTitle"),rules:t["i18n/t"]("validation.podAffinity.preferredDuringSchedulingIgnoredDuringExecution")};x(e,i,t,n);const{podAffinityTerm:a={}}=e;A(a,i,t,n),N(a,i,t,n)})),r.forEach(((e,r)=>{const i={index:r,group:t["i18n/t"]("validation.podAffinity.antiAffinityTitle"),rules:t["i18n/t"]("validation.podAffinity.requiredDuringSchedulingIgnoredDuringExecution")};A(e,i,t,n),N(e,i,t,n)}))}}function x(e,t,n,r){const{weight:i=1}=e;("number"!==typeof i||i>100||i<1)&&r.push(n["i18n/t"]("validation.number.between",{key:n["i18n/t"]("workload.scheduling.matchExpressions.weight"),min:1,max:100,...t}))}function A(e,t,n,r){const{topologyKey:i}=e,a=RegExp("([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]");i&&a.test(i)||r.push(n["i18n/t"]("validation.podAffinity.topologyKey",t))}function N(e,t,n,r){const i=["In","NotIn","Exists","DoesNotExist"],{labelSelector:a}=e;if(a&&!(0,E.Im)(a)){const{matchExpressions:e=[]}=a;e.forEach(((e,a)=>{const{operator:o,values:s}=e;i.includes(o)||r.push(n["i18n/t"]("validation.podAffinity.matchExpressions.operator",t)),"In"===o||"NotIn"===o?s&&s.length||r.push(n["i18n/t"]("validation.podAffinity.matchExpressions.valuesMustBeDefined",t)):s&&s.length&&r.push(n["i18n/t"]("validation.podAffinity.matchExpressions.valueMustBeEmpty",t))}))}}var C=n(35664);function T(e=[],t,n,r=[]){e.some((e=>l()(e.verbs)))&&n.push(t["i18n/t"]("validation.roleTemplate.roleTemplateRules.missingVerb")),e.some((e=>e.resources?.length&&e.nonResourceURLs?.length))&&n.push(t["i18n/t"]("validation.roleTemplate.roleTemplateRules.noResourceAndNonResource")),r[0]===C.lk.ROLE?(e.some((e=>l()(e.resources)))&&n.push(t["i18n/t"]("validation.roleTemplate.roleTemplateRules.missingResource")),e.some((e=>l()(e.apiGroups)))&&n.push(t["i18n/t"]("validation.roleTemplate.roleTemplateRules.missingApiGroup"))):e.some((e=>e.resources?.length&&e.nonResourceUrls?.length))&&n.push(t["i18n/t"]("validation.roleTemplate.roleTemplateRules.noResourceAndNonResource")),e.some((e=>l()(e.resources)&&l()(e.nonResourceURLs)))&&n.push(t["i18n/t"]("validation.roleTemplate.roleTemplateRules.missingOneResource"))}function R(e,t,n,r,i){const a="true"===r[0];return a&&(e||"").match(/^(c-.{5}|local)$/i)&&n.push(t["i18n/t"]("validation.cluster.name")),n}var O={clusterName:R,clusterIp:p,externalName:f,flowOutput:c,groupsAreValid:b,logdna:u,ruleGroups:v,interval:w,servicePort:h,matching:y,containerImages:_,cronSchedule:S.u,podAffinity:k,roleTemplateRules:T},I=n(6198),L=n(88339),D=n(74302),P=n(92043),M=n(71274),B=n(23330),F=n(20246),$=n.n(F),U=n(16238),j=n.n(U),V=(n(68371),n(93655)),K=n.n(V),H=n(8138),G=n.n(H),z=n(9274),q=n(31915),X=n(25659),W=n(4364);const Y=["dnsLabel","dnsLabelRestricted","hostname"],Q={disabled:"inactive",notapplied:"Not Applied",notready:"Not Ready",waitapplied:"Wait Applied",outofsync:"Out of Sync","in-progress":"In Progress",gitupdating:"Git Updating",errapplied:"Err Applied",waitcheckin:"Wait Check-In",off:"Disabled",waitingforinfrastructure:"Waiting for Infra",waitingfornoderef:"Waiting for Node Ref"},J="warning",Z="x",ee=1e3,te=3e4,ne={IN_USE:"in-use",IN_PROGRESS:"in-progress",PENDING_ROLLBACK:"pending-rollback",PENDING_UPGRADE:"pending-upgrade",ABORTED:"aborted",ACTIVATING:"activating",ACTIVE:"active",AVAILABLE:"available",BACKED_UP:"backedup",BOUND:"bound",BUILDING:"building",COMPLETED:"completed",CORDONED:"cordoned",COUNT:"count",CREATED:"created",CREATING:"creating",DEACTIVATING:"deactivating",DEGRADED:"degraded",DENIED:"denied",DEPLOYED:"deployed",DEPLOYING:"deploying",DISABLED:"disabled",DISCONNECTED:"disconnected",DRAINED:"drained",DRAINING:"draining",ENABLED:"enabled",ERR_APPLIED:"errapplied",ERROR:"error",ERRORING:"erroring",ERRORS:"errors",EXPIRED:"expired",EXPIRING:"expiring",FAIL:"fail",FAILED:"failed",HEALTHY:"healthy",INACTIVE:"inactive",INFO:"info",INITIALIZING:"initializing",INPROGRESS:"inprogress",LOCKED:"locked",MIGRATING:"migrating",MISSING:"missing",MODIFIED:"modified",NOT_APPLICABLE:"notApplicable",NOT_APLLIED:"notapplied",NOT_READY:"notready",OFF:"off",ORPHANED:"orphaned",OTHER:"other",OUT_OF_SYNC:"outofsync",ON_GOING:"on-going",PASS:"pass",PASSED:"passed",PAUSED:"paused",PENDING:"pending",PROVISIONING:"provisioning",PROVISIONED:"provisioned",PURGED:"purged",PURGING:"purging",READY:"ready",RECONNECTING:"reconnecting",REGISTERING:"registering",REINITIALIZING:"reinitializing",RELEASED:"released",REMOVED:"removed",REMOVING:"removing",REQUESTED:"requested",RESTARTING:"restarting",RESTORING:"restoring",RESIZING:"resizing",RUNNING:"running",SKIP:"skip",SKIPPED:"skipped",STARTING:"starting",STOPPED:"stopped",STOPPING:"stopping",SUCCEEDED:"succeeded",SUCCESS:"success",SUCCESSFUL:"successful",SUPERSEDED:"superseded",SUSPENDED:"suspended",UNAVAILABLE:"unavailable",UNHEALTHY:"unhealthy",UNINSTALLED:"uninstalled",UNINSTALLING:"uninstalling",UNKNOWN:"unknown",UNTRIGGERED:"untriggered",UPDATING:"updating",WAIT_APPLIED:"waitapplied",WAIT_CHECKIN:"waitcheckin",WAITING:"waiting",WARNING:"warning"};function re(e){return Object.values(ne).find((t=>t.toLowerCase()===e.toLocaleLowerCase()))}const ie={[ne.IN_USE]:{color:"success",icon:"dot-open",label:"In Use",compoundIcon:"checkmark"},[ne.IN_PROGRESS]:{color:"info",icon:"tag",label:"In Progress",compoundIcon:"info"},[ne.PENDING_ROLLBACK]:{color:"info",icon:"dot-half",label:"Pending Rollback",compoundIcon:"info"},[ne.PENDING_UPGRADE]:{color:"info",icon:"dot-half",label:"Pending Update",compoundIcon:"info"},[ne.ABORTED]:{color:"warning",icon:"error",label:"Aborted",compoundIcon:"warning"},[ne.ACTIVATING]:{color:"info",icon:"tag",label:"Activating",compoundIcon:"info"},[ne.ACTIVE]:{color:"success",icon:"dot-open",label:"Active",compoundIcon:"checkmark"},[ne.AVAILABLE]:{color:"success",icon:"dot-open",label:"Available",compoundIcon:"checkmark"},[ne.BACKED_UP]:{color:"success",icon:"backup",label:"Backed Up",compoundIcon:"checkmark"},[ne.BOUND]:{color:"success",icon:"dot",label:"Bound",compoundIcon:"checkmark"},[ne.BUILDING]:{color:"success",icon:"dot-open",label:"Building",compoundIcon:"checkmark"},[ne.COMPLETED]:{color:"success",icon:"dot",label:"Completed",compoundIcon:"checkmark"},[ne.CORDONED]:{color:"info",icon:"tag",label:"Cordoned",compoundIcon:"info"},[ne.COUNT]:{color:"success",icon:"dot-open",label:"Count",compoundIcon:"checkmark"},[ne.CREATED]:{color:"info",icon:"tag",label:"Created",compoundIcon:"info"},[ne.CREATING]:{color:"info",icon:"tag",label:"Creating",compoundIcon:"info"},[ne.DEACTIVATING]:{color:"info",icon:"adjust",label:"Deactivating",compoundIcon:"info"},[ne.DEGRADED]:{color:"warning",icon:"error",label:"Degraded",compoundIcon:"warning"},[ne.DENIED]:{color:"error",icon:"adjust",label:"Denied",compoundIcon:"error"},[ne.DEPLOYED]:{color:"success",icon:"dot-open",label:"Deployed",compoundIcon:"checkmark"},[ne.DISABLED]:{color:"warning",icon:"error",label:"Disabled",compoundIcon:"warning"},[ne.DISCONNECTED]:{color:"warning",icon:"error",label:"Disconnected",compoundIcon:"warning"},[ne.DRAINED]:{color:"info",icon:"tag",label:"Drained",compoundIcon:"info"},[ne.DRAINING]:{color:"warning",icon:"tag",label:"Draining",compoundIcon:"warning"},[ne.ENABLED]:{color:"success",icon:"dot-open",label:"Enabled",compoundIcon:"checkmark"},[ne.ERR_APPLIED]:{color:"error",icon:"error",label:"Error Applied",compoundIcon:"error"},[ne.ERROR]:{color:"error",icon:"error",label:"Error",compoundIcon:"error"},[ne.ERRORING]:{color:"error",icon:"error",label:"Erroring",compoundIcon:"error"},[ne.ERRORS]:{color:"error",icon:"error",label:"Errors",compoundIcon:"error"},[ne.EXPIRED]:{color:"error",icon:"error",label:"Expired",compoundIcon:"warning"},[ne.EXPIRING]:{color:"warning",icon:"error",label:"Expiring",compoundIcon:"error"},[ne.FAIL]:{color:"error",icon:"error",label:"Fail",compoundIcon:"error"},[ne.FAILED]:{color:"error",icon:"error",label:"Failed",compoundIcon:"error"},[ne.HEALTHY]:{color:"success",icon:"dot-open",label:"Healthy",compoundIcon:"checkmark"},[ne.INACTIVE]:{color:"error",icon:"dot",label:"Inactive",compoundIcon:"error"},[ne.INITIALIZING]:{color:"warning",icon:"error",label:"Initializing",compoundIcon:"warning"},[ne.INPROGRESS]:{color:"info",icon:"spinner",label:"In Progress",compoundIcon:"info"},[ne.INFO]:{color:"info",icon:"info",label:"Info",compoundIcon:"info"},[ne.LOCKED]:{color:"warning",icon:"adjust",label:"Locked",compoundIcon:"warning"},[ne.MIGRATING]:{color:"info",icon:"info",label:"Migrated",compoundIcon:"info"},[ne.MISSING]:{color:"warning",icon:"adjust",label:"Missing",compoundIcon:"warning"},[ne.MODIFIED]:{color:"warning",icon:"edit",label:"Modified",compoundIcon:"warning"},[ne.NOT_APPLICABLE]:{color:"warning",icon:"tag",label:"Not Applicable",compoundIcon:"warning"},[ne.NOT_APLLIED]:{color:"warning",icon:"tag",label:"Not Applied",compoundIcon:"warning"},[ne.NOT_READY]:{color:"warning",icon:"tag",label:"Not Ready",compoundIcon:"warning"},[ne.OFF]:{color:"darker",icon:"error",label:"Off"},[ne.ON_GOING]:{color:"info",icon:"info",label:"Info",compoundIcon:"info"},[ne.ORPHANED]:{color:"warning",icon:"tag",label:"Orphaned",compoundIcon:"warning"},[ne.OTHER]:{color:"info",icon:"info",label:"Other",compoundIcon:"info"},[ne.OUT_OF_SYNC]:{color:"warning",icon:"tag",label:"Out Of Sync",compoundIcon:"warning"},[ne.PASS]:{color:"success",icon:"dot-dotfill",label:"Pass",compoundIcon:"checkmark"},[ne.PASSED]:{color:"success",icon:"dot-dotfill",label:"Passed",compoundIcon:"checkmark"},[ne.PAUSED]:{color:"info",icon:"info",label:"Paused",compoundIcon:"info"},[ne.PENDING]:{color:"info",icon:"tag",label:"Pending",compoundIcon:"info"},[ne.PROVISIONING]:{color:"info",icon:"dot",label:"Provisioning",compoundIcon:"info"},[ne.PROVISIONED]:{color:"success",icon:"dot",label:"Provisioned",compoundIcon:"checkmark"},[ne.PURGED]:{color:"error",icon:"purged",label:"Purged",compoundIcon:"error"},[ne.PURGING]:{color:"info",icon:"purged",label:"Purging",compoundIcon:"info"},[ne.READY]:{color:"success",icon:"dot-open",label:"Ready",compoundIcon:"checkmark"},[ne.RECONNECTING]:{color:"error",icon:"error",label:"Reconnecting",compoundIcon:"error"},[ne.REGISTERING]:{color:"info",icon:"tag",label:"Registering",compoundIcon:"info"},[ne.REINITIALIZING]:{color:"warning",icon:"error",label:"Reinitializing",compoundIcon:"warning"},[ne.RELEASED]:{color:"warning",icon:"error",label:"Released",compoundIcon:"warning"},[ne.REMOVED]:{color:"error",icon:"trash",label:"Removed",compoundIcon:"error"},[ne.REMOVING]:{color:"info",icon:"trash",label:"Removing",compoundIcon:"info"},[ne.REQUESTED]:{color:"info",icon:"tag",label:"Requested",compoundIcon:"info"},[ne.RESTARTING]:{color:"info",icon:"adjust",label:"Restarting",compoundIcon:"info"},[ne.RESTORING]:{color:"info",icon:"medicalcross",label:"Restoring",compoundIcon:"info"},[ne.RESIZING]:{color:"warning",icon:"dot",label:"Resizing",compoundIcon:"warning"},[ne.RUNNING]:{color:"success",icon:"dot-open",label:"Running",compoundIcon:"checkmark"},[ne.SKIP]:{color:"info",icon:"dot-open",label:"Skip",compoundIcon:"info"},[ne.SKIPPED]:{color:"info",icon:"dot-open",label:"Skipped",compoundIcon:"info"},[ne.STARTING]:{color:"info",icon:"adjust",label:"Starting",compoundIcon:"info"},[ne.STOPPED]:{color:"error",icon:"dot",label:"Stopped",compoundIcon:"error"},[ne.STOPPING]:{color:"info",icon:"adjust",label:"Stopping",compoundIcon:"info"},[ne.SUCCEEDED]:{color:"success",icon:"dot-dotfill",label:"Succeeded",compoundIcon:"checkmark"},[ne.SUCCESS]:{color:"success",icon:"dot-open",label:"Success",compoundIcon:"checkmark"},[ne.SUCCESSFUL]:{color:"success",icon:"dot-open",label:"Successful"},[ne.SUPERSEDED]:{color:"info",icon:"dot-open",label:"Superseded",compoundIcon:"info"},[ne.SUSPENDED]:{color:"info",icon:"pause",label:"Suspended",compoundIcon:"info"},[ne.UNAVAILABLE]:{color:"error",icon:"error",label:"Unavailable",compoundIcon:"error"},[ne.UNHEALTHY]:{color:"error",icon:"error",label:"Unhealthy",compoundIcon:"error"},[ne.UNINSTALLED]:{color:"info",icon:"trash",label:"Uninstalled",compoundIcon:"info"},[ne.UNINSTALLING]:{color:"info",icon:"trash",label:"Uninstalling",compoundIcon:"info"},[ne.UNKNOWN]:{color:"warning",icon:"x",label:"Unknown",compoundIcon:"warning"},[ne.UNTRIGGERED]:{color:"success",icon:"tag",label:"Untriggered",compoundIcon:"checkmark"},[ne.UPDATING]:{color:"warning",icon:"tag",label:"Updating",compoundIcon:"warning"},[ne.WAIT_APPLIED]:{color:"info",icon:"tag",label:"Wait Applied",compoundIcon:"info"},[ne.WAIT_CHECKIN]:{color:"warning",icon:"tag",label:"Wait Checkin",compoundIcon:"warning"},[ne.WAITING]:{color:"info",icon:"tag",label:"Waiting",compoundIcon:"info"},[ne.WARNING]:{color:"warning",icon:"error",label:"Warning",compoundIcon:"warning"},[ne.DEPLOYING]:{color:"info",icon:"info",label:"Deploying",compoundIcon:"info"}};const ae={error:1,warning:2,info:3,success:4,ready:5,notready:6,other:7};function oe(e,t,n){if(t)return"text-error";if(n)return"text-info";const r=(e||"active").toLowerCase();let i;return ie[r]&&ie[r].color&&(i=de.call(this,ie[r].color)),i||(i=J),`text-${i}`}function se(e){const t=(e||"active").toLowerCase();return Q[t]?Q[t]:t.split(/-/).map(P.TF).join("-")}function le(e){const t=[ne.ERROR,ne.FAILED,ne.WARNING,ne.MODIFIED,ne.WAIT_APPLIED,ne.ORPHANED,ne.MISSING,ne.UNKNOWN,ne.NOT_READY,ne.READY],n=Object.keys(e).filter((n=>e[n]>0&&t.includes(n.toLowerCase()))).sort(((e,n)=>t.indexOf(e.toLowerCase())-t.indexOf(n.toLowerCase())));return n[0]?n[0]:ne.UNKNOWN}function ce(e,t){return e=e.replace(/^(text|bg)-/,""),`${ae[e]||ae["other"]} ${t}`}function ue(e){return!!e&&("ready"===e?.type?.toLowerCase()&&"waiting"===e?.reason?.toLowerCase())}function de(e){return K()(e)?e(this):e}class he{constructor(e,t={},n=null,r=!1){for(const i in e)this[i]=e[i];Object.defineProperty(this,"$ctx",{value:(0,z.markRaw)(t),enumerable:!1}),n&&Object.defineProperty(this,"__rehydrate",{value:n,enumerable:!0,configurable:!0}),r&&Object.defineProperty(this,"__clone",{value:!0,enumerable:!0,configurable:!0,writable:!0})}get $getters(){return this.$ctx.getters}get $rootGetters(){return this.$ctx.rootGetters}get $dispatch(){return this.$ctx.dispatch}get $state(){return this.$ctx.state}get $rootState(){return this.$ctx.rootState}get $plugin(){return this.$ctx.rootState?.$plugin}get customValidationRules(){return[]}get _key(){const e=this.metadata;if(e){if(e.uid)return e.uid;if(e.namespace)return`${this.type}/${e.namespace}/${e.name}`}return this.id?`${this.type}/${this.id}`:`${this.type}/${Math.random()}`}get schema(){return this.$getters["schemaFor"](this.type)}toString(){return`[${this.type}: ${this.id}]`}get typeDisplay(){const e=this.schema;return e?this.$rootGetters["type-map/labelFor"](e):"?"}get nameDisplay(){return this.displayName||this.spec?.displayName||this.metadata?.annotations?.[r.ks]||this.name||this.metadata?.name||this.id}get nameSort(){return(0,D.RY)(this.nameDisplay).toLowerCase()}get namespacedName(){const e=this.metadata?.namespace,t=this.nameDisplay;return e?`${e}:${t}`:t}get namespacedNameSort(){return(0,D.RY)(this.namespacedName).toLowerCase()}get groupByLabel(){const e=this.metadata?.namespace;let t;return t=e?this.t("resourceTable.groupLabel.namespace",{name:(0,P.ZD)(e)}):this.t("resourceTable.groupLabel.notInANamespace"),t}setLabels(){throw new Error("Implement setLabels in subclass")}setLabel(){throw new Error("Implement setLabel in subclass")}setAnnotations(e){throw new Error("Implement setAnnotations in subclass")}setAnnotation(e,t){throw new Error("Implement setAnnotation in subclass")}get stateDisplay(){return se(this.state)}get stateColor(){return oe.call(this,this.state,this.stateObj?.error,this.stateObj?.transitioning)}get stateBackground(){return this.stateColor.replace("text-","bg-")}get stateIcon(){let e=!1,t=!1;if(this.metadata&&this.metadata.state&&(e=this.metadata.state.transitioning,t=this.metadata.state.error),e)return"icon icon-spinner icon-spin";if(t)return"icon icon-error";const n=(this.state||"").toLowerCase();let r;return ie[n]&&ie[n].icon&&(r=de.call(this,ie[n].icon)),r||(r=Z),`icon icon-${r}`}get stateSort(){return ce(this.stateColor,this.stateDisplay)}get stateDescription(){const e=this.stateObj?.transitioning||!1,t=this.stateObj?.error||!1,n=this.stateObj?.message;return e||t?(0,P.TF)(n):""}get stateObj(){return this.metadata?.state}waitForTestFn(e,t,n,r){return(0,B.f)((()=>e.apply(this)),t,n||te,r||ee,!0)}waitForState(e,t,n){return this.waitForTestFn((()=>(this.state||"").toLowerCase()===e.toLowerCase()),`state=${e}`,t,n)}waitForTransition(){return this.waitForTestFn((()=>!this.transitioning),"transition completion",void 0,void 0)}waitForAction(e){return this.waitForTestFn((()=>this.hasAction(e)),`action=${e}`,void 0,void 0)}waitForLink(e){return this.waitForTestFn((()=>this.hasLink(e)),`link=${e}`,void 0,void 0)}hasCondition(e){return this.isCondition(e,null)}isCondition(e,t="True"){if(!this.status||!this.status.conditions)return!1;const n=(0,o.jq)(this.status.conditions||[],"type",e);return!!n&&(!t||(n.status||"").toLowerCase()===`${t}`.toLowerCase())}waitForCondition(e,t="True",n=te,r=ee){return this.waitForTestFn((()=>this.isCondition(e,t)),`condition ${e}=${t}`,n,r)}get availableActions(){const e=this._availableActions;let t=null;const n=e.filter((e=>{if(!1===e.enabled)return!1;const n=e.divider,r=!n||n&&!t;return t=n,r}));while(n.length&&n[0].divider)n.shift();while(n.length&&n[n.length-1].divider)n.pop();for(let r=1;r<n.length;r++)n[r].divider&&n[r-1].divider&&((0,o.Wq)(n,r,1),r--);return n}get _availableActions(){const e=this.currentRouter().currentRoute.value,t=(0,X.A)(this.$rootState,q.c7.ACTION,q.ug.TABLE,e,this),n=[{divider:!0},{action:this.canUpdate?"goToEdit":"goToViewConfig",label:this.t(this.canUpdate?"action.edit":"action.view"),icon:"icon icon-edit",enabled:this.canCustomEdit},{action:this.canEditYaml?"goToEditYaml":"goToViewYaml",label:this.t(this.canEditYaml?"action.editYaml":"action.viewYaml"),icon:"icon icon-file",enabled:this.canYaml},{action:this.canCustomEdit?"goToClone":"cloneYaml",label:this.t("action.clone"),icon:"icon icon-copy",enabled:this.canClone&&this.canCreate&&(this.canCustomEdit||this.canYaml)},{divider:!0},{action:"download",label:this.t("action.download"),icon:"icon icon-download",bulkable:!0,bulkAction:"downloadBulk",enabled:this.canYaml,weight:-9},{action:"viewInApi",label:this.t("action.viewInApi"),icon:"icon icon-external-link",enabled:this.canViewInApi},{action:"promptRemove",altAction:"remove",label:this.t("action.remove"),icon:"icon icon-trash",bulkable:!0,enabled:this.canDelete,bulkAction:"promptRemove",weight:-10}];return t.length&&(n.push({divider:!0}),t.forEach((e=>{const t={...e},r=t.enabled,i=typeof r;switch(i){case"undefined":t.enabled=!0;break;case"function":Object.defineProperty(t,"enabled",{get:()=>r(this)});break;case"boolean":break;default:W.warn(`Unsupported 'enabled' property type for action: ${e.label||e.labelKey}`),delete t.enabled;break}n.push(t)}))),n}get canDelete(){return this._canDelete}get _canDelete(){return this.hasLink("remove")&&this.$rootGetters["type-map/optionsFor"](this.type).isRemovable}get canClone(){return!0}get canUpdate(){return this.hasLink("update")&&this.$rootGetters["type-map/optionsFor"](this.type).isEditable}get canCustomEdit(){return this.$rootGetters["type-map/hasCustomEdit"](this.type,this.id)}get canCreate(){return!(this.schema&&!this.schema?.collectionMethods.find((e=>"post"===e.toLowerCase())))&&this.$rootGetters["type-map/optionsFor"](this.type).isCreatable}get canViewInApi(){try{return this.hasLink("self")&&this.$rootGetters["prefs/get"](a.HZ)}catch{return this.hasLink("self")&&this.$rootGetters["prefs/get"](a.IJ)}}get canYaml(){return this.hasLink("view")}get canEditYaml(){return!this.schema?.resourceMethods?.find((e=>"blocked-PUT"===e))&&this.canUpdate}hasLink(e){return!!this.linkFor(e)}linkFor(e){return(this.links||{})[e]}followLink(e,t={}){if(t.url||(t.url=(this.links||{})[e]),t.urlSuffix&&(t.url+=t.urlSuffix),!t.url)throw new Error(`Unknown link ${e} on ${this.type} ${this.id}`);return this.$dispatch("request",{opt:t,type:this.type})}hasAction(e){return!!this.actionLinkFor(e)}actionLinkFor(e){return(this.actions||this.actionLinks||{})[e]}doAction(e,t,n={}){return this.$dispatch("resourceAction",{resource:this,actionName:e,body:t,opt:n})}async doActionGrowl(e,t,n={}){try{return await this.$dispatch("resourceAction",{resource:this,actionName:e,body:t,opt:n})}catch(r){this.$dispatch("growl/fromError",{title:this.$rootGetters["i18n/t"]("generic.notification.title.error"),err:r.data||r},{root:!0})}}patch(e,t={},n=!1,r=!1){if(t.url||(t.url=this.linkFor("view")||this.linkFor("self")),t.method="patch",t.headers=t.headers||{},!t.headers["content-type"]){const e=n?"application/strategic-merge-patch+json":"application/json-patch+json";t.headers["content-type"]=e}t.data=e;const i=this.$dispatch("request",{opt:t,type:this.type});return r?i.catch((e=>{const t=this.t("resource.errors.update",{name:this.name});W.error(t,e),this.$dispatch("growl/error",{title:t,message:e?.message,timeout:5e3},{root:!0})})):i}save(){return this._save(...arguments)}cleanForSave(e,t){return delete e.__rehydrate,delete e.__clone,e}processSaveResponse(e){}async _save(e={}){const t=!this.id,n=this.validationErrors(this,e);if(!l()(n))return Promise.reject(n);if(this.metadata?.resourceVersion&&(this.metadata.resourceVersion=`${this.metadata.resourceVersion}`),!e.url)if(t){const t=this.$getters["schemaFor"](this.type);let n=t.linkFor("collection");t.attributes&&t.attributes.namespaced&&this.metadata&&this.metadata.namespace&&(n+=`/${this.metadata.namespace}`),e.url=n}else e.url=this.linkFor("update")||this.linkFor("self");if(e.method||(e.method=t?"post":"put"),e.headers||(e.headers={}),e.headers["content-type"]||(e.headers["content-type"]="application/json"),e.headers["accept"]||(e.headers["accept"]="application/json"),e.data=this.toSave()||{...this},e.data._type&&(e.data.type=e.data._type),e.data._name&&(e.data.name=e.data._name),e.data._labels&&(e.data.labels=e.data._labels),e.data._annotations&&(e.data.annotations=e.data._annotations),e.data=this.cleanForSave(e.data,t),e?.replace&&"put"===e.method){const t=e.url.includes("?")?"&":"?";e.url=`${e.url}${t}_replace=true`,delete e.replace}try{const n=await this.$dispatch("request",{opt:e,type:this.type});this.processSaveResponse(n),n&&"Table"!==n.kind&&await this.$dispatch("load",{data:n,existing:t?this:void 0})}catch(r){return this.type&&this.id&&409===r?._status&&await this.$dispatch("find",{type:this.type,id:this.id,opt:{force:!0}}),Promise.reject(r)}return this}remove(){return this._remove(...arguments)}async _remove(e={}){e.url||(e.url=this.linkFor("self")),e.method="delete";const t=await this.$dispatch("request",{opt:e,type:this.type});204===t?._status&&await this.$dispatch("ws.resource.remove",{data:this})}currentRoute(){return window.$globalApp.$route}currentRouter(){return window.$globalApp.$router}get listLocation(){return{name:"c-cluster-product-resource",params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],resource:this.type}}}get _detailLocation(){const e=this.$getters["schemaFor"](this.type),t=this.id?.replace(/.*\//,"");return{name:`c-cluster-product-resource${e?.attributes?.namespaced?"-namespace":""}-id`,params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],resource:this.type,namespace:this.metadata?.namespace,id:t}}}get detailLocation(){return this._detailLocation}goToDetail(){this.currentRouter().push(this.detailLocation)}goToClone(e={}){const t=this.detailLocation;t.query={...t.query,[i.g]:i.dT,[i.AS]:i.xz,...e},this.currentRouter().push(t)}goToEdit(e={}){const t=this.detailLocation;t.query={...t.query,[i.g]:i.G5,[i.AS]:i.xz,...e},this.currentRouter().push(t)}goToViewConfig(e={}){const t=this.detailLocation;t.query={...t.query,[i.g]:i.nW,[i.AS]:i.au,...e},this.currentRouter().push(t)}goToEditYaml(){const e=this.detailLocation;e.query={...e.query,[i.g]:i.G5,[i.AS]:i.zD},this.currentRouter().push(e)}goToViewYaml(){const e=this.detailLocation;e.query={...e.query,[i.g]:i.nW,[i.AS]:i.zD},this.currentRouter().push(e)}cloneYaml(e={}){const t=this.detailLocation;t.query={...t.query,[i.g]:i.dT,[i.AS]:i.zD,...e},this.currentRouter().push(t)}async download(){const e=await this.followLink("view",{headers:{accept:"application/yaml"}}),t=await this.cleanForDownload(e.data);(0,I.PE)(`${this.nameDisplay}.yaml`,t,"application/yaml")}async downloadBulk(e){const t={},n=[];for(const i of e){let e=`${i.nameDisplay}.yaml`,t=2;while(n.includes(e))e=`${i.nameDisplay}_${t++}.yaml`;n.push(e)}await(0,L.hF)(e,10,((e,r)=>e.followLink("view",{headers:{accept:"application/yaml"}}).then((async e=>{const i=e.data||e,a=await this.cleanForDownload(i);t[`resources/${n[r]}`]=a}))));const r=await(0,I.jl)(t);(0,I.PE)("resources.zip",r,"application/zip")}viewInApi(){window.open(this.links.self,"_blank")}promptRemove(e){e||(e=this),this.$dispatch("promptRemove",e)}get confirmRemove(){return!1}applyDefaults(){}get urlFromAttrs(){const e=this.$getters["schemaFor"](this.type),{metadata:{namespace:t="default"}}=this;let n=e.links.collection;const r=e?.attributes;if(!r)throw new Error("Attributes must be present on the schema");const{group:i,resource:a}=r;return n=`${n.slice(0,n.indexOf("/v1"))}/apis/${i}/namespaces/${t}/${a}`,n}cleanYaml(e,t="edit"){try{const n=$().load(e);"edit"!==t&&this.$dispatch("cleanForNew",n),n._type&&(n.type=n._type,delete n._type);const r=$().dump(n,{skipInvalid:!0});return r}catch(n){return null}}cleanForNew(){this.$dispatch("cleanForNew",this)}cleanForDiff(){this.$dispatch("cleanForDiff",this.toJSON())}async cleanForDownload(e){return this.$dispatch("cleanForDownload",e)}yamlForSave(e){try{const t=$().load(e);if(t)return this._type&&(t._type=t.type),$().dump(t)}catch(t){return null}}async saveYaml(e){await this._saveYaml(e)}async _saveYaml(e){const t=$().load(e);if(this.schema?.attributes?.namespaced&&!t.metadata.namespace){const e=this.$rootGetters["i18n/t"]("resourceYaml.errors.namespaceRequired");throw e}let n;const r=!this.id,i={"content-type":"application/yaml",accept:"application/json"};n=r?await this.schema.followLink("collection",{method:"POST",headers:i,data:e}):await this.followLink("update",{method:"PUT",headers:i,data:e}),await this.$dispatch("load",{data:n,existing:r?this:void 0}),this.isSpoofed&&await this.$dispatch("cluster/findAll",{type:this.type,opt:{force:!0}},{root:!0})}get modelValidationRules(){const e=[],t=this?.customValidationRules.filter((e=>!!e.validators||!!e.required)).map((e=>{const t=(0,M.A)(this.t,{displayKey:e?.translationKey?this.t(e.translationKey):"Value"});return{path:e.path,rules:[...e.validators||[],...e.required?["required"]:[],...["dnsLabel","dnsLabelRestricted","hostname"].includes(e.type)?[e.type]:[]].map((e=>{if(e.includes(":")){const[n,r]=e.split(":");return t[n](r)}return t[e]})).filter((e=>!!e))}})).filter((e=>e.rules.length>0));return e.push(...t),e}customValidationErrors(e,t=[]){const n=[];let{customValidationRules:r}=this;return l()(r)||(K()(r)&&(r=r()),r.filter((e=>!t.includes(e.path))).forEach((t=>{const{path:r,requiredIf:i,validators:a=[],type:o}=t;let s=(0,E.Jt)(e,r);const c=j()(a||[]);let u=r;if(t.translationKey&&this.$rootGetters["i18n/exists"](t.translationKey)&&(u=this.t(t.translationKey)),G()(s)&&(s=s.trim()),i){const t=(0,E.Jt)(e,i);!l()(t)&&l()(s)&&0!==s&&n.push(this.t("validation.required",{key:u}))}if((0,d.xR)(s,t,u,this.$rootGetters,n),(0,d.iK)(s,t,u,this.$rootGetters,n),!l()(s)&&Y.includes(o)){const t=(s||"").toLowerCase();t!==s&&(s=t,e[r]=s),n.push(...(0,d.OH)(s,o,u,this.$rootGetters,n))}c.forEach((t=>{const r=t.split(":"),i=r.slice(0,1),a=r.slice(1)||null,o=Object.prototype.hasOwnProperty.call(O,i);if(!l()(i)&&o)O[i](s,this.$rootGetters,n,a,u,e);else if(!l()(i)&&!o){const t=this.$rootState.$plugin?.getValidator(i);t?t(s,this.$rootGetters,n,a,u,e):W.warn(this.t("validation.custom.missing",{validatorName:i}))}}))}))),n}validationErrors(e=this,t={}){return this.customValidationErrors(e)}get ownersByType(){const e=this.metadata?.ownerReferences||[],t={};return e.forEach((e=>{t[e.kind]?t[e.kind].push(e):t[e.kind]=[e]})),t}get owners(){const e=[];for(const t in this.ownersByType){const n=this.$rootGetters["cluster/schema"](t);if(n){const r=n.id,i=this.$rootGetters["cluster/all"](r);this.ownersByType[t].forEach(((t,n)=>{const r=i.find((e=>e?.metadata?.uid===t.uid));r&&e.push(r)}))}}return e}get details(){return this._details}get _details(){const e=[];return this.owners?.length>0&&e.push({label:this.t("resourceDetail.detailTop.ownerReferences",{count:this.owners.length}),formatter:"ListLinkDetail",content:this.owners.map((e=>({key:e.id,row:e,col:{},value:e.metadata.name})))}),(0,E.Jt)(this,"metadata.deletionTimestamp")&&e.push({label:this.t("resourceDetail.detailTop.deleted"),formatter:"LiveDate",formatterOpts:{addSuffix:!0},content:(0,E.Jt)(this,"metadata.deletionTimestamp")}),e}get t(){return this.$rootGetters["i18n/t"]}findOwners(){return this._getRelationship("owner","from")}getOwners(){return this._getRelationship("owner","from")}findOwned(){return this._findRelationship("owner","to")}_relationshipsFor(e,t){const n={selectors:[],ids:[]};if(!this.metadata?.relationships?.length)return n;for(const r of this.metadata.relationships)if(("any"===e||r.rel===e)&&r[`${t}Type`])if(r.selector)(0,o.cn)(n.selectors,{type:r.toType,namespace:r.toNamespace,selector:r.selector});else{const e=r[`${t}Type`];let i=r[`${t}Namespace`],a=r[`${t}Id`];if(!i&&a.includes("/")){const e=a.indexOf("/");i=a.substr(0,e),a=a.substr(e+1)}const s=(i?`${i}/`:"")+a;(0,o.PG)(n.ids,{type:e,namespace:i,name:a,id:s})}return n}_getRelationship(e,t){const n=this._relationshipsFor(e,t);return n.selectors?.length&&W.warn("Sync request for a relationship that is a selector"),n.ids||[]}async _findRelationship(e,t){const{selectors:n,ids:r}=this._relationshipsFor(e,t),i=[];for(const a of n){const e=await this.$dispatch("findMatching",a);(0,o.cn)(i,e.data)}for(const a of r){const{type:e,id:t}=a;let n=this.$getters["byId"](e,t);if(!n)try{n=await this.$dispatch("find",{type:e,id:t})}catch{}n&&(0,o.PG)(i,n)}return i}get shortId(){const e=this.id.split("/");return e.length>1?e[1]:e[0]}toJSON(){const e={},t=Object.keys(this);for(const n of t)this[n]?.toJSON?e[n]=this[n].toJSON():e[n]=(0,E.o8)(this[n]);return e}toSave(){}get creationTimestamp(){return this.metadata?.creationTimestamp}get yamlFolding(){return[]}}},82614:function(e,t,n){"use strict";n.d(t,{A:function(){return d},T:function(){return u}});var r=n(2841),i=n(38403),a=n.n(i),o=n(16735),s=n.n(o),l=n(92043),c=n(73883);function u(e){const t=["state","name","description","labels","annotations"];return t.forEach((t=>delete e[t])),e}class d extends c.Ay{constructor(e,t,n=null,r=!1){const i=u(e);super(i,t,n,r)}get labels(){const e=this.metadata?.labels||{};return a()(e,((e,t)=>(0,l.HV)(t,r.lq)))}setLabels(e){this.metadata||(this.metadata={});const t=this.metadata.labels||{},n=s()(t,((e,t)=>(0,l.HV)(t,r.lq)));this.metadata["labels"]={...n,...e}}setLabel(e,t){t?(this.metadata||(this.metadata={}),this.metadata.labels||(this.metadata.labels={}),this.metadata.labels[e]=t):this.metadata?.labels&&(this.metadata.labels[e]=void 0,delete this.metadata.labels[e])}get annotations(){const e=this.metadata?.annotations||{};return a()(e,((e,t)=>(0,l.HV)(t,r.S5)))}setAnnotations(e){this.metadata||(this.metadata={});const t=this.metadata.annotations||{},n=s()(t,((e,t)=>(0,l.HV)(t,r.S5)));this.metadata["annotations"]={...n,...e}}setAnnotation(e,t){t?(this.metadata||(this.metadata={}),this.metadata.annotations||(this.metadata.annotations={}),this.metadata.annotations[e]=t):this.metadata?.annotations&&(this.metadata.annotations[e]=void 0,delete this.metadata.annotations[e])}get state(){return this.stateObj?.name||"unknown"}}},89865:function(e,t,n){"use strict";n.d(t,{A:function(){return w}});var r=n(2841),i=n(16735),a=n.n(i),o=n(68851),s=n(92043),l=n(73883),c=n(76978),u=n(96047),d=n(79401),h=n(8138),p=n.n(h),f=n(82438),m=n.n(f),g=n(3514),v=n.n(g),b=n(4364);const y=["string","date","blob","enum","multiline","masked","password","dnsLabel","hostname"];class w extends l.Ay{setLabels(e){const t=this.labels||{},n=a()(t,((e,t)=>(0,s.HV)(t,r.lq)));this["labels"]={...n,...e}}setLabel(e,t){t?(this.labels||(this.labels={}),this.labels[e]=t):this.labels&&(this.labels[e]=void 0,delete this.labels[e])}setAnnotations(e){const t=this.annotations||{},n=a()(t,((e,t)=>(0,s.HV)(t,r.S5)));this["annotations"]={...n,...e}}setAnnotation(e,t){t?(this.annotations||(this.annotations={}),this.annotations[e]=t):this.annotations&&(this.annotations[e]=void 0,delete this.annotations[e])}setResourceQuotas(e){const t=["resourceQuota","namespaceDefaultResourceQuota"];t.forEach((t=>{this[t]={...e[t]}}))}isCondition(e,t="True"){if(!this.conditions)return!1;const n=(0,o.jq)(this.conditions||[],"type",e);return!!n&&(!t||(n.status||"").toLowerCase()===`${t}`.toLowerCase())}validationErrors(e=this,t={ignoreFields:void 0}){const n=[],{type:r,schema:i}=e,a=(0,d.AZ)(r);if(!r)return b.warn(this.t("validation.noType"),e),n;if(!i)return n;const o=i.resourceFields||{},h=Object.keys(o);let f,g,w,E;for(let m=0;m<h.length;m++){const r=[];g=h[m],f=o[g],w=(0,c.Jt)(e,g),E=(0,u.HK)(a,g,this.$rootGetters);const i=f?.type?(0,d.AZ)(f.type):null,b=p()(w);if(!t.ignoreFields||!t.ignoreFields.includes(g))if(void 0===w&&(w=null),b&&(i&&(e[g]=(0,s.i6)(w,i)),f.nullable&&0===w.length&&y.includes(i)&&(w=null,e[g]=w)),"boolean"===i?(0,u.p6)(w,f,E,this.$rootGetters,r):((0,u.xR)(w,f,E,this.$rootGetters,r),(0,u.iK)(w,f,E,this.$rootGetters,r)),r.length>0)r.push(this.t("validation.required",{key:E})),n.push(...r);else{if("id"!==g&&!v()(w)&&l.qE.includes(i)){const t=(w||"").toLowerCase();t!==w&&(w=t,e[g]=w),r.push(...(0,u.OH)(w,i,E,this.$rootGetters,r))}n.push(...r)}}const _=super.validationErrors(this,t);return m()([...n,..._])}}},37417:function(e,t,n){"use strict";n.d(t,{P:function(){return a},w:function(){return i}});var r=n(79401);function i(e){e._id=(0,r.AZ)(e.id),e._group=(0,r.AZ)(e.attributes?.group)}function a(e){delete e._id,delete e._group}},25184:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(2841),i=n(82614),a=n(37648),o=n(76978);n(86565),n(31915),n(25314),n(9274),n(83297),n(4364);const s={MODELS:"models",MODEL_EXTENSION:"model-extension"};const l=["metadata.resourceVersion","metadata.fields","metadata.clusterName","metadata.deletionGracePeriodSeconds","metadata.generateName"],c=a.Ng.filter((e=>!l.includes(e)));class u extends i.A{get name(){return this.metadata?.name||this._name}get namespace(){return this.metadata?.namespace}get description(){return this.metadata?.annotations?.[r.tC]||this.spec?.description||this._description}set description(e){this.metadata?.annotations&&(this.metadata.annotations[r.tC]=e),this.spec&&(this.spec.description=e),this._description=e}get modelExtensions(){return this.$plugin.getDynamic(s.MODEL_EXTENSION,this.type)||[]}cleanForSave(e,t){const n=super.cleanForSave(e);for(const r of c)(0,o.BJ)(n,r);return n}}},63928:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(25184);class i extends r.A{constructor(e,t,n=null,r=!1){const i=e.description;super(e,t,n,r),this.description=i}get description(){return this._description}set description(e){this._description=e}toJSON(){const e=super.toJSON();return e.description=this.description,delete e._description,e}toSave(){return this.toJSON()}}},55105:function(e,t,n){"use strict";n.r(t);var r=n(65359),i=n(92043),a=n(35664),o=n(4799);const s=o.SUBTYPE_MAPPING.CLUSTER.key;t["default"]={data(){return{warning:"",info:""}},computed:{...(0,r.aH)("action-menu",["toRemove"]),...(0,r.L8)({t:"i18n/t"}),names(){return this.toRemove.map((e=>e.nameDisplay))}},watch:{value:{handler(e){this.handleRoleDeletionCheck(e,e[0].type,this.$route.hash)},immediate:!0}},methods:{resourceNames:i.Nr,async handleRoleDeletionCheck(e,t,n){let r,i;this.warning="";let o=0;const l=new Set;switch(this.info=this.t("rbac.globalRoles.waiting",{count:e.length}),t){case a.Mc.GLOBAL_ROLE:r=a.Mc.GLOBAL_ROLE_BINDING,i="globalRoleName";break;default:r=n.includes(s)?a.Mc.CLUSTER_ROLE_TEMPLATE_BINDING:a.Mc.PROJECT_ROLE_TEMPLATE_BINDING,i="roleTemplateName";break}try{const t=await this.$store.dispatch("management/request",{url:`/v1/${r}`,method:"get"},{root:!0}),n=await this.$store.dispatch("management/request",{url:`/v1/${a.Mc.USER}`,method:"get"},{root:!0}),s=n.data?.reduce(((e,t)=>(t.username&&(e[t.id]=t),e)),{});t.data&&t.data.length?(e.forEach((e=>{const n=t.data.filter((t=>t[i]===e.id));if(n.length){const e=[...new Set(n.map((e=>e.userName)).filter((e=>s[e])))];e.length&&(o++,e.forEach((e=>l.add(e))))}})),o&&l.size?(this.info="",this.warning=this.t("rbac.globalRoles.usersBound",{count:l.size})):this.info=this.t("rbac.globalRoles.notBound",null,!0)):this.info=this.t("rbac.globalRoles.notBound",null,!0)}catch(c){this.info=this.t("rbac.globalRoles.unableToCheck")}}}}},97707:function(e,t,n){"use strict";n.d(t,{CB:function(){return c},I0:function(){return l},bh:function(){return d},do:function(){return u}});n(35664);var r=n(2841),i=(n(50667),n(88339),n(76978),n(68851)),a=(n(99726),n(50382),n(74302),n(92043),n(83288)),o=n(88088),s=n.n(o);n(48074),n(4364);r.W8._RANCHER,r.W8._EXPERIMENTAL,r.W8._PARTNER;const l={NOT_APPLICABLE:"not_applicable",NO_UPGRADE:"no_upgrade",SINGLE_UPGRADE:"single_upgrade",MULTIPLE_UPGRADES:"multiple_upgrades"},c="windows",u="linux";function d(e,t,n=!0){const o=e.versions;return t&&!(0,i.cy)(t)&&(t=[t]),o.filter((e=>{const i=(e?.annotations?.[r.W8.PERMITTED_OS]||u).split(",");return!(!n&&(0,a.V1)(e.version))&&(!t||0===s()(t,i).length)}))}},95265:function(e,t,n){"use strict";n.d(t,{N8:function(){return s},Vw:function(){return l},Wt:function(){return o},r$:function(){return a}});n(35664);const r={},i=function(e,t){return r[e]={def:t},e},a=function(e){return{get(){return this.$store.getters["features/get"](e)},set(e){throw new Error("The feature store only supports getting")}}},o=(i("multi-cluster-management",!0),i("legacy",!1),i("rke2",!0),i("rke1-ui",!0),i("unsupported-storage-drivers",!1)),s=(i("continuous-delivery",!0),i("harvester",!0),i("harvester-baremetal-container-workload",!1),i("provisioningv2-fleet-workspace-back-population",!1)),l=i("ui-sql-cache",!1);i("uiextension",!0),i("provisioningprebootstrap",!1),i("cluster-agent-scheduling-customization",!1)},91462:function(e,t,n){"use strict";n.d(t,{AN:function(){return a},DX:function(){return y},EI:function(){return h},G$:function(){return w},HZ:function(){return _},Hu:function(){return d},IJ:function(){return E},JV:function(){return u},Mu:function(){return p},Pz:function(){return S},Ri:function(){return l},aP:function(){return f},bc:function(){return k},gM:function(){return A},jn:function(){return c},kJ:function(){return b},kc:function(){return m},qv:function(){return v},xL:function(){return g}});n(9262),n(35664),n(76978),n(4364);const r={};const i=function(e,t,n={}){const i=!0===n.parseJSON,a=!0===n.asCookie,o=!1!==n.asUserPreference,s=n.options,l=n.inheritFrom;return r[e]={def:t,options:s,parseJSON:i,asCookie:a,asUserPreference:o,inheritFrom:l,mangleRead:n.mangleRead,mangleWrite:n.mangleWrite},e},a=function(e){return{get(){return this.$store.getters["prefs/get"](e)},set(t){this.$store.dispatch("prefs/set",{key:e,value:t})}}},o=!0,s=!0,l=(i("cluster",""),i("last-namespace","")),c=(i("ns-by-cluster",{},{parseJSON:o}),i("workspace",""),i("open-groups",["cluster","policy","rbac","serviceDiscovery","storage","workload"],{parseJSON:o})),u=i("fav-type",[],{parseJSON:o}),d=i("pinned-clusters",[],{parseJSON:o}),h=i("group-by","namespace"),p=i("diff","unified",{options:["unified","split"]}),f=(i("theme","auto",{options:["light","auto","dark"],asCookie:s,parseJSON:o,mangleRead:e=>e.replace(/^ui-/,""),mangleWrite:e=>`ui-${e}`}),i("pcs","",{asCookie:s,asUserPreference:!1}),i("locale","en-us",{asCookie:s}),i("keymap","sublime",{options:["sublime","emacs","vim"]})),m=i("per-page",100,{options:[10,25,50,100],parseJSON:o}),g=(i("logs-wrap",!0,{parseJSON:o}),i("logs-time",!0,{parseJSON:o}),i("logs-range","30 minutes",{parseJSON:o}),i("hide-repos",[],{parseJSON:o}),i("hide-desc",[],{parseJSON:o})),v=i("hide-sensitive",!0,{options:[!0,!1],parseJSON:o}),b=i("show-pre-release",!1,{options:[!1,!0],parseJSON:o}),y=(i("chart-mode","featured",{parseJSON:o}),i("date-format","ddd, MMM D YYYY",{options:["ddd, MMM D YYYY","ddd, D MMM YYYY","D/M/YYYY","M/D/YYYY","YYYY-MM-DD"]})),w=i("time-format","h:mm:ss a",{options:["h:mm:ss a","HH:mm:ss"]}),E=(i("time-zone","local"),i("dev",!1,{parseJSON:o})),_=i("view-in-api",!1,{parseJSON:o,inheritFrom:E}),S=i("all-namespaces",!1,{parseJSON:o,inheritFrom:E}),k=(i("theme-shortcut",!1,{parseJSON:o,inheritFrom:E}),i("last-visited","home",{parseJSON:o}),i("seen-whatsnew","",{parseJSON:o}),i("read-whatsnew","",{parseJSON:o}),i("after-login-route","home",{parseJSON:o}),i("home-page-cards",{},{parseJSON:o}),i("plugin-developer",!1,{parseJSON:o,inheritFrom:E})),x="rke1",A="rke2";i("provisioner",A,{options:[x,A]}),i("scale-pool-prompt",null,{parseJSON:o})},10213:function(e,t,n){"use strict";n.d(t,{e:function(){return r},w:function(){return i}});const r={CLUSTER:"cluster",RANCHER:"rancher",MANAGEMENT:"management"},i="_"},86565:function(e,t,n){"use strict";n.d(t,{f7:function(){return a},lm:function(){return i},QF:function(){return r}});n(68774),n(35664),n(91462),n(68851),n(76978),n(92043),n(27436),n(27278),n(41580),n(79401),n(74302),n(83416);n(46392),n(9274);const r="__[[spoofed]]__",i="__[[spoofedapi]]__",a={V2_MONITORING:"v2-monitoring",PROJECT:"project",NO_PROJECT:"no-project",NOT_V1_ISTIO:"not-v1-istio",MULTI_CLUSTER:"multi-cluster",NEUVECTOR_NAMESPACE:"neuvector-namespace",ADMIN:"admin-user",MCM_DISABLED:"mcm-disabled",NOT_STANDALONE_HARVESTER:"not-standalone-harvester"}},39589:function(e,t,n){"use strict";n.d(t,{BA:function(){return S},ER:function(){return d},Eb:function(){return E},_R:function(){return y},gb:function(){return _}});var r=n(20246),i=n.n(r),a=n(4514),o=n(35664),s=n(76978),l=n(3514),c=n.n(l),u=n(55162);const d=async e=>{const t=e.getters["cluster/schemaFor"](o.Rp.ALERTMANAGERCONFIG);if(t)return await t.fetchResourceFields(),{receiverSchema:t.schemaDefinitions?.[`${t.schemaDefinition.id}.spec.receivers`],routeSchema:t.schemaDefinitions?.[`${t.schemaDefinition.id}.spec.route`]}},h="cattle-monitoring-system/alertmanager-rancher-monitoring-alertmanager",p="cattle-monitoring-system/rancher-monitoring-alertmanager",f="alertmanager.yaml";async function m(e){const t=await e("cluster/find",{type:o.Rp.ALERTMANAGER,id:p},{root:!0});return t?.spec?.configSecret?`${t.namespace}/${t?.spec?.configSecret}`:h}async function g(e){const t=await m(e,!1);try{return await e("cluster/find",{type:o.bB,id:t},{root:!0})}catch(n){const[r,i]=t.split("/"),a=await e("cluster/create",{type:o.bB},{root:!0});return a.metadata={namespace:r,name:i},a}}function v(e){e.data=e.data||{};const t=e.data[f],n=t?(0,a.u)(t):"{}",r=i().load(n);return r.receivers=r.receivers||[],r.route=r.route||{},r.route.routes=r.route.routes||[],r}async function b(e){const t=await g(e);return{config:v(t),secret:t}}async function y(e,t,n,r){const{config:o,secret:l}=await b(e);(0,s.hZ)(o,t,(0,s.Jt)(o,t)||[]),w(o.route.routes);const c=r((0,s.Jt)(o,t));(0,s.hZ)(o,t,c);const d=o.route.routes,h=d.findIndex((e=>e.name===u.ROOT_NAME));if(d.forEach((e=>{e.name&&delete e.name})),h>=0){const e=d.splice(h,1)[0];e.routes=d,o.route=e}const p=i().dump(o),m=(0,a.KA)(p);l.data[f]=m,await l.save()}function w(e){e.forEach(((e,t)=>{e.name=e.name||E(t)}))}function E(e){return`route-${e}`}function _(e){try{const t=v(e),n=t.route?.routes||[];return!n.some(c())}catch(t){return!1}}function S(e){return e["type-map/optionsFor"](o.bB).isCreatable}},48881:function(e,t,n){"use strict";n.d(t,{e:function(){return $}});var r=n(4364),i="text/plain",a=e=>{};function o(e){a(e)}function s(){(r.warn||r.log).apply(r,arguments)}s.bind("[clipboard-polyfill]");var l,c,u,d="undefined"===typeof window?void 0:window,h="undefined"===typeof globalThis?void 0:globalThis,p=null!=(u=null==(l=d)?void 0:l.Promise)?u:null==(c=h)?void 0:c.Promise;function f(){if(!p)throw new Error("No `Promise` implementation available for `clipboard-polyfill`. Consider using: https://github.com/lgarron/clipboard-polyfill#flat-file-version-with-promise-included");return p}var m,g,v,b,y,w="undefined"===typeof navigator?void 0:navigator,E=null==w?void 0:w.clipboard,_=(null==(m=null==E?void 0:E.read)||m.bind(E),null==(g=null==E?void 0:E.readText)||g.bind(E),null==(v=null==E?void 0:E.write)||v.bind(E),null==(b=null==E?void 0:E.writeText)?void 0:b.bind(E)),S=(null==(y=d)||y.ClipboardItem,f()),k=d;function x(){return"undefined"===typeof ClipboardEvent&&"undefined"!==typeof(null==k?void 0:k.clipboardData)&&"undefined"!==typeof(null==k?void 0:k.clipboardData.setData)}function A(e){if(!k.clipboardData)return!1;var t=k.clipboardData.setData("Text",e);return t&&o("writeTextIE worked"),t}function N(e,t,n){for(var r in o("listener called"),e.success=!0,t){var a=t[r],s=n.clipboardData;s.setData(r,a),r===i&&s.getData(r)!==a&&(o("setting text/plain failed"),e.success=!1)}n.preventDefault()}function C(e){var t={success:!1},n=N.bind(this,t,e);document.addEventListener("copy",n);try{document.execCommand("copy")}finally{document.removeEventListener("copy",n)}return t.success}function T(e,t){I(e);var n=C(t);return L(),n}function R(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important"),t.textContent="temporary element",document.body.appendChild(t);var n=T(t,e);return document.body.removeChild(t),n}function O(e){o("copyTextUsingDOM");var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important");var n=t;t.attachShadow&&(o("Using shadow DOM."),n=t.attachShadow({mode:"open"}));var r=document.createElement("span");r.innerText=e,n.appendChild(r),document.body.appendChild(t),I(r);var i=document.execCommand("copy");return L(),document.body.removeChild(t),i}function I(e){var t=document.getSelection();if(t){var n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}}function L(){var e=document.getSelection();e&&e.removeAllRanges()}function D(e){var t=i in e;if(x()){if(!t)throw new Error("No `text/plain` value was specified.");if(A(e[i]))return!0;throw new Error("Copying failed, possibly because the user rejected it.")}return C(e)?(o("regular execCopy worked"),!0):navigator.userAgent.indexOf("Edge")>-1?(o('UA "Edge" => assuming success'),!0):T(document.body,e)?(o("copyUsingTempSelection worked"),!0):R(e)?(o("copyUsingTempElem worked"),!0):!!O(e[i])&&(o("copyTextUsingDOM worked"),!0)}S.resolve(),S.resolve(!1);function P(e){return new S(((t,n)=>{try{t(e())}catch(r){n(r)}}))}function M(e){var t={};return t[i]=e,t}function B(e){return P((()=>_?(o("Using `navigator.clipboard.writeText()`."),_(e).catch(F)):S.resolve(F(e))))}function F(e){if(!D(M(e)))throw new Error("writeText() failed")}async function $(e){await B(e)}},78347:function(e,t,n){"use strict";n.d(t,{H0:function(){return o},Tv:function(){return h},hk:function(){return s},qe:function(){return d},yq:function(){return c}});var r=n(4364);const i=n(70465);const a={black:"#000000",white:"#ffffff"};function o(e){return i(e)}function s(e){const t=e.rgb().array(),n=Math.round((299*parseInt(t[0])+587*parseInt(t[1])+114*parseInt(t[2]))/1e3);return n>125?"black":"white"}function l(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function c(e){return a[e]||e}function u(e){const t=/^rgb\(([0-9]{1,3}),\s*([0-9]{1,3}),\s*([0-9]{1,3})\)$/i.exec(e);return t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}:null}function d(e){let t;return e.startsWith("rgb(")?t=u(e):e.startsWith("#")?t=l(e):r.warn(`Unable to parse color: ${e}`),t||{r:0,g:0,b:0}}function h(e){return e.includes("#")&&4===e.length?`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`:e.includes("#")||3!==e.length?e:`${e[0]}${e[0]}${e[1]}${e[1]}${e[2]}${e[2]}`}},37648:function(e,t,n){"use strict";n.d(t,{Cd:function(){return S},Kq:function(){return x},Ng:function(){return h},Yd:function(){return m},fs:function(){return k},mH:function(){return g},xs:function(){return u}});var r=n(92043),i=n(68851),a=n(20246),o=n.n(a),s=n(76978),l=n(2334),c=n(4364);const u=["string","multiline","masked","password","float","int","date","blob","boolean","version"],d=["apiVersion","kind","metadata","metadata.name","spec","spec.selector","spec.selector.matchLabels","spec.template","spec.template.metadata","spec.template.metadata.labels","spec.template.spec.containers.name","spec.template.spec.containers.image"],h=["metadata.clusterName","metadata.creationTimestamp","metadata.deletionGracePeriodSeconds","metadata.deletionTimestamp","metadata.finalizers","metadata.generateName","metadata.generation","metadata.initializers","metadata.managedFields","metadata.ownerReferences","metadata.resourceVersion","metadata.relationships","metadata.selfLink","metadata.state","metadata.uid","spec.versions.schema","status","stringData","links","_name","_labels","_annotations"],p=["metadata.managedFields","metadata.relationships","metadata.state","status","links","type","id"],f=2;function m(e,t,n,r){return g(e,t,n,!0,0,"",null,r)}function g(e,t,n,r=!0,a=0,l="",f=null,m={}){let w,E,_,x;if(n=n||{},0===a){if(w=(0,i.jq)(e,"id",t),!w)return`Error loading schema for ${t}`;E=w,_=E.schemaDefinitions,x=E.resourceFields;const r=w.attributes||{};n.apiVersion=(r.group?`${r.group}/${r.version}`:r.version)||n.apiVersion,n.kind=r.kind||n.kind}else if(E=(0,i.jq)(e,"id",f),E.requiresResourceFields)_=E.schemaDefinitions,x=_[t]?.resourceFields;else{if(w=(0,i.jq)(e,"id",t),!w)return`Error loading schema for ${t}`;x=w.resourceFields}f||(f=t);const N=[];if(r){const e=d.slice();for(let t=e.length-1;t>=0;t--){let n=e[t].split(/\./);while(n.length)(0,i.PG)(e,n.join(".")),n=n.slice(0,-1)}for(const t of e){const e=t.split(/\./),n=e[e.length-1],r=e.slice(0,-1).join(".");r===l&&x&&x[n]&&(0,i.PG)(N,n)}}const C=Object.keys(x||{});C.forEach((e=>{("undefined"!==typeof n[e]||0===a&&"_type"===e)&&(0,i.PG)(N,e)}));for(const o in n)"undefined"!==typeof n[o]&&(0,i.PG)(N,o);for(const o of m.activelyRemove||p){const e=o.split(/\./),t=e[e.length-1],n=e.slice(0,-1).join(".");n===l&&(0,i.Gj)(N,t)}for(const o of h){const e=o.split(/\./),t=e[e.length-1],n=e.slice(0,-1).join(".");n===l&&x&&x[t]&&(0,i.Gj)(C,t)}(0,i.$M)(C,N);const T=N.map((e=>I(e))),R=C.map((e=>"metadata"===l&&"namespace"===e&&E&&!E.attributes?.namespaced?null:v(I(e)))),O=[...T,...R].filter((e=>null!==e)).join("\n").trim();return O;function I(t){const d=x?.[t];let h=`${t}:`;if("_type"===t&&(h="type:"),!d){if(n[t])try{const e=(0,s.nY)(n),r=o().dump(e[t]);return"object"===typeof n[t]||Array.isArray(n[t])?h+=`\n${b(r.trim())}`:h+=` ${r.trim()}`,h}catch(C){c.error(`Error: Unable to parse map data for yaml key: ${t}`,C)}return null}const p=k(d.type),v=S("map",p,d),w=S("array",p,d),E=S("reference",p);if(v){if(n[t])try{const e=(0,s.nY)(n),r=A(e[t],m[t]);h+=`\n${b(r)}`}catch(C){c.error(`Error: Unable to parse map data for yaml of type: ${p}`,C)}if(u.includes(v))h+=`# key: ${v}`;else{const n=g(e,v,null,r,a+1,l?`${l}.${t}`:t,f,m);let i=b(n);i=i.replace(/^(#)?\s\s\s\s/,"$1"),h+=`${i}`}return h}if(w){if(n[t])try{const e=(0,s.nY)(n);if(e?.[t]){const n=o().dump(e[t]);h+=`\n${b(n.trim())}`}}catch(C){c.error(`Error: Unable to parse array data for yaml of type: ${p}`,C)}if(u.includes(w))h+=`\n# - ${w}`;else{const n=g(e,w,null,!1,a+1,l?`${l}.${t}`:t,f,m);let r=b(n,2);r=r.replace(/^(#)?\s*\s\s([^\s])/,"$1 - $2"),h+=`\n${r}`}return h}if(E)return h+=` #${E}`,h;if(u.includes(p))return"_type"===t&&"undefined"===typeof n[t]&&"undefined"!==typeof n["type"]?h+=` ${y(n["type"])}`:"undefined"===typeof n[t]?h+=` #${y(p)}`:h+=` ${y(n[t])}`,h;if("json"===p||".spec"===p)try{const e=o().dump(n[t]);return h+=e?`\n${b(e.trim())}`:` #${p}`,h}catch(C){}const N=_?.[p]||(0,i.jq)(e,"id",p);if(N){let i;if(N?.resourceFields&&!(0,s.Im)(N?.resourceFields))i=g(e,p,n[t],r,a+1,l?`${l}.${t}`:t,f,m);else if(n[t])try{const e=o().dump(n[t]);i=e.trim()}catch(C){c.error(`Error: Unale to parse data for yaml of type: ${p}`,C)}h+=`\n${b(i)}`}else h+=` #${p}`;return h}}function v(e){return(e||"").split("\n").map((e=>`#${e.replace(/#/g,"")}`)).join("\n")}function b(e,t=1){return(0,r.pZ)(e,t*f," ",/^#/)}function y(e){return o().dump(e).trim()}function w(e,t){const n=E(e,t);return{header:n,indentation:_(n)}}function E(e,t){const n=`(${t})[\\:][\\s|\\t]+[\\|\\>][\\d]*[\\-\\+]?`,r=new RegExp(n,"gi"),i=e.match(r);return i?.[0]||""}function _(e){const t=e.substr(e.indexOf(":")+1),n=t.match(/\d+/);return n?.[0]||""}function S(e,t,n=null){const[r,i]=(0,l.parseType)(t,n);if(e===r)return k(i||r)}function k(e){return"integer"===e?"int":"io.k8s.apimachinery.pkg.api.resource.Quantity"===e?"string":e}function x(e){const t=o().dump(e||{});return"{}\n"===t?"":t}function A(e,t={lineWidth:-1}){const n=o().dump(e,t);let r=n;const i=Object.keys(e).filter((t=>{if("string"===typeof e[t])return e[t].includes("\n")}));if(i.length)for(const a of i){const{header:e,indentation:n}=w(r,a),i=t[a]?.scalarStyle??"|",o=t[a]?.chomping??"";e&&(r=r.replace(e,`${a}: ${i}${o}${n}`))}return r}},8755:function(e,t,n){"use strict";n.d(t,{Kz:function(){return o},en:function(){return a},pP:function(){return s}});var r=n(1048);function i(e){let t=0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t=(t<<5)-t+r,t&=t}return new Uint32Array([t])[0].toString(36)}function a(e){return i(JSON.stringify(e,null,2))}function o(e){return"string"===typeof e?0===e.length:0===e.byteLength}function s(e){return"string"===typeof e&&(e=new r.Buffer(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}},4514:function(e,t,n){"use strict";n.d(t,{u:function(){return C},KA:function(){return A},dQ:function(){return R},Fx:function(){return T}});var r=n(1048),i=n(8755);const a=64,o=16;function s(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(a)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}var l=s;function c(e,t,n,r,i,a){return t=(t+e&4294967295)+(r+a&4294967295)&4294967295,(t<<i|t>>>32-i)+n&4294967295}function u(e,t,n,r,i,a,o){return c(t&n|~t&r,e,t,i,a,o)}function d(e,t,n,r,i,a,o){return c(t&r|n&~r,e,t,i,a,o)}function h(e,t,n,r,i,a,o){return c(t^n^r,e,t,i,a,o)}function p(e,t,n,r,i,a,o){return c(n^(t|~r),e,t,i,a,o)}s.BLOCK_SIZE=a,s.prototype.update=function(e){if((0,i.Kz)(e))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");const t=(0,i.pP)(e);let n=0,r=t.byteLength;this.bytesHashed+=r;while(r>0)this.buffer.setUint8(this.bufferLength++,t[n++]),r--,this.bufferLength===a&&(this.hashBuffer(),this.bufferLength=0);return this},s.prototype.digest=function(e){if(!this.finished){const e=this,t=e.buffer,n=e.bufferLength,r=e.bytesHashed,i=8*r;if(t.setUint8(this.bufferLength++,128),n%a>=a-8){for(let e=this.bufferLength;e<a;e++)t.setUint8(e,0);this.hashBuffer(),this.bufferLength=0}for(let o=this.bufferLength;o<a-8;o++)t.setUint8(o,0);t.setUint32(a-8,i>>>0,!0),t.setUint32(a-4,Math.floor(i/4294967296),!0),this.hashBuffer(),this.finished=!0}const t=new DataView(new ArrayBuffer(o));for(let r=0;r<4;r++)t.setUint32(4*r,this.state[r],!0);const n=new r.Buffer(t.buffer,t.byteOffset,t.byteLength);return e?n.toString(e):n},s.prototype.hashBuffer=function(){const e=this,t=e.buffer,n=e.state;let r=n[0],i=n[1],a=n[2],o=n[3];r=u(r,i,a,o,t.getUint32(0,!0),7,3614090360),o=u(o,r,i,a,t.getUint32(4,!0),12,3905402710),a=u(a,o,r,i,t.getUint32(8,!0),17,606105819),i=u(i,a,o,r,t.getUint32(12,!0),22,3250441966),r=u(r,i,a,o,t.getUint32(16,!0),7,4118548399),o=u(o,r,i,a,t.getUint32(20,!0),12,1200080426),a=u(a,o,r,i,t.getUint32(24,!0),17,2821735955),i=u(i,a,o,r,t.getUint32(28,!0),22,4249261313),r=u(r,i,a,o,t.getUint32(32,!0),7,1770035416),o=u(o,r,i,a,t.getUint32(36,!0),12,2336552879),a=u(a,o,r,i,t.getUint32(40,!0),17,4294925233),i=u(i,a,o,r,t.getUint32(44,!0),22,2304563134),r=u(r,i,a,o,t.getUint32(48,!0),7,1804603682),o=u(o,r,i,a,t.getUint32(52,!0),12,4254626195),a=u(a,o,r,i,t.getUint32(56,!0),17,2792965006),i=u(i,a,o,r,t.getUint32(60,!0),22,1236535329),r=d(r,i,a,o,t.getUint32(4,!0),5,4129170786),o=d(o,r,i,a,t.getUint32(24,!0),9,3225465664),a=d(a,o,r,i,t.getUint32(44,!0),14,643717713),i=d(i,a,o,r,t.getUint32(0,!0),20,3921069994),r=d(r,i,a,o,t.getUint32(20,!0),5,3593408605),o=d(o,r,i,a,t.getUint32(40,!0),9,38016083),a=d(a,o,r,i,t.getUint32(60,!0),14,3634488961),i=d(i,a,o,r,t.getUint32(16,!0),20,3889429448),r=d(r,i,a,o,t.getUint32(36,!0),5,568446438),o=d(o,r,i,a,t.getUint32(56,!0),9,3275163606),a=d(a,o,r,i,t.getUint32(12,!0),14,4107603335),i=d(i,a,o,r,t.getUint32(32,!0),20,1163531501),r=d(r,i,a,o,t.getUint32(52,!0),5,2850285829),o=d(o,r,i,a,t.getUint32(8,!0),9,4243563512),a=d(a,o,r,i,t.getUint32(28,!0),14,1735328473),i=d(i,a,o,r,t.getUint32(48,!0),20,2368359562),r=h(r,i,a,o,t.getUint32(20,!0),4,4294588738),o=h(o,r,i,a,t.getUint32(32,!0),11,2272392833),a=h(a,o,r,i,t.getUint32(44,!0),16,1839030562),i=h(i,a,o,r,t.getUint32(56,!0),23,4259657740),r=h(r,i,a,o,t.getUint32(4,!0),4,2763975236),o=h(o,r,i,a,t.getUint32(16,!0),11,1272893353),a=h(a,o,r,i,t.getUint32(28,!0),16,4139469664),i=h(i,a,o,r,t.getUint32(40,!0),23,3200236656),r=h(r,i,a,o,t.getUint32(52,!0),4,681279174),o=h(o,r,i,a,t.getUint32(0,!0),11,3936430074),a=h(a,o,r,i,t.getUint32(12,!0),16,3572445317),i=h(i,a,o,r,t.getUint32(24,!0),23,76029189),r=h(r,i,a,o,t.getUint32(36,!0),4,3654602809),o=h(o,r,i,a,t.getUint32(48,!0),11,3873151461),a=h(a,o,r,i,t.getUint32(60,!0),16,530742520),i=h(i,a,o,r,t.getUint32(8,!0),23,3299628645),r=p(r,i,a,o,t.getUint32(0,!0),6,4096336452),o=p(o,r,i,a,t.getUint32(28,!0),10,1126891415),a=p(a,o,r,i,t.getUint32(56,!0),15,2878612391),i=p(i,a,o,r,t.getUint32(20,!0),21,4237533241),r=p(r,i,a,o,t.getUint32(48,!0),6,1700485571),o=p(o,r,i,a,t.getUint32(12,!0),10,2399980690),a=p(a,o,r,i,t.getUint32(40,!0),15,4293915773),i=p(i,a,o,r,t.getUint32(4,!0),21,2240044497),r=p(r,i,a,o,t.getUint32(32,!0),6,1873313359),o=p(o,r,i,a,t.getUint32(60,!0),10,4264355552),a=p(a,o,r,i,t.getUint32(24,!0),15,2734768916),i=p(i,a,o,r,t.getUint32(52,!0),21,1309151649),r=p(r,i,a,o,t.getUint32(16,!0),6,4149444226),o=p(o,r,i,a,t.getUint32(44,!0),10,3174756917),a=p(a,o,r,i,t.getUint32(8,!0),15,718787259),i=p(i,a,o,r,t.getUint32(36,!0),21,3951481745),n[0]=r+n[0]&4294967295,n[1]=i+n[1]&4294967295,n[2]=a+n[2]&4294967295,n[3]=o+n[3]&4294967295};const f=64,m=32,g=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),v=2**53-1;function b(){this.state=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}var y=b;b.BLOCK_SIZE=f,b.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if((0,i.Kz)(e))return this;e=(0,i.pP)(e);let t=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>v)throw new Error("Cannot hash more than 2^53 - 1 bits");while(n>0)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===f&&(this.hashBuffer(),this.bufferLength=0);return this},b.prototype.digest=function(e){if(!this.finished){const e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%f>=f-8){for(let e=this.bufferLength;e<f;e++)t.setUint8(e,0);this.hashBuffer(),this.bufferLength=0}for(let r=this.bufferLength;r<f-8;r++)t.setUint8(r,0);t.setUint32(f-8,Math.floor(e/4294967296),!0),t.setUint32(f-4,e),this.hashBuffer(),this.finished=!0}const t=new r.Buffer(m);for(let n=0;n<8;n++)t[4*n]=this.state[n]>>>24&255,t[4*n+1]=this.state[n]>>>16&255,t[4*n+2]=this.state[n]>>>8&255,t[4*n+3]=this.state[n]>>>0&255;return e?t.toString(e):t},b.prototype.hashBuffer=function(){const e=this,t=e.buffer,n=e.state;let r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],l=n[5],c=n[6],u=n[7];for(let d=0;d<f;d++){if(d<16)this.temp[d]=(255&t[4*d])<<24|(255&t[4*d+1])<<16|(255&t[4*d+2])<<8|255&t[4*d+3];else{let e=this.temp[d-2];const t=(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10;e=this.temp[d-15];const n=(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3;this.temp[d]=(t+this.temp[d-7]|0)+(n+this.temp[d-16]|0)}const e=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&l^~s&c)|0)+(u+(g[d]+this.temp[d]|0)|0)|0,n=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&a^i&a)|0;u=c,c=l,l=s,s=o+e|0,o=a,a=i,i=r,r=e+n|0}n[0]+=r,n[1]+=i,n[2]+=a,n[3]+=o,n[4]+=s,n[5]+=l,n[6]+=c,n[7]+=u};const w=64,E=20;function _(){this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=new Uint32Array(80),this.offset=0,this.shift=24,this.totalLength=0}var S=_;_.BLOCK_SIZE=w,_.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if((0,i.Kz)(e))return this;e=(0,i.pP)(e);const t=e.length;this.totalLength+=8*t;for(let n=0;n<t;n++)this.write(e[n]);return this},_.prototype.write=function(e){this.block[this.offset]|=(255&e)<<this.shift,this.shift?this.shift-=8:(this.offset++,this.shift=24),16===this.offset&&this.processBlock()},_.prototype.digest=function(e){this.write(128),(this.offset>14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(let r=24;r>=0;r-=8)this.write(this.totalLength>>r);const t=new r.Buffer(E),n=new DataView(t.buffer);return n.setUint32(0,this.h0,!1),n.setUint32(4,this.h1,!1),n.setUint32(8,this.h2,!1),n.setUint32(12,this.h3,!1),n.setUint32(16,this.h4,!1),e?t.toString(e):t},_.prototype.processBlock=function(){for(let s=16;s<80;s++){const e=this.block[s-3]^this.block[s-8]^this.block[s-14]^this.block[s-16];this.block[s]=e<<1|e>>>31}let e,t,n=this.h0,r=this.h1,i=this.h2,a=this.h3,o=this.h4;for(let s=0;s<80;s++){s<20?(e=a^r&(i^a),t=1518500249):s<40?(e=r^i^a,t=1859775393):s<60?(e=r&i|a&(r|i),t=2400959708):(e=r^i^a,t=3395469782);const l=(n<<5|n>>>27)+e+o+t+(0|this.block[s]);o=a,a=i,i=r<<30|r>>>2,r=n,n=l}this.h0=this.h0+n|0,this.h1=this.h1+r|0,this.h2=this.h2+i|0,this.h3=this.h3+a|0,this.h4=this.h4+o|0,this.offset=0;for(let s=0;s<16;s++)this.block[s]=0};const k="normal",x="url";function A(e,t=k){let n;if(null===e||"undefined"===typeof e)return e;if(n="function"===typeof r.Buffer.from&&r.Buffer.from!==Uint8Array.from?r.Buffer.from(e):new r.Buffer(e),t===x){const e={"+":"-","/":"_"};return n.toString("base64").replace(/[+/]|=+$/g,(t=>e[t]||""))}return n.toString("base64")}function N(e){return null===e||"undefined"===typeof e?e:"function"===typeof r.Buffer.from&&r.Buffer.from!==Uint8Array.from?r.Buffer.from(e,"base64"):new r.Buffer(e,"base64")}function C(e){return e?N(e.replace(/[-_]/g,(e=>"-"===e?"+":"/"))).toString():e}function T(e,t,n){return O("md5",e,t,n)}function R(e){const t=`${e}`.length;let n=3*t/4;return e.length>0&&"="===e[e.length-1]&&(n--,e.length>1&&"="===e[e.length-2]&&n--),n}function O(e,t,n,i){const a=I(e);n||(n="binary"),"buffer"===n&&(n=void 0),"string"===typeof t&&(t=new r.Buffer(t));const o=L(t);let s=r.Buffer.isBuffer(t);if("undefined"!==typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(s=!0),i&&"object"===typeof t&&"function"===typeof t.on&&!s)t.on("data",(e=>{a.update(e)})),t.on("error",(e=>{i(e)})),t.on("end",(()=>{i(null,a.digest(n))}));else{if(!i||!o||s||"undefined"===typeof FileReader){"object"!==typeof t||s||(t=new r.Buffer(new Uint8Array(t)));const e=a.update(t).digest(n);return i&&i(null,e),e}{let e=0;const s=524288,l=new FileReader;l.onerror=function(){i(new Error("Failed to read data."))},l.onload=function(){const t=new r.Buffer(new Uint8Array(l.result));a.update(t),e+=t.length,l._continueReading()},l._continueReading=function(){if(e>=t.size)return void i(null,a.digest(n));let r=e+s;r>t.size&&(r=t.size),l.readAsArrayBuffer(o.call(t,e,r))},l._continueReading()}}}function I(e){if(e=e.toLowerCase(),"md5"===e)return new l;if("sha256"===e)return new y;if("sha1"===e)return new S;throw new Error(`Hash algorithm ${e} is not supported`)}function L(e){const t=e.slice||e.webkitSlice||e.mozSlice;return"function"===typeof t?t:null}},6198:function(e,t,n){"use strict";n.d(t,{Is:function(){return s},PE:function(){return a},jl:function(){return o}});var r=n(47008),i=n.n(r);async function a(e,t,r="text/plain;charset=utf-8"){const i=new Blob([t],{type:r}),a=(await n.e(60).then(n.t.bind(n,45060,23))).default;return a(i,e)}function o(e){const t=new(i());for(const n in e)t.file(n,e[n]);return t.generateAsync({type:"blob"}).then((e=>e))}function s(e,t="__downloadIframe"){let n=document.getElementById(t);n||(n=document.createElement("iframe"),n.style.display="none",n.id=t,document.body.appendChild(n)),n.src=e}},99726:function(e,t,n){"use strict";n.d(t,{As:function(){return c},oV:function(){return s},rz:function(){return u}});var r=n(68851);function i(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=o(e,"string");return"symbol"==typeof t?t:t+""}function o(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}class s extends Error{constructor(e){super(e),this.name=s.NAME}}i(s,"NAME","ClusterNotFoundError");class l extends Error{constructor(e,t){super(e),this.url=t,this.name=l.NAME}}i(l,"NAME","RedirectToError");Error;function c(e){let t;if("string"===typeof e)t=e;else if(e&&"object"===typeof e)if(e.message){if(t=e.message,"string"===typeof t)try{const e=JSON.parse(t).data;if(e)return e}catch{}e.detail&&(t?t+=` (${e.detail})`:t=e.detail)}else e.detail?t=e.detail:e.url&&(t=`from ${e.url}`);return t||(t=JSON.stringify(e)),t}function u(e){if(e?.response?.data){const t=e.response.data;return t&&t.message?[t.message]:[e]}return e.status&&e.message?[e.message]:(0,r.cy)(e)?e:[e]}},83416:function(e,t,n){"use strict";n.d(t,{de:function(){return o}});var r=n(35664),i=n(79401),a=n(68851);n(76978);function o(e){const t=e["getStoreNameByProductId"],n=e[`${t}/all`](r.yx),o=(0,a.jq)(n,"id",(0,i.AZ)(r.Rp.PODMONITOR));return!!o}},18110:function(e,t,n){"use strict";n.d(t,{EF:function(){return i},Rc:function(){return c},T6:function(){return f},TD:function(){return p},bE:function(){return u},os:function(){return o},pF:function(){return d},tA:function(){return s},tj:function(){return l},x8:function(){return h},xs:function(){return a}});const r="all",i="ns",a="project",o=`${i}://`,s=`${a}://`,l=r,c=`${r}://system`,u=`${r}://user`,d=`${r}://orphans`,h="namespaced://true",p="namespaced://false",f={DIVIDER:"divider",PROJECT:"project",NAMESPACE:"namespace",SPECIAL:"special"}},76978:function(e,t,n){"use strict";n.d(t,{TJ:function(){return ie},no:function(){return ne},MA:function(){return re},nY:function(){return J},o8:function(){return Y},yo:function(){return oe},BJ:function(){return W},Ui:function(){return ee},cX:function(){return ae},Jt:function(){return q},Ib:function(){return z},Im:function(){return Q},n4:function(){return te},hZ:function(){return G}});var r=n(9274),i=n(46108),a=n.n(i),o=n(53435),s=n.n(o),l=n(16238),c=n.n(l);class u{add(e,t,n){if("string"!=typeof arguments[0])for(let r in arguments[0])this.add(r,arguments[0][r],arguments[1]);else(Array.isArray(e)?e:[e]).forEach((function(e){this[e]=this[e]||[],t&&this[e][n?"unshift":"push"](t)}),this)}run(e,t){this[e]=this[e]||[],this[e].forEach((function(e){e.call(t&&t.context?t.context:t,t)}))}}class d{constructor(e){this.jsep=e,this.registered={}}register(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach((e=>{if("object"!==typeof e||!e.name||!e.init)throw new Error("Invalid JSEP plugin format");this.registered[e.name]||(e.init(this.jsep),this.registered[e.name]=e)}))}}class h{static get version(){return"1.3.9"}static toString(){return"JavaScript Expression Parser (JSEP) v"+h.version}static addUnaryOp(e){return h.max_unop_len=Math.max(e.length,h.max_unop_len),h.unary_ops[e]=1,h}static addBinaryOp(e,t,n){return h.max_binop_len=Math.max(e.length,h.max_binop_len),h.binary_ops[e]=t,n?h.right_associative.add(e):h.right_associative.delete(e),h}static addIdentifierChar(e){return h.additional_identifier_chars.add(e),h}static addLiteral(e,t){return h.literals[e]=t,h}static removeUnaryOp(e){return delete h.unary_ops[e],e.length===h.max_unop_len&&(h.max_unop_len=h.getMaxKeyLen(h.unary_ops)),h}static removeAllUnaryOps(){return h.unary_ops={},h.max_unop_len=0,h}static removeIdentifierChar(e){return h.additional_identifier_chars.delete(e),h}static removeBinaryOp(e){return delete h.binary_ops[e],e.length===h.max_binop_len&&(h.max_binop_len=h.getMaxKeyLen(h.binary_ops)),h.right_associative.delete(e),h}static removeAllBinaryOps(){return h.binary_ops={},h.max_binop_len=0,h}static removeLiteral(e){return delete h.literals[e],h}static removeAllLiterals(){return h.literals={},h}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(e){this.expr=e,this.index=0}static parse(e){return new h(e).parse()}static getMaxKeyLen(e){return Math.max(0,...Object.keys(e).map((e=>e.length)))}static isDecimalDigit(e){return e>=48&&e<=57}static binaryPrecedence(e){return h.binary_ops[e]||0}static isIdentifierStart(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!h.binary_ops[String.fromCharCode(e)]||h.additional_identifier_chars.has(String.fromCharCode(e))}static isIdentifierPart(e){return h.isIdentifierStart(e)||h.isDecimalDigit(e)}throwError(e){const t=new Error(e+" at character "+this.index);throw t.index=this.index,t.description=e,t}runHook(e,t){if(h.hooks[e]){const n={context:this,node:t};return h.hooks.run(e,n),n.node}return t}searchHook(e){if(h.hooks[e]){const t={context:this};return h.hooks[e].find((function(e){return e.call(t.context,t),t.node})),t.node}}gobbleSpaces(){let e=this.code;while(e===h.SPACE_CODE||e===h.TAB_CODE||e===h.LF_CODE||e===h.CR_CODE)e=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");const e=this.gobbleExpressions(),t=1===e.length?e[0]:{type:h.COMPOUND,body:e};return this.runHook("after-all",t)}gobbleExpressions(e){let t,n,r=[];while(this.index<this.expr.length)if(t=this.code,t===h.SEMCOL_CODE||t===h.COMMA_CODE)this.index++;else if(n=this.gobbleExpression())r.push(n);else if(this.index<this.expr.length){if(t===e)break;this.throwError('Unexpected "'+this.char+'"')}return r}gobbleExpression(){const e=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",e)}gobbleBinaryOp(){this.gobbleSpaces();let e=this.expr.substr(this.index,h.max_binop_len),t=e.length;while(t>0){if(h.binary_ops.hasOwnProperty(e)&&(!h.isIdentifierStart(this.code)||this.index+e.length<this.expr.length&&!h.isIdentifierPart(this.expr.charCodeAt(this.index+e.length))))return this.index+=t,e;e=e.substr(0,--t)}return!1}gobbleBinaryExpression(){let e,t,n,r,i,a,o,s,l;if(a=this.gobbleToken(),!a)return a;if(t=this.gobbleBinaryOp(),!t)return a;i={value:t,prec:h.binaryPrecedence(t),right_a:h.right_associative.has(t)},o=this.gobbleToken(),o||this.throwError("Expected expression after "+t),r=[a,i,o];while(t=this.gobbleBinaryOp()){if(n=h.binaryPrecedence(t),0===n){this.index-=t.length;break}i={value:t,prec:n,right_a:h.right_associative.has(t)},l=t;const s=e=>i.right_a&&e.right_a?n>e.prec:n<=e.prec;while(r.length>2&&s(r[r.length-2]))o=r.pop(),t=r.pop().value,a=r.pop(),e={type:h.BINARY_EXP,operator:t,left:a,right:o},r.push(e);e=this.gobbleToken(),e||this.throwError("Expected expression after "+l),r.push(i,e)}s=r.length-1,e=r[s];while(s>1)e={type:h.BINARY_EXP,operator:r[s-1].value,left:r[s-2],right:e},s-=2;return e}gobbleToken(){let e,t,n,r;if(this.gobbleSpaces(),r=this.searchHook("gobble-token"),r)return this.runHook("after-token",r);if(e=this.code,h.isDecimalDigit(e)||e===h.PERIOD_CODE)return this.gobbleNumericLiteral();if(e===h.SQUOTE_CODE||e===h.DQUOTE_CODE)r=this.gobbleStringLiteral();else if(e===h.OBRACK_CODE)r=this.gobbleArray();else{t=this.expr.substr(this.index,h.max_unop_len),n=t.length;while(n>0){if(h.unary_ops.hasOwnProperty(t)&&(!h.isIdentifierStart(this.code)||this.index+t.length<this.expr.length&&!h.isIdentifierPart(this.expr.charCodeAt(this.index+t.length)))){this.index+=n;const e=this.gobbleToken();return e||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:h.UNARY_EXP,operator:t,argument:e,prefix:!0})}t=t.substr(0,--n)}h.isIdentifierStart(e)?(r=this.gobbleIdentifier(),h.literals.hasOwnProperty(r.name)?r={type:h.LITERAL,value:h.literals[r.name],raw:r.name}:r.name===h.this_str&&(r={type:h.THIS_EXP})):e===h.OPAREN_CODE&&(r=this.gobbleGroup())}return r?(r=this.gobbleTokenProperty(r),this.runHook("after-token",r)):this.runHook("after-token",!1)}gobbleTokenProperty(e){this.gobbleSpaces();let t=this.code;while(t===h.PERIOD_CODE||t===h.OBRACK_CODE||t===h.OPAREN_CODE||t===h.QUMARK_CODE){let n;if(t===h.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==h.PERIOD_CODE)break;n=!0,this.index+=2,this.gobbleSpaces(),t=this.code}this.index++,t===h.OBRACK_CODE?(e={type:h.MEMBER_EXP,computed:!0,object:e,property:this.gobbleExpression()},e.property||this.throwError('Unexpected "'+this.char+'"'),this.gobbleSpaces(),t=this.code,t!==h.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):t===h.OPAREN_CODE?e={type:h.CALL_EXP,arguments:this.gobbleArguments(h.CPAREN_CODE),callee:e}:(t===h.PERIOD_CODE||n)&&(n&&this.index--,this.gobbleSpaces(),e={type:h.MEMBER_EXP,computed:!1,object:e,property:this.gobbleIdentifier()}),n&&(e.optional=!0),this.gobbleSpaces(),t=this.code}return e}gobbleNumericLiteral(){let e,t,n="";while(h.isDecimalDigit(this.code))n+=this.expr.charAt(this.index++);if(this.code===h.PERIOD_CODE){n+=this.expr.charAt(this.index++);while(h.isDecimalDigit(this.code))n+=this.expr.charAt(this.index++)}if(e=this.char,"e"===e||"E"===e){n+=this.expr.charAt(this.index++),e=this.char,"+"!==e&&"-"!==e||(n+=this.expr.charAt(this.index++));while(h.isDecimalDigit(this.code))n+=this.expr.charAt(this.index++);h.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+n+this.char+")")}return t=this.code,h.isIdentifierStart(t)?this.throwError("Variable names cannot start with a number ("+n+this.char+")"):(t===h.PERIOD_CODE||1===n.length&&n.charCodeAt(0)===h.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:h.LITERAL,value:parseFloat(n),raw:n}}gobbleStringLiteral(){let e="";const t=this.index,n=this.expr.charAt(this.index++);let r=!1;while(this.index<this.expr.length){let t=this.expr.charAt(this.index++);if(t===n){r=!0;break}if("\\"===t)switch(t=this.expr.charAt(this.index++),t){case"n":e+="\n";break;case"r":e+="\r";break;case"t":e+="\t";break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;default:e+=t}else e+=t}return r||this.throwError('Unclosed quote after "'+e+'"'),{type:h.LITERAL,value:e,raw:this.expr.substring(t,this.index)}}gobbleIdentifier(){let e=this.code,t=this.index;h.isIdentifierStart(e)?this.index++:this.throwError("Unexpected "+this.char);while(this.index<this.expr.length){if(e=this.code,!h.isIdentifierPart(e))break;this.index++}return{type:h.IDENTIFIER,name:this.expr.slice(t,this.index)}}gobbleArguments(e){const t=[];let n=!1,r=0;while(this.index<this.expr.length){this.gobbleSpaces();let i=this.code;if(i===e){n=!0,this.index++,e===h.CPAREN_CODE&&r&&r>=t.length&&this.throwError("Unexpected token "+String.fromCharCode(e));break}if(i===h.COMMA_CODE){if(this.index++,r++,r!==t.length)if(e===h.CPAREN_CODE)this.throwError("Unexpected token ,");else if(e===h.CBRACK_CODE)for(let e=t.length;e<r;e++)t.push(null)}else if(t.length!==r&&0!==r)this.throwError("Expected comma");else{const e=this.gobbleExpression();e&&e.type!==h.COMPOUND||this.throwError("Expected comma"),t.push(e)}}return n||this.throwError("Expected "+String.fromCharCode(e)),t}gobbleGroup(){this.index++;let e=this.gobbleExpressions(h.CPAREN_CODE);if(this.code===h.CPAREN_CODE)return this.index++,1===e.length?e[0]:!!e.length&&{type:h.SEQUENCE_EXP,expressions:e};this.throwError("Unclosed (")}gobbleArray(){return this.index++,{type:h.ARRAY_EXP,elements:this.gobbleArguments(h.CBRACK_CODE)}}}const p=new u;Object.assign(h,{hooks:p,plugins:new d(h),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10},right_associative:new Set,additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),h.max_unop_len=h.getMaxKeyLen(h.unary_ops),h.max_binop_len=h.getMaxKeyLen(h.binary_ops);const f=e=>new h(e).parse(),m=Object.getOwnPropertyNames(class{});Object.getOwnPropertyNames(h).filter((e=>!m.includes(e)&&void 0===f[e])).forEach((e=>{f[e]=h[e]})),f.Jsep=h;const g="ConditionalExpression";var v={name:"ternary",init(e){e.hooks.add("after-expression",(function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;const n=t.node,r=this.gobbleExpression();if(r||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;const i=this.gobbleExpression();if(i||this.throwError("Expected expression"),t.node={type:g,test:n,consequent:r,alternate:i},n.operator&&e.binary_ops[n.operator]<=.9){let r=n;while(r.right.operator&&e.binary_ops[r.right.operator]<=.9)r=r.right;t.node.test=r.right,r.right=t.node,t.node=n}}else this.throwError("Expected :")}}))}};f.plugins.register(v);const b=47,y=92;var w={name:"regex",init(e){e.hooks.add("gobble-token",(function(t){if(this.code===b){const r=++this.index;let i=!1;while(this.index<this.expr.length){if(this.code===b&&!i){const i=this.expr.slice(r,this.index);let a,o="";while(++this.index<this.expr.length){const e=this.code;if(!(e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57))break;o+=this.char}try{a=new RegExp(i,o)}catch(n){this.throwError(n.message)}return t.node={type:e.LITERAL,value:a,raw:this.expr.slice(r-1,this.index)},t.node=this.gobbleTokenProperty(t.node),t.node}this.code===e.OBRACK_CODE?i=!0:i&&this.code===e.CBRACK_CODE&&(i=!1),this.index+=this.code===y?2:1}this.throwError("Unclosed Regex")}}))}};const E=43,_=45,S={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|="]),updateOperators:[E,_],assignmentPrecedence:.9,init(e){const t=[e.IDENTIFIER,e.MEMBER_EXP];function n(e){S.assignmentOperators.has(e.operator)?(e.type="AssignmentExpression",n(e.left),n(e.right)):e.operator||Object.values(e).forEach((e=>{e&&"object"===typeof e&&n(e)}))}S.assignmentOperators.forEach((t=>e.addBinaryOp(t,S.assignmentPrecedence,!0))),e.hooks.add("gobble-token",(function(e){const n=this.code;S.updateOperators.some((e=>e===n&&e===this.expr.charCodeAt(this.index+1)))&&(this.index+=2,e.node={type:"UpdateExpression",operator:n===E?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},e.node.argument&&t.includes(e.node.argument.type)||this.throwError(`Unexpected ${e.node.operator}`))})),e.hooks.add("after-token",(function(e){if(e.node){const n=this.code;S.updateOperators.some((e=>e===n&&e===this.expr.charCodeAt(this.index+1)))&&(t.includes(e.node.type)||this.throwError(`Unexpected ${e.node.operator}`),this.index+=2,e.node={type:"UpdateExpression",operator:n===E?"++":"--",argument:e.node,prefix:!1})}})),e.hooks.add("after-expression",(function(e){e.node&&n(e.node)}))}};f.plugins.register(w,S);const k={evalAst(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":return k.evalBinaryExpression(e,t);case"Compound":return k.evalCompound(e,t);case"ConditionalExpression":return k.evalConditionalExpression(e,t);case"Identifier":return k.evalIdentifier(e,t);case"Literal":return k.evalLiteral(e,t);case"MemberExpression":return k.evalMemberExpression(e,t);case"UnaryExpression":return k.evalUnaryExpression(e,t);case"ArrayExpression":return k.evalArrayExpression(e,t);case"CallExpression":return k.evalCallExpression(e,t);case"AssignmentExpression":return k.evalAssignmentExpression(e,t);default:throw SyntaxError("Unexpected expression",e)}},evalBinaryExpression(e,t){const n={"||":(e,t)=>e||t(),"&&":(e,t)=>e&&t(),"|":(e,t)=>e|t(),"^":(e,t)=>e^t(),"&":(e,t)=>e&t(),"==":(e,t)=>e==t(),"!=":(e,t)=>e!=t(),"===":(e,t)=>e===t(),"!==":(e,t)=>e!==t(),"<":(e,t)=>e<t(),">":(e,t)=>e>t(),"<=":(e,t)=>e<=t(),">=":(e,t)=>e>=t(),"<<":(e,t)=>e<<t(),">>":(e,t)=>e>>t(),">>>":(e,t)=>e>>>t(),"+":(e,t)=>e+t(),"-":(e,t)=>e-t(),"*":(e,t)=>e*t(),"/":(e,t)=>e/t(),"%":(e,t)=>e%t()}[e.operator](k.evalAst(e.left,t),(()=>k.evalAst(e.right,t)));return n},evalCompound(e,t){let n;for(let r=0;r<e.body.length;r++){"Identifier"===e.body[r].type&&["var","let","const"].includes(e.body[r].name)&&e.body[r+1]&&"AssignmentExpression"===e.body[r+1].type&&(r+=1);const i=e.body[r];n=k.evalAst(i,t)}return n},evalConditionalExpression(e,t){return k.evalAst(e.test,t)?k.evalAst(e.consequent,t):k.evalAst(e.alternate,t)},evalIdentifier(e,t){if(e.name in t)return t[e.name];throw ReferenceError(`${e.name} is not defined`)},evalLiteral(e){return e.value},evalMemberExpression(e,t){if("Identifier"===e.property.type&&"constructor"===e.property.name||"Identifier"===e.object.type&&"constructor"===e.object.name)throw new Error("'constructor' property is disabled");const n=e.computed?k.evalAst(e.property):e.property.name,r=k.evalAst(e.object,t),i=r[n];if("function"===typeof i){if(r===Function&&"bind"===n)throw new Error("Function.prototype.bind is disabled");if(r===Function&&("call"===n||"apply"===n))throw new Error("Function.prototype.call and Function.prototype.apply are disabled");return i===Function?i:i.bind(r)}return i},evalUnaryExpression(e,t){const n={"-":e=>-k.evalAst(e,t),"!":e=>!k.evalAst(e,t),"~":e=>~k.evalAst(e,t),"+":e=>+k.evalAst(e,t)}[e.operator](e.argument);return n},evalArrayExpression(e,t){return e.elements.map((e=>k.evalAst(e,t)))},evalCallExpression(e,t){const n=e.arguments.map((e=>k.evalAst(e,t))),r=k.evalAst(e.callee,t);if(r===Function)throw new Error("Function constructor is disabled");return r(...n)},evalAssignmentExpression(e,t){if("Identifier"!==e.left.type)throw SyntaxError("Invalid left-hand side in assignment");const n=e.left.name;if("__proto__"===n)throw new Error("Assignment to __proto__ is disabled");const r=k.evalAst(e.right,t);return t[n]=r,t[n]}};class x{constructor(e){this.code=e,this.ast=f(this.code)}runInNewContext(e){const t={...e};return k.evalAst(this.ast,t)}}function A(e,t){return e=e.slice(),e.push(t),e}function N(e,t){return t=t.slice(),t.unshift(e),t}class C extends Error{constructor(e){super('JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)'),this.avoidNew=!0,this.value=e,this.name="NewError"}}function T(e,t,n,r,i){if(!(this instanceof T))try{return new T(e,t,n,r,i)}catch(o){if(!o.avoidNew)throw o;return o.value}"string"===typeof e&&(i=r,r=n,n=t,t=e,e=null);const a=e&&"object"===typeof e;if(e=e||{},this.json=e.json||n,this.path=e.path||t,this.resultType=e.resultType||"value",this.flatten=e.flatten||!1,this.wrap=!Object.hasOwn(e,"wrap")||e.wrap,this.sandbox=e.sandbox||{},this.eval=void 0===e.eval?"safe":e.eval,this.ignoreEvalErrors="undefined"!==typeof e.ignoreEvalErrors&&e.ignoreEvalErrors,this.parent=e.parent||null,this.parentProperty=e.parentProperty||null,this.callback=e.callback||r||null,this.otherTypeCallback=e.otherTypeCallback||i||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},!1!==e.autostart){const r={path:a?e.path:t};a?"json"in e&&(r.json=e.json):r.json=n;const i=this.evaluate(r);if(!i||"object"!==typeof i)throw new C(i);return i}}T.prototype.evaluate=function(e,t,n,r){let i=this.parent,a=this.parentProperty,{flatten:o,wrap:s}=this;if(this.currResultType=this.resultType,this.currEval=this.eval,this.currSandbox=this.sandbox,n=n||this.callback,this.currOtherTypeCallback=r||this.otherTypeCallback,t=t||this.json,e=e||this.path,e&&"object"===typeof e&&!Array.isArray(e)){if(!e.path&&""!==e.path)throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!Object.hasOwn(e,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');({json:t}=e),o=Object.hasOwn(e,"flatten")?e.flatten:o,this.currResultType=Object.hasOwn(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=Object.hasOwn(e,"sandbox")?e.sandbox:this.currSandbox,s=Object.hasOwn(e,"wrap")?e.wrap:s,this.currEval=Object.hasOwn(e,"eval")?e.eval:this.currEval,n=Object.hasOwn(e,"callback")?e.callback:n,this.currOtherTypeCallback=Object.hasOwn(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,i=Object.hasOwn(e,"parent")?e.parent:i,a=Object.hasOwn(e,"parentProperty")?e.parentProperty:a,e=e.path}if(i=i||null,a=a||null,Array.isArray(e)&&(e=T.toPathString(e)),!e&&""!==e||!t)return;const l=T.toPathArray(e);"$"===l[0]&&l.length>1&&l.shift(),this._hasParentSelector=null;const c=this._trace(l,t,["$"],i,a,n).filter((function(e){return e&&!e.isParentSelector}));return c.length?s||1!==c.length||c[0].hasArrExpr?c.reduce(((e,t)=>{const n=this._getPreferredOutput(t);return o&&Array.isArray(n)?e=e.concat(n):e.push(n),e}),[]):this._getPreferredOutput(c[0]):s?[]:void 0},T.prototype._getPreferredOutput=function(e){const t=this.currResultType;switch(t){case"all":{const t=Array.isArray(e.path)?e.path:T.toPathArray(e.path);return e.pointer=T.toPointer(t),e.path="string"===typeof e.path?e.path:T.toPathString(e.path),e}case"value":case"parent":case"parentProperty":return e[t];case"path":return T.toPathString(e[t]);case"pointer":return T.toPointer(e.path);default:throw new TypeError("Unknown result type")}},T.prototype._handleCallback=function(e,t,n){if(t){const r=this._getPreferredOutput(e);e.path="string"===typeof e.path?e.path:T.toPathString(e.path),t(r,n,e)}},T.prototype._trace=function(e,t,n,r,i,a,o,s){let l;if(!e.length)return l={path:n,value:t,parent:r,parentProperty:i,hasArrExpr:o},this._handleCallback(l,a,"value"),l;const c=e[0],u=e.slice(1),d=[];function h(e){Array.isArray(e)?e.forEach((e=>{d.push(e)})):d.push(e)}if(("string"!==typeof c||s)&&t&&Object.hasOwn(t,c))h(this._trace(u,t[c],A(n,c),t,c,a,o));else if("*"===c)this._walk(t,(e=>{h(this._trace(u,t[e],A(n,e),t,e,a,!0,!0))}));else if(".."===c)h(this._trace(u,t,n,r,i,a,o)),this._walk(t,(r=>{"object"===typeof t[r]&&h(this._trace(e.slice(),t[r],A(n,r),t,r,a,!0))}));else{if("^"===c)return this._hasParentSelector=!0,{path:n.slice(0,-1),expr:u,isParentSelector:!0};if("~"===c)return l={path:A(n,c),value:i,parent:r,parentProperty:null},this._handleCallback(l,a,"property"),l;if("$"===c)h(this._trace(u,t,n,null,null,a,o));else if(/^(-?\d*):(-?\d*):?(\d*)$/u.test(c))h(this._slice(c,u,t,n,r,i,a));else if(0===c.indexOf("?(")){if(!1===this.currEval)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");const e=c.replace(/^\?\((.*?)\)$/u,"$1"),o=/@.?([^?]*)[['](\??\(.*?\))(?!.\)\])[\]']/gu.exec(e);o?this._walk(t,(e=>{const s=[o[2]],l=o[1]?t[e][o[1]]:t[e],c=this._trace(s,l,n,r,i,a,!0);c.length>0&&h(this._trace(u,t[e],A(n,e),t,e,a,!0))})):this._walk(t,(o=>{this._eval(e,t[o],o,n,r,i)&&h(this._trace(u,t[o],A(n,o),t,o,a,!0))}))}else if("("===c[0]){if(!1===this.currEval)throw new Error("Eval [(expr)] prevented in JSONPath expression.");h(this._trace(N(this._eval(c,t,n.at(-1),n.slice(0,-1),r,i),u),t,n,r,i,a,o))}else if("@"===c[0]){let e=!1;const o=c.slice(1,-2);switch(o){case"scalar":t&&["object","function"].includes(typeof t)||(e=!0);break;case"boolean":case"string":case"undefined":case"function":typeof t===o&&(e=!0);break;case"integer":!Number.isFinite(t)||t%1||(e=!0);break;case"number":Number.isFinite(t)&&(e=!0);break;case"nonFinite":"number"!==typeof t||Number.isFinite(t)||(e=!0);break;case"object":t&&typeof t===o&&(e=!0);break;case"array":Array.isArray(t)&&(e=!0);break;case"other":e=this.currOtherTypeCallback(t,n,r,i);break;case"null":null===t&&(e=!0);break;default:throw new TypeError("Unknown value type "+o)}if(e)return l={path:n,value:t,parent:r,parentProperty:i},this._handleCallback(l,a,"value"),l}else if("`"===c[0]&&t&&Object.hasOwn(t,c.slice(1))){const e=c.slice(1);h(this._trace(u,t[e],A(n,e),t,e,a,o,!0))}else if(c.includes(",")){const e=c.split(",");for(const o of e)h(this._trace(N(o,u),t,n,r,i,a,!0))}else!s&&t&&Object.hasOwn(t,c)&&h(this._trace(u,t[c],A(n,c),t,c,a,o,!0))}if(this._hasParentSelector)for(let p=0;p<d.length;p++){const e=d[p];if(e&&e.isParentSelector){const n=this._trace(e.expr,t,e.path,r,i,a,o);if(Array.isArray(n)){d[p]=n[0];const e=n.length;for(let t=1;t<e;t++)p++,d.splice(p,0,n[t])}else d[p]=n}}return d},T.prototype._walk=function(e,t){if(Array.isArray(e)){const n=e.length;for(let e=0;e<n;e++)t(e)}else e&&"object"===typeof e&&Object.keys(e).forEach((e=>{t(e)}))},T.prototype._slice=function(e,t,n,r,i,a,o){if(!Array.isArray(n))return;const s=n.length,l=e.split(":"),c=l[2]&&Number.parseInt(l[2])||1;let u=l[0]&&Number.parseInt(l[0])||0,d=l[1]&&Number.parseInt(l[1])||s;u=u<0?Math.max(0,u+s):Math.min(s,u),d=d<0?Math.max(0,d+s):Math.min(s,d);const h=[];for(let p=u;p<d;p+=c){const e=this._trace(N(p,t),n,r,i,a,o,!0);e.forEach((e=>{h.push(e)}))}return h},T.prototype._eval=function(e,t,n,r,i,a){this.currSandbox._$_parentProperty=a,this.currSandbox._$_parent=i,this.currSandbox._$_property=n,this.currSandbox._$_root=this.json,this.currSandbox._$_v=t;const o=e.includes("@path");o&&(this.currSandbox._$_path=T.toPathString(r.concat([n])));const s=this.currEval+"Script:"+e;if(!T.cache[s]){let t=e.replaceAll("@parentProperty","_$_parentProperty").replaceAll("@parent","_$_parent").replaceAll("@property","_$_property").replaceAll("@root","_$_root").replaceAll(/@([.\s)[])/gu,"_$_v$1");if(o&&(t=t.replaceAll("@path","_$_path")),"safe"===this.currEval||!0===this.currEval||void 0===this.currEval)T.cache[s]=new this.safeVm.Script(t);else if("native"===this.currEval)T.cache[s]=new this.vm.Script(t);else if("function"===typeof this.currEval&&this.currEval.prototype&&Object.hasOwn(this.currEval.prototype,"runInNewContext")){const e=this.currEval;T.cache[s]=new e(t)}else{if("function"!==typeof this.currEval)throw new TypeError(`Unknown "eval" property "${this.currEval}"`);T.cache[s]={runInNewContext:e=>this.currEval(t,e)}}}try{return T.cache[s].runInNewContext(this.currSandbox)}catch(l){if(this.ignoreEvalErrors)return!1;throw new Error("jsonPath: "+l.message+": "+e)}},T.cache={},T.toPathString=function(e){const t=e,n=t.length;let r="$";for(let i=1;i<n;i++)/^(~|\^|@.*?\(\))$/u.test(t[i])||(r+=/^[0-9*]+$/u.test(t[i])?"["+t[i]+"]":"['"+t[i]+"']");return r},T.toPointer=function(e){const t=e,n=t.length;let r="";for(let i=1;i<n;i++)/^(~|\^|@.*?\(\))$/u.test(t[i])||(r+="/"+t[i].toString().replaceAll("~","~0").replaceAll("/","~1"));return r},T.toPathArray=function(e){const{cache:t}=T;if(t[e])return t[e].concat();const n=[],r=e.replaceAll(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\(\)/gu,";$&;").replaceAll(/[['](\??\(.*?\))[\]'](?!.\])/gu,(function(e,t){return"[#"+(n.push(t)-1)+"]"})).replaceAll(/\[['"]([^'\]]*)['"]\]/gu,(function(e,t){return"['"+t.replaceAll(".","%@%").replaceAll("~","%%@@%%")+"']"})).replaceAll("~",";~;").replaceAll(/['"]?\.['"]?(?![^[]*\])|\[['"]?/gu,";").replaceAll("%@%",".").replaceAll("%%@@%%","~").replaceAll(/(?:;)?(\^+)(?:;)?/gu,(function(e,t){return";"+t.split("").join(";")+";"})).replaceAll(/;;;|;;/gu,";..;").replaceAll(/;$|'?\]|'$/gu,""),i=r.split(";").map((function(e){const t=e.match(/#(\d+)/u);return t&&t[1]?n[t[1]]:e}));return t[e]=i,t[e].concat()},T.prototype.safeVm={Script:x};const R=function(e,t,n){const r=e.length;for(let i=0;i<r;i++){const r=e[i];n(r)&&t.push(e.splice(i--,1)[0])}};class O{constructor(e){this.code=e}runInNewContext(e){let t=this.code;const n=Object.keys(e),r=[];R(n,r,(t=>"function"===typeof e[t]));const i=n.map((t=>e[t])),a=r.reduce(((t,n)=>{let r=e[n].toString();return/function/u.test(r)||(r="function "+r),"var "+n+"="+r+";"+t}),"");t=a+t,/(['"])use strict\1/u.test(t)||n.includes("arguments")||(t="var arguments = undefined;"+t),t=t.replace(/;\s*$/u,"");const o=t.lastIndexOf(";"),s=o>-1?t.slice(0,o+1)+" return "+t.slice(o+1):" return "+t;return new Function(...n,s)(...i)}}T.prototype.vm={Script:O};var I=n(2011),L=n.n(I),D=n(41580),P=n.n(D),M=n(53142),B=n.n(M),F=n(46343),$=n.n(F),U=n(88088),j=n.n(U),V=(n(48875),n(92043)),K=n(68851),H=n(4364);function G(e,t,n){let r=e;if(!r)return;const i=(0,V.jg)(t);for(let a=0;a<i.length;a++){const e=i[a];a===i.length-1?r[e]=n:r[e]||(r[e]={}),r=r[e]}return e}function z(e,t){const n=t.split(".");let r=[e];return n.forEach((e=>{r=r.map((t=>Array.isArray(t)?t.map((t=>t[e])).flat():t?t[e]:null)).flat()})),r.filter((e=>null!==e))}function q(e,t){if(!t)throw new Error("Cannot translate an empty input. The t function requires a string.");if(t.startsWith("$"))try{return T({path:t,json:e,wrap:!1})}catch(r){return H.log("JSON Path error",r,t,e),"(JSON Path err)"}if(!t.includes("."))return e?.[t];const n=(0,V.jg)(t);for(let i=0;i<n.length;i++){if(!e)return;e=e[n[i]]}return e}function X(e,t){const n=(0,V.jg)(t);if(1===n.length)e[t]=void 0,delete e[t];else{const t=n.pop(),r=q(e,(0,V.ZM)(n));r&&(r[t]=void 0,delete r[t])}return e}function W(e,t){const n=t.split("."),r=n.pop();delete n.reduce(((e,t)=>e[t]||{}),e)[r]}function Y(e){return a()(e)}function Q(e){return!e||!Object.keys(e).length}function J(e){return Object.keys(e).map((t=>{const n=e[t];Array.isArray(n)?(e[t]=n.map((e=>{if(null!==e&&void 0!==e)return J(e)})),0===e[t].length&&delete e[t]):"undefined"===typeof n||null===n?delete e[t]:P()(n)&&(Q(n)&&delete e[t],e[t]=J(n))})),e}function Z(e){const t=Object.keys(e).map((t=>{const n=e[t];return Array.isArray(n)?`"${t}"`:P()(n)?(Z(n)||[]).map((e=>`"${t}".${e}`)):`"${t}"`}));return c()(s()(t))}function ee(e,t){e=e||{},t=t||{};const n=L()(t,((t,n,r)=>{const i=e[r];$()(n,i)||(Array.isArray(n)||Array.isArray(i)?t[r]=n:P()(n)&&P()(e[r])?t[r]=ee(i,n):t[r]=n)})),r=Z(e),i=Z(t),a=j()(r,i);for(const o of a)G(n,o,null);return n}function te(e,t){const n=Object.keys(e||{}),r=Object.keys(t||{});if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++){const r=e[n[i]],a=t[n[i]];if(r!==a)return!1}return!0}function ne(e,t,n=[]){let r={};if($()(e,t))return r;for(const i in e){const a=(0,V.ZM)([...n,i]);i in t?P()(e[i])&&P()(t[i])||B()(e[i])&&B()(t[i])?r={...r,...ne(e[i],t[i],[...n,i])}:$()(e[i],t[i])||(r[a]={op:"change",from:e[i],value:t[i]}):r[a]={op:"remove",path:a}}for(const i in t)if(!(i in e)){const e=(0,V.ZM)([...n,i]);r[e]={op:"add",value:t[i]}}return r}function re(e,t){let n=Object.keys(e).sort();const r=[],i={};for(const o of n){let n=!0;const s=e[o],l=t[o];for(const e of a(o))if(i[e]){n=!1;break}if(i[o]=!0,n&&l)switch(`${s.op}-${l.op}`){case"add-add":case"add-change":case"change-add":case"change-change":n=$()(s.value,l.value);break;case"add-remove":case"change-remove":case"remove-add":case"remove-change":n=!1;break;case"remove-remove":default:n=!0;break}n||(0,K.PG)(r,o)}n=Object.keys(t).sort();for(const o of n){let e=!0;for(const t of a(o))if(i[t]){e=!1;break}i[o]=!0,e||(0,K.PG)(r,o)}return r.sort();function a(e){const t=[],n=(0,V.jg)(e);n.pop();while(n.length){const e=(0,V.ZM)(n);t.push(e),n.pop()}return t}}function ie(e,t){let n;for(const r in t)if(n=t[r],"add"===n.op||"change"===n.op)G(e,r,n.value);else{if("remove"!==n.op)throw new Error(`Unknown operation:${n.op}`);X(e,r)}return e}function ae(e,t){if(e)for(const n of t)delete e[n]}function oe(e,t=new WeakSet){if(null===e||"object"!==typeof e)return e;if(t.has(e))return e;if(t.add(e),Array.isArray(e))return e.map((e=>oe(e,t)));{const n=(0,r.toRaw)(e),i={};for(const e in n)"function"===typeof n[e]||"symbol"===typeof n[e]?i[e]=null:i[e]=oe(n[e],t);return i}}},35881:function(e,t,n){"use strict";n.d(t,{A0:function(){return p},ZA:function(){return s},_Z:function(){return h},cX:function(){return a},nN:function(){return u},nr:function(){return m},yC:function(){return d}});const r="undefined"===typeof window?"server":window.navigator.platform.toLowerCase(),i="undefined"===typeof window?"server":window.navigator.userAgent,a=(r.includes("linux")||r.includes("unix"),r.includes("mac")),o=(r.includes("win"),a?"metaKey":"ctrlKey"),s=a?"Command":"Control",l=o,c="shiftKey";function u(e){return!!e[o]}function d(e){return!!e[l]}function h(e){return!!e[c]}function p(e){return e.ctrlKey&&2===e.button}i.includes("Gecko/");const f=i.includes("Chrome/"),m=(!f&&i.includes("AppleWebKit/"),!f&&i.includes("Safari/"));/Android|webOS|iPhone|iPad|iPod|IEMobile/i.test(i)},14817:function(e,t,n){"use strict";n.d(t,{Q7:function(){return o},Q8:function(){return c},Tb:function(){return p}});const r="left",i="right",a="top",o="center",s="center",l="bottom",c="auto";function u(e){const t=e.getBoundingClientRect(),n=e.offsetWidth,r=e.offsetHeight;return{top:t.top,right:t.left+n,bottom:t.top+r,left:t.left,width:n,height:r}}function d(e){return{top:e.clientY,left:e.clientX,bottom:e.clientY,right:e.clientX,width:0,height:0}}function h(){const e=window.innerWidth,t=window.innerHeight,n=window.pageYOffset,r=window.pageXOffset;return{top:n,right:r+e,bottom:n+t,left:r,width:e,height:t}}function p(e,t,n,p){let{positionX:f=c,positionY:m=c}=n||{};const{fudgeX:g=0,fudgeY:v=0,overlapX:b=!0,overlapY:y=!1}=n||{},w=h();let E;E=t instanceof Event?d(t):u(t);let _={};e&&(_=u(e)),p&&(_={top:0,right:147,bottom:163,left:0,width:147,height:80});const S={position:"absolute"},k={left:b?E.left:E.right,center:(E.left+E.right)/2,right:b?E.right:E.left,top:y?E.bottom:E.top,middle:(E.top+E.bottom)/2,bottom:y?E.top:E.bottom},x={left:w.right-_.width-k.left,center:Math.min(w.right-_.width/2-k.center,k.center-_.width/2-w.left),right:k.right-_.width-w.left,top:k.bottom-_.height-w.top,middle:Math.min(k.middle-_.height/2-w.top,w.bottom-_.height/2-k.middle),bottom:w.bottom-_.height-k.top};switch(f===o&&x.center<0&&(f=c),f===c?f=x.left<0||1.5*x.right>x.left?i:r:m===r&&x.left<0?f=i:m===i&&x.right<0&&(f=r),f){case r:S.left=k.left-g+"px";break;case o:S.left=(k.left+k.right)/2-_.width/2-g+"px";break;case i:S.left=k.right+g-_.width+"px";break}switch(m===s&&x.middle<0&&(m=c),m===c?m=x.top<0||1.5*x.bottom>x.top?l:a:m===a&&x.top<0?m=l:m===l&&x.bottom<0&&(m=a),m){case a:S.top=k.top+v-_.height+"px";break;case o:S.top=(k.top+k.bottom)/2+v-_.height+"px";break;case l:S.top=k.bottom-v+"px";break}return S}},88339:function(e,t,n){"use strict";function r(){this.queue=[],this.offset=0,this.getLength=function(){return this.queue.length-this.offset},this.isEmpty=function(){return 0===this.queue.length},this.enqueue=function(e){this.queue.push(e)},this.dequeue=function(){if(0===this.queue.length)return;const e=this.queue[this.offset];return 2*++this.offset>=this.queue.length&&(this.queue=this.queue.slice(this.offset),this.offset=0),e},this.peek=function(){return this.queue.length>0?this.queue[this.offset]:void 0},this.clear=function(){this.offset=0,this.queue.length=0}}n.d(t,{kR:function(){return o},$t:function(){return s},yX:function(){return c},hF:function(){return l},DD:function(){return u}});var i=n(4364);async function a(e,t){const n=Object.keys(e),r=Object.values(e),i=await Promise[t](r),a={};for(let o=0;o<n.length;o++)a[n[o]]=i[o];return a}function o(e){return a(e,"all")}function s(e){return a(e,"allSettled")}function l(e,t,n,a=!1){return a&&i.log("eachLimit of",e.length," items",t,"at a time"),new Promise(((o,s)=>{const l=new r;let c=0,u=!1;const d=[];for(let t=0;t<e.length;t++)l.enqueue({item:e[t],idx:t});function h(){if(a&&i.log(`process, queue=${l.getLength()}, pending=${c}, failed=${u}`),!u){if(l.isEmpty()&&0===c)return o(d);while(!l.isEmpty()&&c<t&&!u){const{item:e,idx:t}=l.dequeue();a&&i.log("Running",e),c++,n(e,t).then((n=>{a&&i.log("Done",e),d[t]=n,c--,h()})).catch((t=>{a&&i.log("Failed",t,e),u=!0,s(t)}))}}}h()}))}function c(e){const t={};return t.promise=new Promise(((e,n)=>{t.resolve=e,t.reject=n}),e),t}function u(e,t,n,r){e.then((e=>{t[n]=e})).catch((e=>{i.warn("Failed to: ",r,e)}))}},37327:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});n(4364);function r(e){let t=e.params?.product;if(!t){const n=e.name?.match(/^c-cluster-([^-]+)/);n&&(t=n[1])}return t||(t=i(e,"product")),t}function i(e,t){if(e?.meta){const n=Array.isArray(e.meta)?e.meta:[e.meta];for(let e=0;e<n.length;e++)if(n[e][t])return n[e][t]}}},20162:function(e,t,n){"use strict";function r(e,t){if(!this.$attrs.multiple)return;const n=e=>this.optionKey?this.get(e,this.optionKey):this.getOptionLabel(e),r=n(e),i=this.value||[],a=i.findIndex((e=>n(e)===r));a<0||(this.value.splice(a,1),this.$emit("update:value",this.value),t.preventDefault(),t.stopPropagation(),this.closeOnSelect&&this.$refs["select-input"].closeSearchOptions())}function i(e,t,n,r){const i=t.$parent.$el,a=i.getBoundingClientRect(),o=r||"bottom-start",s=document.body.offsetHeight,l=s-window.scrollY-a.y-1;let c;if(!o.includes("top")){c=a.y+a.height-1;const t=c+e.offsetHeight;t>window.innerHeight?c=void 0:c+=window.scrollY}c?(e.style.top=`${c}px`,e.classList.remove("vs__dropdown-up"),i.classList.remove("vs__dropdown-up")):(e.style.bottom=`${l}px`,e.classList.add("vs__dropdown-up"),i.classList.add("vs__dropdown-up")),e.style.left=`${a.x}px`,e.style.width="min-content",e.style.minWidth=`${a.width}px`}n.d(t,{s:function(){return i},t:function(){return r}})},38823:function(e,t,n){"use strict";n.d(t,{C6:function(){return c},CR:function(){return u},_R:function(){return l},cK:function(){return d},wC:function(){return h}});var r=n(68851),i=n(76978);const a={},o={"=":"In","==":"In","!=":"NotIn","<":"Lt",">":"Gt"};function s(e){if(e=e.replace(/\+/g," "),a[e])return a[e];let t;const n=[],r=[];if(t=e.match(/\([^)]+\)/g),t&&t.length)for(const a of t){const t=a.replace(/^\s*\(\s*/,"").replace(/\s*\)\s*$/,"").split(/\s*,\s*/);r.push(t),e=e.replace(a,` @${r.length-1} `)}const i=e.split(/\s*,\s*/).filter((e=>!!e));for(let a of i)a=a.trim(),t=a.match(/^(.*?)\s+((not\s*)?in)\s+@(\d+)*$/i),t?n.push({key:t[1].trim(),operator:"notin"===t[2].toLowerCase().replace(/\s/g,"")?"NotIn":"In",values:r[t[4].trim()]}):(t=a.match(/^([^!=]*)\s*(\!=|=|==|>|<)\s*([^!=]*)$/),t?n.push({key:t[1].trim(),operator:o[t[2]],values:[t[3].trim()]}):a.startsWith("!")?n.push({key:a.substr(1).trim(),operator:"DoesNotExist"}):n.push({key:a.trim(),operator:"Exists"}));return a[e]=n,n}function l(e){return c(e.matchLabels||{},e.matchExpressions||[])}function c(e,t){const n=Object.keys(e||{}),i=t||[];for(const a of n){const t=e[a],n=(0,r.jq)(i,{key:a,operator:"In"});n?(0,r.PG)(n.values,t):i.push({key:a,operator:"In",values:(0,r.cy)(t)?t:[t]})}return i}function u(e){const t={},n=[],i=[],a={};for(const o of e)"In"===o.operator&&(a[o.key]?(0,r.PG)(i,o.key):a[o.key]=!0);for(const r of e)"In"!==r.operator||1!==r.values.length||i.includes(r.key)?n.push(Object.assign({},r)):t[r.key]=r.values[0];return{matchLabels:t,matchExpressions:n}}function d(e,t,n="metadata.labels"){let a=[];if("string"===typeof t)a=s(t);else if((0,r.cy)(t))a=t;else{if("object"!==typeof t||!t)return!1;a=c(t)}const o=(0,i.Jt)(e,n)||{};for(const r of a){const e=o[r.key],t=parseInt(e,10),n="undefined"!==typeof o[r.key];switch(r.operator){case"Exists":if(!n)return!1;break;case"DoesNotExist":if(n)return!1;break;case"In":if(!r.values.length||!r.values.includes(e))return!1;break;case"NotIn":if(r.values.includes(e))return!1;break;case"Lt":if(isNaN(t)||t>=Math.min.apply(null,r.values))return!1;break;case"Gt":if(isNaN(t)||t<=Math.max.apply(null,r.values))return!1;break}}return!0}function h(e,t,n){return e.filter((e=>d(e,t,n)))}},74302:function(e,t,n){"use strict";n.d(t,{QP:function(){return s},RY:function(){return m},UD:function(){return u},Ul:function(){return h}});var r=n(76978),i=n(92043);const a={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object","[object FileList]":"filelist"},{toString:o}=Object.prototype;function s(e){if(null===e)return"null";if(void 0===e)return"undefined";let t=a[o.call(e)]||"object";return"object"===t&&(e instanceof Error?t="error":e instanceof Date&&(t="date")),t}function l(e,t){const n=e-t;return(n>0)-(n<0)}const c={undefined:0,null:1,boolean:2,number:3,string:4,array:5,object:6,instance:7,function:8,class:9,date:10};function u(e,t){const n=s(e),r=s(t),i=l(c[n],c[r]);if(i)return i;switch(n){case"boolean":case"number":return l(e,t);case"string":return l(e.localeCompare(t),0);case"array":{const n=e.length,r=t.length,i=Math.min(n,r);for(let a=0;a<i;a++){const n=u(e[a],t[a]);if(0!==n)return n}return l(n,r)}case"date":return l(e.getTime(),t.getTime())}return 0}function d(e){const t=e.split(/:/);return 2===t.length&&"desc"===t[1]?{field:t[0],reverse:!0}:{field:e,reverse:!1}}function h(e,t,n){return Array.isArray(t)||(t=[t]),(e||[]).slice().sort(((e,i)=>{for(let a=0;a<t.length;a++){const o=d(t[a]),s=(0,r.Jt)(e,o.field),l=(0,r.Jt)(i,o.field);let c=u(s,l);if(c)return n&&(c*=-1),o.reverse&&(c*=-1),c}return 0}))}const p=/([^\d]+)/,f=/^[0-9]+$/;function m(e){return"string"!==typeof e?e:e.split(p).map((e=>e.match(f)?(0,i.DZ)(e,10,"0"):e)).join("").trim()}},92043:function(e,t,n){"use strict";function r(e){return _(e||"").split("-").map((e=>i(e))).join(" ")}function i(e){return e=e||"",e.substr(0,1).toUpperCase()+e.substr(1)}function a(e,t,n=" ",r=!1){if(e=`${e}`,e.length>=t)return e;const i=t-e.length+1,a=new Array(i).join(n).substr(0,i);return r?e+a:a+e}n.d(t,{$f:function(){return l},DZ:function(){return a},HV:function(){return x},Kn:function(){return N},LQ:function(){return p},Nr:function(){return v},OF:function(){return A},TF:function(){return i},XC:function(){return S},ZD:function(){return s},ZM:function(){return R},_R:function(){return r},_k:function(){return _},aR:function(){return L},eH:function(){return I},i6:function(){return k},jg:function(){return T},l9:function(){return m},pZ:function(){return b},qO:function(){return O},td:function(){return g},vx:function(){return f}});const o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function s(e){return String(e).replace(/[&<>"']/g,(e=>o[e]))}function l(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function c(e){e=Math.max(0,e||1);const t=[];let n;if(window.crypto&&window.crypto.getRandomValues){const r=new Uint32Array(e);for(window.crypto.getRandomValues(r),n=0;n<r.length;n++)t[n]=r[n]}else for(n=0;n<e;n++)t[n]=4294967296*Math.random();return 1===e?t[0]:t}const u="abcdefghijklmnopqrstuvwxyz",d="0123456789",h="!@#$%^&*()_+-=[]{};:,./<>?|",p={NUMERIC:d,NO_VOWELS:"bcdfghjklmnpqrstvwxz2456789",ALPHA:u+u.toUpperCase(),ALPHA_NUM:u+u.toUpperCase()+d,ALPHA_LOWER:u,ALPHA_UPPER:u.toUpperCase(),HEX:`${d}ABCDEF`,PASSWORD:u+u.toUpperCase()+d+u+u.toUpperCase()+d+h};function f(e=16,t=p.ALPHA_NUM){return t&&t.length?c(e).map((e=>t[e%t.length])).join(""):null}function m(e,t=2){return e<1&&t>=2?Math.round(100*e)/100+"%":e<10&&t>=1?Math.round(10*e)/10+"%":`${Math.round(e)}%`}function g(e){return e.match(/.*[^aeiou]y$/i)?`${e.substr(0,e.length-1)}ies`:e.endsWith("ics")?e:e.endsWith("s")?`${e}es`:`${e}s`}function v(e,t,n={}){const r=5;let{plusMore:i,endString:a}=n;return i||(i=t("promptRemove.andOthers",{count:e.length>r?e.length-r:0})),a||(a=!1===a?" ":"."),e.reduce(((n,o,l)=>(l<r&&(n+=`<b>${s(o)}</b>`,l===e.length-1?n+=a:l===e.length-2?n+=e.length<=5?t("generic.and"):"":n+=l<r-1?t("generic.comma"):""),l===r&&(n+=i),n)),"")}function b(e,t=2,n=" ",r=null){e="string"===typeof e?e.split(/\n/):e||[];const i=new Array(t+1).join(n),a=e.map((e=>{let t="",n=e;if(r){const i=e.match(r);i&&(t=i[i.length-1],n=e.substr(i[0].length))}return`${t}${i}${n}`})),o=a.join("\n");return o}const y=/([a-z\d])([A-Z])/g;function w(e){return e.replace(y,"$1_$2").toLowerCase()}const E=/[ _]/g;function _(e){return w(e).replace(E,"-")}function S(e){return e=e||"",!e.match(/[^\r\n\t\x20-\x7F]/)}function k(e,t){return"float"===t?e=parseFloat(e)||null:"int"===t?(e=parseInt(e,10),isNaN(e)&&(e=null)):"boolean"===t&&("true"===e.toLowerCase()?e=!0:"false"===e.toLowerCase()&&(e=!1)),e}function x(e,t=[]){return t.some((t=>{const n=e||"",r=A(t);return n.match(r)}))}function A(e,t=!0){return"string"===typeof e?t?new RegExp(`^${l(e)}$`,"i"):new RegExp(`${l(e)}`,"i"):e}function N(e){return s(e||"").replace(/(\r\n|\r|\n)/g,"<br/>\n")}const C=/[^."']+|"([^"]*)"|'([^']*)'/g;function T(e){return e.includes('"')||e.includes("'")?e.match(C).map((e=>e.replace(/['"]/g,""))):e.split(".")}function R(e){let t="";for(const n of e)n.includes(".")?t+=`."${n}"`:t+=`.${n}`;return t.startsWith(".")&&(t=t.substr(1)),t}function O(e){return(e||"").replace(/^(index\.)?docker.io\/(library\/)?/,"").replace(/:latest$/,"").replace(/^(.*@sha256:)([0-9a-f]{8})[0-9a-f]+$/i,"$1$2…")}function I(e){const t=/^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$/;return t.test(e)}function L(e){return Array.from({length:e},(()=>String.fromCharCode(97+26*Math.random()|0))).join("")}},34255:function(e,t,n){"use strict";n.d(t,{Fp:function(){return l},qx:function(){return s}});var r=n(23464),i=n.n(r);const a=[60,60,24],o=["sec","min","hour","day"];function s(e,t,n){const r=i()();t=t||r;const s=e.diff(t,"seconds");let l=Math.abs(s),c=1,u="?",d=0;while(l>=a[d]&&d<a.length)l/=a[d],c*=Math.floor(a[d]/10),d++;u=l<5?Math.floor(10*l)/10:Math.floor(l);const h={diff:s,absDiff:l,label:u,unitsKey:`unit.${o[d]}`,units:o[d],next:c};return n&&(h.string=`${h.label} ${n(h.unitsKey,{count:h.label})}`),h}function l(e,t){return Math.round(Math.abs(Date.parse(t)-Date.parse(e))/1e3)}},95799:function(e,t,n){"use strict";n.d(t,{$W:function(){return o},Mo:function(){return a},QN:function(){return r},ao:function(){return s},kq:function(){return i}});const r=["","K","M","G","T","P","E","Z","Y"],i=["","m","u","n","p","f","a","z","y"];function a(e,{increment:t=1e3,addSuffix:n=!0,addSuffixSpace:s=!0,suffix:l="",firstSuffix:c=null,startingExponent:u=0,minExponent:d=0,maxExponent:h=99,maxPrecision:p=2,canRoundToZero:f=!0}={}){let m=e,g=u;const v=h>=0;if(v)while(m>=t&&g+1<r.length&&g<h||g<d)m/=t,g++;else while(m<t&&g+1<i.length&&g<-1*h||g<-1*d)m*=t,g++;let b="";if(b=m<10&&p>=1?""+Math.round(m*10**p)/10**p:`${Math.round(m)}`,"0"===b&&!f&&0!==e){const r=o(e,t);return a(e,{increment:t,addSuffix:n,suffix:l,firstSuffix:c,startingExponent:u,minExponent:r,maxExponent:r,maxPrecision:p,canRoundToZero:!0})}return n&&(s&&(b+=" "),b+=0===g&&null!==c?`${c}`:`${v?r[g]:i[g]}${l}`||""),b}function o(e,t=1e3){let n=0;while(e>=t)e/=t,n++;return n}function s(e,t){t=t||{};let n=t.increment;const a=!1!==t.allowFractional;if(!e||"string"!==typeof e||!e.length)return NaN;e=e.replace(/,/g,"");let[,o,s,l]=e.match(/^([0-9.-]+)\s*([^0-9.-]?)([^0-9.-]?)/);const c=parseFloat(o);if(!s)return c;181===s.charCodeAt(0)&&(s="u");const u=i.includes(s),d=r.includes(s.toUpperCase());if(n||(n=(d||u)&&"i"===l?1024:1e3),u&&a){const e=i.indexOf(s);return c/n**e}if(d){const e=r.indexOf(s.toUpperCase());return c*n**e}return c}},70500:function(e,t,n){"use strict";n.d(t,{M:function(){return o},u:function(){return a}});var r=n(37021),i=n.n(r);function a(e="",t,n){try{o.validation(e)}catch(r){n.push(t["i18n/t"](o.message))}}const o={validation:e=>i().toString(e,{verbose:!0}),message:"validation.invalidCron"}},96047:function(e,t,n){"use strict";n.d(t,{HK:function(){return u},p6:function(){return g},iK:function(){return h},um:function(){return f},OH:function(){return m},cO:function(){return p},xR:function(){return d}});var r=n(3514),i=n.n(r),a=n(82438),o=n.n(a),s=n(76978),l=n(92043);function c(e,t,n,r,i=[]){r=r||{};const{invalidChars:a,forHostname:o=!1,errorKey:s=(o?"hostname":"label"),maxLength:l=63,minLength:c=1,validChars:u="A-Za-z0-9-"}=r;h(e,{validChars:u,invalidChars:a},t,n,i),"-"===e.slice(0,1)&&i.push(n["i18n/t"](`validation.dns.${s}.startHyphen`,{key:t})),"-"===e.slice(-1)&&i.push(n["i18n/t"](`validation.dns.${s}.endHyphen`,{key:t}));const d=c,p=l;return e.length<d?i.push(n["i18n/t"](`validation.dns.${s}.emptyLabel`,{key:t,min:d})):e.length>p&&i.push(n["i18n/t"](`validation.dns.${s}.tooLongLabel`,{key:t,max:p})),i}function u(e,t,n){const r=`model.${e}.${t}`,i=`${r}.label`;return n["i18n/exists"](`${r}.label`)?n["i18n/t"](i):n["i18n/exists"](r)?n["i18n/t"](r):t.match(/.Id$/)?(0,l._R)(t.replace(/Id$/,"")):(0,l._R)(t)}function d(e,t,n,r,a=[]){const{nullable:o,required:l,type:c="",minLength:u,maxLength:d,min:h,max:p}=t,f=e?(0,s.Jt)(e,"length"):0;if(!o&&l&&("object"===typeof e&&i()(e)||!e&&0!==e))return a.push(r["i18n/t"]("validation.required",{key:n})),a;if(null===e)return a;const m=0===c.indexOf("array[")?"arrayLength":"stringLength";let g=u,v=d;return g&&v?(f<g||f>v)&&(g===v?a.push(r["i18n/t"](`validation.${m}.exactly`,{key:n,count:g})):a.push(r["i18n/t"](`validation.${m}.between`,{key:n,min:g,max:v}))):g&&f<g?a.push(r["i18n/t"](`validation.${m}.min`,{key:n,count:g})):v&&f>v&&a.push(r["i18n/t"](`validation.${m}.max`,{key:n,count:v})),g=h,v=p,null!==e&&g&&v?(e<g||e>v)&&(g===v?a.push(r["i18n/t"]("validation.number.exactly",{key:n,val:v})):a.push(r["i18n/t"]("validation.number.between",{key:n,min:g,max:v}))):g&&e<g?a.push(r["i18n/t"]("validation.number.min",{key:n,val:g})):v&&e>v&&a.push(r["i18n/t"]("validation.number.max",{key:n,val:v})),a}function h(e,t,n,r,i=[]){const{validChars:a,invalidChars:s}=t,l=[];if(a&&l.push(`[^${t.validChars}]`),s&&l.push(`[${t.invalidChars}]`),l.length){const t=new RegExp(`(${l.join("|")})`,"g");let a=e.match(t);a&&(a=o()(a).map((e=>" "===e?"[space]":e)),i.push(r["i18n/t"]("validation.chars",{key:n,count:a.length,chars:a.join(" ")})))}return i}function p(e,t,n,r,i=[]){r=r||{};const{max:a=253,restricted:o=!1}=r;"."===e.slice(0,1)&&i.push(n["i18n/t"]("validation.dns.hostname.startDot",{key:t})),o&&e.length>1&&"."===e.slice(-1)&&i.push(n["i18n/t"]("validation.dns.hostname.endDot",{key:t})),0===e.length&&i.push(n["i18n/t"]("validation.dns.hostname.empty",{key:t})),e.length>a&&i.push(n["i18n/t"]("validation.dns.hostname.tooLong",{key:t,max:a}));const s=e.split(/\./);let l;for(let c=0;c<s.length;c++)l=s[c],0===c&&""===l||c===s.length-1&&""===l||f(l,t,n,{forHostname:!0},i);return i}function f(e,t,n,r,i=[]){r=r||{};const{forHostname:a=!1,errorKey:o=(a?"hostname":"label"),ianaServiceName:s=!1,restricted:l=!1}=r;return c(e,t,n,r,i),l&&e.slice(0,1).match(/[0-9]/)&&i.push(n["i18n/t"](`validation.dns.${o}.startNumber`,{key:t})),("--"===e.substr(2,2)&&"xn"!==e.substr(0,2)||s&&e.includes("--"))&&i.push(n["i18n/t"]("validation.dns.doubleHyphen",{key:t})),i}function m(e,t,n,r,i,a=[]){switch(t){case"dnsLabel":f(e,n,r,{restricted:!1},a);break;case"dnsLabelRestricted":f(e,n,r,{restricted:!0},a);break;case"hostname":p(e,n,r,{restricted:!1},a);break;default:break}return a}function g(e,t,n,r,i=[]){const{required:a}=t;!a||e||!1===e?"boolean"!==typeof e&&e&&i.push(r["i18n/t"]("validation.boolean",{key:n})):i.push(r["i18n/t"]("validation.required",{key:n}))}},68094:function(e,t,n){"use strict";n.d(t,{L6:function(){return a},M8:function(){return s},Q6:function(){return o},fB:function(){return l}});var r=n(24138),i=n.n(r);const a=e=>"server-url"===e,o=e=>e.toLowerCase().startsWith("https://"),s=e=>/^(?:https?:\/\/)?(?:localhost|127\.0\.0\.1)/i.test(e),l=e=>i()(e)&&e?.toLowerCase().endsWith("/")},83288:function(e,t,n){"use strict";n.d(t,{UD:function(){return l},V1:function(){return d},Xt:function(){return s}});var r=n(74302),i=n(2722),a=n.n(i);n(35664),n(91462),n(9262);function o(e){e=`${e}`,"v"===e.substr(0,1).toLowerCase()&&(e=e.substr(1));const t=e.split(/[.+-]/);return t}function s(e){return o(e).map((e=>(0,r.RY)(e))).join(".")}function l(e,t){if(!e)return 1;if(!t)return-1;const n=o(e),r=o(t),i=Math.min(n.length,r.length);for(let a=0;a<i;a++){const e=u(n[a],r[a]);if(0!==e)return e}return n.length-r.length}function c(e){return`${e}`.match(/^([0-9]+\.)?[0-9]*$/)}function u(e,t){if(e=`${e}`.toLowerCase(),t=`${t}`.toLowerCase(),c(e)&&c(t)){const n=parseInt(e,10),r=parseInt(t,10);if(!isNaN(n)&&!isNaN(r))return n-r}return e.localeCompare(t)}function d(e=""){return a().valid(e)||(e=a().clean(e,{loose:!0})),!!a().prerelease(e)}},66242:function(e,t,n){"use strict";n.d(t,{d:function(){return r}});const r={CONSOLE_URL:"/host/#remote-console",RANCHER_INTEGRATION_URL:"/rancher/rancher-integration",STORAGE_NETWORK_EXAMPLE:"/advanced/storagenetwork#configuration-example",KSMTUNED_MODE:"/host/#ksmtuned-mode",UPGRADE_URL:"/upgrade/index"}},62261:function(e,t,n){"use strict";n.r(t),n.d(t,{IP_POOL_HEADERS:function(){return h},PRODUCT_NAME:function(){return d},init:function(){return p}});var r=n(35664),i=n(32766),a=n(68774),o=n(86565),s=n(1371);const l=i.rk.VM_VERSION,c="Monitoring & Logging::Monitoring",u="Monitoring & Logging::Logging",d="harvester",h=[a.c4,a.o_,{name:"subnet",labelKey:"harvester.ipPool.subnet.label",value:"subnetDisplay"},{name:"availableIP",labelKey:"harvester.ipPool.availableIP.label",value:"status.available"},a.K];function p(e,t){const{product:p,basicType:f,headers:m,configureType:g,virtualType:v,weightGroup:b,weightType:y}=e.DSL(t,d),w={NODE_ENV:"production",BASE_URL:"/"}.rancherEnv===d;if(w){const e={name:`${d}-c-cluster-resource`,params:{product:d,resource:i.rk.DASHBOARD}};t.dispatch("setIsSingleProduct",{productName:d,logo:n(53938),productNameKey:"harvester.productLabel",getVersionInfo:e=>e.getters[`${d}/byId`]?.(i.rk.SETTING,"server-version")?.value||"unknown",afterLoginRoute:e,logoRoute:e,supportCustomLogo:!0})}p({inStore:"harvester",removable:!1,showNamespaceFilter:!0,hideKubeShell:!0,hideKubeConfig:!0,showClusterSwitcher:!0,hideCopyConfig:!0,hideSystemResources:!0,customNamespaceFilter:!0,typeStoreMap:{[r.Mc.PROJECT]:"management",[r.Mc.CLUSTER_ROLE_TEMPLATE_BINDING]:"management",[r.Mc.PROJECT_ROLE_TEMPLATE_BINDING]:"management"},supportRoute:{name:`${d}-c-cluster-support`},to:{name:`${d}-c-cluster-resource`,params:{product:d,resource:i.rk.DASHBOARD}},hideNamespaceLocation:!0}),f([i.rk.DASHBOARD]),v({labelKey:"harvester.dashboard.label",group:"Root",name:i.rk.DASHBOARD,weight:500,route:{name:`${d}-c-cluster-resource`,params:{product:d,resource:i.rk.DASHBOARD}}}),g(i.rk.DASHBOARD,{showListMasthead:!1}),g(i.rk.HOST,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.HOST}},resource:r.NW,resourceDetail:i.rk.HOST,resourceEdit:i.rk.HOST,canYaml:!1}),g(i.rk.HOST,{isCreatable:!1,isEditable:!0}),f([i.rk.HOST]),v({ifHaveType:r.NW,labelKey:"harvester.host.label",group:"Root",name:i.rk.HOST,namespaced:!0,weight:399,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.HOST}},exact:!1}),f(["cluster-members"],"rbac"),v({ifHave:o.f7.MULTI_CLUSTER,labelKey:"members.clusterMembers",group:"root",namespaced:!1,name:r.cG.CLUSTER_MEMBERS,weight:100,route:{name:`${d}-c-cluster-members`},exact:!0,ifHaveType:{type:r.Mc.CLUSTER_ROLE_TEMPLATE_BINDING,store:"management"}}),f([i.rk.VM]),g(i.rk.VM,{canYaml:!1}),v({labelKey:"harvester.virtualMachine.label",group:"root",name:i.rk.VM,namespaced:!0,weight:299,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.VM}},exact:!1}),f([i.rk.VOLUME]),g(i.rk.VOLUME,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.VOLUME}},resource:r.YH,resourceDetail:i.rk.VOLUME,resourceEdit:i.rk.VOLUME,canYaml:!1}),v({labelKey:"harvester.volume.label",group:"root",ifHaveType:r.YH,name:i.rk.VOLUME,namespaced:!0,weight:199,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.VOLUME}},exact:!1}),f([i.rk.IMAGE]),m(i.rk.IMAGE,[a.c4,a.o_,a.CU,s.r,s.IL,s.tI,s.WR,a.K]),g(i.rk.IMAGE,{canYaml:!1}),v({labelKey:"harvester.image.label",group:"root",name:i.rk.IMAGE,namespaced:!0,weight:198,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.IMAGE}},exact:!1}),f(["projects-namespaces"]),v({ifHave:o.f7.MULTI_CLUSTER,labelKey:"harvester.projectNamespace.label",group:"root",namespaced:!0,name:"projects-namespaces",weight:98,route:{name:`${d}-c-cluster-projectsnamespaces`},exact:!0}),w&&(m(r.CU,[a.c4,a.ZU,a.K]),f([r.CU]),v({labelKey:"harvester.namespace.label",name:r.CU,namespaced:!0,weight:89,route:{name:`${d}-c-cluster-resource`,params:{resource:r.CU}},exact:!1})),f([i.rk.ALERTMANAGERCONFIG],c),f([i.rk.CLUSTER_FLOW,i.rk.CLUSTER_OUTPUT,i.rk.FLOW,i.rk.OUTPUT],u),b("Monitoring",2,!0),b("Logging",1,!0),m(i.rk.ALERTMANAGERCONFIG,[a.c4,a.o_,a.CU,{name:"receivers",labelKey:"tableHeaders.receivers",formatter:"ReceiverIcons",value:"name"}]),g(i.rk.ALERTMANAGERCONFIG,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.ALERTMANAGERCONFIG}},resource:r.Rp.ALERTMANAGERCONFIG,resourceDetail:i.rk.ALERTMANAGERCONFIG,resourceEdit:i.rk.ALERTMANAGERCONFIG,canYaml:!1}),v({ifHaveType:r.Rp.ALERTMANAGERCONFIG,labelKey:"harvester.monitoring.alertmanagerConfig.label",name:i.rk.ALERTMANAGERCONFIG,namespaced:!0,weight:87,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.ALERTMANAGERCONFIG}},exact:!1}),g(i.rk.CLUSTER_FLOW,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.CLUSTER_FLOW}},resource:r.cm.CLUSTER_FLOW,resourceDetail:i.rk.CLUSTER_FLOW,resourceEdit:i.rk.CLUSTER_FLOW,canYaml:!1}),v({labelKey:"harvester.logging.clusterFlow.label",name:i.rk.CLUSTER_FLOW,namespaced:!0,weight:79,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.CLUSTER_FLOW}},exact:!1}),g(i.rk.CLUSTER_OUTPUT,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.CLUSTER_OUTPUT}},resource:r.cm.CLUSTER_OUTPUT,resourceDetail:i.rk.CLUSTER_OUTPUT,resourceEdit:i.rk.CLUSTER_OUTPUT,canYaml:!1}),v({labelKey:"harvester.logging.clusterOutput.label",name:i.rk.CLUSTER_OUTPUT,namespaced:!0,weight:78,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.CLUSTER_OUTPUT}},exact:!1}),g(i.rk.FLOW,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.FLOW}},resource:r.cm.FLOW,resourceDetail:i.rk.FLOW,resourceEdit:i.rk.FLOW,canYaml:!1}),v({labelKey:"harvester.logging.flow.label",name:i.rk.FLOW,namespaced:!0,weight:77,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.FLOW}},exact:!1}),g(i.rk.OUTPUT,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.OUTPUT}},resource:r.cm.OUTPUT,resourceDetail:i.rk.OUTPUT,resourceEdit:i.rk.OUTPUT,canYaml:!1}),v({labelKey:"harvester.logging.output.label",name:i.rk.OUTPUT,namespaced:!0,weight:76,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.OUTPUT}},exact:!1}),m(i.rk.FLOW,[a.c4,a.o_,a.CU,a.aQ,a.hX,a.Yf,a.K]),m(i.rk.OUTPUT,[a.c4,a.o_,a.CU,a.P4,a.K]),m(i.rk.CLUSTER_FLOW,[a.c4,a.o_,a.CU,a.hX,a.Yf,a.K]),m(i.rk.CLUSTER_OUTPUT,[a.c4,a.o_,a.CU,a.P4,a.K]),f([i.rk.CLUSTER_NETWORK,i.rk.NETWORK_ATTACHMENT,i.rk.LB,i.rk.IP_POOL],"networks"),f([i.rk.SCHEDULE_VM_BACKUP,i.rk.BACKUP,i.rk.SNAPSHOT,i.rk.VM_SNAPSHOT],"backupAndSnapshot"),b("networks",300,!0),y(r.CU,299,!0),b("backupAndSnapshot",289,!0),f([l,i.rk.SSH,i.rk.CLOUD_TEMPLATE,i.rk.STORAGE,i.rk.SR_IOV,i.rk.PCI_DEVICE,i.rk.SR_IOVGPU_DEVICE,i.rk.VGPU_DEVICE,i.rk.USB_DEVICE,i.rk.ADD_ONS,i.rk.SECRET,i.rk.SETTING],"advanced"),g(i.rk.CLUSTER_NETWORK,{realResource:i.rk.SETTING,showState:!1}),v({labelKey:"harvester.vmTemplate.label",group:"root",name:l,namespaced:!0,weight:289,route:{name:`${d}-c-cluster-resource`,params:{resource:l}},exact:!1}),g(l,{canYaml:!1}),g(i.rk.SCHEDULE_VM_BACKUP,{showListMasthead:!1,showConfigView:!1,canYaml:!1}),v({labelKey:"harvester.schedule.label",name:i.rk.SCHEDULE_VM_BACKUP,namespaced:!0,weight:201,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.SCHEDULE_VM_BACKUP}},exact:!1,ifHaveType:i.rk.SCHEDULE_VM_BACKUP}),g(i.rk.BACKUP,{showListMasthead:!1,showConfigView:!1,canYaml:!1}),v({labelKey:"harvester.backup.label",name:i.rk.BACKUP,namespaced:!0,weight:200,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.BACKUP}},exact:!1}),g(i.rk.VLAN_CONFIG,{hiddenNamespaceGroupButton:!0,canYaml:!1}),g(i.rk.CLUSTER_NETWORK,{showListMasthead:!1,canYaml:!1}),v({labelKey:"harvester.clusterNetwork.title",name:i.rk.CLUSTER_NETWORK,ifHaveType:i.rk.CLUSTER_NETWORK,namespaced:!1,weight:189,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.CLUSTER_NETWORK}},exact:!1}),g(i.rk.NETWORK_ATTACHMENT,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.NETWORK_ATTACHMENT}},resource:r.XG,resourceDetail:i.rk.NETWORK_ATTACHMENT,resourceEdit:i.rk.NETWORK_ATTACHMENT}),v({labelKey:"harvester.network.label",name:i.rk.NETWORK_ATTACHMENT,namespaced:!0,weight:188,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.NETWORK_ATTACHMENT}},exact:!1}),g(i.rk.SNAPSHOT,{isCreatable:!1,location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.SNAPSHOT}},resource:i.qY,resourceDetail:i.rk.SNAPSHOT,resourceEdit:i.rk.SNAPSHOT,canYaml:!1}),m(i.rk.SNAPSHOT,[a.c4,a.o_,a.CU,s.mt,a.K]),v({labelKey:"harvester.snapshot.label",name:i.rk.SNAPSHOT,namespaced:!0,weight:190,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.SNAPSHOT}},exact:!1}),g(i.rk.VM_SNAPSHOT,{showListMasthead:!1,location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.VM_SNAPSHOT}},resource:i.rk.BACKUP,resourceDetail:i.rk.VM_SNAPSHOT,resourceEdit:i.rk.VM_SNAPSHOT,canYaml:!1}),v({labelKey:"harvester.vmSnapshot.label",name:i.rk.VM_SNAPSHOT,namespaced:!0,weight:191,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.VM_SNAPSHOT}},exact:!1}),m(i.rk.SSH,[a.c4,a.o_,a.CU,s.lj,a.K]),v({labelKey:"harvester.sshKey.label",name:i.rk.SSH,namespaced:!0,weight:170,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.SSH}},exact:!1}),g(i.rk.CLOUD_TEMPLATE,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.CLOUD_TEMPLATE}},resource:r.K5,resourceDetail:i.rk.CLOUD_TEMPLATE,resourceEdit:i.rk.CLOUD_TEMPLATE,canYaml:!1}),v({labelKey:"harvester.cloudTemplate.label",name:i.rk.CLOUD_TEMPLATE,namespaced:!0,weight:87,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.CLOUD_TEMPLATE}},exact:!1}),m(i.rk.SECRET,[a.c4,a.o_,a.CU,a.UA,{name:"data",labelKey:"tableHeaders.data",value:"dataPreview",formatter:"SecretData"},a.K]),g(i.rk.SECRET,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.SECRET}},resource:r.bB,resourceDetail:i.rk.SECRET,resourceEdit:i.rk.SECRET,canYaml:!1,notFilterNamespace:["cattle-monitoring-system","cattle-logging-system"]}),v({labelKey:"harvester.secret.label",name:i.rk.SECRET,namespaced:!0,weight:-999,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.SECRET}},exact:!1}),g(i.rk.SETTING,{isCreatable:!1}),v({ifHaveType:i.rk.SETTING,ifHaveVerb:"POST",labelKey:"harvester.setting.label",name:i.rk.SETTING,namespaced:!0,weight:-1e3,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.SETTING}},exact:!1}),g(i.rk.STORAGE,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.STORAGE}},resource:r.fJ,resourceDetail:i.rk.STORAGE,resourceEdit:i.rk.STORAGE,isCreatable:!0,canYaml:!1}),v({labelKey:"harvester.storage.title",group:"root",ifHaveType:r.fJ,name:i.rk.STORAGE,namespaced:!1,weight:79,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.STORAGE}},exact:!1}),v({label:"PCI Devices",group:"advanced",weight:14,name:i.rk.PCI_DEVICE,namespaced:!1,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.PCI_DEVICE}},exact:!1}),g(i.rk.PCI_DEVICE,{isCreatable:!1,hiddenNamespaceGroupButton:!0,canYaml:!0,listGroups:[{icon:"icon-list-grouped",value:"description",field:"groupByDevice",hideColumn:"description",tooltipKey:"resourceTable.groupBy.device"},{icon:"icon-cluster",value:"node",field:"groupByNode",hideColumn:"node",tooltipKey:"resourceTable.groupBy.node"}]}),v({ifHaveType:i.rk.SR_IOV,labelKey:"harvester.sriov.label",group:"advanced",weight:15,name:i.rk.SR_IOV,namespaced:!1,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.SR_IOV}},exact:!1}),g(i.rk.SR_IOV,{isCreatable:!1,hiddenNamespaceGroupButton:!0,canYaml:!1}),v({ifHaveType:i.rk.SR_IOVGPU_DEVICE,labelKey:"harvester.sriovgpu.label",group:"advanced",weight:13,name:i.rk.SR_IOVGPU_DEVICE,namespaced:!1,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.SR_IOVGPU_DEVICE}},exact:!1}),g(i.rk.SR_IOVGPU_DEVICE,{isCreatable:!1,hiddenNamespaceGroupButton:!0,canYaml:!1}),v({labelKey:"harvester.vgpu.label",group:"advanced",weight:12,name:i.rk.VGPU_DEVICE,namespaced:!1,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.VGPU_DEVICE}},exact:!1}),g(i.rk.VGPU_DEVICE,{isCreatable:!1,hiddenNamespaceGroupButton:!0,canYaml:!1,listGroups:[{icon:"icon-cluster",value:"node",field:"groupByNode",hideColumn:"node",tooltipKey:"resourceTable.groupBy.node"}]}),v({labelKey:"harvester.usb.label",group:"advanced",weight:11,name:i.rk.USB_DEVICE,namespaced:!1,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.USB_DEVICE}},exact:!1,ifHaveType:i.rk.USB_DEVICE}),g(i.rk.USB_DEVICE,{isCreatable:!1,hiddenNamespaceGroupButton:!0,canYaml:!1,listGroups:[{icon:"icon-list-grouped",value:"description",field:"groupByDevice",hideColumn:"description",tooltipKey:"resourceTable.groupBy.device"},{icon:"icon-cluster",value:"node",field:"groupByNode",hideColumn:"node",tooltipKey:"resourceTable.groupBy.node"}]}),g(i.rk.ADD_ONS,{isCreatable:!1,isRemovable:!1,showState:!1,canYaml:!1}),v({label:"Add-ons",group:"advanced",name:i.rk.ADD_ONS,ifHaveType:i.rk.ADD_ONS,weight:-900,namespaced:!1,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.ADD_ONS}},exact:!1}),g(i.rk.LB,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.LB}},canYaml:!1}),v({labelKey:"harvester.loadBalancer.label",name:i.rk.LB,namespaced:!0,weight:185,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.LB}},exact:!1,ifHaveType:i.rk.LB}),m(i.rk.LB,[a.c4,a.o_,{...a.BD,formatter:"HarvesterListener"},{name:"workloadType",labelKey:"harvester.loadBalancer.workloadType.label",value:"workloadTypeDisplay"},{name:"ipam",labelKey:"harvester.loadBalancer.ipam.label",value:"ipamDisplay"},a.K]),g(i.rk.IP_POOL,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.IP_POOL}},canYaml:!1}),v({labelKey:"harvester.ipPool.label",name:i.rk.IP_POOL,namespaced:!1,weight:184,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.IP_POOL}},exact:!1,ifHaveType:i.rk.IP_POOL}),m(i.rk.IP_POOL,h)}},66905:function(e,t,n){"use strict";n.d(t,{$E:function(){return c},$z:function(){return r},Et:function(){return h},Jo:function(){return d},UQ:function(){return u},_w:function(){return a},cI:function(){return o},hg:function(){return l},vo:function(){return s},xO:function(){return i}});const r=[{label:"VirtIO",value:"virtio"},{label:"SATA",value:"sata"},{label:"SCSI",value:"scsi"}],i={NEW:"New",IMAGE:"Virtual Machine Image",ATTACH_VOLUME:"Existing Volume",CONTAINER:"Container"},a=[{label:"disk",value:"disk"},{label:"cd-rom",value:"cd-rom"}],o={RESET_PWD:"userPassword",INJECT_SSH:"sshPublicKey"},s=["Always","RerunOnFailure","Manual","Halted"],l=["Migrate","ShutdownAndRestartAfterEnable","ShutdownAndRestartAfterDisable","Shutdown"],c={VolumeSnapshot:"VolumeSnapshot",PersistentVolumeClaim:"Volume"},u={LOGGING:"Logging",AUDIT:"Audit",EVENT:"Event"},d={HARVESTER_SEEDER:"harvester-seeder",PCI_DEVICE_CONTROLLER:"pcidevices-controller",NVIDIA_DRIVER_TOOLKIT_CONTROLLER:"nvidia-driver-toolkit",RANCHER_LOGGING:"rancher-logging",RANCHER_MONITORING:"rancher-monitoring",VM_IMPORT_CONTROLLER:"vm-import-controller",LVM_DRIVER:"lvm.driver.harvesterhci.io"},h={CSI_PROVISIONER_SECRET_NAME:"csi.storage.k8s.io/provisioner-secret-name",CSI_PROVISIONER_SECRET_NAMESPACE:"csi.storage.k8s.io/provisioner-secret-namespace",CSI_NODE_PUBLISH_SECRET_NAME:"csi.storage.k8s.io/node-publish-secret-name",CSI_NODE_PUBLISH_SECRET_NAMESPACE:"csi.storage.k8s.io/node-publish-secret-namespace",CSI_NODE_STAGE_SECRET_NAME:"csi.storage.k8s.io/node-stage-secret-name",CSI_NODE_STAGE_SECRET_NAMESPACE:"csi.storage.k8s.io/node-stage-secret-namespace"}},2602:function(e,t,n){"use strict";n.d(t,{l:function(){return a},r:function(){return o}});const r=/cattle\.io\//,i=/harvesterhci\.io\/maintain-mode-strategy/,a=[r,i],o={CLOUD_INIT:"harvesterhci.io/cloud-init-template",CURRENT_IP:"rke2.io/internal-ip",IMAGE_ID:"harvesterhci.io/imageId",SSH_NAMES:"harvesterhci.io/sshNames",NETWORK_IPS:"network.harvesterhci.io/ips",TEMPLATE_VERSION_CUSTOM_NAME:"template-version.harvesterhci.io/customName",CREATOR:"harvesterhci.io/creator",OS:"harvesterhci.io/os",GOLDEN_IMAGE:"harvesterhci.io/goldenImage",NETWORK_TYPE:"network.harvesterhci.io/type",VM_NAME:"harvesterhci.io/vmName",VM_NAME_PREFIX:"harvesterhci.io/vmNamePrefix",VM_RESERVED_MEMORY:"harvesterhci.io/reservedMemory",MAINTENANCE_STATUS:"harvesterhci.io/maintain-status",HOST_CUSTOM_NAME:"harvesterhci.io/host-custom-name",HOST_CONSOLE_URL:"harvesterhci.io/host-console-url",RESTORE_NAME:"restore.harvesterhci.io/name",NODE_ROLE_MASTER:"node-role.kubernetes.io/master",NODE_ROLE_CONTROL_PLANE:"node-role.kubernetes.io/control-plane",NODE_ROLE_ETCD:"node-role.harvesterhci.io/witness",PROMOTE_STATUS:"harvesterhci.io/promote-status",MIGRATION_STATE:"harvesterhci.io/migrationState",VOLUME_CLAIM_TEMPLATE:"harvesterhci.io/volumeClaimTemplates",IMAGE_NAME:"harvesterhci.io/image-name",INIT_IP:"etcd.rke2.cattle.io/node-address",NODE_SCHEDULABLE:"kubevirt.io/schedulable",NETWORK_ROUTE:"network.harvesterhci.io/route",MATCHED_NODES:"network.harvesterhci.io/matched-nodes",OS_UPGRADE_IMAGE:"harvesterhci.io/os-upgrade-image",LATEST_UPGRADE:"harvesterhci.io/latestUpgrade",UPGRADE_STATE:"harvesterhci.io/upgradeState",REAY_MESSAGE:"harvesterhci.io/read-message",DYNAMIC_SSHKEYS_NAMES:"harvesterhci.io/dynamic-ssh-key-names",DYNAMIC_SSHKEYS_USERS:"harvesterhci.io/dynamic-ssh-key-users",IMAGE_SUFFIX:"harvesterhci.io/image-type",OS_TYPE:"harvesterhci.io/os-type",STORAGE_PROVISIONER:"harvesterhci.io/storageProvisioner",SKIP_SINGLE_REPLICA_DETACHED_VOL:"harvesterhci.io/skipSingleReplicaDetachedVol",HOST_REQUEST:"management.cattle.io/pod-requests",STORAGE_CLASS:"harvesterhci.io/storageClassName",STORAGE_NETWORK:"storage-network.settings.harvesterhci.io",ADDON_EXPERIMENTAL:"addon.harvesterhci.io/experimental",VOLUME_ERROR:"longhorn.io/volume-scheduling-error",VOLUME_FOR_VM:"harvesterhci.io/volumeForVirtualMachine",KVM_AMD_CPU:"cpu-feature.node.kubevirt.io/svm",KVM_INTEL_CPU:"cpu-feature.node.kubevirt.io/vmx",NODE_MANUFACTURER:"manufacturer",NODE_MODEL:"model",NODE_SERIAL_NUMBER:"serialNumber",VM_INSUFFICIENT:"harvesterhci.io/insufficient-resource-quota",NODE_NTP_SYNC_STATUS:"node.harvesterhci.io/ntp-service",PARENT_SRIOV:"harvesterhci.io/parent-sriov-network-device",PARENT_SRIOV_GPU:"harvesterhci.io/parentSRIOVGPUDevice",VM_MAINTENANCE_MODE_STRATEGY:"harvesterhci.io/maintain-mode-strategy",NODE_CPU_MANAGER_UPDATE_STATUS:"harvesterhci.io/cpu-manager-update-status",CPU_MANAGER:"cpumanager",VM_DEVICE_ALLOCATION_DETAILS:"harvesterhci.io/deviceAllocationDetails",SVM_BACKUP_ID:"harvesterhci.io/svmbackupId",DISABLE_LONGHORN_V2_ENGINE:"node.longhorn.io/disable-v2-data-engine",K8S_ARCH:"kubernetes.io/arch"}},1371:function(e,t,n){"use strict";n.d(t,{IL:function(){return a},KG:function(){return c},WR:function(){return i},iu:function(){return u},lA:function(){return d},lj:function(){return o},mt:function(){return s},r:function(){return h},tC:function(){return l},tI:function(){return r}});const r={name:"downloadedBytes",labelKey:"tableHeaders.size",value:"downSize",sort:"status.size"},i={name:"virtualSize",labelKey:"harvester.tableHeaders.virtualSize",value:"virtualSize",sort:"status.virtualSize"},a={name:"Uploaded",labelKey:"tableHeaders.progress",value:"status.progress",sort:"status.progress",formatter:"ImagePercentageBar"},o={name:"Fingerprint",labelKey:"tableHeaders.fingerprint",value:"status.fingerPrint"},s={name:"TargetVolume",labelKey:"harvester.tableHeaders.snapshotTargetVolume",value:"spec.source.persistentVolumeClaimName",sort:"spec.source.persistentVolumeClaimName",formatter:"SnapshotTargetVolume"},l={name:"CronExpression",labelKey:"harvester.tableHeaders.cronExpression",value:"spec.cron",align:"center",sort:"spec.cron",formatter:"HarvesterCronExpression"},c={name:"Retain",labelKey:"harvester.tableHeaders.retain",value:"spec.retain",sort:"spec.retain",align:"center"},u={name:"MaxFailure",labelKey:"harvester.tableHeaders.maxFailure",value:"spec.maxFailure",sort:"spec.maxFailure",align:"center"},d={name:"Type",labelKey:"harvester.tableHeaders.scheduleType",value:"spec.vmbackup.type",sort:"spec.vmbackup.type",align:"center"},h={name:"imageStorageClass",labelKey:"harvester.tableHeaders.storageClass",sort:"imageStorageClass",value:"imageStorageClass",align:"left",width:200}},41837:function(e,t,n){"use strict";n.d(t,{AW:function(){return i},aS:function(){return r},vU:function(){return a}});const r={BACKUP:"backup",SNAPSHOT:"snapshot"},i={L2VLAN:"L2VlanNetwork",UNTAGGED:"UntaggedNetwork"},a={BLOCK:"Block",FILE_SYSTEM:"Filesystem"}},83727:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(35664),i=n(89865);class a extends i.A{get clusterroletemplatebinding(){return this.$rootGetters["management/byId"](r.Mc.CLUSTER_ROLE_TEMPLATE_BINDING,this.id?.replace(":","/"))}get principalId(){return this.userPrincipalId||this.groupPrincipalId}get roleDisplay(){return this.roleTemplate.nameDisplay}get roleDescription(){return this.roleTemplate.description}get roleTemplate(){return this.$rootGetters["management/byId"](r.Mc.ROLE_TEMPLATE,this.roleTemplateId)}}},66529:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(25184),i=n(92043),a=n(32766);const o={enabled:{displayKey:"generic.enabled",color:"bg-success"},pending:{displayKey:"generic.inProgress",color:"bg-info"},disabled:{displayKey:"generic.disabled",color:"bg-warning"},error:{displayKey:"generic.disabled",color:"bg-warning"}};class s extends r.A{get _availableActions(){const e=super._availableActions;return e.push({action:"enablePassthroughBulk",enabled:!this.isEnabling,icon:"icon icon-fw icon-dot",label:"Enable Passthrough",bulkable:!0,bulkAction:"enablePassthroughBulk",weight:1},{action:"disablePassthrough",enabled:this.isEnabling&&this.claimedByMe,icon:"icon icon-fw icon-dot-open",label:"Disable Passthrough",bulkable:!0,weight:0}),e}get canYaml(){return!1}get canDelete(){return!1}goToDetail(){return!1}goToEdit(){return!1}get passthroughClaim(){const e=this.$getters["all"](a.rk.PCI_CLAIM)||[];return!!this.status&&e.find((e=>e?.spec?.nodeName===this.status?.nodeName&&e?.spec?.address===this.status?.address))}get uniqueId(){return`${this.status?.vendorId}:${this.status?.deviceId}`}get claimedBy(){return this.passthroughClaim?.spec?.userName}get claimedByMe(){if(!this.passthroughClaim)return!1;const e=this.$rootGetters["isSingleProduct"];let t="admin";if(!e){const e=this.$rootGetters["auth/v3User"];t=e?.username||e?.id}return this.claimedBy===t}get isEnabled(){return!!this.passthroughClaim?.status?.passthroughEnabled}get isEnabling(){return!!this.passthroughClaim}get claimStatusDisplay(){return this.passthroughClaim?this.isEnabled?o.enabled:o.pending:o.disabled}get stateDisplay(){const e=this.$rootGetters["i18n/t"];return e(this.claimStatusDisplay.displayKey)}get stateBackground(){return this.claimStatusDisplay.color}enablePassthroughBulk(e=this){this.$dispatch("promptModal",{resources:e,component:"EnablePciPassthrough"})}async disablePassthrough(){try{if(!this.claimedByMe)throw new Error(this.$rootGetters["i18n/t"]("harvester.pci.cantUnclaim",{name:(0,i.ZD)(this.metadata.name)}));await this.passthroughClaim.remove()}catch(e){this.$dispatch("growl/fromError",{title:this.$rootGetters["i18n/t"]("harvester.pci.unclaimError",{name:(0,i.ZD)(this.metadata.name)}),err:e},{root:!0})}}get groupByNode(){const e=this.status?.nodeName||this.$rootGetters["i18n/t"]("generic.none");return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.node",{name:(0,i.ZD)(e)})}get groupByDevice(){return this.status?.description}}},66325:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(25184);class i extends r.A{cleanForSave(e,t){return e}}},13520:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(25184),i=n(92043),a=n(73883),o=n(35664),s=n(2602),l=n(32766);class c extends r.A{get _availableActions(){const e=super._availableActions;return e.push({action:"enableDevice",enabled:!this.isEnabled,icon:"icon icon-fw icon-dot",label:"Enable"},{action:"disableDevice",enabled:this.isEnabled,icon:"icon icon-fw icon-dot-open",label:"Disable"}),e}get canYaml(){return!1}get canDelete(){return!1}goToDetail(){return!1}goToEdit(){return!1}get actualState(){return this.isEnabled?"Enabled":"Disabled"}get stateDisplay(){return this.actualState}get stateColor(){const e=this.actualState;return(0,a.uU)(e)}get isEnabled(){return this.spec.enabled&&this.status?.vfAddresses?.length>0&&this.status?.vGPUDevices?.length>0}async enableDevice(){try{this.spec.enabled=!0,await this.save()}catch(e){this.$dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,i.ZD)(this.metadata.name)}),err:e},{root:!0})}}async disableDevice(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/schemaFor`](l.rk.VGPU_DEVICE);if(t){const t=this.$rootGetters[`${e}/all`](l.rk.VGPU_DEVICE)||[],n=t.filter((e=>e.labels[s.r.PARENT_SRIOV_GPU]===this.id&&e.spec?.enabled)).map((e=>e.id));if(n.length>0)return void this.$dispatch("growl/error",{title:this.t("generic.notification.title.error",{name:(0,i.ZD)(this.metadata.name)}),message:`\n Cannot disable ${this.metadata.name}, following vGPU devices are enabled:\n [${n.join(", ")}]\n `},{root:!0})}try{this.spec.enabled=!1,await this.save()}catch(n){this.$dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,i.ZD)(this.metadata.name)}),err:n},{root:!0})}}get realNodeName(){const e=this.$rootGetters["currentProduct"].inStore,t=this.spec?.nodeName,n=this.$rootGetters[`${e}/all`](o.NW),r=n.find((e=>e.id===t));return r?.nameDisplay||""}get numVFs(){return this.status?.vfAddresses?.length||0}get childDevice(){return l.rk.VGPU_DEVICE}}},75128:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(25184),i=n(92043),a=n(73883),o=n(35664),s=n(32766);class l extends r.A{get _availableActions(){const e=super._availableActions;return e.push({action:"enableDevice",enabled:!this.isEnabled,icon:"icon icon-fw icon-dot",label:"Enable"},{action:"disableDevice",enabled:this.isEnabled,icon:"icon icon-fw icon-dot-open",label:"Disable"}),e}get canYaml(){return!1}get canDelete(){return!1}goToDetail(){return!1}goToEdit(){return!1}get actualState(){return this.isEnabled?"Enabled":"Disabled"}get stateDisplay(){return this.actualState}get stateColor(){const e=this.actualState;return(0,a.uU)(e)}get isEnabled(){return"sriovNetworkDeviceEnabled"===this.status?.status&&this.spec?.numVFs>0}enableDevice(e=this){this.$dispatch("promptModal",{resources:e,component:"EnableSriovDevice"})}async disableDevice(){const e=this.spec.numVFs;try{this.spec.numVFs=0,await this.save()}catch(t){this.spec.numVFs=e,this.$dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,i.ZD)(this.metadata.name)}),err:t},{root:!0})}}get realNodeName(){const e=this.$rootGetters["currentProduct"].inStore,t=this.spec?.nodeName,n=this.$rootGetters[`${e}/all`](o.NW),r=n.find((e=>e.id===t));return r?.nameDisplay||""}get numVFs(){return this.spec?.numVFs}get childDevice(){return s.rk.PCI_DEVICE}}},95311:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(25184),i=n(92043),a=n(32766);const o={enabled:{displayKey:"generic.enabled",color:"bg-success"},pending:{displayKey:"generic.inProgress",color:"bg-info"},disabled:{displayKey:"generic.disabled",color:"bg-warning"},error:{displayKey:"generic.disabled",color:"bg-warning"}};class s extends r.A{get _availableActions(){const e=super._availableActions;return e.push({action:"enablePassthroughBulk",enabled:!this.passthroughClaim&&!this.status.enabled,icon:"icon icon-fw icon-dot",label:"Enable Passthrough",bulkable:!0,bulkAction:"enablePassthroughBulk",weight:1},{action:"disablePassthrough",enabled:this.status.enabled,icon:"icon icon-fw icon-dot-open",label:"Disable Passthrough",bulkable:!0,weight:0}),e}get canYaml(){return!1}get canDelete(){return!1}goToDetail(){return!1}goToEdit(){return!1}get passthroughClaim(){const e=this.$getters["all"](a.rk.USB_CLAIM)||[];return!!this.status&&e.find((e=>e?.status?.nodeName===this.status?.nodeName&&e?.metadata?.name===this.metadata?.name))}get uniqueId(){return`${this.status?.vendorId}:${this.status?.deviceId}`}get claimedBy(){return this.passthroughClaim?.spec?.userName}get claimedByMe(){if(!this.passthroughClaim)return!1;const e=this.$rootGetters["isSingleProduct"];let t="admin";if(!e){const e=this.$rootGetters["auth/v3User"];t=e?.username||e?.id}return this.claimedBy===t}get claimStatusDisplay(){return this.passthroughClaim?this.status.enabled?o.enabled:o.pending:o.disabled}get stateDisplay(){const e=this.$rootGetters["i18n/t"];return e(this.claimStatusDisplay.displayKey)}get stateBackground(){return this.claimStatusDisplay.color}enablePassthroughBulk(e=this){this.$dispatch("promptModal",{resources:e,component:"EnableUSBPassthrough"})}async disablePassthrough(){try{if(!this.claimedByMe)throw new Error(this.$rootGetters["i18n/t"]("harvester.usb.cantUnclaim",{name:(0,i.ZD)(this.metadata.name)}));await this.passthroughClaim.remove()}catch(e){this.$dispatch("growl/fromError",{title:this.$rootGetters["i18n/t"]("harvester.usb.unclaimError",{name:(0,i.ZD)(this.metadata.name)}),err:e},{root:!0})}}get groupByNode(){const e=this.status?.nodeName||this.$rootGetters["i18n/t"]("generic.none");return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.node",{name:(0,i.ZD)(e)})}get groupByDevice(){return this.status?.description}}},17467:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(25184);class i extends r.A{cleanForSave(e,t){return e}}},46505:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(25184),i=n(92043);const a={enabled:{displayKey:"generic.enabled",color:"bg-success"},pending:{displayKey:"generic.inProgress",color:"bg-info"},disabled:{displayKey:"generic.disabled",color:"bg-warning"},error:{displayKey:"generic.disabled",color:"bg-warning"}};class o extends r.A{get _availableActions(){const e=super._availableActions;return e.push({action:"enableVGpu",enabled:!this.isEnabled,icon:"icon icon-fw icon-dot",label:"Enable"},{action:"disableVGpu",enabled:this.isEnabled,icon:"icon icon-fw icon-dot-open",label:"Disable",bulkable:!0}),e}get canYaml(){return!1}get canDelete(){return!1}goToDetail(){return!1}goToEdit(){return!1}get isEnabled(){return!0===this?.spec?.enabled}get isEnabling(){return this.status?.vGPUStatus&&"vGPUConfigured"!==this.status?.vGPUStatus}get statusDisplay(){return this.isEnabling?a.pending:this.isEnabled?a.enabled:a.disabled}get stateDisplay(){const e=this.$rootGetters["i18n/t"];return e(this.statusDisplay.displayKey)}get stateBackground(){return this.statusDisplay.color}enableVGpu(e=this){this.$dispatch("promptModal",{resources:e,component:"EnableVGpuDevice"})}async disableVGpu(){const{vGPUTypeName:e,enabled:t}=this.spec;try{this.spec.vGPUTypeName=void 0,this.spec.enabled=!1,await this.save()}catch(n){this.spec.vGPUTypeName=e,this.spec.enabled=t,this.$dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,i.ZD)(this.metadata.name)}),err:n},{root:!0})}}get groupByNode(){const e=this.spec?.nodeName||this.$rootGetters["i18n/t"]("generic.none");return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.node",{name:(0,i.ZD)(e)})}get vGpuAvailableTypes(){return this.status?.availableTypes?Object.keys(this.status.availableTypes):[]}}},24222:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(25184),i=n(91462),a=n(20652);class o extends r.A{get listLocation(){const e=this.harvesterResourcesInExplorer?"c-cluster-product-resource":`${a.KR}-c-cluster-resource`;return this.$rootGetters["type-map/optionsFor"](this.type).customRoute||{name:e,params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],resource:this.type}}}get parentLocationOverride(){return this.listLocation}get doneRoute(){return this.listLocation.name}get doneOverride(){return this.listLocation}get harvesterResourcesInExplorer(){return this.$rootGetters["productId"]!==a.KR}get _detailLocation(){const e=this.$getters["schemaFor"](this.type),t=this.id?.replace(/.*\//,""),n=this.harvesterResourcesInExplorer?`c-cluster-product-resource${e?.attributes?.namespaced?"-namespace":""}-id`:`${a.KR}-c-cluster-resource${e?.attributes?.namespaced?"-namespace":""}-id`,r={name:n,params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],resource:this.type,namespace:this.metadata?.namespace,id:t}};return this.harvesterResourcesInExplorer&&(r.query={as:"yaml"}),r}get forceYaml(){return this.harvesterResourcesInExplorer}get canViewInApi(){try{return this.hasLink("self")&&this.$rootGetters["prefs/get"](i.HZ)}catch{return this.hasLink("self")&&this.$rootGetters["prefs/get"](i.IJ)}}cleanForSave(e,t){return e}}},24481:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(76978),i=n(32766),a=n(24222),o=n(20652);class s extends a["default"]{get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=i.rk.CLOUD_TEMPLATE,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=i.rk.CLOUD_TEMPLATE,e.name=`${o.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${i.rk.CLOUD_TEMPLATE}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}}},4987:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(76978),i=n(43842),a=n(32766),o=n(20652);const s="Not Ready";class l extends i["default"]{get listLocation(){return this.$rootGetters["type-map/optionsFor"](this.type).customRoute||{name:`${o.KR}-c-cluster-resource`,params:{product:o.KR,cluster:this.$rootGetters["clusterId"],resource:this.type}}}get doneRoute(){return this.listLocation.name}get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=a.rk.NETWORK_ATTACHMENT,e.name=`${o.KR}-c-cluster-resource-namespace-id`,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=a.rk.NETWORK_ATTACHMENT,e.name=`${o.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${a.rk.NETWORK_ATTACHMENT}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get inStore(){return this.$rootGetters["currentProduct"].inStore}get clusterNetworkResource(){const e=this.$rootGetters[`${this.inStore}/all`](a.rk.CLUSTER_NETWORK);return e.find((e=>e.id===this.clusterNetwork))}get clusterNetworkErrorMessage(){return this.clusterNetworkResource?this.clusterNetworkResource.isReady?"":this.t("harvester.clusterNetwork.notReady",{clusterNetwork:this.clusterNetwork}):this.t("harvester.clusterNetwork.notExist",{clusterNetwork:this.clusterNetwork})}get stateDisplay(){return this.clusterNetworkErrorMessage?s:super.stateDisplay}get stateBackground(){return this.stateDisplay===s?"bg-warning":super.stateBackground}get isNotReady(){return this.clusterNetworkErrorMessage}}},50826:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(76978),i=n(35664),a=n(32766),o=n(20652),s=n(40322);class l extends s["default"]{get allOutputs(){return this.$rootGetters["harvester/all"](i.cm.CLUSTER_OUTPUT)||[]}get _detailLocation(){const e=this.$getters["schemaFor"](this.type),t=this.id?.replace(/.*\//,"");return{name:`${o.KR}-c-cluster-resource${e?.attributes?.namespaced?"-namespace":""}-id`,params:{product:o.KR,cluster:this.$rootGetters["clusterId"],resource:this.type,id:t,namespace:this.metadata.namespace}}}get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=a.rk.CLUSTER_FLOW,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=a.rk.CLUSTER_FLOW,e.name=`${o.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${a.rk.CLUSTER_FLOW}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}}},49039:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(76978),i=n(32766),a=n(20652),o=n(15895);class s extends o["default"]{get _detailLocation(){const e=this.$getters["schemaFor"](this.type),t=this.id?.replace(/.*\//,"");return{name:`${a.KR}-c-cluster-resource${e?.attributes?.namespaced?"-namespace":""}-id`,params:{product:a.KR,cluster:this.$rootGetters["clusterId"],resource:this.type,id:t,namespace:this.metadata.namespace}}}get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=i.rk.CLUSTER_OUTPUT,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=i.rk.CLUSTER_OUTPUT,e.name=`${a.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${i.rk.CLUSTER_OUTPUT}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}}},40322:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(35664),i=n(76978),a=n(21766),o=n(32766),s=n(20652),l=n(66905);class c extends a["default"]{get allOutputs(){return this.$rootGetters["harvester/all"](r.cm.OUTPUT)||[]}get allClusterOutputs(){return this.$rootGetters["harvester/all"](r.cm.CLUSTER_OUTPUT)||[]}get _detailLocation(){const e=this.$getters["schemaFor"](this.type),t=this.id?.replace(/.*\//,"");return{name:`${s.KR}-c-cluster-resource${e?.attributes?.namespaced?"-namespace":""}-id`,params:{product:s.KR,cluster:this.$rootGetters["clusterId"],resource:this.type,id:t,namespace:this.metadata.namespace}}}get detailLocation(){const e=(0,i.o8)(this._detailLocation);return e.params.resource=o.rk.FLOW,e}get doneOverride(){const e=(0,i.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=o.rk.FLOW,e.name=`${s.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${o.rk.FLOW}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get loggingType(){return"harvester-kube-audit-log-ref"===this.spec.loggingRef?l.UQ.AUDIT:(this.spec.match||[]).find((e=>!!e?.select?.labels?.["app.kubernetes.io/name"]))?l.UQ.EVENT:l.UQ.LOGGING}}},15895:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(76978),i=n(44931),a=n(32766),o=n(20652),s=n(66905);class l extends i["default"]{get _detailLocation(){const e=this.$getters["schemaFor"](this.type),t=this.id?.replace(/.*\//,"");return{name:`${o.KR}-c-cluster-resource${e?.attributes?.namespaced?"-namespace":""}-id`,params:{product:o.KR,cluster:this.$rootGetters["clusterId"],resource:this.type,id:t,namespace:this.metadata.namespace}}}get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=a.rk.OUTPUT,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=a.rk.OUTPUT,e.name=`${o.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${a.rk.OUTPUT}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get url(){return this.detailLocation}get loggingType(){return"harvester-kube-audit-log-ref"===this.spec.loggingRef?s.UQ.AUDIT:s.UQ.LOGGING}}},65073:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(76978),i=n(76061),a=n(32766),o=n(20652);class s extends i["default"]{get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=a.rk.SETTING,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=a.rk.SETTING,e.name=`${o.KR}-c-cluster-resource`,e}get doneRoute(){return null}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${a.rk.SETTING}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get doneParams(){return{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],resource:a.rk.SETTING}}}},53942:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(76978),i=n(14220),a=n(25184),o=n(32766),s=n(20652);class l extends a.A{get _detailLocation(){return{name:this.alertmanagerConfigDoneRouteName,params:{cluster:this.$rootGetters["clusterId"],resource:o.rk.ALERTMANAGERCONFIG,namespace:this.metadata?.namespace,id:this.name},hash:"#receivers",query:{as:"config"}}}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=o.rk.ALERTMANAGERCONFIG,e.name=`${s.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${o.rk.ALERTMANAGERCONFIG}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}applyDefaults(){if(this.spec)return this.spec;const e=this.spec?.route?.receivers||[],t={receivers:[...e],route:{receivers:this.spec?.route?.receivers||[],groupBy:this.spec?.route?.groupBy||[],groupWait:this.spec?.route?.groupWait||"30s",groupInterval:this.spec?.route?.groupInterval||"5m",repeatInterval:this.spec?.route?.repeatInterval||"4h",match:this.spec?.route?.match||{},matchRe:this.spec?.route?.matchRe||{}}};(0,r.hZ)(this,"spec",t)}get _availableActions(){const e=super._availableActions;return e}getReceiverActions(e){return e.filter((e=>{if(e.divider)return!0;switch(e.action){case"goToEdit":return!0;case"goToEditYaml":return!0;case"promptRemove":return!0;default:return!1}}))}get alertmanagerConfigDoneRouteName(){return`${s.KR}-c-cluster-resource-namespace-id`}getCreateReceiverRoute(){return{name:`${s.KR}-c-cluster-alertmanagerconfig-alertmanagerconfigid-receiver`,params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id},query:{mode:i.YQ,currentView:i.au}}}getReceiverDetailLink(e){return{name:`${s.KR}-c-cluster-alertmanagerconfig-alertmanagerconfigid-receiver`,params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id,receiverName:e},query:{mode:i.nW,receiverName:e,currentView:i.au}}}getEditReceiverYamlRoute(e,t){return{name:`${s.KR}-c-cluster-alertmanagerconfig-alertmanagerconfigid-receiver`,params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id},query:{mode:t||i.nW,receiverName:e,currentView:i.zD}}}getEditReceiverConfigRoute(e,t){return{name:`${s.KR}-c-cluster-alertmanagerconfig-alertmanagerconfigid-receiver`,params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id},query:{mode:t||i.nW,receiverName:e,currentView:i.au}}}}},62878:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(68851),i=n(67867),a=n(2841),o=n(71025),s=n(76978),l=n(35664),c=n(20652),u=n(32766);const d=["c-","p-","user-","local"];class h extends i["default"]{get _availableActions(){const e=super._availableActions,t=e.findIndex((e=>"promptRemove"===e.action)),n={action:"promptRemove",altAction:"remove",label:this.t("action.remove"),icon:"icon icon-trash",bulkable:!0,enabled:this.canDelete,bulkAction:"promptRemove",weight:-10},i={action:"editNSQuota",label:this.t("harvester.modal.quota.editQuota"),icon:"icon icon-storage",enabled:!!this?.actions?.updateResourceQuota&&!!this?.actions?.deleteResourceQuota,weight:-11};return t>-1&&e.splice(t,1),(0,r.PT)(e,e.length-1,n),(0,r.PT)(e,e.length-5,i),e}editNSQuota(e=this){this.$dispatch("promptModal",{resources:e,snapshotSizeQuota:this.snapshotSizeQuota,component:"HarvesterQuotaDialog"})}promptRemove(e=this){this.$dispatch("promptModal",{resources:e,component:"ConfirmRelatedToRemoveDialog"})}get nsResourceQuota(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](u.rk.RESOURCE_QUOTA);return t.find((e=>e.metadata.namespace===this.id))}get snapshotSizeQuota(){return this.nsResourceQuota?.spec?.snapshotLimit?.namespaceTotalSnapshotSizeQuota}get isSystem(){const e=["fleet-default"];if(e.includes(this.metadata.name))return!0;if("true"===this.metadata?.annotations?.[a.eG])return!0;if(o.A.includes(this.metadata.name))return!0;if(this.metadata.name.endsWith("-system"))return!0;if(this.project)return this.project.isSystem;if("true"===(0,s.Jt)(this,`metadata.labels."${a.Hs.MANAGED}"`))return!0;const t=this.$rootGetters["systemNamespaces"].includes(this.metadata.name),n=!!d.some((e=>this.metadata.name.startsWith(e)));return t||n}get detailLocation(){const e=this.id?.replace(/.*\//,""),t={name:`${c.KR}-c-cluster-resource-id`,params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],resource:l.CU,namespace:this.metadata?.namespace,id:e}};return t}get hideDetailLocation(){return!!this.$rootGetters["currentProduct"].hideNamespaceLocation}}},55285:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return E}});var r=n(16735),i=n.n(r),a=n(35664),o=n(2841),s=n(2602),l=n(76978),c=n(24576),u=n.n(c),d=n(73883),h=n(95799),p=n(68851),f=n(92043),m=n(24222),g=n(20652),v=n(32766);const b=["topology.kubernetes.io/zone","topology.kubernetes.io/region"],y="healthy",w="warning";class E extends m["default"]{get _availableActions(){const e={action:"cordon",enabled:this.hasAction("cordon")&&!this.isCordoned,icon:"icon icon-fw icon-pause",label:this.t("harvester.action.cordon"),total:1},t={action:"uncordon",enabled:this.hasAction("uncordon"),icon:"icon icon-fw icon-play",label:this.t("harvester.action.uncordon"),total:1},n={action:"enableMaintenanceMode",enabled:this.hasAction("enableMaintenanceMode"),icon:"icon icon-fw icon-unlock",label:this.t("harvester.action.enableMaintenance"),total:1},r={action:"disableMaintenanceMode",enabled:this.hasAction("disableMaintenanceMode"),icon:"icon icon-fw icon-lock",label:this.t("harvester.action.disableMaintenance"),total:1},i={action:"enableCPUManager",enabled:this.cpuPinningFeatureEnabled&&this.hasAction("enableCPUManager")&&!this.isCPUManagerEnableInProgress&&!this.isCPUManagerEnabled&&!this.isEtcd,icon:"icon icon-fw icon-os-management",label:this.t("harvester.action.enableCPUManager"),total:1},a={action:"disableCPUManager",enabled:this.cpuPinningFeatureEnabled&&this.hasAction("disableCPUManager")&&!this.isCPUManagerEnableInProgress&&this.isCPUManagerEnabled&&!this.isEtcd,icon:"icon icon-fw icon-os-management",label:this.t("harvester.action.disableCPUManager"),total:1},o={action:"shutDown",enabled:this.hasAction("powerActionPossible")&&this.hasAction("powerAction")&&!this.isStopped&&!!this.inventory,icon:"icon icon-fw icon-dot",label:this.t("harvester.action.shutdown"),total:1},s={action:"powerOn",enabled:this.hasAction("powerActionPossible")&&this.hasAction("powerAction")&&this.isStopped&&!!this.inventory,icon:"icon icon-fw icon-play",label:this.t("harvester.action.powerOn"),total:1},l={action:"reboot",enabled:this.hasAction("powerActionPossible")&&this.hasAction("powerAction")&&!this.isStopped&&!!this.inventory,icon:"icon icon-fw icon-refresh",label:this.t("harvester.action.reboot"),total:1};return[e,t,n,r,i,a,o,s,l,...super._availableActions]}promptRemove(e=this){this.$dispatch("promptModal",{resources:e,component:"ConfirmRelatedToRemoveDialog"})}remove(e=this){const t=Array.isArray(e)?e:[e];t.forEach((e=>{e.capiMachine?e.capiMachine.remove():e.remove()}))}get capiMachine(){const e=this.annotations?.[o.qt.CLUSTER_NAMESPACE],t=this.annotations?.[o.qt.MACHINE_NAME];if(e&&t){const n=this.$rootGetters["currentProduct"].inStore;return this.$rootGetters[`${n}/byId`](a.qt.MACHINE,`${e}/${t}`)}return null}get confirmRemove(){return!0}get consoleUrl(){const e=this.metadata?.annotations?.[s.r.HOST_CONSOLE_URL],t=/^[a-z]+:\/\//;return!!e?.match(t)&&e}get filteredSystemLabels(){const e=/(k3s|kubernetes|kubevirt|harvesterhci|k3os)+\.io/,t=i()(this.labels,((t,n)=>!e.test(n)));return b.map((e=>{const n=this?.metadata?.labels?.[e];n&&(t[e]=n)})),t}get nameDisplay(){return this.metadata?.annotations?.[s.r.HOST_CUSTOM_NAME]||this.name}get isKVMDisable(){const e=this.metadata.labels?.[s.r.K8S_ARCH]?.includes("arm");if(e)return this.status.capacity["devices.kubevirt.io/kvm"]&&"0"===this.status.capacity["devices.kubevirt.io/kvm"];const t=!this.metadata?.labels?.[s.r.KVM_AMD_CPU]&&!this.metadata?.labels?.[s.r.KVM_INTEL_CPU];return t||"false"===this.metadata?.labels?.[s.r.KVM_AMD_CPU]||"false"===this.metadata?.labels?.[s.r.KVM_INTEL_CPU]}get stateDisplay(){return this.isEnteringMaintenance?"Entering maintenance mode":this.isStopping?(0,f.TF)(d.jv.STOPPING):this.isStarting?(0,f.TF)(d.jv.STARTING):this.isStopped?(0,f.TF)(d.jv.OFF):this.isRebooting?"Rebooting":this.isMaintenance?"Maintenance":this.isCordoned?"Cordoned":(0,d.ch)(this.state)}get stateBackground(){return this.isStopped||this.isStopping||this.isStarting||this.isRebooting?(0,d.uU)(this.stateDisplay,!1,this.stateObj?.transitioning).replace("text-","bg-"):(0,d.uU)(this.stateDisplay,this.stateObj?.error,this.stateObj?.transitioning).replace("text-","bg-")}get stateDescription(){const e=this.metadata?.annotations?.[s.r.CURRENT_IP],t=this.metadata?.annotations?.[s.r.INIT_IP];return t&&e&&e!==t?this.t("harvester.host.inconsistentIP",{currentIP:e,initIP:t}):super.stateDescription}get stateObj(){const e=this.metadata?.annotations?.[s.r.CURRENT_IP],t=this.metadata?.annotations?.[s.r.INIT_IP];return t&&e&&e!==t&&(this.metadata.state.error=!0),this.metadata?.state}get detailLocation(){const e=(0,l.o8)(this._detailLocation);return e.params.resource=v.rk.HOST,e}get doneOverride(){const e=(0,l.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=v.rk.HOST,e.name=`${g.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${v.rk.HOST}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get internalIp(){const e=this.status?.addresses||[];return u()(e,(e=>"InternalIP"===e.type))?.address}get isMaster(){return void 0!==this.metadata?.labels?.[s.r.NODE_ROLE_MASTER]||void 0!==this.metadata?.labels?.[s.r.NODE_ROLE_CONTROL_PLANE]}cordon(){this.doActionGrowl("cordon",{})}uncordon(){this.doAction("uncordon",{})}enableMaintenanceMode(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterMaintenanceDialog"})}disableMaintenanceMode(){this.doAction("disableMaintenanceMode",{})}enableCPUManager(){this.doActionGrowl("enableCPUManager",{})}disableCPUManager(){this.doActionGrowl("disableCPUManager",{})}get isUnSchedulable(){return"false"===this.metadata?.labels?.[s.r.NODE_SCHEDULABLE]||this.spec.unschedulable}get isMigratable(){const e=["in-progress","unavailable"];return!this.metadata?.annotations?.[s.r.MAINTENANCE_STATUS]&&!this.isUnSchedulable&&!e.includes(this.state)}get isCordoned(){return this.isUnSchedulable&&!this.isEtcd||this.hasAction("uncordon")}get isEtcd(){return this.metadata?.labels?.[s.r.NODE_ROLE_ETCD]}get isEnteringMaintenance(){return"running"===this.metadata?.annotations?.[s.r.MAINTENANCE_STATUS]}get isMaintenance(){return"completed"===this.metadata?.annotations?.[s.r.MAINTENANCE_STATUS]}get cpuPinningFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("cpuPinning")}get isCPUManagerEnabled(){return"true"===this.metadata?.labels?.[s.r.CPU_MANAGER]}get isCPUManagerEnableInProgress(){return"requested"===this.cpuManagerUpdateStatus||"running"===this.cpuManagerUpdateStatus}get isCPUManagerEnableFailed(){return"failed"===this.cpuManagerUpdateStatus}get cpuManagerUpdateStatus(){try{const e=JSON.parse(this.metadata.annotations[s.r.NODE_CPU_MANAGER_UPDATE_STATUS]||"{}");return e.status||""}catch{return""}}get longhornDisks(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/byId`](a.oe.NODES,`longhorn-system/${this.id}`),n=t?.status?.diskStatus||{},r=t?.spec?.disks||{},i=Object.keys(n).map((e=>{const t=n[e]?.conditions||[];let i,a={},o={};return(0,p.cy)(t)?(a=(0,p.jq)(t,"type","Ready")||{},o=(0,p.jq)(t,"type","Schedulable")||{}):(a=t.Ready,o=t.Schedulable),i="True"!==a?.status||"True"!==o?.status?w:y,{...r[e],...n[e],name:e,storageReserved:r[e]?.storageReserved,storageAvailable:n[e]?.storageAvailable,storageMaximum:n[e]?.storageMaximum,storageScheduled:n[e]?.storageScheduled,readyCondition:a,schedulableCondition:o,state:i}}));return i}get pods(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](a.Sm)||[];return t.filter((e=>e?.spec?.nodeName===this.id&&"removing"!==e?.metadata?.name))}get reserved(){try{return JSON.parse(this.metadata.annotations[s.r.HOST_REQUEST]||"{}")}catch{return{}}}get cpuReserved(){return(0,h.ao)(this.reserved.cpu||"0")}get memoryReserved(){return(0,h.ao)(this.reserved.memory||"0")}get canDelete(){const e=this.$rootGetters["harvester/all"](a.NW)||[];return e.length>1&&super.canDelete}get vlanStatuses(){const e=this.$rootGetters["currentProduct"].inStore,t=this.id,n=this.$rootGetters[`${e}/all`](v.rk.VLAN_STATUS);return n.filter((e=>e?.status?.node===t))||[]}get blockDevices(){const e=this.$rootGetters["currentProduct"].inStore,t=this.id,n=this.$rootGetters[`${e}/all`](v.rk.BLOCK_DEVICE);return n.filter((e=>e?.spec?.nodeName===t))||[]}get unProvisionedDisks(){const e=this.blockDevices||[];return e.filter((e=>e?.isProvisioned&&"Provisioned"!==e?.status?.provisionPhase))}get diskStatusCount(){const e=this.unProvisionedDisks.filter((e=>e.metadata.state.error))||[];let t=0;this.longhornDisks.map((e=>{"warning"===e.state&&t++}));const n=this.longhornDisks.length+e.length;return{total:n,errorCount:t+e.length,useful:n-t}}get manufacturer(){return this.metadata?.labels?.[s.r.NODE_MANUFACTURER]}get serialNumber(){return this.metadata?.labels?.[s.r.NODE_SERIAL_NUMBER]}get model(){return this.metadata?.labels?.[s.r.NODE_MODEL]}get isStopped(){const e=this.inventory||{};return"shutdown"===e.spec?.powerActionRequested&&"complete"===e.status?.powerAction?.actionStatus}get isStopping(){const e=this.inventory||{};return!Object.prototype.hasOwnProperty.call(e?.status?.powerAction||{},"actionStatus")&&"shutdown"===e.spec?.powerActionRequested}get isStarted(){const e=this.inventory||{};return"poweron"===e.spec?.powerActionRequested&&"complete"===e.status?.powerAction?.actionStatus}get isStarting(){const e=this.inventory||{};return!Object.prototype.hasOwnProperty.call(e?.status?.powerAction||{},"actionStatus")&&"poweron"===e.spec?.powerActionRequested}get isRebooting(){const e=this.inventory||{};return!Object.prototype.hasOwnProperty.call(e?.status?.powerAction||{},"actionStatus")&&"reboot"===e.spec?.powerActionRequested}async shutDown(e=this){try{await this.doAction("powerActionPossible",{}),await this.doAction("powerAction",{operation:"shutdown"}),await this.$dispatch("growl/success",{title:this.t("generic.notification.title.succeed"),message:this.t("harvester.host.powerAction.message.success",{name:this.name,operation:"shut down"})},{root:!0})}catch(t){await this.$dispatch("growl/error",{title:this.t("generic.notification.title.error"),message:t},{root:!0})}}async powerOn(e=this){const t="poweron";try{await this.doAction("powerActionPossible",{}),await this.doAction("powerAction",{operation:t}),await this.$dispatch("growl/success",{title:this.t("generic.notification.title.succeed"),message:this.t("harvester.host.powerAction.message.success",{name:this.name,operation:t})},{root:!0})}catch(n){await this.$dispatch("growl/error",{title:this.t("generic.notification.title.error"),message:n},{root:!0})}}async reboot(e=this){const t="reboot";try{await this.doAction("powerActionPossible",{}),await this.doAction("powerAction",{operation:t}),await this.$dispatch("growl/success",{title:this.t("generic.notification.title.succeed"),message:this.t("harvester.host.powerAction.message.success",{name:this.name,operation:t})},{root:!0})}catch(n){await this.$dispatch("growl/error",{title:this.t("generic.notification.title.error"),message:n},{root:!0})}}get inventory(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](v.rk.INVENTORY)||[];return t.find((e=>e.id===`harvester-system/${this.id}`))}get warningMessages(){let e=[];return e=e.concat(this.inventory?.warningMessages||[]),e}}},15908:function(e,t,n){"use strict";n.r(t),n.d(t,{DATA_ENGINE_V1:function(){return v},DATA_ENGINE_V2:function(){return b},default:function(){return y}});var r=n(14220),i=n(74874),a=n.n(i),o=n(35664),s=n(2841),l=n(2602),c=n(68851),u=n(76978),d=n(73883),h=n(32766),p=n(24222),f=n(20652),m=n(82877);const g=["replica scheduling failed","precheck new replica failed"],v="v1",b="v2";class y extends p["default"]{applyDefaults(e,t){const n=t===r.dT?this.spec.accessModes:[],i=t===r.dT?this.spec.resources.requests.storage:null,a=t===r.dT?this.spec.storageClassName:"";this["spec"]={accessModes:n,storageClassName:a,volumeName:"",resources:{requests:{storage:i}}}}get availableActions(){let e=super._availableActions;if(this.isLonghornV2)e=e.filter((e=>"goToClone"!==e.action));else{const t=e.find((e=>"goToClone"===e.action));t&&(t.action="goToCloneVolume")}const t={action:"exportImage",enabled:this.hasAction("export")&&!this.isEncrypted,icon:"icon icon-copy",label:this.t("harvester.action.exportImage")},n={action:"snapshot",enabled:this.hasAction("snapshot"),icon:"icon icon-backup",label:this.t("harvester.action.snapshot")};return this.thirdPartyStorageFeatureEnabled?(e=[t,n,...e],this.isLonghornV2&&(e=e.filter((e=>e.action!==n.action)))):this.isLonghorn&&this.isLonghornV2||(e=[t,n,...e]),[{action:"cancelExpand",enabled:this.hasAction("cancelExpand"),icon:"icon icon-backup",label:this.t("harvester.action.cancelExpand")},...e]}exportImage(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterExportImageDialog"})}cancelExpand(e=this){this.doActionGrowl("cancelExpand",{})}snapshot(e=this){this.$dispatch("promptModal",{resources:e,component:"SnapshotDialog"})}goToCloneVolume(e=this){this.$dispatch("promptModal",{resources:e,component:"VolumeCloneDialog"})}cleanForNew(){this.$dispatch("cleanForNew",this),delete this.metadata.finalizers;const e=[l.r.IMAGE_ID,s.tC];this.metadata.annotations=a()(this.metadata.annotations,e)}get storageClass(){const e=this.$rootGetters["currentProduct"].inStore;return this.$rootGetters[`${e}/all`](o.fJ).find((e=>e.name===this.spec.storageClassName))}get canUpdate(){return this.hasLink("update")}get stateDisplay(){const e=this.relatedPV?.metadata?.annotations?.[l.r.VOLUME_ERROR],t=g.includes(e),n="Bound"===this?.status?.phase&&!e&&this.isLonghornVolumeReady?"Ready":"Not Ready",r=this?.status?.conditions||[];return"True"===(0,c.jq)(r,"type","Resizing")?.status?"Resizing":this.attachVM&&!e?"In-use":t?"Degraded":n}get state(){const e=this.relatedPV?.metadata?.annotations?.[l.r.VOLUME_ERROR],t=g.includes(e);let n="Bound"!==this?.status?.phase||e?"Not Ready":"Ready";const r=this?.status?.conditions||[];return t&&(n="Degraded"),"True"===(0,c.jq)(r,"type","Resizing")?.status&&(n="Resizing"),n}get stateColor(){const e=this.stateDisplay;return(0,d.uU)(e)}get stateDescription(){return super.stateDescription}get detailLocation(){const e=(0,u.o8)(this._detailLocation);return e.params.resource=h.rk.VOLUME,e}get doneOverride(){const e=(0,u.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=h.rk.VOLUME,e.name=`${f.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${h.rk.VOLUME}"`,{count:1}).trim()}get parentLocationOverride(){return this.doneOverride}get phaseState(){return this.status?.phase||"N/A"}get attachVM(){const e=this.$rootGetters["harvester/all"](h.rk.VM)||[],t=e=>{const t=e.spec.template?.spec?.volumes||[];return e.namespace===this.namespace&&t.length>0?t.find((e=>e.persistentVolumeClaim?.claimName===this.name)):null};return e.find(t)}get isAvailable(){const e=["Resizing","Not Ready"];return!e.includes(this.stateDisplay)}get volumeSort(){const e=this.spec?.resources?.requests?.storage||0;return parseInt(e)}get isSystemResource(){const e=this.$rootGetters["systemNamespaces"];return!!e.includes(this.metadata?.namespace)}get isEncrypted(){return"true"===this.relatedPV?.spec?.csi?.volumeAttributes?.encrypted}get longhornVolume(){const e=this.$rootGetters["currentProduct"].inStore;return this.$rootGetters[`${e}/all`](o.oe.VOLUMES).find((e=>e.metadata?.name===this.spec?.volumeName))}get longhornEngine(){const e=this.$rootGetters["currentProduct"].inStore;return this.$rootGetters[`${e}/all`](o.oe.ENGINES).find((e=>e.spec?.volumeName===this.spec?.volumeName))}get isLonghornVolumeReady(){let e=!0;const t=this.longhornVolume||{},n=(t?.status?.conditions||[]).find((e=>"Scheduled"===e.type||"scheduled"===e.type))||{};return(""===t?.spec?.nodeID&&"detached"!==t?.status?.state||"detached"===t?.status?.state&&"True"!==n.status||"faulted"===t?.status?.robustness||t?.status?.restoreRequired||"failed"===t?.status?.cloneStatus?.state)&&(e=!1),e}get relatedVolumeSnapshotCounts(){const e=this.$rootGetters["harvester/all"](h.qY);return e.filter((e=>{const t=`${e.metadata?.namespace}/${e.spec?.source?.persistentVolumeClaimName}`,n=e.metadata?.ownerReferences?.[0]?.kind;return t===this.id&&"PersistentVolumeClaim"===n}))}get originalSnapshot(){return this.spec?.dataSource?this.$rootGetters["harvester/all"](h.qY).find((e=>e.metadata?.name===this.spec.dataSource.name)):null}get source(){const e=(0,u.Jt)(this,`metadata.annotations."${l.r.IMAGE_ID}"`);return e?"image":"data"}get warnDeletionMessage(){return this.t("harvester.volume.promptRemove.tips")}get relatedPV(){return this.$rootGetters["harvester/all"](o.PV).find((e=>e.metadata?.name===this.spec?.volumeName))}get volumeProvider(){return this.relatedPV?.spec.csi?.driver}get dataEngine(){return this.relatedPV?.spec.csi?.volumeAttributes?.dataEngine}get isLvm(){return this.volumeProvider===m.LVM_DRIVER}get isLonghorn(){return this.volumeProvider===o.lI}get isLonghornV1(){return this.isLonghorn&&!this.isLonghornV2}get isLonghornV2(){return this.dataEngine===b}get isGoldenImageVolume(){return"true"===this?.metadata?.annotations?.[l.r.GOLDEN_IMAGE]}get thirdPartyStorageFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("thirdPartyStorage")}get resourceExternalLink(){const e=window.location.host,{params:t}=this.currentRoute(),n=this.spec?.volumeName;return this.isLonghorn&&n?{tipsKey:"harvester.volume.externalLink.tips",url:`https://${e}/k8s/clusters/${t.cluster}/api/v1/namespaces/longhorn-system/services/http:longhorn-frontend:80/proxy/#/volume/${n}`}:null}get customValidationRules(){return[{nullable:!1,path:"spec.resources.requests.storage",required:!0,validators:["volumeSize"]}]}}},14426:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return k}});var r=n(65145),i=n.n(r),a=n(68851),o=n(76978),s=n(35664),l=n(24222);const c="POD_NOT_SCHEDULABLE",u="POD_FAILED",d="POD_CRASHLOOP_BACKOFF",h="POD_STATUS_UNKNOWN",p="POD_CONTAINER_FAILING",f="POD_NOT_READY",m="POD_STATUS_PENDING",g="POD_STATUS_COMPLETED",v="POD_STATUS_SUCCEEDED",b="POD_STATUS_RUNNING",y=["ImagePullBackOff","ErrImagePull","CrashLoopBackOff"],w=["Error"],E={Failed:u,CrashLoopBackOff:d,Unknown:h},_={Pending:m,Running:b,Completed:g,Succeeded:v},S={terminated:({reason:e,exitCode:t})=>`Terminated with ${e}${t?` (exit code ${t}).`:"."}`,waiting:({reason:e})=>`Waiting (${e}).`};class k extends l["default"]{get inStore(){return this.$rootGetters["currentProduct"].inStore}get nodes(){return this.$rootGetters[`${this.inStore}/all`](s.NW)}get node(){const{nodeName:e}=this.spec;return this.nodes.filter((t=>t?.metadata?.name===e))[0]}get getPodStatus(){return this.isNotSchedulable||this.hasErrorStatus||this.isContainerFailing||this.isNotReady||this.hasOkStatus||{status:h}}get isNotSchedulable(){if(!this.isPodSchedulable){const e=(0,o.Jt)(this,"status.conditions"),t=(0,a.jq)(e,"type","PodScheduled");return{status:c,message:t.message||"Pod scheduling failed."}}return null}get hasErrorStatus(){const e=E[this?.status?.phase];return e?{status:e,message:this.getContainerStatusReason(this.findFailingContainerStatus)}:null}get isPodSchedulable(){const e=(0,o.Jt)(this,"status.conditions"),t=(0,a.jq)(e,"type","PodScheduled");return!(t&&"True"!==t.status&&"Unschedulable"===t.reason)}get findFailingContainerStatus(){return((0,o.Jt)(this,"status.containerStatuses"),[]).find((e=>!e.ready&&(i()(y,(0,o.Jt)(e,"state.waiting.reason"))||i()(w,(0,o.Jt)(e,"state.terminated.reason")))))}get getContainerStatusReason(){return e=>{if(e){const t=Object.getOwnPropertyNames(e.state).find((t=>!!e.state[t].reason));if(t){const n=e.state[t];return n.message||S[t]&&S[t](n)||t}}}}get isContainerFailing(){const e=this.findFailingContainerStatus;return e?{status:p,message:this.getContainerStatusReason(e)}:null}get isNotReady(){const e=this.findPodFalseStatusConditionMessage;return e?{status:f,message:e}:null}get hasOkStatus(){const e=_[this?.status?.phase];return e?{status:e}:null}get findPodFalseStatusConditionMessage(){const e=this.getPodFalseStatusConditions;if(e.length>0)return e[0].message||`Step: ${e[0].type}`}get getPodFalseStatusConditions(){const e=(0,o.Jt)(this,"status.conditions")||[];return e.filter((e=>"True"!==e.status))}}},60698:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(45858);class i extends r["default"]{}},36577:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(76978),i=n(32766),a=n(20652),o=n(1133),s=n(35664);class l extends o["default"]{get _detailLocation(){const e=this.$getters["schemaFor"](this.type),t=this.id?.replace(/.*\//,"");return{name:`${a.KR}-c-cluster-resource${e?.attributes?.namespaced?"-namespace":""}-id`,params:{product:a.KR,cluster:this.$rootGetters["clusterId"],resource:this.type,id:t,namespace:this.metadata.namespace}}}get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=i.rk.SECRET,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=i.rk.SECRET,e.name=`${a.KR}-c-cluster-resource`,e}get doneRoute(){return this.doneOverride.name}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${i.rk.SECRET}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get isSystem(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](s.CU).filter((e=>!0===e.isSystem)).map((e=>e.metadata.name));return t.includes(this.metadata.namespace)}get details(){const e=[{label:this.t("secret.type"),content:this.typeDisplay}];return this.cn&&e.push({label:this.t("secret.certificate.cn"),content:this.plusMoreNames?`${this.cn} ${this.t("secret.certificate.plusMore",{n:this.plusMoreNames})}`:this.cn}),this.issuer&&e.push({label:this.t("secret.certificate.issuer"),content:this.issuer}),this.notAfter&&e.push({label:"Expires",formatter:"Date",formatterOpts:{class:this.dateClass},content:this.notAfter}),e}}},87214:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(76978),i=n(35664),a=n(32766),o=n(24222),s=n(20652);class l extends o["default"]{get availableActions(){return[{action:"restoreSnapshot",enabled:this.hasAction("restore"),icon:"icon icon-refresh",label:this.t("harvester.action.restore")},...super._availableActions]}get canClone(){return!1}restoreSnapshot(e=this){this.$dispatch("promptModal",{resources:e,component:"RestoreSnapshotDialog"})}get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=a.rk.SNAPSHOT,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=a.rk.SNAPSHOT,e.name=`${s.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${a.rk.SNAPSHOT}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get volume(){const e=this.$rootGetters["currentProduct"].inStore,t=this?.metadata?.namespace,n=this?.spec?.source?.persistentVolumeClaimName,r=this.$rootGetters[`${e}/byId`](i.YH,`${t}/${n}`);return r}}},82877:function(e,t,n){"use strict";n.r(t),n.d(t,{LVM_DRIVER:function(){return c},default:function(){return u}});var r=n(76978),i=n(63809),a=n(32766),o=n(20652),s=n(35664),l=n(15908);const c="lvm.driver.harvesterhci.io";class u extends i["default"]{get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=a.rk.STORAGE,e.name=`${o.KR}-c-cluster-resource-id`,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=a.rk.STORAGE,e.name=`${o.KR}-c-cluster-resource`,e}get parentLocationOverride(){return this.doneOverride}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${a.rk.STORAGE}"`,{count:1})?.trim()}get longhornVersion(){return this.provisioner===s.lI?(this.parameters||{}).dataEngine||l.DATA_ENGINE_V1:null}get provisionerDisplay(){let e="";return this.provisioner===s.lI&&(e=`harvester.storage.storageClass.longhorn.${this.longhornVersion}.label`),this.provisioner===c&&(e="harvester.storage.storageClass.lvm.label"),e?this.$rootGetters["i18n/t"](e):this.provisioner}get isEncrypted(){return"true"===this.parameters?.encrypted}get isLonghorn(){return this.provisioner===s.lI}get isLonghornV1(){return this.provisioner===s.lI&&this.longhornVersion===l.DATA_ENGINE_V1}get isLonghornV2(){return this.provisioner===s.lI&&this.longhornVersion===l.DATA_ENGINE_V2}get longhornV2LVMSupport(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("longhornV2LVMSupport")}get volumeEncryptionFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("volumeEncryption")}get thirdPartyStorageFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("thirdPartyStorage")}}},52528:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(20246),i=n.n(r),a=n(95479),o=n.n(a),s=n(2602),l=n(24222),c=n(32766);class u extends l["default"]{get availableActions(){const e=super._availableActions;if("harvester-system/rancher-vcluster"===this.id){const t={action:"goToRancher",enabled:this.spec.enabled,icon:"icon icon-external-link",label:this.t("harvester.addons.rancherVcluster.accessRancher")};e.push(t)}const t={action:"toggleAddon",enabled:!0,icon:this.spec.enabled?"icon icon-pause":"icon icon-play",label:this.spec.enabled?this.t("generic.disable"):this.t("generic.enable")};return e.unshift(t),e}async toggleAddon(){const e=this.spec.enabled;try{if(!this.spec.enabled&&"rancher-vcluster/rancher-vcluster"===this.id){const e=i().load(this.spec.valuesContent);if(!e.hostname||!e.bootstrapPassword)return void this.goToEdit()}this.spec.enabled=!this.spec.enabled,await this.save()}catch(t){this.spec.enabled=e,this.$dispatch("growl/fromError",{title:this.t("harvester.addons.switchFailed",{action:e?this.t("generic.disable"):this.t("generic.enable"),name:this.metadata.name}),err:t},{root:!0})}}goToRancher(){const e=i().load(this.spec.valuesContent);window.open(`https://${e.hostname}`,"_blank")}get rancherHostname(){const e=i().load(this.spec.valuesContent);return`https://${e.hostname}`}get stateColor(){const e=this.stateDisplay;return e?.toLowerCase().includes("enabled")||e?.toLowerCase().includes("success")?"text-success":"Disabled"===e?"text-darker":e?.toLowerCase().includes("ing")?"text-info":e?.toLowerCase().includes("failed")||e?.toLowerCase().includes("error")?"text-error":"text-info"}get stateDisplay(){const e=this?.status?.status;return e?e.startsWith("Addon")?o()(e.replace("Addon","")):e:"Disabled"}get stateDescription(){const e=(this.status?.conditions||[]).find((e=>"OperationFailed"===e.type));return e?.message||super.stateDescription}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${c.rk.ADD_ONS}"`,{count:1})?.trim()}get displayName(){const e="true"===this.metadata?.labels?.[s.r.ADDON_EXPERIMENTAL];return e?`${this.metadata.name} (${this.t("generic.experimental")})`:this.metadata.name}get customValidationRules(){let e=[];return"rancher-monitoring"===this.metadata.name&&(e=[{nullable:!1,path:"spec.valuesContent",validators:["rancherMonitoring"]}]),"rancher-logging"===this.metadata.name&&(e=[{nullable:!1,path:"spec.valuesContent",validators:["rancherLogging"]}]),e}}},46933:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(32766),i=n(24222);class a extends i["default"]{get childParts(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](r.rk.BLOCK_DEVICE),n=t.filter((e=>e.status?.deviceStatus?.parentDevice===this.spec?.devPath&&e.spec.nodeName===this.spec.nodeName));return n}get isChildPartProvisioned(){const e=this.childParts.filter((e=>e.isProvisioned))||[];return e.length>0}get provisionPhase(){const e=this?.status?.provisionPhase;let t="",n="";switch(e){case"Provisioned":t="bg-success",n="icon-checkmark";break;case"Unprovisioning":t="bg-warning",n="icon-warning";break;case"NotProvisioned":t="bg-error",n="icon-warning";break;default:break}return{label:e,color:t,icon:n}}get displayName(){return this.status?.deviceStatus?.devPath||this?.metadata?.name}get isFormatting(){const e=this?.status?.conditions||[],t=e.find((e=>"Formatting"===e.type))||{};return"True"===t.status}get isProvisioned(){return this.spec?.fileSystem?.provisioned||this.spec?.provision}cleanForSave(e){return e}}},72193:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(76978),i=n(68851),a=n(24222);class o extends a["default"]{get stateDisplay(){const e=(0,r.Jt)(this,"status.conditions"),t=((0,i.jq)(e,"type","validated")||{}).status;return"True"===t?"Validated":"Not Validated"}}},26422:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(24222),i=n(73883),a=n(14220),o=n(92043);class s extends r["default"]{detailPageHeaderActionOverride(e){if(e===a.YQ)return this.t("harvester.schedule.createTitle")}get _availableActions(){const e=["goToClone"],t=super._availableActions.filter((t=>{if(!e.includes(t.action))return t}));return[{action:"resumeSchedule",enabled:(0,o.TF)(this.state)===i.xj.suspended.label,icon:"icons icon-play",label:this.t("harvester.action.resumeSchedule")},{action:"suspendSchedule",enabled:(0,o.TF)(this.state)===i.xj.active.label,icon:"icons icon-pause",label:this.t("harvester.action.suspendSchedule")},...t]}async suspendSchedule(){try{this.spec.suspend=!0,await this.save()}catch(e){this.spec.suspend=!1,this.$dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,o.ZD)(this.metadata.name)}),err:e},{root:!0})}}async resumeSchedule(){try{this.spec.suspend=!1,await this.save()}catch(e){this.spec.suspend=!0,this.$dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,o.ZD)(this.metadata.name)}),err:e},{root:!0})}}get stateObj(){return this?.metadata?.state||{}}get state(){return!0===this.status?.suspended?i.xj.suspended.label:i.xj.active.label}get stateDescription(){const e=(this.status?.conditions||[]).find((e=>"BackupSuspend"===e.type));return(0,o.TF)(e?.message)||super.stateDescription}get stateBackground(){return(0,i.uU)(this.stateDisplay).replace("text-","bg-")}get stateColor(){return(0,i.uU)(this.state)}get stateDisplay(){return(0,i.ch)(this.state)}}},96214:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(68851),i=n(32766),a=n(50889),o=n(20652),s=n(24222);class l extends s["default"]{get _availableActions(){const e=["cloneYaml","download","goToEditYaml","goToViewYaml","goToViewConfig","promptRemove"],t=a.gh[this.id];let n=super._availableActions;(t?.readOnly||this.fromEnv)&&e.push("goToEdit"),n=n.filter((t=>!e.includes(t.action)));const r=n.find((e=>"goToEdit"===e.action));r&&(r.label=this.t("advancedSettings.edit.label"));const o=this.$getters["schemaFor"](i.rk.UPGRADE),s=!!o?.collectionMethods.find((e=>["post"].includes(e.toLowerCase())));return this.id===a.EP.SERVER_VERSION&&s&&n.unshift({action:"goToAirgapUpgrade",enabled:!0,icon:"icon icon-refresh",label:this.t("harvester.upgradePage.upgrade")}),n}goToAirgapUpgrade(){const e=this.currentRouter();e.push({name:`${o.KR}-c-cluster-airgapupgrade`,params:{cluster:this.$rootGetters["currentCluster"].id,product:"harvester"}})}get customValue(){if(this.metadata.name===a.EP.STORAGE_NETWORK)try{return JSON.stringify(JSON.parse(this.value),null,2)}catch(e){}return!1}get customFormatter(){if(this.metadata.name===a.EP.STORAGE_NETWORK)try{return JSON.stringify(JSON.parse(this.value),null,2),"json"}catch(e){}return!1}get backupTargetIsEmpty(){return!this.value}get errMessage(){const e=(0,r.jq)(this?.status?.conditions||[],"type","configured")||{};return!0===this.metadata?.state?.error?this.metadata.state.message:"False"===e?.status&&e.message}get valueOrDefaultValue(){return this.value||this.default}get currentVersion(){return this.value||""}get displayValue(){return"backup-target"===this.id?this.parseValue?.endpoint||" ":null}get parseValue(){let e={};try{e=JSON.parse(this.value)}catch(t){e=JSON.parse(this.default)}return e}get isS3(){return"s3"===this.parseValue.type}get isNFS(){return"nfs"===this.parseValue.type}get customValidationRules(){const e=this.id,t=[];switch(e){case"backup-target":t.push({nullable:!1,path:"value",type:"string",validators:["backupTarget"]});break;case"ntp-servers":t.push({nullable:!0,path:"value",validators:["ntpServers"]});break}return t}}},25661:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(24222);class i extends r["default"]{get bundleState(){const e=this?.status?.state;return e}get bundleMessage(){const e=this?.metadata?.state;return!!e.error&&e?.message}get precent(){return this?.status?.progress/100||0}get customValidationRules(){return[{nullable:!1,path:"spec.description",required:!0,translationKey:"harvester.modal.bundle.description"}]}}},39334:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(20246),i=n.n(r),a=n(35664),o=n(73883),s=n(2602),l=n(24222);class c extends l["default"]{get isLatestUpgrade(){return"true"===this?.metadata?.labels?.[s.r.LATEST_UPGRADE]}get isUpgradeFailed(){return"Failed"===this?.metadata?.labels?.[s.r.UPGRADE_STATE]}get isUpgradeSucceeded(){return"Succeeded"===this?.metadata?.labels?.[s.r.UPGRADE_STATE]}get hasReadMessage(){return"true"===this?.metadata?.labels?.[s.r.REAY_MESSAGE]}get repoInfo(){const e=this?.status?.repoInfo;if(e)try{return i().load(e)}catch(t){return!1}return!1}get stateDisplay(){const e=this?.status?.conditions||[],t=e.find((e=>"Completed"===e.type)),n=t?.status;return"True"===n?"Success":"False"===n?"Fail":"on-going"}get stateColor(){return(0,o.uU)(this.stateDisplay)}get nodes(){return this.$rootGetters["harvester/all"](a.NW)}get upgradeImage(){return this?.status?.imageID}cleanForSave(e,t){return e}get upgradeMessage(){const e=[],t=this?.status?.nodeStatuses||{},n=this?.status?.conditions||[];for(const r in t){const n=t[r]?.state;t[r]&&"Succeeded"!==n&&"succeeded"!==n&&e.push({id:r,message:`The node ${r} is ${t[r]?.state}`})}for(let r=0;r<n.length;r++){const t=n[r].type;"systemServiceUpgraded"===t&&"True"!==n[r]?.status&&e.push({id:"systemService",message:"The systemService is upgrading"})}return this.metadata?.state?.message&&this.metadata?.state?.error&&e.push({id:"message",message:`${this.metadata.state.message}`}),e}get createRepo(){const e=this?.status?.conditions||[],t=e.find((e=>"RepoReady"===e.type)),n="True"===t?.status;return{isReady:n,message:t?.message||t?.reason}}get overallMessage(){const e=this?.status?.conditions||[],t=e.find((e=>"Completed"===e.type)),n="False"===t?.status,r=t?.message||t?.reason;return n?r:""}get upgradeImageMessage(){const e=this?.status?.conditions||[],t=e.find((e=>"ImageReady"===e.type)),n="True"===t?.status,r=t?.message||t?.reason;return n?"":r}get nodeUpgradeMessage(){const e=[],t=this?.status?.nodeStatuses||{};for(const n in t){const r=t[n]?.state,i=t[n]?.message;let a=0;"Upgrading"===r?a=50:"Succeeded"!==r&&"succeeded"!==r||(a=100),e.push({name:n,state:r,percent:a,message:i})}for(const n of this.nodes){const t=e.find((e=>e.name===n.id));t||e.push({name:n.id,state:"Pending",percent:0})}return e}get nodeTotalPercent(){let e=0;for(let r=0;r<this.nodeUpgradeMessage.length;r++)e+=this.nodeUpgradeMessage[r].percent;e=Math.floor(e/this.nodeUpgradeMessage.length);const t=this?.status?.conditions||[],n=t.find((e=>"NodesUpgraded"===e.type));return 100!==e||n||(e=99),e}get sysServiceUpgradeMessage(){let e=0,t="Pending";const n=[],r=this?.status?.conditions||[];for(let i=0;i<r.length;i++){const a=r[i].type;"SystemServicesUpgraded"===a&&("True"===r[i].status?(e=100,t="Succeeded"):e=50,n.push({name:"system services",state:t,percent:e,message:r[i]?.message}))}return 0===n.length&&n.push({name:"system services",state:t,percent:e}),n}get totalPercent(){const e=this.nodeTotalPercent*this.nodeUpgradeMessage.length,t=this.sysServiceUpgradeMessage?.[0].percent;return Math.floor((e+t)/(this.nodeUpgradeMessage.length+1))}}},25418:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(76978),i=n(52225),a=n.n(i),o=n(68851),s=n(32766),l=n(24222);class c extends l["default"]{get canStartedDownload(){const e=(0,r.Jt)(this,"status.conditions"),t=((0,o.jq)(e,"type","DownloadReady")||{}).status;return"True"===t}downloadLog(e){const t=a()(window.history.href),n=this.$rootGetters["clusterId"],r=`/k8s/clusters/${n}`;this.$rootGetters["isMultiCluster"]?window.location.href=`${t.origin}${r}/v1/harvester/${s.rk.UPGRADE_LOG}s/${this.id}/download?archiveName=${e}`:window.location.href=`${t.origin}/v1/harvester/${s.rk.UPGRADE_LOG}s/${this.id}/download?archiveName=${e}`}fileIsReady(e){const t=(this.status?.archives||{})[e];return!0===t?.ready||t?.reason}downloadArchivesStatus(e){return(this.status?.archives||{})[e]?.reason}get latestArchivesFileName(){const e=this.status?.archives||{},t=`${this.metadata.name}-archive-`,n=Object.keys(e).map((e=>e.replace(t,""))),r=n.sort(((e,t)=>{const n=e.replace(/(\d{2})-(\d{2})-(\d{2})T(\d{2})-(\d{2})-(\d{2})Z/,"$1-$2-$3T$4:$5:$6Z"),r=t.replace(/(\d{2})-(\d{2})-(\d{2})T(\d{2})-(\d{2})-(\d{2})Z/,"$1-$2-$3T$4:$5:$6Z");return Date.parse(r)-Date.parse(n)})).map((e=>`${t}${e}`));return r[0]}}},64778:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(76978),i=n(68851),a=n(73883),o=n(2602),s=n(14220),l=n(32766),c=n(20652),u=n(41837),d=n(24222);class h extends d["default"]{detailPageHeaderActionOverride(e){const t=this.currentRoute();if(e===s.YQ)return t.params.resource===l.rk.BACKUP?this.t("harvester.backup.title"):this.t("harvester.vmSnapshot.title")}get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=l.rk.BACKUP,e}get doneOverride(){const e=this.currentRoute(),t=(0,r.o8)(this._detailLocation);return delete t.params.namespace,delete t.params.id,t.params.resource=e.params.resource,t.name=`${c.KR}-c-cluster-resource`,t}get parentNameOverride(){const e=this.currentRoute();return this.$rootGetters["i18n/t"](`typeLabel."${e.params.resource}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get _availableActions(){const e=["goToEdit","cloneYaml","goToClone","download"],t=super._availableActions.filter((t=>{if(!e.includes(t.action))return t})),n=this.$getters["schemaFor"](l.rk.VM);let r=!0;return n&&!n?.collectionMethods.find((e=>["post"].includes(e.toLowerCase())))&&(r=!1),[{action:"restoreExistingVM",enabled:r&&this.attachVmExisting&&this?.status?.readyToUse,icon:"icons icon-refresh",label:this.t("harvester.action.restoreExistingVM")},{action:"restoreNewVM",enabled:r&&this?.status?.readyToUse,icon:"icons icon-backup",label:this.t("harvester.action.restoreNewVM")},...t]}restoreExistingVM(e=this){const t=this.currentRouter(),n=e.spec.type===u.aS.BACKUP?l.rk.BACKUP:l.rk.VM_SNAPSHOT;t.push({name:`${c.KR}-c-cluster-resource-create`,params:{resource:n},query:{restoreMode:"existing",resourceName:e.name}})}restoreNewVM(e=this){const t=this.currentRouter(),n=e.spec.type===u.aS.BACKUP?l.rk.BACKUP:l.rk.VM_SNAPSHOT;t.push({name:`${c.KR}-c-cluster-resource-create`,params:{resource:n},query:{restoreMode:"new",resourceName:e.name}})}get state(){let e="Pending";const t=(0,r.Jt)(this,"status.conditions"),n="True"===(0,i.jq)(t,"type","InProgress")?.status,a="True"===(0,i.jq)(t,"type","Ready")?.status;return this?.status?.readyToUse?e="Ready":n?e="Progressing":a||(e="error"),e}get stateColor(){const e=this.state;return(0,a.uU)(e)}get sourceSchedule(){return this.metadata?.annotations?.[o.r.SVM_BACKUP_ID]}get attachVM(){return this.spec.source.name}get backupContentName(){return this?.status?.virtualMachineBackupContentName||""}get backupProgress(){return{type:u.aS.BACKUP,percentage:void 0!==this.status?.progress||this.status?.readyToUse?this.status?.progress:0,details:{volumes:this.status?.volumeBackups}}}get backupTarget(){return this?.status?.backupTarget?.endpoint||""}get attachVmExisting(){const e=this.$rootGetters["harvester/all"](l.rk.VM);return!!e.find((e=>e.metadata.name===this.attachVM))}remove(){const e={...arguments};return e.params={propagationPolicy:"Foreground"},this._remove(e)}}},38287:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return b}});var r=n(2841),i=n(2602),a=n(76978),o=n(95799),s=n(92043),l=n(73883),c=n(14220),u=n(32766),d=n(20652),h=n(24222),p=n(66905),f=n(84757);const{CSI_PROVISIONER_SECRET_NAME:m,CSI_PROVISIONER_SECRET_NAMESPACE:g}=p.Et;function v(){function e(e,t=[]){const n=Array.isArray((0,a.Jt)(this,"status.conditions"))?this.status.conditions:t;return n.find((t=>t.type===e))}const t=e.call(this,"Initialized"),n=e.call(this,"Imported"),r=100===this.status?.progress;return![t?.status,n?.status].includes("False")&&(r&&!0)}class b extends h["default"]{get availableActions(){let e=super._availableActions;const t=["goToEditYaml"];e=e.filter((e=>!t.includes(e.action)));const n=this.$getters["schemaFor"](u.rk.VM);let r=!0;n&&!n?.collectionMethods.find((e=>["post"].includes(e.toLowerCase())))&&(r=!1);const i=this.isReady?[{action:"createFromImage",enabled:r,icon:"icon icon-circle-plus",label:this.t("harvester.action.createVM")},{action:"encryptImage",enabled:this.volumeEncryptionFeatureEnabled&&!this.isEncrypted,icon:"icon icon-lock",label:this.t("harvester.action.encryptImage")},{action:"decryptImage",enabled:this.volumeEncryptionFeatureEnabled&&this.isEncrypted,icon:"icon icon-unlock",label:this.t("harvester.action.decryptImage")},{action:"imageDownload",enabled:this.links?.download,icon:"icon icon-download",label:this.t("asyncButton.download.action")}]:[];let a;return a=i.length>0?e:e[0]?.divider?e.slice(1):e,[...i,...a]}encryptImage(){const e=this.currentRouter();e.push({name:`${d.KR}-c-cluster-resource-create`,params:{resource:u.rk.IMAGE},query:{image:JSON.stringify({metadata:{name:this.metadata.name,namespace:this.metadata.namespace}}),fromPage:u.rk.IMAGE,sourceType:"clone",cryptoOperation:"encrypt"}})}decryptImage(){const e=this.currentRouter();e.push({name:`${d.KR}-c-cluster-resource-create`,params:{resource:u.rk.IMAGE},query:{image:JSON.stringify({metadata:{name:this.metadata.name,namespace:this.metadata.namespace}}),fromPage:u.rk.IMAGE,sourceType:"clone",cryptoOperation:"decrypt"}})}applyDefaults(e=this,t){t!==c.dT&&(this.metadata["labels"]={[i.r.OS_TYPE]:"",[i.r.IMAGE_SUFFIX]:""},this.metadata["annotations"]={[i.r.STORAGE_CLASS]:""})}createFromImage(){const e=this.currentRouter();e.push({name:`${d.KR}-c-cluster-resource-create`,params:{resource:u.rk.VM},query:{image:this.id,fromPage:u.rk.IMAGE}})}cleanForNew(){this.$dispatch("cleanForNew",this),delete this.spec.displayName}get nameDisplay(){return this.spec?.displayName}get isOSImage(){return"True"===this?.metadata?.annotations?.[i.r.OS_UPGRADE_IMAGE]}get isReady(){return v.call(this)}get stateDisplay(){const e=this.getStatusConditionOfType("Initialized"),t=this.getStatusConditionOfType("Imported");return"Unknown"===t?.status?"restore"===this.spec.sourceType?"Restoring":"download"===this.spec.sourceType?"Downloading":"upload"===this.spec.sourceType?this.uploadError?"Failed":"Uploading":"Exporting":e?.message||t?.message?"Failed":(0,l.ch)(this.metadata.state.name)}get encryptionSecret(){const e=this.spec.storageClassParameters[g],t=this.spec.storageClassParameters[m];return e&&t?`${e}/${t}`:""}get isEncrypted(){return"clone"===this.spec.sourceType&&"encrypt"===this.spec.securityParameters?.cryptoOperation&&!!this.spec.securityParameters?.sourceImageName&&!!this.spec.securityParameters?.sourceImageNamespace}get displayNameWithNamespace(){return`${this.metadata.namespace}/${this.spec.displayName}`}get imageStorageClass(){return this?.metadata?.annotations?.[i.r.STORAGE_CLASS]||""}get imageMessage(){if(this.uploadError)return(0,s.TF)(this.uploadError);const e=this?.status?.conditions||[],t=e.find((e=>"Initialized"===e.type)),n=e.find((e=>"Imported"===e.type)),r=e.find((e=>"RetryLimitExceeded"===e.type)),i=t?.message||n?.message||r?.message;return(0,s.TF)(i)}get stateBackground(){return(0,l.uU)(this.stateDisplay).replace("text-","bg-")}get imageSource(){return(0,a.Jt)(this,"spec.sourceType")||"download"}get progress(){return this?.status?.progress||0}get annotationsToIgnoreRegexes(){return[r.tC].concat(r.S5)}get downSize(){const e=this.status?.size;return e?(0,o.Mo)(e,{increment:1024,maxPrecision:2,suffix:f.jx,firstSuffix:f.jx}):"-"}get virtualSize(){const e=this.status?.virtualSize;return e?(0,o.Mo)(e,{increment:1024,maxPrecision:2,suffix:f.jx,firstSuffix:f.jx}):"-"}getStatusConditionOfType(e,t=[]){const n=Array.isArray((0,a.Jt)(this,"status.conditions"))?this.status.conditions:t;return n.find((t=>t.type===e))}get stateObj(){const e=(0,a.o8)(this.metadata?.state),t=this.getStatusConditionOfType("Initialized"),n=this.getStatusConditionOfType("Imported");return([t?.status,n?.status].includes("False")||this.uploadError)&&(e.error=!0),e}get stateDescription(){return this.imageMessage}get displayName(){return this.spec?.displayName}get storageClassName(){return this.status?.storageClassName||""}get uploadImage(){return async(e,t={})=>{const n=new FormData;n.append("chunk",e);try{this.$ctx.commit("harvester-common/uploadStart",this.metadata.name,{root:!0});const r=await this.doAction("upload",n,{headers:{"Content-Type":"multipart/form-data","File-Size":e.size},params:{size:e.size},signal:t.signal});return r}catch(r){throw this.$ctx.commit("harvester-common/uploadError",{name:this.name,message:r.message},{root:!0}),this.$ctx.commit("harvester-common/uploadEnd",this.metadata.name,{root:!0}),r}finally{this.$ctx.commit("harvester-common/uploadEnd",this.metadata.name,{root:!0})}}}get uploadError(){return this.$rootGetters["harvester-common/uploadingImageError"](this.name)}get imageSuffix(){return this.metadata?.labels?.[i.r.IMAGE_SUFFIX]}get imageOSType(){return this.metadata?.labels?.[i.r.OS_TYPE]}get customValidationRules(){const e=[];if("download"===this.imageSource){const t={nullable:!1,path:"spec.url",validators:["imageUrl"]},n={nullable:!1,path:"spec.url",required:!0,translationKey:"harvester.image.url"};e.push(t,n)}if("upload"===this.imageSource){const t={nullable:!1,path:"metadata.annotations",validators:["fileRequired"]};e.push(t)}if(this.spec?.checksum?.length){const t={path:"spec.checksum",validators:["hashSHA512"]};e.push(t)}return[{nullable:!1,path:"spec.displayName",required:!0,minLength:1,maxLength:63,translationKey:"generic.name"},...e]}get volumeEncryptionFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("volumeEncryption")}get thirdPartyStorageFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("thirdPartyStorage")}imageDownload(e=this){"cdi"===this.spec?.backend?this.$dispatch("promptModal",{resources:e,component:"HarvesterImageDownloader"}):this.downloadViaLink()}downloadViaLink(){window.location.href=this.links.download}}},82680:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(24222);class i extends r["default"]{get isComplete(){return this?.status?.complete||!1}get pvcNames(){const e=this?.status?.restores||[],t=e.map((e=>e?.persistentVolumeClaimSpec?.name));return t}get customValidationRules(){const e=this.spec?.newVM,t=[{nullable:!1,path:"spec.target.name",required:!0,minLength:1,maxLength:63,translationKey:"harvester.fields.virtualName"},{nullable:!1,path:"spec.virtualMachineBackupName",required:!0,translationKey:"harvester.backup.restore.backup"}];return e||t.push({path:"spec.deletionPolicy",required:!0,type:"string",translationKey:"harvester.backup.restore.deletePreviousVolumes"}),t}}},61746:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(14220),i=n(32766),a=n(20652),o=n(24222),s=n(76978);class l extends o["default"]{get availableActions(){const e=["goToEdit","cloneYaml","goToClone","goToEditYaml","download"],t=super._availableActions.filter((t=>{if("remove"===t.altAction&&(t.bulkable=!1),!e.includes(t.action))return t})),n=this.$getters["schemaFor"](i.rk.VM);let r=!0;return n&&!n?.collectionMethods.find((e=>["post"].includes(e.toLowerCase())))&&(r=!1),[{action:"createFromTemplate",enabled:r,icon:"icon icon-spinner",label:this.t("harvester.action.createVM")},{action:"addVersion",enabled:this.canCreate,icon:"icon icon-fw icon-circle-plus",label:this.t("harvester.action.addTemplateVersion")},...t]}createFromTemplate(){const e=this.currentRouter();e.push({name:`${a.KR}-c-cluster-resource-create`,params:{resource:i.rk.VM},query:{templateId:this.id,versionId:this.spec.defaultVersionId}})}get cpuPinningFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("cpuPinning")}addVersion(e={}){const t=this.currentRouter();t.push({name:`${a.KR}-c-cluster-resource-create`,params:{resource:i.rk.VM_VERSION},query:{[r.g]:r.YQ,templateId:this.id}})}get defaultVersion(){return this.status?.defaultVersion}get doneOverride(){const e=(0,s.o8)(this.listLocation);return e.params.resource=i.rk.VM_VERSION,e}}},96608:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var r=n(45250),i=n(14220),a=n(2602),o=n(68851),s=n(76978),l=n(73883),c=n(92043),u=n(20652),d=n(32766),h=n(24222);class p extends h["default"]{get availableActions(){let e=super._availableActions;const t=["goToClone","cloneYaml","goToViewConfig","goToEditYaml","goToViewYaml"];e=e.filter((e=>{if(!t.includes(e.action))return e}));const n=this.$getters["schemaFor"](d.rk.VM);let r=!0;return n&&!n?.collectionMethods.find((e=>["post"].includes(e.toLowerCase())))&&(r=!1),[{action:"launchFromTemplate",icon:"icon icon-spinner",disabled:!r||!this.isReady,label:this.t("harvester.action.launchFormTemplate")},{action:"cloneTemplate",enabled:this.currentTemplate?.canCreate,icon:"icon icon-fw icon-edit",label:this.t("harvester.action.modifyTemplate")},{action:"setDefaultVersion",enabled:this.currentTemplate?.canCreate,icon:"icon icon-fw icon-checkmark",label:this.t("harvester.action.setDefaultVersion")},{action:"goToViewConfig",label:this.t("action.view"),icon:"icon icon-edit"},...e]}applyDefaults(){const e={vm:{metadata:{annotations:{[a.r.VOLUME_CLAIM_TEMPLATE]:"[]"}},spec:{runStrategy:"RerunOnFailure",template:{metadata:{annotations:{}},spec:{domain:{machine:{type:""},cpu:{cores:null,sockets:1,threads:1},devices:{inputs:[{bus:"usb",name:"tablet",type:"tablet"}],interfaces:[{masquerade:{},model:"virtio",name:"default"}],disks:[]},resources:{limits:{memory:null,cpu:""}},features:{acpi:{enabled:!0}}},evictionStrategy:"LiveMigrateIfPossible",hostname:"",networks:[{name:"default",pod:{}}],volumes:[],affinity:{}}}}}};this["spec"]=e}get canDelete(){return this.hasLink("remove")&&this.$rootGetters["type-map/optionsFor"](this.type).isRemovable&&!this.isDefaultVersion}get template(){return this.$rootGetters["harvester/all"](d.rk.VM_TEMPLATE).find((e=>e.id===this.spec.templateId))}get isReady(){const e=(0,s.Jt)(this,"status.conditions"),t=(0,o.jq)(e,"type","ready");return!t||"True"===t?.status}get stateDisplay(){return this.isReady?"Active":"Not Ready"}get stateColor(){const e=this.stateDisplay;return(0,l.uU)(e)}get version(){return this?.status?.version}get templates(){return this.$rootGetters["harvester/all"](d.rk.VM_TEMPLATE)}get machineType(){return this.vm?.spec?.template?.spec?.domain?.machine?.type||""}get templateId(){return this.spec.templateId}launchFromTemplate(){const e=this.currentTemplate,t=e.id,n=this.id,r=this.currentRouter();r.push({name:`${u.KR}-c-cluster-resource-create`,params:{resource:d.rk.VM},query:{templateId:t,versionId:n}})}cloneTemplate(e={}){const t=this.detailLocation;t.query={...t.query,[i.g]:i.G5,[i.AS]:i.xz,...e},this.currentRouter().push(t)}goToViewConfig(e={}){const t=this.detailLocation;t.query={...t.query,[i.g]:i.nW,[i.AS]:i.au,templateId:this.templateId,...e},this.currentRouter().push(t)}get currentTemplate(){return(0,r.find)(this.templates,(e=>e.id===this.templateId))}async setDefaultVersion(e={}){const t=this.currentTemplate;t.spec.defaultVersionId=this.id,await t.save()}get cpuPinningFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("cpuPinning")}get defaultVersion(){const e=this.$rootGetters["harvester/all"](d.rk.VM_TEMPLATE),t=e.find((e=>this.templateId===e.id));return t?.status?.defaultVersion}get isDefaultVersion(){return this.defaultVersion===this?.status?.version}get customValidationRules(){const e=[];return e}get instanceLabels(){const e=this.spec?.vm?.spec?.template?.metadata?.labels||{};return(0,r.omitBy)(e,((e,t)=>(0,c.HV)(t,a.l)))}setInstanceLabels(e){this.spec?.vm?.spec?.template?.metadata?.labels||(0,s.hZ)(this,"spec.vm.spec.template.metadata.labels",{});const t=this.spec.vm.spec.template.metadata.labels||{},n=(0,r.pickBy)(t,((e,t)=>(0,c.HV)(t,a.l)));this.spec.vm.spec.template.metadata["labels"]={...n,...e}}get tpmPersistentStateFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("tpmPersistentState")}get efiPersistentStateFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("efiPersistentState")}}},43842:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(25184),i=n(2841),a=n(41837);const{UNTAGGED:o}=a.AW;class s extends r.A{applyDefaults(){const e=this.spec||{config:JSON.stringify({cniVersion:"0.3.1",name:"",type:"bridge",bridge:"",promiscMode:!0,vlan:"",ipam:{}})};this.spec=e}get parseConfig(){try{return JSON.parse(this.spec.config)||{}}catch(e){return{}}}get isIpamStatic(){return"static"===this.parseConfig.ipam?.type}get clusterNetwork(){return this?.metadata?.labels?.[i.rk.CLUSTER_NETWORK]}get vlanType(){const e=this.metadata?.labels||{},t=e[i.rk.NETWORK_TYPE];return t}get vlanId(){return this.vlanType===o?"N/A":this.parseConfig.vlan}get customValidationRules(){const e=[{nullable:!1,path:"metadata.name",required:!0,minLength:1,maxLength:63,translationKey:"harvester.fields.name"}];return e}get connectivity(){const e=this.metadata?.annotations||{},t=e[i.rk.NETWORK_ROUTE];let n={};if(this.vlanType===o)return"N/A";try{n=JSON.parse(t||"{}")}catch{return"invalid"}const r=n.connectivity;return"false"===r?"inactive":"true"===r?"active":r}}},50784:function(e,t,n){"use strict";n.r(t),n.d(t,{OFF:function(){return b},default:function(){return H}});var r=n(20246),i=n(45250),a=n(20652),o=n(73883),s=n(35664),l=n(68851),c=n(95799),u=n(76978),d=n(2602),h=n(14220),p=n(92043),f=n(66490),m=n(41837),g=n(32766),v=n(24222);const b="Off",y="The virtual machine is waiting for resources to become available.",w="VM error",E="Stopping",_="Unschedulable",S="Waiting",k="Not Ready",x="AgentConnected",A="Paused",N="This VM has been paused. If you wish to unpause it, please click the Unpause button below. For further details, please check with your system administrator.",C="POD_NOT_SCHEDULABLE",T="POD_CONTAINER_FAILING",R="POD_FAILED",O="POD_CRASHLOOP_BACKOFF",I="POD_STATUS_UNKNOWN",L=[C,T,R,O,I],D="POD_STATUS_COMPLETED",P="POD_STATUS_SUCCEEDED",M="POD_STATUS_RUNNING",B=[M,D,P],F={Always:"Always",RerunOnFailure:"RerunOnFailure",Halted:"Halted",Manual:"Manual"},$={Start:"Start",Stop:"Stop"},U="This virtual machine will start shortly. Preparing storage, networking, and compute resources.",j={Pending:"Pending",Scheduling:"Scheduling",Scheduled:"Scheduled",Running:"Running",Succeeded:"Succeeded",Failed:"Failed",Unknown:"Unknown"};let V;const K=["pod has unbound immediate PersistentVolumeClaims"];class H extends v["default"]{get availableActions(){let e=super._availableActions;if(this.longhornV2Volumes.length>0)e=e.filter((e=>"goToClone"!==e.action));else{const t=e.find((e=>"goToClone"===e.action));t&&(t.action="goToCloneVM")}return[{action:"stopVM",altAction:"altStopVM",enabled:!!this.actions?.stop,icon:"icon icon-close",label:this.t("harvester.action.stop"),bulkable:!0,bulkAction:"stopVM"},{action:"forceStop",enabled:!!this.actions?.forceStop,icon:"icon icon-close",label:this.t("harvester.action.forceStop"),bulkable:!0},{action:"pauseVM",altAction:"altPauseVM",enabled:!!this.actions?.pause,icon:"icon icon-pause",label:this.t("harvester.action.pause")},{action:"unpauseVM",enabled:!!this.actions?.unpause,icon:"icon icon-spinner",label:this.t("harvester.action.unpause")},{action:"restartVM",enabled:!!this.actions?.restart,icon:"icon icon-refresh",label:this.t("harvester.action.restart"),bulkable:!0},{action:"softrebootVM",enabled:!!this.actions?.softreboot,icon:"icon icon-pipeline",label:this.t("harvester.action.softreboot")},{action:"startVM",enabled:!!this.actions?.start,icon:"icon icon-play",label:this.t("harvester.action.start"),bulkable:!0},{action:"backupVM",enabled:!!this.actions?.backup,icon:"icon icon-backup",label:this.t("harvester.action.backup")},{action:"takeVMSnapshot",enabled:(!!this.actions?.snapshot||!!this.action?.backup)&&!this.longhornV2Volumes.length,icon:"icon icon-snapshot",label:this.t("harvester.action.vmSnapshot")},{action:"editVMQuota",enabled:!!this.actions?.updateResourceQuota&&!!this.actions.deleteResourceQuota,icon:"icon icon-storage",label:this.t("harvester.action.editVMQuota")},{action:"createSchedule",enabled:this.schedulingVMBackupFeatureEnabled,icon:"icon icon-history",label:this.t("harvester.action.createSchedule")},{action:"restoreVM",enabled:!!this.actions?.restore,icon:"icon icon-backup-restore",label:this.t("harvester.action.restore")},{action:"ejectCDROM",enabled:!!this.actions?.ejectCdRom,icon:"icon icon-delete",label:this.t("harvester.action.ejectCDROM")},{action:"migrateVM",enabled:!!this.actions?.migrate,icon:"icon icon-copy",label:this.t("harvester.action.migrate")},{action:"abortMigrationVM",enabled:!!this.actions?.abortMigration,icon:"icon icon-close",label:this.t("harvester.action.abortMigration")},{action:"addHotplug",enabled:!!this.actions?.addVolume,icon:"icon icon-plus",label:this.t("harvester.action.addHotplug")},{action:"createTemplate",enabled:!!this.actions?.createTemplate,icon:"icon icon-copy",label:this.t("harvester.action.createTemplate")},{action:"openLogs",enabled:!!this.podResource,icon:"icon icon-fw icon-chevron-right",label:this.t("harvester.action.viewlogs"),total:1},...e]}get productInStore(){return V||(V=this.$rootGetters["currentProduct"].inStore),V}applyDefaults(e=this,t){const n={runStrategy:"RerunOnFailure",template:{metadata:{annotations:{}},spec:{domain:{machine:{type:""},cpu:{cores:null,sockets:1,threads:1},devices:{inputs:[{bus:"usb",name:"tablet",type:"tablet"}],interfaces:[{masquerade:{},model:"virtio",name:"default"}],disks:[]},resources:{limits:{memory:null,cpu:""}},features:{acpi:{enabled:!0}}},evictionStrategy:"LiveMigrateIfPossible",hostname:"",networks:[{name:"default",pod:{}}],volumes:[],affinity:{}}}};t!==h.dT&&(this.metadata["annotations"]={[d.r.VOLUME_CLAIM_TEMPLATE]:"[]"},this["spec"]=n)}cleanForNew(){this.$dispatch("cleanForNew",this),this.spec.template.spec.hostname="";const e=this.spec.template.spec.domain.devices?.interfaces||[];for(let n=0;n<e.length;n++)e[n].macAddress&&(e[n].macAddress="");const t=this.volumeClaimTemplates.map((e=>(e?.spec?.dataSource&&delete e.spec.dataSource,e)));this.metadata.annotations[d.r.VOLUME_CLAIM_TEMPLATE]=JSON.stringify(t)}restartVM(){this.doActionGrowl("restart",{})}softrebootVM(){this.doActionGrowl("softreboot",{})}openLogs(){this.$dispatch("wm/open",{id:`${this.id}-logs`,label:this.nameDisplay,icon:"file",component:"ContainerLogs",attrs:{pod:this.podResource,initialContainer:this.podResource.metadata.annotations["kubectl.kubernetes.io/default-container"]}},{root:!0})}createSchedule(e=this){const t=this.currentRouter();t.push({name:`${a.KR}-c-cluster-resource-create`,params:{resource:g.rk.SCHEDULE_VM_BACKUP},query:{vmNamespace:this.metadata.namespace,vmName:this.metadata.name}})}backupVM(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterBackupModal"})}takeVMSnapshot(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterVMSnapshotDialog"})}editVMQuota(e=this){this.$dispatch("promptModal",{resources:e,snapshotSizeQuota:this.snapshotSizeQuota,component:"HarvesterQuotaDialog"})}unplugVolume(e){const t=this;this.$dispatch("promptModal",{resources:t,diskName:e,component:"HarvesterUnplugVolume"})}restoreVM(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterRestoreDialog"})}get machineType(){return this.spec?.template?.spec?.domain?.machine?.type||""}get realAttachNodeName(){const e=this.$getters["byId"](g.rk.VMI,this.id),t=e?.status?.nodeName,n=this.$getters["byId"](s.NW,t);return n?.nameDisplay||""}get nodeName(){const e=this.$getters["byId"](g.rk.VMI,this.id),t=e?.status?.nodeName,n=this.$getters["byId"](s.NW,t);return n?.id}pauseVM(e=this){this.$dispatch("promptModal",{resources:e,action:"pause",warningMessageKey:"dialog.confirmExecution.pause.message",component:"ConfirmExecutionDialog"})}altPauseVM(){this.doActionGrowl("pause",{})}goToCloneVM(e=this){this.$dispatch("promptModal",{resources:e,component:"CloneVmDialog"})}unpauseVM(){this.doActionGrowl("unpause",{})}stopVM(e=this){this.$dispatch("promptModal",{resources:e,action:"stop",warningMessageKey:"dialog.confirmExecution.stop.message",component:"ConfirmExecutionDialog"})}altStopVM(){this.doActionGrowl("stop",{})}forceStop(){this.doActionGrowl("forceStop",{})}startVM(){this.doActionGrowl("start",{})}migrateVM(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterMigrationDialog"})}ejectCDROM(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterEjectCDROMDialog"})}abortMigrationVM(){this.doActionGrowl("abortMigration",{})}createTemplate(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterCloneTemplate"})}addHotplug(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterAddHotplugModal"})}get networksName(){const e=this.spec.template.spec.domain.devices?.interfaces||[];return e.map((e=>e.name))}get isOff(){return this.isVMExpectedRunning?null:{status:b}}get isWaitingForVMI(){return this&&this.isVMExpectedRunning&&!this.isVMCreated?{status:S,message:y}:null}get cpuPinningFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("cpuPinning")}get isCpuPinning(){return!0===this.spec?.template?.spec?.domain?.cpu?.dedicatedCpuPlacement}get isVMExpectedRunning(){if(!this?.spec)return!1;const{running:e=null,runStrategy:t=null}=this.spec,n=this?.status?.conditions||[];if(e)return!0;if(null!==t){let e;switch(t){case F.Halted:return!1;case F.Always:return!0;case F.RerunOnFailure:return!("ErrorUnschedulable"!==this.status?.printableStatus||!n.find((e=>e.message&&e.message.includes(K))))||["Starting","Running"].includes(this.status?.printableStatus);case F.Manual:default:return e=new Set((this.status?.stateChangeRequests||[]).map((e=>e?.action))),!e.has($.Stop)&&(!!e.has($.Start)||(0===e.size?["Starting","Running"].includes(this.status?.printableStatus):this.isVMCreated))}}return!1}get podResource(){const e=this.productInStore,t=this.$rootGetters[`${e}/byId`](g.rk.VMI,this.id),n=this.$rootGetters[`${e}/all`](s.Sm);return n.find((e=>t?.metadata?.name&&t?.metadata?.name===e.metadata?.ownerReferences?.[0].name))}get isPaused(){const e=this.vmi?.status?.conditions||[],t=e.filter((e=>e.type===A)).length>0;return t?{status:A,message:N}:null}get isVMError(){const e=(0,u.Jt)(this,"status.conditions"),t=(0,l.jq)(e,"type","Failure");return t?{status:w,detailedMessage:t.message}:null}get nsResourceQuota(){const e=this.productInStore,t=this.$rootGetters[`${e}/all`](g.rk.RESOURCE_QUOTA);return t.find((e=>e.namespace===this.metadata.namespace))}get snapshotSizeQuota(){return this.nsResourceQuota?.spec?.snapshotLimit?.vmTotalSnapshotSizeQuota?.[this.metadata.name]}get vmi(){const e=this.productInStore,t=this.$rootGetters[`${e}/all`](g.rk.VMI);return t.find((e=>e.id===this.id))}get volumes(){const e=this.$rootGetters[`${this.productInStore}/all`](s.YH),t=this.spec.template.spec.volumes?.map((e=>e.persistentVolumeClaim?.claimName)).filter((e=>!!e))||[];return e.filter((e=>t.includes(e.metadata.name)))}get lvmVolumes(){return this.volumes.filter((e=>e?.isLvm))}get longhornV2Volumes(){return this.volumes.filter((e=>e?.isLonghornV2))}get encryptedVolumeType(){return this.volumes&&0!==this.volumes.length?this.volumes.every((e=>e.isEncrypted))?"all":this.volumes.some((e=>e.isEncrypted))?"partial":"none":"none"}get isError(){const e=(0,u.Jt)(this.vmi,"status.conditions"),t=(0,l.jq)(e,"type","Failure");return t?{status:"VMI error",detailedMessage:t.message}:((this.vmi||this.isVMCreated)&&this.podResource,this?.vmi?.status?.phase)}get isRunning(){const e=(0,u.Jt)(this.vmi,"status.conditions"),t="True"===(0,l.jq)(e,"type","Ready")?.status;return this.vmi?.status?.phase===j.Running&&t?{status:j.Running}:null}get isNotReady(){const e=(0,u.Jt)(this.vmi,"status.conditions"),t=(0,l.jq)(e,"type","Ready");return"False"===t?.status&&this.vmi?.status?.phase===j.Running?{status:k}:null}get isPending(){return this&&!this.isVMExpectedRunning&&this.isVMCreated&&this.vmi?.status?.phase===j.Pending?{status:j.Pending}:null}get isStopping(){return this&&!this.isVMExpectedRunning&&this.isVMCreated&&this.vmi?.status?.phase!==j.Succeeded&&this.vmi?.status?.phase!==j.Pending?{status:E}:null}get isStarting(){if(this.isVMExpectedRunning&&this.isVMCreated){if(this.podResource){const e=this.podResource.getPodStatus;if(!B.includes(e?.status))return{...e,status:"Starting",message:U,detailedMessage:e?.message,pod:this.podResource}}return{status:"Starting",message:U,pod:this.podResource}}return null}get isUnschedulable(){if(this.isStopping||this.isStarting){const e=this.status?.conditions?.find((e=>e.reason===_));if(e)return{status:_,message:e.message||"VM is unschedulable"}}return null}get isTerminating(){return!!this?.metadata?.deletionTimestamp}get otherState(){const e=this.vmi&&[j.Scheduling,j.Scheduled].includes(this.vmi?.status?.phase)&&{status:"Starting",message:U}||this.vmi&&this.vmi.status?.phase===j.Pending&&{status:"VMI_WAITING",message:y}||this.vmi&&this.vmi?.status?.phase===j.Failed&&{status:"VMI_ERROR"}||this.isVMExpectedRunning&&!this.isVMCreated&&{status:"Pending"}||{status:"UNKNOWN"};return e}get isVMCreated(){return!!this?.status?.created}get getDataVolumeTemplates(){return null===(0,u.Jt)(this,"spec.volumeClaimTemplates")?[]:this.spec.volumeClaimTemplates}get restoreResource(){const e=`${this.metadata.namespace}/${(0,u.Jt)(this,`metadata.annotations."${d.r.RESTORE_NAME}"`)}`,t=this.productInStore,n=this.$rootGetters[`${t}/all`](g.rk.RESTORE),r=n.find((t=>t.id===e));if(r){const e=this.$rootGetters[`${t}/all`](g.rk.BACKUP);r.fromSnapshot=!!e.filter((e=>e.spec?.type!==m.aS.BACKUP)).find((e=>e.id===`${r.spec?.virtualMachineBackupNamespace}/${r.spec?.virtualMachineBackupName}`))}return r}get restoreProgress(){if(this.isVMError||this.isTerminating)return{};const e=this.restoreResource?.status;return void 0!==e?{type:"restore",percentage:e?.progress||0,details:{volumes:e?.restores||[]}}:{}}get restoreState(){return!this.restoreResource||this.restoreResource?.isComplete}get actualState(){if(!this.restoreState)return"Restoring";if(this.isTerminating)return"Terminating";if(this?.vmi?.migrationState&&"Failed"!==this.vmi.migrationState.status)return this.vmi.migrationState.status;const e=this.isUnschedulable?.status||this.isPaused?.status||this.isVMError?.status||this.isPending?.status||this.isStopping?.status||this.isOff?.status||this.isError?.status||this.isRunning?.status||this.isNotReady?.status||this.isStarting?.status||this.isWaitingForVMI?.state||this.otherState?.status;return e}get warningMessage(){if(this.metadata?.annotations[d.r.VM_INSUFFICIENT])return{message:this.metadata?.annotations[d.r.VM_INSUFFICIENT],canDismiss:!0};const e=(0,u.Jt)(this,"status.conditions"),t=(0,l.jq)(e,"type","Failure");if(t)return{status:w,message:t.message};const n=(0,u.Jt)(this.vmi,"status.conditions"),r=(0,l.jq)(n,"type","Failure");if(r)return{status:"VMI error",detailedMessage:r.message};if((this.vmi||this.isVMCreated)&&this.podResource){const e=this.podResource.getPodStatus;if(L.includes(e?.status))return{...e,status:"LAUNCHER_POD_ERROR",pod:this.podResource}}return null}get migrationMessage(){return this?.vmi?.migrationState&&"Failed"===this.vmi.migrationState.status?{...this.actualState,message:this.t("harvester.modal.migration.failedMessage")}:null}get stateDisplay(){return this.actualState}get stateColor(){const e=this.actualState;return(0,o.uU)(e)}get networkIps(){let e="";const t=[],n=this.spec.template?.spec?.volumes||[];n.forEach((t=>{t.cloudInitNoCloud&&(e=t.cloudInitNoCloud.networkData)}));try{const n=(0,r.load)(e);if(n?.config&&Array.isArray(n.config)){const e=n.config;e.forEach((e=>{if(e?.subnets&&Array.isArray(e.subnets)){const n=e.subnets;n.forEach((e=>{e.address&&t.push(e.address)}))}}))}}catch(i){}return t}get warningCount(){return this.resourcesStatus.warningCount}get errorCount(){return this.resourcesStatus.errorCount}get resourcesStatus(){const e=this.productInStore,t=this.$rootGetters[`${e}/all`](g.rk.VM);let n=0,r=0;return t.forEach((e=>{const t=e.actualState;t===w?r+=1:"Stopping"!==t&&"Waiting"!==t&&"Pending"!==t&&"Starting"!==t&&"Terminating"!==t||(n+=1)})),{warningCount:n,errorCount:r}}get volumeClaimTemplates(){return(0,f.v)(this)}get persistentVolumeClaimName(){const e=this.spec.template.spec.volumes||[];return e.map((e=>e?.persistentVolumeClaim?.claimName)).filter((e=>!!e))}get rootImageId(){let e="";const t=this.productInStore,n=this.$rootGetters[`${t}/all`](s.YH)||[],r=this.spec.template.spec.volumes||[],i=r[0]?.persistentVolumeClaim?.claimName,a=this.volumeClaimTemplates.find((e=>i===e?.metadata?.name));if(!a){const e=n.find((e=>e.id===`${this.metadata.namespace}/${i}`));if(e)return e?.metadata?.annotations?.["harvesterhci.io/imageId"]}return this.volumeClaimTemplates.find((t=>(e=t?.metadata?.annotations?.["harvesterhci.io/imageId"],!!e))),e}get restoreName(){return(0,u.Jt)(this,`metadata.annotations."${d.r.RESTORE_NAME}"`)||""}get customValidationRules(){const e=[{nullable:!1,path:"metadata.name",required:!0,minLength:1,maxLength:63,translationKey:"harvester.fields.name"},{nullable:!1,path:"spec.template.spec.domain.cpu.cores",min:1,required:!0,translationKey:"harvester.fields.cpu"},{nullable:!1,path:"spec.template.spec.domain.resources.limits.memory",required:!0,translationKey:"harvester.fields.memory"},{nullable:!1,path:"spec.template.spec",validators:["vmNetworks"]},{nullable:!1,path:"spec",validators:["vmDisks"]}];return e}get attachNetwork(){const e=this.spec?.template?.spec?.networks||[],t=e.find((e=>e.multus));return!!t}get memorySort(){const e=this?.spec?.template?.spec?.domain?.resources?.requests?.memory||0,t=(0,c.ao)(e);return parseInt(t)}get ingoreVMMessage(){const e=[{name:"unavailable",error:!1,vmState:this.actualState===A}],t=this.metadata?.state;return e.find((e=>e.name===t?.name&&e.error===t?.error&&e.vmState))||K.find((e=>super.stateDescription?.includes(e)))||this.isOff}get stateDescription(){return this.ingoreVMMessage?"":super.stateDescription}get displayMemory(){return this.spec.template.spec.domain.resources?.limits?.memory||this.spec.template.spec.domain.resources?.requests?.memory}get isQemuInstalled(){const e=this.vmi?.status?.conditions||[],t=e.find((e=>e.type===x));return"True"===t?.status}get instanceLabels(){const e=this.spec?.template?.metadata?.labels||{};return(0,i.omitBy)(e,((e,t)=>(0,p.HV)(t,d.l)))}get hostDevices(){return this.spec?.template?.spec?.domain?.devices?.hostDevices||[]}get provisionedVGpus(){try{const e=JSON.parse(this.metadata?.annotations[d.r.VM_DEVICE_ALLOCATION_DETAILS]||"{}");return e?.gpus||{}}catch(e){return{}}}get schedulingVMBackupFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("schedulingVMBackup")}get volumeEncryptionFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("volumeEncryption")}get tpmPersistentStateFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("tpmPersistentState")}get efiPersistentStateFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("efiPersistentState")}get thirdPartyStorageFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("thirdPartyStorage")}setInstanceLabels(e){this.spec?.template?.metadata?.labels||(0,u.hZ)(this,"spec.template.metadata.labels",{});const t=this.spec.template.metadata.labels||{},n=(0,i.pickBy)(t,((e,t)=>(0,p.HV)(t,d.l)));this.spec.template.metadata["labels"]={...n,...e}}}},79095:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(73883),i=n(35664),a=n(2602),o=n(32766),s=n(24222);const l="Paused",c="This VM has been paused. If you wish to unpause it, please click the Unpause button below. For further details, please check with your system administrator.",u={Pending:"Pending",Scheduling:"Scheduling",Scheduled:"Scheduled",Running:"Running",Succeeded:"Succeeded",Failed:"Failed",Unknown:"Unknown"};class d extends s["default"]{get _availableActions(){const e=super._availableActions,t=e.find((e=>"promptRemove"===e.action));return[t]}get stateDisplay(){return this?.metadata?.deletionTimestamp?"Terminating":this?.status?.phase}get stateBackground(){return(0,r.uU)(this.stateDisplay).replace("text-","bg-")}get stateColor(){const e=this.stateDisplay;return(0,r.uU)(e)}get vmimResource(){const e=this.$rootGetters["harvester/all"](o.rk.VMIM)||[],t=e.filter((e=>e.spec?.vmiName===this.metadata?.name));return 0===t.length?[]:(t.sort(((e,t)=>e?.metadata?.creationTimestamp>t?.metadata?.creationTimestamp?-1:1)),t[0])}get migrationState(){const e=this.metadata?.annotations?.[a.r.MIGRATION_STATE];return this.vmimResource?.status?.phase===u.Failed?{type:"migration",status:u.Failed}:this.vmimResource?.status?.phase&&e?{type:"migration",status:e}:null}get migrationStateBackground(){const e=this.migrationState.status;return(0,r.uU)(e).replace("text-","bg-")}get isPaused(){const e=this?.status?.conditions||[],t=e.filter((e=>e.type===l)).length>0;return t?{status:l,message:c}:null}get isRunning(){return this?.status?.phase===u.Running?{status:u.Running}:null}get isTerminated(){const e=this?.status?.conditions||[];return"False"===e.find((e=>"Ready"===e.type))?.status}get getVMIApiPath(){const e=this.$rootGetters["clusterId"];if(this.$rootGetters["isMultiCluster"]){const t=`/k8s/clusters/${e}`;return`${t}/apis/subresources.kubevirt.io/v1/namespaces/${this.metadata.namespace}/virtualmachineinstances/${this.name}/vnc`}return`/apis/subresources.kubevirt.io/v1/namespaces/${this.metadata.namespace}/virtualmachineinstances/${this.name}/vnc`}get realAttachNodeName(){const e=this?.status?.nodeName,t=this.$getters["byId"](i.NW,e);return t?.nameDisplay||""}get getSerialConsolePath(){const e=this.$rootGetters["clusterId"];if(this.$rootGetters["isMultiCluster"]){const t=`/k8s/clusters/${e}`;return`${t}/apis/subresources.kubevirt.io/v1/namespaces/${this.metadata.namespace}/virtualmachineinstances/${this.name}/console`}return`/apis/subresources.kubevirt.io/v1/namespaces/${this.metadata.namespace}/virtualmachineinstances/${this.name}/console`}}},68917:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(76978),i=n(24222),a=n(32766);const o="Not Ready";class s extends i["default"]{applyDefaults(){const e=this.spec||{},t=this.metadata||{};e.ranges=e.ranges||[],e.selector=e.selector||{},e.selector.network=e.selector.network||"",this["spec"]=e,this["metadata"]=t}get customValidationRules(){return[{nullable:!1,path:"metadata.name",required:!0,translationKey:"generic.name",type:"dnsLabel"},{nullable:!1,path:"spec.ranges",type:"array",validators:["ranges"]}]}get subnetDisplay(){const e=this.spec?.ranges||[];return e.map((e=>e.subnet)).join(", ")}get startIPDisplay(){const e=this.spec?.ranges||[];return e.filter((e=>e.startIP)).map((e=>e.startIP)).join(", ")}get endIPDisplay(){const e=this.spec?.ranges||[];return e.filter((e=>e.endIP)).map((e=>e.endIP)).join(", ")}get details(){const e=[{label:this.t("harvester.ipPool.availableIP.label"),content:this.status?.available}];return e}get doneOverride(){const e=(0,r.o8)(this.listLocation);return e.params.resource=a.rk.IP_POOL,e}get parentLocationOverride(){return{...this.listLocation,params:{...this.listLocation.params,resource:a.rk.IP_POOL}}}get isReady(){const e=(this?.status?.conditions||[]).find((e=>"Ready"===e.type))||{};return"True"===e?.status}get stateDisplay(){return this.isReady?super.stateDisplay:o}get stateBackground(){return this.isReady?super.stateBackground:"bg-warning"}}},61772:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(76978),i=n(24222),a=n(32766);const o="vm",s="Not Ready";class l extends i["default"]{applyDefaults(){const e=this.spec||{},t=this.metadata||{};e.workloadType=e.workloadType||o,e.ipam=e.ipam||"dhcp",e.healthCheck=e.healthCheck||{},e.backendServerSelector=e.backendServerSelector||{},(0,r.hZ)(this,"spec",e),(0,r.hZ)(this,"metadata",t)}get workloadTypeDisplay(){const e=this.spec?.workloadType||"cluster";return this.$rootGetters["i18n/t"](`harvester.loadBalancer.workloadType.options.${e}`)}get ipamDisplay(){const e=this.spec?.ipam;return this.$rootGetters["i18n/t"](`harvester.loadBalancer.ipam.options.${e}`)}get customValidationRules(){return[{nullable:!1,path:"metadata.name",required:!0,translationKey:"generic.name",type:"dnsLabel"}]}get canCustomEdit(){return this.$rootGetters["type-map/hasCustomEdit"](this.type,this.id)&&this.spec.workloadType===o}get canUpdate(){return this.hasLink("update")&&this.$rootGetters["type-map/optionsFor"](this.type).isEditable&&this.spec.workloadType===o}get canClone(){return this.spec.workloadType===o}get details(){const e=[{label:this.t("harvester.loadBalancer.ipam.label"),content:this.ipamDisplay},{label:this.t("harvester.loadBalancer.workloadType.label"),content:this.workloadTypeDisplay},{label:this.t("tableHeaders.address"),content:this.status.address}];return e}get doneOverride(){const e=(0,r.o8)(this.listLocation);return e.params.resource=a.rk.LB,e}get parentLocationOverride(){return{...this.listLocation,params:{...this.listLocation.params,resource:a.rk.LB}}}get isReady(){const e=(this?.status?.conditions||[]).find((e=>"Ready"===e.type))||{};return"True"===e?.status}get stateDisplay(){return this.isReady?super.stateDisplay:s}get stateBackground(){return this.isReady?super.stateBackground:"bg-warning"}}},28433:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(25184);const i="healthy",a="warning";class o extends r.A{get used(){let e=0;return this.disks.filter((e=>e.allowScheduling)).map((t=>{t?.storageAvailable&&t?.storageMaximum&&(e+=t.storageMaximum-t.storageAvailable)})),e}get disks(){const e=this?.status?.diskStatus||{},t=this?.spec?.disks||{};return Object.keys(t).map((n=>{const r=e[n]?.conditions||[],o=r.find((e=>"Ready"===e.type))||{},s=r.find((e=>"Schedulable"===e.type))||{};let l;return l="True"!==o?.status||"True"!==s?.status?a:i,{...e[n],...t[n],id:n,state:l}}))||[]}}},11971:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(76978),i=n(24222);class a extends i["default"]{applyDefaults(){const e={baseboardSpec:{connection:{authSecretRef:{},insecureTLS:!1}},events:{enabled:!0,pollingInterval:"1h"},primaryDisk:"",managementInterfaceMacAddress:""};(0,r.hZ)(this,"metadata.annotations",{}),(0,r.hZ)(this,"spec",this.spec||e),(0,r.hZ)(this,"spec.baseboardSpec",this.spec?.baseboardSpec||e.baseboardSpec),(0,r.hZ)(this,"spec.baseboardSpec.connection",this.spec?.baseboardSpec?.connection||e.baseboardSpec.connection),(0,r.hZ)(this,"spec.baseboardSpec.connection.authSecretRef",this.spec?.baseboardSpec?.connection?.authSecretRef||{})}get warningMessages(){const e=[];return this.metadata?.state?.error&&e.push({text:this.metadata?.state.message}),e}get customValidationRules(){return[{path:"spec.events.pollingInterval",translationKey:"harvester.seeder.inventory.pollingInterval.label",validators:["interval"]}]}}},85696:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(76978),i=n(35664),a=n(32766),o=n(24222);class s extends o["default"]{get doneOverride(){const e=(0,r.o8)(this.listLocation);return e.params.resource=a.rk.CLUSTER_NETWORK,e}get parentLocationOverride(){return{...this.listLocation,params:{...this.listLocation.params,resource:a.rk.CLUSTER_NETWORK}}}get canDelete(){return this._canDelete&&"mgmt"!==this.id}get canUpdate(){return this.hasLink("update")&&this.$rootGetters["type-map/optionsFor"](this.type).isEditable&&"mgmt"!==this.id}get isReady(){const e=(this?.status?.conditions||[]).find((e=>"ready"===e.type))||{};return"True"===e?.status}get inStore(){return this.$rootGetters["currentProduct"].inStore}get nodes(){const e=this.$rootGetters[`${this.inStore}/all`](i.NW);return e.filter((e=>!e.isUnSchedulable&&"true"!==e.isEtcd))}get vlanStatuses(){const e=this.$rootGetters[`${this.inStore}/all`](a.rk.VLAN_STATUS),t=this.nodes.map((e=>e.id));return e.filter((e=>t.includes(e?.status?.node)&&this.id===e?.status?.clusterNetwork))||[]}get isReadyForStorageNetwork(){if("mgmt"===this.id)return!0;{const e=this.vlanStatuses.filter((e=>e.isReady))||[];return e.length===this.nodes.length&&this.isReady}}}},88272:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(68851),i=n(76978),a=n(32766),o=n(24222);class s extends o["default"]{get message(){const e=(0,i.Jt)(this,"status.conditions");return((0,r.jq)(e,"type","Ready")||{}).message}get isReady(){const e=(0,i.Jt)(this,"status.conditions");return"True"===((0,r.jq)(e,"type","Ready")||{})?.status}get nics(){return this?.status?.nics||[]}get attachNodeName(){return(0,i.Jt)(this,'metadata.labels."network.harvesterhci.io/nodename"')||""}get linkMessage(){return{name:this.attachNodeName,message:this.message,to:`${a.rk.HOST}/${this.attachNodeName}?mode=edit`}}}},70443:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(45250),i=n(76978),a=n(68851),o=n(2841),s=n(38823),l=n(35664),c=n(32766),u=n(24222);const d="Not Ready";class h extends u["default"]{applyDefaults(){const e={uplink:{nics:[],linkAttributes:{},bondOptions:{mode:"active-backup"}}};(0,i.hZ)(this,"spec",this.spec||e),(0,i.hZ)(this,"spec.uplink.linkAttributes",this.spec?.uplink?.linkAttributes||{}),(0,i.hZ)(this,"spec.uplink.bondOptions",this.spec?.uplink?.bondOptions||{})}get groupByClusterNetwork(){return this.spec?.clusterNetwork}get doneOverride(){const e=(0,i.o8)(this.listLocation);return e.params.resource=c.rk.CLUSTER_NETWORK,e}get parentLocationOverride(){return{...this.listLocation,params:{...this.listLocation.params,resource:c.rk.CLUSTER_NETWORK}}}get typeDisplay(){return"VLAN"}get _availableActions(){const e=super._availableActions;return(0,a.PT)(e,0,this.migrateAction),e}get migrateAction(){return{action:"migrate",icon:"icon icon-copy",label:this.t("harvester.vlanConfig.action.migrate")}}migrate(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterVlanConfigMigrateDialog"})}get inStore(){return this.$rootGetters["currentProduct"].inStore}get vlanStatuses(){const e=this.nodes.map((e=>e.id))||[],t=this.$rootGetters[`${this.inStore}/all`](c.rk.VLAN_STATUS);return t.filter((t=>e.includes(t?.status?.node)&&this.id===t?.status?.vlanConfig))||[]}get isReady(){if(0===this.nodes.length||this.vlanStatuses.length!==this.nodes.length)return!1;{const e=this.vlanStatuses.filter((e=>e.isReady));return e.length===this.vlanStatuses.length}}get selectedNodes(){const e=this.spec?.nodeSelector||{},t=this.$rootGetters[`${this.inStore}/all`](l.NW);if((0,r.isEmpty)(e))return t;if(e[o.yA]&&1===Object.keys(e).length)return t.filter((t=>t.id===e[o.yA]))||[];{const n=(0,s.wC)(t||[],e).map((e=>e.id));return t.filter((e=>n.includes(e.id)))}}get nodes(){return this.selectedNodes.filter((e=>!e.isUnSchedulable&&"true"!==e.isEtcd))}get stateDisplay(){return this.isReady?super.stateDisplay:d}get stateBackground(){return this.isReady?super.stateBackground:"bg-warning"}}},61715:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(68851),i=n(24222);class a extends i["default"]{get isReady(){const e=this.status?.conditions||[],t=(0,r.jq)(e,"type","ready")||{};return"True"===t.status}}},3791:function(e,t,n){"use strict";n.d(t,{nn:function(){return c},at:function(){return p},HF:function(){return u}});var r=n(2722),i=n.n(r);const a={"v1.3.0":["supportHarvesterClusterVersion"],"v1.3.1":["autoRotateRke2CertsSetting","supportBundleNodeCollectionTimeoutSetting"],"v1.3.2":["kubeconfigDefaultTokenTTLMinutesSetting","improveMaintenanceMode"],"v1.3.3":[],"v1.4.0":["cpuPinning","usbPassthrough","volumeEncryption","schedulingVMBackup","vmSnapshotQuota","longhornV2LVMSupport","improveMaintenanceMode"],"v1.4.1":[],"v1.4.2":["refreshIntervalInSecond","allowEmptySnapshotClassName"],"v1.4.3":[],"v1.5.0":["tpmPersistentState","efiPersistentState","untaggedNetworkSetting","skipSingleReplicaDetachedVol","thirdPartyStorage"],"v1.5.1":[]},o=()=>{const e=[...Object.keys(a)].filter((e=>i().valid(e))).sort(i().compare),t={};return e.forEach(((n,r)=>{const i=e[r-1];t[n]=i?[...t[i],...a[n]]:[...a[n]]})),t},s=o();var l=n(4364);const c=(e,t)=>{const n=`v${i().major(t)}.${i().minor(t)}`;return`https://docs.harvesterhci.io/${n}${e}`};function u(e){if({NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_SERVER_VERSION)return{NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_SERVER_VERSION;try{return`v${i().major(e)}.${i().minor(e)}.${i().patch(e)}`}catch(t){return d()}}function d(){const e=Object.keys(s).filter(i().valid).sort(i().rcompare);return e[0]||""}function h(e){const t=Object.keys(s).filter(i().valid),n=t.filter((t=>i().lte(t,e))).sort(i().rcompare);return n[0]||d()}const p=(e,t)=>{const n="1.3.0",r=u(t);if(i().lt(r.replace("v",""),n))return l.error(`Harvester UI extension only supports Harvester cluster version >= ${n}. Current version: ${r}`),!1;const a=h(r),o=s?.[a];return Array.isArray(o)?o.includes(e):(l.error(`Feature flags for version ${r} are not defined. Please upgrade Harvester UI extension and check the support matrix.`),!1)}},84757:function(e,t,n){"use strict";n.d(t,{Wl:function(){return i},gJ:function(){return a},jx:function(){return r}});const r="i",i="Gi",a="Mi"},66490:function(e,t,n){"use strict";n.d(t,{v:function(){return i}});var r=n(2602);function i(e){let t=[];try{t=JSON.parse(e?.metadata?.annotations?.[r.r.VOLUME_CLAIM_TEMPLATE])||[]}catch(n){}return t}},52880:function(e,t,n){"use strict";n.d(t,{Vi:function(){return i},_X:function(){return o},b8:function(){return a}});var r=n(2602);const i=["qcow","qcow2","raw","img","iso"];function a(e,t,n,r,a){const o=t["i18n/t"];if(!e||""===e)return n;const s=e.split("/").pop(),l=s.split(".").pop().toLowerCase();if(!i.includes(l)){const e="file"===a?"harvester.validation.image.ruleFileTip":"harvester.validation.image.ruleTip";n.push(o(e))}return n}function o(e={},t,n,i,a){const o=t["i18n/t"];return e[r.r.IMAGE_NAME]||n.push(o("validation.required",{key:o("harvester.image.fileName")})),n}},52225:function(e,t,n){"use strict";var r=n(33062),i=n(1359),a=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,o=/[\n\r\t]/g,s=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,l=/:\d+$/,c=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,u=/^[a-zA-Z]:/;function d(e){return(e||"").toString().replace(a,"")}var h=[["#","hash"],["?","query"],function(e,t){return m(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],p={hash:1,query:1};function f(e){var t;t="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};var r=t.location||{};e=e||r;var i,a={},o=typeof e;if("blob:"===e.protocol)a=new b(unescape(e.pathname),{});else if("string"===o)for(i in a=new b(e,{}),p)delete a[i];else if("object"===o){for(i in e)i in p||(a[i]=e[i]);void 0===a.slashes&&(a.slashes=s.test(e.href))}return a}function m(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function g(e,t){e=d(e),e=e.replace(o,""),t=t||{};var n,r=c.exec(e),i=r[1]?r[1].toLowerCase():"",a=!!r[2],s=!!r[3],l=0;return a?s?(n=r[2]+r[3]+r[4],l=r[2].length+r[3].length):(n=r[2]+r[4],l=r[2].length):s?(n=r[3]+r[4],l=r[3].length):n=r[4],"file:"===i?l>=2&&(n=n.slice(2)):m(i)?n=r[4]:i?a&&(n=n.slice(2)):l>=2&&m(t.protocol)&&(n=r[4]),{protocol:i,slashes:a||m(i),slashesCount:l,rest:n}}function v(e,t){if(""===e)return t;var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,i=n[r-1],a=!1,o=0;while(r--)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),o++):o&&(0===r&&(a=!0),n.splice(r,1),o--);return a&&n.unshift(""),"."!==i&&".."!==i||n.push(""),n.join("/")}function b(e,t,n){if(e=d(e),e=e.replace(o,""),!(this instanceof b))return new b(e,t,n);var a,s,l,c,p,y,w=h.slice(),E=typeof t,_=this,S=0;for("object"!==E&&"string"!==E&&(n=t,t=null),n&&"function"!==typeof n&&(n=i.parse),t=f(t),s=g(e||"",t),a=!s.protocol&&!s.slashes,_.slashes=s.slashes||a&&t.slashes,_.protocol=s.protocol||t.protocol||"",e=s.rest,("file:"===s.protocol&&(2!==s.slashesCount||u.test(e))||!s.slashes&&(s.protocol||s.slashesCount<2||!m(_.protocol)))&&(w[3]=[/(.*)/,"pathname"]);S<w.length;S++)c=w[S],"function"!==typeof c?(l=c[0],y=c[1],l!==l?_[y]=e:"string"===typeof l?(p="@"===l?e.lastIndexOf(l):e.indexOf(l),~p&&("number"===typeof c[2]?(_[y]=e.slice(0,p),e=e.slice(p+c[2])):(_[y]=e.slice(p),e=e.slice(0,p)))):(p=l.exec(e))&&(_[y]=p[1],e=e.slice(0,p.index)),_[y]=_[y]||a&&c[3]&&t[y]||"",c[4]&&(_[y]=_[y].toLowerCase())):e=c(e,_);n&&(_.query=n(_.query)),a&&t.slashes&&"/"!==_.pathname.charAt(0)&&(""!==_.pathname||""!==t.pathname)&&(_.pathname=v(_.pathname,t.pathname)),"/"!==_.pathname.charAt(0)&&m(_.protocol)&&(_.pathname="/"+_.pathname),r(_.port,_.protocol)||(_.host=_.hostname,_.port=""),_.username=_.password="",_.auth&&(p=_.auth.indexOf(":"),~p?(_.username=_.auth.slice(0,p),_.username=encodeURIComponent(decodeURIComponent(_.username)),_.password=_.auth.slice(p+1),_.password=encodeURIComponent(decodeURIComponent(_.password))):_.username=encodeURIComponent(decodeURIComponent(_.auth)),_.auth=_.password?_.username+":"+_.password:_.username),_.origin="file:"!==_.protocol&&m(_.protocol)&&_.host?_.protocol+"//"+_.host:"null",_.href=_.toString()}function y(e,t,n){var a=this;switch(e){case"query":"string"===typeof t&&t.length&&(t=(n||i.parse)(t)),a[e]=t;break;case"port":a[e]=t,r(t,a.protocol)?t&&(a.host=a.hostname+":"+t):(a.host=a.hostname,a[e]="");break;case"hostname":a[e]=t,a.port&&(t+=":"+a.port),a.host=t;break;case"host":a[e]=t,l.test(t)?(t=t.split(":"),a.port=t.pop(),a.hostname=t.join(":")):(a.hostname=t,a.port="");break;case"protocol":a.protocol=t.toLowerCase(),a.slashes=!n;break;case"pathname":case"hash":if(t){var o="pathname"===e?"/":"#";a[e]=t.charAt(0)!==o?o+t:t}else a[e]=t;break;case"username":case"password":a[e]=encodeURIComponent(t);break;case"auth":var s=t.indexOf(":");~s?(a.username=t.slice(0,s),a.username=encodeURIComponent(decodeURIComponent(a.username)),a.password=t.slice(s+1),a.password=encodeURIComponent(decodeURIComponent(a.password))):a.username=encodeURIComponent(decodeURIComponent(t))}for(var c=0;c<h.length;c++){var u=h[c];u[4]&&(a[u[1]]=a[u[1]].toLowerCase())}return a.auth=a.password?a.username+":"+a.password:a.username,a.origin="file:"!==a.protocol&&m(a.protocol)&&a.host?a.protocol+"//"+a.host:"null",a.href=a.toString(),a}function w(e){e&&"function"===typeof e||(e=i.stringify);var t,n=this,r=n.host,a=n.protocol;a&&":"!==a.charAt(a.length-1)&&(a+=":");var o=a+(n.protocol&&n.slashes||m(n.protocol)?"//":"");return n.username?(o+=n.username,n.password&&(o+=":"+n.password),o+="@"):n.password?(o+=":"+n.password,o+="@"):"file:"!==n.protocol&&m(n.protocol)&&!r&&"/"!==n.pathname&&(o+="@"),(":"===r[r.length-1]||l.test(n.hostname)&&!n.port)&&(r+=":"),o+=r+n.pathname,t="object"===typeof n.query?e(n.query):n.query,t&&(o+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(o+=n.hash),o}b.prototype={set:y,toString:w},b.extractProtocol=g,b.location=f,b.trimLeft=d,b.qs=i,e.exports=b},62113:function(e,t,n){var r;/*! https://mths.be/punycode v1.4.1 by @mathias */e=n.nmd(e),function(){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof n.g&&n.g;i.global!==i&&i.window!==i&&i.self;var a,o=2147483647,s=36,l=1,c=26,u=38,d=700,h=72,p=128,f="-",m=/^xn--/,g=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=s-l,w=Math.floor,E=String.fromCharCode;function _(e){throw new RangeError(b[e])}function S(e,t){var n=e.length,r=[];while(n--)r[n]=t(e[n]);return r}function k(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(v,".");var i=e.split("."),a=S(i,t).join(".");return r+a}function x(e){var t,n,r=[],i=0,a=e.length;while(i<a)t=e.charCodeAt(i++),t>=55296&&t<=56319&&i<a?(n=e.charCodeAt(i++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--)):r.push(t);return r}function A(e){return S(e,(function(e){var t="";return e>65535&&(e-=65536,t+=E(e>>>10&1023|55296),e=56320|1023&e),t+=E(e),t})).join("")}function N(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:s}function C(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,n){var r=0;for(e=n?w(e/d):e>>1,e+=w(e/t);e>y*c>>1;r+=s)e=w(e/y);return w(r+(y+1)*e/(e+u))}function R(e){var t,n,r,i,a,u,d,m,g,v,b=[],y=e.length,E=0,S=p,k=h;for(n=e.lastIndexOf(f),n<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&_("not-basic"),b.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<y;){for(a=E,u=1,d=s;;d+=s){if(i>=y&&_("invalid-input"),m=N(e.charCodeAt(i++)),(m>=s||m>w((o-E)/u))&&_("overflow"),E+=m*u,g=d<=k?l:d>=k+c?c:d-k,m<g)break;v=s-g,u>w(o/v)&&_("overflow"),u*=v}t=b.length+1,k=T(E-a,t,0==a),w(E/t)>o-S&&_("overflow"),S+=w(E/t),E%=t,b.splice(E++,0,S)}return A(b)}function O(e){var t,n,r,i,a,u,d,m,g,v,b,y,S,k,A,N=[];for(e=x(e),y=e.length,t=p,n=0,a=h,u=0;u<y;++u)b=e[u],b<128&&N.push(E(b));r=i=N.length,i&&N.push(f);while(r<y){for(d=o,u=0;u<y;++u)b=e[u],b>=t&&b<d&&(d=b);for(S=r+1,d-t>w((o-n)/S)&&_("overflow"),n+=(d-t)*S,t=d,u=0;u<y;++u)if(b=e[u],b<t&&++n>o&&_("overflow"),b==t){for(m=n,g=s;;g+=s){if(v=g<=a?l:g>=a+c?c:g-a,m<v)break;A=m-v,k=s-v,N.push(E(C(v+A%k,0))),m=w(A/k)}N.push(E(C(m,0))),a=T(n,S,r==i),n=0,++r}++n,++t}return N.join("")}function I(e){return k(e,(function(e){return m.test(e)?R(e.slice(4).toLowerCase()):e}))}function L(e){return k(e,(function(e){return g.test(e)?"xn--"+O(e):e}))}a={version:"1.4.1",ucs2:{decode:x,encode:A},decode:R,encode:O,toASCII:L,toUnicode:I},r=function(){return a}.call(t,n,t,e),void 0===r||(e.exports=r)}()},75442:function(e,t,n){"use strict";var r=n(62113);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var a=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["<",">",'"',"`"," ","\r","\n","\t"],c=["{","}","|","\\","^","`"].concat(l),u=["'"].concat(c),d=["%","/","?",";","#"].concat(u),h=["/","?","#"],p=255,f=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(45810);function w(e,t,n){if(e&&"object"===typeof e&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}function E(e){return"string"===typeof e&&(e=w(e)),e instanceof i?e.format():i.prototype.format.call(e)}function _(e,t){return w(e,!1,!0).resolve(t)}function S(e,t){return e?w(e,!1,!0).resolveObject(t):t}i.prototype.parse=function(e,t,n){if("string"!==typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),o=-1!==i&&i<e.indexOf("#")?"?":"#",l=e.split(o),c=/\\/g;l[0]=l[0].replace(c,"/"),e=l.join(o);var w=e;if(w=w.trim(),!n&&1===e.split("#").length){var E=s.exec(w);if(E)return this.path=w,this.href=w,this.pathname=E[1],E[2]?(this.search=E[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var _=a.exec(w);if(_){_=_[0];var S=_.toLowerCase();this.protocol=S,w=w.substr(_.length)}if(n||_||w.match(/^\/\/[^@/]+@[^@/]+/)){var k="//"===w.substr(0,2);!k||_&&v[_]||(w=w.substr(2),this.slashes=!0)}if(!v[_]&&(k||_&&!b[_])){for(var x,A,N=-1,C=0;C<h.length;C++){var T=w.indexOf(h[C]);-1!==T&&(-1===N||T<N)&&(N=T)}A=-1===N?w.lastIndexOf("@"):w.lastIndexOf("@",N),-1!==A&&(x=w.slice(0,A),w=w.slice(A+1),this.auth=decodeURIComponent(x)),N=-1;for(C=0;C<d.length;C++){T=w.indexOf(d[C]);-1!==T&&(-1===N||T<N)&&(N=T)}-1===N&&(N=w.length),this.host=w.slice(0,N),w=w.slice(N),this.parseHost(),this.hostname=this.hostname||"";var R="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!R)for(var O=this.hostname.split(/\./),I=(C=0,O.length);C<I;C++){var L=O[C];if(L&&!L.match(f)){for(var D="",P=0,M=L.length;P<M;P++)L.charCodeAt(P)>127?D+="x":D+=L[P];if(!D.match(f)){var B=O.slice(0,C),F=O.slice(C+1),$=L.match(m);$&&(B.push($[1]),F.unshift($[2])),F.length&&(w="/"+F.join(".")+w),this.hostname=B.join(".");break}}}this.hostname.length>p?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=r.toASCII(this.hostname));var U=this.port?":"+this.port:"",j=this.hostname||"";this.host=j+U,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==w[0]&&(w="/"+w))}if(!g[S])for(C=0,I=u.length;C<I;C++){var V=u[C];if(-1!==w.indexOf(V)){var K=encodeURIComponent(V);K===V&&(K=escape(V)),w=w.split(V).join(K)}}var H=w.indexOf("#");-1!==H&&(this.hash=w.substr(H),w=w.slice(0,H));var G=w.indexOf("?");if(-1!==G?(this.search=w.substr(G),this.query=w.substr(G+1),t&&(this.query=y.parse(this.query)),w=w.slice(0,G)):t&&(this.search="",this.query={}),w&&(this.pathname=w),b[S]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){U=this.pathname||"";var z=this.search||"";this.path=U+z}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"===typeof this.query&&Object.keys(this.query).length&&(a=y.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var o=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||b[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),o&&"?"!==o.charAt(0)&&(o="?"+o),n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})),o=o.replace("#","%23"),t+i+n+o+r},i.prototype.resolve=function(e){return this.resolveObject(w(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if("string"===typeof e){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),a=0;a<r.length;a++){var o=r[a];n[o]=this[o]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),l=0;l<s.length;l++){var c=s[l];"protocol"!==c&&(n[c]=e[c])}return b[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!b[e.protocol]){for(var u=Object.keys(e),d=0;d<u.length;d++){var h=u[d];n[h]=e[h]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||v[e.protocol])n.pathname=e.pathname;else{var p=(e.pathname||"").split("/");while(p.length&&!(e.host=p.shift()));e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var f=n.pathname||"",m=n.search||"";n.path=f+m}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var g=n.pathname&&"/"===n.pathname.charAt(0),y=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=y||g||n.host&&e.pathname,E=w,_=n.pathname&&n.pathname.split("/")||[],S=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!b[n.protocol]);if(S&&(n.hostname="",n.port=null,n.host&&(""===_[0]?_[0]=n.host:_.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),w=w&&(""===p[0]||""===_[0])),y)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,_=p;else if(p.length)_||(_=[]),_.pop(),_=_.concat(p),n.search=e.search,n.query=e.query;else if(null!=e.search){if(S){n.host=_.shift(),n.hostname=n.host;var k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");k&&(n.auth=k.shift(),n.hostname=k.shift(),n.host=n.hostname)}return n.search=e.search,n.query=e.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!_.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var x=_.slice(-1)[0],A=(n.host||e.host||_.length>1)&&("."===x||".."===x)||""===x,N=0,C=_.length;C>=0;C--)x=_[C],"."===x?_.splice(C,1):".."===x?(_.splice(C,1),N++):N&&(_.splice(C,1),N--);if(!w&&!E)for(;N--;N)_.unshift("..");!w||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),A&&"/"!==_.join("/").substr(-1)&&_.push("");var T=""===_[0]||_[0]&&"/"===_[0].charAt(0);if(S){n.hostname=T?"":_.length?_.shift():"",n.host=n.hostname;k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");k&&(n.auth=k.shift(),n.hostname=k.shift(),n.host=n.hostname)}return w=w||n.host&&_.length,w&&!T&&_.unshift(""),_.length>0?n.pathname=_.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=o.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=w,t.resolve=_,t.resolveObject=S,t.format=E,t.Url=i},66732:function(e,t,n){var r=n(4364);function i(e,t){if(a("noDeprecation"))return e;var n=!1;function i(){if(!n){if(a("throwDeprecation"))throw new Error(t);a("traceDeprecation")?r.trace(t):r.warn(t),n=!0}return e.apply(this,arguments)}return i}function a(e){try{if(!n.g.localStorage)return!1}catch(r){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=i},95272:function(e){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},51531:function(e,t,n){"use strict";var r=n(55387),i=n(2625),a=n(52730),o=n(95943);function s(e){return e.call.bind(e)}var l="undefined"!==typeof BigInt,c="undefined"!==typeof Symbol,u=s(Object.prototype.toString),d=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(l)var f=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!==typeof e)return!1;try{return t(e),!0}catch(n){return!1}}function v(e){return"undefined"!==typeof Promise&&e instanceof Promise||null!==e&&"object"===typeof e&&"function"===typeof e.then&&"function"===typeof e.catch}function b(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):o(e)||j(e)}function y(e){return"Uint8Array"===a(e)}function w(e){return"Uint8ClampedArray"===a(e)}function E(e){return"Uint16Array"===a(e)}function _(e){return"Uint32Array"===a(e)}function S(e){return"Int8Array"===a(e)}function k(e){return"Int16Array"===a(e)}function x(e){return"Int32Array"===a(e)}function A(e){return"Float32Array"===a(e)}function N(e){return"Float64Array"===a(e)}function C(e){return"BigInt64Array"===a(e)}function T(e){return"BigUint64Array"===a(e)}function R(e){return"[object Map]"===u(e)}function O(e){return"undefined"!==typeof Map&&(R.working?R(e):e instanceof Map)}function I(e){return"[object Set]"===u(e)}function L(e){return"undefined"!==typeof Set&&(I.working?I(e):e instanceof Set)}function D(e){return"[object WeakMap]"===u(e)}function P(e){return"undefined"!==typeof WeakMap&&(D.working?D(e):e instanceof WeakMap)}function M(e){return"[object WeakSet]"===u(e)}function B(e){return M(e)}function F(e){return"[object ArrayBuffer]"===u(e)}function $(e){return"undefined"!==typeof ArrayBuffer&&(F.working?F(e):e instanceof ArrayBuffer)}function U(e){return"[object DataView]"===u(e)}function j(e){return"undefined"!==typeof DataView&&(U.working?U(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=i,t.isTypedArray=o,t.isPromise=v,t.isArrayBufferView=b,t.isUint8Array=y,t.isUint8ClampedArray=w,t.isUint16Array=E,t.isUint32Array=_,t.isInt8Array=S,t.isInt16Array=k,t.isInt32Array=x,t.isFloat32Array=A,t.isFloat64Array=N,t.isBigInt64Array=C,t.isBigUint64Array=T,R.working="undefined"!==typeof Map&&R(new Map),t.isMap=O,I.working="undefined"!==typeof Set&&I(new Set),t.isSet=L,D.working="undefined"!==typeof WeakMap&&D(new WeakMap),t.isWeakMap=P,M.working="undefined"!==typeof WeakSet&&M(new WeakSet),t.isWeakSet=B,F.working="undefined"!==typeof ArrayBuffer&&F(new ArrayBuffer),t.isArrayBuffer=$,U.working="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView&&U(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=j;var V="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function K(e){return"[object SharedArrayBuffer]"===u(e)}function H(e){return"undefined"!==typeof V&&("undefined"===typeof K.working&&(K.working=K(new V)),K.working?K(e):e instanceof V)}function G(e){return"[object AsyncFunction]"===u(e)}function z(e){return"[object Map Iterator]"===u(e)}function q(e){return"[object Set Iterator]"===u(e)}function X(e){return"[object Generator]"===u(e)}function W(e){return"[object WebAssembly.Module]"===u(e)}function Y(e){return g(e,d)}function Q(e){return g(e,h)}function J(e){return g(e,p)}function Z(e){return l&&g(e,f)}function ee(e){return c&&g(e,m)}function te(e){return Y(e)||Q(e)||J(e)||Z(e)||ee(e)}function ne(e){return"undefined"!==typeof Uint8Array&&($(e)||H(e))}t.isSharedArrayBuffer=H,t.isAsyncFunction=G,t.isMapIterator=z,t.isSetIterator=q,t.isGeneratorObject=X,t.isWebAssemblyCompiledModule=W,t.isNumberObject=Y,t.isStringObject=Q,t.isBooleanObject=J,t.isBigIntObject=Z,t.isSymbolObject=ee,t.isBoxedPrimitive=te,t.isAnyArrayBuffer=ne,["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},49208:function(e,t,n){var r=n(39907),i=n(4364),a=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!x(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(u(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),s=r[n];n<i;s=r[++n])_(s)||!T(s)?a+=" "+s:a+=" "+u(s);return a},t.deprecate=function(e,n){if("undefined"!==typeof r&&!0===r.noDeprecation)return e;if("undefined"===typeof r)return function(){return t.deprecate(e,n).apply(this,arguments)};var a=!1;function o(){if(!a){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?i.trace(n):i.error(n),a=!0}return e.apply(this,arguments)}return o};var s={},l=/^$/;if({NODE_ENV:"production",BASE_URL:"/"}.NODE_DEBUG){var c={NODE_ENV:"production",BASE_URL:"/"}.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+c+"$","i")}function u(e,n){var r={seen:[],stylize:h};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),E(n)?r.showHidden=n:n&&t._extend(r,n),N(r.showHidden)&&(r.showHidden=!1),N(r.depth)&&(r.depth=2),N(r.colors)&&(r.colors=!1),N(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=d),f(r,e,r.depth)}function d(e,t){var n=u.styles[t];return n?"["+u.colors[n][0]+"m"+e+"["+u.colors[n][1]+"m":e}function h(e,t){return e}function p(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}function f(e,n,r){if(e.customInspect&&n&&I(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return x(i)||(i=f(e,i,r)),i}var a=m(e,n);if(a)return a;var o=Object.keys(n),s=p(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),O(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return g(n);if(0===o.length){if(I(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(C(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(R(n))return e.stylize(Date.prototype.toString.call(n),"date");if(O(n))return g(n)}var c,u="",d=!1,h=["{","}"];if(w(n)&&(d=!0,h=["[","]"]),I(n)){var E=n.name?": "+n.name:"";u=" [Function"+E+"]"}return C(n)&&(u=" "+RegExp.prototype.toString.call(n)),R(n)&&(u=" "+Date.prototype.toUTCString.call(n)),O(n)&&(u=" "+g(n)),0!==o.length||d&&0!=n.length?r<0?C(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=d?v(e,n,r,s,o):o.map((function(t){return b(e,n,r,s,t,d)})),e.seen.pop(),y(c,u,h)):h[0]+u+h[1]}function m(e,t){if(N(t))return e.stylize("undefined","undefined");if(x(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return k(t)?e.stylize(""+t,"number"):E(t)?e.stylize(""+t,"boolean"):_(t)?e.stylize("null","null"):void 0}function g(e){return"["+Error.prototype.toString.call(e)+"]"}function v(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)F(t,String(o))?a.push(b(e,t,n,r,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(b(e,t,n,r,i,!0))})),a}function b(e,t,n,r,i,a){var o,s,l;if(l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},l.get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),F(r,i)||(o="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=_(n)?f(e,l.value,null):f(e,l.value,n-1),s.indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n"))):s=e.stylize("[Circular]","special")),N(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function y(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function w(e){return Array.isArray(e)}function E(e){return"boolean"===typeof e}function _(e){return null===e}function S(e){return null==e}function k(e){return"number"===typeof e}function x(e){return"string"===typeof e}function A(e){return"symbol"===typeof e}function N(e){return void 0===e}function C(e){return T(e)&&"[object RegExp]"===D(e)}function T(e){return"object"===typeof e&&null!==e}function R(e){return T(e)&&"[object Date]"===D(e)}function O(e){return T(e)&&("[object Error]"===D(e)||e instanceof Error)}function I(e){return"function"===typeof e}function L(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function D(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(l.test(e)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);i.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(51531),t.isArray=w,t.isBoolean=E,t.isNull=_,t.isNullOrUndefined=S,t.isNumber=k,t.isString=x,t.isSymbol=A,t.isUndefined=N,t.isRegExp=C,t.types.isRegExp=C,t.isObject=T,t.isDate=R,t.types.isDate=R,t.isError=O,t.types.isNativeError=O,t.isFunction=I,t.isPrimitive=L,t.isBuffer=n(95272);var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function B(){var e=new Date,t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),M[e.getMonth()],t].join(" ")}function F(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){i.log("%s - %s",B(),t.format.apply(t,arguments))},t.inherits=n(35615),t._extend=function(e,t){if(!t||!T(t))return e;var n=Object.keys(t),r=n.length;while(r--)e[n[r]]=t[n[r]];return e};var $="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function U(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}function j(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!==typeof i)throw new TypeError("The last argument must be of type Function");var a=this,o=function(){return i.apply(a,arguments)};e.apply(this,t).then((function(e){r.nextTick(o.bind(null,null,e))}),(function(e){r.nextTick(U.bind(null,e,o))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,a(e)),t}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if($&&e[$]){var t=e[$];if("function"!==typeof t)throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,$,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],a=0;a<arguments.length;a++)i.push(arguments[a]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(o){n(o)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),$&&Object.defineProperty(t,$,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,a(e))},t.promisify.custom=$,t.callbackify=j},47433:function(e,t){"use strict";t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n}},67071:function(e,t,n){var r=n(91522);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("04467b1d",r,!0,{sourceMap:!1,shadowMode:!1})},9252:function(e,t,n){var r=n(28913);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("407ab32e",r,!0,{sourceMap:!1,shadowMode:!1})},63864:function(e,t,n){var r=n(96696);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("695df0fd",r,!0,{sourceMap:!1,shadowMode:!1})},4071:function(e,t,n){var r=n(26855);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("07ce45a4",r,!0,{sourceMap:!1,shadowMode:!1})},14534:function(e,t,n){var r=n(93894);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("3d668b38",r,!0,{sourceMap:!1,shadowMode:!1})},20679:function(e,t,n){var r=n(18503);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4c1ac059",r,!0,{sourceMap:!1,shadowMode:!1})},82431:function(e,t,n){var r=n(70655);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("279cc0f9",r,!0,{sourceMap:!1,shadowMode:!1})},9722:function(e,t,n){var r=n(31354);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("e65ca0d2",r,!0,{sourceMap:!1,shadowMode:!1})},83520:function(e,t,n){var r=n(53184);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("8f19f75e",r,!0,{sourceMap:!1,shadowMode:!1})},46883:function(e,t,n){var r=n(96995);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("2bb707f6",r,!0,{sourceMap:!1,shadowMode:!1})},85918:function(e,t,n){var r=n(1694);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("74f20dca",r,!0,{sourceMap:!1,shadowMode:!1})},80816:function(e,t,n){var r=n(69488);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("1596f9ee",r,!0,{sourceMap:!1,shadowMode:!1})},21255:function(e,t,n){var r=n(3367);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("631276d2",r,!0,{sourceMap:!1,shadowMode:!1})},27539:function(e,t,n){var r=n(2387);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("cfd3f7e6",r,!0,{sourceMap:!1,shadowMode:!1})},39066:function(e,t,n){var r=n(6618);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("58c7ad54",r,!0,{sourceMap:!1,shadowMode:!1})},33042:function(e,t,n){var r=n(42610);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("6d621ce3",r,!0,{sourceMap:!1,shadowMode:!1})},65124:function(e,t,n){var r=n(63204);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("2a2d9d4f",r,!0,{sourceMap:!1,shadowMode:!1})},32435:function(e,t,n){var r=n(9299);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("3df338b8",r,!0,{sourceMap:!1,shadowMode:!1})},45978:function(e,t,n){var r=n(20602);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("0f55430e",r,!0,{sourceMap:!1,shadowMode:!1})},47668:function(e,t,n){var r=n(71124);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("017ed6a8",r,!0,{sourceMap:!1,shadowMode:!1})},86961:function(e,t,n){var r=n(92049);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("706580d6",r,!0,{sourceMap:!1,shadowMode:!1})},72674:function(e,t,n){var r=n(83234);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("ec2b28d2",r,!0,{sourceMap:!1,shadowMode:!1})},40876:function(e,t,n){var r=n(73132);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("0685007a",r,!0,{sourceMap:!1,shadowMode:!1})},54851:function(e,t,n){var r=n(89827);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("ae6b26d2",r,!0,{sourceMap:!1,shadowMode:!1})},76238:function(e,t,n){var r=n(49358);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("0ea71f4d",r,!0,{sourceMap:!1,shadowMode:!1})},53456:function(e,t,n){var r=n(59024);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("5ad21d3e",r,!0,{sourceMap:!1,shadowMode:!1})},45261:function(e,t,n){var r=n(46618);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("5c03d4dc",r,!0,{sourceMap:!1,shadowMode:!1})},11740:function(e,t,n){var r=n(54492);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("7c53273f",r,!0,{sourceMap:!1,shadowMode:!1})},93127:function(e,t,n){var r=n(3284);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("663a25c0",r,!0,{sourceMap:!1,shadowMode:!1})},50434:function(e,t,n){var r=n(19202);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("bb0b4d90",r,!0,{sourceMap:!1,shadowMode:!1})},88456:function(e,t,n){var r=n(60392);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("2917c2d3",r,!0,{sourceMap:!1,shadowMode:!1})},93463:function(e,t,n){var r=n(36631);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4b842c29",r,!0,{sourceMap:!1,shadowMode:!1})},97876:function(e,t,n){var r=n(50612);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4cdee72e",r,!0,{sourceMap:!1,shadowMode:!1})},44220:function(e,t,n){var r=n(23132);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("e52873ae",r,!0,{sourceMap:!1,shadowMode:!1})},78627:function(e,t,n){var r=n(37635);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("e8c012e0",r,!0,{sourceMap:!1,shadowMode:!1})},70617:function(e,t,n){var r=n(97497);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("18b5a97c",r,!0,{sourceMap:!1,shadowMode:!1})},2578:function(e,t,n){var r=n(86226);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("27072055",r,!0,{sourceMap:!1,shadowMode:!1})},87968:function(e,t,n){var r=n(83904);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("14dcb12e",r,!0,{sourceMap:!1,shadowMode:!1})},60045:function(e,t,n){var r=n(6669);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("7dcf9efc",r,!0,{sourceMap:!1,shadowMode:!1})},1139:function(e,t,n){var r=n(71475);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("0ce826e0",r,!0,{sourceMap:!1,shadowMode:!1})},72060:function(e,t,n){var r=n(58684);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("131c3746",r,!0,{sourceMap:!1,shadowMode:!1})},48254:function(e,t,n){var r=n(80446);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("5e82ae71",r,!0,{sourceMap:!1,shadowMode:!1})},24e3:function(e,t,n){var r=n(94944);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("a89edbbc",r,!0,{sourceMap:!1,shadowMode:!1})},36078:function(e,t,n){var r=n(98670);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("33a03311",r,!0,{sourceMap:!1,shadowMode:!1})},4901:function(e,t,n){var r=n(32101);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("6a1f327e",r,!0,{sourceMap:!1,shadowMode:!1})},21362:function(e,t,n){var r=n(23186);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("e0f323fa",r,!0,{sourceMap:!1,shadowMode:!1})},1782:function(e,t,n){var r=n(53622);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("429ddf2e",r,!0,{sourceMap:!1,shadowMode:!1})},50165:function(e,t,n){var r=n(51189);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("146d3e52",r,!0,{sourceMap:!1,shadowMode:!1})},82055:function(e,t,n){var r=n(98983);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("7a02666d",r,!0,{sourceMap:!1,shadowMode:!1})},53575:function(e,t,n){var r=n(67271);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("18b320ff",r,!0,{sourceMap:!1,shadowMode:!1})},78035:function(e,t,n){var r=n(99731);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4f7f5a8d",r,!0,{sourceMap:!1,shadowMode:!1})},13343:function(e,t,n){var r=n(58335);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("2053e0a7",r,!0,{sourceMap:!1,shadowMode:!1})},32254:function(e,t,n){var r=n(38238);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("0c4f3662",r,!0,{sourceMap:!1,shadowMode:!1})},98620:function(e,t,n){var r=n(29692);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("7cd4dd7c",r,!0,{sourceMap:!1,shadowMode:!1})},13531:function(e,t,n){var r=n(24411);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("7c253598",r,!0,{sourceMap:!1,shadowMode:!1})},91230:function(e,t,n){var r=n(61502);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("c32f2c50",r,!0,{sourceMap:!1,shadowMode:!1})},63607:function(e,t,n){var r=n(38276);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("45c3d184",r,!0,{sourceMap:!1,shadowMode:!1})},34941:function(e,t,n){var r=n(38589);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("8fa42958",r,!0,{sourceMap:!1,shadowMode:!1})},94246:function(e,t,n){var r=n(29094);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("0211f789",r,!0,{sourceMap:!1,shadowMode:!1})},92429:function(e,t,n){var r=n(35693);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("a9778ac2",r,!0,{sourceMap:!1,shadowMode:!1})},7156:function(e,t,n){var r=n(42836);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4eac63c4",r,!0,{sourceMap:!1,shadowMode:!1})},63923:function(e,t,n){var r=n(84979);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("7871ba08",r,!0,{sourceMap:!1,shadowMode:!1})},19592:function(e,t,n){var r=n(6088);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("86c3f06a",r,!0,{sourceMap:!1,shadowMode:!1})},42266:function(e,t,n){var r=n(2586);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("147cac09",r,!0,{sourceMap:!1,shadowMode:!1})},85659:function(e,t,n){var r=n(51515);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("32089797",r,!0,{sourceMap:!1,shadowMode:!1})},54945:function(e,t,n){var r=n(59233);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("37c54b48",r,!0,{sourceMap:!1,shadowMode:!1})},18111:function(e,t,n){var r=n(48415);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("c26d9ae8",r,!0,{sourceMap:!1,shadowMode:!1})},32701:function(e,t,n){var r=n(30909);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("9a8631c0",r,!0,{sourceMap:!1,shadowMode:!1})},67394:function(e,t,n){var r=n(58498);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("d4f9953a",r,!0,{sourceMap:!1,shadowMode:!1})},4976:function(e,t,n){var r=n(49360);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("86893f82",r,!0,{sourceMap:!1,shadowMode:!1})},72278:function(e,t,n){var r=n(91062);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("62bf4ff6",r,!0,{sourceMap:!1,shadowMode:!1})},69341:function(e,t,n){var r=n(15869);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("3cb4d550",r,!0,{sourceMap:!1,shadowMode:!1})},8924:function(e,t,n){var r=n(29372);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("0bb80979",r,!0,{sourceMap:!1,shadowMode:!1})},38247:function(e,t,n){var r=n(14503);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("6bb903e7",r,!0,{sourceMap:!1,shadowMode:!1})},24304:function(e,t,n){var r=n(62672);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("6ff63e39",r,!0,{sourceMap:!1,shadowMode:!1})},1302:function(e,t,n){var r=n(10166);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("5fbb257e",r,!0,{sourceMap:!1,shadowMode:!1})},95583:function(e,t,n){var r=n(81407);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("ef4903c8",r,!0,{sourceMap:!1,shadowMode:!1})},61462:function(e,t,n){var r=n(92278);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("56ac0168",r,!0,{sourceMap:!1,shadowMode:!1})},32464:function(e,t,n){var r=n(52304);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("799fe399",r,!0,{sourceMap:!1,shadowMode:!1})},44166:function(e,t,n){var r=n(72326);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("f12b7872",r,!0,{sourceMap:!1,shadowMode:!1})},49608:function(e,t,n){var r=n(65320);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("73d296b4",r,!0,{sourceMap:!1,shadowMode:!1})},72001:function(e,t,n){var r=n(64065);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("9763166c",r,!0,{sourceMap:!1,shadowMode:!1})},83301:function(e,t,n){var r=n(38245);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("5e3edba4",r,!0,{sourceMap:!1,shadowMode:!1})},42596:function(e,t,n){var r=n(30116);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("70bf6176",r,!0,{sourceMap:!1,shadowMode:!1})},13358:function(e,t,n){var r=n(13998);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("1f56704d",r,!0,{sourceMap:!1,shadowMode:!1})},49645:function(e,t,n){var r=n(56749);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("e43afcd4",r,!0,{sourceMap:!1,shadowMode:!1})},56554:function(e,t,n){var r=n(64970);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("6ce52309",r,!0,{sourceMap:!1,shadowMode:!1})},75280:function(e,t,n){var r=n(76592);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("c416a7e2",r,!0,{sourceMap:!1,shadowMode:!1})},60226:function(e,t,n){var r=n(75106);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("51f6978c",r,!0,{sourceMap:!1,shadowMode:!1})},41158:function(e,t,n){var r=n(81945);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("2715a0f6",r,!0,{sourceMap:!1,shadowMode:!1})},29056:function(e,t,n){var r=n(66208);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("7f55fbee",r,!0,{sourceMap:!1,shadowMode:!1})},74825:function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;i<t.length;i++){var a=t[i],o=a[0],s=a[1],l=a[2],c=a[3],u={id:e+":"+i,css:s,media:l,sourceMap:c};r[o]?r[o].parts.push(u):n.push(r[o]={id:o,parts:[u]})}return n}n.d(t,{A:function(){return f}});var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},o=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},d=null,h="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(e,t,n,i){c=n,d=i||{};var o=r(e,t);return m(o),function(t){for(var n=[],i=0;i<o.length;i++){var s=o[i],l=a[s.id];l.refs--,n.push(l)}t?(o=r(e,t),m(o)):o=[];for(i=0;i<n.length;i++){l=n[i];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete a[l.id]}}}}function m(e){for(var t=0;t<e.length;t++){var n=e[t],r=a[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(v(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var o=[];for(i=0;i<n.parts.length;i++)o.push(v(n.parts[i]));a[n.id]={id:n.id,refs:1,parts:o}}}}function g(){var e=document.createElement("style");return e.type="text/css",o.appendChild(e),e}function v(e){var t,n,r=document.querySelector("style["+h+'~="'+e.id+'"]');if(r){if(c)return u;r.parentNode.removeChild(r)}if(p){var i=l++;r=s||(s=g()),t=y.bind(null,r,i,!1),n=y.bind(null,r,i,!0)}else r=g(),t=w.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function y(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,i);else{var a=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function w(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),d.ssrId&&e.setAttribute(h,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},65359:function(e,t,n){"use strict";n.d(t,{i0:function(){return ie},L8:function(){return re},aH:function(){return ne},Pj:function(){return g}});var r=n(9274);function i(){return a().__VUE_DEVTOOLS_GLOBAL_HOOK__}function a(){return"undefined"!==typeof navigator&&"undefined"!==typeof window?window:"undefined"!==typeof globalThis?globalThis:{}}const o="function"===typeof Proxy,s="devtools-plugin:setup",l="plugin:settings:set";let c,u;function d(){var e;return void 0!==c||("undefined"!==typeof window&&window.performance?(c=!0,u=window.performance):"undefined"!==typeof globalThis&&(null===(e=globalThis.perf_hooks)||void 0===e?void 0:e.performance)?(c=!0,u=globalThis.perf_hooks.performance):c=!1),c}function h(){return d()?u.now():Date.now()}class p{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const o in e.settings){const t=e.settings[o];n[o]=t.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},n);try{const e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(i,t)}catch(a){}this.fallbacks={getSettings(){return i},setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(a){}i=e},now(){return h()}},t&&t.on(l,((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}))})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function f(e,t){const n=e,r=a(),l=i(),c=o&&n.enableEarlyProxy;if(!l||!r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&c){const e=c?new p(n,l):null,i=r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[];i.push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else l.emit(s,e,t)}n(4364);
/*!
* vuex v4.1.0
* (c) 2022 Evan You
* @license MIT
*/var m="store";function g(e){return void 0===e&&(e=null),(0,r.inject)(null!==e?e:m)}function v(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function b(e){return null!==e&&"object"===typeof e}function y(e){return e&&"function"===typeof e.then}function w(e,t){return function(){return e(t)}}function E(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function _(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;k(e,n,[],e._modules.root,!0),S(e,n,t)}function S(e,t,n){var i=e._state,a=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,s={},l={},c=(0,r.effectScope)(!0);c.run((function(){v(o,(function(t,n){s[n]=w(t,e),l[n]=(0,r.computed)((function(){return s[n]()})),Object.defineProperty(e.getters,n,{get:function(){return l[n].value},enumerable:!0})}))})),e._state=(0,r.reactive)({data:t}),e._scope=c,e.strict&&R(e),i&&n&&e._withCommit((function(){i.data=null})),a&&a.stop()}function k(e,t,n,r,i){var a=!n.length,o=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=r),!a&&!i){var s=O(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){s[l]=r.state}))}var c=r.context=x(e,o,n);r.forEachMutation((function(t,n){var r=o+n;N(e,r,t,c)})),r.forEachAction((function(t,n){var r=t.root?n:o+n,i=t.handler||t;C(e,r,i,c)})),r.forEachGetter((function(t,n){var r=o+n;T(e,r,t,c)})),r.forEachChild((function(r,a){k(e,t,n.concat(a),r,i)}))}function x(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var a=I(n,r,i),o=a.payload,s=a.options,l=a.type;return s&&s.root||(l=t+l),e.dispatch(l,o)},commit:r?e.commit:function(n,r,i){var a=I(n,r,i),o=a.payload,s=a.options,l=a.type;s&&s.root||(l=t+l),e.commit(l,o,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return A(e,t)}},state:{get:function(){return O(e.state,n)}}}),i}function A(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var a=i.slice(r);Object.defineProperty(n,a,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function N(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function C(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return y(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function T(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function R(e){(0,r.watch)((function(){return e._state.data}),(function(){0}),{deep:!0,flush:"sync"})}function O(e,t){return t.reduce((function(e,t){return e[t]}),e)}function I(e,t,n){return b(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var L="vuex bindings",D="vuex:mutations",P="vuex:actions",M="vuex",B=0;function F(e,t){f({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[L]},(function(n){n.addTimelineLayer({id:D,label:"Vuex Mutations",color:$}),n.addTimelineLayer({id:P,label:"Vuex Actions",color:$}),n.addInspector({id:M,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===e&&n.inspectorId===M)if(n.filter){var r=[];G(r,t._modules.root,n.filter,""),n.rootNodes=r}else n.rootNodes=[H(t._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===e&&n.inspectorId===M){var r=n.nodeId;A(t,r),n.state=z(X(t._modules,r),"root"===r?t.getters:t._makeLocalGettersCache,r)}})),n.on.editInspectorState((function(n){if(n.app===e&&n.inspectorId===M){var r=n.nodeId,i=n.path;"root"!==r&&(i=r.split("/").filter(Boolean).concat(i)),t._withCommit((function(){n.set(t._state.data,i,n.state.value)}))}})),t.subscribe((function(e,t){var r={};e.payload&&(r.payload=e.payload),r.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(M),n.sendInspectorState(M),n.addTimelineEvent({layerId:D,event:{time:Date.now(),title:e.type,data:r}})})),t.subscribeAction({before:function(e,t){var r={};e.payload&&(r.payload=e.payload),e._id=B++,e._time=Date.now(),r.state=t,n.addTimelineEvent({layerId:P,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:r}})},after:function(e,t){var r={},i=Date.now()-e._time;r.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},e.payload&&(r.payload=e.payload),r.state=t,n.addTimelineEvent({layerId:P,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:r}})}})}))}var $=8702998,U=6710886,j=16777215,V={label:"namespaced",textColor:j,backgroundColor:U};function K(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function H(e,t){return{id:t||"root",label:K(t),tags:e.namespaced?[V]:[],children:Object.keys(e._children).map((function(n){return H(e._children[n],t+n+"/")}))}}function G(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[V]:[]}),Object.keys(t._children).forEach((function(i){G(e,t._children[i],n,r+i+"/")}))}function z(e,t,n){t="root"===n?t:t[n];var r=Object.keys(t),i={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(r.length){var a=q(t);i.getters=Object.keys(a).map((function(e){return{key:e.endsWith("/")?K(e):e,editable:!1,value:W((function(){return a[e]}))}}))}return i}function q(e){var t={};return Object.keys(e).forEach((function(n){var r=n.split("/");if(r.length>1){var i=t,a=r.pop();r.forEach((function(e){i[e]||(i[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),i=i[e]._custom.value})),i[a]=W((function(){return e[n]}))}else t[n]=W((function(){return e[n]}))})),t}function X(e,t){var n=t.split("/").filter((function(e){return e}));return n.reduce((function(e,r,i){var a=e[r];if(!a)throw new Error('Missing module "'+r+'" for path "'+t+'".');return i===n.length-1?a:a._children}),"root"===t?e:e.root._children)}function W(e){try{return e()}catch(t){return t}}var Y=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},Q={namespaced:{configurable:!0}};Q.namespaced.get=function(){return!!this._rawModule.namespaced},Y.prototype.addChild=function(e,t){this._children[e]=t},Y.prototype.removeChild=function(e){delete this._children[e]},Y.prototype.getChild=function(e){return this._children[e]},Y.prototype.hasChild=function(e){return e in this._children},Y.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},Y.prototype.forEachChild=function(e){v(this._children,e)},Y.prototype.forEachGetter=function(e){this._rawModule.getters&&v(this._rawModule.getters,e)},Y.prototype.forEachAction=function(e){this._rawModule.actions&&v(this._rawModule.actions,e)},Y.prototype.forEachMutation=function(e){this._rawModule.mutations&&v(this._rawModule.mutations,e)},Object.defineProperties(Y.prototype,Q);var J=function(e){this.register([],e,!1)};function Z(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;Z(e.concat(r),t.getChild(r),n.modules[r])}}J.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},J.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},J.prototype.update=function(e){Z([],this.root,e)},J.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new Y(t,n);if(0===e.length)this.root=i;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],i)}t.modules&&v(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},J.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},J.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var ee=function(e){var t=this;void 0===e&&(e={});var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1);var i=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new J(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=i;var a=this,o=this,s=o.dispatch,l=o.commit;this.dispatch=function(e,t){return s.call(a,e,t)},this.commit=function(e,t,n){return l.call(a,e,t,n)},this.strict=r;var c=this._modules.root.state;k(this,c,[],this._modules.root),S(this,c),n.forEach((function(e){return e(t)}))},te={state:{configurable:!0}};ee.prototype.install=function(e,t){e.provide(t||m,this),e.config.globalProperties.$store=this;var n=void 0!==this._devtools&&this._devtools;n&&F(e,this)},te.state.get=function(){return this._state.data},te.state.set=function(e){0},ee.prototype.commit=function(e,t,n){var r=this,i=I(e,t,n),a=i.type,o=i.payload,s=(i.options,{type:a,payload:o}),l=this._mutations[a];l&&(this._withCommit((function(){l.forEach((function(e){e(o)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},ee.prototype.dispatch=function(e,t){var n=this,r=I(e,t),i=r.type,a=r.payload,o={type:i,payload:a},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(o,n.state)}))}catch(c){0}var l=s.length>1?Promise.all(s.map((function(e){return e(a)}))):s[0](a);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(o,n.state)}))}catch(c){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(o,n.state,e)}))}catch(c){0}t(e)}))}))}},ee.prototype.subscribe=function(e,t){return E(e,this._subscribers,t)},ee.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return E(n,this._actionSubscribers,t)},ee.prototype.watch=function(e,t,n){var i=this;return(0,r.watch)((function(){return e(i.state,i.getters)}),t,Object.assign({},n))},ee.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},ee.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),k(this,this.state,e,this._modules.get(e),n.preserveState),S(this,this.state)},ee.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=O(t.state,e.slice(0,-1));delete n[e[e.length-1]]})),_(this)},ee.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},ee.prototype.hotUpdate=function(e){this._modules.update(e),_(this,!0)},ee.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(ee.prototype,te);var ne=se((function(e,t){var n={};return ae(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=le(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),re=(se((function(e,t){var n={};return ae(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var a=le(this.$store,"mapMutations",e);if(!a)return;r=a.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),se((function(e,t){var n={};return ae(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||le(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n}))),ie=se((function(e,t){var n={};return ae(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var a=le(this.$store,"mapActions",e);if(!a)return;r=a.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n}));function ae(e){return oe(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function oe(e){return Array.isArray(e)||b(e)}function se(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function le(e,t,n){var r=e._modulesNamespaceMap[n];return r}},52730:function(e,t,n){"use strict";var r=n(80705),i=n(14834),a=n(28498),o=n(14607),s=n(69336),l=o("Object.prototype.toString"),c=n(51913)(),u="undefined"===typeof globalThis?n.g:globalThis,d=i(),h=o("String.prototype.slice"),p=Object.getPrototypeOf,f=o("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},m={__proto__:null};r(d,c&&s&&p?function(e){var t=new u[e];if(Symbol.toStringTag in t){var n=p(t),r=s(n,Symbol.toStringTag);if(!r){var i=p(n);r=s(i,Symbol.toStringTag)}m["$"+e]=a(r.get)}}:function(e){var t=new u[e],n=t.slice||t.set;n&&(m["$"+e]=a(n))});var g=function(e){var t=!1;return r(m,(function(n,r){if(!t)try{"$"+n(e)===r&&(t=h(r,1))}catch(i){}})),t},v=function(e){var t=!1;return r(m,(function(n,r){if(!t)try{n(e),t=h(r,1)}catch(i){}})),t};e.exports=function(e){if(!e||"object"!==typeof e)return!1;if(!c){var t=h(l(e),8,-1);return f(d,t)>-1?t:"Object"===t&&v(e)}return s?g(e):null}},93227:function(e){e.exports=n;var t=Object.prototype.hasOwnProperty;function n(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var i in r)t.call(r,i)&&(e[i]=r[i])}return e}},96817:function(e,t,n){var r={"./csp/dark/rancher-logo.svg":32195,"./csp/favicon.png":31365,"./csp/metadata":6471,"./csp/metadata.json":6471,"./csp/rancher-logo.svg":42850,"./federal/dark/rancher-logo.svg":70266,"./federal/metadata":91862,"./federal/metadata.json":91862,"./federal/rancher-logo.svg":18729,"./harvester/favicon.png":23561,"./harvester/metadata":51507,"./harvester/metadata.json":51507,"./rgs/dark/rancher-logo.svg":85501,"./rgs/metadata":48401,"./rgs/metadata.json":48401,"./rgs/rancher-logo.svg":24548,"./suse/dark/rancher-logo.svg":47629,"./suse/favicon.png":17089,"./suse/metadata":37259,"./suse/metadata.json":37259,"./suse/rancher-logo.svg":8084};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=96817},4378:function(e,t,n){var r={"./csp/dark/rancher-logo.svg":32195,"./federal/dark/rancher-logo.svg":70266,"./rgs/dark/rancher-logo.svg":85501,"./suse/dark/rancher-logo.svg":47629};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=4378},93558:function(e,t,n){var r={"./csp/metadata.json":6471,"./federal/metadata.json":91862,"./harvester/metadata.json":51507,"./rgs/metadata.json":48401,"./suse/metadata.json":37259};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=93558},74752:function(e,t,n){var r={"./banner.svg":95754,"./dark/banner.svg":9273,"./dark/login-landscape.svg":26458,"./dark/rancher-logo.svg":55966,"./decoration-cloud-big-white.svg":12531,"./decoration-ground.svg":77430,"./error-desert-landscape.svg":21492,"./half-logo.svg":28225,"./harvester.png":57074,"./harvester.svg":27782,"./login-landscape.svg":46751,"./rancher-logo.svg":5669,"./setup-step-one.svg":549,"./sunglasses.svg":38566};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=74752},87900:function(e,t,n){var r={"./banner.svg":95754,"./dark/banner.svg":9273,"./dark/login-landscape.svg":26458,"./dark/rancher-logo.svg":55966,"./decoration-cloud-big-white.svg":12531,"./decoration-ground.svg":77430,"./error-desert-landscape.svg":21492,"./half-logo.svg":28225,"./harvester.png":57074,"./harvester.svg":27782,"./login-landscape.svg":46751,"./rancher-logo.svg":5669,"./setup-step-one.svg":549,"./sunglasses.svg":38566};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=87900},53588:function(e,t,n){var r={"./aliyun-black.svg":87526,"./aliyun.svg":17180,"./aliyunecs-black.svg":75685,"./aliyunecs.svg":38683,"./amazonec2-black.svg":52212,"./amazonec2.svg":16598,"./amazoneks-black.svg":43881,"./amazoneks.svg":90287,"./aws.svg":59835,"./azure-black.svg":80895,"./azure.svg":60961,"./azuread-black.svg":81392,"./azuread.svg":45634,"./azureaks-black.svg":35894,"./azureaks.svg":40268,"./baidu-black.svg":71351,"./baidu.svg":47113,"./cloudca-black.svg":50309,"./cloudca.svg":23131,"./cloudscale-black.svg":51773,"./cloudscale.svg":86531,"./custom.svg":29181,"./digitalocean-black.svg":65988,"./digitalocean.svg":19110,"./equinix-black.svg":66335,"./equinix.svg":60705,"./exoscale.svg":12896,"./gcp.svg":2054,"./gke-black.svg":3405,"./gke.svg":61939,"./google.svg":32561,"./googlegke-black.svg":73562,"./googlegke.svg":97712,"./harvester.svg":53938,"./huaweicce-black.svg":91128,"./huaweicce.svg":40634,"./import.svg":28499,"./k3s-black.svg":35671,"./k3s.svg":85545,"./kubernetes-black.svg":27442,"./kubernetes.svg":9144,"./linode.svg":75553,"./linodelke-black.svg":96441,"./linodelke.svg":3199,"./local-cluster.svg":47600,"./minikube-black.svg":18152,"./minikube.svg":92746,"./nutanix.svg":70079,"./oci-black.svg":40097,"./oci.svg":46487,"./openstack-black.svg":57990,"./openstack.svg":53116,"./oracle.svg":88594,"./oracleoke-black.svg":56347,"./oracleoke.svg":9053,"./otc-black.svg":67294,"./otc.svg":69348,"./otccce.svg":24079,"./outscale.svg":72886,"./ovhcloudmks.svg":49619,"./ovhcloudpubliccloud.svg":54474,"./packet-black.svg":90742,"./packet.svg":48428,"./pinganyunecs-black.svg":49880,"./pinganyunecs.svg":58490,"./pnap-black.svg":59931,"./pnap.svg":31549,"./rackspace-black.svg":41511,"./rackspace.svg":65785,"./rke.svg":38102,"./rke2.svg":49560,"./softlayer.svg":61883,"./tencenttke-black.svg":70963,"./tencenttke.svg":77701,"./vmwarevsphere-black.svg":26791,"./vmwarevsphere.svg":5337};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=53588},82360:function(e,t,n){var r={"./activedirectory.svg":6101,"./adfs.svg":24872,"./azuread.svg":14336,"./custom.svg":98283,"./email.svg":41778,"./freeipa.svg":42496,"./github.svg":52075,"./googleoauth.svg":63104,"./grafana.svg":59826,"./jaeger.svg":36308,"./keycloak.svg":5477,"./kiali.svg":66234,"./linux.svg":31456,"./longhorn.svg":81199,"./neuvector.svg":66763,"./okta.svg":31545,"./openid.svg":92877,"./openldap.svg":7841,"./pagerduty.svg":75495,"./ping.svg":35646,"./prometheus.svg":91258,"./shibboleth.svg":23294,"./slack.svg":69742,"./webhook.svg":94569,"./windows.svg":88381};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=82360},93197:function(e,t,n){var r={"./__tests__/apps.deployment.test":25192,"./__tests__/apps.deployment.test.ts":25192,"./__tests__/batch.cronjob.test":8432,"./__tests__/batch.cronjob.test.ts":8432,"./__tests__/catalog.cattle.io.app.test":94226,"./__tests__/catalog.cattle.io.app.test.ts":94226,"./__tests__/cluster.test":13573,"./__tests__/cluster.test.ts":13573,"./__tests__/fleet.cattle.io.cluster.test":84264,"./__tests__/fleet.cattle.io.cluster.test.ts":84264,"./__tests__/fleet.cattle.io.gitrepo.test":44282,"./__tests__/fleet.cattle.io.gitrepo.test.ts":44282,"./__tests__/management.cattle.io.cluster.test":58221,"./__tests__/management.cattle.io.cluster.test.ts":58221,"./__tests__/management.cattle.io.node":25529,"./__tests__/management.cattle.io.node.ts":25529,"./__tests__/management.cattle.io.nodepool":94479,"./__tests__/management.cattle.io.nodepool.ts":94479,"./__tests__/namespace.test":68882,"./__tests__/namespace.test.ts":68882,"./__tests__/node.test":4915,"./__tests__/node.test.ts":4915,"./__tests__/provisioning.cattle.io.cluster.test":29759,"./__tests__/provisioning.cattle.io.cluster.test.ts":29759,"./__tests__/schema.tests":81453,"./__tests__/schema.tests.ts":81453,"./__tests__/secret.test":19147,"./__tests__/secret.test.ts":19147,"./__tests__/steve-schema.test":66888,"./__tests__/steve-schema.test.ts":66888,"./__tests__/storage.k8s.io.storageclass.test":77107,"./__tests__/storage.k8s.io.storageclass.test.ts":77107,"./__tests__/workload.test":91624,"./__tests__/workload.test.ts":91624,"./app":426,"./app.js":426,"./apps.controllerrevision":54686,"./apps.controllerrevision.js":54686,"./apps.daemonset":89395,"./apps.daemonset.js":89395,"./apps.deployment":41212,"./apps.deployment.js":41212,"./apps.replicaset":77763,"./apps.replicaset.js":77763,"./apps.statefulset":86791,"./apps.statefulset.js":86791,"./autoscaling.horizontalpodautoscaler":20763,"./autoscaling.horizontalpodautoscaler.js":20763,"./batch.cronjob":43020,"./batch.cronjob.js":43020,"./batch.job":66184,"./batch.job.js":66184,"./catalog.cattle.io.app":65502,"./catalog.cattle.io.app.js":65502,"./catalog.cattle.io.clusterrepo":48723,"./catalog.cattle.io.clusterrepo.js":48723,"./catalog.cattle.io.operation":67784,"./catalog.cattle.io.operation.js":67784,"./catalog.cattle.io.repo":71029,"./catalog.cattle.io.repo.js":71029,"./catalog.cattle.io.uiplugin":97960,"./catalog.cattle.io.uiplugin.js":97960,"./chart":92737,"./chart.js":92737,"./chartinstallaction":91380,"./chartinstallaction.js":91380,"./chartupgradeaction":4451,"./chartupgradeaction.js":4451,"./cis.cattle.io.clusterscan":90960,"./cis.cattle.io.clusterscan.js":90960,"./cis.cattle.io.clusterscanbenchmark":20173,"./cis.cattle.io.clusterscanbenchmark.js":20173,"./cis.cattle.io.clusterscanprofile":29875,"./cis.cattle.io.clusterscanprofile.js":29875,"./cis.cattle.io.clusterscanreport":24574,"./cis.cattle.io.clusterscanreport.js":24574,"./cloudcredential":45231,"./cloudcredential.js":45231,"./cluster":16787,"./cluster.js":16787,"./cluster.x-k8s.io.machine":61843,"./cluster.x-k8s.io.machine.js":61843,"./cluster.x-k8s.io.machinedeployment":22456,"./cluster.x-k8s.io.machinedeployment.js":22456,"./cluster.x-k8s.io.machineset":5555,"./cluster.x-k8s.io.machineset.js":5555,"./cluster/node":44458,"./cluster/node.js":44458,"./cluster/schema":62973,"./cluster/schema.js":62973,"./clusterroletemplatebinding":40408,"./clusterroletemplatebinding.js":40408,"./configmap":79925,"./configmap.js":79925,"./constraints.gatekeeper.sh.constraint":40172,"./constraints.gatekeeper.sh.constraint.js":40172,"./driver":81147,"./driver.js":81147,"./etcdbackup":10501,"./etcdbackup.js":10501,"./event":28473,"./event.js":28473,"./fleet.cattle.io.bundle":5096,"./fleet.cattle.io.bundle.js":5096,"./fleet.cattle.io.cluster":5904,"./fleet.cattle.io.cluster.js":5904,"./fleet.cattle.io.clustergroup":11173,"./fleet.cattle.io.clustergroup.js":11173,"./fleet.cattle.io.clusterregistrationtoken":67424,"./fleet.cattle.io.clusterregistrationtoken.js":67424,"./fleet.cattle.io.gitrepo":65751,"./fleet.cattle.io.gitrepo.js":65751,"./group.principal":97030,"./group.principal.js":97030,"./helm.cattle.io.projecthelmchart":7899,"./helm.cattle.io.projecthelmchart.js":7899,"./k8s.cni.cncf.io.networkattachmentdefinition":72183,"./k8s.cni.cncf.io.networkattachmentdefinition.js":72183,"./kontainerdriver":83448,"./kontainerdriver.js":83448,"./logging.banzaicloud.io.clusterflow":78694,"./logging.banzaicloud.io.clusterflow.js":78694,"./logging.banzaicloud.io.clusteroutput":63331,"./logging.banzaicloud.io.clusteroutput.js":63331,"./logging.banzaicloud.io.flow":21766,"./logging.banzaicloud.io.flow.js":21766,"./logging.banzaicloud.io.output":44931,"./logging.banzaicloud.io.output.js":44931,"./management.cattle.io.authconfig":78277,"./management.cattle.io.authconfig.js":78277,"./management.cattle.io.cluster":16544,"./management.cattle.io.cluster.js":16544,"./management.cattle.io.clusterroletemplatebinding":54820,"./management.cattle.io.clusterroletemplatebinding.js":54820,"./management.cattle.io.feature":58975,"./management.cattle.io.feature.js":58975,"./management.cattle.io.fleetworkspace":61504,"./management.cattle.io.fleetworkspace.js":61504,"./management.cattle.io.gitreporestriction":33707,"./management.cattle.io.gitreporestriction.js":33707,"./management.cattle.io.globalrole":14606,"./management.cattle.io.globalrole.js":14606,"./management.cattle.io.globalrolebinding":97621,"./management.cattle.io.globalrolebinding.js":97621,"./management.cattle.io.kontainerdriver":44660,"./management.cattle.io.kontainerdriver.js":44660,"./management.cattle.io.node":77917,"./management.cattle.io.node.js":77917,"./management.cattle.io.nodepool":68959,"./management.cattle.io.nodepool.js":68959,"./management.cattle.io.nodetemplate":57075,"./management.cattle.io.nodetemplate.js":57075,"./management.cattle.io.podsecurityadmissionconfigurationtemplate":10311,"./management.cattle.io.podsecurityadmissionconfigurationtemplate.js":10311,"./management.cattle.io.project":24220,"./management.cattle.io.project.js":24220,"./management.cattle.io.projectroletemplatebinding":91673,"./management.cattle.io.projectroletemplatebinding.js":91673,"./management.cattle.io.roletemplate":4799,"./management.cattle.io.roletemplate.js":4799,"./management.cattle.io.setting":76061,"./management.cattle.io.setting.js":76061,"./management.cattle.io.user":69754,"./management.cattle.io.user.js":69754,"./management/schema":95694,"./management/schema.js":95694,"./metrics.k8s.io.nodemetrics":86465,"./metrics.k8s.io.nodemetrics.js":86465,"./monitoring.coreos.com.alertmanagerconfig":34858,"./monitoring.coreos.com.alertmanagerconfig.js":34858,"./monitoring.coreos.com.podmonitor":67750,"./monitoring.coreos.com.podmonitor.js":67750,"./monitoring.coreos.com.prometheusrule":61403,"./monitoring.coreos.com.prometheusrule.js":61403,"./monitoring.coreos.com.receiver":57e3,"./monitoring.coreos.com.receiver.js":57e3,"./monitoring.coreos.com.route":55162,"./monitoring.coreos.com.route.js":55162,"./monitoring.coreos.com.servicemonitor":906,"./monitoring.coreos.com.servicemonitor.js":906,"./namespace":67867,"./namespace.js":67867,"./networking.istio.io.destinationrule":1835,"./networking.istio.io.destinationrule.js":1835,"./networking.k8s.io.ingress":67462,"./networking.k8s.io.ingress.js":67462,"./nodedriver":80903,"./nodedriver.js":80903,"./persistentvolume":13070,"./persistentvolume.js":13070,"./persistentvolumeclaim":17544,"./persistentvolumeclaim.js":17544,"./pod":76006,"./pod.js":76006,"./principal":97219,"./principal.js":97219,"./projectroletemplatebinding":99493,"./projectroletemplatebinding.js":99493,"./provisioning.cattle.io.cluster":47685,"./provisioning.cattle.io.cluster.js":47685,"./rbac.authorization.k8s.io.clusterrole":8324,"./rbac.authorization.k8s.io.clusterrole.js":8324,"./rbac.authorization.k8s.io.clusterrolebinding":69791,"./rbac.authorization.k8s.io.clusterrolebinding.js":69791,"./rbac.authorization.k8s.io.role":51700,"./rbac.authorization.k8s.io.role.js":51700,"./rbac.authorization.k8s.io.rolebinding":559,"./rbac.authorization.k8s.io.rolebinding.js":559,"./replicationcontroller":12299,"./replicationcontroller.js":12299,"./resources.cattle.io.backup":89713,"./resources.cattle.io.backup.js":89713,"./resources.cattle.io.restore":23741,"./resources.cattle.io.restore.js":23741,"./rke-machine-config.cattle.io.harvesterconfig":81689,"./rke-machine-config.cattle.io.harvesterconfig.js":81689,"./rke-machine.cattle.io.amazonec2machinetemplate":39651,"./rke-machine.cattle.io.amazonec2machinetemplate.js":39651,"./rke-machine.cattle.io.azuremachinetemplate":79144,"./rke-machine.cattle.io.azuremachinetemplate.js":79144,"./rke-machine.cattle.io.digitaloceanmachinetemplate":81593,"./rke-machine.cattle.io.digitaloceanmachinetemplate.js":81593,"./rke-machine.cattle.io.linodemachinetemplate":69770,"./rke-machine.cattle.io.linodemachinetemplate.js":69770,"./rke-machine.cattle.io.machinetemplate":38799,"./rke-machine.cattle.io.machinetemplate.js":38799,"./rke-machine.cattle.io.pnapmachinetemplate":82186,"./rke-machine.cattle.io.pnapmachinetemplate.js":82186,"./rke-machine.cattle.io.vmwarevspheremachinetemplate":38816,"./rke-machine.cattle.io.vmwarevspheremachinetemplate.js":38816,"./rke.cattle.io.etcdsnapshot":7100,"./rke.cattle.io.etcdsnapshot.js":7100,"./schema":2334,"./schema.js":2334,"./secret":1133,"./secret.js":1133,"./service":96258,"./service.js":96258,"./steve-schema":45858,"./steve-schema.ts":45858,"./storage.k8s.io.storageclass":63809,"./storage.k8s.io.storageclass.js":63809,"./templates.gatekeeper.sh.constrainttemplate":66491,"./templates.gatekeeper.sh.constrainttemplate.js":66491,"./token":24364,"./token.js":24364,"./ui.cattle.io.navlink":51225,"./ui.cattle.io.navlink.js":51225,"./workload":70775,"./workload.js":70775,"./workload.service":2505,"./workload.service.js":2505};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=93197},39989:function(e,t,n){var r={"./management.cattle.io.fleetworkspace":54236,"./management.cattle.io.fleetworkspace.vue":54236,"./management.cattle.io.globalrole":65966,"./management.cattle.io.globalrole.vue":65966,"./management.cattle.io.project":75386,"./management.cattle.io.project.vue":75386,"./management.cattle.io.roletemplate":22052,"./management.cattle.io.roletemplate.vue":22052,"./mixin/roleDeletionCheck":55105,"./mixin/roleDeletionCheck.js":55105,"./pod":84126,"./pod.vue":84126};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=39989},32195:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.920195b3.svg"},42850:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.487fcd1d.svg"},70266:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.788ed883.svg"},18729:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.ef1ab5b0.svg"},85501:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.f190bd21.svg"},24548:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.fd684d42.svg"},47629:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.8d98c901.svg"},8084:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.b8492368.svg"},39802:function(e,t,n){"use strict";e.exports=n.p+"img/generic-catalog.1842a50e.svg"},95754:function(e,t,n){"use strict";e.exports=n.p+"img/banner.00f803a6.svg"},9273:function(e,t,n){"use strict";e.exports=n.p+"img/banner.e66743c3.svg"},26458:function(e,t,n){"use strict";e.exports=n.p+"img/login-landscape.6e1253bb.svg"},55966:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.3680d0eb.svg"},12531:function(e,t,n){"use strict";e.exports=n.p+"img/decoration-cloud-big-white.4229596e.svg"},77430:function(e,t,n){"use strict";e.exports=n.p+"img/decoration-ground.3f64fcbb.svg"},21492:function(e,t,n){"use strict";e.exports=n.p+"img/error-desert-landscape.2a9d44f4.svg"},28225:function(e,t,n){"use strict";e.exports=n.p+"img/half-logo.1bc560ee.svg"},27782:function(e,t,n){"use strict";e.exports=n.p+"img/harvester.0168283e.svg"},46751:function(e,t,n){"use strict";e.exports=n.p+"img/login-landscape.60cd520b.svg"},5669:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.d773077a.svg"},549:function(e,t,n){"use strict";e.exports=n.p+"img/setup-step-one.7b236b40.svg"},38566:function(e,t,n){"use strict";e.exports=n.p+"img/sunglasses.157dca2a.svg"},87526:function(e,t,n){"use strict";e.exports=n.p+"img/aliyun-black.a9967561.svg"},17180:function(e,t,n){"use strict";e.exports=n.p+"img/aliyun.d05bff3f.svg"},75685:function(e,t,n){"use strict";e.exports=n.p+"img/aliyunecs-black.93dd5b27.svg"},38683:function(e,t,n){"use strict";e.exports=n.p+"img/aliyunecs.b57b715b.svg"},52212:function(e,t,n){"use strict";e.exports=n.p+"img/amazonec2-black.5d49a518.svg"},16598:function(e,t,n){"use strict";e.exports=n.p+"img/amazonec2.259f7435.svg"},43881:function(e,t,n){"use strict";e.exports=n.p+"img/amazoneks-black.e3999509.svg"},90287:function(e,t,n){"use strict";e.exports=n.p+"img/amazoneks.44a8a254.svg"},59835:function(e,t,n){"use strict";e.exports=n.p+"img/aws.988ade4f.svg"},80895:function(e,t,n){"use strict";e.exports=n.p+"img/azure-black.4bcdbe6b.svg"},60961:function(e,t,n){"use strict";e.exports=n.p+"img/azure.7d30d447.svg"},81392:function(e,t,n){"use strict";e.exports=n.p+"img/azuread-black.d272db7e.svg"},45634:function(e,t,n){"use strict";e.exports=n.p+"img/azuread.7914bb78.svg"},35894:function(e,t,n){"use strict";e.exports=n.p+"img/azureaks-black.09cdc074.svg"},40268:function(e,t,n){"use strict";e.exports=n.p+"img/azureaks.239d69fb.svg"},71351:function(e,t,n){"use strict";e.exports=n.p+"img/baidu-black.32fb0569.svg"},47113:function(e,t,n){"use strict";e.exports=n.p+"img/baidu.063c3510.svg"},50309:function(e,t,n){"use strict";e.exports=n.p+"img/cloudca-black.2c8fc541.svg"},23131:function(e,t,n){"use strict";e.exports=n.p+"img/cloudca.fb088dd5.svg"},51773:function(e,t,n){"use strict";e.exports=n.p+"img/cloudscale-black.87d94917.svg"},86531:function(e,t,n){"use strict";e.exports=n.p+"img/cloudscale.dd348191.svg"},29181:function(e,t,n){"use strict";e.exports=n.p+"img/custom.2ff19310.svg"},65988:function(e,t,n){"use strict";e.exports=n.p+"img/digitalocean-black.3d5310a1.svg"},19110:function(e,t,n){"use strict";e.exports=n.p+"img/digitalocean.b0aa5786.svg"},66335:function(e,t,n){"use strict";e.exports=n.p+"img/equinix-black.0870820e.svg"},60705:function(e,t,n){"use strict";e.exports=n.p+"img/equinix.c112c186.svg"},12896:function(e,t,n){"use strict";e.exports=n.p+"img/exoscale.af115826.svg"},2054:function(e,t,n){"use strict";e.exports=n.p+"img/gcp.f7a1243c.svg"},3405:function(e,t,n){"use strict";e.exports=n.p+"img/gke-black.64bdd882.svg"},61939:function(e,t,n){"use strict";e.exports=n.p+"img/gke.4c1ecbcd.svg"},32561:function(e,t,n){"use strict";e.exports=n.p+"img/google.789cf860.svg"},73562:function(e,t,n){"use strict";e.exports=n.p+"img/googlegke-black.64bdd882.svg"},97712:function(e,t,n){"use strict";e.exports=n.p+"img/googlegke.4c1ecbcd.svg"},53938:function(e,t,n){"use strict";e.exports=n.p+"img/harvester.0168283e.svg"},91128:function(e,t,n){"use strict";e.exports=n.p+"img/huaweicce-black.d378b855.svg"},40634:function(e,t,n){"use strict";e.exports=n.p+"img/huaweicce.22b4ecea.svg"},28499:function(e,t,n){"use strict";e.exports=n.p+"img/import.ac396542.svg"},35671:function(e,t,n){"use strict";e.exports=n.p+"img/k3s-black.b4765216.svg"},85545:function(e,t,n){"use strict";e.exports=n.p+"img/k3s.f0881505.svg"},27442:function(e,t,n){"use strict";e.exports=n.p+"img/kubernetes-black.2ade6358.svg"},9144:function(e,t,n){"use strict";e.exports=n.p+"img/kubernetes.ac396542.svg"},75553:function(e,t,n){"use strict";e.exports=n.p+"img/linode.642005fe.svg"},96441:function(e,t,n){"use strict";e.exports=n.p+"img/linodelke-black.81aa799d.svg"},3199:function(e,t,n){"use strict";e.exports=n.p+"img/linodelke.642005fe.svg"},47600:function(e,t,n){"use strict";e.exports=n.p+"img/local-cluster.272d4fc9.svg"},18152:function(e,t,n){"use strict";e.exports=n.p+"img/minikube-black.94055a38.svg"},92746:function(e,t,n){"use strict";e.exports=n.p+"img/minikube.117e4a38.svg"},70079:function(e,t,n){"use strict";e.exports=n.p+"img/nutanix.862c3637.svg"},40097:function(e,t,n){"use strict";e.exports=n.p+"img/oci-black.cd3524de.svg"},46487:function(e,t,n){"use strict";e.exports=n.p+"img/oci.3a81eed0.svg"},57990:function(e,t,n){"use strict";e.exports=n.p+"img/openstack-black.af3ac5a0.svg"},53116:function(e,t,n){"use strict";e.exports=n.p+"img/openstack.475580f8.svg"},88594:function(e,t,n){"use strict";e.exports=n.p+"img/oracle.74aae75e.svg"},56347:function(e,t,n){"use strict";e.exports=n.p+"img/oracleoke-black.ec0a34a2.svg"},9053:function(e,t,n){"use strict";e.exports=n.p+"img/oracleoke.64fac528.svg"},67294:function(e,t,n){"use strict";e.exports=n.p+"img/otc-black.5629758c.svg"},69348:function(e,t,n){"use strict";e.exports=n.p+"img/otc.1b7d926f.svg"},24079:function(e,t,n){"use strict";e.exports=n.p+"img/otccce.1b7d926f.svg"},72886:function(e,t,n){"use strict";e.exports=n.p+"img/outscale.d0d823da.svg"},49619:function(e,t,n){"use strict";e.exports=n.p+"img/ovhcloudmks.612c966f.svg"},54474:function(e,t,n){"use strict";e.exports=n.p+"img/ovhcloudpubliccloud.612c966f.svg"},90742:function(e,t,n){"use strict";e.exports=n.p+"img/packet-black.5fc90c03.svg"},48428:function(e,t,n){"use strict";e.exports=n.p+"img/packet.ef1f45fa.svg"},49880:function(e,t,n){"use strict";e.exports=n.p+"img/pinganyunecs-black.bf0b3440.svg"},58490:function(e,t,n){"use strict";e.exports=n.p+"img/pinganyunecs.b74db865.svg"},59931:function(e,t,n){"use strict";e.exports=n.p+"img/pnap-black.a7948015.svg"},31549:function(e,t,n){"use strict";e.exports=n.p+"img/pnap.81704b7a.svg"},41511:function(e,t,n){"use strict";e.exports=n.p+"img/rackspace-black.0e8f8bc4.svg"},65785:function(e,t,n){"use strict";e.exports=n.p+"img/rackspace.5e8dcb5a.svg"},38102:function(e,t,n){"use strict";e.exports=n.p+"img/rke.a01f31e7.svg"},49560:function(e,t,n){"use strict";e.exports=n.p+"img/rke2.a01f31e7.svg"},61883:function(e,t,n){"use strict";e.exports=n.p+"img/softlayer.5d9a5c2a.svg"},70963:function(e,t,n){"use strict";e.exports=n.p+"img/tencenttke-black.140c30e5.svg"},77701:function(e,t,n){"use strict";e.exports=n.p+"img/tencenttke.42042615.svg"},26791:function(e,t,n){"use strict";e.exports=n.p+"img/vmwarevsphere-black.454d68ed.svg"},5337:function(e,t,n){"use strict";e.exports=n.p+"img/vmwarevsphere.94d59db3.svg"},6101:function(e,t,n){"use strict";e.exports=n.p+"img/activedirectory.0baa2998.svg"},24872:function(e,t,n){"use strict";e.exports=n.p+"img/adfs.6e70726e.svg"},14336:function(e,t,n){"use strict";e.exports=n.p+"img/azuread.774efe5f.svg"},98283:function(e,t,n){"use strict";e.exports=n.p+"img/custom.6f45244d.svg"},41778:function(e,t,n){"use strict";e.exports=n.p+"img/email.b67ceff2.svg"},42496:function(e,t,n){"use strict";e.exports=n.p+"img/freeipa.ef110cc0.svg"},52075:function(e,t,n){"use strict";e.exports=n.p+"img/github.9c864145.svg"},63104:function(e,t,n){"use strict";e.exports=n.p+"img/googleoauth.4619a2a5.svg"},59826:function(e,t,n){"use strict";e.exports=n.p+"img/grafana.2db31bb8.svg"},36308:function(e,t,n){"use strict";e.exports=n.p+"img/jaeger.1c7d1266.svg"},5477:function(e,t,n){"use strict";e.exports=n.p+"img/keycloak.ca7b4848.svg"},66234:function(e,t,n){"use strict";e.exports=n.p+"img/kiali.d0e257dd.svg"},31456:function(e,t,n){"use strict";e.exports=n.p+"img/linux.a96776e5.svg"},81199:function(e,t,n){"use strict";e.exports=n.p+"img/longhorn.4809470b.svg"},66763:function(e,t,n){"use strict";e.exports=n.p+"img/neuvector.513801d3.svg"},31545:function(e,t,n){"use strict";e.exports=n.p+"img/okta.58a2aa35.svg"},92877:function(e,t,n){"use strict";e.exports=n.p+"img/openid.451743dd.svg"},7841:function(e,t,n){"use strict";e.exports=n.p+"img/openldap.59040f23.svg"},75495:function(e,t,n){"use strict";e.exports=n.p+"img/pagerduty.9871fbd3.svg"},35646:function(e,t,n){"use strict";e.exports=n.p+"img/ping.5b5afc6e.svg"},91258:function(e,t,n){"use strict";e.exports=n.p+"img/prometheus.be8ac54d.svg"},23294:function(e,t,n){"use strict";e.exports=n.p+"img/shibboleth.35ea1d68.svg"},69742:function(e,t,n){"use strict";e.exports=n.p+"img/slack.34dfd73f.svg"},94569:function(e,t,n){"use strict";e.exports=n.p+"img/webhook.f86c012b.svg"},88381:function(e,t,n){"use strict";e.exports=n.p+"img/windows.f862ed7d.svg"},99086:function(e,t,n){"use strict";e.exports=n.p+"img/icon.42954c0f.svg"},31365:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAABjFBMVEVHcEwMMiwJLi4MMiwMMiwNMy0MMysMMiwNNC4MMiwMMiwMMiwMMiwMMiz///8MMix9ko7O1tUQNS+pt7UTODLn6+oNMy2/ycihr63c4eAONC5xh4RHZF/d4uFhenbi5+YrTUdyiIXM1NJsg4AqTEbJ0dAaPjjX3dyRo6C5xMPl6en2+Pjr7u4qS0YgQz0yUk1cdnLAysgPNC6GmZYfQj2TpKF7j4xrgn9vhoJPamZQa2cvUEuQoZ6Nn5xWcW3o7OuKnJk3VlH9/f2ls7Gvu7lMaGO9yMYUODMeQTzN1dTv8fEhRD5Tbmr19/eotrQzU06VpqPI0M/CzMpqgn68x8XS2djs7+5AXlqsubcVOTOerasdQDuYqKYwUUuClpN4jYlje3dUb2tSbWh6jotTbWmXp6X6+/vq7e3P19aSo6H4+fnK0tFBX1oZPTj09fXu8fB8kY41VVBCYFuuu7n+/v40VE9Xcm17kI3W3Nu2wb9IZWC+yMfg5OQ+XFc2VVBZc2+ntbO7xsSZqaY/XVnvk2EjAAAADnRSTlMArxyp8Siw8ifvrq3s8H1RQAIAAAFMSURBVDjLzZNVcwIxEICDH5Vd3B2KFYe6UHd3d3d37x9vrsNAe8Mdb51+D5lJ9stsks0SIpMrkAeFiCFEpkQBlAyRoyDlRCEsSAmW4G8FX2O9qrauwfU9ae/mCE01dsih17Zq0Ar9CUtBiHZ1wE+yVjcdzZOpnOAdBi4DAM4F85SFFQxjUIzIIursDlZYKRoHI8aWTHNUiO/ASfoiepSO/Baqlw2z4WkqbMPpOaauMxir4hjGGb2WCntwhi9PcHV5nAlz0yR7qWCGB3xP+p4DIdwohEKdPcYRdx97TQ8k8DGI+ApxpElaVKqgE0BXeOp9uMfPN8Qb2MIhAAdd9AegWZMXXAdwSx/VfwijiG1qtYlutnnUWk2+Fl6Auw+THiZ4q7m2yx5rfJC/3PPrm6s2w3/4cjxCicapJCJhQUIYweatEBPClEl5G1MiJl+FK1ex1JQuFwAAAABJRU5ErkJggg=="},23561:function(e,t,n){"use strict";e.exports=n.p+"img/favicon.20240f8a.png"},17089:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAgVBMVEUAAAAkU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU//ULCqVAAAAKnRSTlMAjopHOdr8snNsY1Ae+aq3gEAqCfTyo1kvBOvm4sqglyYgGhbUmXVvNBL6rShDAAAAw0lEQVQ4y83Q2Q6CMBCF4aNYQG3LJpu74jrv/4ACTSEUEi4kxu/6n2RyMKUr+jhaGcthCvcRGr5dwLSmADPFgkOnWcsPUUrJBSnxm1FHfC4Dl4462HBBXX4eBTs66IBlZJjftzZRrAN5FmaQ1Ic6SJA6nufJbRs8pZTHrPnhsa74dhtAIcO3gdiNBIkzErg/COakrQaDU3FQU9leBGWhWbdq0CDilwvn/JqjZ1lf7hljKQatSFv+b/ASpIgAw0JLCTGpD5arSeJmn1I0AAAAAElFTkSuQmCC"},57074:function(e,t,n){"use strict";e.exports=n.p+"img/harvester.20240f8a.png"},45605:function(e,t,n){"use strict";e.exports=n.p+"img/wechat-qr-code.c0468b45.jpg"},20246:function(e){"use strict";e.exports=n},47008:function(e){"use strict";e.exports=t},9274:function(t){"use strict";t.exports=e},86973:function(){},63011:function(){},43951:function(){},14834:function(e,t,n){"use strict";var r=n(69501),i="undefined"===typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"===typeof i[r[t]]&&(e[e.length]=r[t]);return e}},3973:function(e,t,n){var r=n(4364),i={exports:{}};function a(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var n=e[t];"object"!=typeof n||Object.isFrozen(n)||a(n)})),e}i.exports=a,i.exports.default=a;class o{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function s(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function l(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}const c="</span>",u=e=>!!e.scope||e.sublanguage&&e.language,d=(e,{prefix:t})=>{if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map(((e,t)=>`${e}${"_".repeat(t+1)}`))].join(" ")}return`${t}${e}`};class h{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=s(e)}openNode(e){if(!u(e))return;let t="";t=e.sublanguage?`language-${e.language}`:d(e.scope,{prefix:this.classPrefix}),this.span(t)}closeNode(e){u(e)&&(this.buffer+=c)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const p=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class f{constructor(){this.rootNode=p(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=p({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){while(this.closeNode());}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"===typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){"string"!==typeof e&&e.children&&(e.children.every((e=>"string"===typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{f._collapse(e)})))}}class m extends f{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root;n.sublanguage=!0,n.language=t,this.add(n)}toHTML(){const e=new h(this,this.options);return e.value()}finalize(){return!0}}function g(e){return e?"string"===typeof e?e:e.source:null}function v(e){return w("(?=",e,")")}function b(e){return w("(?:",e,")*")}function y(e){return w("(?:",e,")?")}function w(...e){const t=e.map((e=>g(e))).join("");return t}function E(e){const t=e[e.length-1];return"object"===typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function _(...e){const t=E(e),n="("+(t.capture?"":"?:")+e.map((e=>g(e))).join("|")+")";return n}function S(e){return new RegExp(e.toString()+"|").exec("").length-1}function k(e,t){const n=e&&e.exec(t);return n&&0===n.index}const x=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function A(e,{joinWith:t}){let n=0;return e.map((e=>{n+=1;const t=n;let r=g(e),i="";while(r.length>0){const e=x.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?i+="\\"+String(Number(e[1])+t):(i+=e[0],"("===e[0]&&n++)}return i})).map((e=>`(${e})`)).join(t)}const N=/\b\B/,C="[a-zA-Z]\\w*",T="[a-zA-Z_]\\w*",R="\\b\\d+(\\.\\d+)?",O="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",I="\\b(0b[01]+)",L="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",D=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=w(t,/.*\b/,e.binary,/\b.*/)),l({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},P={begin:"\\\\[\\s\\S]",relevance:0},M={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[P]},B={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[P]},F={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},$=function(e,t,n={}){const r=l({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=_("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:w(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},U=$("//","$"),j=$("/\\*","\\*/"),V=$("#","$"),K={scope:"number",begin:R,relevance:0},H={scope:"number",begin:O,relevance:0},G={scope:"number",begin:I,relevance:0},z={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[P,{begin:/\[/,end:/\]/,relevance:0,contains:[P]}]}]},q={scope:"title",begin:C,relevance:0},X={scope:"title",begin:T,relevance:0},W={begin:"\\.\\s*"+T,relevance:0},Y=function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var Q=Object.freeze({__proto__:null,MATCH_NOTHING_RE:N,IDENT_RE:C,UNDERSCORE_IDENT_RE:T,NUMBER_RE:R,C_NUMBER_RE:O,BINARY_NUMBER_RE:I,RE_STARTERS_RE:L,SHEBANG:D,BACKSLASH_ESCAPE:P,APOS_STRING_MODE:M,QUOTE_STRING_MODE:B,PHRASAL_WORDS_MODE:F,COMMENT:$,C_LINE_COMMENT_MODE:U,C_BLOCK_COMMENT_MODE:j,HASH_COMMENT_MODE:V,NUMBER_MODE:K,C_NUMBER_MODE:H,BINARY_NUMBER_MODE:G,REGEXP_MODE:z,TITLE_MODE:q,UNDERSCORE_TITLE_MODE:X,METHOD_GUARD:W,END_SAME_AS_BEGIN:Y});function J(e,t){const n=e.input[e.index-1];"."===n&&t.ignoreMatch()}function Z(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function ee(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=J,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function te(e,t){Array.isArray(e.illegal)&&(e.illegal=_(...e.illegal))}function ne(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function re(e,t){void 0===e.relevance&&(e.relevance=1)}const ie=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach((t=>{delete e[t]})),e.keywords=n.keywords,e.begin=w(n.beforeMatch,v(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},ae=["of","and","for","in","not","or","if","then","parent","list","value"],oe="keyword";function se(e,t,n=oe){const r=Object.create(null);return"string"===typeof e?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach((function(n){Object.assign(r,se(e[n],t,n))})),r;function i(e,n){t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((function(t){const n=t.split("|");r[n[0]]=[e,le(n[0],n[1])]}))}}function le(e,t){return t?Number(t):ce(e)?0:1}function ce(e){return ae.includes(e.toLowerCase())}const ue={},de=e=>{r.error(e)},he=(e,...t)=>{r.log(`WARN: ${e}`,...t)},pe=(e,t)=>{ue[`${e}/${t}`]||(r.log(`Deprecated as of ${e}. ${t}`),ue[`${e}/${t}`]=!0)},fe=new Error;function me(e,t,{key:n}){let r=0;const i=e[n],a={},o={};for(let s=1;s<=t.length;s++)o[s+r]=i[s],a[s+r]=!0,r+=S(t[s-1]);e[n]=o,e[n]._emit=a,e[n]._multi=!0}function ge(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw de("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),fe;if("object"!==typeof e.beginScope||null===e.beginScope)throw de("beginScope must be object"),fe;me(e,e.begin,{key:"beginScope"}),e.begin=A(e.begin,{joinWith:""})}}function ve(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw de("skip, excludeEnd, returnEnd not compatible with endScope: {}"),fe;if("object"!==typeof e.endScope||null===e.endScope)throw de("endScope must be object"),fe;me(e,e.end,{key:"endScope"}),e.end=A(e.end,{joinWith:""})}}function be(e){e.scope&&"object"===typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}function ye(e){be(e),"string"===typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"===typeof e.endScope&&(e.endScope={_wrap:e.endScope}),ge(e),ve(e)}function we(e){function t(t,n){return new RegExp(g(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=S(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=t(A(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function i(e){const t=new r;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}function a(n,r){const o=n;if(n.isCompiled)return o;[Z,ne,ye,ie].forEach((e=>e(n,r))),e.compilerExtensions.forEach((e=>e(n,r))),n.__beforeBegin=null,[ee,te,re].forEach((e=>e(n,r))),n.isCompiled=!0;let s=null;return"object"===typeof n.keywords&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),s=n.keywords.$pattern,delete n.keywords.$pattern),s=s||/\w+/,n.keywords&&(n.keywords=se(n.keywords,e.case_insensitive)),o.keywordPatternRe=t(s,!0),r&&(n.begin||(n.begin=/\B|\b/),o.beginRe=t(o.begin),n.end||n.endsWithParent||(n.end=/\B|\b/),n.end&&(o.endRe=t(o.end)),o.terminatorEnd=g(o.end)||"",n.endsWithParent&&r.terminatorEnd&&(o.terminatorEnd+=(n.end?"|":"")+r.terminatorEnd)),n.illegal&&(o.illegalRe=t(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map((function(e){return _e("self"===e?n:e)}))),n.contains.forEach((function(e){a(e,o)})),n.starts&&a(n.starts,r),o.matcher=i(o),o}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=l(e.classNameAliases||{}),a(e)}function Ee(e){return!!e&&(e.endsWithParent||Ee(e.starts))}function _e(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return l(e,{variants:null},t)}))),e.cachedVariants?e.cachedVariants:Ee(e)?l(e,{starts:e.starts?l(e.starts):null}):Object.isFrozen(e)?l(e):e}var Se="11.6.0";class ke extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const xe=s,Ae=l,Ne=Symbol("nomatch"),Ce=7,Te=function(e){const t=Object.create(null),n=Object.create(null),a=[];let s=!0;const l="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let u={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:m};function d(e){return u.noHighlightRe.test(e)}function h(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=u.languageDetectRe.exec(t);if(n){const t=P(n[1]);return t||(he(l.replace("{}",n[1])),he("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find((e=>d(e)||P(e)))}function p(e,t,n){let r="",i="";"object"===typeof t?(r=e,n=t.ignoreIllegals,i=t.language):(pe("10.7.0","highlight(lang, code, ...args) has been deprecated."),pe("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),i=e,r=t),void 0===n&&(n=!0);const a={code:r,language:i};U("before:highlight",a);const o=a.result?a.result:f(a.language,a.code,n);return o.code=a.code,U("after:highlight",o),o}function f(e,n,r,i){const a=Object.create(null);function c(e,t){return e.keywords[t]}function d(){if(!T.keywords)return void O.addText(I);let e=0;T.keywordPatternRe.lastIndex=0;let t=T.keywordPatternRe.exec(I),n="";while(t){n+=I.substring(e,t.index);const r=A.case_insensitive?t[0].toLowerCase():t[0],i=c(T,r);if(i){const[e,o]=i;if(O.addText(n),n="",a[r]=(a[r]||0)+1,a[r]<=Ce&&(L+=o),e.startsWith("_"))n+=t[0];else{const n=A.classNameAliases[e]||e;O.addKeyword(t[0],n)}}else n+=t[0];e=T.keywordPatternRe.lastIndex,t=T.keywordPatternRe.exec(I)}n+=I.substring(e),O.addText(n)}function h(){if(""===I)return;let e=null;if("string"===typeof T.subLanguage){if(!t[T.subLanguage])return void O.addText(I);e=f(T.subLanguage,I,!0,R[T.subLanguage]),R[T.subLanguage]=e._top}else e=E(I,T.subLanguage.length?T.subLanguage:null);T.relevance>0&&(L+=e.relevance),O.addSublanguage(e._emitter,e.language)}function p(){null!=T.subLanguage?h():d(),I=""}function m(e,t){let n=1;const r=t.length-1;while(n<=r){if(!e._emit[n]){n++;continue}const r=A.classNameAliases[e[n]]||e[n],i=t[n];r?O.addKeyword(i,r):(I=i,d(),I=""),n++}}function g(e,t){return e.scope&&"string"===typeof e.scope&&O.openNode(A.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(O.addKeyword(I,A.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),I=""):e.beginScope._multi&&(m(e.beginScope,t),I="")),T=Object.create(e,{parent:{value:T}}),T}function v(e,t,n){let r=k(e.endRe,n);if(r){if(e["on:end"]){const n=new o(e);e["on:end"](t,n),n.isMatchIgnored&&(r=!1)}if(r){while(e.endsParent&&e.parent)e=e.parent;return e}}if(e.endsWithParent)return v(e.parent,t,n)}function b(e){return 0===T.matcher.regexIndex?(I+=e[0],1):(B=!0,0)}function y(e){const t=e[0],n=e.rule,r=new o(n),i=[n.__beforeBegin,n["on:begin"]];for(const a of i)if(a&&(a(e,r),r.isMatchIgnored))return b(t);return n.skip?I+=t:(n.excludeBegin&&(I+=t),p(),n.returnBegin||n.excludeBegin||(I=t)),g(n,e),n.returnBegin?0:t.length}function w(e){const t=e[0],r=n.substring(e.index),i=v(T,e,r);if(!i)return Ne;const a=T;T.endScope&&T.endScope._wrap?(p(),O.addKeyword(t,T.endScope._wrap)):T.endScope&&T.endScope._multi?(p(),m(T.endScope,e)):a.skip?I+=t:(a.returnEnd||a.excludeEnd||(I+=t),p(),a.excludeEnd&&(I=t));do{T.scope&&O.closeNode(),T.skip||T.subLanguage||(L+=T.relevance),T=T.parent}while(T!==i.parent);return i.starts&&g(i.starts,e),a.returnEnd?0:t.length}function _(){const e=[];for(let t=T;t!==A;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach((e=>O.openNode(e)))}let S={};function x(t,i){const a=i&&i[0];if(I+=t,null==a)return p(),0;if("begin"===S.type&&"end"===i.type&&S.index===i.index&&""===a){if(I+=n.slice(i.index,i.index+1),!s){const t=new Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=S.rule,t}return 1}if(S=i,"begin"===i.type)return y(i);if("illegal"===i.type&&!r){const e=new Error('Illegal lexeme "'+a+'" for mode "'+(T.scope||"<unnamed>")+'"');throw e.mode=T,e}if("end"===i.type){const e=w(i);if(e!==Ne)return e}if("illegal"===i.type&&""===a)return 1;if(M>1e5&&M>3*i.index){const e=new Error("potential infinite loop, way more iterations than matches");throw e}return I+=a,a.length}const A=P(e);if(!A)throw de(l.replace("{}",e)),new Error('Unknown language: "'+e+'"');const N=we(A);let C="",T=i||N;const R={},O=new u.__emitter(u);_();let I="",L=0,D=0,M=0,B=!1;try{for(T.matcher.considerAll();;){M++,B?B=!1:T.matcher.considerAll(),T.matcher.lastIndex=D;const e=T.matcher.exec(n);if(!e)break;const t=n.substring(D,e.index),r=x(t,e);D=e.index+r}return x(n.substring(D)),O.closeAllNodes(),O.finalize(),C=O.toHTML(),{language:e,value:C,relevance:L,illegal:!1,_emitter:O,_top:T}}catch(F){if(F.message&&F.message.includes("Illegal"))return{language:e,value:xe(n),illegal:!0,relevance:0,_illegalBy:{message:F.message,index:D,context:n.slice(D-100,D+100),mode:F.mode,resultSoFar:C},_emitter:O};if(s)return{language:e,value:xe(n),illegal:!1,relevance:0,errorRaised:F,_emitter:O,_top:T};throw F}}function g(e){const t={value:xe(e),illegal:!1,relevance:0,_top:c,_emitter:new u.__emitter(u)};return t._emitter.addText(e),t}function E(e,n){n=n||u.languages||Object.keys(t);const r=g(e),i=n.filter(P).filter(B).map((t=>f(t,e,!1)));i.unshift(r);const a=i.sort(((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(P(e.language).supersetOf===t.language)return 1;if(P(t.language).supersetOf===e.language)return-1}return 0})),[o,s]=a,l=o;return l.secondBest=s,l}function S(e,t,r){const i=t&&n[t]||r;e.classList.add("hljs"),e.classList.add(`language-${i}`)}function x(e){let t=null;const n=h(e);if(d(n))return;if(U("before:highlightElement",{el:e,language:n}),e.children.length>0&&(u.ignoreUnescapedHTML||(r.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),r.warn("https://github.com/highlightjs/highlight.js/wiki/security"),r.warn("The element with unescaped HTML:"),r.warn(e)),u.throwUnescapedHTML)){const t=new ke("One of your code blocks includes unescaped HTML.",e.innerHTML);throw t}t=e;const i=t.textContent,a=n?p(i,{language:n,ignoreIllegals:!0}):E(i);e.innerHTML=a.value,S(e,n,a.language),e.result={language:a.language,re:a.relevance,relevance:a.relevance},a.secondBest&&(e.secondBest={language:a.secondBest.language,relevance:a.secondBest.relevance}),U("after:highlightElement",{el:e,result:a,text:i})}function A(e){u=Ae(u,e)}const N=()=>{R(),pe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function C(){R(),pe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let T=!1;function R(){if("loading"===document.readyState)return void(T=!0);const e=document.querySelectorAll(u.cssSelector);e.forEach(x)}function O(){T&&R()}function I(n,r){let i=null;try{i=r(e)}catch(a){if(de("Language definition for '{}' could not be registered.".replace("{}",n)),!s)throw a;de(a),i=c}i.name||(i.name=n),t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&M(i.aliases,{languageName:n})}function L(e){delete t[e];for(const t of Object.keys(n))n[t]===e&&delete n[t]}function D(){return Object.keys(t)}function P(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function M(e,{languageName:t}){"string"===typeof e&&(e=[e]),e.forEach((e=>{n[e.toLowerCase()]=t}))}function B(e){const t=P(e);return t&&!t.disableAutodetect}function F(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}function $(e){F(e),a.push(e)}function U(e,t){const n=e;a.forEach((function(e){e[n]&&e[n](t)}))}function j(e){return pe("10.7.0","highlightBlock will be removed entirely in v12.0"),pe("10.7.0","Please use highlightElement now."),x(e)}"undefined"!==typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",O,!1),Object.assign(e,{highlight:p,highlightAuto:E,highlightAll:R,highlightElement:x,highlightBlock:j,configure:A,initHighlighting:N,initHighlightingOnLoad:C,registerLanguage:I,unregisterLanguage:L,listLanguages:D,getLanguage:P,registerAliases:M,autoDetection:B,inherit:Ae,addPlugin:$}),e.debugMode=function(){s=!1},e.safeMode=function(){s=!0},e.versionString=Se,e.regex={concat:w,lookahead:v,either:_,optional:y,anyNumberOfTimes:b};for(const r in Q)"object"===typeof Q[r]&&i.exports(Q[r]);return Object.assign(e,Q),e};var Re=Te({});e.exports=Re,Re.HighlightJS=Re,Re.default=Re},69205:function(e){function t(e){const t={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},n="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",r={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:n},contains:[t,r,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}e.exports=t},46760:function(e){function t(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(o);const s={className:"",begin:/\\"/},l={className:"string",begin:/'/,end:/'/},c={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},u=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],d=e.SHEBANG({binary:`(${u.join("|")})`,relevance:10}),h={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},p=["if","then","else","elif","fi","for","while","in","do","done","case","esac","function"],f=["true","false"],m={match:/(\/[a-z._-]+)+/},g=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],v=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],b=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],y=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:p,literal:f,built_in:[...g,...v,"set","shopt",...b,...y]},contains:[d,e.SHEBANG(),h,c,e.HASH_COMMENT_MODE,a,m,o,s,l,n]}}e.exports=t},33089:function(e){function t(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="<[^<>]+>",o="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional(a)+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},l="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+l+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",f=["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],m=["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],g={keyword:f,type:m,literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},v=[d,s,n,e.C_BLOCK_COMMENT_MODE,u,c],b={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:g,contains:v.concat([{begin:/\(/,end:/\)/,keywords:g,contains:v.concat(["self"]),relevance:0}]),relevance:0},y={begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:g,relevance:0},{begin:p,returnBegin:!0,contains:[e.inherit(h,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C",aliases:["h"],keywords:g,disableAutodetect:!0,illegal:"</",contains:[].concat(b,y,v,[d,{begin:e.IDENT_RE+"::",keywords:g},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:d,strings:c,keywords:g}}}e.exports=t},37620:function(e){function t(e){const t="a-zA-Z_\\-!.?+*=<>&'",n="[#]?["+t+"]["+t+"0-9/;:$#]*",r="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",i={$pattern:n,built_in:r+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},a={begin:n,relevance:0},o={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},s={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},l={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),u={scope:"punctuation",match:/,/,relevance:0},d=e.COMMENT(";","$",{relevance:0}),h={className:"literal",begin:/\b(true|false|nil)\b/},p={begin:"\\[|(#::?"+n+")?\\{",end:"[\\]\\}]",relevance:0},f={className:"symbol",begin:"[:]{1,2}"+n},m={begin:"\\(",end:"\\)"},g={endsWithParent:!0,relevance:0},v={keywords:i,className:"name",begin:n,relevance:0,starts:g},b=[u,m,s,l,c,d,f,p,o,h,a],y={beginKeywords:r,keywords:{$pattern:n,keyword:r},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:n,relevance:0,excludeEnd:!0,endsParent:!0}].concat(b)};return m.contains=[y,v,g],g.contains=b,p.contains=b,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[u,m,s,l,c,d,f,p,o,h]}}e.exports=t},68049:function(e){function t(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="<[^<>]+>",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional(a)+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+l+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",f=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],g=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],v=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],b=["NULL","false","nullopt","nullptr","true"],y=["_Pragma"],w={type:m,keyword:f,literal:b,built_in:y,_type_hints:g},E={className:"function.dispatch",relevance:0,keywords:{_hint:v},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},_=[E,d,s,n,e.C_BLOCK_COMMENT_MODE,u,c],S={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:w,contains:_.concat([{begin:/\(/,end:/\)/,keywords:w,contains:_.concat(["self"]),relevance:0}]),relevance:0},k={className:"function",begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:w,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:w,relevance:0},{begin:p,returnBegin:!0,contains:[h],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:w,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(S,k,E,_,[d,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:w,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:w},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}e.exports=t},25326:function(e){function t(e){const t="(_?[ui](8|16|32|64|128))?",n="(_?f(32|64))?",r="[a-zA-Z_]\\w*[!?=]?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",a="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",o={$pattern:r,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},s={className:"subst",begin:/#\{/,end:/\}/,keywords:o},l={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},c={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:o};function u(e,t){const n=[{begin:e,end:t}];return n[0].contains=n,n}const d={className:"string",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:u("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},h={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%q<",end:">",contains:u("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},p={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},f={className:"regexp",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:"%r\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%r<",end:">",contains:u("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},m={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},g=[c,d,h,f,p,m,l,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:a}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:a})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:a})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[d,{begin:i}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+n+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+t}],relevance:0}];return s.contains=g,c.contains=g.slice(1),{name:"Crystal",aliases:["cr"],keywords:o,contains:g}}e.exports=t},17025:function(e){function t(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],a=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:i.concat(a),built_in:t,literal:r},s=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},u=e.inherit(c,{illegal:/\n/}),d={className:"subst",begin:/\{/,end:/\}/,keywords:o},h=e.inherit(d,{illegal:/\n/}),p={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,h]},f={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},d]},m=e.inherit(f,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},h]});d.contains=[f,p,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],h.contains=[m,p,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const g={variants:[f,p,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},v={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},b=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",y={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"\x3c!--|--\x3e"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},g,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+b+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,v],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[g,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},y]}}e.exports=t},35678:function(e){function t(e){const t=["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"];return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:t},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}e.exports=t},63355:function(e){const t=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),n=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],a=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function s(e){const s=e.regex,l=t(e),c={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},u="and or not only",d=/@-?\w[\w]*(-\w+)*/,h="[a-zA-Z-][a-zA-Z0-9_-]*",p=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[l.BLOCK_COMMENT,c,l.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+h,relevance:0},l.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+i.join("|")+")"},{begin:":(:)?("+a.join("|")+")"}]},l.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[l.BLOCK_COMMENT,l.HEXCOLOR,l.IMPORTANT,l.CSS_NUMBER_MODE,...p,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...p,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},l.FUNCTION_DISPATCH]},{begin:s.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:d},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:u,attribute:r.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...p,l.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+n.join("|")+")\\b"}]}}e.exports=s},92835:function(e){function t(e){const t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},n={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},r={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,n]}]};n.contains=[e.C_NUMBER_MODE,r];const i=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],a=i.map((e=>`${e}?`)),o=["abstract","as","assert","async","await","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","inferface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","while","with","yield"],s={keyword:o,built_in:i.concat(a).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/};return{name:"Dart",keywords:s,contains:[r,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}e.exports=t},16361:function(e){function t(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}e.exports=t},82476:function(e){function t(e){const t=["from","maintainer","expose","env","arg","user","onbuild","stopsignal"];return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:t,contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}e.exports=t},74809:function(e){function t(e){const t=e.regex,n="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",r="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",i=["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],a=["false","nil","true"],o={$pattern:n,keyword:i,literal:a},s={className:"subst",begin:/#\{/,end:/\}/,keywords:o},l={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},c=/\\[\s\S]/,u={match:c,scope:"char.escape",relevance:0},d="[/|([{<\"']",h=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],p=e=>({scope:"char.escape",begin:t.concat(/\\/,e),relevance:0}),f={className:"string",begin:"~[a-z](?="+d+")",contains:h.map((t=>e.inherit(t,{contains:[p(t.end),u,s]})))},m={className:"string",begin:"~[A-Z](?="+d+")",contains:h.map((t=>e.inherit(t,{contains:[p(t.end)]})))},g={className:"regex",variants:[{begin:"~r(?="+d+")",contains:h.map((n=>e.inherit(n,{end:t.concat(n.end,/[uismxfU]{0,7}/),contains:[p(n.end),u,s]})))},{begin:"~R(?="+d+")",contains:h.map((n=>e.inherit(n,{end:t.concat(n.end,/[uismxfU]{0,7}/),contains:[p(n.end)]})))}]},v={className:"string",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},b={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},y=e.inherit(b,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),w=[v,g,m,f,e.HASH_COMMENT_MODE,y,b,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[v,{begin:r}],relevance:0},{className:"symbol",begin:n+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},l,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return s.contains=w,{name:"Elixir",aliases:["ex","exs"],keywords:o,contains:w}}e.exports=t},42892:function(e){function t(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},r={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]},i={begin:/\{/,end:/\}/,contains:r.contains},a={className:"string",begin:"'\\\\?.",end:"'",illegal:"."},o=["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"];return{name:"Elm",keywords:o,contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[r,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[r,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[n,r,i,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},a,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}}e.exports=t},84441:function(e){function t(e){const t="[a-z'][a-zA-Z0-9_']*",n="("+t+":"+t+"|"+t+")",r={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},i=e.COMMENT("%","$"),a={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},o={begin:"fun\\s+"+t+"/\\d+"},s={begin:n+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},l={begin:/\{/,end:/\}/,relevance:0},c={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},u={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},d={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},h={beginKeywords:"fun receive if try case",end:"end",keywords:r};h.contains=[i,o,e.inherit(e.APOS_STRING_MODE,{className:""}),h,s,e.QUOTE_STRING_MODE,a,l,c,u,d];const p=[i,o,h,s,e.QUOTE_STRING_MODE,a,l,c,u,d];s.contains[1].contains=p,l.contains=p,d.contains[1].contains=p;const f=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"],m={className:"params",begin:"\\(",end:"\\)",contains:p};return{name:"Erlang",aliases:["erl"],keywords:r,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+t+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[m,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:r,contains:p}},i,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:f.map((e=>`${e}|1.5`)).join(" ")},contains:[m]},a,e.QUOTE_STRING_MODE,d,c,u,l,{begin:/\.$/}]}}e.exports=t},25236:function(e){function t(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function n(e){return e?"string"===typeof e?e:e.source:null}function r(e){return i("(?=",e,")")}function i(...e){const t=e.map((e=>n(e))).join("");return t}function a(e){const t=e[e.length-1];return"object"===typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function o(...e){const t=a(e),r="("+(t.capture?"":"?:")+e.map((e=>n(e))).join("|")+")";return r}function s(e){const n=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],a={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},s=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],l=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],c=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],u=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],d=["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],h={keyword:n,literal:l,built_in:d,"variable.constant":c},p=e.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),f={variants:[p,e.C_LINE_COMMENT_MODE]},m=/[a-zA-Z_](\w|')*/,g={scope:"variable",begin:/``/,end:/``/},v=/\B('|\^)/,b={scope:"symbol",variants:[{match:i(v,/``.*?``/)},{match:i(v,e.UNDERSCORE_IDENT_RE)}],relevance:0},y=function({includeEqual:e}){let n;n=e?"!%&*+-/<=>@^|~?":"!%&*+-/<>@^|~?";const a=Array.from(n),s=i("[",...a.map(t),"]"),l=o(s,/\./),c=i(l,r(l)),u=o(i(c,l,"*"),i(s,"+"));return{scope:"operator",match:o(u,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},w=y({includeEqual:!0}),E=y({includeEqual:!1}),_=function(t,n){return{begin:i(t,r(i(/\s*/,o(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:n,end:r(o(/\n/,/=/)),relevance:0,keywords:e.inherit(h,{type:u}),contains:[f,b,e.inherit(g,{scope:null}),E]}},S=_(/:/,"operator"),k=_(/\bof\b/,"keyword"),x={begin:[/(^|\s+)/,/type/,/\s+/,m],beginScope:{2:"keyword",4:"title.class"},end:r(/\(|=|$/),keywords:h,contains:[f,e.inherit(g,{scope:null}),b,{scope:"operator",match:/<|>/},S]},A={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},N={begin:[/^\s*/,i(/#/,o(...s)),/\b/],beginScope:{2:"meta"},end:r(/\s|$/)},C={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},T={scope:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},R={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},e.BACKSLASH_ESCAPE]},O={scope:"string",begin:/"""/,end:/"""/,relevance:2},I={scope:"subst",begin:/\{/,end:/\}/,keywords:h},L={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},e.BACKSLASH_ESCAPE,I]},D={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},e.BACKSLASH_ESCAPE,I]},P={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},I],relevance:2},M={scope:"string",match:i(/'/,o(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};I.contains=[D,L,R,T,M,a,f,g,S,A,N,C,b,w];const B={variants:[P,D,L,O,R,T,M]};return{name:"F#",aliases:["fs","f#"],keywords:h,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[a,B,f,g,x,{scope:"meta",begin:/\[</,end:/>\]/,relevance:2,contains:[g,O,R,T,M,C]},k,S,A,N,C,b,w]}}e.exports=s},51468:function(e){function t(e){const t=["true","false","iota","nil"],n=["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"],r=["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],i=["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],a={keyword:i,type:r,literal:t,built_in:n};return{name:"Go",aliases:["golang"],keywords:a,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:e.C_NUMBER_RE+"[i]",relevance:1},e.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:a,illegal:/["']/}]}]}}e.exports=t},95541:function(e){function t(e){const t=["task","project","allprojects","subprojects","artifacts","buildscript","configurations","dependencies","repositories","sourceSets","description","delete","from","into","include","exclude","source","classpath","destinationDir","includes","options","sourceCompatibility","targetCompatibility","group","flatDir","doLast","doFirst","flatten","todir","fromdir","ant","def","abstract","break","case","catch","continue","default","do","else","extends","final","finally","for","if","implements","instanceof","native","new","private","protected","public","return","static","switch","synchronized","throw","throws","transient","try","volatile","while","strictfp","package","import","false","null","super","this","true","antlrtask","checkstyle","codenarc","copy","boolean","byte","char","class","double","float","int","interface","long","short","void","compile","runTime","file","fileTree","abs","any","append","asList","asWritable","call","collect","compareTo","count","div","dump","each","eachByte","eachFile","eachLine","every","find","findAll","flatten","getAt","getErr","getIn","getOut","getText","grep","immutable","inject","inspect","intersect","invokeMethods","isCase","join","leftShift","minus","multiply","newInputStream","newOutputStream","newPrintWriter","newReader","newWriter","next","plus","pop","power","previous","print","println","push","putAt","read","readBytes","readLines","reverse","reverseEach","round","size","sort","splitEachLine","step","subMap","times","toInteger","toList","tokenize","upto","waitForOrKill","withPrintWriter","withReader","withStream","withWriter","withWriterAppend","write","writeLine"];return{name:"Gradle",case_insensitive:!0,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.REGEXP_MODE]}}e.exports=t},53528:function(e){function t(e,t={}){return t.variants=e,t}function n(e){const n=e.regex,r="[A-Za-z0-9_$]+",i=t([e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),a={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[e.BACKSLASH_ESCAPE]},o=t([e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]),s=t([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE],{className:"string"}),l={match:[/(class|interface|trait|enum|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE],scope:{1:"keyword",3:"title.class"}},c=["byte","short","char","int","long","boolean","float","double","void"],u=["def","as","in","assert","trait","abstract","static","volatile","transient","public","private","protected","synchronized","final","class","interface","enum","if","else","for","while","switch","case","break","default","continue","throw","throws","try","catch","finally","implements","extends","new","import","package","return","instanceof"];return{name:"Groovy",keywords:{"variable.language":"this super",literal:"true false null",type:c,keyword:u},contains:[e.SHEBANG({binary:"groovy",relevance:10}),i,s,a,o,l,{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:r+"[ \t]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[i,s,a,o,"self"]},{className:"symbol",begin:"^[ \t]*"+n.lookahead(r+":"),excludeBegin:!0,end:r+":",relevance:0}],illegal:/#|<\//}}e.exports=n},88842:function(e){function t(e){const t=e.regex,n={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},r={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},i=/""|"[^"]+"/,a=/''|'[^']+'/,o=/\[\]|\[[^\]]+\]/,s=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,l=/(\.|\/)/,c=t.either(i,a,o,s),u=t.concat(t.optional(/\.|\.\/|\//),c,t.anyNumberOfTimes(t.concat(l,c))),d=t.concat("(",o,"|",s,")(?==)"),h={begin:u},p=e.inherit(h,{keywords:r}),f={begin:/\(/,end:/\)/},m={className:"attr",begin:d,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,p,f]}}},g={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},v={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,g,m,p,f],returnEnd:!0},b=e.inherit(h,{className:"name",keywords:n,starts:e.inherit(v,{end:/\)/})});f.contains=[b];const y=e.inherit(h,{keywords:n,className:"name",starts:e.inherit(v,{end:/\}\}/})}),w=e.inherit(h,{keywords:n,className:"name"}),E=e.inherit(h,{className:"name",keywords:n,starts:e.inherit(v,{end:/\}\}/})}),_={begin:/\\\{\{/,skip:!0},S={begin:/\\\\(?=\{\{)/,skip:!0};return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[_,S,e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[y],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[w]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[y]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[w]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[E]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[E]}]}}e.exports=t},74192:function(e){function t(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"meta",begin:/\{-#/,end:/#-\}/},r={className:"meta",begin:"^#",end:"$"},i={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},a={begin:"\\(",end:"\\)",illegal:'"',contains:[n,r,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),t]},o={begin:/\{/,end:/\}/,contains:a.contains},s="([0-9]_*)+",l="([0-9a-fA-F]_*)+",c="([01]_*)+",u="([0-7]_*)+",d={className:"number",relevance:0,variants:[{match:`\\b(${s})(\\.(${s}))?([eE][+-]?(${s}))?\\b`},{match:`\\b0[xX]_*(${l})(\\.(${l}))?([pP][+-]?(${s}))?\\b`},{match:`\\b0[oO](${u})\\b`},{match:`\\b0[bB](${c})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[a,t],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[a,t],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[i,a,t]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[n,i,a,o,t]},{beginKeywords:"default",end:"$",contains:[i,a,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[i,e.QUOTE_STRING_MODE,t]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},n,r,e.QUOTE_STRING_MODE,d,i,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}]}}e.exports=t},99682:function(e){function t(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},s={begin:/\[/,end:/\]/,contains:[r,a,i,o,n,"self"],relevance:0},l=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,u=/'[^']*'/,d=t.either(l,c,u),h=t.concat(d,"(\\s*\\.\\s*",d,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:h,className:"attr",starts:{end:/$/,contains:[r,s,a,i,o,n]}}]}}e.exports=t},26418:function(e){var t="[0-9](_*[0-9])*",n=`\\.(${t})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",i={className:"number",variants:[{begin:`(\\b(${t})((${n})|\\.)?|(${n}))[eE][+-]?(${t})[fFdD]?\\b`},{begin:`\\b(${t})((${n})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${n})[fFdD]?\\b`},{begin:`\\b(${t})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${t})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function a(e,t,n){return-1===n?"":e.replace(t,(r=>a(e,t,n-1)))}function o(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+a("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),o=["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed"],s=["super","this"],l=["false","true","null"],c=["char","boolean","long","float","int","byte","short","double"],u={keyword:o,literal:l,type:c,built_in:s},d={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},h={className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:u,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[h,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:u,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i,d]}}e.exports=o},73113:function(e){const t="[A-Za-z$_][0-9A-Za-z$_]*",n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],i=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],a=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","module","global"],l=[].concat(o,i,a);function c(e){const c=e.regex,u=(e,{after:t})=>{const n="</"+e[0].slice(1),r=e.input.indexOf(n,t);return-1!==r},d=t,h={begin:"<>",end:"</>"},p=/<[A-Za-z0-9\\._:-]+\s*\/>/,f={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const n=e[0].length+e.index,r=e.input[n];if("<"===r||","===r)return void t.ignoreMatch();let i;">"===r&&(u(e,{after:n})||t.ignoreMatch());const a=e.input.substring(n);(i=a.match(/^\s+extends\s+/))&&0===i.index&&t.ignoreMatch()}},m={$pattern:t,keyword:n,literal:r,built_in:l,"variable.language":s},g="[0-9](_?[0-9])*",v=`\\.(${g})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",y={className:"number",variants:[{begin:`(\\b(${b})((${v})|\\.)?|(${v}))[eE][+-]?(${g})\\b`},{begin:`\\b(${b})\\b((${v})\\b|\\.)?|(${v})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},w={className:"subst",begin:"\\$\\{",end:"\\}",keywords:m,contains:[]},E={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,w],subLanguage:"xml"}},_={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,w],subLanguage:"css"}},S={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,w]},k=e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:d+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),x={className:"comment",variants:[k,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},A=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,E,_,S,y];w.contains=A.concat({begin:/\{/,end:/\}/,keywords:m,contains:["self"].concat(A)});const N=[].concat(x,w.contains),C=N.concat([{begin:/\(/,end:/\)/,keywords:m,contains:["self"].concat(N)}]),T={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:m,contains:C},R={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,c.concat(d,"(",c.concat(/\./,d),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,d],scope:{1:"keyword",3:"title.class"}}]},O={relevance:0,match:c.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...i,...a]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[T],illegal:/%/},D={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function P(e){return c.concat("(?!",e.join("|"),")")}const M={match:c.concat(/\b/,P([...o,"super"]),d,c.lookahead(/\(/)),className:"title.function",relevance:0},B={begin:c.concat(/\./,c.lookahead(c.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},F={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},T]},$="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",U={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,c.lookahead($)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[T]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:m,exports:{PARAMS_CONTAINS:C,CLASS_REFERENCE:O},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,E,_,S,x,y,O,{className:"attr",begin:d+c.lookahead(":"),relevance:0},U,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,e.REGEXP_MODE,{className:"function",begin:$,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:m,contains:C}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:h.begin,end:h.end},{match:p},{begin:f.begin,"on:begin":f.isTrulyOpeningTag,end:f.end}],subLanguage:"xml",contains:[{begin:f.begin,end:f.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[T,e.inherit(e.TITLE_MODE,{begin:d,className:"title.function"})]},{match:/\.\.\./,relevance:0},B,{match:"\\$"+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[T]},M,D,R,F,{match:/\$[(.]/}]}}e.exports=c},90020:function(e){function t(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}e.exports=t},44063:function(e){var t="[0-9](_*[0-9])*",n=`\\.(${t})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",i={className:"number",variants:[{begin:`(\\b(${t})((${n})|\\.)?|(${n}))[eE][+-]?(${t})[fFdD]?\\b`},{begin:`\\b(${t})((${n})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${n})[fFdD]?\\b`},{begin:`\\b(${t})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${t})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function a(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},a={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},s={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,a]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,a]}]};a.contains.push(s);const l={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},c={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(s,{className:"string"}),"self"]}]},u=i,d=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),h={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},p=h;return p.variants[1].contains=[h],h.variants[1].contains=[p],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,d,n,r,l,c,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[h,e.C_LINE_COMMENT_MODE,d],relevance:0},e.C_LINE_COMMENT_MODE,d,l,c,s,e.C_NUMBER_MODE]},d]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},l,c]},s,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},u]}}e.exports=a},1075:function(e){const t=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),n=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],a=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),s=i.concat(a);function l(e){const l=t(e),c=s,u="and or not only",d="[\\w-]+",h="("+d+"|@\\{"+d+"\\})",p=[],f=[],m=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},g=function(e,t,n){return{className:e,begin:t,relevance:n}},v={$pattern:/[a-z-]+/,keyword:u,attribute:r.join(" ")},b={begin:"\\(",end:"\\)",contains:f,keywords:v,relevance:0};f.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m("'"),m('"'),l.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},l.HEXCOLOR,b,g("variable","@@?"+d,10),g("variable","@\\{"+d+"\\}"),g("built_in","~?`[^`]*?`"),{className:"attribute",begin:d+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},l.IMPORTANT,{beginKeywords:"and not"},l.FUNCTION_DISPATCH);const y=f.concat({begin:/\{/,end:/\}/,contains:p}),w={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(f)},E={begin:h+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},l.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:f}}]},_={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:v,returnEnd:!0,contains:f,relevance:0}},S={className:"variable",variants:[{begin:"@"+d+"\\s*:",relevance:15},{begin:"@"+d}],starts:{end:"[;}]",returnEnd:!0,contains:y}},k={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:h,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,w,g("keyword","all\\b"),g("variable","@\\{"+d+"\\}"),{begin:"\\b("+n.join("|")+")\\b",className:"selector-tag"},l.CSS_NUMBER_MODE,g("selector-tag",h,0),g("selector-id","#"+h),g("selector-class","\\."+h,0),g("selector-tag","&",0),l.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+a.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:y},{begin:"!important"},l.FUNCTION_DISPATCH]},x={begin:d+":(:)?"+`(${c.join("|")})`,returnBegin:!0,contains:[k]};return p.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,_,S,x,E,k,w,l.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:p}}e.exports=l},8090:function(e){function t(e){const t="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",n="\\|[^]*?\\|",r="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",i={className:"literal",begin:"\\b(t{1}|nil)\\b"},a={className:"number",variants:[{begin:r,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+r+" +"+r,end:"\\)"}]},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s=e.COMMENT(";","$",{relevance:0}),l={begin:"\\*",end:"\\*"},c={className:"symbol",begin:"[:&]"+t},u={begin:t,relevance:0},d={begin:n},h={begin:"\\(",end:"\\)",contains:["self",i,o,a,u]},p={contains:[a,o,l,c,h,u],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+n}]},f={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},m={begin:"\\(\\s*",end:"\\)"},g={endsWithParent:!0,relevance:0};return m.contains=[{className:"name",variants:[{begin:t,relevance:0},{begin:n}]},g],g.contains=[p,f,m,i,a,o,s,l,c,d,u],{name:"Lisp",illegal:/\S/,contains:[a,e.SHEBANG(),i,o,s,p,f,m,u]}}e.exports=t},77190:function(e){function t(e){const t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}e.exports=t},30374:function(e){function t(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},a={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},o={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,r,i,a,o]}}e.exports=t},50687:function(e){function t(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},a={className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},u={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]},d=e.inherit(c,{contains:[]}),h=e.inherit(u,{contains:[]});c.contains.push(h),u.contains.push(d);let p=[n,l];[c,u,d,h].forEach((e=>{e.contains=e.contains.concat(p)})),p=p.concat(c,u);const f={className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:p},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:p}]}]},m={className:"quote",begin:"^>\\s+",contains:p,end:"$"};return{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[f,n,a,c,u,m,i,r,l,o]}}e.exports=t},86072:function(e){function t(e){const t=e.regex,n={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},r=["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"],i={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:r},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[n]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},n]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:i.contains,keywords:{section:"upstream location"}},{className:"section",begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:i}],relevance:0}],illegal:"[^\\s\\}\\{]"}}e.exports=t},69318:function(e){function t(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,r=["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"],i=["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],a=["false","true","FALSE","TRUE","nil","YES","NO","NULL"],o=["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],s={"variable.language":["this","super"],$pattern:n,keyword:i,literal:a,built_in:o,type:r},l={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}e.exports=t},3315:function(e){function t(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},a={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},o={begin:/->\{/,end:/\}/},s={variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},l=[e.BACKSLASH_ESCAPE,a,s],c=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],u=(e,n,i="\\1")=>{const a="\\1"===i?i:t.concat(i,n);return t.concat(t.concat("(?:",e,")"),n,/(?:\\.|[^\\\/])*?/,a,/(?:\\.|[^\\\/])*?/,i,r)},d=(e,n,i)=>t.concat(t.concat("(?:",e,")"),n,/(?:\\.|[^\\\/])*?/,i,r),h=[s,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:l,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:u("s|tr|y",t.either(...c,{capture:!0}))},{begin:u("s|tr|y","\\(","\\)")},{begin:u("s|tr|y","\\[","\\]")},{begin:u("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:d("(?:m|qr)?",/\//,/\//)},{begin:d("m|qr",t.either(...c,{capture:!0}),/\1/)},{begin:d("m|qr",/\(/,/\)/)},{begin:d("m|qr",/\[/,/\]/)},{begin:d("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return a.contains=h,o.contains=h,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:h}}e.exports=t},74071:function(e){function t(e){const t=e.COMMENT("--","$"),n="[a-zA-Z_][a-zA-Z_0-9$]*",r="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",i="<<\\s*"+n+"\\s*>>",a="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",o="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",s="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",l="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",c=l.trim().split(" ").map((function(e){return e.split("|")[0]})).join("|"),u="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",d="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",h="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",p="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ",f=p.trim().split(" ").map((function(e){return e.split("|")[0]})).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:a+s+o,built_in:u+d+h},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+f+")\\s*\\("},{begin:"\\.("+c+")\\b"},{begin:"\\b("+c+")\\s+PATH\\b",keywords:{keyword:"PATH",type:l.replace("PATH ","")}},{className:"type",begin:"\\b("+c+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:r,end:r,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:i,relevance:10}]}}e.exports=t},37592:function(e){function t(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),a={scope:"variable",match:"\\$+"+r},o={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},s={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(s)}),u=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(s)}),d="[ \t\n]",h={scope:"string",variants:[c,l,u]},p={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},f=["false","null","true"],m=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],g=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],v=e=>{const t=[];return e.forEach((e=>{t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase())})),t},b={keyword:m,literal:v(f),built_in:g},y=e=>e.map((e=>e.replace(/\|\d+$/,""))),w={variants:[{match:[/new/,t.concat(d,"+"),t.concat("(?!",y(g).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},E=t.concat(r,"\\b(?!\\()"),_={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),E],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),E],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},S={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},k={relevance:0,begin:/\(/,end:/\)/,keywords:b,contains:[S,a,_,e.C_BLOCK_COMMENT_MODE,h,p,w]},x={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",y(m).join("\\b|"),"|",y(g).join("\\b|"),"\\b)"),r,t.concat(d,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[k]};k.contains.push(x);const A=[S,_,e.C_BLOCK_COMMENT_MODE,h,p,w],N={begin:t.concat(/#\[\s*/,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:f,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:f,keyword:["new","array"]},contains:["self",...A]},...A,{scope:"meta",match:i}]};return{case_insensitive:!1,keywords:b,contains:[N,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},o,{scope:"variable.language",match:/\$this\b/},a,x,_,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},w,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:b,contains:["self",a,_,e.C_BLOCK_COMMENT_MODE,h,p]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},h,p]}}e.exports=t},50619:function(e){function t(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}e.exports=t},45107:function(e){function t(e){const t=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],n="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",r="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",i={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},a=/\w[\w\d]*((-)[\w\d]+)*/,o={begin:"`[\\s\\S]",relevance:0},s={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},l={className:"literal",begin:/\$(null|true|false)\b/},c={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[o,s,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},u={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},d={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},h=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[d]}),p={className:"built_in",variants:[{begin:"(".concat(n,")+(-)[\\w\\d]+")}]},f={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},m={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:a,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[s]}]},g={begin:/using\s/,end:/$/,returnBegin:!0,contains:[c,u,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},v={variants:[{className:"operator",begin:"(".concat(r,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},b={className:"selector-tag",begin:/@\B/,relevance:0},y={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(i.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},w=[y,h,o,e.NUMBER_MODE,c,u,p,s,l,b],E={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",w,{begin:"("+t.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return y.contains.unshift(E),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:i,contains:w.concat(f,m,g,v,E)}}e.exports=t},76015:function(e){function t(e){const t="[ \\t\\f]*",n="[ \\t\\f]+",r=t+"[:=]"+t,i=n,a="("+r+"|"+i+")",o="([^\\\\:= \\t\\f\\n]|\\\\.)+",s={end:a,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:o+r},{begin:o+i}],contains:[{className:"attr",begin:o,endsParent:!0}],starts:s},{className:"attr",begin:o+t+"$"}]}}e.exports=t},2061:function(e){function t(e){const t=["package","import","option","optional","required","repeated","group","oneof"],n=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],r={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",keywords:{keyword:t,type:n,literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}e.exports=t},90944:function(e){function t(e){const t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],i=["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],a=["__debug__","Ellipsis","False","None","NotImplemented","True"],o=["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:i,literal:a,type:o},l={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},u={begin:/\{\{/,relevance:0},d={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l,u,c]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,u,c]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},h="[0-9](_?[0-9])*",p=`(\\b(${h}))?\\.(${h})|\\b(${h})\\.`,f=`\\b|${r.join("|")}`,m={className:"number",relevance:0,variants:[{begin:`(\\b(${h})|(${p}))[eE][+-]?(${h})[jJ]?(?=${f})`},{begin:`(${p})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${f})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${f})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${f})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${f})`},{begin:`\\b(${h})[jJ](?=${f})`}]},g={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},v={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",l,m,d,e.HASH_COMMENT_MODE]}]};return c.contains=[d,m,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|->|\?)|=>/,contains:[l,m,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},d,g,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[v]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[m,v,d]}]}}e.exports=t},79386:function(e){function t(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),a={"variable.constant":["__FILE__","__LINE__"],"variable.language":["self","super"],keyword:["alias","and","attr_accessor","attr_reader","attr_writer","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","include","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield"],built_in:["proc","lambda"],literal:["true","false","nil"]},o={className:"doctag",begin:"@[A-Za-z]+"},s={begin:"#<",end:">"},l=[e.COMMENT("#","$",{contains:[o]}),e.COMMENT("^=begin","^=end",{contains:[o],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,end:/\}/,keywords:a},u={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,c]})]}]},d="[1-9](_?[0-9])*|0",h="[0-9](_?[0-9])*",p={className:"number",relevance:0,variants:[{begin:`\\b(${d})(\\.(${h}))?([eE][+-]?(${h})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},f={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},m={variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/class\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},g={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},v={match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[f]},b={relevance:0,match:[i,/\.new[ (]/],scope:{1:"title.class"}},y=[u,m,b,g,v,{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[u,{begin:n}],relevance:0},p,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(s,l),relevance:0}].concat(s,l);c.contains=y,f.contains=y;const w="[>?]>",E="[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]",_="(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>",S=[{begin:/^\s*=>/,starts:{end:"$",contains:y}},{className:"meta.prompt",begin:"^("+w+"|"+E+"|"+_+")(?=[ ])",starts:{end:"$",keywords:a,contains:y}}];return l.unshift(s),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(S).concat(l).concat(y)}}e.exports=t},8368:function(e){function t(e){const t=e.regex,n={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let\b)/,e.IDENT_RE,t.lookahead(/\s*\(/))},r="([ui](8|16|32|64|128|size)|f(32|64))?",i=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],a=["true","false","Some","None","Ok","Err"],o=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],s=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:s,keyword:i,literal:a,built_in:o},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+r},{begin:"\\b0o([0-7_]+)"+r},{begin:"\\b0x([A-Fa-f0-9_]+)"+r},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+r}],relevance:0},{begin:[/fn/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,e.UNDERSCORE_IDENT_RE,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:o,type:s}},{className:"punctuation",begin:"->"},n]}}e.exports=t},31914:function(e){function t(e){const t=e.regex,n={className:"meta",begin:"@[A-Za-z]+"},r={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},i={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,r]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[r],relevance:10}]},a={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},o={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},s={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a]},o]},l={className:"function",beginKeywords:"def",end:t.lookahead(/[:={\[(\n;]/),contains:[o]},c={begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},u={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},d=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"}],h={begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:"keyword"}};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,a,l,s,e.C_NUMBER_MODE,c,u,...d,h,n]}}e.exports=t},74222:function(e){const t=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),n=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],a=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function s(e){const s=t(e),l=a,c=i,u="@[a-z-]+",d="and or not only",h="[a-zA-Z-][a-zA-Z0-9_-]*",p={className:"variable",begin:"(\\$"+h+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},s.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+n.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+c.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+l.join("|")+")"},p,{begin:/\(/,end:/\)/,contains:[s.CSS_NUMBER_MODE]},s.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[s.BLOCK_COMMENT,p,s.HEXCOLOR,s.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,s.IMPORTANT,s.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:u,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:d,attribute:r.join(" ")},contains:[{begin:u,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},p,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,s.HEXCOLOR,s.CSS_NUMBER_MODE]},s.FUNCTION_DISPATCH]}}e.exports=s},7846:function(e){function t(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}e.exports=t},90984:function(e){function t(e){const t=e.regex,n=e.COMMENT("--","$"),r={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},i={begin:/"/,end:/"/,contains:[{begin:/""/}]},a=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],c=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],u=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],h=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],p=u,f=[...c,...l].filter((e=>!u.includes(e))),m={className:"variable",begin:/@[a-z0-9]+/},g={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},v={begin:t.concat(/\b/,t.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function b(e,{exceptions:t,when:n}={}){const r=n;return t=t||[],e.map((e=>e.match(/\|\d+$/)||t.includes(e)?e:r(e)?`${e}|0`:e))}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:b(f,{when:e=>e.length<3}),literal:a,type:s,built_in:d},contains:[{begin:t.either(...h),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:f.concat(h),literal:a,type:s}},{className:"type",begin:t.either(...o)},v,m,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,g]}}e.exports=t},72723:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(e){return r("(?=",e,")")}function r(...e){const n=e.map((e=>t(e))).join("");return n}function i(e){const t=e[e.length-1];return"object"===typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function a(...e){const n=i(e),r="("+(n.capture?"":"?:")+e.map((e=>t(e))).join("|")+")";return r}const o=e=>r(/\b/,e,/\w$/.test(e)?/\b/:/\B/),s=["Protocol","Type"].map(o),l=["init","self"].map(o),c=["Any","Self"],u=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],d=["false","nil","true"],h=["assignment","associativity","higherThan","left","lowerThan","none","right"],p=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],f=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],m=a(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),g=a(m,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),v=r(m,g,"*"),b=a(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),y=a(b,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),w=r(b,y,"*"),E=r(/[A-Z]/,y,"*"),_=["autoclosure",r(/convention\(/,a("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,w,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],S=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function k(e){const t={match:/\s+/,relevance:0},i=e.COMMENT("/\\*","\\*/",{contains:["self"]}),m=[e.C_LINE_COMMENT_MODE,i],b={match:[/\./,a(...s,...l)],className:{2:"keyword"}},k={match:r(/\./,a(...u)),relevance:0},x=u.filter((e=>"string"===typeof e)).concat(["_|0"]),A=u.filter((e=>"string"!==typeof e)).concat(c).map(o),N={variants:[{className:"keyword",match:a(...A,...l)}]},C={$pattern:a(/\b\w+/,/#\w+/),keyword:x.concat(p),literal:d},T=[b,k,N],R={match:r(/\./,a(...f)),relevance:0},O={className:"built_in",match:r(/\b/,a(...f),/(?=\()/)},I=[R,O],L={match:/->/,relevance:0},D={className:"operator",relevance:0,variants:[{match:v},{match:`\\.(\\.|${g})+`}]},P=[L,D],M="([0-9]_*)+",B="([0-9a-fA-F]_*)+",F={className:"number",relevance:0,variants:[{match:`\\b(${M})(\\.(${M}))?([eE][+-]?(${M}))?\\b`},{match:`\\b0x(${B})(\\.(${B}))?([pP][+-]?(${M}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},$=(e="")=>({className:"subst",variants:[{match:r(/\\/,e,/[0\\tnr"']/)},{match:r(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),U=(e="")=>({className:"subst",match:r(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),j=(e="")=>({className:"subst",label:"interpol",begin:r(/\\/,e,/\(/),end:/\)/}),V=(e="")=>({begin:r(e,/"""/),end:r(/"""/,e),contains:[$(e),U(e),j(e)]}),K=(e="")=>({begin:r(e,/"/),end:r(/"/,e),contains:[$(e),j(e)]}),H={className:"string",variants:[V(),V("#"),V("##"),V("###"),K(),K("#"),K("##"),K("###")]},G={match:r(/`/,w,/`/)},z={className:"variable",match:/\$\d+/},q={className:"variable",match:`\\$${y}+`},X=[G,z,q],W={match:/(@|#(un)?)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:S,contains:[...P,F,H]}]}},Y={className:"keyword",match:r(/@/,a(..._))},Q={className:"meta",match:r(/@/,w)},J=[W,Y,Q],Z={match:n(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:r(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,y,"+")},{className:"type",match:E,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,n(E)),relevance:0}]},ee={begin:/</,end:/>/,keywords:C,contains:[...m,...T,...J,L,Z]};Z.contains.push(ee);const te={match:r(w,/\s*:/),keywords:"_|0",relevance:0},ne={begin:/\(/,end:/\)/,relevance:0,keywords:C,contains:["self",te,...m,...T,...I,...P,F,H,...X,...J,Z]},re={begin:/</,end:/>/,contains:[...m,Z]},ie={begin:a(n(r(w,/\s*:/)),n(r(w,/\s+/,w,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:w}]},ae={begin:/\(/,end:/\)/,keywords:C,contains:[ie,...m,...T,...P,F,H,...J,Z,ne],endsParent:!0,illegal:/["']/},oe={match:[/func/,/\s+/,a(G.match,w,v)],className:{1:"keyword",3:"title.function"},contains:[re,ae,t],illegal:[/\[/,/%/]},se={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[re,ae,t],illegal:/\[|%/},le={match:[/operator/,/\s+/,v],className:{1:"keyword",3:"title"}},ce={begin:[/precedencegroup/,/\s+/,E],className:{1:"keyword",3:"title"},contains:[Z],keywords:[...h,...d],end:/}/};for(const n of H.variants){const e=n.contains.find((e=>"interpol"===e.label));e.keywords=C;const t=[...T,...I,...P,F,H,...X];e.contains=[...t,{begin:/\(/,end:/\)/,contains:["self",...t]}]}return{name:"Swift",keywords:C,contains:[...m,oe,se,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:C,contains:[e.inherit(e.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...T]},le,ce,{beginKeywords:"import",end:/$/,contains:[...m],relevance:0},...T,...I,...P,F,H,...X,...J,Z,ne]}}e.exports=k},45745:function(e){const t="[A-Za-z$_][0-9A-Za-z$_]*",n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],i=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],a=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","module","global"],l=[].concat(o,i,a);function c(e){const c=e.regex,u=(e,{after:t})=>{const n="</"+e[0].slice(1),r=e.input.indexOf(n,t);return-1!==r},d=t,h={begin:"<>",end:"</>"},p=/<[A-Za-z0-9\\._:-]+\s*\/>/,f={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const n=e[0].length+e.index,r=e.input[n];if("<"===r||","===r)return void t.ignoreMatch();let i;">"===r&&(u(e,{after:n})||t.ignoreMatch());const a=e.input.substring(n);(i=a.match(/^\s+extends\s+/))&&0===i.index&&t.ignoreMatch()}},m={$pattern:t,keyword:n,literal:r,built_in:l,"variable.language":s},g="[0-9](_?[0-9])*",v=`\\.(${g})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",y={className:"number",variants:[{begin:`(\\b(${b})((${v})|\\.)?|(${v}))[eE][+-]?(${g})\\b`},{begin:`\\b(${b})\\b((${v})\\b|\\.)?|(${v})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},w={className:"subst",begin:"\\$\\{",end:"\\}",keywords:m,contains:[]},E={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,w],subLanguage:"xml"}},_={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,w],subLanguage:"css"}},S={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,w]},k=e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:d+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),x={className:"comment",variants:[k,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},A=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,E,_,S,y];w.contains=A.concat({begin:/\{/,end:/\}/,keywords:m,contains:["self"].concat(A)});const N=[].concat(x,w.contains),C=N.concat([{begin:/\(/,end:/\)/,keywords:m,contains:["self"].concat(N)}]),T={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:m,contains:C},R={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,c.concat(d,"(",c.concat(/\./,d),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,d],scope:{1:"keyword",3:"title.class"}}]},O={relevance:0,match:c.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...i,...a]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[T],illegal:/%/},D={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function P(e){return c.concat("(?!",e.join("|"),")")}const M={match:c.concat(/\b/,P([...o,"super"]),d,c.lookahead(/\(/)),className:"title.function",relevance:0},B={begin:c.concat(/\./,c.lookahead(c.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},F={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},T]},$="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",U={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,c.lookahead($)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[T]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:m,exports:{PARAMS_CONTAINS:C,CLASS_REFERENCE:O},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,E,_,S,x,y,O,{className:"attr",begin:d+c.lookahead(":"),relevance:0},U,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,e.REGEXP_MODE,{className:"function",begin:$,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:m,contains:C}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:h.begin,end:h.end},{match:p},{begin:f.begin,"on:begin":f.isTrulyOpeningTag,end:f.end}],subLanguage:"xml",contains:[{begin:f.begin,end:f.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[T,e.inherit(e.TITLE_MODE,{begin:d,className:"title.function"})]},{match:/\.\.\./,relevance:0},B,{match:"\\$"+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[T]},M,D,R,F,{match:/\$[(.]/}]}}function u(e){const i=c(e),a=t,o=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],u={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[i.exports.CLASS_REFERENCE]},d={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:o},contains:[i.exports.CLASS_REFERENCE]},h={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},p=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],f={$pattern:t,keyword:n.concat(p),literal:r,built_in:l.concat(o),"variable.language":s},m={className:"meta",begin:"@"+a},g=(e,t,n)=>{const r=e.contains.findIndex((e=>e.label===t));if(-1===r)throw new Error("can not find mode to replace");e.contains.splice(r,1,n)};Object.assign(i.keywords,f),i.exports.PARAMS_CONTAINS.push(m),i.contains=i.contains.concat([m,u,d]),g(i,"shebang",e.SHEBANG()),g(i,"use_strict",h);const v=i.contains.find((e=>"func.def"===e.label));return v.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx"]}),i}e.exports=u},21869:function(e){function t(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,l,s,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[a,o,l,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}e.exports=t},98005:function(e){function t(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},o=e.inherit(a,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),s="[0-9]{4}(-[0-9][0-9]){0,2}",l="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",c="(\\.[0-9]*)?",u="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",d={className:"number",begin:"\\b"+s+l+c+u+"\\b"},h={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},p={begin:/\{/,end:/\}/,contains:[h],illegal:"\\n",relevance:0},f={begin:"\\[",end:"\\]",contains:[h],illegal:"\\n",relevance:0},m=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},d,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},p,f,a],g=[...m];return g.pop(),g.push(o),h.contains=g,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:m}}e.exports=t},6471:function(e){"use strict";e.exports=JSON.parse('{"hasStylesheet":"true"}')},91862:function(e){"use strict";e.exports=JSON.parse('{"hasStylesheet":"false"}')},51507:function(e){"use strict";e.exports=JSON.parse('{"hasStylesheet":"false"}')},48401:function(e){"use strict";e.exports=JSON.parse('{"hasStylesheet":"false"}')},37259:function(e){"use strict";e.exports=JSON.parse('{"hasStylesheet":"true"}')},8330:function(e){"use strict";e.exports=JSON.parse('{"name":"harvester","description":"Rancher UI Extension for Harvester","version":"1.5.2-rc1","private":false,"rancher":{"annotations":{"catalog.cattle.io/display-name":"Harvester","catalog.cattle.io/kube-version":">= 1.16.0-0","catalog.cattle.io/rancher-version":">= 2.11.0-0","catalog.cattle.io/ui-extensions-version":">= 3.0.0 < 4.0.0"}},"icon":"https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg","scripts":{"dev":"./node_modules/.bin/nuxt dev","nuxt":"./node_modules/.bin/nuxt"},"engines":{"node":">=20.0.0"},"devDependencies":{"@vue/cli-plugin-babel":"~5.0.0","@vue/cli-service":"~5.0.0","@vue/cli-plugin-typescript":"~5.0.0"},"browserslist":["> 1%","last 2 versions","not dead"]}')}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=r,function(){a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,{a:t}),t}}(),function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"===typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"===typeof n.then)return n}var i=Object.create(null);a.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){o[e]=function(){return n[e]}}));return o["default"]=function(){return n},a.d(i,o),i}}(),function(){a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce((function(t,n){return a.f[n](e,t),t}),[]))}}(),function(){a.u=function(e){return"harvester-1.5.2-rc1.umd.min."+({332:"detail",715:"list",739:"edit",829:"csv",902:"formatters",907:"dialog",935:"xterm",973:"promptRemove"}[e]||e)+".js"}}(),function(){a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="harvester-1.5.2-rc1:";a.l=function(n,r,i,o){if(e[n])e[n].push(r);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==n||d.getAttribute("data-webpack")==t+i){s=d;break}}s||(l=!0,s=document.createElement("script"),s.charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",t+i),s.src=n),e[n]=[r];var h=function(t,r){s.onerror=s.onload=null,clearTimeout(p);var i=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((function(e){return e(r)})),t)return t(r)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),l&&document.head.appendChild(s)}}}(),function(){a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){a.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){a.p=""}(),function(){a.b=document.baseURI||self.location.href;var e={129:0};a.f.j=function(t,n){var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((function(n,i){r=e[t]=[n,i]}));n.push(r[2]=i);var o=a.p+a.u(t),s=new Error,l=function(n){if(a.o(e,t)&&(r=e[t],0!==r&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,r[1](s)}};a.l(o,l,"chunk-"+t,t)}};var t=function(t,n){var r,i,o=n[0],s=n[1],l=n[2],c=0;if(o.some((function(t){return 0!==e[t]}))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(l)l(a)}for(t&&t(n);c<o.length;c++)i=o[c],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_5_2_rc1"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_5_2_rc1"]||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var o={};return function(){"use strict";if(a.r(o),a.d(o,{default:function(){return Jk}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(a.p=t[1])}function n(e){e.register("detail","harvesterhci.io.host",(()=>Promise.all([a.e(238),a.e(559),a.e(207),a.e(431),a.e(954),a.e(545),a.e(876),a.e(332)]).then(a.bind(a,70464)))),e.register("detail","harvesterhci.io.management.cluster",(()=>Promise.all([a.e(238),a.e(559),a.e(207),a.e(431),a.e(954),a.e(545),a.e(876),a.e(332)]).then(a.bind(a,39562)))),e.register("detail","harvesterhci.io.schedulevmbackup",(()=>Promise.all([a.e(238),a.e(559),a.e(207),a.e(431),a.e(954),a.e(545),a.e(876),a.e(332)]).then(a.bind(a,1948)))),e.register("detail","harvesterhci.io.secret",(()=>Promise.all([a.e(238),a.e(559),a.e(207),a.e(431),a.e(954),a.e(545),a.e(876),a.e(332)]).then(a.bind(a,84735)))),e.register("detail","harvesterhci.io.virtualmachinebackup",(()=>Promise.all([a.e(238),a.e(559),a.e(207),a.e(431),a.e(954),a.e(545),a.e(876),a.e(332)]).then(a.bind(a,19509)))),e.register("detail","harvesterhci.io.virtualmachineimage",(()=>Promise.all([a.e(238),a.e(559),a.e(207),a.e(431),a.e(954),a.e(545),a.e(876),a.e(332)]).then(a.bind(a,99144)))),e.register("detail","harvesterhci.io.vmsnapshot",(()=>Promise.all([a.e(238),a.e(559),a.e(207),a.e(431),a.e(954),a.e(545),a.e(876),a.e(332)]).then(a.bind(a,97072)))),e.register("detail","kubevirt.io.virtualmachine",(()=>Promise.all([a.e(238),a.e(559),a.e(207),a.e(431),a.e(954),a.e(545),a.e(876),a.e(332)]).then(a.bind(a,59544)))),e.register("detail","loadbalancer.harvesterhci.io.ippool",(()=>Promise.all([a.e(238),a.e(559),a.e(207),a.e(431),a.e(954),a.e(545),a.e(876),a.e(332)]).then(a.bind(a,67973)))),e.register("detail","loadbalancer.harvesterhci.io.loadbalancer",(()=>Promise.all([a.e(238),a.e(559),a.e(207),a.e(431),a.e(954),a.e(545),a.e(876),a.e(332)]).then(a.bind(a,55224)))),e.register("detail","network.harvesterhci.io.vlanconfig",(()=>Promise.all([a.e(238),a.e(559),a.e(207),a.e(431),a.e(954),a.e(545),a.e(876),a.e(332)]).then(a.bind(a,27626)))),e.register("edit","harvesterhci.io.addon",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,81135)))),e.register("edit","harvesterhci.io.cloudtemplate",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,85019)))),e.register("edit","harvesterhci.io.host",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,89704)))),e.register("edit","harvesterhci.io.keypair",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,28355)))),e.register("edit","harvesterhci.io.logging.clusterflow",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,70675)))),e.register("edit","harvesterhci.io.logging.clusteroutput",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,17733)))),e.register("edit","harvesterhci.io.logging.flow",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,65647)))),e.register("edit","harvesterhci.io.logging.output",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,955)))),e.register("edit","harvesterhci.io.monitoring.alertmanagerconfig",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,20906)))),e.register("edit","harvesterhci.io.networkattachmentdefinition",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,95516)))),e.register("edit","harvesterhci.io.schedulevmbackup",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,39005)))),e.register("edit","harvesterhci.io.secret",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,41398)))),e.register("edit","harvesterhci.io.setting",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,56726)))),e.register("edit","harvesterhci.io.storage",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,39808)))),e.register("edit","harvesterhci.io.virtualmachinebackup",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,57717)))),e.register("edit","harvesterhci.io.virtualmachineimage",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,17361)))),e.register("edit","harvesterhci.io.virtualmachinetemplateversion",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,94089)))),e.register("edit","harvesterhci.io.vmsnapshot",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,68747)))),e.register("edit","harvesterhci.io.volume",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,82347)))),e.register("edit","harvesterhci.io.volumesnapshot",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,69305)))),e.register("edit","kubevirt.io.virtualmachine",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,91654)))),e.register("edit","loadbalancer.harvesterhci.io.ippool",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,59405)))),e.register("edit","loadbalancer.harvesterhci.io.loadbalancer",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,49464)))),e.register("edit","management.cattle.io.project",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,38482)))),e.register("edit","network.harvesterhci.io.clusternetwork",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,87544)))),e.register("edit","network.harvesterhci.io.vlanconfig",(()=>Promise.all([a.e(238),a.e(559),a.e(494),a.e(431),a.e(954),a.e(395),a.e(739)]).then(a.bind(a,1307)))),e.register("list","devices.harvesterhci.io.pcidevice",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,11590)))),e.register("list","devices.harvesterhci.io.sriovgpudevice",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,40190)))),e.register("list","devices.harvesterhci.io.sriovnetworkdevice",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,88426)))),e.register("list","devices.harvesterhci.io.usbdevice",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,92217)))),e.register("list","devices.harvesterhci.io.vgpudevice",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,53774)))),e.register("list","harvesterhci.io.addon",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,33699)))),e.register("list","harvesterhci.io.cloudtemplate",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,34317)))),e.register("list","harvesterhci.io.dashboard",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,93918)))),e.register("list","harvesterhci.io.host",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,60584)))),e.register("list","harvesterhci.io.logging.clusterflow",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,78646)))),e.register("list","harvesterhci.io.logging.clusteroutput",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,56497)))),e.register("list","harvesterhci.io.logging.flow",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,81342)))),e.register("list","harvesterhci.io.logging.output",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,65391)))),e.register("list","harvesterhci.io.monitoring.alertmanagerconfig",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,49610)))),e.register("list","harvesterhci.io.networkattachmentdefinition",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,9470)))),e.register("list","harvesterhci.io.schedulevmbackup",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,42148)))),e.register("list","harvesterhci.io.secret",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,60633)))),e.register("list","harvesterhci.io.setting",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,33063)))),e.register("list","harvesterhci.io.storage",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,51086)))),e.register("list","harvesterhci.io.virtualmachinebackup",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,69164)))),e.register("list","harvesterhci.io.virtualmachineimage",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,95115)))),e.register("list","harvesterhci.io.virtualmachinetemplateversion",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,81959)))),e.register("list","harvesterhci.io.vmsnapshot",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,61117)))),e.register("list","harvesterhci.io.volume",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,12523)))),e.register("list","harvesterhci.io.volumesnapshot",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,32776)))),e.register("list","kubevirt.io.virtualmachine",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,29809)))),e.register("list","network.harvesterhci.io.clusternetwork",(()=>Promise.all([a.e(207),a.e(131),a.e(545),a.e(395),a.e(715)]).then(a.bind(a,18144)))),e.register("models","clusterroletemplatebinding",(()=>a(83727))),e.register("models","devices.harvesterhci.io.pcidevice",(()=>a(66529))),e.register("models","devices.harvesterhci.io.pcideviceclaim",(()=>a(66325))),e.register("models","devices.harvesterhci.io.sriovgpudevice",(()=>a(13520))),e.register("models","devices.harvesterhci.io.sriovnetworkdevice",(()=>a(75128))),e.register("models","devices.harvesterhci.io.usbdevice",(()=>a(95311))),e.register("models","devices.harvesterhci.io.usbdeviceclaim",(()=>a(17467))),e.register("models","devices.harvesterhci.io.vgpudevice",(()=>a(46505))),e.register("models","harvester/configmap",(()=>a(24481))),e.register("models","harvester/k8s.cni.cncf.io.networkattachmentdefinition",(()=>a(4987))),e.register("models","harvester/logging.banzaicloud.io.clusterflow",(()=>a(50826))),e.register("models","harvester/logging.banzaicloud.io.clusteroutput",(()=>a(49039))),e.register("models","harvester/logging.banzaicloud.io.flow",(()=>a(40322))),e.register("models","harvester/logging.banzaicloud.io.output",(()=>a(15895))),e.register("models","harvester/management.cattle.io.setting",(()=>a(65073))),e.register("models","harvester/monitoring.coreos.com.alertmanagerconfig",(()=>a(53942))),e.register("models","harvester/namespace",(()=>a(62878))),e.register("models","harvester/node",(()=>a(55285))),e.register("models","harvester/persistentvolumeclaim",(()=>a(15908))),e.register("models","harvester/pod",(()=>a(14426))),e.register("models","harvester/schema",(()=>a(60698))),e.register("models","harvester/secret",(()=>a(36577))),e.register("models","harvester/snapshot.storage.k8s.io.volumesnapshot",(()=>a(87214))),e.register("models","harvester/storage.k8s.io.storageclass",(()=>a(82877))),e.register("models","harvester",(()=>a(24222))),e.register("models","harvesterhci.io.addon",(()=>a(52528))),e.register("models","harvesterhci.io.blockdevice",(()=>a(46933))),e.register("models","harvesterhci.io.keypair",(()=>a(72193))),e.register("models","harvesterhci.io.schedulevmbackup",(()=>a(26422))),e.register("models","harvesterhci.io.setting",(()=>a(96214))),e.register("models","harvesterhci.io.supportbundle",(()=>a(25661))),e.register("models","harvesterhci.io.upgrade",(()=>a(39334))),e.register("models","harvesterhci.io.upgradelog",(()=>a(25418))),e.register("models","harvesterhci.io.virtualmachinebackup",(()=>a(64778))),e.register("models","harvesterhci.io.virtualmachineimage",(()=>a(38287))),e.register("models","harvesterhci.io.virtualmachinerestore",(()=>a(82680))),e.register("models","harvesterhci.io.virtualmachinetemplate",(()=>a(61746))),e.register("models","harvesterhci.io.virtualmachinetemplateversion",(()=>a(96608))),e.register("models","k8s.cni.cncf.io.networkattachmentdefinition",(()=>a(43842))),e.register("models","kubevirt.io.virtualmachine",(()=>a(50784))),e.register("models","kubevirt.io.virtualmachineinstance",(()=>a(79095))),e.register("models","loadbalancer.harvesterhci.io.ippool",(()=>a(68917))),e.register("models","loadbalancer.harvesterhci.io.loadbalancer",(()=>a(61772))),e.register("models","longhorn.io.node",(()=>a(28433))),e.register("models","metal.harvesterhci.io.inventory",(()=>a(11971))),e.register("models","network.harvesterhci.io.clusternetwork",(()=>a(85696))),e.register("models","network.harvesterhci.io.nodenetwork",(()=>a(88272))),e.register("models","network.harvesterhci.io.vlanconfig",(()=>a(70443))),e.register("models","network.harvesterhci.io.vlanstatus",(()=>a(61715))),e.register("promptRemove","kubevirt.io.virtualmachine",(()=>a.e(973).then(a.bind(a,41959)))),e.register("l10n","en-us",(()=>a.e(37).then(a.t.bind(a,49037,23)))),e.register("dialog","CloneVmDialog",(()=>a.e(907).then(a.bind(a,33451)))),e.register("dialog","ConfirmExecutionDialog",(()=>a.e(907).then(a.bind(a,69210)))),e.register("dialog","ConfirmRelatedToRemoveDialog",(()=>a.e(907).then(a.bind(a,33958)))),e.register("dialog","DeepCloneVmDialog",(()=>a.e(907).then(a.bind(a,62833)))),e.register("dialog","EnablePciPassthrough",(()=>a.e(907).then(a.bind(a,90059)))),e.register("dialog","EnableSriovDevice",(()=>a.e(907).then(a.bind(a,67038)))),e.register("dialog","EnableUSBPassthrough",(()=>a.e(907).then(a.bind(a,29905)))),e.register("dialog","EnableVGpuDevice",(()=>a.e(907).then(a.bind(a,71524)))),e.register("dialog","HarvesterAddHotplugModal",(()=>a.e(907).then(a.bind(a,35676)))),e.register("dialog","HarvesterBackupModal",(()=>a.e(907).then(a.bind(a,71452)))),e.register("dialog","HarvesterCloneTemplate",(()=>a.e(907).then(a.bind(a,31223)))),e.register("dialog","HarvesterEjectCDROMDialog",(()=>a.e(907).then(a.bind(a,3352)))),e.register("dialog","HarvesterExportImageDialog",(()=>a.e(907).then(a.bind(a,1459)))),e.register("dialog","HarvesterImageDownloader",(()=>a.e(907).then(a.bind(a,51665)))),e.register("dialog","HarvesterMaintenanceDialog",(()=>a.e(907).then(a.bind(a,24384)))),e.register("dialog","HarvesterMigrationDialog",(()=>a.e(907).then(a.bind(a,22466)))),e.register("dialog","HarvesterQuotaDialog",(()=>a.e(907).then(a.bind(a,31624)))),e.register("dialog","HarvesterRestoreDialog",(()=>a.e(907).then(a.bind(a,289)))),e.register("dialog","HarvesterSupportBundle",(()=>a.e(907).then(a.bind(a,86328)))),e.register("dialog","HarvesterUnplugVolume",(()=>a.e(907).then(a.bind(a,36894)))),e.register("dialog","HarvesterVMSnapshotDialog",(()=>a.e(907).then(a.bind(a,84783)))),e.register("dialog","HarvesterVlanConfigMigrateDialog",(()=>a.e(907).then(a.bind(a,22512)))),e.register("dialog","MessageBox",(()=>a.e(907).then(a.bind(a,89257)))),e.register("dialog","RestartVMDialog",(()=>a.e(907).then(a.bind(a,48387)))),e.register("dialog","RestoreSnapshotDialog",(()=>a.e(907).then(a.bind(a,39058)))),e.register("dialog","SnapshotDialog",(()=>a.e(907).then(a.bind(a,95931)))),e.register("dialog","VolumeCloneDialog",(()=>a.e(907).then(a.bind(a,55780)))),e.register("formatters","AttachVMWithName",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,59989)))),e.register("formatters","BackupCreatedFrom",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,22234)))),e.register("formatters","CloudInitType",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,32012)))),e.register("formatters","HarvesterBackupProgressBar",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,13396)))),e.register("formatters","HarvesterBackupTargetValidation",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,26398)))),e.register("formatters","HarvesterCPUPinning",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,46e3)))),e.register("formatters","HarvesterCPUUsed",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,14290)))),e.register("formatters","HarvesterCronExpression",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,79211)))),e.register("formatters","HarvesterDiskState",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,8579)))),e.register("formatters","HarvesterHost",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,18290)))),e.register("formatters","HarvesterIpAddress",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,24423)))),e.register("formatters","HarvesterListener",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,52279)))),e.register("formatters","HarvesterMemoryUsed",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,79898)))),e.register("formatters","HarvesterMigrationState",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,69760)))),e.register("formatters","HarvesterStorageUsed",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,46484)))),e.register("formatters","HarvesterVFAddress",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,93922)))),e.register("formatters","HarvesterVFsNum",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,22011)))),e.register("formatters","HarvesterVGpuDevices",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,66810)))),e.register("formatters","HarvesterVmState",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,98993)))),e.register("formatters","HarvesterVolumeState",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,5538)))),e.register("formatters","NetworkRouteConnectivity",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,47385)))),e.register("formatters","RelatedVolumeSnapshotCounts",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,40179)))),e.register("formatters","SnapshotTargetVolume",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,67359)))),e.register("formatters","StateWithPopover",(()=>Promise.all([a.e(238),a.e(588),a.e(431),a.e(876),a.e(902)]).then(a.bind(a,12521))))}var r=a(20652),i=a(9274);function s(e,t,n,r,a,o){return(0,i.openBlock)(),(0,i.createElementBlock)("div",null," This is harvester Dashboard. ")}var l=a(32766),c={beforeCreate(){this.$router.replace({name:`${r.KR}-c-cluster-resource`,params:{...this.$router.currentRoute.params,product:r.KR,resource:l.rk.DASHBOARD}})}},u=a(47433);const d=(0,u.A)(c,[["render",s]]);var h=d;const p={class:"content mt-20"},f={class:"promo"},m={key:0,class:"box mb-20 box-primary"},g={class:"pb-10"},v={class:"pb-10"},b={key:1,class:"row"},y={class:"col span-6 box box-primary"},w=["href"],E={class:"warning"},_={class:"col span-6 box box-primary"},S=["href"],k={class:"warning"},x={class:"community"},A={class:"external"},N={href:"https://www.suse.com/suse-harvester/support-matrix/all-supported-versions",target:"_blank",rel:"noopener noreferrer nofollow"},C={href:"https://www.suse.com/products/harvester/",target:"_blank",rel:"noopener noreferrer nofollow"};function T(e,t,n,r,a,o){const s=(0,i.resolveComponent)("BannerGraphic"),l=(0,i.resolveComponent)("t"),c=(0,i.resolveComponent)("CommunityLinks"),u=(0,i.resolveComponent)("IndentedPanel"),d=(0,i.resolveComponent)("HarvesterSupportBundle");return(0,i.openBlock)(),(0,i.createElementBlock)("div",null,[(0,i.createVNode)(s,{title:e.t(o.title,{},!0)},null,8,["title"]),(0,i.createVNode)(u,null,{default:(0,i.withCtx)((()=>[(0,i.createElementVNode)("div",p,[(0,i.createElementVNode)("div",f,[o.showSupportBundle?((0,i.openBlock)(),(0,i.createElementBlock)("div",m,[(0,i.createElementVNode)("h2",null,(0,i.toDisplayString)(e.t("harvester.modal.bundle.title")),1),(0,i.createElementVNode)("div",null,[(0,i.createElementVNode)("p",g,(0,i.toDisplayString)(e.t("harvester.modal.bundle.titleDescription")),1),(0,i.createElementVNode)("button",{class:"btn role-secondary btn-sm",type:"button",onClick:t[0]||(t[0]=(...e)=>o.open&&o.open(...e))},(0,i.toDisplayString)(e.t("harvester.modal.bundle.title")),1)])])):(0,i.createCommentVNode)("",!0),(0,i.createElementVNode)("div",{class:(0,i.normalizeClass)(["box box-primary",{"mb-20":o.dev}])},[(0,i.createElementVNode)("h2",null,(0,i.toDisplayString)(e.t("harvester.support.kubeconfig.title")),1),(0,i.createElementVNode)("div",null,[(0,i.createElementVNode)("p",v,(0,i.toDisplayString)(e.t("harvester.support.kubeconfig.titleDescription")),1),(0,i.createElementVNode)("button",{class:"btn role-secondary btn-sm",type:"button",onClick:t[1]||(t[1]=t=>e.currentCluster.downloadKubeConfig())},(0,i.toDisplayString)(e.t("harvester.support.kubeconfig.title")),1)])],2),o.dev?((0,i.openBlock)(),(0,i.createElementBlock)("div",b,[(0,i.createElementVNode)("div",y,[(0,i.createElementVNode)("h2",null,[(0,i.createElementVNode)("a",{rel:"nofollow noopener noreferrer",target:"_blank",href:o.rancherLink},[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("harvester.support.internal.rancher.title"))+" ",1),t[2]||(t[2]=(0,i.createElementVNode)("i",{class:"icon icon-external-link"},null,-1))],8,w)]),(0,i.createElementVNode)("div",null,[(0,i.createElementVNode)("p",E,[(0,i.createVNode)(l,{k:"harvester.support.internal.rancher.titleDescription",raw:!0,url:o.rancherIntegrationLink},null,8,["url"])])])]),(0,i.createElementVNode)("div",_,[(0,i.createElementVNode)("h2",null,[(0,i.createElementVNode)("a",{rel:"nofollow noopener noreferrer",target:"_blank",href:o.longhornLink},[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("harvester.support.internal.longhorn.title"))+" ",1),t[3]||(t[3]=(0,i.createElementVNode)("i",{class:"icon icon-external-link"},null,-1))],8,S)]),(0,i.createElementVNode)("div",null,[(0,i.createElementVNode)("p",k,[(0,i.createVNode)(l,{k:"harvester.support.internal.longhorn.titleDescription",raw:!0})])])])])):(0,i.createCommentVNode)("",!0)]),(0,i.createElementVNode)("div",x,[(0,i.createVNode)(c,{"link-options":a.options},null,8,["link-options"])]),(0,i.createElementVNode)("div",A,[(0,i.createElementVNode)("a",N,[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("harvester.support.community.learnMore"))+" ",1),t[4]||(t[4]=(0,i.createElementVNode)("i",{class:"icon icon-external-link"},null,-1))]),t[6]||(t[6]=(0,i.createTextVNode)(" or ")),(0,i.createElementVNode)("a",C,[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("harvester.support.community.pricing"))+" ",1),t[5]||(t[5]=(0,i.createElementVNode)("i",{class:"icon icon-external-link"},null,-1))])])])])),_:1}),o.showSupportBundle?((0,i.openBlock)(),(0,i.createBlock)(d,{key:0})):(0,i.createCommentVNode)("",!0)])}var R=a(65359),O=a(91462);const I={class:"graphic"},L={key:0,"data-testid":"banner-title-key",class:"title"},D={key:1,"data-testid":"banner-title",class:"title"};function P(e,t,n,r,a,o){const s=(0,i.resolveComponent)("BrandImage"),l=(0,i.resolveComponent)("t"),c=(0,i.resolveDirective)("clean-html");return e.shown?((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:0,class:(0,i.normalizeClass)(["banner-graphic",{small:n.small}])},[(0,i.createElementVNode)("div",I,[(0,i.createVNode)(s,{class:"banner","data-testid":"banner-brand__img","file-name":"banner.svg",draggable:!1})]),n.titleKey?((0,i.openBlock)(),(0,i.createElementBlock)("div",L,[(0,i.createVNode)(l,{k:n.titleKey},null,8,["k"])])):n.title?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("h1",D,null,512)),[[c,n.title]]):(0,i.createCommentVNode)("",!0)],2)):(0,i.createCommentVNode)("",!0)}var M=a(55277);const B=["src"];function F(e,t,n,r,a,o){return(0,i.openBlock)(),(0,i.createElementBlock)("img",(0,i.mergeProps)(e.$attrs,{src:o.pathToBrandedImage}),null,16,B)}var $=a(35664),U=a(9262),j={props:{fileName:{type:String,required:!0},dark:{type:Boolean,default:!1},supportCustomLogo:{type:Boolean,default:!1}},data(){const e=this.$store.getters["management/all"]($.Mc.SETTING),t=e?.filter((e=>e.id===U.HG.LOGIN_BACKGROUND_LIGHT))?.[0]?.value,n=e?.filter((e=>e.id===U.HG.LOGIN_BACKGROUND_DARK))?.[0]?.value;return{managementSettings:e,uiLoginBackgroundLight:t,uiLoginBackgroundDark:n}},computed:{...(0,R.L8)({theme:"prefs/theme"}),brand(){const e=this.managementSettings.filter((e=>e.id===U.HG.BRAND))[0]||{};return e.value},uiLogoLight(){const e=this.managementSettings.filter((e=>e.id===U.HG.LOGO_LIGHT))[0]||{};return e.value},uiLogoDark(){const e=this.managementSettings.filter((e=>e.id===U.HG.LOGO_DARK))[0]||{};return e.value},uiBannerLight(){const e=this.managementSettings.filter((e=>e.id===U.HG.BANNER_LIGHT))[0]||{};return e.value},uiBannerDark(){const e=this.managementSettings.filter((e=>e.id===U.HG.BANNER_DARK))[0]||{};return e.value},defaultPathToBrandedImage(){const e="dark"===this.theme?"dark/":"";try{return a(87900)(`./${e}${this.fileName}`)}catch{return a(74752)(`./${this.fileName}`)}},pathToBrandedImage(){if("rancher-logo.svg"===this.fileName||this.supportCustomLogo){if("dark"===this.theme&&this.uiLogoDark)return this.uiLogoDark;if(this.uiLogoLight)return this.uiLogoLight}if("banner.svg"===this.fileName){if("dark"===this.theme&&this.uiBannerDark)return this.uiBannerDark;if(this.uiBannerLight)return this.uiBannerLight}if("login-landscape.svg"===this.fileName){if("dark"===this.theme&&this.uiLoginBackgroundDark)return this.uiLoginBackgroundDark;if(this.uiLoginBackgroundLight)return this.uiLoginBackgroundLight}if(this.brand){if("dark"===this.theme||this.dark)try{return a(4378)(`./${this.brand}/dark/${this.fileName}`)}catch{}try{return a(96817)(`./${this.brand}/${this.fileName}`)}catch{}return this.defaultPathToBrandedImage}return this.defaultPathToBrandedImage}}};const V=(0,u.A)(j,[["render",F]]);var K=V,H={components:{BrandImage:K},mixins:[M.A],props:{title:{type:String,default:null},titleKey:{type:String,default:null},small:{type:Boolean,default:!1}}};a(82431);const G=(0,u.A)(H,[["render",P]]);var z=G;const q={class:"indented-panel"};function X(e,t,n,r,a,o){return(0,i.openBlock)(),(0,i.createElementBlock)("div",q,[(0,i.renderSlot)(e.$slots,"default")])}var W={};a(72674);const Y=(0,u.A)(W,[["render",X]]);var Q=Y;const J={key:0},Z=["href","aria-label"],ee={key:0,class:"support-link"},te=["aria-label"],ne={class:"wechat-modal"},re=["aria-label"];function ie(e,t,n,r,a,o){const s=(0,i.resolveComponent)("router-link"),l=(0,i.resolveComponent)("SimpleBox"),c=(0,i.resolveComponent)("app-modal");return o.hasOptions?((0,i.openBlock)(),(0,i.createElementBlock)("div",J,[(0,i.createVNode)(l,{pref:e.pref,"pref-key":e.prefKey},{title:(0,i.withCtx)((()=>[(0,i.createElementVNode)("h2",null,(0,i.toDisplayString)(e.t("customLinks.displayTitle")),1)])),default:(0,i.withCtx)((()=>[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(o.options,((e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:t,class:"support-link"},[e.value.startsWith("/")?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0,to:e.value,role:"link","aria-label":e.label},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.label),1)])),_:2},1032,["to","aria-label"])):((0,i.openBlock)(),(0,i.createElementBlock)("a",{key:1,href:e.value,rel:"noopener noreferrer nofollow",target:"_blank",role:"link","aria-label":e.label},(0,i.toDisplayString)(e.label),9,Z))])))),128)),(0,i.renderSlot)(e.$slots,"default",{},void 0,!0),e.selectedLocaleLabel===e.t("locale.zh-hans")?((0,i.openBlock)(),(0,i.createElementBlock)("div",ee,[(0,i.createElementVNode)("a",{class:"link",tabindex:"0","aria-label":e.t("footer.wechat.title"),role:"link",onClick:t[0]||(t[0]=(...e)=>o.show&&o.show(...e)),onKeyup:t[1]||(t[1]=(0,i.withKeys)(((...e)=>o.show&&o.show(...e)),["enter"]))},(0,i.toDisplayString)(e.t("footer.wechat.title")),41,te)])):(0,i.createCommentVNode)("",!0)])),_:3},8,["pref","pref-key"]),a.showWeChatModal?((0,i.openBlock)(),(0,i.createBlock)(c,{key:0,name:"wechat-modal",height:"auto",width:640,onClose:o.close},{default:(0,i.withCtx)((()=>[(0,i.createElementVNode)("div",ne,[(0,i.createElementVNode)("h1",null,(0,i.toDisplayString)(e.t("footer.wechat.modalText")),1),(0,i.createElementVNode)("h1",null,(0,i.toDisplayString)(e.t("footer.wechat.modalText2")),1),t[5]||(t[5]=(0,i.createElementVNode)("div",{class:"qr-img"},null,-1)),(0,i.createElementVNode)("div",null,[(0,i.createElementVNode)("button",{class:"btn role-primary",tabindex:"0","aria-label":e.t("generic.close"),role:"button",onClick:t[2]||(t[2]=(...e)=>o.close&&o.close(...e)),onKeyup:[t[3]||(t[3]=(0,i.withKeys)(((...e)=>o.close&&o.close(...e)),["enter"])),t[4]||(t[4]=(0,i.withKeys)(((...e)=>o.close&&o.close(...e)),["space"]))]},(0,i.toDisplayString)(e.t("generic.close")),41,re)])])])),_:1},8,["onClose"])):(0,i.createCommentVNode)("",!0)])):(0,i.createCommentVNode)("",!0)}var ae=a(87211),oe=a(36832),se=a(83297),le=a(49845),ce=a(88339),ue=a(4364);const de=[{key:"docs",value:le.M0,enabled:!0},{key:"forums",value:"https://forums.suse.com/",enabled:!0},{key:"slack",value:"https://slack.rancher.io/",enabled:!0},{key:"issues",value:"https://github.com/rancher/dashboard/issues/new/choose",enabled:!0},{key:"getStarted",value:`${le.M0}/getting-started/overview`,enabled:!0}],he="suseCollective",pe={key:"appCo",value:"https://apps.rancher.io/",enabled:!0},fe={key:"commercialSupport",value:"/support",enabled:!0,readonly:!0},me={key:"cnforums",value:"https://forums.rancher.cn/",enabled:!0},ge="v1",ve="v1.1",be="v1.2";async function ye(e,t,n,r){let i={};try{const t=await e.dispatch("management/find",{type:$.Mc.SETTING,id:U.HG.UI_CUSTOM_LINKS});t.value&&(i=JSON.parse(t.value))}catch(Hs){ue.warn("Could not parse custom link settings",Hs)}if(i?.version?.startsWith(ge)){if(i?.version!==ge&&i?.version!==ve||(i.version=be,i.defaults.includes(pe.key)||i.defaults.push(pe.key),i.defaults=i.defaults.filter((e=>e!==he))),i.defaults){const e=[...de];(0,se.f$)()&&e.push(pe),e.forEach((e=>{const t=i.defaults.find((t=>t===e.key));e.enabled=!!t})),i.defaults=e}return we(i,t,n,r,e)}const a={version:ge,defaults:[...de],custom:[]};(0,se.f$)()&&a.defaults.push(pe);try{const{uiIssuesSetting:t,uiCommunitySetting:n}=await(0,ce.kR)({uiIssuesSetting:e.dispatch("management/find",{type:$.Mc.SETTING,id:U.HG.ISSUES}),uiCommunitySetting:e.dispatch("management/find",{type:$.Mc.SETTING,id:U.HG.COMMUNITY_LINKS})});if("false"===n?.value&&a.defaults.forEach((e=>e.enabled=!1)),t?.value){a.custom.push({label:r?r("customLinks.defaults.issues"):"Issues",value:t.value});const e=a.defaults?.find((e=>"issues"===e.key));e&&(e.enabled=!1,e.readOnly=!0)}}catch(Hs){ue.warn("Could not parse legacy link settings",Hs)}return we(a,t,n,r,e)}function we(e,t,n,r,i){if(!t&&!n){const t=e.defaults?.find((e=>"commercialSupport"===e.key));t||e.defaults.push(fe)}const a=i.getters["i18n/selectedLocaleLabel"];a===r("locale.zh-hans")&&e.defaults.push(me),e.defaults=e.defaults.map((e=>({...e,label:r(`'customLinks.defaults.${e.key}`)})));const o=e.custom.reduce(((e,t)=>(e[t.label]=t,e)),{});return e.defaults.forEach((e=>{o[e.label]&&(e.enabled=!1,e.readonly=!0)})),e}var Ee=a(71651),_e=a.n(Ee),Se=a(68851);a(4364);let ke=[];_e().addHook("uponSanitizeAttribute",((e,t)=>{"A"===e.tagName&&"target"===t.attrName&&"_blank"===t.attrValue&&(t.forceKeepAttr=!0)})),_e().addHook("afterSanitizeAttributes",(e=>{if("A"===e.tagName&&"_blank"===e?.target){const t=["noopener","noreferrer","nofollow"],n=e.rel?.length?e.rel.split(" "):[],r=(0,Se.sb)([...t,...n]);e.setAttribute("rel",r.join(" "))}if("A"===e.tagName&&ke.length){let t=e.href;t=xe(t),t!==e.href&&(e.href=t)}}));function xe(e){for(let t=0;t<ke.length;t++){const n=ke[t](e);n&&(e=n)}return e}var Ae={name:"CommunityLinks",components:{SimpleBox:ae.A,AppModal:oe.h},props:{linkOptions:{type:Object,default:()=>({})},isSupportPage:{type:Boolean,default:!1}},mixins:[M.A],async fetch(){this.links=await ye(this.$store,this.hasSupport,this.isSupportPage,(e=>this.t(e)))},data(){return{links:{},showWeChatModal:!1}},computed:{...(0,R.L8)("i18n",["selectedLocaleLabel"]),hasOptions(){return!!Object.keys(this.options).length||!!Object.keys(this.$slots).length},hasSupport(){return(0,se.f$)()||"true"===this.$store.getters["management/byId"]($.Mc.SETTING,U.HG.SUPPORTED)?.value},options(){if(this.linkOptions&&Object.keys(this.linkOptions).length){const e=[];return Object.keys(this.linkOptions).forEach((t=>{e.push({key:t,label:this.t(t),value:this.linkOptions[t]})})),e}const e=[];return this.links.custom&&e.push(...this.links.custom),this.links.defaults&&e.push(...this.links.defaults.filter((e=>e.enabled))),e.map((e=>({...e,value:xe(e.value)})))}},methods:{show(){this.showWeChatModal=!0},close(){this.showWeChatModal=!1}}};a(85918);const Ne=(0,u.A)(Ae,[["render",ie],["__scopeId","data-v-05573032"]]);var Ce=Ne,Te=a(86328),Re=a(66242),Oe=a(3791),Ie={components:{BannerGraphic:z,IndentedPanel:Q,CommunityLinks:Ce,HarvesterSupportBundle:Te["default"]},data(){return{options:{"footer.docs":"https://docs.harvesterhci.io","footer.forums":"https://forums.rancher.com/c/harvester/","footer.slack":"https://slack.rancher.io","footer.issue":"https://github.com/harvester/harvester/issues/new/choose"}}},computed:{...(0,R.L8)(["currentCluster"]),dev(){try{return this.$store.getters["prefs/get"](O.bc)}catch{return this.$store.getters["prefs/get"](O.IJ)}},title(){return"harvester.support.title"},showSupportBundle(){const e=this.$store.getters["currentProduct"].inStore;return!!this.$store.getters[`${e}/byId`]($.yx,l.rk.SUPPORT_BUNDLE)},internalPrefix(){const e=window.location.host,t=window.location.pathname.replace(this.$route.path,""),n=this.$route?.params;return{host:e,prefix:t,params:n}},rancherLink(){const{host:e,prefix:t,params:n}=this.internalPrefix;return`https://${e}${t}/c/${n.cluster}/explorer`},longhornLink(){const{host:e,params:t}=this.internalPrefix;return`https://${e}/k8s/clusters/${t.cluster}/api/v1/namespaces/longhorn-system/services/http:longhorn-frontend:80/proxy/#/dashboard`},rancherIntegrationLink(){const e=this.$store.getters["harvester-common/getServerVersion"]();return(0,Oe.nn)(Re.d.RANCHER_INTEGRATION_URL,e)}},methods:{open(){this.$store.commit("harvester-common/toggleBundleModal",!0)}}};a(41158);const Le=(0,u.A)(Ie,[["render",T],["__scopeId","data-v-74e3f663"]]);var De=Le;function Pe(e,t,n,r,a,o){const s=(0,i.resolveComponent)("Loading"),l=(0,i.resolveComponent)("SerialConsole");return e.$fetchState.pending?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0})):((0,i.openBlock)(),(0,i.createBlock)(l,{key:1,ref:"serialConsole",value:o.vmi,"onUpdate:value":t[0]||(t[0]=e=>o.vmi=e)},null,8,["value"]))}var Me=a(84409);const Be={class:"harvester-shell-container"},Fe={ref:"xterm",class:"shell-body"};function $e(e,t,n,r,a,o){const s=(0,i.resolveComponent)("resize-observer");return(0,i.openBlock)(),(0,i.createElementBlock)("div",Be,[(0,i.createElementVNode)("div",Fe,null,512),(0,i.createVNode)(s,{onNotify:o.fit},null,8,["onNotify"])])}var Ue=a(12784),je=a.n(Ue),Ve=a(4364);const Ke=new WeakMap,He=new WeakMap;function Ge(e){const t=Ke.get(e);return Ve.assert(null!=t,"'this' is expected an Event object, but got",e),t}function ze(e){null==e.passiveListener?e.event.cancelable&&(e.canceled=!0,"function"===typeof e.event.preventDefault&&e.event.preventDefault()):"undefined"!==typeof Ve&&"function"===typeof Ve.error&&Ve.error("Unable to preventDefault inside passive event listener invocation.",e.passiveListener)}function qe(e,t){Ke.set(this,{eventTarget:e,event:t,eventPhase:2,currentTarget:e,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:t.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const n=Object.keys(t);for(let r=0;r<n.length;++r){const e=n[r];e in this||Object.defineProperty(this,e,Xe(e))}}function Xe(e){return{get(){return Ge(this).event[e]},set(t){Ge(this).event[e]=t},configurable:!0,enumerable:!0}}function We(e){return{value(){const t=Ge(this).event;return t[e].apply(t,arguments)},configurable:!0,enumerable:!0}}function Ye(e,t){const n=Object.keys(t);if(0===n.length)return e;function r(t,n){e.call(this,t,n)}r.prototype=Object.create(e.prototype,{constructor:{value:r,configurable:!0,writable:!0}});for(let i=0;i<n.length;++i){const a=n[i];if(!(a in e.prototype)){const e=Object.getOwnPropertyDescriptor(t,a),n="function"===typeof e.value;Object.defineProperty(r.prototype,a,n?We(a):Xe(a))}}return r}function Qe(e){if(null==e||e===Object.prototype)return qe;let t=He.get(e);return null==t&&(t=Ye(Qe(Object.getPrototypeOf(e)),e),He.set(e,t)),t}function Je(e,t){const n=Qe(Object.getPrototypeOf(t));return new n(e,t)}function Ze(e){return Ge(e).immediateStopped}function et(e,t){Ge(e).eventPhase=t}function tt(e,t){Ge(e).currentTarget=t}function nt(e,t){Ge(e).passiveListener=t}qe.prototype={get type(){return Ge(this).event.type},get target(){return Ge(this).eventTarget},get currentTarget(){return Ge(this).currentTarget},composedPath(){const e=Ge(this).currentTarget;return null==e?[]:[e]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return Ge(this).eventPhase},stopPropagation(){const e=Ge(this);e.stopped=!0,"function"===typeof e.event.stopPropagation&&e.event.stopPropagation()},stopImmediatePropagation(){const e=Ge(this);e.stopped=!0,e.immediateStopped=!0,"function"===typeof e.event.stopImmediatePropagation&&e.event.stopImmediatePropagation()},get bubbles(){return Boolean(Ge(this).event.bubbles)},get cancelable(){return Boolean(Ge(this).event.cancelable)},preventDefault(){ze(Ge(this))},get defaultPrevented(){return Ge(this).canceled},get composed(){return Boolean(Ge(this).event.composed)},get timeStamp(){return Ge(this).timeStamp},get srcElement(){return Ge(this).eventTarget},get cancelBubble(){return Ge(this).stopped},set cancelBubble(e){if(!e)return;const t=Ge(this);t.stopped=!0,"boolean"===typeof t.event.cancelBubble&&(t.event.cancelBubble=!0)},get returnValue(){return!Ge(this).canceled},set returnValue(e){e||ze(Ge(this))},initEvent(){}},Object.defineProperty(qe.prototype,"constructor",{value:qe,configurable:!0,writable:!0}),"undefined"!==typeof window&&"undefined"!==typeof window.Event&&(Object.setPrototypeOf(qe.prototype,window.Event.prototype),He.set(window.Event.prototype,qe));const rt=new WeakMap,it=1,at=2,ot=3;function st(e){return null!==e&&"object"===typeof e}function lt(e){const t=rt.get(e);if(null==t)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return t}function ct(e){return{get(){const t=lt(this);let n=t.get(e);while(null!=n){if(n.listenerType===ot)return n.listener;n=n.next}return null},set(t){"function"===typeof t||st(t)||(t=null);const n=lt(this);let r=null,i=n.get(e);while(null!=i)i.listenerType===ot?null!==r?r.next=i.next:null!==i.next?n.set(e,i.next):n.delete(e):r=i,i=i.next;if(null!==t){const i={listener:t,listenerType:ot,passive:!1,once:!1,next:null};null===r?n.set(e,i):r.next=i}},configurable:!0,enumerable:!0}}function ut(e,t){Object.defineProperty(e,`on${t}`,ct(t))}function dt(e){function t(){ht.call(this)}t.prototype=Object.create(ht.prototype,{constructor:{value:t,configurable:!0,writable:!0}});for(let n=0;n<e.length;++n)ut(t.prototype,e[n]);return t}function ht(){if(!(this instanceof ht)){if(1===arguments.length&&Array.isArray(arguments[0]))return dt(arguments[0]);if(arguments.length>0){const e=new Array(arguments.length);for(let t=0;t<arguments.length;++t)e[t]=arguments[t];return dt(e)}throw new TypeError("Cannot call a class as a function")}rt.set(this,new Map)}ht.prototype={addEventListener(e,t,n){if(null==t)return;if("function"!==typeof t&&!st(t))throw new TypeError("'listener' should be a function or an object.");const r=lt(this),i=st(n),a=i?Boolean(n.capture):Boolean(n),o=a?it:at,s={listener:t,listenerType:o,passive:i&&Boolean(n.passive),once:i&&Boolean(n.once),next:null};let l=r.get(e);if(void 0===l)return void r.set(e,s);let c=null;while(null!=l){if(l.listener===t&&l.listenerType===o)return;c=l,l=l.next}c.next=s},removeEventListener(e,t,n){if(null==t)return;const r=lt(this),i=st(n)?Boolean(n.capture):Boolean(n),a=i?it:at;let o=null,s=r.get(e);while(null!=s){if(s.listener===t&&s.listenerType===a)return void(null!==o?o.next=s.next:null!==s.next?r.set(e,s.next):r.delete(e));o=s,s=s.next}},dispatchEvent(e){if(null==e||"string"!==typeof e.type)throw new TypeError('"event.type" should be a string.');const t=lt(this),n=e.type;let r=t.get(n);if(null==r)return!0;const i=Je(this,e);let a=null;while(null!=r){if(r.once?null!==a?a.next=r.next:null!==r.next?t.set(n,r.next):t.delete(n):a=r,nt(i,r.passive?r.listener:null),"function"===typeof r.listener)try{r.listener.call(this,i)}catch(Go){"undefined"!==typeof Ve&&"function"===typeof Ve.error&&Ve.error(Go)}else r.listenerType!==ot&&"function"===typeof r.listener.handleEvent&&r.listener.handleEvent(i);if(Ze(i))break;r=r.next}return nt(i,null),et(i,0),tt(i,null),!i.defaultPrevented}},Object.defineProperty(ht.prototype,"constructor",{value:ht,configurable:!0,writable:!0}),"undefined"!==typeof window&&"undefined"!==typeof window.EventTarget&&Object.setPrototypeOf(ht.prototype,window.EventTarget.prototype);var pt=a(35881),ft=a(50667),mt=a(4364);function gt(e,t,n){return(t=vt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vt(e){var t=bt(e,"string");return"symbol"==typeof t?t:t+""}function bt(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}let yt=1,wt=!1,Et=!1;const _t="ws://",St="wss://",kt="disconnected",xt=(ht.addEventListener,"connecting"),At="connected",Nt="closing",Ct="reconnecting",Tt=xt,Rt=At,Ot=kt,It="message",Lt="frame_timeout",Dt="connect_error",Pt="disconnect_error",Mt="NO_WATCH",Bt="NO_SCHEMA",Ft="NO_PERMS",$t="TOO_OLD";class Ut extends ht{constructor(e,t=!0,n=null,r=null,i=null,a=!1){super(),gt(this,"url",void 0),gt(this,"autoReconnect",!0),gt(this,"frameTimeout",35e3),gt(this,"metadata",{}),gt(this,"hasBeenOpen",!1),gt(this,"hasReconnected",!1),gt(this,"protocol",null),gt(this,"maxTries",null),gt(this,"tries",0),gt(this,"idAsTimestamp",!1),gt(this,"socket",null),gt(this,"state",kt),gt(this,"framesReceived",0),gt(this,"frameTimer",void 0),gt(this,"reconnectTimer",void 0),gt(this,"disconnectCallBacks",[]),gt(this,"disconnectedAt",0),gt(this,"closingId",0),gt(this,"autoReconnectUrl",null),this.setUrl(e),this.autoReconnect=t,this.protocol=r,this.maxTries=i,this.idAsTimestamp=a,null!==n&&(this.frameTimeout=n)}setUrl(e){e.match(/wss?:\/\//)||(e=self.location.origin.replace(/^http/,"ws")+e),"https:"===self.location.protocol&&e.startsWith(_t)&&(e=St+e.substr(_t.length)),this.url=e}connect(e={}){if(this.socket)return void mt.error("Socket refusing to connect while another socket exists");this.state!==Ct&&(this.state=xt),Object.assign(this.metadata,e);const t=this.idAsTimestamp?(new Date).getTime():yt++,n=(0,ft.R_)(this.url,"sockId",t);let r;this._baseLog("connecting",{id:t,url:n.replace(/\?.*/,"")}),this.tries++,r=this.protocol?new WebSocket(n,this.protocol):new WebSocket(n),r.sockId=t,r.metadata=this.metadata,r.onmessage=this._onmessage.bind(this),r.onopen=this._opened.bind(this),r.onerror=this._error.bind(this),r.onclose=this._closed.bind(this),this.socket=r,this.state=xt,this.dispatchEvent(new CustomEvent(Tt))}send(e){return!(!this.socket||this.state!==At)&&(this.socket.send(e),!0)}disconnect(e){e&&this.disconnectCallBacks.push(e);const t=this,n=new Promise(((e,n)=>{function r(e){n(e),t.removeEventListener(Dt,r)}this.state===kt&&e(),this.addEventListener(Dt,r),this.disconnectCallBacks.push((()=>{this.removeEventListener(Dt,r),e()}))}));return this.autoReconnect=!1,this._close(),n}reconnect(e={}){Object.assign(this.metadata,e),this.state!==xt?this.socket?this._close():this.connect(e):this._log("Ignoring reconnect for socket in connecting")}getMetadata(){return this.socket?this.socket.metadata:{}}getId(){return this.socket?this.socket.sockId:0}isConnected(){return this.state===At}setAutoReconnect(e){this.autoReconnect=e}setAutoReconnectUrl(e){this.autoReconnectUrl=e}_close(){const e=this.socket;if(e){try{this._log("closing"),this.closingId=e.sockId,e.onopen=null,e.onerror=null,e.onmessage=null,e.close()}catch(Hs){this._log("exception",{e:Hs.toString()})}this.state=Nt}}_opened(){this._log("opened");const e=(new Date).getTime(),t=this.disconnectedAt;let n=0;t&&(n=e-t),this.hasBeenOpen&&(this.hasReconnected=!0),this.hasBeenOpen=!0,this.state=At,this.framesReceived=0,this.disconnectedAt=0,this.dispatchEvent(new CustomEvent(Rt,{detail:{tries:this.tries,afterMilliseconds:n}})),this.tries=0,this._resetWatchdog(),clearTimeout(this.reconnectTimer)}_onmessage(e){this._resetWatchdog(),this.tries=0,this.framesReceived++,this.dispatchEvent(new CustomEvent(It,{detail:e}))}_resetWatchdog(){clearTimeout(this.frameTimer);const e=this.frameTimeout;e&&this.state===At&&(this.frameTimer=setTimeout((()=>{this._log(`watchdog expired after${e}. Closing`),this._close(),this.dispatchEvent(new CustomEvent(Lt))}),e))}_error(){this.closingId=this.socket?this.socket.sockId:0,this._log("error")}_closed(e){const{code:t,reason:n,wasClean:r}=e;this._baseLog("closed",{id:this.closingId||this.socket?.sockId||"unknown",code:t,reason:n,clean:r}),this.closingId=0,this.socket=null,clearTimeout(this.reconnectTimer),clearTimeout(this.frameTimer);const i=this.disconnectCallBacks;while(i.length){const e=i.pop();e&&e.apply(this)}if([At,Nt].includes(this.state)&&(Et=!0),this.disconnectedAt||(this.disconnectedAt=(new Date).getTime()),wt||Et)if(this.autoReconnect){if(this.state=Ct,this.maxTries&&this.tries>1&&this.tries<=this.maxTries){const e=new CustomEvent(Dt);this.dispatchEvent(e)}if(this.maxTries&&this.tries>this.maxTries)this._log("closed. Will not reconnect (hit max attempts)"),this.state=kt,this.dispatchEvent(new CustomEvent(Pt));else{const e=()=>{this._log("closed. Attempting to reconnect");const e=Math.max(1e3,Math.min(1e3*this.tries,3e4));this.reconnectTimer=setTimeout((()=>{this.connect()}),e)};this.autoReconnectUrl?this.autoReconnectUrl().then((t=>{this.setUrl(t),e()})).catch((e=>{mt.error("Failed to fetch socket auto reconnect url",e)})):e()}}else this.state=kt;else{this.autoReconnect=!1,this.state=kt;const e=new CustomEvent(Dt,{detail:{isSafari:pt.nr}});this.dispatchEvent(e),wt=!0}this.state===kt?this.dispatchEvent(new CustomEvent(Ot)):this.state===Ct&&this.dispatchEvent(new CustomEvent(Tt))}_log(e,t){this._baseLog(e,{state:this.state,id:this.socket?.sockId||0,...t})}_baseLog(e,t){const n=[e],r=Object.entries(t||{});n.unshift("Socket "),r.length&&(n.push(" ("),r.forEach((([e,t],r)=>{0!==r&&n.push(", "),n.push(`${e}=${t}`)})),n.push(")")),mt.log(n.join(""))}}var jt=a(4364),Vt={emits:["close"],props:{value:{type:Object,required:!0}},data(){return{socket:null,terminal:null,fitAddon:null,searchAddon:null,webglAddon:null,isOpen:!1,isOpening:!1,backlog:[],firstTime:!0,queue:[]}},computed:{xtermConfig(){return{allowProposedApi:!0,cursorBlink:!0,useStyle:!0,fontSize:12}}},watch:{queue:{handler:je()((async function(e){if(0===e.length)return;const t=await Promise.all(e);(t||[]).forEach((e=>{this.terminal.write(e)})),this.queue=[]}),10),deep:!0}},beforeUnmount(){this.close()},async mounted(){await this.setupTerminal(),await this.connect()},methods:{async setupTerminal(){const e=getComputedStyle(document.querySelector("body")),t=await a.e(935).then(a.t.bind(a,84594,23)),n=await(0,ce.kR)({fit:a.e(935).then(a.t.bind(a,12081,23)),webgl:a.e(935).then(a.t.bind(a,90382,23)),weblinks:a.e(935).then(a.t.bind(a,72338,23)),search:a.e(935).then(a.t.bind(a,720,23))}),r=new t.Terminal({theme:{background:e.getPropertyValue("--terminal-bg").trim(),cursor:e.getPropertyValue("--terminal-cursor").trim(),foreground:e.getPropertyValue("--terminal-text").trim()},...this.xtermConfig});this.fitAddon=new n.fit.FitAddon,this.searchAddon=new n.search.SearchAddon;try{this.webglAddon=new n.webgl.WebGlAddon}catch(Hs){this.webglAddon=null}r.loadAddon(this.fitAddon),r.loadAddon(this.searchAddon),r.loadAddon(new n.weblinks.WebLinksAddon),r.open(this.$refs.xterm),this.webglAddon&&r.loadAddon(this.webglAddon),this.fit(),this.flush(),r.onData((e=>{const t=this.str2ab(e);this.write(t)})),this.terminal=r},str2ab(e){const t=new TextEncoder;return t.encode(e)},write(e){this.isOpen?this.socket.send(e):this.backlog.push(e)},clear(){this.terminal.clear()},getSocketUrl(){return`${this.value?.getSerialConsolePath}`},async connect(){this.socket&&(await this.socket.disconnect(),this.socket=null,this.terminal.reset());const e=this.getSocketUrl();e&&(this.socket=new Ut(e),this.socket.addEventListener(Tt,(e=>{this.isOpen=!1,this.isOpening=!0})),this.socket.addEventListener(Dt,(e=>{this.isOpen=!1,this.isOpening=!1,jt.error("Connect Error",e)})),this.socket.addEventListener(Rt,(e=>{this.isOpen=!0,this.isOpening=!1,this.show&&(this.fit(),this.flush()),this.firstTime&&(this.socket.send(this.str2ab("\n")),this.firstTime=!1)})),this.socket.addEventListener(Ot,(e=>{this.isOpen=!1,this.isOpening=!1,this.$emit("close")})),this.socket.addEventListener(It,(e=>{this.queue.push(e.detail.data.text())})),this.socket.connect(),this.terminal.focus())},flush(){const e=this.backlog.slice();this.backlog=[];for(const t of e)this.socket.send(t)},fit(e){if(!this.fitAddon)return;this.fitAddon.fit();const{rows:t,cols:n}=this.fitAddon.proposeDimensions();if(!this.isOpen)return;const r=JSON.stringify({Width:n,Height:t});this.socket.send(this.str2ab(r))},close(){this.socket&&this.socket.disconnect(),this.terminal&&this.terminal.dispose()}}};a(44166);const Kt=(0,u.A)(Vt,[["render",$e]]);var Ht=Kt,Gt={components:{SerialConsole:Ht,Loading:Me.A},async fetch(){this.rows=await this.$store.dispatch("harvester/findAll",{type:l.rk.VMI})},data(){return{uid:this.$route.params.uid}},computed:{vmi(){const e=this.$store.getters["harvester/all"](l.rk.VMI)||[],t=e.find((e=>e?.metadata?.ownerReferences?.[0]?.uid===this.uid));return t}},mounted(){window.addEventListener("beforeunload",(()=>{this.$refs.serialConsole.close()}))},head(){return{title:this.vmi?.metadata?.name}}};a(60226);const zt=(0,u.A)(Gt,[["render",Pe],["__scopeId","data-v-2efbfdaf"]]);var qt=zt;function Xt(e,t,n,r,a,o){const s=(0,i.resolveComponent)("Loading"),l=(0,i.resolveComponent)("NovncConsoleWrapper");return e.$fetchState.pending?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0})):((0,i.openBlock)(),(0,i.createBlock)(l,{key:1,ref:"console",value:o.vmi,"onUpdate:value":t[0]||(t[0]=e=>o.vmi=e),class:"novnc-wrapper"},null,8,["value"]))}const Wt={id:"app"},Yt={class:"vm-console"},Qt={class:"combination-keys"},Jt={class:"btn btn-sm bg-primary"},Zt={class:"btn btn-sm bg-primary"},en=["onClick"],tn={key:1};function nn(e,t,n,r,a,o){const s=(0,i.resolveComponent)("novnc-console-item"),l=(0,i.resolveComponent)("v-dropdown"),c=(0,i.resolveComponent)("NovncConsoleCustomKeys"),u=(0,i.resolveComponent)("NovncConsole");return(0,i.openBlock)(),(0,i.createElementBlock)("div",Wt,[(0,i.createElementVNode)("div",Yt,[(0,i.createElementVNode)("div",Qt,[(0,i.createVNode)(l,{ref:"popover",placement:"top",trigger:"click",container:!1,onAutoHide:t[0]||(t[0]=e=>a.keysRecord=[])},{popper:(0,i.withCtx)((()=>[(0,i.createVNode)(s,{items:o.keymap,path:a.keysRecord,pos:0,onUpdate:o.update,onSendKeys:o.sendKeys},null,8,["items","path","onUpdate","onSendKeys"])])),default:(0,i.withCtx)((()=>[(0,i.createElementVNode)("button",Jt,(0,i.toDisplayString)(e.t("harvester.virtualMachine.detail.console.shortcutKeys")),1)])),_:1},512),o.hasSoftRebootAction?((0,i.openBlock)(),(0,i.createElementBlock)("button",{key:0,class:"btn btn-sm bg-primary",onClick:t[1]||(t[1]=(...e)=>o.softReboot&&o.softReboot(...e))},(0,i.toDisplayString)(e.t("harvester.action.softreboot")),1)):(0,i.createCommentVNode)("",!0),a.hideCustomKeysBar?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createBlock)(l,{key:1,ref:"customKeyPopover",placement:"top",trigger:"click",container:!1},{popper:(0,i.withCtx)((()=>[(0,i.createElementVNode)("div",null,[(0,i.createElementVNode)("button",{class:"btn btn-sm bg-primary",onClick:t[2]||(t[2]=(...e)=>o.showKeysModal&&o.showKeysModal(...e))},(0,i.toDisplayString)(e.t("harvester.virtualMachine.detail.console.management")),1)]),t[3]||(t[3]=(0,i.createElementVNode)("hr",null,null,-1)),((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(o.preferredShortcutKeys,((e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:t},[(0,i.createElementVNode)("button",{class:"btn btn-sm bg-primary",onClick:t=>o.sendCustomKeys(e.value)},(0,i.toDisplayString)(e.label),9,en)])))),128))])),default:(0,i.withCtx)((()=>[(0,i.createElementVNode)("button",Zt,(0,i.toDisplayString)(e.t("harvester.virtualMachine.detail.console.customShortcutKeys")),1)])),_:1},512)),a.renderKeysModal?((0,i.openBlock)(),(0,i.createBlock)(c,{key:2,"current-user":a.currentUser,onClose:o.hideKeysModal},null,8,["current-user","onClose"])):(0,i.createCommentVNode)("",!0)]),o.url&&!o.isDown?((0,i.openBlock)(),(0,i.createBlock)(u,{key:0,ref:"novncConsole",url:o.url},null,8,["url"])):(0,i.createCommentVNode)("",!0),o.isDown?((0,i.openBlock)(),(0,i.createElementBlock)("p",tn,(0,i.toDisplayString)(e.t("harvester.virtualMachine.detail.console.down")),1)):(0,i.createCommentVNode)("",!0)])])}var rn=a(92043),an={XK_VoidSymbol:16777215,XK_BackSpace:65288,XK_Tab:65289,XK_Linefeed:65290,XK_Clear:65291,XK_Return:65293,XK_Pause:65299,XK_Scroll_Lock:65300,XK_Sys_Req:65301,XK_Escape:65307,XK_Delete:65535,XK_Multi_key:65312,XK_Codeinput:65335,XK_SingleCandidate:65340,XK_MultipleCandidate:65341,XK_PreviousCandidate:65342,XK_Kanji:65313,XK_Muhenkan:65314,XK_Henkan_Mode:65315,XK_Henkan:65315,XK_Romaji:65316,XK_Hiragana:65317,XK_Katakana:65318,XK_Hiragana_Katakana:65319,XK_Zenkaku:65320,XK_Hankaku:65321,XK_Zenkaku_Hankaku:65322,XK_Touroku:65323,XK_Massyo:65324,XK_Kana_Lock:65325,XK_Kana_Shift:65326,XK_Eisu_Shift:65327,XK_Eisu_toggle:65328,XK_Kanji_Bangou:65335,XK_Zen_Koho:65341,XK_Mae_Koho:65342,XK_Home:65360,XK_Left:65361,XK_Up:65362,XK_Right:65363,XK_Down:65364,XK_Prior:65365,XK_Page_Up:65365,XK_Next:65366,XK_Page_Down:65366,XK_End:65367,XK_Begin:65368,XK_Select:65376,XK_Print:65377,XK_Execute:65378,XK_Insert:65379,XK_Undo:65381,XK_Redo:65382,XK_Menu:65383,XK_Find:65384,XK_Cancel:65385,XK_Help:65386,XK_Break:65387,XK_Mode_switch:65406,XK_script_switch:65406,XK_Num_Lock:65407,XK_KP_Space:65408,XK_KP_Tab:65417,XK_KP_Enter:65421,XK_KP_F1:65425,XK_KP_F2:65426,XK_KP_F3:65427,XK_KP_F4:65428,XK_KP_Home:65429,XK_KP_Left:65430,XK_KP_Up:65431,XK_KP_Right:65432,XK_KP_Down:65433,XK_KP_Prior:65434,XK_KP_Page_Up:65434,XK_KP_Next:65435,XK_KP_Page_Down:65435,XK_KP_End:65436,XK_KP_Begin:65437,XK_KP_Insert:65438,XK_KP_Delete:65439,XK_KP_Equal:65469,XK_KP_Multiply:65450,XK_KP_Add:65451,XK_KP_Separator:65452,XK_KP_Subtract:65453,XK_KP_Decimal:65454,XK_KP_Divide:65455,XK_KP_0:65456,XK_KP_1:65457,XK_KP_2:65458,XK_KP_3:65459,XK_KP_4:65460,XK_KP_5:65461,XK_KP_6:65462,XK_KP_7:65463,XK_KP_8:65464,XK_KP_9:65465,XK_F1:65470,XK_F2:65471,XK_F3:65472,XK_F4:65473,XK_F5:65474,XK_F6:65475,XK_F7:65476,XK_F8:65477,XK_F9:65478,XK_F10:65479,XK_F11:65480,XK_L1:65480,XK_F12:65481,XK_L2:65481,XK_F13:65482,XK_L3:65482,XK_F14:65483,XK_L4:65483,XK_F15:65484,XK_L5:65484,XK_F16:65485,XK_L6:65485,XK_F17:65486,XK_L7:65486,XK_F18:65487,XK_L8:65487,XK_F19:65488,XK_L9:65488,XK_F20:65489,XK_L10:65489,XK_F21:65490,XK_R1:65490,XK_F22:65491,XK_R2:65491,XK_F23:65492,XK_R3:65492,XK_F24:65493,XK_R4:65493,XK_F25:65494,XK_R5:65494,XK_F26:65495,XK_R6:65495,XK_F27:65496,XK_R7:65496,XK_F28:65497,XK_R8:65497,XK_F29:65498,XK_R9:65498,XK_F30:65499,XK_R10:65499,XK_F31:65500,XK_R11:65500,XK_F32:65501,XK_R12:65501,XK_F33:65502,XK_R13:65502,XK_F34:65503,XK_R14:65503,XK_F35:65504,XK_R15:65504,XK_Shift_L:65505,XK_Shift_R:65506,XK_Control_L:65507,XK_Control_R:65508,XK_Caps_Lock:65509,XK_Shift_Lock:65510,XK_Meta_L:65511,XK_Meta_R:65512,XK_Alt_L:65513,XK_Alt_R:65514,XK_Super_L:65515,XK_Super_R:65516,XK_Hyper_L:65517,XK_Hyper_R:65518,XK_ISO_Level3_Shift:65027,XK_ISO_Next_Group:65032,XK_ISO_Prev_Group:65034,XK_ISO_First_Group:65036,XK_ISO_Last_Group:65038,XK_space:32,XK_exclam:33,XK_quotedbl:34,XK_numbersign:35,XK_dollar:36,XK_percent:37,XK_ampersand:38,XK_apostrophe:39,XK_quoteright:39,XK_parenleft:40,XK_parenright:41,XK_asterisk:42,XK_plus:43,XK_comma:44,XK_minus:45,XK_period:46,XK_slash:47,XK_0:48,XK_1:49,XK_2:50,XK_3:51,XK_4:52,XK_5:53,XK_6:54,XK_7:55,XK_8:56,XK_9:57,XK_colon:58,XK_semicolon:59,XK_less:60,XK_equal:61,XK_greater:62,XK_question:63,XK_at:64,XK_A:65,XK_B:66,XK_C:67,XK_D:68,XK_E:69,XK_F:70,XK_G:71,XK_H:72,XK_I:73,XK_J:74,XK_K:75,XK_L:76,XK_M:77,XK_N:78,XK_O:79,XK_P:80,XK_Q:81,XK_R:82,XK_S:83,XK_T:84,XK_U:85,XK_V:86,XK_W:87,XK_X:88,XK_Y:89,XK_Z:90,XK_bracketleft:91,XK_backslash:92,XK_bracketright:93,XK_asciicircum:94,XK_underscore:95,XK_grave:96,XK_quoteleft:96,XK_a:97,XK_b:98,XK_c:99,XK_d:100,XK_e:101,XK_f:102,XK_g:103,XK_h:104,XK_i:105,XK_j:106,XK_k:107,XK_l:108,XK_m:109,XK_n:110,XK_o:111,XK_p:112,XK_q:113,XK_r:114,XK_s:115,XK_t:116,XK_u:117,XK_v:118,XK_w:119,XK_x:120,XK_y:121,XK_z:122,XK_braceleft:123,XK_bar:124,XK_braceright:125,XK_asciitilde:126,XK_nobreakspace:160,XK_exclamdown:161,XK_cent:162,XK_sterling:163,XK_currency:164,XK_yen:165,XK_brokenbar:166,XK_section:167,XK_diaeresis:168,XK_copyright:169,XK_ordfeminine:170,XK_guillemotleft:171,XK_notsign:172,XK_hyphen:173,XK_registered:174,XK_macron:175,XK_degree:176,XK_plusminus:177,XK_twosuperior:178,XK_threesuperior:179,XK_acute:180,XK_mu:181,XK_paragraph:182,XK_periodcentered:183,XK_cedilla:184,XK_onesuperior:185,XK_masculine:186,XK_guillemotright:187,XK_onequarter:188,XK_onehalf:189,XK_threequarters:190,XK_questiondown:191,XK_Agrave:192,XK_Aacute:193,XK_Acircumflex:194,XK_Atilde:195,XK_Adiaeresis:196,XK_Aring:197,XK_AE:198,XK_Ccedilla:199,XK_Egrave:200,XK_Eacute:201,XK_Ecircumflex:202,XK_Ediaeresis:203,XK_Igrave:204,XK_Iacute:205,XK_Icircumflex:206,XK_Idiaeresis:207,XK_ETH:208,XK_Eth:208,XK_Ntilde:209,XK_Ograve:210,XK_Oacute:211,XK_Ocircumflex:212,XK_Otilde:213,XK_Odiaeresis:214,XK_multiply:215,XK_Oslash:216,XK_Ooblique:216,XK_Ugrave:217,XK_Uacute:218,XK_Ucircumflex:219,XK_Udiaeresis:220,XK_Yacute:221,XK_THORN:222,XK_Thorn:222,XK_ssharp:223,XK_agrave:224,XK_aacute:225,XK_acircumflex:226,XK_atilde:227,XK_adiaeresis:228,XK_aring:229,XK_ae:230,XK_ccedilla:231,XK_egrave:232,XK_eacute:233,XK_ecircumflex:234,XK_ediaeresis:235,XK_igrave:236,XK_iacute:237,XK_icircumflex:238,XK_idiaeresis:239,XK_eth:240,XK_ntilde:241,XK_ograve:242,XK_oacute:243,XK_ocircumflex:244,XK_otilde:245,XK_odiaeresis:246,XK_division:247,XK_oslash:248,XK_ooblique:248,XK_ugrave:249,XK_uacute:250,XK_ucircumflex:251,XK_udiaeresis:252,XK_yacute:253,XK_thorn:254,XK_ydiaeresis:255,XK_Hangul:65329,XK_Hangul_Hanja:65332,XK_Hangul_Jeonja:65336,XF86XK_ModeLock:269025025,XF86XK_MonBrightnessUp:269025026,XF86XK_MonBrightnessDown:269025027,XF86XK_KbdLightOnOff:269025028,XF86XK_KbdBrightnessUp:269025029,XF86XK_KbdBrightnessDown:269025030,XF86XK_Standby:269025040,XF86XK_AudioLowerVolume:269025041,XF86XK_AudioMute:269025042,XF86XK_AudioRaiseVolume:269025043,XF86XK_AudioPlay:269025044,XF86XK_AudioStop:269025045,XF86XK_AudioPrev:269025046,XF86XK_AudioNext:269025047,XF86XK_HomePage:269025048,XF86XK_Mail:269025049,XF86XK_Start:269025050,XF86XK_Search:269025051,XF86XK_AudioRecord:269025052,XF86XK_Calculator:269025053,XF86XK_Memo:269025054,XF86XK_ToDoList:269025055,XF86XK_Calendar:269025056,XF86XK_PowerDown:269025057,XF86XK_ContrastAdjust:269025058,XF86XK_RockerUp:269025059,XF86XK_RockerDown:269025060,XF86XK_RockerEnter:269025061,XF86XK_Back:269025062,XF86XK_Forward:269025063,XF86XK_Stop:269025064,XF86XK_Refresh:269025065,XF86XK_PowerOff:269025066,XF86XK_WakeUp:269025067,XF86XK_Eject:269025068,XF86XK_ScreenSaver:269025069,XF86XK_WWW:269025070,XF86XK_Sleep:269025071,XF86XK_Favorites:269025072,XF86XK_AudioPause:269025073,XF86XK_AudioMedia:269025074,XF86XK_MyComputer:269025075,XF86XK_VendorHome:269025076,XF86XK_LightBulb:269025077,XF86XK_Shop:269025078,XF86XK_History:269025079,XF86XK_OpenURL:269025080,XF86XK_AddFavorite:269025081,XF86XK_HotLinks:269025082,XF86XK_BrightnessAdjust:269025083,XF86XK_Finance:269025084,XF86XK_Community:269025085,XF86XK_AudioRewind:269025086,XF86XK_BackForward:269025087,XF86XK_Launch0:269025088,XF86XK_Launch1:269025089,XF86XK_Launch2:269025090,XF86XK_Launch3:269025091,XF86XK_Launch4:269025092,XF86XK_Launch5:269025093,XF86XK_Launch6:269025094,XF86XK_Launch7:269025095,XF86XK_Launch8:269025096,XF86XK_Launch9:269025097,XF86XK_LaunchA:269025098,XF86XK_LaunchB:269025099,XF86XK_LaunchC:269025100,XF86XK_LaunchD:269025101,XF86XK_LaunchE:269025102,XF86XK_LaunchF:269025103,XF86XK_ApplicationLeft:269025104,XF86XK_ApplicationRight:269025105,XF86XK_Book:269025106,XF86XK_CD:269025107,XF86XK_Calculater:269025108,XF86XK_Clear:269025109,XF86XK_Close:269025110,XF86XK_Copy:269025111,XF86XK_Cut:269025112,XF86XK_Display:269025113,XF86XK_DOS:269025114,XF86XK_Documents:269025115,XF86XK_Excel:269025116,XF86XK_Explorer:269025117,XF86XK_Game:269025118,XF86XK_Go:269025119,XF86XK_iTouch:269025120,XF86XK_LogOff:269025121,XF86XK_Market:269025122,XF86XK_Meeting:269025123,XF86XK_MenuKB:269025125,XF86XK_MenuPB:269025126,XF86XK_MySites:269025127,XF86XK_New:269025128,XF86XK_News:269025129,XF86XK_OfficeHome:269025130,XF86XK_Open:269025131,XF86XK_Option:269025132,XF86XK_Paste:269025133,XF86XK_Phone:269025134,XF86XK_Q:269025136,XF86XK_Reply:269025138,XF86XK_Reload:269025139,XF86XK_RotateWindows:269025140,XF86XK_RotationPB:269025141,XF86XK_RotationKB:269025142,XF86XK_Save:269025143,XF86XK_ScrollUp:269025144,XF86XK_ScrollDown:269025145,XF86XK_ScrollClick:269025146,XF86XK_Send:269025147,XF86XK_Spell:269025148,XF86XK_SplitScreen:269025149,XF86XK_Support:269025150,XF86XK_TaskPane:269025151,XF86XK_Terminal:269025152,XF86XK_Tools:269025153,XF86XK_Travel:269025154,XF86XK_UserPB:269025156,XF86XK_User1KB:269025157,XF86XK_User2KB:269025158,XF86XK_Video:269025159,XF86XK_WheelButton:269025160,XF86XK_Word:269025161,XF86XK_Xfer:269025162,XF86XK_ZoomIn:269025163,XF86XK_ZoomOut:269025164,XF86XK_Away:269025165,XF86XK_Messenger:269025166,XF86XK_WebCam:269025167,XF86XK_MailForward:269025168,XF86XK_Pictures:269025169,XF86XK_Music:269025170,XF86XK_Battery:269025171,XF86XK_Bluetooth:269025172,XF86XK_WLAN:269025173,XF86XK_UWB:269025174,XF86XK_AudioForward:269025175,XF86XK_AudioRepeat:269025176,XF86XK_AudioRandomPlay:269025177,XF86XK_Subtitle:269025178,XF86XK_AudioCycleTrack:269025179,XF86XK_CycleAngle:269025180,XF86XK_FrameBack:269025181,XF86XK_FrameForward:269025182,XF86XK_Time:269025183,XF86XK_Select:269025184,XF86XK_View:269025185,XF86XK_TopMenu:269025186,XF86XK_Red:269025187,XF86XK_Green:269025188,XF86XK_Yellow:269025189,XF86XK_Blue:269025190,XF86XK_Suspend:269025191,XF86XK_Hibernate:269025192,XF86XK_TouchpadToggle:269025193,XF86XK_TouchpadOn:269025200,XF86XK_TouchpadOff:269025201,XF86XK_AudioMicMute:269025202,XF86XK_Switch_VT_1:269024769,XF86XK_Switch_VT_2:269024770,XF86XK_Switch_VT_3:269024771,XF86XK_Switch_VT_4:269024772,XF86XK_Switch_VT_5:269024773,XF86XK_Switch_VT_6:269024774,XF86XK_Switch_VT_7:269024775,XF86XK_Switch_VT_8:269024776,XF86XK_Switch_VT_9:269024777,XF86XK_Switch_VT_10:269024778,XF86XK_Switch_VT_11:269024779,XF86XK_Switch_VT_12:269024780,XF86XK_Ungrab:269024800,XF86XK_ClearGrab:269024801,XF86XK_Next_VMode:269024802,XF86XK_Prev_VMode:269024803,XF86XK_LogWindowTree:269024804,XF86XK_LogGrabInfo:269024805};const on={256:960,257:992,258:451,259:483,260:417,261:433,262:454,263:486,264:710,265:742,266:709,267:741,268:456,269:488,270:463,271:495,272:464,273:496,274:938,275:954,278:972,279:1004,280:458,281:490,282:460,283:492,284:728,285:760,286:683,287:699,288:725,289:757,290:939,291:955,292:678,293:694,294:673,295:689,296:933,297:949,298:975,299:1007,302:967,303:999,304:681,305:697,308:684,309:700,310:979,311:1011,312:930,313:453,314:485,315:934,316:950,317:421,318:437,321:419,322:435,323:465,324:497,325:977,326:1009,327:466,328:498,330:957,331:959,332:978,333:1010,336:469,337:501,338:5052,339:5053,340:448,341:480,342:931,343:947,344:472,345:504,346:422,347:438,348:734,349:766,350:426,351:442,352:425,353:441,354:478,355:510,356:427,357:443,358:940,359:956,360:989,361:1021,362:990,363:1022,364:733,365:765,366:473,367:505,368:475,369:507,370:985,371:1017,376:5054,377:428,378:444,379:431,380:447,381:430,382:446,402:2294,466:16777681,711:439,728:418,729:511,731:434,733:445,901:1966,902:1953,904:1954,905:1955,906:1956,908:1959,910:1960,911:1963,912:1974,913:1985,914:1986,915:1987,916:1988,917:1989,918:1990,919:1991,920:1992,921:1993,922:1994,923:1995,924:1996,925:1997,926:1998,927:1999,928:2e3,929:2001,931:2002,932:2004,933:2005,934:2006,935:2007,936:2008,937:2009,938:1957,939:1961,940:1969,941:1970,942:1971,943:1972,944:1978,945:2017,946:2018,947:2019,948:2020,949:2021,950:2022,951:2023,952:2024,953:2025,954:2026,955:2027,956:2028,957:2029,958:2030,959:2031,960:2032,961:2033,962:2035,963:2034,964:2036,965:2037,966:2038,967:2039,968:2040,969:2041,970:1973,971:1977,972:1975,973:1976,974:1979,1025:1715,1026:1713,1027:1714,1028:1716,1029:1717,1030:1718,1031:1719,1032:1720,1033:1721,1034:1722,1035:1723,1036:1724,1038:1726,1039:1727,1040:1761,1041:1762,1042:1783,1043:1767,1044:1764,1045:1765,1046:1782,1047:1786,1048:1769,1049:1770,1050:1771,1051:1772,1052:1773,1053:1774,1054:1775,1055:1776,1056:1778,1057:1779,1058:1780,1059:1781,1060:1766,1061:1768,1062:1763,1063:1790,1064:1787,1065:1789,1066:1791,1067:1785,1068:1784,1069:1788,1070:1760,1071:1777,1072:1729,1073:1730,1074:1751,1075:1735,1076:1732,1077:1733,1078:1750,1079:1754,1080:1737,1081:1738,1082:1739,1083:1740,1084:1741,1085:1742,1086:1743,1087:1744,1088:1746,1089:1747,1090:1748,1091:1749,1092:1734,1093:1736,1094:1731,1095:1758,1096:1755,1097:1757,1098:1759,1099:1753,1100:1752,1101:1756,1102:1728,1103:1745,1105:1699,1106:1697,1107:1698,1108:1700,1109:1701,1110:1702,1111:1703,1112:1704,1113:1705,1114:1706,1115:1707,1116:1708,1118:1710,1119:1711,1168:1725,1169:1709,1488:3296,1489:3297,1490:3298,1491:3299,1492:3300,1493:3301,1494:3302,1495:3303,1496:3304,1497:3305,1498:3306,1499:3307,1500:3308,1501:3309,1502:3310,1503:3311,1504:3312,1505:3313,1506:3314,1507:3315,1508:3316,1509:3317,1510:3318,1511:3319,1512:3320,1513:3321,1514:3322,1548:1452,1563:1467,1567:1471,1569:1473,1570:1474,1571:1475,1572:1476,1573:1477,1574:1478,1575:1479,1576:1480,1577:1481,1578:1482,1579:1483,1580:1484,1581:1485,1582:1486,1583:1487,1584:1488,1585:1489,1586:1490,1587:1491,1588:1492,1589:1493,1590:1494,1591:1495,1592:1496,1593:1497,1594:1498,1600:1504,1601:1505,1602:1506,1603:1507,1604:1508,1605:1509,1606:1510,1607:1511,1608:1512,1609:1513,1610:1514,1611:1515,1612:1516,1613:1517,1614:1518,1615:1519,1616:1520,1617:1521,1618:1522,3585:3489,3586:3490,3587:3491,3588:3492,3589:3493,3590:3494,3591:3495,3592:3496,3593:3497,3594:3498,3595:3499,3596:3500,3597:3501,3598:3502,3599:3503,3600:3504,3601:3505,3602:3506,3603:3507,3604:3508,3605:3509,3606:3510,3607:3511,3608:3512,3609:3513,3610:3514,3611:3515,3612:3516,3613:3517,3614:3518,3615:3519,3616:3520,3617:3521,3618:3522,3619:3523,3620:3524,3621:3525,3622:3526,3623:3527,3624:3528,3625:3529,3626:3530,3627:3531,3628:3532,3629:3533,3630:3534,3631:3535,3632:3536,3633:3537,3634:3538,3635:3539,3636:3540,3637:3541,3638:3542,3639:3543,3640:3544,3641:3545,3642:3546,3647:3551,3648:3552,3649:3553,3650:3554,3651:3555,3652:3556,3653:3557,3654:3558,3655:3559,3656:3560,3657:3561,3658:3562,3659:3563,3660:3564,3661:3565,3664:3568,3665:3569,3666:3570,3667:3571,3668:3572,3669:3573,3670:3574,3671:3575,3672:3576,3673:3577,8194:2722,8195:2721,8196:2723,8197:2724,8199:2725,8200:2726,8201:2727,8202:2728,8210:2747,8211:2730,8212:2729,8213:1967,8215:3295,8216:2768,8217:2769,8218:2813,8220:2770,8221:2771,8222:2814,8224:2801,8225:2802,8226:2790,8229:2735,8230:2734,8240:2773,8242:2774,8243:2775,8248:2812,8254:1150,8361:3839,8364:8364,8453:2744,8470:1712,8471:2811,8478:2772,8482:2761,8531:2736,8532:2737,8533:2738,8534:2739,8535:2740,8536:2741,8537:2742,8538:2743,8539:2755,8540:2756,8541:2757,8542:2758,8592:2299,8593:2300,8594:2301,8595:2302,8658:2254,8660:2253,8706:2287,8711:2245,8728:3018,8730:2262,8733:2241,8734:2242,8743:2270,8744:2271,8745:2268,8746:2269,8747:2239,8756:2240,8764:2248,8771:2249,8773:16785992,8800:2237,8801:2255,8804:2236,8805:2238,8834:2266,8835:2267,8866:3068,8867:3036,8868:3010,8869:3022,8968:3027,8970:3012,8981:2810,8992:2212,8993:2213,9109:3020,9115:2219,9117:2220,9118:2221,9120:2222,9121:2215,9123:2216,9124:2217,9126:2218,9128:2223,9132:2224,9143:2209,9146:2543,9147:2544,9148:2546,9149:2547,9225:2530,9226:2533,9227:2537,9228:2531,9229:2532,9251:2732,9252:2536,9472:2211,9474:2214,9484:2210,9488:2539,9492:2541,9496:2538,9500:2548,9508:2549,9516:2551,9524:2550,9532:2542,9618:2529,9642:2791,9643:2785,9644:2779,9645:2786,9646:2783,9647:2767,9650:2792,9651:2787,9654:2781,9655:2765,9660:2793,9661:2788,9664:2780,9665:2764,9670:2528,9675:2766,9679:2782,9702:2784,9734:2789,9742:2809,9747:2762,9756:2794,9758:2795,9792:2808,9794:2807,9827:2796,9829:2798,9830:2797,9837:2806,9839:2805,10003:2803,10007:2804,10013:2777,10016:2800,10216:2748,10217:2750,12289:1188,12290:1185,12300:1186,12301:1187,12443:1246,12444:1247,12449:1191,12450:1201,12451:1192,12452:1202,12453:1193,12454:1203,12455:1194,12456:1204,12457:1195,12458:1205,12459:1206,12461:1207,12463:1208,12465:1209,12467:1210,12469:1211,12471:1212,12473:1213,12475:1214,12477:1215,12479:1216,12481:1217,12483:1199,12484:1218,12486:1219,12488:1220,12490:1221,12491:1222,12492:1223,12493:1224,12494:1225,12495:1226,12498:1227,12501:1228,12504:1229,12507:1230,12510:1231,12511:1232,12512:1233,12513:1234,12514:1235,12515:1196,12516:1236,12517:1197,12518:1237,12519:1198,12520:1238,12521:1239,12522:1240,12523:1241,12524:1242,12525:1243,12527:1244,12530:1190,12531:1245,12539:1189,12540:1200};var sn={lookup(e){if(e>=32&&e<=255)return e;const t=on[e];return void 0!==t?t:16777216|e}},ln={8:"Backspace",9:"Tab",10:"NumpadClear",12:"Numpad5",13:"Enter",16:"ShiftLeft",17:"ControlLeft",18:"AltLeft",19:"Pause",20:"CapsLock",21:"Lang1",25:"Lang2",27:"Escape",28:"Convert",29:"NonConvert",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",44:"PrintScreen",45:"Insert",46:"Delete",47:"Help",48:"Digit0",49:"Digit1",50:"Digit2",51:"Digit3",52:"Digit4",53:"Digit5",54:"Digit6",55:"Digit7",56:"Digit8",57:"Digit9",91:"MetaLeft",92:"MetaRight",93:"ContextMenu",95:"Sleep",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",108:"NumpadDecimal",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",124:"F13",125:"F14",126:"F15",127:"F16",128:"F17",129:"F18",130:"F19",131:"F20",132:"F21",133:"F22",134:"F23",135:"F24",144:"NumLock",145:"ScrollLock",166:"BrowserBack",167:"BrowserForward",168:"BrowserRefresh",169:"BrowserStop",170:"BrowserSearch",171:"BrowserFavorites",172:"BrowserHome",173:"AudioVolumeMute",174:"AudioVolumeDown",175:"AudioVolumeUp",176:"MediaTrackNext",177:"MediaTrackPrevious",178:"MediaStop",179:"MediaPlayPause",180:"LaunchMail",181:"MediaSelect",182:"LaunchApp1",183:"LaunchApp2",225:"AltRight"},cn={Backspace:"Backspace",AltLeft:"Alt",AltRight:"Alt",CapsLock:"CapsLock",ContextMenu:"ContextMenu",ControlLeft:"Control",ControlRight:"Control",Enter:"Enter",MetaLeft:"Meta",MetaRight:"Meta",ShiftLeft:"Shift",ShiftRight:"Shift",Tab:"Tab",Delete:"Delete",End:"End",Help:"Help",Home:"Home",Insert:"Insert",PageDown:"PageDown",PageUp:"PageUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp",NumLock:"NumLock",NumpadBackspace:"Backspace",NumpadClear:"Clear",Escape:"Escape",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F11",F12:"F12",F13:"F13",F14:"F14",F15:"F15",F16:"F16",F17:"F17",F18:"F18",F19:"F19",F20:"F20",F21:"F21",F22:"F22",F23:"F23",F24:"F24",F25:"F25",F26:"F26",F27:"F27",F28:"F28",F29:"F29",F30:"F30",F31:"F31",F32:"F32",F33:"F33",F34:"F34",F35:"F35",PrintScreen:"PrintScreen",ScrollLock:"ScrollLock",Pause:"Pause",BrowserBack:"BrowserBack",BrowserFavorites:"BrowserFavorites",BrowserForward:"BrowserForward",BrowserHome:"BrowserHome",BrowserRefresh:"BrowserRefresh",BrowserSearch:"BrowserSearch",BrowserStop:"BrowserStop",Eject:"Eject",LaunchApp1:"LaunchMyComputer",LaunchApp2:"LaunchCalendar",LaunchMail:"LaunchMail",MediaPlayPause:"MediaPlay",MediaStop:"MediaStop",MediaTrackNext:"MediaTrackNext",MediaTrackPrevious:"MediaTrackPrevious",Power:"Power",Sleep:"Sleep",AudioVolumeDown:"AudioVolumeDown",AudioVolumeMute:"AudioVolumeMute",AudioVolumeUp:"AudioVolumeUp",WakeUp:"WakeUp"};const un={};function dn(e,t){if(void 0===t)throw new Error('Undefined keysym for key "'+e+'"');if(e in un)throw new Error('Duplicate entry for key "'+e+'"');un[e]=[t,t,t,t]}function hn(e,t,n){if(void 0===t)throw new Error('Undefined keysym for key "'+e+'"');if(void 0===n)throw new Error('Undefined keysym for key "'+e+'"');if(e in un)throw new Error('Duplicate entry for key "'+e+'"');un[e]=[t,t,n,t]}function pn(e,t,n){if(void 0===t)throw new Error('Undefined keysym for key "'+e+'"');if(void 0===n)throw new Error('Undefined keysym for key "'+e+'"');if(e in un)throw new Error('Duplicate entry for key "'+e+'"');un[e]=[t,t,t,n]}hn("Alt",an.XK_Alt_L,an.XK_Alt_R),dn("AltGraph",an.XK_ISO_Level3_Shift),dn("CapsLock",an.XK_Caps_Lock),hn("Control",an.XK_Control_L,an.XK_Control_R),hn("Meta",an.XK_Super_L,an.XK_Super_R),dn("NumLock",an.XK_Num_Lock),dn("ScrollLock",an.XK_Scroll_Lock),hn("Shift",an.XK_Shift_L,an.XK_Shift_R),pn("Enter",an.XK_Return,an.XK_KP_Enter),dn("Tab",an.XK_Tab),pn(" ",an.XK_space,an.XK_KP_Space),pn("ArrowDown",an.XK_Down,an.XK_KP_Down),pn("ArrowUp",an.XK_Up,an.XK_KP_Up),pn("ArrowLeft",an.XK_Left,an.XK_KP_Left),pn("ArrowRight",an.XK_Right,an.XK_KP_Right),pn("End",an.XK_End,an.XK_KP_End),pn("Home",an.XK_Home,an.XK_KP_Home),pn("PageDown",an.XK_Next,an.XK_KP_Next),pn("PageUp",an.XK_Prior,an.XK_KP_Prior),dn("Backspace",an.XK_BackSpace),pn("Clear",an.XK_Clear,an.XK_KP_Begin),dn("Copy",an.XF86XK_Copy),dn("Cut",an.XF86XK_Cut),pn("Delete",an.XK_Delete,an.XK_KP_Delete),pn("Insert",an.XK_Insert,an.XK_KP_Insert),dn("Paste",an.XF86XK_Paste),dn("Redo",an.XK_Redo),dn("Undo",an.XK_Undo),dn("Cancel",an.XK_Cancel),dn("ContextMenu",an.XK_Menu),dn("Escape",an.XK_Escape),dn("Execute",an.XK_Execute),dn("Find",an.XK_Find),dn("Help",an.XK_Help),dn("Pause",an.XK_Pause),dn("Select",an.XK_Select),dn("ZoomIn",an.XF86XK_ZoomIn),dn("ZoomOut",an.XF86XK_ZoomOut),dn("BrightnessDown",an.XF86XK_MonBrightnessDown),dn("BrightnessUp",an.XF86XK_MonBrightnessUp),dn("Eject",an.XF86XK_Eject),dn("LogOff",an.XF86XK_LogOff),dn("Power",an.XF86XK_PowerOff),dn("PowerOff",an.XF86XK_PowerDown),dn("PrintScreen",an.XK_Print),dn("Hibernate",an.XF86XK_Hibernate),dn("Standby",an.XF86XK_Standby),dn("WakeUp",an.XF86XK_WakeUp),dn("AllCandidates",an.XK_MultipleCandidate),dn("Alphanumeric",an.XK_Eisu_Shift),dn("CodeInput",an.XK_Codeinput),dn("Compose",an.XK_Multi_key),dn("Convert",an.XK_Henkan),dn("GroupFirst",an.XK_ISO_First_Group),dn("GroupLast",an.XK_ISO_Last_Group),dn("GroupNext",an.XK_ISO_Next_Group),dn("GroupPrevious",an.XK_ISO_Prev_Group),dn("NonConvert",an.XK_Muhenkan),dn("PreviousCandidate",an.XK_PreviousCandidate),dn("SingleCandidate",an.XK_SingleCandidate),dn("HangulMode",an.XK_Hangul),dn("HanjaMode",an.XK_Hangul_Hanja),dn("JunjuaMode",an.XK_Hangul_Jeonja),dn("Eisu",an.XK_Eisu_toggle),dn("Hankaku",an.XK_Hankaku),dn("Hiragana",an.XK_Hiragana),dn("HiraganaKatakana",an.XK_Hiragana_Katakana),dn("KanaMode",an.XK_Kana_Shift),dn("KanjiMode",an.XK_Kanji),dn("Katakana",an.XK_Katakana),dn("Romaji",an.XK_Romaji),dn("Zenkaku",an.XK_Zenkaku),dn("ZenkakuHanaku",an.XK_Zenkaku_Hankaku),dn("F1",an.XK_F1),dn("F2",an.XK_F2),dn("F3",an.XK_F3),dn("F4",an.XK_F4),dn("F5",an.XK_F5),dn("F6",an.XK_F6),dn("F7",an.XK_F7),dn("F8",an.XK_F8),dn("F9",an.XK_F9),dn("F10",an.XK_F10),dn("F11",an.XK_F11),dn("F12",an.XK_F12),dn("F13",an.XK_F13),dn("F14",an.XK_F14),dn("F15",an.XK_F15),dn("F16",an.XK_F16),dn("F17",an.XK_F17),dn("F18",an.XK_F18),dn("F19",an.XK_F19),dn("F20",an.XK_F20),dn("F21",an.XK_F21),dn("F22",an.XK_F22),dn("F23",an.XK_F23),dn("F24",an.XK_F24),dn("F25",an.XK_F25),dn("F26",an.XK_F26),dn("F27",an.XK_F27),dn("F28",an.XK_F28),dn("F29",an.XK_F29),dn("F30",an.XK_F30),dn("F31",an.XK_F31),dn("F32",an.XK_F32),dn("F33",an.XK_F33),dn("F34",an.XK_F34),dn("F35",an.XK_F35),dn("Close",an.XF86XK_Close),dn("MailForward",an.XF86XK_MailForward),dn("MailReply",an.XF86XK_Reply),dn("MailSend",an.XF86XK_Send),dn("MediaFastForward",an.XF86XK_AudioForward),dn("MediaPause",an.XF86XK_AudioPause),dn("MediaPlay",an.XF86XK_AudioPlay),dn("MediaRecord",an.XF86XK_AudioRecord),dn("MediaRewind",an.XF86XK_AudioRewind),dn("MediaStop",an.XF86XK_AudioStop),dn("MediaTrackNext",an.XF86XK_AudioNext),dn("MediaTrackPrevious",an.XF86XK_AudioPrev),dn("New",an.XF86XK_New),dn("Open",an.XF86XK_Open),dn("Print",an.XK_Print),dn("Save",an.XF86XK_Save),dn("SpellCheck",an.XF86XK_Spell),dn("AudioVolumeDown",an.XF86XK_AudioLowerVolume),dn("AudioVolumeUp",an.XF86XK_AudioRaiseVolume),dn("AudioVolumeMute",an.XF86XK_AudioMute),dn("MicrophoneVolumeMute",an.XF86XK_AudioMicMute),dn("LaunchApplication1",an.XF86XK_MyComputer),dn("LaunchApplication2",an.XF86XK_Calculator),dn("LaunchCalendar",an.XF86XK_Calendar),dn("LaunchMail",an.XF86XK_Mail),dn("LaunchMediaPlayer",an.XF86XK_AudioMedia),dn("LaunchMusicPlayer",an.XF86XK_Music),dn("LaunchPhone",an.XF86XK_Phone),dn("LaunchScreenSaver",an.XF86XK_ScreenSaver),dn("LaunchSpreadsheet",an.XF86XK_Excel),dn("LaunchWebBrowser",an.XF86XK_WWW),dn("LaunchWebCam",an.XF86XK_WebCam),dn("LaunchWordProcessor",an.XF86XK_Word),dn("BrowserBack",an.XF86XK_Back),dn("BrowserFavorites",an.XF86XK_Favorites),dn("BrowserForward",an.XF86XK_Forward),dn("BrowserHome",an.XF86XK_HomePage),dn("BrowserRefresh",an.XF86XK_Refresh),dn("BrowserSearch",an.XF86XK_Search),dn("BrowserStop",an.XF86XK_Stop),dn("Dimmer",an.XF86XK_BrightnessAdjust),dn("MediaAudioTrack",an.XF86XK_AudioCycleTrack),dn("RandomToggle",an.XF86XK_AudioRandomPlay),dn("SplitScreenToggle",an.XF86XK_SplitScreen),dn("Subtitle",an.XF86XK_Subtitle),dn("VideoModeNext",an.XF86XK_Next_VMode),pn("=",an.XK_equal,an.XK_KP_Equal),pn("+",an.XK_plus,an.XK_KP_Add),pn("-",an.XK_minus,an.XK_KP_Subtract),pn("*",an.XK_asterisk,an.XK_KP_Multiply),pn("/",an.XK_slash,an.XK_KP_Divide),pn(".",an.XK_period,an.XK_KP_Decimal),pn(",",an.XK_comma,an.XK_KP_Separator),pn("0",an.XK_0,an.XK_KP_0),pn("1",an.XK_1,an.XK_KP_1),pn("2",an.XK_2,an.XK_KP_2),pn("3",an.XK_3,an.XK_KP_3),pn("4",an.XK_4,an.XK_KP_4),pn("5",an.XK_5,an.XK_KP_5),pn("6",an.XK_6,an.XK_KP_6),pn("7",an.XK_7,an.XK_KP_7),pn("8",an.XK_8,an.XK_KP_8),pn("9",an.XK_9,an.XK_KP_9);var fn=un,mn=a(4364);let gn="warn",vn=()=>{},bn=()=>{},yn=()=>{},wn=()=>{};function En(e){if("undefined"===typeof e?e=gn:gn=e,vn=bn=yn=wn=()=>{},"undefined"!==typeof window.console)switch(e){case"debug":vn=mn.debug.bind(window.console);case"info":bn=mn.info.bind(window.console);case"warn":yn=mn.warn.bind(window.console);case"error":wn=mn.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+e+"'")}}En();let _n="ontouchstart"in document.documentElement||void 0!==document.ontouchstart||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.addEventListener("touchstart",(function e(){_n=!0,window.removeEventListener("touchstart",e,!1)}),!1);let Sn=10*(window.devicePixelRatio||1),kn=!1;try{const e=document.createElement("canvas");e.style.cursor='url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default',0===e.style.cursor.indexOf("url")?(bn("Data URI scheme cursor supported"),kn=!0):yn("Data URI scheme cursor not supported")}catch(Zk){wn("Data URI scheme cursor test exception: "+Zk)}const xn=kn;let An=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),An=!0}catch(ex){}const Nn=An;let Cn=!0;try{const e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);const t=document.createElement("div");e.appendChild(t);const n=e.offsetWidth-t.offsetWidth;e.parentNode.removeChild(e),Cn=0!=n}catch(Zk){wn("Scrollbar test exception: "+Zk)}function Tn(){return navigator&&!!/mac/i.exec(navigator.platform)}function Rn(){return navigator&&!!/win/i.exec(navigator.platform)}function On(){return navigator&&(!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform))}function In(){return navigator&&!!/trident/i.exec(navigator.userAgent)}function Ln(){return navigator&&!!/edge/i.exec(navigator.userAgent)}function Dn(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}function Pn(e){if(e.code){switch(e.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return e.code}if("keypress"!==e.type&&e.keyCode in ln){let t=ln[e.keyCode];if(Tn()&&"ContextMenu"===t&&(t="MetaRight"),2===e.location)switch(t){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(3===e.location)switch(t){case"Delete":return"NumpadDecimal";case"Insert":return"Numpad0";case"End":return"Numpad1";case"ArrowDown":return"Numpad2";case"PageDown":return"Numpad3";case"ArrowLeft":return"Numpad4";case"ArrowRight":return"Numpad6";case"Home":return"Numpad7";case"ArrowUp":return"Numpad8";case"PageUp":return"Numpad9";case"Enter":return"NumpadEnter"}return t}return"Unidentified"}function Mn(e){if(void 0!==e.key){switch(e.key){case"Spacebar":return" ";case"Esc":return"Escape";case"Scroll":return"ScrollLock";case"Win":return"Meta";case"Apps":return"ContextMenu";case"Up":return"ArrowUp";case"Left":return"ArrowLeft";case"Right":return"ArrowRight";case"Down":return"ArrowDown";case"Del":return"Delete";case"Divide":return"/";case"Multiply":return"*";case"Subtract":return"-";case"Add":return"+";case"Decimal":return e.char}switch(e.key){case"OS":return"Meta";case"LaunchMyComputer":return"LaunchApplication1";case"LaunchCalculator":return"LaunchApplication2"}switch(e.key){case"UIKeyInputUpArrow":return"ArrowUp";case"UIKeyInputDownArrow":return"ArrowDown";case"UIKeyInputLeftArrow":return"ArrowLeft";case"UIKeyInputRightArrow":return"ArrowRight";case"UIKeyInputEscape":return"Escape"}if("\0"===e.key&&"NumpadDecimal"===e.code)return"Delete";if(!In()&&!Ln())return e.key;if(1!==e.key.length&&"Unidentified"!==e.key)return e.key}const t=Pn(e);return t in cn?cn[t]:e.charCode?String.fromCharCode(e.charCode):"Unidentified"}function Bn(e){const t=Mn(e);if("Unidentified"===t)return null;if(t in fn){let n=e.location;if("Meta"===t&&0===n&&(n=2),"Clear"===t&&3===n){let t=Pn(e);"NumLock"===t&&(n=0)}if((void 0===n||n>3)&&(n=0),"Meta"===t){let t=Pn(e);if("AltLeft"===t)return an.XK_Meta_L;if("AltRight"===t)return an.XK_Meta_R}if("Clear"===t){let t=Pn(e);if("NumLock"===t)return an.XK_Num_Lock}return fn[t][n]}if(1!==t.length)return null;const n=t.charCodeAt();return n?sn.lookup(n):null}const Fn={key:0},$n={class:"main-layout error"},Un={class:"text-center"},jn={class:"text-secondary mt-20"},Vn={key:1},Kn={class:"main-layout"},Hn={class:"text-center"},Gn={class:"text-secondary mt-20"},zn={ref:"view"};function qn(e,t,n,r,a,o){const s=(0,i.resolveComponent)("BrandImage");return(0,i.openBlock)(),(0,i.createElementBlock)("div",null,[a.connected&&a.disconnected?((0,i.openBlock)(),(0,i.createElementBlock)("div",Fn,[(0,i.createElementVNode)("main",$n,[(0,i.createElementVNode)("div",Un,[(0,i.createVNode)(s,{"file-name":"error-desert-landscape.svg",width:"900",height:"300"}),(0,i.createElementVNode)("h1",null,(0,i.toDisplayString)(e.t("generic.notification.title.warning")),1),(0,i.createElementVNode)("h2",jn,(0,i.toDisplayString)(e.t("vncConsole.error.message")),1)])])])):(0,i.createCommentVNode)("",!0),a.reconnecting?((0,i.openBlock)(),(0,i.createElementBlock)("div",Vn,[(0,i.createElementVNode)("main",Kn,[(0,i.createElementVNode)("div",Hn,[(0,i.createElementVNode)("h2",Gn,(0,i.toDisplayString)(e.t("vncConsole.reconnecting.message"))+""+(0,i.toDisplayString)(a.retryTimes)+" of "+(0,i.toDisplayString)(a.maximumRetryTimes),1)])])])):(0,i.createCommentVNode)("",!0),(0,i.createElementVNode)("div",zn,null,512)])}function Xn(e){return e>>>0}function Wn(e){return 0|e}function Yn(e,t=!1){try{return decodeURIComponent(escape(e))}catch(Hs){if(Hs instanceof URIError&&t)return e;throw Hs}}function Qn(e){return unescape(encodeURIComponent(e))}function Jn(e,t,n){const r=n.getBoundingClientRect();let i={x:0,y:0};return e<r.left?i.x=0:e>=r.right?i.x=r.width-1:i.x=e-r.left,t<r.top?i.y=0:t>=r.bottom?i.y=r.height-1:i.y=t-r.top,i}function Zn(e){e.stopPropagation(),e.preventDefault()}let er=!1,tr=null;function nr(e){if(er)return;const t=new e.constructor(e.type,e);er=!0,document.captureElement?document.captureElement.dispatchEvent(t):tr.dispatchEvent(t),er=!1,e.stopPropagation(),t.defaultPrevented&&e.preventDefault(),"mouseup"===e.type&&or()}function rr(){const e=document.getElementById("noVNC_mouse_capture_elem");e.style.cursor=window.getComputedStyle(document.captureElement).cursor}document.captureElement=null;const ir=new MutationObserver(rr);function ar(e){if(e.setCapture)e.setCapture(),document.captureElement=e,e.addEventListener("mouseup",or);else{or();let t=document.getElementById("noVNC_mouse_capture_elem");null===t&&(t=document.createElement("div"),t.id="noVNC_mouse_capture_elem",t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.width="100%",t.style.height="100%",t.style.zIndex=1e4,t.style.display="none",document.body.appendChild(t),t.addEventListener("contextmenu",nr),t.addEventListener("mousemove",nr),t.addEventListener("mouseup",nr)),document.captureElement=e,ir.observe(e,{attributes:!0}),rr(),t.style.display="",window.addEventListener("mousemove",nr),window.addEventListener("mouseup",nr)}}function or(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;tr=document.captureElement,document.captureElement=null,ir.disconnect();const e=document.getElementById("noVNC_mouse_capture_elem");e.style.display="none",window.removeEventListener("mousemove",nr),window.removeEventListener("mouseup",nr)}}class sr{constructor(){this._listeners=new Map}addEventListener(e,t){this._listeners.has(e)||this._listeners.set(e,new Set),this._listeners.get(e).add(t)}removeEventListener(e,t){this._listeners.has(e)&&this._listeners.get(e).delete(t)}dispatchEvent(e){return!this._listeners.has(e.type)||(this._listeners.get(e.type).forEach((t=>t.call(this,e))),!e.defaultPrevented)}}var lr={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode(e){let t="";const n=e.length,r=n%3;for(let a=0;a<n-2;a+=3)t+=this.toBase64Table[e[a]>>2],t+=this.toBase64Table[((3&e[a])<<4)+(e[a+1]>>4)],t+=this.toBase64Table[((15&e[a+1])<<2)+(e[a+2]>>6)],t+=this.toBase64Table[63&e[a+2]];const i=n-r;return 2===r?(t+=this.toBase64Table[e[i]>>2],t+=this.toBase64Table[((3&e[i])<<4)+(e[i+1]>>4)],t+=this.toBase64Table[(15&e[i+1])<<2],t+=this.toBase64Table[64]):1===r&&(t+=this.toBase64Table[e[i]>>2],t+=this.toBase64Table[(3&e[i])<<4],t+=this.toBase64Table[64],t+=this.toBase64Table[64]),t},toBinaryTable:[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1],decode(e,t=0){let n=e.indexOf("=")-t;n<0&&(n=e.length-t);const r=3*(n>>2)+Math.floor(n%4/1.5),i=new Array(r);let a=0,o=0;for(let s=0,l=t;l<e.length;l++){const t=this.toBinaryTable[127&e.charCodeAt(l)],n=e.charAt(l)===this.base64Pad;-1!==t?(o=o<<6|t,a+=6,a>=8&&(a-=8,n||(i[s++]=o>>a&255),o&=(1<<a)-1)):wn("Illegal character code "+e.charCodeAt(l)+" at position "+l)}if(a){const e=new Error("Corrupted base64 string");throw e.name="Base64-Error",e}return i}};class cr{constructor(e){if(this._drawCtx=null,this._renderQ=[],this._flushing=!1,this._fbWidth=0,this._fbHeight=0,this._prevDrawStyle="",this._tile=null,this._tile16x16=null,this._tileX=0,this._tileY=0,vn(">> Display.constructor"),this._target=e,!this._target)throw new Error("Target must be set");if("string"===typeof this._target)throw new Error("target must be a DOM element");if(!this._target.getContext)throw new Error("no getContext method");if(this._targetCtx=this._target.getContext("2d"),this._viewportLoc={x:0,y:0,w:this._target.width,h:this._target.height},this._backbuffer=document.createElement("canvas"),this._drawCtx=this._backbuffer.getContext("2d"),this._damageBounds={left:0,top:0,right:this._backbuffer.width,bottom:this._backbuffer.height},vn("User Agent: "+navigator.userAgent),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._tile16x16=this._drawCtx.createImageData(16,16),vn("<< Display.constructor"),this._scale=1,this._clipViewport=!1,this.onflush=()=>{}}get scale(){return this._scale}set scale(e){this._rescale(e)}get clipViewport(){return this._clipViewport}set clipViewport(e){this._clipViewport=e;const t=this._viewportLoc;this.viewportChangeSize(t.w,t.h),this.viewportChangePos(0,0)}get width(){return this._fbWidth}get height(){return this._fbHeight}viewportChangePos(e,t){const n=this._viewportLoc;e=Math.floor(e),t=Math.floor(t),this._clipViewport||(e=-n.w,t=-n.h);const r=n.x+n.w-1,i=n.y+n.h-1;e<0&&n.x+e<0&&(e=-n.x),r+e>=this._fbWidth&&(e-=r+e-this._fbWidth+1),n.y+t<0&&(t=-n.y),i+t>=this._fbHeight&&(t-=i+t-this._fbHeight+1),0===e&&0===t||(vn("viewportChange deltaX: "+e+", deltaY: "+t),n.x+=e,n.y+=t,this._damage(n.x,n.y,n.w,n.h),this.flip())}viewportChangeSize(e,t){this._clipViewport&&"undefined"!==typeof e&&"undefined"!==typeof t||(vn("Setting viewport to full display region"),e=this._fbWidth,t=this._fbHeight),e=Math.floor(e),t=Math.floor(t),e>this._fbWidth&&(e=this._fbWidth),t>this._fbHeight&&(t=this._fbHeight);const n=this._viewportLoc;if(n.w!==e||n.h!==t){n.w=e,n.h=t;const r=this._target;r.width=e,r.height=t,this.viewportChangePos(0,0),this._damage(n.x,n.y,n.w,n.h),this.flip(),this._rescale(this._scale)}}absX(e){return 0===this._scale?0:Wn(e/this._scale+this._viewportLoc.x)}absY(e){return 0===this._scale?0:Wn(e/this._scale+this._viewportLoc.y)}resize(e,t){this._prevDrawStyle="",this._fbWidth=e,this._fbHeight=t;const n=this._backbuffer;if(n.width!==e||n.height!==t){let r=null;n.width>0&&n.height>0&&(r=this._drawCtx.getImageData(0,0,n.width,n.height)),n.width!==e&&(n.width=e),n.height!==t&&(n.height=t),r&&this._drawCtx.putImageData(r,0,0)}const r=this._viewportLoc;this.viewportChangeSize(r.w,r.h),this.viewportChangePos(0,0)}_damage(e,t,n,r){e<this._damageBounds.left&&(this._damageBounds.left=e),t<this._damageBounds.top&&(this._damageBounds.top=t),e+n>this._damageBounds.right&&(this._damageBounds.right=e+n),t+r>this._damageBounds.bottom&&(this._damageBounds.bottom=t+r)}flip(e){if(0===this._renderQ.length||e){let e=this._damageBounds.left,t=this._damageBounds.top,n=this._damageBounds.right-e,r=this._damageBounds.bottom-t,i=e-this._viewportLoc.x,a=t-this._viewportLoc.y;i<0&&(n+=i,e-=i,i=0),a<0&&(r+=a,t-=a,a=0),i+n>this._viewportLoc.w&&(n=this._viewportLoc.w-i),a+r>this._viewportLoc.h&&(r=this._viewportLoc.h-a),n>0&&r>0&&this._targetCtx.drawImage(this._backbuffer,e,t,n,r,i,a,n,r),this._damageBounds.left=this._damageBounds.top=65535,this._damageBounds.right=this._damageBounds.bottom=0}else this._renderQPush({type:"flip"})}pending(){return this._renderQ.length>0}flush(){0===this._renderQ.length?this.onflush():this._flushing=!0}fillRect(e,t,n,r,i,a){0===this._renderQ.length||a?(this._setFillColor(i),this._drawCtx.fillRect(e,t,n,r),this._damage(e,t,n,r)):this._renderQPush({type:"fill",x:e,y:t,width:n,height:r,color:i})}copyImage(e,t,n,r,i,a,o){0===this._renderQ.length||o?(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,e,t,i,a,n,r,i,a),this._damage(n,r,i,a)):this._renderQPush({type:"copy",oldX:e,oldY:t,x:n,y:r,width:i,height:a})}imageRect(e,t,n,r,i,a){if(0===n||0===r)return;const o=new Image;o.src="data: "+i+";base64,"+lr.encode(a),this._renderQPush({type:"img",img:o,x:e,y:t,width:n,height:r})}startTile(e,t,n,r,i){this._tileX=e,this._tileY=t,this._tile=16===n&&16===r?this._tile16x16:this._drawCtx.createImageData(n,r);const a=i[2],o=i[1],s=i[0],l=this._tile.data;for(let c=0;c<n*r*4;c+=4)l[c]=a,l[c+1]=o,l[c+2]=s,l[c+3]=255}subTile(e,t,n,r,i){const a=i[2],o=i[1],s=i[0],l=e+n,c=t+r,u=this._tile.data,d=this._tile.width;for(let h=t;h<c;h++)for(let t=e;t<l;t++){const e=4*(t+h*d);u[e]=a,u[e+1]=o,u[e+2]=s,u[e+3]=255}}finishTile(){this._drawCtx.putImageData(this._tile,this._tileX,this._tileY),this._damage(this._tileX,this._tileY,this._tile.width,this._tile.height)}blitImage(e,t,n,r,i,a,o){if(0===this._renderQ.length||o)this._bgrxImageData(e,t,n,r,i,a);else{const a=new Uint8Array(n*r*4);a.set(new Uint8Array(i.buffer,0,a.length)),this._renderQPush({type:"blit",data:a,x:e,y:t,width:n,height:r})}}blitRgbImage(e,t,n,r,i,a,o){if(0===this._renderQ.length||o)this._rgbImageData(e,t,n,r,i,a);else{const a=new Uint8Array(n*r*3);a.set(new Uint8Array(i.buffer,0,a.length)),this._renderQPush({type:"blitRgb",data:a,x:e,y:t,width:n,height:r})}}blitRgbxImage(e,t,n,r,i,a,o){if(0===this._renderQ.length||o)this._rgbxImageData(e,t,n,r,i,a);else{const a=new Uint8Array(n*r*4);a.set(new Uint8Array(i.buffer,0,a.length)),this._renderQPush({type:"blitRgbx",data:a,x:e,y:t,width:n,height:r})}}drawImage(e,t,n){this._drawCtx.drawImage(e,t,n),this._damage(t,n,e.width,e.height)}autoscale(e,t){let n;if(0===e||0===t)n=0;else{const r=this._viewportLoc,i=e/t,a=r.w/r.h;n=a>=i?e/r.w:t/r.h}this._rescale(n)}_rescale(e){this._scale=e;const t=this._viewportLoc,n=e*t.w+"px",r=e*t.h+"px";this._target.style.width===n&&this._target.style.height===r||(this._target.style.width=n,this._target.style.height=r)}_setFillColor(e){const t="rgb("+e[2]+","+e[1]+","+e[0]+")";t!==this._prevDrawStyle&&(this._drawCtx.fillStyle=t,this._prevDrawStyle=t)}_rgbImageData(e,t,n,r,i,a){const o=this._drawCtx.createImageData(n,r),s=o.data;for(let l=0,c=a;l<n*r*4;l+=4,c+=3)s[l]=i[c],s[l+1]=i[c+1],s[l+2]=i[c+2],s[l+3]=255;this._drawCtx.putImageData(o,e,t),this._damage(e,t,o.width,o.height)}_bgrxImageData(e,t,n,r,i,a){const o=this._drawCtx.createImageData(n,r),s=o.data;for(let l=0,c=a;l<n*r*4;l+=4,c+=4)s[l]=i[c+2],s[l+1]=i[c+1],s[l+2]=i[c],s[l+3]=255;this._drawCtx.putImageData(o,e,t),this._damage(e,t,o.width,o.height)}_rgbxImageData(e,t,n,r,i,a){let o;Nn?o=new ImageData(new Uint8ClampedArray(i.buffer,i.byteOffset,n*r*4),n,r):(o=this._drawCtx.createImageData(n,r),o.data.set(new Uint8ClampedArray(i.buffer,i.byteOffset,n*r*4))),this._drawCtx.putImageData(o,e,t),this._damage(e,t,o.width,o.height)}_renderQPush(e){this._renderQ.push(e),1===this._renderQ.length&&this._scanRenderQ()}_resumeRenderQ(){this.removeEventListener("load",this._noVNCDisplay._resumeRenderQ),this._noVNCDisplay._scanRenderQ()}_scanRenderQ(){let e=!0;while(e&&this._renderQ.length>0){const t=this._renderQ[0];switch(t.type){case"flip":this.flip(!0);break;case"copy":this.copyImage(t.oldX,t.oldY,t.x,t.y,t.width,t.height,!0);break;case"fill":this.fillRect(t.x,t.y,t.width,t.height,t.color,!0);break;case"blit":this.blitImage(t.x,t.y,t.width,t.height,t.data,0,!0);break;case"blitRgb":this.blitRgbImage(t.x,t.y,t.width,t.height,t.data,0,!0);break;case"blitRgbx":this.blitRgbxImage(t.x,t.y,t.width,t.height,t.data,0,!0);break;case"img":if(t.img.complete&&0!==t.img.width&&0!==t.img.height){if(t.img.width!==t.width||t.img.height!==t.height)return void wn("Decoded image has incorrect dimensions. Got "+t.img.width+"x"+t.img.height+". Expected "+t.width+"x"+t.height+".");this.drawImage(t.img,t.x,t.y)}else t.img._noVNCDisplay=this,t.img.addEventListener("load",this._resumeRenderQ),e=!1;break}e&&this._renderQ.shift()}0===this._renderQ.length&&this._flushing&&(this._flushing=!1,this.onflush())}}function ur(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]}var dr=Uint8Array,hr=Uint16Array,pr=Int32Array;function fr(e,t,n,r){var i=65535&e,a=e>>>16&65535,o=0;while(0!==n){o=n>2e3?2e3:n,n-=o;do{i=i+t[r++]|0,a=a+i|0}while(--o);i%=65521,a%=65521}return i|a<<16}function mr(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}mr();var gr=30,vr=12;function br(e,t){var n,r,i,a,o,s,l,c,u,d,h,p,f,m,g,v,b,y,w,E,_,S,k,x,A;n=e.state,r=e.next_in,x=e.input,i=r+(e.avail_in-5),a=e.next_out,A=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,d=n.wnext,h=n.window,p=n.hold,f=n.bits,m=n.lencode,g=n.distcode,v=(1<<n.lenbits)-1,b=(1<<n.distbits)-1;e:do{f<15&&(p+=x[r++]<<f,f+=8,p+=x[r++]<<f,f+=8),y=m[p&v];t:for(;;){if(w=y>>>24,p>>>=w,f-=w,w=y>>>16&255,0===w)A[a++]=65535&y;else{if(!(16&w)){if(0===(64&w)){y=m[(65535&y)+(p&(1<<w)-1)];continue t}if(32&w){n.mode=vr;break e}e.msg="invalid literal/length code",n.mode=gr;break e}E=65535&y,w&=15,w&&(f<w&&(p+=x[r++]<<f,f+=8),E+=p&(1<<w)-1,p>>>=w,f-=w),f<15&&(p+=x[r++]<<f,f+=8,p+=x[r++]<<f,f+=8),y=g[p&b];n:for(;;){if(w=y>>>24,p>>>=w,f-=w,w=y>>>16&255,!(16&w)){if(0===(64&w)){y=g[(65535&y)+(p&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=gr;break e}if(_=65535&y,w&=15,f<w&&(p+=x[r++]<<f,f+=8,f<w&&(p+=x[r++]<<f,f+=8)),_+=p&(1<<w)-1,_>l){e.msg="invalid distance too far back",n.mode=gr;break e}if(p>>>=w,f-=w,w=a-o,_>w){if(w=_-w,w>u&&n.sane){e.msg="invalid distance too far back",n.mode=gr;break e}if(S=0,k=h,0===d){if(S+=c-w,w<E){E-=w;do{A[a++]=h[S++]}while(--w);S=a-_,k=A}}else if(d<w){if(S+=c+d-w,w-=d,w<E){E-=w;do{A[a++]=h[S++]}while(--w);if(S=0,d<E){w=d,E-=w;do{A[a++]=h[S++]}while(--w);S=a-_,k=A}}}else if(S+=d-w,w<E){E-=w;do{A[a++]=h[S++]}while(--w);S=a-_,k=A}while(E>2)A[a++]=k[S++],A[a++]=k[S++],A[a++]=k[S++],E-=3;E&&(A[a++]=k[S++],E>1&&(A[a++]=k[S++]))}else{S=a-_;do{A[a++]=A[S++],A[a++]=A[S++],A[a++]=A[S++],E-=3}while(E>2);E&&(A[a++]=A[S++],E>1&&(A[a++]=A[S++]))}break}}break}}while(r<i&&a<s);E=f>>3,r-=E,f-=E<<3,p&=(1<<f)-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=p,n.bits=f}var yr=15,wr=852,Er=592,_r=0,Sr=1,kr=2,xr=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Ar=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Nr=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Cr=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function Tr(e,t,n,r,i,a,o,s){var l,c,u,d,h,p,f,m,g,v=s.bits,b=0,y=0,w=0,E=0,_=0,S=0,k=0,x=0,A=0,N=0,C=null,T=0,R=new hr(yr+1),O=new hr(yr+1),I=null,L=0;for(b=0;b<=yr;b++)R[b]=0;for(y=0;y<r;y++)R[t[n+y]]++;for(_=v,E=yr;E>=1;E--)if(0!==R[E])break;if(_>E&&(_=E),0===E)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(w=1;w<E;w++)if(0!==R[w])break;for(_<w&&(_=w),x=1,b=1;b<=yr;b++)if(x<<=1,x-=R[b],x<0)return-1;if(x>0&&(e===_r||1!==E))return-1;for(O[1]=0,b=1;b<yr;b++)O[b+1]=O[b]+R[b];for(y=0;y<r;y++)0!==t[n+y]&&(o[O[t[n+y]]++]=y);if(e===_r?(C=I=o,p=19):e===Sr?(C=xr,T-=257,I=Ar,L-=257,p=256):(C=Nr,I=Cr,p=-1),N=0,y=0,b=w,h=a,S=_,k=0,u=-1,A=1<<_,d=A-1,e===Sr&&A>wr||e===kr&&A>Er)return 1;for(;;){f=b-k,o[y]<p?(m=0,g=o[y]):o[y]>p?(m=I[L+o[y]],g=C[T+o[y]]):(m=96,g=0),l=1<<b-k,c=1<<S,w=c;do{c-=l,i[h+(N>>k)+c]=f<<24|m<<16|g}while(0!==c);l=1<<b-1;while(N&l)l>>=1;if(0!==l?(N&=l-1,N+=l):N=0,y++,0===--R[b]){if(b===E)break;b=t[n+o[y]]}if(b>_&&(N&d)!==u){0===k&&(k=_),h+=w,S=b-k,x=1<<S;while(S+k<E){if(x-=R[S+k],x<=0)break;S++,x<<=1}if(A+=1<<S,e===Sr&&A>wr||e===kr&&A>Er)return 1;u=N&d,i[u]=_<<24|S<<16|h-a}}return 0!==N&&(i[h+N]=b-k<<24|64<<16),s.bits=_,0}var Rr=0,Or=1,Ir=2;const Lr=4,Dr=5,Pr=6,Mr=0,Br=1,Fr=2,$r=-2,Ur=-3,jr=-4,Vr=-5,Kr=8;var Hr=1,Gr=2,zr=3,qr=4,Xr=5,Wr=6,Yr=7,Qr=8,Jr=9,Zr=10,ei=11,ti=12,ni=13,ri=14,ii=15,ai=16,oi=17,si=18,li=19,ci=20,ui=21,di=22,hi=23,pi=24,fi=25,mi=26,gi=27,vi=28,bi=29,yi=30,wi=31,Ei=32,_i=852,Si=592,ki=15,xi=ki;function Ai(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function Ni(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new hr(320),this.work=new hr(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ci(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=Hr,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new pr(_i),t.distcode=t.distdyn=new pr(Si),t.sane=1,t.back=-1,Mr):$r}function Ti(e){var t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Ci(e)):$r}function Ri(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?$r:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Ti(e))):$r}function Oi(e,t){var n,r;return e?(r=new Ni,e.state=r,r.window=null,n=Ri(e,t),n!==Mr&&(e.state=null),n):$r}function Ii(e){return Oi(e,xi)}var Li,Di,Pi=!0;function Mi(e){if(Pi){var t;Li=new pr(512),Di=new pr(32),t=0;while(t<144)e.lens[t++]=8;while(t<256)e.lens[t++]=9;while(t<280)e.lens[t++]=7;while(t<288)e.lens[t++]=8;Tr(Or,e.lens,0,288,Li,0,e.work,{bits:9}),t=0;while(t<32)e.lens[t++]=5;Tr(Ir,e.lens,0,32,Di,0,e.work,{bits:5}),Pi=!1}e.lencode=Li,e.lenbits=9,e.distcode=Di,e.distbits=5}function Bi(e,t,n,r){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new dr(a.wsize)),r>=a.wsize?(ur(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),ur(a.window,t,n-r,i,a.wnext),r-=i,r?(ur(a.window,t,n-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}function Fi(e,t){var n,r,i,a,o,s,l,c,u,d,h,p,f,m,g,v,b,y,w,E,_,S,k,x,A=0,N=new dr(4),C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return $r;n=e.state,n.mode===ti&&(n.mode=ni),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,c=n.hold,u=n.bits,d=s,h=l,S=Mr;e:for(;;)switch(n.mode){case Hr:if(0===n.wrap){n.mode=ni;break}while(u<16){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}if(2&n.wrap&&35615===c){n.check=0,N[0]=255&c,N[1]=c>>>8&255,n.check=mr(n.check,N,2,0),c=0,u=0,n.mode=Gr;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=yi;break}if((15&c)!==Kr){e.msg="unknown compression method",n.mode=yi;break}if(c>>>=4,u-=4,_=8+(15&c),0===n.wbits)n.wbits=_;else if(_>n.wbits){e.msg="invalid window size",n.mode=yi;break}n.dmax=1<<_,e.adler=n.check=1,n.mode=512&c?Zr:ti,c=0,u=0;break;case Gr:while(u<16){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}if(n.flags=c,(255&n.flags)!==Kr){e.msg="unknown compression method",n.mode=yi;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=yi;break}n.head&&(n.head.text=c>>8&1),512&n.flags&&(N[0]=255&c,N[1]=c>>>8&255,n.check=mr(n.check,N,2,0)),c=0,u=0,n.mode=zr;case zr:while(u<32){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}n.head&&(n.head.time=c),512&n.flags&&(N[0]=255&c,N[1]=c>>>8&255,N[2]=c>>>16&255,N[3]=c>>>24&255,n.check=mr(n.check,N,4,0)),c=0,u=0,n.mode=qr;case qr:while(u<16){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&n.flags&&(N[0]=255&c,N[1]=c>>>8&255,n.check=mr(n.check,N,2,0)),c=0,u=0,n.mode=Xr;case Xr:if(1024&n.flags){while(u<16){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}n.length=c,n.head&&(n.head.extra_len=c),512&n.flags&&(N[0]=255&c,N[1]=c>>>8&255,n.check=mr(n.check,N,2,0)),c=0,u=0}else n.head&&(n.head.extra=null);n.mode=Wr;case Wr:if(1024&n.flags&&(p=n.length,p>s&&(p=s),p&&(n.head&&(_=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),ur(n.head.extra,r,a,p,_)),512&n.flags&&(n.check=mr(n.check,r,p,a)),s-=p,a+=p,n.length-=p),n.length))break e;n.length=0,n.mode=Yr;case Yr:if(2048&n.flags){if(0===s)break e;p=0;do{_=r[a+p++],n.head&&_&&n.length<65536&&(n.head.name+=String.fromCharCode(_))}while(_&&p<s);if(512&n.flags&&(n.check=mr(n.check,r,p,a)),s-=p,a+=p,_)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=Qr;case Qr:if(4096&n.flags){if(0===s)break e;p=0;do{_=r[a+p++],n.head&&_&&n.length<65536&&(n.head.comment+=String.fromCharCode(_))}while(_&&p<s);if(512&n.flags&&(n.check=mr(n.check,r,p,a)),s-=p,a+=p,_)break e}else n.head&&(n.head.comment=null);n.mode=Jr;case Jr:if(512&n.flags){while(u<16){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}if(c!==(65535&n.check)){e.msg="header crc mismatch",n.mode=yi;break}c=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=ti;break;case Zr:while(u<32){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}e.adler=n.check=Ai(c),c=0,u=0,n.mode=ei;case ei:if(0===n.havedict)return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=c,n.bits=u,Fr;e.adler=n.check=1,n.mode=ti;case ti:if(t===Dr||t===Pr)break e;case ni:if(n.last){c>>>=7&u,u-=7&u,n.mode=gi;break}while(u<3){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}switch(n.last=1&c,c>>>=1,u-=1,3&c){case 0:n.mode=ri;break;case 1:if(Mi(n),n.mode=ci,t===Pr){c>>>=2,u-=2;break e}break;case 2:n.mode=oi;break;case 3:e.msg="invalid block type",n.mode=yi}c>>>=2,u-=2;break;case ri:c>>>=7&u,u-=7&u;while(u<32){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}if((65535&c)!==(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=yi;break}if(n.length=65535&c,c=0,u=0,n.mode=ii,t===Pr)break e;case ii:n.mode=ai;case ai:if(p=n.length,p){if(p>s&&(p=s),p>l&&(p=l),0===p)break e;ur(i,r,a,p,o),s-=p,a+=p,l-=p,o+=p,n.length-=p;break}n.mode=ti;break;case oi:while(u<14){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}if(n.nlen=257+(31&c),c>>>=5,u-=5,n.ndist=1+(31&c),c>>>=5,u-=5,n.ncode=4+(15&c),c>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=yi;break}n.have=0,n.mode=si;case si:while(n.have<n.ncode){while(u<3){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}n.lens[C[n.have++]]=7&c,c>>>=3,u-=3}while(n.have<19)n.lens[C[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,k={bits:n.lenbits},S=Tr(Rr,n.lens,0,19,n.lencode,0,n.work,k),n.lenbits=k.bits,S){e.msg="invalid code lengths set",n.mode=yi;break}n.have=0,n.mode=li;case li:while(n.have<n.nlen+n.ndist){for(;;){if(A=n.lencode[c&(1<<n.lenbits)-1],g=A>>>24,v=A>>>16&255,b=65535&A,g<=u)break;if(0===s)break e;s--,c+=r[a++]<<u,u+=8}if(b<16)c>>>=g,u-=g,n.lens[n.have++]=b;else{if(16===b){x=g+2;while(u<x){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}if(c>>>=g,u-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=yi;break}_=n.lens[n.have-1],p=3+(3&c),c>>>=2,u-=2}else if(17===b){x=g+3;while(u<x){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}c>>>=g,u-=g,_=0,p=3+(7&c),c>>>=3,u-=3}else{x=g+7;while(u<x){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}c>>>=g,u-=g,_=0,p=11+(127&c),c>>>=7,u-=7}if(n.have+p>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=yi;break}while(p--)n.lens[n.have++]=_}}if(n.mode===yi)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=yi;break}if(n.lenbits=9,k={bits:n.lenbits},S=Tr(Or,n.lens,0,n.nlen,n.lencode,0,n.work,k),n.lenbits=k.bits,S){e.msg="invalid literal/lengths set",n.mode=yi;break}if(n.distbits=6,n.distcode=n.distdyn,k={bits:n.distbits},S=Tr(Ir,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,k),n.distbits=k.bits,S){e.msg="invalid distances set",n.mode=yi;break}if(n.mode=ci,t===Pr)break e;case ci:n.mode=ui;case ui:if(s>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=c,n.bits=u,br(e,h),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,c=n.hold,u=n.bits,n.mode===ti&&(n.back=-1);break}for(n.back=0;;){if(A=n.lencode[c&(1<<n.lenbits)-1],g=A>>>24,v=A>>>16&255,b=65535&A,g<=u)break;if(0===s)break e;s--,c+=r[a++]<<u,u+=8}if(v&&0===(240&v)){for(y=g,w=v,E=b;;){if(A=n.lencode[E+((c&(1<<y+w)-1)>>y)],g=A>>>24,v=A>>>16&255,b=65535&A,y+g<=u)break;if(0===s)break e;s--,c+=r[a++]<<u,u+=8}c>>>=y,u-=y,n.back+=y}if(c>>>=g,u-=g,n.back+=g,n.length=b,0===v){n.mode=mi;break}if(32&v){n.back=-1,n.mode=ti;break}if(64&v){e.msg="invalid literal/length code",n.mode=yi;break}n.extra=15&v,n.mode=di;case di:if(n.extra){x=n.extra;while(u<x){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=hi;case hi:for(;;){if(A=n.distcode[c&(1<<n.distbits)-1],g=A>>>24,v=A>>>16&255,b=65535&A,g<=u)break;if(0===s)break e;s--,c+=r[a++]<<u,u+=8}if(0===(240&v)){for(y=g,w=v,E=b;;){if(A=n.distcode[E+((c&(1<<y+w)-1)>>y)],g=A>>>24,v=A>>>16&255,b=65535&A,y+g<=u)break;if(0===s)break e;s--,c+=r[a++]<<u,u+=8}c>>>=y,u-=y,n.back+=y}if(c>>>=g,u-=g,n.back+=g,64&v){e.msg="invalid distance code",n.mode=yi;break}n.offset=b,n.extra=15&v,n.mode=pi;case pi:if(n.extra){x=n.extra;while(u<x){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=yi;break}n.mode=fi;case fi:if(0===l)break e;if(p=h-l,n.offset>p){if(p=n.offset-p,p>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=yi;break}p>n.wnext?(p-=n.wnext,f=n.wsize-p):f=n.wnext-p,p>n.length&&(p=n.length),m=n.window}else m=i,f=o-n.offset,p=n.length;p>l&&(p=l),l-=p,n.length-=p;do{i[o++]=m[f++]}while(--p);0===n.length&&(n.mode=ui);break;case mi:if(0===l)break e;i[o++]=n.length,l--,n.mode=ui;break;case gi:if(n.wrap){while(u<32){if(0===s)break e;s--,c|=r[a++]<<u,u+=8}if(h-=l,e.total_out+=h,n.total+=h,h&&(e.adler=n.check=n.flags?mr(n.check,i,h,o-h):fr(n.check,i,h,o-h)),h=l,(n.flags?c:Ai(c))!==n.check){e.msg="incorrect data check",n.mode=yi;break}c=0,u=0}n.mode=vi;case vi:if(n.wrap&&n.flags){while(u<32){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}if(c!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=yi;break}c=0,u=0}n.mode=bi;case bi:S=Br;break e;case yi:S=Ur;break e;case wi:return jr;case Ei:default:return $r}return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=c,n.bits=u,(n.wsize||h!==e.avail_out&&n.mode<yi&&(n.mode<gi||t!==Lr))&&Bi(e,e.output,e.next_out,h-e.avail_out)?(n.mode=wi,jr):(d-=e.avail_in,h-=e.avail_out,e.total_in+=d,e.total_out+=h,n.total+=h,n.wrap&&h&&(e.adler=n.check=n.flags?mr(n.check,i,h,e.next_out-h):fr(n.check,i,h,e.next_out-h)),e.data_type=n.bits+(n.last?64:0)+(n.mode===ti?128:0)+(n.mode===ci||n.mode===ii?256:0),(0===d&&0===h||t===Lr)&&S===Mr&&(S=Vr),S)}function $i(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}class Ui{constructor(){this.strm=new $i,this.chunkSize=102400,this.strm.output=new Uint8Array(this.chunkSize),this.windowBits=5,Ii(this.strm,this.windowBits)}setInput(e){e?(this.strm.input=e,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0):(this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0)}inflate(e){e>this.chunkSize&&(this.chunkSize=e,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=e;let t=Fi(this.strm,0);if(t<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=e)throw new Error("Incomplete zlib block");return new Uint8Array(this.strm.output.buffer,0,this.strm.next_out)}reset(){Ti(this.strm)}}var ji=4,Vi=0,Ki=1,Hi=2;function Gi(e){var t=e.length;while(--t>=0)e[t]=0}var zi=0,qi=1,Xi=2,Wi=3,Yi=258,Qi=29,Ji=256,Zi=Ji+1+Qi,ea=30,ta=19,na=2*Zi+1,ra=15,ia=16,aa=7,oa=256,sa=16,la=17,ca=18,ua=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],da=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ha=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],pa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],fa=512,ma=new Array(2*(Zi+2));Gi(ma);var ga=new Array(2*ea);Gi(ga);var va=new Array(fa);Gi(va);var ba=new Array(Yi-Wi+1);Gi(ba);var ya=new Array(Qi);Gi(ya);var wa,Ea,_a,Sa=new Array(ea);function ka(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function xa(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Aa(e){return e<256?va[e]:va[256+(e>>>7)]}function Na(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Ca(e,t,n){e.bi_valid>ia-n?(e.bi_buf|=t<<e.bi_valid&65535,Na(e,e.bi_buf),e.bi_buf=t>>ia-e.bi_valid,e.bi_valid+=n-ia):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function Ta(e,t,n){Ca(e,n[2*t],n[2*t+1])}function Ra(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function Oa(e){16===e.bi_valid?(Na(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}function Ia(e,t){var n,r,i,a,o,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,f=t.stat_desc.max_length,m=0;for(a=0;a<=ra;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<na;n++)r=e.heap[n],a=l[2*l[2*r+1]+1]+1,a>f&&(a=f,m++),l[2*r+1]=a,r>c||(e.bl_count[a]++,o=0,r>=p&&(o=h[r-p]),s=l[2*r],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(u[2*r+1]+o)));if(0!==m){do{a=f-1;while(0===e.bl_count[a])a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[f]--,m-=2}while(m>0);for(a=f;0!==a;a--){r=e.bl_count[a];while(0!==r)i=e.heap[--n],i>c||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}}}function La(e,t,n){var r,i,a=new Array(ra+1),o=0;for(r=1;r<=ra;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=Ra(a[s]++,s))}}function Da(){var e,t,n,r,i,a=new Array(ra+1);for(n=0,r=0;r<Qi-1;r++)for(ya[r]=n,e=0;e<1<<ua[r];e++)ba[n++]=r;for(ba[n-1]=r,i=0,r=0;r<16;r++)for(Sa[r]=i,e=0;e<1<<da[r];e++)va[i++]=r;for(i>>=7;r<ea;r++)for(Sa[r]=i<<7,e=0;e<1<<da[r]-7;e++)va[256+i++]=r;for(t=0;t<=ra;t++)a[t]=0;e=0;while(e<=143)ma[2*e+1]=8,e++,a[8]++;while(e<=255)ma[2*e+1]=9,e++,a[9]++;while(e<=279)ma[2*e+1]=7,e++,a[7]++;while(e<=287)ma[2*e+1]=8,e++,a[8]++;for(La(ma,Zi+1,a),e=0;e<ea;e++)ga[2*e+1]=5,ga[2*e]=Ra(e,5);wa=new ka(ma,ua,Ji+1,Zi,ra),Ea=new ka(ga,da,0,ea,ra),_a=new ka(new Array(0),ha,0,ta,aa)}function Pa(e){var t;for(t=0;t<Zi;t++)e.dyn_ltree[2*t]=0;for(t=0;t<ea;t++)e.dyn_dtree[2*t]=0;for(t=0;t<ta;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*oa]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Ma(e){e.bi_valid>8?Na(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Ba(e,t,n,r){Ma(e),r&&(Na(e,n),Na(e,~n)),ur(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}function Fa(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function $a(e,t,n){var r=e.heap[n],i=n<<1;while(i<=e.heap_len){if(i<e.heap_len&&Fa(t,e.heap[i+1],e.heap[i],e.depth)&&i++,Fa(t,r,e.heap[i],e.depth))break;e.heap[n]=e.heap[i],n=i,i<<=1}e.heap[n]=r}function Ua(e,t,n){var r,i,a,o,s=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?Ta(e,i,t):(a=ba[i],Ta(e,a+Ji+1,t),o=ua[a],0!==o&&(i-=ya[a],Ca(e,i,o)),r--,a=Aa(r),Ta(e,a,n),o=da[a],0!==o&&(r-=Sa[a],Ca(e,r,o)))}while(s<e.last_lit);Ta(e,oa,t)}function ja(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=na,n=0;n<l;n++)0!==a[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):a[2*n+1]=0;while(e.heap_len<2)i=e.heap[++e.heap_len]=c<2?++c:0,a[2*i]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)$a(e,a,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],$a(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,$a(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Ia(e,t),La(a,c,e.bl_count)}function Va(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<l&&i===o||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*sa]++):s<=10?e.bl_tree[2*la]++:e.bl_tree[2*ca]++,s=0,a=i,0===o?(l=138,c=3):i===o?(l=6,c=3):(l=7,c=4))}function Ka(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<l&&i===o)){if(s<c)do{Ta(e,i,e.bl_tree)}while(0!==--s);else 0!==i?(i!==a&&(Ta(e,i,e.bl_tree),s--),Ta(e,sa,e.bl_tree),Ca(e,s-3,2)):s<=10?(Ta(e,la,e.bl_tree),Ca(e,s-3,3)):(Ta(e,ca,e.bl_tree),Ca(e,s-11,7));s=0,a=i,0===o?(l=138,c=3):i===o?(l=6,c=3):(l=7,c=4)}}function Ha(e){var t;for(Va(e,e.dyn_ltree,e.l_desc.max_code),Va(e,e.dyn_dtree,e.d_desc.max_code),ja(e,e.bl_desc),t=ta-1;t>=3;t--)if(0!==e.bl_tree[2*pa[t]+1])break;return e.opt_len+=3*(t+1)+5+5+4,t}function Ga(e,t,n,r){var i;for(Ca(e,t-257,5),Ca(e,n-1,5),Ca(e,r-4,4),i=0;i<r;i++)Ca(e,e.bl_tree[2*pa[i]+1],3);Ka(e,e.dyn_ltree,t-1),Ka(e,e.dyn_dtree,n-1)}function za(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return Vi;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return Ki;for(t=32;t<Ji;t++)if(0!==e.dyn_ltree[2*t])return Ki;return Vi}Gi(Sa);var qa=!1;function Xa(e){qa||(Da(),qa=!0),e.l_desc=new xa(e.dyn_ltree,wa),e.d_desc=new xa(e.dyn_dtree,Ea),e.bl_desc=new xa(e.bl_tree,_a),e.bi_buf=0,e.bi_valid=0,Pa(e)}function Wa(e,t,n,r){Ca(e,(zi<<1)+(r?1:0),3),Ba(e,t,n,!0)}function Ya(e){Ca(e,qi<<1,3),Ta(e,oa,ma),Oa(e)}function Qa(e,t,n,r){var i,a,o=0;e.level>0?(e.strm.data_type===Hi&&(e.strm.data_type=za(e)),ja(e,e.l_desc),ja(e,e.d_desc),o=Ha(e),i=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?Wa(e,t,n,r):e.strategy===ji||a===i?(Ca(e,(qi<<1)+(r?1:0),3),Ua(e,ma,ga)):(Ca(e,(Xi<<1)+(r?1:0),3),Ga(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Ua(e,e.dyn_ltree,e.dyn_dtree)),Pa(e),r&&Ma(e)}function Ja(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(ba[n]+Ji+1)]++,e.dyn_dtree[2*Aa(t)]++),e.last_lit===e.lit_bufsize-1}var Za={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};const eo=0,to=1,no=3,ro=4,io=5,ao=0,oo=1,so=-2,lo=-5,co=-1,uo=1,ho=2,po=3,fo=4,mo=0,go=2,vo=8;var bo,yo=9,wo=15,Eo=8,_o=29,So=256,ko=So+1+_o,xo=30,Ao=19,No=2*ko+1,Co=15,To=3,Ro=258,Oo=Ro+To+1,Io=32,Lo=42,Do=69,Po=73,Mo=91,Bo=103,Fo=113,$o=666,Uo=1,jo=2,Vo=3,Ko=4,Ho=3;function Go(e,t){return e.msg=Za[t],t}function zo(e){return(e<<1)-(e>4?9:0)}function qo(e){var t=e.length;while(--t>=0)e[t]=0}function Xo(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(ur(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function Wo(e,t){Qa(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Xo(e.strm)}function Yo(e,t){e.pending_buf[e.pending++]=t}function Qo(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function Jo(e,t,n,r){var i=e.avail_in;return i>r&&(i=r),0===i?0:(e.avail_in-=i,ur(t,e.input,e.next_in,i,n),1===e.state.wrap?e.adler=fr(e.adler,t,i,n):2===e.state.wrap&&(e.adler=mr(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)}function Zo(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-Oo?e.strstart-(e.w_size-Oo):0,c=e.window,u=e.w_mask,d=e.prev,h=e.strstart+Ro,p=c[a+o-1],f=c[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(n=t,c[n+o]===f&&c[n+o-1]===p&&c[n]===c[a]&&c[++n]===c[a+1]){a+=2,n++;do{}while(c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&a<h);if(r=Ro-(h-a),a=h-Ro,r>o){if(e.match_start=t,o=r,r>=s)break;p=c[a+o-1],f=c[a+o]}}}while((t=d[t&u])>l&&0!==--i);return o<=e.lookahead?o:e.lookahead}function es(e){var t,n,r,i,a,o=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=o+(o-Oo)){ur(e.window,e.window,o,o,0),e.match_start-=o,e.strstart-=o,e.block_start-=o,n=e.hash_size,t=n;do{r=e.head[--t],e.head[t]=r>=o?r-o:0}while(--n);n=o,t=n;do{r=e.prev[--t],e.prev[t]=r>=o?r-o:0}while(--n);i+=o}if(0===e.strm.avail_in)break;if(n=Jo(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=n,e.lookahead+e.insert>=To){a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;while(e.insert)if(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+To-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,e.lookahead+e.insert<To)break}}while(e.lookahead<Oo&&0!==e.strm.avail_in)}function ts(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(es(e),0===e.lookahead&&t===eo)return Uo;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Wo(e,!1),0===e.strm.avail_out))return Uo;if(e.strstart-e.block_start>=e.w_size-Oo&&(Wo(e,!1),0===e.strm.avail_out))return Uo}return e.insert=0,t===ro?(Wo(e,!0),0===e.strm.avail_out?Vo:Ko):(e.strstart>e.block_start&&(Wo(e,!1),e.strm.avail_out),Uo)}function ns(e,t){for(var n,r;;){if(e.lookahead<Oo){if(es(e),e.lookahead<Oo&&t===eo)return Uo;if(0===e.lookahead)break}if(n=0,e.lookahead>=To&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+To-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-Oo&&(e.match_length=Zo(e,n)),e.match_length>=To)if(r=Ja(e,e.strstart-e.match_start,e.match_length-To),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=To){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+To-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=Ja(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Wo(e,!1),0===e.strm.avail_out))return Uo}return e.insert=e.strstart<To-1?e.strstart:To-1,t===ro?(Wo(e,!0),0===e.strm.avail_out?Vo:Ko):e.last_lit&&(Wo(e,!1),0===e.strm.avail_out)?Uo:jo}function rs(e,t){for(var n,r,i;;){if(e.lookahead<Oo){if(es(e),e.lookahead<Oo&&t===eo)return Uo;if(0===e.lookahead)break}if(n=0,e.lookahead>=To&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+To-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=To-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-Oo&&(e.match_length=Zo(e,n),e.match_length<=5&&(e.strategy===uo||e.match_length===To&&e.strstart-e.match_start>4096)&&(e.match_length=To-1)),e.prev_length>=To&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-To,r=Ja(e,e.strstart-1-e.prev_match,e.prev_length-To),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+To-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=To-1,e.strstart++,r&&(Wo(e,!1),0===e.strm.avail_out))return Uo}else if(e.match_available){if(r=Ja(e,0,e.window[e.strstart-1]),r&&Wo(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return Uo}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Ja(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<To-1?e.strstart:To-1,t===ro?(Wo(e,!0),0===e.strm.avail_out?Vo:Ko):e.last_lit&&(Wo(e,!1),0===e.strm.avail_out)?Uo:jo}function is(e,t){for(var n,r,i,a,o=e.window;;){if(e.lookahead<=Ro){if(es(e),e.lookahead<=Ro&&t===eo)return Uo;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=To&&e.strstart>0&&(i=e.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){a=e.strstart+Ro;do{}while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<a);e.match_length=Ro-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=To?(n=Ja(e,1,e.match_length-To),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Ja(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Wo(e,!1),0===e.strm.avail_out))return Uo}return e.insert=0,t===ro?(Wo(e,!0),0===e.strm.avail_out?Vo:Ko):e.last_lit&&(Wo(e,!1),0===e.strm.avail_out)?Uo:jo}function as(e,t){for(var n;;){if(0===e.lookahead&&(es(e),0===e.lookahead)){if(t===eo)return Uo;break}if(e.match_length=0,n=Ja(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Wo(e,!1),0===e.strm.avail_out))return Uo}return e.insert=0,t===ro?(Wo(e,!0),0===e.strm.avail_out?Vo:Ko):e.last_lit&&(Wo(e,!1),0===e.strm.avail_out)?Uo:jo}function os(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function ss(e){e.window_size=2*e.w_size,qo(e.head),e.max_lazy_match=bo[e.level].max_lazy,e.good_match=bo[e.level].good_length,e.nice_match=bo[e.level].nice_length,e.max_chain_length=bo[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=To-1,e.match_available=0,e.ins_h=0}function ls(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=vo,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new hr(2*No),this.dyn_dtree=new hr(2*(2*xo+1)),this.bl_tree=new hr(2*(2*Ao+1)),qo(this.dyn_ltree),qo(this.dyn_dtree),qo(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new hr(Co+1),this.heap=new hr(2*ko+1),qo(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new hr(2*ko+1),qo(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function cs(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=go,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?Lo:Fo,e.adler=2===t.wrap?0:1,t.last_flush=eo,Xa(t),ao):Go(e,so)}function us(e){var t=cs(e);return t===ao&&ss(e.state),t}function ds(e,t,n,r,i,a){if(!e)return so;var o=1;if(t===co&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>yo||n!==vo||r<8||r>15||t<0||t>9||a<0||a>fo)return Go(e,so);8===r&&(r=9);var s=new ls;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+To-1)/To),s.window=new dr(2*s.w_size),s.head=new hr(s.hash_size),s.prev=new hr(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new dr(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=n,us(e)}function hs(e,t){return ds(e,t,vo,wo,Eo,mo)}function ps(e,t){var n,r,i,a;if(!e||!e.state||t>io||t<0)return e?Go(e,so):so;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||r.status===$o&&t!==ro)return Go(e,0===e.avail_out?lo:so);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===Lo)if(2===r.wrap)e.adler=0,Yo(r,31),Yo(r,139),Yo(r,8),r.gzhead?(Yo(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Yo(r,255&r.gzhead.time),Yo(r,r.gzhead.time>>8&255),Yo(r,r.gzhead.time>>16&255),Yo(r,r.gzhead.time>>24&255),Yo(r,9===r.level?2:r.strategy>=ho||r.level<2?4:0),Yo(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Yo(r,255&r.gzhead.extra.length),Yo(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=mr(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=Do):(Yo(r,0),Yo(r,0),Yo(r,0),Yo(r,0),Yo(r,0),Yo(r,9===r.level?2:r.strategy>=ho||r.level<2?4:0),Yo(r,Ho),r.status=Fo);else{var o=vo+(r.w_bits-8<<4)<<8,s=-1;s=r.strategy>=ho||r.level<2?0:r.level<6?1:6===r.level?2:3,o|=s<<6,0!==r.strstart&&(o|=Io),o+=31-o%31,r.status=Fo,Qo(r,o),0!==r.strstart&&(Qo(r,e.adler>>>16),Qo(r,65535&e.adler)),e.adler=1}if(r.status===Do)if(r.gzhead.extra){i=r.pending;while(r.gzindex<(65535&r.gzhead.extra.length)){if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=mr(e.adler,r.pending_buf,r.pending-i,i)),Xo(e),i=r.pending,r.pending===r.pending_buf_size))break;Yo(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++}r.gzhead.hcrc&&r.pending>i&&(e.adler=mr(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=Po)}else r.status=Po;if(r.status===Po)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=mr(e.adler,r.pending_buf,r.pending-i,i)),Xo(e),i=r.pending,r.pending===r.pending_buf_size)){a=1;break}a=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Yo(r,a)}while(0!==a);r.gzhead.hcrc&&r.pending>i&&(e.adler=mr(e.adler,r.pending_buf,r.pending-i,i)),0===a&&(r.gzindex=0,r.status=Mo)}else r.status=Mo;if(r.status===Mo)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=mr(e.adler,r.pending_buf,r.pending-i,i)),Xo(e),i=r.pending,r.pending===r.pending_buf_size)){a=1;break}a=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Yo(r,a)}while(0!==a);r.gzhead.hcrc&&r.pending>i&&(e.adler=mr(e.adler,r.pending_buf,r.pending-i,i)),0===a&&(r.status=Bo)}else r.status=Bo;if(r.status===Bo&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Xo(e),r.pending+2<=r.pending_buf_size&&(Yo(r,255&e.adler),Yo(r,e.adler>>8&255),e.adler=0,r.status=Fo)):r.status=Fo),0!==r.pending){if(Xo(e),0===e.avail_out)return r.last_flush=-1,ao}else if(0===e.avail_in&&zo(t)<=zo(n)&&t!==ro)return Go(e,lo);if(r.status===$o&&0!==e.avail_in)return Go(e,lo);if(0!==e.avail_in||0!==r.lookahead||t!==eo&&r.status!==$o){var l=r.strategy===ho?as(r,t):r.strategy===po?is(r,t):bo[r.level].func(r,t);if(l!==Vo&&l!==Ko||(r.status=$o),l===Uo||l===Vo)return 0===e.avail_out&&(r.last_flush=-1),ao;if(l===jo&&(t===to?Ya(r):t!==io&&(Wa(r,0,0,!1),t===no&&(qo(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Xo(e),0===e.avail_out))return r.last_flush=-1,ao}return t!==ro?ao:r.wrap<=0?oo:(2===r.wrap?(Yo(r,255&e.adler),Yo(r,e.adler>>8&255),Yo(r,e.adler>>16&255),Yo(r,e.adler>>24&255),Yo(r,255&e.total_in),Yo(r,e.total_in>>8&255),Yo(r,e.total_in>>16&255),Yo(r,e.total_in>>24&255)):(Qo(r,e.adler>>>16),Qo(r,65535&e.adler)),Xo(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?ao:oo)}bo=[new os(0,0,0,0,ts),new os(4,4,8,4,ns),new os(4,5,16,8,ns),new os(4,6,32,32,ns),new os(4,4,16,16,rs),new os(8,16,32,32,rs),new os(8,16,128,128,rs),new os(8,32,128,256,rs),new os(32,128,258,1024,rs),new os(32,258,258,4096,rs)];class fs{constructor(){this.strm=new $i,this.chunkSize=102400,this.outputBuffer=new Uint8Array(this.chunkSize),this.windowBits=5,hs(this.strm,this.windowBits)}deflate(e){this.strm.input=e,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0,this.strm.output=this.outputBuffer,this.strm.avail_out=this.chunkSize,this.strm.next_out=0;let t=ps(this.strm,no),n=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);if(t<0)throw new Error("zlib deflate failed");if(this.strm.avail_in>0){let e=[n],r=n.length;do{if(this.strm.output=new Uint8Array(this.chunkSize),this.strm.next_out=0,this.strm.avail_out=this.chunkSize,t=ps(this.strm,no),t<0)throw new Error("zlib deflate failed");let n=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);r+=n.length,e.push(n)}while(this.strm.avail_in>0);let i=new Uint8Array(r),a=0;for(let t=0;t<e.length;t++)i.set(e[t],a),a+=e[t].length;n=i}return this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0,n}}class ms{constructor(e){this._target=e||null,this._keyDownList={},this._pendingKey=null,this._altGrArmed=!1,this._eventHandlers={keyup:this._handleKeyUp.bind(this),keydown:this._handleKeyDown.bind(this),keypress:this._handleKeyPress.bind(this),blur:this._allKeysUp.bind(this),checkalt:this._checkAlt.bind(this)},this.onkeyevent=()=>{}}_sendKeyEvent(e,t,n){if(n)this._keyDownList[t]=e;else{if(!(t in this._keyDownList))return;delete this._keyDownList[t]}vn("onkeyevent "+(n?"down":"up")+", keysym: "+e,", code: "+t),this.onkeyevent(e,t,n)}_getKeyCode(e){const t=Pn(e);if("Unidentified"!==t)return t;if(e.keyCode&&"keypress"!==e.type&&229!==e.keyCode)return"Platform"+e.keyCode;if(e.keyIdentifier){if("U+"!==e.keyIdentifier.substr(0,2))return e.keyIdentifier;const t=parseInt(e.keyIdentifier.substr(2),16),n=String.fromCharCode(t).toUpperCase();return"Platform"+n.charCodeAt()}return"Unidentified"}_handleKeyDown(e){const t=this._getKeyCode(e);let n=Bn(e);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),"AltRight"===t&&e.timeStamp-this._altGrCtrlTime<50?n=an.XK_ISO_Level3_Shift:this._sendKeyEvent(an.XK_Control_L,"ControlLeft",!0)),"Unidentified"===t)return n&&(this._sendKeyEvent(n,t,!0),this._sendKeyEvent(n,t,!1)),void Zn(e);if(Tn()||On())switch(n){case an.XK_Super_L:n=an.XK_Alt_L;break;case an.XK_Super_R:n=an.XK_Super_L;break;case an.XK_Alt_L:n=an.XK_Mode_switch;break;case an.XK_Alt_R:n=an.XK_ISO_Level3_Shift;break}return t in this._keyDownList&&(n=this._keyDownList[t]),(Tn()||On())&&"CapsLock"===t?(this._sendKeyEvent(an.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(an.XK_Caps_Lock,"CapsLock",!1),void Zn(e)):n||e.key&&!In()&&!Ln()?(this._pendingKey=null,Zn(e),"ControlLeft"===t&&Rn()&&!("ControlLeft"in this._keyDownList)?(this._altGrArmed=!0,this._altGrTimeout=setTimeout(this._handleAltGrTimeout.bind(this),100),void(this._altGrCtrlTime=e.timeStamp)):void this._sendKeyEvent(n,t,!0)):(this._pendingKey=t,void setTimeout(this._handleKeyPressTimeout.bind(this),10,e))}_handleKeyPress(e){if(Zn(e),null===this._pendingKey)return;let t=this._getKeyCode(e);const n=Bn(e);"Unidentified"!==t&&t!=this._pendingKey||(t=this._pendingKey,this._pendingKey=null,n?this._sendKeyEvent(n,t,!0):bn("keypress with no keysym:",e))}_handleKeyPressTimeout(e){if(null===this._pendingKey)return;let t;const n=this._pendingKey;if(this._pendingKey=null,e.keyCode>=48&&e.keyCode<=57)t=e.keyCode;else if(e.keyCode>=65&&e.keyCode<=90){let n=String.fromCharCode(e.keyCode);n=e.shiftKey?n.toUpperCase():n.toLowerCase(),t=n.charCodeAt()}else t=0;this._sendKeyEvent(t,n,!0)}_handleKeyUp(e){Zn(e);const t=this._getKeyCode(e);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(an.XK_Control_L,"ControlLeft",!0)),(Tn()||On())&&"CapsLock"===t)return this._sendKeyEvent(an.XK_Caps_Lock,"CapsLock",!0),void this._sendKeyEvent(an.XK_Caps_Lock,"CapsLock",!1);this._sendKeyEvent(this._keyDownList[t],t,!1),!Rn()||"ShiftLeft"!==t&&"ShiftRight"!==t||("ShiftRight"in this._keyDownList&&this._sendKeyEvent(this._keyDownList["ShiftRight"],"ShiftRight",!1),"ShiftLeft"in this._keyDownList&&this._sendKeyEvent(this._keyDownList["ShiftLeft"],"ShiftLeft",!1))}_handleAltGrTimeout(){this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(an.XK_Control_L,"ControlLeft",!0)}_allKeysUp(){vn(">> Keyboard.allKeysUp");for(let e in this._keyDownList)this._sendKeyEvent(this._keyDownList[e],e,!1);vn("<< Keyboard.allKeysUp")}_checkAlt(e){if(e.skipCheckAlt)return;if(e.altKey)return;const t=this._target,n=this._keyDownList;["AltLeft","AltRight"].forEach((e=>{if(!(e in n))return;const r=new KeyboardEvent("keyup",{key:n[e],code:e});r.skipCheckAlt=!0,t.dispatchEvent(r)}))}grab(){if(this._target.addEventListener("keydown",this._eventHandlers.keydown),this._target.addEventListener("keyup",this._eventHandlers.keyup),this._target.addEventListener("keypress",this._eventHandlers.keypress),window.addEventListener("blur",this._eventHandlers.blur),Rn()&&Dn()){const e=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach((t=>document.addEventListener(t,e,{capture:!0,passive:!0})))}}ungrab(){if(Rn()&&Dn()){const e=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach((t=>document.removeEventListener(t,e)))}this._target.removeEventListener("keydown",this._eventHandlers.keydown),this._target.removeEventListener("keyup",this._eventHandlers.keyup),this._target.removeEventListener("keypress",this._eventHandlers.keypress),window.removeEventListener("blur",this._eventHandlers.blur),this._allKeysUp()}}const gs=0,vs=1,bs=2,ys=4,ws=8,Es=16,_s=32,Ss=64,ks=127,xs=50,As=90,Ns=250,Cs=1e3,Ts=1e3,Rs=50;class Os{constructor(){this._target=null,this._state=ks,this._tracked=[],this._ignored=[],this._waitingRelease=!1,this._releaseStart=0,this._longpressTimeoutId=null,this._twoTouchTimeoutId=null,this._boundEventHandler=this._eventHandler.bind(this)}attach(e){this.detach(),this._target=e,this._target.addEventListener("touchstart",this._boundEventHandler),this._target.addEventListener("touchmove",this._boundEventHandler),this._target.addEventListener("touchend",this._boundEventHandler),this._target.addEventListener("touchcancel",this._boundEventHandler)}detach(){this._target&&(this._stopLongpressTimeout(),this._stopTwoTouchTimeout(),this._target.removeEventListener("touchstart",this._boundEventHandler),this._target.removeEventListener("touchmove",this._boundEventHandler),this._target.removeEventListener("touchend",this._boundEventHandler),this._target.removeEventListener("touchcancel",this._boundEventHandler),this._target=null)}_eventHandler(e){let t;switch(e.stopPropagation(),e.preventDefault(),e.type){case"touchstart":t=this._touchStart;break;case"touchmove":t=this._touchMove;break;case"touchend":case"touchcancel":t=this._touchEnd;break}for(let n=0;n<e.changedTouches.length;n++){let r=e.changedTouches[n];t.call(this,r.identifier,r.clientX,r.clientY)}}_touchStart(e,t,n){if(this._hasDetectedGesture()||this._state===gs)this._ignored.push(e);else{if(this._tracked.length>0&&Date.now()-this._tracked[0].started>Ns)return this._state=gs,void this._ignored.push(e);if(this._waitingRelease)return this._state=gs,void this._ignored.push(e);switch(this._tracked.push({id:e,started:Date.now(),active:!0,firstX:t,firstY:n,lastX:t,lastY:n,angle:0}),this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=~(vs|ws|Es),this._stopLongpressTimeout();break;case 3:this._state&=~(bs|_s|Ss);break;default:this._state=gs}}}_touchMove(e,t,n){let r=this._tracked.find((t=>t.id===e));if(void 0===r)return;r.lastX=t,r.lastY=n;let i=t-r.firstX,a=n-r.firstY;if(r.firstX===r.lastX&&r.firstY===r.lastY||(r.angle=180*Math.atan2(a,i)/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(i,a)<xs)return;if(this._state&=~(vs|bs|ys|Es),this._stopLongpressTimeout(),1!==this._tracked.length&&(this._state&=~ws),2!==this._tracked.length&&(this._state&=~(_s|Ss)),2===this._tracked.length){let t=this._tracked.find((t=>t.id!==e)),n=Math.hypot(t.firstX-t.lastX,t.firstY-t.lastY);if(n>xs){let e=Math.abs(r.angle-t.angle);e=Math.abs((e+180)%360-180),this._state&=e>As?~_s:~Ss,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}_touchEnd(e,t,n){if(-1!==this._ignored.indexOf(e))return this._ignored.splice(this._ignored.indexOf(e),1),void(0===this._ignored.length&&0===this._tracked.length&&(this._state=ks,this._waitingRelease=!1));if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=gs),!this._hasDetectedGesture()&&(this._state&=~(ws|_s|Ss),this._state&=~Es,this._stopLongpressTimeout(),!this._waitingRelease))switch(this._releaseStart=Date.now(),this._waitingRelease=!0,this._tracked.length){case 1:this._state&=~(bs|ys);break;case 2:this._state&=~(vs|ys);break}if(this._waitingRelease){Date.now()-this._releaseStart>Ns&&(this._state=gs),this._tracked.some((e=>Date.now()-e.started>Cs))&&(this._state=gs);let t=this._tracked.find((t=>t.id===e));if(t.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==gs)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(let r=0;r<this._tracked.length;r++)this._tracked[r].active&&this._ignored.push(this._tracked[r].id);this._tracked=[],this._state=gs,-1!==this._ignored.indexOf(e)&&this._ignored.splice(this._ignored.indexOf(e),1),0===this._ignored.length&&(this._state=ks,this._waitingRelease=!1)}_hasDetectedGesture(){return this._state!==gs&&(!(this._state&this._state-1)&&!(this._state&(vs|bs|ys)&&this._tracked.some((e=>e.active))))}_startLongpressTimeout(){this._stopLongpressTimeout(),this._longpressTimeoutId=setTimeout((()=>this._longpressTimeout()),Ts)}_stopLongpressTimeout(){clearTimeout(this._longpressTimeoutId),this._longpressTimeoutId=null}_longpressTimeout(){if(this._hasDetectedGesture())throw new Error("A longpress gesture failed, conflict with a different gesture");this._state=Es,this._pushEvent("gesturestart")}_startTwoTouchTimeout(){this._stopTwoTouchTimeout(),this._twoTouchTimeoutId=setTimeout((()=>this._twoTouchTimeout()),Rs)}_stopTwoTouchTimeout(){clearTimeout(this._twoTouchTimeoutId),this._twoTouchTimeoutId=null}_isTwoTouchTimeoutRunning(){return null!==this._twoTouchTimeoutId}_twoTouchTimeout(){if(0===this._tracked.length)throw new Error("A pinch or two drag gesture failed, no tracked touches");let e=this._getAverageMovement(),t=Math.abs(e.x),n=Math.abs(e.y),r=this._getAverageDistance(),i=Math.abs(Math.hypot(r.first.x,r.first.y)-Math.hypot(r.last.x,r.last.y));this._state=n<i&&t<i?Ss:_s,this._pushEvent("gesturestart"),this._pushEvent("gesturemove")}_pushEvent(e){let t={type:this._stateToGesture(this._state)},n=this._getPosition(),r=n.last;switch("gesturestart"===e&&(r=n.first),this._state){case _s:case Ss:r=n.first;break}if(t["clientX"]=r.x,t["clientY"]=r.y,this._state===Ss){let n=this._getAverageDistance();"gesturestart"===e?(t["magnitudeX"]=n.first.x,t["magnitudeY"]=n.first.y):(t["magnitudeX"]=n.last.x,t["magnitudeY"]=n.last.y)}else if(this._state===_s)if("gesturestart"===e)t["magnitudeX"]=0,t["magnitudeY"]=0;else{let e=this._getAverageMovement();t["magnitudeX"]=e.x,t["magnitudeY"]=e.y}let i=new CustomEvent(e,{detail:t});this._target.dispatchEvent(i)}_stateToGesture(e){switch(e){case vs:return"onetap";case bs:return"twotap";case ys:return"threetap";case ws:return"drag";case Es:return"longpress";case _s:return"twodrag";case Ss:return"pinch"}throw new Error("Unknown gesture state: "+e)}_getPosition(){if(0===this._tracked.length)throw new Error("Failed to get gesture position, no tracked touches");let e=this._tracked.length,t=0,n=0,r=0,i=0;for(let a=0;a<this._tracked.length;a++)t+=this._tracked[a].firstX,n+=this._tracked[a].firstY,r+=this._tracked[a].lastX,i+=this._tracked[a].lastY;return{first:{x:t/e,y:n/e},last:{x:r/e,y:i/e}}}_getAverageMovement(){if(0===this._tracked.length)throw new Error("Failed to get gesture movement, no tracked touches");let e,t;e=t=0;let n=this._tracked.length;for(let r=0;r<this._tracked.length;r++)e+=this._tracked[r].lastX-this._tracked[r].firstX,t+=this._tracked[r].lastY-this._tracked[r].firstY;return{x:e/n,y:t/n}}_getAverageDistance(){if(0===this._tracked.length)throw new Error("Failed to get gesture distance, no tracked touches");let e=this._tracked[0],t=this._tracked[this._tracked.length-1],n=Math.abs(t.firstX-e.firstX),r=Math.abs(t.firstY-e.firstY),i=Math.abs(t.lastX-e.lastX),a=Math.abs(t.lastY-e.lastY);return{first:{x:n,y:r},last:{x:i,y:a}}}}const Is=!xn||_n;class Ls{constructor(){this._target=null,this._canvas=document.createElement("canvas"),Is&&(this._canvas.style.position="fixed",this._canvas.style.zIndex="65535",this._canvas.style.pointerEvents="none",this._canvas.style.visibility="hidden"),this._position={x:0,y:0},this._hotSpot={x:0,y:0},this._eventHandlers={mouseover:this._handleMouseOver.bind(this),mouseleave:this._handleMouseLeave.bind(this),mousemove:this._handleMouseMove.bind(this),mouseup:this._handleMouseUp.bind(this)}}attach(e){if(this._target&&this.detach(),this._target=e,Is){document.body.appendChild(this._canvas);const e={capture:!0,passive:!0};this._target.addEventListener("mouseover",this._eventHandlers.mouseover,e),this._target.addEventListener("mouseleave",this._eventHandlers.mouseleave,e),this._target.addEventListener("mousemove",this._eventHandlers.mousemove,e),this._target.addEventListener("mouseup",this._eventHandlers.mouseup,e)}this.clear()}detach(){if(this._target){if(Is){const e={capture:!0,passive:!0};this._target.removeEventListener("mouseover",this._eventHandlers.mouseover,e),this._target.removeEventListener("mouseleave",this._eventHandlers.mouseleave,e),this._target.removeEventListener("mousemove",this._eventHandlers.mousemove,e),this._target.removeEventListener("mouseup",this._eventHandlers.mouseup,e),document.body.removeChild(this._canvas)}this._target=null}}change(e,t,n,r,i){if(0===r||0===i)return void this.clear();this._position.x=this._position.x+this._hotSpot.x-t,this._position.y=this._position.y+this._hotSpot.y-n,this._hotSpot.x=t,this._hotSpot.y=n;let a,o=this._canvas.getContext("2d");this._canvas.width=r,this._canvas.height=i;try{a=new ImageData(new Uint8ClampedArray(e),r,i)}catch(ex){a=o.createImageData(r,i),a.data.set(new Uint8ClampedArray(e))}if(o.clearRect(0,0,r,i),o.putImageData(a,0,0),Is)this._updatePosition();else{let e=this._canvas.toDataURL();this._target.style.cursor="url("+e+")"+t+" "+n+", default"}}clear(){this._target.style.cursor="none",this._canvas.width=0,this._canvas.height=0,this._position.x=this._position.x+this._hotSpot.x,this._position.y=this._position.y+this._hotSpot.y,this._hotSpot.x=0,this._hotSpot.y=0}move(e,t){if(!Is)return;window.visualViewport?(this._position.x=e+window.visualViewport.offsetLeft,this._position.y=t+window.visualViewport.offsetTop):(this._position.x=e,this._position.y=t),this._updatePosition();let n=document.elementFromPoint(e,t);this._updateVisibility(n)}_handleMouseOver(e){this._handleMouseMove(e)}_handleMouseLeave(e){this._updateVisibility(e.relatedTarget)}_handleMouseMove(e){this._updateVisibility(e.target),this._position.x=e.clientX-this._hotSpot.x,this._position.y=e.clientY-this._hotSpot.y,this._updatePosition()}_handleMouseUp(e){let t=document.elementFromPoint(e.clientX,e.clientY);this._updateVisibility(t),this._captureIsActive()&&window.setTimeout((()=>{this._target&&(t=document.elementFromPoint(e.clientX,e.clientY),this._updateVisibility(t))}),0)}_showCursor(){"hidden"===this._canvas.style.visibility&&(this._canvas.style.visibility="")}_hideCursor(){"hidden"!==this._canvas.style.visibility&&(this._canvas.style.visibility="hidden")}_shouldShowCursor(e){return!!e&&(e===this._target||!!this._target.contains(e)&&"none"===window.getComputedStyle(e).cursor)}_updateVisibility(e){this._captureIsActive()&&(e=document.captureElement),this._shouldShowCursor(e)?this._showCursor():this._hideCursor()}_updatePosition(){this._canvas.style.left=this._position.x+"px",this._canvas.style.top=this._position.y+"px"}_captureIsActive(){return document.captureElement&&document.documentElement.contains(document.captureElement)}}const Ds=!1,Ps=41943040;class Ms{constructor(){this._websocket=null,this._rQi=0,this._rQlen=0,this._rQbufferSize=4194304,this._rQ=null,this._sQbufferSize=10240,this._sQlen=0,this._sQ=null,this._eventHandlers={message:()=>{},open:()=>{},close:()=>{},error:()=>{}}}get sQ(){return this._sQ}get rQ(){return this._rQ}get rQi(){return this._rQi}set rQi(e){this._rQi=e}get rQlen(){return this._rQlen-this._rQi}rQpeek8(){return this._rQ[this._rQi]}rQskipBytes(e){this._rQi+=e}rQshift8(){return this._rQshift(1)}rQshift16(){return this._rQshift(2)}rQshift32(){return this._rQshift(4)}_rQshift(e){let t=0;for(let n=e-1;n>=0;n--)t+=this._rQ[this._rQi++]<<8*n;return t}rQshiftStr(e){"undefined"===typeof e&&(e=this.rQlen);let t="";for(let n=0;n<e;n+=4096){let r=this.rQshiftBytes(Math.min(4096,e-n));t+=String.fromCharCode.apply(null,r)}return t}rQshiftBytes(e){return"undefined"===typeof e&&(e=this.rQlen),this._rQi+=e,new Uint8Array(this._rQ.buffer,this._rQi-e,e)}rQshiftTo(e,t){void 0===t&&(t=this.rQlen),e.set(new Uint8Array(this._rQ.buffer,this._rQi,t)),this._rQi+=t}rQslice(e,t=this.rQlen){return new Uint8Array(this._rQ.buffer,this._rQi+e,t-e)}rQwait(e,t,n){if(this.rQlen<t){if(n){if(this._rQi<n)throw new Error("rQwait cannot backup "+n+" bytes");this._rQi-=n}return!0}return!1}flush(){this._sQlen>0&&this._websocket.readyState===WebSocket.OPEN&&(this._websocket.send(this._encodeMessage()),this._sQlen=0)}send(e){this._sQ.set(e,this._sQlen),this._sQlen+=e.length,this.flush()}sendString(e){this.send(e.split("").map((e=>e.charCodeAt(0))))}off(e){this._eventHandlers[e]=()=>{}}on(e,t){this._eventHandlers[e]=t}_allocateBuffers(){this._rQ=new Uint8Array(this._rQbufferSize),this._sQ=new Uint8Array(this._sQbufferSize)}init(){this._allocateBuffers(),this._rQi=0,this._websocket=null}open(e,t){this.init(),this._websocket=new WebSocket(e,t),this._websocket.binaryType="arraybuffer",this._websocket.onmessage=this._recvMessage.bind(this),this._websocket.onopen=()=>{vn(">> WebSock.onopen"),this._websocket.protocol&&bn("Server choose sub-protocol: "+this._websocket.protocol),this._eventHandlers.open(),vn("<< WebSock.onopen")},this._websocket.onclose=e=>{vn(">> WebSock.onclose"),this._eventHandlers.close(e),vn("<< WebSock.onclose")},this._websocket.onerror=e=>{vn(">> WebSock.onerror: "+e),this._eventHandlers.error(e),vn("<< WebSock.onerror: "+e)}}close(){this._websocket&&(this._websocket.readyState!==WebSocket.OPEN&&this._websocket.readyState!==WebSocket.CONNECTING||(bn("Closing WebSocket connection"),this._websocket.close()),this._websocket.onmessage=()=>{})}_encodeMessage(){return new Uint8Array(this._sQ.buffer,0,this._sQlen)}_expandCompactRQ(e){const t=8*(this._rQlen-this._rQi+e),n=this._rQbufferSize<t;if(n&&(this._rQbufferSize=Math.max(2*this._rQbufferSize,t)),this._rQbufferSize>Ps&&(this._rQbufferSize=Ps,this._rQbufferSize-this.rQlen<e))throw new Error("Receive Queue buffer exceeded "+Ps+" bytes, and the new message could not fit");if(n){const e=this._rQ.buffer;this._rQ=new Uint8Array(this._rQbufferSize),this._rQ.set(new Uint8Array(e,this._rQi,this._rQlen-this._rQi))}else Ds?this._rQ.copyWithin(0,this._rQi,this._rQlen):this._rQ.set(new Uint8Array(this._rQ.buffer,this._rQi,this._rQlen-this._rQi));this._rQlen=this._rQlen-this._rQi,this._rQi=0}_DecodeMessage(e){const t=new Uint8Array(e);t.length>this._rQbufferSize-this._rQlen&&this._expandCompactRQ(t.length),this._rQ.set(t,this._rQlen),this._rQlen+=t.length}_recvMessage(e){this._DecodeMessage(e.data),this.rQlen>0?(this._eventHandlers.message(),this._rQlen==this._rQi&&(this._rQlen=0,this._rQi=0)):vn("Ignoring empty message")}}const Bs=[13,16,10,23,0,4,2,27,14,5,20,9,22,18,11,3,25,7,15,6,26,19,12,1,40,51,30,36,46,54,29,39,50,44,32,47,43,48,38,55,33,52,45,41,49,35,28,31],Fs=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],$s=0;let Us,js,Vs,Ks,Hs,Gs;Us=65536,js=1<<24,Vs=Us|js,Ks=4,Hs=1024,Gs=Ks|Hs;const zs=[Vs|Hs,0|$s,Us|$s,Vs|Gs,Vs|Ks,Us|Gs,$s|Ks,Us|$s,$s|Hs,Vs|Hs,Vs|Gs,$s|Hs,js|Gs,Vs|Ks,js|$s,$s|Ks,$s|Gs,js|Hs,js|Hs,Us|Hs,Us|Hs,Vs|$s,Vs|$s,js|Gs,Us|Ks,js|Ks,js|Ks,Us|Ks,0|$s,$s|Gs,Us|Gs,js|$s,Us|$s,Vs|Gs,$s|Ks,Vs|$s,Vs|Hs,js|$s,js|$s,$s|Hs,Vs|Ks,Us|$s,Us|Hs,js|Ks,$s|Hs,$s|Ks,js|Gs,Us|Gs,Vs|Gs,Us|Ks,Vs|$s,js|Gs,js|Ks,$s|Gs,Us|Gs,Vs|Hs,$s|Gs,js|Hs,js|Hs,0|$s,Us|Ks,Us|Hs,0|$s,Vs|Ks];Us=1<<20,js=1<<31,Vs=Us|js,Ks=32,Hs=32768,Gs=Ks|Hs;const qs=[Vs|Gs,js|Hs,$s|Hs,Us|Gs,Us|$s,$s|Ks,Vs|Ks,js|Gs,js|Ks,Vs|Gs,Vs|Hs,js|$s,js|Hs,Us|$s,$s|Ks,Vs|Ks,Us|Hs,Us|Ks,js|Gs,0|$s,js|$s,$s|Hs,Us|Gs,Vs|$s,Us|Ks,js|Ks,0|$s,Us|Hs,$s|Gs,Vs|Hs,Vs|$s,$s|Gs,0|$s,Us|Gs,Vs|Ks,Us|$s,js|Gs,Vs|$s,Vs|Hs,$s|Hs,Vs|$s,js|Hs,$s|Ks,Vs|Gs,Us|Gs,$s|Ks,$s|Hs,js|$s,$s|Gs,Vs|Hs,Us|$s,js|Ks,Us|Ks,js|Gs,js|Ks,Us|Ks,Us|Hs,0|$s,js|Hs,$s|Gs,js|$s,Vs|Ks,Vs|Gs,Us|Hs];Us=1<<17,js=1<<27,Vs=Us|js,Ks=8,Hs=512,Gs=Ks|Hs;const Xs=[$s|Gs,Vs|Hs,0|$s,Vs|Ks,js|Hs,0|$s,Us|Gs,js|Hs,Us|Ks,js|Ks,js|Ks,Us|$s,Vs|Gs,Us|Ks,Vs|$s,$s|Gs,js|$s,$s|Ks,Vs|Hs,$s|Hs,Us|Hs,Vs|$s,Vs|Ks,Us|Gs,js|Gs,Us|Hs,Us|$s,js|Gs,$s|Ks,Vs|Gs,$s|Hs,js|$s,Vs|Hs,js|$s,Us|Ks,$s|Gs,Us|$s,Vs|Hs,js|Hs,0|$s,$s|Hs,Us|Ks,Vs|Gs,js|Hs,js|Ks,$s|Hs,0|$s,Vs|Ks,js|Gs,Us|$s,js|$s,Vs|Gs,$s|Ks,Us|Gs,Us|Hs,js|Ks,Vs|$s,js|Gs,$s|Gs,Vs|$s,Us|Gs,$s|Ks,Vs|Ks,Us|Hs];Us=8192,js=1<<23,Vs=Us|js,Ks=1,Hs=128,Gs=Ks|Hs;const Ws=[Vs|Ks,Us|Gs,Us|Gs,$s|Hs,Vs|Hs,js|Gs,js|Ks,Us|Ks,0|$s,Vs|$s,Vs|$s,Vs|Gs,$s|Gs,0|$s,js|Hs,js|Ks,$s|Ks,Us|$s,js|$s,Vs|Ks,$s|Hs,js|$s,Us|Ks,Us|Hs,js|Gs,$s|Ks,Us|Hs,js|Hs,Us|$s,Vs|Hs,Vs|Gs,$s|Gs,js|Hs,js|Ks,Vs|$s,Vs|Gs,$s|Gs,0|$s,0|$s,Vs|$s,Us|Hs,js|Hs,js|Gs,$s|Ks,Vs|Ks,Us|Gs,Us|Gs,$s|Hs,Vs|Gs,$s|Gs,$s|Ks,Us|$s,js|Ks,Us|Ks,Vs|Hs,js|Gs,Us|Ks,Us|Hs,js|$s,Vs|Ks,$s|Hs,js|$s,Us|$s,Vs|Hs];Us=1<<25,js=1<<30,Vs=Us|js,Ks=256,Hs=1<<19,Gs=Ks|Hs;const Ys=[$s|Ks,Us|Gs,Us|Hs,Vs|Ks,$s|Hs,$s|Ks,js|$s,Us|Hs,js|Gs,$s|Hs,Us|Ks,js|Gs,Vs|Ks,Vs|Hs,$s|Gs,js|$s,Us|$s,js|Hs,js|Hs,0|$s,js|Ks,Vs|Gs,Vs|Gs,Us|Ks,Vs|Hs,js|Ks,0|$s,Vs|$s,Us|Gs,Us|$s,Vs|$s,$s|Gs,$s|Hs,Vs|Ks,$s|Ks,Us|$s,js|$s,Us|Hs,Vs|Ks,js|Gs,Us|Ks,js|$s,Vs|Hs,Us|Gs,js|Gs,$s|Ks,Us|$s,Vs|Hs,Vs|Gs,$s|Gs,Vs|$s,Vs|Gs,Us|Hs,0|$s,js|Hs,Vs|$s,$s|Gs,Us|Ks,js|Ks,$s|Hs,0|$s,js|Hs,Us|Gs,js|Ks];Us=1<<22,js=1<<29,Vs=Us|js,Ks=16,Hs=16384,Gs=Ks|Hs;const Qs=[js|Ks,Vs|$s,$s|Hs,Vs|Gs,Vs|$s,$s|Ks,Vs|Gs,Us|$s,js|Hs,Us|Gs,Us|$s,js|Ks,Us|Ks,js|Hs,js|$s,$s|Gs,0|$s,Us|Ks,js|Gs,$s|Hs,Us|Hs,js|Gs,$s|Ks,Vs|Ks,Vs|Ks,0|$s,Us|Gs,Vs|Hs,$s|Gs,Us|Hs,Vs|Hs,js|$s,js|Hs,$s|Ks,Vs|Ks,Us|Hs,Vs|Gs,Us|$s,$s|Gs,js|Ks,Us|$s,js|Hs,js|$s,$s|Gs,js|Ks,Vs|Gs,Us|Hs,Vs|$s,Us|Gs,Vs|Hs,0|$s,Vs|Ks,$s|Ks,$s|Hs,Vs|$s,Us|Gs,$s|Hs,Us|Ks,js|Gs,0|$s,Vs|Hs,js|$s,Us|Ks,js|Gs];Us=1<<21,js=1<<26,Vs=Us|js,Ks=2,Hs=2048,Gs=Ks|Hs;const Js=[Us|$s,Vs|Ks,js|Gs,0|$s,$s|Hs,js|Gs,Us|Gs,Vs|Hs,Vs|Gs,Us|$s,0|$s,js|Ks,$s|Ks,js|$s,Vs|Ks,$s|Gs,js|Hs,Us|Gs,Us|Ks,js|Hs,js|Ks,Vs|$s,Vs|Hs,Us|Ks,Vs|$s,$s|Hs,$s|Gs,Vs|Gs,Us|Hs,$s|Ks,js|$s,Us|Hs,js|$s,Us|Hs,Us|$s,js|Gs,js|Gs,Vs|Ks,Vs|Ks,$s|Ks,Us|Ks,js|$s,js|Hs,Us|$s,Vs|Hs,$s|Gs,Us|Gs,Vs|Hs,$s|Gs,js|Ks,Vs|Gs,Vs|$s,Us|Hs,0|$s,$s|Ks,Vs|Gs,0|$s,Us|Gs,Vs|$s,$s|Hs,js|Ks,js|Hs,$s|Hs,Us|Ks];Us=1<<18,js=1<<28,Vs=Us|js,Ks=64,Hs=4096,Gs=Ks|Hs;const Zs=[js|Gs,$s|Hs,Us|$s,Vs|Gs,js|$s,js|Gs,$s|Ks,js|$s,Us|Ks,Vs|$s,Vs|Gs,Us|Hs,Vs|Hs,Us|Gs,$s|Hs,$s|Ks,Vs|$s,js|Ks,js|Hs,$s|Gs,Us|Hs,Us|Ks,Vs|Ks,Vs|Hs,$s|Gs,0|$s,0|$s,Vs|Ks,js|Ks,js|Hs,Us|Gs,Us|$s,Us|Gs,Us|$s,Vs|Hs,$s|Hs,$s|Ks,Vs|Ks,$s|Hs,Us|Gs,js|Hs,$s|Ks,js|Ks,Vs|$s,Vs|Ks,js|$s,Us|$s,js|Gs,0|$s,Vs|Gs,Us|Ks,js|Ks,Vs|$s,js|Hs,js|Gs,0|$s,Vs|Gs,Us|Hs,Us|Hs,$s|Gs,$s|Gs,Us|Ks,js|$s,Vs|Hs];class el{constructor(e){this.keys=[];const t=[],n=[],r=[];for(let i=0,a=56;i<56;++i,a-=8){a+=a<-5?65:a<-3?31:a<-1?63:27===a?35:0;const n=7&a;t[i]=0!==(e[a>>>3]&1<<n)?1:0}for(let i=0;i<16;++i){const e=i<<1,a=e+1;r[e]=r[a]=0;for(let r=28;r<59;r+=28)for(let e=r-28;e<r;++e){const a=e+Fs[i];n[e]=a<r?t[a]:t[a-28]}for(let t=0;t<24;++t)0!==n[Bs[t]]&&(r[e]|=1<<23-t),0!==n[Bs[t+24]]&&(r[a]|=1<<23-t)}for(let i=0,a=0,o=0;i<16;++i){const e=r[a++],t=r[a++];this.keys[o]=(16515072&e)<<6,this.keys[o]|=(4032&e)<<10,this.keys[o]|=(16515072&t)>>>10,this.keys[o]|=(4032&t)>>>6,++o,this.keys[o]=(258048&e)<<12,this.keys[o]|=(63&e)<<16,this.keys[o]|=(258048&t)>>>4,this.keys[o]|=63&t,++o}}enc8(e){const t=e.slice();let n,r,i,a=0;n=t[a++]<<24|t[a++]<<16|t[a++]<<8|t[a++],r=t[a++]<<24|t[a++]<<16|t[a++]<<8|t[a++],i=252645135&(n>>>4^r),r^=i,n^=i<<4,i=65535&(n>>>16^r),r^=i,n^=i<<16,i=858993459&(r>>>2^n),n^=i,r^=i<<2,i=16711935&(r>>>8^n),n^=i,r^=i<<8,r=r<<1|r>>>31&1,i=2863311530&(n^r),n^=i,r^=i,n=n<<1|n>>>31&1;for(let o=0,s=0;o<8;++o){i=r<<28|r>>>4,i^=this.keys[s++];let e=Js[63&i];e|=Ys[i>>>8&63],e|=Xs[i>>>16&63],e|=zs[i>>>24&63],i=r^this.keys[s++],e|=Zs[63&i],e|=Qs[i>>>8&63],e|=Ws[i>>>16&63],e|=qs[i>>>24&63],n^=e,i=n<<28|n>>>4,i^=this.keys[s++],e=Js[63&i],e|=Ys[i>>>8&63],e|=Xs[i>>>16&63],e|=zs[i>>>24&63],i=n^this.keys[s++],e|=Zs[63&i],e|=Qs[i>>>8&63],e|=Ws[i>>>16&63],e|=qs[i>>>24&63],r^=e}for(r=r<<31|r>>>1,i=2863311530&(n^r),n^=i,r^=i,n=n<<31|n>>>1,i=16711935&(n>>>8^r),r^=i,n^=i<<8,i=858993459&(n>>>2^r),r^=i,n^=i<<2,i=65535&(r>>>16^n),n^=i,r^=i<<16,i=252645135&(r>>>4^n),n^=i,r^=i<<4,i=[r,n],a=0;a<8;a++)t[a]=(i[a>>>2]>>>8*(3-a%4))%256,t[a]<0&&(t[a]+=256);return t}encrypt(e){return this.enc8(e.slice(0,8)).concat(this.enc8(e.slice(8,16)))}}var tl={Again:57349,AltLeft:56,AltRight:57400,ArrowDown:57424,ArrowLeft:57419,ArrowRight:57421,ArrowUp:57416,AudioVolumeDown:57390,AudioVolumeMute:57376,AudioVolumeUp:57392,Backquote:41,Backslash:43,Backspace:14,BracketLeft:26,BracketRight:27,BrowserBack:57450,BrowserFavorites:57446,BrowserForward:57449,BrowserHome:57394,BrowserRefresh:57447,BrowserSearch:57445,BrowserStop:57448,CapsLock:58,Comma:51,ContextMenu:57437,ControlLeft:29,ControlRight:57373,Convert:121,Copy:57464,Cut:57404,Delete:57427,Digit0:11,Digit1:2,Digit2:3,Digit3:4,Digit4:5,Digit5:6,Digit6:7,Digit7:8,Digit8:9,Digit9:10,Eject:57469,End:57423,Enter:28,Equal:13,Escape:1,F1:59,F10:68,F11:87,F12:88,F13:93,F14:94,F15:95,F16:85,F17:57347,F18:57463,F19:57348,F2:60,F20:90,F21:116,F22:57465,F23:109,F24:111,F3:61,F4:62,F5:63,F6:64,F7:65,F8:66,F9:67,Find:57409,Help:57461,Hiragana:119,Home:57415,Insert:57426,IntlBackslash:86,IntlRo:115,IntlYen:125,KanaMode:112,Katakana:120,KeyA:30,KeyB:48,KeyC:46,KeyD:32,KeyE:18,KeyF:33,KeyG:34,KeyH:35,KeyI:23,KeyJ:36,KeyK:37,KeyL:38,KeyM:50,KeyN:49,KeyO:24,KeyP:25,KeyQ:16,KeyR:19,KeyS:31,KeyT:20,KeyU:22,KeyV:47,KeyW:17,KeyX:45,KeyY:21,KeyZ:44,Lang3:120,Lang4:119,Lang5:118,LaunchApp1:57451,LaunchApp2:57377,LaunchMail:57452,MediaPlayPause:57378,MediaSelect:57453,MediaStop:57380,MediaTrackNext:57369,MediaTrackPrevious:57360,MetaLeft:57435,MetaRight:57436,Minus:12,NonConvert:123,NumLock:69,Numpad0:82,Numpad1:79,Numpad2:80,Numpad3:81,Numpad4:75,Numpad5:76,Numpad6:77,Numpad7:71,Numpad8:72,Numpad9:73,NumpadAdd:78,NumpadComma:126,NumpadDecimal:83,NumpadDivide:57397,NumpadEnter:57372,NumpadEqual:89,NumpadMultiply:55,NumpadParenLeft:57462,NumpadParenRight:57467,NumpadSubtract:74,Open:100,PageDown:57425,PageUp:57417,Paste:101,Pause:57414,Period:52,Power:57438,PrintScreen:84,Props:57350,Quote:40,ScrollLock:70,Semicolon:39,ShiftLeft:42,ShiftRight:54,Slash:53,Sleep:57439,Space:57,Suspend:57381,Tab:15,Undo:57351,WakeUp:57443};const nl={encodingRaw:0,encodingCopyRect:1,encodingRRE:2,encodingHextile:5,encodingTight:7,encodingTightPNG:-260,pseudoEncodingQualityLevel9:-23,pseudoEncodingQualityLevel0:-32,pseudoEncodingDesktopSize:-223,pseudoEncodingLastRect:-224,pseudoEncodingCursor:-239,pseudoEncodingQEMUExtendedKeyEvent:-258,pseudoEncodingDesktopName:-307,pseudoEncodingExtendedDesktopSize:-308,pseudoEncodingXvp:-309,pseudoEncodingFence:-312,pseudoEncodingContinuousUpdates:-313,pseudoEncodingCompressLevel9:-247,pseudoEncodingCompressLevel0:-256,pseudoEncodingVMwareCursor:1464686180,pseudoEncodingExtendedClipboard:3231835598};a(4979);class rl{constructor(){this._lines=0}decodeRect(e,t,n,r,i,a,o){0===this._lines&&(this._lines=r);const s=8==o?1:4,l=n*s;if(i.rQwait("RAW",l))return!1;const c=t+(r-this._lines),u=Math.min(this._lines,Math.floor(i.rQlen/l));let d=i.rQ,h=i.rQi;if(8==o){const e=n*u,t=new Uint8Array(4*e);for(let n=0;n<e;n++)t[4*n+0]=255*(3&d[h+n])/3,t[4*n+1]=255*(d[h+n]>>2&3)/3,t[4*n+2]=255*(d[h+n]>>4&3)/3,t[4*n+4]=0;d=t,h=0}return a.blitImage(e,c,n,u,d,h),i.rQskipBytes(u*l),this._lines-=u,!(this._lines>0)}}class il{decodeRect(e,t,n,r,i,a,o){if(i.rQwait("COPYRECT",4))return!1;let s=i.rQshift16(),l=i.rQshift16();return a.copyImage(s,l,e,t,n,r),!0}}class al{constructor(){this._subrects=0}decodeRect(e,t,n,r,i,a,o){if(0===this._subrects){if(i.rQwait("RRE",8))return!1;this._subrects=i.rQshift32();let o=i.rQshiftBytes(4);a.fillRect(e,t,n,r,o)}while(this._subrects>0){if(i.rQwait("RRE",12))return!1;let n=i.rQshiftBytes(4),r=i.rQshift16(),o=i.rQshift16(),s=i.rQshift16(),l=i.rQshift16();a.fillRect(e+r,t+o,s,l,n),this._subrects--}return!0}}class ol{constructor(){this._tiles=0,this._lastsubencoding=0}decodeRect(e,t,n,r,i,a,o){0===this._tiles&&(this._tilesX=Math.ceil(n/16),this._tilesY=Math.ceil(r/16),this._totalTiles=this._tilesX*this._tilesY,this._tiles=this._totalTiles);while(this._tiles>0){let o=1;if(i.rQwait("HEXTILE",o))return!1;let s=i.rQ,l=i.rQi,c=s[l];if(c>30)throw new Error("Illegal hextile subencoding (subencoding: "+c+")");const u=this._totalTiles-this._tiles,d=u%this._tilesX,h=Math.floor(u/this._tilesX),p=e+16*d,f=t+16*h,m=Math.min(16,e+n-p),g=Math.min(16,t+r-f);if(1&c)o+=m*g*4;else if(2&c&&(o+=4),4&c&&(o+=4),8&c){if(o++,i.rQwait("HEXTILE",o))return!1;let e=s[l+o-1];o+=16&c?6*e:2*e}if(i.rQwait("HEXTILE",o))return!1;if(l++,0===c)1&this._lastsubencoding?vn(" Ignoring blank after RAW"):a.fillRect(p,f,m,g,this._background);else if(1&c)a.blitImage(p,f,m,g,s,l),l+=o-1;else{if(2&c&&(this._background=[s[l],s[l+1],s[l+2],s[l+3]],l+=4),4&c&&(this._foreground=[s[l],s[l+1],s[l+2],s[l+3]],l+=4),a.startTile(p,f,m,g,this._background),8&c){let e=s[l];l++;for(let t=0;t<e;t++){let e;16&c?(e=[s[l],s[l+1],s[l+2],s[l+3]],l+=4):e=this._foreground;const t=s[l];l++;const n=t>>4,r=15&t,i=s[l];l++;const o=1+(i>>4),u=1+(15&i);a.subTile(n,r,o,u,e)}}a.finishTile()}i.rQi=l,this._lastsubencoding=c,this._tiles--}return!0}}class sl{constructor(){this._ctl=null,this._filter=null,this._numColors=0,this._palette=new Uint8Array(1024),this._len=0,this._zlibs=[];for(let e=0;e<4;e++)this._zlibs[e]=new Ui}decodeRect(e,t,n,r,i,a,o){if(null===this._ctl){if(i.rQwait("TIGHT compression-control",1))return!1;this._ctl=i.rQshift8();for(let e=0;e<4;e++)this._ctl>>e&1&&(this._zlibs[e].reset(),bn("Reset zlib stream "+e));this._ctl=this._ctl>>4}let s;if(8===this._ctl)s=this._fillRect(e,t,n,r,i,a,o);else if(9===this._ctl)s=this._jpegRect(e,t,n,r,i,a,o);else if(10===this._ctl)s=this._pngRect(e,t,n,r,i,a,o);else{if(0!=(128&this._ctl))throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");s=this._basicRect(this._ctl,e,t,n,r,i,a,o)}return s&&(this._ctl=null),s}_fillRect(e,t,n,r,i,a,o){if(i.rQwait("TIGHT",3))return!1;const s=i.rQi,l=i.rQ;return a.fillRect(e,t,n,r,[l[s+2],l[s+1],l[s]],!1),i.rQskipBytes(3),!0}_jpegRect(e,t,n,r,i,a,o){let s=this._readData(i);return null!==s&&(a.imageRect(e,t,n,r,"image/jpeg",s),!0)}_pngRect(e,t,n,r,i,a,o){throw new Error("PNG received in standard Tight rect")}_basicRect(e,t,n,r,i,a,o,s){if(null===this._filter)if(4&e){if(a.rQwait("TIGHT",1))return!1;this._filter=a.rQshift8()}else this._filter=0;let l,c=3&e;switch(this._filter){case 0:l=this._copyFilter(c,t,n,r,i,a,o,s);break;case 1:l=this._paletteFilter(c,t,n,r,i,a,o,s);break;case 2:l=this._gradientFilter(c,t,n,r,i,a,o,s);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return l&&(this._filter=null),l}_copyFilter(e,t,n,r,i,a,o,s){const l=r*i*3;let c;if(l<12){if(a.rQwait("TIGHT",l))return!1;c=a.rQshiftBytes(l)}else{if(c=this._readData(a),null===c)return!1;this._zlibs[e].setInput(c),c=this._zlibs[e].inflate(l),this._zlibs[e].setInput(null)}return o.blitRgbImage(t,n,r,i,c,0,!1),!0}_paletteFilter(e,t,n,r,i,a,o,s){if(0===this._numColors){if(a.rQwait("TIGHT palette",1))return!1;const e=a.rQpeek8()+1,t=3*e;if(a.rQwait("TIGHT palette",1+t))return!1;this._numColors=e,a.rQskipBytes(1),a.rQshiftTo(this._palette,t)}const l=this._numColors<=2?1:8,c=Math.floor((r*l+7)/8),u=c*i;let d;if(u<12){if(a.rQwait("TIGHT",u))return!1;d=a.rQshiftBytes(u)}else{if(d=this._readData(a),null===d)return!1;this._zlibs[e].setInput(d),d=this._zlibs[e].inflate(u),this._zlibs[e].setInput(null)}return 2==this._numColors?this._monoRect(t,n,r,i,d,this._palette,o):this._paletteRect(t,n,r,i,d,this._palette,o),this._numColors=0,!0}_monoRect(e,t,n,r,i,a,o){const s=this._getScratchBuffer(n*r*4),l=Math.floor((n+7)/8),c=Math.floor(n/8);for(let u=0;u<r;u++){let e,t,r;for(r=0;r<c;r++)for(let o=7;o>=0;o--)e=4*(u*n+8*r+7-o),t=3*(i[u*l+r]>>o&1),s[e]=a[t],s[e+1]=a[t+1],s[e+2]=a[t+2],s[e+3]=255;for(let o=7;o>=8-n%8;o--)e=4*(u*n+8*r+7-o),t=3*(i[u*l+r]>>o&1),s[e]=a[t],s[e+1]=a[t+1],s[e+2]=a[t+2],s[e+3]=255}o.blitRgbxImage(e,t,n,r,s,0,!1)}_paletteRect(e,t,n,r,i,a,o){const s=this._getScratchBuffer(n*r*4),l=n*r*4;for(let c=0,u=0;c<l;c+=4,u++){const e=3*i[u];s[c]=a[e],s[c+1]=a[e+1],s[c+2]=a[e+2],s[c+3]=255}o.blitRgbxImage(e,t,n,r,s,0,!1)}_gradientFilter(e,t,n,r,i,a,o,s){throw new Error("Gradient filter not implemented")}_readData(e){if(0===this._len){if(e.rQwait("TIGHT",3))return null;let t;t=e.rQshift8(),this._len=127&t,128&t&&(t=e.rQshift8(),this._len|=(127&t)<<7,128&t&&(t=e.rQshift8(),this._len|=t<<14))}if(e.rQwait("TIGHT",this._len))return null;let t=e.rQshiftBytes(this._len);return this._len=0,t}_getScratchBuffer(e){return(!this._scratchBuffer||this._scratchBuffer.length<e)&&(this._scratchBuffer=new Uint8Array(e)),this._scratchBuffer}}class ll extends sl{_pngRect(e,t,n,r,i,a,o){let s=this._readData(i);return null!==s&&(a.imageRect(e,t,n,r,"image/png",s),!0)}_basicRect(e,t,n,r,i,a,o,s){throw new Error("BasicCompression received in TightPNG rect")}}const cl=3,ul="rgb(40, 40, 40)",dl=17,hl=50,pl=19,fl=75,ml=50,gl=1e3,vl=50,bl=1,yl=1<<24,wl=1<<25,El=1<<26,_l=1<<27,Sl=1<<28;class kl extends sr{constructor(e,t,n){if(!e)throw new Error("Must specify target");if(!t)throw new Error("Must specify URL");super(),this._target=e,this._url=t,n=n||{},this._rfbCredentials=n.credentials||{},this._shared=!("shared"in n)||!!n.shared,this._repeaterID=n.repeaterID||"",this._wsProtocols=n.wsProtocols||[],this._rfbConnectionState="",this._rfbInitState="",this._rfbAuthScheme=-1,this._rfbCleanDisconnect=!0,this._rfbVersion=0,this._rfbMaxVersion=3.8,this._rfbTightVNC=!1,this._rfbVeNCryptState=0,this._rfbXvpVer=0,this._fbWidth=0,this._fbHeight=0,this._fbName="",this._capabilities={power:!1},this._supportsFence=!1,this._supportsContinuousUpdates=!1,this._enabledContinuousUpdates=!1,this._supportsSetDesktopSize=!1,this._screenID=0,this._screenFlags=0,this._qemuExtKeyEventSupported=!1,this._clipboardText=null,this._clipboardServerCapabilitiesActions={},this._clipboardServerCapabilitiesFormats={},this._sock=null,this._display=null,this._flushing=!1,this._keyboard=null,this._gestures=null,this._disconnTimer=null,this._resizeTimeout=null,this._mouseMoveTimer=null,this._decoders={},this._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},this._mousePos={},this._mouseButtonMask=0,this._mouseLastMoveTime=0,this._viewportDragging=!1,this._viewportDragPos={},this._viewportHasMoved=!1,this._accumulatedWheelDeltaX=0,this._accumulatedWheelDeltaY=0,this._gestureLastTapTime=null,this._gestureFirstDoubleTapEv=null,this._gestureLastMagnitudeX=0,this._gestureLastMagnitudeY=0,this._eventHandlers={focusCanvas:this._focusCanvas.bind(this),windowResize:this._windowResize.bind(this),handleMouse:this._handleMouse.bind(this),handleWheel:this._handleWheel.bind(this),handleGesture:this._handleGesture.bind(this)},vn(">> RFB.constructor"),this._screen=document.createElement("div"),this._screen.style.display="flex",this._screen.style.width="100%",this._screen.style.height="100%",this._screen.style.overflow="auto",this._screen.style.background=ul,this._canvas=document.createElement("canvas"),this._canvas.style.margin="auto",this._canvas.style.outline="none",this._canvas.style.flexShrink="0",this._canvas.width=0,this._canvas.height=0,this._canvas.tabIndex=-1,this._screen.appendChild(this._canvas),this._cursor=new Ls,this._cursorImage=kl.cursors.none,this._decoders[nl.encodingRaw]=new rl,this._decoders[nl.encodingCopyRect]=new il,this._decoders[nl.encodingRRE]=new al,this._decoders[nl.encodingHextile]=new ol,this._decoders[nl.encodingTight]=new sl,this._decoders[nl.encodingTightPNG]=new ll;try{this._display=new cr(this._canvas)}catch(Zk){throw wn("Display exception: "+Zk),Zk}this._display.onflush=this._onFlush.bind(this),this._keyboard=new ms(this._canvas),this._keyboard.onkeyevent=this._handleKeyEvent.bind(this),this._gestures=new Os,this._sock=new Ms,this._sock.on("message",(()=>{this._handleMessage()})),this._sock.on("open",(()=>{"connecting"===this._rfbConnectionState&&""===this._rfbInitState?(this._rfbInitState="ProtocolVersion",vn("Starting VNC handshake")):this._fail("Unexpected server connection while "+this._rfbConnectionState)})),this._sock.on("close",(e=>{vn("WebSocket on-close event");let t="";switch(e.code&&(t="(code: "+e.code,e.reason&&(t+=", reason: "+e.reason),t+=")"),this._rfbConnectionState){case"connecting":this._fail("Connection closed "+t);break;case"connected":this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected");break;case"disconnecting":this._updateConnectionState("disconnected");break;case"disconnected":this._fail("Unexpected server disconnect when already disconnected "+t);break;default:this._fail("Unexpected server disconnect before connecting "+t);break}this._sock.off("close")})),this._sock.on("error",(e=>yn("WebSocket on-error event"))),setTimeout(this._updateConnectionState.bind(this,"connecting")),vn("<< RFB.constructor"),this.dragViewport=!1,this.focusOnClick=!0,this._viewOnly=!1,this._clipViewport=!1,this._scaleViewport=!1,this._resizeSession=!1,this._showDotCursor=!1,void 0!==n.showDotCursor&&(yn("Specifying showDotCursor as a RFB constructor argument is deprecated"),this._showDotCursor=n.showDotCursor),this._qualityLevel=6,this._compressionLevel=2}get viewOnly(){return this._viewOnly}set viewOnly(e){this._viewOnly=e,"connecting"!==this._rfbConnectionState&&"connected"!==this._rfbConnectionState||(e?this._keyboard.ungrab():this._keyboard.grab())}get capabilities(){return this._capabilities}get touchButton(){return 0}set touchButton(e){yn("Using old API!")}get clipViewport(){return this._clipViewport}set clipViewport(e){this._clipViewport=e,this._updateClip()}get scaleViewport(){return this._scaleViewport}set scaleViewport(e){this._scaleViewport=e,e&&this._clipViewport&&this._updateClip(),this._updateScale(),!e&&this._clipViewport&&this._updateClip()}get resizeSession(){return this._resizeSession}set resizeSession(e){this._resizeSession=e,e&&this._requestRemoteResize()}get showDotCursor(){return this._showDotCursor}set showDotCursor(e){this._showDotCursor=e,this._refreshCursor()}get background(){return this._screen.style.background}set background(e){this._screen.style.background=e}get qualityLevel(){return this._qualityLevel}set qualityLevel(e){!Number.isInteger(e)||e<0||e>9?wn("qualityLevel must be an integer between 0 and 9"):this._qualityLevel!==e&&(this._qualityLevel=e,"connected"===this._rfbConnectionState&&this._sendEncodings())}get compressionLevel(){return this._compressionLevel}set compressionLevel(e){!Number.isInteger(e)||e<0||e>9?wn("compressionLevel must be an integer between 0 and 9"):this._compressionLevel!==e&&(this._compressionLevel=e,"connected"===this._rfbConnectionState&&this._sendEncodings())}disconnect(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}sendCredentials(e){this._rfbCredentials=e,setTimeout(this._initMsg.bind(this),0)}sendCtrlAltDel(){"connected"!==this._rfbConnectionState||this._viewOnly||(bn("Sending Ctrl-Alt-Del"),this.sendKey(an.XK_Control_L,"ControlLeft",!0),this.sendKey(an.XK_Alt_L,"AltLeft",!0),this.sendKey(an.XK_Delete,"Delete",!0),this.sendKey(an.XK_Delete,"Delete",!1),this.sendKey(an.XK_Alt_L,"AltLeft",!1),this.sendKey(an.XK_Control_L,"ControlLeft",!1))}machineShutdown(){this._xvpOp(1,2)}machineReboot(){this._xvpOp(1,3)}machineReset(){this._xvpOp(1,4)}sendKey(e,t,n){if("connected"!==this._rfbConnectionState||this._viewOnly)return;if(void 0===n)return this.sendKey(e,t,!0),void this.sendKey(e,t,!1);const r=tl[t];if(this._qemuExtKeyEventSupported&&r)e=e||0,bn("Sending key ("+(n?"down":"up")+"): keysym "+e+", scancode "+r),kl.messages.QEMUExtendedKeyEvent(this._sock,e,n,r);else{if(!e)return;bn("Sending keysym ("+(n?"down":"up")+"): "+e),kl.messages.keyEvent(this._sock,e,n?1:0)}}focus(){this._canvas.focus()}blur(){this._canvas.blur()}clipboardPasteFrom(e){if("connected"===this._rfbConnectionState&&!this._viewOnly)if(this._clipboardServerCapabilitiesFormats[bl]&&this._clipboardServerCapabilitiesActions[_l])this._clipboardText=e,kl.messages.extendedClipboardNotify(this._sock,[bl]);else{let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);kl.messages.clientCutText(this._sock,t)}}_connect(){vn(">> RFB.connect"),bn("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(Hs){"SyntaxError"===Hs.name?this._fail("Invalid host or port ("+Hs+")"):this._fail("Error when opening socket ("+Hs+")")}this._target.appendChild(this._screen),this._gestures.attach(this._canvas),this._cursor.attach(this._canvas),this._refreshCursor(),window.addEventListener("resize",this._eventHandlers.windowResize),this._canvas.addEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.addEventListener("touchstart",this._eventHandlers.focusCanvas),this._canvas.addEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.addEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.addEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.addEventListener("click",this._eventHandlers.handleMouse),this._canvas.addEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.addEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.addEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.addEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.addEventListener("gestureend",this._eventHandlers.handleGesture),vn("<< RFB.connect")}_disconnect(){vn(">> RFB.disconnect"),this._cursor.detach(),this._canvas.removeEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gestureend",this._eventHandlers.handleGesture),this._canvas.removeEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.removeEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.removeEventListener("click",this._eventHandlers.handleMouse),this._canvas.removeEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.removeEventListener("touchstart",this._eventHandlers.focusCanvas),window.removeEventListener("resize",this._eventHandlers.windowResize),this._keyboard.ungrab(),this._gestures.detach(),this._sock.close();try{this._target.removeChild(this._screen)}catch(Hs){if("NotFoundError"!==Hs.name)throw Hs}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),vn("<< RFB.disconnect")}_focusCanvas(e){this.focusOnClick&&this.focus()}_setDesktopName(e){this._fbName=e,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}_windowResize(e){window.requestAnimationFrame((()=>{this._updateClip(),this._updateScale()})),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}_updateClip(){const e=this._display.clipViewport;let t=this._clipViewport;if(this._scaleViewport&&(t=!1),e!==t&&(this._display.clipViewport=t),t){const e=this._screenSize();this._display.viewportChangeSize(e.w,e.h),this._fixScrollbars()}}_updateScale(){if(this._scaleViewport){const e=this._screenSize();this._display.autoscale(e.w,e.h)}else this._display.scale=1;this._fixScrollbars()}_requestRemoteResize(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;const e=this._screenSize();kl.messages.setDesktopSize(this._sock,Math.floor(e.w),Math.floor(e.h),this._screenID,this._screenFlags),vn("Requested new desktop size: "+e.w+"x"+e.h)}_screenSize(){let e=this._screen.getBoundingClientRect();return{w:e.width,h:e.height}}_fixScrollbars(){const e=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=e}_updateConnectionState(e){const t=this._rfbConnectionState;if(e!==t)if("disconnected"!==t){switch(e){case"connected":if("connecting"!==t)return void wn("Bad transition to connected state, previous connection state: "+t);break;case"disconnected":if("disconnecting"!==t)return void wn("Bad transition to disconnected state, previous connection state: "+t);break;case"connecting":if(""!==t)return void wn("Bad transition to connecting state, previous connection state: "+t);break;case"disconnecting":if("connected"!==t&&"connecting"!==t)return void wn("Bad transition to disconnecting state, previous connection state: "+t);break;default:return void wn("Unknown connection state: "+e)}switch(this._rfbConnectionState=e,vn("New state '"+e+"', was '"+t+"'."),this._disconnTimer&&"disconnecting"!==e&&(vn("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close")),e){case"connecting":this._connect();break;case"connected":this.dispatchEvent(new CustomEvent("connect",{detail:{}}));break;case"disconnecting":this._disconnect(),this._disconnTimer=setTimeout((()=>{wn("Disconnection timed out."),this._updateConnectionState("disconnected")}),1e3*cl);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}else wn("Tried changing state of a disconnected RFB object");else vn("Already in state '"+e+"', ignoring")}_fail(e){switch(this._rfbConnectionState){case"disconnecting":wn("Failed when disconnecting: "+e);break;case"connected":wn("Failed while connected: "+e);break;case"connecting":wn("Failed when connecting: "+e);break;default:wn("RFB failure: "+e);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}_setCapability(e,t){this._capabilities[e]=t,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}_handleMessage(){if(0!==this._sock.rQlen)switch(this._rfbConnectionState){case"disconnected":wn("Got data while disconnected");break;case"connected":while(1){if(this._flushing)break;if(!this._normalMsg())break;if(0===this._sock.rQlen)break}break;default:this._initMsg();break}else yn("handleMessage called on an empty receive queue")}_handleKeyEvent(e,t,n){this.sendKey(e,t,n)}_handleMouse(e){if("click"===e.type&&e.target!==this._canvas)return;if(e.stopPropagation(),e.preventDefault(),"click"===e.type||"contextmenu"===e.type)return;let t=Jn(e.clientX,e.clientY,this._canvas);switch(e.type){case"mousedown":ar(this._canvas),this._handleMouseButton(t.x,t.y,!0,1<<e.button);break;case"mouseup":this._handleMouseButton(t.x,t.y,!1,1<<e.button);break;case"mousemove":this._handleMouseMove(t.x,t.y);break}}_handleMouseButton(e,t,n,r){if(this.dragViewport){if(n&&!this._viewportDragging)return this._viewportDragging=!0,this._viewportDragPos={x:e,y:t},void(this._viewportHasMoved=!1);if(this._viewportDragging=!1,this._viewportHasMoved)return;this._sendMouse(e,t,r)}null!==this._mouseMoveTimer&&(clearTimeout(this._mouseMoveTimer),this._mouseMoveTimer=null,this._sendMouse(e,t,this._mouseButtonMask)),n?this._mouseButtonMask|=r:this._mouseButtonMask&=~r,this._sendMouse(e,t,this._mouseButtonMask)}_handleMouseMove(e,t){if(this._viewportDragging){const n=this._viewportDragPos.x-e,r=this._viewportDragPos.y-t;(this._viewportHasMoved||Math.abs(n)>Sn||Math.abs(r)>Sn)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:e,y:t},this._display.viewportChangePos(n,r))}else if(this._mousePos={x:e,y:t},null==this._mouseMoveTimer){const n=Date.now()-this._mouseLastMoveTime;n>dl?(this._sendMouse(e,t,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout((()=>{this._handleDelayedMouseMove()}),dl-n)}}_handleDelayedMouseMove(){this._mouseMoveTimer=null,this._sendMouse(this._mousePos.x,this._mousePos.y,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()}_sendMouse(e,t,n){"connected"===this._rfbConnectionState&&(this._viewOnly||kl.messages.pointerEvent(this._sock,this._display.absX(e),this._display.absY(t),n))}_handleWheel(e){if("connected"!==this._rfbConnectionState)return;if(this._viewOnly)return;e.stopPropagation(),e.preventDefault();let t=Jn(e.clientX,e.clientY,this._canvas),n=e.deltaX,r=e.deltaY;0!==e.deltaMode&&(n*=pl,r*=pl),this._accumulatedWheelDeltaX+=n,this._accumulatedWheelDeltaY+=r,Math.abs(this._accumulatedWheelDeltaX)>=hl&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(t.x,t.y,!0,32),this._handleMouseButton(t.x,t.y,!1,32)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(t.x,t.y,!0,64),this._handleMouseButton(t.x,t.y,!1,64)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=hl&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(t.x,t.y,!0,8),this._handleMouseButton(t.x,t.y,!1,8)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(t.x,t.y,!0,16),this._handleMouseButton(t.x,t.y,!1,16)),this._accumulatedWheelDeltaY=0)}_fakeMouseMove(e,t,n){this._handleMouseMove(t,n),this._cursor.move(e.detail.clientX,e.detail.clientY)}_handleTapEvent(e,t){let n=Jn(e.detail.clientX,e.detail.clientY,this._canvas);if(null!==this._gestureLastTapTime&&Date.now()-this._gestureLastTapTime<gl&&this._gestureFirstDoubleTapEv.detail.type===e.detail.type){let t=this._gestureFirstDoubleTapEv.detail.clientX-e.detail.clientX,r=this._gestureFirstDoubleTapEv.detail.clientY-e.detail.clientY,i=Math.hypot(t,r);i<vl?n=Jn(this._gestureFirstDoubleTapEv.detail.clientX,this._gestureFirstDoubleTapEv.detail.clientY,this._canvas):this._gestureFirstDoubleTapEv=e}else this._gestureFirstDoubleTapEv=e;this._gestureLastTapTime=Date.now(),this._fakeMouseMove(this._gestureFirstDoubleTapEv,n.x,n.y),this._handleMouseButton(n.x,n.y,!0,t),this._handleMouseButton(n.x,n.y,!1,t)}_handleGesture(e){let t,n=Jn(e.detail.clientX,e.detail.clientY,this._canvas);switch(e.type){case"gesturestart":switch(e.detail.type){case"onetap":this._handleTapEvent(e,1);break;case"twotap":this._handleTapEvent(e,4);break;case"threetap":this._handleTapEvent(e,2);break;case"drag":this._fakeMouseMove(e,n.x,n.y),this._handleMouseButton(n.x,n.y,!0,1);break;case"longpress":this._fakeMouseMove(e,n.x,n.y),this._handleMouseButton(n.x,n.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=e.detail.magnitudeX,this._gestureLastMagnitudeY=e.detail.magnitudeY,this._fakeMouseMove(e,n.x,n.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(e.detail.magnitudeX,e.detail.magnitudeY),this._fakeMouseMove(e,n.x,n.y);break}break;case"gesturemove":switch(e.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(e,n.x,n.y);break;case"twodrag":this._fakeMouseMove(e,n.x,n.y);while(e.detail.magnitudeY-this._gestureLastMagnitudeY>ml)this._handleMouseButton(n.x,n.y,!0,8),this._handleMouseButton(n.x,n.y,!1,8),this._gestureLastMagnitudeY+=ml;while(e.detail.magnitudeY-this._gestureLastMagnitudeY<-ml)this._handleMouseButton(n.x,n.y,!0,16),this._handleMouseButton(n.x,n.y,!1,16),this._gestureLastMagnitudeY-=ml;while(e.detail.magnitudeX-this._gestureLastMagnitudeX>ml)this._handleMouseButton(n.x,n.y,!0,32),this._handleMouseButton(n.x,n.y,!1,32),this._gestureLastMagnitudeX+=ml;while(e.detail.magnitudeX-this._gestureLastMagnitudeX<-ml)this._handleMouseButton(n.x,n.y,!0,64),this._handleMouseButton(n.x,n.y,!1,64),this._gestureLastMagnitudeX-=ml;break;case"pinch":if(this._fakeMouseMove(e,n.x,n.y),t=Math.hypot(e.detail.magnitudeX,e.detail.magnitudeY),Math.abs(t-this._gestureLastMagnitudeX)>fl){this._handleKeyEvent(an.XK_Control_L,"ControlLeft",!0);while(t-this._gestureLastMagnitudeX>fl)this._handleMouseButton(n.x,n.y,!0,8),this._handleMouseButton(n.x,n.y,!1,8),this._gestureLastMagnitudeX+=fl;while(t-this._gestureLastMagnitudeX<-fl)this._handleMouseButton(n.x,n.y,!0,16),this._handleMouseButton(n.x,n.y,!1,16),this._gestureLastMagnitudeX-=fl}this._handleKeyEvent(an.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(e.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(e,n.x,n.y),this._handleMouseButton(n.x,n.y,!1,1);break;case"longpress":this._fakeMouseMove(e,n.x,n.y),this._handleMouseButton(n.x,n.y,!1,4);break}break}}_negotiateProtocolVersion(){if(this._sock.rQwait("version",12))return!1;const e=this._sock.rQshiftStr(12).substr(4,7);bn("Server ProtocolVersion: "+e);let t=0;switch(e){case"000.000":t=1;break;case"003.003":case"003.006":case"003.889":this._rfbVersion=3.3;break;case"003.007":this._rfbVersion=3.7;break;case"003.008":case"004.000":case"004.001":case"005.000":this._rfbVersion=3.8;break;default:return this._fail("Invalid server version "+e)}if(t){let e="ID:"+this._repeaterID;while(e.length<250)e+="\0";return this._sock.sendString(e),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);const n="00"+parseInt(this._rfbVersion,10)+".00"+10*this._rfbVersion%10;this._sock.sendString("RFB "+n+"\n"),vn("Sent ProtocolVersion: "+n),this._rfbInitState="Security"}_negotiateSecurity(){function e(e,t){for(let n=0;n<t.length;n++)if(t[n]===e)return!0;return!1}if(this._rfbVersion>=3.7){const t=this._sock.rQshift8();if(this._sock.rQwait("security type",t,1))return!1;if(0===t)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();const n=this._sock.rQshiftBytes(t);if(vn("Server security types: "+n),e(1,n))this._rfbAuthScheme=1;else if(e(22,n))this._rfbAuthScheme=22;else if(e(16,n))this._rfbAuthScheme=16;else if(e(2,n))this._rfbAuthScheme=2;else{if(!e(19,n))return this._fail("Unsupported security types (types: "+n+")");this._rfbAuthScheme=19}this._sock.send([this._rfbAuthScheme])}else{if(this._sock.rQwait("security scheme",4))return!1;if(this._rfbAuthScheme=this._sock.rQshift32(),0==this._rfbAuthScheme)return this._rfbInitState="SecurityReason",this._securityContext="authentication scheme",this._securityStatus=1,this._initMsg()}return this._rfbInitState="Authentication",vn("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}_handleSecurityReason(){if(this._sock.rQwait("reason length",4))return!1;const e=this._sock.rQshift32();let t="";if(e>0){if(this._sock.rQwait("reason",e,4))return!1;t=this._sock.rQshiftStr(e)}return""!==t?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:t}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+t+")")):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus}})),this._fail("Security negotiation failed on "+this._securityContext))}_negotiateXvpAuth(){if(void 0===this._rfbCredentials.username||void 0===this._rfbCredentials.password||void 0===this._rfbCredentials.target)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password","target"]}})),!1;const e=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(e),this._rfbAuthScheme=2,this._negotiateAuthentication()}_negotiateVeNCryptAuth(){if(0==this._rfbVeNCryptState){if(this._sock.rQwait("vencrypt version",2))return!1;const e=this._sock.rQshift8(),t=this._sock.rQshift8();if(0!=e||2!=t)return this._fail("Unsupported VeNCrypt version "+e+"."+t);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(1==this._rfbVeNCryptState){if(this._sock.rQwait("vencrypt ack",1))return!1;const e=this._sock.rQshift8();if(0!=e)return this._fail("VeNCrypt failure "+e);this._rfbVeNCryptState=2}if(2==this._rfbVeNCryptState){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;const e=this._sock.rQshift8();if(e<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=e,this._rfbVeNCryptState=3}if(3==this._rfbVeNCryptState){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;const e=[];for(let t=0;t<this._rfbVeNCryptSubtypesLength;t++)e.push(this._sock.rQshift32());if(-1==e.indexOf(256))return this._fail("VeNCrypt Plain subtype not offered by server");this._sock.send([0,0,1,0]),this._rfbVeNCryptState=4}if(4==this._rfbVeNCryptState){if(!this._rfbCredentials.username||!this._rfbCredentials.password)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1;const e=Qn(this._rfbCredentials.username),t=Qn(this._rfbCredentials.password);return this._sock.send([0,0,0,e.length]),this._sock.send([0,0,0,t.length]),this._sock.sendString(e),this._sock.sendString(t),this._rfbInitState="SecurityResult",!0}}_negotiateStdVNCAuth(){if(this._sock.rQwait("auth challenge",16))return!1;if(void 0===this._rfbCredentials.password)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["password"]}})),!1;const e=Array.prototype.slice.call(this._sock.rQshiftBytes(16)),t=kl.genDES(this._rfbCredentials.password,e);return this._sock.send(t),this._rfbInitState="SecurityResult",!0}_negotiateTightUnixAuth(){return void 0===this._rfbCredentials.username||void 0===this._rfbCredentials.password?(this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1):(this._sock.send([0,0,0,this._rfbCredentials.username.length]),this._sock.send([0,0,0,this._rfbCredentials.password.length]),this._sock.sendString(this._rfbCredentials.username),this._sock.sendString(this._rfbCredentials.password),this._rfbInitState="SecurityResult",!0)}_negotiateTightTunnels(e){const t={0:{vendor:"TGHT",signature:"NOTUNNEL"}},n={};for(let r=0;r<e;r++){const e=this._sock.rQshift32(),t=this._sock.rQshiftStr(4),r=this._sock.rQshiftStr(8);n[e]={vendor:t,signature:r}}return vn("Server Tight tunnel types: "+n),n[1]&&"SICR"===n[1].vendor&&"SCHANNEL"===n[1].signature&&(vn("Detected Siemens server. Assuming NOTUNNEL support."),n[0]={vendor:"TGHT",signature:"NOTUNNEL"}),n[0]?n[0].vendor!=t[0].vendor||n[0].signature!=t[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(vn("Selected tunnel type: "+t[0]),this._sock.send([0,0,0,0]),!1):this._fail("Server wanted tunnels, but doesn't support the notunnel type")}_negotiateTightAuth(){if(!this._rfbTightVNC){if(this._sock.rQwait("num tunnels",4))return!1;const e=this._sock.rQshift32();if(e>0&&this._sock.rQwait("tunnel capabilities",16*e,4))return!1;if(this._rfbTightVNC=!0,e>0)return this._negotiateTightTunnels(e),!1}if(this._sock.rQwait("sub auth count",4))return!1;const e=this._sock.rQshift32();if(0===e)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*e,4))return!1;const t={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},n=[];for(let r=0;r<e;r++){this._sock.rQshift32();const e=this._sock.rQshiftStr(12);n.push(e)}vn("Server Tight authentication types: "+n);for(let r in t)if(-1!=n.indexOf(r))switch(this._sock.send([0,0,0,t[r]]),vn("Selected authentication type: "+r),r){case"STDVNOAUTH__":return this._rfbInitState="SecurityResult",!0;case"STDVVNCAUTH_":return this._rfbAuthScheme=2,this._initMsg();case"TGHTULGNAUTH":return this._rfbAuthScheme=129,this._initMsg();default:return this._fail("Unsupported tiny auth scheme (scheme: "+r+")")}return this._fail("No supported sub-auth types!")}_negotiateAuthentication(){switch(this._rfbAuthScheme){case 1:return this._rfbVersion>=3.8?(this._rfbInitState="SecurityResult",!0):(this._rfbInitState="ClientInitialisation",this._initMsg());case 22:return this._negotiateXvpAuth();case 2:return this._negotiateStdVNCAuth();case 16:return this._negotiateTightAuth();case 19:return this._negotiateVeNCryptAuth();case 129:return this._negotiateTightUnixAuth();default:return this._fail("Unsupported auth scheme (scheme: "+this._rfbAuthScheme+")")}}_handleSecurityResult(){if(this._sock.rQwait("VNC auth response ",4))return!1;const e=this._sock.rQshift32();return 0===e?(this._rfbInitState="ClientInitialisation",vn("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=e,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:e}})),this._fail("Security handshake failed"))}_negotiateServerInit(){if(this._sock.rQwait("server initialization",24))return!1;const e=this._sock.rQshift16(),t=this._sock.rQshift16(),n=this._sock.rQshift8(),r=this._sock.rQshift8(),i=this._sock.rQshift8(),a=this._sock.rQshift8(),o=this._sock.rQshift16(),s=this._sock.rQshift16(),l=this._sock.rQshift16(),c=this._sock.rQshift8(),u=this._sock.rQshift8(),d=this._sock.rQshift8();this._sock.rQskipBytes(3);const h=this._sock.rQshift32();if(this._sock.rQwait("server init name",h,24))return!1;let p=this._sock.rQshiftStr(h);if(p=Yn(p,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+h))return!1;const e=this._sock.rQshift16(),t=this._sock.rQshift16(),n=this._sock.rQshift16();this._sock.rQskipBytes(2);const r=16*(e+t+n);if(this._sock.rQwait("TightVNC extended server init header",r,32+h))return!1;this._sock.rQskipBytes(16*e),this._sock.rQskipBytes(16*t),this._sock.rQskipBytes(16*n)}return bn("Screen: "+e+"x"+t+", bpp: "+n+", depth: "+r+", bigEndian: "+i+", trueColor: "+a+", redMax: "+o+", greenMax: "+s+", blueMax: "+l+", redShift: "+c+", greenShift: "+u+", blueShift: "+d),this._setDesktopName(p),this._resize(e,t),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,"Intel(r) AMT KVM"===this._fbName&&(yn("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),kl.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),kl.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}_sendEncodings(){const e=[];e.push(nl.encodingCopyRect),24==this._fbDepth&&(e.push(nl.encodingTight),e.push(nl.encodingTightPNG),e.push(nl.encodingHextile),e.push(nl.encodingRRE)),e.push(nl.encodingRaw),e.push(nl.pseudoEncodingQualityLevel0+this._qualityLevel),e.push(nl.pseudoEncodingCompressLevel0+this._compressionLevel),e.push(nl.pseudoEncodingDesktopSize),e.push(nl.pseudoEncodingLastRect),e.push(nl.pseudoEncodingQEMUExtendedKeyEvent),e.push(nl.pseudoEncodingExtendedDesktopSize),e.push(nl.pseudoEncodingXvp),e.push(nl.pseudoEncodingFence),e.push(nl.pseudoEncodingContinuousUpdates),e.push(nl.pseudoEncodingDesktopName),e.push(nl.pseudoEncodingExtendedClipboard),24==this._fbDepth&&(e.push(nl.pseudoEncodingVMwareCursor),e.push(nl.pseudoEncodingCursor)),kl.messages.clientEncodings(this._sock,e)}_initMsg(){switch(this._rfbInitState){case"ProtocolVersion":return this._negotiateProtocolVersion();case"Security":return this._negotiateSecurity();case"Authentication":return this._negotiateAuthentication();case"SecurityResult":return this._handleSecurityResult();case"SecurityReason":return this._handleSecurityReason();case"ClientInitialisation":return this._sock.send([this._shared?1:0]),this._rfbInitState="ServerInitialisation",!0;case"ServerInitialisation":return this._negotiateServerInit();default:return this._fail("Unknown init state (state: "+this._rfbInitState+")")}}_handleSetColourMapMsg(){return vn("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}_handleServerCutText(){if(vn("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);let e=this._sock.rQshift32();if(e=Wn(e),this._sock.rQwait("ServerCutText content",Math.abs(e),8))return!1;if(e>=0){const t=this._sock.rQshiftStr(e);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:t}}))}else{e=Math.abs(e);const t=this._sock.rQshift32();let n=65535&t,r=4278190080&t,i=!!(r&yl);if(i){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(let t=0;t<=15;t++){let e=1<<t;n&e&&(this._clipboardServerCapabilitiesFormats[e]=!0,this._sock.rQshift32())}for(let t=24;t<=31;t++){let e=1<<t;this._clipboardServerCapabilitiesActions[e]=!!(r&e)}let e=[yl,wl,El,_l,Sl];kl.messages.extendedClipboardCaps(this._sock,e,{extendedClipboardFormatText:0})}else if(r===wl){if(this._viewOnly)return!0;null!=this._clipboardText&&this._clipboardServerCapabilitiesActions[Sl]&&n&bl&&kl.messages.extendedClipboardProvide(this._sock,[bl],[this._clipboardText])}else if(r===El){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[_l]&&(null!=this._clipboardText?kl.messages.extendedClipboardNotify(this._sock,[bl]):kl.messages.extendedClipboardNotify(this._sock,[]))}else if(r===_l){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[wl]&&n&bl&&kl.messages.extendedClipboardRequest(this._sock,[bl])}else{if(r!==Sl)return this._fail("Unexpected action in extended clipboard message: "+r);{if(this._viewOnly)return!0;if(!(n&bl))return!0;this._clipboardText=null;let t=this._sock.rQshiftBytes(e-4),r=new Ui,i=null;r.setInput(t);for(let e=0;e<=15;e++){let t=1<<e;if(n&t){let e=0,n=r.inflate(4);e|=n[0]<<24,e|=n[1]<<16,e|=n[2]<<8,e|=n[3];let a=r.inflate(e);t===bl&&(i=a)}}if(r.setInput(null),null!==i){let e="";for(let t=0;t<i.length;t++)e+=String.fromCharCode(i[t]);i=e,i=Yn(i),i.length>0&&"\0"===i.charAt(i.length-1)&&(i=i.slice(0,-1)),i=i.replace("\r\n","\n"),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:i}}))}}}}return!0}_handleServerFenceMsg(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);let e=this._sock.rQshift32(),t=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",t,9))return!1;t>64&&(yn("Bad payload length ("+t+") in fence response"),t=64);const n=this._sock.rQshiftStr(t);return this._supportsFence=!0,e&1<<31?(e&=3,kl.messages.clientFence(this._sock,e,n),!0):this._fail("Unexpected fence response")}_handleXvpMsg(){if(this._sock.rQwait("XVP version and message",3,1))return!1;this._sock.rQskipBytes(1);const e=this._sock.rQshift8(),t=this._sock.rQshift8();switch(t){case 0:wn("XVP Operation Failed");break;case 1:this._rfbXvpVer=e,bn("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+t+")");break}return!0}_normalMsg(){let e,t,n;switch(e=this._FBU.rects>0?0:this._sock.rQshift8(),e){case 0:return n=this._framebufferUpdate(),n&&!this._enabledContinuousUpdates&&kl.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),n;case 1:return this._handleSetColourMapMsg();case 2:return vn("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return t=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,t&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),bn("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+e+")"),vn("sock.rQslice(0, 30): "+this._sock.rQslice(0,30)),!0}}_onFlush(){this._flushing=!1,this._sock.rQlen>0&&this._handleMessage()}_framebufferUpdate(){if(0===this._FBU.rects){if(this._sock.rQwait("FBU header",3,1))return!1;if(this._sock.rQskipBytes(1),this._FBU.rects=this._sock.rQshift16(),this._display.pending())return this._flushing=!0,this._display.flush(),!1}while(this._FBU.rects>0){if(null===this._FBU.encoding){if(this._sock.rQwait("rect header",12))return!1;const e=this._sock.rQshiftBytes(12);this._FBU.x=(e[0]<<8)+e[1],this._FBU.y=(e[2]<<8)+e[3],this._FBU.width=(e[4]<<8)+e[5],this._FBU.height=(e[6]<<8)+e[7],this._FBU.encoding=parseInt((e[8]<<24)+(e[9]<<16)+(e[10]<<8)+e[11],10)}if(!this._handleRect())return!1;this._FBU.rects--,this._FBU.encoding=null}return this._display.flip(),!0}_handleRect(){switch(this._FBU.encoding){case nl.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case nl.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case nl.pseudoEncodingCursor:return this._handleCursor();case nl.pseudoEncodingQEMUExtendedKeyEvent:try{const e=document.createEvent("keyboardEvent");void 0!==e.code&&(this._qemuExtKeyEventSupported=!0)}catch(Go){}return!0;case nl.pseudoEncodingDesktopName:return this._handleDesktopName();case nl.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case nl.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}_handleVMwareCursor(){const e=this._FBU.x,t=this._FBU.y,n=this._FBU.width,r=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;const i=this._sock.rQshift8();let a;this._sock.rQshift8();const o=4;if(0==i){const e=-256;if(a=new Array(n*r*o),this._sock.rQwait("VMware cursor classic encoding",n*r*o*2,2))return!1;let t=new Array(n*r);for(let a=0;a<n*r;a++)t[a]=this._sock.rQshift32();let i=new Array(n*r);for(let a=0;a<n*r;a++)i[a]=this._sock.rQshift32();for(let s=0;s<n*r;s++)if(0==t[s]){let e=i[s],t=e>>8&255,n=e>>16&255,r=e>>24&255;a[s*o]=t,a[s*o+1]=n,a[s*o+2]=r,a[s*o+3]=255}else(t[s]&e)==e?0==i[s]?(a[s*o]=0,a[s*o+1]=0,a[s*o+2]=0,a[s*o+3]=0):(i[s],a[s*o]=0,a[s*o+1]=0,a[s*o+2]=0,a[s*o+3]=255):(a[s*o]=0,a[s*o+1]=0,a[s*o+2]=0,a[s*o+3]=255)}else{if(1!=i)return yn("The given cursor type is not supported: "+i+" given."),!1;if(this._sock.rQwait("VMware cursor alpha encoding",n*r*4,2))return!1;a=new Array(n*r*o);for(let e=0;e<n*r;e++){let t=this._sock.rQshift32();a[4*e]=t>>24&255,a[4*e+1]=t>>16&255,a[4*e+2]=t>>8&255,a[4*e+3]=255&t}}return this._updateCursor(a,e,t,n,r),!0}_handleCursor(){const e=this._FBU.x,t=this._FBU.y,n=this._FBU.width,r=this._FBU.height,i=n*r*4,a=Math.ceil(n/8)*r;let o=i+a;if(this._sock.rQwait("cursor encoding",o))return!1;const s=this._sock.rQshiftBytes(i),l=this._sock.rQshiftBytes(a);let c=new Uint8Array(n*r*4),u=0;for(let d=0;d<r;d++)for(let e=0;e<n;e++){let t=d*Math.ceil(n/8)+Math.floor(e/8),r=l[t]<<e%8&128?255:0;c[u]=s[u+2],c[u+1]=s[u+1],c[u+2]=s[u],c[u+3]=r,u+=4}return this._updateCursor(c,e,t,n,r),!0}_handleDesktopName(){if(this._sock.rQwait("DesktopName",4))return!1;let e=this._sock.rQshift32();if(this._sock.rQwait("DesktopName",e,4))return!1;let t=this._sock.rQshiftStr(e);return t=Yn(t,!0),this._setDesktopName(t),!0}_handleExtendedDesktopSize(){if(this._sock.rQwait("ExtendedDesktopSize",4))return!1;const e=this._sock.rQpeek8();let t=4+16*e;if(this._sock.rQwait("ExtendedDesktopSize",t))return!1;const n=!this._supportsSetDesktopSize;this._supportsSetDesktopSize=!0,n&&this._requestRemoteResize(),this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(let r=0;r<e;r+=1)0===r?(this._screenID=this._sock.rQshiftBytes(4),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._screenFlags=this._sock.rQshiftBytes(4)):this._sock.rQskipBytes(16);if(1===this._FBU.x&&0!==this._FBU.y){let e="";switch(this._FBU.y){case 1:e="Resize is administratively prohibited";break;case 2:e="Out of resources";break;case 3:e="Invalid screen layout";break;default:e="Unknown reason";break}yn("Server did not accept the resize request: "+e)}else this._resize(this._FBU.width,this._FBU.height);return!0}_handleDataRect(){let e=this._decoders[this._FBU.encoding];if(!e)return this._fail("Unsupported encoding (encoding: "+this._FBU.encoding+")"),!1;try{return e.decodeRect(this._FBU.x,this._FBU.y,this._FBU.width,this._FBU.height,this._sock,this._display,this._fbDepth)}catch(Go){return this._fail("Error decoding rect: "+Go),!1}}_updateContinuousUpdates(){this._enabledContinuousUpdates&&kl.messages.enableContinuousUpdates(this._sock,!0,0,0,this._fbWidth,this._fbHeight)}_resize(e,t){this._fbWidth=e,this._fbHeight=t,this._display.resize(this._fbWidth,this._fbHeight),this._updateClip(),this._updateScale(),this._updateContinuousUpdates()}_xvpOp(e,t){this._rfbXvpVer<e||(bn("Sending XVP operation "+t+" (version "+e+")"),kl.messages.xvpOp(this._sock,e,t))}_updateCursor(e,t,n,r,i){this._cursorImage={rgbaPixels:e,hotx:t,hoty:n,w:r,h:i},this._refreshCursor()}_shouldShowDotCursor(){if(!this._showDotCursor)return!1;for(let e=3;e<this._cursorImage.rgbaPixels.length;e+=4)if(this._cursorImage.rgbaPixels[e])return!1;return!0}_refreshCursor(){if("connecting"!==this._rfbConnectionState&&"connected"!==this._rfbConnectionState)return;const e=this._shouldShowDotCursor()?kl.cursors.dot:this._cursorImage;this._cursor.change(e.rgbaPixels,e.hotx,e.hoty,e.w,e.h)}static genDES(e,t){const n=e.split("").map((e=>e.charCodeAt(0)));return new el(n).encrypt(t)}}kl.messages={keyEvent(e,t,n){const r=e._sQ,i=e._sQlen;r[i]=4,r[i+1]=n,r[i+2]=0,r[i+3]=0,r[i+4]=t>>24,r[i+5]=t>>16,r[i+6]=t>>8,r[i+7]=t,e._sQlen+=8,e.flush()},QEMUExtendedKeyEvent(e,t,n,r){function i(e){const t=r>>8,n=255&r;return 224===t&&n<127?128|n:e}const a=e._sQ,o=e._sQlen;a[o]=255,a[o+1]=0,a[o+2]=n>>8,a[o+3]=n,a[o+4]=t>>24,a[o+5]=t>>16,a[o+6]=t>>8,a[o+7]=t;const s=i(r);a[o+8]=s>>24,a[o+9]=s>>16,a[o+10]=s>>8,a[o+11]=s,e._sQlen+=12,e.flush()},pointerEvent(e,t,n,r){const i=e._sQ,a=e._sQlen;i[a]=5,i[a+1]=r,i[a+2]=t>>8,i[a+3]=t,i[a+4]=n>>8,i[a+5]=n,e._sQlen+=6,e.flush()},_buildExtendedClipboardFlags(e,t){let n=new Uint8Array(4),r=0,i=0;for(let a=0;a<e.length;a++)i|=e[a];for(let a=0;a<t.length;a++)r|=t[a];return n[0]=i>>24,n[1]=0,n[2]=0,n[3]=r,n},extendedClipboardProvide(e,t,n){let r=new fs,i=[];for(let s=0;s<t.length;s++){if(t[s]!=bl)throw new Error("Unsupported extended clipboard format for Provide message.");n[s]=n[s].replace(/\r\n|\r|\n/gm,"\r\n");let e=Qn(n[s]+"\0");i.push(e.length>>24&255,e.length>>16&255,e.length>>8&255,255&e.length);for(let t=0;t<e.length;t++)i.push(e.charCodeAt(t))}let a=r.deflate(new Uint8Array(i)),o=new Uint8Array(4+a.length);o.set(kl.messages._buildExtendedClipboardFlags([Sl],t)),o.set(a,4),kl.messages.clientCutText(e,o,!0)},extendedClipboardNotify(e,t){let n=kl.messages._buildExtendedClipboardFlags([_l],t);kl.messages.clientCutText(e,n,!0)},extendedClipboardRequest(e,t){let n=kl.messages._buildExtendedClipboardFlags([wl],t);kl.messages.clientCutText(e,n,!0)},extendedClipboardCaps(e,t,n){let r=Object.keys(n),i=new Uint8Array(4+4*r.length);r.map((e=>parseInt(e))),r.sort(((e,t)=>e-t)),i.set(kl.messages._buildExtendedClipboardFlags(t,[]));let a=4;for(let o=0;o<r.length;o++)i[a]=n[r[o]]>>24,i[a+1]=n[r[o]]>>16,i[a+2]=n[r[o]]>>8,i[a+3]=n[r[o]]|0,a+=4,i[3]|=1<<r[o];kl.messages.clientCutText(e,i,!0)},clientCutText(e,t,n=!1){const r=e._sQ,i=e._sQlen;let a;r[i]=6,r[i+1]=0,r[i+2]=0,r[i+3]=0,a=n?Xn(-t.length):t.length,r[i+4]=a>>24,r[i+5]=a>>16,r[i+6]=a>>8,r[i+7]=a,e._sQlen+=8;let o=0,s=t.length;while(s>0){let n=Math.min(s,e._sQbufferSize-e._sQlen);for(let i=0;i<n;i++)r[e._sQlen+i]=t[o+i];e._sQlen+=n,e.flush(),s-=n,o+=n}},setDesktopSize(e,t,n,r,i){const a=e._sQ,o=e._sQlen;a[o]=251,a[o+1]=0,a[o+2]=t>>8,a[o+3]=t,a[o+4]=n>>8,a[o+5]=n,a[o+6]=1,a[o+7]=0,a[o+8]=r>>24,a[o+9]=r>>16,a[o+10]=r>>8,a[o+11]=r,a[o+12]=0,a[o+13]=0,a[o+14]=0,a[o+15]=0,a[o+16]=t>>8,a[o+17]=t,a[o+18]=n>>8,a[o+19]=n,a[o+20]=i>>24,a[o+21]=i>>16,a[o+22]=i>>8,a[o+23]=i,e._sQlen+=24,e.flush()},clientFence(e,t,n){const r=e._sQ,i=e._sQlen;r[i]=248,r[i+1]=0,r[i+2]=0,r[i+3]=0,r[i+4]=t>>24,r[i+5]=t>>16,r[i+6]=t>>8,r[i+7]=t;const a=n.length;r[i+8]=a;for(let o=0;o<a;o++)r[i+9+o]=n.charCodeAt(o);e._sQlen+=9+a,e.flush()},enableContinuousUpdates(e,t,n,r,i,a){const o=e._sQ,s=e._sQlen;o[s]=150,o[s+1]=t,o[s+2]=n>>8,o[s+3]=n,o[s+4]=r>>8,o[s+5]=r,o[s+6]=i>>8,o[s+7]=i,o[s+8]=a>>8,o[s+9]=a,e._sQlen+=10,e.flush()},pixelFormat(e,t,n){const r=e._sQ,i=e._sQlen;let a;a=t>16?32:t>8?16:8;const o=Math.floor(t/3);r[i]=0,r[i+1]=0,r[i+2]=0,r[i+3]=0,r[i+4]=a,r[i+5]=t,r[i+6]=0,r[i+7]=n?1:0,r[i+8]=0,r[i+9]=(1<<o)-1,r[i+10]=0,r[i+11]=(1<<o)-1,r[i+12]=0,r[i+13]=(1<<o)-1,r[i+14]=2*o,r[i+15]=1*o,r[i+16]=0*o,r[i+17]=0,r[i+18]=0,r[i+19]=0,e._sQlen+=20,e.flush()},clientEncodings(e,t){const n=e._sQ,r=e._sQlen;n[r]=2,n[r+1]=0,n[r+2]=t.length>>8,n[r+3]=t.length;let i=r+4;for(let a=0;a<t.length;a++){const e=t[a];n[i]=e>>24,n[i+1]=e>>16,n[i+2]=e>>8,n[i+3]=e,i+=4}e._sQlen+=i-r,e.flush()},fbUpdateRequest(e,t,n,r,i,a){const o=e._sQ,s=e._sQlen;"undefined"===typeof n&&(n=0),"undefined"===typeof r&&(r=0),o[s]=3,o[s+1]=t?1:0,o[s+2]=n>>8&255,o[s+3]=255&n,o[s+4]=r>>8&255,o[s+5]=255&r,o[s+6]=i>>8&255,o[s+7]=255&i,o[s+8]=a>>8&255,o[s+9]=255&a,e._sQlen+=10,e.flush()},xvpOp(e,t,n){const r=e._sQ,i=e._sQlen;r[i]=250,r[i+1]=0,r[i+2]=t,r[i+3]=n,e._sQlen+=4,e.flush()}},kl.cursors={none:{rgbaPixels:new Uint8Array,w:0,h:0,hotx:0,hoty:0},dot:{rgbaPixels:new Uint8Array([255,255,255,255,0,0,0,255,255,255,255,255,0,0,0,255,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,255,255,255,255,255]),w:3,h:3,hotx:1,hoty:1}};var xl={props:{url:{type:String,default:""}},components:{BrandImage:K},data(){return{rfb:null,connected:!1,disconnected:!1,reconnectDelay:3e3,reconnecting:!1,maximumRetryTimes:10,retryTimes:0,setTimeout:null}},mounted(){this.$nextTick((()=>{this.connect()}))},beforeUnmount(){this.clearTimeout()},methods:{connect(){const e=new kl(this.$refs.view,this.url);e.addEventListener("connect",(()=>{this.clearTimeout(),this.connected=!0,this.retryTimes=0,this.reconnecting=!1})),e.addEventListener("disconnect",(e=>{this.clearTimeout(),this.disconnected=!0,this.rfb=null,this.reconnect()})),this.rfb=e},reconnect(){if(this.retryTimes>=this.maximumRetryTimes)return this.reconnecting=!1,this.connected=!0,void(this.disconnected=!0);this.retryTimes+=1,this.reconnecting=!0,this.connected=!1,this.disconnected=!1,this.setTimeout=setTimeout((()=>{this.connect()}),this.reconnectDelay)},clearTimeout(){this.setTimeout&&clearTimeout(this.setTimeout)},disconnect(){this.rfb.disconnect()},ctrlAltDelete(){this.rfb.sendCtrlAltDel()},sendKey(e,t,n){this.rfb.sendKey(e,t,n)}}};a(49608);const Al=(0,u.A)(xl,[["render",qn],["__scopeId","data-v-56da10be"]]);var Nl=Al;const Cl={class:"list-unstyled dropdown combination-keys__container"},Tl=["onClick"],Rl=["onClick"];function Ol(e,t,n,r,a,o){const s=(0,i.resolveComponent)("novnc-console-item",!0),l=(0,i.resolveComponent)("v-dropdown");return(0,i.openBlock)(),(0,i.createElementBlock)("ul",Cl,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(n.items,((e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)("li",{key:t},[e.keys?((0,i.openBlock)(),(0,i.createBlock)(l,{key:0,placement:"right-start",trigger:"click",container:!1},{popper:(0,i.withCtx)((()=>[(0,i.createVNode)(s,{items:e.keys,path:n.path,pos:n.pos+1,onUpdate:o.addKeys,onSendKeys:o.sendKeys},null,8,["items","path","pos","onUpdate","onSendKeys"])])),default:(0,i.withCtx)((()=>[(0,i.createElementVNode)("span",{class:(0,i.normalizeClass)([{open:o.getOpenStatus(t,n.pos)},"p-10 hand"]),onClick:e=>o.addKeys({key:t,pos:n.pos})},(0,i.toDisplayString)(e.label),11,Tl)])),_:2},1024)):((0,i.openBlock)(),(0,i.createElementBlock)("span",{key:1,class:"p-10 hand",onClick:e=>o.keysDown(t,n.pos)},(0,i.toDisplayString)(e.label),9,Rl))])))),128))])}var Il={name:"NovncConsoleItem",emits:["send-keys","update"],props:{items:{type:Object,required:!0,default:()=>({})},path:{type:Array,required:!0,default:()=>[]},pos:{type:Number,required:!0,default:0}},methods:{keysDown(e,t){this.addKeys({key:e,pos:t}),this.$emit("send-keys")},addKeys({key:e,pos:t}){this.$emit("update",{key:e,pos:t})},sendKeys(){this.$emit("send-keys")},getOpenStatus(e,t){return this.path[t]===e}}};a(83301);const Ll=(0,u.A)(Il,[["render",Ol],["__scopeId","data-v-11c334cb"]]);var Dl=Ll;const Pl={class:"row"},Ml={class:"col span-12"},Bl={class:"row"},Fl={class:"col span-12"},$l=["disabled"],Ul={class:"displayed-keys mt-20"},jl={class:"text-default-text"},Vl={class:"displayed-banners"},Kl={class:"actions"};function Hl(e,t,n,r,a,o){const s=(0,i.resolveComponent)("t"),l=(0,i.resolveComponent)("Banner"),c=(0,i.resolveComponent)("AsyncButton"),u=(0,i.resolveComponent)("ModalWithCard"),d=(0,i.resolveDirective)("clean-html");return(0,i.openBlock)(),(0,i.createBlock)(u,{name:"recordShortcutKeys",width:550},{title:(0,i.withCtx)((()=>[(0,i.createVNode)(s,{k:"harvester.virtualMachine.detail.console.customShortcutKeys"})])),content:(0,i.withCtx)((()=>[(0,i.createElementVNode)("div",Pl,[(0,i.createElementVNode)("div",Ml,[(0,i.createVNode)(l,{color:"info"},{default:(0,i.withCtx)((()=>[(0,i.withDirectives)((0,i.createElementVNode)("span",null,null,512),[[d,o.keysRecordFormat]])])),_:1})])]),(0,i.createElementVNode)("div",Bl,[(0,i.createElementVNode)("div",Fl,[(0,i.createElementVNode)("button",{class:"btn bg-primary",onClick:t[0]||(t[0]=(...e)=>o.toggleRecording&&o.toggleRecording(...e))},[(0,i.createVNode)(s,{k:o.recordButton},null,8,["k"]),(0,i.createElementVNode)("i",{class:(0,i.normalizeClass)(["icon icon-fw",a.isRecording?"icon-dot-open":"icon-dot"])},null,2)]),(0,i.createElementVNode)("button",{disabled:!o.canAdd,class:"btn bg-primary",onClick:t[1]||(t[1]=(...e)=>o.addShortcutKey&&o.addShortcutKey(...e))},[(0,i.createVNode)(s,{k:"generic.add"})],8,$l)])]),t[3]||(t[3]=(0,i.createElementVNode)("hr",null,null,-1)),(0,i.createElementVNode)("div",Ul,[(0,i.withDirectives)((0,i.createElementVNode)("h4",jl,null,512),[[d,e.t("harvester.virtualMachine.detail.console.record.preferredKeys")]]),(0,i.createElementVNode)("div",Vl,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(o.displayedKeys,((e,t)=>((0,i.openBlock)(),(0,i.createBlock)(l,{key:t},{default:(0,i.withCtx)((()=>[(0,i.withDirectives)((0,i.createElementVNode)("span",null,null,512),[[d,e]])])),_:2},1024)))),128))])])])),footer:(0,i.withCtx)((()=>[(0,i.createElementVNode)("div",Kl,[(0,i.createElementVNode)("button",{class:"btn role-secondary mr-20",onClick:t[2]||(t[2]=(0,i.withModifiers)(((...e)=>o.closeRecordingModal&&o.closeRecordingModal(...e)),["prevent"]))},[(0,i.createVNode)(s,{k:"generic.close"})]),(0,i.createVNode)(c,{mode:"done",onClick:o.saveKeys},null,8,["onClick"])])])),_:1})}var Gl=a(56943),zl=a(89651),ql=a(40973);const Xl="prefered-shortcut-keys";var Wl={name:"NovncConsoleCustomKeys",emits:["close"],components:{ModalWithCard:ql.A,Banner:Gl.A,AsyncButton:zl.A},data(){return{keysRecord:[],addedShortcutKeys:[],preferredShortcutKeys:[],isRecording:!1}},computed:{savedShortcutKeys(){const e=this.$store.getters["management/all"]($.m4.PREFERENCE),t=e?.[0]?.data?.[Xl];let n=[];if(!t)return n;try{n=JSON.parse(t)}catch(Go){this.$store.dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:this.t("harvester.virtualMachine.detail.console.customShortcutKeys")}),err:Go},{root:!0})}return n},displayedKeys(){const e=this.addedShortcutKeys.concat(this.preferredShortcutKeys).map((e=>{const t=e.map((e=>` <code>${e.key.charAt(0).toUpperCase()+e.key.slice(1)}</code>`));return t.join(",")}));return e},recordButton(){return this.isRecording?"harvester.virtualMachine.detail.console.record.stop":"harvester.virtualMachine.detail.console.record.start"},keysRecordFormat(){if(!this.isRecording&&0===this.keysRecord.length)return this.t("harvester.virtualMachine.detail.console.record.tips");const e=this.keysRecord.map((e=>` <code>${e.key.charAt(0).toUpperCase()+e.key.slice(1)}</code>`));return`Keys: ${e.join(",")}`},canAdd(){const e=this.keysRecord.length>0;let t=[].concat(this.preferredShortcutKeys,this.addedShortcutKeys);return!!e&&(t.push(this.keysRecord),t=t.map((e=>{const t=e.map((e=>e.key));return t.join(",")})),t.length===new Set(t).size)}},watch:{savedShortcutKeys:{handler(){this.preferredShortcutKeys=[].concat(this.savedShortcutKeys)||[]},immediate:!0}},methods:{closeRecordingModal(){window.removeEventListener("keydown",this.handleShortcut),this.$emit("close")},toggleRecording(){this.isRecording=!this.isRecording,this.isRecording?(this.keysRecord=[],window.addEventListener("keydown",this.handleShortcut)):window.removeEventListener("keydown",this.handleShortcut)},handleShortcut(e){e.preventDefault();const{key:t,keyCode:n,code:r,location:i,charCode:a}=e;this.keysRecord.push({key:t,keyCode:n,code:r,location:i,charCode:a})},addShortcutKey(){this.addedShortcutKeys.push([].concat(this.keysRecord))},removeKey(e){const t=e.replace(/(\s*)<code>|<\/code>/g,"").replace(/\s*,\s*/g,",");this.addedShortcutKeys=this.addedShortcutKeys.filter((e=>{const n=e.map((e=>e.key.charAt(0).toUpperCase()+e.key.slice(1))).join(",");return n!==t})),this.preferredShortcutKeys=this.preferredShortcutKeys.filter((e=>{const n=e.map((e=>e.key.charAt(0).toUpperCase()+e.key.slice(1))).join(",");return n!==t}))},async saveKeys(e){const t=[].concat(this.preferredShortcutKeys,this.addedShortcutKeys),n=this.$store.getters["management/all"]($.m4.PREFERENCE)?.[0];try{n.data[Xl]=JSON.stringify(t),await n.save(),this.closeRecordingModal(),e(!0)}catch(Go){e(!1)}}}};a(72001);const Yl=(0,u.A)(Wl,[["render",Hl],["__scopeId","data-v-7821dcb9"]]);var Ql=Yl;const Jl="prefered-shortcut-keys",Zl={ControlLeft:{label:"Ctrl",value:an.XK_Control_L},AltLeft:{label:"Alt",value:an.XK_Alt_L}},ec={Delete:{label:"Del",value:an.XK_Delete},PrintScreen:{label:"Print Screen",value:an.XK_Print}},tc={KeyN:{label:"N",value:an.XK_n},KeyT:{label:"T",value:an.XK_t},KeyW:{label:"W",value:an.XK_w},KeyY:{label:"Y",value:an.XK_y}},nc={F1:{label:"F1",value:an.XK_F1},F2:{label:"F2",value:an.XK_F2},F3:{label:"F3",value:an.XK_F3},F4:{label:"F4",value:an.XK_F4},F5:{label:"F5",value:an.XK_F5},F6:{label:"F6",value:an.XK_F6},F7:{label:"F7",value:an.XK_F7},F8:{label:"F8",value:an.XK_F8},F9:{label:"F9",value:an.XK_F9},F10:{label:"F10",value:an.XK_F10},F11:{label:"F11",value:an.XK_F11},F12:{label:"F12",value:an.XK_F12}};var rc={name:"NovncConsoleWrapper",components:{NovncConsole:Nl,NovncConsoleItem:Dl,NovncConsoleCustomKeys:Ql},async fetch(){const e={vmResource:this.$store.dispatch("harvester/find",{type:l.rk.VM,id:this.value.id})},t=await(0,ce.kR)(e);this.vmResource=t.vmResource},props:{value:{type:Object,required:!0,default:()=>({})}},data(){return{keysRecord:[],vmResource:{},renderKeysModal:!1,currentUser:null,hideCustomKeysBar:!1}},computed:{savedShortcutKeys(){const e=this.$store.getters["management/all"]($.m4.PREFERENCE),t=e?.[0]?.data?.[Jl];let n=[];if(!e?.[0]?.data)return this.hideCustomKeysBar=!0,n;if(!t)return n;try{n=JSON.parse(t)}catch(Go){this.$store.dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,rn.ZD)(this.value.metadata.name)}),err:Go},{root:!0})}return n},isDown(){return this.isEmpty(this.value)},url(){const e=`${window.location.hostname}:${window.location.port}`;return`wss://${e}${this.value?.getVMIApiPath}`},allKeys(){return{...Zl,...ec,...tc,...nc}},keymap(){const e={...Zl,PrintScreen:ec.PrintScreen,...nc};return e.AltLeft.keys={PrintScreen:ec.PrintScreen,...nc},e.ControlLeft.keys={AltLeft:{...Object.assign(Zl.AltLeft,{}),keys:{Delete:ec.Delete}},...tc},e},hasSoftRebootAction(){return!!this.vmResource?.actions?.softreboot},preferredShortcutKeys(){return(this.savedShortcutKeys||[]).map((e=>({label:e.map((e=>e.key.charAt(0).toUpperCase()+e.key.slice(1))).join("+"),value:e})))}},methods:{isEmpty(e){return void 0!==e&&0===Object.keys(e).length},close(){this.$refs.novncConsole.disconnect()},update({key:e,pos:t}){this.keysRecord.splice(t,this.keysRecord.length-t,e)},sendKeys(){this.keysRecord.forEach((e=>{this.$refs.novncConsole.sendKey(this.allKeys[e].value,e,!0)})),this.keysRecord.reverse().forEach((e=>{this.$refs.novncConsole.sendKey(this.allKeys[e].value,e,!1)})),this.$refs.popover.isOpen=!1,this.keysRecord=[]},sendCustomKeys(e){const t=[].concat(e);t.forEach((e=>{this.$refs.novncConsole.sendKey(Bn(e),Pn(e),!0)})),t.reverse().forEach((e=>{this.$refs.novncConsole.sendKey(Bn(e),Pn(e),!1)}))},softReboot(){this.vmResource.softrebootVM()},showKeysModal(){this.renderKeysModal=!0},hideKeysModal(){this.renderKeysModal=!1}}};a(42596);const ic=(0,u.A)(rc,[["render",nn],["__scopeId","data-v-55ed4d1a"]]);var ac=ic,oc={components:{NovncConsoleWrapper:ac,Loading:Me.A},async fetch(){this.rows=await this.$store.dispatch("harvester/findAll",{type:l.rk.VMI})},data(){return{uid:this.$route.params.uid}},computed:{vmi(){const e=this.$store.getters["harvester/all"](l.rk.VMI)||[],t=e.find((e=>e?.metadata?.ownerReferences?.[0]?.uid===this.uid));return t}},mounted(){window.addEventListener("beforeunload",(()=>{this.$refs.console.close()}))},head(){return{title:this.vmi?.metadata?.name}}};a(9252);const sc=(0,u.A)(oc,[["render",Xt]]);var lc=sc;function cc(e,t,n,r,a,o){const s=(0,i.resolveComponent)("ResourceList");return(0,i.openBlock)(),(0,i.createBlock)(s)}const uc={key:2,class:"outlet"},dc={key:1};function hc(e,t,n,r,a,o){const s=(0,i.resolveComponent)("IconMessage"),l=(0,i.resolveComponent)("Masthead"),c=(0,i.resolveComponent)("ExtensionPanel"),u=(0,i.resolveComponent)("ResourceTable");return e.namespaceFilterRequired?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0,vertical:!0,subtle:!1,icon:"icon-filter_alt"},{message:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("resourceList.nsFiltering")),1)])),_:1})):e.paginationNsFilterRequired?((0,i.openBlock)(),(0,i.createBlock)(s,{key:1,vertical:!0,subtle:!1,icon:"icon-filter_alt"},{message:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("resourceList.nsFilteringGeneric")),1)])),_:1})):((0,i.openBlock)(),(0,i.createElementBlock)("div",uc,[a.showMasthead?((0,i.openBlock)(),(0,i.createBlock)(l,{key:0,"type-display":a.customTypeDisplay,schema:a.schema,resource:a.resource,"show-incremental-loading-indicator":o.showIncrementalLoadingIndicator,"load-resources":a.loadResources,"load-indeterminate":a.loadIndeterminate},{extraActions:(0,i.withCtx)((()=>[(0,i.renderSlot)(e.$slots,"extraActions",{},void 0,!0)])),_:3},8,["type-display","schema","resource","show-incremental-loading-indicator","load-resources","load-indeterminate"])):(0,i.createCommentVNode)("",!0),(0,i.createVNode)(c,{resource:{},type:a.extensionType,location:a.extensionLocation},null,8,["type","location"]),a.hasListComponent?((0,i.openBlock)(),(0,i.createElementBlock)("div",dc,[((0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(e.listComponent),(0,i.mergeProps)({"incremental-loading-indicator":o.showIncrementalLoadingIndicator,rows:e.rows},e.$data),null,16,["incremental-loading-indicator","rows"]))])):((0,i.openBlock)(),(0,i.createBlock)(u,{key:2,schema:a.schema,rows:e.rows,"alt-loading":e.canPaginate&&!e.isFirstLoad,loading:e.loading,headers:o.headers,"group-by":o.groupBy,"has-advanced-filtering":n.hasAdvancedFiltering,"adv-filter-hide-labels-as-cols":n.advFilterHideLabelsAsCols,"adv-filter-prevent-filtering-labels":n.advFilterPreventFilteringLabels,"use-query-params-for-simple-filtering":a.useQueryParamsForSimpleFiltering,"force-update-live-and-delayed":e.forceUpdateLiveAndDelayed,"external-pagination-enabled":e.canPaginate,"external-pagination-result":e.paginationResult,onPaginationChanged:e.paginationChanged},null,8,["schema","rows","alt-loading","loading","headers","group-by","has-advanced-filtering","adv-filter-hide-labels-as-cols","adv-filter-prevent-filtering-labels","use-query-params-for-simple-filtering","force-update-live-and-delayed","external-pagination-enabled","external-pagination-result","onPaginationChanged"]))]))}var pc=a(31400),fc=a(66656),mc=a(44453),gc=a(23667);const vc={class:"message"};function bc(e,t,n,r,a,o){return(0,i.openBlock)(),(0,i.createElementBlock)("div",{class:(0,i.normalizeClass)(["message-icon",{vertical:n.vertical,subtle:n.subtle}])},[(0,i.createElementVNode)("i",{class:(0,i.normalizeClass)(["icon",{[n.icon]:!0,[n.iconState]:!!n.iconState}])},null,2),(0,i.createElementVNode)("div",vc,[(0,i.renderSlot)(e.$slots,"message",{},(()=>[n.messageKey?((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:0},[(0,i.createTextVNode)((0,i.toDisplayString)(e.t(n.messageKey)),1)],64)):((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:1},[(0,i.createTextVNode)((0,i.toDisplayString)(n.message),1)],64))]),!0)])],2)}var yc={props:{vertical:{type:Boolean,default:!1},icon:{type:String,required:!0},iconState:{type:String,default:null},message:{type:String,default:null},messageKey:{type:String,default:null},subtle:{type:Boolean,default:!1}}};a(47668);const wc=(0,u.A)(yc,[["render",bc],["__scopeId","data-v-01996ade"]]);var Ec=wc,_c=a(90703),Sc=a(31915);const kc={key:0};function xc(e,t,n,r,a,o){return a.extensionData.length?((0,i.openBlock)(),(0,i.createElementBlock)("div",kc,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(a.extensionData,((e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:`extensionData${n.location}${t}`},[((0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(e.component),{resource:n.resource},null,8,["resource"]))])))),128))])):(0,i.createCommentVNode)("",!0)}var Ac=a(25659),Nc={name:"ExtensionPanel",props:{resource:{type:Object,default:()=>({})},type:{type:String,default:""},location:{type:String,default:""}},data(){return{extensionData:(0,Ac.A)(this,this.type,this.location,this.$route)}}};const Cc=(0,u.A)(Nc,[["render",xc]]);var Tc=Cc,Rc={name:_c.v,components:{Loading:Me.A,ResourceTable:pc.A,Masthead:fc.A,ResourceLoadingIndicator:mc.A,IconMessage:Ec,ExtensionPanel:Tc},mixins:[gc.A],props:{hasAdvancedFiltering:{type:Boolean,default:!1},advFilterHideLabelsAsCols:{type:Boolean,default:!1},advFilterPreventFilteringLabels:{type:Boolean,default:!1}},async fetch(){const e=this.$store,t=this.resource,n=this.schema;if(this.hasListComponent){const e=this.listComponent,n=await e.__asyncLoader();if(n?.typeDisplay&&(this.customTypeDisplay=n.typeDisplay.apply(this)),(n?.fetch||n?.components?.["PaginatedResourceTable"])&&(this.componentWillFetch=!0),n?.$loadingResources){const{loadResources:e,loadIndeterminate:r}=n?.$loadingResources(this.$route,this.$store);this.loadResources=e||[t],this.loadIndeterminate=r||!1}}if(!this.componentWillFetch){if(!n)return void e.dispatch("loadingError",new Error(this.t("nav.failWhale.resourceListNotFound",{resource:t},!0)));this.namespaceFilterRequired||this.canPaginate&&!this.refreshFlag||await this.$fetchType(t)}},data(){const e=this.$store.getters,t={...this.$route.params},n=t.resource,r=e["type-map/hasCustomList"](n),i=e["currentStore"](n),a=e[`${i}/schemaFor`](n),o=e["type-map/optionsFor"](n).showListMasthead;return{schema:a,hasListComponent:r,showMasthead:void 0===o||o,resource:n,extensionType:Sc.c7.PANEL,extensionLocation:Sc.W7.RESOURCE_LIST,loadResources:[n],componentWillFetch:!1,manualRefreshInit:!1,watch:!1,force:!1,customTypeDisplay:null,loadIndeterminate:!1,useQueryParamsForSimpleFiltering:!0}},computed:{headers(){return this.hasListComponent||!this.schema?[]:this.$store.getters["type-map/headersFor"](this.schema,this.canPaginate)},groupBy(){return this.$store.getters["type-map/groupByFor"](this.schema)},showIncrementalLoadingIndicator(){return this.perfConfig?.incrementalLoading?.enabled}},watch:{namespaceFilter(e,t){if(e&&!this.componentWillFetch){if((0,Se.P1)(e,t))return;this.$fetchType(this.resource)}},pagination(e,t){!e||this.componentWillFetch||this.paginationEqual(e,t)||this.$fetchType(this.resource)},rows(e){this.pagination&&this.pagination.page>1&&0===e.length&&this.setPagination({...this.pagination,page:this.pagination.page-1})}},created(){let e=!1;const t=this.$route.params.resource,n=this.$store.getters["type-map/hasCustomList"](t);n&&(e=this.$store.getters["type-map/importList"](t)),this.listComponent=e}};a(44220);const Oc=(0,u.A)(Rc,[["render",hc],["__scopeId","data-v-515e48d4"]]);var Ic=Oc,Lc={name:"HarvesterResourcedList",components:{ResourceList:Ic}};const Dc=(0,u.A)(Lc,[["render",cc]]);var Pc=Dc;const Mc={key:1},Bc={class:"mb-20"},Fc={class:"row mb-20"},$c={class:"col span-6"},Uc={class:"mt-20 mb-5 pb-5"},jc={class:"text-label"},Vc={class:"row mt-10 mb-20"},Kc={key:0,class:"row mb-20"},Hc={class:"col logo-container span-6"},Gc={class:"mb-10"},zc={class:"text-muted"},qc=["src"],Xc={class:"col logo-container span-6"},Wc={class:"mb-10"},Yc={class:"text-muted"},Qc=["src"],Jc={class:"mt-20 mb-5 pb-5"},Zc={class:"text-label"},eu={class:"row mt-10 mb-20"},tu={key:1,class:"row mb-20"},nu={class:"col logo-container span-12"},ru={class:"mb-10"},iu={class:"text-muted"},au=["src"],ou={class:"mt-40 mb-5 pb-0"},su={class:"text-label"},lu={class:"row mt-20"},cu={key:2,class:"row mt-20 mb-20"},uu={class:"mt-40 mb-5 pb-0"},du={class:"text-label"},hu={class:"row mt-20"},pu={key:3,class:"row mt-20 mb-20"},fu={class:"col link-example"},mu={key:0};function gu(e,t,n,r,a,o){const s=(0,i.resolveComponent)("Loading"),l=(0,i.resolveComponent)("TypeDescription"),c=(0,i.resolveComponent)("LabeledInput"),u=(0,i.resolveComponent)("Checkbox"),d=(0,i.resolveComponent)("FileSelector"),h=(0,i.resolveComponent)("SimpleBox"),p=(0,i.resolveComponent)("ColorInput"),f=(0,i.resolveComponent)("Banner"),m=(0,i.resolveComponent)("AsyncButton");return e.$fetchState.pending?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0})):((0,i.openBlock)(),(0,i.createElementBlock)("div",Mc,[(0,i.createElementVNode)("h1",Bc,(0,i.toDisplayString)(e.t("branding.label")),1),(0,i.createVNode)(l,{resource:"harvester"}),(0,i.createElementVNode)("div",null,[(0,i.createElementVNode)("div",Fc,[(0,i.createElementVNode)("div",$c,[(0,i.createVNode)(c,{value:a.uiPLSetting.value,"onUpdate:value":t[0]||(t[0]=e=>a.uiPLSetting.value=e),label:e.t("branding.uiPL.label"),mode:o.mode,maxlength:100},null,8,["value","label","mode"])])]),(0,i.createElementVNode)("h3",Uc,(0,i.toDisplayString)(e.t("branding.logos.label")),1),(0,i.createElementVNode)("label",jc,(0,i.toDisplayString)(e.t("harvester.branding.logos.tip",{},!0)),1),(0,i.createElementVNode)("div",Vc,[(0,i.createVNode)(u,{value:a.customizeLogo,"onUpdate:value":t[1]||(t[1]=e=>a.customizeLogo=e),label:e.t("branding.logos.useCustom"),mode:o.mode},null,8,["value","label","mode"])]),a.customizeLogo?((0,i.openBlock)(),(0,i.createElementBlock)("div",Kc,[(0,i.createElementVNode)("div",Hc,[(0,i.createElementVNode)("div",Gc,[(0,i.createVNode)(d,{"byte-limit":2e4,"read-as-data-url":!0,class:"role-secondary",label:e.t("branding.logos.uploadLight"),mode:o.mode,onError:o.setError,onSelected:t[2]||(t[2]=e=>o.updateLogo(e,"uiLogoLight"))},null,8,["label","mode","onError"])]),a.uiLogoLight||a.uiLogoDark?((0,i.openBlock)(),(0,i.createBlock)(h,{key:0,class:"theme-light mb-10"},{default:(0,i.withCtx)((()=>[(0,i.createElementVNode)("label",zc,(0,i.toDisplayString)(e.t("branding.logos.lightPreview")),1),(0,i.createElementVNode)("img",{class:"logo-preview",src:a.uiLogoLight?a.uiLogoLight:a.uiLogoDark},null,8,qc)])),_:1})):(0,i.createCommentVNode)("",!0)]),(0,i.createElementVNode)("div",Xc,[(0,i.createElementVNode)("div",Wc,[(0,i.createVNode)(d,{"byte-limit":2e4,"read-as-data-url":!0,class:"role-secondary",label:e.t("branding.logos.uploadDark"),mode:o.mode,onError:o.setError,onSelected:t[3]||(t[3]=e=>o.updateLogo(e,"uiLogoDark"))},null,8,["label","mode","onError"])]),a.uiLogoDark||a.uiLogoLight?((0,i.openBlock)(),(0,i.createBlock)(h,{key:0,class:"theme-dark mb-10"},{default:(0,i.withCtx)((()=>[(0,i.createElementVNode)("label",Yc,(0,i.toDisplayString)(e.t("branding.logos.darkPreview")),1),(0,i.createElementVNode)("img",{class:"logo-preview",src:a.uiLogoDark?a.uiLogoDark:a.uiLogoLight},null,8,Qc)])),_:1})):(0,i.createCommentVNode)("",!0)])])):(0,i.createCommentVNode)("",!0),(0,i.createElementVNode)("h3",Jc,(0,i.toDisplayString)(e.t("branding.favicon.label")),1),(0,i.createElementVNode)("label",Zc,(0,i.toDisplayString)(e.t("harvester.branding.favicon.tip",{},!0)),1),(0,i.createElementVNode)("div",eu,[(0,i.createVNode)(u,{value:a.customizeFavicon,"onUpdate:value":t[4]||(t[4]=e=>a.customizeFavicon=e),label:e.t("branding.favicon.useCustom"),mode:o.mode},null,8,["value","label","mode"])]),a.customizeFavicon?((0,i.openBlock)(),(0,i.createElementBlock)("div",tu,[(0,i.createElementVNode)("div",nu,[(0,i.createElementVNode)("div",ru,[(0,i.createVNode)(d,{"byte-limit":2e4,"read-as-data-url":!0,class:"role-secondary",label:e.t("branding.favicon.upload"),mode:o.mode,onError:o.setError,onSelected:t[5]||(t[5]=e=>o.updateLogo(e,"uiFavicon"))},null,8,["label","mode","onError"])]),a.uiFavicon?((0,i.openBlock)(),(0,i.createBlock)(h,{key:0},{default:(0,i.withCtx)((()=>[(0,i.createElementVNode)("label",iu,(0,i.toDisplayString)(e.t("branding.favicon.preview")),1),(0,i.createElementVNode)("img",{class:"logo-preview",src:a.uiFavicon},null,8,au)])),_:1})):(0,i.createCommentVNode)("",!0)])])):(0,i.createCommentVNode)("",!0),(0,i.createElementVNode)("h3",ou,(0,i.toDisplayString)(e.t("branding.color.label")),1),(0,i.createElementVNode)("label",su,(0,i.toDisplayString)(e.t("branding.color.tip",{},!0)),1),(0,i.createElementVNode)("div",lu,[(0,i.createVNode)(u,{value:a.customizeColor,"onUpdate:value":t[6]||(t[6]=e=>a.customizeColor=e),label:e.t("branding.color.useCustom"),mode:o.mode},null,8,["value","label","mode"])]),a.customizeColor?((0,i.openBlock)(),(0,i.createElementBlock)("div",cu,[(0,i.createVNode)(p,{value:a.uiColor,"onUpdate:value":t[7]||(t[7]=e=>a.uiColor=e),"component-testid":"primary"},null,8,["value"])])):(0,i.createCommentVNode)("",!0),(0,i.createElementVNode)("h3",uu,(0,i.toDisplayString)(e.t("branding.linkColor.label")),1),(0,i.createElementVNode)("label",du,(0,i.toDisplayString)(e.t("branding.linkColor.tip",{},!0)),1),(0,i.createElementVNode)("div",hu,[(0,i.createVNode)(u,{value:a.customizeLinkColor,"onUpdate:value":t[8]||(t[8]=e=>a.customizeLinkColor=e),label:e.t("branding.linkColor.useCustom"),mode:o.mode},null,8,["value","label","mode"])]),a.customizeLinkColor?((0,i.openBlock)(),(0,i.createElementBlock)("div",pu,[(0,i.createVNode)(p,{value:a.uiLinkColor,"onUpdate:value":t[9]||(t[9]=e=>a.uiLinkColor=e),class:"col","component-testid":"link"},null,8,["value"]),(0,i.createElementVNode)("span",fu,[(0,i.createElementVNode)("a",{style:(0,i.normalizeStyle)(o.customLinkColor)},(0,i.toDisplayString)(e.t("branding.linkColor.example")),5)])])):(0,i.createCommentVNode)("",!0)]),((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(a.errors,((e,t)=>((0,i.openBlock)(),(0,i.createBlock)(f,{key:t,color:"error",label:e},null,8,["label"])))),128)),"edit"===o.mode?((0,i.openBlock)(),(0,i.createElementBlock)("div",mu,[(0,i.createVNode)(m,{"component-testid":"branding-apply",class:"pull-right mt-20",mode:"apply",onClick:o.save},null,8,["onClick"])])):(0,i.createCommentVNode)("",!0)]))}var vu=a(79380);const bu=["data-testid","tabindex"],yu={class:"text-label"},wu=["data-testid"],Eu=["aria-disabled","aria-label","disabled","value"],_u={class:"text-muted color-value"};function Su(e,t,n,r,a,o){const s=(0,i.resolveComponent)("t");return(0,i.openBlock)(),(0,i.createElementBlock)("div",{class:(0,i.normalizeClass)(["color-input",{[n.mode]:n.mode,disabled:o.isDisabled}]),"data-testid":n.componentTestid+"-color-input",tabindex:o.isDisabled?-1:0,onKeydown:t[2]||(t[2]=(0,i.withKeys)((0,i.withModifiers)((()=>{}),["prevent"]),["space"])),onKeyup:t[3]||(t[3]=(0,i.withKeys)((0,i.withModifiers)((e=>o.handleKeyup(e)),["stop"]),["enter","space"]))},[(0,i.createElementVNode)("label",yu,[n.labelKey?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0,k:n.labelKey,raw:!0},null,8,["k"])):(0,i.createCommentVNode)("",!0),(0,i.createTextVNode)((0,i.toDisplayString)(n.label),1)]),(0,i.createElementVNode)("div",{"data-testid":n.componentTestid+"-color-input_preview-container",class:"preview-container",onClick:t[1]||(t[1]=(0,i.withModifiers)((t=>e.$refs.input.click(t)),["stop"]))},[(0,i.createElementVNode)("span",{style:(0,i.normalizeStyle)({"background-color":o.inputValue}),class:"color-display"},[(0,i.createElementVNode)("input",{ref:"input","aria-disabled":o.isDisabled?"true":"false","aria-label":e.t("generic.colorPicker"),type:"color",disabled:o.isDisabled,tabindex:"-1",value:o.inputValue,onInput:t[0]||(t[0]=t=>e.$emit("update:value",t.target.value))},null,40,Eu)],4),(0,i.createElementVNode)("span",_u,(0,i.toDisplayString)(o.inputValue),1)],8,wu)],42,bu)}var ku=a(14220),xu={emits:["update:value"],props:{value:{type:String,default:""},defaultValue:{type:String,default:""},label:{type:String,default:null},labelKey:{type:String,default:null},mode:{type:String,validator(e){return[ku.G5,ku.nW].includes(e)},default:ku.G5},componentTestid:{type:String,default:"color-input"},disabled:{type:Boolean,default:!1}},data(){return{viewMode:ku.nW,editMode:ku.G5}},computed:{inputValue(){return this.value?this.value:this.defaultValue},isDisabled(){const e=this.disabled;return this.mode!==this.editMode||e}},mounted(){this.$emit("update:value",this.inputValue)},methods:{handleKeyup(e){return this.isDisabled?"":this.$refs.input.click(e)}}};a(78035);const Au=(0,u.A)(xu,[["render",Su],["__scopeId","data-v-51338ccf"]]);var Nu=Au,Cu=a(89559),Tu=a(42200),Ru=a(29649),Ou=a(9980),Iu=a(34765);let Lu=!1;function Du(e){const t=e.getters["management/byId"]($.Mc.SETTING,U.HG.FAVICON),n=e.getters["management/byId"]($.Mc.SETTING,U.HG.BRAND),r=Mu(document.head.getElementsByTagName("link"));if(r){let e;"suse"===n?.value?e=a(17089):"csp"===n?.value?e=a(31365):"harvester"===n?.value&&(e=a(23561)),r.href=t?.value||e||Bu,Lu=!0}}function Pu(){const e=Mu(document.head.getElementsByTagName("link"));return e?e.href:""}function Mu(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.rel?.includes("icon"))return n}}const Bu=Pu(),Fu=a(70465);var $u={components:{LabeledInput:vu.o,Checkbox:Tu.S,FileSelector:Ru.A,Loading:Me.A,SimpleBox:ae.A,AsyncButton:zl.A,Banner:Ou.l,ColorInput:Nu,TypeDescription:Cu.A},async fetch(){const e=await(0,ce.kR)({uiPLSetting:this.$store.dispatch("management/find",{type:$.Mc.SETTING,id:U.HG.PL}),uiLogoDarkSetting:(0,Iu.eB)(this.$store,U.HG.LOGO_DARK,""),uiLogoLightSetting:(0,Iu.eB)(this.$store,U.HG.LOGO_LIGHT,""),uiColorSetting:(0,Iu.eB)(this.$store,U.HG.PRIMARY_COLOR,""),uiLinkColorSetting:(0,Iu.eB)(this.$store,U.HG.LINK_COLOR,""),uiFaviconSetting:(0,Iu.eB)(this.$store,U.HG.FAVICON,"")});if(Object.assign(this,e),e.uiLogoDarkSetting.value)try{this.uiLogoDark=e.uiLogoDarkSetting.value,this.customizeLogo=!0}catch{}if(e.uiLogoLightSetting.value)try{this.uiLogoLight=e.uiLogoLightSetting.value,this.customizeLogo=!0}catch{}if(e.uiFaviconSetting.value)try{this.uiFavicon=e.uiFaviconSetting.value,this.customizeFavicon=!0}catch{}e.uiColorSetting.value&&(this.uiColor=Fu(e.uiColorSetting.value).hex(),this.customizeColor=!0),e.uiLinkColorSetting.value&&(this.uiLinkColor=Fu(e.uiLinkColorSetting.value).hex(),this.customizeLinkColor=!0)},data(){return{vendor:(0,le.f7)(),uiPLSetting:{},uiLogoDarkSetting:{},uiLogoDark:"",uiLogoLightSetting:{},uiLogoLight:"",customizeLogo:!1,uiFaviconSetting:{},uiFavicon:"",customizeFavicon:!1,uiColorSetting:{},uiColor:null,customizeColor:!1,uiLinkColorSetting:{},uiLinkColor:null,customizeLinkColor:!1,errors:[]}},computed:{mode(){const e=this.$store.getters["management/schemaFor"]($.Mc.SETTING);return e?.resourceMethods?.includes("PUT")?ku.G5:ku.nW},customLinkColor(){return{color:this.uiLinkColor}}},mounted(){let e=getComputedStyle(document.body).getPropertyValue("--primary"),t=getComputedStyle(document.body).getPropertyValue("--link");const n=document.querySelector(".suse");n&&(e=getComputedStyle(n).getPropertyValue("--primary"),t=getComputedStyle(n).getPropertyValue("--link")),this.uiColor=this.uiColor||e.trim(),this.uiLinkColor=this.uiLinkColor||t.trim()},methods:{updateLogo(e,t){this[t]=e},setError(e){this.errors=[],this.errors.push(e)},async save(e){this.uiPLSetting.value=this.uiPLSetting.value.replaceAll(/[\<>&=#()"]/gm,""),this.customizeLogo?(this.uiLogoLightSetting.value=this.uiLogoLight,this.uiLogoDarkSetting.value=this.uiLogoDark):(this.uiLogoLightSetting.value="",this.uiLogoDarkSetting.value=""),this.customizeFavicon?this.uiFaviconSetting.value=this.uiFavicon:this.uiFaviconSetting.value="",this.customizeColor?this.uiColorSetting.value=Fu(this.uiColor).rgb().string():this.uiColorSetting.value=null,this.customizeLinkColor?this.uiLinkColorSetting.value=Fu(this.uiLinkColor).rgb().string():this.uiLinkColorSetting.value=null,this.errors=[];try{await Promise.all([this.uiPLSetting.save(),this.uiLogoDarkSetting.save(),this.uiLogoLightSetting.save(),this.uiColorSetting.save(),this.uiLinkColorSetting.save(),this.uiFaviconSetting.save()]),this.uiPLSetting.value!==this.vendor&&(0,le.xc)(this.uiPLSetting.value),Du(this.$store),e(!0)}catch(Go){this.errors.push(Go),e(!1)}}}};a(75280);const Uu=(0,u.A)($u,[["render",gu],["__scopeId","data-v-45ae37da"]]);var ju=Uu;function Vu(e,t,n,r,a,o){const s=(0,i.resolveComponent)("ResourceDetail");return(0,i.openBlock)(),(0,i.createBlock)(s)}const Ku={key:1},Hu={key:1,id:"cru-errors",class:"cru__errors"},Gu=["data-testid"],zu=["data-testid"],qu=["data-testid"],Xu=["data-testid"];function Wu(e,t,n,r,a,o){const s=(0,i.resolveComponent)("Loading"),l=(0,i.resolveComponent)("DetailTop"),c=(0,i.resolveComponent)("Masthead"),u=(0,i.resolveComponent)("Banner"),d=(0,i.resolveComponent)("ForceDirectedTreeChart"),h=(0,i.resolveComponent)("ResourceYaml"),p=(0,i.resolveDirective)("shortkey");return e.$fetchState.pending||a.notFound?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0})):((0,i.openBlock)(),(0,i.createElementBlock)("div",Ku,[e.showMasthead?((0,i.openBlock)(),(0,i.createBlock)(c,{key:0,resource:a.resourceType,value:a.liveModel,mode:a.mode,"real-mode":o.realMode,as:a.as,"has-graph":a.hasGraph,"has-detail":a.hasCustomDetail,"has-edit":a.hasCustomEdit,"can-view-yaml":a.canViewYaml,"resource-subtype":a.resourceSubtype,"parent-route-override":n.parentRouteOverride,"store-override":n.storeOverride},{default:(0,i.withCtx)((()=>[o.isView&&o.isDetail?((0,i.openBlock)(),(0,i.createBlock)(l,{key:0,value:a.liveModel},null,8,["value"])):(0,i.createCommentVNode)("",!0)])),_:1},8,["resource","value","mode","real-mode","as","has-graph","has-detail","has-edit","can-view-yaml","resource-subtype","parent-route-override","store-override"])):(0,i.createCommentVNode)("",!0),o.hasErrors?((0,i.openBlock)(),(0,i.createElementBlock)("div",Hu,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(a.errors,((e,t)=>((0,i.openBlock)(),(0,i.createBlock)(u,{key:t,color:"error","data-testid":`error-banner${t}`,label:o.stringify(o.mappedErrors[e].message),icon:o.mappedErrors[e].icon,closable:!0,onClose:e=>o.closeError(t)},null,8,["data-testid","label","icon","onClose"])))),128))])):(0,i.createCommentVNode)("",!0),o.isGraph&&a.canViewChart?((0,i.openBlock)(),(0,i.createBlock)(d,{key:2,data:a.chartData,"fdc-config":e.getGraphConfig},null,8,["data","fdc-config"])):o.isYaml?((0,i.openBlock)(),(0,i.createBlock)(h,{key:3,ref:"resourceyaml",value:a.value,mode:a.mode,yaml:a.yaml,"offer-preview":o.offerPreview,"done-route":e.doneRoute,"done-override":a.value?a.value.doneOverride:null,"onUpdate:value":t[0]||(t[0]=t=>e.$emit("input",t)),onError:t[1]||(t[1]=e=>a.errors.push(e))},null,8,["value","mode","yaml","offer-preview","done-route","done-override"])):((0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(o.showComponent),(0,i.mergeProps)({key:4,ref:"comp",value:a.value,"onUpdate:value":t[2]||(t[2]=e=>a.value=e)},e.$data,{"done-params":e.doneParams,"done-route":e.doneRoute,mode:a.mode,"initial-value":a.initialModel,"live-value":a.liveModel,"real-mode":o.realMode,class:{"flex-content":n.flexContent},"onUpdate:value":t[3]||(t[3]=t=>e.$emit("input",t)),onSetSubtype:o.setSubtype}),null,16,["value","done-params","done-route","mode","initial-value","live-value","real-mode","class","onSetSubtype"])),o.isView?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("button",{key:5,"data-testid":n.componentTestid+"-detail",class:"hide",onShortkey:t[4]||(t[4]=e=>o.keyAction("goToDetail"))},null,40,Gu)),[[p,["shift","d"],void 0,{once:!0}]]):(0,i.createCommentVNode)("",!0),o.isView?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("button",{key:6,"data-testid":n.componentTestid+"-config",class:"hide",onShortkey:t[5]||(t[5]=e=>o.keyAction("goToViewConfig"))},null,40,zu)),[[p,["shift","c"],void 0,{once:!0}]]):(0,i.createCommentVNode)("",!0),o.isView?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("button",{key:7,"data-testid":n.componentTestid+"-yaml",class:"hide",onShortkey:t[6]||(t[6]=e=>o.keyAction("goToViewYaml"))},null,40,qu)),[[p,["shift","y"],void 0,{once:!0}]]):(0,i.createCommentVNode)("",!0),o.isView?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("button",{key:8,"data-testid":n.componentTestid+"-edit",class:"hide",onShortkey:t[7]||(t[7]=e=>o.keyAction("goToEdit"))},null,40,Xu)),[[p,["shift","e"],void 0,{once:!0}]]):(0,i.createCommentVNode)("",!0)]))}var Yu=a(65375),Qu=a(39426),Ju=a(37648);const Zu={class:"masthead"},ed={class:"title"},td={class:"primaryheader"},nd={key:3},rd={key:4},id={key:7,class:"masthead-istio"},ad={class:"icon icon-sm icon-istio"},od=["href"],sd={key:0,class:"subheader"},ld={key:0},cd={key:1},ud={key:2},dd={key:1},hd={key:3},pd={key:4,"data-testid":"masthead-subheader-createdBy"},fd={key:1,"data-testid":"masthead-subheader-createdBy_plain-text"},md={key:5},gd={class:"live-data"},vd={class:"actions-container align-start"},bd={class:"actions"},yd=["disabled"];function wd(e,t,n,r,a,o){const s=(0,i.resolveComponent)("TabTitle"),l=(0,i.resolveComponent)("router-link"),c=(0,i.resolveComponent)("t"),u=(0,i.resolveComponent)("BadgeState"),d=(0,i.resolveComponent)("LiveDate"),h=(0,i.resolveComponent)("ButtonGroup"),p=(0,i.resolveComponent)("ExtensionPanel"),f=(0,i.resolveComponent)("Banner"),m=(0,i.resolveDirective)("clean-tooltip");return(0,i.openBlock)(),(0,i.createElementBlock)("div",Zu,[(0,i.createElementVNode)("header",null,[(0,i.createElementVNode)("div",ed,[(0,i.createElementVNode)("div",td,[(0,i.createElementVNode)("h1",null,[o.isCreate?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0,showChild:!1},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(o.parent.displayName),1)])),_:1})):((0,i.openBlock)(),(0,i.createBlock)(s,{key:1,showChild:!1},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(o.displayName),1)])),_:1})),o.location?((0,i.openBlock)(),(0,i.createBlock)(l,{key:2,to:o.location,role:"link",class:"masthead-resource-list-link","aria-label":o.parent.displayName},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(o.parent.displayName)+": ",1)])),_:1},8,["to","aria-label"])):((0,i.openBlock)(),(0,i.createElementBlock)("span",nd,(0,i.toDisplayString)(o.parent.displayName)+":",1)),n.value?.detailPageHeaderActionOverride&&n.value?.detailPageHeaderActionOverride(n.realMode)?((0,i.openBlock)(),(0,i.createElementBlock)("span",rd,(0,i.toDisplayString)(n.value?.detailPageHeaderActionOverride(n.realMode)),1)):((0,i.openBlock)(),(0,i.createBlock)(c,{key:5,class:"masthead-resource-title",k:"resourceDetail.header."+n.realMode,subtype:n.resourceSubtype,name:o.displayName,escapehtml:!1},null,8,["k","subtype","name"])),!o.isCreate&&o.parent.showState?((0,i.openBlock)(),(0,i.createBlock)(u,{key:6,class:"masthead-state",value:n.value},null,8,["value"])):(0,i.createCommentVNode)("",!0),!o.isCreate&&n.value.injectionEnabled?((0,i.openBlock)(),(0,i.createElementBlock)("span",id,[(0,i.withDirectives)((0,i.createElementVNode)("i",ad,null,512),[[m,e.t("projectNamespaces.isIstioInjectionEnabled")]])])):(0,i.createCommentVNode)("",!0),o.dev&&o.resourceExternalLink?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("a",{key:8,class:"resource-external",rel:"nofollow noopener noreferrer",target:"_blank",href:o.resourceExternalLink.url},t[3]||(t[3]=[(0,i.createElementVNode)("i",{class:"icon icon-external-link"},null,-1)]),8,od)),[[m,e.t(o.resourceExternalLink.tipsKey||"generic.resourceExternalLinkTips")]]):(0,i.createCommentVNode)("",!0)])]),o.isCreate?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createElementBlock)("div",sd,[o.isNamespace&&o.project?((0,i.openBlock)(),(0,i.createElementBlock)("span",ld,[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("resourceDetail.masthead.project"))+": ",1),(0,i.createVNode)(l,{to:o.project.detailLocation},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(o.project.nameDisplay),1)])),_:1},8,["to"])])):o.isWorkspace?((0,i.openBlock)(),(0,i.createElementBlock)("span",cd,[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("resourceDetail.masthead.workspace"))+": ",1),(0,i.createVNode)(l,{to:o.workspaceLocation},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(o.namespace),1)])),_:1},8,["to"])])):o.namespace&&!o.hasMultipleNamespaces?((0,i.openBlock)(),(0,i.createElementBlock)("span",ud,[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("resourceDetail.masthead.namespace"))+": ",1),o.hideNamespaceLocation?((0,i.openBlock)(),(0,i.createElementBlock)("span",dd,(0,i.toDisplayString)(o.namespace),1)):((0,i.openBlock)(),(0,i.createBlock)(l,{key:0,to:o.namespaceLocation,"data-testid":"masthead-subheader-namespace"},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(o.namespace),1)])),_:1},8,["to"]))])):(0,i.createCommentVNode)("",!0),o.parent.showAge?((0,i.openBlock)(),(0,i.createElementBlock)("span",hd,[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("resourceDetail.masthead.age"))+": ",1),(0,i.createVNode)(d,{class:"live-date",value:n.value.creationTimestamp},null,8,["value"])])):(0,i.createCommentVNode)("",!0),n.value.showCreatedBy?((0,i.openBlock)(),(0,i.createElementBlock)("span",pd,[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("resourceDetail.masthead.createdBy"))+": ",1),n.value.createdBy.location?((0,i.openBlock)(),(0,i.createBlock)(l,{key:0,to:n.value.createdBy.location,"data-testid":"masthead-subheader-createdBy-link"},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(n.value.createdBy.displayName),1)])),_:1},8,["to"])):((0,i.openBlock)(),(0,i.createElementBlock)("span",fd,(0,i.toDisplayString)(n.value.createdBy.displayName),1))])):(0,i.createCommentVNode)("",!0),n.value.showPodRestarts?((0,i.openBlock)(),(0,i.createElementBlock)("span",md,[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("resourceDetail.masthead.restartCount"))+":",1),(0,i.createElementVNode)("span",gd,(0,i.toDisplayString)(n.value.restartCount),1)])):(0,i.createCommentVNode)("",!0)]))]),(0,i.renderSlot)(e.$slots,"right",{},(()=>[(0,i.createElementVNode)("div",vd,[(0,i.createElementVNode)("div",bd,[o.detailsAction&&o.currentView===a.DETAIL_VIEW&&o.isView?((0,i.openBlock)(),(0,i.createElementBlock)("button",{key:0,type:"button",class:"btn role-primary actions mr-10",disabled:!o.detailsAction.enabled,onClick:t[0]||(t[0]=(...e)=>o.invokeDetailsAction&&o.invokeDetailsAction(...e))},(0,i.toDisplayString)(o.detailsAction.label),9,yd)):(0,i.createCommentVNode)("",!0),o.showSensitiveToggle?((0,i.openBlock)(),(0,i.createBlock)(h,{key:1,value:!!o.hideSensitiveData,"icon-size":"lg",options:o.sensitiveOptions,class:"mr-10","onUpdate:value":o.toggleSensitiveData},null,8,["value","options","onUpdate:value"])):(0,i.createCommentVNode)("",!0),o.viewOptions&&o.isView?((0,i.openBlock)(),(0,i.createBlock)(h,{key:2,value:o.currentView,"onUpdate:value":t[1]||(t[1]=e=>o.currentView=e),options:o.viewOptions,class:"mr-10"},null,8,["value","options"])):(0,i.createCommentVNode)("",!0),o.isView?((0,i.openBlock)(),(0,i.createElementBlock)("button",{key:3,ref:"actions","data-testid":"masthead-action-menu","aria-haspopup":"true",type:"button",class:"btn role-multi-action actions",onClick:t[2]||(t[2]=(...e)=>o.showActions&&o.showActions(...e))},t[4]||(t[4]=[(0,i.createElementVNode)("i",{class:"icon icon-actions"},null,-1)]),512)):(0,i.createCommentVNode)("",!0)])])]),!0)]),(0,i.createVNode)(p,{resource:n.value,type:a.extensionType,location:a.extensionLocation},null,8,["resource","type","location"]),o.banner&&o.isView&&!o.parent.hideBanner?((0,i.openBlock)(),(0,i.createBlock)(f,{key:0,class:"state-banner mb-10",color:o.banner.color,label:o.banner.message},null,8,["color","label"])):(0,i.createCommentVNode)("",!0),o.managedWarning.show?((0,i.openBlock)(),(0,i.createBlock)(f,{key:1,color:"warning",class:"mb-20",label:e.t("resourceDetail.masthead.managedWarning",o.managedWarning)},null,8,["label"])):(0,i.createCommentVNode)("",!0),(0,i.renderSlot)(e.$slots,"default",{},void 0,!0)])}var Ed=a(2841),_d=a(12857),Sd=a(87102),kd=a(76978),xd=(a(86565),a(68774)),Ad=(a(95265),a(73883));var Nd=a(10213);const Cd="fleet";var Td=a(22896),Rd={name:"MastheadResourceDetail",components:{BadgeState:Sd.j,Banner:Ou.l,ButtonGroup:_d.A,ExtensionPanel:Tc,TabTitle:Td.A},props:{value:{type:Object,default:()=>({})},mode:{type:String,default:"create"},realMode:{type:String,default:"create"},as:{type:String,default:ku.zD},hasGraph:{type:Boolean,default:!1},hasDetail:{type:Boolean,default:!1},hasEdit:{type:Boolean,default:!1},storeOverride:{type:String,default:null},resource:{type:String,default:null},resourceSubtype:{type:String,default:null},parentRouteOverride:{type:String,default:null},canViewYaml:{type:Boolean,default:!1}},data(){return{DETAIL_VIEW:ku.fS,extensionType:Sc.c7.PANEL,extensionLocation:Sc.W7.DETAILS_MASTHEAD}},computed:{dev(){return this.$store.getters["prefs/dev"]},schema(){const e=this.storeOverride||this.$store.getters["currentStore"](this.resource);return this.$store.getters[`${e}/schemaFor`](this.resource)},isView(){return this.mode===ku.nW},isEdit(){return this.mode===ku.G5},isCreate(){return this.mode===ku.YQ},isNamespace(){return this.schema?.id===$.CU},isProject(){return this.schema?.id===$.Mc.PROJECT},isProjectHelmChart(){return this.schema?.id===$.fj.PROJECTHELMCHART},hasMultipleNamespaces(){return!!this.value.namespaces},namespace(){return this.value?.metadata?.namespace?this.value?.metadata?.namespace:null},detailsAction(){return this.value?.detailsAction},shouldHifenize(){return("view"===this.mode||"edit"===this.mode)&&this.resourceSubtype?.length&&this.value?.nameDisplay?.length},namespaceLocation(){return this.isNamespace?null:this.value.namespaceLocation||{name:"c-cluster-product-resource-id",params:{cluster:this.$route.params.cluster,product:this.$store.getters["productId"],resource:$.CU,id:this.$route.params.namespace}}},isWorkspace(){return this.$store.getters["productId"]===Cd&&!!this.value?.metadata?.namespace},workspaceLocation(){return{name:"c-cluster-product-resource-id",params:{cluster:this.$route.params.cluster,product:this.$store.getters["productId"],resource:$.Hs.WORKSPACE,id:this.$route.params.namespace}}},project(){if(this.isNamespace){const e=this.$store.getters["currentCluster"];if(e){const t=(this.value?.metadata?.labels||{})[Ed.yl];return this.$store.getters["management/byId"]($.Mc.PROJECT,`${e.id}/${t}`)}}return null},banner(){if(this.value?.stateObj?.error){const e=this.t("resourceDetail.masthead.defaultBannerMessage.error",void 0,!0);return{color:"error",message:this.value.stateObj.message||e}}if(this.value?.spec?.paused)return{color:"info",message:this.t("asyncButton.pause.description")};if(this.value?.stateObj?.transitioning){const e=this.t("resourceDetail.masthead.defaultBannerMessage.transitioning",void 0,!0);return{color:"info",message:this.value.stateObj.message||e}}return null},parent(){const e=this.value?.parentNameOverride||this.$store.getters["type-map/labelFor"](this.schema),t=this.$store.getters["currentProduct"].name,n={name:"c-cluster-product-resource",params:{resource:this.resource,product:t}},r=this.value?.parentLocationOverride||n;this.parentRouteOverride&&(r.name=this.parentRouteOverride);const i=this.$store.getters["type-map/optionsFor"](this.resource),a={displayName:e,location:r,...i};return a},hideSensitiveData(){return this.$store.getters["prefs/get"](O.qv)},sensitiveOptions(){return[{tooltipKey:"resourceDetail.masthead.sensitive.hide",icon:"icon-hide",value:!0},{tooltipKey:"resourceDetail.masthead.sensitive.show",icon:"icon-show",value:!1}]},viewOptions(){const e=[];return this.hasDetail&&e.push({labelKey:"resourceDetail.masthead.detail",value:ku.fS}),this.hasEdit&&!1!==this.parent?.showConfigView&&e.push({labelKey:"resourceDetail.masthead.config",value:ku.au}),this.hasGraph&&e.push({labelKey:"resourceDetail.masthead.graph",value:ku.Yq}),this.canViewYaml&&e.push({labelKey:"resourceDetail.masthead.yaml",value:ku.zD}),e.length<2?null:e},currentView:{get(){return this.as},set(e){switch(e){case ku.fS:this.$router.applyQuery({[ku.g]:ku.xz,[ku.AS]:ku.xz});break;case ku.au:this.$router.applyQuery({[ku.g]:ku.xz,[ku.AS]:ku.au});break;case ku.Yq:this.$router.applyQuery({[ku.g]:ku.xz,[ku.AS]:ku.Yq});break;case ku.zD:this.$router.applyQuery({[ku.g]:ku.xz,[ku.AS]:ku.zD});break}}},showSensitiveToggle(){return!!this.value.hasSensitiveData&&this.mode===ku.nW&&this.as!==ku.zD},managedWarning(){const{value:e}=this,t=e?.metadata?.labels||{},n=t[Ed.pS.MANAGED_BY]||"",r=t[Ed.pS.MANAGED_NAME]||t[Ed.pS.INSTANCE]||"";return{show:this.mode===ku.G5&&!!n,type:e?.kind||"",hasName:r?"yes":"no",appName:r,managedBy:n}},displayName(){let e=this.value.nameDisplay;return this.isProjectHelmChart&&(e=this.value.projectDisplayName),this.shouldHifenize?` - ${e}`:e},location(){const{parent:e}=this;return e?.location},hideNamespaceLocation(){return this.$store.getters["currentProduct"].hideNamespaceLocation||null===this.value.namespaceLocation},resourceExternalLink(){return this.value.resourceExternalLink}},methods:{get:kd.Jt,showActions(){this.$store.commit("action-menu/show",{resources:this.value,elem:this.$refs.actions})},toggleSensitiveData(e){this.$store.dispatch("prefs/set",{key:O.qv,value:!!e})},invokeDetailsAction(){const e=this.detailsAction;if(e){const t=this.value[e.action];t&&t.apply(this.value,[])}}}};a(50434);const Od=(0,u.A)(Rd,[["render",wd],["__scopeId","data-v-d6a0b0a2"]]);var Id=Od;const Ld={key:0,class:"labels"},Dd={class:"label"},Pd={key:1,class:"description"},Md={class:"label"},Bd={class:"content"},Fd={key:2},$d={class:"label"},Ud={key:1},jd={key:3,class:"labels"},Vd={class:"tags"},Kd={class:"label"},Hd={key:1},Gd={key:0},zd={key:2},qd={key:4,class:"annotations"},Xd={class:"label"},Wd={key:0};function Yd(e,t,n,r,a,o){const s=(0,i.resolveComponent)("router-link"),l=(0,i.resolveComponent)("Tag"),c=(0,i.resolveComponent)("DetailText"),u=(0,i.resolveComponent)("ExtensionPanel"),d=(0,i.resolveDirective)("clean-tooltip");return(0,i.openBlock)(),(0,i.createElementBlock)("div",{class:(0,i.normalizeClass)(["detail-top",{empty:o.isEmpty}])},[o.hasNamespaces?((0,i.openBlock)(),(0,i.createElementBlock)("div",Ld,[(0,i.createElementVNode)("span",Dd,(0,i.toDisplayString)(e.t("resourceDetail.detailTop.namespaces"))+": ",1),(0,i.createElementVNode)("span",null,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(o.namespaces,(e=>((0,i.openBlock)(),(0,i.createBlock)(s,{key:e.name,to:e.detailLocation,class:"namespaceLinkList"},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.name),1)])),_:2},1032,["to"])))),128))])])):(0,i.createCommentVNode)("",!0),o.description?((0,i.openBlock)(),(0,i.createElementBlock)("div",Pd,[(0,i.createElementVNode)("span",Md,(0,i.toDisplayString)(e.t("resourceDetail.detailTop.description"))+": ",1),(0,i.createElementVNode)("span",Bd,(0,i.toDisplayString)(o.description),1)])):(0,i.createCommentVNode)("",!0),o.hasDetails?((0,i.openBlock)(),(0,i.createElementBlock)("div",Fd,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(o.details,((e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:t,class:"details"},[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(e,((e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:t,class:"detail"},[(0,i.createElementVNode)("span",$d,(0,i.toDisplayString)(e.label)+": ",1),e.formatter?((0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(e.formatter),(0,i.mergeProps)({key:0,value:e.content,ref_for:!0},e.formatterOpts),null,16,["value"])):((0,i.openBlock)(),(0,i.createElementBlock)("span",Ud,(0,i.toDisplayString)(e.content),1))])))),128))])))),128))])):(0,i.createCommentVNode)("",!0),o.hasLabels?((0,i.openBlock)(),(0,i.createElementBlock)("div",jd,[(0,i.createElementVNode)("div",Vd,[(0,i.createElementVNode)("span",Kd,(0,i.toDisplayString)(e.t("resourceDetail.detailTop.labels"))+": ",1),((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(o.labels,((e,t)=>((0,i.openBlock)(),(0,i.createBlock)(l,{key:t},{default:(0,i.withCtx)((()=>[o.internalIcons[t]?((0,i.openBlock)(),(0,i.createElementBlock)("i",{key:0,class:(0,i.normalizeClass)(["icon",o.internalIcons[t]])},null,2)):(0,i.createCommentVNode)("",!0),o.internalTooltips[t]?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("span",Hd,[(0,i.createElementVNode)("span",null,(0,i.toDisplayString)(o.internalTooltips[t]?o.internalTooltips[t]:t),1),a.showAllLabels?((0,i.openBlock)(),(0,i.createElementBlock)("span",Gd,": "+(0,i.toDisplayString)(t),1)):(0,i.createCommentVNode)("",!0)])),[[d,e?`${t} : ${e}`:t]]):((0,i.openBlock)(),(0,i.createElementBlock)("span",zd,(0,i.toDisplayString)(e?`${t} : ${e}`:t),1))])),_:2},1024)))),128)),o.showFilteredSystemLabels?((0,i.openBlock)(),(0,i.createElementBlock)("a",{key:0,href:"#",class:"detail-top__label-button",onClick:t[0]||(t[0]=(0,i.withModifiers)(((...e)=>o.toggleLabels&&o.toggleLabels(...e)),["prevent"]))},(0,i.toDisplayString)(e.t("resourceDetail.detailTop."+(a.showAllLabels?"hideLabels":"showLabels"))),1)):(0,i.createCommentVNode)("",!0)])])):(0,i.createCommentVNode)("",!0),o.hasAnnotations?((0,i.openBlock)(),(0,i.createElementBlock)("div",qd,[(0,i.createElementVNode)("span",Xd,(0,i.toDisplayString)(e.t("resourceDetail.detailTop.annotations"))+": ",1),(0,i.createElementVNode)("a",{href:"#",onClick:t[1]||(t[1]=(0,i.withModifiers)(((...e)=>o.toggleAnnotations&&o.toggleAnnotations(...e)),["prevent"]))},(0,i.toDisplayString)(e.t("resourceDetail.detailTop."+(a.annotationsVisible?"hideAnnotations":"showAnnotations"),{annotations:o.annotationCount})),1),a.annotationsVisible?((0,i.openBlock)(),(0,i.createElementBlock)("div",Wd,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(o.annotations,((e,t)=>((0,i.openBlock)(),(0,i.createBlock)(c,{key:t,class:"annotation",value:e,label:t},null,8,["value","label"])))),128))])):(0,i.createCommentVNode)("",!0)])):(0,i.createCommentVNode)("",!0),(0,i.createVNode)(u,{resource:n.value,type:a.extensionType,location:a.extensionLocation},null,8,["resource","type","location"])],2)}var Qd=a(8529),Jd=a(3514),Zd=a.n(Jd),eh=a(87383),th={components:{DetailText:eh.A,Tag:Qd.A,ExtensionPanel:Tc},props:{value:{type:Object,default:()=>({})},moreDetails:{type:Array,default:()=>[]},tooltips:{type:Object,default:()=>({})},icons:{type:Object,default:()=>({})}},data(){return{extensionType:Sc.c7.PANEL,extensionLocation:Sc.W7.DETAIL_TOP,annotationsVisible:!1,showAllLabels:!1,view:ku.nW}},computed:{namespaces(){return(this.value?.namespaces||[]).map((e=>({name:e?.metadata?.name,detailLocation:e.detailLocation})))},details(){const e=[...this.moreDetails||[],...this.value?.details||[]].filter((e=>e.separator||!!`${e.content}`&&void 0!==e.content&&null!==e.content)),t=[];let n=[];return e.forEach((e=>{e.separator?(t.push(n),n=[]):n.push(e)})),n.length&&t.push(n),t},labels(){return this.showAllLabels||!this.showFilteredSystemLabels?this.value?.labels||{}:this.value?.filteredSystemLabels},internalTooltips(){return this.value?.detailTopTooltips||this.tooltips},internalIcons(){return this.value?.detailTopIcons||this.icons},annotations(){return this.value?.annotations||{}},description(){return this.value?.description},hasDetails(){return!Zd()(this.details)},hasLabels(){return!Zd()(this.labels)},hasAnnotations(){return!Zd()(this.annotations)},hasDescription(){return!Zd()(this.description)},hasNamespaces(){return!Zd()(this.namespaces)},annotationCount(){return Object.keys(this.annotations||{}).length},isEmpty(){const e=this.hasDetails||this.hasLabels||this.hasAnnotations||this.hasDescription||this.hasNamespaces;return!e},showFilteredSystemLabels(){if(this.value?.labels&&this.value?.filteredSystemLabels){const e=Object.keys(this.value.labels).length,t=Object.keys(this.value.filteredSystemLabels).length;return e!==t}return!1}},methods:{toggleLabels(){this.showAllLabels=!this.showAllLabels},toggleAnnotations(e){this.annotationsVisible=!this.annotationsVisible}}};a(39066);const nh=(0,u.A)(th,[["render",Yd]]);var rh=nh;const ih={class:"chart-container","data-testid":"gitrepo_graph"},ah={key:0,class:"loading-container"},oh={class:"more-info-container"},sh={class:"more-info"},lh={class:"more-info-item-label"},ch={key:1},uh={key:0},dh={key:1},hh={key:2,class:"align-middle"},ph={key:3,class:"single-error",colspan:"2"},fh={key:4};function mh(e,t,n,r,a,o){const s=(0,i.resolveComponent)("router-link"),l=(0,i.resolveComponent)("BadgeState");return(0,i.openBlock)(),(0,i.createElementBlock)("div",null,[(0,i.createElementVNode)("div",ih,[a.isChartFirstRenderAnimationFinished?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createElementBlock)("div",ah,[(0,i.withDirectives)((0,i.createElementVNode)("p",null,(0,i.toDisplayString)(e.t("fleet.fdc.loadingChart")),513),[[i.vShow,!a.isChartFirstRendered]]),(0,i.withDirectives)((0,i.createElementVNode)("p",null,(0,i.toDisplayString)(e.t("fleet.fdc.renderingChart")),513),[[i.vShow,a.isChartFirstRendered&&!a.isChartFirstRenderAnimationFinished]]),t[0]||(t[0]=(0,i.createElementVNode)("i",{class:"mt-10 icon-spinner icon-spin"},null,-1))])),t[1]||(t[1]=(0,i.createElementVNode)("div",{id:"tree"},null,-1)),(0,i.createElementVNode)("div",oh,[(0,i.createElementVNode)("div",sh,[(0,i.createElementVNode)("table",null,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(a.moreInfo,((t,n)=>((0,i.openBlock)(),(0,i.createElementBlock)("tr",{key:n},["single-error"!==t.type?((0,i.openBlock)(),(0,i.createElementBlock)("td",{key:0,class:(0,i.normalizeClass)({"align-middle":"state-badge"===t.type})},[(0,i.createElementVNode)("span",lh,(0,i.toDisplayString)(e.t(t.labelKey))+":",1)],2)):(0,i.createCommentVNode)("",!0),"title-link"===t.type?((0,i.openBlock)(),(0,i.createElementBlock)("td",ch,[t.valueObj.detailLocation?((0,i.openBlock)(),(0,i.createElementBlock)("span",uh,[(0,i.createVNode)(s,{to:t.valueObj.detailLocation},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(t.valueObj.label),1)])),_:2},1032,["to"])])):((0,i.openBlock)(),(0,i.createElementBlock)("span",dh,(0,i.toDisplayString)(t.valueObj.label),1))])):"state-badge"===t.type?((0,i.openBlock)(),(0,i.createElementBlock)("td",hh,[(0,i.createElementVNode)("span",null,[(0,i.createVNode)(l,{color:`bg-${t.valueObj.stateColor}`,label:t.valueObj.stateLabel,class:"state-bagde"},null,8,["color","label"])])])):(0,i.createCommentVNode)("",!0),"single-error"===t.type?((0,i.openBlock)(),(0,i.createElementBlock)("td",ph,[(0,i.createElementVNode)("p",null,(0,i.toDisplayString)(t.value),1)])):((0,i.openBlock)(),(0,i.createElementBlock)("td",fh,(0,i.toDisplayString)(t.value),1))])))),128))])])])])])}function gh(){}function vh(e){return null==e?gh:function(){return this.querySelector(e)}}function bh(e){"function"!==typeof e&&(e=vh(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a,o,s=t[i],l=s.length,c=r[i]=new Array(l),u=0;u<l;++u)(a=s[u])&&(o=e.call(a,a.__data__,u,s))&&("__data__"in a&&(o.__data__=a.__data__),c[u]=o);return new pf(r,this._parents)}function yh(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function wh(){return[]}function Eh(e){return null==e?wh:function(){return this.querySelectorAll(e)}}function _h(e){return function(){return yh(e.apply(this,arguments))}}function Sh(e){e="function"===typeof e?_h(e):Eh(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o,s=t[a],l=s.length,c=0;c<l;++c)(o=s[c])&&(r.push(e.call(o,o.__data__,c,s)),i.push(o));return new pf(r,i)}function kh(e){return function(){return this.matches(e)}}function xh(e){return function(t){return t.matches(e)}}var Ah=Array.prototype.find;function Nh(e){return function(){return Ah.call(this.children,e)}}function Ch(){return this.firstElementChild}function Th(e){return this.select(null==e?Ch:Nh("function"===typeof e?e:xh(e)))}var Rh=Array.prototype.filter;function Oh(){return Array.from(this.children)}function Ih(e){return function(){return Rh.call(this.children,e)}}function Lh(e){return this.selectAll(null==e?Oh:Ih("function"===typeof e?e:xh(e)))}function Dh(e){"function"!==typeof e&&(e=kh(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a,o=t[i],s=o.length,l=r[i]=[],c=0;c<s;++c)(a=o[c])&&e.call(a,a.__data__,c,o)&&l.push(a);return new pf(r,this._parents)}function Ph(e){return new Array(e.length)}function Mh(){return new pf(this._enter||this._groups.map(Ph),this._parents)}function Bh(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Fh(e){return function(){return e}}function $h(e,t,n,r,i,a){for(var o,s=0,l=t.length,c=a.length;s<c;++s)(o=t[s])?(o.__data__=a[s],r[s]=o):n[s]=new Bh(e,a[s]);for(;s<l;++s)(o=t[s])&&(i[s]=o)}function Uh(e,t,n,r,i,a,o){var s,l,c,u=new Map,d=t.length,h=a.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=c=o.call(l,l.__data__,s,t)+"",u.has(c)?i[s]=l:u.set(c,l));for(s=0;s<h;++s)c=o.call(e,a[s],s,a)+"",(l=u.get(c))?(r[s]=l,l.__data__=a[s],u.delete(c)):n[s]=new Bh(e,a[s]);for(s=0;s<d;++s)(l=t[s])&&u.get(p[s])===l&&(i[s]=l)}function jh(e){return e.__data__}function Vh(e,t){if(!arguments.length)return Array.from(this,jh);var n=t?Uh:$h,r=this._parents,i=this._groups;"function"!==typeof e&&(e=Fh(e));for(var a=i.length,o=new Array(a),s=new Array(a),l=new Array(a),c=0;c<a;++c){var u=r[c],d=i[c],h=d.length,p=Kh(e.call(u,u&&u.__data__,c,r)),f=p.length,m=s[c]=new Array(f),g=o[c]=new Array(f),v=l[c]=new Array(h);n(u,d,m,g,v,p,t);for(var b,y,w=0,E=0;w<f;++w)if(b=m[w]){w>=E&&(E=w+1);while(!(y=g[E])&&++E<f);b._next=y||null}}return o=new pf(o,r),o._enter=s,o._exit=l,o}function Kh(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function Hh(){return new pf(this._exit||this._groups.map(Ph),this._parents)}function Gh(e,t,n){var r=this.enter(),i=this,a=this.exit();return"function"===typeof e?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),null!=t&&(i=t(i),i&&(i=i.selection())),null==n?a.remove():n(a),r&&i?r.merge(i).order():i}function zh(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=new Array(i),l=0;l<o;++l)for(var c,u=n[l],d=r[l],h=u.length,p=s[l]=new Array(h),f=0;f<h;++f)(c=u[f]||d[f])&&(p[f]=c);for(;l<i;++l)s[l]=n[l];return new pf(s,this._parents)}function qh(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this}function Xh(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Wh);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o,s=n[a],l=s.length,c=i[a]=new Array(l),u=0;u<l;++u)(o=s[u])&&(c[u]=o);c.sort(t)}return new pf(i,this._parents).order()}function Wh(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Yh(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Qh(){return Array.from(this)}function Jh(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function Zh(){let e=0;for(const t of this)++e;return e}function ep(){return!this.node()}function tp(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,a=t[n],o=0,s=a.length;o<s;++o)(i=a[o])&&e.call(i,i.__data__,o,a);return this}Bh.prototype={constructor:Bh,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var np="http://www.w3.org/1999/xhtml",rp={svg:"http://www.w3.org/2000/svg",xhtml:np,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ip(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),rp.hasOwnProperty(t)?{space:rp[t],local:e}:e}function ap(e){return function(){this.removeAttribute(e)}}function op(e){return function(){this.removeAttributeNS(e.space,e.local)}}function sp(e,t){return function(){this.setAttribute(e,t)}}function lp(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function cp(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function up(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function dp(e,t){var n=ip(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?op:ap:"function"===typeof t?n.local?up:cp:n.local?lp:sp)(n,t))}function hp(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function pp(e){return function(){this.style.removeProperty(e)}}function fp(e,t,n){return function(){this.style.setProperty(e,t,n)}}function mp(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function gp(e,t,n){return arguments.length>1?this.each((null==t?pp:"function"===typeof t?mp:fp)(e,t,null==n?"":n)):vp(this.node(),e)}function vp(e,t){return e.style.getPropertyValue(t)||hp(e).getComputedStyle(e,null).getPropertyValue(t)}function bp(e){return function(){delete this[e]}}function yp(e,t){return function(){this[e]=t}}function wp(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Ep(e,t){return arguments.length>1?this.each((null==t?bp:"function"===typeof t?wp:yp)(e,t)):this.node()[e]}function _p(e){return e.trim().split(/^|\s+/)}function Sp(e){return e.classList||new kp(e)}function kp(e){this._node=e,this._names=_p(e.getAttribute("class")||"")}function xp(e,t){var n=Sp(e),r=-1,i=t.length;while(++r<i)n.add(t[r])}function Ap(e,t){var n=Sp(e),r=-1,i=t.length;while(++r<i)n.remove(t[r])}function Np(e){return function(){xp(this,e)}}function Cp(e){return function(){Ap(this,e)}}function Tp(e,t){return function(){(t.apply(this,arguments)?xp:Ap)(this,e)}}function Rp(e,t){var n=_p(e+"");if(arguments.length<2){var r=Sp(this.node()),i=-1,a=n.length;while(++i<a)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof t?Tp:t?Np:Cp)(n,t))}function Op(){this.textContent=""}function Ip(e){return function(){this.textContent=e}}function Lp(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Dp(e){return arguments.length?this.each(null==e?Op:("function"===typeof e?Lp:Ip)(e)):this.node().textContent}function Pp(){this.innerHTML=""}function Mp(e){return function(){this.innerHTML=e}}function Bp(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Fp(e){return arguments.length?this.each(null==e?Pp:("function"===typeof e?Bp:Mp)(e)):this.node().innerHTML}function $p(){this.nextSibling&&this.parentNode.appendChild(this)}function Up(){return this.each($p)}function jp(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Vp(){return this.each(jp)}function Kp(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===np&&t.documentElement.namespaceURI===np?t.createElement(e):t.createElementNS(n,e)}}function Hp(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Gp(e){var t=ip(e);return(t.local?Hp:Kp)(t)}function zp(e){var t="function"===typeof e?e:Gp(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))}function qp(){return null}function Xp(e,t){var n="function"===typeof e?e:Gp(e),r=null==t?qp:"function"===typeof t?t:vh(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))}function Wp(){var e=this.parentNode;e&&e.removeChild(this)}function Yp(){return this.each(Wp)}function Qp(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Jp(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Zp(e){return this.select(e?Jp:Qp)}function ef(e){return arguments.length?this.property("__data__",e):this.node().__data__}function tf(e){return function(t){e.call(this,t,this.__data__)}}function nf(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function rf(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,a=t.length;r<a;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function af(e,t,n){return function(){var r,i=this.__on,a=tf(t);if(i)for(var o=0,s=i.length;o<s;++o)if((r=i[o]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),void(r.value=t);this.addEventListener(e.type,a,n),r={type:e.type,name:e.name,value:t,listener:a,options:n},i?i.push(r):this.__on=[r]}}function of(e,t,n){var r,i,a=nf(e+""),o=a.length;if(!(arguments.length<2)){for(s=t?af:rf,r=0;r<o;++r)this.each(s(a[r],t,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<o;++r)if((i=a[r]).type===l.type&&i.name===l.name)return l.value}function sf(e,t,n){var r=hp(e),i=r.CustomEvent;"function"===typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function lf(e,t){return function(){return sf(this,e,t)}}function cf(e,t){return function(){return sf(this,e,t.apply(this,arguments))}}function uf(e,t){return this.each(("function"===typeof t?cf:lf)(e,t))}function*df(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],a=0,o=i.length;a<o;++a)(r=i[a])&&(yield r)}kp.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var hf=[null];function pf(e,t){this._groups=e,this._parents=t}function ff(){return new pf([[document.documentElement]],hf)}function mf(){return this}pf.prototype=ff.prototype={constructor:pf,select:bh,selectAll:Sh,selectChild:Th,selectChildren:Lh,filter:Dh,data:Vh,enter:Mh,exit:Hh,join:Gh,merge:zh,selection:mf,order:qh,sort:Xh,call:Yh,nodes:Qh,node:Jh,size:Zh,empty:ep,each:tp,attr:dp,style:gp,property:Ep,classed:Rp,text:Dp,html:Fp,raise:Up,lower:Vp,append:zp,insert:Xp,remove:Yp,clone:Zp,datum:ef,on:of,dispatch:uf,[Symbol.iterator]:df};var gf=ff,vf={value:()=>{}};function bf(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new yf(r)}function yf(e){this._=e}function wf(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function Ef(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function _f(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=vf,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}yf.prototype=bf.prototype={constructor:yf,on:function(e,t){var n,r=this._,i=wf(e+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);while(++a<o)if(n=(e=i[a]).type)r[n]=_f(r[n],e.name,t);else if(null==t)for(n in r)r[n]=_f(r[n],e.name,null);return this}while(++a<o)if((n=(e=i[a]).type)&&(n=Ef(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new yf(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],a=0,n=r.length;a<n;++a)r[a].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};var Sf,kf,xf=bf,Af=0,Nf=0,Cf=0,Tf=1e3,Rf=0,Of=0,If=0,Lf="object"===typeof performance&&performance.now?performance:Date,Df="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Pf(){return Of||(Df(Mf),Of=Lf.now()+If)}function Mf(){Of=0}function Bf(){this._call=this._time=this._next=null}function Ff(e,t,n){var r=new Bf;return r.restart(e,t,n),r}function $f(){Pf(),++Af;var e,t=Sf;while(t)(e=Of-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Af}function Uf(){Of=(Rf=Lf.now())+If,Af=Nf=0;try{$f()}finally{Af=0,Vf(),Of=0}}function jf(){var e=Lf.now(),t=e-Rf;t>Tf&&(If-=t,Rf=e)}function Vf(){var e,t,n=Sf,r=1/0;while(n)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Sf=t);kf=e,Kf(r)}function Kf(e){if(!Af){Nf&&(Nf=clearTimeout(Nf));var t=e-Of;t>24?(e<1/0&&(Nf=setTimeout(Uf,e-Lf.now()-If)),Cf&&(Cf=clearInterval(Cf))):(Cf||(Rf=Lf.now(),Cf=setInterval(jf,Tf)),Af=1,Df(Uf))}}function Hf(e,t,n){var r=new Bf;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}Bf.prototype=Ff.prototype={constructor:Bf,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?Pf():+n)+(null==t?0:+t),this._next||kf===this||(kf?kf._next=this:Sf=this,kf=this),this._call=e,this._time=n,Kf()},stop:function(){this._call&&(this._call=null,this._time=1/0,Kf())}};var Gf=xf("start","end","cancel","interrupt"),zf=[],qf=0,Xf=1,Wf=2,Yf=3,Qf=4,Jf=5,Zf=6;function em(e,t,n,r,i,a){var o=e.__transition;if(o){if(n in o)return}else e.__transition={};im(e,n,{name:t,index:r,group:i,on:Gf,tween:zf,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:qf})}function tm(e,t){var n=rm(e,t);if(n.state>qf)throw new Error("too late; already scheduled");return n}function nm(e,t){var n=rm(e,t);if(n.state>Yf)throw new Error("too late; already running");return n}function rm(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function im(e,t,n){var r,i=e.__transition;function a(e){n.state=Xf,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var c,u,d,h;if(n.state!==Xf)return l();for(c in i)if(h=i[c],h.name===n.name){if(h.state===Yf)return Hf(o);h.state===Qf?(h.state=Zf,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete i[c]):+c<t&&(h.state=Zf,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete i[c])}if(Hf((function(){n.state===Yf&&(n.state=Qf,n.timer.restart(s,n.delay,n.time),s(a))})),n.state=Wf,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Wf){for(n.state=Yf,r=new Array(d=n.tween.length),c=0,u=-1;c<d;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=h);r.length=u+1}}function s(t){var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=Jf,1),a=-1,o=r.length;while(++a<o)r[a].call(e,i);n.state===Jf&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var r in n.state=Zf,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=Ff(a,0,n.time)}function am(e,t){var n,r,i,a=e.__transition,o=!0;if(a){for(i in t=null==t?null:t+"",a)(n=a[i]).name===t?(r=n.state>Wf&&n.state<Jf,n.state=Zf,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete e.__transition}}function om(e){return this.each((function(){am(this,e)}))}function sm(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var lm,cm=180/Math.PI,um={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function dm(e,t,n,r,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*cm,skewX:Math.atan(l)*cm,scaleX:o,scaleY:s}}function hm(e){const t=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?um:dm(t.a,t.b,t.c,t.d,t.e,t.f)}function pm(e){return null==e?um:(lm||(lm=document.createElementNS("http://www.w3.org/2000/svg","g")),lm.setAttribute("transform",e),(e=lm.transform.baseVal.consolidate())?(e=e.matrix,dm(e.a,e.b,e.c,e.d,e.e,e.f)):um)}function fm(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}function a(e,r,i,a,o,s){if(e!==i||r!==a){var l=o.push("translate(",null,t,null,n);s.push({i:l-4,x:sm(e,i)},{i:l-2,x:sm(r,a)})}else(i||a)&&o.push("translate("+i+t+a+n)}function o(e,t,n,a){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:sm(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}function s(e,t,n,a){e!==t?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:sm(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}function l(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:sm(e,n)},{i:s-2,x:sm(t,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),l(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){var t,n=-1,a=i.length;while(++n<a)r[(t=i[n]).i]=t.x(e);return r.join("")}}}var mm=fm(hm,"px, ","px)","deg)"),gm=fm(pm,", ",")",")");function vm(e,t){var n,r;return function(){var i=nm(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function bm(e,t,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var a=nm(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=s;break}l===c&&i.push(s)}a.tween=i}}function ym(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=rm(this.node(),n).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===e)return r.value;return null}return this.each((null==t?vm:bm)(n,e,t))}function wm(e,t,n){var r=e._id;return e.each((function(){var e=nm(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return rm(e,r).value[t]}}function Em(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _m(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Sm(){}var km=.7,xm=1/km,Am="\\s*([+-]?\\d+)\\s*",Nm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Cm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Tm=/^#([0-9a-f]{3,8})$/,Rm=new RegExp(`^rgb\\(${Am},${Am},${Am}\\)$`),Om=new RegExp(`^rgb\\(${Cm},${Cm},${Cm}\\)$`),Im=new RegExp(`^rgba\\(${Am},${Am},${Am},${Nm}\\)$`),Lm=new RegExp(`^rgba\\(${Cm},${Cm},${Cm},${Nm}\\)$`),Dm=new RegExp(`^hsl\\(${Nm},${Cm},${Cm}\\)$`),Pm=new RegExp(`^hsla\\(${Nm},${Cm},${Cm},${Nm}\\)$`),Mm={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Bm(){return this.rgb().formatHex()}function Fm(){return this.rgb().formatHex8()}function $m(){return eg(this).formatHsl()}function Um(){return this.rgb().formatRgb()}function jm(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Tm.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Vm(t):3===n?new zm(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Km(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Km(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Rm.exec(e))?new zm(t[1],t[2],t[3],1):(t=Om.exec(e))?new zm(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Im.exec(e))?Km(t[1],t[2],t[3],t[4]):(t=Lm.exec(e))?Km(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Dm.exec(e))?Zm(t[1],t[2]/100,t[3]/100,1):(t=Pm.exec(e))?Zm(t[1],t[2]/100,t[3]/100,t[4]):Mm.hasOwnProperty(e)?Vm(Mm[e]):"transparent"===e?new zm(NaN,NaN,NaN,0):null}function Vm(e){return new zm(e>>16&255,e>>8&255,255&e,1)}function Km(e,t,n,r){return r<=0&&(e=t=n=NaN),new zm(e,t,n,r)}function Hm(e){return e instanceof Sm||(e=jm(e)),e?(e=e.rgb(),new zm(e.r,e.g,e.b,e.opacity)):new zm}function Gm(e,t,n,r){return 1===arguments.length?Hm(e):new zm(e,t,n,null==r?1:r)}function zm(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function qm(){return`#${Jm(this.r)}${Jm(this.g)}${Jm(this.b)}`}function Xm(){return`#${Jm(this.r)}${Jm(this.g)}${Jm(this.b)}${Jm(255*(isNaN(this.opacity)?1:this.opacity))}`}function Wm(){const e=Ym(this.opacity);return`${1===e?"rgb(":"rgba("}${Qm(this.r)}, ${Qm(this.g)}, ${Qm(this.b)}${1===e?")":`, ${e})`}`}function Ym(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Qm(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Jm(e){return e=Qm(e),(e<16?"0":"")+e.toString(16)}function Zm(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ng(e,t,n,r)}function eg(e){if(e instanceof ng)return new ng(e.h,e.s,e.l,e.opacity);if(e instanceof Sm||(e=jm(e)),!e)return new ng;if(e instanceof ng)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(o=t===a?(n-r)/s+6*(n<r):n===a?(r-t)/s+2:(t-n)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new ng(o,s,l,e.opacity)}function tg(e,t,n,r){return 1===arguments.length?eg(e):new ng(e,t,n,null==r?1:r)}function ng(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function rg(e){return e=(e||0)%360,e<0?e+360:e}function ig(e){return Math.max(0,Math.min(1,e||0))}function ag(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function og(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function sg(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r<t-1?e[r+2]:2*a-i;return og((n-r/t)*t,o,i,a,s)}}function lg(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],a=e[r%t],o=e[(r+1)%t],s=e[(r+2)%t];return og((n-r/t)*t,i,a,o,s)}}Em(Sm,jm,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Bm,formatHex:Bm,formatHex8:Fm,formatHsl:$m,formatRgb:Um,toString:Um}),Em(zm,Gm,_m(Sm,{brighter(e){return e=null==e?xm:Math.pow(xm,e),new zm(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?km:Math.pow(km,e),new zm(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new zm(Qm(this.r),Qm(this.g),Qm(this.b),Ym(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:qm,formatHex:qm,formatHex8:Xm,formatRgb:Wm,toString:Wm})),Em(ng,tg,_m(Sm,{brighter(e){return e=null==e?xm:Math.pow(xm,e),new ng(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?km:Math.pow(km,e),new ng(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new zm(ag(e>=240?e-240:e+120,i,r),ag(e,i,r),ag(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ng(rg(this.h),ig(this.s),ig(this.l),Ym(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ym(this.opacity);return`${1===e?"hsl(":"hsla("}${rg(this.h)}, ${100*ig(this.s)}%, ${100*ig(this.l)}%${1===e?")":`, ${e})`}`}}));var cg=e=>()=>e;function ug(e,t){return function(n){return e+n*t}}function dg(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function hg(e){return 1===(e=+e)?pg:function(t,n){return n-t?dg(t,n,e):cg(isNaN(t)?n:t)}}function pg(e,t){var n=t-e;return n?ug(e,n):cg(isNaN(e)?t:e)}var fg=function e(t){var n=hg(t);function r(e,t){var r=n((e=Gm(e)).r,(t=Gm(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=pg(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+""}}return r.gamma=e,r}(1);function mg(e){return function(t){var n,r,i=t.length,a=new Array(i),o=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Gm(t[n]),a[n]=r.r||0,o[n]=r.g||0,s[n]=r.b||0;return a=e(a),o=e(o),s=e(s),r.opacity=1,function(e){return r.r=a(e),r.g=o(e),r.b=s(e),r+""}}}mg(sg),mg(lg);var gg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vg=new RegExp(gg.source,"g");function bg(e){return function(){return e}}function yg(e){return function(t){return e(t)+""}}function wg(e,t){var n,r,i,a=gg.lastIndex=vg.lastIndex=0,o=-1,s=[],l=[];e+="",t+="";while((n=gg.exec(e))&&(r=vg.exec(t)))(i=r.index)>a&&(i=t.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,l.push({i:o,x:sm(n,r)})),a=vg.lastIndex;return a<t.length&&(i=t.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?yg(l[0].x):bg(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function Eg(e,t){var n;return("number"===typeof t?sm:t instanceof jm?fg:(n=jm(t))?(t=n,fg):wg)(e,t)}function _g(e){return function(){this.removeAttribute(e)}}function Sg(e){return function(){this.removeAttributeNS(e.space,e.local)}}function kg(e,t,n){var r,i,a=n+"";return function(){var o=this.getAttribute(e);return o===a?null:o===r?i:i=t(r=o,n)}}function xg(e,t,n){var r,i,a=n+"";return function(){var o=this.getAttributeNS(e.space,e.local);return o===a?null:o===r?i:i=t(r=o,n)}}function Ag(e,t,n){var r,i,a;return function(){var o,s,l=n(this);if(null!=l)return o=this.getAttribute(e),s=l+"",o===s?null:o===r&&s===i?a:(i=s,a=t(r=o,l));this.removeAttribute(e)}}function Ng(e,t,n){var r,i,a;return function(){var o,s,l=n(this);if(null!=l)return o=this.getAttributeNS(e.space,e.local),s=l+"",o===s?null:o===r&&s===i?a:(i=s,a=t(r=o,l));this.removeAttributeNS(e.space,e.local)}}function Cg(e,t){var n=ip(e),r="transform"===n?gm:Eg;return this.attrTween(e,"function"===typeof t?(n.local?Ng:Ag)(n,r,wm(this,"attr."+e,t)):null==t?(n.local?Sg:_g)(n):(n.local?xg:kg)(n,r,t))}function Tg(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Rg(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Og(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Rg(e,i)),n}return i._value=t,i}function Ig(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Tg(e,i)),n}return i._value=t,i}function Lg(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var r=ip(e);return this.tween(n,(r.local?Og:Ig)(r,t))}function Dg(e,t){return function(){tm(this,e).delay=+t.apply(this,arguments)}}function Pg(e,t){return t=+t,function(){tm(this,e).delay=t}}function Mg(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Dg:Pg)(t,e)):rm(this.node(),t).delay}function Bg(e,t){return function(){nm(this,e).duration=+t.apply(this,arguments)}}function Fg(e,t){return t=+t,function(){nm(this,e).duration=t}}function $g(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Bg:Fg)(t,e)):rm(this.node(),t).duration}function Ug(e,t){if("function"!==typeof t)throw new Error;return function(){nm(this,e).ease=t}}function jg(e){var t=this._id;return arguments.length?this.each(Ug(t,e)):rm(this.node(),t).ease}function Vg(e,t){return function(){var n=t.apply(this,arguments);if("function"!==typeof n)throw new Error;nm(this,e).ease=n}}function Kg(e){if("function"!==typeof e)throw new Error;return this.each(Vg(this._id,e))}function Hg(e){"function"!==typeof e&&(e=kh(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a,o=t[i],s=o.length,l=r[i]=[],c=0;c<s;++c)(a=o[c])&&e.call(a,a.__data__,c,o)&&l.push(a);return new yv(r,this._parents,this._name,this._id)}function Gg(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var l,c=t[s],u=n[s],d=c.length,h=o[s]=new Array(d),p=0;p<d;++p)(l=c[p]||u[p])&&(h[p]=l);for(;s<r;++s)o[s]=t[s];return new yv(o,this._parents,this._name,this._id)}function zg(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}function qg(e,t,n){var r,i,a=zg(t)?tm:nm;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function Xg(e,t){var n=this._id;return arguments.length<2?rm(this.node(),n).on.on(e):this.each(qg(n,e,t))}function Wg(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Yg(){return this.on("end.remove",Wg(this._id))}function Qg(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=vh(e));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s,l,c=r[o],u=c.length,d=a[o]=new Array(u),h=0;h<u;++h)(s=c[h])&&(l=e.call(s,s.__data__,h,c))&&("__data__"in s&&(l.__data__=s.__data__),d[h]=l,em(d[h],t,n,h,d,rm(s,n)));return new yv(a,this._parents,t,n)}function Jg(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=Eh(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var l,c=r[s],u=c.length,d=0;d<u;++d)if(l=c[d]){for(var h,p=e.call(l,l.__data__,d,c),f=rm(l,n),m=0,g=p.length;m<g;++m)(h=p[m])&&em(h,t,n,m,p,f);a.push(p),o.push(l)}return new yv(a,o,t,n)}var Zg=gf.prototype.constructor;function ev(){return new Zg(this._groups,this._parents)}function tv(e,t){var n,r,i;return function(){var a=vp(this,e),o=(this.style.removeProperty(e),vp(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function nv(e){return function(){this.style.removeProperty(e)}}function rv(e,t,n){var r,i,a=n+"";return function(){var o=vp(this,e);return o===a?null:o===r?i:i=t(r=o,n)}}function iv(e,t,n){var r,i,a;return function(){var o=vp(this,e),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(e),l=s=vp(this,e)),o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s))}}function av(e,t){var n,r,i,a,o="style."+t,s="end."+o;return function(){var l=nm(this,e),c=l.on,u=null==l.value[o]?a||(a=nv(t)):void 0;c===n&&i===u||(r=(n=c).copy()).on(s,i=u),l.on=r}}function ov(e,t,n){var r="transform"===(e+="")?mm:Eg;return null==t?this.styleTween(e,tv(e,r)).on("end.style."+e,nv(e)):"function"===typeof t?this.styleTween(e,iv(e,r,wm(this,"style."+e,t))).each(av(this._id,e)):this.styleTween(e,rv(e,r,t),n).on("end.style."+e,null)}function sv(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function lv(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&sv(e,a,n)),r}return a._value=t,a}function cv(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!==typeof t)throw new Error;return this.tween(r,lv(e,t,null==n?"":n))}function uv(e){return function(){this.textContent=e}}function dv(e){return function(){var t=e(this);this.textContent=null==t?"":t}}function hv(e){return this.tween("text","function"===typeof e?dv(wm(this,"text",e)):uv(null==e?"":e+""))}function pv(e){return function(t){this.textContent=e.call(this,t)}}function fv(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&pv(r)),t}return r._value=e,r}function mv(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,fv(e))}function gv(){for(var e=this._name,t=this._id,n=Ev(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],l=s.length,c=0;c<l;++c)if(o=s[c]){var u=rm(o,t);em(o,e,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new yv(r,this._parents,e,n)}function vv(){var e,t,n=this,r=n._id,i=n.size();return new Promise((function(a,o){var s={value:o},l={value:function(){0===--i&&a()}};n.each((function(){var n=nm(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t})),0===i&&a()}))}var bv=0;function yv(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function wv(e){return gf().transition(e)}function Ev(){return++bv}var _v=gf.prototype;function Sv(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}yv.prototype=wv.prototype={constructor:yv,select:Qg,selectAll:Jg,selectChild:_v.selectChild,selectChildren:_v.selectChildren,filter:Hg,merge:Gg,selection:ev,transition:gv,call:_v.call,nodes:_v.nodes,node:_v.node,size:_v.size,empty:_v.empty,each:_v.each,on:Xg,attr:Cg,attrTween:Lg,style:ov,styleTween:cv,text:hv,textTween:mv,remove:Yg,tween:ym,delay:Mg,duration:$g,ease:jg,easeVarying:Kg,end:vv,[Symbol.iterator]:_v[Symbol.iterator]};var kv={time:null,delay:0,duration:250,ease:Sv};function xv(e,t){var n;while(!(n=e.__transition)||!(n=n[t]))if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function Av(e){var t,n;e instanceof yv?(t=e._id,e=e._name):(t=Ev(),(n=kv).time=Pf(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],l=s.length,c=0;c<l;++c)(o=s[c])&&em(o,e,t,c,s,n||xv(o,t));return new yv(r,this._parents,e,t)}gf.prototype.interrupt=om,gf.prototype.transition=Av;const{abs:Nv,max:Cv,min:Tv}=Math;function Rv(e){return[+e[0],+e[1]]}function Ov(e){return[Rv(e[0]),Rv(e[1])]}["w","e"].map(Iv),["n","s"].map(Iv),["n","w","e","s","nw","ne","sw","se"].map(Iv);function Iv(e){return{type:e}}function Lv(e){return"string"===typeof e?new pf([[document.querySelector(e)]],[document.documentElement]):new pf([[e]],hf)}function Dv(e){let t;while(t=e.sourceEvent)e=t;return e}function Pv(e,t){if(e=Dv(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const Mv={passive:!1},Bv={capture:!0,passive:!1};function Fv(e){e.stopImmediatePropagation()}function $v(e){e.preventDefault(),e.stopImmediatePropagation()}function Uv(e){var t=e.document.documentElement,n=Lv(e).on("dragstart.drag",$v,Bv);"onselectstart"in t?n.on("selectstart.drag",$v,Bv):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function jv(e,t){var n=e.document.documentElement,r=Lv(e).on("dragstart.drag",null);t&&(r.on("click.drag",$v,Bv),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var Vv=e=>()=>e;function Kv(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:a,x:o,y:s,dx:l,dy:c,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:u}})}function Hv(e){return!e.ctrlKey&&!e.button}function Gv(){return this.parentNode}function zv(e,t){return null==t?{x:e.x,y:e.y}:t}function qv(){return navigator.maxTouchPoints||"ontouchstart"in this}function Xv(){var e,t,n,r,i=Hv,a=Gv,o=zv,s=qv,l={},c=xf("start","drag","end"),u=0,d=0;function h(e){e.on("mousedown.drag",p).filter(s).on("touchstart.drag",g).on("touchmove.drag",v,Mv).on("touchend.drag touchcancel.drag",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(o,s){if(!r&&i.call(this,o,s)){var l=y(this,a.call(this,o,s),o,s,"mouse");l&&(Lv(o.view).on("mousemove.drag",f,Bv).on("mouseup.drag",m,Bv),Uv(o.view),Fv(o),n=!1,e=o.clientX,t=o.clientY,l("start",o))}}function f(r){if($v(r),!n){var i=r.clientX-e,a=r.clientY-t;n=i*i+a*a>d}l.mouse("drag",r)}function m(e){Lv(e.view).on("mousemove.drag mouseup.drag",null),jv(e.view,n),$v(e),l.mouse("end",e)}function g(e,t){if(i.call(this,e,t)){var n,r,o=e.changedTouches,s=a.call(this,e,t),l=o.length;for(n=0;n<l;++n)(r=y(this,s,e,t,o[n].identifier,o[n]))&&(Fv(e),r("start",e,o[n]))}}function v(e){var t,n,r=e.changedTouches,i=r.length;for(t=0;t<i;++t)(n=l[r[t].identifier])&&($v(e),n("drag",e,r[t]))}function b(e){var t,n,i=e.changedTouches,a=i.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),t=0;t<a;++t)(n=l[i[t].identifier])&&(Fv(e),n("end",e,i[t]))}function y(e,t,n,r,i,a){var s,d,p,f=c.copy(),m=Pv(a||n,t);if(null!=(p=o.call(e,new Kv("beforestart",{sourceEvent:n,target:h,identifier:i,active:u,x:m[0],y:m[1],dx:0,dy:0,dispatch:f}),r)))return s=p.x-m[0]||0,d=p.y-m[1]||0,function n(a,o,c){var g,v=m;switch(a){case"start":l[i]=n,g=u++;break;case"end":delete l[i],--u;case"drag":m=Pv(c||o,t),g=u;break}f.call(a,e,new Kv(a,{sourceEvent:o,subject:p,target:h,identifier:i,active:g,x:m[0]+s,y:m[1]+d,dx:m[0]-v[0],dy:m[1]-v[1],dispatch:f}),r)}}return h.filter=function(e){return arguments.length?(i="function"===typeof e?e:Vv(!!e),h):i},h.container=function(e){return arguments.length?(a="function"===typeof e?e:Vv(e),h):a},h.subject=function(e){return arguments.length?(o="function"===typeof e?e:Vv(e),h):o},h.touchable=function(e){return arguments.length?(s="function"===typeof e?e:Vv(!!e),h):s},h.on=function(){var e=c.on.apply(c,arguments);return e===c?h:e},h.clickDistance=function(e){return arguments.length?(d=(e=+e)*e,h):Math.sqrt(d)},h}function Wv(e,t){var n,r=1;function i(){var i,a,o=n.length,s=0,l=0;for(i=0;i<o;++i)a=n[i],s+=a.x,l+=a.y;for(s=(s/o-e)*r,l=(l/o-t)*r,i=0;i<o;++i)a=n[i],a.x-=s,a.y-=l}return null==e&&(e=0),null==t&&(t=0),i.initialize=function(e){n=e},i.x=function(t){return arguments.length?(e=+t,i):e},i.y=function(e){return arguments.length?(t=+e,i):t},i.strength=function(e){return arguments.length?(r=+e,i):r},i}function Yv(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return Qv(this.cover(t,n),t,n,e)}function Qv(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,a,o,s,l,c,u,d,h,p=e._root,f={data:r},m=e._x0,g=e._y0,v=e._x1,b=e._y1;if(!p)return e._root=f,e;while(p.length)if((c=t>=(a=(m+v)/2))?m=a:v=a,(u=n>=(o=(g+b)/2))?g=o:b=o,i=p,!(p=p[d=u<<1|c]))return i[d]=f,e;if(s=+e._x.call(null,p.data),l=+e._y.call(null,p.data),t===s&&n===l)return f.next=p,i?i[d]=f:e._root=f,e;do{i=i?i[d]=new Array(4):e._root=new Array(4),(c=t>=(a=(m+v)/2))?m=a:v=a,(u=n>=(o=(g+b)/2))?g=o:b=o}while((d=u<<1|c)===(h=(l>=o)<<1|s>=a));return i[h]=p,i[d]=f,e}function Jv(e){var t,n,r,i,a=e.length,o=new Array(a),s=new Array(a),l=1/0,c=1/0,u=-1/0,d=-1/0;for(n=0;n<a;++n)isNaN(r=+this._x.call(null,t=e[n]))||isNaN(i=+this._y.call(null,t))||(o[n]=r,s[n]=i,r<l&&(l=r),r>u&&(u=r),i<c&&(c=i),i>d&&(d=i));if(l>u||c>d)return this;for(this.cover(l,c).cover(u,d),n=0;n<a;++n)Qv(this,o[n],s[n],e[n]);return this}function Zv(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,a=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,a=(r=Math.floor(t))+1;else{var o,s,l=i-n||1,c=this._root;while(n>e||e>=i||r>t||t>=a)switch(s=(t<r)<<1|e<n,o=new Array(4),o[s]=c,c=o,l*=2,s){case 0:i=n+l,a=r+l;break;case 1:n=i-l,a=r+l;break;case 2:i=n+l,r=a-l;break;case 3:n=i-l,r=a-l;break}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=a,this}function eb(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e}function tb(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function nb(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function rb(e,t,n){var r,i,a,o,s,l,c,u=this._x0,d=this._y0,h=this._x1,p=this._y1,f=[],m=this._root;m&&f.push(new nb(m,u,d,h,p)),null==n?n=1/0:(u=e-n,d=t-n,h=e+n,p=t+n,n*=n);while(l=f.pop())if(!(!(m=l.node)||(i=l.x0)>h||(a=l.y0)>p||(o=l.x1)<u||(s=l.y1)<d))if(m.length){var g=(i+o)/2,v=(a+s)/2;f.push(new nb(m[3],g,v,o,s),new nb(m[2],i,v,g,s),new nb(m[1],g,a,o,v),new nb(m[0],i,a,g,v)),(c=(t>=v)<<1|e>=g)&&(l=f[f.length-1],f[f.length-1]=f[f.length-1-c],f[f.length-1-c]=l)}else{var b=e-+this._x.call(null,m.data),y=t-+this._y.call(null,m.data),w=b*b+y*y;if(w<n){var E=Math.sqrt(n=w);u=e-E,d=t-E,h=e+E,p=t+E,r=m.data}}return r}function ib(e){if(isNaN(a=+this._x.call(null,e))||isNaN(o=+this._y.call(null,e)))return this;var t,n,r,i,a,o,s,l,c,u,d,h,p=this._root,f=this._x0,m=this._y0,g=this._x1,v=this._y1;if(!p)return this;if(p.length)while(1){if((c=a>=(s=(f+g)/2))?f=s:g=s,(u=o>=(l=(m+v)/2))?m=l:v=l,t=p,!(p=p[d=u<<1|c]))return this;if(!p.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,h=d)}while(p.data!==e)if(r=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,r?(i?r.next=i:delete r.next,this):t?(i?t[d]=i:delete t[d],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[h]=p:this._root=p),this):(this._root=i,this)}function ab(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function ob(){return this._root}function sb(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e}function lb(e){var t,n,r,i,a,o,s=[],l=this._root;l&&s.push(new nb(l,this._x0,this._y0,this._x1,this._y1));while(t=s.pop())if(!e(l=t.node,r=t.x0,i=t.y0,a=t.x1,o=t.y1)&&l.length){var c=(r+a)/2,u=(i+o)/2;(n=l[3])&&s.push(new nb(n,c,u,a,o)),(n=l[2])&&s.push(new nb(n,r,u,c,o)),(n=l[1])&&s.push(new nb(n,c,i,a,u)),(n=l[0])&&s.push(new nb(n,r,i,c,u))}return this}function cb(e){var t,n=[],r=[];this._root&&n.push(new nb(this._root,this._x0,this._y0,this._x1,this._y1));while(t=n.pop()){var i=t.node;if(i.length){var a,o=t.x0,s=t.y0,l=t.x1,c=t.y1,u=(o+l)/2,d=(s+c)/2;(a=i[0])&&n.push(new nb(a,o,s,u,d)),(a=i[1])&&n.push(new nb(a,u,s,l,d)),(a=i[2])&&n.push(new nb(a,o,d,u,c)),(a=i[3])&&n.push(new nb(a,u,d,l,c))}r.push(t)}while(t=r.pop())e(t.node,t.x0,t.y0,t.x1,t.y1);return this}function ub(e){return e[0]}function db(e){return arguments.length?(this._x=e,this):this._x}function hb(e){return e[1]}function pb(e){return arguments.length?(this._y=e,this):this._y}function fb(e,t,n){var r=new mb(null==t?ub:t,null==n?hb:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function mb(e,t,n,r,i,a){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function gb(e){var t={data:e.data},n=t;while(e=e.next)n=n.next={data:e.data};return t}Kv.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var vb=fb.prototype=mb.prototype;function bb(e){return function(){return e}}function yb(e){return 1e-6*(e()-.5)}function wb(e){return e.x+e.vx}function Eb(e){return e.y+e.vy}function _b(e){var t,n,r,i=1,a=1;function o(){for(var e,o,l,c,u,d,h,p=t.length,f=0;f<a;++f)for(o=fb(t,wb,Eb).visitAfter(s),e=0;e<p;++e)l=t[e],d=n[l.index],h=d*d,c=l.x+l.vx,u=l.y+l.vy,o.visit(m);function m(e,t,n,a,o){var s=e.data,p=e.r,f=d+p;if(!s)return t>c+f||a<c-f||n>u+f||o<u-f;if(s.index>l.index){var m=c-s.x-s.vx,g=u-s.y-s.vy,v=m*m+g*g;v<f*f&&(0===m&&(m=yb(r),v+=m*m),0===g&&(g=yb(r),v+=g*g),v=(f-(v=Math.sqrt(v)))/v*i,l.vx+=(m*=v)*(f=(p*=p)/(h+p)),l.vy+=(g*=v)*f,s.vx-=m*(f=1-f),s.vy-=g*f)}}}function s(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function l(){if(t){var r,i,a=t.length;for(n=new Array(a),r=0;r<a;++r)i=t[r],n[i.index]=+e(i,r,t)}}return"function"!==typeof e&&(e=bb(null==e?1:+e)),o.initialize=function(e,n){t=e,r=n,l()},o.iterations=function(e){return arguments.length?(a=+e,o):a},o.strength=function(e){return arguments.length?(i=+e,o):i},o.radius=function(t){return arguments.length?(e="function"===typeof t?t:bb(+t),l(),o):e},o}function Sb(e){return e.index}function kb(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function xb(e){var t,n,r,i,a,o,s=Sb,l=d,c=bb(30),u=1;function d(e){return 1/Math.min(i[e.source.index],i[e.target.index])}function h(r){for(var i=0,s=e.length;i<u;++i)for(var l,c,d,h,p,f,m,g=0;g<s;++g)l=e[g],c=l.source,d=l.target,h=d.x+d.vx-c.x-c.vx||yb(o),p=d.y+d.vy-c.y-c.vy||yb(o),f=Math.sqrt(h*h+p*p),f=(f-n[g])/f*r*t[g],h*=f,p*=f,d.vx-=h*(m=a[g]),d.vy-=p*m,c.vx+=h*(m=1-m),c.vy+=p*m}function p(){if(r){var o,l,c=r.length,u=e.length,d=new Map(r.map(((e,t)=>[s(e,t,r),e])));for(o=0,i=new Array(c);o<u;++o)l=e[o],l.index=o,"object"!==typeof l.source&&(l.source=kb(d,l.source)),"object"!==typeof l.target&&(l.target=kb(d,l.target)),i[l.source.index]=(i[l.source.index]||0)+1,i[l.target.index]=(i[l.target.index]||0)+1;for(o=0,a=new Array(u);o<u;++o)l=e[o],a[o]=i[l.source.index]/(i[l.source.index]+i[l.target.index]);t=new Array(u),f(),n=new Array(u),m()}}function f(){if(r)for(var n=0,i=e.length;n<i;++n)t[n]=+l(e[n],n,e)}function m(){if(r)for(var t=0,i=e.length;t<i;++t)n[t]=+c(e[t],t,e)}return null==e&&(e=[]),h.initialize=function(e,t){r=e,o=t,p()},h.links=function(t){return arguments.length?(e=t,p(),h):e},h.id=function(e){return arguments.length?(s=e,h):s},h.iterations=function(e){return arguments.length?(u=+e,h):u},h.strength=function(e){return arguments.length?(l="function"===typeof e?e:bb(+e),f(),h):l},h.distance=function(e){return arguments.length?(c="function"===typeof e?e:bb(+e),m(),h):c},h}vb.copy=function(){var e,t,n=new mb(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=gb(r),n;e=[{source:r,target:n._root=new Array(4)}];while(r=e.pop())for(var i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(4)}):r.target[i]=gb(t));return n},vb.add=Yv,vb.addAll=Jv,vb.cover=Zv,vb.data=eb,vb.extent=tb,vb.find=rb,vb.remove=ib,vb.removeAll=ab,vb.root=ob,vb.size=sb,vb.visit=lb,vb.visitAfter=cb,vb.x=db,vb.y=pb;const Ab=1664525,Nb=1013904223,Cb=4294967296;function Tb(){let e=1;return()=>(e=(Ab*e+Nb)%Cb)/Cb}function Rb(e){return e.x}function Ob(e){return e.y}var Ib=10,Lb=Math.PI*(3-Math.sqrt(5));function Db(e){var t,n=1,r=.001,i=1-Math.pow(r,1/300),a=0,o=.6,s=new Map,l=Ff(d),c=xf("tick","end"),u=Tb();function d(){h(),c.call("tick",t),n<r&&(l.stop(),c.call("end",t))}function h(r){var l,c,u=e.length;void 0===r&&(r=1);for(var d=0;d<r;++d)for(n+=(a-n)*i,s.forEach((function(e){e(n)})),l=0;l<u;++l)c=e[l],null==c.fx?c.x+=c.vx*=o:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=o:(c.y=c.fy,c.vy=0);return t}function p(){for(var t,n=0,r=e.length;n<r;++n){if(t=e[n],t.index=n,null!=t.fx&&(t.x=t.fx),null!=t.fy&&(t.y=t.fy),isNaN(t.x)||isNaN(t.y)){var i=Ib*Math.sqrt(.5+n),a=n*Lb;t.x=i*Math.cos(a),t.y=i*Math.sin(a)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function f(t){return t.initialize&&t.initialize(e,u),t}return null==e&&(e=[]),p(),t={tick:h,restart:function(){return l.restart(d),t},stop:function(){return l.stop(),t},nodes:function(n){return arguments.length?(e=n,p(),s.forEach(f),t):e},alpha:function(e){return arguments.length?(n=+e,t):n},alphaMin:function(e){return arguments.length?(r=+e,t):r},alphaDecay:function(e){return arguments.length?(i=+e,t):+i},alphaTarget:function(e){return arguments.length?(a=+e,t):a},velocityDecay:function(e){return arguments.length?(o=1-e,t):1-o},randomSource:function(e){return arguments.length?(u=e,s.forEach(f),t):u},force:function(e,n){return arguments.length>1?(null==n?s.delete(e):s.set(e,f(n)),t):s.get(e)},find:function(t,n,r){var i,a,o,s,l,c=0,u=e.length;for(null==r?r=1/0:r*=r,c=0;c<u;++c)s=e[c],i=t-s.x,a=n-s.y,o=i*i+a*a,o<r&&(l=s,r=o);return l},on:function(e,n){return arguments.length>1?(c.on(e,n),t):c.on(e)}}}function Pb(){var e,t,n,r,i,a=bb(-30),o=1,s=1/0,l=.81;function c(n){var i,a=e.length,o=fb(e,Rb,Ob).visitAfter(d);for(r=n,i=0;i<a;++i)t=e[i],o.visit(h)}function u(){if(e){var t,n,r=e.length;for(i=new Array(r),t=0;t<r;++t)n=e[t],i[n.index]=+a(n,t,e)}}function d(e){var t,n,r,a,o,s=0,l=0;if(e.length){for(r=a=o=0;o<4;++o)(t=e[o])&&(n=Math.abs(t.value))&&(s+=t.value,l+=n,r+=n*t.x,a+=n*t.y);e.x=r/l,e.y=a/l}else{t=e,t.x=t.data.x,t.y=t.data.y;do{s+=i[t.data.index]}while(t=t.next)}e.value=s}function h(e,a,c,u){if(!e.value)return!0;var d=e.x-t.x,h=e.y-t.y,p=u-a,f=d*d+h*h;if(p*p/l<f)return f<s&&(0===d&&(d=yb(n),f+=d*d),0===h&&(h=yb(n),f+=h*h),f<o&&(f=Math.sqrt(o*f)),t.vx+=d*e.value*r/f,t.vy+=h*e.value*r/f),!0;if(!(e.length||f>=s)){(e.data!==t||e.next)&&(0===d&&(d=yb(n),f+=d*d),0===h&&(h=yb(n),f+=h*h),f<o&&(f=Math.sqrt(o*f)));do{e.data!==t&&(p=i[e.data.index]*r/f,t.vx+=d*p,t.vy+=h*p)}while(e=e.next)}}return c.initialize=function(t,r){e=t,n=r,u()},c.strength=function(e){return arguments.length?(a="function"===typeof e?e:bb(+e),u(),c):a},c.distanceMin=function(e){return arguments.length?(o=e*e,c):Math.sqrt(o)},c.distanceMax=function(e){return arguments.length?(s=e*e,c):Math.sqrt(s)},c.theta=function(e){return arguments.length?(l=e*e,c):Math.sqrt(l)},c}function Mb(e){var t=0,n=e.children,r=n&&n.length;if(r)while(--r>=0)t+=n[r].value;else t=1;e.value=t}function Bb(){return this.eachAfter(Mb)}function Fb(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function $b(e,t){var n,r,i=this,a=[i],o=-1;while(i=a.pop())if(e.call(t,i,++o,this),n=i.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this}function Ub(e,t){var n,r,i,a=this,o=[a],s=[],l=-1;while(a=o.pop())if(s.push(a),n=a.children)for(r=0,i=n.length;r<i;++r)o.push(n[r]);while(a=s.pop())e.call(t,a,++l,this);return this}function jb(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r}function Vb(e){return this.eachAfter((function(t){var n=+e(t.data)||0,r=t.children,i=r&&r.length;while(--i>=0)n+=r[i].value;t.value=n}))}function Kb(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))}function Hb(e){var t=this,n=Gb(t,e),r=[t];while(t!==n)t=t.parent,r.push(t);var i=r.length;while(e!==n)r.splice(i,0,e),e=e.parent;return r}function Gb(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();while(e===t)i=e,e=n.pop(),t=r.pop();return i}function zb(){var e=this,t=[e];while(e=e.parent)t.push(e);return t}function qb(){return Array.from(this)}function Xb(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e}function Wb(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t}function*Yb(){var e,t,n,r,i=this,a=[i];do{e=a.reverse(),a=[];while(i=e.pop())if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)a.push(t[n])}while(a.length)}function Qb(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ey)):void 0===t&&(t=Zb);var n,r,i,a,o,s=new ry(e),l=[s];while(n=l.pop())if((i=t(n.data))&&(o=(i=Array.from(i)).length))for(n.children=i,a=o-1;a>=0;--a)l.push(r=i[a]=new ry(i[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(ny)}function Jb(){return Qb(this).eachBefore(ty)}function Zb(e){return e.children}function ey(e){return Array.isArray(e)?e[1]:null}function ty(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function ny(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function ry(e){this.data=e,this.depth=this.height=0,this.parent=null}ry.prototype=Qb.prototype={constructor:ry,count:Bb,each:Fb,eachAfter:Ub,eachBefore:$b,find:jb,sum:Vb,sort:Kb,path:Hb,ancestors:zb,descendants:qb,leaves:Xb,links:Wb,copy:Jb,[Symbol.iterator]:Yb};var iy=1e-12;function ay(e){return((e=Math.exp(e))+1/e)/2}function oy(e){return((e=Math.exp(e))-1/e)/2}function sy(e){return((e=Math.exp(2*e))-1)/(e+1)}var ly=function e(t,n,r){function i(e,i){var a,o,s=e[0],l=e[1],c=e[2],u=i[0],d=i[1],h=i[2],p=u-s,f=d-l,m=p*p+f*f;if(m<iy)o=Math.log(h/c)/t,a=function(e){return[s+e*p,l+e*f,c*Math.exp(t*e*o)]};else{var g=Math.sqrt(m),v=(h*h-c*c+r*m)/(2*c*n*g),b=(h*h-c*c-r*m)/(2*h*n*g),y=Math.log(Math.sqrt(v*v+1)-v),w=Math.log(Math.sqrt(b*b+1)-b);o=(w-y)/t,a=function(e){var r=e*o,i=ay(y),a=c/(n*g)*(i*sy(t*r+y)-oy(y));return[s+a*p,l+a*f,c*i/ay(t*r+y)]}}return a.duration=1e3*o*t/Math.SQRT2,a}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n,i=r*r;return e(n,r,i)},i}(Math.SQRT2,2,4),cy=e=>()=>e;function uy(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function dy(e,t,n){this.k=e,this.x=t,this.y=n}dy.prototype={constructor:dy,scale:function(e){return 1===e?this:new dy(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new dy(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var hy=new dy(1,0,0);function py(e){while(!e.__zoom)if(!(e=e.parentNode))return hy;return e.__zoom}function fy(e){e.stopImmediatePropagation()}function my(e){e.preventDefault(),e.stopImmediatePropagation()}function gy(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function vy(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function by(){return this.__zoom||hy}function yy(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function wy(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ey(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function _y(){var e,t,n,r=gy,i=vy,a=Ey,o=yy,s=wy,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],u=250,d=ly,h=xf("start","zoom","end"),p=500,f=150,m=0,g=10;function v(e){e.property("__zoom",by).on("wheel.zoom",k,{passive:!1}).on("mousedown.zoom",x).on("dblclick.zoom",A).filter(s).on("touchstart.zoom",N).on("touchmove.zoom",C).on("touchend.zoom touchcancel.zoom",T).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(e,t){return t=Math.max(l[0],Math.min(l[1],t)),t===e.k?e:new dy(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new dy(e.k,r,i)}function w(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function E(e,t,n,r){e.on("start.zoom",(function(){_(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){_(this,arguments).event(r).end()})).tween("zoom",(function(){var e=this,a=arguments,o=_(e,a).event(r),s=i.apply(e,a),l=null==n?w(s):"function"===typeof n?n.apply(e,a):n,c=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),u=e.__zoom,h="function"===typeof t?t.apply(e,a):t,p=d(u.invert(l).concat(c/u.k),h.invert(l).concat(c/h.k));return function(e){if(1===e)e=h;else{var t=p(e),n=c/t[2];e=new dy(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}}))}function _(e,t,n){return!n&&e.__zooming||new S(e,t)}function S(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=i.apply(e,t),this.taps=0}function k(e,...t){if(r.apply(this,arguments)){var n=_(this,t).event(e),i=this.__zoom,s=Math.max(l[0],Math.min(l[1],i.k*Math.pow(2,o.apply(this,arguments)))),u=Pv(e);if(n.wheel)n.mouse[0][0]===u[0]&&n.mouse[0][1]===u[1]||(n.mouse[1]=i.invert(n.mouse[0]=u)),clearTimeout(n.wheel);else{if(i.k===s)return;n.mouse=[u,i.invert(u)],am(this),n.start()}my(e),n.wheel=setTimeout(d,f),n.zoom("mouse",a(y(b(i,s),n.mouse[0],n.mouse[1]),n.extent,c))}function d(){n.wheel=null,n.end()}}function x(e,...t){if(!n&&r.apply(this,arguments)){var i=e.currentTarget,o=_(this,t,!0).event(e),s=Lv(e.view).on("mousemove.zoom",h,!0).on("mouseup.zoom",p,!0),l=Pv(e,i),u=e.clientX,d=e.clientY;Uv(e.view),fy(e),o.mouse=[l,this.__zoom.invert(l)],am(this),o.start()}function h(e){if(my(e),!o.moved){var t=e.clientX-u,n=e.clientY-d;o.moved=t*t+n*n>m}o.event(e).zoom("mouse",a(y(o.that.__zoom,o.mouse[0]=Pv(e,i),o.mouse[1]),o.extent,c))}function p(e){s.on("mousemove.zoom mouseup.zoom",null),jv(e.view,o.moved),my(e),o.event(e).end()}}function A(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,o=Pv(e.changedTouches?e.changedTouches[0]:e,this),s=n.invert(o),l=n.k*(e.shiftKey?.5:2),d=a(y(b(n,l),o,s),i.apply(this,t),c);my(e),u>0?Lv(this).transition().duration(u).call(E,d,o,e):Lv(this).call(v.transform,d,o,e)}}function N(n,...i){if(r.apply(this,arguments)){var a,o,s,l,c=n.touches,u=c.length,d=_(this,i,n.changedTouches.length===u).event(n);for(fy(n),o=0;o<u;++o)s=c[o],l=Pv(s,this),l=[l,this.__zoom.invert(l),s.identifier],d.touch0?d.touch1||d.touch0[2]===l[2]||(d.touch1=l,d.taps=0):(d.touch0=l,a=!0,d.taps=1+!!e);e&&(e=clearTimeout(e)),a&&(d.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),am(this),d.start())}}function C(e,...t){if(this.__zooming){var n,r,i,o,s=_(this,t).event(e),l=e.changedTouches,u=l.length;for(my(e),n=0;n<u;++n)r=l[n],i=Pv(r,this),s.touch0&&s.touch0[2]===r.identifier?s.touch0[0]=i:s.touch1&&s.touch1[2]===r.identifier&&(s.touch1[0]=i);if(r=s.that.__zoom,s.touch1){var d=s.touch0[0],h=s.touch0[1],p=s.touch1[0],f=s.touch1[1],m=(m=p[0]-d[0])*m+(m=p[1]-d[1])*m,g=(g=f[0]-h[0])*g+(g=f[1]-h[1])*g;r=b(r,Math.sqrt(m/g)),i=[(d[0]+p[0])/2,(d[1]+p[1])/2],o=[(h[0]+f[0])/2,(h[1]+f[1])/2]}else{if(!s.touch0)return;i=s.touch0[0],o=s.touch0[1]}s.zoom("touch",a(y(r,i,o),s.extent,c))}}function T(e,...r){if(this.__zooming){var i,a,o=_(this,r).event(e),s=e.changedTouches,l=s.length;for(fy(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),i=0;i<l;++i)a=s[i],o.touch0&&o.touch0[2]===a.identifier?delete o.touch0:o.touch1&&o.touch1[2]===a.identifier&&delete o.touch1;if(o.touch1&&!o.touch0&&(o.touch0=o.touch1,delete o.touch1),o.touch0)o.touch0[1]=this.__zoom.invert(o.touch0[0]);else if(o.end(),2===o.taps&&(a=Pv(a,this),Math.hypot(t[0]-a[0],t[1]-a[1])<g)){var c=Lv(this).on("dblclick.zoom");c&&c.apply(this,arguments)}}}return v.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",by),e!==i?E(e,t,n,r):i.interrupt().each((function(){_(this,arguments).event(r).start().zoom(null,"function"===typeof t?t.apply(this,arguments):t).end()}))},v.scaleBy=function(e,t,n,r){v.scaleTo(e,(function(){var e=this.__zoom.k,n="function"===typeof t?t.apply(this,arguments):t;return e*n}),n,r)},v.scaleTo=function(e,t,n,r){v.transform(e,(function(){var e=i.apply(this,arguments),r=this.__zoom,o=null==n?w(e):"function"===typeof n?n.apply(this,arguments):n,s=r.invert(o),l="function"===typeof t?t.apply(this,arguments):t;return a(y(b(r,l),o,s),e,c)}),n,r)},v.translateBy=function(e,t,n,r){v.transform(e,(function(){return a(this.__zoom.translate("function"===typeof t?t.apply(this,arguments):t,"function"===typeof n?n.apply(this,arguments):n),i.apply(this,arguments),c)}),null,r)},v.translateTo=function(e,t,n,r,o){v.transform(e,(function(){var e=i.apply(this,arguments),o=this.__zoom,s=null==r?w(e):"function"===typeof r?r.apply(this,arguments):r;return a(hy.translate(s[0],s[1]).scale(o.k).translate("function"===typeof t?-t.apply(this,arguments):-t,"function"===typeof n?-n.apply(this,arguments):-n),e,c)}),r,o)},S.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1===++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0===--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=Lv(this.that).datum();h.call(e,this.that,new uy(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:h}),t)}},v.wheelDelta=function(e){return arguments.length?(o="function"===typeof e?e:cy(+e),v):o},v.filter=function(e){return arguments.length?(r="function"===typeof e?e:cy(!!e),v):r},v.touchable=function(e){return arguments.length?(s="function"===typeof e?e:cy(!!e),v):s},v.extent=function(e){return arguments.length?(i="function"===typeof e?e:cy([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):i},v.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],v):[l[0],l[1]]},v.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(e){return arguments.length?(a=e,v):a},v.duration=function(e){return arguments.length?(u=+e,v):u},v.interpolate=function(e){return arguments.length?(d=e,v):d},v.on=function(){var e=h.on.apply(h,arguments);return e===h?v:e},v.clickDistance=function(e){return arguments.length?(m=(e=+e)*e,v):Math.sqrt(m)},v.tapDistance=function(e){return arguments.length?(g=+e,v):g},v}py.prototype=dy.prototype;const Sy=e=>`<defs>\n\x3c!-- GIT REPO ICON --\x3e\n<svg id="git" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" style="enable-background:new 0 0 96 96" xml:space="preserve"><path class="st0" d="M92.138 43.888 52.018 3.77a5.918 5.918 0 0 0-8.369 0l-8.33 8.332L45.887 22.67a7.025 7.025 0 0 1 7.23 1.684 7.031 7.031 0 0 1 1.67 7.275l10.185 10.185a7.03 7.03 0 0 1 7.275 1.67 7.04 7.04 0 0 1 0 9.958 7.042 7.042 0 0 1-11.492-7.658l-9.5-9.499v24.997a7.09 7.09 0 0 1 1.861 1.331 7.042 7.042 0 1 1-7.65-1.537V35.849a7.04 7.04 0 0 1-3.822-9.234l-10.418-10.42-27.51 27.508a5.921 5.921 0 0 0 0 8.371l40.121 40.118a5.919 5.919 0 0 0 8.37 0l39.93-39.932a5.92 5.92 0 0 0 0-8.37z"/></svg>\n\x3c!-- GENERIC BUNDLE ICON --\x3e\n<svg id="bundle" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="#FFF"><path d="M16 3.2C8.931 3.2 3.2 8.931 3.2 16S8.931 28.8 16 28.8 28.8 23.069 28.8 16 23.069 3.2 16 3.2zm0 22.4c-5.302 0-9.6-4.298-9.6-9.6s4.298-9.6 9.6-9.6 9.6 4.298 9.6 9.6a9.6 9.6 0 0 1-9.6 9.6z"/><path d="m24.086 16-6.232-1.348.917-1.424-1.424.917-1.348-6.232-1.348 6.232-1.424-.917.917 1.424L7.912 16l6.232 1.348-.917 1.424 1.424-.917 1.348 6.232 1.348-6.232 1.424.917-.917-1.424L24.086 16zM16 16.814a.814.814 0 1 1 0-1.628.814.814 0 0 1 0 1.628z"/></svg>\n\x3c!-- HELM BUNDLE ICON --\x3e\n<svg id="helm" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500"><defs><style>.cls-1{fill:#fff}</style></defs><path class="cls-1" d="M136.53 121.135c-.573-.543-1.195-1.127-1.81-1.718-12.617-12.121-22.382-26.136-28.28-42.702-1.65-4.636-2.897-9.365-2.675-14.359.02-.473.02-.949.052-1.422.445-6.446 4.759-9.703 11.058-8.176a27.325 27.325 0 0 1 5.732 2.196c6.89 3.456 12.506 8.564 17.67 14.166A112.527 112.527 0 0 1 160 102.55a8.296 8.296 0 0 0 .39.86c.07.13.222.213.559.52a176.357 176.357 0 0 1 81.02-24.861c-.177-.876-.282-1.546-.448-2.2a112.494 112.494 0 0 1-2.653-36.957 84.075 84.075 0 0 1 4.445-21.764 31.326 31.326 0 0 1 5.476-10.17 15.687 15.687 0 0 1 3.164-2.822 7.026 7.026 0 0 1 8.032-.056 17.279 17.279 0 0 1 5.84 6.731 53.054 53.054 0 0 1 5.263 14.677 112.505 112.505 0 0 1 2.122 33.004 95.598 95.598 0 0 1-3.49 19.91c7.121 1.312 14.21 2.33 21.147 3.978a186.38 186.38 0 0 1 20.44 6.003 188.317 188.317 0 0 1 19.77 8.57c6.346 3.163 12.386 6.94 18.718 10.537.206-.433.505-.95.706-1.502a108.66 108.66 0 0 1 32.901-46.762 37.758 37.758 0 0 1 11.822-6.883 17.246 17.246 0 0 1 3.679-.845c6.264-.717 8.893 3.224 9.356 7.932a29.944 29.944 0 0 1-.774 10.354 87.906 87.906 0 0 1-10.73 24.688c-6.79 10.972-14.85 20.855-25.093 28.83-.302.236-.568.519-1.08.99a177.78 177.78 0 0 1 26.593 30.883 10.962 10.962 0 0 1-1.689.298c-10.595.015-21.19-.019-31.786.046a4.004 4.004 0 0 1-3.172-1.69 147.875 147.875 0 0 0-88.178-46.549 143.359 143.359 0 0 0-30.28-1.169 146.407 146.407 0 0 0-82.537 31.81 140.067 140.067 0 0 0-16.976 15.843 4.728 4.728 0 0 1-3.863 1.757c-10.121-.07-20.242-.035-30.363-.035h-2.152c.618-2.408 6.84-10.938 13.883-18.553 5.252-5.679 10.817-11.07 16.468-16.818ZM394.53 347.912a176.639 176.639 0 0 1-23.974 27.164l1.862 1.55a108.315 108.315 0 0 1 33.683 48.146 34.618 34.618 0 0 1 2.202 14.42 14.885 14.885 0 0 1-.748 3.692 7.208 7.208 0 0 1-8.157 5.023 22.233 22.233 0 0 1-6.763-2.006 51.232 51.232 0 0 1-9.182-5.815 107.592 107.592 0 0 1-32.936-46.707c-.187-.514-.392-1.02-.722-1.877a194.65 194.65 0 0 1-25.012 14.008 181.67 181.67 0 0 1-26.687 9.724 187.556 187.556 0 0 1-28.305 5.388c.168.84.265 1.51.438 2.16a109.172 109.172 0 0 1 2.97 36.442 80.804 80.804 0 0 1-4.422 22.478 78.25 78.25 0 0 1-4.165 8.744 13.39 13.39 0 0 1-2.339 2.971c-3.98 4.11-8.732 4.144-12.611-.074a27.28 27.28 0 0 1-3.907-5.617c-3.077-5.776-4.66-12.056-5.791-18.46a116.863 116.863 0 0 1-1.36-26.465 94.48 94.48 0 0 1 2.885-19.186c.14-.532.268-1.07.372-1.61.026-.137-.064-.297-.171-.738a176.121 176.121 0 0 1-80.969-24.994c-.41.91-.762 1.675-1.101 2.446a110.477 110.477 0 0 1-30.901 41.42 38.16 38.16 0 0 1-12.047 6.96 12.09 12.09 0 0 1-6.516.7 7.119 7.119 0 0 1-5.403-4.49c-1.416-3.424-1.165-6.985-.684-10.517a55.453 55.453 0 0 1 4.307-14.25 112.5 112.5 0 0 1 26.512-37.763c.459-.435.93-.857 1.38-1.3a3.76 3.76 0 0 0 .366-.655 178.905 178.905 0 0 1-28.47-31.317c.985-.08 1.644-.18 2.303-.18 10.514-.01 21.029.027 31.543-.044a4.706 4.706 0 0 1 3.703 1.626 146.946 146.946 0 0 0 39.403 28.885 139.947 139.947 0 0 0 49.704 14.774q70.68 6.87 121.6-42.854a7.646 7.646 0 0 1 5.992-2.444c9.802.121 19.605.05 29.408.05h2.534ZM350.736 197.762c2.787 0 5.47.189 8.115-.05 2.995-.271 5.139.8 7.323 2.813 12.613 11.622 25.357 23.1 38.059 34.627.638.58 1.29 1.144 2.11 1.87.764-.657 1.481-1.243 2.165-1.865q19.638-17.878 39.248-35.787a5.448 5.448 0 0 1 4.204-1.646c3.218.13 6.446.038 9.84.038V303.13c-1.722.504-24.875.604-27.638.061V249.83l-.537-.254-27.238 24.841-27.458-24.736-.524.192c-.023 4.454-.008 8.908-.01 13.362q-.005 6.64-.001 13.28v26.871h-27.428c-.514-1.773-.753-99.662-.23-105.623ZM97.634 197.882h27.264c.55 1.753.658 102.972.094 105.525H97.705c-.15-6.703-.048-13.384-.067-20.061-.018-6.623-.004-13.245-.004-20.04H63.847v39.741c-2.06.615-25.334.674-27.648.123V197.894h27.538v37.19c1.968.568 30.924.673 33.872.129.009-2.978.02-6.027.024-9.076q.007-4.744.001-9.487v-18.768ZM157.576 303.368V198.195c1.617-.53 61.545-.736 65.462-.205v22.414c-.879.063-1.786.184-2.693.185q-16.008.02-32.017.009h-2.968v17.433h33.347v23.192h-33.049c-.553 1.985-.705 15.817-.256 19.646.845.057 1.75.17 2.655.17q16.01.019 32.018.009h2.97v22.32ZM254.283 303.409c-.5-2.823-.4-103.602.097-105.518h27.162v77.765c1.172.06 2.092.149 3.011.15q16.128.014 32.256.006h2.908v27.597Z"/></svg>\n\x3c!-- RESOURCE DEPLOYMENT ICON --\x3e\n<svg id="deployment" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M24.01 20.027v2h-24v-2h4v-1a2.006 2.006 0 0 1-2-2v-10a2.006 2.006 0 0 1 2-2h1.996v2H4.01v10h16v-10h-2.004v-2h2.004a2.006 2.006 0 0 1 2 2l-.01 10a1.997 1.997 0 0 1-1.99 2v1Zm-9-6.012-3-3-3 3h2v2.01h2v-2.01Zm.995-7.991a4 4 0 1 1-4-4 4.001 4.001 0 0 1 4 4Zm-4.4 2.96v-.56a.802.802 0 0 1-.8-.8v-.4L9.06 5.479a2.958 2.958 0 0 0 2.545 3.505Zm2.658-1.007a2.977 2.977 0 0 0-1.068-4.704.797.797 0 0 1-.79.75h-.8v.8a.401.401 0 0 1-.4.4h-.8v.8h2.4a.401.401 0 0 1 .4.4v1.2h.4a.787.787 0 0 1 .658.354Z" fill="#fff"/></svg>\n\x3c!-- NODE ICON --\x3e\n<svg id="node" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="#fff"><circle cx="12" cy="3" r="1"/><circle cx="20" cy="8" r="1"/><circle cx="20" cy="16" r="1"/><circle cx="4" cy="8" r="1"/><circle cx="4" cy="16" r="1"/><path d="M20 14v-4a1.992 1.992 0 0 1-1.481-3.333l-4.783-2.69a1.983 1.983 0 0 1-3.472 0l-4.783 2.69A1.992 1.992 0 0 1 4 10v4a1.992 1.992 0 0 1 1.481 3.333l4.783 2.69a1.991 1.991 0 0 1 1.236-.952v-5.142a2 2 0 1 1 1 0v5.142a1.991 1.991 0 0 1 1.236.953l4.783-2.69A1.992 1.992 0 0 1 20 14Z"/><circle cx="12" cy="21" r="1"/><circle cx="12" cy="12" r="1"/></g></svg>\n\x3c!-- RESOURCE OTHER ICON --\x3e\n<svg id="other" xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#FFF"><path d="M27.476 10.22H14.83l-1.558-3.115a1.327 1.327 0 0 0-1.184-.732H4.522c-.731 0-1.324.593-1.324 1.324v16.606c0 .731.593 1.324 1.324 1.324h22.953c.731 0 1.324-.593 1.324-1.324v-12.76c0-.731-.593-1.324-1.324-1.324z"/></svg>\n</defs>\n<use id="customIcon" href="#${e}" fill="#fff" />`;var ky={name:"ForceDirectedTreeChart",components:{BadgeState:Sd.j},props:{data:{type:[Array,Object],required:!0},fdcConfig:{type:Object,required:!0}},data(){return{dataWatcher:void 0,parsedInfo:void 0,root:void 0,allNodesData:void 0,allLinks:void 0,rootNode:void 0,node:void 0,link:void 0,svg:void 0,zoom:void 0,simulation:void 0,isChartFirstRendered:!1,isChartFirstRenderAnimationFinished:!1,moreInfo:{}}},methods:{watcherFunction(e){if(e.length)if(this.isChartFirstRendered){const e=this.fdcConfig.parseData(this.data),t=this.flatten(e);let n=!1;t.forEach((e=>{const t=this.allNodesData.findIndex((t=>e.matchingId===t.data.matchingId));t>-1&&this.allNodesData[t].data.state!==e.state&&(this.allNodesData[t].data.state=e.state,this.allNodesData[t].data.stateLabel=e.stateLabel,this.allNodesData[t].data.stateColor=e.stateColor,n=!0,this.allNodesData[t].data.active&&this.setDetailsInfo(this.allNodesData[t].data,!1))})),n&&this.updateChart(!1,!1)}else this.parsedInfo=this.fdcConfig.parseData(this.data),this.setDetailsInfo(this.parsedInfo,!1),this.parsedInfo.active=!0,this.renderChart(),this.updateChart(!0,!0),this.isChartFirstRendered=!0},renderChart(){this.zoom=_y().scaleExtent([1/8,16]).on("zoom",this.zoomed);const e=hy.scale(1).translate(0,0);this.rootNode=this.svg.append("g").attr("class","root-node"),this.svg.call(this.zoom),this.svg.call(this.zoom.transform,e),this.simulation=Db().force("charge",Pb().strength(this.fdcConfig.simulationParams.fdcStrength).distanceMax(this.fdcConfig.simulationParams.fdcDistanceMax)).force("collision",_b(this.fdcConfig.simulationParams.fdcForceCollide)).force("center",Wv(this.fdcConfig.chartWidth/2,this.fdcConfig.chartHeight/2)).alphaDecay(this.fdcConfig.simulationParams.fdcAlphaDecay).on("tick",this.ticked).on("end",(()=>{this.isChartFirstRenderAnimationFinished||(this.zoomFit(),this.isChartFirstRenderAnimationFinished=!0)}))},updateChart(e,t){e&&(this.root=Qb(this.parsedInfo)),t&&(this.allNodesData=this.flatten(this.root),this.allLinks=this.root.links()),this.link=this.rootNode.selectAll(".link").data(this.allLinks,(e=>e.target.id)),this.link.exit().remove();const n=this.link.enter().append("line").attr("class","link").style("opacity","0.2").style("stroke-width",4);this.link=n.merge(this.link),this.node=this.rootNode.selectAll(".node").data(this.allNodesData,(e=>e.id)).attr("class",this.mainNodeClass),this.node.exit().remove();const r=this.node.enter().append("g").attr("class",this.mainNodeClass).style("opacity",1).on("click",((e,t)=>{this.setDetailsInfo(t.data,!0)})).call(Xv().on("start",this.dragStarted).on("drag",this.dragging).on("end",this.dragEnded));r.append("circle").attr("r",this.setNodeRadius),r.append("circle").attr("r",(e=>this.setNodeRadius(e)-5)).attr("class","node-hover-layer"),r.append("svg").html((e=>{const t=this.fdcConfig.fetchNodeIcon(e);return Sy(t)})).attr("x",this.nodeImagePosition).attr("y",this.nodeImagePosition).attr("height",this.nodeImageSize).attr("width",this.nodeImageSize),this.node=r.merge(this.node),this.simulation.nodes(this.allNodesData),this.simulation.force("link",xb().id((e=>e.id)).distance(100).links(this.allLinks))},mainNodeClass(e){const t=e.data?.state?e.data.state.toLowerCase():"unkown_status",n=["node"];Ad.xj[t]&&Ad.xj[t].color?n.push(`node-${Ad.xj[t].color}`):n.push("node-default-fill"),e.data?.active&&n.push("active");const r=this.fdcConfig.extendNodeClass(e).concat(n);return r.join(" ")},setNodeRadius(e){const{radius:t}=this.fdcConfig.nodeDimensions(e);return t},nodeImageSize(e){const{size:t}=this.fdcConfig.nodeDimensions(e);return t},nodeImagePosition(e){const{position:t}=this.fdcConfig.nodeDimensions(e);return t},setDetailsInfo(e,t){this.moreInfo=Object.assign([],this.fdcConfig.infoDetails(e)),t&&(this.allNodesData.forEach(((t,n)=>{t.data.matchingId===e.matchingId?this.allNodesData[n].data.active=!0:this.allNodesData[n].data.active=!1})),this.updateChart(!1,!1))},zoomFit(){const e=Lv(".root-node");if(!e?.node())return;const t=30,n=e.node().getBoundingClientRect(),r=e.node().getBBox(),i=e.node().parentElement,a=i.clientWidth,o=i.clientHeight,s=n.width,l=n.height,c=r.x+s/2,u=r.y+l/2;if(0===s||0===l)return;const d=1/Math.max(s/(a-t),l/(o-t)),h=[a/2-d*c,o/2-d*u],p=hy.translate(h[0],h[1]).scale(d);this.svg.call(this.zoom.transform,p)},ticked(){this.link.attr("x1",(e=>e.source.x)).attr("y1",(e=>e.source.y)).attr("x2",(e=>e.target.x)).attr("y2",(e=>e.target.y)),this.node.attr("transform",(e=>`translate(${e.x}, ${e.y})`))},dragStarted(e,t){e.active||this.simulation.alphaTarget(.3).restart(),t.fx=t.x,t.fy=t.y},dragging(e,t){t.fx=e.x,t.fy=e.y},dragEnded(e,t){e.active||this.simulation.alphaTarget(0),t.fx=void 0,t.fy=void 0},zoomed(e){this.rootNode.attr("transform",e.transform)},flatten(e){const t=[];let n=0;function r(e){e.children&&e.children.forEach(r),e.id?++n:e.id=++n,t.push(e)}return r(e),t}},mounted(){this.svg=Lv("#tree").append("svg").attr("viewBox",`0 0 ${this.fdcConfig.chartWidth} ${this.fdcConfig.chartHeight}`).attr("preserveAspectRatio","none"),this.dataWatcher=this.$watch(this.fdcConfig.watcherProp,(function(e){this.watcherFunction(e)}),{deep:!0,immediate:!0})},unmounted(){this.dataWatcher()}};a(50165);const xy=(0,u.A)(ky,[["render",mh]]);var Ay=xy;a(37327),a(27278),a(4364);const Ny=(e,t)=>{const n={};for(const[r,i]of Object.entries(e)){const e=t.getters[`${i.inStoreType}/schemaFor`](i.type),a=i.schemaValidator?i.schemaValidator(e):!!e;if(a){const e=t.dispatch(`${i.inStoreType}/findAll`,{type:i.type,opt:i.opt});i.skipWait||(n[r]=e)}}return(0,ce.kR)(n)};var Cy=a(99726);function Ty(e){return e.query?.mode===ku.HC?ku.HC:e.params?.id?e.query.mode||ku.nW:ku.YQ}async function Ry(e,t){let n;const r={headers:{accept:"application/yaml"}};return t.hasLink("view")&&(n=(await t.followLink("view",r)).data),t.cleanForDownload(n)}var Oy={emits:["input"],components:{Loading:Me.A,DetailTop:rh,ForceDirectedTreeChart:Ay,ResourceYaml:Qu.A,Masthead:Id,IconMessage:Ec,Banner:Ou.l},mixins:[Yu.A],props:{storeOverride:{type:String,default:null},resourceOverride:{type:String,default:null},parentRouteOverride:{type:String,default:null},flexContent:{type:Boolean,default:!1},componentTestid:{type:String,default:"resource-details"},errorsMap:{type:Object,default:null}},async fetch(){const e=this.$store,t=this.$route,n=t.params;let r=this.resourceOverride||n.resource;const i=this.storeOverride||e.getters["currentStore"](r),a=this.realMode;let{namespace:o,id:s}=n;const l=[ku.dT,ku.HC,ku.wZ].includes(a)?ku.YQ:a,c=e.getters["type-map/hasGraph"](r),u=!!c,d=e.getters["type-map/hasCustomDetail"](r,s),h=e.getters["type-map/hasCustomEdit"](r,s),p=e.getters[`${i}/all`]($.yx),f=t.query[ku.AS];let m,g=!1;m=l!==ku.nW||!d||f&&f!==ku.fS?l===ku.nW&&u&&f===ku.Yq?ku.Yq:!h||f&&f!==ku.au?ku.zD:ku.au:ku.fS,this.as=m;const v=e.getters["type-map/optionsFor"](r);this.showMasthead=![ku.YQ,ku.G5].includes(l)||v.resourceEditMasthead;const b=v.canYaml;v.resource&&(r=v.resource);const y=e.getters[`${i}/schemaFor`](r);let w,E,_,S;if(a===ku.YQ||a===ku.HC){o||(o=e.getters["defaultNamespace"]);const t={type:r};y?.attributes?.namespaced&&(t.metadata={namespace:o}),_=await e.dispatch(`${i}/create`,t),E=await e.dispatch(`${i}/clone`,{resource:_}),w=await e.dispatch(`${i}/clone`,{resource:_}),!0===w.forceYaml&&(m=ku.zD,this.as=m),m===ku.zD&&(y?.fetchResourceFields&&await y.fetchResourceFields(),S=(0,Ju.mH)(p,r,t))}else{if(m===ku.Yq){const e=await Ny({cluster:{inStoreType:"management",type:$.Hs.CLUSTER},bundle:{inStoreType:"management",type:$.Hs.BUNDLE,opt:{excludeFields:["metadata.managedFields","spec.resources"]}},bundleDeployment:{inStoreType:"management",type:$.Hs.BUNDLE_DEPLOYMENT}},this.$store);this.canViewChart=e.cluster&&e.bundle&&e.bundleDeployment}let t=s;y.attributes?.namespaced&&o&&(t=`${o}/${t}`);try{_=await e.dispatch(`${i}/find`,{type:r,id:t,opt:{watch:!0}})}catch(Hs){404!==Hs.status&&403!==Hs.status||e.dispatch("loadingError",new Error(this.t("nav.failWhale.resourceIdNotFound",{resource:r,fqid:t},!0))),_={},g=t}try{w=a===ku.nW?_:await e.dispatch(`${i}/clone`,{resource:_}),E=await e.dispatch(`${i}/clone`,{resource:_}),m===ku.zD&&(S=await Ry(this.$store,_))}catch(Hs){this.errors.push(Hs)}if(m===ku.zD)try{S=await Ry(this.$store,_)}catch(Hs){this.errors.push(Hs)}m===ku.Yq&&(this.chartData=_),[ku.dT,ku.HC,ku.wZ].includes(a)&&(w.cleanForNew(),S=w.cleanYaml(S,a))}try{w=await e.dispatch(`${i}/cleanForDetail`,w)}catch(Hs){this.errors.push(Hs)}const k={hasGraph:u,getGraphConfig:c,hasCustomDetail:d,hasCustomEdit:h,canViewYaml:b,resourceType:r,as:m,yaml:S,initialModel:E,liveModel:_,mode:l,value:w,notFound:g};for(const x in k)this[x]=k[x];this.mode===ku.YQ&&this.value.applyDefaults(this,a)},data(){return{chartData:null,resourceSubtype:null,hasGraph:null,hasCustomDetail:null,hasCustomEdit:null,resourceType:null,asYaml:null,yaml:null,liveModel:null,initialModel:null,mode:null,as:null,value:null,model:null,notFound:null,canViewChart:!0,canViewYaml:null,errors:[]}},computed:{realMode(){const e=Ty(this.$route);return e},isView(){return this.mode===ku.nW},isYaml(){return this.as===ku.zD},isDetail(){return this.as===ku.fS},isGraph(){return this.as===ku.Yq},offerPreview(){return this.as===ku.zD&&[ku.G5,ku.dT,ku.HC,ku.wZ].includes(this.mode)},showComponent(){switch(this.as){case ku.fS:return this.detailComponent;case ku.au:return this.editComponent}return null},hasErrors(){return this.errors?.length&&Array.isArray(this.errors)},mappedErrors(){return this.errors?this.errorsMap||this.errors.reduce(((e,t)=>({...e,[t]:{message:t?.data?.message||t,icon:null}})),{}):{}}},watch:{$route(e,t){if(e.name!==t.name)return;const n=(0,kd.o8)(e.query),r=(0,kd.o8)(t.query);delete n[ku.$y],delete r[ku.$y],this.isView||(delete n[ku.AS],delete r[ku.AS]);const i=Object.keys((0,kd.Ui)(n,r));(i.includes(ku.g)||i.includes(ku.AS))&&this.$fetch()},async"value.metadata.resourceVersion"(e,t){this.mode===ku.nW&&this.as===ku.zD&&e&&t&&e!==t&&(this.yaml=await Ry(this.$store,this.liveModel))}},created(){const e=this.$route.params.id,t=this.resourceOverride||this.$route.params.resource,n=this.$store.getters["type-map/optionsFor"](t),r=n.resourceDetail||n.resource||t,i=n.resourceEdit||n.resource||t;this.detailComponent=this.$store.getters["type-map/importDetail"](r,e),this.editComponent=this.$store.getters["type-map/importEdit"](i,e)},methods:{stringify:Cy.As,setSubtype(e){this.resourceSubtype=e},keyAction(e){const t=this.liveModel;t?.[e]&&t[e]()},closeError(e){this.errors=this.errors.filter(((t,n)=>n!==e))}}};a(88456);const Iy=(0,u.A)(Oy,[["render",Wu],["__scopeId","data-v-7a77cc4a"]]);var Ly=Iy,Dy={name:"HarvesterResourceCreate",components:{ResourceDetail:Ly}};const Py=(0,u.A)(Dy,[["render",Vu]]);var My=Py;function By(e,t,n,r,a,o){const s=(0,i.resolveComponent)("ResourceDetail");return(0,i.openBlock)(),(0,i.createBlock)(s)}var Fy={name:"HarvesterResourcedId",components:{ResourceDetail:Ly}};const $y=(0,u.A)(Fy,[["render",By]]);var Uy=$y;function jy(e,t,n,r,a,o){const s=(0,i.resolveComponent)("ResourceDetail");return(0,i.openBlock)(),(0,i.createBlock)(s)}var Vy={name:"HarvesterResourcedNamespaceId",components:{ResourceDetail:Ly}};const Ky=(0,u.A)(Vy,[["render",jy]]);var Hy=Ky;const Gy={key:0,id:"air-gap"},zy={class:"mb-20"},qy={key:3,class:"mt-10 mb-10"},Xy={key:1,class:"mb-20"},Wy={key:4},Yy={key:1,class:"chooseFile"},Qy=["disabled"],Jy={key:6,class:"mt-20"};function Zy(e,t,n,r,a,o){const s=(0,i.resolveComponent)("RadioGroup"),l=(0,i.resolveComponent)("UpgradeInfo"),c=(0,i.resolveComponent)("Banner"),u=(0,i.resolveComponent)("Checkbox"),d=(0,i.resolveComponent)("LabeledInput"),h=(0,i.resolveComponent)("ImagePercentageBar"),p=(0,i.resolveComponent)("LabeledSelect"),f=(0,i.resolveComponent)("CruResource");return a.value?((0,i.openBlock)(),(0,i.createElementBlock)("div",Gy,[(0,i.createElementVNode)("h3",zy,(0,i.toDisplayString)(e.t("harvester.upgradePage.osUpgrade")),1),(0,i.createVNode)(f,{"done-route":o.doneRoute,resource:a.value,mode:"create",errors:a.errors,"can-yaml":!1,"finish-button-mode":"upgrade","validation-passed":o.enableUpgrade,"cancel-event":!0,onFinish:o.save,onCancel:o.done,onError:t[11]||(t[11]=e=>a.errors=e)},{default:(0,i.withCtx)((()=>[(0,i.createVNode)(s,{value:a.imageSource,"onUpdate:value":t[0]||(t[0]=e=>a.imageSource=e),class:"image-group",name:"image",options:[a.IMAGE_METHOD.NEW,a.IMAGE_METHOD.EXIST,a.IMAGE_METHOD.DELETE],labels:[e.t("harvester.upgradePage.uploadNew"),e.t("harvester.upgradePage.selectExisting"),e.t("harvester.upgradePage.deleteExisting")]},null,8,["value","options","labels"]),o.createNewImage||o.selectExistImage?((0,i.openBlock)(),(0,i.createBlock)(l,{key:0})):(0,i.createCommentVNode)("",!0),o.showUploadSuccessBanner?((0,i.openBlock)(),(0,i.createBlock)(c,{key:1,color:"success",class:"mt-0 mb-30",label:e.t("harvester.setting.upgrade.uploadSuccess",{name:a.file.name})},null,8,["label"])):(0,i.createCommentVNode)("",!0),o.showUploadingWarningBanner?((0,i.openBlock)(),(0,i.createBlock)(c,{key:2,color:"warning",class:"mt-0 mb-30",label:e.t("harvester.image.warning.osUpgrade.uploading",{name:a.file.name})},null,8,["label"])):(0,i.createCommentVNode)("",!0),o.showUpgradeOptions?((0,i.openBlock)(),(0,i.createElementBlock)("div",qy,[o.canEnableLogging?((0,i.openBlock)(),(0,i.createBlock)(u,{key:0,value:a.enableLogging,"onUpdate:value":t[1]||(t[1]=e=>a.enableLogging=e),class:"check mb-20",type:"checkbox",label:e.t("harvester.upgradePage.enableLogging")},null,8,["value","label"])):(0,i.createCommentVNode)("",!0),o.skipSingleReplicaDetachedVolFeatureEnabled?((0,i.openBlock)(),(0,i.createElementBlock)("div",Xy,[(0,i.createVNode)(u,{value:a.skipSingleReplicaDetachedVol,"onUpdate:value":t[2]||(t[2]=e=>a.skipSingleReplicaDetachedVol=e),class:"check",type:"checkbox",label:e.t("harvester.upgradePage.skipSingleReplicaDetachedVol")},null,8,["value","label"])])):(0,i.createCommentVNode)("",!0)])):(0,i.createCommentVNode)("",!0),o.createNewImage?((0,i.openBlock)(),(0,i.createElementBlock)("div",Wy,[(0,i.createVNode)(d,{value:a.imageValue.spec.displayName,"onUpdate:value":t[3]||(t[3]=e=>a.imageValue.spec.displayName=e),valueModifiers:{trim:!0},class:"mb-20","label-key":"harvester.fields.name",required:""},null,8,["value"]),(0,i.createVNode)(d,{value:a.imageValue.spec.checksum,"onUpdate:value":t[4]||(t[4]=e=>a.imageValue.spec.checksum=e),class:"mb-10","label-key":"harvester.setting.upgrade.checksum"},null,8,["value"]),(0,i.createVNode)(s,{value:a.sourceType,"onUpdate:value":t[5]||(t[5]=e=>a.sourceType=e),class:"mb-20 image-group",name:"sourceType",options:["upload","download"],labels:[e.t("harvester.image.sourceType.upload"),e.t("harvester.image.sourceType.download")]},null,8,["value","labels"]),"download"===a.sourceType?((0,i.openBlock)(),(0,i.createBlock)(d,{key:0,value:a.imageValue.spec.url,"onUpdate:value":t[6]||(t[6]=e=>a.imageValue.spec.url=e),valueModifiers:{trim:!0},class:"labeled-input--tooltip",required:"","label-key":"harvester.image.url"},null,8,["value"])):((0,i.openBlock)(),(0,i.createElementBlock)("div",Yy,[(0,i.createElementVNode)("button",{type:"button",class:"btn role-primary",disabled:o.disableUploadButton,onClick:t[8]||(t[8]=(...e)=>o.selectFile&&o.selectFile(...e))},[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("harvester.image.uploadFile"))+" ",1),(0,i.withDirectives)((0,i.createElementVNode)("input",{id:"file",ref:"file",type:"file",accept:".iso",onChange:t[7]||(t[7]=e=>o.handleFileUpload())},null,544),[[i.vShow,!1]])],8,Qy),(0,i.createElementVNode)("span",{class:(0,i.normalizeClass)([{"text-muted":!o.fileName},"ml-20"])},(0,i.toDisplayString)(o.fileName?o.fileName:e.t("harvester.generic.noFileChosen")),3)])),o.showProgressBar?((0,i.openBlock)(),(0,i.createBlock)(h,{key:2,class:"mt-20",value:o.uploadProgress},null,8,["value"])):(0,i.createCommentVNode)("",!0)])):(0,i.createCommentVNode)("",!0),o.selectExistImage?((0,i.openBlock)(),(0,i.createBlock)(p,{key:5,value:a.imageId,"onUpdate:value":t[9]||(t[9]=e=>a.imageId=e),options:o.osImageOptions,required:"",class:"mb-20","label-key":"harvester.fields.image"},null,8,["value","options"])):(0,i.createCommentVNode)("",!0),o.deleteExistImage?((0,i.openBlock)(),(0,i.createElementBlock)("div",Jy,[(0,i.createVNode)(c,{color:"info",class:"mt-10 mb-30",label:e.t("harvester.upgradePage.deleteHeader")},null,8,["label"]),(0,i.createVNode)(p,{value:a.deleteImageId,"onUpdate:value":[t[10]||(t[10]=e=>a.deleteImageId=e),o.handleImageDelete],options:o.deleteOSImageOptions,required:"",class:"mb-20","label-key":"harvester.fields.image"},null,8,["value","options","onUpdate:value"])])):(0,i.createCommentVNode)("",!0)])),_:1},8,["done-route","resource","errors","validation-passed","onFinish","onCancel"])])):(0,i.createCommentVNode)("",!0)}var ew=a(2117),tw=a(10196),nw=a(8077),rw=a(2602),iw=a(17252);const aw={key:0,class:"parent"},ow={class:"progress-box"},sw={class:"text"},lw={key:1};function cw(e,t,n,r,a,o){const s=(0,i.resolveComponent)("ProgressBarMulti");return o.completed?((0,i.openBlock)(),(0,i.createElementBlock)("div",lw,(0,i.toDisplayString)(e.t("generic.completed")),1)):((0,i.openBlock)(),(0,i.createElementBlock)("div",aw,[(0,i.createElementVNode)("div",ow,[(0,i.createVNode)(s,{values:o.percentage,min:0,max:100},null,8,["values"])]),(0,i.createElementVNode)("div",sw,(0,i.toDisplayString)(n.value||0)+"% ",1)]))}var uw=a(15503),dw={components:{ProgressBarMulti:uw.A},props:{value:{type:[String,Number],default:0},row:{type:Object,default:()=>{}},col:{type:Object,default:()=>{}}},computed:{percentage(){const e=Number.parseFloat(this.value);let t="bg-success";return 0===e?t="bg-secondary":e<30?t="bg-darker":e<70&&(t="bg-warning"),[{value:e,color:t}]},completed(){return 100===Number.parseFloat(this.value)}}};a(63607);const hw=(0,u.A)(dw,[["render",cw],["__scopeId","data-v-5ad5aa7a"]]);var pw=hw;const fw={NEW:"new",EXIST:"exist",DELETE:"delete"},mw="download",gw="upload";var vw={name:"HarvesterAirgapUpgrade",components:{Checkbox:Tu.S,CruResource:ew.A,LabeledSelect:nw.A,LabeledInput:vu.o,RadioGroup:tw.z,UpgradeInfo:iw.A,ImagePercentageBar:pw,Banner:Ou.l},inheritAttrs:!1,async fetch(){await this.$store.dispatch("harvester/findAll",{type:l.rk.IMAGE});const e=await this.$store.dispatch("harvester/create",{type:l.rk.UPGRADE,metadata:{generateName:"hvst-upgrade-",namespace:"harvester-system"},spec:{image:""}});await this.initImageValue(),this.value=e},beforeUnmount(){this.uploadController&&this.uploadController.abort()},data(){return{value:null,file:{},uploadImageId:"",imageId:"",deleteImageId:"",imageSource:fw.NEW,sourceType:gw,uploadController:null,uploadResult:null,imageValue:null,enableLogging:!0,IMAGE_METHOD:fw,skipSingleReplicaDetachedVol:!1,errors:[]}},computed:{doneRoute(){return`${r.KR}-c-cluster-resource`},skipSingleReplicaDetachedVolFeatureEnabled(){return this.$store.getters["harvester-common/getFeatureEnabled"]("skipSingleReplicaDetachedVol")},allOSImages(){return this.$store.getters["harvester/all"](l.rk.IMAGE).filter((e=>e.isOSImage))||[]},deleteOSImageOptions(){return this.allOSImages.map((e=>({label:e.spec.displayName,value:e.id})))},osImageOptions(){return this.allOSImages.map((e=>({label:e.spec.displayName,value:e.id,disabled:!e.isReady})))},createNewImage(){return this.imageSource===fw.NEW},selectExistImage(){return this.imageSource===fw.EXIST},deleteExistImage(){return this.imageSource===fw.DELETE},fileName(){return this.file?.name||""},canEnableLogging(){return this.$store.getters["harvester/schemaFor"](l.rk.UPGRADE_LOG)},uploadProgress(){const e=this.$store.getters["harvester/byId"](l.rk.IMAGE,this.imageValue.id);return e?.status?.progress},enableUpgrade(){return!this.deleteExistImage&&(this.sourceType===mw||(this.sourceType!==gw||(""===this.fileName||100===this.uploadProgress)))},isUploading(){return""!==this.fileName&&100!==this.uploadProgress},showProgressBar(){return this.createNewImage&&this.sourceType===gw&&this.isUploading},showUploadSuccessBanner(){return this.createNewImage&&""!==this.fileName&&Zd()(this.errors)&&!this.showUploadingWarningBanner&&200===this.uploadResult?._status},showUploadingWarningBanner(){return this.createNewImage&&this.isUploading},showUpgradeOptions(){return this.createNewImage||this.selectExistImage},disableUploadButton(){return this.sourceType===gw&&this.isUploading}},methods:{done(){this.uploadController&&this.uploadController.abort(),this.$router.push({name:this.doneRoute,params:{resource:l.rk.SETTING,product:"harvester"}})},async initImageValue(){this.imageValue=await this.$store.dispatch("harvester/create",{type:l.rk.IMAGE,metadata:{name:"",namespace:"harvester-system",generateName:"image-",annotations:{}},spec:{sourceType:gw,displayName:"",checksum:this.imageValue?.spec?.checksum||""}})},async save(e){let t=null;if(this.file={},this.errors=[],!this.imageValue.spec.displayName&&this.createNewImage)return this.errors.push(this.$store.getters["i18n/t"]("validation.required",{key:this.t("generic.name")})),void e(!1);try{if(this.imageSource===fw.NEW){if(this.imageValue.metadata.annotations[rw.r.OS_UPGRADE_IMAGE]="True",this.sourceType===gw&&""!==this.uploadImageId)this.value.spec.image=this.uploadImageId;else if(this.sourceType===mw){if(this.imageValue.spec.sourceType=mw,!this.imageValue.spec.url)return this.errors.push(this.$store.getters["i18n/t"]("harvester.setting.upgrade.imageUrl")),void e(!1);t=await this.imageValue.save(),this.value.spec.image=t.id}}else if(this.imageSource===fw.EXIST){if(!this.imageId)return this.errors.push(this.$store.getters["i18n/t"]("harvester.setting.upgrade.chooseFile")),void e(!1);this.value.spec.image=this.imageId}this.canEnableLogging&&(this.value.spec.logEnabled=this.enableLogging),this.skipSingleReplicaDetachedVolFeatureEnabled&&(this.value.metadata.annotations={[rw.r.SKIP_SINGLE_REPLICA_DETACHED_VOL]:JSON.stringify(this.skipSingleReplicaDetachedVol)}),await this.value.save(),this.done(),e(!0)}catch(Hs){this.errors=[Hs?.message]||0,e(!1)}},async uploadFile(e){const t=e.name;if(!t)return void this.errors.push(this.$store.getters["i18n/t"]("harvester.setting.upgrade.unknownImageName"));const n=this.allOSImages.some((e=>e.spec.displayName===t));if(n)return this.errors.push(this.$store.getters["i18n/t"]("harvester.upgradePage.upload.duplicatedFile")),void(this.file={});this.errors=[],this.imageValue.spec.sourceType=gw,this.imageValue.spec.displayName=t,this.imageValue.metadata.annotations[rw.r.OS_UPGRADE_IMAGE]="True",this.imageValue.metadata.annotations[rw.r.IMAGE_NAME]=t,this.imageValue.spec.url="";try{const t=await this.imageValue.save();this.uploadImageId=t.id,this.uploadController=new AbortController;const n=this.uploadController.signal;this.uploadResult=await t.uploadImage(e,{signal:n})}catch(Hs){"ERR_NETWORK"===Hs?.code?this.errors.push(this.$store.getters["i18n/t"]("harvester.setting.upgrade.networkError")):"ERR_CANCELED"===Hs?.code?this.errors.push(this.$store.getters["i18n/t"]("harvester.setting.upgrade.cancelUpload")):this.errors=(0,Cy.rz)(Hs),this.file={},this.uploadImageId=""}},handleImageDelete(e){const t=this.allOSImages.find((t=>t.id===e));t&&(this.$store.dispatch("harvester/promptModal",{resources:[t],component:"ConfirmRelatedToRemoveDialog",needConfirmation:!1,warningMessage:this.$store.getters["i18n/t"]("harvester.modal.osImage.message",{name:t.displayName})}),this.deleteImageId="")},async handleFileUpload(){this.uploadImageId="",this.errors=[],this.file=this.$refs.file?.files[0],this.file&&(await this.initImageValue(),await this.uploadFile(this.file))},selectFile(){this.$refs.file.value=null,this.$refs.file.click()}},watch:{imageSource(e){e!==fw.DELETE&&(this.deleteImageId="")},"imageValue.spec.url":{handler(e){const t=e?.split("/")?.pop(),n=t?.split(".")||[],r=n?.pop()?.toLowerCase();n.length>1&&"iso"===r&&t!==this.imageValue.spec.displayName&&(this.imageValue.spec.displayName=t)},deep:!0},file(e){e.name&&e.name!==this.imageValue.spec.displayName&&(this.imageValue.spec.displayName=e.name)}}};a(49645);const bw=(0,u.A)(vw,[["render",Zy],["__scopeId","data-v-0da6c36e"]]);var yw=bw;function ww(e,t,n,r,a,o){const s=(0,i.resolveComponent)("Members");return(0,i.openBlock)(),(0,i.createBlock)(s,(0,i.mergeProps)({"create-location-override":o.createLocationOverride},e.$attrs),null,16,["create-location-override"])}const Ew={class:"project-members"},_w={key:0,class:"row mb-10 cluster-add"};function Sw(e,t,n,r,a,o){const s=(0,i.resolveComponent)("Masthead"),l=(0,i.resolveComponent)("Banner"),c=(0,i.resolveComponent)("router-link"),u=(0,i.resolveComponent)("ResourceTable"),d=(0,i.resolveComponent)("Tab"),h=(0,i.resolveComponent)("Tabbed");return(0,i.openBlock)(),(0,i.createElementBlock)("div",Ew,[(0,i.createVNode)(s,{schema:a.schema,resource:a.resource,"favorite-resource":a.VIRTUAL_TYPES.CLUSTER_MEMBERS,"create-location":a.createLocation,"create-button-label":e.t("members.createActionLabel"),"is-creatable":!1,"type-display":e.t("members.clusterAndProject")},null,8,["schema","resource","favorite-resource","create-location","create-button-label","type-display"]),o.isLocal?((0,i.openBlock)(),(0,i.createBlock)(l,{key:0,color:"error",label:e.t("members.localClusterWarning")},null,8,["label"])):(0,i.createCommentVNode)("",!0),(0,i.createVNode)(h,null,{default:(0,i.withCtx)((()=>[(0,i.createVNode)(d,{name:"cluster-membership",label:e.t("members.clusterMembership")},{default:(0,i.withCtx)((()=>[o.canEditClusterMembers?((0,i.openBlock)(),(0,i.createElementBlock)("div",_w,[(0,i.createVNode)(c,{to:a.createLocation,class:"btn role-primary pull-right"},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("members.createActionLabel")),1)])),_:1},8,["to"])])):(0,i.createCommentVNode)("",!0),(0,i.createVNode)(u,{schema:a.schema,headers:a.headers,rows:o.filteredClusterRoleTemplateBindings,groupable:!0,"show-grouping":!0,namespaced:!1,loading:e.$fetchState.pending||!e.currentCluster||a.loadingClusterBindings,"sub-search":"subSearch","sub-fields":["nameDisplay"]},null,8,["schema","headers","rows","loading"])])),_:1},8,["label"])])),_:1})])}var kw=a(10006),xw=a(49584),Aw={name:"Members",components:{Banner:Gl.A,Masthead:fc.A,ResourceTable:pc.A,Tabbed:kw.A,Tab:xw.A},props:{createLocationOverride:{type:Object,default:()=>({name:"c-cluster-product-resource-create",params:{resource:$.Mc.CLUSTER_ROLE_TEMPLATE_BINDING}})}},async fetch(){const e=this.$store.getters["rancher/schemaFor"]($.k$.CLUSTER_ROLE_TEMPLATE_BINDING),t=this.$store.getters["rancher/schemaFor"]($.k$.PROJECT_ROLE_TEMPLATE_BINDING);this["normanClusterRTBSchema"]=e,this["normanProjectRTBSchema"]=t,e&&Promise.all([this.$store.dispatch("rancher/findAll",{type:$.k$.CLUSTER_ROLE_TEMPLATE_BINDING},{root:!0}),this.$store.dispatch("management/findAll",{type:$.Mc.CLUSTER_ROLE_TEMPLATE_BINDING})]).then((([e])=>{this["normanClusterRoleTemplateBindings"]=e,this.loadingClusterBindings=!1})),t&&this.$store.dispatch("rancher/findAll",{type:$.k$.PROJECT_ROLE_TEMPLATE_BINDING},{root:!0}).then((e=>{this["projectRoleTemplateBindings"]=e,this.loadingProjectBindings=!1}));const n={normanPrincipals:this.$store.dispatch("rancher/findAll",{type:$.k$.PRINCIPAL}),mgmt:this.$store.dispatch("management/findAll",{type:$.Mc.USER}),mgmtRoleTemplates:this.$store.dispatch("management/findAll",{type:$.Mc.ROLE_TEMPLATE})};await(0,ce.kR)(n)},data(){return{schema:this.$store.getters["management/schemaFor"]($.Mc.CLUSTER_ROLE_TEMPLATE_BINDING),headers:[xd.c4,xd.nv,xd.z7,xd.K],createLocation:{...this.createLocationOverride,params:{...this.createLocationOverride.params,cluster:this.$store.getters["currentCluster"].id}},resource:$.Mc.CLUSTER_ROLE_TEMPLATE_BINDING,normanClusterRTBSchema:null,normanProjectRTBSchema:null,normanClusterRoleTemplateBindings:[],projectRoleTemplateBindings:[],VIRTUAL_TYPES:$.cG,projectRoleTemplateColumns:[xd.c4,{name:"member",labeKey:"generic.name",value:"principalId",formatter:"Principal"},{name:"role",labelKey:"tableHeaders.role",value:"roleTemplate.nameDisplay"}],loadingProjectBindings:!0,loadingClusterBindings:!0}},computed:{...(0,R.L8)(["currentCluster"]),clusterRoleTemplateBindings(){return this.normanClusterRoleTemplateBindings.map((e=>e.clusterroletemplatebinding))},filteredClusterRoleTemplateBindings(){return this.clusterRoleTemplateBindings.filter((e=>e?.clusterName===this.$store.getters["currentCluster"].id))},isLocal(){return this.$store.getters["currentCluster"].isLocal},canEditClusterMembers(){return this.normanClusterRTBSchema?.collectionMethods.find((e=>"post"===e.toLowerCase()))}}};a(32464);const Nw=(0,u.A)(Aw,[["render",Sw],["__scopeId","data-v-fa2c9f40"]]);var Cw=Nw,Tw={components:{Members:Cw},inheritAttrs:!1,computed:{createLocationOverride(){return{name:`${r.KR}-c-cluster-resource-create`,params:{product:r.KR,cluster:this.$store.getters["currentCluster"]?.id,resource:$.Mc.CLUSTER_ROLE_TEMPLATE_BINDING}}}}};const Rw=(0,u.A)(Tw,[["render",ww]]);var Ow=Rw;function Iw(e,t,n,r,a,o){const s=(0,i.resolveComponent)("ExplorerProjectsNamespaces");return(0,i.openBlock)(),(0,i.createBlock)(s,(0,i.mergeProps)(e.$attrs,{"create-project-location-override":a.createProjectLocation,"create-namespace-location-override":a.createNamespaceLocation}),null,16,["create-project-location-override","create-namespace-location-override"])}const Lw={class:"project-namespaces outlet"},Dw={class:"group-tab"},Pw={class:"project-name"},Mw={key:0,class:"description text-muted text-small"},Bw={class:"right"},Fw={key:0},$w={key:1,class:"text-muted"},Uw={class:"namespace-name"},jw={key:1},Vw={key:2,class:"icon icon-istio ml-5"},Kw={key:3,class:"icon icon-lock ml-5"},Hw={class:"main-row"},Gw=["colspan"],zw={class:"main-row"},qw=["colspan"];function Xw(e,t,n,r,a,o){const s=(0,i.resolveComponent)("router-link"),l=(0,i.resolveComponent)("Masthead"),c=(0,i.resolveComponent)("ExtensionPanel"),u=(0,i.resolveComponent)("ButtonMultiAction"),d=(0,i.resolveComponent)("ResourceTable"),h=(0,i.resolveComponent)("MoveModal"),p=(0,i.resolveDirective)("clean-html"),f=(0,i.resolveDirective)("trim-whitespace"),m=(0,i.resolveDirective)("clean-tooltip");return(0,i.openBlock)(),(0,i.createElementBlock)("div",Lw,[(0,i.createVNode)(l,{schema:a.projectSchema,"type-display":e.t("projectNamespaces.label"),resource:a.MANAGEMENT.PROJECT,"favorite-resource":a.VIRTUAL_TYPES.PROJECT_NAMESPACES,"create-location":o.createProjectLocation,"create-button-label":e.t("projectNamespaces.createProject"),"show-incremental-loading-indicator":o.showIncrementalLoadingIndicator,"load-resources":a.loadResources,"load-indeterminate":a.loadIndeterminate},(0,i.createSlots)({_:2},[o.showCreateNsButton?{name:"extraActions",fn:(0,i.withCtx)((()=>[(0,i.createVNode)(s,{to:o.createNamespaceLocationFlatList(),class:"btn role-primary mr-10","data-testid":"create_project_namespaces"},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("projectNamespaces.createNamespace")),1)])),_:1},8,["to"])])),key:"0"}:void 0]),1032,["schema","type-display","resource","favorite-resource","create-location","create-button-label","show-incremental-loading-indicator","load-resources","load-indeterminate"]),(0,i.createVNode)(c,{resource:{},type:a.extensionType,location:a.extensionLocation},null,8,["type","location"]),(0,i.createVNode)(d,(0,i.mergeProps)({ref:"table"},{...e.$attrs,class:null},{class:"table project-namespaces-table",schema:a.schema,headers:o.headers,rows:o.filteredRows,groupable:!0,"sort-generation-fn":o.sortGenerationFn,loading:o.loading,"group-tooltip":"resourceTable.groupBy.project","key-field":"_key"}),(0,i.createSlots)({"group-by":(0,i.withCtx)((t=>[(0,i.createElementVNode)("div",{class:(0,i.normalizeClass)(["project-bar",{"has-description":o.projectDescription(t.group)}])},[(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("div",Dw,[(0,i.withDirectives)((0,i.createElementVNode)("div",Pw,null,512),[[p,o.projectLabel(t.group)]]),o.projectDescription(t.group)?((0,i.openBlock)(),(0,i.createElementBlock)("div",Mw,(0,i.toDisplayString)(o.projectDescription(t.group)),1)):(0,i.createCommentVNode)("",!0)])),[[f]]),(0,i.createElementVNode)("div",Bw,[o.isNamespaceCreatable&&(o.canSeeProjectlessNamespaces||t.group.key!==o.notInProjectKey)?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0,class:"create-namespace btn btn-sm role-secondary mr-5",to:o.createNamespaceLocation(t.group)},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("projectNamespaces.createNamespace")),1)])),_:2},1032,["to"])):(0,i.createCommentVNode)("",!0),(0,i.createVNode)(u,{class:"project-action mr-10",borderless:!0,"aria-label":e.t("projectNamespaces.tableActionsLabel",{resource:o.projectResource(t.group)}),invisible:!o.showProjectActionButton(t.group),onClick:e=>o.showProjectAction(e,t.group)},null,8,["aria-label","invisible","onClick"])])],2)])),"cell:project":(0,i.withCtx)((({row:e})=>[e.project?((0,i.openBlock)(),(0,i.createElementBlock)("span",Fw,(0,i.toDisplayString)(e.project.nameDisplay),1)):((0,i.openBlock)(),(0,i.createElementBlock)("span",$w,""))])),"cell:name":(0,i.withCtx)((({row:t})=>[(0,i.createElementVNode)("div",Uw,[t.detailLocation&&!t.hideDetailLocation?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0,to:t.detailLocation},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(t.name),1)])),_:2},1032,["to"])):((0,i.openBlock)(),(0,i.createElementBlock)("span",jw,(0,i.toDisplayString)(t.name),1)),t.injectionEnabled?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("i",Vw,null,512)),[[m,e.t("projectNamespaces.isIstioInjectionEnabled")]]):(0,i.createCommentVNode)("",!0),t.hasSystemLabels?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("i",Kw,null,512)),[[m,o.getPsaTooltip(t)]]):(0,i.createCommentVNode)("",!0)])])),"main-row:fake-empty":(0,i.withCtx)((({fullColspan:t})=>[(0,i.createElementVNode)("tr",zw,[(0,i.createElementVNode)("td",{class:"empty text-center",colspan:t},(0,i.toDisplayString)(e.t("projectNamespaces.noProjectNoNamespaces")),9,qw)])])),_:2},[(0,i.renderList)(o.projectsWithoutNamespaces,((t,n)=>({name:o.slotName(t),fn:(0,i.withCtx)((({fullColspan:t})=>[(0,i.createElementVNode)("tr",Hw,[(0,i.createElementVNode)("td",{class:"empty text-center",colspan:t},(0,i.toDisplayString)(e.t("projectNamespaces.noNamespaces")),9,Gw)])]))})))]),1040,["schema","headers","rows","sort-generation-fn","loading"]),(0,i.createVNode)(h,{onMoving:o.clearSelection},null,8,["onMoving"])])}const Ww={class:"text-default-text"},Yw={class:"namespaces"};function Qw(e,t,n,r,a,o){const s=(0,i.resolveComponent)("Loading"),l=(0,i.resolveComponent)("LabeledSelect"),c=(0,i.resolveComponent)("AsyncButton"),u=(0,i.resolveComponent)("Card"),d=(0,i.resolveComponent)("app-modal");return a.showModal?((0,i.openBlock)(),(0,i.createBlock)(d,{key:0,class:"move-modal",name:a.modalName,width:440,height:"auto",onClose:o.close},{default:(0,i.withCtx)((()=>[e.$fetchState.pending?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0})):((0,i.openBlock)(),(0,i.createBlock)(u,{key:1,class:"move-modal-card","show-highlight-border":!1},{title:(0,i.withCtx)((()=>[(0,i.createElementVNode)("h4",Ww,(0,i.toDisplayString)(e.t("moveModal.title")),1)])),body:(0,i.withCtx)((()=>[(0,i.createElementVNode)("div",null,[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("moveModal.description"))+" ",1),(0,i.createElementVNode)("ul",Yw,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(e.toMove,((e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)("li",{key:t},(0,i.toDisplayString)(e.nameDisplay),1)))),128))])]),(0,i.createVNode)(l,{value:a.targetProject,"onUpdate:value":t[0]||(t[0]=e=>a.targetProject=e),options:o.projectOptions,label:e.t("moveModal.targetProject")},null,8,["value","options","label"])])),actions:(0,i.withCtx)((()=>[(0,i.createElementVNode)("button",{class:"btn role-secondary",onClick:t[1]||(t[1]=(...e)=>o.close&&o.close(...e))},(0,i.toDisplayString)(e.t("generic.cancel")),1),(0,i.createVNode)(c,{"action-label":e.t("moveModal.moveButtonLabel"),class:"btn bg-primary ml-10",disabled:!a.targetProject,onClick:o.move},null,8,["action-label","disabled","onClick"])])),_:1}))])),_:1},8,["name","onClose"])):(0,i.createCommentVNode)("",!0)}var Jw=a(84937),Zw={emits:["moving"],components:{AsyncButton:zl.A,Card:Jw.Z,LabeledSelect:nw.A,Loading:Me.A,AppModal:oe.h},async fetch(){this.projects=await this.$store.dispatch("management/findAll",{type:$.Mc.PROJECT})},data(){return{modalName:"move-modal",projects:[],targetProject:null,showModal:!1}},computed:{...(0,R.aH)("action-menu",["showPromptMove","toMove"]),...(0,R.L8)(["currentCluster"]),excludedProjects(){return this.toMove.filter((e=>!!e.project)).map((e=>e.project.shortId))},projectOptions(){return this.projects.reduce(((e,t)=>(this.excludedProjects.includes(t.shortId)||t.spec?.clusterName!==this.currentCluster.id||e.push({value:t.shortId,label:t.nameDisplay}),e)),[])}},watch:{showPromptMove(e){this.showModal=!!e}},methods:{close(){this.$store.commit("action-menu/togglePromptMove")},async move(e){const t=this.$store.getters["currentCluster"],n=`${t.id}:${this.targetProject}`,r=this.toMove.map((e=>(e.setLabel(Ed.yl,this.targetProject),e.setAnnotation(Ed.yl,n),e.save())));try{this.$emit("moving"),await Promise.all(r),e(!0),this.targetProject=null,this.close()}catch(ex){e(!1)}}}};a(45261);const eE=(0,u.A)(Zw,[["render",Qw]]);var tE=eE,nE=a(56601),rE=a(18110),iE=a(11518),aE={name:"ListProjectNamespace",components:{ExtensionPanel:Tc,Masthead:fc.A,MoveModal:tE,ResourceTable:pc.A,ButtonMultiAction:nE.A},mixins:[gc.A],props:{createProjectLocationOverride:{type:Object,default:()=>null},createNamespaceLocationOverride:{type:Object,default:()=>null}},async fetch(){const e=this.$store.getters["currentStore"]($.CU);this.harvesterResourceQuotaSchema=this.$store.getters[`${e}/schemaFor`]($.rk.RESOURCE_QUOTA),this.schema=this.$store.getters[`${e}/schemaFor`]($.CU),this.projectSchema=this.$store.getters["management/schemaFor"]($.Mc.PROJECT),this.schema&&(await this.$fetchType($.CU),this.projects=await this.$store.dispatch("management/findAll",{type:$.Mc.PROJECT,opt:{force:!0}}))},data(){return{loadResources:[$.CU],loadIndeterminate:!0,harvesterResourceQuotaSchema:null,schema:null,projects:[],projectSchema:null,extensionType:Sc.c7.PANEL,extensionLocation:Sc.W7.RESOURCE_LIST,MANAGEMENT:$.Mc,VIRTUAL_TYPES:$.cG,defaultCreateProjectLocation:{name:"c-cluster-product-resource-create",params:{product:this.$store.getters["currentProduct"].name,resource:$.Mc.PROJECT}}}},computed:{...(0,R.L8)(["currentCluster","currentProduct"]),namespaces(){const e=this.$store.getters["currentStore"]($.CU);return this.$store.getters[`${e}/all`]($.CU)},loading(){return!(!this.currentCluster||this.namespaces.length)&&this.$fetchState.pending},showIncrementalLoadingIndicator(){return this.perfConfig?.incrementalLoading?.enabled},isNamespaceCreatable(){return(this.schema?.collectionMethods||[]).includes("POST")},isHarvester(){return this.$store.getters["currentProduct"].inStore===iE.T3},headers(){const e=[xd.c4,xd.o_];if("none"===this.groupPreference){const t={name:"project",label:this.t("tableHeaders.project"),value:"project.nameDisplay",sort:["projectNameSort","nameSort"]};e.push(t)}return this.isHarvester&&this.harvesterResourceQuotaSchema&&e.push(xd.Si),e.push(xd.K),e},projectIdsWithNamespaces(){const e=this.rows.map((e=>e.projectId)).filter((e=>e));return(0,Se.sb)(e)},clusterProjects(){const e=this.currentCluster.id,t=this.$store.getters["management/all"]($.Mc.PROJECT);if(this.currentProduct?.customNamespaceFilter&&this.currentProduct?.inStore&&this.$store.getters[`${this.currentProduct.inStore}/filterProject`])return this.$store.getters[`${this.currentProduct.inStore}/filterProject`];const n=t.filter((t=>t.spec.clusterName===e));return n},projectsWithoutNamespaces(){return this.activeProjects.filter((e=>!this.projectIdsWithNamespaces.find((t=>e?.id?.endsWith(`/${t}`)))))},rowsWithFakeNamespaces(){const e=this.projectsWithoutNamespaces.map((e=>({groupByLabel:`resourceTable.groupLabel.notInAProject-${e.id}`,isFake:!0,mainRowKey:e.id,nameDisplay:e.spec?.displayName,project:e,availableActions:[]})));return this.showMockNotInProjectGroup&&e.push({groupByLabel:this.t("resourceTable.groupLabel.notInAProject"),mainRowKey:"fake-empty"}),[...this.rows,...e]},createProjectLocation(){return this.createProjectLocationOverride||this.defaultCreateProjectLocation},groupPreference:(0,O.AN)(O.EI),activeNamespaceFilters(){return this.$store.getters["activeNamespaceFilters"]},activeProjectFilters(){const e={};for(const t of this.activeNamespaceFilters){const[n,r]=t.split("://",2);"project"===n&&(e[r]=!0)}return e},activeProjects(){const e=this.$store.getters["activeNamespaceFilters"];return e.includes(rE.pF)&&0===Object.keys(this.activeProjectFilters).length?[]:this.userIsFilteringForSpecificNamespaceOrProject()?this.clusterProjects.filter((e=>{const t=e.id.split("/")[1];return!!this.activeProjectFilters[t]})):this.clusterProjects},activeNamespaces(){const e=this.$store.getters["namespaces"]();return this.namespaces.filter((t=>!!e[t.metadata.name]))},filteredRows(){return"none"===this.groupPreference?this.rows:this.rowsWithFakeNamespaces},rows(){let e;try{e=this.$store.getters["prefs/get"](O.Pz)}catch{e=this.$store.getters["prefs/get"](O.IJ)}return e?this.activeNamespaces:this.activeNamespaces.filter((e=>{const t=this.$store.getters["systemNamespaces"].includes(e.metadata.name),n=e.isSystem||e.isFleetManaged||t;return!this.currentProduct?.hideSystemResources||!n}))},canSeeProjectlessNamespaces(){return this.currentCluster.canUpdate},showMockNotInProjectGroup(){if(!this.canSeeProjectlessNamespaces)return!1;const e=!this.rows.some((e=>!e.project)),t=this.userIsFilteringForSpecificNamespaceOrProject();return!t&&e},notInProjectKey(){return this.$store.getters["i18n/t"]("resourceTable.groupLabel.notInAProject")},showCreateNsButton(){return"namespace"!==this.groupPreference}},methods:{getPsaTooltip(e){const t=e.psaTooltipsDescription,n=Object.values(t).sort().map((e=>`<li>${e}</li>`)).join(""),r=`<p>${this.t("podSecurityAdmission.name")}: </p>`;return`${r}<ul class="psa-tooltip">${n}</ul>`},userIsFilteringForSpecificNamespaceOrProject(){const e=this.$store.getters["namespaceFilters"];for(let t=0;t<e.length;t++){const n=e[t],r=n.split("://")[0];if("ns"===r||"project"===r)return!0}return!1},slotName(e){return`main-row:${e.id}`},createNamespaceLocation(e){const t=e.rows[0].project,n=this.createNamespaceLocationOverride?{...this.createNamespaceLocationOverride}:{name:"c-cluster-product-resource-create",params:{product:this.$store.getters["currentProduct"].name,resource:$.CU}};return n.query={[ku.iJ]:t?.metadata.name},n},createNamespaceLocationFlatList(){const e=this.createNamespaceLocationOverride?{...this.createNamespaceLocationOverride}:{name:"c-cluster-product-resource-create",params:{product:this.$store.getters["currentProduct"]?.name,resource:$.CU}};return e.query={[ku._N]:!0},e},showProjectAction(e,t){const n=t.rows[0].project;this.$store.commit("action-menu/show",{resources:[n],elem:e.target})},showProjectActionButton(e){const t=e.rows[0].project;return!!t},projectLabel(e){const t=e.rows[0];return t.isFake?_e().sanitize(this.t("resourceTable.groupLabel.project",{name:t.project?.nameDisplay},!0),{ALLOWED_TAGS:["span"]}):t.groupByLabel},projectDescription(e){const t=e.rows[0].project;return t?.description},projectResource(e){const t=e.rows[0];return t.nameDisplay||t.id||""},clearSelection(){this.$refs.table.clearSelection()},sortGenerationFn(){const e=(0,pc.S)(this.schema,this.$store);return e+(this.showMockNotInProjectGroup?"-mock":"")}}};a(33042),a(65124);const oE=(0,u.A)(aE,[["render",Xw],["__scopeId","data-v-623c683a"]]);var sE=oE,lE={components:{ExplorerProjectsNamespaces:sE},data(){return{createProjectLocation:{name:`${r.KR}-c-cluster-resource-create`,params:{product:r.KR,cluster:this.$store.getters["currentCluster"]?.id,resource:$.Mc.PROJECT}},createNamespaceLocation:{name:`${r.KR}-c-cluster-resource-create`,params:{product:r.KR,resource:$.CU}}}}};const cE=(0,u.A)(lE,[["render",Iw]]);var uE=cE;const dE={class:"header"},hE={class:"title"},pE={class:"primaryheader"},fE={class:"actions-container"},mE={class:"actions"};function gE(e,t,n,r,a,o){const s=(0,i.resolveComponent)("ButtonGroup"),l=(0,i.resolveComponent)("ResourceYaml"),c=(0,i.resolveComponent)("ReceiverConfig"),u=(0,i.resolveComponent)("ActionMenu");return(0,i.openBlock)(),(0,i.createElementBlock)("div",null,[(0,i.createElementVNode)("header",dE,[(0,i.createElementVNode)("div",hE,[(0,i.createElementVNode)("div",pE,[(0,i.createElementVNode)("h1",null,(0,i.toDisplayString)(o.heading),1)])]),(0,i.createElementVNode)("div",fE,[(0,i.createElementVNode)("div",mE,[a.viewOptions&&o.mode===a.view?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0,value:o.currentView,options:a.viewOptions,"onUpdate:value":o.handleButtonGroupClick},null,8,["value","options","onUpdate:value"])):(0,i.createCommentVNode)("",!0),o.mode===a.view?((0,i.openBlock)(),(0,i.createElementBlock)("button",{key:1,ref:"actions","aria-haspopup":"true",type:"button",class:"btn role-multi-action actions",onClick:t[0]||(t[0]=(...e)=>o.handleReceiverActionMenuClick&&o.handleReceiverActionMenuClick(...e))},t[3]||(t[3]=[(0,i.createElementVNode)("i",{class:"icon icon-actions"},null,-1)]),512)):(0,i.createCommentVNode)("",!0)])])]),o.currentView===a.yaml&&a.alertmanagerConfigResource?((0,i.openBlock)(),(0,i.createBlock)(l,{key:0,ref:"resourceyaml",value:a.alertmanagerConfigResource,mode:o.mode,"initial-yaml-for-diff":null,yaml:o.resourceYaml,"offer-preview":o.mode===a.edit,"done-route":JSON.stringify(o.redirectToReceiverDetail(a.receiverName)),"done-override":a.alertmanagerConfigDetailRoute,"apply-hooks":a.alertmanagerConfigResource.applyHooks,onError:t[1]||(t[1]=t=>e.$emit("error",t))},null,8,["value","mode","yaml","offer-preview","done-route","done-override","apply-hooks"])):(0,i.createCommentVNode)("",!0),o.currentView!==a.config&&o.currentView!==a.detail||!a.alertmanagerConfigResource?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createBlock)(c,{key:1,value:a.receiverValue,mode:o.mode,"alertmanager-config-id":a.alertmanagerConfigId,"alertmanager-config-resource":a.alertmanagerConfigResource,"save-override":o.saveOverride},null,8,["value","mode","alertmanager-config-id","alertmanager-config-resource","save-override"])),(0,i.createVNode)(u,{"custom-actions":o.receiverActions,open:a.receiverActionMenuIsOpen,"use-custom-target-element":!0,"custom-target-element":a.actionMenuTargetElement,"custom-target-event":a.actionMenuTargetEvent,onClose:t[2]||(t[2]=e=>a.receiverActionMenuIsOpen=!1),onGoToEdit:o.goToEdit,onGoToEditYaml:o.goToEditYaml,onPromptRemove:o.promptRemove},null,8,["custom-actions","open","custom-target-element","custom-target-event","onGoToEdit","onGoToEditYaml","onPromptRemove"])])}var vE=a(80252);const bE={class:"row mb-10"},yE={class:"col span-6"},wE={class:"box-container create-resource-container"},EE=["onClick"],_E={class:"left"},SE={class:"logo"},kE=["src"],xE={class:"name ml-10"},AE={key:0,class:"right"},NE={key:1};function CE(e,t,n,r,a,o){const s=(0,i.resolveComponent)("LabeledInput"),l=(0,i.resolveComponent)("t"),c=(0,i.resolveComponent)("Tab"),u=(0,i.resolveComponent)("YamlEditor"),d=(0,i.resolveComponent)("ArrayListGrouped"),h=(0,i.resolveComponent)("Tabbed"),p=(0,i.resolveComponent)("CruResource");return(0,i.openBlock)(),(0,i.createBlock)(p,{class:"receiver","done-route":n.alertmanagerConfigResource._detailLocation,mode:n.mode,resource:n.alertmanagerConfigResource,subtypes:[],"can-yaml":!0,errors:e.errors,"cancel-event":!0,"validation-passed":e.fvFormIsValid,onError:t[2]||(t[2]=t=>e.errors=t),onFinish:n.saveOverride,onCancel:o.redirectAfterCancel},{default:(0,i.withCtx)((()=>[(0,i.createElementVNode)("div",bE,[(0,i.createElementVNode)("div",yE,[(0,i.createVNode)(s,{value:n.value.name,"onUpdate:value":t[0]||(t[0]=e=>n.value.name=e),"is-disabled":o.receiverNameDisabled,label:e.t("generic.name"),required:!0,mode:n.mode,rules:e.fvGetAndReportPathRules("name"),"data-testid":"v2-monitoring-receiver-name"},null,8,["value","is-disabled","label","mode","rules"])])]),(0,i.createVNode)(h,{ref:"tabbed","side-tabs":!0,"default-tab":"overview",onChanged:o.tabChanged},{default:(0,i.withCtx)((()=>[(0,i.createVNode)(c,{label:e.t("generic.overview"),weight:a.receiverTypes.length,name:"overview"},{default:(0,i.withCtx)((()=>[(0,i.createElementVNode)("div",wE,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(a.receiverTypes,((e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:t,class:"mb-10 subtype-banner","primary-color-var":"--primary-color",onClick:t=>o.navigateTo(e)},[(0,i.createElementVNode)("div",_E,[(0,i.createElementVNode)("div",SE,[(0,i.createElementVNode)("img",{src:e.logo},null,8,kE)]),(0,i.createElementVNode)("h4",xE,[(0,i.createVNode)(l,{k:e.label},null,8,["k"])])]),"custom"!==e.name?((0,i.openBlock)(),(0,i.createElementBlock)("div",AE,(0,i.toDisplayString)(o.getCount(e)),1)):(0,i.createCommentVNode)("",!0)],8,EE)))),128))])])),_:1},8,["label","weight"]),((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(a.receiverTypes,((r,s)=>((0,i.openBlock)(),(0,i.createBlock)(c,{key:s,label:e.t(r.label),name:r.name,weight:a.receiverTypes.length-s},{default:(0,i.withCtx)((()=>["custom"===r.name?((0,i.openBlock)(),(0,i.createBlock)(u,{key:0,ref_for:!0,ref:"customEditor",value:e.suffixYaml,"onUpdate:value":t[1]||(t[1]=t=>e.suffixYaml=t),scrolling:!1,"editor-mode":o.editorMode},null,8,["value","editor-mode"])):((0,i.openBlock)(),(0,i.createElementBlock)("div",NE,[(0,i.createVNode)(d,{value:n.value[r.key],"onUpdate:value":e=>n.value[r.key]=e,class:"namespace-list",mode:n.mode,"default-add-value":{},"add-label":e.t("monitoringReceiver.addButton",{type:e.t(r.label)})},{default:(0,i.withCtx)((e=>[((0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(o.getComponent(r.name)),{value:e.row.value,mode:n.mode,namespace:o.alertmanagerConfigNamespace},null,8,["value","mode","namespace"]))])),_:2},1032,["value","onUpdate:value","mode","add-label"])]))])),_:2},1032,["label","name","weight"])))),128))])),_:1},8,["onChanged"])])),_:1},8,["done-route","mode","resource","errors","validation-passed","onFinish","onCancel"])}var TE=a(31097),RE=a(55544),OE=a(91825),IE=a(20246),LE=a.n(IE),DE=a(8552),PE=a(77651),ME=a(39589);const BE=[{name:"slack",label:"monitoringReceiver.slack.label",title:"monitoringReceiver.slack.title",info:"monitoringReceiver.slack.info",key:"slackConfigs",logo:a(69742)},{name:"email",label:"monitoringReceiver.email.label",title:"monitoringReceiver.email.title",key:"emailConfigs",logo:a(41778)},{name:"pagerduty",label:"monitoringReceiver.pagerduty.label",title:"monitoringReceiver.pagerduty.title",info:"monitoringReceiver.pagerduty.info",key:"pagerdutyConfigs",logo:a(75495)},{name:"opsgenie",label:"monitoringReceiver.opsgenie.label",title:"monitoringReceiver.opsgenie.title",key:"opsgenieConfigs",logo:a(41778)},{name:"webhook",label:"monitoringReceiver.webhook.label",title:"monitoringReceiver.webhook.title",key:"webhookConfigs",logo:a(94569)},{name:"custom",label:"monitoringReceiver.custom.label",title:"monitoringReceiver.custom.title",info:"monitoringReceiver.custom.info",key:"webhookConfigs",logo:a(98283)}];var FE={components:{ArrayListGrouped:TE.A,Banner:Ou.l,ButtonDropdown:DE.A,CruResource:ew.A,LabeledInput:vu.o,Loading:Me.A,Tabbed:kw.A,Tab:xw.A,YamlEditor:RE.A},props:{value:{type:Object,default:()=>({})},mode:{type:String,default:""},alertmanagerConfigResource:{type:Object,required:!0},alertmanagerConfigId:{type:String,required:!0},saveOverride:{type:Function,required:!0}},mixins:[OE.A,PE.A],inheritAttrs:!1,async fetch(){const{receiverSchema:e}=await(0,ME.ER)(this.$store);if(!e)throw new Error("Can't render the form because the AlertmanagerConfig schema, or it's definitions, is not loaded yet.");const t=Object.keys(e.resourceFields),n={};Object.keys(this.value).forEach((e=>{t.includes(e)||(n[e]=this.value[e])}));let r=LE().dump(n);"{}"===r.trim()&&(r=""),this.expectedFields=t,this.suffixYaml=r},data(e){const t={},n=this.$route.query.mode;return n===ku.YQ&&BE.forEach((e=>{t[e.key]=t[e.key]||[]})),{create:ku.YQ,EDITOR_MODES:RE.j,fileFound:!1,receiverTypes:BE,view:ku.nW,yamlError:"",fvFormRuleSets:[{path:"name",rules:["required","duplicateName"]}],fvReportedValidationPaths:["value"]}},mounted(){this.mode===this.create&&(this.alertmanagerConfigResource.spec.receivers||(this.alertmanagerConfigResource.spec.receivers=[]),this.alertmanagerConfigResource.spec.receivers.push(this.value))},computed:{editorMode(){return this.$route.query.mode===ku.nW?RE.j.VIEW_CODE:RE.j.EDIT_CODE},alertmanagerConfigNamespace(){return this.alertmanagerConfigResource?.metadata?.namespace||""},receiverNameDisabled(){return this.$route.query.mode===ku.nW},fvExtraRules(){return{duplicateName:()=>{const e=this.alertmanagerConfigResource.spec.receivers,t=e.map((e=>e.name)),n=new Set(t);if(e.length!==n.size)return this.$store.getters["i18n/t"]("monitoring.alerting.validation.duplicatedReceiverName",{name:this.value.name})}}}},watch:{suffixYaml(e){try{Object.keys(this.value).forEach((e=>{this.expectedFields.includes(e)||delete this.value[e]}));const t=LE().load(e);Object.assign(this.value,t),this.yamlError=""}catch(ex){this.yamlError=`There was a problem parsing the Custom Config: ${ex}`}}},methods:{getComponent(e){return a(19469)(`./${e}`).default},navigateTo(e){this.$refs.tabbed.select(e.name)},getCount(e){const t=this.value?.[e.key]||[];return t.length},tabChanged({tab:e}){window.scrollTop=0,"custom"===e.name&&this.$nextTick((()=>{this.$refs.customEditor&&(this.$refs.customEditor[0].refresh(),this.$refs.customEditor[0].focus())}))},redirectAfterCancel(){this.$router.push(this.alertmanagerConfigResource._detailLocation)},createAddOptions(e){return e.addOptions.map()},setError(e){this.errors=e?[e]:[]}}};a(92429);const $E=(0,u.A)(FE,[["render",CE]]);var UE=$E,jE={name:"AlertmanagerConfigReceiverCreateEdit",components:{ActionMenu:vE.A,ButtonGroup:_d.A,ReceiverConfig:UE,ResourceYaml:Qu.A},async fetch(){const e=this.$store.getters["currentProduct"].inStore;this.receiverName=this.$route.query.receiverName;const t=this.$route.params.alertmanagerconfigid,n=await this.$store.dispatch(`${e}/find`,{type:$.Rp.ALERTMANAGERCONFIG,id:t}),r=await this.$store.dispatch(`${e}/clone`,{resource:n}),i=this.$route.query.mode;if(i!==ku.YQ){const e=(r.spec.receivers||[]).find((e=>e.name===this.receiverName));e&&(this.receiverValue=e)}this.alertmanagerConfigId=r.id,this.alertmanagerConfigResource=r,this.alertmanagerConfigDetailRoute=r._detailLocation},data(){return{actionMenuTargetElement:null,actionMenuTargetEvent:null,alertmanagerConfigId:"",alertmanagerConfigResource:null,alertmanagerConfigDetailRoute:null,config:ku.au,create:ku.YQ,detail:ku.fS,edit:ku.G5,receiverActionMenuIsOpen:!1,receiverName:"",receiverValue:{},showPreview:!1,view:ku.nW,viewOptions:[{labelKey:"resourceDetail.masthead.config",value:"config"},{labelKey:"resourceDetail.masthead.yaml",value:ku.zD}],yaml:ku.zD}},computed:{currentView(){return this.$route.query.currentView},receiverActions(){const e=this.alertmanagerConfigResource?.availableActions;return e?this.alertmanagerConfigResource.getReceiverActions(e):[]},resourceYaml(){const e=this.alertmanagerConfigResource,t=this.$store.getters["currentStore"](e),n=this.$store.getters[`${t}/all`]($.yx),r=(0,kd.o8)(e),i=(0,Ju.mH)(n,$.Rp.ALERTMANAGERCONFIG,r);return i},mode(){return this.$route.query.mode},editorMode(){return this.mode===this.view?RE.j.VIEW_CODE:this.showPreview?RE.j.DIFF_CODE:RE.j.EDIT_CODE},heading(){switch(this.$route.query.mode){case this.create:return this.t("monitoring.alertmanagerConfig.receiverFormNames.create");case this.edit:return this.currentView===this.yaml||this.$route.query.as===this.yaml?this.t("monitoring.alertmanagerConfig.receiverFormNames.editYaml"):this.t("monitoring.alertmanagerConfig.receiverFormNames.edit");default:return this.t("monitoring.alertmanagerConfig.receiverFormNames.detail")}}},methods:{saveOverride(e){if(this.alertmanagerConfigResource.yamlError)return this.alertmanagerConfigResource.errors=this.alertmanagerConfigResource.errors||[],this.alertmanagerConfigResource.errors.push(this.alertmanagerConfigResource.yamlError),void e(!1);this.alertmanagerConfigResource.save(...arguments),this.redirectToAlertmanagerConfigDetail()},handleButtonGroupClick(e){e===this.yaml&&this.goToEditYaml(this.view),e===this.config&&this.goToEdit(this.view)},toggleReceiverActionMenu(){this.receiverActionMenuIsOpen=!this.receiverActionMenuIsOpen},handleReceiverActionMenuClick(e){this.actionMenuTargetElement=this.$refs.actions,this.actionMenuTargetEvent=e,this.toggleReceiverActionMenu()},goToEdit(){this.$router.push(this.alertmanagerConfigResource.getEditReceiverConfigRoute(this.receiverValue.name,ku.G5))},goToEditYaml(){this.$router.push(this.alertmanagerConfigResource.getEditReceiverYamlRoute(this.receiverValue.name,ku.G5))},promptRemove(e){const t=e.route.query.receiverName,n=this.alertmanagerConfigResource.spec.receivers||[],r=n.filter((e=>e.name!==t));this.alertmanagerConfigResource.spec.receivers=r,this.alertmanagerConfigResource.save(...arguments),this.$router.push(this.alertmanagerConfigResource._detailLocation)},redirectToReceiverDetail(e){return this.alertmanagerConfigResource.getReceiverDetailLink(e)},redirectToAlertmanagerConfigDetail(){const e=this.alertmanagerConfigResource._detailLocation;this.$router.push(e)}}};a(56554);const VE=(0,u.A)(jE,[["render",gE],["__scopeId","data-v-a0fecebc"]]);var KE=VE;const HE={class:"dashboard-root"},GE={class:"dashboard-content"},zE={class:"main-layout"},qE={class:"logo"},XE={class:"tagline"},WE={class:"description"},YE={class:"tagline"},QE={class:"tagline"};function JE(e,t,n,r,a,o){const s=(0,i.resolveComponent)("BrandImage"),l=(0,i.resolveDirective)("clean-html");return(0,i.openBlock)(),(0,i.createElementBlock)("div",HE,[(0,i.createElementVNode)("div",GE,[(0,i.createElementVNode)("main",zE,[(0,i.createElementVNode)("div",qE,[(0,i.createVNode)(s,{"file-name":"harvester.png",height:"64"})]),(0,i.createElementVNode)("div",XE,[(0,i.createElementVNode)("div",WE,(0,i.toDisplayString)(e.t("unsupported.description")),1)]),(0,i.createElementVNode)("div",YE,[(0,i.withDirectives)((0,i.createElementVNode)("div",null,null,512),[[l,e.t("unsupported.serverVersion",{serverVersion:o.serverVersion},!0)]])]),(0,i.createElementVNode)("div",QE,[(0,i.withDirectives)((0,i.createElementVNode)("div",null,null,512),[[l,e.t("unsupported.learnMore",{},!0)]])])])])])}var ZE={components:{BrandImage:K},computed:{serverVersion(){const e=this.$store.getters["harvester-common/getServerVersion"]()||"";return e.replace("v","")}}};a(29056);const e_=(0,u.A)(ZE,[["render",JE],["__scopeId","data-v-140c2578"]]);var t_=e_;const n_=[{route:{name:`${r.KR}-c-cluster-unsupported-standalone`,path:"/:product",component:t_},parent:"blank"},{route:{name:`${r.KR}-c-cluster-unsupported`,path:"/:product",component:t_},parent:"plain"},{name:`${r.KR}-c-cluster-support`,path:"/:product/c/:cluster/support",component:De},{route:{name:`${r.KR}-c-cluster-console-uid-serial`,path:"/:product/c/:cluster/console/:uid/serial",component:qt},parent:"blank"},{route:{name:`${r.KR}-c-cluster-console-uid-vnc`,path:"/:product/c/:cluster/console/:uid/vnc",component:lc},parent:"blank"},{name:`${r.KR}-c-cluster-airgapupgrade`,path:"/:product/c/:cluster/airgapupgrade",component:yw},{name:`${r.KR}-c-cluster-brand`,path:"/:product/c/:cluster/brand",component:ju},{name:`${r.KR}-c-cluster-alertmanagerconfig-alertmanagerconfigid-receiver`,path:"/:product/c/:cluster/alertmanagerconfig/:alertmanagerconfigid/receiver",component:KE},{name:`${r.KR}-c-cluster-members`,path:"/:product/c/:cluster/members",component:Ow},{name:`${r.KR}-c-cluster`,path:"/:product/c/:cluster",component:h},{name:`${r.KR}-c-cluster-projectsnamespaces`,path:"/:product/c/:cluster/projectsnamespaces",component:uE},{name:`${r.KR}-c-cluster-resource`,path:"/:product/c/:cluster/:resource",component:Pc},{name:`${r.KR}-c-cluster-resource-create`,path:"/:product/c/:cluster/:resource/create",component:My},{name:`${r.KR}-c-cluster-resource-id`,path:"/:product/c/:cluster/:resource/:id",component:Uy},{name:`${r.KR}-c-cluster-resource-namespace-id`,path:"/:product/c/:cluster/:resource/:namespace/:id",component:Hy}];var r_=n_,i_=a(52225),a_=a.n(i_);const o_=function(){return{latestBundleId:"",bundlePending:!1,showBundleModal:!1,bundlePercentage:0,uploadingImages:[],uploadingImageError:{},downloadImageId:"",downloadImageInProgress:!1,isDownloadImageCancel:!1}},s_={setDownloadImageId(e,t){e.downloadImageId=t},setDownloadImageCancel(e,t){e.isDownloadImageCancel=t},setDownloadImageInProgress(e,t){e.downloadImageInProgress=t},setLatestBundleId(e,t){e.latestBundleId=t},setBundlePending(e,t){e.bundlePending=t},toggleBundleModal(e,t){e.showBundleModal=t},setBundlePercentage(e,t){e.bundlePercentage=t},uploadStart(e,t){e.uploadingImages.push(t)},uploadError(e,{name:t,message:n}){e.uploadingImageError[t]=n},uploadEnd(e,t){const n=e.uploadingImages.filter((e=>e!==t));e["uploadingImages"]=n}},l_={getBundleId(e){return e.latestBundleId},isDownloadImageCancel(e){return e.isDownloadImageCancel},isDownloadImageInProgress(e){return e.downloadImageInProgress},isBundlePending(e){return e.bundlePending},isShowBundleModal(e){return e.showBundleModal},getBundlePercentage(e){return e.bundlePercentage},uploadingImages(e){return e.uploadingImages},uploadingImageError(e){return t=>e.uploadingImageError[t]},getServerVersion:(e,t,n,r)=>()=>{const e=r["harvester/byId"](l.rk.SETTING,"server-version")?.value;return(0,Oe.HF)(e)},getFeatureEnabled:(e,t,n,r)=>(e,t)=>{const n=t||r["harvester/byId"](l.rk.SETTING,"server-version")?.value;return(0,Oe.at)(e,n)},getHarvesterClusterUrl:(e,t,n,r)=>e=>{if(r["isMultiCluster"]){const t=r["clusterId"],n=`/k8s/clusters/${t}/${e}`;return`${n}`}return e}},c_={async downloadImageProgress({state:e,dispatch:t,commit:n,rootGetters:r}){const i=a_()(window.history.href),a=e.downloadImageId;let o=await t("harvester/find",{type:l.rk.VM_IMAGE_DOWNLOADER,id:a},{root:!0});await n("setDownloadImageInProgress",!0);let s=0;const c=setInterval((async()=>{if(s+=1,s%3===0&&(o=await t("harvester/find",{type:l.rk.VM_IMAGE_DOWNLOADER,id:a,opt:{force:!0}},{root:!0})),!0!==e.isDownloadImageCancel){if("Ready"===o?.status?.status){if(o=r["harvester/byId"](l.rk.VM_IMAGE_DOWNLOADER,a),setTimeout((()=>{n("setDownloadImageInProgress",!1),t("promptModal")}),600),r["isMultiCluster"]){const e=r["clusterId"],t=`/k8s/clusters/${e}`;window.location.href=`${i.origin}${t}/v1/harvester/${l.rk.IMAGE}/${a}/download`}else{const e=`${i.origin}/v1/harvester/${l.rk.IMAGE}/${a}/download`;window.location.href=e}clearInterval(c)}}else clearInterval(c)}),1e3)},async bundleProgress({state:e,dispatch:t,commit:n,rootGetters:r}){const i=a_()(window.history.href),a=e.latestBundleId;let o=await t("harvester/find",{type:l.rk.SUPPORT_BUNDLE,id:a},{root:!0});const s=r["i18n/t"];let c=0;await n("setBundlePending",!0);const u=setInterval((async()=>{if(c+=1,c%3===0&&(o=await t("harvester/find",{type:l.rk.SUPPORT_BUNDLE,id:a,opt:{force:!0}},{root:!0})),"ready"!==o.bundleState){o=r["harvester/byId"](l.rk.SUPPORT_BUNDLE,a);const e=o.precent;if(n("setBundlePercentage",e),o?.bundleMessage){const e=o?.bundleMessage;t("growl/fromError",{title:s("generic.notification.title.error"),err:e},{root:!0}),clearInterval(u),n("setBundlePending",!1),n("toggleBundleModal",!1)}}else{const e=a.split("/")[1];if(n("setBundlePercentage",1),setTimeout((()=>{n("toggleBundleModal",!1),n("setBundlePending",!1),n("setBundlePercentage",0)}),600),r["isMultiCluster"]){const t=r["clusterId"],n=`/k8s/clusters/${t}`;window.location.href=`${i.origin}${n}/v1/harvester/supportbundles/${e}/download`}else window.location.href=`${i.origin}/v1/harvester/supportbundles/${e}/download`;clearInterval(u)}}),1e3)}},u_=()=>({state:o_,getters:{...l_},mutations:{...s_},actions:{...c_}}),d_={namespace:`${r.KR}-common`,isClusterStore:!1};var h_={specifics:u_(),config:d_},p_=a(25314);const f_="CSRF";var m_=a(79401),g_=a(23464),v_=a.n(g_),b_=a(4364);function y_(e,t,n){return(t=w_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w_(e){var t=E_(e,"string");return"symbol"==typeof t?t:t+""}function E_(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}const __={WATCH_PENDING:"pending",WATCH_REQUESTED:"requested",WATCHING:"watching",STOPPED:"stopped",REMOVE_PENDING:"removed_pending",REMOVE_REQUESTED:"removed_requested"},S_=({resourceType:e,type:t,namespace:n,id:r,selector:i}={})=>[e||t,n,r,i].filter((e=>!!e)).join("/"),k_=e=>{const{resourceType:t,namespace:n,id:r,selector:i}=e,a={resourceType:t,id:r,namespace:n,selector:i};return S_(a)},{WATCH_PENDING:x_,WATCH_REQUESTED:A_,WATCHING:N_,REMOVE_PENDING:C_,REQUESTED_REMOVE:T_}=__;class R_ extends Ut{constructor(e,t=!0,n=null,r=null,i=null,a){super(e,t,n,r,i,!0),y_(this,"watches",{}),y_(this,"status",""),y_(this,"debugWatcher",!1),y_(this,"csrf",void 0),this.baseUrl=self.location.origin+e.replace("subscribe",""),this.csrf=a,this.addEventListener(Rt,(e=>{this.trace(Rt,": processing previously requested or watched resources"),Object.values(this.watches).forEach((e=>{const{status:t,error:n}=e,r=S_(e);[x_,A_,N_].includes(t)&&!n?(this.trace(Rt,": re-watching previously required resource",r,t),this.watches[r].status=x_,this.watch(r)):[C_].includes(t)&&(this.trace(Rt,": un-watching previously watched resource",r,t),this.watches[r].status=C_,this.unwatch(r))}))}))}trace(...e){this.debugWatcher&&b_.info("Resource Watcher:",...e)}setDebug(e){this.debugWatcher=!!e}watchExists(e){return!!this.watches?.[e]}watch(e,t,n,r={},i){const{resourceType:a,id:o,namespace:s,selector:l,force:c}=r;if(this.trace("watch:","requested",e),[A_,N_].includes(this.watches?.[e]?.status))return void this.trace("watch:","already requested or watching, aborting",e);if(!c&&this.watches?.[e]?.error)return void(this.watches?.[e]?.error.reason!==$t&&this.trace("watch:","in error, aborting",e));const u=a||this.watches?.[e]?.resourceType,d=o||this.watches?.[e]?.id,h=s||this.watches?.[e]?.namespace,p=l||this.watches?.[e]?.selector,f=this.watches?.[e]?.skipResourceVersion||i,m={resourceType:u,id:d,namespace:h,selector:p},g=n||this.watches?.[e]?.resourceVersionTime,v=t||this.watches?.[e]?.resourceVersion,b=this.send(JSON.stringify({...m,resourceVersion:f?void 0:v}));this.watches[e]={...m,status:b?__.WATCH_REQUESTED:__.WATCH_PENDING,resourceVersion:v,resourceVersionTime:g,skipResourceVersion:f}}unwatch(e){const t=this.watches?.[e]||{},{resourceType:n,id:r,namespace:i,selector:a}=t,o={resourceType:n,id:r,namespace:i,selector:a};if(n&&this.watches[e].status!==T_){const t=this.send(JSON.stringify({...o,stop:!0}));this.watches[e].status=t?T_:C_}}_onmessage(e){const{name:t,resourceType:n,data:{type:r},id:i,namespace:a,selector:o,data:s}=JSON.parse(e.data),l=S_({resourceType:n,type:r,id:i,namespace:a,selector:o});if("resource.start"===t&&this.watches?.[l]?.status===A_)this.watches[l].status=N_,delete this.watches[l].error;else if("resource.stop"===t&&this.watches?.[l])this.watches[l]={error:this.watches[l]?.error};else if("resource.error"===t){const e=s?.error?.toLowerCase();this.watches[l]&&e.includes("watch not allowed")?this.watches[l].error={type:n,reason:Mt}:this.watches[l]&&e.includes("failed to find schema")?this.watches[l].error={type:n,reason:Bt}:e.includes("too old")&&(delete this.watches[l].resourceVersion,delete this.watches[l].resourceVersionTime,delete this.watches[l].skipResourceVersion,this.watches[l].error={type:n,reason:$t},this.dispatchEvent(new CustomEvent("resync",{detail:{data:{resourceType:n,id:i,namespace:a,selector:o}}}))),this.trace("_onmessage:","new error",this.watches[l].error)}super._onmessage(e)}}var O_=a(23330),I_=a(8755),L_=a(37417),D_=a(4364);const P_=2500,M_={store:"",flushTimer:void 0,queue:[],schemas:{}};function B_(){M_.queue.forEach((e=>{const t=(0,I_.en)(e),n=M_.schemas[e.id];if(!n||n&&n!==t){M_.schemas[e.id]=t;const n={data:e,resourceType:$.yx,type:"resource.change"};F_(n)}})),M_.queue=[],M_.flushTimer=setTimeout(B_,P_)}function F_(e){self.postMessage({load:e})}function $_(e){self.postMessage({redispatch:e})}M_.flushTimer=setTimeout(B_,P_);const U_={watch:e=>{$_({send:e})},createWatcher:e=>{$_({subscribe:e})}},j_={onmessage:e=>{const t=Object.keys(e?.data);t.forEach((t=>{j_[t]?j_[t](e?.data[t]):D_.warn("no associated action for:",t)}))},initWorker:({storeName:e})=>{M_.store=e},destroyWorker:()=>{clearTimeout(M_.flushTimer),self.postMessage({destroyWorker:!0})},loadSchemas:e=>{e.forEach((e=>{(0,L_.P)(e),M_.schemas[e.id]=(0,I_.en)(e)}))},updateSchema:e=>{M_.queue.push(e)},removeSchema:e=>{M_.queue=M_.queue.filter((t=>t.id!==e)),delete M_.schemas[e]},...U_};function V_(e,t,n){return(t=K_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K_(e){var t=H_(e,"string");return"symbol"==typeof t?t:t+""}function H_(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}self.onmessage=j_.onmessage;class G_{constructor(e){V_(this,"resources",{}),V_(this,"type",void 0),V_(this,"keyField",void 0),this.type=(0,m_.AZ)("counts"===e?$.i2:e),this.keyField=(0,m_.BZ)(this.type)}load(e=[]){for(let t=0;t<e.length;t++){const n=e[t];this.type===$.yx&&(0,L_.w)(n);const r=n[this.keyField];this.resources[r]=(0,I_.en)(n)}return this}change(e,t){this.type===$.yx&&(0,L_.w)(e);const n=this.resources[e[this.keyField]]||{},r=(0,I_.en)(e);n!==r&&(this.resources[e[this.keyField]]=e,t())}create(e,t){this.change(e,t)}remove(e,t){this.resources[e]&&(delete this.resources[e],t())}}var z_=a(4364);const q_={},X_={watcher:void 0,store:"",workerQueue:[],batchChanges:{},debugWorker:!1},W_=(...e)=>{X_.debugWorker&&z_.info("Advanced Worker:",...e)};W_("created");const Y_=setInterval((()=>{Object.keys(X_.batchChanges).length&&(self.postMessage({batchChanges:X_.batchChanges}),X_.batchChanges={})}),5e3),Q_=e=>{const{resourceType:t,data:{type:n},data:r}=e,i=t||n,a=(0,m_.AZ)("counts"===i?$.i2:i),o=(0,m_.BZ)(a);return a===$.yx&&(0,L_.w)(r),{type:a,id:r[o],data:r}},J_=(e,t,n)=>{W_("createWatcher",e,t),self.postMessage({[e]:{type:t.type,detail:t.detail,srcElement:{disconnectedAt:n.disconnectedAt,url:n.url}}})},Z_=e=>{X_.workerQueue=X_.workerQueue.filter((t=>{const[,n]=Object.entries(t)[0],r=k_(n);return e!==r}))},eS={loadSchemas:e=>{q_[$.yx]||(q_[$.yx]=new G_($.yx)),q_[$.yx].load(e)},createWatcher:e=>{W_("createWatcher",e);const{metadata:t,maxTries:n,url:r,csrf:i}=e;if(!X_.watcher){X_.watcher=new R_(r,!0,null,null,n,i),X_.watcher.addEventListener(It,(e=>{const t=e.detail;if(t.data){const e=JSON.parse(t.data);e.name&&(tS[e.name]?tS[e.name](e):tS.dispatch(e))}})),X_.watcher.addEventListener("resync",(e=>{self.postMessage({redispatch:{resyncWatch:e.detail.data}})})),X_.watcher.addEventListener(Dt,(e=>{J_(Dt,e,X_.watcher)})),X_.watcher.addEventListener(Pt,(e=>{J_(Pt,e,X_.watcher)})),X_.watcher.setDebug(X_.debugWorker),X_.watcher.connect(t);while(X_.workerQueue.length>0){W_("createWatcher","flushing workerQueue",X_.workerQueue);const e=X_.workerQueue.shift(),[t,n]=Object.entries(e)[0];eS[t]?eS[t](n):z_.warn("no associated action for:",t)}}},watch:e=>{W_("watch",e);const t=k_(e);if(e.stop)return void eS.unwatch(t);if(!e.force&&X_.watcher?.watches[t]?.error)return;if(!X_.watcher)return void X_.workerQueue.push({watch:e});const{resourceType:n,namespace:r,id:i,selector:a,resourceVersion:o}=e,s=o?Date.now():void 0,l=[$.yx,$.i2].includes(n),c={resourceType:n,id:i,namespace:r,selector:a,force:e.force};X_.watcher.watch(t,o,s,c,l)},unwatch:e=>{W_("unwatch",e),Z_(e),X_.watcher&&X_.watcher.unwatch(e)},initWorker:({storeName:e})=>{W_("initWorker",e),X_.store=e},destroyWorker:()=>{function e(){delete self.onmessage,self.postMessage({destroyWorker:!0})}W_("destroyWorker"),clearInterval(Y_),X_.watcher?X_.watcher?.disconnect().then(e):e()},toggleDebug:({on:e})=>{X_.debugWorker=!!e,X_.watcher.setDebug(!!e)},updateBatch(e,t,n){X_.batchChanges[e]||(X_.batchChanges[e]={}),X_.batchChanges[e][t]=n}},tS={"resource.change":e=>{const{type:t,id:n,data:r}=Q_(e);q_[t]?q_[t].change(r,(()=>eS.updateBatch(t,n,r))):eS.updateBatch(t,n,r)},"resource.create":e=>{const{type:t,id:n,data:r}=Q_(e);q_[t]?q_[t].create(r,(()=>eS.updateBatch(t,n,r))):eS.updateBatch(t,n,r)},"resource.start":e=>{},"resource.remove":e=>{const{type:t,id:n}=Q_(e);q_[t]?q_[t].remove(n,(()=>eS.updateBatch(t,n,{}))):eS.updateBatch(t,n,{})},"resource.stop":e=>{W_("resource.stop",e);const t=k_(e);Z_(t),X_.watcher?.watches[t]?.error||tS.dispatch({...e,advancedWorker:!0})},"resource.error":e=>{z_.warn(`Resource error [${X_.store}]`,e.resourceType,":",e.data.error)},dispatch:e=>{self.postMessage({dispatch:e})}};self.onmessage=e=>{const t=Object.keys(e?.data);t.forEach((t=>{eS[t]?eS[t](e?.data[t]):z_.warn("no associated action for:",t)}))};const nS={WAITING:"waiting",DESTROY_MOCK:"destroy",BASIC:"basic",ADVANCED:"advanced"};var rS=a(81565);class iS{typeIsNamespaced({getters:e},t){return e.haveNamespace(t)?.length>0}typeIsPaginated({getters:e},t){return!!e.havePage(t)}filteredNamespaces({rootGetters:e}){return e.activeNamespaceCache}subscribeNamespace(e){if(!rS.A.isApplicable({namespaced:e,type:"n/a"})||!e.length)return e}validChange({getters:e,rootGetters:t},n,r){if(this.typeIsNamespaced({getters:e},n)){const e=this.filteredNamespaces({rootGetters:t});if(!e[r.metadata.namespace])return!1}if(this.typeIsPaginated({getters:e},n)){const t=e["all"](n);return!!t.find((e=>e.id===r.id))}return!0}validateBatchChange({getters:e,rootGetters:t},n){const r=this.filteredNamespaces({rootGetters:t}),i={namespaced:{},paginated:{}};return Object.entries(n).forEach((([t,n])=>{if(void 0===i.namespaced[t]&&(i.namespaced[t]=this.typeIsNamespaced({getters:e},t)),i.namespaced[t]){const i=e.schemaFor(t);if(!i?.attributes?.namespaced)return;Object.keys(n).forEach((e=>{const t=e.split("/")[0];t&&r[t]||delete n[e]}))}if(void 0===i.paginated[t]&&(i.paginated[t]=this.typeIsPaginated({getters:e},t)),i.paginated[t]){const r=e["all"](t);Object.keys(n).forEach((e=>{r.find((t=>t.id===e))||delete n[e]}))}})),n}}var aS=new iS,oS=a(15092),sS=a(4364);const lS=3e3,cS={},uS=[Nd.e.CLUSTER,Nd.e.RANCHER,Nd.e.MANAGEMENT],dS=(e,t)=>t.$workers[e]?.waitingForDestroy&&t.$workers[e].waitingForDestroy(),hS=(e,t)=>(0,O_.f)((()=>dS(e,t)||!!t.getters["management/byId"]($.yx,$.Mc.SETTING))),pS=(e,t)=>(0,O_.f)((()=>dS(e,t)||!!t.getters["management/byId"]($.Mc.SETTING,U.HG.UI_PERFORMANCE))),fS=e=>{const{rootGetters:t,getters:n}=e,r=n.storeName,i=t.clusterId;if(!uS.includes(r)||i===Nd.w&&r===Nd.e.CLUSTER)return!1;const a=(0,Iu.fD)(t);return a?.advancedWorker.enabled};async function mS(e,t){const{getters:n,dispatch:r}=t,i=n.storeName;if(e.$workers=e.$workers||{},!uS.includes(i))return;if(e.$workers[i]||(e.$workers[i]={postMessage:t=>{"destroyWorker"!==Object.keys(t)?.[0]?cS[i]?cS[i].push(t):cS[i]=[t]:e.$workers[i].mode=nS.DESTROY_MOCK},mode:nS.WAITING,waitingForDestroy:()=>e.$workers[i]?.mode===nS.DESTROY_MOCK,destroy:()=>{delete e.$workers[i]}}),await hS(i,e),await pS(i,e),e.$workers[i].waitingForDestroy())return void e.$workers[i].destroy();const a=fS(t),o={load:e=>{vS(t,e,!0,"Change")},destroyWorker:()=>{e.$workers&&(e.$workers[i].terminate(),delete e.$workers[i])},batchChanges:e=>{r("batchChanges",aS.validateBatchChange(t,e))},dispatch:e=>{r(`ws.${e.name}`,e)},redispatch:e=>{Object.entries(e).forEach((([e,t])=>{r(e,t)}))},[Dt]:e=>{r("error",e)},[Pt]:e=>{r("error",e)}};if(!e.$workers[i]||e.$workers[i].mode===nS.WAITING){const t=a?nS.ADVANCED:nS.BASIC,n=e.steveCreateWorker(t);e.$workers[i]=n,n.postMessage({initWorker:{storeName:i}}),e.$workers[i].onmessage=e=>{const t=Object.keys(e?.data);t.forEach((t=>{o[t](e?.data[t])}))}}while(cS[i]?.length){const t=cS[i].shift(),n=(0,kd.yo)(t);e.$workers[i].postMessage(n)}}function gS(e,t){const n=e.resourceType||e.type,r=t.resourceType||t.type;return n===r&&((e.id===t.id||!e.id&&!t.id)&&((e.namespace===t.namespace||!e.namespace&&!t.namespace)&&(e.selector===t.selector||!e.selector&&!t.selector)))}function vS({getters:e,state:t,rootGetters:n},{data:r,revision:i},a,o){const s=e.normalizeType(r.type),l=e.typeEntry(s);if(l&&(l.revision=Math.max(l.revision,parseInt(i,10)),aS.validChange({getters:e,rootGetters:n},s,r)))if(a)t.queue.push({action:"dispatch",event:"load",body:r});else{const n=e.byId(r.type,r.id);n&&t.queue.push({action:"commit",event:"remove",body:n}),s===$.yx&&t.queue.push({action:"commit",event:"forgetType",body:r.id})}}function bS(e){return(0,Iu.fD)(e)?.disableWebsocketNotification}const yS={async subscribe(e,t){const{state:n,commit:r,dispatch:i,getters:a,rootGetters:o}=e;if(o["isSingleProduct"]?.disableSteveSockets)return;let s=n.socket;r("setWantSocket",!0),n.debugSocket&&sS.info(`Subscribe [${a.storeName}]`);const l=`${n.config.baseUrl}/subscribe`,c=bS(o)?null:3,u=(0,kd.Jt)(t,"metadata");fS(e)?(this.$workers[a.storeName]||await mS(this,e),this.$workers[a.storeName].postMessage({createWatcher:{metadata:u,url:`${n.config.baseUrl}/subscribe`,csrf:this.$cookies.get(f_,{parseJSON:!1}),maxTries:c}})):s?(s.setAutoReconnect(!0),s.setUrl(l),s.connect(u)):(s=new Ut(`${n.config.baseUrl}/subscribe`,!0,null,null,c),r("setSocket",s),s.addEventListener(Rt,(e=>{i("opened",e)})),s.addEventListener(Ot,(e=>{i("closed",e)})),s.addEventListener(Dt,(e=>{i("error",e)})),s.addEventListener(Pt,(e=>{i("error",e)})),s.addEventListener(It,(e=>{const t=e.detail;if(t.data){const e=JSON.parse(t.data);e.name&&i(`ws.${e.name}`,e)}})),s.connect(u))},unsubscribe({commit:e,getters:t,state:n}){const r=n.socket;e("setWantSocket",!1);const i=[],a=(this.$workers||{})[t.storeName];return a&&(a.postMessage({destroyWorker:!0}),i.push((0,O_.f)((()=>!this.$workers[t.storeName]),"Worker is destroyed"))),r&&i.push(r.disconnect()),Promise.all(i)},watch({state:e,dispatch:t,getters:n,rootGetters:r},i){e.debugSocket&&sS.info(`Watch Request [${n.storeName}]`,JSON.stringify(i));let{type:a,selector:o,id:s,revision:l,namespace:c,stop:u,force:d}=i;if(c=aS.subscribeNamespace(c),a=n.normalizeType(a),r["type-map/isSpoofed"](a))return void(e.debugSocket&&sS.info("Will not Watch (type is spoofed)",JSON.stringify(i)));const h=n.schemaFor(a,!1,!1);if(h?.attributes?.verbs?.includes&&!h.attributes.verbs.includes("watch"))return void(e.debugSocket&&sS.info("Will not Watch (type does not have watch verb)",JSON.stringify(i)));const p=n.inError(i);if(!u&&!d&&p)return void(p!==$t&&sS.error(`Aborting Watch Request [${n.storeName}]. Watcher in error (${p})`,JSON.stringify(i)));if(!u&&n.watchStarted({type:a,id:s,selector:o,namespace:c}))return void(e.debugSocket&&sS.debug(`Already Watching [${n.storeName}]`,{type:a,id:s,selector:o,namespace:c}));"undefined"!==typeof l||oS.A.isSteveCacheEnabled({rootGetters:r})||(l=n.nextResourceVersion(a,s));const f={resourceType:a};l&&(f.resourceVersion=`${l}`),c&&(f.namespace=c),u&&(f.stop=!0),s&&(f.id=s),o&&(f.selector=o);const m=this.$workers?.[n.storeName]||{};return m.mode===nS.ADVANCED||m.mode===nS.WAITING?(d&&(f.force=!0),void m.postMessage({watch:f})):t("send",f)},unwatch(e,{type:t,id:n,namespace:r,selector:i,all:a}){const{commit:o,getters:s,dispatch:l}=e;if(s["schemaFor"](t)){r=aS.subscribeNamespace(r);const c={type:t,id:n,namespace:r,selector:i,stop:!0},u=e=>{s["watchStarted"](e)&&(o("setWatchStopped",e),l("watch",e),o("clearFromQueue",t))};fS(e)?l("watch",c):a?s["watchesOfType"](t).forEach((e=>{u(e)})):s["watchStarted"](c)&&u(c)}},"ws.ping"({getters:e,dispatch:t},n){if("management"===e.storeName){const r=n?.data?.version||null;t("updateServerVersion",r,{root:!0}),sS.info(`Ping [${e.storeName}] from ${r||"unknown version"}`)}}},wS={debug(e,t,n){e.debugSocket=!1!==t,n&&this.$workers[n]&&this.$workers[n].postMessage({toggleDebug:!1!==t})}},ES={async flush({state:e,commit:t,dispatch:n,getters:r}){const i=e.queue;let a=[];if(!i.length)return;const o=(new Date).getTime();e.queue=[],e.debugSocket&&sS.debug(`Subscribe Flush [${r.storeName}]`,i.length,"items");for(const{action:s,event:l,body:c}of i)if("dispatch"===s&&"load"===l)a.push(c);else if(a.length&&(await n("loadMulti",a),a=[]),"dispatch"===s)await n(l,c);else{if("commit"!==s)throw new Error("Invalid queued action");t(l,c)}a.length&&await n("loadMulti",a),e.debugSocket&&sS.debug(`Subscribe Flush [${r.storeName}] finished`,(new Date).getTime()-o,"ms")},rehydrateSubscribe({state:e,dispatch:t}){e.wantSocket&&!e.socket&&t("subscribe")},reconnectWatches({state:e,getters:t,commit:n,dispatch:r}){const i=[];for(const a of e.started.slice())sS.info(`Reconnect [${t.storeName}]`,JSON.stringify(a)),t.schemaFor(a.type)&&(n("setWatchStopped",a),delete a.revision,i.push(r("watch",a)));return Promise.all(i)},async resyncWatch({state:e,getters:t,dispatch:n,commit:r},i){const{resourceType:a,namespace:o,id:s,selector:l}=i;sS.info(`Resync [${t.storeName}]`,i);const c={force:!0,forceWatch:!0};if(s)return void await n("find",{type:a,id:s,opt:{...c,namespaced:o,revision:null}});let u,d;l?(u=t["matching"](a,l).slice(),d=await n("findMatching",{type:a,selector:l,opt:c})):(u=t["all"](a).slice(),o&&(u=u.filter((e=>e.metadata?.namespace===o))),d=await n("findAll",{type:a,watchNamespace:o,opt:c}));const h={};for(const p of d)h[p.id]=!0;for(const p of u)h[p.id]||(e.debugSocket&&sS.info(`Remove stale [${t.storeName}]`,a,p.id),r("remove",p))},async opened({commit:e,dispatch:t,state:n,getters:r,rootGetters:i},a){n.debugSocket&&sS.info(`WebSocket Opened [${r.storeName}]`);const o=a.currentTarget,s=a?.detail?.tries,l=i["i18n/t"],c=bS(i);if(this.$socket=o,n.queue||(n.queue=[]),n.queueTimer||(n.flushQueue=async()=>{n.queue.length&&await t("flush"),n.queueTimer=setTimeout(n.flushQueue,1e3)},n.flushQueue()),o.hasReconnected){await t("reconnectWatches");const e=i["growl/find"]({key:"url",val:o.url});e&&t("growl/remove",e.id,{root:!0}),s>1&&!c&&t("growl/success",{title:l("growl.reconnected.title"),message:l("growl.reconnected.message",{url:this.$socket.url,tries:s})},{root:!0})}for(const u of n.pendingFrames.slice())e("dequeuePendingFrame",u),t("sendImmediate",u)},closed({state:e,getters:t}){e.debugSocket&&sS.info(`WebSocket Closed [${t.storeName}]`),clearTimeout(e.queueTimer),e.queueTimer=null},error({getters:e,state:t,dispatch:n,rootGetters:r},i){clearTimeout(t.queueTimer),t.queueTimer=null;const a=bS(r);if(!a){const a=(0,rn.ZD)(r["prefs/get"](O.DX)),o=(0,rn.ZD)(r["prefs/get"](O.G$)),s=i?.srcElement?.disconnectedAt||Date.now(),l=`${v_()(s).format(`${a} ${o}`)}`,c=i?.srcElement?.url,u=t?.socket?.tries,d=r["i18n/t"],h=r["growl/find"]({key:"url",val:c});i.type===Dt?(h&&n("growl/remove",h.id,{root:!0}),n("growl/error",{title:d("growl.connectError.title"),message:d("growl.connectError.message",{url:c,time:l,tries:u},{raw:!0}),icon:"error",earliestClose:s+lS,url:c},{root:!0})):i.type===Pt?(h&&n("growl/remove",h.id,{root:!0}),n("growl/error",{title:d("growl.disconnectError.title"),message:d("growl.disconnectError.message",{url:c,time:l,tries:u},{raw:!0}),icon:"error",earliestClose:s+lS,url:c},{root:!0})):sS.error(`WebSocket Connection Error [${e.storeName}]`,i.detail)}},send({state:e,commit:t},n){if(e.socket){const t=e.socket.send(JSON.stringify(n));if(t)return}t("enqueuePendingFrame",n)},sendImmediate({state:e},t){if(e.socket)return e.socket.send(JSON.stringify(t))},"ws.resource.start"({state:e,getters:t,commit:n,dispatch:r},i){e.debugSocket&&sS.info(`Resource start: [${t.storeName}]`,i);const a={type:i.resourceType,namespace:i.namespace,id:i.id,selector:i.selector};e.started.filter((e=>{if(e.type===a.type&&e.namespace!==a.namespace)return!0})).forEach((e=>{r("unwatch",e)})),n("setWatchStarted",a)},"ws.resource.error"({getters:e,commit:t,dispatch:n},r){sS.warn(`Resource error [${e.storeName}]`,r.resourceType,":",r.data.error);const i=r.data?.error?.toLowerCase();i.includes("watch not allowed")?t("setInError",{msg:r,reason:Mt}):i.includes("failed to find schema")?t("setInError",{msg:r,reason:Bt}):i.includes("too old")?(t("setInError",{msg:r,reason:$t}),n("resyncWatch",r)):i.includes("the server does not allow this method on the requested resource")&&t("setInError",{msg:r,reason:Ft})},"ws.resource.stop"({state:e,getters:t,commit:n,dispatch:r},i){const a=i.resourceType,o={type:a,id:i.id,namespace:i.namespace,selector:i.selector};if(e.debugSocket&&sS.info(`Resource Stop [${t.storeName}]`,a,i),!a)return void sS.error(`Resource Stop [${t.storeName}]. Received resource.stop with an empty resourceType, aborting`,i);const s=i.advancedWorker,l=!s,c=l?t["watchStarted"](o):s;t["schemaFor"](a)&&c&&(l&&n("setWatchStopped",o),r("watch",o))},"ws.resource.create"(e,t){e.state.debugSocket&&sS.info(`Resource Create [${e.getters.storeName}]`,t.resourceType,t),vS(e,t,!0,"Create")},"ws.resource.change"(e,t){const n=t.data,r=n.type;if(n.message&&!n.id)return;if(r===$.yx){const t=(this.$workers||{})[e.getters.storeName];if(t)return void t.postMessage({updateSchema:n})}vS(e,t,!0,"Change");const i=e.rootGetters["type-map/optionsFor"](r);if(i?.alias?.length>0){const t=i?.alias||[];t.map((t=>{e.state.queue.push({action:"dispatch",event:"load",body:{...n,type:t}})}))}},"ws.resource.remove"(e,t){const n=t.data,r=n.type;if(e.state.debugSocket&&sS.info(`Resource Remove [${e.getters.storeName}]`,r,t),r===$.yx){const t=(this.$workers||{})[e.getters.storeName];t&&t.postMessage({removeSchema:n.id})}vS(e,t,!1,"Remove");const i=e.rootGetters["type-map/optionsFor"](r);if(i?.alias?.length>0){const t=i?.alias||[];t.map((t=>{const r=e.getters.byId(t,n.id);e.state.queue.push({action:"commit",event:"remove",body:r})}))}}},_S={setSocket(e,t){e.socket=t},setWantSocket(e,t){e.wantSocket=t},enqueuePendingFrame(e,t){e.pendingFrames.push(t)},dequeuePendingFrame(e,t){(0,Se.Gj)(e.pendingFrames,t)},setWatchStarted(e,t){const n=e.started.find((e=>gS(t,e)));n||(0,Se.PG)(e.started,t),delete e.inError[S_(t)]},setWatchStopped(e,t){const n=e.started.find((e=>gS(t,e)));n?(0,Se.Gj)(e.started,n):sS.warn("Tried to remove a watch that doesn't exist",t)},setInError(e,{msg:t,reason:n}){const r=S_(t);e.inError[r]=n},clearInError(e,t){const n=S_(t);delete e.inError[n]},resetSubscriptions(e){(0,Se.IU)(e.started),(0,Se.IU)(e.pendingFrames),(0,Se.IU)(e.queue),clearTimeout(e.queueTimer),e.deferredRequests={},e.queueTimer=null},clearFromQueue(e,t){e.queue=e.queue.filter((e=>e.body?.type!==t))}},SS={inError:e=>t=>e.inError[S_(t)],watchesOfType:e=>t=>e.started.filter((e=>t===(e.resourceType||e.type))),watchStarted:e=>t=>!!e.started.find((e=>gS(t,e))),nextResourceVersion:(e,t)=>(n,r)=>{n=(0,m_.AZ)(n);let i=0;if(r){const e=t["byId"](n,r);i=parseInt(e?.metadata?.resourceVersion,10)}if(!i){const t=e.types[n];if(!t)return null;i=t.revision;for(const e of t.list)if(e&&e.metadata){const t=parseInt(e.metadata.resourceVersion,10);i=Math.max(i,t)}}return i||null}},kS={...yS,...ES},xS={...wS,..._S},AS={...SS};var NS=a(50382),CS=a(48074),TS=a(25184),RS=a(82614),OS=a(89865),IS=a(86794),LS=a(82637),DS=a(2334),PS=a(57699),MS=a(46392),BS=a(4364);const FS={NORMAN:"norman",STEVE:"steve",BY_TYPE:"byType"},$S={[$.i2]:!0,[$.CU]:!0,[$.yx]:!0,[$.UI.NAV_LINK]:!0},US=new RegExp("(/v1)|(/k8s/clusters/[a-z0-9-]+/v1)");var jS={urlOptions:()=>(e,t,n)=>{t=t||{};const r=(0,ft.qg)(e),i=US.test(r.path),a=LS.A.createParamsForPagination(n,t);if(a)e+=""+((e.includes("?")?"&":"?")+a);else{if(t.labelSelector&&(e+=`${e.includes("?")?"&":"?"}labelSelector=${t.labelSelector}`),t.filter){e+=""+(e.includes("?")?"&":"?");const n=Object.keys(t.filter);n.forEach((n=>{let r=t.filter[n];(0,Se.cy)(r)||(r=[r]),i&&(e+=""+(e.includes("filter=")?"&":"filter="));const a=r.map((e=>`${encodeURI(n)}=${encodeURI(e)}`)),o=e.charAt(e.length-1),s=["&","?","="].includes(o)?"":"&";e+=`${s}${a.join("&")}`}))}const n=rS.A.checkAndCreateParam(t);n&&(e+=""+((e.includes("?")?"&":"?")+n));const r=t.limit;r&&(e+=`${e.includes("?")?"&":"?"}limit=${r}`);const a=t.sortBy,o=t.sortOrder;a&&(i?e+=`${e.includes("?")?"&":"?"}sort=${("desc"===o?"-":"")+encodeURI(a)}`:(e+=`${e.includes("?")?"&":"?"}sort=${encodeURI(a)}`,o&&(e+=`${e.includes("?")?"&":"?"}order=${encodeURI(o)}`)))}if(i){if(!Array.isArray(t?.excludeFields)){const e=["metadata.managedFields"];t.excludeFields=Array.isArray(t?.omitExcludeFields)?e.filter((e=>!e.includes(t.omitExcludeFields))):e}const n=t.excludeFields.map((e=>`exclude=${e}`)).join("&");e+=`${e.includes("?")?"&":"?"}${n}`}return e},urlFor:(e,t)=>(n,r,i)=>{let a=(0,IS.d)(e,t)(n,r,i);if(!i?.url&&i?.namespaced&&!rS.A.isApplicable(i)){const e=new URL(a),t=e.pathname;t?.length&&"/"===t[t.length-1]&&(e.pathname=t.substring(0,t.length-1));const n=e.pathname.split("/");r?(n.splice(n.length-1,0,i.namespaced),e.pathname=n.join("/")):e.pathname=`${e.pathname.split("/").join("/")}/${i.namespaced}`,a=e.toString()}return a},defaultModel:e=>t=>{const n=e.config.modelBaseClass||FS.BY_TYPE.STEVE;return n===FS.BY_TYPE?t?.type?.startsWith("management.cattle.io.")||t?.type?.startsWith("project.cattle.io.")?RS.A:TS.A:n===FS.NORMAN?OS.A:TS.A},classify:(e,t,n)=>t=>{const r=(0,CS.$)(e.config.namespace,t?.type,t?.metadata?.name,n);if(r)return r;const i=e.config.modelBaseClass||NS.vX;return i===NS.vX?t?.type?.startsWith("management.cattle.io.")||t?.type?.startsWith("project.cattle.io.")?RS.A:TS.A:i===FS.NORMAN?OS.A:TS.A},cleanResource:()=>(e,t)=>{if(t?.type===$.i2&&e)return t.counts={...e.counts,...t.counts},t;if(e?.cleanResource&&"function"===typeof e.cleanResource)return e.cleanResource(t);const n=Object.getPrototypeOf(Object.getPrototypeOf(e))?.constructor;return n===RS.A?(0,RS.T)(t):t},podsByNamespace:e=>t=>{const n=e.podsByNamespace[t];return n?.list||[]},gcIgnoreTypes:()=>$S,currentGeneration:e=>t=>{t=(0,m_.AZ)(t);const n=e.types[t];return n?n.generation:null},pathExistsInSchema:(e,t)=>(e,n)=>{const r=t.schemaFor(e);if(r.requiresResourceFields&&!r.hasResourceFields)return BS.warn(`pathExistsInSchema requires schema ${r.id} to have resources fields via schema definition but none were found. has the schema 'fetchResourceFields' been called?`),!1;const i=r.requiresResourceFields?r.schemaDefinitions:null,a=(0,rn.jg)(n);let o=r;while(a.length){const n=a.shift(),s=o.resourceFields?.[n];if(e=s?.type,!e)return!1;if(a.length&&(e=(0,DS.parseType)(e,s).pop(),o=i?i?.[e]:t.schemaFor(e),!r))return!1}return!0},headersFor:(e,t,n,r)=>({getters:e,state:t},{schema:n,pagination:i})=>{if(i)return(0,MS.Bm)({state:t,getters:e,rootGetters:r},{headers:t.paginationHeaders,typeOptions:e["optionsFor"](n,!0),schema:n,columns:{state:PS.Xc,namespace:PS.r1,age:PS.tm,id:PS.nl}})},optionsFor:()=>(e,{schema:t,pagination:n,opts:r})=>{if(n){const e={listMandatorySort:[]};return!r.listGroupsWillOverride&&t.attributes.namespaced&&(e.listGroups=PS.ce,e.listGroupsWillOverride=!0),e}}},VS=a(96730),KS=a(4364);const HS={node:{count:800,statusRow:2},"apps.deployment":{count:4e3,statusRow:5},pod:{count:4e3,statusRow:10}};({NODE_ENV:"production",BASE_URL:"/"}).perfTest&&{NODE_ENV:"production",BASE_URL:"/"}.dev&&KS.warn("Performance Testing data enabled",HS);const GS={count:1,statusRow:0,custom:null};function zS(e,t){if(0===t.length)return t;const n=t[0];if(!n.apiVersion)return t;let r=HS[e];return r?("number"===typeof r&&(r={count:r}),r={...GS,...r},XS(t,r)):t}function qS(e){return Math.floor(Math.random()*e)}function XS(e,t){if(0===e.length)return e;if(0===t.count)return[];if(t.count<=e.length)return e.slice(0,t.count);const n=[];let r=0;e.forEach((e=>n.push(JSON.stringify(e))));const i=[...e],a=t.count-e.length;for(let o=0;o<a;o++){const e=JSON.parse(n[r]);if(e.id=`${e.id}_${o}`,e.metadata.uid=`uid_${o}_${1e3*Math.random()}`,e.metadata.name=`${e.metadata?.name}_${o}`,e.metadata.creationTimestamp=v_()().format(),i.push(e),t.statusRow>0){const n=1===t.statusRow||0===qS(t.statusRow);if(n){e.metadata.state=e.metadata.state||{};const t=0===qS(2);t?e.metadata.state.error=!0:e.metadata.state.transitioning=!0,e.metadata.state.message=`Test state description for ${e.metadata.name}`}}t.custom&&t.custom(e,o),r++,r===n.length&&(r=0)}return i}var WS=a(45858);function YS(e,t){let n=e.podsByNamespace[t];return n||(n={list:[],map:new Map},e.podsByNamespace[t]=n),n}function QS(e,t,n,r){r&&Object.keys(e.podsByNamespace).forEach((t=>{delete e.podsByNamespace[t]})),n.forEach((n=>{const r=e.types[$.Sm].map.get(n.id)||(0,NS.L8)(t,n),i=YS(e,r.namespace),a=i.map.get(n.id);a?(0,VS.HC)(a,n):((0,Se.PG)(i.list,r),i.map.set(n.id,r))}))}function JS(e,t){if(t&&t.type===$.Sm){const n=e.podsByNamespace[t.namespace];if(n){const e=n.list.findIndex((e=>e.id===t.id));e>=0&&n.list.splice(e,1),n.map.delete(t.id)}}else t&&t.type===$.CU&&delete e.podsByNamespace[t.id]}var ZS={batchChanges(e,{ctx:t,batch:n}){if((0,VS.AJ)(e,{ctx:t,batch:n}),n[$.Sm]){const r=Object.entries(n[$.Sm]).reduce(((t,[n,r])=>(r.id?t.push(r):JS(e,{id:n,type:$.Sm,namespace:n.substring(0,n.indexOf("/"))}),t)),[]);QS(e,t,r,!1)}n[$.CU]&&Object.entries(n[$.CU]).forEach((([t,n])=>{n.id||JS(e,{id:t,type:$.CU})}))},loadAll(e,{type:t,data:n,ctx:r,skipHaveAll:i,namespace:a,revision:o,pagination:s}){({NODE_ENV:"production",BASE_URL:"/"}).dev&&{NODE_ENV:"production",BASE_URL:"/"}.perfTest&&(n=zS(t,n));const l=(0,VS.gh)(e,{type:t,data:n,ctx:r,skipHaveAll:i,namespace:a,revision:o,pagination:s});if(t===$.Sm&&QS(e,r,l,!0),t===$.yx){const e=(this.$workers||{})[r.getters.storeName];if(e){const t=(0,kd.yo)(n);e.postMessage({loadSchemas:t})}}},forgetType(e,t){(0,VS.WI)(e,t)&&Object.keys(e.inError).forEach((n=>{n.startsWith(t)&&delete e.inError[n]}))},reset(e){(0,VS.zp)(e,this.commit),this.commit(`${e.config.namespace}/resetSubscriptions`),e.podsByNamespace={},WS["default"].reset(e.config.namespace)},loadMulti(e,{data:t,ctx:n}){for(const r of t){const t=(0,VS.Hh)(e,{data:r,ctx:n});if(t.type===$.Sm&&t.metadata){const n=YS(e,t.namespace);(0,Se.PG)(n.list,t),n.map.set(t.id,t)}}},loadAdd(e,{type:t,data:n,ctx:r}){(0,VS.aW)(e,{type:t,data:n,ctx:r}),n.length&&n[0].type===$.Sm&&QS(e,r,n,!1)},remove(e,t){(0,VS.TF)(e,t,this.getters),JS(e,t)}},ek=a(27500),tk=a.n(ek),nk=a(63905),rk=a(4364);function ik(e,t,n){t=t||{},t.method=t.method||"get",t.headers=t.headers||{},t.headers.accept="application/jsonl";const r=new TextDecoder;let i="";return fetch(e,t).then((e=>{if(e.status>=400){rk.error("Error Streaming",e);const t={message:"Error Streaming"};return t.response=e,Promise.reject(t)}return e.body.getReader()})).then((e=>e.read().then((function t({value:a,done:o}){if(o)return void n(JSON.parse(i));i+=r.decode(a,{stream:!0});const s=i.split(/[\r\n](?=.)/);return i=s.pop(),s.map(JSON.parse).forEach(n),e.read().then(t)}))))}function ak(){const e="undefined"!==typeof TextDecoder;return e}var ok=a(41580),sk=a.n(ok),lk=a(4364);let ck;function uk(e){const t=e.split(ck.separator)||[];return t.reduce(((e,t)=>{const n=t.trim();if(!n)return e;const r=n.endsWith(",")?n.slice(0,-1):n;return e.push(ck.separator+r),e}),[])}function dk(e,t,n,r,i=!1){const a=r?.toLowerCase();if("post"!==a&&"put"!==a||!e.headers?.warning)return;if(!ck||i){const e=(0,Iu.fD)(n);ck=e?.kubeAPI.warningHeader}const o=uk(e.headers?.warning);if(!o.length)return;const s=o.filter((e=>!ck.notificationBlockList.find((t=>e.startsWith(t)))));if(s.length){const i=e.data?.type||e.data?.kind||n["i18n/t"]("generic.resource",{count:1});t("growl/warning",{title:"put"===r?n["i18n/t"]("growl.kubeApiHeaderWarning.titleUpdate",{resourceType:i}):n["i18n/t"]("growl.kubeApiHeaderWarning.titleCreate",{resourceType:i}),message:s.join(", "),timeout:0},{root:!0})}const l=`Validation Warnings for ${e.config.url}\n\n${o.join("\n")}`;!{NODE_ENV:"production",BASE_URL:"/"}.dev?lk.debug(l):lk.warn(`${l}\n\n`,e.data)}var hk=a(22915),pk={async loadSchemas(e,t=!0){return await(0,nk.BH)(e,t)},async request({state:e,dispatch:t,rootGetters:n},r){const i=r.opt||r,a=await(0,nk.wA)(n,"cluster",i);if(a)return a;i.url=i.url.replace(/\/*$/g,"");const o="epinio"===this.$config.rancherEnv?"/pp/v1/epinio/rancher":"";if(o)if(i.url.startsWith("/"))i.url=o+i.url;else{const e=(0,ft.qg)(i.url);e.path.startsWith(o)||(e.path=o+e.path,i.url=(0,ft.As)(e))}i.httpsAgent=new(tk().Agent)({rejectUnauthorized:!1});const s=(i.method||"get").toLowerCase(),l=i.headers||{},c=JSON.stringify(l)+s+i.url;let u,d;if("get"===s){if(u=e.deferredRequests[c],u){const e=(0,ce.yX)();return u.push(e),e.promise}u=[],e.deferredRequests[c]=u}if(i.stream&&e.allowStreaming&&e.config.supportsStream&&ak())return ik(i.url,i,i.onData).then((()=>({finishDeferred:p.bind(null,c,"resolve")}))).catch((e=>m(e)));while(1)try{const e=await h(this,i,n);if(!i.depaginate)return e;if(d?d.data=d.data.concat(e.data):d=e,!e?.pagination?.next)return delete d.pagination?.first,delete d.pagination?.last,delete d.pagination?.next,delete d.pagination?.partial,d;i.url=e.pagination.next}catch(Go){return m(Go)}function h(e,n,r){return e.$axios(n).then((e=>{let i;return i=n.responseType?e:f(e),p(c,"resolve",i),dk(e,t,r,n.method),i}))}function p(t,n="resolve",r){const i=e.deferredRequests[t]||[];while(i.length)i.pop()[n](r);delete e.deferredRequests[t]}function f(e){let r=e.data;const a=e.headers["x-api-cattle-auth"];return a&&a!==n["auth/fromHeader"]&&t("auth/gotHeader",a,{root:!0}),204!==e.status&&null!==r||(r={}),"object"!==typeof r&&(r={data:r}),Object.defineProperties(r,{_status:{value:e.status},_statusText:{value:e.statusText},_headers:{value:e.headers},_req:{value:e.request},_url:{value:i.url}}),r}function m(e){let n=e;if(e?.response){const r=e.response;!1!==i.redirectUnauthorized&&401===r.status&&t("auth/logout",i.logoutOnError,{root:!0}),"undefined"!==typeof r.data&&(n=f(r))}return p(c,"reject",n),Promise.reject(n)}},promptMove({commit:e,state:t},n){e("action-menu/togglePromptMove",n,{root:!0})},promptRestore({commit:e,state:t},n){e("action-menu/togglePromptRestore",n,{root:!0})},assignTo({commit:e,state:t},n=[]){e("action-menu/toggleAssignTo",n,{root:!0})},async resourceAction({getters:e,dispatch:t},{resource:n,actionName:r,body:i,opt:a}){a=a||{},a.url||(a.url=n.actionLinkFor(r)),a.method="post",a.data=i;const o=await t("request",{opt:a});return!1!==a.load&&"collection"===o.type?(await t("loadMulti",o.data),o.data.map((t=>e.byId(t.type,t.id)||t))):!1!==a.load&&o.type&&o.id?t("load",{data:o}):o},promptUpdate({commit:e,state:t},n=[]){e("action-menu/togglePromptUpdate",n,{root:!0})},async collectionAction({getters:e,dispatch:t},{type:n,actionName:r,body:i,opt:a}){if(a=a||{},!a.url){const t=e["schemaFor"](n);a.url=(0,ft.R_)(t.links.collection,"action",r)}a.method="post",a.data=i;const o=await t("request",{opt:a});return!1!==a.load&&"collection"===o.type?(await t("loadMulti",o.data),o.data.map((t=>e.byId(t.type,t.id)||t))):!1!==a.load&&o.type&&o.id?t("load",{data:o}):o},createNamespace(e,t){return(0,NS.L8)(e,{type:$.CU,metadata:{name:t.name}})},cleanForNew(e,t){const n=t.metadata||{};return(0,kd.cX)(t,gk),(0,kd.cX)(n,vk),yk(n.annotations),yk(n.labels),n.name="",t?.spec?.crd?.spec?.names?.kind&&(t.spec.crd.spec.names.kind=""),t},cleanForDiff(e,t){const n=t.metadata||{};return n.labels||(n.labels={}),n.annotations||(n.annotations={}),bk(t),(0,kd.cX)(t,fk),(0,kd.cX)(n,mk),yk(n.annotations),yk(n.labels),t},cleanForDetail(e,t){return t.metadata||(0,kd.hZ)(t,"metadata",{}),t.metadata.annotations||(0,kd.hZ)(t,"metadata.annotations",{}),t.metadata.labels||(0,kd.hZ)(t,"metadata.labels",{}),t},cleanForDownload(e,t){return(0,hk.C)(t)}};const fk=["actions","links","status","__rehydrate","__clone"],mk=["ownerReferences","selfLink","creationTimestamp","deletionTimestamp","state","fields","relationships","generation","managedFields","resourceVersion"],gk=["actions","links","status","id"],vk=[...mk,"uid"];function bk(e){for(const t in e)if(t.startsWith("__"))delete e[t];else{const n=e[t];sk()(n)&&bk(n)}}function yk(e){e&&Object.keys(e).forEach((t=>{t.match(/(^|field\.)cattle\.io(\/.*|$)/)&&delete e[t]}))}function wk(e,t){return{...p_.fs,state(){return{...(0,p_.Ut)(e,t),socket:null,queue:[],wantSocket:!1,debugSocket:!1,allowStreaming:!0,pendingFrames:[],deferredRequests:{},started:[],inError:{},podsByNamespace:{}}},getters:{...p_.fs.getters,...jS,...AS},mutations:{...p_.fs.mutations,...ZS,...xS},actions:{...p_.fs.actions,...pk,...kS}}}const Ek=(e,t)=>{mS(e,t)};var _k=a(74302),Sk={namespaceFilterOptions:(e,t,n,r)=>({addNamespace:e,divider:n,notFilterNamespaces:i})=>{const a=[{id:rE.tj,kind:rE.T6.SPECIAL,label:r["i18n/t"]("nav.ns.all")}];n(a);const o=t.filterNamespace(i);if(!r["isStandaloneHarvester"]&&r["currentCluster"]&&"_"!==r["currentCluster"]?.id){const t=r["currentCluster"];let i=r["management/all"]($.Mc.PROJECT);i=(0,_k.Ul)((0,Se.WP)(i,"spec.clusterName",t.id),["nameDisplay"]).filter((e=>"System"!==e.nameDisplay));const s={},l={};let c=!0;l["null"]=[];for(const e of i)s[e.metadata.name]=e;for(const e of o){let t=e.projectId;t&&s[t]||(t="null");let n=l[t];n||(n=[],l[e.projectId]=n),n.push(e)}for(const r of i){const t=r.metadata.name;c?c=!1:n(a),a.push({id:`project://${t}`,kind:"project",label:r.nameDisplay});const i=l[t]||[];e(a,i)}const u=l["null"];u.length&&(c||n(a),a.push({id:rE.pF,kind:"project",label:r["i18n/t"]("nav.ns.orphan")}),e(a,u))}else e(a,o);return a},filterNamespace(e,t,n,r,i){const a=t.all("namespace");return(e=[])=>a.filter((t=>!t.isSystem||e.includes(t.id)))},filterProject(e,t,n,r){const i=r["management/all"]($.Mc.PROJECT),a=r["currentCluster"],o=a.id;return i.filter((e=>e.spec.clusterName===o&&"System"!==e.nameDisplay))}},kk={},xk={async loadCluster({state:e,commit:t,dispatch:n,getters:r,rootGetters:i,rootState:a},{id:o}){await n("management/waitForSchema",{type:$.Mc.CLUSTER},{root:!0});const s=await n("management/find",{type:$.Mc.CLUSTER,id:o,opt:{url:`${$.Mc.CLUSTER}s/${escape(o)}`}},{root:!0});let c=`/k8s/clusters/${escape(o)}/v1/harvester`;if("local"===o&&(c="/v1/harvester"),!s)throw t("clusterId",null,{root:!0}),t("applyConfig",{baseUrl:null}),new Cy.oV(o);t("applyConfig",{baseUrl:c}),await Promise.all([n("loadSchemas",!0)]),n("subscribe");const u={type:$.Mc.PROJECT,opt:{url:`${$.Mc.PROJECT}/${escape(o)}`,watchNamespace:o}},d=async()=>{let e=3e4;const t=100;while(e>0&&!a.managementReady)await setTimeout((()=>{}),t),e-=t;if(i["management/schemaFor"]($.Mc.PROJECT))return n("management/findAll",u,{root:!0})};if("local"!==o&&r["schemaFor"]($.Mc.SETTING)){const e=await n("findAll",{type:$.Mc.SETTING,id:U.HG.SYSTEM_NAMESPACES,opt:{url:`${c}/${$.Mc.SETTING}s/`,force:!0}}),r=e?.find((e=>e.id===U.HG.SYSTEM_NAMESPACES));if(r){const e=(r.value||r.default)?.split(",");t("setSystemNamespaces",e,{root:!0})}}const h={projects:d(),virtualCount:n("findAll",{type:$.i2}),virtualNamespaces:n("findAll",{type:$.CU}),settings:n("findAll",{type:l.rk.SETTING}),clusters:n("management/findAll",{type:$.Mc.CLUSTER,opt:{force:!0}},{root:!0})};r["schemaFor"](l.rk.RESOURCE_QUOTA)&&(h.resourceQuota=n("findAll",{type:l.rk.RESOURCE_QUOTA})),r["schemaFor"](l.rk.UPGRADE)&&(h.upgrades=n("findAll",{type:l.rk.UPGRADE}));const p=await(0,ce.kR)(h),f=i["harvester-common/getFeatureEnabled"]("supportHarvesterClusterVersion");if(!f){const e=i["productId"];return void this.$router?.push({name:`${e}-c-cluster-unsupported${"local"===o?"-standalone":""}`,params:{product:e}})}await n("cleanNamespaces",null,{root:!0}),t("updateNamespaces",{filters:[],all:r.filterNamespace(),getters:r},{root:!0});const m={def:!1,parseJSON:!0,inheritFrom:O.IJ,asUserPreference:!0};t("prefs/setDefinition",{name:"view-in-api",definition:m},{root:!0}),t("prefs/setDefinition",{name:"all-namespaces",definition:m},{root:!0}),t("prefs/setDefinition",{name:"theme-shortcut",definition:m},{root:!0}),t("prefs/setDefinition",{name:"plugin-developer",definition:m},{root:!0});const g=!(1===p.clusters.length&&"local"===p.clusters[0].metadata?.name);g&&t("managementChanged",{ready:!0,isMultiCluster:!0,isRancher:!0},{root:!0})}};const Ak=()=>{const e=wk(null,null);return e.getters={...e.getters,...Sk},e.mutations={...e.mutations,...kk},e.actions={...e.actions,...xk},e},Nk={namespace:r.KR,isClusterStore:!0};var Ck={specifics:Ak(),config:Nk,init:Ek},Tk=a(52880);function Rk(e){return/^[A-Fa-f0-9]{2}(-[A-Fa-f0-9]{2}){5}$|^[A-Fa-f0-9]{2}(:[A-Fa-f0-9]{2}){5}$/.test(e)}function Ok(e){const t=/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/;return t.test(e)}var Ik=a(66905),Lk=a(66490),Dk=a(84757);const Pk=63;function Mk(e,t,n,r){const{domain:{devices:{interfaces:i}},networks:a}=e,o=[];return i.map(((e,r)=>{const i=a.find((t=>e.name===t.name)),s=e.name||i.name||`Network ${r+1}`,l=t["i18n/t"]("harvester.fields.network"),c=t["i18n/t"]("harvester.validation.vm.network.lowerType"),u=t["i18n/t"]("harvester.validation.vm.network.upperType");if($k(t,n,e.name,o,s,l,c,u),i.multus&&!i.multus.networkName){const e=t["i18n/t"]("harvester.fields.network"),r=t["i18n/t"]("validation.required",{key:e});n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:s,message:r}))}if(e.macAddress&&!Rk(e.macAddress)&&!i.pod){const e=t["i18n/t"]("harvester.validation.vm.network.macFormat");n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:s,message:e}))}})),n}function Bk(e,t,n,r,i,a){const o=r.includes("isVMTemplate"),s=o?this.value.spec.vm:a,l=(0,Lk.v)(s),c=e.template.spec.volumes||[],u=e.template.spec.domain.devices.disks||[],d=[];u.forEach(((e,r)=>{const i=e.name||c[r]?.name||`Volume ${r+1}`;if(!e.disk&&!e.cdrom){const e=t["i18n/t"]("harvester.fields.type"),r=t["i18n/t"]("validation.required",{key:e});n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:i,message:r}))}const a=t["i18n/t"]("harvester.fields.volume"),o=t["i18n/t"]("harvester.validation.vm.volume.lowerType"),s=t["i18n/t"]("harvester.validation.vm.volume.upperType");$k(t,n,e.name,d,i,a,o,s)}));let h=!1;return c.forEach(((e,r)=>{const{type:i,typeValue:s}=Fk(t,e,l,a),c=e.name||r+1;if([Ik.xO.IMAGE,Ik.xO.ATTACH_VOLUME,Ik.xO.CONTAINER].includes(i)&&(h=!0),i===Ik.xO.NEW||i===Ik.xO.IMAGE){if(!/([1-9]|[1-9][0-9]+)[a-zA-Z]+/.test(s?.spec?.resources?.requests?.storage)){const e=t["i18n/t"]("harvester.fields.size"),r=t["i18n/t"]("validation.required",{key:e});n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:c,message:r}))}if(s?.spec?.resources?.requests?.storage&&!/^([0-9][0-9]{0,8})[a-zA-Z]+$/.test(s?.spec?.resources?.requests?.storage)){const e=t["i18n/t"]("harvester.validation.generic.maximumSize",{max:`999999999 ${Dk.Wl}`});n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:c,message:e}))}if(i===Ik.xO.IMAGE&&!s?.spec?.storageClassName&&!o){const e=t["i18n/t"]("harvester.fields.image"),r=t["i18n/t"]("validation.required",{key:e});n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:c,message:r}))}if(!s?.spec?.storageClassName&&e?.persistentVolumeClaim?.claimName&&i!==Ik.xO.IMAGE){const e=t["i18n/t"]("harvester.fields.storageClass"),r=t["i18n/t"]("validation.required",{key:e});n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:c,message:r}))}}if(i===Ik.xO.ATTACH_VOLUME){const r=t["harvester/all"]($.YH),i=e?.persistentVolumeClaim?.claimName,o=r.find((e=>e.id===`${a.metadata.namespace}/${i}`));if(!o&&i){const e=t["i18n/t"]("harvester.fields.volume");n.push(t["i18n/t"]("harvester.validation.generic.hasDelete",{type:e,name:i}))}if(!i){const e=t["i18n/t"]("harvester.virtualMachine.volume.volume");n.push(t["i18n/t"]("validation.required",{key:e}))}}if(i===Ik.xO.CONTAINER&&!e.containerDisk.image){const e=t["i18n/t"]("harvester.fields.dockerImage"),r=t["i18n/t"]("validation.required",{key:e});n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:c,message:r}))}})),h&&0!==c.length||a.links||n.push(t["i18n/t"]("harvester.validation.vm.volume.needImageOrExisting")),n}function Fk(e,t,n,r){let i=null;const a=e["harvester/all"]($.YH);if(t.persistentVolumeClaim){const e=t?.persistentVolumeClaim?.claimName,o=a.find((t=>t.id===`${r.metadata.namespace}/${e}`));if(o)return{type:Ik.xO.ATTACH_VOLUME,typeValue:null};if(i=n.find((e=>t.persistentVolumeClaim.claimName===e.metadata.name&&e.metadata?.annotations&&Object.prototype.hasOwnProperty.call(e.metadata.annotations,"harvesterhci.io/imageId"))),i)return{type:Ik.xO.IMAGE,typeValue:i};if(i=n.find((e=>t.persistentVolumeClaim.claimName===e.metadata.name)),i)return{type:Ik.xO.NEW,typeValue:i}}return t.containerDisk?{type:Ik.xO.CONTAINER,typeValue:null}:{}}function $k(e,t,n,r=[],i,a,o,s){if(-1!==r.findIndex((e=>n===e))&&t.push(e["i18n/t"]("harvester.validation.vm.duplicatedName",{type:a,name:n})),r.push(n),n&&n?.length>Pk){const n=e["i18n/t"]("harvester.fields.name"),r=e["i18n/t"]("harvester.validation.generic.maxLength",{key:n,max:Pk});t.push(e["i18n/t"]("harvester.validation.generic.tabError",{prefix:i,message:r}))}if(!n){const n=e["i18n/t"]("harvester.fields.name"),r=e["i18n/t"]("validation.required",{key:n});t.push(e["i18n/t"]("harvester.validation.generic.tabError",{prefix:i,message:r}))}if(!Ok(n)){const r="^[a-z0-9]([-a-z0-9]*[a-z0-9])?$";t.push(e["i18n/t"]("harvester.validation.generic.regex",{lowerType:o,name:n,regex:r,upperType:s}))}}var Uk=a(95799);function jk(e,t,n,r){const i=t["i18n/t"];if(!e||""===e){const e=i("harvester.volume.size");return n.push(i("validation.required",{key:e})),n}const a=Vk(e),o=999999,s=/^[1-9]\d*$/;return(!s.test(a)||a>o)&&n.push(i("harvester.validation.volume.sizeRange")),n}function Vk(e){if(!e)return null;const t=(0,Uk.ao)(e);return(0,Uk.Mo)(t,{addSuffix:!1,increment:1024,minExponent:3,maxExponent:3})}function Kk(e,t,n,r){const i=t["i18n/t"];if(!e)return n;const a=JSON.parse(e),o=a.type;return o?("s3"===o&&(a.accessKeyId||n.push(i("validation.required",{key:"accessKeyId"})),a.secretAccessKey||n.push(i("validation.required",{key:"secretAccessKey"})),a.bucketRegion||n.push(i("validation.required",{key:"bucketRegion"})),a.bucketName||n.push(i("validation.required",{key:"bucketName"}))),a.endpoint||"s3"===o||n.push(i("validation.required",{key:"endpoint"})),n):n}function Hk(e,t,n,r){const{ntpServers:i}=JSON.parse(e),a=t["i18n/t"],o=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/,s=/^(?!:\/\/)(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}$/;if(!i)return n;const l=new Set(i);return i.length!==l.size&&n.push(a("harvester.setting.ntpServers.isDuplicate")),i.find((e=>!o.test(e)&&!s.test(e)))&&n.push(a("harvester.setting.ntpServers.isNotIPV4")),n}function Gk(e,t,n,r,i,a){if(!e){const e=t["i18n/t"]("harvester.volume.size");n.push(t["i18n/t"]("validation.required",{key:e}))}if(e&&!/^([0-9][0-9]{0,8})[a-zA-Z]+$/.test(e)){const e=t["i18n/t"]("harvester.validation.generic.maximumSize",{max:`999999999 ${Dk.Wl}`});n.push(e)}return n}function zk(e,t,n,r){const i=LE().load(e),a=[{path:"prometheus.prometheusSpec.scrapeInterval",translationKey:"monitoring.prometheus.config.scrape"},{path:"prometheus.prometheusSpec.evaluationInterval",translationKey:"monitoring.prometheus.config.evaluation"},{path:"prometheus.prometheusSpec.retention",translationKey:"monitoring.prometheus.config.retention"},{path:"prometheus.prometheusSpec.retentionSize",translationKey:"monitoring.prometheus.config.retentionSize"},{path:"prometheus.prometheusSpec.resources.requests.cpu",translationKey:"monitoring.prometheus.config.requests.cpu"},{path:"prometheus.prometheusSpec.resources.requests.memory",translationKey:"monitoring.prometheus.config.requests.memory"},{path:"prometheus.prometheusSpec.resources.limits.cpu",translationKey:"monitoring.prometheus.config.limits.cpu"},{path:"prometheus.prometheusSpec.resources.limits.memory",translationKey:"monitoring.prometheus.config.limits.memory"},{path:"prometheus-node-exporter.resources.requests.cpu",translationKey:"monitoring.prometheus.config.requests.cpu"},{path:"prometheus-node-exporter.resources.requests.memory",translationKey:"monitoring.prometheus.config.requests.memory"},{path:"prometheus-node-exporter.resources.limits.cpu",translationKey:"monitoring.prometheus.config.limits.cpu"},{path:"prometheus-node-exporter.resources.limits.memory",translationKey:"monitoring.prometheus.config.limits.memory"},{path:"grafana.resources.requests.cpu",translationKey:"monitoring.prometheus.config.requests.cpu"},{path:"grafana.resources.requests.memory",translationKey:"monitoring.prometheus.config.requests.memory"},{path:"grafana.resources.limits.cpu",translationKey:"monitoring.prometheus.config.limits.cpu"},{path:"grafana.resources.limits.memory",translationKey:"monitoring.prometheus.config.limits.memory"},{path:"alertmanager.alertmanagerSpec.retention",translationKey:"monitoring.prometheus.config.retention"},{path:"alertmanager.alertmanagerSpec.resources.requests.cpu",translationKey:"monitoring.prometheus.config.requests.cpu"},{path:"alertmanager.alertmanagerSpec.resources.requests.memory",translationKey:"monitoring.prometheus.config.requests.memory"},{path:"alertmanager.alertmanagerSpec.resources.limits.cpu",translationKey:"monitoring.prometheus.config.limits.cpu"},{path:"alertmanager.alertmanagerSpec.resources.limits.memory",translationKey:"monitoring.prometheus.config.limits.memory"}];return a.forEach((e=>{(0,kd.Jt)(i,e.path)||n.push(t["i18n/t"]("validation.required",{key:t["i18n/t"](e.translationKey)}))})),n}function qk(e,t,n,r){const i=LE().load(e),a=[{path:"fluentbit.resources.requests.cpu",translationKey:"monitoring.prometheus.config.requests.cpu"},{path:"fluentbit.resources.requests.memory",translationKey:"monitoring.prometheus.config.requests.memory"},{path:"fluentbit.resources.limits.cpu",translationKey:"monitoring.prometheus.config.limits.cpu"},{path:"fluentbit.resources.limits.memory",translationKey:"monitoring.prometheus.config.limits.memory"},{path:"fluentd.resources.requests.cpu",translationKey:"monitoring.prometheus.config.requests.cpu"},{path:"fluentd.resources.requests.memory",translationKey:"monitoring.prometheus.config.requests.memory"},{path:"fluentd.resources.limits.cpu",translationKey:"monitoring.prometheus.config.limits.cpu"},{path:"fluentd.resources.limits.memory",translationKey:"monitoring.prometheus.config.limits.memory"}];return a.forEach((e=>{(0,kd.Jt)(i,e.path)||n.push(t["i18n/t"]("validation.required",{key:t["i18n/t"](e.translationKey)}))})),n}function Xk(e=[],t,n,r){const i=t["i18n/t"];return 0===e.length&&n.push(i("validation.required",{key:i("harvester.ipPool.tabs.range")},!0)),e.map((e=>{e.subnet||n.push(i("validation.required",{key:i("harvester.ipPool.subnet.label")},!0))})),n}function Wk(e,t,n,r,i){return/^[a-f0-9]{128}$/i.test(e)||n.push(t["i18n/t"]("harvester.validation.hash.sha512")),n}var Yk={imageUrl:Tk.b8,dataVolumeSize:jk,vmNetworks:Mk,vmDisks:Bk,fileRequired:Tk._X,backupTarget:Kk,ntpServers:Hk,volumeSize:Gk,rancherMonitoring:zk,rancherLogging:qk,ranges:Xk,hashSHA512:Wk};function Qk(e){r.KR;n(e),e.metadata=a(8330),e.metadata.icon=a(99086),e.addProduct(a(62261)),e.addDashboardStore(h_.config.namespace,h_.specifics,h_.config),e.addDashboardStore(Ck.config.namespace,Ck.specifics,Ck.config,Ck.init),e.validators=Yk,e.addRoutes(r_),e.register("component","NavHeaderRight",(0,i.defineAsyncComponent)((()=>Promise.all([a.e(327),a.e(472)]).then(a.bind(a,14472)))))}var Jk=Qk}(),o}()}));
//# sourceMappingURL=harvester-1.5.2-rc1.umd.min.js.map