2024-01-31 14:37:19 +01:00
var R = { isObservable ( t ) { return ! 1 } , processReactiveAttribute ( t , e , n , r ) { return n } } ; function F ( t , e = ! 0 ) { return e ? Object . assign ( R , t ) : ( Object . setPrototypeOf ( t , R ) , t ) } function N ( t ) { return R . isPrototypeOf ( t ) && t !== R ? t : R } function A ( t ) { return typeof t > "u" } function J ( t ) { let e = typeof t ; return e !== "object" ? e : t === null ? "null" : Object . prototype . toString . call ( t ) } function P ( t , e ) { if ( ! t || ! ( t instanceof AbortSignal ) ) return ! 0 ; if ( ! t . aborted ) return t . addEventListener ( "abort" , e ) , function ( ) { t . removeEventListener ( "abort" , e ) } } function L ( t , e ) { let { observedAttributes : n = [ ] } = t . constructor ; return n . reduce ( function ( r , o ) { return Reflect . set ( r , st ( o ) , e ( t , o ) ) , r } , { } ) } function st ( t ) { return t . replace ( /-./g , e => e [ 1 ] . toUpperCase ( ) ) } var d = { setDeleteAttr : it , ssr : "" , D : globalThis . document , F : globalThis . DocumentFragment , H : globalThis . HTMLElement , S : globalThis . SVGElement , M : globalThis . MutationObserver } ; function it ( t , e , n ) { if ( Reflect . set ( t , e , n ) , ! ! A ( 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 _ = "__dde_lifecycleToEvents" ; 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 Z ( ... t ) { return this . appendOriginal ( ... t ) , this } function ut ( t ) { return t . append === Z || ( t . appendOriginal = t . append , t . append = Z ) , t } var T ; function D ( t , e , ... n ) { let r = N ( 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 : ( ... p ) => p . length ? ( o === 1 ? n . unshift ( ... p ) : p . forEach ( b => b ( s ) ) , void 0 ) : s } ) , c = t ( e || void 0 ) ; let a = c instanceof d . F ; if ( c . nodeName === "#comment" ) break ; let l = D . mark ( { type : "component" , name : t . name , host : a ? "this" : "parentElement" } ) ; c . prepend ( l ) , a && ( s = l ) ; break } case t === "#text" : c = S . call ( this , d . D . createTextNode ( "" ) , e ) ; break ; case ( t === "<>" || ! t ) : c = S . call ( this , d . D . createDocumentFragment ( ) , e ) ; break ; case ! ! T : c = S . call ( this , d . D . createElementNS ( T , t ) , e ) ; break ; case ! c : c = S . call ( this , d . D . createElement ( t ) , e ) } return ut ( c ) , s || ( s = c ) , n . forEach ( a => a ( s ) ) , o && v . pop ( ) , o = 2 , c } function Dt ( t , e = t , n = void 0 ) { let r = Symbol . for ( "default" ) , o = Array . from ( e . querySelectorAll ( "slot" ) ) . reduce ( ( s , a ) => Reflect . set ( s , a . name || r , a ) && s , { } ) , c = Reflect . has ( o , r ) ; if ( t . append = new Proxy ( t . append , { apply ( s , a , l ) { if ( ! l . length ) return t ; let p = d . D . createDocumentFragment ( ) ; for ( let b of l ) { if ( ! b || ! b . slot ) { c && p . appendChild ( b ) ; continue } let k = b . slot , i = o [ k ] ; dt ( b , "remove" , "slot" ) , i && ( ft ( i , b , n ) , Reflect . deleteProperty ( o , k ) ) } return c && ( o [ r ] . replaceWith ( p ) , Reflect . deleteProperty ( o , r ) ) , t . append = s , t } } ) , t !== e ) { let s = Array . from ( t . childNodes ) ; s . forEach ( a => a . remove ( ) ) , t . append ( ... s ) } return e } function ft ( t , e , n ) { n && n ( t , e ) ; try { t . replaceWith ( S ( e , { className : [ e . className , t . className ] , dataset : { ... t . dataset } } ) ) } catch { t . replaceWith ( e ) } } D . 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 kt ( t ) { let e = this ; return function ( ... r ) { T = t ; let o = D . call ( e , ... r ) ; return T = void 0 , o } } var j = new WeakMap , { setDeleteAttr : G } = d ; function S ( t , ... e ) { if ( ! e . length ) return t ; j . set ( t , Q ( t , this ) ) ; for ( let [ n , r ] of Object . entries ( Object . assign ( { } , ... e ) ) ) K . call ( this , t , n , r ) ; return j . delete ( t ) , t } function K ( t , e , n ) { let { setRemoveAttr : r , s : o } = Q ( t , this ) , c = this ; n = o . processReactiveAttribute ( t , e , n , ( a , l ) => K . call ( c , t , a , l ) ) ; let [ s ] = e ; if ( s === "=" ) return r ( e . slice ( 1 ) , n ) ; if ( s === "." ) return V ( 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 G ( t , e , n ) ; case "style" : if ( typeof n != "object" ) break ; case "dataset" : return $ ( o , n , V . bind ( null , t [ e ] ) ) ; case "ariaset" : return $ ( o , n , ( a , l )
* Investigate ` __dde_attributes ` key of the element . * / m . c l e a r ( . . . O b j e c t . v a l u e s ( t h i s [ H ] ) ) } ) ( t ) , n } ; v a r n t = { i s O b s e r v a b l e : W , 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 ( ! W ( n ) ) r e t u r n n ; l e t o = c = > { i f ( ! t . i s C o n n e c t e d ) r e t u r n w ( n , o ) ; r ( e , c ) } ; r e t u r n I ( n , o ) , r t ( n , o , t , e ) , n ( ) } } ; f u n c t i o n r 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 [ O ] | | ( o [ O ] = [ ] , x . d i s c o n n e c t e d ( ( ) = > o [ O ] . f o r E a c h ( ( [ [ c , s ] ] ) = > w ( c , s , c [ h ] ? . h o s t ( ) = = = o ) ) ) ( o ) ) , o [ O ] . p u s h ( [ [ t , e ] , . . . n ] ) } ) } f u n c t i o n t t ( t , e , n ) { l e t r = t ? ( ) = > e t ( r ) : ( . . . o ) = > o . l e n g t h ? c t ( r , . . . o ) : e t ( r ) ; r e t u r n o t ( r , e , n ) } v a r y 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 } } ) , B = 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 ot(t,e,n){let r=[];J(n)!=="[object Object]"&&(n={});let{onclear:o}=m.symbols;n[o]&&(r.push(n[o]),Reflect.deleteProperty(n,o));let{host:c}=v;return Reflect.defineProperty(t,h,{value:{value:e,actions:n,onclear:r,host:c,listeners:new Set,defined:new B},enumerable:!1,writable:!1,configurable:!0}),t.toJSON=()=>t(),Object.setPrototypeOf(t[h],yt),t}function At(){return q[q.length-1]}function et(t){if(!t[h])return;let{value:e,listeners:n}=t[h],r=At();return r&&n.add(r),g.has(r)&&g.get(r).add(t),e}function ct(t,e,n){if(!t[h])return;let r=t[h];if(!(!n&&r.value===e))return r.value=e,r.listeners.forEach(o=>o(e)),e}function I(t,e){if(t[h])return t[h].listeners.add(e)}function w(t,e,n){let r=t[h];if(!r)return;let o=r.listeners.delete(e);if(n&&!r.listeners.size){if(m.clear(t),!g.has(r))return o;let c=g.get(r);if(!g.has(c))return o;g.get(c).forEach(s=>w(s,c,!0))}return o}F(nt);export{m as O,S as assign,K as assignAttribute,ut as chainableAppend,at as classListDeclarative,D as createElement,kt as createElementNS,Mt as customElementRender,Wt as customElementWithDDE,Ut as dispatchEvent,D as el,kt as elNS,dt as elementAttribute,Nt as empty,W as isObservable,Wt as lifecycleToEvents,m as observable,bt as observedAttributes,x as on,F as registerReactivity,v as scope,Dt as simulateSlots};