diff --git a/frontend/webpack-stats.json b/frontend/webpack-stats.json index 437d10da2..6ff46b756 100644 --- a/frontend/webpack-stats.json +++ b/frontend/webpack-stats.json @@ -1 +1 @@ -{"status":"done","publicPath":"/static/sapl/frontend/","chunks":{"chunk-vendors":[{"name":"css/chunk-vendors.e8d8c6de.css","publicPath":"/static/sapl/frontend/css/chunk-vendors.e8d8c6de.css","path":"sapl/static/sapl/frontend/css/chunk-vendors.e8d8c6de.css"},{"name":"js/chunk-vendors.87c63f86.js","publicPath":"/static/sapl/frontend/js/chunk-vendors.87c63f86.js","path":"sapl/static/sapl/frontend/js/chunk-vendors.87c63f86.js"},{"name":"css/chunk-vendors.e8d8c6de.css.map","publicPath":"/static/sapl/frontend/css/chunk-vendors.e8d8c6de.css.map","path":"sapl/static/sapl/frontend/css/chunk-vendors.e8d8c6de.css.map"},{"name":"js/chunk-vendors.87c63f86.js.map","publicPath":"/static/sapl/frontend/js/chunk-vendors.87c63f86.js.map","path":"sapl/static/sapl/frontend/js/chunk-vendors.87c63f86.js.map"}],"compilacao":[{"name":"css/compilacao.00eb2b5d.css","publicPath":"/static/sapl/frontend/css/compilacao.00eb2b5d.css","path":"sapl/static/sapl/frontend/css/compilacao.00eb2b5d.css"},{"name":"js/compilacao.44a714dd.js","publicPath":"/static/sapl/frontend/js/compilacao.44a714dd.js","path":"sapl/static/sapl/frontend/js/compilacao.44a714dd.js"},{"name":"css/compilacao.00eb2b5d.css.map","publicPath":"/static/sapl/frontend/css/compilacao.00eb2b5d.css.map","path":"sapl/static/sapl/frontend/css/compilacao.00eb2b5d.css.map"},{"name":"js/compilacao.44a714dd.js.map","publicPath":"/static/sapl/frontend/js/compilacao.44a714dd.js.map","path":"sapl/static/sapl/frontend/js/compilacao.44a714dd.js.map"}],"global":[{"name":"css/global.80b7564c.css","publicPath":"/static/sapl/frontend/css/global.80b7564c.css","path":"sapl/static/sapl/frontend/css/global.80b7564c.css"},{"name":"js/global.503e97c0.js","publicPath":"/static/sapl/frontend/js/global.503e97c0.js","path":"sapl/static/sapl/frontend/js/global.503e97c0.js"},{"name":"css/global.80b7564c.css.map","publicPath":"/static/sapl/frontend/css/global.80b7564c.css.map","path":"sapl/static/sapl/frontend/css/global.80b7564c.css.map"},{"name":"js/global.503e97c0.js.map","publicPath":"/static/sapl/frontend/js/global.503e97c0.js.map","path":"sapl/static/sapl/frontend/js/global.503e97c0.js.map"}],"painel":[{"name":"css/painel.5d957a9b.css","publicPath":"/static/sapl/frontend/css/painel.5d957a9b.css","path":"sapl/static/sapl/frontend/css/painel.5d957a9b.css"},{"name":"js/painel.37936654.js","publicPath":"/static/sapl/frontend/js/painel.37936654.js","path":"sapl/static/sapl/frontend/js/painel.37936654.js"},{"name":"css/painel.5d957a9b.css.map","publicPath":"/static/sapl/frontend/css/painel.5d957a9b.css.map","path":"sapl/static/sapl/frontend/css/painel.5d957a9b.css.map"},{"name":"js/painel.37936654.js.map","publicPath":"/static/sapl/frontend/js/painel.37936654.js.map","path":"sapl/static/sapl/frontend/js/painel.37936654.js.map"}],"parlamentar":[{"name":"css/parlamentar.0e433876.css","publicPath":"/static/sapl/frontend/css/parlamentar.0e433876.css","path":"sapl/static/sapl/frontend/css/parlamentar.0e433876.css"},{"name":"js/parlamentar.84997ad7.js","publicPath":"/static/sapl/frontend/js/parlamentar.84997ad7.js","path":"sapl/static/sapl/frontend/js/parlamentar.84997ad7.js"},{"name":"css/parlamentar.0e433876.css.map","publicPath":"/static/sapl/frontend/css/parlamentar.0e433876.css.map","path":"sapl/static/sapl/frontend/css/parlamentar.0e433876.css.map"},{"name":"js/parlamentar.84997ad7.js.map","publicPath":"/static/sapl/frontend/js/parlamentar.84997ad7.js.map","path":"sapl/static/sapl/frontend/js/parlamentar.84997ad7.js.map"}]}} \ No newline at end of file +{"status":"done","publicPath":"/static/sapl/frontend/","chunks":{"chunk-vendors":[{"name":"css/chunk-vendors.e8d8c6de.css","publicPath":"/static/sapl/frontend/css/chunk-vendors.e8d8c6de.css","path":"sapl/static/sapl/frontend/css/chunk-vendors.e8d8c6de.css"},{"name":"js/chunk-vendors.8a6bb3dd.js","publicPath":"/static/sapl/frontend/js/chunk-vendors.8a6bb3dd.js","path":"sapl/static/sapl/frontend/js/chunk-vendors.8a6bb3dd.js"},{"name":"css/chunk-vendors.e8d8c6de.css.map","publicPath":"/static/sapl/frontend/css/chunk-vendors.e8d8c6de.css.map","path":"sapl/static/sapl/frontend/css/chunk-vendors.e8d8c6de.css.map"},{"name":"js/chunk-vendors.8a6bb3dd.js.map","publicPath":"/static/sapl/frontend/js/chunk-vendors.8a6bb3dd.js.map","path":"sapl/static/sapl/frontend/js/chunk-vendors.8a6bb3dd.js.map"}],"compilacao":[{"name":"css/compilacao.90ba9ac3.css","publicPath":"/static/sapl/frontend/css/compilacao.90ba9ac3.css","path":"sapl/static/sapl/frontend/css/compilacao.90ba9ac3.css"},{"name":"js/compilacao.2659b00e.js","publicPath":"/static/sapl/frontend/js/compilacao.2659b00e.js","path":"sapl/static/sapl/frontend/js/compilacao.2659b00e.js"},{"name":"css/compilacao.90ba9ac3.css.map","publicPath":"/static/sapl/frontend/css/compilacao.90ba9ac3.css.map","path":"sapl/static/sapl/frontend/css/compilacao.90ba9ac3.css.map"},{"name":"js/compilacao.2659b00e.js.map","publicPath":"/static/sapl/frontend/js/compilacao.2659b00e.js.map","path":"sapl/static/sapl/frontend/js/compilacao.2659b00e.js.map"}],"global":[{"name":"css/global.80b7564c.css","publicPath":"/static/sapl/frontend/css/global.80b7564c.css","path":"sapl/static/sapl/frontend/css/global.80b7564c.css"},{"name":"js/global.9079a4fb.js","publicPath":"/static/sapl/frontend/js/global.9079a4fb.js","path":"sapl/static/sapl/frontend/js/global.9079a4fb.js"},{"name":"css/global.80b7564c.css.map","publicPath":"/static/sapl/frontend/css/global.80b7564c.css.map","path":"sapl/static/sapl/frontend/css/global.80b7564c.css.map"},{"name":"js/global.9079a4fb.js.map","publicPath":"/static/sapl/frontend/js/global.9079a4fb.js.map","path":"sapl/static/sapl/frontend/js/global.9079a4fb.js.map"}],"painel":[{"name":"css/painel.5d957a9b.css","publicPath":"/static/sapl/frontend/css/painel.5d957a9b.css","path":"sapl/static/sapl/frontend/css/painel.5d957a9b.css"},{"name":"js/painel.37936654.js","publicPath":"/static/sapl/frontend/js/painel.37936654.js","path":"sapl/static/sapl/frontend/js/painel.37936654.js"},{"name":"css/painel.5d957a9b.css.map","publicPath":"/static/sapl/frontend/css/painel.5d957a9b.css.map","path":"sapl/static/sapl/frontend/css/painel.5d957a9b.css.map"},{"name":"js/painel.37936654.js.map","publicPath":"/static/sapl/frontend/js/painel.37936654.js.map","path":"sapl/static/sapl/frontend/js/painel.37936654.js.map"}],"parlamentar":[{"name":"css/parlamentar.0e433876.css","publicPath":"/static/sapl/frontend/css/parlamentar.0e433876.css","path":"sapl/static/sapl/frontend/css/parlamentar.0e433876.css"},{"name":"js/parlamentar.84997ad7.js","publicPath":"/static/sapl/frontend/js/parlamentar.84997ad7.js","path":"sapl/static/sapl/frontend/js/parlamentar.84997ad7.js"},{"name":"css/parlamentar.0e433876.css.map","publicPath":"/static/sapl/frontend/css/parlamentar.0e433876.css.map","path":"sapl/static/sapl/frontend/css/parlamentar.0e433876.css.map"},{"name":"js/parlamentar.84997ad7.js.map","publicPath":"/static/sapl/frontend/js/parlamentar.84997ad7.js.map","path":"sapl/static/sapl/frontend/js/parlamentar.84997ad7.js.map"}]}} \ No newline at end of file diff --git a/sapl/static/sapl/frontend/css/compilacao.00eb2b5d.css b/sapl/static/sapl/frontend/css/compilacao.00eb2b5d.css deleted file mode 100644 index fae2376cb..000000000 --- a/sapl/static/sapl/frontend/css/compilacao.00eb2b5d.css +++ /dev/null @@ -1 +0,0 @@ -a:link:after,a:visited:after{content:""}.test_import:nth-child(2n){background-color:#ccc}#wait_message{display:block;position:fixed;top:0;bottom:0;left:0;right:0;background-color:hsla(0,0%,86.3%,.75);z-index:99}#wait_message #msg{position:relative;margin:20% auto;padding:1.2em 2em;max-width:600px;text-align:center;font-size:1.5em;color:#677;border:1px solid #eee;background-color:#fff!important;-webkit-box-shadow:0 1px 2px #999;box-shadow:0 1px 2px #999}.text-center{text-align:center}.cp-notify{z-index:10000;position:fixed;top:2em;left:50%;min-width:600px;-webkit-transform:translate(-50%);transform:translate(-50%);opacity:.97}.cp-notify,.cp-notify.hide{-webkit-transition:all .4s ease;transition:all .4s ease}.cp-notify.hide{opacity:0;top:-1000px;display:block!important}.cp-notify .message{padding:1em;border:2px solid rgba(0,0,0,.1);border-radius:4px;color:rgba(0,0,0,.6);line-height:1em;font-size:1.3em;text-align:center;-webkit-box-shadow:0 0 100px rgba(0,0,0,.2);box-shadow:0 0 100px rgba(0,0,0,.2)}.cp .vigencia-active{margin-top:30px;display:block}.cp .cp-linha-vigencias{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;list-style:none;margin:4rem 0 3rem;padding:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.cp .cp-linha-vigencias ul{list-style:none;margin:0;padding:0}.cp .cp-linha-vigencias>li{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:0;background:#000;height:2px;text-align:center;max-width:4rem}.cp .cp-linha-vigencias>li .circle{display:block;width:10px;line-height:0;background:#000;height:10px;margin:-5px auto 0;border-radius:50%}.cp .cp-linha-vigencias>li>a{position:absolute;white-space:nowrap;line-height:1rem;text-align:center}.cp .cp-linha-vigencias>li:nth-child(2n)>a{top:100%;margin-top:5px}.cp .cp-linha-vigencias>li:nth-child(odd)>a{bottom:100%;margin-bottom:5px}.cp .cp-linha-vigencias>li ul{z-index:1;position:absolute;display:none;background:#fff;margin:30px 0;border:1px solid #aaa;-webkit-box-shadow:0 0 10px #aaa;box-shadow:0 0 10px #aaa;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cp .cp-linha-vigencias>li ul:before{content:" ";width:2px;height:30px;position:absolute;display:block;background-color:#aaa;bottom:100%;left:50%;margin-left:-1px}.cp .cp-linha-vigencias>li ul li{text-align:left}.cp .cp-linha-vigencias>li ul a{display:block;white-space:nowrap;line-height:2rem;padding:0 10px;font-size:1rem}.cp .cp-linha-vigencias>li ul a:hover{background:#eee}.cp .cp-linha-vigencias>li.active .circle{display:block;width:20px;line-height:0;background:#aaa;height:20px;margin:-10px auto 0}.cp .cp-linha-vigencias>li.active:not(:last-child)>a{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);margin-bottom:25px;font-weight:700}.cp .cp-linha-vigencias>li.active:first-child>a,.cp .cp-linha-vigencias>li.active:last-child>a{-webkit-transform:rotate(0deg);transform:rotate(0deg);margin-bottom:15px;font-weight:700}.cp .cp-linha-vigencias>li.active>a{margin-bottom:5px}.cp .cp-linha-vigencias>li.active:nth-child(2n)>a{bottom:100%;top:auto}.cp .cp-linha-vigencias>li.active ul{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.cp .cp-linha-vigencias>li.active ul li{text-align:left;width:100%}.cp .cp-vigencias .nav-link{padding:.5rem}.cp .cp-vigencias .dropdown-toggle:after{zoom:.8;margin:0}.cp .cp-vigencias .dropdown-menu{margin-left:.5rem}.cp .cp-vigencias .dropdown-item{padding:0}.cp .cp-vigencias .dropdown-item a{line-height:1;padding:.7rem}.cp .desativado .dpt-link,.cp .desativado .dpt-link *,.cp .desativado .dtxt,.cp .desativado .dtxt *,.cp .dpt .dptt>a.desativado .dpt-link,.cp .dpt .dptt>a.desativado .dpt-link *,.cp .dpt .dptt>a.desativado .dtxt,.cp .dpt .dptt>a.desativado .dtxt *{text-decoration:line-through;color:#999!important}.cp .desativado .dpt-link * table,.cp .desativado .dpt-link * table td,.cp .desativado .dpt-link table,.cp .desativado .dpt-link table td,.cp .desativado .dtxt * table,.cp .desativado .dtxt * table td,.cp .desativado .dtxt table,.cp .desativado .dtxt table td,.cp .dpt .dptt>a.desativado .dpt-link * table,.cp .dpt .dptt>a.desativado .dpt-link * table td,.cp .dpt .dptt>a.desativado .dpt-link table,.cp .dpt .dptt>a.desativado .dpt-link table td,.cp .dpt .dptt>a.desativado .dtxt * table,.cp .dpt .dptt>a.desativado .dtxt * table td,.cp .dpt .dptt>a.desativado .dtxt table,.cp .dpt .dptt>a.desativado .dtxt table td{border:1px dotted #ccc}.cp a{text-decoration:none;cursor:pointer}.cp .diff .desativado,.cp .diff .desativado *,.cp .diff .dpt .dptt>a.desativado,.cp .diff .dpt .dptt>a.desativado *,.cp .dpt .diff .dptt>a.desativado,.cp .dpt .diff .dptt>a.desativado *{text-decoration:line-through;color:#ddd!important;font-size:90%}.cp .diff .added{color:#04de2c}.cp .dpt{font-size:1em;position:relative}.cp .dpt.indent{padding-left:1em}.cp .dpt .ementa{padding:2em 0 2em 35%;font-weight:700}.cp .dpt .anexo,.cp .dpt .capitulo,.cp .dpt .disp_finais,.cp .dpt .disp_gerais,.cp .dpt .disp_preliminares,.cp .dpt .disp_transitorias,.cp .dpt .itemsecao,.cp .dpt .livro,.cp .dpt .parte,.cp .dpt .secao,.cp .dpt .subsecao,.cp .dpt .titulo,.cp .dpt .titulo_generico{text-align:center;margin-bottom:1em;font-size:1.5em;margin-top:3em;font-weight:700;font-variant:small-caps}.cp .dpt .titulo{margin-top:2em}.cp .dpt .capitulo{margin-top:1.5em;font-size:1.15em}.cp .dpt .secao{margin-top:1.2em;margin-bottom:.7em;font-weight:700;font-size:1.15em}.cp .dpt .itemsecao,.cp .dpt .subsecao{margin-top:1em;margin-bottom:.6em;font-weight:700;font-size:1.15em}.cp .dpt .artigo{font-size:1.15em;float:left}.cp .dpt .artigo .dptt{position:relative}.cp .dpt .caput,.cp .dpt .texto_n_estruturado{margin-top:.3333em;font-size:1.15em}.cp .dpt .paragrafo{font-size:1.1em;margin-top:.2222em}.cp .dpt .inciso{font-size:1.1em;margin-top:.1667em}.cp .dpt .alinea,.cp .dpt .item{font-size:1em;margin-top:2px}.cp .dpt .assinatura,.cp .dpt .fecho_lei{margin-top:.6em;font-size:1.15em}.cp .dpt .page-break{page-break-before:always}.cp .dpt .bloco_alteracao{padding-left:10%;font-style:italic;color:#018}.cp .dpt .bloco_alteracao a{text-decoration:underline}.cp .dpt .bloco_alteracao a,.cp .dpt .bloco_alteracao table,.cp .dpt .bloco_alteracao table td{color:#018!important}.cp .dpt .bloco_alteracao .desativado,.cp .dpt .bloco_alteracao .desativado a,.cp .dpt .bloco_alteracao .desativado table,.cp .dpt .bloco_alteracao .desativado table td,.cp .dpt .bloco_alteracao .dptt>a.desativado{text-decoration:line-through;color:#999!important}.cp .dpt .card-header{font-size:1.7rem}.cp .dpt .dn{font-weight:400;position:relative;font-size:80%}.cp .dpt .dn p,.cp .dpt .dn ul{font-weight:400;margin:0 0 0 0;list-style:none;padding:0}.cp .dpt .dn .dnl{display:block;text-align:left!important}.cp .dpt .dn .dnl *{display:inline}.cp .dpt .dn .dnl .bullet{padding:0 .333em;display:inline-block}.cp .dpt .dn .dnl .dnli{min-height:2.5em}.cp .dpt .dn .dnl .dnli:hover ul{font-size:1rem;clip:auto;opacity:1;background:hsla(0,0%,90.2%,.9)}.cp .dpt .dn .dnl .dnli:hover ul,.cp .dpt .dn .dnl .dnli ul{-webkit-transition:opacity .5s linear,clip 0s .3s;transition:opacity .5s linear,clip 0s .3s}.cp .dpt .dn .dnl .dnli ul{clip:rect(0,0,0,0);opacity:0;position:absolute;background:transparent;right:0;padding:.2em .5em 0 .5em;border:1px solid #c7e3d3;border-top:0;font-size:1.5rem}.cp .dpt .dn .dnl .dnli ul li{display:table-cell;color:#aaa}.cp .dpt .dn .dnl .dnli ul li:hover{color:#787}.cp .dpt .dn .dnl .dnli ul li .nowner,.cp .dpt .dn .dnl .dnli ul li:hover a{color:#27ae60!important}.cp .dpt .dn .dnl .dnli .ntitulo{font-size:.8rem;font-weight:700;color:#03a203;text-decoration:none}.cp .dpt .dn .dnl .dnli .ntitulo a{color:#294!important}.cp .dpt .dn .dnl .dnli .ntexto{font-variant:normal;font-size:.8rem;color:#018801}.cp .dpt .dn .dnl .dnli .ntexto a{color:#03a203!important}.cp .dpt .dn .dnl:hover,.cp .dpt .dn .dnl:hover *{display:block}.cp .dpt .dn .dnl:hover>.bullet{display:none}.cp .dpt .dn .dnl:hover .dnli{margin-top:.5em;border-top:1px solid #c7e3d3}.cp .dpt .dptt{clear:left}.cp .dpt .dptt>a{color:#000}.cp .dpt .dptt>a.nota-alteracao{color:#02baf2;font-size:.75em}.cp .dpt .dptt>a.nota-alteracao:hover{text-decoration:underline}.cp .dpt .dptt .dne{position:absolute;display:block;right:0;left:0;top:0;height:0;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:right;transform-origin:right;-webkit-transition:all .3s ease;transition:all .3s ease;border-top:1px solid #2980b9}.cp .dpt .dptt .dne ul.btns-action{list-style:none;padding:0;position:absolute;right:0;background-color:#2980b9}.cp .dpt .dptt .dne ul.btns-action li{float:left}.cp .dpt .dptt .dne ul.btns-action li:hover{background-color:rgba(0,0,0,.1)}.cp .dpt .dptt .dne ul.btns-action li a{color:#fff;padding:.15em 1em 0;display:inline-block}.cp .dpt .dptt .dne-nota{position:relative;-webkit-transform:scaleX(1);transform:scaleX(1);height:auto;border-top:0}.cp .dpt .dptt .dne-nota ul.btns-action{display:none}.cp .dpt .dptt .dne-nota .dne-form{margin:1em -2em 0;text-align:left;font-size:1rem}.cp .dpt .dptt:hover .dne{height:.1667rem;-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transition-delay:1s;transition-delay:1s}.cp .dpt .dptt:hover .dne-nota{height:auto;-webkit-transition-delay:0s;transition-delay:0s}.cp .tipo-vigencias{margin-bottom:-6px;opacity:.8;list-style:none;position:fixed;bottom:0;left:50%;-webkit-transform:translate(-50%);transform:translate(-50%);margin:0;padding:0;z-index:1000;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.cp .tipo-vigencias div a{color:#fff}.cp .tipo-vigencias:hover,.cp:hover{opacity:1}.cp .revogado{color:#800}.cp .revogado .dpt-link{color:#999!important}.cp .omissis a{text-decoration:none!important}.cp-print .cp-linha-vigencias{display:none!important}.cp.cpe .desativado,.cp.cpe .dpt .dptt>a.desativado{text-decoration:line-through;color:#999!important}.cp.cpe .desativado table,.cp.cpe .desativado table td,.cp.cpe .dpt .dptt>a.desativado table,.cp.cpe .dpt .dptt>a.desativado table td{border:1px dotted #ccc}.cp.cpe a.nota-alteracao{color:#02baf2!important;font-size:.8rem}.cp.cpe .btn-sm{line-height:1rem}.cp.cpe .btn-outline-primary{background-color:#fff}.cp.cpe .btn-outline-primary:hover{background-color:#02baf2}.cp.cpe .dpt{display:block}.cp.cpe .dpt>.dpt-actions-fixed{position:absolute;right:-1em;top:-.8em;z-index:3;opacity:0}.cp.cpe .dpt>.dpt-actions-fixed.bottom{top:auto;bottom:3px;right:2px}.cp.cpe .dpt>.dpt-actions-fixed .activate{display:none}.cp.cpe .dpt>.dpt-actions-fixed .deactivate{display:inline}.cp.cpe .dpt>.dpt-actions-fixed .btn-dpt-edit.btn-outline-primary{color:#333}.cp.cpe .dpt>.dpt-actions-fixed .btn-dpt-edit.btn-outline-primary:hover{color:#fff;background-color:#02baf2}.cp.cpe .dpt>.dpt-actions,.cp.cpe .dpt>.dpt-actions-bottom{display:none}.cp.cpe .dpt>.dpt-text{cursor:text;min-height:30px;border:1px solid transparent}.cp.cpe .dpt>.dpt-text.hover-fixed,.cp.cpe .dpt>.dpt-text:hover{background-color:rgba(0,0,0,.01);color:#2980b9;border:1px solid #eee;-webkit-transition:color .3s ease;transition:color .3s ease}.cp.cpe .dpt>.dpt-text.artigo{float:none}.cp.cpe .dpt>.dpt-text a.link-rotulo{color:#000}.cp.cpe .dpt:hover>.dpt-actions-fixed{opacity:1}.cp.cpe .dpt:hover>.dpt-actions-fixed:hover~.dpt-text{background-color:rgba(0,0,0,.01);color:#2980b9;border:1px solid #eee;-webkit-transition:color .3s ease;transition:color .3s ease}.cp.cpe .dpt .semtexto{font-weight:700;color:#9aaed6}.cp.cpe .dpt .semtexto:hover{color:#5f76a4}.cp.cpe .dpt-alts{margin:0;margin-bottom:1em;padding:0;background-color:transparent;min-height:100px;border:2px dashed #fff}.cp.cpe .dpt-alts:hover{border-color:#d9ddde}.cp.cpe .dpt-alts:empty{border-color:#ddd}.cp.cpe .dpt-alts.drag{width:100%!important;border-color:#d9ddde}.cp.cpe .dpt-alts.drag .dpt{-webkit-transition-duration:0s!important;transition-duration:0s!important}.cp.cpe .dpt-alts .dpt{width:100%!important;-webkit-box-shadow:0 -1px 0 #e5e5e5,0 0 2px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.24);box-shadow:0 -1px 0 #e5e5e5,0 0 2px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.24);padding:0;margin:0;background-color:#edf0f1;height:auto!important;min-height:2em;z-index:1}.cp.cpe .dpt-alts .dpt:not(:first-child){border-top:1px solid #fff}.cp.cpe .dpt-alts .dpt>.dpt-text{padding:.3em 1em;margin-top:0;margin-bottom:0}.cp.cpe .dpt-alts .dpt>.dpt-text a.link-rotulo{text-decoration:underline}.cp.cpe .dpt-alts .dpt-selected.dpt{margin:0 -.5em}.cp.cpe .dpt-selected.dpt{width:auto!important;margin:1em -.5em;border:1px solid #ddd!important;padding:0;background-color:#fafafa;border-radius:3px;z-index:4}.cp.cpe .dpt-selected.dpt>.dpt-text{border:1px solid transparent}.cp.cpe .dpt-selected.dpt>.dpt-text:hover{border:1px solid transparent;background-color:transparent}.cp.cpe .dpt-selected.dpt>.dpt-form{margin:0 1rem}.cp.cpe .dpt-selected.dpt>.dpt-actions,.cp.cpe .dpt-selected.dpt>.dpt-actions-bottom{display:table;background-color:#e5e5e5;padding:.8rem .6rem .2rem .6rem;margin-bottom:0;width:100%}.cp.cpe .dpt-selected.dpt>.dpt-actions-bottom>.btn-action,.cp.cpe .dpt-selected.dpt>.dpt-actions>.btn-action{display:table-cell;float:none}.cp.cpe .dpt-selected.dpt>.dpt-actions-bottom .btns-excluir .btn-danger,.cp.cpe .dpt-selected.dpt>.dpt-actions .btns-excluir .btn-danger{display:inline-block;opacity:.3;color:#fff}.cp.cpe .dpt-selected.dpt>.dpt-actions-bottom .btns-excluir .btn-danger:hover,.cp.cpe .dpt-selected.dpt>.dpt-actions .btns-excluir .btn-danger:hover{opacity:1}.cp.cpe .dpt-selected.dpt>.dpt-actions-bottom{margin:0;padding-bottom:.8rem}.cp.cpe .dpt-selected .dpt-block{border-top:1px solid #e5e5e5!important;opacity:.6;-webkit-transition:opacity .4s ease;transition:opacity .4s ease}.cp.cpe .dpt-selected .dpt-block:hover{opacity:1}.cp.cpe .dpt-selected .dpt-text{opacity:.7;margin:0;padding:.7em}.cp.cpe .dpt-selected .dpt-text:hover{opacity:1;background-color:#f5f5f5}.cp.cpe .dpt-selected .dpt-alts{margin:1em}.cp.cpe .dpt-selected .dpt-alts .dpt{-webkit-box-shadow:0 0 0;box-shadow:0 0 0}.cp.cpe .dpt-selected>.dpt-actions-fixed{opacity:1;top:-15px;right:.5em}.cp.cpe .dpt-selected>.dpt-actions-fixed .activate{display:inline}.cp.cpe .dpt-selected>.dpt-actions-fixed .deactivate{display:none}.cp.cpe .dpt-selected>.dpt-actions-fixed .btn-dpt-edit{padding:0 6px;line-height:1.2rem}.cp.cpe .dpt-selected>.dpt-actions-fixed .btn-dpt-edit.btn-outline-primary,.cp.cpe .dpt-selected>.dpt-actions-fixed .btn-dpt-edit.btn-outline-primary:hover{background-color:#fad46b;border:1px solid #444}.cp.cpe .dpt-selected .btns-tipos-editor{padding:0}.cp.cpe .dpt-selected .dropdown-menu.dropdown-menu-left{right:auto!important;left:0;padding:0}.cp.cpe .dpt-selected .dropdown-menu.dropdown-menu-left:before{content:"";position:absolute;background-color:transparent;width:100%;height:3px;top:-3px;display:inline-block}.cp.cpe .dpt-selected .dropdown-menu li{line-height:1}.cp.cpe .dpt-selected .dropdown-menu li a{display:block;line-height:1.5rem;padding:0 .5rem;white-space:nowrap}.cp.cpe .dpt-selected .dropdown-menu li a:hover{background-color:#f0f0f0}.cp.cpe .dpt-selected .dropdown-menu li:not(:last-child){border-bottom:1px solid #f0f0f0}.cp.cpe .dpt-selected .btn-group .radius-right{border-bottom-right-radius:.2rem!important;border-top-right-radius:.2rem!important}.cp.cpe .dpt-selected:hover>.dpt-actions-fixed{opacity:1}.cp.cpe1_old_apagar{margin-bottom:15em}.cp.cpe1_old_apagar .desativado,.cp.cpe1_old_apagar .desativado *,.cp.cpe1_old_apagar .dpt .dptt>a.desativado,.cp.cpe1_old_apagar .dpt .dptt>a.desativado *{text-decoration:line-through;color:#999!important}.cp.cpe1_old_apagar .desativado * table,.cp.cpe1_old_apagar .desativado * table td,.cp.cpe1_old_apagar .desativado table,.cp.cpe1_old_apagar .desativado table td,.cp.cpe1_old_apagar .dpt .dptt>a.desativado * table,.cp.cpe1_old_apagar .dpt .dptt>a.desativado * table td,.cp.cpe1_old_apagar .dpt .dptt>a.desativado table,.cp.cpe1_old_apagar .dpt .dptt>a.desativado table td{border:1px dotted #ccc}.cp.cpe1_old_apagar a{text-decoration:none;cursor:pointer}.cp.cpe1_old_apagar .dpt{position:relative;display:block}.cp.cpe1_old_apagar .dpt .semtexto{font-weight:700;color:#bfd1f6}.cp.cpe1_old_apagar .dpt .artigo{float:none}.cp.cpe1_old_apagar .dpt .caput{margin-top:0}.cp.cpe1_old_apagar .dpt-selected .csform .dpt>.actions_left,.cp.cpe1_old_apagar .dpt>.actions_right{color:#fff;right:0;position:absolute;opacity:0;-webkit-transition:all .4s ease-in-out;transition:all .4s ease-in-out;z-index:1000}.cp.cpe1_old_apagar .dpt-selected .csform .dpt>.actions_left a.btn-bloco,.cp.cpe1_old_apagar .dpt>.actions_right a.btn-bloco{background-color:#3498db;color:#fff!important;padding:8px 18px 6px;display:inline-block;line-height:1;float:right}.cp.cpe1_old_apagar .dpt-selected .csform .dpt>.actions_left a.btn-bloco:hover,.cp.cpe1_old_apagar .dpt>.actions_right a.btn-bloco:hover{opacity:1;background-image:-webkit-gradient(linear,left top,left bottom,from(#1c81c4),to(#0b6dad));background-image:linear-gradient(180deg,#1c81c4,#0b6dad)}.cp.cpe1_old_apagar .dpt-selected .csform .dpt:hover>.actions_left,.cp.cpe1_old_apagar .dpt:hover>.actions_right{opacity:1}.cp.cpe1_old_apagar .dpt .bloco{display:block;clear:both}.cp.cpe1_old_apagar .dpt .bloco :hover{color:#27ae60}.cp.cpe1_old_apagar .dpt .bloco .de{cursor:pointer}.cp.cpe1_old_apagar .dpt .articulacao{border-top:2px solid #e5e5e5;margin:2em 0}.cp.cpe1_old_apagar .dpt .bloco_alteracao{margin:1em 0;padding:0;background-color:transparent;min-height:100px;border:2px dashed #fff}.cp.cpe1_old_apagar .dpt .bloco_alteracao:hover{border-color:#d9ddde}.cp.cpe1_old_apagar .dpt .bloco_alteracao.drag{width:100%!important;border-color:#d9ddde}.cp.cpe1_old_apagar .dpt .bloco_alteracao.drag .dpt{-webkit-transition-duration:0s!important;transition-duration:0s!important}.cp.cpe1_old_apagar .dpt .bloco_alteracao .dpt{width:100%!important;-webkit-box-shadow:0 -1px 0 #e5e5e5,0 0 2px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.24);box-shadow:0 -1px 0 #e5e5e5,0 0 2px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.24);padding:.3em 1em;margin:0;background-color:#edf0f1;z-index:1}.cp.cpe1_old_apagar .dpt .bloco_alteracao .dpt:not(:first-child){border-top:1px solid #fff}.cp.cpe1_old_apagar .dpt .bloco_alteracao .dpt.ui-draggable div{cursor:pointer}.cp.cpe1_old_apagar .dpt .bloco_alteracao .dpt.dpt-comp-selected{-webkit-transition:all .3s ease;transition:all .3s ease;width:auto!important;margin:2em -3.7em;-webkit-box-shadow:0 0 6px rgba(0,0,0,.16),0 6px 12px rgba(0,0,0,.32);box-shadow:0 0 6px rgba(0,0,0,.16),0 6px 12px rgba(0,0,0,.32)}.cp.cpe1_old_apagar .dpt-selected{font-size:1em;border:0 solid #ccc;margin:1em -1.8em 1em -1.8em;padding:2.2em 2.2em 1.6em 2.2em;-webkit-box-shadow:-4px 15px 15px rgba(0,0,0,.1),0 6px 6px rgba(0,0,0,.23);box-shadow:-4px 15px 15px rgba(0,0,0,.1),0 6px 6px rgba(0,0,0,.23);background-image:-webkit-gradient(linear,left top,left bottom,from(#eaeaee),to(#ddd));background-image:linear-gradient(180deg,#eaeaee,#ddd)}.cp.cpe1_old_apagar .dpt-selected ul{list-style:none;margin:0;padding:0}.cp.cpe1_old_apagar .dpt-selected .semtexto{color:#999}.cp.cpe1_old_apagar .dpt-selected .bloco{opacity:.5}.cp.cpe1_old_apagar .dpt-selected .bloco:hover{opacity:1}.cp.cpe1_old_apagar .dpt-selected .bloco a:hover{background:transparent}.cp.cpe1_old_apagar .dpt-selected>.bloco{opacity:1;margin:1em}.cp.cpe1_old_apagar .dpt-selected .bloco_alteracao{margin:0;padding:1em;border:0 transparent;background-image:-webkit-gradient(linear,left top,left bottom,from(#eaeaee),to(#ddd));background-image:linear-gradient(180deg,#eaeaee,#ddd)}.cp.cpe1_old_apagar .dpt-selected .bloco_alteracao:hover{border-color:transparent}.cp.cpe1_old_apagar .dpt-selected .bloco_alteracao.drag{width:100%!important}.cp.cpe1_old_apagar .dpt-selected .bloco_alteracao.drag .dpt{-webkit-transition-duration:0s!important;transition-duration:0s!important}.cp.cpe1_old_apagar .dpt-selected .bloco_alteracao .dpt{width:auto!important;-webkit-transition:all .3s ease;transition:all .3s ease;background-color:#fff}.cp.cpe1_old_apagar .dpt-selected .bloco_alteracao .dpt:not(:first-child){border-top:0 solid #fff}.cp.cpe1_old_apagar .dpt-selected>.dpt{padding:0}.cp.cpe1_old_apagar .dpt-selected>.dpt:last-child{padding-bottom:1em}.cp.cpe1_old_apagar .dpt-selected .csform .dpt-selected>.actions_left a.btn-bloco,.cp.cpe1_old_apagar .dpt-selected>.actions_right a.btn-bloco{display:none}.cp.cpe1_old_apagar .dpt-selected .csform{display:block;clear:both;z-index:9;position:static}.cp.cpe1_old_apagar .dpt-selected .csform .btns-action{-webkit-animation:fadeIn 1s ease-in-out;-moz-animation:fadeIn 1s ease-in-out;-o-animation:fadeIn 1s ease-in-out;opacity:1;position:absolute;display:table;-webkit-transition:all .4s ease-in-out;transition:all .4s ease-in-out}.cp.cpe1_old_apagar .dpt-selected .csform .btns-action a{color:#16407c;display:block;background:transparent;vertical-align:middle;text-align:center;font-weight:400;text-shadow:0 0 10px rgba(0,0,0,.3);padding:.33em .4em}.cp.cpe1_old_apagar .dpt-selected .csform .btns-action>li{position:relative;display:table-cell;vertical-align:top}.cp.cpe1_old_apagar .dpt-selected .csform .btns-action>li:hover{background-color:hsla(0,0%,100%,.5)}.cp.cpe1_old_apagar .dpt-selected .csform .btns-action>li:hover>a{text-shadow:0 0 5px #777;color:#0a5}.cp.cpe1_old_apagar .dpt-selected .csform .label_status{position:absolute;bottom:0;right:0;color:#889;padding:.3em;font-size:80%;text-align:right;z-index:15;display:table}.cp.cpe1_old_apagar .dpt-selected .csform .label_status li{display:table-cell;padding:0 .5em}.cp.cpe1_old_apagar .dpt-selected .csform .actions_parents{z-index:11;top:0;left:0}.cp.cpe1_old_apagar .dpt-selected .csform .actions_parents a{padding:.62em}.cp.cpe1_old_apagar .dpt-selected .csform .actions_parents div,.cp.cpe1_old_apagar .dpt-selected .csform .actions_parents li{font-size:80%;display:table-cell;vertical-align:middle;border-right:1px solid #ccc}.cp.cpe1_old_apagar .dpt-selected .csform .actions_parents div{padding:0 .4em;font-stretch:condensed;font-variant:small-caps;font-weight:700;text-shadow:0 0 10px #fff}.cp.cpe1_old_apagar .dpt-selected .csform .actions_parents>li:hover a{color:#16407c;font-weight:400}.cp.cpe1_old_apagar .dpt-selected .csform .actions_bottom,.cp.cpe1_old_apagar .dpt-selected .csform .actions_top{top:0;right:0}.cp.cpe1_old_apagar .dpt-selected .csform .actions_bottom a,.cp.cpe1_old_apagar .dpt-selected .csform .actions_top a{padding-right:1em;padding-left:1em}.cp.cpe1_old_apagar .dpt-selected .csform .actions_bottom li,.cp.cpe1_old_apagar .dpt-selected .csform .actions_top li{display:table-cell;vertical-align:middle;border-left:1px solid #ccc}.cp.cpe1_old_apagar .dpt-selected .csform .actions_bottom{top:auto;left:0;bottom:0;display:inline-block;border-top:1px solid #ccc}.cp.cpe1_old_apagar .dpt-selected .csform .actions_bottom a{padding:0 .4em}.cp.cpe1_old_apagar .dpt-selected .csform .actions_bottom li{border:0;border-right:1px solid #ccc}.cp.cpe1_old_apagar .dpt-selected .csform .actions_left,.cp.cpe1_old_apagar .dpt-selected .csform .actions_right{top:2.2em;right:0;bottom:0;display:block}.cp.cpe1_old_apagar .dpt-selected .csform .actions_left li,.cp.cpe1_old_apagar .dpt-selected .csform .actions_right li{width:2.2em;display:block;border-bottom:1px solid #ccc}.cp.cpe1_old_apagar .dpt-selected .csform .actions_left li:first-child,.cp.cpe1_old_apagar .dpt-selected .csform .actions_right li:first-child{border-top:1px solid #ccc}.cp.cpe1_old_apagar .dpt-selected .csform .actions_left{right:auto;left:0}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts{background:transparent;position:relative;z-index:19;display:table;width:100%}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li{display:table-cell}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li:hover>a{background-image:-webkit-gradient(linear,left top,left bottom,from(#1c81c4),to(#0b6dad));background-image:linear-gradient(180deg,#1c81c4,#0b6dad)}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a{background-image:-webkit-gradient(linear,left top,left bottom,from(#3498db),to(#2980c9));background-image:linear-gradient(180deg,#3498db,#2980c9);border-right:1px solid #fff;padding:.2em;display:block;color:#fff;text-align:center;white-space:nowrap}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a.btn-excluir,.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a.btn-salvar{text-align:left;background:#a70808;color:#c99;padding-left:1.7em;position:relative}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a.btn-excluir:hover,.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a.btn-salvar:hover{background-color:#c70808;color:#ecc}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a.btn-excluir:before,.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a.btn-salvar:before{z-index:20;position:absolute;background:url(/static/img/icon_delete_white.png) no-repeat 50% 50%;content:"";top:0;left:0;display:block;color:#000;margin-left:.4em;height:100%;width:2em}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a.btn-salvar{background:#1f8b4d;color:#fff}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a.btn-salvar:hover{background:#2d9c5c;color:#fff}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a.btn-salvar:before{background:url(/static/img/icon_save_white.png) no-repeat 50% 50%}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a span{padding:0 .7em}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li:last-child>a{border-right:0 solid #fff}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>ul li:nth-child(2n) a{background:#3385ca}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>ul li a{border-right:1px solid #fff;display:block;color:#fff;background:#2980c9;font-size:80%;padding:.23em 1em}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>ul li a:hover{background:#0a5ea4}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.add_prior{table-layout:fixed}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.add_prior>ul{-webkit-transform:translateY(30px);transform:translateY(30px);-webkit-transition:opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;transition:opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;transition:transform .1s linear,opacity .1s linear,clip 0s .3s;transition:transform .1s linear,opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;clip:rect(0,0,0,0);opacity:0;position:absolute;margin-left:.5em;-webkit-box-shadow:0 6px 18px rgba(0,0,0,.19),0 2px 6px rgba(0,0,0,.23);box-shadow:0 6px 18px rgba(0,0,0,.19),0 2px 6px rgba(0,0,0,.23);-webkit-transition-delay:.4s;transition-delay:.4s}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.add_prior>ul li a{border-right:0!important}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.add_prior>ul li:first-child:before{border-width:.375rem;border-style:inset inset solid;content:"";display:block;height:0;width:0;border-color:transparent transparent #3385ca;position:absolute;top:-.71rem;left:.9375rem}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.add_prior>ul li:first-child:hover:before{border-color:transparent transparent #0a5ea4}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.add_prior>ul:after{content:"";position:absolute;z-index:-1;left:0;top:-25px;height:25px;width:100%;-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.add_prior:hover>ul{-webkit-transform:translateY(7px);transform:translateY(7px);-webkit-transition:opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;transition:opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;transition:transform .4s linear,opacity .4s linear,clip 0s .2s;transition:transform .4s linear,opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;opacity:1;clip:rect(-100px,2000px,2000px,-100px)}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir{display:block;position:static}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir>ul{-webkit-transform:translateY(30px);transform:translateY(30px);-webkit-transition:opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;transition:opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;transition:transform .1s linear,opacity .1s linear,clip 0s .3s;transition:transform .1s linear,opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;clip:rect(0,0,0,0);opacity:0;position:absolute;margin-left:.5em;-webkit-box-shadow:0 6px 18px rgba(0,0,0,.19),0 2px 6px rgba(0,0,0,.23);box-shadow:0 6px 18px rgba(0,0,0,.19),0 2px 6px rgba(0,0,0,.23);-webkit-transition-delay:.4s;transition-delay:.4s}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir>ul li a{border-right:0!important}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir>ul li:first-child:before{border-width:.375rem;border-style:inset inset solid;content:"";display:block;height:0;width:0;border-color:transparent transparent #3385ca;position:absolute;top:-.71rem;left:.9375rem}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir>ul li:first-child:hover:before{border-color:transparent transparent #0a5ea4}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir>ul:after{content:"";position:absolute;z-index:-1;left:0;top:-25px;height:25px;width:100%;-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir:hover>ul{-webkit-transform:translateY(7px);transform:translateY(7px);-webkit-transition:opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;transition:opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;transition:transform .4s linear,opacity .4s linear,clip 0s .2s;transition:transform .4s linear,opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;opacity:1;clip:rect(-100px,2000px,2000px,-100px)}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir>ul{right:.5em}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir>ul li a{background-color:#a70808}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir>ul li a:hover{background:#c70808}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir>ul li:first-child:before{border-color:transparent transparent #a70808;right:10%;left:auto}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir>ul li:first-child:hover:before{border-color:transparent transparent #c70808}.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante,.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante_fixo{z-index:2000}.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante>li>ul,.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante_fixo>li>ul{-webkit-transform:translateY(30px);transform:translateY(30px);-webkit-transition:opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;transition:opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;transition:transform .1s linear,opacity .1s linear,clip 0s .3s;transition:transform .1s linear,opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;clip:rect(0,0,0,0);opacity:0;position:absolute;margin-left:.5em;-webkit-box-shadow:0 6px 18px rgba(0,0,0,.19),0 2px 6px rgba(0,0,0,.23);box-shadow:0 6px 18px rgba(0,0,0,.19),0 2px 6px rgba(0,0,0,.23);-webkit-transition-delay:.4s;transition-delay:.4s}.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante>li>ul li a,.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante_fixo>li>ul li a{border-right:0!important}.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante>li>ul li:first-child:before,.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante_fixo>li>ul li:first-child:before{border-width:.375rem;border-style:inset inset solid;content:"";display:block;height:0;width:0;border-color:transparent transparent #3385ca;position:absolute;top:-.71rem;left:.9375rem}.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante>li>ul li:first-child:hover:before,.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante_fixo>li>ul li:first-child:hover:before{border-color:transparent transparent #0a5ea4}.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante>li>ul:after,.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante_fixo>li>ul:after{content:"";position:absolute;z-index:-1;left:0;top:-25px;height:25px;width:100%;-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante>li:hover>ul,.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante_fixo>li:hover>ul{-webkit-transform:translateY(7px);transform:translateY(7px);-webkit-transition:opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;transition:opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;transition:transform .4s linear,opacity .4s linear,clip 0s .2s;transition:transform .4s linear,opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;opacity:1;clip:rect(-100px,2000px,2000px,-100px)}.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante>li.menu_excluir>ul li:first-child:before,.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante_fixo>li.menu_excluir>ul li:first-child:before{right:auto;left:.9375rem}.cp.cpe1_old_apagar .dpt-selected .csform textarea{margin:0;resize:vertical;min-height:12.6em;border:0;font-size:120%;width:100%}.cp.cpe1_old_apagar .dpt-selected .csform textarea:focus{background:#fff}.cp.cpe1_old_apagar .dpt-selected .csform textarea::-webkit-input-placeholder{color:#c70808;opacity:.6;font-size:80%}.cp.cpe1_old_apagar .dpt-selected .csform textarea:-moz-placeholder,.cp.cpe1_old_apagar .dpt-selected .csform textarea::-moz-placeholder{color:#c70808}.cp.cpe1_old_apagar .dpt-selected .csform textarea:-ms-input-placeholder{color:#c70808;opacity:.6}.cp.cpe1_old_apagar .selected{background-color:hsla(0,0%,100%,.5)}.cp.cpe1_old_apagar .selected a:hover{color:#16407c!important;font-weight:400!important}.lista-dispositivo,.result-busca-dispositivo{padding:0 0 1em;min-height:3em}.lista-dispositivo ul,.result-busca-dispositivo ul{list-style:none;margin:0;padding:1em 0 0;-webkit-transition:all 2s linear;transition:all 2s linear;clear:both;position:relative}.lista-dispositivo ul li,.result-busca-dispositivo ul li{display:table;border-collapse:separate;border-bottom:1px solid #fff;width:100%}.lista-dispositivo ul li.ta_title,.result-busca-dispositivo ul li.ta_title{background-color:rgba(0,0,0,.15);width:100%}.lista-dispositivo ul li:last-child .itemlabel,.result-busca-dispositivo ul li:last-child .itemlabel{margin:0}.lista-dispositivo ul li .iteminput,.result-busca-dispositivo ul li .iteminput{background-color:rgba(0,0,0,.1);border-right:1px solid #fff;display:table-cell;padding:.5em;vertical-align:middle;text-align:center;position:relative}.lista-dispositivo ul li .iteminput input,.result-busca-dispositivo ul li .iteminput input{margin:0}.lista-dispositivo ul li .iteminput .flag,.result-busca-dispositivo ul li .iteminput .flag{position:absolute;top:0;left:0;right:0;line-height:1;background-color:#ccc;color:#fff;cursor:default;font-size:80%}.lista-dispositivo ul li .itemlabel,.result-busca-dispositivo ul li .itemlabel{margin:0;background-color:rgba(0,0,0,.1);display:table-cell;padding:.5em;vertical-align:middle;width:100%}.lista-dispositivo ul li .itemlabel .artigo,.result-busca-dispositivo ul li .itemlabel .artigo{float:none}.lista-dispositivo .label-tip-results,.result-busca-dispositivo .label-tip-results{background-color:rgba(0,0,0,.1);padding:0 5px;top:0;z-index:1;line-height:1.3;color:#00f;font-size:.9em}.lista-dispositivo .nomenclatura_heranca,.result-busca-dispositivo .nomenclatura_heranca{font-size:90%;color:#057dba;display:inline}.lista-dispositivo.controls-radio-checkbox{border:0}.label_vigencia{border-top:1px solid #fff;display:inline-block;color:#555}.label_vigencia span{color:grey}.cp-nav-parents .dropdown-menu{left:0;right:auto;padding:0}.cp-nav-parents .dropdown-menu:before{content:"";position:absolute;top:-11px;width:100%;height:11px}.cp-nav-parents:hover .dropdown-menu{display:block}.cp-nav-parents a.active small{color:#fff!important}.table-notificacoes tbody tr td{border-top:1px solid #fff;padding:5px;vertical-align:middle}.table-notificacoes tbody tr td ul{margin:0}.table-notificacoes tbody tr td ul li:hover{background-color:rgba(0,0,0,.1)}.btn-modal-open{float:right}.modal .modal-content .alert:only-child{margin:0}.class_color_container{background:#ddd!important}.clear{clear:both}.mce-tinymce.mce-container{border:1px solid #ccc!important;margin-right:2px}.mce-btn button:hover{background-color:rgba(0,0,0,.1)!important;text-shadow:0 0 5px #fff;-webkit-box-shadow:0 0 5px #777;box-shadow:0 0 5px #777}.mce-menu{background:#eee!important}.displaynone{display:none!important}@media only screen and (max-width:991.98px){.cp .table,.cp table{width:auto!important;white-space:normal;overflow-x:auto!important}}@media only screen and (max-width:800px){.cp .fixed{z-index:98;position:relative}.cp.cpe1 .dpt-selected{margin:1em 0}.cp.cpe1 .dpt-selected .csform .actions_parents,.cp.cpe1 .dpt-selected .csform .label_status{font-size:80%;position:static!important;display:block!important;padding:0;height:auto!important;left:0;right:auto;text-align:left}.cp.cpe1 .dpt-selected .csform .actions_parents div,.cp.cpe1 .dpt-selected .csform .actions_parents li,.cp.cpe1 .dpt-selected .csform .label_status div,.cp.cpe1 .dpt-selected .csform .label_status li{display:inline-block!important}.cp.cpe1 .dpt-selected .csform .actions_inserts>li>ul{-webkit-transform:translateY(30px);transform:translateY(30px);-webkit-transition:opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;transition:opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;transition:transform .1s linear,opacity .1s linear,clip 0s .3s;transition:transform .1s linear,opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;clip:rect(0,0,0,0);opacity:0;position:absolute;margin-left:.5em;-webkit-box-shadow:0 6px 18px rgba(0,0,0,.19),0 2px 6px rgba(0,0,0,.23);box-shadow:0 6px 18px rgba(0,0,0,.19),0 2px 6px rgba(0,0,0,.23);-webkit-transition-delay:.4s;transition-delay:.4s}.cp.cpe1 .dpt-selected .csform .actions_inserts>li>ul li a{border-right:0!important}.cp.cpe1 .dpt-selected .csform .actions_inserts>li>ul li:first-child:before{border-width:.375rem;border-style:inset inset solid;content:"";display:block;height:0;width:0;border-color:transparent transparent #3385ca;position:absolute;top:-.71rem;left:.9375rem}.cp.cpe1 .dpt-selected .csform .actions_inserts>li>ul li:first-child:hover:before{border-color:transparent transparent #0a5ea4}.cp.cpe1 .dpt-selected .csform .actions_inserts>li>ul:after{content:"";position:absolute;z-index:-1;left:0;top:-25px;height:25px;width:100%;-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.cp.cpe1 .dpt-selected .csform .actions_inserts>li:hover>ul{-webkit-transform:translateY(7px);transform:translateY(7px);-webkit-transition:opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;transition:opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;transition:transform .4s linear,opacity .4s linear,clip 0s .2s;transition:transform .4s linear,opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;opacity:1;clip:rect(-100px,2000px,2000px,-100px)}.cp.cpe1 .dpt-selected .csform .actions_inserts>li>a span{display:none}.cp.cpe1 .cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a.btn-salvar,.cp.cpe1 .dpt-selected .csform .actions_inserts>li>a.btn-excluir,.cp.cpe1 .dpt-selected .csform .actions_inserts>li>a.btn-salvar,.cp.cpe1_old_apagar .cp.cpe1 .dpt-selected .csform .actions_inserts>li>a.btn-salvar{padding-left:0;min-width:1em}.cp.cpe1 .cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a.btn-salvar:before,.cp.cpe1 .dpt-selected .csform .actions_inserts>li>a.btn-excluir:before,.cp.cpe1 .dpt-selected .csform .actions_inserts>li>a.btn-salvar:before,.cp.cpe1_old_apagar .cp.cpe1 .dpt-selected .csform .actions_inserts>li>a.btn-salvar:before{width:100%;margin:0}.cp.cpe1 .dpt-selected .csform .actions_inserts>li.add_in,.cp.cpe1 .dpt-selected .csform .actions_inserts>li.add_next,.cp.cpe1 .dpt-selected .csform .actions_inserts>li.add_prior{position:static}.cp.cpe1 .dpt-selected .csform .actions_inserts>li.add_in>ul{left:1em!important;right:1em!important;margin-left:0}.cp.cpe1 .dpt-selected .csform .actions_inserts>li.add_in>ul li:first-child:before{left:37%}.cp.cpe1 .dpt-selected .csform .actions_inserts>li.add_next>ul{left:0!important;right:1em!important}.cp.cpe1 .dpt-selected .csform .actions_inserts>li.add_prior>ul{left:1em!important;right:0!important;margin-left:0;margin-right:.5em}.cp.cpe1 .dpt-selected .csform .actions_inserts>li.add_prior>ul li:first-child:before{right:42%;left:auto}.cp.cpe1 .dpt-selected .csform .actions_inserts>li.menu_excluir>ul{left:10%!important;right:0!important;margin-left:0;margin-right:.5em}.cp.cpe1 .dpt-selected .csform .actions_inserts>li.menu_excluir>ul li:first-child:before{right:0;left:auto}}@media only screen and (max-width:575.98px){.cp .cp-linha-vigencias>li{height:1px}.cp .cp-linha-vigencias>li .circle{width:8px;height:8px;margin:-4px auto 0}.cp .cp-linha-vigencias>li>a{font-size:.75rem}.cp .cp-linha-vigencias>li:nth-child(2n)>a{margin-top:4px}.cp .cp-linha-vigencias>li:nth-child(odd)>a{margin-bottom:4px}.cp .cp-linha-vigencias>li ul a{line-height:1.3rem;font-size:.7rem;background:#fff}.cp .cp-linha-vigencias>li.active .circle{width:14px;height:14px;margin:-7px auto 0}.cp .cp-linha-vigencias>li.active:not(:last-child)>a{margin-bottom:15px}.cp .cp-linha-vigencias>li.active:first-child>a,.cp .cp-linha-vigencias>li.active:last-child>a{margin-bottom:10px}}@media print{.button,.cp-linha-vigencias,.cp .vigencias,.dne,.menu-icon,.tipo-vigencias,.toggle-topbar{display:none!important}#btn_font_mais,#btn_font_menos,#btn_impressao{display:none}.container{width:100%}} \ No newline at end of file diff --git a/sapl/static/sapl/frontend/css/compilacao.00eb2b5d.css.gz b/sapl/static/sapl/frontend/css/compilacao.00eb2b5d.css.gz deleted file mode 100644 index dddc9077d..000000000 Binary files a/sapl/static/sapl/frontend/css/compilacao.00eb2b5d.css.gz and /dev/null differ diff --git a/sapl/static/sapl/frontend/css/compilacao.90ba9ac3.css b/sapl/static/sapl/frontend/css/compilacao.90ba9ac3.css new file mode 100644 index 000000000..bcf13138c --- /dev/null +++ b/sapl/static/sapl/frontend/css/compilacao.90ba9ac3.css @@ -0,0 +1 @@ +a:link:after,a:visited:after{content:""}.test_import:nth-child(2n){background-color:#ccc}#wait_message{display:block;position:fixed;top:0;bottom:0;left:0;right:0;background-color:hsla(0,0%,86.3%,.75);z-index:99}#wait_message #msg{position:relative;margin:20% auto;padding:1.2em 2em;max-width:600px;text-align:center;font-size:1.5em;color:#677;border:1px solid #eee;background-color:#fff!important;-webkit-box-shadow:0 1px 2px #999;box-shadow:0 1px 2px #999}.text-center{text-align:center}.cp-notify{z-index:10000;position:fixed;top:2em;left:50%;min-width:600px;-webkit-transform:translate(-50%);transform:translate(-50%);opacity:.97}.cp-notify,.cp-notify.hide{-webkit-transition:all .4s ease;transition:all .4s ease}.cp-notify.hide{opacity:0;top:-1000px;display:block!important}.cp-notify .message{padding:1em;border:2px solid rgba(0,0,0,.1);border-radius:4px;color:rgba(0,0,0,.6);line-height:1em;font-size:1.3em;text-align:center;-webkit-box-shadow:0 0 100px rgba(0,0,0,.2);box-shadow:0 0 100px rgba(0,0,0,.2)}.cp .vigencia-active{margin-top:30px;display:block}.cp .cp-linha-vigencias{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;list-style:none;margin:4rem 0 3rem;padding:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.cp .cp-linha-vigencias ul{list-style:none;margin:0;padding:0}.cp .cp-linha-vigencias>li{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:0;background:#000;height:2px;text-align:center;max-width:4rem}.cp .cp-linha-vigencias>li .circle{display:block;width:10px;line-height:0;background:#000;height:10px;margin:-5px auto 0;border-radius:50%}.cp .cp-linha-vigencias>li>a{position:absolute;white-space:nowrap;line-height:1rem;text-align:center}.cp .cp-linha-vigencias>li:nth-child(2n)>a{top:100%;margin-top:5px}.cp .cp-linha-vigencias>li:nth-child(odd)>a{bottom:100%;margin-bottom:5px}.cp .cp-linha-vigencias>li ul{z-index:1;position:absolute;display:none;background:#fff;margin:30px 0;border:1px solid #aaa;-webkit-box-shadow:0 0 10px #aaa;box-shadow:0 0 10px #aaa;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cp .cp-linha-vigencias>li ul:before{content:" ";width:2px;height:30px;position:absolute;display:block;background-color:#aaa;bottom:100%;left:50%;margin-left:-1px}.cp .cp-linha-vigencias>li ul li{text-align:left}.cp .cp-linha-vigencias>li ul a{display:block;white-space:nowrap;line-height:2rem;padding:0 10px;font-size:1rem}.cp .cp-linha-vigencias>li ul a:hover{background:#eee}.cp .cp-linha-vigencias>li.active .circle{display:block;width:20px;line-height:0;background:#aaa;height:20px;margin:-10px auto 0}.cp .cp-linha-vigencias>li.active:not(:last-child)>a{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);margin-bottom:25px;font-weight:700}.cp .cp-linha-vigencias>li.active:first-child>a,.cp .cp-linha-vigencias>li.active:last-child>a{-webkit-transform:rotate(0deg);transform:rotate(0deg);margin-bottom:15px;font-weight:700}.cp .cp-linha-vigencias>li.active>a{margin-bottom:5px}.cp .cp-linha-vigencias>li.active:nth-child(2n)>a{bottom:100%;top:auto}.cp .cp-linha-vigencias>li.active ul{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.cp .cp-linha-vigencias>li.active ul li{text-align:left;width:100%}.cp .cp-vigencias .nav-link{padding:.5rem}.cp .cp-vigencias .dropdown-toggle:after{zoom:.8;margin:0}.cp .cp-vigencias .dropdown-menu{margin-left:.5rem}.cp .cp-vigencias .dropdown-item{padding:0}.cp .cp-vigencias .dropdown-item a{line-height:1;padding:.7rem}.cp .desativado .dpt-link,.cp .desativado .dpt-link *,.cp .desativado .dtxt,.cp .desativado .dtxt *,.cp .dpt .dptt>a.desativado .dpt-link,.cp .dpt .dptt>a.desativado .dpt-link *,.cp .dpt .dptt>a.desativado .dtxt,.cp .dpt .dptt>a.desativado .dtxt *{text-decoration:line-through;color:#999!important}.cp .desativado .dpt-link * table,.cp .desativado .dpt-link * table td,.cp .desativado .dpt-link table,.cp .desativado .dpt-link table td,.cp .desativado .dtxt * table,.cp .desativado .dtxt * table td,.cp .desativado .dtxt table,.cp .desativado .dtxt table td,.cp .dpt .dptt>a.desativado .dpt-link * table,.cp .dpt .dptt>a.desativado .dpt-link * table td,.cp .dpt .dptt>a.desativado .dpt-link table,.cp .dpt .dptt>a.desativado .dpt-link table td,.cp .dpt .dptt>a.desativado .dtxt * table,.cp .dpt .dptt>a.desativado .dtxt * table td,.cp .dpt .dptt>a.desativado .dtxt table,.cp .dpt .dptt>a.desativado .dtxt table td{border:1px dotted #ccc}.cp .desativado .dpt-img img,.cp .dpt .dptt>a.desativado .dpt-img img{-webkit-filter:grayscale(100%) contrast(110%);filter:grayscale(100%) contrast(110%);opacity:.5}.cp a{text-decoration:none;cursor:pointer}.cp .diff .desativado,.cp .diff .desativado *,.cp .diff .dpt .dptt>a.desativado,.cp .diff .dpt .dptt>a.desativado *,.cp .dpt .diff .dptt>a.desativado,.cp .dpt .diff .dptt>a.desativado *{text-decoration:line-through;color:#ddd!important;font-size:90%}.cp .diff .added{color:#04de2c}.cp .dpt{font-size:1em;position:relative}.cp .dpt.indent{padding-left:1em}.cp .dpt .dpt-img{text-align:center}.cp .dpt .dpt-img img{max-width:100%}.cp .dpt .ementa{padding:2em 0 2em 35%;font-weight:700}.cp .dpt .anexo,.cp .dpt .capitulo,.cp .dpt .disp_finais,.cp .dpt .disp_gerais,.cp .dpt .disp_preliminares,.cp .dpt .disp_transitorias,.cp .dpt .itemsecao,.cp .dpt .livro,.cp .dpt .parte,.cp .dpt .secao,.cp .dpt .subsecao,.cp .dpt .titulo,.cp .dpt .titulo_generico{text-align:center;margin-bottom:1em;font-size:1.5em;margin-top:3em;font-weight:700;font-variant:small-caps}.cp .dpt .titulo{margin-top:2em}.cp .dpt .capitulo{margin-top:1.5em;font-size:1.15em}.cp .dpt .secao{margin-top:1.2em;margin-bottom:.7em;font-weight:700;font-size:1.15em}.cp .dpt .itemsecao,.cp .dpt .subsecao{margin-top:1em;margin-bottom:.6em;font-weight:700;font-size:1.15em}.cp .dpt .artigo{font-size:1.15em;float:left}.cp .dpt .artigo .dptt{position:relative}.cp .dpt .caput,.cp .dpt .texto_n_estruturado{margin-top:.3333em;font-size:1.15em}.cp .dpt .paragrafo{font-size:1.1em;margin-top:.2222em}.cp .dpt .inciso{font-size:1.1em;margin-top:.1667em}.cp .dpt .alinea,.cp .dpt .item{font-size:1em;margin-top:2px}.cp .dpt .assinatura,.cp .dpt .fecho_lei{margin-top:.6em;font-size:1.15em}.cp .dpt .page-break{page-break-before:always}.cp .dpt .bloco_alteracao{padding-left:10%;font-style:italic;color:#018}.cp .dpt .bloco_alteracao a{text-decoration:underline}.cp .dpt .bloco_alteracao a,.cp .dpt .bloco_alteracao table,.cp .dpt .bloco_alteracao table td{color:#018!important}.cp .dpt .bloco_alteracao .desativado,.cp .dpt .bloco_alteracao .desativado a,.cp .dpt .bloco_alteracao .desativado table,.cp .dpt .bloco_alteracao .desativado table td,.cp .dpt .bloco_alteracao .dptt>a.desativado{text-decoration:line-through;color:#999!important}.cp .dpt .card-header{font-size:1.7rem}.cp .dpt .dn{font-weight:400;position:relative;font-size:80%}.cp .dpt .dn p,.cp .dpt .dn ul{font-weight:400;margin:0 0 0 0;list-style:none;padding:0}.cp .dpt .dn .dnl{display:block;text-align:left!important}.cp .dpt .dn .dnl *{display:inline}.cp .dpt .dn .dnl .bullet{padding:0 .333em;display:inline-block}.cp .dpt .dn .dnl .dnli{min-height:2.5em}.cp .dpt .dn .dnl .dnli:hover ul{font-size:1rem;clip:auto;opacity:1;background:hsla(0,0%,90.2%,.9)}.cp .dpt .dn .dnl .dnli:hover ul,.cp .dpt .dn .dnl .dnli ul{-webkit-transition:opacity .5s linear,clip 0s .3s;transition:opacity .5s linear,clip 0s .3s}.cp .dpt .dn .dnl .dnli ul{clip:rect(0,0,0,0);opacity:0;position:absolute;background:transparent;right:0;padding:.2em .5em 0 .5em;border:1px solid #c7e3d3;border-top:0;font-size:1.5rem}.cp .dpt .dn .dnl .dnli ul li{display:table-cell;color:#aaa}.cp .dpt .dn .dnl .dnli ul li:hover{color:#787}.cp .dpt .dn .dnl .dnli ul li .nowner,.cp .dpt .dn .dnl .dnli ul li:hover a{color:#27ae60!important}.cp .dpt .dn .dnl .dnli .ntitulo{font-size:.8rem;font-weight:700;color:#03a203;text-decoration:none}.cp .dpt .dn .dnl .dnli .ntitulo a{color:#294!important}.cp .dpt .dn .dnl .dnli .ntexto{font-variant:normal;font-size:.8rem;color:#018801}.cp .dpt .dn .dnl .dnli .ntexto a{color:#03a203!important}.cp .dpt .dn .dnl:hover,.cp .dpt .dn .dnl:hover *{display:block}.cp .dpt .dn .dnl:hover>.bullet{display:none}.cp .dpt .dn .dnl:hover .dnli{margin-top:.5em;border-top:1px solid #c7e3d3}.cp .dpt .dptt{clear:left}.cp .dpt .dptt>a{color:#000}.cp .dpt .dptt>a.nota-alteracao{color:#02baf2;font-size:.75em}.cp .dpt .dptt>a.nota-alteracao:hover{text-decoration:underline}.cp .dpt .dptt .dne{position:absolute;display:block;right:0;left:0;top:0;height:0;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:right;transform-origin:right;-webkit-transition:all .3s ease;transition:all .3s ease;border-top:1px solid #2980b9}.cp .dpt .dptt .dne ul.btns-action{list-style:none;padding:0;position:absolute;right:0;background-color:#2980b9}.cp .dpt .dptt .dne ul.btns-action li{float:left}.cp .dpt .dptt .dne ul.btns-action li:hover{background-color:rgba(0,0,0,.1)}.cp .dpt .dptt .dne ul.btns-action li a{color:#fff;padding:.15em 1em 0;display:inline-block}.cp .dpt .dptt .dne-nota{position:relative;-webkit-transform:scaleX(1);transform:scaleX(1);height:auto;border-top:0}.cp .dpt .dptt .dne-nota ul.btns-action{display:none}.cp .dpt .dptt .dne-nota .dne-form{margin:1em -2em 0;text-align:left;font-size:1rem}.cp .dpt .dptt:hover .dne{height:.1667rem;-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transition-delay:1s;transition-delay:1s}.cp .dpt .dptt:hover .dne-nota{height:auto;-webkit-transition-delay:0s;transition-delay:0s}.cp .tipo-vigencias{margin-bottom:-6px;opacity:.8;list-style:none;position:fixed;bottom:0;left:50%;-webkit-transform:translate(-50%);transform:translate(-50%);margin:0;padding:0;z-index:1000;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.cp .tipo-vigencias div a{color:#fff}.cp .tipo-vigencias:hover,.cp:hover{opacity:1}.cp .revogado{color:#800}.cp .revogado .dpt-link{color:#999!important}.cp .omissis a{text-decoration:none!important}.cp-print .cp-linha-vigencias{display:none!important}.cp.cpe .desativado,.cp.cpe .dpt .dptt>a.desativado{text-decoration:line-through;color:#999!important}.cp.cpe .desativado table,.cp.cpe .desativado table td,.cp.cpe .dpt .dptt>a.desativado table,.cp.cpe .dpt .dptt>a.desativado table td{border:1px dotted #ccc}.cp.cpe a.nota-alteracao{color:#02baf2!important;font-size:.8rem}.cp.cpe .btn-sm{line-height:1rem}.cp.cpe .btn-outline-primary{background-color:#fff}.cp.cpe .btn-outline-primary:hover{background-color:#02baf2}.cp.cpe .dpt{display:block}.cp.cpe .dpt>.dpt-actions-fixed{position:absolute;right:-1em;top:-.8em;z-index:3;opacity:0}.cp.cpe .dpt>.dpt-actions-fixed.bottom{top:auto;bottom:3px;right:2px}.cp.cpe .dpt>.dpt-actions-fixed .activate{display:none}.cp.cpe .dpt>.dpt-actions-fixed .deactivate{display:inline}.cp.cpe .dpt>.dpt-actions-fixed .btn-dpt-edit.btn-outline-primary{color:#333}.cp.cpe .dpt>.dpt-actions-fixed .btn-dpt-edit.btn-outline-primary:hover{color:#fff;background-color:#02baf2}.cp.cpe .dpt>.dpt-actions,.cp.cpe .dpt>.dpt-actions-bottom{display:none}.cp.cpe .dpt>.dpt-text{cursor:text;min-height:30px;border:1px solid transparent}.cp.cpe .dpt>.dpt-text.hover-fixed,.cp.cpe .dpt>.dpt-text:hover{background-color:rgba(0,0,0,.01);color:#2980b9;border:1px solid #eee;-webkit-transition:color .3s ease;transition:color .3s ease}.cp.cpe .dpt>.dpt-text.artigo{float:none}.cp.cpe .dpt>.dpt-text a.link-rotulo{color:#000}.cp.cpe .dpt:hover>.dpt-actions-fixed{opacity:1}.cp.cpe .dpt:hover>.dpt-actions-fixed:hover~.dpt-text{background-color:rgba(0,0,0,.01);color:#2980b9;border:1px solid #eee;-webkit-transition:color .3s ease;transition:color .3s ease}.cp.cpe .dpt .semtexto{font-weight:700;color:#9aaed6}.cp.cpe .dpt .semtexto:hover{color:#5f76a4}.cp.cpe .dpt-alts{margin:0;margin-bottom:1em;padding:0;background-color:transparent;min-height:100px;border:2px dashed #fff}.cp.cpe .dpt-alts:hover{border-color:#d9ddde}.cp.cpe .dpt-alts:empty{border-color:#ddd}.cp.cpe .dpt-alts.drag{width:100%!important;border-color:#d9ddde}.cp.cpe .dpt-alts.drag .dpt{-webkit-transition-duration:0s!important;transition-duration:0s!important}.cp.cpe .dpt-alts .dpt{width:100%!important;-webkit-box-shadow:0 -1px 0 #e5e5e5,0 0 2px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.24);box-shadow:0 -1px 0 #e5e5e5,0 0 2px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.24);padding:0;margin:0;background-color:#edf0f1;height:auto!important;min-height:2em;z-index:1}.cp.cpe .dpt-alts .dpt:not(:first-child){border-top:1px solid #fff}.cp.cpe .dpt-alts .dpt>.dpt-text{padding:.3em 1em;margin-top:0;margin-bottom:0}.cp.cpe .dpt-alts .dpt>.dpt-text a.link-rotulo{text-decoration:underline}.cp.cpe .dpt-alts .dpt-selected.dpt{margin:0 -.5em}.cp.cpe .dpt-selected.dpt{width:auto!important;margin:1em -.5em;border:1px solid #ddd!important;padding:0;background-color:#fafafa;border-radius:3px;z-index:4}.cp.cpe .dpt-selected.dpt>.dpt-text{border:1px solid transparent}.cp.cpe .dpt-selected.dpt>.dpt-text:hover{border:1px solid transparent;background-color:transparent}.cp.cpe .dpt-selected.dpt>.dpt-form{margin:0 1rem}.cp.cpe .dpt-selected.dpt>.dpt-actions,.cp.cpe .dpt-selected.dpt>.dpt-actions-bottom{display:table;background-color:#e5e5e5;padding:.8rem .6rem .2rem .6rem;margin-bottom:0;width:100%}.cp.cpe .dpt-selected.dpt>.dpt-actions-bottom>.btn-action,.cp.cpe .dpt-selected.dpt>.dpt-actions>.btn-action{display:table-cell;float:none}.cp.cpe .dpt-selected.dpt>.dpt-actions-bottom .btns-excluir .btn-danger,.cp.cpe .dpt-selected.dpt>.dpt-actions .btns-excluir .btn-danger{display:inline-block;opacity:.3;color:#fff}.cp.cpe .dpt-selected.dpt>.dpt-actions-bottom .btns-excluir .btn-danger:hover,.cp.cpe .dpt-selected.dpt>.dpt-actions .btns-excluir .btn-danger:hover{opacity:1}.cp.cpe .dpt-selected.dpt>.dpt-actions-bottom{margin:0;padding-bottom:.8rem}.cp.cpe .dpt-selected .dpt-block{border-top:1px solid #e5e5e5!important;opacity:.6;-webkit-transition:opacity .4s ease;transition:opacity .4s ease}.cp.cpe .dpt-selected .dpt-block:hover{opacity:1}.cp.cpe .dpt-selected .dpt-text{opacity:.7;margin:0;padding:.7em}.cp.cpe .dpt-selected .dpt-text:hover{opacity:1;background-color:#f5f5f5}.cp.cpe .dpt-selected .dpt-alts{margin:1em}.cp.cpe .dpt-selected .dpt-alts .dpt{-webkit-box-shadow:0 0 0;box-shadow:0 0 0}.cp.cpe .dpt-selected>.dpt-actions-fixed{opacity:1;top:-15px;right:.5em}.cp.cpe .dpt-selected>.dpt-actions-fixed .activate{display:inline}.cp.cpe .dpt-selected>.dpt-actions-fixed .deactivate{display:none}.cp.cpe .dpt-selected>.dpt-actions-fixed .btn-dpt-edit{padding:0 6px;line-height:1.2rem}.cp.cpe .dpt-selected>.dpt-actions-fixed .btn-dpt-edit.btn-outline-primary,.cp.cpe .dpt-selected>.dpt-actions-fixed .btn-dpt-edit.btn-outline-primary:hover{background-color:#fad46b;border:1px solid #444}.cp.cpe .dpt-selected .btns-tipos-editor{padding:0}.cp.cpe .dpt-selected .dropdown-menu.dropdown-menu-left{right:auto!important;left:0;padding:0}.cp.cpe .dpt-selected .dropdown-menu.dropdown-menu-left:before{content:"";position:absolute;background-color:transparent;width:100%;height:3px;top:-3px;display:inline-block}.cp.cpe .dpt-selected .dropdown-menu li{line-height:1}.cp.cpe .dpt-selected .dropdown-menu li a{display:block;line-height:1.5rem;padding:0 .5rem;white-space:nowrap}.cp.cpe .dpt-selected .dropdown-menu li a:hover{background-color:#f0f0f0}.cp.cpe .dpt-selected .dropdown-menu li:not(:last-child){border-bottom:1px solid #f0f0f0}.cp.cpe .dpt-selected .btn-group .radius-right{border-bottom-right-radius:.2rem!important;border-top-right-radius:.2rem!important}.cp.cpe .dpt-selected:hover>.dpt-actions-fixed{opacity:1}.cp.cpe1_old_apagar{margin-bottom:15em}.cp.cpe1_old_apagar .desativado,.cp.cpe1_old_apagar .desativado *,.cp.cpe1_old_apagar .dpt .dptt>a.desativado,.cp.cpe1_old_apagar .dpt .dptt>a.desativado *{text-decoration:line-through;color:#999!important}.cp.cpe1_old_apagar .desativado * table,.cp.cpe1_old_apagar .desativado * table td,.cp.cpe1_old_apagar .desativado table,.cp.cpe1_old_apagar .desativado table td,.cp.cpe1_old_apagar .dpt .dptt>a.desativado * table,.cp.cpe1_old_apagar .dpt .dptt>a.desativado * table td,.cp.cpe1_old_apagar .dpt .dptt>a.desativado table,.cp.cpe1_old_apagar .dpt .dptt>a.desativado table td{border:1px dotted #ccc}.cp.cpe1_old_apagar a{text-decoration:none;cursor:pointer}.cp.cpe1_old_apagar .dpt{position:relative;display:block}.cp.cpe1_old_apagar .dpt .semtexto{font-weight:700;color:#bfd1f6}.cp.cpe1_old_apagar .dpt .artigo{float:none}.cp.cpe1_old_apagar .dpt .caput{margin-top:0}.cp.cpe1_old_apagar .dpt-selected .csform .dpt>.actions_left,.cp.cpe1_old_apagar .dpt>.actions_right{color:#fff;right:0;position:absolute;opacity:0;-webkit-transition:all .4s ease-in-out;transition:all .4s ease-in-out;z-index:1000}.cp.cpe1_old_apagar .dpt-selected .csform .dpt>.actions_left a.btn-bloco,.cp.cpe1_old_apagar .dpt>.actions_right a.btn-bloco{background-color:#3498db;color:#fff!important;padding:8px 18px 6px;display:inline-block;line-height:1;float:right}.cp.cpe1_old_apagar .dpt-selected .csform .dpt>.actions_left a.btn-bloco:hover,.cp.cpe1_old_apagar .dpt>.actions_right a.btn-bloco:hover{opacity:1;background-image:-webkit-gradient(linear,left top,left bottom,from(#1c81c4),to(#0b6dad));background-image:linear-gradient(180deg,#1c81c4,#0b6dad)}.cp.cpe1_old_apagar .dpt-selected .csform .dpt:hover>.actions_left,.cp.cpe1_old_apagar .dpt:hover>.actions_right{opacity:1}.cp.cpe1_old_apagar .dpt .bloco{display:block;clear:both}.cp.cpe1_old_apagar .dpt .bloco :hover{color:#27ae60}.cp.cpe1_old_apagar .dpt .bloco .de{cursor:pointer}.cp.cpe1_old_apagar .dpt .articulacao{border-top:2px solid #e5e5e5;margin:2em 0}.cp.cpe1_old_apagar .dpt .bloco_alteracao{margin:1em 0;padding:0;background-color:transparent;min-height:100px;border:2px dashed #fff}.cp.cpe1_old_apagar .dpt .bloco_alteracao:hover{border-color:#d9ddde}.cp.cpe1_old_apagar .dpt .bloco_alteracao.drag{width:100%!important;border-color:#d9ddde}.cp.cpe1_old_apagar .dpt .bloco_alteracao.drag .dpt{-webkit-transition-duration:0s!important;transition-duration:0s!important}.cp.cpe1_old_apagar .dpt .bloco_alteracao .dpt{width:100%!important;-webkit-box-shadow:0 -1px 0 #e5e5e5,0 0 2px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.24);box-shadow:0 -1px 0 #e5e5e5,0 0 2px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.24);padding:.3em 1em;margin:0;background-color:#edf0f1;z-index:1}.cp.cpe1_old_apagar .dpt .bloco_alteracao .dpt:not(:first-child){border-top:1px solid #fff}.cp.cpe1_old_apagar .dpt .bloco_alteracao .dpt.ui-draggable div{cursor:pointer}.cp.cpe1_old_apagar .dpt .bloco_alteracao .dpt.dpt-comp-selected{-webkit-transition:all .3s ease;transition:all .3s ease;width:auto!important;margin:2em -3.7em;-webkit-box-shadow:0 0 6px rgba(0,0,0,.16),0 6px 12px rgba(0,0,0,.32);box-shadow:0 0 6px rgba(0,0,0,.16),0 6px 12px rgba(0,0,0,.32)}.cp.cpe1_old_apagar .dpt-selected{font-size:1em;border:0 solid #ccc;margin:1em -1.8em 1em -1.8em;padding:2.2em 2.2em 1.6em 2.2em;-webkit-box-shadow:-4px 15px 15px rgba(0,0,0,.1),0 6px 6px rgba(0,0,0,.23);box-shadow:-4px 15px 15px rgba(0,0,0,.1),0 6px 6px rgba(0,0,0,.23);background-image:-webkit-gradient(linear,left top,left bottom,from(#eaeaee),to(#ddd));background-image:linear-gradient(180deg,#eaeaee,#ddd)}.cp.cpe1_old_apagar .dpt-selected ul{list-style:none;margin:0;padding:0}.cp.cpe1_old_apagar .dpt-selected .semtexto{color:#999}.cp.cpe1_old_apagar .dpt-selected .bloco{opacity:.5}.cp.cpe1_old_apagar .dpt-selected .bloco:hover{opacity:1}.cp.cpe1_old_apagar .dpt-selected .bloco a:hover{background:transparent}.cp.cpe1_old_apagar .dpt-selected>.bloco{opacity:1;margin:1em}.cp.cpe1_old_apagar .dpt-selected .bloco_alteracao{margin:0;padding:1em;border:0 transparent;background-image:-webkit-gradient(linear,left top,left bottom,from(#eaeaee),to(#ddd));background-image:linear-gradient(180deg,#eaeaee,#ddd)}.cp.cpe1_old_apagar .dpt-selected .bloco_alteracao:hover{border-color:transparent}.cp.cpe1_old_apagar .dpt-selected .bloco_alteracao.drag{width:100%!important}.cp.cpe1_old_apagar .dpt-selected .bloco_alteracao.drag .dpt{-webkit-transition-duration:0s!important;transition-duration:0s!important}.cp.cpe1_old_apagar .dpt-selected .bloco_alteracao .dpt{width:auto!important;-webkit-transition:all .3s ease;transition:all .3s ease;background-color:#fff}.cp.cpe1_old_apagar .dpt-selected .bloco_alteracao .dpt:not(:first-child){border-top:0 solid #fff}.cp.cpe1_old_apagar .dpt-selected>.dpt{padding:0}.cp.cpe1_old_apagar .dpt-selected>.dpt:last-child{padding-bottom:1em}.cp.cpe1_old_apagar .dpt-selected .csform .dpt-selected>.actions_left a.btn-bloco,.cp.cpe1_old_apagar .dpt-selected>.actions_right a.btn-bloco{display:none}.cp.cpe1_old_apagar .dpt-selected .csform{display:block;clear:both;z-index:9;position:static}.cp.cpe1_old_apagar .dpt-selected .csform .btns-action{-webkit-animation:fadeIn 1s ease-in-out;-moz-animation:fadeIn 1s ease-in-out;-o-animation:fadeIn 1s ease-in-out;opacity:1;position:absolute;display:table;-webkit-transition:all .4s ease-in-out;transition:all .4s ease-in-out}.cp.cpe1_old_apagar .dpt-selected .csform .btns-action a{color:#16407c;display:block;background:transparent;vertical-align:middle;text-align:center;font-weight:400;text-shadow:0 0 10px rgba(0,0,0,.3);padding:.33em .4em}.cp.cpe1_old_apagar .dpt-selected .csform .btns-action>li{position:relative;display:table-cell;vertical-align:top}.cp.cpe1_old_apagar .dpt-selected .csform .btns-action>li:hover{background-color:hsla(0,0%,100%,.5)}.cp.cpe1_old_apagar .dpt-selected .csform .btns-action>li:hover>a{text-shadow:0 0 5px #777;color:#0a5}.cp.cpe1_old_apagar .dpt-selected .csform .label_status{position:absolute;bottom:0;right:0;color:#889;padding:.3em;font-size:80%;text-align:right;z-index:15;display:table}.cp.cpe1_old_apagar .dpt-selected .csform .label_status li{display:table-cell;padding:0 .5em}.cp.cpe1_old_apagar .dpt-selected .csform .actions_parents{z-index:11;top:0;left:0}.cp.cpe1_old_apagar .dpt-selected .csform .actions_parents a{padding:.62em}.cp.cpe1_old_apagar .dpt-selected .csform .actions_parents div,.cp.cpe1_old_apagar .dpt-selected .csform .actions_parents li{font-size:80%;display:table-cell;vertical-align:middle;border-right:1px solid #ccc}.cp.cpe1_old_apagar .dpt-selected .csform .actions_parents div{padding:0 .4em;font-stretch:condensed;font-variant:small-caps;font-weight:700;text-shadow:0 0 10px #fff}.cp.cpe1_old_apagar .dpt-selected .csform .actions_parents>li:hover a{color:#16407c;font-weight:400}.cp.cpe1_old_apagar .dpt-selected .csform .actions_bottom,.cp.cpe1_old_apagar .dpt-selected .csform .actions_top{top:0;right:0}.cp.cpe1_old_apagar .dpt-selected .csform .actions_bottom a,.cp.cpe1_old_apagar .dpt-selected .csform .actions_top a{padding-right:1em;padding-left:1em}.cp.cpe1_old_apagar .dpt-selected .csform .actions_bottom li,.cp.cpe1_old_apagar .dpt-selected .csform .actions_top li{display:table-cell;vertical-align:middle;border-left:1px solid #ccc}.cp.cpe1_old_apagar .dpt-selected .csform .actions_bottom{top:auto;left:0;bottom:0;display:inline-block;border-top:1px solid #ccc}.cp.cpe1_old_apagar .dpt-selected .csform .actions_bottom a{padding:0 .4em}.cp.cpe1_old_apagar .dpt-selected .csform .actions_bottom li{border:0;border-right:1px solid #ccc}.cp.cpe1_old_apagar .dpt-selected .csform .actions_left,.cp.cpe1_old_apagar .dpt-selected .csform .actions_right{top:2.2em;right:0;bottom:0;display:block}.cp.cpe1_old_apagar .dpt-selected .csform .actions_left li,.cp.cpe1_old_apagar .dpt-selected .csform .actions_right li{width:2.2em;display:block;border-bottom:1px solid #ccc}.cp.cpe1_old_apagar .dpt-selected .csform .actions_left li:first-child,.cp.cpe1_old_apagar .dpt-selected .csform .actions_right li:first-child{border-top:1px solid #ccc}.cp.cpe1_old_apagar .dpt-selected .csform .actions_left{right:auto;left:0}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts{background:transparent;position:relative;z-index:19;display:table;width:100%}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li{display:table-cell}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li:hover>a{background-image:-webkit-gradient(linear,left top,left bottom,from(#1c81c4),to(#0b6dad));background-image:linear-gradient(180deg,#1c81c4,#0b6dad)}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a{background-image:-webkit-gradient(linear,left top,left bottom,from(#3498db),to(#2980c9));background-image:linear-gradient(180deg,#3498db,#2980c9);border-right:1px solid #fff;padding:.2em;display:block;color:#fff;text-align:center;white-space:nowrap}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a.btn-excluir,.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a.btn-salvar{text-align:left;background:#a70808;color:#c99;padding-left:1.7em;position:relative}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a.btn-excluir:hover,.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a.btn-salvar:hover{background-color:#c70808;color:#ecc}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a.btn-excluir:before,.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a.btn-salvar:before{z-index:20;position:absolute;background:url(/static/img/icon_delete_white.png) no-repeat 50% 50%;content:"";top:0;left:0;display:block;color:#000;margin-left:.4em;height:100%;width:2em}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a.btn-salvar{background:#1f8b4d;color:#fff}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a.btn-salvar:hover{background:#2d9c5c;color:#fff}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a.btn-salvar:before{background:url(/static/img/icon_save_white.png) no-repeat 50% 50%}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a span{padding:0 .7em}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li:last-child>a{border-right:0 solid #fff}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>ul li:nth-child(2n) a{background:#3385ca}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>ul li a{border-right:1px solid #fff;display:block;color:#fff;background:#2980c9;font-size:80%;padding:.23em 1em}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>ul li a:hover{background:#0a5ea4}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.add_prior{table-layout:fixed}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.add_prior>ul{-webkit-transform:translateY(30px);transform:translateY(30px);-webkit-transition:opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;transition:opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;transition:transform .1s linear,opacity .1s linear,clip 0s .3s;transition:transform .1s linear,opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;clip:rect(0,0,0,0);opacity:0;position:absolute;margin-left:.5em;-webkit-box-shadow:0 6px 18px rgba(0,0,0,.19),0 2px 6px rgba(0,0,0,.23);box-shadow:0 6px 18px rgba(0,0,0,.19),0 2px 6px rgba(0,0,0,.23);-webkit-transition-delay:.4s;transition-delay:.4s}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.add_prior>ul li a{border-right:0!important}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.add_prior>ul li:first-child:before{border-width:.375rem;border-style:inset inset solid;content:"";display:block;height:0;width:0;border-color:transparent transparent #3385ca;position:absolute;top:-.71rem;left:.9375rem}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.add_prior>ul li:first-child:hover:before{border-color:transparent transparent #0a5ea4}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.add_prior>ul:after{content:"";position:absolute;z-index:-1;left:0;top:-25px;height:25px;width:100%;-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.add_prior:hover>ul{-webkit-transform:translateY(7px);transform:translateY(7px);-webkit-transition:opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;transition:opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;transition:transform .4s linear,opacity .4s linear,clip 0s .2s;transition:transform .4s linear,opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;opacity:1;clip:rect(-100px,2000px,2000px,-100px)}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir{display:block;position:static}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir>ul{-webkit-transform:translateY(30px);transform:translateY(30px);-webkit-transition:opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;transition:opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;transition:transform .1s linear,opacity .1s linear,clip 0s .3s;transition:transform .1s linear,opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;clip:rect(0,0,0,0);opacity:0;position:absolute;margin-left:.5em;-webkit-box-shadow:0 6px 18px rgba(0,0,0,.19),0 2px 6px rgba(0,0,0,.23);box-shadow:0 6px 18px rgba(0,0,0,.19),0 2px 6px rgba(0,0,0,.23);-webkit-transition-delay:.4s;transition-delay:.4s}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir>ul li a{border-right:0!important}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir>ul li:first-child:before{border-width:.375rem;border-style:inset inset solid;content:"";display:block;height:0;width:0;border-color:transparent transparent #3385ca;position:absolute;top:-.71rem;left:.9375rem}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir>ul li:first-child:hover:before{border-color:transparent transparent #0a5ea4}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir>ul:after{content:"";position:absolute;z-index:-1;left:0;top:-25px;height:25px;width:100%;-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir:hover>ul{-webkit-transform:translateY(7px);transform:translateY(7px);-webkit-transition:opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;transition:opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;transition:transform .4s linear,opacity .4s linear,clip 0s .2s;transition:transform .4s linear,opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;opacity:1;clip:rect(-100px,2000px,2000px,-100px)}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir>ul{right:.5em}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir>ul li a{background-color:#a70808}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir>ul li a:hover{background:#c70808}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir>ul li:first-child:before{border-color:transparent transparent #a70808;right:10%;left:auto}.cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li.menu_excluir>ul li:first-child:hover:before{border-color:transparent transparent #c70808}.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante,.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante_fixo{z-index:2000}.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante>li>ul,.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante_fixo>li>ul{-webkit-transform:translateY(30px);transform:translateY(30px);-webkit-transition:opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;transition:opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;transition:transform .1s linear,opacity .1s linear,clip 0s .3s;transition:transform .1s linear,opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;clip:rect(0,0,0,0);opacity:0;position:absolute;margin-left:.5em;-webkit-box-shadow:0 6px 18px rgba(0,0,0,.19),0 2px 6px rgba(0,0,0,.23);box-shadow:0 6px 18px rgba(0,0,0,.19),0 2px 6px rgba(0,0,0,.23);-webkit-transition-delay:.4s;transition-delay:.4s}.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante>li>ul li a,.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante_fixo>li>ul li a{border-right:0!important}.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante>li>ul li:first-child:before,.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante_fixo>li>ul li:first-child:before{border-width:.375rem;border-style:inset inset solid;content:"";display:block;height:0;width:0;border-color:transparent transparent #3385ca;position:absolute;top:-.71rem;left:.9375rem}.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante>li>ul li:first-child:hover:before,.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante_fixo>li>ul li:first-child:hover:before{border-color:transparent transparent #0a5ea4}.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante>li>ul:after,.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante_fixo>li>ul:after{content:"";position:absolute;z-index:-1;left:0;top:-25px;height:25px;width:100%;-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante>li:hover>ul,.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante_fixo>li:hover>ul{-webkit-transform:translateY(7px);transform:translateY(7px);-webkit-transition:opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;transition:opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;transition:transform .4s linear,opacity .4s linear,clip 0s .2s;transition:transform .4s linear,opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;opacity:1;clip:rect(-100px,2000px,2000px,-100px)}.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante>li.menu_excluir>ul li:first-child:before,.cp.cpe1_old_apagar .dpt-selected .csform .menu_flutuante_fixo>li.menu_excluir>ul li:first-child:before{right:auto;left:.9375rem}.cp.cpe1_old_apagar .dpt-selected .csform textarea{margin:0;resize:vertical;min-height:12.6em;border:0;font-size:120%;width:100%}.cp.cpe1_old_apagar .dpt-selected .csform textarea:focus{background:#fff}.cp.cpe1_old_apagar .dpt-selected .csform textarea::-webkit-input-placeholder{color:#c70808;opacity:.6;font-size:80%}.cp.cpe1_old_apagar .dpt-selected .csform textarea:-moz-placeholder,.cp.cpe1_old_apagar .dpt-selected .csform textarea::-moz-placeholder{color:#c70808}.cp.cpe1_old_apagar .dpt-selected .csform textarea:-ms-input-placeholder{color:#c70808;opacity:.6}.cp.cpe1_old_apagar .selected{background-color:hsla(0,0%,100%,.5)}.cp.cpe1_old_apagar .selected a:hover{color:#16407c!important;font-weight:400!important}.lista-dispositivo,.result-busca-dispositivo{padding:0 0 1em;min-height:3em}.lista-dispositivo ul,.result-busca-dispositivo ul{list-style:none;margin:0;padding:1em 0 0;-webkit-transition:all 2s linear;transition:all 2s linear;clear:both;position:relative}.lista-dispositivo ul li,.result-busca-dispositivo ul li{display:table;border-collapse:separate;border-bottom:1px solid #fff;width:100%}.lista-dispositivo ul li.ta_title,.result-busca-dispositivo ul li.ta_title{background-color:rgba(0,0,0,.15);width:100%}.lista-dispositivo ul li:last-child .itemlabel,.result-busca-dispositivo ul li:last-child .itemlabel{margin:0}.lista-dispositivo ul li .iteminput,.result-busca-dispositivo ul li .iteminput{background-color:rgba(0,0,0,.1);border-right:1px solid #fff;display:table-cell;padding:.5em;vertical-align:middle;text-align:center;position:relative}.lista-dispositivo ul li .iteminput input,.result-busca-dispositivo ul li .iteminput input{margin:0}.lista-dispositivo ul li .iteminput .flag,.result-busca-dispositivo ul li .iteminput .flag{position:absolute;top:0;left:0;right:0;line-height:1;background-color:#ccc;color:#fff;cursor:default;font-size:80%}.lista-dispositivo ul li .itemlabel,.result-busca-dispositivo ul li .itemlabel{margin:0;background-color:rgba(0,0,0,.1);display:table-cell;padding:.5em;vertical-align:middle;width:100%}.lista-dispositivo ul li .itemlabel .artigo,.result-busca-dispositivo ul li .itemlabel .artigo{float:none}.lista-dispositivo .label-tip-results,.result-busca-dispositivo .label-tip-results{background-color:rgba(0,0,0,.1);padding:0 5px;top:0;z-index:1;line-height:1.3;color:#00f;font-size:.9em}.lista-dispositivo .nomenclatura_heranca,.result-busca-dispositivo .nomenclatura_heranca{font-size:90%;color:#057dba;display:inline}.lista-dispositivo.controls-radio-checkbox{border:0}.label_vigencia{border-top:1px solid #fff;display:inline-block;color:#555}.label_vigencia span{color:grey}.cp-nav-parents .dropdown-menu{left:0;right:auto;padding:0}.cp-nav-parents .dropdown-menu:before{content:"";position:absolute;top:-11px;width:100%;height:11px}.cp-nav-parents:hover .dropdown-menu{display:block}.cp-nav-parents a.active small{color:#fff!important}.table-notificacoes tbody tr td{border-top:1px solid #fff;padding:5px;vertical-align:middle}.table-notificacoes tbody tr td ul{margin:0}.table-notificacoes tbody tr td ul li:hover{background-color:rgba(0,0,0,.1)}.btn-modal-open{float:right}.modal .modal-content .alert:only-child{margin:0}.class_color_container{background:#ddd!important}.clear{clear:both}.mce-tinymce.mce-container{border:1px solid #ccc!important;margin-right:2px}.mce-btn button:hover{background-color:rgba(0,0,0,.1)!important;text-shadow:0 0 5px #fff;-webkit-box-shadow:0 0 5px #777;box-shadow:0 0 5px #777}.mce-menu{background:#eee!important}.displaynone{display:none!important}@media only screen and (max-width:991.98px){.cp .table,.cp table{width:auto!important;white-space:normal;overflow-x:auto!important}}@media only screen and (max-width:800px){.cp .fixed{z-index:98;position:relative}.cp.cpe1 .dpt-selected{margin:1em 0}.cp.cpe1 .dpt-selected .csform .actions_parents,.cp.cpe1 .dpt-selected .csform .label_status{font-size:80%;position:static!important;display:block!important;padding:0;height:auto!important;left:0;right:auto;text-align:left}.cp.cpe1 .dpt-selected .csform .actions_parents div,.cp.cpe1 .dpt-selected .csform .actions_parents li,.cp.cpe1 .dpt-selected .csform .label_status div,.cp.cpe1 .dpt-selected .csform .label_status li{display:inline-block!important}.cp.cpe1 .dpt-selected .csform .actions_inserts>li>ul{-webkit-transform:translateY(30px);transform:translateY(30px);-webkit-transition:opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;transition:opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;transition:transform .1s linear,opacity .1s linear,clip 0s .3s;transition:transform .1s linear,opacity .1s linear,clip 0s .3s,-webkit-transform .1s linear;clip:rect(0,0,0,0);opacity:0;position:absolute;margin-left:.5em;-webkit-box-shadow:0 6px 18px rgba(0,0,0,.19),0 2px 6px rgba(0,0,0,.23);box-shadow:0 6px 18px rgba(0,0,0,.19),0 2px 6px rgba(0,0,0,.23);-webkit-transition-delay:.4s;transition-delay:.4s}.cp.cpe1 .dpt-selected .csform .actions_inserts>li>ul li a{border-right:0!important}.cp.cpe1 .dpt-selected .csform .actions_inserts>li>ul li:first-child:before{border-width:.375rem;border-style:inset inset solid;content:"";display:block;height:0;width:0;border-color:transparent transparent #3385ca;position:absolute;top:-.71rem;left:.9375rem}.cp.cpe1 .dpt-selected .csform .actions_inserts>li>ul li:first-child:hover:before{border-color:transparent transparent #0a5ea4}.cp.cpe1 .dpt-selected .csform .actions_inserts>li>ul:after{content:"";position:absolute;z-index:-1;left:0;top:-25px;height:25px;width:100%;-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.cp.cpe1 .dpt-selected .csform .actions_inserts>li:hover>ul{-webkit-transform:translateY(7px);transform:translateY(7px);-webkit-transition:opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;transition:opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;transition:transform .4s linear,opacity .4s linear,clip 0s .2s;transition:transform .4s linear,opacity .4s linear,clip 0s .2s,-webkit-transform .4s linear;opacity:1;clip:rect(-100px,2000px,2000px,-100px)}.cp.cpe1 .dpt-selected .csform .actions_inserts>li>a span{display:none}.cp.cpe1 .cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a.btn-salvar,.cp.cpe1 .dpt-selected .csform .actions_inserts>li>a.btn-excluir,.cp.cpe1 .dpt-selected .csform .actions_inserts>li>a.btn-salvar,.cp.cpe1_old_apagar .cp.cpe1 .dpt-selected .csform .actions_inserts>li>a.btn-salvar{padding-left:0;min-width:1em}.cp.cpe1 .cp.cpe1_old_apagar .dpt-selected .csform .actions_inserts>li>a.btn-salvar:before,.cp.cpe1 .dpt-selected .csform .actions_inserts>li>a.btn-excluir:before,.cp.cpe1 .dpt-selected .csform .actions_inserts>li>a.btn-salvar:before,.cp.cpe1_old_apagar .cp.cpe1 .dpt-selected .csform .actions_inserts>li>a.btn-salvar:before{width:100%;margin:0}.cp.cpe1 .dpt-selected .csform .actions_inserts>li.add_in,.cp.cpe1 .dpt-selected .csform .actions_inserts>li.add_next,.cp.cpe1 .dpt-selected .csform .actions_inserts>li.add_prior{position:static}.cp.cpe1 .dpt-selected .csform .actions_inserts>li.add_in>ul{left:1em!important;right:1em!important;margin-left:0}.cp.cpe1 .dpt-selected .csform .actions_inserts>li.add_in>ul li:first-child:before{left:37%}.cp.cpe1 .dpt-selected .csform .actions_inserts>li.add_next>ul{left:0!important;right:1em!important}.cp.cpe1 .dpt-selected .csform .actions_inserts>li.add_prior>ul{left:1em!important;right:0!important;margin-left:0;margin-right:.5em}.cp.cpe1 .dpt-selected .csform .actions_inserts>li.add_prior>ul li:first-child:before{right:42%;left:auto}.cp.cpe1 .dpt-selected .csform .actions_inserts>li.menu_excluir>ul{left:10%!important;right:0!important;margin-left:0;margin-right:.5em}.cp.cpe1 .dpt-selected .csform .actions_inserts>li.menu_excluir>ul li:first-child:before{right:0;left:auto}}@media only screen and (max-width:575.98px){.cp .cp-linha-vigencias>li{height:1px}.cp .cp-linha-vigencias>li .circle{width:8px;height:8px;margin:-4px auto 0}.cp .cp-linha-vigencias>li>a{font-size:.75rem}.cp .cp-linha-vigencias>li:nth-child(2n)>a{margin-top:4px}.cp .cp-linha-vigencias>li:nth-child(odd)>a{margin-bottom:4px}.cp .cp-linha-vigencias>li ul a{line-height:1.3rem;font-size:.7rem;background:#fff}.cp .cp-linha-vigencias>li.active .circle{width:14px;height:14px;margin:-7px auto 0}.cp .cp-linha-vigencias>li.active:not(:last-child)>a{margin-bottom:15px}.cp .cp-linha-vigencias>li.active:first-child>a,.cp .cp-linha-vigencias>li.active:last-child>a{margin-bottom:10px}}@media print{.button,.cp-linha-vigencias,.cp .vigencias,.dne,.menu-icon,.tipo-vigencias,.toggle-topbar{display:none!important}#btn_font_mais,#btn_font_menos,#btn_impressao{display:none}.container{width:100%}} \ No newline at end of file diff --git a/sapl/static/sapl/frontend/css/compilacao.90ba9ac3.css.gz b/sapl/static/sapl/frontend/css/compilacao.90ba9ac3.css.gz new file mode 100644 index 000000000..8d6ef9763 Binary files /dev/null and b/sapl/static/sapl/frontend/css/compilacao.90ba9ac3.css.gz differ diff --git a/sapl/static/sapl/frontend/js/chunk-vendors.87c63f86.js.LICENSE.txt.gz b/sapl/static/sapl/frontend/js/chunk-vendors.87c63f86.js.LICENSE.txt.gz deleted file mode 100644 index 05bf65f4e..000000000 Binary files a/sapl/static/sapl/frontend/js/chunk-vendors.87c63f86.js.LICENSE.txt.gz and /dev/null differ diff --git a/sapl/static/sapl/frontend/js/chunk-vendors.87c63f86.js.gz b/sapl/static/sapl/frontend/js/chunk-vendors.87c63f86.js.gz deleted file mode 100644 index e4882c119..000000000 Binary files a/sapl/static/sapl/frontend/js/chunk-vendors.87c63f86.js.gz and /dev/null differ diff --git a/sapl/static/sapl/frontend/js/chunk-vendors.87c63f86.js.map.gz b/sapl/static/sapl/frontend/js/chunk-vendors.87c63f86.js.map.gz deleted file mode 100644 index 8475ca587..000000000 Binary files a/sapl/static/sapl/frontend/js/chunk-vendors.87c63f86.js.map.gz and /dev/null differ diff --git a/sapl/static/sapl/frontend/js/chunk-vendors.87c63f86.js b/sapl/static/sapl/frontend/js/chunk-vendors.8a6bb3dd.js similarity index 66% rename from sapl/static/sapl/frontend/js/chunk-vendors.87c63f86.js rename to sapl/static/sapl/frontend/js/chunk-vendors.8a6bb3dd.js index b3e4b9553..dff7dd494 100644 --- a/sapl/static/sapl/frontend/js/chunk-vendors.87c63f86.js +++ b/sapl/static/sapl/frontend/js/chunk-vendors.8a6bb3dd.js @@ -1,3 +1,3 @@ -/*! For license information please see chunk-vendors.87c63f86.js.LICENSE.txt */ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"030f":function(t,e,n){(function(t){(function(){"use strict";var e=function(){},n=function(t){return function(){return t()}},r=function(t,e){return function(){for(var n=[],r=0;r-1},V=function(t,e){for(var n=0,r=t.length;n=0;n--){var r=t[n];e(r,n)}},G=function(t,e){for(var n=[],r=[],o=0,i=t.length;o=0&&e0?de(n.errors):fe(n.values,e)},pe=function(t,e){return t.length>0?Ot.svalue(Gt(e,Kt.apply(void 0,t))):Ot.svalue(e)},me=function(t){return r(Ot.serror,et)(t)},ge=function(t,e){var n=Ot.partition(t);return n.errors.length>0?me(n.errors):pe(n.values,e)},ve=function(t){var e=Ot.partition(t);return e.errors.length>0?me(e.errors):Ot.svalue(e.values)},be={consolidateObj:ge,consolidateArr:ve},ye=function(t){return O(t)&&Dt(t).length>100?" removed due to size":JSON.stringify(t,null,2)},we=function(t){var e=t.length>10?t.slice(0,10).concat([{path:[],getErrorInfo:function(){return"... (only showing first ten failures)"}}]):t;return $(e,(function(t){return"Failed path: ("+t.path.join(" > ")+")\n"+t.getErrorInfo()}))},_e=function(t,e){return Ot.serror([{path:t,getErrorInfo:e}])},xe=function(t,e,n){return _e(t,(function(){return'Could not find valid *strict* value for "'+e+'" in '+ye(n)}))},Ce=function(t,e){return _e(t,(function(){return'Choice schema did not contain choice key: "'+e+'"'}))},ke=function(t,e,n){return _e(t,(function(){return'The chosen schema: "'+n+'" did not exist in branches: '+ye(e)}))},Se=function(t,e){return _e(t,(function(){return"There are unsupported fields: ["+e.join(", ")+"] specified"}))},Te=function(t,e){return _e(t,(function(){return e}))},Oe=Wt.generate([{field:["key","okey","presence","prop"]},{state:["okey","instantiator"]}]),De=function(t,e,n){return Ht(e,n).fold((function(){return xe(t,n,e)}),Ot.svalue)},Ee=function(t,e,n){var r=Ht(t,e).fold((function(){return n(t)}),a);return Ot.svalue(r)},Ae=function(t,e){return Ot.svalue(Ht(t,e))},Me=function(t,e,n){var r=Ht(t,e).map((function(e){return!0===e?n(t):e}));return Ot.svalue(r)},Ne=function(t,e,n,r){return n.fold((function(n,o,a,u){var s=function(e){var i=u.extract(t.concat([n]),r,e);return Ot.map(i,(function(t){return ae(o,r(t))}))},c=function(e){return e.fold((function(){var t=ae(o,r(_.none()));return Ot.svalue(t)}),(function(e){var i=u.extract(t.concat([n]),r,e);return Ot.map(i,(function(t){return ae(o,r(_.some(t)))}))}))};return function(){return a.fold((function(){return Ot.bind(De(t,e,n),s)}),(function(t){return Ot.bind(Ee(e,n,t),s)}),(function(){return Ot.bind(Ae(e,n),c)}),(function(t){return Ot.bind(Me(e,n,t),c)}),(function(t){var r=t(e),o=Ot.map(Ee(e,n,i({})),(function(t){return Gt(r,t)}));return Ot.bind(o,s)}))}()}),(function(t,n){var o=n(e);return Ot.svalue(ae(t,r(o)))}))},Re=function(t,e,n,r){var o=$(n,(function(n){return Ne(t,e,n,r)}));return be.consolidateObj(o,{})},Pe=function(t){var e=function(e,n,r){return t().extract(e,n,r)},n=function(){return t().toString()};return{extract:e,toString:n}},ze=function(t){var e=function(e,n,r){return Ot.bindError(t(r,n),(function(t){return Te(e,t)}))},n=function(){return"val"};return{extract:e,toString:n}},Ie=function(t){return Dt(zt(t,(function(t){return void 0!==t&&null!==t})))},Le=function(t){var e=Be(t),n=X(t,(function(t,e){return e.fold((function(e){return Gt(t,ce(e,!0))}),i(t))}),{}),r=function(t,r,o){var i=E(o)?[]:Ie(o),a=K(i,(function(t){return!jt(n,t)}));return 0===a.length?e.extract(t,r,o):Se(t,a)};return{extract:r,toString:e.toString}},Be=function(t){var e=function(e,n,r){return Re(e,r,t,n)},n=function(){var e=$(t,(function(t){return t.fold((function(t,e,n,r){return t+" -> "+r.toString()}),(function(t,e){return"state("+t+")"}))}));return"obj{\n"+e.join("\n")+"}"};return{extract:e,toString:n}},He=function(t){var e=function(e,n,r){var o=$(r,(function(r,o){return t.extract(e.concat(["["+o+"]"]),n,r)}));return be.consolidateArr(o)},n=function(){return"array("+t.toString()+")"};return{extract:e,toString:n}},Fe=function(t){var e=function(e,n,r){for(var o=[],i=0,a=t;i1)throw new Error("HTML must have a single root node");return Zn(r.childNodes[0])},Jn=function(t,e){var n=e||document,r=n.createElement(t);return Zn(r)},Qn=function(t,e){var n=e||document,r=n.createTextNode(t);return Zn(r)},Zn=function(t){if(null===t||void 0===t)throw new Error("Node cannot be null or undefined");return{dom:t}},tr=function(t,e,n){return _.from(t.dom.elementFromPoint(e,n)).map(Zn)},er={fromHtml:Xn,fromTag:Jn,fromText:Qn,fromDom:Zn,fromPoint:tr},nr=function(t,e,n,r){var o=t.isiOS()&&!0===/ipad/i.test(n),a=t.isiOS()&&!o,u=t.isiOS()||t.isAndroid(),s=u||r("(pointer:coarse)"),c=o||!a&&u&&r("(min-device-width:768px)"),l=a||u&&!c,f=e.isSafari()&&t.isiOS()&&!1===/safari/i.test(n),d=!l&&!c&&!f;return{isiPad:i(o),isiPhone:i(a),isTablet:i(c),isPhone:i(l),isTouch:i(s),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:i(f),isDesktop:i(d)}},rr=function(t,e){for(var n=0;n=e.length&&t.substr(n,n+e.length)===e},pr=function(t,e){return-1!==t.indexOf(e)},mr=function(t,e){return hr(t,e,t.length-e.length)},gr=function(t){return function(e){return e.replace(t,"")}},vr=gr(/^\s+|\s+$/g),br=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,yr=function(t){return function(e){return pr(e,t)}},wr=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(t){return pr(t,"edge/")&&pr(t,"chrome")&&pr(t,"safari")&&pr(t,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,br],search:function(t){return pr(t,"chrome")&&!pr(t,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(t){return pr(t,"msie")||pr(t,"trident")}},{name:"Opera",versionRegexes:[br,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:yr("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:yr("firefox")},{name:"Safari",versionRegexes:[br,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(t){return(pr(t,"safari")||pr(t,"mobile/"))&&pr(t,"applewebkit")}}],_r=[{name:"Windows",search:yr("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(t){return pr(t,"iphone")||pr(t,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:yr("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:yr("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:yr("linux"),versionRegexes:[]},{name:"Solaris",search:yr("sunos"),versionRegexes:[]},{name:"FreeBSD",search:yr("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:yr("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],xr={browsers:i(wr),oses:i(_r)},Cr="Edge",kr="Chrome",Sr="IE",Tr="Opera",Or="Firefox",Dr="Safari",Er=function(){return Ar({current:void 0,version:sr.unknown()})},Ar=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isEdge:r(Cr),isChrome:r(kr),isIE:r(Sr),isOpera:r(Tr),isFirefox:r(Or),isSafari:r(Dr)}},Mr={unknown:Er,nu:Ar,edge:i(Cr),chrome:i(kr),ie:i(Sr),opera:i(Tr),firefox:i(Or),safari:i(Dr)},Nr="Windows",Rr="iOS",Pr="Android",zr="Linux",Ir="OSX",Lr="Solaris",Br="FreeBSD",Hr="ChromeOS",Fr=function(){return jr({current:void 0,version:sr.unknown()})},jr=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isWindows:r(Nr),isiOS:r(Rr),isAndroid:r(Pr),isOSX:r(Ir),isLinux:r(zr),isSolaris:r(Lr),isFreeBSD:r(Br),isChromeOS:r(Hr)}},Vr={unknown:Fr,nu:jr,windows:i(Nr),ios:i(Rr),android:i(Pr),linux:i(zr),osx:i(Ir),solaris:i(Lr),freebsd:i(Br),chromeos:i(Hr)},Wr=function(t,e){var n=xr.browsers(),r=xr.oses(),o=dr.detectBrowser(n,t).fold(Mr.unknown,Mr.nu),i=dr.detectOs(r,t).fold(Vr.unknown,Vr.nu),a=nr(i,o,t,e);return{browser:o,os:i,deviceType:a}},Ur={detect:Wr},$r=function(t){return window.matchMedia(t).matches},Yr=Xt((function(){return Ur.detect(navigator.userAgent,$r)})),qr=function(){return Yr()},Gr=function(t,e,n){return 0!==(t.compareDocumentPosition(e)&n)},Kr=function(t,e){return Gr(t,e,Node.DOCUMENT_POSITION_CONTAINED_BY)},Xr=9,Jr=11,Qr=1,Zr=3,to=function(t,e){var n=t.dom;if(n.nodeType!==Qr)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")},eo=function(t){return t.nodeType!==Qr&&t.nodeType!==Xr&&t.nodeType!==Jr||0===t.childElementCount},no=function(t,e){var n=void 0===e?document:e.dom;return eo(n)?[]:$(n.querySelectorAll(t),er.fromDom)},ro=function(t,e){var n=void 0===e?document:e.dom;return eo(n)?_.none():_.from(n.querySelector(t)).map(er.fromDom)},oo=function(t,e){return t.dom===e.dom},io=function(t,e){var n=t.dom,r=e.dom;return n!==r&&n.contains(r)},ao=function(t,e){return Kr(t.dom,e.dom)},uo=function(t,e){return qr().browser.isIE()?ao(t,e):io(t,e)},so=function(t){return R(t)?t:l},co=function(t,e,n){var r=t.dom,o=so(n);while(r.parentNode){r=r.parentNode;var i=er.fromDom(r),a=e(i);if(a.isSome())return a;if(o(i))break}return _.none()},lo=function(t,e,n){var r=e(t),o=so(n);return r.orThunk((function(){return o(t)?_.none():co(t,e,o)}))},fo=function(t,e){return oo(t.element,e.event.target)},ho=function(t){if(!jt(t,"can")&&!jt(t,"abort")&&!jt(t,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(t,null,2)+" does not have can, abort, or run!");return on("Extracting event.handler",Le([Bn("can",f),Bn("abort",l),Bn("run",e)]),t)},po=function(t,e){return function(){for(var n=[],r=0;r0&&ra(t,e),aa(t)},sa=function(t,e){var n=e||document,r=n.createElement("div");return r.innerHTML=t,Ki(er.fromDom(r))},ca=function(t){return t.dom.innerHTML},la=function(t,e){var n=ji(t),r=n.dom,o=er.fromDom(r.createDocumentFragment()),i=sa(e,r);oa(o,i),ia(t),ea(t,o)},fa=function(t){var e=er.fromTag("div"),n=er.fromDom(t.dom.cloneNode(!0));return ea(e,n),ca(e)},da=function(t,e,n){if(!(T(n)||E(n)||P(n)))throw new Error("Attribute value was not simple");t.setAttribute(e,n+"")},ha=function(t,e,n){da(t.dom,e,n)},pa=function(t,e){var n=t.dom;At(e,(function(t,e){da(n,e,t)}))},ma=function(t,e){var n=t.dom.getAttribute(e);return null===n?void 0:n},ga=function(t,e){return _.from(ma(t,e))},va=function(t,e){var n=t.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(e)},ba=function(t,e){t.dom.removeAttribute(e)},ya=function(t,e){return er.fromDom(t.dom.cloneNode(e))},wa=function(t){return ya(t,!1)},_a=function(t){var e=wa(t);return fa(e)},xa=function(t){return _a(t)},Ca=function(t,e,n){return oo(e,t.element)&&!oo(e,n)},ka=gi([bi(Ho(),(function(t,e){var n=e.event,r=n.originator,o=n.target;return!Ca(t,r,o)}))]),Sa=Object.freeze({__proto__:null,events:ka}),Ta=0,Oa=function(t){var e=new Date,n=e.getTime(),r=Math.floor(1e9*Math.random());return Ta++,t+"_"+r+Ta+String(n)},Da=i("alloy-id-"),Ea=i("data-alloy-id"),Aa=Da(),Ma=Ea(),Na=function(t,e){var n=Oa(Aa+t);return Ra(e,n),n},Ra=function(t,e){Object.defineProperty(t.dom,Ma,{value:e,writable:!0})},Pa=function(t){var e=Li(t)?t.dom[Ma]:null;return _.from(e)},za=function(t){return Oa(t)},Ia=a,La=function(t){var e=function(e){return function(){throw new Error("The component must be in a context to send: "+e+(t?"\n"+xa(t().element)+" is not in context.":""))}};return{debugInfo:i("fake"),triggerEvent:e("triggerEvent"),triggerFocus:e("triggerFocus"),triggerEscape:e("triggerEscape"),build:e("build"),addToWorld:e("addToWorld"),removeFromWorld:e("removeFromWorld"),addToGui:e("addToGui"),removeFromGui:e("removeFromGui"),getByUid:e("getByUid"),getByDom:e("getByDom"),broadcast:e("broadcast"),broadcastOn:e("broadcastOn"),broadcastEvent:e("broadcastEvent"),isConnected:l}},Ba=La(),Ha=function(t,e,n){var r=n.toString(),o=r.indexOf(")")+1,i=r.indexOf("("),a=r.substring(i+1,o-1).split(/,\s*/);return t.toFunctionAnnotation=function(){return{name:e,parameters:Fa(a.slice(0,1).concat(a.slice(3)))}},t},Fa=function(t){return $(t,(function(t){return mr(t,"/*")?t.substring(0,t.length-"/*".length):t}))},ja=function(t,e){var n=t.toString(),r=n.indexOf(")")+1,o=n.indexOf("("),i=n.substring(o+1,r-1).split(/,\s*/);return t.toFunctionAnnotation=function(){return{name:e,parameters:Fa(i)}},t},Va=function(t,e){var n=e.toString(),r=n.indexOf(")")+1,o=n.indexOf("("),i=n.substring(o+1,r-1).split(/,\s*/);return t.toFunctionAnnotation=function(){return{name:"OVERRIDE",parameters:Fa(i.slice(1))}},t},Wa=Oa("alloy-premade"),Ua=function(t){return ce(Wa,t)},$a=function(t){return Ht(t,Wa)},Ya=function(t){return Va((function(e){for(var n=[],r=1;r1?K(e[n],(function(e){return V(t,(function(t){return t.name===e}))})).join(" > "):t[0].name;return ce(n,ru(o,i))}))}));return he(n,{})},mu="alloy.base.behaviour",gu=function(t){var e;return nn("custom.definition",Be([Ye("dom","dom",te(),Be([yn("tag"),Bn("styles",{}),Bn("classes",[]),Bn("attributes",{}),An("value"),An("innerHtml")])),yn("components"),yn("uid"),Bn("events",{}),Bn("apis",{}),Ye("eventOrder","eventOrder",Zt((e={},e[Wo()]=["disabling",mu,"toggling","typeaheadevents"],e[Ho()]=[mu,"focusing","keying"],e[Ko()]=[mu,"disabling","toggling","representing"],e[No()]=[mu,"representing","streaming","invalidating"],e[ei()]=[mu,"representing","item-events","tooltipping"],e[Co()]=["focusing",mu,"item-type-events"],e[yo()]=["focusing",mu,"item-type-events"],e[Oo()]=["item-type-events","tooltipping"],e[Vo()]=["receiving","reflecting","tooltipping"],e)),ln()),An("domModification")]),t)},vu=function(t){return h(h({},t.dom),{uid:t.uid,domChildren:$(t.components,(function(t){return t.element}))})},bu=function(t){return t.domModification.fold((function(){return Za({})}),Za)},yu=function(t){return t.events},wu=function(t,e){var n=ma(t,e);return void 0===n||""===n?[]:n.split(" ")},_u=function(t,e,n){var r=wu(t,e),o=r.concat([n]);return ha(t,e,o.join(" ")),!0},xu=function(t,e,n){var r=K(wu(t,e),(function(t){return t!==n}));return r.length>0?ha(t,e,r.join(" ")):ba(t,e),!1},Cu=function(t){return void 0!==t.dom.classList},ku=function(t){return wu(t,"class")},Su=function(t,e){return _u(t,"class",e)},Tu=function(t,e){return xu(t,"class",e)},Ou=function(t,e){Cu(t)?t.dom.classList.add(e):Su(t,e)},Du=function(t){var e=Cu(t)?t.dom.classList:ku(t);0===e.length&&ba(t,"class")},Eu=function(t,e){if(Cu(t)){var n=t.dom.classList;n.remove(e)}else Tu(t,e);Du(t)},Au=function(t,e){return Cu(t)&&t.dom.classList.contains(e)},Mu=function(t,e){Y(e,(function(e){Ou(t,e)}))},Nu=function(t,e){Y(e,(function(e){Eu(t,e)}))},Ru=function(t){return void 0!==t.style&&R(t.style.getPropertyValue)},Pu=function(t){return Fi(t)},zu=R(Element.prototype.attachShadow)&&R(Node.prototype.getRootNode),Iu=i(zu),Lu=zu?function(t){return er.fromDom(t.dom.getRootNode())}:Vi,Bu=function(t){return Pu(t)?t:er.fromDom(Vi(t).dom.body)},Hu=function(t){return Fu(t).isSome()},Fu=function(t){var e=Lu(t);return Pu(e)?_.some(e):_.none()},ju=function(t){return er.fromDom(t.dom.host)},Vu=function(t){if(Iu()&&N(t.target)){var e=er.fromDom(t.target);if(Li(e)&&Wu(e)&&t.composed&&t.composedPath){var n=t.composedPath();if(n)return ct(n)}}return _.from(t.target)},Wu=function(t){return N(t.dom.shadowRoot)},Uu=function(t){var e=Bi(t)?t.dom.parentNode:t.dom;if(void 0===e||null===e||null===e.ownerDocument)return!1;var n=e.ownerDocument;return Fu(er.fromDom(e)).fold((function(){return n.body.contains(e)}),o(Uu,ju))},$u=function(){return Yu(er.fromDom(document))},Yu=function(t){var e=t.dom.body;if(null===e||void 0===e)throw new Error("Body is not available yet");return er.fromDom(e)},qu=function(t,e,n){if(!T(n))throw new Error("CSS value must be a string: "+n);Ru(t)&&t.style.setProperty(e,n)},Gu=function(t,e){Ru(t)&&t.style.removeProperty(e)},Ku=function(t,e,n){var r=t.dom;qu(r,e,n)},Xu=function(t,e){var n=t.dom;At(e,(function(t,e){qu(n,e,t)}))},Ju=function(t,e){var n=t.dom;At(e,(function(t,e){t.fold((function(){Gu(n,e)}),(function(t){qu(n,e,t)}))}))},Qu=function(t,e){var n=t.dom,r=window.getComputedStyle(n),o=r.getPropertyValue(e);return""!==o||Uu(t)?o:Zu(n,e)},Zu=function(t,e){return Ru(t)?t.style.getPropertyValue(e):""},ts=function(t,e){var n=t.dom,r=Zu(n,e);return _.from(r).filter((function(t){return t.length>0}))},es=function(t){var e={},n=t.dom;if(Ru(n))for(var r=0;r0?eu(n,i,e,r):o;return tu(r,a)},ds=function(t,e,n){var r={"alloy.base.behaviour":yu(t)};return lu(n,t.eventOrder,e,r).getOrDie()},hs=function(t){var e=function(){return b},n=Kn(Ba),r=rn(gu(t)),o=ls(t),i=Xa(o),a=Ja(o),u=fs(r,i,a),s=us(u),c=ds(r,i,a),l=Kn(r.components),f=function(t){n.set(t)},d=function(){n.set(La(e))},h=function(){var t=Ki(s),e=nt(t,(function(t){return n.get().getByDom(t).fold((function(){return[]}),(function(t){return[t]}))}));l.set(e)},p=function(e){var n=a,r=R(n[e.name()])?n[e.name()]:function(){throw new Error("Could not find "+e.name()+" in "+JSON.stringify(t,null,2))};return r()},m=function(t){return R(a[t.name()])},g=function(){return r.apis},v=function(t){return a[t]().map((function(t){return t.state.readState()})).getOr("not enabled")},b={getSystem:n.get,config:p,hasConfigured:m,spec:t,readState:v,getApis:g,connect:f,disconnect:d,element:s,syncComponents:h,components:l.get,events:c};return b},ps=function(t){var e=Ht(t,"components").getOr([]);return $(e,ys)},ms=function(t){var e=Ia(t),n=e.events,r=p(e,["events"]),o=ps(r),i=h(h({},r),{events:h(h({},Sa),n),components:o});return gt.value(hs(i))},gs=function(t){var e=er.fromText(t);return vs({element:e})},vs=function(t){var n=on("external.component",Le([yn("element"),An("uid")]),t),r=Kn(La()),o=function(t){r.set(t)},a=function(){r.set(La((function(){return u})))};n.uid.each((function(t){Ra(n.element,t)}));var u={getSystem:r.get,config:_.none,hasConfigured:l,connect:o,disconnect:a,getApis:function(){return{}},element:n.element,spec:t,readState:i("No state"),syncComponents:e,components:i([]),events:{}};return Ua(u)},bs=za,ys=function(t){return $a(t).fold((function(){var e=t.hasOwnProperty("uid")?t:h({uid:bs("")},t);return ms(e).getOrDie()}),(function(t){return t}))},ws=Ua;function _s(t,e){var n=function(e,n){if(!P(n)&&!n.match(/^[0-9]+$/))throw new Error(t+".set accepts only positive integer values. Value was "+n);var r=e.dom;Ru(r)&&(r.style[t]=n+"px")},r=function(n){var r=e(n);if(r<=0||null===r){var o=Qu(n,t);return parseFloat(o)||0}return r},o=r,i=function(t,e){return J(e,(function(e,n){var r=Qu(t,n),o=void 0===r?0:parseInt(r,10);return isNaN(o)?e:e+o}),0)},a=function(t,e,n){var r=i(t,n),o=e>r?e-r:0;return o};return{set:n,get:r,getOuter:o,aggregate:i,max:a}}var xs=_s("height",(function(t){var e=t.dom;return Uu(t)?e.getBoundingClientRect().height:e.offsetHeight})),Cs=function(t){return xs.get(t)},ks=function(t){return xs.getOuter(t)},Ss=function(t,e){var n=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],r=xs.max(t,e,n);Ku(t,"max-height",r+"px")},Ts=function(t,e){var n=function(n,r){return Ts(t+n,e+r)};return{left:t,top:e,translate:n}},Os=Ts,Ds=function(t){var e=t.getBoundingClientRect();return Os(e.left,e.top)},Es=function(t,e){return void 0!==t?t:void 0!==e?e:0},As=function(t){var e=t.dom.ownerDocument,n=e.body,r=e.defaultView,o=e.documentElement;if(n===t.dom)return Os(n.offsetLeft,n.offsetTop);var i=Es(null===r||void 0===r?void 0:r.pageYOffset,o.scrollTop),a=Es(null===r||void 0===r?void 0:r.pageXOffset,o.scrollLeft),u=Es(o.clientTop,n.clientTop),s=Es(o.clientLeft,n.clientLeft);return Ms(t).translate(a-s,i-u)},Ms=function(t){var e=t.dom,n=e.ownerDocument,r=n.body;return r===e?Os(r.offsetLeft,r.offsetTop):Uu(t)?Ds(e):Os(0,0)},Ns=_s("width",(function(t){return t.dom.offsetWidth})),Rs=function(t,e){return Ns.set(t,e)},Ps=function(t){return Ns.get(t)},zs=function(t){return Ns.getOuter(t)},Is=function(t,e){var n=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],r=Ns.max(t,e,n);Ku(t,"max-width",r+"px")},Ls=function(t,e,n,r,o,i,a){return{target:t,x:e,y:n,stop:r,prevent:o,kill:i,raw:a}},Bs=function(t){var e=er.fromDom(Vu(t).getOr(t.target)),n=function(){return t.stopPropagation()},o=function(){return t.preventDefault()},i=r(o,n);return Ls(e,t.clientX,t.clientY,n,o,i,t)},Hs=function(t,e){return function(n){t(n)&&e(Bs(n))}},Fs=function(t,e,n,r,o){var i=Hs(n,r);return t.dom.addEventListener(e,i,o),{unbind:u(Ws,t,e,i,o)}},js=function(t,e,n,r){return Fs(t,e,n,r,!1)},Vs=function(t,e,n,r){return Fs(t,e,n,r,!0)},Ws=function(t,e,n,r){t.dom.removeEventListener(e,n,r)},Us=function(t){var e=void 0!==t?t.dom:document,n=e.body.scrollLeft||e.documentElement.scrollLeft,r=e.body.scrollTop||e.documentElement.scrollTop;return Os(n,r)},$s=function(t,e,n){var r=void 0!==n?n.dom:document,o=r.defaultView;o&&o.scrollTo(t,e)},Ys=function(t){var e=void 0===t?window:t;return _.from(e["visualViewport"])},qs=function(t,e,n,r){return{x:t,y:e,width:n,height:r,right:t+n,bottom:e+r}},Gs=function(t){var e=void 0===t?window:t,n=e.document,r=Us(er.fromDom(n));return Ys(e).fold((function(){var t=e.document.documentElement,n=t.clientWidth,o=t.clientHeight;return qs(r.left,r.top,n,o)}),(function(t){return qs(Math.max(t.pageLeft,r.left),Math.max(t.pageTop,r.top),t.width,t.height)}))},Ks=function(t,e){var n=t.view(e);return n.fold(i([]),(function(e){var n=t.owner(e),r=Ks(t,n);return[e].concat(r)}))},Xs=function(t,e){var n=e.owner(t),r=Ks(e,n);return _.some(r)},Js=function(t){var e,n=t.dom===document?_.none():_.from(null===(e=t.dom.defaultView)||void 0===e?void 0:e.frameElement);return n.map(er.fromDom)},Qs=function(t){return ji(t)},Zs=Object.freeze({__proto__:null,view:Js,owner:Qs}),tc=function(t){var e=er.fromDom(document),n=Us(e),r=Xs(t,Zs);return r.fold(u(As,t),(function(e){var r=Ms(t),o=X(e,(function(t,e){var n=Ms(e);return{left:t.left+n.left,top:t.top+n.top}}),{left:0,top:0});return Os(o.left+r.left+n.left,o.top+r.top+n.top)}))},ec=function(t,e,n){return{point:t,width:e,height:n}},nc=function(t,e,n,r){return{x:t,y:e,width:n,height:r}},rc=function(t,e,n,r){return{x:t,y:e,width:n,height:r,right:t+n,bottom:e+r}},oc=function(t){var e=As(t),n=zs(t),r=ks(t);return rc(e.left,e.top,n,r)},ic=function(t){var e=tc(t),n=zs(t),r=ks(t);return rc(e.left,e.top,n,r)},ac=function(){return Gs(window)};function uc(t,e,n,r,o){return t(n,r)?_.some(n):R(o)&&o(n)?_.none():e(n,r,o)}var sc,cc=function(t,e,n){var r=t.dom,o=R(n)?n:l;while(r.parentNode){r=r.parentNode;var i=er.fromDom(r);if(e(i))return _.some(i);if(o(i))break}return _.none()},lc=function(t,e,n){var r=function(t,e){return e(t)};return uc(r,cc,t,e,n)},fc=function(t,e){var n=function(t){for(var r=0;r-1}));return e.bind((function(t){var e=ma(t,"id"),n=Lu(t);return pc(n,'[aria-owns="'+e+'"]')}))},vc=function(){var t=Oa("aria-owns"),e=function(e){ha(e,"aria-owns",t)},n=function(t){ba(t,"aria-owns")};return{id:t,link:e,unlink:n}},bc=function(t,e){return gc(e).exists((function(e){return yc(t,e)}))},yc=function(t,e){return dc(e,(function(e){return oo(e,t.element)}),l)||bc(t,e)},wc="unknown";(function(t){t[t["STOP"]=0]="STOP",t[t["NORMAL"]=1]="NORMAL",t[t["LOGGING"]=2]="LOGGING"})(sc||(sc={}));var _c,xc=Kn({}),Cc=function(t,e){var n=[];(new Date).getTime();return{logEventCut:function(t,e,r){n.push({outcome:"cut",target:e,purpose:r})},logEventStopped:function(t,e,r){n.push({outcome:"stopped",target:e,purpose:r})},logNoParent:function(t,e,r){n.push({outcome:"no-parent",target:e,purpose:r})},logEventNoHandlers:function(t,e){n.push({outcome:"no-handlers-left",target:e})},logEventResponse:function(t,e,r){n.push({outcome:"response",purpose:r,target:e})},write:function(){(new Date).getTime();j(["mousemove","mouseover","mouseout",Ko()],t)}}},kc=function(t,e,n){var r=Ht(xc.get(),t).orThunk((function(){var e=Dt(xc.get());return dt(e,(function(e){return t.indexOf(e)>-1?_.some(xc.get()[e]):_.none()}))})).getOr(sc.NORMAL);switch(r){case sc.NORMAL:return n(Ec());case sc.LOGGING:var o=Cc(t,e),i=n(o);return o.write(),i;case sc.STOP:return!0}},Sc=["alloy/data/Fields","alloy/debugging/Debugging"],Tc=function(){var t=new Error;if(void 0!==t.stack){var e=t.stack.split("\n");return Z(e,(function(t){return t.indexOf("alloy")>0&&!V(Sc,(function(e){return t.indexOf(e)>-1}))})).getOr(wc)}return wc},Oc={logEventCut:e,logEventStopped:e,logNoParent:e,logEventNoHandlers:e,logEventResponse:e,write:e},Dc=function(t,e,n){return kc(t,e,n)},Ec=i(Oc),Ac=i([yn("menu"),yn("selectedMenu")]),Mc=i([yn("item"),yn("selectedItem")]),Nc=(i(Be(Mc().concat(Ac()))),i(Be(Mc()))),Rc=On("initSize",[yn("numColumns"),yn("numRows")]),Pc=function(){return wn("markers",Nc())},zc=function(){return On("markers",[yn("backgroundMenu")].concat(Ac()).concat(Mc()))},Ic=function(t){return On("markers",$(t,yn))},Lc=function(t,e,n){Tc();return Ye(e,e,n,Ze((function(t){return gt.value((function(){for(var e=[],n=0;n=r?_.some(e):_.none():e<=r?_.some(e):_.none()})).map((function(t){return t+o})).getOr(r)},o=r("left",t.x),i=r("top",t.y),u=r("right",t.right),s=r("bottom",t.bottom);return rc(o,i,u-o,s-i)},ul=function(t){return t.x},sl=function(t,e){return t.x+t.width/2-e.width/2},cl=function(t,e){return t.x+t.width-e.width},ll=function(t,e){return t.y-e.height},fl=function(t){return t.y+t.height},dl=function(t,e){return t.y+t.height/2-e.height/2},hl=function(t){return t.x+t.width},pl=function(t,e){return t.x-e.width},ml=function(t,e,n){return $c(ul(t),fl(t),n.southeast(),Xc(),il(t,{left:1,top:3}),"layout-se")},gl=function(t,e,n){return $c(cl(t,e),fl(t),n.southwest(),Jc(),il(t,{right:0,top:3}),"layout-sw")},vl=function(t,e,n){return $c(ul(t),ll(t,e),n.northeast(),Qc(),il(t,{left:1,bottom:2}),"layout-ne")},bl=function(t,e,n){return $c(cl(t,e),ll(t,e),n.northwest(),Zc(),il(t,{right:0,bottom:2}),"layout-nw")},yl=function(t,e,n){return $c(sl(t,e),ll(t,e),n.north(),el(),il(t,{bottom:2}),"layout-n")},wl=function(t,e,n){return $c(sl(t,e),fl(t),n.south(),tl(),il(t,{top:3}),"layout-s")},_l=function(t,e,n){return $c(hl(t),dl(t,e),n.east(),nl(),il(t,{left:0}),"layout-e")},xl=function(t,e,n){return $c(pl(t,e),dl(t,e),n.west(),rl(),il(t,{right:1}),"layout-w")},Cl=function(){return[ml,gl,vl,bl,wl,yl,_l,xl]},kl=function(){return[gl,ml,bl,vl,wl,yl,_l,xl]},Sl=function(){return[vl,bl,ml,gl,yl,wl]},Tl=function(){return[bl,vl,gl,ml,yl,wl]},Ol=function(){return[ml,gl,vl,bl,wl,yl]},Dl=function(){return[gl,ml,bl,vl,wl,yl]},El=function(t,e){return e.universal?t:K(t,(function(t){return j(e.channels,t)}))},Al=function(t){return gi([wi(Vo(),(function(e,n){var r=t.channels,o=Dt(r),i=n,a=El(o,i);Y(a,(function(t){var n=r[t],o=n.schema,a=on("channel["+t+"] data\nReceiver: "+xa(e.element),o,i.data);n.onReceive(e,a)}))}))])},Ml=Object.freeze({__proto__:null,events:Al}),Nl=[wn("channels",tn(gt.value,Le([Fc("onReceive"),Bn("schema",ln())])))],Rl=function(t,e,n){return Ri((function(r){n(r,t,e)}))},Pl=function(t,e,n){return Ni((function(r,o){n(r,t,e)}))},zl=function(t,e,n,r,o,i){var a=Le(t),u=In(e,[Ln("config",t)]);return Hl(a,u,e,n,r,o,i)},Il=function(t,e,n,r,o,i){var a=t,u=In(e,[Mn("config",t)]);return Hl(a,u,e,n,r,o,i)},Ll=function(t,e,n){var r=function(r){for(var o=[],a=1;ar?n:o=i,l=e>=a,f=c&&l,d=t+n<=i+u,h=e+r<=a+s,p=d&&h,m=Math.abs(Math.min(n,c?i+u-t:i-(t+n))),g=Math.abs(Math.min(r,l?a+s-e:a-(e+r))),v=Math.max(o.x,o.right-n),b=Math.max(o.y,o.bottom-r),y=vf(t,o.x,v),w=vf(e,o.y,b);return{originInBounds:f,sizeInBounds:p,limitX:y,limitY:w,deltaW:m,deltaH:g}},wf=function(t,e,n,r){var o=t.x,a=t.y,u=t.bubble.offset,s=u.left,c=u.top,l=al(r,t.boundsRestriction,u),f=l.y,d=l.bottom,h=l.x,p=l.right,m=o+s,g=a+c,v=yf(m,g,e,n,l),b=v.originInBounds,y=v.sizeInBounds,w=v.limitX,_=v.limitY,x=v.deltaW,C=v.deltaH,k=i(_+C-f),S=i(d-_),T=Gc(t.direction,S,S,k),O=i(w+x-h),D=i(p-w),E=Kc(t.direction,D,D,O),A={x:w,y:_,width:x,height:C,maxHeight:T,maxWidth:E,direction:t.direction,classes:{on:t.bubble.classesOn,off:t.bubble.classesOff},label:t.label,candidateYforTest:g};return b&&y?bf.fit(A):bf.nofit(A,x,C)},_f=function(t,e,n,r,o){var i=n.width,s=n.height,c=function(t,a,u,c){var l=t(e,n,r),f=wf(l,i,s,o);return f.fold(bf.fit,(function(t,e,n){var r=n>c||e>u;return r?bf.nofit(t,e,n):bf.nofit(a,u,c)}))},l=J(t,(function(t,e){var n=u(c,e);return t.fold(bf.fit,n)}),bf.nofit({x:e.x,y:e.y,width:n.width,height:n.height,maxHeight:n.height,maxWidth:n.width,direction:Xc(),classes:{on:[],off:[]},label:"none",candidateYforTest:e.y},-1,-1));return l.fold(a,a)},xf=function(t){return{width:zs(t),height:ks(t)}},Cf=function(t,e,n,r){rs(e,"max-height"),rs(e,"max-width");var o=xf(e);return _f(r.preference,t,o,n,r.bounds)},kf=function(t,e){var n=e.classes;Nu(t,n.off),Mu(t,n.on)},Sf=function(t,e,n){var r=n.maxHeightFunction;r(t,e.maxHeight)},Tf=function(t,e,n){var r=n.maxWidthFunction;r(t,e.maxWidth)},Of=function(t,e,n){rf(t,uf(n.origin,e))},Df=function(t,e){Ss(t,Math.floor(e))},Ef=i((function(t,e){Df(t,e),Xu(t,{"overflow-x":"hidden","overflow-y":"auto"})})),Af=i((function(t,e){Df(t,e)})),Mf=function(t,e,n){return void 0===t[e]?n:t[e]},Nf=function(t,n,r,o,i,a){var u=Mf(a,"maxHeightFunction",Ef()),s=Mf(a,"maxWidthFunction",e),c=t.anchorBox,l=t.origin,f={bounds:cf(l,i),origin:l,preference:o,maxHeightFunction:u,maxWidthFunction:s};Rf(c,n,r,f)},Rf=function(t,e,n,r){var o=Cf(t,e,n,r);Of(e,o,r),kf(e,o),Sf(e,o,r),Tf(e,o,r)},Pf=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right"],zf=function(t,e,n){var r=function(t){return Ht(n,t).getOr([])},o=function(t,e,n){var o=it(Pf,n);return{offset:Os(t,e),classesOn:nt(n,r),classesOff:nt(o,r)}};return{southeast:function(){return o(-t,e,["top","alignLeft"])},southwest:function(){return o(t,e,["top","alignRight"])},south:function(){return o(-t/2,e,["top","alignCentre"])},northeast:function(){return o(-t,-e,["bottom","alignLeft"])},northwest:function(){return o(t,-e,["bottom","alignRight"])},north:function(){return o(-t/2,-e,["bottom","alignCentre"])},east:function(){return o(t,-e/2,["valignCentre","left"])},west:function(){return o(-t,-e/2,["valignCentre","right"])},innerNorthwest:function(){return o(-t,e,["top","alignRight"])},innerNortheast:function(){return o(t,e,["top","alignLeft"])},innerNorth:function(){return o(-t/2,e,["top","alignCentre"])},innerSouthwest:function(){return o(-t,-e,["bottom","alignRight"])},innerSoutheast:function(){return o(t,-e,["bottom","alignLeft"])},innerSouth:function(){return o(-t/2,-e,["bottom","alignCentre"])},innerWest:function(){return o(t,-e/2,["valignCentre","right"])},innerEast:function(){return o(-t,-e/2,["valignCentre","left"])}}},If=function(){return zf(0,0,{})},Lf=function(t){return t},Bf=function(t,e){return function(n){return"rtl"===Hf(n)?e:t}},Hf=function(t){return"rtl"===Qu(t,"direction")?"rtl":"ltr"};(function(t){t["TopToBottom"]="toptobottom",t["BottomToTop"]="bottomtotop"})(_c||(_c={}));var Ff="data-alloy-vertical-dir",jf=function(t){return dc(t,(function(t){return Li(t)&&ma(t,"data-alloy-vertical-dir")===_c.BottomToTop}))},Vf=function(){return In("layouts",[yn("onLtr"),yn("onRtl"),An("onBottomLtr"),An("onBottomRtl")])},Wf=function(t,e,n,r,o,i,a){var u=a.map(jf).getOr(!1),s=e.layouts.map((function(e){return e.onLtr(t)})),c=e.layouts.map((function(e){return e.onRtl(t)})),l=u?e.layouts.bind((function(e){return e.onBottomLtr.map((function(e){return e(t)}))})).or(s).getOr(o):s.getOr(n),f=u?e.layouts.bind((function(e){return e.onBottomRtl.map((function(e){return e(t)}))})).or(c).getOr(i):c.getOr(r),d=Bf(l,f);return d(t)},Uf=function(t,e,n){var r=e.hotspot,o=sf(n,r.element),i=Wf(t.element,e,Ol(),Dl(),Sl(),Tl(),_.some(e.hotspot.element));return _.some(Lf({anchorBox:o,bubble:e.bubble.getOr(If()),overrides:e.overrides,layouts:i,placer:_.none()}))},$f=[yn("hotspot"),An("bubble"),Bn("overrides",{}),Vf(),Vc("placement",Uf)],Yf=function(t,e,n){var r=lf(n,e.x,e.y),o=rc(r.left,r.top,e.width,e.height),i=Wf(t.element,e,Cl(),kl(),Cl(),kl(),_.none());return _.some(Lf({anchorBox:o,bubble:e.bubble,overrides:e.overrides,layouts:i,placer:_.none()}))},qf=[yn("x"),yn("y"),Bn("height",0),Bn("width",0),Bn("bubble",If()),Bn("overrides",{}),Vf(),Vc("placement",Yf)],Gf="\ufeff",Kf=" ",Xf=function(t,e,n,r){return{start:t,soffset:e,finish:n,foffset:r}},Jf={create:Xf},Qf=Wt.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Zf=function(t,e,n,r){return t.fold(e,n,r)},td=function(t){return t.fold(a,a,a)},ed=Qf.before,nd=Qf.on,rd=Qf.after,od={before:ed,on:nd,after:rd,cata:Zf,getStart:td},id=Wt.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),ad=function(t){return id.exact(t.start,t.soffset,t.finish,t.foffset)},ud=function(t){return t.match({domRange:function(t){return er.fromDom(t.startContainer)},relative:function(t,e){return od.getStart(t)},exact:function(t,e,n,r){return t}})},sd=id.domRange,cd=id.relative,ld=id.exact,fd=function(t){var e=ud(t);return Ui(e)},dd=Jf.create,hd={domRange:sd,relative:cd,exact:ld,exactFromRange:ad,getWin:fd,range:dd},pd=function(t,e){e.fold((function(e){t.setStartBefore(e.dom)}),(function(e,n){t.setStart(e.dom,n)}),(function(e){t.setStartAfter(e.dom)}))},md=function(t,e){e.fold((function(e){t.setEndBefore(e.dom)}),(function(e,n){t.setEnd(e.dom,n)}),(function(e){t.setEndAfter(e.dom)}))},gd=function(t,e,n){var r=t.document.createRange();return pd(r,e),md(r,n),r},vd=function(t,e,n,r,o){var i=t.document.createRange();return i.setStart(e.dom,n),i.setEnd(r.dom,o),i},bd=function(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom,width:t.width,height:t.height}},yd=function(t){var e=t.getClientRects(),n=e.length>0?e[0]:t.getBoundingClientRect();return n.width>0||n.height>0?_.some(n).map(bd):_.none()},wd=Wt.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),_d=function(t,e,n){return e(er.fromDom(n.startContainer),n.startOffset,er.fromDom(n.endContainer),n.endOffset)},xd=function(t,e){return e.match({domRange:function(t){return{ltr:i(t),rtl:_.none}},relative:function(e,n){return{ltr:Xt((function(){return gd(t,e,n)})),rtl:Xt((function(){return _.some(gd(t,n,e))}))}},exact:function(e,n,r,o){return{ltr:Xt((function(){return vd(t,e,n,r,o)})),rtl:Xt((function(){return _.some(vd(t,r,o,e,n))}))}}})},Cd=function(t,e){var n=e.ltr();if(n.collapsed){var r=e.rtl().filter((function(t){return!1===t.collapsed}));return r.map((function(t){return wd.rtl(er.fromDom(t.endContainer),t.endOffset,er.fromDom(t.startContainer),t.startOffset)})).getOrThunk((function(){return _d(t,wd.ltr,n)}))}return _d(t,wd.ltr,n)},kd=function(t,e){var n=xd(t,e);return Cd(t,n)},Sd=function(t,e){var n=kd(t,e);return n.match({ltr:function(e,n,r,o){var i=t.document.createRange();return i.setStart(e.dom,n),i.setEnd(r.dom,o),i},rtl:function(e,n,r,o){var i=t.document.createRange();return i.setStart(r.dom,o),i.setEnd(e.dom,n),i}})};wd.ltr,wd.rtl;function Td(t,e){var n=function(n){if(!t(n))throw new Error("Can only get "+e+" value of a "+e+" node");return r(n).getOr("")},r=function(e){return t(e)?_.from(e.dom.nodeValue):_.none()},o=function(n,r){if(!t(n))throw new Error("Can only set raw "+e+" value of a "+e+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:o}}var Od=Td(Bi,"text"),Dd=function(t){return Od.get(t)},Ed=function(t){return Od.getOption(t)},Ad=function(t){return"img"===Pi(t)?1:Ed(t).fold((function(){return Ki(t).length}),(function(t){return t.length}))},Md=function(t){return Ed(t).filter((function(t){return 0!==t.trim().length||t.indexOf(Kf)>-1})).isSome()},Nd=["img","br"],Rd=function(t){var e=Md(t);return e||j(Nd,Pi(t))},Pd=function(t){return zd(t,Rd)},zd=function(t,e){var n=function(t){for(var r=Ki(t),o=r.length-1;o>=0;o--){var i=r[o];if(e(i))return _.some(i);var a=n(i);if(a.isSome())return a}return _.none()};return n(t)},Id=function(t,e){return no(e,t)},Ld=function(t,e,n,r){var o=ji(t),i=o.dom.createRange();return i.setStart(t.dom,e),i.setEnd(n.dom,r),i},Bd=function(t,e,n,r){var o=Ld(t,e,n,r),i=oo(t,n)&&e===r;return o.collapsed&&!i},Hd=function(t){return _.from(t.getSelection())},Fd=function(t){if(t.rangeCount>0){var e=t.getRangeAt(0),n=t.getRangeAt(t.rangeCount-1);return _.some(Jf.create(er.fromDom(e.startContainer),e.startOffset,er.fromDom(n.endContainer),n.endOffset))}return _.none()},jd=function(t){if(null===t.anchorNode||null===t.focusNode)return Fd(t);var e=er.fromDom(t.anchorNode),n=er.fromDom(t.focusNode);return Bd(e,t.anchorOffset,n,t.focusOffset)?_.some(Jf.create(e,t.anchorOffset,n,t.focusOffset)):Fd(t)},Vd=function(t){return Hd(t).filter((function(t){return t.rangeCount>0})).bind(jd)},Wd=function(t,e){var n=Sd(t,e);return yd(n)},Ud=function(t,e){return{element:t,offset:e}},$d=function(t,e){var n=Ki(t);if(0===n.length)return Ud(t,e);if(e"})),ln()),gm=Gn("schema",(function(){return[An("preprocess")]})),vm=Bn("defaults",i({})),bm=Bn("overrides",i({})),ym=Be([dm,hm,pm,mm,vm,bm]),wm=Be([dm,hm,pm,vm,bm]),_m=Be([dm,hm,pm,mm,vm,bm]),xm=Be([dm,gm,pm,yn("unit"),mm,vm,bm]),Cm=function(t){return t.fold(_.some,_.none,_.some,_.some)},km=function(t){var e=function(t){return t.name};return t.fold(e,e,e,e)},Sm=function(t){return t.fold(a,a,a,a)},Tm=function(t,e){return function(n){var r=on("Converting part type",e,n);return t(r)}},Om=Tm(fm.required,ym),Dm=Tm(fm.external,wm),Em=Tm(fm.optional,_m),Am=Tm(fm.group,xm),Mm=i("entirety"),Nm=Object.freeze({__proto__:null,required:Om,external:Dm,optional:Em,group:Am,asNamedPart:Cm,name:km,asCommon:Sm,original:Mm}),Rm=function(t,e,n,r){return Gt(e.defaults(t,n,r),n,{uid:t.partUids[e.name]},e.overrides(t,n,r))},Pm=function(t,e,n){var r={},o={};return Y(n,(function(t){t.fold((function(t){r[t.pname]=sm(!0,(function(e,n,r){return t.factory.sketch(Rm(e,t,n,r))}))}),(function(t){var n=e.parts[t.name];o[t.name]=i(t.factory.sketch(Rm(e,t,n[Mm()]),n))}),(function(t){r[t.pname]=sm(!1,(function(e,n,r){return t.factory.sketch(Rm(e,t,n,r))}))}),(function(t){r[t.pname]=cm(!0,(function(e,n,r){var o=e[t.name];return $(o,(function(n){return t.factory.sketch(Gt(t.defaults(e,n,r),n,t.overrides(e,n)))}))}))}))})),{internals:i(r),externals:i(o)}},zm=function(t,e){var n={};return Y(e,(function(e){Cm(e).each((function(e){var r=Im(t,e.pname);n[e.name]=function(n){var o=on("Part: "+e.name+" in "+t,Be(e.schema),n);return h(h({},r),{config:n,validated:o})}}))})),n},Im=function(t,e){return{uiType:lm(),owner:t,name:e}},Lm=function(t,e,n){return{uiType:lm(),owner:t,name:e,config:n,validated:{}}},Bm=function(t){return nt(t,(function(t){return t.fold(_.none,_.some,_.none,_.none).map((function(t){return On(t.name,t.schema.concat([Wc(Mm())]))})).toArray()}))},Hm=function(t){return $(t,km)},Fm=function(t,e,n){return Pm(t,e,n)},jm=function(t,e,n){return um(_.some(t),e,e.components,n)},Vm=function(t,e,n){var r=e.partUids[n];return t.getSystem().getByUid(r).toOptional()},Wm=function(t,e,n){return Vm(t,e,n).getOrDie("Could not find part: "+n)},Um=function(t,e,n){var r={},o=e.partUids,a=t.getSystem();return Y(n,(function(t){r[t]=i(a.getByUid(o[t]))})),r},$m=function(t,e){var n=t.getSystem();return Mt(e.partUids,(function(t,e){return i(n.getByUid(t))}))},Ym=function(t){return Dt(t.partUids)},qm=function(t,e,n){var r={},o=e.partUids,a=t.getSystem();return Y(n,(function(t){r[t]=i(a.getByUid(o[t]).getOrDie())})),r},Gm=function(t,e){var n=Hm(e);return le($(n,(function(e){return{key:e,value:t+"-"+e}})))},Km=function(t){return Ye("partUids","partUids",re((function(e){return Gm(e.uid,t)})),ln())},Xm=Object.freeze({__proto__:null,generate:zm,generateOne:Lm,schemas:Bm,names:Hm,substitutes:Fm,components:jm,defaultUids:Gm,defaultUidsSchema:Km,getAllParts:$m,getAllPartNames:Ym,getPart:Vm,getPartOrDie:Wm,getParts:Um,getPartsOrDie:qm}),Jm=function(t,e){var n=t.length>0?[On("parts",t)]:[];return n.concat([yn("uid"),Bn("dom",{}),Bn("components",[]),Wc("originalSpec"),Bn("debug.sketcher",{})]).concat(e)},Qm=function(t,e,n,r,o){var i=Jm(r,o);return on(t+" [SpecSchema]",Le(i.concat(e)),n)},Zm=function(t,e,n,r){var o=ng(r),i=Qm(t,e,o,[],[]);return n(i,o)},tg=function(t,e,n,r,o){var i=ng(o),a=Bm(n),u=Km(n),s=Qm(t,e,i,a,[u]),c=Fm(t,s,n),l=jm(t,s,c.internals());return r(s,l,i,c.externals())},eg=function(t){return Ft(t,"uid")},ng=function(t){return eg(t)?t:h(h({},t),{uid:za("uid")})};function rg(t){return void 0!==t.uid}var og,ig=Le([yn("name"),yn("factory"),yn("configFields"),Bn("apis",{}),Bn("extraApis",{})]),ag=Le([yn("name"),yn("factory"),yn("configFields"),yn("partFields"),Bn("apis",{}),Bn("extraApis",{})]),ug=function(t){var e=on("Sketcher for "+t.name,ig,t),n=function(t){return Zm(e.name,e.configFields,e.factory,t)},r=Mt(e.apis,Ya),o=Mt(e.extraApis,(function(t,e){return ja(t,e)}));return h(h({name:e.name,configFields:e.configFields,sketch:n},r),o)},sg=function(t){var e=on("Sketcher for "+t.name,ag,t),n=function(t){return tg(e.name,e.configFields,e.partFields,e.factory,t)},r=zm(e.name,e.partFields),o=Mt(e.apis,Ya),i=Mt(e.extraApis,(function(t,e){return ja(t,e)}));return h(h({name:e.name,partFields:e.partFields,configFields:e.configFields,sketch:n,parts:r},o),i)},cg=function(t){for(var e=[],n=function(t){e.push(t)},r=0;r0?_.some(r[r.length-1]):_.none();return o.bind((function(e){return t.getSystem().getByDom(e).toOptional()}))},Rg=function(t,e,n,r){var o=Id(t.element,"."+e.itemClass),i=tt(o,(function(t){return Au(t,e.highlightClass)}));return i.bind((function(e){var n=gf(e,r,0,o.length-1);return t.getSystem().getByDom(o[n]).toOptional()}))},Pg=function(t,e,n){return Rg(t,e,n,-1)},zg=function(t,e,n){return Rg(t,e,n,1)},Ig=function(t,e,n){var r=Id(t.element,"."+e.itemClass);return cg($(r,(function(e){return t.getSystem().getByDom(e).toOptional()})))},Lg=Object.freeze({__proto__:null,dehighlightAll:_g,dehighlight:xg,highlight:Cg,highlightFirst:kg,highlightLast:Sg,highlightAt:Tg,highlightBy:Og,isHighlighted:Dg,getHighlighted:Eg,getFirst:Mg,getLast:Ng,getPrevious:Pg,getNext:zg,getCandidates:Ig}),Bg=[yn("highlightClass"),yn("itemClass"),Bc("onHighlight"),Bc("onDehighlight")],Hg=Vl({fields:Bg,name:"highlighting",apis:Lg}),Fg=[8],jg=[9],Vg=[13],Wg=[27],Ug=[32],$g=[37],Yg=[38],qg=[39],Gg=[40],Kg=function(t,e,n){var r=ot(t.slice(0,e)),o=ot(t.slice(e+1));return Z(r.concat(o),n)},Xg=function(t,e,n){var r=ot(t.slice(0,e));return Z(r,n)},Jg=function(t,e,n){var r=t.slice(0,e),o=t.slice(e+1);return Z(o.concat(r),n)},Qg=function(t,e,n){var r=t.slice(e+1);return Z(r,n)},Zg=function(t){return function(e){var n=e.raw;return j(t,n.which)}},tv=function(t){return function(e){return rt(t,(function(t){return t(e)}))}},ev=function(t){var e=t.raw;return!0===e.shiftKey},nv=function(t){var e=t.raw;return!0===e.ctrlKey},rv=s(ev),ov=function(t,e){return{matches:t,classification:e}},iv=function(t,e){var n=Z(t,(function(t){return t.matches(e)}));return n.map((function(t){return t.classification}))},av=function(t,e,n){var r=e.exists((function(t){return n.exists((function(e){return oo(e,t)}))}));r||fi(t,oi(),{prevFocus:e,newFocus:n})},uv=function(){var t=function(t){return tf(t.element)},e=function(e,n){var r=t(e);e.getSystem().triggerFocus(n,e.element);var o=t(e);av(e,r,o)};return{get:t,set:e}},sv=function(){var t=function(t){return Hg.getHighlighted(t).map((function(t){return t.element}))},n=function(n,r){var o=t(n);n.getSystem().getByDom(r).fold(e,(function(t){Hg.highlight(n,t)}));var i=t(n);av(n,o,i)};return{get:t,set:n}};(function(t){t["OnFocusMode"]="onFocus",t["OnEnterOrSpaceMode"]="onEnterOrSpace",t["OnApiMode"]="onApi"})(og||(og={}));var cv=function(t,e,n,r,o){var i=function(){return t.concat([Bn("focusManager",uv()),Hn("focusInside","onFocus",Ze((function(t){return j(["onFocus","onEnterOrSpace","onApi"],t)?gt.value(t):gt.error("Invalid value for focusInside")}))),Vc("handler",s),Vc("state",e),Vc("sendFocusIn",o)])},a=function(t,e,n,r,o){var i=n(t,e,r,o);return iv(i,e.event).bind((function(n){return n(t,e,r,o)}))},u=function(t,e){var i=t.focusInside!==og.OnFocusMode?_.none():o(t).map((function(n){return wi(Ho(),(function(r,o){n(r,t,e),o.stop()}))})),u=function(n,r){var i=Zg(Ug.concat(Vg))(r.event);t.focusInside===og.OnEnterOrSpaceMode&&i&&fo(n,r)&&o(t).each((function(o){o(n,t,e),r.stop()}))},s=[wi(Ao(),(function(r,o){a(r,o,n,t,e).fold((function(){u(r,o)}),(function(t){o.stop()}))})),wi(Mo(),(function(n,o){a(n,o,r,t,e).each((function(t){o.stop()}))}))];return gi(i.toArray().concat(s))},s={schema:i,processKey:a,toEvents:u};return s},lv=function(t){var e=[An("onEscape"),An("onEnter"),Bn("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),Bn("firstTabstop",0),Bn("useTabstopAt",f),An("visibilitySelector")].concat([t]),n=function(t,e){var n=t.visibilitySelector.bind((function(t){return mc(e,t)})).getOr(e);return Cs(n)>0},r=function(t,e){var r=Id(t.element,e.selector),o=K(r,(function(t){return n(e,t)}));return _.from(o[e.firstTabstop])},o=function(t,e){return e.focusManager.get(t).bind((function(t){return mc(t,e.selector)}))},a=function(t,e){return n(t,e)&&t.useTabstopAt(e)},s=function(t,e,n){r(t,e).each((function(n){e.focusManager.set(t,n)}))},c=function(t,e,n,r,o){return o(e,n,(function(t){return a(r,t)})).fold((function(){return r.cyclic?_.some(!0):_.none()}),(function(e){return r.focusManager.set(t,e),_.some(!0)}))},l=function(t,e,n,r){var i=Id(t.element,n.selector);return o(t,n).bind((function(e){var o=tt(i,u(oo,e));return o.bind((function(e){return c(t,i,e,n,r)}))}))},d=function(t,e,n){var r=n.cyclic?Kg:Xg;return l(t,e,n,r)},h=function(t,e,n){var r=n.cyclic?Jg:Qg;return l(t,e,n,r)},p=function(t,e,n){return n.onEnter.bind((function(n){return n(t,e)}))},m=function(t,e,n){return n.onEscape.bind((function(n){return n(t,e)}))},g=i([ov(tv([ev,Zg(jg)]),d),ov(Zg(jg),h),ov(Zg(Wg),m),ov(tv([rv,Zg(Vg)]),p)]),v=i([]);return cv(e,qa.init,g,v,(function(){return _.some(s)}))},fv=lv(Gn("cyclic",l)),dv=lv(Gn("cyclic",f)),hv=function(t,e,n){return hi(t,n,Wo()),_.some(!0)},pv=function(t,e,n){var r=mg(n)&&Zg(Ug)(e.event);return r?_.none():hv(t,e,n)},mv=function(t,e){return _.some(!0)},gv=[Bn("execute",pv),Bn("useSpace",!1),Bn("useEnter",!0),Bn("useControlEnter",!1),Bn("useDown",!1)],vv=function(t,e,n){return n.execute(t,e,t.element)},bv=function(t,e,n,r){var o=n.useSpace&&!mg(t.element)?Ug:[],i=n.useEnter?Vg:[],a=n.useDown?Gg:[],u=o.concat(i).concat(a);return[ov(Zg(u),vv)].concat(n.useControlEnter?[ov(tv([nv,Zg(Vg)]),vv)]:[])},yv=function(t,e,n,r){return n.useSpace&&!mg(t.element)?[ov(Zg(Ug),mv)]:[]},wv=cv(gv,qa.init,bv,yv,(function(){return _.none()})),_v=function(){var t=Kn(_.none()),e=function(e,n){t.set(_.some({numRows:e,numColumns:n}))},n=function(){return t.get().map((function(t){return t.numRows}))},r=function(){return t.get().map((function(t){return t.numColumns}))};return Ga({readState:function(){return t.get().map((function(t){return{numRows:String(t.numRows),numColumns:String(t.numColumns)}})).getOr({numRows:"?",numColumns:"?"})},setGridSize:e,getNumRows:n,getNumColumns:r})},xv=function(t){return t.state(t)},Cv=Object.freeze({__proto__:null,flatgrid:_v,init:xv}),kv=function(t){return function(e,n,r,o){var i=t(e.element);return Dv(i,e,n,r,o)}},Sv=function(t,e){var n=Bf(t,e);return kv(n)},Tv=function(t,e){var n=Bf(e,t);return kv(n)},Ov=function(t){return function(e,n,r,o){return Dv(t,e,n,r,o)}},Dv=function(t,e,n,r,o){var i=r.focusManager.get(e).bind((function(n){return t(e.element,n,r,o)}));return i.map((function(t){return r.focusManager.set(e,t),!0}))},Ev=Ov,Av=Ov,Mv=Ov,Nv=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},Rv=function(t){return!Nv(t.dom)},Pv=function(t,e){return tt(t,e).map((function(e){return{index:e,candidates:t}}))},zv=function(t,e,n){var r=function(t){return oo(t,e)},o=Id(t,n),i=K(o,Rv);return Pv(i,r)},Iv=function(t,e){return tt(t,(function(t){return oo(e,t)}))},Lv=function(t,e,n,r){var o=Math.floor(e/n),i=e%n;return r(o,i).bind((function(e){var r=e.row*n+e.column;return r>=0&&r1?_.some(t.slice(1)):_.none()}))},m=function(t){return Ht(n.get(),t)},g=function(t){return v(t).bind(Ow)},v=function(t){return Ht(e.get(),t)},b=function(e){return Ht(t.get(),e)},y=function(t){var e=o.get();return it(Dt(e),t)},w=function(){return r.get().bind(g)},x=function(){return e.get()};return{setMenuBuilt:u,setContents:s,expand:d,refresh:m,collapse:p,lookupMenu:v,lookupItem:b,otherMenus:y,getPrimary:w,getMenus:x,clear:i,isClear:a,getTriggeringPath:f}},Ow=function(t){return"prepared"===t.type?_.some(t.menu):_.none()},Dw={init:Tw,extractPreparedMenu:Ow},Ew=function(t,e){var n,r=Kn(_.none()),o=function(e,n,r){return Mt(r,(function(r,o){var i=function(){return xw.sketch(h(h({},r),{value:o,markers:t.markers,fakeFocus:t.fakeFocus,onHighlight:t.onHighlight,focusManager:t.fakeFocus?sv():uv()}))};return o===n?{type:"prepared",menu:e.getSystem().build(i())}:{type:"notbuilt",nbMenu:i}}))},i=Dw.init(),a=function(e){var n=o(e,t.data.primary,t.data.menus),r=c();return i.setContents(t.data.primary,n,t.data.expansions,r),i.getPrimary()},u=function(t){return Gp.getValue(t).value},s=function(t,e,n){return dt(e,(function(t){if(!t.getSystem().isConnected())return _.none();var e=Hg.getCandidates(t);return Z(e,(function(t){return u(t)===n}))}))},c=function(e){return Mt(t.data.menus,(function(t,e){return nt(t.items,(function(t){return"separator"===t.type?[]:[t.data.value]}))}))},l=function(t,e){Hg.highlight(t,e),Hg.getHighlighted(e).orThunk((function(){return Hg.getFirst(e)})).each((function(e){hi(t,e.element,Uo())}))},f=function(t,e){return cg($(e,(function(e){return t.lookupMenu(e).bind((function(t){return"prepared"===t.type?_.some(t.menu):_.none()}))})))},d=function(e,n,r){var o=f(n,n.otherMenus(r));Y(o,(function(n){Nu(n.element,[t.markers.backgroundMenu]),t.stayInDom||_y.remove(e,n)}))},p=function(e){return r.get().getOrThunk((function(){var n={},o=Id(e.element,"."+t.markers.item),i=K(o,(function(t){return"true"===ma(t,"aria-haspopup")}));return Y(i,(function(t){e.getSystem().getByDom(t).each((function(t){var e=u(t);n[e]=t}))})),r.set(_.some(n)),n}))},m=function(t,e){var n=p(t);At(n,(function(t,n){var r=j(e,n);ha(t.element,"aria-expanded",r)}))},g=function(e,n,r){return _.from(r[0]).bind((function(o){return n.lookupMenu(o).bind((function(o){if("notbuilt"===o.type)return _.none();var i=o.menu,a=f(n,r.slice(1));return Y(a,(function(e){Ou(e.element,t.markers.backgroundMenu)})),Uu(i.element)||_y.append(e,ws(i)),Nu(i.element,[t.markers.backgroundMenu]),l(e,i),d(e,n,r),_.some(i)}))}))};(function(t){t[t["HighlightSubmenu"]=0]="HighlightSubmenu",t[t["HighlightParent"]=1]="HighlightParent"})(n||(n={}));var v=function(t,e,n){if("notbuilt"===n.type){var r=t.getSystem().build(n.nbMenu());return i.setMenuBuilt(e,r),r}return n.menu},b=function(e,r,o){void 0===o&&(o=n.HighlightSubmenu);var a=u(r);return i.expand(a).bind((function(a){return m(e,a),_.from(a[0]).bind((function(u){return i.lookupMenu(u).bind((function(s){var c=v(e,u,s);return Uu(c.element)||_y.append(e,ws(c)),t.onOpenSubmenu(e,r,c,ot(a)),o===n.HighlightSubmenu?(Hg.highlightFirst(c),g(e,i,a)):(Hg.dehighlightAll(c),_.some(r))}))}))}))},y=function(e,n){var r=u(n);return i.collapse(r).bind((function(r){return m(e,r),g(e,i,r).map((function(r){return t.onCollapseMenu(e,n,r),r}))}))},w=function(t,e){var n=u(e);return i.refresh(n).bind((function(e){return m(t,e),g(t,i,e)}))},x=function(t,e){return mg(e.element)?_.none():b(t,e,n.HighlightSubmenu)},C=function(t,e){return mg(e.element)?_.none():y(t,e)},k=function(e,n){return y(e,n).orThunk((function(){return t.onEscape(e,n).map((function(){return e}))}))},S=function(e){return function(n,r){return mc(r.getSource(),"."+t.markers.item).bind((function(t){return n.getSystem().getByDom(t).toOptional().bind((function(t){return e(n,t).map((function(){return!0}))}))}))}},T=gi([wi(ww(),(function(t,e){var n=e.event.item;i.lookupItem(u(n)).each((function(){var n=e.event.menu;Hg.highlight(t,n);var r=u(e.event.item);i.refresh(r).each((function(e){return d(t,i,e)}))}))})),Ri((function(e,r){var o=r.event.target;e.getSystem().getByDom(o).each((function(r){var o=u(r);0===o.indexOf("collapse-item")&&y(e,r),b(e,r,n.HighlightSubmenu).fold((function(){t.onExecute(e,r)}),(function(){}))}))})),Ai((function(e,n){a(e).each((function(n){_y.append(e,ws(n)),t.onOpenMenu(e,n),t.highlightImmediately&&l(e,n)}))}))].concat(t.navigateOnHover?[wi(ow(),(function(e,r){var o=r.event.item;w(e,o),b(e,o,n.HighlightParent),t.onHover(e,o)}))]:[])),O=function(t){return Hg.getHighlighted(t).bind(Hg.getHighlighted)},D=function(t){O(t).each((function(e){y(t,e)}))},E=function(t){i.getPrimary().each((function(e){l(t,e)}))},A=function(t){return _.from(t.components()[0]).filter((function(t){return"menu"===ma(t.element,"role")}))},M=function(e){var n=i.getPrimary().bind((function(t){return O(e).bind((function(t){var n=u(t),r=Bt(i.getMenus()),o=cg($(r,Dw.extractPreparedMenu));return i.getTriggeringPath(n,(function(t){return s(e,o,t)}))})).map((function(e){return{primary:t,triggeringPath:e}}))}));n.fold((function(){A(e).each((function(n){t.onRepositionMenu(e,n,[])}))}),(function(n){var r=n.primary,o=n.triggeringPath;t.onRepositionMenu(e,r,o)}))},N={collapseMenu:D,highlightPrimary:E,repositionMenus:M};return{uid:t.uid,dom:t.dom,markers:t.markers,behaviours:Jp(t.tmenuBehaviours,[fy.config({mode:"special",onRight:S(x),onLeft:S(C),onEscape:S(k),focusIn:function(t,e){i.getPrimary().each((function(e){hi(t,e.element,Uo())}))}}),Hg.config({highlightClass:t.markers.selectedMenu,itemClass:t.markers.menu}),yg.config({find:function(t){return Hg.getHighlighted(t)}}),_y.config({})]),eventOrder:t.eventOrder,apis:N,events:T}},Aw=i("collapse-item"),Mw=function(t,e,n){return{primary:t,menus:e,expansions:n}},Nw=function(t,e){return{primary:t,menus:ce(t,e),expansions:{}}},Rw=function(t){return{value:Oa(Aw()),meta:{text:t}}},Pw=ug({name:"TieredMenu",configFields:[jc("onExecute"),jc("onEscape"),Fc("onOpenMenu"),Fc("onOpenSubmenu"),Bc("onRepositionMenu"),Bc("onCollapseMenu"),Bn("highlightImmediately",!0),On("data",[yn("primary"),yn("menus"),yn("expansions")]),Bn("fakeFocus",!1),Bc("onHighlight"),Bc("onHover"),zc(),yn("dom"),Bn("navigateOnHover",!0),Bn("stayInDom",!1),Kp("tmenuBehaviours",[fy,Hg,yg,_y]),Bn("eventOrder",{})],apis:{collapseMenu:function(t,e){t.collapseMenu(e)},highlightPrimary:function(t,e){t.highlightPrimary(e)},repositionMenus:function(t,e){t.repositionMenus(e)}},factory:Ew,extraApis:{tieredData:Mw,singleData:Nw,collapseItem:Rw}}),zw=function(t,e,n,r,o){var i=function(){return t.lazySink(e)},a="horizontal"===r.type?{layouts:{onLtr:function(){return Ol()},onRtl:function(){return Dl()}}}:{},u=function(t){return 2===t.length},s=function(t){return u(t)?a:{}};return Pw.sketch({dom:{tag:"div"},data:r.data,markers:r.menu.markers,highlightImmediately:r.menu.highlightImmediately,onEscape:function(){return dp.close(e),t.onEscape.map((function(t){return t(e)})),_.some(!0)},onExecute:function(){return _.some(!0)},onOpenMenu:function(t,e){Nh.positionWithinBounds(i().getOrDie(),n,e,o())},onOpenSubmenu:function(t,e,n,r){var o=i().getOrDie();Nh.position(o,h({anchor:"submenu",item:e},s(r)),n)},onRepositionMenu:function(t,e,r){var a=i().getOrDie();Nh.positionWithinBounds(a,n,e,o()),Y(r,(function(t){var e=s(t.triggeringPath);Nh.position(a,h({anchor:"submenu",item:t.triggeringItem},e),t.triggeredMenu)}))}})},Iw=function(t,e){var n=function(e,n){var r=t.getRelated(e);return r.exists((function(t){return yc(t,n)}))},r=function(t,e){dp.setContent(t,e)},o=function(t,e,n){i(t,e,n,_.none())},i=function(t,e,n,r){a(t,e,n,(function(){return r.map((function(t){return oc(t)}))}))},a=function(e,n,r,o){var i=t.lazySink(e).getOrDie();dp.openWhileCloaked(e,r,(function(){return Nh.positionWithinBounds(i,n,e,o())})),Gp.setValue(e,_.some({mode:"position",anchor:n,getBounds:o}))},u=function(t,e,n){s(t,e,n,(function(){return _.none()}))},s=function(e,n,r,o){var i=zw(t,e,n,r,o);dp.open(e,i),Gp.setValue(e,_.some({mode:"menu",menu:i}))},c=function(t){dp.isOpen(t)&&(Gp.setValue(t,_.none()),dp.close(t))},l=function(t){return dp.getState(t)},f=function(e){dp.isOpen(e)&&Gp.getValue(e).each((function(n){switch(n.mode){case"menu":dp.getState(e).each((function(t){Pw.repositionMenus(t)}));break;case"position":var r=t.lazySink(e).getOrDie();Nh.positionWithinBounds(r,n.anchor,e,n.getBounds());break}}))},d={setContent:r,showAt:o,showWithin:i,showWithinBounds:a,showMenuAt:u,showMenuWithinBounds:s,hide:c,getContent:l,reposition:f,isOpen:dp.isOpen};return{uid:t.uid,dom:t.dom,behaviours:Jp(t.inlineBehaviours,[dp.config({isPartOf:function(t,e,r){return yc(e,r)||n(t,r)},getAttachPoint:function(e){return t.lazySink(e).getOrDie()},onOpen:function(e){t.onShow(e)},onClose:function(e){t.onHide(e)}}),Gp.config({store:{mode:"memory",initialValue:_.none()}}),Yl.config({channels:h(h({},vp(h({isExtraPart:e.isExtraPart},t.fireDismissalEventInstead.map((function(t){return{fireEventInstead:{event:t.event}}})).getOr({})))),yp(h(h({},t.fireRepositionEventInstead.map((function(t){return{fireEventInstead:{event:t.event}}})).getOr({})),{doReposition:f})))})]),eventOrder:t.eventOrder,apis:d}},Lw=ug({name:"InlineView",configFields:[yn("lazySink"),Bc("onShow"),Bc("onHide"),Pn("onEscape"),Kp("inlineBehaviours",[dp,Gp,Yl]),In("fireDismissalEventInstead",[Bn("event",ni())]),In("fireRepositionEventInstead",[Bn("event",ri())]),Bn("getRelated",_.none),Bn("isExtraPart",l),Bn("eventOrder",_.none)],factory:Iw,apis:{showAt:function(t,e,n,r){t.showAt(e,n,r)},showWithin:function(t,e,n,r,o){t.showWithin(e,n,r,o)},showWithinBounds:function(t,e,n,r,o){t.showWithinBounds(e,n,r,o)},showMenuAt:function(t,e,n,r){t.showMenuAt(e,n,r)},showMenuWithinBounds:function(t,e,n,r,o){t.showMenuWithinBounds(e,n,r,o)},hide:function(t,e){t.hide(e)},isOpen:function(t,e){return t.isOpen(e)},getContent:function(t,e){return t.getContent(e)},setContent:function(t,e,n){t.setContent(e,n)},reposition:function(t,e){t.reposition(e)}}}),Bw=function(t){return t.x},Hw=function(t,e){return t.x+t.width/2-e.width/2},Fw=function(t,e){return t.x+t.width-e.width},jw=function(t){return t.y},Vw=function(t,e){return t.y+t.height-e.height},Ww=function(t,e,n){return $c(Fw(t,e),Vw(t,e),n.innerSoutheast(),Zc(),il(t,{right:0,bottom:3}),"layout-inner-se")},Uw=function(t,e,n){return $c(Bw(t),Vw(t,e),n.innerSouthwest(),Qc(),il(t,{left:1,bottom:3}),"layout-inner-sw")},$w=function(t,e,n){return $c(Fw(t,e),jw(t),n.innerNortheast(),Jc(),il(t,{right:0,top:2}),"layout-inner-ne")},Yw=function(t,e,n){return $c(Bw(t),jw(t),n.innerNorthwest(),Xc(),il(t,{left:1,top:2}),"layout-inner-nw")},qw=function(t,e,n){return $c(Hw(t,e),jw(t),n.innerNorth(),tl(),il(t,{top:2}),"layout-inner-n")},Gw=function(t,e,n){return $c(Hw(t,e),Vw(t,e),n.innerSouth(),el(),il(t,{bottom:3}),"layout-inner-s")},Kw=tinymce.util.Tools.resolve("tinymce.util.Delay"),Xw=function(t){var e=Zy(t.action),n=t.dom.tag,r=function(e){return Ht(t.dom,"attributes").bind((function(t){return Ht(t,e)}))},o=function(){if("button"===n){var t=r("type").getOr("button"),e=r("role").map((function(t){return{role:t}})).getOr({});return h({type:t},e)}var o=r("role").getOr("button");return{role:o}};return{uid:t.uid,dom:t.dom,components:t.components,events:e,behaviours:Qp.augment(t.buttonBehaviours,[Ny.config({}),fy.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:o()},eventOrder:t.eventOrder}},Jw=ug({name:"Button",factory:Xw,configFields:[Bn("uid",void 0),yn("dom"),Bn("components",[]),Qp.field("buttonBehaviours",[Ny,fy]),An("action"),An("role"),Bn("eventOrder",{})]}),Qw=function(t){var e=rg(t)&&jt(t,"uid")?t.uid:za("memento"),n=function(t){return t.getSystem().getByUid(e).getOrDie()},r=function(t){return t.getSystem().getByUid(e).toOptional()},o=function(){return h(h({},t),{uid:e})};return{get:n,getOpt:r,asSpec:o}},Zw=function(t){return _.from(t()["temporary-placeholder"]).getOr("!not found!")},t_=function(t,e){return _.from(e()[t.toLowerCase()]).getOrThunk((function(){return Zw(e)}))},e_=function(t,e,n){return _.from(e()[t.toLowerCase()]).or(n).getOrThunk((function(){return Zw(e)}))},n_=function(t,e){return dt(t,(function(t){return _.from(e()[t.toLowerCase()])})).getOrThunk((function(){return Zw(e)}))},r_={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},o_=function(t){var e=Qw({dom:{tag:"p",innerHtml:t.translationProvider(t.text)},behaviours:Fl([_y.config({})])}),n=function(t){return{dom:{tag:"div",classes:["tox-bar"],attributes:{style:"width: "+t+"%"}}}},r=function(t){return{dom:{tag:"div",classes:["tox-text"],innerHtml:t+"%"}}},o=Qw({dom:{tag:"div",classes:t.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(0)]},r(0)],behaviours:Fl([_y.config({})])}),i=function(t,e){t.getSystem().isConnected()&&o.getOpt(t).each((function(t){_y.set(t,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(e)]},r(e)])}))},a=function(t,n){if(t.getSystem().isConnected()){var r=e.get(t);_y.set(r,[gs(n)])}},u={updateProgress:i,updateText:a},s=et([t.icon.toArray(),t.level.toArray(),t.level.bind((function(t){return _.from(r_[t])})).toArray()]),c=Qw(Jw.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[{dom:{tag:"div",classes:["tox-icon"],innerHtml:t_("close",t.iconProvider),attributes:{"aria-label":t.translationProvider("Close")}}}],action:function(e){t.onAction(e)}})),l=[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:n_(s,t.iconProvider)}},{dom:{tag:"div",classes:["tox-notification__body"]},components:[e.asSpec()],behaviours:Fl([_y.config({})])}];return{uid:t.uid,dom:{tag:"div",attributes:{role:"alert"},classes:t.level.map((function(t){return["tox-notification","tox-notification--in","tox-notification--"+t]})).getOr(["tox-notification","tox-notification--in"])},behaviours:Fl([Ny.config({}),Cy("notification-events",[wi(Do(),(function(t){c.getOpt(t).each(Ny.focus)}))])]),components:l.concat(t.progress?[o.asSpec()]:[]).concat(t.closeButton?[c.asSpec()]:[]),apis:u}},i_=ug({name:"Notification",factory:o_,configFields:[An("level"),yn("progress"),yn("icon"),yn("onAction"),yn("text"),yn("iconProvider"),yn("translationProvider"),Wn("closeButton",!0)],apis:{updateProgress:function(t,e,n){t.updateProgress(e,n)},updateText:function(t,e,n){t.updateText(e,n)}}});function a_(t,e,n){var r=e.backstage,o=function(t){switch(t){case"bc-bc":return Gw;case"tc-tc":return qw;case"tc-bc":return yl;case"bc-tc":default:return wl}},i=function(t){Y(t,(function(t){return t.moveTo(0,0)}))},a=function(t){t.length>0&&(ct(t).each((function(t){return t.moveRel(null,"banner")})),Y(t,(function(e,n){n>0&&e.moveRel(t[n-1].getEl(),"bc-tc")})))},u=function(t){i(t),a(t)},s=function(t,i){var a=!t.closeButton&&t.timeout&&(t.timeout>0||t.timeout<0),u=function(){i(),Lw.hide(c)},s=ys(i_.sketch({text:t.text,level:j(["success","error","warning","warn","info"],t.type)?t.type:void 0,progress:!0===t.progressBar,icon:_.from(t.icon),closeButton:!a,onAction:u,iconProvider:r.shared.providers.icons,translationProvider:r.shared.providers.translate})),c=ys(Lw.sketch(h({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:e.backstage.shared.getSink,fireDismissalEventInstead:{}},r.shared.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}})));return n.add(c),t.timeout>0&&Kw.setTimeout((function(){u()}),t.timeout),{close:u,moveTo:function(t,e){Lw.showAt(c,{anchor:"makeshift",x:t,y:e},ws(s))},moveRel:function(t,n){if("banner"!==n){var r=o(n),i={anchor:"node",root:$u(),node:_.some(er.fromDom(t)),layouts:{onRtl:function(){return[r]},onLtr:function(){return[r]}}};Lw.showAt(c,i,ws(s))}else Lw.showAt(c,e.backstage.shared.anchors.banner(),ws(s))},text:function(t){i_.updateText(s,t)},settings:t,getEl:function(){return s.element.dom},progressBar:{value:function(t){i_.updateProgress(s,t)}}}},c=function(t){t.close()},l=function(t){return t.settings};return{open:s,close:c,reposition:u,getArgs:l}}var u_,s_=function(t,e){var n=null,r=function(){null!==n&&(clearTimeout(n),n=null)},o=function(){for(var r=[],o=0;o',t.getDoc());return ea(n,er.fromDom(e.extractContents())),e.insertNode(n.dom),$i(n).each((function(t){return t.dom.normalize()})),Pd(n).map((function(e){t.selection.setCursorLocation(e.dom,Ad(e))})),n}))},m_=function(t){return mc(t,h_)},g_=function(t){return t.collapsed&&3===t.startContainer.nodeType},v_=function(t){return t.toString().replace(/\u00A0/g," ").replace(/\uFEFF/g,"")},b_=function(t){return""!==t&&-1!=="  \f\n\r\t\v".indexOf(t)},y_=function(t,e){return t.substring(e.length)},w_=function(t,e,n){var r;for(r=e-1;r>=0;r--){var o=t.charAt(r);if(b_(o))return _.none();if(o===n)break}return _.some(r)},__=function(t,e,n,r){if(void 0===r&&(r=0),!g_(e))return _.none();var o=function(t,e,r){return w_(r,e,n).getOr(e)},i=t.getParent(e.startContainer,t.isBlock)||t.getRoot();return d_(t,e.startContainer,e.startOffset,o,i).bind((function(t){var o=e.cloneRange();if(o.setStart(t.container,t.offset),o.setEnd(e.endContainer,e.endOffset),o.collapsed)return _.none();var i=v_(o),a=i.lastIndexOf(n);return 0!==a||y_(i,n).length0?E_(e[e.length-1]):T_(t,e.length)},A_=function(t,e){var n=t.childNodes;return n.length>0&&e0&&D_(t)&&n.length===e?E_(n[n.length-1]):T_(t,e)},M_=function(t,e){return d_(t,e.container,e.offset,(function(t,e){return 0===e?-1:e}),t.getRoot()).filter((function(t){var e=t.container.data.charAt(t.offset-1);return!b_(e)})).isSome()},N_=function(t){return function(e){var n=A_(e.startContainer,e.startOffset);return!M_(t,n)}},R_=function(t,e,n){return dt(n.triggerChars,(function(n){return x_(t,e,n)}))},P_=function(t,e){var n=e(),r=t.selection.getRng();return R_(t.dom,r,n).bind((function(n){return z_(t,e,n)}))},z_=function(t,e,n,r){void 0===r&&(r={});var o=e(),i=t.selection.getRng(),a=i.startContainer.nodeValue,u=K(o.lookupByChar(n.triggerChar),(function(e){return n.text.length>=e.minChars&&e.matches.getOrThunk((function(){return N_(t.dom)}))(n.range,a,n.text)}));if(0===u.length)return _.none();var s=S_.all($(u,(function(t){var e=t.fetch(n.text,t.maxResults,r);return e.then((function(e){return{matchText:n.text,items:e,columns:t.columns,onAction:t.onAction,highlightOn:t.highlightOn}}))})));return _.some({lookupData:s,context:n})},I_=Be([xn("type"),Rn("text")]),L_=function(t){return nn("separatormenuitem",I_,t)},B_=Be([Bn("type","autocompleteitem"),Bn("active",!1),Bn("disabled",!1),Bn("meta",{}),xn("value"),Rn("text"),Rn("icon")]),H_=Be([xn("type"),xn("ch"),Fn("minChars",1),Bn("columns",1),Fn("maxResults",10),Pn("matches"),Sn("fetch"),Sn("onAction"),Yn("highlightOn",[],hn)]),F_=function(t){return nn("Autocompleter.Separator",I_,t)},j_=function(t){return nn("Autocompleter.Item",B_,t)},V_=function(t){return nn("Autocompleter",H_,t)},W_=[Wn("disabled",!1),Rn("tooltip"),Rn("icon"),Rn("text"),Un("onSetup",(function(){return e}))],U_=Be([xn("type"),Sn("onAction")].concat(W_)),$_=function(t){return nn("toolbarbutton",U_,t)},Y_=[Wn("active",!1)].concat(W_),q_=Be(Y_.concat([xn("type"),Sn("onAction")])),G_=function(t){return nn("ToggleButton",q_,t)},K_=[Un("predicate",(function(){return!1})),Vn("scope","node",["node","editor"]),Vn("position","selection",["node","selection","line"])],X_=W_.concat([Bn("type","contextformbutton"),Bn("primary",!1),Sn("onAction"),Gn("original",a)]),J_=Y_.concat([Bn("type","contextformbutton"),Bn("primary",!1),Sn("onAction"),Gn("original",a)]),Q_=W_.concat([Bn("type","contextformbutton")]),Z_=Y_.concat([Bn("type","contextformtogglebutton")]),tx=sn("type",{contextformbutton:X_,contextformtogglebutton:J_}),ex=Be([Bn("type","contextform"),Un("initValue",(function(){return""})),Rn("label"),En("commands",tx),Mn("launch",sn("type",{contextformbutton:Q_,contextformtogglebutton:Z_}))].concat(K_)),nx=function(t){return nn("ContextForm",ex,t)},rx=Be([Bn("type","contexttoolbar"),xn("items")].concat(K_)),ox=function(t){return nn("ContextToolbar",rx,t)},ix=function(t){var e={};return Y(t,(function(t){e[t]={}})),Dt(e)},ax=function(t){var e=t.ui.registry.getAll().popups,n=Mt(e,(function(t){return V_(t).fold((function(t){throw new Error(an(t))}),(function(t){return t}))})),r=ix(It(n,(function(t){return t.ch}))),o=Bt(n),i=function(t){return K(o,(function(e){return e.ch===t}))};return{dataset:n,triggerChars:r,lookupByChar:i}};(function(t){t[t["CLOSE_ON_EXECUTE"]=0]="CLOSE_ON_EXECUTE",t[t["BUBBLE_TO_SANDBOX"]=1]="BUBBLE_TO_SANDBOX"})(u_||(u_={}));var ux,sx=u_,cx="tox-menu-nav__js",lx="tox-collection__item",fx="tox-swatch",dx={normal:cx,color:fx},hx="tox-collection__item--enabled",px="tox-collection__group-heading",mx="tox-collection__item-icon",gx="tox-collection__item-label",vx="tox-collection__item-accessory",bx="tox-collection__item-caret",yx="tox-collection__item-checkmark",wx="tox-collection__item--active",_x="tox-collection__item-icon-rtl",xx="tox-collection__item-container",Cx="tox-collection__item-container--column",kx="tox-collection__item-container--row",Sx="tox-collection__item-container--align-right",Tx="tox-collection__item-container--align-left",Ox="tox-collection__item-container--valign-top",Dx="tox-collection__item-container--valign-middle",Ex="tox-collection__item-container--valign-bottom",Ax=function(t){return Ht(dx,t).getOr(cx)},Mx=function(t){return"color"===t?"tox-swatches":"tox-menu"},Nx=function(t){return{backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:Mx(t),tieredMenu:"tox-tiered-menu"}},Rx=function(t){var e=Nx(t);return{backgroundMenu:e.backgroundMenu,selectedMenu:e.selectedMenu,menu:e.menu,selectedItem:e.selectedItem,item:Ax(t)}},Px=function(t,e,n){var r=Nx(n);return{tag:"div",classes:et([[r.menu,"tox-menu-"+e+"-column"],t?[r.hasIcons]:[]])}},zx=[xw.parts.items({})],Ix=function(t,e,n){var r=Nx(n),o={tag:"div",classes:et([[r.tieredMenu]])};return{dom:o,markers:Rx(n)}},Lx=function(t,e){return function(n){var r=U(n,e);return $(r,(function(e){return{dom:t,components:e}}))}},Bx=function(t){return{dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[xw.parts.items({preprocess:"auto"!==t?Lx({tag:"div",classes:["tox-swatches__row"]},t):a})]}]}},Hx=function(t){return{dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[xw.parts.items({preprocess:Lx({tag:"div",classes:["tox-collection__group"]},t)})]}},Fx=function(t,e){var n=[],r=[];return Y(t,(function(t,o){e(t,o)?(r.length>0&&n.push(r),r=[],Ft(t.dom,"innerHtml")&&r.push(t)):r.push(t)})),r.length>0&&n.push(r),$(n,(function(t){return{dom:{tag:"div",classes:["tox-collection__group"]},components:t}}))},jx=function(t,e,n){return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(1===t?["tox-collection--list"]:["tox-collection--grid"])},components:[xw.parts.items({preprocess:function(n){return"auto"!==t&&t>1?Lx({tag:"div",classes:["tox-collection__group"]},t)(n):Fx(n,(function(t,n){return"separator"===e[n].type}))}})]}},Vx=function(t,e){return{dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[xw.parts.items({preprocess:function(e){return Fx(e,(function(e,n){return"separator"===t[n].type}))}})]}},Wx=function(t){return V(t,(function(t){return"icon"in t&&void 0!==t.icon}))},Ux=function(t){return _.none()},$x=function(t,e,n,r,o){var i=Vx(n);return{value:t,dom:i.dom,components:i.components,items:n}},Yx=function(t,e,n,r,o){if("color"===o){var i=Bx(r);return{value:t,dom:i.dom,components:i.components,items:n}}if("normal"===o&&"auto"===r){i=jx(r,n);return{value:t,dom:i.dom,components:i.components,items:n}}if("normal"===o&&1===r){i=jx(1,n);return{value:t,dom:i.dom,components:i.components,items:n}}if("normal"===o){i=jx(r,n);return{value:t,dom:i.dom,components:i.components,items:n}}if("listpreview"===o&&"auto"!==r){i=Hx(r);return{value:t,dom:i.dom,components:i.components,items:n}}return{value:t,dom:Px(e,r,o),components:zx,items:n}},qx=[xn("type"),xn("src"),Rn("alt"),Yn("classes",[],hn)],Gx=Be(qx),Kx=[xn("type"),xn("text"),Rn("name"),Yn("classes",["tox-collection__item-label"],hn)],Xx=Be(Kx),Jx=Qe((function(){return un("type",{cardimage:Gx,cardtext:Xx,cardcontainer:Qx})})),Qx=Be([xn("type"),jn("direction","horizontal"),jn("align","left"),jn("valign","middle"),En("items",Jx)]),Zx=[Wn("disabled",!1),Rn("text"),Rn("shortcut"),Ye("value","value",ne((function(){return Oa("menuitem-value")})),ln()),Bn("meta",{})],tC=Be([xn("type"),Rn("label"),En("items",Jx),Un("onSetup",(function(){return e})),Un("onAction",e)].concat(Zx)),eC=function(t){return nn("cardmenuitem",tC,t)},nC=Be([xn("type"),Wn("active",!1),Rn("icon")].concat(Zx)),rC=function(t){return nn("choicemenuitem",nC,t)},oC=["inserttable","colorswatch"],iC=Be([xn("type"),Cn("fancytype",oC),Un("onAction",e)]),aC=function(t){return nn("fancymenuitem",iC,t)},uC=Be([xn("type"),Un("onSetup",(function(){return e})),Un("onAction",e),Rn("icon")].concat(Zx)),sC=function(t){return nn("menuitem",uC,t)},cC=Be([xn("type"),Sn("getSubmenuItems"),Un("onSetup",(function(){return e})),Rn("icon")].concat(Zx)),lC=function(t){return nn("nestedmenuitem",cC,t)},fC=Be([xn("type"),Rn("icon"),Wn("active",!1),Un("onSetup",(function(){return e})),Sn("onAction")].concat(Zx)),dC=function(t){return nn("togglemenuitem",fC,t)},hC=function(t,e,n){var r=Id(t.element,"."+n);if(r.length>0){var o=tt(r,(function(t){var n=t.dom.getBoundingClientRect().top,o=r[0].dom.getBoundingClientRect().top;return Math.abs(n-o)>e})).getOr(r.length);return _.some({numColumns:o,numRows:Math.ceil(r.length/o)})}return _.none()},pC=function(t,e){return Fl([Cy(t,e)])},mC=function(t){return pC(Oa("unnamed-events"),t)},gC={namedEvents:pC,unnamedEvents:mC},vC=[yn("lazySink"),yn("tooltipDom"),Bn("exclusive",!0),Bn("tooltipComponents",[]),Bn("delay",300),Vn("mode","normal",["normal","follow-highlight"]),Bn("anchor",(function(t){return{anchor:"hotspot",hotspot:t,layouts:{onLtr:i([wl,yl,ml,vl,gl,bl]),onRtl:i([wl,yl,ml,vl,gl,bl])}}})),Bc("onHide"),Bc("onShow")],bC=function(){var t=Kn(_.none()),e=Kn(_.none()),n=function(){return e.get()},r=function(t){e.set(_.some(t))},o=function(){e.set(_.none())},a=function(){t.get().each((function(t){clearTimeout(t)}))},u=function(e,n){a(),t.set(_.some(setTimeout((function(){e()}),n)))},s=function(){return e.get().isSome()},c=i("not-implemented");return Ga({getTooltip:n,isShowing:s,setTooltip:r,clearTooltip:o,clearTimer:a,resetTimer:u,readState:c})},yC=Object.freeze({__proto__:null,init:bC}),wC=Oa("tooltip.exclusive"),_C=Oa("tooltip.show"),xC=Oa("tooltip.hide"),CC=function(t,e,n){t.getSystem().broadcastOn([wC],{})},kC=function(t,e,n,r){n.getTooltip().each((function(t){t.getSystem().isConnected()&&_y.set(t,r)}))},SC=Object.freeze({__proto__:null,hideAllExclusive:CC,setComponents:kC}),TC=function(t,e){var n=function(n){e.getTooltip().each((function(r){jh(r),t.onHide(n,r),e.clearTooltip()})),e.clearTimer()},r=function(n){if(!e.isShowing()){CC(n);var r=t.lazySink(n).getOrDie(),o=n.getSystem().build({dom:t.tooltipDom,components:t.tooltipComponents,events:gi("normal"===t.mode?[wi(Oo(),(function(t){li(n,_C)})),wi(So(),(function(t){li(n,xC)}))]:[]),behaviours:Fl([_y.config({})])});e.setTooltip(o),Bh(r,o),t.onShow(n,o),Nh.position(r,t.anchor(n),o)}};return gi(et([[wi(_C,(function(n){e.resetTimer((function(){r(n)}),t.delay)})),wi(xC,(function(r){e.resetTimer((function(){n(r)}),t.delay)})),wi(Vo(),(function(t,e){var r=e;r.universal||j(r.channels,wC)&&n(t)})),Mi((function(t){n(t)}))],"normal"===t.mode?[wi(Do(),(function(t){li(t,_C)})),wi(Fo(),(function(t){li(t,xC)})),wi(Oo(),(function(t){li(t,_C)})),wi(So(),(function(t){li(t,xC)}))]:[wi(si(),(function(t,e){li(t,_C)})),wi(ci(),(function(t){li(t,xC)}))]]))},OC=Object.freeze({__proto__:null,events:TC}),DC=Vl({fields:vC,name:"tooltipping",active:OC,state:yC,apis:SC}),EC=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),AC=tinymce.util.Tools.resolve("tinymce.util.I18n"),MC=["input","button","textarea","select"],NC=function(t,e,n){var r=e.disabled()?FC:jC;r(t,e)},RC=function(t,e){return!0===e.useNative&&j(MC,Pi(t.element))},PC=function(t){return va(t.element,"disabled")},zC=function(t){ha(t.element,"disabled","disabled")},IC=function(t){ba(t.element,"disabled")},LC=function(t){return"true"===ma(t.element,"aria-disabled")},BC=function(t){ha(t.element,"aria-disabled","true")},HC=function(t){ha(t.element,"aria-disabled","false")},FC=function(t,e,n){e.disableClass.each((function(e){Ou(t.element,e)}));var r=RC(t,e)?zC:BC;r(t),e.onDisabled(t)},jC=function(t,e,n){e.disableClass.each((function(e){Eu(t.element,e)}));var r=RC(t,e)?IC:HC;r(t),e.onEnabled(t)},VC=function(t,e){return RC(t,e)?PC(t):LC(t)},WC=function(t,e,n,r){var o=r?FC:jC;o(t,e)},UC=Object.freeze({__proto__:null,enable:jC,disable:FC,isDisabled:VC,onLoad:NC,set:WC}),$C=function(t,e){return Za({classes:e.disabled()?e.disableClass.toArray():[]})},YC=function(t,e){return gi([vi(Wo(),(function(e,n){return VC(e,t)})),Pl(t,e,NC)])},qC=Object.freeze({__proto__:null,exhibit:$C,events:YC}),GC=[Un("disabled",l),Bn("useNative",!0),An("disableClass"),Bc("onDisabled"),Bc("onEnabled")],KC=Vl({fields:GC,name:"disabling",active:qC,apis:UC}),XC=tinymce.util.Tools.resolve("tinymce.EditorManager"),JC=function(t){var e=t.getParam("skin"),n=t.getParam("skin_url");if(!1!==e){var r=e||"oxide";n=n?t.documentBaseURI.toAbsolute(n):XC.baseURL+"/skins/ui/"+r}return n},QC=function(t){return t.getParam("readonly",!1,"boolean")},ZC=function(t){return!1===t.getParam("skin")},tk=function(t){return t.getParam("height",Math.max(t.getElement().offsetHeight,200))},ek=function(t){return t.getParam("width",EC.DOM.getStyle(t.getElement(),"width"))},nk=function(t){return _.from(t.getParam("min_width")).filter(P)},rk=function(t){return _.from(t.getParam("min_height")).filter(P)},ok=function(t){return _.from(t.getParam("max_width")).filter(P)},ik=function(t){return _.from(t.getParam("max_height")).filter(P)},ak=function(t){return _.from(t.getParam("style_formats")).filter(D)},uk=function(t){return t.getParam("style_formats_merge",!1,"boolean")},sk=function(t){return t.getParam("lineheight_formats","1 1.1 1.2 1.3 1.4 1.5 2","string").split(" ")},ck=function(t){return t.getParam("removed_menuitems","")},lk=function(t){return!1!==t.getParam("menubar",!0,"boolean")},fk=function(t){var e=t.getParam("toolbar",!0),n=!0===e,r=T(e),o=D(e)&&e.length>0;return!hk(t)&&(o||r||n)},dk=function(t){var e=W(9,(function(e){return t.getParam("toolbar"+(e+1),!1,"string")})),n=K(e,(function(t){return"string"===typeof t}));return n.length>0?_.some(n):_.none()},hk=function(t){return dk(t).fold((function(){var e=t.getParam("toolbar",[],"string[]");return e.length>0}),(function(){return!0}))};(function(t){t["default"]="wrap",t["floating"]="floating",t["sliding"]="sliding",t["scrolling"]="scrolling"})(ux||(ux={}));var pk,mk=function(t){return t.getParam("toolbar_mode","","string")};(function(t){t["auto"]="auto",t["top"]="top",t["bottom"]="bottom"})(pk||(pk={}));var gk,vk=function(t){return t.getParam("toolbar_groups",{},"object")},bk=function(t){return t.getParam("toolbar_location",pk.auto,"string")},yk=function(t){return bk(t)===pk.bottom},wk=function(t){return t.getParam("fixed_toolbar_container","","string")},_k=function(t){return t.getParam("toolbar_persist",!1,"boolean")},xk=function(t){var e=wk(t);return e.length>0&&t.inline?pc($u(),e):_.none()},Ck=function(t){return t.inline&&xk(t).isSome()},kk=function(t){var e=xk(t);return e.getOrThunk((function(){return Bu(Lu(er.fromDom(t.getElement())))}))},Sk=function(t){return t.inline&&!lk(t)&&!fk(t)&&!hk(t)},Tk=function(t){var e=t.getParam("toolbar_sticky",!1,"boolean");return(e||t.inline)&&!Ck(t)&&!Sk(t)},Ok=function(t){return t.getParam("draggable_modal",!1,"boolean")},Dk=function(t){var e=t.getParam("menu");return e?Mt(e,(function(t){return h(h({},t),{items:t.items})})):{}},Ek=function(t){return t.getParam("menubar")},Ak=function(t){return t.getParam("toolbar",!0)},Mk=function(t){return t.getParam("file_picker_callback")},Nk=function(t){return t.getParam("file_picker_types")},Rk=function(t){return t.getParam("file_browser_callback_types")},Pk=function(t){return!1===t.getParam("typeahead_urls")},zk=function(t){return t.getParam("anchor_top","#top")},Ik=function(t){return t.getParam("anchor_bottom","#bottom")},Lk=function(t){var e=t.getParam("file_picker_validator_handler",void 0,"function");return void 0===e?t.getParam("filepicker_validator_handler",void 0,"function"):e},Bk="silver.readonly",Hk=Be([kn("readonly")]),Fk=function(t,e){var n=t.outerContainer,r=n.element;e&&(t.mothership.broadcastOn([hp()],{target:r}),t.uiMothership.broadcastOn([hp()],{target:r})),t.mothership.broadcastOn([Bk],{readonly:e}),t.uiMothership.broadcastOn([Bk],{readonly:e})},jk=function(t,e){t.on("init",(function(){t.mode.isReadOnly()&&Fk(e,!0)})),t.on("SwitchMode",(function(){return Fk(e,t.mode.isReadOnly())})),QC(t)&&t.setMode("readonly")},Vk=function(){var t;return Yl.config({channels:(t={},t[Bk]={schema:Hk,onReceive:function(t,e){KC.set(t,e.readonly)}},t)})},Wk=function(t){return KC.config({disabled:t,disableClass:"tox-collection__item--state-disabled"})},Uk=function(t){return KC.config({disabled:t})},$k=function(t){return KC.config({disabled:t,disableClass:"tox-tbtn--disabled"})},Yk=function(t){return KC.config({disabled:t,disableClass:"tox-tbtn--disabled",useNative:!1})},qk={item:Wk,button:Uk,splitButton:$k,toolbarButton:Yk},Gk=function(t,e){var n=t.getApi(e);return function(t){t(n)}},Kk=function(t,e){return Ai((function(n){var r=Gk(t,n);r((function(n){var r=t.onSetup(n);null!==r&&void 0!==r&&e.set(r)}))}))},Xk=function(t,e){return Mi((function(n){return Gk(t,n)(e.get())}))},Jk=function(t,e){return Ri((function(n,r){Gk(t,n)(t.onAction),t.triggersSubmenu||e!==sx.CLOSE_ON_EXECUTE||(li(n,qo()),r.stop())}))},Qk=(gk={},gk[Wo()]=["disabling","alloy.base.behaviour","toggling","item-events"],gk),Zk=function(t){return nt(t,(function(t){return t.toArray()}))},tS=function(t,n,r,o){var i=Kn(e);return{type:"item",dom:n.dom,components:Zk(n.optComponents),data:t.data,eventOrder:Qk,hasSubmenu:t.triggersSubmenu,itemBehaviours:Fl([Cy("item-events",[Jk(t,r),Kk(t,i),Xk(t,i)]),qk.item((function(){return t.disabled||o.isDisabled()})),Vk(),_y.config({})].concat(t.itemBehaviours))}},eS=function(t){return{value:t.value,meta:h({text:t.text.getOr("")},t.meta)}},nS=tinymce.util.Tools.resolve("tinymce.Env"),rS=function(t){var e={alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"},n={meta:"Ctrl",access:"Shift+Alt"},r=nS.mac?e:n,o=t.split("+"),i=$(o,(function(t){var e=t.toLowerCase().trim();return Ft(r,e)?r[e]:t}));return nS.mac?i.join(""):i.join("+")},oS=function(t){return{dom:{tag:"div",classes:[mx],innerHtml:t}}},iS=function(t){return{dom:{tag:"div",classes:[gx]},components:[gs(AC.translate(t))]}},aS=function(t,e){return{dom:{tag:"div",classes:e,innerHtml:t}}},uS=function(t,e){return{dom:{tag:"div",classes:[gx]},components:[{dom:{tag:t.tag,styles:t.styles},components:[gs(AC.translate(e))]}]}},sS=function(t){return{dom:{tag:"div",classes:[vx],innerHtml:rS(t)}}},cS=function(t){return{dom:{tag:"div",classes:[yx],innerHtml:t_("checkmark",t)}}},lS=function(t){return{dom:{tag:"div",classes:[bx],innerHtml:t_("chevron-right",t)}}},fS=function(t){return{dom:{tag:"div",classes:[bx],innerHtml:t_("chevron-down",t)}}},dS=function(t,e){var n="vertical"===t.direction?Cx:kx,r="left"===t.align?Tx:Sx,o=function(){switch(t.valign){case"top":return Ox;case"middle":return Dx;case"bottom":return Ex}};return{dom:{tag:"div",classes:[xx,n,r,o()]},components:e}},hS=function(t,e,n){return{dom:{tag:"img",classes:e,attributes:{src:t,alt:n.getOr("")}}}},pS=function(t,e,n,r){var o="custom",i="remove",a=function(){var a=fx,u=n.getOr(""),s=t.map((function(t){return{title:r.translate(t)}})).getOr({}),c={tag:"div",attributes:s,classes:[a]};return h(h({},c),e===o?{tag:"button",classes:m(c.classes,["tox-swatches__picker-btn"]),innerHtml:u}:e===i?{classes:m(c.classes,["tox-swatch--remove"]),innerHtml:u}:{attributes:h(h({},c.attributes),{"data-mce-color":e}),styles:{"background-color":e}})};return{dom:a(),optComponents:[]}},mS=function(t,e){var n=e.map((function(t){return{attributes:{title:AC.translate(t)}}})).getOr({});return h({tag:"div",classes:[cx,lx].concat(t?[_x]:[])},n)},gS=function(t,e,n,r,o){var i=n?e.or(_.some("")).map(oS):_.none(),a=t.checkMark,u=t.htmlContent.fold((function(){return t.textContent.map(r)}),(function(t){return _.some(aS(t,[gx]))})),s={dom:mS(o,t.ariaLabel),optComponents:[i,u,t.shortcutContent.map(sS),a,t.caret]};return s},vS=["list-num-default","list-num-lower-alpha","list-num-lower-greek","list-num-lower-roman","list-num-upper-alpha","list-num-upper-roman"],bS=["list-bull-circle","list-bull-default","list-bull-square"],yS=function(t,e,n,r){void 0===r&&(r=_.none());var o=function(t){return t.map((function(t){return AC.isRtl()&&j(vS,t)?t+"-rtl":t}))},i=AC.isRtl()&&t.iconContent.exists((function(t){return j(bS,t)})),a=o(t.iconContent).map((function(t){return e_(t,e.icons,r)})),s=_.from(t.meta).fold((function(){return iS}),(function(t){return Ft(t,"style")?u(uS,t.style):iS}));return"color"===t.presets?pS(t.ariaLabel,t.value,a,e):gS(t,a,n,s,i)},wS=function(t,e){return Ht(t,"tooltipWorker").map((function(t){return[DC.config({lazySink:e.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:function(t){return{anchor:"submenu",item:t,overrides:{maxHeightFunction:Af}}},mode:"follow-highlight",onShow:function(e,n){t((function(t){DC.setComponents(e,[vs({element:er.fromDom(t)})])}))}})]})).getOr([])},_S=function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},xS=function(t){return EC.DOM.encode(t)},CS=function(t,e){var n=AC.translate(t),r=xS(n);if(e.length>0){var o=new RegExp(_S(e),"gi");return r.replace(o,(function(t){return''+t+""}))}return r},kS=function(t,e,n,r,o,i,a,u){void 0===u&&(u=!0);var s=yS({presets:r,textContent:_.none(),htmlContent:n?t.text.map((function(t){return CS(t,e)})):_.none(),ariaLabel:t.text,iconContent:t.icon,shortcutContent:_.none(),checkMark:_.none(),caret:_.none(),value:t.value},a.providers,u,t.icon);return tS({data:eS(t),disabled:t.disabled,getApi:function(){return{}},onAction:function(e){return o(t.value,t.meta)},onSetup:function(){return function(){}},triggersSubmenu:!1,itemBehaviours:wS(t.meta,a)},s,i,a.providers)},SS=function(t,e,n,r,o,i,a,u){void 0===u&&(u=!0);var s=function(t){return{setActive:function(e){Jy.set(t,e)},isActive:function(){return Jy.isOn(t)},isDisabled:function(){return KC.isDisabled(t)},setDisabled:function(e){return KC.set(t,e)}}},c=yS({presets:n,textContent:e?t.text:_.none(),htmlContent:_.none(),ariaLabel:t.text,iconContent:t.icon,shortcutContent:e?t.shortcut:_.none(),checkMark:e?_.some(cS(a.icons)):_.none(),caret:_.none(),value:t.value},a,u);return Gt(tS({data:eS(t),disabled:t.disabled,getApi:s,onAction:function(e){return r(t.value)},onSetup:function(t){return t.setActive(o),function(){}},triggersSubmenu:!1,itemBehaviours:[]},c,i,a),{toggling:{toggleClass:hx,toggleOnExecute:!1,selected:t.active}})},TS=zm(lw(),fw()),OS=function(t){return{value:t}},DS=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,ES=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,AS=function(t){return DS.test(t)||ES.test(t)},MS=function(t){var e=t.value.replace(DS,(function(t,e,n,r){return e+e+n+n+r+r}));return{value:e}},NS=function(t){var e=MS(t),n=ES.exec(e.value);return null===n?["FFFFFF","FF","FF","FF"]:n},RS=function(t){var e=t.toString(16);return 1===e.length?"0"+e:e},PS=function(t){var e=RS(t.red)+RS(t.green)+RS(t.blue);return OS(e)},zS=Math.min,IS=Math.max,LS=Math.round,BS=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,HS=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,FS=function(t,e,n,r){return{red:t,green:e,blue:n,alpha:r}},jS=function(t){var e=parseInt(t,10);return e.toString()===t&&e>=0&&e<=255},VS=function(t){var e,n,r,o=(t.hue||0)%360,i=t.saturation/100,a=t.value/100;if(i=IS(0,zS(i,1)),a=IS(0,zS(a,1)),0===i)return e=n=r=LS(255*a),FS(e,n,r,1);var u=o/60,s=a*i,c=s*(1-Math.abs(u%2-1)),l=a-s;switch(Math.floor(u)){case 0:e=s,n=c,r=0;break;case 1:e=c,n=s,r=0;break;case 2:e=0,n=s,r=c;break;case 3:e=0,n=c,r=s;break;case 4:e=c,n=0,r=s;break;case 5:e=s,n=0,r=c;break;default:e=n=r=0}return e=LS(255*(e+l)),n=LS(255*(n+l)),r=LS(255*(r+l)),FS(e,n,r,1)},WS=function(t){var e=NS(t),n=parseInt(e[1],16),r=parseInt(e[2],16),o=parseInt(e[3],16);return FS(n,r,o,1)},US=function(t,e,n,r){var o=parseInt(t,10),i=parseInt(e,10),a=parseInt(n,10),u=parseFloat(r);return FS(o,i,a,u)},$S=function(t){if("transparent"===t)return _.some(FS(0,0,0,0));var e=BS.exec(t);if(null!==e)return _.some(US(e[1],e[2],e[3],"1"));var n=HS.exec(t);return null!==n?_.some(US(n[1],n[2],n[3],n[4])):_.none()},YS=function(t){return"rgba("+t.red+","+t.green+","+t.blue+","+t.alpha+")"},qS=FS(255,0,0,1),GS=function(t){return t.fire("SkinLoaded")},KS=function(t,e){return t.fire("SkinLoadError",e)},XS=function(t){return t.fire("ResizeEditor")},JS=function(t,e){return t.fire("ResizeContent",e)},QS=function(t,e){return t.fire("ScrollContent",e)},ZS=function(t,e){return t.fire("TextColorChange",e)},tT=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),eT="tinymce-custom-colors";function nT(t){void 0===t&&(t=10);var e=tT.getItem(eT),n=T(e)?JSON.parse(e):[],r=function(e){var n=t-e.length;return n<0?e.slice(0,t):e},o=r(n),i=function(e){F(o,e).each(a),o.unshift(e),o.length>t&&o.pop(),tT.setItem(eT,JSON.stringify(o))},a=function(t){o.splice(t,1)},u=function(){return o.slice(0)};return{add:i,state:u}}var rT="choiceitem",oT=[{type:rT,text:"Light Green",value:"#BFEDD2"},{type:rT,text:"Light Yellow",value:"#FBEEB8"},{type:rT,text:"Light Red",value:"#F8CAC6"},{type:rT,text:"Light Purple",value:"#ECCAFA"},{type:rT,text:"Light Blue",value:"#C2E0F4"},{type:rT,text:"Green",value:"#2DC26B"},{type:rT,text:"Yellow",value:"#F1C40F"},{type:rT,text:"Red",value:"#E03E2D"},{type:rT,text:"Purple",value:"#B96AD9"},{type:rT,text:"Blue",value:"#3598DB"},{type:rT,text:"Dark Turquoise",value:"#169179"},{type:rT,text:"Orange",value:"#E67E23"},{type:rT,text:"Dark Red",value:"#BA372A"},{type:rT,text:"Dark Purple",value:"#843FA1"},{type:rT,text:"Dark Blue",value:"#236FA1"},{type:rT,text:"Light Gray",value:"#ECF0F1"},{type:rT,text:"Medium Gray",value:"#CED4D9"},{type:rT,text:"Gray",value:"#95A5A6"},{type:rT,text:"Dark Gray",value:"#7E8C8D"},{type:rT,text:"Navy Blue",value:"#34495E"},{type:rT,text:"Black",value:"#000000"},{type:rT,text:"White",value:"#ffffff"}],iT=nT(10),aT=function(t){var e=[],n=document.createElement("canvas");n.height=1,n.width=1;for(var r=n.getContext("2d"),o=function(t,e){var n=255,r=e/255,o=Math.round(t*r+n*(1-r));return("0"+o.toString(16)).slice(-2).toUpperCase()},i=function(t){if(/^[0-9A-Fa-f]{6}$/.test(t))return"#"+t.toUpperCase();r.clearRect(0,0,n.width,n.height),r.fillStyle="#FFFFFF",r.fillStyle=t,r.fillRect(0,0,1,1);var e=r.getImageData(0,0,1,1).data,i=e[0],a=e[1],u=e[2],s=e[3];return"#"+o(i,s)+o(a,s)+o(u,s)},a=0;a0?d(n,r,e,o):r.text.length-n.matchLength>=10?s():u()}}))}))}))},m=c_((function(t){27!==t.which&&p()}),50),g={onKeypress:m,cancelIfNecessary:s,isMenuOpen:i,isActive:a,isProcessingAction:r.get,getView:function(){return Lw.getContent(o)}};!1===t.hasPlugin("rtc")&&k_.setup(g,t)},lO={register:cO},fO=f,dO=function(t,e,n){return js(t,e,fO,n)},hO=function(t,e,n){return Vs(t,e,fO,n)},pO=Bs,mO=function(t,e,n){return mc(t,e,n).isSome()};function gO(t,e){var n=null,r=function(){for(var r=[],o=0;ovO||r>vO},_O=function(t){var e=Kn(_.none()),n=Kn(!1),r=gO((function(e){t.triggerEvent(Yo(),e),n.set(!0)}),bO),o=function(t){return yO(t).each((function(o){r.cancel();var i={x:o.clientX,y:o.clientY,target:t.target};r.schedule(t),n.set(!1),e.set(_.some(i))})),_.none()},i=function(t){return r.cancel(),yO(t).each((function(t){e.get().each((function(n){wO(t,n)&&e.set(_.none())}))})),_.none()},a=function(o){r.cancel();var i=function(t){return oo(t.target,o.target)};return e.get().filter(i).map((function(e){return n.get()?(o.prevent(),!1):t.triggerEvent($o(),o)}))},u=le([{key:yo(),value:o},{key:wo(),value:i},{key:_o(),value:a}]),s=function(t,e){return Ht(u,e).bind((function(e){return e(t)}))};return{fireIfReady:s}},xO=function(t){var e=t.raw;return e.which===Fg[0]&&!j(["input","textarea"],Pi(t.target))&&!mO(t.target,'[contenteditable="true"]')},CO=function(){return qr().browser.isFirefox()},kO=Le([Sn("triggerEvent"),Bn("stopBackspace",!0)]),SO=function(t,e){return CO()?hO(t,"focus",e):dO(t,"focusin",e)},TO=function(t,e){return CO()?hO(t,"blur",e):dO(t,"focusout",e)},OO=function(t,e){var n=on("Getting GUI events settings",kO,e),r=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],o=_O(n),i=$(r.concat(["selectstart","input","contextmenu","change","transitionend","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),(function(e){return dO(t,e,(function(t){o.fireIfReady(t,e).each((function(e){e&&t.kill()}));var r=n.triggerEvent(e,t);r&&t.kill()}))})),a=Kn(_.none()),u=dO(t,"paste",(function(t){o.fireIfReady(t,"paste").each((function(e){e&&t.kill()}));var e=n.triggerEvent("paste",t);e&&t.kill(),a.set(_.some(setTimeout((function(){n.triggerEvent(jo(),t)}),0)))})),s=dO(t,"keydown",(function(t){var e=n.triggerEvent("keydown",t);e?t.kill():!0===n.stopBackspace&&xO(t)&&t.prevent()})),c=SO(t,(function(t){var e=n.triggerEvent("focusin",t);e&&t.kill()})),l=Kn(_.none()),f=TO(t,(function(t){var e=n.triggerEvent("focusout",t);e&&t.kill(),l.set(_.some(setTimeout((function(){n.triggerEvent(Fo(),t)}),0)))})),d=function(){Y(i,(function(t){t.unbind()})),s.unbind(),c.unbind(),f.unbind(),u.unbind(),a.get().each(clearTimeout),l.get().each(clearTimeout)};return{unbind:d}},DO=function(t,e){var n=Ht(t,"target").getOr(e);return Kn(n)},EO=function(t,e){var n=Kn(!1),r=Kn(!1),o=function(){n.set(!0)},i=function(){r.set(!0)};return{stop:o,cut:i,isStopped:n.get,isCut:r.get,event:t,setSource:e.set,getSource:e.get}},AO=function(t){var n=Kn(!1),r=function(){n.set(!0)};return{stop:r,cut:e,isStopped:n.get,isCut:l,event:t,setSource:c("Cannot set source of a broadcasted event"),getSource:c("Cannot get source of a broadcasted event")}},MO=Wt.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),NO=function(t,e,n,r,o,i){var a=t(e,r),u=EO(n,o);return a.fold((function(){return i.logEventNoHandlers(e,r),MO.complete()}),(function(t){var n=t.descHandler,r=au(n);return r(u),u.isStopped()?(i.logEventStopped(e,t.element,n.purpose),MO.stopped()):u.isCut()?(i.logEventCut(e,t.element,n.purpose),MO.complete()):$i(t.element).fold((function(){return i.logNoParent(e,t.element,n.purpose),MO.complete()}),(function(r){return i.logEventResponse(e,t.element,n.purpose),MO.resume(r)}))}))},RO=function(t,e,n,r,o,i){return NO(t,e,n,r,o,i).fold((function(){return!0}),(function(r){return RO(t,e,n,r,o,i)}),(function(){return!1}))},PO=function(t,e,n,r,o){var i=DO(n,r);return NO(t,e,n,r,i,o)},zO=function(t,e,n){var r=AO(e);return Y(t,(function(t){var e=t.descHandler,n=au(e);n(r)})),r.isStopped()},IO=function(t,e,n,r){return LO(t,e,n,n.target,r)},LO=function(t,e,n,r,o){var i=DO(n,r);return RO(t,e,n,r,i,o)},BO=function(t,e){return{element:t,descHandler:e}},HO=function(t,e){return{id:t,descHandler:e}};function FO(){var t={},e=function(e,n,r){At(r,(function(r,o){var i=void 0!==t[o]?t[o]:{};i[n]=iu(r,e),t[o]=i}))},n=function(t,e){return Pa(e).fold((function(){return _.none()}),(function(n){return t.bind((function(t){return Ht(t,n)})).map((function(t){return BO(e,t)}))}))},r=function(e){return Ht(t,e).map((function(t){return It(t,(function(t,e){return HO(e,t)}))})).getOr([])},o=function(e,r,o){var i=Ht(t,r);return lo(o,(function(t){return n(i,t)}),e)},i=function(e){At(t,(function(t,n){t.hasOwnProperty(e)&&delete t[e]}))};return{registerId:e,unregisterId:i,filterByType:r,find:o}}function jO(){var t=FO(),e={},n=function(t){var e=t.element;return Pa(e).fold((function(){return Na("uid-",t.element)}),(function(t){return t}))},r=function(t,n){var r=e[n];if(r!==t)throw new Error('The tagId "'+n+'" is already used by: '+xa(r.element)+"\nCannot use it for: "+xa(t.element)+"\nThe conflicting element is"+(Uu(r.element)?" ":" not ")+"already in the DOM");i(t)},o=function(o){var i=n(o);jt(e,i)&&r(o,i);var a=[o];t.registerId(a,i,o.events),e[i]=o},i=function(n){Pa(n.element).each((function(n){delete e[n],t.unregisterId(n)}))},a=function(e){return t.filterByType(e)},u=function(e,n,r){return t.find(e,n,r)},s=function(t){return Ht(e,t)};return{find:u,filter:a,register:o,unregister:i,getById:s}}var VO=function(t){var e=t.dom,n=e.attributes,r=p(e,["attributes"]);return{uid:t.uid,dom:h({tag:"div",attributes:h({role:"presentation"},n)},r),components:t.components,behaviours:Xp(t.containerBehaviours),events:t.events,domModification:t.domModification,eventOrder:t.eventOrder}},WO=ug({name:"Container",factory:VO,configFields:[Bn("components",[]),Kp("containerBehaviours",[]),Bn("events",{}),Bn("domModification",{}),Bn("eventOrder",{})]}),UO=function(t){var n=function(e){return $i(t.element).fold((function(){return!0}),(function(t){return oo(e,t)}))},r=jO(),o=function(t,e){return r.find(n,t,e)},a=OO(t.element,{triggerEvent:function(t,e){return Dc(t,e.target,(function(n){return IO(o,t,e,n)}))}}),u={debugInfo:i("real"),triggerEvent:function(t,e,n){Dc(t,e,(function(r){return LO(o,t,n,e,r)}))},triggerFocus:function(t,n){Pa(t).fold((function(){Xl(t)}),(function(r){Dc(Ho(),t,(function(r){return PO(o,Ho(),{originator:n,kill:e,prevent:e,target:t},t,r),!1}))}))},triggerEscape:function(t,e){u.triggerEvent("keydown",t.element,e.event)},getByUid:function(t){return b(t)},getByDom:function(t){return y(t)},build:ys,addToGui:function(t){l(t)},removeFromGui:function(t){d(t)},addToWorld:function(t){s(t)},removeFromWorld:function(t){c(t)},broadcast:function(t){m(t)},broadcastOn:function(t,e){g(t,e)},broadcastEvent:function(t,e){v(t,e)},isConnected:f},s=function(t){t.connect(u),Bi(t.element)||(r.register(t),Y(t.components(),s),u.triggerEvent(Ko(),t.element,{target:t.element}))},c=function(t){Bi(t.element)||(Y(t.components(),c),r.unregister(t)),t.disconnect()},l=function(e){Bh(t,e)},d=function(t){jh(t)},h=function(){a.unbind(),aa(t.element)},p=function(t){var e=r.filter(Vo());Y(e,(function(e){var n=e.descHandler,r=au(n);r(t)}))},m=function(t){p({universal:!0,data:t})},g=function(t,e){p({universal:!1,channels:t,data:e})},v=function(t,e){var n=r.filter(t);return zO(n,e)},b=function(t){return r.getById(t).fold((function(){return gt.error(new Error('Could not find component with uid: "'+t+'" in system.'))}),gt.value)},y=function(t){var e=Pa(t).getOr("not found");return b(e)};return s(t),{root:t,element:t.element,destroy:h,add:l,remove:d,getByUid:b,getByDom:y,addToWorld:s,removeFromWorld:c,broadcast:m,broadcastOn:g,broadcastEvent:v}},$O=function(t,e){return{dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:$(t.items,e.interpreter)}},YO=i([Bn("prefix","form-field"),Kp("fieldBehaviours",[yg,Gp])]),qO=i([Em({schema:[yn("dom")],name:"label"}),Em({factory:{sketch:function(t){return{uid:t.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:t.text}}}},schema:[yn("text")],name:"aria-descriptor"}),Om({factory:{sketch:function(t){var e=se(t,["factory"]);return t.factory.sketch(e)}},schema:[yn("factory")],name:"field"})]),GO=function(t,e,n,r){var o=Jp(t.fieldBehaviours,[yg.config({find:function(e){return Vm(e,t,"field")}}),Gp.config({store:{mode:"manual",getValue:function(t){return yg.getCurrent(t).bind(Gp.getValue)},setValue:function(t,e){yg.getCurrent(t).each((function(t){Gp.setValue(t,e)}))}}})]),i=gi([Ai((function(e,n){var r=Um(e,t,["label","field","aria-descriptor"]);r.field().each((function(e){var n=Oa(t.prefix);r.label().each((function(t){ha(t.element,"for",n),ha(e.element,"id",n)})),r["aria-descriptor"]().each((function(n){var r=Oa(t.prefix);ha(n.element,"id",r),ha(e.element,"aria-describedby",r)}))}))}))]),a={getField:function(e){return Vm(e,t,"field")},getLabel:function(e){return Vm(e,t,"label")}};return{uid:t.uid,dom:t.dom,components:e,behaviours:o,events:i,apis:a}},KO=sg({name:"FormField",configFields:YO(),partFields:qO(),factory:GO,apis:{getField:function(t,e){return t.getField(e)},getLabel:function(t,e){return t.getLabel(e)}}}),XO=function(t,e){return Za({attributes:le([{key:e.tabAttr,value:"true"}])})},JO=Object.freeze({__proto__:null,exhibit:XO}),QO=[Bn("tabAttr","data-alloy-tabstop")],ZO=Vl({fields:QO,name:"tabstopping",active:JO}),tD=tinymce.util.Tools.resolve("tinymce.html.Entities"),eD=function(t,e,n,r){var o=rD(t,e,n,r);return KO.sketch(o)},nD=function(t,e){return eD(t,e,[],[])},rD=function(t,e,n,r){return{dom:iD(n),components:t.toArray().concat([e]),fieldBehaviours:Fl(r)}},oD=function(){return iD([])},iD=function(t){return{tag:"div",classes:["tox-form__group"].concat(t)}},aD=function(t,e){return KO.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:e.translate(t)}})},uD=Oa("form-component-change"),sD=Oa("form-close"),cD=Oa("form-cancel"),lD=Oa("form-action"),fD=Oa("form-submit"),dD=Oa("form-block"),hD=Oa("form-unblock"),pD=Oa("form-tabchange"),mD=Oa("form-resize"),gD=function(t,e){var n,r=t.label.map((function(t){return aD(t,e)})),o=function(t){return function(e,n){mc(n.event.target,"[data-collection-item-value]").each((function(r){t(e,n,r,ma(r,"data-collection-item-value"))}))}},i=function(n,r){var o=$(r,(function(n){var r=AC.translate(n.text),o=1===t.columns?'
'+r+"
":"",i='
'+n.icon+"
",a={_:" "," - ":" ","-":" "},u=r.replace(/\_| \- |\-/g,(function(t){return a[t]})),s=e.isDisabled()?" tox-collection__item--state-disabled":"";return'
'+i+o+"
"})),i="auto"!==t.columns&&t.columns>1?U(o,t.columns):[o],a=$(i,(function(t){return'
'+t.join("")+"
"}));la(n.element,a.join(""))},u=o((function(n,r,o,i){r.stop(),e.isDisabled()||fi(n,lD,{name:t.name,value:i})})),s=[wi(Oo(),o((function(t,e,n){Xl(n)}))),wi(Po(),u),wi($o(),u),wi(Do(),o((function(t,e,n){pc(t.element,"."+wx).each((function(t){Eu(t,wx)})),Ou(n,wx)}))),wi(Eo(),o((function(t){pc(t.element,"."+wx).each((function(t){Eu(t,wx)}))}))),Ri(o((function(e,n,r,o){fi(e,lD,{name:t.name,value:o})})))],c=function(t,e){return $(Id(t.element,".tox-collection__item"),e)},l=KO.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(1!==t.columns?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:a},behaviours:Fl([KC.config({disabled:e.isDisabled,onDisabled:function(t){c(t,(function(t){Ou(t,"tox-collection__item--state-disabled"),ha(t,"aria-disabled",!0)}))},onEnabled:function(t){c(t,(function(t){Eu(t,"tox-collection__item--state-disabled"),ba(t,"aria-disabled")}))}}),Vk(),_y.config({}),Gp.config({store:{mode:"memory",initialValue:[]},onSetValue:function(e,n){i(e,n),"auto"===t.columns&&hC(e,5,"tox-collection__item").each((function(t){var n=t.numRows,r=t.numColumns;fy.setGridSize(e,n,r)})),li(e,mD)}}),ZO.config({}),fy.config(MT(t.columns,"normal")),Cy("collection-events",s)]),eventOrder:(n={},n[Wo()]=["disabling","alloy.base.behaviour","collection-events"],n)}),f=["tox-form__group--collection"];return eD(r,l,f,[])},vD=i([An("data"),Bn("inputAttributes",{}),Bn("inputStyles",{}),Bn("tag","input"),Bn("inputClasses",[]),Bc("onSetValue"),Bn("styles",{}),Bn("eventOrder",{}),Kp("inputBehaviours",[Gp,Ny]),Bn("selectOnFocus",!0)]),bD=function(t){return Fl([Ny.config({onFocus:t.selectOnFocus?function(t){var e=t.element,n=is(e);e.dom.setSelectionRange(0,n.length)}:e})])},yD=function(t){return h(h({},bD(t)),Jp(t.inputBehaviours,[Gp.config({store:h(h({mode:"manual"},t.data.map((function(t){return{initialValue:t}})).getOr({})),{getValue:function(t){return is(t.element)},setValue:function(t,e){var n=is(t.element);n!==e&&as(t.element,e)}}),onSetValue:t.onSetValue})]))},wD=function(t){return{tag:t.tag,attributes:h({type:"text"},t.inputAttributes),styles:t.inputStyles,classes:t.inputClasses}},_D=function(t,e){return{uid:t.uid,dom:wD(t),components:[],behaviours:yD(t),eventOrder:t.eventOrder}},xD=ug({name:"Input",configFields:vD(),factory:_D}),CD={},kD={exports:CD};(function(e,n,r,o){(function(o){if("object"===typeof n&&"undefined"!==typeof r)r.exports=o();else if("function"===typeof e&&e.amd)e([],o);else{var i;i="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:this,i.EphoxContactWrapper=o()}})((function(){return function(){function t(e,n,r){function i(u,s){if(!n[u]){if(!e[u]){var c="function"==typeof o&&o;if(!s&&c)return c(u,!0);if(a)return a(u,!0);var l=new Error("Cannot find module '"+u+"'");throw l.code="MODULE_NOT_FOUND",l}var f=n[u]={exports:{}};e[u][0].call(f.exports,(function(t){var n=e[u][1][t];return i(n||t)}),f,f.exports,t,e,n,r)}return n[u].exports}for(var a="function"==typeof o&&o,u=0;u1)for(var n=1;n=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n.setImmediate="function"===typeof e?e:function(t){var e=s++,r=!(arguments.length<2)&&a.call(arguments,1);return u[e]=!0,o((function(){u[e]&&(r?t.apply(null,r):t.call(null),n.clearImmediate(e))})),e},n.clearImmediate="function"===typeof r?r:function(t){delete u[t]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(t,e,n){var r=t("promise-polyfill"),o=function(){return"undefined"!==typeof window?window:Function("return this;")()}();e.exports={boltExport:o.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)}))})(void 0,CD,kD,void 0);var SD,TD=kD.exports.boltExport,OD=function(t){var e=_.none(),n=[],r=function(t){return OD((function(e){o((function(n){e(t(n))}))}))},o=function(t){a()?s(t):n.push(t)},i=function(t){a()||(e=_.some(t),u(n),n=[])},a=function(){return e.isSome()},u=function(t){Y(t,s)},s=function(t){e.each((function(e){setTimeout((function(){t(e)}),0)}))};return t(i),{get:o,map:r,isReady:a}},DD=function(t){return OD((function(e){e(t)}))},ED={nu:OD,pure:DD},AD=function(t){setTimeout((function(){throw t}),0)},MD=function(t){var e=function(e){t().then(e,AD)},n=function(e){return MD((function(){return t().then(e)}))},r=function(e){return MD((function(){return t().then((function(t){return e(t).toPromise()}))}))},o=function(e){return MD((function(){return t().then((function(){return e.toPromise()}))}))},i=function(){return ED.nu(e)},a=function(){var e=null;return MD((function(){return null===e&&(e=t()),e}))},u=t;return{map:n,bind:r,anonBind:o,toLazy:i,toCached:a,toPromise:u,get:e}},ND=function(t){return MD((function(){return new TD(t)}))},RD=function(t){return MD((function(){return TD.resolve(t)}))},PD={nu:ND,pure:RD},zD=["input","textarea"],ID=function(t){var e=Pi(t);return j(zD,e)},LD=function(t,e){var n=e.getRoot(t).getOr(t.element);Eu(n,e.invalidClass),e.notify.each((function(e){ID(t.element)&&ha(t.element,"aria-invalid",!1),e.getContainer(t).each((function(t){la(t,e.validHtml)})),e.onValid(t)}))},BD=function(t,e,n,r){var o=e.getRoot(t).getOr(t.element);Ou(o,e.invalidClass),e.notify.each((function(e){ID(t.element)&&ha(t.element,"aria-invalid",!0),e.getContainer(t).each((function(t){la(t,r)})),e.onInvalid(t,r)}))},HD=function(t,e,n){return e.validator.fold((function(){return PD.pure(gt.value(!0))}),(function(e){return e.validate(t)}))},FD=function(t,e,n){return e.notify.each((function(e){e.onValidate(t)})),HD(t,e).map((function(r){return t.getSystem().isConnected()?r.fold((function(r){return BD(t,e,n,r),gt.error(r)}),(function(n){return LD(t,e),gt.value(n)})):gt.error("No longer in system")}))},jD=function(t,e){var n=e.getRoot(t).getOr(t.element);return Au(n,e.invalidClass)},VD=Object.freeze({__proto__:null,markValid:LD,markInvalid:BD,query:HD,run:FD,isInvalid:jD}),WD=function(t,n){return t.validator.map((function(r){return gi([wi(r.onEvent,(function(e){FD(e,t,n).get(a)}))].concat(r.validateOnLoad?[Ai((function(r){FD(r,t,n).get(e)}))]:[]))})).getOr({})},UD=Object.freeze({__proto__:null,events:WD}),$D=[yn("invalidClass"),Bn("getRoot",_.none),In("notify",[Bn("aria","alert"),Bn("getContainer",_.none),Bn("validHtml",""),Bc("onValid"),Bc("onInvalid"),Bc("onValidate")]),In("validator",[yn("validate"),Bn("onEvent","input"),Bn("validateOnLoad",!0)])],YD=Vl({fields:$D,name:"invalidating",active:UD,apis:VD,extra:{validation:function(t){return function(e){var n=Gp.getValue(e);return PD.pure(t(n))}}}}),qD=function(t,e,n,r){return n.getOrCreate(t,e,r)},GD=Object.freeze({__proto__:null,getCoupled:qD}),KD=[wn("others",tn(gt.value,ln()))],XD=function(){var t={},e=function(e,n,r){var o=Dt(n.others);if(o)return Ht(t,r).getOrThunk((function(){var o=Ht(n.others,r).getOrDie("No information found for coupled component: "+r),i=o(e),a=e.getSystem().build(i);return t[r]=a,a}));throw new Error("Cannot find coupled component: "+r+". Known coupled components: "+JSON.stringify(o,null,2))},n=i({});return Ga({readState:n,getOrCreate:e})},JD=Object.freeze({__proto__:null,init:XD}),QD=Vl({fields:KD,name:"coupling",apis:GD,state:JD}),ZD=i("sink"),tE=i(Em({name:ZD(),overrides:i({dom:{tag:"div"},behaviours:Fl([Nh.config({useFixed:f})]),events:gi([Oi(Ao()),Oi(Co()),Oi(Po())])})}));(function(t){t[t["HighlightFirst"]=0]="HighlightFirst",t[t["HighlightNone"]=1]="HighlightNone"})(SD||(SD={}));var eE=function(t,e){var n=t.getHotspot(e).getOr(e),r="hotspot",o=t.getAnchorOverrides();return t.layouts.fold((function(){return{anchor:r,hotspot:n,overrides:o}}),(function(t){return{anchor:r,hotspot:n,overrides:o,layouts:t}}))},nE=function(t,e,n){var r=t.fetch;return r(n).map(e)},rE=function(t,e,n,r,o,i,a){var u=nE(t,e,r),s=sE(r,t);return u.map((function(t){return t.bind((function(t){return _.from(Pw.sketch(h(h({},i.menu()),{uid:za(""),data:t,highlightImmediately:a===SD.HighlightFirst,onOpenMenu:function(t,e){var r=s().getOrDie();Nh.position(r,n,e),dp.decloak(o)},onOpenSubmenu:function(t,e,n){var r=s().getOrDie();Nh.position(r,{anchor:"submenu",item:e},n),dp.decloak(o)},onRepositionMenu:function(t,e,r){var o=s().getOrDie();Nh.position(o,n,e),Y(r,(function(t){Nh.position(o,{anchor:"submenu",item:t.triggeringItem},t.triggeredMenu)}))},onEscape:function(){return Ny.focus(r),dp.close(o),_.some(!0)}})))}))}))},oE=function(t,e,n,r,o,i,a){var u=eE(t,n),s=rE(t,e,u,n,r,o,a);return s.map((function(t){return t.fold((function(){dp.isOpen(r)&&dp.close(r)}),(function(t){dp.cloak(r),dp.open(r,t),i(r)})),r}))},iE=function(t,e,n,r,o,i,a){return dp.close(r),PD.pure(r)},aE=function(t,e,n,r,o,i){var a=QD.getCoupled(n,"sandbox"),u=dp.isOpen(a),s=u?iE:oE;return s(t,e,n,a,r,o,i)},uE=function(t,e,n){var r=yg.getCurrent(e).getOr(e),o=Ps(t.element);n?Ku(r.element,"min-width",o+"px"):Rs(r.element,o)},sE=function(t,e){return t.getSystem().getByUid(e.uid+"-"+ZD()).map((function(t){return function(){return gt.value(t)}})).getOrThunk((function(){return e.lazySink.fold((function(){return function(){return gt.error(new Error("No internal sink is specified, nor could an external sink be found"))}}),(function(e){return function(){return e(t)}}))}))},cE=function(t){dp.getState(t).each((function(t){Pw.repositionMenus(t)}))},lE=function(t,e,n){var r=vc(),o=function(o,i){var a=eE(t,e);r.link(e.element),t.matchWidth&&uE(a.hotspot,i,t.useMinWidth),t.onOpen(a,o,i),void 0!==n&&void 0!==n.onOpen&&n.onOpen(o,i)},i=function(t,o){r.unlink(e.element),void 0!==n&&void 0!==n.onClose&&n.onClose(t,o)},a=sE(e,t);return{dom:{tag:"div",classes:t.sandboxClasses,attributes:{id:r.id,role:"listbox"}},behaviours:Qp.augment(t.sandboxBehaviours,[Gp.config({store:{mode:"memory",initialValue:e}}),dp.config({onOpen:o,onClose:i,isPartOf:function(t,n,r){return yc(n,r)||yc(e,r)},getAttachPoint:function(){return a().getOrDie()}}),yg.config({find:function(t){return dp.getState(t).bind((function(t){return yg.getCurrent(t)}))}}),Yl.config({channels:h(h({},vp({isExtraPart:l})),yp({doReposition:cE}))})])}},fE=function(t){var e=QD.getCoupled(t,"sandbox");cE(e)},dE=function(){return[Bn("sandboxClasses",[]),Qp.field("sandboxBehaviours",[yg,Yl,dp,Gp])]},hE=i([yn("dom"),yn("fetch"),Bc("onOpen"),Hc("onExecute"),Bn("getHotspot",_.some),Bn("getAnchorOverrides",i({})),Vf(),Kp("dropdownBehaviours",[Jy,QD,fy,Ny]),yn("toggleClass"),Bn("eventOrder",{}),An("lazySink"),Bn("matchWidth",!1),Bn("useMinWidth",!1),An("role")].concat(dE())),pE=i([Dm({schema:[zc()],name:"menu",defaults:function(t){return{onExecute:t.onExecute}}}),tE()]),mE=function(t,n,r,o){var i,a=function(e){return Ht(t.dom,"attributes").bind((function(t){return Ht(t,e)}))},u=function(t){dp.getState(t).each((function(t){Pw.highlightPrimary(t)}))},s=function(n){var r=u;aE(t,(function(t){return t}),n,o,r,SD.HighlightFirst).get(e)},c={expand:function(n){Jy.isOn(n)||aE(t,(function(t){return t}),n,o,e,SD.HighlightNone).get(e)},open:function(n){Jy.isOn(n)||aE(t,(function(t){return t}),n,o,e,SD.HighlightFirst).get(e)},isOpen:Jy.isOn,close:function(n){Jy.isOn(n)&&aE(t,(function(t){return t}),n,o,e,SD.HighlightFirst).get(e)},repositionMenus:function(t){Jy.isOn(t)&&fE(t)}},l=function(t,e){return di(t),_.some(!0)};return{uid:t.uid,dom:t.dom,components:n,behaviours:Jp(t.dropdownBehaviours,[Jy.config({toggleClass:t.toggleClass,aria:{mode:"expanded"}}),QD.config({others:{sandbox:function(e){return lE(t,e,{onOpen:function(){Jy.on(e)},onClose:function(){Jy.off(e)}})}}}),fy.config({mode:"special",onSpace:l,onEnter:l,onDown:function(t,e){if(gE.isOpen(t)){var n=QD.getCoupled(t,"sandbox");u(n)}else gE.open(t);return _.some(!0)},onEscape:function(t,e){return gE.isOpen(t)?(gE.close(t),_.some(!0)):_.none()}}),Ny.config({})]),events:Zy(_.some(s)),eventOrder:h(h({},t.eventOrder),(i={},i[Wo()]=["disabling","toggling","alloy.base.behaviour"],i)),apis:c,domModification:{attributes:h(h({"aria-haspopup":"true"},t.role.fold((function(){return{}}),(function(t){return{role:t}}))),"button"===t.dom.tag?{type:a("type").getOr("button")}:{})}}},gE=sg({name:"Dropdown",configFields:hE(),partFields:pE(),factory:mE,apis:{open:function(t,e){return t.open(e)},expand:function(t,e){return t.expand(e)},close:function(t,e){return t.close(e)},isOpen:function(t,e){return t.isOpen(e)},repositionMenus:function(t,e){return t.repositionMenus(e)}}}),vE=function(){return Za({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})},bE=function(){return gi([vi(Io(),f)])},yE=Object.freeze({__proto__:null,events:bE,exhibit:vE}),wE=Vl({fields:[],name:"unselecting",active:yE}),_E=function(t,e){return gE.sketch({dom:t.dom,components:t.components,toggleClass:"mce-active",dropdownBehaviours:Fl([qk.button(e.providers.isDisabled),Vk(),wE.config({}),ZO.config({})]),layouts:t.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:e.getSink,fetch:function(n){return PD.nu((function(e){return t.fetch(e)})).map((function(r){return _.from(uO(Gt(DT(Oa("menu-value"),r,(function(e){t.onItemAction(n,e)}),t.columns,t.presets,sx.CLOSE_ON_EXECUTE,(function(){return!1}),e.providers),{movement:AT(t.columns,t.presets)})))}))},parts:{menu:Ix(!1,1,t.presets)}})},xE=Oa("color-input-change"),CE=Oa("color-swatch-change"),kE=Oa("color-picker-cancel"),SE=function(t,e,n){var r=KO.parts.field({factory:xD,inputClasses:["tox-textfield"],onSetValue:function(t){return YD.run(t).get((function(){}))},inputBehaviours:Fl([KC.config({disabled:e.providers.isDisabled}),Vk(),ZO.config({}),YD.config({invalidClass:"tox-textbox-field-invalid",getRoot:function(t){return $i(t.element)},notify:{onValid:function(t){var e=Gp.getValue(t);fi(t,xE,{color:e})}},validator:{validateOnLoad:!1,validate:function(t){var e=Gp.getValue(t);if(0===e.length)return PD.pure(gt.value(!0));var n=er.fromTag("span");Ku(n,"background-color",e);var r=ts(n,"background-color").fold((function(){return gt.error("blah")}),(function(t){return gt.value(e)}));return PD.pure(r)}}})]),selectOnFocus:!1}),o=t.label.map((function(t){return aD(t,e.providers)})),i=function(t,e){fi(t,CE,{value:e})},a=function(t,e){u.getOpt(t).each((function(t){"custom"===e?n.colorPicker((function(e){e.fold((function(){return li(t,kE)}),(function(e){i(t,e),dT(e)}))}),"#ffffff"):i(t,"remove"===e?"":e)}))},u=Qw(_E({dom:{tag:"span",attributes:{"aria-label":e.providers.translate("Color swatch")}},layouts:{onRtl:function(){return[gl,ml,wl]},onLtr:function(){return[ml,gl,wl]}},components:[],fetch:xT(n.getColors(),n.hasCustomColors()),columns:n.getColorCols(),presets:"color",onItemAction:a},e));return KO.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:o.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[r,u.asSpec()]}]),fieldBehaviours:Fl([Cy("form-field-events",[wi(xE,(function(e,n){u.getOpt(e).each((function(t){Ku(t.element,"background-color",n.event.color)})),fi(e,uD,{name:t.name})})),wi(CE,(function(t,e){KO.getField(t).each((function(n){Gp.setValue(n,e.event.value),yg.getCurrent(t).each(Ny.focus)}))})),wi(kE,(function(t,e){KO.getField(t).each((function(e){yg.getCurrent(t).each(Ny.focus)}))}))])])})},TE=function(t,e,n){return{hue:t,saturation:e,value:n}},OE=function(t){var e=0,n=0,r=0,o=t.red/255,i=t.green/255,a=t.blue/255,u=Math.min(o,Math.min(i,a)),s=Math.max(o,Math.max(i,a));if(u===s)return r=u,TE(0,0,100*r);var c=o===u?i-a:a===u?o-i:a-o;return e=o===u?3:a===u?1:5,e=60*(e-c/(s-u)),n=(s-u)/s,r=s,TE(Math.round(e),Math.round(100*n),Math.round(100*r))},DE=function(t){var e=(100-t)/100*360,n=TE(e,100,100),r=VS(n);return PS(r)},EE=Oa("rgb-hex-update"),AE=Oa("slider-update"),ME=Oa("palette-update"),NE=Em({schema:[yn("dom")],name:"label"}),RE=function(t){return Em({name:t+"-edge",overrides:function(e){var n=e.model.manager.edgeActions[t];return n.fold((function(){return{}}),(function(t){return{events:gi([_i(yo(),(function(e,n,r){return t(e,r)}),[e]),_i(Co(),(function(e,n,r){return t(e,r)}),[e]),_i(ko(),(function(e,n,r){r.mouseIsDown.get()&&t(e,r)}),[e])])}}))}})},PE=RE("top-left"),zE=RE("top"),IE=RE("top-right"),LE=RE("right"),BE=RE("bottom-right"),HE=RE("bottom"),FE=RE("bottom-left"),jE=RE("left"),VE=Om({name:"thumb",defaults:i({dom:{styles:{position:"absolute"}}}),overrides:function(t){return{events:gi([Si(yo(),t,"spectrum"),Si(wo(),t,"spectrum"),Si(_o(),t,"spectrum"),Si(Co(),t,"spectrum"),Si(ko(),t,"spectrum"),Si(To(),t,"spectrum")])}}}),WE=Om({schema:[Gn("mouseIsDown",(function(){return Kn(!1)}))],name:"spectrum",overrides:function(t){var e=t.model,n=e.manager,r=function(e,r){return n.getValueFromEvent(r).map((function(r){return n.setValueFrom(e,t,r)}))};return{behaviours:Fl([fy.config({mode:"special",onLeft:function(e){return n.onLeft(e,t)},onRight:function(e){return n.onRight(e,t)},onUp:function(e){return n.onUp(e,t)},onDown:function(e){return n.onDown(e,t)}}),Ny.config({})]),events:gi([wi(yo(),r),wi(wo(),r),wi(Co(),r),wi(ko(),(function(e,n){t.mouseIsDown.get()&&r(e,n)}))])}}}),UE=[NE,jE,LE,zE,HE,PE,IE,FE,BE,VE,WE],$E="slider.change.value",YE=i($E),qE=function(t){return-1!==t.type.indexOf("touch")},GE=function(t){var e=t.event.raw;if(qE(e)){var n=e;return void 0!==n.touches&&1===n.touches.length?_.some(n.touches[0]).map((function(t){return Os(t.clientX,t.clientY)})):_.none()}var r=e;return void 0!==r.clientX?_.some(r).map((function(t){return Os(t.clientX,t.clientY)})):_.none()},KE="top",XE="right",JE="bottom",QE="left",ZE=function(t){return t.model.minX},tA=function(t){return t.model.minY},eA=function(t){return t.model.minX-1},nA=function(t){return t.model.minY-1},rA=function(t){return t.model.maxX},oA=function(t){return t.model.maxY},iA=function(t){return t.model.maxX+1},aA=function(t){return t.model.maxY+1},uA=function(t,e,n){return e(t)-n(t)},sA=function(t){return uA(t,rA,ZE)},cA=function(t){return uA(t,oA,tA)},lA=function(t){return sA(t)/2},fA=function(t){return cA(t)/2},dA=function(t){return t.stepSize},hA=function(t){return t.snapToGrid},pA=function(t){return t.snapStart},mA=function(t){return t.rounded},gA=function(t,e){return void 0!==t[e+"-edge"]},vA=function(t){return gA(t,QE)},bA=function(t){return gA(t,XE)},yA=function(t){return gA(t,KE)},wA=function(t){return gA(t,JE)},_A=function(t){return t.model.value.get()},xA=function(t){return{x:t}},CA=function(t){return{y:t}},kA=function(t,e){return{x:t,y:e}},SA=function(t,e){fi(t,YE(),{value:e})},TA=function(t,e){SA(t,kA(eA(e),nA(e)))},OA=function(t,e){SA(t,CA(nA(e)))},DA=function(t,e){SA(t,kA(lA(e),nA(e)))},EA=function(t,e){SA(t,kA(iA(e),nA(e)))},AA=function(t,e){SA(t,xA(iA(e)))},MA=function(t,e){SA(t,kA(iA(e),fA(e)))},NA=function(t,e){SA(t,kA(iA(e),aA(e)))},RA=function(t,e){SA(t,CA(aA(e)))},PA=function(t,e){SA(t,kA(lA(e),aA(e)))},zA=function(t,e){SA(t,kA(eA(e),aA(e)))},IA=function(t,e){SA(t,xA(eA(e)))},LA=function(t,e){SA(t,kA(eA(e),fA(e)))},BA=function(t,e,n,r){return tn?n:t===e?e-1:Math.max(e,t-r)},HA=function(t,e,n,r){return t>n?t:td)return m;var g=VA(o,f,d),v=FA(g/h*r+e,p,m);return a&&v>=e&&v<=n?jA(v,e,n,i,u):s?Math.round(v):v},UA=function(t){var e=t.min,n=t.max,r=t.range,o=t.value,i=t.hasMinEdge,a=t.hasMaxEdge,u=t.maxBound,s=t.maxOffset,c=t.centerMinEdge,l=t.centerMaxEdge;return on?a?u:l:(o-e)/r*s},$A="top",YA="right",qA="bottom",GA="left",KA="width",XA="height",JA=function(t){return t.element.dom.getBoundingClientRect()},QA=function(t,e){return t[e]},ZA=function(t){var e=JA(t);return QA(e,GA)},tM=function(t){var e=JA(t);return QA(e,YA)},eM=function(t){var e=JA(t);return QA(e,$A)},nM=function(t){var e=JA(t);return QA(e,qA)},rM=function(t){var e=JA(t);return QA(e,KA)},oM=function(t){var e=JA(t);return QA(e,XA)},iM=function(t,e,n){return(t+e)/2-n},aM=function(t,e){var n=JA(t),r=JA(e),o=QA(n,GA),i=QA(n,YA),a=QA(r,GA);return iM(o,i,a)},uM=function(t,e){var n=JA(t),r=JA(e),o=QA(n,$A),i=QA(n,qA),a=QA(r,$A);return iM(o,i,a)},sM=function(t,e){fi(t,YE(),{value:e})},cM=function(t){return{x:t}},lM=function(t,e,n){var r={min:ZE(e),max:rA(e),range:sA(e),value:n,step:dA(e),snap:hA(e),snapStart:pA(e),rounded:mA(e),hasMinEdge:vA(e),hasMaxEdge:bA(e),minBound:ZA(t),maxBound:tM(t),screenRange:rM(t)};return WA(r)},fM=function(t,e,n){var r=lM(t,e,n),o=cM(r);return sM(t,o),r},dM=function(t,e){var n=ZE(e);sM(t,cM(n))},hM=function(t,e){var n=rA(e);sM(t,cM(n))},pM=function(t,e,n){var r=t>0?HA:BA,o=r(_A(n).x,ZE(n),rA(n),dA(n));return sM(e,cM(o)),_.some(o)},mM=function(t){return function(e,n){return pM(t,e,n).map((function(){return!0}))}},gM=function(t){var e=GE(t);return e.map((function(t){return t.left}))},vM=function(t,e,n,r,o){var i=0,a=rM(t),u=r.bind((function(e){return _.some(aM(e,t))})).getOr(i),s=o.bind((function(e){return _.some(aM(e,t))})).getOr(a),c={min:ZE(e),max:rA(e),range:sA(e),value:n,hasMinEdge:vA(e),hasMaxEdge:bA(e),minBound:ZA(t),minOffset:i,maxBound:tM(t),maxOffset:a,centerMinEdge:u,centerMaxEdge:s};return UA(c)},bM=function(t,e,n,r,o,i){var a=vM(e,i,n,r,o);return ZA(e)-ZA(t)+a},yM=function(t,e,n,r){var o=_A(n),i=bM(t,r.getSpectrum(t),o.x,r.getLeftEdge(t),r.getRightEdge(t),n),a=Ps(e.element)/2;Ku(e.element,"left",i-a+"px")},wM=mM(-1),_M=mM(1),xM=_.none,CM=_.none,kM={"top-left":_.none(),top:_.none(),"top-right":_.none(),right:_.some(AA),"bottom-right":_.none(),bottom:_.none(),"bottom-left":_.none(),left:_.some(IA)},SM=Object.freeze({__proto__:null,setValueFrom:fM,setToMin:dM,setToMax:hM,findValueOfOffset:lM,getValueFromEvent:gM,findPositionOfValue:bM,setPositionFromValue:yM,onLeft:wM,onRight:_M,onUp:xM,onDown:CM,edgeActions:kM}),TM=function(t,e){fi(t,YE(),{value:e})},OM=function(t){return{y:t}},DM=function(t,e,n){var r={min:tA(e),max:oA(e),range:cA(e),value:n,step:dA(e),snap:hA(e),snapStart:pA(e),rounded:mA(e),hasMinEdge:yA(e),hasMaxEdge:wA(e),minBound:eM(t),maxBound:nM(t),screenRange:oM(t)};return WA(r)},EM=function(t,e,n){var r=DM(t,e,n),o=OM(r);return TM(t,o),r},AM=function(t,e){var n=tA(e);TM(t,OM(n))},MM=function(t,e){var n=oA(e);TM(t,OM(n))},NM=function(t,e,n){var r=t>0?HA:BA,o=r(_A(n).y,tA(n),oA(n),dA(n));return TM(e,OM(o)),_.some(o)},RM=function(t){return function(e,n){return NM(t,e,n).map((function(){return!0}))}},PM=function(t){var e=GE(t);return e.map((function(t){return t.top}))},zM=function(t,e,n,r,o){var i=0,a=oM(t),u=r.bind((function(e){return _.some(uM(e,t))})).getOr(i),s=o.bind((function(e){return _.some(uM(e,t))})).getOr(a),c={min:tA(e),max:oA(e),range:cA(e),value:n,hasMinEdge:yA(e),hasMaxEdge:wA(e),minBound:eM(t),minOffset:i,maxBound:nM(t),maxOffset:a,centerMinEdge:u,centerMaxEdge:s};return UA(c)},IM=function(t,e,n,r,o,i){var a=zM(e,i,n,r,o);return eM(e)-eM(t)+a},LM=function(t,e,n,r){var o=_A(n),i=IM(t,r.getSpectrum(t),o.y,r.getTopEdge(t),r.getBottomEdge(t),n),a=Cs(e.element)/2;Ku(e.element,"top",i-a+"px")},BM=_.none,HM=_.none,FM=RM(-1),jM=RM(1),VM={"top-left":_.none(),top:_.some(OA),"top-right":_.none(),right:_.none(),"bottom-right":_.none(),bottom:_.some(RA),"bottom-left":_.none(),left:_.none()},WM=Object.freeze({__proto__:null,setValueFrom:EM,setToMin:AM,setToMax:MM,findValueOfOffset:DM,getValueFromEvent:PM,findPositionOfValue:IM,setPositionFromValue:LM,onLeft:BM,onRight:HM,onUp:FM,onDown:jM,edgeActions:VM}),UM=function(t,e){fi(t,YE(),{value:e})},$M=function(t,e){return{x:t,y:e}},YM=function(t,e,n){var r=lM(t,e,n.left),o=DM(t,e,n.top),i=$M(r,o);return UM(t,i),i},qM=function(t,e,n,r){var o=t>0?HA:BA,i=e?_A(r).x:o(_A(r).x,ZE(r),rA(r),dA(r)),a=e?o(_A(r).y,tA(r),oA(r),dA(r)):_A(r).y;return UM(n,$M(i,a)),_.some(i)},GM=function(t,e){return function(n,r){return qM(t,e,n,r).map((function(){return!0}))}},KM=function(t,e){var n=ZE(e),r=tA(e);UM(t,$M(n,r))},XM=function(t,e){var n=rA(e),r=oA(e);UM(t,$M(n,r))},JM=function(t){return GE(t)},QM=function(t,e,n,r){var o=_A(n),i=bM(t,r.getSpectrum(t),o.x,r.getLeftEdge(t),r.getRightEdge(t),n),a=IM(t,r.getSpectrum(t),o.y,r.getTopEdge(t),r.getBottomEdge(t),n),u=Ps(e.element)/2,s=Cs(e.element)/2;Ku(e.element,"left",i-u+"px"),Ku(e.element,"top",a-s+"px")},ZM=GM(-1,!1),tN=GM(1,!1),eN=GM(-1,!0),nN=GM(1,!0),rN={"top-left":_.some(TA),top:_.some(DA),"top-right":_.some(EA),right:_.some(MA),"bottom-right":_.some(NA),bottom:_.some(PA),"bottom-left":_.some(zA),left:_.some(LA)},oN=Object.freeze({__proto__:null,setValueFrom:YM,setToMin:KM,setToMax:XM,getValueFromEvent:JM,setPositionFromValue:QM,onLeft:ZM,onRight:tN,onUp:eN,onDown:nN,edgeActions:rN}),iN=[Bn("stepSize",1),Bn("onChange",e),Bn("onChoose",e),Bn("onInit",e),Bn("onDragStart",e),Bn("onDragEnd",e),Bn("snapToGrid",!1),Bn("rounded",!0),An("snapStart"),wn("model",sn("mode",{x:[Bn("minX",0),Bn("maxX",100),Gn("value",(function(t){return Kn(t.mode.minX)})),yn("getInitialValue"),Vc("manager",SM)],y:[Bn("minY",0),Bn("maxY",100),Gn("value",(function(t){return Kn(t.mode.minY)})),yn("getInitialValue"),Vc("manager",WM)],xy:[Bn("minX",0),Bn("maxX",100),Bn("minY",0),Bn("maxY",100),Gn("value",(function(t){return Kn({x:t.mode.minX,y:t.mode.minY})})),yn("getInitialValue"),Vc("manager",oN)]})),Kp("sliderBehaviours",[fy,Gp]),Gn("mouseIsDown",(function(){return Kn(!1)}))],aN=function(t,e,n,r){var o,i=function(e){return Wm(e,t,"thumb")},a=function(e){return Wm(e,t,"spectrum")},u=function(e){return Vm(e,t,"left-edge")},s=function(e){return Vm(e,t,"right-edge")},c=function(e){return Vm(e,t,"top-edge")},l=function(e){return Vm(e,t,"bottom-edge")},d=t.model,h=d.manager,p=function(e,n){h.setPositionFromValue(e,n,t,{getLeftEdge:u,getRightEdge:s,getTopEdge:c,getBottomEdge:l,getSpectrum:a})},m=function(e,n){d.value.set(n);var r=i(e);return p(e,r),t.onChange(e,r,n),_.some(!0)},g=function(e){h.setToMin(e,t)},v=function(e){h.setToMax(e,t)},b=function(e){var n=function(){Vm(e,t,"thumb").each((function(n){var r=d.value.get();t.onChoose(e,n,r)}))},r=t.mouseIsDown.get();t.mouseIsDown.set(!1),r&&n()},y=function(e,n){n.stop(),t.mouseIsDown.set(!0),t.onDragStart(e,i(e))},w=function(e,n){n.stop(),t.onDragEnd(e,i(e)),b(e)};return{uid:t.uid,dom:t.dom,components:e,behaviours:Jp(t.sliderBehaviours,[fy.config({mode:"special",focusIn:function(e){return Vm(e,t,"spectrum").map(fy.focusIn).map(f)}}),Gp.config({store:{mode:"manual",getValue:function(t){return d.value.get()}}}),Yl.config({channels:(o={},o[mp()]={onReceive:b},o)})]),events:gi([wi(YE(),(function(t,e){m(t,e.event.value)})),Ai((function(e,n){var r=d.getInitialValue();d.value.set(r);var o=i(e);p(e,o);var u=a(e);t.onInit(e,o,u,d.value.get())})),wi(yo(),y),wi(_o(),w),wi(Co(),y),wi(To(),w)]),apis:{resetToMin:g,resetToMax:v,changeValue:m,refresh:p},domModification:{styles:{position:"relative"}}}},uN=sg({name:"Slider",configFields:iN,partFields:UE,factory:aN,apis:{resetToMin:function(t,e){t.resetToMin(e)},resetToMax:function(t,e){t.resetToMax(e)},refresh:function(t,e){t.refresh(e)}}}),sN=function(t,e){var n=uN.parts.spectrum({dom:{tag:"div",classes:[e("hue-slider-spectrum")],attributes:{role:"presentation"}}}),r=uN.parts.thumb({dom:{tag:"div",classes:[e("hue-slider-thumb")],attributes:{role:"presentation"}}});return uN.sketch({dom:{tag:"div",classes:[e("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:i({y:0})},components:[n,r],sliderBehaviours:Fl([Ny.config({})]),onChange:function(t,e,n){fi(t,AE,{value:n})}})},cN="form",lN=[Kp("formBehaviours",[Gp])],fN=function(t){return""},dN=function(t){var e=function(){var t=[],e=function(e,n){return t.push(e),Lm(cN,fN(e),n)};return{field:e,record:function(){return t}}}(),n=t(e),r=e.record(),o=$(r,(function(t){return Om({name:t,pname:fN(t)})}));return tg(cN,lN,o,pN,n)},hN=function(t,e){return t.fold((function(){return gt.error(e)}),gt.value)},pN=function(t,e){return{uid:t.uid,dom:t.dom,components:e,behaviours:Jp(t.formBehaviours,[Gp.config({store:{mode:"manual",getValue:function(e){var n=$m(e,t);return Mt(n,(function(t,e){return t().bind((function(t){var n=yg.getCurrent(t);return hN(n,new Error("Cannot find a current component to extract the value from for form part '"+e+"': "+xa(t.element)))})).map(Gp.getValue)}))},setValue:function(e,n){At(n,(function(n,r){Vm(e,t,r).each((function(t){yg.getCurrent(t).each((function(t){Gp.setValue(t,n)}))}))}))}}})]),apis:{getField:function(e,n){return Vm(e,t,n).bind(yg.getCurrent)}}}},mN={getField:Ya((function(t,e,n){return t.getField(e,n)})),sketch:dN},gN=Oa("valid-input"),vN=Oa("invalid-input"),bN=Oa("validating-input"),yN="colorcustom.rgb.",wN=function(t,n,r,o){var i=function(e,r){return YD.config({invalidClass:n("invalid"),notify:{onValidate:function(t){fi(t,bN,{type:e})},onValid:function(t){fi(t,gN,{type:e,value:Gp.getValue(t)})},onInvalid:function(t){fi(t,vN,{type:e,value:Gp.getValue(t)})}},validator:{validate:function(e){var n=Gp.getValue(e),o=r(n)?gt.value(!0):gt.error(t("aria.input.invalid"));return PD.pure(o)},validateOnLoad:!1}})},a=function(r,o,a,u,s){var c=t(yN+"range"),l=KO.parts.label({dom:{tag:"label",innerHtml:a,attributes:{"aria-label":u}}}),f=KO.parts.field({data:s,factory:xD,inputAttributes:h({type:"text"},"hex"===o?{"aria-live":"polite"}:{}),inputClasses:[n("textfield")],inputBehaviours:Fl([i(o,r),ZO.config({})]),onSetValue:function(t){if(YD.isInvalid(t)){var n=YD.run(t);n.get(e)}}}),d=[l,f],p="hex"!==o?[KO.parts["aria-descriptor"]({text:c})]:[],m=d.concat(p);return{dom:{tag:"div",attributes:{role:"presentation"}},components:m}},u=function(t,e){var n=PS(e);return mN.getField(t,"hex").each((function(e){Ny.isFocused(e)||Gp.setValue(t,{hex:n.value})})),n},s=function(t,e){var n=e.red,r=e.green,o=e.blue;Gp.setValue(t,{red:n,green:r,blue:o})},c=Qw({dom:{tag:"div",classes:[n("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),l=function(t,e){c.getOpt(t).each((function(t){Ku(t.element,"background-color","#"+e.value)}))},f=function(){var e={red:Kn(_.some(255)),green:Kn(_.some(255)),blue:Kn(_.some(255)),hex:Kn(_.some("ffffff"))},i=function(t,e){var n=WS(e);s(t,n),p(n)},f=function(t){return e[t].get()},d=function(t,n){e[t].set(n)},h=function(){return f("red").bind((function(t){return f("green").bind((function(e){return f("blue").map((function(n){return FS(t,e,n,1)}))}))}))},p=function(t){var e=t.red,n=t.green,r=t.blue;d("red",_.some(e)),d("green",_.some(n)),d("blue",_.some(r))},m=function(t,e){var n=e.event;"hex"!==n.type?d(n.type,_.none()):o(t)},g=function(t,e){r(t);var n=OS(e);d("hex",_.some(e));var o=WS(n);s(t,o),p(o),fi(t,EE,{hex:n}),l(t,n)},v=function(t,e,n){var r=parseInt(n,10);d(e,_.some(r)),h().each((function(e){var n=u(t,e);l(t,n)}))},b=function(t){return"hex"===t.type},y=function(t,e){var n=e.event;b(n)?g(t,n.value):v(t,n.type,n.value)},w=function(e){return{label:t(yN+e+".label"),description:t(yN+e+".description")}},x=w("red"),C=w("green"),k=w("blue"),S=w("hex");return Gt(mN.sketch((function(e){return{dom:{tag:"form",classes:[n("rgb-form")],attributes:{"aria-label":t("aria.color.picker")}},components:[e.field("red",KO.sketch(a(jS,"red",x.label,x.description,255))),e.field("green",KO.sketch(a(jS,"green",C.label,C.description,255))),e.field("blue",KO.sketch(a(jS,"blue",k.label,k.description,255))),e.field("hex",KO.sketch(a(AS,"hex",S.label,S.description,"ffffff"))),c.asSpec()],formBehaviours:Fl([YD.config({invalidClass:n("form-invalid")}),Cy("rgb-form-events",[wi(gN,y),wi(vN,m),wi(bN,m)])])}})),{apis:{updateHex:function(t,e){Gp.setValue(t,{hex:e.value}),i(t,e),l(t,e)}}})},d=ug({factory:f,name:"RgbForm",configFields:[],apis:{updateHex:function(t,e,n){t.updateHex(e,n)}},extraApis:{}});return d},_N=function(t,e){var n=uN.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[e("sv-palette-spectrum")]}}),r=uN.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[e("sv-palette-thumb")],innerHtml:"'}}),o=function(t,e){var n=t.width,r=t.height,o=t.getContext("2d");if(null!==o){o.fillStyle=e,o.fillRect(0,0,n,r);var i=o.createLinearGradient(0,0,n,0);i.addColorStop(0,"rgba(255,255,255,1)"),i.addColorStop(1,"rgba(255,255,255,0)"),o.fillStyle=i,o.fillRect(0,0,n,r);var a=o.createLinearGradient(0,0,0,r);a.addColorStop(0,"rgba(0,0,0,0)"),a.addColorStop(1,"rgba(0,0,0,1)"),o.fillStyle=a,o.fillRect(0,0,n,r)}},a=function(t,e){var n=t.components()[0].element.dom;o(n,YS(e))},u=function(t){var a=i({x:0,y:0}),u=function(t,e,n){fi(t,ME,{value:n})},s=function(t,e,n,r){o(n.element.dom,YS(qS))},c=Fl([yg.config({find:_.some}),Ny.config({})]);return uN.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[e("sv-palette")]},model:{mode:"xy",getInitialValue:a},rounded:!1,components:[n,r],onChange:u,onInit:s,sliderBehaviours:c})},s=ug({factory:u,name:"SaturationBrightnessPalette",configFields:[],apis:{setRgba:function(t,e,n){a(e,n)}},extraApis:{}});return s},xN=function(t,n){var r=function(e){var r=wN(t,n,e.onValidHex,e.onInvalidHex),o=_N(t,n),i={paletteRgba:Kn(qS)},a=Qw(o.sketch({})),u=Qw(r.sketch({})),s=function(t,e){a.getOpt(t).each((function(t){var n=WS(e);i.paletteRgba.set(n),o.setRgba(t,n)}))},c=function(t,e){u.getOpt(t).each((function(t){r.updateHex(t,e)}))},l=function(t,e,n){Y(n,(function(n){n(t,e)}))},f=function(){var t=[c];return function(e,n){var r=n.event.value,o=i.paletteRgba.get(),a=OE(o),u=TE(a.hue,r.x,100-r.y),s=VS(u),c=PS(s);l(e,c,t)}},d=function(){var t=[s,c];return function(e,n){var r=n.event.value,o=DE(r.y);l(e,o,t)}};return{uid:e.uid,dom:e.dom,components:[a.asSpec(),sN(t,n),u.asSpec()],behaviours:Fl([Cy("colour-picker-events",[wi(ME,f()),wi(AE,d())]),yg.config({find:function(t){return u.getOpt(t)}}),fy.config({mode:"acyclic"})])}},o=ug({name:"ColourPicker",configFields:[yn("dom"),Bn("onValidHex",e),Bn("onInvalidHex",e)],factory:r});return o},CN=function(){return yg.config({find:_.some})},kN=function(t){return yg.config({find:t.getOpt})},SN=function(t){return yg.config({find:function(e){return Xi(e.element,t).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))}})},TN={self:CN,memento:kN,childAt:SN},ON={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","colorcustom.sb.saturation":"Saturation","colorcustom.sb.brightness":"Brightness","colorcustom.sb.picker":"Saturation and Brightness Picker","colorcustom.sb.palette":"Saturation and Brightness Palette","colorcustom.sb.instructions":"Use arrow keys to select saturation and brightness, on x and y axes","colorcustom.hue.hue":"Hue","colorcustom.hue.slider":"Hue Slider","colorcustom.hue.palette":"Hue Palette","colorcustom.hue.instructions":"Use arrow keys to select a hue","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},DN=function(t){return ON[t]},EN=function(t){return DN(t)},AN=function(t){var e=function(t){return"tox-"+t},n=xN(EN,e),r=function(t){fi(t,lD,{name:"hex-valid",value:!0})},o=function(t){fi(t,lD,{name:"hex-valid",value:!1})},i=Qw(n.sketch({dom:{tag:"div",classes:[e("color-picker-container")],attributes:{role:"presentation"}},onValidHex:r,onInvalidHex:o}));return{dom:{tag:"div"},components:[i.asSpec()],behaviours:Fl([Gp.config({store:{mode:"manual",getValue:function(t){var e=i.get(t),n=yg.getCurrent(e),r=n.bind((function(t){var e=Gp.getValue(t);return e.hex}));return r.map((function(t){return"#"+t})).getOr("")},setValue:function(t,e){var n=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,r=n.exec(e),o=i.get(t),a=yg.getCurrent(o);a.fold((function(){}),(function(t){Gp.setValue(t,{hex:_.from(r[1]).getOr("")}),mN.getField(t,"hex").each((function(t){li(t,No())}))}))}}}),TN.self()])}},MN=tinymce.util.Tools.resolve("tinymce.Resource"),NN=function(t){return Object.prototype.hasOwnProperty.call(t,"init")},RN=function(t){var e=Kn(_.none()),n=Qw({dom:{tag:t.tag}}),r=Kn(_.none());return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:Fl([Cy("custom-editor-events",[Ai((function(o){n.getOpt(o).each((function(n){(NN(t)?t.init(n.element.dom):MN.load(t.scriptId,t.scriptUrl).then((function(e){return e(n.element.dom,t.settings)}))).then((function(t){r.get().each((function(e){t.setValue(e)})),r.set(_.none()),e.set(_.some(t))}))}))}))]),Gp.config({store:{mode:"manual",getValue:function(){return e.get().fold((function(){return r.get().getOr("")}),(function(t){return t.getValue()}))},setValue:function(t,n){e.get().fold((function(){r.set(_.some(n))}),(function(t){return t.setValue(n)}))}}}),TN.self()]),components:[n.asSpec()]}},PN=tinymce.util.Tools.resolve("tinymce.util.Tools"),zN=Be([Bn("preprocess",a),Bn("postprocess",a)]),IN=function(t,e){var n=on("RepresentingConfigs.memento processors",zN,e);return Gp.config({store:{mode:"manual",getValue:function(e){var r=t.get(e),o=Gp.getValue(r);return n.postprocess(o)},setValue:function(e,r){var o=n.preprocess(r),i=t.get(e);Gp.setValue(i,o)}}})},LN=function(t,e,n){return Gp.config(Gt({store:{mode:"manual",getValue:e,setValue:n}},t.map((function(t){return{store:{initialValue:t}}})).getOr({})))},BN=function(t,e,n){return LN(t,(function(t){return e(t.element)}),(function(t,e){return n(t.element,e)}))},HN=function(t){return BN(t,is,as)},FN=function(t){return BN(t,ca,la)},jN=function(t){return Gp.config({store:{mode:"memory",initialValue:t}})},VN={memento:IN,withElement:BN,withComp:LN,domValue:HN,domHtml:FN,memory:jN},WN="jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp",UN=function(t,e){var n=PN.explode(e.getSetting("images_file_types",WN,"string")),r=function(t){return V(n,(function(e){return mr(t.name,"."+e)}))};return K(ft(t),r)},$N=function(t,e){var n=function(t,e){e.stop()},r=function(t){return function(e,n){Y(t,(function(t){t(e,n)}))}},o=function(t,e){if(!KC.isDisabled(t)){var n=e.event.raw;a(t,n.dataTransfer.files)}},i=function(t,e){var n=e.event.raw.target;a(t,n.files)},a=function(n,r){Gp.setValue(n,UN(r,e)),fi(n,uD,{name:t.name})},u=Qw({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:Fl([Cy("input-file-events",[Oi(Po()),Oi($o())])])}),s=function(t){return{uid:t.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:Fl([VN.memory([]),TN.self(),KC.config({}),Jy.config({toggleClass:"dragenter",toggleOnExecute:!1}),Cy("dropzone-events",[wi("dragenter",r([n,Jy.toggle])),wi("dragleave",r([n,Jy.toggle])),wi("dragover",n),wi("drop",r([n,o])),wi(Ro(),i)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p",innerHtml:e.translate("Drop an image here")}},Jw.sketch({dom:{tag:"button",innerHtml:e.translate("Browse for an image"),styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[u.asSpec()],action:function(t){var e=u.get(t);e.element.dom.click()},buttonBehaviours:Fl([ZO.config({}),qk.button(e.isDisabled),Vk()])})]}]}},c=t.label.map((function(t){return aD(t,e)})),l=KO.parts.field({factory:{sketch:s}});return eD(c,l,["tox-form__group--stretched"],[])},YN=function(t,e){return{dom:{tag:"div",classes:["tox-form__grid","tox-form__grid--"+t.columns+"col"]},components:$(t.items,e.interpreter)}},qN=Oa("alloy-fake-before-tabstop"),GN=Oa("alloy-fake-after-tabstop"),KN=function(t){return{dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:t},behaviours:Fl([Ny.config({ignore:!0}),ZO.config({})])}},XN=function(t){return{dom:{tag:"div",classes:["tox-navobj"]},components:[KN([qN]),t,KN([GN])],behaviours:Fl([TN.childAt(1)])}},JN=function(t,e){fi(t,Ao(),{raw:{which:9,shiftKey:e}})},QN=function(t,e){var n=e.element;Au(n,qN)?JN(t,!0):Au(n,GN)&&JN(t,!1)},ZN=function(t){return mO(t,["."+qN,"."+GN].join(","),l)},tR=!(qr().browser.isIE()||qr().browser.isEdge()),eR=function(t){var e=Kn("");return{getValue:function(t){return e.get()},setValue:function(n,r){if(t)ha(n.element,"srcdoc",r);else{ha(n.element,"src","javascript:''");var o=n.element.dom.contentWindow.document;o.open(),o.write(r),o.close()}e.set(r)}}},nR=function(t,e){var n=tR&&t.sandboxed,r=h(h({},t.label.map((function(t){return{title:t}})).getOr({})),n?{sandbox:"allow-scripts allow-same-origin"}:{}),o=eR(n),i=t.label.map((function(t){return aD(t,e)})),a=function(t){return XN({uid:t.uid,dom:{tag:"iframe",attributes:r},behaviours:Fl([ZO.config({}),Ny.config({}),VN.withComp(_.none(),o.getValue,o.setValue)])})},u=KO.parts.field({factory:{sketch:a}});return eD(i,u,["tox-form__group--stretched"],[])};function rR(t,e){return aR(document.createElement("canvas"),t,e)}function oR(t){var e=rR(t.width,t.height),n=iR(e);return n.drawImage(t,0,0),e}function iR(t){return t.getContext("2d")}function aR(t,e,n){return t.width=e,t.height=n,t}function uR(t){return t.naturalWidth||t.width}function sR(t){return t.naturalHeight||t.height}var cR=function(){var t=function(t){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof t)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],l(t,r(a,this),r(u,this))},e=window,n=t.immediateFn||"function"===typeof e.setImmediate&&e.setImmediate||function(t){setTimeout(t,1)};function r(t,e){return function(){return t.apply(e,arguments)}}var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function i(t){var e=this;null!==this._state?n((function(){var n=e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(o){return void t.reject(o)}t.resolve(r)}else(e._state?t.resolve:t.reject)(e._value)})):this._deferreds.push(t)}function a(t){try{if(t===this)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var e=t.then;if("function"===typeof e)return void l(r(e,t),r(a,this),r(u,this))}this._state=!0,this._value=t,s.call(this)}catch(n){u.call(this,n)}}function u(t){this._state=!1,this._value=t,s.call(this)}function s(){for(var t=0,e=this._deferreds;tn?r=n:rn?t=n:t2)&&(i=i<.5?.5:2,u=!0),(a<.5||a>2)&&(a=a<.5?.5:2,u=!0);var s=$R(t,i,a);return u?s.then((function(t){return UR(t,e,n)})):s}function $R(t,e,n){return new lR((function(r){var o=uR(t),i=sR(t),a=Math.floor(o*e),u=Math.floor(i*n),s=rR(a,u),c=iR(s);c.drawImage(t,0,0,o,i,0,0,a,u),r(s)}))}function YR(t,e){return t.toCanvas().then((function(n){return qR(n,t.getType(),e)}))}function qR(t,e,n){var r=rR(t.width,t.height),o=iR(r),i=0,a=0;return n=n<0?360+n:n,90!==n&&270!==n||aR(r,r.height,r.width),90!==n&&180!==n||(i=r.width),270!==n&&180!==n||(a=r.height),o.translate(i,a),o.rotate(n*Math.PI/180),o.drawImage(t,0,0),_R(r,e)}function GR(t,e){return t.toCanvas().then((function(n){return KR(n,t.getType(),e)}))}function KR(t,e,n){var r=rR(t.width,t.height),o=iR(r);return"v"===n?(o.scale(1,-1),o.drawImage(t,0,-r.height)):(o.scale(-1,1),o.drawImage(t,-r.width,0)),_R(r,e)}function XR(t,e,n,r,o){return t.toCanvas().then((function(i){return JR(i,t.getType(),e,n,r,o)}))}function JR(t,e,n,r,o,i){var a=rR(o,i),u=iR(a);return u.drawImage(t,-n,-r),_R(a,e)}function QR(t,e,n){return t.toCanvas().then((function(r){return UR(r,e,n).then((function(e){return _R(e,t.getType())}))}))}var ZR,tP=function(t){return BR(t)},eP=function(t){return VR(t)},nP=function(t,e){return WR(t,e)},rP=function(t,e,n,r){return jR(t,e,n,r)},oP=function(t,e){return HR(t,e)},iP=function(t,e){return FR(t,e)},aP=function(t,e){return GR(t,e)},uP=function(t,e,n,r,o){return XR(t,e,n,r,o)},sP=function(t,e,n){return QR(t,e,n)},cP=function(t,e){return YR(t,e)},lP=function(t,e){return h({dom:{tag:"span",innerHtml:t,classes:["tox-icon","tox-tbtn__icon-wrap"]}},e)},fP=function(t,e){return lP(t_(t,e),{})},dP=function(t,e){return lP(t_(t,e),{behaviours:Fl([_y.config({})])})},hP=function(t,e,n){return{dom:{tag:"span",innerHtml:n.translate(t),classes:[e+"__select-label"]},behaviours:Fl([_y.config({})])}},pP=Oa("toolbar.button.execute"),mP=function(t){return Ri((function(e,n){Gk(t,e)((function(n){fi(e,pP,{buttonApi:n}),t.onAction(n)}))}))},gP=(ZR={},ZR[Wo()]=["disabling","alloy.base.behaviour","toggling","toolbar-button-events"],ZR),vP=Oa("update-menu-text"),bP=Oa("update-menu-icon"),yP=function(t,n,r){var o=Kn(e),i=t.text.map((function(t){return Qw(hP(t,n,r.providers))})),a=t.icon.map((function(t){return Qw(dP(t,r.providers.icons))})),s=function(t,e){var n=Gp.getValue(t);return Ny.focus(n),fi(n,"keydown",{raw:e.event.raw}),gE.close(n),_.some(!0)},c=t.role.fold((function(){return{}}),(function(t){return{role:t}})),l=t.tooltip.fold((function(){return{}}),(function(t){var e=r.providers.translate(t);return{title:e,"aria-label":e}})),f=Qw(gE.sketch(h(h(h({},t.uid?{uid:t.uid}:{}),c),{dom:{tag:"button",classes:[n,n+"--select"].concat($(t.classes,(function(t){return n+"--"+t}))),attributes:h({},l)},components:Zk([a.map((function(t){return t.asSpec()})),i.map((function(t){return t.asSpec()})),_.some({dom:{tag:"div",classes:[n+"__select-chevron"],innerHtml:t_("chevron-down",r.providers.icons)}})]),matchWidth:!0,useMinWidth:!0,dropdownBehaviours:Fl(m(t.dropdownBehaviours,[qk.button((function(){return t.disabled||r.providers.isDisabled()})),Vk(),wE.config({}),_y.config({}),Cy("dropdown-events",[Kk(t,o),Xk(t,o)]),Cy("menubutton-update-display-text",[wi(vP,(function(t,e){i.bind((function(e){return e.getOpt(t)})).each((function(t){_y.set(t,[gs(r.providers.translate(e.event.text))])}))})),wi(bP,(function(t,e){a.bind((function(e){return e.getOpt(t)})).each((function(t){_y.set(t,[dP(e.event.icon,r.providers.icons)])}))}))])])),eventOrder:Gt(gP,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"]}),sandboxBehaviours:Fl([fy.config({mode:"special",onLeft:s,onRight:s})]),lazySink:r.getSink,toggleClass:n+"--active",parts:{menu:Ix(!1,t.columns,t.presets)},fetch:function(e){return PD.nu(u(t.fetch,e))}})));return f.asSpec()},wP=function(t){return T(t)},_P=function(t){return"separator"===t.type},xP=function(t){return Ft(t,"getSubmenuItems")},CP={type:"separator"},kP=function(t,e){var n=J(t,(function(t,n){return wP(n)?""===n?t:"|"===n?t.length>0&&!_P(t[t.length-1])?t.concat([CP]):t:Ft(e,n.toLowerCase())?t.concat([e[n.toLowerCase()]]):t:t.concat([n])}),[]);return n.length>0&&_P(n[n.length-1])&&n.pop(),n},SP=function(t,e){var n=t.getSubmenuItems(),r=DP(n,e),o=Gt(r.menus,ce(t.value,r.items)),i=Gt(r.expansions,ce(t.value,t.value));return{item:t,menus:o,expansions:i}},TP=function(t,e){return xP(t)?SP(t,e):{item:t,menus:{},expansions:{}}},OP=function(t){if(_P(t))return t;var e=Ht(t,"value").getOrThunk((function(){return Oa("generated-menu-item")}));return Gt({value:e},t)},DP=function(t,e){var n=kP(T(t)?t.split(" "):t,e);return X(n,(function(t,n){var r=OP(n),o=TP(r,e);return{menus:Gt(t.menus,o.menus),items:[o.item].concat(t.items),expansions:Gt(t.expansions,o.expansions)}}),{menus:{},expansions:{},items:[]})},EP=function(t,e,n,r){var o=Oa("primary-menu"),i=DP(t,n.shared.providers.menuItems());if(0===i.items.length)return _.none();var a=aO(o,i.items,e,n,r),u=Mt(i.menus,(function(t,r){return aO(r,t,e,n,!1)})),s=Gt(u,ce(o,a));return _.from(Pw.tieredData(o,s,i.expansions))},AP=function(t){return{isDisabled:function(){return KC.isDisabled(t)},setDisabled:function(e){return KC.set(t,e)},setActive:function(e){var n=t.element;e?(Ou(n,"tox-tbtn--enabled"),ha(n,"aria-pressed",!0)):(Eu(n,"tox-tbtn--enabled"),ba(n,"aria-pressed"))},isActive:function(){return Au(t.element,"tox-tbtn--enabled")}}},MP=function(t,e,n,r){return yP({text:t.text,icon:t.icon,tooltip:t.tooltip,role:r,fetch:function(e,r){t.fetch((function(t){r(EP(t,sx.CLOSE_ON_EXECUTE,n,!1))}))},onSetup:t.onSetup,getApi:AP,columns:1,presets:"normal",classes:[],dropdownBehaviours:[ZO.config({})]},e,n.shared)},NP=function(t,e,n){var r=function(t){return function(r){var o=!r.isActive();r.setActive(o),t.storage.set(o),n.shared.getSink().each((function(n){e().getOpt(n).each((function(e){Xl(e.element),fi(e,lD,{name:t.name,value:t.storage.get()})}))}))}},o=function(t){return function(e){e.setActive(t.storage.get())}};return function(e){e($(t,(function(t){var e=t.text.fold((function(){return{}}),(function(t){return{text:t}}));return h(h({type:t.type,active:!1},e),{onAction:r(t),onSetup:o(t)})})))}},RP=function(t,e,n,r,o,i){void 0===n&&(n=[]);var a=e.fold((function(){return{}}),(function(t){return{action:t}})),u=h({buttonBehaviours:Fl([qk.button((function(){return t.disabled||i.isDisabled()})),Vk(),ZO.config({}),Cy("button press",[yi("click"),yi("mousedown")])].concat(n)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]}},a),s=Gt(u,{dom:r});return Gt(s,{components:o})},PP=function(t,e,n,r){void 0===r&&(r=[]);var o=t.tooltip.map((function(t){return{"aria-label":n.translate(t),title:n.translate(t)}})).getOr({}),i={tag:"button",classes:["tox-tbtn"],attributes:o},a=t.icon.map((function(t){return fP(t,n.icons)})),u=Zk([a]);return RP(t,e,r,i,u,n)},zP=function(t,e,n,r){void 0===r&&(r=[]);var o=PP(t,_.some(e),n,r);return Jw.sketch(o)},IP=function(t,e,n,r,o){void 0===r&&(r=[]),void 0===o&&(o=[]);var i=n.translate(t.text),a=t.icon?t.icon.map((function(t){return fP(t,n.icons)})):_.none(),u=a.isSome()?Zk([a]):[],s=a.isSome()?{}:{innerHtml:i},c=m(t.primary||t.borderless?["tox-button"]:["tox-button","tox-button--secondary"],a.isSome()?["tox-button--icon"]:[],t.borderless?["tox-button--naked"]:[],o),l=h(h({tag:"button",classes:c},s),{attributes:{title:i}});return RP(t,e,r,l,u,n)},LP=function(t,e,n,r,o){void 0===r&&(r=[]),void 0===o&&(o=[]);var i=IP(t,_.some(e),n,r,o);return Jw.sketch(i)},BP=function(t,e){return function(n){"custom"===e?fi(n,lD,{name:t,value:{}}):"submit"===e?li(n,fD):"cancel"===e&&li(n,cD)}},HP=function(t,e){return"menu"===e},FP=function(t,e){return"custom"===e||"cancel"===e||"submit"===e},jP=function(t,n,r){if(HP(t,n)){var o=function(){return u},i=t,a=h(h({},t),{onSetup:function(n){return n.setDisabled(t.disabled),e},fetch:NP(i.items,o,r)}),u=Qw(MP(a,"tox-tbtn",r,_.none()));return u.asSpec()}if(FP(t,n)){var s=BP(t.name,n),c=h(h({},t),{borderless:!1});return LP(c,s,r.shared.providers,[])}},VP=function(t,e){var n=BP(t.name,"custom");return nD(_.none(),KO.parts.field(h({factory:Jw},IP(t,_.some(n),e,[VN.memory(""),TN.self()]))))},WP=i([Bn("field1Name","field1"),Bn("field2Name","field2"),Fc("onLockedChange"),Ic(["lockClass"]),Bn("locked",!1),Qp.field("coupledFieldBehaviours",[yg,Gp])]),UP=function(t,e,n){return Vm(t,e,n).bind(yg.getCurrent)},$P=function(t,e){return Om({factory:KO,name:t,overrides:function(t){return{fieldBehaviours:Fl([Cy("coupled-input-behaviour",[wi(No(),(function(n){UP(n,t,e).each((function(e){Vm(n,t,"lock").each((function(r){Jy.isOn(r)&&t.onLockedChange(n,e,r)}))}))}))])])}}})},YP=i([$P("field1","field2"),$P("field2","field1"),Om({factory:Jw,schema:[yn("dom")],name:"lock",overrides:function(t){return{buttonBehaviours:Fl([Jy.config({selected:t.locked,toggleClass:t.markers.lockClass,aria:{mode:"pressed"}})])}}})]),qP=function(t,e,n,r){return{uid:t.uid,dom:t.dom,components:e,behaviours:Qp.augment(t.coupledFieldBehaviours,[yg.config({find:_.some}),Gp.config({store:{mode:"manual",getValue:function(e){var n,r=qm(e,t,["field1","field2"]);return n={},n[t.field1Name]=Gp.getValue(r.field1()),n[t.field2Name]=Gp.getValue(r.field2()),n},setValue:function(e,n){var r=qm(e,t,["field1","field2"]);jt(n,t.field1Name)&&Gp.setValue(r.field1(),n[t.field1Name]),jt(n,t.field2Name)&&Gp.setValue(r.field2(),n[t.field2Name])}}})]),apis:{getField1:function(e){return Vm(e,t,"field1")},getField2:function(e){return Vm(e,t,"field2")},getLock:function(e){return Vm(e,t,"lock")}}}},GP=sg({name:"FormCoupledInputs",configFields:WP(),partFields:YP(),factory:qP,apis:{getField1:function(t,e){return t.getField1(e)},getField2:function(t,e){return t.getField2(e)},getLock:function(t,e){return t.getLock(e)}}}),KP=function(t){var e={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},n=function(t){return t in e?e[t]:1},r=t.value.toFixed(n(t.unit));return-1!==r.indexOf(".")&&(r=r.replace(/\.?0*$/,"")),r+t.unit},XP=function(t){var e=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/,n=e.exec(t);if(null!==n){var r=parseFloat(n[1]),o=n[2];return gt.value({value:r,unit:o})}return gt.error(t)},JP=function(t,e){var n={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},r=function(t){return Object.prototype.hasOwnProperty.call(n,t)};return t.unit===e?_.some(t.value):r(t.unit)&&r(e)?n[t.unit]===n[e]?_.some(t.value):_.some(t.value/n[t.unit]*n[e]):_.none()},QP=function(t){return _.none()},ZP=function(t,e){return function(n){return JP(n,e).map((function(n){return{value:n*t,unit:e}}))}},tz=function(t,e){var n=XP(t).toOptional(),r=XP(e).toOptional();return fg(n,r,(function(t,e){return JP(t,e.unit).map((function(t){return e.value/t})).map((function(t){return ZP(t,e.unit)})).getOr(QP)})).getOr(QP)},ez=function(t,e){var n=QP,r=Oa("ratio-event"),o=GP.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:e.translate(t.label.getOr("Constrain proportions"))}},components:[{dom:{tag:"span",classes:["tox-icon","tox-lock-icon__lock"],innerHtml:t_("lock",e.icons)}},{dom:{tag:"span",classes:["tox-icon","tox-lock-icon__unlock"],innerHtml:t_("unlock",e.icons)}}],buttonBehaviours:Fl([KC.config({disabled:function(){return t.disabled||e.isDisabled()}}),Vk(),ZO.config({})])}),i=function(t){return{dom:{tag:"div",classes:["tox-form__group"]},components:t}},a=function(n){return KO.parts.field({factory:xD,inputClasses:["tox-textfield"],inputBehaviours:Fl([KC.config({disabled:function(){return t.disabled||e.isDisabled()}}),Vk(),ZO.config({}),Cy("size-input-events",[wi(Do(),(function(t,e){fi(t,r,{isField1:n})})),wi(Ro(),(function(e,n){fi(e,uD,{name:t.name})}))])]),selectOnFocus:!1})},u=function(t){return{dom:{tag:"label",classes:["tox-label"],innerHtml:e.translate(t)}}},s=GP.parts.field1(i([KO.parts.label(u("Width")),a(!0)])),c=GP.parts.field2(i([KO.parts.label(u("Height")),a(!1)]));return GP.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[s,c,i([u(" "),o])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:function(t,e,r){XP(Gp.getValue(t)).each((function(t){n(t).each((function(t){Gp.setValue(e,KP(t))}))}))},coupledFieldBehaviours:Fl([KC.config({disabled:function(){return t.disabled||e.isDisabled()},onDisabled:function(t){GP.getField1(t).bind(KO.getField).each(KC.disable),GP.getField2(t).bind(KO.getField).each(KC.disable),GP.getLock(t).each(KC.disable)},onEnabled:function(t){GP.getField1(t).bind(KO.getField).each(KC.enable),GP.getField2(t).bind(KO.getField).each(KC.enable),GP.getLock(t).each(KC.enable)}}),Vk(),Cy("size-input-events2",[wi(r,(function(t,e){var r=e.event.isField1,o=r?GP.getField1(t):GP.getField2(t),i=r?GP.getField2(t):GP.getField1(t),a=o.map(Gp.getValue).getOr(""),u=i.map(Gp.getValue).getOr("");n=tz(a,u)}))])])})},nz=i(Oa("undo")),rz=i(Oa("redo")),oz=i(Oa("zoom")),iz=i(Oa("back")),az=i(Oa("apply")),uz=i(Oa("swap")),sz=i(Oa("transform")),cz=i(Oa("temp-transform")),lz=i(Oa("transform-apply")),fz={undo:nz,redo:rz,zoom:oz,back:iz,apply:az,swap:uz,transform:sz,tempTransform:cz,transformApply:lz},dz=i("save-state"),hz=i("disable"),pz=i("enable"),mz={formActionEvent:lD,saveState:dz,disable:hz,enable:pz},gz=function(t,n){var r=function(t,e,r,o){return Qw(LP({name:t,text:t,disabled:r,primary:o,icon:_.none(),borderless:!1},e,n))},o=function(t,e,r,o){return Qw(zP({name:t,icon:_.some(t),tooltip:_.some(e),disabled:o,primary:!1,borderless:!1},r,n))},a=function(t,e){t.map((function(t){var n=t.get(e);n.hasConfigured(KC)&&KC.disable(n)}))},u=function(t,e){t.map((function(t){var n=t.get(e);n.hasConfigured(KC)&&KC.enable(n)}))},s={tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools-edit-panel"]},c=e,l=function(t,e,n){fi(t,e,n)},f=function(t){return li(t,mz.disable())},d=function(t){return li(t,mz.enable())},h=function(t,e){f(t),l(t,fz.transform(),{transform:e}),d(t)},p=function(t,e){f(t),l(t,fz.tempTransform(),{transform:e}),d(t)},m=function(t){return function(){at.getOpt(t).each((function(t){_y.set(t,[ot])}))}},g=function(t,e){f(t),l(t,fz.transformApply(),{transform:e,swap:m(t)}),d(t)},v=function(){return r("Back",(function(t){return l(t,fz.back(),{swap:m(t)})}),!1,!1)},b=function(){return Qw({dom:{tag:"div",classes:["tox-spacer"]},behaviours:Fl([KC.config({})])})},y=function(){return r("Apply",(function(t){return l(t,fz.apply(),{swap:m(t)})}),!0,!0)},w=function(){return function(e){var n=t.getRect();return uP(e,n.x,n.y,n.w,n.h)}},x=[v(),b(),r("Apply",(function(e){var n=w();g(e,n),t.hideCrop()}),!1,!0)],C=WO.sketch({dom:s,components:x.map((function(t){return t.asSpec()})),containerBehaviours:Fl([Cy("image-tools-crop-buttons-events",[wi(mz.disable(),(function(t,e){a(x,t)})),wi(mz.enable(),(function(t,e){u(x,t)}))])])}),k=Qw(ez({name:"size",label:_.none(),constrain:!0,disabled:!1},n)),S=function(t,e){return function(n){return sP(n,t,e)}},T=[v(),b(),k,b(),r("Apply",(function(t){k.getOpt(t).each((function(e){var n=Gp.getValue(e),r=parseInt(n.width,10),o=parseInt(n.height,10),i=S(r,o);g(t,i)}))}),!1,!0)],O=WO.sketch({dom:s,components:T.map((function(t){return t.asSpec()})),containerBehaviours:Fl([Cy("image-tools-resize-buttons-events",[wi(mz.disable(),(function(t,e){a(T,t)})),wi(mz.enable(),(function(t,e){u(T,t)}))])])}),D=function(t,e){return function(n){return t(n,e)}},E=D(aP,"h"),A=D(aP,"v"),M=D(cP,-90),N=D(cP,90),R=function(t,e){p(t,e)},P=[v(),b(),o("flip-horizontally","Flip horizontally",(function(t){R(t,E)}),!1),o("flip-vertically","Flip vertically",(function(t){R(t,A)}),!1),o("rotate-left","Rotate counterclockwise",(function(t){R(t,M)}),!1),o("rotate-right","Rotate clockwise",(function(t){R(t,N)}),!1),b(),y()],z=WO.sketch({dom:s,components:P.map((function(t){return t.asSpec()})),containerBehaviours:Fl([Cy("image-tools-fliprotate-buttons-events",[wi(mz.disable(),(function(t,e){a(P,t)})),wi(mz.enable(),(function(t,e){u(P,t)}))])])}),I=function(t,e,r,o,a){var u=uN.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:n.translate(t)}}),s=uN.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),c=uN.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return Qw(uN.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:r,maxX:a,getInitialValue:i({x:o})},components:[u,s,c],sliderBehaviours:Fl([Ny.config({})]),onChoose:e}))},L=function(t,e,n,r,o){var i=function(t,n,r){var o=D(e,r.x/100);h(t,o)};return I(t,i,n,r,o)},B=function(t,e,n,r,o){return[v(),L(t,e,n,r,o),y()]},H=function(t,e,n,r,o){var i=B(t,e,n,r,o);return WO.sketch({dom:s,components:i.map((function(t){return t.asSpec()})),containerBehaviours:Fl([Cy("image-tools-filter-panel-buttons-events",[wi(mz.disable(),(function(t,e){a(i,t)})),wi(mz.enable(),(function(t,e){u(i,t)}))])])})},F=[v(),b(),y()],j=WO.sketch({dom:s,components:F.map((function(t){return t.asSpec()}))}),V=H("Brightness",oP,-100,0,100),W=H("Contrast",iP,-100,0,100),U=H("Gamma",nP,-100,0,100),$=function(t,e,n){return function(r){return rP(r,t,e,n)}},Y=function(t){var e=function(t,e,n){var r=q.getOpt(t),o=K.getOpt(t),i=G.getOpt(t);r.each((function(e){o.each((function(n){i.each((function(r){var o=Gp.getValue(e).x/100,i=Gp.getValue(r).x/100,a=Gp.getValue(n).x/100,u=$(o,i,a);h(t,u)}))}))}))};return I(t,e,0,100,200)},q=Y("R"),G=Y("G"),K=Y("B"),X=[v(),q,G,K,y()],J=WO.sketch({dom:s,components:X.map((function(t){return t.asSpec()}))}),Q=function(t,e,n){return function(r){var o=function(){at.getOpt(r).each((function(e){_y.set(e,[t]),n(e)}))};l(r,fz.swap(),{transform:e,swap:o})}},Z=function(e){t.showCrop()},tt=function(e){k.getOpt(e).each((function(e){var n=t.getMeasurements(),r=n.width,o=n.height;Gp.setValue(e,{width:r,height:o})}))},et=_.some(eP),nt=_.some(tP),rt=[o("crop","Crop",Q(C,_.none(),Z),!1),o("resize","Resize",Q(O,_.none(),tt),!1),o("orientation","Orientation",Q(z,_.none(),c),!1),o("brightness","Brightness",Q(V,_.none(),c),!1),o("sharpen","Sharpen",Q(j,et,c),!1),o("contrast","Contrast",Q(W,_.none(),c),!1),o("color-levels","Color levels",Q(J,_.none(),c),!1),o("gamma","Gamma",Q(U,_.none(),c),!1),o("invert","Invert",Q(j,nt,c),!1)],ot=WO.sketch({dom:s,components:rt.map((function(t){return t.asSpec()}))}),it=WO.sketch({dom:{tag:"div"},components:[ot],containerBehaviours:Fl([_y.config({})])}),at=Qw(it),ut=function(t){return at.getOpt(t).map((function(t){var e=t.components()[0];return e.components()[e.components().length-1]}))};return{memContainer:at,getApplyButton:ut}},vz=tinymce.util.Tools.resolve("tinymce.geom.Rect"),bz=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),yz=tinymce.util.Tools.resolve("tinymce.util.Observable"),wz=tinymce.util.Tools.resolve("tinymce.util.VK");function _z(t){var e=Math.max,n=t.documentElement,r=t.body,o=e(n.scrollWidth,r.scrollWidth),i=e(n.clientWidth,r.clientWidth),a=e(n.offsetWidth,r.offsetWidth),u=e(n.scrollHeight,r.scrollHeight),s=e(n.clientHeight,r.clientHeight),c=e(n.offsetHeight,r.offsetHeight);return{width:o").css({position:"absolute",top:0,left:0,width:f.width,height:f.height,zIndex:2147483647,opacity:1e-4,cursor:s}).appendTo(a.body),bz(a).on("mousemove touchmove",c).on("mouseup touchend",l),e.start(t)},c=function(t){if(xz(t),t.button!==r)return l(t);t.deltaX=t.screenX-o,t.deltaY=t.screenY-i,t.preventDefault(),e.drag(t)},l=function(t){xz(t),bz(a).off("mousemove touchmove",c).off("mouseup touchend",l),n.remove(),e.stop&&e.stop(t)};this.destroy=function(){bz(u).off()},bz(u).on("mousedown touchstart",s)}var kz=0,Sz=function(t,e,n,r,o){var i,a="tox-",u=a+"crid-"+kz++,s=[{name:"move",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:0,deltaH:0,label:"Crop Mask"},{name:"nw",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:-1,deltaH:-1,label:"Top Left Crop Handle"},{name:"ne",xMul:1,yMul:0,deltaX:0,deltaY:1,deltaW:1,deltaH:-1,label:"Top Right Crop Handle"},{name:"sw",xMul:0,yMul:1,deltaX:1,deltaY:0,deltaW:-1,deltaH:1,label:"Bottom Left Crop Handle"},{name:"se",xMul:1,yMul:1,deltaX:0,deltaY:0,deltaW:1,deltaH:1,label:"Bottom Right Crop Handle"}],c=["top","right","bottom","left"],l=function(t,e){return{x:e.x+t.x,y:e.y+t.y,w:e.w,h:e.h}},f=function(t,e){return{x:e.x-t.x,y:e.y-t.y,w:e.w,h:e.h}},d=function(){return f(n,t)};function h(e,r,o,i){var a,u,s,c,l;a=r.x,u=r.y,s=r.w,c=r.h,a+=o*e.deltaX,u+=i*e.deltaY,s+=o*e.deltaW,c+=i*e.deltaH,s<20&&(s=20),c<20&&(c=20),l=t=vz.clamp({x:a,y:u,w:s,h:c},n,"move"===e.name),l=f(n,l),x.fire("updateRect",{rect:l}),y(l)}function p(){function e(e){var n;return new Cz(u,{document:r.ownerDocument,handle:u+"-"+e.name,start:function(){n=t},drag:function(t){h(e,n,t.deltaX,t.deltaY)}})}bz('
').appendTo(r),PN.each(c,(function(t){bz("#"+u,r).append('