File: src/HtmlWidget.min.js

Recommend this page to a friend!
  Classes of Nikos M.  >  PHP Widget Library for HTML Pages  >  src/HtmlWidget.min.js  >  Download  
File: src/HtmlWidget.min.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Widget Library for HTML Pages
Generate HTML and JavaScript to show Web page widg
Author: By
Last change: v.2.1.1

* color input and color icon on input
* dark theme css
* update colorpicker assets
* update examples
Date: 2 months ago
Size: 70,816 bytes
 

Contents

Class file image Download
/**
*  HtmlWidget
*  html widgets used as (template) plugins and/or standalone, for Javascript, PHP, Python
*
*  @version: 2.1.1
*  https://github.com/foo123/HtmlWidget
*
**/
!function(t,e,a){"use strict";"undefined"!=typeof Components&&"object"==typeof Components.classes&&"object"==typeof Components.classesByID&&Components.utils&&"function"==typeof Components.utils.import?(t.$deps=t.$deps||{})&&(t.EXPORTED_SYMBOLS=[e])&&(t[e]=t.$deps[e]=a.call(t)):"object"==typeof module&&module.exports?(module.$deps=module.$deps||{})&&(module.exports=module.$deps[e]=a.call(t)):"function"==typeof define&&define.amd&&"function"==typeof require&&"function"==typeof require.specified&&require.specified(e)?define(e,["module"],function(e){return a.moduleUri=e.uri,a.call(t)}):e in t||(t[e]=a.call(t)||1)&&"function"==typeof define&&define.amd&&define(function(){return t[e]})}("undefined"!=typeof self?self:this,"HtmlWidget",function(){"use strict";var j,d=Object.prototype.hasOwnProperty,S=Object.keys,q=JSON.stringify,t=Object.prototype.toString,e="undefined"!=typeof Components&&"object"==typeof Components.classes&&"object"==typeof Components.classesByID&&Components.utils&&"function"==typeof Components.utils.import,a="undefined"!=typeof global&&"[object global]"===t.call(global),n=!e&&!a&&"undefined"!=typeof WorkerGlobalScope&&"function"==typeof importScripts&&navigator instanceof WorkerNavigator,z=!e&&!a&&!n,i=0,o={},s=null,l={},C={},r=/[&<>'"]/g,c=/^\s+|\s+$/g,m=String.prototype.trim?function(e){return String(e).trim()}:function(e){return String(e).replace(c,"")};function u(e){return e instanceof String||"[object String]"===t.call(e)}function y(e){return e instanceof Array||"[object Array]"===t.call(e)}function E(e){return"[object Object]"===t.call(e)}function A(e,t){return 1===arguments.length?null!=e:d.call(e,t)&&null!=e[t]}function T(e,t){return 1===arguments.length?null==e||0===e||!1===e||(y(e)||u(e))&&!e.length||E(e)&&!S(e).length:!d.call(e,t)||null==e[t]||0===e[t]||!1===e[t]||(y(e[t])||u(e[t]))&&!e[t].length||E(e[t])&&!S(e[t]).length}function k(e){return String(e).replace(r,function(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";default:return e}})}function p(e,t){var a,n={};for(a in e)d.call(e,a)&&(n[a]=e[a]);if(t)for(a in t)d.call(t,a)&&(n[a]=t[a]);return n}function B(e){for(var t,a,n=e.length-1;0<n;n--)n!==(t=Math.round(n*Math.random()))&&(a=e[n],e[n]=e[t],e[t]=a);return e}function O(e){this.code=e}O.prototype={constructor:O,code:""};var h=j={VERSION:"2.1.1",BASE:"./",enqueueAssets:function(e){s=e&&"function"==typeof e?e:null},enqueue:function(e,t,a,n,i){s&&s(e,t,[a,n,i])},assets:function(e,n){return arguments.length?!0===e?(n=String(n||""),S(l).map(function(e){var t=l[e];if(!T(t,"asset"))if(y(t.asset))for(var a=0;a<t.asset.length;a++)t.asset[a]=t.asset[a].replace("${ASSETS}",n);else t.asset=t.asset.replace("${ASSETS}",n);return[t.type,e,T(t,"asset")?null:t.asset,T(t,"dependencies")?null:t.dependencies,T(t,"attributes")?null:t.attributes]})):void(E(e)&&(l=p(n?l:{},e))):p({},l)},uuid:function(e,t){return t=t||(a?"static2":"dynamic"),[e=e||"widget",(new Date).getTime(),++i,~~(1e3*Math.random()),t].join("_")},code:function(e){return new O(e)},extract_code:function(e){var t,a=[];for(t in e)d.call(e,t)&&e[t]instanceof O&&a.push([t,e[t]]);for(t=0;t<a.length;t++)delete e[a[t][0]];return a},data:function(e,t){var a="";if(arguments.length<2&&(t="data"),t&&d.call(e,t)&&"object"==typeof e[t]){var n,i=e[t];for(n in i)d.call(i,n)&&(a+=(a.length?" ":"")+function e(t,a){if("object"!=typeof a)return t+"='"+a+"'";for(var n="",i=S(a),o=i.length,s=0;s<o;s++)n+=(n.length?" ":"")+e(t+"-"+i[s],a[i[s]]);return n}(t+"-"+n,i[n]))}return a},attributes:function(e,t){if(!t||!e)return"";for(var a,n,i=[],o=t.length,s=0;s<o;s++)a=t[s],d.call(e,a)&&null!=e[a]&&("data"==a?i.push(j.data(e)):(n=e[a],i.push(a+'="'+n+'"')));return i.length?i.join(" "):""},options:function(e,t,a){var n,i,o,s,l,r,c=[];if(y(e=e||{}))for(o=0,r=e.length;o<r;o++)s=e[o],l=[].concat(s),n=null,-1===t?n=o:null!=t&&null!=l[t]&&(n=l[t]),(i=null)!=a?null!=l[a]&&(i=l[a]):i=s,null===n&&(n=i),c.push([n,i]);else for(o in e)d.call(e,o)&&(s=e[o],l=[].concat(s),n=null,-1===t?n=o:null!=t&&null!=l[t]&&(n=l[t]),(i=null)!=a?null!=l[a]&&(i=l[a]):i=s,null===n&&(n=i),c.push([n,i]));return c},shuffle:function(e,t){if(!0===t)for(var a=B(S(e)),n={},i=0,o=a.length;i<o;i++)n[a[i]]=e[a[i]];else n=B(e);return n},menu:function e(t,a){for(var n,i,o,s="  "+(a=a||""),l=a+"<ul>\n",r=0,c=t.length;r<c;r++)i=[],T(n=t[r],"submenu")||i.push("w-submenu-item"),T(n,"active")||i.push("active"),o=A(n,"url")?String(n.url):"#",l+=s+"<li"+(i.length?' class="'+i.join(" ")+'"':"")+">\n",l+=s+'<a href="'+o+'">'+String(n.text)+"</a>\n",T(n,"submenu")||(l+=e(n.submenu,s)),l+=s+"</li>\n";return l+=a+"</ul>\n"},hasClass:function(e,t){return-1!==(" "+e+" ").indexOf(" "+t+" ")},addClass:function(e,t){return m(e+" "+t)},removeClass:function(e,t){return m((" "+e+" ").replace(" "+t+" "," "))},addWidget:function(e,t){e&&"function"==typeof t?o["w_"+e]=t:e&&!1===t&&d.call(o,"w_"+e)&&delete o["w_"+e]},widget:function(e,t,a){var n="";if(e){if(t=t||{},a=a||{},d.call(o,"w_"+e))return o["w_"+e](t,a,e);switch("audio"===e?t.type="audio":"video"===e?t.type="video":"checkbox-array"===e||"check-array"===e?t.type="checkbox":"radiobox-array"===e||"radio-array"===e?t.type="radio":"checkbox-list"===e||"checklist"===e?t.type="checkbox":"radiobox-list"===e||"radio-list"===e||"radiolist"===e?t.type="radio":"checkbox"===e||"checkbox-image"===e||"checkbox-label"===e?t.type="checkbox":"radio"===e||"radio-image"===e||"radio-label"===e?t.type="radio":"datetime"===e||"datetimepicker"===e?t.time=!0:"select2"===e?t.select2=!0:"dropdown"===e?t.dropdown=!0:"datatable"===e?t.datatable=!0:"codemirror"===e||"codemirror-editor"===e||"syntax-editor"===e||"source-editor"===e||"syntax"===e||"source"===e||"highlight-editor"===e||"highlighter"===e?t["syntax-editor"]=!0:"tinymce"!==e&&"wysiwyg-editor"!==e&&"wysiwyg"!==e&&"rich-editor"!==e&&"rich"!==e&&"editor"!==e||(t["wysiwyg-editor"]=!0),e){case"empty":n=j.w_empty(t,a,e);break;case"sep":case"separator":n=j.w_sep(t,a,e);break;case"icon":n=j.w_icon(t,a,e);break;case"tooltip":n=j.w_tooltip(t,a,e);break;case"link":n=j.w_link(t,a,e);break;case"button":n=j.w_button(t,a,e);break;case"label":n=j.w_label(t,a,e);break;case"file":n=j.w_file(t,a,e);break;case"textbox":case"textfield":case"text":n=j.w_text(t,a,e);break;case"tinymce":case"editor":case"rich-editor":case"rich":case"wysiwyg-editor":case"wysiwyg":case"codemirror":case"codemirror-editor":case"source-editor":case"source":case"syntax-editor":case"syntax":case"highlight-editor":case"highlighter":case"textarea":n=j.w_textarea(t,a,e);break;case"datetimepicker":case"datepicker":case"datetime":case"date":n=j.w_date(t,a,e);break;case"time":n=j.w_time(t,a,e);break;case"colorpicker":case"colorselector":case"color":n=j.w_color(t,a,e);break;case"rating":n=j.w_rating(t,a,e);break;case"radiobox-array":case"radio-array":case"checkbox-array":case"check-array":n=j.w_control_array(t,a,e);break;case"radiobox-list":case"radio-list":case"radiolist":case"checkbox-list":case"checklist":n=j.w_control_list(t,a,e);break;case"checkbox-image":case"radio-image":case"checkbox-label":case"radio-label":case"checkbox":case"radio":case"control":n=j.w_control(t,a,e);break;case"switch":n=j.w_switch(t,a,e);break;case"dropdown":case"selectbox":case"select2":case"select":n=j.w_select(t,a,e);break;case"datatable":case"table":n=j.w_table(t,a,e);break;case"animation":n=j.w_animation(t,a,e);break;case"sprite":n=j.w_sprite(t,a,e);break;case"video":case"audio":case"media":n=j.w_media(t,a,e);break;case"delayable":n=j.w_delayable(t,a,e);break;case"disabable":n=j.w_disabable(t,a,e);break;case"morphable":n=j.w_morphable(t,a,e);break;case"modal":n=j.w_modal(t,a,e);break;case"/modal":n=j.w_modal_end(t,a,e);break;case"menu":n=j.w_menu(t,a,e);break;case"/menu":n=j.w_menu_end(t,a,e);break;case"pagination":n=j.w_pagination(t,a,e);break;case"pages":n=j.w_pages(t,a,e);break;case"tabs":n=j.w_tabs(t,a,e);break;case"accordeon":n=j.w_accordeon(t,a,e);break;case"panel":n=j.w_panel(t,a,e);break;case"/panel":n=j.w_panel_end(t,a,e);break;default:$out=""}}return n},w_empty:function(e,t,a){return j.enqueue("styles","htmlwidgets.css"),""},w_sep:function(e,t,a){var n="w-separator";return T(e,"class")||(n+=" "+e.class),e=T(e,"style")?"":'style="'+e.style+'"',j.enqueue("styles","htmlwidgets.css"),'<div class="'+n+'" '+e+"></div>"},w_icon:function(e,t,a){var n,i,o="fa";return T(e,"class")||(o+=" "+e.class),n=T(e,"style")?"":'style="'+e.style+'"',T(e,"icon")||(o+=" fa-"+e.icon),i=T(e,"title")?"":'title="'+e.title+'"',e=j.attributes(e,["data"])+(T(e,"extra")?"":" "+e.extra),j.enqueue("styles","htmlwidgets.css"),'<i class="'+o+'" '+n+" "+i+" "+e+"></i>"},w_label:function(e,t,a){var n=A(e,"id")?e.id:j.uuid(),i=A(e,"init")&&e.init instanceof O?e.init.code:null,o=A(e,"for")?'for="'+e.for+'"':"",s=A(t,"text")?t.text:"",l=A(e,"title")?e.title:s,r="w-widget w-label";return T(e,"class")||(r+=" "+e.class),t=T(e,"style")?"":'style="'+e.style+'"',T(e,"icon")||(r+=" w-icon",s='<i class="fa fa-'+e.icon+' left-fa"></i>'+s),T(e,"iconr")||(r+=" w-icon-right",s=s+'<i class="fa fa-'+e.iconr+' right-fa"></i>'),e=j.attributes(e,["disabled","data"])+(T(e,"extra")?"":" "+e.extra),j.enqueue("styles","htmlwidgets.css"),i&&(z&&null==C["label-instance-"+n]&&(C["label-instance-"+n]=0),j.enqueue("scripts","label-instance-"+n+(z?"-"+ ++C["label-instance-"+n]:""),["(function(){                function render()                {                    var element = document.getElementById('"+n+"');                    if (element) {("+i+")(element, {});}                }                window.requestAnimationFrame(render);            })();"])),'<label id="'+n+'" '+o+' class="'+r+'" title="'+l+'" '+t+' onclick="" '+e+">"+s+"</label>"},w_link:function(e,t,a){var n,i=A(e,"id")?e.id:j.uuid(),o=A(e,"init")&&e.init instanceof O?e.init.code:null,s=A(t,"text")?t.text:"",l=A(e,"title")?e.title:s,r="w-link";return T(e,"class")||(r+=" "+e.class),n=T(e,"style")?"":'style="'+e.style+'"',T(e,"icon")||(r+=" w-icon",s='<i class="fa fa-'+e.icon+' left-fa"></i>'+s),T(e,"iconr")||(r+=" w-icon-right",s=s+'<i class="fa fa-'+e.iconr+' right-fa"></i>'),t=j.attributes(e,["disabled","data"])+(T(e,"extra")?"":" "+e.extra),j.enqueue("styles","htmlwidgets.css"),s=A(e,"for")?'<label id="'+i+'" class="'+r+'" '+n+' onclick="" title="'+l+'" for="'+e.for+'" '+t+">"+s+"</label>":'<a id="'+i+'" class="'+r+'" '+n+' title="'+l+'" href="'+(A(e,"href")?e.href:"#")+'" '+(t+=" "+j.attributes(e,["target","rel"]))+">"+s+"</a>",o&&(z&&null==C["link-instance-"+i]&&(C["link-instance-"+i]=0),j.enqueue("scripts","link-instance-"+i+(z?"-"+ ++C["link-instance-"+i]:""),["(function(){                function render()                {                    var element = document.getElementById('"+i+"');                    if (element) {("+o+")(element, {});}                }                window.requestAnimationFrame(render);            })();"])),s},w_button:function(e,t,a){var n,i=A(e,"id")?e.id:j.uuid(),o=A(e,"init")&&e.init instanceof O?e.init.code:null,s=A(t,"text")?t.text:"",l=A(e,"title")?e.title:s,r="w-widget w-button";return T(e,"class")||(r+=" "+e.class),n=T(e,"style")?"":'style="'+e.style+'"',T(e,"icon")||(s.length?r+=" w-icon":r+=" w-icon-only",s='<span class="fa-wrapper left-fa"><i class="fa fa-'+e.icon+'"></i></span>'+s),T(e,"iconr")||(s.length?r+=" w-icon-right":r+=" w-icon-only",s=s+'<span class="fa-wrapper right-fa"><i class="fa fa-'+e.iconr+'"></i></span>'),t=j.attributes(e,["disabled","data"])+(T(e,"extra")?"":" "+e.extra),j.enqueue("styles","htmlwidgets.css"),s=A(e,"for")?'<label id="'+i+'" for="'+e.for+'" class="'+r+'" '+n+' onclick="" title="'+l+'" '+t+">"+s+"</label>":A(e,"href")?'<a id="'+i+'" href="'+e.href+'" class="'+r+'" '+n+' title="'+l+'" '+(t+=" "+j.attributes(e,["target","rel"]))+">"+s+"</a>":'<button id="'+i+'" type="'+(A(e,"type")?e.type:"button")+'" class="'+r+'" '+n+' title="'+l+'" '+t+">"+s+"</button>",o&&(z&&null==C["button-instance-"+i]&&(C["button-instance-"+i]=0),j.enqueue("scripts","button-instance-"+i+(z?"-"+ ++C["button-instance-"+i]:""),["(function(){                function render()                {                    var element = document.getElementById('"+i+"');                    if (element) {("+o+")(element, {});}                }                window.requestAnimationFrame(render);            })();"])),s},w_control:function(e,t,a){var n,i,o=A(e,"id")?e.id:j.uuid(),s=A(e,"init")&&e.init instanceof O?e.init.code:null,l=T(e,"name")?"":'name="'+e.name+'"',r=T(e,"type")?"checkbox":e.type,c=A(t,"value")?t.value:"1",d=!T(e,"checked")&&e.checked?"checked":"",m=T(e,"style")?"":'style="'+e.style+'"',u=T(e,"title")?"":'title="'+e.title+'"',p=j.attributes(e,["readonly","disabled","data"])+(T(e,"extra")?"":" "+e.extra),h="";return A(e,"state-on")&&(h+=' data-state-on="'+e["state-on"]+'"'),A(e,"state-off")&&(h+=' data-state-off="'+e["state-off"]+'"'),i=T(e,"image")?T(e,"label")?(n="radio"===r?"w-radio":"w-checkbox","&nbsp;"):(n="radio"===r?"w-radio-label":"w-checkbox-label",e.label):(n="radio"===r?"w-radio-image":"w-checkbox-image",'<span style="background-image:url('+e.image+');"></span>'),t="w-widget w-control",T(e,"class")||(t+=" "+e.class),j.enqueue("styles","htmlwidgets.css"),s&&(z&&null==C["control-instance-"+o]&&(C["control-instance-"+o]=0),j.enqueue("scripts","control-instance-"+o+(z?"-"+ ++C["control-instance-"+o]:""),["(function(){                function render()                {                    var element = document.getElementById('"+o+"');                    if (element) {("+s+")(element, {});}                }                window.requestAnimationFrame(render);            })();"])),'<input type="'+r+'" id="'+o+'" '+l+' class="'+n+'" value="'+c+'" '+p+" "+d+' /><label for="'+o+'" '+u+' class="'+t+'" '+m+" "+h+' onclick="">'+i+"</label>"},w_control_list:function(e,t,a){var n,i,o,s,l,r,c,d,m=A(e,"id")?e.id:j.uuid(),u=A(e,"init")&&e.init instanceof O?e.init.code:null,p=T(e,"name")?null:e.name,h=T(e,"type")?"checkbox":e.type,f=A(t,"value")?t.value:"1",w=T(e,"style")?"":'style="'+e.style+'"',b=T(e,"extra")?"":e.extra,g=[].concat(t.options);if(f=A(t,"value")?t.value:"",s=!!(n=T(e,"class")?"":e.class)&&-1!==(" "+n+" ").indexOf(" w-large "),t=!!n&&-1!==(" "+n+" ").indexOf(" w-xlarge "),i=j.attributes(e,["readonly","disabled","data"]),T(e,"horizontal")||(n+=" w-control-list-horizontal w-clearfloat"),"radio"==h){for(o=t?"w-xlarge":s?"w-large":"",d='<ol id="'+m+'" class="w-control-list w-radio-list '+n+'" '+w+" "+b+">",l=0,r=g.length;l<r;l++)c=g[l],d+='<li class="w-control-list-option">'+j.widget("radio",{id:m+"_option_"+(l+1),name:p,class:o,title:c[1],checked:String(c[0])===String(f),extra:i},{value:c[0]})+" "+j.widget("label",{for:m+"_option_"+(l+1),class:"w-control-list-option-label",title:c[1]},{text:c[1]})+"</li>";d+="</ol>"}else{for(f=[].concat(f),o=t?"w-xlarge":s?"w-large":"",d='<ul id="'+m+'" class="w-control-list w-checkbox-list '+n+'" '+w+" "+b+">",l=0,r=g.length;l<r;l++)c=g[l],d+='<li class="w-control-list-option">'+j.widget("checkbox",{id:m+"_option_"+(l+1),name:p,class:o,title:c[1],checked:-1<f.map(String).indexOf(String(c[0])),extra:i},{value:c[0]})+" "+j.widget("label",{for:m+"_option_"+(l+1),class:"w-control-list-option-label",title:c[1]},{text:c[1]})+"</li>";d+="</ul>"}return j.enqueue("styles","htmlwidgets.css"),u&&(z&&null==C["control-list-instance-"+m]&&(C["control-list-instance-"+m]=0),j.enqueue("scripts","control-list-instance-"+m+(z?"-"+ ++C["control-list-instance-"+m]:""),["(function(){                function render()                {                    var element = document.getElementById('"+m+"');                    if (element) {("+u+")(element, {});}                }                window.requestAnimationFrame(render);            })();"])),d},w_control_array:function(e,t,a){var n,i,o,s,l,r,c,d,m,u=A(e,"id")?e.id:j.uuid(),p=A(e,"init")&&e.init instanceof O?e.init.code:null,h=T(e,"name")?null:e.name,f=T(e,"type")?"checkbox":e.type,w=A(t,"value")?t.value:"1",b=T(e,"style")?"":'style="'+e.style+'"',g=T(e,"extra")?"":e.extra,v=t.fields||{},y=[].concat(t.options),x=A(t,"value")?t.value:{},k=T(e,"class")?"":e.class,_=!!k&&-1!==(" "+k+" ").indexOf(" w-large "),t=!!k&&-1!==(" "+k+" ").indexOf(" w-xlarge "),q=j.attributes(e,["readonly","disabled","data"]),E=S(v);if(T(e,"randomised")||B(E),"radio"==f){for(s=t?"w-xlarge":_?"w-large":"",m='<table id="'+u+'" class="w-control-array w-radio-array '+k+'" '+b+" "+g+">",m+="<thead><tr><td>&nbsp;</td>",r=0,c=y.length;r<c;r++)m+="<td>"+(d=y[r])[1]+"</td>";for(m+="<td>&nbsp;</td></tr></thead><tbody>",i=0,o=E.length;i<o;i++){for(m+="<tr><td>"+v[n=E[i]]+"</td>",l=h+"["+n+"]",r=0,c=y.length;r<c;r++)d=y[r],m+="<td>"+j.widget("radio",{id:u+"_"+n+"_"+(r+1),name:l,class:s,title:d[1],checked:A(x,n)&&String(d[0])===String(x[n]),extra:q},{value:d[0]})+"</td>";m+="<td>&nbsp;</td></tr>"}m+="</tbody></table>"}else{for(s=t?"w-xlarge":_?"w-large":"",m='<table id="'+u+'" class="w-control-array w-checkbox-array '+k+'" '+b+" "+g+">",m+="<thead><tr><td>&nbsp;</td>",r=0,c=y.length;r<c;r++)m+="<td>"+(d=y[r])[1]+"</td>";for(m+="<td>&nbsp;</td></tr></thead><tbody>",i=0,o=E.length;i<o;i++){for(w=A(x,n=E[i])?[].concat(x[n]):[],m+="<tr><td>"+v[n]+"</td>",l=h+"["+n+"]",r=0,c=y.length;r<c;r++)d=y[r],m+="<td>"+j.widget("checkbox",{id:u+"_"+n+"_"+(r+1),name:l,class:s,title:d[1],checked:-1<w.map(String).indexOf(String(d[0])),extra:q},{value:d[0]})+"</td>";m+="<td>&nbsp;</td></tr>"}m+="</tbody></table>"}return j.enqueue("styles","htmlwidgets.css"),p&&(z&&null==C["control-array-instance-"+u]&&(C["control-array-instance-"+u]=0),j.enqueue("scripts","control-array-instance-"+u+(z?"-"+ ++C["control-array-instance-"+u]:""),["(function(){                function render()                {                    var element = document.getElementById('"+u+"');                    if (element) {("+p+")(element, {});}                }                window.requestAnimationFrame(render);            })();"])),m},w_switch:function(e,t,a){var n,i,o,s,l=A(e,"id")?e.id:j.uuid(),r=A(e,"init")&&e.init instanceof O?e.init.code:null,c=T(e,"name")?"":'name="'+e.name+'"',d=T(e,"type")?"checkbox":e.type,m=A(t,"value")?t.value:"1",u=!!A(t,"valueoff")&&t.valueoff,p=!1!==u,h=T(e,"title")?"":'title="'+e.title+'"',f=!T(e,"checked")&&e.checked,w="w-widget w-switch";return T(e,"class")||(w+=" "+e.class),n=T(e,"style")?"":'style="'+e.style+'"',o=!T(e,"reverse")&&e.reverse,t=i="&nbsp;",!T(e,"iconon")&&T(e,"iconoff")?(i='<i class="fa fa-'+e.iconon+' not-negative"></i>',t='<i class="fa fa-'+e.iconon+' negative"></i>'):!T(e,"iconoff")&&T(e,"iconon")?(i='<i class="fa fa-'+e.iconoff+' positive"></i>',t='<i class="fa fa-'+e.iconoff+' not-positive"></i>'):T(e,"iconon")||T(e,"iconoff")||(i='<i class="fa fa-'+e.iconon+'"></i>',t='<i class="fa fa-'+e.iconoff+'"></i>'),e=j.attributes(e,["readonly","disabled","data"])+(T(e,"extra")?"":" "+e.extra),t=p?(w+=" dual",d="radio",s=f?'<input type="'+d+'" id="'+l+'-on" '+c+' class="w-switch-state w-state-on" value="'+m+'" '+e+' checked /><input type="'+d+'" id="'+l+'-off" '+c+' class="w-switch-state w-state-off" value="'+u+'" '+e+" />":'<input type="'+d+'" id="'+l+'-on" '+c+' class="w-switch-state w-state-on" value="'+m+'" '+e+' /><input type="'+d+'" id="'+l+'-off" '+c+' class="w-switch-state w-state-off" value="'+u+'" '+e+" checked />",o?(w+=" reverse",'<label for="'+l+'-off" class="w-switch-off" onclick="">'+t+'</label><label for="'+l+'-on" class="w-switch-on" onclick="">'+i+"</label>"):'<label for="'+l+'-on" class="w-switch-on" onclick="">'+i+'</label><label for="'+l+'-off" class="w-switch-off" onclick="">'+t+"</label>"):(s='<input type="'+d+'" id="'+l+'" '+c+' class="w-switch-state" value="'+m+'" '+e+" "+(f=f&&"checked")+" />",o?(w+=" reverse",'<label for="'+l+'" class="w-switch-off" onclick="">'+t+'</label><label for="'+l+'" class="w-switch-on" onclick="">'+i+"</label>"):'<label for="'+l+'" class="w-switch-on" onclick="">'+i+'</label><label for="'+l+'" class="w-switch-off" onclick="">'+t+"</label>"),j.enqueue("styles","htmlwidgets.css"),r&&(z&&null==C["switch-instance-"+l]&&(C["switch-instance-"+l]=0),j.enqueue("scripts","switch-instance-"+l+(z?"-"+ ++C["switch-instance-"+l]:""),["(function(){                function render()                {                    var element = document.getElementById('"+l+"');                    if (element) {("+r+")(element, {});}                }                window.requestAnimationFrame(render);            })();"])),'<span class="'+w+'" '+h+" "+n+">"+s+t+'<span class="w-switch-handle"></span></span>'},w_rating:function(e,t,a){var n,i,o,s,l,r,c,d,m=A(e,"id")?e.id:j.uuid(),u=T(e,"name")?'name="__rating_'+m+'"':'name="'+e.name+'"',p=A(t,"value")?t.value:"",h=T(e,"title")?"":'title="'+e.title+'"',f=T(t,"text")?"":t.text,w="w-rating";for(T(e,"class")||(w+=" "+e.class),n=T(e,"style")?"":'style="'+e.style+'"',o=T(e,"icon")?"star":e.icon,d=j.attributes(e,["readonly","disabled","data"]),c='<fieldset id="'+m+'" '+h+' class="'+w+'" '+n+" "+(T(e,"extra")?"":" "+e.extra)+">",f&&(c+="<legend "+h+">"+f+"</legend>"),o=o||"star",s=(i=!T(t,"ratings")&&t.ratings instanceof Array?t.ratings:j.options({1:"1",2:"2",3:"3",4:"4",5:"5"},-1)).length-1;0<=s;s--)l=i[s][0],r=i[s][1],c+='<input type="radio" id="'+m+"_rating_"+l+'" class="w-rating-input" '+u+' value="'+l+'" '+(p&&p==l?"checked":"")+" "+d+'/><label for="'+m+"_rating_"+l+'" class="fa fa-'+(y(o)?o.length>s?o[s]:o[o.length-1]:o)+' w-rating-label" title="'+r+'">&nbsp;</label>';return c+="</fieldset>",j.enqueue("styles","htmlwidgets.css"),c},w_select:function(e,t,a){var n,i,o,s,l,r,c,d,m,u=A(e,"id")?e.id:j.uuid(),p=A(e,"init")&&e.init instanceof O?e.init.code:null,h=T(e,"name")?"":'name="'+e.name+'"',f=!!e.dropdown,w=T(e,"style")?"":'style="'+e.style+'"',b=T(e,"title")?"":'title="'+e.title+'"',g=j.attributes(e,["multiple","readonly","disabled","data"])+(T(e,"extra")?"":" "+e.extra),v=A(t,"selected")?t.selected:[];for(y(v)||(v=[v]),i="",l=(o=t.options).length,m=!1,s=0;s<l;s++)r=(d=o[s])[0],c=d[1],(d=-1<v.map(String).indexOf(String(r))?' selected="selected"':"").length&&(m=!0),i+='<option value="'+r+'"'+d+">"+c+"</option>";return T(e,"placeholder")||(i='<option value="" class="w-option-placeholder" disabled'+(m?"":" selected")+">"+e.placeholder+"</option>"+i,g+=' data-placeholder="'+e.placeholder+'"'),n=f?"w-widget w-dropdown":"w-widget w-select",T(e,"class")||(n+=" "+e.class),j.enqueue("styles","htmlwidgets.css"),p&&f&&(z&&null==C["dropdown-instance-"+u]&&(C["dropdown-instance-"+u]=0),j.enqueue("scripts","dropdown-instance-"+u+(z?"-"+ ++C["dropdown-instance-"+u]:""),["(function(){                function render()                {                    var element = document.getElementById('"+u+"');                    if (element) {("+p+")(element, {});}                }                window.requestAnimationFrame(render);            })();"])),e.select2&&!f&&(t=E(e.options)?e.options:{},e=j.extract_code(t),n+=" w-select2",z&&null==C["select2-instance-"+u]&&(C["select2-instance-"+u]=0),j.enqueue("scripts","select2-instance-"+u+(z?"-"+ ++C["select2-instance-"+u]:""),["(function(){                var tries = 0, options = "+q(t)+";                "+e.map(function(e){return"options['"+e[0]+"'] = "+e[1].code+";"}).join("\n")+"                function render()                {                    if ('undefined' === typeof(jQuery) || 'function' !== typeof(jQuery.fn.select2)) {if (tries<10) {tries++; setTimeout(render, 100);} return;}                    var element = document.getElementById('"+u+"');                    if (element) {"+(p?"("+p+")(element, options)":"jQuery(element).select2(options)")+";}                }                window.requestAnimationFrame(render);            })();"],["select2"])),f?'<span class="'+n+'" '+w+'><select id="'+u+'" '+h+' class="w-dropdown-select" '+b+" "+g+">"+i+"</select></span>":'<select id="'+u+'" '+h+' class="'+n+'" '+w+" "+b+" "+g+">"+i+"</select>"},w_text:function(e,t,a){var n=A(e,"id")?e.id:j.uuid(),i=A(e,"init")&&e.init instanceof O?e.init.code:null,o=T(e,"name")?"":'name="'+e.name+'"',s=A(t,"value")?t.value:"",l=A(e,"title")?e.title:"",r=l?'title="'+l+'"':"",c=A(e,"placeholder")?e.placeholder:l,d=T(e,"style")?"":'style="'+e.style+'"',m=T(e,"type")?"text":e.type,u="",p="w-wrapper";return T(e,"icon")||(u+='<span class="fa-wrapper left-fa"><i class="fa fa-'+e.icon+'"></i></span>',p+=" w-icon"),T(e,"iconr")||(u+='<span class="fa-wrapper right-fa"><i class="fa fa-'+e.iconr+'"></i></span>',p+=" w-icon-right"),t=j.attributes(e,["readonly","disabled","data"])+(T(e,"extra")?"":" "+e.extra),l="w-widget w-text",T(e,"class")||(l+=" "+e.class),j.enqueue("styles","htmlwidgets.css"),i&&(z&&null==C["text-instance-"+n]&&(C["text-instance-"+n]=0),j.enqueue("scripts","text-instance-"+n+(z?"-"+ ++C["text-instance-"+n]:""),["(function(){                function render()                {                    var element = document.getElementById('"+n+"');                    if (element) {("+i+")(element, {});}                }                window.requestAnimationFrame(render);            })();"])),u.length?'<span class="'+p+'" '+d+'><input type="'+m+'" id="'+n+'" '+o+" "+r+' class="'+l+'" placeholder="'+c+'" value="'+s+'" '+t+" />"+u+"</span>":'<input type="'+m+'" id="'+n+'" '+o+" "+r+' class="'+l+'" '+d+' placeholder="'+c+'" value="'+s+'" '+t+" />"},w_textarea:function(e,t,a){var n,i,o,s=A(e,"id")?e.id:j.uuid(),l=A(e,"init")&&e.init instanceof O?e.init.code:null,r=T(e,"name")?"":'name="'+e.name+'"',c=A(t,"value")?t.value:"",d=A(e,"title")?e.title:"",m=d?'title="'+d+'"':"",u=A(e,"placeholder")?e.placeholder:d,t=T(e,"style")?"":'style="'+e.style+'"',d=j.attributes(e,["readonly","disabled","data"])+(T(e,"extra")?"":" "+e.extra);return e["syntax-editor"]?(i=E(e.options)?e.options:{},o=j.extract_code(i),T(i,"mode")&&(i.mode="text/html"),T(i,"theme")&&(i.theme="default"),A(i,"readOnly")||(i.readOnly=!!A(e,"readonly")&&!!e.readonly),A(i,"lineWrapping")||(i.lineWrapping=!1),A(i,"lineNumbers")||(i.lineNumbers=!0),A(i,"indentUnit")||(i.indentUnit=4),A(i,"indentWithTabs")||(i.indentWithTabs=!1),A(i,"lint")||(i.lint=!1),A(i,"foldGutter")||(i.foldGutter=!0),A(i,"gutters")||(i.gutters=["CodeMirror-lint-markers","CodeMirror-linenumbers","CodeMirror-foldgutter"]),n="w-widget w-syntax-editor w-codemirror-editor",T(e,"class")||(n+=" "+e.class),z&&null==C["codemirror-instance-"+s]&&(C["codemirror-instance-"+s]=0),j.enqueue("scripts","codemirror-instance-"+s+(z?"-"+ ++C["codemirror-instance-"+s]:""),["(function(){                var tries = 0, options = "+q(i)+";                "+o.map(function(e){return"options['"+e[0]+"'] = "+e[1].code+";"}).join("\n")+"                function render()                {                    if ('function' !== typeof(CodeMirror)) {if (tries<10) {tries++; setTimeout(render, 100);} return;}                    function dispatch(event, element, data)                    {                        if (!element) {return;}                        var evt;                        if (document.createEvent)                        {                            evt = document.createEvent('HTMLEvents');                            evt.initEvent(event, true, true);                            evt.eventName = event;                            if (null != data) evt.data = data;                            element.dispatchEvent(evt);                        }                        else                        {                            evt = document.createEventObject();                            evt.eventType = event;                            evt.eventName = event;                            if (null != data) evt.data = data;                            element.fireEvent('on' + evt.eventType, evt);                        }                        return element;                    }                    var autosave = false;                    if (options.autosave)                    {                        autosave = true;                        delete options.autosave;                    }                    if (options.grammar && ('undefined' !== typeof(CodeMirrorGrammar)))                    {                        var mode = CodeMirrorGrammar.getMode(options.grammar);                        CodeMirror.defineMode(options.mode, mode);                        mode.supportCodeFolding = true;                        CodeMirror.registerHelper('fold', mode.foldType, mode.folder);                        mode.supportGrammarAnnotations = true;                        CodeMirror.registerHelper('lint', options.mode, mode.validator);                        delete options.grammar;                    }                    var element = document.getElementById('"+s+"');                    if (element)                    {                        "+(l?"("+l+")(element, options)":"if (element.codemirror) {element.codemirror.toTextArea(); element.codemirror = null;}                        element.codemirror = CodeMirror.fromTextArea(element, options);                        if (autosave)                        {                            element.codemirror.on('changes', function(cm){                                cm.save();                                dispatch('change', element);                            });                        }")+";                    }                }                window.requestAnimationFrame(render);            })();"],T(i,"grammar")?["codemirror-htmlmixed"]:["codemirror-htmlmixed","codemirror-grammar"])):e["wysiwyg-editor"]?(i=E(e.options)?e.options:{},o=j.extract_code(i),A(i,"plugins")||(i.plugins="print preview fullpage searchreplace autolink directionality visualblocks visualchars fullscreen image link media template codesample table charmap hr pagebreak nonbreaking anchor toc insertdatetime advlist lists textcolor wordcount imagetools contextmenu colorpicker textpattern help"),A(i,"toolbar")||(i.toolbar="undo redo formatselect | bold italic strikethrough forecolor backcolor | link | alignleft aligncenter alignright alignjustify  | numlist bullist outdent indent  | removeformat"),T(i,"theme")&&(i.theme="modern"),T(i,"skin")&&(i.skin="lightgray"),T(i,"directionality")&&(i.directionality="ltr"),T(i,"height")&&(i.height=500),A(i,"placeholder")||(i.placeholder=A(e,"placeholder")?e.placeholder:""),A(i,"automatic_uploads")||(i.automatic_uploads=!0),A(i,"image_advtab")||(i.image_advtab=!0),A(i,"paste_data_images")||(i.paste_data_images=!0),A(i,"browser_spellcheck")||(i.browser_spellcheck=!0),i.selector="#"+s,n="w-widget w-wysiwyg-editor",T(e,"class")||(n+=" "+e.class),z&&null==C["tinymce-instance-"+s]&&(C["tinymce-instance-"+s]=0),j.enqueue("scripts","tinymce-instance-"+s+(z?"-"+ ++C["tinymce-instance-"+s]:""),["(function(){                var tries = 0, options = "+q(i)+";                "+o.map(function(e){return"options['"+e[0]+"'] = "+e[1].code+";"}).join("\n")+"                function render()                {                    if ('undefined' === typeof(tinymce)) {if (tries<10) {tries++; setTimeout(render,100);} return;}                    function dispatch(event, element, data)                    {                        if (!element) {return;}                        var evt;                        if (document.createEvent)                        {                            evt = document.createEvent('HTMLEvents');                            evt.initEvent(event, true, true);                            evt.eventName = event;                            if (null != data) evt.data = data;                            element.dispatchEvent(evt);                        }                        else                        {                            evt = document.createEventObject();                            evt.eventType = event;                            evt.eventName = event;                            if (null != data) evt.data = data;                            element.fireEvent('on' + evt.eventType, evt);                        }                        return element;                    };                    var element = document.getElementById('"+s+"');                    if (element)                    {                        if (options.autosave)                        {                            if (!options.setup)                            {                            options.setup = function(editor) {                                editor.on('change', function(){                                    editor.save();                                    dispatch('change', element);                                });                            };                            }                            delete options.autosave;                        }                        if (options.locale && options.i18n)                        {                            tinymce.util.I18n.add(options.locale, options.i18n);                            delete options.locale;                            delete options.i18n;                        }                        "+(l?"("+l+")(element, options)":"var prev_editor = tinymce.get(element.id);                        if (prev_editor) {prev_editor.remove();}                        tinymce.init(options);")+";                    }                }                window.requestAnimationFrame(render);            })();"],["tinymce"])):(n="w-widget w-textarea",T(e,"class")||(n+=" "+e.class),j.enqueue("styles","htmlwidgets.css"),l&&(z&&null==C["textarea-instance-"+s]&&(C["textarea-instance-"+s]=0),j.enqueue("scripts","textarea-instance-"+s+(z?"-"+ ++C["textarea-instance-"+s]:""),["(function(){                    function render()                    {                        var element = document.getElementById('"+s+"');                        if (element) {("+l+")(element, {});}                    }                    window.requestAnimationFrame(render);                })();"]))),'<textarea id="'+s+'" '+r+" "+m+' class="'+n+'" '+t+' placeholder="'+u+'" '+d+">"+c+"</textarea>"},w_date:function(e,t,a){var n,i,o,s,l=A(e,"id")?e.id:j.uuid(),r=A(e,"init")&&e.init instanceof O?e.init.code:null,c=T(e,"name")?"":'name="'+e.name+'"',d=A(e,"title")?e.title:"",m=d?'title="'+d+'"':"",u=A(e,"placeholder")?e.placeholder:d,p="w-widget w-text w-date";return T(e,"class")||(p+=" "+e.class),n=T(e,"style")?"":'style="'+e.style+'"',o="",s="w-wrapper",T(e,"icon")||(o+='<span class="fa-wrapper left-fa"><i class="fa fa-'+e.icon+'"></i></span>',s+=" w-icon"),T(e,"iconr")||(o+='<span class="fa-wrapper right-fa"><i class="fa fa-'+e.iconr+'"></i></span>',s+=" w-icon-right"),T(e,"icon")&&T(e,"iconr")&&(o+='<span class="fa-wrapper right-fa"><i class="fa fa-calendar"></i></span>',s+=" w-icon-right"),i=j.attributes(e,["readonly","disabled","data"])+(T(e,"extra")?"":" "+e.extra),d=E(e.options)?e.options:{},e=j.extract_code(d),t=A(d,"value")?d.value:A(t,"value")?t.value:"",T(d,"format")&&(d.format="Y-m-d"),z&&null==C["pikadaytime-instance-"+l]&&(C["pikadaytime-instance-"+l]=0),j.enqueue("scripts","pikadaytime-instance-"+l+(z?"-"+ ++C["pikadaytime-instance-"+l]:""),["(function(){            var tries = 0, options = "+q(d)+";            "+e.map(function(e){return"options['"+e[0]+"'] = "+e[1].code+";"}).join("\n")+"            function render()            {                if ('function' !== typeof(Pikadaytime)) {if (tries<10) {tries++; setTimeout(render, 100);} return;}                var locale = options.i18n, format = options.format;                if ('function' === typeof(DateX))                {                    var datetime_parse = DateX.getParser(format, locale);                    options.encoder = function(datetime) {return DateX.format(datetime, format, locale);};                    options.decoder = function(datetime) {return !!datetime && datetime_parse(datetime);};                }                else                {                    options.encoder = function(datetime, pikaday) {return pikaday._o.showTime ? datetime.toString() : datetime.toDateString();};                    options.decoder = function(datetime) {return new Date(Date.parse(datetime));};                }                var element = document.getElementById('"+l+"');                if (element)                {                    "+(r?"("+r+")(element, options)":"if (element.pikadaytime) {element.pikadaytime.dispose(); element.pikadaytime = null;}                    options.field = element;                    element.pikadaytime = new Pikadaytime(options);")+";                }            }            window.requestAnimationFrame(render);        })();"],["pikadaytime"]),'<span class="'+s+'" '+n+'><input type="text" id="'+l+'" '+c+" "+m+' class="'+p+'" placeholder="'+u+'" value="'+t+'" '+i+" />"+o+"</span>"},w_time:function(e,t,a){var n,i,o,s,l,r,c,d,m,u,p,h,f=A(e,"id")?e.id:j.uuid(),w=T(e,"name")?"":e.name,b=T(e,"title")?"":'title="'+e.title+'"',g=T(e,"format")?["h","m","s"]:e.format.split(":");if(A(t,"value"))for(o=y(t.value)?t.value:t.value.split(":");o.length<3;)o.push("00");else o=["00","00","00"];for(n="w-widget w-time",T(e,"class")||(n+=" "+e.class),t=T(e,"style")?"":'style="'+e.style+'"',i=j.attributes(e,["readonly","disabled","data"])+(T(e,"extra")?"":" "+e.extra),r={h:[],m:[],s:[]},c=0;c<60;c++)for(d=c<10?"0"+c:""+c,u=0;u<g.length;u++)"h"===(p=g[u])&&24<=c||(h=d===o[u]?'selected="selected"':"",r[p].push('<option value="'+d+'" '+h+">"+d+"</option>"));for(l=[],u=0;u<g.length;u++)m=g[u],s=w.length?'name="'+w+"["+m+']"':"",l.push('<select class="w-time-component" id="'+f+"_"+m+'" '+s+" "+b+" "+i+">"+r[m].join("")+"</select>");return l=l.join('<span class="w-time-sep">:</span>'),j.enqueue("styles","htmlwidgets.css"),'<span class="'+n+'" '+t+">"+l+"</span>"},w_color:function(e,t,a){var n,i,o,s,l,r,c,d=A(e,"id")?e.id:j.uuid(),m=A(e,"init")&&e.init instanceof O?e.init.code:null,u=T(e,"name")?"":'name="'+e.name+'"',p=E(e.options)?e.options:{},h=j.extract_code(p);return T(p,"changeEvent")&&(p.changeEvent="change"),T(p,"format")&&(p.format="rgba"),!A(p,"color")&&A(t,"color")&&(p.color=t.color),!A(p,"opacity")&&A(t,"opacity")&&(p.opacity=t.opacity),o=T(r=A(e,"title")?e.title:"")?"":'title="'+r+'"',s=A(e,"placeholder")?e.placeholder:r,n="colorpicker-selector w-colorselector",T(e,"class")||(n+=" "+e.class),i=T(e,"style")?"":'style="'+e.style+'"',c=j.attributes(e,["readonly","disabled","data"])+(T(e,"extra")?"":" "+e.extra),c=T(e,"input")?(T(e,"selector-class")||(n+=" "+e["selector-class"]),'<div id="'+d+'" '+o+' class="'+n+'" '+i+" "+c+"></div>"):!0===e.input?(d="colorselector_"+(l=d),p.input=l,n="w-widget w-text",T(e,"class")||(n+=" "+e.class),t="w-wrapper",r="fa-wrapper",T(e,"iconr")?(t+=" w-icon",r+=" left-fa"):(t+=" w-icon-right",r+=" right-fa"),T(e,"selector-class")||(r+=" "+e["selector-class"]),'<span class="'+t+'" '+i+'><input type="text" id="'+l+'" '+u+" "+o+' class="'+n+'" placeholder="'+s+'" value="" '+c+' /><span id="'+d+'" class="'+r+' colorpicker-selector w-colorselector"></span></span>'):(T(e,"selector-class")||(n+=" "+e["selector-class"]),'<input id="'+e.input+'" type="hidden" '+u+' value="" style="display:none" /><div id="'+d+'" '+o+' class="'+n+'" '+i+" "+c+"></div>"),z&&null==C["colorpicker-instance-"+d]&&(C["colorpicker-instance-"+d]=0),j.enqueue("scripts","colorpicker-instance-"+d+(z?"-"+ ++C["colorpicker-instance-"+d]:""),["(function(){            var tries = 0, options = "+q(p)+";            "+h.map(function(e){return"options['"+e[0]+"'] = "+e[1].code+";"}).join("\n")+"            function render()            {                if ('function' !== typeof(ColorPicker)) {if (tries<10) {tries++; setTimeout(render, 100);} return;}                var element = document.getElementById('"+d+"');                if (element)                {                    if (options.input) options.input = document.getElementById(options.input);                    "+(m?"("+m+")(element, options)":"if (element.colorpicker) {element.colorpicker.dispose(); element.colorpicker = null;}                    element.colorpicker = new ColorPicker(element, options);")+";                }            }            window.requestAnimationFrame(render);        })();"],["colorpicker"]),c},w_file:function(e,t,a){var n,i=A(e,"id")?e.id:j.uuid(),o=A(e,"init")&&e.init instanceof O?e.init.code:null,s=T(e,"name")?"":'name="'+e.name+'"',l=A(t,"value")?t.value:"",r=A(e,"title")?e.title:"",c=r?'title="'+r+'"':"",d=A(e,"placeholder")?e.placeholder:r,m="w-widget w-file w-text";return T(e,"class")||(m+=" "+e.class),n=T(e,"style")?"":'style="'+e.style+'"',t="",r="w-wrapper",T(e,"icon")||(t+='<span class="fa-wrapper left-fa"><i class="fa fa-'+e.icon+'"></i></span>',r+=" w-icon"),T(e,"iconr")||(t+='<span class="fa-wrapper right-fa"><i class="fa fa-'+e.iconr+'"></i></span>',r+=" w-icon-right"),e=j.attributes(e,["accept","multiple","readonly","disabled","data"])+(T(e,"extra")?"":" "+e.extra),j.enqueue("styles","htmlwidgets.css"),z&&null==C["file-instance-"+i]&&(C["file-instance-"+i]=0),j.enqueue("scripts","file-instance-"+i+(z?"-"+ ++C["file-instance-"+i]:""),["(function(){            function render()            {                var element = document.getElementById('"+i+"');                var input = document.getElementById('text_input_"+i+"');                function dispatch(event, element, data)                {                    if (!element) {return;}                    var evt;                    if (document.createEvent)                    {                        evt = document.createEvent('HTMLEvents');                        evt.initEvent(event, true, true);                        evt.eventName = event;                        if (null != data) evt.data = data;                        element.dispatchEvent(evt);                    }                    else                    {                        evt = document.createEventObject();                        evt.eventType = event;                        evt.eventName = event;                        if (null != data) evt.data = data;                        element.fireEvent('on' + evt.eventType, evt);                    }                    return element;                }                if (element && input)                {                    "+(o?"("+o+")(element, {input:input});":"                    if (element.changehandler) {element.removeEventListener('change', element.changehandler, false); element.changehandler = null;}                    if (input.clickhandler) {input.removeEventListener('click', input.clickhandler, false); input.clickhandler = null;}                    element.addEventListener('change', element.changehandler = function(){                        input.value = element.value;                    }, false);                    input.addEventListener('click', input.clickhandler = function(){                        dispatch('click', element);                    }, false);")+"                }            }            window.requestAnimationFrame(render);        })();"]),'<label for="'+i+'" class="'+r+'" '+n+'><input type="file" id="'+i+'" '+s+' class="w-file-input" value="'+l+'" '+e+' style="display:none !important"/><input type="text" id="text_input_'+i+'" '+c+' class="'+m+'" placeholder="'+d+'" value="'+l+'" form="__NONE__" />'+t+"</label>"},w_table:function(e,t,a){var n,i,o,s,l,r,c,d,m,u,p,h=A(e,"id")?e.id:j.uuid(),f=A(e,"init")&&e.init instanceof O?e.init.code:null,w="w-widget w-table";T(e,"class")||(w+=" "+e.class);T(e.footer);for(var b,g=T(e,"style")?"":'style="'+e.style+'"',v=T(e,"extra")?"":e.extra,y="",x=t.columns,k=(b=S(data_cols)).length,_=0;_<k;_++)y+='<th data-columnkey="'+b[_]+'"><span>'+x[b[_]]+"</span></th>";for(y="<tr>"+y+"</tr>",o=A(e.header)&&T(e.header)?"":"<thead>"+y+"</thead>",s=T(e.footer)?"":"<tfoot>"+y+"</tfoot>",i="",u=t.rows.length,m=0;m<u;m++){for(r=null!=(l=t.rows[m]).id?l.id:m,d=null!=l.cells?l.cells:l,c=S(d),i+='\n<tr data-row="'+r+'">',_=0;_<k;_++)i+='<td data-columnkey="'+b[_]+'" data-column="'+x[b[_]]+'">'+d[c[_]]+"</td>";i+="</tr>"}return n=j.data(e),j.enqueue("styles","htmlwidgets.css"),f&&T(e,"datatable")&&(z&&null==C["table-instance-"+h]&&(C["table-instance-"+h]=0),j.enqueue("scripts","table-instance-"+h+(z?"-"+ ++C["table-instance-"+h]:""),["(function(){                function render()                {                    var element = document.getElementById('"+h+"');                    if (element) {("+f+")(element, {});}                }                window.requestAnimationFrame(render);            })();"])),e.datatable&&(p=E(e.options)?e.options:{},e=j.extract_code(p),w+=" w-datatable",z&&null==C["datatable-instance-"+h]&&(C["datatable-instance-"+h]=0),j.enqueue("scripts","datatable-instance-"+h+(z?"-"+ ++C["datatable-instance-"+h]:""),["(function(){                var tries = 0, options = "+q(p)+";                "+e.map(function(e){return"options['"+e[0]+"'] = "+e[1].code+";"}).join("\n")+"                function render()                {                    if ('undefined' === typeof(jQuery) || 'function' !== typeof(jQuery.fn.dataTable)) {if (tries<10) {tries++; setTimeout(render, 100);} return;}                    var element = document.getElementById('"+h+"');                    if (element) {"+(f?"("+f+")(element, options)":"jQuery(element).dataTable(options)")+";}                }                window.requestAnimationFrame(render);            })();"],["datatables-all"])),'<table id="'+h+'" class="'+w+'" '+g+" "+v+" "+n+">"+o+"<tbody>"+i+"</tbody>"+s+"</table>"},w_media:function(e,t,a){var n,i,o,s,l,r,c=A(e,"id")?e.id:j.uuid(),d=A(e,"init")&&e.init instanceof O?e.init.code:null,m=T(e,"type")?"video":e.type;"audio"!==m&&(m="video"),n="w-media w-"+m,T(e,"class")||(n+=" "+e.class),i=T(e,"style")?"":'style="'+e.style+'"',o=j.attributes(e,["title","width","height","src","controls","autoplay","loop","data"])+(T(e,"extra")?"":" "+e.extra),e=T(t,"text")?"":t.text,l="";for(var u=0,p=(s=T(t,"sources")?[]:t.sources).length;u<p;u++)l+='<source src="'+(r=s[u])[0]+'" type="'+r[1]+'" />';return j.enqueue("scripts","html5media"),d&&(z&&null==C["media-instance-"+c]&&(C["media-instance-"+c]=0),j.enqueue("scripts","media-instance-"+c+(z?"-"+ ++C["media-instance-"+c]:""),["(function(){                function render()                {                    var element = document.getElementById('"+c+"');                    if (element) {("+d+")(element, {});}                }                window.requestAnimationFrame(render);            })();"])),"<"+m+' id="'+c+'" class="'+n+'" '+i+" "+o+">"+l+e+"</"+m+">"},w_modal:function(e,t,a){var n,i,o,s,l=A(e,"id")?e.id:j.uuid(),r=!A(e,"controller")||!T(e,"controller"),c="w-modal w-dialog";return T(e,"class")||(c+=" "+e.class),n=T(e,"style")?"":'style="'+e.style+'"',i=T(e,"extra")?"":e.extra,s=A(t,"title")?t.title:"",o=T(e,"icon")?"":'<i class="fa fa-'+e.icon+'"></i>',t=r&&!T(e,"autoclose")?'<label for="modal_'+l+'" class="w-modal-overlay" onclick="">':'<div class="w-modal-overlay">',e=j.data(e),j.enqueue("styles","htmlwidgets.css"),(r?'<input id="modal_'+l+'" type="checkbox" class="w-modal-controller" />':"")+t+'<div id="'+l+'" class="'+c+'" '+n+" "+i+" "+e+'><div class="w-dialog-title">'+o+s+'<label for="modal_'+l+'" class="w-label w-dialog-close" title="Close" onclick=""><i class="fa fa-times-circle"></i></label></div><div class="w-dialog-content">'},w_modal_end:function(e,t,a){var n=A(e,"buttons")?e.buttons:"",e=T(e,"autoclose")?"</div>":"</label>";return"</div>"+(n&&n.length?'<div class="w-dialog-buttons">'+n+"</div>":"")+"</div>"+e},w_menu:function(e,t,a){var n,i,o,s,l=A(e,"id")?e.id:j.uuid(),r="w-widget";return T(e,"class")||(r+=" "+e.class),n=T(e,"style")?"":'style="'+e.style+'"',i=T(e,"extra")?"":e.extra,o=j.data(e),y(t)&&t.length?(s='<nav id="'+l+'" class="'+r+'" '+n+" "+i+" "+o+">\n",T(e,"mobile")&&(s+='<label for="mobile-menu_'+l+'" class="w-menu-controller-bt"><i class="fa fa-bars fa-2x"></i>&nbsp;</label><input id="mobile-menu_'+l+'" type="checkbox" class="w-menu-controller" value="1" />\n'),s+=j.menu(t),s+="</nav>",j.enqueue("styles","htmlwidgets.css"),s):'<nav id="'+l+'" class="'+r+'" '+n+" "+i+" "+o+">"},w_menu_end:function(e,t,a){return j.enqueue("styles","htmlwidgets.css"),"</nav>"},w_pagination:function(e,t,a){var n,i,o,s,l,r,c,d,m,u,p,h,f,w,b,g,v,y=A(e,"id")?e.id:j.uuid(),x="w-pagination pagination";if(T(e,"class")||(x+=" "+e.class),n=T(e,"style")?"":'style="'+e.style+'"',i=T(e,"extra")?"":e.extra,o=parseInt(t.totalItems),b=parseInt(t.itemsPerPage),s=A(t,"currentPage")?parseInt(t.currentPage):1,l=A(e,"maxPages")?parseInt(e.maxPages):10,r=A(e,"placeholder")?String(e.placeholder):"(:page)",c=A(e,"urlPattern")?String(e.urlPattern):"?page="+r,d=A(e,"previousText")?String(e.previousText):"&laquo; Previous",m=A(e,"nextText")?String(e.nextText):"Next &raquo;",t=A(e,"ellipsis")?String(e.ellipsis):"...",e=!T(e,"selectBox"),1<(u=b<=0||o<=0?0:Math.ceil(o/b))){if(p=[],u<=l)for(f=1;f<=u;f++)p.push({text:f,url:c.replace(r,String(f)),isCurrent:f==s});else{for((b=u<s+(b=Math.floor((l-3)/2))?u-l+2:s-b)<2&&(b=2),u<=(g=b+l-3)&&(g=u-1),p.push({text:1,url:c.replace(r,String(1)),isCurrent:1==s}),2<b&&p.push({text:t,url:null,isCurrent:!1}),f=b;f<=g;f++)p.push({text:f,url:c.replace(r,String(f)),isCurrent:f==s});g<u-1&&p.push({text:t,url:null,isCurrent:!1}),p.push({text:u,url:c.replace(r,String(u)),isCurrent:u==s})}if(e){for(v='<div id="'+y+'" class="'+x+'" '+n+" "+i+">",1<s&&(v+='<span class="page-previous"><a href="'+k(c.replace(r,String(s-1)))+'">'+d+"</a></span>"),v+='<select class="page-select">',f=0,w=p.length;f<w;f++)(h=p[f]).url?v+='<option value="'+k(h.url)+'"'+(h.isCurrent?" selected":"")+">"+String(h.text)+"</option>":v+="<option disabled>"+String(h.text)+"</option>";v+="</select>",s<u&&(v+='<span class="page-next"><a href="'+k(c.replace(r,String(s+1)))+'">'+m+"</a></span>"),v+="</div>"}else{for(v='<ul id="'+y+'" class="'+x+'" '+n+" "+i+">",1<s&&(v+='<li class="page-previous"><a href="'+k(c.replace(r,String(s-1)))+'">'+d+"</a></li>"),f=0,w=p.length;f<w;f++)(h=p[f]).url?v+='<li class="page-item'+(1==h.text?" page-first":"")+(u==h.text?" page-last":"")+(h.isCurrent?" page-active active":"")+'"><a href="'+k(h.url)+'">'+String(h.text)+"</a></li>":v+='<li class="page-item disabled"><span>'+String(h.text)+"</span></li>";s<u&&(v+='<li class="page-next"><a href="'+k(c.replace(r,String(s+1)))+'">'+m+"</a></li>"),v+="</ul>"}return j.enqueue("styles","htmlwidgets.css"),v}return""},w_delayable:function(e,t,a){var n,i,o,s=A(e,"id")?e.id:j.uuid(),l="w-delayable-overlay";return T(e,"class")||(l+=" "+e.class),n=T(e,"style")?"":'style="'+e.style+'"',i=T(e,"extra")?"":e.extra,o="w-spinner",o+=T(e,"spinner")?" w-spinner-dots":" "+e.spinner,j.enqueue("styles","htmlwidgets.css"),'<div id="'+s+'" class="'+l+'" '+n+" "+i+'><div class="'+o+'"></div></div>'},w_disabable:function(e,t,a){var n,i=A(e,"id")?e.id:j.uuid(),o="w-disabable-overlay";return T(e,"class")||(o+=" "+e.class),n=T(e,"style")?"":'style="'+e.style+'"',e=T(e,"extra")?"":e.extra,j.enqueue("styles","htmlwidgets.css"),'<div id="'+i+'" class="'+o+'" '+n+" "+e+"></div>"},w_morphable:function(e,t,a){for(var n,i,o,s,l,r=A(e,"id")?e.id:j.uuid(),c=[].concat(e.modes),d=T(e,"mode")?"mode-${MODE}":e.mode,m=T(e,"show")?"show-if-${MODE}":e.show,u=T(e,"hide")?"hide-if-${MODE}":e.hide,p="#"+r+".w-morphable:not(.w-animated-morphable)",h="#"+r+".w-morphable.w-animated-morphable",f=[],w=[],b=[],g=[],v=[],y=[],x=[],k=[],_=c.length,q=0;q<_;q++)l=d.split("${MODE}").join(c[q]),n=" .w-morphable-item."+u.split("${MODE}").join(c[q]),i=" .w-morphable-item."+u.split("${MODE}").join("not-"+c[q]),o=" .w-morphable-item."+m.split("${MODE}").join(c[q]),s=" .w-morphable-item."+m.split("${MODE}").join("not-"+c[q]),f.push(p+".w-morphable-level-1 > .w-morphable-item"),v.push(h+".w-morphable-level-1 > .w-morphable-item"),g.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+p+".w-morphable-level-1 >"+n),g.push(p+".w-morphable-class."+l+".w-morphable-level-1 >"+n),w.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+p+".w-morphable-level-1 >"+o),w.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+p+".w-morphable-level-1 >"+s),w.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+p+".w-morphable-level-1 >"+i),w.push(p+".w-morphable-class:not(."+l+").w-morphable-level-1 >"+o),w.push(p+".w-morphable-class."+l+".w-morphable-level-1 >"+s),w.push(p+".w-morphable-class:not(."+l+").w-morphable-level-1 >"+i),b.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+p+".w-morphable-level-1 >"+o),b.push(p+".w-morphable-class."+l+".w-morphable-level-1 >"+o),f.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+p+".w-morphable-level-1 >"+n),f.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+p+".w-morphable-level-1 >"+i),f.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+p+".w-morphable-level-1 >"+s),f.push(p+".w-morphable-class:not(."+l+").w-morphable-level-1 >"+n),f.push(p+".w-morphable-class."+l+".w-morphable-level-1 >"+i),f.push(p+".w-morphable-class:not(."+l+").w-morphable-level-1 >"+s),k.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+h+".w-morphable-level-1 >"+n),k.push(h+".w-morphable-class."+l+".w-morphable-level-1 >"+n),y.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+h+".w-morphable-level-1 >"+o),y.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+h+".w-morphable-level-1 >"+s),y.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+h+".w-morphable-level-1 >"+i),y.push(h+".w-morphable-class:not(."+l+").w-morphable-level-1 >"+o),y.push(h+".w-morphable-class."+l+".w-morphable-level-1 >"+s),y.push(h+".w-morphable-class:not(."+l+").w-morphable-level-1 >"+i),x.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+h+".w-morphable-level-1 >"+o),x.push(h+".w-morphable-class."+l+".w-morphable-level-1 >"+o),v.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+h+".w-morphable-level-1 >"+n),v.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+h+".w-morphable-level-1 >"+i),v.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+h+".w-morphable-level-1 >"+s),v.push(h+".w-morphable-class:not(."+l+").w-morphable-level-1 >"+n),v.push(h+".w-morphable-class."+l+".w-morphable-level-1 >"+i),v.push(h+".w-morphable-class:not(."+l+").w-morphable-level-1 >"+s),f.push(p+":not(.w-morphable-level-1) .w-morphable-item"),v.push(h+":not(.w-morphable-level-1) .w-morphable-item"),g.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+p+":not(.w-morphable-level-1)"+n),g.push(p+".w-morphable-class."+l+":not(.w-morphable-level-1)"+n),w.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+p+":not(.w-morphable-level-1)"+o),w.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+p+":not(.w-morphable-level-1)"+s),w.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+p+":not(.w-morphable-level-1)"+i),w.push(p+".w-morphable-class:not(."+l+"):not(.w-morphable-level-1)"+o),w.push(p+".w-morphable-class."+l+":not(.w-morphable-level-1)"+s),w.push(p+".w-morphable-class:not(."+l+"):not(.w-morphable-level-1)"+i),b.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+p+":not(.w-morphable-level-1)"+o),b.push(p+".w-morphable-class."+l+":not(.w-morphable-level-1)"+o),f.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+p+":not(.w-morphable-level-1)"+n),f.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+p+":not(.w-morphable-level-1)"+i),f.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+p+":not(.w-morphable-level-1)"+s),f.push(p+".w-morphable-class:not(."+l+"):not(.w-morphable-level-1)"+n),f.push(p+".w-morphable-class."+l+":not(.w-morphable-level-1)"+i),f.push(p+".w-morphable-class:not(."+l+"):not(.w-morphable-level-1)"+s),k.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+h+":not(.w-morphable-level-1)".$whide_sel),k.push(h+".w-morphable-class."+l+":not(.w-morphable-level-1)"+n),y.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+h+":not(.w-morphable-level-1)"+o),y.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+h+":not(.w-morphable-level-1)"+s),y.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+h+":not(.w-morphable-level-1)"+i),y.push(h+".w-morphable-class:not(."+l+"):not(.w-morphable-level-1)"+o),y.push(h+".w-morphable-class."+l+":not(.w-morphable-level-1)"+s),y.push(h+".w-morphable-class:not(."+l+"):not(.w-morphable-level-1)"+i),x.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+h+":not(.w-morphable-level-1)"+o),x.push(h+".w-morphable-class."+l+":not(.w-morphable-level-1)"+o),v.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+h+":not(.w-morphable-level-1)"+n),v.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+h+":not(.w-morphable-level-1)"+i),v.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+h+":not(.w-morphable-level-1)"+s),v.push(h+".w-morphable-class:not(."+l+"):not(.w-morphable-level-1)"+n),v.push(h+".w-morphable-class."+l+":not(.w-morphable-level-1)"+i),v.push(h+".w-morphable-class:not(."+l+"):not(.w-morphable-level-1)"+s);return e="",e+=w.join(",")+"{display: none !important}",e+=f.join(",")+"{display: block}",e+=g.join(",")+"{display: none !important}",e+=b.join(",")+"{display: block !important}",e+=y.join(",")+"{pointer-events: none !important; overflow: hidden !important;min-width: 0 !important; max-width: 0 !important;min-height: 0 !important; max-height: 0 !important; opacity: 0 !important;-webkit-transition: opacity 0.4s ease, max-width 0.6s ease 0.2s, max-height 0.6s ease 0.2s;-moz-transition: opacity 0.4s ease, max-width 0.6s ease 0.2s, max-height 0.6s ease 0.2s;-ms-transition: opacity 0.4s ease, max-width 0.6s ease 0.2s, max-height 0.6s ease 0.2s;-o-transition: opacity 0.4s ease, max-width 0.6s ease 0.2s, max-height 0.6s ease 0.2s;transition: opacity 0.4s ease, max-width 0.6s ease 0.2s, max-height 0.6s ease 0.2s;}",e+=v.join(",")+"{overflow: hidden !important;min-width: 0 !important; max-width: 5000px; min-height: 0 !important; max-height: 5000px; opacity: 1;-webkit-transition: opacity 0.4s ease 0.2s, max-width 0.6s ease, max-height 0.6s ease;-moz-transition: opacity 0.4s ease 0.2s, max-width 0.6s ease, max-height 0.6s ease;-ms-transition: opacity 0.4s ease 0.2s, max-width 0.6s ease, max-height 0.6s ease;-o-transition: opacity 0.4s ease 0.2s, max-width 0.6s ease, max-height 0.6s ease;transition: opacity 0.4s ease 0.2s, max-width 0.6s ease, max-height 0.6s ease;}",e+=k.join(",")+"{pointer-events: none !important; overflow: hidden !important;min-width: 0 !important; max-width: 0 !important;min-height: 0 !important; max-height: 0 !important; opacity: 0 !important;-webkit-transition: opacity 0.4s ease, max-width 0.6s ease 0.2s, max-height 0.6s ease 0.2s;-moz-transition: opacity 0.4s ease, max-width 0.6s ease 0.2s, max-height 0.6s ease 0.2s;-ms-transition: opacity 0.4s ease, max-width 0.6s ease 0.2s, max-height 0.6s ease 0.2s;-o-transition: opacity 0.4s ease, max-width 0.6s ease 0.2s, max-height 0.6s ease 0.2s;transition: opacity 0.4s ease, max-width 0.6s ease 0.2s, max-height 0.6s ease 0.2s;}",e+=x.join(",")+"{overflow: hidden !important;min-width: 0 !important; max-width: 5000px; min-height: 0 !important; max-height: 5000px; opacity: 1;-webkit-transition: opacity 0.4s ease 0.2s, max-width 0.6s ease, max-height 0.6s ease;-moz-transition: opacity 0.4s ease 0.2s, max-width 0.6s ease, max-height 0.6s ease;-ms-transition: opacity 0.4s ease 0.2s, max-width 0.6s ease, max-height 0.6s ease;-o-transition: opacity 0.4s ease 0.2s, max-width 0.6s ease, max-height 0.6s ease;transition: opacity 0.4s ease 0.2s, max-width 0.6s ease, max-height 0.6s ease;}",j.enqueue("styles","w-morphable-"+r,[e],["htmlwidgets.css"]),""},w_panel:function(e,t,a){var n,i,o,s,l=A(e,"id")?e.id:j.uuid(),r="w-panel";return T(e,"class")||(r+=" "+e.class),n=T(e,"style")?"":'style="'+e.style+'"',o=T(e,"title")?"&nbsp;":e.title,s=T(e,"opened")?"":"checked",i=T(e,"extra")?"":e.extra,e=j.data(e),j.enqueue("styles","htmlwidgets.css"),'<input type="checkbox" id="controller_'+l+'" class="w-panel-controller" value="1" '+s+'/><div id="'+l+'" class="'+r+'" '+n+" "+i+" "+e+'><div class="w-panel-header">'+o+'<label class="w-panel-controller-button fa fa-2x" for="controller_'+l+'" onclick=""></label></div><div class="w-panel-content">'},w_panel_end:function(e,t,a){return"</div></div>"},w_accordeon:function(e,t,a){for(var n=A(e,"id")?e.id:j.uuid(),i=T(e,"context")?"":e.context+" ",o=T(e,"height")?"1500px":e.height,s=T(e,"independent")?"radio":"checkbox",l=[].concat(e.items),r="ctrl_"+n,e='<input name="'+r+'" type="'+s+'" id="item_'+l.join('" class="w-transition-controller w-'+r+'-controller"/><input name="'+r+'" type="'+s+'" id="item_')+'" class="w-transition-controller w-'+r+'-controller"/>',s="",c=[],d=0,m=l.length;d<m;d++)c.push(".w-"+r+"-controller.w-transition-controller:not(#item_"+l[d]+"):checked ~ "+i+"#"+l[d]);for(s+=c.join(",")+"{    max-height: 0;    -webkit-transition: max-height .3s ease;    -moz-transition: max-height .3s ease;    -ms-transition: max-height .3s ease;    -o-transition: max-height .3s ease;    transition: max-height .3s ease;}",c=[],d=0,m=l.length;d<m;d++)c.push("#item_"+l[d]+".w-"+r+"-controller.w-transition-controller:checked ~ "+i+"#"+l[d]);return s+=c.join(",")+"{    max-height: "+o+";    -webkit-transition: max-height .2s ease .1s;    -moz-transition: max-height .2s ease .1s;    -ms-transition: max-height .2s ease .1s;    -o-transition: max-height .2s ease .1s;    transition: max-height .2s ease .1s;}",j.enqueue("styles","w-accordeon-"+n,[s],["htmlwidgets.css"]),e},w_tabs:function(e,t,a){for(var n,i=A(e,"id")?e.id:j.uuid(),o=T(e,"context")?"":e.context+" ",s=[].concat(e.tabs),l=T(e["3d"])?(n="w-fx-slideout","w-fx-slidein"):(n="w-fx-slideout-3d","w-fx-slidein-3d"),r="ctrl_"+i,c='<input name="'+r+'" checked type="radio" id="tab_'+s.join('" class="w-transition-controller w-'+r+'-controller"/><input name="'+r+'" type="radio" id="tab_')+'" class="w-transition-controller w-'+r+'-controller"/>',e="",d=[],m=0,u=s.length;m<u;m++)d.push(".w-"+r+"-controller.w-transition-controller:not(#tab_"+s[m]+"):checked ~ "+o+"#"+s[m]);for(e+=d.join(",")+"{    position: absolute;        -webkit-animation-name: "+n+";    -moz-animation-name: "+n+";    -ms-animation-name: "+n+";    -o-animation-name: "+n+";    animation-name: "+n+";        -webkit-animation-timing-function: ease-out;    -moz-animation-timing-function: ease-out;    -ms-animation-timing-function: ease-out;    -o-animation-timing-function: ease-out;    animation-timing-function: ease-out;}",d=[],m=0,u=s.length;m<u;m++)d.push("#tab_"+s[m]+".w-"+r+"-controller.w-transition-controller:checked ~ "+o+"#"+s[m]);return e+=d.join(",")+"{    position: relative;    z-index: 10;        -webkit-animation-name: "+l+";    -moz-animation-name: "+l+";    -ms-animation-name: "+l+";    -o-animation-name: "+l+";    animation-name: "+l+";        -webkit-animation-timing-function: ease-in;    -moz-animation-timing-function: ease-in;    -ms-animation-timing-function: ease-in;    -o-animation-timing-function: ease-in;    animation-timing-function: ease-in;}",j.enqueue("styles","w-tabs-"+i,[e],["htmlwidgets.css"]),c},w_pages:function(e,t,a){var n,i,o,s,l,r=A(e,"id")?e.id:j.uuid(),c=T(e,"context")?"":e.context+" ",d=[].concat(e.pages),m=T(e["3d"])?(s="translateX(0px)",l="translateX(-100%)","translateX(100%)"):(s="translate3d(0px,0px,0px)",l="translate3d(-100%,0px,0px)","translate3d(100%,0px,0px)"),u='<span id="page_'+d.join('" class="w-page-controller"></span><span id="page_')+'" class="w-page-controller"></span>',p="",e=d.shift();for(p+="#"+e+".w-page{    position: relative;    -webkit-transform: "+s+";    -moz-transform: "+s+";    -ms-transform: "+s+";    -o-transform: "+s+";    transform: "+s+";}.w-page-controller:not(#page_"+e+"):target ~ "+c+"#"+e+".w-page{    position: absolute;        -webkit-transform: "+l+";    -moz-transform: "+l+";    -ms-transform: "+l+";    -o-transform: "+l+";    transform: "+l+";        -webkit-transition: -webkit-transform .3s ease;    -moz-transition: -moz-transform .3s ease;    -ms-transition: -ms-transform .3s ease;    -o-transition: -o-transform .3s ease;    transition: transform .3s ease;}",o=[],n=0,i=d.length;n<i;n++)o.push("#page_"+d[n]+".w-page-controller:not(:target) ~ "+c+"#"+d[n]+".w-page");for(p+=o.join(",")+"{    -webkit-transform: "+m+";    -moz-transform: "+m+";    -ms-transform: "+m+";    -o-transform: "+m+";    transform: "+m+";}",o=[],n=0,i=d.length;n<i;n++)o.push("#page_"+d[n]+".w-page-controller:target ~ "+c+"#"+d[n]+".w-page");return p+=o.join(",")+"{    position: relative;        -webkit-transform: "+s+";    -moz-transform: "+s+";    -ms-transform: "+s+";    -o-transform: "+s+";    transform: "+s+";        -webkit-transition: -webkit-transform .3s ease;    -moz-transition: -moz-transform .3s ease;    -ms-transition: -ms-transform .3s ease;    -o-transition: -o-transform .3s ease;    transition: transform .3s ease;}",j.enqueue("styles","w-pages-"+r,[p],["htmlwidgets.css"]),u},w_tooltip:function(e,t,a){var n,i,o=A(e,"id")?e.id:j.uuid(),s=A(t,"text")?t.text:"",l=A(e,"title")?e.title:s,r="w-tooltip";return T(e,"class")||(r+=" "+e.class),n=T(e,"style")?"":'style="'+e.style+'"',i=T(e,"extra")?"":e.extra,T(e,"icon")?T(e,"iconr")||(s=s+'<i class="fa fa-'+e.iconr+' right-fa"></i>'):s='<i class="fa fa-'+e.icon+' left-fa"></i>'+s,t=T(e,"tooltip")?'<div class="w-tooltip-arrow w-arrow-right"></div>':"top"===e.toolip?'<div class="w-tooltip-arrow w-arrow-bottom"></div>':"bottom"===e.toolip?'<div class="w-tooltip-arrow w-arrow-top"></div>':"right"===e.toolip?'<div class="w-tooltip-arrow w-arrow-left"></div>':'<div class="w-tooltip-arrow w-arrow-right"></div>',e=j.data(e),j.enqueue("styles","htmlwidgets.css"),'<div id="'+o+'" class="'+r+'" '+n+" "+i+' title="'+l+'" '+e+">"+s+t+"</div>"},w_animation:function(e,t,a){var n,i=A(e,"id")?e.id:j.uuid("widget_animation"),o=A(e,"selector")?e.selector:".animate-"+i,s=T(e,"animation")?"":e.animation,l=T(e,"transition")?"":e.transition,r=A(e,"duration")?e.duration:"0.5s",c=A(e,"delay")?e.delay:"0s",d=T(e,"timing-function")?"":e["timing-function"],m=T(e,"easing")?"linear":e.easing;return d.length||(d=m),n=T(e,"iteration-count")?"1":e["iteration-count"],m=T(e,"fill-mode")?"both":e["fill-mode"],e="",s.length&&(e+=o+"{-webkit-animation-duration: "+r+";-moz-animation-duration: "+r+";-ms-animation-duration: "+r+";-o-animation-duration: "+r+";animation-duration: "+r+";-webkit-animation-delay: "+c+";-moz-animation-delay: "+c+";-ms-animation-delay: "+c+";-o-animation-delay: "+c+";animation-delay: "+c+";-webkit-animation-iteration-count: "+n+";-moz-animation-iteration-count: "+n+";-ms-animation-iteration-count: "+n+";-o-animation-iteration-count: "+n+";animation-iteration-count: "+n+";-webkit-animation-timing-function: "+d+";-moz-animation-timing-function: "+d+";-ms-animation-timing-function: "+d+";-o-animation-timing-function: "+d+";animation-timing-function: "+d+";-webkit-animation-fill-mode: "+m+";-moz-animation-fill-mode: "+m+";-ms-animation-fill-mode: "+m+";-o-animation-fill-mode: "+m+";animation-fill-mode: "+m+";-webkit-animation-name: "+i+";-moz-animation-name: "+i+";-ms-animation-name: "+i+";-o-animation-name: "+i+";animation-name: "+i+";}@-webkit-keyframes "+i+"{"+s+"}@keyframes "+i+"{"+s+"}"),l.length&&(e+=o+"{-webkit-transition: "+l+" "+r+" "+d+" "+c+";-moz-transition: "+l+" "+r+" "+d+" "+c+";-ms-transition: "+l+" "+r+" "+d+" "+c+";-o-transition: "+l+" "+r+" "+d+" "+c+";transition: "+l+" "+r+" "+d+" "+c+";}"),j.enqueue("styles","w-animation-"+i,[e],["htmlwidgets.css"]),""},w_sprite:function(e,t,a){var n,i,o,s,l,r,c,d,m,u,p,h,f,w,b,g,v=A(e,"id")?e.id:j.uuid("widget_sprite"),y=A(t,"text")?t.text:"",x=A(e,"title")?e.title:y,k=T(e,"style")?"":'style="'+e.style+'"',_=T(e,"extra")?"":e.extra,q=A(e,"animation")?e.animation:"sprite-"+v,E="w-sprite "+q+"-class";return T(e,"class")||(E+=" "+e.class),n=A(e,"sprite")?e.sprite:v,g=A(e,"iteration")?e.iteration:"infinite",s=A(e,"fps")?+e.fps:12,i=A(e,"width")?+e.width:100,o=A(e,"height")?+e.height:100,s=(t=A(e,"rows")?+e.rows:1)*(e=A(e,"columns")?+e.columns:1)/s,g=1<t&&1<e?(l=!0,r="background-position-x",c="background-position-y",m=d="0%",u="-"+100*e+"%",p="-"+100*t+"%",h=q+"-grid-x, "+q+"-grid-y",f=s/t+"s, "+s+"s",w="0s, 0s",b="steps("+e+"), steps("+t+")",g+", "+g):(b=1<t?(l=!1,r="background-position",d="0% 0%",u="0% -"+100*t+"%",h=q+"-grid-x",f=s+"s",w="0s","steps("+t+")"):(l=!1,r="background-position",d="0% 0%",u="-"+100*e+"% 0%",h=q+"-grid-x",f=s+"s",w="0s","steps("+e+")"),g),u="#"+v+".w-sprite."+q+"-class{width: "+i+"px; height: "+o+'px;background-image: url("'+n+'");background-repeat: none;background-position: 0% 0%;background-size: auto auto;-webkit-animation-name: '+h+";-webkit-animation-duration: "+f+";-webkit-animation-delay: "+w+";-webkit-animation-timing-function: "+b+";-webkit-animation-iteration-count: "+g+";-moz-animation-name: "+h+";-moz-animation-duration: "+f+";-moz-animation-delay: "+w+";-moz-animation-timing-function: "+b+";-moz-animation-iteration-count: "+g+";-ms-animation-name: "+h+";-ms-animation-duration: "+f+";-ms-animation-delay: "+w+";-ms-animation-timing-function: "+b+";-ms-animation-iteration-count: "+g+";-o-animation-name: "+h+";-o-animation-duration: "+f+";-o-animation-delay: "+w+";-o-animation-timing-function: "+b+";-o-animation-iteration-count: "+g+";animation-name: "+h+";animation-duration: "+f+";animation-delay: "+w+";animation-timing-function: "+b+";animation-iteration-count: "+g+";}#"+v+".w-sprite.responsive."+q+"-class,#"+v+".w-sprite.sprite-responsive."+q+"-class,#"+v+".w-sprite.w-sprite-responsive."+q+"-class{width: 100% !important; height: auto !important;padding-bottom: "+100*o/i+"% !important;background-size: "+(100*e+"% "+100*t+"%")+" !important;}@-webkit-keyframes "+q+"-grid-x {    0% { "+r+": "+d+"; }    100% { "+r+": "+u+"; }}@-moz-keyframes "+q+"-grid-x {    0% { "+r+": "+d+"; }    100% { "+r+": "+u+"; }}@-ms-keyframes "+q+"-grid-x {    0% { "+r+": "+d+"; }    100% { "+r+": "+u+"; }}@-o-keyframes "+q+"-grid-x {    0% { "+r+": "+d+"; }    100% { "+r+": "+u+"; }}@keyframes "+q+"-grid-x {    0% { "+r+": "+d+"; }    100% { "+r+": "+u+"; }}",l&&(u+="\n@-webkit-keyframes "+q+"-grid-y {    0% { "+c+": "+m+"; }    100% { "+c+": "+p+"; }}@-moz-keyframes "+q+"-grid-y {    0% { "+c+": "+m+"; }    100% { "+c+": "+p+"; }}@-ms-keyframes "+q+"-grid-y {    0% { "+c+": "+m+"; }    100% { "+c+": "+p+"; }}@-o-keyframes "+q+"-grid-y {    0% { "+c+": "+m+"; }    100% { "+c+": "+p+"; }}@keyframes "+q+"-grid-y {    0% { "+c+": "+m+"; }    100% { "+c+": "+p+"; }}"),j.enqueue("styles","w-sprite-"+v,[u],["htmlwidgets.css"]),'<div id="'+v+'" class="'+E+'" title="'+x+'" '+k+" "+_+">"+y+"</div>"}};return e?h.BASE="./":a?h.BASE=__dirname:n?h.BASE=this.location.href.split("/").slice(0,-1).join("/"):(n=document.getElementsByTagName("script"),h.BASE=(n[n.length-1].src||"./").split("/").slice(0,-1).join("/")),h});
For more information send a message to info at phpclasses dot org.