2024-01-08 22:23:06 +01:00
var O = { isObservable ( t ) { return ! 1 } , processReactiveAttribute ( t , e , n , r ) { return n } } ; function F ( t , e = ! 0 ) { return e ? Object . assign ( O , t ) : ( Object . setPrototypeOf ( t , O ) , t ) } function S ( t ) { return O . isPrototypeOf ( t ) && t !== O ? t : O } function _ ( t ) { return typeof t > "u" } function B ( t ) { let e = typeof t ; return e !== "object" ? e : t === null ? "null" : Object . prototype . toString . call ( t ) } function D ( t , e ) { if ( ! t || ! ( t instanceof AbortSignal ) ) return ! 0 ; if ( ! t . aborted ) return t . addEventListener ( "abort" , e ) , function ( ) { t . removeEventListener ( "abort" , e ) } } function N ( t , e ) { let { observedAttributes : n = [ ] } = t . constructor ; return n . reduce ( function ( r , o ) { return Reflect . set ( r , ct ( o ) , e ( t , o ) ) , r } , { } ) } function ct ( t ) { return t . replace ( /-./g , e => e [ 1 ] . toUpperCase ( ) ) } var d = { setDeleteAttr : st , ssr : "" , D : globalThis . document , F : globalThis . DocumentFragment , H : globalThis . HTMLElement , S : globalThis . SVGElement , M : globalThis . MutationObserver } ; function st ( t , e , n ) { if ( Reflect . set ( t , e , n ) , ! ! _ ( n ) ) { if ( Reflect . deleteProperty ( t , e ) , t instanceof d . H && t . getAttribute ( e ) === "undefined" ) return t . removeAttribute ( e ) ; if ( Reflect . get ( t , e ) === "undefined" ) return Reflect . set ( t , e , "" ) } } var y = [ { get scope ( ) { return d . D . body } , host : t => t ? t ( d . D . body ) : d . D . body , custom _element : ! 1 , prevent : ! 0 } ] , v = { get current ( ) { return y [ y . length - 1 ] } , get host ( ) { return this . current . host } , preventDefault ( ) { let { current : t } = this ; return t . prevent = ! 0 , t } , get state ( ) { return [ ... y ] } , push ( t = { } ) { return y . push ( Object . assign ( { } , this . current , { prevent : ! 1 } , t ) ) } , pushRoot ( ) { return y . push ( y [ 0 ] ) } , pop ( ) { if ( y . length !== 1 ) return y . pop ( ) } } ; function I ( ... t ) { return this . appendOriginal ( ... t ) , this } function it ( t ) { return t . append === I || ( t . appendOriginal = t . append , t . append = I ) , t } var P ; function R ( t , e , ... n ) { let r = S ( this ) , o = 0 , c , s ; switch ( ( Object ( e ) !== e || r . isObservable ( e ) ) && ( e = { textContent : e } ) , ! 0 ) { case typeof t == "function" : { o = 1 , v . push ( { scope : t , host : ( ... h ) => h . length ? ( o === 1 ? n . unshift ( ... h ) : h . forEach ( g => g ( s ) ) , void 0 ) : s } ) , c = t ( e || void 0 ) ; let u = c instanceof d . F ; if ( c . nodeName === "#comment" ) break ; let l = R . mark ( { type : "component" , name : t . name , host : u ? "this" : "parentElement" } ) ; c . prepend ( l ) , u && ( s = l ) ; break } case t === "#text" : c = w . call ( this , d . D . createTextNode ( "" ) , e ) ; break ; case ( t === "<>" || ! t ) : c = w . call ( this , d . D . createDocumentFragment ( ) , e ) ; break ; case ! ! P : c = w . call ( this , d . D . createElementNS ( P , t ) , e ) ; break ; case ! c : c = w . call ( this , d . D . createElement ( t ) , e ) } return it ( c ) , s || ( s = c ) , n . forEach ( u => u ( s ) ) , o && v . pop ( ) , o = 2 , c } function Ct ( t , e = t , n = void 0 ) { let r = Symbol . for ( "default" ) , o = Array . from ( e . querySelectorAll ( "slot" ) ) . reduce ( ( s , u ) => Reflect . set ( s , u . name || r , u ) && s , { } ) , c = Reflect . has ( o , r ) ; if ( t . append = new Proxy ( t . append , { apply ( s , u , l ) { if ( ! l . length ) return t ; let h = d . D . createDocumentFragment ( ) ; for ( let g of l ) { if ( ! g || ! g . slot ) { c && h . appendChild ( g ) ; continue } let i = g . slot , f = o [ i ] ; at ( g , "remove" , "slot" ) , f && ( ft ( f , g , n ) , Reflect . deleteProperty ( o , i ) ) } return c && ( o [ r ] . replaceWith ( h ) , Reflect . deleteProperty ( o , r ) ) , t . append = s , t } } ) , t !== e ) { let s = Array . from ( t . childNodes ) ; s . forEach ( u => u . remove ( ) ) , t . append ( ... s ) } return e } function ft ( t , e , n ) { n && n ( t , e ) ; try { t . replaceWith ( w ( e , { className : [ e . className , t . className ] , dataset : { ... t . dataset } } ) ) } catch { t . replaceWith ( e ) } } R . mark = function ( t , e = ! 1 ) { t = Object . entries ( t ) . map ( ( [ o , c ] ) => o + ` =" ${ c } " ` ) . join ( " " ) ; let n = e ? "" : "/" , r = d . D . createComment ( ` <dde:mark ${ t } ${ d . ssr } ${ n } > ` ) ; return e && ( r . end = d . D . createComment ( "</dde:mark>" ) ) , r } ; function St ( t ) { let e = this ; return function ( ... r ) { P = t ; let o = R . call ( e , ... r ) ; return P = void 0 , o } } var j = new WeakMap , { setDeleteAttr : J } = d ; function w ( t , ... e ) { if ( ! e . length ) return t ; j . set ( t , V ( t , this ) ) ; for ( let [ n , r ] of Object . entries ( Object . assign ( { } , ... e ) ) ) G . call ( this , t , n , r ) ; return j . delete ( t ) , t } function G ( t , e , n ) { let { setRemoveAttr : r , s : o } = V ( t , this ) , c = this ; n = o . processReactiveAttribute ( t , e , n , ( u , l ) => G . call ( c , t , u , l ) ) ; let [ s ] = e ; if ( s === "=" ) return r ( e . slice ( 1 ) , n ) ; if ( s === "." ) return Z ( t , e . slice ( 1 ) , n ) ; if ( /(aria|data)([A-Z])/ . test ( e ) ) return e = e . replace ( /([a-z])([A-Z])/g , "$1-$2" ) . toLowerCase ( ) , r ( e , n ) ; switch ( e === "className" && ( e = "class" ) , e ) { case "xlink:href" : return r ( e , n , "http://www.w3.org/1999/xlink" ) ; case "textContent" : return J ( t , e , n ) ; case "style" : if ( typeof n != "object" ) break ; case "dataset" : return $ ( o , n , Z . bind ( null , t [ e ] ) ) ; case "ariaset" : return $ ( o , n , ( u , l ) => r ( "aria-" + u , l ) ) ; case " classList
* Investigate ` __dde_attributes ` key of the element . * / E . c l e a r ( . . . O b j e c t . v a l u e s ( t h i s [ U ] ) ) } ) ( t ) , n } ; v a r e t = { i s O b s e r v a b l e : T , p r o c e s s R e a c t i v e A t t r i b u t e ( t , e , n , r ) { i f ( ! T ( n ) ) r e t u r n n ; l e t o = c = > r ( e , c ) ; r e t u r n H ( n , o ) , n t ( n , o , t , e ) , n ( ) } } ; f u n c t i o n n t ( t , e , . . . n ) { l e t { c u r r e n t : r } = v ; r . p r e v e n t | | r . h o s t ( f u n c t i o n ( o ) { o [ L ] | | ( o [ L ] = [ ] , x . d i s c o n n e c t e d ( ( ) = > o [ L ] . f o r E a c h ( ( [ [ c , s ] ] ) = > C ( c , s , c [ b ] ? . h o s t ( ) = = = o ) ) ) ( o ) ) , o [ L ] . p u s h ( [ [ t , e ] , . . . n ] ) } ) } f u n c t i o n Y ( t , e , n ) { l e t r = t ? ( ) = > t t ( r ) : ( . . . o ) = > o . l e n g t h ? o t ( r , . . . o ) : t t ( r ) ; r e t u r n r t ( r , e , n ) } v a r E t = O b j e c t . a s s i g n ( O b j e c t . c r e a t e ( n u l l ) , { s t o p P r o p a g a t i o n ( ) { t h i s . s k i p = ! 0 } } ) , q = c l a s s e x t e n d s E r r o r { c o n s t r u c t o r ( ) { s u p e r ( ) ; l e t [ e , . . . n ] = t h i s . s t a c k . s p l i t ( `
` ),r=e.slice(e.indexOf("@"),e.indexOf(".js:")+4);this.stack=n.find(o=>!o.includes(r))}};function rt(t,e,n){let r=[];B(n)!=="[object Object]"&&(n={});let{onclear:o}=E.symbols;n[o]&&(r.push(n[o]),Reflect.deleteProperty(n,o));let{host:c}=v;return Reflect.defineProperty(t,b,{value:{value:e,actions:n,onclear:r,host:c,listeners:new Set,defined:new q},enumerable:!1,writable:!1,configurable:!0}),t.toJSON=()=>t(),Object.setPrototypeOf(t[b],Et),t}function xt(){return W[W.length-1]}function tt(t){if(!t[b])return;let{value:e,listeners:n}=t[b],r=xt();return r&&n.add(r),m.has(r)&&m.get(r).add(t),e}function ot(t,e,n){if(!t[b])return;let r=t[b];if(!(!n&&r.value===e))return r.value=e,r.listeners.forEach(o=>o(e)),e}function H(t,e){if(t[b])return t[b].listeners.add(e)}function C(t,e,n){let r=t[b];if(!r)return;let o=r.listeners.delete(e);if(n&&!r.listeners.size){if(E.clear(t),!m.has(r))return o;let c=m.get(r);if(!m.has(c))return o;m.get(c).forEach(s=>C(s,c,!0))}return o}F(et);export{E as O,w as assign,G as assignAttribute,it as chainableAppend,ut as classListDeclarative,R as createElement,St as createElementNS,kt as customElementRender,Lt as customElementWithDDE,Ft as dispatchEvent,R as el,St as elNS,at as elementAttribute,Dt as empty,T as isObservable,Lt as lifecycleToEvents,E as observable,ht as observedAttributes,x as on,F as registerReactivity,v as scope,Ct as simulateSlots};