//>>built require({cache:{"davinci/main":function(){define("dojo/_base/kernel dojo/_base/declare davinci/davinci davinci/ve/metadata davinci/Runtime davinci/Workbench davinci/ve/metadata davinci/ui/widgets/OutlineTree".split(" "),function(p){return p.davinci})},"davinci/ve/metadata":function(){define("require dojo/Deferred dojo/promise/all dojo/_base/lang dojo/_base/connect ../library ../model/Path ../repositoryinfo xide/types xide/utils".split(" "),function(p,n,m,h,g,f,b,e,k,d){function c(a,q){a=a||{};for(var d= 1,b=arguments.length;dk){var b=dojo.fromJson(b.substring(k+1,e))[0][2][0],w;for(w in c)if(-1Date.now()-window.davinciBackspaceKeyTime&&(c=p.careful);if(c){if(d=d||window.event)d.returnValue=c;return c}})},subscribe:function(b,d){e.subscriptions.push(dojo.subscribe(b, this,d))},destroy:function(){dojo.forEach(e.subscriptions,dojo.unsubscribe)},_addExtension:function(b,d,c){d.id&&(d.id=c+"."+d.id);e.extensionPoints[b]=e.extensionPoints[b]||[];c=e.extensionPoints[b];c.push(d);e.extensionPoints[b]=c},getExtensions:function(b,d){var c=e.extensionPoints[b];if(d){var a=d instanceof Function;if(c)return c.filter(function(c){return a&&d(c)||c.id==d})}return c},getExtension:function(b,d){return e.getExtensions(b,d)[0]},handleError:function(b){var d="welcome";e.singleUserMode()&& (d=".");window.document.body.innerHTML=dojo.string.substitute(p.serverConnectError,{redirectUrl:d,error:b})},executeCommand:function(b){(b=e.getExtension("davinci.commands",b))&&b.run&&b.run()},_selectionChanged:function(b){e.currentSelection=b},getSelection:function(){return e.currentSelection},serverJSONRequest:function(b){var d,c={handleAs:"json"};dojo.mixin(c,b);dojo.xhrGet(c).then(function(a){a&&(d=a)});return d},registerKeyBinding:function(b,d){this._globalKeyBindings||(this._globalKeyBindings= []);this._globalKeyBindings.push({keyBinding:b,action:d})},handleKeyEvent:function(b){this._handleKeyEvent(b,!0)},_handleGlobalDocumentKeyEvent:function(b){this._handleKeyEvent(b)},_handleKeyEvent:function(b,d){if(this._globalKeyBindings){var c=!1;(c=dojo.some(this._globalKeyBindings,dojo.hitch(this,function(a){if(e.isKeyEqualToEvent(a.keyBinding,b))return davinci.Workbench._runAction(a.action),!0})))?dojo.stopEvent(b):d||this.currentEditor&&this.currentEditor.handleKeyEvent&&this.currentEditor.handleKeyEvent(b, !0)}},isKeyEqualToEvent:function(b,d){var c=!0,a=d.altKey&&!dojo.isMac||dojo.isMac&&d.ctrlKey;!!b.accel!==(d.ctrlKey&&!dojo.isMac||dojo.isMac&&d.metaKey)&&(c=!1);!!b.meta!==a&&(c=!1);!!b.shift!==d.shiftKey&&(c=!1);c&&b.charOrCode&&d.which&&(c=dojo.isArray(b.charOrCode)?dojo.some(b.charOrCode,dojo.hitch(this,function(a){return this._comparecharOrCode(a,d)})):this._comparecharOrCode(b.charOrCode,d));return c},_comparecharOrCode:function(b,d){return dojo.isString(b)?b.toLowerCase()===String.fromCharCode(d.which).toLowerCase(): b===d.which}};return e})},"davinci/lang/webContent":function(){define([],function(){return{designer:"Designer,",welcome:"Welcome",loadingMaqetta:"\x26nbsp;Loading Maqetta...",startupError:"Error starting Maqetta: ${0}",logOff:"Log Out",unsupportedBrowser:"Unsupported Browser",unsupportedNote:'Maqetta supports Firefox 4, Chrome 5, and Safari 5.1 or greater. If you wish to continue with an unsupported browser, click "Continue."',buttonContinue:"Continue",pageDesignerTitle:"Maqetta Designer",maqettaUser:"Maqetta User", localhostUser:"localhost user",sessionTimedOut:"Session timed out",sessionTimedOutMsg:"The session has timed out, please \x3ca href\x3d'${hrefLoc}'\x3elog in\x3c/a\x3e again. (Auto-redirect within 10 seconds)",devicePreviewError:"Maqetta device previewer error. Must supply URL parameter 'file\x3d'",devicePreviewPreviewing:"Previewing:",help:"Help",tutorials:"Tutorials",aboutMaqetta:"About Maqetta",review:"Review and Commenting,",reviewPageTitle:"Maqetta Review Board",careful:"Warning: You are about to leave Maqetta.", errorLoadingPlugin:"error loading plugin ${0}, response\x3d${1}",errorLoadingPlugins:"error loading plugins",multipleFilesUnsaved:"${0} (NOTE: This is one of ${1} files with unsaved changes.)",idleSessionMessage:"Your session will timeout in ${seconds} seconds, click anywhere in the page to continue using Maqetta.",fileHasUnsavedChanges:"Save changes to ${0}?",perspectiveNotFound:"perspective not found: ${0}",scopeNotDefined:"scope not defined for action: ${0}",funcNotDefined:"function not defined for action: ${0}", serverConnectError:"\x3ch3\x3eError connecting to the Maqetta Server.\x3c/h3\x3e\x3cbr\x3e\x3cdiv\x3ePlease click here to \x3ca href\x3d'${redirectUrl}'\x3ereturn to Maqetta\x3c/a\x3e\x3cdiv\x3e\x3cdiv\x3eError description: ${error}\x3c/div\x3e"}})},"davinci/commands/CommandStack":function(){define(["dojo/_base/declare"],function(p){return p("davinci.commands.CommandStack",null,{constructor:function(n){this._context=n;this._undoStack=[];this._redoStack=[]},execute:function(n,m){if(n){var h;h=this._context&& "davinci.ve.themeEditor.Context"!=this._context.declaredClass?dojo.withDoc(this._context.getDocument(),"execute",n,[this._context,m]):n.execute(m);this._undoStack.push(n);this._redoStack=[];if(!h)this.onExecute(n,"execute")}},undo:function(){if(this.canUndo()){var n=this._undoStack.pop();n._runDelegate?n._runDelegate.undoDelegate(n):this._context&&"davinci.ve.themeEditor.Context"!=this._context.declaredClass?dojo.withDoc(this._context.getDocument(),"undo",n):n.undo();this._redoStack.push(n);this.onExecute(n, "undo")}},redo:function(){if(this.canRedo()){var n=this._redoStack.pop();n._runDelegate?n._runDelegate.redoDelegate(n):this._context&&"davinci.ve.themeEditor.Context"!=this._context.declaredClass?dojo.withDoc(this._context.getDocument(),"execute",n):n.execute();this._undoStack.push(n);this.onExecute(n,"redo")}},canUndo:function(){return 0n||n>h+g)return-1;h=n-h;if(m)if(0>h)for(;0>h;)this._redoStack.push(this._undoStack.pop()),h++;else for(;0h)for(;0>h;)this.undo(),h++;else for(;0b.length)alert(r.noUserPref);else{this.dialog= c.showModal(new x({}),r.preferences,{width:650,height:350});var k=new w({data:b,jsId:"prefTreeDataStore"}),e=new q({jsId:"fileModel",labelAttr:"name",store:k,rootId:"root"}),f=["root"];if(b=b.items){do k=b[0],f.push(k.id),b=k.children;while(b)}var h=d.byId("prefTree");h||(h=new a({model:e,id:"prefTree",persist:!1,query:"{type:'directory'}",label:"Preferences",labelAttr:"name",showRoot:!1,childrenAttrs:"children",openOnClick:!0,autoExpand:!0}));h.onClick=function(a){z.setPaneContent(a)};g.byId("pref.TreePane").appendChild(h.domNode); h.startup();h.onLoadDeferred.then(function(){h.set("paths",[f]).then(function(){h.focusNode(h.selectedNode);z.setPaneContent(h.selectedItem)})})}},getPrefJson:function(){var a=z._extensions;if(!a)return[];for(var c=[],d=0;dd.h&&(h.position(this.containerNode),Math.min(a.w,d.w),Math.min(a.h,d.h),a.h=d.h);this.resize(a)}this._size();this._position();dojo.style(this.containerNode, "width","auto");dojo.style(this.containerNode,"height","auto")}return c},_onKeyDown:function(c){var a=c.ctrlKey&&!dojo.isMac||dojo.isMac&&c.metaKey;c.which==dojo.keys.ENTER&&(a||this.submitOnEnter)&&(c=dojo.query("input[type\x3dsubmit]",this.containerNode),0n("ie")&&e!==document.parentWindow){b.parentWindow.execScript("document._parentWindow \x3d window;", "Javascript");var d=b._parentWindow;b._parentWindow=null;return d}return b.parentWindow||b.defaultView},scrollIntoView:function(b,d){try{b=h.byId(b);var c=b.ownerDocument||m.doc,a=m.body(c),q=c.documentElement||a.parentNode,e=n("ie"),r=n("webkit");if(b!=a&&b!=q)if(!(n("mozilla")||e||r||n("opera"))&&"scrollIntoView"in b)b.scrollIntoView(!1);else{var B="BackCompat"==c.compatMode,y=Math.min(a.clientWidth||q.clientWidth,q.clientWidth||a.clientWidth),x=Math.min(a.clientHeight||q.clientHeight,q.clientHeight|| a.clientHeight),c=r||B?a:q,z=d||g.position(b),u=b.parentNode,r=function(a){return 6>=e||7==e&&B?!1:n("position-fixed-support")&&"fixed"==f.get(a,"position").toLowerCase()};if(!r(b))for(;u;){u==a&&(u=c);var v=g.position(u),A=r(u),C="rtl"==f.getComputedStyle(u).direction.toLowerCase();if(u==c){v.w=y;v.h=x;c==q&&e&&C&&(v.x+=c.offsetWidth-v.w);if(0>v.x||!e||9<=e)v.x=0;if(0>v.y||!e||9<=e)v.y=0}else{var G=g.getPadBorderExtents(u);v.w-=G.w;v.h-=G.h;v.x+=G.l;v.y+=G.t;var D=u.clientWidth,I=v.w-D;0v.y&&(v.h+=v.y,v.y=0),0>v.x&&(v.w+=v.x,v.x=0),v.y+v.h>x&&(v.h=x-v.y),v.x+v.w>y&&(v.w=y-v.x));var p=z.x-v.x,F=z.y-v.y,N=p+z.w-v.w,L=F+z.h-v.h,J,E;0u.offsetHeight)&&(J=Math[0>p?"max":"min"](p,N),C&&(8==e&&!B||9<=e)&&(J=-J),E=u.scrollLeft,u.scrollLeft+=J,J=u.scrollLeft-E,z.x-=J);0u.offsetHeight)&&(J=Math.ceil(Math[0> F?"max":"min"](F,L)),E=u.scrollTop,u.scrollTop+=J,J=u.scrollTop-E,z.y-=J);u=u!=c&&!A&&u.parentNode}}}catch(K){console.error("scrollIntoView: "+K),b.scrollIntoView(!1)}}};p.setObject("dojo.window",e);return e})},"davinci/_common":function(){define([],function(){return{search:"Search",filter:"Filter","new":"New",errorSavingFile:"Error saving file: ${0} details: ${1}",palette:"palette",closeAllEditors:"Close all tabs",undo:"Undo",redo:"Redo",copy:"Copy",paste:"Paste",cut:"Cut","delete":"Delete",surround:"Surround", properties:"Properties",styles:"Styles",events:"Events",preferences:"Preferences",addPane:"Add Pane",addColumn:"Add Column",addRow:"Add Row",removeColumn:"Remove Column",removeRow:"Remove Row",joinColumn:"Join Column",joinRow:"Join Row",splitColumn:"Split Column",splitRow:"Split Row",alignLeft:"Align Left",alignRight:"Align Right",alignTop:"Align Top",alignBottom:"Align Bottom",show:"Show",hide:"Hide",addMenuItem:"Add Menu Item",addSubMenu:"Add Sub Menu",addMenuBarItem:"Add MenuBar Item",addPopupMenuBar:"Add Popup MenuBarItem", ok:"OK",cancel:"Cancel",page:"Page",title:"Title",metaInfo:"Meta Info",httpEquiv:"HTTP Equiv",style:"Style",theme:"Theme",styleSheets:"Style Sheets",rules:"Rules",url:"URL",externalScripts:"External Scripts",modules:"Modules",name:"Name",value:"Value",add:"Add",remove:"Remove",staticOptions:"Static Options",axisOptions:"Axis Options",series:"Series",axis:"Axis",option:"Option",selected:"Selected",staticItems:"Static Items",dataStore:"Data Store",query:"Query",fields:"Fields",field:"Field",label:"Label", width:"Width",edit:"Edit",key:"Key",rootId:"Root ID",rootLabel:"Root Label",childrenAttrs:"Children Attributes",items:"Items",type:"Type",widget:"Widget",position:"Position",size:"Size",layout:"Layout",visual:"Visual",text:"Text",border:"Border",table:"Table",list:"List",aural:"Aural",others:"Others",onLoad:"Load",onUnload:"Unload",script:"Script",methodCall:"Method Call",serviceCall:"Service Call",object:"Object",method:"Method",parameters:"Parameters",result:"Result",service:"Service",content:"Content", source:"Source",target:"Target",property:"Property",flowLayout:"Flow Layout",snapToNearestWidget:"Snap to nearest widget",showPossibleParents:"When dragging, show possible parents",warnOnCSSOverride:"Warn on CSS Override",absoluteWidgetsZindex:"z-index for sketch mode",widgetPaletteLayout:"In Palette, display widgets as",widgetPaletteShow_Icons:"icons",widgetPaletteShow_List:"list",liveEdit:"Live Edit",zazl:"Enable \x3ca href\x3d'http://zazl.org' target\x3d'_blank'\x3eZazl Optimizer\x3c/a\x3e",selectorPrefix:"Selector Prefix", component:"Component",alternates:"Alternates",alternateWidgets:"Alternate widgets:",howToChooseAlternate:"To choose alternate widget, click-select current widget, then click on up arrow icon.",summary:"Summary:",description:"Description:",showSuggestedWidgets:"Suggested Widgets",showAllWidgets:"All Widgets",MoreIconTitleString:"Click here to see alternative similar widgets",HelpIconTitleString:"Click here to see descriptive info about this widget",__dummy__:""}})},"dojo/data/ItemFileReadStore":function(){define("../_base/kernel ../_base/lang ../_base/declare ../_base/array ../_base/xhr ../Evented ./util/filter ./util/simpleFetch ../date/stamp".split(" "), function(p,n,m,h,g,f,b,e,k){m=m("dojo.data.ItemFileReadStore",[f],{constructor:function(d){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=!1;this.url=this._ccUrl=this._jsonFileUrl=d.url;this._jsonData=d.data;this.data=null;this._datatypeMap=d.typeMap||{};this._datatypeMap.Date||(this._datatypeMap.Date={type:Date,deserialize:function(c){return k.fromISOString(c)}});this._features={"dojo.data.api.Read":!0,"dojo.data.api.Identity":!0};this._itemsByIdentity=null;this._storeRefPropName= "_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._reverseRefMap="_RRM";this._loadInProgress=!1;this._queuedFetches=[];void 0!==d.urlPreventCache&&(this.urlPreventCache=d.urlPreventCache?!0:!1);void 0!==d.hierarchical&&(this.hierarchical=d.hierarchical?!0:!1);d.clearOnClose&&(this.clearOnClose=!0);"failOk"in d&&(this.failOk=d.failOk?!0:!1)},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:!1,urlPreventCache:!1,failOk:!1,hierarchical:!0,_assertIsItem:function(d){if(!this.isItem(d))throw Error(this.declaredClass+ ": Invalid item argument.");},_assertIsAttribute:function(d){if("string"!==typeof d)throw Error(this.declaredClass+": Invalid attribute argument.");},getValue:function(d,c,a){d=this.getValues(d,c);return 0h||null==m)g=1;return g};n.createSortFunction=function(m,h){function g(a,c,d,b){return function(e,k){var f=b.getValue(e,a),g=b.getValue(k,a);return c*d(f,g)}}for(var f=[],b,e=h.comparatorMap,k=n.basicComparator,d=0;dd.indexOf("bottom")&&(d+="-top");if(k=dijit.byId(k)){var c=k.getParent(),d=mainBody.tabs.perspective[d]; c!=d&&(c&&c.removeChild(k),b.hidden||(d.addChild(k),c=d));c&&(b.hidden?c.removeChild(k):b.selected&&(c._maqDontExpandCollapse=!0,c.selectChild(k),delete c._maqDontExpandCollapse))}}));h&&(h.hasOwnProperty("_rightPaletteExpanded")&&(h._rightPaletteExpanded=f),h.hasOwnProperty("_leftPaletteExpanded")&&(h._leftPaletteExpanded=b))},_nearlyCollapsed:function(h){h=dojo.style(h,"width");"string"==typeof h&&(h=parseInt(h));return 91>h},_expandCollapsePaletteContainer:function(h){if(h&&h.domNode&&(h=davinci.Workbench.findPaletteContainerNode(h.domNode), h.id)){var g=h._maqExpanded,f;this._nearlyCollapsed(h)&&(g=!1,f=91<=m[h.id].expandToSize?m[h.id].expandToSize:m[h.id].initialExpandToSize);g?this.collapsePaletteContainer(h):this.expandPaletteContainer(h,{expandToSize:f})}},_expandCollapsePaletteContainers:function(h,g){var f=dijit.byId("left_mainBody"),b=dijit.byId("right_mainBody");if(h){var e=n.getExtensions("davinci.editor",function(d){return d.id===h.editorID});if(e&&0b.indexOf(e)&&this._removeStateFromNode(d,e)}}}},_getStateIndex:function(a){return a&&"Normal"!=a&&"undefined"!=a?a:"undefined"},getCurrentStateIndex:function(){return this._getStateIndex(this.getState())},getApplyToStateIndex:function(a){var c=this.getState();return this._getStateIndex("current"===a&&c&&"Normal"!=c&&"undefined"!=c?c:void 0)},getEffectiveDisplayValue:function(a,c,d,b){a=c?c.domNode:null;c="none";var e=d||"undefined"; if(b&&"string"==typeof b[e]&&"$MAQ_DELETE_PROPERTY$"!=b[e])c=b[e];else if(a){var q=!1;if(a._maqDeltas&&(!b||"$MAQ_DELETE_PROPERTY$"!=b[e])){var k=a._maqDeltas[d]&&a._maqDeltas[d].style;if(k)for(d=0;dd)){var b=this.getState(a),e=this.getFocus(a.ownerDocument.body);a._maqAppStates.states.splice(d,1);d={};e&&e.stateContainerNode==a&&e.state==c&&(d.focus=!0,d.updateWhenCurrent=!0);c==b&&this.setState(void 0,a,d);p.publish("/davinci/states/state/removed",[{node:a,state:c}]);this._updateSrcState(a)}}},rename:function(a, c){if(!c)return!1;var d=c.oldName,b=c.newName;if(!(a&&a._maqAppStates&&a._maqAppStates.states&&a._maqAppStates.states.length))return!1;var e=a._maqAppStates.states;if(0>e.indexOf(d)||0<=e.indexOf(b))return!1;e.splice(e.indexOf(d),1,b);a._maqAppStates.focus===d&&(a._maqAppStates.focus=b);a._maqAppStates.current===d&&(a._maqAppStates.current=b);e=[a];this.getState(a);for(e=e.concat(this._getChildrenOfNode(a));e.length;){var k=e.shift();k._maqDeltas&&k._maqDeltas[d]&&(k._maqDeltas[b]=k._maqDeltas[d], delete k._maqDeltas[d]);var e=e.concat(this._getChildrenOfNode(k)),f=this.getStatesArray(k,null,b,a);this._update(k,f);this._updateSrcState(k)}p.publish("/davinci/states/state/renamed",[{node:k,oldName:d,newName:b,stateContainerNode:k}]);return!0},_isEmpty:function(a){for(var c in a)if(a.hasOwnProperty(c))return!1;return!0},stringifyWithQuotes:function(a){str=k.stringify(a);str=str.replace(/(\\)?'/g,function(a,c){return c?a:"\\'"});return str=str.replace(/"/g,"'")},serialize:function(a){var c=this, d=function(d){var b=null;a[d]&&(d=e("dojo/_base/lang").clone(a[d]),delete d.undefined,c._isEmpty(d)||(b=this.stringifyWithQuotes(d)));return b}.bind(this),b={};if(!a)return b;var k=d("_maqAppStates");"string"==typeof k&&(b.maqAppStates=k);d=d("_maqDeltas");"string"==typeof d&&(b.maqDeltas=d);return b},deserialize:function(a,c){"string"==typeof a&&(a=a.replace(/(\\)?'/g,function(a,c){return c?"'":'"'}),a=k.parse(a),this._migrate_m4_m5(a),a=this._migrate_m6_m7(a,c&&c.isBody));return a},_migrate_m4_m5:function(a){for(var c in a){var d= a[c];if(d){var b=d.style;if(b&&!b.length){var e=[],k;for(k in b){var f={};f[k]=b[k];e.push(f)}d.style=e}}}},_migrate_m6_m7:function(a,c){if(!a||a.states)return a;if(c){var d=[],b;for(b in a)"current"!=b&&d.push(b);if(0b.indexOf("maqTempClass")){d._maqAlreadyPreserved=!0;var e=c.retrieve(d);if("BODY"!=d.tagName&&e&&(e.maqAppStates||e.maqDeltas)){var k="maqTempClass"+f;d.setAttribute("class",b+" "+k);f++;a[k]={};e.maqAppStates&&(a[k].maqAppStates=e.maqAppStates);e.maqDeltas&&(a[k].maqDeltas=e.maqDeltas);d.style?a[k].style=d.style.cssText:console.error("States.js _preserveStates. No value for node.style.")}}})}})})(); davinci.Workbench||"undefined"==typeof dijit||p.subscribe("/maqetta/appstates/state/changed",function(a){var c=a&&a.node&&a.node.ownerDocument&&a.node.ownerDocument.defaultView&&a.node.ownerDocument.defaultView.dijit.byId;c&&(a.newState&&!a.newState.indexOf("_show:")?(a=c(a.newState.substring(6)))&&a.show&&a.show():a.oldState&&!a.oldState.indexOf("_show:")&&(a=c(a.oldState.substring(6)))&&a.hide&&a.hide())});return n})},"davinci/ve/commands/EventCommand":function(){define(["dojo/_base/declare","davinci/ve/widget"], function(p,n){return p("davinci.ve.commands.EventCommand",null,{name:"EventCommand",constructor:function(m,h){this._oldId=m?m.id:void 0;this._properties=h||{}},setContext:function(m){this._context=m},execute:function(){if(this._oldId&&this._properties){var m=n.byId(this._oldId);this._oldProps=m.properties||{};m.setProperties(this._properties,!0);if(m.isHtmlWidget){var h=m.domNode,g;for(g in this._properties)this._properties[g]||h.removeAttribute(g)}this._newId=this._oldId;dojo.publish("/davinci/ui/widgetPropertiesChanged", [[m]])}},undo:function(){if(this._newId){var m=n.byId(this._newId),h=m.domNode,g=m._srcElement,f;for(f in this._properties)this._oldProps[f]||(h.removeAttribute(f),g.removeAttribute(f));m.setProperties(this._oldProps);dojo.publish("/davinci/ui/widgetPropertiesChanged",[[m]])}}})})},"davinci/ve/widget":function(){define("davinci/html/HTMLElement ../Runtime ./metadata dojo/Deferred dojo/_base/lang ./DijitWidget ./GenericWidget ./DeliteWidget ./HTMLWidget ./ObjectWidget dojo/window".split(" "),function(p, n,m,h,g,f,b,e,k,d,c){var a={},q=function(a,c,d){for(var b=0;bh?c-h:0},getElementText:function(f){f=f||{};var b="";if(0e&&(e=void 0);this.addChild(f,e);this.onChange()}, addChild:function(f,b,e){if(!e&&this.wasParsed)if("HTMLElement"==f.elementType){var k=this._getIndent(),d;b/g,"\x26gt;").replace(/"/g,"\x26quot;"):m};davinci.html.unEscapeXml=function(m){return m&&"string"===typeof m?m.replace(/"/g,'"').replace(/>/g,"\x3e").replace(/</g,"\x3c").replace(/&/g,"\x26"):m};return p("davinci.html.HTMLModel",n,{})})},"davinci/model/Model":function(){define(["dojo/_base/declare"], function(p){return p("davinci.model.Model",null,{constructor:function(){this.name=this.elementType="";this.endOffset=this.startOffset=0;this.parent=null;this.children=[]},inherits:function(n){1=this.startOffset&&n.endOffset<=this.endOffset){for(var m=0;m=m?(g.startOffset+=h,g.endOffset+=h):g.endOffset>=m&&(g.endOffset+=h)}};n.visit(visitor)}})})},"davinci/html/HTMLText":function(){define(["dojo/_base/declare","davinci/html/HTMLItem"],function(p,n){return p("davinci.html.HTMLText",n,{constructor:function(m){this.elementType="HTMLText";this.value=m||""},getText:function(m){return this.value},setText:function(m){if(this.wasParsed|| this.parent&&this.parent.wasParsed){var h=m.length-this.value.length;0this.value.length?this.value:this.value.substring(0,15)+"..."}})})},"davinci/html/HTMLComment":function(){define(["dojo/_base/declare","davinci/html/HTMLItem"],function(p,n){return p("davinci.html.HTMLComment",n,{constructor:function(m){this.elementType="HTMLComment";this.value=m||""},getText:function(m){m=this.isProcessingInstruction? "":"--";return"\x3c!"+m+this.value+m+"\x3e"}})})},"davinci/html/HTMLAttribute":function(){define(["dojo/_base/declare","davinci/html/HTMLItem"],function(p,n){return p("davinci.html.HTMLAttribute",n,{constructor:function(){this.elementType="HTMLAttribute";this.value=this.name=""},getText:function(m){if(this.noPersist&&!m.includeNoPersist)return"";m=this.name;({checked:1,selected:1,disabled:1,readonly:1,multiple:1,ismap:1,autofocus:1,autoplay:1,controls:1,formnovalidate:1,loop:1,muted:1,required:1})[this.name.toLowerCase()]? m=this.value&&"false"!==this.value?m+('\x3d"'+this.value+'"'):"":this.noValue||(m=m+'\x3d"'+davinci.html.escapeXml(String(this.value))+'"');return m},setValue:function(m){this.value=davinci.html.unEscapeXml(m);this.onChange()}})})},"davinci/ve/DijitWidget":function(){define("require dojo/_base/declare dojo/_base/window dojo/_base/lang dojo/dom-attr dojo/parser ./_Widget ./metadata".split(" "),function(p,n,m,h,g,f,b,e){return n("davinci.ve.DijitWidget",b,{isDijitWidget:!0,constructor:function(b,d, c,a,e,f){if("string"===typeof c){g.get(d,"data-dojo-type")||g.get(d,"dojoType")||g.set(d,"data-dojo-type",c);e&&e.addAttribute("data-dojo-type",c);c=d.ownerDocument;e=c.defaultView;(a=c.__DijitWidgetScratchSpace)||(a=c.__DijitWidgetScratchSpace=c.createElement("div"));a.appendChild(d);c=e.require("dojo/parser").instantiate([d],b,{noStart:!0})[0];a.firstChild&&a.removeChild(a.firstChild);if(this.domNode=c.domNode)c.domNode._dvWidget=this;this.isLayoutContainer=c.isLayoutContainer}else this.type=f? f.replace(/\./g,"/"):c.declaredClass.replace(/\./g,"/");b=davinci.ve.metadata.getAllowedChild(this.type);this.acceptsHTMLChildren="ANY"===b[0]||-1!==b.toString().toUpperCase().indexOf("HTML");this.dijitWidget=c;this.containerNode=c.containerNode;this.styleNode=c.styleNode;this.id=c.id},getParent:function(){if(this.dijitWidget&&this.dijitWidget.domNode&&this.dijitWidget.domNode.parentNode){var b=p("davinci/ve/widget"),d=this.dijitWidget;do d=b.getEnclosingWidget(d.domNode.parentNode);while(d&&d.dijitWidget&& "_"==d.dijitWidget.declaredClass.split(".").pop().charAt(0));return d}},_getChildren:function(b){if(this.acceptsHTMLChildren)return this.inherited(arguments);var d=[];"NONE"!==davinci.ve.metadata.getAllowedChild(this.type)[0]&&(this.dijitWidget.getChildren(),this.dijitWidget.getChildren().forEach(function(c){c._maqNotDVWidget||(b?d.push(p("davinci/ve/widget").getWidget(c.domNode)):(c=c.domNode&&c.domNode._dvWidget)&&d.push(c))}));return d},_getContainerNode:function(){return this.containerNode||this.domNode}, selectChild:function(b){this.dijitWidget.selectChild&&this.dijitWidget.selectChild(b.dijitWidget)},_addChildToDom:function(b,d){if(this.acceptsHTMLChildren){this.inherited(arguments);var c=b.dijitWidget;c&&this.dijitWidget._started&&!c._started&&b.startup()}else b.dijitWidget&&this.dijitWidget.addChild?this.dijitWidget.addChild(b.dijitWidget,d):("xblox/RunScript"===b.type&&b.getHelper()&&b.getHelper().addChildToDom&&b.getHelper().addChildToDom(this.dijitWidget,b,d),this.inherited(arguments))},_removeChildFromDom:function(b){this.dijitWidget.removeChild&& b.dijitWidget?this.dijitWidget.removeChild(b.dijitWidget):this.inherited(arguments)},_getPropertyValue:function(b){return this.dijitWidget.get(b)},startup:function(){this.dijitWidget.startup()},isLayout:function(){var b=this.getContext().getDijit();return b.layout?this.dijitWidget.isInstanceOf(b.layout._LayoutWidget):!1},resize:function(){var b=this.getHelper();b&&b.resize?b.resize(this):this.dijitWidget.resize&&this.dijitWidget.resize()},renderWidget:function(){if(this.dijitWidget.render)this.dijitWidget.render(); else if(this.dijitWidget.chart){var b=dojo.marginBox(this.dijitWidget.domNode);this.dijitWidget.resize(b)}this.domNode.parentNode._dvWidget&&this.domNode.parentNode._dvWidget.isDijitWidget&&this._refresh(this.domNode.parentNode)},_refresh:function(b){var d=b.parentNode;d._dvWidget&&d._dvWidget.isDijitWidget?this._refresh(d):b._dvWidget.resize&&b._dvWidget.resize()},_attr:function(b,d){return this.dijitWidget.get.apply(this.dijitWidget,arguments)}})})},"davinci/ve/_Widget":function(){define("davinci/ve/_Widget", "dojo/_base/declare ./metadata ../html/CSSModel dojox/html/entities davinci/ve/utils/StyleArray davinci/ve/utils/GeomUtils xide/mixins/EventedMixin xide/mixins/ReloadMixin".split(" "),function(p,n,m,h,g,f,b,e){var k=function(d,c,a){if(d==c)return!0;if(!d||!c||d.length!=c.length)return!1;for(var b=0;bc.length&&d.substring(0,c.length)==c)return}return this._srcElement&&this._srcElement._getAttribute("id")&&this._srcElement._getAttribute("id").noPersist?void 0:this.id},setMarginBox:function(d){var c=this.getStyleNode();c&&(dojo.marginBox(c,d),this._updateSrcStyle())},getMarginBox:function(){var d= this.domNode,c=null,c=(c=this.getHelper())&&c.getMarginBoxPageCoords?c.getMarginBoxPageCoords(this):f.getMarginBoxPageCoords(d);c.l-=f.getScrollLeft(d);c.t-=f.getScrollTop(d);c.x=c.l;c.y=c.t;return c},getStyle:function(d){return(d=this.getStyleValues(d))?this._styleText(d):""},_sortStyleValues:function(d){d=dojo.clone(d);for(var c=m.shorthand,a=0,b=0;bh.includes.indexOf(m)){h.includes.push(m);g.$library=e;g.section=h;g._paletteItemGroup=this._paletteItemGroupCount++;h.items.push(g);m=null;w=this.getChildren();for(r=0;rd?1:0});for(var v=!1,B,y=0;yh.y?h.y-10:h.y+10,left:m.x>h.x?h.x-10:h.x+10,duration:400,onEnd:function(){n.slideTo({node:g.dragClone,top:h.y,left:h.x,duration:100,onEnd:function(){g.dragClone.parentNode.removeChild(g.dragClone); g.dragClone=null;g.onCloneReturned()}}).play()}}).play()},onCloneReturned:function(){},globalChangeCursor:function(m){var h=dojo.doc.styleSheets[0];if(h)if(m){if(this._showingCursor){if(this._showingCursor==m)return;this.globalChangeCursor(null)}this._showingCursor=m;this._ruleIndex=h.cssRules.length;h.insertRule("*{cursor:"+m+" ! important;}",h.cssRules.length)}else this._showingCursor&&(this._showingCursor=null,h.deleteRule(this._ruleIndex))}})})},"dojo/fx":function(){define("./_base/lang ./Evented ./_base/kernel ./_base/array ./aspect ./_base/fx ./dom ./dom-style ./dom-geometry ./ready require".split(" "), function(p,n,m,h,g,f,b,e,k,d,c){m.isAsync||d(0,function(){c(["./fx/Toggler"])});m=m.fx={};d={_fire:function(a,c){this[a]&&this[a].apply(this,c||[]);return this}};var a=function(a){this._index=-1;this._animations=a||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;h.forEach(this._animations,function(a){this.duration+=a.duration;a.delay&&(this.duration+=a.delay)},this)};a.prototype=new n;p.extend(a,{_onAnimate:function(){this._fire("onAnimate",arguments)},_onEnd:function(){this._onAnimateCtx.remove(); this._onEndCtx.remove();this._onAnimateCtx=this._onEndCtx=null;this._index+1==this._animations.length?this._fire("onEnd"):(this._current=this._animations[++this._index],this._onAnimateCtx=g.after(this._current,"onAnimate",p.hitch(this,"_onAnimate"),!0),this._onEndCtx=g.after(this._current,"onEnd",p.hitch(this,"_onEnd"),!0),this._current.play(0,!0))},play:function(a,c){this._current||(this._current=this._animations[this._index=0]);if(!c&&"playing"==this._current.status())return this;var d=g.after(this._current, "beforeBegin",p.hitch(this,function(){this._fire("beforeBegin")}),!0),b=g.after(this._current,"onBegin",p.hitch(this,function(a){this._fire("onBegin",arguments)}),!0),e=g.after(this._current,"onPlay",p.hitch(this,function(a){this._fire("onPlay",arguments);d.remove();b.remove();e.remove()}));this._onAnimateCtx&&this._onAnimateCtx.remove();this._onAnimateCtx=g.after(this._current,"onAnimate",p.hitch(this,"_onAnimate"),!0);this._onEndCtx&&this._onEndCtx.remove();this._onEndCtx=g.after(this._current, "onEnd",p.hitch(this,"_onEnd"),!0);this._current.play.apply(this._current,arguments);return this},pause:function(){if(this._current){var a=g.after(this._current,"onPause",p.hitch(this,function(c){this._fire("onPause",arguments);a.remove()}),!0);this._current.pause()}return this},gotoPercent:function(a,c){this.pause();var d=this.duration*a;this._current=null;h.some(this._animations,function(a){if(a.duration<=d)return this._current=a,!0;d-=a.duration;return!1});this._current&&this._current.gotoPercent(d/ this._current.duration,c);return this},stop:function(a){if(this._current){if(a){for(;this._index+1this._animations.length&&this._fire("onEnd")},_call:function(a,c){var d=this._pseudoAnimation;d[a].apply(d,c)},play:function(a,c){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this},pause:function(){this._doAction("pause", arguments);this._call("pause",arguments);return this},gotoPercent:function(a,c){var d=this.duration*a;h.forEach(this._animations,function(a){a.gotoPercent(a.duration=b.length)break;c=b[d]}while("davinci.ve.palette.PaletteItem"==c.declaredClass&&c._paletteItemGroup===a);"number"!=typeof k.selectedIndex&& (k.selectedIndex=e,b[e]._paletteGroupSelected=!0);k.endIndex=d-1;return k},folderClickHandler:function(b){this.showHideFolderContents()},showHideFolderContents:function(b){for(var e=this.palette.getChildren(),k=0,d=e.length;k=this._mdPosition.x?(d=this._mdPosition.x,k=b.x-this._mdPosition.x):(d=b.x,k=this._mdPosition.x-b.x,f=!1);b.y>=this._mdPosition.y?(e=this._mdPosition.y,b=b.y-this._mdPosition.y):(e=b.y,b=this._mdPosition.y-b.y,q=!1);a.shiftKey&&(k>=b?(b=k,q||(e=this._mdPosition.y-b)):(k=b,f||(d=this._mdPosition.x-k)));this._dragSizeRect||(a=c.getDocument().body,this._dragSizeRect= dojo.create("div",{style:"border:1px dashed black;z-index:1000001;position:absolute;"},a));a=this._dragSizeRect.style;a.left=d+"px";a.top=e+"px";a.width=k+"px";a.height=b+"px"}}else d=!this.createWithFlowLayout(),this._setTarget(a.target,a),e=c.getPreference("showPossibleParents"),e=!e&&this._spaceKeyDown||e&&!this._spaceKeyDown,k={x:a.pageX,y:a.pageY},b={l:a.pageX,t:a.pageY,w:0,h:0},f=g.getPreferences("davinci.ve.editorPrefs",h.getProject()).snap&&d,q=!d,"object"==typeof this._dropCursor&&!1===this._dropCursor.show&& (q=!1),c.dragMoveUpdate({data:this._data,position:k,absolute:d,currentParent:null,eventTarget:a.target,rect:b,doSnapLinesX:f,doSnapLinesY:f,doFindParentsXY:e,doCursor:q,beforeAfter:this._dropCursor&&this._dropCursor.beforeAfter})},onMouseUp:function(a){var c=this._context,d=c._chooseParent,e=!this.createWithFlowLayout();this._dragSizeRect&&(this._dragSizeRect.parentNode.removeChild(this._dragSizeRect),this._dragSizeRect=null);var k=c.getActiveDragDiv();k&&(k=dojo.query(".maqCandidateParents",k),1== k.length&&(k[0].innerHTML=""));this._lastEventTarget=null;var g,q,m,w,k=this._getContentPosition(a);if(this._mdPosition){var r=!0,n=!0;this._position=dojo.mixin({},this._mdPosition);k.x=w?(w=m,n||(t=this._mdPosition.y-w)):(m=w,r||(l=this._mdPosition.x-m)))}else this._position=k;this._resizable&&this._position&&(4=a){var c=this._context._chooseParent, d=c.getProposedParentsList();d&&1q.l+q.w&&(a=g.pageX-(q.l+q.w),d+=a);g.pageY>q.t+q.h&&(a=g.pageY-(q.t+q.h), c+=a)}g=this._getNewTargetOverlay(f,e,k,d,c,b);this._targetOverlays.push(g)}}},_getMaxZIndex:function(g){var f=dojo.style(g,"zIndex");dojo.query("*",g).forEach(function(b){b=dojo.style(b,"zIndex");var e=Number(b),k=Number(f);isNaN(e)||(isNaN(k)?f=b:e>k&&(f=b))});return f},_getNewTargetOverlay:function(g,f,b,e,k,d){return this._context.getDojo().create("div",{className:"editFeedback",style:{position:"absolute",opacity:.1,left:f+"px",top:b+"px",width:e+"px",height:k+"px",zIndex:d}})},_insertTargetOverlays:function(){if(this._targetOverlays&& this._target){var g=this._target.domNode,f=g.parentNode;dojo.forEach(this._targetOverlays,function(b){f.insertBefore(b,g.nextSibling)},this)}},_removeTargetOverlays:function(){if(this._targetOverlays&&this._target)for(var g=this._targetOverlays.length-1;0<=g;g--)dojo.destroy(this._targetOverlays[g]),this._targetOverlays.pop()},_matchesTargetOverlay:function(g){return dojo.some(this._targetOverlays,function(f){return g==f},this)}})})},"davinci/commands/CompoundCommand":function(){define(["dojo/_base/declare"], function(p){return p("davinci.commands.CompoundCommand",null,{name:"compound",_commands:[],constructor:function(n){this._commands=[];n&&(this._commands=[n])},add:function(n){if(n)if(this._commands)if("compound"==n.name)dojo.forEach(n._commands,function(f){this.add(f)},this);else{if("modify"==n.name)for(var m=n._oldId,h=0;he)){var k=b.getContext();k&&k.detach(f);b.removeChild(f);f.destroyWidget(); if(newWidget=m.createWidget(this._oldData)){this._oldData=newWidget.getData();this._oldData.context=this._context;b.addChild(newWidget,e);k&&(k.attach(newWidget),newWidget.startup(),newWidget.renderWidget(),k.widgetAddedOrDeleted(),k.widgetChanged(k.WIDGET_MODIFIED,newWidget));dojo.publish("/davinci/ui/widget/replaced",[newWidget,f]);g.resetState(newWidget.domNode);var d;if(this._isRefreshParentOnPropChange(f))if("string"==typeof refreshParent)for(d=b;d&&d.domNode&&d.type!=refreshParent&&"BODY"!= d.domNode.tagName;){if(!d.domNode||"BODY"==d.domNode.tagName){d=null;break}d=d.getParent()}else d=b;(f=this._isRefreshOnDescendantChange(newWidget))&&(d=f);d&&(new davinci.ve.commands.ModifyCommand(d,null,null,b._edit_context)).execute();dojo.publish("/davinci/ui/widgetPropertiesChanged",[[newWidget]])}}}}}}})})},"davinci/ve/commands/MoveCommand":function(){define("dojo/_base/declare dojo/dom-geometry davinci/ve/widget davinci/ve/States davinci/ve/utils/StyleArray davinci/ve/utils/GeomUtils".split(" "), function(p,n,m,h,g,f){return p("davinci.ve.commands.MoveCommand",null,{name:"move",constructor:function(b,e,k,d,c,a,f){this._id=b?b.id:void 0;this._context=b.getContext();this._newBox={l:e,t:k};this._commandForXYDeltas=d;this._oldBox=c;this._applyToStateIndex=a&&"Normal"!=a&&"undefined"!=a?a:"undefined";this._disableSnapping=f},execute:function(){if(this._id){var b=m.byId(this._id);if(b&&b.domNode){var e=this._context;if(!this._oldBox){var k=b.getMarginBox();this._oldBox={l:k.l,t:k.t,w:k.w,h:k.h}}if(!b.domNode.offsetParent)console.error("maeh"); else if(dojo.position(b.domNode.offsetParent,!0)){this._commandForXYDeltas?(this._newBox.l=this._oldBox.l+this._commandForXYDeltas._deltaX,this._newBox.t=this._oldBox.t+this._commandForXYDeltas._deltaY):(!this._disableSnapping&&e&&e._snapX&&(k=this._oldBox.w,"left"==e._snapX.typeRefObj?this._newBox.l=e._snapX.x:k&&"right"==e._snapX.typeRefObj?this._newBox.l=e._snapX.x-k:k&&"center"==e._snapX.typeRefObj&&(this._newBox.l=e._snapX.x-k/2)),!this._disableSnapping&&e&&e._snapY&&(k=this._oldBox.h,"top"== e._snapY.typeRefObj?this._newBox.t=e._snapY.y:k&&"bottom"==e._snapY.typeRefObj?this._newBox.t=e._snapY.y-k:k&&"middle"==e._snapY.typeRefObj&&(this._newBox.t=e._snapY.y-k/2)));this._deltaX=this._newBox.l-this._oldBox.l;this._deltaY=this._newBox.t-this._oldBox.t;var k=f.getBorderBoxPageCoords(b.domNode.offsetParent),d=n.getBorderExtents(b.domNode.offsetParent),c=this._newBox.l-k.l-d.l,a=this._newBox.t-k.t-d.t;e.getScrollOffset();c=[{left:c+"px"},{top:a+"px"}];e=b.getStyleValuesAllStates();this._oldStyleValuesAllStates= dojo.clone(e);this._oldBox&&(this._oldStyleValuesAllStates[this._applyToStateIndex]=g.mergeStyleArrays(this._oldStyleValuesAllStates[this._applyToStateIndex],[{left:this._oldBox.l-k.l-d.l+"px"},{top:this._oldBox.t-k.t-d.t+"px"}]));e[this._applyToStateIndex]=e[this._applyToStateIndex]?g.mergeStyleArrays(e[this._applyToStateIndex],c):c;b.setStyleValuesAllStates(e);k=h.getStatesListCurrent(b.domNode);d=g.mergeStyleArrays([],e.undefined);for(c=0;c=d&&c<=e?n.removeClass(k,"propertiesSectionHidden"):n.addClass(k,"propertiesSectionHidden")}}; if(this.pageTemplate){a=this.pageTemplate[a];var b;a&&a.id&&(a=n.byId(a.id))&&(b=a.value);n.isString(b)&&("none"===b?c(this.pageTemplate,2,20,-1,-1):"sides"===b?c(this.pageTemplate,2,20,2,5):"props"===b?c(this.pageTemplate,2,20,6,8):"all"===b&&c(this.pageTemplate,2,20,9,20))}}}},{display:"border-top",type:"multi",target:["border-top"],values:["","none","1px solid black"],rowClass:"propertiesSectionHidden"},{display:"border-right",type:"multi",target:["border-right"],values:["","none","1px solid black"], rowClass:"propertiesSectionHidden"},{display:"border-bottom",type:"multi",target:["border-bottom"],values:["","none","1px solid black"],rowClass:"propertiesSectionHidden"},{display:"border-left",type:"multi",target:["border-left"],values:["","none","1px solid black"],rowClass:"propertiesSectionHidden"},{display:"border-width",type:"multi",target:["border-width"],values:["","1px","1em"],rowClass:"propertiesSectionHidden"},{display:"border-style",type:"multi",target:["border-style"],values:["","none", "solid","dotted","dashed"],rowClass:"propertiesSectionHidden"},{display:"border-color",type:"color",target:["border-color"],rowClass:"propertiesSectionHidden"},{display:"border-top-width",type:"multi",target:["border-top-width"],values:["","1px","1em"],rowClass:"propertiesSectionHidden"},{display:"border-top-style",type:"multi",target:["border-top-style"],values:["","none","solid","dotted","dashed"],rowClass:"propertiesSectionHidden"},{display:"border-top-color",type:"color",target:["border-top-color"], rowClass:"propertiesSectionHidden"},{display:"border-right-width",type:"multi",target:["border-right-width"],values:["","1px","1em"],rowClass:"propertiesSectionHidden"},{display:"border-right-style",type:"multi",target:["border-right-style"],values:["","none","solid","dotted","dashed"],rowClass:"propertiesSectionHidden"},{display:"border-right-color",type:"color",target:["border-right-color"],rowClass:"propertiesSectionHidden"},{display:"border-bottom-width",type:"multi",target:["border-bottom-width"], values:["","1px","1em"],rowClass:"propertiesSectionHidden"},{display:"border-bottom-style",type:"multi",target:["border-bottom-style"],values:["","none","solid","dotted","dashed"],rowClass:"propertiesSectionHidden"},{display:"border-bottom-color",type:"color",target:["border-bottom-color"],rowClass:"propertiesSectionHidden"},{display:"border-left-width",type:"multi",target:["border-left-width"],values:["","1px","1em"],rowClass:"propertiesSectionHidden"},{display:"border-left-style",type:"multi",target:["border-left-style"], values:["","none","solid","dotted","dashed"],rowClass:"propertiesSectionHidden"},{display:"border-left-color",type:"color",target:["border-left-color"],rowClass:"propertiesSectionHidden"},{display:"border-collapse",type:"combo",target:["border-collapse"],values:["","separate","collapse"]},{display:"\x3cb\x3e(border-radius)\x3c/b\x3e",type:"multi",target:["border-radius","-moz-border-radius"],values:["","0px","6px"]},{key:"showDetails",display:"",type:"toggleSection",pageTemplate:[{display:"border-top-left-radius", type:"multi",target:["border-top-left-radius","-moz-border-radius-topleft"],values:["","0px","6px"],rowClass:"propertiesSectionHidden"},{display:"border-top-right-radius",type:"multi",target:["border-top-right-radius","-moz-border-radius-topright"],values:["","0px","6px"],rowClass:"propertiesSectionHidden"},{display:"border-bottom-right-radius",type:"multi",target:["border-bottom-right-radius","-moz-border-radius-bottomright"],values:["","0px","6px"],rowClass:"propertiesSectionHidden"},{display:"border-bottom-left-radius", type:"multi",target:["border-bottom-left-radius","-moz-border-radius-bottomleft"],values:["","0px","6px"],rowClass:"propertiesSectionHidden"}]}]},{key:"fontsAndText",className:"maqPropertySection",addCommonPropertiesAtTop:!0,pageTemplate:[{display:"font",type:"text",target:["font"]},{display:"font-family",type:"font",target:["font-family"]},{display:"size",type:"multi",target:["font-size"],values:["","100%","1em","10px","10pt"]},{display:"color",type:"color",target:["color"]},{display:"font-weight", type:"combo",target:["font-weight"],values:["","normal","bold"]},{display:"font-style",type:"combo",target:["font-style"],values:["","normal","italic"]},{display:"text-decoration",type:"combo",target:["text-decoration"],values:["","none","underline","line-through"]},{display:"text-align",type:"combo",target:["text-align"],values:["","left","center","right","justify"]},{display:"vertical-align",type:"combo",target:["vertical-align"],values:["","baseline","top","middle","bottom"]},{display:"white-space", type:"combo",target:["white-space"],values:" normal nowrap pre pre-line pre-wrap".split(" ")},{display:"text-indent",type:"multi",target:["text-indent"],values:["","0","1em","10px"]},{display:"line-height",type:"multi",target:["line-height"],values:["","normal","1.2","120%"]}]}],buildRendering:function(){this.domNode=n.doc.createElement("div");n.addClass(this.domNode,"propertiesContent");var a;a=""+this._titleBarDiv;a+="\x3cdiv class\x3d'propertiesToolBar' dojoType\x3d'davinci.ve.widgets.WidgetToolBar'\x3e\x3c/div\x3e\x3cdiv dojoType\x3d'davinci.ve.widgets.WidgetProperties'\x3e\x3c/div\x3e"; a+="\x3cdiv class\x3d'propScrollableArea'\x3e";a+="\x3ctable class\x3d'propRootDetailsContainer'\x3e";a+="\x3ctr\x3e";a+="\x3ctd class\x3d'propPaletteRoot'\x3e";for(var c=0;ch.length?this.inherited("_setValueAttr",[m]):(this.inherited("_setValueAttr",[h[0].name[0]]),this.item=h[0])}.bind(this),onError:function(){this.inherited("_setValueAttr",[m])}.bind(this)}):this.inherited("_setValueAttr",[m])}})})},"davinci/ve/widgets/MultiInputDropDown":function(){define("dojo/_base/declare xide/widgets/TemplatedWidgetBase xide/form/Select dcl/dcl xide/data/TreeMemory xide/data/ObservableStore dstore/Trackable xide/factory dojo/_base/lang".split(" "), function(p,n,m,h,g,f,b,e,k){var d=h(n,{numberDelta:1,templateString:"\x3cdiv \x3e\x3c/div\x3e",insertPosition:1,declaredClass:"davinci.ve.widgets.MultiInputDropDown",data:null,divider:"---",postCreate:function(){},get:function(c){return"value"===c&&this._dropDown?this._getValueAttr():""},startup:function(){var c=dojo.doc.createElement("div");this._run={};var a=this;this.data?(this.data.push({value:d.divider}),this.data.push({label:"Remove Value",value:"Remove Value",run:function(){this.set("value", "",!1);a._dropDown.set("value","",!0)}})):this.data=[{value:"auto"},{value:"0px"},{value:d.divider},{value:"Remove Value",run:function(){this.set("value","",!1);a._dropDown.set("value","")}},{value:d.divider},{value:"Help",run:function(){alert("help!")}}];for(var k=[],h=0;h=a.length?h.set("disabled", !0):h.set("disabled",!1)}this._updateDataStructureStops()},_onFieldChanged:function(){this._updateDialogValidity();this._updateBackgroundPreview()},_setBaseLocationAttr:function(a){this._baseLocation=a;this._filePicker.set("baseLocation",a)},_updateDialogValidity:function(){var a=this.bgddata;if(a&&a.type){var c=this.domNode,a=a.type,b=[],d=!0;"url"==a?b=dojo.query(".bgdImageOptRow",c):"linear"==a?b=dojo.query(".bgdStopRow",c).concat(dojo.query(".bgdLinearOptRow",c)):"radial"==a&&(b=dojo.query(".bgdStopRow", c).concat(dojo.query(".bgdRadialOptRow",c)));b.forEach(function(a){dojo.query("[widgetid]",a).forEach(function(a){"function"!=typeof a.isValid||a.isValid()||(d=!1)})});this.bdgValid=d}},_updateBackgroundPreview:function(){function a(c,d){var e=k[d];"string"==typeof e&&0Math.abs(k)?a+("100% "+100*(1-Math.abs(k)/Math.abs(e))+"%"):a+(Math.abs(e)/Math.abs(k)*100+"% 100%")):0<=e&&0>k?(a+="0% 0%,",a=Math.abs(e)>Math.abs(k)?a+("100% "+Math.abs(-k)/Math.abs(e)*100+"%"):a+(Math.abs(e)/Math.abs(k)*100+"% 100%")):0>e&&0<=k?(a+="100% 100%,",a=Math.abs(e)> Math.abs(k)?a+("0% "+100*(1-Math.abs(k)/Math.abs(e))+"%"):a+(Math.abs(e)/Math.abs(k)*100+"% 100%")):(a+="100% 0%,",a=Math.abs(e)>Math.abs(k)?a+("0% "+Math.abs(-k)/Math.abs(e)*100+"%"):a+(Math.abs(e)/Math.abs(k)*100+"% 100%")),a+=", ");d+=b+")";c.push("-webkit-gradient"+(a+(g+")")));c.push("-o-linear-gradient"+d);c.push("-ms-linear-gradient"+d);c.push("-moz-linear-gradient"+d);c.push("-webkit-linear-gradient"+d);c.push("linear-gradient"+d)}else d="(","center"!=a.posn&&"center center"!=a.posn&&(d+= a.posn+", "),"circle"!=a.shape&&(d+=a.shape+", "),"farthest-corner"!=a.extent&&(d+=a.extent+", "),d+=b+")",a="(radial, center center, 10, center center, "+(g+")"),c.push("-webkit-gradient"+a),c.push("-o-radial-gradient"+d),c.push("-ms-radial-gradient"+d),c.push("-moz-radial-gradient"+d),c.push("-webkit-radial-gradient"+d),c.push("radial-gradient"+d)}return c}}})},"davinci/ui/widgets/FileFieldDialog":function(){define("dojo/_base/declare dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin davinci/Workbench davinci/ui/widgets/OpenFile dijit/form/Button davinci/model/Path davinci/lang/ui dijit/lang/_common dojo/text!./templates/FileFieldDialog.html dijit/form/TextBox xide/views/_PanelDialog xide/utils xide/types xfile/views/FileGrid xfile/FileActions".split(" "), function(p,n,m,h,g,f,b,e,k,d,c,a,q,w,r,B,y){return p("davinci.ui.widgets.FileFieldDialog",[n,m,h],{templateString:c,widgetsInTemplate:!0,_fileSelectionDialog:null,_showFileSelectionDialog:function(){var a=this;this.ctx=g.ctx;y.createFilePicker(this,"",function(c){var b=w.buildPath(c.mount,c.path,!1);a.ctx.getFileManager().getImageUrl(c,!0,{oriPath:b});a.textField.set("value",b);a._onChange()},k.selectFile,null,{mount:"workspace_user",selection:"."},null,B)},_setBaseLocationAttr:function(a){this._baseLocation= a},_setValueAttr:function(a){this.value!=a&&(this.value=a,this.textField.set("value",a))},_setDisabledAttr:function(a){this.textField.set("disabled",a);this.button.set("disabled",a);this.inherited(arguments)},_setIntermediateChangesAttr:function(a){this.textField.set("intermediateChanges",a);this.inherited(arguments)},_onChange:function(){var a=this.textField.get("value");this.value!=a&&(this.value=a,this.textField.set("value",this.value),this.onChange(a))},onChange:function(a){},_getValueAttr:function(){return this.textField.get("value")}})})}, "davinci/ui/widgets/OpenFile":function(){define("dojo/_base/declare dijit/_Templated dijit/_Widget davinci/library system/resource davinci/workbench/Preferences davinci/Runtime davinci/Workbench dijit/Menu dijit/MenuItem davinci/model/Path dijit/form/DropDownButton davinci/lang/ui dijit/lang/_common dijit/form/Button dijit/form/TextBox dijit/form/RadioButton dijit/layout/ContentPane dijit/Tree".split(" "),function(p,n,m,h,g,f,b,e,k,d,c,a,q,w){return p("davinci.ui.widgets.OpenFile",[m,n],{widgetsInTemplate:!0, fileDialogFileName:null,fileDialogParentFolder:null,postMixInProperties:function(){dojo.mixin(this,q);dojo.mixin(this,w);this.inherited(arguments)},postCreate:function(){this.inherited(arguments);this.fileTree.watch("selectedItem",dojo.hitch(this,this._updateFields));this._value||this._setValueAttr(this._getForcedRootAttr())},startup:function(){this.fileTree.startup()},_setValueAttr:function(a){a!=this._value&&(this._value=a,this.fileTree.set("selectedItems",[a]))},_getForcedRootAttr:function(){return this._forcedRoot|| g.findResource(e.getProject())},_setForcedRootAttr:function(a){this._forcedRoot=a},_updateFields:function(){var a=this.fileTree.get("selectedItems"),a=null!=a&&0g)?-1:1}return 0});if(m&&(m.start||m.count)){var e=f.length;f=f.slice(m.start||0,(m.start|| 0)+(m.count||Infinity));f.total=e}return f}switch(typeof n){default:throw Error("Can not query with a "+typeof n);case "object":case "undefined":var g=n;n=function(f){for(var b in g){var e=g[b];if(e&&e.test){if(!e.test(f[b],f))return!1}else if(e!=f[b])return!1}return!0};break;case "string":if(!this[n])throw Error("No filter function "+n+" was found in store");n=this[n];case "function":}h.matches=n;return h}})},"davinci/ve/widgets/Cascade":function(){define("dojo/_base/declare ../../workbench/WidgetLite ../../workbench/Preferences ../../Workbench ../../html/CSSModel ../../library ../../Theme ../../html/CSSRule ../States davinci/lang/ve/ve system/resource".split(" "), function(p,n,m,h,g,f,b,e,k,d,c){p=p("davinci.ve.widgets.Cascade",[n],{target:null,targetField:null,toggleClasses:null,_regex_combinators:/[\s\~\+\>]+/,_regex_not_pseudoclass:/(.*)\:not\((.*)\)(.*)/,_regex_pseudoelement:/(.*)(\:\:[^\:\.\#\[]*)(.*)/,_regex_id:/(.*)(\#[^\:\.\#\[]*)(.*)/,_regex_class:/(.*)(\.[^\:\.\#\[]*)(.*)/,_regex_attribute:/(.*)(\[[^\]]*\])(.*)/,_regex_pseudoclass:/(.*)(\:[^\:\.\#\[]*)(.*)/,_regex_univeral:/(.*)(\*[^\:\.\#\[]*)(.*)/,delegate:null,constructor:function(a,c){this.subscriptions= [];this.publishing={};this._radioGroupName="davinci_ve_widgets_Cascade"+davinci.ve.widgets.Cascade.__id++;this._handles=[];this._values=[];this.inherited(arguments)},buildRendering:function(){this.domNode=dojo.doc.createElement("div");this.container=dojo.doc.createElement("div");dojo.addClass(this.container,"showCascade");this.domNode.appendChild(this.container);this.topDiv=dojo.create("div",{"class":"cascadeTopDiv"},this.container);this.cascadeTableDiv=dojo.create("div",{"class":"cascadeTableDiv widget"}, this.container);dojo.removeClass(this.container,"showAllValues");dojo.isArray(this.target)||(this.target=[this.target]);dojo.addClass(this.domNode,"CascadeTop");this.inherited(arguments)},startup:function(){var a=dijit.byId(this.targetField);if(a)a._cascade=this,this._getFieldValue=function(){return a.get("value")},this._setFieldValue=function(c,b){a.set&&(this._value=c||"",this._loc=b,a._setBaseLocationAttr&&a.set("baseLocation",b&&b.getPath?b.getPath():null),a.set("value",this._value,!0))},dojo.connect(a, "onChange",this,"_onFieldChange"),dojo.connect(a,"onFocus",this,"_onFieldFocus"),dojo.connect(a,"onBlur",this,"_onFieldBlur");else{var c=dojo.byId(this.targetField);this._getFieldValue=function(){return dojo.attr(c,"value")};this._setFieldValue=function(a,b){this._value=a||"";this._loc=b;dojo.attr(c,"value",this._value)};dojo.connect(c,"onchange",this,"_onFieldChange",!0);dojo.connect(c,"onfocus",this,"_onFieldFocus",!0);dojo.connect(c,"onblur",this,"_onFieldBlur",!0)}this._value=this._getFieldValue(); this._started=!0},_canModifyRule:function(a){return a&&a.getCSSFile?(a=a.getCSSFile())?!c.findResource(a.url).readOnly():!0:!0},_onFieldChange:function(a){function c(){k&&n&&n[k]&&n[k].resolve()}function b(a){a._value=a._getFieldValue();a._valueArray=a._valueArrayNew;var c=a._valueArray&&dojo.isArray(a._valueArray)&&0this._values.length))if("(overrides)"==this._getFieldValue())this._setFieldValue&&this._setFieldValue("(overrides)",null);else if("number"==typeof this._targetValueIndex){var e=m.getPreferences("davinci.ve.editorPrefs",h.getProject());if(this._widget&&this.target&&0this.matchLevels[k]){this.matchLevels.splice(k, 0,c[e]);this.rules.splice(k,0,a[e]);break}0==this.rules.length&&(this.rules=a,this.matchLevels=c);return!0}return!1},matchLevels:[],rules:[]};this.visit(a);return c?{rules:a.rules,matchLevels:a.matchLevels}:a.rules},getRule:function(b){if(!b)return[];var c=h.parseSelectors(b);b={visit:function(a){return"CSSFile"==a.elementType?(a=a.getRule(c),this.rules=this.rules.concat(a||[]),!0):!1},rules:[]};this.visit(b);return b.rules},setText:function(b,c){this.visit({visit:function(a){"CSSImport"==a.elementType&& a.close()}});this.children=[];this._styleElem=null;var a=m.parse(b||"",this),e="";c||0!=a.errors.length||(e=this.getText(),this.children=[],a=m.parse(e,this));this.endOffset=a.endOffset;this.errors=a.errors;var k=this;c||this.visit({visit:function(a){"CSSImport"!=a.elementType||a.cssFile||(a.load(!0),dojo.connect(a.cssFile,"onChange",null,dojo.hitch(k,"onChange")))}});this.onChange()},hasStyleSheet:function(b){for(var c=this.find({elementType:"CSSImport"}),a=0;ab&&(a.startTagOffset+=c)}})},mapPositions:function(b){var c=this.getText();b=b.getText();c=c.indexOf(b); b=c+b.lastIndexOf("\x3e")+1;return{startOffset:c,endOffset:b}},reportPositions:function(){this.visit({visit:function(b){}})},evaluate:function(b){if("/"!==b.charAt(0))console.error("invalid XPath string");else{var c=this;b.substr(1).split("/").forEach(function(a){a=a.match(this._RE_XPATH);var b=a[1];a=a[2];var d;d=c.children.filter(function(a){return a.tag===b});!a&&1\"\'\/?]/);return"xml-name"}function d(a){return function(b,d){for(;!b.endOfLine();)if(b.next()== a){d(c);break}return"xml-attribute"}}function e(b,c){return function(d,e){for(;!d.endOfLine();){if(d.lookAhead(c,!0)){e(a);break}d.next()}return b}}function k(b,c){return function(d,e){for(var k=!1;!d.endOfLine();){if(d.lookAhead(c,!0)){k=!0;e(a);break}d.next()}if(!k&&d.endOfLine())d.next();else{for(;d.lookAheadRegex(/^[\ \t]/,!0););d.endOfLine()&&d.next()}return b}}return function(c,d){return b.tokenizer(c,d||a)}}();return{make:function(b){function c(a){for(var b=a.length-1;0<=b;b--)K.push(a[b])} function d(){c(arguments);Q=!0}function f(){c(arguments);Q=!1}function g(){E.style+=" xml-error"}function h(a){return function(b,c){c==a?d():(g(),d(arguments.callee))}}function m(b,c){var d=a.doNotIndent.hasOwnProperty(b)||O&&O.noIndent;O={prev:O,name:b,indent:P,startOfLine:c,noIndent:d}}function n(a){return function(b,c){var d=a;if(d&&d.noIndent)return c;if(e&&/$/.test(b)&&(O=O.prev)):W.hasOwnProperty(a)||g(),d())}function D(a,b){"xml-name"==a?(R=b.toLowerCase(),E.style="xml-tagname",d()):(R=null,f())}function I(a,b){"xml-name"==a&&(E.style="xml-tagname",O&&b.toLowerCase()==O.name?O=O.prev:g());d()}function H(b){return function(c,e){"/\x3e"==e||"\x3e"==e&&a.autoSelfClosers.hasOwnProperty(R)?d():"\x3e"==e?(m(R,b),d()):(g(),d(arguments.callee))}} function F(a){"xml-name"==a?(E.style="xml-attname",d(N,F)):f()}function N(a,b){"\x3d"==b?d(L):"\x3e"==b||"/\x3e"==b?f(H):f()}function L(a){"xml-attribute"==a?d(L):f()}var J=k(b),E,K=[p],M=0,P=0,R=null,O=null,Q,W={"xml-text":!0,"xml-entity":!0,"xml-comment":!0,"xml-processing":!0,"xml-doctype":!0,"php-block":!0};return{indentation:function(){return P},next:function(){E=J.next();"whitespace"==E.style&&0==M?P=E.value.length:M++;"\n"==E.content&&(P=M=0,E.indentation=n(O));if("whitespace"==E.style||"xml-comment"== E.type||"php-block"==E.type)return E;for(;;)if(Q=!1,K.pop()(E.style,E.content),Q)return E},copy:function(){var a=K.concat([]),b=J.state,c=O,d=this;return function(e){K=a.concat([]);M=P=0;O=c;J=k(e,b);return d}}}},electricChars:"/",configure:function(b){null!=b.useHTMLKludges&&(a=b.useHTMLKludges?d:c);b.alignCDATA&&(e=b.alignCDATA)}}}();return{parse:function(d,c){function a(a,b){C=new n;C.wasParsed=!0;C.startOffset=b;A[A.length-1].addChild(C,void 0,!0);C.value=a}function q(b){b.content!=b.value&&a(b.value.substring(b.content.length), b.offset+b.value.length)}function w(a,b){var c=a.split("\n"),d=c[c.length-1].length;b.children.length?(lastElement=b.children[b.children.length-1],lastElement._fmLine=c.length-1,lastElement._fmIndent=d):(b._fmChildLine=c.length-1,b._fmChildIndent=d)}function r(){if(null!=C&&!C.value.match(/\S/)){var a=A[A.length-1];a.children.pop();w(C.value,a)}C=null}function p(){var a=A[A.length-1];x.nextWhileMatches(/[\s\u00a0]/);var b=x.get();null!=C?(C.value+=b,r()):w(b,a);e.parse(x,a)}function y(a){for(u=z.next();a&& "whitespace"==u.style;)u=z.next();return u}var x=b.stringStream({next:function(){if(1==++this.count)return d;throw StopIteration;},count:0,text:d}),z=k.make(x),u,v=[],A=[];A.push(c);var C,G,D;try{do switch(u=z.next(),u.style){case "xml-punctuation":r();if("\x3c"==u.content){var I=new m;I.wasParsed=!0;I.startOffset=u.offset;A[A.length-1].addChild(I,void 0,!0);y(!0);for("xml-tagname"==u.style?I.tag=u.content:v.push("expecting tag name");"xml-attname"==(u=y(!0)).style;){var H=new h;H.wasParsed=!0;I.attributes.push(H); H.name=u.content;H.startOffset=u.offset;y(!0);if("\x3d"==u.content)if(u=z.next(),"xml-attribute"==u.style){var F=u.content;H.setValue(F.substring(1,F.length-1))}else v.push("expecting attribute value");else H.noValue=!0,H.setValue(!0);H.endOffset=u.offset-1;if(H.noValue&&"xml-attname"!=u.style)break}"xml-punctuation"!=u.style?v.push("expecting \x3e"):(I.startTagOffset=u.offset,"\x3e"==u.content?A.push(I):(I.noEndTag=!0,I=A[A.length-1]),q(u));"style"==I.tag&&p()}else if("\x3c/"==u.value){var N=I;u= z.next();"script"==I.tag&&(I.script=I.getElementText());A.pop();I=A[A.length-1];u=z.next();N.endOffset=u.offset;q(u)}D=null;break;case "xml-text":case "whitespace":case "xml-entity":G?G.value+=u.value:D?D.value+=u.value:C?C.value+=u.value:a(u.value,u.offset);D=null;break;case "xml-comment":r();var L=new g;L.wasParsed=!0;L.startOffset=u.offset;L.value=u.content.substring(4,u.content.length-3);L.endOffset=u.offset+u.content.length;A[A.length-1].addChild(L,void 0,!0);D=null;break;case "php-block":r(); var J=new f;J.wasParsed=!0;J.startOffset=u.offset;J.value=u.content;J.endOffset=u.offset+u.content.length;A[A.length-1].addChild(J,void 0,!0);D=J;break;case "xml-doctype":G||(r(),L=new g,L.wasParsed=!0,L.startOffset=u.offset,L.value=u.value.substring(2),A[A.length-1].addChild(L,void 0,!0),L.isProcessingInstruction=!0,u=z.next());var E=u.content.length-1;"\x3e"==u.content.charAt(u.content.length-1)?(L.endOffset=u.offset+u.content.length,L.value+=u.content.substring(0,E),q(u),G=void 0):(G=L,L.value+= u.content);D=null}while(1)}catch(K){}return{errors:v,endOffset:u?u.offset:0}}}})},"davinci/html/PHPBlock":function(){define(["dojo/_base/declare","davinci/html/HTMLItem"],function(p,n){return p("davinci.html.PHPBlock",n,{constructor:function(m){this.elementType="PHPBlock";this.value=m||""},getText:function(m){return m.excludeIgnoredContent?"":this.value}})})},"davinci/model/parser/Tokenizer":function(){define(["dojo/_base/declare","davinci/js/JSExpression"],function(p,n){return{stringStream:function(m){function h(){for(;f== g.length;){e+=g;g="";f=0;try{g=m.next()}catch(b){if(b!=StopIteration)throw b;return!1}}return!0}var g="",f=0,b=0,e="";return{peek:function(){return h()?g.charAt(f):null},next:function(){if(!h()){if(0*\/]/.test(k))return"css-select-op";if(/[;{}:\[\]]/.test(k))return"css-punctuation"; e.nextWhileMatches(/[\w\\\-_]/);return"css-identifier"}e.next();return"css-compare"}function b(c,d){for(var e=!1;!c.endOfLine();){var f=c.next();if(e&&"/"==f){d(a);break}e="*"==f}return"css-comment"}function c(b,d){for(var e=0;!b.endOfLine();){var f=b.next();if(2<=e&&"\x3e"==f){d(a);break}e="-"==f?e+1:0}return"css-comment"}function d(b){return function(c,d){for(var e=!1;!c.endOfLine();){var f=c.next();if(f==b&&!e)break;e=!e&&"\\"==f}e||d(a);return"css-string"}}return function(b,c){return e.tokenizer(b, c||a)}}();return{make:function(c,d){d=d||0;var e=b(c),f=!1,k=!1,g=!1,h={next:function(){var b=e.next(),c=b.style,h=b.content;"css-hash"==c&&(c=b.style=k?"css-colorcode":"css-identifier");"css-identifier"==c&&(k?b.style="css-value":f||g||(b.style="css-selector"));"\n"==h&&(b.indentation=a(f,k,d));"{"==h&&"@media"==g?g=!1:"{"==h?f=!0:"}"==h?f=k=g=!1:";"==h?k=g=!1:f&&"css-comment"!=c&&"whitespace"!=c?k=!0:f||"css-at"!=c||(g=h);return b},copy:function(){var a=f,c=k,d=e.state;return function(g){e=b(g, d);f=a;k=c;return h}}};return h},electricChars:"}"}}();c.parse=function(a,q){function w(a){D.push(a)}function r(){var a;v=u.next();for(var b=!1;"css-comment"==v.style||"whitespace"==v.style;){if("css-comment"==v.style||b)d||(d=new k),a=v.content,0===v.content.indexOf("/*")&&(a=a.substring(2),b=!0,d.addComment("block",void 0,void 0,"")),-1v.content.length;break;case "*":(A.element||A.cls)&&y();A.element="*";break;case "+":case "\x3e":G=v.content,y()}break;case "css-selector":"css-identifier"==v.type?((A.element||A.cls|| F)&&y(),A.element=v.content):"css-hash"==v.type&&((A.id||F)&&y(),A.id=v.content.substring(1));F=v.value.length>v.content.length;break;case "css-punctuation":if("{"==v.content)break a;else":"==v.content?(r(),":"==v.content?(r(),A.pseudoElement=v.content):(A.pseudoRule=v.content,F=!0)):"["==v.content&&(r(),A.attribute={name:v.content},r(),"\x3d"===v.content||"~\x3d"===v.content||"|\x3d"===v.content)&&(A.attribute.type=v.content,r(),A.attribute.value=v.content.substring(1,v.content.length-1),r())}r()}d&& (H.comment=d,d=null);for(A.endOffset=v.offset-1;"}"!=r().content;){var N=v.offset,L=v.content,J=!1;"css-hash"==v.type?(r(),"css-identifier"==v.type?L+=v.content:J=!0):"css-identifier"!=v.type&&("*"!=v.content?w("expecting identifier around "+A.getText()+"{ "+E.name+": "+propery.value):(r(),L+=v.content));var E=new g;E.startOffset=N;E.parent=H;d&&(E.comment=d,d=null);H.properties.push(E);H.addChild(E,void 0,!0);E.name=L;J||":"!=r().content&&w("expecting ':' "+A.getText()+"{ "+E.name+": "+propery.value); r();E.value=v.value;if("url"==E.value){for(;")"!=r().content;)E.value+=v.value;E.value+=v.value}for(;";"!=r().content&&"}"!=v.content;)E.value+=v.value;d&&(E.postComment=d,d=null);E.endOffset=v.offset-1;if("}"==v.content)break}d&&(E.postComment=d,d=null);H.endOffset=v.offset;break;case "css-at":var K=v.content.substring(1),M="import"==K?new b:new f;M.startOffset=v.offset;q&&q.addChild(M,void 0,!0);if("import"==K)J=M,r(),"url"==v.content&&(J.isURL=!0,r(),r()),J.url=v.content.substring(1,v.content.length- 1),J.isURL&&r(),r();else if(0<=K.indexOf("keyframes")){var P=J="",R=!1,O="\t\t";r();J=v.content;"."==J&&(r(),J+=v.content);r();M.value=v.content+"\n";r();if(0<=v.content.indexOf("from")||0<=v.content.indexOf("to")||0<=v.content.indexOf("%"))a:for(;;){M.value+="\t"+v.content+" ";r();for(M.value+=v.content+"\n";"}"!=r().content;){R&&(O="\t\t",R=!1);if(";"==v.content)P="\n",R=!0;else if(":"==v.content||")"==v.content)P=" ";M.value+=O+v.content+P;O=P=""}M.value+="\t"+v.content+"\n";r();if("}"==v.content)break a}else w("inside keyframes decl expecting from/to blocks or nn% blocks"); M.value+=v.content;M.name=K+" "+J}else for(M.name=K,M.value="";";"!=r().content;)M.value+=v.content;M.endOffset=v.offset}while(1)}catch(Q){d&&H&&(H.postComment=d,d=null)}return{errors:D,model:I}};return c})},"davinci/html/CSSSelector":function(){define(["require","dojo/_base/declare","davinci/html/CSSElement"],function(p,n,m){n=n("davinci.html.CSSSelector",m,{constructor:function(){this.elementType="CSSSelector"},matchesSelector:function(h){if(h.elementType==this.elementType&&this.id==h.id&&this.cls== h.cls&&this.element==h.element&&this.pseudoRule==h.pseudoRule)return!0},getText:function(h){h="";this.element&&(h+=this.element);this.id&&(h=h+"#"+this.id);this.cls&&(h=h+"."+this.cls);this.pseudoRule&&(h=h+":"+this.pseudoRule);this.pseudoElement&&(h=h+"::"+this.pseudoElement);this.attribute&&(h=h+"["+this.attribute.name,this.attribute.type&&(h=h+this.attribute.type+'"'+this.attribute.value+'"'),h+="]");return h},matches:function(h,g){var f=h[g||0],b=0,e=!1;if(this.id){if(this.id!=f.id)return-1;b+= 100;e=!0}if(this.element){if("*"!=this.element){if(this.element!=f.tagName&&this.element.toUpperCase()!=f.tagName)return-1;b+=1}e=!0}if(this.cls&&f.classes){f=f.classes;if(0<=this.cls.indexOf(".")){for(var e=this.cls.split("."),k=0;kh))return g;if(0==f&&0>b)return-1}},visit:function(m){if(!m.visit(this)){for(var h= 0;h=d[m]){f.splice(m,0,a);d.splice(m,0,g);h=!0;break}h||(f.splice(0,0,a),d.splice(0,0,g))}}else"CSSImport"==a.elementType&&a.cssFile&&a.cssFile.getMatchingRules(b,f,d)}return f},getRule:function(b){var f; if(!b)return[];b=g.parseSelectors(b);for(var d=0;db&&(e=f,b=c[k]);return e})}})})},"davinci/model/Comment":function(){define(["dojo/_base/declare","davinci/model/Model"],function(p,n){return p("davinci.model.Comment",n,{constructor:function(){this.elementType="Comment";this.nosemicolon=!0},addComment:function(m,h,g,f){null==this.comments&& (this.comments=[]);this.comments[this.comments.length]={commentType:m,start:h,stop:g,s:f}},appendComment:function(m){var h=this.comments[this.comments.length-1];h.s+=m;h.stop+=m.length},getText:function(m){m="";for(var h=0;h=b;e--)for(var f=b;f<=e;f++){var k=c.indexOf(a[f]),g=c.indexOf(a[f+1]);k>g&&(k=a[f+1],a[f+1]=a[f],a[f]=k)}b=d}return a},_updateWidgetHash:function(){this.widgetHash={};this.getAllWidgets().forEach(function(a){var b=a.id;b&&(this.widgetHash[b]=a)},this)}})})},"davinci/ve/_ContextMobile":function(){define(["require","dojo/_base/declare","../Theme","preview/silhouetteiframe","dojox/html/_base"], function(p,n,m,h){return n(null,{getMobileDevice:function(){var g=this.getDocumentElement().getChildElement("body");if(g){var f=g.getAttribute("data-maq-device"),b=g.getAttribute("data-maqetta-device");!f&&b&&(g.removeAttribute("data-maqetta-device"),g.setAttribute("data-maq-device",b),f=b,this.editor._visualChanged());return f}},setMobileDevice:function(g){this.getGlobal().require("dojo/_base/config").mblUserAgent=h.getMobileTheme(g+".svg");var f=this.getDocumentElement().getChildElement("body"); g&&"none"!=g?f.addAttribute("data-maq-device",g):f.removeAttribute("data-maq-device",g)},setMobileTheme:function(g){(this.getMobileDevice()||"none")!=g&&this.setMobileDevice(g);this.close();try{h.getMobileTheme(g+".svg"),this._configDojoxMobile()}catch(f){}},getMobileOrientation:function(){var g=this.getDocumentElement().getChildElement("body"),f=g.getAttribute("data-maq-orientation"),b=g.getAttribute("data-maqetta-device-orientation");!f&&b&&(g.removeAttribute("data-maqetta-device-orientation"), g.setAttribute("data-maq-orientation",b),f=b,this.editor._visualChanged());return f},setMobileOrientation:function(g){var f=this.getDocumentElement().getChildElement("body");g?f.setAttribute("data-maq-orientation",g):f.removeAttribute("data-maq-orientation")},_mobileMetaElement:{name:"viewport",content:"width\x3ddevice-width, initial-scale\x3d1.0, user-scalable\x3dno"},setMobileMeta:function(g){"none"===g?this._removeHeadElement("meta",this._mobileMetaElement):this._addHeadElement("meta",this._mobileMetaElement)}, _configDojoxMobile:function(g){try{var f=this.getGlobal().require,b=f("dojox/mobile"),e=f("dojox/mobile/deviceTheme"),k=this.getGlobal().dojo.config,d=this._getDojoJsElem().getAttribute("data-dojo-config"),c=k.mblUserAgent||"none",a,h,n,d=d?p.eval("({ "+d+" })","data-dojo-config"):{};a=d.themeMap;h=d.mblThemeFiles;n=d.mblLoadCompatPattern;delete this.themeCssFiles;delete this.cssFiles;a||(a=m.getDojoxMobileThemeMap(this,dojo.clone(m.dojoMobileDefault)),h=[],m.getThemeLocation().toString().replace(/\//g, "\\/"),n=RegExp(""));g=!1;m.themeMapsEqual(e.themeMap,a)||(g=!1,e.themeMap=a);h?k.mblThemeFiles=h:delete k.mblThemeFiles;n?(k.mblLoadCompatPattern=n,b.loadCompatPattern=n):(delete k.mblLoadCompatPattern,b.loadCompatPattern=/\/mobile\/themes\/.*\.css$/);if(this._selection)this.onSelectionChange(this._selection);g||e.loadDeviceTheme(c)}catch(r){}}})})},"davinci/ve/_ContextTheme":function(){define("dojo/_base/declare ../Theme ../model/Path ../Workbench ../library ./metadata dojox/html/_base".split(" "), function(p,n,m,h,g,f){return p(null,{getTheme:function(){if(!this.theme){var b=f.loadThemeMeta(this._srcDocument);b&&(this._themeUrl=b.themeUrl,this._themeMetaCache=b.themeMetaCache,this.theme=b.theme,this.theme.helper=n.getHelper(this.theme),this.theme.helper&&this.theme.helper.then&&this.theme.helper.then(function(b){b.helper&&(this.theme.helper=b.helper)}.bind(this)))}return this.theme},getThemeMeta:function(){this._themeMetaCache||this.getTheme();return this._themeMetaCache},themeChanged:function(){var b= !0,e=this.getModel();this._themeUrl&&e.find({elementType:"CSSImport",url:this._themeUrl},!0)&&(b=!1);b&&(this._themeMetaCache=this.theme=null)},loadTheme:function(b){var e=this.getModel(),f="claro";b&&b.themeSet?f=b.themeSet.desktopTheme:b&&b.theme&&(f="deviceSpecific"==b.theme?"claro":b.theme);b=e.find({elementType:"CSSImport"});var d={},c;g.getThemes(h.getProject()).forEach(function(a){a.name==f&&(c=a);a.files&&a.files.forEach(function(b){d[b]=a})});if(null==c)return console.error("couldnt find default theme, abort!!"), !1;if(null==c.getFile)return console.error("default theme in invalid state, abort!!"),!1;if(b.some(function(a){for(var b in d)if(-1=Math.abs(a.pageX-this._mouseDownInfo.pageX)&&10>=Math.abs(a.pageY-this._mouseDownInfo.pageY)&&750>=d-this._mouseDownInfo.dateValue&&(this._context.select(this._mouseDownInfo.eventTargetWidget?this._mouseDownInfo.eventTargetWidget:this._mouseDownInfo.widget),c=!1),this._mouseDownInfo=null);if(this._lastMouseUp&&10>=Math.abs(a.pageX-this._lastMouseUp.pageX)&& 10>=Math.abs(a.pageY-this._lastMouseUp.pageY)&&750>=d-this._lastMouseUp.dateValue)this.onDblClick(a);this._lastMouseUp={pageX:a.pageX,pageY:a.pageY,dateValue:d};b.getScrollOffset();this._areaSelect&&c&&this._areaSelectSelectWidgets(a.pageX,a.pageY);this._areaSelectClear()}},onDblClick:function(a){if(!this._context.isFocusNode(a.target)){for(var b="selectToolDragDiv"===a.target.getAttribute("class")?this._context.getSelection()[0]:this._getTarget()||f.getEnclosingWidget(a.target);b&&!b.getContext();)b= f.getEnclosingWidget(b.domNode.parentNode);if(b){var c=this._context.getSelection(),d=dojo.isMac?a.ctrlKey:a.metaKey;0<=dojo.indexOf(c,b)?d&&2!==a.button?this._context.deselect(b):2!==a.button&&this._context.select(b,null,!0):this._context.select(b,d,!0)}}},onMouseMove:function(a){this._context.isFocusNode(a.target)||(this._setTarget(a.target,a),this._areaSelect&&(1===a.which?this._areaSelectUpdate(a.pageX,a.pageY):this._areaSelectClear()))},onMouseOver:function(a){try{dojo.hasClass(a.target,"editFeedback")|| dojo.hasClass(a.target,"selectToolDragDiv")||(this._onMouseOverEventTargetXPath=k.getXPath(a.target)),this._setTarget(a.target,a)}catch(b){}},onMouseOut:function(a){try{this._setTarget(a.relatedTarget,a)}catch(b){}},onExtentChange:function(c){var d=c.index,e=c.newBox,k=c.copy,g=c.oldBoxes,h=c.applyToWhichStates,m,p=this._context,y=p._chooseParent,z=p.getSelection(),J=[];if(!(z.length<=d)){var E=z[d],K=void 0;if("w"in e||"h"in e){var d=b.queryDescriptor(E.type,"resizable"),M,P;c=E.domNode;var R=c.ownerDocument.defaultView.getComputedStyle(c), y=u.getMarginExtents(c,R),O=n.getBorderExtents(c,R);c=n.getPadExtents(c,R);"number"==typeof e.w&&(e.w-=y.w+O.w+c.w);"number"==typeof e.h&&(e.h-=y.h+O.h+c.h);switch(d){case "width":M=e.w;break;case "height":P=e.h;case "both":M=e.w,P=e.h}d=new B(E,M,P,h);K||(K=new a);K.add(d);d=dojo.style(E.domNode,"position");"l"in e&&"t"in e&&"absolute"==d&&(M=e.l,e=e.t,e=new r(E,M,e,null,null,h),K.add(e))}else if(c=E.getStyleNode(),"absolute"!=dojo.style(c,"position")){var Q=y.getProposedParentWidget();if(Q){K|| (K=new a);var W=null;c=p.reorderPreserveSiblingOrder(z);dojo.forEach(c,function(a){Q.refChild&&(null!==W?m=W+1:(m=Q.parent.getChildren().indexOf(Q.refChild),0<=m?Q.refAfter&&m++:m=null),W=m);if(k){var b,c=a.getData({identify:!1});c.context=p;dojo.withDoc(p.getDocument(),function(){b=f.createWidget(c)},this);b&&(K.add(new q(b,Q.parent,m)),x.prototype.checkAddToCurrentState(K,b),J.push(b))}else K.add(new w(a,Q.parent,m)),J.push(a)},this);p.select(null)}else console.error("SelectTool: ppw is null")}else{var X= [],Y=[];dojo.forEach(z,function(a,b){X[b]=z[b].getParent();Y[b]=X[b].indexOf(a)});M=e.l;e=e.t;K||(K=new a);var U=(Q=y.getProposedParentWidget())?Q.parent:null;c=E.getParent();P=void 0;U&&U!=c&&(P=U);var Z=M-g[0].l,aa=e-g[0].t;k&&(c=p.reorderPreserveSiblingOrder(z),dojo.forEach(c,function(a){var b=a.getParent();if(b){for(var c=b.getChildren(),d=0;df)console.error("SelectTool.js onMove error. move widget is not selected"); else{this._selectionHideFocus();var k=!1,g=d.getProposedParentWidget();if(g&&g.parent&&g.parent.domNode){var n=g.parent.domNode;if("BODY"==g.parent.domNode.tagName)k=!0;else for(g=c.target;g&&"BODY"!=g.tagName;){if(g==n){k=!0;break}g=g.parentNode}}k&&c.target==this._moverLastEventTarget||d.setProposedParentWidget(null);this._moverLastEventTarget=c.target;this._moverBox=b;this._moverDragDiv.style.left=b.l+"px";this._moverDragDiv.style.top=b.t+"px";if(this._moverAbsolute)for(k=b.l-this._moverStartLocations[f].l, b=b.t-this._moverStartLocations[f].t,f=Math.abs(k),n=Math.abs(b),this._shiftKey&&(f>=this.CONSTRAIN_MIN_DIST||n>=this.CONSTRAIN_MIN_DIST)&&(f>n?b=0:k=0),f=0;fe&&(c=!1)):c=!1;if(c){c=void 0;if(this._sKey)for(var g=z.getStatesListCurrent(this._moverWidget.domNode),h=0;h=this.CONSTRAIN_MIN_DIST||h>=this.CONSTRAIN_MIN_DIST)&&(m>h?f.t=this._moverStartLocations[e].t:f.l=this._moverStartLocations[e].l);f.t-=g.y;f.l-=g.x;this.onExtentChange({index:e,newBox:f,oldBoxes:this._moverStartLocations, copy:this._altKey,applyToWhichStates:c})}this._moverDragDiv&&((e=this._moverDragDiv.parentNode)&&e.removeChild(this._moverDragDiv),this._moverDragDiv=null);this._mover=this._moverBox=this._moverWidget=this._moverWidgets=this._moverLastEventTarget=null;this._updateMoveCursor();a.dragMoveCleanup();b.parentListDivDelete();this._selectionShowFocus();b=k.toCssPath(this._onMouseOverEventTargetXPath);a=a.getDocument();(a=b?a.querySelector(b):null)&&this._setTarget(a)},_getPageLeftTop:function(a){if(a){var b= a.offsetLeft,c=a.offsetTop;for(a=a.offsetParent;a&&"BODY"!=a.tagName;)b+=a.offsetLeft,c+=a.offsetTop,a=a.offsetParent;return{l:b,t:c}}return{l:0,t:0}},_areaSelectInit:function(a,b){this._areaSelect={x:a,y:b,attached:!1};this._areaSelectDiv=dojo.create("div",{className:"areaSelectDiv",style:"display:none"})},_areaSelectUpdate:function(a,b){if(this._areaSelect&&this._areaSelectDiv){var c=this._getBounds(this._areaSelect.x,this._areaSelect.y,a,b),d=this._areaSelectDiv.style;d.display="block";d.left= c.l+"px";d.top=c.t+"px";d.width=c.w+"px";d.height=c.h+"px";this._areaSelect.attached||(this._context.rootNode.appendChild(this._areaSelectDiv),this._areaSelect.attached=!0)}},_areaSelectClear:function(){this._areaSelect=null;if(this._areaSelectDiv){var a=this._areaSelectDiv.parentNode;a&&a.removeChild(this._areaSelectDiv);this._areaSelectDiv=null}},_areaSelectSelectWidgets:function(a,b){if(this._areaSelect){var c=this._getBounds(this._areaSelect.x,this._areaSelect.y,a,b),d=c.l,e=c.t,f=c.w,c=c.h,k= this._context;k.deselect();for(var k=k.getTopWidgets(),g=0;g=b&&f.t>=c&&f.l+f.w<=b+d&&f.t+f.h<=c+e)this._context.select(a,!0);else for(a=a.getChildren(),f=0;f=f.l&&a<=f.l+f.w&&b>=f.t&&b<=f.t+f.h)return d[e]}return null},_selectionHideFocus:function(){for(var a=this._context,b=a.getSelection(),c=0;cD+1E3)&&d.call(this,a)});return{remove:function(){e.remove();k.remove()}}}:function(b,c){return f(b,a,c)}}function a(a){do if(a.dojoClick)return a.dojoClick;while(a=a.parentNode)}function q(b,c,e){if(x=!b.target.disabled&&a(b.target))z=b.target,u=b.touches?b.touches[0].pageX:b.clientX,v=b.touches?b.touches[0].pageY:b.clientY,A=("object"== typeof x?x.x:"number"==typeof x?x:0)||4,C=("object"==typeof x?x.y:"number"==typeof x?x:0)||4,y||(b=function(a){d.doc.addEventListener(a,function(b){b._dojo_click||!((new Date).getTime()<=G+1E3)||"INPUT"==b.target.tagName&&h.contains(b.target,"dijitOffScreen")||(b.stopPropagation(),b.stopImmediatePropagation&&b.stopImmediatePropagation(),"click"!=a||"INPUT"==b.target.tagName&&"radio"!=b.target.type&&"checkbox"!=b.target.type||"TEXTAREA"==b.target.tagName||"AUDIO"==b.target.tagName||"VIDEO"==b.target.tagName|| b.preventDefault())},!0)},y=!0,d.doc.addEventListener(c,function(a){x=x&&a.target==z&&Math.abs((a.touches?a.touches[0].pageX:a.clientX)-u)<=A&&Math.abs((a.touches?a.touches[0].pageY:a.clientY)-v)<=C},!0),d.doc.addEventListener(e,function(a){if(x){G=(new Date).getTime();var b=a.target;"LABEL"===b.tagName&&(b=m.byId(b.getAttribute("for"))||b);setTimeout(function(){f.emit(b,"click",{bubbles:!0,cancelable:!0,_dojo_click:!0})})}},!0),b("click"),b("mousedown"),b("mouseup"))}var w=b("touch"),r=5>b("ios"), B=navigator.msPointerEnabled,y,x,z,u,v,A,C,G,D,I;w&&(B?k(function(){d.doc.addEventListener("MSPointerDown",function(a){q(a,"MSPointerMove","MSPointerUp")},!0)}):k(function(){function a(c){var d=g.delegate(c,{bubbles:!0});6<=b("ios")&&(d.touches=c.touches,d.altKey=c.altKey,d.changedTouches=c.changedTouches,d.ctrlKey=c.ctrlKey,d.metaKey=c.metaKey,d.shiftKey=c.shiftKey,d.targetTouches=c.targetTouches);return d}I=d.body();d.doc.addEventListener("touchstart",function(a){D=(new Date).getTime();var b=I; I=a.target;f.emit(b,"dojotouchout",{relatedTarget:I,bubbles:!0});f.emit(I,"dojotouchover",{relatedTarget:b,bubbles:!0});q(a,"touchmove","touchend")},!0);f(d.doc,"touchmove",function(b){D=(new Date).getTime();var c=d.doc.elementFromPoint(b.pageX-(r?0:d.global.pageXOffset),b.pageY-(r?0:d.global.pageYOffset));c&&(I!==c&&(f.emit(I,"dojotouchout",{relatedTarget:c,bubbles:!0}),f.emit(c,"dojotouchover",{relatedTarget:I,bubbles:!0}),I=c),f.emit(c,"dojotouchmove",a(b))||b.preventDefault())});f(d.doc,"touchend", function(b){D=(new Date).getTime();var c=d.doc.elementFromPoint(b.pageX-(r?0:d.global.pageXOffset),b.pageY-(r?0:d.global.pageYOffset))||d.body();f.emit(c,"dojotouchend",a(b))})}));n={press:c("mousedown","touchstart","MSPointerDown"),move:c("mousemove","dojotouchmove","MSPointerMove"),release:c("mouseup","dojotouchend","MSPointerUp"),cancel:c(e.leave,"touchcancel",w?"MSPointerCancel":null),over:c("mouseover","dojotouchover","MSPointerOver"),out:c("mouseout","dojotouchout","MSPointerOut"),enter:e._eventHandler(c("mouseover", "dojotouchover","MSPointerOver")),leave:e._eventHandler(c("mouseout","dojotouchout","MSPointerOut"))};return p.touch=n})},"dojo/dnd/common":function(){define(["../sniff","../_base/kernel","../_base/lang","../dom"],function(p,n,m,h){var g=m.getObject("dojo.dnd",!0);g.getCopyKeyState=function(f){return f[p("mac")?"metaKey":"ctrlKey"]};g._uniqueId=0;g.getUniqueId=function(){var f;do f=n._scopeName+"Unique"+ ++g._uniqueId;while(h.byId(f));return f};g._empty={};g.isFormElement=function(f){f=f.target;3== f.nodeType&&(f=f.parentNode);return 0<=" a button textarea input select option ".indexOf(" "+f.tagName.toLowerCase()+" ")};return g})},"dojo/dnd/autoscroll":function(){define("../_base/lang ../sniff ../_base/window ../dom-geometry ../dom-style ../window".split(" "),function(p,n,m,h,g,f){var b={};p.setObject("dojo.dnd.autoscroll",b);b.getViewport=f.getBox;b.V_TRIGGER_AUTOSCROLL=32;b.H_TRIGGER_AUTOSCROLL=32;b.V_AUTOSCROLL_VALUE=16;b.H_AUTOSCROLL_VALUE=16;var e,k=m.doc,d=Infinity,c=Infinity;b.autoScrollStart= function(a){k=a;e=f.getBox(k);a=m.body(k).parentNode;d=Math.max(a.scrollHeight-e.h,0);c=Math.max(a.scrollWidth-e.w,0)};b.autoScroll=function(a){var g=e||f.getBox(k),h=m.body(k).parentNode,n=0,p=0;a.clientXg.w-b.H_TRIGGER_AUTOSCROLL&&(n=Math.min(b.H_AUTOSCROLL_VALUE,c-h.scrollLeft));a.clientYg.h-b.V_TRIGGER_AUTOSCROLL&&(p=Math.min(b.V_AUTOSCROLL_VALUE,d-h.scrollTop));window.scrollBy(n, p)};b._validNodes={div:1,p:1,td:1};b._validOverflow={auto:1,scroll:1};b.autoScrollNodes=function(a){for(var c,d,e,f,k,p=0,z=0,u=a.target;u;){if(1==u.nodeType&&u.tagName.toLowerCase()in b._validNodes){e=g.getComputedStyle(u);k=e.overflowX.toLowerCase()in b._validOverflow;f=e.overflowY.toLowerCase()in b._validOverflow;if(k||f)c=h.getContentBox(u,e),d=h.position(u,!0);if(k){e=Math.min(b.H_TRIGGER_AUTOSCROLL,c.w/2);k=a.pageX-d.x;if(n("webkit")||n("opera"))k+=m.body().scrollLeft;p=0;0c.w-e&&(p=e),u.scrollLeft+=p)}if(f){f=Math.min(b.V_TRIGGER_AUTOSCROLL,c.h/2);e=a.pageY-d.y;if(n("webkit")||n("opera"))e+=m.body().scrollTop;z=0;0c.h-f&&(z=f),u.scrollTop+=z)}if(p||z)return}try{u=u.parentNode}catch(v){u=null}}b.autoScroll(a)};return b})},"davinci/ve/Snap":function(){define(["davinci/ve/utils/GeomUtils"],function(p){dojo.getObject("davinci.ve.Snap",!0);return davinci.ve.Snap={updateSnapLinesBeforeTraversal:function(n,m){n._snapX=null;n._snapY=null;if(n._lastSnapBox&& n._lastSnapBox.l==m.l&&n._lastSnapBox.t==m.t&&n._lastSnapBox.w==m.w&&n._lastSnapBox.h==m.h)return!1;snapBox={l:m.l,t:m.t,w:m.w,h:m.h,c:m.l+m.w/2,r:m.l+m.w,m:m.t+m.h/2,b:m.t+m.h};n._lastSnapBox=snapBox;return!0},findSnapOpportunities:function(n,m,h,g,f){function b(b,c,d,e){eb;b++){var c=dojo.create("div",{"class":"editFocusFrame"},this._stdChrome);this._frames.push(c);this.connect(c,"onmousedown","onMouseDown")}dojo.addClass(this._frames[0],"editFocusFrameLEFT");dojo.addClass(this._frames[1],"editFocusFrameRIGHT");dojo.addClass(this._frames[2],"editFocusFrameTOP");dojo.addClass(this._frames[3],"editFocusFrameBOTTOM");this._nobs=[];for(b=0;8>b;b++)c=dojo.create("div",{"class":"editFocusNob"},this._stdChrome), this._nobs.push(c),this.connect(c,"onmousedown","onMouseDown");this._frameIndex=this._nobIndex=-1;this._custom=dojo.create("div",{"class":"editFocusCustom"},this.domNode)},resize:function(b,c){c&&(this._selectedWidget=c);this._moverCurrent=dojo.mixin({},b);this._moverCurrentConstrained=dojo.mixin({},this._moverCurrent);this._updateFocusChrome(this._moverCurrent,!0);this._contexDiv&&(this._contexDiv.style.left=b.w+10+"px",this._updateSubwidgetList());this._box=b},getBounds:function(){return this._moverCurrent}, show:function(d,c){var a=c&&c.inline;if(d){this._custom.innerHTML="";var e=b.queryDescriptor(d.type,"showStandardSelectionChrome");this._stdChrome.style.display=!1===e?"none":"block";this.domNode.style.display="block";this._selectedWidget=d;var e=d.getHelper(),f=!0;if(e&&e.onShowSelection)e.onShowSelection({widget:d,customDiv:this._custom});a&&(this.showInline(d),f=!1);f&&delete this._inline}},showInline:function(d){this._selectedWidget=d;var c=this._context,a=this;b.getSmartInput(d.type).then(function(b){if(b)if(a._inline= b,b.useParent){if(b=d.getParent())c.deselect(d),c.select(b),c.getFocus(b).showInline(b)}else b.show&&b.show(d.id)})},inlineEditActive:function(){return this._inline&&this._inline.inlineEditActive?this._inline.inlineEditActive():!1},hide:function(b){var c=(b=this._selectedWidget)?b.getHelper():void 0;if(c&&c.onHideSelection)c.onHideSelection({widget:b,customDiv:this._custom});this.domNode.style.display="none";this._displayedWidget=this._selectedWidget=null;this._inline&&(this._inline.hide(),delete this._inline)}, allow:function(b){if(b){this._op=b;var c={},a=this._selectedWidget.getHelper();a&&a.resizeAllowWhich?(a.resizeAllowWhich(this._selectedWidget,c),this._resizeLeft=c.resizeLeft,this._resizeRight=c.resizeRight,this._resizeTop=c.resizeTop,this._resizeBottom=c.resizeBottom):(this._resizeLeft=this._resizeRight=b.resizeWidth,this._resizeTop=this._resizeBottom=b.resizeHeight);c.left=!this._resizeLeft||this._resizeTop||this._resizeBottom?"none":"block";c.right=!this._resizeRight||this._resizeTop||this._resizeBottom? "none":"block";c.top=!this._resizeTop||this._resizeLeft||this._resizeRight?"none":"block";c.bottom=!this._resizeBottom||this._resizeLeft||this._resizeRight?"none":"block";c.left_top=this._resizeLeft&&this._resizeTop?"block":"none";c.left_bottom=this._resizeLeft&&this._resizeBottom?"block":"none";c.right_top=this._resizeRight&&this._resizeTop?"block":"none";c.right_bottom=this._resizeRight&&this._resizeBottom?"block":"none";this._nobs[0].style.display=c.left;this._nobs[1].style.display=c.right;this._nobs[2].style.display= c.top;this._nobs[3].style.display=c.bottom;this._nobs[4].style.display=c.left_top;this._nobs[5].style.display=c.left_bottom;this._nobs[6].style.display=c.right_top;this._nobs[7].style.display=c.right_bottom;this._nobs[0].style.cursor=this._frames[0].style.cursor=this._resizeLeft?"w-resize":"auto";this._nobs[1].style.cursor=this._frames[1].style.cursor=this._resizeRight?"e-resize":"auto";this._nobs[2].style.cursor=this._frames[2].style.cursor=this._resizeTop?"n-resize":"auto";this._nobs[3].style.cursor= this._frames[3].style.cursor=this._resizeBottom?"s-resize":"auto";this._nobs[4].style.cursor="none"!=c.left_top?"nw-resize":"auto";this._nobs[5].style.cursor="none"!=c.left_bottom?"sw-resize":"auto";this._nobs[6].style.cursor="none"!=c.right_top?"ne-resize":"auto";this._nobs[7].style.cursor="none"!=c.right_bottom?"se-resize":"auto"}},_updateFocusChrome:function(b,c){var a,e,f,g,h=this.nobSize+1,m=this.frameSize+1,n=dojo.byId("focusContainer");if(n){var n=k.getBorderBoxPageCoords(n),p=this._context.getParentIframe(), u=k.getBorderBoxPageCoords(p);b.l+=u.l;b.t+=u.t;if(p)if(p.contentDocument)if(p.contentDocument.body){p=p.contentDocument.body;b.l-=k.getScrollLeft(p);b.t-=k.getScrollTop(p);this.domNode.style.left=b.l-n.l+"px";this.domNode.style.top=b.t-n.t+"px";var p=n=-11,u=b.w,v=b.h,A=b.w,C=b.h,G=-6,D=-6,I=b.w,H=b.h,F=b.w+4+4,N=b.h+4+4,L=this.domNode&&this.domNode.ownerDocument,J=L&&L.body;this._frames[0].style.left=this._frames[2].style.left=this._frames[3].style.left=G+"px";this._frames[0].style.top=this._frames[2].style.top= this._frames[1].style.top=D+"px";this._frames[0].style.height=N+"px";this._frames[1].style.height=N+"px";this._frames[1].style.left=I+"px";this._frames[2].style.width=F+"px";this._frames[3].style.top=H+"px";this._frames[3].style.width=F+"px";m=Math.round(A/2-this.nobSize/2);h=Math.round(C/2-this.nobSize/2);this._nobs[0].style.left=this._nobs[4].style.left=this._nobs[5].style.left=n+"px";this._nobs[2].style.top=this._nobs[4].style.top=this._nobs[6].style.top=p+"px";this._nobs[0].style.top=h+"px";this._nobs[1].style.left= u+"px";this._nobs[1].style.top=h+"px";this._nobs[2].style.left=m+"px";this._nobs[3].style.left=m+"px";this._nobs[3].style.top=v+"px";this._nobs[5].style.top=v+"px";this._nobs[6].style.left=u+"px";this._nobs[7].style.left=u+"px";this._nobs[7].style.top=v+"px"}else console.error("have no body");else console.error("have no contentDocument");else console.error("have no parent iframe")}},onMouseDown:function(b){this._removeKeyHandlers();if(this._selectedWidget&&this._selectedWidget.domNode&&2!==b.button&& !b.ctrlKey&&"davinci.ve.tools.SelectTool"==this._context._activeTool.declaredClass){this._shiftKey=b.shiftKey;this._sKey=!1;this._nobIndex=dojo.indexOf(this._nobs,b.target);this._frameIndex=dojo.indexOf(this._frames,b.target);var c=b.pageX-400,a=b.pageY-400,e=null,f=this._selectedWidget.getHelper(),e=f&&f.getMarginBoxPageCoords?f.getMarginBoxPageCoords(this._selectedWidget):k.getMarginBoxPageCoords(this._selectedWidget.domNode),f=k.getBorderBoxPageCoords(this._context.getParentIframe());this._moverStart= {moverLeft:c,moverTop:a,l:e.l+f.l,t:e.t+f.t,w:e.w,h:e.h};e=document.body;this._moverCurrent=dojo.mixin({},this._moverStart);this._moverDragDiv=dojo.create("div",{className:"focusDragDiv",style:"position:absolute;left:"+c+"px;top:"+a+"px;width:800px;height:800px"},e);this._mover=new g(this._moverDragDiv,b,this);dojo.stopEvent(b);this._mouseDownInfo={widget:this._selectedWidget,pageX:b.pageX+f.l,pageY:b.pageY+f.t,dateValue:Date.now()};this._moverMouseDownEvent=b;this._moverMouseUpEvent=null;this._moverMouseUpHandler= dojo.connect(this._moverDragDiv,"onmouseup",dojo.hitch(this,function(a){this.onMouseUp(a)}));b=this._context.getDocument();(c=document.getElementById("maqetta_project_select"))&&c.focus();b.defaultView.focus();this._keyDownHandler=dojo.connect(b,"onkeydown",dojo.hitch(this,function(a){this.onKeyDown(a)}));this._keyUpHandler=dojo.connect(b,"onkeyup",dojo.hitch(this,function(a){this.onKeyUp(a)}))}},onMove:function(b,c,a){this._mouseDownInfo=null;this._moverDragDiv&&(this._moverDragDiv.style.left=c.l+ "px",this._moverDragDiv.style.top=c.t+"px");if(!(0===this._frameIndex&&!this._resizeLeft||1===this._frameIndex&&!this._resizeRight||2===this._frameIndex&&!this._resizeTop||3===this._frameIndex&&!this._resizeBottom)){b=this._moverStart;a=c.l-b.moverLeft;c=c.t-b.moverTop;if(0===this._frameIndex||4===this._nobIndex||0===this._nobIndex||5===this._nobIndex)this._moverCurrent.l=b.l+a,this._moverCurrent.w=b.w-a;else if(1===this._frameIndex||6===this._nobIndex||1===this._nobIndex||7===this._nobIndex)this._moverCurrent.w= b.w+a;if(2===this._frameIndex||4===this._nobIndex||2===this._nobIndex||6===this._nobIndex)this._moverCurrent.t=b.t+c,this._moverCurrent.h=b.h-c;else if(3===this._frameIndex||5===this._nobIndex||3===this._nobIndex||7===this._nobIndex)this._moverCurrent.h=b.h+c;c=this._moverCurrent.w;b=this._moverCurrent.h;a=!1;if(this._selectedWidget&&"IMG"===this._selectedWidget.domNode.nodeName){var e=this._selectedWidget.domNode,f=e.naturalWidth,e=e.naturalHeight;"number"==typeof e&&0b?b=c:c=b);this._moverCurrentConstrained={l:this._moverCurrent.l,t:this._moverCurrent.t,w:c,h:b};if(0===this._frameIndex||0===this._nobIndex||1===this._frameIndex||1===this._nobIndex)this._moverCurrentConstrained.t-=(this._moverCurrentConstrained.h-this._moverCurrent.h)/2;if(2===this._frameIndex|| 2===this._nobIndex||3===this._frameIndex||3===this._nobIndex)this._moverCurrentConstrained.l-=(this._moverCurrentConstrained.w-this._moverCurrent.w)/2;c=dojo.mixin({},this._shiftKey?this._moverCurrentConstrained:this._moverCurrent);b=k.getBorderBoxPageCoords(this._context.getParentIframe());c.l-=b.l;c.t-=b.t;this._updateFocusChrome(c,!1)}},onFirstMove:function(b){},onMoveStart:function(b){},_moverDoneCleanup:function(){var b=this._context,c=b._chooseParent;this._lastEventTarget=null;this._removeKeyHandlers(); b.dragMoveCleanup();c.parentListDivDelete();this._mover=void 0;this._frameIndex=this._nobIndex=-1},onMoveStop:function(b){if(this._moverDragDiv&&((b=this._moverDragDiv.parentNode)&&b.removeChild(this._moverDragDiv),this._moverDragDiv=null,this._moverCurrent.l!=this._moverStart.l||this._moverCurrent.t!=this._moverStart.t||this._moverCurrent.w!=this._moverStart.w||this._moverCurrent.h!=this._moverStart.h)){b=void 0;if(this._selectedWidget&&this._selectedWidget.domNode)if(this._sKey)for(var c=e.getStatesListCurrent(this._selectedWidget.domNode), a=0;a=Math.abs(b.pageX-this._lastMouseUp.pageX)&&10>=Math.abs(b.pageY-this._lastMouseUp.pageY)&&750>=c-this._lastMouseUp.dateValue)this.onDblClick(b);this._lastMouseUp={pageX:b.pageX,pageY:b.pageY,dateValue:c};dojo.stopEvent(b)}}, onMouseUp:function(b){this._moverMouseUpEvent=b},onDblClick:function(b){this.showInline(this._selectedWidget);b.stopPropagation()},onKeyDown:function(b){b&&this._moverDragDiv?(dojo.stopEvent(b),b.keyCode==dojo.keys.SHIFT?(this._shiftKey=!0,this._updateFocusChrome(this._shiftKey?this._moverCurrentConstrained:this._moverCurrent,!1)):83==b.keyCode&&(this._sKey=!0)):this._removeKeyHandlers()},onKeyUp:function(b){b&&this._moverDragDiv?(dojo.stopEvent(b),b.keyCode==dojo.keys.SHIFT?(this._shiftKey=!1,this._updateFocusChrome(this._shiftKey? this._moverCurrentConstrained:this._moverCurrent,!1)):83==b.keyCode&&(this._sKey=!1)):this._removeKeyHandlers()},_removeKeyHandlers:function(){this._keyDownHandler&&(dojo.disconnect(this._keyDownHandler),this._keyDownHandler=null);this._keyUpHandler&&(dojo.disconnect(this._keyUpHandler),this._keyUpHandler=null)},onExtentChange:function(b,c,a,e){},isFocusNode:function(b){return dojo.hasClass(b,"focusDragDiv")||dojo.hasClass(b,"editFocusNob")||dojo.hasClass(b,"editFocusFrame")||dojo.hasClass(b,"maqFocus")|| dojo.hasClass(b,"editFocusStdChrome")},showContext:function(b,c){"davinci.ve.themeEditor.ThemeEditor"==this._context.editor.declaredClass&&(this._contexDiv||(this._context=b,this._createContextPopUp()),this._contexDiv.style.display="block")},hideContext:function(){"davinci.ve.themeEditor.ThemeEditor"==this._context.editor.declaredClass&&this._contexDiv&&(this._contexDiv.style.display="none")},_createContextPopUp:function(){var b=dojo.doc.createElement("div");b.id="ieb";this._contexDiv=b;this.domNode.appendChild(b)}, _createSubwidgetList:function(){var b=this._context._selectedWidget;if(b){var c=this._context.getThemeMeta().metadata,a=c.getWidgetType(b),c=(c=c.getMetadata(a))?c.subwidgets:null;this._displayedWidget=b;if(c){a=this._contexDiv;a.innerHTML="\x3cspan\x3e\x3c/span\x3e";a.style.position="absolute";a.style.left=this._box.w+10+"px";a.className="themeSubwidgetMenu";dojo.connect(a,"onmousedown",this,"stopPropagation");a.style.display="none";this._contexDiv=a;this.domNode.appendChild(a);var e=this._contexDiv.firstElementChild, f=this._context.theme.name+"_subwidgetmenu";(a=dijit.byId(f))&&a.destroyRecursive(!1);var k=this._context.getDijit(),a=new k.Menu({id:f},e),e=!1;b.subwidget||(e=!0);e=new k.CheckedMenuItem({label:"WidgetOuterContainer",id:this._context.theme.name+"_WidgetOuterContainer",checked:e,onClick:dojo.hitch(this,"_subwidgetSelected",this._context.theme.name+"_WidgetOuterContainer")});e.domNode.children[0].children[0].setAttribute("src",e.domNode.children[0].children[0].src);a.addChild(e);this._currentItem= e;for(var g in c)e=b.subwidget===g,c=new k.CheckedMenuItem({label:g,id:this._context.theme.name+"_"+g,checked:e,onClick:dojo.hitch(this,"_subwidgetSelected",this._context.theme.name+"_"+g)}),c.domNode.children[0].children[0].setAttribute("src",c.domNode.children[0].children[0].src),a.addChild(c),e&&(this._currentItem=c);a.startup();this._cm=a;this._updateSubwidgetListForState();this._connections=[];this._connections.push(dojo.subscribe("/davinci/ui/subwidgetSelectionChanged",dojo.hitch(this,this._subwidgetSelectedChange))); this._connections.push(dojo.subscribe("/davinci/states/state/changed",dojo.hitch(this,this._updateSubwidgetListForState)))}else this._contexDiv.innerHTML=""}},stopPropagation:function(b){b.stopPropagation()},_subwidgetSelected:function(b,c){c.stopPropagation();var a=this._context.getDijit(),e=a.byId(b);e.checked?(this._currentItem&&e!=this._currentItem&&this._currentItem.set("checked",!1),this._currentItem=e,a=this._currentItem.label):((this._currentItem=a.byId(this._context.theme.name+"_WidgetOuterContainer"))&& this._currentItem.set("checked",!0),a=null);c.currentTarget.id===this._context.theme.name+"_WidgetOuterContainer"&&(a=null);dojo.publish("/davinci/ui/subwidgetSelectionChanged",[{subwidget:a,origin:this.declaredClass}])},_subwidgetSelectedChange:function(b){var c=this._context.getDijit();b.origin!==this.declaredClass&&(this._currentItem&&this._currentItem.set("checked",!1),(this._currentItem=b.subwidget?c.byId(this._context.theme.name+"_"+b.subwidget):c.byId(this._context.theme.name+"_WidgetOuterContainer"))&& this._currentItem.set("checked",!0))},_updateSubwidgetListForState:function(){if(this._context.editor==f.currentEditor)if(this._context._selectedWidget&&this._displayedWidget===this._context._selectedWidget&&this._cm){var b=f.currentEditor,c=b._theme;this._cm.getChildren().forEach(function(a){var e=a.label;"WidgetOuterContainer"===e&&(e=null);a.setDisabled(!c.isStateValid(this._displayedWidget,b._currentState,e))},this)}else this._clearList(),this._createSubwidgetList()},_updateSubwidgetList:function(){this._displayedWidget!== this._context._selectedWidget&&(this._clearList(),this._createSubwidgetList())},_clearList:function(){if(this._cm)for(this._cm.destroyRecursive(!1),delete this._cm;connection=this._connections.pop();)dojo.unsubscribe(connection);this._currentItem=null},dojoStyle:function(b,c,a){if(b&&b.ownerDocument&&b.ownerDocument.defaultView&&b.ownerDocument.defaultView.getComputedStyle(b))return dojo.style.apply(dojo,arguments)}})})},"davinci/ve/ChooseParent":function(){define("dojo/_base/declare davinci/Runtime ./widget ./_Widget ./metadata davinci/ve/utils/GeomUtils".split(" "), function(p,n,m,h,g,f){return p("davinci.ve.ChooseParent",null,{constructor:function(b){this._context=b.context},getAllowedTargetWidget:function(b,e,f,d){var c=m.getEnclosingWidget,a=[],n=[];e=e.length?e:[e];var p=this;e.forEach(function(a){n.push({type:a.type,allowedParent:g.getAllowedParent(a.type),classList:p.getClassList(a.type)})});do{e=b instanceof h?b.type:b._dvWidget.type;var r=this.getClassList(e);this.isAllowed(n,b,e,r,d)&&a.push(b);b=c(b)}while(b&&f);return a},isAllowed:function(b,e,f,d, c){function a(a,b){return b.some(function(b){return-1!==a.indexOf(b)})}var h=g.getAllowedChild(f);"html.body"===f&&(h=["ANY"]);return b.every(function(b){var e="NONE"!==h[0]&&("ANY"===h[0]||"BLOCK"===h[0]||a(h,b.classList)),g="ANY"===b.allowedParent[0]||a(b.allowedParent,d),n=m.getWidgetHelper(b.type);return n&&n.isAllowed?n.isAllowed({childType:b.type,childClassList:b.classList,parentType:f,parentClassList:d,absolute:c.absolute,isAllowedChild:e,isAllowedParent:g}):e&&g})},getClassList:function(b){var e= g.queryDescriptor(b,"class");return e?(e=e.split(/\s+/),e.push(b),e):[b]},dragUpdateCandidateParents:function(b){var e=b.widgetType,k=b.showCandidateParents,d=b.doCursor,c=b.absolute,a=b.currentParent;b=this._XYParent;this._proposedParentWidget||(this._proposedParentWidget=this._getDefaultParent(e,b,c,a));(k||d)&&this.highlightNewWidgetParent(this._proposedParentWidget);var e=this._context,c=e.getActiveDragDiv(),g;c&&(c=dojo.query(".maqCandidateParents",c),1==c.length&&(g=c[0]));if(g)if(k){k=!0;if(this._lastProposedParentWidget!= this._proposedParentWidget)k=!1;else if("undefined"==typeof this._lastAllowedParentList||null===this._lastAllowedParentList)k=!1;else if(this._lastAllowedParentList.length!=b.length)k=!1;else for(a=0;a=m&&a<=m+g&&c>=n&&c<=n+p&&1===this.getAllowedTargetWidget(k,e,!1,{absolute:d}).length)if(!0===d)this._XYParent.push(k),this._XYRefChild.push(null),this._XYRefAfter.push(!0);else{d=k.getChildren(); h=[];for(e=0;e=m.l&&a<=m.r&&c>=m.t&&c<=m.b){z=g;u=a>=m.c?!0:!1;break}0===e?(z=g,u=c>m.b||a>=m.c?!0:!1,v=m.b):(c>=m.t||c>=v)&&a>=m.l?(z=g,u=c>m.b||a>=m.c?!0:!1):c>=v&&c>=m.b&&(z=g,u=!0);m.b>v&&(v=m.b)}this._XYParent.push(k);this._XYRefChild.push(z);this._XYRefAfter.push("after"===b?!0:"before"=== b?!1:u)}},findParentsXYAfterTraversal:function(b){var e=b.widgets,f=b.currentParent,d=b.eventTarget.ownerDocument.body._dvWidget;if(b.absolute&&f&&f!=d){var c=!1;this._XYParent.forEach(function(a){a==f&&(c=!0)});c||(this._XYParent.push(f),this._XYRefChild.push(e[0]),this._XYRefAfter.push(!0))}this.findParentsXYLastPosition={};for(b=0;b=b){var e=this.getProposedParentsList();1this._waiting++){setTimeout(window["loading"+this._id],500);return}throw"doc.body is null";}delete window["loading"+this._id];g.id="myapp";g.style.width="100%";g.style.height="100%";g.style.visibility="visible";g.style.margin="0";g._edit_context=this;-1!=this._bootstrapModules.split(",").indexOf("dijit/dijit-all")&&(f.dojo._postLoad=!0);f.require("dojo/_base/lang").isArray=f.dojo.isArray= function(a){return a&&"[object Array]"==Object.prototype.toString.call(a)};f.require({packages:this._customWidgetPackages})}catch(h){console.error(h.stack||h),e=Error(h.message,h.fileName,h.lineNumber),m.mixin(e,h)}this._continueLoading(n,c,e,d)}.bind(this);J.open();b=m.replace(z,function(a,b){return K.hasOwnProperty(b)?K[b]:""});J.write(b);J.close();e.connect(J.documentElement,"onkeypress",function(a){8==a.charOrCode&&(window.davinciBackspaceKeyTime=E.davinciBackspaceKeyTime=Date.now())});e.connect(J.documentElement, "onkeydown",dojo.hitch(this,function(a){this.editor.handleKeyEvent(a)}));e.connect(J.documentElement,"onkeyup",dojo.hitch(this,function(a){this.editor.handleKeyEvent(a)}))}},getLibraryBase:function(a,b){return B.getLibRoot(a,b,this.getBase())},loadRequires:function(a,c,d,e){var g=y.query(a,"require");if(!g){var k=new f;k.resolve();return k}var h=y.query(a,"library"),m={},n=this,p=function(a,b){return n.addJavaScriptSrc(b,c,b,e)},w=function(a,b){var c=new f;if(m.hasOwnProperty(a))return c.resolve(), c;var d=y.getLibrary(a).version||b.version;return n.getLibraryBase(a,d).then(function(e){if(null==e)return console.error("No library found for name \x3d '"+a+"' version \x3d '"+d+"'"),c.reject(),c;m[a]=(new q(n.getBase())).append(e);if(b&&b.src&&".js"===b.src.substr(-3))return e=b.src.match(/((?:\.\.\/)*)(.*)/),p(a,e[2]);c.resolve();return c})},k=[],r;for(r in h)h.hasOwnProperty(r)&&k.push(w(r,h[r]));return b(k).then(function(){var f=[];g.every(function(b){b.$library&&f.push(w(b.$library,h[b.$library])); switch(b.type){case "javascript":b.src?f.push(p(b.$library,b.src)):this.addJavaScriptText(b.$text,c||d,e);break;case "javascript-module":"amd"!==b.format&&console.error("Unknown javascript-module format");b.src?f.push(this.addJavaScriptModule(b.src,c||d,e)):console.error("Inline 'javascript-module' not handled src\x3d"+b.src);break;case "css":b.src?(b=b.src,c?this.addModeledStyleSheet(b,e):this.loadStyleSheet(b)):console.error("Inline CSS not handled src\x3d"+b.src);break;case "image":break;default:console.error("Unhandled metadata resource type\x3d'"+ b.type+"' for widget '"+a+"'")}return!0},this);return b(f)}.bind(this))},getDojo:function(){var a=this.getGlobal();return a&&a.dojo||dojo},getDijit:function(){var a=this.getGlobal();return a&&a.dijit||dijit},_getDojoJsElem:function(){if(this._dojoScriptElem||this.getDocumentElement().getChildElement("head").getChildElements("script").some(function(a){if(/\/dojo.js$/.test(a.getAttribute("src")))return this._dojoScriptElem=a,!0},this))return this._dojoScriptElem;console.error('"dojo.js" script element not found!')}, _updateDojoConfig:function(a){this.close();var b=this._getDojoJsElem(),e=b.getAttribute("data-dojo-config"),e=e?p.eval("({ "+e+" })","data-dojo-config"):{},f="";e.mblLoadCompatPattern&&(f=", mblLoadCompatPattern: "+e.mblLoadCompatPattern.toString(),delete e.mblLoadCompatPattern);for(var g in a)"mblLoadCompatPattern"==g?f=null===a[g]?"":", 'mblLoadCompatPattern': "+a[g]:null===a[g]?delete e[g]:e[g]=a[g];d.publish(c.EVENTS.ON_BUILD_DOJO_CONFIG,{data:e,context:this,editor:this.editor},this);a=JSON.stringify(e).slice(1, -1).replace(/"/g,"'");b.setAttribute("data-dojo-config",a+f)},_preserveDojoTypes:function(a){var b=a.getAttribute("data-dojo-type")||a.getAttribute("dojoType");if(b){var c=this._loadFileDojoTypesCache,d=this.maqTypesClassPrefix+this.maqTypesClassCount;a.className=a.className+" "+d;this.maqTypesClassCount++;c[d]=b}},_getDojoScriptValues:function(a,b){var c=this._getDojoJsElem(),d=c.getAttribute("data-dojo-config"),d=d?p.eval("({ "+d+" })","data-dojo-config"):{};m.mixin(d,a,{async:!0,parseOnLoad:!1}); b.dojoConfig=JSON.stringify(d).slice(1,-1).replace(/"/g,"'");var e=[];c.attributes.forEach(function(a){var b=a.name;a=a.value;"src"!==b&&"data-dojo-config"!==b&&e.push(b+'\x3d"'+a+'"')});e.length&&(b.additionalDojoAttrs=e.join(" "))},_restoreDojoTypes:function(){var a=this._loadFileDojoTypesCache,b=this.getDocument(),c;for(c in a)if(node=b.querySelectorAll("."+c)[0])node.className=node.className.replace(" "+c,""),node.setAttribute("data-dojo-type",a[c])},_continueLoading:function(a,b,c,d){var e,f= {};try{if(c instanceof Error)throw c;e=this._setSourceData(a).then(this.onload.bind(this),function(a){f.errorMessage='Unable to parse HTML source. See console for error. Please switch to "Display Source" mode and correct the error.';console.error(a.stack||a.message)})}catch(g){f=g}finally{b&&(e?e.then(function(){b.call(d||this,f)}.bind(this)):b.call(d||this,f))}}})})},"davinci/ve/_ContextInterface":function(){define("dojo/_base/declare dojo/dom-style dojo/_base/connect dojo/topic ../Theme ../Workbench ./Snap dojox/html/_base".split(" "), function(p,n,m,h,g,f,b){return p(null,{_designEvents:[],_designMode:!0,isDesignMode:function(){return this._designMode},_disableDesignMode:function(){this._designEvents.forEach(m.disconnect);this._designEvents=[]},_enableDesignMode:function(){var b=this.getContainerNode();this._designEvents.forEach(m.disconnect);this._designEvents=[m.connect(this.getDocument(),"onkeydown",this,"onKeyDown"),m.connect(this.getDocument(),"onkeyup",this,"onKeyUp"),m.connect(b,"ondblclick",this,"onDblClick"),m.connect(b, "onmousedown",this,"onMouseDown"),m.connect(b,"onclick",this,"onMouseClick"),m.connect(b,"onmousemove",this,"onMouseMove"),m.connect(b,"onmouseup",this,"onMouseUp"),m.connect(b,"onmouseover",this,"onMouseOver"),m.connect(b,"onmouseout",this,"onMouseOut")]},setDesignMode:function(b){!b&&this._designMode&&this._disableDesignMode();b&&!this._designMode&&this._enableDesignMode();this._designMode=b},getActiveDragDiv:function(){return this._activeDragDiv},setActiveDragDiv:function(b){this._activeDragDiv= b},blockChange:function(b){this._blockChange=b},onMouseClick:function(b){this.eventHandler&&this.eventHandler.click&&this.eventHandler.click(b)},onMouseDown:function(b){if(this._activeTool&&this._activeTool.onMouseDown&&!this._blockChange)this._activeTool.onMouseDown(b);this.blockChange(!1)},onDblClick:function(b){},onMouseMove:function(b){if(this._activeTool&&this._activeTool.onMouseMove&&!this._blockChange)this._activeTool.onMouseMove(b)},onMouseUp:function(b){if(this._activeTool&&this._activeTool.onMouseUp)this._activeTool.onMouseUp(b); this.blockChange(!1);h.publish("/davinci/ve/context/mouseup",b)},onMouseOver:function(b){if(this._activeTool&&this._activeTool.onMouseOver)this._activeTool.onMouseOver(b)},onMouseOut:function(b){if(this._activeTool&&this._activeTool.onMouseOut)this._activeTool.onMouseOut(b)},dragMoveUpdate:function(e){var f=this,d=this._chooseParent,c=e.widgets,a=e.data,g=e.position,h=e.absolute,m=e.currentParent,n=e.rect,p=e.doSnapLinesX,x=e.doSnapLinesY,z=e.doFindParentsXY,u=e.doCursor,v=e.beforeAfter,A=dojo.isArray(a)? a[0].type:a.type,C=function(e){if(!(c&&0<=c.indexOf(e))){var m=this.getGlobal().require("dojo/dom-style").get(e.domNode);(p||x)&&b.findSnapOpportunities(this,e,m,p,x);d.findParentsXY({data:a,widget:e,absolute:h,position:g,doCursor:u,beforeAfter:v});dojo.forEach(e.getChildren(),function(a){C.apply(f,[a])})}};if(p||x)doSnapLines=b.updateSnapLinesBeforeTraversal(this,n);n=d.findParentsXYBeforeTraversal(e);C.apply(f,[this.rootWidget]);(p||x)&&b.updateSnapLinesAfterTraversal(this);d.findParentsXYAfterTraversal(e); n&&(d.dragUpdateCandidateParents({widgetType:A,showCandidateParents:z,doCursor:u,beforeAfter:v,absolute:h,currentParent:m}),d.findParentsXYCleanup(e))},dragMoveCleanup:function(){b.clearSnapLines(this);this._chooseParent.cleanup(this)},onExtentChange:function(b,f,d,c){if(this._activeTool&&this._activeTool.onExtentChange&&!this._blockChange&&(b=dojo.indexOf(this._focuses,b),0<=b))this._activeTool.onExtentChange({index:b,oldBoxes:[f],newBox:d,applyToWhichStates:c});this.blockChange(!1)},onKeyDown:function(b){if(this._activeTool&& this._activeTool.onKeyDown)this._activeTool.onKeyDown(b)},onKeyUp:function(b){if(this._activeTool&&this._activeTool.onKeyUp)this._activeTool.onKeyUp(b)},onContentChange:function(){this._updateWidgetHash();this.deselectInvisible();dojo.forEach(this.getSelection(),function(b,d){0===d?this.select(b):this.select(b,!0)},this);if("davinci.themeEdit.ThemeEditor"==this.editor.editorID){var b=g.getHelper(this.visualEditor.theme);if(b&&b.onContentChange)b.onContentChange(this,this.visualEditor.theme);else b&& b.then&&b.then(function(b){if(b.helper&&b.helper.onContentChange)b.helper.onContentChange(this,this.visualEditor.theme)}.bind(this))}this._forceSelectionChange&&(this.onSelectionChange(this.getSelection()),delete this._forceSelectionChange);setTimeout(function(){f._autoSave.call(f)},0)},onSelectionChange:function(b){this._cssCache={};m.publish("/davinci/ui/widgetSelected",{selection:b,context:this})},getActiveTool:function(){return this._activeTool},setActiveTool:function(b){try{this._activeTool&& this._activeTool.deactivate(),this._activeTool=b,this._activeTool||(this._activeTool=this._defaultTool),this._activeTool.activate(this),m.publish("/davinci/ve/activeToolChanged",[this,b])}catch(f){debugger}},inlineEditActive:function(){return this.getSelection().some(function(b,f){return this._focuses[f].inlineEditActive()},this)},select:function(b,f,d){if(b&&b!=this.rootWidget){var c,a=!1;this._selection&&(a=this._selection.some(function(a,d){return a===b?(c=d,!0):!1}));if(!a){f&&this._selection? (c=this._selection.length,a=this._selection,a.push(b)):a=[b];var g=b.getParent();if(g){var h=g.getHelper();h&&h.selectChild?h.selectChild(g,b):g.selectChild(b)}if(!this._selection||1f)return;this.focus(null,f);this._selection.splice(f,1)}if(helper&&helper.onDeselect)helper.onDeselect(b)}else this._selection&&this._selection.forEach(function(b){var c=b.getHelper();if(c&&c.onDeselect)c.onDeselect(b)},this),this.focus(null),this._selection=void 0;this.onSelectionChange(this.getSelection())}}, deselectInvisible:function(){function b(a){return 1==a.nodeType&&"none"==n.get(a,"display")?!0:a.parentNode?b(a.parentNode):!1}if(this._selection)for(var f=this._selection.length-1;0<=f;f--){var d=this._selection[f],c=d.domNode;if(b(c)&&"xblox/RunScript"!==d.type)this.deselect(d);else for(;c&&"BODY"!=c.tagName.toUpperCase();){if(c&&c.ownerDocument&&c.ownerDocument.defaultView&&"none"==n.get(c,"display")&&"xblox/RunScript"!==d.type){this.deselect(d);break}c=c.parentNode}}},getFlowLayout:function(){var b= !0;b="true"===b;return b},setFlowLayout:function(b){var f=this.getDocumentElement().getChildElement("body");f&&f.addAttribute(PREF_LAYOUT_ATTR,""+b);return b}})})},"davinci/ve/_ContextDocument":function(){define("dojo/_base/declare dojo/dom-class dojo/dom-construct dojo/query dojo/_base/connect dojo/window xide/utils xide/factory xide/types ../UserActivityMonitor ../model/Path ../Workbench ./widget ./metadata ../html/HTMLElement ../workbench/Preferences dojox/html/_base".split(" "),function(p,n,m, h,g,f,b,e,k,d,c,a,q,w,r,B){var y=function(a){var b=w.getLibrary();a&&dojo.filter(a.attributes,function(a){return"on"==a.nodeName.substr(0,2).toLowerCase()}).forEach(function(a){var c=!1,d;for(d in b)if(c=w.getLibrary(d),c=w.invokeCallback(c,"requiredEventAttribute",[a]))break})};return p(null,{hasDirtyResources:function(){return!1},getCompType:function(){var a=this.getDocumentElement().getChildElement("body"),b=a&&a.getAttribute("data-maq-comptype");a&&!b&&(b=this.getMobileDevice()?"mobile":"desktop", a.addAttribute("data-maq-comptype",b));return b},_significantAttrs:{link:"href",meta:"name"},getContainerNode:function(){return this.rootNode},getParentIframe:function(){if(!this._parentIframeElem)for(var a=this.getDocument(),b=document.getElementsByTagName("iframe"),c=0;c/gi,""),m;this.getGlobal();var n=this.getDojo();n.create||this.getGlobal().require(["dojo/dom-construct","dojo/dom-style","dojo/dom-attr","dojo/_base/html"],function(a,b,c,d){n.create=a.create;n.destroy=a.destroy;n.place=a.place;n.toDom=a.toDom});this.getGlobal().require("dojox/html/_base").set(f,c,{executeScripts:!0,onEnd:function(){m=this._code;this.executeScripts=!1;this.inherited("onEnd",arguments)}});y(f);h("*", f).forEach(y);f.setAttribute("data-maq-ws","collapse");(a=this._srcDocument.getDocumentElement().getChildElement("body"))&&a.addAttribute("data-maq-ws","collapse");this.getGlobal();(a=this.getDocumentElement().getChildElement("body"))&&a.getAttribute("data-maq-device");var q={SCRIPT:1,STYLE:1},p=function(a){dojo.forEach(a.childNodes,function(a){3==a.nodeType?a.nodeValue=a.data.replace(/^[\f\n\r\t\v\ ]+$/g,""):1!=a.nodeType||q[a.nodeName]||p(a)})};p(f);this._loadFileStatesCache=d;this.global=this.getGlobal(); return this._processWidgets(f,b,this._loadFileStatesCache,m)},getSource:function(){return this._srcDocument.getText()},getDocumentElement:function(){return this._srcDocument.getDocumentElement()},getDocumentLocation:function(){return this._srcDocument.fileName},getHeader:function(){return this._header||{}},setHeader:function(a){var b=[],c,d,e;this._header&&(b=this._header.styleSheets||[],d=this._header.bodyClasses);if(a){c=a.styleSheets||[];e=a.bodyClasses;if(a.modules){var f=this.getGlobal().require; a.modules.map(function(a){return[a.replace(/\./g,"/")]}).forEach(f)}if(a.className){var g=a.className.split(" ");dojo.some(g,function(a,b){g.splice(b,1);e=g.join(" ");return!0})}}d!=e&&(f=this.getContainerNode(),d&&n.remove(f,d),e&&n.add(f,e));b!=c&&(b=[].concat(b),dojo.forEach(c,function(a){var c=dojo.indexOf(b,a);0>c?this.loadStyleSheet(a):b.splice(c,1)},this),dojo.forEach(b,this.unloadStyleSheet,this));this.setStyle(a?a.style:void 0);this._header=a},onload:function(){this.getCompType();this._connects= (this._connects||[]).concat(d.addInActivityMonitor(this.getDocument()));var a=this.getMobileDevice();a&&(this.setMobileDevice(a),this.visualEditor.setDevice(a,!0),this.visualEditor.setOrientation(this.getMobileOrientation()));this._configDojoxMobile(!0);window.setTimeout(function(){this.widgetAddedOrDeleted();g.publish("/davinci/ui/context/loaded",[this]);this._markDirtyAtLoadTime?(this.editor.setDirty(!0),delete this._markDirtyAtLoadTime,this.editor.save(!0)):this.editor.setDirty(this.hasDirtyResources()); this.addPseudoClassSelectors()}.bind(this),500)},_onLoadHelpers:function(){var a={};h("\x3e *",this.rootNode).map(q.getWidget).forEach(function(b){var c=b.getHelper();if(c&&c.onLoad){var d=a[b.type];a[b.type]=!0;c.onLoad(b,d)}},this)},_addHeadElement:function(a,b,c){var d=this.getDocumentElement().getChildElement("head");if(!c){var e=this._significantAttrs[a]||"src";if(d.getChildElements(a).some(function(a){return a.getAttribute(e)===b[e]}))return}c=new r(a);for(var f in b)b.hasOwnProperty(f)&&c.addAttribute(f, b[f]);d.addChild(c);dojo.withGlobal(this.getGlobal(),function(){m.create(a,b,h("head")[0])})},_removeHeadElement:function(a,b){var c=this.getDocumentElement().getChildElement("head");c.getChildElements(a).some(function(a){var d=!0,e;for(e in b)if(b.hasOwnProperty(e)&&a.getAttribute(e)!==b[e]){d=!1;break}if(d)return c.removeChild(a),!0});dojo.withGlobal(this.getGlobal(),function(){var c=a,d;for(d in b)b.hasOwnProperty(d)&&(c+="["+d+'\x3d"'+b[d]+'"]');h(c).orphan()})},getDocument:function(){var a=this.getContainerNode(); return a&&a.ownerDocument},getGlobal:function(){var a=this.getDocument();return a?f.get(a):null}})})},"davinci/ve/_ContextWidgets":function(){define("dojo/_base/declare dojo/query dojo/Deferred dojo/promise/all dojo/_base/connect ../Theme ./widget ./Focus ./metadata ./States ./HTMLWidget ./utils/GeomUtils dojox/html/_base".split(" "),function(p,n,m,h,g,f,b,e,k,d,c,a){return p(null,{_processWidgets:function(a,b,c,d){var e=[];this._loadFileDojoTypesCache={};dojo.forEach(n("*",a),function(a){var b=a.getAttribute("data-dojo-type")|| a.getAttribute("dojoType")||a.getAttribute("dvwidget");b||(b="html."+a.tagName.toLowerCase());e.push(this.loadRequires((b||"").replace(/\./g,"/"),!1,!0));e.push(this._preProcess(a));this._preserveStates(a,c);this._preserveDojoTypes(a)},this);var f=new m;h(e).then(function(){this.getGlobal().require("dojo/ready")(function(){try{this.getGlobal().require("dijit/registry"),this.getGlobal().require("dojo/parser").parse(a).then(function(){this._restoreDojoTypes();f.resolve();b&&this._attachAll();if(d)try{dojox.html.evalInGlobal(d, a)}catch(c){console.error("Error eval script in Context._setSourceData, "+c)}}.bind(this),function(a){f.reject(a)})}catch(c){console.error("error in _processWidgets",c),f.reject(c)}}.bind(this))}.bind(this));return f},_preProcess:function(a){var c=a.getAttribute("data-dojo-type")||a.getAttribute("dojoType");c||(c="html."+a.tagName.toLowerCase());return b.requireWidgetHelper((c||"").replace(/\./g,"/")).then(function(b){b&&b.preProcess&&b.preProcess(a,this)}.bind(this))},attach:function(a){if(a&&!a._edit_focus)if(a._srcElement|| (a._srcElement=this._srcDocument.findElement(a.id)),a.type||(a.type=a.isHtmlWidget?"html."+a.getTagName():a.isGenericWidget?a.domNode.getAttribute("dvwidget"):a.isObjectWidget?a.getObjectType():a.declaredClass.replace(/\./g,"/")),a.metadata=a.metadata||k.query(a.type),a._edit_context=this,a.attach(),"_"==a.type.charAt(a.type.lastIndexOf(".")+1))a.internal=!0;else{var b=a.getId();if(b){var c=this._widgetIds;-1===c.indexOf(b)&&c.push(b)}if(b=a.getObjectId(a))c=this._objectIds,-1===c.indexOf(b)&&c.push(b); dojo.forEach(a.getChildren(!0),this.attach,this)}},_attachAll:function(){var a=this.rootWidget=new c({},this.rootNode);a._edit_context=this;a.isRoot=!0;this._srcDocument.getDocumentElement().getChildElement("body");a._srcElement=this._srcDocument.getDocumentElement().getChildElement("body");a._srcElement&&a._srcElement.setAttribute("id","myapp");this._attachChildren(this.rootNode)},_attachChildren:function(a){n("\x3e *",a).map(b.getWidget).forEach(this.attach,this)},detach:function(a){this.getGlobal(); var b=function(a,b){var c=a.indexOf(b);-1!=c&&a.splice(c,1)},c=a.getId(),d=this;c&&b(this._widgetIds,c);(c=a.getObjectId())&&b(this._objectIds,c);if(this._selection)for(b=0;b=this._selection.length)for(var b=0;be.name?1:b.name]*>([\s\S]*)<\/body>/)[1]);this._getRequires(b.getTopWidgets(),e);return e}, _getRequires:function(b,e){function f(a,b,c){dojo.forEach(a,function(a){if(!c.hasOwnProperty(a.type)){c[a.type]=!0;dojo.forEach(a.metadata.require,function(a){this._inRequiresArray(a,b.require)||b.require.push(a)},this);for(var d in a.metadata.library)a.metadata.library.hasOwnProperty(d)&&(b.library[d]||(b.library[d]=a.metadata.library[d]))}f.call(this,a.getChildren(),b,c)},this)}var d=d||{};f.call(this,b,e,d);if(1g.length)return g;var f=h.rootWidget,b=[];dojo.forEach(g,function(e){for(var k=e.getParent();k&&k!=f;){for(var d=0;dthis._index)return;this._data=f.getData();this._parentId=e.id}this._data.context=b;d=this._isRefreshOnDescendantChange(f);b&&b.detach(f);e.removeChild(f);b&&b.widgetChanged(b.WIDGET_REMOVED,f);f.destroyWidget();b&&b.widgetAddedOrDeleted();d&&(new g(d,null,null,e._edit_context)).execute();h.resetState(f.domNode);k&&k()}}},undo:function(){if(this._data&&this._parentId){var f=m.byId(this._parentId);if(f){var b= m.createWidget(this._data);if(b){f.addChild(b,this._index);var e=f.getContext();e&&(e.attach(b),b.startup(),b.renderWidget(),e.widgetAddedOrDeleted(),e.widgetChanged(e.WIDGET_ADDED,b),(e=this._isRefreshOnDescendantChange(b))&&(new g(e,null,null,f._edit_context)).execute(),h.resetState(b.domNode))}}}}})})},"davinci/ve/actions/CutAction":function(){define(["dojo/_base/declare","./_CutCopyAction","../../Runtime"],function(p,n,m){return p("davinci.ve.actions.CutAction",[n],{_invokeSourceEditorAction:function(h){h.htmlEditor.cutAction.run()}, _executeAction:function(h,g,f,b){m.clipboard=f;h.select(null);h.getCommandStack().execute(b)}})})},"davinci/ve/actions/DeleteAction":function(){define(["dojo/_base/declare","davinci/Workbench","davinci/ve/actions/ContextAction","davinci/commands/CompoundCommand","davinci/ve/commands/RemoveCommand"],function(p,n,m,h,g){return p("davinci.ve.actions.DeleteAction",[m],{run:function(f){if(f=this.fixupContext(f)){var b=this._normalizeSelection(f);if(0y)y=c;if(0== b||d>x)x=d}),A.add(new e(u,p,B)),A.add(new k(u,y-p,x-B)));n.forEach(C,function(a){A.add(new d(a,u,"last"))});I&&n.forEach(C,function(a,b){A.add(new e(a,z[b].l,z[b].t,null,z[b]))});h.getCommandStack().execute(A);h.select(u)}else console.error("missing surroundWithTagName")},isEnabled:function(a){if((a=this.fixupContext(a))&&a.getSelection().length){var b=a.getSelection()[0].getParent(),c=[];if(!b||!b.length)return!1;if(n.every(a.getSelection(),function(a){var d=a.getParent();if(!d)return!1;c.push(b.indexOf(a)); return b.id==d.id})){c.sort();var d;for(a=c.shift();c.length;a=d)if(d=c.shift(),d!=a+1)return!1;return!0}}return!1}})})},"davinci/ve/actions/SelectParentAction":function(){define(["dojo/_base/declare","davinci/ve/actions/_SelectAncestorAction"],function(p,n){return p("davinci.ve.actions.SelectParentAction",[n],{run:function(m){var h=(m=this.fixupContext(m))&&m.getSelection();this.selectionSameParentNotBody(h)&&m.select(h[0].getParent())},isEnabled:function(m){m=(m=this.fixupContext(m))&&m.getSelection(); return this.selectionSameParentNotBody(m)}})})},"davinci/ve/actions/_SelectAncestorAction":function(){define(["dojo/_base/declare","davinci/ve/actions/ContextAction"],function(p,n){return p("davinci.ve.actions._SelectAncestorAction",[n],{shouldShow:function(m){return(m=this.fixupContext(m))&&m.editor&&"davinci.ve.HTMLPageEditor"==m.editor.editorID},selectionSameParentNotBody:function(m){if(!m||0===m.length)return!1;var h=m[0].getParent();if(!h||!h.domNode)return!1;for(var g=0;ge?k:e);return e-b+1===g.length},getAbsoluteSiblings:function(g){g=g&&g.getParent&&g.getParent();return g?(g=g.getChildren&&g.getChildren())?n.filter(g,function(f){return"absolute"==(f&&f.domNode?m.get(f.domNode,"position"):null)}):[]:[]}})})},"davinci/ve/actions/MoveToFrontAction":function(){define(["dojo/_base/declare","./_ReorderAction","davinci/commands/CompoundCommand", "davinci/ve/commands/ReparentCommand"],function(p,n,m,h){return p("davinci.ve.actions.MoveToFrontAction",[n],{name:"MoveToFront",iconClass:"editActionIcon editMoveToFrontIcon",run:function(g){if(g=this.fixupContext(g)){var f=g&&g.getSelection?g.getSelection():[];if(0!==f.length&&this.selectionSameParentAllAbsolute(f)){for(var b=f[0].getParent(),e=this.getAbsoluteSiblings(f[0]),k=new m,d=0;dg.length-1)return!0;return!1}})})},"davinci/ve/actions/MoveForwardAction":function(){define(["dojo/_base/declare","./_ReorderAction","davinci/commands/CompoundCommand","davinci/ve/commands/ReparentCommand"],function(p,n,m,h){return p("davinci.ve.actions.MoveForwardAction",[n],{name:"MoveForward",iconClass:"editActionIcon editMoveForwardIcon",run:function(g){if(g=this.fixupContext(g)){var f=g&&g.getSelection?g.getSelection(): [];if(0!==f.length&&this.selectionSameParentAllAbsoluteAdjacent(f)){for(var b,e=f[0].getParent(),k=e.getChildren(),d=this.getAbsoluteSiblings(f[0]),c=new m,a=f.slice(0),n=0;ng.length-1)return!0;return!1}})})},"davinci/ve/actions/OtherAction":function(){define(["dojo/_base/declare","./_ReorderAction","davinci/commands/CompoundCommand","davinci/ve/commands/ReparentCommand"],function(p,n,m,h){return p("davinci.ve.actions.OtherAction",[n],{run:function(g){},isEnabled:function(g){return!0},shouldShow:function(g){return(g=(g=this.fixupContext(g))? g.editor:null)&&"davinci.ve.PageEditor"==g.declaredClass}})})},"davinci/ve/actions/EnableApplicationStates":function(){define("dojo/_base/declare dojo/_base/connect dojo/dom-class dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin davinci/Runtime davinci/Workbench davinci/ve/metadata davinci/ve/widget davinci/ve/States davinci/actions/Action davinci/lang/ve dijit/lang/_common dojo/text!./templates/EnableApplicationStates.html dijit/form/TextBox".split(" "),function(p,n,m,h,g,f, b,e,k,d,c,a,q,w,r){var B=function(){if(b.currentEditor&&b.currentEditor.currentEditor&&b.currentEditor.currentEditor.context){context=b.currentEditor.currentEditor.context;var a=context.getSelection();if(1==a.length)return"ANY"==k.getAllowedChild(a[0].type)}return!1};p("davinci.ve.actions.EnableApplicationStatesWidget",[h,g,f],{templateString:r,widgetsInTemplate:!0,veNls:q,commonNls:w,oldValue:null,widget:null,postCreate:function(){if(b.currentEditor&&b.currentEditor.currentEditor&&b.currentEditor.currentEditor.context){editor= this.editor=b.currentEditor;context=this.context=b.currentEditor.currentEditor.context;var a=context.getSelection();if(0 this.delay||Math.abs(a.pageY-this._lastY)>this.delay)this.onMouseUp(a),this.onDragDetected(a);a.stopPropagation();a.preventDefault()},onMouseUp:function(a){for(var b=0;2>b;++b)this.events.pop().remove();a.stopPropagation();a.preventDefault()},onSelectStart:function(a){this.skip&&d.isFormElement(a)||(a.stopPropagation(),a.preventDefault())},onDragDetected:function(a){new this.mover(this.node,a,this)},onMoveStart:function(b){e.publish("/dnd/move/start",b);g.add(a.body(),"dojoMove");g.add(this.node, "dojoMoveItem")},onMoveStop:function(b){e.publish("/dnd/move/stop",b);g.remove(a.body(),"dojoMove");g.remove(this.node,"dojoMoveItem")},onFirstMove:function(){},onMove:function(a,b){this.onMoving(a,b);var c=a.node.style;c.left=b.l+"px";c.top=b.t+"px";this.onMoved(a,b)},onMoving:function(){},onMoved:function(){}})})},"davinci/html/ui/HTMLEditor":function(){define(["dojo/_base/declare","davinci/ui/ModelEditor","davinci/model/Factory","davinci/html/ui/HTMLOutline"],function(p,n,m,h){return p("davinci.html.ui.HTMLEditor", n,{constructor:function(g,f){this.model=this.htmlFile=m.getModel({url:f});this._handle=dojo.connect(this.htmlFile.getDocumentElement(),"onkeydown",this,"onKeyDown")},destroy:function(){this.htmlFile.close();dojo.disconnect(this._handle);this.inherited(arguments)},getOutline:function(){this.outline||(this.outline=new h(this.model));return this.outline},getDefaultContent:function(){return"\x3chtml\x3e\n \x3chead\x3e\x3c/head\x3e\n \x3cbody\x3e\x3c/body\x3e\n\x3c/html\x3e"},onKeyDown:function(g){}})})}, "davinci/html/ui/HTMLOutline":function(){define(["dojo/_base/declare","davinci/html/ui/HTMLOutlineModel"],function(p,n){return p("davinci/html/ui/HTMLOutline",null,{constructor:function(m){this._htmlModel=m},getModel:function(){return this._model=new n(this._htmlModel)}})})},"davinci/html/ui/HTMLOutlineModel":function(){define(["dojo/_base/declare"],function(p){return p("davinci.html.ui.HTMLOutlineModel",null,{constructor:function(n){this.root=n;this.subscription=dojo.subscribe("/davinci/ui/modelChanged", this,this._modelChanged)},getRoot:function(n,m){n(this.root)},getIdentity:function(n){return n.getID()},getLabel:function(n){return n.getLabel().replace("\x3c","\x26lt")},_getChildren:function(n){var m=[];"HTMLFile"!=n.elementType&&"HTMLElement"!=n.elementType||dojo.forEach(n.children,function(h){"HTMLElement"==h.elementType&&m.push(h)});return m},mayHaveChildren:function(n){return 0this.children.length)this._isLoaded=!1,this.getChildrenSync(function(b){this.children=b},!0);return this._getChild(b)},getChild:function(b){if(!this._isLoaded||1>this.children.length)this._isLoaded=!1,this.getChildren2(function(b){this.children=b},!0);return this._getChild(b)},_getChild:function(b){if(!this.__CASE_SENSITIVE){if(!b||null==b.toLowerCase)debugger; b=b.toLowerCase()}var e;this.children.some(function(f){var d=f.getName();this.__CASE_SENSITIVE||(d=d.toLowerCase());(d=d==b)&&(e=f);return d});return e}});return f})},"davinci/model/resource/Resource":function(){define("dojo/_base/declare dojo/_base/xhr dojo/_base/connect dojo/Deferred davinci/Runtime davinci/model/Model davinci/model/Path xide/manager/ServerActionBase".split(" "),function(p,n,m,h,g,f,b,e){return p("davinci.model.resource.Resource",[f,e],{singleton:!0,sync:!1,workspaceMount:"/ws/", _initService:function(){var b=this.findServiceUrl(this.declaredClass);b&&(this.serviceUrl=b);this.inherited(arguments)},constructor:function(){this.elementType="Resource";this.name="";this.parent=null;this._id=dijit.getUniqueId("maqFileResource");this.init()},getName:function(){return this.name},getPath:function(){return this.parent?this.parent.getPath()+"/"+this.name:this.name},readOnly:function(){return this.hasOwnProperty("_readOnly")?this._readOnly||null!=this.parent&&this.parent.readOnly():this.parent? this.parent.readOnly():!1},getURL:function(){var b=this.getPath();0==b.indexOf("./")&&(b=b.substring(2,b.length));return g.getUserWorkspaceUrl()+b},rename:function(e){var d=(new b(this.getPath())).removeLastSegments().append(e);return n.get({url:"cmd/rename",handleAs:"text",content:{oldName:this.getPath(),newName:d.toString()}}).then(function(){this.name=e;m.publish("/davinci/resource/resourceChanged",["renamed",this])}.bind(this))},getParentFolder:function(){return"File"==this.elementType?this.parent: this},isVirtual:function(){return!!this.libraryId},visit:function(b,d){var c=b.visit(this);this._isLoaded||"Folder"!=this.elementType||d?this.children&&!c&&dojo.forEach(this.children,function(a){a.visit(b,d)}):this.getChildren(dojo.hitch(this,function(){dojo.forEach(this.children,function(a){a.visit(b,d)})}))},deleteResource:function(b){var d=""+this.getPath();"."==d&&(d=""+this.workspaceMount);var d=d.replace("./",this.workspaceMount),c=this.serviceClass,a="Folder"==this.elementType?"deleteDirectory": "deleteFile",e=function(){var a=this.getName();this.parent.children.some(function(b,c,d){if(b.getName()==a)return d.splice(c,1),!0});m.publish("/davinci/resource/resourceChanged",["deleted",this])}.bind(this);b?(b=new h,e(),b.resolve()):b=this.serviceObject[c][a](d).then(e,function(){});return b},getId:function(){return this._id}})})},"davinci/model/resource/File":function(){define("dojo/_base/declare davinci/Runtime davinci/model/resource/Resource davinci/model/resource/Marker davinci/ve/utils/URLRewrite xide/utils".split(" "), function(p,n,m,h,g,f){return p("davinci.model.resource.File",m,{serviceClass:"XIDE_Directory_Service",mount:"/ws/",getMountPoint:function(){return this.mount},constructor:function(b,e){this.elementType="File";this.name=b;this.parent=e;this.markers=[];this.extension=b.substr(b.lastIndexOf(".")+1)},getExtension:function(){return this.extension},clearMarkers:function(){this.markers=[]},addMarker:function(b,e,f){this.markers.push(new h(this,b,e,f))},getMarkers:function(b){var e=[];if(this.markers)for(var f= 0;f|(*)[+\]]*) ?(.*)$/);a&&(d=a[1],c=a[2]);var a=0,e=!1,f=!1;if(d)for(var g=0;gy&&(g=f.x-d+f.w,0>g&&(g=0));g+=c;p+=m;this._inline._setStyleAttr({display:"block",top:p+"px",left:g+"px",padding:"1px",overflow:"hidden",backgroundImage:"none"});this._startTop= p;this._startLeft=g;dojo.style(a,"left",f.x+20+c+"px");dojo.style(a,"top",p+x+this._POINTER_TOP_OFFSET+"px")}},handleEvent:function(b){switch(b.keyCode){case 13:var d=this.multiLine;if(!d||"false"==d||13==this._lastKeyCode||b.ctrlKey)this.onOk();else if(b.which==dojo.keys.ENTER&&b.ctrlKey)this.onOk();break;case 27:this.onCancel();break;default:this.updateFormats()}this._lastKeyCode=b.keyCode;this.updateSimStyle()},onOk:function(b){this.hide()},onCancel:function(b){this.hide(!0)},onMoveStart:function(b){dojo.style("iebPointer", "display","none")},onMoveStop:function(b){var d=dojo.style("ieb","left");b=dojo.style("ieb","top");d=this._startLeft-d;b-=this._startTop;b-this._Y_MOVE_RANGE?(dojo.style("iebPointer","display",""),dojo.style("iebPointer","top",this._startTop+this._POINTER_TOP_OFFSET+b+"px"),d-this._X_MOVE_RANGE?dojo.style("iebPointer","display",""):dojo.style("iebPointer","display","none")):dojo.style("iebPointer","display","none")},stopEvent:function(b){b.stopPropagation(); this.updateSimStyle()},stopEvent_Intercept_Enter:function(b){this.stopEvent(b);13!=b.keyCode||this.multiLine||b.preventDefault()},_node:function(){var b,d=this.path,c=this.selector;if(d||c)b=this._widget.domNode,d&&(b=dojo.getObject(d,!1,this._widget)),c&&(b=dojo.query(c,b)[0]);return b},updateWidget:function(b){if(!this._widget._destroyed){this.parse&&(b=this.parse(b));var d=this._node(this._widget),c=this._widget.getContext(),a=this.property,e="maq_innerText"===a?"innerHTML":a;if(this.update){if(b= this.update(d||this._widget,b,a))this._widget=b;c.select(this._widget,null,!1)}else if(a){if(d)dojo.attr(d,e,b);else{d={};b&&"string"==typeof b&&(b=b.replace(/\n/g,""));var f=null;"textContent"==a?f=b:d[a]=b;"innerHTML"===e?(d.richText=d[a],delete d[a],b=new m(this._widget,d,null,c)):b=new davinci.ve.commands.ModifyCommand(this._widget,d,f,c);this._widget._edit_context.getCommandStack().execute(b);this._widget=b.newWidget;this._widget._edit_context._focuses[0]._selectedWidget=this._widget}c.select(this._widget, null,!1)}}},hide:function(b){if(this._inline){for(var d;connection=this._connection.pop();)connection&&dojo.disconnect(connection);var c=this._findSmartInputContainer(this._widget._edit_context.frameNode);if(c&&(this._loadingDiv&&c.removeChild(this._loadingDiv),"none"!=this._inline.style.display&&this._inline.eb)){this._value=d=this._inline.eb.get("value");this._format=this.getFormat();this._inline.style.display="none";this._inline.eb&&(this._inline.eb.destroyRecursive(),delete this._inline.eb);this._inline.destroyRecursive(); delete this._inline;var a=c.ownerDocument.getElementById("iebPointer");c.removeChild(a);null==d||b||(this.disableEncode||"text"!==this._format||(d=g.encode(d)),this.updateWidget(d));this._widget.getContext().getDocument().defaultView.focus()}}},getFormat:function(){var b=dijit.byId("davinci.ve.input.SmartInput_radio_html"),d="text";b&&b.checked&&(d="html");return d},containsHtmlMarkUp:function(b){return 0h)){var g=this._parentWidget.getContext();g&&g.detach(m);this._parentWidget.removeChild(m);m.destroyWidget();this._oldData.children=this._oldText;this._oldData.properties.id=this._oldId;n=n.createWidget(this._oldData);this._parentWidget.addChild(n, h);g&&this._refresh(n);g.widgetAddedOrDeleted();g.widgetChanged(g.WIDGET_MODIFIED,n);dojo.publish("/davinci/ui/widget/replaced",[n,m]);require("davinci/ve/States").resetState(n.domNode)}}}},_refresh:function(n){var m=n.getContainerNode();m&&this._context.getGlobal().require("dojo/parser").parse(m);this._context.attach(n);n.startup();n.renderWidget();m&&this._context._attachChildren(m)}})})},"url:davinci/workbench/templates/Preferences.html":"\x3cdiv style\x3d'width:100%; height: 100%'\x3e\n\t\x3cdiv class\x3d\"dijitDialogPaneContentArea\"\x3e\n\t\t\x3cdiv dojoType\x3d'dijit.layout.BorderContainer' dojoAttachPoint\x3d\"borderContainer\" style\x3d'width:100%; height: 100%' gutters\x3d'false' liveSplitters\x3d'true' id\x3d'preferencesContainer'\x3e\n\t\t\t\x3cdiv dojoType\x3d'dijit.layout.ContentPane' id\x3d'pref.TreePane' splitter\x3d'true' region\x3d'leading' style\x3d'width: 200px;' minSize\x3d'100' maxSize\x3d'300'\x3e\x3c/div\x3e\n\t\t\t\x3cdiv dojoType\x3d'dijit.layout.ContentPane' region\x3d'center' id\x3d'pref.RightPane'\x3e\x3c/div\x3e\n\t\t\x3c/div\x3e\n\t\x3c/div\x3e\n\t\x3cdiv class\x3d\"dijitDialogPaneActionBar\"\x3e\n\t\t\x3c!-- FIXME: we don't have logic to yet implement restoreDefaults() yet. See #627\n\t\t\x3cbutton dojoType\x3ddijit.form.Button type\x3d\"button\" onclick\x3d\"davinci.workbench.Preferences.restoreDefaults();\"\x3e\x3c/button\x3e--\x3e\n\t\t\x3cbutton dojoType\x3d\"dijit.form.Button\" type\x3d\"button\" onclick\x3d\"davinci.workbench.Preferences.save();\" class\x3d\"maqPrimaryButton\" type\x3d\"submit\"\x3e${commonStrings.buttonSave}\x3c/button\x3e\n\t\t\x3cbutton dojoType\x3d\"dijit.form.Button\" type\x3d\"button\" onclick\x3d\"davinci.workbench.Preferences.finish();\" class\x3d\"maqSecondaryButton\"\x3e${commonStrings.buttonCancel}\x3c/button\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n\n\n", "url:davinci/ve/widgets/templates/BackgroundDialog.html":"\x3cdiv class\x3d\"backgroundDialog\" style\x3d\"position:relative\" dojoAttachPoint\x3d\"_fileDialog\"\x3e\n\t\x3cstyle type\x3d\"text/css\"\x3e\n\t\t.backgroundDialog {\n\t\t\twidth:31em;\n\t\t}\n\t\t.bgdTopDiv {\n\t\t\tmargin-top: 4px;\n\t\t\tpadding-left: .75em;\n\t\t}\n\t\t.bgdTopTable {\n\t\t\twidth:100%;\n\t\t\tborder-collapse:collapse;\n\t\t}\n\t\t.bgdTopLabel, .bgdTopField, .bgdTopPreview {\n\t\t\twidth:1px;\n\t\t\twhite-space:nowrap;\n\t\t}\n\t\t.bgdTopLabel {\n\t\t\ttext-align:right;\n\t\t\tpadding-right:6px;\n\t\t}\n\t\t.bgdTopTable .dijitSelect .dijitButtonContents {\n\t\t\twidth:8em;\n\t\t}\n\t\t.bgdTopTable .dijitTextBox {\n\t\t\twidth: 9.8em;\n\t\t}\n\t\t.bgdPreview {\n\t\t\tdisplay:inline-block;\n\t\t\twidth: 6em;\n\t\t\theight: 2.8em;\n\t\t\tmargin-left:12px;\n\t\t\tborder:1px solid gray;\n\t\t\tvertical-align: middle;\n\t\t}\n\t\t.bgdOptionsDiv {\n\t\t\tmargin:0.3em 0em 1em 1em;\n\t\t}\n\t\t.bgdOptionsDiv \x3e table {\n\t\t\twidth:27em;\n\t\t}\n\t\t.bgdSection {\n\t\t\tbackground-color:#d8d8d8;\n\t\t}\n\t\tdiv.bgdSection, .bgdSection td, .bgdSection.bgdUrlSectionLabel {\n\t\t\tpadding:2px 5px;\n\t\t}\n\t\t.bgdBeforeStopsLabel {\n\t\t\theight:6px;\n\t\t}\n\t\t.bgdStopsLabel {\n\t\t\tmargin-top:1em;\n\t\t}\n\t\t.bgdAfterStopsLabel {\n\t\t\theight:0px;\n\t\t}\n\t\t.bgdBeforeOptionsLabel {\n\t\t\theight:16px;\n\t\t}\n\t\t.bgdOptionsLabel {\n\t\t\tmargin-top:1em;\n\t\t}\n\t\t.bgdAfterOptionsLabel {\n\t\t\theight:4px;\n\t\t}\n\t\t.bgdCol1 {\n\t\t\twidth:10px;\n\t\t}\n\t\t.bgdPlusMinusButtons {\n\t\t\twhite-space:nowrap;\n\t\t\twidth:51px;\n\t\t}\n\t\t.bgdOptionsDiv th {\n\t\t\ttext-align:center;\n\t\t\tfont-style:italic;\n\t\t}\n\t\t.bgdOptsLabel {\n\t\t\ttext-align:right;\n\t\t\tpadding-right: 6px;\n\t\t\twhite-space:nowrap;\n\t\t}\n\t\t.bgdColor.dijitTextBox {\n\t\t\twidth:9em;\n\t\t}\n\t\t.bgdOptionsDiv .bgdPosition.dijitTextBox {\n\t\t\twidth:5em;\n\t\t}\n\t\t.bgdOptionsDiv .dijitTextBox {\n\t\t\twidth:10.6em;\n\t\t}\n\t\t.bgdStopColorTD .dijitTextBox {\n\t\t\twidth:14em;\n\t\t}\n\t\t.bgdOptionsDiv .dijitSelect {\n\t\t\tmargin:0;\n\t\t}\n\t\t.bgdOptionsDiv .dijitSelect .dijitButtonContents {\n\t\t\twidth:9em;\n\t\t}\n\t\t.bgdUrlContainerOuter {\n\t\t\tmargin-top:1em;\n\t\t\tmargin-left:1em;\n\t\t}\n\t\t.bgdUrlContainerInner {\n\t\t\tmargin:0 1em;\n\t\t}\n\t\t.bgdUrlSectionLabel {\n\t\t\tmargin:1em 0 .25em;\n\t\t}\n\t\t.bgdFileTreeContainer {\n\t\t\tmargin: 0 0 0 3px;\n\t\t\tborder: 1px solid #26A;\n\t\t}\n\t\t.bgdFileTreeContainer .dijitTree {\n\t\t\theight:125px;\n\t\t}\t\t\n\t\t.backgroundDialog .fileNameRow {\n\t\t\tmargin:8px 0 .4em;\n\t\t}\n\t\t.backgroundDialog .fileNameRow label {\n\t\t\tvertical-align:middle;\n\t\t\tmargin-right:4px;\n\t\t}\n\t\t.backgroundDialog .fileNameRow .dijitTextBox {\n\t\t\twidth:16em;\n\t\t}\n\t\t.bgdOptionsDiv .bgdOtherRow .dijitTextBox {\n\t\t\twidth:15em;\n\t\t}\n\t\t\n\t\x3c/style\x3e\n\n\t\x3cdiv class\x3d\"dijitDialogPaneContentArea\"\x3e\n\t\t\x3cdiv class\x3d'bgdTopDiv'\x3e\n\t\t\t\x3ctable class\x3d'bgdTopTable'\x3e\n\t\t\t\t\x3ctr\x3e\n\t\t\t\t\t\x3ctd class\x3d'bgdTopLabel'\x3e\x3clabel class\x3d'bgdTypeDivTypeLabel'\x3e${veNLS.bgdBackgroundColor}\x3c/label\x3e\x3c/td\x3e\n\t\t\t\t\t\x3ctd class\x3d'bgdTopField'\x3e\n\t\t\t\t\t\t\x3cselect dojoType\x3d\"dijit.form.ComboBox\" dojoAttachPoint\x3d'bgdColorCB'\x3e\n\t\t\t\t\t\t\t\x3c!-- values added dynamically --\x3e\n\t\t\t\t\t\t\x3c/select\x3e\n\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\t\x3ctd rowspan\x3d'2' class\x3d'bgdTopPreview' style\x3d'border-collapse:collapse'\x3e\x3cspan class\x3d'bgdPreview'\x3e\x3c/span\x3e\x3c/td\x3e\n\t\t\t\t\t\x3ctd class\x3d'bgdTopExpando'\x3e\x26nbsp;\x3c/td\x3e\n\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\x3ctr\x3e\n\t\t\t\t\t\x3ctd class\x3d'bgdTopLabel'\x3e\x3clabel class\x3d'bgdTypeDivTypeLabel'\x3e${veNLS.bgdBackgroundImageType}\x3c/label\x3e\x3c/td\x3e\n\t\t\t\t\t\x3ctd class\x3d'bgdTopField'\x3e\n\t\t\t\t\t\t\x3cselect dojoType\x3d'dijit.form.Select' value\x3d'linear' dojoAttachPoint\x3d'bgdTypeSelect'\x3e\n\t\t\t\t\t\t\t\x3c!-- values added dynamically --\x3e\n\t\x3c!-- FIXME: Add plain text type-in box if unrecognized syntax --\x3e\n\t\t\t\t\t\t\x3c/select\x3e\n\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\t\x3ctd class\x3d'bgdTopExpando'\x3e\x26nbsp;\x3c/td\x3e\n\t\t\t\t\x3c/tr\x3e\n\t\t\t\x3c/table\x3e\n\t\t\x3c/div\x3e\n\t\t\n\t\t\x3cdiv class\x3d\"bgdUrlContainerOuter bgdImageOptRow\"\x3e\n\t\t\t\x3cdiv class\x3d\"bgdSection bgdOptionsLabel\"\x3e${veNLS.bgdImageUrl}\x3c/div\x3e\n\t\t\t\x3cdiv class\x3d\"bgdUrlContainerInner\"\x3e\n\t\t\t\t\x3cdiv class\x3d'fileNameRow'\x3e\n\t\t\t\t\t\x3ctd class\x3d\"fileDialogLabelCell\"\x3e\n\t\t\t\t\t\x3clabel\x3e${veNLS.bgdUrl}\x3c/label\x3e\n\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\t\x3ctd\x3e\n\t\t\t\t\t\x3cdiv dojoType\x3d'davinci.ui.widgets.FileFieldDialog' dojoAttachPoint\x3d\"_filePicker\"\x3e\x3c/div\x3e\n\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e\n\t\t\x3c/div\x3e\n\t\t\x3cdiv class\x3d\"bgdOptionsDiv\"\x3e\n\t\t\t\x3ctable\x3e\n\t\t\t\t\x3ctr class\x3d\"bgdGradOptRow bgdBeforeStopsLabel\"\x3e\x3c/tr\x3e\n\t\t\t\t\x3ctr class\x3d\"bgdGradOptRow bgdSection bgdStopsLabel\"\x3e\n\t\t\t\t\t\x3ctd colspan\x3d\"5\"\x3e${veNLS.bgdColorStops}\x3c/td\x3e\n\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\x3ctr class\x3d\"bgdGradOptRow bgdAfterStopsLabel\"\x3e\x3c/tr\x3e\n\t\t\t\t\x3ctr class\x3d'bgdGradOptRow bgdStopRow'\x3e\n\t\t\t\t\t\x3cth\x3e\x3c/th\x3e\x3cth\x3e\x3c/th\x3e\x3cth\x3e${veNLS.bgdColor}\x3c/th\x3e\x3cth\x3e${veNLS.bgdPosition}\x3c/th\x3e\x3cth\x3e\x3c/th\x3e\n\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\x3c!-- gradient stop rows added dynamically --\x3e\n\t\t\t\t\x3ctr class\x3d\"bgdBeforeOptionsLabel bgdOptionsLabelRow\"\x3e\x3c/tr\x3e\n\t\t\t\t\x3ctr class\x3d\"bgdSection bgdOptionsLabel bgdOptionsLabelRow\"\x3e\n\t\t\t\t\t\x3ctd colspan\x3d\"5\"\x3e${veNLS.bgdOptions}\x3c/td\x3e\n\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\x3ctr class\x3d\"bgdAfterOptionsLabel bgdOptionsLabelRow\"\x3e\x3c/tr\x3e\n\t\t\t\t\x3ctr class\x3d\"bgdGradOptRow bgdLinearOptRow\"\x3e\t\n\t\t\t\t\t\x3ctd class\x3d'bgdCol1'\x3e\x3c/td\x3e\n\t\t\t\t\t\x3ctd class\x3d'bgdOptsLabel'\x3e\x3clabel\x3e${veNLS.bgdAngle}\x3c/label\x3e\x3c/td\x3e\n\t\t\t\t\t\x3ctd colspan\x3d'3'\x3e\n\t\t\t\t\t\t\x3cselect dojoType\x3d\"dijit.form.ComboBox\" dojoAttachPoint\x3d'bgdLinearAngleCB'\x3e\n\t\t\t\t\t\t\t\x3c!-- values added dynamically --\x3e\n\t\t\t\t\t\t\x3c/select\x3e\n\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\x3ctr class\x3d\"bgdGradOptRow bgdRadialOptRow\"\x3e\t\n\t\t\t\t\t\x3ctd class\x3d'bgdCol1'\x3e\x3c/td\x3e\n\t\t\t\t\t\x3ctd class\x3d'bgdOptsLabel'\x3e${veNLS.bgdPosition2}\x3c/td\x3e\n\t\t\t\t\t\x3ctd colspan\x3d'3'\x3e\n\t\t\t\t\t\t\x3cselect dojoType\x3d\"dijit.form.ComboBox\" dojoAttachPoint\x3d'bgdRadialPosCB'\x3e\n\t\t\t\t\t\t\t\x3c!-- values added dynamically --\x3e\n\t\t\t\t\t\t\x3c/select\x3e\n\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\x3ctr dojoAttachPoint\x3d\"bgdShapeRow\" class\x3d\"bgdGradOptRow bgdRadialOptRow\"\x3e\t\n\t\t\t\t\t\x3ctd class\x3d'bgdCol1'\x3e\x3c/td\x3e\n\t\t\t\t\t\x3ctd class\x3d'bgdOptsLabel'\x3e\x3clabel\x3e${veNLS.bgdShape}\x3c/label\x3e\x3c/td\x3e\n\t\t\t\t\t\x3ctd colspan\x3d'3'\x3e\n\t\t\t\t\t\t\x3cselect dojoType\x3d\"dijit.form.ComboBox\" dojoAttachPoint\x3d'bgdRadialShapeCB'\x3e\n\t\t\t\t\t\t\t\x3c!-- values added dynamically --\x3e\n\t\t\t\t\t\t\x3c/select\x3e\n\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\x3ctr dojoAttachPoint\x3d\"bgdExtentRow\" class\x3d\"bgdGradOptRow bgdRadialOptRow\"\x3e\t\n\t\t\t\t\t\x3ctd class\x3d'bgdCol1'\x3e\x3c/td\x3e\n\t\t\t\t\t\x3ctd class\x3d'bgdOptsLabel'\x3e\x3clabel\x3e${veNLS.bgdExtent}\x3c/label\x3e\x3c/td\x3e\n\t\t\t\t\t\x3ctd colspan\x3d'3'\x3e\n\t\t\t\t\t\t\x3cselect dojoType\x3d\"dijit.form.ComboBox\" dojoAttachPoint\x3d'bgdRadialExtentCB'\x3e\n\t\t\t\t\t\t\t\x3c!-- values added dynamically --\x3e\n\t\t\t\t\t\t\x3c/select\x3e\n\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\x3ctr dojoAttachPoint\x3d\"bgdRepeatRow\" class\x3d\"bgdImageOptRow\"\x3e\t\n\t\t\t\t\t\x3ctd class\x3d'bgdCol1'\x3e\x3c/td\x3e\n\t\t\t\t\t\x3ctd class\x3d'bgdOptsLabel'\x3e\x3clabel\x3e${veNLS.bgdBackgroundRepeat}\x3c/label\x3e\x3c/td\x3e\n\t\t\t\t\t\x3ctd colspan\x3d'3'\x3e\n\t\t\t\t\t\t\x3cselect dojoType\x3d\"dijit.form.ComboBox\" dojoAttachPoint\x3d'bgdRepeatCB'\x3e\n\t\t\t\t\t\t\t\x3c!-- values added dynamically --\x3e\n\t\t\t\t\t\t\x3c/select\x3e\n\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\x3ctr dojoAttachPoint\x3d\"bgdPositionRow\" class\x3d\"bgdImageOptRow\"\x3e\t\n\t\t\t\t\t\x3ctd class\x3d'bgdCol1'\x3e\x3c/td\x3e\n\t\t\t\t\t\x3ctd class\x3d'bgdOptsLabel'\x3e${veNLS.bgdBackgroundPosition}\x3c/td\x3e\n\t\t\t\t\t\x3ctd colspan\x3d'3'\x3e\n\t\x3c!-- FIXME: regExp, invalidMessage --\x3e\n\t\t\t\t\t\t\x3cselect dojoType\x3d\"dijit.form.ComboBox\" dojoAttachPoint\x3d'bgdPositionCB'\x3e\n\t\t\t\t\t\t\t\x3c!-- values added dynamically --\x3e\n\t\t\t\t\t\t\x3c/select\x3e\n\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\x3ctr dojoAttachPoint\x3d\"bgdSizeRow\" class\x3d\"bgdImageOptRow\"\x3e\t\n\t\t\t\t\t\x3ctd class\x3d'bgdCol1'\x3e\x3c/td\x3e\n\t\t\t\t\t\x3ctd class\x3d'bgdOptsLabel'\x3e${veNLS.bgdBackgroundSize}\x3c/td\x3e\n\t\t\t\t\t\x3ctd colspan\x3d'3'\x3e\n\t\x3c!-- FIXME: regExp, invalidMessage --\x3e\n\t\t\t\t\t\t\x3cselect dojoType\x3d\"dijit.form.ComboBox\" dojoAttachPoint\x3d'bgdSizeCB'\x3e\n\t\t\t\t\t\t\t\x3c!-- values added dynamically --\x3e\n\t\t\t\t\t\t\x3c/select\x3e\n\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\x3ctr dojoAttachPoint\x3d\"bgdOriginRow\" class\x3d\"bgdImageOptRow\"\x3e\t\n\t\t\t\t\t\x3ctd class\x3d'bgdCol1'\x3e\x3c/td\x3e\n\t\t\t\t\t\x3ctd class\x3d'bgdOptsLabel'\x3e\x3clabel\x3e${veNLS.bgdBackgroundOrigin}\x3c/label\x3e\x3c/td\x3e\n\t\t\t\t\t\x3ctd colspan\x3d'3'\x3e\n\t\t\t\t\t\t\x3cselect dojoType\x3d\"dijit.form.ComboBox\" dojoAttachPoint\x3d'bgdOriginCB'\x3e\n\t\t\t\t\t\t\t\x3c!-- values added dynamically --\x3e\n\t\t\t\t\t\t\x3c/select\x3e\n\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\x3ctr dojoAttachPoint\x3d\"bgdClipRow\" class\x3d\"bgdImageOptRow\"\x3e\t\n\t\t\t\t\t\x3ctd class\x3d'bgdCol1'\x3e\x3c/td\x3e\n\t\t\t\t\t\x3ctd class\x3d'bgdOptsLabel'\x3e\x3clabel\x3e${veNLS.bgdBackgroundClip}\x3c/label\x3e\x3c/td\x3e\n\t\t\t\t\t\x3ctd colspan\x3d'3'\x3e\n\t\t\t\t\t\t\x3cselect dojoType\x3d\"dijit.form.ComboBox\" dojoAttachPoint\x3d'bgdClipCB'\x3e\n\t\t\t\t\t\t\t\x3c!-- values added dynamically --\x3e\n\t\t\t\t\t\t\x3c/select\x3e\n\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\x3ctr dojoAttachPoint\x3d\"bgdOtherTypeInRow\" class\x3d\"bgdOtherRow\"\x3e\t\n\t\n\t\t\t\t\t\x3ctd class\x3d'bgdCol1'\x3e\x3c/td\x3e\n\t\t\t\t\t\x3ctd class\x3d'bgdOptsLabel'\x3e\x3clabel\x3e${veNLS.bgdBackgroundImageValue}\x3c/label\x3e\x3c/td\x3e\n\t\t\t\t\t\x3ctd colspan\x3d'3'\x3e\n\t\t\t\t\t\t\x3ctextarea dojoType\x3d\"dijit.form.Textarea\" dojoAttachPoint\x3d'bgdOtherTA'\x3e\x3c/textarea\x3e\n\t\t\t\t\t\x3c/td\x3e\n\t\n\t\t\t\t\x3c/tr\x3e\n\t\n\t\t\t\x3c/table\x3e\n\t\t\x3c/div\x3e\n\t\x3c/div\x3e\n\n\t\x3c!--div class\x3d\"dijitDialogPaneActionBar\"\x3e\n\t\t\x3cspan dojoType\x3d'dijit.form.Button' dojoAttachPoint\x3d\"_okButton\" dojoAttachEvent\x3d'onClick:okButton' label\x3d'${buttonOk}' class\x3d\"maqPrimaryButton\" type\x3d\"submit\"\x3e\x3c/span\x3e \n\t\t\x3cspan dojoType\x3d'dijit.form.Button' dojoAttachEvent\x3d'onClick:cancelButton' label\x3d'${buttonCancel}' class\x3d\"maqSecondaryButton\"/\x3e\x3c/span\x3e \n\t\x3c/div--\x3e\n\x3c/div\x3e\n", "url:davinci/ui/widgets/templates/FileFieldDialog.html":"\x3cdiv\x3e\n\t\x3cdiv style\x3d'float:right;'\x3e\n\t\t\x3cbutton type\x3d'button' style\x3d'font-size:.75em;float:right;' dojoType\x3d\"dijit.form.Button\" dojoAttachPoint\x3d\"button\" dojoAttachEvent\x3d\"onClick:_showFileSelectionDialog\"\x3e...\x3c/button\x3e\n\t\x3c/div\x3e\n\t\x3cdiv style\x3d'margin-right:35px;'\x3e\n\t\t\x3cinput style\x3d'width:100%;' type\x3d'text' dojoType\x3d\"dijit.form.TextBox\" dojoAttachPoint\x3d\"textField\" dojoAttachEvent\x3d\"onChange:_onChange\"\x3e\x3c/input\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n\n", "url:davinci/ve/widgets/templates/WidgetToolBar.html":'\x3cdiv class\x3d"propertiesTitleBar ui-widget-content" style\x3d"display: none"\x3e\n \x3cdiv class\x3d\'propertiesWidgetDescription\'\x3e\n \x3cspan class\x3d\'propertiesWidgetDescriptionFor\'\x3e${veNLS.toolBarFor}\x3c/span\x3e\n \x3cspan data-dojo-attach-point\x3d"descNode"\x3e${veNLS.noSelection}\x3c/span\x3e\n \x3c/div\x3e\n \x3cdiv class\x3d"propertiesTitleBarPropertiesContainer"\x3e\n \x3ctable width\x3d"100%" cellspacing\x3d"0" cellpadding\x3d"0" border\x3d"0" align\x3d"center"\n class\x3d"propertiesTitleBarProperties property_table_stretchable"\x3e\n \x3ccolgroup\x3e\n \x3ccol style\x3d"width:10px;"\x3e\n \x3ccol class\x3d"gap02"\x3e\n \x3ccol class\x3d"gap03"\x3e\n \x3ccol style\x3d"width:10px;"\x3e\n \x3ccol style\x3d"width:6px;"\x3e\n \x3c/colgroup\x3e\n \x3ctbody\x3e\n \x3c!--tr class\x3d"cssPropertySection"\x3e\n \x3ctd\x3e\x3c/td\x3e\n \x3ctd class\x3d"propertyDisplayName"\x3e${veNLS.toolBarClass}\x26nbsp;\x3c/td\x3e\n \x3ctd class\x3d"propertyInputField"\x3e\n \x3cinput data-dojo-type\x3d"dijit.form.ComboBox" data-dojo-attach-point\x3d"classComboBox" label\x3d"" data-dojo-attach-event\x3d"onChange:_onChangeClassAttribute,onFocus:_onFieldFocus,onBlur:_onFieldBlur" style\x3d"width: 100%" searchAttr\x3d"name"/\x3e\n \x3c/td\x3e\n \x3ctd nowrap\x3d"true" class\x3d"propertyExtra"\x3e\x3c/td\x3e\n \x3ctd\x3e\x3c/td\x3e\n \x3c/tr--\x3e\n \x3ctr class\x3d"cssPropertySection"\x3e\n \x3ctd\x3e\x3c/td\x3e\n \x3ctd class\x3d"propertyDisplayName"\x3e${veNLS.toolBarId}\x26nbsp;\x3c/td\x3e\n \x3ctd class\x3d"propertyInputField"\x3e\n \x3cinput class\x3d"form-control input-transparent" data-dojo-type\x3d"dijit.form.ValidationTextBox" data-dojo-attach-point\x3d"idTextBox" label\x3d"" data-dojo-attach-event\x3d"onChange:_onChangeIDAttribute,onKeyPress:_onKeyPress,onFocus:_onFieldFocus,onBlur:_onFieldBlur" style\x3d"width: 100%"/\x3e\n \x3c/td\x3e\n \x3ctd nowrap\x3d"true" class\x3d"propertyExtra"\x3e\x3c/td\x3e\n \x3ctd\x3e\x3c/td\x3e\n \x3c/tr\x3e\n\n \x3ctr class\x3d"cssPropertySection"\x3e\n \x3ctd\x3e\x3c/td\x3e\n \x3ctd class\x3d"propertyDisplayName"\x3eClass\x3c/td\x3e\n \x3ctd class\x3d"propertyInputField"\x3e\n \x3cinput data-dojo-attach-point\x3d"cssClasses" type\x3d"text" class\x3d"" value\x3d"" style\x3d"width: 100%"\x3e\n \x3c/td\x3e\n \x3ctd nowrap\x3d"true" class\x3d"propertyExtra"\x3e\x3c/td\x3e\n \x3ctd\x3e\x3c/td\x3e\n \x3c/tr\x3e\n \x3c!--tr class\x3d"cssPropertySection"\x3e\n \x3ctd\x3e\x3c/td\x3e\n \x3ctd class\x3d"propertyDisplayName"\x3eBlock Group\x26nbsp;\x3c/td\x3e\n \x3ctd class\x3d"propertyInputField"\x3e\n \x3cinput data-dojo-type\x3d"dijit.form.ComboBox" data-dojo-attach-point\x3d"blockGroupComboBox" label\x3d"" data-dojo-attach-event\x3d"onChange:_onChangeBlockGroupAttribute,onFocus:_onFieldFocus,onBlur:_onFieldBlur" style\x3d"width: 100%" searchAttr\x3d"name"/\x3e\n \x3c/td\x3e\n \x3ctd nowrap\x3d"true" class\x3d"propertyExtra"\x3e\x3c/td\x3e\n \x3ctd\x3e\x3c/td\x3e\n \x3c/tr--\x3e\n \x3c/tbody\x3e\n \x3c/table\x3e\n \x3c/div\x3e\n\x3c/div\x3e\n', "url:davinci/ui/widgets/templates/ThemeSetSelection.html":'\x3cdiv\x3e\n \x3cdiv class\x3d"dijitDialogPaneContentArea"\x3e\n\t\t\x3ctable style\x3d"width: 100%; padding-left:10px; padding-right:10px;"\x3e\n\t\t\t\x3ctr\x3e\n\t\t\t\t\x3ctd style\x3d"" NOWRAP\x3e${uiNLS.themeSet}\x3c/td\x3e\n\t\t\t\t\x3ctd style\x3d"width: 100%; text-align: center;"\x3e\x3cselect dojoType\x3d"dijit.form.Select" id\x3d"theme_select_themeset_theme_select" type\x3d"text" style\x3d"width: 175px;" \x3e\x3c/select\x3e\x3c/td\x3e\n\t\t\t\x3c/tr\x3e\n\t\t\x3c/table\x3e\n\t\n\t\t\x3cdiv style\x3d"border-top: 1px solid black; top: 231px; border-top-color: #ccc; left: 429px; width: 300px; height: 11px; margin-top: 6px; padding-left:10px;"\x3e\x3c/div\x3e\n\t\t\x3ctable style\x3d"padding-left: 15px; width: 100%;"\x3e\n\t\t\t\x3ctr\x3e\x3ctd style\x3d"width: 139px;"\x3e${uiNLS.desktopTheme}\x3c/td\x3e\x3ctd\x3e\x3cselect dojoType\x3d"dijit.form.Select" id\x3d"theme_select_desktop_theme_select"type\x3d"text" style\x3d"width: 175px;" \x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\n\t\t\t\x3ctr\x3e\x3ctd\x3e${uiNLS.mobileTheme}\x3c/td\x3e\x3ctd\x3e\x3cselect dojoType\x3d"dijit.form.Select" id\x3d"theme_select_mobile_theme_select"type\x3d"text" style\x3d"width: 175px;" \x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\n\t\t\x3c/table\x3e\n\t\t\x3ctable id\x3d"theme_select_devices_table" style\x3d"padding-left:30px; border-collapse: separate; border-spacing: 0 0; width: 100%"\x3e\n\t\t\t\x3ctr\x3e\x3ctd style\x3d"width: 139px;"\x3e${uiNLS.android}\x3c/td\x3e\x3ctd\x3e\x3cselect dojoType\x3d"dijit.form.Select" id\x3d"theme_select_android_select" type\x3d"text" style\x3d"width: 150px;"\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\n\t\t\t\x3ctr\x3e\x3ctd\x3e${uiNLS.blackberry}\x3c/td\x3e\x3ctd\x3e\x3cselect dojoType\x3d"dijit.form.Select" id\x3d"theme_select_blackberry_select" type\x3d"text" style\x3d"width: 150px;"\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\n\t\t\t\x3ctr\x3e\x3ctd\x3e${uiNLS.ipad}\x3c/td\x3e\x3ctd\x3e\x3cselect dojoType\x3d"dijit.form.Select" id\x3d"theme_select_ipad_select" type\x3d"text" style\x3d"width: 150px;"\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\n\t\t\t\x3ctr\x3e\x3ctd\x3e${uiNLS.iphone}\x3c/td\x3e\x3ctd\x3e\x3cselect dojoType\x3d"dijit.form.Select" id\x3d"theme_select_iphone_select" type\x3d"text" style\x3d"width: 150px;"\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\n\t\t\t\x3ctr\x3e\x3ctd\x3e${uiNLS.other}\x3c/td\x3e\x3ctd\x3e\x3cselect dojoType\x3d"dijit.form.Select" id\x3d"theme_select_other_select" type\x3d"text" style\x3d"width: 150px;"\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\n\t\t\x3c/table\x3e\n\t\x3c/div\x3e\n\n\t\x3cdiv class\x3d"dijitDialogPaneActionBar"\x3e\n\t\t\x3cbutton dojoType\x3d"dijit.form.Button" id\x3d"theme_select_ok_button" label\x3d"${uiNLS.select}" class\x3d"maqPrimaryButton" type\x3d"submit"\x3e\x3c/button\x3e\n\t\t\x3cbutton dojoType\x3d"dijit.form.Button" id\x3d"theme_select_cancel_button" label\x3d"${commonNLS.buttonCancel}" class\x3d"maqSecondaryButton"\x3e\x3c/button\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n', "url:davinci/ve/newfile.template.html":'\x3c!DOCTYPE html\x3e\n\x3c!--\n\tTODO: margin:0 is a temporary hack. In previous releases, we always included dojo.css\n\twhich set margin:0, but we now only include dojo.css with the first Dojo widget\n\tadded to the page. That causes scrollbars when page was loaded initially,\n\twhich went want when first Dojo widget was added.\n\tNeed to rethink this whole business of width:100%;height:100%;margin:0\n--\x3e\n\x3chtml style\x3d"height: 100%; width: 100%; margin: 0;"\x3e\n\t\x3chead\x3e\n\t\t\x3cbase href\x3d"{baseUrl}"/\x3e\n\t\t\x3cmeta charset\x3d"utf-8"/\x3e\n\t\t\x3cscript src\x3d"{dojoUrl}" data-dojo-config\x3d"{dojoConfig}" {additionalDojoAttrs}\x3e\x3c/script\x3e\n\t\t\x3cscript\x3e\n\t\t\t// base dependencies needed for VE\n\t\t\trequire([\n\t\t\t\t\'dojo/parser\',\n\t\t\t\t\'dojox/html/_base\',\n\t\t\t\t\'dojo/domReady!\'\n\t\t\t\t{additionalModules}\n\t\t\t], top.loading{id});\n\t\t\x3c/script\x3e\n\t\t{themeHeadImports}\n\t\t{themeCssFiles}\n\t\x3c/head\x3e\n\t\x3cbody\x3e\n\t\x3c/body\x3e\n\x3c/html\x3e\n', "url:davinci/ui/templates/download.html":'\x3cdiv class\x3d\'downloadDialog\'\x3e\t \n\t\x3cdiv class\x3d"dijitDialogPaneContentArea"\x3e\n\t\t\x3cdiv style\x3d"margin-bottom: 20px"\x3e\n\t\t ${fileName}: \x3cinput data-dojo-type\x3d\'dijit/form/ValidationTextBox\' type\x3d"text" maxLength\x3d\'${_fileNameMaxLength}\' data-dojo-attach-point\x3d"__fileName" value\x3d\'${_projectName}.zip\' data-dojo-props\x3d"regExp:\'${_fileNameValidationRegExp}\', required:true, invalidMessage:\'${invalidDownloadFileName}\'"\x3e\x3c/input\x3e\n\t\t\x3c/div\x3e\n\t\t\n\t\t\x3cdiv data-dojo-attach-point\x3d"_selectionDiv"\x3e\x3c/div\x3e\n\t\t\x3cdiv data-dojo-attach-point\x3d"_tableDiv"\x3e\x3c/div\x3e\n\n\t\t\x3cdiv style\x3d"margin-top: 8px"\x3e\n\t\t Select: \x3ca href\x3d"javascript:;" data-dojo-attach-event\x3d"onclick: _selectAll"\x3e${selectAll}\x3c/a\x3e / \x3ca href\x3d"javascript:;" data-dojo-attach-event\x3d"onclick: _selectNone"\x3e${selectNone}\x3c/a\x3e\n\t\t\x3c/div\x3e\n\n\t\t\x3cdiv style\x3d"margin-top: 20px"\x3e\n\t\t\t\x3cinput data-dojo-type\x3d\'dijit/form/CheckBox\' type\x3d"text" data-dojo-attach-point\x3d"__fullSource" data-dojo-props\x3d""\x3e\x3c/input\x3e\x3cspan style\x3d\'padding-left: 3px;\'\x3e${downloadFullSource}\x3c/span\x3e\n\t\t\t\x3cbr\x3e\n\t\t\t\x3cinput data-dojo-type\x3d\'dijit/form/CheckBox\' type\x3d"text" data-dojo-attach-point\x3d"__optimize" data-dojo-props\x3d""\x3e\x3c/input\x3e\x3cspan style\x3d\'padding-left: 3px;\'\x3e${optimizeOption}\x3c/span\x3e\n\t\t\x3c/div\x3e\n \x3c/div\x3e\n\t\x3cdiv class\x3d"dijitDialogPaneActionBar"\x3e\n\t\t\x3cbutton data-dojo-type\x3d\'dijit/form/Button\' data-dojo-attach-point\x3d"_okButton" data-dojo-attach-event\x3d\'onClick:okButton\' label\x3d\'${downloadButtonLabel}\' class\x3d"maqPrimaryButton" type\x3d"submit"\x3e\x3c/button\x3e\n\t\t\x3cbutton data-dojo-type\x3d\'dijit/form/Button\' data-dojo-attach-event\x3d\'onClick:cancelButton\' label\x3d\'${buttonCancel}\' class\x3d"maqSecondaryButton"\x3e\x3c/button\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e', "url:davinci/ui/templates/downloadSelected.html":"\x3cdiv class\x3d'downloadDialog'\x3e\t \n\t\x3cdiv class\x3d\"dijitDialogPaneContentArea\"\x3e\n\t\t\x3cdiv style\x3d\"margin-bottom: 20px\"\x3e\n\t\t ${fileName}: \x3cinput data-dojo-type\x3d'dijit/form/ValidationTextBox' type\x3d\"text\" maxLength\x3d'${_fileNameMaxLength}' data-dojo-attach-point\x3d\"__fileName\" value\x3d'${_projectName}.zip' data-dojo-props\x3d\"regExp:'${_fileNameValidationRegExp}', required:true, invalidMessage:'${invalidDownloadFileName}'\"\x3e\x3c/input\x3e\n\t\t\x3c/div\x3e\n\t\t\n\t\t\x3cdiv data-dojo-attach-point\x3d\"_selectionDiv\"\x3e\x3c/div\x3e\n\n \x3c/div\x3e\n\t\x3cdiv class\x3d\"dijitDialogPaneActionBar\"\x3e\n\t\t\x3cbutton data-dojo-type\x3d'dijit/form/Button' data-dojo-attach-point\x3d\"_okButton\" data-dojo-attach-event\x3d'onClick:okButton' label\x3d'${downloadButtonLabel}' class\x3d\"maqPrimaryButton\" type\x3d\"submit\"\x3e\x3c/button\x3e\n\t\t\x3cbutton data-dojo-type\x3d'dijit/form/Button' data-dojo-attach-event\x3d'onClick:cancelButton' label\x3d'${buttonCancel}' class\x3d\"maqSecondaryButton\"\x3e\x3c/button\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e", "url:davinci/ui/templates/SaveAsWidgetForm.html":'\x3cdiv class\x3d\'dvSaveAsWidgetForm\'\x3e\n\t\x3cdiv class\x3d"dijitDialogPaneContentArea"\x3e\n\t\t\x3cp class\x3d"dvSawfDesc"\x3e${descriptionString}\x3c/p\x3e\n\t\t\x3cp\x3e\n\t\t\t\x3cspan class\x3d"dvSawfLabel"\x3e${nameString}:\x3c/span\x3e\n\t\t\t\x3cinput dojoType\x3d\'dijit.form.ValidationTextBox\' dojoAttachPoint\x3d"nameInputNode" trim\x3d"true"\n\t\t\t\t\tpromptMessage\x3d"${namePromptString}"\x3e\x3c/input\x3e\n\t\t\x3c/p\x3e\n\t\t\x3cp\x3e\n\t\t\t\x3cspan class\x3d"dvSawfLabel"\x3e\x3cspan class\x3d"dvRequired"\x3e*\x3c/span\x3e${idString}:\x3c/span\x3e\n\t\t\t\x3cinput dojoType\x3d\'dijit.form.ValidationTextBox\' dojoAttachPoint\x3d"idInputNode" trim\x3d"true"\n\t\t\t\t\trequired\x3d"true" intermediateChanges\x3d"true" promptMessage\x3d"${idPromptString}"\x3e\x3c/input\x3e\n\t\t\x3c/p\x3e\n\t\t\x3cp\x3e\n\t\t\t\x3cspan class\x3d"dvSawfLabel"\x3e${versionString}:\x3c/span\x3e\n\t\t\t\x3cinput dojoType\x3d\'dijit.form.ValidationTextBox\' dojoAttachPoint\x3d"versionInputNode"\n\t\t\t\t\ttrim\x3d"true"\x3e\x3c/input\x3e\n\t\t\x3c/p\x3e\n\t\t\x3ch4 class\x3d"dvRequired"\x3e*${requiredString}\x3c/h4\x3e\n\t\n\t\t\x3cdiv dojoType\x3d"dijit.TitlePane" title\x3d"${metadataTitle}" open\x3d"false"\x3e\n\t\t\t\x3ctextarea dojoType\x3d"dijit.form.SimpleTextarea" dojoAttachPoint\x3d"textareaNode" name\x3d"metadata"\n\t\t\t\t\trows\x3d"15" cols\x3d"50" intermediateChanges\x3d"true"\x3e${initialTextareaContent}\x3c/textarea\x3e\n\t\t\x3c/div\x3e\n\t\x3c/div\x3e\n \x3cdiv class\x3d"dijitDialogPaneActionBar"\x3e\n \x3cbutton dojoType\x3d"dijit.form.Button" dojoAttachPoint\x3d"buttonSave" class\x3d"maqPrimaryButton" type\x3d"submit" disabled\x3d"true"\x3e${saveString}\x3c/button\x3e\n \x3cbutton dojoType\x3d"dijit.form.Button" dojoAttachPoint\x3d"buttonCancel" type\x3d"button" class\x3d"maqSecondaryButton"\x3e${cancelString}\x3c/button\x3e\n \x3c/div\x3e\n\x3c/div\x3e\n', "url:davinci/ve/actions/templates/EnableApplicationStates.html":"\x3cdiv\x3e\n\t\x3cdiv class\x3d\"dijitDialogPaneContentArea\"\x3e\n\t\t\x3cdiv class\x3d'EnableAsStateContainerWidgetDiv'\x3e\n\t\t\t${veNls.EnableApplicationStatesCurrentWidget}:\n\t\t\t\x3cspan class\x3d'EnableAsStateContainerWidgetLabel' dojoAttachPoint\x3d'widgetLabel'\x3e\x3c/span\x3e\n\t\t\x3c/div\x3e\n\t\t\x3cdiv class\x3d'EnableAsStateContainerStatesDiv' dojoAttachPoint\x3d'statesListDiv'\x3e\n\t\t\t//Filled in by JavaScript logic\n\t\t\x3c/div\x3e\n\t\t\x3cdiv class\x3d'EnableAsStateContainerDescriptionDiv' dojoAttachPoint\x3d'description'\x3e\n\t\t\t//Filled in by JavaScript logic\n\t\t\x3c/div\x3e\n\t\t\x3cdiv class\x3d'EnableAsStateContainerCheckBoxDiv'\x3e\n\t\t\t\x3cinput dojoAttachPoint\x3d\"checkBoxWidget\" dojoType\x3d\"dijit.form.CheckBox\" dojoAttachEvent\x3d\"onKeyUp:_onKeyPress\" type\x3d\"text\"\x3e\x3c/input\x3e\n\t\t\t${veNls.EnableAsStateContainerWidgetLabel}\n\t\t\x3c/div\x3e\n\t\x3c/div\x3e\n\t\t\t\t\n\t\x3cdiv class\x3d\"dijitDialogPaneActionBar\"\x3e\n\t\t\x3cbutton dojoType\x3d'dijit.form.Button' dojoAttachPoint\x3d'okButton' label\x3d'${commonNls.buttonOk}' class\x3d\"maqPrimaryButton\"\x3e\x3c/button\x3e\n\t\t\x3cbutton dojoType\x3d'dijit.form.Button' dojoAttachPoint\x3d'cancelButton' label\x3d'${commonNls.buttonCancel}' class\x3d\"maqSecondaryButton\"\x3e\x3c/button\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n", "url:davinci/ve/actions/templates/AddState.html":'\x3cdiv\x3e\n\t\x3cdiv class\x3d"dijitDialogPaneContentArea"\x3e\n\t\t\x3cdiv class\x3d\'addStateNameDiv\'\x3e\n\t\t\t\x3clabel\x3e${veNls.stateLabel}:\x3c/label\x3e\x3cinput dojoAttachPoint\x3d"input" dojoType\x3d"dijit.form.TextBox" dojoAttachEvent\x3d"onKeyUp:_onKeyPress" type\x3d"text"\x3e\x3c/input\x3e\n\t\t\x3c/div\x3e\n\t\x3c/div\x3e\n\t\x3cdiv class\x3d"dijitDialogPaneActionBar"\x3e\n\t\t\x3cbutton dojoType\x3d\'dijit.form.Button\' dojoAttachPoint\x3d"okButton" dojoAttachEvent\x3d\'onClick:onOk\' label\x3d\'${veNls.createLabel}\' class\x3d"maqPrimaryButton" type\x3d"submit"\x3e\x3c/button\x3e\n\t\t\x3cbutton dojoType\x3d\'dijit.form.Button\' dojoAttachEvent\x3d\'onClick:onCancel\' label\x3d\'${commonNls.buttonCancel}\' class\x3d"maqSecondaryButton"\x3e\x3c/button\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n', "url:davinci/ve/actions/templates/ModifyState.html":'\x3cdiv\x3e\n\t\x3cdiv class\x3d"dijitDialogPaneContentArea"\x3e\n\t\t\x3cdiv class\x3d\'modify_state_container\'\x3e\n\t\t\t\x3cdiv data-dojo-type\x3d"dijit.form.DropDownButton" label\x3d\'${veNls.renameLabel}\' dojoAttachPoint\x3d"renameButton" class\x3d"modify_state_rename_button"\x3e\n\t\t\t\t\t\x3cdiv data-dojo-type\x3d"dijit.TooltipDialog" class\x3d\'modify_state_rename_container\' id\x3d\'state_rename_tooltip_dialog\'\x3e\n\t\t\t\t\t\t\x3cdiv\x3e\n\t\t\t\t\t\t\t\x3clabel for\x3d"state_rename_new_name"\x3e${veNls.newStateLabel}\x3c/label\x3e\n\t\t\t\t\t\t\t\x3cinput data-dojo-type\x3d"dijit.form.ValidationTextBox" id\x3d"state_rename_new_name" name\x3d"state_rename_new_name"\x3e\x3c/input\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\x3cdiv\x3e\n\t\t\t\t\t\t\t\x3cbutton id\x3d"state_rename_do_it" dojoType\x3d\'dijit.form.Button\' label\x3d\'${veNls.renameLabel}\'\x3e\x3c/button\x3e\n\t\t\t\t\t\t\t\x3cbutton id\x3d"state_rename_cancel" dojoType\x3d\'dijit.form.Button\' label\x3d\'${veNls.cancelLabel}\'\x3e\x3c/button\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t${veNls.stateLabel}: \x3cspan id\x3d\'modify_state_old_name\'\x3eaaa\x3c/span\x3e\n\t\t\x3c/div\x3e\n\t\t\x3cdiv class\x3d\'initial_state_row\'\x3e\n\t\t\t\x3cinput data-dojo-type\x3d"dijit.form.CheckBox" dojoAttachPoint\x3d"initialState" id\x3d"modify_state_initial_state" name\x3d"modify_state_initial_state"\x3e\x3c/input\x3e\n\t\t\t\x3clabel for\x3d\'modify_state_initial_state\'\x3e${veNls.initialStateCheckBoxLabel}\x3c/label\x3e\n\t\t\x3c/div\x3e\n\t\x3c/div\x3e\n\t\t\t\t\n\t\x3cdiv class\x3d"dijitDialogPaneActionBar"\x3e\n\t\t\x3cbutton dojoType\x3d\'dijit.form.Button\' dojoAttachPoint\x3d"okButton" label\x3d\'${veNls.modifyLabel}\' class\x3d"maqPrimaryButton"\x3e\x3c/button\x3e\n\t\t\x3cbutton dojoType\x3d\'dijit.form.Button\' dojoAttachPoint\x3d"cancelButton" label\x3d\'${commonNls.buttonCancel}\' class\x3d"maqSecondaryButton"\x3e\x3c/button\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n', "url:davinci/ve/actions/templates/ManageStates.html":"\x3cdiv\x3e\n\t\x3cdiv class\x3d\"dijitDialogPaneContentArea\"\x3e\n\t\t\x3cdiv class\x3d\"addStateDialogOptions\"\x3e\n\t\t\t\x3cdiv class\x3d'manageStatesStatesListDiv'\x3e\n\t\t\t\t\x3c!-- Filled in by JavaScript --\x3e\n\t\t\t\x3c/div\x3e\n\t\t\t\x3cdiv class\x3d'manageStatesCheckAcceleratorsDiv'\x3e\n\t\t\t\t${veNls.manageStatesCheckLabel}\n\t\t\t\t\x3ca href\x3d'' class\x3d'manageStatesCheckCurrentStateOnly'\x3e${veNls.manageStatesCheckCurrentStateOnly}\x3c/a\x3e\n\t\t\t\t/\n\t\t\t\t\x3ca href\x3d'' class\x3d'manageStatesCheckAll'\x3e${veNls.manageStatesCheckAll}\x3c/a\x3e\n\t\t\t\t/\n\t\t\t\t\x3ca href\x3d'' class\x3d'manageStatesUncheckAll'\x3e${veNls.manageStatesUncheckAll}\x3c/a\x3e\n\t\t\t\t/\n\t\t\t\t\x3ca href\x3d'' class\x3d'manageStatesCheckBackgroundOnly'\x3e${veNls.manageStatesCheckBackgroundOnly}\x3c/a\x3e\n\t\t\t\x3c/div\x3e\n\t\t\t\n\t\t\x3c/div\x3e\t\n\t\x3c/div\x3e\n\t\x3cdiv class\x3d\"dijitDialogPaneActionBar\"\x3e\n\t\t\x3cbutton dojoType\x3d'dijit.form.Button' dojoAttachPoint\x3d\"okButton\" dojoAttachEvent\x3d'onClick:onOk' label\x3d'${veNls.createLabel}' class\x3d\"maqPrimaryButton\" type\x3d\"submit\"\x3e\x3c/button\x3e\n\t\t\x3cbutton dojoType\x3d'dijit.form.Button' dojoAttachEvent\x3d'onClick:onCancel' label\x3d'${commonNls.buttonCancel}' class\x3d\"maqSecondaryButton\"\x3e\x3c/button\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n", "url:davinci/ve/template.html":'\n\x3c!DOCTYPE html\x3e\n\x3chtml\x3e\n\x3chead\x3e\n\x3cmeta charset\x3d"utf-8" /\x3e\n\x3cmeta http-equiv\x3d"X-UA-Compatible" content\x3d"IE\x3dedge" /\x3e\n\x3ctitle\x3eUntitled\x3c/title\x3e\n\x3c/head\x3e\n\x3cbody\x3e\n\x3c/body\x3e\n\x3c/html\x3e\n',"url:davinci/ve/prefs/HtmlEditPreferences.html":"\x3cdiv\x3e\n\t\x3ctable style\x3d'margin: 4px;' cellspacing\x3d'4'\x3e\n\t\t\x3ctbody\x3e\n\t\t\t\x3c!--\n\t\t\t\x3ctr\x3e\n\t\t\t\t\x3ctd\x3e${_loc.flowLayout}:\x3c/td\x3e\n\t\t\t\t\x3ctd\x3e\n\t\t\t\t\t\x3cdiv dojoAttachPoint\x3d'flowBoxNode'\x3e\x3c/div\x3e\n\t\t\t\t\x3c/td\x3e\n\t\t\t\x3c/tr\x3e\n\t\t\t--\x3e\n\t\t\t\x3ctr\x3e\n\t\t\t\t\x3ctd\x3e${_loc.snapToNearestWidget}:\x3c/td\x3e\n\t\t\t\t\x3ctd\x3e\n\t\t\t\t\t\x3cdiv dojoAttachPoint\x3d'snapNode'\x3e\x3c/div\x3e\n\t\t\t\t\x3c/td\x3e\n\t\t\t\x3c/tr\x3e\n\t\t\t\x3ctr\x3e\n\t\t\t\t\x3ctd\x3e${_loc.showPossibleParents}:\x3c/td\x3e\n\t\t\t\t\x3ctd\x3e\n\t\t\t\t\t\x3cdiv dojoAttachPoint\x3d'showPossibleParentsNode'\x3e\x3c/div\x3e\n\t\t\t\t\x3c/td\x3e\n\t\t\t\x3c/tr\x3e\n\t\t\t\x3ctr\x3e\n\t\t\t\t\x3ctd\x3e${_loc.warnOnCSSOverride}:\x3c/td\x3e\n\t\t\t\t\x3ctd\x3e\n\t\t\t\t\t\x3cdiv dojoAttachPoint\x3d'cssOverrideWarn'\x3e\x3c/div\x3e\n\t\t\t\t\x3c/td\x3e\n\t\t\t\x3c/tr\x3e\n\t\t\t\x3ctr\x3e\n\t\t\t\t\x3ctd\x3e${_loc.absoluteWidgetsZindex}:\x3c/td\x3e\n\t\t\t\t\x3ctd\x3e\n\t\t\t\t\t\x3cdiv dojoAttachPoint\x3d'absoluteWidgetsZindex'\x3e\x3c/div\x3e\n\t\t\t\t\x3c/td\x3e\n\t\t\t\x3c/tr\x3e\n\t\t\t\x3c!-- FIXME: Disabled for now. Ultimately, UI for this option should go to widget palette\n\t\t\t\x3ctr\x3e\n\t\t\t\t\x3ctd\x3e${_loc.widgetPaletteLayout}:\x3c/td\x3e\n\t\t\t\t\x3ctd\x3e\n\t\t\t\t\t\x3cdiv dojoAttachPoint\x3d'widgetPaletteLayout'\x3e\x3c/div\x3e\n\t\t\t\t\x3c/td\x3e\n\t\t\t\x3c/tr\x3e\n\t\t\t--\x3e\n\t\t\t\x3ctr\x3e\n\t\t\t\t\x3ctd\x3e${_loc.zazl}:\x3c/td\x3e\n\t\t\t\t\x3ctd\x3e\n\t\t\t\t\t\x3cdiv dojoAttachPoint\x3d'zazl'\x3e\x3c/div\x3e\n\t\t\t\t\x3c/td\x3e\n\t\t\t\x3c/tr\x3e\n\t\t\x3c/tbody\x3e\n\t\x3c/table\x3e\n\x3c/div\x3e"}}); define("davinci/davinci",[],function(){}); //# sourceMappingURL=davinci.js.map