@pinegrow/quasar-module 3.0.71-alpha.4 → 3.0.71-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/plugin.cjs CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see plugin.cjs.LICENSE.txt */
2
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var s in i)("object"==typeof exports?exports:t)[s]=i[s]}}(global,(()=>(()=>{var t,e,i={294:t=>{"use strict";function e(t,e,n){t instanceof RegExp&&(t=i(t,n)),e instanceof RegExp&&(e=i(e,n));var r=s(t,e,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+t.length,r[1]),post:n.slice(r[1]+e.length)}}function i(t,e){var i=e.match(t);return i?i[0]:null}function s(t,e,i){var s,n,r,o,a,l=i.indexOf(t),c=i.indexOf(e,l+1),h=l;if(l>=0&&c>0){if(t===e)return[l,c];for(s=[],r=i.length;h>=0&&!a;)h==l?(s.push(h),l=i.indexOf(t,h+1)):1==s.length?a=[s.pop(),c]:((n=s.pop())<r&&(r=n,o=c),c=i.indexOf(e,h+1)),h=l<c&&l>=0?l:c;s.length&&(a=[r,o])}return a}t.exports=e,e.range=s},783:t=>{"use strict";const e=/[\p{Lu}]/u,i=/[\p{Ll}]/u,s=/^[\p{Lu}](?![\p{Lu}])/gu,n=/([\p{Alpha}\p{N}_]|$)/u,r=/[_.\- ]+/,o=new RegExp("^"+r.source),a=new RegExp(r.source+n.source,"gu"),l=new RegExp("\\d+"+n.source,"gu"),c=(t,n)=>{if("string"!=typeof t&&!Array.isArray(t))throw new TypeError("Expected the input to be `string | string[]`");if(n={pascalCase:!1,preserveConsecutiveUppercase:!1,...n},0===(t=Array.isArray(t)?t.map((t=>t.trim())).filter((t=>t.length)).join("-"):t.trim()).length)return"";const r=!1===n.locale?t=>t.toLowerCase():t=>t.toLocaleLowerCase(n.locale),c=!1===n.locale?t=>t.toUpperCase():t=>t.toLocaleUpperCase(n.locale);return 1===t.length?n.pascalCase?c(t):r(t):(t!==r(t)&&(t=((t,s,n)=>{let r=!1,o=!1,a=!1;for(let l=0;l<t.length;l++){const c=t[l];r&&e.test(c)?(t=t.slice(0,l)+"-"+t.slice(l),r=!1,a=o,o=!0,l++):o&&a&&i.test(c)?(t=t.slice(0,l-1)+"-"+t.slice(l-1),a=o,o=!1,r=!0):(r=s(c)===c&&n(c)!==c,a=o,o=n(c)===c&&s(c)!==c)}return t})(t,r,c)),t=t.replace(o,""),t=n.preserveConsecutiveUppercase?((t,e)=>(s.lastIndex=0,t.replace(s,(t=>e(t)))))(t,r):r(t),n.pascalCase&&(t=c(t.charAt(0))+t.slice(1)),((t,e)=>(a.lastIndex=0,l.lastIndex=0,t.replace(a,((t,i)=>e(i))).replace(l,(t=>e(t)))))(t,c))};t.exports=c,t.exports.default=c},199:(t,e,i)=>{var s=i(294);t.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),g(function(t){return t.split("\\\\").join(n).split("\\{").join(r).split("\\}").join(o).split("\\,").join(a).split("\\.").join(l)}(t),!0).map(h)):[]};var n="\0SLASH"+Math.random()+"\0",r="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function c(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function h(t){return t.split(n).join("\\").split(r).join("{").split(o).join("}").split(a).join(",").split(l).join(".")}function u(t){if(!t)return[""];var e=[],i=s("{","}",t);if(!i)return t.split(",");var n=i.pre,r=i.body,o=i.post,a=n.split(",");a[a.length-1]+="{"+r+"}";var l=u(o);return o.length&&(a[a.length-1]+=l.shift(),a.push.apply(a,l)),e.push.apply(e,a),e}function p(t){return"{"+t+"}"}function d(t){return/^-?0\d/.test(t)}function f(t,e){return t<=e}function m(t,e){return t>=e}function g(t,e){var i=[],n=s("{","}",t);if(!n)return[t];var r=n.pre,a=n.post.length?g(n.post,!1):[""];if(/\$$/.test(n.pre))for(var l=0;l<a.length;l++){var h=r+"{"+n.body+"}"+a[l];i.push(h)}else{var y,b,v=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),w=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),k=v||w,_=n.body.indexOf(",")>=0;if(!k&&!_)return n.post.match(/,.*\}/)?g(t=n.pre+"{"+n.body+o+n.post):[t];if(k)y=n.body.split(/\.\./);else if(1===(y=u(n.body)).length&&1===(y=g(y[0],!1).map(p)).length)return a.map((function(t){return n.pre+y[0]+t}));if(k){var x=c(y[0]),S=c(y[1]),T=Math.max(y[0].length,y[1].length),C=3==y.length?Math.abs(c(y[2])):1,A=f;S<x&&(C*=-1,A=m);var E=y.some(d);b=[];for(var O=x;A(O,S);O+=C){var M;if(w)"\\"===(M=String.fromCharCode(O))&&(M="");else if(M=String(O),E){var P=T-M.length;if(P>0){var L=new Array(P+1).join("0");M=O<0?"-"+L+M.slice(1):L+M}}b.push(M)}}else{b=[];for(var F=0;F<y.length;F++)b.push.apply(b,g(y[F],!1))}for(F=0;F<b.length;F++)for(l=0;l<a.length;l++)h=r+b[F]+a[l],(!e||k||h)&&i.push(h)}return i}},748:t=>{t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i<e;i++)s[i]=t[i];return s},t.exports.__esModule=!0,t.exports.default=t.exports},314:t=>{t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},850:(t,e,i)=>{var s=i(748);t.exports=function(t){if(Array.isArray(t))return s(t)},t.exports.__esModule=!0,t.exports.default=t.exports},297:t=>{t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},461:t=>{function e(t,e,i,s,n,r,o){try{var a=t[r](o),l=a.value}catch(t){return void i(t)}a.done?e(l):Promise.resolve(l).then(s,n)}t.exports=function(t){return function(){var i=this,s=arguments;return new Promise((function(n,r){var o=t.apply(i,s);function a(t){e(o,n,r,a,l,"next",t)}function l(t){e(o,n,r,a,l,"throw",t)}a(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},100:t=>{t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},870:(t,e,i)=>{var s=i(739);function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}t.exports=function(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},290:(t,e,i)=>{var s=i(739);t.exports=function(t,e,i){return(e=s(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},t.exports.__esModule=!0,t.exports.default=t.exports},611:(t,e,i)=>{var s=i(209);function n(){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=n=Reflect.get.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=n=function(t,e,i){var n=s(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(arguments.length<3?t:i):r.value}},t.exports.__esModule=!0,t.exports.default=t.exports),n.apply(this,arguments)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},660:t=>{function e(i){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},230:(t,e,i)=>{var s=i(560);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},912:t=>{t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},193:t=>{t.exports=function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var s,n,r,o,a=[],l=!0,c=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(s=r.call(i)).done)&&(a.push(s.value),a.length!==e);l=!0);}catch(t){c=!0,n=t}finally{try{if(!l&&null!=i.return&&(o=i.return(),Object(o)!==o))return}finally{if(c)throw n}}return a}},t.exports.__esModule=!0,t.exports.default=t.exports},147:t=>{t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},96:t=>{t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},421:(t,e,i)=>{var s=i(425).default,n=i(297);t.exports=function(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports},609:(t,e,i)=>{var s=i(425).default;function n(){"use strict";t.exports=n=function(){return i},t.exports.__esModule=!0,t.exports.default=t.exports;var e,i={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,i){t[e]=i.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function p(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(e){p=function(t,e,i){return t[e]=i}}function d(t,e,i,s){var n=e&&e.prototype instanceof w?e:w,r=Object.create(n.prototype),o=new F(s||[]);return a(r,"_invoke",{value:O(t,i,o)}),r}function f(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}i.wrap=d;var m="suspendedStart",g="suspendedYield",y="executing",b="completed",v={};function w(){}function k(){}function _(){}var x={};p(x,c,(function(){return this}));var S=Object.getPrototypeOf,T=S&&S(S(j([])));T&&T!==r&&o.call(T,c)&&(x=T);var C=_.prototype=w.prototype=Object.create(x);function A(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function i(n,r,a,l){var c=f(t[n],t,r);if("throw"!==c.type){var h=c.arg,u=h.value;return u&&"object"==s(u)&&o.call(u,"__await")?e.resolve(u.__await).then((function(t){i("next",t,a,l)}),(function(t){i("throw",t,a,l)})):e.resolve(u).then((function(t){h.value=t,a(h)}),(function(t){return i("throw",t,a,l)}))}l(c.arg)}var n;a(this,"_invoke",{value:function(t,s){function r(){return new e((function(e,n){i(t,s,e,n)}))}return n=n?n.then(r,r):r()}})}function O(t,i,s){var n=m;return function(r,o){if(n===y)throw new Error("Generator is already running");if(n===b){if("throw"===r)throw o;return{value:e,done:!0}}for(s.method=r,s.arg=o;;){var a=s.delegate;if(a){var l=M(a,s);if(l){if(l===v)continue;return l}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(n===m)throw n=b,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);n=y;var c=f(t,i,s);if("normal"===c.type){if(n=s.done?b:g,c.arg===v)continue;return{value:c.arg,done:s.done}}"throw"===c.type&&(n=b,s.method="throw",s.arg=c.arg)}}}function M(t,i){var s=i.method,n=t.iterator[s];if(n===e)return i.delegate=null,"throw"===s&&t.iterator.return&&(i.method="return",i.arg=e,M(t,i),"throw"===i.method)||"return"!==s&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+s+"' method")),v;var r=f(n,t.iterator,i.arg);if("throw"===r.type)return i.method="throw",i.arg=r.arg,i.delegate=null,v;var o=r.arg;return o?o.done?(i[t.resultName]=o.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,v):o:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function j(t){if(t||""===t){var i=t[c];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function i(){for(;++n<t.length;)if(o.call(t,n))return i.value=t[n],i.done=!1,i;return i.value=e,i.done=!0,i};return r.next=r}}throw new TypeError(s(t)+" is not iterable")}return k.prototype=_,a(C,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:k,configurable:!0}),k.displayName=p(_,u,"GeneratorFunction"),i.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===k||"GeneratorFunction"===(e.displayName||e.name))},i.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,p(t,u,"GeneratorFunction")),t.prototype=Object.create(C),t},i.awrap=function(t){return{__await:t}},A(E.prototype),p(E.prototype,h,(function(){return this})),i.AsyncIterator=E,i.async=function(t,e,s,n,r){void 0===r&&(r=Promise);var o=new E(d(t,e,s,n),r);return i.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(C),p(C,u,"Generator"),p(C,c,(function(){return this})),p(C,"toString",(function(){return"[object Generator]"})),i.keys=function(t){var e=Object(t),i=[];for(var s in e)i.push(s);return i.reverse(),function t(){for(;i.length;){var s=i.pop();if(s in e)return t.value=s,t.done=!1,t}return t.done=!0,t}},i.values=j,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var i in this)"t"===i.charAt(0)&&o.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function s(s,n){return a.type="throw",a.arg=t,i.next=s,n&&(i.method="next",i.arg=e),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n],a=r.completion;if("root"===r.tryLoc)return s("end");if(r.tryLoc<=this.prev){var l=o.call(r,"catchLoc"),c=o.call(r,"finallyLoc");if(l&&c){if(this.prev<r.catchLoc)return s(r.catchLoc,!0);if(this.prev<r.finallyLoc)return s(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return s(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return s(r.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i];if(s.tryLoc<=this.prev&&o.call(s,"finallyLoc")&&this.prev<s.finallyLoc){var n=s;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var r=n?n.completion:{};return r.type=t,r.arg=e,n?(this.method="next",this.next=n.finallyLoc,v):this.complete(r)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),L(i),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var s=i.completion;if("throw"===s.type){var n=s.arg;L(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,s){return this.delegate={iterator:j(t),resultName:i,nextLoc:s},"next"===this.method&&(this.arg=e),v}},i}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},560:t=>{function e(i,s){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(i,s)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},681:(t,e,i)=>{var s=i(314),n=i(193),r=i(121),o=i(147);t.exports=function(t,e){return s(t)||n(t,e)||r(t,e)||o()},t.exports.__esModule=!0,t.exports.default=t.exports},209:(t,e,i)=>{var s=i(660);t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=s(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports},408:(t,e,i)=>{var s=i(850),n=i(912),r=i(121),o=i(96);t.exports=function(t){return s(t)||n(t)||r(t)||o()},t.exports.__esModule=!0,t.exports.default=t.exports},64:(t,e,i)=>{var s=i(425).default;t.exports=function(t,e){if("object"!==s(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},739:(t,e,i)=>{var s=i(425).default,n=i(64);t.exports=function(t){var e=n(t,"string");return"symbol"===s(e)?e:String(e)},t.exports.__esModule=!0,t.exports.default=t.exports},425:t=>{function e(i){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},121:(t,e,i)=>{var s=i(748);t.exports=function(t,e){if(t){if("string"==typeof t)return s(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?s(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},841:(t,e,i)=>{var s=i(609)();t.exports=s;try{regeneratorRuntime=s}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=s:Function("r","regeneratorRuntime = r")(s)}},706:(t,e,i)=>{"use strict";i.d(e,{uY:()=>B,T5:()=>N,dT:()=>H,VH:()=>Y,uQ:()=>G,S1:()=>$,kl:()=>U,j3:()=>W,GW:()=>R,fc:()=>q});var s={};i.r(s),i.d(s,{amber:()=>x,blue:()=>m,blueGrey:()=>E,brown:()=>C,common:()=>c,cyan:()=>y,deepOrange:()=>T,deepPurple:()=>d,green:()=>v,grey:()=>A,indigo:()=>f,lightBlue:()=>g,lightGreen:()=>w,lime:()=>k,orange:()=>S,pink:()=>u,purple:()=>p,red:()=>h,teal:()=>b,yellow:()=>_});var n=i(408),r=i(290),o=i(681),a=i(870),l=i(100);const c={black:"#000",white:"#fff"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},u={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},d={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea"},f={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},g={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},y={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4"},b={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"},v={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},w={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17"},k={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00"},_={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600"},x={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"},S={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},T={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"},C={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037"},A={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},E={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"};var O,M,P,L=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"vuetify",i=["lighten","darken","accent"];"quasar"===e&&(i=["1","2","3","4","5","7","8","9","10","11","12","13","14"]);var s="quasar"===e?2:3,r="quasar"===e?1:2,a="quasar"===e?"5":"lighten-1",l=Object.keys(t).reduce((function(t,e){var o=e.split("-");return o.length>=s&&i.includes(o[o.length-r])?[].concat(n(t),[o.slice(0,o.length-r).join("-")]):[].concat(n(t),[e])}),[]);return(l=n(new Set(l))).map((function(e){var l=Object.entries(t).reduce((function(l,c){var h=o(c,2),u=h[0],p=h[1],d=u.split("-"),f=d.slice(d.length-r).join("-");if(!(d.length>1&&l.map((function(t){return t.name})).includes(f))&&u.startsWith(e)&&d.length>=s&&i.includes(d[d.length-r])){var m=[].concat(n(l),[{name:f,hex:p}]);return f===a&&m.push({name:"",hex:t[e]}),m}return l}),[]);return{color:e,variants:l,hex:t[e]}}))},F=function(t){return t=t.replace("#",""),(299*parseInt(t.substr(0,2),16)+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3>=128?"#333333":"#ebedef"},j=a((function t(e){var i=this;switch(l(this,t),r(this,"init",(function(){i.buildColorsMapAndSwatches(),i.buildColorsMeta()})),r(this,"initOptions",(function(){i.buildColorsOptionsAndTextOptions()})),r(this,"buildColorsMapAndSwatches",(function(){i.colors.forEach((function(t){var e=s[t];if(e){var n=[];n.push(e[500]),Object.entries(e).forEach((function(e){var s,r=o(e,2),a=r[0],l=r[1];("brown"!==t&&"grey"!==t&&"blueGrey"!==t||"A100"!==a&&"A200"!==a&&"A400"!==a&&"A700"!==a)&&(i.colorsMap["".concat((s=t,s.split("").map((function(t,e){return t.toUpperCase()===t?"".concat(0!==e?"-":"").concat(t.toLowerCase()):t})).join(""))).concat("500"===a?"":"-"+i.colorWeights[a]).toLowerCase()]=l,"500"!==a&&n.push(l))})),i.swatches.push(n)}})),i.colorsMap.black="#000000",i.colorsMap.white="#ffffff",i.swatches.push(["#000000","#ffffff"])})),r(this,"buildColorsMeta",(function(){i.colorsMeta=L(i.colorsMap,i.fx)})),r(this,"buildColorsOptionsAndTextOptions",(function(){var t=new PgToggleButtonMaker,e=[],s=[];i.colorsMeta.forEach((function(i){var n=i.color,r=i.hex;if(n&&r){var o=n.split("-").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ");e.push({key:n,name:o,html:t.makeColor(r,"",{attributes:{title:o}})}),s.push({key:n,name:o,html:t.makeColorText(r,"",{attributes:{title:o}})})}})),i.colorOptions=e,i.colorTextOptions=s})),r(this,"hexToName",(function(t){var e;return""===t&&(e="none"),Object.entries(i.colorsMap).forEach((function(i){var s=o(i,2),n=s[0],r=s[1];t===r&&(e=n)})),e||t})),r(this,"nameToHex",(function(t){return""===t?"none":i.colorsMap[t.toLowerCase()]||t.toLowerCase()})),this.fx=e,this.colors=["red","pink","purple","deepPurple","indigo","blue","lightBlue","cyan","teal","green","lightGreen","lime","yellow","amber","orange","deepOrange","brown","grey","blueGrey","black","white"],e){case"vuetify":this.colorWeights={50:"lighten-5",100:"lighten-4",200:"lighten-3",300:"lighten-2",400:"lighten-1",500:"",600:"darken-1",700:"darken-2",800:"darken-3",900:"darken-4",A100:"accent-1",A200:"accent-2",A400:"accent-3",A700:"accent-4"};break;case"quasar":this.colorWeights={50:"1",100:"2",200:"3",300:"4",400:"5",500:"6",600:"7",700:"8",800:"9",900:"10",A100:"11",A200:"12",A400:"13",A700:"14"};break;default:this.colorWeights={50:"50",100:"100",200:"200",300:"300",400:"400",500:"500",600:"600",700:"700",800:"800",900:"900",A100:"A100",A200:"A200",A400:"A400",A700:"A700"}}this.colorsMap={},this.colorsMeta=[],this.colorOptions=[],this.colorTextOptions=[],this.swatches=[],this.init()})),D=a((function t(e){var i=this;l(this,t),r(this,"init",(function(t){i.colorsMap=t||{},i.buildColorsMeta(),i.buildColors()})),r(this,"initOptions",(function(){i.buildColorsOptionsAndTextOptions()})),r(this,"buildColorsMeta",(function(){i.colorsMeta=L(i.colorsMap,i.fx)})),r(this,"buildColors",(function(){i.colors=i.colorsMeta.map((function(t){return t.color}))})),r(this,"buildColorsOptionsAndTextOptions",(function(){var t=new PgToggleButtonMaker,e=[],s=[];i.colorsMeta.forEach((function(i){var n=i.color,r=i.hex;if(n&&r){var o=n.split("-").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ");e.push({key:n,name:o,html:t.makeColor(r,o,{styles:{"font-size":"11px",padding:"6px",width:"auto",height:"16px","background-color":"".concat(r),color:"".concat(r.toLowerCase().startsWith("#fff")?"#a5a5a5":F(r)),"border-radius":"3px",display:"flex","flex-direction":"column","justify-content":"center"},attributes:{title:o}})}),s.push({key:n,name:o,html:t.makeColor(r,o,{styles:{"font-size":"11px",padding:"6px",width:"auto",height:"16px",color:"".concat(r.toLowerCase().startsWith("#fff")?"#a5a5a5":"Neutral"===o?F(r):r),"border-radius":"3px",display:"flex","flex-direction":"column","justify-content":"center"},attributes:{title:o}})})}})),i.colorOptions=e,i.colorTextOptions=s})),r(this,"hexToName",(function(t){var e;return""===t&&(e="none"),Object.entries(i.colorsMap).forEach((function(i){var s=o(i,2),n=s[0],r=s[1];t===r&&(e=n)})),e||t})),r(this,"nameToHex",(function(t){return""===t?"none":i.colorsMap[t.toLowerCase()]||t.toLowerCase()})),this.fx=e,this.colors=[],this.colorsMap={neutral:"#121212"},this.colorsMeta=[],this.colorOptions=[],this.colorTextOptions=[],this.init()}));function z(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function I(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?z(Object(i),!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):z(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var R,B=[],N=[],W=[],$=function(t){M=new j(O=t),P=new D(O)},U=function(t){var e={};if(t)e=t();else switch(O){case"vuetify":e={background:"#ffffff",surface:"#ffffff",primary:"#7e68b1","primary-darken-1":"#6750a4",secondary:"#787285","secondary-darken-1":"#625b71",tertiary:"#906a76","tertiary-darken-1":"#7d5260",success:"#2e7d32",warning:"#ed6c02",error:"#d32f2f",info:"#0288d1",neutral:"#121212",transparent:"#ffffff"};break;case"quasar":e={primary:"#1976d2",secondary:"#26A69A",accent:"#9C27B0",dark:"#1d1d1d",positive:"#21BA45",negative:"#C10015",info:"#31CCEC",warning:"#F2C037",transparent:"#ffffff"};break;default:e={background:"#ffffff",surface:"#ffffff",primary:"#7e68b1",secondary:"#787285",tertiary:"#906a76",success:"#2e7d32",warning:"#ed6c02",error:"#d32f2f",info:"#0288d1",neutral:"#121212",transparent:"#ffffff"}}try{var i=I(I({},{}),e);i=Object.fromEntries(Object.entries(i).map((function(t){var e=o(t,2),i=e[0],s=e[1];return[i.toLowerCase(),s.toLowerCase()]}))),P.init(i),M.swatches,I(I({},M.colorsMap),P.colorsMap),[].concat(n(M.colorsMeta),n(P.colorsMeta)),W=P.colorsMap,M.initOptions(),P.initOptions(),B=[].concat(n(M.colorOptions),n(P.colorOptions)),N=[].concat(n(M.colorTextOptions),n(P.colorTextOptions))}catch(t){}},q=function(t){R=t},H=!1,G=function(t){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[],s=[],r=[],o=[];(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(o=[].concat(n(o),n(M.colorsMeta))),e&&(o=[].concat(n(o),n(P.colorsMeta.map((function(t){return I(I({},t),{},{palette:!0})})))));var a=["lighten","darken","accent"];"quasar"===O&&(a=["1","2","3","4","5","7","8","9","10","11","12","13","14"]);var l="quasar"===O?2:3,c="quasar"===O?1:2;return o.forEach((function(e){var n,o=[];e.variants.forEach((function(i){var h="".concat(e.color).concat(i.name?"-".concat(i.name):""),u={key:"".concat(t).concat(h),name:h,color:i.hex},p=h.split("-");e.palette&&p.length>=l-1&&a.includes(p[p.length-c])&&(u.second_row=!0),e.palette&&!u.second_row&&s.push(u),u.second_row||"white"===e.color||"black"===e.color||"transparent"===e.color?r.push(u):o.push(u),i.name||(n=u)})),n&&o.unshift(I({},n));var h=e.color.split("-");e.palette&&h.length>=l-1&&a.includes(h[h.length-c])&&(u.second_row=!0);var u={key:"".concat(t).concat(e.color),name:"".concat(e.color),color:e.hex};e.palette&&!u.second_row&&s.push(u),u.second_row||"white"===e.color||"black"===e.color||"transparent"===e.color?r.push(u):e.palette||e.variants.length||o.push(u),o.length&&i.push(o)})),[s,r].concat(i)},Y=function(t){var e=G(t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],!(arguments.length>2&&void 0!==arguments[2])||arguments[2]),i=[];return e.forEach((function(t){t.forEach((function(t){i.push({key:"".concat(t.key),name:"".concat(t.name),color:t.color})}))})),i}},318:(t,e,i)=>{"use strict";i.r(e),i.d(e,{def_all:()=>b});var s=i(290),n=i(289),r=i(676),o=i(104),a=i(706);function l(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return c(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?c(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var s=0,n=function(){};return{s:n,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return o=t.done,t},e:function(t){a=!0,r=t},f:function(){try{o||null==i.return||i.return()}finally{if(a)throw r}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}function h(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function u(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?h(Object(i),!0).forEach((function(e){s(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):h(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}(0,a.S1)(o.Yr.type);var p=function(t,e,i){var s=t||"text-";return{type:"color",name:e||"Color",show_empty:!0,toggle_buttons:!0,options:function(){return(0,a.VH)(s)},fill_list_on_open:!0,text_color:"text-"===s,colors:function(t){return(0,a.uQ)(s)},parent_section_id:i,action:"custom",get_value:function(t,e,i,n){var r,o=(0,a.VH)(s).map((function(t){return t.key})),c=l(t.getClasses());try{for(c.s();!(r=c.n()).done;){var h=r.value;if(o.includes(h))return h}}catch(t){c.e(t)}finally{c.f()}},set_value:function(t,e,i,n,r,o,c){var h=(0,a.VH)("".concat(s,"-")).map((function(t){return t.key})),u=t.getClasses(),p=!1;if(u.length){var d,f=l(u);try{for(f.s();!(d=f.n()).done;){var m=d.value;(n===m||h.includes(m))&&(t.removeClass(m),p=!0)}}catch(t){f.e(t)}finally{f.f()}}return e&&(t.addClass(e),p=!0),p&&pinegrow.reselectElement(t),e}}};r.M.getPaletteColors=function(t){var e={primary:"#1976d2",secondary:"#26A69A",accent:"#9C27B0",dark:"#1d1d1d",positive:"#21BA45",negative:"#C10015",info:"#31CCEC",warning:"#F2C037",transparent:"#ffffff",white:"#fff",black:"#000"};return t&&Object.keys(e).forEach((function(i){var s=t.getCSSVariableValue("--q-".concat(i));"string"==typeof s&&(s=s.trim()),s&&(e[i]=s)})),(0,a.fc)(u(u({},e),{},{transparent:"#ffffff"})),(0,a.kl)((function(){return a.GW})),a.j3},r.M.getColorsForColorPicker=a.uQ,r.M.getColorOptions=a.VH;var d,f=i(802),m=function(t){return t.children,t.children.reduce((function(t,e){var i=e.getClasses().reduce((function(t,e){return t||e.startsWith("col")||e.startsWith("offset")}),!1);return t||i}),!1)},g=function(t){return!m(t)},y=function(t){return function(){return{name:"column"===t?"Column Gutter":"Gutter",on_section_shown:n.vz,show_if:"column"===t?m:g,fields:s({},"".concat(t,"_gutter'"),{type:"custom",name:"".concat(t,"_gutter'"),action:"none",control:(0,n.of)(t)})}}},b=new PgComponentType(n.O4+"all","All elements",{selector:function(t){return o.hC},name:"Div",display_name:"tag",priority:2001,sections:(0,n.e9)({textcolor:{name:"Text Color",compact:!0,fields:{textcolor:p("text-","Swatches",n.O4+"textcolor")}},typography:{name:"Typography",fields:{typography:(d={name:"Typography",action:"none",type:"select"},s(d,"action","apply_class"),s(d,"show_empty",!0),s(d,"toggle_buttons",!0),s(d,"options",[{key:"text-h1",name:"1",html:n.bm.makeText("H1",{attributes:{title:"Heading 1"}})},{key:"text-h2",name:"2",html:n.bm.makeText("H2",{attributes:{title:"Heading 2"}})},{key:"text-h3",name:"3",html:n.bm.makeText("H3",{attributes:{title:"Heading 3"}})},{key:"text-h4",name:"4",html:n.bm.makeText("H4",{attributes:{title:"Heading 4"}})},{key:"text-h5",name:"5",html:n.bm.makeText("H5",{attributes:{title:"Heading 5"}})},{key:"text-h6",name:"6",html:n.bm.makeText("H6",{attributes:{title:"Heading 6"}})},{key:"text-subtitle-1",name:"Subtitle 1",html:n.bm.makeText("Subtitle 1",{attributes:{title:"Subtitle 1"}})},{key:"text-subtitle-2",name:"Subtitle 2",html:n.bm.makeText("Subtitle 2",{attributes:{title:"Subtitle 2"}})},{key:"text-body-1",name:"Body 1",html:n.bm.makeText("Body 1",{attributes:{title:"Body 1"}})},{key:"text-body-2",name:"Body 2",html:n.bm.makeText("Body 2",{attributes:{title:"Body 2"}})},{key:"text-caption",name:"Caption",html:n.bm.makeText("Caption",{attributes:{title:"Caption"}})},{key:"text-overline",name:"Overline",html:n.bm.makeText("Overline",{attributes:{title:"Overline"}})}]),d),fontweight:{type:"select",name:"Font weight",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"text-weight-bolder",name:"Bolder",html:n.bm.makeText("Bolder",{attributes:{title:"Bolder"}})},{key:"text-weight-bold",name:"Bold",html:n.bm.makeText("Bold",{attributes:{title:"Bold"}})},{key:"text-weight-medium",name:"Medium",html:n.bm.makeText("Medium",{attributes:{title:"Medium"}})},{key:"text-weight-regular",name:"Regular",html:n.bm.makeText("Regular",{attributes:{title:"Regular"}})},{key:"text-weight-light",name:"Light",html:n.bm.makeText("Light",{attributes:{title:"Light"}})},{key:"text-weight-thin",name:"Thin",html:n.bm.makeText("Thin",{attributes:{title:"Thin"}})}]},textalign:{name:"Text align",type:"select",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"text-left",name:"Left",html:n.bm.makeIcon("align-left",{attributes:{title:"Left"}})},{key:"text-center",name:"Center",html:n.bm.makeIcon("align-center",{attributes:{title:"Center"}})},{key:"text-right",name:"Right",html:n.bm.makeIcon("align-right",{attributes:{title:"Right"}})},{key:"text-justify",name:"Justify",html:n.bm.makeIcon("align-full",{attributes:{title:"Justify"}})}]},transform:{type:"select",name:"Transform",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"text-lowercase",name:"Lowercase",html:n.bm.makeIcon("lowercase")},{key:"text-uppercase",name:"Uppercase",html:n.bm.makeIcon("uppercase")},{key:"text-capitalize",name:"Capitalize",html:n.bm.makeIcon("sentence-case")}]},whitespace:{type:"checkbox",name:"No Wrap",action:"apply_class",value:"text-no-wrap"},fontstyle:{type:"checkbox",name:"Italic",action:"apply_class",value:"text-italic"},fontbold:{type:"checkbox",name:"Bold",action:"apply_class",value:"text-bold"},decoration:{type:"checkbox",name:"Line through",action:"apply_class",value:"text-strike"}}},background:{name:"Background Color",compact:!0,fields:{bgcolor:p("bg-","Swatches",n.O4+"background"),dimmed:{type:"select",name:"Dimmed",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"transparent",name:"Transparent",html:n.bm.makeText("Transparent",{attributes:{title:"Transparent"}})},{key:"dimmed",name:"Dimmed",html:n.bm.makeText("Dimmed",{attributes:{title:"Dimmed"}})},{key:"light-dimmed",name:"Light Dimmed",html:n.bm.makeText("Light Dimmed",{attributes:{title:"Light Dimmed"}})}]},glossy:{type:"checkbox",name:"Glossy",action:"apply_class",value:"glossy"}}},spacing:{name:"Spacing",on_section_shown:n.vz,fields:{margin_control:{type:"custom",name:"Spacing",action:"none",control:(0,n.Cw)()},no_margin:{type:"checkbox",name:"No Margin",action:"apply_class",value:"no-margin"},no_padding:{type:"checkbox",name:"No Padding",action:"apply_class",value:"no-padding"}}},dimension:{name:"Dimension",fields:{display:{type:"select",name:"Display",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"block",name:"Block",html:n.bm.makeText("Block",{attributes:{title:"Block"}})},{key:"inline-block",name:"Inline Block",html:n.bm.makeText("Inline Block",{attributes:{title:"Inline Block"}})}]},width:{type:"select",name:"Width",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"full-width",name:"Full Width",html:n.bm.makeText("Full Width",{attributes:{title:"Full Width"}})},{key:"window-width",name:"Window Width",html:n.bm.makeText("Window Width",{attributes:{title:"Window Width"}})}]},height:{type:"select",name:"Height",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"full-height",name:"Full Height",html:n.bm.makeText("Full Height",{attributes:{title:"Full Height"}})},{key:"window-height",name:"Window Height",html:n.bm.makeText("Window Height",{attributes:{title:"Window Height"}})}]},fit:{type:"checkbox",name:"Fit",action:"apply_class",value:"fit"}}},visibility:{name:"Visibility",fields:{disabled:{type:"checkbox",name:"Disabled",action:"apply_class",value:"disabled"},hidden:{type:"checkbox",name:"Hidden (display:none)",action:"apply_class",value:"hidden"},invisible:{type:"checkbox",name:"Invisible (visibility:hidden)",action:"apply_class",value:"invisible"},readonly:{type:"checkbox",name:"Readonly",action:"apply_class",value:"readonly"},ellipsis:{type:"select",name:"Ellipsis",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"ellipsis",name:"Ellipsis",html:n.bm.makeText("Ellipsis",{attributes:{title:"Ellipsis"}})},{key:"ellipsis-2-lines",name:"Ellipsis 2 lines",html:n.bm.makeText("Ellipsis 2 lines",{attributes:{title:"Ellipsis 2 lines"}})},{key:"ellipsis-3-lines",name:"Ellipsis 3 lines",html:n.bm.makeText("Ellipsis 3 lines",{attributes:{title:"Ellipsis 3 lines"}})}]},zindex:{type:"select",name:"Z-index",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"z-top",name:"Z Top",html:n.bm.makeText("Z Top",{attributes:{title:"Z Top"}})},{key:"z-max",name:"Z Max",html:n.bm.makeText("Z Max",{attributes:{title:"Z Max"}})}]},orientation:{type:"select",name:"Orientation",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"orientation-portrait",name:"Portrait",html:n.bm.makeText("Portrait",{attributes:{title:"Portrait"}})},{key:"orientation-landscape",name:"Landscape",html:n.bm.makeText("Landscape",{attributes:{title:"Landscape"}})}]},platform_only:{type:"select",name:"Only in Platform",action:"apply_class",show_empty:!0,options:[{key:"desktop-only",name:"Desktop"},{key:"mobile-only",name:"Mobile"},{key:"native-mobile-only",name:"Native Mobile"},{key:"cordova-only",name:"Cordova"},{key:"capacitor-only",name:"Capacitor"},{key:"electron-only",name:"Electron"},{key:"touch-only",name:"Touch"},{key:"platform-ios-only",name:"iOS"},{key:"platform-android-only",name:"Android"},{key:"within-iframe-only",name:"iframe"}]},platform_hide:{type:"select",name:"Hide in Platform",action:"apply_class_multiple",show_empty:!0,multiple:!0,options:[{key:"desktop-hide",name:"Desktop"},{key:"mobile-hide",name:"Mobile"},{key:"native-mobile-hide",name:"Native Mobile"},{key:"cordova-hide",name:"Cordova"},{key:"capacitor-hide",name:"Capacitor"},{key:"electron-hide",name:"Electron"},{key:"touch-hide",name:"Touch"},{key:"platform-ios-hide",name:"iOS"},{key:"platform-android-hide",name:"Android"},{key:"within-iframe-hide",name:"iframe"}]},print:{type:"select",name:"Print",action:"apply_class",show_empty:!0,options:[{key:"print-only",name:"Print only"},{key:"print-hide",name:"Screen only"}]}}},position:{name:"Position",fields:{position_common:{type:"select",name:"Position",action:"apply_class",show_empty:!0,options:[{key:"fullscreen",name:"Fullscreen"},{key:"relative-position",name:"Relative Position"},{key:"absolute",name:"Absolute"},{key:"absolute-full",name:"Absolute Full"},{key:"absolute-center",name:"Absolute Center"},{key:"absolute-bottom",name:"Absolute Bottom"},{key:"absolute-left",name:"Absolute Left"},{key:"absolute-right",name:"Absolute Right"},{key:"absolute-top",name:"Absolute Top"},{key:"absolute-top-left",name:"Absolute Top Left"},{key:"absolute-top-right",name:"Absolute Top Right"},{key:"absolute-bottom-left",name:"Absolute Bottom Left"},{key:"absolute-bottom-right",name:"Absolute Bottom Right"},{key:"fixed",name:"Fixed"},{key:"fixed-full",name:"Fixed Full"},{key:"fixed-center",name:"Fixed Center"},{key:"fixed-bottom",name:"Fixed Bottom"},{key:"fixed-left",name:"Fixed Left"},{key:"fixed-right",name:"Fixed Right"},{key:"fixed-top",name:"Fixed Top"},{key:"fixed-top-left",name:"Fixed Top Left"},{key:"fixed-top-right",name:"Fixed Top Right"},{key:"fixed-bottom-left",name:"Fixed Bottom Left"},{key:"fixed-bottom-right",name:"Fixed Bottom Right"}]},horizontal_alignment:{type:"select",name:"Horizontal Alignment",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"on-left",name:"On Left",html:n.bm.makeText("On Left",{attributes:{title:"On Left"}})},{key:"on-right",name:"On Right",html:n.bm.makeText("On Right",{attributes:{title:"On Right"}})}]},vertical_alignment:{type:"select",name:"Vertical Alignment",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"vertical-top",name:"Top",html:n.bm.makeText("Top",{attributes:{title:"Top"}})},{key:"vertical-middle",name:"Middle",html:n.bm.makeText("Middle",{attributes:{title:"Middle"}})},{key:"vertical-bottom",name:"Bottom",html:n.bm.makeText("Bottom",{attributes:{title:"Bottom"}})}]}}},overflow:{name:"Overflow",fields:{overflow:{type:"select",name:"Scroll",action:"apply_class",show_empty:!0,options:[{key:"scroll",name:"Scroll"},{key:"no-scroll",name:"No Scroll"},{key:"overflow-auto",name:"Overflow Auto"},{key:"overflow-hidden",name:"Overflow Hidden"},{key:"overflow-hidden-y",name:"Overflow Hidden Y"},{key:"hide-scrollbar",name:"Hide Scrollbar"}]}}},mouse:{name:"Mouse",compact:!0,fields:{user_select:{type:"checkbox",name:"Non selectable",action:"apply_class",value:"non-selectable"},pointer_events:{type:"select",name:"Pointer Events",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"no-pointer-events\t",name:"None",html:n.bm.makeText("None",{attributes:{title:"None"}})},{key:"all-pointer-events\t",name:"All",html:n.bm.makeText("All",{attributes:{title:"All"}})}]},cursor:{type:"select",name:"Cursor",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"cursor-pointer",name:"Pointer",html:n.bm.makeText("Pointer",{attributes:{title:"Pointer"}})},{key:"cursor-not-allowed",name:"Not Allowed",html:n.bm.makeText("Not Allowed",{attributes:{title:"Not Allowed"}})},{key:"cursor-inherit",name:"Inherit",html:n.bm.makeText("Inherit",{attributes:{title:"Inherit"}})},{key:"cursor-none",name:"None",html:n.bm.makeText("None",{attributes:{title:"None"}})}]}}},elevation:{name:"Elevation",compact:!0,fields:{shadow:{type:"select",name:"Shadow",action:"apply_class",show_empty:!0,draggable_list:!0,options:function(){for(var t=[{key:"no-shadow",name:"No Shadow"},{key:"inset-shadow",name:"Inset Shadow"},{key:"inset-shadow-down",name:"Inset Shadow Down"}],e=0;e<=24;e++)t.push({key:"shadow-"+e,name:"shadow-"+e});for(e=0;e<=24;e++)t.push({key:"shadow-up-"+e,name:"shadow-up-"+e});return t}},shadow_transition:{type:"checkbox",name:"Shadow Transition",action:"apply_class",value:"shadow-transition"}}},border:{name:"Border",fields:{border_radius:{type:"select",name:"Border Radius",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"rounded-borders",name:"Rounded Borders",html:n.bm.makeText("Rounded Borders",{attributes:{title:"Rounded Borders"}})},{key:"border-radius-inherit",name:"Border Radius Inherit",html:n.bm.makeText("Border Radius Inherit",{attributes:{title:"Border Radius Inherit"}})},{key:"no-border-radius",name:"No Border Radius",html:n.bm.makeText("No Border Radius",{attributes:{title:"No Border Radius"}})}]},no_border:{type:"checkbox",name:"No Border",action:"apply_class",value:"no-border"},no_border_shadow:{type:"checkbox",name:"No Border Shadow",action:"apply_class",value:"no-border-shadow"},no_outline:{type:"checkbox",name:"No Outline",action:"apply_class",value:"no-outline"}}},flexcontainer:{name:"Flex / Row / Column",on_section_shown:n.vz,fields:{flex_direction:{type:"custom",name:"flex_direction",action:"none",control:(0,n.ac)("flex.direction","Direction",(function(t,e){return{type:"select",name:(0,n.qV)("Direction",t),action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"flex"+(e||""),name:"Flex",html:n.bm.makeIcon("Pin22",{attributes:{title:"Flex"}})},{key:"row"+(e||""),name:"Row",html:n.bm.makeIcon("225",{attributes:{title:"Row"}})},{key:"column"+(e||""),name:"Column",html:n.bm.makeIcon("227",{attributes:{title:"Column"}})}]}}))},flex_display:{type:"custom",name:"Display",action:"none",control:(0,n.ac)("flex_display","Display",(function(t,e){return{type:"checkbox",name:"Inline flex",action:"apply_class",value:"inline"+(e||"")}}))},flex_reverse:{type:"custom",name:"Direction",action:"none",control:(0,n.ac)("flex_reverse","Direction",(function(t,e){return{type:"checkbox",name:"Reverse",action:"apply_class",value:"reverse"+(e||"")}}))},flex_justify_content:{type:"custom",name:"Justify content",action:"none",control:(0,n.ac)("flex_justify_content","Justify content",(function(t,e){var i="justify"+(e||"")+"-";return{type:"select",name:(0,n.qV)("Justify content",t),action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:i+"start",name:"",html:n.bm.makeIcon("223",{attributes:{title:"Start"}})},{key:i+"end",name:"",html:n.bm.makeIcon("218",{attributes:{title:"End"}})},{key:i+"center",name:"",html:n.bm.makeIcon("219",{attributes:{title:"Center"}})},{key:i+"between",name:"",html:n.bm.makeIcon("206",{attributes:{title:"Between"}})},{key:i+"around",name:"",html:n.bm.makeIcon("205",{attributes:{title:"Around"}})},{key:i+"evenly",name:"",html:n.bm.makeIcon("205",{attributes:{title:"Evenly"}})}]}}))},flex_align_items:{type:"custom",name:"Align items",action:"none",control:(0,n.ac)("flex_align_items","Align items",(function(t,e){var i="items"+(e||"")+"-";return{type:"select",name:(0,n.qV)("Align items",t),action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:i+"start",name:"",html:n.bm.makeIcon("223",{attributes:{title:"Start"}})},{key:i+"end",name:"",html:n.bm.makeIcon("220",{attributes:{title:"End"}})},{key:i+"center",name:"",html:n.bm.makeIcon("221",{attributes:{title:"Center"}})},{key:i+"baseline",name:"",html:n.bm.makeIcon("212",{attributes:{title:"Baseline"}})},{key:i+"stretch",name:"",html:n.bm.makeIcon("214",{attributes:{title:"Stretch"}})}]}}))},flex_align_content:{type:"custom",name:"Align content",action:"none",control:(0,n.ac)("flex_align_content","Align content",(function(t,e){var i="content"+(e||"")+"-";return{type:"select",name:(0,n.qV)("Align content",t),action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:i+"start",name:"",html:n.bm.makeIcon("217",{attributes:{title:"Start"}})},{key:i+"end",name:"",html:n.bm.makeIcon("216",{attributes:{title:"End"}})},{key:i+"center",name:"",html:n.bm.makeIcon("215",{attributes:{title:"Center"}})},{key:i+"between",name:"",html:n.bm.makeIcon("210",{attributes:{title:"Between"}})},{key:i+"around",name:"",html:n.bm.makeIcon("209",{attributes:{title:"Around"}})},{key:i+"stretch",name:"",html:n.bm.makeIcon("214",{attributes:{title:"Stretch"}})}]}}))},flex_wrap:{type:"custom",name:"Wrap",action:"none",control:(0,n.ac)("flex_wrap","Wrap",(function(t,e){var i=e||"";return{type:"select",name:(0,n.qV)("Wrap",t),action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"no-wrap"+i,name:"",html:n.bm.makeIcon("203",{attributes:{title:"No wrap"}})},{key:"wrap"+i,name:"",html:n.bm.makeIcon("204",{attributes:{title:"Wrap"}})},{key:"reverse-wrap"+i,name:"",html:n.bm.makeIcon("202",{attributes:{title:"Wrap reverse"}})}]}}))}}},gutter:y("any")(),gutter_col:y("column")(),flexchild:(0,f.D)("flexchild")(),columns:(0,f.D)("column")(),transform:{name:"Transform and Transition",fields:{rotate:{type:"select",name:"Rotate by degrees",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"rotate-45",name:"rotate-45",html:n.bm.makeText("45",{attributes:{title:"45"}})},{key:"rotate-90",name:"rotate-90",html:n.bm.makeText("90",{attributes:{title:"90"}})},{key:"rotate-135",name:"rotate-135",html:n.bm.makeText("135",{attributes:{title:"135"}})},{key:"rotate-180",name:"rotate-180",html:n.bm.makeText("180",{attributes:{title:"180"}})},{key:"rotate-225",name:"rotate-225",html:n.bm.makeText("225",{attributes:{title:"225"}})},{key:"rotate-270",name:"rotate-270",html:n.bm.makeText("270",{attributes:{title:"270"}})},{key:"rotate-315",name:"rotate-315",html:n.bm.makeText("315",{attributes:{title:"315"}})},{key:"flip-horizontal",name:"flip-horizontal",html:n.bm.makeText("Flip Horizontal",{attributes:{title:"Flip Horizontal"}})},{key:"flip-vertical",name:"flip-vertical",html:n.bm.makeText("Flip Vertical",{attributes:{title:"Flip Vertical"}})}]},transition:{type:"select",name:"Transition",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"no-transition",name:"No Transition",html:n.bm.makeText("No Transition",{attributes:{title:"No Transition"}})},{key:"transition-0",name:"Transition 0s",html:n.bm.makeText("Transition 0s",{attributes:{title:"Transition 0s"}})}]}}}})});n.MS.addComponentType(b)},143:(t,e,i)=>{"use strict";i.d(e,{c:()=>Cs});var s=i(290);function n(t,e){return e?e.toUpperCase():""}var r=/-(\w)/g,o=function(t){return t&&t.replace(r,n)},a=function(t){return t.split("").map((function(t,e){return t.toUpperCase()===t?"".concat(0!==e?"-":"").concat(t.toLowerCase()):t})).map((function(t){return t.startsWith("-")&&!isNaN(+t[1])?t.replace("-",""):t})).join("")},l=i(681),c=i(461),h=i(408),u=i(841),p=i(199);const d=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},f={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},m=t=>t.replace(/[[\]\\-]/g,"\\$&"),g=t=>t.join(""),y=(t,e)=>{const i=e;if("["!==t.charAt(i))throw new Error("not in a brace expression");const s=[],n=[];let r=i+1,o=!1,a=!1,l=!1,c=!1,h=i,u="";t:for(;r<t.length;){const e=t.charAt(r);if("!"!==e&&"^"!==e||r!==i+1){if("]"===e&&o&&!l){h=r+1;break}if(o=!0,"\\"!==e||l){if("["===e&&!l)for(const[e,[o,l,c]]of Object.entries(f))if(t.startsWith(e,r)){if(u)return["$.",!1,t.length-i,!0];r+=e.length,c?n.push(o):s.push(o),a=a||l;continue t}l=!1,u?(e>u?s.push(m(u)+"-"+m(e)):e===u&&s.push(m(e)),u="",r++):t.startsWith("-]",r+1)?(s.push(m(e+"-")),r+=2):t.startsWith("-",r+1)?(u=e,r+=2):(s.push(m(e)),r++)}else l=!0,r++}else c=!0,r++}if(h<r)return["",!1,0,!1];if(!s.length&&!n.length)return["$.",!1,t.length-i,!0];if(0===n.length&&1===s.length&&/^\\?.$/.test(s[0])&&!c){return[(p=2===s[0].length?s[0].slice(-1):s[0],p.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,h-i,!1]}var p;const d="["+(c?"^":"")+g(s)+"]",y="["+(c?"":"^")+g(n)+"]";return[s.length&&n.length?"("+d+"|"+y+")":s.length?d:y,a,h-i,!0]},b=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),v=new Set(["!","?","+","*","@"]),w=t=>v.has(t),k="(?!\\.)",_=new Set(["[","."]),x=new Set(["..","."]),S=new Set("().*{}+?[]^$\\!"),T="[^/]",C=T+"*?",A=T+"+?";class E{type;#t;#e;#i=!1;#s=[];#n;#r;#o;#a=!1;#l;#c;#h=!1;constructor(t,e,i={}){this.type=t,t&&(this.#e=!0),this.#n=e,this.#t=this.#n?this.#n.#t:this,this.#l=this.#t===this?i:this.#t.#l,this.#o=this.#t===this?[]:this.#t.#o,"!"!==t||this.#t.#a||this.#o.push(this),this.#r=this.#n?this.#n.#s.length:0}get hasMagic(){if(void 0!==this.#e)return this.#e;for(const t of this.#s)if("string"!=typeof t&&(t.type||t.hasMagic))return this.#e=!0;return this.#e}toString(){return void 0!==this.#c?this.#c:this.type?this.#c=this.type+"("+this.#s.map((t=>String(t))).join("|")+")":this.#c=this.#s.map((t=>String(t))).join("")}#u(){if(this!==this.#t)throw new Error("should only call on root");if(this.#a)return this;let t;for(this.toString(),this.#a=!0;t=this.#o.pop();){if("!"!==t.type)continue;let e=t,i=e.#n;for(;i;){for(let s=e.#r+1;!i.type&&s<i.#s.length;s++)for(const e of t.#s){if("string"==typeof e)throw new Error("string part in extglob AST??");e.copyIn(i.#s[s])}e=i,i=e.#n}}return this}push(...t){for(const e of t)if(""!==e){if("string"!=typeof e&&!(e instanceof E&&e.#n===this))throw new Error("invalid part: "+e);this.#s.push(e)}}toJSON(){const t=null===this.type?this.#s.slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...this.#s.map((t=>t.toJSON()))];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#t||this.#t.#a&&"!"===this.#n?.type)&&t.push({}),t}isStart(){if(this.#t===this)return!0;if(!this.#n?.isStart())return!1;if(0===this.#r)return!0;const t=this.#n;for(let e=0;e<this.#r;e++){const i=t.#s[e];if(!(i instanceof E&&"!"===i.type))return!1}return!0}isEnd(){if(this.#t===this)return!0;if("!"===this.#n?.type)return!0;if(!this.#n?.isEnd())return!1;if(!this.type)return this.#n?.isEnd();const t=this.#n?this.#n.#s.length:0;return this.#r===t-1}copyIn(t){"string"==typeof t?this.push(t):this.push(t.clone(this))}clone(t){const e=new E(this.type,t);for(const t of this.#s)e.copyIn(t);return e}static#p(t,e,i,s){let n=!1,r=!1,o=-1,a=!1;if(null===e.type){let l=i,c="";for(;l<t.length;){const i=t.charAt(l++);if(n||"\\"===i)n=!n,c+=i;else if(r)l===o+1?"^"!==i&&"!"!==i||(a=!0):"]"!==i||l===o+2&&a||(r=!1),c+=i;else if("["!==i)if(s.noext||!w(i)||"("!==t.charAt(l))c+=i;else{e.push(c),c="";const n=new E(i,e);l=E.#p(t,n,l,s),e.push(n)}else r=!0,o=l,a=!1,c+=i}return e.push(c),l}let l=i+1,c=new E(null,e);const h=[];let u="";for(;l<t.length;){const i=t.charAt(l++);if(n||"\\"===i)n=!n,u+=i;else if(r)l===o+1?"^"!==i&&"!"!==i||(a=!0):"]"!==i||l===o+2&&a||(r=!1),u+=i;else if("["!==i)if(w(i)&&"("===t.charAt(l)){c.push(u),u="";const e=new E(i,c);c.push(e),l=E.#p(t,e,l,s)}else if("|"!==i){if(")"===i)return""===u&&0===e.#s.length&&(e.#h=!0),c.push(u),u="",e.push(...h,c),l;u+=i}else c.push(u),u="",h.push(c),c=new E(null,e);else r=!0,o=l,a=!1,u+=i}return e.type=null,e.#e=void 0,e.#s=[t.substring(i-1)],l}static fromGlob(t,e={}){const i=new E(null,void 0,e);return E.#p(t,i,0,e),i}toMMPattern(){if(this!==this.#t)return this.#t.toMMPattern();const t=this.toString(),[e,i,s,n]=this.toRegExpSource();if(!(s||this.#e||this.#l.nocase&&!this.#l.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const r=(this.#l.nocase?"i":"")+(n?"u":"");return Object.assign(new RegExp(`^${e}$`,r),{_src:e,_glob:t})}get options(){return this.#l}toRegExpSource(t){const e=t??!!this.#l.dot;if(this.#t===this&&this.#u(),!this.type){const i=this.isStart()&&this.isEnd(),s=this.#s.map((e=>{const[s,n,r,o]="string"==typeof e?E.#d(e,this.#e,i):e.toRegExpSource(t);return this.#e=this.#e||r,this.#i=this.#i||o,s})).join("");let n="";if(this.isStart()&&"string"==typeof this.#s[0]&&(1!==this.#s.length||!x.has(this.#s[0]))){const i=_,r=e&&i.has(s.charAt(0))||s.startsWith("\\.")&&i.has(s.charAt(2))||s.startsWith("\\.\\.")&&i.has(s.charAt(4)),o=!e&&!t&&i.has(s.charAt(0));n=r?"(?!(?:^|/)\\.\\.?(?:$|/))":o?k:""}let r="";return this.isEnd()&&this.#t.#a&&"!"===this.#n?.type&&(r="(?:$|\\/)"),[n+s+r,b(s),this.#e=!!this.#e,this.#i]}const i="*"===this.type||"+"===this.type,s="!"===this.type?"(?:(?!(?:":"(?:";let n=this.#f(e);if(this.isStart()&&this.isEnd()&&!n&&"!"!==this.type){const t=this.toString();return this.#s=[t],this.type=null,this.#e=void 0,[t,b(this.toString()),!1,!1]}let r=!i||t||e?"":this.#f(!0);r===n&&(r=""),r&&(n=`(?:${n})(?:${r})*?`);let o="";return o="!"===this.type&&this.#h?(this.isStart()&&!e?k:"")+A:s+n+("!"===this.type?"))"+(!this.isStart()||e||t?"":k)+C+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&r?")":"*"===this.type&&r?")?":`)${this.type}`),[o,b(n),this.#e=!!this.#e,this.#i]}#f(t){return this.#s.map((e=>{if("string"==typeof e)throw new Error("string type in extglob ast??");const[i,s,n,r]=e.toRegExpSource(t);return this.#i=this.#i||r,i})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")}static#d(t,e,i=!1){let s=!1,n="",r=!1;for(let o=0;o<t.length;o++){const a=t.charAt(o);if(s)s=!1,n+=(S.has(a)?"\\":"")+a;else if("\\"!==a){if("["===a){const[i,s,a,l]=y(t,o);if(a){n+=i,r=r||s,o+=a-1,e=e||l;continue}}"*"!==a?"?"!==a?n+=a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(n+=T,e=!0):(n+=i&&"*"===t?A:C,e=!0)}else o===t.length-1?n+="\\\\":s=!0}return[n,b(t),!!e,r]}}const O=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),M=(t,e,i={})=>(d(e),!(!i.nocomment&&"#"===e.charAt(0))&&new it(e,i).match(t)),P=/^\*+([^+@!?\*\[\(]*)$/,L=t=>e=>!e.startsWith(".")&&e.endsWith(t),F=t=>e=>e.endsWith(t),j=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),D=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),z=/^\*+\.\*+$/,I=t=>!t.startsWith(".")&&t.includes("."),R=t=>"."!==t&&".."!==t&&t.includes("."),B=/^\.\*+$/,N=t=>"."!==t&&".."!==t&&t.startsWith("."),W=/^\*+$/,$=t=>0!==t.length&&!t.startsWith("."),U=t=>0!==t.length&&"."!==t&&".."!==t,q=/^\?+([^+@!?\*\[\(]*)?$/,H=([t,e=""])=>{const i=Q([t]);return e?(e=e.toLowerCase(),t=>i(t)&&t.toLowerCase().endsWith(e)):i},G=([t,e=""])=>{const i=J([t]);return e?(e=e.toLowerCase(),t=>i(t)&&t.toLowerCase().endsWith(e)):i},Y=([t,e=""])=>{const i=J([t]);return e?t=>i(t)&&t.endsWith(e):i},V=([t,e=""])=>{const i=Q([t]);return e?t=>i(t)&&t.endsWith(e):i},Q=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},J=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},Z="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";M.sep="win32"===Z?"\\":"/";const X=Symbol("globstar **");M.GLOBSTAR=X,M.filter=(t,e={})=>i=>M(i,t,e);const K=(t,e={})=>Object.assign({},t,e);M.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return M;const e=M;return Object.assign(((i,s,n={})=>e(i,s,K(t,n))),{Minimatch:class extends e.Minimatch{constructor(e,i={}){super(e,K(t,i))}static defaults(i){return e.defaults(K(t,i)).Minimatch}},AST:class extends e.AST{constructor(e,i,s={}){super(e,i,K(t,s))}static fromGlob(i,s={}){return e.AST.fromGlob(i,K(t,s))}},unescape:(i,s={})=>e.unescape(i,K(t,s)),escape:(i,s={})=>e.escape(i,K(t,s)),filter:(i,s={})=>e.filter(i,K(t,s)),defaults:i=>e.defaults(K(t,i)),makeRe:(i,s={})=>e.makeRe(i,K(t,s)),braceExpand:(i,s={})=>e.braceExpand(i,K(t,s)),match:(i,s,n={})=>e.match(i,s,K(t,n)),sep:e.sep,GLOBSTAR:X})};const tt=(t,e={})=>(d(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:p(t));M.braceExpand=tt,M.makeRe=(t,e={})=>new it(t,e).makeRe(),M.match=(t,e,i={})=>{const s=new it(e,i);return t=t.filter((t=>s.match(t))),s.options.nonull&&!t.length&&t.push(e),t};const et=/[?*]|[+@!]\(.*?\)|\[|\]/;class it{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){d(t),e=e||{},this.options=e,this.pattern=t,this.platform=e.platform||Z,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);const i=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let s=this.globParts.map(((t,e,i)=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&et.test(t[2])||et.test(t[3])),i=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(i)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,s),this.set=s.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let i=0;i<t[e].length;i++)"**"===t[e][i]&&(t[e][i]="*");const{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let i=e;for(;"**"===t[i+1];)i++;i!==e&&t.splice(e,i-e)}return t}))}levelOneOptimize(t){return t.map((t=>0===(t=t.reduce(((t,e)=>{const i=t[t.length-1];return"**"===e&&"**"===i?t:".."===e&&i&&".."!==i&&"."!==i&&"**"!==i?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){const s=t[i];1===i&&""===s&&""===t[0]||"."!==s&&""!==s||(e=!0,t.splice(i,1),i--)}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let i=0;for(;-1!==(i=t.indexOf("..",i+1));){const s=t[i-1];s&&"."!==s&&".."!==s&&"**"!==s&&(e=!0,t.splice(i-1,2),i-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let i of t){let s=-1;for(;-1!==(s=i.indexOf("**",s+1));){let n=s;for(;"**"===i[n+1];)n++;n>s&&i.splice(s+1,n-s);let r=i[s+1];const o=i[s+2],a=i[s+3];if(".."!==r)continue;if(!o||"."===o||".."===o||!a||"."===a||".."===a)continue;e=!0,i.splice(s,1);const l=i.slice(0);l[s]="**",t.push(l),s--}if(!this.preserveMultipleSlashes){for(let t=1;t<i.length-1;t++){const s=i[t];1===t&&""===s&&""===i[0]||"."!==s&&""!==s||(e=!0,i.splice(t,1),t--)}"."!==i[0]||2!==i.length||"."!==i[1]&&""!==i[1]||(e=!0,i.pop())}let n=0;for(;-1!==(n=i.indexOf("..",n+1));){const t=i[n-1];if(t&&"."!==t&&".."!==t&&"**"!==t){e=!0;const t=1===n&&"**"===i[n+1]?["."]:[];i.splice(n-1,2,...t),0===i.length&&i.push(""),n-=2}}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let i=e+1;i<t.length;i++){const s=this.partsMatch(t[e],t[i],!this.preserveMultipleSlashes);if(s){t[e]=[],t[i]=s;break}}return t.filter((t=>t.length))}partsMatch(t,e,i=!1){let s=0,n=0,r=[],o="";for(;s<t.length&&n<e.length;)if(t[s]===e[n])r.push("b"===o?e[n]:t[s]),s++,n++;else if(i&&"**"===t[s]&&e[n]===t[s+1])r.push(t[s]),s++;else if(i&&"**"===e[n]&&t[s]===e[n+1])r.push(e[n]),n++;else if("*"!==t[s]||!e[n]||!this.options.dot&&e[n].startsWith(".")||"**"===e[n]){if("*"!==e[n]||!t[s]||!this.options.dot&&t[s].startsWith(".")||"**"===t[s])return!1;if("a"===o)return!1;o="b",r.push(e[n]),s++,n++}else{if("b"===o)return!1;o="a",r.push(t[s]),s++,n++}return t.length===e.length&&r}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,i=0;for(let s=0;s<t.length&&"!"===t.charAt(s);s++)e=!e,i++;i&&(this.pattern=t.slice(i)),this.negate=e}matchOne(t,e,i=!1){const s=this.options;if(this.isWindows){const i="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),s=!i&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),n="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),r=s?3:i?0:void 0,o=!n&&""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])?3:n?0:void 0;if("number"==typeof r&&"number"==typeof o){const[i,s]=[t[r],e[o]];i.toLowerCase()===s.toLowerCase()&&(e[o]=i,o>r?e=e.slice(o):r>o&&(t=t.slice(r)))}}const{optimizationLevel:n=1}=this.options;n>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,o=0,a=t.length,l=e.length;r<a&&o<l;r++,o++){this.debug("matchOne loop");var c=e[o],h=t[r];if(this.debug(e,c,h),!1===c)return!1;if(c===X){this.debug("GLOBSTAR",[e,c,h]);var u=r,p=o+1;if(p===l){for(this.debug("** at the end");r<a;r++)if("."===t[r]||".."===t[r]||!s.dot&&"."===t[r].charAt(0))return!1;return!0}for(;u<a;){var d=t[u];if(this.debug("\nglobstar while",t,u,e,p,d),this.matchOne(t.slice(u),e.slice(p),i))return this.debug("globstar found match!",u,a,d),!0;if("."===d||".."===d||!s.dot&&"."===d.charAt(0)){this.debug("dot detected!",t,u,e,p);break}this.debug("globstar swallow a segment, and continue"),u++}return!(!i||(this.debug("\n>>> no match, partial?",t,u,e,p),u!==a))}let n;if("string"==typeof c?(n=h===c,this.debug("string match",c,h,n)):(n=c.test(h),this.debug("pattern match",c,h,n)),!n)return!1}if(r===a&&o===l)return!0;if(r===a)return i;if(o===l)return r===a-1&&""===t[r];throw new Error("wtf?")}braceExpand(){return tt(this.pattern,this.options)}parse(t){d(t);const e=this.options;if("**"===t)return X;if(""===t)return"";let i,s=null;(i=t.match(W))?s=e.dot?U:$:(i=t.match(P))?s=(e.nocase?e.dot?D:j:e.dot?F:L)(i[1]):(i=t.match(q))?s=(e.nocase?e.dot?G:H:e.dot?Y:V)(i):(i=t.match(z))?s=e.dot?R:I:(i=t.match(B))&&(s=N);const n=E.fromGlob(t,this.options).toMMPattern();return s&&"object"==typeof n&&Reflect.defineProperty(n,"test",{value:s}),n}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,i=e.noglobstar?"[^/]*?":e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",s=new Set(e.nocase?["i"]:[]);let n=t.map((t=>{const e=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))s.add(e);return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):t===X?X:t._src}));return e.forEach(((t,s)=>{const n=e[s+1],r=e[s-1];t===X&&r!==X&&(void 0===r?void 0!==n&&n!==X?e[s+1]="(?:\\/|"+i+"\\/)?"+n:e[s]=i:void 0===n?e[s-1]=r+"(?:\\/|"+i+")?":n!==X&&(e[s-1]=r+"(?:\\/|\\/"+i+"\\/)"+n,e[s+1]=X))})),e.filter((t=>t!==X)).join("/")})).join("|");const[r,o]=t.length>1?["(?:",")"]:["",""];n="^"+r+n+o+"$",this.negate&&(n="^(?!"+n+").+$");try{this.regexp=new RegExp(n,[...s].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const i=this.options;this.isWindows&&(t=t.split("\\").join("/"));const s=this.slashSplit(t);this.debug(this.pattern,"split",s);const n=this.set;this.debug(this.pattern,"set",n);let r=s[s.length-1];if(!r)for(let t=s.length-2;!r&&t>=0;t--)r=s[t];for(let t=0;t<n.length;t++){const o=n[t];let a=s;if(i.matchBase&&1===o.length&&(a=[r]),this.matchOne(a,o,e))return!!i.flipNegate||!this.negate}return!i.flipNegate&&this.negate}static defaults(t){return M.defaults(t).Minimatch}}M.AST=E,M.Minimatch=it,M.escape=O,M.unescape=b;const st=require("node:url"),nt="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,rt=new Set,ot="object"==typeof process&&process?process:{},at=(t,e,i,s)=>{"function"==typeof ot.emitWarning?ot.emitWarning(t,e,i,s):console.error(`[${i}] ${e}: ${t}`)};let lt=globalThis.AbortController,ct=globalThis.AbortSignal;if(void 0===lt){ct=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(t,e){this._onabort.push(e)}},lt=class{constructor(){e()}signal=new ct;abort(t){if(!this.signal.aborted){this.signal.reason=t,this.signal.aborted=!0;for(const e of this.signal._onabort)e(t);this.signal.onabort?.(t)}}};let t="1"!==ot.env?.LRU_CACHE_IGNORE_AC_WARNING;const e=()=>{t&&(t=!1,at("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}Symbol("type");const ht=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),ut=t=>ht(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?pt:null:null;class pt extends Array{constructor(t){super(t),this.fill(0)}}class dt{heap;length;static#m=!1;static create(t){const e=ut(t);if(!e)return[];dt.#m=!0;const i=new dt(t,e);return dt.#m=!1,i}constructor(t,e){if(!dt.#m)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class ft{#g;#y;#b;#v;#w;#k;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#_;#x;#S;#T;#C;#A;#E;#O;#M;#P;#L;#F;#j;#D;#z;#I;#R;static unsafeExposeInternals(t){return{starts:t.#j,ttls:t.#D,sizes:t.#F,keyMap:t.#S,keyList:t.#T,valList:t.#C,next:t.#A,prev:t.#E,get head(){return t.#O},get tail(){return t.#M},free:t.#P,isBackgroundFetch:e=>t.#B(e),backgroundFetch:(e,i,s,n)=>t.#N(e,i,s,n),moveToTail:e=>t.#W(e),indexes:e=>t.#$(e),rindexes:e=>t.#U(e),isStale:e=>t.#q(e)}}get max(){return this.#g}get maxSize(){return this.#y}get calculatedSize(){return this.#x}get size(){return this.#_}get fetchMethod(){return this.#w}get memoMethod(){return this.#k}get dispose(){return this.#b}get disposeAfter(){return this.#v}constructor(t){const{max:e=0,ttl:i,ttlResolution:s=1,ttlAutopurge:n,updateAgeOnGet:r,updateAgeOnHas:o,allowStale:a,dispose:l,disposeAfter:c,noDisposeOnSet:h,noUpdateTTL:u,maxSize:p=0,maxEntrySize:d=0,sizeCalculation:f,fetchMethod:m,memoMethod:g,noDeleteOnFetchRejection:y,noDeleteOnStaleGet:b,allowStaleOnFetchRejection:v,allowStaleOnFetchAbort:w,ignoreFetchAbort:k}=t;if(0!==e&&!ht(e))throw new TypeError("max option must be a nonnegative integer");const _=e?ut(e):Array;if(!_)throw new Error("invalid max value: "+e);if(this.#g=e,this.#y=p,this.maxEntrySize=d||this.#y,this.sizeCalculation=f,this.sizeCalculation){if(!this.#y&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==g&&"function"!=typeof g)throw new TypeError("memoMethod must be a function if defined");if(this.#k=g,void 0!==m&&"function"!=typeof m)throw new TypeError("fetchMethod must be a function if specified");if(this.#w=m,this.#I=!!m,this.#S=new Map,this.#T=new Array(e).fill(void 0),this.#C=new Array(e).fill(void 0),this.#A=new _(e),this.#E=new _(e),this.#O=0,this.#M=0,this.#P=dt.create(e),this.#_=0,this.#x=0,"function"==typeof l&&(this.#b=l),"function"==typeof c?(this.#v=c,this.#L=[]):(this.#v=void 0,this.#L=void 0),this.#z=!!this.#b,this.#R=!!this.#v,this.noDisposeOnSet=!!h,this.noUpdateTTL=!!u,this.noDeleteOnFetchRejection=!!y,this.allowStaleOnFetchRejection=!!v,this.allowStaleOnFetchAbort=!!w,this.ignoreFetchAbort=!!k,0!==this.maxEntrySize){if(0!==this.#y&&!ht(this.#y))throw new TypeError("maxSize must be a positive integer if specified");if(!ht(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#H()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!b,this.updateAgeOnGet=!!r,this.updateAgeOnHas=!!o,this.ttlResolution=ht(s)||0===s?s:1,this.ttlAutopurge=!!n,this.ttl=i||0,this.ttl){if(!ht(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#G()}if(0===this.#g&&0===this.ttl&&0===this.#y)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#g&&!this.#y){const t="LRU_CACHE_UNBOUNDED";(t=>!rt.has(t))(t)&&(rt.add(t),at("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,ft))}}getRemainingTTL(t){return this.#S.has(t)?1/0:0}#G(){const t=new pt(this.#g),e=new pt(this.#g);this.#D=t,this.#j=e,this.#Y=(i,s,n=nt.now())=>{if(e[i]=0!==s?n:0,t[i]=s,0!==s&&this.ttlAutopurge){const t=setTimeout((()=>{this.#q(i)&&this.#V(this.#T[i],"expire")}),s+1);t.unref&&t.unref()}},this.#Q=i=>{e[i]=0!==t[i]?nt.now():0},this.#J=(n,r)=>{if(t[r]){const o=t[r],a=e[r];if(!o||!a)return;n.ttl=o,n.start=a,n.now=i||s();const l=n.now-a;n.remainingTTL=o-l}};let i=0;const s=()=>{const t=nt.now();if(this.ttlResolution>0){i=t;const e=setTimeout((()=>i=0),this.ttlResolution);e.unref&&e.unref()}return t};this.getRemainingTTL=n=>{const r=this.#S.get(n);if(void 0===r)return 0;const o=t[r],a=e[r];return o&&a?o-((i||s())-a):1/0},this.#q=n=>{const r=e[n],o=t[n];return!!o&&!!r&&(i||s())-r>o}}#Q=()=>{};#J=()=>{};#Y=()=>{};#q=()=>!1;#H(){const t=new pt(this.#g);this.#x=0,this.#F=t,this.#Z=e=>{this.#x-=t[e],t[e]=0},this.#X=(t,e,i,s)=>{if(this.#B(e))return 0;if(!ht(i)){if(!s)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof s)throw new TypeError("sizeCalculation must be a function");if(i=s(e,t),!ht(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return i},this.#K=(e,i,s)=>{if(t[e]=i,this.#y){const i=this.#y-t[e];for(;this.#x>i;)this.#tt(!0)}this.#x+=t[e],s&&(s.entrySize=i,s.totalCalculatedSize=this.#x)}}#Z=t=>{};#K=(t,e,i)=>{};#X=(t,e,i,s)=>{if(i||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#$({allowStale:t=this.allowStale}={}){if(this.#_)for(let e=this.#M;this.#et(e)&&(!t&&this.#q(e)||(yield e),e!==this.#O);)e=this.#E[e]}*#U({allowStale:t=this.allowStale}={}){if(this.#_)for(let e=this.#O;this.#et(e)&&(!t&&this.#q(e)||(yield e),e!==this.#M);)e=this.#A[e]}#et(t){return void 0!==t&&this.#S.get(this.#T[t])===t}*entries(){for(const t of this.#$())void 0===this.#C[t]||void 0===this.#T[t]||this.#B(this.#C[t])||(yield[this.#T[t],this.#C[t]])}*rentries(){for(const t of this.#U())void 0===this.#C[t]||void 0===this.#T[t]||this.#B(this.#C[t])||(yield[this.#T[t],this.#C[t]])}*keys(){for(const t of this.#$()){const e=this.#T[t];void 0===e||this.#B(this.#C[t])||(yield e)}}*rkeys(){for(const t of this.#U()){const e=this.#T[t];void 0===e||this.#B(this.#C[t])||(yield e)}}*values(){for(const t of this.#$())void 0===this.#C[t]||this.#B(this.#C[t])||(yield this.#C[t])}*rvalues(){for(const t of this.#U())void 0===this.#C[t]||this.#B(this.#C[t])||(yield this.#C[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,e={}){for(const i of this.#$()){const s=this.#C[i],n=this.#B(s)?s.__staleWhileFetching:s;if(void 0!==n&&t(n,this.#T[i],this))return this.get(this.#T[i],e)}}forEach(t,e=this){for(const i of this.#$()){const s=this.#C[i],n=this.#B(s)?s.__staleWhileFetching:s;void 0!==n&&t.call(e,n,this.#T[i],this)}}rforEach(t,e=this){for(const i of this.#U()){const s=this.#C[i],n=this.#B(s)?s.__staleWhileFetching:s;void 0!==n&&t.call(e,n,this.#T[i],this)}}purgeStale(){let t=!1;for(const e of this.#U({allowStale:!0}))this.#q(e)&&(this.#V(this.#T[e],"expire"),t=!0);return t}info(t){const e=this.#S.get(t);if(void 0===e)return;const i=this.#C[e],s=this.#B(i)?i.__staleWhileFetching:i;if(void 0===s)return;const n={value:s};if(this.#D&&this.#j){const t=this.#D[e],i=this.#j[e];if(t&&i){const e=t-(nt.now()-i);n.ttl=e,n.start=Date.now()}}return this.#F&&(n.size=this.#F[e]),n}dump(){const t=[];for(const e of this.#$({allowStale:!0})){const i=this.#T[e],s=this.#C[e],n=this.#B(s)?s.__staleWhileFetching:s;if(void 0===n||void 0===i)continue;const r={value:n};if(this.#D&&this.#j){r.ttl=this.#D[e];const t=nt.now()-this.#j[e];r.start=Math.floor(Date.now()-t)}this.#F&&(r.size=this.#F[e]),t.unshift([i,r])}return t}load(t){this.clear();for(const[e,i]of t){if(i.start){const t=Date.now()-i.start;i.start=nt.now()-t}this.set(e,i.value,i)}}set(t,e,i={}){if(void 0===e)return this.delete(t),this;const{ttl:s=this.ttl,start:n,noDisposeOnSet:r=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:a}=i;let{noUpdateTTL:l=this.noUpdateTTL}=i;const c=this.#X(t,e,i.size||0,o);if(this.maxEntrySize&&c>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#V(t,"set"),this;let h=0===this.#_?void 0:this.#S.get(t);if(void 0===h)h=0===this.#_?this.#M:0!==this.#P.length?this.#P.pop():this.#_===this.#g?this.#tt(!1):this.#_,this.#T[h]=t,this.#C[h]=e,this.#S.set(t,h),this.#A[this.#M]=h,this.#E[h]=this.#M,this.#M=h,this.#_++,this.#K(h,c,a),a&&(a.set="add"),l=!1;else{this.#W(h);const i=this.#C[h];if(e!==i){if(this.#I&&this.#B(i)){i.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:e}=i;void 0===e||r||(this.#z&&this.#b?.(e,t,"set"),this.#R&&this.#L?.push([e,t,"set"]))}else r||(this.#z&&this.#b?.(i,t,"set"),this.#R&&this.#L?.push([i,t,"set"]));if(this.#Z(h),this.#K(h,c,a),this.#C[h]=e,a){a.set="replace";const t=i&&this.#B(i)?i.__staleWhileFetching:i;void 0!==t&&(a.oldValue=t)}}else a&&(a.set="update")}if(0===s||this.#D||this.#G(),this.#D&&(l||this.#Y(h,s,n),a&&this.#J(a,h)),!r&&this.#R&&this.#L){const t=this.#L;let e;for(;e=t?.shift();)this.#v?.(...e)}return this}pop(){try{for(;this.#_;){const t=this.#C[this.#O];if(this.#tt(!0),this.#B(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if(this.#R&&this.#L){const t=this.#L;let e;for(;e=t?.shift();)this.#v?.(...e)}}}#tt(t){const e=this.#O,i=this.#T[e],s=this.#C[e];return this.#I&&this.#B(s)?s.__abortController.abort(new Error("evicted")):(this.#z||this.#R)&&(this.#z&&this.#b?.(s,i,"evict"),this.#R&&this.#L?.push([s,i,"evict"])),this.#Z(e),t&&(this.#T[e]=void 0,this.#C[e]=void 0,this.#P.push(e)),1===this.#_?(this.#O=this.#M=0,this.#P.length=0):this.#O=this.#A[e],this.#S.delete(i),this.#_--,e}has(t,e={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=e,n=this.#S.get(t);if(void 0!==n){const t=this.#C[n];if(this.#B(t)&&void 0===t.__staleWhileFetching)return!1;if(!this.#q(n))return i&&this.#Q(n),s&&(s.has="hit",this.#J(s,n)),!0;s&&(s.has="stale",this.#J(s,n))}else s&&(s.has="miss");return!1}peek(t,e={}){const{allowStale:i=this.allowStale}=e,s=this.#S.get(t);if(void 0===s||!i&&this.#q(s))return;const n=this.#C[s];return this.#B(n)?n.__staleWhileFetching:n}#N(t,e,i,s){const n=void 0===e?void 0:this.#C[e];if(this.#B(n))return n;const r=new lt,{signal:o}=i;o?.addEventListener("abort",(()=>r.abort(o.reason)),{signal:r.signal});const a={signal:r.signal,options:i,context:s},l=(s,n=!1)=>{const{aborted:o}=r.signal,l=i.ignoreFetchAbort&&void 0!==s;if(i.status&&(o&&!n?(i.status.fetchAborted=!0,i.status.fetchError=r.signal.reason,l&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),o&&!l&&!n)return c(r.signal.reason);const u=h;return this.#C[e]===h&&(void 0===s?u.__staleWhileFetching?this.#C[e]=u.__staleWhileFetching:this.#V(t,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(t,s,a.options))),s},c=s=>{const{aborted:n}=r.signal,o=n&&i.allowStaleOnFetchAbort,a=o||i.allowStaleOnFetchRejection,l=a||i.noDeleteOnFetchRejection,c=h;if(this.#C[e]===h&&(l&&void 0!==c.__staleWhileFetching?o||(this.#C[e]=c.__staleWhileFetching):this.#V(t,"fetch")),a)return i.status&&void 0!==c.__staleWhileFetching&&(i.status.returnedStale=!0),c.__staleWhileFetching;if(c.__returned===c)throw s};i.status&&(i.status.fetchDispatched=!0);const h=new Promise(((e,s)=>{const o=this.#w?.(t,n,a);o&&o instanceof Promise&&o.then((t=>e(void 0===t?void 0:t)),s),r.signal.addEventListener("abort",(()=>{i.ignoreFetchAbort&&!i.allowStaleOnFetchAbort||(e(void 0),i.allowStaleOnFetchAbort&&(e=t=>l(t,!0)))}))})).then(l,(t=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=t),c(t)))),u=Object.assign(h,{__abortController:r,__staleWhileFetching:n,__returned:void 0});return void 0===e?(this.set(t,u,{...a.options,status:void 0}),e=this.#S.get(t)):this.#C[e]=u,u}#B(t){if(!this.#I)return!1;const e=t;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof lt}async fetch(t,e={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:r=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:h=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:u=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:d=this.allowStaleOnFetchAbort,context:f,forceRefresh:m=!1,status:g,signal:y}=e;if(!this.#I)return g&&(g.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:n,status:g});const b={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:n,ttl:r,noDisposeOnSet:o,size:a,sizeCalculation:l,noUpdateTTL:c,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:u,allowStaleOnFetchAbort:d,ignoreFetchAbort:p,status:g,signal:y};let v=this.#S.get(t);if(void 0===v){g&&(g.fetch="miss");const e=this.#N(t,v,b,f);return e.__returned=e}{const e=this.#C[v];if(this.#B(e)){const t=i&&void 0!==e.__staleWhileFetching;return g&&(g.fetch="inflight",t&&(g.returnedStale=!0)),t?e.__staleWhileFetching:e.__returned=e}const n=this.#q(v);if(!m&&!n)return g&&(g.fetch="hit"),this.#W(v),s&&this.#Q(v),g&&this.#J(g,v),e;const r=this.#N(t,v,b,f),o=void 0!==r.__staleWhileFetching&&i;return g&&(g.fetch=n?"stale":"refresh",o&&n&&(g.returnedStale=!0)),o?r.__staleWhileFetching:r.__returned=r}}async forceFetch(t,e={}){const i=await this.fetch(t,e);if(void 0===i)throw new Error("fetch() returned undefined");return i}memo(t,e={}){const i=this.#k;if(!i)throw new Error("no memoMethod provided to constructor");const{context:s,forceRefresh:n,...r}=e,o=this.get(t,r);if(!n&&void 0!==o)return o;const a=i(t,o,{options:r,context:s});return this.set(t,a,r),a}get(t,e={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:r}=e,o=this.#S.get(t);if(void 0!==o){const e=this.#C[o],a=this.#B(e);return r&&this.#J(r,o),this.#q(o)?(r&&(r.get="stale"),a?(r&&i&&void 0!==e.__staleWhileFetching&&(r.returnedStale=!0),i?e.__staleWhileFetching:void 0):(n||this.#V(t,"expire"),r&&i&&(r.returnedStale=!0),i?e:void 0)):(r&&(r.get="hit"),a?e.__staleWhileFetching:(this.#W(o),s&&this.#Q(o),e))}r&&(r.get="miss")}#it(t,e){this.#E[e]=t,this.#A[t]=e}#W(t){t!==this.#M&&(t===this.#O?this.#O=this.#A[t]:this.#it(this.#E[t],this.#A[t]),this.#it(this.#M,t),this.#M=t)}delete(t){return this.#V(t,"delete")}#V(t,e){let i=!1;if(0!==this.#_){const s=this.#S.get(t);if(void 0!==s)if(i=!0,1===this.#_)this.#st(e);else{this.#Z(s);const i=this.#C[s];if(this.#B(i)?i.__abortController.abort(new Error("deleted")):(this.#z||this.#R)&&(this.#z&&this.#b?.(i,t,e),this.#R&&this.#L?.push([i,t,e])),this.#S.delete(t),this.#T[s]=void 0,this.#C[s]=void 0,s===this.#M)this.#M=this.#E[s];else if(s===this.#O)this.#O=this.#A[s];else{const t=this.#E[s];this.#A[t]=this.#A[s];const e=this.#A[s];this.#E[e]=this.#E[s]}this.#_--,this.#P.push(s)}}if(this.#R&&this.#L?.length){const t=this.#L;let e;for(;e=t?.shift();)this.#v?.(...e)}return i}clear(){return this.#st("delete")}#st(t){for(const e of this.#U({allowStale:!0})){const i=this.#C[e];if(this.#B(i))i.__abortController.abort(new Error("deleted"));else{const s=this.#T[e];this.#z&&this.#b?.(i,s,t),this.#R&&this.#L?.push([i,s,t])}}if(this.#S.clear(),this.#C.fill(void 0),this.#T.fill(void 0),this.#D&&this.#j&&(this.#D.fill(0),this.#j.fill(0)),this.#F&&this.#F.fill(0),this.#O=0,this.#M=0,this.#P.length=0,this.#x=0,this.#_=0,this.#R&&this.#L){const t=this.#L;let e;for(;e=t?.shift();)this.#v?.(...e)}}}const mt=require("node:path"),gt=require("fs"),yt=require("node:fs");var bt=i.t(yt,2);const vt=require("node:fs/promises"),wt=require("node:events"),kt=require("node:stream"),_t=require("node:string_decoder"),xt="object"==typeof process&&process?process:{stdout:null,stderr:null},St=t=>!!t&&"object"==typeof t&&(t instanceof le||t instanceof kt||Tt(t)||Ct(t)),Tt=t=>!!t&&"object"==typeof t&&t instanceof wt.EventEmitter&&"function"==typeof t.pipe&&t.pipe!==kt.Writable.prototype.pipe,Ct=t=>!!t&&"object"==typeof t&&t instanceof wt.EventEmitter&&"function"==typeof t.write&&"function"==typeof t.end,At=Symbol("EOF"),Et=Symbol("maybeEmitEnd"),Ot=Symbol("emittedEnd"),Mt=Symbol("emittingEnd"),Pt=Symbol("emittedError"),Lt=Symbol("closed"),Ft=Symbol("read"),jt=Symbol("flush"),Dt=Symbol("flushChunk"),zt=Symbol("encoding"),It=Symbol("decoder"),Rt=Symbol("flowing"),Bt=Symbol("paused"),Nt=Symbol("resume"),Wt=Symbol("buffer"),$t=Symbol("pipes"),Ut=Symbol("bufferLength"),qt=Symbol("bufferPush"),Ht=Symbol("bufferShift"),Gt=Symbol("objectMode"),Yt=Symbol("destroyed"),Vt=Symbol("error"),Qt=Symbol("emitData"),Jt=Symbol("emitEnd"),Zt=Symbol("emitEnd2"),Xt=Symbol("async"),Kt=Symbol("abort"),te=Symbol("aborted"),ee=Symbol("signal"),ie=Symbol("dataListeners"),se=Symbol("discarded"),ne=t=>Promise.resolve().then(t),re=t=>t();class oe{src;dest;opts;ondrain;constructor(t,e,i){this.src=t,this.dest=e,this.opts=i,this.ondrain=()=>t[Nt](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class ae extends oe{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,e,i){super(t,e,i),this.proxyErrors=t=>e.emit("error",t),t.on("error",this.proxyErrors)}}class le extends wt.EventEmitter{[Rt]=!1;[Bt]=!1;[$t]=[];[Wt]=[];[Gt];[zt];[Xt];[It];[At]=!1;[Ot]=!1;[Mt]=!1;[Lt]=!1;[Pt]=null;[Ut]=0;[Yt]=!1;[ee];[te]=!1;[ie]=0;[se]=!1;writable=!0;readable=!0;constructor(...t){const e=t[0]||{};if(super(),e.objectMode&&"string"==typeof e.encoding)throw new TypeError("Encoding and objectMode may not be used together");var i;e.objectMode?(this[Gt]=!0,this[zt]=null):!(i=e).objectMode&&i.encoding&&"buffer"!==i.encoding?(this[zt]=e.encoding,this[Gt]=!1):(this[Gt]=!1,this[zt]=null),this[Xt]=!!e.async,this[It]=this[zt]?new _t.StringDecoder(this[zt]):null,e&&!0===e.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[Wt]}),e&&!0===e.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[$t]});const{signal:s}=e;s&&(this[ee]=s,s.aborted?this[Kt]():s.addEventListener("abort",(()=>this[Kt]())))}get bufferLength(){return this[Ut]}get encoding(){return this[zt]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Gt]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Xt]}set async(t){this[Xt]=this[Xt]||!!t}[Kt](){this[te]=!0,this.emit("abort",this[ee]?.reason),this.destroy(this[ee]?.reason)}get aborted(){return this[te]}set aborted(t){}write(t,e,i){if(this[te])return!1;if(this[At])throw new Error("write after end");if(this[Yt])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof e&&(i=e,e="utf8"),e||(e="utf8");const s=this[Xt]?ne:re;if(!this[Gt]&&!Buffer.isBuffer(t))if(n=t,!Buffer.isBuffer(n)&&ArrayBuffer.isView(n))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if((t=>t instanceof ArrayBuffer||!!t&&"object"==typeof t&&t.constructor&&"ArrayBuffer"===t.constructor.name&&t.byteLength>=0)(t))t=Buffer.from(t);else if("string"!=typeof t)throw new Error("Non-contiguous data written to non-objectMode stream");var n;return this[Gt]?(this[Rt]&&0!==this[Ut]&&this[jt](!0),this[Rt]?this.emit("data",t):this[qt](t),0!==this[Ut]&&this.emit("readable"),i&&s(i),this[Rt]):t.length?("string"!=typeof t||e===this[zt]&&!this[It]?.lastNeed||(t=Buffer.from(t,e)),Buffer.isBuffer(t)&&this[zt]&&(t=this[It].write(t)),this[Rt]&&0!==this[Ut]&&this[jt](!0),this[Rt]?this.emit("data",t):this[qt](t),0!==this[Ut]&&this.emit("readable"),i&&s(i),this[Rt]):(0!==this[Ut]&&this.emit("readable"),i&&s(i),this[Rt])}read(t){if(this[Yt])return null;if(this[se]=!1,0===this[Ut]||0===t||t&&t>this[Ut])return this[Et](),null;this[Gt]&&(t=null),this[Wt].length>1&&!this[Gt]&&(this[Wt]=[this[zt]?this[Wt].join(""):Buffer.concat(this[Wt],this[Ut])]);const e=this[Ft](t||null,this[Wt][0]);return this[Et](),e}[Ft](t,e){if(this[Gt])this[Ht]();else{const i=e;t===i.length||null===t?this[Ht]():"string"==typeof i?(this[Wt][0]=i.slice(t),e=i.slice(0,t),this[Ut]-=t):(this[Wt][0]=i.subarray(t),e=i.subarray(0,t),this[Ut]-=t)}return this.emit("data",e),this[Wt].length||this[At]||this.emit("drain"),e}end(t,e,i){return"function"==typeof t&&(i=t,t=void 0),"function"==typeof e&&(i=e,e="utf8"),void 0!==t&&this.write(t,e),i&&this.once("end",i),this[At]=!0,this.writable=!1,!this[Rt]&&this[Bt]||this[Et](),this}[Nt](){this[Yt]||(this[ie]||this[$t].length||(this[se]=!0),this[Bt]=!1,this[Rt]=!0,this.emit("resume"),this[Wt].length?this[jt]():this[At]?this[Et]():this.emit("drain"))}resume(){return this[Nt]()}pause(){this[Rt]=!1,this[Bt]=!0,this[se]=!1}get destroyed(){return this[Yt]}get flowing(){return this[Rt]}get paused(){return this[Bt]}[qt](t){this[Gt]?this[Ut]+=1:this[Ut]+=t.length,this[Wt].push(t)}[Ht](){return this[Gt]?this[Ut]-=1:this[Ut]-=this[Wt][0].length,this[Wt].shift()}[jt](t=!1){do{}while(this[Dt](this[Ht]())&&this[Wt].length);t||this[Wt].length||this[At]||this.emit("drain")}[Dt](t){return this.emit("data",t),this[Rt]}pipe(t,e){if(this[Yt])return t;this[se]=!1;const i=this[Ot];return e=e||{},t===xt.stdout||t===xt.stderr?e.end=!1:e.end=!1!==e.end,e.proxyErrors=!!e.proxyErrors,i?e.end&&t.end():(this[$t].push(e.proxyErrors?new ae(this,t,e):new oe(this,t,e)),this[Xt]?ne((()=>this[Nt]())):this[Nt]()),t}unpipe(t){const e=this[$t].find((e=>e.dest===t));e&&(1===this[$t].length?(this[Rt]&&0===this[ie]&&(this[Rt]=!1),this[$t]=[]):this[$t].splice(this[$t].indexOf(e),1),e.unpipe())}addListener(t,e){return this.on(t,e)}on(t,e){const i=super.on(t,e);if("data"===t)this[se]=!1,this[ie]++,this[$t].length||this[Rt]||this[Nt]();else if("readable"===t&&0!==this[Ut])super.emit("readable");else if((t=>"end"===t||"finish"===t||"prefinish"===t)(t)&&this[Ot])super.emit(t),this.removeAllListeners(t);else if("error"===t&&this[Pt]){const t=e;this[Xt]?ne((()=>t.call(this,this[Pt]))):t.call(this,this[Pt])}return i}removeListener(t,e){return this.off(t,e)}off(t,e){const i=super.off(t,e);return"data"===t&&(this[ie]=this.listeners("data").length,0!==this[ie]||this[se]||this[$t].length||(this[Rt]=!1)),i}removeAllListeners(t){const e=super.removeAllListeners(t);return"data"!==t&&void 0!==t||(this[ie]=0,this[se]||this[$t].length||(this[Rt]=!1)),e}get emittedEnd(){return this[Ot]}[Et](){this[Mt]||this[Ot]||this[Yt]||0!==this[Wt].length||!this[At]||(this[Mt]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Lt]&&this.emit("close"),this[Mt]=!1)}emit(t,...e){const i=e[0];if("error"!==t&&"close"!==t&&t!==Yt&&this[Yt])return!1;if("data"===t)return!(!this[Gt]&&!i)&&(this[Xt]?(ne((()=>this[Qt](i))),!0):this[Qt](i));if("end"===t)return this[Jt]();if("close"===t){if(this[Lt]=!0,!this[Ot]&&!this[Yt])return!1;const t=super.emit("close");return this.removeAllListeners("close"),t}if("error"===t){this[Pt]=i,super.emit(Vt,i);const t=!(this[ee]&&!this.listeners("error").length)&&super.emit("error",i);return this[Et](),t}if("resume"===t){const t=super.emit("resume");return this[Et](),t}if("finish"===t||"prefinish"===t){const e=super.emit(t);return this.removeAllListeners(t),e}const s=super.emit(t,...e);return this[Et](),s}[Qt](t){for(const e of this[$t])!1===e.dest.write(t)&&this.pause();const e=!this[se]&&super.emit("data",t);return this[Et](),e}[Jt](){return!this[Ot]&&(this[Ot]=!0,this.readable=!1,this[Xt]?(ne((()=>this[Zt]())),!0):this[Zt]())}[Zt](){if(this[It]){const t=this[It].end();if(t){for(const e of this[$t])e.dest.write(t);this[se]||super.emit("data",t)}}for(const t of this[$t])t.end();const t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){const t=Object.assign([],{dataLength:0});this[Gt]||(t.dataLength=0);const e=this.promise();return this.on("data",(e=>{t.push(e),this[Gt]||(t.dataLength+=e.length)})),await e,t}async concat(){if(this[Gt])throw new Error("cannot concat in objectMode");const t=await this.collect();return this[zt]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise(((t,e)=>{this.on(Yt,(()=>e(new Error("stream destroyed")))),this.on("error",(t=>e(t))),this.on("end",(()=>t()))}))}[Symbol.asyncIterator](){this[se]=!1;let t=!1;const e=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return e();const i=this.read();if(null!==i)return Promise.resolve({done:!1,value:i});if(this[At])return e();let s,n;const r=t=>{this.off("data",o),this.off("end",a),this.off(Yt,l),e(),n(t)},o=t=>{this.off("error",r),this.off("end",a),this.off(Yt,l),this.pause(),s({value:t,done:!!this[At]})},a=()=>{this.off("error",r),this.off("data",o),this.off(Yt,l),e(),s({done:!0,value:void 0})},l=()=>r(new Error("stream destroyed"));return new Promise(((t,e)=>{n=e,s=t,this.once(Yt,l),this.once("error",r),this.once("end",a),this.once("data",o)}))},throw:e,return:e,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[se]=!1;let t=!1;const e=()=>(this.pause(),this.off(Vt,e),this.off(Yt,e),this.off("end",e),t=!0,{done:!0,value:void 0});return this.once("end",e),this.once(Vt,e),this.once(Yt,e),{next:()=>{if(t)return e();const i=this.read();return null===i?e():{done:!1,value:i}},throw:e,return:e,[Symbol.iterator](){return this}}}destroy(t){return this[Yt]?(t?this.emit("error",t):this.emit(Yt),this):(this[Yt]=!0,this[se]=!0,this[Wt].length=0,this[Ut]=0,"function"!=typeof this.close||this[Lt]||this.close(),t?this.emit("error",t):this.emit(Yt),this)}static get isStream(){return St}}const ce=gt.realpathSync.native,he={lstatSync:gt.lstatSync,readdir:gt.readdir,readdirSync:gt.readdirSync,readlinkSync:gt.readlinkSync,realpathSync:ce,promises:{lstat:vt.lstat,readdir:vt.readdir,readlink:vt.readlink,realpath:vt.realpath}},ue=t=>t&&t!==he&&t!==bt?{...he,...t,promises:{...he.promises,...t.promises||{}}}:he,pe=/^\\\\\?\\([a-z]:)\\?$/i,de=/[\\\/]/,fe=10,me=15,ge=-16,ye=128,be=t=>t.isFile()?8:t.isDirectory()?4:t.isSymbolicLink()?fe:t.isCharacterDevice()?2:t.isBlockDevice()?6:t.isSocket()?12:t.isFIFO()?1:0,ve=new Map,we=t=>{const e=ve.get(t);if(e)return e;const i=t.normalize("NFKD");return ve.set(t,i),i},ke=new Map,_e=t=>{const e=ke.get(t);if(e)return e;const i=we(t.toLowerCase());return ke.set(t,i),i};class xe extends ft{constructor(){super({max:256})}}class Se extends ft{constructor(t=16384){super({maxSize:t,sizeCalculation:t=>t.length+1})}}const Te=Symbol("PathScurry setAsCwd");class Ce{name;root;roots;parent;nocase;isCWD=!1;#nt;#rt;get dev(){return this.#rt}#ot;get mode(){return this.#ot}#at;get nlink(){return this.#at}#lt;get uid(){return this.#lt}#ct;get gid(){return this.#ct}#ht;get rdev(){return this.#ht}#ut;get blksize(){return this.#ut}#pt;get ino(){return this.#pt}#_;get size(){return this.#_}#dt;get blocks(){return this.#dt}#ft;get atimeMs(){return this.#ft}#mt;get mtimeMs(){return this.#mt}#gt;get ctimeMs(){return this.#gt}#yt;get birthtimeMs(){return this.#yt}#bt;get atime(){return this.#bt}#vt;get mtime(){return this.#vt}#wt;get ctime(){return this.#wt}#kt;get birthtime(){return this.#kt}#_t;#xt;#St;#Tt;#Ct;#At;#Et;#Ot;#Mt;#Pt;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(t,e=0,i,s,n,r,o){this.name=t,this.#_t=n?_e(t):we(t),this.#Et=1023&e,this.nocase=n,this.roots=s,this.root=i||this,this.#Ot=r,this.#St=o.fullpath,this.#Ct=o.relative,this.#At=o.relativePosix,this.parent=o.parent,this.parent?this.#nt=this.parent.#nt:this.#nt=ue(o.fs)}depth(){return void 0!==this.#xt?this.#xt:this.parent?this.#xt=this.parent.depth()+1:this.#xt=0}childrenCache(){return this.#Ot}resolve(t){if(!t)return this;const e=this.getRootString(t),i=t.substring(e.length).split(this.splitSep);return e?this.getRoot(e).#Lt(i):this.#Lt(i)}#Lt(t){let e=this;for(const i of t)e=e.child(i);return e}children(){const t=this.#Ot.get(this);if(t)return t;const e=Object.assign([],{provisional:0});return this.#Ot.set(this,e),this.#Et&=-17,e}child(t,e){if(""===t||"."===t)return this;if(".."===t)return this.parent||this;const i=this.children(),s=this.nocase?_e(t):we(t);for(const t of i)if(t.#_t===s)return t;const n=this.parent?this.sep:"",r=this.#St?this.#St+n+t:void 0,o=this.newChild(t,0,{...e,parent:this,fullpath:r});return this.canReaddir()||(o.#Et|=ye),i.push(o),o}relative(){if(this.isCWD)return"";if(void 0!==this.#Ct)return this.#Ct;const t=this.name,e=this.parent;if(!e)return this.#Ct=this.name;const i=e.relative();return i+(i&&e.parent?this.sep:"")+t}relativePosix(){if("/"===this.sep)return this.relative();if(this.isCWD)return"";if(void 0!==this.#At)return this.#At;const t=this.name,e=this.parent;if(!e)return this.#At=this.fullpathPosix();const i=e.relativePosix();return i+(i&&e.parent?"/":"")+t}fullpath(){if(void 0!==this.#St)return this.#St;const t=this.name,e=this.parent;if(!e)return this.#St=this.name;const i=e.fullpath()+(e.parent?this.sep:"")+t;return this.#St=i}fullpathPosix(){if(void 0!==this.#Tt)return this.#Tt;if("/"===this.sep)return this.#Tt=this.fullpath();if(!this.parent){const t=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(t)?this.#Tt=`//?/${t}`:this.#Tt=t}const t=this.parent,e=t.fullpathPosix(),i=e+(e&&t.parent?"/":"")+this.name;return this.#Tt=i}isUnknown(){return 0==(this.#Et&me)}isType(t){return this[`is${t}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return 8==(this.#Et&me)}isDirectory(){return 4==(this.#Et&me)}isCharacterDevice(){return 2==(this.#Et&me)}isBlockDevice(){return 6==(this.#Et&me)}isFIFO(){return 1==(this.#Et&me)}isSocket(){return 12==(this.#Et&me)}isSymbolicLink(){return(this.#Et&fe)===fe}lstatCached(){return 32&this.#Et?this:void 0}readlinkCached(){return this.#Mt}realpathCached(){return this.#Pt}readdirCached(){const t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#Mt)return!0;if(!this.parent)return!1;const t=this.#Et&me;return!(0!==t&&t!==fe||256&this.#Et||this.#Et&ye)}calledReaddir(){return!!(16&this.#Et)}isENOENT(){return!!(this.#Et&ye)}isNamed(t){return this.nocase?this.#_t===_e(t):this.#_t===we(t)}async readlink(){const t=this.#Mt;if(t)return t;if(this.canReadlink()&&this.parent)try{const t=await this.#nt.promises.readlink(this.fullpath()),e=(await this.parent.realpath())?.resolve(t);if(e)return this.#Mt=e}catch(t){return void this.#Ft(t.code)}}readlinkSync(){const t=this.#Mt;if(t)return t;if(this.canReadlink()&&this.parent)try{const t=this.#nt.readlinkSync(this.fullpath()),e=this.parent.realpathSync()?.resolve(t);if(e)return this.#Mt=e}catch(t){return void this.#Ft(t.code)}}#jt(t){this.#Et|=16;for(let e=t.provisional;e<t.length;e++){const i=t[e];i&&i.#Dt()}}#Dt(){this.#Et&ye||(this.#Et=(this.#Et|ye)&ge,this.#zt())}#zt(){const t=this.children();t.provisional=0;for(const e of t)e.#Dt()}#It(){this.#Et|=512,this.#Rt()}#Rt(){if(64&this.#Et)return;let t=this.#Et;4==(t&me)&&(t&=ge),this.#Et=64|t,this.#zt()}#Bt(t=""){"ENOTDIR"===t||"EPERM"===t?this.#Rt():"ENOENT"===t?this.#Dt():this.children().provisional=0}#Nt(t=""){"ENOTDIR"===t?this.parent.#Rt():"ENOENT"===t&&this.#Dt()}#Ft(t=""){let e=this.#Et;e|=256,"ENOENT"===t&&(e|=ye),"EINVAL"!==t&&"UNKNOWN"!==t||(e&=ge),this.#Et=e,"ENOTDIR"===t&&this.parent&&this.parent.#Rt()}#Wt(t,e){return this.#$t(t,e)||this.#Ut(t,e)}#Ut(t,e){const i=be(t),s=this.newChild(t.name,i,{parent:this}),n=s.#Et&me;return 4!==n&&n!==fe&&0!==n&&(s.#Et|=64),e.unshift(s),e.provisional++,s}#$t(t,e){for(let i=e.provisional;i<e.length;i++){const s=e[i];if((this.nocase?_e(t.name):we(t.name))===s.#_t)return this.#qt(t,s,i,e)}}#qt(t,e,i,s){const n=e.name;return e.#Et=e.#Et&ge|be(t),n!==t.name&&(e.name=t.name),i!==s.provisional&&(i===s.length-1?s.pop():s.splice(i,1),s.unshift(e)),s.provisional++,e}async lstat(){if(0==(this.#Et&ye))try{return this.#Ht(await this.#nt.promises.lstat(this.fullpath())),this}catch(t){this.#Nt(t.code)}}lstatSync(){if(0==(this.#Et&ye))try{return this.#Ht(this.#nt.lstatSync(this.fullpath())),this}catch(t){this.#Nt(t.code)}}#Ht(t){const{atime:e,atimeMs:i,birthtime:s,birthtimeMs:n,blksize:r,blocks:o,ctime:a,ctimeMs:l,dev:c,gid:h,ino:u,mode:p,mtime:d,mtimeMs:f,nlink:m,rdev:g,size:y,uid:b}=t;this.#bt=e,this.#ft=i,this.#kt=s,this.#yt=n,this.#ut=r,this.#dt=o,this.#wt=a,this.#gt=l,this.#rt=c,this.#ct=h,this.#pt=u,this.#ot=p,this.#vt=d,this.#mt=f,this.#at=m,this.#ht=g,this.#_=y,this.#lt=b;const v=be(t);this.#Et=this.#Et&ge|v|32,0!==v&&4!==v&&v!==fe&&(this.#Et|=64)}#Gt=[];#Yt=!1;#Vt(t){this.#Yt=!1;const e=this.#Gt.slice();this.#Gt.length=0,e.forEach((e=>e(null,t)))}readdirCB(t,e=!1){if(!this.canReaddir())return void(e?t(null,[]):queueMicrotask((()=>t(null,[]))));const i=this.children();if(this.calledReaddir()){const s=i.slice(0,i.provisional);return void(e?t(null,s):queueMicrotask((()=>t(null,s))))}if(this.#Gt.push(t),this.#Yt)return;this.#Yt=!0;const s=this.fullpath();this.#nt.readdir(s,{withFileTypes:!0},((t,e)=>{if(t)this.#Bt(t.code),i.provisional=0;else{for(const t of e)this.#Wt(t,i);this.#jt(i)}this.#Vt(i.slice(0,i.provisional))}))}#Qt;async readdir(){if(!this.canReaddir())return[];const t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);const e=this.fullpath();if(this.#Qt)await this.#Qt;else{let i=()=>{};this.#Qt=new Promise((t=>i=t));try{for(const i of await this.#nt.promises.readdir(e,{withFileTypes:!0}))this.#Wt(i,t);this.#jt(t)}catch(e){this.#Bt(e.code),t.provisional=0}this.#Qt=void 0,i()}return t.slice(0,t.provisional)}readdirSync(){if(!this.canReaddir())return[];const t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);const e=this.fullpath();try{for(const i of this.#nt.readdirSync(e,{withFileTypes:!0}))this.#Wt(i,t);this.#jt(t)}catch(e){this.#Bt(e.code),t.provisional=0}return t.slice(0,t.provisional)}canReaddir(){if(704&this.#Et)return!1;const t=me&this.#Et;return 0===t||4===t||t===fe}shouldWalk(t,e){return 4==(4&this.#Et)&&!(704&this.#Et)&&!t.has(this)&&(!e||e(this))}async realpath(){if(this.#Pt)return this.#Pt;if(!(896&this.#Et))try{const t=await this.#nt.promises.realpath(this.fullpath());return this.#Pt=this.resolve(t)}catch(t){this.#It()}}realpathSync(){if(this.#Pt)return this.#Pt;if(!(896&this.#Et))try{const t=this.#nt.realpathSync(this.fullpath());return this.#Pt=this.resolve(t)}catch(t){this.#It()}}[Te](t){if(t===this)return;t.isCWD=!1,this.isCWD=!0;const e=new Set([]);let i=[],s=this;for(;s&&s.parent;)e.add(s),s.#Ct=i.join(this.sep),s.#At=i.join("/"),s=s.parent,i.push("..");for(s=t;s&&s.parent&&!e.has(s);)s.#Ct=void 0,s.#At=void 0,s=s.parent}}class Ae extends Ce{sep="\\";splitSep=de;constructor(t,e=0,i,s,n,r,o){super(t,e,i,s,n,r,o)}newChild(t,e=0,i={}){return new Ae(t,e,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(t){return mt.win32.parse(t).root}getRoot(t){if((t=(t=>t.replace(/\//g,"\\").replace(pe,"$1\\"))(t.toUpperCase()))===this.root.name)return this.root;for(const[e,i]of Object.entries(this.roots))if(this.sameRoot(t,e))return this.roots[t]=i;return this.roots[t]=new Me(t,this).root}sameRoot(t,e=this.root.name){return(t=t.toUpperCase().replace(/\//g,"\\").replace(pe,"$1\\"))===e}}class Ee extends Ce{splitSep="/";sep="/";constructor(t,e=0,i,s,n,r,o){super(t,e,i,s,n,r,o)}getRootString(t){return t.startsWith("/")?"/":""}getRoot(t){return this.root}newChild(t,e=0,i={}){return new Ee(t,e,this.root,this.roots,this.nocase,this.childrenCache(),i)}}class Oe{root;rootPath;roots;cwd;#Jt;#Zt;#Ot;nocase;#nt;constructor(t=process.cwd(),e,i,{nocase:s,childrenCacheSize:n=16384,fs:r=he}={}){this.#nt=ue(r),(t instanceof URL||t.startsWith("file://"))&&(t=(0,st.fileURLToPath)(t));const o=e.resolve(t);this.roots=Object.create(null),this.rootPath=this.parseRootPath(o),this.#Jt=new xe,this.#Zt=new xe,this.#Ot=new Se(n);const a=o.substring(this.rootPath.length).split(i);if(1!==a.length||a[0]||a.pop(),void 0===s)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=s,this.root=this.newRoot(this.#nt),this.roots[this.rootPath]=this.root;let l=this.root,c=a.length-1;const h=e.sep;let u=this.rootPath,p=!1;for(const t of a){const e=c--;l=l.child(t,{relative:new Array(e).fill("..").join(h),relativePosix:new Array(e).fill("..").join("/"),fullpath:u+=(p?"":h)+t}),p=!0}this.cwd=l}depth(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.depth()}childrenCache(){return this.#Ot}resolve(...t){let e="";for(let i=t.length-1;i>=0;i--){const s=t[i];if(s&&"."!==s&&(e=e?`${s}/${e}`:s,this.isAbsolute(s)))break}const i=this.#Jt.get(e);if(void 0!==i)return i;const s=this.cwd.resolve(e).fullpath();return this.#Jt.set(e,s),s}resolvePosix(...t){let e="";for(let i=t.length-1;i>=0;i--){const s=t[i];if(s&&"."!==s&&(e=e?`${s}/${e}`:s,this.isAbsolute(s)))break}const i=this.#Zt.get(e);if(void 0!==i)return i;const s=this.cwd.resolve(e).fullpathPosix();return this.#Zt.set(e,s),s}relative(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.relative()}relativePosix(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.relativePosix()}basename(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.name}dirname(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),(t.parent||t).fullpath()}async readdir(t=this.cwd,e={withFileTypes:!0}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t,t=this.cwd);const{withFileTypes:i}=e;if(t.canReaddir()){const e=await t.readdir();return i?e:e.map((t=>t.name))}return[]}readdirSync(t=this.cwd,e={withFileTypes:!0}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t,t=this.cwd);const{withFileTypes:i=!0}=e;return t.canReaddir()?i?t.readdirSync():t.readdirSync().map((t=>t.name)):[]}async lstat(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.lstat()}lstatSync(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.lstatSync()}async readlink(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t.withFileTypes,t=this.cwd);const i=await t.readlink();return e?i:i?.fullpath()}readlinkSync(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t.withFileTypes,t=this.cwd);const i=t.readlinkSync();return e?i:i?.fullpath()}async realpath(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t.withFileTypes,t=this.cwd);const i=await t.realpath();return e?i:i?.fullpath()}realpathSync(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t.withFileTypes,t=this.cwd);const i=t.realpathSync();return e?i:i?.fullpath()}async walk(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t,t=this.cwd);const{withFileTypes:i=!0,follow:s=!1,filter:n,walkFilter:r}=e,o=[];n&&!n(t)||o.push(i?t:t.fullpath());const a=new Set,l=(t,e)=>{a.add(t),t.readdirCB(((t,c)=>{if(t)return e(t);let h=c.length;if(!h)return e();const u=()=>{0==--h&&e()};for(const t of c)n&&!n(t)||o.push(i?t:t.fullpath()),s&&t.isSymbolicLink()?t.realpath().then((t=>t?.isUnknown()?t.lstat():t)).then((t=>t?.shouldWalk(a,r)?l(t,u):u())):t.shouldWalk(a,r)?l(t,u):u()}),!0)},c=t;return new Promise(((t,e)=>{l(c,(i=>{if(i)return e(i);t(o)}))}))}walkSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t,t=this.cwd);const{withFileTypes:i=!0,follow:s=!1,filter:n,walkFilter:r}=e,o=[];n&&!n(t)||o.push(i?t:t.fullpath());const a=new Set([t]);for(const t of a){const e=t.readdirSync();for(const t of e){n&&!n(t)||o.push(i?t:t.fullpath());let e=t;if(t.isSymbolicLink()){if(!s||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(a,r)&&a.add(e)}}return o}[Symbol.asyncIterator](){return this.iterate()}iterate(t=this.cwd,e={}){return"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t,t=this.cwd),this.stream(t,e)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t,t=this.cwd);const{withFileTypes:i=!0,follow:s=!1,filter:n,walkFilter:r}=e;n&&!n(t)||(yield i?t:t.fullpath());const o=new Set([t]);for(const t of o){const e=t.readdirSync();for(const t of e){n&&!n(t)||(yield i?t:t.fullpath());let e=t;if(t.isSymbolicLink()){if(!s||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(o,r)&&o.add(e)}}}stream(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t,t=this.cwd);const{withFileTypes:i=!0,follow:s=!1,filter:n,walkFilter:r}=e,o=new le({objectMode:!0});n&&!n(t)||o.write(i?t:t.fullpath());const a=new Set,l=[t];let c=0;const h=()=>{let t=!1;for(;!t;){const e=l.shift();if(!e)return void(0===c&&o.end());c++,a.add(e);const u=(e,d,f=!1)=>{if(e)return o.emit("error",e);if(s&&!f){const t=[];for(const e of d)e.isSymbolicLink()&&t.push(e.realpath().then((t=>t?.isUnknown()?t.lstat():t)));if(t.length)return void Promise.all(t).then((()=>u(null,d,!0)))}for(const e of d)!e||n&&!n(e)||o.write(i?e:e.fullpath())||(t=!0);c--;for(const t of d){const e=t.realpathCached()||t;e.shouldWalk(a,r)&&l.push(e)}t&&!o.flowing?o.once("drain",h):p||h()};let p=!0;e.readdirCB(u,!0),p=!1}};return h(),o}streamSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t,t=this.cwd);const{withFileTypes:i=!0,follow:s=!1,filter:n,walkFilter:r}=e,o=new le({objectMode:!0}),a=new Set;n&&!n(t)||o.write(i?t:t.fullpath());const l=[t];let c=0;const h=()=>{let t=!1;for(;!t;){const e=l.shift();if(!e)return void(0===c&&o.end());c++,a.add(e);const h=e.readdirSync();for(const e of h)n&&!n(e)||o.write(i?e:e.fullpath())||(t=!0);c--;for(const t of h){let e=t;if(t.isSymbolicLink()){if(!s||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(a,r)&&l.push(e)}}t&&!o.flowing&&o.once("drain",h)};return h(),o}chdir(t=this.cwd){const e=this.cwd;this.cwd="string"==typeof t?this.cwd.resolve(t):t,this.cwd[Te](e)}}class Me extends Oe{sep="\\";constructor(t=process.cwd(),e={}){const{nocase:i=!0}=e;super(t,mt.win32,"\\",{...e,nocase:i}),this.nocase=i;for(let t=this.cwd;t;t=t.parent)t.nocase=this.nocase}parseRootPath(t){return mt.win32.parse(t).root.toUpperCase()}newRoot(t){return new Ae(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")||t.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(t)}}class Pe extends Oe{sep="/";constructor(t=process.cwd(),e={}){const{nocase:i=!1}=e;super(t,mt.posix,"/",{...e,nocase:i}),this.nocase=i}parseRootPath(t){return"/"}newRoot(t){return new Ee(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}}class Le extends Pe{constructor(t=process.cwd(),e={}){const{nocase:i=!0}=e;super(t,{...e,nocase:i})}}process.platform;const Fe="win32"===process.platform?Me:"darwin"===process.platform?Le:Pe;class je{#Xt;#Kt;#te;length;#ee;#ie;#se;#ne;#re;#oe;#ae=!0;constructor(t,e,i,s){if(!(t.length>=1))throw new TypeError("empty pattern list");if(!(e.length>=1))throw new TypeError("empty glob list");if(e.length!==t.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=t.length,i<0||i>=this.length)throw new TypeError("index out of range");if(this.#Xt=t,this.#Kt=e,this.#te=i,this.#ee=s,0===this.#te)if(this.isUNC()){const[t,e,i,s,...n]=this.#Xt,[r,o,a,l,...c]=this.#Kt;""===n[0]&&(n.shift(),c.shift());const h=[t,e,i,s,""].join("/"),u=[r,o,a,l,""].join("/");this.#Xt=[h,...n],this.#Kt=[u,...c],this.length=this.#Xt.length}else if(this.isDrive()||this.isAbsolute()){const[t,...e]=this.#Xt,[i,...s]=this.#Kt;""===e[0]&&(e.shift(),s.shift());const n=t+"/",r=i+"/";this.#Xt=[n,...e],this.#Kt=[r,...s],this.length=this.#Xt.length}}pattern(){return this.#Xt[this.#te]}isString(){return"string"==typeof this.#Xt[this.#te]}isGlobstar(){return this.#Xt[this.#te]===X}isRegExp(){return this.#Xt[this.#te]instanceof RegExp}globString(){return this.#se=this.#se||(0===this.#te?this.isAbsolute()?this.#Kt[0]+this.#Kt.slice(1).join("/"):this.#Kt.join("/"):this.#Kt.slice(this.#te).join("/"))}hasMore(){return this.length>this.#te+1}rest(){return void 0!==this.#ie?this.#ie:this.hasMore()?(this.#ie=new je(this.#Xt,this.#Kt,this.#te+1,this.#ee),this.#ie.#oe=this.#oe,this.#ie.#re=this.#re,this.#ie.#ne=this.#ne,this.#ie):this.#ie=null}isUNC(){const t=this.#Xt;return void 0!==this.#re?this.#re:this.#re="win32"===this.#ee&&0===this.#te&&""===t[0]&&""===t[1]&&"string"==typeof t[2]&&!!t[2]&&"string"==typeof t[3]&&!!t[3]}isDrive(){const t=this.#Xt;return void 0!==this.#ne?this.#ne:this.#ne="win32"===this.#ee&&0===this.#te&&this.length>1&&"string"==typeof t[0]&&/^[a-z]:$/i.test(t[0])}isAbsolute(){const t=this.#Xt;return void 0!==this.#oe?this.#oe:this.#oe=""===t[0]&&t.length>1||this.isDrive()||this.isUNC()}root(){const t=this.#Xt[0];return"string"==typeof t&&this.isAbsolute()&&0===this.#te?t:""}checkFollowGlobstar(){return!(0===this.#te||!this.isGlobstar()||!this.#ae)}markFollowGlobstar(){return!(0===this.#te||!this.isGlobstar()||!this.#ae||(this.#ae=!1,0))}}const De="object"==typeof process&&process?process:{stdout:null,stderr:null},ze=t=>!!t&&"object"==typeof t&&(t instanceof wi||t instanceof kt||Ie(t)||Re(t)),Ie=t=>!!t&&"object"==typeof t&&t instanceof wt.EventEmitter&&"function"==typeof t.pipe&&t.pipe!==kt.Writable.prototype.pipe,Re=t=>!!t&&"object"==typeof t&&t instanceof wt.EventEmitter&&"function"==typeof t.write&&"function"==typeof t.end,Be=Symbol("EOF"),Ne=Symbol("maybeEmitEnd"),We=Symbol("emittedEnd"),$e=Symbol("emittingEnd"),Ue=Symbol("emittedError"),qe=Symbol("closed"),He=Symbol("read"),Ge=Symbol("flush"),Ye=Symbol("flushChunk"),Ve=Symbol("encoding"),Qe=Symbol("decoder"),Je=Symbol("flowing"),Ze=Symbol("paused"),Xe=Symbol("resume"),Ke=Symbol("buffer"),ti=Symbol("pipes"),ei=Symbol("bufferLength"),ii=Symbol("bufferPush"),si=Symbol("bufferShift"),ni=Symbol("objectMode"),ri=Symbol("destroyed"),oi=Symbol("error"),ai=Symbol("emitData"),li=Symbol("emitEnd"),ci=Symbol("emitEnd2"),hi=Symbol("async"),ui=Symbol("abort"),pi=Symbol("aborted"),di=Symbol("signal"),fi=Symbol("dataListeners"),mi=Symbol("discarded"),gi=t=>Promise.resolve().then(t),yi=t=>t();class bi{src;dest;opts;ondrain;constructor(t,e,i){this.src=t,this.dest=e,this.opts=i,this.ondrain=()=>t[Xe](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class vi extends bi{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,e,i){super(t,e,i),this.proxyErrors=t=>e.emit("error",t),t.on("error",this.proxyErrors)}}class wi extends wt.EventEmitter{[Je]=!1;[Ze]=!1;[ti]=[];[Ke]=[];[ni];[Ve];[hi];[Qe];[Be]=!1;[We]=!1;[$e]=!1;[qe]=!1;[Ue]=null;[ei]=0;[ri]=!1;[di];[pi]=!1;[fi]=0;[mi]=!1;writable=!0;readable=!0;constructor(...t){const e=t[0]||{};if(super(),e.objectMode&&"string"==typeof e.encoding)throw new TypeError("Encoding and objectMode may not be used together");var i;e.objectMode?(this[ni]=!0,this[Ve]=null):!(i=e).objectMode&&i.encoding&&"buffer"!==i.encoding?(this[Ve]=e.encoding,this[ni]=!1):(this[ni]=!1,this[Ve]=null),this[hi]=!!e.async,this[Qe]=this[Ve]?new _t.StringDecoder(this[Ve]):null,e&&!0===e.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[Ke]}),e&&!0===e.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[ti]});const{signal:s}=e;s&&(this[di]=s,s.aborted?this[ui]():s.addEventListener("abort",(()=>this[ui]())))}get bufferLength(){return this[ei]}get encoding(){return this[Ve]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[ni]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[hi]}set async(t){this[hi]=this[hi]||!!t}[ui](){this[pi]=!0,this.emit("abort",this[di]?.reason),this.destroy(this[di]?.reason)}get aborted(){return this[pi]}set aborted(t){}write(t,e,i){if(this[pi])return!1;if(this[Be])throw new Error("write after end");if(this[ri])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof e&&(i=e,e="utf8"),e||(e="utf8");const s=this[hi]?gi:yi;if(!this[ni]&&!Buffer.isBuffer(t))if(n=t,!Buffer.isBuffer(n)&&ArrayBuffer.isView(n))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if((t=>t instanceof ArrayBuffer||!!t&&"object"==typeof t&&t.constructor&&"ArrayBuffer"===t.constructor.name&&t.byteLength>=0)(t))t=Buffer.from(t);else if("string"!=typeof t)throw new Error("Non-contiguous data written to non-objectMode stream");var n;return this[ni]?(this[Je]&&0!==this[ei]&&this[Ge](!0),this[Je]?this.emit("data",t):this[ii](t),0!==this[ei]&&this.emit("readable"),i&&s(i),this[Je]):t.length?("string"!=typeof t||e===this[Ve]&&!this[Qe]?.lastNeed||(t=Buffer.from(t,e)),Buffer.isBuffer(t)&&this[Ve]&&(t=this[Qe].write(t)),this[Je]&&0!==this[ei]&&this[Ge](!0),this[Je]?this.emit("data",t):this[ii](t),0!==this[ei]&&this.emit("readable"),i&&s(i),this[Je]):(0!==this[ei]&&this.emit("readable"),i&&s(i),this[Je])}read(t){if(this[ri])return null;if(this[mi]=!1,0===this[ei]||0===t||t&&t>this[ei])return this[Ne](),null;this[ni]&&(t=null),this[Ke].length>1&&!this[ni]&&(this[Ke]=[this[Ve]?this[Ke].join(""):Buffer.concat(this[Ke],this[ei])]);const e=this[He](t||null,this[Ke][0]);return this[Ne](),e}[He](t,e){if(this[ni])this[si]();else{const i=e;t===i.length||null===t?this[si]():"string"==typeof i?(this[Ke][0]=i.slice(t),e=i.slice(0,t),this[ei]-=t):(this[Ke][0]=i.subarray(t),e=i.subarray(0,t),this[ei]-=t)}return this.emit("data",e),this[Ke].length||this[Be]||this.emit("drain"),e}end(t,e,i){return"function"==typeof t&&(i=t,t=void 0),"function"==typeof e&&(i=e,e="utf8"),void 0!==t&&this.write(t,e),i&&this.once("end",i),this[Be]=!0,this.writable=!1,!this[Je]&&this[Ze]||this[Ne](),this}[Xe](){this[ri]||(this[fi]||this[ti].length||(this[mi]=!0),this[Ze]=!1,this[Je]=!0,this.emit("resume"),this[Ke].length?this[Ge]():this[Be]?this[Ne]():this.emit("drain"))}resume(){return this[Xe]()}pause(){this[Je]=!1,this[Ze]=!0,this[mi]=!1}get destroyed(){return this[ri]}get flowing(){return this[Je]}get paused(){return this[Ze]}[ii](t){this[ni]?this[ei]+=1:this[ei]+=t.length,this[Ke].push(t)}[si](){return this[ni]?this[ei]-=1:this[ei]-=this[Ke][0].length,this[Ke].shift()}[Ge](t=!1){do{}while(this[Ye](this[si]())&&this[Ke].length);t||this[Ke].length||this[Be]||this.emit("drain")}[Ye](t){return this.emit("data",t),this[Je]}pipe(t,e){if(this[ri])return t;this[mi]=!1;const i=this[We];return e=e||{},t===De.stdout||t===De.stderr?e.end=!1:e.end=!1!==e.end,e.proxyErrors=!!e.proxyErrors,i?e.end&&t.end():(this[ti].push(e.proxyErrors?new vi(this,t,e):new bi(this,t,e)),this[hi]?gi((()=>this[Xe]())):this[Xe]()),t}unpipe(t){const e=this[ti].find((e=>e.dest===t));e&&(1===this[ti].length?(this[Je]&&0===this[fi]&&(this[Je]=!1),this[ti]=[]):this[ti].splice(this[ti].indexOf(e),1),e.unpipe())}addListener(t,e){return this.on(t,e)}on(t,e){const i=super.on(t,e);if("data"===t)this[mi]=!1,this[fi]++,this[ti].length||this[Je]||this[Xe]();else if("readable"===t&&0!==this[ei])super.emit("readable");else if((t=>"end"===t||"finish"===t||"prefinish"===t)(t)&&this[We])super.emit(t),this.removeAllListeners(t);else if("error"===t&&this[Ue]){const t=e;this[hi]?gi((()=>t.call(this,this[Ue]))):t.call(this,this[Ue])}return i}removeListener(t,e){return this.off(t,e)}off(t,e){const i=super.off(t,e);return"data"===t&&(this[fi]=this.listeners("data").length,0!==this[fi]||this[mi]||this[ti].length||(this[Je]=!1)),i}removeAllListeners(t){const e=super.removeAllListeners(t);return"data"!==t&&void 0!==t||(this[fi]=0,this[mi]||this[ti].length||(this[Je]=!1)),e}get emittedEnd(){return this[We]}[Ne](){this[$e]||this[We]||this[ri]||0!==this[Ke].length||!this[Be]||(this[$e]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[qe]&&this.emit("close"),this[$e]=!1)}emit(t,...e){const i=e[0];if("error"!==t&&"close"!==t&&t!==ri&&this[ri])return!1;if("data"===t)return!(!this[ni]&&!i)&&(this[hi]?(gi((()=>this[ai](i))),!0):this[ai](i));if("end"===t)return this[li]();if("close"===t){if(this[qe]=!0,!this[We]&&!this[ri])return!1;const t=super.emit("close");return this.removeAllListeners("close"),t}if("error"===t){this[Ue]=i,super.emit(oi,i);const t=!(this[di]&&!this.listeners("error").length)&&super.emit("error",i);return this[Ne](),t}if("resume"===t){const t=super.emit("resume");return this[Ne](),t}if("finish"===t||"prefinish"===t){const e=super.emit(t);return this.removeAllListeners(t),e}const s=super.emit(t,...e);return this[Ne](),s}[ai](t){for(const e of this[ti])!1===e.dest.write(t)&&this.pause();const e=!this[mi]&&super.emit("data",t);return this[Ne](),e}[li](){return!this[We]&&(this[We]=!0,this.readable=!1,this[hi]?(gi((()=>this[ci]())),!0):this[ci]())}[ci](){if(this[Qe]){const t=this[Qe].end();if(t){for(const e of this[ti])e.dest.write(t);this[mi]||super.emit("data",t)}}for(const t of this[ti])t.end();const t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){const t=Object.assign([],{dataLength:0});this[ni]||(t.dataLength=0);const e=this.promise();return this.on("data",(e=>{t.push(e),this[ni]||(t.dataLength+=e.length)})),await e,t}async concat(){if(this[ni])throw new Error("cannot concat in objectMode");const t=await this.collect();return this[Ve]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise(((t,e)=>{this.on(ri,(()=>e(new Error("stream destroyed")))),this.on("error",(t=>e(t))),this.on("end",(()=>t()))}))}[Symbol.asyncIterator](){this[mi]=!1;let t=!1;const e=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return e();const i=this.read();if(null!==i)return Promise.resolve({done:!1,value:i});if(this[Be])return e();let s,n;const r=t=>{this.off("data",o),this.off("end",a),this.off(ri,l),e(),n(t)},o=t=>{this.off("error",r),this.off("end",a),this.off(ri,l),this.pause(),s({value:t,done:!!this[Be]})},a=()=>{this.off("error",r),this.off("data",o),this.off(ri,l),e(),s({done:!0,value:void 0})},l=()=>r(new Error("stream destroyed"));return new Promise(((t,e)=>{n=e,s=t,this.once(ri,l),this.once("error",r),this.once("end",a),this.once("data",o)}))},throw:e,return:e,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[mi]=!1;let t=!1;const e=()=>(this.pause(),this.off(oi,e),this.off(ri,e),this.off("end",e),t=!0,{done:!0,value:void 0});return this.once("end",e),this.once(oi,e),this.once(ri,e),{next:()=>{if(t)return e();const i=this.read();return null===i?e():{done:!1,value:i}},throw:e,return:e,[Symbol.iterator](){return this}}}destroy(t){return this[ri]?(t?this.emit("error",t):this.emit(ri),this):(this[ri]=!0,this[mi]=!0,this[Ke].length=0,this[ei]=0,"function"!=typeof this.close||this[qe]||this.close(),t?this.emit("error",t):this.emit(ri),this)}static get isStream(){return ze}}const ki="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";class _i{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(t,{nobrace:e,nocase:i,noext:s,noglobstar:n,platform:r=ki}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=r,this.mmopts={dot:!0,nobrace:e,nocase:i,noext:s,noglobstar:n,optimizationLevel:2,platform:r,nocomment:!0,nonegate:!0};for(const e of t)this.add(e)}add(t){const e=new it(t,this.mmopts);for(let t=0;t<e.set.length;t++){const i=e.set[t],s=e.globParts[t];if(!i||!s)throw new Error("invalid pattern object");for(;"."===i[0]&&"."===s[0];)i.shift(),s.shift();const n=new je(i,s,0,this.platform),r=new it(n.globString(),this.mmopts),o="**"===s[s.length-1],a=n.isAbsolute();a?this.absolute.push(r):this.relative.push(r),o&&(a?this.absoluteChildren.push(r):this.relativeChildren.push(r))}}ignored(t){const e=t.fullpath(),i=`${e}/`,s=t.relative()||".",n=`${s}/`;for(const t of this.relative)if(t.match(s)||t.match(n))return!0;for(const t of this.absolute)if(t.match(e)||t.match(i))return!0;return!1}childrenIgnored(t){const e=t.fullpath()+"/",i=(t.relative()||".")+"/";for(const t of this.relativeChildren)if(t.match(i))return!0;for(const t of this.absoluteChildren)if(t.match(e))return!0;return!1}}class xi{store;constructor(t=new Map){this.store=t}copy(){return new xi(new Map(this.store))}hasWalked(t,e){return this.store.get(t.fullpath())?.has(e.globString())}storeWalked(t,e){const i=t.fullpath(),s=this.store.get(i);s?s.add(e.globString()):this.store.set(i,new Set([e.globString()]))}}class Si{store=new Map;add(t,e,i){const s=(e?2:0)|(i?1:0),n=this.store.get(t);this.store.set(t,void 0===n?s:s&n)}entries(){return[...this.store.entries()].map((([t,e])=>[t,!!(2&e),!!(1&e)]))}}class Ti{store=new Map;add(t,e){if(!t.canReaddir())return;const i=this.store.get(t);i?i.find((t=>t.globString()===e.globString()))||i.push(e):this.store.set(t,[e])}get(t){const e=this.store.get(t);if(!e)throw new Error("attempting to walk unknown path");return e}entries(){return this.keys().map((t=>[t,this.store.get(t)]))}keys(){return[...this.store.keys()].filter((t=>t.canReaddir()))}}class Ci{hasWalkedCache;matches=new Si;subwalks=new Ti;patterns;follow;dot;opts;constructor(t,e){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=e?e.copy():new xi}processPatterns(t,e){this.patterns=e;const i=e.map((e=>[t,e]));for(let[t,e]of i){this.hasWalkedCache.storeWalked(t,e);const i=e.root(),s=e.isAbsolute()&&!1!==this.opts.absolute;if(i){t=t.resolve("/"===i&&void 0!==this.opts.root?this.opts.root:i);const s=e.rest();if(!s){this.matches.add(t,!0,!1);continue}e=s}if(t.isENOENT())continue;let n,r,o=!1;for(;"string"==typeof(n=e.pattern())&&(r=e.rest());){const i=t.resolve(n);t=i,e=r,o=!0}if(n=e.pattern(),r=e.rest(),o){if(this.hasWalkedCache.hasWalked(t,e))continue;this.hasWalkedCache.storeWalked(t,e)}if("string"!=typeof n)if(n===X){(!t.isSymbolicLink()||this.follow||e.checkFollowGlobstar())&&this.subwalks.add(t,e);const i=r?.pattern(),n=r?.rest();if(r&&(""!==i&&"."!==i||n)){if(".."===i){const e=t.parent||t;n?this.hasWalkedCache.hasWalked(e,n)||this.subwalks.add(e,n):this.matches.add(e,s,!0)}}else this.matches.add(t,s,""===i||"."===i)}else n instanceof RegExp&&this.subwalks.add(t,e);else{const e=".."===n||""===n||"."===n;this.matches.add(t.resolve(n),s,e)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new Ci(this.opts,this.hasWalkedCache)}filterEntries(t,e){const i=this.subwalks.get(t),s=this.child();for(const t of e)for(const e of i){const i=e.isAbsolute(),n=e.pattern(),r=e.rest();n===X?s.testGlobstar(t,e,r,i):n instanceof RegExp?s.testRegExp(t,n,r,i):s.testString(t,n,r,i)}return s}testGlobstar(t,e,i,s){if(!this.dot&&t.name.startsWith(".")||(e.hasMore()||this.matches.add(t,s,!1),t.canReaddir()&&(this.follow||!t.isSymbolicLink()?this.subwalks.add(t,e):t.isSymbolicLink()&&(i&&e.checkFollowGlobstar()?this.subwalks.add(t,i):e.markFollowGlobstar()&&this.subwalks.add(t,e)))),i){const e=i.pattern();if("string"==typeof e&&".."!==e&&""!==e&&"."!==e)this.testString(t,e,i.rest(),s);else if(".."===e){const e=t.parent||t;this.subwalks.add(e,i)}else e instanceof RegExp&&this.testRegExp(t,e,i.rest(),s)}}testRegExp(t,e,i,s){e.test(t.name)&&(i?this.subwalks.add(t,i):this.matches.add(t,s,!1))}testString(t,e,i,s){t.isNamed(e)&&(i?this.subwalks.add(t,i):this.matches.add(t,s,!1))}}class Ai{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#le=[];#ce;#he;signal;maxDepth;includeChildMatches;constructor(t,e,i){if(this.patterns=t,this.path=e,this.opts=i,this.#he=i.posix||"win32"!==i.platform?"/":"\\",this.includeChildMatches=!1!==i.includeChildMatches,(i.ignore||!this.includeChildMatches)&&(this.#ce=((t,e)=>"string"==typeof t?new _i([t],e):Array.isArray(t)?new _i(t,e):t)(i.ignore??[],i),!this.includeChildMatches&&"function"!=typeof this.#ce.add))throw new Error("cannot ignore child matches, ignore lacks add() method.");this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",(()=>{this.#le.length=0})))}#ue(t){return this.seen.has(t)||!!this.#ce?.ignored?.(t)}#pe(t){return!!this.#ce?.childrenIgnored?.(t)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;let t;for(this.paused=!1;!this.paused&&(t=this.#le.shift());)t()}onResume(t){this.signal?.aborted||(this.paused?this.#le.push(t):t())}async matchCheck(t,e){if(e&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=t.realpathCached()||await t.realpath(),!i)return;t=i}const s=t.isUnknown()||this.opts.stat?await t.lstat():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){const t=await s.realpath();t&&(t.isUnknown()||this.opts.stat)&&await t.lstat()}return this.matchCheckTest(s,e)}matchCheckTest(t,e){return!t||!(this.maxDepth===1/0||t.depth()<=this.maxDepth)||e&&!t.canReaddir()||this.opts.nodir&&t.isDirectory()||this.opts.nodir&&this.opts.follow&&t.isSymbolicLink()&&t.realpathCached()?.isDirectory()||this.#ue(t)?void 0:t}matchCheckSync(t,e){if(e&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=t.realpathCached()||t.realpathSync(),!i)return;t=i}const s=t.isUnknown()||this.opts.stat?t.lstatSync():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){const t=s.realpathSync();t&&(t?.isUnknown()||this.opts.stat)&&t.lstatSync()}return this.matchCheckTest(s,e)}matchFinish(t,e){if(this.#ue(t))return;if(!this.includeChildMatches&&this.#ce?.add){const e=`${t.relativePosix()}/**`;this.#ce.add(e)}const i=void 0===this.opts.absolute?e:this.opts.absolute;this.seen.add(t);const s=this.opts.mark&&t.isDirectory()?this.#he:"";if(this.opts.withFileTypes)this.matchEmit(t);else if(i){const e=this.opts.posix?t.fullpathPosix():t.fullpath();this.matchEmit(e+s)}else{const e=this.opts.posix?t.relativePosix():t.relative(),i=this.opts.dotRelative&&!e.startsWith(".."+this.#he)?"."+this.#he:"";this.matchEmit(e?i+e+s:"."+s)}}async match(t,e,i){const s=await this.matchCheck(t,i);s&&this.matchFinish(s,e)}matchSync(t,e,i){const s=this.matchCheckSync(t,i);s&&this.matchFinish(s,e)}walkCB(t,e,i){this.signal?.aborted&&i(),this.walkCB2(t,e,new Ci(this.opts),i)}walkCB2(t,e,i,s){if(this.#pe(t))return s();if(this.signal?.aborted&&s(),this.paused)return void this.onResume((()=>this.walkCB2(t,e,i,s)));i.processPatterns(t,e);let n=1;const r=()=>{0==--n&&s()};for(const[t,e,s]of i.matches.entries())this.#ue(t)||(n++,this.match(t,e,s).then((()=>r())));for(const t of i.subwalkTargets()){if(this.maxDepth!==1/0&&t.depth()>=this.maxDepth)continue;n++;const e=t.readdirCached();t.calledReaddir()?this.walkCB3(t,e,i,r):t.readdirCB(((e,s)=>this.walkCB3(t,s,i,r)),!0)}r()}walkCB3(t,e,i,s){i=i.filterEntries(t,e);let n=1;const r=()=>{0==--n&&s()};for(const[t,e,s]of i.matches.entries())this.#ue(t)||(n++,this.match(t,e,s).then((()=>r())));for(const[t,e]of i.subwalks.entries())n++,this.walkCB2(t,e,i.child(),r);r()}walkCBSync(t,e,i){this.signal?.aborted&&i(),this.walkCB2Sync(t,e,new Ci(this.opts),i)}walkCB2Sync(t,e,i,s){if(this.#pe(t))return s();if(this.signal?.aborted&&s(),this.paused)return void this.onResume((()=>this.walkCB2Sync(t,e,i,s)));i.processPatterns(t,e);let n=1;const r=()=>{0==--n&&s()};for(const[t,e,s]of i.matches.entries())this.#ue(t)||this.matchSync(t,e,s);for(const t of i.subwalkTargets()){if(this.maxDepth!==1/0&&t.depth()>=this.maxDepth)continue;n++;const e=t.readdirSync();this.walkCB3Sync(t,e,i,r)}r()}walkCB3Sync(t,e,i,s){i=i.filterEntries(t,e);let n=1;const r=()=>{0==--n&&s()};for(const[t,e,s]of i.matches.entries())this.#ue(t)||this.matchSync(t,e,s);for(const[t,e]of i.subwalks.entries())n++,this.walkCB2Sync(t,e,i.child(),r);r()}}class Ei extends Ai{matches=new Set;constructor(t,e,i){super(t,e,i)}matchEmit(t){this.matches.add(t)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise(((t,e)=>{this.walkCB(this.path,this.patterns,(()=>{this.signal?.aborted?e(this.signal.reason):t(this.matches)}))})),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason})),this.matches}}class Oi extends Ai{results;constructor(t,e,i){super(t,e,i),this.results=new wi({signal:this.signal,objectMode:!0}),this.results.on("drain",(()=>this.resume())),this.results.on("resume",(()=>this.resume()))}matchEmit(t){this.results.write(t),this.results.flowing||this.pause()}stream(){const t=this.path;return t.isUnknown()?t.lstat().then((()=>{this.walkCB(t,this.patterns,(()=>this.results.end()))})):this.walkCB(t,this.patterns,(()=>this.results.end())),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>this.results.end())),this.results}}const Mi="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";class Pi{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(t,e){if(!e)throw new TypeError("glob options required");if(this.withFileTypes=!!e.withFileTypes,this.signal=e.signal,this.follow=!!e.follow,this.dot=!!e.dot,this.dotRelative=!!e.dotRelative,this.nodir=!!e.nodir,this.mark=!!e.mark,e.cwd?(e.cwd instanceof URL||e.cwd.startsWith("file://"))&&(e.cwd=(0,st.fileURLToPath)(e.cwd)):this.cwd="",this.cwd=e.cwd||"",this.root=e.root,this.magicalBraces=!!e.magicalBraces,this.nobrace=!!e.nobrace,this.noext=!!e.noext,this.realpath=!!e.realpath,this.absolute=e.absolute,this.includeChildMatches=!1!==e.includeChildMatches,this.noglobstar=!!e.noglobstar,this.matchBase=!!e.matchBase,this.maxDepth="number"==typeof e.maxDepth?e.maxDepth:1/0,this.stat=!!e.stat,this.ignore=e.ignore,this.withFileTypes&&void 0!==this.absolute)throw new Error("cannot set absolute and withFileTypes:true");if("string"==typeof t&&(t=[t]),this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(t=t.map((t=>t.replace(/\\/g,"/")))),this.matchBase){if(e.noglobstar)throw new TypeError("base matching requires globstar");t=t.map((t=>t.includes("/")?t:`./**/${t}`))}if(this.pattern=t,this.platform=e.platform||Mi,this.opts={...e,platform:this.platform},e.scurry){if(this.scurry=e.scurry,void 0!==e.nocase&&e.nocase!==e.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{const t="win32"===e.platform?Me:"darwin"===e.platform?Le:e.platform?Pe:Fe;this.scurry=new t(this.cwd,{nocase:e.nocase,fs:e.fs})}this.nocase=this.scurry.nocase;const i="darwin"===this.platform||"win32"===this.platform,s={...e,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:i,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},n=this.pattern.map((t=>new it(t,s))),[r,o]=n.reduce(((t,e)=>(t[0].push(...e.set),t[1].push(...e.globParts),t)),[[],[]]);this.patterns=r.map(((t,e)=>{const i=o[e];if(!i)throw new Error("invalid pattern object");return new je(t,i,0,this.platform)}))}async walk(){return[...await new Ei(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new Ei(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new Oi(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new Oi(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}function Li(t,e={}){return new Pi(t,e).streamSync()}function Fi(t,e={}){return new Pi(t,e).stream()}function ji(t,e={}){return new Pi(t,e).walkSync()}async function Di(t,e={}){return new Pi(t,e).walk()}function zi(t,e={}){return new Pi(t,e).iterateSync()}function Ii(t,e={}){return new Pi(t,e).iterate()}const Ri=Li,Bi=Object.assign(Fi,{sync:Li}),Ni=zi,Wi=Object.assign(Ii,{sync:zi}),$i=Object.assign(ji,{stream:Li,iterate:zi}),Ui=Object.assign(Di,{glob:Di,globSync:ji,sync:$i,globStream:Fi,stream:Bi,globStreamSync:Li,streamSync:Ri,globIterate:Ii,iterate:Wi,globIterateSync:zi,iterateSync:Ni,Glob:Pi,hasMagic:(t,e={})=>{Array.isArray(t)||(t=[t]);for(const i of t)if(new it(i,e).hasMagic())return!0;return!1},escape:O,unescape:b});Ui.glob=Ui;var qi,Hi,Gi=i(104);function Yi(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Vi(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Vi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var s=0,n=function(){};return{s:n,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return o=t.done,t},e:function(t){a=!0,r=t},f:function(){try{o||null==i.return||i.return()}finally{if(a)throw r}}}}function Vi(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}var Qi={size:["xs","sm","md","lg","xl"],type:["a","submit","button","reset","image/png"],target:["_blank","_self","_parent","_top"],offset:["[8, 8]","[5, 10]"],tag1:["div","span"],tag2:["div","span","form"],tag3:["div","span","label"],tag4:["div","span","i"],tag5:["div","span","blockquote"],tag6:["div","span","a","label"],tag7:["div","span","ul","ol"],tag8:["h3","div","span","h1"],transitions:["fade","scale","rotate","slide-down","slide-right","slide-left","slide-up","jump-down","jump-right","jump-left","jump-up","flip-down","flip-right","flip-left","flip-up"]};Qi.spaced=Qi.size,Qi.gutter=Qi.padding=["none"].concat(h(Qi.size)),Qi.menuOffset=Qi.offset,Qi.transitionShow=Qi.transitionHide=Qi.transition=Qi.transitions;var Ji=Qi.tag1,Zi=Qi.tag2,Xi=Qi.tag3,Ki=Qi.tag4,ts=Qi.tag5,es=Qi.tag6,is=Qi.tag7,ss=Qi.tag8,ns=(s(qi={default:function(t){var e=Qi[t];if(e)return{customType:"select",options:e}},QBreadcrumbs:{separator:{customType:"select",options:["/","-","|",">"]}},QBreadcrumbsEl:{tag:{customType:"select",options:Ji}},QCard:{tag:{customType:"select",options:Zi}},QCardSection:{tag:{customType:"select",options:Zi}},QEditor:{toolbarBg:{customType:"color",options:[]}},QChatMessage:{size:{customType:"select",options:[1,2,3,4,5,6,7,8,9,10,11,12]}},QDate:{mask:{customType:"select",options:["YYYY/MM/DD","YYYY-MM-DD","MMMM Do, YYYY","YYYY-MM-DD HH:mm:ss"]}},QField:{tag:{customType:"select",options:Xi}},QIcon:{tag:{customType:"select",options:Ki}},QInput:{mask:{customType:"select",options:["###-##","date","datetime","time","fulltime","phone","card"]}},QIntersection:{tag:{customType:"select",options:ts}},QItem:{tag:{customType:"select",options:es}},QKnob:{tag:{customType:"select",options:es}},QLinearProgress:{tag:{customType:"select",options:is}},QNoSsr:{tag:{customType:"select",options:ts}},QRating:{colorSelected:{customType:"color",options:[]},colorHalf:{customType:"color",options:[]}},QSkeleton:{tag:{customType:"select",options:Ji}}},"QDate",{mask:{customType:"select",options:["HH:mm","HH:mm:ss","YYYY-MM-DD HH:mm:ss","HH:mm MMMM Do, YYYY"]}}),s(qi,"QTimelineEntry",{tag:{customType:"select",options:ss}}),qi);pinegrow.addEventHandler("on_vite_plugin_activated",(function(t,e,i){e===Gi.Yr.key&&function(){(Hi=Hi||c(u.mark((function t(){var e,i,s,n,r,o;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=pinegrow.app_designer.addonManager.apiServerManager.connectionManager.repoRoot)){t.next=26;break}if(i=path.resolve(e,"node_modules","quasar","dist","api"),!fs.existsSync(i)||!fs.statSync(i).isDirectory()){t.next=26;break}return t.next=6,Ui("*.json",{cwd:path.resolve(i),withFileTypes:!0});case 6:s=(s=t.sent).sort((function(t,e){return t.fullpath().localeCompare(e.fullpath())})),n=Yi(s),t.prev=9,o=u.mark((function t(){var e,i,s,n,o,a,c;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=r.value).isFile()){t.next=11;break}if(i=e.fullpath(),s=e.name,n=s.replace(path.extname(s),""),(a=fs.readFileSync(i,{encoding:"utf8",flag:"r"})).trim()&&(o=JSON.parse(a)||{}),"component"===o.type){t.next=9;break}return t.abrupt("return",1);case 9:c=o.props||{},Object.entries(c).filter((function(t){var e=l(t,2);return e[0],e[1].values})).forEach((function(t){var e=l(t,2),i=e[0],s=e[1];ns[n]||(ns[n]={}),ns[n][i]={customType:"select",options:s.values}}));case 11:case"end":return t.stop()}}),t)})),n.s();case 12:if((r=n.n()).done){t.next=18;break}return t.delegateYield(o(),"t0",14);case 14:if(!t.t0){t.next=16;break}return t.abrupt("continue",16);case 16:t.next=12;break;case 18:t.next=23;break;case 20:t.prev=20,t.t1=t.catch(9),n.e(t.t1);case 23:return t.prev=23,n.f(),t.finish(23);case 26:case"end":return t.stop()}}),t,null,[[9,20,23,26]])})))).apply(this,arguments)}()}));var rs={default:function(t){return["placeholderSrc","src","srcset","imgSrc","trackImg","innerTrackImg","selectionImg","avatar","appendAvatar","prependAvatar"].includes(t)?{customType:"image"}:t.toLowerCase().endsWith("icon")?{customType:"icon"}:t.toLowerCase().endsWith("color")?{customType:"color"}:void 0}};function os(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function as(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?os(Object(i),!0).forEach((function(e){s(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):os(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var ls={QBtn:{props:{label:"My Button"}},QIcon:{props:{name:"i-mdi-home"}},QImg:{props:{src:"https://images.unsplash.com/photo-1551120738-c3fcea8d0cf8?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwyMDkyMnwwfDF8c2VhcmNofDJ8fHBpbmUlMjB0cmVlfGVufDB8fHx8MTY1Njc1MzAyMg&ixlib=rb-1.2.1&q=80&w=1080"}}};function cs(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}function hs(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function us(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?hs(Object(i),!0).forEach((function(e){s(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):hs(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var ps,ds=function(t){return t.replaceAll(" ","-").toLowerCase()},ms=[{label:"Buttons",value:"button"},{label:"Inputs",value:"input"},{label:"Loading",value:"loading"},{label:"Media",value:"media"},{label:"Navigation",value:"navigation"},{label:"Panels & Popups",value:"panel"},{label:"Scroll",value:"scroll"},{label:"Tables",value:"table"},{label:"Other Components",value:"other"},{label:"Directives",value:"directive"},{label:"Plugins",value:"plugin"},{label:"Utils",value:"util"}],gs=[].concat(h([{label:"Ajax-bar",name:"ajax-bar",description:"A loading bar for ajax calls in progress",tag:"loading"},{label:"Avatar",name:"avatar",description:"A space for your portrait, icon or text",tag:"media"},{label:"Badge",name:"badge",description:"To highlight small but important info",tag:"media"},{label:"Banner",name:"banner",description:"To display important messages and actions",tag:"panel"},{label:"Bar",name:"bar",description:"A small top bar for side info and actions",tag:"other"},{label:"Breadcrumbs",name:"breadcrumbs",description:"To keep track of your position inside app",tag:"navigation"},{label:"BreadcrumbsEl",name:"breadcrumbs-el",description:"To keep track of your position inside app",tag:"navigation"},{label:"Buttons",name:"btn",description:"To access the most important actions",tag:"button",path:"button"},{label:"Buttons Dropdown",name:"btn-dropdown",description:"To access more actions at once in less space",tag:"button",path:"button-dropdown"},{label:"Buttons Group",name:"btn-group",description:"An alternative to classic buttons",tag:"button",path:"button-group"},{label:"Floating Action Button",name:"fab",description:"To display the page primary action",tag:"button"},{label:"Toggle Buttons",name:"btn-toggle",description:"An alternative to pick an option among many",tag:"button",path:"button-toggle"},{label:"Toggle",name:"toggle",description:"To switch an option on and off",tag:"button"},{label:"Card",name:"card",description:"To display grouped contents",tag:"panel",path:"card"},{label:"Card Section",name:"card-section",description:"",tag:"panel",path:"card"},{label:"Card Actions",name:"card-actions",description:"",tag:"panel",path:"card"},{label:"Carousel",name:"carousel",description:"To display images and other contents",tag:"media",path:"carousel"},{label:"Carousel Control",name:"carousel-control",description:"",tag:"media",path:"carousel"},{label:"Carousel Slide",name:"carousel-slide",description:"",tag:"media",path:"carousel"},{label:"Chat Message",name:"chat-message",description:"To display users' conversations",tag:"other",path:"chat"},{label:"Checkbox",name:"checkbox",description:"To flag one or more options in a list",tag:"input"},{label:"Chips",name:"chip",description:"A small container for info and actions",tag:"media",path:"chip"},{label:"Circular Progress",name:"circular-progress",description:"To inform when content is still loading",tag:"loading"},{label:"Color Pickers",name:"color",description:"To select color values and codes",tag:"input",path:"color-picker"},{label:"Date Picker",name:"date",description:"To access the most important actions",tag:"input",path:"date"},{label:"Dialogs",name:"dialog",description:"To show actions and info only when needed",tag:"panel",path:"dialog"},{label:"Editor WYSIWYG",name:"editor",description:"To write text and style it directly",tag:"other",path:"editor"},{label:"Expansion Panels",name:"expansion-item",description:"To show hidden extra info and actions",tag:"panel",path:"expansion-item"},{label:"File Pickers",name:"file",description:"To access and choose a file from users' device",tag:"media",path:"file"},{label:"Forms",name:"form",description:"A system to submit validated inputs",tag:"input",path:"form"},{label:"Form Fields",name:"field",description:"Wrapper for your own custom form elements",tag:"input",path:"field"},{label:"Icon",name:"icon",description:"To insert icons inside other components",tag:"media"},{label:"Img",name:"img",description:"To set some basic image features",tag:"media"},{label:"Infinite Scroll",name:"infinite-scroll",description:"To enable new content display while scrolling",tag:"scroll"},{label:"Inner Loading",name:"inner-loading",description:"To add content loading inside a component",tag:"loading"},{label:"Input Text Fields",name:"input",description:"To collect users' typed text input",tag:"input",path:"input"},{label:"Intersection",name:"intersection",description:"Set how UI elements enter the screen",tag:"loading"},{label:"Knob",name:"knob",description:"To set a value with a draggable gauge",tag:"input"},{label:"Linear Progress",name:"linear-progress",description:"A loading bar with various behaviors",tag:"loading"},{label:"List",name:"list",description:"To display contents on a vertical list",tag:"other"},{label:"List Items",name:"item",description:"",tag:"other"},{label:"List Item Section",name:"item-section",description:"",tag:"other"},{label:"List Item Label",name:"item-label",description:"",tag:"other"},{label:"Markup Table",name:"markup-table",description:"To display data and content on a table",tag:"table"},{label:"Menu",name:"menu",description:"A dropdown panel to access options",tag:"panel"},{label:"No SSR",name:"no-ssr",description:"Ignore irrelevant code during SSR generation",tag:"other"},{label:"Observer resize",name:"resize-observer",description:"Emit an Event when an element resizes",tag:"other",path:"resize-observer"},{label:"Observer scroll",name:"scroll-observer",description:"Emit an Event when the user scrolls",tag:"other",path:"scroll-observer"},{label:"Option Group",name:"option-group",description:"Helper component to set groups of options",tag:"input"},{label:"Pagination",name:"pagination",description:"To navigate content on multiple pages",tag:["navigation"]},{label:"Parallax",name:"parallax",description:"To create interesting UI image background",tag:"media"},{label:"Popup Edit",name:"popup-edit",description:"To access inline editing of data",tag:"input"},{label:"Popup Proxy",name:"popup-proxy",description:"To show extra content on click",tag:"panel"},{label:"Pull to Refresh",name:"pull-to-refresh",description:"To refresh the page content with a gesture",tag:"loading"},{label:"Radio",name:"radio",description:"To select a single option in a list",tag:"input"},{label:"Range",name:"range",description:"To pick a period on a range of values",tag:"input"},{label:"Rating",name:"rating",description:'The classic "star rating" component',tag:"other"},{label:"Responsive",name:"responsive",description:"To keep content aspect ratio consistent",tag:"other"},{label:"Scroll Area",name:"scroll-area",description:"To set a scrollable content in components",tag:"scroll"},{label:"Select",name:"select",description:"To choose one item from a dropdown list",tag:"input"},{label:"Separator",name:"separator",description:"The linear visual divider for contents",tag:"other"},{label:"Skeleton",name:"skeleton",description:"To set loading content placeholders",tag:"loading"},{label:"Slide Item",name:"slide-item",description:"To add dragging feature to list items",tag:"other"},{label:"Slider",name:"slider",description:"To pick a single value on a range",tag:"input"},{label:"Slide Transition",name:"slide-transition",description:"To show a hidden content",tag:"other"},{label:"Space",name:"space",description:"Fill space inside elements using flexbox",tag:"other"},{label:"Spinners",name:"spinner",description:"A loading indicator with various behaviors",tag:"loading"},{label:"Spinner Cube",name:"spinner-cube",description:"",tag:"loading"},{label:"Splitter",name:"splitter",description:"To add a draggable resizer for containers",tag:"other"},{label:"Stepper",name:"stepper",description:"To divide content in progressive steps",tag:"navigation"},{label:"Step",name:"step",description:"",tag:"navigation"},{label:"Stepper Navigation",name:"stepper-navigation",description:"",tag:"navigation"},{label:"Table",name:"table",description:"To display much data on a datatable",tag:"table"},{label:"Th",name:"th",description:"",tag:"table"},{label:"Tr",name:"tr",description:"",tag:"table"},{label:"Td",name:"td",description:"",tag:"table"},{label:"Tab Panels",name:"tab-panels",description:"To split out content view in the same page",tag:"navigation"},{label:"Tab Panel",name:"tab-panel",description:"To navigate separate content in one page",tag:"navigation"},{label:"Timeline",name:"timeline",description:"A vertical solution to set milestones in time",tag:"other"},{label:"Timeline Entry",name:"timeline-entry",description:"",tag:"other"},{label:"Time Picker",name:"time",description:"To set a specific time on the clock",tag:"input",path:"time"},{label:"Toolbar",name:"toolbar",description:"The top main bar for actions and menu",tag:"navigation"},{label:"Toolbar Title",name:"toolbar-title",description:"The top main bar for actions and menu",tag:"navigation"},{label:"Tooltip",name:"tooltip",description:"To show extra useful info about the UI",tag:"media"},{label:"Tree",name:"tree",description:"An indented structure for hierarchical data",tag:"navigation"},{label:"Uploader",name:"uploader",description:"To upload any kind of file from the computer",tag:"media"},{label:"Video",name:"video",description:"To embed and display a video player in UI",tag:"media"},{label:"Virtual Scroll",name:"virtual-scroll",description:"To render new content while scrolling it",tag:"scroll"}].map((function(t){var e=ms.find((function(e){return e.value===(Array.isArray(t.tag)?t.tag[0]:t.tag)})).label,i=ds(t.name);return us(us({},t),{},{category:e,img:"https://cdn.quasar.dev/img/components/".concat(i,".jpg"),to:"/vue-components/".concat(t.path||i)})}))),h([{name:"Intersection",description:"Handle elements coming into the view",tag:"directive"},{name:"Material Ripples",description:"Apply Material ripples to elements",tag:"directive"},{name:"Mutation",description:"Watch changes being made to the DOM tree",tag:"directive"},{name:"Morph",description:"Morph DOM elements between two states",tag:"directive"},{name:"Scroll",description:"Handle page scroll",tag:"directive"},{name:"Scroll Fire",description:"Take action when element comes into view",tag:"directive"},{name:"Touch Hold",description:"Handle touch & mouse hold user actions",tag:"directive"},{name:"Touch Pan",description:"Handle touch & mouse panning user actions",tag:"directive"},{name:"Touch Repeat",description:"Handle repeated touch & mouse taps/clicks",tag:"directive"},{name:"Touch Swipe",description:"Handle touch & mouse swipe user actions",tag:"directive"}].map((function(t){var e=ms.find((function(e){return e.value===(Array.isArray(t.tag)?t.tag[0]:t.tag)})).label;return us(us({},t),{},{category:e,to:"/vue-directives/".concat(t.path||ds(t.name)),name:"".concat(t.path||ds(t.name))})}))),h([{name:"Addressbar Color",description:"Manage the browser addressbar color",tag:"plugin"},{name:"App Fullscreen",description:"Handle app fullscreen mode",tag:"plugin"},{name:"App Visibility",description:"For app coming into (or out of) view",tag:"plugin"},{name:"Bottom Sheet",description:"Quick way to offer a list of actions",tag:"plugin"},{name:"Cookies",description:"Easy way to manage browser cookies",tag:"plugin"},{name:"Dark Mode",description:"Manage dark mode",tag:"plugin",path:"dark"},{name:"Dialog",description:"Plugin to display a floating modal",tag:"plugin"},{name:"Loading",description:"Overlay for a background action in progress",tag:"plugin"},{name:"Loading Bar",description:"Display a loading bar for in progress Ajax calls",tag:"plugin"},{name:"Local/Session Storage",description:"Manage the local storage and session storage",tag:"plugin",path:"web-storage"},{name:"Meta Plugin",description:"Helps with SEO by managing the meta tags",tag:"plugin",path:"meta"},{name:"Notify",description:"Display floating animated messages",tag:"plugin"}].map((function(t){var e=ms.find((function(e){return e.value===(Array.isArray(t.tag)?t.tag[0]:t.tag)})).label;return us(us({},t),{},{category:e,to:"/quasar-plugins/".concat(t.path||ds(t.name)),name:"".concat(t.path||ds(t.name))})}))),h([{name:"Date utils",description:"Easily handle date objects",tag:"util"},{name:"DOM utils",description:"Various DOM-related helper utils",tag:"util"},{name:"Morph utils",description:"Morph DOM elements helper util",tag:"util"},{name:"Formatter utils",description:"Various text formatting utils",tag:"util"},{name:"Scrolling utils",description:"Various scrolling-related utils",tag:"util"},{name:"Type checking utils",description:"Helpers to determine variable types",tag:"util"},{name:"Event bus util",description:"Global event bus",tag:"util"},{name:"Other utils",description:"Various other utils that Quasar supplies",tag:"util"}].map((function(t){var e=ms.find((function(e){return e.value===(Array.isArray(t.tag)?t.tag[0]:t.tag)})).label;return us(us({},t),{},{category:e,to:"/quasar-utils/".concat(ds(t.name)),name:"".concat(ds(t.name))})})))).filter((function(t){return t.to.startsWith("/vue-components/")})).map((function(t,e){return{key:e,name:"q-".concat(t.name),description:t.description,tag:t.tag,category:t.category,img:t.img,haystack:"".concat(t.name," ").concat(t.description," ").concat(t.short||"").toLowerCase(),to:t.to}})),ys={},bs=function(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return cs(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?cs(t,e):void 0}}(t))){i&&(t=i);var s=0,n=function(){};return{s:n,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return o=t.done,t},e:function(t){a=!0,r=t},f:function(){try{o||null==i.return||i.return()}finally{if(a)throw r}}}}(gs);try{for(bs.s();!(ps=bs.n()).done;){var vs=ps.value,ws=vs.name,ks=vs.category;ys[ks]||(ys[ks]=[]),ys[ks].push(ws)}}catch(t){bs.e(t)}finally{bs.f()}var _s=i(783);const xs=/[^\p{L}\p{N}]+/gu,Ss=(t,e={})=>{const i=(t=>null==t?"":Array.isArray(t)?t.map((t=>t.toString().trim())).filter((t=>t.length>0)).join(" "):"function"==typeof t?t.name?t.name:"":"function"!=typeof t.toString?"":t.toString().trim())(t),s=e.punctuationRegex??xs,n=i?_s(s?i.replace(s," "):i,e):"";return n?n[0].toLocaleUpperCase(e.locale)+n.slice(1):""};var Ts={};Object.entries({breadcrumbs:["breadcrumbs","breadcrumbs-el"],card:["card","card-section","card-actions"],carousel:["carousel","carousel-control","carousel-slide"],list:["list","item","item-section","item-label"],spinner:["spinner","spinner-cube"],stepper:["stepper","step","stepper-navigation"],table:["table","th","tr","td"],"tab-panels":["tab-panels","tab-panel"],timeline:["timeline","timeline-entry"],toolbar:["toolbar","toolbar-title"]}).forEach((function(t){var e=l(t,2),i=(e[0],e[1]),s=i[0],n=i.slice(1,i.length);Ts[Ss("q-".concat(s))]=n.map((function(t){return Ss("q-".concat(t))}))}));var Cs={metaOverrides:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s={customType:null,type:i.value&&i.value.type,multiple:i.multiple,options:null,required:i.required,validator:i.validator,default:i.default&&"null"!==i.default&&"undefined"!==i.default?i.default:null};return[ns,rs].reduce((function(s,n){if(Object.keys(s).length)return s;var r;n.default&&"function"==typeof n.default&&(r=null==n?void 0:n.default(o(i.name)));var a=n[t]&&n[t][o(i.name)];return e=as(as({},r||{}),a||{})}),{}),e&&(s.customType=e.customType||s.customType,s.type=e.type||s.type,s.multiple=e.multiple||s.multiple,s.options=e.options||s.options,s.required=e.required||s.required,s.validator=e.validator||s.validator,s.default=e.default||s.default),s},metaAdditions:function(t){return[ns,rs].reduce((function(e,i){if(i[t]){var s=Object.keys(i[t]),n=e.map((function(t){return o(t.name)}));s.filter((function(t){return!n.includes(t)})).forEach((function(s){var n=i[t][s];e.push({name:s,description:n.description,"doc-url":n.docUrl,default:n.default,value:n.value})}))}return e}),arguments.length>1&&void 0!==arguments[1]?arguments[1]:[])},libraryCodeStubs:function(t){var e=ls[t],i="",s="";return e&&(e.props&&(i=Object.entries(e.props).reduce((function(t,e){var i=l(e,2),s=i[0],n=i[1],r=!0===n?"":'="'.concat(n,'"');return"".concat(t," ").concat(a(s)).concat(r)}),"")),e.defaultSlot&&(s=e.defaultSlot)),"<".concat(a(t)," ").concat(i,">").concat(s,"</").concat(a(t),">")},componentsCategorised:ys,componentGroups:Ts}},104:(t,e,i)=>{"use strict";i.d(e,{EX:()=>o,JF:()=>n,Yr:()=>a,fh:()=>r,hC:()=>s});var s=!0,n=function(t){s=t},r=!1,o=function(t){r=t},a={plugin_path:"./plugin.cjs",templates_path:"./templates",version:"2.0.0",major_version:"2",minor_version:"2",info_badge:"",type:"quasar",short_type:"quasar",allow_single_type:!0,short_name:"Quasar",dependency:"@pinegrow/quasar-module",get name(){return"".concat(this.short_name," ").concat(this.minor_version)},get key(){return"".concat(this.type)},get scriptTagId(){return"".concat(this.short_type)},get prefix(){return"".concat(this.short_type).concat(this.minor_version)},get library(){return"".concat(this.type)},syncWithLibrarySemVer:"minor",get description(){return'<a href="http://quasar.dev/">'.concat(this.name,"</a> components. Some samples are from ").concat(this.name," documentation and based on ").concat(this.short_name," ").concat(this.version,".")},author:"Pinegrow",get author_link(){return"http://github.com/pinegrow/".concat(this.type,"-plugin")},get default(){return this.pgf_type&&this.pgf_type.activated_by_default||!1},get show_in_manager(){return!1},skip_opening_new_pages_created_from_templates:!0,show_templates_only_inside_projects:!0,get simple(){return this.pgf_type&&this.pgf_type.simple||!1},ignore_css_files:[/(^|\/)quasar\.(css)/i,/(^|\/)quasar\.min\.(css)/i,/(^|\/)materialdesignicons\.(css)/i,/(^|\/)materialdesignicons\.min\.(css)/i],detect_async:function(t,e){t.stylesheetsThatContain(/quasar\sv3/i,/quasar(\.min|)\.(css)/i,(function(t){e(t.length>0)}))}}},802:(t,e,i)=>{"use strict";i.d(e,{D:()=>f});for(var s=i(290),n=i(289),r=[{key:"",name:"Distribute"},{key:"-auto",name:"Auto"},{key:"-grow",name:"Grow"},{key:"-shrink",name:"Shrink"}],o=[],a=[{key:"-first",name:"First"},{key:"-last",name:"Last"},{key:"-none",name:"None"}],l=[{key:"-grow",name:"Grow"}],c=[{key:"-shrink",name:"Shrink"}],h=[{key:"-start",name:"Start"},{key:"-end",name:"End"},{key:"-center",name:"Center"},{key:"-baseline",name:"Baseline"},{key:"-stretch",name:"Stretch"}],u=0;u<=n.XL;u++)0==u||r.push({key:"-"+u,name:u}),u!=n.XL&&o.push({key:"-"+u,name:u});var p=function(t){return t.parent&&t.parent.isSelector(".flex")},d=function(t){return!(!t.parent||!(t.parent.isSelector(".row")&&!t.hasClass("row")||t.parent.isSelector(".column")||!t.hasClass("column")&&(0,n.t3)(t.parent)))},f=function(t){return function(){var e,i,u=[],f={field_prefix:"".concat(t,"_col"),class_prefix:"col",values:r,name:"Size"},m={field_prefix:"".concat(t,"_offset"),class_prefix:"offset",values:o,name:"Offset"},g={field_prefix:"".concat(t,"_order"),class_prefix:"order",values:a,name:"Order"},y={field_prefix:"".concat(t,"_align"),class_prefix:"self",values:h,name:"Align self"};return"column"===t?u.push(f,m,g,y):u.push(m,g,{field_prefix:"".concat(t,"_grow"),class_prefix:"col",values:l,name:"Grow"},{field_prefix:"".concat(t,"_shrink"),class_prefix:"col",values:c,name:"Shrink"},y),{name:"column"===t?"Column":"Flex Child",show_if:"column"===t?d:p,fields:s({},"".concat(t,"_control'"),{type:"custom",name:"".concat(t,"_control'"),action:"none",control:(e="".concat(t,"_span'"),i=u,function(){var t=new PgCustomPropertyControl(n.O4+e);t.onDefine=function(){for(var t=0;t<i.length;t++)for(var e=0;e<n.J7.length;e++){var r=n.O4+i[t].field_prefix+"."+n.J7[e];this.registerInputField(r,s(i[t],n.J7[e]))}},t.onShow=function(){var t=$("<table/>",{class:"grid-control columns-control seven-col-grid"}),e="<td></td>";n.J7.forEach((function(t){e+='<td><label class="grid-control-size">'+t+"</label></td>"}));for(var r=$("<tr/>").html(e).appendTo(t),o=0;o<i.length;o++){r=$("<tr/>",{class:""}).appendTo(t);for(var a=$("<td/>").html('<label style="text-align:left">'+i[o].name+"</label>").appendTo(r),l=0;l<n.J7.length;l++){a=$("<td/>").appendTo(r);var c=n.O4+i[o].field_prefix+"."+n.J7[l];this.showInputField(a,c,s(i[o],n.J7[l]))}}return t},t.onSetValues=function(){};var s=function(t,e){var i=e==n.Ff?"":"-"+e,s=t.class_prefix+i,r={type:"select",name:null,action:"apply_class",draggable_list:!0,show_empty:!0,options:[],on_changed:function(t,e,i){t.setData(n.O4+"was-column",!0)}};return t.values.forEach((function(t){r.options.push({key:s+t.key,name:t.name})})),r};return t})})}}}},676:(t,e,i)=>{"use strict";i.d(e,{M:()=>r});var s=i(104),n=i(143),r=new PgFramework(s.Yr.key,s.Yr.name);r.type=s.Yr.type,r.allow_single_type=s.Yr.allow_single_type,r.description=s.Yr.description,r.author=s.Yr.author,r.author_link=s.Yr.author_link,r.info_badge=s.Yr.info_badge,r.default=s.Yr.default,r.show_in_manager=s.Yr.show_in_manager,r.ignore_css_files=s.Yr.ignore_css_files,r.detect_async=s.Yr.detect_async,r.setScriptFileByScriptTagId("plugin-".concat(s.Yr.scriptTagId,"-").concat(s.Yr.major_version,"-mt")),r.skip_opening_new_pages_created_from_templates=s.Yr.skip_opening_new_pages_created_from_templates,r.show_templates_only_inside_projects=s.Yr.show_templates_only_inside_projects,r.super_web_types=n.c,r.no_prop_section_subtitles=s.Yr.no_prop_section_subtitles,pinegrow.addFramework(r,3)},289:(t,e,i)=>{"use strict";i.d(e,{r2:()=>c,e9:()=>S,bm:()=>b,MS:()=>s.M,ac:()=>k,of:()=>w,Cw:()=>v,t3:()=>h,qV:()=>x,XL:()=>u,vz:()=>_,O4:()=>o,Ff:()=>f,J7:()=>p});for(var s=i(676),n=i(377),r=i(104),o=r.Yr.prefix,a=r.Yr.simple,l=r.Yr.short_name,c=(r.Yr.key,function(t){a||s.M.addLibSection(t)}),h=function(t){if("div"==t.tagName){if(t.parent&&t.parent.isSelector(".row")&&!t.hasClass("row"))return!0;if(t.getData(o+"was-column"))return!0}var e=t.getAttr("class");return!(!e||!e.match(/(\s|^)col($|[\-\s])/i))},u=parseInt(pinegrow.getSetting("quasar-col-num","12"))||12,p=["xs","sm","md","lg","xl"],d=[0,600,1024,1440,1920],f=p[0],m={},g=0;g<p.length;g++)m[p[g]]=d[g];var y=function(t,e,i){var s=new PgFrameworkHelpers("Quasar",t,e,i,PgBSMenuPointColumnSize);s.getCodeForLarge=function(){var t;switch(this.version){case 2:default:t='<pgdiv class="col-1 pinegrow-ui-helper"><pgdiv class="pinegrow-ui-helper"></pgdiv></pgdiv>';break;case 3:t='<pgdiv class="col-xs-1 pinegrow-ui-helper"><pgdiv class="pinegrow-ui-helper"></pgdiv></pgdiv>'}return t},s.getCodeForSmall=function(){var t;switch(this.version){case 2:default:t='<pgdiv class="col-1 pinegrow-ui-helper d-block d-sm-none" style="padding-left:0;padding-right:0;"><pgdiv class="pinegrow-ui-helper"></pgdiv></pgdiv>';break;case 3:t='<pgdiv class="col-xs-1 pinegrow-ui-helper visible-xs visible-xs-block" style="padding-left:0;padding-right:0;"><pgdiv class="pinegrow-ui-helper"></pgdiv></pgdiv>'}return t},s.getClassForSize=function(e,i,s){return null==s?s="":s+="",i+(e==t.size_for_all?"":"-"+e)+(s.length?"-"+s:"")},s.getColumnSizes=function(e){var i=new RegExp("^col(\\-("+t.sizes.join("|")+"))?(\\-([0-9]+|auto))?"),s={};return(e instanceof pgParserNode?e.getClasses():e.classList).forEach((function(e){var n=e.match(i);if(n){var r=n[2]||t.size_for_all,o=n[4]||"";s[r]=o}})),s},new PgDelayedTasks,s.makeFieldLabelForSize=function(t,e){return'<span class="sc-label">'+t+'</span><span class="sc-device-size" style="padding:6px">'+e+"</span>"},s.getDevicesControlFactory=function(e,i,s){var n=function(i){t.sizes.forEach((function(s){i(s,s==t.size_for_all?"":"-"+s,t.prefix+e+"."+s)}))};return function(){var r=new PgCustomPropertyControl(t.prefix+e);return r.onDefine=function(){n((function(t,e,i){var n=s(t,e);r.registerInputField(i,n)}))},r.onShow=function(){var t=$("<div/>",{class:"sc-device-control"});return $('<div class="sc-device-control-title">'+i+"</div>").appendTo(t),n((function(e,i,n){var o=s(e,i);r.showInputField(t,n,o).$field.attr("data-device-size",e)})),t},r.onSetValues=function(e){var i=!0;n((function(e,s,n){var o=r.get$Field(n);r.values[n]?(o.addClass("sc-has-value"),e!=t.size_for_all&&(i=!1)):o.removeClass("sc-has-value")})),i?r.$element.addClass("sc-none-or-all"):r.$element.removeClass("sc-none-or-all")},r}};var n={};s.onSectionWithDevicesControlsShown=function(e,i){var r=s,o={},a=!0;t.sizes.forEach((function(t){n[e.section_key]&&n[e.section_key][t]&&(o[t]=!0)}));var l=i.$content.get(0).querySelectorAll("[data-device-size]");l.forEach((function(t){var e=t.getAttribute("data-device-size");if(!o[e]){var i=t.classList.contains("sc-has-value");o[e]=i,a=a&&!i}})),a&&(o[t.size_for_all]=!0),l.forEach((function(t){var e=t.getAttribute("data-device-size"),i=t.getAttribute("data-device-display")||"flex";o[e]?pgShow(t,i):pgHide(t)}));var c='<ul class="sc-device-selector">';t.sizes.forEach((function(t){c+='<li data-size="'+t+'" class="'+(o[t]?"sc-active":"")+'">'+t+"</li>"})),c+="</ul>";var h=$(c);i.$title.append(h),h.on("click","li",(function(t){t.preventDefault(),t.stopPropagation();var s=$(this),r=s.attr("data-size"),a=s.hasClass("sc-active");a=!a,o[r]=a,a||1!=h.find("li.sc-active").length?(n[e.section_key]||(n[e.section_key]={}),n[e.section_key][r]=a,i.$content.find('[data-device-size="'+r+'"]').each((function(t,e){var i=e.getAttribute("data-device-display")||"flex";a?(pg$Show($(e),i),s.addClass("sc-active")):(pg$Hide($(e)),s.removeClass("sc-active"))})),p()):pinegrow.showQuickError("At least one device size must be active.")}));var u,p=function(){var e=0,s=!1;t.sizes.forEach((function(i){o[i]&&(e++,i==t.size_for_all&&(s=!0))}));var n=i.$content.find(".sc-device-control");e>1?n.removeClass("sc-single-size"):n.addClass("sc-single-size"),s?n.addClass("sc-for-all-shown"):n.removeClass("sc-for-all-shown")};u=pinegrow.getSelectedPage(),l.forEach((function(t){var e=t.getAttribute("data-device-size");r.isSizeVisible(u,e)?t.classList.remove("sc-size-not-visible"):t.classList.add("sc-size-not-visible")})),h.children().each((function(t,e){var i=e.getAttribute("data-size");r.isSizeVisible(u,i)?e.classList.remove("sc-size-not-visible"):e.classList.add("sc-size-not-visible")})),p()};var r=["a","x","y","t","r","b","l"],a=["none","xs","sm","md","lg","xl","auto"],l={},c={},h=function(t){if(!t)return null;var e=t.split("-");return e.length>1?e[e.length-1]:""},u=function(t,e,i,s,n,r){var o=n[s+r];return o?t+e+("xs"!=i?"-"+i:"")+"-"+h(o):null},d=function(t,e,i,s,n,o){for(var a=3;a<r.length;a++)if(t.removeClass(n[s+r[a]]),r[a]!=o){var c=l[i][e+r[a]],h=u(e,r[a],i,s,n,"a");n[s+r[a]]=h,c.setValue(h)}},m=function(t,e,i,s){return s?t+e+("xs"!=i?"-"+i:"")+"-"+s:null},g=function(t,e,i){var s=$(t.target).closest(".change-all-icon");if(s.toggleClass("active"),s.hasClass("active")){var n=s.data("size");!function(t,e,i,s,n,o){var l=s+"."+i+"."+e,c=pinegrow.getCollectionForElement(t);pinegrow.makeChanges(c,"Set spacing",(function(){c.forEachElement((function(t){for(var s=!1,o=0;o<r.length;o++){for(var c=0;c<a.length;c++){var h=m(e,r[o],i,a[c]);if(t.hasClass(h)){t.removeClass(h);var u=e+"a"+("xs"!=i?"-"+i:"")+"-"+a[c];t.addClass(u),n[l+"a"]=u,d(t,e,i,l,n,r[o]),s=!0;break}}if(s)break}}))}))}(i.obj,e,n,i.control_id,i.values)}};s.getDevicesMarginAndPaddingControlFactory=function(e,i){var s=["q-m","q-p"],n=function(i){t.sizes.forEach((function(s){i(s,s==t.size_for_all?"":"-"+s,t.prefix+e+"."+s)}))};return function(){var o=new PgCustomPropertyControl(t.prefix+e);return o.onDefine=function(){n((function(t,e,n){for(var a=0;a<s.length;a++)for(var l=0;l<r.length;l++){var c=i(t,s[a],r[l],e),h=n+"."+s[a]+r[l];o.registerInputField(h,c)}}))},o.onShow=function(){var t,e,s,r=$('<div class="crsa-css-gui bs4-margin-and-padding"></div>'),a=this,h="",u="";return n((function(n,p,d){var f=$('<div class="margin-and-padding-container text-center" data-device-size="'+n+'"></div>').appendTo(r);$("<label/>",{class:"size-label"}).html('<span class="sc-device-size">'+n+"</span>").appendTo(f),l[n]={},c[n]={},t=i(n,h="q-m",u="t",p),s=d+"."+h+u,(e=o.showInputField(f,s,t)).$field.addClass("crsa-field-margin-top crsa-small-input crsa-align-center-input crsa-inline-container"),l[n][h+u]=e,t=i(n,h,u="l",p),s=d+"."+h+u,(e=o.showInputField(f,s,t)).$field.addClass("crsa-field-margin-left crsa-small-input crsa-align-center-input crsa-inline-container"),l[n][h+u]=e;var m=$('<div class="margin-border"></div>').appendTo(f),y=$('<div class="change-all-margin-icon change-all-icon"> <i class="icon-same"></i> </div>').appendTo(m);c[n]["q-m"]=y,y.data("size",n),y.on("click",(function(t){g(t,"q-m",a)}));var b=$('<div class="padding-container"></div>').appendTo(m);t=i(n,h="q-p",u="t",p),s=d+"."+h+u,(e=o.showInputField(b,s,t)).$field.addClass("crsa-field-padding-top crsa-small-input crsa-align-center-input crsa-inline-container"),l[n][h+u]=e,t=i(n,h,u="l",p),s=d+"."+h+u,(e=o.showInputField(b,s,t)).$field.addClass("crsa-field-padding-left crsa-small-input crsa-align-center-input crsa-inline-container"),l[n][h+u]=e;var v=$('<div class="padding-border"> <div class="change-all-padding-icon change-all-icon"><i class="icon-same"></i></div> </div>').appendTo(b).find("> .change-all-icon");c[n]["q-p"]=v,v.data("size",n),v.on("click",(function(t){g(t,"q-p",a)})),t=i(n,h,u="r",p),s=d+"."+h+u,(e=o.showInputField(b,s,t)).$field.addClass("crsa-field-padding-right crsa-small-input crsa-align-center-input crsa-inline-container"),l[n][h+u]=e,t=i(n,h,u="b",p),s=d+"."+h+u,(e=o.showInputField(b,s,t)).$field.addClass("crsa-field-padding-bottom crsa-small-input crsa-align-center-input crsa-inline-container"),l[n][h+u]=e,t=i(n,h="q-m",u="r",p),s=d+"."+h+u,(e=o.showInputField(f,s,t)).$field.addClass("crsa-field-margin-right crsa-small-input crsa-align-center-input crsa-inline-container"),l[n][h+u]=e,t=i(n,h,u="b",p),s=d+"."+h+u,(e=o.showInputField(f,s,t)).$field.addClass("crsa-field-margin-bottom crsa-small-input crsa-align-center-input crsa-inline-container"),l[n][h+u]=e})),r},o.onSetValues=function(e){var i=!0;n((function(e,s,n){!function(t,e,i){for(var s=["q-p","q-m"],n=["t","r","l","b"],r=function(t){for(var e=i+"."+t,s=["a","x","y"],n=[],r=0;r<s.length;r++){var a=s[r],l=o.values[e+a];if(l){var c=l.split("-");n.push({direction:a,value:c[c.length-1]})}}return n.length>0?n:null},a=function(t,i,s){return t+i+(e?"-"+e:"")+"-"+s},h=function(t,e){if("a"==e)return!0;if("x"==e){if(["r","l"].indexOf(t)>-1)return!0}else if("y"==e&&["t","b"].indexOf(t)>-1)return!0;return!1},u=0;u<s.length;u++){var p=s[u],d=r(p),f=c[t][p];if(d&&d.length>0)for(var m=0;m<d.length;m++){for(var g=d[m],y=g.value,b=g.direction,v=0;v<n.length;v++){var w=n[v];if(h(w,b)){var k=i+"."+p+w;if(!o.values[k]){var _=l[t][p+w],x=a(p,w,y);o.values[k]=x,_.setValue(x)}}}if("a"==g.direction){f.addClass("active");break}}else f.removeClass("active")}}(e,s,n);var r=o.$element.find('> [data-device-size="'+e+'"]');!function(t){for(var e=["q-m","q-p"],i=["t","l","r","b"],s=0;s<e.length;s++)for(var n=e[s],r=0;r<i.length;r++){var a=t+"."+n+i[r];if(o.values[a])return!0}return!1}(n)?r.removeClass("sc-has-value"):(r.addClass("sc-has-value"),e!=t.size_for_all&&(i=!1))})),i?o.$element.addClass("sc-none-or-all"):o.$element.removeClass("sc-none-or-all")},o}},s.getSpacingControl=function(){return s.getDevicesMarginAndPaddingControlFactory("margin.padding",(function(e,i,s,n){var o={type:"select",name:null,placeholder:s,show_empty:!0,options:function(){var t=i+s+n+"-",e=[];return a.forEach((function(i){e.push({key:t+i,name:i,num:i})})),e},action:"custom",draggable_list:!0,async_options_function:!0,fill_list_on_open:!0,more_prop:{size:e,type:i,direction:s},get_value:function(e,i,s,n){for(var r=n.options(),o=0;o<r.length;o++)if(e.hasClass(r[o].key))return r[o].key;var a=n.more_prop.size,l=n.more_prop.type,c=n.more_prop.direction;if(c&&"a"!=c&&"x"!=c&&"y"!=c){var h=t.prefix+"margin.padding."+a+"."+l;if(s[h+"a"]){var p=u(l,c,a,h,s,"a");return s[h+c]=p,p}if("r"==c||"l"==c){if(s[h+"x"])return p=u(l,c,a,h,s,"x"),s[h+c]=p,p}else if(("t"==c||"b"==c)&&s[h+"y"])return p=u(l,c,a,h,s,"y"),s[h+c]=p,p}return""},set_value:function(e,i,s,n,o,a){var l=a.options();$.each(l,(function(t,s){if(s.key==i)return!0;e.hasClass(s.key)&&e.removeClass(s.key)}));var u=a.more_prop.size,p=a.more_prop.type,f=a.more_prop.direction,g=t.prefix+"margin.padding.";if(c[u][p].hasClass("active")||function(t,e,i,s,n,o){for(var a=h(o),l=!0,c=3;c<r.length;c++)if(r[c]!=n){var u=e+r[c]+("xs"!=i?"-"+i:"")+"-"+a;if(!t.hasClass(u)){l=!1;break}}return l}(e,p,u,0,f,i)){var y=g+u+"."+p,b=m(p,"a",u,h(n)),v=m(p,"a",u,h(i));e.removeClass(b);for(var w=0;w<r.length;w++){var k;k=h(r[w]==f?n:i);var _=p+r[w]+("xs"!=u?"-"+u:"")+"-"+k;e.removeClass(_)}e.addClass(v),s[y+"a"]=v,d(e,p,u,y,s,f)}else{var x=s[(y=g+u+"."+p)+f];for(s[y+f]="",e.removeClass(x),e.removeClass(s[y+"a"]),s[y+"a"]="",w=3;w<r.length;w++)r[w]!=f&&e.addClass(s[y+r[w]]);e.addClass(i)}return i}};return o}))};var y=["","x","y"],b=["xs","sm","md","lg","xl"],v={},w=function(t,e,i,s){return"q-".concat("column"===s?"col-":"","gutter")+(e||"")+(t?"-".concat(t):"")+"-"+i};return s.getDevicesRowGapControlFactory=function(t,e,i){var s=y,n=b,r=function(e){p.forEach((function(i){e(i,i==f?"":"-"+i,o+t+"."+i)}))};return function(){var a=new PgCustomPropertyControl(o+t);return a.onDefine=function(){r((function(t,e,n){for(var r=0;r<s.length;r++){var o=i(t,s[r],e),l=n+"."+s[r];a.registerInputField(l,o)}}))},a.onShow=function(){var t,e,s,n=$('<div class="bs5-row-gap sc-device-control sc-single-size"></div>'),o=($('<div class="sc-device-control-title"></div>').appendTo(n),"");return r((function(r,l,c){var h=$('<div class="row-gap-container" data-device-size="'+r+'"></div>').appendTo(n),u=($("<label/>",{class:"size-label"}).html('<span class="sc-label"></span><span class="sc-device-size">'+r+"</span>").appendTo(h),$('<div class="main-row-gap-container"></div>').appendTo(h));v[r]={};var p=$('<div class="row-gap-fields-container"></div>').appendTo(u),d=$("<div></div>").appendTo(p);t=i(r,o="x",l),s=c+"."+o,(e=a.showInputField(d,s,t)).$field.addClass(""),v[r][o]=e;var f=$("<div></div>").appendTo(p);t=i(r,o="y",l),s=c+"."+o,(e=a.showInputField(f,s,t)).$field.addClass(""),v[r][o]=e})),n},a.onSetValues=function(t){var i=!0;r((function(t,r,o){var l=a.$element.find('> [data-device-size="'+t+'"]');!function(t,i){for(var r=0;r<s.length;r++)for(var o=s[r],a=0;a<n.length;a++){var l=n[a];if(t.hasClass(w(o,i,l,e)))return!0}return!1}(a.obj,r)?l.removeClass("sc-has-value"):(l.addClass("sc-has-value"),t!=f&&(i=!1))})),i?a.$element.addClass("sc-none-or-all"):a.$element.removeClass("sc-none-or-all")},a}},s.getGappingControl=function(t){return s.getDevicesRowGapControlFactory("".concat(t,".row.rowGap"),t,(function(e,i,s){var n=b,r={type:"select",name:null,placeholder:i,show_empty:!0,options:function(){for(var e=[],r=0;r<n.length;r++){var o=n[r];e.push({key:w(i,s,o,t),name:o,num:o})}return e},action:"custom",async_options_function:!0,more_prop:{size:e,direction:i},get_value:function(e,i,s,r){for(var o=r.options(),a=0;a<o.length;a++)if(e.hasClass(o[a].key))return o[a].key;var l=r.more_prop.size,c=r.more_prop.direction,h=l==f?"":"-"+l;for(a=0;a<n.length;a++){var u=n[a],p=w("",h,u,t);if(e.hasClass(p))return w(c,h,u,t)}return null},set_value:function(e,i,s,r,o,a){var l=a.options();$.each(l,(function(t,s){if(s.key==i)return!0;e.hasClass(s.key)&&e.removeClass(s.key)}));for(var c=a.more_prop.size,h=a.more_prop.direction,u="x"===h?"y":"x",p=c==f?"":"-"+c,d=!0,m=0;m<n.length;m++){var g=n[m],y=w("",p,g,t);e.hasClass(y)&&(e.removeClass(y),e.addClass(w(u,p,g,t)))}var b=function(t,e,i,s){return t?t.replace("q-".concat("column"===s?"col-":"","gutter")+(i||"")+(e?"-".concat(e):"")+"-",""):null}(i,h,p,t),v=w(u,p,b,t);return e.hasClass(v)&&(e.removeClass(v),e.addClass(w("",p,b,t)),d=!1),d&&e.addClass(i),i}};return r}))},s.init(),s}({num_columns:u,sizes:p,sizes_breakpoints:d,sizes_breakpoints_map:m,sizes_view_sizes:[375,960,1280,1920,2560],sizes_icons:["icon-Xs","icon-IPAD","icon-tableta-lezeca","icon-ikone100--copy_laptop","icon-Lg"],size_for_all:f,sizes_names:["All","Small","Medium","Large","Extra Large"],prefix:o,col_prefix_class:"col",isColumn:h,onClickOnColumnPoint:function(){var t=this;Promise.resolve().then(i.bind(i,318)).then((function(e){var i=e.def_all;try{PgQuickProperties([i.sections[t.options.prefix+"columns"]],t.menu.pgel,t.$element,"Column size &amp; order",300)}catch(t){}}))},version_name:"".concat(l," ").concat(n.Fq),reqVersion:n.N$,skipVersion:n.Zo,framework_prefix:o,container_selector:".container,.container-fluid",grid_container_selector:"row",style:"",no_include_local_question:!0,createDisplayHelpers:!1,showGridInMenu:!1,showColumnInMenu:!1},s.M,r.Yr.minor_version),b=new PgToggleButtonMaker,v=y.getSpacingControl,w=y.getGappingControl,k=(y.executeScriptInPageDelayed,y.getDevicesControlFactory),_=y.onSectionWithDevicesControlsShown,x=y.makeFieldLabelForSize,S=function(t){return y.addPrefixToSectionsAndFields(t)};s.M.on_get_menu_points=function(t,e,i,s){y.getMenuPoints(t,e,i,s)},s.M.on_page_view_resized=function(t,e){y.onPageViewResized(t,e)},s.M.on_get_device_sizes=function(t,e){y.getDeviceSizesForPageViewMenu(t,e),!1!==r.fh&&t.setAllBreakpoints(e.filter((function(t){return t.w_range[0]})).map((function(t){return"".concat(t.w_range[0],"px")})))},s.M.on_page_shown_in_live_view=function(t,e){y.show(e)},s.M.on_get_floating_tools_sections=function(t,e){if(!floating_sections){floating_sections=[];var i=function(t){for(var e=["border","border-top","border-end","border-bottom","border-start"],i=!1,s=0;s<e.length;s++)if(t.hasClass(e[s])){i=!0;break}i||t.addClass("border")},n=new PgFloatingToolsSection(o+"border","Border");n.addControl(getControl("bsborders","bordercolor",{on_before_set:i,label:'<i class="icon icon-Pin20"></i>',buttons:!1,submenu:{name:"Border sides",all_classes:["border","border-top","border-end","border-bottom","border-start","border-0","border-top-0","border-end-0","border-bottom-0","border-start-0"],combine_with_parent:!0,items:[{key:"border",name:"All sides"},{key:"border-top",name:"Top"},{key:"border-end",name:"End"},{key:"border-bottom",name:"Bottom"},{key:"border-start",name:"Start"},{key:"border-bottom border-top",name:"Top &amp; Bottom"},{key:"border-start border-end",name:"Start &amp; End"}]},on_get_current_value_label:function(t,e){for(var i=s.M.bsGetBorderColorOptions(""),n=0;n<i.length;n++)if(t.classes.indexOf(i[n].key)>=0)return i[n].html;return this.options.label}})),n.addControl(getControl("bsborders","widthbotder",{on_before_set:i,name:"Border width",label:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="currentColor" class="bi bi-border-width" viewBox="0 0 16 16">\n <path d="M0 3.5A.5.5 0 0 1 .5 3h15a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5H.5a.5.5 0 0 1-.5-.5v-2zm0 5A.5.5 0 0 1 .5 8h15a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5H.5a.5.5 0 0 1-.5-.5v-1zm0 4a.5.5 0 0 1 .5-.5h15a.5.5 0 0 1 0 1H.5a.5.5 0 0 1-.5-.5z"/>\n </svg>'}));var r=getControl("bsborders","raduisborder",{label:'<i class="icon icon-round_lu"></i>',buttons:!1});r.def.options=[{key:"rounded",name:"All sides"},{key:"rounded-0",name:"All sides none"},{key:"rounded-1",name:"All sides small"},{key:"rounded-2",name:"All sides medium"},{key:"rounded-3",name:"All sides large"},{key:"rounded-top",name:"Top"},{key:"rounded-bottom",name:"Bottom"},{key:"rounded-start",name:"Left"},{key:"rounded-end",name:"Right"},{key:"rounded-circle",name:"Circle"},{key:"rounded-pill",name:"Pill"}],n.addControl(r),floating_sections.push(n);var a=[{key:"justify-content-start",name:"Start",html:b.makeIcon("223",{attributes:{title:"Start"}})},{key:"justify-content-end",name:"End",html:b.makeIcon("218",{attributes:{title:"End"}})},{key:"justify-content-center",name:"Center",html:b.makeIcon("219",{attributes:{title:"Center"}})},{key:"justify-content-between",name:"Between",html:b.makeIcon("206",{attributes:{title:"Between"}})},{key:"justify-content-around",name:"Around",html:b.makeIcon("205",{attributes:{title:"Around"}})},{key:"justify-content-evenly",name:"Evenly",html:b.makeIcon("205",{attributes:{title:"Evenly"}})}],l=[{key:"align-items-start",name:"Start",html:b.makeIcon("223",{attributes:{title:"Start"}})},{key:"align-items-end",name:"End",html:b.makeIcon("220",{attributes:{title:"End"}})},{key:"align-items-center",name:"Center",html:b.makeIcon("221",{attributes:{title:"Center"}})},{key:"align-items-baseline",name:"Baseline",html:b.makeIcon("212",{attributes:{title:"Baseline"}})},{key:"align-items-stretch",name:"Stretch",html:b.makeIcon("214",{attributes:{title:"Stretch"}})}],c=function(t,e,i,s){var n=new PgApi,r=n.getFlexSettings(t);if(r.grid)return pinegrow.showQuickError("The element uses CSS Grid to position its children. Use the grid properties for the layout."),!1;var o=[],c=[];r.flex||o.push(r.inline?"d-inline-flex":"d-flex");var h=i,u=e[0];return"column"===r.direction&&(u=u.replace(h,s),h=s),c="align-items-"===h?l.map((function(t){return t.key})):a.map((function(t){return t.key})),c.filter((function(e){return n.hasClass(t,e)})),o.push(u),n.removeClass(t,c),n.addClass(t,o),!1},h=new PgFloatingToolsSection(o+"align","Align content");h.addControl(new PgFloatingToolsControl({key:o+"align.h",type:"select",name:"Align children horizontally w. Flex",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:a},{label:'<i class="icon icon-219"></i>',on_before_set:function(t,e){return c(t,e,"justify-content-","align-items-")}})),h.addControl(new PgFloatingToolsControl({key:o+"align.v",type:"select",name:"Align children vertically w. Flex",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:l},{label:'<i class="icon icon-221"></i>',on_before_set:function(t,e){return c(t,e,"align-items-","justify-content-")}}))}},s.M.on_plugin_activated=function(t,e){y.onFrameworkActivatedOnPage(t),e&&e(s.M)},s.M.on_page_changes_done=function(t,e,i){y.updateHelpersAfterChange(t,e,i)},s.M.on_inline_editing_done=function(t,e){y.updateHelpersAfterChange(t,null,new PgCollection(e))},s.M.on_page_selected=function(t){t&&(0,n.EB)(t)};var T=function(t,e){return e?"pg-classes"!==t&&!t.startsWith(o):!!t.startsWith(o)};s.M.on_before_properties_shown=function(t,e,i){t&&!t.data["".concat(r.Yr.type,"Version")]&&(0,n.EB)(t),r.hC&&e&&(i.show_classes_control=!0,i.show_section_nav_control=!0,i.filter_sections=T,i.show_custom_sections_in_general=!0)};var C=[{name:"Text color and typography",sections:[o+"textcolor",o+"typography"],icon:"icon-Pin18"},{name:"Background",sections:[o+"background"],icon:"icon-Pin21"},{name:"Margin, padding and dimension",sections:[o+"spacing",o+"dimension"],icon:"icon-Pin16"},{name:"Visibility and position",sections:[o+"visibility",o+"position",o+"overflow",o+"mouse"],icon:"icon-Pin17"},{name:"Shadows",sections:[o+"elevation"],icon:"icon-Pin23"},{name:"Border",sections:[o+"border"],icon:"icon-Pin20"},{name:"Flexbox",sections:[o+"flexcontainer",o+"columns"],icon:"icon-Pin22"},{name:"Transform and transition",sections:[o+"transform"],icon:"icon-Pin24"}];s.M.on_get_sections_for_prop_section_nav=function(t,e){r.hC&&C.forEach((function(t){t.ignore_has_data=!0,e.find((function(e){return e.name===t.name}))||e.push(t)}))}},204:(t,e,i)=>{"use strict";i.r(e);var s=i(676),n=(i(377),i(289)),r=i(681),o=i(297),a=i(100),l=i(870),c=i(611),h=i(230),u=i(421),p=i(660),d=i(104);function f(t){var e=m();return function(){var i,s=p(t);if(e){var n=p(this).constructor;i=Reflect.construct(s,arguments,n)}else i=s.apply(this,arguments);return u(this,i)}}function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(m=function(){return!!t})()}var g=function(t){h(i,t);var e=f(i);function i(t){return a(this,i),e.call(this,"quasar.colors",t,(function(){return""}))}return l(i,[{key:"onGetConfigObject",value:function(t,e){"init"===t&&(e.theme=e.theme||{},e.theme.extend=e.theme.extend||{},e.theme.extend.colors=e.theme.extend.colors||{},this.colors.forEachColor((function(t,i,s){try{if(s.hasShades()){var n={};s.forEachShade((function(t,e){n[t]=chroma(pgMakeCompatibleColor(e)).hex()})),e.theme.extend.colors[t]=n}else e.theme.extend.colors[t]=chroma(pgMakeCompatibleColor(i)).hex()}catch(t){}})))}},{key:"populateDefaultParams",value:function(t){var e,s,n;t||this.colors.clear(),this.colors.add("primary","#6750a4",!1,{50:"#eeedf4",100:"#d8d1e6",200:"#c2b6d9",300:"#ac9ccc",400:"#9582bf",500:"#7e68b1",600:"#6750a4",700:"#5e4996",800:"#564388",900:"#4d3c7b",950:"#45366e",DEFAULT:"#3d2f61"},!0),this.colors.add("secondary","#625b71",!1,{50:"#eeeeef",100:"#d5d4d9",200:"#bdbac3",300:"#a6a1ae",400:"#8e8999",500:"#787285",600:"#625b71",700:"#5a5367",800:"#524c5e",900:"#4a4455",950:"#423d4c",DEFAULT:"#3a3643"},!0),this.colors.add("tertiary","#7d5260",!1,{50:"#f0edee",100:"#ddd2d5",200:"#c9b7bc",300:"#b69da4",400:"#a3838d",500:"#906a76",600:"#7d5260",700:"#724b58",800:"#684450",900:"#5e3e48",950:"#543740",DEFAULT:"#4a3139"},!0),this.colors.add("success","#2e7d32",!0,{50:"#ecf0ec",100:"#cdddcb",200:"#aec9ab",300:"#90b68c",400:"#71a36d",500:"#519050",600:"#2e7d32",700:"#2a722e",800:"#26682a",900:"#235e26",950:"#1f5422",DEFAULT:"#519050"},!0),this.colors.add("warning","#ed6c02",!0,{50:"#fcefeb",100:"#ffd9c7",200:"#ffc4a4",300:"#ffae7f",400:"#fb985c",500:"#f58238",600:"#ed6c02",700:"#d96302",800:"#c55a02",900:"#b25102",950:"#9f4801",DEFAULT:"#f58238"},!0),this.colors.add("error","#d32f2f",!0,{50:"#f9ecec",100:"#f9cfca",200:"#f6b2a9",300:"#f19488",400:"#e97669",500:"#df564c",600:"#d32f2f",700:"#c12b2b",800:"#b02727",900:"#9e2323",950:"#8d2020",DEFAULT:"#df564c"},!0),this.colors.add("info","#0288d1",!0,{50:"#ebf1f9",100:"#d0dff2",200:"#b4ccec",300:"#96bbe5",400:"#76a9df",500:"#5098d8",600:"#0288d1",700:"#027cbf",800:"#0271ae",900:"#02669d",950:"#015b8c",DEFAULT:"#5098d8"},!0),this.colors.add("neutral","#121212",!0,{50:"#ebebeb",100:"#c2c2c2",200:"#9b9b9b",300:"#757575",400:"#525252",500:"#303030",600:"#121212",700:"#111111",800:"#0f0f0f",900:"#0e0e0e",950:"#0c0c0c",DEFAULT:"#0b0b0b"},!0),(e=i,"populateDefaultParams",s=this,"function"==typeof(n=c(p(1&3?e.prototype:e),"populateDefaultParams",s))?function(t){return n.apply(s,t)}:n)([])}}]),i}(PgDmDesignSkillColors),y=function(t){h(i,t);var e=f(i);function i(t){var s;return a(this,i),(s=e.call(this,"quasar","Quasar Design")).framework=t,o(s),s.on_engine_ready_funcs=[],s.colors=new PgDmDesignColors,s.colors.can_edit=!0,s.colors.mode="class",s.colors.default_shades=["50","100","200","300","400","500","600","700","800","900","950","DEFAULT"],s.setDefaultSettings(),s.addSkills(),s}return l(i,[{key:"addSkills",value:function(){var t=new g(this.colors);this.addSkill(t),this.fonts_skill=new b,this.addSkill(this.fonts_skill),this.bck_skill=new PgDmDesignSkillBackground(t,"QUASAR"),this.bck_skill.onGetConfigObject=function(t,e){if("init"===t){e.theme=e.theme||{},e.theme.extend=e.theme.extend||{},e.theme.extend.backgroundImage=e.theme.extend.backgroundImage||{};var i=this.getBackgroundImagesAsObject();$.each(i,(function(t,i){e.theme.extend.backgroundImage[t]=i}))}},this.addSkill(this.bck_skill)}},{key:"getActiveFonts",value:function(){return this.fonts_skill.getActiveFonts()}},{key:"canEditColors",value:function(){return!0}},{key:"supportsColorShades",value:function(){return!0}},{key:"getEngine",value:function(t){var e=this;this.engine?this.engine.isReady()?t(this.engine):e.on_engine_ready_funcs.push(t):this.engine=new v((function(i){e.on_engine_ready_funcs.forEach((function(t){t(i)})),e.on_engine_ready_funcs=[],t&&t(i)}),this)}},{key:"hasOnlyDefaultColors",value:function(){var t=["primary","secondary","tertiary","success","warning","error","info","neutral"];if(t.length!==this.colors.getNumberOfColors())return!1;var e=0,i=this;return t.forEach((function(t){i.colors.getColorObject(t)&&e++})),e===t.length}},{key:"onBeforeSurpriseMe",value:function(t){t()}},{key:"onGetDesignThumbHTML",value:function(t,e){e.fonts=this.fonts_skill.getDesignThumbHTML(t)}},{key:"addCustomizableColors",value:function(){}},{key:"getFontsOptions",value:function(t){return this.fonts_skill.getFontsOptions(t)}},{key:"getBackgroundImageOptions",value:function(){var t=[],e=this.bck_skill.getBackgroundImagesAsObject();return $.each(e,(function(e,i){t.push({key:"bg-"+e,name:e})})),t}},{key:"getColorOptions",value:function(t){for(var e=this.getColorsForPicker(t),i=[],s=0;s<e.length;s++)for(var n=e[s],r=0;r<n.length;r++)i.push(n[r]);return i}},{key:"getColorsForPicker",value:function(t){var e=[[{key:t+"current",name:"current",color:"white",text:"c"},{key:t+"transparent",name:"transparent",color:"rgba(0,0,0,0)"},{key:t+"black",name:"black",color:"black"},{key:t+"white",name:"white",color:"white"},{key:t+"inherit",name:"inherit",color:"rgba(0,0,0,0.5)"}]];return this.colors.getColorsForPicker(t,e)}},{key:"destroyEngine",value:function(){this.engine&&this.engine.destroy(),this.engine=null}},{key:"recreateEngine",value:function(t){this.destroyEngine(),this.getEngine(t,this)}}]),i}(PgDmDesignProvider),b=function(t){h(i,t);var e=f(i);function i(){var t;a(this,i),(t=e.call(this,"fonts","Fonts")).fixed=["sans","serif"],t.max_num=10;for(var s=o(t),n=new PgToggleButtonMaker,r=1;r<=t.max_num;r++){var l=r<=t.fixed.length?t.fixed[r-1]:null;t.addControl("name_".concat(r),{name:"Name",type:l?"hidden":"text",default_value:l,start_repeat_item:l||"Custom font ".concat(r-t.fixed.length),tw_repeat_item_index:r,repeat_item_open:null!==l,add_repeat_item_label:"Add font family",on_create_repeat_item_button:function(t){$('<button class="pg-button" style="margin-left:4px;height: 27px;vertical-align: top;">Manage fonts...</button>').appendTo(t).on("click",(function(t){t.preventDefault(),pinegrow.fontLibrary.showLibrary()}))},dm_no_lock:"placeholder",on_repeat_item_removed:function(t,e,i){e.removeClass("has-value"),pinegrow.requireProjectDB((function(t){t.startBatchUpdates();var e=i.tw_repeat_item_index;s.setParam("family_".concat(e),""),s.setParam("name_".concat(e),"");for(var n=e+1;n<=s.max_num;n++){var r=s.getParam("name_".concat(n)),o=s.getParam("family_".concat(n));(r||o)&&(s.setParam("family_".concat(n-1),o),s.setParam("name_".concat(n-1),r),s.setParam("family_".concat(n),""),s.setParam("name_".concat(n),""))}t.endBatchUpdates("Remove font family","design_panel"),pgDmStore.update()}))}}),t.addControl("family_".concat(r),{name:"Family",type:"select",show_empty:!0,fill_list_on_open:!0,can_add_items:!0,options:function(){return pinegrow.fontLibrary.getSelectOptions()}}),s.addControl("".concat(r,"_options_container"),{name:"Use for",type:"displayhtmlwithlabel",html:"",class:"crsa-field-text-font-options-container crsa-field-text-font-options-container-".concat(r),dm_no_lock:"placeholder"});for(var c=1;c<=6;c++)s.addControl("h".concat(c,"_").concat(r),{name:"H"+c,type:"select",toggle_buttons:!0,append_to:".crsa-field-text-font-options-container-".concat(r),without_text:!0,show_empty:!0,dm_no_lock:!0,options:[{key:"h"+c,name:"H"+c,html:n.makeText("H"+c,{attributes:{title:"Use for H"+c},styles:{padding:"4px 0"}})}]})}return t}return l(i,[{key:"getFontsOptions",value:function(t){for(var e=[],i=!1,s=1;s<=this.max_num;s++){var n=s<=this.fixed.length?this.fixed[s-1]:this.getParam("name_".concat(s)),r=this.getParam("family_".concat(s));n&&(s<=this.fixed.length||r)&&(e.push({key:t+n,name:n}),"mono"===n&&(i=!0))}return i||e.push({key:t+"mono",name:"mono"}),e}},{key:"getActiveFonts",value:function(){for(var t=[],e=1;e<=this.max_num;e++){var i=e<=this.fixed.length?this.fixed[e-1]:this.getParam("name_".concat(e)),s=this.getParam("family_".concat(e));i&&s&&t.indexOf(s)<0&&t.push(s)}return t}},{key:"getDesignThumbHTML",value:function(t){var e=t.findOne('dmdesignskill[skill="fonts"]'),i="",s=0;if(e)for(var n=1;n<=this.max_num;n++){var r=n<=this.fixed.length?this.fixed[n-1]:e.getAttribute("name_".concat(n)),o=e.getAttribute("family_".concat(n));r&&o&&s<2&&(i+='<p style="font-family: '.concat(o.replace(/"/g,"'"),';margin: 0px 0px;white-space: nowrap;">').concat(o.replace(/["']/g,""),"</p>"),s++)}return i}},{key:"onSurpriseMe",value:function(t){for(var e=1;e<=this.max_num;e++){var i=e<=this.fixed.length?this.fixed[e-1]:this.getParam("name_".concat(e)),s="family_".concat(e);if(!this.isLocked(s)&&i){var n="all";(this.getParam("h1_".concat(e))||this.getParam("h2_".concat(e)))&&(n="h1");var r=pinegrow.fontLibrary.getRandomFont(n);this.setParam(s,r.family)}}t()}},{key:"onGetCSS",value:function(t,e){if("import"===t){var i=pgDmStore.design.fonts;i.clear();for(var s=1;s<=this.max_num;s++){var n=s<=this.fixed.length?this.fixed[s-1]:this.getParam("name_".concat(s)),r=this.getParam("family_".concat(s));if(n&&r){var o={key:n,family:r};i.setFont(o)}}var a=i.getImportStatements(e),l=a.length?a.join("\n")+"\n\n":"",c=i.getFontFontFaceStatements();return l+(c.length?c.join("\n\n")+"\n\n":"")}if("rules"===t){for(var h="",u=1;u<=this.max_num;u++){var p=u<=this.fixed.length?this.fixed[u-1]:this.getParam("name_".concat(u)),d=this.getParam("family_".concat(u));if(p&&d){for(var f=[],m=1;m<=6;m++)this.getParam("h".concat(m,"_").concat(u))&&f.push("h"+m);f.length&&(h+="\n".concat(f.join(",")," {\n @apply font-").concat(p,";\n} \n"))}}return h}return""}},{key:"onGetConfigObject",value:function(t,e){if("init"===t){e.theme=e.theme||{},e.theme.extend=e.theme.extend||{},e.theme.extend.fontFamily=e.theme.extend.fontFamily||{};for(var i=1;i<=this.max_num;i++){var s=i<=this.fixed.length?this.fixed[i-1]:this.getParam("name_".concat(i)),n=this.getParam("family_".concat(i));if(s&&n){var r=pinegrow.fontLibrary.getFontByFamily(n);r&&(n=r.getFamilyWithFallback()),e.theme.extend.fontFamily[s]=[n]}}}}}]),i}(PgDmDesignSkill),v=function(t){h(i,t);var e=f(i);function i(t,s){var n;a(this,i),n=e.call(this,t);var r=o(n);if(n.design_provider=s,n.external_build=!0,n.is_ready=!1,n.done_list=[],n.delayedTasks=new PgDelayedTasks,n.busy=!1,n.update_on_done=!1,pinegrow.getCurrentProject(),n.custom_cs_url=null,n.fs=require("fs"),n.external_build){try{var l=pinegrow.app_designer.addonManager.pluginsManager.pluginsProcessed.find((function(t){return"quasar"===t.key}));l.options.cssPath&&(s.settings.external_source_url=l.options.cssPath&&crsaMakeUrlFromFile(l.options.cssPath)),s.settings.external_config_path=l.options.configPath,s.settings.external_theme_path=l.options.themePath}catch(t){}return n.is_ready=!0,setTimeout((function(){t&&t(r)}),1),u(n)}return t&&t(r),n}return l(i,[{key:"activateOnPage",value:function(t,e){e&&e()}},{key:"update",value:function(t){t&&this.done_list.push(t),this.delayedTasks.run("update",this.updateTask.bind(this),this.external_build?1:100)}},{key:"getConfigFile",value:function(){for(var t=0,e=["quasar.config.cjs","quasar.config.mjs","quasar.config.js","quasar.config.ts","quasar.config.cts","quasar.config.mts"];t<e.length;t++){var i=e[t];try{var s=pinegrow.getCurrentProject().getAbsolutePath(i);return this.fs.accessSync(s),s}catch(t){}}}},{key:"updateTask",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this,s=pinegrow.getCurrentProject(),n=pinegrow.getSelectedPage();if(!e&&!n)return i.done_list.forEach((function(t){t()})),void(i.done_list=[]);if(this.busy&&Date.now()-this.busy_time>4e3&&(this.busy=!1),this.busy)this.update_on_done=!0;else{var o={css:"",config:{},cs_url:this.custom_cs_url};pinegrow.dispatchEvent("on_dm_get_css",null,"import",o),pinegrow.dispatchEvent("on_dm_get_css",null,"init",o),o.css,o.font_urls=[];var a=null===(t=o.css)||void 0===t||null===(t=t.match(/'([^']+)'/))||void 0===t?void 0:t[1];a&&o.font_urls.push(a),o.background_urls={},Object.entries(o.config.theme.extend.backgroundImage).forEach((function(t){var e,i=r(t,2),s=i[0],n=i[1],a=null==n||null===(e=n.match(/'([^']+)'/))||void 0===e?void 0:e[1];a&&(o.background_urls[s]=a)})),o.css="",pinegrow.dispatchEvent("on_dm_get_css",null,"rules",o);try{this.external_config_path=this.design_provider.settings.external_config_path||this.getConfigFile(),this.external_theme_path=this.design_provider.settings.external_theme_path,this.external_theme_path_alt=this.external_theme_path&&!this.external_theme_path.endsWith(".mjs")?this.external_theme_path.replace(path.extname(this.external_theme_path),".mjs"):null,this.design_provider.settings.external_source_url&&(this.external_source_file=crsaMakeFileFromUrl(s.getAbsoluteUrl(this.design_provider.settings.external_source_url)));var l=this.fs.readFileSync(this.external_theme_path||this.external_config_path,{encoding:"utf8"}),c=new PgSimpleJsParser(l),h="\nconst pg_colors = ".concat(c.objToString(o.config.theme.extend.colors),"\n\nconst pg_fonts = ").concat(c.objToString(o.config.theme.extend.fontFamily)," \n\nconst pg_font_urls = ").concat(c.objToString(o.font_urls),"\n\nconst pg_backgrounds = ").concat(c.objToString(o.config.theme.extend.backgroundImage)," \n \nconst pg_background_urls = ").concat(c.objToString(o.background_urls),"\n\n ");l=pgf.uses_hot_reload?"/* Pinegrow generated Design Panel Begin */\n/* prettier-disable */\n/* @ts-nocheck */\n".concat(h,"\nmodule.exports = {\npg_colors,\npg_fonts,\npg_font_urls,\npg_backgrounds,\npg_background_urls,\n}\n\n/* Pinegrow generated Design Panel End */"):pgUpdateGeneratedSectionContent(l,"Design Panel",h,"prepend"),this.fs.writeFileSync(this.external_theme_path||this.external_config_path,l,{encoding:"utf8"}),this.external_theme_path_alt&&this.fs.writeFileSync(this.external_theme_path_alt,l.replace("module.exports =","export ").replace("module.exports=","export "),{encoding:"utf8"})}catch(t){console.warn("Unable to update quasar config file and source file.",t)}setTimeout((function(){i.update_on_done?i.update():(i.done_list.forEach((function(t){t()})),i.done_list=[]),i.busy=!1,i.update_on_done=!1}),1)}}},{key:"destroy",value:function(){this.design_provider=null,this.delayedTasks.destroy()}}]),i}(PgDmEngine);pinegrow.addEventHandler("on_vite_plugin_activated",(function(t,e,i){if(e===d.Yr.key&&((0,d.EX)(i.options.themePath),!1!==i.options.themePath)){var s=null;void 0!==window.pgDmStore&&(s=window.pgDmStore);var r=new y(n.MS);s.registerDesignProvider("quasar",r),n.MS.on_dm_detect_design_providers=function(t,e){e.push("quasar")}}}));var w=i(290),k=i(706);function _(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return x(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?x(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var s=0,n=function(){};return{s:n,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return o=t.done,t},e:function(t){a=!0,r=t},f:function(){try{o||null==i.return||i.return()}finally{if(a)throw r}}}}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}function S(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function T(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?S(Object(i),!0).forEach((function(e){w(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):S(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var C={},A={},E={textcolor:{name:"Text Color",compact:!0,fields:{palettetextcolor:{name:"Palette",control_prefix:"text",control_type:"text"}}},bgcolor:{name:"Background Color",compact:!0,fields:{palettebgcolor:{name:"Palette",control_prefix:"bg",control_type:"color"}}}};pinegrow.addEventHandler("on_show_properties_alternative_event",(function(t,e,i,s,o){n.MS.getPaletteColors&&n.MS.getPaletteColors(t),Object.entries(E).forEach((function(t){var i,o,a=r(t,2),l=a[0],c=a[1],h=s&&s.find((function(t){return t.type===n.O4+"all"})),u=(i=c.fields,o=Object.entries(i).reduce((function(t,e){var i=r(e,2),s=i[0],o=i[1],a={};A[l]=s,k.GW&&(A[l]=Object.entries(k.GW).reduce((function(t,e){var i=r(e,2),s=i[0],n=i[1];return"".concat(t,"_").concat(s,"_").concat(n)}),s)),s=A[l]+"_dark_"+k.dT;var c=o.control_prefix,h=n.O4+l;return C[s]||(C[s]={type:"select",name:o.name,show_empty:!0,toggle_buttons:!0,fill_list_on_open:!0,colors:function(t){return(0,k.uQ)("".concat(c,"-"))},parent_section_id:h,options:function(){var t=("bg"===c?k.uY:k.T5).map((function(t){return T(T({},t),{},{key:"".concat(c,"-").concat(t.key)})}));return t.length?t:[{key:"transparent",name:"Transparent",html:n.bm.makeText("Transparent",{styles:{"font-size":"11px"},attributes:{title:"Transparent"}})}]},action:"custom",get_value:function(t,e,i,s){var n,r=(0,k.VH)("".concat(c,"-")).map((function(t){return t.key})),o=_(t.getClasses());try{for(o.s();!(n=o.n()).done;){var a=n.value;if(r.includes(a))return a}}catch(t){o.e(t)}finally{o.f()}},set_value:function(t,e,i,s,n,r,o){var a=(0,k.VH)("".concat(c,"-")).map((function(t){return t.key})),l=t.getClasses(),h=!1;if(l.length){var u,p=_(l);try{for(p.s();!(u=p.n()).done;){var d=u.value;(s===d||a.includes(d))&&(t.removeClass(d),h=!0)}}catch(t){p.e(t)}finally{p.f()}}return e&&(t.addClass(e),h=!0),h&&pinegrow.reselectElement(t),e}}),a[s]=C[s],T(T({},t),a)}),{}),o);if(h){var p={framework:n.MS,key:c.name,name:c.name,fields:u,component_definition:h},d=e.find((function(t){return t.name===c.name}));if(d)Object.entries(u).forEach((function(t){var e=r(t,2),i=(e[0],e[1]),s=Object.entries(d.fields).find((function(t){var e=r(t,2);return e[0],e[1].name===i.name}));if(s){var n=s[0];delete d.fields[n]}})),d.fields=T(T({},u),d.fields);else{var f=e.findIndex((function(t){return t.name===c.name}));f>-1&&e.splice(f,1,p)}}}))}));var O=i(318),M=null,P=function(t){"checkbox"===t.type&&(t.type="select",t.toggle_buttons=!0,t.options=[{key:t.value,name:t.name,html:n.bm.makeText(t.name,{attributes:{title:t.name}})}])};n.MS.on_get_floating_tools_sections=function(t,e){if(d.hC){var i=n.O4;if(!(M=null)){var s=function(t,e,s){var n,r=cloneObject(null===(n=O.def_all.sections[i+t])||void 0===n?void 0:n.fields[e]);return P(r),r.key=e,new PgFloatingToolsControl(r,s)},r=function(t,e,s){var n={name:"More",key:t,type:"select",options:[]},r={};return e.forEach((function(e){var s;r[e]=cloneObject(null===(s=O.def_all.sections[i+t])||void 0===s?void 0:s.fields[e]),P(r[e]);var o=r[e];n.options.push({key:e,name:o.name})})),(s=s||{}).buttons=!1,s.no_clear_on_first_level=!0,s.submenu=function(t){r[t].toggle_buttons&&(r[t].toggle_buttons=!1);var e="function"==typeof r[t].options?r[t].options():r[t].options;return{items:e,combine_with_parent:!1,name:r[t].name,require_submenu_selection:!0,all_classes:e.map((function(t){return t.key}))}},new PgFloatingToolsControl(n,s)};M=[];var o=new PgFloatingToolsSection(i+"text","Text color and typography");o.addControl(s("textcolor","".concat(i,"textcolor"),{label:'<i class="icon icon-ikone1-100-copy-63"></i>',cursor:'<i class="icon icon-ikone1-100-copy-63" style="color:$COLOR !important;"></i>',svg_support:"stroke"})),o.addControl(s("typography","".concat(i,"typography"),{label:'<i class="icon icon-font-size"></i>'})),o.addControl(s("typography","".concat(i,"fontweight"),{label:'<i class="icon icon-weight"></i>'})),o.addControl(s("typography","".concat(i,"textalign"),{label:'<i class="icon icon-align-left"></i>'})),o.addControl(s("typography","".concat(i,"transform"),{label:'<i class="icon icon-Transform-uppercase"></i>'})),o.addControl(r("typography",["".concat(i,"whitespace"),"".concat(i,"fontstyle"),"".concat(i,"fontbold"),"".concat(i,"decoration")],{label:'<i class="icon icon-down"></i>',name:"More options"})),M.push(o);var a=new PgFloatingToolsSection(i+"background","Background");a.addControl(s("background","".concat(i,"bgcolor"),{label:'<i class="icon icon-Pin21"></i>',cursor:'<i class="icon icon-Pin21" style="color:rgba(0,0,0,0.25) !important;background-color:$COLOR;"></i>',svg_support:"fill",on_filter_svg:function(t,e){for(var i=0;i<t.length;i++)t[i]=t[i].replace("bg-","text-");for(i=0;i<e.length;i++)e[i]=e[i].replace("bg-","text-")}})),M.push(a);var l=new PgFloatingToolsSection(i+"dimension","Dimension");l.addControl(s("dimension","".concat(i,"width"),{label:'<i class="icon icon-width"></i>'})),l.addControl(s("dimension","".concat(i,"height"),{label:'<i class="icon icon-height"></i>'})),l.addControl(r("dimension",["".concat(i,"display"),"".concat(i,"fit")],{label:'<i class="icon icon-down"></i>',name:"More options"})),M.push(l);var c=new PgFloatingToolsSection(i+"visibility","Visibility and position");c.addControl(s("position","".concat(i,"position_common"),{label:'<i class="icon icon-Pin17"></i>'})),c.addControl(s("position","".concat(i,"horizontal_alignment"),{label:'<i class="icon icon-template-columns"></i>'})),c.addControl(s("position","".concat(i,"vertical_alignment"),{label:'<i class="icon icon-template-rows"></i>'})),c.addControl(r("visibility",["".concat(i,"disabled"),"".concat(i,"hidden"),"".concat(i,"invisible"),"".concat(i,"readonly"),"".concat(i,"ellipsis"),"".concat(i,"zindex"),"".concat(i,"orientation"),"".concat(i,"platform_only"),"".concat(i,"print")],{label:'<i class="icon icon-down"></i>',name:"More options"})),M.push(c)}M.forEach((function(t){e.push(t)}))}},i(143),i(802);var L,F,j,D=new PgComponentType(n.O4+"row","Row",{selector:".row",tags:"major",preview:(F='<div style="height:60px;background:#eee;"></div>',j="border:2px solid #0098cc;",'<div class="container-fluid" style="'+(L="")+'"> <div class="row" style="'+j+'"> <div class="col-4" style="'+L+'">'+F+'</div> <div class="col-4">'+F+'</div> <div class="col-4">'+F+'</div> </div> <div class="row" style="margin-top:12px;"> <div class="col-4">'+F+'</div> <div class="col-4">'+F+'</div> <div class="col-4">'+F+"</div> </div> </div>"),code:'<div class="row"></div>',empty_placeholder:!0,action_menu:{add:[n.O4+"column"]}});n.MS.addComponentType(D);var z=new PgComponentType(n.O4+"column","Column",{tags:"major",selector:n.t3,parent_selector:".row",code:'<div class="col-md-4"><h3>Column title</h3> <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p> </div>',empty_placeholder:!0,name:"Column"});n.MS.addComponentType(z);var I=new PgFrameworkLibSection(n.O4+"grid","Grid");I.setComponentTypes([D,z]),(0,n.r2)(I),require("path"),pinegrow.addEventHandler("on_vite_plugin_activated",(function(t,e,i){e===d.Yr.key&&(!1===i.options.utilities?(0,d.JF)(i.options.utilities):(0,d.JF)(!0),n.MS.utilities=d.hC)})),pinegrow.addEventHandler("on_project_closed",(function(){(0,d.JF)(!1),n.MS.utilities=d.hC}));var R,B,N,W=i(461),U=i(841),q={classes_map:{},classes_list:[],classes_changed:!1,classes_id:0,css_vars_map:{},css_vars_list:[],css_vars_id:0,css_vars_changed:!1,ids_map:{},ids_list:[],ids_changed:!1,attribute_values:{},tags_attribute_values:{},keywords_map:{},keywords_list:[],keywords_changed:!1,contents:{},meta:{},path_map:{},path_list:[],path_changed:!1,path_id:0},H=function(t,e,i){if(null!==t&&0!==t.length&&!t.startsWith("pg-main-cs-")&&"pg-empty-placeholder"!==t)if(t in q.classes_map)q.classes_map[t].count++,s=q.classes_map[t],e&&s.sources.indexOf(e)<0&&s.sources.push(e),i&&s.sourceids.indexOf(i)<0&&s.sourceids.push(i);else{q.classes_id++;var s={key:t,name:t,count:1,sources:[],sourceids:[],id:q.classes_id};q.classes_map[t]=s,q.classes_list.push(s),q.classes_changed=!0,e&&s.sources.indexOf(e)<0&&s.sources.push(e),i&&s.sourceids.indexOf(i)<0&&s.sourceids.push(i)}},G=function t(e){e&&e.nodes&&e.nodes.forEach((function(e){if("rule"===e.type){var i=e.selector.match(/\.([a-zA-Z][a-zA-Z0-9\-\_]*)/g);if(i)for(var s=0;s<i.length;s++){var n=i[s].substr(1,i[s].length-1);n.startsWith("pg-node-id")||H(n,"quasar","pquasar")}}t(e)}))},Y=function(t){return(R=R||W(U.mark((function t(e){var i,s;return U.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=e.getAttribute("lang")||"css",t.t0=i,t.next="scss"===t.t0?4:"less"===t.t0?6:8;break;case 4:return s=PgSCSSStylesheet(),t.abrupt("break",9);case 6:return s=PgLESSStylesheet(),t.abrupt("break",9);case 8:s=PgCSSStylesheet();case 9:return t.next=11,s.loadInline(e,(function(){}));case 11:return t.abrupt("return",s);case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)},V=function(t){return(B=B||W(U.mark((function t(e){var i,s,n,r,o,a,l;return U.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(i=pinegrow.app_designer.addonManager.apiServerManager.connectionManager.repoRoot)){t.next=13;break}if(s=path.resolve(i,"node_modules","quasar","dist",e),!fs.existsSync(s)||!fs.statSync(s).isFile()){t.next=13;break}if((r=fs.readFileSync(s,{encoding:"utf8",flag:"r"})).trim()&&(n=r||""),!n){t.next=13;break}return o="<style>\n ".concat(n,"\n </style>"),a=pgCreate(o),t.next=11,Y(a);case 11:l=t.sent,G(l.getRootNode());case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)},Q=null;!function(){(N=N||W(U.mark((function t(){return U.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,V("quasar.css");case 3:return t.next=5,V("quasar.addon.css");case 5:Q=q.classes_list.map((function(t){return{key:t.key,id:t.id,name:t.name}})),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(0),console.log("Pinegrow Quasar Module: Unable to fetch quasar classList!"),console.log(t.t0);case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))).apply(this,arguments)}(),s.M.on_get_all_available_classes=function(t,e){Q&&(e.classes=Q)}},377:(t,e,i)=>{"use strict";i.d(e,{EB:()=>h,Fq:()=>a,N$:()=>u,Zo:()=>p});var s,n=i(676),r=i(104),o=r.Yr.minor_version,a=r.Yr.version,l=function(t){s=t,n.M.name_short="".concat(r.Yr.name)},c=pinegrow.getSetting("".concat(r.Yr.key,"-force-version"),"auto");"auto"!=c&&l(parseFloat(c));var h=function(t,e){"auto"==c?t.data["".concat(r.Yr.type,"Version")]&&!e?l(t.data["".concat(r.Yr.type,"Version")]):t.stylesheetsThatContain(/quasar\sv(5[0-9\.]*)/i,/quasar(\.min|)\.(css)/i,(function(e,i,n){if(e.length>0){var o=i[0][1].split("."),a=parseFloat(o[0]);o.length>1&&(a+=parseFloat(o[1])/10),l(a),t.data["".concat(r.Yr.type,"Version")]=a,n&&pinegrow.selectedElements.reselect(),console.log("version = "+s+" "+n)}}),e):l(parseFloat(c))},u=function(t){return s>=t},p=function(t){return s<t};l(o)}},s={};function n(t){var e=s[t];if(void 0!==e)return e.exports;var r=s[t]={exports:{}};return i[t](r,r.exports,n),r.exports}e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,n.t=function(i,s){if(1&s&&(i=this(i)),8&s)return i;if("object"==typeof i&&i){if(4&s&&i.__esModule)return i;if(16&s&&"function"==typeof i.then)return i}var r=Object.create(null);n.r(r);var o={};t=t||[null,e({}),e([]),e(e)];for(var a=2&s&&i;"object"==typeof a&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach((t=>o[t]=()=>i[t]));return o.default=()=>i,n.d(r,o),r},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r);var t=n(104);$((function(){$("body").one("pinegrow-ready",(function(e,i){pgAddOnManager.isAddonActive("QUASAR")?Promise.resolve().then(n.bind(n,204)).then((function(){})):console.log("Pinegrow ".concat(t.Yr.short_name," addon is not active."))}))}))})(),r})()));
2
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var s in i)("object"==typeof exports?exports:t)[s]=i[s]}}(global,(()=>(()=>{var t,e,i={294:t=>{"use strict";function e(t,e,n){t instanceof RegExp&&(t=i(t,n)),e instanceof RegExp&&(e=i(e,n));var r=s(t,e,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+t.length,r[1]),post:n.slice(r[1]+e.length)}}function i(t,e){var i=e.match(t);return i?i[0]:null}function s(t,e,i){var s,n,r,o,a,l=i.indexOf(t),c=i.indexOf(e,l+1),h=l;if(l>=0&&c>0){if(t===e)return[l,c];for(s=[],r=i.length;h>=0&&!a;)h==l?(s.push(h),l=i.indexOf(t,h+1)):1==s.length?a=[s.pop(),c]:((n=s.pop())<r&&(r=n,o=c),c=i.indexOf(e,h+1)),h=l<c&&l>=0?l:c;s.length&&(a=[r,o])}return a}t.exports=e,e.range=s},783:t=>{"use strict";const e=/[\p{Lu}]/u,i=/[\p{Ll}]/u,s=/^[\p{Lu}](?![\p{Lu}])/gu,n=/([\p{Alpha}\p{N}_]|$)/u,r=/[_.\- ]+/,o=new RegExp("^"+r.source),a=new RegExp(r.source+n.source,"gu"),l=new RegExp("\\d+"+n.source,"gu"),c=(t,n)=>{if("string"!=typeof t&&!Array.isArray(t))throw new TypeError("Expected the input to be `string | string[]`");if(n={pascalCase:!1,preserveConsecutiveUppercase:!1,...n},0===(t=Array.isArray(t)?t.map((t=>t.trim())).filter((t=>t.length)).join("-"):t.trim()).length)return"";const r=!1===n.locale?t=>t.toLowerCase():t=>t.toLocaleLowerCase(n.locale),c=!1===n.locale?t=>t.toUpperCase():t=>t.toLocaleUpperCase(n.locale);return 1===t.length?n.pascalCase?c(t):r(t):(t!==r(t)&&(t=((t,s,n)=>{let r=!1,o=!1,a=!1;for(let l=0;l<t.length;l++){const c=t[l];r&&e.test(c)?(t=t.slice(0,l)+"-"+t.slice(l),r=!1,a=o,o=!0,l++):o&&a&&i.test(c)?(t=t.slice(0,l-1)+"-"+t.slice(l-1),a=o,o=!1,r=!0):(r=s(c)===c&&n(c)!==c,a=o,o=n(c)===c&&s(c)!==c)}return t})(t,r,c)),t=t.replace(o,""),t=n.preserveConsecutiveUppercase?((t,e)=>(s.lastIndex=0,t.replace(s,(t=>e(t)))))(t,r):r(t),n.pascalCase&&(t=c(t.charAt(0))+t.slice(1)),((t,e)=>(a.lastIndex=0,l.lastIndex=0,t.replace(a,((t,i)=>e(i))).replace(l,(t=>e(t)))))(t,c))};t.exports=c,t.exports.default=c},199:(t,e,i)=>{var s=i(294);t.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),g(function(t){return t.split("\\\\").join(n).split("\\{").join(r).split("\\}").join(o).split("\\,").join(a).split("\\.").join(l)}(t),!0).map(h)):[]};var n="\0SLASH"+Math.random()+"\0",r="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function c(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function h(t){return t.split(n).join("\\").split(r).join("{").split(o).join("}").split(a).join(",").split(l).join(".")}function u(t){if(!t)return[""];var e=[],i=s("{","}",t);if(!i)return t.split(",");var n=i.pre,r=i.body,o=i.post,a=n.split(",");a[a.length-1]+="{"+r+"}";var l=u(o);return o.length&&(a[a.length-1]+=l.shift(),a.push.apply(a,l)),e.push.apply(e,a),e}function p(t){return"{"+t+"}"}function d(t){return/^-?0\d/.test(t)}function f(t,e){return t<=e}function m(t,e){return t>=e}function g(t,e){var i=[],n=s("{","}",t);if(!n)return[t];var r=n.pre,a=n.post.length?g(n.post,!1):[""];if(/\$$/.test(n.pre))for(var l=0;l<a.length;l++){var h=r+"{"+n.body+"}"+a[l];i.push(h)}else{var y,b,v=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),w=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),k=v||w,_=n.body.indexOf(",")>=0;if(!k&&!_)return n.post.match(/,.*\}/)?g(t=n.pre+"{"+n.body+o+n.post):[t];if(k)y=n.body.split(/\.\./);else if(1===(y=u(n.body)).length&&1===(y=g(y[0],!1).map(p)).length)return a.map((function(t){return n.pre+y[0]+t}));if(k){var x=c(y[0]),S=c(y[1]),T=Math.max(y[0].length,y[1].length),C=3==y.length?Math.abs(c(y[2])):1,A=f;S<x&&(C*=-1,A=m);var E=y.some(d);b=[];for(var O=x;A(O,S);O+=C){var M;if(w)"\\"===(M=String.fromCharCode(O))&&(M="");else if(M=String(O),E){var P=T-M.length;if(P>0){var L=new Array(P+1).join("0");M=O<0?"-"+L+M.slice(1):L+M}}b.push(M)}}else{b=[];for(var F=0;F<y.length;F++)b.push.apply(b,g(y[F],!1))}for(F=0;F<b.length;F++)for(l=0;l<a.length;l++)h=r+b[F]+a[l],(!e||k||h)&&i.push(h)}return i}},748:t=>{t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i<e;i++)s[i]=t[i];return s},t.exports.__esModule=!0,t.exports.default=t.exports},314:t=>{t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},850:(t,e,i)=>{var s=i(748);t.exports=function(t){if(Array.isArray(t))return s(t)},t.exports.__esModule=!0,t.exports.default=t.exports},297:t=>{t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},461:t=>{function e(t,e,i,s,n,r,o){try{var a=t[r](o),l=a.value}catch(t){return void i(t)}a.done?e(l):Promise.resolve(l).then(s,n)}t.exports=function(t){return function(){var i=this,s=arguments;return new Promise((function(n,r){var o=t.apply(i,s);function a(t){e(o,n,r,a,l,"next",t)}function l(t){e(o,n,r,a,l,"throw",t)}a(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},100:t=>{t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},870:(t,e,i)=>{var s=i(739);function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}t.exports=function(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},290:(t,e,i)=>{var s=i(739);t.exports=function(t,e,i){return(e=s(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},t.exports.__esModule=!0,t.exports.default=t.exports},611:(t,e,i)=>{var s=i(209);function n(){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=n=Reflect.get.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=n=function(t,e,i){var n=s(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(arguments.length<3?t:i):r.value}},t.exports.__esModule=!0,t.exports.default=t.exports),n.apply(this,arguments)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},660:t=>{function e(i){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},230:(t,e,i)=>{var s=i(560);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},912:t=>{t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},193:t=>{t.exports=function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var s,n,r,o,a=[],l=!0,c=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(s=r.call(i)).done)&&(a.push(s.value),a.length!==e);l=!0);}catch(t){c=!0,n=t}finally{try{if(!l&&null!=i.return&&(o=i.return(),Object(o)!==o))return}finally{if(c)throw n}}return a}},t.exports.__esModule=!0,t.exports.default=t.exports},147:t=>{t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},96:t=>{t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},421:(t,e,i)=>{var s=i(425).default,n=i(297);t.exports=function(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports},609:(t,e,i)=>{var s=i(425).default;function n(){"use strict";t.exports=n=function(){return i},t.exports.__esModule=!0,t.exports.default=t.exports;var e,i={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,i){t[e]=i.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function p(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(e){p=function(t,e,i){return t[e]=i}}function d(t,e,i,s){var n=e&&e.prototype instanceof w?e:w,r=Object.create(n.prototype),o=new F(s||[]);return a(r,"_invoke",{value:O(t,i,o)}),r}function f(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}i.wrap=d;var m="suspendedStart",g="suspendedYield",y="executing",b="completed",v={};function w(){}function k(){}function _(){}var x={};p(x,c,(function(){return this}));var S=Object.getPrototypeOf,T=S&&S(S(j([])));T&&T!==r&&o.call(T,c)&&(x=T);var C=_.prototype=w.prototype=Object.create(x);function A(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function i(n,r,a,l){var c=f(t[n],t,r);if("throw"!==c.type){var h=c.arg,u=h.value;return u&&"object"==s(u)&&o.call(u,"__await")?e.resolve(u.__await).then((function(t){i("next",t,a,l)}),(function(t){i("throw",t,a,l)})):e.resolve(u).then((function(t){h.value=t,a(h)}),(function(t){return i("throw",t,a,l)}))}l(c.arg)}var n;a(this,"_invoke",{value:function(t,s){function r(){return new e((function(e,n){i(t,s,e,n)}))}return n=n?n.then(r,r):r()}})}function O(t,i,s){var n=m;return function(r,o){if(n===y)throw new Error("Generator is already running");if(n===b){if("throw"===r)throw o;return{value:e,done:!0}}for(s.method=r,s.arg=o;;){var a=s.delegate;if(a){var l=M(a,s);if(l){if(l===v)continue;return l}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(n===m)throw n=b,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);n=y;var c=f(t,i,s);if("normal"===c.type){if(n=s.done?b:g,c.arg===v)continue;return{value:c.arg,done:s.done}}"throw"===c.type&&(n=b,s.method="throw",s.arg=c.arg)}}}function M(t,i){var s=i.method,n=t.iterator[s];if(n===e)return i.delegate=null,"throw"===s&&t.iterator.return&&(i.method="return",i.arg=e,M(t,i),"throw"===i.method)||"return"!==s&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+s+"' method")),v;var r=f(n,t.iterator,i.arg);if("throw"===r.type)return i.method="throw",i.arg=r.arg,i.delegate=null,v;var o=r.arg;return o?o.done?(i[t.resultName]=o.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,v):o:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function j(t){if(t||""===t){var i=t[c];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function i(){for(;++n<t.length;)if(o.call(t,n))return i.value=t[n],i.done=!1,i;return i.value=e,i.done=!0,i};return r.next=r}}throw new TypeError(s(t)+" is not iterable")}return k.prototype=_,a(C,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:k,configurable:!0}),k.displayName=p(_,u,"GeneratorFunction"),i.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===k||"GeneratorFunction"===(e.displayName||e.name))},i.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,p(t,u,"GeneratorFunction")),t.prototype=Object.create(C),t},i.awrap=function(t){return{__await:t}},A(E.prototype),p(E.prototype,h,(function(){return this})),i.AsyncIterator=E,i.async=function(t,e,s,n,r){void 0===r&&(r=Promise);var o=new E(d(t,e,s,n),r);return i.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(C),p(C,u,"Generator"),p(C,c,(function(){return this})),p(C,"toString",(function(){return"[object Generator]"})),i.keys=function(t){var e=Object(t),i=[];for(var s in e)i.push(s);return i.reverse(),function t(){for(;i.length;){var s=i.pop();if(s in e)return t.value=s,t.done=!1,t}return t.done=!0,t}},i.values=j,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var i in this)"t"===i.charAt(0)&&o.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function s(s,n){return a.type="throw",a.arg=t,i.next=s,n&&(i.method="next",i.arg=e),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n],a=r.completion;if("root"===r.tryLoc)return s("end");if(r.tryLoc<=this.prev){var l=o.call(r,"catchLoc"),c=o.call(r,"finallyLoc");if(l&&c){if(this.prev<r.catchLoc)return s(r.catchLoc,!0);if(this.prev<r.finallyLoc)return s(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return s(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return s(r.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i];if(s.tryLoc<=this.prev&&o.call(s,"finallyLoc")&&this.prev<s.finallyLoc){var n=s;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var r=n?n.completion:{};return r.type=t,r.arg=e,n?(this.method="next",this.next=n.finallyLoc,v):this.complete(r)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),L(i),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var s=i.completion;if("throw"===s.type){var n=s.arg;L(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,s){return this.delegate={iterator:j(t),resultName:i,nextLoc:s},"next"===this.method&&(this.arg=e),v}},i}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},560:t=>{function e(i,s){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(i,s)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},681:(t,e,i)=>{var s=i(314),n=i(193),r=i(121),o=i(147);t.exports=function(t,e){return s(t)||n(t,e)||r(t,e)||o()},t.exports.__esModule=!0,t.exports.default=t.exports},209:(t,e,i)=>{var s=i(660);t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=s(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports},408:(t,e,i)=>{var s=i(850),n=i(912),r=i(121),o=i(96);t.exports=function(t){return s(t)||n(t)||r(t)||o()},t.exports.__esModule=!0,t.exports.default=t.exports},64:(t,e,i)=>{var s=i(425).default;t.exports=function(t,e){if("object"!==s(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},739:(t,e,i)=>{var s=i(425).default,n=i(64);t.exports=function(t){var e=n(t,"string");return"symbol"===s(e)?e:String(e)},t.exports.__esModule=!0,t.exports.default=t.exports},425:t=>{function e(i){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},121:(t,e,i)=>{var s=i(748);t.exports=function(t,e){if(t){if("string"==typeof t)return s(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?s(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},841:(t,e,i)=>{var s=i(609)();t.exports=s;try{regeneratorRuntime=s}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=s:Function("r","regeneratorRuntime = r")(s)}},706:(t,e,i)=>{"use strict";i.d(e,{uY:()=>B,T5:()=>N,dT:()=>H,VH:()=>Y,uQ:()=>G,S1:()=>$,kl:()=>U,j3:()=>W,GW:()=>R,fc:()=>q});var s={};i.r(s),i.d(s,{amber:()=>x,blue:()=>m,blueGrey:()=>E,brown:()=>C,common:()=>c,cyan:()=>y,deepOrange:()=>T,deepPurple:()=>d,green:()=>v,grey:()=>A,indigo:()=>f,lightBlue:()=>g,lightGreen:()=>w,lime:()=>k,orange:()=>S,pink:()=>u,purple:()=>p,red:()=>h,teal:()=>b,yellow:()=>_});var n=i(408),r=i(290),o=i(681),a=i(870),l=i(100);const c={black:"#000",white:"#fff"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},u={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},d={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea"},f={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},g={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},y={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4"},b={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"},v={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},w={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17"},k={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00"},_={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600"},x={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"},S={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},T={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"},C={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037"},A={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},E={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"};var O,M,P,L=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"vuetify",i=["lighten","darken","accent"];"quasar"===e&&(i=["1","2","3","4","5","7","8","9","10","11","12","13","14"]);var s="quasar"===e?2:3,r="quasar"===e?1:2,a="quasar"===e?"5":"lighten-1",l=Object.keys(t).reduce((function(t,e){var o=e.split("-");return o.length>=s&&i.includes(o[o.length-r])?[].concat(n(t),[o.slice(0,o.length-r).join("-")]):[].concat(n(t),[e])}),[]);return(l=n(new Set(l))).map((function(e){var l=Object.entries(t).reduce((function(l,c){var h=o(c,2),u=h[0],p=h[1],d=u.split("-"),f=d.slice(d.length-r).join("-");if(!(d.length>1&&l.map((function(t){return t.name})).includes(f))&&u.startsWith(e)&&d.length>=s&&i.includes(d[d.length-r])){var m=[].concat(n(l),[{name:f,hex:p}]);return f===a&&m.push({name:"",hex:t[e]}),m}return l}),[]);return{color:e,variants:l,hex:t[e]}}))},F=function(t){return t=t.replace("#",""),(299*parseInt(t.substr(0,2),16)+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3>=128?"#333333":"#ebedef"},j=a((function t(e){var i=this;switch(l(this,t),r(this,"init",(function(){i.buildColorsMapAndSwatches(),i.buildColorsMeta()})),r(this,"initOptions",(function(){i.buildColorsOptionsAndTextOptions()})),r(this,"buildColorsMapAndSwatches",(function(){i.colors.forEach((function(t){var e=s[t];if(e){var n=[];n.push(e[500]),Object.entries(e).forEach((function(e){var s,r=o(e,2),a=r[0],l=r[1];("brown"!==t&&"grey"!==t&&"blueGrey"!==t||"A100"!==a&&"A200"!==a&&"A400"!==a&&"A700"!==a)&&(i.colorsMap["".concat((s=t,s.split("").map((function(t,e){return t.toUpperCase()===t?"".concat(0!==e?"-":"").concat(t.toLowerCase()):t})).join(""))).concat("500"===a?"":"-"+i.colorWeights[a]).toLowerCase()]=l,"500"!==a&&n.push(l))})),i.swatches.push(n)}})),i.colorsMap.black="#000000",i.colorsMap.white="#ffffff",i.swatches.push(["#000000","#ffffff"])})),r(this,"buildColorsMeta",(function(){i.colorsMeta=L(i.colorsMap,i.fx)})),r(this,"buildColorsOptionsAndTextOptions",(function(){var t=new PgToggleButtonMaker,e=[],s=[];i.colorsMeta.forEach((function(i){var n=i.color,r=i.hex;if(n&&r){var o=n.split("-").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ");e.push({key:n,name:o,html:t.makeColor(r,"",{attributes:{title:o}})}),s.push({key:n,name:o,html:t.makeColorText(r,"",{attributes:{title:o}})})}})),i.colorOptions=e,i.colorTextOptions=s})),r(this,"hexToName",(function(t){var e;return""===t&&(e="none"),Object.entries(i.colorsMap).forEach((function(i){var s=o(i,2),n=s[0],r=s[1];t===r&&(e=n)})),e||t})),r(this,"nameToHex",(function(t){return""===t?"none":i.colorsMap[t.toLowerCase()]||t.toLowerCase()})),this.fx=e,this.colors=["red","pink","purple","deepPurple","indigo","blue","lightBlue","cyan","teal","green","lightGreen","lime","yellow","amber","orange","deepOrange","brown","grey","blueGrey","black","white"],e){case"vuetify":this.colorWeights={50:"lighten-5",100:"lighten-4",200:"lighten-3",300:"lighten-2",400:"lighten-1",500:"",600:"darken-1",700:"darken-2",800:"darken-3",900:"darken-4",A100:"accent-1",A200:"accent-2",A400:"accent-3",A700:"accent-4"};break;case"quasar":this.colorWeights={50:"1",100:"2",200:"3",300:"4",400:"5",500:"6",600:"7",700:"8",800:"9",900:"10",A100:"11",A200:"12",A400:"13",A700:"14"};break;default:this.colorWeights={50:"50",100:"100",200:"200",300:"300",400:"400",500:"500",600:"600",700:"700",800:"800",900:"900",A100:"A100",A200:"A200",A400:"A400",A700:"A700"}}this.colorsMap={},this.colorsMeta=[],this.colorOptions=[],this.colorTextOptions=[],this.swatches=[],this.init()})),D=a((function t(e){var i=this;l(this,t),r(this,"init",(function(t){i.colorsMap=t||{},i.buildColorsMeta(),i.buildColors()})),r(this,"initOptions",(function(){i.buildColorsOptionsAndTextOptions()})),r(this,"buildColorsMeta",(function(){i.colorsMeta=L(i.colorsMap,i.fx)})),r(this,"buildColors",(function(){i.colors=i.colorsMeta.map((function(t){return t.color}))})),r(this,"buildColorsOptionsAndTextOptions",(function(){var t=new PgToggleButtonMaker,e=[],s=[];i.colorsMeta.forEach((function(i){var n=i.color,r=i.hex;if(n&&r){var o=n.split("-").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ");e.push({key:n,name:o,html:t.makeColor(r,o,{styles:{"font-size":"11px",padding:"6px",width:"auto",height:"16px","background-color":"".concat(r),color:"".concat(r.toLowerCase().startsWith("#fff")?"#a5a5a5":F(r)),"border-radius":"3px",display:"flex","flex-direction":"column","justify-content":"center"},attributes:{title:o}})}),s.push({key:n,name:o,html:t.makeColor(r,o,{styles:{"font-size":"11px",padding:"6px",width:"auto",height:"16px",color:"".concat(r.toLowerCase().startsWith("#fff")?"#a5a5a5":"Neutral"===o?F(r):r),"border-radius":"3px",display:"flex","flex-direction":"column","justify-content":"center"},attributes:{title:o}})})}})),i.colorOptions=e,i.colorTextOptions=s})),r(this,"hexToName",(function(t){var e;return""===t&&(e="none"),Object.entries(i.colorsMap).forEach((function(i){var s=o(i,2),n=s[0],r=s[1];t===r&&(e=n)})),e||t})),r(this,"nameToHex",(function(t){return""===t?"none":i.colorsMap[t.toLowerCase()]||t.toLowerCase()})),this.fx=e,this.colors=[],this.colorsMap={neutral:"#121212"},this.colorsMeta=[],this.colorOptions=[],this.colorTextOptions=[],this.init()}));function z(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function I(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?z(Object(i),!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):z(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var R,B=[],N=[],W=[],$=function(t){M=new j(O=t),P=new D(O)},U=function(t){var e={};if(t)e=t();else switch(O){case"vuetify":e={background:"#ffffff",surface:"#ffffff",primary:"#7e68b1","primary-darken-1":"#6750a4",secondary:"#787285","secondary-darken-1":"#625b71",tertiary:"#906a76","tertiary-darken-1":"#7d5260",success:"#2e7d32",warning:"#ed6c02",error:"#d32f2f",info:"#0288d1",neutral:"#121212",transparent:"#ffffff"};break;case"quasar":e={primary:"#1976d2",secondary:"#26A69A",accent:"#9C27B0",dark:"#1d1d1d",positive:"#21BA45",negative:"#C10015",info:"#31CCEC",warning:"#F2C037",transparent:"#ffffff"};break;default:e={background:"#ffffff",surface:"#ffffff",primary:"#7e68b1",secondary:"#787285",tertiary:"#906a76",success:"#2e7d32",warning:"#ed6c02",error:"#d32f2f",info:"#0288d1",neutral:"#121212",transparent:"#ffffff"}}try{var i=I(I({},{}),e);i=Object.fromEntries(Object.entries(i).map((function(t){var e=o(t,2),i=e[0],s=e[1];return[i.toLowerCase(),s.toLowerCase()]}))),P.init(i),M.swatches,I(I({},M.colorsMap),P.colorsMap),[].concat(n(M.colorsMeta),n(P.colorsMeta)),W=P.colorsMap,M.initOptions(),P.initOptions(),B=[].concat(n(M.colorOptions),n(P.colorOptions)),N=[].concat(n(M.colorTextOptions),n(P.colorTextOptions))}catch(t){}},q=function(t){R=t},H=!1,G=function(t){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[],s=[],r=[],o=[];(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(o=[].concat(n(o),n(M.colorsMeta))),e&&(o=[].concat(n(o),n(P.colorsMeta.map((function(t){return I(I({},t),{},{palette:!0})})))));var a=["lighten","darken","accent"];"quasar"===O&&(a=["1","2","3","4","5","7","8","9","10","11","12","13","14"]);var l="quasar"===O?2:3,c="quasar"===O?1:2;return o.forEach((function(e){var n,o=[];e.variants.forEach((function(i){var h="".concat(e.color).concat(i.name?"-".concat(i.name):""),u={key:"".concat(t).concat(h),name:h,color:i.hex},p=h.split("-");e.palette&&p.length>=l-1&&a.includes(p[p.length-c])&&(u.second_row=!0),e.palette&&!u.second_row&&s.push(u),u.second_row||"white"===e.color||"black"===e.color||"transparent"===e.color?r.push(u):o.push(u),i.name||(n=u)})),n&&o.unshift(I({},n));var h=e.color.split("-");e.palette&&h.length>=l-1&&a.includes(h[h.length-c])&&(u.second_row=!0);var u={key:"".concat(t).concat(e.color),name:"".concat(e.color),color:e.hex};e.palette&&!u.second_row&&s.push(u),u.second_row||"white"===e.color||"black"===e.color||"transparent"===e.color?r.push(u):e.palette||e.variants.length||o.push(u),o.length&&i.push(o)})),[s,r].concat(i)},Y=function(t){var e=G(t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],!(arguments.length>2&&void 0!==arguments[2])||arguments[2]),i=[];return e.forEach((function(t){t.forEach((function(t){i.push({key:"".concat(t.key),name:"".concat(t.name),color:t.color})}))})),i}},318:(t,e,i)=>{"use strict";i.r(e),i.d(e,{def_all:()=>b});var s=i(290),n=i(289),r=i(676),o=i(104),a=i(706);function l(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return c(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?c(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var s=0,n=function(){};return{s:n,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return o=t.done,t},e:function(t){a=!0,r=t},f:function(){try{o||null==i.return||i.return()}finally{if(a)throw r}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}function h(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function u(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?h(Object(i),!0).forEach((function(e){s(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):h(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}(0,a.S1)(o.Yr.type);var p=function(t,e,i){var s=t||"text-";return{type:"color",name:e||"Color",show_empty:!0,toggle_buttons:!0,options:function(){return(0,a.VH)(s)},fill_list_on_open:!0,text_color:"text-"===s,colors:function(t){return(0,a.uQ)(s)},parent_section_id:i,action:"custom",get_value:function(t,e,i,n){var r,o=(0,a.VH)(s).map((function(t){return t.key})),c=l(t.getClasses());try{for(c.s();!(r=c.n()).done;){var h=r.value;if(o.includes(h))return h}}catch(t){c.e(t)}finally{c.f()}},set_value:function(t,e,i,n,r,o,c){var h=(0,a.VH)("".concat(s,"-")).map((function(t){return t.key})),u=t.getClasses(),p=!1;if(u.length){var d,f=l(u);try{for(f.s();!(d=f.n()).done;){var m=d.value;(n===m||h.includes(m))&&(t.removeClass(m),p=!0)}}catch(t){f.e(t)}finally{f.f()}}return e&&(t.addClass(e),p=!0),p&&pinegrow.reselectElement(t),e}}};r.M.getPaletteColors=function(t){var e={primary:"#1976d2",secondary:"#26A69A",accent:"#9C27B0",dark:"#1d1d1d",positive:"#21BA45",negative:"#C10015",info:"#31CCEC",warning:"#F2C037",transparent:"#ffffff",white:"#fff",black:"#000"};return t&&Object.keys(e).forEach((function(i){var s=t.getCSSVariableValue("--q-".concat(i));"string"==typeof s&&(s=s.trim()),s&&(e[i]=s)})),(0,a.fc)(u(u({},e),{},{transparent:"#ffffff"})),(0,a.kl)((function(){return a.GW})),a.j3},r.M.getColorsForColorPicker=a.uQ,r.M.getColorOptions=a.VH;var d,f=i(802),m=function(t){return t.children,t.children.reduce((function(t,e){var i=e.getClasses().reduce((function(t,e){return t||e.startsWith("col")||e.startsWith("offset")}),!1);return t||i}),!1)},g=function(t){return!m(t)},y=function(t){return function(){return{name:"column"===t?"Column Gutter":"Gutter",on_section_shown:n.vz,show_if:"column"===t?m:g,fields:s({},"".concat(t,"_gutter'"),{type:"custom",name:"".concat(t,"_gutter'"),action:"none",control:(0,n.of)(t)})}}},b=new PgComponentType(n.O4+"all","All elements",{selector:function(t){return o.hC},name:"Div",display_name:"tag",priority:2001,sections:(0,n.e9)({textcolor:{name:"Text Color",compact:!0,fields:{textcolor:p("text-","Swatches",n.O4+"textcolor")}},typography:{name:"Typography",fields:{typography:(d={name:"Typography",action:"none",type:"select"},s(d,"action","apply_class"),s(d,"show_empty",!0),s(d,"toggle_buttons",!0),s(d,"options",[{key:"text-h1",name:"1",html:n.bm.makeText("H1",{attributes:{title:"Heading 1"}})},{key:"text-h2",name:"2",html:n.bm.makeText("H2",{attributes:{title:"Heading 2"}})},{key:"text-h3",name:"3",html:n.bm.makeText("H3",{attributes:{title:"Heading 3"}})},{key:"text-h4",name:"4",html:n.bm.makeText("H4",{attributes:{title:"Heading 4"}})},{key:"text-h5",name:"5",html:n.bm.makeText("H5",{attributes:{title:"Heading 5"}})},{key:"text-h6",name:"6",html:n.bm.makeText("H6",{attributes:{title:"Heading 6"}})},{key:"text-subtitle-1",name:"Subtitle 1",html:n.bm.makeText("Subtitle 1",{attributes:{title:"Subtitle 1"}})},{key:"text-subtitle-2",name:"Subtitle 2",html:n.bm.makeText("Subtitle 2",{attributes:{title:"Subtitle 2"}})},{key:"text-body-1",name:"Body 1",html:n.bm.makeText("Body 1",{attributes:{title:"Body 1"}})},{key:"text-body-2",name:"Body 2",html:n.bm.makeText("Body 2",{attributes:{title:"Body 2"}})},{key:"text-caption",name:"Caption",html:n.bm.makeText("Caption",{attributes:{title:"Caption"}})},{key:"text-overline",name:"Overline",html:n.bm.makeText("Overline",{attributes:{title:"Overline"}})}]),d),fontweight:{type:"select",name:"Font weight",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"text-weight-bolder",name:"Bolder",html:n.bm.makeText("Bolder",{attributes:{title:"Bolder"}})},{key:"text-weight-bold",name:"Bold",html:n.bm.makeText("Bold",{attributes:{title:"Bold"}})},{key:"text-weight-medium",name:"Medium",html:n.bm.makeText("Medium",{attributes:{title:"Medium"}})},{key:"text-weight-regular",name:"Regular",html:n.bm.makeText("Regular",{attributes:{title:"Regular"}})},{key:"text-weight-light",name:"Light",html:n.bm.makeText("Light",{attributes:{title:"Light"}})},{key:"text-weight-thin",name:"Thin",html:n.bm.makeText("Thin",{attributes:{title:"Thin"}})}]},textalign:{name:"Text align",type:"select",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"text-left",name:"Left",html:n.bm.makeIcon("align-left",{attributes:{title:"Left"}})},{key:"text-center",name:"Center",html:n.bm.makeIcon("align-center",{attributes:{title:"Center"}})},{key:"text-right",name:"Right",html:n.bm.makeIcon("align-right",{attributes:{title:"Right"}})},{key:"text-justify",name:"Justify",html:n.bm.makeIcon("align-full",{attributes:{title:"Justify"}})}]},transform:{type:"select",name:"Transform",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"text-lowercase",name:"Lowercase",html:n.bm.makeIcon("lowercase")},{key:"text-uppercase",name:"Uppercase",html:n.bm.makeIcon("uppercase")},{key:"text-capitalize",name:"Capitalize",html:n.bm.makeIcon("sentence-case")}]},whitespace:{type:"checkbox",name:"No Wrap",action:"apply_class",value:"text-no-wrap"},fontstyle:{type:"checkbox",name:"Italic",action:"apply_class",value:"text-italic"},fontbold:{type:"checkbox",name:"Bold",action:"apply_class",value:"text-bold"},decoration:{type:"checkbox",name:"Line through",action:"apply_class",value:"text-strike"}}},background:{name:"Background Color",compact:!0,fields:{bgcolor:p("bg-","Swatches",n.O4+"background"),dimmed:{type:"select",name:"Dimmed",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"transparent",name:"Transparent",html:n.bm.makeText("Transparent",{attributes:{title:"Transparent"}})},{key:"dimmed",name:"Dimmed",html:n.bm.makeText("Dimmed",{attributes:{title:"Dimmed"}})},{key:"light-dimmed",name:"Light Dimmed",html:n.bm.makeText("Light Dimmed",{attributes:{title:"Light Dimmed"}})}]},glossy:{type:"checkbox",name:"Glossy",action:"apply_class",value:"glossy"}}},spacing:{name:"Spacing",on_section_shown:n.vz,fields:{margin_control:{type:"custom",name:"Spacing",action:"none",control:(0,n.Cw)()},no_margin:{type:"checkbox",name:"No Margin",action:"apply_class",value:"no-margin"},no_padding:{type:"checkbox",name:"No Padding",action:"apply_class",value:"no-padding"}}},dimension:{name:"Dimension",fields:{display:{type:"select",name:"Display",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"block",name:"Block",html:n.bm.makeText("Block",{attributes:{title:"Block"}})},{key:"inline-block",name:"Inline Block",html:n.bm.makeText("Inline Block",{attributes:{title:"Inline Block"}})}]},width:{type:"select",name:"Width",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"full-width",name:"Full Width",html:n.bm.makeText("Full Width",{attributes:{title:"Full Width"}})},{key:"window-width",name:"Window Width",html:n.bm.makeText("Window Width",{attributes:{title:"Window Width"}})}]},height:{type:"select",name:"Height",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"full-height",name:"Full Height",html:n.bm.makeText("Full Height",{attributes:{title:"Full Height"}})},{key:"window-height",name:"Window Height",html:n.bm.makeText("Window Height",{attributes:{title:"Window Height"}})}]},fit:{type:"checkbox",name:"Fit",action:"apply_class",value:"fit"}}},visibility:{name:"Visibility",fields:{disabled:{type:"checkbox",name:"Disabled",action:"apply_class",value:"disabled"},hidden:{type:"checkbox",name:"Hidden (display:none)",action:"apply_class",value:"hidden"},invisible:{type:"checkbox",name:"Invisible (visibility:hidden)",action:"apply_class",value:"invisible"},readonly:{type:"checkbox",name:"Readonly",action:"apply_class",value:"readonly"},ellipsis:{type:"select",name:"Ellipsis",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"ellipsis",name:"Ellipsis",html:n.bm.makeText("Ellipsis",{attributes:{title:"Ellipsis"}})},{key:"ellipsis-2-lines",name:"Ellipsis 2 lines",html:n.bm.makeText("Ellipsis 2 lines",{attributes:{title:"Ellipsis 2 lines"}})},{key:"ellipsis-3-lines",name:"Ellipsis 3 lines",html:n.bm.makeText("Ellipsis 3 lines",{attributes:{title:"Ellipsis 3 lines"}})}]},zindex:{type:"select",name:"Z-index",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"z-top",name:"Z Top",html:n.bm.makeText("Z Top",{attributes:{title:"Z Top"}})},{key:"z-max",name:"Z Max",html:n.bm.makeText("Z Max",{attributes:{title:"Z Max"}})}]},orientation:{type:"select",name:"Orientation",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"orientation-portrait",name:"Portrait",html:n.bm.makeText("Portrait",{attributes:{title:"Portrait"}})},{key:"orientation-landscape",name:"Landscape",html:n.bm.makeText("Landscape",{attributes:{title:"Landscape"}})}]},platform_only:{type:"select",name:"Only in Platform",action:"apply_class",show_empty:!0,options:[{key:"desktop-only",name:"Desktop"},{key:"mobile-only",name:"Mobile"},{key:"native-mobile-only",name:"Native Mobile"},{key:"cordova-only",name:"Cordova"},{key:"capacitor-only",name:"Capacitor"},{key:"electron-only",name:"Electron"},{key:"touch-only",name:"Touch"},{key:"platform-ios-only",name:"iOS"},{key:"platform-android-only",name:"Android"},{key:"within-iframe-only",name:"iframe"}]},platform_hide:{type:"select",name:"Hide in Platform",action:"apply_class_multiple",show_empty:!0,multiple:!0,options:[{key:"desktop-hide",name:"Desktop"},{key:"mobile-hide",name:"Mobile"},{key:"native-mobile-hide",name:"Native Mobile"},{key:"cordova-hide",name:"Cordova"},{key:"capacitor-hide",name:"Capacitor"},{key:"electron-hide",name:"Electron"},{key:"touch-hide",name:"Touch"},{key:"platform-ios-hide",name:"iOS"},{key:"platform-android-hide",name:"Android"},{key:"within-iframe-hide",name:"iframe"}]},print:{type:"select",name:"Print",action:"apply_class",show_empty:!0,options:[{key:"print-only",name:"Print only"},{key:"print-hide",name:"Screen only"}]}}},position:{name:"Position",fields:{position_common:{type:"select",name:"Position",action:"apply_class",show_empty:!0,options:[{key:"fullscreen",name:"Fullscreen"},{key:"relative-position",name:"Relative Position"},{key:"absolute",name:"Absolute"},{key:"absolute-full",name:"Absolute Full"},{key:"absolute-center",name:"Absolute Center"},{key:"absolute-bottom",name:"Absolute Bottom"},{key:"absolute-left",name:"Absolute Left"},{key:"absolute-right",name:"Absolute Right"},{key:"absolute-top",name:"Absolute Top"},{key:"absolute-top-left",name:"Absolute Top Left"},{key:"absolute-top-right",name:"Absolute Top Right"},{key:"absolute-bottom-left",name:"Absolute Bottom Left"},{key:"absolute-bottom-right",name:"Absolute Bottom Right"},{key:"fixed",name:"Fixed"},{key:"fixed-full",name:"Fixed Full"},{key:"fixed-center",name:"Fixed Center"},{key:"fixed-bottom",name:"Fixed Bottom"},{key:"fixed-left",name:"Fixed Left"},{key:"fixed-right",name:"Fixed Right"},{key:"fixed-top",name:"Fixed Top"},{key:"fixed-top-left",name:"Fixed Top Left"},{key:"fixed-top-right",name:"Fixed Top Right"},{key:"fixed-bottom-left",name:"Fixed Bottom Left"},{key:"fixed-bottom-right",name:"Fixed Bottom Right"}]},horizontal_alignment:{type:"select",name:"Horizontal Alignment",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"on-left",name:"On Left",html:n.bm.makeText("On Left",{attributes:{title:"On Left"}})},{key:"on-right",name:"On Right",html:n.bm.makeText("On Right",{attributes:{title:"On Right"}})}]},vertical_alignment:{type:"select",name:"Vertical Alignment",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"vertical-top",name:"Top",html:n.bm.makeText("Top",{attributes:{title:"Top"}})},{key:"vertical-middle",name:"Middle",html:n.bm.makeText("Middle",{attributes:{title:"Middle"}})},{key:"vertical-bottom",name:"Bottom",html:n.bm.makeText("Bottom",{attributes:{title:"Bottom"}})}]}}},overflow:{name:"Overflow",fields:{overflow:{type:"select",name:"Scroll",action:"apply_class",show_empty:!0,options:[{key:"scroll",name:"Scroll"},{key:"no-scroll",name:"No Scroll"},{key:"overflow-auto",name:"Overflow Auto"},{key:"overflow-hidden",name:"Overflow Hidden"},{key:"overflow-hidden-y",name:"Overflow Hidden Y"},{key:"hide-scrollbar",name:"Hide Scrollbar"}]}}},mouse:{name:"Mouse",compact:!0,fields:{user_select:{type:"checkbox",name:"Non selectable",action:"apply_class",value:"non-selectable"},pointer_events:{type:"select",name:"Pointer Events",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"no-pointer-events\t",name:"None",html:n.bm.makeText("None",{attributes:{title:"None"}})},{key:"all-pointer-events\t",name:"All",html:n.bm.makeText("All",{attributes:{title:"All"}})}]},cursor:{type:"select",name:"Cursor",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"cursor-pointer",name:"Pointer",html:n.bm.makeText("Pointer",{attributes:{title:"Pointer"}})},{key:"cursor-not-allowed",name:"Not Allowed",html:n.bm.makeText("Not Allowed",{attributes:{title:"Not Allowed"}})},{key:"cursor-inherit",name:"Inherit",html:n.bm.makeText("Inherit",{attributes:{title:"Inherit"}})},{key:"cursor-none",name:"None",html:n.bm.makeText("None",{attributes:{title:"None"}})}]}}},elevation:{name:"Elevation",compact:!0,fields:{shadow:{type:"select",name:"Shadow",action:"apply_class",show_empty:!0,draggable_list:!0,options:function(){for(var t=[{key:"no-shadow",name:"No Shadow"},{key:"inset-shadow",name:"Inset Shadow"},{key:"inset-shadow-down",name:"Inset Shadow Down"}],e=0;e<=24;e++)t.push({key:"shadow-"+e,name:"shadow-"+e});for(e=0;e<=24;e++)t.push({key:"shadow-up-"+e,name:"shadow-up-"+e});return t}},shadow_transition:{type:"checkbox",name:"Shadow Transition",action:"apply_class",value:"shadow-transition"}}},border:{name:"Border",fields:{border_radius:{type:"select",name:"Border Radius",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"rounded-borders",name:"Rounded Borders",html:n.bm.makeText("Rounded Borders",{attributes:{title:"Rounded Borders"}})},{key:"border-radius-inherit",name:"Border Radius Inherit",html:n.bm.makeText("Border Radius Inherit",{attributes:{title:"Border Radius Inherit"}})},{key:"no-border-radius",name:"No Border Radius",html:n.bm.makeText("No Border Radius",{attributes:{title:"No Border Radius"}})}]},no_border:{type:"checkbox",name:"No Border",action:"apply_class",value:"no-border"},no_border_shadow:{type:"checkbox",name:"No Border Shadow",action:"apply_class",value:"no-border-shadow"},no_outline:{type:"checkbox",name:"No Outline",action:"apply_class",value:"no-outline"}}},flexcontainer:{name:"Flex / Row / Column",on_section_shown:n.vz,fields:{flex_direction:{type:"custom",name:"flex_direction",action:"none",control:(0,n.ac)("flex.direction","Direction",(function(t,e){return{type:"select",name:(0,n.qV)("Direction",t),action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"flex"+(e||""),name:"Flex",html:n.bm.makeIcon("Pin22",{attributes:{title:"Flex"}})},{key:"row"+(e||""),name:"Row",html:n.bm.makeIcon("225",{attributes:{title:"Row"}})},{key:"column"+(e||""),name:"Column",html:n.bm.makeIcon("227",{attributes:{title:"Column"}})}]}}))},flex_display:{type:"custom",name:"Display",action:"none",control:(0,n.ac)("flex_display","Display",(function(t,e){return{type:"checkbox",name:"Inline flex",action:"apply_class",value:"inline"+(e||"")}}))},flex_reverse:{type:"custom",name:"Direction",action:"none",control:(0,n.ac)("flex_reverse","Direction",(function(t,e){return{type:"checkbox",name:"Reverse",action:"apply_class",value:"reverse"+(e||"")}}))},flex_justify_content:{type:"custom",name:"Justify content",action:"none",control:(0,n.ac)("flex_justify_content","Justify content",(function(t,e){var i="justify"+(e||"")+"-";return{type:"select",name:(0,n.qV)("Justify content",t),action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:i+"start",name:"",html:n.bm.makeIcon("223",{attributes:{title:"Start"}})},{key:i+"end",name:"",html:n.bm.makeIcon("218",{attributes:{title:"End"}})},{key:i+"center",name:"",html:n.bm.makeIcon("219",{attributes:{title:"Center"}})},{key:i+"between",name:"",html:n.bm.makeIcon("206",{attributes:{title:"Between"}})},{key:i+"around",name:"",html:n.bm.makeIcon("205",{attributes:{title:"Around"}})},{key:i+"evenly",name:"",html:n.bm.makeIcon("205",{attributes:{title:"Evenly"}})}]}}))},flex_align_items:{type:"custom",name:"Align items",action:"none",control:(0,n.ac)("flex_align_items","Align items",(function(t,e){var i="items"+(e||"")+"-";return{type:"select",name:(0,n.qV)("Align items",t),action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:i+"start",name:"",html:n.bm.makeIcon("223",{attributes:{title:"Start"}})},{key:i+"end",name:"",html:n.bm.makeIcon("220",{attributes:{title:"End"}})},{key:i+"center",name:"",html:n.bm.makeIcon("221",{attributes:{title:"Center"}})},{key:i+"baseline",name:"",html:n.bm.makeIcon("212",{attributes:{title:"Baseline"}})},{key:i+"stretch",name:"",html:n.bm.makeIcon("214",{attributes:{title:"Stretch"}})}]}}))},flex_align_content:{type:"custom",name:"Align content",action:"none",control:(0,n.ac)("flex_align_content","Align content",(function(t,e){var i="content"+(e||"")+"-";return{type:"select",name:(0,n.qV)("Align content",t),action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:i+"start",name:"",html:n.bm.makeIcon("217",{attributes:{title:"Start"}})},{key:i+"end",name:"",html:n.bm.makeIcon("216",{attributes:{title:"End"}})},{key:i+"center",name:"",html:n.bm.makeIcon("215",{attributes:{title:"Center"}})},{key:i+"between",name:"",html:n.bm.makeIcon("210",{attributes:{title:"Between"}})},{key:i+"around",name:"",html:n.bm.makeIcon("209",{attributes:{title:"Around"}})},{key:i+"stretch",name:"",html:n.bm.makeIcon("214",{attributes:{title:"Stretch"}})}]}}))},flex_wrap:{type:"custom",name:"Wrap",action:"none",control:(0,n.ac)("flex_wrap","Wrap",(function(t,e){var i=e||"";return{type:"select",name:(0,n.qV)("Wrap",t),action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"no-wrap"+i,name:"",html:n.bm.makeIcon("203",{attributes:{title:"No wrap"}})},{key:"wrap"+i,name:"",html:n.bm.makeIcon("204",{attributes:{title:"Wrap"}})},{key:"reverse-wrap"+i,name:"",html:n.bm.makeIcon("202",{attributes:{title:"Wrap reverse"}})}]}}))}}},gutter:y("any")(),gutter_col:y("column")(),flexchild:(0,f.D)("flexchild")(),columns:(0,f.D)("column")(),transform:{name:"Transform and Transition",fields:{rotate:{type:"select",name:"Rotate by degrees",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"rotate-45",name:"rotate-45",html:n.bm.makeText("45",{attributes:{title:"45"}})},{key:"rotate-90",name:"rotate-90",html:n.bm.makeText("90",{attributes:{title:"90"}})},{key:"rotate-135",name:"rotate-135",html:n.bm.makeText("135",{attributes:{title:"135"}})},{key:"rotate-180",name:"rotate-180",html:n.bm.makeText("180",{attributes:{title:"180"}})},{key:"rotate-225",name:"rotate-225",html:n.bm.makeText("225",{attributes:{title:"225"}})},{key:"rotate-270",name:"rotate-270",html:n.bm.makeText("270",{attributes:{title:"270"}})},{key:"rotate-315",name:"rotate-315",html:n.bm.makeText("315",{attributes:{title:"315"}})},{key:"flip-horizontal",name:"flip-horizontal",html:n.bm.makeText("Flip Horizontal",{attributes:{title:"Flip Horizontal"}})},{key:"flip-vertical",name:"flip-vertical",html:n.bm.makeText("Flip Vertical",{attributes:{title:"Flip Vertical"}})}]},transition:{type:"select",name:"Transition",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"no-transition",name:"No Transition",html:n.bm.makeText("No Transition",{attributes:{title:"No Transition"}})},{key:"transition-0",name:"Transition 0s",html:n.bm.makeText("Transition 0s",{attributes:{title:"Transition 0s"}})}]}}}})});n.MS.addComponentType(b)},143:(t,e,i)=>{"use strict";i.d(e,{c:()=>Cs});var s=i(290);function n(t,e){return e?e.toUpperCase():""}var r=/-(\w)/g,o=function(t){return t&&t.replace(r,n)},a=function(t){return t.split("").map((function(t,e){return t.toUpperCase()===t?"".concat(0!==e?"-":"").concat(t.toLowerCase()):t})).map((function(t){return t.startsWith("-")&&!isNaN(+t[1])?t.replace("-",""):t})).join("")},l=i(681),c=i(461),h=i(408),u=i(841),p=i(199);const d=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},f={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},m=t=>t.replace(/[[\]\\-]/g,"\\$&"),g=t=>t.join(""),y=(t,e)=>{const i=e;if("["!==t.charAt(i))throw new Error("not in a brace expression");const s=[],n=[];let r=i+1,o=!1,a=!1,l=!1,c=!1,h=i,u="";t:for(;r<t.length;){const e=t.charAt(r);if("!"!==e&&"^"!==e||r!==i+1){if("]"===e&&o&&!l){h=r+1;break}if(o=!0,"\\"!==e||l){if("["===e&&!l)for(const[e,[o,l,c]]of Object.entries(f))if(t.startsWith(e,r)){if(u)return["$.",!1,t.length-i,!0];r+=e.length,c?n.push(o):s.push(o),a=a||l;continue t}l=!1,u?(e>u?s.push(m(u)+"-"+m(e)):e===u&&s.push(m(e)),u="",r++):t.startsWith("-]",r+1)?(s.push(m(e+"-")),r+=2):t.startsWith("-",r+1)?(u=e,r+=2):(s.push(m(e)),r++)}else l=!0,r++}else c=!0,r++}if(h<r)return["",!1,0,!1];if(!s.length&&!n.length)return["$.",!1,t.length-i,!0];if(0===n.length&&1===s.length&&/^\\?.$/.test(s[0])&&!c){return[(p=2===s[0].length?s[0].slice(-1):s[0],p.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,h-i,!1]}var p;const d="["+(c?"^":"")+g(s)+"]",y="["+(c?"":"^")+g(n)+"]";return[s.length&&n.length?"("+d+"|"+y+")":s.length?d:y,a,h-i,!0]},b=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),v=new Set(["!","?","+","*","@"]),w=t=>v.has(t),k="(?!\\.)",_=new Set(["[","."]),x=new Set(["..","."]),S=new Set("().*{}+?[]^$\\!"),T="[^/]",C=T+"*?",A=T+"+?";class E{type;#t;#e;#i=!1;#s=[];#n;#r;#o;#a=!1;#l;#c;#h=!1;constructor(t,e,i={}){this.type=t,t&&(this.#e=!0),this.#n=e,this.#t=this.#n?this.#n.#t:this,this.#l=this.#t===this?i:this.#t.#l,this.#o=this.#t===this?[]:this.#t.#o,"!"!==t||this.#t.#a||this.#o.push(this),this.#r=this.#n?this.#n.#s.length:0}get hasMagic(){if(void 0!==this.#e)return this.#e;for(const t of this.#s)if("string"!=typeof t&&(t.type||t.hasMagic))return this.#e=!0;return this.#e}toString(){return void 0!==this.#c?this.#c:this.type?this.#c=this.type+"("+this.#s.map((t=>String(t))).join("|")+")":this.#c=this.#s.map((t=>String(t))).join("")}#u(){if(this!==this.#t)throw new Error("should only call on root");if(this.#a)return this;let t;for(this.toString(),this.#a=!0;t=this.#o.pop();){if("!"!==t.type)continue;let e=t,i=e.#n;for(;i;){for(let s=e.#r+1;!i.type&&s<i.#s.length;s++)for(const e of t.#s){if("string"==typeof e)throw new Error("string part in extglob AST??");e.copyIn(i.#s[s])}e=i,i=e.#n}}return this}push(...t){for(const e of t)if(""!==e){if("string"!=typeof e&&!(e instanceof E&&e.#n===this))throw new Error("invalid part: "+e);this.#s.push(e)}}toJSON(){const t=null===this.type?this.#s.slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...this.#s.map((t=>t.toJSON()))];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#t||this.#t.#a&&"!"===this.#n?.type)&&t.push({}),t}isStart(){if(this.#t===this)return!0;if(!this.#n?.isStart())return!1;if(0===this.#r)return!0;const t=this.#n;for(let e=0;e<this.#r;e++){const i=t.#s[e];if(!(i instanceof E&&"!"===i.type))return!1}return!0}isEnd(){if(this.#t===this)return!0;if("!"===this.#n?.type)return!0;if(!this.#n?.isEnd())return!1;if(!this.type)return this.#n?.isEnd();const t=this.#n?this.#n.#s.length:0;return this.#r===t-1}copyIn(t){"string"==typeof t?this.push(t):this.push(t.clone(this))}clone(t){const e=new E(this.type,t);for(const t of this.#s)e.copyIn(t);return e}static#p(t,e,i,s){let n=!1,r=!1,o=-1,a=!1;if(null===e.type){let l=i,c="";for(;l<t.length;){const i=t.charAt(l++);if(n||"\\"===i)n=!n,c+=i;else if(r)l===o+1?"^"!==i&&"!"!==i||(a=!0):"]"!==i||l===o+2&&a||(r=!1),c+=i;else if("["!==i)if(s.noext||!w(i)||"("!==t.charAt(l))c+=i;else{e.push(c),c="";const n=new E(i,e);l=E.#p(t,n,l,s),e.push(n)}else r=!0,o=l,a=!1,c+=i}return e.push(c),l}let l=i+1,c=new E(null,e);const h=[];let u="";for(;l<t.length;){const i=t.charAt(l++);if(n||"\\"===i)n=!n,u+=i;else if(r)l===o+1?"^"!==i&&"!"!==i||(a=!0):"]"!==i||l===o+2&&a||(r=!1),u+=i;else if("["!==i)if(w(i)&&"("===t.charAt(l)){c.push(u),u="";const e=new E(i,c);c.push(e),l=E.#p(t,e,l,s)}else if("|"!==i){if(")"===i)return""===u&&0===e.#s.length&&(e.#h=!0),c.push(u),u="",e.push(...h,c),l;u+=i}else c.push(u),u="",h.push(c),c=new E(null,e);else r=!0,o=l,a=!1,u+=i}return e.type=null,e.#e=void 0,e.#s=[t.substring(i-1)],l}static fromGlob(t,e={}){const i=new E(null,void 0,e);return E.#p(t,i,0,e),i}toMMPattern(){if(this!==this.#t)return this.#t.toMMPattern();const t=this.toString(),[e,i,s,n]=this.toRegExpSource();if(!(s||this.#e||this.#l.nocase&&!this.#l.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const r=(this.#l.nocase?"i":"")+(n?"u":"");return Object.assign(new RegExp(`^${e}$`,r),{_src:e,_glob:t})}get options(){return this.#l}toRegExpSource(t){const e=t??!!this.#l.dot;if(this.#t===this&&this.#u(),!this.type){const i=this.isStart()&&this.isEnd(),s=this.#s.map((e=>{const[s,n,r,o]="string"==typeof e?E.#d(e,this.#e,i):e.toRegExpSource(t);return this.#e=this.#e||r,this.#i=this.#i||o,s})).join("");let n="";if(this.isStart()&&"string"==typeof this.#s[0]&&(1!==this.#s.length||!x.has(this.#s[0]))){const i=_,r=e&&i.has(s.charAt(0))||s.startsWith("\\.")&&i.has(s.charAt(2))||s.startsWith("\\.\\.")&&i.has(s.charAt(4)),o=!e&&!t&&i.has(s.charAt(0));n=r?"(?!(?:^|/)\\.\\.?(?:$|/))":o?k:""}let r="";return this.isEnd()&&this.#t.#a&&"!"===this.#n?.type&&(r="(?:$|\\/)"),[n+s+r,b(s),this.#e=!!this.#e,this.#i]}const i="*"===this.type||"+"===this.type,s="!"===this.type?"(?:(?!(?:":"(?:";let n=this.#f(e);if(this.isStart()&&this.isEnd()&&!n&&"!"!==this.type){const t=this.toString();return this.#s=[t],this.type=null,this.#e=void 0,[t,b(this.toString()),!1,!1]}let r=!i||t||e?"":this.#f(!0);r===n&&(r=""),r&&(n=`(?:${n})(?:${r})*?`);let o="";return o="!"===this.type&&this.#h?(this.isStart()&&!e?k:"")+A:s+n+("!"===this.type?"))"+(!this.isStart()||e||t?"":k)+C+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&r?")":"*"===this.type&&r?")?":`)${this.type}`),[o,b(n),this.#e=!!this.#e,this.#i]}#f(t){return this.#s.map((e=>{if("string"==typeof e)throw new Error("string type in extglob ast??");const[i,s,n,r]=e.toRegExpSource(t);return this.#i=this.#i||r,i})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")}static#d(t,e,i=!1){let s=!1,n="",r=!1;for(let o=0;o<t.length;o++){const a=t.charAt(o);if(s)s=!1,n+=(S.has(a)?"\\":"")+a;else if("\\"!==a){if("["===a){const[i,s,a,l]=y(t,o);if(a){n+=i,r=r||s,o+=a-1,e=e||l;continue}}"*"!==a?"?"!==a?n+=a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(n+=T,e=!0):(n+=i&&"*"===t?A:C,e=!0)}else o===t.length-1?n+="\\\\":s=!0}return[n,b(t),!!e,r]}}const O=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),M=(t,e,i={})=>(d(e),!(!i.nocomment&&"#"===e.charAt(0))&&new it(e,i).match(t)),P=/^\*+([^+@!?\*\[\(]*)$/,L=t=>e=>!e.startsWith(".")&&e.endsWith(t),F=t=>e=>e.endsWith(t),j=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),D=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),z=/^\*+\.\*+$/,I=t=>!t.startsWith(".")&&t.includes("."),R=t=>"."!==t&&".."!==t&&t.includes("."),B=/^\.\*+$/,N=t=>"."!==t&&".."!==t&&t.startsWith("."),W=/^\*+$/,$=t=>0!==t.length&&!t.startsWith("."),U=t=>0!==t.length&&"."!==t&&".."!==t,q=/^\?+([^+@!?\*\[\(]*)?$/,H=([t,e=""])=>{const i=Q([t]);return e?(e=e.toLowerCase(),t=>i(t)&&t.toLowerCase().endsWith(e)):i},G=([t,e=""])=>{const i=J([t]);return e?(e=e.toLowerCase(),t=>i(t)&&t.toLowerCase().endsWith(e)):i},Y=([t,e=""])=>{const i=J([t]);return e?t=>i(t)&&t.endsWith(e):i},V=([t,e=""])=>{const i=Q([t]);return e?t=>i(t)&&t.endsWith(e):i},Q=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},J=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},Z="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";M.sep="win32"===Z?"\\":"/";const X=Symbol("globstar **");M.GLOBSTAR=X,M.filter=(t,e={})=>i=>M(i,t,e);const K=(t,e={})=>Object.assign({},t,e);M.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return M;const e=M;return Object.assign(((i,s,n={})=>e(i,s,K(t,n))),{Minimatch:class extends e.Minimatch{constructor(e,i={}){super(e,K(t,i))}static defaults(i){return e.defaults(K(t,i)).Minimatch}},AST:class extends e.AST{constructor(e,i,s={}){super(e,i,K(t,s))}static fromGlob(i,s={}){return e.AST.fromGlob(i,K(t,s))}},unescape:(i,s={})=>e.unescape(i,K(t,s)),escape:(i,s={})=>e.escape(i,K(t,s)),filter:(i,s={})=>e.filter(i,K(t,s)),defaults:i=>e.defaults(K(t,i)),makeRe:(i,s={})=>e.makeRe(i,K(t,s)),braceExpand:(i,s={})=>e.braceExpand(i,K(t,s)),match:(i,s,n={})=>e.match(i,s,K(t,n)),sep:e.sep,GLOBSTAR:X})};const tt=(t,e={})=>(d(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:p(t));M.braceExpand=tt,M.makeRe=(t,e={})=>new it(t,e).makeRe(),M.match=(t,e,i={})=>{const s=new it(e,i);return t=t.filter((t=>s.match(t))),s.options.nonull&&!t.length&&t.push(e),t};const et=/[?*]|[+@!]\(.*?\)|\[|\]/;class it{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){d(t),e=e||{},this.options=e,this.pattern=t,this.platform=e.platform||Z,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);const i=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let s=this.globParts.map(((t,e,i)=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&et.test(t[2])||et.test(t[3])),i=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(i)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,s),this.set=s.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let i=0;i<t[e].length;i++)"**"===t[e][i]&&(t[e][i]="*");const{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let i=e;for(;"**"===t[i+1];)i++;i!==e&&t.splice(e,i-e)}return t}))}levelOneOptimize(t){return t.map((t=>0===(t=t.reduce(((t,e)=>{const i=t[t.length-1];return"**"===e&&"**"===i?t:".."===e&&i&&".."!==i&&"."!==i&&"**"!==i?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){const s=t[i];1===i&&""===s&&""===t[0]||"."!==s&&""!==s||(e=!0,t.splice(i,1),i--)}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let i=0;for(;-1!==(i=t.indexOf("..",i+1));){const s=t[i-1];s&&"."!==s&&".."!==s&&"**"!==s&&(e=!0,t.splice(i-1,2),i-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let i of t){let s=-1;for(;-1!==(s=i.indexOf("**",s+1));){let n=s;for(;"**"===i[n+1];)n++;n>s&&i.splice(s+1,n-s);let r=i[s+1];const o=i[s+2],a=i[s+3];if(".."!==r)continue;if(!o||"."===o||".."===o||!a||"."===a||".."===a)continue;e=!0,i.splice(s,1);const l=i.slice(0);l[s]="**",t.push(l),s--}if(!this.preserveMultipleSlashes){for(let t=1;t<i.length-1;t++){const s=i[t];1===t&&""===s&&""===i[0]||"."!==s&&""!==s||(e=!0,i.splice(t,1),t--)}"."!==i[0]||2!==i.length||"."!==i[1]&&""!==i[1]||(e=!0,i.pop())}let n=0;for(;-1!==(n=i.indexOf("..",n+1));){const t=i[n-1];if(t&&"."!==t&&".."!==t&&"**"!==t){e=!0;const t=1===n&&"**"===i[n+1]?["."]:[];i.splice(n-1,2,...t),0===i.length&&i.push(""),n-=2}}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let i=e+1;i<t.length;i++){const s=this.partsMatch(t[e],t[i],!this.preserveMultipleSlashes);if(s){t[e]=[],t[i]=s;break}}return t.filter((t=>t.length))}partsMatch(t,e,i=!1){let s=0,n=0,r=[],o="";for(;s<t.length&&n<e.length;)if(t[s]===e[n])r.push("b"===o?e[n]:t[s]),s++,n++;else if(i&&"**"===t[s]&&e[n]===t[s+1])r.push(t[s]),s++;else if(i&&"**"===e[n]&&t[s]===e[n+1])r.push(e[n]),n++;else if("*"!==t[s]||!e[n]||!this.options.dot&&e[n].startsWith(".")||"**"===e[n]){if("*"!==e[n]||!t[s]||!this.options.dot&&t[s].startsWith(".")||"**"===t[s])return!1;if("a"===o)return!1;o="b",r.push(e[n]),s++,n++}else{if("b"===o)return!1;o="a",r.push(t[s]),s++,n++}return t.length===e.length&&r}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,i=0;for(let s=0;s<t.length&&"!"===t.charAt(s);s++)e=!e,i++;i&&(this.pattern=t.slice(i)),this.negate=e}matchOne(t,e,i=!1){const s=this.options;if(this.isWindows){const i="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),s=!i&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),n="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),r=s?3:i?0:void 0,o=!n&&""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])?3:n?0:void 0;if("number"==typeof r&&"number"==typeof o){const[i,s]=[t[r],e[o]];i.toLowerCase()===s.toLowerCase()&&(e[o]=i,o>r?e=e.slice(o):r>o&&(t=t.slice(r)))}}const{optimizationLevel:n=1}=this.options;n>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,o=0,a=t.length,l=e.length;r<a&&o<l;r++,o++){this.debug("matchOne loop");var c=e[o],h=t[r];if(this.debug(e,c,h),!1===c)return!1;if(c===X){this.debug("GLOBSTAR",[e,c,h]);var u=r,p=o+1;if(p===l){for(this.debug("** at the end");r<a;r++)if("."===t[r]||".."===t[r]||!s.dot&&"."===t[r].charAt(0))return!1;return!0}for(;u<a;){var d=t[u];if(this.debug("\nglobstar while",t,u,e,p,d),this.matchOne(t.slice(u),e.slice(p),i))return this.debug("globstar found match!",u,a,d),!0;if("."===d||".."===d||!s.dot&&"."===d.charAt(0)){this.debug("dot detected!",t,u,e,p);break}this.debug("globstar swallow a segment, and continue"),u++}return!(!i||(this.debug("\n>>> no match, partial?",t,u,e,p),u!==a))}let n;if("string"==typeof c?(n=h===c,this.debug("string match",c,h,n)):(n=c.test(h),this.debug("pattern match",c,h,n)),!n)return!1}if(r===a&&o===l)return!0;if(r===a)return i;if(o===l)return r===a-1&&""===t[r];throw new Error("wtf?")}braceExpand(){return tt(this.pattern,this.options)}parse(t){d(t);const e=this.options;if("**"===t)return X;if(""===t)return"";let i,s=null;(i=t.match(W))?s=e.dot?U:$:(i=t.match(P))?s=(e.nocase?e.dot?D:j:e.dot?F:L)(i[1]):(i=t.match(q))?s=(e.nocase?e.dot?G:H:e.dot?Y:V)(i):(i=t.match(z))?s=e.dot?R:I:(i=t.match(B))&&(s=N);const n=E.fromGlob(t,this.options).toMMPattern();return s&&"object"==typeof n&&Reflect.defineProperty(n,"test",{value:s}),n}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,i=e.noglobstar?"[^/]*?":e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",s=new Set(e.nocase?["i"]:[]);let n=t.map((t=>{const e=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))s.add(e);return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):t===X?X:t._src}));return e.forEach(((t,s)=>{const n=e[s+1],r=e[s-1];t===X&&r!==X&&(void 0===r?void 0!==n&&n!==X?e[s+1]="(?:\\/|"+i+"\\/)?"+n:e[s]=i:void 0===n?e[s-1]=r+"(?:\\/|"+i+")?":n!==X&&(e[s-1]=r+"(?:\\/|\\/"+i+"\\/)"+n,e[s+1]=X))})),e.filter((t=>t!==X)).join("/")})).join("|");const[r,o]=t.length>1?["(?:",")"]:["",""];n="^"+r+n+o+"$",this.negate&&(n="^(?!"+n+").+$");try{this.regexp=new RegExp(n,[...s].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const i=this.options;this.isWindows&&(t=t.split("\\").join("/"));const s=this.slashSplit(t);this.debug(this.pattern,"split",s);const n=this.set;this.debug(this.pattern,"set",n);let r=s[s.length-1];if(!r)for(let t=s.length-2;!r&&t>=0;t--)r=s[t];for(let t=0;t<n.length;t++){const o=n[t];let a=s;if(i.matchBase&&1===o.length&&(a=[r]),this.matchOne(a,o,e))return!!i.flipNegate||!this.negate}return!i.flipNegate&&this.negate}static defaults(t){return M.defaults(t).Minimatch}}M.AST=E,M.Minimatch=it,M.escape=O,M.unescape=b;const st=require("node:url"),nt="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,rt=new Set,ot="object"==typeof process&&process?process:{},at=(t,e,i,s)=>{"function"==typeof ot.emitWarning?ot.emitWarning(t,e,i,s):console.error(`[${i}] ${e}: ${t}`)};let lt=globalThis.AbortController,ct=globalThis.AbortSignal;if(void 0===lt){ct=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(t,e){this._onabort.push(e)}},lt=class{constructor(){e()}signal=new ct;abort(t){if(!this.signal.aborted){this.signal.reason=t,this.signal.aborted=!0;for(const e of this.signal._onabort)e(t);this.signal.onabort?.(t)}}};let t="1"!==ot.env?.LRU_CACHE_IGNORE_AC_WARNING;const e=()=>{t&&(t=!1,at("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}Symbol("type");const ht=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),ut=t=>ht(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?pt:null:null;class pt extends Array{constructor(t){super(t),this.fill(0)}}class dt{heap;length;static#m=!1;static create(t){const e=ut(t);if(!e)return[];dt.#m=!0;const i=new dt(t,e);return dt.#m=!1,i}constructor(t,e){if(!dt.#m)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class ft{#g;#y;#b;#v;#w;#k;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#_;#x;#S;#T;#C;#A;#E;#O;#M;#P;#L;#F;#j;#D;#z;#I;#R;static unsafeExposeInternals(t){return{starts:t.#j,ttls:t.#D,sizes:t.#F,keyMap:t.#S,keyList:t.#T,valList:t.#C,next:t.#A,prev:t.#E,get head(){return t.#O},get tail(){return t.#M},free:t.#P,isBackgroundFetch:e=>t.#B(e),backgroundFetch:(e,i,s,n)=>t.#N(e,i,s,n),moveToTail:e=>t.#W(e),indexes:e=>t.#$(e),rindexes:e=>t.#U(e),isStale:e=>t.#q(e)}}get max(){return this.#g}get maxSize(){return this.#y}get calculatedSize(){return this.#x}get size(){return this.#_}get fetchMethod(){return this.#w}get memoMethod(){return this.#k}get dispose(){return this.#b}get disposeAfter(){return this.#v}constructor(t){const{max:e=0,ttl:i,ttlResolution:s=1,ttlAutopurge:n,updateAgeOnGet:r,updateAgeOnHas:o,allowStale:a,dispose:l,disposeAfter:c,noDisposeOnSet:h,noUpdateTTL:u,maxSize:p=0,maxEntrySize:d=0,sizeCalculation:f,fetchMethod:m,memoMethod:g,noDeleteOnFetchRejection:y,noDeleteOnStaleGet:b,allowStaleOnFetchRejection:v,allowStaleOnFetchAbort:w,ignoreFetchAbort:k}=t;if(0!==e&&!ht(e))throw new TypeError("max option must be a nonnegative integer");const _=e?ut(e):Array;if(!_)throw new Error("invalid max value: "+e);if(this.#g=e,this.#y=p,this.maxEntrySize=d||this.#y,this.sizeCalculation=f,this.sizeCalculation){if(!this.#y&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==g&&"function"!=typeof g)throw new TypeError("memoMethod must be a function if defined");if(this.#k=g,void 0!==m&&"function"!=typeof m)throw new TypeError("fetchMethod must be a function if specified");if(this.#w=m,this.#I=!!m,this.#S=new Map,this.#T=new Array(e).fill(void 0),this.#C=new Array(e).fill(void 0),this.#A=new _(e),this.#E=new _(e),this.#O=0,this.#M=0,this.#P=dt.create(e),this.#_=0,this.#x=0,"function"==typeof l&&(this.#b=l),"function"==typeof c?(this.#v=c,this.#L=[]):(this.#v=void 0,this.#L=void 0),this.#z=!!this.#b,this.#R=!!this.#v,this.noDisposeOnSet=!!h,this.noUpdateTTL=!!u,this.noDeleteOnFetchRejection=!!y,this.allowStaleOnFetchRejection=!!v,this.allowStaleOnFetchAbort=!!w,this.ignoreFetchAbort=!!k,0!==this.maxEntrySize){if(0!==this.#y&&!ht(this.#y))throw new TypeError("maxSize must be a positive integer if specified");if(!ht(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#H()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!b,this.updateAgeOnGet=!!r,this.updateAgeOnHas=!!o,this.ttlResolution=ht(s)||0===s?s:1,this.ttlAutopurge=!!n,this.ttl=i||0,this.ttl){if(!ht(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#G()}if(0===this.#g&&0===this.ttl&&0===this.#y)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#g&&!this.#y){const t="LRU_CACHE_UNBOUNDED";(t=>!rt.has(t))(t)&&(rt.add(t),at("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,ft))}}getRemainingTTL(t){return this.#S.has(t)?1/0:0}#G(){const t=new pt(this.#g),e=new pt(this.#g);this.#D=t,this.#j=e,this.#Y=(i,s,n=nt.now())=>{if(e[i]=0!==s?n:0,t[i]=s,0!==s&&this.ttlAutopurge){const t=setTimeout((()=>{this.#q(i)&&this.#V(this.#T[i],"expire")}),s+1);t.unref&&t.unref()}},this.#Q=i=>{e[i]=0!==t[i]?nt.now():0},this.#J=(n,r)=>{if(t[r]){const o=t[r],a=e[r];if(!o||!a)return;n.ttl=o,n.start=a,n.now=i||s();const l=n.now-a;n.remainingTTL=o-l}};let i=0;const s=()=>{const t=nt.now();if(this.ttlResolution>0){i=t;const e=setTimeout((()=>i=0),this.ttlResolution);e.unref&&e.unref()}return t};this.getRemainingTTL=n=>{const r=this.#S.get(n);if(void 0===r)return 0;const o=t[r],a=e[r];return o&&a?o-((i||s())-a):1/0},this.#q=n=>{const r=e[n],o=t[n];return!!o&&!!r&&(i||s())-r>o}}#Q=()=>{};#J=()=>{};#Y=()=>{};#q=()=>!1;#H(){const t=new pt(this.#g);this.#x=0,this.#F=t,this.#Z=e=>{this.#x-=t[e],t[e]=0},this.#X=(t,e,i,s)=>{if(this.#B(e))return 0;if(!ht(i)){if(!s)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof s)throw new TypeError("sizeCalculation must be a function");if(i=s(e,t),!ht(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return i},this.#K=(e,i,s)=>{if(t[e]=i,this.#y){const i=this.#y-t[e];for(;this.#x>i;)this.#tt(!0)}this.#x+=t[e],s&&(s.entrySize=i,s.totalCalculatedSize=this.#x)}}#Z=t=>{};#K=(t,e,i)=>{};#X=(t,e,i,s)=>{if(i||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#$({allowStale:t=this.allowStale}={}){if(this.#_)for(let e=this.#M;this.#et(e)&&(!t&&this.#q(e)||(yield e),e!==this.#O);)e=this.#E[e]}*#U({allowStale:t=this.allowStale}={}){if(this.#_)for(let e=this.#O;this.#et(e)&&(!t&&this.#q(e)||(yield e),e!==this.#M);)e=this.#A[e]}#et(t){return void 0!==t&&this.#S.get(this.#T[t])===t}*entries(){for(const t of this.#$())void 0===this.#C[t]||void 0===this.#T[t]||this.#B(this.#C[t])||(yield[this.#T[t],this.#C[t]])}*rentries(){for(const t of this.#U())void 0===this.#C[t]||void 0===this.#T[t]||this.#B(this.#C[t])||(yield[this.#T[t],this.#C[t]])}*keys(){for(const t of this.#$()){const e=this.#T[t];void 0===e||this.#B(this.#C[t])||(yield e)}}*rkeys(){for(const t of this.#U()){const e=this.#T[t];void 0===e||this.#B(this.#C[t])||(yield e)}}*values(){for(const t of this.#$())void 0===this.#C[t]||this.#B(this.#C[t])||(yield this.#C[t])}*rvalues(){for(const t of this.#U())void 0===this.#C[t]||this.#B(this.#C[t])||(yield this.#C[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,e={}){for(const i of this.#$()){const s=this.#C[i],n=this.#B(s)?s.__staleWhileFetching:s;if(void 0!==n&&t(n,this.#T[i],this))return this.get(this.#T[i],e)}}forEach(t,e=this){for(const i of this.#$()){const s=this.#C[i],n=this.#B(s)?s.__staleWhileFetching:s;void 0!==n&&t.call(e,n,this.#T[i],this)}}rforEach(t,e=this){for(const i of this.#U()){const s=this.#C[i],n=this.#B(s)?s.__staleWhileFetching:s;void 0!==n&&t.call(e,n,this.#T[i],this)}}purgeStale(){let t=!1;for(const e of this.#U({allowStale:!0}))this.#q(e)&&(this.#V(this.#T[e],"expire"),t=!0);return t}info(t){const e=this.#S.get(t);if(void 0===e)return;const i=this.#C[e],s=this.#B(i)?i.__staleWhileFetching:i;if(void 0===s)return;const n={value:s};if(this.#D&&this.#j){const t=this.#D[e],i=this.#j[e];if(t&&i){const e=t-(nt.now()-i);n.ttl=e,n.start=Date.now()}}return this.#F&&(n.size=this.#F[e]),n}dump(){const t=[];for(const e of this.#$({allowStale:!0})){const i=this.#T[e],s=this.#C[e],n=this.#B(s)?s.__staleWhileFetching:s;if(void 0===n||void 0===i)continue;const r={value:n};if(this.#D&&this.#j){r.ttl=this.#D[e];const t=nt.now()-this.#j[e];r.start=Math.floor(Date.now()-t)}this.#F&&(r.size=this.#F[e]),t.unshift([i,r])}return t}load(t){this.clear();for(const[e,i]of t){if(i.start){const t=Date.now()-i.start;i.start=nt.now()-t}this.set(e,i.value,i)}}set(t,e,i={}){if(void 0===e)return this.delete(t),this;const{ttl:s=this.ttl,start:n,noDisposeOnSet:r=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:a}=i;let{noUpdateTTL:l=this.noUpdateTTL}=i;const c=this.#X(t,e,i.size||0,o);if(this.maxEntrySize&&c>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#V(t,"set"),this;let h=0===this.#_?void 0:this.#S.get(t);if(void 0===h)h=0===this.#_?this.#M:0!==this.#P.length?this.#P.pop():this.#_===this.#g?this.#tt(!1):this.#_,this.#T[h]=t,this.#C[h]=e,this.#S.set(t,h),this.#A[this.#M]=h,this.#E[h]=this.#M,this.#M=h,this.#_++,this.#K(h,c,a),a&&(a.set="add"),l=!1;else{this.#W(h);const i=this.#C[h];if(e!==i){if(this.#I&&this.#B(i)){i.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:e}=i;void 0===e||r||(this.#z&&this.#b?.(e,t,"set"),this.#R&&this.#L?.push([e,t,"set"]))}else r||(this.#z&&this.#b?.(i,t,"set"),this.#R&&this.#L?.push([i,t,"set"]));if(this.#Z(h),this.#K(h,c,a),this.#C[h]=e,a){a.set="replace";const t=i&&this.#B(i)?i.__staleWhileFetching:i;void 0!==t&&(a.oldValue=t)}}else a&&(a.set="update")}if(0===s||this.#D||this.#G(),this.#D&&(l||this.#Y(h,s,n),a&&this.#J(a,h)),!r&&this.#R&&this.#L){const t=this.#L;let e;for(;e=t?.shift();)this.#v?.(...e)}return this}pop(){try{for(;this.#_;){const t=this.#C[this.#O];if(this.#tt(!0),this.#B(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if(this.#R&&this.#L){const t=this.#L;let e;for(;e=t?.shift();)this.#v?.(...e)}}}#tt(t){const e=this.#O,i=this.#T[e],s=this.#C[e];return this.#I&&this.#B(s)?s.__abortController.abort(new Error("evicted")):(this.#z||this.#R)&&(this.#z&&this.#b?.(s,i,"evict"),this.#R&&this.#L?.push([s,i,"evict"])),this.#Z(e),t&&(this.#T[e]=void 0,this.#C[e]=void 0,this.#P.push(e)),1===this.#_?(this.#O=this.#M=0,this.#P.length=0):this.#O=this.#A[e],this.#S.delete(i),this.#_--,e}has(t,e={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=e,n=this.#S.get(t);if(void 0!==n){const t=this.#C[n];if(this.#B(t)&&void 0===t.__staleWhileFetching)return!1;if(!this.#q(n))return i&&this.#Q(n),s&&(s.has="hit",this.#J(s,n)),!0;s&&(s.has="stale",this.#J(s,n))}else s&&(s.has="miss");return!1}peek(t,e={}){const{allowStale:i=this.allowStale}=e,s=this.#S.get(t);if(void 0===s||!i&&this.#q(s))return;const n=this.#C[s];return this.#B(n)?n.__staleWhileFetching:n}#N(t,e,i,s){const n=void 0===e?void 0:this.#C[e];if(this.#B(n))return n;const r=new lt,{signal:o}=i;o?.addEventListener("abort",(()=>r.abort(o.reason)),{signal:r.signal});const a={signal:r.signal,options:i,context:s},l=(s,n=!1)=>{const{aborted:o}=r.signal,l=i.ignoreFetchAbort&&void 0!==s;if(i.status&&(o&&!n?(i.status.fetchAborted=!0,i.status.fetchError=r.signal.reason,l&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),o&&!l&&!n)return c(r.signal.reason);const u=h;return this.#C[e]===h&&(void 0===s?u.__staleWhileFetching?this.#C[e]=u.__staleWhileFetching:this.#V(t,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(t,s,a.options))),s},c=s=>{const{aborted:n}=r.signal,o=n&&i.allowStaleOnFetchAbort,a=o||i.allowStaleOnFetchRejection,l=a||i.noDeleteOnFetchRejection,c=h;if(this.#C[e]===h&&(l&&void 0!==c.__staleWhileFetching?o||(this.#C[e]=c.__staleWhileFetching):this.#V(t,"fetch")),a)return i.status&&void 0!==c.__staleWhileFetching&&(i.status.returnedStale=!0),c.__staleWhileFetching;if(c.__returned===c)throw s};i.status&&(i.status.fetchDispatched=!0);const h=new Promise(((e,s)=>{const o=this.#w?.(t,n,a);o&&o instanceof Promise&&o.then((t=>e(void 0===t?void 0:t)),s),r.signal.addEventListener("abort",(()=>{i.ignoreFetchAbort&&!i.allowStaleOnFetchAbort||(e(void 0),i.allowStaleOnFetchAbort&&(e=t=>l(t,!0)))}))})).then(l,(t=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=t),c(t)))),u=Object.assign(h,{__abortController:r,__staleWhileFetching:n,__returned:void 0});return void 0===e?(this.set(t,u,{...a.options,status:void 0}),e=this.#S.get(t)):this.#C[e]=u,u}#B(t){if(!this.#I)return!1;const e=t;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof lt}async fetch(t,e={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:r=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:h=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:u=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:d=this.allowStaleOnFetchAbort,context:f,forceRefresh:m=!1,status:g,signal:y}=e;if(!this.#I)return g&&(g.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:n,status:g});const b={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:n,ttl:r,noDisposeOnSet:o,size:a,sizeCalculation:l,noUpdateTTL:c,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:u,allowStaleOnFetchAbort:d,ignoreFetchAbort:p,status:g,signal:y};let v=this.#S.get(t);if(void 0===v){g&&(g.fetch="miss");const e=this.#N(t,v,b,f);return e.__returned=e}{const e=this.#C[v];if(this.#B(e)){const t=i&&void 0!==e.__staleWhileFetching;return g&&(g.fetch="inflight",t&&(g.returnedStale=!0)),t?e.__staleWhileFetching:e.__returned=e}const n=this.#q(v);if(!m&&!n)return g&&(g.fetch="hit"),this.#W(v),s&&this.#Q(v),g&&this.#J(g,v),e;const r=this.#N(t,v,b,f),o=void 0!==r.__staleWhileFetching&&i;return g&&(g.fetch=n?"stale":"refresh",o&&n&&(g.returnedStale=!0)),o?r.__staleWhileFetching:r.__returned=r}}async forceFetch(t,e={}){const i=await this.fetch(t,e);if(void 0===i)throw new Error("fetch() returned undefined");return i}memo(t,e={}){const i=this.#k;if(!i)throw new Error("no memoMethod provided to constructor");const{context:s,forceRefresh:n,...r}=e,o=this.get(t,r);if(!n&&void 0!==o)return o;const a=i(t,o,{options:r,context:s});return this.set(t,a,r),a}get(t,e={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:r}=e,o=this.#S.get(t);if(void 0!==o){const e=this.#C[o],a=this.#B(e);return r&&this.#J(r,o),this.#q(o)?(r&&(r.get="stale"),a?(r&&i&&void 0!==e.__staleWhileFetching&&(r.returnedStale=!0),i?e.__staleWhileFetching:void 0):(n||this.#V(t,"expire"),r&&i&&(r.returnedStale=!0),i?e:void 0)):(r&&(r.get="hit"),a?e.__staleWhileFetching:(this.#W(o),s&&this.#Q(o),e))}r&&(r.get="miss")}#it(t,e){this.#E[e]=t,this.#A[t]=e}#W(t){t!==this.#M&&(t===this.#O?this.#O=this.#A[t]:this.#it(this.#E[t],this.#A[t]),this.#it(this.#M,t),this.#M=t)}delete(t){return this.#V(t,"delete")}#V(t,e){let i=!1;if(0!==this.#_){const s=this.#S.get(t);if(void 0!==s)if(i=!0,1===this.#_)this.#st(e);else{this.#Z(s);const i=this.#C[s];if(this.#B(i)?i.__abortController.abort(new Error("deleted")):(this.#z||this.#R)&&(this.#z&&this.#b?.(i,t,e),this.#R&&this.#L?.push([i,t,e])),this.#S.delete(t),this.#T[s]=void 0,this.#C[s]=void 0,s===this.#M)this.#M=this.#E[s];else if(s===this.#O)this.#O=this.#A[s];else{const t=this.#E[s];this.#A[t]=this.#A[s];const e=this.#A[s];this.#E[e]=this.#E[s]}this.#_--,this.#P.push(s)}}if(this.#R&&this.#L?.length){const t=this.#L;let e;for(;e=t?.shift();)this.#v?.(...e)}return i}clear(){return this.#st("delete")}#st(t){for(const e of this.#U({allowStale:!0})){const i=this.#C[e];if(this.#B(i))i.__abortController.abort(new Error("deleted"));else{const s=this.#T[e];this.#z&&this.#b?.(i,s,t),this.#R&&this.#L?.push([i,s,t])}}if(this.#S.clear(),this.#C.fill(void 0),this.#T.fill(void 0),this.#D&&this.#j&&(this.#D.fill(0),this.#j.fill(0)),this.#F&&this.#F.fill(0),this.#O=0,this.#M=0,this.#P.length=0,this.#x=0,this.#_=0,this.#R&&this.#L){const t=this.#L;let e;for(;e=t?.shift();)this.#v?.(...e)}}}const mt=require("node:path"),gt=require("fs"),yt=require("node:fs");var bt=i.t(yt,2);const vt=require("node:fs/promises"),wt=require("node:events"),kt=require("node:stream"),_t=require("node:string_decoder"),xt="object"==typeof process&&process?process:{stdout:null,stderr:null},St=t=>!!t&&"object"==typeof t&&(t instanceof le||t instanceof kt||Tt(t)||Ct(t)),Tt=t=>!!t&&"object"==typeof t&&t instanceof wt.EventEmitter&&"function"==typeof t.pipe&&t.pipe!==kt.Writable.prototype.pipe,Ct=t=>!!t&&"object"==typeof t&&t instanceof wt.EventEmitter&&"function"==typeof t.write&&"function"==typeof t.end,At=Symbol("EOF"),Et=Symbol("maybeEmitEnd"),Ot=Symbol("emittedEnd"),Mt=Symbol("emittingEnd"),Pt=Symbol("emittedError"),Lt=Symbol("closed"),Ft=Symbol("read"),jt=Symbol("flush"),Dt=Symbol("flushChunk"),zt=Symbol("encoding"),It=Symbol("decoder"),Rt=Symbol("flowing"),Bt=Symbol("paused"),Nt=Symbol("resume"),Wt=Symbol("buffer"),$t=Symbol("pipes"),Ut=Symbol("bufferLength"),qt=Symbol("bufferPush"),Ht=Symbol("bufferShift"),Gt=Symbol("objectMode"),Yt=Symbol("destroyed"),Vt=Symbol("error"),Qt=Symbol("emitData"),Jt=Symbol("emitEnd"),Zt=Symbol("emitEnd2"),Xt=Symbol("async"),Kt=Symbol("abort"),te=Symbol("aborted"),ee=Symbol("signal"),ie=Symbol("dataListeners"),se=Symbol("discarded"),ne=t=>Promise.resolve().then(t),re=t=>t();class oe{src;dest;opts;ondrain;constructor(t,e,i){this.src=t,this.dest=e,this.opts=i,this.ondrain=()=>t[Nt](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class ae extends oe{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,e,i){super(t,e,i),this.proxyErrors=t=>e.emit("error",t),t.on("error",this.proxyErrors)}}class le extends wt.EventEmitter{[Rt]=!1;[Bt]=!1;[$t]=[];[Wt]=[];[Gt];[zt];[Xt];[It];[At]=!1;[Ot]=!1;[Mt]=!1;[Lt]=!1;[Pt]=null;[Ut]=0;[Yt]=!1;[ee];[te]=!1;[ie]=0;[se]=!1;writable=!0;readable=!0;constructor(...t){const e=t[0]||{};if(super(),e.objectMode&&"string"==typeof e.encoding)throw new TypeError("Encoding and objectMode may not be used together");var i;e.objectMode?(this[Gt]=!0,this[zt]=null):!(i=e).objectMode&&i.encoding&&"buffer"!==i.encoding?(this[zt]=e.encoding,this[Gt]=!1):(this[Gt]=!1,this[zt]=null),this[Xt]=!!e.async,this[It]=this[zt]?new _t.StringDecoder(this[zt]):null,e&&!0===e.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[Wt]}),e&&!0===e.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[$t]});const{signal:s}=e;s&&(this[ee]=s,s.aborted?this[Kt]():s.addEventListener("abort",(()=>this[Kt]())))}get bufferLength(){return this[Ut]}get encoding(){return this[zt]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Gt]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Xt]}set async(t){this[Xt]=this[Xt]||!!t}[Kt](){this[te]=!0,this.emit("abort",this[ee]?.reason),this.destroy(this[ee]?.reason)}get aborted(){return this[te]}set aborted(t){}write(t,e,i){if(this[te])return!1;if(this[At])throw new Error("write after end");if(this[Yt])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof e&&(i=e,e="utf8"),e||(e="utf8");const s=this[Xt]?ne:re;if(!this[Gt]&&!Buffer.isBuffer(t))if(n=t,!Buffer.isBuffer(n)&&ArrayBuffer.isView(n))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if((t=>t instanceof ArrayBuffer||!!t&&"object"==typeof t&&t.constructor&&"ArrayBuffer"===t.constructor.name&&t.byteLength>=0)(t))t=Buffer.from(t);else if("string"!=typeof t)throw new Error("Non-contiguous data written to non-objectMode stream");var n;return this[Gt]?(this[Rt]&&0!==this[Ut]&&this[jt](!0),this[Rt]?this.emit("data",t):this[qt](t),0!==this[Ut]&&this.emit("readable"),i&&s(i),this[Rt]):t.length?("string"!=typeof t||e===this[zt]&&!this[It]?.lastNeed||(t=Buffer.from(t,e)),Buffer.isBuffer(t)&&this[zt]&&(t=this[It].write(t)),this[Rt]&&0!==this[Ut]&&this[jt](!0),this[Rt]?this.emit("data",t):this[qt](t),0!==this[Ut]&&this.emit("readable"),i&&s(i),this[Rt]):(0!==this[Ut]&&this.emit("readable"),i&&s(i),this[Rt])}read(t){if(this[Yt])return null;if(this[se]=!1,0===this[Ut]||0===t||t&&t>this[Ut])return this[Et](),null;this[Gt]&&(t=null),this[Wt].length>1&&!this[Gt]&&(this[Wt]=[this[zt]?this[Wt].join(""):Buffer.concat(this[Wt],this[Ut])]);const e=this[Ft](t||null,this[Wt][0]);return this[Et](),e}[Ft](t,e){if(this[Gt])this[Ht]();else{const i=e;t===i.length||null===t?this[Ht]():"string"==typeof i?(this[Wt][0]=i.slice(t),e=i.slice(0,t),this[Ut]-=t):(this[Wt][0]=i.subarray(t),e=i.subarray(0,t),this[Ut]-=t)}return this.emit("data",e),this[Wt].length||this[At]||this.emit("drain"),e}end(t,e,i){return"function"==typeof t&&(i=t,t=void 0),"function"==typeof e&&(i=e,e="utf8"),void 0!==t&&this.write(t,e),i&&this.once("end",i),this[At]=!0,this.writable=!1,!this[Rt]&&this[Bt]||this[Et](),this}[Nt](){this[Yt]||(this[ie]||this[$t].length||(this[se]=!0),this[Bt]=!1,this[Rt]=!0,this.emit("resume"),this[Wt].length?this[jt]():this[At]?this[Et]():this.emit("drain"))}resume(){return this[Nt]()}pause(){this[Rt]=!1,this[Bt]=!0,this[se]=!1}get destroyed(){return this[Yt]}get flowing(){return this[Rt]}get paused(){return this[Bt]}[qt](t){this[Gt]?this[Ut]+=1:this[Ut]+=t.length,this[Wt].push(t)}[Ht](){return this[Gt]?this[Ut]-=1:this[Ut]-=this[Wt][0].length,this[Wt].shift()}[jt](t=!1){do{}while(this[Dt](this[Ht]())&&this[Wt].length);t||this[Wt].length||this[At]||this.emit("drain")}[Dt](t){return this.emit("data",t),this[Rt]}pipe(t,e){if(this[Yt])return t;this[se]=!1;const i=this[Ot];return e=e||{},t===xt.stdout||t===xt.stderr?e.end=!1:e.end=!1!==e.end,e.proxyErrors=!!e.proxyErrors,i?e.end&&t.end():(this[$t].push(e.proxyErrors?new ae(this,t,e):new oe(this,t,e)),this[Xt]?ne((()=>this[Nt]())):this[Nt]()),t}unpipe(t){const e=this[$t].find((e=>e.dest===t));e&&(1===this[$t].length?(this[Rt]&&0===this[ie]&&(this[Rt]=!1),this[$t]=[]):this[$t].splice(this[$t].indexOf(e),1),e.unpipe())}addListener(t,e){return this.on(t,e)}on(t,e){const i=super.on(t,e);if("data"===t)this[se]=!1,this[ie]++,this[$t].length||this[Rt]||this[Nt]();else if("readable"===t&&0!==this[Ut])super.emit("readable");else if((t=>"end"===t||"finish"===t||"prefinish"===t)(t)&&this[Ot])super.emit(t),this.removeAllListeners(t);else if("error"===t&&this[Pt]){const t=e;this[Xt]?ne((()=>t.call(this,this[Pt]))):t.call(this,this[Pt])}return i}removeListener(t,e){return this.off(t,e)}off(t,e){const i=super.off(t,e);return"data"===t&&(this[ie]=this.listeners("data").length,0!==this[ie]||this[se]||this[$t].length||(this[Rt]=!1)),i}removeAllListeners(t){const e=super.removeAllListeners(t);return"data"!==t&&void 0!==t||(this[ie]=0,this[se]||this[$t].length||(this[Rt]=!1)),e}get emittedEnd(){return this[Ot]}[Et](){this[Mt]||this[Ot]||this[Yt]||0!==this[Wt].length||!this[At]||(this[Mt]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Lt]&&this.emit("close"),this[Mt]=!1)}emit(t,...e){const i=e[0];if("error"!==t&&"close"!==t&&t!==Yt&&this[Yt])return!1;if("data"===t)return!(!this[Gt]&&!i)&&(this[Xt]?(ne((()=>this[Qt](i))),!0):this[Qt](i));if("end"===t)return this[Jt]();if("close"===t){if(this[Lt]=!0,!this[Ot]&&!this[Yt])return!1;const t=super.emit("close");return this.removeAllListeners("close"),t}if("error"===t){this[Pt]=i,super.emit(Vt,i);const t=!(this[ee]&&!this.listeners("error").length)&&super.emit("error",i);return this[Et](),t}if("resume"===t){const t=super.emit("resume");return this[Et](),t}if("finish"===t||"prefinish"===t){const e=super.emit(t);return this.removeAllListeners(t),e}const s=super.emit(t,...e);return this[Et](),s}[Qt](t){for(const e of this[$t])!1===e.dest.write(t)&&this.pause();const e=!this[se]&&super.emit("data",t);return this[Et](),e}[Jt](){return!this[Ot]&&(this[Ot]=!0,this.readable=!1,this[Xt]?(ne((()=>this[Zt]())),!0):this[Zt]())}[Zt](){if(this[It]){const t=this[It].end();if(t){for(const e of this[$t])e.dest.write(t);this[se]||super.emit("data",t)}}for(const t of this[$t])t.end();const t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){const t=Object.assign([],{dataLength:0});this[Gt]||(t.dataLength=0);const e=this.promise();return this.on("data",(e=>{t.push(e),this[Gt]||(t.dataLength+=e.length)})),await e,t}async concat(){if(this[Gt])throw new Error("cannot concat in objectMode");const t=await this.collect();return this[zt]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise(((t,e)=>{this.on(Yt,(()=>e(new Error("stream destroyed")))),this.on("error",(t=>e(t))),this.on("end",(()=>t()))}))}[Symbol.asyncIterator](){this[se]=!1;let t=!1;const e=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return e();const i=this.read();if(null!==i)return Promise.resolve({done:!1,value:i});if(this[At])return e();let s,n;const r=t=>{this.off("data",o),this.off("end",a),this.off(Yt,l),e(),n(t)},o=t=>{this.off("error",r),this.off("end",a),this.off(Yt,l),this.pause(),s({value:t,done:!!this[At]})},a=()=>{this.off("error",r),this.off("data",o),this.off(Yt,l),e(),s({done:!0,value:void 0})},l=()=>r(new Error("stream destroyed"));return new Promise(((t,e)=>{n=e,s=t,this.once(Yt,l),this.once("error",r),this.once("end",a),this.once("data",o)}))},throw:e,return:e,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[se]=!1;let t=!1;const e=()=>(this.pause(),this.off(Vt,e),this.off(Yt,e),this.off("end",e),t=!0,{done:!0,value:void 0});return this.once("end",e),this.once(Vt,e),this.once(Yt,e),{next:()=>{if(t)return e();const i=this.read();return null===i?e():{done:!1,value:i}},throw:e,return:e,[Symbol.iterator](){return this}}}destroy(t){return this[Yt]?(t?this.emit("error",t):this.emit(Yt),this):(this[Yt]=!0,this[se]=!0,this[Wt].length=0,this[Ut]=0,"function"!=typeof this.close||this[Lt]||this.close(),t?this.emit("error",t):this.emit(Yt),this)}static get isStream(){return St}}const ce=gt.realpathSync.native,he={lstatSync:gt.lstatSync,readdir:gt.readdir,readdirSync:gt.readdirSync,readlinkSync:gt.readlinkSync,realpathSync:ce,promises:{lstat:vt.lstat,readdir:vt.readdir,readlink:vt.readlink,realpath:vt.realpath}},ue=t=>t&&t!==he&&t!==bt?{...he,...t,promises:{...he.promises,...t.promises||{}}}:he,pe=/^\\\\\?\\([a-z]:)\\?$/i,de=/[\\\/]/,fe=10,me=15,ge=-16,ye=128,be=t=>t.isFile()?8:t.isDirectory()?4:t.isSymbolicLink()?fe:t.isCharacterDevice()?2:t.isBlockDevice()?6:t.isSocket()?12:t.isFIFO()?1:0,ve=new Map,we=t=>{const e=ve.get(t);if(e)return e;const i=t.normalize("NFKD");return ve.set(t,i),i},ke=new Map,_e=t=>{const e=ke.get(t);if(e)return e;const i=we(t.toLowerCase());return ke.set(t,i),i};class xe extends ft{constructor(){super({max:256})}}class Se extends ft{constructor(t=16384){super({maxSize:t,sizeCalculation:t=>t.length+1})}}const Te=Symbol("PathScurry setAsCwd");class Ce{name;root;roots;parent;nocase;isCWD=!1;#nt;#rt;get dev(){return this.#rt}#ot;get mode(){return this.#ot}#at;get nlink(){return this.#at}#lt;get uid(){return this.#lt}#ct;get gid(){return this.#ct}#ht;get rdev(){return this.#ht}#ut;get blksize(){return this.#ut}#pt;get ino(){return this.#pt}#_;get size(){return this.#_}#dt;get blocks(){return this.#dt}#ft;get atimeMs(){return this.#ft}#mt;get mtimeMs(){return this.#mt}#gt;get ctimeMs(){return this.#gt}#yt;get birthtimeMs(){return this.#yt}#bt;get atime(){return this.#bt}#vt;get mtime(){return this.#vt}#wt;get ctime(){return this.#wt}#kt;get birthtime(){return this.#kt}#_t;#xt;#St;#Tt;#Ct;#At;#Et;#Ot;#Mt;#Pt;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(t,e=0,i,s,n,r,o){this.name=t,this.#_t=n?_e(t):we(t),this.#Et=1023&e,this.nocase=n,this.roots=s,this.root=i||this,this.#Ot=r,this.#St=o.fullpath,this.#Ct=o.relative,this.#At=o.relativePosix,this.parent=o.parent,this.parent?this.#nt=this.parent.#nt:this.#nt=ue(o.fs)}depth(){return void 0!==this.#xt?this.#xt:this.parent?this.#xt=this.parent.depth()+1:this.#xt=0}childrenCache(){return this.#Ot}resolve(t){if(!t)return this;const e=this.getRootString(t),i=t.substring(e.length).split(this.splitSep);return e?this.getRoot(e).#Lt(i):this.#Lt(i)}#Lt(t){let e=this;for(const i of t)e=e.child(i);return e}children(){const t=this.#Ot.get(this);if(t)return t;const e=Object.assign([],{provisional:0});return this.#Ot.set(this,e),this.#Et&=-17,e}child(t,e){if(""===t||"."===t)return this;if(".."===t)return this.parent||this;const i=this.children(),s=this.nocase?_e(t):we(t);for(const t of i)if(t.#_t===s)return t;const n=this.parent?this.sep:"",r=this.#St?this.#St+n+t:void 0,o=this.newChild(t,0,{...e,parent:this,fullpath:r});return this.canReaddir()||(o.#Et|=ye),i.push(o),o}relative(){if(this.isCWD)return"";if(void 0!==this.#Ct)return this.#Ct;const t=this.name,e=this.parent;if(!e)return this.#Ct=this.name;const i=e.relative();return i+(i&&e.parent?this.sep:"")+t}relativePosix(){if("/"===this.sep)return this.relative();if(this.isCWD)return"";if(void 0!==this.#At)return this.#At;const t=this.name,e=this.parent;if(!e)return this.#At=this.fullpathPosix();const i=e.relativePosix();return i+(i&&e.parent?"/":"")+t}fullpath(){if(void 0!==this.#St)return this.#St;const t=this.name,e=this.parent;if(!e)return this.#St=this.name;const i=e.fullpath()+(e.parent?this.sep:"")+t;return this.#St=i}fullpathPosix(){if(void 0!==this.#Tt)return this.#Tt;if("/"===this.sep)return this.#Tt=this.fullpath();if(!this.parent){const t=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(t)?this.#Tt=`//?/${t}`:this.#Tt=t}const t=this.parent,e=t.fullpathPosix(),i=e+(e&&t.parent?"/":"")+this.name;return this.#Tt=i}isUnknown(){return 0==(this.#Et&me)}isType(t){return this[`is${t}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return 8==(this.#Et&me)}isDirectory(){return 4==(this.#Et&me)}isCharacterDevice(){return 2==(this.#Et&me)}isBlockDevice(){return 6==(this.#Et&me)}isFIFO(){return 1==(this.#Et&me)}isSocket(){return 12==(this.#Et&me)}isSymbolicLink(){return(this.#Et&fe)===fe}lstatCached(){return 32&this.#Et?this:void 0}readlinkCached(){return this.#Mt}realpathCached(){return this.#Pt}readdirCached(){const t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#Mt)return!0;if(!this.parent)return!1;const t=this.#Et&me;return!(0!==t&&t!==fe||256&this.#Et||this.#Et&ye)}calledReaddir(){return!!(16&this.#Et)}isENOENT(){return!!(this.#Et&ye)}isNamed(t){return this.nocase?this.#_t===_e(t):this.#_t===we(t)}async readlink(){const t=this.#Mt;if(t)return t;if(this.canReadlink()&&this.parent)try{const t=await this.#nt.promises.readlink(this.fullpath()),e=(await this.parent.realpath())?.resolve(t);if(e)return this.#Mt=e}catch(t){return void this.#Ft(t.code)}}readlinkSync(){const t=this.#Mt;if(t)return t;if(this.canReadlink()&&this.parent)try{const t=this.#nt.readlinkSync(this.fullpath()),e=this.parent.realpathSync()?.resolve(t);if(e)return this.#Mt=e}catch(t){return void this.#Ft(t.code)}}#jt(t){this.#Et|=16;for(let e=t.provisional;e<t.length;e++){const i=t[e];i&&i.#Dt()}}#Dt(){this.#Et&ye||(this.#Et=(this.#Et|ye)&ge,this.#zt())}#zt(){const t=this.children();t.provisional=0;for(const e of t)e.#Dt()}#It(){this.#Et|=512,this.#Rt()}#Rt(){if(64&this.#Et)return;let t=this.#Et;4==(t&me)&&(t&=ge),this.#Et=64|t,this.#zt()}#Bt(t=""){"ENOTDIR"===t||"EPERM"===t?this.#Rt():"ENOENT"===t?this.#Dt():this.children().provisional=0}#Nt(t=""){"ENOTDIR"===t?this.parent.#Rt():"ENOENT"===t&&this.#Dt()}#Ft(t=""){let e=this.#Et;e|=256,"ENOENT"===t&&(e|=ye),"EINVAL"!==t&&"UNKNOWN"!==t||(e&=ge),this.#Et=e,"ENOTDIR"===t&&this.parent&&this.parent.#Rt()}#Wt(t,e){return this.#$t(t,e)||this.#Ut(t,e)}#Ut(t,e){const i=be(t),s=this.newChild(t.name,i,{parent:this}),n=s.#Et&me;return 4!==n&&n!==fe&&0!==n&&(s.#Et|=64),e.unshift(s),e.provisional++,s}#$t(t,e){for(let i=e.provisional;i<e.length;i++){const s=e[i];if((this.nocase?_e(t.name):we(t.name))===s.#_t)return this.#qt(t,s,i,e)}}#qt(t,e,i,s){const n=e.name;return e.#Et=e.#Et&ge|be(t),n!==t.name&&(e.name=t.name),i!==s.provisional&&(i===s.length-1?s.pop():s.splice(i,1),s.unshift(e)),s.provisional++,e}async lstat(){if(0==(this.#Et&ye))try{return this.#Ht(await this.#nt.promises.lstat(this.fullpath())),this}catch(t){this.#Nt(t.code)}}lstatSync(){if(0==(this.#Et&ye))try{return this.#Ht(this.#nt.lstatSync(this.fullpath())),this}catch(t){this.#Nt(t.code)}}#Ht(t){const{atime:e,atimeMs:i,birthtime:s,birthtimeMs:n,blksize:r,blocks:o,ctime:a,ctimeMs:l,dev:c,gid:h,ino:u,mode:p,mtime:d,mtimeMs:f,nlink:m,rdev:g,size:y,uid:b}=t;this.#bt=e,this.#ft=i,this.#kt=s,this.#yt=n,this.#ut=r,this.#dt=o,this.#wt=a,this.#gt=l,this.#rt=c,this.#ct=h,this.#pt=u,this.#ot=p,this.#vt=d,this.#mt=f,this.#at=m,this.#ht=g,this.#_=y,this.#lt=b;const v=be(t);this.#Et=this.#Et&ge|v|32,0!==v&&4!==v&&v!==fe&&(this.#Et|=64)}#Gt=[];#Yt=!1;#Vt(t){this.#Yt=!1;const e=this.#Gt.slice();this.#Gt.length=0,e.forEach((e=>e(null,t)))}readdirCB(t,e=!1){if(!this.canReaddir())return void(e?t(null,[]):queueMicrotask((()=>t(null,[]))));const i=this.children();if(this.calledReaddir()){const s=i.slice(0,i.provisional);return void(e?t(null,s):queueMicrotask((()=>t(null,s))))}if(this.#Gt.push(t),this.#Yt)return;this.#Yt=!0;const s=this.fullpath();this.#nt.readdir(s,{withFileTypes:!0},((t,e)=>{if(t)this.#Bt(t.code),i.provisional=0;else{for(const t of e)this.#Wt(t,i);this.#jt(i)}this.#Vt(i.slice(0,i.provisional))}))}#Qt;async readdir(){if(!this.canReaddir())return[];const t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);const e=this.fullpath();if(this.#Qt)await this.#Qt;else{let i=()=>{};this.#Qt=new Promise((t=>i=t));try{for(const i of await this.#nt.promises.readdir(e,{withFileTypes:!0}))this.#Wt(i,t);this.#jt(t)}catch(e){this.#Bt(e.code),t.provisional=0}this.#Qt=void 0,i()}return t.slice(0,t.provisional)}readdirSync(){if(!this.canReaddir())return[];const t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);const e=this.fullpath();try{for(const i of this.#nt.readdirSync(e,{withFileTypes:!0}))this.#Wt(i,t);this.#jt(t)}catch(e){this.#Bt(e.code),t.provisional=0}return t.slice(0,t.provisional)}canReaddir(){if(704&this.#Et)return!1;const t=me&this.#Et;return 0===t||4===t||t===fe}shouldWalk(t,e){return 4==(4&this.#Et)&&!(704&this.#Et)&&!t.has(this)&&(!e||e(this))}async realpath(){if(this.#Pt)return this.#Pt;if(!(896&this.#Et))try{const t=await this.#nt.promises.realpath(this.fullpath());return this.#Pt=this.resolve(t)}catch(t){this.#It()}}realpathSync(){if(this.#Pt)return this.#Pt;if(!(896&this.#Et))try{const t=this.#nt.realpathSync(this.fullpath());return this.#Pt=this.resolve(t)}catch(t){this.#It()}}[Te](t){if(t===this)return;t.isCWD=!1,this.isCWD=!0;const e=new Set([]);let i=[],s=this;for(;s&&s.parent;)e.add(s),s.#Ct=i.join(this.sep),s.#At=i.join("/"),s=s.parent,i.push("..");for(s=t;s&&s.parent&&!e.has(s);)s.#Ct=void 0,s.#At=void 0,s=s.parent}}class Ae extends Ce{sep="\\";splitSep=de;constructor(t,e=0,i,s,n,r,o){super(t,e,i,s,n,r,o)}newChild(t,e=0,i={}){return new Ae(t,e,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(t){return mt.win32.parse(t).root}getRoot(t){if((t=(t=>t.replace(/\//g,"\\").replace(pe,"$1\\"))(t.toUpperCase()))===this.root.name)return this.root;for(const[e,i]of Object.entries(this.roots))if(this.sameRoot(t,e))return this.roots[t]=i;return this.roots[t]=new Me(t,this).root}sameRoot(t,e=this.root.name){return(t=t.toUpperCase().replace(/\//g,"\\").replace(pe,"$1\\"))===e}}class Ee extends Ce{splitSep="/";sep="/";constructor(t,e=0,i,s,n,r,o){super(t,e,i,s,n,r,o)}getRootString(t){return t.startsWith("/")?"/":""}getRoot(t){return this.root}newChild(t,e=0,i={}){return new Ee(t,e,this.root,this.roots,this.nocase,this.childrenCache(),i)}}class Oe{root;rootPath;roots;cwd;#Jt;#Zt;#Ot;nocase;#nt;constructor(t=process.cwd(),e,i,{nocase:s,childrenCacheSize:n=16384,fs:r=he}={}){this.#nt=ue(r),(t instanceof URL||t.startsWith("file://"))&&(t=(0,st.fileURLToPath)(t));const o=e.resolve(t);this.roots=Object.create(null),this.rootPath=this.parseRootPath(o),this.#Jt=new xe,this.#Zt=new xe,this.#Ot=new Se(n);const a=o.substring(this.rootPath.length).split(i);if(1!==a.length||a[0]||a.pop(),void 0===s)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=s,this.root=this.newRoot(this.#nt),this.roots[this.rootPath]=this.root;let l=this.root,c=a.length-1;const h=e.sep;let u=this.rootPath,p=!1;for(const t of a){const e=c--;l=l.child(t,{relative:new Array(e).fill("..").join(h),relativePosix:new Array(e).fill("..").join("/"),fullpath:u+=(p?"":h)+t}),p=!0}this.cwd=l}depth(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.depth()}childrenCache(){return this.#Ot}resolve(...t){let e="";for(let i=t.length-1;i>=0;i--){const s=t[i];if(s&&"."!==s&&(e=e?`${s}/${e}`:s,this.isAbsolute(s)))break}const i=this.#Jt.get(e);if(void 0!==i)return i;const s=this.cwd.resolve(e).fullpath();return this.#Jt.set(e,s),s}resolvePosix(...t){let e="";for(let i=t.length-1;i>=0;i--){const s=t[i];if(s&&"."!==s&&(e=e?`${s}/${e}`:s,this.isAbsolute(s)))break}const i=this.#Zt.get(e);if(void 0!==i)return i;const s=this.cwd.resolve(e).fullpathPosix();return this.#Zt.set(e,s),s}relative(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.relative()}relativePosix(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.relativePosix()}basename(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.name}dirname(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),(t.parent||t).fullpath()}async readdir(t=this.cwd,e={withFileTypes:!0}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t,t=this.cwd);const{withFileTypes:i}=e;if(t.canReaddir()){const e=await t.readdir();return i?e:e.map((t=>t.name))}return[]}readdirSync(t=this.cwd,e={withFileTypes:!0}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t,t=this.cwd);const{withFileTypes:i=!0}=e;return t.canReaddir()?i?t.readdirSync():t.readdirSync().map((t=>t.name)):[]}async lstat(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.lstat()}lstatSync(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.lstatSync()}async readlink(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t.withFileTypes,t=this.cwd);const i=await t.readlink();return e?i:i?.fullpath()}readlinkSync(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t.withFileTypes,t=this.cwd);const i=t.readlinkSync();return e?i:i?.fullpath()}async realpath(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t.withFileTypes,t=this.cwd);const i=await t.realpath();return e?i:i?.fullpath()}realpathSync(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t.withFileTypes,t=this.cwd);const i=t.realpathSync();return e?i:i?.fullpath()}async walk(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t,t=this.cwd);const{withFileTypes:i=!0,follow:s=!1,filter:n,walkFilter:r}=e,o=[];n&&!n(t)||o.push(i?t:t.fullpath());const a=new Set,l=(t,e)=>{a.add(t),t.readdirCB(((t,c)=>{if(t)return e(t);let h=c.length;if(!h)return e();const u=()=>{0==--h&&e()};for(const t of c)n&&!n(t)||o.push(i?t:t.fullpath()),s&&t.isSymbolicLink()?t.realpath().then((t=>t?.isUnknown()?t.lstat():t)).then((t=>t?.shouldWalk(a,r)?l(t,u):u())):t.shouldWalk(a,r)?l(t,u):u()}),!0)},c=t;return new Promise(((t,e)=>{l(c,(i=>{if(i)return e(i);t(o)}))}))}walkSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t,t=this.cwd);const{withFileTypes:i=!0,follow:s=!1,filter:n,walkFilter:r}=e,o=[];n&&!n(t)||o.push(i?t:t.fullpath());const a=new Set([t]);for(const t of a){const e=t.readdirSync();for(const t of e){n&&!n(t)||o.push(i?t:t.fullpath());let e=t;if(t.isSymbolicLink()){if(!s||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(a,r)&&a.add(e)}}return o}[Symbol.asyncIterator](){return this.iterate()}iterate(t=this.cwd,e={}){return"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t,t=this.cwd),this.stream(t,e)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t,t=this.cwd);const{withFileTypes:i=!0,follow:s=!1,filter:n,walkFilter:r}=e;n&&!n(t)||(yield i?t:t.fullpath());const o=new Set([t]);for(const t of o){const e=t.readdirSync();for(const t of e){n&&!n(t)||(yield i?t:t.fullpath());let e=t;if(t.isSymbolicLink()){if(!s||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(o,r)&&o.add(e)}}}stream(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t,t=this.cwd);const{withFileTypes:i=!0,follow:s=!1,filter:n,walkFilter:r}=e,o=new le({objectMode:!0});n&&!n(t)||o.write(i?t:t.fullpath());const a=new Set,l=[t];let c=0;const h=()=>{let t=!1;for(;!t;){const e=l.shift();if(!e)return void(0===c&&o.end());c++,a.add(e);const u=(e,d,f=!1)=>{if(e)return o.emit("error",e);if(s&&!f){const t=[];for(const e of d)e.isSymbolicLink()&&t.push(e.realpath().then((t=>t?.isUnknown()?t.lstat():t)));if(t.length)return void Promise.all(t).then((()=>u(null,d,!0)))}for(const e of d)!e||n&&!n(e)||o.write(i?e:e.fullpath())||(t=!0);c--;for(const t of d){const e=t.realpathCached()||t;e.shouldWalk(a,r)&&l.push(e)}t&&!o.flowing?o.once("drain",h):p||h()};let p=!0;e.readdirCB(u,!0),p=!1}};return h(),o}streamSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Ce||(e=t,t=this.cwd);const{withFileTypes:i=!0,follow:s=!1,filter:n,walkFilter:r}=e,o=new le({objectMode:!0}),a=new Set;n&&!n(t)||o.write(i?t:t.fullpath());const l=[t];let c=0;const h=()=>{let t=!1;for(;!t;){const e=l.shift();if(!e)return void(0===c&&o.end());c++,a.add(e);const h=e.readdirSync();for(const e of h)n&&!n(e)||o.write(i?e:e.fullpath())||(t=!0);c--;for(const t of h){let e=t;if(t.isSymbolicLink()){if(!s||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(a,r)&&l.push(e)}}t&&!o.flowing&&o.once("drain",h)};return h(),o}chdir(t=this.cwd){const e=this.cwd;this.cwd="string"==typeof t?this.cwd.resolve(t):t,this.cwd[Te](e)}}class Me extends Oe{sep="\\";constructor(t=process.cwd(),e={}){const{nocase:i=!0}=e;super(t,mt.win32,"\\",{...e,nocase:i}),this.nocase=i;for(let t=this.cwd;t;t=t.parent)t.nocase=this.nocase}parseRootPath(t){return mt.win32.parse(t).root.toUpperCase()}newRoot(t){return new Ae(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")||t.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(t)}}class Pe extends Oe{sep="/";constructor(t=process.cwd(),e={}){const{nocase:i=!1}=e;super(t,mt.posix,"/",{...e,nocase:i}),this.nocase=i}parseRootPath(t){return"/"}newRoot(t){return new Ee(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}}class Le extends Pe{constructor(t=process.cwd(),e={}){const{nocase:i=!0}=e;super(t,{...e,nocase:i})}}process.platform;const Fe="win32"===process.platform?Me:"darwin"===process.platform?Le:Pe;class je{#Xt;#Kt;#te;length;#ee;#ie;#se;#ne;#re;#oe;#ae=!0;constructor(t,e,i,s){if(!(t.length>=1))throw new TypeError("empty pattern list");if(!(e.length>=1))throw new TypeError("empty glob list");if(e.length!==t.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=t.length,i<0||i>=this.length)throw new TypeError("index out of range");if(this.#Xt=t,this.#Kt=e,this.#te=i,this.#ee=s,0===this.#te)if(this.isUNC()){const[t,e,i,s,...n]=this.#Xt,[r,o,a,l,...c]=this.#Kt;""===n[0]&&(n.shift(),c.shift());const h=[t,e,i,s,""].join("/"),u=[r,o,a,l,""].join("/");this.#Xt=[h,...n],this.#Kt=[u,...c],this.length=this.#Xt.length}else if(this.isDrive()||this.isAbsolute()){const[t,...e]=this.#Xt,[i,...s]=this.#Kt;""===e[0]&&(e.shift(),s.shift());const n=t+"/",r=i+"/";this.#Xt=[n,...e],this.#Kt=[r,...s],this.length=this.#Xt.length}}pattern(){return this.#Xt[this.#te]}isString(){return"string"==typeof this.#Xt[this.#te]}isGlobstar(){return this.#Xt[this.#te]===X}isRegExp(){return this.#Xt[this.#te]instanceof RegExp}globString(){return this.#se=this.#se||(0===this.#te?this.isAbsolute()?this.#Kt[0]+this.#Kt.slice(1).join("/"):this.#Kt.join("/"):this.#Kt.slice(this.#te).join("/"))}hasMore(){return this.length>this.#te+1}rest(){return void 0!==this.#ie?this.#ie:this.hasMore()?(this.#ie=new je(this.#Xt,this.#Kt,this.#te+1,this.#ee),this.#ie.#oe=this.#oe,this.#ie.#re=this.#re,this.#ie.#ne=this.#ne,this.#ie):this.#ie=null}isUNC(){const t=this.#Xt;return void 0!==this.#re?this.#re:this.#re="win32"===this.#ee&&0===this.#te&&""===t[0]&&""===t[1]&&"string"==typeof t[2]&&!!t[2]&&"string"==typeof t[3]&&!!t[3]}isDrive(){const t=this.#Xt;return void 0!==this.#ne?this.#ne:this.#ne="win32"===this.#ee&&0===this.#te&&this.length>1&&"string"==typeof t[0]&&/^[a-z]:$/i.test(t[0])}isAbsolute(){const t=this.#Xt;return void 0!==this.#oe?this.#oe:this.#oe=""===t[0]&&t.length>1||this.isDrive()||this.isUNC()}root(){const t=this.#Xt[0];return"string"==typeof t&&this.isAbsolute()&&0===this.#te?t:""}checkFollowGlobstar(){return!(0===this.#te||!this.isGlobstar()||!this.#ae)}markFollowGlobstar(){return!(0===this.#te||!this.isGlobstar()||!this.#ae||(this.#ae=!1,0))}}const De="object"==typeof process&&process?process:{stdout:null,stderr:null},ze=t=>!!t&&"object"==typeof t&&(t instanceof wi||t instanceof kt||Ie(t)||Re(t)),Ie=t=>!!t&&"object"==typeof t&&t instanceof wt.EventEmitter&&"function"==typeof t.pipe&&t.pipe!==kt.Writable.prototype.pipe,Re=t=>!!t&&"object"==typeof t&&t instanceof wt.EventEmitter&&"function"==typeof t.write&&"function"==typeof t.end,Be=Symbol("EOF"),Ne=Symbol("maybeEmitEnd"),We=Symbol("emittedEnd"),$e=Symbol("emittingEnd"),Ue=Symbol("emittedError"),qe=Symbol("closed"),He=Symbol("read"),Ge=Symbol("flush"),Ye=Symbol("flushChunk"),Ve=Symbol("encoding"),Qe=Symbol("decoder"),Je=Symbol("flowing"),Ze=Symbol("paused"),Xe=Symbol("resume"),Ke=Symbol("buffer"),ti=Symbol("pipes"),ei=Symbol("bufferLength"),ii=Symbol("bufferPush"),si=Symbol("bufferShift"),ni=Symbol("objectMode"),ri=Symbol("destroyed"),oi=Symbol("error"),ai=Symbol("emitData"),li=Symbol("emitEnd"),ci=Symbol("emitEnd2"),hi=Symbol("async"),ui=Symbol("abort"),pi=Symbol("aborted"),di=Symbol("signal"),fi=Symbol("dataListeners"),mi=Symbol("discarded"),gi=t=>Promise.resolve().then(t),yi=t=>t();class bi{src;dest;opts;ondrain;constructor(t,e,i){this.src=t,this.dest=e,this.opts=i,this.ondrain=()=>t[Xe](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class vi extends bi{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,e,i){super(t,e,i),this.proxyErrors=t=>e.emit("error",t),t.on("error",this.proxyErrors)}}class wi extends wt.EventEmitter{[Je]=!1;[Ze]=!1;[ti]=[];[Ke]=[];[ni];[Ve];[hi];[Qe];[Be]=!1;[We]=!1;[$e]=!1;[qe]=!1;[Ue]=null;[ei]=0;[ri]=!1;[di];[pi]=!1;[fi]=0;[mi]=!1;writable=!0;readable=!0;constructor(...t){const e=t[0]||{};if(super(),e.objectMode&&"string"==typeof e.encoding)throw new TypeError("Encoding and objectMode may not be used together");var i;e.objectMode?(this[ni]=!0,this[Ve]=null):!(i=e).objectMode&&i.encoding&&"buffer"!==i.encoding?(this[Ve]=e.encoding,this[ni]=!1):(this[ni]=!1,this[Ve]=null),this[hi]=!!e.async,this[Qe]=this[Ve]?new _t.StringDecoder(this[Ve]):null,e&&!0===e.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[Ke]}),e&&!0===e.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[ti]});const{signal:s}=e;s&&(this[di]=s,s.aborted?this[ui]():s.addEventListener("abort",(()=>this[ui]())))}get bufferLength(){return this[ei]}get encoding(){return this[Ve]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[ni]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[hi]}set async(t){this[hi]=this[hi]||!!t}[ui](){this[pi]=!0,this.emit("abort",this[di]?.reason),this.destroy(this[di]?.reason)}get aborted(){return this[pi]}set aborted(t){}write(t,e,i){if(this[pi])return!1;if(this[Be])throw new Error("write after end");if(this[ri])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof e&&(i=e,e="utf8"),e||(e="utf8");const s=this[hi]?gi:yi;if(!this[ni]&&!Buffer.isBuffer(t))if(n=t,!Buffer.isBuffer(n)&&ArrayBuffer.isView(n))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if((t=>t instanceof ArrayBuffer||!!t&&"object"==typeof t&&t.constructor&&"ArrayBuffer"===t.constructor.name&&t.byteLength>=0)(t))t=Buffer.from(t);else if("string"!=typeof t)throw new Error("Non-contiguous data written to non-objectMode stream");var n;return this[ni]?(this[Je]&&0!==this[ei]&&this[Ge](!0),this[Je]?this.emit("data",t):this[ii](t),0!==this[ei]&&this.emit("readable"),i&&s(i),this[Je]):t.length?("string"!=typeof t||e===this[Ve]&&!this[Qe]?.lastNeed||(t=Buffer.from(t,e)),Buffer.isBuffer(t)&&this[Ve]&&(t=this[Qe].write(t)),this[Je]&&0!==this[ei]&&this[Ge](!0),this[Je]?this.emit("data",t):this[ii](t),0!==this[ei]&&this.emit("readable"),i&&s(i),this[Je]):(0!==this[ei]&&this.emit("readable"),i&&s(i),this[Je])}read(t){if(this[ri])return null;if(this[mi]=!1,0===this[ei]||0===t||t&&t>this[ei])return this[Ne](),null;this[ni]&&(t=null),this[Ke].length>1&&!this[ni]&&(this[Ke]=[this[Ve]?this[Ke].join(""):Buffer.concat(this[Ke],this[ei])]);const e=this[He](t||null,this[Ke][0]);return this[Ne](),e}[He](t,e){if(this[ni])this[si]();else{const i=e;t===i.length||null===t?this[si]():"string"==typeof i?(this[Ke][0]=i.slice(t),e=i.slice(0,t),this[ei]-=t):(this[Ke][0]=i.subarray(t),e=i.subarray(0,t),this[ei]-=t)}return this.emit("data",e),this[Ke].length||this[Be]||this.emit("drain"),e}end(t,e,i){return"function"==typeof t&&(i=t,t=void 0),"function"==typeof e&&(i=e,e="utf8"),void 0!==t&&this.write(t,e),i&&this.once("end",i),this[Be]=!0,this.writable=!1,!this[Je]&&this[Ze]||this[Ne](),this}[Xe](){this[ri]||(this[fi]||this[ti].length||(this[mi]=!0),this[Ze]=!1,this[Je]=!0,this.emit("resume"),this[Ke].length?this[Ge]():this[Be]?this[Ne]():this.emit("drain"))}resume(){return this[Xe]()}pause(){this[Je]=!1,this[Ze]=!0,this[mi]=!1}get destroyed(){return this[ri]}get flowing(){return this[Je]}get paused(){return this[Ze]}[ii](t){this[ni]?this[ei]+=1:this[ei]+=t.length,this[Ke].push(t)}[si](){return this[ni]?this[ei]-=1:this[ei]-=this[Ke][0].length,this[Ke].shift()}[Ge](t=!1){do{}while(this[Ye](this[si]())&&this[Ke].length);t||this[Ke].length||this[Be]||this.emit("drain")}[Ye](t){return this.emit("data",t),this[Je]}pipe(t,e){if(this[ri])return t;this[mi]=!1;const i=this[We];return e=e||{},t===De.stdout||t===De.stderr?e.end=!1:e.end=!1!==e.end,e.proxyErrors=!!e.proxyErrors,i?e.end&&t.end():(this[ti].push(e.proxyErrors?new vi(this,t,e):new bi(this,t,e)),this[hi]?gi((()=>this[Xe]())):this[Xe]()),t}unpipe(t){const e=this[ti].find((e=>e.dest===t));e&&(1===this[ti].length?(this[Je]&&0===this[fi]&&(this[Je]=!1),this[ti]=[]):this[ti].splice(this[ti].indexOf(e),1),e.unpipe())}addListener(t,e){return this.on(t,e)}on(t,e){const i=super.on(t,e);if("data"===t)this[mi]=!1,this[fi]++,this[ti].length||this[Je]||this[Xe]();else if("readable"===t&&0!==this[ei])super.emit("readable");else if((t=>"end"===t||"finish"===t||"prefinish"===t)(t)&&this[We])super.emit(t),this.removeAllListeners(t);else if("error"===t&&this[Ue]){const t=e;this[hi]?gi((()=>t.call(this,this[Ue]))):t.call(this,this[Ue])}return i}removeListener(t,e){return this.off(t,e)}off(t,e){const i=super.off(t,e);return"data"===t&&(this[fi]=this.listeners("data").length,0!==this[fi]||this[mi]||this[ti].length||(this[Je]=!1)),i}removeAllListeners(t){const e=super.removeAllListeners(t);return"data"!==t&&void 0!==t||(this[fi]=0,this[mi]||this[ti].length||(this[Je]=!1)),e}get emittedEnd(){return this[We]}[Ne](){this[$e]||this[We]||this[ri]||0!==this[Ke].length||!this[Be]||(this[$e]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[qe]&&this.emit("close"),this[$e]=!1)}emit(t,...e){const i=e[0];if("error"!==t&&"close"!==t&&t!==ri&&this[ri])return!1;if("data"===t)return!(!this[ni]&&!i)&&(this[hi]?(gi((()=>this[ai](i))),!0):this[ai](i));if("end"===t)return this[li]();if("close"===t){if(this[qe]=!0,!this[We]&&!this[ri])return!1;const t=super.emit("close");return this.removeAllListeners("close"),t}if("error"===t){this[Ue]=i,super.emit(oi,i);const t=!(this[di]&&!this.listeners("error").length)&&super.emit("error",i);return this[Ne](),t}if("resume"===t){const t=super.emit("resume");return this[Ne](),t}if("finish"===t||"prefinish"===t){const e=super.emit(t);return this.removeAllListeners(t),e}const s=super.emit(t,...e);return this[Ne](),s}[ai](t){for(const e of this[ti])!1===e.dest.write(t)&&this.pause();const e=!this[mi]&&super.emit("data",t);return this[Ne](),e}[li](){return!this[We]&&(this[We]=!0,this.readable=!1,this[hi]?(gi((()=>this[ci]())),!0):this[ci]())}[ci](){if(this[Qe]){const t=this[Qe].end();if(t){for(const e of this[ti])e.dest.write(t);this[mi]||super.emit("data",t)}}for(const t of this[ti])t.end();const t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){const t=Object.assign([],{dataLength:0});this[ni]||(t.dataLength=0);const e=this.promise();return this.on("data",(e=>{t.push(e),this[ni]||(t.dataLength+=e.length)})),await e,t}async concat(){if(this[ni])throw new Error("cannot concat in objectMode");const t=await this.collect();return this[Ve]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise(((t,e)=>{this.on(ri,(()=>e(new Error("stream destroyed")))),this.on("error",(t=>e(t))),this.on("end",(()=>t()))}))}[Symbol.asyncIterator](){this[mi]=!1;let t=!1;const e=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return e();const i=this.read();if(null!==i)return Promise.resolve({done:!1,value:i});if(this[Be])return e();let s,n;const r=t=>{this.off("data",o),this.off("end",a),this.off(ri,l),e(),n(t)},o=t=>{this.off("error",r),this.off("end",a),this.off(ri,l),this.pause(),s({value:t,done:!!this[Be]})},a=()=>{this.off("error",r),this.off("data",o),this.off(ri,l),e(),s({done:!0,value:void 0})},l=()=>r(new Error("stream destroyed"));return new Promise(((t,e)=>{n=e,s=t,this.once(ri,l),this.once("error",r),this.once("end",a),this.once("data",o)}))},throw:e,return:e,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[mi]=!1;let t=!1;const e=()=>(this.pause(),this.off(oi,e),this.off(ri,e),this.off("end",e),t=!0,{done:!0,value:void 0});return this.once("end",e),this.once(oi,e),this.once(ri,e),{next:()=>{if(t)return e();const i=this.read();return null===i?e():{done:!1,value:i}},throw:e,return:e,[Symbol.iterator](){return this}}}destroy(t){return this[ri]?(t?this.emit("error",t):this.emit(ri),this):(this[ri]=!0,this[mi]=!0,this[Ke].length=0,this[ei]=0,"function"!=typeof this.close||this[qe]||this.close(),t?this.emit("error",t):this.emit(ri),this)}static get isStream(){return ze}}const ki="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";class _i{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(t,{nobrace:e,nocase:i,noext:s,noglobstar:n,platform:r=ki}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=r,this.mmopts={dot:!0,nobrace:e,nocase:i,noext:s,noglobstar:n,optimizationLevel:2,platform:r,nocomment:!0,nonegate:!0};for(const e of t)this.add(e)}add(t){const e=new it(t,this.mmopts);for(let t=0;t<e.set.length;t++){const i=e.set[t],s=e.globParts[t];if(!i||!s)throw new Error("invalid pattern object");for(;"."===i[0]&&"."===s[0];)i.shift(),s.shift();const n=new je(i,s,0,this.platform),r=new it(n.globString(),this.mmopts),o="**"===s[s.length-1],a=n.isAbsolute();a?this.absolute.push(r):this.relative.push(r),o&&(a?this.absoluteChildren.push(r):this.relativeChildren.push(r))}}ignored(t){const e=t.fullpath(),i=`${e}/`,s=t.relative()||".",n=`${s}/`;for(const t of this.relative)if(t.match(s)||t.match(n))return!0;for(const t of this.absolute)if(t.match(e)||t.match(i))return!0;return!1}childrenIgnored(t){const e=t.fullpath()+"/",i=(t.relative()||".")+"/";for(const t of this.relativeChildren)if(t.match(i))return!0;for(const t of this.absoluteChildren)if(t.match(e))return!0;return!1}}class xi{store;constructor(t=new Map){this.store=t}copy(){return new xi(new Map(this.store))}hasWalked(t,e){return this.store.get(t.fullpath())?.has(e.globString())}storeWalked(t,e){const i=t.fullpath(),s=this.store.get(i);s?s.add(e.globString()):this.store.set(i,new Set([e.globString()]))}}class Si{store=new Map;add(t,e,i){const s=(e?2:0)|(i?1:0),n=this.store.get(t);this.store.set(t,void 0===n?s:s&n)}entries(){return[...this.store.entries()].map((([t,e])=>[t,!!(2&e),!!(1&e)]))}}class Ti{store=new Map;add(t,e){if(!t.canReaddir())return;const i=this.store.get(t);i?i.find((t=>t.globString()===e.globString()))||i.push(e):this.store.set(t,[e])}get(t){const e=this.store.get(t);if(!e)throw new Error("attempting to walk unknown path");return e}entries(){return this.keys().map((t=>[t,this.store.get(t)]))}keys(){return[...this.store.keys()].filter((t=>t.canReaddir()))}}class Ci{hasWalkedCache;matches=new Si;subwalks=new Ti;patterns;follow;dot;opts;constructor(t,e){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=e?e.copy():new xi}processPatterns(t,e){this.patterns=e;const i=e.map((e=>[t,e]));for(let[t,e]of i){this.hasWalkedCache.storeWalked(t,e);const i=e.root(),s=e.isAbsolute()&&!1!==this.opts.absolute;if(i){t=t.resolve("/"===i&&void 0!==this.opts.root?this.opts.root:i);const s=e.rest();if(!s){this.matches.add(t,!0,!1);continue}e=s}if(t.isENOENT())continue;let n,r,o=!1;for(;"string"==typeof(n=e.pattern())&&(r=e.rest());){const i=t.resolve(n);t=i,e=r,o=!0}if(n=e.pattern(),r=e.rest(),o){if(this.hasWalkedCache.hasWalked(t,e))continue;this.hasWalkedCache.storeWalked(t,e)}if("string"!=typeof n)if(n===X){(!t.isSymbolicLink()||this.follow||e.checkFollowGlobstar())&&this.subwalks.add(t,e);const i=r?.pattern(),n=r?.rest();if(r&&(""!==i&&"."!==i||n)){if(".."===i){const e=t.parent||t;n?this.hasWalkedCache.hasWalked(e,n)||this.subwalks.add(e,n):this.matches.add(e,s,!0)}}else this.matches.add(t,s,""===i||"."===i)}else n instanceof RegExp&&this.subwalks.add(t,e);else{const e=".."===n||""===n||"."===n;this.matches.add(t.resolve(n),s,e)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new Ci(this.opts,this.hasWalkedCache)}filterEntries(t,e){const i=this.subwalks.get(t),s=this.child();for(const t of e)for(const e of i){const i=e.isAbsolute(),n=e.pattern(),r=e.rest();n===X?s.testGlobstar(t,e,r,i):n instanceof RegExp?s.testRegExp(t,n,r,i):s.testString(t,n,r,i)}return s}testGlobstar(t,e,i,s){if(!this.dot&&t.name.startsWith(".")||(e.hasMore()||this.matches.add(t,s,!1),t.canReaddir()&&(this.follow||!t.isSymbolicLink()?this.subwalks.add(t,e):t.isSymbolicLink()&&(i&&e.checkFollowGlobstar()?this.subwalks.add(t,i):e.markFollowGlobstar()&&this.subwalks.add(t,e)))),i){const e=i.pattern();if("string"==typeof e&&".."!==e&&""!==e&&"."!==e)this.testString(t,e,i.rest(),s);else if(".."===e){const e=t.parent||t;this.subwalks.add(e,i)}else e instanceof RegExp&&this.testRegExp(t,e,i.rest(),s)}}testRegExp(t,e,i,s){e.test(t.name)&&(i?this.subwalks.add(t,i):this.matches.add(t,s,!1))}testString(t,e,i,s){t.isNamed(e)&&(i?this.subwalks.add(t,i):this.matches.add(t,s,!1))}}class Ai{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#le=[];#ce;#he;signal;maxDepth;includeChildMatches;constructor(t,e,i){if(this.patterns=t,this.path=e,this.opts=i,this.#he=i.posix||"win32"!==i.platform?"/":"\\",this.includeChildMatches=!1!==i.includeChildMatches,(i.ignore||!this.includeChildMatches)&&(this.#ce=((t,e)=>"string"==typeof t?new _i([t],e):Array.isArray(t)?new _i(t,e):t)(i.ignore??[],i),!this.includeChildMatches&&"function"!=typeof this.#ce.add))throw new Error("cannot ignore child matches, ignore lacks add() method.");this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",(()=>{this.#le.length=0})))}#ue(t){return this.seen.has(t)||!!this.#ce?.ignored?.(t)}#pe(t){return!!this.#ce?.childrenIgnored?.(t)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;let t;for(this.paused=!1;!this.paused&&(t=this.#le.shift());)t()}onResume(t){this.signal?.aborted||(this.paused?this.#le.push(t):t())}async matchCheck(t,e){if(e&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=t.realpathCached()||await t.realpath(),!i)return;t=i}const s=t.isUnknown()||this.opts.stat?await t.lstat():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){const t=await s.realpath();t&&(t.isUnknown()||this.opts.stat)&&await t.lstat()}return this.matchCheckTest(s,e)}matchCheckTest(t,e){return!t||!(this.maxDepth===1/0||t.depth()<=this.maxDepth)||e&&!t.canReaddir()||this.opts.nodir&&t.isDirectory()||this.opts.nodir&&this.opts.follow&&t.isSymbolicLink()&&t.realpathCached()?.isDirectory()||this.#ue(t)?void 0:t}matchCheckSync(t,e){if(e&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=t.realpathCached()||t.realpathSync(),!i)return;t=i}const s=t.isUnknown()||this.opts.stat?t.lstatSync():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){const t=s.realpathSync();t&&(t?.isUnknown()||this.opts.stat)&&t.lstatSync()}return this.matchCheckTest(s,e)}matchFinish(t,e){if(this.#ue(t))return;if(!this.includeChildMatches&&this.#ce?.add){const e=`${t.relativePosix()}/**`;this.#ce.add(e)}const i=void 0===this.opts.absolute?e:this.opts.absolute;this.seen.add(t);const s=this.opts.mark&&t.isDirectory()?this.#he:"";if(this.opts.withFileTypes)this.matchEmit(t);else if(i){const e=this.opts.posix?t.fullpathPosix():t.fullpath();this.matchEmit(e+s)}else{const e=this.opts.posix?t.relativePosix():t.relative(),i=this.opts.dotRelative&&!e.startsWith(".."+this.#he)?"."+this.#he:"";this.matchEmit(e?i+e+s:"."+s)}}async match(t,e,i){const s=await this.matchCheck(t,i);s&&this.matchFinish(s,e)}matchSync(t,e,i){const s=this.matchCheckSync(t,i);s&&this.matchFinish(s,e)}walkCB(t,e,i){this.signal?.aborted&&i(),this.walkCB2(t,e,new Ci(this.opts),i)}walkCB2(t,e,i,s){if(this.#pe(t))return s();if(this.signal?.aborted&&s(),this.paused)return void this.onResume((()=>this.walkCB2(t,e,i,s)));i.processPatterns(t,e);let n=1;const r=()=>{0==--n&&s()};for(const[t,e,s]of i.matches.entries())this.#ue(t)||(n++,this.match(t,e,s).then((()=>r())));for(const t of i.subwalkTargets()){if(this.maxDepth!==1/0&&t.depth()>=this.maxDepth)continue;n++;const e=t.readdirCached();t.calledReaddir()?this.walkCB3(t,e,i,r):t.readdirCB(((e,s)=>this.walkCB3(t,s,i,r)),!0)}r()}walkCB3(t,e,i,s){i=i.filterEntries(t,e);let n=1;const r=()=>{0==--n&&s()};for(const[t,e,s]of i.matches.entries())this.#ue(t)||(n++,this.match(t,e,s).then((()=>r())));for(const[t,e]of i.subwalks.entries())n++,this.walkCB2(t,e,i.child(),r);r()}walkCBSync(t,e,i){this.signal?.aborted&&i(),this.walkCB2Sync(t,e,new Ci(this.opts),i)}walkCB2Sync(t,e,i,s){if(this.#pe(t))return s();if(this.signal?.aborted&&s(),this.paused)return void this.onResume((()=>this.walkCB2Sync(t,e,i,s)));i.processPatterns(t,e);let n=1;const r=()=>{0==--n&&s()};for(const[t,e,s]of i.matches.entries())this.#ue(t)||this.matchSync(t,e,s);for(const t of i.subwalkTargets()){if(this.maxDepth!==1/0&&t.depth()>=this.maxDepth)continue;n++;const e=t.readdirSync();this.walkCB3Sync(t,e,i,r)}r()}walkCB3Sync(t,e,i,s){i=i.filterEntries(t,e);let n=1;const r=()=>{0==--n&&s()};for(const[t,e,s]of i.matches.entries())this.#ue(t)||this.matchSync(t,e,s);for(const[t,e]of i.subwalks.entries())n++,this.walkCB2Sync(t,e,i.child(),r);r()}}class Ei extends Ai{matches=new Set;constructor(t,e,i){super(t,e,i)}matchEmit(t){this.matches.add(t)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise(((t,e)=>{this.walkCB(this.path,this.patterns,(()=>{this.signal?.aborted?e(this.signal.reason):t(this.matches)}))})),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason})),this.matches}}class Oi extends Ai{results;constructor(t,e,i){super(t,e,i),this.results=new wi({signal:this.signal,objectMode:!0}),this.results.on("drain",(()=>this.resume())),this.results.on("resume",(()=>this.resume()))}matchEmit(t){this.results.write(t),this.results.flowing||this.pause()}stream(){const t=this.path;return t.isUnknown()?t.lstat().then((()=>{this.walkCB(t,this.patterns,(()=>this.results.end()))})):this.walkCB(t,this.patterns,(()=>this.results.end())),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>this.results.end())),this.results}}const Mi="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";class Pi{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(t,e){if(!e)throw new TypeError("glob options required");if(this.withFileTypes=!!e.withFileTypes,this.signal=e.signal,this.follow=!!e.follow,this.dot=!!e.dot,this.dotRelative=!!e.dotRelative,this.nodir=!!e.nodir,this.mark=!!e.mark,e.cwd?(e.cwd instanceof URL||e.cwd.startsWith("file://"))&&(e.cwd=(0,st.fileURLToPath)(e.cwd)):this.cwd="",this.cwd=e.cwd||"",this.root=e.root,this.magicalBraces=!!e.magicalBraces,this.nobrace=!!e.nobrace,this.noext=!!e.noext,this.realpath=!!e.realpath,this.absolute=e.absolute,this.includeChildMatches=!1!==e.includeChildMatches,this.noglobstar=!!e.noglobstar,this.matchBase=!!e.matchBase,this.maxDepth="number"==typeof e.maxDepth?e.maxDepth:1/0,this.stat=!!e.stat,this.ignore=e.ignore,this.withFileTypes&&void 0!==this.absolute)throw new Error("cannot set absolute and withFileTypes:true");if("string"==typeof t&&(t=[t]),this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(t=t.map((t=>t.replace(/\\/g,"/")))),this.matchBase){if(e.noglobstar)throw new TypeError("base matching requires globstar");t=t.map((t=>t.includes("/")?t:`./**/${t}`))}if(this.pattern=t,this.platform=e.platform||Mi,this.opts={...e,platform:this.platform},e.scurry){if(this.scurry=e.scurry,void 0!==e.nocase&&e.nocase!==e.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{const t="win32"===e.platform?Me:"darwin"===e.platform?Le:e.platform?Pe:Fe;this.scurry=new t(this.cwd,{nocase:e.nocase,fs:e.fs})}this.nocase=this.scurry.nocase;const i="darwin"===this.platform||"win32"===this.platform,s={...e,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:i,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},n=this.pattern.map((t=>new it(t,s))),[r,o]=n.reduce(((t,e)=>(t[0].push(...e.set),t[1].push(...e.globParts),t)),[[],[]]);this.patterns=r.map(((t,e)=>{const i=o[e];if(!i)throw new Error("invalid pattern object");return new je(t,i,0,this.platform)}))}async walk(){return[...await new Ei(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new Ei(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new Oi(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new Oi(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}function Li(t,e={}){return new Pi(t,e).streamSync()}function Fi(t,e={}){return new Pi(t,e).stream()}function ji(t,e={}){return new Pi(t,e).walkSync()}async function Di(t,e={}){return new Pi(t,e).walk()}function zi(t,e={}){return new Pi(t,e).iterateSync()}function Ii(t,e={}){return new Pi(t,e).iterate()}const Ri=Li,Bi=Object.assign(Fi,{sync:Li}),Ni=zi,Wi=Object.assign(Ii,{sync:zi}),$i=Object.assign(ji,{stream:Li,iterate:zi}),Ui=Object.assign(Di,{glob:Di,globSync:ji,sync:$i,globStream:Fi,stream:Bi,globStreamSync:Li,streamSync:Ri,globIterate:Ii,iterate:Wi,globIterateSync:zi,iterateSync:Ni,Glob:Pi,hasMagic:(t,e={})=>{Array.isArray(t)||(t=[t]);for(const i of t)if(new it(i,e).hasMagic())return!0;return!1},escape:O,unescape:b});Ui.glob=Ui;var qi,Hi,Gi=i(104);function Yi(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Vi(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Vi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var s=0,n=function(){};return{s:n,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return o=t.done,t},e:function(t){a=!0,r=t},f:function(){try{o||null==i.return||i.return()}finally{if(a)throw r}}}}function Vi(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}var Qi={size:["xs","sm","md","lg","xl"],type:["a","submit","button","reset","image/png"],target:["_blank","_self","_parent","_top"],offset:["[8, 8]","[5, 10]"],tag1:["div","span"],tag2:["div","span","form"],tag3:["div","span","label"],tag4:["div","span","i"],tag5:["div","span","blockquote"],tag6:["div","span","a","label"],tag7:["div","span","ul","ol"],tag8:["h3","div","span","h1"],transitions:["fade","scale","rotate","slide-down","slide-right","slide-left","slide-up","jump-down","jump-right","jump-left","jump-up","flip-down","flip-right","flip-left","flip-up"]};Qi.spaced=Qi.size,Qi.gutter=Qi.padding=["none"].concat(h(Qi.size)),Qi.menuOffset=Qi.offset,Qi.transitionShow=Qi.transitionHide=Qi.transition=Qi.transitions;var Ji=Qi.tag1,Zi=Qi.tag2,Xi=Qi.tag3,Ki=Qi.tag4,ts=Qi.tag5,es=Qi.tag6,is=Qi.tag7,ss=Qi.tag8,ns=(s(qi={default:function(t){var e=Qi[t];if(e)return{customType:"select",options:e}},QBreadcrumbs:{separator:{customType:"select",options:["/","-","|",">"]}},QBreadcrumbsEl:{tag:{customType:"select",options:Ji}},QCard:{tag:{customType:"select",options:Zi}},QCardSection:{tag:{customType:"select",options:Zi}},QEditor:{toolbarBg:{customType:"color",options:[]}},QChatMessage:{size:{customType:"select",options:[1,2,3,4,5,6,7,8,9,10,11,12]}},QDate:{mask:{customType:"select",options:["YYYY/MM/DD","YYYY-MM-DD","MMMM Do, YYYY","YYYY-MM-DD HH:mm:ss"]}},QField:{tag:{customType:"select",options:Xi}},QIcon:{tag:{customType:"select",options:Ki}},QInput:{mask:{customType:"select",options:["###-##","date","datetime","time","fulltime","phone","card"]}},QIntersection:{tag:{customType:"select",options:ts}},QItem:{tag:{customType:"select",options:es}},QKnob:{tag:{customType:"select",options:es}},QLinearProgress:{tag:{customType:"select",options:is}},QNoSsr:{tag:{customType:"select",options:ts}},QRating:{colorSelected:{customType:"color",options:[]},colorHalf:{customType:"color",options:[]}},QSkeleton:{tag:{customType:"select",options:Ji}}},"QDate",{mask:{customType:"select",options:["HH:mm","HH:mm:ss","YYYY-MM-DD HH:mm:ss","HH:mm MMMM Do, YYYY"]}}),s(qi,"QTimelineEntry",{tag:{customType:"select",options:ss}}),qi);pinegrow.addEventHandler("on_vite_plugin_activated",(function(t,e,i){e===Gi.Yr.key&&function(){(Hi=Hi||c(u.mark((function t(){var e,i,s,n,r,o;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=pinegrow.app_designer.addonManager.apiServerManager.connectionManager.repoRoot)){t.next=26;break}if(i=path.resolve(e,"node_modules","quasar","dist","api"),!fs.existsSync(i)||!fs.statSync(i).isDirectory()){t.next=26;break}return t.next=6,Ui("*.json",{cwd:path.resolve(i),withFileTypes:!0});case 6:s=(s=t.sent).sort((function(t,e){return t.fullpath().localeCompare(e.fullpath())})),n=Yi(s),t.prev=9,o=u.mark((function t(){var e,i,s,n,o,a,c;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=r.value).isFile()){t.next=11;break}if(i=e.fullpath(),s=e.name,n=s.replace(path.extname(s),""),(a=fs.readFileSync(i,{encoding:"utf8",flag:"r"})).trim()&&(o=JSON.parse(a)||{}),"component"===o.type){t.next=9;break}return t.abrupt("return",1);case 9:c=o.props||{},Object.entries(c).filter((function(t){var e=l(t,2);return e[0],e[1].values})).forEach((function(t){var e=l(t,2),i=e[0],s=e[1];ns[n]||(ns[n]={}),ns[n][i]={customType:"select",options:s.values}}));case 11:case"end":return t.stop()}}),t)})),n.s();case 12:if((r=n.n()).done){t.next=18;break}return t.delegateYield(o(),"t0",14);case 14:if(!t.t0){t.next=16;break}return t.abrupt("continue",16);case 16:t.next=12;break;case 18:t.next=23;break;case 20:t.prev=20,t.t1=t.catch(9),n.e(t.t1);case 23:return t.prev=23,n.f(),t.finish(23);case 26:case"end":return t.stop()}}),t,null,[[9,20,23,26]])})))).apply(this,arguments)}()}));var rs={default:function(t){return["placeholderSrc","src","srcset","imgSrc","trackImg","innerTrackImg","selectionImg","avatar","appendAvatar","prependAvatar"].includes(t)?{customType:"image"}:t.toLowerCase().endsWith("icon")?{customType:"icon"}:t.toLowerCase().endsWith("color")?{customType:"color"}:void 0}};function os(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function as(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?os(Object(i),!0).forEach((function(e){s(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):os(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var ls={QBtn:{props:{label:"My Button"}},QIcon:{props:{name:"i-mdi-home"}},QImg:{props:{src:"https://images.unsplash.com/photo-1551120738-c3fcea8d0cf8?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwyMDkyMnwwfDF8c2VhcmNofDJ8fHBpbmUlMjB0cmVlfGVufDB8fHx8MTY1Njc1MzAyMg&ixlib=rb-1.2.1&q=80&w=1080"}}};function cs(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}function hs(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function us(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?hs(Object(i),!0).forEach((function(e){s(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):hs(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var ps,ds=function(t){return t.replaceAll(" ","-").toLowerCase()},ms=[{label:"Buttons",value:"button"},{label:"Inputs",value:"input"},{label:"Loading",value:"loading"},{label:"Media",value:"media"},{label:"Navigation",value:"navigation"},{label:"Panels & Popups",value:"panel"},{label:"Scroll",value:"scroll"},{label:"Tables",value:"table"},{label:"Other Components",value:"other"},{label:"Directives",value:"directive"},{label:"Plugins",value:"plugin"},{label:"Utils",value:"util"}],gs=[].concat(h([{label:"Ajax-bar",name:"ajax-bar",description:"A loading bar for ajax calls in progress",tag:"loading"},{label:"Avatar",name:"avatar",description:"A space for your portrait, icon or text",tag:"media"},{label:"Badge",name:"badge",description:"To highlight small but important info",tag:"media"},{label:"Banner",name:"banner",description:"To display important messages and actions",tag:"panel"},{label:"Bar",name:"bar",description:"A small top bar for side info and actions",tag:"other"},{label:"Breadcrumbs",name:"breadcrumbs",description:"To keep track of your position inside app",tag:"navigation"},{label:"BreadcrumbsEl",name:"breadcrumbs-el",description:"To keep track of your position inside app",tag:"navigation"},{label:"Buttons",name:"btn",description:"To access the most important actions",tag:"button",path:"button"},{label:"Buttons Dropdown",name:"btn-dropdown",description:"To access more actions at once in less space",tag:"button",path:"button-dropdown"},{label:"Buttons Group",name:"btn-group",description:"An alternative to classic buttons",tag:"button",path:"button-group"},{label:"Floating Action Button",name:"fab",description:"To display the page primary action",tag:"button"},{label:"Toggle Buttons",name:"btn-toggle",description:"An alternative to pick an option among many",tag:"button",path:"button-toggle"},{label:"Toggle",name:"toggle",description:"To switch an option on and off",tag:"button"},{label:"Card",name:"card",description:"To display grouped contents",tag:"panel",path:"card"},{label:"Card Section",name:"card-section",description:"",tag:"panel",path:"card"},{label:"Card Actions",name:"card-actions",description:"",tag:"panel",path:"card"},{label:"Carousel",name:"carousel",description:"To display images and other contents",tag:"media",path:"carousel"},{label:"Carousel Control",name:"carousel-control",description:"",tag:"media",path:"carousel"},{label:"Carousel Slide",name:"carousel-slide",description:"",tag:"media",path:"carousel"},{label:"Chat Message",name:"chat-message",description:"To display users' conversations",tag:"other",path:"chat"},{label:"Checkbox",name:"checkbox",description:"To flag one or more options in a list",tag:"input"},{label:"Chips",name:"chip",description:"A small container for info and actions",tag:"media",path:"chip"},{label:"Circular Progress",name:"circular-progress",description:"To inform when content is still loading",tag:"loading"},{label:"Color Pickers",name:"color",description:"To select color values and codes",tag:"input",path:"color-picker"},{label:"Date Picker",name:"date",description:"To access the most important actions",tag:"input",path:"date"},{label:"Dialogs",name:"dialog",description:"To show actions and info only when needed",tag:"panel",path:"dialog"},{label:"Editor WYSIWYG",name:"editor",description:"To write text and style it directly",tag:"other",path:"editor"},{label:"Expansion Panels",name:"expansion-item",description:"To show hidden extra info and actions",tag:"panel",path:"expansion-item"},{label:"File Pickers",name:"file",description:"To access and choose a file from users' device",tag:"media",path:"file"},{label:"Forms",name:"form",description:"A system to submit validated inputs",tag:"input",path:"form"},{label:"Form Fields",name:"field",description:"Wrapper for your own custom form elements",tag:"input",path:"field"},{label:"Icon",name:"icon",description:"To insert icons inside other components",tag:"media"},{label:"Img",name:"img",description:"To set some basic image features",tag:"media"},{label:"Infinite Scroll",name:"infinite-scroll",description:"To enable new content display while scrolling",tag:"scroll"},{label:"Inner Loading",name:"inner-loading",description:"To add content loading inside a component",tag:"loading"},{label:"Input Text Fields",name:"input",description:"To collect users' typed text input",tag:"input",path:"input"},{label:"Intersection",name:"intersection",description:"Set how UI elements enter the screen",tag:"loading"},{label:"Knob",name:"knob",description:"To set a value with a draggable gauge",tag:"input"},{label:"Linear Progress",name:"linear-progress",description:"A loading bar with various behaviors",tag:"loading"},{label:"List",name:"list",description:"To display contents on a vertical list",tag:"other"},{label:"List Items",name:"item",description:"",tag:"other"},{label:"List Item Section",name:"item-section",description:"",tag:"other"},{label:"List Item Label",name:"item-label",description:"",tag:"other"},{label:"Markup Table",name:"markup-table",description:"To display data and content on a table",tag:"table"},{label:"Menu",name:"menu",description:"A dropdown panel to access options",tag:"panel"},{label:"No SSR",name:"no-ssr",description:"Ignore irrelevant code during SSR generation",tag:"other"},{label:"Observer resize",name:"resize-observer",description:"Emit an Event when an element resizes",tag:"other",path:"resize-observer"},{label:"Observer scroll",name:"scroll-observer",description:"Emit an Event when the user scrolls",tag:"other",path:"scroll-observer"},{label:"Option Group",name:"option-group",description:"Helper component to set groups of options",tag:"input"},{label:"Pagination",name:"pagination",description:"To navigate content on multiple pages",tag:["navigation"]},{label:"Parallax",name:"parallax",description:"To create interesting UI image background",tag:"media"},{label:"Popup Edit",name:"popup-edit",description:"To access inline editing of data",tag:"input"},{label:"Popup Proxy",name:"popup-proxy",description:"To show extra content on click",tag:"panel"},{label:"Pull to Refresh",name:"pull-to-refresh",description:"To refresh the page content with a gesture",tag:"loading"},{label:"Radio",name:"radio",description:"To select a single option in a list",tag:"input"},{label:"Range",name:"range",description:"To pick a period on a range of values",tag:"input"},{label:"Rating",name:"rating",description:'The classic "star rating" component',tag:"other"},{label:"Responsive",name:"responsive",description:"To keep content aspect ratio consistent",tag:"other"},{label:"Scroll Area",name:"scroll-area",description:"To set a scrollable content in components",tag:"scroll"},{label:"Select",name:"select",description:"To choose one item from a dropdown list",tag:"input"},{label:"Separator",name:"separator",description:"The linear visual divider for contents",tag:"other"},{label:"Skeleton",name:"skeleton",description:"To set loading content placeholders",tag:"loading"},{label:"Slide Item",name:"slide-item",description:"To add dragging feature to list items",tag:"other"},{label:"Slider",name:"slider",description:"To pick a single value on a range",tag:"input"},{label:"Slide Transition",name:"slide-transition",description:"To show a hidden content",tag:"other"},{label:"Space",name:"space",description:"Fill space inside elements using flexbox",tag:"other"},{label:"Spinners",name:"spinner",description:"A loading indicator with various behaviors",tag:"loading"},{label:"Spinner Cube",name:"spinner-cube",description:"",tag:"loading"},{label:"Splitter",name:"splitter",description:"To add a draggable resizer for containers",tag:"other"},{label:"Stepper",name:"stepper",description:"To divide content in progressive steps",tag:"navigation"},{label:"Step",name:"step",description:"",tag:"navigation"},{label:"Stepper Navigation",name:"stepper-navigation",description:"",tag:"navigation"},{label:"Table",name:"table",description:"To display much data on a datatable",tag:"table"},{label:"Th",name:"th",description:"",tag:"table"},{label:"Tr",name:"tr",description:"",tag:"table"},{label:"Td",name:"td",description:"",tag:"table"},{label:"Tab Panels",name:"tab-panels",description:"To split out content view in the same page",tag:"navigation"},{label:"Tab Panel",name:"tab-panel",description:"To navigate separate content in one page",tag:"navigation"},{label:"Timeline",name:"timeline",description:"A vertical solution to set milestones in time",tag:"other"},{label:"Timeline Entry",name:"timeline-entry",description:"",tag:"other"},{label:"Time Picker",name:"time",description:"To set a specific time on the clock",tag:"input",path:"time"},{label:"Toolbar",name:"toolbar",description:"The top main bar for actions and menu",tag:"navigation"},{label:"Toolbar Title",name:"toolbar-title",description:"The top main bar for actions and menu",tag:"navigation"},{label:"Tooltip",name:"tooltip",description:"To show extra useful info about the UI",tag:"media"},{label:"Tree",name:"tree",description:"An indented structure for hierarchical data",tag:"navigation"},{label:"Uploader",name:"uploader",description:"To upload any kind of file from the computer",tag:"media"},{label:"Video",name:"video",description:"To embed and display a video player in UI",tag:"media"},{label:"Virtual Scroll",name:"virtual-scroll",description:"To render new content while scrolling it",tag:"scroll"}].map((function(t){var e=ms.find((function(e){return e.value===(Array.isArray(t.tag)?t.tag[0]:t.tag)})).label,i=ds(t.name);return us(us({},t),{},{category:e,img:"https://cdn.quasar.dev/img/components/".concat(i,".jpg"),to:"/vue-components/".concat(t.path||i)})}))),h([{name:"Intersection",description:"Handle elements coming into the view",tag:"directive"},{name:"Material Ripples",description:"Apply Material ripples to elements",tag:"directive"},{name:"Mutation",description:"Watch changes being made to the DOM tree",tag:"directive"},{name:"Morph",description:"Morph DOM elements between two states",tag:"directive"},{name:"Scroll",description:"Handle page scroll",tag:"directive"},{name:"Scroll Fire",description:"Take action when element comes into view",tag:"directive"},{name:"Touch Hold",description:"Handle touch & mouse hold user actions",tag:"directive"},{name:"Touch Pan",description:"Handle touch & mouse panning user actions",tag:"directive"},{name:"Touch Repeat",description:"Handle repeated touch & mouse taps/clicks",tag:"directive"},{name:"Touch Swipe",description:"Handle touch & mouse swipe user actions",tag:"directive"}].map((function(t){var e=ms.find((function(e){return e.value===(Array.isArray(t.tag)?t.tag[0]:t.tag)})).label;return us(us({},t),{},{category:e,to:"/vue-directives/".concat(t.path||ds(t.name)),name:"".concat(t.path||ds(t.name))})}))),h([{name:"Addressbar Color",description:"Manage the browser addressbar color",tag:"plugin"},{name:"App Fullscreen",description:"Handle app fullscreen mode",tag:"plugin"},{name:"App Visibility",description:"For app coming into (or out of) view",tag:"plugin"},{name:"Bottom Sheet",description:"Quick way to offer a list of actions",tag:"plugin"},{name:"Cookies",description:"Easy way to manage browser cookies",tag:"plugin"},{name:"Dark Mode",description:"Manage dark mode",tag:"plugin",path:"dark"},{name:"Dialog",description:"Plugin to display a floating modal",tag:"plugin"},{name:"Loading",description:"Overlay for a background action in progress",tag:"plugin"},{name:"Loading Bar",description:"Display a loading bar for in progress Ajax calls",tag:"plugin"},{name:"Local/Session Storage",description:"Manage the local storage and session storage",tag:"plugin",path:"web-storage"},{name:"Meta Plugin",description:"Helps with SEO by managing the meta tags",tag:"plugin",path:"meta"},{name:"Notify",description:"Display floating animated messages",tag:"plugin"}].map((function(t){var e=ms.find((function(e){return e.value===(Array.isArray(t.tag)?t.tag[0]:t.tag)})).label;return us(us({},t),{},{category:e,to:"/quasar-plugins/".concat(t.path||ds(t.name)),name:"".concat(t.path||ds(t.name))})}))),h([{name:"Date utils",description:"Easily handle date objects",tag:"util"},{name:"DOM utils",description:"Various DOM-related helper utils",tag:"util"},{name:"Morph utils",description:"Morph DOM elements helper util",tag:"util"},{name:"Formatter utils",description:"Various text formatting utils",tag:"util"},{name:"Scrolling utils",description:"Various scrolling-related utils",tag:"util"},{name:"Type checking utils",description:"Helpers to determine variable types",tag:"util"},{name:"Event bus util",description:"Global event bus",tag:"util"},{name:"Other utils",description:"Various other utils that Quasar supplies",tag:"util"}].map((function(t){var e=ms.find((function(e){return e.value===(Array.isArray(t.tag)?t.tag[0]:t.tag)})).label;return us(us({},t),{},{category:e,to:"/quasar-utils/".concat(ds(t.name)),name:"".concat(ds(t.name))})})))).filter((function(t){return t.to.startsWith("/vue-components/")})).map((function(t,e){return{key:e,name:"q-".concat(t.name),description:t.description,tag:t.tag,category:t.category,img:t.img,haystack:"".concat(t.name," ").concat(t.description," ").concat(t.short||"").toLowerCase(),to:t.to}})),ys={},bs=function(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return cs(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?cs(t,e):void 0}}(t))){i&&(t=i);var s=0,n=function(){};return{s:n,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return o=t.done,t},e:function(t){a=!0,r=t},f:function(){try{o||null==i.return||i.return()}finally{if(a)throw r}}}}(gs);try{for(bs.s();!(ps=bs.n()).done;){var vs=ps.value,ws=vs.name,ks=vs.category;ys[ks]||(ys[ks]=[]),ys[ks].push(ws)}}catch(t){bs.e(t)}finally{bs.f()}var _s=i(783);const xs=/[^\p{L}\p{N}]+/gu,Ss=(t,e={})=>{const i=(t=>null==t?"":Array.isArray(t)?t.map((t=>t.toString().trim())).filter((t=>t.length>0)).join(" "):"function"==typeof t?t.name?t.name:"":"function"!=typeof t.toString?"":t.toString().trim())(t),s=e.punctuationRegex??xs,n=i?_s(s?i.replace(s," "):i,e):"";return n?n[0].toLocaleUpperCase(e.locale)+n.slice(1):""};var Ts={};Object.entries({breadcrumbs:["breadcrumbs","breadcrumbs-el"],card:["card","card-section","card-actions"],carousel:["carousel","carousel-control","carousel-slide"],list:["list","item","item-section","item-label"],spinner:["spinner","spinner-cube"],stepper:["stepper","step","stepper-navigation"],table:["table","th","tr","td"],"tab-panels":["tab-panels","tab-panel"],timeline:["timeline","timeline-entry"],toolbar:["toolbar","toolbar-title"]}).forEach((function(t){var e=l(t,2),i=(e[0],e[1]),s=i[0],n=i.slice(1,i.length);Ts[Ss("q-".concat(s))]=n.map((function(t){return Ss("q-".concat(t))}))}));var Cs={metaOverrides:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s={customType:null,type:i.value&&i.value.type,multiple:i.multiple,options:null,required:i.required,validator:i.validator,default:i.default&&"null"!==i.default&&"undefined"!==i.default?i.default:null};return[ns,rs].reduce((function(s,n){if(Object.keys(s).length)return s;var r;n.default&&"function"==typeof n.default&&(r=null==n?void 0:n.default(o(i.name)));var a=n[t]&&n[t][o(i.name)];return e=as(as({},r||{}),a||{})}),{}),e&&(s.customType=e.customType||s.customType,s.type=e.type||s.type,s.multiple=e.multiple||s.multiple,s.options=e.options||s.options,s.required=e.required||s.required,s.validator=e.validator||s.validator,s.default=e.default||s.default),s},metaAdditions:function(t){return[ns,rs].reduce((function(e,i){if(i[t]){var s=Object.keys(i[t]),n=e.map((function(t){return o(t.name)}));s.filter((function(t){return!n.includes(t)})).forEach((function(s){var n=i[t][s];e.push({name:s,description:n.description,"doc-url":n.docUrl,default:n.default,value:n.value})}))}return e}),arguments.length>1&&void 0!==arguments[1]?arguments[1]:[])},libraryCodeStubs:function(t){var e=ls[t],i="",s="";return e&&(e.props&&(i=Object.entries(e.props).reduce((function(t,e){var i=l(e,2),s=i[0],n=i[1],r=!0===n?"":'="'.concat(n,'"');return"".concat(t," ").concat(a(s)).concat(r)}),"")),e.defaultSlot&&(s=e.defaultSlot)),"<".concat(a(t)," ").concat(i,">").concat(s,"</").concat(a(t),">")},componentsCategorised:ys,componentGroups:Ts}},104:(t,e,i)=>{"use strict";i.d(e,{EX:()=>o,JF:()=>n,Yr:()=>a,fh:()=>r,hC:()=>s});var s=!0,n=function(t){s=t},r=!1,o=function(t){r=t},a={plugin_path:"./plugin.cjs",templates_path:"./templates",version:"2.0.0",major_version:"2",minor_version:"2",info_badge:"",type:"quasar",short_type:"quasar",allow_single_type:!0,short_name:"Quasar",dependency:"@pinegrow/quasar-module",get name(){return"".concat(this.short_name," ").concat(this.minor_version)},get key(){return"".concat(this.type)},get scriptTagId(){return"".concat(this.short_type)},get prefix(){return"".concat(this.short_type).concat(this.minor_version)},get library(){return"".concat(this.type)},syncWithLibrarySemVer:"minor",get description(){return'<a href="http://quasar.dev/">'.concat(this.name,"</a> components. Some samples are from ").concat(this.name," documentation and based on ").concat(this.short_name," ").concat(this.version,".")},author:"Pinegrow",get author_link(){return"http://github.com/pinegrow/".concat(this.type,"-plugin")},get default(){return this.pgf_type&&this.pgf_type.activated_by_default||!1},get show_in_manager(){return!1},skip_opening_new_pages_created_from_templates:!0,show_templates_only_inside_projects:!0,get simple(){return this.pgf_type&&this.pgf_type.simple||!1},ignore_css_files:[/(^|\/)quasar\.(css)/i,/(^|\/)quasar\.min\.(css)/i,/(^|\/)materialdesignicons\.(css)/i,/(^|\/)materialdesignicons\.min\.(css)/i],detect_async:function(t,e){t.stylesheetsThatContain(/quasar\sv3/i,/quasar(\.min|)\.(css)/i,(function(t){e(t.length>0)}))}}},802:(t,e,i)=>{"use strict";i.d(e,{D:()=>f});for(var s=i(290),n=i(289),r=[{key:"",name:"Distribute"},{key:"-auto",name:"Auto"},{key:"-grow",name:"Grow"},{key:"-shrink",name:"Shrink"}],o=[],a=[{key:"-first",name:"First"},{key:"-last",name:"Last"},{key:"-none",name:"None"}],l=[{key:"-grow",name:"Grow"}],c=[{key:"-shrink",name:"Shrink"}],h=[{key:"-start",name:"Start"},{key:"-end",name:"End"},{key:"-center",name:"Center"},{key:"-baseline",name:"Baseline"},{key:"-stretch",name:"Stretch"}],u=0;u<=n.XL;u++)0==u||r.push({key:"-"+u,name:u}),u!=n.XL&&o.push({key:"-"+u,name:u});var p=function(t){return t.parent&&t.parent.isSelector(".flex")},d=function(t){return!(!t.parent||!(t.parent.isSelector(".row")&&!t.hasClass("row")||t.parent.isSelector(".column")||!t.hasClass("column")&&(0,n.t3)(t.parent)))},f=function(t){return function(){var e,i,u=[],f={field_prefix:"".concat(t,"_col"),class_prefix:"col",values:r,name:"Size"},m={field_prefix:"".concat(t,"_offset"),class_prefix:"offset",values:o,name:"Offset"},g={field_prefix:"".concat(t,"_order"),class_prefix:"order",values:a,name:"Order"},y={field_prefix:"".concat(t,"_align"),class_prefix:"self",values:h,name:"Align self"};return"column"===t?u.push(f,m,g,y):u.push(m,g,{field_prefix:"".concat(t,"_grow"),class_prefix:"col",values:l,name:"Grow"},{field_prefix:"".concat(t,"_shrink"),class_prefix:"col",values:c,name:"Shrink"},y),{name:"column"===t?"Column":"Flex Child",show_if:"column"===t?d:p,fields:s({},"".concat(t,"_control'"),{type:"custom",name:"".concat(t,"_control'"),action:"none",control:(e="".concat(t,"_span'"),i=u,function(){var t=new PgCustomPropertyControl(n.O4+e);t.onDefine=function(){for(var t=0;t<i.length;t++)for(var e=0;e<n.J7.length;e++){var r=n.O4+i[t].field_prefix+"."+n.J7[e];this.registerInputField(r,s(i[t],n.J7[e]))}},t.onShow=function(){var t=$("<table/>",{class:"grid-control columns-control seven-col-grid"}),e="<td></td>";n.J7.forEach((function(t){e+='<td><label class="grid-control-size">'+t+"</label></td>"}));for(var r=$("<tr/>").html(e).appendTo(t),o=0;o<i.length;o++){r=$("<tr/>",{class:""}).appendTo(t);for(var a=$("<td/>").html('<label style="text-align:left">'+i[o].name+"</label>").appendTo(r),l=0;l<n.J7.length;l++){a=$("<td/>").appendTo(r);var c=n.O4+i[o].field_prefix+"."+n.J7[l];this.showInputField(a,c,s(i[o],n.J7[l]))}}return t},t.onSetValues=function(){};var s=function(t,e){var i=e==n.Ff?"":"-"+e,s=t.class_prefix+i,r={type:"select",name:null,action:"apply_class",draggable_list:!0,show_empty:!0,options:[],on_changed:function(t,e,i){t.setData(n.O4+"was-column",!0)}};return t.values.forEach((function(t){r.options.push({key:s+t.key,name:t.name})})),r};return t})})}}}},676:(t,e,i)=>{"use strict";i.d(e,{M:()=>r});var s=i(104),n=i(143),r=new PgFramework(s.Yr.key,s.Yr.name);r.type=s.Yr.type,r.allow_single_type=s.Yr.allow_single_type,r.description=s.Yr.description,r.author=s.Yr.author,r.author_link=s.Yr.author_link,r.info_badge=s.Yr.info_badge,r.default=s.Yr.default,r.show_in_manager=s.Yr.show_in_manager,r.ignore_css_files=s.Yr.ignore_css_files,r.detect_async=s.Yr.detect_async,r.setScriptFileByScriptTagId("plugin-".concat(s.Yr.scriptTagId,"-").concat(s.Yr.major_version,"-mt")),r.skip_opening_new_pages_created_from_templates=s.Yr.skip_opening_new_pages_created_from_templates,r.show_templates_only_inside_projects=s.Yr.show_templates_only_inside_projects,r.super_web_types=n.c,r.no_prop_section_subtitles=s.Yr.no_prop_section_subtitles,pinegrow.addFramework(r,3)},289:(t,e,i)=>{"use strict";i.d(e,{r2:()=>c,e9:()=>S,bm:()=>b,MS:()=>s.M,ac:()=>k,of:()=>w,Cw:()=>v,t3:()=>h,qV:()=>x,XL:()=>u,vz:()=>_,O4:()=>o,Ff:()=>f,J7:()=>p});for(var s=i(676),n=i(377),r=i(104),o=r.Yr.prefix,a=r.Yr.simple,l=r.Yr.short_name,c=(r.Yr.key,function(t){a||s.M.addLibSection(t)}),h=function(t){if("div"==t.tagName){if(t.parent&&t.parent.isSelector(".row")&&!t.hasClass("row"))return!0;if(t.getData(o+"was-column"))return!0}var e=t.getAttr("class");return!(!e||!e.match(/(\s|^)col($|[\-\s])/i))},u=parseInt(pinegrow.getSetting("quasar-col-num","12"))||12,p=["xs","sm","md","lg","xl"],d=[0,600,1024,1440,1920],f=p[0],m={},g=0;g<p.length;g++)m[p[g]]=d[g];var y=function(t,e,i){var s=new PgFrameworkHelpers("Quasar",t,e,i,PgBSMenuPointColumnSize);s.getCodeForLarge=function(){var t;switch(this.version){case 2:default:t='<pgdiv class="col-1 pinegrow-ui-helper"><pgdiv class="pinegrow-ui-helper"></pgdiv></pgdiv>';break;case 3:t='<pgdiv class="col-xs-1 pinegrow-ui-helper"><pgdiv class="pinegrow-ui-helper"></pgdiv></pgdiv>'}return t},s.getCodeForSmall=function(){var t;switch(this.version){case 2:default:t='<pgdiv class="col-1 pinegrow-ui-helper d-block d-sm-none" style="padding-left:0;padding-right:0;"><pgdiv class="pinegrow-ui-helper"></pgdiv></pgdiv>';break;case 3:t='<pgdiv class="col-xs-1 pinegrow-ui-helper visible-xs visible-xs-block" style="padding-left:0;padding-right:0;"><pgdiv class="pinegrow-ui-helper"></pgdiv></pgdiv>'}return t},s.getClassForSize=function(e,i,s){return null==s?s="":s+="",i+(e==t.size_for_all?"":"-"+e)+(s.length?"-"+s:"")},s.getColumnSizes=function(e){var i=new RegExp("^col(\\-("+t.sizes.join("|")+"))?(\\-([0-9]+|auto))?"),s={};return(e instanceof pgParserNode?e.getClasses():e.classList).forEach((function(e){var n=e.match(i);if(n){var r=n[2]||t.size_for_all,o=n[4]||"";s[r]=o}})),s},new PgDelayedTasks,s.makeFieldLabelForSize=function(t,e){return'<span class="sc-label">'+t+'</span><span class="sc-device-size" style="padding:6px">'+e+"</span>"},s.getDevicesControlFactory=function(e,i,s){var n=function(i){t.sizes.forEach((function(s){i(s,s==t.size_for_all?"":"-"+s,t.prefix+e+"."+s)}))};return function(){var r=new PgCustomPropertyControl(t.prefix+e);return r.onDefine=function(){n((function(t,e,i){var n=s(t,e);r.registerInputField(i,n)}))},r.onShow=function(){var t=$("<div/>",{class:"sc-device-control"});return $('<div class="sc-device-control-title">'+i+"</div>").appendTo(t),n((function(e,i,n){var o=s(e,i);r.showInputField(t,n,o).$field.attr("data-device-size",e)})),t},r.onSetValues=function(e){var i=!0;n((function(e,s,n){var o=r.get$Field(n);r.values[n]?(o.addClass("sc-has-value"),e!=t.size_for_all&&(i=!1)):o.removeClass("sc-has-value")})),i?r.$element.addClass("sc-none-or-all"):r.$element.removeClass("sc-none-or-all")},r}};var n={};s.onSectionWithDevicesControlsShown=function(e,i){var r=s,o={},a=!0;t.sizes.forEach((function(t){n[e.section_key]&&n[e.section_key][t]&&(o[t]=!0)}));var l=i.$content.get(0).querySelectorAll("[data-device-size]");l.forEach((function(t){var e=t.getAttribute("data-device-size");if(!o[e]){var i=t.classList.contains("sc-has-value");o[e]=i,a=a&&!i}})),a&&(o[t.size_for_all]=!0),l.forEach((function(t){var e=t.getAttribute("data-device-size"),i=t.getAttribute("data-device-display")||"flex";o[e]?pgShow(t,i):pgHide(t)}));var c='<ul class="sc-device-selector">';t.sizes.forEach((function(t){c+='<li data-size="'+t+'" class="'+(o[t]?"sc-active":"")+'">'+t+"</li>"})),c+="</ul>";var h=$(c);i.$title.append(h),h.on("click","li",(function(t){t.preventDefault(),t.stopPropagation();var s=$(this),r=s.attr("data-size"),a=s.hasClass("sc-active");a=!a,o[r]=a,a||1!=h.find("li.sc-active").length?(n[e.section_key]||(n[e.section_key]={}),n[e.section_key][r]=a,i.$content.find('[data-device-size="'+r+'"]').each((function(t,e){var i=e.getAttribute("data-device-display")||"flex";a?(pg$Show($(e),i),s.addClass("sc-active")):(pg$Hide($(e)),s.removeClass("sc-active"))})),p()):pinegrow.showQuickError("At least one device size must be active.")}));var u,p=function(){var e=0,s=!1;t.sizes.forEach((function(i){o[i]&&(e++,i==t.size_for_all&&(s=!0))}));var n=i.$content.find(".sc-device-control");e>1?n.removeClass("sc-single-size"):n.addClass("sc-single-size"),s?n.addClass("sc-for-all-shown"):n.removeClass("sc-for-all-shown")};u=pinegrow.getSelectedPage(),l.forEach((function(t){var e=t.getAttribute("data-device-size");r.isSizeVisible(u,e)?t.classList.remove("sc-size-not-visible"):t.classList.add("sc-size-not-visible")})),h.children().each((function(t,e){var i=e.getAttribute("data-size");r.isSizeVisible(u,i)?e.classList.remove("sc-size-not-visible"):e.classList.add("sc-size-not-visible")})),p()};var r=["a","x","y","t","r","b","l"],a=["none","xs","sm","md","lg","xl","auto"],l={},c={},h=function(t){if(!t)return null;var e=t.split("-");return e.length>1?e[e.length-1]:""},u=function(t,e,i,s,n,r){var o=n[s+r];return o?t+e+("xs"!=i?"-"+i:"")+"-"+h(o):null},d=function(t,e,i,s,n,o){for(var a=3;a<r.length;a++)if(t.removeClass(n[s+r[a]]),r[a]!=o){var c=l[i][e+r[a]],h=u(e,r[a],i,s,n,"a");n[s+r[a]]=h,c.setValue(h)}},m=function(t,e,i,s){return s?t+e+("xs"!=i?"-"+i:"")+"-"+s:null},g=function(t,e,i){var s=$(t.target).closest(".change-all-icon");if(s.toggleClass("active"),s.hasClass("active")){var n=s.data("size");!function(t,e,i,s,n,o){var l=s+"."+i+"."+e,c=pinegrow.getCollectionForElement(t);pinegrow.makeChanges(c,"Set spacing",(function(){c.forEachElement((function(t){for(var s=!1,o=0;o<r.length;o++){for(var c=0;c<a.length;c++){var h=m(e,r[o],i,a[c]);if(t.hasClass(h)){t.removeClass(h);var u=e+"a"+("xs"!=i?"-"+i:"")+"-"+a[c];t.addClass(u),n[l+"a"]=u,d(t,e,i,l,n,r[o]),s=!0;break}}if(s)break}}))}))}(i.obj,e,n,i.control_id,i.values)}};s.getDevicesMarginAndPaddingControlFactory=function(e,i){var s=["q-m","q-p"],n=function(i){t.sizes.forEach((function(s){i(s,s==t.size_for_all?"":"-"+s,t.prefix+e+"."+s)}))};return function(){var o=new PgCustomPropertyControl(t.prefix+e);return o.onDefine=function(){n((function(t,e,n){for(var a=0;a<s.length;a++)for(var l=0;l<r.length;l++){var c=i(t,s[a],r[l],e),h=n+"."+s[a]+r[l];o.registerInputField(h,c)}}))},o.onShow=function(){var t,e,s,r=$('<div class="crsa-css-gui bs4-margin-and-padding"></div>'),a=this,h="",u="";return n((function(n,p,d){var f=$('<div class="margin-and-padding-container text-center" data-device-size="'+n+'"></div>').appendTo(r);$("<label/>",{class:"size-label"}).html('<span class="sc-device-size">'+n+"</span>").appendTo(f),l[n]={},c[n]={},t=i(n,h="q-m",u="t",p),s=d+"."+h+u,(e=o.showInputField(f,s,t)).$field.addClass("crsa-field-margin-top crsa-small-input crsa-align-center-input crsa-inline-container"),l[n][h+u]=e,t=i(n,h,u="l",p),s=d+"."+h+u,(e=o.showInputField(f,s,t)).$field.addClass("crsa-field-margin-left crsa-small-input crsa-align-center-input crsa-inline-container"),l[n][h+u]=e;var m=$('<div class="margin-border"></div>').appendTo(f),y=$('<div class="change-all-margin-icon change-all-icon"> <i class="icon-same"></i> </div>').appendTo(m);c[n]["q-m"]=y,y.data("size",n),y.on("click",(function(t){g(t,"q-m",a)}));var b=$('<div class="padding-container"></div>').appendTo(m);t=i(n,h="q-p",u="t",p),s=d+"."+h+u,(e=o.showInputField(b,s,t)).$field.addClass("crsa-field-padding-top crsa-small-input crsa-align-center-input crsa-inline-container"),l[n][h+u]=e,t=i(n,h,u="l",p),s=d+"."+h+u,(e=o.showInputField(b,s,t)).$field.addClass("crsa-field-padding-left crsa-small-input crsa-align-center-input crsa-inline-container"),l[n][h+u]=e;var v=$('<div class="padding-border"> <div class="change-all-padding-icon change-all-icon"><i class="icon-same"></i></div> </div>').appendTo(b).find("> .change-all-icon");c[n]["q-p"]=v,v.data("size",n),v.on("click",(function(t){g(t,"q-p",a)})),t=i(n,h,u="r",p),s=d+"."+h+u,(e=o.showInputField(b,s,t)).$field.addClass("crsa-field-padding-right crsa-small-input crsa-align-center-input crsa-inline-container"),l[n][h+u]=e,t=i(n,h,u="b",p),s=d+"."+h+u,(e=o.showInputField(b,s,t)).$field.addClass("crsa-field-padding-bottom crsa-small-input crsa-align-center-input crsa-inline-container"),l[n][h+u]=e,t=i(n,h="q-m",u="r",p),s=d+"."+h+u,(e=o.showInputField(f,s,t)).$field.addClass("crsa-field-margin-right crsa-small-input crsa-align-center-input crsa-inline-container"),l[n][h+u]=e,t=i(n,h,u="b",p),s=d+"."+h+u,(e=o.showInputField(f,s,t)).$field.addClass("crsa-field-margin-bottom crsa-small-input crsa-align-center-input crsa-inline-container"),l[n][h+u]=e})),r},o.onSetValues=function(e){var i=!0;n((function(e,s,n){!function(t,e,i){for(var s=["q-p","q-m"],n=["t","r","l","b"],r=function(t){for(var e=i+"."+t,s=["a","x","y"],n=[],r=0;r<s.length;r++){var a=s[r],l=o.values[e+a];if(l){var c=l.split("-");n.push({direction:a,value:c[c.length-1]})}}return n.length>0?n:null},a=function(t,i,s){return t+i+(e?"-"+e:"")+"-"+s},h=function(t,e){if("a"==e)return!0;if("x"==e){if(["r","l"].indexOf(t)>-1)return!0}else if("y"==e&&["t","b"].indexOf(t)>-1)return!0;return!1},u=0;u<s.length;u++){var p=s[u],d=r(p),f=c[t][p];if(d&&d.length>0)for(var m=0;m<d.length;m++){for(var g=d[m],y=g.value,b=g.direction,v=0;v<n.length;v++){var w=n[v];if(h(w,b)){var k=i+"."+p+w;if(!o.values[k]){var _=l[t][p+w],x=a(p,w,y);o.values[k]=x,_.setValue(x)}}}if("a"==g.direction){f.addClass("active");break}}else f.removeClass("active")}}(e,s,n);var r=o.$element.find('> [data-device-size="'+e+'"]');!function(t){for(var e=["q-m","q-p"],i=["t","l","r","b"],s=0;s<e.length;s++)for(var n=e[s],r=0;r<i.length;r++){var a=t+"."+n+i[r];if(o.values[a])return!0}return!1}(n)?r.removeClass("sc-has-value"):(r.addClass("sc-has-value"),e!=t.size_for_all&&(i=!1))})),i?o.$element.addClass("sc-none-or-all"):o.$element.removeClass("sc-none-or-all")},o}},s.getSpacingControl=function(){return s.getDevicesMarginAndPaddingControlFactory("margin.padding",(function(e,i,s,n){var o={type:"select",name:null,placeholder:s,show_empty:!0,options:function(){var t=i+s+n+"-",e=[];return a.forEach((function(i){e.push({key:t+i,name:i,num:i})})),e},action:"custom",draggable_list:!0,async_options_function:!0,fill_list_on_open:!0,more_prop:{size:e,type:i,direction:s},get_value:function(e,i,s,n){for(var r=n.options(),o=0;o<r.length;o++)if(e.hasClass(r[o].key))return r[o].key;var a=n.more_prop.size,l=n.more_prop.type,c=n.more_prop.direction;if(c&&"a"!=c&&"x"!=c&&"y"!=c){var h=t.prefix+"margin.padding."+a+"."+l;if(s[h+"a"]){var p=u(l,c,a,h,s,"a");return s[h+c]=p,p}if("r"==c||"l"==c){if(s[h+"x"])return p=u(l,c,a,h,s,"x"),s[h+c]=p,p}else if(("t"==c||"b"==c)&&s[h+"y"])return p=u(l,c,a,h,s,"y"),s[h+c]=p,p}return""},set_value:function(e,i,s,n,o,a){var l=a.options();$.each(l,(function(t,s){if(s.key==i)return!0;e.hasClass(s.key)&&e.removeClass(s.key)}));var u=a.more_prop.size,p=a.more_prop.type,f=a.more_prop.direction,g=t.prefix+"margin.padding.";if(c[u][p].hasClass("active")||function(t,e,i,s,n,o){for(var a=h(o),l=!0,c=3;c<r.length;c++)if(r[c]!=n){var u=e+r[c]+("xs"!=i?"-"+i:"")+"-"+a;if(!t.hasClass(u)){l=!1;break}}return l}(e,p,u,0,f,i)){var y=g+u+"."+p,b=m(p,"a",u,h(n)),v=m(p,"a",u,h(i));e.removeClass(b);for(var w=0;w<r.length;w++){var k;k=h(r[w]==f?n:i);var _=p+r[w]+("xs"!=u?"-"+u:"")+"-"+k;e.removeClass(_)}e.addClass(v),s[y+"a"]=v,d(e,p,u,y,s,f)}else{var x=s[(y=g+u+"."+p)+f];for(s[y+f]="",e.removeClass(x),e.removeClass(s[y+"a"]),s[y+"a"]="",w=3;w<r.length;w++)r[w]!=f&&e.addClass(s[y+r[w]]);e.addClass(i)}return i}};return o}))};var y=["","x","y"],b=["xs","sm","md","lg","xl"],v={},w=function(t,e,i,s){return"q-".concat("column"===s?"col-":"","gutter")+(e||"")+(t?"-".concat(t):"")+"-"+i};return s.getDevicesRowGapControlFactory=function(t,e,i){var s=y,n=b,r=function(e){p.forEach((function(i){e(i,i==f?"":"-"+i,o+t+"."+i)}))};return function(){var a=new PgCustomPropertyControl(o+t);return a.onDefine=function(){r((function(t,e,n){for(var r=0;r<s.length;r++){var o=i(t,s[r],e),l=n+"."+s[r];a.registerInputField(l,o)}}))},a.onShow=function(){var t,e,s,n=$('<div class="bs5-row-gap sc-device-control sc-single-size"></div>'),o=($('<div class="sc-device-control-title"></div>').appendTo(n),"");return r((function(r,l,c){var h=$('<div class="row-gap-container" data-device-size="'+r+'"></div>').appendTo(n),u=($("<label/>",{class:"size-label"}).html('<span class="sc-label"></span><span class="sc-device-size">'+r+"</span>").appendTo(h),$('<div class="main-row-gap-container"></div>').appendTo(h));v[r]={};var p=$('<div class="row-gap-fields-container"></div>').appendTo(u),d=$("<div></div>").appendTo(p);t=i(r,o="x",l),s=c+"."+o,(e=a.showInputField(d,s,t)).$field.addClass(""),v[r][o]=e;var f=$("<div></div>").appendTo(p);t=i(r,o="y",l),s=c+"."+o,(e=a.showInputField(f,s,t)).$field.addClass(""),v[r][o]=e})),n},a.onSetValues=function(t){var i=!0;r((function(t,r,o){var l=a.$element.find('> [data-device-size="'+t+'"]');!function(t,i){for(var r=0;r<s.length;r++)for(var o=s[r],a=0;a<n.length;a++){var l=n[a];if(t.hasClass(w(o,i,l,e)))return!0}return!1}(a.obj,r)?l.removeClass("sc-has-value"):(l.addClass("sc-has-value"),t!=f&&(i=!1))})),i?a.$element.addClass("sc-none-or-all"):a.$element.removeClass("sc-none-or-all")},a}},s.getGappingControl=function(t){return s.getDevicesRowGapControlFactory("".concat(t,".row.rowGap"),t,(function(e,i,s){var n=b,r={type:"select",name:null,placeholder:i,show_empty:!0,options:function(){for(var e=[],r=0;r<n.length;r++){var o=n[r];e.push({key:w(i,s,o,t),name:o,num:o})}return e},action:"custom",async_options_function:!0,more_prop:{size:e,direction:i},get_value:function(e,i,s,r){for(var o=r.options(),a=0;a<o.length;a++)if(e.hasClass(o[a].key))return o[a].key;var l=r.more_prop.size,c=r.more_prop.direction,h=l==f?"":"-"+l;for(a=0;a<n.length;a++){var u=n[a],p=w("",h,u,t);if(e.hasClass(p))return w(c,h,u,t)}return null},set_value:function(e,i,s,r,o,a){var l=a.options();$.each(l,(function(t,s){if(s.key==i)return!0;e.hasClass(s.key)&&e.removeClass(s.key)}));for(var c=a.more_prop.size,h=a.more_prop.direction,u="x"===h?"y":"x",p=c==f?"":"-"+c,d=!0,m=0;m<n.length;m++){var g=n[m],y=w("",p,g,t);e.hasClass(y)&&(e.removeClass(y),e.addClass(w(u,p,g,t)))}var b=function(t,e,i,s){return t?t.replace("q-".concat("column"===s?"col-":"","gutter")+(i||"")+(e?"-".concat(e):"")+"-",""):null}(i,h,p,t),v=w(u,p,b,t);return e.hasClass(v)&&(e.removeClass(v),e.addClass(w("",p,b,t)),d=!1),d&&e.addClass(i),i}};return r}))},s.init(),s}({num_columns:u,sizes:p,sizes_breakpoints:d,sizes_breakpoints_map:m,sizes_view_sizes:[375,960,1280,1920,2560],sizes_icons:["icon-Xs","icon-IPAD","icon-tableta-lezeca","icon-ikone100--copy_laptop","icon-Lg"],size_for_all:f,sizes_names:["All","Small","Medium","Large","Extra Large"],prefix:o,col_prefix_class:"col",isColumn:h,onClickOnColumnPoint:function(){var t=this;Promise.resolve().then(i.bind(i,318)).then((function(e){var i=e.def_all;try{PgQuickProperties([i.sections[t.options.prefix+"columns"]],t.menu.pgel,t.$element,"Column size &amp; order",300)}catch(t){}}))},version_name:"".concat(l," ").concat(n.Fq),reqVersion:n.N$,skipVersion:n.Zo,framework_prefix:o,container_selector:".container,.container-fluid",grid_container_selector:"row",style:"",no_include_local_question:!0,createDisplayHelpers:!1,showGridInMenu:!1,showColumnInMenu:!1},s.M,r.Yr.minor_version),b=new PgToggleButtonMaker,v=y.getSpacingControl,w=y.getGappingControl,k=(y.executeScriptInPageDelayed,y.getDevicesControlFactory),_=y.onSectionWithDevicesControlsShown,x=y.makeFieldLabelForSize,S=function(t){return y.addPrefixToSectionsAndFields(t)};s.M.on_get_menu_points=function(t,e,i,s){y.getMenuPoints(t,e,i,s)},s.M.on_page_view_resized=function(t,e){y.onPageViewResized(t,e)},s.M.on_get_device_sizes=function(t,e){y.getDeviceSizesForPageViewMenu(t,e),!1!==r.fh&&t.setAllBreakpoints(e.filter((function(t){return t.w_range[0]})).map((function(t){return"".concat(t.w_range[0],"px")})))},s.M.on_page_shown_in_live_view=function(t,e){y.show(e)},s.M.on_get_floating_tools_sections=function(t,e){if(!floating_sections){floating_sections=[];var i=function(t){for(var e=["border","border-top","border-end","border-bottom","border-start"],i=!1,s=0;s<e.length;s++)if(t.hasClass(e[s])){i=!0;break}i||t.addClass("border")},n=new PgFloatingToolsSection(o+"border","Border");n.addControl(getControl("bsborders","bordercolor",{on_before_set:i,label:'<i class="icon icon-Pin20"></i>',buttons:!1,submenu:{name:"Border sides",all_classes:["border","border-top","border-end","border-bottom","border-start","border-0","border-top-0","border-end-0","border-bottom-0","border-start-0"],combine_with_parent:!0,items:[{key:"border",name:"All sides"},{key:"border-top",name:"Top"},{key:"border-end",name:"End"},{key:"border-bottom",name:"Bottom"},{key:"border-start",name:"Start"},{key:"border-bottom border-top",name:"Top &amp; Bottom"},{key:"border-start border-end",name:"Start &amp; End"}]},on_get_current_value_label:function(t,e){for(var i=s.M.bsGetBorderColorOptions(""),n=0;n<i.length;n++)if(t.classes.indexOf(i[n].key)>=0)return i[n].html;return this.options.label}})),n.addControl(getControl("bsborders","widthbotder",{on_before_set:i,name:"Border width",label:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="currentColor" class="bi bi-border-width" viewBox="0 0 16 16">\n <path d="M0 3.5A.5.5 0 0 1 .5 3h15a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5H.5a.5.5 0 0 1-.5-.5v-2zm0 5A.5.5 0 0 1 .5 8h15a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5H.5a.5.5 0 0 1-.5-.5v-1zm0 4a.5.5 0 0 1 .5-.5h15a.5.5 0 0 1 0 1H.5a.5.5 0 0 1-.5-.5z"/>\n </svg>'}));var r=getControl("bsborders","raduisborder",{label:'<i class="icon icon-round_lu"></i>',buttons:!1});r.def.options=[{key:"rounded",name:"All sides"},{key:"rounded-0",name:"All sides none"},{key:"rounded-1",name:"All sides small"},{key:"rounded-2",name:"All sides medium"},{key:"rounded-3",name:"All sides large"},{key:"rounded-top",name:"Top"},{key:"rounded-bottom",name:"Bottom"},{key:"rounded-start",name:"Left"},{key:"rounded-end",name:"Right"},{key:"rounded-circle",name:"Circle"},{key:"rounded-pill",name:"Pill"}],n.addControl(r),floating_sections.push(n);var a=[{key:"justify-content-start",name:"Start",html:b.makeIcon("223",{attributes:{title:"Start"}})},{key:"justify-content-end",name:"End",html:b.makeIcon("218",{attributes:{title:"End"}})},{key:"justify-content-center",name:"Center",html:b.makeIcon("219",{attributes:{title:"Center"}})},{key:"justify-content-between",name:"Between",html:b.makeIcon("206",{attributes:{title:"Between"}})},{key:"justify-content-around",name:"Around",html:b.makeIcon("205",{attributes:{title:"Around"}})},{key:"justify-content-evenly",name:"Evenly",html:b.makeIcon("205",{attributes:{title:"Evenly"}})}],l=[{key:"align-items-start",name:"Start",html:b.makeIcon("223",{attributes:{title:"Start"}})},{key:"align-items-end",name:"End",html:b.makeIcon("220",{attributes:{title:"End"}})},{key:"align-items-center",name:"Center",html:b.makeIcon("221",{attributes:{title:"Center"}})},{key:"align-items-baseline",name:"Baseline",html:b.makeIcon("212",{attributes:{title:"Baseline"}})},{key:"align-items-stretch",name:"Stretch",html:b.makeIcon("214",{attributes:{title:"Stretch"}})}],c=function(t,e,i,s){var n=new PgApi,r=n.getFlexSettings(t);if(r.grid)return pinegrow.showQuickError("The element uses CSS Grid to position its children. Use the grid properties for the layout."),!1;var o=[],c=[];r.flex||o.push(r.inline?"d-inline-flex":"d-flex");var h=i,u=e[0];return"column"===r.direction&&(u=u.replace(h,s),h=s),c="align-items-"===h?l.map((function(t){return t.key})):a.map((function(t){return t.key})),c.filter((function(e){return n.hasClass(t,e)})),o.push(u),n.removeClass(t,c),n.addClass(t,o),!1},h=new PgFloatingToolsSection(o+"align","Align content");h.addControl(new PgFloatingToolsControl({key:o+"align.h",type:"select",name:"Align children horizontally w. Flex",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:a},{label:'<i class="icon icon-219"></i>',on_before_set:function(t,e){return c(t,e,"justify-content-","align-items-")}})),h.addControl(new PgFloatingToolsControl({key:o+"align.v",type:"select",name:"Align children vertically w. Flex",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:l},{label:'<i class="icon icon-221"></i>',on_before_set:function(t,e){return c(t,e,"align-items-","justify-content-")}}))}},s.M.on_plugin_activated=function(t,e){y.onFrameworkActivatedOnPage(t),e&&e(s.M)},s.M.on_page_changes_done=function(t,e,i){y.updateHelpersAfterChange(t,e,i)},s.M.on_inline_editing_done=function(t,e){y.updateHelpersAfterChange(t,null,new PgCollection(e))},s.M.on_page_selected=function(t){t&&(0,n.EB)(t)};var T=function(t,e){return e?"pg-classes"!==t&&!t.startsWith(o):!!t.startsWith(o)};s.M.on_before_properties_shown=function(t,e,i){t&&!t.data["".concat(r.Yr.type,"Version")]&&(0,n.EB)(t),r.hC&&e&&(i.show_classes_control=!0,i.show_section_nav_control=!0,i.filter_sections=T,i.show_custom_sections_in_general=!0)};var C=[{name:"Text color and typography",sections:[o+"textcolor",o+"typography"],icon:"icon-Pin18"},{name:"Background",sections:[o+"background"],icon:"icon-Pin21"},{name:"Margin, padding and dimension",sections:[o+"spacing",o+"dimension"],icon:"icon-Pin16"},{name:"Visibility and position",sections:[o+"visibility",o+"position",o+"overflow",o+"mouse"],icon:"icon-Pin17"},{name:"Shadows",sections:[o+"elevation"],icon:"icon-Pin23"},{name:"Border",sections:[o+"border"],icon:"icon-Pin20"},{name:"Flexbox",sections:[o+"flexcontainer",o+"columns"],icon:"icon-Pin22"},{name:"Transform and transition",sections:[o+"transform"],icon:"icon-Pin24"}];s.M.on_get_sections_for_prop_section_nav=function(t,e){r.hC&&C.forEach((function(t){t.ignore_has_data=!0,e.find((function(e){return e.name===t.name}))||e.push(t)}))}},204:(t,e,i)=>{"use strict";i.r(e);var s=i(676),n=(i(377),i(289)),r=i(681),o=i(297),a=i(100),l=i(870),c=i(611),h=i(230),u=i(421),p=i(660),d=i(104);function f(t){var e=m();return function(){var i,s=p(t);if(e){var n=p(this).constructor;i=Reflect.construct(s,arguments,n)}else i=s.apply(this,arguments);return u(this,i)}}function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(m=function(){return!!t})()}var g=function(t){h(i,t);var e=f(i);function i(t){return a(this,i),e.call(this,"quasar.colors",t,(function(){return""}))}return l(i,[{key:"onGetConfigObject",value:function(t,e){"init"===t&&(e.theme=e.theme||{},e.theme.extend=e.theme.extend||{},e.theme.extend.colors=e.theme.extend.colors||{},this.colors.forEachColor((function(t,i,s){try{if(s.hasShades()){var n={};s.forEachShade((function(t,e){n[t]=chroma(pgMakeCompatibleColor(e)).hex()})),e.theme.extend.colors[t]=n}else e.theme.extend.colors[t]=chroma(pgMakeCompatibleColor(i)).hex()}catch(t){}})))}},{key:"populateDefaultParams",value:function(t){var e,s,n;t||this.colors.clear(),this.colors.add("primary","#6750a4",!1,{50:"#eeedf4",100:"#d8d1e6",200:"#c2b6d9",300:"#ac9ccc",400:"#9582bf",500:"#7e68b1",600:"#6750a4",700:"#5e4996",800:"#564388",900:"#4d3c7b",950:"#45366e",DEFAULT:"#3d2f61"},!0),this.colors.add("secondary","#625b71",!1,{50:"#eeeeef",100:"#d5d4d9",200:"#bdbac3",300:"#a6a1ae",400:"#8e8999",500:"#787285",600:"#625b71",700:"#5a5367",800:"#524c5e",900:"#4a4455",950:"#423d4c",DEFAULT:"#3a3643"},!0),this.colors.add("tertiary","#7d5260",!1,{50:"#f0edee",100:"#ddd2d5",200:"#c9b7bc",300:"#b69da4",400:"#a3838d",500:"#906a76",600:"#7d5260",700:"#724b58",800:"#684450",900:"#5e3e48",950:"#543740",DEFAULT:"#4a3139"},!0),this.colors.add("success","#2e7d32",!0,{50:"#ecf0ec",100:"#cdddcb",200:"#aec9ab",300:"#90b68c",400:"#71a36d",500:"#519050",600:"#2e7d32",700:"#2a722e",800:"#26682a",900:"#235e26",950:"#1f5422",DEFAULT:"#519050"},!0),this.colors.add("warning","#ed6c02",!0,{50:"#fcefeb",100:"#ffd9c7",200:"#ffc4a4",300:"#ffae7f",400:"#fb985c",500:"#f58238",600:"#ed6c02",700:"#d96302",800:"#c55a02",900:"#b25102",950:"#9f4801",DEFAULT:"#f58238"},!0),this.colors.add("error","#d32f2f",!0,{50:"#f9ecec",100:"#f9cfca",200:"#f6b2a9",300:"#f19488",400:"#e97669",500:"#df564c",600:"#d32f2f",700:"#c12b2b",800:"#b02727",900:"#9e2323",950:"#8d2020",DEFAULT:"#df564c"},!0),this.colors.add("info","#0288d1",!0,{50:"#ebf1f9",100:"#d0dff2",200:"#b4ccec",300:"#96bbe5",400:"#76a9df",500:"#5098d8",600:"#0288d1",700:"#027cbf",800:"#0271ae",900:"#02669d",950:"#015b8c",DEFAULT:"#5098d8"},!0),this.colors.add("neutral","#121212",!0,{50:"#ebebeb",100:"#c2c2c2",200:"#9b9b9b",300:"#757575",400:"#525252",500:"#303030",600:"#121212",700:"#111111",800:"#0f0f0f",900:"#0e0e0e",950:"#0c0c0c",DEFAULT:"#0b0b0b"},!0),(e=i,"populateDefaultParams",s=this,"function"==typeof(n=c(p(1&3?e.prototype:e),"populateDefaultParams",s))?function(t){return n.apply(s,t)}:n)([])}}]),i}(PgDmDesignSkillColors),y=function(t){h(i,t);var e=f(i);function i(t){var s;return a(this,i),(s=e.call(this,"quasar","Quasar Design")).framework=t,o(s),s.on_engine_ready_funcs=[],s.colors=new PgDmDesignColors,s.colors.can_edit=!0,s.colors.mode="class",s.colors.default_shades=["50","100","200","300","400","500","600","700","800","900","950","DEFAULT"],s.setDefaultSettings(),s.addSkills(),s}return l(i,[{key:"addSkills",value:function(){var t=new g(this.colors);this.addSkill(t),this.fonts_skill=new b,this.addSkill(this.fonts_skill),this.bck_skill=new PgDmDesignSkillBackground(t,"QUASAR"),this.bck_skill.onGetConfigObject=function(t,e){if("init"===t){e.theme=e.theme||{},e.theme.extend=e.theme.extend||{},e.theme.extend.backgroundImage=e.theme.extend.backgroundImage||{};var i=this.getBackgroundImagesAsObject();$.each(i,(function(t,i){e.theme.extend.backgroundImage[t]=i}))}},this.addSkill(this.bck_skill)}},{key:"getActiveFonts",value:function(){return this.fonts_skill.getActiveFonts()}},{key:"canEditColors",value:function(){return!0}},{key:"supportsColorShades",value:function(){return!0}},{key:"getEngine",value:function(t){var e=this;this.engine?this.engine.isReady()?t(this.engine):e.on_engine_ready_funcs.push(t):this.engine=new v((function(i){e.on_engine_ready_funcs.forEach((function(t){t(i)})),e.on_engine_ready_funcs=[],t&&t(i)}),this)}},{key:"hasOnlyDefaultColors",value:function(){var t=["primary","secondary","tertiary","success","warning","error","info","neutral"];if(t.length!==this.colors.getNumberOfColors())return!1;var e=0,i=this;return t.forEach((function(t){i.colors.getColorObject(t)&&e++})),e===t.length}},{key:"onBeforeSurpriseMe",value:function(t){t()}},{key:"onGetDesignThumbHTML",value:function(t,e){e.fonts=this.fonts_skill.getDesignThumbHTML(t)}},{key:"addCustomizableColors",value:function(){}},{key:"getFontsOptions",value:function(t){return this.fonts_skill.getFontsOptions(t)}},{key:"getBackgroundImageOptions",value:function(){var t=[],e=this.bck_skill.getBackgroundImagesAsObject();return $.each(e,(function(e,i){t.push({key:"bg-"+e,name:e})})),t}},{key:"getColorOptions",value:function(t){for(var e=this.getColorsForPicker(t),i=[],s=0;s<e.length;s++)for(var n=e[s],r=0;r<n.length;r++)i.push(n[r]);return i}},{key:"getColorsForPicker",value:function(t){var e=[[{key:t+"current",name:"current",color:"white",text:"c"},{key:t+"transparent",name:"transparent",color:"rgba(0,0,0,0)"},{key:t+"black",name:"black",color:"black"},{key:t+"white",name:"white",color:"white"},{key:t+"inherit",name:"inherit",color:"rgba(0,0,0,0.5)"}]];return this.colors.getColorsForPicker(t,e)}},{key:"destroyEngine",value:function(){this.engine&&this.engine.destroy(),this.engine=null}},{key:"recreateEngine",value:function(t){this.destroyEngine(),this.getEngine(t,this)}}]),i}(PgDmDesignProvider),b=function(t){h(i,t);var e=f(i);function i(){var t;a(this,i),(t=e.call(this,"fonts","Fonts")).fixed=["sans","serif"],t.max_num=10;for(var s=o(t),n=new PgToggleButtonMaker,r=1;r<=t.max_num;r++){var l=r<=t.fixed.length?t.fixed[r-1]:null;t.addControl("name_".concat(r),{name:"Name",type:l?"hidden":"text",default_value:l,start_repeat_item:l||"Custom font ".concat(r-t.fixed.length),tw_repeat_item_index:r,repeat_item_open:null!==l,add_repeat_item_label:"Add font family",on_create_repeat_item_button:function(t){$('<button class="pg-button" style="margin-left:4px;height: 27px;vertical-align: top;">Manage fonts...</button>').appendTo(t).on("click",(function(t){t.preventDefault(),pinegrow.fontLibrary.showLibrary()}))},dm_no_lock:"placeholder",on_repeat_item_removed:function(t,e,i){e.removeClass("has-value"),pinegrow.requireProjectDB((function(t){t.startBatchUpdates();var e=i.tw_repeat_item_index;s.setParam("family_".concat(e),""),s.setParam("name_".concat(e),"");for(var n=e+1;n<=s.max_num;n++){var r=s.getParam("name_".concat(n)),o=s.getParam("family_".concat(n));(r||o)&&(s.setParam("family_".concat(n-1),o),s.setParam("name_".concat(n-1),r),s.setParam("family_".concat(n),""),s.setParam("name_".concat(n),""))}t.endBatchUpdates("Remove font family","design_panel"),pgDmStore.update()}))}}),t.addControl("family_".concat(r),{name:"Family",type:"select",show_empty:!0,fill_list_on_open:!0,can_add_items:!0,options:function(){return pinegrow.fontLibrary.getSelectOptions()}}),s.addControl("".concat(r,"_options_container"),{name:"Use for",type:"displayhtmlwithlabel",html:"",class:"crsa-field-text-font-options-container crsa-field-text-font-options-container-".concat(r),dm_no_lock:"placeholder"});for(var c=1;c<=6;c++)s.addControl("h".concat(c,"_").concat(r),{name:"H"+c,type:"select",toggle_buttons:!0,append_to:".crsa-field-text-font-options-container-".concat(r),without_text:!0,show_empty:!0,dm_no_lock:!0,options:[{key:"h"+c,name:"H"+c,html:n.makeText("H"+c,{attributes:{title:"Use for H"+c},styles:{padding:"4px 0"}})}]})}return t}return l(i,[{key:"getFontsOptions",value:function(t){for(var e=[],i=!1,s=1;s<=this.max_num;s++){var n=s<=this.fixed.length?this.fixed[s-1]:this.getParam("name_".concat(s)),r=this.getParam("family_".concat(s));n&&(s<=this.fixed.length||r)&&(e.push({key:t+n,name:n}),"mono"===n&&(i=!0))}return i||e.push({key:t+"mono",name:"mono"}),e}},{key:"getActiveFonts",value:function(){for(var t=[],e=1;e<=this.max_num;e++){var i=e<=this.fixed.length?this.fixed[e-1]:this.getParam("name_".concat(e)),s=this.getParam("family_".concat(e));i&&s&&t.indexOf(s)<0&&t.push(s)}return t}},{key:"getDesignThumbHTML",value:function(t){var e=t.findOne('dmdesignskill[skill="fonts"]'),i="",s=0;if(e)for(var n=1;n<=this.max_num;n++){var r=n<=this.fixed.length?this.fixed[n-1]:e.getAttribute("name_".concat(n)),o=e.getAttribute("family_".concat(n));r&&o&&s<2&&(i+='<p style="font-family: '.concat(o.replace(/"/g,"'"),';margin: 0px 0px;white-space: nowrap;">').concat(o.replace(/["']/g,""),"</p>"),s++)}return i}},{key:"onSurpriseMe",value:function(t){for(var e=1;e<=this.max_num;e++){var i=e<=this.fixed.length?this.fixed[e-1]:this.getParam("name_".concat(e)),s="family_".concat(e);if(!this.isLocked(s)&&i){var n="all";(this.getParam("h1_".concat(e))||this.getParam("h2_".concat(e)))&&(n="h1");var r=pinegrow.fontLibrary.getRandomFont(n);this.setParam(s,r.family)}}t()}},{key:"onGetCSS",value:function(t,e){if("import"===t){var i=pgDmStore.design.fonts;i.clear();for(var s=1;s<=this.max_num;s++){var n=s<=this.fixed.length?this.fixed[s-1]:this.getParam("name_".concat(s)),r=this.getParam("family_".concat(s));if(n&&r){var o={key:n,family:r};i.setFont(o)}}var a=i.getImportStatements(e),l=a.length?a.join("\n")+"\n\n":"",c=i.getFontFontFaceStatements();return l+(c.length?c.join("\n\n")+"\n\n":"")}if("rules"===t){for(var h="",u=1;u<=this.max_num;u++){var p=u<=this.fixed.length?this.fixed[u-1]:this.getParam("name_".concat(u)),d=this.getParam("family_".concat(u));if(p&&d){for(var f=[],m=1;m<=6;m++)this.getParam("h".concat(m,"_").concat(u))&&f.push("h"+m);f.length&&(h+="\n".concat(f.join(",")," {\n @apply font-").concat(p,";\n} \n"))}}return h}return""}},{key:"onGetConfigObject",value:function(t,e){if("init"===t){e.theme=e.theme||{},e.theme.extend=e.theme.extend||{},e.theme.extend.fontFamily=e.theme.extend.fontFamily||{};for(var i=1;i<=this.max_num;i++){var s=i<=this.fixed.length?this.fixed[i-1]:this.getParam("name_".concat(i)),n=this.getParam("family_".concat(i));if(s&&n){var r=pinegrow.fontLibrary.getFontByFamily(n);r&&(n=r.getFamilyWithFallback()),e.theme.extend.fontFamily[s]=[n]}}}}}]),i}(PgDmDesignSkill),v=function(t){h(i,t);var e=f(i);function i(t,s){var n;a(this,i),n=e.call(this,t);var r=o(n);if(n.design_provider=s,n.external_build=!0,n.is_ready=!1,n.done_list=[],n.delayedTasks=new PgDelayedTasks,n.busy=!1,n.update_on_done=!1,pinegrow.getCurrentProject(),n.custom_cs_url=null,n.fs=require("fs"),n.external_build){try{var l=pinegrow.app_designer.addonManager.pluginsManager.pluginsProcessed.find((function(t){return"quasar"===t.key}));l.options.cssPath&&(s.settings.external_source_url=l.options.cssPath&&crsaMakeUrlFromFile(l.options.cssPath)),s.settings.external_config_path=l.options.configPath,s.settings.external_theme_path=l.options.themePath}catch(t){}return n.is_ready=!0,setTimeout((function(){t&&t(r)}),1),u(n)}return t&&t(r),n}return l(i,[{key:"activateOnPage",value:function(t,e){e&&e()}},{key:"update",value:function(t){t&&this.done_list.push(t),this.delayedTasks.run("update",this.updateTask.bind(this),this.external_build?1:100)}},{key:"getConfigFile",value:function(){for(var t=0,e=["quasar.config.cjs","quasar.config.mjs","quasar.config.js","quasar.config.ts","quasar.config.cts","quasar.config.mts"];t<e.length;t++){var i=e[t];try{var s=pinegrow.getCurrentProject().getAbsolutePath(i);return this.fs.accessSync(s),s}catch(t){}}}},{key:"updateTask",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this,s=pinegrow.getCurrentProject(),n=pinegrow.getSelectedPage();if(!e&&!n)return i.done_list.forEach((function(t){t()})),void(i.done_list=[]);if(this.busy&&Date.now()-this.busy_time>4e3&&(this.busy=!1),this.busy)this.update_on_done=!0;else{var o={css:"",config:{},cs_url:this.custom_cs_url};pinegrow.dispatchEvent("on_dm_get_css",null,"import",o),pinegrow.dispatchEvent("on_dm_get_css",null,"init",o),o.css,o.font_urls=[];var a=null===(t=o.css)||void 0===t||null===(t=t.match(/'([^']+)'/))||void 0===t?void 0:t[1];a&&o.font_urls.push(a),o.background_urls={},Object.entries(o.config.theme.extend.backgroundImage).forEach((function(t){var e,i=r(t,2),s=i[0],n=i[1],a=null==n||null===(e=n.match(/'([^']+)'/))||void 0===e?void 0:e[1];a&&(o.background_urls[s]=a)})),o.css="",pinegrow.dispatchEvent("on_dm_get_css",null,"rules",o);try{this.external_config_path=this.design_provider.settings.external_config_path||this.getConfigFile(),this.external_theme_path=this.design_provider.settings.external_theme_path,this.external_theme_path_alt=this.external_theme_path&&!this.external_theme_path.endsWith(".mjs")?this.external_theme_path.replace(path.extname(this.external_theme_path),".mjs"):null,this.design_provider.settings.external_source_url&&(this.external_source_file=crsaMakeFileFromUrl(s.getAbsoluteUrl(this.design_provider.settings.external_source_url)));var l=this.fs.readFileSync(this.external_theme_path||this.external_config_path,{encoding:"utf8"}),c=new PgSimpleJsParser(l),h="\nconst pg_colors = ".concat(c.objToString(o.config.theme.extend.colors),"\n\nconst pg_fonts = ").concat(c.objToString(o.config.theme.extend.fontFamily)," \n\nconst pg_font_urls = ").concat(c.objToString(o.font_urls),"\n\nconst pg_backgrounds = ").concat(c.objToString(o.config.theme.extend.backgroundImage)," \n \nconst pg_background_urls = ").concat(c.objToString(o.background_urls),"\n\n ");l=pgf.uses_hot_reload?"/* Pinegrow generated Design Panel Begin */\n/* @ts-nocheck */\n".concat(h,"\nmodule.exports = {\npg_colors,\npg_fonts,\npg_font_urls,\npg_backgrounds,\npg_background_urls,\n}\n\n/* Pinegrow generated Design Panel End */"):pgUpdateGeneratedSectionContent(l,"Design Panel",h,"prepend"),this.fs.writeFileSync(this.external_theme_path||this.external_config_path,l,{encoding:"utf8"}),this.external_theme_path_alt&&this.fs.writeFileSync(this.external_theme_path_alt,l.replace("module.exports =","export ").replace("module.exports=","export "),{encoding:"utf8"})}catch(t){console.warn("Unable to update quasar config file and source file.",t)}setTimeout((function(){i.update_on_done?i.update():(i.done_list.forEach((function(t){t()})),i.done_list=[]),i.busy=!1,i.update_on_done=!1}),1)}}},{key:"destroy",value:function(){this.design_provider=null,this.delayedTasks.destroy()}}]),i}(PgDmEngine);pinegrow.addEventHandler("on_vite_plugin_activated",(function(t,e,i){if(e===d.Yr.key&&((0,d.EX)(i.options.themePath),!1!==i.options.themePath)){var s=null;void 0!==window.pgDmStore&&(s=window.pgDmStore);var r=new y(n.MS);s.registerDesignProvider("quasar",r),n.MS.on_dm_detect_design_providers=function(t,e){e.push("quasar")}}}));var w=i(290),k=i(706);function _(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return x(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?x(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var s=0,n=function(){};return{s:n,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return o=t.done,t},e:function(t){a=!0,r=t},f:function(){try{o||null==i.return||i.return()}finally{if(a)throw r}}}}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}function S(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function T(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?S(Object(i),!0).forEach((function(e){w(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):S(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var C={},A={},E={textcolor:{name:"Text Color",compact:!0,fields:{palettetextcolor:{name:"Palette",control_prefix:"text",control_type:"text"}}},bgcolor:{name:"Background Color",compact:!0,fields:{palettebgcolor:{name:"Palette",control_prefix:"bg",control_type:"color"}}}};pinegrow.addEventHandler("on_show_properties_alternative_event",(function(t,e,i,s,o){n.MS.getPaletteColors&&n.MS.getPaletteColors(t),Object.entries(E).forEach((function(t){var i,o,a=r(t,2),l=a[0],c=a[1],h=s&&s.find((function(t){return t.type===n.O4+"all"})),u=(i=c.fields,o=Object.entries(i).reduce((function(t,e){var i=r(e,2),s=i[0],o=i[1],a={};A[l]=s,k.GW&&(A[l]=Object.entries(k.GW).reduce((function(t,e){var i=r(e,2),s=i[0],n=i[1];return"".concat(t,"_").concat(s,"_").concat(n)}),s)),s=A[l]+"_dark_"+k.dT;var c=o.control_prefix,h=n.O4+l;return C[s]||(C[s]={type:"select",name:o.name,show_empty:!0,toggle_buttons:!0,fill_list_on_open:!0,colors:function(t){return(0,k.uQ)("".concat(c,"-"))},parent_section_id:h,options:function(){var t=("bg"===c?k.uY:k.T5).map((function(t){return T(T({},t),{},{key:"".concat(c,"-").concat(t.key)})}));return t.length?t:[{key:"transparent",name:"Transparent",html:n.bm.makeText("Transparent",{styles:{"font-size":"11px"},attributes:{title:"Transparent"}})}]},action:"custom",get_value:function(t,e,i,s){var n,r=(0,k.VH)("".concat(c,"-")).map((function(t){return t.key})),o=_(t.getClasses());try{for(o.s();!(n=o.n()).done;){var a=n.value;if(r.includes(a))return a}}catch(t){o.e(t)}finally{o.f()}},set_value:function(t,e,i,s,n,r,o){var a=(0,k.VH)("".concat(c,"-")).map((function(t){return t.key})),l=t.getClasses(),h=!1;if(l.length){var u,p=_(l);try{for(p.s();!(u=p.n()).done;){var d=u.value;(s===d||a.includes(d))&&(t.removeClass(d),h=!0)}}catch(t){p.e(t)}finally{p.f()}}return e&&(t.addClass(e),h=!0),h&&pinegrow.reselectElement(t),e}}),a[s]=C[s],T(T({},t),a)}),{}),o);if(h){var p={framework:n.MS,key:c.name,name:c.name,fields:u,component_definition:h},d=e.find((function(t){return t.name===c.name}));if(d)Object.entries(u).forEach((function(t){var e=r(t,2),i=(e[0],e[1]),s=Object.entries(d.fields).find((function(t){var e=r(t,2);return e[0],e[1].name===i.name}));if(s){var n=s[0];delete d.fields[n]}})),d.fields=T(T({},u),d.fields);else{var f=e.findIndex((function(t){return t.name===c.name}));f>-1&&e.splice(f,1,p)}}}))}));var O=i(318),M=null,P=function(t){"checkbox"===t.type&&(t.type="select",t.toggle_buttons=!0,t.options=[{key:t.value,name:t.name,html:n.bm.makeText(t.name,{attributes:{title:t.name}})}])};n.MS.on_get_floating_tools_sections=function(t,e){if(d.hC){var i=n.O4;if(!(M=null)){var s=function(t,e,s){var n,r=cloneObject(null===(n=O.def_all.sections[i+t])||void 0===n?void 0:n.fields[e]);return P(r),r.key=e,new PgFloatingToolsControl(r,s)},r=function(t,e,s){var n={name:"More",key:t,type:"select",options:[]},r={};return e.forEach((function(e){var s;r[e]=cloneObject(null===(s=O.def_all.sections[i+t])||void 0===s?void 0:s.fields[e]),P(r[e]);var o=r[e];n.options.push({key:e,name:o.name})})),(s=s||{}).buttons=!1,s.no_clear_on_first_level=!0,s.submenu=function(t){r[t].toggle_buttons&&(r[t].toggle_buttons=!1);var e="function"==typeof r[t].options?r[t].options():r[t].options;return{items:e,combine_with_parent:!1,name:r[t].name,require_submenu_selection:!0,all_classes:e.map((function(t){return t.key}))}},new PgFloatingToolsControl(n,s)};M=[];var o=new PgFloatingToolsSection(i+"text","Text color and typography");o.addControl(s("textcolor","".concat(i,"textcolor"),{label:'<i class="icon icon-ikone1-100-copy-63"></i>',cursor:'<i class="icon icon-ikone1-100-copy-63" style="color:$COLOR !important;"></i>',svg_support:"stroke"})),o.addControl(s("typography","".concat(i,"typography"),{label:'<i class="icon icon-font-size"></i>'})),o.addControl(s("typography","".concat(i,"fontweight"),{label:'<i class="icon icon-weight"></i>'})),o.addControl(s("typography","".concat(i,"textalign"),{label:'<i class="icon icon-align-left"></i>'})),o.addControl(s("typography","".concat(i,"transform"),{label:'<i class="icon icon-Transform-uppercase"></i>'})),o.addControl(r("typography",["".concat(i,"whitespace"),"".concat(i,"fontstyle"),"".concat(i,"fontbold"),"".concat(i,"decoration")],{label:'<i class="icon icon-down"></i>',name:"More options"})),M.push(o);var a=new PgFloatingToolsSection(i+"background","Background");a.addControl(s("background","".concat(i,"bgcolor"),{label:'<i class="icon icon-Pin21"></i>',cursor:'<i class="icon icon-Pin21" style="color:rgba(0,0,0,0.25) !important;background-color:$COLOR;"></i>',svg_support:"fill",on_filter_svg:function(t,e){for(var i=0;i<t.length;i++)t[i]=t[i].replace("bg-","text-");for(i=0;i<e.length;i++)e[i]=e[i].replace("bg-","text-")}})),M.push(a);var l=new PgFloatingToolsSection(i+"dimension","Dimension");l.addControl(s("dimension","".concat(i,"width"),{label:'<i class="icon icon-width"></i>'})),l.addControl(s("dimension","".concat(i,"height"),{label:'<i class="icon icon-height"></i>'})),l.addControl(r("dimension",["".concat(i,"display"),"".concat(i,"fit")],{label:'<i class="icon icon-down"></i>',name:"More options"})),M.push(l);var c=new PgFloatingToolsSection(i+"visibility","Visibility and position");c.addControl(s("position","".concat(i,"position_common"),{label:'<i class="icon icon-Pin17"></i>'})),c.addControl(s("position","".concat(i,"horizontal_alignment"),{label:'<i class="icon icon-template-columns"></i>'})),c.addControl(s("position","".concat(i,"vertical_alignment"),{label:'<i class="icon icon-template-rows"></i>'})),c.addControl(r("visibility",["".concat(i,"disabled"),"".concat(i,"hidden"),"".concat(i,"invisible"),"".concat(i,"readonly"),"".concat(i,"ellipsis"),"".concat(i,"zindex"),"".concat(i,"orientation"),"".concat(i,"platform_only"),"".concat(i,"print")],{label:'<i class="icon icon-down"></i>',name:"More options"})),M.push(c)}M.forEach((function(t){e.push(t)}))}},i(143),i(802);var L,F,j,D=new PgComponentType(n.O4+"row","Row",{selector:".row",tags:"major",preview:(F='<div style="height:60px;background:#eee;"></div>',j="border:2px solid #0098cc;",'<div class="container-fluid" style="'+(L="")+'"> <div class="row" style="'+j+'"> <div class="col-4" style="'+L+'">'+F+'</div> <div class="col-4">'+F+'</div> <div class="col-4">'+F+'</div> </div> <div class="row" style="margin-top:12px;"> <div class="col-4">'+F+'</div> <div class="col-4">'+F+'</div> <div class="col-4">'+F+"</div> </div> </div>"),code:'<div class="row"></div>',empty_placeholder:!0,action_menu:{add:[n.O4+"column"]}});n.MS.addComponentType(D);var z=new PgComponentType(n.O4+"column","Column",{tags:"major",selector:n.t3,parent_selector:".row",code:'<div class="col-md-4"><h3>Column title</h3> <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p> </div>',empty_placeholder:!0,name:"Column"});n.MS.addComponentType(z);var I=new PgFrameworkLibSection(n.O4+"grid","Grid");I.setComponentTypes([D,z]),(0,n.r2)(I),require("path"),pinegrow.addEventHandler("on_vite_plugin_activated",(function(t,e,i){e===d.Yr.key&&(!1===i.options.utilities?(0,d.JF)(i.options.utilities):(0,d.JF)(!0),n.MS.utilities=d.hC)})),pinegrow.addEventHandler("on_project_closed",(function(){(0,d.JF)(!1),n.MS.utilities=d.hC}));var R,B,N,W=i(461),U=i(841),q={classes_map:{},classes_list:[],classes_changed:!1,classes_id:0,css_vars_map:{},css_vars_list:[],css_vars_id:0,css_vars_changed:!1,ids_map:{},ids_list:[],ids_changed:!1,attribute_values:{},tags_attribute_values:{},keywords_map:{},keywords_list:[],keywords_changed:!1,contents:{},meta:{},path_map:{},path_list:[],path_changed:!1,path_id:0},H=function(t,e,i){if(null!==t&&0!==t.length&&!t.startsWith("pg-main-cs-")&&"pg-empty-placeholder"!==t)if(t in q.classes_map)q.classes_map[t].count++,s=q.classes_map[t],e&&s.sources.indexOf(e)<0&&s.sources.push(e),i&&s.sourceids.indexOf(i)<0&&s.sourceids.push(i);else{q.classes_id++;var s={key:t,name:t,count:1,sources:[],sourceids:[],id:q.classes_id};q.classes_map[t]=s,q.classes_list.push(s),q.classes_changed=!0,e&&s.sources.indexOf(e)<0&&s.sources.push(e),i&&s.sourceids.indexOf(i)<0&&s.sourceids.push(i)}},G=function t(e){e&&e.nodes&&e.nodes.forEach((function(e){if("rule"===e.type){var i=e.selector.match(/\.([a-zA-Z][a-zA-Z0-9\-\_]*)/g);if(i)for(var s=0;s<i.length;s++){var n=i[s].substr(1,i[s].length-1);n.startsWith("pg-node-id")||H(n,"quasar","pquasar")}}t(e)}))},Y=function(t){return(R=R||W(U.mark((function t(e){var i,s;return U.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=e.getAttribute("lang")||"css",t.t0=i,t.next="scss"===t.t0?4:"less"===t.t0?6:8;break;case 4:return s=PgSCSSStylesheet(),t.abrupt("break",9);case 6:return s=PgLESSStylesheet(),t.abrupt("break",9);case 8:s=PgCSSStylesheet();case 9:return t.next=11,s.loadInline(e,(function(){}));case 11:return t.abrupt("return",s);case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)},V=function(t){return(B=B||W(U.mark((function t(e){var i,s,n,r,o,a,l;return U.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(i=pinegrow.app_designer.addonManager.apiServerManager.connectionManager.repoRoot)){t.next=13;break}if(s=path.resolve(i,"node_modules","quasar","dist",e),!fs.existsSync(s)||!fs.statSync(s).isFile()){t.next=13;break}if((r=fs.readFileSync(s,{encoding:"utf8",flag:"r"})).trim()&&(n=r||""),!n){t.next=13;break}return o="<style>\n ".concat(n,"\n </style>"),a=pgCreate(o),t.next=11,Y(a);case 11:l=t.sent,G(l.getRootNode());case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)},Q=null;!function(){(N=N||W(U.mark((function t(){return U.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,V("quasar.css");case 3:return t.next=5,V("quasar.addon.css");case 5:Q=q.classes_list.map((function(t){return{key:t.key,id:t.id,name:t.name}})),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(0),console.log("Pinegrow Quasar Module: Unable to fetch quasar classList!"),console.log(t.t0);case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))).apply(this,arguments)}(),s.M.on_get_all_available_classes=function(t,e){Q&&(e.classes=Q)}},377:(t,e,i)=>{"use strict";i.d(e,{EB:()=>h,Fq:()=>a,N$:()=>u,Zo:()=>p});var s,n=i(676),r=i(104),o=r.Yr.minor_version,a=r.Yr.version,l=function(t){s=t,n.M.name_short="".concat(r.Yr.name)},c=pinegrow.getSetting("".concat(r.Yr.key,"-force-version"),"auto");"auto"!=c&&l(parseFloat(c));var h=function(t,e){"auto"==c?t.data["".concat(r.Yr.type,"Version")]&&!e?l(t.data["".concat(r.Yr.type,"Version")]):t.stylesheetsThatContain(/quasar\sv(5[0-9\.]*)/i,/quasar(\.min|)\.(css)/i,(function(e,i,n){if(e.length>0){var o=i[0][1].split("."),a=parseFloat(o[0]);o.length>1&&(a+=parseFloat(o[1])/10),l(a),t.data["".concat(r.Yr.type,"Version")]=a,n&&pinegrow.selectedElements.reselect(),console.log("version = "+s+" "+n)}}),e):l(parseFloat(c))},u=function(t){return s>=t},p=function(t){return s<t};l(o)}},s={};function n(t){var e=s[t];if(void 0!==e)return e.exports;var r=s[t]={exports:{}};return i[t](r,r.exports,n),r.exports}e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,n.t=function(i,s){if(1&s&&(i=this(i)),8&s)return i;if("object"==typeof i&&i){if(4&s&&i.__esModule)return i;if(16&s&&"function"==typeof i.then)return i}var r=Object.create(null);n.r(r);var o={};t=t||[null,e({}),e([]),e(e)];for(var a=2&s&&i;"object"==typeof a&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach((t=>o[t]=()=>i[t]));return o.default=()=>i,n.d(r,o),r},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r);var t=n(104);$((function(){$("body").one("pinegrow-ready",(function(e,i){pgAddOnManager.isAddonActive("QUASAR")?Promise.resolve().then(n.bind(n,204)).then((function(){})):console.log("Pinegrow ".concat(t.Yr.short_name," addon is not active."))}))}))})(),r})()));