UNPKG

vue3-js-panel

Version:

A Vue component for jsPanel, base on vue-js-panel https://www.npmjs.com/package/vue-js-panel

2 lines 121 kB
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["vue3-js-panel"]=t(require("vue")):e["vue3-js-panel"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"00ee":function(e,t,n){var o=n("b622"),r=o("toStringTag"),a={};a[r]="z",e.exports="[object z]"===String(a)},"0366":function(e,t,n){var o=n("1c0b");e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},"06cf":function(e,t,n){var o=n("83ab"),r=n("d1e7"),a=n("5c6c"),i=n("fc6a"),s=n("c04e"),l=n("5135"),c=n("0cfb"),d=Object.getOwnPropertyDescriptor;t.f=o?d:function(e,t){if(e=i(e),t=s(t,!0),c)try{return d(e,t)}catch(n){}if(l(e,t))return a(!r.f.call(e,t),e[t])}},"0cfb":function(e,t,n){var o=n("83ab"),r=n("d039"),a=n("cc12");e.exports=!o&&!r((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},"19aa":function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},"1be4":function(e,t,n){var o=n("d066");e.exports=o("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var o=n("b622"),r=o("iterator"),a=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){a=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(l){}return n}},"1cdc":function(e,t,n){var o=n("342f");e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(o)},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},2266:function(e,t,n){var o=n("825a"),r=n("e95a"),a=n("50c4"),i=n("0366"),s=n("35a1"),l=n("2a62"),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var d,p,u,f,h,m,g,b=n&&n.that,y=!(!n||!n.AS_ENTRIES),v=!(!n||!n.IS_ITERATOR),w=!(!n||!n.INTERRUPTED),x=i(t,b,1+y+w),E=function(e){return d&&l(d),new c(!0,e)},F=function(e){return y?(o(e),w?x(e[0],e[1],E):x(e[0],e[1])):w?x(e,E):x(e)};if(v)d=e;else{if(p=s(e),"function"!=typeof p)throw TypeError("Target is not iterable");if(r(p)){for(u=0,f=a(e.length);f>u;u++)if(h=F(e[u]),h&&h instanceof c)return h;return new c(!1)}d=p.call(e)}m=d.next;while(!(g=m.call(d)).done){try{h=F(g.value)}catch(C){throw l(d),C}if("object"==typeof h&&h&&h instanceof c)return h}return new c(!1)}},"23cb":function(e,t,n){var o=n("a691"),r=Math.max,a=Math.min;e.exports=function(e,t){var n=o(e);return n<0?r(n+t,0):a(n,t)}},"23e7":function(e,t,n){var o=n("da84"),r=n("06cf").f,a=n("9112"),i=n("6eeb"),s=n("ce4e"),l=n("e893"),c=n("94ca");e.exports=function(e,t){var n,d,p,u,f,h,m=e.target,g=e.global,b=e.stat;if(d=g?o:b?o[m]||s(m,{}):(o[m]||{}).prototype,d)for(p in t){if(f=t[p],e.noTargetGet?(h=r(d,p),u=h&&h.value):u=d[p],n=c(g?p:m+(b?".":"#")+p,e.forced),!n&&void 0!==u){if(typeof f===typeof u)continue;l(f,u)}(e.sham||u&&u.sham)&&a(f,"sham",!0),i(d,p,f,e)}}},"241c":function(e,t,n){var o=n("ca84"),r=n("7839"),a=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,a)}},2626:function(e,t,n){"use strict";var o=n("d066"),r=n("9bf2"),a=n("b622"),i=n("83ab"),s=a("species");e.exports=function(e){var t=o(e),n=r.f;i&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},"2a62":function(e,t,n){var o=n("825a");e.exports=function(e){var t=e["return"];if(void 0!==t)return o(t.call(e)).value}},"2cf4":function(e,t,n){var o,r,a,i=n("da84"),s=n("d039"),l=n("0366"),c=n("1be4"),d=n("cc12"),p=n("1cdc"),u=n("605d"),f=i.location,h=i.setImmediate,m=i.clearImmediate,g=i.process,b=i.MessageChannel,y=i.Dispatch,v=0,w={},x="onreadystatechange",E=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},F=function(e){return function(){E(e)}},C=function(e){E(e.data)},j=function(e){i.postMessage(e+"",f.protocol+"//"+f.host)};h&&m||(h=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return w[++v]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},o(v),v},m=function(e){delete w[e]},u?o=function(e){g.nextTick(F(e))}:y&&y.now?o=function(e){y.now(F(e))}:b&&!p?(r=new b,a=r.port2,r.port1.onmessage=C,o=l(a.postMessage,a,1)):i.addEventListener&&"function"==typeof postMessage&&!i.importScripts&&f&&"file:"!==f.protocol&&!s(j)?(o=j,i.addEventListener("message",C,!1)):o=x in d("script")?function(e){c.appendChild(d("script"))[x]=function(){c.removeChild(this),E(e)}}:function(e){setTimeout(F(e),0)}),e.exports={set:h,clear:m}},"2d00":function(e,t,n){var o,r,a=n("da84"),i=n("342f"),s=a.process,l=s&&s.versions,c=l&&l.v8;c?(o=c.split("."),r=o[0]<4?1:o[0]+o[1]):i&&(o=i.match(/Edge\/(\d+)/),(!o||o[1]>=74)&&(o=i.match(/Chrome\/(\d+)/),o&&(r=o[1]))),e.exports=r&&+r},"342f":function(e,t,n){var o=n("d066");e.exports=o("navigator","userAgent")||""},"35a1":function(e,t,n){var o=n("f5df"),r=n("3f8c"),a=n("b622"),i=a("iterator");e.exports=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||r[o(e)]}},"3bbe":function(e,t,n){var o=n("861d");e.exports=function(e){if(!o(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3f8c":function(e,t){e.exports={}},"428f":function(e,t,n){var o=n("da84");e.exports=o},"44ad":function(e,t,n){var o=n("d039"),r=n("c6b6"),a="".split;e.exports=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?a.call(e,""):Object(e)}:Object},"44de":function(e,t,n){var o=n("da84");e.exports=function(e,t){var n=o.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},4840:function(e,t,n){var o=n("825a"),r=n("1c0b"),a=n("b622"),i=a("species");e.exports=function(e,t){var n,a=o(e).constructor;return void 0===a||void 0==(n=o(a)[i])?t:r(n)}},4930:function(e,t,n){var o=n("2d00"),r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},"4d64":function(e,t,n){var o=n("fc6a"),r=n("50c4"),a=n("23cb"),i=function(e){return function(t,n,i){var s,l=o(t),c=r(l.length),d=a(i,c);if(e&&n!=n){while(c>d)if(s=l[d++],s!=s)return!0}else for(;c>d;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},"50c4":function(e,t,n){var o=n("a691"),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},5135:function(e,t,n){var o=n("7b0b"),r={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return r.call(o(e),t)}},5692:function(e,t,n){var o=n("c430"),r=n("c6cd");(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.15.2",mode:o?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var o=n("d066"),r=n("241c"),a=n("7418"),i=n("825a");e.exports=o("Reflect","ownKeys")||function(e){var t=r.f(i(e)),n=a.f;return n?t.concat(n(e)):t}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"605d":function(e,t,n){var o=n("c6b6"),r=n("da84");e.exports="process"==o(r.process)},6069:function(e,t){e.exports="object"==typeof window},"60da":function(e,t,n){"use strict";var o=n("83ab"),r=n("d039"),a=n("df75"),i=n("7418"),s=n("d1e7"),l=n("7b0b"),c=n("44ad"),d=Object.assign,p=Object.defineProperty;e.exports=!d||r((function(){if(o&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||a(d({},t)).join("")!=r}))?function(e,t){var n=l(e),r=arguments.length,d=1,p=i.f,u=s.f;while(r>d){var f,h=c(arguments[d++]),m=p?a(h).concat(p(h)):a(h),g=m.length,b=0;while(g>b)f=m[b++],o&&!u.call(h,f)||(n[f]=h[f])}return n}:d},"69f3":function(e,t,n){var o,r,a,i=n("7f9a"),s=n("da84"),l=n("861d"),c=n("9112"),d=n("5135"),p=n("c6cd"),u=n("f772"),f=n("d012"),h="Object already initialized",m=s.WeakMap,g=function(e){return a(e)?r(e):o(e,{})},b=function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(i||p.state){var y=p.state||(p.state=new m),v=y.get,w=y.has,x=y.set;o=function(e,t){if(w.call(y,e))throw new TypeError(h);return t.facade=e,x.call(y,e,t),t},r=function(e){return v.call(y,e)||{}},a=function(e){return w.call(y,e)}}else{var E=u("state");f[E]=!0,o=function(e,t){if(d(e,E))throw new TypeError(h);return t.facade=e,c(e,E,t),t},r=function(e){return d(e,E)?e[E]:{}},a=function(e){return d(e,E)}}e.exports={set:o,get:r,has:a,enforce:g,getterFor:b}},"6eeb":function(e,t,n){var o=n("da84"),r=n("9112"),a=n("5135"),i=n("ce4e"),s=n("8925"),l=n("69f3"),c=l.get,d=l.enforce,p=String(String).split("String");(e.exports=function(e,t,n,s){var l,c=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||r(n,"name",t),l=d(n),l.source||(l.source=p.join("string"==typeof t?t:""))),e!==o?(c?!f&&e[t]&&(u=!0):delete e[t],u?e[t]=n:r(e,t,n)):u?e[t]=n:i(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},7418:function(e,t){t.f=Object.getOwnPropertySymbols},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,n){var o=n("1d80");e.exports=function(e){return Object(o(e))}},"7f9a":function(e,t,n){var o=n("da84"),r=n("8925"),a=o.WeakMap;e.exports="function"===typeof a&&/native code/.test(r(a))},"825a":function(e,t,n){var o=n("861d");e.exports=function(e){if(!o(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,n){var o=n("d039");e.exports=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},8875:function(e,t,n){var o,r,a;(function(n,i){r=[],o=i,a="function"===typeof o?o.apply(t,r):o,void 0===a||(e.exports=a)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(f){var n,o,r,a=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,i=/@([^@]*):(\d+):(\d+)\s*$/gi,s=a.exec(f.stack)||i.exec(f.stack),l=s&&s[1]||!1,c=s&&s[2]||!1,d=document.location.href.replace(document.location.hash,""),p=document.getElementsByTagName("script");l===d&&(n=document.documentElement.outerHTML,o=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),r=n.replace(o,"$1").trim());for(var u=0;u<p.length;u++){if("interactive"===p[u].readyState)return p[u];if(p[u].src===l)return p[u];if(l===d&&p[u].innerHTML&&p[u].innerHTML.trim()===r)return p[u]}return null}}return e}))},8925:function(e,t,n){var o=n("c6cd"),r=Function.toString;"function"!=typeof o.inspectSource&&(o.inspectSource=function(e){return r.call(e)}),e.exports=o.inspectSource},"8bbf":function(t,n){t.exports=e},"90e3":function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+o).toString(36)}},9112:function(e,t,n){var o=n("83ab"),r=n("9bf2"),a=n("5c6c");e.exports=o?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},"94ca":function(e,t,n){var o=n("d039"),r=/#|\.prototype\./,a=function(e,t){var n=s[i(e)];return n==c||n!=l&&("function"==typeof t?o(t):!!t)},i=a.normalize=function(e){return String(e).replace(r,".").toLowerCase()},s=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},"96cf":function(e,t,n){var o=function(e){"use strict";var t,n=Object.prototype,o=n.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(L){l=function(e,t,n){return e[t]=n}}function c(e,t,n,o){var r=t&&t.prototype instanceof g?t:g,a=Object.create(r.prototype),i=new k(o||[]);return a._invoke=j(e,n,i),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(L){return{type:"throw",arg:L}}}e.wrap=c;var p="suspendedStart",u="suspendedYield",f="executing",h="completed",m={};function g(){}function b(){}function y(){}var v={};v[a]=function(){return this};var w=Object.getPrototypeOf,x=w&&w(w(A([])));x&&x!==n&&o.call(x,a)&&(v=x);var E=y.prototype=g.prototype=Object.create(v);function F(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(r,a,i,s){var l=d(e[r],e,a);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"===typeof p&&o.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(p).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var r;function a(e,o){function a(){return new t((function(t,r){n(e,o,t,r)}))}return r=r?r.then(a,a):a()}this._invoke=a}function j(e,t,n){var o=p;return function(r,a){if(o===f)throw new Error("Generator is already running");if(o===h){if("throw"===r)throw a;return T()}n.method=r,n.arg=a;while(1){var i=n.delegate;if(i){var s=S(i,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var l=d(e,t,n);if("normal"===l.type){if(o=n.done?h:u,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=h,n.method="throw",n.arg=l.arg)}}}function S(e,n){var o=e.iterator[n.method];if(o===t){if(n.delegate=null,"throw"===n.method){if(e.iterator["return"]&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var r=d(o,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,m;var a=r.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function z(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(z,this),this.reset(!0)}function A(e){if(e){var n=e[a];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function n(){while(++r<e.length)if(o.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}return{next:T}}function T(){return{value:t,done:!0}}return b.prototype=E.constructor=y,y.constructor=b,b.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},F(C.prototype),C.prototype[i]=function(){return this},e.AsyncIterator=C,e.async=function(t,n,o,r,a){void 0===a&&(a=Promise);var i=new C(c(t,n,o,r),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},F(E),l(E,s,"Generator"),E[a]=function(){return this},E.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var o=t.pop();if(o in e)return n.value=o,n.done=!1,n}return n.done=!0,n}},e.values=A,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(o,r){return s.type="throw",s.arg=e,n.next=o,r&&(n.method="next",n.arg=t),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;P(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,o){return this.delegate={iterator:A(e),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=o}catch(r){Function("r","regeneratorRuntime = r")(o)}},"9bf2":function(e,t,n){var o=n("83ab"),r=n("0cfb"),a=n("825a"),i=n("c04e"),s=Object.defineProperty;t.f=o?s:function(e,t,n){if(a(e),t=i(t,!0),a(n),r)try{return s(e,t,n)}catch(o){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},a4b4:function(e,t,n){var o=n("342f");e.exports=/web0s(?!.*chrome)/i.test(o)},a691:function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},b041:function(e,t,n){"use strict";var o=n("00ee"),r=n("f5df");e.exports=o?{}.toString:function(){return"[object "+r(this)+"]"}},b575:function(e,t,n){var o,r,a,i,s,l,c,d,p=n("da84"),u=n("06cf").f,f=n("2cf4").set,h=n("1cdc"),m=n("a4b4"),g=n("605d"),b=p.MutationObserver||p.WebKitMutationObserver,y=p.document,v=p.process,w=p.Promise,x=u(p,"queueMicrotask"),E=x&&x.value;E||(o=function(){var e,t;g&&(e=v.domain)&&e.exit();while(r){t=r.fn,r=r.next;try{t()}catch(n){throw r?i():a=void 0,n}}a=void 0,e&&e.enter()},h||g||m||!b||!y?w&&w.resolve?(c=w.resolve(void 0),c.constructor=w,d=c.then,i=function(){d.call(c,o)}):i=g?function(){v.nextTick(o)}:function(){f.call(p,o)}:(s=!0,l=y.createTextNode(""),new b(o).observe(l,{characterData:!0}),i=function(){l.data=s=!s})),e.exports=E||function(e){var t={fn:e,next:void 0};a&&(a.next=t),r||(r=t,i()),a=t}},b622:function(e,t,n){var o=n("da84"),r=n("5692"),a=n("5135"),i=n("90e3"),s=n("4930"),l=n("fdbf"),c=r("wks"),d=o.Symbol,p=l?d:d&&d.withoutSetter||i;e.exports=function(e){return a(c,e)&&(s||"string"==typeof c[e])||(s&&a(d,e)?c[e]=d[e]:c[e]=p("Symbol."+e)),c[e]}},c04e:function(e,t,n){var o=n("861d");e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},c430:function(e,t){e.exports=!1},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var o=n("da84"),r=n("ce4e"),a="__core-js_shared__",i=o[a]||r(a,{});e.exports=i},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(o){"object"===typeof window&&(n=window)}e.exports=n},ca84:function(e,t,n){var o=n("5135"),r=n("fc6a"),a=n("4d64").indexOf,i=n("d012");e.exports=function(e,t){var n,s=r(e),l=0,c=[];for(n in s)!o(i,n)&&o(s,n)&&c.push(n);while(t.length>l)o(s,n=t[l++])&&(~a(c,n)||c.push(n));return c}},cc12:function(e,t,n){var o=n("da84"),r=n("861d"),a=o.document,i=r(a)&&r(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},cca6:function(e,t,n){var o=n("23e7"),r=n("60da");o({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},cdf9:function(e,t,n){var o=n("825a"),r=n("861d"),a=n("f069");e.exports=function(e,t){if(o(e),r(t)&&t.constructor===e)return t;var n=a.f(e),i=n.resolve;return i(t),n.promise}},ce4e:function(e,t,n){var o=n("da84"),r=n("9112");e.exports=function(e,t){try{r(o,e,t)}catch(n){o[e]=t}return t}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var o=n("428f"),r=n("da84"),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(o[e])||a(r[e]):o[e]&&o[e][t]||r[e]&&r[e][t]}},d1e7:function(e,t,n){"use strict";var o={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!o.call({1:2},1);t.f=a?function(e){var t=r(this,e);return!!t&&t.enumerable}:o},d2bb:function(e,t,n){var o=n("825a"),r=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(a){}return function(n,a){return o(n),r(a),t?e.call(n,a):n.__proto__=a,n}}():void 0)},d3b7:function(e,t,n){var o=n("00ee"),r=n("6eeb"),a=n("b041");o||r(Object.prototype,"toString",a,{unsafe:!0})},d44e:function(e,t,n){var o=n("9bf2").f,r=n("5135"),a=n("b622"),i=a("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},d959:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n}},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},df75:function(e,t,n){var o=n("ca84"),r=n("7839");e.exports=Object.keys||function(e){return o(e,r)}},e2cc:function(e,t,n){var o=n("6eeb");e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},e667:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e6cf:function(e,t,n){"use strict";var o,r,a,i,s=n("23e7"),l=n("c430"),c=n("da84"),d=n("d066"),p=n("fea9"),u=n("6eeb"),f=n("e2cc"),h=n("d2bb"),m=n("d44e"),g=n("2626"),b=n("861d"),y=n("1c0b"),v=n("19aa"),w=n("8925"),x=n("2266"),E=n("1c7e"),F=n("4840"),C=n("2cf4").set,j=n("b575"),S=n("cdf9"),z=n("44de"),P=n("f069"),k=n("e667"),A=n("69f3"),T=n("94ca"),L=n("b622"),B=n("6069"),O=n("605d"),R=n("2d00"),W=L("species"),D="Promise",q=A.get,M=A.set,I=A.getterFor(D),N=p&&p.prototype,H=p,$=N,_=c.TypeError,Y=c.document,X=c.process,V=P.f,G=V,U=!!(Y&&Y.createEvent&&c.dispatchEvent),Z="function"==typeof PromiseRejectionEvent,J="unhandledrejection",K="rejectionhandled",Q=0,ee=1,te=2,ne=1,oe=2,re=!1,ae=T(D,(function(){var e=w(H),t=e!==String(H);if(!t&&66===R)return!0;if(l&&!$["finally"])return!0;if(R>=51&&/native code/.test(e))return!1;var n=new H((function(e){e(1)})),o=function(e){e((function(){}),(function(){}))},r=n.constructor={};return r[W]=o,re=n.then((function(){}))instanceof o,!re||!t&&B&&!Z})),ie=ae||!E((function(e){H.all(e)["catch"]((function(){}))})),se=function(e){var t;return!(!b(e)||"function"!=typeof(t=e.then))&&t},le=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;j((function(){var o=e.value,r=e.state==ee,a=0;while(n.length>a){var i,s,l,c=n[a++],d=r?c.ok:c.fail,p=c.resolve,u=c.reject,f=c.domain;try{d?(r||(e.rejection===oe&&ue(e),e.rejection=ne),!0===d?i=o:(f&&f.enter(),i=d(o),f&&(f.exit(),l=!0)),i===c.promise?u(_("Promise-chain cycle")):(s=se(i))?s.call(i,p,u):p(i)):u(o)}catch(h){f&&!l&&f.exit(),u(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&de(e)}))}},ce=function(e,t,n){var o,r;U?(o=Y.createEvent("Event"),o.promise=t,o.reason=n,o.initEvent(e,!1,!0),c.dispatchEvent(o)):o={promise:t,reason:n},!Z&&(r=c["on"+e])?r(o):e===J&&z("Unhandled promise rejection",n)},de=function(e){C.call(c,(function(){var t,n=e.facade,o=e.value,r=pe(e);if(r&&(t=k((function(){O?X.emit("unhandledRejection",o,n):ce(J,n,o)})),e.rejection=O||pe(e)?oe:ne,t.error))throw t.value}))},pe=function(e){return e.rejection!==ne&&!e.parent},ue=function(e){C.call(c,(function(){var t=e.facade;O?X.emit("rejectionHandled",t):ce(K,t,e.value)}))},fe=function(e,t,n){return function(o){e(t,o,n)}},he=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=te,le(e,!0))},me=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw _("Promise can't be resolved itself");var o=se(t);o?j((function(){var n={done:!1};try{o.call(t,fe(me,n,e),fe(he,n,e))}catch(r){he(n,r,e)}})):(e.value=t,e.state=ee,le(e,!1))}catch(r){he({done:!1},r,e)}}};if(ae&&(H=function(e){v(this,H,D),y(e),o.call(this);var t=q(this);try{e(fe(me,t),fe(he,t))}catch(n){he(t,n)}},$=H.prototype,o=function(e){M(this,{type:D,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Q,value:void 0})},o.prototype=f($,{then:function(e,t){var n=I(this),o=V(F(this,H));return o.ok="function"!=typeof e||e,o.fail="function"==typeof t&&t,o.domain=O?X.domain:void 0,n.parent=!0,n.reactions.push(o),n.state!=Q&&le(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new o,t=q(e);this.promise=e,this.resolve=fe(me,t),this.reject=fe(he,t)},P.f=V=function(e){return e===H||e===a?new r(e):G(e)},!l&&"function"==typeof p&&N!==Object.prototype)){i=N.then,re||(u(N,"then",(function(e,t){var n=this;return new H((function(e,t){i.call(n,e,t)})).then(e,t)}),{unsafe:!0}),u(N,"catch",$["catch"],{unsafe:!0}));try{delete N.constructor}catch(ge){}h&&h(N,$)}s({global:!0,wrap:!0,forced:ae},{Promise:H}),m(H,D,!1,!0),g(D),a=d(D),s({target:D,stat:!0,forced:ae},{reject:function(e){var t=V(this);return t.reject.call(void 0,e),t.promise}}),s({target:D,stat:!0,forced:l||ae},{resolve:function(e){return S(l&&this===a?H:this,e)}}),s({target:D,stat:!0,forced:ie},{all:function(e){var t=this,n=V(t),o=n.resolve,r=n.reject,a=k((function(){var n=y(t.resolve),a=[],i=0,s=1;x(e,(function(e){var l=i++,c=!1;a.push(void 0),s++,n.call(t,e).then((function(e){c||(c=!0,a[l]=e,--s||o(a))}),r)})),--s||o(a)}));return a.error&&r(a.value),n.promise},race:function(e){var t=this,n=V(t),o=n.reject,r=k((function(){var r=y(t.resolve);x(e,(function(e){r.call(t,e).then(n.resolve,o)}))}));return r.error&&o(r.value),n.promise}})},e893:function(e,t,n){var o=n("5135"),r=n("56ef"),a=n("06cf"),i=n("9bf2");e.exports=function(e,t){for(var n=r(t),s=i.f,l=a.f,c=0;c<n.length;c++){var d=n[c];o(e,d)||s(e,d,l(t,d))}}},e95a:function(e,t,n){var o=n("b622"),r=n("3f8c"),a=o("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[a]===e)}},f069:function(e,t,n){"use strict";var o=n("1c0b"),r=function(e){var t,n;this.promise=new e((function(e,o){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=o})),this.resolve=o(t),this.reject=o(n)};e.exports.f=function(e){return new r(e)}},f5df:function(e,t,n){var o=n("00ee"),r=n("c6b6"),a=n("b622"),i=a("toStringTag"),s="Arguments"==r(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(n){}};e.exports=o?r:function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=l(t=Object(e),i))?n:s?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},f772:function(e,t,n){var o=n("5692"),r=n("90e3"),a=o("keys");e.exports=function(e){return a[e]||(a[e]=r(e))}},fb15:function(e,t,n){"use strict";if(n.r(t),n.d(t,"JsPanel",(function(){return g})),"undefined"!==typeof window){var o=window.document.currentScript,r=n("8875");o=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r});var a=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}var i=n("8bbf"),s={key:0,ref:"default"};function l(e,t,n,o,r,a){return n.visible?(Object(i["openBlock"])(),Object(i["createBlock"])("div",s,[Object(i["renderSlot"])(e.$slots,"default"),Object(i["renderSlot"])(e.$slots,"headerToolbar")],512)):Object(i["createCommentVNode"])("",!0)}n("d3b7"),n("e6cf");function c(e,t,n,o,r,a,i){try{var s=e[a](i),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(o,r)}function d(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var a=e.apply(t,n);function i(e){c(a,o,r,i,s,"next",e)}function s(e){c(a,o,r,i,s,"throw",e)}i(void 0)}))}}n("96cf"),n("cca6");let p={version:"4.12.0",date:"2021-07-09 09:15",ajaxAlwaysCallbacks:[],autopositionSpacing:4,closeOnEscape:void document.addEventListener("keydown",e=>{"Escape"!==e.key&&"Escape"!==e.code&&"Esc"!==e.key||p.getPanels(e=>e.classList.contains("jsPanel")).some(e=>!!e.options.closeOnEscape&&("function"==typeof e.options.closeOnEscape?e.options.closeOnEscape.call(e,e):(e.close(null,!0),!0)))},!1),defaults:{boxShadow:3,container:"window",contentSize:{width:"400px",height:"200px"},dragit:{cursor:"move",handles:".jsPanel-headerlogo, .jsPanel-titlebar, .jsPanel-ftr",opacity:.8,disableOnMaximized:!0},header:!0,headerTitle:"jsPanel",headerControls:{size:"md"},iconfont:void 0,maximizedMargin:0,minimizeTo:"default",paneltype:"standard",position:{my:"center",at:"center"},resizeit:{handles:"n, e, s, w, ne, se, sw, nw",minWidth:128,minHeight:38},theme:"default"},defaultAutocloseConfig:{time:"8s",progressbar:!0},defaultSnapConfig:{sensitivity:70,trigger:"panel",active:"both"},extensions:{},globalCallbacks:!1,icons:{close:'<svg focusable="false" class="jsPanel-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"><path fill="currentColor" d="M13.7,11l6.1-6.1c0.4-0.4,0.4-0.9,0-1.3l-1.4-1.4c-0.4-0.4-0.9-0.4-1.3,0L11,8.3L4.9,2.3C4.6,1.9,4,1.9,3.7,2.3L2.3,3.7 C1.9,4,1.9,4.6,2.3,4.9L8.3,11l-6.1,6.1c-0.4,0.4-0.4,0.9,0,1.3l1.4,1.4c0.4,0.4,0.9,0.4,1.3,0l6.1-6.1l6.1,6.1 c0.4,0.4,0.9,0.4,1.3,0l1.4-1.4c0.4-0.4,0.4-0.9,0-1.3L13.7,11z"/></svg>',maximize:'<svg focusable="false" class="jsPanel-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"><path fill="currentColor" d="M18.3,2H3.7C2.8,2,2,2.9,2,3.9v14.1C2,19.1,2.8,20,3.7,20h14.6c0.9,0,1.7-0.9,1.7-1.9V3.9C20,2.9,19.2,2,18.3,2z M18.3,17.8 c0,0.1-0.1,0.2-0.2,0.2H3.9c-0.1,0-0.2-0.1-0.2-0.2V8.4h14.6V17.8z"/></svg>',normalize:'<svg focusable="false" class="jsPanel-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"><path fill="currentColor" d="M18.3,2H7.1C6.1,2,5.4,2.8,5.4,3.7v1.7H3.7C2.8,5.4,2,6.1,2,7.1v11.3C2,19.2,2.8,20,3.7,20h11.3c0.9,0,1.7-0.8,1.7-1.7v-1.7 h1.7c0.9,0,1.7-0.8,1.7-1.7V3.7C20,2.8,19.2,2,18.3,2z M14.9,18.3H3.7V11h11.3V18.3z M18.3,14.9h-1.7V7.1c0-0.9-0.8-1.7-1.7-1.7H7.1 V3.7h11.3V14.9z"/></svg>',minimize:'<svg focusable="false" class="jsPanel-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"><path fill="currentColor" d="M18.9,19.8H3.1c-0.6,0-1.1-0.5-1.1-1.1s0.5-1.1,1.1-1.1h15.8c0.6,0,1.1,0.5,1.1,1.1S19.5,19.8,18.9,19.8z"/></svg>',smallify:'<svg focusable="false" class="jsPanel-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"><path fill="currentColor" d="M2.1,15.2L2.9,16c0.2,0.2,0.5,0.2,0.7,0L11,8.7l7.4,7.3c0.2,0.2,0.5,0.2,0.7,0l0.8-0.8c0.2-0.2,0.2-0.5,0-0.7L11.3,6 c-0.2-0.2-0.5-0.2-0.7,0l-8.5,8.5C2,14.7,2,15,2.1,15.2z"/></svg>'},idCounter:0,isIE:(()=>navigator.appVersion.match(/Trident/))(),pointerdown:"ontouchend"in window?["touchstart","mousedown"]:["mousedown"],pointermove:"ontouchend"in window?["touchmove","mousemove"]:["mousemove"],pointerup:"ontouchend"in window?["touchend","mouseup"]:["mouseup"],polyfills:(Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(null==e)throw new TypeError("Cannot convert first argument to object");let t=Object(e);for(let n=1;n<arguments.length;n++){let e=arguments[n];if(null==e)continue;e=Object(e);let o=Object.keys(Object(e));for(let n=0,r=o.length;n<r;n++){let r=o[n],a=Object.getOwnPropertyDescriptor(e,r);void 0!==a&&a.enumerable&&(t[r]=e[r])}}return t}}),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(let n=0;n<this.length;n++)e.call(t,this[n],n,this)}),[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach((function(e){e.append=e.append||function(){let e=Array.prototype.slice.call(arguments),t=document.createDocumentFragment();e.forEach((function(e){let n=e instanceof Node;t.appendChild(n?e:document.createTextNode(String(e)))})),this.appendChild(t)}})),window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){let t,n=(this.document||this.ownerDocument).querySelectorAll(e),o=this;do{for(t=n.length;--t>=0&&n.item(t)!==o;);}while(t<0&&(o=o.parentElement));return o}),function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};let n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return t<this.length?t|=0:t=this.length,this.substr(t-e.length,e.length)===e}),String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return this.substr(t||0,e.length)===e}),String.prototype.includes||(String.prototype.includes=function(e,t){return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)}),Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},void(Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');let n=Object(this),o=n.length>>>0;if(0===o)return!1;let r=0|t,a=Math.max(r>=0?r:o-Math.abs(r),0);for(;a<o;){if((i=n[a])===(s=e)||"number"==typeof i&&"number"==typeof s&&isNaN(i)&&isNaN(s))return!0;a++}var i,s;return!1}}))),themes:["default","primary","secondary","info","success","warning","danger","light","dark"],ziBase:100,colorFilledLight:.81,colorFilledDark:.08,colorFilled:0,colorBrightnessThreshold:.55,colorNames:{aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32",grey50:"fafafa",grey100:"f5f5f5",grey200:"eee",grey300:"e0e0e0",grey400:"bdbdbd",grey500:"9e9e9e",grey600:"757575",grey700:"616161",grey800:"424242",grey900:"212121",gray50:"fafafa",gray100:"f5f5f5",gray200:"eee",gray300:"e0e0e0",gray400:"bdbdbd",gray500:"9e9e9e",gray600:"757575",gray700:"616161",gray800:"424242",gray900:"212121",bluegrey50:"eceff1",bluegrey100:"CFD8DC",bluegrey200:"B0BEC5",bluegrey300:"90A4AE",bluegrey400:"78909C",bluegrey500:"607D8B",bluegrey600:"546E7A",bluegrey700:"455A64",bluegrey800:"37474F",bluegrey900:"263238",bluegray50:"eceff1",bluegray100:"CFD8DC",bluegray200:"B0BEC5",bluegray300:"90A4AE",bluegray400:"78909C",bluegray500:"607D8B",bluegray600:"546E7A",bluegray700:"455A64",bluegray800:"37474F",bluegray900:"263238",red50:"FFEBEE",red100:"FFCDD2",red200:"EF9A9A",red300:"E57373",red400:"EF5350",red500:"F44336",red600:"E53935",red700:"D32F2F",red800:"C62828",red900:"B71C1C",reda100:"FF8A80",reda200:"FF5252",reda400:"FF1744",reda700:"D50000",pink50:"FCE4EC",pink100:"F8BBD0",pink200:"F48FB1",pink300:"F06292",pink400:"EC407A",pink500:"E91E63",pink600:"D81B60",pink700:"C2185B",pink800:"AD1457",pink900:"880E4F",pinka100:"FF80AB",pinka200:"FF4081",pinka400:"F50057",pinka700:"C51162",purple50:"F3E5F5",purple100:"E1BEE7",purple200:"CE93D8",purple300:"BA68C8",purple400:"AB47BC",purple500:"9C27B0",purple600:"8E24AA",purple700:"7B1FA2",purple800:"6A1B9A",purple900:"4A148C",purplea100:"EA80FC",purplea200:"E040FB",purplea400:"D500F9",purplea700:"AA00FF",deeppurple50:"EDE7F6",deeppurple100:"D1C4E9",deeppurple200:"B39DDB",deeppurple300:"9575CD",deeppurple400:"7E57C2",deeppurple500:"673AB7",deeppurple600:"5E35B1",deeppurple700:"512DA8",deeppurple800:"4527A0",deeppurple900:"311B92",deeppurplea100:"B388FF",deeppurplea200:"7C4DFF",deeppurplea400:"651FFF",deeppurplea700:"6200EA",indigo50:"E8EAF6",indigo100:"C5CAE9",indigo200:"9FA8DA",indigo300:"7986CB",indigo400:"5C6BC0",indigo500:"3F51B5",indigo600:"3949AB",indigo700:"303F9F",indigo800:"283593",indigo900:"1A237E",indigoa100:"8C9EFF",indigoa200:"536DFE",indigoa400:"3D5AFE",indigoa700:"304FFE",blue50:"E3F2FD",blue100:"BBDEFB",blue200:"90CAF9",blue300:"64B5F6",blue400:"42A5F5",blue500:"2196F3",blue600:"1E88E5",blue700:"1976D2",blue800:"1565C0",blue900:"0D47A1",bluea100:"82B1FF",bluea200:"448AFF",bluea400:"2979FF",bluea700:"2962FF",lightblue50:"E1F5FE",lightblue100:"B3E5FC",lightblue200:"81D4FA",lightblue300:"4FC3F7",lightblue400:"29B6F6",lightblue500:"03A9F4",lightblue600:"039BE5",lightblue700:"0288D1",lightblue800:"0277BD",lightblue900:"01579B",lightbluea100:"80D8FF",lightbluea200:"40C4FF",lightbluea400:"00B0FF",lightbluea700:"0091EA",cyan50:"E0F7FA",cyan100:"B2EBF2",cyan200:"80DEEA",cyan300:"4DD0E1",cyan400:"26C6DA",cyan500:"00BCD4",cyan600:"00ACC1",cyan700:"0097A7",cyan800:"00838F",cyan900:"006064",cyana100:"84FFFF",cyana200:"18FFFF",cyana400:"00E5FF",cyana700:"00B8D4",teal50:"E0F2F1",teal100:"B2DFDB",teal200:"80CBC4",teal300:"4DB6AC",teal400:"26A69A",teal500:"009688",teal600:"00897B",teal700:"00796B",teal800:"00695C",teal900:"004D40",teala100:"A7FFEB",teala200:"64FFDA",teala400:"1DE9B6",teala700:"00BFA5",green50:"E8F5E9",green100:"C8E6C9",green200:"A5D6A7",green300:"81C784",green400:"66BB6A",green500:"4CAF50",green600:"43A047",green700:"388E3C",green800:"2E7D32",green900:"1B5E20",greena100:"B9F6CA",greena200:"69F0AE",greena400:"00E676",greena700:"00C853",lightgreen50:"F1F8E9",lightgreen100:"DCEDC8",lightgreen200:"C5E1A5",lightgreen300:"AED581",lightgreen400:"9CCC65",lightgreen500:"8BC34A",lightgreen600:"7CB342",lightgreen700:"689F38",lightgreen800:"558B2F",lightgreen900:"33691E",lightgreena100:"CCFF90",lightgreena200:"B2FF59",lightgreena400:"76FF03",lightgreena700:"64DD17",lime50:"F9FBE7",lime100:"F0F4C3",lime200:"E6EE9C",lime300:"DCE775",lime400:"D4E157",lime500:"CDDC39",lime600:"C0CA33",lime700:"AFB42B",lime800:"9E9D24",lime900:"827717",limea100:"F4FF81",limea200:"EEFF41",limea400:"C6FF00",limea700:"AEEA00",yellow50:"FFFDE7",yellow100:"FFF9C4",yellow200:"FFF59D",yellow300:"FFF176",yellow400:"FFEE58",yellow500:"FFEB3B",yellow600:"FDD835",yellow700:"FBC02D",yellow800:"F9A825",yellow900:"F57F17",yellowa100:"FFFF8D",yellowa200:"FFFF00",yellowa400:"FFEA00",yellowa700:"FFD600",amber50:"FFF8E1",amber100:"FFECB3",amber200:"FFE082",amber300:"FFD54F",amber400:"FFCA28",amber500:"FFC107",amber600:"FFB300",amber700:"FFA000",amber800:"FF8F00",amber900:"FF6F00",ambera100:"FFE57F",ambera200:"FFD740",ambera400:"FFC400",ambera700:"FFAB00",orange50:"FFF3E0",orange100:"FFE0B2",orange200:"FFCC80",orange300:"FFB74D",orange400:"FFA726",orange500:"FF9800",orange600:"FB8C00",orange700:"F57C00",orange800:"EF6C00",orange900:"E65100",orangea100:"FFD180",orangea200:"FFAB40",orangea400:"FF9100",orangea700:"FF6D00",deeporange50:"FBE9E7",deeporange100:"FFCCBC",deeporange200:"FFAB91",deeporange300:"FF8A65",deeporange400:"FF7043",deeporange500:"FF5722",deeporange600:"F4511E",deeporange700:"E64A19",deeporange800:"D84315",deeporange900:"BF360C",deeporangea100:"FF9E80",deeporangea200:"FF6E40",deeporangea400:"FF3D00",deeporangea700:"DD2C00",brown50:"EFEBE9",brown100:"D7CCC8",brown200:"BCAAA4",brown300:"A1887F",brown400:"8D6E63",brown500:"795548",brown600:"6D4C41",brown700:"5D4037",brown800:"4E342E",brown900:"3E2723"},errorReporting:1,modifier:!1,helper:(document.addEventListener("keydown",e=>{p.modifier=e}),void document.addEventListener("keyup",()=>{p.modifier=!1})),color(e){let t,n,o,r,a,i,s,l,c,d=e.toLowerCase(),p={};const u=/^rgba?\(([0-9]{1,3}),([0-9]{1,3}),([0-9]{1,3}),?(0|1|0\.[0-9]{1,2}|\.[0-9]{1,2})?\)$/gi,f=/^hsla?\(([0-9]{1,3}),([0-9]{1,3}%),([0-9]{1,3}%),?(0|1|0\.[0-9]{1,2}|\.[0-9]{1,2})?\)$/gi,h=this.colorNames;return h[d]&&(d=h[d]),null!==d.match(/^#?([0-9a-f]{3}|[0-9a-f]{6})$/gi)?((d=d.replace("#","")).length%2==1?(t=String(d.substr(0,1))+d.substr(0,1),n=String(d.substr(1,1))+d.substr(1,1),o=String(d.substr(2,1))+d.substr(2,1),p.rgb={r:parseInt(t,16),g:parseInt(n,16),b:parseInt(o,16)},p.hex=`#${t}${n}${o}`):(p.rgb={r:parseInt(d.substr(0,2),16),g:parseInt(d.substr(2,2),16),b:parseInt(d.substr(4,2),16)},p.hex="#"+d),c=this.rgbToHsl(p.rgb.r,p.rgb.g,p.rgb.b),p.hsl=c,p.rgb.css=`rgb(${p.rgb.r},${p.rgb.g},${p.rgb.b})`):d.match(u)?(s=u.exec(d),p.rgb={css:d,r:s[1],g:s[2],b:s[3]},p.hex=this.rgbToHex(s[1],s[2],s[3]),c=this.rgbToHsl(s[1],s[2],s[3]),p.hsl=c):d.match(f)?(r=(s=f.exec(d))[1]/360,a=s[2].substr(0,s[2].length-1)/100,i=s[3].substr(0,s[3].length-1)/100,l=this.hslToRgb(r,a,i),p.rgb={css:`rgb(${l[0]},${l[1]},${l[2]})`,r:l[0],g:l[1],b:l[2]},p.hex=this.rgbToHex(p.rgb.r,p.rgb.g,p.rgb.b),p.hsl={css:`hsl(${s[1]},${s[2]},${s[3]})`,h:s[1],s:s[2],l:s[3]}):(p.hex="#f5f5f5",p.rgb={css:"rgb(245,245,245)",r:245,g:245,b:245},p.hsl={css:"hsl(0,0%,96%)",h:0,s:"0%",l:"96%"}),p},calcColors(e){const t=this.colorBrightnessThreshold,n=this.color(e),o=this.lighten(e,this.colorFilledLight),r=this.darken(e,this.colorFilled),a=this.perceivedBrightness(e)<=t?"#ffffff":"#000000",i=this.perceivedBrightness(o)<=t?"#ffffff":"#000000",s=this.perceivedBrightness(r)<=t?"#ffffff":"#000000",l=this.lighten(e,this.colorFilledDark),c=this.perceivedBrightness(l)<=t?"#ffffff":"#000000";return[n.hsl.css,o,r,a,i,s,l,c]},darken(e,t){const n=this.color(e).hsl,o=parseFloat(n.l),r=Math.round(o-o*t)+"%";return`hsl(${n.h},${n.s},${r})`},lighten(e,t){const n=this.color(e).hsl,o=parseFloat(n.l),r=Math.round(o+(100-o)*t)+"%";return`hsl(${n.h},${n.s},${r})`},hslToRgb(e,t,n){let o,r,a;if(0===t)o=r=a=n;else{let i=(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e),s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=i(l,s,e+1/3),r=i(l,s,e),a=i(l,s,e-1/3)}return[Math.round(255*o),Math.round(255*r),Math.round(255*a)]},rgbToHsl(e,t,n){e/=255,t/=255,n/=255;let o,r,a=Math.max(e,t,n),i=Math.min(e,t,n),s=(a+i)/2;if(a===i)o=r=0;else{let l=a-i;switch(r=s>.5?l/(2-a-i):l/(a+i),a){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}o/=6}return{css:"hsl("+(o=Math.round(360*o))+","+(r=Math.round(100*r)+"%")+","+(s=Math.round(100*s)+"%")+")",h:o,s:r,l:s}},rgbToHex(e,t,n){let o=Number(e).toString(16),r=Number(t).toString(16),a=Number(n).toString(16);return 1===o.length&&(o="0"+o),1===r.length&&(r="0"+r),1===a.length&&(a="0"+a),`#${o}${r}${a}`},perceivedBrightness(e){const t=this.color(e).rgb;return t.r/255*.2126+t.g/255*.7152+t.b/255*.0722},pOposition(e){let t={},n=e.trim().split(/\s+/),o=n.filter(e=>e.match(/^(down|right|up|left)$/i));o.length&&(t.autoposition=o[0],n.splice(n.indexOf(o[0]),1));let r=n.filter(e=>e.match(/^(left-|right-)(top|center|bottom)$|(^center-)(top|bottom)$|(^center$)/i));r.length?(t.my=r[0],t.at=r[1]||r[0],n.splice(n.indexOf(r[0]),1),r[1]&&n.splice(n.indexOf(r[1]),1)):(t.my="center",t.at="center");let a=n.filter(e=>e.match(/^[+-]?\d*\.?\d+[a-z%]*$/i));return a.length&&(t.offsetX=a[0].match(/^[+-]?\d*\.?\d+$/i)?a[0]+"px":a[0],a[1]?t.offsetY=a[1].match(/^[+-]?\d*\.?\d+$/i)?a[1]+"px":a[1]:t.offsetY=t.offsetX,n.splice(n.indexOf(a[0]),1),a[1]&&n.splice(n.indexOf(a[1]),1)),n.length&&(t.of=n.join(" ")),t},position(e,t){if(!t)return e.style.opacity=1,e;t="string"==typeof t?Object.assign({},this.defaults.position,this.pOposition(t)):Object.assign({},this.defaults.position,t),["my","at","of"].forEach(n=>{"function"==typeof t[n]&&(t[n]=t[n].call(e,e))}),"window"===e.options.container&&(e.style.position="fixed"),"string"==typeof e?e=document.querySelector(e):Object.getPrototypeOf(e).jquery&&(e=e[0]);const n="window"===e.options.container?"window":e.parentElement,o=e.getBoundingClientRect(),r=e.parentElement.getBoundingClientRect(),a="window"===n?{left:0,top:0,width:document.documentElement.clientWidth,height:window.innerHeight}:{width:r.width,height:r.height,left:r.left,top:r.top},i="window"===n?{x:1,y:1}:{x:a.width/n.offsetWidth,y:a.height/n.offsetHeight},s="window"===n?{borderTopWidth:"0px",borderRightWidth:"0px",borderBottomWidth:"0px",borderLeftWidth:"0px"}:window.getComputedStyle(n);let l;a.width-=(parseFloat(s.borderLeftWidth)+parseFloat(s.borderRightWidth))*i.x,a.height-=(parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth))*i.y,l=t.of?"string"==typeof t.of?"window"===t.of?{borderTopWidth:"0px",borderRightWidth:"0px",borderBottomWidth:"0px",borderLeftWidth:"0px"}:document.querySelector(t.of).getBoundingClientRect():Object.getPrototypeOf(t.of).jquery?t.of[0].getBoundingClientRect():t.of.getBoundingClientRect():a;let c=this.getScrollbarWidth(document.body),d=this.getScrollbarWidth(e.parentElement),p="0px";t.my.startsWith("left-")?t.at.startsWith("left-")?p=t.of?l.left-a.left-parseFloat(s.borderLeftWidth)+"px":"0px":t.at.startsWith("center")?p=t.of?l.left-a.left-parseFloat(s.borderLeftWidth)+l.width/2+"px":a.width/2+"px":t.at.startsWith("right-")&&(p=t.of?l.left-a.left-parseFloat(s.borderLeftWidth)+l.width+"px":a.width+"px"):t.my.startsWith("center")?t.at.startsWith("left-")?p=t.of?l.left-a.left-parseFloat(s.borderLeftWidth)-o.width/2+"px":-o.width/2+"px":t.at.startsWith("center")?p=t.of?l.left-a.left-parseFloat(s.borderLeftWidth)-(o.width-l.width)/2+"px":a.width/2-o.width/2+"px":t.at.startsWith("right-")&&(p=t.of?l.left-a.left-parseFloat(s.borderLeftWidth)+(l.width-o.width/2)+"px":a.width-o.width/2+"px"):t.my.startsWith("right-")&&(t.at.startsWith("left-")?p=t.of?l.left-a.left-parseFloat(s.borderLeftWidth)-o.width+"px":-o.width+"px":t.at.startsWith("center")?p=t.of?l.left-a.left-parseFloat(s.borderLeftWidth)-o.width+l.width/2+"px":a.width/2-o.width+"px":t.at.startsWith("right-")&&(p=t.of?l.left-a.left-parseFloat(s.borderLeftWidth)+l.width-o.width+"px":a.width-o.width+"px","window"!==n&&(p=parseFloat(p)-d.y+"px")));let u="0px";t.my.endsWith("-top")?t.at.endsWith("-top")?u=t.of?l.top-a.top-parseFloat(s.borderTopWidth)+"px":"0px":t.at.endsWith("center")?u=t.of?l.top-a.top-parseFloat(s.borderTopWidth)+l.height/2+"px":a.height/2+"px":t.at.endsWith("-bottom")&&(u=t.of?l.top-a.top-parseFloat(s.borderTopWidth)+l.height+"px":a.height+"px"):t.my.endsWith("center")?t.at.endsWith("-top")?u=t.of?l.top-a.top-parseFloat(s.borderTopWidth)-o.height/2+"px":-o.height/2+"px":t.at.endsWith("center")?u=t.of?l.top-a.top-parseFloat(s.borderTopWidth)-o.height/2+l.height/2+"px":a.height/2-o.height/2+"px":t.at.endsWith("-bottom")&&(u=t.of?l.top-a.top-parseFloat(s.borderTopWidth)-o.height/2+l.height+"px":a.height-o.height/2+"px"):t.my.endsWith("-bottom")&&(t.at.endsWith("-top")?u=t.of?l.top-a.top-parseFloat(s.borderTopWidth)-o.height+"px":-o.height+"px":t.at.endsWith("center")?u=t.of?l.top-a.top-parseFloat(s.borderTopWidth)-o.height+l.height/2+"px":a.height/2-o.height+"px":t.at.endsWith("-bottom")&&(u=t.of?l.top-a.top-parseFloat(s.borderTopWidth)-o.height+l.height+"px":a.height-o.height+"px",u="window"!==n?parseFloat(u)-d.x+"px":parseFloat(u)-c.x+"px")),e.style.left=1===i.x?p:parseFloat(p)/i.x+"px",e.style.top=1===i.y?u:parseFloat(u)/i.y+"px";let f=getComputedStyle(e),h={left:f.left,top:f.top};return t.autoposition&&t.my===t.at&&["left-top","center-top","right-top","left-bottom","center-bottom","right-bottom"].indexOf(t.my)>=0&&(h=this.applyPositionAutopos(e,h,t)),(t.offsetX||t.offsetY)&&(h=this.applyPositionOffset(e,h,t)),(t.minLeft||t.minTop||t.maxLeft||t.maxTop)&&(h=this.applyPositionMinMax(e,h,t)),t.modify&&(h=this.applyPositionModify(e,h,t)),"number"==typeof e.options.opacity?e.style.opacity=e.options.opacity:e.style.opacity=1,e},applyPositionAutopos(e,t,n){const o=`${n.my}-${n.autoposition.toLowerCase()}`;e.classList.add(o);const r=Array.prototype.slice.call(document.querySelectorAll("."+o)),a=r.indexOf(e);if(r.length>1){switch(n.autoposition){case"down":r.forEach((e,n)=>{n>0&&n<=a&&(t.top=parseFloat(t.top)+r[--n].getBoundingClientRect().height+p.autopositionSpacing+"px")});break;case"up":r.forEach((e,n)=>{n>0&&n<=a&&(t.top=parseFloat(t.top)-r[--n].getBoundingClientRect().height-p.autopositionSpacing+"px")});break;case"right":r.forEach((e,n)=>{n>0&&n<=a&&(t.left=parseFloat(t.left)+r[--n].getBoundingClientRect().width+p.autopositionSpacing+"px")});break;case"left":r.forEach((e,n)=>{n>0&&n<=a&&(t.left=parseFloat(t.left)-r[--n].getBoundingClientRect().width-p.autopositionSpacing+"px")})}e.style.left=t.left,e.style.top=t.top}return{left:t.left,top:t.top}},applyPositionOffset(e,t,n){["offsetX","offsetY"].forEach(e=>{n[e]?("function"==typeof n[e]&&(n[e]=n[e].call(t,t,n)),!1===isNaN(n[e])&&(n[e]=n[e]+"px")):n[e]="0px"}),e.style.left=`calc(${e.style.left} + ${n.offsetX})`,e.style.top=`calc(${e.style.top} + ${n.offsetY})`;const o=getComputedStyle(e);return{left:o.left,top:o.top}},applyPositionMinMax(e,t,n){if(["minLeft","minTop","maxLeft","maxTop"].forEach(e=>{n[e]&&("function"==typeof n[e]&&(n[e]=n[e].call(t,t,n)),(Number.isInteger(n[e])||n[e].match(/^\d+$/))&&(n[e]=n[e]+"px"))}),n.minLeft){e.style.left=n.minLeft;let o=getComputedStyle(e).left;parseFloat(o)<parseFloat(t.left)?e.style.left=t.left:t.left=o}if(n.minTop){e.style.top=n.minTop;let o=getComputedStyle(e).top;parseFloat(o)<parseFloat(t.top)?e.style.top=t.top:t.top=o}if(n.maxLeft){e.style.left=n.maxLeft;let o=getComputedStyle(e).left;parseFloat(o)>parseFloat(t.left)?e.style.left=t.left:t.left=o}if(n.maxTop){e.style.top=n.maxTop;let o=getComputedStyle(e).top;parseFloat(o)>parseFloat(t.top)?e.style.top=t.top:t.top=o}const o=getComputedStyle(e);return{left:o.left,top:o.top}},applyPositionModify(e,t,n){if(n.modify&&"function"==typeof n.modify){const o=n.modify.call(t,t,n);e.style.left=Number.isInteger(o.left)||o.left.match(/^\d+$/)?o.left+"px":o.left,e.style.top=Number.isInteger(o.top)||o.top.match(/^\d+$/)?o.top+"px":o.top}const o=getComputedStyle(e);return{left:o.left,top:o.top}},autopositionRemaining(e){let t,n=e.options.container;["left-top-down","left-top-right","center-top-down","right-top-down","right-top-left","left-bottom-up","left-bottom-right","center-bottom-up","right-bottom-up","right-bottom-left"].forEach(n=>{e.classList.contains(n)&&(t=n)}),t&&("window"===n?document.body:"string"==typeof n?document.querySelector(n):n).querySelectorAll("."+t).forEach(e=>{e.reposition()})},addScript(e,t="application/javascript",n){if(!document.querySelector(`script[src="${e}"]`)){const o=document.createElement("script");n&&(o.onload=n),o.src=e,o.type=t,document.head.appendChild(o)}},ajax(e,t){let n,o,r=new XMLHttpRequest;const a={method:"GET",async:!0,user:"",pwd:"",done:function(){if(t){let e=p.strToHtml(this.responseText);n.urlSelector&&(e=e.querySelector(n.urlSelector)),t.contentRemove(),t.content.append(e)}},autoresize:!0,autoreposition:!0};if(t&&"string"==typeof e)n=Object.assign({},a,{url:e});else{if("object"!=typeof e||!e.url){if(this.errorReporting){let e="XMLHttpRequest seems to miss the <mark>url</mark> parameter!";p.errorpanel(e)}return}(n=Object.assign({},a,e)).url=e.url,!1===n.async&&(n.timeout=0,n.withCredentials&&(n.withCredentials=void 0),n.responseType&&(n.responseType=void 0))}o=n.url.trim().split(/\s+/),n.url=encodeURI(o[0]),o.length>1&&(o.shift(),n.urlSelector=o.join(" ")),r.onreadystatechange=()=>{4===r.readyState&&(200===r.status?t?n.done.call(r,r,t):n.done.call(r,r):n.fail&&(t?n.fail.call(r,r,t):n.fail.call(r,r)),n.always&&(t?n.always.call(r,r,t):n.always.call(r,r)),t&&(n.autoresize||n.autoreposition)&&p.ajaxAutoresizeAutoreposition(t,n),p.ajaxAlwaysCallbacks.length&&p.ajaxAlwaysCallbacks.forEach(e=>{t?e.call(r,r,t):e.call(r,r)}))},r.open(n.method,n.url,n.async,n.user,n.pwd),r.timeout=n.timeout||0,n.withCredentials&&(r.withCredentials=n.withCredentials),n.responseType&&(r.responseType=n.responseType),n.beforeSend&&(t?n.beforeSend.call(r,r,t):n.beforeSend.call(r,r)),n.data?r.send(n.data):r.send(null)},ajaxAutoresizeAutoreposition(e,t){const n=e.options.contentSize;if("string"==typeof n&&n.match(/auto/i)){const o=n.split(" "),r=Object.assign({},{width:o[0],height:o[1]});t.autoresize&&e.resize(r),e.classList.contains("jsPanel-contextmenu")||t.autoreposition&&e.reposition()}else if("object"==typeof n&&("auto"===n.width||"auto"===n.height)){const o=Object.assign({},n);t.autoresize&&e.resize(o),e.classList.contains("jsPanel-contextmenu")||t.autoreposition&&e.reposition()}},createPanelTemplate(e=!0){const t=document.createElement("div");return t.className="jsPanel",t.style.left="0",t.style.top="0",e&&["close","maximize","normalize","minimize","smallify"].forEach(e=>{t.setAttribute("data-btn"+e,"enabled")}),t.innerHTML=`<div class="jsPanel-hdr">\n                                <div class="jsPanel-headerbar">\n                                    <div class="jsPanel-headerlogo"></div>\n                                    <div class="jsPanel-titlebar">\n                                        <div class="jsPanel-title"></div>\n                                    </div>\n                                    <div class="jsPanel-controlbar">\n                                        <button type="button" class="jsPanel-btn jsPanel-btn-smallify"  aria-label="Smallify">${this.icons.smallify}</button>\n                                        <button type="button" class="jsPanel-btn jsPanel-btn-minimize"  aria-label="Minimize">${this.icons.minimize}</button>\n                                        <button type="button" class="jsPanel-btn jsPanel-btn-normalize" aria-label="Normalize">${this.icons.normalize}</button>\n                                        <button type="button" class="jsPanel-btn jsPanel-btn-maximize"  aria-label="Maximize">${this.icons.maximize}</button>\n                                        <button type="button" class="jsPanel-btn jsPanel-btn-close"     aria-label="Close">${this.icons.close}</button>\n                                    </div>\n                                </div>\n                                <div class="jsPanel-hdr-toolbar"></div>\n                            </div>\n                            <div class="jsPanel-progressbar">\n                                <div class="jsPanel-progressbar-slider"></div>\n                            </div>\n                            <div class="jsPanel-content"></div>\n                            <div class="jsPanel-minimized-box"></div>\n                            <div class="jsPanel-ftr"></div>`,t},createMinimizedTemplate(){const e=document.createElement("div");return e.className="jsPanel-replacement",e.innerHTML=`<div class="jsPanel-hdr">\n                                <div class="jsPanel-headerbar">\n                                    <div class="jsPanel-headerlogo"></div>\n                                    <div class="jsPanel-titlebar">\n                                        <div class="jsPanel-title"></div>\n                                    </div>\n                                    <div class="jsPanel-controlbar">\n                                        <button type="button" class="jsPanel-btn jsPanel-btn-sm jsPanel-btn-normalize" aria-label="Normalize">${this.icons.normalize}</button>\n                                        <button type="button" class="jsPanel-btn jsPanel-btn-sm jsPanel-btn-maximize"  aria-label="Maximize">${this.icons.maximize}</button>\n                                        <button type="button" class="jsPanel-btn jsPanel-btn-sm jsPanel-btn-close"     aria-label="Close">${this.icons.close}</button>\n                                    </div>\n                                </div>\n                            </div>`,e},createSnapArea(e,t,n){const o=document.createElement("div"),r=e.parentElement;o.className="jsPanel-snap-area jsPanel-snap-area-"+t,"lt"===t||"rt"===t||"rb"===t||"lb"===t?(o.style.width=n+"px",o.style.height=n+"px"):"ct"===t||"cb"===t?o.style.height=n+"px":"lc"!==t&&"rc"!==t||(o.style.width=n+"px"),r!==document.body&&(o.style.position="absolute"),document.querySelector(".jsPanel-snap-area.jsPanel-snap-area-"+t)||e.parentElement.appendChild(o)},emptyNode(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e},extend(e){if("[object Object]"===Object.prototype.toString.call(e))for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.extensions[t]=e[t])},fetch(e,t){let n;const o={bodyMethod:"text",autoresize:!0,autoreposition:!0,done:function(e,t){if(t){let n=p.strToHtml(e);t.contentRemove(),t.content.append(n)}}};if(t&&"string"==typeof e)n=Object.assign({},o,{resource:encodeURI(e)});else{if("object"!=typeof e||!e.resource){if(this.errorReporting){let e="Fetch Request seems to miss the <mark>resource</mark> parameter!";p.errorpanel(e)}return}(n=Object.assign({},o,e)).resource=encodeURI(e.resource)}const r=n.fetchInit||{};n.beforeSend&&(t?n.beforeSend.call(e,e,t):n.beforeSend.call(e,e)),fetch(n.resource,r).then(e=>{if(e.ok)return e[n.bodyMethod]()}).then(e=>{t?n.done.call(e,e,t):n.done.call(e,e),t&&(n.autoresize||n.autoreposition)&&p.ajaxAutoresizeAutoreposition(t,n)})},getPanels:(e=function(){return this.classList.contains("jsPanel-standard")})=>Array.prototype.slice.call(document.querySelectorAll(".jsPanel")).filter(t=>e.call(t,t)).sort((e,t)=>t.style.zIndex-e.style.zIndex),pOcontainer(e){if("window"===e)return document.body;if("string"==typeof e){let t=document.querySelectorAll(e);return!!(t.length&&t.length>0)&&t}return 1===e.nodeType?e:!!e.length&&e[0]},pOcontainment(e){let t=e;if("function"==typeof e&&(t=e()),"number"==typeof t)return[t,t,t,t];if(Array.isArray(t)){if(1===t.length)return[t[0],t[0],t[0],t[0]];if(2===t.length)return t.concat(t);3===t.length&&(t[3]=t[1])}return t},pOsize(e,t){let n=t||this.defaults.contentSize;const o=e.parentElement;if("string"==typeof n){const e=n.trim().split(" ");(n={}).width=e[0],2===e.length?n.height=e[1]:n.height=e[0]}else n.width&&!n.height?n.height=n.width:n.height&&!n.width&&(n.width=n.height);if(String(n.width).match(/^[0-9.]+$/gi))n.width+="px";else if("string"==typeof n.width&&n.width.endsWith("%"))if(o===document.body)n.width=window.innerWidth*(parseFloat(n.width)/100)+"px";else{const e=window.getComputedStyle(o),t=parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth);n.width=(parseFloat(e.width)-t)*(parseFloat(n.width)/100)+"px"}else"function"==typeof n.width&&(n.width=n.width.call(e,e),("number"==typeof n.width||"string"==typeof n.width&&n.width.match(/^[0-9.]+$/gi))&&(n.width+="px"));if(String(n.height).match(/^[0-9.]+$/gi))n.height+="px";else if("string"==typeof n.height&&n.height.endsWith("%"))if(o===document.body)n.height=window.innerHeight*(parseFloat(n.height)/100)+"px";else{const e=window.getComputedStyle(o),t=parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth);n.height=(parseFloat(e.height)-t)*(parseFloat(n.height)/100)+"px"}else"function"==typeof n.height&&(n.height=n.height.call(e,e),("number"==typeof n.height||"string"==typeof n.height&&n.height.match(/^[0-9.]+$/gi))&&(n.height+="px"));return n},pOborder(e){e=e.trim();const t=new Array(3),n=e.match(/\s*(none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset)\s*/gi),o=e.match(/\s*(thin|medium|thick)|(\d*\.?\d+[a-zA-Z]{2,4})\s*/gi);return n?(t[1]=n[0].trim(),e=e.replace(t[1],"")):t[1]="solid",o?(t[0]=o[0].trim(),e=e.replace(t[0],"")):t[0]="medium",t[2]=e.trim(),t},pOheaderControls(e){if("string"==typeof e){let t={},n=e.toLowerCase(),o=n.match(/xl|lg|md|sm|xs/),r=n.match(/closeonly|none/);return o&&(t.size=o[0]),r&&(t=Object.assign({},t,{maximize:"remove",normalize:"remove",minimize:"remove",smallify:"remove"}),"none"===r[0]&&(t.close="remove")),Object.assign({},this.defaults.headerControls,t)}return Object.assign({},this.defaults.headerControls,e)},processCallbacks(e,t,n="some",o,r){if("function"==typeof t&&(t=[t]),n)return t[n](t=>t.call(e,e,o,r));t.forEach(t=>{t.call(e,e,o,r)})},removeSnapAreas(){document.querySelectorAll(".jsPanel-snap-area").forEach(e=>{e.parentElement.removeChild(e)})},resetZi(){this.zi=((e=p.ziBase)=>{let t=e;return{next:()=>t++}})(),Array.prototype.slice.call(document.querySelectorAll(".jsPanel-standard")).sort((e,t)=>e.style.zIndex-t.style.zIndex).forEach(e=>{e.style.zIndex=p.zi.next()})},getScrollbarWidth(e=document.body){if(e===document.body)return{y:window.innerWidth-document.documentElement.clientWidth,x:window.innerHeight-document.documentElement.clientHeight};{let t=getComputedStyle(e);return{y:e.offsetWidth-e.clientWidth-parseFloat(t.borderRightWidth)-parseFloat(t.borderLeftWidth),x:e.offsetHeight-e.clientHeight-parseFloat(t.borderBottomWidth)-parseFloat(t.borderTopWidth)}}},remClass:(e,t)=>(t.trim().split(/\s+/).forEach(t=>e.classList.remove(t)),e),setClass:(e,t)=>(t.trim().split(/\s+/).forEach(t=>e.classList.add(t)),e),setStyles(e,t){for(let n in t)n in e.style?e.style[n]=t[n]:e.style.setProperty(n,t[n]);return e},setStyle(e,t){return this.setStyles.call(e,e,t)},strToHtml:e=>document.createRange().createContextualFragment(e),toggleClass:(e,t)=>(t.trim().split(/\s+/).forEach(t=>{e.classList.contains(t)?e.classList.remove(t):e.classList.add(t)}),e),errorpanel(e){this.create({paneltype:"error",dragit:!1,resizeit:!1,theme:{bgPanel:"white",bgContent:"white",colorHeader:"rebeccapurple",colorContent:"#333",border:"2px solid rebeccapurple"},borderRadius:".33rem",headerControls:"closeonly xs",headerTitle:"&#9888; jsPanel Error",contentSize:{width:"50%",height:"auto"},position:"center-top 0 5 down",animateIn:"jsPanelFadeIn",content:`<div class="jsPanel-error-content-separator"></div><p>${e}</p>`})},create(e={},t){p.zi||(p.zi=((e=p.ziBase)=>{let t=e;return{next:()=>t++}})()),e.config?delete(e=Object.assign({},this.defaults,e.config,e)).config:e=Object.assign({},this.defaults,e),e.id?"function"==typeof e.id&&(e.id=e.id()):e.id="jsPanel-"+(p.idCounter+=1);const n=document.getElementById(e.id);if(null!==n){if(n.classList.contains("jsPanel")&&n.front(),this.errorReporting){let t=`&#9664; COULD NOT CREATE NEW JSPANEL &#9658;<br>An element with the ID <mark>${e.id}</mark> already exists in the document.`;p.errorpanel(t)}return!1}let o=this.pOcontainer(e.container);if("object"==typeof o&&o.length&&o.length>0&&(o=o[0]),!o){if(this.errorReporting){let e="&#9664; COULD NOT CREATE NEW JSPANEL &#9658;<br>The container to append the panel to does not exist";p.errorpanel(e)}return!1}["onbeforeclose","onbeforemaximize","onbeforeminimize","onbeforenormalize","onbeforesmallify","onbeforeunsmallify","onclosed","onfronted","onmaximized","onminimized","onnormalized","onsmallified","onstatuschange","onunsmallified"].forEach(t=>{e[t]?"function"==typeof e[t]&&(e[t]=[e[t]]):e[t]=[]});const r=e.template?e.template:this.createPanelTemplate();r.options=e,r.closetimer=void 0,r.status="initialized",r.currentData={},r.header=r.querySelector(".jsPanel-hdr"),r.headerbar=r.header.querySelector(".jsPanel-headerbar"),r.titlebar=r.header.querySelector(".jsPanel-titlebar"),r.headerlogo=r.headerbar.querySelector(".jsPanel-headerlogo"),r.headertitle=r.headerbar.querySelector(".jsPanel-title"),r.controlbar=r.headerbar.querySelector(".jsPanel-controlbar"),r.headertoolbar=r.header.querySelector(".jsPanel-hdr-toolbar"),r.content=r.querySelector(".jsPanel-content"),r.footer=r.querySelector(".jsPanel-ftr"),r.snappableTo=!1,r.snapped=!1,r.droppableTo=!1,r.progressbar=r.autocloseProgressbar=r.querySelector(".jsPanel-progressbar");const a=new CustomEvent("jspanelloaded",{detail:e.id,cancelable:!0}),i=new CustomEvent("jspanelstatuschange",{detail:e.id,cancelable:!0}),s=new CustomEvent("jspanelbeforenormalize",{detail:e.id,cancelable:!0}),l=new CustomEvent("jspanelnormalized",{detail:e.id,cancelable:!0}),c=new CustomEvent("jspanelbeforemaximize",{detail:e.id,cancelable:!0}),d=new CustomEvent("jspanelmaximized",{detail:e.id,cancelable:!0}),u=new CustomEvent("jspanelbeforeminimize",{detail:e.id,cancelable:!0}),f=new CustomEvent("jspanelminimized",{detail:e.id,cancelable:!0}),h=new CustomEvent("jspanelbeforesmallify",{detail:e.id,cancelable:!0}),m=new CustomEvent("jspanelsmallified",{detail:e.id,cancelable:!0}),g=new CustomEvent("jspanelsmallifiedmax",{detail:e.id,cancelable:!0}),b=new CustomEvent("jspanelbeforeunsmallify",{detail:e.id,cancelable:!0}),y=new CustomEvent("jspanelfronted",{detail:e.id,cancelable:!0}),v=new CustomEvent("jspanelbeforeclose",{detail:e.id,cancelable:!0}),w=new CustomEvent("jspanelclosed",{detail:e.id,cancelable:!0}),x=new CustomEvent("jspanelcloseduser",{detail:e.id,cancelable:!0});[a,i,s,l,c,d,u,f,h,m,g,b,y,v].forEach(e=>{e.panel=r});const E=r.querySelector(".jsPanel-btn-close"),F=r.querySelector(".jsPanel-btn-maximize"),C=r.querySelector(".jsPanel-btn-normalize"),j=r.querySelector(".jsPanel-btn-smallify"),S=r.querySelector(".jsPanel-btn-minimize");E&&p.pointerup.forEach(e=>{E.addEventListener(e,e=>{if(e.preventDefault(),e.button&&e.button>0)return!1;r.close(null,!0)})}),F&&p.pointerup.forEach(e=>{F.addEventListener(e,e=>{if(e.preventDefault(),e.button&&e.button>0)return!1;r.maximize()})}),C&&p.pointerup.forEach(e=>{C.addEventListener(e,e=>{if(e.preventDefault(),e.button&&e.button>0)return!1;r.normalize()})}),j&&p.pointerup.forEach(e=>{j.addEventListener(e,e=>{if(e.preventDefault(),e.button&&e.button>0)return!1;"normalized"===r.status||"maximized"===r.status?r.smallify():"smallified"!==r.status&&"smallifiedmax"!==r.status||r.unsmallify()})}),S&&p.pointerup.forEach(e=>{S.addEventListener(e,e=>{if(e.preventDefault(),e.button&&e.button>0)return!1;r.minimize()})});let z=p.extensions;for(let p in z)Object.prototype.hasOwnProperty.call(z,p)&&(r[p]=z[p]);if(r.clearTheme=e=>(p.themes.forEach(e=>{["panel","jsPanel-theme-"+e,"panel-"+e,e+"-color"].forEach(e=>{r.classList.remove(e)}),r.header.classList.remove("jsPanel-theme-"+e)}),r.content.classList.remove("jsPanel-content-filled","jsPanel-content-filledlight"),r.header.classList.remove("jsPanel-hdr-light"),r.header.classList.remove("jsPanel-hdr-dark"),r.style.backgroundColor="",p.setStyle(r.headertoolbar,{boxShadow:"",width:"",marginLeft:"",borderTopColor:"transparent"}),p.setStyle(r.content,{background:"",borderTopColor:"transparent"}),r.header.style.background="",Array.prototype.slice.call(r.controlbar.querySelectorAll(".jsPanel-icon")).concat([r.headerlogo,r.headertitle,r.headertoolbar,r.content]).forEach(e=>{e.style.color=""}),e&&e.call(r,r),r),r.getThemeDetails=e=>{const t=e.toLowerCase(),n={color:!1,colors:!1,filling:!1},o=t.split("fill");if(n.color=o[0].trim().replace(/\s*/g,""),2===o.length)if(o[1].startsWith("edlight"))n.filling="filledlight";else if(o[1].startsWith("eddark"))n.filling="filleddark";else if(o[1].startsWith("ed"))n.filling="filled";else if(o[1].startsWith("color")){let e=o[1].split("color"),t=e[e.length-1].trim().replace(/\s*/g,"");p.colorNames[t]&&(t=p.colorNames[t]),t.match(/^([0-9a-f]{3}|[0-9a-f]{6})$/gi)&&(t="#"+t),n.filling=t}if(p.themes.some(e=>e===n.color.split(/\s/i)[0])){let e=n.color.split(/\s/i)[0],t=document.createElement("button");t.className=e+"-bg",document.body.appendChild(t),n.color=getComputedStyle(t).backgroundColor.replace(/\s+/gi,""),document.body.removeChild(t),t=void 0}else if(n.color.startsWith("bootstrap-")){let e=n.color.indexOf("-"),t=document.createElement("button");t.className="btn btn"+n.color.slice(e),document.body.appendChild(t),n.color=getComputedStyle(t).backgroundColor.replace(/\s+/gi,""),document.body.removeChild(t),t=void 0}else if(n.color.startsWith("mdb-")){let e,t=n.color.indexOf("-")+1,o=document.createElement("span");e=n.color.endsWith("-dark")?(e=n.color.slice(t)).replace("-dark","-color-dark"):n.color.slice(t)+"-color",o.className=e,document.body.appendChild(o),n.color=getComputedStyle(o).backgroundColor.replace(/\s+/gi,""),document.body.removeChild(o),o=void 0}return n.colors=p.calcColors(n.color),n},r.applyColorTheme=e=>{if(r.style.backgroundColor=e.colors[0],r.header.style.backgroundColor=e.colors[0],r.header.style.color=e.colors[3],[".jsPanel-headerlogo",".jsPanel-title",".jsPanel-hdr-toolbar"].forEach(t=>{r.querySelector(t).style.color=e.colors[3]}),r.querySelectorAll(".jsPanel-controlbar .jsPanel-btn").forEach(t=>{t.style.color=e.colors[3]}),"string"==typeof r.options.theme&&"filled"===e.filling&&(r.content.style.borderTop="#000000"===e.colors[3]?"1px solid rgba(0,0,0,0.15)":"1px solid rgba(255,255,255,0.15)"),"#000000"===e.colors[3]?r.header.classList.add("jsPanel-hdr-light"):r.header.classList.add("jsPanel-hdr-dark"),e.filling)switch(e.filling){case"filled":p.setStyle(r.content,{backgroundColor:e.colors[2],color:e.colors[3]});break;case"filledlight":r.content.style.backgroundColor=e.colors[1];break;case"filleddark":p.setStyle(r.content,{backgroundColor:e.colors[6],color:e.colors[7]});break;default:r.content.style.backgroundColor=e.filling,r.content.style.color=p.perceivedBrightness(e.filling)<=p.colorBrightnessThreshold?"#fff":"#000"}return r},r.applyCustomTheme=e=>{let t,n={bgPanel:"#fff",bgContent:"#fff",colorHeader:"#000",colorContent:"#000"},o=(t="object"==typeof e?Object.assign(n,e):n).bgPanel,a=t.bgContent,i=t.colorHeader,s=t.colorContent;if(p.colorNames[o]?r.style.background="#"+p.colorNames[o]:r.style.background=o,p.colorNames[i]&&(i="#"+p.colorNames[i]),[".jsPanel-headerlogo",".jsPanel-title",".jsPanel-hdr-toolbar"].forEach(e=>{r.querySelector(e).style.color=i}),r.querySelectorAll(".jsPanel-controlbar .jsPanel-btn").forEach(e=>{e.style.color=i}),p.colorNames[a]?r.content.style.background="#"+p.colorNames[a]:r.content.style.background=a,p.colorNames[s]?r.content.style.color="#"+p.colorNames[s]:r.content.style.color=s,p.perceivedBrightness(i)>p.colorBrightnessThreshold?r.header.classList.add("jsPanel-hdr-dark"):r.header.classList.add("jsPanel-hdr-light"),p.perceivedBrightness(s)>p.colorBrightnessThreshold?r.content.style.borderTop="1px solid rgba(255,255,255,0.15)":r.content.style.borderTop="1px solid rgba(0,0,0,0.15)",t.border){let e=t.border,n=e.lastIndexOf(" "),o=e.slice(++n);p.colorNames[o]&&(e=e.replace(o,"#"+p.colorNames[o])),r.style.border=e}return r},r.setBorder=e=>{let t=p.pOborder(e);return t[2].length?p.colorNames[t[2]]&&(t[2]="#"+p.colorNames[t[2]]):t[2]=r.style.backgroundColor,t=t.join(" "),r.style.border=t,r.options.border=t,r},r.setBorderRadius=e=>{"number"==typeof e&&(e+="px"),r.style.borderRadius=e;const t=getComputedStyle(r);return r.options.header?(r.header.style.borderTopLeftRadius=t.borderTopLeftRadius,r.header.style.borderTopRightRadius=t.borderTopRightRadius):(r.content.style.borderTopLeftRadius=t.borderTopLeftRadius,r.content.style.borderTopRightRadius=t.borderTopRightRadius),r.options.footerToolbar?(r.footer.style.borderBottomRightRadius=t.borderBottomRightRadius,r.footer.style.borderBottomLeftRadius=t.borderBottomLeftRadius):(r.content.style.borderBottomRightRadius=t.borderBottomRightRadius,r.content.style.borderBottomLeftRadius=t.borderBottomLeftRadius),r},r.setTheme=(t=e.theme,n)=>{let o;if("minimized"===r.status&&(o=!0,r.normalize()),r.clearTheme(),"object"==typeof t)e.border=void 0,r.applyCustomTheme(t);else{"none"===t&&(t="white");let e=r.getThemeDetails(t);r.applyColorTheme(e)}return o&&r.minimize(),n&&n.call(r,r),r},r.remove=(e,t,n)=>{r.parentElement.removeChild(r),document.getElementById(e)?n&&n.call(r,e,r):(r.removeMinimizedReplacement(),r.status="closed",t&&document.dispatchEvent(x),document.dispatchEvent(w),r.options.onclosed&&p.processCallbacks(r,r.options.onclosed,"every",t),p.autopositionRemaining(r),n&&n.call(e,e)),window.removeEventListener("resize",r.windowResizeHandler),document.removeEventListener("jspanelresize",r.parentResizeHandler)},r.close=(e,t)=>{if(r.closetimer&&window.clearInterval(r.closetimer),document.dispatchEvent(v),r.statusBefore=r.status,r.options.onbeforeclose&&r.options.onbeforeclose.length>0&&!p.processCallbacks(r,r.options.onbeforeclose,"some",r.status,t))return r;r.options.animateOut?(r.options.animateIn&&p.remClass(r,r.options.animateIn),p.setClass(r,r.options.animateOut),r.addEventListener("animationend",n=>{n.stopPropagation(),r.remove(r.id,t,e)})):r.remove(r.id,t,e)},r.maximize=(t,n)=>{if(r.statusBefore=r.status,e.onbeforemaximize&&e.onbeforemaximize.length>0&&!p.processCallbacks(r,e.onbeforemaximize,"some",r.statusBefore))return r;document.dispatchEvent(c);const o=r.parentElement,a=p.pOcontainment(e.maximizedMargin);return o===document.body?(r.style.width=document.documentElement.clientWidth-a[1]-a[3]+"px",r.style.height=document.documentElement.clientHeight-a[0]-a[2]+"px",r.style.left=a[3]+"px",r.style.top=a[0]+"px"):(r.style.width=o.clientWidth-a[1]-a[3]+"px",r.style.height=o.clientHeight-a[0]-a[2]+"px",r.style.left=a[3]+"px",r.style.top=a[0]+"px"),j.style.transform="unset",r.removeMinimizedReplacement(),r.status="maximized",r.setControls([".jsPanel-btn-maximize"]),n||r.front(),document.dispatchEvent(d),document.dispatchEvent(i),e.onstatuschange&&p.processCallbacks(r,e.onstatuschange,"every",r.statusBefore),t&&t.call(r,r,r.statusBefore),e.onmaximized&&p.processCallbacks(r,e.onmaximized,"every",r.statusBefore),r},r.minimize=t=>{if("minimized"===r.status)return r;if(r.statusBefore=r.status,e.onbeforeminimize&&e.onbeforeminimize.length>0&&!p.processCallbacks(r,e.onbeforeminimize,"some",r.statusBefore))return r;if(document.dispatchEvent(u),!document.getElementById("jsPanel-replacement-container")){const e=document.createElement("div");e.id="jsPanel-replacement-container",document.body.append(e)}if(r.style.left="-9999px",r.status="minimized",document.dispatchEvent(f),document.dispatchEvent(i),e.onstatuschange&&p.processCallbacks(r,e.onstatuschange,"every",r.statusBefore),e.minimizeTo){let t,n,o,a=r.createMinimizedReplacement();switch(e.minimizeTo){case"default":document.getElementById("jsPanel-replacement-container").append(a);break;case"parentpanel":(t=(o=(n=r.closest(".jsPanel-content").parentElement).querySelectorAll(".jsPanel-minimized-box"))[o.length-1]).append(a);break;case"parent":(t=(n=r.parentElement).querySelector(".jsPanel-minimized-container"))||((t=document.createElement("div")).className="jsPanel-minimized-container",n.append(t)),t.append(a);break;default:document.querySelector(e.minimizeTo).append(a)}}return t&&t.call(r,r,r.statusBefore),e.onminimized&&p.processCallbacks(r,e.onminimized,"every",r.statusBefore),r},r.normalize=t=>("normalized"===r.status||(r.statusBefore=r.status,e.onbeforenormalize&&e.onbeforenormalize.length>0&&!p.processCallbacks(r,e.onbeforenormalize,"some",r.statusBefore)||(document.dispatchEvent(s),r.style.width=r.currentData.width,r.style.height=r.currentData.height,r.snapped?r.snap(r.snapped,!0):(r.style.left=r.currentData.left,r.style.top=r.currentData.top),j.style.transform="unset",r.removeMinimizedReplacement(),r.status="normalized",r.setControls([".jsPanel-btn-normalize"]),r.front(),document.dispatchEvent(l),document.dispatchEvent(i),e.onstatuschange&&p.processCallbacks(r,e.onstatuschange,"every",r.statusBefore),t&&t.call(r,r,r.statusBefore),e.onnormalized&&p.processCallbacks(r,e.onnormalized,"every",r.statusBefore))),r),r.smallify=t=>{if("smallified"===r.status||"smallifiedmax"===r.status)return r;if(r.statusBefore=r.status,e.onbeforesmallify&&e.onbeforesmallify.length>0&&!p.processCallbacks(r,e.onbeforesmallify,"some",r.statusBefore))return r;document.dispatchEvent(h),r.style.overflow="hidden";const n=window.getComputedStyle(r),o=parseFloat(window.getComputedStyle(r.headerbar).height);r.style.height=parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)+o+"px",j.style.transform="rotate(180deg)","normalized"===r.status?(r.setControls([".jsPanel-btn-normalize"]),r.status="smallified",document.dispatchEvent(m),document.dispatchEvent(i),e.onstatuschange&&p.processCallbacks(r,e.onstatuschange,"every",r.statusBefore)):"maximized"===r.status&&(r.setControls([".jsPanel-btn-maximize"]),r.status="smallifiedmax",document.dispatchEvent(g),document.dispatchEvent(i),e.onstatuschange&&p.processCallbacks(r,e.onstatuschange,"every",r.statusBefore));const a=r.querySelectorAll(".jsPanel-minimized-box");return a[a.length-1].style.display="none",t&&t.call(r,r,r.statusBefore),e.onsmallified&&p.processCallbacks(r,e.onsmallified,"every",r.statusBefore),r},r.unsmallify=t=>{if(r.statusBefore=r.status,"smallified"===r.status||"smallifiedmax"===r.status){if(e.onbeforeunsmallify&&e.onbeforeunsmallify.length>0&&!p.processCallbacks(r,e.onbeforeunsmallify,"some",r.statusBefore))return r;document.dispatchEvent(b),r.style.overflow="visible",r.front(),"smallified"===r.status?(r.style.height=r.currentData.height,r.setControls([".jsPanel-btn-normalize"]),r.status="normalized",document.dispatchEvent(l),document.dispatchEvent(i),e.onstatuschange&&p.processCallbacks(r,e.onstatuschange,"every",r.statusBefore)):"smallifiedmax"===r.status?r.maximize():"minimized"===r.status&&r.normalize(),j.style.transform="rotate(0deg)";const n=r.querySelectorAll(".jsPanel-minimized-box");n[n.length-1].style.display="flex",t&&t.call(r,r,r.statusBefore),e.onunsmallified&&p.processCallbacks(r,e.onunsmallified,"every",r.statusBefore)}return r},r.front=(t,n=!0)=>{if("minimized"===r.status)"maximized"===r.statusBefore?r.maximize():r.normalize();else{const e=Array.prototype.slice.call(document.querySelectorAll(".jsPanel-standard")).map(e=>e.style.zIndex);Math.max(...e)>r.style.zIndex&&(r.style.zIndex=p.zi.next()),p.resetZi()}return document.dispatchEvent(y),t&&t.call(r,r),e.onfronted&&n&&p.processCallbacks(r,e.onfronted,"every",r.status),r},r.snap=(e,t=!1)=>{if(t||(r.currentData.beforeSnap={width:r.currentData.width,height:r.currentData.height}),e&&"function"==typeof e&&!t)e.call(r,r,r.snappableTo);else if(!1!==e){let e=[0,0];if(r.options.dragit.snap.containment&&r.options.dragit.containment){const t=p.pOcontainment(r.options.dragit.containment),n=r.snappableTo;n.startsWith("left")?e[0]=t[3]:n.startsWith("right")&&(e[0]=-t[1]),n.endsWith("top")?e[1]=t[0]:n.endsWith("bottom")&&(e[1]=-t[2])}r.reposition(`${r.snappableTo} ${e[0]} ${e[1]}`)}t||(r.snapped=r.snappableTo)},r.move=(e,t)=>{let n=r.overlaps(e,"paddingbox"),o=r.parentElement;return e.appendChild(r),r.options.container=e,r.style.left=n.left+"px",r.style.top=n.top+"px",r.saveCurrentDimensions(),r.saveCurrentPosition(),r.calcSizeFactors(),t&&t.call(r,r,e,o),r},r.closeChildpanels=e=>(r.getChildpanels().forEach(e=>e.close()),e&&e.call(r,r),r),r.getChildpanels=e=>{const t=r.content.querySelectorAll(".jsPanel");return e&&t.forEach((t,n,o)=>{e.call(t,t,n,o)}),t},r.isChildpanel=e=>{const t=r.closest(".jsPanel-content"),n=t?t.parentElement:null;return e&&e.call(r,r,n),!!t&&n},r.contentRemove=e=>(p.emptyNode(r.content),e&&e.call(r,r),r),r.createMinimizedReplacement=()=>{const t=p.createMinimizedTemplate(),n=window.getComputedStyle(r.headertitle).color,o=window.getComputedStyle(r),a=e.iconfont,i=t.querySelector(".jsPanel-controlbar");return"auto-show-hide"!==r.options.header?p.setStyle(t,{backgroundColor:o.backgroundColor,backgroundPositionX:o.backgroundPositionX,backgroundPositionY:o.backgroundPositionY,backgroundRepeat:o.backgroundRepeat,backgroundAttachment:o.backgroundAttachment,backgroundImage:o.backgroundImage,backgroundSize:o.backgroundSize,backgroundOrigin:o.backgroundOrigin,backgroundClip:o.backgroundClip}):t.style.backgroundColor=window.getComputedStyle(r.header).backgroundColor,t.id=r.id+"-min",t.querySelector(".jsPanel-headerbar").replaceChild(r.headerlogo.cloneNode(!0),t.querySelector(".jsPanel-headerlogo")),t.querySelector(".jsPanel-titlebar").replaceChild(r.headertitle.cloneNode(!0),t.querySelector(".jsPanel-title")),t.querySelector(".jsPanel-titlebar").setAttribute("title",r.headertitle.textContent),t.querySelector(".jsPanel-title").style.color=n,i.style.color=n,i.querySelectorAll("button").forEach(e=>{e.style.color=n}),["jsPanel-hdr-dark","jsPanel-hdr-light"].forEach(e=>{r.header.classList.contains(e)&&t.querySelector(".jsPanel-hdr").classList.add(e)}),r.setIconfont(a,t),"enabled"===r.dataset.btnnormalize?p.pointerup.forEach(e=>{t.querySelector(".jsPanel-btn-normalize").addEventListener(e,e=>{if(e.preventDefault(),e.button&&e.button>0)return!1;r.normalize()})}):i.querySelector(".jsPanel-btn-normalize").style.display="none","enabled"===r.dataset.btnmaximize?p.pointerup.forEach(e=>{t.querySelector(".jsPanel-btn-maximize").addEventListener(e,e=>{if(e.preventDefault(),e.button&&e.button>0)return!1;r.maximize()})}):i.querySelector(".jsPanel-btn-maximize").style.display="none","enabled"===r.dataset.btnclose?p.pointerup.forEach(e=>{t.querySelector(".jsPanel-btn-close").addEventListener(e,e=>{if(e.preventDefault(),e.button&&e.button>0)return!1;r.close(null,!0)})}):i.querySelector(".jsPanel-btn-close").style.display="none",t},r.removeMinimizedReplacement=()=>{const e=document.getElementById(r.id+"-min");e&&e.parentElement.removeChild(e)},r.drag=(e={})=>{let t,n,o;const a=new CustomEvent("jspaneldragstart",{detail:r.id}),i=new CustomEvent("jspaneldrag",{detail:r.id}),s=new CustomEvent("jspaneldragstop",{detail:r.id});[a,i,s].forEach(e=>{e.panel=r});const l=e=>{let t=e.split("-");return t.forEach((e,n)=>{t[n]=e.charAt(0).toUpperCase()+e.slice(1)}),"snap"+t.join("")};function c(e){null===e.relatedTarget&&p.pointermove.forEach(e=>{document.removeEventListener(e,n,!1),r.style.opacity=1})}let d=e.handles||p.defaults.dragit.handles,u=e.cursor||p.defaults.dragit.cursor;function f(e){if(p.pointermove.forEach(e=>{document.removeEventListener(e,n)}),p.removeSnapAreas(),t){if(r.style.opacity=1,t=void 0,o.snap){switch(r.snappableTo){case"left-top":r.snap(o.snap.snapLeftTop);break;case"center-top":r.snap(o.snap.snapCenterTop);break;case"right-top":r.snap(o.snap.snapRightTop);break;case"right-center":r.snap(o.snap.snapRightCenter);break;case"right-bottom":r.snap(o.snap.snapRightBottom);break;case"center-bottom":r.snap(o.snap.snapCenterBottom);break;case"left-bottom":r.snap(o.snap.snapLeftBottom);break;case"left-center":r.snap(o.snap.snapLeftCenter)}o.snap.callback&&r.snappableTo&&"function"==typeof o.snap.callback&&(o.snap.callback.call(r,r),o.snap.repositionOnSnap&&!1!==o.snap[l(r.snappableTo)]&&r.repositionOnSnap(r.snappableTo)),r.snappableTo&&o.snap.repositionOnSnap&&o.snap[l(r.snappableTo)]&&r.repositionOnSnap(r.snappableTo)}if(r.droppableTo&&r.droppableTo){let e=r.parentElement;r.move(r.droppableTo),o.drop.callback&&o.drop.callback.call(r,r,r.droppableTo,e)}if(document.dispatchEvent(s),o.stop.length){let t=window.getComputedStyle(r),n={left:parseFloat(t.left),top:parseFloat(t.top),width:parseFloat(t.width),height:parseFloat(t.height)};p.processCallbacks(r,o.stop,!1,n,e)}r.saveCurrentPosition(),r.calcSizeFactors()}r.controlbar.style.pointerEvents="inherit",r.content.style.pointerEvents="inherit",document.querySelectorAll("iframe").forEach(e=>{e.style.pointerEvents="auto"}),document.removeEventListener(e,f)}return r.querySelectorAll(d).forEach(s=>{s.style.touchAction="none",s.style.cursor=u,p.pointerdown.forEach(l=>{s.addEventListener(l,s=>{if(s.button&&s.button>0)return!1;if((o=Object.assign({},p.defaults.dragit,e)).disableOnMaximized&&"maximized"===r.status)return!1;if((o.containment||0===o.containment)&&(o.containment=p.pOcontainment(o.containment)),o.grid&&Array.isArray(o.grid)&&1===o.grid.length&&(o.grid[1]=o.grid[0]),o.snap&&("object"==typeof o.snap?o.snap=Object.assign({},p.defaultSnapConfig,o.snap):o.snap=p.defaultSnapConfig),s.target.closest(".jsPanel-ftr-btn"))return;r.controlbar.style.pointerEvents="none",r.content.style.pointerEvents="none",document.querySelectorAll("iframe").forEach(e=>{e.style.pointerEvents="none"});let l=window.getComputedStyle(r),d=parseFloat(l.left),u=parseFloat(l.top),f=parseFloat(l.width),h=parseFloat(l.height),m=s.touches?s.touches[0].clientX:s.clientX,g=s.touches?s.touches[0].clientY:s.clientY,b=r.parentElement,y=b.getBoundingClientRect(),v=window.getComputedStyle(b),w=r.getScaleFactor(),x=0,E=p.getScrollbarWidth(b);n=e=>{if(e.preventDefault(),!t){if(document.dispatchEvent(a),r.style.opacity=o.opacity,r.snapped&&o.snap.resizeToPreSnap&&r.currentData.beforeSnap){r.resize(r.currentData.beforeSnap.width+" "+r.currentData.beforeSnap.height),r.setControls([".jsPanel-btn-normalize"]);let e=r.getBoundingClientRect(),t=m-(e.left+e.width),n=e.width/2;t>-n&&(x=t+n)}if(r.front(),r.snapped=!1,"maximized"===r.status&&(r.setControls([".jsPanel-btn-normalize"]),r.status="normalized"),o.drop&&o.drop.dropZones){let e=o.drop.dropZones.map(e=>p.pOcontainer(e)),t=[];e.forEach((function(e){e.length?e.forEach((function(e){t.push(e)})):t.push(e)})),t=t.filter((function(e,t,n){return n.indexOf(e)===t})),o.drop.dropZones=t}o.start.length&&p.processCallbacks(r,o.start,!1,{left:d,top:u,width:f,height:h},e)}let n,s,l,c,F,C,j,S,z,P;t=1;let k,A=e.touches?e.touches[0].clientX:e.clientX,T=e.touches?e.touches[0].clientY:e.clientY,L=window.getComputedStyle(r);if(b===document.body){let e=r.getBoundingClientRect();z=window.innerWidth-parseInt(v.borderLeftWidth,10)-parseInt(v.borderRightWidth,10)-(e.left+e.width),P=window.innerHeight-parseInt(v.borderTopWidth,10)-parseInt(v.borderBottomWidth,10)-(e.top+e.height)}else z=parseInt(v.width,10)-parseInt(v.borderLeftWidth,10)-parseInt(v.borderRightWidth,10)-(parseInt(L.left,10)+parseInt(L.width,10)),P=parseInt(v.height,10)-parseInt(v.borderTopWidth,10)-parseInt(v.borderBottomWidth,10)-(parseInt(L.top,10)+parseInt(L.height,10));n=parseFloat(L.left),l=parseFloat(L.top),F=z,j=P,o.snap&&("panel"===o.snap.trigger?(s=n**2,c=l**2,C=F**2,S=j**2):"pointer"===o.snap.trigger&&("window"===r.options.container?(n=A,s=A**2,c=(l=T)**2,C=(F=window.innerWidth-A)**2,S=(j=window.innerHeight-T)**2):(n=(k=r.overlaps(b,"paddingbox",e)).pointer.left,l=k.pointer.top,F=k.pointer.right,j=k.pointer.bottom,s=k.pointer.left**2,c=k.pointer.top**2,C=k.pointer.right**2,S=k.pointer.bottom**2)));let B=Math.sqrt(s+c),O=Math.sqrt(s+S),R=Math.sqrt(C+c),W=Math.sqrt(C+S),D=Math.abs(n-F)/2,q=Math.abs(l-j)/2,M=Math.sqrt(s+q**2),I=Math.sqrt(c+D**2),N=Math.sqrt(C+q**2),H=Math.sqrt(S+D**2);if(window.getSelection().removeAllRanges(),document.dispatchEvent(i),o.axis&&"x"!==o.axis||(r.style.left=d+(A-m)/w.x+x+"px"),o.axis&&"y"!==o.axis||(r.style.top=u+(T-g)/w.y+"px"),o.grid){let e=o.grid,t=o.axis,n=e[0]*Math.round((d+(A-m))/e[0]),a=e[1]*Math.round((u+(T-g))/e[1]);t&&"x"!==t||(r.style.left=n+"px"),t&&"y"!==t||(r.style.top=a+"px")}if(o.containment||0===o.containment){let e,t,n=o.containment;if("window"===r.options.container)e=window.innerWidth-parseFloat(L.width)-n[1]-E.y,t=window.innerHeight-parseFloat(L.height)-n[2]-E.x;else{let o=parseFloat(v.borderLeftWidth)+parseFloat(v.borderRightWidth),r=parseFloat(v.borderTopWidth)+parseFloat(v.borderBottomWidth);e=y.width/w.x-parseFloat(L.width)-n[1]-o-E.y,t=y.height/w.y-parseFloat(L.height)-n[2]-r-E.x}parseFloat(r.style.left)<=n[3]&&(r.style.left=n[3]+"px"),parseFloat(r.style.top)<=n[0]&&(r.style.top=n[0]+"px"),parseFloat(r.style.left)>=e&&(r.style.left=e+"px"),parseFloat(r.style.top)>=t&&(r.style.top=t+"px")}if(o.drag.length){let t={left:n,top:l,right:F,bottom:j,width:parseFloat(L.width),height:parseFloat(L.height)};p.processCallbacks(r,o.drag,!1,t,e)}if(o.snap){let e=o.snap.sensitivity,t=b===document.body?window.innerWidth/8:y.width/8,a=b===document.body?window.innerHeight/8:y.height/8;r.snappableTo=!1,p.removeSnapAreas(),B<e?!1!==o.snap.snapLeftTop&&(o.snap.active&&"both"!==o.snap.active?"pointer"===o.snap.trigger&&o.snap.active&&"inside"===o.snap.active&&(k.pointer.left>0&&k.pointer.top>0?(r.snappableTo="left-top",p.createSnapArea(r,"lt",e)):(r.snappableTo=!1,p.removeSnapAreas())):(r.snappableTo="left-top",p.createSnapArea(r,"lt",e))):O<e?!1!==o.snap.snapLeftBottom&&(o.snap.active&&"both"!==o.snap.active?"pointer"===o.snap.trigger&&o.snap.active&&"inside"===o.snap.active&&(k.pointer.left>0&&k.pointer.bottom>0?(r.snappableTo="left-bottom",p.createSnapArea(r,"lb",e)):(r.snappableTo=!1,p.removeSnapAreas())):(r.snappableTo="left-bottom",p.createSnapArea(r,"lb",e))):R<e?!1!==o.snap.snapRightTop&&(o.snap.active&&"both"!==o.snap.active?"pointer"===o.snap.trigger&&o.snap.active&&"inside"===o.snap.active&&(k.pointer.right>0&&k.pointer.top>0?(r.snappableTo="right-top",p.createSnapArea(r,"rt",e)):(r.snappableTo=!1,p.removeSnapAreas())):(r.snappableTo="right-top",p.createSnapArea(r,"rt",e))):W<e?!1!==o.snap.snapRightBottom&&(o.snap.active&&"both"!==o.snap.active?"pointer"===o.snap.trigger&&o.snap.active&&"inside"===o.snap.active&&(k.pointer.right>0&&k.pointer.bottom>0?(r.snappableTo="right-bottom",p.createSnapArea(r,"rb",e)):(r.snappableTo=!1,p.removeSnapAreas())):(r.snappableTo="right-bottom",p.createSnapArea(r,"rb",e))):l<e&&I<t?!1!==o.snap.snapCenterTop&&(o.snap.active&&"both"!==o.snap.active?"pointer"===o.snap.trigger&&o.snap.active&&"inside"===o.snap.active&&(k.pointer.top>0?(r.snappableTo="center-top",p.createSnapArea(r,"ct",e)):(r.snappableTo=!1,p.removeSnapAreas())):(r.snappableTo="center-top",p.createSnapArea(r,"ct",e))):n<e&&M<a?!1!==o.snap.snapLeftCenter&&(o.snap.active&&"both"!==o.snap.active?"pointer"===o.snap.trigger&&o.snap.active&&"inside"===o.snap.active&&(k.pointer.left>0?(r.snappableTo="left-center",p.createSnapArea(r,"lc",e)):(r.snappableTo=!1,p.removeSnapAreas())):(r.snappableTo="left-center",p.createSnapArea(r,"lc",e))):F<e&&N<a?!1!==o.snap.snapRightCenter&&(o.snap.active&&"both"!==o.snap.active?"pointer"===o.snap.trigger&&o.snap.active&&"inside"===o.snap.active&&(k.pointer.right>0?(r.snappableTo="right-center",p.createSnapArea(r,"rc",e)):(r.snappableTo=!1,p.removeSnapAreas())):(r.snappableTo="right-center",p.createSnapArea(r,"rc",e))):j<e&&H<t&&!1!==o.snap.snapCenterBottom&&(o.snap.active&&"both"!==o.snap.active?"pointer"===o.snap.trigger&&o.snap.active&&"inside"===o.snap.active&&(k.pointer.bottom>0?(r.snappableTo="center-bottom",p.createSnapArea(r,"cb",e)):(r.snappableTo=!1,p.removeSnapAreas())):(r.snappableTo="center-bottom",p.createSnapArea(r,"cb",e)))}if(o.drop&&o.drop.dropZones){let t=p.isIE?"msElementsFromPoint":"elementsFromPoint",n=document[t](e.clientX,e.clientY);Array.isArray(n)||(n=Array.prototype.slice.call(n)),o.drop.dropZones.forEach(e=>{n.includes(e)&&(r.droppableTo=e)}),n.includes(r.droppableTo)||(r.droppableTo=!1)}},p.pointermove.forEach(e=>{document.addEventListener(e,n)}),window.addEventListener("mouseout",c,!1)})}),p.pointerup.forEach(e=>{document.addEventListener(e,f),window.removeEventListener("mouseout",c)}),e.disable&&(s.style.pointerEvents="none")}),r},r.dragit=t=>{const n=Object.assign({},p.defaults.dragit,e.dragit),o=r.querySelectorAll(n.handles);return"disable"===t?o.forEach(e=>{e.style.pointerEvents="none"}):o.forEach(e=>{e.style.pointerEvents="auto"}),r},r.sizeit=(e={})=>{const t=new CustomEvent("jspanelresizestart",{detail:r.id}),n=new CustomEvent("jspanelresize",{detail:r.id}),o=new CustomEvent("jspanelresizestop",{detail:r.id});[t,n,o].forEach(e=>{e.panel=r});let a,i,s,l,c,d,u={};u.handles=e.handles||p.defaults.resizeit.handles,u.handles.split(",").forEach(e=>{const t=document.createElement("DIV");t.className="jsPanel-resizeit-handle jsPanel-resizeit-"+e.trim(),r.append(t)});let f=!!e.aspectRatio&&e.aspectRatio;function h(e){null===e.relatedTarget&&p.pointermove.forEach(e=>{document.removeEventListener(e,a,!1)})}function m(e){if(p.pointermove.forEach(e=>{document.removeEventListener(e,a,!1)}),e.target.classList&&e.target.classList.contains("jsPanel-resizeit-handle")){let t,n,o=e.target.className;if(o.match(/jsPanel-resizeit-nw|jsPanel-resizeit-w|jsPanel-resizeit-sw/i)&&(t=!0),o.match(/jsPanel-resizeit-nw|jsPanel-resizeit-n|jsPanel-resizeit-ne/i)&&(n=!0),u.grid&&Array.isArray(u.grid)){1===u.grid.length&&(u.grid[1]=u.grid[0]);const e=parseFloat(r.style.width),o=parseFloat(r.style.height),a=e%u.grid[0],i=o%u.grid[1],s=parseFloat(r.style.left),l=parseFloat(r.style.top),c=s%u.grid[0],d=l%u.grid[1];a<u.grid[0]/2?r.style.width=e-a+"px":r.style.width=e+(u.grid[0]-a)+"px",i<u.grid[1]/2?r.style.height=o-i+"px":r.style.height=o+(u.grid[1]-i)+"px",t&&(c<u.grid[0]/2?r.style.left=s-c+"px":r.style.left=s+(u.grid[0]-c)+"px"),n&&(d<u.grid[1]/2?r.style.top=l-d+"px":r.style.top=l+(u.grid[1]-d)+"px")}}if(i){r.content.style.pointerEvents="inherit",i=void 0,r.saveCurrentDimensions(),r.saveCurrentPosition(),r.calcSizeFactors();let t=r.controlbar.querySelector(".jsPanel-btn-smallify"),n=r.getBoundingClientRect();if(t&&n.height>d+5&&(t.style.transform="rotate(0deg)"),document.dispatchEvent(o),u.stop.length){let t=window.getComputedStyle(r),n={left:parseFloat(t.left),top:parseFloat(t.top),width:parseFloat(t.width),height:parseFloat(t.height)};p.processCallbacks(r,u.stop,!1,n,e)}}r.content.style.pointerEvents="inherit",document.querySelectorAll("iframe").forEach(e=>{e.style.pointerEvents="auto"}),u.aspectRatio=f,document.removeEventListener(e,m)}return r.querySelectorAll(".jsPanel-resizeit-handle").forEach(o=>{o.style.touchAction="none",p.pointerdown.forEach(f=>{o.addEventListener(f,o=>{if(o.preventDefault(),o.stopPropagation(),o.button&&o.button>0)return!1;let f=1;if(((u=Object.assign({},p.defaults.resizeit,e)).containment||0===u.containment)&&(u.containment=p.pOcontainment(u.containment)),u.aspectRatio&&!0===u.aspectRatio&&(u.aspectRatio="panel"),p.modifier){let e=p.modifier;e.altKey?u.aspectRatio="content":e.ctrlKey?u.aspectRatio="panel":e.shiftKey&&(u.aspectRatio=!1,f=2)}let m="function"==typeof u.maxWidth?u.maxWidth():u.maxWidth||1e4,g="function"==typeof u.maxHeight?u.maxHeight():u.maxHeight||1e4,b="function"==typeof u.minWidth?u.minWidth():u.minWidth,y="function"==typeof u.minHeight?u.minHeight():u.minHeight;r.content.style.pointerEvents="none",document.querySelectorAll("iframe").forEach(e=>{e.style.pointerEvents="none"});const v=r.parentElement,w=v.tagName.toLowerCase(),x=r.getBoundingClientRect(),E=v.getBoundingClientRect(),F=window.getComputedStyle(v,null),C=parseInt(F.borderLeftWidth,10),j=parseInt(F.borderTopWidth,10),S=F.getPropertyValue("position"),z=o.clientX||0===o.clientX||o.touches[0].clientX,P=o.clientY||0===o.clientY||o.touches[0].clientY,k=z/P,A=o.target.classList,T=r.getScaleFactor(),L=x.width/x.height,B=r.content.getBoundingClientRect(),O=B.width/B.height,R=r.header.getBoundingClientRect().height,W=r.footer.getBoundingClientRect().height||0;let D=x.left,q=x.top,M=1e4,I=1e4,N=1e4,H=1e4;c=x.width,d=x.height,"body"!==w&&(D=x.left-E.left+v.scrollLeft,q=x.top-E.top+v.scrollTop),"body"===w&&u.containment?(M=document.documentElement.clientWidth-x.left,N=document.documentElement.clientHeight-x.top,I=x.width+x.left,H=x.height+x.top):u.containment&&("static"===S?(M=E.width-x.left+C,N=E.height+E.top-x.top+j,I=x.width+(x.left-E.left)-C,H=x.height+(x.top-E.top)-j):(M=v.clientWidth-(x.left-E.left)/T.x+C,N=v.clientHeight-(x.top-E.top)/T.y+j,I=(x.width+x.left-E.left)/T.x-C,H=r.clientHeight+(x.top-E.top)/T.y-j)),u.containment&&(I-=u.containment[3],H-=u.containment[0],M-=u.containment[1],N-=u.containment[2]);const $=window.getComputedStyle(r),_=parseFloat($.width)-x.width,Y=parseFloat($.height)-x.height;let X=parseFloat($.left)-x.left,V=parseFloat($.top)-x.top;v!==document.body&&(X+=E.left,V+=E.top);let G=parseInt($.borderTopWidth,10),U=parseInt($.borderRightWidth,10),Z=parseInt($.borderBottomWidth,10),J=parseInt($.borderLeftWidth,10);a=e=>{e.preventDefault(),i||(document.dispatchEvent(t),u.start.length&&p.processCallbacks(r,u.start,!1,{width:c,height:d,left:D,top:q},e),r.front(),x.height>d+5&&(r.status="normalized",r.setControls([".jsPanel-btn-normalize"]))),i=1,document.dispatchEvent(n);let o,a=e.touches?e.touches[0].clientX:e.clientX,h=e.touches?e.touches[0].clientY:e.clientY;A.contains("jsPanel-resizeit-e")?((s=c+(a-z)*f/T.x+_)>=M&&(s=M),s>=m&&(s=m),s<=b&&(s=b),r.style.width=s+"px",2===f&&(r.style.left=D-(a-z)+"px"),"content"===u.aspectRatio?(r.style.height=(s-U-J)/O+R+W+G+Z+"px",u.containment&&(o=r.overlaps(v)).bottom<=u.containment[2]&&(r.style.height=N+"px",r.style.width=N*O+"px")):"panel"===u.aspectRatio&&(r.style.height=s/L+"px",u.containment&&(o=r.overlaps(v)).bottom<=u.containment[2]&&(r.style.height=N+"px",r.style.width=N*L+"px"))):A.contains("jsPanel-resizeit-s")?((l=d+(h-P)*f/T.y+Y)>=N&&(l=N),l>=g&&(l=g),l<=y&&(l=y),r.style.height=l+"px",2===f&&(r.style.top=q-(h-P)+"px"),"content"===u.aspectRatio?(r.style.width=(l-R-W-G-Z)*O+G+Z+"px",u.containment&&(o=r.overlaps(v)).right<=u.containment[1]&&(r.style.width=M+"px",r.style.height=M/O+"px")):"panel"===u.aspectRatio&&(r.style.width=l*L+"px",u.containment&&(o=r.overlaps(v)).right<=u.containment[1]&&(r.style.width=M+"px",r.style.height=M/L+"px"))):A.contains("jsPanel-resizeit-w")?((s=c+(z-a)*f/T.x+_)<=m&&s>=b&&s<=I&&(r.style.left=D+(a-z)/T.x+X+"px"),s>=I&&(s=I),s>=m&&(s=m),s<=b&&(s=b),r.style.width=s+"px","content"===u.aspectRatio?(r.style.height=(s-U-J)/O+R+W+G+Z+"px",u.containment&&(o=r.overlaps(v)).bottom<=u.containment[2]&&(r.style.height=N+"px",r.style.width=N*O+"px")):"panel"===u.aspectRatio&&(r.style.height=s/L+"px",u.containment&&(o=r.overlaps(v)).bottom<=u.containment[2]&&(r.style.height=N+"px",r.style.width=N*L+"px"))):A.contains("jsPanel-resizeit-n")?((l=d+(P-h)*f/T.y+Y)<=g&&l>=y&&l<=H&&(r.style.top=q+(h-P)/T.y+V+"px"),l>=H&&(l=H),l>=g&&(l=g),l<=y&&(l=y),r.style.height=l+"px","content"===u.aspectRatio?(r.style.width=(l-R-W-G-Z)*O+G+Z+"px",u.containment&&(o=r.overlaps(v)).right<=u.containment[1]&&(r.style.width=M+"px",r.style.height=M/O+"px")):"panel"===u.aspectRatio&&(r.style.width=l*L+"px",u.containment&&(o=r.overlaps(v)).right<=u.containment[1]&&(r.style.width=M+"px",r.style.height=M/L+"px"))):A.contains("jsPanel-resizeit-se")?((s=c+(a-z)*f/T.x+_)>=M&&(s=M),s>=m&&(s=m),s<=b&&(s=b),r.style.width=s+"px",2===f&&(r.style.left=D-(a-z)+"px"),u.aspectRatio&&(r.style.height=s/L+"px"),(l=d+(h-P)*f/T.y+Y)>=N&&(l=N),l>=g&&(l=g),l<=y&&(l=y),r.style.height=l+"px",2===f&&(r.style.top=q-(h-P)+"px"),"content"===u.aspectRatio?(r.style.width=(l-R-W-G-Z)*O+G+Z+"px",u.containment&&(o=r.overlaps(v)).right<=u.containment[1]&&(r.style.width=M+"px",r.style.height=M/O+"px")):"panel"===u.aspectRatio&&(r.style.width=l*L+"px",u.containment&&(o=r.overlaps(v)).right<=u.containment[1]&&(r.style.width=M+"px",r.style.height=M/L+"px"))):A.contains("jsPanel-resizeit-sw")?((l=d+(h-P)*f/T.y+Y)>=N&&(l=N),l>=g&&(l=g),l<=y&&(l=y),r.style.height=l+"px",2===f&&(r.style.top=q-(h-P)+"px"),u.aspectRatio&&(r.style.width=l*L+"px"),(s=c+(z-a)*f/T.x+_)<=m&&s>=b&&s<=I&&(r.style.left=D+(a-z)/T.x+X+"px"),s>=I&&(s=I),s>=m&&(s=m),s<=b&&(s=b),r.style.width=s+"px","content"===u.aspectRatio?(r.style.height=(s-U-J)/O+R+W+G+Z+"px",u.containment&&(o=r.overlaps(v)).bottom<=u.containment[2]&&(r.style.height=N+"px",r.style.width=N*O+"px")):"panel"===u.aspectRatio&&(r.style.height=s/L+"px",u.containment&&(o=r.overlaps(v)).bottom<=u.containment[2]&&(r.style.height=N+"px",r.style.width=N*L+"px"))):A.contains("jsPanel-resizeit-ne")?((s=c+(a-z)*f/T.x+_)>=M&&(s=M),s>=m&&(s=m),s<=b&&(s=b),r.style.width=s+"px",2===f&&(r.style.left=D-(a-z)+"px"),u.aspectRatio&&(r.style.height=s/L+"px"),(l=d+(P-h)*f/T.y+Y)<=g&&l>=y&&l<=H&&(r.style.top=q+(h-P)/T.y+V+"px"),l>=H&&(l=H),l>=g&&(l=g),l<=y&&(l=y),r.style.height=l+"px","content"===u.aspectRatio?(r.style.width=(l-R-W-G-Z)*O+G+Z+"px",u.containment&&(o=r.overlaps(v)).right<=u.containment[1]&&(r.style.width=M+"px",r.style.height=M/O+"px")):"panel"===u.aspectRatio&&(r.style.width=l*L+"px",u.containment&&(o=r.overlaps(v)).right<=u.containment[1]&&(r.style.width=M+"px",r.style.height=M/L+"px"))):A.contains("jsPanel-resizeit-nw")&&(u.aspectRatio&&A.contains("jsPanel-resizeit-nw")&&(h=(a=h*k)/k),(s=c+(z-a)*f/T.x+_)<=m&&s>=b&&s<=I&&(r.style.left=D+(a-z)/T.x+X+"px"),s>=I&&(s=I),s>=m&&(s=m),s<=b&&(s=b),r.style.width=s+"px",u.aspectRatio&&(r.style.height=s/L+"px"),(l=d+(P-h)*f/T.y+Y)<=g&&l>=y&&l<=H&&(r.style.top=q+(h-P)/T.y+V+"px"),l>=H&&(l=H),l>=g&&(l=g),l<=y&&(l=y),r.style.height=l+"px","content"===u.aspectRatio?r.style.width=(l-R-W-G-Z)*O+G+Z+"px":"panel"===u.aspectRatio&&(r.style.width=l*L+"px")),window.getSelection().removeAllRanges();const w=window.getComputedStyle(r),E={left:parseFloat(w.left),top:parseFloat(w.top),right:parseFloat(w.right),bottom:parseFloat(w.bottom),width:parseFloat(w.width),height:parseFloat(w.height)};u.resize.length&&p.processCallbacks(r,u.resize,!1,E,e)},p.pointermove.forEach(e=>{document.addEventListener(e,a,!1)}),window.addEventListener("mouseout",h,!1)})}),p.pointerup.forEach((function(e){document.addEventListener(e,m),window.removeEventListener("mouseout",h)})),e.disable&&(o.style.pointerEvents="none")}),r},r.resizeit=e=>{const t=r.querySelectorAll(".jsPanel-resizeit-handle");return"disable"===e?t.forEach(e=>{e.style.pointerEvents="none"}):t.forEach(e=>{e.style.pointerEvents="auto"}),r},r.getScaleFactor=()=>{const e=r.getBoundingClientRect();return{x:e.width/r.offsetWidth,y:e.height/r.offsetHeight}},r.calcSizeFactors=()=>{const t=window.getComputedStyle(r);if("window"===e.container)r.hf=parseFloat(t.left)/(window.innerWidth-parseFloat(t.width)),r.vf=parseFloat(t.top)/(window.innerHeight-parseFloat(t.height));else if(r.parentElement){let e=r.parentElement.getBoundingClientRect();r.hf=parseFloat(t.left)/(e.width-parseFloat(t.width)),r.vf=parseFloat(t.top)/(e.height-parseFloat(t.height))}},r.saveCurrentDimensions=(e=!1)=>{const t=window.getComputedStyle(r);r.currentData.width=t.width,"normalized"===r.status&&(r.currentData.height=t.height),e&&(r.style.height=t.height)},r.saveCurrentPosition=()=>{const e=window.getComputedStyle(r);r.currentData.left=e.left,r.currentData.top=e.top},r.reposition=(...t)=>{let n,o=e.position,a=!0;return t.forEach(e=>{"string"==typeof e||"object"==typeof e?o=e:"boolean"==typeof e?a=e:"function"==typeof e&&(n=e)}),p.position(r,o),r.slaves&&r.slaves.size>0&&r.slaves.forEach(e=>{e.reposition()}),a&&r.saveCurrentPosition(),n&&n.call(r,r),r},r.repositionOnSnap=t=>{let n="0",o="0",a=p.pOcontainment(e.dragit.containment);if(e.dragit.snap.containment)switch(t){case"left-top":n=a[3],o=a[0];break;case"right-top":n=-a[1],o=a[0];break;case"right-bottom":n=-a[1],o=-a[2];break;case"left-bottom":n=a[3],o=-a[2];break;case"center-top":n=a[3]/2-a[1]/2,o=a[0];break;case"center-bottom":n=a[3]/2-a[1]/2,o=-a[2];break;case"left-center":n=a[3],o=a[0]/2-a[2]/2;break;case"right-center":n=-a[1],o=a[0]/2-a[2]/2}p.position(r,t),p.setStyle(r,{left:`calc(${r.style.left} + ${n}px)`,top:`calc(${r.style.top} + ${o}px)`})},r.overlaps=(e,t,n)=>{let o,a=r.getBoundingClientRect(),i=getComputedStyle(r.parentElement),s=r.getScaleFactor(),l={top:0,right:0,bottom:0,left:0},c=0,d=0,p=0,u=0;"window"!==r.options.container&&"paddingbox"===t&&(l.top=parseInt(i.borderTopWidth,10)*s.y,l.right=parseInt(i.borderRightWidth,10)*s.x,l.bottom=parseInt(i.borderBottomWidth,10)*s.y,l.left=parseInt(i.borderLeftWidth,10)*s.x),o="string"==typeof e?"window"===e?{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}:"parent"===e?r.parentElement.getBoundingClientRect():document.querySelector(e).getBoundingClientRect():e.getBoundingClientRect(),n&&(c=n.touches?n.touches[0].clientX:n.clientX,d=n.touches?n.touches[0].clientY:n.clientY,p=c-o.left,u=d-o.top);let f=a.left<o.right&&a.right>o.left,h=a.top<o.bottom&&a.bottom>o.top;return{overlaps:f&&h,top:a.top-o.top-l.top,right:o.right-a.right-l.right,bottom:o.bottom-a.bottom-l.bottom,left:a.left-o.left-l.left,parentBorderWidth:l,panelRect:a,referenceRect:o,pointer:{clientX:c,clientY:d,left:p-l.left,top:u-l.top,right:o.width-p-l.right,bottom:o.height-u-l.bottom}}},r.setSize=()=>{if(e.panelSize){const t=p.pOsize(r,e.panelSize);r.style.width=t.width,r.style.height=t.height}else if(e.contentSize){const t=p.pOsize(r,e.contentSize);r.content.style.width=t.width,r.content.style.height=t.height,r.style.width=t.width,r.content.style.width="100%"}return r},r.resize=(...e)=>{let t,n=window.getComputedStyle(r),o={width:n.width,height:n.height},a=!0;e.forEach(e=>{"string"==typeof e?o=e:"object"==typeof e?o=Object.assign(o,e):"boolean"==typeof e?a=e:"function"==typeof e&&(t=e)});let i=p.pOsize(r,o);r.style.width=i.width,r.style.height=i.height,r.slaves&&r.slaves.size>0&&r.slaves.forEach(e=>{e.reposition()}),a&&r.saveCurrentDimensions(),r.status="normalized";let s=r.controlbar.querySelector(".jsPanel-btn-smallify");return s&&(s.style.transform="rotate(0deg)"),t&&t.call(r,r),r.calcSizeFactors(),r},r.windowResizeHandler=t=>{if(t.target===window){let n,o,a=r.status,i=e.onwindowresize;"maximized"===a&&i?r.maximize(!1,!0):r.snapped&&"minimized"!==a?r.snap(r.snapped,!0):"normalized"===a||"smallified"===a||"maximized"===a?"function"==typeof i?i.call(r,t,r):(n=(window.innerWidth-r.offsetWidth)*r.hf,r.style.left=n<=0?0:n+"px",o=(window.innerHeight-r.offsetHeight)*r.vf,r.style.top=o<=0?0:o+"px"):"smallifiedmax"===a&&i&&r.maximize(!1,!0).smallify(),r.slaves&&r.slaves.size>0&&r.slaves.forEach(e=>{e.reposition()})}},r.setControls=(e,t)=>(r.header.querySelectorAll(".jsPanel-btn").forEach(e=>{const t=e.className.split("-"),n=t[t.length-1];"hidden"!==r.getAttribute("data-btn"+n)&&(e.style.display="block")}),e.forEach(e=>{const t=r.controlbar.querySelector(e);t&&(t.style.display="none")}),t&&t.call(r,r),r),r.setControlStatus=(e,t="enable",n)=>{const o=r.controlbar.querySelector(".jsPanel-btn-"+e);switch(t){case"disable":"removed"!==r.getAttribute("data-btn"+e)&&(r.setAttribute("data-btn"+e,"disabled"),o.style.pointerEvents="none",o.style.opacity=.4,o.style.cursor="default");break;case"hide":"removed"!==r.getAttribute("data-btn"+e)&&(r.setAttribute("data-btn"+e,"hidden"),o.style.display="none");break;case"show":"removed"!==r.getAttribute("data-btn"+e)&&(r.setAttribute("data-btn"+e,"enabled"),o.style.display="block",o.style.pointerEvents="auto",o.style.opacity=1,o.style.cursor="pointer");break;case"enable":"removed"!==r.getAttribute("data-btn"+e)&&("hidden"===r.getAttribute("data-btn"+e)&&(o.style.display="block"),r.setAttribute("data-btn"+e,"enabled"),o.style.pointerEvents="auto",o.style.opacity=1,o.style.cursor="pointer");break;case"remove":r.controlbar.removeChild(o),r.setAttribute("data-btn"+e,"removed")}return n&&n.call(r,r),r},r.setControlSize=e=>{const t=e.toLowerCase();r.controlbar.querySelectorAll(".jsPanel-btn").forEach(e=>{["jsPanel-btn-xl","jsPanel-btn-lg","jsPanel-btn-md","jsPanel-btn-sm","jsPanel-btn-xs"].forEach(t=>{e.classList.remove(t)}),e.classList.add("jsPanel-btn-"+t)}),"xl"===t?r.titlebar.style.fontSize="1.5rem":"lg"===t?r.titlebar.style.fontSize="1.25rem":"md"===t?r.titlebar.style.fontSize="1.05rem":"sm"===t?r.titlebar.style.fontSize=".9rem":"xs"===t&&(r.titlebar.style.fontSize=".8rem")},r.setHeaderControls=t=>{if(r.options.headerControls.add){let e=r.options.headerControls.add;Array.isArray(e)||(e=[e]),e.forEach(e=>{r.addControl(e)})}let n=[];r.controlbar.querySelectorAll(".jsPanel-btn").forEach(e=>{let t=e.className.match(/jsPanel-btn-[a-z0-9]{3,}/i)[0].substring(12);n.push(t)});const o=p.pOheaderControls(e.headerControls);return e.headerControls=o,n.forEach(e=>{o[e]&&r.setControlStatus(e,o[e])}),r.setControlSize(o.size),t&&t.call(r,r),r},r.setHeaderLogo=(e,t)=>{let n=[r.headerlogo],o=document.querySelector("#"+r.id+"-min");return o&&n.push(o.querySelector(".jsPanel-headerlogo")),"string"==typeof e?"<"!==e.substr(0,1)?n.forEach(t=>{p.emptyNode(t);let n=document.createElement("img");n.src=e,t.append(n)}):n.forEach(t=>{t.innerHTML=e}):n.forEach(t=>{p.emptyNode(t),t.append(e)}),r.headerlogo.childNodes.forEach(e=>{e.nodeName&&"IMG"===e.nodeName&&e.setAttribute("draggable","false")}),t&&t.call(r,r),r},r.setHeaderRemove=e=>(r.removeChild(r.header),r.content.classList.add("jsPanel-content-noheader"),["close","maximize","normalize","minimize","smallify"].forEach(e=>{r.setAttribute("data-btn"+e,"removed")}),e&&e.call(r,r),r),r.setHeaderTitle=(e,t)=>{let n=[r.headertitle],o=document.querySelector("#"+r.id+"-min");return o&&n.push(o.querySelector(".jsPanel-title")),"string"==typeof e?n.forEach(t=>{t.innerHTML=e}):"function"==typeof e?n.forEach(t=>{p.emptyNode(t),t.innerHTML=e()}):n.forEach(t=>{p.emptyNode(t),t.append(e)}),t&&t.call(r,r),r},r.setIconfont=(e,t=r,n)=>{if(e){let n,o;if("fa"===e||"far"===e||"fal"===e||"fas"===e||"fad"===e)n=[e+" fa-window-close",e+" fa-window-maximize",e+" fa-window-restore",e+" fa-window-minimize",e+" fa-chevron-up"];else if("material-icons"===e)n=[e,e,e,e,e,e],o=["close","fullscreen","fullscreen_exit","call_received","expand_less"];else if(Array.isArray(e))n=["custom-control-icon "+e[4],"custom-control-icon "+e[3],"custom-control-icon "+e[2],"custom-control-icon "+e[1],"custom-control-icon "+e[0]];else{if("bootstrap"!==e&&"glyphicon"!==e)return t;n=["glyphicon glyphicon-remove","glyphicon glyphicon-fullscreen","glyphicon glyphicon-resize-full","glyphicon glyphicon-minus","glyphicon glyphicon-chevron-up"]}t.querySelectorAll(".jsPanel-controlbar .jsPanel-btn").forEach(e=>{p.emptyNode(e).innerHTML="<span></span>"}),Array.prototype.slice.call(t.querySelectorAll(".jsPanel-controlbar .jsPanel-btn > span")).reverse().forEach((t,r)=>{t.className=n[r],"material-icons"===e&&(t.textContent=o[r])})}return n&&n.call(t,t),t},r.addToolbar=(e,t,n)=>{if("header"===e?e=r.headertoolbar:"footer"===e&&(e=r.footer),"string"==typeof t)e.innerHTML=t;else if(Array.isArray(t))t.forEach(t=>{"string"==typeof t?e.innerHTML+=t:e.append(t)});else if("function"==typeof t){let n=t.call(r,r);"string"==typeof n?e.innerHTML=n:e.append(n)}else e.append(t);return e.classList.add("active"),n&&n.call(r,r),r},r.addCloseControl=()=>{let e=document.createElement("button"),t=r.content.style.color;return e.classList.add("jsPanel-addCloseCtrl"),e.innerHTML=p.icons.close,e.style.color=t,r.options.rtl&&e.classList.add("rtl"),r.appendChild(e),p.pointerup.forEach(t=>{e.addEventListener(t,e=>{if(e.preventDefault(),e.button&&e.button>0)return!1;r.close(null,!0)})}),p.pointerdown.forEach(t=>{e.addEventListener(t,e=>{e.preventDefault()})}),r},r.addControl=t=>{if(!t.html)return r;t.position||(t.position=1);const n=r.controlbar.querySelectorAll(".jsPanel-btn").length;let o=document.createElement("button");o.innerHTML=t.html,o.className=`jsPanel-btn jsPanel-btn-${t.name} jsPanel-btn-${e.headerControls.size}`,o.style.color=r.header.style.color,t.position>n?r.controlbar.append(o):r.controlbar.insertBefore(o,r.querySelector(`.jsPanel-controlbar .jsPanel-btn:nth-child(${t.position})`));const a=t.ariaLabel||t.name;return a&&o.setAttribute("aria-label",a),p.pointerup.forEach(e=>{o.addEventListener(e,e=>{if(e.preventDefault(),e.button&&e.button>0)return!1;t.handler.call(r,r,o)})}),t.afterInsert&&t.afterInsert.call(o,o),r},r.setRtl=()=>{[r.header,r.content,r.footer].forEach(t=>{t.dir="rtl",e.rtl.lang&&(t.lang=e.rtl.lang)})},r.id=e.id,r.classList.add("jsPanel-"+e.paneltype),"standard"===e.paneltype&&(r.style.zIndex=this.zi.next()),o.append(r),r.front(!1,!1),r.setTheme(e.theme),e.boxShadow&&r.classList.add("jsPanel-depth-"+e.boxShadow),e.header){if(e.headerLogo&&r.setHeaderLogo(e.headerLogo),r.setIconfont(e.iconfont),r.setHeaderTitle(e.headerTitle),r.setHeaderControls(),p.isIE){let e=[r.headerbar,r.controlbar];switch(r.options.headerControls.size){case"md":e.forEach(e=>{e.style.height="34px"});break;case"xs":e.forEach(e=>{e.style.height="26px"});break;case"sm":e.forEach(e=>{e.style.height="30px"});break;case"lg":e.forEach(e=>{e.style.height="38px"});break;case"xl":e.forEach(e=>{e.style.height="42px"})}}if("auto-show-hide"===e.header){let t="jsPanel-depth-"+e.boxShadow;r.header.style.opacity=0,r.style.backgroundColor="transparent",this.remClass(r,t),this.setClass(r.content,t),r.header.addEventListener("mouseenter",()=>{r.header.style.opacity=1,p.setClass(r,t),p.remClass(r.content,t)}),r.header.addEventListener("mouseleave",()=>{r.header.style.opacity=0,p.remClass(r,t),p.setClass(r.content,t)})}}else r.setHeaderRemove(),e.addCloseControl&&r.addCloseControl();if(e.headerToolbar&&r.addToolbar(r.headertoolbar,e.headerToolbar),e.footerToolbar&&r.addToolbar(r.footer,e.footerToolbar),e.border&&r.setBorder(e.border),e.borderRadius&&r.setBorderRadius(e.borderRadius),e.content&&("function"==typeof e.content?e.content.call(r,r):"string"==typeof e.content?r.content.innerHTML=e.content:r.content.append(e.content)),e.contentAjax&&this.ajax(e.contentAjax,r),e.contentFetch&&this.fetch(e.contentFetch,r),e.contentOverflow){const t=e.contentOverflow.split(" ");1===t.length?r.content.style.overflow=t[0]:2===t.length&&(r.content.style.overflowX=t[0],r.content.style.overflowY=t[1])}if(e.autoclose){"number"==typeof e.autoclose?e.autoclose={time:e.autoclose+"ms"}:"string"==typeof e.autoclose&&(e.autoclose={time:e.autoclose});let t=Object.assign({},p.defaultAutocloseConfig,e.autoclose);t.time&&"number"==typeof t.time&&(t.time+="ms");let n=r.progressbar.querySelector("div");n.addEventListener("animationend",e=>{e.stopPropagation(),r.progressbar.classList.remove("active"),r.close()}),t.progressbar&&(r.progressbar.classList.add("active"),t.background?p.themes.indexOf(t.background)>-1?r.progressbar.classList.add(t.background+"-bg"):p.colorNames[t.background]?r.progressbar.style.background="#"+p.colorNames[t.background]:r.progressbar.style.background=t.background:r.progressbar.classList.add("success-bg")),n.style.animation=t.time+" progressbar"}if(e.rtl&&r.setRtl(),r.setSize(),r.status="normalized",e.position?this.position(r,e.position):r.style.opacity=1,document.dispatchEvent(l),r.calcSizeFactors(),e.animateIn&&(r.addEventListener("animationend",()=>{this.remClass(r,e.animateIn)}),this.setClass(r,e.animateIn)),e.syncMargins){let t=this.pOcontainment(e.maximizedMargin);e.dragit&&(e.dragit.containment=t,!0===e.dragit.snap?(e.dragit.snap=p.defaultSnapConfig,e.dragit.snap.containment=!0):e.dragit.snap&&(e.dragit.snap.containment=!0)),e.resizeit&&(e.resizeit.containment=t)}if(e.dragit?(["start","drag","stop"].forEach(t=>{e.dragit[t]?"function"==typeof e.dragit[t]&&(e.dragit[t]=[e.dragit[t]]):e.dragit[t]=[]}),r.drag(e.dragit),r.addEventListener("jspaneldragstop",e=>{e.panel===r&&r.calcSizeFactors()},!1)):r.titlebar.style.cursor="default",e.resizeit){["start","resize","stop"].forEach(t=>{e.resizeit[t]?"function"==typeof e.resizeit[t]&&(e.resizeit[t]=[e.resizeit[t]]):e.resizeit[t]=[]}),r.sizeit(e.resizeit);let t=void 0;r.addEventListener("jspanelresizestart",e=>{e.panel===r&&(t=r.status)},!1),r.addEventListener("jspanelresizestop",n=>{n.panel===r&&("smallified"===t||"smallifiedmax"===t||"maximized"===t)&&parseFloat(r.style.height)>parseFloat(window.getComputedStyle(r.header).height)&&(r.setControls([".jsPanel-btn-normalize"]),r.status="normalized",document.dispatchEvent(l),document.dispatchEvent(i),e.onstatuschange&&p.processCallbacks(r,e.onstatuschange,"every"),r.calcSizeFactors())},!1)}if(r.saveCurrentDimensions(!0),r.saveCurrentPosition(),e.setStatus&&("smallifiedmax"===e.setStatus?r.maximize().smallify():"smallified"===e.setStatus?r.smallify():r[e.setStatus.substr(0,e.setStatus.length-1)]()),this.pointerdown.forEach(t=>{r.addEventListener(t,t=>{t.target.closest(".jsPanel-btn-close")||t.target.closest(".jsPanel-btn-minimize")||"standard"!==e.paneltype||r.front()},!1)}),e.onwindowresize&&"window"===r.options.container&&window.addEventListener("resize",r.windowResizeHandler,!1),e.onparentresize){let t=e.onparentresize,n=r.isChildpanel();if(n){const e=n.content;let o=[];r.parentResizeHandler=a=>{if(a.panel===n){o[0]=e.offsetWidth,o[1]=e.offsetHeight;let n,a,i=r.status;"maximized"===i&&t?r.maximize():r.snapped&&"minimized"!==i?r.snap(r.snapped,!0):"normalized"===i||"smallified"===i||"maximized"===i?"function"==typeof t?t.call(r,r,{width:o[0],height:o[1]}):(n=(o[0]-r.offsetWidth)*r.hf,r.style.left=n<=0?0:n+"px",a=(o[1]-r.offsetHeight)*r.vf,r.style.top=a<=0?0:a+"px"):"smallifiedmax"===i&&t&&r.maximize().smallify()}},document.addEventListener("jspanelresize",r.parentResizeHandler,!1)}}return this.globalCallbacks&&(Array.isArray(this.globalCallbacks)?this.globalCallbacks.forEach(e=>{e.call(r,r)}):this.globalCallbacks.call(r,r)),e.callback&&(Array.isArray(e.callback)?e.callback.forEach(e=>{e.call(r,r)}):e.callback.call(r,r)),t&&t.call(r,r),document.dispatchEvent(a),r}};var u={name:"JsPanel",props:{visible:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}}},computed:{panelOptions:function(){return Object.assign({onclosed:this.close},this.options)}},watch:{visible:function(e){e&&this.createPanel()}},mounted:function(){this.visible&&this.createPanel()},methods:{createPanel:function(){var e=this;return d(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick();case 2:n=Object.assign({content:e.$refs.default},e.panelOptions),e.$slots.headerToolbar&&(n=Object.assign({headerToolbar:e.$slots.headerToolbar()[0].el},n)),p.create(n);case 5:case"end":return t.stop()}}),t)})))()},close:function(){this.$emit("close"),this.$emit("update:visible",!1)}}},f=n("d959"),h=n.n(f);const m=h()(u,[["render",l]]);var g=m;function b(e){e.component("JsPanel",g)}var y={install:b};t["default"]=y},fc6a:function(e,t,n){var o=n("44ad"),r=n("1d80");e.exports=function(e){return o(r(e))}},fdbf:function(e,t,n){var o=n("4930");e.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(e,t,n){var o=n("da84");e.exports=o.Promise}})}));
//# sourceMappingURL=vue3-js-panel.umd.min.js.map