thebird 1.2.28 → 1.2.30

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.
@@ -0,0 +1,2 @@
1
+ /*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
2
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-black:#000;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-bold:700;--leading-relaxed:1.625;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.\@container{container-type:inline-size}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.absolute\!{position:absolute!important}.fixed{position:fixed}.relative{position:relative}.static{position:static}.start{inset-inline-start:var(--spacing)}.start\!{inset-inline-start:var(--spacing)!important}.end{inset-inline-end:var(--spacing)}.end\!{inset-inline-end:var(--spacing)!important}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-12{margin-bottom:calc(var(--spacing) * 12)}.ml-1{margin-left:calc(var(--spacing) * 1)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.table{display:table}.h-4{height:calc(var(--spacing) * 4)}.h-full{height:100%}.max-h-\[120px\]{max-height:120px}.min-h-\[42px\]{min-height:42px}.w-full{width:100%}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-\[160px\]{min-width:160px}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.resize{resize:both}.resize-none{resize:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.self-end{align-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.bg-black{background-color:var(--color-black)}.bg-bottom{background-position:bottom}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pb-1{padding-bottom:calc(var(--spacing) * 1)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.text-wrap{text-wrap:wrap}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.underline\!{text-decoration-line:underline!important}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}@media (min-width:40rem){.sm\:inline{display:inline}}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}
@@ -0,0 +1,2 @@
1
+ var R=new Map(Object.entries({a:"A",abbr:"ABBR",address:"ADDRESS",area:"AREA",article:"ARTICLE",aside:"ASIDE",audio:"AUDIO",b:"B",base:"BASE",bdi:"BDI",bdo:"BDO",blockquote:"BLOCKQUOTE",body:"BODY",br:"BR",button:"BUTTON",canvas:"CANVAS",caption:"CAPTION",cite:"CITE",code:"CODE",col:"COL",colgroup:"COLGROUP",data:"DATA",datalist:"DATALIST",dd:"DD",del:"DEL",details:"DETAILS",dfn:"DFN",dialog:"DIALOG",div:"DIV",dl:"DL",dt:"DT",em:"EM",embed:"EMBED",fieldset:"FIELDSET",figcaption:"FIGCAPTION",figure:"FIGURE",footer:"FOOTER",form:"FORM",h1:"H1",h2:"H2",h3:"H3",h4:"H4",h5:"H5",h6:"H6",head:"HEAD",header:"HEADER",hgroup:"HGROUP",hr:"HR",html:"HTML",i:"I",iframe:"IFRAME",img:"IMG",input:"INPUT",ins:"INS",kbd:"KBD",label:"LABEL",legend:"LEGEND",li:"LI",link:"LINK",main:"MAIN",map:"MAP",mark:"MARK",menu:"MENU",meta:"META",meter:"METER",nav:"NAV",noscript:"NOSCRIPT",object:"OBJECT",ol:"OL",optgroup:"OPTGROUP",option:"OPTION",output:"OUTPUT",p:"P",picture:"PICTURE",pre:"PRE",progress:"PROGRESS",q:"Q",rp:"RP",rt:"RT",ruby:"RUBY",s:"S",samp:"SAMP",script:"SCRIPT",section:"SECTION",select:"SELECT",slot:"SLOT",small:"SMALL",source:"SOURCE",span:"SPAN",strong:"STRONG",style:"STYLE",sub:"SUB",summary:"SUMMARY",sup:"SUP",table:"TABLE",tbody:"TBODY",td:"TD",template:"TEMPLATE",textarea:"TEXTAREA",tfoot:"TFOOT",th:"TH",thead:"THEAD",time:"TIME",title:"TITLE",tr:"TR",track:"TRACK",u:"U",ul:"UL",var:"VAR",video:"VIDEO",wbr:"WBR"}));var C="http://www.w3.org/1999/xhtml";var O="http://www.w3.org/2000/svg";function g(e,t=[]){if(Array.isArray(e))for(let o of e)g(o,t);else J(e)&&t.push(e);return t}function J(e){let t=typeof e;return e!=null&&(t==="string"||t==="object"||t==="number"||t==="bigint")}function w(e){let t=[],o=e.firstChild;for(;o;)t.push(o),o=o.nextSibling;return t}function b(e,t){typeof t=="function"?t(e):t&&typeof t=="object"&&(t.current=e)}function a(e){let t=typeof e;return t!=="string"&&t!=="number"&&t!=="bigint"}function _(e){let t=typeof e;return t==="string"||t==="number"||t==="bigint"}function D(e){return e instanceof Element&&e.namespaceURI!==C?e.namespaceURI??void 0:void 0}function S(e,t){e.__webjsx_props=t}function x(e){let t=e.__webjsx_props;return t||(t={},e.__webjsx_props=t),t}function h(e,t){e.__webjsx_childNodes=t}function P(e){return e.__webjsx_childNodes}function U(e,t,...o){if(typeof e=="string"){let n=t||{},d=g(o);return d.length>0?n.dangerouslySetInnerHTML?(n.children=[],console.warn("WebJSX: Ignoring children since dangerouslySetInnerHTML is set.")):n.children=d:n.children=[],{type:e,tagName:R.get(e)??e.toUpperCase(),props:n??{}}}else return g(o)}function y(e){return!!e.__webjsx_suspendRendering}function A(e,t){let o=!!e.__webjsx_suspendRendering;o&&e.__webjsx_suspendRendering();try{return t()}finally{o&&e.__webjsx_resumeRendering()}}function X(e,t,o,n){n&&n!==o&&e.removeEventListener(t,n),o&&n!==o&&(e.addEventListener(t,o),e.__webjsx_listeners=e.__webjsx_listeners??{},e.__webjsx_listeners[t]=o)}function K(e,t,o){if(e instanceof HTMLElement){if(t in e){e[t]=o;return}if(typeof o=="string"){e.setAttribute(t,o);return}e[t]=o;return}if(e.namespaceURI==="http://www.w3.org/2000/svg"){o!=null?e.setAttribute(t,`${o}`):e.removeAttribute(t);return}typeof o=="string"?e.setAttribute(t,o):e[t]=o}function T(e,t,o={}){for(let n of Object.keys(t)){let d=t[n];if(!(n==="children"||n==="key"||n==="dangerouslySetInnerHTML"||n==="nodes"))if(n.startsWith("on")&&typeof d=="function"){let s=n.substring(2).toLowerCase();X(e,s,d,e.__webjsx_listeners?.[s])}else d!==o[n]&&K(e,n,d)}if(t.dangerouslySetInnerHTML){if(!o.dangerouslySetInnerHTML||t.dangerouslySetInnerHTML.__html!==o.dangerouslySetInnerHTML.__html){let n=t.dangerouslySetInnerHTML?.__html||"";e.innerHTML=n}}else o.dangerouslySetInnerHTML&&(e.innerHTML="");for(let n of Object.keys(o))if(!(n in t)&&n!=="children"&&n!=="key"&&n!=="dangerouslySetInnerHTML"&&n!=="nodes")if(n.startsWith("on")){let d=n.substring(2).toLowerCase(),s=e.__webjsx_listeners?.[d];s&&(e.removeEventListener(d,s),delete e.__webjsx_listeners[d])}else n in e?e[n]=void 0:e.removeAttribute(n)}function H(e,t){y(e)?A(e,()=>{T(e,t)}):T(e,t)}function j(e,t,o){y(e)?A(e,()=>{T(e,t,o)}):T(e,t,o)}function N(e,t){let o=e.props.xmlns!==void 0?e.props.xmlns:e.type==="svg"?O:t??void 0,n=e.props.is!==void 0?o!==void 0?document.createElementNS(o,e.type,{is:e.props.is}):document.createElement(e.type,{is:e.props.is}):o!==void 0?document.createElementNS(o,e.type):document.createElement(e.type);if(e.props&&H(n,e.props),e.props.key!==void 0&&(n.__webjsx_key=e.props.key),e.props.ref&&b(n,e.props.ref),e.props.children&&!e.props.dangerouslySetInnerHTML){let d=e.props.children,s=[];for(let r=0;r<d.length;r++){let i=d[r],f=a(i)?N(i,o):document.createTextNode(`${i}`);s.push(f),n.appendChild(f)}S(n,e.props),h(n,s)}return n}function V(e,t){let o=g(t),n=B(e,o),d=x(e);d.children=o,h(e,n)}function B(e,t){let n=x(e).children??[];if(t.length===0)return n.length>0?(e.innerHTML="",[]):[];let d=[],s=null,r=P(e)??w(e),i=!1,f=!0;for(let u=0;u<t.length;u++){let c=t[u],l=n[u],p=r[u],M=a(c)?c.props.key:void 0;if(M!==void 0){if(!s){i=!0,s=new Map;for(let E=0;E<n.length;E++){let L=n[E],I=L.props.key;if(I!==void 0){let G=r[E];s.set(I,{node:G,oldVNode:L})}}}let m=s.get(M);m?(m.oldVNode!==l&&(f=!1),d.push({type:"update",node:m.node,newVNode:c,oldVNode:m.oldVNode})):(f=!1,d.push({type:"create",vnode:c}))}else!i&&F(c,l)&&p?d.push({type:"update",node:p,newVNode:c,oldVNode:l}):(f=!1,d.push({type:"create",vnode:c}))}if(d.length){let{nodes:u,lastNode:c}=Y(e,d,r,f);for(;c?.nextSibling;)e.removeChild(c.nextSibling);return u}else return r}function F(e,t){if(t===void 0)return!1;if(_(e)&&_(t))return!0;if(a(t)&&a(e)){let o=t.props.key,n=e.props.key;return t.tagName===e.tagName&&(o===void 0&&n===void 0||o!==void 0&&n!==void 0&&o===n)}else return!1}function Y(e,t,o,n){let d=[],s=null;for(let r of t)if(r.type==="create"){let i;a(r.vnode)?i=N(r.vnode,D(e)):i=document.createTextNode(`${r.vnode}`),s?e.insertBefore(i,s.nextSibling??null):e.prepend(i),s=i,d.push(i)}else{let{node:i,newVNode:f,oldVNode:u}=r;if(a(f)){let c=u?.props||{},l=f.props;if(j(i,l,c),f.props.key!==void 0?i.__webjsx_key=f.props.key:u.props?.key&&delete i.__webjsx_key,f.props.ref&&b(i,f.props.ref),!l.dangerouslySetInnerHTML&&l.children!=null){let p=B(i,l.children);S(i,l),h(i,p)}}else f!==u&&(i.textContent=`${f}`);n||(s?s.nextSibling!==i&&e.insertBefore(i,s.nextSibling??null):i!==o[0]&&e.prepend(i)),s=i,d.push(i)}return{nodes:d,lastNode:s}}var W=function(e,t,o,n){var d;t[0]=0;for(var s=1;s<t.length;s++){var r=t[s++],i=t[s]?(t[0]|=r?1:2,o[t[s++]]):t[++s];r===3?n[0]=i:r===4?n[1]=Object.assign(n[1]||{},i):r===5?(n[1]=n[1]||{})[t[++s]]=i:r===6?n[1][t[++s]]+=i+"":r?(d=e.apply(i,W(e,i,o,["",null])),n.push(d),i[0]?t[0]|=2:(t[s-2]=0,t[s]=d)):n.push(i)}return n},k=new Map;function $(e){var t=k.get(this);return t||(t=new Map,k.set(this,t)),(t=W(this,t.get(e)||(t.set(e,t=(function(o){for(var n,d,s=1,r="",i="",f=[0],u=function(p){s===1&&(p||(r=r.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?f.push(0,p,r):s===3&&(p||r)?(f.push(3,p,r),s=2):s===2&&r==="..."&&p?f.push(4,p,0):s===2&&r&&!p?f.push(5,0,!0,r):s>=5&&((r||!p&&s===5)&&(f.push(s,0,r,d),s=6),p&&(f.push(s,p,0,d),s=6)),r=""},c=0;c<o.length;c++){c&&(s===1&&u(),u(c));for(var l=0;l<o[c].length;l++)n=o[c][l],s===1?n==="<"?(u(),f=[f],s=3):r+=n:s===4?r==="--"&&n===">"?(s=1,r=""):r=n+r[0]:i?n===i?i="":r+=n:n==='"'||n==="'"?i=n:n===">"?(u(),s=1):s&&(n==="="?(s=5,d=r,r=""):n==="/"&&(s<5||o[c][l+1]===">")?(u(),s===3&&(f=f[0]),s=f,(f=f[0]).push(2,0,s),s=0):n===" "||n===" "||n===`
2
+ `||n==="\r"?(u(),s=2):r+=n),s===3&&r==="!--"&&(s=4,f=f[0])}return u(),f})(e)),t),arguments,[])).length>1?t:t[0]}export{V as applyDiff,U as createElement,$ as htm};
@@ -0,0 +1,2 @@
1
+ var G="https://stackblitz.com";var m=class{_bus=new EventTarget;listen(t){function r(n){t(n.data)}return this._bus.addEventListener("message",r),()=>this._bus.removeEventListener("message",r)}fireEvent(t){this._bus.dispatchEvent(new MessageEvent("message",{data:t}))}};var ie=new Error;ie.stack="";var ae=new m;function $(e){return ae.listen(e)}var C={},b=null,y={get editorOrigin(){return b==null&&(b=new URL(globalThis.WEBCONTAINER_API_IFRAME_URL??G).origin),b},set editorOrigin(e){b=new URL(e).origin},setQueryParam(e,t){C[e]=t},get url(){let e=new URL(this.editorOrigin);e.pathname="/headless";for(let t in C)e.searchParams.set(t,C[t]);return e.searchParams.set("version","1.6.4"),e}};function B(){let e,t;function r(){t=new Promise(n=>e=n)}return r(),{get promise(){return t},resolve(n){return e(n)},reset:r}}var h={initialized:!1,bootCalled:!1,authComplete:B(),clientId:"",oauthScope:"",broadcastChannel:null,get editorOrigin(){return y.editorOrigin},tokens:null},et=new m,tt=new m;function J(e){if(!e)throw new Error("Oops! Tokens is not defined when it always should be.")}var p;(function(e){e.UncaughtException="PREVIEW_UNCAUGHT_EXCEPTION",e.UnhandledRejection="PREVIEW_UNHANDLED_REJECTION",e.ConsoleError="PREVIEW_CONSOLE_ERROR"})(p||(p={}));var ce=Object.defineProperty,le=(e,t)=>{for(var r in t)ce(e,r,{get:t[r],enumerable:!0})},d={};le(d,{createEndpoint:()=>Q,expose:()=>I,proxy:()=>re,proxyMarker:()=>T,releaseProxy:()=>Y,transfer:()=>te,transferHandlers:()=>O,windowEndpoint:()=>pe,wrap:()=>Z});var T=Symbol("Comlink.proxy"),Q=Symbol("Comlink.endpoint"),Y=Symbol("Comlink.releaseProxy"),v=Symbol("Comlink.thrown"),K=e=>typeof e=="object"&&e!==null||typeof e=="function",ue={canHandle:e=>K(e)&&e[T],serialize(e){let{port1:t,port2:r}=new MessageChannel;return I(e,t),[r,[r]]},deserialize(e){return e.start(),Z(e)}},fe={canHandle:e=>K(e)&&v in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},O=new Map([["proxy",ue],["throw",fe]]);function I(e,t=self){t.addEventListener("message",function r(n){if(!n||!n.data)return;let{id:o,type:s,path:i}=Object.assign({path:[]},n.data),a=(n.data.argumentList||[]).map(_),c;try{let l=i.slice(0,-1).reduce((u,w)=>u[w],e),f=i.reduce((u,w)=>u[w],e);switch(s){case 0:c=f;break;case 1:l[i.slice(-1)[0]]=_(n.data.value),c=!0;break;case 2:c=f.apply(l,a);break;case 3:{let u=new f(...a);c=re(u)}break;case 4:{let{port1:u,port2:w}=new MessageChannel;I(e,w),c=te(u,[u])}break;case 5:c=void 0;break}}catch(l){c={value:l,[v]:0}}Promise.resolve(c).catch(l=>({value:l,[v]:0})).then(l=>{let[f,u]=L(l);t.postMessage(Object.assign(Object.assign({},f),{id:o}),u),s===5&&(t.removeEventListener("message",r),X(t))})}),t.start&&t.start()}function de(e){return e.constructor.name==="MessagePort"}function X(e){de(e)&&e.close()}function Z(e,t){return A(e,[],t)}function k(e){if(e)throw new Error("Proxy has been released and is not useable")}function A(e,t=[],r=function(){}){let n=!1,o=new Proxy(r,{get(s,i){if(k(n),i===Y)return()=>E(e,{type:5,path:t.map(a=>a.toString())}).then(()=>{X(e),n=!0});if(i==="then"){if(t.length===0)return{then:()=>o};let a=E(e,{type:0,path:t.map(c=>c.toString())}).then(_);return a.then.bind(a)}return A(e,[...t,i])},set(s,i,a){k(n);let[c,l]=L(a);return E(e,{type:1,path:[...t,i].map(f=>f.toString()),value:c},l).then(_)},apply(s,i,a){k(n);let c=t[t.length-1];if(c===Q)return E(e,{type:4}).then(_);if(c==="bind")return A(e,t.slice(0,-1));let[l,f]=q(a);return E(e,{type:2,path:t.map(u=>u.toString()),argumentList:l},f).then(_)},construct(s,i){k(n);let[a,c]=q(i);return E(e,{type:3,path:t.map(l=>l.toString()),argumentList:a},c).then(_)}});return o}function he(e){return Array.prototype.concat.apply([],e)}function q(e){let t=e.map(L);return[t.map(r=>r[0]),he(t.map(r=>r[1]))]}var ee=new WeakMap;function te(e,t){return ee.set(e,t),e}function re(e){return Object.assign(e,{[T]:!0})}function pe(e,t=self,r="*"){return{postMessage:(n,o)=>e.postMessage(n,r,o),addEventListener:t.addEventListener.bind(t),removeEventListener:t.removeEventListener.bind(t)}}function L(e){for(let[t,r]of O)if(r.canHandle(e)){let[n,o]=r.serialize(e);return[{type:3,name:t,value:n},o]}return[{type:0,value:e},ee.get(e)||[]]}function _(e){switch(e.type){case 3:return O.get(e.name).deserialize(e.value);case 0:return e.value}}function E(e,t,r){return new Promise(n=>{let o=we();e.addEventListener("message",function s(i){!i.data||!i.data.id||i.data.id!==o||(e.removeEventListener("message",s),n(i.data))}),e.start&&e.start(),e.postMessage(Object.assign({id:o},t),r)})}function we(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}var me=[p.ConsoleError,p.UncaughtException,p.UnhandledRejection];function M(e){return!(e==null||typeof e!="object"||!("type"in e)||!me.includes(e.type))}function g(e){let t=Object.create(null);return e?Object.assign(t,e):t}function N(e){let t={d:{}};for(let r of Object.keys(e)){let n=e[r];if("file"in n){if("symlink"in n.file){t.d[r]={f:{l:n.file.symlink}};continue}let s=n.file.contents,i=typeof s=="string"?s:ge(s),a=typeof s=="string"?{}:{b:!0};t.d[r]={f:{c:i,...a}};continue}let o=N(n.directory);t.d[r]=o}return t}function U(e){let t=g();if("f"in e)throw new Error("It is not possible to export a single file in the JSON format.");if("d"in e)for(let r of Object.keys(e.d)){let n=e.d[r];"d"in n?t[r]=g({directory:U(n)}):"f"in n&&("c"in n.f?t[r]=g({file:g({contents:n.f.b?_e(n.f.c):n.f.c})}):"l"in n.f&&(t[r]=g({file:g({symlink:n.f.l})})))}return t}function _e(e){let t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e[r].charCodeAt(0);return t}function ge(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}var S=null,R=null,D={},ne=new TextDecoder,ye=new TextEncoder,x=class e{_instance;_runtimeInfo;fs;static _instance=null;static _teardownPromise=null;_tornDown=!1;_unsubscribeFromTokenChangedListener=()=>{};constructor(t,r,n,o){this._instance=t,this._runtimeInfo=o,this.fs=new V(r),h.initialized&&(this._unsubscribeFromTokenChangedListener=$(s=>{this._instance.setCredentials({accessToken:s,editorOrigin:h.editorOrigin})}),(async()=>{await h.authComplete.promise,!this._tornDown&&(J(h.tokens),await this._instance.setCredentials({accessToken:h.tokens.access,editorOrigin:h.editorOrigin}))})().catch(s=>{console.error(s)}))}async spawn(t,r,n){let o=[];Array.isArray(r)?o=r:n=r;let s,i=new ReadableStream;if(n?.output!==!1){let W=xe();s=W.push,i=W.stream}let a,c,l,f,u=P(F(s)),w=P(F(a)),oe=P(F(l)),se=await this._instance.run({command:t,args:o,cwd:n?.cwd,env:n?.env,terminal:n?.terminal},w,oe,u);return new H(se,i,c,f)}async export(t,r){let n={format:r?.format??"json",includes:r?.includes,excludes:r?.excludes,external:!0},o=await this._instance.serialize(t,n);if(n.format==="json"){let s=JSON.parse(ne.decode(o));return U(s)}return o}on(t,r){if(t==="preview-message"){let s=r;r=(i=>{M(i)&&s(i)})}let{listener:n,subscribe:o}=Ce(r);return o(this._instance.on(t,d.proxy(n)))}mount(t,r){let n=t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):ye.encode(JSON.stringify(N(t)));return this._instance.loadFiles(d.transfer(n,[n.buffer]),{mountPoints:r?.mountPoint})}setPreviewScript(t,r){return this._instance.setPreviewScript(t,r)}get path(){return this._runtimeInfo.path}get workdir(){return this._runtimeInfo.cwd}teardown(){if(this._tornDown)throw new Error("WebContainer already torn down");this._tornDown=!0,this._unsubscribeFromTokenChangedListener();let t=async()=>{try{await this.fs._teardown(),await this._instance.teardown()}finally{this._instance[d.releaseProxy](),e._instance===this&&(e._instance=null)}};e._teardownPromise=t()}static async boot(t={}){await this._teardownPromise,e._teardownPromise=null;let{workdirName:r}=t;if(window.crossOriginIsolated&&t.coep==="none"&&console.warn(`A Cross-Origin-Embedder-Policy header is required in cross origin isolated environments.
2
+ Set the 'coep' option to 'require-corp'.`),r?.includes("/")||r===".."||r===".")throw new Error("workdirName should be a valid folder name");for(h.bootCalled=!0;S;)await S;if(e._instance)throw new Error("Only a single WebContainer instance can be booted");let n=ke(t);S=n.catch(()=>{});try{let o=await n;return e._instance=o,o}finally{S=null}}};var Ee=1,be=2,j=class{name;_type;constructor(t,r){this.name=t,this._type=r}isFile(){return this._type===Ee}isDirectory(){return this._type===be}},z=class{_apiClient;_path;_options;_listener;_wrappedListener;_watcher;_closed=!1;constructor(t,r,n,o){this._apiClient=t,this._path=r,this._options=n,this._listener=o,this._apiClient._watchers.add(this),this._wrappedListener=(s,i)=>{this._listener&&!this._closed&&this._listener(s,i)},this._apiClient._fs.watch(this._path,this._options,P(this._wrappedListener)).then(s=>{if(this._watcher=s,this._closed)return this._teardown()}).catch(console.error)}async close(){this._closed||(this._closed=!0,this._apiClient._watchers.delete(this),await this._teardown())}async _teardown(){await this._watcher?.close().finally(()=>{this._watcher?.[d.releaseProxy]()})}},H=class{output;input;exit;_process;stdout;stderr;constructor(t,r,n,o){this.output=r,this._process=t,this.input=new WritableStream({write:s=>{this._getProcess()?.write(s).catch(()=>{})}}),this.exit=this._onExit(),this.stdout=n,this.stderr=o}kill(){this._process?.kill()}resize(t){this._getProcess()?.resize(t)}async _onExit(){try{return await this._process.onExit}finally{this._process?.[d.releaseProxy](),this._process=null}}_getProcess(){return this._process==null&&console.warn("This process already exited"),this._process}},V=class{_fs;_watchers=new Set([]);constructor(t){this._fs=t}rm(...t){return this._fs.rm(...t)}async readFile(t,r){return await this._fs.readFile(t,r)}async rename(t,r){return await this._fs.rename(t,r)}async writeFile(t,r,n){if(r instanceof Uint8Array){let o=r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength);r=d.transfer(new Uint8Array(o),[o])}await this._fs.writeFile(t,r,n)}async readdir(t,r){let n=await this._fs.readdir(t,r);return Re(n)||Pe(n)?n:n.map(s=>new j(s.name,s["Symbol(type)"]))}async mkdir(t,r){return await this._fs.mkdir(t,r)}watch(t,r,n){return typeof r=="function"&&(n=r,r=null),new z(this,t,r,n)}async _teardown(){this._fs[d.releaseProxy](),await Promise.all([...this._watchers].map(t=>t.close()))}};async function ke(e){let{serverPromise:t}=Se(e),n=await(await t).build({host:window.location.host,version:"1.6.4",workdirName:e.workdirName,forwardPreviewErrors:e.forwardPreviewErrors}),[o,s,i]=await Promise.all([n.fs(),n.previewScript(),n.runtimeInfo()]);return new x(n,o,s,i)}function F(e){if(e!=null)return t=>{t instanceof Uint8Array?e(ne.decode(t)):t==null&&e(null)}}function P(e){if(e!=null)return d.proxy(e)}function Se(e){if(R!=null)return e.coep!==D.coep&&(console.warn(`Attempting to boot WebContainer with 'coep: ${e.coep}'`),console.warn(`First boot had 'coep: ${D.coep}', new settings will not take effect!`)),{serverPromise:R};e.coep&&y.setQueryParam("coep",e.coep),e.experimentalNode&&y.setQueryParam("experimental_node","1");let t=document.createElement("iframe");t.style.display="none",t.setAttribute("allow","cross-origin-isolated");let r=y.url;t.src=r.toString();let{origin:n}=r;return D={...e},R=new Promise(o=>{let s=i=>{if(i.origin!==n)return;let{data:a}=i;if(a.type==="init"){o(d.wrap(i.ports[0]));return}if(a.type==="warning"){console[a.level].call(console,a.message);return}};window.addEventListener("message",s)}),document.body.insertBefore(t,null),{serverPromise:R}}function Re(e){return typeof e[0]=="string"}function Pe(e){return e[0]instanceof Uint8Array}function xe(){let e=null;return{stream:new ReadableStream({start(n){e=n}}),push:n=>{n!=null?e?.enqueue(n):(e?.close(),e=null)}}}function Ce(e){let t=!1,r=()=>{};return{subscribe(o){return o.then(s=>{r=s,t&&r()}),()=>{t=!0,r()}},listener:((...o)=>{t||e(...o)})}}export{x as WebContainer};