!function(){function a(a,b){var c,d,e=null,f=a.document;return f.selection?(c=f.selection.createRange(),c.collapse(b),c.parentElement()):(a.getSelection&&(d=a.getSelection(),d.rangeCount>0&&(c=d.getRangeAt(0),e=c[b?"startContainer":"endContainer"],3===e.nodeType&&(e=e.parentNode))),e)}if(function(){var a={};!function(a,b){a.VERSION="1.0.0",a.COMPILER_REVISION=4,a.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:">= 1.0.0"},a.helpers={},a.partials={};var c=Object.prototype.toString,d="[object Function]",e="[object Object]";a.registerHelper=function(b,d,f){if(c.call(b)===e){if(f||d)throw new a.Exception("Arg not supported with multiple helpers");a.Utils.extend(this.helpers,b)}else f&&(d.not=f),this.helpers[b]=d},a.registerPartial=function(b,d){c.call(b)===e?a.Utils.extend(this.partials,b):this.partials[b]=d},a.registerHelper("helperMissing",function(a){if(2===arguments.length)return b;throw new Error("Missing helper: '"+a+"'")}),a.registerHelper("blockHelperMissing",function(b,e){var f=e.inverse||function(){},g=e.fn,h=c.call(b);return h===d&&(b=b.call(this)),b===!0?g(this):b===!1||null==b?f(this):"[object Array]"===h?b.length>0?a.helpers.each(b,e):f(this):g(b)}),a.K=function(){},a.createFrame=Object.create||function(b){a.K.prototype=b;var c=new a.K;return a.K.prototype=null,c},a.logger={DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,methodMap:{0:"debug",1:"info",2:"warn",3:"error"},log:function(b,c){if(a.logger.level<=b){var d=a.logger.methodMap[b];"undefined"!=typeof console&&console[d]&&console[d].call(console,c)}}},a.log=function(b,c){a.logger.log(b,c)},a.registerHelper("each",function(b,e){var f,g=e.fn,h=e.inverse,i=0,j="",k=c.call(b);if(k===d&&(b=b.call(this)),e.data&&(f=a.createFrame(e.data)),b&&"object"==typeof b)if(b instanceof Array)for(var l=b.length;l>i;i++)f&&(f.index=i),j+=g(b[i],{data:f});else for(var m in b)b.hasOwnProperty(m)&&(f&&(f.key=m),j+=g(b[m],{data:f}),i++);return 0===i&&(j=h(this)),j}),a.registerHelper("if",function(b,e){var f=c.call(b);return f===d&&(b=b.call(this)),!b||a.Utils.isEmpty(b)?e.inverse(this):e.fn(this)}),a.registerHelper("unless",function(b,c){return a.helpers["if"].call(this,b,{fn:c.inverse,inverse:c.fn})}),a.registerHelper("with",function(b,e){var f=c.call(b);return f===d&&(b=b.call(this)),a.Utils.isEmpty(b)?void 0:e.fn(b)}),a.registerHelper("log",function(b,c){var d=c.data&&null!=c.data.level?parseInt(c.data.level,10):1;a.log(d,b)});var f=["description","fileName","lineNumber","message","name","number","stack"];a.Exception=function(){for(var a=Error.prototype.constructor.apply(this,arguments),b=0;b":">",'"':""","'":"'","`":"`"},h=/[&<>"'`]/g,i=/[&<>"'`]/,j=function(a){return g[a]||"&"};a.Utils={extend:function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},escapeExpression:function(b){return b instanceof a.SafeString?b.toString():null==b||b===!1?"":(b=b.toString(),i.test(b)?b.replace(h,j):b)},isEmpty:function(a){return a||0===a?"[object Array]"===c.call(a)&&0===a.length?!0:!1:!0}},a.VM={template:function(b){var c={escapeExpression:a.Utils.escapeExpression,invokePartial:a.VM.invokePartial,programs:[],program:function(b,c,d){var e=this.programs[b];return d?e=a.VM.program(b,c,d):e||(e=this.programs[b]=a.VM.program(b,c)),e},merge:function(b,c){var d=b||c;return b&&c&&(d={},a.Utils.extend(d,c),a.Utils.extend(d,b)),d},programWithDepth:a.VM.programWithDepth,noop:a.VM.noop,compilerInfo:null};return function(d,e){e=e||{};var f=b.call(c,a,d,e.helpers,e.partials,e.data),g=c.compilerInfo||[],h=g[0]||1,i=a.COMPILER_REVISION;if(h!==i){if(i>h){var j=a.REVISION_CHANGES[i],k=a.REVISION_CHANGES[h];throw"Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+j+") or downgrade your runtime to an older version ("+k+")."}throw"Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+g[1]+")."}return f}},programWithDepth:function(a,b,c){var d=Array.prototype.slice.call(arguments,3),e=function(a,e){return e=e||{},b.apply(this,[a,e.data||c].concat(d))};return e.program=a,e.depth=d.length,e},program:function(a,b,c){var d=function(a,d){return d=d||{},b(a,d.data||c)};return d.program=a,d.depth=0,d},noop:function(){return""},invokePartial:function(c,d,e,f,g,h){var i={helpers:f,partials:g,data:h};if(c===b)throw new a.Exception("The partial "+d+" could not be found");if(c instanceof Function)return c(e,i);if(a.compile)return g[d]=a.compile(c,{data:h!==b}),g[d](e,i);throw new a.Exception("The partial "+d+" could not be compiled when running in runtime-only mode")}},a.template=a.VM.template,"function"==typeof define&&define.amd&&define("handlebars",a)}(a)}(),define("../locales/de",{insert_image:"Bild einfügen",insert_video:"Video einfügen",insert_website:"Webseite einfügen",add_slide:"Folie hinzufügen",remove_slide:"Folie entfernen",slides:"Folien",overview:"Übersicht",open:"Öffnen",save:"Speichern",save_as:"Speichern als...",new_:"Neu",text:"Text",image:"Bild",video:"Video",website:"Webseite",present:"Präsentieren","export":"Exportieren...","import":"Importieren...",cut:"Ausschneiden",copy:"Kopieren",paste:"Einfügen","delete":"Löschen",undo:"Rückgängig",redo:"Wiederholen",shapes:"Formen",single_slide_bg:"Single Slide Background",invisible:"Unsichtbar",reset:"Zurücksetzen",go:"Gehe",strut_exporter_json:{explain:"Dies erlaubt Ihnen, eine Datei auf Ihrem Computer zu speichern, die Sie später wieder in Strut importieren können.",click_below:"Klicken sie zum Herunterladen auf das Symbol unten"},background:"Hintergrund",surface:"Oberfläche"}),define("../locales/en",{insert_image:"Insert Image",insert_video:"Insert Video",insert_website:"Insert Website",add_slide:"Add Slide",remove_slide:"Remove Slide",slides:"Slides",overview:"Overview",open:"Open",save:"Save",save_as:"Save as...",new_:"New",text:"Text",image:"Image",video:"Video",website:"Website",present:"Present","export":"Export...","import":"Import...",cut:"Cut",copy:"Copy",paste:"Paste","delete":"Delete",undo:"Undo",redo:"Redo",shapes:"Shapes",single_slide_bg:"Single Slide Background",invisible:"Invisible",reset:"Reset",go:"Go",strut_exporter_json:{explain:"This allows you to save a file on your computer that you can import back into Strut later.",click_below:"Click below to download"},background:"Background",surface:"Surface"}),define("../locales/es",{insert_image:"Insertar imagen",insert_video:"Insertarr vídeo",insert_website:"Insertar sitio web",add_slide:"Añadir diapositiva",remove_slide:"Eliminar diapositiva",slides:"Diapositivas",overview:"Resumen",open:"Abrir",save:"Guardar",save_as:"Guardar como...",new_:"Nuevo",text:"Texto",image:"Imagen",video:"Vídeo",website:"Sitio Web",present:"Presentar","export":"Exportar...","import":"Importar...",cut:"Cortar",copy:"Copiar",paste:"Pegar","delete":"Borrar",undo:"Deshacer",redo:"Rehacer",shapes:"Formas",single_slide_bg:"Single Slide Background",invisible:"Invisible",reset:"Reajustar",go:"Ir",strut_exporter_json:{explain:"Esto te permite guardar un archivo en tu ordenador que podrás importar en Strut posteriormente.",click_below:"Haz Copiarlick abajo para descargar."},background:"Fondo",surface:"Superficie"}),define("../locales/fr",{insert_image:"Insérer une image",insert_video:"Insérer une vidéo",insert_website:"Insérer un site web",add_slide:"Ajouter une diapo",remove_slide:"Supprimer la diapo",slides:"Diapos",overview:"Panorama",open:"Ouvrir",save:"Enregistrer",save_as:"Enregistrer sous...",new_:"Nouveau",text:"Texte",image:"Image",video:"Vidéo",website:"Site web",present:"Courant","export":"Exporter...","import":"Importer...",cut:"Couper",copy:"Copier",paste:"Coller","delete":"Effacer",undo:"Annuler",redo:"Refaire",shapes:"Formes",single_slide_bg:"Single Slide Background",invisible:"Invisible",reset:"Réinitialiser",go:"Aller",strut_exporter_json:{explain:"Vous pouvez sauvegarder la présentation dans fichier que vous pourrez réimporter dans Strut plus tard",click_below:"Cliquer ci-dessous pour télécharger le fichier"},background:"Fond",surface:"Surface"}),define("../locales/nl",{insert_image:"Afbeelding invoegen",insert_video:"Video invoegen",insert_website:"Website invoegen",add_slide:"Dia toevoegen",remove_slide:"Dia verwijderen",slides:"Dia's",overview:"Overzicht",open:"Openen",save:"Opslaan",save_as:"Opslaan als...",new_:"Nieuw",text:"Tekst",image:"Afbeelding",video:"Video",website:"Website",present:"Presenteren","export":"Exporteren...","import":"Importeren...",cut:"Knippen",copy:"Kopiëren",paste:"Plakken","delete":"Verwijderen",undo:"Ongedaan maken",redo:"Opnieuw",shapes:"Vormen",single_slide_bg:"Achtergrond per dia",invisible:"Onzichtbaar",reset:"Terugzetten",go:"Gaan",strut_exporter_json:{explain:"Deze functie maakt het mogelijk om een bestand op te slaan, welke later weer in Strut geïmporteerd kan worden.",click_below:"Klik hieronder om te downloaden"},background:"Achtergrond",surface:"Werkblad"}),define("../locales/ru",{insert_image:"Вставить картинку",insert_video:"Вставить видео",insert_website:"Вставить ссылку",add_slide:"Добавить слайд",remove_slide:"Удалить слайд",slides:"Слайды",overview:"Эффекты",open:"Открыть",save:"Сохранить",save_as:"Сохранить как...",new_:"Создать",text:"Текст",image:"Картинка",video:"Видео",website:"Ссылка",present:"Показать","export":"Экспортировать...","import":"Импортировать...",cut:"Вырезать",copy:"Копировать",paste:"Вставить","delete":"Удалить",undo:"Отменить",redo:"Повторить",shapes:"Фигуры",single_slide_bg:"Фон одного слайда",invisible:"Невидимый",reset:"Сброс",go:"Вперёд",strut_exporter_json:{explain:"Здесь можно скачать файл, который при необходимости можно будет импортировать в Strut.",click_below:"Для этого нажмите ниже."},background:"Фон",surface:"Холст"}),define("lang",["../locales/de","../locales/en","../locales/es","../locales/fr","../locales/nl","../locales/ru","handlebars"],function(a,b,c,d,e,f,g){var h={en:b,de:a,es:c,fr:d,nl:e,ru:f},i=window.navigator.language||window.navigator.userLanguage,j=h[i.split("-")[0]]||h.en;return g.registerHelper("lang",function(a){return j[a]}),j}),define("compiled-templates",["handlebars"],function(a){return this.JST=this.JST||{},this.JST["strut.etch_extension/align"]=a.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var f,g="",h="function",i=this.escapeExpression;return g+=''}),this.JST["strut.etch_extension/colorChooser"]=a.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var f,g="",h="function",i=this.escapeExpression;return g+=''}),this.JST["strut.etch_extension/defaultButton"]=a.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var f,g="",h="function",i=this.escapeExpression;return g+='',(f=c.display)?f=f.call(b,{hash:{},data:e}):(f=b.display,f=typeof f===h?f.apply(b):f),g+=i(f)+""}),this.JST["strut.etch_extension/fontFamilySelection"]=a.template(function(a,b,c,d,e){return this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{},'
\n \n \n
'}),this.JST["strut.etch_extension/fontSizeSelection"]=a.template(function(a,b,c,d,e){return this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{},'
\n 72\n \n \n
'}),this.JST["strut.header/Header"]=a.template(function(a,b,c,d,e){return this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{},''}),this.JST["strut.logo_button/Logo"]=a.template(function(a,b,c,d,e){return this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{},'\n'}),this.JST["strut.presentation_generator.bespoke/BespokeTemplate"]=a.template(function(a,b,c,d,e){function f(a,b,e){var f,j,k,l="";return l+="\n \n \n ",j=p.invokePartial(d.PerSlideSurfaceStylesheet,"PerSlideSurfaceStylesheet",a,c,d,b),(j||0===j)&&(l+=j),l+='\n
\n
\n ',f=a.slides,f=null==f||f===!1?f:f.models,f=typeof f===q?f.apply(a):f,j=t.call(a,f,{hash:{},inverse:p.noop,fn:p.programWithDepth(6,i,b,e),data:b}),(j||0===j)&&(l+=j),l+="\n
\n
\n"}function g(a,b){var e,f="";return f+="\n ",e=p.invokePartial(d.CustomBgStylesheet,"CustomBgStylesheet",a,c,d,b),(e||0===e)&&(f+=e),f+="\n "}function h(a,b){var d,e="";return(d=c.surface)?d=d.call(a,{hash:{},data:b}):(d=a.surface,d=typeof d===q?d.apply(a):d),e+=r(d)+" "}function i(a,b,d){var e,f,g="";return g+="\n ",f={hash:{},inverse:p.noop,fn:p.programWithDepth(7,j,b,a,d),data:b},(e=c.attributes)?e=e.call(a,f):(e=a.attributes,e=typeof e===q?e.apply(a):e),c.attributes||(e=t.call(a,e,f)),(e||0===e)&&(g+=e),g+="\n "}function j(a,b,d,e){var f,g,h,i="";return i+='\n
\n
\n ',h={hash:{},inverse:p.noop,fn:p.program(8,k,b),data:b},f=c.marked||a.marked,g=f?f.call(a,a.markdown,h):s.call(a,"marked",a.markdown,h),(g||0===g)&&(i+=g),i+="\n
\n ",h={hash:{},inverse:p.noop,fn:p.program(10,l,b),data:b},(g=c.components)?g=g.call(a,h):(g=a.components,g=typeof g===q?g.apply(a):g),c.components||(g=t.call(a,g,h)),(g||0===g)&&(i+=g),i+="\n
\n "}function k(){var a="";return a}function l(a,b){var d,e,f,g="";return g+="\n ",f={hash:{},inverse:p.noop,fn:p.program(8,k,b),data:b},d=c.renderComponent||a.renderComponent,e=d?d.call(a,a,f):s.call(a,"renderComponent",a,f),(e||0===e)&&(g+=e),g+="\n "}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),d=this.merge(d,a.partials),e=e||{};var m,n,o="",p=this,q="function",r=this.escapeExpression,s=c.helperMissing,t=c.blockHelperMissing;return n={hash:{},inverse:p.noop,fn:p.programWithDepth(1,f,e,b),data:e},(m=c.attributes)?m=m.call(b,n):(m=b.attributes,m=typeof m===q?m.apply(b):m),c.attributes||(m=t.call(b,m,n)),(m||0===m)&&(o+=m),o+="\n"}),this.JST["strut.presentation_generator.handouts/HandoutsTemplate"]=a.template(function(a,b,c,d,e){function f(a,b,d){var e,f,h="";return h+='\n\n\n
\n',e=a.slides,e=null==e||e===!1?e:e.models,e=typeof e===o?e.apply(a):e,f=p.call(a,e,{hash:{},inverse:m.noop,fn:m.programWithDepth(2,g,b,d),data:b}),(f||0===f)&&(h+=f),h+="\n
\n"}function g(a,b,d){var e,f,g="";return g+="\n",f={hash:{},inverse:m.noop,fn:m.programWithDepth(3,h,b,a,d),data:b},(e=c.attributes)?e=e.call(a,f):(e=a.attributes,e=typeof e===o?e.apply(a):e),c.attributes||(e=p.call(a,e,f)),(e||0===e)&&(g+=e),g+='\n\n
\n Notes:\n
\n\n'}function h(a,b,d,e){var f,g,h,k="";return k+='\n
\n
\n
\n',h={hash:{},inverse:m.noop,fn:m.program(4,i,b),data:b},f=c.marked||a.marked,g=f?f.call(a,a.markdown,h):n.call(a,"marked",a.markdown,h),(g||0===g)&&(k+=g),k+="\n
\n",h={hash:{},inverse:m.noop,fn:m.program(6,j,b),data:b},(g=c.components)?g=g.call(a,h):(g=a.components,g=typeof g===o?g.apply(a):g),c.components||(g=p.call(a,g,h)),(g||0===g)&&(k+=g),k+="\n"}function i(){var a="";return a}function j(a,b){var d,e,f,g="";return g+="\n",f={hash:{},inverse:m.noop,fn:m.program(4,i,b),data:b},d=c.renderComponent||a.renderComponent,e=d?d.call(a,a,f):n.call(a,"renderComponent",a,f),(e||0===e)&&(g+=e),g+="\n"}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var k,l,m=this,n=c.helperMissing,o="function",p=c.blockHelperMissing;return l={hash:{},inverse:m.noop,fn:m.programWithDepth(1,f,e,b),data:e},(k=c.attributes)?k=k.call(b,l):(k=b.attributes,k=typeof k===o?k.apply(b):k),c.attributes||(k=p.call(b,k,l)),k||0===k?k:""}),this.JST["strut.presentation_generator.impress/ComponentContainer"]=a.template(function(a,b,c,d,e){function f(){var a="";return a}function g(a,b){var d,e="";return e+="rotate(",(d=c.rotate)?d=d.call(a,{hash:{},data:b}):(d=a.rotate,d=typeof d===p?d.apply(a):d),e+=q(d)+"rad)"}function h(a,b){var d,e="";return e+="skewX(",(d=c.skewX)?d=d.call(a,{hash:{},data:b}):(d=a.skewX,d=typeof d===p?d.apply(a):d),e+=q(d)+"rad)"}function i(a,b){var d,e="";return e+="skewY(",(d=c.skewY)?d=d.call(a,{hash:{},data:b}):(d=a.skewY,d=typeof d===p?d.apply(a):d),e+=q(d)+"rad)"}function j(a,b){var d,e,g,h="";return g={hash:{},inverse:r.noop,fn:r.program(1,f,b),data:b},d=c.round||a.round,e=d?d.call(a,(d=a.scale,null==d||d===!1?d:d.width),g):s.call(a,"round",(d=a.scale,null==d||d===!1?d:d.width),g),(e||0===e)&&(h+=e),h+="px"}function k(a,b){var d,e,g,h="";return g={hash:{},inverse:r.noop,fn:r.program(1,f,b),data:b},d=c.round||a.round,e=d?d.call(a,(d=a.scale,null==d||d===!1?d:d.height),g):s.call(a,"round",(d=a.scale,null==d||d===!1?d:d.height),g),(e||0===e)&&(h+=e),h+="px"}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),d=this.merge(d,a.partials),e=e||{};var l,m,n,o="",p="function",q=this.escapeExpression,r=this,s=c.helperMissing;return o+='
\n',m=r.invokePartial(d.TransformContainer,"TransformContainer",b,c,d,e),(m||0===m)&&(o+=m),o}),this.JST["strut.presentation_generator.impress/Image"]=a.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),d=this.merge(d,a.partials),e=e||{};var f,g="",h=this,i="function",j=this.escapeExpression;return f=h.invokePartial(d.ComponentContainer,"ComponentContainer",b,c,d,e),(f||0===f)&&(g+=f),g+='\n\n
\n
'}),this.JST["strut.presentation_generator.impress/ImpressTemplate"]=a.template(function(a,b,c,d,e){function f(a,b,e){var f,j,l,m="";return m+='\n\n\n",j=u.invokePartial(d.PerSlideSurfaceStylesheet,"PerSlideSurfaceStylesheet",a,c,d,b),(j||0===j)&&(m+=j),m+='\n\n
\n\n\n\n\n\n\n\n\n\n\n\n
\n\n
\n

Your browser doesn\'t support the features required by impress.js, so you are presented with a simplified version of this presentation.

\n

For the best experience please use the latest Chrome, Safari or Firefox browser.

\n
\n\n
\n
\n
\n ',f=a.slides,f=null==f||f===!1?f:f.models,f=typeof f===v?f.apply(a):f,j=y.call(a,f,{hash:{},inverse:u.noop,fn:u.programWithDepth(6,i,b,e),data:b}),(j||0===j)&&(m+=j),m+='\n
\n '}function g(a,b){var e,f="";return f+="\n ",e=u.invokePartial(d.CustomBgStylesheet,"CustomBgStylesheet",a,c,d,b),(e||0===e)&&(f+=e),f+="\n"}function h(a,b){var d,e="";return(d=c.surface)?d=d.call(a,{hash:{},data:b}):(d=a.surface,d=typeof d===v?d.apply(a):d),e+=w(d)+" "}function i(a,b,d){var e,f,g="";return g+="\n ",f={hash:{},inverse:u.noop,fn:u.programWithDepth(7,j,b,a,d),data:b},(e=c.attributes)?e=e.call(a,f):(e=a.attributes,e=typeof e===v?e.apply(a):e),c.attributes||(e=y.call(a,e,f)),(e||0===e)&&(g+=e),g+="\n
\n "}function j(a,b,d,e){var f,g,h,i="";return i+='\n
\n
\n
\n ',h={hash:{},inverse:u.noop,fn:u.program(8,k,b),data:b},f=c.marked||a.marked,g=f?f.call(a,a.markdown,h):x.call(a,"marked",a.markdown,h),(g||0===g)&&(i+=g),i+="\n
\n ",h={hash:{},inverse:u.noop,fn:u.program(20,q,b),data:b},(g=c.components)?g=g.call(a,h):(g=a.components,g=typeof g===v?g.apply(a):g),c.components||(g=y.call(a,g,h)),(g||0===g)&&(i+=g),i+="\n
\n "}function k(){var a="";return a}function l(a,b){var d,e,f,g="";return g+='data-rotate-x="',f={hash:{},inverse:u.noop,fn:u.program(8,k,b),data:b},d=c.toDeg||a.toDeg,e=d?d.call(a,a.rotateX,f):x.call(a,"toDeg",a.rotateX,f),(e||0===e)&&(g+=e),g+='"'}function m(a,b){var d,e,f,g="";return g+='data-rotate-y="',f={hash:{},inverse:u.noop,fn:u.program(8,k,b),data:b},d=c.toDeg||a.toDeg,e=d?d.call(a,a.rotateY,f):x.call(a,"toDeg",a.rotateY,f),(e||0===e)&&(g+=e),g+='"'}function n(a,b){var d,e,f,g="";return g+='data-rotate-z="',f={hash:{},inverse:u.noop,fn:u.program(8,k,b),data:b},d=c.toDeg||a.toDeg,e=d?d.call(a,a.rotateZ,f):x.call(a,"toDeg",a.rotateZ,f),(e||0===e)&&(g+=e),g+='"'}function o(a,b){var d,e="";return e+='data-z="',(d=c.z)?d=d.call(a,{hash:{},data:b}):(d=a.z,d=typeof d===v?d.apply(a):d),e+=w(d)+'"'}function p(a,b){var d,e="";return e+='data-scale="',(d=c.impScale)?d=d.call(a,{hash:{},data:b}):(d=a.impScale,d=typeof d===v?d.apply(a):d),e+=w(d)+'"'}function q(a,b){var d,e,f,g="";return g+="\n ",f={hash:{},inverse:u.noop,fn:u.program(8,k,b),data:b},d=c.renderComponent||a.renderComponent,e=d?d.call(a,a,f):x.call(a,"renderComponent",a,f),(e||0===e)&&(g+=e),g+="\n "}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),d=this.merge(d,a.partials),e=e||{};var r,s,t="",u=this,v="function",w=this.escapeExpression,x=c.helperMissing,y=c.blockHelperMissing;return s={hash:{},inverse:u.noop,fn:u.programWithDepth(1,f,e,b),data:e},(r=c.attributes)?r=r.call(b,s):(r=b.attributes,r=typeof r===v?r.apply(b):r),c.attributes||(r=y.call(b,r,s)),(r||0===r)&&(t+=r),t+='\n
\n
\n

Use a spacebar or arrow keys to navigate

\n
\n
\n
'}),this.JST["strut.presentation_generator.impress/SVGContainer"]=a.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),d=this.merge(d,a.partials),e=e||{};var f,g,h="",i="function",j=this.escapeExpression,k=this;return h+='
\n',g=k.invokePartial(d.TransformContainer,"TransformContainer",b,c,d,e),(g||0===g)&&(h+=g),h}),this.JST["strut.presentation_generator.impress/SVGImage"]=a.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),d=this.merge(d,a.partials),e=e||{};var f,g="",h=this,i="function",j=this.escapeExpression; return f=h.invokePartial(d.SVGContainer,"SVGContainer",b,c,d,e),(f||0===f)&&(g+=f),g+='\n\n
\n
'}),this.JST["strut.presentation_generator.impress/Shape"]=a.template(function(a,b,c,d,e){function f(){var a="";return a}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),d=this.merge(d,a.partials),e=e||{};var g,h,i="",j=this,k="function",l=c.blockHelperMissing;return g=j.invokePartial(d.ComponentContainer,"ComponentContainer",b,c,d,e),(g||0===g)&&(i+=g),i+="\n",h={hash:{},inverse:j.noop,fn:j.program(1,f,e),data:e},(g=c.shapeSvg)?g=g.call(b,h):(g=b.shapeSvg,g=typeof g===k?g.apply(b):g),c.shapeSvg||(g=l.call(b,g,h)),(g||0===g)&&(i+=g),i+="\n\n"}),this.JST["strut.presentation_generator.impress/TextBox"]=a.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),d=this.merge(d,a.partials),e=e||{};var f,g="",h=this,i="function",j=this.escapeExpression;return f=h.invokePartial(d.ComponentContainer,"ComponentContainer",b,c,d,e),(f||0===f)&&(g+=f),g+='\n
\n',(f=c.text)?f=f.call(b,{hash:{},data:e}):(f=b.text,f=typeof f===i?f.apply(b):f),g+=j(f)+"\n
\n\n"}),this.JST["strut.presentation_generator.impress/TransformContainer"]=a.template(function(a,b,c,d,e){function f(a,b){var d,e,f,h="";return h+="scale(",f={hash:{},inverse:j.noop,fn:j.program(2,g,b),data:b},d=c.round||a.round,e=d?d.call(a,(d=a.scale,null==d||d===!1?d:d.x),f):k.call(a,"round",(d=a.scale,null==d||d===!1?d:d.x),f),(e||0===e)&&(h+=e),h+=", ",f={hash:{},inverse:j.noop,fn:j.program(2,g,b),data:b},d=c.round||a.round,e=d?d.call(a,(d=a.scale,null==d||d===!1?d:d.y),f):k.call(a,"round",(d=a.scale,null==d||d===!1?d:d.y),f),(e||0===e)&&(h+=e),h+=")"}function g(){var a="";return a}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var h,i="",j=this,k=c.helperMissing;return i+='
'}),this.JST["strut.presentation_generator.impress/Video"]=a.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),d=this.merge(d,a.partials),e=e||{};var f,g="",h=this,i="function",j=this.escapeExpression;return f=h.invokePartial(d.ComponentContainer,"ComponentContainer",b,c,d,e),(f||0===f)&&(g+=f),g+='\n\n
\n'}),this.JST["strut.presentation_generator.impress/WebFrame"]=a.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),d=this.merge(d,a.partials),e=e||{};var f,g="",h=this,i="function",j=this.escapeExpression;return f=h.invokePartial(d.ComponentContainer,"ComponentContainer",b,c,d,e),(f||0===f)&&(g+=f),g+='\n\n\n'}),this.JST["strut.presentation_generator.impress/Youtube"]=a.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),d=this.merge(d,a.partials),e=e||{};var f,g,h="",i=this,j="function",k=this.escapeExpression;return f=i.invokePartial(d.SVGContainer,"SVGContainer",b,c,d,e),(f||0===f)&&(h+=f),h+='\n\n\n'}),this.JST["strut.presentation_generator.impress/YoutubeContainer"]=a.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),d=this.merge(d,a.partials),e=e||{};var f,g="",h="function",i=this.escapeExpression,j=this;return g+='
\n',f=j.invokePartial(d.TransformContainer,"TransformContainer",b,c,d,e),(f||0===f)&&(g+=f),g}),this.JST["strut.presentation_generator.reveal/RevealTemplate"]=a.template(function(a,b,c,d,e){function f(a,b,e){var f,i,j,k="";return k+='\n \n ",f=q.invokePartial(d.PerSlideSurfaceStylesheet,"PerSlideSurfaceStylesheet",a,c,d,b),(f||0===f)&&(k+=f),k+='\n \n
\n
\n
\n ',f=a.slides,f=null==f||f===!1?f:f.models,f=typeof f===o?f.apply(a):f,i=s.call(a,f,{hash:{},inverse:q.noop,fn:q.programWithDepth(4,h,b,e),data:b}),(i||0===i)&&(k+=i),k+="\n
\n
\n
\n"}function g(a,b){var d,e="";return(d=c.surface)?d=d.call(a,{hash:{},data:b}):(d=a.surface,d=typeof d===o?d.apply(a):d),e+=p(d)+" "}function h(a,b,d){var e,f,g="";return g+="\n ",f={hash:{},inverse:q.noop,fn:q.programWithDepth(5,i,b,a,d),data:b},(e=c.attributes)?e=e.call(a,f):(e=a.attributes,e=typeof e===o?e.apply(a):e),c.attributes||(e=s.call(a,e,f)),(e||0===e)&&(g+=e),g+="\n "}function i(a,b,d,e){var f,g,h,i="";return i+='\n
\n
\n ',h={hash:{},inverse:q.noop,fn:q.program(6,j,b),data:b},f=c.marked||a.marked,g=f?f.call(a,a.markdown,h):r.call(a,"marked",a.markdown,h),(g||0===g)&&(i+=g),i+="\n
\n ",h={hash:{},inverse:q.noop,fn:q.program(8,k,b),data:b},(g=c.components)?g=g.call(a,h):(g=a.components,g=typeof g===o?g.apply(a):g),c.components||(g=s.call(a,g,h)),(g||0===g)&&(i+=g),i+="\n
\n "}function j(){var a="";return a}function k(a,b){var d,e,f,g="";return g+="\n ",f={hash:{},inverse:q.noop,fn:q.program(6,j,b),data:b},d=c.renderComponent||a.renderComponent,e=d?d.call(a,a,f):r.call(a,"renderComponent",a,f),(e||0===e)&&(g+=e),g+="\n "}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),d=this.merge(d,a.partials),e=e||{};var l,m,n="",o="function",p=this.escapeExpression,q=this,r=c.helperMissing,s=c.blockHelperMissing;return m={hash:{},inverse:q.noop,fn:q.programWithDepth(1,f,e,b),data:e},(l=c.attributes)?l=l.call(b,m):(l=b.attributes,l=typeof l===o?l.apply(b):l),c.attributes||(l=s.call(b,l,m)),(l||0===l)&&(n+=l),n+="\n"}),this.JST["strut.presentation_generator/Button"]=a.template(function(a,b,c,d,e){function f(a,b){var d,e="";return e+='\n
  • \n \n ',(d=c.displayName)?d=d.call(a,{hash:{},data:b}):(d=a.displayName,d=typeof d===j?d.apply(a):d),e+=k(d)+"\n
  • \n "}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var g,h,i="",j="function",k=this.escapeExpression,l=this;return i+='\n\n"}),this.JST["strut.presentation_generator/CustomBgStylesheet"]=a.template(function(a,b,c,d,e){function f(a,b){var d,e="";return e+="\n .",(d=c.klass)?d=d.call(a,{hash:{},data:b}):(d=a.klass,d=typeof d===i?d.apply(a):d),e+=j(d)+" {\n background: ",(d=c.style)?d=d.call(a,{hash:{},data:b}):(d=a.style,d=typeof d===i?d.apply(a):d),e+=j(d)+";\n }\n"}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var g,h,i="function",j=this.escapeExpression,k=this,l=c.blockHelperMissing;return g=typeof b===i?b.apply(b):b,h=l.call(b,g,{hash:{},inverse:k.noop,fn:k.program(1,f,e),data:e}),h||0===h?h:""}),this.JST["strut.presentation_generator/PerSlideSurfaceStylesheet"]=a.template(function(a,b,c,d,e){function f(a,b){var d,e,f,h="";return h+="\n .strut-surface {\n ",f={hash:{},inverse:q.noop,fn:q.program(2,g,b),data:b},d=c.getBGImgStyle||a.getBGImgStyle,e=d?d.call(a,a.surface,f):r.call(a,"getBGImgStyle",a.surface,f),(e||0===e)&&(h+=e),h+="\n }\n"}function g(){var a="";return a}function h(a,b){var d,e,f,h="";return h+="\n .slideContainer {\n ",f={hash:{},inverse:q.noop,fn:q.program(2,g,b),data:b},d=c.getBGImgStyle||a.getBGImgStyle,e=d?d.call(a,a.background,f):r.call(a,"getBGImgStyle",a.background,f),(e||0===e)&&(h+=e),h+="\n }\n"}function i(a,b){var d,e,f="";return f+="\n ",e={hash:{},inverse:q.noop,fn:q.program(7,j,b),data:b},(d=c.attributes)?d=d.call(a,e):(d=a.attributes,d=typeof d===s?d.apply(a):d),c.attributes||(d=u.call(a,d,e)),(d||0===d)&&(f+=d),f+="\n"}function j(a,b){var d,e,f,g="";return g+="\n ",f={hash:{},inverse:q.noop,fn:q.program(8,k,b),data:b},d=c.isBGImg||a.isBGImg,e=d?d.call(a,a.surface,f):r.call(a,"isBGImg",a.surface,f),(e||0===e)&&(g+=e),g+="\n ",f={hash:{},inverse:q.noop,fn:q.program(10,l,b),data:b},d=c.isBGImg||a.isBGImg,e=d?d.call(a,a.background,f):r.call(a,"isBGImg",a.background,f),(e||0===e)&&(g+=e),g+="\n "}function k(a,b){var d,e,f,h="";return h+="\n .strut-surface > .strut-slide-"+t((d=b,d=null==d||d===!1?d:d.index,typeof d===s?d.apply(a):d))+" {\n /*this only works for bg images or custom bgs*/\n /*for bg classes we'll have to introduce a data api*/\n ",f={hash:{},inverse:q.noop,fn:q.program(2,g,b),data:b},d=c.getBGImgStyle||a.getBGImgStyle,e=d?d.call(a,a.surface,f):r.call(a,"getBGImgStyle",a.surface,f),(e||0===e)&&(h+=e),h+="\n }\n "}function l(a,b){var d,e,f,h="";return h+="\n .slideContainer.strut-slide-"+t((d=b,d=null==d||d===!1?d:d.index,typeof d===s?d.apply(a):d))+" {\n ",f={hash:{},inverse:q.noop,fn:q.program(2,g,b),data:b},d=c.getBGImgStyle||a.getBGImgStyle,e=d?d.call(a,a.background,f):r.call(a,"getBGImgStyle",a.background,f),(e||0===e)&&(h+=e),h+="\n }\n "}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var m,n,o,p="",q=this,r=c.helperMissing,s="function",t=this.escapeExpression,u=c.blockHelperMissing;return p+=""}),this.JST["strut.slide_components/Component"]=a.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var f,g="",h="function",i=this.escapeExpression;return g+='
    \n
    \n
    \n \n \n \n\n \n \n \n\n\n\n\n
    \n \n \n \n \n
    \n'}),this.JST["strut.slide_components/ShapesDropdown"]=a.template(function(a,b,c,d,e){function f(){var a="";return a}function g(a,b){var d,e,f="";return f+='\n
  • \n'}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var h,i,j,k="",l="function",m=this.escapeExpression,n=this,o=c.helperMissing,p=c.blockHelperMissing;return k+='\n \n ',j={hash:{},inverse:n.noop,fn:n.program(1,f,e),data:e},h=c.lang||b.lang,i=h?h.call(b,b.title,j):o.call(b,"lang",b.title,j),(i||0===i)&&(k+=i),k+='\n\n"}),this.JST["strut.slide_editor/Button"]=a.template(function(a,b,c,d,e){function f(){var a="";return a}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var g,h,i,j="",k=this,l=c.helperMissing;return j+='"}),this.JST["strut.slide_editor/Tablets"]=a.template(function(a,b,c,d,e){return this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{},'
    \n
    \n
    \n \n
    '}),this.JST["strut.slide_snapshot/SlideDrawer"]=a.template(function(a,b,c,d,e){function f(){var a="";return a}function g(a,b){var d,e,g,h="";return h+="\n",g={hash:{},inverse:l.noop,fn:l.program(1,f,b),data:b},d=c.renderComponent||a.renderComponent,e=d?d.call(a,a,"Video WebFrame",g):m.call(a,"renderComponent",a,"Video WebFrame",g),(e||0===e)&&(h+=e),h+="\n"}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var h,i,j,k="",l=this,m=c.helperMissing,n="function",o=c.blockHelperMissing;return k+='
    \n',j={hash:{},inverse:l.noop,fn:l.program(1,f,e),data:e},h=c.marked||b.marked,i=h?h.call(b,b.markdown,j):m.call(b,"marked",b.markdown,j),(i||0===i)&&(k+=i),k+="\n
    \n",j={hash:{},inverse:l.noop,fn:l.program(3,g,e),data:e},(i=c.components)?i=i.call(b,j):(i=b.components,i=typeof i===n?i.apply(b):i),c.components||(i=o.call(b,i,j)),(i||0===i)&&(k+=i),k+="\n"}),this.JST["strut.slide_snapshot/SlideSnapshot"]=a.template(function(a,b,c,d,e){return this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{},'
    \n
    \n\n '}),this.JST["strut.slide_snapshot/TransitionSlideSnapshot"]=a.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var f,g="",h="function",i=this.escapeExpression;return g+='
    \n
    \n
    \n
    \n
    \n
    \n
    \n\n
    \n ↻Y\n \n
    \n
    \n ↻X\n \n
    \n
    \n ↻Z\n \n
    \n
    \n z\n \n \n \n
    \n \n'}),this.JST["strut.splash/Splash"]=a.template(function(a,b,c,d,e){return this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{},"
    "}),this.JST["strut.storage/ProviderTab"]=a.template(function(a,b,c,d,e){return this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{},"
    "}),this.JST["strut.storage/StorageModal"]=a.template(function(a,b,c,d,e){function f(a,b){var d,e="";return e+='\n
  • ',(d=c.name)?d=d.call(a,{hash:{},data:b}):(d=a.name,d=typeof d===j?d.apply(a):d),e+=k(d)+"
  • \n "}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var g,h,i="",j="function",k=this.escapeExpression,l=this,m=c.blockHelperMissing;return i+='\n\n'}),this.JST["strut.themes/BackgroundChooserDropdown"]=a.template(function(a,b,c,d,e){function f(){var a="";return a}function g(a,b){var d,e="";return e+='\n
  • \n '}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var h,i,j,k="",l="function",m=this.escapeExpression,n=this,o=c.helperMissing,p=c.blockHelperMissing;return k+='\n \n ',j={hash:{},inverse:n.noop,fn:n.program(1,f,e),data:e},h=c.lang||b.lang,i=h?h.call(b,b.title,j):o.call(b,"lang",b.title,j),(i||0===i)&&(k+=i),k+='\n\n'}),this.JST["strut.themes/ColorChooserModal"]=a.template(function(a,b,c,d,e){return this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{},'\n\n'}),this.JST["strut.themes/SurfaceChooserDropdown"]=a.template(function(a,b,c,d,e){function f(){var a="";return a}function g(a,b){var d,e="";return e+='\n
  • \n '}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var h,i,j,k="",l="function",m=this.escapeExpression,n=this,o=c.helperMissing,p=c.blockHelperMissing;return k+='\n \n ',j={hash:{},inverse:n.noop,fn:n.program(1,f,e),data:e},h=c.lang||b.lang,i=h?h.call(b,b.title,j):o.call(b,"lang",b.title,j),(i||0===i)&&(k+=i),k+='\n\n'}),this.JST["strut.transition_editor/Button"]=a.template(function(a,b,c,d,e){function f(){var a="";return a}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var g,h,i,j="",k=this,l=c.helperMissing;return j+='"}),this.JST["strut.transition_editor/CannedTransitions"]=a.template(function(a,b,c,d,e){function f(a,b){var d,e="";return e+='\n
  • \n \n \n \n
  • \n '}function g(){return" active"}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var h,i,j="",k="function",l=this.escapeExpression,m=this,n=c.blockHelperMissing;return j+='
      \n ',h=typeof b===k?b.apply(b):b,i=n.call(b,h,{hash:{},inverse:m.noop,fn:m.program(1,f,e),data:e}),(i||0===i)&&(j+=i),j+='\n
    \n\n Bespoke.js\n'}),this.JST["tantaman.web.widgets/CodeEditor"]=a.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var f,g="",h="function",i=this.escapeExpression;return g+='\n\n'}),this.JST["tantaman.web.widgets/FileBrowser"]=a.template(function(a,b,c,d,e){function f(a){var b="";return b+='\n
  • '+k(typeof a===j?a.apply(a):a)+'
  • \n '}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var g,h,i="",j="function",k=this.escapeExpression,l=this,m=c.blockHelperMissing;return i+='\n"}),this.JST["tantaman.web.widgets/ItemImportModal"]=a.template(function(a,b,c,d,e){function f(){return'
    Browse
    \n

    If local images are not loading, try to reduce the image size, alternatively you can upload your image on the external website imgur.com. To know more about imgur firm, here is the wikipedia page.
    We\'re working on changing this.

    '}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var g,h,i="",j="function",k=this.escapeExpression,l=this,m=c.blockHelperMissing;return i+='\n\n\n"}),this.JST["tantaman.web.widgets/PopoverTextbox"]=a.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var f,g="",h="function",i=this.escapeExpression;return(f=c.title)?f=f.call(b,{hash:{},data:e}):(f=b.title,f=typeof f===h?f.apply(b):f),g+=i(f)+' \n
    \nOk\nCancel\n
    '}),this.JST["tantaman.web.widgets/TabbedModal"]=a.template(function(a,b,c,d,e){function f(a,b){var d,e="";return e+='\n
  • ',(d=c.name)?d=d.call(a,{hash:{},data:b}):(d=a.name,d=typeof d===j?d.apply(a):d),e+=k(d)+"
  • \n "}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,a.helpers),e=e||{};var g,h,i="",j="function",k=this.escapeExpression,l=this,m=c.blockHelperMissing;return i+='\n\n' }),this.JST}),function(a,b){function c(a){var b=a.length,c=fb.type(a);return fb.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||"function"!==c&&(0===b||"number"==typeof b&&b>0&&b-1 in a)}function d(a){var b=ob[a]={};return fb.each(a.match(hb)||[],function(a,c){b[c]=!0}),b}function e(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=fb.expando+Math.random()}function f(a,c,d){var e;if(d===b&&1===a.nodeType)if(e="data-"+c.replace(sb,"-$1").toLowerCase(),d=a.getAttribute(e),"string"==typeof d){try{d="true"===d?!0:"false"===d?!1:"null"===d?null:+d+""===d?+d:rb.test(d)?JSON.parse(d):d}catch(f){}pb.set(a,c,d)}else d=b;return d}function g(){return!0}function h(){return!1}function i(){try{return T.activeElement}catch(a){}}function j(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function k(a,b,c){if(fb.isFunction(b))return fb.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return fb.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(Cb.test(b))return fb.filter(b,a,c);b=fb.filter(b,a)}return fb.grep(a,function(a){return bb.call(b,a)>=0!==c})}function l(a,b){return fb.nodeName(a,"table")&&fb.nodeName(1===b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function m(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function n(a){var b=Nb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function o(a,b){for(var c=a.length,d=0;c>d;d++)qb.set(a[d],"globalEval",!b||qb.get(b[d],"globalEval"))}function p(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(qb.hasData(a)&&(f=qb.access(a),g=qb.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)fb.event.add(b,e,j[e][c])}pb.hasData(a)&&(h=pb.access(a),i=fb.extend({},h),pb.set(b,i))}}function q(a,c){var d=a.getElementsByTagName?a.getElementsByTagName(c||"*"):a.querySelectorAll?a.querySelectorAll(c||"*"):[];return c===b||c&&fb.nodeName(a,c)?fb.merge([a],d):d}function r(a,b){var c=b.nodeName.toLowerCase();"input"===c&&Kb.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}function s(a,b){if(b in a)return b;for(var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=_b.length;e--;)if(b=_b[e]+c,b in a)return b;return d}function t(a,b){return a=b||a,"none"===fb.css(a,"display")||!fb.contains(a.ownerDocument,a)}function u(b){return a.getComputedStyle(b,null)}function v(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=qb.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&t(d)&&(f[g]=qb.access(d,"olddisplay",z(d.nodeName)))):f[g]||(e=t(d),(c&&"none"!==c||!e)&&qb.set(d,"olddisplay",e?c:fb.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function w(a,b,c){var d=Ub.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function x(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=fb.css(a,c+$b[f],!0,e)),d?("content"===c&&(g-=fb.css(a,"padding"+$b[f],!0,e)),"margin"!==c&&(g-=fb.css(a,"border"+$b[f]+"Width",!0,e))):(g+=fb.css(a,"padding"+$b[f],!0,e),"padding"!==c&&(g+=fb.css(a,"border"+$b[f]+"Width",!0,e)));return g}function y(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=u(a),g=fb.support.boxSizing&&"border-box"===fb.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Qb(a,b,f),(0>e||null==e)&&(e=a.style[b]),Vb.test(e))return e;d=g&&(fb.support.boxSizingReliable||e===a.style[b]),e=parseFloat(e)||0}return e+x(a,b,c||(g?"border":"content"),d,f)+"px"}function z(a){var b=T,c=Xb[a];return c||(c=A(a,b),"none"!==c&&c||(Rb=(Rb||fb(""),this.$el.find(".content").append(b),this.$el.append('
    '),c=this.model.get("scale"),this.$el.css({width:960*c.x,height:768*c.y}),this.$el}})}),define("strut/slide_components/view/VideoView",["./ComponentView","./Mixers"],function(a,b){var c,d,e;return c=a.extend({className:"component videoView",initialize:function(){return a.prototype.initialize.apply(this,arguments)},render:function(){var b,c=this;return a.prototype.render.call(this),b=$(""),b.append(""),b.bind("loadedmetadata",function(){c._finishRender($(this))}),this.$el.find(".content").append(b),this.$el},_finishRender:function(a){this.origSize={width:a[0].videoWidth,height:a[0].videoHeight},this._setUpdatedTransform()}}),d=a.extend({className:"component videoView",initialize:function(){a.prototype.initialize.apply(this,arguments),this.scale=b.scaleObjectEmbed,this.model.off("change:scale",this._setUpdatedTransform,this),this.model.on("change:scale",b.scaleChangeObjectEmbed,this)},render:function(){var b,c;return a.prototype.render.call(this),b='',this.$object=$(b),this.$embed=this.$object.find("embed"),c=this.model.get("scale"),c&&c.width?(this.$object.attr(c),this.$embed.attr(c)):this.model.attributes.scale={width:425,height:344},this.$el.find(".content").append(this.$object),this.$el}}),e={html5:c,youtube:d},function(a){return new(e[a.model.get("videoType")])(a)}}),define("tantaman/web/widgets/Utils",[],function(){return{fitSizeToScale:function(a,b){for(var c=a.length,d=0;c>d;++d){var e=$(a[d]),f=e.outerWidth(),g=e.outerHeight(),h=e.parent();h.width(f*b),h.height(g*b)}}}}),define("strut/slide_components/view/ShapesDropdown",["tantaman/web/widgets/Dropdown","tantaman/web/widgets/Utils"],function(a){function b(b,c,d){a.apply(this,arguments),this._editorModel=d.editorModel,this._shapes=b.shapes,this.$el.on("click",".shape",this._selected.bind(this))}return e(b,a),b.prototype._selected=function(a){this._editorModel.addComponent({markup:this._shapes[a.currentTarget.dataset.index].markup,type:"Shape"})},b}),define("strut/slide_components/ShapeCollection",[],function(){function a(b,c,d,e){if(!(this instanceof a))return new a(b,c,d,e);this.name=b;var f,g=window.location.href,h=g.indexOf("#");-1!=h&&(g=g.substring(0,h)),f=g.lastIndexOf("/"),-1!=f&&(g=g.substring(0,f)),this.src=g+"/preview_export/shapes/"+c,this.markup=d,this.aspect=e}function b(){this.title="shapes",this.shapes=[a("square","square.svg",'',1),a("triangle","triangle.svg",'',1),a("circle","circle.svg",'',1),a("hexagon","hexagon.svg",'',1),a("pentagon","pentagon.svg",'',1),a("star","star.svg",'',1),a("pacman","pacman.svg",'',1),a("heart","heart.svg",'',1),a("infinity","infinity.svg",'',1),a("yin yang","yinyang.svg",'',1)]}return b.prototype={on:function(){}},b}),define("tantaman/web/widgets/ManagedColorChooser",["libs/backbone","tantaman/web/Utils"],function(a,b){"use strict";function c(a){a=a||{},_.defaults(a,e),this.$el=$('
    '),this.$el.on("mousedown",b.stopProp),this.$el.append(''),this._$colorChooser=this.$el.find(".color-chooser");var c=this;a.move=function(a){c._colorUpdated(a)},a.position&&this.$el.css("position",a.position),this._$colorChooser.spectrum(a)}var d={},e={color:"#000",showSelectionPalette:!0,localStorageKey:"strut.colorChooser",showPalette:!0,showInitial:!0,showInput:!0,palette:[],clickoutFiresChange:!0,flat:!1,position:"absolute"};return c.prototype={_colorUpdated:function(a){this.trigger("update:color",a)},show:function(a){this.$el.removeClass("dispNone"),a&&null!=a.top&&null!=a.left&&this.$el.css({top:a.top,left:a.left}),a&&a.move&&this.on("update:color",a.move),a&&a.appendTo&&0==this.$el.parent(a.appendTo).length&&this.$el.appendTo(a.appendTo)},move:function(a){this.$el.css(a)},hide:function(a){this.$el.addClass("dispNone"),this._$colorChooser.spectrum("hide"),a&&a.move&&this.off("update:color",a.move)}},{get:function(b,e){var f;return f=d[b],f||(f=new c(e),_.extend(f,a.Events),d[b]=f),f}}}),define("strut/slide_components/view/ShapeView",["./ComponentView","./Mixers","tantaman/web/widgets/ManagedColorChooser"],function(a,b,c){"use strict";var d=c.get("floatingChooser");return a.extend({className:"component shapeView",initialize:function(){a.prototype.initialize.apply(this,arguments),this.scale=b.scaleObjectEmbed,this.model.off("change:scale",this._setUpdatedTransform,this),this.model.on("change:scale",b.scaleChangeInlineSvg,this),this.model.on("change:fill",this._fillChanged,this),this._updateFill=this._updateFill.bind(this)},render:function(){a.prototype.render.call(this);var b=this.model.get("markup");this.$object=$(b);var c=this.model.get("scale"),d=this.$el.find(".content");d.append(this.$object),d.append($('
    ')),this._$colorPreview=this.$el.find(".sp-preview-inner"),c&&c.width?this.$object.attr(c):(c={width:100,height:100},this.model.attributes.scale=c,this.$object.attr(c));var e=this.model.get("fill");return e&&this.$object.attr("fill",e),this.$el},_xChanged:function(b,c){a.prototype._xChanged.apply(this,arguments),d.move({left:c+this.model.get("scale").width})},_yChanged:function(b,c){a.prototype._yChanged.apply(this,arguments),d.move({top:c-5})},remove:function(){a.prototype.remove.apply(this,arguments),d.hide({move:this._updateFill})},_selectionChanged:function(b,c){c?d.show({left:this.model.get("x")+this.model.get("scale").width,top:this.model.get("y")-5,move:this._updateFill,appendTo:".operatingTable > .slideContainer"}):d.hide({move:this._updateFill}),a.prototype._selectionChanged.apply(this,arguments)},_fillChanged:function(a,b){this._$colorPreview.css("background-color",b),this.$object.attr("fill",b)},_updateFill:function(a){this.model.set("fill",a.toHexString())}})}),define("strut/slide_components/model/Shape",["strut/deck/Component"],function(a){"use strict";return a.extend({initialize:function(){a.prototype.initialize.apply(this,arguments),this.set("type","Shape")},constructor:function(b){a.prototype.constructor.call(this,b)}})}),define("strut/slide_components/main",["./view/ComponentButton","./view/ImportingComponentButton","./model/Image","./model/TextBox","./model/WebFrame","./model/Video","./view/ImageView","./view/TextBoxView","./view/WebFrameView","./view/VideoView","./ComponentFactory","lang","./view/ShapesDropdown","./ShapeCollection","./view/ShapeView","./model/Shape"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q=new n,r={createButtons:function(c){var d=[];return d.push(new a({componentType:"TextBox",icon:"icon-text-width",name:l.text,editorModel:c})),d.push(new b({componentType:"Image",icon:"icon-picture",name:l.image,tag:"img",title:l.insert_image,editorModel:c,browsable:!0})),d.push(new b({componentType:"Video",icon:"icon-film",name:l.video,tag:"video",title:l.insert_video,editorModel:c,ignoreErrors:!0})),d.push(new b({componentType:"WebFrame",icon:"icon-globe",name:l.website,tag:"iframe",title:l.insert_website,editorModel:c})),d.push(new m(q,JST["strut.slide_components/ShapesDropdown"],{"class":"group-dropdown",editorModel:c})),d}};return{initialize:function(a){a.register({interfaces:"strut.ComponentButtonProvider"},r),a.register({interfaces:"strut.ComponentModel",meta:{type:"Image"}},c),a.register({interfaces:"strut.ComponentModel",meta:{type:"TextBox"}},d),a.register({interfaces:"strut.ComponentModel",meta:{type:"WebFrame"}},e),a.register({interfaces:"strut.ComponentModel",meta:{type:"Video"}},f),a.register({interfaces:"strut.ComponentModel",meta:{type:"Shape"}},p),a.register({interfaces:"strut.ComponentView",meta:{type:"Image"}},g),a.register({interfaces:"strut.ComponentView",meta:{type:"TextBox"}},h),a.register({interfaces:"strut.ComponentView",meta:{type:"WebFrame"}},i),a.register({interfaces:"strut.ComponentView",meta:{type:"Video"}},j),a.register({interfaces:"strut.ComponentView",meta:{type:"Shape"}},o),k.initialize(a)}}}),define("strut/well_context_buttons/AddSlideButton",["libs/backbone"],function(a){return a.View.extend({className:"addBtn btn btn-success",events:{click:"_addSlide"},_addSlide:function(){this._editorModel.addSlide(this._wellMenuModel.slideIndex())},render:function(){return this.$el.html('
    '),this},constructor:function(b,c){this._editorModel=b,this._wellMenuModel=c,a.View.prototype.constructor.call(this)}})}),define("strut/well_context_buttons/main",["./AddSlideButton","lang"],function(a){"use strict";var b={createButtons:function(b,c){var d=[];return d.push(new a(b,c)),d}};return{initialize:function(a){a.register({interfaces:["strut.WellContextButtonProvider"]},b)}}}),define("tantaman/web/local_storage/LocalStorageProvider",[],function(){function a(){this.impl=localStorage,this.name="Local Storage",this.id="localstorage"}var b="strut-",c=!1;return a.prototype={ready:function(){return!0},bg:function(){},ls:function(a,c,d){for(var e=this.impl.length,f=[],g=0;e>g;++g){var h=this.impl.key(g); 0!=h.indexOf(b)||null!=c&&null==c.exec(h)||f.push(h.substring(b.length))}return d(f),this},rm:function(a,c){return this.impl.removeItem(b+a),c&&c(!0),this},getContents:function(a,c){var d=this.impl.getItem(b+a);if(null!=d)try{var e=JSON.parse(d);c(e)}catch(f){c(null,f)}return this},setContents:function(a,d,e){try{this.impl.setItem(b+a,JSON.stringify(d))}catch(f){c||(c=!0,alert("Strut currently uses your browser's LocalStorage to save presentations which is limited to between 2.5 and 5mb.\n\nYou are currently over this limit so your presentation will not be saved. You may continue editing, however.\n\nTry removing any images you dragged in and link to them instead.\n\nWe're working on improving the storage capacity! 5mb should be good if you link to your images (e.g., file://path/to/image or http://url/of/image).\n\nSorry for the inconvenience that this may cause. We are working to resolve the issue!"))}return e&&e(!0),this}},a}),define("tantaman/web/local_storage/main",["./LocalStorageProvider"],function(a){var b=new a;return{initialize:function(a){a.register({interfaces:"tantaman.web.StorageProvider"},b)}}}),define("strut/logo_button/LogoModel",["libs/backbone","framework/ServiceCollection"],function(a,b){return a.Model.extend({initialize:function(){this.items=new b(this._editorModel.registry,"strut.LogoMenuItemProvider",this._convertServiceEntry.bind(this))},_convertServiceEntry:function(a){return a.service().createMenuItems(this._editorModel)},constructor:function(b){this._editorModel=b,a.Model.prototype.constructor.call(this)}})}),define("strut/logo_button/LogoView",["libs/backbone","./LogoModel","css!styles/logo_button/logo.css"],function(a,b){"use strict";return a.View.extend({className:"logo-group btn-group",initialize:function(){this._template=JST["strut.logo_button/Logo"],this.model=new b(this.options.editorModel),delete this.options.editorModel},render:function(){this.$el.html(this._template());var a=this.$el.find(".dropdown-menu");return this.model.items.forEach(function(b){a.append(b.render().$el)},this),this},constructor:function(){a.View.prototype.constructor.apply(this,arguments)}})}),define("strut/presentation_generator/PreviewLauncher",[],function(){"use strict";function a(a){this._editorModel=a}return a.prototype={launch:function(a){window.previewWind&&window.previewWind.close(),this._editorModel.trigger("launch:preview",null);var b=a.generate(this._editorModel.deck());localStorage.setItem("preview-string",b),localStorage.setItem("preview-config",JSON.stringify({surface:this._editorModel.deck().get("surface")})),window.previewWind=window.open("preview_export/"+a.id+".html"+a.getSlideHash(this._editorModel),window.location.href)}},a}),define("strut/presentation_generator/view/PreviewButton",["libs/backbone","../PreviewLauncher"],function(a,b){return a.View.extend({className:"btn-group iconBtns",events:{"click .act":"_launch"},initialize:function(){this._editorModel=this.options.editorModel,this._previewLauncher=new b(this._editorModel),this._generators=this._editorModel.registry.getBest("strut.presentation_generator.GeneratorCollection"),delete this.options.editorModel,this._index=Math.min(window.sessionMeta.generator_index||0,this._generators.length-1),this._generatorChanged(),this._template=JST["strut.presentation_generator/Button"]},_launch:function(){this._previewLauncher.launch(this._generators[this._index])},_bind:function(){var a=this;this.$el.find("li").each(function(b){var c=$(this);c.click(function(d){a.$el.find(".check").css("visibility","hidden"),c.find(".check").css("visibility",""),a._index=b,window.sessionMeta.generator_index=b,a._generatorChanged(),a.$el.find(".dropdown-toggle").dropdown("toggle"),d.stopPropagation()})})},_generatorChanged:function(){this._editorModel.set("generator",this._generators[this._index]),this._$readout&&this._$readout.text(this._generators[this._index].displayName)},render:function(){return this.$el.html(this._template({generators:this._generators,chosen:this._generators[this._index]})),this._bind(),this._$readout=this.$el.find(".chosen"),$(this.$el.find(".check")[this._index]).css("visibility",""),this}})}),define("strut/header/model/ThemeProviderCollection",["libs/backbone","framework/ServiceCollection"],function(a,b){function c(a,c){this._editorModel=a,this._activeProviders=[],this._editorModel.on("change:activeMode",this._modeChanged,this),this._themeProviders=new b(a.registry,{interfaces:"strut.ThemeProvider",meta:c}),this._modeChanged(null,this._editorModel.get("activeMode")),this._themeProviders.on("registered",function(a,b){this._addProvider(b)},this)}return c.prototype={_modeChanged:function(a,b){this._disposePrevious(),this._themeProviders.forEach(function(a){b.id in a.meta().modes&&this._addProvider(a)},this),this.trigger("change:activeProviders",this._activeProviders)},_addProvider:function(a){var b=a.service().create(this._editorModel);Array.isArray(b)?this._activeProviders=this._activeProviders.concat(b):this._activeProviders.push(b)},_disposePrevious:function(){this._activeProviders.forEach(function(a){a.dispose()},this),this._activeProviders=[]},activeProviders:function(){return this._activeProviders}},_.extend(c.prototype,a.Events),c}),define("strut/header/view/ThemeProviderView",["libs/backbone","../model/ThemeProviderCollection"],function(a,b){return a.View.extend({className:"themeProviders",initialize:function(a){this._providerCollection=new b(a,{overflow:!1}),this._providerCollection.on("change:activeProviders",this.render,this)},render:function(){return this.$el.empty(),this._providerCollection.activeProviders().forEach(function(a){this.$el.append(a.view().render().$el)},this),this},constructor:function(b){a.View.prototype.constructor.call(this,b)}})}),define("tantaman/web/widgets/Tablets",[],function(){function a(a){this._currentItems=[],this.$el=$('
    '),this.template=a.template;var b=this;this.$el.on("click",".tablets-toggle",function(){b.toggle()})}return a.prototype={render:function(){return this.$el.html(this.template()),this.$content=this.$el.find(".tablets-content"),this._currentItems.forEach(function(a){this.$content.append(a.render().$el)},this),this},add:function(a){Array.isArray(a)||(a=[a]);var b=[];a.forEach(function(a){-1==this._currentItems.indexOf(a)&&b.push(a)},this),b.forEach(function(a){this._currentItems.push(a),this.$content&&this.$content.append(a.render().$el)},this)},empty:function(){this.$content&&this.$content.html(""),this._currentItems=[]},dispose:function(){},toggle:function(){this.$el.is(".hiding")?(this.$el.removeClass("hiding"),this.$el.addClass("showing")):this.hide()},hide:function(){this.$el.removeClass("showing"),this.$el.addClass("hiding")}},a}),define("strut/header/view/Tablets",["tantaman/web/widgets/Tablets","../model/ThemeProviderCollection"],function(a,b){function c(c){this._providers=new b(c,{overflow:!0}),this._providers.on("change:activeProviders",this._providersChanged,this),this._tablets=new a({template:JST["strut.slide_editor/Tablets"]}),this.$el=this._tablets.$el,this._providersChanged()}return c.prototype={dispose:function(){this._tablets.dispose(),this._providers.dispose()},_providersChanged:function(){var a=[];this._providers.activeProviders().forEach(function(b){a.push(b.view())},this),this._tablets.hide(),this._tablets.empty(),this._tablets.add(a)},render:function(){return this._tablets.render(),this}},c}),define("strut/header/view/HeaderView",["libs/backbone","strut/logo_button/LogoView","strut/presentation_generator/view/PreviewButton","./ThemeProviderView","./Tablets","css!styles/header/header.css"],function(a,b,c,d,e){return a.View.extend({className:"row-fluid header",initialize:function(){this._template=JST["strut.header/Header"],this._logoButton=new b({editorModel:this.model.editorModel()}),this._previewButton=new c({editorModel:this.model.editorModel()}),this._themeProviderView=new d(this.model.editorModel()),this.model.editorModel().on("change:activeMode",this._modeChanged,this),this._tablets=new e(this.model.editorModel())},_modeChanged:function(a,b){"overview"==b.id?this.$el.find(".create-comp-buttons").addClass("hidden"):this.$el.find(".create-comp-buttons").removeClass("hidden")},render:function(){this.$el.html(this._template()),this.$el.find(".logo-holder").append(this._logoButton.render().$el);var a=this.$el.find(".mode-buttons");this.model.get("modeButtons").forEach(function(b){a.append(b.render().el)},this);var b=this.$el.find(".create-comp-buttons > div");this.model.get("createCompButtons").forEach(function(a){b.append(a.render().el)},this),a.append(this._previewButton.render().$el);var c=this.$el.find(".theme-buttons");return c.append(this._themeProviderView.render().$el),this._tablets.render(),this.$el.append(this._tablets.$el),this},constructor:function(){a.View.prototype.constructor.apply(this,arguments)}})}),define("strut/editor/CustomBgStylesheet",["tantaman/web/css_manip/CssManip"],function(a){function b(a){this.model=a,a.on("change:customBackgrounds",this.render,this)}var c=a.getStyleElem({id:"customBackgrounds",create:!0});return b.prototype={render:function(a,b){b&&(c.innerHTML=JST["strut.presentation_generator/CustomBgStylesheet"](b.get("bgs")))},dispose:function(){this.model.off(null,null,this)}},b}),define("strut/editor/EditorView",["libs/backbone","strut/header/view/HeaderView","./CustomBgStylesheet"],function(a,b,c){return a.View.extend({className:"container-fluid",initialize:function(){this._header=new b({model:this.model.get("header")}),this.model.on("change:activeMode",this._modeChanged,this),this._customBgSheet=new c(this.model)},render:function(){this.$el.empty(),this.$el.append(this._header.render().$el);var a=this.model.get("activeMode");return a?this.$el.append(a.view.render().$el):this._renderNoMode(),this},_modeChanged:function(a,b){this.$el.append(b.view.render().$el)},_renderNoMode:function(){this.$el.append('
    No modes available. Did some plugins fail to load?
    ')}})}),define("strut/header/model/HeaderModel",["libs/backbone"],function(a){return a.Model.extend({initialize:function(){this._createModeButtons(),this._createCreateCompButtons(),this.registry.on("registered:strut.ComponentButtonProvider",this._compBtnProviderRegistered,this),this.registry.on("registered:strut.EditMode",this._modeRegistered,this)},editorModel:function(){return this._editorModel},_createModeButtons:function(){this._disposeObjects(this.get("modeButtons"));var a=this.registry.get("strut.EditMode"),b=[];a.forEach(function(a){b.push(a.service().createButton(this._editorModel))},this),this.set("modeButtons",b)},_createCreateCompButtons:function(){this._disposeObjects(this.get("createCompButtons"));var a=this.registry.get("strut.ComponentButtonProvider"),b=[];a.forEach(function(a){var c=a.service().createButtons(this._editorModel);b=b.concat(c)},this),this.set("createCompButtons",b)},_modeRegistered:function(a){var b=a.service().createButton(this._editorModel);this.get("modeButtons").push(b),this.trigger("change:modeButtons.push",this.get("modeButtons"),b)},_compBtnProviderRegistered:function(a){var b=a.createButtons();this.set("createCompButtons",this.get("createCompButtons").concat(b)),this.trigger("change:createCompButtons.concat",this.get("createCompButtons"),b)},_disposeObjects:function(a){a&&a.forEach(function(a){a.dispose()})},constructor:function(b,c){this.registry=b,this._editorModel=c,a.Model.prototype.constructor.call(this)}})}),define("common/Adapter",[],function(){function a(a,b){var c=Object.keys(b);c.forEach(function(c){var d=b[c];this[c]=function(){return a[d].apply(a,arguments)}},this)}return a}),define("tantaman/web/interactions/Clipboard",[],function(){function a(){this.items=[]}return a.prototype.setItems=function(a){a.length&&(this.items=a.slice(0))},a.prototype.getItems=function(){return $.map(this.items,function(a){return a.clone()})},a}),define("strut/editor/EditorModel",["libs/backbone","strut/header/model/HeaderModel","strut/deck/Deck","strut/slide_components/ComponentFactory","common/Adapter","tantaman/web/interactions/Clipboard","./GlobalEvents","tantaman/web/undo_support/CmdListFactory"],function(a,b,c,d,e,f,g,h){"use strict";function i(a){return new e(a,{store:"savePresentation"})}return a.Model.extend({initialize:function(){window.uiTestAcc=this,this._fontState=window.sessionMeta.fontState||{},this._deck=new c,this._deck.on("change:customBackgrounds",function(a,b){this.trigger("change:customBackgrounds",this,b)},this),this.addSlide(),this.set("header",new b(this.registry,this)),this.set("modeId","slide-editor"),this.exportable=new e(this,{"export":"exportPresentation",identifier:"fileName"}),this.exportable.adapted=this;var d=this.registry.getBest("tantaman.web.saver.AutoSavers");if(d){var j=null,j=this.registry.getBest("strut.StorageInterface");j=i(j),this._exitSaver=d.exitSaver(this.exportable,j),this._timedSaver=d.timedSaver(this.exportable,2e4,j)}this.clipboard=new f,this._createMode(),this._cmdList=h.managedInstance("editor"),g.on("undo",this._cmdList.undo,this._cmdList),g.on("redo",this._cmdList.redo,this._cmdList),a.on("etch:state",this._fontStateChanged,this)},changeActiveMode:function(a){a!=this.get("modeId")&&(this.set("modeId",a),this._createMode())},customStylesheet:function(a){return null==a?this._deck.get("customStylesheet"):void this._deck.set("customStylesheet",a)},dispose:function(){throw"EditorModel can not be disposed yet"},newPresentation:function(){var a=window.sessionMeta.num||0;a+=1,window.sessionMeta.num=a,this.importPresentation({fileName:"presentation-"+a,slides:[]}),this._deck.create()},addCustomBgClassFor:function(a){var b=this._deck.addCustomBgClassFor(a);return b.existed||this.trigger("change:customBackgrounds",this,this._deck.get("customBackgrounds")),b},customBackgrounds:function(){return this._deck.get("customBackgrounds")},importPresentation:function(a){console.log("New file name: "+a.fileName),this._deck.import(a)},exportPresentation:function(a){a&&this._deck.set("fileName",a);var b=this._deck.toJSON(!1,!0);return b},fileName:function(){var a=this._deck.get("fileName");return null==a&&(a="presentation-unnamed",this._deck.set("fileName",a)),a},deck:function(){return this._deck},cannedTransition:function(a){return null==a?this._deck.get("cannedTransition"):void this._deck.set("cannedTransition",a)},slides:function(){return this._deck.get("slides")},addSlide:function(a){this._deck.create(a)},activeSlide:function(){return this._deck.get("activeSlide")},activeSlideIndex:function(){return this._deck.get("slides").indexOf(this._deck.get("activeSlide"))},addComponent:function(a){var b=this._deck.get("activeSlide");if(b){var c=d.instance.createModel(a,{fontStyles:this._fontState});b.add(c)}},_fontStateChanged:function(a){_.extend(this._fontState,a),window.sessionMeta.fontState=this._fontState},_createMode:function(){var a=this.get("modeId"),b=this.registry.getBest({interfaces:"strut.EditMode",meta:{id:a}});if(b){var c=this.get("activeMode");c&&c.close(),this.set("activeMode",b.getMode(this,this.registry))}},constructor:function(b){this.registry=b,a.Model.prototype.constructor.call(this)}})}),define("strut/startup/main",["strut/editor/EditorView","strut/editor/EditorModel"],function(a,b){var c=null,d={run:function(){var d=new b(c),e=new a({model:d,registry:c});if(e.render(),$("body").append(e.$el),null!=sessionMeta.lastPresentation){var f=c.getBest("strut.StorageInterface");f.load(sessionMeta.lastPresentation,function(a,b){b?(console.log(b),console.log(b.stack)):d.importPresentation(a)})}}},e={run:function(){}};return{initialize:function(a){c=a,c.register({interfaces:"strut.StartupTask"},d),c.register({interfaces:"strut.StartupTask"},e)}}}),define("features",["framework/ServiceRegistry","strut/etch_extension/main","strut/storage/main","strut/logo_button/main","strut/themes/main","strut/editor/main","strut/exporter/json/main","strut/exporter/zip/browser/main","strut/importer/json/main","strut/importer/main","strut/exporter/main","strut/presentation_generator/impress/main","strut/presentation_generator/bespoke/main","strut/presentation_generator/handouts/main","strut/presentation_generator/main","tantaman/web/saver/main","strut/slide_editor/main","strut/transition_editor/main","strut/slide_components/main","strut/well_context_buttons/main","tantaman/web/local_storage/main","strut/startup/main"],function(a){for(var b=new a,c=Array.prototype.slice.call(arguments,0),d=0,d=1;dd.length-1||0>b))return this.sliding?this.$element.one("slid",function(){f.to(b)}):e==b?this.pause().cycle():this.slide(b>e?"next":"prev",a(d[b]))},pause:function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition.end&&(this.$element.trigger(a.support.transition.end),this.cycle()),clearInterval(this.interval),this.interval=null,this},next:function(){return this.sliding?void 0:this.slide("next")},prev:function(){return this.sliding?void 0:this.slide("prev")},slide:function(b,c){var d,e=this.$element.find(".item.active"),f=c||e[b](),g=this.interval,h="next"==b?"left":"right",i="next"==b?"first":"last",j=this;if(this.sliding=!0,g&&this.pause(),f=f.length?f:this.$element.find(".item")[i](),d=a.Event("slide",{relatedTarget:f[0]}),!f.hasClass("active")){if(a.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(d),d.isDefaultPrevented())return;f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),this.$element.one(a.support.transition.end,function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),j.sliding=!1,setTimeout(function(){j.$element.trigger("slid")},0)})}else{if(this.$element.trigger(d),d.isDefaultPrevented())return;e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return g&&this.cycle(),this}}};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("carousel"),f=a.extend({},a.fn.carousel.defaults,"object"==typeof c&&c),g="string"==typeof c?c:f.slide;e||d.data("carousel",e=new b(this,f)),"number"==typeof c?e.to(c):g?e[g]():f.interval&&e.cycle()})},a.fn.carousel.defaults={interval:5e3,pause:"hover"},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this},a(document).on("click.carousel.data-api","[data-slide]",function(b){var c,d=a(this),e=a(d.attr("data-target")||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"")),f=a.extend({},e.data(),d.data());e.carousel(f),b.preventDefault()})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.collapse.defaults,c),this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.prototype={constructor:b,dimension:function(){var a=this.$element.hasClass("width");return a?"width":"height"},show:function(){var b,c,d,e;if(!this.transitioning){if(b=this.dimension(),c=a.camelCase(["scroll",b].join("-")),d=this.$parent&&this.$parent.find("> .accordion-group > .in"),d&&d.length){if(e=d.data("collapse"),e&&e.transitioning)return;d.collapse("hide"),e||d.data("collapse",null)}this.$element[b](0),this.transition("addClass",a.Event("show"),"shown"),a.support.transition&&this.$element[b](this.$element[0][c])}},hide:function(){var b;this.transitioning||(b=this.dimension(),this.reset(this.$element[b]()),this.transition("removeClass",a.Event("hide"),"hidden"),this.$element[b](0))},reset:function(a){var b=this.dimension();return this.$element.removeClass("collapse")[b](a||"auto")[0].offsetWidth,this.$element[null!==a?"addClass":"removeClass"]("collapse"),this},transition:function(b,c,d){var e=this,f=function(){"show"==c.type&&e.reset(),e.transitioning=0,e.$element.trigger(d)};this.$element.trigger(c),c.isDefaultPrevented()||(this.transitioning=1,this.$element[b]("in"),a.support.transition&&this.$element.hasClass("collapse")?this.$element.one(a.support.transition.end,f):f())},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("collapse"),f="object"==typeof c&&c;e||d.data("collapse",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.collapse.defaults={toggle:!0},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.collapse.data-api","[data-toggle=collapse]",function(b){var c,d=a(this),e=d.attr("data-target")||b.preventDefault()||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,""),f=a(e).data("collapse")?"toggle":d.data();d[a(e).hasClass("in")?"addClass":"removeClass"]("collapsed"),a(e).collapse(f)})}(window.jQuery),!function(a){"use strict";function b(){a(d).each(function(){c(a(this)).removeClass("open")})}function c(b){var c,d=b.attr("data-target");return d||(d=b.attr("href"),d=d&&/#/.test(d)&&d.replace(/.*(?=#[^\s]*$)/,"")),c=a(d),c.length||(c=b.parent()),c}var d="[data-toggle=dropdown]",e=function(b){var c=a(b).on("click.dropdown.data-api",this.toggle);a("html").on("click.dropdown.data-api",function(){c.parent().removeClass("open")})};e.prototype={constructor:e,toggle:function(){var d,e,f=a(this);if(!f.is(".disabled, :disabled"))return d=c(f),e=d.hasClass("open"),b(),e||d.toggleClass("open"),f.focus(),!1},keydown:function(b){var d,e,f,g,h;if(/(38|40|27)/.test(b.keyCode)&&(d=a(this),b.preventDefault(),b.stopPropagation(),!d.is(".disabled, :disabled"))){if(f=c(d),g=f.hasClass("open"),!g||g&&27==b.keyCode)return d.click();e=a("[role=menu] li:not(.divider):visible a",f),e.length&&(h=e.index(e.filter(":focus")),38==b.keyCode&&h>0&&h--,40==b.keyCode&&h').appendTo(document.body),this.$backdrop.click("static"==this.options.backdrop?a.proxy(this.$element[0].focus,this.$element[0]):a.proxy(this.hide,this)),d&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),d?this.$backdrop.one(a.support.transition.end,b):b()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(a.support.transition.end,a.proxy(this.removeBackdrop,this)):this.removeBackdrop()):b&&b()}};var c=a.fn.modal;a.fn.modal=function(c){return this.each(function(){var d=a(this),e=d.data("modal"),f=a.extend({},a.fn.modal.defaults,d.data(),"object"==typeof c&&c);e||d.data("modal",e=new b(this,f)),"string"==typeof c?e[c]():f.show&&e.show()})},a.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},a.fn.modal.Constructor=b,a.fn.modal.noConflict=function(){return a.fn.modal=c,this},a(document).on("click.modal.data-api",'[data-toggle="modal"]',function(b){var c=a(this),d=c.attr("href"),e=a(c.attr("data-target")||d&&d.replace(/.*(?=#[^\s]+$)/,"")),f=e.data("modal")?"toggle":a.extend({remote:!/#/.test(d)&&d},e.data(),c.data());b.preventDefault(),e.modal(f).one("hide",function(){c.focus()})})}(window.jQuery),!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.enabled=!0,"click"==this.options.trigger?this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this)):"manual"!=this.options.trigger&&(e="hover"==this.options.trigger?"mouseenter":"focus",f="hover"==this.options.trigger?"mouseleave":"blur",this.$element.on(e+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(f+"."+this.type,this.options.selector,a.proxy(this.leave,this))),this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(b){return b=a.extend({},a.fn[this.type].defaults,b,this.$element.data()),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);return c.options.delay&&c.options.delay.show?(clearTimeout(this.timeout),c.hoverState="in",void(this.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show))):c.show()},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);return this.timeout&&clearTimeout(this.timeout),c.options.delay&&c.options.delay.hide?(c.hoverState="out",void(this.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide))):c.hide()},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){switch(a=this.tip(),this.setContent(),this.options.animation&&a.addClass("fade"),f="function"==typeof this.options.placement?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,b=/in/.test(f),a.detach().css({top:0,left:0,display:"block"}).insertAfter(this.$element),c=this.getPosition(b),d=a[0].offsetWidth,e=a[0].offsetHeight,b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.offset(g).addClass(f).addClass("in")}},setContent:function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},hide:function(){function b(){var b=setTimeout(function(){c.off(a.support.transition.end).detach()},500);c.one(a.support.transition.end,function(){clearTimeout(b),c.detach()})}var c=this.tip();return c.removeClass("in"),a.support.transition&&this.$tip.hasClass("fade")?b():c.detach(),this},fixTitle:function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").removeAttr("title")},hasContent:function(){return this.getTitle()},getPosition:function(b){return a.extend({},b?{top:0,left:0}:this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight}) },getTitle:function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);c[c.tip().hasClass("in")?"hide":"show"]()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}};var c=a.fn.tooltip;a.fn.tooltip=function(c){return this.each(function(){var d=a(this),e=d.data("tooltip"),f="object"==typeof c&&c;e||d.data("tooltip",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.tooltip.Constructor=b,a.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'
    ',trigger:"hover",title:"",delay:0,html:!1},a.fn.tooltip.noConflict=function(){return a.fn.tooltip=c,this}}(window.jQuery),!function(a){"use strict";var b=function(a,b){this.init("popover",a,b)};b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype,{constructor:b,setContent:function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content")[this.options.html?"html":"text"](c),a.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var a,b=this.$element,c=this.options;return a=b.attr("data-content")||("function"==typeof c.content?c.content.call(b[0]):c.content)},tip:function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}});var c=a.fn.popover;a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("popover"),f="object"==typeof c&&c;e||d.data("popover",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.popover.Constructor=b,a.fn.popover.defaults=a.extend({},a.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:'

    '}),a.fn.popover.noConflict=function(){return a.fn.popover=c,this}}(window.jQuery),!function(a){"use strict";function b(b,c){var d,e=a.proxy(this.process,this),f=a(a(b).is("body")?window:b);this.options=a.extend({},a.fn.scrollspy.defaults,c),this.$scrollElement=f.on("scroll.scroll-spy.data-api",e),this.selector=(this.options.target||(d=a(b).attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.$body=a("body"),this.refresh(),this.process()}b.prototype={constructor:b,refresh:function(){var b,c=this;this.offsets=a([]),this.targets=a([]),b=this.$body.find(this.selector).map(function(){var b=a(this),d=b.data("target")||b.attr("href"),e=/^#\w/.test(d)&&a(d);return e&&e.length&&[[e.position().top+c.$scrollElement.scrollTop(),d]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){c.offsets.push(this[0]),c.targets.push(this[1])})},process:function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,d=c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(b>=d)return g!=(a=f.last()[0])&&this.activate(a);for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(!e[a+1]||b<=e[a+1])&&this.activate(f[a])},activate:function(b){var c,d;this.activeTarget=b,a(this.selector).parent(".active").removeClass("active"),d=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',c=a(d).parent("li").addClass("active"),c.parent(".dropdown-menu").length&&(c=c.closest("li.dropdown").addClass("active")),c.trigger("activate")}};var c=a.fn.scrollspy;a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data("scrollspy"),f="object"==typeof c&&c;e||d.data("scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.defaults={offset:10},a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=c,this},a(window).on("load",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(window.jQuery),!function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype={constructor:b,show:function(){var b,c,d,e=this.element,f=e.closest("ul:not(.dropdown-menu)"),g=e.attr("data-target");g||(g=e.attr("href"),g=g&&g.replace(/.*(?=#[^\s]*$)/,"")),e.parent("li").hasClass("active")||(b=f.find(".active:last a")[0],d=a.Event("show",{relatedTarget:b}),e.trigger(d),d.isDefaultPrevented()||(c=a(g),this.activate(e.parent("li"),f),this.activate(c,c.parent(),function(){e.trigger({type:"shown",relatedTarget:b})})))},activate:function(b,c,d){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),g?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var f=c.find("> .active"),g=d&&a.support.transition&&f.hasClass("fade");g?f.one(a.support.transition.end,e):e(),f.removeClass("in")}};var c=a.fn.tab;a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("tab");e||d.data("tab",e=new b(this)),"string"==typeof c&&e[c]()})},a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=c,this},a(document).on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.typeahead.defaults,c),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.updater=this.options.updater||this.updater,this.source=this.options.source,this.$menu=a(this.options.menu),this.shown=!1,this.listen()};b.prototype={constructor:b,select:function(){var a=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(a)).change(),this.hide()},updater:function(a){return a},show:function(){var b=a.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});return this.$menu.insertAfter(this.$element).css({top:b.top+b.height,left:b.left}).show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(){var b;return this.query=this.$element.val(),!this.query||this.query.length"+b+""})},render:function(b){var c=this;return b=a(b).map(function(b,d){return b=a(c.options.item).attr("data-value",d),b.find("a").html(c.highlighter(d)),b[0]}),b.first().addClass("active"),this.$menu.html(b),this},next:function(){var b=this.$menu.find(".active").removeClass("active"),c=b.next();c.length||(c=a(this.$menu.find("li")[0])),c.addClass("active")},prev:function(){var a=this.$menu.find(".active").removeClass("active"),b=a.prev();b.length||(b=this.$menu.find("li").last()),b.addClass("active")},listen:function(){this.$element.on("blur",a.proxy(this.blur,this)).on("keypress",a.proxy(this.keypress,this)).on("keyup",a.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",a.proxy(this.keydown,this)),this.$menu.on("click",a.proxy(this.click,this)).on("mouseenter","li",a.proxy(this.mouseenter,this))},eventSupported:function(a){var b=a in this.$element;return b||(this.$element.setAttribute(a,"return;"),b="function"==typeof this.$element[a]),b},move:function(a){if(this.shown){switch(a.keyCode){case 9:case 13:case 27:a.preventDefault();break;case 38:a.preventDefault(),this.prev();break;case 40:a.preventDefault(),this.next()}a.stopPropagation()}},keydown:function(b){this.suppressKeyPressRepeat=~a.inArray(b.keyCode,[40,38,9,13,27]),this.move(b)},keypress:function(a){this.suppressKeyPressRepeat||this.move(a)},keyup:function(a){switch(a.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}a.stopPropagation(),a.preventDefault()},blur:function(){var a=this;setTimeout(function(){a.hide()},150)},click:function(a){a.stopPropagation(),a.preventDefault(),this.select()},mouseenter:function(b){this.$menu.find(".active").removeClass("active"),a(b.currentTarget).addClass("active")}};var c=a.fn.typeahead;a.fn.typeahead=function(c){return this.each(function(){var d=a(this),e=d.data("typeahead"),f="object"==typeof c&&c;e||d.data("typeahead",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.typeahead.defaults={source:[],items:8,menu:'',item:'
  • ',minLength:1},a.fn.typeahead.Constructor=b,a.fn.typeahead.noConflict=function(){return a.fn.typeahead=c,this},a(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(b){var c=a(this);c.data("typeahead")||(b.preventDefault(),c.typeahead(c.data()))})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.options=a.extend({},a.fn.affix.defaults,c),this.$window=a(window).on("scroll.affix.data-api",a.proxy(this.checkPosition,this)).on("click.affix.data-api",a.proxy(function(){setTimeout(a.proxy(this.checkPosition,this),1)},this)),this.$element=a(b),this.checkPosition()};b.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b,c=a(document).height(),d=this.$window.scrollTop(),e=this.$element.offset(),f=this.options.offset,g=f.bottom,h=f.top,i="affix affix-top affix-bottom";"object"!=typeof f&&(g=h=f),"function"==typeof h&&(h=f.top()),"function"==typeof g&&(g=f.bottom()),b=null!=this.unpin&&d+this.unpin<=e.top?!1:null!=g&&e.top+this.$element.height()>=c-g?"bottom":null!=h&&h>=d?"top":!1,this.affixed!==b&&(this.affixed=b,this.unpin="bottom"==b?e.top-d:null,this.$element.removeClass(i).addClass("affix"+(b?"-"+b:"")))}};var c=a.fn.affix;a.fn.affix=function(c){return this.each(function(){var d=a(this),e=d.data("affix"),f="object"==typeof c&&c;e||d.data("affix",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.affix.Constructor=b,a.fn.affix.defaults={offset:0},a.fn.affix.noConflict=function(){return a.fn.affix=c,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var b=a(this),c=b.data();c.offset=c.offset||{},c.offsetBottom&&(c.offset.bottom=c.offsetBottom),c.offsetTop&&(c.offset.top=c.offsetTop),b.affix(c)})})}(window.jQuery),define("bootstrap",["jquery"],function(){}),function(a,b){function c(a,b,c){return[parseInt(a[0],10)*(n.test(a[0])?b/100:1),parseInt(a[1],10)*(n.test(a[1])?c/100:1)]}function d(b,c){return parseInt(a.css(b,c),10)||0}function e(b){var c=b[0];return 9===c.nodeType?{width:b.width(),height:b.height(),offset:{top:0,left:0}}:a.isWindow(c)?{width:b.width(),height:b.height(),offset:{top:b.scrollTop(),left:b.scrollLeft()}}:c.preventDefault?{width:0,height:0,offset:{top:c.pageY,left:c.pageX}}:{width:b.outerWidth(),height:b.outerHeight(),offset:b.offset()}}a.ui=a.ui||{};var f,g=Math.max,h=Math.abs,i=Math.round,j=/left|center|right/,k=/top|center|bottom/,l=/[\+\-]\d+%?/,m=/^\w+/,n=/%$/,o=a.fn.position;a.position={scrollbarWidth:function(){if(f!==b)return f;var c,d,e=a("
    "),g=e.children()[0];return a("body").append(e),c=g.offsetWidth,e.css("overflow","scroll"),d=g.offsetWidth,c===d&&(d=e[0].clientWidth),e.remove(),f=c-d},getScrollInfo:function(b){var c=b.isWindow?"":b.element.css("overflow-x"),d=b.isWindow?"":b.element.css("overflow-y"),e="scroll"===c||"auto"===c&&b.widthd?"left":c>0?"right":"center",vertical:0>f?"top":e>0?"bottom":"middle"};l>n&&h(c+d)p&&h(e+f)g(h(e),h(f))?"horizontal":"vertical",b.using.call(this,a,i)}),k.offset(a.extend(A,{using:j}))})},a.ui.position={fit:{left:function(a,b){var c,d=b.within,e=d.isWindow?d.scrollLeft:d.offset.left,f=d.width,h=a.left-b.collisionPosition.marginLeft,i=e-h,j=h+b.collisionWidth-f-e;b.collisionWidth>f?i>0&&0>=j?(c=a.left+i+b.collisionWidth-f-e,a.left+=i-c):a.left=j>0&&0>=i?e:i>j?e+f-b.collisionWidth:e:i>0?a.left+=i:j>0?a.left-=j:a.left=g(a.left-h,a.left)},top:function(a,b){var c,d=b.within,e=d.isWindow?d.scrollTop:d.offset.top,f=b.within.height,h=a.top-b.collisionPosition.marginTop,i=e-h,j=h+b.collisionHeight-f-e;b.collisionHeight>f?i>0&&0>=j?(c=a.top+i+b.collisionHeight-f-e,a.top+=i-c):a.top=j>0&&0>=i?e:i>j?e+f-b.collisionHeight:e:i>0?a.top+=i:j>0?a.top-=j:a.top=g(a.top-h,a.top)}},flip:{left:function(a,b){var c,d,e=b.within,f=e.offset.left+e.scrollLeft,g=e.width,i=e.isWindow?e.scrollLeft:e.offset.left,j=a.left-b.collisionPosition.marginLeft,k=j-i,l=j+b.collisionWidth-g-i,m="left"===b.my[0]?-b.elemWidth:"right"===b.my[0]?b.elemWidth:0,n="left"===b.at[0]?b.targetWidth:"right"===b.at[0]?-b.targetWidth:0,o=-2*b.offset[0];0>k?(c=a.left+m+n+o+b.collisionWidth-g-f,(0>c||c0&&(d=a.left-b.collisionPosition.marginLeft+m+n+o-i,(d>0||h(d)k?(d=a.top+n+o+p+b.collisionHeight-g-f,a.top+n+o+p>k&&(0>d||d0&&(c=a.top-b.collisionPosition.marginTop+n+o+p-i,a.top+n+o+p>l&&(c>0||h(c)10&&11>e,b.innerHTML="",c.removeChild(b)}()}(jQuery),define("position",["jquery"],function(){}),function(a,b){function c(a){for(var b,c=a.split(/\s+/),d=[],e=0;b=c[e];e++)b=b[0].toUpperCase(),d.push(b);return d}function d(b){return b.id&&a('label[for="'+b.id+'"]').val()||b.name}function e(c,f,g){return g||(g=0),f.each(function(){var f,h,i=a(this),j=this,k=this.nodeName.toLowerCase();switch("label"==k&&i.find("input, textarea, select").length&&(f=i.text(),i=i.children().first(),j=i.get(0),k=j.nodeName.toLowerCase()),k){case"menu":h={name:i.attr("label"),items:{}},g=e(h.items,i.children(),g);break;case"a":case"button":h={name:i.text(),disabled:!!i.attr("disabled"),callback:function(){return function(){i.click()}}()};break;case"menuitem":case"command":switch(i.attr("type")){case b:case"command":case"menuitem":h={name:i.attr("label"),disabled:!!i.attr("disabled"),callback:function(){return function(){i.click()}}()};break;case"checkbox":h={type:"checkbox",disabled:!!i.attr("disabled"),name:i.attr("label"),selected:!!i.attr("checked")};break;case"radio":h={type:"radio",disabled:!!i.attr("disabled"),name:i.attr("label"),radio:i.attr("radiogroup"),value:i.attr("id"),selected:!!i.attr("checked")};break;default:h=b}break;case"hr":h="-------";break;case"input":switch(i.attr("type")){case"text":h={type:"text",name:f||d(j),disabled:!!i.attr("disabled"),value:i.val()};break;case"checkbox":h={type:"checkbox",name:f||d(j),disabled:!!i.attr("disabled"),selected:!!i.attr("checked")};break;case"radio":h={type:"radio",name:f||d(j),disabled:!!i.attr("disabled"),radio:!!i.attr("name"),value:i.val(),selected:!!i.attr("checked")};break;default:h=b}break;case"select":h={type:"select",name:f||d(j),disabled:!!i.attr("disabled"),selected:i.val(),options:{}},i.children().each(function(){h.options[this.value]=a(this).text()});break;case"textarea":h={type:"textarea",name:f||d(j),disabled:!!i.attr("disabled"),value:i.val()};break;case"label":break;default:h={type:"html",html:i.clone(!0)}}h&&(g++,c["key"+g]=h)}),g}if(a.support.htmlMenuitem="HTMLMenuItemElement"in window,a.support.htmlCommand="HTMLCommandElement"in window,a.support.eventSelectstart="onselectstart"in document.documentElement,!a.ui||!a.ui.widget){var f=a.cleanData;a.cleanData=function(b){for(var c,d=0;null!=(c=b[d]);d++)try{a(c).triggerHandler("remove")}catch(e){}f(b)}}var g=null,h=!1,i=a(window),j=0,k={},l={},m={},n={selector:null,appendTo:null,trigger:"right",autoHide:!1,delay:200,reposition:!0,determinePosition:function(b){if(a.ui&&a.ui.position)b.css("display","block").position({my:"center top",at:"center bottom",of:this,offset:"0 5",collision:"fit"}).css("display","none");else{var c=this.offset();c.top+=this.outerHeight(),c.left+=this.outerWidth()/2-b.outerWidth()/2,b.css(c)}},position:function(a,b,c){var d;if(!b&&!c)return void a.determinePosition.call(this,a.$menu);d="maintain"===b&&"maintain"===c?a.$menu.position():{top:c,left:b};var e=i.scrollTop()+i.height(),f=i.scrollLeft()+i.width(),g=a.$menu.height(),h=a.$menu.width();d.top+g>e&&(d.top-=g),d.left+h>f&&(d.left-=h),a.$menu.css(d)},positionSubmenu:function(b){if(a.ui&&a.ui.position)b.css("display","block").position({my:"left top",at:"right top",of:this,collision:"flipfit fit"}).css("display","");else{var c={top:0,left:this.outerWidth()};b.css(c)}},zIndex:1,animation:{duration:50,show:"slideDown",hide:"slideUp"},events:{show:a.noop,hide:a.noop},callback:null,items:{}},o={timer:null,pageX:null,pageY:null},p=function(a){for(var b=0,c=a;;)if(b=Math.max(b,parseInt(c.css("z-index"),10)||0),c=c.parent(),!c||!c.length||"html body".indexOf(c.prop("nodeName").toLowerCase())>-1)break;return b},q={abortevent:function(a){a.preventDefault(),a.stopImmediatePropagation()},contextmenu:function(b){var c=a(this);if(b.preventDefault(),b.stopImmediatePropagation(),!("right"!=b.data.trigger&&b.originalEvent||c.hasClass("context-menu-active")||c.hasClass("context-menu-disabled"))){if(g=c,b.data.build){var d=b.data.build(g,b);if(d===!1)return;if(b.data=a.extend(!0,{},n,b.data,d||{}),!b.data.items||a.isEmptyObject(b.data.items))throw window.console&&(console.error||console.log)("No items specified to show in contextMenu"),new Error("No Items specified");b.data.$trigger=g,r.create(b.data)}r.show.call(c,b.data,b.pageX,b.pageY)}},click:function(b){b.preventDefault(),b.stopImmediatePropagation(),a(this).trigger(a.Event("contextmenu",{data:b.data,pageX:b.pageX,pageY:b.pageY}))},mousedown:function(b){var c=a(this);g&&g.length&&!g.is(c)&&g.data("contextMenu").$menu.trigger("contextmenu:hide"),2==b.button&&(g=c.data("contextMenuActive",!0))},mouseup:function(b){var c=a(this);c.data("contextMenuActive")&&g&&g.length&&g.is(c)&&!c.hasClass("context-menu-disabled")&&(b.preventDefault(),b.stopImmediatePropagation(),g=c,c.trigger(a.Event("contextmenu",{data:b.data,pageX:b.pageX,pageY:b.pageY}))),c.removeData("contextMenuActive")},mouseenter:function(b){var c=a(this),d=a(b.relatedTarget),e=a(document);d.is(".context-menu-list")||d.closest(".context-menu-list").length||g&&g.length||(o.pageX=b.pageX,o.pageY=b.pageY,o.data=b.data,e.on("mousemove.contextMenuShow",q.mousemove),o.timer=setTimeout(function(){o.timer=null,e.off("mousemove.contextMenuShow"),g=c,c.trigger(a.Event("contextmenu",{data:o.data,pageX:o.pageX,pageY:o.pageY}))},b.data.delay))},mousemove:function(a){o.pageX=a.pageX,o.pageY=a.pageY},mouseleave:function(b){var c=a(b.relatedTarget);if(!c.is(".context-menu-list")&&!c.closest(".context-menu-list").length){try{clearTimeout(o.timer)}catch(b){}o.timer=null}},layerClick:function(b){var c,d,e=a(this),f=e.data("contextMenuRoot"),g=b.button,h=b.pageX,j=b.pageY;b.preventDefault(),b.stopImmediatePropagation(),setTimeout(function(){var e,k="left"==f.trigger&&0===g||"right"==f.trigger&&2===g;if(document.elementFromPoint&&(f.$layer.hide(),c=document.elementFromPoint(h-i.scrollLeft(),j-i.scrollTop()),f.$layer.show()),f.reposition&&k)if(document.elementFromPoint){if(f.$trigger.is(c)||f.$trigger.has(c).length)return void f.position.call(f.$trigger,f,h,j)}else if(d=f.$trigger.offset(),e=a(window),d.top+=e.scrollTop(),d.top<=b.pageY&&(d.left+=e.scrollLeft(),d.left<=b.pageX&&(d.bottom=d.top+f.$trigger.outerHeight(),d.bottom>=b.pageY&&(d.right=d.left+f.$trigger.outerWidth(),d.right>=b.pageX))))return void f.position.call(f.$trigger,f,h,j);c&&k&&f.$trigger.one("contextmenu:hidden",function(){a(c).contextMenu({x:h,y:j})}),f.$menu.trigger("contextmenu:hide")},50)},keyStop:function(a,b){b.isInput||a.preventDefault(),a.stopPropagation()},key:function(a){var b=g.data("contextMenu")||{};switch(a.keyCode){case 9:case 38:if(q.keyStop(a,b),b.isInput){if(9==a.keyCode&&a.shiftKey)return a.preventDefault(),b.$selected&&b.$selected.find("input, textarea, select").blur(),void b.$menu.trigger("prevcommand");if(38==a.keyCode&&"checkbox"==b.$selected.find("input, textarea, select").prop("type"))return void a.preventDefault()}else if(9!=a.keyCode||a.shiftKey)return void b.$menu.trigger("prevcommand");case 40:if(q.keyStop(a,b),!b.isInput)return void b.$menu.trigger("nextcommand");if(9==a.keyCode)return a.preventDefault(),b.$selected&&b.$selected.find("input, textarea, select").blur(),void b.$menu.trigger("nextcommand");if(40==a.keyCode&&"checkbox"==b.$selected.find("input, textarea, select").prop("type"))return void a.preventDefault();break;case 37:if(q.keyStop(a,b),b.isInput||!b.$selected||!b.$selected.length)break;if(!b.$selected.parent().hasClass("context-menu-root")){var c=b.$selected.parent().parent();return b.$selected.trigger("contextmenu:blur"),void(b.$selected=c)}break;case 39:if(q.keyStop(a,b),b.isInput||!b.$selected||!b.$selected.length)break;var d=b.$selected.data("contextMenu")||{};if(d.$menu&&b.$selected.hasClass("context-menu-submenu"))return b.$selected=null,d.$selected=null,void d.$menu.trigger("nextcommand");break;case 35:case 36:return b.$selected&&b.$selected.find("input, textarea, select").length?void 0:((b.$selected&&b.$selected.parent()||b.$menu).children(":not(.disabled, .not-selectable)")[36==a.keyCode?"first":"last"]().trigger("contextmenu:focus"),void a.preventDefault());case 13:if(q.keyStop(a,b),b.isInput){if(b.$selected&&!b.$selected.is("textarea, select"))return void a.preventDefault();break}return void(b.$selected&&b.$selected.trigger("mouseup"));case 32:case 33:case 34:return void q.keyStop(a,b);case 27:return q.keyStop(a,b),void b.$menu.trigger("contextmenu:hide");default:var e=String.fromCharCode(a.keyCode).toUpperCase();if(b.accesskeys[e])return void b.accesskeys[e].$node.trigger(b.accesskeys[e].$menu?"contextmenu:focus":"mouseup")}a.stopPropagation(),b.$selected&&b.$selected.trigger(a)},prevItem:function(b){b.stopPropagation();var c=a(this).data("contextMenu")||{};if(c.$selected){var d=c.$selected;c=c.$selected.parent().data("contextMenu")||{},c.$selected=d}for(var e=c.$menu.children(),f=c.$selected&&c.$selected.prev().length?c.$selected.prev():e.last(),g=f;f.hasClass("disabled")||f.hasClass("not-selectable");)if(f=f.prev().length?f.prev():e.last(),f.is(g))return;c.$selected&&q.itemMouseleave.call(c.$selected.get(0),b),q.itemMouseenter.call(f.get(0),b);var h=f.find("input, textarea, select");h.length&&h.focus()},nextItem:function(b){b.stopPropagation();var c=a(this).data("contextMenu")||{};if(c.$selected){var d=c.$selected;c=c.$selected.parent().data("contextMenu")||{},c.$selected=d}for(var e=c.$menu.children(),f=c.$selected&&c.$selected.next().length?c.$selected.next():e.first(),g=f;f.hasClass("disabled")||f.hasClass("not-selectable");)if(f=f.next().length?f.next():e.first(),f.is(g))return;c.$selected&&q.itemMouseleave.call(c.$selected.get(0),b),q.itemMouseenter.call(f.get(0),b);var h=f.find("input, textarea, select");h.length&&h.focus()},focusInput:function(){var b=a(this).closest(".context-menu-item"),c=b.data(),d=c.contextMenu,e=c.contextMenuRoot;e.$selected=d.$selected=b,e.isInput=d.isInput=!0},blurInput:function(){var b=a(this).closest(".context-menu-item"),c=b.data(),d=c.contextMenu,e=c.contextMenuRoot;e.isInput=d.isInput=!1},menuMouseenter:function(){var b=a(this).data().contextMenuRoot;b.hovering=!0},menuMouseleave:function(b){var c=a(this).data().contextMenuRoot;c.$layer&&c.$layer.is(b.relatedTarget)&&(c.hovering=!1)},itemMouseenter:function(b){var c=a(this),d=c.data(),e=d.contextMenu,f=d.contextMenuRoot;return f.hovering=!0,b&&f.$layer&&f.$layer.is(b.relatedTarget)&&(b.preventDefault(),b.stopImmediatePropagation()),(e.$menu?e:f).$menu.children(".hover").trigger("contextmenu:blur"),c.hasClass("disabled")||c.hasClass("not-selectable")?void(e.$selected=null):void c.trigger("contextmenu:focus")},itemMouseleave:function(b){var c=a(this),d=c.data(),e=d.contextMenu,f=d.contextMenuRoot;return f!==e&&f.$layer&&f.$layer.is(b.relatedTarget)?(f.$selected&&f.$selected.trigger("contextmenu:blur"),b.preventDefault(),b.stopImmediatePropagation(),void(f.$selected=e.$selected=e.$node)):void c.trigger("contextmenu:blur")},itemClick:function(b){var c,d=a(this),e=d.data(),f=e.contextMenu,g=e.contextMenuRoot,h=e.contextMenuKey;if(f.items[h]&&!d.is(".disabled, .context-menu-submenu, .context-menu-separator, .not-selectable")){if(b.preventDefault(),b.stopImmediatePropagation(),a.isFunction(g.callbacks[h])&&Object.prototype.hasOwnProperty.call(g.callbacks,h))c=g.callbacks[h];else{if(!a.isFunction(g.callback))return;c=g.callback}c.call(g.$trigger,h,g)!==!1?g.$menu.trigger("contextmenu:hide"):g.$menu.parent().length&&r.update.call(g.$trigger,g)}},inputClick:function(a){a.stopImmediatePropagation()},hideMenu:function(b,c){var d=a(this).data("contextMenuRoot");r.hide.call(d.$trigger,d,c&&c.force)},focusItem:function(b){b.stopPropagation();var c=a(this),d=c.data(),e=d.contextMenu,f=d.contextMenuRoot;c.addClass("hover").siblings(".hover").trigger("contextmenu:blur"),e.$selected=f.$selected=c,e.$node&&f.positionSubmenu.call(e.$node,e.$menu)},blurItem:function(b){b.stopPropagation();{var c=a(this),d=c.data(),e=d.contextMenu;d.contextMenuRoot}c.removeClass("hover"),e.$selected=null}},r={show:function(b,c,d){var e=a(this),f={};return a("#context-menu-layer").trigger("mousedown"),b.$trigger=e,b.events.show.call(e,b)===!1?void(g=null):(r.update.call(e,b),b.position.call(e,b,c,d),b.zIndex&&(f.zIndex=p(e)+b.zIndex),r.layer.call(b.$menu,b,f.zIndex),b.$menu.find("ul").css("zIndex",f.zIndex+1),b.$menu.css(f)[b.animation.show](b.animation.duration,function(){e.trigger("contextmenu:visible")}),e.data("contextMenu",b).addClass("context-menu-active"),a(document).off("keydown.contextMenu").on("keydown.contextMenu",q.key),b.autoHide&&a(document).on("mousemove.contextMenuAutoHide",function(a){var c=e.offset();c.right=c.left+e.outerWidth(),c.bottom=c.top+e.outerHeight(),!b.$layer||b.hovering||a.pageX>=c.left&&a.pageX<=c.right&&a.pageY>=c.top&&a.pageY<=c.bottom||b.$menu.trigger("contextmenu:hide")}),void(b.events.shown&&b.events.shown.call(e,b)))},hide:function(c,d){var e=a(this);if(c||(c=e.data("contextMenu")||{}),d||!c.events||c.events.hide.call(e,c)!==!1){if(e.removeData("contextMenu").removeClass("context-menu-active"),c.$layer){setTimeout(function(a){return function(){a.remove()}}(c.$layer),10);try{delete c.$layer}catch(f){c.$layer=null}}g=null,c.$menu.find(".hover").trigger("contextmenu:blur"),c.$selected=null,a(document).off(".contextMenuAutoHide").off("keydown.contextMenu"),c.$menu&&c.$menu[c.animation.hide](c.animation.duration,function(){c.build&&(c.$menu.remove(),a.each(c,function(a){switch(a){case"ns":case"selector":case"build":case"trigger":return!0;default:c[a]=b;try{delete c[a]}catch(d){}return!0}})),setTimeout(function(){e.trigger("contextmenu:hidden")},10)})}},create:function(d,e){e===b&&(e=d),d.$menu=a('
      ').addClass(d.className||"").data({contextMenu:d,contextMenuRoot:e}),a.each(["callbacks","commands","inputs"],function(a,b){d[b]={},e[b]||(e[b]={})}),e.accesskeys||(e.accesskeys={}),a.each(d.items,function(b,f){var g=a('
    • ').addClass(f.className||""),h=null,i=null;if(g.on("click",a.noop),f.$node=g.data({contextMenu:d,contextMenuRoot:e,contextMenuKey:b}),f.accesskey)for(var j,k=c(f.accesskey),l=0;j=k[l];l++)if(!e.accesskeys[j]){e.accesskeys[j]=f,f._name=f.name.replace(new RegExp("("+j+")","i"),'$1');break}if("string"==typeof f)g.addClass("context-menu-separator not-selectable");else if(f.type&&m[f.type])m[f.type].call(g,f,d,e),a.each([d,e],function(c,d){d.commands[b]=f,a.isFunction(f.callback)&&(d.callbacks[b]=f.callback)});else{switch("html"==f.type?g.addClass("context-menu-html not-selectable"):f.type?(h=a("").appendTo(g),a("").html(f._name||f.name).appendTo(h),g.addClass("context-menu-input"),d.hasTypes=!0,a.each([d,e],function(a,c){c.commands[b]=f,c.inputs[b]=f })):f.items&&(f.type="sub"),f.type){case"text":i=a('').attr("name","context-menu-input-"+b).val(f.value||"").appendTo(h);break;case"textarea":i=a('').attr("name","context-menu-input-"+b).val(f.value||"").appendTo(h),f.height&&i.height(f.height);break;case"checkbox":i=a('').attr("name","context-menu-input-"+b).val(f.value||"").prop("checked",!!f.selected).prependTo(h);break;case"radio":i=a('').attr("name","context-menu-input-"+f.radio).val(f.value||"").prop("checked",!!f.selected).prependTo(h);break;case"select":i=a('