@vitejs/devtools-vite 0.0.0-alpha.13 → 0.0.0-alpha.14

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.
Files changed (44) hide show
  1. package/dist/nitro.json +1 -1
  2. package/dist/public/200.html +1 -1
  3. package/dist/public/404.html +1 -1
  4. package/dist/public/_nuxt/{BSR6S2_V.js → 3WaMGJ3H.js} +1 -1
  5. package/dist/public/_nuxt/{D0XiwC-h.js → Ar1wOxvv.js} +1 -1
  6. package/dist/public/_nuxt/{DHRJYaU2.js → BGNXffQn.js} +1 -1
  7. package/dist/public/_nuxt/{CtHwuXTq.js → BHDQl9sm.js} +1 -1
  8. package/dist/public/_nuxt/{C-jE5b1g.js → BV5XWpFM.js} +1 -1
  9. package/dist/public/_nuxt/{CuJkRDWW.js → BsAtFXkB.js} +1 -1
  10. package/dist/public/_nuxt/{0-Bl3cVH.js → C1B7Lb_i.js} +1 -1
  11. package/dist/public/_nuxt/{B5-VM92c.js → C4x1Rf0J.js} +1 -1
  12. package/dist/public/_nuxt/{Di2_bjXy.js → C5uSI1no.js} +1 -1
  13. package/dist/public/_nuxt/{BAlGH8ya.js → CPuYr29B.js} +1 -1
  14. package/dist/public/_nuxt/{B4ZZgoB1.js → CRMDyaSt.js} +1 -1
  15. package/dist/public/_nuxt/{Ba21-vnu.js → CS8yIZOI.js} +1 -1
  16. package/dist/public/_nuxt/{DB1sxaHK.js → Cf0Ulfyt.js} +1 -1
  17. package/dist/public/_nuxt/{On0L_g3U.js → CkP2VQQ5.js} +1 -1
  18. package/dist/public/_nuxt/{BLkMEE7A.js → CoZKVL3r.js} +1 -1
  19. package/dist/public/_nuxt/{Cp1s5jAa.js → D-16ZB3R.js} +1 -1
  20. package/dist/public/_nuxt/{PHNvB2PA.js → DBzHDCAH.js} +1 -1
  21. package/dist/public/_nuxt/{GX3Och7B.js → DEpkwN8C.js} +1 -1
  22. package/dist/public/_nuxt/{B_s5359_.js → DO0Faz7t.js} +1 -1
  23. package/dist/public/_nuxt/{CIKRkll0.js → DQcokXty.js} +1 -1
  24. package/dist/public/_nuxt/{oyXGDuE-.js → DRSBujEZ.js} +1 -1
  25. package/dist/public/_nuxt/{BMyEoXFt.js → Db5DS6RJ.js} +1 -1
  26. package/dist/public/_nuxt/{BFzxvwx4.js → DllKqWLf.js} +1 -1
  27. package/dist/public/_nuxt/{CQz25EDr.js → DoatHFDF.js} +1 -1
  28. package/dist/public/_nuxt/{Ct91oOwP.js → Dt9_rxzk.js} +1 -1
  29. package/dist/public/_nuxt/{DvZ2GXVF.js → DtEEoUTs.js} +1 -1
  30. package/dist/public/_nuxt/{BhCeI3NC.js → Dw84mysi.js} +1 -1
  31. package/dist/public/_nuxt/{BWfTzkt4.js → DwpaAMLk.js} +1 -1
  32. package/dist/public/_nuxt/{0q-eInnz.js → S09qVi2A.js} +1 -1
  33. package/dist/public/_nuxt/{DhtFIhLO.js → axTMqr-M.js} +3 -3
  34. package/dist/public/_nuxt/{yrqgJObY.js → bnZrYLT3.js} +1 -1
  35. package/dist/public/_nuxt/builds/latest.json +1 -1
  36. package/dist/public/_nuxt/builds/meta/50731c7d-b8b6-4a10-81d8-8ebf715a1d47.json +1 -0
  37. package/dist/public/_nuxt/{entry.BndLQ4jF.css → entry.Dl9mWyLy.css} +1 -1
  38. package/dist/public/_nuxt/{C260IERh.js → h9JT8fy9.js} +1 -1
  39. package/dist/public/_nuxt/{DRAtdgrN.js → jnbX5wk_.js} +1 -1
  40. package/dist/public/_nuxt/{BhOPgiwp.js → k3tsOkpc.js} +1 -1
  41. package/dist/public/_nuxt/{CmALwHBX.js → l2P7b8gw.js} +1 -1
  42. package/dist/public/index.html +1 -1
  43. package/package.json +3 -3
  44. package/dist/public/_nuxt/builds/meta/8a9327db-c0f3-49d6-9192-9310df6282fd.json +0 -1
@@ -1,2 +1,2 @@
1
- import{At as e,Et as t,Gt as n,Ht as r,Mt as i,Nt as a,Ot as o,Pt as s,Tt as c,Ut as l,Vt as u,Yt as d,_t as f,bt as p,ct as m,en as h,gt as g,it as _,jt as v,kt as y,lt as b,mt as x,nn as S,pt as C,rn as w,tn as T,ut as E,xt as D}from"./DhtFIhLO.js";function ee(){var e=window.navigator.userAgent,t=e.indexOf(`MSIE `);if(t>0)return parseInt(e.substring(t+5,e.indexOf(`.`,t)),10);if(e.indexOf(`Trident/`)>0){var n=e.indexOf(`rv:`);return parseInt(e.substring(n+3,e.indexOf(`.`,n)),10)}var r=e.indexOf(`Edge/`);return r>0?parseInt(e.substring(r+5,e.indexOf(`.`,r)),10):-1}var O;function k(){k.init||(k.init=!0,O=ee()!==-1)}var A={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){k(),D(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});let e=document.createElement(`object`);this._resizeObject=e,e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`tabindex`,-1),e.onload=this.addResizeHandlers,e.type=`text/html`,O&&this.$el.appendChild(e),e.data=`about:blank`,O||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit(`notify`,{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener(`resize`,this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!O&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},j=l(`data-v-b329ee4c`);o(`data-v-b329ee4c`);var te={class:`resize-observer`,tabindex:`-1`};t(),A.render=j((e,t,n,r,i,a)=>(c(),m(`div`,te))),A.__scopeId=`data-v-b329ee4c`,A.__file=`src/components/ResizeObserver.vue`;function M(e){"@babel/helpers - typeof";return M=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},M(e)}function ne(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function re(e,t,n){return t&&N(e.prototype,t),n&&N(e,n),e}function P(e){return ie(e)||ae(e)||oe(e)||se()}function ie(e){if(Array.isArray(e))return F(e)}function ae(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function oe(e,t){if(e){if(typeof e==`string`)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(e,t)}}function F(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function se(){throw TypeError(`Invalid attempt to spread non-iterable instance.
1
+ import{At as e,Et as t,Gt as n,Ht as r,Mt as i,Nt as a,Ot as o,Pt as s,Tt as c,Ut as l,Vt as u,Yt as d,_t as f,bt as p,ct as m,en as h,gt as g,it as _,jt as v,kt as y,lt as b,mt as x,nn as S,pt as C,rn as w,tn as T,ut as E,xt as D}from"./axTMqr-M.js";function ee(){var e=window.navigator.userAgent,t=e.indexOf(`MSIE `);if(t>0)return parseInt(e.substring(t+5,e.indexOf(`.`,t)),10);if(e.indexOf(`Trident/`)>0){var n=e.indexOf(`rv:`);return parseInt(e.substring(n+3,e.indexOf(`.`,n)),10)}var r=e.indexOf(`Edge/`);return r>0?parseInt(e.substring(r+5,e.indexOf(`.`,r)),10):-1}var O;function k(){k.init||(k.init=!0,O=ee()!==-1)}var A={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){k(),D(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});let e=document.createElement(`object`);this._resizeObject=e,e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`tabindex`,-1),e.onload=this.addResizeHandlers,e.type=`text/html`,O&&this.$el.appendChild(e),e.data=`about:blank`,O||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit(`notify`,{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener(`resize`,this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!O&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},j=l(`data-v-b329ee4c`);o(`data-v-b329ee4c`);var te={class:`resize-observer`,tabindex:`-1`};t(),A.render=j((e,t,n,r,i,a)=>(c(),m(`div`,te))),A.__scopeId=`data-v-b329ee4c`,A.__file=`src/components/ResizeObserver.vue`;function M(e){"@babel/helpers - typeof";return M=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},M(e)}function ne(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function re(e,t,n){return t&&N(e.prototype,t),n&&N(e,n),e}function P(e){return ie(e)||ae(e)||oe(e)||se()}function ie(e){if(Array.isArray(e))return F(e)}function ae(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function oe(e,t){if(e){if(typeof e==`string`)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(e,t)}}function F(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function se(){throw TypeError(`Invalid attempt to spread non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ce(e){return typeof e==`function`?{callback:e}:e}function le(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,a,o=function(o){if(a=[...arguments].slice(1),!(r&&o===i)){var s=n.leading;typeof s==`function`&&(s=s(o,i)),(!r||o!==i)&&s&&e.apply(void 0,[o].concat(P(a))),i=o,clearTimeout(r),r=setTimeout(function(){e.apply(void 0,[o].concat(P(a))),r=0},t)}};return o._clear=function(){clearTimeout(r),r=null},o}function I(e,t){if(e===t)return!0;if(M(e)===`object`){for(var n in e)if(!I(e[n],t[n]))return!1;return!0}return!1}var ue=function(){function e(t,n,r){ne(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,r)}return re(e,[{key:`createObserver`,value:function(e,t){var n=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=ce(e),this.callback=function(e,t){n.options.callback(e,t),e&&n.options.once&&(n.frozen=!0,n.destroyObserver())},this.callback&&this.options.throttle){var r=(this.options.throttleOptions||{}).leading;this.callback=le(this.callback,this.options.throttle,{leading:function(e){return r===`both`||r===`visible`&&e||r===`hidden`&&!e}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(e){var t=e[0];if(e.length>1){var r=e.find(function(e){return e.isIntersecting});r&&(t=r)}if(n.callback){var i=t.isIntersecting&&t.intersectionRatio>=n.threshold;if(i===n.oldResult)return;n.oldResult=i,n.callback(i,t)}},this.options.intersection),D(function(){n.observer&&n.observer.observe(n.el)})}}},{key:`destroyObserver`,value:function(){this.observer&&=(this.observer.disconnect(),null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:`threshold`,get:function(){return this.options.intersection&&typeof this.options.intersection.threshold==`number`?this.options.intersection.threshold:0}}]),e}();function L(e,t,n){var r=t.value;r&&(typeof IntersectionObserver>`u`?console.warn(`[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill`):e._vue_visibilityState=new ue(e,r,n))}function R(e,t,n){var r=t.value,i=t.oldValue;if(!I(r,i)){var a=e._vue_visibilityState;if(!r){z(e);return}a?a.createObserver(r,n):L(e,{value:r},n)}}function z(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var B={beforeMount:L,updated:R,unmounted:z};function V(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(e){e(n)}),(e.get(`*`)||[]).slice().map(function(e){e(t,n)})}}}var H={itemsLimit:1e3},de=/(auto|scroll)/;function U(e,t){return e.parentNode===null?t:U(e.parentNode,t.concat([e]))}var W=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},fe=function(e){return W(e,`overflow`)+W(e,`overflow-y`)+W(e,`overflow-x`)},pe=function(e){return de.test(fe(e))};function G(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=U(e.parentNode,[]),n=0;n<t.length;n+=1)if(pe(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function K(e){"@babel/helpers - typeof";return K=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},K(e)}var q={items:{type:Array,required:!0},keyField:{type:String,default:`id`},direction:{type:String,default:`vertical`,validator:function(e){return[`vertical`,`horizontal`].includes(e)}},listTag:{type:String,default:`div`},itemTag:{type:String,default:`div`}};function J(){return this.items.length&&K(this.items[0])!==`object`}var Y=!1;if(typeof window<`u`){Y=!1;try{var X=Object.defineProperty({},`passive`,{get:function(){Y=!0}});window.addEventListener(`test`,null,X)}catch{}}var me=0,Z={name:`RecycleScroller`,components:{ResizeObserver:A},directives:{ObserveVisibility:B},props:{...q,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:`size`},typeField:{type:String,default:`type`},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:`div`},itemTag:{type:String,default:`div`},listClass:{type:[String,Object,Array],default:``},itemClass:{type:[String,Object,Array],default:``}},emits:[`resize`,`visible`,`hidden`,`update`,`scroll-start`,`scroll-end`],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){let e={"-1":{accumulator:0}},t=this.items,n=this.sizeField,r=this.minItemSize,i=1e4,a=0,o;for(let s=0,c=t.length;s<c;s++)o=t[s][n]||r,o<i&&(i=o),a+=o,e[s]={accumulator:a,size:o};return this.$_computedMinItemSize=i,e}return[]},simpleArray:J,itemIndexByKey(){let{keyField:e,items:t}=this,n={};for(let r=0,i=t.length;r<i;r++)n[t[r][e]]=r;return n}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error(`[vue-recycle-scroller] You must provide an itemSize when using gridItems`)},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){let e=this.$_lastUpdateScrollPosition;typeof e==`number`&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,i,a){let o=d({item:r,position:0,nr:n({id:me++,index:t,used:!0,key:i,type:a})});return e.push(o),o},unuseView(e,t=!1){let n=this.$_unusedViews,r=e.nr.type,i=n.get(r);i||(i=[],n.set(r,i)),i.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit(`resize`),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;let e=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;let{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});e(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&e()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit(`visible`),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit(`hidden`))},updateVisibleItems(e,t=!1){let n=this.itemSize,r=this.gridItems||1,i=this.itemSecondarySize||n,a=this.$_computedMinItemSize,o=this.typeField,s=this.simpleArray?null:this.keyField,c=this.items,l=c.length,u=this.sizes,d=this.$_views,f=this.$_unusedViews,p=this.pool,m=this.itemIndexByKey,h,g,_,v,y;if(!l)h=g=v=y=_=0;else if(this.$_prerender)h=v=0,g=y=Math.min(this.prerender,c.length),_=null;else{let e=this.getScroll();if(t){let t=e.start-this.$_lastUpdateScrollPosition;if(t<0&&(t=-t),n===null&&t<a||t<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=e.start;let i=this.buffer;e.start-=i,e.end+=i;let o=0;if(this.$refs.before&&(o=this.$refs.before.scrollHeight,e.start-=o),this.$refs.after){let t=this.$refs.after.scrollHeight;e.end+=t}if(n===null){let t,n=0,r=l-1,i=~~(l/2),a;do a=i,t=u[i].accumulator,t<e.start?n=i:i<l-1&&u[i+1].accumulator>e.start&&(r=i),i=~~((n+r)/2);while(i!==a);for(i<0&&(i=0),h=i,_=u[l-1].accumulator,g=i;g<l&&u[g].accumulator<e.end;g++);for(g===-1?g=c.length-1:(g++,g>l&&(g=l)),v=h;v<l&&o+u[v].accumulator<e.start;v++);for(y=v;y<l&&o+u[y].accumulator<e.end;y++);}else{h=~~(e.start/n*r);let t=h%r;h-=t,g=Math.ceil(e.end/n*r),v=Math.max(0,Math.floor((e.start-o)/n*r)),y=Math.floor((e.end-o)/n*r),h<0&&(h=0),g>l&&(g=l),v<0&&(v=0),y>l&&(y=l),_=Math.ceil(l/r)*n}}g-h>H.itemsLimit&&this.itemsLimitError(),this.totalSize=_;let b,x=h<=this.$_endIndex&&g>=this.$_startIndex;if(x)for(let t=0,n=p.length;t<n;t++)b=p[t],b.nr.used&&(e&&(b.nr.index=m[b.item[s]]),(b.nr.index==null||b.nr.index<h||b.nr.index>=g)&&this.unuseView(b));let S=x?null:new Map,C,w,T;for(let e=h;e<g;e++){C=c[e];let t=s?C[s]:C;if(t==null)throw Error(`Key is ${t} on item (keyField is '${s}')`);if(b=d.get(t),!n&&!u[e].size){b&&this.unuseView(b);continue}w=C[o];let a=f.get(w),l=!1;if(!b)x?b=a&&a.length?a.pop():this.addView(p,e,C,t,w):(T=S.get(w)||0,(!a||T>=a.length)&&(b=this.addView(p,e,C,t,w),this.unuseView(b,!0),a=f.get(w)),b=a[T],S.set(w,T+1)),d.delete(b.nr.key),b.nr.used=!0,b.nr.index=e,b.nr.key=t,b.nr.type=w,d.set(t,b),l=!0;else if(!b.nr.used&&(b.nr.used=!0,l=!0,a)){let e=a.indexOf(b);e!==-1&&a.splice(e,1)}b.item=C,l&&(e===c.length-1&&this.$emit(`scroll-end`),e===0&&this.$emit(`scroll-start`)),n===null?(b.position=u[e-1].accumulator,b.offset=0):(b.position=Math.floor(e/r)*n,b.offset=e%r*i)}return this.$_startIndex=h,this.$_endIndex=g,this.emitUpdate&&this.$emit(`update`,h,g,v,y),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:x}},getListenerTarget(){let e=G(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){let{$el:e,direction:t}=this,n=t===`vertical`,r;if(this.pageMode){let t=e.getBoundingClientRect(),i=n?t.height:t.width,a=-(n?t.top:t.left),o=n?window.innerHeight:window.innerWidth;a<0&&(o+=a,a=0),a+o>i&&(o=i-a),r={start:a,end:a+o}}else r=n?{start:e.scrollTop,end:e.scrollTop+e.clientHeight}:{start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return r},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener(`scroll`,this.handleScroll,Y?{passive:!0}:!1),this.listenerTarget.addEventListener(`resize`,this.handleResize)},removeListeners(){this.listenerTarget&&=(this.listenerTarget.removeEventListener(`scroll`,this.handleScroll),this.listenerTarget.removeEventListener(`resize`,this.handleResize),null)},scrollToItem(e){let t,n=this.gridItems||1;t=this.itemSize===null?e>0?this.sizes[e-1].accumulator:0:Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){let t=this.direction===`vertical`?{scroll:`scrollTop`,start:`top`}:{scroll:`scrollLeft`,start:`left`},n,r,i;if(this.pageMode){let a=G(this.$el),o=a.tagName===`HTML`?0:a[t.scroll],s=a.getBoundingClientRect(),c=this.$el.getBoundingClientRect()[t.start]-s[t.start];n=a,r=t.scroll,i=e+o+c}else n=this.$el,r=t.scroll,i=e;n[r]=i},itemsLimitError(){throw setTimeout(()=>{console.log(`It seems the scroller element isn't scrolling, so it tries to render all the items at once.`,`Scroller:`,this.$el),console.log(`Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.`)}),Error(`Rendered items limit reached`)},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}},he={key:0,ref:`before`,class:`vue-recycle-scroller__slot`},ge={key:1,ref:`after`,class:`vue-recycle-scroller__slot`};function _e(t,n,o,l,d,f){let h=v(`ResizeObserver`),g=i(`observe-visibility`);return r((c(),E(`div`,{class:T([`vue-recycle-scroller`,{ready:d.ready,"page-mode":o.pageMode,[`direction-${t.direction}`]:!0}]),onScrollPassive:n[0]||=(...e)=>f.handleScroll&&f.handleScroll(...e)},[t.$slots.before?(c(),E(`div`,he,[e(t.$slots,`before`)],512)):b(`v-if`,!0),(c(),m(a(o.listTag),{ref:`wrapper`,style:w({[t.direction===`vertical`?`minHeight`:`minWidth`]:d.totalSize+`px`}),class:T([`vue-recycle-scroller__item-wrapper`,o.listClass])},{default:u(()=>[(c(!0),E(_,null,y(d.pool,n=>(c(),m(a(o.itemTag),p({key:n.nr.id,style:d.ready?{transform:`translate${t.direction===`vertical`?`Y`:`X`}(${n.position}px) translate${t.direction===`vertical`?`X`:`Y`}(${n.offset}px)`,width:o.gridItems?`${t.direction===`vertical`&&o.itemSecondarySize||o.itemSize}px`:void 0,height:o.gridItems?`${t.direction===`horizontal`&&o.itemSecondarySize||o.itemSize}px`:void 0}:null,class:[`vue-recycle-scroller__item-view`,[o.itemClass,{hover:!o.skipHover&&d.hoverKey===n.nr.key}]]},s(o.skipHover?{}:{mouseenter:()=>{d.hoverKey=n.nr.key},mouseleave:()=>{d.hoverKey=null}})),{default:u(()=>[e(t.$slots,`default`,{item:n.item,index:n.nr.index,active:n.nr.used})]),_:2},1040,[`style`,`class`]))),128)),e(t.$slots,`empty`)]),_:3},8,[`style`,`class`])),t.$slots.after?(c(),E(`div`,ge,[e(t.$slots,`after`)],512)):b(`v-if`,!0),C(h,{onNotify:f.handleResize},null,8,[`onNotify`])],34)),[[g,f.handleVisibilityChange]])}Z.render=_e,Z.__file=`src/components/RecycleScroller.vue`;var Q={name:`DynamicScroller`,components:{RecycleScroller:Z},provide(){return typeof ResizeObserver<`u`&&(this.$_resizeObserver=new ResizeObserver(e=>{requestAnimationFrame(()=>{if(Array.isArray(e)){for(let t of e)if(t.target&&t.target.$_vs_onResize){let e,n;if(t.borderBoxSize){let r=t.borderBoxSize[0];e=r.inlineSize,n=r.blockSize}else e=t.contentRect.width,n=t.contentRect.height;t.target.$_vs_onResize(t.target.$_vs_id,e,n)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...q,minItemSize:{type:[Number,String],required:!0}},emits:[`resize`,`visible`],data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:J,itemsWithSize(){let e=[],{items:t,keyField:n,simpleArray:r}=this,i=this.vscrollData.sizes,a=t.length;for(let o=0;o<a;o++){let a=t[o],s=r?o:a[n],c=i[s];c===void 0&&!this.$_undefinedMap[s]&&(c=0),e.push({item:a,id:s,size:c})}return e}},watch:{items(){this.forceUpdate()},simpleArray:{handler(e){this.vscrollData.simpleArray=e},immediate:!0},direction(e){this.forceUpdate(!0)},itemsWithSize(e,t){let n=this.$el.scrollTop,r=0,i=0,a=Math.min(e.length,t.length);for(let o=0;o<a&&!(r>=n);o++)r+=t[o].size||this.minItemSize,i+=e[o].size||this.minItemSize;let o=i-r;o!==0&&(this.$el.scrollTop+=o)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={},this.$_events=V()},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},unmounted(){this.$_events.all.clear()},methods:{onScrollerResize(){this.$refs.scroller&&this.forceUpdate(),this.$emit(`resize`)},onScrollerVisible(){this.$_events.emit(`vscroll:update`,{force:!1}),this.$emit(`visible`)},forceUpdate(e=!1){(e||this.simpleArray)&&(this.vscrollData.sizes={}),this.$_events.emit(`vscroll:update`,{force:!0})},scrollToItem(e){let t=this.$refs.scroller;t&&t.scrollToItem(e)},getItemSize(e,t=void 0){let n=this.simpleArray?t??this.items.indexOf(e):e[this.keyField];return this.vscrollData.sizes[n]||0},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;let e=this.$el;this.$nextTick(()=>{e.scrollTop=e.scrollHeight+5e3;let t=()=>{e.scrollTop=e.scrollHeight+5e3,requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(t)})};requestAnimationFrame(t)})}}};function ve(t,n,r,i,a,o){let s=v(`RecycleScroller`);return c(),m(s,p({ref:`scroller`,items:o.itemsWithSize,"min-item-size":r.minItemSize,direction:t.direction,"key-field":`id`,"list-tag":t.listTag,"item-tag":t.itemTag},t.$attrs,{onResize:o.onScrollerResize,onVisible:o.onScrollerVisible}),{default:u(({item:n,index:r,active:i})=>[e(t.$slots,`default`,S(g({item:n.item,index:r,active:i,itemWithSize:n})))]),before:u(()=>[e(t.$slots,`before`)]),after:u(()=>[e(t.$slots,`after`)]),empty:u(()=>[e(t.$slots,`empty`)]),_:3},16,[`items`,`min-item-size`,`direction`,`list-tag`,`item-tag`,`onResize`,`onVisible`])}Q.render=ve,Q.__file=`src/components/DynamicScroller.vue`;var $={name:`DynamicScrollerItem`,inject:[`vscrollData`,`vscrollParent`,`vscrollResizeObserver`],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:`div`}},emits:[`resize`],computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.vscrollData.keyField in this.item)return this.item[this.vscrollData.keyField];throw Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:`updateWatchData`,id(e,t){if(this.$el.$_vs_id=this.id,this.size||this.onDataUpdate(),this.$_sizeObserved){let n=this.vscrollData.sizes[t],r=this.vscrollData.sizes[e];n!=null&&n!==r&&this.applySize(n)}},finalActive(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(let e in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[e],this.onDataUpdate);this.vscrollParent.$_events.on(`vscroll:update`,this.onVscrollUpdate)}},mounted(){this.finalActive&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.vscrollParent.$_events.off(`vscroll:update`,this.onVscrollUpdate),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch(`item`,()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&=(this.$_watchData(),null)},onVscrollUpdate({force:e}){!this.finalActive&&e&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||e||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(e){this.$nextTick(()=>{if(this.id===e){let e=this.$el.offsetWidth,t=this.$el.offsetHeight;this.applyWidthHeight(e,t)}this.$_pendingSizeUpdate=null})},applyWidthHeight(e,t){let n=~~(this.vscrollParent.direction===`vertical`?t:e);n&&this.size!==n&&this.applySize(n)},applySize(e){this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=e,this.emitResize&&this.$emit(`resize`,this.id)},observeSize(){this.vscrollResizeObserver&&(this.$_sizeObserved||=(this.vscrollResizeObserver.observe(this.$el),this.$el.$_vs_id=this.id,this.$el.$_vs_onResize=this.onResize,!0))},unobserveSize(){this.vscrollResizeObserver&&(this.$_sizeObserved&&=(this.vscrollResizeObserver.unobserve(this.$el),this.$el.$_vs_onResize=void 0,!1))},onResize(e,t,n){this.id===e&&this.applyWidthHeight(t,n)}},render(){return f(this.tag,this.$slots.default())}};$.__file=`src/components/DynamicScrollerItem.vue`;var ye=x({__name:`VirtualList`,props:{items:{},keyProp:{}},setup(t){return(n,r)=>(c(),m(h(Q),{items:t.items,"min-item-size":30,"key-field":t.keyProp,"page-mode":``},{default:u(({item:r,active:i,index:a})=>[C(h($),{item:r,active:i,"data-index":a},{default:u(()=>[e(n.$slots,`default`,p({key:r[t.keyProp]},{item:r,index:a,active:i}))]),_:2},1032,[`item`,`active`,`data-index`])]),_:3},8,[`items`,`key-field`]))}}),be=Object.assign(ye,{__name:`DataVirtualList`});export{be as t};
@@ -1 +1 @@
1
- import{t as e}from"./DhtFIhLO.js";var t;(class{static#e=t=Symbol.toStringTag;constructor(){this[t]=`MaybeWeakMap`,this._map=new Map,this._weakMap=new WeakMap}delete(e){return this._weakMap.has(e)?this._weakMap.delete(e):this._map.delete(e)}has(e){return this._weakMap.has(e)?!0:this._map.has(e)}set(e,t){return this._weakMap.has(e)?this._weakMap.set(e,t):this._map.set(e,t),this}get(e){return this._weakMap.has(e)?this._weakMap.get(e):this._map.get(e)}clear(){this._map.clear()}});var n=class{constructor(e){this.length=e,this._mapTree=new Map}_getLastMap(e){let t=this._mapTree;for(let n of e.slice(0,-1))t.has(n)||t.set(n,new Map),t=t.get(n);return t}set(e,t){if(e.length!==this.length)throw Error(`Expect tuple of length ${this.length}, got ${e.length}`);return this._getLastMap(e).set(e[e.length-1],t),this}get(e){return this._getLastMap(e).get(e[e.length-1])}clear(){this._mapTree.clear()}delete(e){return this._getLastMap(e).delete(e[e.length-1])}get size(){return this._mapTree.size}*_traverseMap(){function*e(t,n,r){if(r===0)yield{keys:n,map:t};else for(let[i,a]of t.entries())yield*e(a,[...n,i],r-1)}yield*e(this._mapTree,[],this.length)}},r=class{constructor(){this._lengthMap=new Map}get(e){let t=e.length;return this._lengthMap.get(t)?.get(e)}set(e,t){let r=e.length,i=this._lengthMap.get(r);return i||(i=new n(r),this._lengthMap.set(r,i)),i.set(e,t),this}delete(e){let t=e.length;return this._lengthMap.get(t)?.delete(e)??!1}clear(){this._lengthMap.clear()}};function i(e){let t=new r,n=function(...n){let r=t.get(n);return r||(r=e(...n),t.set(n,r),r)};return n.cache=t,n}const a=[{match:/[\\/]node_modules[\\/]/i,name:`node_modules`,description:`Node Modules`,icon:`i-catppuccin-npm`},{match:/virtual:|^\0/,name:`virtual`,description:`Virtual`,icon:`i-catppuccin-symlink`},{match:/^@?[\w-]+\/?/,name:`package`,description:`Package`,icon:`i-catppuccin-java-class-abstract`},{match:/\.vue$/i,name:`vue`,description:`Vue`,icon:`i-catppuccin-vue`},{match:/\.[cm]?[tj]sx$/i,name:`jsx`,description:`JavaScript React`,icon:`i-catppuccin-javascript-react`},{match:/\.[cm]?ts$/i,name:`ts`,description:`TypeScript`,icon:`i-catppuccin-typescript`},{match:/\.[cm]?js$/i,name:`js`,description:`JavaScript`,icon:`i-catppuccin-javascript`},{match:/\.svelte$/i,name:`svelte`,description:`Svelte`,icon:`i-catppuccin-svelte`},{match:/\.mdx$/i,name:`mdx`,description:`MDX`,icon:`i-catppuccin-mdx`},{match:/\.md$/i,name:`md`,description:`Markdown`,icon:`i-catppuccin-markdown`},{match:/\.astro$/i,name:`astro`,description:`Astro`,icon:`i-catppuccin-astro`},{match:/\.angular$/i,name:`angular`,description:`Angular`,icon:`i-catppuccin-angular`},{match:/\.html?$/i,name:`html`,description:`HTML`,icon:`i-catppuccin-html`},{match:/\.(css|scss|less|postcss)$/i,name:`css`,description:`CSS`,icon:`i-catppuccin-css`},{match:/\.json[c5]?$/i,name:`json`,description:`JSON`,icon:`i-catppuccin-json`},{match:/\.(yaml|yml)$/i,name:`yaml`,description:`YAML`,icon:`i-catppuccin-yaml`},{match:/\.toml$/i,name:`toml`,description:`TOML`,icon:`i-catppuccin-toml`},{match:/\.svg$/i,name:`svg`,description:`SVG`,icon:`i-catppuccin-svg`}],o=[{match:/^(replace|define|alias)$/,name:`rollup`,description:`Rollup`,icon:`i-catppuccin-rollup`},{match:/^vite:/i,name:`vite`,description:`Vite`,icon:`i-catppuccin-vite`},{match:/^unocss:/i,name:`unocss`,description:`Unocss`,icon:`i-catppuccin-unocss`},{match:/^nuxt:/i,name:`nuxt`,description:`Nuxt`,icon:`i-catppuccin-nuxt`},{match:/^builtin:/i,name:`builtin`,description:`Builtin`,icon:`i-catppuccin-folder-prisma`}],s={name:`file`,match:/.*/,description:`File`,icon:`i-catppuccin-file`},c={name:`plugin`,match:/.*/,description:`User Plugins`,icon:`i-catppuccin-folder-plugins`};function l(e){return a.find(t=>t.name===e)??s}const u=i(e=>{e=e.replace(/(\?|&)v=[^&]*/,`$1`).replace(/\?$/,``);for(let t of a)if(t.match.test(e))return t;return s}),d=i(e=>{for(let t of o)if(t.match.test(e))return t;return c});function f(e,t=1){let n=0;for(let t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);return p(n%360,t)}function p(t,n=1){return`hsla(${t}, ${e.value?50:65}%, ${e.value?60:40}%, ${n})`}const m={error:0,client:60,bailout:-1,ssr:270,vite:250,vite1:240,vite2:120,virtual:160,nuxt:140};function h(e,t=1){if(e=e.replace(/[^a-z]+/gi,``).toLowerCase(),e in m){let n=m[e];return typeof n==`number`?p(n,t):t===1?n:n+Math.floor(t*255).toString(16).padStart(2,`0`)}return f(e,t)}export{a,l as c,c as i,d as l,p as n,o,h as r,u as s,f as t,i as u};
1
+ import{t as e}from"./axTMqr-M.js";var t;(class{static#e=t=Symbol.toStringTag;constructor(){this[t]=`MaybeWeakMap`,this._map=new Map,this._weakMap=new WeakMap}delete(e){return this._weakMap.has(e)?this._weakMap.delete(e):this._map.delete(e)}has(e){return this._weakMap.has(e)?!0:this._map.has(e)}set(e,t){return this._weakMap.has(e)?this._weakMap.set(e,t):this._map.set(e,t),this}get(e){return this._weakMap.has(e)?this._weakMap.get(e):this._map.get(e)}clear(){this._map.clear()}});var n=class{constructor(e){this.length=e,this._mapTree=new Map}_getLastMap(e){let t=this._mapTree;for(let n of e.slice(0,-1))t.has(n)||t.set(n,new Map),t=t.get(n);return t}set(e,t){if(e.length!==this.length)throw Error(`Expect tuple of length ${this.length}, got ${e.length}`);return this._getLastMap(e).set(e[e.length-1],t),this}get(e){return this._getLastMap(e).get(e[e.length-1])}clear(){this._mapTree.clear()}delete(e){return this._getLastMap(e).delete(e[e.length-1])}get size(){return this._mapTree.size}*_traverseMap(){function*e(t,n,r){if(r===0)yield{keys:n,map:t};else for(let[i,a]of t.entries())yield*e(a,[...n,i],r-1)}yield*e(this._mapTree,[],this.length)}},r=class{constructor(){this._lengthMap=new Map}get(e){let t=e.length;return this._lengthMap.get(t)?.get(e)}set(e,t){let r=e.length,i=this._lengthMap.get(r);return i||(i=new n(r),this._lengthMap.set(r,i)),i.set(e,t),this}delete(e){let t=e.length;return this._lengthMap.get(t)?.delete(e)??!1}clear(){this._lengthMap.clear()}};function i(e){let t=new r,n=function(...n){let r=t.get(n);return r||(r=e(...n),t.set(n,r),r)};return n.cache=t,n}const a=[{match:/[\\/]node_modules[\\/]/i,name:`node_modules`,description:`Node Modules`,icon:`i-catppuccin-npm`},{match:/virtual:|^\0/,name:`virtual`,description:`Virtual`,icon:`i-catppuccin-symlink`},{match:/^@?[\w-]+\/?/,name:`package`,description:`Package`,icon:`i-catppuccin-java-class-abstract`},{match:/\.vue$/i,name:`vue`,description:`Vue`,icon:`i-catppuccin-vue`},{match:/\.[cm]?[tj]sx$/i,name:`jsx`,description:`JavaScript React`,icon:`i-catppuccin-javascript-react`},{match:/\.[cm]?ts$/i,name:`ts`,description:`TypeScript`,icon:`i-catppuccin-typescript`},{match:/\.[cm]?js$/i,name:`js`,description:`JavaScript`,icon:`i-catppuccin-javascript`},{match:/\.svelte$/i,name:`svelte`,description:`Svelte`,icon:`i-catppuccin-svelte`},{match:/\.mdx$/i,name:`mdx`,description:`MDX`,icon:`i-catppuccin-mdx`},{match:/\.md$/i,name:`md`,description:`Markdown`,icon:`i-catppuccin-markdown`},{match:/\.astro$/i,name:`astro`,description:`Astro`,icon:`i-catppuccin-astro`},{match:/\.angular$/i,name:`angular`,description:`Angular`,icon:`i-catppuccin-angular`},{match:/\.html?$/i,name:`html`,description:`HTML`,icon:`i-catppuccin-html`},{match:/\.(css|scss|less|postcss)$/i,name:`css`,description:`CSS`,icon:`i-catppuccin-css`},{match:/\.json[c5]?$/i,name:`json`,description:`JSON`,icon:`i-catppuccin-json`},{match:/\.(yaml|yml)$/i,name:`yaml`,description:`YAML`,icon:`i-catppuccin-yaml`},{match:/\.toml$/i,name:`toml`,description:`TOML`,icon:`i-catppuccin-toml`},{match:/\.svg$/i,name:`svg`,description:`SVG`,icon:`i-catppuccin-svg`}],o=[{match:/^(replace|define|alias)$/,name:`rollup`,description:`Rollup`,icon:`i-catppuccin-rollup`},{match:/^vite:/i,name:`vite`,description:`Vite`,icon:`i-catppuccin-vite`},{match:/^unocss:/i,name:`unocss`,description:`Unocss`,icon:`i-catppuccin-unocss`},{match:/^nuxt:/i,name:`nuxt`,description:`Nuxt`,icon:`i-catppuccin-nuxt`},{match:/^builtin:/i,name:`builtin`,description:`Builtin`,icon:`i-catppuccin-folder-prisma`}],s={name:`file`,match:/.*/,description:`File`,icon:`i-catppuccin-file`},c={name:`plugin`,match:/.*/,description:`User Plugins`,icon:`i-catppuccin-folder-plugins`};function l(e){return a.find(t=>t.name===e)??s}const u=i(e=>{e=e.replace(/(\?|&)v=[^&]*/,`$1`).replace(/\?$/,``);for(let t of a)if(t.match.test(e))return t;return s}),d=i(e=>{for(let t of o)if(t.match.test(e))return t;return c});function f(e,t=1){let n=0;for(let t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);return p(n%360,t)}function p(t,n=1){return`hsla(${t}, ${e.value?50:65}%, ${e.value?60:40}%, ${n})`}const m={error:0,client:60,bailout:-1,ssr:270,vite:250,vite1:240,vite2:120,virtual:160,nuxt:140};function h(e,t=1){if(e=e.replace(/[^a-z]+/gi,``).toLowerCase(),e in m){let n=m[e];return typeof n==`number`?p(n,t):t===1?n:n+Math.floor(t*255).toString(16).padStart(2,`0`)}return f(e,t)}export{a,l as c,c as i,d as l,p as n,o,h as r,u as s,f as t,i as u};
@@ -1 +1 @@
1
- import{At as e,Ct as t,Ht as n,Jt as r,Mt as i,Rt as a,Tt as o,Vt as s,bt as c,ct as l,en as u,et as d,in as f,it as p,kt as m,lt as h,mt as g,nn as _,pt as v,rn as y,rt as b,st as x,tn as S,ut as C}from"./DhtFIhLO.js";import{a as w,i as ee,n as T,o as E,r as D,s as O}from"./B5-VM92c.js";var k=g({inheritAttrs:!1,__name:`TimeoutView`,props:{content:{},hideInterval:{default:1500}},setup(e){let t=r(!1),n=null;return a(()=>e.content,()=>{n&&clearTimeout(n),t.value=!0,n=setTimeout(()=>{t.value=!1},e.hideInterval)}),(n,r)=>(o(),l(d,{"enter-active-class":`transition-opacity duration-200 ease-in`,"leave-active-class":`transition-opacity duration-500 ease-out`,"enter-from-class":`opacity-0`,"leave-to-class":`opacity-0`},{default:s(()=>[t.value?(o(),C(`div`,_(c({key:0},n.$attrs)),f(e.content),17)):h(``,!0)]),_:1}))}}),A=Object.assign(k,{__name:`DisplayTimeoutView`}),j=[`width`,`height`],M=[`d`],N={class:`w-4`},P=[`disabled`,`title`,`onClick`],F={fixed:``,"right-6":``,"bottom-6":``,"z-panel-nav":``,flex:`~ col gap-2 items-center`},I={"w-10":``,flex:`~ items-center justify-center`},L={"bg-glass":``,"rounded-full":``,border:``,"border-base":``,shadow:``,flex:`~ col gap-1 p1`},R=[`disabled`],z=[`disabled`],B=[`disabled`],V=[`disabled`],H=g({__name:`ModuleGraph`,props:{modules:{},session:{},expandControls:{type:Boolean,default:!0}},setup(r){let s=r,{isFirstCalculateGraph:c,childToParentMap:l,collapsedNodes:d,calculateGraph:f,container:g,width:_,height:k,scale:H,nodes:U,links:W,spacing:G,nodesRefMap:K}=E(),{isGrabbing:q,init:J}=ee(),{zoomIn:Y,zoomOut:X,ZOOM_MIN:Z,ZOOM_MAX:Q}=w(),{isGraphNodeToggling:$,toggleNode:te,expandAll:ne,collapseAll:re}=O({modules:s.modules});return t(()=>{J(),a(()=>s.modules,()=>{c.value=!0,d.clear(),l.clear(),f()},{immediate:!0})}),(t,a)=>{let s=A,c=i(`tooltip`);return o(),C(`div`,{ref_key:`container`,ref:g,"w-full":``,"h-screen":``,"of-scroll":``,relative:``,"select-none":``,class:S(u(q)?`cursor-grabbing`:``)},[x(`div`,{style:y({width:`${u(_)*u(H)}px`,height:`${u(k)*u(H)}px`})},[x(`div`,{flex:`~ items-center justify-center`,style:y({transform:`scale(${u(H)})`,transformOrigin:`0 0`})},[x(`div`,{absolute:``,"left-0":``,"top-0":``,style:y({width:`${u(_)}px`,height:`${u(k)}px`}),class:`bg-dots`},null,4),(o(),C(`svg`,{"pointer-events-none":``,absolute:``,"left-0":``,"top-0":``,"z-graph-link":``,width:u(_),height:u(k)},[x(`g`,null,[(o(!0),C(p,null,m(u(W),n=>e(t.$slots,`link`,{key:n.id,link:n,d:u(T)(n,u(G)),linkClass:u(D)(n)},()=>[(o(),C(`path`,{key:n.id,d:u(T)(n,u(G)),class:S(u(D)(n)),fill:`none`},null,10,M))])),128))])],8,j)),(o(!0),C(p,null,m(u(U),n=>(o(),C(p,{key:n.data.module.id},[n.data.module.id===`~root`?h(``,!0):(o(),C(`div`,{key:0,absolute:``,class:`group z-graph-node flex gap-1 items-center`,style:y({left:`${n.x}px`,top:`${n.y}px`,transform:`translate(-50%, -50%)`})},[x(`div`,{flex:`~ items-center gap-1`,"bg-glass":``,border:`~ base rounded`,class:`group-hover:bg-active block px2 p1`,style:y({minWidth:`${u(u(G).width)}px`,maxWidth:`${u(u(G).width)}px`,maxHeight:`${u(u(G).height)}px`,overflow:`hidden`,transition:`all 0.3s ease`})},[e(t.$slots,`default`,{node:n,nodesRefMap:u(K)})],4),x(`div`,N,[n.data.hasChildren?(o(),C(`button`,{key:0,"w-4":``,"h-4":``,"rounded-full":``,flex:`items-center justify-center`,"text-xs":``,border:`~ active`,class:S([`flex cursor-pointer z-graph-node-active bg-base`,{"cursor-not-allowed":u($),"hover:bg-active":!u($)}]),disabled:u($),title:n.data.expanded?`Collapse`:`Expand`,onClick:b(e=>u(te)(n.data.module.id),[`stop`])},[x(`div`,{class:S([`text-primary h-4`,[n.data.expanded?`i-ph-minus`:`i-ph-plus`]]),transition:`transform duration-200`},null,2)],10,P)):h(``,!0)])],4))],64))),128))],4)],4),x(`div`,F,[x(`div`,I,[v(s,{content:`${Math.round(u(H)*100)}%`,class:`text-sm`},null,8,[`content`])]),x(`div`,L,[r.expandControls?(o(),C(p,{key:0},[n((o(),C(`button`,{"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,flex:`~ items-center justify-center`,disabled:u($),class:S({"op50 cursor-not-allowed":u($),"hover:bg-active":!u($)}),title:`Expand All`,onClick:a[0]||=e=>u(ne)()},[...a[4]||=[x(`div`,{class:`i-ph-arrows-out-simple-duotone`},null,-1)]],10,R)),[[c,`Expand All`,void 0,{left:!0}]]),n((o(),C(`button`,{"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,flex:`~ items-center justify-center`,disabled:u($),class:S({"op50 cursor-not-allowed":u($),"hover:bg-active":!u($)}),title:`Collapse All`,onClick:a[1]||=e=>u(re)()},[...a[5]||=[x(`div`,{class:`i-ph-arrows-in-simple-duotone`},null,-1)]],10,z)),[[c,`Collapse All`,void 0,{left:!0}]]),a[6]||=x(`div`,{border:`t base`,my1:``},null,-1)],64)):h(``,!0),n((o(),C(`button`,{disabled:u(H)>=u(Q),"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,"disabled:op20":``,"disabled:bg-none":``,"disabled:cursor-not-allowed":``,flex:`~ items-center justify-center`,title:`Zoom In (Ctrl + =)`,onClick:a[2]||=e=>u(Y)()},[...a[7]||=[x(`div`,{"i-ph-magnifying-glass-plus-duotone":``},null,-1)]],8,B)),[[c,`Zoom In (Ctrl + =)`,void 0,{left:!0}]]),n((o(),C(`button`,{disabled:u(H)<=u(Z),"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,"disabled:op20":``,"disabled:bg-none":``,"disabled:cursor-not-allowed":``,flex:`~ items-center justify-center`,title:`Zoom Out (Ctrl + -)`,onClick:a[3]||=e=>u(X)()},[...a[8]||=[x(`div`,{"i-ph-magnifying-glass-minus-duotone":``},null,-1)]],8,V)),[[c,`Zoom Out (Ctrl + -)`,void 0,{left:!0}]])])])],2)}}}),U=Object.assign(H,{__name:`DisplayModuleGraph`});export{U as t};
1
+ import{At as e,Ct as t,Ht as n,Jt as r,Mt as i,Rt as a,Tt as o,Vt as s,bt as c,ct as l,en as u,et as d,in as f,it as p,kt as m,lt as h,mt as g,nn as _,pt as v,rn as y,rt as b,st as x,tn as S,ut as C}from"./axTMqr-M.js";import{a as w,i as ee,n as T,o as E,r as D,s as O}from"./C4x1Rf0J.js";var k=g({inheritAttrs:!1,__name:`TimeoutView`,props:{content:{},hideInterval:{default:1500}},setup(e){let t=r(!1),n=null;return a(()=>e.content,()=>{n&&clearTimeout(n),t.value=!0,n=setTimeout(()=>{t.value=!1},e.hideInterval)}),(n,r)=>(o(),l(d,{"enter-active-class":`transition-opacity duration-200 ease-in`,"leave-active-class":`transition-opacity duration-500 ease-out`,"enter-from-class":`opacity-0`,"leave-to-class":`opacity-0`},{default:s(()=>[t.value?(o(),C(`div`,_(c({key:0},n.$attrs)),f(e.content),17)):h(``,!0)]),_:1}))}}),A=Object.assign(k,{__name:`DisplayTimeoutView`}),j=[`width`,`height`],M=[`d`],N={class:`w-4`},P=[`disabled`,`title`,`onClick`],F={fixed:``,"right-6":``,"bottom-6":``,"z-panel-nav":``,flex:`~ col gap-2 items-center`},I={"w-10":``,flex:`~ items-center justify-center`},L={"bg-glass":``,"rounded-full":``,border:``,"border-base":``,shadow:``,flex:`~ col gap-1 p1`},R=[`disabled`],z=[`disabled`],B=[`disabled`],V=[`disabled`],H=g({__name:`ModuleGraph`,props:{modules:{},session:{},expandControls:{type:Boolean,default:!0}},setup(r){let s=r,{isFirstCalculateGraph:c,childToParentMap:l,collapsedNodes:d,calculateGraph:f,container:g,width:_,height:k,scale:H,nodes:U,links:W,spacing:G,nodesRefMap:K}=E(),{isGrabbing:q,init:J}=ee(),{zoomIn:Y,zoomOut:X,ZOOM_MIN:Z,ZOOM_MAX:Q}=w(),{isGraphNodeToggling:$,toggleNode:te,expandAll:ne,collapseAll:re}=O({modules:s.modules});return t(()=>{J(),a(()=>s.modules,()=>{c.value=!0,d.clear(),l.clear(),f()},{immediate:!0})}),(t,a)=>{let s=A,c=i(`tooltip`);return o(),C(`div`,{ref_key:`container`,ref:g,"w-full":``,"h-screen":``,"of-scroll":``,relative:``,"select-none":``,class:S(u(q)?`cursor-grabbing`:``)},[x(`div`,{style:y({width:`${u(_)*u(H)}px`,height:`${u(k)*u(H)}px`})},[x(`div`,{flex:`~ items-center justify-center`,style:y({transform:`scale(${u(H)})`,transformOrigin:`0 0`})},[x(`div`,{absolute:``,"left-0":``,"top-0":``,style:y({width:`${u(_)}px`,height:`${u(k)}px`}),class:`bg-dots`},null,4),(o(),C(`svg`,{"pointer-events-none":``,absolute:``,"left-0":``,"top-0":``,"z-graph-link":``,width:u(_),height:u(k)},[x(`g`,null,[(o(!0),C(p,null,m(u(W),n=>e(t.$slots,`link`,{key:n.id,link:n,d:u(T)(n,u(G)),linkClass:u(D)(n)},()=>[(o(),C(`path`,{key:n.id,d:u(T)(n,u(G)),class:S(u(D)(n)),fill:`none`},null,10,M))])),128))])],8,j)),(o(!0),C(p,null,m(u(U),n=>(o(),C(p,{key:n.data.module.id},[n.data.module.id===`~root`?h(``,!0):(o(),C(`div`,{key:0,absolute:``,class:`group z-graph-node flex gap-1 items-center`,style:y({left:`${n.x}px`,top:`${n.y}px`,transform:`translate(-50%, -50%)`})},[x(`div`,{flex:`~ items-center gap-1`,"bg-glass":``,border:`~ base rounded`,class:`group-hover:bg-active block px2 p1`,style:y({minWidth:`${u(u(G).width)}px`,maxWidth:`${u(u(G).width)}px`,maxHeight:`${u(u(G).height)}px`,overflow:`hidden`,transition:`all 0.3s ease`})},[e(t.$slots,`default`,{node:n,nodesRefMap:u(K)})],4),x(`div`,N,[n.data.hasChildren?(o(),C(`button`,{key:0,"w-4":``,"h-4":``,"rounded-full":``,flex:`items-center justify-center`,"text-xs":``,border:`~ active`,class:S([`flex cursor-pointer z-graph-node-active bg-base`,{"cursor-not-allowed":u($),"hover:bg-active":!u($)}]),disabled:u($),title:n.data.expanded?`Collapse`:`Expand`,onClick:b(e=>u(te)(n.data.module.id),[`stop`])},[x(`div`,{class:S([`text-primary h-4`,[n.data.expanded?`i-ph-minus`:`i-ph-plus`]]),transition:`transform duration-200`},null,2)],10,P)):h(``,!0)])],4))],64))),128))],4)],4),x(`div`,F,[x(`div`,I,[v(s,{content:`${Math.round(u(H)*100)}%`,class:`text-sm`},null,8,[`content`])]),x(`div`,L,[r.expandControls?(o(),C(p,{key:0},[n((o(),C(`button`,{"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,flex:`~ items-center justify-center`,disabled:u($),class:S({"op50 cursor-not-allowed":u($),"hover:bg-active":!u($)}),title:`Expand All`,onClick:a[0]||=e=>u(ne)()},[...a[4]||=[x(`div`,{class:`i-ph-arrows-out-simple-duotone`},null,-1)]],10,R)),[[c,`Expand All`,void 0,{left:!0}]]),n((o(),C(`button`,{"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,flex:`~ items-center justify-center`,disabled:u($),class:S({"op50 cursor-not-allowed":u($),"hover:bg-active":!u($)}),title:`Collapse All`,onClick:a[1]||=e=>u(re)()},[...a[5]||=[x(`div`,{class:`i-ph-arrows-in-simple-duotone`},null,-1)]],10,z)),[[c,`Collapse All`,void 0,{left:!0}]]),a[6]||=x(`div`,{border:`t base`,my1:``},null,-1)],64)):h(``,!0),n((o(),C(`button`,{disabled:u(H)>=u(Q),"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,"disabled:op20":``,"disabled:bg-none":``,"disabled:cursor-not-allowed":``,flex:`~ items-center justify-center`,title:`Zoom In (Ctrl + =)`,onClick:a[2]||=e=>u(Y)()},[...a[7]||=[x(`div`,{"i-ph-magnifying-glass-plus-duotone":``},null,-1)]],8,B)),[[c,`Zoom In (Ctrl + =)`,void 0,{left:!0}]]),n((o(),C(`button`,{disabled:u(H)<=u(Z),"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,"disabled:op20":``,"disabled:bg-none":``,"disabled:cursor-not-allowed":``,flex:`~ items-center justify-center`,title:`Zoom Out (Ctrl + -)`,onClick:a[3]||=e=>u(X)()},[...a[8]||=[x(`div`,{"i-ph-magnifying-glass-minus-duotone":``},null,-1)]],8,V)),[[c,`Zoom Out (Ctrl + -)`,void 0,{left:!0}]])])])],2)}}}),U=Object.assign(H,{__name:`DisplayModuleGraph`});export{U as t};
@@ -1 +1 @@
1
- import{G as e,Jt as t,Tt as n,Vt as r,W as i,_ as a,ct as o,en as s,ft as c,g as l,in as u,it as d,kt as f,lt as p,mt as m,ot as h,pt as g,st as _,tn as v,ut as y,xt as b}from"./DhtFIhLO.js";import"./On0L_g3U.js";import{i as x}from"./DQtLZa7C.js";import{a as S,s as C}from"./BMyEoXFt.js";import"./CIKRkll0.js";import{t as w}from"./C260IERh.js";import"./DnpfwSMy.js";import{t as T}from"./Di2_bjXy.js";import"./BSR6S2_V.js";import{t as E}from"./BhOPgiwp.js";import{t as D}from"./0q-eInnz.js";import{t as O}from"./B5-VM92c.js";import{t as k}from"./CuJkRDWW.js";import{t as A}from"./B_s5359_.js";import{t as j}from"./oyXGDuE-.js";import{t as M}from"./C-jE5b1g.js";import{t as ee}from"./CEQkJ3Wx.js";import{t as N}from"./BFzxvwx4.js";import{n as P,t as F}from"./DJHNY-5T.js";var I={flex:`~ col gap-2`,p4:``},L={flex:``,pb2:``},R=m({__name:`FlatList`,props:{session:{},modules:{}},setup(e){return(t,i)=>{let a=w,o=j;return n(),y(`div`,I,[g(o,{items:e.modules,"key-prop":`id`},{default:r(({item:t})=>[_(`div`,L,[g(a,{id:t.id,session:e.session,hover:`bg-active`,block:``,px2:``,p1:``,"w-full":``,border:`~ base rounded`,link:!0},null,8,[`id`,`session`])])]),_:1},8,[`items`])])}}}),z=Object.assign(R,{__name:`ModulesFlatList`}),B={flex:`~ col gap-2`,p4:``},V={flex:``,pb2:``},H={flex:`~ gap-1 wrap`,"text-xs":``},U={flex:`~ auto text-xs wrap`},W={key:0,flex:`~ items-center`},G={key:0,op20:``},K={flex:`~ none gap-1 wrap justify-end`},q=m({__name:`DetailedList`,props:{session:{},modules:{}},setup(e){let t=e,i=h(()=>{let e=new Map;for(let n of t.modules){let t=n.buildMetrics?.transforms.filter(e=>e.source_code_size!==e.transformed_code_size).filter(e=>e.transformed_code_size);e.set(n.id,t)}return e});return(t,a)=>{let s=k,c=D,l=w,u=j;return n(),y(`div`,B,[g(u,{items:e.modules,"key-prop":`id`},{default:r(({item:t})=>[_(`div`,V,[g(l,{id:t.id,session:e.session,hover:`bg-active`,block:``,px2:``,p1:``,"w-full":``,border:`~ base rounded`,link:!0},{detail:r(()=>[_(`div`,H,[_(`ul`,U,[(n(!0),y(d,null,f(i.value.get(t.id),(e,r)=>(n(),y(d,{key:r},[e.source_code_size!==e.transformed_code_size&&e.transformed_code_size?(n(),y(`li`,W,[g(s,{name:e.plugin_name,class:`font-mono ws-nowrap op-50`},null,8,[`name`]),r===i.value.get(t.id).length-1?p(``,!0):(n(),y(`span`,G,`|`))])):p(``,!0)],64))),128))]),a[0]||=_(`div`,{flex:`~ auto gap-1`,"of-hidden":``},null,-1),_(`div`,K,[_(`span`,null,[t.buildMetrics?(n(),o(c,{key:0,metrics:t.buildMetrics},null,8,[`metrics`])):p(``,!0)])])])]),_:2},1032,[`id`,`session`])])]),_:1},8,[`items`])])}}}),J=Object.assign(q,{__name:`ModulesDetailedList`}),Y=[`d`,`stroke-dasharray`],X=m({__name:`Graph`,props:{modules:{},session:{}},setup(e){let t=e,i=h(()=>t.modules);return O({modules:i,spacing:{width:400,height:55,linkOffset:20,margin:800,gap:150},generateGraph:e=>{let{isFirstCalculateGraph:t,scale:n,spacing:r,tree:a,hierarchy:o,collapsedNodes:c,container:l,modulesMap:u,nodes:d,links:f,nodesMap:p,linksMap:m,width:g,height:_,childToParentMap:v,focusOn:y}=e,x=h(()=>i.value.filter(e=>e.importers.length===0));return(e=!0)=>{g.value=window.innerWidth,_.value=window.innerHeight;let i=new Set,h=o({module:{id:`~root`}},e=>e.module.id===`~root`?(x.value.forEach(e=>{i.add(e),t.value&&v.set(e.id,`~root`)}),x.value.map(e=>({module:e,expanded:!c.has(e.id),hasChildren:!1}))):c.has(e.module.id)?[]:e.module.imports.map(n=>{let r=u.value.get(n.module_id);if(r&&!i.has(r)&&!(v.has(r.id)&&v.get(r.id)!==e.module.id))return i.add(r),t.value&&v.set(r.id,e.module.id),{module:r,import:n,expanded:!c.has(r.id),hasChildren:!1}}).filter(e=>e!==void 0));t.value&&=!1,a().nodeSize([s(r.height),s(r.width)+s(r.gap)])(h);let S=h.descendants();for(let e of S)[e.x,e.y]=[e.y-s(r.width),e.x],e.data.module.imports&&(e.data.hasChildren=e.data.module.imports?.filter(t=>v.get(t.module_id)===e.data.module.id).length>0);let C=Math.min(...S.map(e=>e.x)),w=Math.min(...S.map(e=>e.y));if(C<s(r.margin))for(let e of S)e.x+=Math.abs(C)+s(r.margin);if(w<s(r.margin))for(let e of S)e.y+=Math.abs(w)+s(r.margin);d.value=S,p.clear();for(let e of S)p.set(e.data.module.id,e);let T=h.links().filter(e=>e.source.data.module.id!==`~root`).map(e=>({...e,import:e.source.data.import,id:`${e.source.data.module.id}|${e.target.data.module.id}`}));m.clear();for(let e of T)m.set(e.id,e);f.value=T,b(()=>{g.value=l.value.scrollWidth/n.value+s(r.margin),_.value=l.value.scrollHeight/n.value+s(r.margin);let t=x.value?.[0]?.id;e&&t&&b(()=>{y(t,!1)})})}}}),(t,a)=>{let s=w,c=N;return n(),o(c,{session:e.session,modules:i.value},{default:r(({node:t,nodesRefMap:n})=>[g(s,{id:t.data.module.id,ref:e=>n.set(t.data.module.id,e?.$el),link:!0,session:e.session,minimal:!0,flex:`1`},null,8,[`id`,`session`])]),link:r(({link:e,d:t,linkClass:n})=>[_(`path`,{d:t,class:v(n),"stroke-dasharray":e.import?.kind===`dynamic-import`?`3 6`:void 0,fill:`none`},null,10,Y)]),_:1},8,[`session`,`modules`])}}}),Z=Object.assign(X,{__name:`ModulesGraph`}),Q={"of-auto":``,"max-h-screen":``,"pt-45":``,relative:``},te={flex:`~ col gap-2`,p4:``},ne=m({__name:`Folder`,props:{session:{},modules:{}},setup(e){let t=e,r=h(()=>{if(!t.session.modulesList.length)return{workspace:{children:{},items:[]},nodeModules:{children:{},items:[]},virtual:{children:{},items:[]}};let e=[],n=[],r=[];return t.modules.map(e=>({full:e.id,path:e.path})).forEach(i=>{i.full.startsWith(t.session.meta.cwd)?(i.path.startsWith(`../`)||(i.path=i.full.slice(t.session.meta.cwd.length+1)),e.push(i)):i.full.includes(`node_modules`)?n.push({full:i.full,path:i.full}):i.full.startsWith(`virtual:`)&&r.push(i)}),{workspace:x(e,`Project Root`),nodeModules:x(n,`Node Modules`),virtual:x(r,`Virtual Modules`)}});return(e,t)=>{let i=M;return n(),y(`div`,Q,[_(`div`,te,[Object.keys(r.value.workspace.children).length?(n(),o(i,{key:0,node:r.value.workspace,p:`l3`,icon:`i-catppuccin:folder-dist icon-catppuccin`,"icon-open":`i-catppuccin:folder-dist-open icon-catppuccin`,link:!0},null,8,[`node`])):p(``,!0),Object.keys(r.value.nodeModules.children).length?(n(),y(d,{key:1},[t[0]||=_(`div`,{"w-full":``,"h-1px":``,border:`t base`},null,-1),g(i,{node:r.value.nodeModules,p:`l3`,icon:`i-catppuccin:folder-node icon-catppuccin`,"icon-open":`i-catppuccin:folder-node-open icon-catppuccin`,link:!0,open:!1},null,8,[`node`])],64)):p(``,!0),Object.keys(r.value.virtual.children).length?(n(),y(d,{key:2},[t[1]||=_(`div`,{"w-full":``,"h-1px":``,border:`t base`},null,-1),g(i,{node:r.value.virtual,p:`l3`,icon:`i-catppuccin:folder-components icon-catppuccin`,"icon-open":`i-catppuccin:folder-components-open icon-catppuccin`,link:!0,open:!1},null,8,[`node`])],64)):p(``,!0)])])}}}),re=Object.assign(ne,{__name:`ModulesFolder`}),ie={relative:``,"max-h-screen":``,"of-hidden":``},ae={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},oe={flex:`~ gap-2 items-center`,p2:``,border:`t base`},$=[`onClick`],se={key:0,"of-auto":``,"h-screen":``,"pt-45":``},ce={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},le={op50:``},ue={key:1,"of-auto":``,"h-screen":``,"pt-45":``},de={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},fe={op50:``},pe=m({__name:`index`,props:{session:{}},setup(p){let m=p,b=i(),x=e(),w=t({search:b.query.search||``,selected:b.query.file_types?P(b.query.file_types):null,node_modules:b.query.node_modules?P(b.query.node_modules):null}),D=[{label:`List`,value:`list`,icon:`i-ph-list-bullets-duotone`},{label:`Detailed List`,value:`detailed-list`,icon:`i-ph-list-magnifying-glass-duotone`},{label:`Graph`,value:`graph`,icon:`i-ph-graph-duotone`},{label:`Folder`,value:`folder`,icon:`i-ph-folder-duotone`}];a(w.value,e=>{let t={...b.query,search:e.search||void 0,file_types:e.selected||void 0,node_modules:e.node_modules||void 0};x.replace({query:F(t)})},{debounce:500});let O=h(()=>m.session.modulesList.map(e=>({mod:e,path:T(e.id,m.session.meta.cwd),type:C(e.id)}))),k=h(()=>S.filter(e=>O.value.some(t=>e.match.test(t.mod.id)))),j=h(()=>{let e=O.value;return w.value.selected&&(e=e.filter(e=>{let t=C(e.mod.id);return w.value.selected.includes(t.name)})),w.value.node_modules&&(e=e.filter(e=>e.path.moduleName&&w.value.node_modules.includes(e.path.moduleName))),e.map(e=>({...e.mod,path:e.path.path}))}),M=l(()=>j.value,()=>new ee(j.value,{includeScore:!0,keys:[`id`],ignoreLocation:!0,threshold:.4})),N=h(()=>w.value.search?M.value.search(w.value.search).map(e=>e.item):j.value);function I(e){b.query.module&&x.replace({query:{...b.query,module:void 0}}),E.value.moduleGraphViewType=e}return(e,t)=>{let i=A,a=z,l=J,m=Z,h=re;return n(),y(`div`,ie,[_(`div`,ae,[g(i,{modelValue:w.value,"onUpdate:modelValue":t[0]||=e=>w.value=e,rules:k.value},{default:r(()=>[_(`div`,oe,[t[1]||=_(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(n(),y(d,null,f(D,e=>_(`button`,{key:e.value,"btn-action":``,class:v(s(E).moduleGraphViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>I(e.value)},[_(`div`,{class:v(e.icon)},null,2),c(` `+u(e.label),1)],10,$)),64))])]),_:1},8,[`modelValue`,`rules`])]),s(E).moduleGraphViewType===`list`?(n(),y(`div`,se,[g(a,{session:p.session,modules:N.value},null,8,[`session`,`modules`]),_(`div`,ce,[_(`span`,le,u(N.value.length)+` of `+u(p.session.modulesList.length),1)])])):s(E).moduleGraphViewType===`detailed-list`?(n(),y(`div`,ue,[g(l,{session:p.session,modules:N.value},null,8,[`session`,`modules`]),_(`div`,de,[_(`span`,fe,u(N.value.length)+` of `+u(p.session.modulesList.length),1)])])):s(E).moduleGraphViewType===`graph`?(n(),o(m,{key:2,session:p.session,modules:N.value},null,8,[`session`,`modules`])):(n(),o(h,{key:3,session:p.session,modules:N.value},null,8,[`session`,`modules`]))])}}});export{pe as default};
1
+ import{G as e,Jt as t,Tt as n,Vt as r,W as i,_ as a,ct as o,en as s,ft as c,g as l,in as u,it as d,kt as f,lt as p,mt as m,ot as h,pt as g,st as _,tn as v,ut as y,xt as b}from"./axTMqr-M.js";import"./CkP2VQQ5.js";import{i as x}from"./DQtLZa7C.js";import{a as S,s as C}from"./Db5DS6RJ.js";import"./DQcokXty.js";import{t as w}from"./h9JT8fy9.js";import"./DnpfwSMy.js";import{t as T}from"./C5uSI1no.js";import"./3WaMGJ3H.js";import{t as E}from"./k3tsOkpc.js";import{t as D}from"./S09qVi2A.js";import{t as O}from"./C4x1Rf0J.js";import{t as k}from"./BsAtFXkB.js";import{t as A}from"./DO0Faz7t.js";import{t as j}from"./DRSBujEZ.js";import{t as M}from"./BV5XWpFM.js";import{t as ee}from"./CEQkJ3Wx.js";import{t as N}from"./DllKqWLf.js";import{n as P,t as F}from"./DJHNY-5T.js";var I={flex:`~ col gap-2`,p4:``},L={flex:``,pb2:``},R=m({__name:`FlatList`,props:{session:{},modules:{}},setup(e){return(t,i)=>{let a=w,o=j;return n(),y(`div`,I,[g(o,{items:e.modules,"key-prop":`id`},{default:r(({item:t})=>[_(`div`,L,[g(a,{id:t.id,session:e.session,hover:`bg-active`,block:``,px2:``,p1:``,"w-full":``,border:`~ base rounded`,link:!0},null,8,[`id`,`session`])])]),_:1},8,[`items`])])}}}),z=Object.assign(R,{__name:`ModulesFlatList`}),B={flex:`~ col gap-2`,p4:``},V={flex:``,pb2:``},H={flex:`~ gap-1 wrap`,"text-xs":``},U={flex:`~ auto text-xs wrap`},W={key:0,flex:`~ items-center`},G={key:0,op20:``},K={flex:`~ none gap-1 wrap justify-end`},q=m({__name:`DetailedList`,props:{session:{},modules:{}},setup(e){let t=e,i=h(()=>{let e=new Map;for(let n of t.modules){let t=n.buildMetrics?.transforms.filter(e=>e.source_code_size!==e.transformed_code_size).filter(e=>e.transformed_code_size);e.set(n.id,t)}return e});return(t,a)=>{let s=k,c=D,l=w,u=j;return n(),y(`div`,B,[g(u,{items:e.modules,"key-prop":`id`},{default:r(({item:t})=>[_(`div`,V,[g(l,{id:t.id,session:e.session,hover:`bg-active`,block:``,px2:``,p1:``,"w-full":``,border:`~ base rounded`,link:!0},{detail:r(()=>[_(`div`,H,[_(`ul`,U,[(n(!0),y(d,null,f(i.value.get(t.id),(e,r)=>(n(),y(d,{key:r},[e.source_code_size!==e.transformed_code_size&&e.transformed_code_size?(n(),y(`li`,W,[g(s,{name:e.plugin_name,class:`font-mono ws-nowrap op-50`},null,8,[`name`]),r===i.value.get(t.id).length-1?p(``,!0):(n(),y(`span`,G,`|`))])):p(``,!0)],64))),128))]),a[0]||=_(`div`,{flex:`~ auto gap-1`,"of-hidden":``},null,-1),_(`div`,K,[_(`span`,null,[t.buildMetrics?(n(),o(c,{key:0,metrics:t.buildMetrics},null,8,[`metrics`])):p(``,!0)])])])]),_:2},1032,[`id`,`session`])])]),_:1},8,[`items`])])}}}),J=Object.assign(q,{__name:`ModulesDetailedList`}),Y=[`d`,`stroke-dasharray`],X=m({__name:`Graph`,props:{modules:{},session:{}},setup(e){let t=e,i=h(()=>t.modules);return O({modules:i,spacing:{width:400,height:55,linkOffset:20,margin:800,gap:150},generateGraph:e=>{let{isFirstCalculateGraph:t,scale:n,spacing:r,tree:a,hierarchy:o,collapsedNodes:c,container:l,modulesMap:u,nodes:d,links:f,nodesMap:p,linksMap:m,width:g,height:_,childToParentMap:v,focusOn:y}=e,x=h(()=>i.value.filter(e=>e.importers.length===0));return(e=!0)=>{g.value=window.innerWidth,_.value=window.innerHeight;let i=new Set,h=o({module:{id:`~root`}},e=>e.module.id===`~root`?(x.value.forEach(e=>{i.add(e),t.value&&v.set(e.id,`~root`)}),x.value.map(e=>({module:e,expanded:!c.has(e.id),hasChildren:!1}))):c.has(e.module.id)?[]:e.module.imports.map(n=>{let r=u.value.get(n.module_id);if(r&&!i.has(r)&&!(v.has(r.id)&&v.get(r.id)!==e.module.id))return i.add(r),t.value&&v.set(r.id,e.module.id),{module:r,import:n,expanded:!c.has(r.id),hasChildren:!1}}).filter(e=>e!==void 0));t.value&&=!1,a().nodeSize([s(r.height),s(r.width)+s(r.gap)])(h);let S=h.descendants();for(let e of S)[e.x,e.y]=[e.y-s(r.width),e.x],e.data.module.imports&&(e.data.hasChildren=e.data.module.imports?.filter(t=>v.get(t.module_id)===e.data.module.id).length>0);let C=Math.min(...S.map(e=>e.x)),w=Math.min(...S.map(e=>e.y));if(C<s(r.margin))for(let e of S)e.x+=Math.abs(C)+s(r.margin);if(w<s(r.margin))for(let e of S)e.y+=Math.abs(w)+s(r.margin);d.value=S,p.clear();for(let e of S)p.set(e.data.module.id,e);let T=h.links().filter(e=>e.source.data.module.id!==`~root`).map(e=>({...e,import:e.source.data.import,id:`${e.source.data.module.id}|${e.target.data.module.id}`}));m.clear();for(let e of T)m.set(e.id,e);f.value=T,b(()=>{g.value=l.value.scrollWidth/n.value+s(r.margin),_.value=l.value.scrollHeight/n.value+s(r.margin);let t=x.value?.[0]?.id;e&&t&&b(()=>{y(t,!1)})})}}}),(t,a)=>{let s=w,c=N;return n(),o(c,{session:e.session,modules:i.value},{default:r(({node:t,nodesRefMap:n})=>[g(s,{id:t.data.module.id,ref:e=>n.set(t.data.module.id,e?.$el),link:!0,session:e.session,minimal:!0,flex:`1`},null,8,[`id`,`session`])]),link:r(({link:e,d:t,linkClass:n})=>[_(`path`,{d:t,class:v(n),"stroke-dasharray":e.import?.kind===`dynamic-import`?`3 6`:void 0,fill:`none`},null,10,Y)]),_:1},8,[`session`,`modules`])}}}),Z=Object.assign(X,{__name:`ModulesGraph`}),Q={"of-auto":``,"max-h-screen":``,"pt-45":``,relative:``},te={flex:`~ col gap-2`,p4:``},ne=m({__name:`Folder`,props:{session:{},modules:{}},setup(e){let t=e,r=h(()=>{if(!t.session.modulesList.length)return{workspace:{children:{},items:[]},nodeModules:{children:{},items:[]},virtual:{children:{},items:[]}};let e=[],n=[],r=[];return t.modules.map(e=>({full:e.id,path:e.path})).forEach(i=>{i.full.startsWith(t.session.meta.cwd)?(i.path.startsWith(`../`)||(i.path=i.full.slice(t.session.meta.cwd.length+1)),e.push(i)):i.full.includes(`node_modules`)?n.push({full:i.full,path:i.full}):i.full.startsWith(`virtual:`)&&r.push(i)}),{workspace:x(e,`Project Root`),nodeModules:x(n,`Node Modules`),virtual:x(r,`Virtual Modules`)}});return(e,t)=>{let i=M;return n(),y(`div`,Q,[_(`div`,te,[Object.keys(r.value.workspace.children).length?(n(),o(i,{key:0,node:r.value.workspace,p:`l3`,icon:`i-catppuccin:folder-dist icon-catppuccin`,"icon-open":`i-catppuccin:folder-dist-open icon-catppuccin`,link:!0},null,8,[`node`])):p(``,!0),Object.keys(r.value.nodeModules.children).length?(n(),y(d,{key:1},[t[0]||=_(`div`,{"w-full":``,"h-1px":``,border:`t base`},null,-1),g(i,{node:r.value.nodeModules,p:`l3`,icon:`i-catppuccin:folder-node icon-catppuccin`,"icon-open":`i-catppuccin:folder-node-open icon-catppuccin`,link:!0,open:!1},null,8,[`node`])],64)):p(``,!0),Object.keys(r.value.virtual.children).length?(n(),y(d,{key:2},[t[1]||=_(`div`,{"w-full":``,"h-1px":``,border:`t base`},null,-1),g(i,{node:r.value.virtual,p:`l3`,icon:`i-catppuccin:folder-components icon-catppuccin`,"icon-open":`i-catppuccin:folder-components-open icon-catppuccin`,link:!0,open:!1},null,8,[`node`])],64)):p(``,!0)])])}}}),re=Object.assign(ne,{__name:`ModulesFolder`}),ie={relative:``,"max-h-screen":``,"of-hidden":``},ae={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},oe={flex:`~ gap-2 items-center`,p2:``,border:`t base`},$=[`onClick`],se={key:0,"of-auto":``,"h-screen":``,"pt-45":``},ce={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},le={op50:``},ue={key:1,"of-auto":``,"h-screen":``,"pt-45":``},de={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},fe={op50:``},pe=m({__name:`index`,props:{session:{}},setup(p){let m=p,b=i(),x=e(),w=t({search:b.query.search||``,selected:b.query.file_types?P(b.query.file_types):null,node_modules:b.query.node_modules?P(b.query.node_modules):null}),D=[{label:`List`,value:`list`,icon:`i-ph-list-bullets-duotone`},{label:`Detailed List`,value:`detailed-list`,icon:`i-ph-list-magnifying-glass-duotone`},{label:`Graph`,value:`graph`,icon:`i-ph-graph-duotone`},{label:`Folder`,value:`folder`,icon:`i-ph-folder-duotone`}];a(w.value,e=>{let t={...b.query,search:e.search||void 0,file_types:e.selected||void 0,node_modules:e.node_modules||void 0};x.replace({query:F(t)})},{debounce:500});let O=h(()=>m.session.modulesList.map(e=>({mod:e,path:T(e.id,m.session.meta.cwd),type:C(e.id)}))),k=h(()=>S.filter(e=>O.value.some(t=>e.match.test(t.mod.id)))),j=h(()=>{let e=O.value;return w.value.selected&&(e=e.filter(e=>{let t=C(e.mod.id);return w.value.selected.includes(t.name)})),w.value.node_modules&&(e=e.filter(e=>e.path.moduleName&&w.value.node_modules.includes(e.path.moduleName))),e.map(e=>({...e.mod,path:e.path.path}))}),M=l(()=>j.value,()=>new ee(j.value,{includeScore:!0,keys:[`id`],ignoreLocation:!0,threshold:.4})),N=h(()=>w.value.search?M.value.search(w.value.search).map(e=>e.item):j.value);function I(e){b.query.module&&x.replace({query:{...b.query,module:void 0}}),E.value.moduleGraphViewType=e}return(e,t)=>{let i=A,a=z,l=J,m=Z,h=re;return n(),y(`div`,ie,[_(`div`,ae,[g(i,{modelValue:w.value,"onUpdate:modelValue":t[0]||=e=>w.value=e,rules:k.value},{default:r(()=>[_(`div`,oe,[t[1]||=_(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(n(),y(d,null,f(D,e=>_(`button`,{key:e.value,"btn-action":``,class:v(s(E).moduleGraphViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>I(e.value)},[_(`div`,{class:v(e.icon)},null,2),c(` `+u(e.label),1)],10,$)),64))])]),_:1},8,[`modelValue`,`rules`])]),s(E).moduleGraphViewType===`list`?(n(),y(`div`,se,[g(a,{session:p.session,modules:N.value},null,8,[`session`,`modules`]),_(`div`,ce,[_(`span`,le,u(N.value.length)+` of `+u(p.session.modulesList.length),1)])])):s(E).moduleGraphViewType===`detailed-list`?(n(),y(`div`,ue,[g(l,{session:p.session,modules:N.value},null,8,[`session`,`modules`]),_(`div`,de,[_(`span`,fe,u(N.value.length)+` of `+u(p.session.modulesList.length),1)])])):s(E).moduleGraphViewType===`graph`?(n(),o(m,{key:2,session:p.session,modules:N.value},null,8,[`session`,`modules`])):(n(),o(h,{key:3,session:p.session,modules:N.value},null,8,[`session`,`modules`]))])}}});export{pe as default};
@@ -1 +1 @@
1
- import{C as e,Tt as t,V as n,in as r,st as i,ut as a}from"./DhtFIhLO.js";var o={class:`antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide`},s={class:`max-w-520px text-center`},c=[`textContent`],l=[`textContent`],u=[`textContent`],d=e({__name:`error-500`,props:{appName:{type:String,default:`Nuxt`},statusCode:{type:Number,default:500},statusMessage:{type:String,default:`Internal server error`},description:{type:String,default:`This page is temporarily unavailable.`},refresh:{type:String,default:`Refresh this page`}},setup(e){let d=e;return n({title:`${d.statusCode} - ${d.statusMessage} | ${d.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(n,d)=>(t(),a(`div`,o,[i(`div`,s,[i(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:r(e.statusCode)},null,8,c),i(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:r(e.statusMessage)},null,8,l),i(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:r(e.description)},null,8,u)])]))}},[[`__scopeId`,`data-v-f0602c85`]]);export{d as default};
1
+ import{C as e,Tt as t,V as n,in as r,st as i,ut as a}from"./axTMqr-M.js";var o={class:`antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide`},s={class:`max-w-520px text-center`},c=[`textContent`],l=[`textContent`],u=[`textContent`],d=e({__name:`error-500`,props:{appName:{type:String,default:`Nuxt`},statusCode:{type:Number,default:500},statusMessage:{type:String,default:`Internal server error`},description:{type:String,default:`This page is temporarily unavailable.`},refresh:{type:String,default:`Refresh this page`}},setup(e){let d=e;return n({title:`${d.statusCode} - ${d.statusMessage} | ${d.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(n,d)=>(t(),a(`div`,o,[i(`div`,s,[i(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:r(e.statusCode)},null,8,c),i(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:r(e.statusMessage)},null,8,l),i(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:r(e.description)},null,8,u)])]))}},[[`__scopeId`,`data-v-f0602c85`]]);export{d as default};
@@ -1 +1 @@
1
- import{At as e,Ft as t,Nt as n,Tt as r,Vt as i,W as a,c as o,ct as s,en as c,ft as l,in as u,it as d,kt as f,lt as p,mt as m,ot as h,pt as g,st as _,ut as v,x as y,y as b,yt as x}from"./DhtFIhLO.js";import{t as S}from"./On0L_g3U.js";import{r as C,t as w}from"./C260IERh.js";import{r as T}from"./BhOPgiwp.js";import{t as E}from"./Cp1s5jAa.js";var D=[`title`],O={flex:`~ items-center gap-2`},k={op50:``,"font-mono":``},A=[`title`],j=[`title`],M=m({__name:`BaseInfo`,props:{chunk:{},link:{type:Boolean,default:!1}},setup(t){let o=t,d=a(),f=h(()=>Array.isArray(o.chunk.imports)?o.chunk.imports.length:o.chunk.imports),p=h(()=>Array.isArray(o.chunk.modules)?o.chunk.modules.length:o.chunk.modules);return(a,o)=>{let m=C;return r(),s(n(t.link?c(S):`div`),{to:t.link?typeof t.link==`string`?t.link:{path:c(d).path,query:{chunk:t.chunk.chunk_id}}:void 0,flex:`~ gap-3 items-center`},{default:i(()=>[_(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${t.chunk.chunk_id}`},[e(a.$slots,`icon`,{},()=>[o[0]||=_(`div`,{"i-ph-shapes-duotone":``},null,-1)]),_(`div`,null,u(t.chunk.name||`[unnamed]`),1),g(m,{text:t.chunk.reason},null,8,[`text`]),e(a.$slots,`left-after`)],8,D),o[3]||=_(`div`,{"flex-auto":``},null,-1),_(`div`,O,[_(`span`,k,`#`+u(t.chunk.chunk_id),1),_(`div`,{flex:`~ gap-1 items-center`,title:`${f.value} imports`},[o[1]||=_(`div`,{"i-ph-file-arrow-up-duotone":``},null,-1),l(` `+u(f.value),1)],8,A),_(`div`,{flex:`~ gap-1 items-center`,title:`${p.value} modules`},[o[2]||=_(`div`,{"i-ph-package-duotone":``},null,-1),l(` `+u(p.value),1)],8,j)]),e(a.$slots,`default`)]),_:3},8,[`to`])}}}),N=Object.assign(M,{__name:`ChunksBaseInfo`}),P={relative:``},F={key:0,"pointer-events-none":``,absolute:``,"left-0":``,"right-0":``,"bottom-0":``,"bg-gradient-more":``,"h-30":``,flex:`~ justify-center`},I=m({__name:`ExpandableContainer`,props:x({list:{}},{count:{default:20},countModifiers:{}}),emits:[`update:count`],setup(n){let i=n,a=t(n,`count`),o=a.value,s=h(()=>i.list.slice(0,a.value));return(t,l)=>{let u=E;return r(),v(`div`,P,[e(t.$slots,`default`,{items:s.value}),n.list.length>a.value?(r(),v(`div`,F,[_(`button`,{op35:``,p2:``,pt4:``,mta:``,"pointer-events-auto":``,"hover:op100":``,flex:`~ items-center gap-1 justify-center`,onClick:l[0]||=e=>a.value=Math.round(a.value+c(o))},[l[2]||=_(`div`,{"i-ri:arrow-down-double-line":``},null,-1),l[3]||=_(`span`,null,`More`,-1),g(u,{prefix:`+`,number:Math.min(Math.round(c(o)),i.list.length-a.value),"rounded-full":``,"text-sm":``},null,8,[`number`])]),_(`button`,{op35:``,p2:``,pt4:``,mta:``,"pointer-events-auto":``,"hover:op100":``,flex:`~ items-center gap-1 justify-center`,onClick:l[1]||=e=>a.value=i.list.length},[l[4]||=_(`div`,{"i-ph-arrows-out-line-vertical-duotone":``},null,-1),l[5]||=_(`span`,null,`All`,-1),g(u,{number:i.list.length,"rounded-full":``,"text-sm":``},null,8,[`number`])])])):p(``,!0)])}}}),L=Object.assign(I,{__name:`DisplayExpandableContainer`}),R={key:0,"i-ph-file-duotone":``},z={key:1,"i-ph-lightning-duotone":``},B=m({__name:`Imports`,props:{imports:{}},setup(e){return(t,n)=>{let a=C,o=N,c=L;return r(),s(c,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:e.imports},{default:i(({items:e})=>[(r(!0),v(d,null,f(e,(e,t)=>(r(),v(d,{key:t},[e?(r(),s(o,{key:0,chunk:e,link:``,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},{icon:i(()=>[e.kind===`import-statement`?(r(),v(`div`,R)):p(``,!0),e.kind===`dynamic-import`?(r(),v(`div`,z)):p(``,!0)]),"left-after":i(()=>[g(a,{text:e.kind},null,8,[`text`])]),_:2},1032,[`chunk`])):p(``,!0)],64))),128))]),_:1},8,[`list`])}}}),V=Object.assign(B,{__name:`ChunksImports`}),H={flex:`~ col gap-3`},U={key:0,open:`true`},W={op50:``},G={key:0,open:`true`},K={op50:``},q={key:1,open:`true`},J={op50:``},Y=m({__name:`ChunkDetails`,props:{chunk:{},session:{},showModules:{type:Boolean,default:!0},showImports:{type:Boolean,default:!0},chunks:{}},setup(t){let n=t,a=h(()=>{let e=new Map;for(let t of n.session.modulesList)e.set(t.id,t);return e}),l=h(()=>n.chunk.modules.reduce((e,t)=>{let n=a.value.get(t)?.buildMetrics?.transforms;return n?.length?e+n[n.length-1].transformed_code_size:e},0)),m=b(),{state:x,isLoading:S}=o(async()=>{if(!n.chunks)return await m.value[`vite:rolldown:get-chunks-graph`]?.({session:n.session.id})},null),E=h(()=>n.chunks||x.value),D=h(()=>n.chunk.imports.map(e=>{let t=E.value?.find(t=>t.chunk_id===e.chunk_id);return{...e,name:t?.name||`[unnamed]`,reason:t?.reason||`common`,imports:t?.imports.length||0,modules:t?.modules.length||0}})),O=h(()=>E.value?.filter(e=>e.imports.some(e=>e.chunk_id===n.chunk.chunk_id)).map(e=>({...e.imports.find(e=>e.chunk_id===n.chunk.chunk_id),chunk_id:e.chunk_id,name:e.name||`[unnamed]`,reason:e.reason||`common`,imports:e.imports.length||0,modules:e.modules.length||0}))||[]);return(n,a)=>{let o=C,m=T,h=N,b=w,x=L,E=y,k=V;return r(),v(`div`,H,[g(h,{chunk:t.chunk},{"left-after":i(()=>[t.chunk.is_initial?(r(),s(o,{key:0,text:`initial`})):p(``,!0),g(m,{bytes:l.value,"text-sm":``},null,8,[`bytes`])]),default:i(()=>[e(n.$slots,`default`)]),_:3},8,[`chunk`]),t.showModules?(r(),v(`details`,U,[_(`summary`,W,[_(`span`,null,`Modules (`+u(t.chunk.modules.length)+`)`,1)]),g(x,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:t.chunk.modules},{default:i(({items:e})=>[(r(!0),v(d,null,f(e,e=>(r(),s(b,{id:e,key:e,session:t.session,link:!0,minimal:!0,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},null,8,[`id`,`session`]))),128))]),_:1},8,[`list`])])):p(``,!0),c(S)?(r(),s(E,{key:1})):t.showImports?(r(),v(d,{key:2},[t.chunk.imports.length?(r(),v(`details`,G,[_(`summary`,K,[_(`span`,null,`Imports (`+u(t.chunk.imports.length)+`)`,1)]),g(k,{imports:D.value},null,8,[`imports`])])):p(``,!0),O.value.length?(r(),v(`details`,q,[_(`summary`,J,[_(`span`,null,`Importers (`+u(O.value.length)+`)`,1)]),g(k,{imports:O.value},null,8,[`imports`])])):p(``,!0)],64)):p(``,!0)])}}}),X=Object.assign(Y,{__name:`DataChunkDetails`});export{L as n,N as r,X as t};
1
+ import{At as e,Ft as t,Nt as n,Tt as r,Vt as i,W as a,c as o,ct as s,en as c,ft as l,in as u,it as d,kt as f,lt as p,mt as m,ot as h,pt as g,st as _,ut as v,x as y,y as b,yt as x}from"./axTMqr-M.js";import{t as S}from"./CkP2VQQ5.js";import{r as C,t as w}from"./h9JT8fy9.js";import{r as T}from"./k3tsOkpc.js";import{t as E}from"./D-16ZB3R.js";var D=[`title`],O={flex:`~ items-center gap-2`},k={op50:``,"font-mono":``},A=[`title`],j=[`title`],M=m({__name:`BaseInfo`,props:{chunk:{},link:{type:Boolean,default:!1}},setup(t){let o=t,d=a(),f=h(()=>Array.isArray(o.chunk.imports)?o.chunk.imports.length:o.chunk.imports),p=h(()=>Array.isArray(o.chunk.modules)?o.chunk.modules.length:o.chunk.modules);return(a,o)=>{let m=C;return r(),s(n(t.link?c(S):`div`),{to:t.link?typeof t.link==`string`?t.link:{path:c(d).path,query:{chunk:t.chunk.chunk_id}}:void 0,flex:`~ gap-3 items-center`},{default:i(()=>[_(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${t.chunk.chunk_id}`},[e(a.$slots,`icon`,{},()=>[o[0]||=_(`div`,{"i-ph-shapes-duotone":``},null,-1)]),_(`div`,null,u(t.chunk.name||`[unnamed]`),1),g(m,{text:t.chunk.reason},null,8,[`text`]),e(a.$slots,`left-after`)],8,D),o[3]||=_(`div`,{"flex-auto":``},null,-1),_(`div`,O,[_(`span`,k,`#`+u(t.chunk.chunk_id),1),_(`div`,{flex:`~ gap-1 items-center`,title:`${f.value} imports`},[o[1]||=_(`div`,{"i-ph-file-arrow-up-duotone":``},null,-1),l(` `+u(f.value),1)],8,A),_(`div`,{flex:`~ gap-1 items-center`,title:`${p.value} modules`},[o[2]||=_(`div`,{"i-ph-package-duotone":``},null,-1),l(` `+u(p.value),1)],8,j)]),e(a.$slots,`default`)]),_:3},8,[`to`])}}}),N=Object.assign(M,{__name:`ChunksBaseInfo`}),P={relative:``},F={key:0,"pointer-events-none":``,absolute:``,"left-0":``,"right-0":``,"bottom-0":``,"bg-gradient-more":``,"h-30":``,flex:`~ justify-center`},I=m({__name:`ExpandableContainer`,props:x({list:{}},{count:{default:20},countModifiers:{}}),emits:[`update:count`],setup(n){let i=n,a=t(n,`count`),o=a.value,s=h(()=>i.list.slice(0,a.value));return(t,l)=>{let u=E;return r(),v(`div`,P,[e(t.$slots,`default`,{items:s.value}),n.list.length>a.value?(r(),v(`div`,F,[_(`button`,{op35:``,p2:``,pt4:``,mta:``,"pointer-events-auto":``,"hover:op100":``,flex:`~ items-center gap-1 justify-center`,onClick:l[0]||=e=>a.value=Math.round(a.value+c(o))},[l[2]||=_(`div`,{"i-ri:arrow-down-double-line":``},null,-1),l[3]||=_(`span`,null,`More`,-1),g(u,{prefix:`+`,number:Math.min(Math.round(c(o)),i.list.length-a.value),"rounded-full":``,"text-sm":``},null,8,[`number`])]),_(`button`,{op35:``,p2:``,pt4:``,mta:``,"pointer-events-auto":``,"hover:op100":``,flex:`~ items-center gap-1 justify-center`,onClick:l[1]||=e=>a.value=i.list.length},[l[4]||=_(`div`,{"i-ph-arrows-out-line-vertical-duotone":``},null,-1),l[5]||=_(`span`,null,`All`,-1),g(u,{number:i.list.length,"rounded-full":``,"text-sm":``},null,8,[`number`])])])):p(``,!0)])}}}),L=Object.assign(I,{__name:`DisplayExpandableContainer`}),R={key:0,"i-ph-file-duotone":``},z={key:1,"i-ph-lightning-duotone":``},B=m({__name:`Imports`,props:{imports:{}},setup(e){return(t,n)=>{let a=C,o=N,c=L;return r(),s(c,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:e.imports},{default:i(({items:e})=>[(r(!0),v(d,null,f(e,(e,t)=>(r(),v(d,{key:t},[e?(r(),s(o,{key:0,chunk:e,link:``,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},{icon:i(()=>[e.kind===`import-statement`?(r(),v(`div`,R)):p(``,!0),e.kind===`dynamic-import`?(r(),v(`div`,z)):p(``,!0)]),"left-after":i(()=>[g(a,{text:e.kind},null,8,[`text`])]),_:2},1032,[`chunk`])):p(``,!0)],64))),128))]),_:1},8,[`list`])}}}),V=Object.assign(B,{__name:`ChunksImports`}),H={flex:`~ col gap-3`},U={key:0,open:`true`},W={op50:``},G={key:0,open:`true`},K={op50:``},q={key:1,open:`true`},J={op50:``},Y=m({__name:`ChunkDetails`,props:{chunk:{},session:{},showModules:{type:Boolean,default:!0},showImports:{type:Boolean,default:!0},chunks:{}},setup(t){let n=t,a=h(()=>{let e=new Map;for(let t of n.session.modulesList)e.set(t.id,t);return e}),l=h(()=>n.chunk.modules.reduce((e,t)=>{let n=a.value.get(t)?.buildMetrics?.transforms;return n?.length?e+n[n.length-1].transformed_code_size:e},0)),m=b(),{state:x,isLoading:S}=o(async()=>{if(!n.chunks)return await m.value[`vite:rolldown:get-chunks-graph`]?.({session:n.session.id})},null),E=h(()=>n.chunks||x.value),D=h(()=>n.chunk.imports.map(e=>{let t=E.value?.find(t=>t.chunk_id===e.chunk_id);return{...e,name:t?.name||`[unnamed]`,reason:t?.reason||`common`,imports:t?.imports.length||0,modules:t?.modules.length||0}})),O=h(()=>E.value?.filter(e=>e.imports.some(e=>e.chunk_id===n.chunk.chunk_id)).map(e=>({...e.imports.find(e=>e.chunk_id===n.chunk.chunk_id),chunk_id:e.chunk_id,name:e.name||`[unnamed]`,reason:e.reason||`common`,imports:e.imports.length||0,modules:e.modules.length||0}))||[]);return(n,a)=>{let o=C,m=T,h=N,b=w,x=L,E=y,k=V;return r(),v(`div`,H,[g(h,{chunk:t.chunk},{"left-after":i(()=>[t.chunk.is_initial?(r(),s(o,{key:0,text:`initial`})):p(``,!0),g(m,{bytes:l.value,"text-sm":``},null,8,[`bytes`])]),default:i(()=>[e(n.$slots,`default`)]),_:3},8,[`chunk`]),t.showModules?(r(),v(`details`,U,[_(`summary`,W,[_(`span`,null,`Modules (`+u(t.chunk.modules.length)+`)`,1)]),g(x,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:t.chunk.modules},{default:i(({items:e})=>[(r(!0),v(d,null,f(e,e=>(r(),s(b,{id:e,key:e,session:t.session,link:!0,minimal:!0,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},null,8,[`id`,`session`]))),128))]),_:1},8,[`list`])])):p(``,!0),c(S)?(r(),s(E,{key:1})):t.showImports?(r(),v(d,{key:2},[t.chunk.imports.length?(r(),v(`details`,G,[_(`summary`,K,[_(`span`,null,`Imports (`+u(t.chunk.imports.length)+`)`,1)]),g(k,{imports:D.value},null,8,[`imports`])])):p(``,!0),O.value.length?(r(),v(`details`,q,[_(`summary`,J,[_(`span`,null,`Importers (`+u(O.value.length)+`)`,1)]),g(k,{imports:O.value},null,8,[`imports`])])):p(``,!0)],64)):p(``,!0)])}}}),X=Object.assign(Y,{__name:`DataChunkDetails`});export{L as n,N as r,X as t};
@@ -1 +1 @@
1
- import{G as e,Ht as t,Jt as n,Lt as r,Mt as i,Rt as a,Tt as o,Vt as s,W as c,c as l,ct as u,en as d,ft as f,g as p,in as m,it as h,kt as g,lt as _,mt as v,ot as y,p as b,pt as x,qt as S,rn as C,st as w,tn as T,ut as E,x as D,y as O,zt as k}from"./DhtFIhLO.js";import{t as A}from"./On0L_g3U.js";import{i as j}from"./DQtLZa7C.js";import"./BMyEoXFt.js";import{n as M}from"./CIKRkll0.js";import{r as N,t as P}from"./BhOPgiwp.js";import{a as ee,c as te,i as F,n as I,o as L,r as R,t as z}from"./0-Bl3cVH.js";import{t as B}from"./B_s5359_.js";import{t as V}from"./oyXGDuE-.js";import{t as H}from"./C-jE5b1g.js";import{t as ne}from"./CEQkJ3Wx.js";import{t as re}from"./PHNvB2PA.js";var U={flex:`~ gap-1`},W={"overflow-hidden":``,"text-ellipsis":``,"break-all":``,"line-clamp-2":``},G=v({__name:`ListItem`,props:{asset:{}},setup(e){return(t,n)=>{let r=M,i=A;return o(),u(i,{to:{query:{asset:e.asset.filename}},"w-full":``,"font-mono":``,border:`~ rounded base`,px2:``,py1:``,"text-sm":``,hover:`bg-active`},{default:s(()=>[w(`div`,U,[x(r,{filename:e.asset.filename},null,8,[`filename`]),w(`span`,W,m(e.asset.filename),1)])]),_:1},8,[`to`])}}}),K=Object.assign(G,{__name:`AssetsListItem`}),q={p4:``},J={flex:``,pb2:``},Y=v({__name:`List`,props:{assets:{}},setup(e){return(t,n)=>{let r=K,i=V;return o(),E(`div`,q,[x(i,{items:e.assets,"key-prop":`filename`},{default:s(({item:e})=>[w(`div`,J,[x(r,{asset:e},null,8,[`asset`])])]),_:1},8,[`items`])])}}}),X=Object.assign(Y,{__name:`AssetsList`}),Z={flex:`~ gap-2`,p4:``},Q=v({__name:`Folder`,props:{assets:{},session:{}},setup(e){let t=e,n=y(()=>{let e=[];return t.assets.forEach(t=>{e.push({full:t.filename,path:t.filename})}),j(e,`Project`)});return(t,r)=>{let i=H;return o(),E(`div`,Z,[e.assets?.length?(o(),u(i,{key:0,"flex-1":``,node:n.value,icon:`i-catppuccin:folder-dist catppuccin`,"icon-open":`i-catppuccin:folder-dist-open catppuccin`,link:!0,"link-query-key":`asset`},null,8,[`node`])):_(``,!0)])}}}),ie=Object.assign(Q,{__name:`AssetsFolder`}),ae={grid:`~ cols-[max-content_1fr] gap-2`,p4:``},oe={flex:`~ col gap-4`},se={key:0,grid:`~ cols-[250px_1fr] gap-1`},ce=[`onClick`],le={key:0,"text-primary":``},ue={key:1},de=[`onClick`],fe=[`title`],pe=v({__name:`Sunburst`,props:{graph:{},selected:{}},emits:[`select`],setup(e,{emit:n}){let a=e,s=n,c=r(`el`);return k(()=>c.value?.append(a.graph.el)),(n,r)=>{let a=I,l=N,u=i(`tooltip`);return o(),E(`div`,ae,[w(`div`,{ref_key:`el`,ref:c,"w-500px":``},null,512),w(`div`,oe,[x(a,{border:`b base`,py2:``,selected:e.selected,options:e.graph.options,onSelect:r[0]||=e=>s(`select`,e)},null,8,[`selected`,`options`]),e.selected?(o(),E(`div`,se,[(o(!0),E(h,null,g(e.selected.children,n=>(o(),E(h,{key:n.id},[w(`button`,{"ws-nowrap":``,"text-nowrap":``,"text-left":``,"overflow-hidden":``,"text-ellipsis":``,"text-sm":``,hover:`bg-active`,rounded:``,px2:``,onClick:e=>s(`select`,n)},[n.meta&&n.meta===e.selected?.meta?(o(),E(`span`,le,`(self)`)):(o(),E(`span`,ue,m(n.id),1))],8,ce),w(`button`,{relative:``,flex:`~ gap-1 items-center`,hover:`bg-active`,rounded:``,onClick:e=>s(`select`,n)},[w(`div`,{"h-5":``,rounded:``,shadow:``,border:`~ base`,style:C({background:d(L)(e.graph.options.getColor?.(n)||`#000`),width:`${n.size/e.selected.size*100}%`})},null,4),x(l,{"text-xs":``,bytes:n.size,total:e.selected.size,"percent-ratio":3},null,8,[`bytes`,`total`]),n.children.length>0?t((o(),E(`div`,{key:0,title:`${n.children.length} dependencies`,"text-xs":``,"op-fade":``},[f(` (`+m(n.children.length)+`) `,1)],8,fe)),[[u,`${n.children.length} dependencies`]]):_(``,!0)],8,de)],64))),128))])):_(``,!0)])])}}}),me=Object.assign(pe,{__name:`AssetsSunburst`}),he=v({__name:`Flamegraph`,props:{graph:{}},setup(e){let t=e,n=r(`el`);return k(()=>n.value?.append(t.graph.el)),(e,t)=>(o(),E(`div`,{ref_key:`el`,ref:n},null,512))}}),ge=Object.assign(he,{__name:`AssetsFlamegraph`}),_e={key:1,relative:``,"max-h-screen":``,"of-hidden":``},ve={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},ye={flex:`~ gap-2 items-center`,p2:``,border:`t base`},be=[`onClick`],xe={"of-auto":``,"h-screen":``,flex:`~ col gap-2`,pt32:``},$={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},Se={op50:``},Ce={key:0,"bg-glass":``,border:`~ base rounded`,p2:``,"text-sm":``,flex:`~ col gap-2`},we={flex:`~ gap-1 items-center`},Te={flex:`~ gap-1 items-center`},Ee=v({__name:`assets`,props:{session:{}},setup(t){let r=t,i=S(b()),v=n({search:``}),C=e(),k=c(),A=[{label:`List`,value:`list`,icon:`i-ph-list-duotone`},{label:`Folder`,value:`folder`,icon:`i-ph-folder-duotone`},{label:`Treemap`,value:`treemap`,icon:`i-ph-checkerboard-duotone`},{label:`Sunburst`,value:`sunburst`,icon:`i-ph-chart-donut-duotone`},{label:`Flamegraph`,value:`flamegraph`,icon:`i-ph-chart-bar-horizontal-duotone`}],j=O(),{state:M,isLoading:L}=l(async()=>await j.value[`vite:rolldown:get-assets-list`]?.({session:r.session.id}),null),V=p(()=>M.value,()=>new ne(M.value,{includeScore:!0,keys:[`filename`],ignoreLocation:!0,threshold:.4})),H=y(()=>v.value.search?V.value.search(v.value.search).map(e=>e.item):M.value);function U(e){P.value.assetViewType=e}let{tree:W,chartOptions:G,graph:K,nodeHover:q,nodeSelected:J,selectedNode:Y,selectNode:Z,buildGraph:Q}=z({data:H,nameKey:`filename`,sizeKey:`size`,rootText:`Project`,nodeType:`file`,graphOptions:{onClick(e){e&&(q.value=e),e.meta?.type===`file`&&(Y.value=e.meta,C.replace({query:{asset:e.meta.filename}}))},onHover(e){e&&!k.query.asset&&(q.value=e),e===null&&(q.value=void 0)},onLeave(){q.value=void 0},onSelect(e){J.value=e||W.value.root,Y.value=e?.meta}},onUpdate(){switch(P.value.assetViewType){case`sunburst`:K.value=new F(W.value.root,G.value);break;case`treemap`:K.value=new ee(W.value.root,{...G.value,selectedPaddingRatio:0});break;default:K.value=new R(W.value.root,G.value)}}});return a(()=>P.value.assetViewType,()=>{Q()}),(e,n)=>{let r=D,a=B,c=X,l=ie,p=I,y=me,b=ge,S=N,C=te;return d(L)?(o(),u(r,{key:0})):(o(),E(`div`,_e,[w(`div`,ve,[x(a,{modelValue:v.value,"onUpdate:modelValue":n[0]||=e=>v.value=e,rules:[]},{default:s(()=>[w(`div`,ye,[n[3]||=w(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(o(),E(h,null,g(A,e=>w(`button`,{key:e.value,"btn-action":``,class:T(d(P).assetViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>U(e.value)},[w(`div`,{class:T(e.icon)},null,2),f(` `+m(e.label),1)],10,be)),64))])]),_:1},8,[`modelValue`])]),w(`div`,xe,[d(P).assetViewType===`list`?(o(),E(h,{key:0},[H.value?.length?(o(),u(c,{key:0,assets:H.value,session:t.session},null,8,[`assets`,`session`])):_(``,!0),w(`div`,$,[w(`span`,Se,m(H.value.length)+` of `+m(d(M)?.length||0),1)])],64)):d(P).assetViewType===`folder`?(o(),E(h,{key:1},[H.value?.length?(o(),u(l,{key:0,assets:H.value,session:t.session},null,8,[`assets`,`session`])):_(``,!0)],64)):d(P).assetViewType===`treemap`?(o(),E(h,{key:2},[d(K)?(o(),u(re,{key:0,graph:d(K),selected:d(J),onSelect:n[1]||=e=>d(Z)(e)},{default:s(({selected:e,options:t,onSelect:n})=>[x(p,{border:`b base`,py2:``,"min-h-10":``,selected:e,options:t,onSelect:n},null,8,[`selected`,`options`,`onSelect`])]),_:1},8,[`graph`,`selected`])):_(``,!0)],64)):d(P).assetViewType===`sunburst`?(o(),E(h,{key:3},[d(K)?(o(),u(y,{key:0,graph:d(K),selected:d(J),onSelect:n[2]||=e=>d(Z)(e)},null,8,[`graph`,`selected`])):_(``,!0)],64)):d(P).assetViewType===`flamegraph`?(o(),E(h,{key:4},[d(K)?(o(),u(b,{key:0,graph:d(K)},null,8,[`graph`])):_(``,!0)],64)):_(``,!0)]),x(C,{"hover-x":i.x,"hover-y":i.y},{default:s(()=>[d(q)?.meta?(o(),E(`div`,Ce,[w(`div`,we,m(d(q).text),1),w(`div`,Te,[x(S,{bytes:d(q).size,percent:!1},null,8,[`bytes`])])])):_(``,!0)]),_:1},8,[`hover-x`,`hover-y`])]))}}});export{Ee as default};
1
+ import{G as e,Ht as t,Jt as n,Lt as r,Mt as i,Rt as a,Tt as o,Vt as s,W as c,c as l,ct as u,en as d,ft as f,g as p,in as m,it as h,kt as g,lt as _,mt as v,ot as y,p as b,pt as x,qt as S,rn as C,st as w,tn as T,ut as E,x as D,y as O,zt as k}from"./axTMqr-M.js";import{t as A}from"./CkP2VQQ5.js";import{i as j}from"./DQtLZa7C.js";import"./Db5DS6RJ.js";import{n as M}from"./DQcokXty.js";import{r as N,t as P}from"./k3tsOkpc.js";import{a as ee,c as te,i as F,n as I,o as L,r as R,t as z}from"./C1B7Lb_i.js";import{t as B}from"./DO0Faz7t.js";import{t as V}from"./DRSBujEZ.js";import{t as H}from"./BV5XWpFM.js";import{t as ne}from"./CEQkJ3Wx.js";import{t as re}from"./DBzHDCAH.js";var U={flex:`~ gap-1`},W={"overflow-hidden":``,"text-ellipsis":``,"break-all":``,"line-clamp-2":``},G=v({__name:`ListItem`,props:{asset:{}},setup(e){return(t,n)=>{let r=M,i=A;return o(),u(i,{to:{query:{asset:e.asset.filename}},"w-full":``,"font-mono":``,border:`~ rounded base`,px2:``,py1:``,"text-sm":``,hover:`bg-active`},{default:s(()=>[w(`div`,U,[x(r,{filename:e.asset.filename},null,8,[`filename`]),w(`span`,W,m(e.asset.filename),1)])]),_:1},8,[`to`])}}}),K=Object.assign(G,{__name:`AssetsListItem`}),q={p4:``},J={flex:``,pb2:``},Y=v({__name:`List`,props:{assets:{}},setup(e){return(t,n)=>{let r=K,i=V;return o(),E(`div`,q,[x(i,{items:e.assets,"key-prop":`filename`},{default:s(({item:e})=>[w(`div`,J,[x(r,{asset:e},null,8,[`asset`])])]),_:1},8,[`items`])])}}}),X=Object.assign(Y,{__name:`AssetsList`}),Z={flex:`~ gap-2`,p4:``},Q=v({__name:`Folder`,props:{assets:{},session:{}},setup(e){let t=e,n=y(()=>{let e=[];return t.assets.forEach(t=>{e.push({full:t.filename,path:t.filename})}),j(e,`Project`)});return(t,r)=>{let i=H;return o(),E(`div`,Z,[e.assets?.length?(o(),u(i,{key:0,"flex-1":``,node:n.value,icon:`i-catppuccin:folder-dist catppuccin`,"icon-open":`i-catppuccin:folder-dist-open catppuccin`,link:!0,"link-query-key":`asset`},null,8,[`node`])):_(``,!0)])}}}),ie=Object.assign(Q,{__name:`AssetsFolder`}),ae={grid:`~ cols-[max-content_1fr] gap-2`,p4:``},oe={flex:`~ col gap-4`},se={key:0,grid:`~ cols-[250px_1fr] gap-1`},ce=[`onClick`],le={key:0,"text-primary":``},ue={key:1},de=[`onClick`],fe=[`title`],pe=v({__name:`Sunburst`,props:{graph:{},selected:{}},emits:[`select`],setup(e,{emit:n}){let a=e,s=n,c=r(`el`);return k(()=>c.value?.append(a.graph.el)),(n,r)=>{let a=I,l=N,u=i(`tooltip`);return o(),E(`div`,ae,[w(`div`,{ref_key:`el`,ref:c,"w-500px":``},null,512),w(`div`,oe,[x(a,{border:`b base`,py2:``,selected:e.selected,options:e.graph.options,onSelect:r[0]||=e=>s(`select`,e)},null,8,[`selected`,`options`]),e.selected?(o(),E(`div`,se,[(o(!0),E(h,null,g(e.selected.children,n=>(o(),E(h,{key:n.id},[w(`button`,{"ws-nowrap":``,"text-nowrap":``,"text-left":``,"overflow-hidden":``,"text-ellipsis":``,"text-sm":``,hover:`bg-active`,rounded:``,px2:``,onClick:e=>s(`select`,n)},[n.meta&&n.meta===e.selected?.meta?(o(),E(`span`,le,`(self)`)):(o(),E(`span`,ue,m(n.id),1))],8,ce),w(`button`,{relative:``,flex:`~ gap-1 items-center`,hover:`bg-active`,rounded:``,onClick:e=>s(`select`,n)},[w(`div`,{"h-5":``,rounded:``,shadow:``,border:`~ base`,style:C({background:d(L)(e.graph.options.getColor?.(n)||`#000`),width:`${n.size/e.selected.size*100}%`})},null,4),x(l,{"text-xs":``,bytes:n.size,total:e.selected.size,"percent-ratio":3},null,8,[`bytes`,`total`]),n.children.length>0?t((o(),E(`div`,{key:0,title:`${n.children.length} dependencies`,"text-xs":``,"op-fade":``},[f(` (`+m(n.children.length)+`) `,1)],8,fe)),[[u,`${n.children.length} dependencies`]]):_(``,!0)],8,de)],64))),128))])):_(``,!0)])])}}}),me=Object.assign(pe,{__name:`AssetsSunburst`}),he=v({__name:`Flamegraph`,props:{graph:{}},setup(e){let t=e,n=r(`el`);return k(()=>n.value?.append(t.graph.el)),(e,t)=>(o(),E(`div`,{ref_key:`el`,ref:n},null,512))}}),ge=Object.assign(he,{__name:`AssetsFlamegraph`}),_e={key:1,relative:``,"max-h-screen":``,"of-hidden":``},ve={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},ye={flex:`~ gap-2 items-center`,p2:``,border:`t base`},be=[`onClick`],xe={"of-auto":``,"h-screen":``,flex:`~ col gap-2`,pt32:``},$={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},Se={op50:``},Ce={key:0,"bg-glass":``,border:`~ base rounded`,p2:``,"text-sm":``,flex:`~ col gap-2`},we={flex:`~ gap-1 items-center`},Te={flex:`~ gap-1 items-center`},Ee=v({__name:`assets`,props:{session:{}},setup(t){let r=t,i=S(b()),v=n({search:``}),C=e(),k=c(),A=[{label:`List`,value:`list`,icon:`i-ph-list-duotone`},{label:`Folder`,value:`folder`,icon:`i-ph-folder-duotone`},{label:`Treemap`,value:`treemap`,icon:`i-ph-checkerboard-duotone`},{label:`Sunburst`,value:`sunburst`,icon:`i-ph-chart-donut-duotone`},{label:`Flamegraph`,value:`flamegraph`,icon:`i-ph-chart-bar-horizontal-duotone`}],j=O(),{state:M,isLoading:L}=l(async()=>await j.value[`vite:rolldown:get-assets-list`]?.({session:r.session.id}),null),V=p(()=>M.value,()=>new ne(M.value,{includeScore:!0,keys:[`filename`],ignoreLocation:!0,threshold:.4})),H=y(()=>v.value.search?V.value.search(v.value.search).map(e=>e.item):M.value);function U(e){P.value.assetViewType=e}let{tree:W,chartOptions:G,graph:K,nodeHover:q,nodeSelected:J,selectedNode:Y,selectNode:Z,buildGraph:Q}=z({data:H,nameKey:`filename`,sizeKey:`size`,rootText:`Project`,nodeType:`file`,graphOptions:{onClick(e){e&&(q.value=e),e.meta?.type===`file`&&(Y.value=e.meta,C.replace({query:{asset:e.meta.filename}}))},onHover(e){e&&!k.query.asset&&(q.value=e),e===null&&(q.value=void 0)},onLeave(){q.value=void 0},onSelect(e){J.value=e||W.value.root,Y.value=e?.meta}},onUpdate(){switch(P.value.assetViewType){case`sunburst`:K.value=new F(W.value.root,G.value);break;case`treemap`:K.value=new ee(W.value.root,{...G.value,selectedPaddingRatio:0});break;default:K.value=new R(W.value.root,G.value)}}});return a(()=>P.value.assetViewType,()=>{Q()}),(e,n)=>{let r=D,a=B,c=X,l=ie,p=I,y=me,b=ge,S=N,C=te;return d(L)?(o(),u(r,{key:0})):(o(),E(`div`,_e,[w(`div`,ve,[x(a,{modelValue:v.value,"onUpdate:modelValue":n[0]||=e=>v.value=e,rules:[]},{default:s(()=>[w(`div`,ye,[n[3]||=w(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(o(),E(h,null,g(A,e=>w(`button`,{key:e.value,"btn-action":``,class:T(d(P).assetViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>U(e.value)},[w(`div`,{class:T(e.icon)},null,2),f(` `+m(e.label),1)],10,be)),64))])]),_:1},8,[`modelValue`])]),w(`div`,xe,[d(P).assetViewType===`list`?(o(),E(h,{key:0},[H.value?.length?(o(),u(c,{key:0,assets:H.value,session:t.session},null,8,[`assets`,`session`])):_(``,!0),w(`div`,$,[w(`span`,Se,m(H.value.length)+` of `+m(d(M)?.length||0),1)])],64)):d(P).assetViewType===`folder`?(o(),E(h,{key:1},[H.value?.length?(o(),u(l,{key:0,assets:H.value,session:t.session},null,8,[`assets`,`session`])):_(``,!0)],64)):d(P).assetViewType===`treemap`?(o(),E(h,{key:2},[d(K)?(o(),u(re,{key:0,graph:d(K),selected:d(J),onSelect:n[1]||=e=>d(Z)(e)},{default:s(({selected:e,options:t,onSelect:n})=>[x(p,{border:`b base`,py2:``,"min-h-10":``,selected:e,options:t,onSelect:n},null,8,[`selected`,`options`,`onSelect`])]),_:1},8,[`graph`,`selected`])):_(``,!0)],64)):d(P).assetViewType===`sunburst`?(o(),E(h,{key:3},[d(K)?(o(),u(y,{key:0,graph:d(K),selected:d(J),onSelect:n[2]||=e=>d(Z)(e)},null,8,[`graph`,`selected`])):_(``,!0)],64)):d(P).assetViewType===`flamegraph`?(o(),E(h,{key:4},[d(K)?(o(),u(b,{key:0,graph:d(K)},null,8,[`graph`])):_(``,!0)],64)):_(``,!0)]),x(C,{"hover-x":i.x,"hover-y":i.y},{default:s(()=>[d(q)?.meta?(o(),E(`div`,Ce,[w(`div`,we,m(d(q).text),1),w(`div`,Te,[x(S,{bytes:d(q).size,percent:!1},null,8,[`bytes`])])])):_(``,!0)]),_:1},8,[`hover-x`,`hover-y`])]))}}});export{Ee as default};
@@ -1,4 +1,4 @@
1
- import{At as e,C as t,Ct as n,Dt as r,Ft as i,G as a,Ht as o,It as s,Jt as c,Lt as l,Mt as u,Nt as d,Qt as f,Rt as p,St as m,Tt as h,Vt as g,W as _,Wt as v,Xt as y,_t as b,a as x,b as S,bt as C,c as w,ct as T,dt as E,en as D,ft as O,ht as k,in as A,it as j,kt as M,l as ee,lt as N,m as P,mt as F,n as I,nt as te,o as L,ot as R,p as z,pt as B,qt as V,r as ne,rn as H,rt as re,st as U,tn as W,u as ie,ut as G,v as ae,vt as oe,w as se,wt as K,x as ce,xt as le,y as ue,yt as de,zt as fe}from"./DhtFIhLO.js";import{t as pe}from"./On0L_g3U.js";import{n as me,r as he}from"./DQtLZa7C.js";import{a as ge,c as _e,s as ve}from"./BMyEoXFt.js";import{n as ye}from"./CIKRkll0.js";import{r as be,t as xe}from"./C260IERh.js";import{t as Se}from"./BAlGH8ya.js";import"./DnpfwSMy.js";import{t as Ce}from"./Di2_bjXy.js";import{n as q,t as we}from"./CmALwHBX.js";import{t as J}from"./BSR6S2_V.js";import{n as Te,r as Ee,t as Y}from"./BhOPgiwp.js";import{t as De}from"./0q-eInnz.js";import{n as Oe,t as ke}from"./DvZ2GXVF.js";import{t as Ae}from"./Cp1s5jAa.js";import{n as je,r as Me}from"./B5-VM92c.js";import{t as Ne}from"./CuJkRDWW.js";import{c as Pe,i as Fe,n as Ie,o as Le,r as Re,s as ze,t as Be}from"./0-Bl3cVH.js";import{t as Ve}from"./B_s5359_.js";import{t as He}from"./oyXGDuE-.js";import{t as Ue}from"./DRAtdgrN.js";var We=Object.create,Ge=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,qe=Object.getOwnPropertyNames,Je=Object.getPrototypeOf,Ye=Object.prototype.hasOwnProperty,Xe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ze=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=qe(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Ye.call(e,s)&&s!==n&&Ge(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Ke(t,s))||r.enumerable});return e},Qe=(e,t,n)=>(n=e==null?{}:We(Je(e)),Ze(t||!e||!e.__esModule?Ge(n,`default`,{value:e,enumerable:!0}):n,e)),$e={border:`r y base rounded-r-xl`,flex:`~ col gap-1`,p1:``,"of-y-auto":``,"max-h-96vh":``,relative:``,"bg-glass":``,class:`fixed left-0 top-1/2 -translate-y-1/2`},et=F({__name:`SideNav`,setup(e){let t=R(()=>[...we.value,{title:`Toggle dark mode`,icon:`i-ph-sun-duotone dark:i-ph-moon-duotone`,action:I}]);return(e,n)=>{let r=u(`tooltip`);return h(),G(`div`,null,[U(`div`,$e,[(h(!0),G(j,null,M(t.value,e=>o((h(),T(d(e.to?D(pe):`button`),C({key:e.title,ref_for:!0},e.to?{to:e.to}:{},{title:e.title,"rounded-full":``,p2:``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,flex:`~ items-center justify-center`,"exact-active-class":`text-primary op100!`,onClick:t=>e.action?.()}),{default:g(()=>[U(`div`,{class:W(e.icon),"text-lg":``},null,2)]),_:2},1040,[`title`,`onClick`])),[[r,{placement:`right`,content:e.title}]])),128))])])}}}),tt=Object.assign(et,{__name:`PanelSideNav`}),nt={},rt={"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Close`};function it(e,t){return h(),G(`button`,rt,[...t[0]||=[U(`div`,{"i-ph-x":``},null,-1)]])}var X=Object.assign(t(nt,[[`render`,it]]),{__name:`DisplayCloseButton`}),at=new WeakMap,ot={mounted(e,t){let n=!t.modifiers.bubble,r;if(typeof t.value==`function`)r=x(e,t.value,{capture:n});else{let[i,a]=t.value;r=x(e,i,Object.assign({capture:n},a))}at.set(e,r)},unmounted(e){let t=at.get(e);t&&typeof t==`function`?t():t?.stop(),at.delete(e)}};function st(){let e=!1,t=y(!1);return(n,r)=>{if(t.value=r.value,e)return;e=!0;let i=P(n,r.value);p(t,e=>i.value=e)}}st();var ct={__name:`splitpanes`,props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:[`ready`,`resize`,`resized`,`pane-click`,`pane-maximize`,`pane-add`,`pane-remove`,`splitter-click`,`splitter-dblclick`],setup(e,{emit:t}){let i=t,a=e,o=s(),l=c([]),u=R(()=>l.value.reduce((e,t)=>(e[~~t.id]=t)&&e,{})),f=R(()=>l.value.length),g=c(null),_=c(!1),v=c({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),y=c({splitter:null,timeoutId:null}),x=R(()=>({[`splitpanes splitpanes--${a.horizontal?`horizontal`:`vertical`}`]:!0,"splitpanes--dragging":v.value.dragging})),S=()=>{document.addEventListener(`mousemove`,E,{passive:!1}),document.addEventListener(`mouseup`,D),`ontouchstart`in window&&(document.addEventListener(`touchmove`,E,{passive:!1}),document.addEventListener(`touchend`,D))},C=()=>{document.removeEventListener(`mousemove`,E,{passive:!1}),document.removeEventListener(`mouseup`,D),`ontouchstart`in window&&(document.removeEventListener(`touchmove`,E,{passive:!1}),document.removeEventListener(`touchend`,D))},w=(e,t)=>{let n=e.target.closest(`.splitpanes__splitter`);if(n){let{left:t,top:r}=n.getBoundingClientRect(),{clientX:i,clientY:o}=`ontouchstart`in window&&e.touches?e.touches[0]:e;v.value.cursorOffset=a.horizontal?o-r:i-t}S(),v.value.mouseDown=!0,v.value.activeSplitter=t},E=e=>{v.value.mouseDown&&(e.preventDefault(),v.value.dragging=!0,requestAnimationFrame(()=>{ee(j(e)),oe(`resize`,{event:e},!0)}))},D=e=>{v.value.dragging&&(window.getSelection().removeAllRanges(),oe(`resized`,{event:e},!0)),v.value.mouseDown=!1,v.value.activeSplitter=null,setTimeout(()=>{v.value.dragging=!1,C()},100)},O=(e,t)=>{`ontouchstart`in window&&(e.preventDefault(),y.value.splitter===t?(clearTimeout(y.value.timeoutId),y.value.timeoutId=null,k(e,t),y.value.splitter=null):(y.value.splitter=t,y.value.timeoutId=setTimeout(()=>y.value.splitter=null,500))),v.value.dragging||oe(`splitter-click`,{event:e,index:t},!0)},k=(e,t)=>{if(oe(`splitter-dblclick`,{event:e,index:t},!0),a.maximizePanes){let n=0;l.value=l.value.map((e,r)=>(e.size=r===t?e.max:e.min,r!==t&&(n+=e.min),e)),l.value[t].size-=n,oe(`pane-maximize`,{event:e,index:t,pane:l.value[t]}),oe(`resized`,{event:e,index:t},!0)}},A=(e,t)=>{oe(`pane-click`,{event:e,index:u.value[t].index,pane:u.value[t]})},j=e=>{let t=g.value.getBoundingClientRect(),{clientX:n,clientY:r}=`ontouchstart`in window&&e.touches?e.touches[0]:e;return{x:n-(a.horizontal?0:v.value.cursorOffset)-t.left,y:r-(a.horizontal?v.value.cursorOffset:0)-t.top}},M=e=>{e=e[a.horizontal?`y`:`x`];let t=g.value[a.horizontal?`clientHeight`:`clientWidth`];return a.rtl&&!a.horizontal&&(e=t-e),e*100/t},ee=e=>{let t=v.value.activeSplitter,n={prevPanesSize:P(t),nextPanesSize:F(t),prevReachedMinPanes:0,nextReachedMinPanes:0},r=0+(a.pushOtherPanes?0:n.prevPanesSize),i=100-(a.pushOtherPanes?0:n.nextPanesSize),o=Math.max(Math.min(M(e),i),r),s=[t,t+1],c=l.value[s[0]]||null,u=l.value[s[1]]||null,d=c.max<100&&o>=c.max+n.prevPanesSize,f=u.max<100&&o<=100-(u.max+F(t+1));if(d||f){d?(c.size=c.max,u.size=Math.max(100-c.max-n.prevPanesSize-n.nextPanesSize,0)):(c.size=Math.max(100-u.max-n.prevPanesSize-F(t+1),0),u.size=u.max);return}if(a.pushOtherPanes){let e=N(n,o);if(!e)return;({sums:n,panesToResize:s}=e),c=l.value[s[0]]||null,u=l.value[s[1]]||null}c!==null&&(c.size=Math.min(Math.max(o-n.prevPanesSize-n.prevReachedMinPanes,c.min),c.max)),u!==null&&(u.size=Math.min(Math.max(100-o-n.nextPanesSize-n.nextReachedMinPanes,u.min),u.max))},N=(e,t)=>{let n=v.value.activeSplitter,r=[n,n+1];return t<e.prevPanesSize+l.value[r[0]].min&&(r[0]=I(n).index,e.prevReachedMinPanes=0,r[0]<n&&l.value.forEach((t,i)=>{i>r[0]&&i<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),e.prevPanesSize=P(r[0]),r[0]===void 0)?(e.prevReachedMinPanes=0,l.value[0].size=l.value[0].min,l.value.forEach((t,r)=>{r>0&&r<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),l.value[r[1]].size=100-e.prevReachedMinPanes-l.value[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-l.value[r[1]].min&&(r[1]=te(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&l.value.forEach((t,i)=>{i>n&&i<r[1]&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),e.nextPanesSize=F(r[1]-1),r[1]===void 0)?(e.nextReachedMinPanes=0,l.value.forEach((t,r)=>{r<f.value-1&&r>=n+1&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),l.value[r[0]].size=100-e.prevPanesSize-F(r[0]-1),null):{sums:e,panesToResize:r}},P=e=>l.value.reduce((t,n,r)=>t+(r<e?n.size:0),0),F=e=>l.value.reduce((t,n,r)=>t+(r>e+1?n.size:0),0),I=e=>[...l.value].reverse().find(t=>t.index<e&&t.size>t.min)||{},te=e=>l.value.find(t=>t.index>e+1&&t.size>t.min)||{},L=()=>{let e=Array.from(g.value?.children||[]);for(let t of e){let e=t.classList.contains(`splitpanes__pane`),n=t.classList.contains(`splitpanes__splitter`);!e&&!n&&(t.remove(),console.warn(`Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.`))}},z=(e,t,n=!1)=>{let r=e-1,i=document.createElement(`div`);i.classList.add(`splitpanes__splitter`),n||(i.onmousedown=e=>w(e,r),typeof window<`u`&&`ontouchstart`in window&&(i.ontouchstart=e=>w(e,r)),i.onclick=e=>O(e,r+1)),i.ondblclick=e=>k(e,r+1),t.parentNode.insertBefore(i,t)},B=e=>{e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.remove()},V=()=>{let e=Array.from(g.value?.children||[]);for(let t of e)t.className.includes(`splitpanes__splitter`)&&B(t);let t=0;for(let n of e)n.className.includes(`splitpanes__pane`)&&(!t&&a.firstSplitter?z(t,n,!0):t&&z(t,n),t++)},ne=({uid:e,...t})=>{let n=u.value[e];for(let[e,r]of Object.entries(t))n[e]=r},H=e=>{let t=-1;Array.from(g.value?.children||[]).some(n=>(n.className.includes(`splitpanes__pane`)&&t++,n.isSameNode(e.el))),l.value.splice(t,0,{...e,index:t}),l.value.forEach((e,t)=>e.index=t),_.value&&le(()=>{V(),U({addedPane:l.value[t]}),oe(`pane-add`,{pane:l.value[t]})})},re=e=>{let t=l.value.findIndex(t=>t.id===e);l.value[t].el=null;let n=l.value.splice(t,1)[0];l.value.forEach((e,t)=>e.index=t),le(()=>{V(),oe(`pane-remove`,{pane:n}),U({removedPane:{...n}})})},U=(e={})=>{!e.addedPane&&!e.removedPane?ie():l.value.some(e=>e.givenSize!==null||e.min||e.max<100)?G(e):W(),_.value&&oe(`resized`)},W=()=>{let e=100/f.value,t=0,n=[],r=[];for(let i of l.value)i.size=Math.max(Math.min(e,i.max),i.min),t-=i.size,i.size>=i.max&&n.push(i.id),i.size<=i.min&&r.push(i.id);t>.1&&ae(t,n,r)},ie=()=>{let e=100,t=[],n=[],r=0;for(let i of l.value)e-=i.size,i.givenSize!==null&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id);let i=100;if(e>.1){for(let t of l.value)t.givenSize===null&&(t.size=Math.max(Math.min(e/(f.value-r),t.max),t.min)),i-=t.size;i>.1&&ae(i,t,n)}},G=({addedPane:e,removedPane:t}={})=>{let n=100/f.value,r=0,i=[],a=[];(e?.givenSize??null)!==null&&(n=(100-e.givenSize)/(f.value-1));for(let e of l.value)r-=e.size,e.size>=e.max&&i.push(e.id),e.size<=e.min&&a.push(e.id);if(!(Math.abs(r)<.1)){for(let t of l.value)e?.givenSize!==null&&e?.id===t.id||(t.size=Math.max(Math.min(n,t.max),t.min)),r-=t.size,t.size>=t.max&&i.push(t.id),t.size<=t.min&&a.push(t.id);r>.1&&ae(r,i,a)}},ae=(e,t,n)=>{let r;r=e>0?e/(f.value-t.length):e/(f.value-n.length),l.value.forEach((i,a)=>{if(e>0&&!t.includes(i.id)){let t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}else if(!n.includes(i.id)){let t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}}),Math.abs(e)>.1&&le(()=>{_.value&&console.warn(`Splitpanes: Could not resize panes correctly due to their constraints.`)})},oe=(e,t=void 0,n=!1)=>{let r=t?.index??v.value.activeSplitter??null;i(e,{...t,...r!==null&&{index:r},...n&&r!==null&&{prevPane:l.value[r-(a.firstSplitter?1:0)],nextPane:l.value[r+(a.firstSplitter?0:1)]},panes:l.value.map(e=>({min:e.min,max:e.max,size:e.size}))})};p(()=>a.firstSplitter,()=>V()),n(()=>{L(),V(),U(),oe(`ready`),_.value=!0}),m(()=>_.value=!1);let se=()=>b(`div`,{ref:g,class:x.value},o.default?.call(o));return r(`panes`,l),r(`indexedPanes`,u),r(`horizontal`,R(()=>a.horizontal)),r(`requestUpdate`,ne),r(`onPaneAdd`,H),r(`onPaneRemove`,re),r(`onPaneClick`,A),(e,t)=>(h(),T(d(se)))}},lt={__name:`pane`,props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(t){let r=t,i=oe(`requestUpdate`),a=oe(`onPaneAdd`),o=oe(`horizontal`),s=oe(`onPaneRemove`),l=oe(`onPaneClick`),u=k()?.uid,d=oe(`indexedPanes`),f=R(()=>d.value[u]),g=c(null),_=R(()=>{let e=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(e,y.value),v.value)}),v=R(()=>{let e=parseFloat(r.minSize);return isNaN(e)?0:e}),y=R(()=>{let e=parseFloat(r.maxSize);return isNaN(e)?100:e}),b=R(()=>`${o.value?`height`:`width`}: ${f.value?.size}%`);return p(()=>_.value,e=>i({uid:u,size:e})),p(()=>v.value,e=>i({uid:u,min:e})),p(()=>y.value,e=>i({uid:u,max:e})),n(()=>{a({id:u,el:g.value,min:v.value,max:y.value,givenSize:r.size===void 0?null:_.value,size:_.value})}),m(()=>s(u)),(t,n)=>(h(),G(`div`,{ref_key:`paneEl`,ref:g,class:`splitpanes__pane`,onClick:n[0]||=e=>D(l)(e,t._.uid),style:H(b.value)},[e(t.$slots,`default`)],4))}},ut=[`title`],dt=F({__name:`IconButton`,props:{title:{},classIcon:{},active:{type:Boolean}},setup(t){let n=t;return(t,r)=>(h(),G(`button`,{"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,class:W(n.active?`bg-active op90 text-green-400`:``),hover:`bg-active op100`,op50:``,title:n.title},[e(t.$slots,`default`,{},()=>[U(`div`,{class:W(n.classIcon)},null,2)])],10,ut))}}),Z=Object.assign(dt,{__name:`DisplayIconButton`}),Q=Xe(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n||=self,n.CodeMirror=r())})(e,(function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),a=/Edge\/(\d+)/.exec(e),o=r||i||a,s=o&&(r?document.documentMode||6:+(a||i)[1]),c=!a&&/WebKit\//.test(e),l=c&&/Qt\/\d+\.\d+/.test(e),u=!a&&/Chrome\/(\d+)/.exec(e),d=u&&+u[1],f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),m=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),g=p&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),_=/Android/.test(e),v=g||_||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),x=/win/i.test(t),S=f&&e.match(/Version\/(\d*\.\d*)/);S&&=Number(S[1]),S&&S>=15&&(f=!1,c=!0);var C=y&&(l||f&&(S==null||S<12.11)),w=n||o&&s>=9;function T(e){return RegExp(`(^|\\s)`+e+`(?:$|\\s)\\s*`)}var E=function(e,t){var n=e.className,r=T(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:``)}};function D(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return D(e).appendChild(t)}function k(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t==`string`)i.appendChild(document.createTextNode(t));else if(t)for(var a=0;a<t.length;++a)i.appendChild(t[a]);return i}function A(e,t,n,r){var i=k(e,t,n,r);return i.setAttribute(`role`,`presentation`),i}var j=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd(`character`,n),r.moveStart(`character`,t),r};function M(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function ee(e){var t=e.ownerDocument||e,n;try{n=e.activeElement}catch{n=t.body||null}for(;n&&n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;return n}function N(e,t){var n=e.className;T(t).test(n)||(e.className+=(n?` `:``)+t)}function P(e,t){for(var n=e.split(` `),r=0;r<n.length;r++)n[r]&&!T(n[r]).test(t)&&(t+=` `+n[r]);return t}var F=function(e){e.select()};g?F=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:o&&(F=function(e){try{e.select()}catch{}});function I(e){return e.display.wrapper.ownerDocument}function te(e){return L(e.display.wrapper)}function L(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function R(e){return I(e).defaultView}function z(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function B(e,t,n){for(var r in t||={},e)e.hasOwnProperty(r)&&(n!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function V(e,t,n,r,i){t??(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var a=r||0,o=i||0;;){var s=e.indexOf(` `,a);if(s<0||s>=t)return o+(t-a);o+=s-a,o+=n-o%n,a=s+1}}var ne=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};ne.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ne.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};function H(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}var re=50,U={toString:function(){return`CodeMirror.Pass`}},W={scroll:!1},ie={origin:`*mouse`},G={origin:`+move`};function ae(e,t,n){for(var r=0,i=0;;){var a=e.indexOf(` `,r);a==-1&&(a=e.length);var o=a-r;if(a==e.length||i+o>=t)return r+Math.min(o,t-i);if(i+=a-r,i+=n-i%n,r=a+1,i>=t)return r}}var oe=[``];function se(e){for(;oe.length<=e;)oe.push(K(oe)+` `);return oe[e]}function K(e){return e[e.length-1]}function ce(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function le(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function ue(){}function de(e,t){var n;return Object.create?n=Object.create(e):(ue.prototype=e,n=new ue),t&&B(t,n),n}var fe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function pe(e){return/\w/.test(e)||e>`€`&&(e.toUpperCase()!=e.toLowerCase()||fe.test(e))}function me(e,t){return t?t.source.indexOf(`\\w`)>-1&&pe(e)?!0:t.test(e):pe(e)}function he(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ge=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function _e(e){return e.charCodeAt(0)>=768&&ge.test(e)}function ve(e,t,n){for(;(n<0?t>0:t<e.length)&&_e(e.charAt(t));)t+=n;return t}function ye(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,a=r<0?Math.ceil(i):Math.floor(i);if(a==t)return e(a)?t:n;e(a)?n=a:t=a+r}}function be(e,t,n,r){if(!e)return r(t,n,`ltr`,0);for(var i=!1,a=0;a<e.length;++a){var o=e[a];(o.from<n&&o.to>t||t==n&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,n),o.level==1?`rtl`:`ltr`,a),i=!0)}i||r(t,n,`ltr`)}var xe=null;function Se(e,t,n){var r;xe=null;for(var i=0;i<e.length;++i){var a=e[i];if(a.from<t&&a.to>t)return i;a.to==t&&(a.from!=a.to&&n==`before`?r=i:xe=i),a.from==t&&(a.from!=a.to&&n!=`before`?r=i:xe=i)}return r??xe}var Ce=(function(){var e=`bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN`,t=`nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111`;function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?`R`:1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?`r`:8192<=n&&n<=8203?`w`:n==8204?`b`:`L`}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,o=/[Lb1n]/,s=/[1n]/;function c(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var l=t==`ltr`?`L`:`R`;if(e.length==0||t==`ltr`&&!r.test(e))return!1;for(var u=e.length,d=[],f=0;f<u;++f)d.push(n(e.charCodeAt(f)));for(var p=0,m=l;p<u;++p){var h=d[p];h==`m`?d[p]=m:m=h}for(var g=0,_=l;g<u;++g){var v=d[g];v==`1`&&_==`r`?d[g]=`n`:a.test(v)&&(_=v,v==`r`&&(d[g]=`R`))}for(var y=1,b=d[0];y<u-1;++y){var x=d[y];x==`+`&&b==`1`&&d[y+1]==`1`?d[y]=`1`:x==`,`&&b==d[y+1]&&(b==`1`||b==`n`)&&(d[y]=b),b=x}for(var S=0;S<u;++S){var C=d[S];if(C==`,`)d[S]=`N`;else if(C==`%`){var w=void 0;for(w=S+1;w<u&&d[w]==`%`;++w);for(var T=S&&d[S-1]==`!`||w<u&&d[w]==`1`?`1`:`N`,E=S;E<w;++E)d[E]=T;S=w-1}}for(var D=0,O=l;D<u;++D){var k=d[D];O==`L`&&k==`1`?d[D]=`L`:a.test(k)&&(O=k)}for(var A=0;A<u;++A)if(i.test(d[A])){var j=void 0;for(j=A+1;j<u&&i.test(d[j]);++j);for(var M=(A?d[A-1]:l)==`L`,ee=M==((j<u?d[j]:l)==`L`)?M?`L`:`R`:l,N=A;N<j;++N)d[N]=ee;A=j-1}for(var P=[],F,I=0;I<u;)if(o.test(d[I])){var te=I;for(++I;I<u&&o.test(d[I]);++I);P.push(new c(0,te,I))}else{var L=I,R=P.length,z=t==`rtl`?1:0;for(++I;I<u&&d[I]!=`L`;++I);for(var B=L;B<I;)if(s.test(d[B])){L<B&&(P.splice(R,0,new c(1,L,B)),R+=z);var V=B;for(++B;B<I&&s.test(d[B]);++B);P.splice(R,0,new c(2,V,B)),R+=z,L=B}else ++B;L<I&&P.splice(R,0,new c(1,L,I))}return t==`ltr`&&(P[0].level==1&&(F=e.match(/^\s+/))&&(P[0].from=F[0].length,P.unshift(new c(0,0,F[0].length))),K(P).level==1&&(F=e.match(/\s+$/))&&(K(P).to-=F[0].length,P.push(new c(0,u-F[0].length,u)))),t==`rtl`?P.reverse():P}})();function q(e,t){var n=e.order;return n??=e.order=Ce(e.text,t),n}var we=[],J=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent(`on`+t,n);else{var r=e._handlers||={};r[t]=(r[t]||we).concat(n)}};function Te(e,t){return e._handlers&&e._handlers[t]||we}function Ee(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent(`on`+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var a=H(i,n);a>-1&&(r[t]=i.slice(0,a).concat(i.slice(a+1)))}}}function Y(e,t){var n=Te(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function De(e,t,n){return typeof t==`string`&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Y(e,n||t.type,e,t),Ne(t)||t.codemirrorIgnore}function Oe(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)H(n,t[r])==-1&&n.push(t[r])}function ke(e,t){return Te(e,t).length>0}function Ae(e){e.prototype.on=function(e,t){J(this,e,t)},e.prototype.off=function(e,t){Ee(this,e,t)}}function je(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Me(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ne(e){return e.defaultPrevented==null?e.returnValue==0:e.defaultPrevented}function Pe(e){je(e),Me(e)}function Fe(e){return e.target||e.srcElement}function Ie(e){var t=e.which;return t??(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),y&&e.ctrlKey&&t==1&&(t=3),t}var Le=function(){if(o&&s<9)return!1;var e=k(`div`);return`draggable`in e||`dragDrop`in e}(),Re;function ze(e){if(Re==null){var t=k(`span`,`​`);O(e,k(`span`,[t,document.createTextNode(`x`)])),e.firstChild.offsetHeight!=0&&(Re=t.offsetWidth<=1&&t.offsetHeight>2&&!(o&&s<8))}var n=Re?k(`span`,`​`):k(`span`,`\xA0`,null,`display: inline-block; width: 1px; margin-right: -1px`);return n.setAttribute(`cm-text`,``),n}var Be;function Ve(e){if(Be!=null)return Be;var t=O(e,document.createTextNode(`AخA`)),n=j(t,0,1).getBoundingClientRect(),r=j(t,1,2).getBoundingClientRect();return D(e),!n||n.left==n.right?!1:Be=r.right-n.right<3}var He=`
1
+ import{At as e,C as t,Ct as n,Dt as r,Ft as i,G as a,Ht as o,It as s,Jt as c,Lt as l,Mt as u,Nt as d,Qt as f,Rt as p,St as m,Tt as h,Vt as g,W as _,Wt as v,Xt as y,_t as b,a as x,b as S,bt as C,c as w,ct as T,dt as E,en as D,ft as O,ht as k,in as A,it as j,kt as M,l as ee,lt as N,m as P,mt as F,n as I,nt as te,o as L,ot as R,p as z,pt as B,qt as V,r as ne,rn as H,rt as re,st as U,tn as W,u as ie,ut as G,v as ae,vt as oe,w as se,wt as K,x as ce,xt as le,y as ue,yt as de,zt as fe}from"./axTMqr-M.js";import{t as pe}from"./CkP2VQQ5.js";import{n as me,r as he}from"./DQtLZa7C.js";import{a as ge,c as _e,s as ve}from"./Db5DS6RJ.js";import{n as ye}from"./DQcokXty.js";import{r as be,t as xe}from"./h9JT8fy9.js";import{t as Se}from"./CPuYr29B.js";import"./DnpfwSMy.js";import{t as Ce}from"./C5uSI1no.js";import{n as q,t as we}from"./l2P7b8gw.js";import{t as J}from"./3WaMGJ3H.js";import{n as Te,r as Ee,t as Y}from"./k3tsOkpc.js";import{t as De}from"./S09qVi2A.js";import{n as Oe,t as ke}from"./DtEEoUTs.js";import{t as Ae}from"./D-16ZB3R.js";import{n as je,r as Me}from"./C4x1Rf0J.js";import{t as Ne}from"./BsAtFXkB.js";import{c as Pe,i as Fe,n as Ie,o as Le,r as Re,s as ze,t as Be}from"./C1B7Lb_i.js";import{t as Ve}from"./DO0Faz7t.js";import{t as He}from"./DRSBujEZ.js";import{t as Ue}from"./jnbX5wk_.js";var We=Object.create,Ge=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,qe=Object.getOwnPropertyNames,Je=Object.getPrototypeOf,Ye=Object.prototype.hasOwnProperty,Xe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ze=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=qe(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Ye.call(e,s)&&s!==n&&Ge(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Ke(t,s))||r.enumerable});return e},Qe=(e,t,n)=>(n=e==null?{}:We(Je(e)),Ze(t||!e||!e.__esModule?Ge(n,`default`,{value:e,enumerable:!0}):n,e)),$e={border:`r y base rounded-r-xl`,flex:`~ col gap-1`,p1:``,"of-y-auto":``,"max-h-96vh":``,relative:``,"bg-glass":``,class:`fixed left-0 top-1/2 -translate-y-1/2`},et=F({__name:`SideNav`,setup(e){let t=R(()=>[...we.value,{title:`Toggle dark mode`,icon:`i-ph-sun-duotone dark:i-ph-moon-duotone`,action:I}]);return(e,n)=>{let r=u(`tooltip`);return h(),G(`div`,null,[U(`div`,$e,[(h(!0),G(j,null,M(t.value,e=>o((h(),T(d(e.to?D(pe):`button`),C({key:e.title,ref_for:!0},e.to?{to:e.to}:{},{title:e.title,"rounded-full":``,p2:``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,flex:`~ items-center justify-center`,"exact-active-class":`text-primary op100!`,onClick:t=>e.action?.()}),{default:g(()=>[U(`div`,{class:W(e.icon),"text-lg":``},null,2)]),_:2},1040,[`title`,`onClick`])),[[r,{placement:`right`,content:e.title}]])),128))])])}}}),tt=Object.assign(et,{__name:`PanelSideNav`}),nt={},rt={"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Close`};function it(e,t){return h(),G(`button`,rt,[...t[0]||=[U(`div`,{"i-ph-x":``},null,-1)]])}var X=Object.assign(t(nt,[[`render`,it]]),{__name:`DisplayCloseButton`}),at=new WeakMap,ot={mounted(e,t){let n=!t.modifiers.bubble,r;if(typeof t.value==`function`)r=x(e,t.value,{capture:n});else{let[i,a]=t.value;r=x(e,i,Object.assign({capture:n},a))}at.set(e,r)},unmounted(e){let t=at.get(e);t&&typeof t==`function`?t():t?.stop(),at.delete(e)}};function st(){let e=!1,t=y(!1);return(n,r)=>{if(t.value=r.value,e)return;e=!0;let i=P(n,r.value);p(t,e=>i.value=e)}}st();var ct={__name:`splitpanes`,props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:[`ready`,`resize`,`resized`,`pane-click`,`pane-maximize`,`pane-add`,`pane-remove`,`splitter-click`,`splitter-dblclick`],setup(e,{emit:t}){let i=t,a=e,o=s(),l=c([]),u=R(()=>l.value.reduce((e,t)=>(e[~~t.id]=t)&&e,{})),f=R(()=>l.value.length),g=c(null),_=c(!1),v=c({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),y=c({splitter:null,timeoutId:null}),x=R(()=>({[`splitpanes splitpanes--${a.horizontal?`horizontal`:`vertical`}`]:!0,"splitpanes--dragging":v.value.dragging})),S=()=>{document.addEventListener(`mousemove`,E,{passive:!1}),document.addEventListener(`mouseup`,D),`ontouchstart`in window&&(document.addEventListener(`touchmove`,E,{passive:!1}),document.addEventListener(`touchend`,D))},C=()=>{document.removeEventListener(`mousemove`,E,{passive:!1}),document.removeEventListener(`mouseup`,D),`ontouchstart`in window&&(document.removeEventListener(`touchmove`,E,{passive:!1}),document.removeEventListener(`touchend`,D))},w=(e,t)=>{let n=e.target.closest(`.splitpanes__splitter`);if(n){let{left:t,top:r}=n.getBoundingClientRect(),{clientX:i,clientY:o}=`ontouchstart`in window&&e.touches?e.touches[0]:e;v.value.cursorOffset=a.horizontal?o-r:i-t}S(),v.value.mouseDown=!0,v.value.activeSplitter=t},E=e=>{v.value.mouseDown&&(e.preventDefault(),v.value.dragging=!0,requestAnimationFrame(()=>{ee(j(e)),oe(`resize`,{event:e},!0)}))},D=e=>{v.value.dragging&&(window.getSelection().removeAllRanges(),oe(`resized`,{event:e},!0)),v.value.mouseDown=!1,v.value.activeSplitter=null,setTimeout(()=>{v.value.dragging=!1,C()},100)},O=(e,t)=>{`ontouchstart`in window&&(e.preventDefault(),y.value.splitter===t?(clearTimeout(y.value.timeoutId),y.value.timeoutId=null,k(e,t),y.value.splitter=null):(y.value.splitter=t,y.value.timeoutId=setTimeout(()=>y.value.splitter=null,500))),v.value.dragging||oe(`splitter-click`,{event:e,index:t},!0)},k=(e,t)=>{if(oe(`splitter-dblclick`,{event:e,index:t},!0),a.maximizePanes){let n=0;l.value=l.value.map((e,r)=>(e.size=r===t?e.max:e.min,r!==t&&(n+=e.min),e)),l.value[t].size-=n,oe(`pane-maximize`,{event:e,index:t,pane:l.value[t]}),oe(`resized`,{event:e,index:t},!0)}},A=(e,t)=>{oe(`pane-click`,{event:e,index:u.value[t].index,pane:u.value[t]})},j=e=>{let t=g.value.getBoundingClientRect(),{clientX:n,clientY:r}=`ontouchstart`in window&&e.touches?e.touches[0]:e;return{x:n-(a.horizontal?0:v.value.cursorOffset)-t.left,y:r-(a.horizontal?v.value.cursorOffset:0)-t.top}},M=e=>{e=e[a.horizontal?`y`:`x`];let t=g.value[a.horizontal?`clientHeight`:`clientWidth`];return a.rtl&&!a.horizontal&&(e=t-e),e*100/t},ee=e=>{let t=v.value.activeSplitter,n={prevPanesSize:P(t),nextPanesSize:F(t),prevReachedMinPanes:0,nextReachedMinPanes:0},r=0+(a.pushOtherPanes?0:n.prevPanesSize),i=100-(a.pushOtherPanes?0:n.nextPanesSize),o=Math.max(Math.min(M(e),i),r),s=[t,t+1],c=l.value[s[0]]||null,u=l.value[s[1]]||null,d=c.max<100&&o>=c.max+n.prevPanesSize,f=u.max<100&&o<=100-(u.max+F(t+1));if(d||f){d?(c.size=c.max,u.size=Math.max(100-c.max-n.prevPanesSize-n.nextPanesSize,0)):(c.size=Math.max(100-u.max-n.prevPanesSize-F(t+1),0),u.size=u.max);return}if(a.pushOtherPanes){let e=N(n,o);if(!e)return;({sums:n,panesToResize:s}=e),c=l.value[s[0]]||null,u=l.value[s[1]]||null}c!==null&&(c.size=Math.min(Math.max(o-n.prevPanesSize-n.prevReachedMinPanes,c.min),c.max)),u!==null&&(u.size=Math.min(Math.max(100-o-n.nextPanesSize-n.nextReachedMinPanes,u.min),u.max))},N=(e,t)=>{let n=v.value.activeSplitter,r=[n,n+1];return t<e.prevPanesSize+l.value[r[0]].min&&(r[0]=I(n).index,e.prevReachedMinPanes=0,r[0]<n&&l.value.forEach((t,i)=>{i>r[0]&&i<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),e.prevPanesSize=P(r[0]),r[0]===void 0)?(e.prevReachedMinPanes=0,l.value[0].size=l.value[0].min,l.value.forEach((t,r)=>{r>0&&r<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),l.value[r[1]].size=100-e.prevReachedMinPanes-l.value[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-l.value[r[1]].min&&(r[1]=te(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&l.value.forEach((t,i)=>{i>n&&i<r[1]&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),e.nextPanesSize=F(r[1]-1),r[1]===void 0)?(e.nextReachedMinPanes=0,l.value.forEach((t,r)=>{r<f.value-1&&r>=n+1&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),l.value[r[0]].size=100-e.prevPanesSize-F(r[0]-1),null):{sums:e,panesToResize:r}},P=e=>l.value.reduce((t,n,r)=>t+(r<e?n.size:0),0),F=e=>l.value.reduce((t,n,r)=>t+(r>e+1?n.size:0),0),I=e=>[...l.value].reverse().find(t=>t.index<e&&t.size>t.min)||{},te=e=>l.value.find(t=>t.index>e+1&&t.size>t.min)||{},L=()=>{let e=Array.from(g.value?.children||[]);for(let t of e){let e=t.classList.contains(`splitpanes__pane`),n=t.classList.contains(`splitpanes__splitter`);!e&&!n&&(t.remove(),console.warn(`Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.`))}},z=(e,t,n=!1)=>{let r=e-1,i=document.createElement(`div`);i.classList.add(`splitpanes__splitter`),n||(i.onmousedown=e=>w(e,r),typeof window<`u`&&`ontouchstart`in window&&(i.ontouchstart=e=>w(e,r)),i.onclick=e=>O(e,r+1)),i.ondblclick=e=>k(e,r+1),t.parentNode.insertBefore(i,t)},B=e=>{e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.remove()},V=()=>{let e=Array.from(g.value?.children||[]);for(let t of e)t.className.includes(`splitpanes__splitter`)&&B(t);let t=0;for(let n of e)n.className.includes(`splitpanes__pane`)&&(!t&&a.firstSplitter?z(t,n,!0):t&&z(t,n),t++)},ne=({uid:e,...t})=>{let n=u.value[e];for(let[e,r]of Object.entries(t))n[e]=r},H=e=>{let t=-1;Array.from(g.value?.children||[]).some(n=>(n.className.includes(`splitpanes__pane`)&&t++,n.isSameNode(e.el))),l.value.splice(t,0,{...e,index:t}),l.value.forEach((e,t)=>e.index=t),_.value&&le(()=>{V(),U({addedPane:l.value[t]}),oe(`pane-add`,{pane:l.value[t]})})},re=e=>{let t=l.value.findIndex(t=>t.id===e);l.value[t].el=null;let n=l.value.splice(t,1)[0];l.value.forEach((e,t)=>e.index=t),le(()=>{V(),oe(`pane-remove`,{pane:n}),U({removedPane:{...n}})})},U=(e={})=>{!e.addedPane&&!e.removedPane?ie():l.value.some(e=>e.givenSize!==null||e.min||e.max<100)?G(e):W(),_.value&&oe(`resized`)},W=()=>{let e=100/f.value,t=0,n=[],r=[];for(let i of l.value)i.size=Math.max(Math.min(e,i.max),i.min),t-=i.size,i.size>=i.max&&n.push(i.id),i.size<=i.min&&r.push(i.id);t>.1&&ae(t,n,r)},ie=()=>{let e=100,t=[],n=[],r=0;for(let i of l.value)e-=i.size,i.givenSize!==null&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id);let i=100;if(e>.1){for(let t of l.value)t.givenSize===null&&(t.size=Math.max(Math.min(e/(f.value-r),t.max),t.min)),i-=t.size;i>.1&&ae(i,t,n)}},G=({addedPane:e,removedPane:t}={})=>{let n=100/f.value,r=0,i=[],a=[];(e?.givenSize??null)!==null&&(n=(100-e.givenSize)/(f.value-1));for(let e of l.value)r-=e.size,e.size>=e.max&&i.push(e.id),e.size<=e.min&&a.push(e.id);if(!(Math.abs(r)<.1)){for(let t of l.value)e?.givenSize!==null&&e?.id===t.id||(t.size=Math.max(Math.min(n,t.max),t.min)),r-=t.size,t.size>=t.max&&i.push(t.id),t.size<=t.min&&a.push(t.id);r>.1&&ae(r,i,a)}},ae=(e,t,n)=>{let r;r=e>0?e/(f.value-t.length):e/(f.value-n.length),l.value.forEach((i,a)=>{if(e>0&&!t.includes(i.id)){let t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}else if(!n.includes(i.id)){let t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}}),Math.abs(e)>.1&&le(()=>{_.value&&console.warn(`Splitpanes: Could not resize panes correctly due to their constraints.`)})},oe=(e,t=void 0,n=!1)=>{let r=t?.index??v.value.activeSplitter??null;i(e,{...t,...r!==null&&{index:r},...n&&r!==null&&{prevPane:l.value[r-(a.firstSplitter?1:0)],nextPane:l.value[r+(a.firstSplitter?0:1)]},panes:l.value.map(e=>({min:e.min,max:e.max,size:e.size}))})};p(()=>a.firstSplitter,()=>V()),n(()=>{L(),V(),U(),oe(`ready`),_.value=!0}),m(()=>_.value=!1);let se=()=>b(`div`,{ref:g,class:x.value},o.default?.call(o));return r(`panes`,l),r(`indexedPanes`,u),r(`horizontal`,R(()=>a.horizontal)),r(`requestUpdate`,ne),r(`onPaneAdd`,H),r(`onPaneRemove`,re),r(`onPaneClick`,A),(e,t)=>(h(),T(d(se)))}},lt={__name:`pane`,props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(t){let r=t,i=oe(`requestUpdate`),a=oe(`onPaneAdd`),o=oe(`horizontal`),s=oe(`onPaneRemove`),l=oe(`onPaneClick`),u=k()?.uid,d=oe(`indexedPanes`),f=R(()=>d.value[u]),g=c(null),_=R(()=>{let e=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(e,y.value),v.value)}),v=R(()=>{let e=parseFloat(r.minSize);return isNaN(e)?0:e}),y=R(()=>{let e=parseFloat(r.maxSize);return isNaN(e)?100:e}),b=R(()=>`${o.value?`height`:`width`}: ${f.value?.size}%`);return p(()=>_.value,e=>i({uid:u,size:e})),p(()=>v.value,e=>i({uid:u,min:e})),p(()=>y.value,e=>i({uid:u,max:e})),n(()=>{a({id:u,el:g.value,min:v.value,max:y.value,givenSize:r.size===void 0?null:_.value,size:_.value})}),m(()=>s(u)),(t,n)=>(h(),G(`div`,{ref_key:`paneEl`,ref:g,class:`splitpanes__pane`,onClick:n[0]||=e=>D(l)(e,t._.uid),style:H(b.value)},[e(t.$slots,`default`)],4))}},ut=[`title`],dt=F({__name:`IconButton`,props:{title:{},classIcon:{},active:{type:Boolean}},setup(t){let n=t;return(t,r)=>(h(),G(`button`,{"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,class:W(n.active?`bg-active op90 text-green-400`:``),hover:`bg-active op100`,op50:``,title:n.title},[e(t.$slots,`default`,{},()=>[U(`div`,{class:W(n.classIcon)},null,2)])],10,ut))}}),Z=Object.assign(dt,{__name:`DisplayIconButton`}),Q=Xe(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n||=self,n.CodeMirror=r())})(e,(function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),a=/Edge\/(\d+)/.exec(e),o=r||i||a,s=o&&(r?document.documentMode||6:+(a||i)[1]),c=!a&&/WebKit\//.test(e),l=c&&/Qt\/\d+\.\d+/.test(e),u=!a&&/Chrome\/(\d+)/.exec(e),d=u&&+u[1],f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),m=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),g=p&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),_=/Android/.test(e),v=g||_||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),x=/win/i.test(t),S=f&&e.match(/Version\/(\d*\.\d*)/);S&&=Number(S[1]),S&&S>=15&&(f=!1,c=!0);var C=y&&(l||f&&(S==null||S<12.11)),w=n||o&&s>=9;function T(e){return RegExp(`(^|\\s)`+e+`(?:$|\\s)\\s*`)}var E=function(e,t){var n=e.className,r=T(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:``)}};function D(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return D(e).appendChild(t)}function k(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t==`string`)i.appendChild(document.createTextNode(t));else if(t)for(var a=0;a<t.length;++a)i.appendChild(t[a]);return i}function A(e,t,n,r){var i=k(e,t,n,r);return i.setAttribute(`role`,`presentation`),i}var j=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd(`character`,n),r.moveStart(`character`,t),r};function M(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function ee(e){var t=e.ownerDocument||e,n;try{n=e.activeElement}catch{n=t.body||null}for(;n&&n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;return n}function N(e,t){var n=e.className;T(t).test(n)||(e.className+=(n?` `:``)+t)}function P(e,t){for(var n=e.split(` `),r=0;r<n.length;r++)n[r]&&!T(n[r]).test(t)&&(t+=` `+n[r]);return t}var F=function(e){e.select()};g?F=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:o&&(F=function(e){try{e.select()}catch{}});function I(e){return e.display.wrapper.ownerDocument}function te(e){return L(e.display.wrapper)}function L(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function R(e){return I(e).defaultView}function z(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function B(e,t,n){for(var r in t||={},e)e.hasOwnProperty(r)&&(n!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function V(e,t,n,r,i){t??(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var a=r||0,o=i||0;;){var s=e.indexOf(` `,a);if(s<0||s>=t)return o+(t-a);o+=s-a,o+=n-o%n,a=s+1}}var ne=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};ne.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ne.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};function H(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}var re=50,U={toString:function(){return`CodeMirror.Pass`}},W={scroll:!1},ie={origin:`*mouse`},G={origin:`+move`};function ae(e,t,n){for(var r=0,i=0;;){var a=e.indexOf(` `,r);a==-1&&(a=e.length);var o=a-r;if(a==e.length||i+o>=t)return r+Math.min(o,t-i);if(i+=a-r,i+=n-i%n,r=a+1,i>=t)return r}}var oe=[``];function se(e){for(;oe.length<=e;)oe.push(K(oe)+` `);return oe[e]}function K(e){return e[e.length-1]}function ce(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function le(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function ue(){}function de(e,t){var n;return Object.create?n=Object.create(e):(ue.prototype=e,n=new ue),t&&B(t,n),n}var fe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function pe(e){return/\w/.test(e)||e>`€`&&(e.toUpperCase()!=e.toLowerCase()||fe.test(e))}function me(e,t){return t?t.source.indexOf(`\\w`)>-1&&pe(e)?!0:t.test(e):pe(e)}function he(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ge=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function _e(e){return e.charCodeAt(0)>=768&&ge.test(e)}function ve(e,t,n){for(;(n<0?t>0:t<e.length)&&_e(e.charAt(t));)t+=n;return t}function ye(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,a=r<0?Math.ceil(i):Math.floor(i);if(a==t)return e(a)?t:n;e(a)?n=a:t=a+r}}function be(e,t,n,r){if(!e)return r(t,n,`ltr`,0);for(var i=!1,a=0;a<e.length;++a){var o=e[a];(o.from<n&&o.to>t||t==n&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,n),o.level==1?`rtl`:`ltr`,a),i=!0)}i||r(t,n,`ltr`)}var xe=null;function Se(e,t,n){var r;xe=null;for(var i=0;i<e.length;++i){var a=e[i];if(a.from<t&&a.to>t)return i;a.to==t&&(a.from!=a.to&&n==`before`?r=i:xe=i),a.from==t&&(a.from!=a.to&&n!=`before`?r=i:xe=i)}return r??xe}var Ce=(function(){var e=`bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN`,t=`nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111`;function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?`R`:1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?`r`:8192<=n&&n<=8203?`w`:n==8204?`b`:`L`}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,o=/[Lb1n]/,s=/[1n]/;function c(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var l=t==`ltr`?`L`:`R`;if(e.length==0||t==`ltr`&&!r.test(e))return!1;for(var u=e.length,d=[],f=0;f<u;++f)d.push(n(e.charCodeAt(f)));for(var p=0,m=l;p<u;++p){var h=d[p];h==`m`?d[p]=m:m=h}for(var g=0,_=l;g<u;++g){var v=d[g];v==`1`&&_==`r`?d[g]=`n`:a.test(v)&&(_=v,v==`r`&&(d[g]=`R`))}for(var y=1,b=d[0];y<u-1;++y){var x=d[y];x==`+`&&b==`1`&&d[y+1]==`1`?d[y]=`1`:x==`,`&&b==d[y+1]&&(b==`1`||b==`n`)&&(d[y]=b),b=x}for(var S=0;S<u;++S){var C=d[S];if(C==`,`)d[S]=`N`;else if(C==`%`){var w=void 0;for(w=S+1;w<u&&d[w]==`%`;++w);for(var T=S&&d[S-1]==`!`||w<u&&d[w]==`1`?`1`:`N`,E=S;E<w;++E)d[E]=T;S=w-1}}for(var D=0,O=l;D<u;++D){var k=d[D];O==`L`&&k==`1`?d[D]=`L`:a.test(k)&&(O=k)}for(var A=0;A<u;++A)if(i.test(d[A])){var j=void 0;for(j=A+1;j<u&&i.test(d[j]);++j);for(var M=(A?d[A-1]:l)==`L`,ee=M==((j<u?d[j]:l)==`L`)?M?`L`:`R`:l,N=A;N<j;++N)d[N]=ee;A=j-1}for(var P=[],F,I=0;I<u;)if(o.test(d[I])){var te=I;for(++I;I<u&&o.test(d[I]);++I);P.push(new c(0,te,I))}else{var L=I,R=P.length,z=t==`rtl`?1:0;for(++I;I<u&&d[I]!=`L`;++I);for(var B=L;B<I;)if(s.test(d[B])){L<B&&(P.splice(R,0,new c(1,L,B)),R+=z);var V=B;for(++B;B<I&&s.test(d[B]);++B);P.splice(R,0,new c(2,V,B)),R+=z,L=B}else ++B;L<I&&P.splice(R,0,new c(1,L,I))}return t==`ltr`&&(P[0].level==1&&(F=e.match(/^\s+/))&&(P[0].from=F[0].length,P.unshift(new c(0,0,F[0].length))),K(P).level==1&&(F=e.match(/\s+$/))&&(K(P).to-=F[0].length,P.push(new c(0,u-F[0].length,u)))),t==`rtl`?P.reverse():P}})();function q(e,t){var n=e.order;return n??=e.order=Ce(e.text,t),n}var we=[],J=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent(`on`+t,n);else{var r=e._handlers||={};r[t]=(r[t]||we).concat(n)}};function Te(e,t){return e._handlers&&e._handlers[t]||we}function Ee(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent(`on`+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var a=H(i,n);a>-1&&(r[t]=i.slice(0,a).concat(i.slice(a+1)))}}}function Y(e,t){var n=Te(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function De(e,t,n){return typeof t==`string`&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Y(e,n||t.type,e,t),Ne(t)||t.codemirrorIgnore}function Oe(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)H(n,t[r])==-1&&n.push(t[r])}function ke(e,t){return Te(e,t).length>0}function Ae(e){e.prototype.on=function(e,t){J(this,e,t)},e.prototype.off=function(e,t){Ee(this,e,t)}}function je(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Me(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ne(e){return e.defaultPrevented==null?e.returnValue==0:e.defaultPrevented}function Pe(e){je(e),Me(e)}function Fe(e){return e.target||e.srcElement}function Ie(e){var t=e.which;return t??(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),y&&e.ctrlKey&&t==1&&(t=3),t}var Le=function(){if(o&&s<9)return!1;var e=k(`div`);return`draggable`in e||`dragDrop`in e}(),Re;function ze(e){if(Re==null){var t=k(`span`,`​`);O(e,k(`span`,[t,document.createTextNode(`x`)])),e.firstChild.offsetHeight!=0&&(Re=t.offsetWidth<=1&&t.offsetHeight>2&&!(o&&s<8))}var n=Re?k(`span`,`​`):k(`span`,`\xA0`,null,`display: inline-block; width: 1px; margin-right: -1px`);return n.setAttribute(`cm-text`,``),n}var Be;function Ve(e){if(Be!=null)return Be;var t=O(e,document.createTextNode(`AخA`)),n=j(t,0,1).getBoundingClientRect(),r=j(t,1,2).getBoundingClientRect();return D(e),!n||n.left==n.right?!1:Be=r.right-n.right<3}var He=`
2
2
 
3
3
  b`.split(/\n/).length==3?function(e){return e.split(/\r\n?|\n/)}:function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(`
4
4
  `,t);i==-1&&(i=e.length);var a=e.slice(t,e.charAt(i-1)==`\r`?i-1:i),o=a.indexOf(`\r`);o==-1?(n.push(a),t=i+1):(n.push(a.slice(0,o)),t+=o+1)}return n},Ue=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints(`StartToEnd`,t)!=0},We=(function(){var e=k(`div`);return`oncopy`in e?!0:(e.setAttribute(`oncopy`,`return;`),typeof e.oncopy==`function`)})(),Ge=null;function Ke(e){if(Ge!=null)return Ge;var t=O(e,k(`span`,`x`)),n=t.getBoundingClientRect(),r=j(t,0,1).getBoundingClientRect();return Ge=Math.abs(n.left-r.left)>1}var qe={},Je={};function Ye(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),qe[e]=t}function Xe(e,t){Je[e]=t}function Ze(e){if(typeof e==`string`&&Je.hasOwnProperty(e))e=Je[e];else if(e&&typeof e.name==`string`&&Je.hasOwnProperty(e.name)){var t=Je[e.name];typeof t==`string`&&(t={name:t}),e=de(t,e),e.name=t.name}else if(typeof e==`string`&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ze(`application/xml`);else if(typeof e==`string`&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ze(`application/json`);return typeof e==`string`?{name:e}:e||{name:`null`}}function Qe(e,t){t=Ze(t);var n=qe[t.name];if(!n)return Qe(e,`text/plain`);var r=n(e,t);if($e.hasOwnProperty(t.name)){var i=$e[t.name];for(var a in i)i.hasOwnProperty(a)&&(r.hasOwnProperty(a)&&(r[`_`+a]=r[a]),r[a]=i[a])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}var $e={};function et(e,t){B(t,$e.hasOwnProperty(e)?$e[e]:$e[e]={})}function tt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function nt(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function rt(e,t,n){return e.startState?e.startState(t,n):!0}var it=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};it.prototype.eol=function(){return this.pos>=this.string.length},it.prototype.sol=function(){return this.pos==this.lineStart},it.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},it.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},it.prototype.eat=function(e){var t=this.string.charAt(this.pos);if(typeof e==`string`?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},it.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},it.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},it.prototype.skipToEnd=function(){this.pos=this.string.length},it.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},it.prototype.backUp=function(e){this.pos-=e},it.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},it.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},it.prototype.match=function(e,t,n){if(typeof e==`string`){var r=function(e){return n?e.toLowerCase():e};if(r(this.string.substr(this.pos,e.length))==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&t!==!1&&(this.pos+=i[0].length),i)}},it.prototype.current=function(){return this.string.slice(this.start,this.pos)},it.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},it.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},it.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function X(e,t){if(t-=e.first,t<0||t>=e.size)throw Error(`There is no line `+(t+e.first)+` in the document.`);for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],a=i.chunkSize();if(t<a){n=i;break}t-=a}return n.lines[t]}function at(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){var a=e.text;i==n.line&&(a=a.slice(0,n.ch)),i==t.line&&(a=a.slice(t.ch)),r.push(a),++i}),r}function ot(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function st(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function ct(e){if(e.parent==null)return null;for(var t=e.parent,n=H(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function lt(e,t){var n=e.first;outer:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],a=i.height;if(t<a){e=i;continue outer}t-=a,n+=i.chunkSize()}return n}while(!e.lines);for(var o=0;o<e.lines.length;++o){var s=e.lines[o].height;if(t<s)break;t-=s}return n+o}function ut(e,t){return t>=e.first&&t<e.first+e.size}function dt(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function Z(e,t,n){if(n===void 0&&(n=null),!(this instanceof Z))return new Z(e,t,n);this.line=e,this.ch=t,this.sticky=n}function Q(e,t){return e.line-t.line||e.ch-t.ch}function ft(e,t){return e.sticky==t.sticky&&Q(e,t)==0}function pt(e){return Z(e.line,e.ch)}function mt(e,t){return Q(e,t)<0?t:e}function ht(e,t){return Q(e,t)<0?e:t}function gt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function $(e,t){if(t.line<e.first)return Z(e.first,0);var n=e.first+e.size-1;return t.line>n?Z(n,X(e,n).text.length):_t(t,X(e,t.line).text.length)}function _t(e,t){var n=e.ch;return n==null||n>t?Z(e.line,t):n<0?Z(e.line,0):e}function vt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=$(e,t[r]);return n}var yt=function(e,t){this.state=e,this.lookAhead=t},bt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};bt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},bt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,``),size:this.baseTokens[this.baseTokenPos]-e}},bt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},bt.fromSaved=function(e,t,n){return t instanceof yt?new bt(e,tt(e.mode,t.state),n,t.lookAhead):new bt(e,tt(e.mode,t),n)},bt.prototype.save=function(e){var t=e===!1?this.state:tt(this.doc.mode,this.state);return this.maxLookAhead>0?new yt(t,this.maxLookAhead):t};function xt(e,t,n,r){var i=[e.state.modeGen],a={};At(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},a,r);for(var o=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],c=1,l=0;n.state=!0,At(e,t.text,s.mode,n,function(e,t){for(var n=c;l<e;){var r=i[c];r>e&&i.splice(c,1,e,i[c+1],r),c+=2,l=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,c-n,e,`overlay `+t),c=n+2;else for(;n<c;n+=2){var a=i[n+1];i[n+1]=(a?a+` `:``)+`overlay `+t}},a),n.state=o,n.baseTokens=null,n.baseTokenPos=1},c=0;c<e.state.overlays.length;++c)s(c);return{styles:i,classes:a.bgClass||a.textClass?a:null}}function St(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Ct(e,ct(t)),i=t.text.length>e.options.maxHighlightLength&&tt(e.doc.mode,r.state),a=xt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=a.styles,a.classes?t.styleClasses=a.classes:t.styleClasses&&=null,n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Ct(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new bt(r,!0,t);var a=jt(e,t,n),o=a>r.first&&X(r,a-1).stateAfter,s=o?bt.fromSaved(r,o,a):new bt(r,rt(r.mode),a);return r.iter(a,t,function(n){wt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()}),n&&(r.modeFrontier=s.line),s}function wt(e,t,n,r){var i=e.doc.mode,a=new it(t,e.options.tabSize,n);for(a.start=a.pos=r||0,t==``&&Tt(i,n.state);!a.eol();)Et(i,a,n.state),a.start=a.pos}function Tt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=nt(e,t);if(n.mode.blankLine)return n.mode.blankLine(n.state)}}function Et(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=nt(e,n).mode);var a=e.token(t,n);if(t.pos>t.start)return a}throw Error(`Mode `+e.name+` failed to advance stream.`)}var Dt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Ot(e,t,n,r){var i=e.doc,a=i.mode,o;t=$(i,t);var s=X(i,t.line),c=Ct(e,t.line,n),l=new it(s.text,e.options.tabSize,c),u;for(r&&(u=[]);(r||l.pos<t.ch)&&!l.eol();)l.start=l.pos,o=Et(a,l,c.state),r&&u.push(new Dt(l,o,tt(i.mode,c.state)));return r?u:new Dt(l,o,c.state)}function kt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?`bgClass`:`textClass`;t[r]==null?t[r]=n[2]:RegExp(`(?:^|\\s)`+n[2]+`(?:$|\\s)`).test(t[r])||(t[r]+=` `+n[2])}return e}function At(e,t,n,r,i,a,o){var s=n.flattenSpans;s??=e.options.flattenSpans;var c=0,l=null,u=new it(t,e.options.tabSize,r),d,f=e.options.addModeClass&&[null];for(t==``&&kt(Tt(n,r.state),a);!u.eol();){if(u.pos>e.options.maxHighlightLength?(s=!1,o&&wt(e,t,r,u.pos),u.pos=t.length,d=null):d=kt(Et(n,u,r.state,f),a),f){var p=f[0].name;p&&(d=`m-`+(d?p+` `+d:p))}if(!s||l!=d){for(;c<u.start;)c=Math.min(u.start,c+5e3),i(c,l);l=d}u.start=u.pos}for(;c<u.pos;){var m=Math.min(u.pos,c+5e3);i(m,l),c=m}}function jt(e,t,n){for(var r,i,a=e.doc,o=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>o;--s){if(s<=a.first)return a.first;var c=X(a,s-1),l=c.stateAfter;if(l&&(!n||s+(l instanceof yt?l.lookAhead:0)<=a.modeFrontier))return s;var u=V(c.text,null,e.options.tabSize);(i==null||r>u)&&(i=s-1,r=u)}return i}function Mt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=X(e,r).stateAfter;if(i&&(!(i instanceof yt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Nt=!1,Pt=!1;function Ft(){Nt=!0}function It(){Pt=!0}function Lt(e,t,n){this.marker=e,this.from=t,this.to=n}function Rt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function zt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||=[]).push(e[r]);return n}function Bt(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||=new WeakSet);r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function Vt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var a=e[i],o=a.marker;if(a.from==null||(o.inclusiveLeft?a.from<=t:a.from<t)||a.from==t&&o.type==`bookmark`&&(!n||!a.marker.insertLeft)){var s=a.to==null||(o.inclusiveRight?a.to>=t:a.to>t);(r||=[]).push(new Lt(o,a.from,s?null:a.to))}}return r}function Ht(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var a=e[i],o=a.marker;if(a.to==null||(o.inclusiveRight?a.to>=t:a.to>t)||a.from==t&&o.type==`bookmark`&&(!n||a.marker.insertLeft)){var s=a.from==null||(o.inclusiveLeft?a.from<=t:a.from<t);(r||=[]).push(new Lt(o,s?null:a.from-t,a.to==null?null:a.to-t))}}return r}function Ut(e,t){if(t.full)return null;var n=ut(e,t.from.line)&&X(e,t.from.line).markedSpans,r=ut(e,t.to.line)&&X(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,a=t.to.ch,o=Q(t.from,t.to)==0,s=Vt(n,i,o),c=Ht(r,a,o),l=t.text.length==1,u=K(t.text).length+(l?i:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(f.to==null){var p=Rt(c,f.marker);p?l&&(f.to=p.to==null?null:p.to+u):f.to=i}}if(c)for(var m=0;m<c.length;++m){var h=c[m];h.to!=null&&(h.to+=u),h.from==null?Rt(s,h.marker)||(h.from=u,l&&(s||=[]).push(h)):(h.from+=u,l&&(s||=[]).push(h))}s&&=Wt(s),c&&c!=s&&(c=Wt(c));var g=[s];if(!l){var _=t.text.length-2,v;if(_>0&&s)for(var y=0;y<s.length;++y)s[y].to??(v||=[]).push(new Lt(s[y].marker,null,null));for(var b=0;b<_;++b)g.push(v);g.push(c)}return g}function Wt(e){for(var t=0;t<e.length;++t){var n=e[t];n.from!=null&&n.from==n.to&&n.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Gt(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;n.readOnly&&(!r||H(r,n)==-1)&&(r||=[]).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],a=0;a<r.length;++a)for(var o=r[a],s=o.find(0),c=0;c<i.length;++c){var l=i[c];if(!(Q(l.to,s.from)<0||Q(l.from,s.to)>0)){var u=[c,1],d=Q(l.from,s.from),f=Q(l.to,s.to);(d<0||!o.inclusiveLeft&&!d)&&u.push({from:l.from,to:s.from}),(f>0||!o.inclusiveRight&&!f)&&u.push({from:s.to,to:l.to}),i.splice.apply(i,u),c+=u.length-3}}return i}function Kt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function qt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Jt(e){return e.inclusiveLeft?-1:0}function Yt(e){return e.inclusiveRight?1:0}function Xt(e,t){var n=e.lines.length-t.lines.length;if(n!=0)return n;var r=e.find(),i=t.find(),a=Q(r.from,i.from)||Jt(e)-Jt(t);return a?-a:Q(r.to,i.to)||Yt(e)-Yt(t)||t.id-e.id}function Zt(e,t){var n=Pt&&e.markedSpans,r;if(n)for(var i=void 0,a=0;a<n.length;++a)i=n[a],i.marker.collapsed&&(t?i.from:i.to)==null&&(!r||Xt(r,i.marker)<0)&&(r=i.marker);return r}function Qt(e){return Zt(e,!0)}function $t(e){return Zt(e,!1)}function en(e,t){var n=Pt&&e.markedSpans,r;if(n)for(var i=0;i<n.length;++i){var a=n[i];a.marker.collapsed&&(a.from==null||a.from<t)&&(a.to==null||a.to>t)&&(!r||Xt(r,a.marker)<0)&&(r=a.marker)}return r}function tn(e,t,n,r,i){var a=X(e,t),o=Pt&&a.markedSpans;if(o)for(var s=0;s<o.length;++s){var c=o[s];if(c.marker.collapsed){var l=c.marker.find(0),u=Q(l.from,n)||Jt(c.marker)-Jt(i),d=Q(l.to,r)||Yt(c.marker)-Yt(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?Q(l.to,n)>=0:Q(l.to,n)>0)||u>=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?Q(l.from,r)<=0:Q(l.from,r)<0)))return!0}}}function nn(e){for(var t;t=Qt(e);)e=t.find(-1,!0).line;return e}function rn(e){for(var t;t=$t(e);)e=t.find(1,!0).line;return e}function an(e){for(var t,n;t=$t(e);)e=t.find(1,!0).line,(n||=[]).push(e);return n}function on(e,t){var n=X(e,t),r=nn(n);return n==r?t:ct(r)}function sn(e,t){if(t>e.lastLine())return t;var n=X(e,t),r;if(!cn(e,n))return t;for(;r=$t(n);)n=r.find(1,!0).line;return ct(n)+1}function cn(e,t){var n=Pt&&t.markedSpans;if(n){for(var r=void 0,i=0;i<n.length;++i)if(r=n[i],r.marker.collapsed&&(r.from==null||!r.marker.widgetNode&&r.from==0&&r.marker.inclusiveLeft&&ln(e,t,r)))return!0}}function ln(e,t,n){if(n.to==null){var r=n.marker.find(1,!0);return ln(e,r.line,Rt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,a=0;a<t.markedSpans.length;++a)if(i=t.markedSpans[a],i.marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(i.to==null||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&ln(e,t,i))return!0}function un(e){e=nn(e);for(var t=0,n=e.parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var a=n.parent;a;n=a,a=n.parent)for(var o=0;o<a.children.length;++o){var s=a.children[o];if(s==n)break;t+=s.height}return t}function dn(e){if(e.height==0)return 0;for(var t=e.text.length,n,r=e;n=Qt(r);){var i=n.find(0,!0);r=i.from.line,t+=i.from.ch-i.to.ch}for(r=e;n=$t(r);){var a=n.find(0,!0);t-=r.text.length-a.from.ch,r=a.to.line,t+=r.text.length-a.to.ch}return t}function fn(e){var t=e.display,n=e.doc;t.maxLine=X(n,n.first),t.maxLineLength=dn(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=dn(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var pn=function(e,t,n){this.text=e,qt(this,t),this.height=n?n(this):1};pn.prototype.lineNo=function(){return ct(this)},Ae(pn);function mn(e,t,n,r){e.text=t,e.stateAfter&&=null,e.styles&&=null,e.order!=null&&(e.order=null),Kt(e),qt(e,n);var i=r?r(e):1;i!=e.height&&st(e,i)}function hn(e){e.parent=null,Kt(e)}var gn={},_n={};function vn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?_n:gn;return n[e]||(n[e]=e.replace(/\S+/g,`cm-$&`))}function yn(e,t){var n=A(`span`,null,null,c?`padding-right: .1px`:null),r={pre:A(`pre`,[n],`CodeMirror-line`),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption(`lineWrapping`)};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var a=i?t.rest[i-1]:t.line,o=void 0;r.pos=0,r.addToken=xn,Ve(e.display.measure)&&(o=q(a,e.doc.direction))&&(r.addToken=Cn(r.addToken,o)),r.map=[],Tn(a,r,St(e,a,t!=e.display.externalMeasured&&ct(a))),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=P(a.styleClasses.bgClass,r.bgClass||``)),a.styleClasses.textClass&&(r.textClass=P(a.styleClasses.textClass,r.textClass||``))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(ze(e.display.measure))),i==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(c){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(`.cm-tab`))&&(r.content.className=`cm-tab-wrap-hack`)}return Y(e,`renderLine`,e,t.line,r.pre),r.pre.className&&(r.textClass=P(r.pre.className,r.textClass||``)),r}function bn(e){var t=k(`span`,`•`,`cm-invalidchar`);return t.title=`\\u`+e.charCodeAt(0).toString(16),t.setAttribute(`aria-label`,t.title),t}function xn(e,t,n,r,i,a,c){if(t){var l=e.splitSpaces?Sn(t,e.trailingSpace):t,u=e.cm.state.specialChars,d=!1,f;if(!u.test(t))e.col+=t.length,f=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,f),o&&s<9&&(d=!0),e.pos+=t.length;else{f=document.createDocumentFragment();for(var p=0;;){u.lastIndex=p;var m=u.exec(t),h=m?m.index-p:t.length-p;if(h){var g=document.createTextNode(l.slice(p,p+h));o&&s<9?f.appendChild(k(`span`,[g])):f.appendChild(g),e.map.push(e.pos,e.pos+h,g),e.col+=h,e.pos+=h}if(!m)break;p+=h+1;var _=void 0;if(m[0]==` `){var v=e.cm.options.tabSize,y=v-e.col%v;_=f.appendChild(k(`span`,se(y),`cm-tab`)),_.setAttribute(`role`,`presentation`),_.setAttribute(`cm-text`,` `),e.col+=y}else m[0]==`\r`||m[0]==`
@@ -1 +1 @@
1
- import{Tt as e,Vt as t,en as n,it as r,lt as i,mt as a,ot as o,pt as s,st as c,ut as l}from"./DhtFIhLO.js";import{n as u}from"./DQtLZa7C.js";import{t as d}from"./BSR6S2_V.js";import{r as f}from"./BhOPgiwp.js";var p={"text-xs":``,"font-mono":``,flex:`~ items-center gap-3`,ml2:``},m={flex:`~ gap-1 items-center`},h=a({__name:`BuildMetrics`,props:{metrics:{}},setup(a){let h=a,g=o(()=>{let e=h.metrics,t=e?.resolve_ids.reduce((e,t)=>(e+=t.duration,e),0),n=e?.loads?.reduce((e,t)=>(e+=t.duration,e),0),r=e?.transforms.reduce((e,t)=>(e+=t.duration,e),0);return{resolveIds:t,loads:n,transforms:r,total:t+n+r}}),_=o(()=>(h.metrics?.transforms)?.[0]?.source_code_size),v=o(()=>{let e=h.metrics?.transforms.filter(e=>e.transformed_code_size);return e?.[e.length-1]?.transformed_code_size});return(a,o)=>{let h=d,y=f;return e(),l(`div`,p,[s(h,{duration:g.value.resolveIds,flex:`~ gap-1 items-center`,title:`Resolve Id hooks cost: ${n(u)(g.value.resolveIds,!0)}`},{default:t(()=>[...o[0]||=[c(`span`,{"i-ph-magnifying-glass-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),s(h,{duration:g.value.loads,flex:`~ gap-1 items-center`,title:`Load hooks cost: ${n(u)(g.value.loads,!0)}`},{default:t(()=>[...o[1]||=[c(`span`,{"i-ph-upload-simple-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),s(h,{duration:g.value.transforms,flex:`~ gap-1 items-center`,title:`Transform hooks cost: ${n(u)(g.value.transforms,!0)}`},{default:t(()=>[...o[2]||=[c(`span`,{"i-ph-magic-wand-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),o[6]||=c(`span`,{op40:``},`|`,-1),s(h,{duration:g.value.total,flex:`~ gap-1 items-center`,title:`Total build cost: ${n(u)(g.value.total,!0)}`},{default:t(()=>[...o[3]||=[c(`span`,{"i-ph-clock-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),_.value&&v.value?(e(),l(r,{key:0},[o[5]||=c(`span`,{op40:``},`|`,-1),c(`div`,m,[s(y,{title:`Source code size`,bytes:_.value},null,8,[`bytes`]),o[4]||=c(`span`,{"i-ph-arrow-right-duotone":``,op50:``},null,-1),s(y,{title:`Transformed code size`,bytes:v.value},null,8,[`bytes`])])],64)):i(``,!0)])}}}),g=Object.assign(h,{__name:`ModulesBuildMetrics`});export{g as t};
1
+ import{Tt as e,Vt as t,en as n,it as r,lt as i,mt as a,ot as o,pt as s,st as c,ut as l}from"./axTMqr-M.js";import{n as u}from"./DQtLZa7C.js";import{t as d}from"./3WaMGJ3H.js";import{r as f}from"./k3tsOkpc.js";var p={"text-xs":``,"font-mono":``,flex:`~ items-center gap-3`,ml2:``},m={flex:`~ gap-1 items-center`},h=a({__name:`BuildMetrics`,props:{metrics:{}},setup(a){let h=a,g=o(()=>{let e=h.metrics,t=e?.resolve_ids.reduce((e,t)=>(e+=t.duration,e),0),n=e?.loads?.reduce((e,t)=>(e+=t.duration,e),0),r=e?.transforms.reduce((e,t)=>(e+=t.duration,e),0);return{resolveIds:t,loads:n,transforms:r,total:t+n+r}}),_=o(()=>(h.metrics?.transforms)?.[0]?.source_code_size),v=o(()=>{let e=h.metrics?.transforms.filter(e=>e.transformed_code_size);return e?.[e.length-1]?.transformed_code_size});return(a,o)=>{let h=d,y=f;return e(),l(`div`,p,[s(h,{duration:g.value.resolveIds,flex:`~ gap-1 items-center`,title:`Resolve Id hooks cost: ${n(u)(g.value.resolveIds,!0)}`},{default:t(()=>[...o[0]||=[c(`span`,{"i-ph-magnifying-glass-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),s(h,{duration:g.value.loads,flex:`~ gap-1 items-center`,title:`Load hooks cost: ${n(u)(g.value.loads,!0)}`},{default:t(()=>[...o[1]||=[c(`span`,{"i-ph-upload-simple-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),s(h,{duration:g.value.transforms,flex:`~ gap-1 items-center`,title:`Transform hooks cost: ${n(u)(g.value.transforms,!0)}`},{default:t(()=>[...o[2]||=[c(`span`,{"i-ph-magic-wand-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),o[6]||=c(`span`,{op40:``},`|`,-1),s(h,{duration:g.value.total,flex:`~ gap-1 items-center`,title:`Total build cost: ${n(u)(g.value.total,!0)}`},{default:t(()=>[...o[3]||=[c(`span`,{"i-ph-clock-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),_.value&&v.value?(e(),l(r,{key:0},[o[5]||=c(`span`,{op40:``},`|`,-1),c(`div`,m,[s(y,{title:`Source code size`,bytes:_.value},null,8,[`bytes`]),o[4]||=c(`span`,{"i-ph-arrow-right-duotone":``,op50:``},null,-1),s(y,{title:`Transformed code size`,bytes:v.value},null,8,[`bytes`])])],64)):i(``,!0)])}}}),g=Object.assign(h,{__name:`ModulesBuildMetrics`});export{g as t};