( ( ) => { var t , e = { 432 : t => { ! function ( e , n ) { const r = "*" , o = Object . defineProperties , s = Object . entries , i = ( t , e ) => ( n , r ) => ( t . has ( n ) ? t . get ( n ) . add ( r ) : t . set ( n , ( new Set ) . add ( r ) ) , e ) , a = ( t , e ) => ( n , o ) => ( n !== r || o ? ( ( t , e , n , r ) => { if ( r ) { const e = t . get ( n ) ; e && ( e . delete ( r ) , 0 === e . size && t . delete ( n ) ) } else t . delete ( n ) } ) ( t , 0 , n , o ) : t . clear ( ) , e ) , u = ( t , e ) => ( t , n ) => e . on ( t , ( function r ( ... o ) { e . off ( t , r ) , n . apply ( e , o ) } ) ) , c = ( t , e ) => ( n , ... o ) => { const s = t . get ( n ) ; return s && s . forEach ( ( t => t . apply ( e , o ) ) ) , t . get ( r ) && n !== r && e . trigger ( r , n , ... o ) , e } ; t . exports = function ( t ) { const e = new Map ; return o ( t = t || { } , s ( { on : i , off : a , one : u , trigger : c } ) . reduce ( ( ( n , [ r , o ] ) => ( n [ r ] = { value : o ( e , t ) , enumerable : ! 1 , writable : ! 1 , configurable : ! 1 } , n ) ) , { } ) ) , t } } ( "undefined" != typeof window && window ) } , 107 : ( t , e , n ) => { "use strict" ; const r = { EACH : 0 , IF : 1 , SIMPLE : 2 , TAG : 3 , SLOT : 4 } ; n ( 155 ) ; function o ( t , e ) { return typeof t === e } function s ( t ) { const e = t . ownerSVGElement ; return ! ! e || null === e } function i ( t ) { return "template" === t . tagName . toLowerCase ( ) } function a ( t ) { return o ( t , "function" ) } function u ( t ) { return ! c ( t ) && t . constructor === Object } function c ( t ) { return null == t } const l = new Map , h = Symbol ( "riot-component" ) , p = new Set , d = "mount" , m = "update" , f = "unmount" , b = "shouldUpdate" , v = "onBeforeMount" , g = "onMounted" , y = "onBeforeUpdate" , x = "onUpdated" , O = "onBeforeUnmount" , w = "onUnmounted" , T = "props" , N = "state" , E = "slots" , j = "root" , C = Symbol ( "pure" ) , A = Symbol ( "is_updating" ) , M = Symbol ( "parent" ) , k = Symbol ( "attributes" ) , S = Symbol ( "template" ) ; function _ ( t ) { return t . replace ( /-(\w)/g , ( ( t , e ) => e . toUpperCase ( ) ) ) } function L ( t ) { for ( ; t . firstChild ; ) t . removeChild ( t . firstChild ) } const I = t => t && t . parentNode && t . parentNode . removeChild ( t ) , D = ( t , e ) => e && e . parentNode && e . parentNode . insertBefore ( t , e ) , U = { ATTRIBUTE : 0 , EVENT : 1 , TEXT : 2 , VALUE : 3 } ; function P ( ) { return this } function B ( t ) { return a ( t ) ? t . prototype && t . prototype . constructor ? new t : t ( ) : t } function $ ( t ) { throw new Error ( t ) } function z ( t ) { const e = new Map , n = n => ( e . has ( n ) || e . set ( n , t . call ( this , n ) ) ) && e . get ( n ) ; return n . cache = e , n } function F ( t ) { return t . reduce ( ( ( t , e ) => { const { value : n , type : r } = e ; switch ( ! 0 ) { case ! e . name && 0 === r : return { ... t , ... n } ; case 3 === r : t . value = e . value ; break ; default : t [ _ ( e . name ) ] = e . value } return t } ) , { } ) } function V ( t , e , n , r = { } ) { return Object . defineProperty ( t , e , { value : n , enumerable : ! 1 , writable : ! 1 , configurable : ! 0 , ... r } ) , t } function H ( t , e , n ) { return Object . entries ( e ) . forEach ( ( ( [ e , r ] ) => { V ( t , e , r , n ) } ) ) , t } function K ( t , e ) { return Object . entries ( e ) . forEach ( ( ( [ e , n ] ) => { t [ e ] || ( t [ e ] = n ) } ) ) , t }
/* Riot WIP, @license MIT */
const X = Object . freeze ( { [ d ] : P , [ m ] : P , [ f ] : P } ) , q = Object . assign ( { } , X , { clone : P , createDOM : P } ) , G = Symbol ( ) , R = Symbol ( ) ; function Q ( t ) { const e = t . dom . cloneNode ( ! 0 ) , { head : n , tail : r } = function ( ) { const t = document . createTextNode ( "" ) , e = document . createTextNode ( "" ) ; return t [ G ] = ! 0 , e [ R ] = ! 0 , { head : t , tail : e } } ( ) ; return { avoidDOMInjection : ! 0 , fragment : e , head : n , tail : r , children : [ n , ... Array . from ( e . childNodes ) , r ] } } const W = Symbol ( "unmount" ) , Y = { nodes : [ ] , mount ( t , e ) { return this . update ( t , e ) } , update ( t , e ) { const { placeholder : n , nodes : r , childrenMap : o } = this , s = t === W ? null : this . evaluate ( t ) , i = s ? Array . from ( s ) : [ ] , { newChildrenMap : a , batches : u , futureNodes : c } = function ( t , e , n , r ) { const { condition : o , template : s , childrenMap : i , itemName : a , getKey : u , indexName : c , root : l , isTemplateTag : h } = r , p = new Map , d = [ ] , m = [ ] ; return t . forEach ( ( ( t , r ) => { const f = function ( t , { itemName : e , indexName : n , index : r , item : o } ) { V ( t , e , o ) , n && V ( t , n , r ) ; return t } ( Object . create ( e ) , { itemName : a , indexName : c , index : r , item : t } ) , b = u ? u ( f ) : r , v = i . get ( b ) , g = [ ] ; if ( function ( t , e ) { return ! ! t && ! t ( e ) } ( o , f ) ) return ; const y = ! v , x = v ? v . template : s . clone ( ) , O = x . el || l . cloneNode ( ) , w = h && y ? Q ( x ) : x . meta ; y ? d . push ( ( ( ) => x . mount ( O , f , n , w ) ) ) : d . push ( ( ( ) => x . update ( f , n ) ) ) , h ? g . push ( ... w . children ) : g . push ( O ) , i . delete ( b ) , m . push ( ... g ) , p . set ( b , { nodes : g , template : x , context : f , index : r } ) } ) ) , { newChildrenMap : p , batches : d , futureNodes : m } } ( i , t , e , this ) ; return ( ( t , e , n , r ) => { const o = e . length ; let s = t . length , i = o , a = 0 , u = 0 , c = null ; for ( ; a < s || u < i ; ) if ( s === a ) { const t = i < o ? u ? n ( e [ u - 1 ] , - 0 ) . nextSibling : n ( e [ i - u ] , 0 ) : r ; for ( ; u < i ; ) D ( n ( e [ u ++ ] , 1 ) , t ) } else if ( i === u ) for ( ; a < s ; ) c && c . has ( t [ a ] ) || I ( n ( t [ a ] , - 1 ) ) , a ++ ; else if ( t [ a ] === e [ u ] ) a ++ , u ++ ; else if ( t [ s - 1 ] === e [ i - 1 ] ) s -- , i -- ; else if ( t [ a ] === e [ i - 1 ] && e [ u ] === t [ s - 1 ] ) { const r = n ( t [ -- s ] , - 1 ) . nextSibling ; D ( n ( e [ u ++ ] , 1 ) , n ( t [ a ++ ] , - 1 ) . nextSibling ) , D ( n ( e [ -- i ] , 1 ) , r ) , t [ s ] = e [ i ] } else { if ( ! c ) { c = new Map ; let t = u ; for ( ; t < i ; ) c . set ( e [ t ] , t ++ ) } if ( c . has ( t [ a ] ) ) { const r = c . get ( t [ a ] ) ; if ( u < r && r < i ) { let o = a , p = 1 ; for ( ; ++ o < s && o < i && c . get ( t [ o ] ) === r + p ; ) p ++ ; if ( p > r - u ) { const o = n ( t [ a ] , 0 ) ; for ( ; u < r ; ) D ( n ( e [ u ++ ] , 1 ) , o ) } else l = n ( e [ u ++ ] , 1 ) , ( h = n ( t [ a ++ ] , - 1 ) ) && h . parentNode && h . parentNode . replaceChild ( l , h ) } else a ++ } else I ( n ( t [ a ++ ] , - 1 ) ) } var l , h } ) ( r , c , function ( t , e ) { return ( n , r ) => { if ( r < 0 ) { const n = t [ t . length - 1 ] ; if ( n ) { const { template : r , nodes : o , context : s } = n ; o . pop ( ) , o . length || ( t . pop ( ) , r . unmount ( s , e , null ) ) } } return n } } ( Array . from ( o . values ( ) ) , e ) , n ) , u . forEach ( ( t => t ( ) ) ) , this . childrenMap = a , this . nodes = c , this } , unmount ( t , e ) { return this . update ( W , e ) , this } } ; const Z = { mount ( t , e ) { return this . update ( t , e ) } , update ( t , e ) { const n = ! ! this . evaluate ( t ) , r = ! this . value && n , o = this . value && ! n , s = ( ) => { const n = this . node . cloneNode ( ) ; D ( n , this . placeholder ) , this . template = this . template . clone ( ) , this . template . mount ( n , t , e ) } ; switch ( ! 0 ) { case r : s ( ) ; break ; case o : this . unmount ( t ) ; break ; default : n && this . template . update ( t , e ) } return this . value = n , this } , unmount ( t , e ) { return this . template . unmount ( t , e , ! 0 ) , this } } ; const J = "undefined" == typeof Element ? { } : Element . prototype , tt = z ( ( t => J . hasOwnProperty ( t ) ) ) ; function et ( t , { name : e } , n , r ) { if ( ! e ) return r && function ( t , e , n ) { const r = e ? Object . keys ( e ) : [ ] ; Object . keys ( n ) . filter ( ( t => ! r . includes ( t ) ) ) . forEach ( ( e => t . removeAttribute ( e ) ) ) } ( t , n , r ) , void ( n && function ( t , e ) { Object . entries ( e ) . forEach ( ( ( [ e , n ] ) => et ( t , { name : e } , n ) ) ) } ( t , n ) ) ; ! tt ( e ) && ( function ( t ) { return o ( t , "boolean" ) } ( n ) || u ( n ) || a ( n ) ) && ( t [ e ] = n ) , ! function ( t ) { return ! t && 0 !== t } ( n ) ? function ( t ) { return ! 0 === t || [ "string" , "number" ] . includes ( typeof t ) } ( n ) && t . setAttribute ( e , function ( t , e ) { return ! 0 === e ? t : e } ( e , n ) ) : t . removeAttribute ( e ) } const nt = /^on/ , rt = { handleEvent ( t ) { this [ t . type ] ( t ) } } , ot = new WeakMap ; function st ( t ) { return c ( t ) ? "" : t } const it = ( t , e ) => { const n = t . childNodes [ e ] ; if ( n . nodeType === Node . COMMENT _NODE ) { const e = document . createTextNode ( "" ) ; return t . replaceChild ( e , n ) , e } return n } ; const at = { 0 : et , 1 : function ( t , { name : e } , n ) { const r = e . replace ( nt , "" ) , o = ot . get ( t ) || ( t => { const e = Object . create ( rt ) ; return ot . set ( t , e ) , e } ) ( t ) , [ s , i ] = ( t => Array . isArray ( t ) ? t : [ t , ! 1 ] ) ( n ) , a = o [ r ] , u = s && ! a ; a && ! s && t . removeEventListener ( r , o ) , u && t . addEventListener ( r , o , i ) , o [ r ] = s } , 2 : function ( t , e , n ) { t . data = st ( n ) } , 3 : function ( t , e , n ) { t . value = st ( n ) } } , ut = { mount ( t ) { return this . value = this . evaluate ( t ) , ct ( this , this . value ) , this } , update ( t ) { const e = this . evaluate ( t ) ; return this . value !== e && ( ct ( this
/* Riot WIP, @license MIT */
function Ot ( t , e ) { const n =
/* Riot WIP, @license MIT */
function ( t ) { return void 0 === t && ( t = { } ) , Object . entries ( B ( t ) ) . reduce ( ( ( t , e ) => { let [ n , r ] = e ; var o ; return t [ ( o = n , o . replace ( /([a-z])([A-Z])/g , "$1-$2" ) . toLowerCase ( ) ) ] = Vt ( r ) , t } ) , { } ) } ( e . exports ? e . exports . components : { } ) ; return t ( xt , U , r , ( t => t === e . name ? Ht ( e ) : n [ t ] || l . get ( t ) ) ) }
/* Riot WIP, @license MIT */
const wt = ( t , e ) => t [ h ] = e ;
/* Riot WIP, @license MIT */
function Tt ( t ) { return [ d , m , f ] . reduce ( ( ( e , n ) => ( e [ n ] = t ( n ) , e ) ) , { } ) } function Nt ( t ) { return Array . isArray ( t ) ? t : /^\[object (HTMLCollection|NodeList|Object)\]$/ . test ( Object . prototype . toString . call ( t ) ) && "number" == typeof t . length ? Array . from ( t ) : [ t ] } function Et ( t , e ) { return Nt ( "string" == typeof t ? ( e || document ) . querySelectorAll ( t ) : t ) }
/* Riot WIP, @license MIT */
const jt = Object . freeze ( { $ ( t ) { return Et ( t , this . root ) [ 0 ] } , $$ ( t ) { return Et ( t , this . root ) } } ) , Ct = Object . freeze ( { [ b ] : P , [ v ] : P , [ g ] : P , [ y ] : P , [ x ] : P , [ O ] : P , [ w ] : P } ) , At = t => 1 === t . length ? t [ 0 ] : t ; function Mt ( t , e , n ) { const r = "string" == typeof e ? [ e ] : e ; return At ( Nt ( t ) . map ( ( t => At ( r . map ( ( e => t [ n ] ( e ) ) ) ) ) ) ) } function kt ( t , e , n ) { const r = "object" == typeof e ? e : { [ e ] : n } , o = Object . keys ( r ) ; return Nt ( t ) . forEach ( ( t => { o . forEach ( ( e => t . setAttribute ( e , r [ e ] ) ) ) } ) ) , t } function St ( t , e ) { return Mt ( t , e , "getAttribute" ) } const _t = new Map , Lt = ( ) => It || ( kt ( It = Et ( "style[riot]" ) [ 0 ] || document . createElement ( "style" ) , "type" , "text/css" ) , It . parentNode || document . head . appendChild ( It ) , It ) ; var It ; const Dt = { CSS _BY _NAME : _t , add ( t , e ) { return _t . has ( t ) || ( _t . set ( t , e ) , this . inject ( ) ) , this } , inject ( ) { return Lt ( ) . innerHTML = [ ... _t . values ( ) ] . join ( "\n" ) , this } , remove ( t ) { return _t . has ( t ) && ( _t . delete ( t ) , this . inject ( ) ) , this } } ; function Ut ( t , ... e ) { return ( ... n ) => ( n = [ ... e , ... n ] ) . length < t . length ? Ut ( t , ... n ) : t ( ... n ) }
/* Riot WIP, @license MIT */
function Pt ( t ) { return St ( t , "is" ) || t . tagName . toLowerCase ( ) }
/* Riot WIP, @license MIT */
function Bt ( t , e ) { return Object . assign ( { } , t , B ( e ) ) }
/* Riot WIP, @license MIT */
function $t ( t , e ) { return void 0 === e && ( e = { } ) , Object . assign ( { } , function ( t ) { return Array . from ( t . attributes ) . reduce ( ( ( t , e ) => ( t [ _ ( e . name ) ] = e . value , t ) ) , { } ) } ( t ) , B ( e ) ) }
/* Riot WIP, @license MIT */
function zt ( t , e ) { let { slots : n , attributes : r , props : o } = e ; return s =
/* Riot WIP, @license MIT */
function ( t ) { return [ ... p ] . reduce ( ( ( t , e ) => e ( t ) || t ) , t ) } ( H ( u ( t ) ? Object . create ( t ) : t , { mount ( e , s , i ) { return void 0 === s && ( s = { } ) , V ( e , C , ! 1 ) , this [ M ] = i , this [ k ] =
/* Riot WIP, @license MIT */
function ( t , e ) { void 0 === e && ( e = [ ] ) ; const n = e . map ( ( e => lt ( t , e ) ) ) , r = { } ; return Object . assign ( r , Object . assign ( { expressions : n } , Tt ( ( t => e => ( n . forEach ( ( n => n [ t ] ( e ) ) ) , r ) ) ) ) ) } ( e , r ) . mount ( i ) , V ( this , T , Object . freeze ( Object . assign ( { } , $t ( e , o ) , F ( this [ k ] . expressions ) ) ) ) , this . state = Bt ( this . state , s ) , this [ S ] = this . template . createDOM ( e ) . clone ( ) , wt ( e , this ) , t . name &&
/* Riot WIP, @license MIT */
function ( t , e ) { Pt ( t ) !== e && kt ( t , "is" , e ) } ( e , t . name ) , V ( this , j , e ) , V ( this , E , n ) , this . onBeforeMount ( this . props , this . state ) , this [ S ] . mount ( e , this , i ) , this . onMounted ( this . props , this . state ) , this } , update ( t , e ) { void 0 === t && ( t = { } ) , e && ( this [ M ] = e , this [ k ] . update ( e ) ) ; const n = F ( this [ k ] . expressions ) ; if ( ! 1 !== this . shouldUpdate ( n , this . props ) ) return V ( this , T , Object . freeze ( Object . assign ( { } , this . props , n ) ) ) , this . state = Bt ( this . state , t ) , this . onBeforeUpdate ( this . props , this . state ) , this [ A ] || ( this [ A ] = ! 0 , this [ S ] . update ( this , this [ M ] ) ) , this . onUpdated ( this . props , this . state ) , this [ A ] = ! 1 , this } , unmount ( t ) { return this . onBeforeUnmount ( this . props , this . state ) , this [ k ] . unmount ( ) , this [ S ] . unmount ( this , this [ M ] , null === t ? null : ! t ) , this . onUnmounted ( this . props , this . state ) , this } } ) ) , Object . keys ( t ) . filter ( ( e => a ( t [ e ] ) ) ) . forEach ( ( t => { s [ t ] = s [ t ] . bind ( s ) } ) ) , s ; var s }
/* Riot WIP, @license MIT */
function Ft ( t ) { let { css : e , template : n , componentAPI : r , name : o } = t ; return e && o && Dt . add ( o , e ) , Ut ( zt ) ( H ( K ( r , Object . assign ( { } , Ct , { [ T ] : { } , [ N ] : { } } ) ) , Object . assign ( { [ E ] : null , [ j ] : null } , jt , { name : o , css : e , template : n } ) ) ) }
/* Riot WIP, @license MIT */
function Vt ( t ) { const { css : e , template : n , exports : r , name : o } = t , s = n ? Ot ( n , t ) : q ; return t => { let { slots : i , attributes : a , props : u } = t ; if ( r && r [ C ] )
/* Riot WIP, @license MIT */ return function ( t , e ) { let { slots : n , attributes : r , props : o , css : s , template : i } = e ; i && $ ( "Pure components can not have html" ) , s && $ ( "Pure components do not have css" ) ; const a = K ( t ( { slots : n , attributes : r , props : o } ) , X ) ; return Tt ( ( t => function ( ) { for ( var e = arguments . length , n = new Array ( e ) , r = 0 ; r < e ; r ++ ) n [ r ] = arguments [ r ] ; if ( t === d ) { const [ t ] = n ; V ( t , C , ! 0 ) , wt ( t , a ) } return a [ t ] ( ... n ) , a } ) ) } ( r , { slots : i , attributes : a , props : u , css : e , template : n } ) ; const c = B ( r ) || { } , l = Ft ( { css : e , template : s , componentAPI : c , name : o } ) ( { slots : i , attributes : a , props : u } ) ; return { mount : ( t , e , n ) => l . mount ( t , n , e ) , update : ( t , e ) => l . update ( e , t ) , unmount : t => l . unmount ( t ) } } } const Ht = z ( Vt ) ;
/* Riot WIP, @license MIT */
function Kt ( t , e ) { let { css : n , template : r , exports : o } = e ; return l . has ( t ) && $ ( ` The component " ${ t } " was already registered ` ) , l . set ( t , Vt ( { name : t , css : n , template : r , exports : o } ) ) , l }
/* Riot WIP, @license MIT */
function Xt ( t , e , n ) { return Et ( t ) . map ( ( t =>
/* Riot WIP, @license MIT */
function ( t , e , n , r ) { const o = n || Pt ( t ) ; return l . has ( o ) || $ ( ` The component named " ${ o } " was never registered ` ) , l . get ( o ) ( { props : e , slots : r } ) . mount ( t ) } ( t , e , n ) ) ) } var qt = n ( 432 ) ;
/ * *
* store for confirm
*
* @ author Björn Hase
* @ license http : //opensource.org/licenses/MIT The MIT License
* @ link https : //gitea.node001.net/tiny-components/confirm
*
* /const Gt=n.n(qt)()({confirm:function(t){this.off("confirm"),this.on("confirm",(function(){t()}))},cancel:function(t){this.off("cancel"),this.on("cancel",(function(){t()}))}}),Rt={css:null,exports:{state:{hasConfirmed:!1,hasCanceled:!1},handleOpen(){Gt.trigger("open",{title:"Question",content:"Are you sure?"}),Gt.confirm((()=>{this.state.hasConfirmed=!0,this.update(),setTimeout((()=>{this.state.hasConfirmed=!1,this.update()}),5e3)})),Gt.cancel((()=>{this.state.hasCanceled=!0,this.update(),setTimeout((()=>{this.state.hasCanceled=!1,this.update()}),5e3)}))}},template:(t,e,n,r)=>t('<div><button expr5="expr5" class="button button--outline button--danger" type="button"><svg class="icon fill-danger m-right-3"><use xlink:href="symbol-defs.svg#icon-close"/ > < / s v g > \ n C l i c k m e ! \ n < / b u t t o n > < d i v e x p r 6 = " e x p r 6 " c l a s s = " c o l o r - s u c c e s s " > < / d i v > < d i v e x p r 7 = " e x p r 7 " c l a s s = " c o l o r - d a n g e r " > < / d i v > < / d i v > ' , [ { r e d u n d a n t A t t r i b u t e : " e x p r 5 " , s e l e c t o r : " [ e x p r 5 ] " , e x p r e s s i o n s : [ { t y p e : e . E V E N T , n a m e : " o n c l i c k " , e v a l u a t e : t = > ( ) = > { t . h a n d l e O p e n ( ) } } ] } , { t y p e : n . I F , e v a l u a t e : t = > t . s t a t e . h a s C o n f i r m e d , r e d u n d a n t A t t r i b u t e : " e x p r 6 " , s e l e c t o r : " [ e x p r 6 ] " , t e m p l a t e : t ( " \ n O k ! \ n " , [ ] ) } , { t y p e : n . I F , e v a l u a t e : t = > t . s t a t e . h a s C a n c e l e d , r e d u n d a n t A t t r i b u t e : " e x p r 7 " , s e l e c t o r : " [ e x p r 7 ] " , t e m p l a t e : t ( " \ n O k ! B u t w h y ? ! \ n " , [ ] ) } ] ) , n a m e : " t i n y - c o n f i r m " } ; K t ( " t i n y - c o n f i r m " , { c s s : n u l l , e x p o r t s : { s t a t e : { i s O p e n : ! 1 , t r a n s i t i o n C l a s s : ! 1 , c o n t e n t : n u l l } , o n M o u n t e d ( ) { G t . o n ( " o p e n " , ( t = > { t h i s . o p e n ( t ) } ) ) , t h i s . r o o t . a d d E v e n t L i s t e n e r ( " t r a n s i t i o n e n d " , ( t = > { t h i s . s t a t e . t r a n s i t i o n C l a s s = ! 1 , t h i s . u p d a t e ( ) } ) ) } , o p e n ( t ) { t h i s . s t a t e . t r a n s i t i o n C l a s s = " m o d a l - w r a p - - t r a n s i t i o n - o p e n " , t h i s . s t a t e . i s O p e n = ! 0 , t . t i t l e & & ( t h i s . s t a t e . t i t l e = t . t i t l e ) , t . c o n t e n t & & ( t h i s . s t a t e . c o n t e n t = t . c o n t e n t ) , t h i s . u p d a t e ( ) } , c l o s e ( ) { t h i s . s t a t e . t r a n s i t i o n C l a s s = " m o d a l - w r a p - - t r a n s i t i o n - c l o s e " , t h i s . s t a t e . i s O p e n = ! 1 , t h i s . s t a t e . c o n t e n t = n u l l , t h i s . u p d a t e ( ) } , h a n d l e C a n c e l ( ) { G t . t r i g g e r ( " c a n c e l " ) , t h i s . c l o s e ( ) } , h a n d l e C o n f i r m ( ) { G t . t r i g g e r ( " c o n f i r m " ) , t h i s . c l o s e ( ) } , g e t M o d a l C l a s s e s ( ) { c o n s t t = [ " t i n y - m o d a l m o d a l " ] ; r e t u r n t h i s . s t a t e . i s O p e n & & t . p u s h ( " m o d a l - - o p e n " ) , t h i s . s t a t e . t r a n s i t i o n C l a s s & & t . p u s h ( t h i s . s t a t e . t r a n s i t i o n C l a s s ) , t . j o i n ( " " ) } } , t e m p l a t e : ( t , e , n , r ) = > t ( ' < d i v e x p r 0 = " e x p r 0 " > < d i v c l a s s = " m o d a l _ _ i n n e r " > < d i v c l a s s = " m o d a l _ _ t i t l e c e n t e r " > < s v g c l a s s = " i c o n f i l l - t e x t - c o n t r a s t " > < u s e x l i n k : h r e f = " s y m b o l - d e f s . s v g # i c o n - c i r c l e - w a r n i n g " / > < / s v g > < d i v e x p r 1 = " e x p r 1 " > < / d i v > < / d i v > < d i v e x p r 2 = " e x p r 2 " c l a s s = " m o d a l _ _ b o d y c e n t e r " > < / d i v > < d i v c l a s s = " m o d a l _ _ f o o t e r " > < b u t t o n e x p r 3 = " e x p r 3 " c l a s s = " b u t t o n b u t t o n - - o u t l i n e b u t t o n - - d a n g e r " t y p e = " b u t t o n " > < s v g c l a s s = " i c o n f i l l - d a n g e r " > < u s e x l i n k : h r e f = " s y m b o l - d e f s . s v g # i c o n - c l o s e " / > < / s v g > < / b u t t o n > < b u t t o n e x p r 4 = " e x p r 4 " c l a s s = " b u t t o n b u t t o n - - o u t l i n e b u t t o n - - s u c c e s s " t y p e = " b u t t o n " > < s v g c l a s s = " i c o n f i l l - s u c c e s s " > < u s e x l i n k : h r e f = " s y m b o l - d e f s . s v g # i c o n - c h e c k " / > < / s v g > < / b u t t o n > < / d i v > < / d i v > < / d i v > ' , [ { r e d u n d a n t A t t r i b u t e : " e x p r 0 " , s e l e c t o r : " [ e x p r 0 ] " , e x p r e s s i o n s : [ { t y p e : e . A T T R I B U T E , n a m e : " c l a s s " , e v a l u a t e : t = > t . g e t M o d a l C l a s s e s ( ) } ] } , { t y p e : n . I F , e v a l u a t e : t = > t . s t a t e . t i t l e , r e d u n d a n t A t t r i b u t e : " e x p r 1 " , s e l e c t o r : " [ e x p r 1 ] " , t e m p l a t e : t ( " " , [ { e x p r e s s i o n s : [ { t y p e : e . T E X T , c h i l d N o d e I n d e x : 0 , e v a l u a t e : t = > [ t . s t a t e . t i t l e ] . j o i n ( " " ) } ] } ] ) } , { t y p e : n . I F , e v a l u a t e : t = > t . s t a t e . c o n t e n t , r e d u n d a n t A t t r i b u t e : " e x p r 2 " , s e l e c t o r : " [ e x p r 2 ] " , t e m p l a t e : t ( " " , [ { e x p r e s s i o n s : [ { t y p e : e . T E X T , c h i l d N o d e I n d e x : 0 , e v a l u a t e : t = > [ t . s t a t e . c o n t e n t ] . j o i n ( " " ) } ] } ] ) } , { r e d u n d a n t A t t r i b u t e : " e x p r 3 " , s e l e c t o r : " [ e x p r 3 ] " , e x p r e s s i o n s : [ { t y p e : e . E V E N T , n a m e : " o n c l i c k " , e v a l u a t e : t = > ( ) = > { t . h a n d l e C a n c e l ( ) } } ] } , { r e d u n d a n t A t t r i b u t e : " e x p r 4 " , s e l e c t o r : " [ e x p r 4 ] " , e x p r e s s i o n s : [ { t y p e : e . E V E N T , n a m e : " o n c l i c k " , e v a l u a t e : t = > ( ) = > { t . h a n d l e C o n f i r m ( ) } } ] } ] ) , n a m e : " t i n y - c o n f i r m " } ) , K t ( " e x a m p l e - c o n f i r m " , R t ) , X t ( " t i n y - c o n f i r m " ) , X t ( " e x a m p l e - c o n f i r m " ) } , 3 7 : ( ) = > { } , 1 5 5 : t = > { v a r e , n , r = t . e x p o r t s = { } ; f u n c t i o n o ( ) { t h r o w n e w E r r o r ( " s e t T i m e o u t h a s n o t b e e n d e f i n e d " ) } f u n c t i o n s ( ) { t h r o w n e w E r r o r ( " c l e a r T i m e o u t h a s n o t b e e n d e f i n e d " ) } f u n c t i o n i ( t ) { i f ( e = = = s e t T i m e o u t ) r e t u r n s e t T i m e o u t ( t , 0 ) ; i f ( ( e = = = o | | ! e ) & & s e t T i m e o u t ) r e t u r n e = s e t T i m e o u t , s e t T i m e o u t ( t , 0 ) ; t r y { r e t u r n e ( t , 0 ) } c a t c h ( n ) { t r y { r e t u r n e . c a l l ( n u l l , t , 0 ) } c a t c h ( n ) { r e t u r n e . c a l l ( t h i s , t , 0 ) } } } ! f u n c t i o n ( ) { t r y { e = " f u n c t i o n " = = t y p e o f s e t T i