function aa(a){throw a;}var h=void 0,l=null;function ba(){return function(a){return a}}function o(){return function(){}}function ca(a){return function(b){this[a]=b}}function ea(a){return function(){return this[a]}}function fa(a){return function(){return a}}var q,ga=ga||{},ha=this;function ia(a){for(var a=a.split("."),b=ha,c;c=a.shift();)if(b[c]!=l)b=b[c];else return l;return b}function ja(){} function ka(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array)return"array";else if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(c=="[object Window]")return"object";if(c=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(c=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; else if(b=="function"&&typeof a.call=="undefined")return"object";return b}function la(a){return ka(a)=="array"}function ma(a){var b=ka(a);return b=="array"||b=="object"&&typeof a.length=="number"}function na(a){return typeof a=="string"}function oa(a){return typeof a=="number"}function pa(a){return ka(a)=="function"}function qa(a){a=ka(a);return a=="object"||a=="array"||a=="function"}function ra(a){return a[sa]||(a[sa]=++ta)} var sa="closure_uid_"+Math.floor(Math.random()*2147483648).toString(36),ta=0;function ua(a,b,c){return a.call.apply(a.bind,arguments)}function va(a,b,c){a||aa(Error());if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}else return function(){return a.apply(b,arguments)}} function r(a,b,c){r=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?ua:va;return r.apply(l,arguments)}function ya(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}var za=Date.now||function(){return+new Date}; function Aa(a){if(ha.execScript)ha.execScript(a,"JavaScript");else if(ha.eval)if(Ba==l&&(ha.eval("var _et_ = 1;"),typeof ha._et_!="undefined"?(delete ha._et_,Ba=!0):Ba=!1),Ba)ha.eval(a);else{var b=ha.document,c=b.createElement("script");c.type="text/javascript";c.defer=!1;c.appendChild(b.createTextNode(a));b.body.appendChild(c);b.body.removeChild(c)}else aa(Error("goog.globalEval not available"))}var Ba=l; function t(a,b){var c=a.split("."),d=ha;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&b!==h?d[e]=b:d=d[e]?d[e]:d[e]={}}function Ca(a,b){function c(){}c.prototype=b.prototype;a.zd=b.prototype;a.prototype=new c;a.prototype.constructor=a};var Da,Ea;function y(a){if(la(a)){var b=l;A(a,function(a){b=b==l?y(a):b.add(y(a))});return b}if(na(a)){var c=$(document.createElement("span"));c.html(a);return c}if(a instanceof jQuery)return a;a.R=a.R||"div";b=$(document.createElement(a.R));a.Q&&b.addClass(a.Q);a.id&&b.attr("id",a.id);a.type&&b.attr("type",a.type);a.src&&b.attr("src",a.src);a.href&&b.attr("href",a.href);a.title&&b.attr("title",a.title);a.target&&b.attr("target",a.target);a.value&&b.val(a.value);a.html&&b.html(a.html);a.text&&b.html(a.text); a.css&&b.css(a.css);if(a.attr)for(c in a.attr)b.attr(c,a.attr[c]);if(a.children)for(c=0;c=a.Vi[0]?0:g;return a.add({Q:"grid_"+b+(c?" prefix_"+c:"")+(d?" suffix_"+d:"")+(f==0?" alpha":"")+(g>=a.Vi[0]?" omega":""),children:[e]})}function E(a,b){a.add(b.J);return b}q.Ie=ea("vu");function Ia(a){a.he[0]=0;a.add({Q:"spacer"})}q.clear=function(){this.he[0]=0;return this.add({Q:"clear"})};function Ja(a){a.he[0]=0;a.add({R:"hr"})} t("lucid.template.externalDom",function(a){function b(a){var d={R:a.tag,Q:a.classes,id:a.id,type:a.type,src:a.src,href:a.href,title:a.title,target:a.target,value:a.value,html:a.html,text:a.text,css:a.css,attr:a.attr,label:a.label,create:a.create,click:a.click};if(a.children){d.children=[];for(var e=0;e0)this.zg=this.rv,A(a.Lr,function(a){var c=new G(a.x+0.5*a.w,a.y+a.h),d=new G(a.x+0.5*a.w,a.y),e=Qa(b,a.data+"_caret",{qb:Ra(a,3),padding:2,Da:a,Sg:!0});if(!e.Ij)e= e.mb.getContext(),e.strokeStyle=config.hintLineColor,e.lineWidth=a.w,e.beginPath(),e.moveTo(c.x,c.y),e.lineTo(d.x,d.y),e.stroke(),e.fillStyle=config.hintLineColor,e.beginPath(),e.Wo(d.x-3,d.y-3,6,6),e.fill()});(!a.ze||a.ze.length==0)&&this.kg.hide();A(a.ze,function(a){var c=b.viewport.V[a.page],c=Ta(Pa(b.viewport,new G(a.Da.x,a.Da.y),c),Pa(b.viewport,new G(a.Da.x+a.Da.w,a.Da.y+a.Da.h),c)),d=a.id||Ua();if(a.outline)b.zg=b.$w,Va(b,d,c,a.rotation,na(a.outline)?new I(a.outline):l);b.zg=b.iw;if(a.kb)Wa(b, d,c,a.rotation);else{if(a.Yt){var e=a.rotation,f=Xa(c),g=config.resizeHandleSize/2+1;Ya&&(g*=3);var i=2*config.resizeHandleSize+g,j=Za(new G(c.x+0.5*c.w,c.y),f,e),f=Za(new G(c.x+0.5*c.w,c.y-i),f,e),e=Qa(b,d+"_rot",{qb:new H(f.x-i,f.y-i,i*2,i*2),padding:2,Da:c,rotation:e,Sg:!0});if(!e.Ij)e=e.mb.getContext(),e.strokeStyle="#999",e.lineWidth=config.handleLineWidth,e.beginPath(),e.moveTo(j.x,j.y),e.lineTo(f.x,f.y),e.stroke(),e.fillStyle="#fff",e.strokeStyle=config.handleColor,e.beginPath(),e.Wo(f.x-g, f.y-g,g*2,g*2),e.fill(),e.stroke()}a.Vt&&$a(b,d,c,a.rotation);if(b.Qk||a.Qk)d=b.viewport.V[a.page],c=db(a.Da,a.rotation),f=Math.round(a.Da.x),e=Math.round(a.Da.y),g=Math.round(a.Da.w),j=Math.round(a.Da.h),d=Pa(b.viewport,new G(c.x,c.y),d),f="
X: "+f+"  Y: "+e+"
",g="
W: "+g+"  H: "+j+"
",a="
"+Math.round((360-57.2957795*a.rotation)%360)+"°
",b.kg.empty().hide(),b.Yg.Od&&b.kg.append(f),b.Yg.size&&b.kg.append(g),b.Yg.rotation&&b.kg.append(a),b.Yg.Od|| b.Yg.size||b.Yg.rotation?b.kg.css({background:"rgba(64,64,64,.05)",border:"solid 1px rgba(0,0,0,.25)","font-size":"10px",padding:"5px",position:"absolute",left:d.x-b.kg.width()/2-5+c.w*b.viewport.scale/2+"px",top:d.y+c.h*b.viewport.scale+5+"px"}).show():b.kg.hide()}});if(a.Fi||a.Kp){this.zg=this.mw;var f=new I("#ffffc07f"),g=new I("#8033337f");A(a.Fi,function(a){var c=Pa(b.viewport,a,b.viewport.V[0]);eb(b,a.data,c.x,c.y,a.wj||15,a.lineWidth||config.handleLineWidth,f,g)});var i=new I(config.handleColor), j=new I("#fff");A(a.Kp,function(a){var c=Pa(b.viewport,a,b.viewport.V[0]);eb(b,a.data,c.x,c.y,a.wj||3,a.lineWidth||config.handleLineWidth,i,j)})}F(this.od,function(a,c){c.fs&&(c.mb.remove(),delete b.od[a])});this.zg=this.J}}; function Qa(a,b,c){var d;if(!(d=!a.od[b])){d=a.od[b];var e=c.Da,f=c.qb.x,g=c.qb.y;if(d.Da.w!=e.w||d.Da.h!=e.h||d.rotation!=(c.rotation||0))d=!1;else{if(d.Da.x!=e.x||d.Da.y!=e.y)d.Sg?(d.mb.get(0).style.left=f-d.Kr+"px",d.mb.get(0).style.top=g-d.Kr+"px"):(d.mb.get(0).style.left=f+"px",d.mb.get(0).style.top=g+"px");d=d.Ij=!0}d=!d}if(d)c.Sg?(f=c.qb,g=(g=c.padding||l)||10,d=f.x-g,e=f.y-g,f=fb(y({R:"canvas",attr:{width:f.w+g*2,height:f.h+g*2},css:{position:"absolute",left:d+"px",top:e+"px"}})),a.zg.append(f), f.getContext().translate(-d,-e),d=f):d=$(y({css:{position:"absolute",left:c.qb.x+"px",top:c.qb.y+"px",width:c.qb.w+"px",height:c.qb.h+"px"}})).css(c.css||{}).appendTo(a.zg),a.od[b]&&a.od[b].mb.remove(),a.od[b]={id:b,mb:d,rotation:c.rotation||0,Sg:!!c.Sg,Kr:c.padding||10};a.od[b].fs=!1;a.od[b].Da=c.Da;return a.od[b]} function eb(a,b,c,d,e,f,g,i){Ya&&(e*=3);a=Qa(a,b+"_hlc",{qb:new H(c-e,d-e,e*2,e*2),padding:2,Da:new H(c-e,d-e,e*2,e*2),Sg:!0});if(!a.Ij)a=a.mb.getContext(),a.fillStyle=gb(i),a.strokeStyle=gb(g),a.lineWidth=f,a.beginPath(),a.Wo(c-e,d-e,e*2,e*2),a.fill(),a.stroke()} function Va(a,b,c,d,e){var f=e||(new I(config.handleColor)).ga(0.5);if(d){var e=Xa(c),g=[];g.push(Za(new G(c.x-0.5,c.y-0.5),e,d));g.push(Za(new G(c.x+c.w+0.5,c.y-0.5),e,d));g.push(Za(new G(c.x+c.w+0.5,c.y+c.h+0.5),e,d));g.push(Za(new G(c.x-0.5,c.y+c.h+0.5),e,d));var i=g[3];A(g,function(e,g){var j=Math.round(Math.min(e.x,i.x)),k=Math.round(Math.min(e.y,i.y)),n=Math.round(Math.max(e.x,i.x)-j),v=Math.round(Math.max(e.y,i.y)-k),j=Qa(a,b+"_outline_"+g,{qb:new H(j,k,n,v),padding:2,Da:c,rotation:d,Sg:!0}); if(!j.Ij)j=j.mb.getContext(),j.strokeStyle=gb(f),j.lineWidth=1,j.beginPath(),j.moveTo(Math.round(i.x-0.5)+0.5,Math.round(i.y-0.5)+0.5),j.lineTo(Math.round(e.x-0.5)+0.5,Math.round(e.y-0.5)+0.5),j.stroke();i=e})}else{var e=Math.round(c.x-1),g=Math.round(c.y-1),j=Math.round(c.w),k=Math.round(c.h),n=Qa(a,b+"_outline",{qb:new H(e,g,j,k),css:{border:f.tb()+" solid 1px",opacity:f.ga()},Da:c,rotation:d});n.Ij||n.mb.css({left:e+"px",top:g+"px",width:j+"px",height:k+"px"})}} function Wa(a,b,c,d){var e=[],f=config.resizeHandleSize;Ya&&(f*=2);e.push(new G(c.x-0.5,c.y-0.5));e.push(new G(c.x+c.w+0.5,c.y-0.5));e.push(new G(c.x+c.w+0.5,c.y+c.h+0.5));e.push(new G(c.x-0.5,c.y+c.h+0.5));if(d){var g=Xa(c);A(e,function(a,b){e[b]=Za(a,g,d)})}A(e,function(e,g){var k=Math.round(e.x-0.5)+0.5-f/2,n=Math.round(e.y-0.5)+0.5-f/2,m=Qa(a,b+"_lockInd_"+g,{qb:new H(k,n,f,f),padding:2,Da:c,rotation:d,Sg:!0});if(!m.Ij)m=m.mb.getContext(),m.strokeStyle="#999",m.lineWidth=1,m.beginPath(),m.moveTo(k, n),m.lineTo(k+f,n+f),m.moveTo(k+f,n),m.lineTo(k,n+f),m.stroke()})} function $a(a,b,c,d){var e=[],f=config.handleLineWidth,g=0.5*f,i=config.resizeHandleSize;Ya&&(i*=3);e.push(new G(c.x,c.y));e.push(new G(c.x+c.w,c.y));e.push(new G(c.x+c.w,c.y+c.h));e.push(new G(c.x,c.y+c.h));if(d){var j=Xa(c);A(e,function(a,b){e[b]=Za(a,j,d)})}var k={background:"#fff",border:config.handleColor+" solid "+f+"px"};A(e,function(c,d){var e=Math.round(c.x-i/2-g),j=Math.round(c.y-i/2-g),u=Math.round(i-f);Qa(a,b+"_resize_"+d,{qb:new H(e,j,u,u),css:k,Da:new H(e,j,u,u)})})};function J(a,b,c){if(la(a))for(var d=0,e=a.length;d1?J(a,b,c):a=a[0];a in J.Wa||(J.Wa[a]=[]);J.Wa[a].push(b);c&&a in J.Gl&&b(J.get(a));return{name:a,Bd:b}}J.clear=function(a){delete J.Wa[a]};function hb(a){ib(J.Wa[a.name],a.Bd)}J.set=function(a,b){J.Gl[a]=b===h?l:b;a in J.Wa&&A(J.Wa[a],function(b){b(J.get(a))})};J.My=function(a){return!!(J.Wa[a]&&J.Wa[a].length>0)};J.get=function(a){return J.Gl[a]};J.Wa={};J.Gl={};t("lucid.listen",J); t("lucid.unlisten",hb);function kb(a){this.x=a.x;this.y=a.y;this.wb=a.w;this.ob=a.h;this.Ia=this.y;this.Kb=this.x;this.gb=this.Ia+this.ob;this.Ua=this.Kb+this.wb}function H(a,b,c,d,e){this.x=a;this.y=b;this.w=c;this.h=d;this.data=e}function lb(a,b){return!b?a:Math.round(a/b)*b}function mb(a,b){return!b?a:new H(lb(a.x,b),lb(a.y,b),lb(a.w,b),lb(a.h,b))}function nb(a){return new H(a.x,a.y,a.w,a.h)} function rb(a,b){var c=a.w/a.h;return c>b.w/b.h?(c=b.w/c,new H(b.x,b.y+b.h/2-c/2,b.w,c)):(c*=b.h,new H(b.x+b.w/2-c/2,b.y,c,b.h))}function sb(a,b){var c=a.w/a.h;return cb.x+b.w&&(c.w=b.x+b.w-c.x);c.y+c.h>b.y+b.h&&(c.h=b.y+b.h-c.y);return c}function zb(a,b){return a.x+a.wb.x+b.w?!1:a.y+a.h>b.y+b.h?!1:!0} function Ra(a,b){return new H(a.x-b,a.y-b,a.w+b*2,a.h+b*2)}function Xa(a){return new G(a.x+a.w/2,a.y+a.h/2)}function db(a,b,c){if(b==0)return a;var c=c||Xa(a),d=Za(new G(a.x,a.y),c,b),e=Za(new G(a.x+a.w,a.y),c,b),f=Za(new G(a.x,a.y+a.h),c,b),a=Za(new G(a.x+a.w,a.y+a.h),c,b);return new H(Math.min(d.x,e.x,f.x,a.x),Math.min(d.y,e.y,f.y,a.y),Math.max(d.x,e.x,f.x,a.x)-Math.min(d.x,e.x,f.x,a.x),Math.max(d.y,e.y,f.y,a.y)-Math.min(d.y,e.y,f.y,a.y))} function Cb(a){var b=Number.MAX_VALUE,c=Number.MAX_VALUE,d=Number.MIN_VALUE,e=Number.MIN_VALUE;A(a,function(a){b=Math.min(b,a.x);d=Math.max(d,a.x+a.w);c=Math.min(c,a.y);e=Math.max(e,a.y+a.h)});return new H(b,c,d-b,e-c)}function G(a,b,c){this.x=a;this.y=b;this.data=c}function Za(a,b,c){var a=Db(a,b),d=Math.cos(c),c=Math.sin(c);return new G(a.x*d-a.y*c+b.x,a.y*d+a.x*c+b.y)}function Eb(a,b){var c=Math.cos(b),d=Math.sin(b);return function(b){b=Db(b,a);return new G(b.x*c-b.y*d+a.x,b.y*c+b.x*d+a.y)}} function Fb(a,b){return a.xb.x+b.w?!1:a.y>b.y+b.h?!1:!0}function Db(a,b){return new G(a.x-b.x,a.y-b.y)}function Gb(a,b){return new G(a.x+b.x,a.y+b.y)}function Hb(a,b){return a.x*b.x+a.y*b.y}function Lb(a,b){return Mb(Db(a,b))}function Nb(a,b){return Db(a,b).x*Db(a,b).x+Db(a,b).y*Db(a,b).y}function Mb(a){return Math.sqrt(a.x*a.x+a.y*a.y)}function Ob(a,b,c){var d=b.y-c.y,e=c.x-b.x;return Math.abs(d*a.x+e*a.y+(b.x*c.y-b.y*c.x))/Math.sqrt(d*d+e*e)} function Pb(a,b,c,d){var e=(c.x-b.x)*(c.x-b.x)+(c.y-b.y)*(c.y-b.y),f=((a.x-b.x)*(c.x-b.x)+(a.y-b.y)*(c.y-b.y))/e,g=((b.y-a.y)*(c.x-b.x)-(b.x-a.x)*(c.y-b.y))/e;return d||f>=0&&f<=1?new G(b.x+f*(c.x-b.x),b.y+f*(c.y-b.y),{d:Math.abs(g)*Math.sqrt(e),t:f}):(d=(a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y),a=(a.x-c.x)*(a.x-c.x)+(a.y-c.y)*(a.y-c.y),d=0&&e<=1?a=d:(b=(a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y),a=(a.x-c.x)*(a.x-c.x)+(a.y-c.y)*(a.y-c.y),a=bMath.max(c.y,d.y))return!1;if(Math.max(a.x,b.x)Math.max(c.x,d.x))return!1;var e=(d.x-c.x)*(a.y-c.y)-(d.y-c.y)*(a.x-c.x),f=(b.x-a.x)*(a.y-c.y)-(b.y-a.y)*(a.x-c.x),c=(d.y-c.y)*(b.x-a.x)-(d.x-c.x)*(b.y-a.y);return c!=0?(e/=c,f/=c,0<=e&&e<=1&&0<=f&&f<=1?new G(a.x+e*(b.x-a.x),a.y+e*(b.y-a.y),e):!1):e==0||f==0?!0:!1} function Wb(a,b,c,d,e,f){this.x1=a;this.y1=b;this.x2=c;this.y2=d;this.x3=e;this.y3=f} function Xb(a,b,c,d,e,f,g){function i(c){return{Ia:c,x:a+n+Math.cos(c)*n,y:b+m+Math.sin(c)*m,Wx:function(b){return a+n+n*(Math.cos(c)-b*Math.sin(c))},Yx:function(a){return b+m+m*(Math.sin(c)+a*Math.cos(c))},Xx:function(b){return a+n+n*(Math.cos(c)- -b*Math.sin(c))},Zx:function(a){return b+m+m*(Math.sin(c)+-a*Math.cos(c))}}}e==l&&(e=0);f==l&&(f=Math.PI*2);var j=!1;if(e>f)var j=!0,k=e,e=f,f=k;for(var n=c/2,m=d/2,c=[],d=e;d=a&&c<=b:c<=a&&c>=b}function Zb(a,b){for(var c=0;c0&&$.ajax({type:"POST",url:"/words/check/"+a.language,data:d.join("&"),success:function(b){try{var d=gc(b),e;for(e in d)a.Xj[e]=d[e],la(d[e])&&A(d[e],function(b){a.Xj[b]=!0});for(var j in c)delete a.mr[j];$(document).triggerHandler("lucid.spellCheck.newData")}catch(k){}}});return e};function hc(a){var b=0,c;for(c in a)b++;return b}function ic(a){function b(a,d){if(la(a))for(var g=0;g100)return l;var c={};if(typeof a=="object"){typeof a.length!="undefined"&&(c=[]);for(var d in a){var e=typeof a[d];e=="object"?c[d]=K(a[d],b+1):e=="string"?c[d]=a[d]:e=="number"?c[d]=a[d]:e=="function"?c[d]=a[d]:e=="boolean"?a[d]==!0?c[d]=!0:c[d]=!1:e=="undefined"&&(c[d]=h)}}return c}function mc(a){if(a==l)return a;var b={},c;for(c in a)b[c]=a[c];return b} function Na(a,b){if(typeof a=="object"&&typeof b=="object")if(a==l&&b==l)return!0;else if(la(a)&&la(b)){if(a.length!=b.length)return!1;for(var c=0;cb&&a.startb&&a.startc&&(a.start+=b.length);if(a.start==c&&(d[a.name]||zc[a.name]))a.start+=b.length;a.end>=c&&a.end!=l&&!(a.end==c&&zc[a.name])&&(a.end==c&&(d[a.name]=!0),a.end+=b.length)});var e=Kc(a,c,c+b.length);if(e.length>1){var f=a.wa(e[0]);delete f.pageBreak;delete f.columnBreak;for(var g=1;g0;f--)if(a.text[f-1]=="\n"){e.push(f);break}f==0&&e.push(0);for(f=Gc(a,b)+1;f<=Gc(a,c);f++)a.text[f-1]=="\n"&&e.push(f);if(d)for(f=Gc(a,c);f<=a.text.length;f++)if(a.text[f-1]=="\n"||f==a.text.length){e.push(f);break}return e}function Sc(a,b,c){var d=Kc(a,b,c),e=[];A(a.za,function(a){a.end==l&&nc(d,a.start)&&e.push(a)});return e} function Tc(a,b,c){var d=[];a.za.sort(function(a,b){return b.start-a.start});A(a.za,function(a){a.start<=b&&a.end>=b&&d.push(a)});c||A(Sc(a,b,b),function(a){d.push(a)});return d}function Uc(a,b,c){var d=K(xc);A(Tc(a,b,c),function(a){d[a.name]=a.val});for(var e in xc)if(d[e]==l&&(!c||yc[e]))d[e]=xc[e];return d} function Vc(a,b,c,d){function e(a,b){for(var c in b)Na(a[c],b[c])||(a[c]=l);for(c in a)Na(a[c],b[c])||(a[c]=l)}if(b==c)return Uc(a,b,d);for(var f={},g=b;g=c)return[];var d=Hc(a,a.text.substr(b,c-b),b).f,e={},f=[];A(a.za,function(d){if(d.end==l){if(d.start>b&&d.start<=c){var g={};g[d.name]=d.val;f.push(Nc(a,d.start,l,g).f[0])}}else if(d.end>=b&&d.start<=c)e[d.name]=xc[d.name],g={},g[d.name]=d.val,f.push(Nc(a,d.startc?c:d.start,d.endc?c:d.end,g).f[0])});f.length>0&&(hc(e)>0&&d.push(Nc(a,b,c,e).f[0]),A(f,function(a){d.push(a)}));for(var g=0;g=b&&i.end<=c;i.end== l&&(j=i.start>b&&i.start<=c);j&&a.za.splice(g--,1);i.start>=b&&(i.start-=Math.min(c-b,i.start-b));i.end>=b&&i.end!=l&&(i.end-=Math.min(c-b,i.end-b))}a.text=a.text.substr(0,b)+a.text.substr(c);return d}function Wc(a,b){for(var c=0;c=b&&e.start<=c&&d.push(e)});d.sort(function(a,b){return a.start-b.start});return d}var f=a;if(b==c)return[];var g=[];if(c==l){var i={},j;for(j in d){i[j]=xc[j];for(var k=0;kc&&i[m].val!=d[j])k=i[m].start,i[m].start=c,i.splice(m,1,new sc(k,c,j,i[m].val)),a.za.push(i[m]);n={};n[j]=xc[j];g.push(Nc(a,b,c,K(n)).f[0]);for(k=0;ka.start}var c=a.text.split("\n"),d=0,e=[];A(c,function(a,b){bb.name?1:b.name>a.name?-1:0:a.start-b.start});var f=0;A(a.za,function(a){for(;f=e.length)return!1;for(var c=f;cc.name?1:c.name>a.name?-1:0:a.start-c.start});a.za.sort(function(a,c){return a.start==c.start?a.name>c.name?1:c.name>a.name?-1:0:a.start-c.start});return Na(this.za,a.za)}; function Yc(a,b,c,d){if(a.eh)for(var e=0;eb.text.length,i=f<0||f>b.text.length;if(c===!1==(f===!1)&&(f==c||g&&i))return a.eh[e].Eq}var j=[],k={};A(b.za,function(a){a.end==l?k[a.name]=a.val:a.start>=a.end||(j.push({index:a.start,name:a.name,val:a.val}),j.push({index:a.end,name:a.name,val:l}))});c!==!1&&A(Ec(b.text,d||"en"),function(a){a[1]!=c&&(j.push({index:a[0],name:"error",val:"rgba(200,0,0,.7)"}), j.push({index:a[1],name:"error",val:!1}))});j.sort(function(a,b){return a.index==b.index?a.val==l?-1:1:a.index-b.index});var n=[],m=0,p=new Zc({}),s={};A(j,function(a){if(a.index>m){var c=new Zc(p);c.text=b.text.substr(m,a.index-m);n.push(c);m=a.index}if(a.val==l)c=a.name,c in s?(s[c].shift(),c=s[c].length>0?s[c][0]:xc[c]):c=xc[c],a.val=c;else{var c=a.name,d=a.val;c in s||(s[c]=[]);s[c].unshift(d)}switch(a.name){case "font":p.ff=a.val;break;case "bold":p.bold=a.val;break;case "italic":p.ic=a.val; break;case "underline":p.Qf=a.val;break;case "strike":p.strike=a.val;break;case "locked":p.kb=a.val;break;case "size":p.size=a.val;break;case "color":p.color=a.val;break;case "error":p.error=a.val;break;case "inlineBlock":p.Ic=a.val}});if(m0){var u=new Zc(g);g.text=g.text.substr(0,g.text.length-1);u.text=u.text.substr(u.text.length- 1);u.qc=!0;u.bc=!1;n.splice(e+1,0,u)}else g.qc=!0,n[e+1].qc=!0;f=!0}else for(i=0;i=12352&&w<=40879)i>0?(u=new Zc(g),g.text=g.text.substr(0,i),u.text=u.text.substr(i),u.qc=!0,u.bc=!1,n.splice(e+1,0,u)):g.qc=!0,f=!1}}n.length==0&&n.push(new Zc({bc:!0, qc:!0,text:""}));ad(n);e=new bd(n,k);e.Bx=c;return e}q.Ja=function(a,b){var c=this,d=[],e=[],f=0;A(Xc(this),function(g){g.Eq=Yc(c,g,a===!1?!1:a-f,b);d.push(g.Eq);e.push(g);f+=g.text.length});this.eh=e;return d};q.serialize=function(){var a=[];A(this.za,function(b){a.push(b.serialize())});return{t:this.text,m:a}};function cd(a){return a.serialize()} function dd(a,b){var c;try{c=qa(a)?a:gc(a);qa(c)||aa("Not valid rich-text content; parsing as HTML.");var d=new Bc;d.text=c.t;A(c.m,function(a){d.za.push(uc(a))});return d}catch(e){return ed(a,b)}} function ed(a,b){function c(a){var b=e.length,g=d.length;A(a.childNodes,function(a){a.nodeType==3?(e+=f+(a.nodeValue.indexOf("&")!=-1?"document"in ha?fd(a.nodeValue):gd(a.nodeValue):a.nodeValue),f=""):a.tagName&&(a.tagName.toLowerCase()=="br"?(e+=f,f="\n"):c(a))});var i=e.length;(a=$(a).attr("style"))&&A(a.split(";"),function(a){a=a.split(":");a[0]&&(a[0]=hd(a[0]));a[1]&&(a[1]=hd(a[1]));a[0].toLowerCase()=="font-family"&&d.splice(g,0,new sc(b,i,"font",a[1]));a[0].toLowerCase()=="font-weight"&&d.splice(g, 0,new sc(b,i,"bold",a[1].toLowerCase()=="bold"));a[0].toLowerCase()=="font-style"&&d.splice(g,0,new sc(b,i,"italic",a[1].toLowerCase()=="italic"));a[0].toLowerCase()=="text-decoration"&&(d.splice(g,0,new sc(b,i,"underline",!!a[1].toLowerCase().match(/underline/))),d.splice(g,0,new sc(b,i,"strike",!!a[1].toLowerCase().match(/line-through/))));a[0].toLowerCase()=="font-size"&&d.splice(g,0,new sc(b,i,"size",parseInt(a[1].toLowerCase().replace("px",""),10)));a[0].toLowerCase()=="color"&&d.splice(g,0, new sc(b,i,"color",id(a[1],"#000000ff").tb.substr(1)));a[0].toLowerCase()=="locked"&&d.splice(g,0,new sc(b,i,"locked",!0))})}b&&b.toLowerCase()=="helvetica"?b="Liberation Sans":b&&b.toLowerCase()=="times"&&(b="Liberation Serif");var d=[],e="",f="",g=$(""+a+"").get(0);c(g);var i=new Bc;Pc(i,e,0);A(d,function(a){var b={};b[a.name]=a.val;Rc(i,a.start,a.end,b)});return i};var jd=function(){function a(){a.od.hasOwnProperty(arguments[0])||(a.od[arguments[0]]=a.parse(arguments[0]));return a.Qi.call(l,a.od[arguments[0]],arguments)}function b(a){return Object.prototype.toString.call(a).slice(8,-1).toLowerCase()}a.Qi=function(a,d){var e=1,f=a.length,g="",i=[],j,k,n,m;for(j=0;j=0?"+"+g:g;k=n[4]?n[4]=="0"?"0":n[4].charAt(1):" ";m=n[6]-String(g).length;if(n[6]){for(var p=[];m>0;p[--m]=k);k=p.join("")}else k="";i.push(n[5]?g+k:k+g)}return i.join("")};a.od={};a.parse=function(a){for(var b=[],e=[],f=0;a;){if((b=/^[^\x25]+/.exec(a))!==l)e.push(b[0]);else if((b=/^\x25{2}/.exec(a))!==l)e.push("%");else if((b=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(a))!== l){if(b[2]){f|=1;var g=[],i=b[2],j=[];if((j=/^([a-z_][a-z_\d]*)/i.exec(i))!==l)for(g.push(j[1]);(i=i.substring(j[0].length))!=="";)(j=/^\.([a-z_][a-z_\d]*)/i.exec(i))!==l?g.push(j[1]):(j=/^\[(\d+)\]/.exec(i))!==l?g.push(j[1]):aa("[sprintf] huh?");else aa("[sprintf] huh?");b[2]=g}else f|=2;f===3&&aa("[sprintf] mixing positional and named placeholders is not (yet) supported");e.push(b)}else aa("[sprintf] huh?");a=a.substring(b[0].length)}return e};return a}();function kd(a,b){this.name=a;this.Kx=b}kd.prototype.key=function(){return"lcmtx-"+this.name};function ld(a,b){var c=a.key(),d=(new Date).getTime();if(d-(window.localStorage[c]||0)>1E3*a.Kx||b){try{window.localStorage[c]=d}catch(e){return!1}return!0}return!1}kd.prototype.pc=function(){window.localStorage[this.key()]&&delete window.localStorage[this.key()]};function gc(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x10-\x1f\x80-\x9f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}aa(Error("Invalid JSON string: "+a))}function md(a){return eval("("+a+")")}function nd(a){return(new od).serialize(a)}function od(){} od.prototype.serialize=function(a){var b=[];pd(this,a,b);return b.join("")}; function pd(a,b,c){switch(typeof b){case "string":qd(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(b==l){c.push("null");break}if(la(b)){var d=b.length;c.push("[");for(var e="",f=0;f")!=-1&&(a=a.replace(zd,">"));a.indexOf('"')!=-1&&(a=a.replace(Ad,"""));return a}}var xd=/&/g,yd=//g,Ad=/\"/g,Bd=/[&<>\"]/; function fd(a){var b={"&":"&","<":"<",">":">",""":'"'},c=document.createElement("div");return a.replace(Cd,function(a,e){var f=b[a];if(f)return f;if(e.charAt(0)=="#"){var g=Number("0"+e.substr(1));isNaN(g)||(f=String.fromCharCode(g))}if(!f)c.innerHTML=a+" ",f=c.firstChild.nodeValue.slice(0,-1);return b[a]=f})} function gd(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if(c.charAt(0)=="#"){var d=Number("0"+c.substr(1));if(!isNaN(d))return String.fromCharCode(d)}return a}})}var Cd=/&([^;\s<&]+);?/g;function Dd(a,b){var c=String(a),d=c.indexOf(".");if(d==-1)d=c.length;d=Math.max(0,b-d);return Array(d+1).join("0")+c}function Ed(a){return Array.prototype.join.call(arguments,"")} function Fd(a,b){for(var c=0,d=hd(String(a)).split("."),e=hd(String(b)).split("."),f=Math.max(d.length,e.length),g=0;c==0&&gb)return 1;return 0};var Hd=!1,Id=!1;$(window).load(function(){Hd=!0});var Jd=0;$(document).ajaxStart(function(){Jd++});$(document).ajaxStop(function(){Jd--;Hd&&Jd<=0&&(Id=!0,$(document).triggerHandler("ajaxSettled"))});function Kd(a){function b(){setTimeout(a,1)}Id?b():$(document).bind("ajaxSettled",b)} function Ld(a){var b="";$(a).find(":enabled:input[name][type!=submit][type!=checkbox][type!=radio],input[type=hidden]").each(function(){b+=b==""?"":"&";b+=encodeURIComponent(this.name)+"="+encodeURIComponent(this.value)});$(a).find(":enabled:checked[name]").each(function(){b+=b==""?"":"&";b+=encodeURIComponent(this.name)+"="+encodeURIComponent(this.value)});return b} function Md(){var a={};$("#ajaxForm-content").find(":enabled:input[name][type!=submit][type!=checkbox][type!=radio],input[type=hidden]").each(function(){a[this.name]=this.value});$("#ajaxForm-content").find(":enabled:checked[name]").each(function(){a[this.name]=this.value});return a}var Nd=l;function Od(){if(Nd)return Nd;var a,b;b=$('
').appendTo("body");a=b.children();a=a.innerWidth()-a.height(99).innerWidth();b.remove();return Nd=a} var Pd={Shift:"⇧",Ctrl:"⌘",Alt:"⌥"};function Qd(a){for(var b="",c=a[0],b=Rd&&Pd[c]?Pd[c]:c,d=1;d0)e=j.Control[j.Control.length-1].x3,f=j.Control[j.Control.length-1].y3}a[g].Actions.length&&a[g].Actions[a[g].Actions.length- 1].Action=="close"&&a[g].Actions[0].Action=="move"&&a[g].Actions[1].Action=="line"&&(k=a[g].Actions[1],n=d(a[g].Actions[0].x,a[g].Actions[0].y,e,f),m=d(a[g].Actions[0].x,a[g].Actions[0].y,k.x,k.y),a[g].Actions.splice(1,0,{Action:"curve",Control:[{x1:a[g].Actions[0].x+n.x*b*0.4477152502,y1:a[g].Actions[0].y+n.y*b*0.4477152502,x2:a[g].Actions[0].x+m.x*b*0.4477152502,y2:a[g].Actions[0].y+m.y*b*0.4477152502,x3:a[g].Actions[0].x+m.x*b,y3:a[g].Actions[0].y+m.y*b}]}),a[g].Actions[0].x+=n.x*b,a[g].Actions[0].y+= n.y*b)}return a}function Ua(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=Math.random()*16|0;return(a=="x"?b:b&3|8).toString(16)})} function Td(a){if(!a.match(/^[^@]{1,64}@[^@]{1,255}$/))return!1;for(var a=a.split("@"),b=a[0].split("."),c=0;c]+)>/g," $1 "),a=a.replace(/[\s,]+/g," "),a=a.split(" "),b=[],c=0;cthis.max?this.max:a"+a+"
"),b=a.find("form:last").get(0);$(b).hasClass("inline")&&$(b).find("label").addClass("inline");a='
'+$(b).html()+"
";$("body").append("
"+a+"
");$("#jqFormSizeCheckerFloat").find("p").css("maxWidth", "400px");var k=$("#jqFormSizeCheckerFloat").width();$("#jqFormSizeChecker").remove();g.kd(a);g.J.css("width",k+50+"px");g.open();g.J.find("a :not(.samepage)").attr("target","_blank");g.J.find("input:visible:first").focus();g.J.find("input[name=cancel]").attr("onclick","").click(function(){g.close()});g.J.find("input[type=submit]").click(function(a){a.preventDefault();f.Yd=l;var d=!0;$.ajax({type:b.method,url:b.action,data:Ld(g.J),success:function(a){$("
"+a+"
").find(".error-message,.form-error").size()> 0?(xe(a,!0,c),d=!1):c&&c(a)},error:o(),complete:function(){d&&g.close()}})});g.J.find("a.ajax_form_button").click(function(a){f.Yd=l;a.preventDefault();var b=!1;$.ajax({type:"GET",url:$(this).attr("href"),data:"NoSSLChange=true",success:function(a){try{if($("
"+a+"
").find("form").size()>0){g.close();e(a);b=!0;return}}catch(d){}c&&c()},error:o(),complete:function(){b||g.close()}})});g.J.find(".offline_form_button").click(function(){var a=Md();c&&c(a);g.close()})}var f=ye;if(!(f.Yd&&f.Yd== a)){f.Yd=a;if(!f.dialog)f.dialog=new se({},{width:700,Ld:!0,$c:!0});var g=f.dialog;b?e(a):$.ajax({type:"GET",url:a,success:function(a){e(a)}})}}var ye={Yd:l};t("lucid.view.textAreaPrompt",we);t("lucid.view.prompt",ve);t("lucid.view.alert",L);t("lucid.view.confirm",ue);function ze(a,b){for(var c=0;cYour browser is denying LucidChart additional storage. \nLucidChart will now disable offline support until this problem is\nresolved.

\n

Please install the app here to increase this limit. If you have already installed\nthis app in the past, you may need to uninstall it and reinstall\nfrom the link above.

"):L("Your browser is denying LucidChart additional storage. \nLucidChart will now disable offline support until this problem is\nresolved."): L("

An offline storage error has occurred: "+d.message+"

\n

LucidChart will now disable offline support.

");var d=new ne(a),f;for(f in d)b[f]=d[f];for(f in b)!f in d&&delete b[f];$(document).triggerHandler("offlineRefreshAll")}};var d=262144E3;if(ee||ce)d=52428800;this.db=openDatabase("lucid10-"+a,"1.0","LucidChart offline storage",d);this.db.readTransaction(function(a){b.executeSql(a,"select count(*) from documents")},function(){b.db.transaction(function(a){b.executeSql(a,"create table documents(id, saved, title, created, creator_id, size, template, data, state, pdfdata)"); b.executeSql(a,"create table actions(id, data)");b.executeSql(a,"create table branches(id, data)");b.executeSql(a,"create table folder_entries(id, data)");b.executeSql(a,"create table fonts(url, data)");b.executeSql(a,"create table images(url, data)")},b.error,function(){b.ready=!0})},function(){b.ready=!0})}q=Ae.prototype;q.executeSql=function(a,b,c,d,e){a.executeSql(b,c,function(a,b){d&&d(a,b)},e)}; q.wq=function(a,b){var c=this;this.ready?this.db.transaction(function(d){c.executeSql(d,"delete from fonts where url=?",[a]);c.executeSql(d,"insert into fonts(url, data) values(?,?)",[a,b])},this.error):setTimeout(r(this.wq,this,a,b),10)};q.jp=function(a,b){var c=this;this.ready?this.db.readTransaction(function(d){c.executeSql(d,"select data from fonts where url=?",[a],function(a,c){c.rows.length==0?b(l):b(c.rows.item(0).data)})},this.error):setTimeout(r(this.jp,this,a,b),10)}; q.kp=function(a){var b=this;this.ready?this.db.readTransaction(function(c){b.executeSql(c,"select url from fonts",[],function(b,c){c.rows.length==0?a(l):a(c.rows.item(0).data)})},this.error):setTimeout(r(this.kp,this,a),10)};q.xq=function(a,b){var c=this;this.ready?this.db.transaction(function(d){c.executeSql(d,"delete from images where url=?",[a]);c.executeSql(d,"insert into images(url, data) values(?,?)",[a,b])},this.error):setTimeout(r(this.xq,this,a,b),10)}; q.Ig=function(a,b){var c=this;this.ready?this.db.readTransaction(function(d){c.executeSql(d,"select data from images where url=?",[a],function(a,c){c.rows.length==0?b(l):b(c.rows.item(0).data)})},this.error):setTimeout(r(this.Ig,this,a,b),10)};q.Vr=function(a){a={id:Ua(),document_id:a,base:0,changes:[]};this.lh(a);return a};q.Sn=function(a){return ld(new kd(a.id,15))};q.Es=function(a){ld(new kd(a.id,15),!0)};q.Fu=function(a){(new kd(a.id,15)).pc()}; q.lh=function(a,b){var c=this;this.ready?this.db.transaction(function(b){c.executeSql(b,"delete from branches where id=?",[a.id]);c.executeSql(b,"insert into branches(id, data) values(?,?)",[a.id,nd(a)])},this.error,b||o()):setTimeout(r(this.lh,this,a,b),10)};q.Eh=function(a){var b=this;this.ready?this.db.transaction(function(c){b.executeSql(c,"delete from branches where id=?",[a.id])},this.error):setTimeout(r(this.Eh,this,a),10)}; q.ip=function(a,b){var c=this;this.ready?this.db.readTransaction(function(d){c.executeSql(d,"select data from branches where id=?",[a],function(a,c){c.rows.length==0?b(l):b(md(c.rows.item(0).data))})},this.error):setTimeout(r(this.ip,this,a,b),10)}; q.tm=function(a,b){var c=this;this.ready?this.db.readTransaction(function(d){c.executeSql(d,"select data from branches",[],function(c,d){var g=[];ze(d,function(b){b=md(b.data);(a==l||a==b.document_id)&&g.push(b)});b(g)})},this.error):setTimeout(r(this.tm,this,a,b),10)};q.Mo=function(a){var b=this;this.ready?this.db.transaction(function(c){b.executeSql(c,"delete from documents where id=?",[a])}):setTimeout(r(this.Mo,this,a),10)}; q.vn=function(a,b,c,d){var e=this;this.ready?this.db.transaction(function(d){if(b){var g=[],i=[];A(a,function(a){g.push(a.Document.id);i.push("?")});A(c,function(a){g.push(a);i.push("?")});e.executeSql(d,"delete from documents where id not in ("+i.join(",")+")",g)}A(a,function(a){var c=""+a.Document.id;b||e.executeSql(d,"delete from documents where id=?",[c]);var g=a.Document.state,i=a.Document.pdfdata;delete a.Document.state;delete a.Document.pdfdata;e.executeSql(d,"insert into documents(id, data, saved, title, size, created, creator_id, template, state, pdfdata) values(?,?,?,?,?,?,?,?,?,?)", [c,nd(a),a.Document.saved,a.Document.title.toLowerCase(),jd("%020d",parseInt(a.Document.size,10)),a.Document.created,a.Document.creator_id,a.Template&&a.Template.id?1:0,g,i]);a.Document.state=g;a.Document.pdfdata=i})},this.error,d):setTimeout(r(this.vn,this,a,b,d),10)}; q.Zb=function(a,b){var c=this,a=""+a;this.ready?this.db.readTransaction(function(d){c.executeSql(d,"select data, state, pdfdata from documents where id=?",[a],function(a,c){if(c.rows.length>0){var d=md(c.rows.item(0).data);d.Document.state=c.rows.item(0).state;d.Document.pdfdata=c.rows.item(0).pdfdata;b(d)}else b(l)})},this.error):setTimeout(r(this.Zb,this,a,b),10)}; q.sk=function(a,b){var c=this;if(this.ready){for(var d=[],e=0;e0;)this.dd[0].destroy();this.dd=[];this.dj={}};q.destroy=function(){this.J.remove();this.J=l;this.empty()}; q.resize=function(a,b){this.width=a;this.height=b;this.J.get(0).style.width=this.width+"px";this.J.get(0).style.height=this.height+"px";this.J.triggerHandler("resize")};function Ge(a,b){b.te=a;return!a.dj[b.id]?(a.dd.push(b),a.J.get(0).appendChild(b.J.get(0)),a.dj[b.id]=!0):!1}function He(a,b){if(a.dj[b.id])a.dd.splice(oc(a.dd,b),1),b.J&&b.J.remove(),b.te=l,delete a.dj[b.id]} function Ie(a,b){for(var c=0,d=0;d")); function Me(a){var b=Le.getContext(),c=a.canvas.width,d=a.canvas.height;b.canvas.width=c;b.canvas.height=d;b.clearRect(0,0,c,d);b.drawImage(a.canvas,0,0,c,d);return b};var Ne,$c=/\s/.test("\u00a0")?/[^\S\u00a0]/:/\s/;function Zc(a){this.text=a.text||"";this.ff=a.ff||"Liberation Sans";this.size=a.size||config.defaultTextSize;this.color=a.color||"000000";if(a.qc)this.qc=a.qc;if(a.bc)this.bc=a.bc;if(a.Zh)this.Zh=a.Zh;if(a.Ei)this.Ei=a.Ei;if(a.bold)this.bold=a.bold;if(a.ic)this.ic=a.ic;if(a.Qf)this.Qf=a.Qf;if(a.strike)this.strike=a.strike;if(a.error)this.error=a.error;if(a.Ic)this.Ic=a.Ic;if(a.kb)this.kb=a.kb} Zc.prototype.serialize=function(){return{t:this.text,f:this.ff,s:this.size,c:this.color,w:!!this.qc,l:!!this.bc,p:!!this.Zh,cb:!!this.Ei,b:!!this.bold,i:!!this.ic,u:!!this.Qf,k:!!this.strike,o:!!this.kb,ib:this.Ic}};function bd(a,b){this.content=a;this.style=b;for(var c in yc)c in this.style||(this.style[c]=xc[c])} function Oe(a){this.yb=a.face["font-family"];this.bold=a.face["font-weight"]>400;this.ic=nc(["italic","oblique"],a.face["font-style"].toLowerCase());this.Ga=a.face.ascent;this.Mb=a.face.descent;this.kc=a.face["units-per-em"];this.ni=a.face["underline-position"];this.Vn=a.face["underline-thickness"];this.De=a.w;this.yk=a.glyphs}var Pe={},Qe={},Re={}; function Se(){window.fontUrl==l&&(window.fontUrl="/fonts/user/0/");$.ajax({type:"GET",url:window.fontUrl,success:function(a){eval(a);J.set("optionBar.refresh");J.set("managefonts.refresh")}});Te={}}function Ue(){var a={},b=[],c;for(c in Pe)b.push(c);b.sort();A(b,function(b){a[b]=Pe[b]});return a}var Ve=l; function We(a){var b=[],c={"Liberation Sans":1},d;for(d in Te)A(Te[d],function(a){if(a!="empty"&&d!="Liberation Sans")return c[d]=1,!1});Ve?F(Ve,function(a){c[a]=1}):Xe().kp(function(b){Ve={};b!=l&&b.length>0&&A(b,function(a){window.fontUrl==l&&(window.fontUrl="/fonts/user/0/");a=a.replace(window.fontUrl,"").replace(/\/[\s\S]*$/,"");Ve[decodeURIComponent(a)]=1});a&&a()});F(c,function(a){b.push(a)});b.sort();return b}var Te={},Ye=l,Ze=0;function Xe(){Ye==l&&(Ye=De("0"));return Ye} function $e(a,b){Te[a]==l&&(Te[a]=[]);if(!nc(Te[a],b)){Te[a].push(b);window.fontUrl==l&&(window.fontUrl="/fonts/user/0/");var c=window.fontUrl+encodeURIComponent(a)+"/"+encodeURIComponent(b),d=function(a){eval(a);af={};bf={};setTimeout(function(){$(document).trigger("fontLoaded");J.set("font.loaded")},1)};Xe().jp(c,function(a){a==l?(Ze++,$.ajax({type:"GET",cache:!0,timeout:9E4,async:!0,url:c,success:function(a){d(a);Xe().wq(c,a)},complete:function(){Ze--}})):d(a)});return!1}return!0} function cf(a,b){var c={"Basic Latin":["\x00","\u007f"],"C1 Controls and Latin-1 Supplement":["\u0080","\u00ff"],"Latin Extended-A":["\u0100","\u017f"],"Latin Extended-B":["\u0180","\u024f"],"IPA Extensions":["\u0250","\u02af"],"Spacing Modifier Letters":["\u02b0","\u02ff"],"Combining Diacritical Marks":["\u0300","\u036f"],"Greek-Coptic":["\u0370","\u03ff"],Cyrillic:["\u0400","\u04ff"],"Cyrillic Supplement":["\u0500","\u052f"],Armenian:["\u0530","\u058f"],Hebrew:["\u0590","\u05ff"],Arabic:["\u0600", "\u06ff"],Syriac:["\u0700","\u074f"],Thaana:["\u0780","\u07bf"],Devanagari:["\u0900","\u097f"],"Bengali-Assamese":["\u0980","\u09ff"],Gurmukhi:["\u0a00","\u0a7f"],Gujarati:["\u0a80","\u0aff"],Oriya:["\u0b00","\u0b7f"],Tamil:["\u0b80","\u0bff"],Telugu:["\u0c00","\u0c7f"],Kannada:["\u0c80","\u0cff"],Malayalam:["\u0d00","\u0dff"],Sinhala:["\u0d80","\u0dff"],Thai:["\u0e00","\u0e7f"],Lao:["\u0e80","\u0eff"],Tibetan:["\u0f00","\u0fff"],Myanmar:["\u1000","\u109f"],Georgian:["\u10a0","\u10ff"],"Hangul Jamo":["\u1100", "\u11ff"],Ethiopic:["\u1200","\u137f"],Cherokee:["\u13a0","\u13ff"],"Unified Canadian Aboriginal Syllabics":["\u1400","\u167f"],Ogham:["\u1680","\u169f"],Runic:["\u16a0","\u16ff"],Tagalog:["\u1700","\u171f"],Hanunoo:["\u1720","\u173f"],Buhid:["\u1740","\u175f"],Tagbanwa:["\u1760","\u177f"],Khmer:["\u1780","\u17ff"],Mongolian:["\u1800","\u18af"],Limbu:["\u1900","\u194f"],"Tai Le":["\u1950","\u197f"],"Khmer Symbols":["\u19e0","\u19ff"],"Phonetic Extensions":["\u1d00","\u1d7f"],"Latin Extended Additional":["\u1e00", "\u1eff"],"Greek Extended":["\u1f00","\u1fff"],"General Punctuation":["\u2000","\u206f"],"Superscripts and Subscripts":["\u2070","\u209f"],"Currency Symbols":["\u20a0","\u20cf"],"Combining Diacritical Marks for Symbols":["\u20d0","\u20ff"],"Letterlike Symbols":["\u2100","\u214f"],"Number Forms":["\u2150","\u218f"],Arrows:["\u2190","\u21ff"],"Mathematical Operators":["\u2200","\u22ff"],"Miscellaneous Technical":["\u2300","\u23ff"],"Control Pictures":["\u2400","\u243f"],"Optical Character Recognition":["\u2440", "\u245f"],"Enclosed Alphanumerics":["\u2460","\u24ff"],"Box Drawing":["\u2500","\u257f"],"Block Elements":["\u2580","\u259f"],"Geometric Shapes":["\u25a0","\u25ff"],"Miscellaneous Symbols":["\u2600","\u26ff"],Dingbats:["\u2700","\u27bf"],"Miscellaneous Mathematical Symbols-A":["\u27c0","\u27ef"],"Supplemental Arrows-A":["\u27f0","\u27ff"],"Braille Patterns":["\u2800","\u28ff"],"Supplemental Arrows-B":["\u2900","\u297f"],"Miscellaneous Mathematical Symbols-B":["\u2980","\u29ff"],"Supplemental Mathematical Operators":["\u2a00", "\u2aff"],"Miscellaneous Symbols and Arrows":["\u2b00","\u2bff"],"CJK Radicals Supplement":["\u2e80","\u2eff"],"Kangxi Radicals":["\u2f00","\u2fdf"],"Ideographic Description Characters":["\u2ff0","\u2fff"],"CJK Symbols and Punctuation":["\u3000","\u303f"],Hiragana:["\u3040","\u309f"],Katakana:["\u30a0","\u30ff"],Bopomofo:["\u3100","\u312f"],"Hangul Compatibility Jamo":["\u3130","\u318f"],"Kanbun (Kunten)":["\u3190","\u319f"],"Bopomofo Extended":["\u31a0","\u31bf"],"Katakana Phonetic Extensions":["\u31f0", "\u31ff"],"Enclosed CJK Letters and Months":["\u3200","\u32ff"],"CJK Compatibility":["\u3300","\u33ff"],"CJK Unified Ideographs Extension A":["\u3400","\u4dbf"],"Yijing Hexagram Symbols":["\u4dc0","\u4dff"],"CJK Unified Ideographs4E":["\u4e00","\u4eff"],"CJK Unified Ideographs4F":["\u4f00","\u4fff"],"CJK Unified Ideographs50":["\u5000","\u50ff"],"CJK Unified Ideographs51":["\u5100","\u51ff"],"CJK Unified Ideographs52":["\u5200","\u52ff"],"CJK Unified Ideographs53":["\u5300","\u53ff"],"CJK Unified Ideographs54":["\u5400", "\u54ff"],"CJK Unified Ideographs55":["\u5500","\u55ff"],"CJK Unified Ideographs56":["\u5600","\u56ff"],"CJK Unified Ideographs57":["\u5700","\u57ff"],"CJK Unified Ideographs58":["\u5800","\u58ff"],"CJK Unified Ideographs59":["\u5900","\u59ff"],"CJK Unified Ideographs5A":["\u5a00","\u5aff"],"CJK Unified Ideographs5B":["\u5b00","\u5bff"],"CJK Unified Ideographs5C":["\u5c00","\u5cff"],"CJK Unified Ideographs5D":["\u5d00","\u5dff"],"CJK Unified Ideographs5E":["\u5e00","\u5eff"],"CJK Unified Ideographs5F":["\u5f00", "\u5fff"],"CJK Unified Ideographs60":["\u6000","\u60ff"],"CJK Unified Ideographs61":["\u6100","\u61ff"],"CJK Unified Ideographs62":["\u6200","\u62ff"],"CJK Unified Ideographs63":["\u6300","\u63ff"],"CJK Unified Ideographs64":["\u6400","\u64ff"],"CJK Unified Ideographs65":["\u6500","\u65ff"],"CJK Unified Ideographs66":["\u6600","\u66ff"],"CJK Unified Ideographs67":["\u6700","\u67ff"],"CJK Unified Ideographs68":["\u6800","\u68ff"],"CJK Unified Ideographs69":["\u6900","\u69ff"],"CJK Unified Ideographs6A":["\u6a00", "\u6aff"],"CJK Unified Ideographs6B":["\u6b00","\u6bff"],"CJK Unified Ideographs6C":["\u6c00","\u6cff"],"CJK Unified Ideographs6D":["\u6d00","\u6dff"],"CJK Unified Ideographs6E":["\u6e00","\u6eff"],"CJK Unified Ideographs6F":["\u6f00","\u6fff"],"CJK Unified Ideographs70":["\u7000","\u70ff"],"CJK Unified Ideographs71":["\u7100","\u71ff"],"CJK Unified Ideographs72":["\u7200","\u72ff"],"CJK Unified Ideographs73":["\u7300","\u73ff"],"CJK Unified Ideographs74":["\u7400","\u74ff"],"CJK Unified Ideographs75":["\u7500", "\u75ff"],"CJK Unified Ideographs76":["\u7600","\u76ff"],"CJK Unified Ideographs77":["\u7700","\u77ff"],"CJK Unified Ideographs78":["\u7800","\u78ff"],"CJK Unified Ideographs79":["\u7900","\u79ff"],"CJK Unified Ideographs7A":["\u7a00","\u7aff"],"CJK Unified Ideographs7B":["\u7b00","\u7bff"],"CJK Unified Ideographs7C":["\u7c00","\u7cff"],"CJK Unified Ideographs7D":["\u7d00","\u7dff"],"CJK Unified Ideographs7E":["\u7e00","\u7eff"],"CJK Unified Ideographs7F":["\u7f00","\u7fff"],"CJK Unified Ideographs80":["\u8000", "\u80ff"],"CJK Unified Ideographs81":["\u8100","\u81ff"],"CJK Unified Ideographs82":["\u8200","\u82ff"],"CJK Unified Ideographs83":["\u8300","\u83ff"],"CJK Unified Ideographs84":["\u8400","\u84ff"],"CJK Unified Ideographs85":["\u8500","\u85ff"],"CJK Unified Ideographs86":["\u8600","\u86ff"],"CJK Unified Ideographs87":["\u8700","\u87ff"],"CJK Unified Ideographs88":["\u8800","\u88ff"],"CJK Unified Ideographs89":["\u8900","\u89ff"],"CJK Unified Ideographs8A":["\u8a00","\u8aff"],"CJK Unified Ideographs8B":["\u8b00", "\u8bff"],"CJK Unified Ideographs8C":["\u8c00","\u8cff"],"CJK Unified Ideographs8D":["\u8d00","\u8dff"],"CJK Unified Ideographs8E":["\u8e00","\u8eff"],"CJK Unified Ideographs8F":["\u8f00","\u8fff"],"CJK Unified Ideographs90":["\u9000","\u90ff"],"CJK Unified Ideographs91":["\u9100","\u91ff"],"CJK Unified Ideographs92":["\u9200","\u92ff"],"CJK Unified Ideographs93":["\u9300","\u93ff"],"CJK Unified Ideographs94":["\u9400","\u94ff"],"CJK Unified Ideographs95":["\u9500","\u95ff"],"CJK Unified Ideographs96":["\u9600", "\u96ff"],"CJK Unified Ideographs97":["\u9700","\u97ff"],"CJK Unified Ideographs98":["\u9800","\u98ff"],"CJK Unified Ideographs99":["\u9900","\u99ff"],"CJK Unified Ideographs9A":["\u9a00","\u9aff"],"CJK Unified Ideographs9B":["\u9b00","\u9bff"],"CJK Unified Ideographs9C":["\u9c00","\u9cff"],"CJK Unified Ideographs9D":["\u9d00","\u9dff"],"CJK Unified Ideographs9E":["\u9e00","\u9eff"],"CJK Unified Ideographs9F":["\u9f00","\u9faf"],"Yi Syllables":["\ua000","\ua48f"],"Yi Radicals":["\ua490","\ua4cf"], "Hangul SyllablesAC":["\uac00","\uacff"],"Hangul SyllablesAD":["\uad00","\uadff"],"Hangul SyllablesAE":["\uae00","\uaeff"],"Hangul SyllablesAF":["\uaf00","\uafff"],"Hangul SyllablesB0":["\ub000","\ub0ff"],"Hangul SyllablesB1":["\ub100","\ub1ff"],"Hangul SyllablesB2":["\ub200","\ub2ff"],"Hangul SyllablesB3":["\ub300","\ub3ff"],"Hangul SyllablesB4":["\ub400","\ub4ff"],"Hangul SyllablesB5":["\ub500","\ub5ff"],"Hangul SyllablesB6":["\ub600","\ub6ff"],"Hangul SyllablesB7":["\ub700","\ub7ff"],"Hangul SyllablesB8":["\ub800", "\ub8ff"],"Hangul SyllablesB9":["\ub900","\ub9ff"],"Hangul SyllablesBA":["\uba00","\ubaff"],"Hangul SyllablesBB":["\ubb00","\ubbff"],"Hangul SyllablesBC":["\ubc00","\ubcff"],"Hangul SyllablesBD":["\ubd00","\ubdff"],"Hangul SyllablesBE":["\ube00","\ubeff"],"Hangul SyllablesBF":["\ubf00","\ubfff"],"Hangul SyllablesC0":["\uc000","\uc0ff"],"Hangul SyllablesC1":["\uc100","\uc1ff"],"Hangul SyllablesC2":["\uc200","\uc2ff"],"Hangul SyllablesC3":["\uc300","\uc3ff"],"Hangul SyllablesC4":["\uc400","\uc4ff"], "Hangul SyllablesC5":["\uc500","\uc5ff"],"Hangul SyllablesC6":["\uc600","\uc6ff"],"Hangul SyllablesC7":["\uc700","\uc7ff"],"Hangul SyllablesC8":["\uc800","\uc8ff"],"Hangul SyllablesC9":["\uc900","\uc9ff"],"Hangul SyllablesCA":["\uca00","\ucaff"],"Hangul SyllablesCB":["\ucb00","\ucbff"],"Hangul SyllablesCC":["\ucc00","\uccff"],"Hangul SyllablesCD":["\ucd00","\ucdff"],"Hangul SyllablesCE":["\uce00","\uceff"],"Hangul SyllablesCF":["\ucf00","\ucfff"],"Hangul SyllablesD0":["\ud000","\ud0ff"],"Hangul SyllablesD1":["\ud100", "\ud1ff"],"Hangul SyllablesD2":["\ud200","\ud2ff"],"Hangul SyllablesD3":["\ud300","\ud3ff"],"Hangul SyllablesD4":["\ud400","\ud4ff"],"Hangul SyllablesD5":["\ud500","\ud5ff"],"Hangul SyllablesD6":["\ud600","\ud6ff"],"Hangul SyllablesD7":["\ud700","\ud7af"],"High Surrogate Area":["\ud800","\udbff"],"Low Surrogate Area":["\udc00","\udfff"],"CJK Compatibility Ideographs":["\uf900","\ufaff"],"Alphabetic Presentation Forms":["\ufb00","\ufb4f"],"Arabic Presentation Forms-A":["\ufb50","\ufdff"],"Variation Selectors":["\ufe00", "\ufe0f"],"Combining Half Marks":["\ufe20","\ufe2f"],"CJK Compatibility Forms":["\ufe30","\ufe4f"],"Small Form Variants":["\ufe50","\ufe6f"],"Arabic Presentation Forms-B":["\ufe70","\ufeff"],"Halfwidth and Fullwidth Forms":["\uff00","\uffef"],Specials:["\ufff0","\uffff"],"Linear B Syllabary":["\u10000","\u1007F"],"Linear B Ideograms":["\u10080","\u100fF"],"Aegean Numbers":["\u10100","\u1013F"],"Old Italic":["\u10300","\u1032F"],Gothic:["\u10330","\u1034F"],Ugaritic:["\u10380","\u1039F"],Deseret:["\u10400", "\u1044F"],Shavian:["\u10450","\u1047F"],Osmanya:["\u10480","\u104aF"],"Cypriot Syllabary":["\u10800","\u1083F"],"Byzantine Musical Symbols":["\u1d000","\u1d0fF"],"Musical Symbols":["\u1d100","\u1d1fF"],"Tai Xuan Jing Symbols":["\u1d300","\u1d35F"],"Mathematical Alphanumeric Symbols":["\u1d400","\u1d7fF"],"CJK Unified Ideographs Extension B":["\u20000","\u2a6dF"],"CJK Compatibility Ideographs Supplement":["\u2f800","\u2fa1F"],Tags:["\ue0000","\ue007F"],"Variation Selectors Supplement":["\ue0100", "\ue01eF"]},d;for(d in c)if(c[d][0]<=b&&c[d][1]>=b)return $e(a,d);return $e(a,"all")}var af={},bf={};function df(a){for(var b=0,c=0,d=[],e=/([mrvxe])([^a-z]*)/g,f,g=0;f=e.exec(a);++g){var i=f[2].split(",");switch(f[1]){case "v":d[g]={Vc:"bezierCurveTo",ga:[b+~~i[0],c+~~i[1],b+~~i[2],c+~~i[3],b+=~~i[4],c+=~~i[5]]};break;case "r":d[g]={Vc:"lineTo",ga:[b+=~~i[0],c+=~~i[1]]};break;case "m":d[g]={Vc:"moveTo",ga:[b=~~i[0],c=~~i[1]]};break;case "x":d[g]={Vc:"closePath",ga:[]}}}return d} function ef(a,b){var c=a[a.length-2],d=a[a.length-1],e=b[0],f=b[1];return[2*c/3+e/3,2*d/3+f/3,c/3+2*e/3,d/3+2*f/3,e,f]} function ff(a){var b=[],c;a[a.length-1].Vc!="closePath"&&a.push({Vc:"closePath",ga:[]});for(var d=0;d0&&B.k&&B.k[a.text[w-1]]&&(f-=B.k[a.text[w-1]]*x);b.push(f);f+=(B.w||s.De)*x}z.match($c)||(i=f)}k=!1}b.push(f);g.push(b)});a=c-d;j&&(f=Math.max(f,1),i=Math.max(i,1));bf[b]={Ga:c,Mb:d,width:f,jh:i,height:a,fc:g,Vq:j,bf:e,dq:k};return mc(bf[b])}setInterval(function(){for(var a in af)for(var b=0;b0)j(b[0].color),e.globalAlpha=0.4,e.fillRect(0,0,p.width,p.Ga);else{var u=l;A(f,function(a){if(a.Bj&&(a.Bj0&&m.k&&m.k[a.text[k-1]]&&(e.translate(-m.k[a.text[k- 1]],0),x-=m.k[a.text[k-1]],g-=m.k[a.text[k-1]]*v);if(m.code==l)m.code=df("m"+m.d);if(f&&f.length>0){p=m.code;if(u){if(m.Nn==l)m.Nn={};m.Nn[u]==l&&(m.Nn[u]=ff(gf(m.code,u)));p=m.Nn[u]}A(p,function(a){for(var b=[],c=0;c0&&(c=d?i:x,c>0))if(f&&f.length>0){e.lineWidth=b.ni;if(a.Qf){e.beginPath(); i=-b.ni-b.ni/2;k=z(-x-b.kc*0.05,i);e.moveTo(k.x,k.y);for(n=0;n0&&a.bc)return!1;var d=this, e;if(a.Ga>d.Ga||a.Mbc.y&&ic.y&&ic.x&&f0)))d.eb[d.eb.length-1].Mi=d.eb[d.eb.length-1].Mi?Math.min(c.x,d.eb[d.eb.length-1].Mi):c.x});a.Vq&&c.pop();if(this.x+a.jh>=b.x+b.w-this.wa.indentRight){i=!1;if(this.eb.length==0){var u=Number.MAX_VALUE;A(c,function(a){d.yb.y&&da.x+a.jh&&(j=b.x)});g=j-(a.x+a.jh)}else g=a.Mi-(a.x+a.jh);var k=0,n=0;if((f.wa.align||d)=="center")k=g/2;else if((f.wa.align||d)=="right")k=g;else if((f.wa.align||d)=="justified")n=g/(i.length-1);k?A(i,function(a){a.x+=k}):n&&(f.last||A(i,function(a){a.x+=k;k+=n}));Z[f.Dc][a.cf]=!0;i=[]}if(a.dq){var m=l;J.set("document.getItemById",[a.dq,function(a){m=a}]);if(m){g=m.q.get("Wrap"); var s=m.ja(!0),p=m.sa?m.Gd(!0):m.ja(!0),u=function(a,b,c){a.je=b?xb(b,c):l;if(a.pa)var d=a;d.Ib(function(){u(this,b?this.ja(!0):l,c)})},v=function(a,b){a.ke=b;if(a.pa)var c=a;c.Ib(function(){v(this,b)})};if(g){p=Ra(new H(b.x,10+f.af-f.Mb,p.w,p.h),10);p.data={wrap:"tight"};switch(g){case "left":break;case "center":p.x+=(b.w-p.w)/2;break;case "right":p.x+=20+b.w-p.w;break;case "skip-l":p.data.wrap="skip";break;case "skip":p.x+=(b.w-p.w)/2;p.data.wrap="skip";break;case "skip-r":p.x+=20+b.w-p.w;p.data.wrap= "skip";break;default:p=l}if(p){var w=l,x=l;J.set("client.getCurrentlyRenderingSpaceBB",function(a){w=a[0];x=a[1]});w?(u(m,s,Oa(xb(wb(s,p),new H(w.x,w.y,0,0)),s)),v(m,x)):(u(m,l,l),v(m,l));c.push(p)}}else x=w=l,J.set("client.getCurrentlyRenderingSpaceBB",function(a){w=a[0];x=a[1]}),w?(u(m,s,Oa(wb(s,new H(w.x+b.x+a.x,w.y+f.af-f.Mb-p.h,p.w,p.h)),s)),v(m,x)):(u(m,l,l),v(m,l))}}});this.end=v;T.push(this);U=this.Ga-this.bf+(this.bf-this.Mb)*this.wa.spacing+this.y;g&&(X=Math.min(X,this.eb[0].x),da=Math.max(da, g.x+g.jh));this.fc=[];A(this.eb,function(a,b){A(a.fc,function(c,d){A(c,function(e,g){(gb.x+b.w-(a.x+a.w)?j.push(new H(a.x,a.y,b.x+b.w-a.x,a.h,{wrap:"tight"})):j.push(new H(b.x,a.y,a.x+a.w-b.x,a.h,{wrap:"tight"})):j.push(a)});c=j;if(e=="middle"){for(var e=0.25,k=b.y,n=1,m=Number.MAX_VALUE,p=l,s=Math.max(1,Math.log(Math.max(1, b.h))/Math.log(2)/2),u=0;um&&(m=b.y+g.height,p=g)):n=-1,e/=2;return p}}c||(c=[]);var w=[],v=0;if(a.Wg)v=a.ma[a.ma.length-1].end,w=a.Wg,a=a.data;else{var x=[],z=function(a,b){var c=l;if(x.length> 0){c=hf(x);c.cf=a;c.Dc=b;if(x[0].bc)c.bc=!0;w.push(c)}x=[];return c},B=0,O=0;A(a,function(a,b){if(a.ao)A(a.ao,function(a){B=a.Dc=b;O=a.cf;w.push(a)}),x=[];else{a.content[0].bc=!0;a.content[0].qc=!0;a.ao=[];A(a.content,function(c,d){if(c.qc){var e=z(O,B);e&&a.ao.push(e);B=b;O=d}x.push(c)});var c=z(O,B);c&&a.ao.push(c)}})}var T=[],W=l,U=b.y,X=Number.MAX_VALUE,da=Number.MIN_VALUE,Z={},Ga=l,wa=!1,Ma=!1,tb=!1;A(w,function(c,d){if(W){if(!W.ui(c)){W.cp(c);if(!config.allowTextOverflow&&U>b.y+b.h)return Ga= d-W.eb.length,wa=!0,!1;if(c.Dc!=w[d-1].Dc){var e=a[c.Dc].style;if(e.Ei||e.Zh)return Ma=e.Zh,tb=e.Ei,Ga=d,!1}W=new f(c)}}else W=new f(c)});Ga==l&&(W.cp(l),!config.allowTextOverflow&&U>b.y+b.h&&(Ga=w.length-W.eb.length));e=l;if(Ga!=l){wa&&(g=T.pop());if(T.length>0)g=T[T.length-1],U=g.y+(g.Ga-g.Mb)*g.wa.spacing;else if(wa)T.push({start:g.start,end:g.start,Ga:g.Ga,Mb:g.Mb,fc:[]}),U=b.y;e=w.slice(Ga)}U+=T[T.length-1].Mb;U-=(T[T.length-1].Ga-T[T.length-1].Mb)*(W.wa.spacing-1);return{x:X,y:b.y,width:Math.max(0, da-X),height:U-b.y,ma:T,Vw:qc(c),Dp:Z,Wg:e,Zh:Ma,Ei:tb,data:a}} function nf(a,b,c,d,e,f,g){var i=mf(b,c,d,e||"left",f||"top");if(b.data)b=b.data;c.w=c.w||i.width;c.h=Math.max(c.h,i.height);A(i.ma,function(c,d){a.save();a.translate(0,c.y);var e=0;if(c.first&&(c.wa.type=="ul"||c.wa.type=="ol"||c.wa.type=="hl")){a.save();a.translate(c.eb[0].x-(c.wa.type=="ul"?c.wa.indentLeft/2:c.wa.indentLeft),c.Ga-c.eb[0].Ga);var f=of(i.ma,d,b),p=jf(f,1,!0);lf(p,f,1,!0,a,g,c.eb[0].x-(c.wa.type=="ul"?c.wa.indentLeft/2:c.wa.indentLeft),c.y+c.Ga);a.restore()}A(c.eb,function(d){if(d.x)a.translate(d.x- e,0),e=d.x;var f=b[d.Dc].content.slice(d.cf,d.cf+d.fc.length);a.translate(0,c.Ga-d.Ga);var k=i.Dp[d.cf+d.fc.length-1],m=jf(f,1,k);lf(m,f,1,k,a,g,e,c.y+c.Ga);a.translate(d.width,d.Ga-c.Ga);d=d.fc[d.fc.length-1];e+=d[d.length-1]});a.restore()});return i}function pf(a){var b,c,d,e,f;f=a/1E3|0;a%=1E3;for(b=c="",d=5;a;c++,d^=7)for(e=a%d,a=a/d^0;e--;)b="IVXLCDM".charAt(e>2?c+a-(a&=-2)+(e=1):c)+b;return Array(f+1).join("M")+b} function of(a,b,c){var d=a[b],e=d.eb[0],c=new Zc(c[e.Dc].content[e.cf]);c.Qf=!1;c.strike=!1;c.error=!1;if(d.wa.type=="ul")c.text="\u2022";else{e=1;for(b-=1;b>=0;b--)if(a[b].first){if(a[b].wa.type!="ol"&&a[b].wa.type!="hl")break;if(!(a[b].wa.indentLevel>d.wa.indentLevel)){if(a[b].wa.indentLevel').val(a).bind("focus click mouseup",function(){setTimeout(function(){$(".option-bar-set-min.gui-box-shadow:visible").size()?e.select():e.blur()},1)}).bind("keydown keyup change",function(){var a=$(this).val();$(".option-bar-set-min.gui-box-shadow:visible > div").each(function(){if($(this).attr("title").toLowerCase().indexOf(a.toLowerCase())==0){$(this).siblings().removeClass("active"); $(this).addClass("active");var b=$(this).parent().attr("scrollTop"),c=b+$(this).parent().height(),d=$(this).position().top+b,e=$(this).height();dc-10&&$(this).parent().attr("scrollTop",b+(d+e-c)+10);return!1}})}).bind("keydown",function(a){a.which==13?$(".option-bar-set-min.gui-box-shadow:visible > div.active").mousedown():a.which==40?(a.preventDefault(),$(".option-bar-set-min.gui-box-shadow:visible > div.active").each(function(){var a=$(this).next(); a.size()&&($(this).removeClass("active"),a.addClass("active"),e.val(a.attr("title")))})):a.which==38&&(a.preventDefault(),$(".option-bar-set-min.gui-box-shadow:visible > div.active").each(function(){var a=$(this).prev();a.size()&&($(this).removeClass("active"),a.addClass("active"),e.val(a.attr("title")))}))});b.append(e)}else{tf[d]||(tf[d]=[]);for(c=0;c=0&&Df.splice.call(a,c,1)};function If(a,b,c){return Math.min(Math.max(a,b),c)};var Jf={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400", darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc", ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a", lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1", moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57", seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Kf(a){var b={},a=String(a),c=a.charAt(0)=="#"?a:"#"+a;if(Lf.test(c))return b.tb=Mf(c),b.type="hex",b;else{a:{var d=a.match(Nf);if(d){var c=Number(d[1]),e=Number(d[2]),d=Number(d[3]);if(c>=0&&c<=255&&e>=0&&e<=255&&d>=0&&d<=255){c=[c,e,d];break a}}c=[]}if(c.length)return b.tb=Of(c),b.type="rgb",b;else if(Jf&&(c=Jf[a.toLowerCase()]))return b.tb=c,b.type="named",b}aa(Error(a+" is not a valid color string"))} function Pf(a){a=Mf(a);return"rgb("+[parseInt(a.substr(1,2),16),parseInt(a.substr(3,2),16),parseInt(a.substr(5,2),16)].join(",")+")"}var Qf=/#(.)(.)(.)/;function Mf(a){Lf.test(a)||aa(Error("'"+a+"' is not a valid hex color"));a.length==4&&(a=a.replace(Qf,"#$1$1$2$2$3$3"));return a.toLowerCase()} function Rf(a,b,c){a=Number(a);b=Number(b);c=Number(c);(isNaN(a)||a<0||a>255||isNaN(b)||b<0||b>255||isNaN(c)||c<0||c>255)&&aa(Error('"('+a+","+b+","+c+'") is not a valid RGB color'));a=Sf(a.toString(16));b=Sf(b.toString(16));c=Sf(c.toString(16));return"#"+a+b+c}function Of(a){return Rf(a[0],a[1],a[2])} function Tf(a,b,c){a/=255;b/=255;c/=255;var d=Math.max(a,b,c),e=Math.min(a,b,c),f=0,g=0,i=0.5*(d+e);d!=e&&(d==a?f=60*(b-c)/(d-e):d==b?f=60*(c-a)/(d-e)+120:d==c&&(f=60*(a-b)/(d-e)+240),g=01&&(c-=1);if(6*c<1)return a+(b-a)*6*c;else if(2*c<1)return b;else if(3*c<2)return a+(b-a)*(2/3-c)*6;return a} function Vf(a,b,c){var d=0,e=0,f=0;a/=360;if(b==0)d=e=f=c*255;else var g=f=0,g=c<0.5?c*(1+b):c+b-b*c,f=2*c-g,d=255*Uf(f,g,a+1/3),e=255*Uf(f,g,a),f=255*Uf(f,g,a-1/3);return[Math.round(d),Math.round(e),Math.round(f)]}var Lf=/^#(?:[0-9a-f]{3}){1,2}$/i,Nf=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function Sf(a){return a.length==1?"0"+a:a};function Wf(a){var b={},a=String(a),c=a.charAt(0)=="#"?a:"#"+a;if(Xf.test(c))return b.tb=Yf(c),b.type="hex",b;else{a:{var d=a.match(Zf);if(d){var c=Number(d[1]),e=Number(d[2]),f=Number(d[3]),d=Number(d[4]);if(c>=0&&c<=255&&e>=0&&e<=255&&f>=0&&f<=255&&d>=0&&d<=1){c=[c,e,f,d];break a}}c=[]}if(c.length)return b.tb=$f(c),b.type="rgba",b;else{a:{if(d=a.match(ag))if(c=Number(d[1]),e=Number(d[2]),f=Number(d[3]),d=Number(d[4]),c>=0&&c<=360&&e>=0&&e<=100&&f>=0&&f<=100&&d>=0&&d<=1){c=[c,e,f,d];break a}c=[]}if(c.length)return b.tb= bg(c[0],c[1],c[2],c[3]),b.type="hsla",b}}aa(Error(a+" is not a valid color string"))}var cg=/#(.)(.)(.)(.)/;function Yf(a){Xf.test(a)||aa(Error("'"+a+"' is not a valid alpha hex color"));a.length==5&&(a=a.replace(cg,"#$1$1$2$2$3$3$4$4"));return a.toLowerCase()}function dg(a){a=Yf(a);return[parseInt(a.substr(1,2),16),parseInt(a.substr(3,2),16),parseInt(a.substr(5,2),16),parseInt(a.substr(7,2),16)/255]} function bg(a,b,c,d){var e=Math.floor(d*255);(isNaN(e)||e<0||e>255)&&aa(Error('"('+a+","+b+","+c+","+d+'") is not a valid HSLA color'));d=Sf(e.toString(16));return Of(Vf(a,b/100,c/100))+d}function $f(a){var b=a[0],c=a[1],d=a[2],a=a[3],e=Math.floor(a*255);(isNaN(e)||e<0||e>255)&&aa(Error('"('+b+","+c+","+d+","+a+'") is not a valid RGBA color'));a=Sf(e.toString(16));return Rf(b,c,d)+a} var Xf=/^#(?:[0-9a-f]{4}){1,2}$/i,Zf=/^(?:rgba)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|1|0\.\d{0,20})\)$/i,ag=/^(?:hsla)\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\%,\s?(0|[1-9]\d{0,2})\%,\s?(0|1|0\.\d{0,20})\)$/i;function eg(a){return"rgba("+a.join(",")+")"};function I(a,b){this.Hd=!0;this.xg=this.yg=this.Wf=this.Td=this.Ud=this.Wd=this.Xd=0;this.ye=[0,0,0];this.io=this.jo="";this.ti=0;!a&&b&&(a=b);if(a)if(na(a))a.toLowerCase()=="transparent"&&(a="#0000"),fg(this,a);else if(la(a)&&a.length>=3)gg(this,[a[0],a[1],a[2],rc([a[3],1])]);else if(a.Hd)this.clone(a);else if(a.jf)if(a.ei)this.clone(a.ei);else{var c=hg(a);c.length>0&&this.clone(new I(c[0].color))}else a.kf?a.ei?this.clone(a.ei):b&&this.clone(new I(b)):qa(a)&&("h"in a&&"s"in a&&"v"in a?ig(this,[a.h, a.s,a.v,a.a||1]):"h"in a&&"s"in a&&"l"in a?jg(this,[a.h,a.s,a.l,a.a||1]):"r"in a&&"g"in a&&"b"in a&&gg(this,[a.r,a.g,a.b,a.a||1]))}q=I.prototype; q.update=function(a){var b;switch(a){case "r":case "g":case "b":case "rgb":b=Tf(this.Xd,this.Wd,this.Ud);this.Wf=b[0];this.yg=b[1];this.xg=b[2];break;case "h":case "s":case "l":case "hsl":b=Vf(this.Wf,this.yg,this.xg),this.Xd=b[0],this.Wd=b[1],this.Ud=b[2]}if(a!="hsv"){var c=kg(this),a=c[0];b=c[1];var d=c[2],c=Math.max(Math.max(a,b),d),e=Math.min(Math.min(a,b),d);if(e==c)e=a=0;else{var f=c-e,e=f/c,a=a==c?(b-d)/f:b==c?2+(d-a)/f:4+(a-b)/f;a*=60;a<0&&(a+=360);a>360&&(a-=360)}this.ye=[a,e,c];this.ye[0]= this.Wf;this.ye[2]/=255}this.jo=Of(kg(this));this.io=$f(gg(this));a=kg(this);this.ti=Math.round((a[0]*299+a[1]*587+a[2]*114)/1E3);return this};q.clone=function(a){this.Xd=a.Ua();this.Wd=a.Nh();this.Ud=a.gb();this.Td=a.ga();this.Wf=a.ob();this.yg=a.qx();this.xg=a.Kb();this.ye=qc(ig(a));this.jo=a.tb();this.io=fg(a);this.ti=a.ti;return this};q.Ua=function(a){if(a===h)return this.Xd;this.Xd=If(Math.round(a),0,255);this.update("r");return this}; q.Nh=function(a){if(a===h)return this.Wd;this.Wd=If(Math.round(a),0,255);this.update("g");return this};q.gb=function(a){if(a===h)return this.Ud;this.Ud=If(Math.round(a),0,255);this.update("b");return this};q.ga=function(a){if(a===h)return this.Td;this.Td=If(a,0,1);this.update("a");return this};q.ob=function(a){if(a===h)return this.Wf;this.Wf=If(a,0,360);this.update("h");return this};q.qx=function(a){if(a===h)return this.yg;this.yg=If(a,0,1);this.update("s");return this}; q.Kb=function(a){if(a===h)return this.xg;this.xg=If(a,0,1);this.update("l");return this};q.tb=function(a){return a===h?this.jo:fg(this,a)};function fg(a,b){if(b===h)return a.io;var c=dg(id(b).tb);a.Xd=c[0];a.Wd=c[1];a.Ud=c[2];a.Td=c[3];a.update("rgb");return a}function kg(a){return[a.Xd,a.Wd,a.Ud]}function gg(a,b){if(b===h)return[a.Xd,a.Wd,a.Ud,a.Td];a.Xd=If(Math.round(b[0]),0,255);a.Wd=If(Math.round(b[1]),0,255);a.Ud=If(Math.round(b[2]),0,255);a.Td=If(rc([b[3],1]),0,1);a.update("rgb");return a} function jg(a,b){b===h||lg(a,b)}function lg(a,b){if(b===h)return[a.Wf,a.yg,a.xg,a.Td];a.Wf=If(Math.round(360+b[0])%360,0,360);a.yg=If(b[1],0,1);a.xg=If(b[2],0,1);a.Td=If(rc([b[3],1]),0,1);a.update("hsl");return a} function ig(a,b){if(b===h)return a.ye;a.ye[0]=If(Math.round(360+b[0])%360,0,360);a.ye[1]=If(b[1],0,1);a.ye[2]=If(b[2],0,1);var c,d=a.ye[0],e=a.ye[1];c=If(Math.round(a.ye[2]*255),0,255);var f=0,g=0,i=0;if(e==0)i=g=f=c;else{var j=Math.floor(d/60),k=d/60-j,d=c*(1-e),n=c*(1-e*k),e=c*(1-e*(1-k));switch(j){case 1:f=n;g=c;i=d;break;case 2:f=d;g=c;i=e;break;case 3:f=d;g=n;i=c;break;case 4:f=e;g=d;i=c;break;case 5:f=c;g=d;i=n;break;case 6:case 0:f=c,g=e,i=d}}c=[Math.floor(f),Math.floor(g),Math.floor(i)];a.Xd= c[0];a.Wd=c[1];a.Ud=c[2];a.Td=rc([b[3],1]);c=Tf(a.Xd,a.Wd,a.Ud);a.Wf=a.ye[0];a.yg=c[1];a.xg=c[2];a.update("hsv");return a}function gb(a){a=fg(a);return eg(dg(a))}q.serialize=function(a){return a?{r:this.Ua(),g:this.Nh(),b:this.gb(),a:this.ga()}:fg(this)};q.key=function(){return fg(this)};q.ef=function(a){return a.Hd&&a.key()==this.key()};function mg(a,b,c){var c=If(c,0,1),d=1-c;return gg(a,[Math.round(c*a.Xd+d*b.Xd),Math.round(c*a.Wd+d*b.Wd),Math.round(c*a.Ud+d*b.Ud),c*a.Td+d*b.Td])} function ng(a,b){mg(a,new I([0,0,0,a.Td]),1-b)}q.Ip=function(a){return mg(this,new I([255,255,255,this.Td]),1-a)};function og(a,b){b=b||"#ffffff";a=a||b;na(a)||aa(Error(a+" is not a valid 6-hex color string"));a.length>7&&a[0]=="#"&&(a=a.substr(0,7));b.length>7&&b[0]=="#"&&(b=b.substr(0,7));try{return Kf(a)}catch(c){return og(b,"#ffffff")}} function id(a,b){b=b||"#ffffff";a=a||b;na(a)||aa(Error(a+" is not a valid 8-hex color string"));try{return Wf(a)}catch(c){try{var d=og(a,b).tb;return id(d+"ff",b+"ff")}catch(e){return id(b,"#ffffffff")}}}function pg(a,b,c){c&&Xd&&!ae?a=Pf(og(a,b).tb):(a=id(a,b).tb,a=eg(dg(a)));return a}var qg=/rgba?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})(,\s?(0|1|0?\.\d{0,20}))?\)/gi; function rg(a){var b=a[1],c=a[2];return Math.round(360+180*Math.atan2(Math.sqrt(3)*(b-c),2*a[0]-b-c)/Math.PI)%360}function sg(a){var b=Math.pow(a[0],2.19921875),c=Math.pow(a[1],2.19921875),a=Math.pow(a[2],2.19921875);return[0.60974*b+0.20528*c+0.14919*a,0.31111*b+0.62567*c+0.06322*a,0.01947*b+0.06087*c+0.74457*a]} function tg(a){var b=a[0],c=a[1],d=a[2],a=-0.97876*b+1.91615*c+0.03342*d,e=0.02869*b-0.14067*c+1.34926*d,f=1/2.19921875,b=Math.pow(If(1.96253*b-0.61068*c-0.34137*d,0,1),f),a=Math.pow(If(a,0,1),f),e=Math.pow(If(e,0,1),f);return[b,a,e]}function ug(a){function b(a){return a>c?Math.pow(a,1/3):d*a+4/29}var c=216/24389,d=841/108,e=a[1];return[116*b(e)-16,500*(b(a[0]/0.96421)-b(e)),200*(b(e)-b(a[2]/0.82491))]} function vg(a){function b(a){return a>c?a*a*a:d*(a-4/29)}var c=6/29,d=108/841,e=a[0];return[0.96421*b((e+16)/116+a[1]/500),b((e+16)/116),0.82491*b((e+16)/116-a[2]/200)]} function wg(a){var b=ug(sg(a)),c=new G(Math.sqrt(b[1]*b[1]+b[2]*b[2]),b[0]),d=l,e=l,f=rg(a),f=zf[f],g=new G(f[f.length-1][0],f[f.length-1][1]),i,j;A(f,function(a){d=new G(0,25+0.5*c.y);i=new G(a[0],a[1]);if((j=Vb(g,i,c,d))&&j.x0&&(!e||j.x>e.x))e=j;g=i});e&&(a=If(0.4+3/(Lb(c,e)||1.0E-4),0,1),e=new G(e.x*(1-a)+c.x*a,e.y*(1-a)+c.y*a),a=tg(vg(function(a,b,c,d){b=Math.atan2(c,b);return[a,d*Math.cos(b),d*Math.sin(b)]}(e.y,b[1],b[2],e.x))));return a}t("lucid.Color",I);I.prototype.serialize=I.prototype.serialize; I.prototype.lighten=I.prototype.Ip;var xg="CreatePage",M="SetProperty",yg="t",zg="LoadPlugin",Bg="UnloadPlugin";function N(a,b){this.Action=a;for(var c in b)this[c]=b[c]} function Cg(a){var b=K(a);switch(a.Action){case xg:b.Action="RemovePage";break;case "RemovePage":b.Action=xg;b.Recreate=!0;break;case "CrGr":b.Action="RmGr";break;case "RmGr":b.Action="CrGr";break;case "CreateBlock":b.Action="RemoveBlock";break;case "RemoveBlock":b.Action="CreateBlock";break;case "CreateLine":b.Action="RemoveLine";break;case "RemoveLine":b.Action="CreateLine";break;case zg:b.Action=Bg;break;case Bg:b.Action=zg;break;case M:b.Value=a.OldValue;break;case yg:b.Diff=Oc(a.Diff);break; case "smt":b.BoundingBox=b.OldBoundingBox;break;case "ssp":b.Value=b.OldValue;break;case "smlp":b.x=b.OldX;b.y=b.OldY;break;case "smp":b.Points=b.OldPoints;break;case "smc":b.ControlPoints=b.OldControlPoints;break;case "sal":b.Action="srl";break;case "srl":b.Action="sal";break;case "sap":b.Action="srp";break;case "srp":b.Action="sap";break;case "salp":b.Action="srlp";break;case "srlp":b.Action="salp";break;case "sat":b.Action="srt";break;case "srt":b.Action="sat";break;case "sas":b.Action="srs";break; case "srs":b.Action="sas";break;case "mtp":a=b.Page;b.Page=b.OldPage;b.OldPage=a;break;case "NoOp":break;default:return l}return b}t("lucid.model.Action",N);t("lucid.model.ActionType.CreatePage",xg);t("lucid.model.ActionType.CreateBlock","CreateBlock");t("lucid.model.ActionType.CreateLine","CreateLine");t("lucid.model.ActionType.SetProperty",M);t("lucid.model.ActionType.EditText",yg);t("lucid.model.ActionType.LoadPlugin",zg);t("lucid.model.ActionType.UnloadPlugin",Bg); t("lucid.model.ActionType.RemovePage","RemovePage");t("lucid.model.ActionType.RemoveBlock","RemoveBlock");t("lucid.model.ActionType.RemoveLine","RemoveLine");t("lucid.model.ActionType.NoOp","NoOp");t("lucid.model.ActionType.StencilSetShapeProp","ssp");t("lucid.model.ActionType.StencilMoveText","smt");t("lucid.model.ActionType.StencilMoveLinkPoint","smlp");t("lucid.model.ActionType.StencilMovePoints","smp");t("lucid.model.ActionType.StencilMoveControlPoints","smc"); t("lucid.model.ActionType.StencilAddLines","sal");t("lucid.model.ActionType.StencilRemoveLines","srl");t("lucid.model.ActionType.StencilAddPoints","sap");t("lucid.model.ActionType.StencilRemovePoints","srp");t("lucid.model.ActionType.StencilAddShape","sas");t("lucid.model.ActionType.StencilRemoveShape","srs");t("lucid.model.ActionType.StencilAddText","sat");t("lucid.model.ActionType.StencilRemoveText","srt");t("lucid.model.ActionType.StencilAddLinkPoint","salp"); t("lucid.model.ActionType.StencilRemoveLinkPoint","srlp");function Dg(a,b,c){this.name=a;this.transform=b;this.inverse=c;this.update=l}function Eg(a,b){if(b==0)return new Dg("hDistort",ba(),ba());var c=a.y+a.h/2,d=2*b/a.w,e=d*a.x+b,f=c*d,g=c*e,i=a.x+0.5*a.w;return new Dg("hDistort",function(a){return new G(a.x,a.y*(1+d*a.x-e)-(f*a.x-g))},function(a){var b=d*(a.x-i);return new G(a.x,(a.y+c*b)/(1+b))})} function Fg(a,b){if(b==0)return new Dg("vDistort",ba(),ba());var c=a.x+a.w/2,d=2*b/a.h,e=d*a.y+b,f=c*d,g=c*e,i=a.y+0.5*a.h;return new Dg("vDistort",function(a){return new G(a.x*(1+d*a.y-e)-(f*a.y-g),a.y)},function(a){var b=d*(a.y-i);return new G((a.x+c*b)/(1+b),a.y)})} Dg.wave=function(a){var b=a.bb,c=1*a.bend,d=1*a.waves,e=Fg(b,1*a.vd),f=Eg(b,1*a.hd);if(a.h)var g=d*Math.PI*2/b.w,i=b.h*c,a=function(a){a=e.transform(f.transform(a));return new G(a.x,a.y+i*Math.sin((a.x-b.x)*g))},c=function(a){a=new G(a.x,a.y-i*Math.sin((a.x-b.x)*g));return f.inverse(e.inverse(a))};else g=d*Math.PI*2/b.h,i=b.w*c,a=function(a){a=e.transform(f.transform(a));return new G(a.x+i*Math.sin((a.y-b.y)*g),a.y)},c=function(a){a=new G(a.x-i*Math.sin((a.y-b.y)*g),a.y);return f.inverse(e.inverse(a))}; a.Bj=20;return new Dg("wave",a,c)}; Dg.ribbon=function(a){var b=a.bb,c=1*a.bend,d=1*a.waves,e=Fg(b,1*a.vd),f=Eg(b,1*a.hd);if(a.h)var g=d*Math.PI*2/b.w,i=b.h*c,j=2/b.h,a=function(a){a=e.transform(f.transform(a));return new G(a.x,a.y+(j*(a.y-b.y)-1)*i*Math.sin((a.x-b.x)*g))},c=function(a){var c=i*Math.sin((a.x-b.x)*g),a=new G(a.x,(b.h*(a.y+c)+2*c*b.y)/(b.h+2*c));return f.inverse(e.inverse(a))};else var g=d*Math.PI*2/b.h,i=b.w*c,k=2/b.w,a=function(a){a=e.transform(f.transform(a));return new G(a.x+(k*(a.x-b.x)-1)*i*Math.sin((a.y-b.y)*g), a.y)},c=function(a){var c=i*Math.sin((a.y-b.y)*g),a=new G((b.w*(a.x+c)+2*c*b.x)/(b.w+2*c),a.y);return f.inverse(e.inverse(a))};a.Bj=20;return new Dg("ribbon",a,c)}; Dg.arch=function(a){var b=a.bb,c=!!a.h,d=1*a.bend,e=Fg(b,1*a.vd),f=Eg(b,1*a.hd),a=Math.abs(d),d=d<0?-1:1,g=(1/a-a)/2,i=g*g;if(a<1.0E-7)c=function(a){return e.transform(f.transform(a))},d=function(a){return f.inverse(e.inverse(a))};else if(c)var j=2/b.w,k=d*b.h,c=function(a){a=e.transform(f.transform(a));return new G(a.x,a.y-k*(Math.sqrt(i+1-(j*(a.x-b.x)-1)*(j*(a.x-b.x)-1))-g))},d=function(a){a=new G(a.x,a.y+k*(Math.sqrt(i+1-(j*(a.x-b.x)-1)*(j*(a.x-b.x)-1))-g));return f.inverse(e.inverse(a))};else var n= 2/b.h,k=d*b.w,c=function(a){a=e.transform(f.transform(a));return new G(a.x-k*(Math.sqrt(i+1-(n*(a.y-b.y)-1)*(n*(a.y-b.y)-1))-g),a.y)},d=function(a){a=new G(a.x+k*(Math.sqrt(i+1-(n*(a.y-b.y)-1)*(n*(a.y-b.y)-1))-g),a.y);return f.inverse(e.inverse(a))};c.Bj=20;return new Dg("arch",c,d)}; Dg.arc=function(a){var b=a.bb,c=!!a.h,d=1*a.bend,e=Fg(b,1*a.vd),f=Eg(b,1*a.hd),g=d*Math.PI/2,i=d>0?1:-1;if(Math.abs(d)<1.0E-7)d=function(a){return e.transform(f.transform(a))},a=function(a){return f.inverse(e.inverse(a))};else if(c)var a=b.w/2/Math.sin(g),c=d>0?Math.min(b.w/2,b.h/2):b.h-Math.min(b.w/2,b.h/2),j=b.x-a*Math.sin(-g),k=a+c+b.y,n=b.y+c+a*Math.cos(g),m=2*g/b.w,d=function(a){var a=e.transform(f.transform(a)),c=m*(a.x-b.x)-g;return new G(j+(k-a.y)*Math.sin(c),n-(k-a.y)*Math.cos(c))},p=b.w/ 2+b.x,s=a*Math.cos(g)+c+b.y,u=b.w/(2*g),a=function(a){var b=Math.atan2(i*(a.x-p),i*(s-a.y)),a=new G(p+b*u,k+(j-a.x)/Math.sin(b));return f.inverse(e.inverse(a))};else a=b.h/2/Math.sin(g),c=d>0?Math.min(b.w/2,b.h/2):b.w-Math.min(b.w/2,b.h/2),j=b.y-a*Math.sin(-g),k=a-c-b.x,n=b.x+c-a*Math.cos(g),m=2*g/b.h,d=function(a){var a=e.transform(f.transform(a)),c=m*(a.y-b.y)-g;return new G(n+(k+a.x)*Math.cos(c),j+(k+a.x)*Math.sin(c))},p=b.h/2+b.y,s=a*Math.cos(g)-c-b.x,u=b.h/(2*g),a=function(a){var b=Math.atan2(i* (a.y-p),i*(a.x+s)),a=new G((a.y-j)/Math.sin(b)-k,p+b*u);return f.inverse(e.inverse(a))};d.Bj=20;return new Dg("arc",d,a)};function Gg(a,b,c){var d=this;this.aa=c;this.width=a;this.height=b;this.vAlign="middle";this.Ng="center";this.Qp=!1;this.Ue=[];this.canvas=new Fe(a,b);this.Sk=function(){return[]};Xd?(this.Wc=new Je(0,0,1E4,1E4),this.Un=new Je(0,0,1E4,1E4)):(this.Wc=new Je(0,0,a,b),this.Un=new Je(0,0,a,b));this.canvas.J.css({border:"2px solid transparent",margin:"-2px"});Ge(this.canvas,this.Un);Ge(this.canvas,this.Wc);this.J=$("
");this.J.append(this.canvas.J);this.Df=[];this.enabled=!1;this.Wc.J.bind("mousedown touchstart", function(a){d.aa.Dk&&Hg(d.aa);var b=a.originalEvent||a;if(b.touches)a.pageX=b.touches[0].pageX,a.pageY=b.touches[0].pageY;d.Db(a)&&d.ud(a.pageX,a.pageY,a.shiftKey,a)});this.Vd($(document),"mousemove touchmove",function(a){var b=a.originalEvent||a;if(b.touches)a.pageX=b.touches[0].pageX,a.pageY=b.touches[0].pageY;d.aa.hasFocus&&d.aa.uh&&d.Db(a)&&d.fd(a.pageX,a.pageY,a)});this.Vd($(document),"mouseup touchend",function(a){var b=a.originalEvent||a;if(b.changedTouches)a.pageX=b.changedTouches[0].pageX, a.pageY=b.changedTouches[0].pageY;d.gd(a.pageX,a.pageY,a)});this.Wc.J.bind("dblclick",function(a){if(d.Db(a))d.aa.ua=l,d.aa.fa=Ig(d,Jg(d,a)),Kg(d.aa,{which:37,ctrlKey:!0,preventDefault:a.preventDefault}),Kg(d.aa,{which:39,ctrlKey:!0,shiftKey:!0,preventDefault:a.preventDefault}),a.preventDefault()});this.Ai=new Je(0,0,20,20);Ge(this.canvas,this.Ai);this.Ul=!1;this.Df.push(setInterval(function(){if(d.aa.hasFocus)d.Ul?(d.Ai.J.css("display","none"),d.Ul=!1):d.Oq()},500));this.Iv=this.aa.bind("selection", r(this.Oq,this));this.ma=[]}q=Gg.prototype;q.ud=function(a,b,c,d){if(c&&this.aa.ua==l)this.aa.ua=this.aa.fa;this.aa.fa=Ig(this,Jg(this,{pageX:a,pageY:b}));if(!c)this.aa.ua=this.aa.fa;Lg(this.aa);d.preventDefault();this.aa.uh=this};q.fd=function(a,b,c){if(this.aa.uh&&this.aa.uh!=this)this.aa.uh=this;if(this.aa.uh==this)this.aa.fa=Ig(this,Jg(this,{pageX:a,pageY:b})),Lg(this.aa),c.preventDefault()}; q.gd=function(a,b,c){if(this.aa.uh==this)this.aa.Mc.focus().select(),this.aa.fa=Ig(this,Jg(this,{pageX:a,pageY:b})),this.aa.uh=l,Lg(this.aa),c.preventDefault()};q.Vd=function(a,b,c){if(this.Hb==l)this.Hb=[];this.Hb.push([a,b,c]);a.bind(b,c)};q.ia=function(){this.aa.ia()};q.Bc={};q.Pq=function(a){var b=this,c=l,d=Ig(b,Jg(b,a));A(Ec(b.aa.content.text,b.aa.language),function(a){d>=a[0]&&d<=a[1]&&(a=b.aa.content.text.substr(a[0],a[1]-a[0]),c=XRegExp("[^\\p{L}]*(.*\\p{L})[^\\p{L}]*$").exec(a)[1])});return c}; q.Db=function(a,b){if(!b&&!this.aa.hasFocus||this.Qp)return!1;if(config.editorSpaceChecksDialogSelector&&$("div.ui-dialog:visible").size()>0)return!1;var c=a.originalEvent||a;if(c.touches)if(c.touches[0])a.pageX=c.touches[0].pageX,a.pageY=c.touches[0].pageY;else if(c.changedTouches[0])a.pageX=c.changedTouches[0].pageX,a.pageY=c.changedTouches[0].pageY;var c=this.canvas.J,d=c.offset();return a.pageX>=d.left&&a.pageY>=d.top&&a.pageX<=d.left+c.width()&&a.pageY<=d.top+c.height()?a:!1}; q.destroy=function(){A(this.Df,function(a){clearInterval(a)});this.Df=[];A(this.Hb,function(a){a[0].unbind(a[1],a[2])});this.Hb=[];this.aa.unbind("selection",this.Iv);this.canvas.destroy();this.canvas=l};function Mg(a,b){if(b==l)b=a.aa.fa;var c=a.ma[a.ma.length-1].end;b>c&&a==a.aa.oa[a.aa.oa.length-1]&&(b=c);return b>=a.ma[0].start&&b<=c&&(b=this.ma[b].start&&ab.y){for(c=0;cb.x)return d=a.start+c,!1;if(d==l)d=a.end,a.end0&&(b.y>a.ma[0].y?c(a.ma[a.ma.length-1],!0,a.ma[NaN]):c(a.ma[0],!0,a.ma[NaN]));if(d==l)d=a.aa.fa;return d} function Jg(a,b){var c=a.canvas.J.offset();return new G((b.pageX-c.left)/a.aa.scale-a.er.x,(b.pageY-c.top)/a.aa.scale-a.er.y)}q.Ri=function(a){if(a==l)a=this.aa.fa;var a=Math.max(0,Math.min(a,this.aa.content.text.length)),b=this.ma[this.Xg(a)],c=b.fc[0];if(a>b.start&&(c=b.fc[a-b.start],c==l))c=this.width;return new H(c,b.y+b.Ga-b.bf,1,b.bf+2)};q.Cf=function(){return this.aa.ua==l?!1:this.aa.ua==this.aa.fa?!1:!0}; q.transform=function(a,b){if(b)for(var c=this.Ue.length-1;c>=0;c--)a=this.Ue[c].inverse(a);else A(this.Ue,function(b){a=b.transform(a)});return a};function Ng(a,b){for(var c=[],d=0;d0){var b=Ng(this,[new G(0,0),new G(this.width,0),new G(this.width,this.height),new G(0,this.height),new G(0,0)]),f=e=Number.MAX_VALUE,i=Number.MIN_VALUE,j=Number.MIN_VALUE;A(b,function(a){e=Math.min(e,a.x); f=Math.min(f,a.y);i=Math.max(i,a.x);j=Math.max(j,a.y)});g=i-e;d=j-f}else b=[new G(0,0),new G(this.width,0),new G(this.width,this.height),new G(0,this.height)];this.canvas.resize(g*this.aa.scale+1,d*this.aa.scale+1);this.canvas.J.css({position:"absolute",left:Math.round(e*this.aa.scale)+"px",top:Math.round(f*this.aa.scale)+"px"});this.Wc.move(0,0,g*this.aa.scale+1,d*this.aa.scale+1);this.Un.move(0,0,g*this.aa.scale+1,d*this.aa.scale+1);b=this.Un.getContext();b.scale(this.aa.scale,this.aa.scale);b.translate(-e, -f);this.er=new G(-e,-f);this.Pb=l;if(c.length>0){var g=this.Wc.getContext(),k=this.aa.qa?this.aa.qa.q.get("Opacity")*0.01:1;if(!this.aa.hasFocus&&k<=1)g.save(),g.globalAlpha=k;g.scale(this.aa.scale,this.aa.scale);g.translate(-e,-f);Ie(this.canvas,function(a){if(a.size)a.te=!1;return a.size});if(!a.data||a.Wg)this.Pb=nf(g,a,new H(0,0,this.width,this.height),this.Sk(),this.Ng,this.vAlign,c);!this.aa.hasFocus&&k<=1&&g.restore()}else this.Wc.getContext(),!a.data||a.Wg?this.Pb=qf(this.canvas,a,new H(0, 0,this.width,this.height),this.Sk(),this.Ng,this.vAlign,this.aa.scale):Ie(this.canvas,function(a){if(a.size)a.te=!1;return a.size});if(!this.Pb)this.Pb={width:0,height:0,data:a.data,ma:[{start:Number.MAX_VALUE,end:Number.MAX_VALUE,fc:[]}]};if(config.allowTextOverflow&&this.Pb.height>d&&c.length==0)return this.Ja(a,this.Pb.height+1);this.ma=this.Pb.ma;this.tl=this.Pb.height;this.Pn=this.Pb.width;if(this.Bc)for(var n in this.Bc)Og(this,this.Bc[n].start,this.Bc[n].end,this.Bc[n].color||"rgb(255,255,150)", b);if(this.aa.hasFocus)n=this.Ri(),a=this.transform(n),n=this.transform(new G(n.x,n.y+n.h)),c=Math.min(a.x,n.x),d=Math.min(a.y,n.y),i=Math.max(a.x,n.x),j=Math.max(a.y,n.y),this.Ai.move((c-e)*this.aa.scale,(d-f)*this.aa.scale,(i-c)*this.aa.scale,(j-d)*this.aa.scale),g=this.Ai.getContext(),g.scale(this.aa.scale,this.aa.scale),g.translate(-c,-d),g.strokeStyle="#000000",g.lineWidth=1,g.beginPath(),g.moveTo(a.x,a.y),g.lineTo(n.x,n.y),g.stroke(),this.aa.ua!=l&&this.aa.ua!=this.aa.fa&&Og(this,this.aa.ua, this.aa.fa,"rgba(96,96,255,0.3)",b),this.Ul&&this.Oq()}}; function Og(a,b,c,d,e){if(b!=c){var f=a.Ri(b),g=a.Ri(c);if(!Na(f,g))b=a.Xg(b),c=a.Xg(c),e.fillStyle=d||"rgba(96,96,255,0.3)",b==c?a=Ng(a,[new G(f.x,f.y),new G(g.x,g.y),new G(g.x,g.y+g.h),new G(f.x,f.y+f.h)]):(b").css({position:"fixed",bottom:"0px",left:"0px",width:"1px",height:"1px",display:"block",background:"transparent",overflow:"hidden",border:"0 !important", resize:"none",outline:"none"}).addClass("user-select-text");this.vf=$("").css({position:"fixed",width:"1px",height:"1px",bottom:"0px",left:"0px",background:"transparent",overflow:"hidden",border:"0 !important",display:"none",resize:"none",outline:"none"}).addClass("user-select-text");this.Df=[];this.Ha=!1;this.Df.push(setInterval(function(){e.Ub()},10));this.Df.push(setInterval(function(){e.Vl<=0||(e.Vl--,e.Vl==0&&e.trigger("change",{aa:e,action:e.Mr}))},100));this.hasFocus=this.enabled= !1;this.scale=1;var f=l;this.xo=function(){var a=Pg(e);Na(f,a)||(f=a,J.set("optionBar.refresh"));return a};var g=l;this.Df.push(setInterval(function(){if(e.hasFocus){var a=e.fa+","+e.ua;if(a!=g){var b={text:Xg(e),style:e.xo()};e.trigger("selection",b);J.set("canvasEditor.selection",b.style);g=a;e.Se={}}}},250));this.Vd($(document),"fontLoaded",function(){e.ia();e.content.eh=l});this.Ox=J("lucid.spellCheck.enabled",r(this.ia,this));this.Vd($(document),"lucid.spellCheck.newData",function(){(Yg||e.hasFocus)&& e.ia()});this.Vd($(document),"lucid.spellCheck.language",function(a,b){e.language=b;(Yg||e.hasFocus)&&e.ia()})}var Yg;J("lucid.spellCheck.enabled",function(a){Yg=a});q=Wg.prototype;q.Ub=function(){if(this.Ha)this.Ha=!1,this.Ja()};function Sg(){var a=P;a.vf.val(Xg(a)).focus().select();setTimeout(function(){a.vf.val("");a.Mc.focus();a.ae()},1)}q.copy=function(){var a=this;a.vf.val(Xg(a)).focus().select();setTimeout(function(){a.vf.val("");a.Mc.focus()},1)}; q.Vd=function(a,b,c){if(this.Hb==l)this.Hb=[];this.Hb.push([a,b,c]);a.bind(b,c)};q.ia=function(){this.Ha=!0};q.Ri=function(a,b){if(a==l)a=this.fa;for(var a=Math.max(0,Math.min(a,this.content.text.length)),c=this.oa[this.oa.length-1],d=0;d=a[0]&&e<=a[1]&&(a=b.content.text.substr(a[0],a[1]-a[0]),c=XRegExp("[^\\p{L}]*(.*\\p{L})[^\\p{L}]*$").exec(a)[1])})}});return c}; function Zg(a){var b=P,c=[];A(b.oa,function(d){if(d.Db(a)){var e=Ig(d,Jg(d,a));A(Ec(b.content.text,b.language),function(a){if(e>=a[0]&&e<=a[1]){var d=b.content.text.substr(a[0],a[1]-a[0]),i=XRegExp("[^\\p{L}]*(.*\\p{L})[^\\p{L}]*$").exec(d)[1],j=fc(ec(b.language),[i])[i];A(j,function(e){c.push({label:e,action:function(){$g(b,a[0],a[1],d.replace(i,e))}})})}})}});return c} function Lg(a){var b=a.ua==l,c=Tc(a.content,a.fa);a.ua&&Tc(a.content,a.ua);var d=a.ua&&a.ua>a.fa?Math.min:Math.max,e=a.ua&&a.ua>a.fa?"start":"end",f=d==Math.max?Math.min:Math.max,g=e=="start"?"end":"start";a.Mk=0;a.ua&&A(c,function(b){if(b.name=="locked"&&b.val==!0)a.ua=f(a.ua,b[g])});A(c,function(c){if(c.name=="locked"&&c.val==!0){a.fa=d(a.fa,c[e]);if(a.fa==c[e])a.Mk=c.end-c.start;if(b)a.ua=a.ua?f(a.ua,c[g]):c[g]}});a.ia()}function $g(a,b,c,d){a.ua=b;a.fa=c;Lg(a);a.ae();Vg(a,d)} q.rc=function(){for(var a=this.oa[0],b=1;b=this.oa[b].ma[0].start&&this.fa<=this.oa[b].ma[this.oa[b].ma.length-1].end&&(a=this.oa[b]);return a}; function Hg(a){if(a.Dk)a.Dk=!1,a.Mc.val(a.Rj.val()),a.Rj.val(""),a.Rj.remove(),a.yo(),A(a.oa,function(a){a.canvas.J.css("background","transparent")}),clearInterval(a.Ar);else{a.Dk=!0;A(a.oa,function(a){a.canvas.J.css("background","#dde")});var b=a.rc(),c=b.canvas.J.offset(),d=b.canvas.J.width(),e=b.canvas.J.height();a.Rj=$('').css({position:"absolute",top:c.top+e+"px",left:c.left+"px",width:d+"px",zIndex:1E6}).appendTo("body").val(Xg(a)).focus().select().blur(function(){Hg(a); a.Mc.focus()}).keyup(function(b){!Rd&&b.which==13&&a.Rj.blur()});a.Ar=setInterval(function(){var b=a.rc(),c=b.canvas.J.offset(),b=b.canvas.J.width();a.Rj.css({top:c.top+e+"px",left:c.left+"px",width:b+"px"})},250);a.Df.push(a.Ar)}} q.ba=function(a,b){var c=this;a.c=this.fa;a.a=this.ua;this.content.ba(a);this.ia();if(!b){for(var d=[],e=0;e0?this.Mr.f=this.Mr.f.concat(a.f):this.trigger("change",{aa:this,action:a});A(d,function(a){c.ba(a)})}this.xo();P&&J.set("canvasEditor.selection")}; q.Db=function(a){if(!this.hasFocus)return!1;if($("div.ui-dialog:visible").size()>0)return!1;for(var b=0;b=this.ma[b].start&&a0)if(a.fa>a.ua&&(b.which==37||b.which==38))a.fa-=a.Mk;else if(a.fa0;d--){var f=c.text[d-1].match($c);if(f&&e)break;f||(e=!0)}c=Math.max(0,d)}else c=Math.max(0,a.fa-1);a.fa=c}if(b.which==39){if(b.ctrlKey){c=a.content;e=!1;for(d=a.fa;d0?a.ma[c-1].start+Math.min(a.ma[c-1].end-a.ma[c-1].start,a.fa-a.ma[c].start):0;if(b.which==40)c=a.Xg(a.fa),a.fa=c1||this.fa==this.content.text.length)){b=!0;break a}b=!1}if(b&&(b=this.content.wa(this.fa),b.type=="ol"||b.type=="ul"||b.type=="hl")){b.indentLevel>1?Qg(this,"indentLevel",b.indentLevel-1):(Qg(this,"type","p"),Qg(this,"indentLeft",0));this.Mc.val("");return}this.ae();Vg(this,a);this.Mc.val("")}}}; q.enable=function(){this.enabled=!0;return this};q.disable=function(){this.enabled=!1;return this}; q.focus=function(){setTimeout(r(this.Mc.focus,this.Mc),1);if(P!=this){P&&P.blur();var a=this;this.Mc.bind("keydown keyup keypress",function(b){if(b.which==32&&(b.ctrlKey||b.metaKey))Hg(a),b.preventDefault(),b.stopPropagation();a.yo()}).bind("keydown",function(b){Kg(a,b)}).appendTo("body");this.vf.appendTo("body");this.Yj=setInterval(r(this.yo,this),10);this.hasFocus=!0;this.Mc.add(this.vf).css("display","block");this.yt||A(this.oa,function(a){a.focus()});P=this;J.set("canvasEditor.active");pe("text"); return this}};q.blur=function(){var a=this;setTimeout(function(){try{a.Mc.blur()}catch(b){}},1);this.Dk&&Hg(this);this.hasFocus=!1;clearInterval(this.Yj);this.Yj=l;this.Mc.remove();this.vf.remove();A(this.oa,function(a){a.blur()});this.Mc.add(this.vf).css("display","none");this.trigger("blur");P=l;J.set("canvasEditor.inactive");qe("text");this.ia();return this};q.select=function(){this.ua=0;this.fa=this.content.text.length;Lg(this);return this}; function ah(a,b,c){a.enable().focus();a.one("blur",function(){c&&c(a)});$.cookie("ime")=="1"&&setTimeout(function(){Hg(a)},100);if(!b){var d=function(b){if(b.which==13&&!b.shiftKey&&!b.ctrlKey)a.blur(),b.preventDefault();else a.one("keydown",d)};a.one("keydown",d)}}function bh(a,b){return qa(a)||a.substr(0,6)=='{"t":"'?a:dd(a,b).serialize()}function ch(a,b){return dd(a,b).text}function dh(a,b,c){a=dd(a,b);Rc(a,0,a.text.length,c);return a.serialize()} function eh(a,b,c){a=dd(a,b);return mf(a.Ja(),c)}function fh(a,b,c,d){a=dd(a,b);if(a.text=="")return d;a=Vc(a,0,a.text.length);a.align===""&&(a.align=c);if(d)for(var e in d)d[e]!=a[e]&&(a[e]=l);return a} q.Ja=function(){this.Ha=!1;this.trigger("prerender");var a=!1;if(this.hasFocus||Yg)a=this.ua==this.fa||this.ua==l?this.fa:-1,this.hasFocus||(a=-1);for(var a=this.content.Ja(a,this.language),b=!1,c=[],d=0;d0&&a.Zh&&e.Xk!=l&&e.Xk!=0?e.Ja(a,!1,!0):e.Ja(a);A(e.ma,function(a){c.push(a)});a=e.Pb;d==this.oa.length-1&&a.Wg&&this.trigger("needsMoreSpace");!b&&d"+a+"");this.J.find("span").css({position:"fixed",font:"bold 24px arial",margin:"4px",cursor:"default"});this.done=b;this.anchor=l};kh.prototype.ud=ca("anchor"); kh.prototype.fd=function(a){if(this.anchor!=l){var b=mh(this.K.viewport.V[0].C).data,c=b.data;$("#selectsegmentbox").remove();this.J.prepend('
');$("#selectsegmentbox").css({position:"absolute",left:(Math.min(a.x,this.anchor.x)-b.x*c.x)*this.K.viewport.scale+this.K.viewport.padding+"px",top:(Math.min(a.y,this.anchor.y)-b.y*c.y)*this.K.viewport.scale+this.K.viewport.padding+"px",width:Math.abs(a.x-this.anchor.x)*this.K.viewport.scale+"px",height:Math.abs(a.y-this.anchor.y)* this.K.viewport.scale+"px",border:"2px solid black",background:"#aaaaaa"})}};kh.prototype.gd=function(a){if(this.anchor!=l){var a=new H(Math.round(Math.min(a.x,this.anchor.x)),Math.round(Math.min(a.y,this.anchor.y)),Math.round(Math.abs(a.x-this.anchor.x)),Math.round(Math.abs(a.y-this.anchor.y))),b=mh(this.K.viewport.V[0].C);this.done(yb(a,b));this.destroy()}this.anchor=l;$("#selectsegmentbox").remove()};function lh(a){this.K=a;this.Mp=[]}var nh=l;q=lh.prototype; q.create=function(a){var b=this;nh&&nh.destroy();nh=this;this.K.viewport.J.append('
');this.J=$("#viewport_overlay");this.J.css({position:"absolute",left:0,top:0,width:this.K.viewport.J.width(),height:this.K.viewport.J.height(),"background-color":"palegoldenrod","z-index":300});a!=1&&this.J.css("opacity",0).fadeTo(200,a||0.3);this.canvas=new Fe(this.J.width(),this.J.height());this.J.append(this.canvas.J);this.ya=new Je(0,0,this.J.width(),this.J.height());Ge(this.canvas, this.ya);this.jd=!1;this.Me=l;this.J.bind("mousedown",function(a){a.preventDefault();if(b.jd=a.altKey){var d=b.K.zi.get(0);b.Me={originalEvent:a,cn:d.scrollTop,bn:d.scrollLeft}}else b.ud(b.K.viewport.mc(a),a);a.stopPropagation()});this.J.bind("mousemove",function(a){if(b.jd){var d=b.K.zi.get(0);d.scrollTop=b.Me.cn+b.Me.originalEvent.pageY-a.pageY;d.scrollLeft=b.Me.bn+b.Me.originalEvent.pageX-a.pageX}else b.fd(b.K.viewport.mc(a),a);a.stopPropagation()});this.J.bind("mouseup",function(a){b.jd=!1;b.gd(b.K.viewport.mc(a), a);a.stopPropagation()});this.J.bind("click",function(a){b.jd=!1;b.click(b.K.viewport.mc(a),a);a.stopPropagation()});this.J.bind("dblclick",function(a){b.jd=!1;b.Fc(b.K.viewport.mc(a),a);a.stopPropagation()});pe("overlay");this.Mp.push(J("overlay.exit",function(){b.destroy()}));this.Mp.push(J("overlay.save",function(){b.save&&b.save()}))};q.destroy=function(){nh==this&&(nh=l);this.J.fadeOut(200,function(){$(this).remove()});nh==l&&qe("overlay");A(this.Mp,function(a){hb(a)})};q.ud=o();q.fd=o(); q.gd=o();q.Fc=o();q.click=o();function oh(a){lh.call(this,a);this.xw=!0}Ca(oh,lh);oh.prototype.create=function(a,b){oh.zd.create.call(this);this.J.prepend(""+a+"");this.J.find("span").css({position:"fixed",font:"bold 24px arial",margin:"4px",cursor:"default"});this.done=b;this.anchor=l}; function ph(a,b,c){if(nh&&nh.xw){var d=nh.done;nh.done=function(b){a.K.$.document.Aa();d&&d(b);c&&c(b);a.K.$.document.xa()}}else oh.zd.create.call(a),a.J.prepend(""+b+""),a.J.find("span").css({position:"fixed",font:"bold 24px arial",margin:"4px",cursor:"default"}),a.done=c,a.anchor=l}oh.prototype.ud=function(a){if(a=a.data.Za(a.x,a.y))this.destroy(),this.done&&this.done(a.item)};function qh(a,b,c,d){if(this.C.pb())return l;b=this.kl(new G(a,b));a=b.x;b=b.y;c=this.hg(a,b,c,d);if(c==l){d=this.C.ja();if(ad.x+d.w||b>d.y+d.h)return l;a=new G(a,b);b=this.C.getEdgeLines();for(d=0;d=a.x&&b[c][0].x<=a.x+a.w&&b[c][0].y>= a.y&&b[c][0].y<=a.y+a.h)return!0;if(Vb(b[c][0],b[c][1],new G(a.x,a.y),new G(a.x+a.w,a.y)))return!0;if(Vb(b[c][0],b[c][1],new G(a.x+a.w,a.y),new G(a.x+a.w,a.y+a.h)))return!0;if(Vb(b[c][0],b[c][1],new G(a.x+a.w,a.y+a.h),new G(a.x,a.y+a.h)))return!0;if(Vb(b[c][0],b[c][1],new G(a.x,a.y+a.h),new G(a.x,a.y)))return!0}return!1} function sh(){for(var a=[],b=this.He(),c=0,d=0,e=0,f=0,g=0;g0?e[0].page:a.$.K.viewport.V[0])&&yh[e.C.id])R.Yb=e.C;else{var f=e.C.q.get("Order"),z,B;for(B in yh)if(yh[B].q.get("Order")>f){z=yh[B];break}if(z)R.Yb= z;else for(var O in yh)if(yh.propertyIsEnumerable(O)){R.Yb=yh[O];break}Na(R.Yb,e.C)||a.$.K.viewport.Lb([R.Yb])}Dh();if(R.Yb&&zh[R.Yb.id]&&(z=zh[R.Yb.id],z[R.lc]&&(z=z[R.lc],z[R.vc]&&(z=z[R.vc],z[R.Xb]))))z[R.Xb].color="rgb(255,150,50)"}else xh={},zh={},delete R.Yb,delete R.lc,delete R.vc,delete R.Xb;a.$.K.viewport.ia()} function Dh(){if(xh){var a=[],b;for(b in yh){var c=yh[b];zh[c.id]=[];var a=[],d;for(d in c.Oa)if(xh[d])xh[d].item=c.Oa[d],a.push(xh[d]);a.sort(function(a,b){return a.item.ja().y-b.item.ja().y});var e=[],f;for(f in c.ma)if(xh[f])xh[f].item=c.ma[f],e.push(xh[f]);e.sort(function(a,b){return a.ja().y-b.ja().y});a=a.concat(e);zh[c.id]=a}}} function Eh(a,b,c){if(a&&a.length){if(R.vc==h)R.vc=b>0?0:a.length-1;if(!a[R.vc])return!1;for(;R.vc>=0&&R.vc=a.length?(delete R.vc,!1):!0}return!1} function Fh(a,b,c){var d=!1;if(a&&a.length){var e=R.Yb.ra(a[0].item),f=(e.la||e.q.get("TextAreas"))[a[0].ue],g=f.tc?f.tc(e.ja()):Gh(e,f.Value,f.Location,f.Side),i=!1;$.each(Ch(c.$.K.viewport),function(a,b){b.page.C==R.Yb&&(i=Ab(g,b.Da))});if(f&&R.Xb==h){if(b=b>0?0:a.length-1,a[b])R.Xb=b,a[b].color="rgb(255,150,50)",i||Hh(c.$.K.viewport,g),d=!0}else a[R.Xb+b]?(delete a[R.Xb].color,R.Xb+=b,a[R.Xb].color="rgb(255,150,50)",i||Hh(c.$.K.viewport,g),d=!0):(a[R.Xb]&&delete a[R.Xb].color,delete R.Xb);c.$.K.viewport.ia()}return d} ;function Ih(a,b){var c=document.createElement("canvas");c.width=a.width;c.height=a.height;var d=a.src;/^http:\/\//.test(d)?d="/imageProxy/"+d.substr(7):/^https:\/\//.test(d)&&(d="/imageProxy/"+d.substr(8));if(d!=a.src){var e=new Image;$(e).bind("load",function(){c.getContext("2d").drawImage(e,0,0);b(c.toDataURL())});e.src=d}else c.getContext("2d").drawImage(a,0,0),b(c.toDataURL())};function Jh(a){this.images={};this.Yh={};this.Tg={};this.db=a;Ka=this}function Kh(a){return a=a.replace(/\/imageBlocks\/image\/(.*)/,"/imageBlocks/thumb/$1/990")}function Lh(a){this.url=a=Kh(a);this.Qg=new Image;this.Tg=!1}Jh.prototype.Ft=function(a,b){a=Kh(a);this.Gk(a)?b(a):(this.Yh[a]==l&&(this.Yh[a]=[]),this.Yh[a].push(b))};Jh.prototype.vw=function(a){a=Kh(a);return this.Tg[a]!=l?!0:this.images[a]!=l};Jh.prototype.Gk=function(a){a=Kh(a);return this.Tg[a]?!0:this.images[a]!=l&&this.images[a].Tg}; Jh.prototype.Ig=function(a,b){a=Kh(a);if(!this.images[a]){this.images[a]=new Lh(a);var c=this.images[a],d=this;$(c.Qg).one("load error",function(){if(!c.Tg)try{if(c.Tg=!0,d.Tg[c.Qg.src]=!0,d.Yh[a]!=l){for(var b=0;ba.h?(b.dx2=this.si/2,b.dy2=0):(b.dx2=0,b.dy2=this.si/2)):b.t="l";A(hg(this),function(a){b.cs.push(a.serialize())});return b}; q.ag=function(a){var b=this;this.Sf=a.x1;this.Tf=a.y1;this.ug=a.x2;this.vg=a.y2;this.si=2*Math.sqrt(a.dx2*a.dx2+a.dy2*a.dy2);this.id=a.id||l;this.th=a.base||l;a.t=="l"?(this.Ef=!1,this.cd=!0):(this.Ef=!0,this.cd=!1);this.Ff=!!a.s;this.Vf=[];A(a.cs,function(a){b.Vf.push(new Oh(new I(a.c),a.t))});return this};q.key=function(){return Qh(this.serialize())};q.ef=function(a){return a.jf&&a.key()==this.key()}; function Oh(a,b){a.Hd?(this.color=a,this.Ia=If(b,0,1)):(this.color=new I(a.color),this.Ia=a.Ia)}Oh.prototype.serialize=function(){return{t:this.Ia,c:this.color.serialize()}}; function Qh(a){var b=[];b.push("t",a.t,"x1",a.x1.toFixed(5),"y1",a.y1.toFixed(5),"x2",a.x2.toFixed(5),"y2",a.y2.toFixed(5),"dx1",a.dx1?a.dx1.toFixed(5):"","dy1",a.dy1?a.dy1.toFixed(5):"","dx2",a.dx2?a.dx2.toFixed(5):"","dy2",a.dy2?a.dy2.toFixed(5):"");a.cs.sort(function(a,b){return b.t-a.t});A(a.cs,function(a){b.push("t",a.t.toFixed(5),"c",a.c.charAt(0)=="#"?id(a.c).tb:a.c)});return b.join("")} function Rh(a,b,c){var d;if(b.cd)d=a.createLinearGradient(c.x+b.Sf*c.w,c.y+b.Tf*c.h,c.x+b.ug*c.w,c.y+b.vg*c.h);else if(b.Ef){var e=b.serialize(c);d=a.createRadialGradient(c.x+b.Sf*c.w,c.y+b.Tf*c.h,Mb(new G(e.dx1*c.w,e.dy1*c.h)),c.x+b.ug*c.w,c.y+b.vg*c.h,Mb(new G(e.dx2*c.w,e.dy2*c.h)))}A(hg(b),function(a){d.addColorStop(a.Ia,gb(a.color))});a.fillStyle=d};function Sh(a,b){lh.call(this,a);this.qa=b}Ca(Sh,lh);q=Sh.prototype; q.create=function(){Sh.zd.create.call(this,1);this.$f="default";this.ro=new Th(l,this.qa);this.qa.hide=!0;this.K.viewport.ia();this.J.css("background-color","transparent");var a=this.canvas.J.parent().parent().parent();this.J.append(""+S("overlay.crop.instructions")+"");this.J.find("span").css({position:"fixed",font:"bold 24px arial",margin:"4px",cursor:"default",left:a.offset().left+16+"px",top:a.offset().top+16+"px"}).fadeTo(200,0.7);this.Tk=this.qa.q.get("Crop");this.Bt=this.qa.q.get("BoundingBox"); if(!this.Tk)this.Tk={s:[1,1],t:[0,0],r:0,c:[{c:"m",x:0,y:0},{c:"l",x:1,y:0},{c:"l",x:1,y:1},{c:"l",x:0,y:1},{c:"c"}]},this.qa.q.set("Crop",this.Tk);this.ea=K(this.Bt);this.oi=K(this.Tk);this.$a=new H(this.ea.x+this.oi.t[0]*this.ea.w,this.ea.y+this.oi.t[1]*this.ea.h,this.ea.w*this.oi.s[0],this.ea.h*this.oi.s[1],l);this.hj=this.X=l;this.Ha=!0;this.Yq=setInterval(r(this.Ub,this),20)};q.destroy=function(){Sh.zd.destroy.call(this);this.qa.hide=!1;this.K.viewport.ia();this.ro.destroy();clearInterval(this.Yq)}; q.save=function(){var a=this.K.$.document;a.Aa();a.ba(new N(M,{id:this.qa.id,Property:"Crop",Value:this.oi}));a.ba(new N(M,{id:this.qa.id,Property:"BoundingBox",Value:this.ea}));a.xa();this.destroy()}; q.Ja=function(){this.scale=this.K.viewport.scale;var a=this.K.viewport.padding,b=this.qa.page.q.get("Size");this.ya.move(0,0,b.w*this.scale+a*2,b.h*this.scale+a*2);var c=this.ya.getContext();c.translate(a,a);c.scale(this.scale,this.scale);c.fillStyle="rgba(255,255,170,.5)";c.fillRect(0,0,b.w,b.h);a=this.qa.q.get("BoundingBox");if(b=this.qa.q.get("Rotation"))c.translate(a.x+a.w/2,a.y+a.h/2),c.rotate(b),c.translate(-a.x-a.w/2,-a.y-a.h/2);this.oi={s:[this.$a.w/this.ea.w,this.$a.h/this.ea.h],t:[-(this.ea.x- this.$a.x)/this.ea.w,-(this.ea.y-this.$a.y)/this.ea.h],r:0,c:[{c:"m",x:0,y:0},{c:"l",x:1,y:0},{c:"l",x:1,y:1},{c:"l",x:0,y:1},{c:"c"}]};this.qa.q.set("Crop",this.oi);this.qa.q.set("BoundingBox",this.ea);c.globalAlpha=0.5;a=this.qa.He();Uh(this.ro,c,a,!1);c.globalAlpha=1;Uh(this.ro,c,a);a=this.ea;c.strokeStyle="#FFFFFF";c.lineWidth=4;c.fillStyle="rgb(0,0,150)";c.beginPath();c.moveTo(a.x,a.y);c.lineTo(a.x+8,a.y);c.lineTo(a.x+8,a.y-8);c.lineTo(a.x-8,a.y-8);c.lineTo(a.x-8,a.y+8);c.lineTo(a.x,a.y+8);c.lineTo(a.x, a.y);c.fill();c.stroke();c.beginPath();b=a.x+a.w;c.moveTo(b,a.y);c.lineTo(b,a.y+8);c.lineTo(b+8,a.y+8);c.lineTo(b+8,a.y-8);c.lineTo(b-8,a.y-8);c.lineTo(b-8,a.y);c.lineTo(b,a.y);c.fill();c.stroke();c.beginPath();var d=a.y+a.h;c.moveTo(a.x,d);c.lineTo(a.x+8,d);c.lineTo(a.x+8,d+8);c.lineTo(a.x-8,d+8);c.lineTo(a.x-8,d-8);c.lineTo(a.x,d-8);c.lineTo(a.x,d);c.fill();c.stroke();c.beginPath();c.moveTo(b,d);c.lineTo(b,d-8);c.lineTo(b+8,d-8);c.lineTo(b+8,d+8);c.lineTo(b-8,d+8);c.lineTo(b-8,d);c.lineTo(b,d); c.fill();c.stroke();this.qa.q.set("Crop",this.Tk);this.qa.q.set("BoundingBox",this.Bt)};q.Ub=function(){if(this.Ha||this.scale!=this.K.viewport.scale)this.Ha=!1,this.Ja()}; q.Za=function(a){var b=Lb(new G(this.ea.x,this.ea.y),a),c={type:"crop",action:"crop",oy:"crop",cursor:"crosshair"};if(b<20)return c.Bh="nw",c;b=Lb(new G(this.ea.x+this.ea.w,this.ea.y),a);if(b<20)return c.Bh="ne",c;b=Lb(new G(this.ea.x+this.ea.w,this.ea.y+this.ea.h),a);if(b<20)return c.Bh="se",c;b=Lb(new G(this.ea.x,this.ea.y+this.ea.h),a);return b<20?(c.Bh="sw",c):!1};function Vh(a,b){var c=a.qa.q.get("Rotation"),d=a.qa.ja();return Za(b,new G(d.x+d.w/2,d.y+d.h/2),-c)} q.ud=function(a){this.X=this.Za(Vh(this,a))};q.Fc=function(){this.X=l}; q.fd=function(a){this.Ha=!0;a=Vh(this,a);if(this.X){if(this.X.Bh=="nw")this.ea.x+this.ea.w-a.x>15?a.x15?a.y15?a.x>this.$a.x+ this.$a.w?this.$a.x+this.$a.w-this.ea.x:a.x-this.ea.x:15,this.ea.y+this.ea.h-a.y>15?a.y15?a.x>this.$a.x+this.$a.w?this.$a.x+this.$a.w-this.ea.x:a.x-this.ea.x:15,this.ea.h=a.y-this.ea.y>15?a.y>this.$a.y+this.$a.h?this.$a.y+this.$a.h-this.ea.y:a.y-this.ea.y:15;else if(this.X.Bh=="sw")this.ea.x+this.ea.w- a.x>15?a.x15?a.y>this.$a.y+this.$a.h?this.$a.y+this.$a.h-this.ea.y:a.y-this.ea.y:15;this.Ha=!0}else if(a=this.Za(a)){if(this.$f!=a.cursor)this.$f=a.cursor,this.J.css({cursor:a.cursor})}else if(this.$f!="default")this.$f="default",this.J.css({cursor:"default"})};q.gd=function(){this.X=l};function Wh(){this.action="";this.tt=this.st=this.Mt=this.Lt=this.fl=this.Jo=this.Fc=this.dz=this.Qq=this.So=this.click=this.value=this.oe=this.cursor=this.oc=this.Kc=this.item=l;this.max=this.min=this.index=0;this.Qd=l}function Xh(a){var b=[];a.item&&b.push(a.item);a.Kc&&(b=b.concat(a.Kc));return $.unique(b)}function Yh(a){var b=!1;A(Xh(a),function(a){if(a.sa)return b=!0,!1});return b}function Zh(a){var b=!1;A(Xh(a),function(a){if(a.pa)return b=!0,!1});return b}q=Wh.prototype; q.rotation=function(){var a=Xh(this);return a.length==1&&a[0].sa?a[0].q.get("Rotation"):0};q.ja=function(){return $h(Xh(this))};q.Oh=function(){var a=!1;A(Xh(this),function(b){a=a||b.Oh});return a};q.qi=function(){var a=!1;A(Xh(this),function(b){a=a||b.qi});return a};function ai(a,b){var c=new Wh;c.action="rotate";c.item=a[0];c.Kc=a;c.value=b;return c}function bi(a){var b=new Wh;b.action="nw";b.item=a[0];b.Kc=a;return b}function ci(a){var b=new Wh;b.action="ne";b.item=a[0];b.Kc=a;return b} function di(a){var b=new Wh;b.action="sw";b.item=a[0];b.Kc=a;return b}function ei(a){var b=new Wh;b.action="se";b.item=a[0];b.Kc=a;return b}function fi(a,b,c,d,e){var f=new Wh;f.action="move";f.item=a;f.click=b;f.cursor=c;f.Qd=d;if(e)f.Fc=e;return f}function gi(a,b){var c=new Wh;c.action="linkpoint";c.item=a;c.oc=b;return c}function hi(a,b,c){var d=new Wh;d.action="dragline";d.item=a;d.oe=b;d.value=c;return d} function ii(a,b,c,d,e,f,g,i,j){var k=new Wh;k.action="slidex";k.item=a;k.Lt=b;k.Mt=c;k.st=d;k.tt=e;k.Xc=f;k.index=g;k.min=i;k.max=j;k.th=f[g].x;k.bh=a.q.get("XPlanes");k.pj=Zb(k.bh,k.th);if(k.pj==-1)k.pj=k.bh.length;return k}function ji(a,b,c,d,e,f,g,i,j){var k=new Wh;k.action="slidey";k.item=a;k.Lt=b;k.Mt=c;k.st=d;k.tt=e;k.Xc=f;k.index=g;k.min=i;k.max=j;k.th=f[g].y;k.bh=a.q.get("YPlanes");k.pj=Zb(k.bh,k.th);if(k.pj==-1)k.pj=k.bh.length;return k} function ki(a){var b=new Wh;b.action="other";b.item=a;return b}function li(a){var b=new Wh;b.action="select";b.item=a;return b}q.Mq=ca("fl");Wh.prototype.setReadOnlyClick=Wh.prototype.Mq;t("lucid.view.render.Hit.control",function(a,b){var c=new Wh;c.action="control";c.item=a;if(b.doubleClick)c.Fc=b.doubleClick;if(b.drag)c.So=b.drag;if(b.startDrag)c.Qq=b.startDrag;if(b.endDrag)c.vs=b.endDrag;if(b.click)c.click=b.click;if(b.cursor)c.cursor=b.cursor;if(b.cursorFunc)c.Jo=b.cursorFunc;return c}); t("lucid.view.render.Hit.move",fi);function Th(a,b){var c=this;this.page=this.page=a;this.model=this.C=b;this.St=function(){if(this.name in c.la)c.la[this.name].Ha=!0;else if(this.name!="BoundingBox")c.Ha=!0};this.C.q.$i(l,this.St);this.ya=l;this.Ha=!1;this.Hf="";this.la={}} function mi(a){if(a.C.onCreate)a.Xh=a.C.onCreate,a.onCreate=a.C.onCreate;if(a.C.clicked)a.Yl=a.C.clicked;if(a.C.textClicked)a.Wq=a.C.textClicked;if(a.C.doubleClicked)a.fk=a.C.doubleClicked,a.doubleClicked=a.C.doubleClicked;if(a.C.textDoubleClicked)a.Xq=a.C.textDoubleClicked,a.textDoubleClicked=a.C.textDoubleClicked;if(a.C.hitTest)a.Za=a.C.hitTest;if(a.C.hitTestTools)a.hg=a.C.hitTestTools;if(a.C.rectTest)a.xj=a.C.rectTest;if(a.C.selectNewLink)a.ml=a.C.selectNewLink,a.selectNewLink=a.C.selectNewLink} Th.prototype.destroy=function(){for(var a in this.la)this.la[a].destroy();this.la={};if(this.ya)this.ya.destroy(),this.ya=l;ni(this.C.q,this.St);A(this.Hb,function(a){a[0].unbind(a[1],a[2])});this.Hb=[];this.Hf="";this.Ha=!0};function oi(a,b){this.qa=a;this.C=b;this.Ha=!0;this.aa=l}oi.prototype.destroy=function(){if(this.aa)this.aa.destroy(),this.aa=l}; function pi(a,b,c,d,e,f){var g=a.C.tc(d);if(g==l){if(a.aa)a.aa.destroy(),a.aa=l}else{la(g)||(g=[g]);var i=a.qa.C.Og(d);if(c||a.Ha||i.length!=0){a.Ha=!1;var j=a.qa.C.q.get(a.C.name);if(a.aa==l){var k=a.qa.C.document.q.get("Language");a.aa=new Wg(1,1,k,a);var n=!1,m=!1;a.aa.bind("change",function(b){m=!0;!n&&!a.qa.C.document.jg&&(n=!0,a.qa.C.document.Aa(),a.qa.C.document.ba(new N(yg,{id:a.qa.C.id,Key:a.C.name,Diff:b.action})),setTimeout(function(){a.qa.C.document.xa()},1),n=!1)});a.aa.bind("blur",function(){m&& (a.qa.C.zr(a.qa),m=!1);a.qa.C.q.get("Shadow")&&a.qa.ia()});a.qa.ya.J.append(a.aa.oa[0].J);k=dd(j,a.qa.C.q.get("Font"));if(!k.ef(a.aa.content))a.aa.content.text=k.text,a.aa.content.za=k.za,a.aa.ia()}A(g,function(a){a.x-=d.x;a.y-=d.y;a.w=Math.max(a.w,1);a.h=Math.max(a.h,1)});var p=a.C.textAlign||a.qa.C.q.get("TextAlign"),s=a.C.ul||a.qa.C.q.get("TextVAlign"),u=a.C.rotation||0,i=nd([g,d,e,b,j,p,s,u,i,a.qa.ya.padding,f,xh[a.qa.C.id],R.lc,R.vc,R.Xb]);if(a.aa.vl!=i||c){a.aa.vl=i;var w=new G(d.w/2,d.h/2); a.aa.scale=b;a.aa.qa=a.qa.C;a.aa.Bp=a.qa.C.id;A(g,function(c,g){g>=a.aa.oa.length&&(a.aa.oa.push(new Gg(1,1,a.aa)),a.qa.ya.J.append(a.aa.oa[g].J),a.aa.hasFocus&&a.aa.oa[g].focus());var i=a.aa.oa[g],j=db(c,e+u,w);if(u){var k=Za(new G(c.x+c.w/2,c.y+c.h/2),w,e);j.x=k.x-j.w/2;j.y=k.y-j.h/2}k=db(d,e,new G(w.x+d.x,w.y+d.y));i.Ue=[];if(f){var n=f.type,m=f.params,U=function(){var b=a.qa.C.q.get(a.C.name),e=a.qa.C.q.get("Font"),g=a.qa.C.Og(new H(c.x+d.x,c.y+d.y,c.w,c.h)),f=a.C.textAlign||a.qa.C.q.get("TextAlign"), i=a.C.ul||a.qa.C.q.get("TextVAlign"),j=K(c),b=dd(b,e),b=mf(b.Ja(),j,g,f,i);m.bb=new H(b.x,b.y,b.width,b.height);b=Dg[n](m);b.update=U;return b};i.Ue.push(U())}if(e||u){var X=new G(c.w/2,c.h/2);i.Ue.push(new Dg("Rotate",Eb(X,e+u),Eb(X,-(e+u))))}i.width=c.w;i.height=c.h;i.Ng=p;i.vAlign=s;i.rotation=e;i.J.css({position:"absolute",left:(j.x+j.w/2-c.w/2+d.x-k.x)*b+a.qa.ya.padding+"px",top:(j.y+j.h/2-c.h/2+d.y-k.y)*b+a.qa.ya.padding+"px",width:c.w*b+"px",height:c.h*b+"px"});i.Sk=function(){return a.qa.C.Og(new H(c.x+ d.x,c.y+d.y,c.w,c.h))}});for(c=g.length;cd.x+d.w+25||bd.y+d.h+25)return l;c==l&&(c=qi(this,new G(a,b)));var e=new G(a,b),b=this.C.document.$.K.viewport.mode.name=="drawing",f=10;Ya&&(f=25);for(var a=this.C.cg(),g=0;gf.x+f.w+50||bf.y+f.h+50)return l;try{if(this.C.page!=this.C.document.$.K.viewport.V[0].C)return l}catch(g){}var i=new G(a,b),j=config.resizeHandleSize,k=1/this.C.document.$.K.viewport.scale,n=this.C.document.$.K.viewport.getSelection(!0),m=this.C.controls;if(m)for(var p in m){var s=m[p].Za(a,b,c,d);if(s)return s}if(d&&n.length==1&&!this.C.lx&&(m=k*(j/2+1),Ya&&(m*=3),Nb(new G(f.x+f.w/2,f.y-k*(2*j+m)),i)<2*m*m))return f=this.C.q.get("Rotation"), ai([this.C],f);if(!c){c=qi(this,i);if((d||config.allowResizeUnselected)&&!c)if((!this.C.qi||!this.C.Oh)&&n.length<=1){d=k*j;Ya&&(d*=3);if(this.page&&Lb(i,new G(f.x,f.y))=80&&f.h>=80)&&!this.C.Ow)if(a=this.gg(a,b,c),a!=l)return a;for(p in this.la)if(!this.la[p].C.readOnly&&(a=this.la[p].C.tc(f))){la(a)|| (a=[a]);for(b=0;bd){if(g%2==1)return!0;break}}return!1}q.kl=function(a){var b=this.C.q.get("Rotation");if(!b)return a;var c=this.C.q.get("BoundingBox");return Za(a,new G(c.x+c.w/2,c.y+c.h/2),-b)}; q.Vd=function(a,b,c){if(this.Hb==l)this.Hb=[];this.Hb.push([a,b,c]);a.bind(b,c)};q.Za=function(a,b,c,d,e){if(this.C.pb())return l;var f=Ra(this.C.Gd(),50);if(!Fb(new G(a,b),f))return l;var b=this.kl(new G(a,b)),a=b.x,b=b.y,g=this,c=(e=e||!!this.C.ta)?l:this.hg(a,b,c,!!d);c==l&&qi(this,new G(a,b))&&(a=g.C.q.get("Link"),c=e?li(this.C):fi(this.C,function(){si(g)},a?"pointer":"move",l,function(){g.fk()}),a!=""&&c.Mq(function(){si(g)}));return c}; q.xj=function(a){if(this.C.pb())return!1;var b=this.C.Gd();return!(b.x>a.x+a.w||b.y>a.y+a.h||b.x+b.w1){var j=function(a){if(c.aa.hasFocus){if(a.which==9||a.keyCode==9){c.aa.blur();for(var b=1;b0){var n=a.C.document.q.get("Gradient"); if(n>0){var m=lg(i),p=m[2]*n,m=(1-m[2])*n,n=new I(i);i=new I(i);n.Ip(p>=m?p:0);ng(i,m>p?m:0);p=b.createLinearGradient(e.x,e.y,e.x+e.w,e.y+e.h);p.addColorStop(0,gb(n));p.addColorStop(1,gb(i));b.fillStyle=p}else b.fillStyle=gb(i);b.beginPath();b.yd(c[j].Actions);b.fill()}else if(i.kf){b.save();b.beginPath();b.yd(c[j].Actions);b.clip();var s=g.Gk(i.url());if(!s)a.Hf="";var u=g.Ig(i.url(),function(){s||J.set("viewport.invalidate")}),p=[];if(i.Od()=="stretch")p.push(e);else if(i.Od()=="fit")p.push(rb(new H(0, 0,u.width,u.height),e));else if(i.Od()=="fill")p.push(sb(new H(0,0,u.width,u.height),e));else if(i.Od()=="original")p.push(wb(new H(0,0,u.width,u.height),e));else if(i.Od()=="tile")for(i=e.x;i0&&c[j].LineWidth>0))b.strokeStyle=gb(i),b.lineWidth=c[j].LineWidth,b.beginPath(),b.yd(c[j].Actions),b.stroke()}f&&b.restore()} function wi(a,b,c,d){var e=b.getContext("2d"),f=a.C.q.get("Rotation"),g=a.C.ja();f&&(e.translate(b.width()/2,b.height()/2),e.rotate(f),e.translate(-b.width()/2,-b.height()/2));c&&e.scale(c,c);e.lineJoin="round";c=c||1;d=d||"sample";b=a.C.He(d);for(c=0;c>wa,g[m+3]=v,s-=u,u-=k.ga,n=p+((n=i+b+1)>wa,g[n+3]=Math.round(v*c),g[n]=x,g[n+1]=z,g[n+2]=B,s-=u,u-=k.ga,n=i+((n=j+U)0)a.rc().Bc=[],a.ia()}; t("lucid.view.render.Block",Th);Th.prototype.editText=Th.prototype.Ed;Th.prototype.invalidate=Th.prototype.ia;Th.prototype.hitTest=Th.prototype.Za;Th.prototype.hitTestTools=Th.prototype.hg;Th.prototype.selectNewLink=Th.prototype.ml;Th.prototype.getTextAreaView=Th.prototype.$v;Th.prototype.rotatedPoint=Th.prototype.kl;Th.prototype.onCreate=Th.prototype.Xh;Th.prototype.doubleClicked=Th.prototype.fk;oi.prototype.getEditor=oi.prototype.Vv;function yi(a,b){this.id=a;this.document=this.document=b;this.q=new zi(a);this.Kc={};this.isGroup=this.pa=!0;this.Je=this.Zf=this.Zg=this.ta=this.isState=this.Jc=!1;var c=this;this.q.ka("Opacity",100);this.q.ka("Lock",0,function(a){return!parseInt(a,10)?0:1},function(a,b){c.ta=!!parseInt(b,10)});this.q.ka("ZOrder",0,l,function(a,b){c.oh=b});this.q.ka("Members",{},function(a){for(var b in a)(c.page?c.page.ra(b):c.document.ra(b))||delete a[b];return a},function(a,b){for(var f in b)if(!(f in a)){var g= c.page?c.page.ra(f):c.document.ra(f);if(g&&g.parent!=c&&g.parent&&g.parent.pa){var i=g.parent.q.get("Members");delete i[f];var j=g.parent,k=j.parent;j.parent=l;j.q.set("Members",i);j.parent=k}c.Ll(g)}for(f in a)if(!(f in b)){if((g=c.page?c.page.ra(f):c.document.ra(f))&&!g.deleting&&g.parent!=c.parent)c.parent&&c.parent.pa?(i=c.parent.q.get("Members"),i[f]=!0,c.parent.q.set("Members",i),c.parent.Ll(g)):g.parent=l;c.removeItem(f)}c.pd()});this.q.ka("ConPro",0,l,function(a,b){c.Zf=!!b});this.q.ka("BG", 0,l,function(a,b){c.Je=!!b});this.uu=this.ke=this.je=this.tc=l;this.pd()}function $h(a){if(a.length==0)return new H(0,0,0,0);var b=1E6,c=1E6,d=-1E6,e=-1E6;A(a,function(a){var g=a.pa?a.pd():a.ja(!0);a.sa&&(g=db(g,a.q.get("Rotation")));b=g.xd?g.x+g.w:d;e=g.y+g.h>e?g.y+g.h:e});return new H(b,c,d-b,e-c)}q=yi.prototype;q.pd=function(){var a=[];this.Ib(function(){a.push(this)});return this.tc=$h(a)}; q.ja=function(a){if(!a&&this.je)return this.je;a=this.tc?this.tc:this.pd();return new H(a.x,a.y,a.w,a.h)};q.Gd=function(){return this.ja()};q.dt=fa(32);q.Ib=function(a){for(var b in this.Kc)if(a.call(this.Kc[b])=="stop")break};q.Uo=function(a){for(var b=this.dg(),c=b.length-1;c>=0;c--)if(a.call(b[c])=="stop")break};q.dg=function(){var a=this,b=[];this.Ib(function(){this.parent&&this.parent==a&&b.push(this)});b.sort(function(a,b){return a.oh-b.oh});return b}; q.ge=function(){for(var a=this.dg(),b=0;bz?w>0?1:-1:0,x>z?0:v>0?1:-1));e==l&&(e=new G(x>z?w>0?-1:1:0,x> z?0:v>0?-1:1));if(p&&s)if(d.x!=0&&e.x!=0&&j.x==k.x)e.x=d.x,A(f,function(a){d.x=a>j.x?1:-1;e.x=d.x;return!1});else{if(d.y!=0&&e.y!=0&&j.y==k.y)e.y=d.y,A(g,function(a){d.y=a>j.y?1:-1;e.y=d.y;return!1})}else if(n&&s||m&&p)d.x!=0&&e.x!=0&&j.x==k.x?s?e.x=d.x:d.x=e.x:d.y!=0&&e.y!=0&&j.y==k.y&&(s?e.y=d.y:d.y=e.y);var p=(v=(w=d.x==e.x&&d.y==e.y)||Math.abs(d.x)==Math.abs(e.x)&&Math.abs(d.y)==Math.abs(e.y))&&d.x!=0,s=v&&d.y!=0,B=!v,O=Tb(j,d,k,e),T=!w&&(v&&(d.x*k.x>d.x*j.x||d.y*k.y>d.y*j.y)||B&&O),W=!w&&!T; if(T&&v&&(d.x!=0&&j.y==k.y||d.y!=0&&j.x==k.x))return i([],[]),[j,k];if(T&&v)if(p)return A(f,function(a){if(d.x*a>d.x*j.x&&d.x*k.x>d.x*a)return u=[j,new G(a,j.y),new G(a,k.y),k],i([a],[]),!1}),u||i([],[]),u||[j,new G((j.x+k.x)/2,j.y),new G((j.x+k.x)/2,k.y),k];else if(s)return A(g,function(a){if(d.y*a>d.y*j.y&&d.y*k.y>d.y*a)return u=[j,new G(j.x,a),new G(k.x,a),k],i([],[a]),!1}),u||i([],[]),u||[j,new G(j.x,(j.y+k.y)/2),new G(k.x,(j.y+k.y)/2),k];var T=n?n.q.get("Rotation"):l,U=m?m.q.get("Rotation"): l,n=n?n.ja():l,m=m?m.ja():l,X=l,da=l,Z=l,Ga=l,wa=[],Ma=[],tb=l,ob=l,Ib=!1,tb=n&&m&&b.Block==c.Block,ob=b.Line&&c.Line&&b.Line==c.Line;n&&(n=new kb(T?db(n,T):n));m&&(m=new kb(U?db(m,U):m));if(O&&(x>=40==z>=40||m&&Yb(m.Kb,m.Ua,j.x+d.x*40)||m&&Yb(m.Ia,m.gb,j.y+d.y*40)||n&&Yb(n.Kb,n.Ua,k.x+e.x*40)||n&&Yb(n.Ia,n.gb,k.y+e.y*40)))return i([],[]),[j,O,k];if(B){var Bb=(p=d.y!=0)?j:k,Qb=p?d:e,s=p?n?n:l:m?m:l,ub=p?k:j,ab=p?e:d,b=p?m?m:l:n?n:l,pb=l,vb=l,c=!1;A(f,function(a){if(ab.x*a>ab.x*ub.x)return wa.push(a), vb=a,!1});A(g,function(a){if(Qb.y*a>Qb.y*Bb.y)return Ma.push(a),pb=a,!1});vb==l&&(vb=(c=Qb.y*ub.yd.x*j.x?(wa.push(a),X=new G(a,j.y)):e.x*a>e.x*k.x&&(wa.push(a),Ga=new G(a,k.y))});var X=X||new G(j.x+d.x*40,j.y),Ga=Ga||new G(k.x+e.x*40,k.y),tb=n?j.yd.y*j.y?(Ma.push(a),X=new G(j.x,a)):e.y*a>e.y*k.y&&(Ma.push(a),Ga=new G(k.x,a))});var X=X||new G(j.x,j.y+d.y*40),Ga=Ga||new G(k.x,k.y+e.y*40),tb=n?j.xcb.x*bb.x)return wa.push(a),X=new G(a,j.y),da=new G(a,k.y),!1}),X=X||new G(bb.x+cb.x*40,j.y),da=da||new G(bb.x+cb.x*40,k.y),i(wa,Ma),[j,X, da,k];else A(f,function(a){Yb(Sa.x,$b(Sa.x,[xa.Kb,xa.Ua]),a)?(wa.push(a),Kb=new G(a,Sa.y)):cb.x*a>cb.x*bb.x&&(wa.push(a),jb=new G(a,bb.y))}),Kb=Kb||new G(Sa.x+n.x*40,Sa.y),jb=jb||new G(bb.x+cb.x*40,bb.y),qb=l,A(g,function(a){Ma.push(a);qb=a;return!1}),qb=qb||($b(Sa.y,[xa.Ia,xa.gb])==xa.Ia?xa.Ia-40:xa.gb+40),b=new G(Kb.x,qb),c=new G(jb.x,qb);else if(s)if(p=!xa||!Yb(xa.Kb-40,xa.Ua+40,Sa.x)||tb||ob)return A(g,function(a){if(cb.y*a>cb.y*bb.y)return Ma.push(a),X=new G(j.x,a),da=new G(k.x,a),!1}),X=X|| new G(j.x,bb.y+cb.y*40),da=da||new G(k.x,bb.y+cb.y*40),i(wa,Ma),[j,X,da,k];else A(g,function(a){Yb(Sa.y,$b(Sa.y,[xa.Ia,xa.gb]),a)?(Ma.push(a),Kb=new G(Sa.x,a)):cb.y*a>cb.y*bb.y&&(Ma.push(a),jb=new G(bb.x,a))}),Kb=Kb||new G(Sa.x,Sa.y+n.y*40),jb=jb||new G(bb.x,bb.y+cb.y*40),Jb=l,A(f,function(a){wa.push(a);Jb=a;return!1}),Jb=Jb||($b(Sa.x,[xa.Kb,xa.Ua])==xa.Kb?xa.Kb-40:xa.Ua+40),b=new G(Jb,Kb.y),c=new G(Jb,jb.y);i(wa,Ma);return j==Sa?[j,Kb,b,c,jb,k]:[j,jb,c,b,Kb,k]}u=[j];if(b.Block!=l||b.Line!=l)u.push(Ci(j, d)),j=u[u.length-1];if(c.Block!=l||c.Line!=l)k=Ci(k,e);x=Math.abs(j.x-k.x);z=Math.abs(j.y-k.y);x0)j.x=-j.x,j.y=-j.y;j.x=Math.round(j.x*100)/100;j.y=Math.round(j.y*100)/100;return j}a=new G(b.LinkX-0.5, b.LinkY-0.5);n=Math.sqrt(a.x*a.x+a.y*a.y);if(n==0)return l;a.x/=n;a.y/=n;return a}else if(b.Line&&(a=this.page.Ge(b.Line),a!=l)){m=Gi(a,b.LineP);j=Math.atan2(m.ny,m.nx)+Math.PI/2;j=new G(Math.cos(j),Math.sin(j));a=Db(c,b);a=Hb(a,j)/Mb(a);if(a<0)j.x=-j.x,j.y=-j.y;j.x=Math.round(j.x*100)/100;j.y=Math.round(j.y*100)/100;return j}return l}.call(a);if(d!=l&&b.Block){var e=a.document.ra(b.Block);if(e&&(e=e.q.get("Rotation")))d=Za(d,new G(0,0),e),a.q.get("Shape")=="elbow"&&(a=Math.abs(d.y)>Math.abs(d.x), d=new G(a?0:d.x>0?1:-1,a?d.y>0?1:-1:0))}return d} function Ji(a,b,c){var d=a.q.get("ControlPoints");b==l&&(b=a.q.get("Endpoint1"));c==l&&(c=a.q.get("Endpoint2"));d.middle==l&&(d.middle=[]);if(d.first==l||d.last==l){var e=new G(b.x,b.y),f=new G(c.x,c.y),g=Ii(a,b,c),a=Ii(a,c,b),i=0.4;if(d.middle.length==0){var j=Math.sqrt((f.x-e.x)*(f.x-e.x)+(f.y-e.y)*(f.y-e.y));j==0&&(j=1);g==l&&(g=new G((f.x-e.x)/j,(f.y-e.y)/j));a==l&&(a=new G((e.x-f.x)/j,(e.y-f.y)/j));b.Block&&b.Block==c.Block&&(i=1);if(g.x==-a.x&&g.y==-a.y){var k=2*(g.x*g.x-2*g.x*a.x+g.y*g.y-2* g.y*a.y+a.x*a.x+a.y*a.y),e=2*g.x*(e.x-f.x)+2*g.y*(e.y-f.y)-2*a.x*(e.x-f.x)-2*a.y*(e.y-f.y);k!=0&&(e=-e/k,e>0&&(i=e/j))}k=j}else{var n=d.middle[0],m=d.middle[d.middle.length-1],k=Math.sqrt((n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y));k==0&&(k=1);j=Math.sqrt((m.x-f.x)*(m.x-f.x)+(m.y-f.y)*(m.y-f.y));j==0&&(j=1);g==l&&(g=new G((n.x-e.x)/k,(n.y-e.y)/k));a==l&&(a=new G((m.x-f.x)/j,(m.y-f.y)/j))}d.first==l&&(d.first={nx:g.x*k*i,ny:g.y*k*i});d.last==l&&(d.last={nx:-a.x*j*i,ny:-a.y*j*i})}d.first.x=b.x;d.first.y= b.y;d.last.x=c.x;d.last.y=c.y;b=K(d.middle);b.splice(0,0,K(d.first));b.push(K(d.last));return b}q=Di.prototype;q.pd=function(){var a=l,b=l,c=l,d=l,e=l,f=l,g=l,i=l;A(this.Xc,function(j){if(a==l||j.xc)c=j.x;if(b==l||j.yd)d=j.y;var k=j.x*0.707106781,n=j.y*0.707106781,j=k-n,k=n+k;if(e==l||jg)g=j;if(f==l||ki)i=k});return new H(a,b,c-a,d-b,{rx:e,ry:f,rw:g-e,rh:i-f})};q.Qe=ca("page");q.bg=ea("id"); q.Fe=function(){return this.id.replace(/\./g,"--").replace(/\~/g,"__")};q.ja=ea("tc");q.Gd=ea("tc");function Ki(a,b,c){a=a.tc;if(b.xa.x+a.w)return!1;b.ya.y+a.h?!1:!0} function Li(a,b,c){a=a.tc;if(ba.x+a.w+20||ca.y+a.h+20)return!1;var d=b*0.707106781-c*0.707106781,b=c*0.707106781+b*0.707106781;return da.data.rx+a.data.rw+20||ba.data.ry+a.data.rh+20?!1:!0} function Oi(a,b,c,d){var e=K(a.Xc);A(e,function(a){a.x/=c;a.y/=d});for(var a=[],f=0;f0&&(j=Tb(g,Db(g,i),a[a.length-1],Db(a[a.length-1],a[a.length-2])))){var k=Db(g,e[f]),j=Db(a[a.length-1],e[f]),k=Math.atan2(k.y,k.x),j=Math.atan2(j.y,j.x);if(b==-1)for(;kc&&(b=c);for(a=0;a=0.45&&g<=0.55&&(g=0.5);return g}q.wk=function(a){if(!a)a=this.Xc;for(var b=0,c=0;c0;)c=Math.max(0,c-1/n),p=e(c);return a.Dj[g]=p} q.lp=function(){function a(a){a.Block&&b.push({Block:a.Block,x:a.x,y:a.y,r:5})}for(var b=this.He(),c,d=0;d=c.x&&(p+=Math.PI*2);for(var s=b,k=0;k0&&Math.abs(m[k].x-m[k-1].x)<1&&Math.abs(m[k].y-m[k-1].y)<1)){var u= new G(m[k].x-a.x*5,m[k].y-a.y*5);Ti(d,s,u,e,f,g);g+=Lb(u,s);d.push({Action:"move",x:u.x,y:u.y});d.push({Action:"curve",Control:Xb(m[k].x-5,m[k].y-5,10,10,p,j)});g+=10;s=new G(m[k].x+a.x*5,m[k].y+a.y*5)}g-n0)if(g.x/=i,g.y/=i,d=="solid")a.push({Action:"line",x:c.x,y:c.y});else if(d=="dashed"){c=e*6;d=e*4;for(e=0;e0){for(n=0;n0){for(n=0;nc.x+c.w+5||bc.y+c.h+5)return l;var c=new G(a,b),d=this.C.q.get("Endpoint1"),e=this.C.q.get("Endpoint2"),e=new G(e.x,e.y);if(Nb(c,new G(d.x,d.y))<225||Nb(c,e)<225)return l;d=Gi(this.C,Pi(this.C,c));return Nb(c,d)<25?(c=this.page.dc(d,2),d=Gi(this.C,Pi(this.C,c)),gi(this.C,d)):l}; q.Za=function(a,b){if(this.C.pb())return l;var c=this,d=this.C.q.get("TextAreas",!0),e;for(e in d)if(qa(d[e])){var f=Gh(this.C,d[e].Value,d[e].Location,d[e].Side);Ya&&(f=Ra(f,20));if(Fb(new G(a,b),f))return fi(this.C,o(),"text",e,function(a){return function(){c.Ed(a)}}(e))}if(!Li(this.C,a,b))return l;d=this.C.q.get("Endpoint1",!0);e=this.C.q.get("Endpoint2",!0);if(Lb(new G(a,b),d)<25)return hi(this.C,"Endpoint1",d);else if(Lb(new G(a,b),e)<25)return hi(this.C,"Endpoint2",e);for(var f=(d.Block==l|| this.C.page.Jb(d.Block)==l)&&(e.Block==l||this.C.page.Jb(e.Block)==l)&&(d.Line==l||this.C.page.Ge(d.Line)==l)&&(e.Line==l||this.C.page.Ge(e.Line)==l),g=this.C.Xc,i=0;i0&&im&&g[i+2].x>m&&(m=0);g[i].x==n&&g[i-1].xm&&g[i+2].y>m&&(m=0),g[i].y==n&&g[i-1].yb.x+b.w||a.y>b.y+b.h)return!1;for(var b=this.C.Xc,c=1;ca.x+a.w&&b[c].x>a.x+a.w?0:b[c-1].y>a.y+a.h&&b[c].y>a.y+a.h?0:b[c-1].x>=a.x&&b[c-1].x<=a.x+a.w&&b[c-1].y>=a.y&&b[c-1].y<=a.y+a.h&&b[c].x>=a.x&&b[c].x<=a.x+a.w&&b[c].y>=a.y&&b[c].y<=a.y+a.h||Vb(b[c-1],b[c],new G(a.x,a.y),new G(a.x+a.w,a.y))||Vb(b[c-1],b[c],new G(a.x+a.w,a.y), new G(a.x+a.w,a.y+a.h))||Vb(b[c-1],b[c],new G(a.x+a.w,a.y+a.h),new G(a.x,a.y+a.h))||Vb(b[c-1],b[c],new G(a.x,a.y+a.h),new G(a.x,a.y)))return!0;return!1}; q.Ed=function(a){var b=this.C.q.get("TextAreas")[a],c=this,d=this.xc[a];if(d==l){var e=this.C.document.$.K.viewport;e.J.bind("afterRender.editText",function(){c.Ed(a);e.J.unbind("afterRender.editText")});return l}if(d.hasFocus)return l;this.ya.J.parents("div[id^=SuperCanvas]").append(this.ya.J);d.view=this;ah(d,b.WantReturn,function(){if(d.content.text==""){var b={};b[a]=l;d.view.C.document.ba(new N(M,{id:d.view.C.id,Property:"TextAreas",Value:b}))}});d.select();setTimeout(function(){d.select()}, 1);return d}; function Xi(a,b,c,d){V("line","placeText called");if(c==l)a.xc[b]&&(a.xc[b].destroy(),delete a.xc[b]);else{V("line","placeText: past first check");var e=a.xc[b];if(e==l){V("line","placeText: editor == null");var f=a.C.document.q.get("Language");a.xc[b]=new Wg(1,1,f);e=a.xc[b];e.Bp=a.C.id;e.oa[0].canvas.J.css("overflow","visible");var g=!1;e.bind("change",function(c){!g&&!a.C.document.jg&&(g=!0,a.C.document.Aa(),a.C.document.ba(new N(yg,{id:a.C.id,Key:b,Diff:c.action})),setTimeout(function(){a.C.document.xa()},1), g=!1)});e.bind("prerender",function(){if(e.hasFocus){var b=Gh(a.C,e.content.serialize(),c.Location,c.Side);e.oa[0].width=b.w;e.oa[0].height=b.h}});a.Vd($(document),"fontLoaded",function(){a.Ha=!0;e.vl=l;e.wu=l;a.C.document.$.K.viewport.ia()});a.ya.J.append(e.oa[0].J)}f=Gi(a.C,c.Location);f.x-=d.x;f.y-=d.y;var i=a.C.page,i=c.Side==0?og(i.q.get("FillColor")).tb:"transparent",j=a.C.q.get("Endpoint1"),k=a.C.q.get("Endpoint2"),f=[c.Value,a.scale,f,c.Side,i,j.Padding||5,k.Padding||5,qc(xh[a.C.id]),R.lc, R.vc,R.Xb];if(!Na(e.vl,f)||c.Side!=0){V("line","placeText: data different");V("line",[f,e.vl]);e.vl=K(f);e.oa[0].canvas.J.css({background:i});f=nd([c.Value,a.scale]);if(e.wu!=f)e.wu=f,V("line","placeText: data2 different"),f=eh(c.Value,a.C.q.get("Font"),new H(0,0,1E4,1)),e.scale=a.scale,e.oa[0].width=f.width,e.oa[0].height=f.height,e.oa[0].Ng="center",e.oa[0].vAlign="top",e.content=dd(c.Value,a.C.q.get("Font")),e.ia();f=Gh(a.C,c.Value,c.Location,c.Side);e.oa[0].J.css({position:"absolute",left:(f.x- d.x)*a.scale+a.ya.padding+"px",top:(f.y-d.y)*a.scale+a.ya.padding+"px",width:e.oa[0].width*a.scale+a.ya.padding+"px",height:e.oa[0].height*a.scale+a.ya.padding+"px"})}}} q.Ja=function(a,b,c,d,e){this.scale=b;var f=this.C.ja(),g=this;this.ya==l?(this.ya=new Je(Math.round(f.x*b)+c,Math.round(f.y*b)+d,Math.round(f.w*b),Math.round(f.h*b),Math.round(b*24)),this.ya.Rm=this.C.id,Ie(a,function(a){return a.Rm==g.C.id})):this.ya.move(Math.round(f.x*b)+c,Math.round(f.y*b)+d,Math.round(f.w*b),Math.round(f.h*b),Math.round(b*24));var d=this.page.Rg(this.C,!0),i=Ge(a,this.ya)||this.Ha;!i&&this.C.Vg.Ml[this.C.id]&&(i=!0);var a=this.C.q.get("Endpoint1",!0),c=this.C.q.get("Endpoint2", !0),j=[a.x,a.y,c.x,c.y,b,e,this.C.document.q.get("RoundCorners",!0),this.C.document.q.get("LineJumps",!0),d,qc(xh[this.C.id])];i||(i=!Na(j,this.Ct));if(i){this.Ha=!1;this.Ct=K(j);var i=this.C.He(),k=this.ya.getContext();k.scale(b,b);k.translate(-Math.round(f.x*b)/b,-Math.round(f.y*b)/b);if(e||d)for(b=0;b0))e.rc().Bc=[],e.ia()}; function Yi(a){var b=[];A(Ui,function(c,d){c.disabled||(d>0&&b.push({separator:!0}),F(c.kk,function(d){d=="None"?b.unshift({label:"None",value:d}):b.push({mb:{R:"canvas",attr:{height:13,width:32},css:{display:"block"},create:function(b){var b=fb(b).getContext(),g=!!a,i=c.scale,j=3,k=Si(d);if(k){j==l&&(j=3);var n=b.canvas;i*=d=="Arrow"||d=="Hollow Arrow"?0.75:0.5;var m=n.height,n=(n.width-2*j)/i,k=k(new G(0,0),new G(-1,0),"rgb(0,0,0)",1/i,"rgb(0,0,0)",!1);b.translate(j,m/2);b.scale(i,i);g&&(b.translate(n, 0),b.scale(-1,1));b.strokeStyle="#000";b.lineWidth=1/i;b.moveTo(0,0);b.lineTo(n,0);b.stroke();for(g=0;ge.x+e.w+50||be.y+e.h+50)return l;var a=new G(a,b),b=config.resizeHandleSize,f=1/this.C.document.$.K.viewport.scale;if(d&&(d=f*(b/2+1),Ya&&(d*=3),Nb(new G(e.x+e.w/2,e.y-f*(2*b+d)),a)<2*d*d))return ai([this.C],0);if(!c){c=f*b;Ya&&(c*=3);Ya&&(e=Ra(e,c-f*b));if(Lb(a,new G(e.x,e.y))d.x+d.w||b>d.y+d.h)return l;this.C.Uo(function(){var d=(f||this.document.$.K.viewport).Ya(this).Za(a,b,c,!1,g);if(d!=l)return i=d,"stop"});if(i&&g)i=li(this.C);else if(i&&oc(["linkpoint"],i.action)<0){if(!i.item.Mv)i.click=l,i.Fc=l,i.fl=l,i.cursor="move";i.item=this.C;i.action="move";i.Qd=l}}return i}; q.xj=function(a){if(this.C.pb())return!1;var b=this.C.Gd();return!(b.x>a.x+a.w||b.y>a.y+a.h||b.x+b.wd.x+d.w||b>d.y+d.h)return l;var g=this.page,i=l;this.C.Uo(function(){var d=g.Ya(this).Za(a,b,c,!1,f);if(d!=l)return i=d,"stop"});return i};function bj(a,b,c){this.name=a;this.il=this.value=l;this.oq=[];this.nq=[];this.global=c}bj.prototype.get=function(){return this.il!=l&&window.lucidRendering?this.il:this.value};bj.prototype.set=function(a){window.lucidRendering?this.il=a:this.value=a};function zi(a){this.q={};cj.push(this);this.Fn=[];this.id=a}function dj(a){for(var b in a.q)if(a.q[b].il!=l)a.set(b,a.q[b].value),a.q[b].il=l}q=zi.prototype;q.ka=function(a,b,c,d,e){this.q[a]=new bj(a,0,e);this.Rs(a,c);this.$i(a,d);this.set(a,b);cj.push(this)}; q.Rs=function(a,b){b!=l&&this.q[a].oq.push(b)};q.$i=function(a,b){b!=l&&(a==l?this.Fn.push(b):this.q[a].nq.push(b))};function ni(a,b){b!=l&&ib(a.Fn,b)}q.get=function(a,b){var c=this.q[a];if(c==l)return l;c=c.get();return!b&&qa(c)?K(c):c}; q.set=function(a,b,c){cj.push(this);var d=this.q[a];if(d==l)return this.ka(a,b),!0;d.global&&(ej=!0);for(a=0;a0.5)return new G(0,1);if(b.y==0.5&&b.x<0.5)return new G(-1,0);if(b.y==0.5&&b.x>0.5)return new G(1,0)}var c=a.Ac(new G(0.5,0.5)),d=a.Ac(b),c=Db(d,c),d=Mb(c);return new G(c.x/d,c.y/d)} function ri(a){for(var b=[],c=[],d=0,e=0,a=a.He(l,!0),f=0;fMath.PI;)d.Rotation-=Math.PI*2;Math.abs(d.Rotation)<0.01&&(d.Rotation=0);c[this.id]=d;return c};t("lucid.model.Block",uh); uh.registerClass=function(a,b,c,d){function e(a){lj(this,a);if(b.isContainer)this.cj=!0;b.call(this);if(this.minWidth)this.minWidth=this.minWidth;if(this.minHeight)this.minHeight=this.minHeight;if(this.maxWidth)this.maxWidth=this.maxWidth;if(this.maxHeight)this.maxHeight=this.maxHeight;if(this.hLock)this.Oh=this.hLock;if(this.vLock)this.qi=this.vLock;if(this.rLock)this.lx=this.rLock;if(this.noLines)this.Ow=this.noLines;if(this.snapSpacing)this.Of=this.snapSpacing;if(this.noPrint)this.Zg=this.noPrint; if(this.croppable)this.uv=this.croppable;if(this.enforceAspectRatio)this.Kv=this.enforceAspectRatio;if(this.eventPassThrough)this.Mv=this.eventPassThrough;if(this.disabledPropertyControls)this.js=this.disabledPropertyControls;if(this.dockControls)this.ms=this.dockControls;if(this.unthemed)this.Px=this.unthemed}e.prototype=new uh;e.prototype.He=function(a,c){var d=b.prototype.getRenderData.call(this,a);a!="sample"&&!c&&this.page&&(d=Sd(d,this.q.get("Rounding")||this.document.q.get("RoundCorners")/ 2));return d};if(b.prototype.getLinkPoints)e.prototype.cg=b.prototype.getLinkPoints;if(b.prototype.onCreate)e.prototype.Xh=b.prototype.onCreate;if(b.prototype.onDelete)e.prototype.Et=b.prototype.onDelete;if(b.prototype.clicked)e.prototype.Yl=b.prototype.clicked;if(b.prototype.textClicked)e.prototype.Wq=b.prototype.textClicked;if(b.prototype.doubleClicked)e.prototype.fk=b.prototype.doubleClicked;if(b.prototype.textDoubleClicked)e.prototype.Xq=b.prototype.textDoubleClicked;if(b.prototype.getTextLink)e.prototype.Ks= b.prototype.getTextLink;if(b.prototype.lineDrawn)e.prototype.ft=b.prototype.lineDrawn;if(b.prototype.lineDrawnProperties)e.prototype.Jp=b.prototype.lineDrawnProperties;if(b.prototype.afterEditText)e.prototype.zr=b.prototype.afterEditText;if(b.prototype.hitTest)e.prototype.Za=b.prototype.hitTest;if(b.prototype.hitTestTools)e.prototype.hg=b.prototype.hitTestTools;if(b.prototype.rectTest)e.prototype.xj=b.prototype.rectTest;if(b.prototype.allowPromptNextBlock)e.prototype.Cr=b.prototype.allowPromptNextBlock; if(b.prototype.selectNewLink)e.prototype.ml=b.prototype.selectNewLink;if(b.prototype.eachSubItem)e.prototype.Hv=b.prototype.eachSubItem;if(b.prototype.getOffsetProperties)e.prototype.Jg=b.prototype.getOffsetProperties;if(b.searchData)e.bu=b.searchData;if(b.dropBlockActions)e.ts=b.dropBlockActions;for(var f in b.prototype)e.prototype[f]==l&&(e.prototype[f]=b.prototype[f]);e.title=c;e.bd=d;e.defaultSize=e.bd;gj[a]=e};uh.darkenColor=function(a,b){if(na(a)){var c=new I(a,"#ffffffff");ng(c,b);return gb(c)}return a}; uh.lightenColor=function(a,b){if(na(a)){var c=new I(a,"#ffffffff");c.Ip(b);return gb(c)}return a};uh.getClass=function(a){return gj[a]};uh.createNextBlockGroup=function(a,b){b||(b=a);for(var c=0;c=0;d--)if(b.call(c[d])=="stop")break}q.Uo=function(a){for(var b=this.dg(),c=b.length-1;c>=0;c--)if(a.call(b[c])=="stop")break}; function uj(a,b){for(var c=a.ge(),d=c.length-1;d>=0;d--)if(b.call(c[d])=="stop")break}q.um=function(a){var b=[],c=this;this.Ib(function(){(this.parent==l||this.parent==c)&&(!a||a(this))&&b.push(this)});return b};q.dg=function(a){a=this.um(a);a.sort(function(a,c){if(a.Jc&&!c.Jc||!a.Je&&c.Je)return 1;else if(!a.Jc&&c.Jc||a.Je&&!c.Je)return-1;return a.oh-c.oh});return a}; q.ge=function(a){for(var b=this.dg(a),c=0;cb||b==l)b=this.q.get(a)});return b};function yj(a,b,c){a.Ib(function(){if(c==l||c.call(this))if(this.q.get("ZOrder")0;){var g=d[0];d.splice(0,1);if(!f[g.id]&&(f[g.id]=!0,!b||b(g)))c.push(g),A(this.Jt(g),function(a){c.push(a);a=a.q.get("Endpoint2");a.Block!=l&&(a=e.Oa[a.Block],a!=l&&d.push(a))})}return c};q.Jt=function(a){var b=[];this.qd(function(){this.q.get("Endpoint1",!0).Block==a.id&&b.push(this)});return b}; q.yc=function(a){var b=this,c=this.q.get("Size"),d=this.q.get("FillColor"),d=new I(d,"#ffffffff"),e=rj(this);delete e.data;var f={GridSpacing:this.q.get("GridSpacing"),Width:c.w,Height:c.h,Margin:this.q.get("Margin")*this.q.get("DPI"),IsMaster:this.Fb(),Master:sj(this,!0),DPI:this.q.get("DPI"),Gradient:this.document.q.get("Gradient"),FillColor:d.serialize(!0),PhysicalPages:e,NoTextOverflow:!config.allowTextOverflow,UseFontGroups:config.fontGroups,DefaultTextSize:config.defaultTextSize,Items:[]};F(this.document.Oa, function(c,d){if(d.ke==b)if(a!=l&&a[d.id]==l)f.Items.push(d.yc());else if(d.yc){var e=d.yc();e&&f.Items.push(e)}});c=this.ge();A(c,function(b){a!=l&&a[b.id]==l?f.Items.push(b.id):b.yc&&(b=b.yc())&&f.Items.push(b)});return f};function zj(a,b,c,d){this.name=a;this.$n=b;this.Am=c;this.my=d}zj.prototype.match=function(a,b){var c=Math.min(a.w,a.h),d=Math.max(a.h,a.w);return Math.abs(c-this.$n*b)<2&&Math.abs(d-this.Am*b)<2}; var Aj=[new zj("Letter",8.5,11,!0),new zj("Legal",8.5,14,!0),new zj("Executive",7.25,10.5,!0),new zj("A3",11.69,16.54,!1),new zj("A4",8.27,11.69,!1),new zj("A5",5.83,8.27,!1),new zj("Tabloid",11,17,!0),new zj("Folio",8.5,13,!0),new zj("Statement",5.5,8.5,!0)];function Bj(a,b){for(var c=0;c0){k.sort(function(a,b){return a.crpb.crp?1:0});u=k[0];v=k[k.length-1];x=this.q.Nb();x.Endpoint1={x:v.pt.x,y:v.pt.y, Block:b.id,LinkX:s[v.i].x,LinkY:s[v.i].y};var O=new N("CreateLine",{Page:this.page.id,Properties:x});a.document.ba(O);a.Af(function(){var b=this,c=!1;this.Ib(function(){if(this.id==f.id){c=!0;var d=b.q.get("Members");d[O.id]=!0;a.document.ba(new N(M,{id:b.id,Property:"Members",Value:d}));return"stop"}});if(c)return"stop"});a.document.ba(new N(M,{id:this.id,Property:"Endpoint2",Value:{x:u.pt.x,y:u.pt.y,Block:b.id,LinkX:s[u.i].x,LinkY:s[u.i].y}}))}}}})} oj.prototype.Og=function(a,b,c){if(!this.document.q.get("WPMode"))return[];var d=this.Oa;c&&(d={},F(c,function(a,b){b.page!=l&&(d[a]=b)}));c=[];if(hc(d)<=0)return c;for(var e in d){var f=d[e].q.get("Wrap");if(f&&!d[e].q.get("BG")){var g=d[e].ja(),i=Xa(g),j=d[e].q.get("Rotation")||0,k=l;g.data={wrap:f};if(j){if(k=db(g,-j,i),k=Ra(k,10),zb(a,k))b||(k.x-=a.x,k.y-=a.y),k.data={wrap:f},c.push(k)}else if(g=Ra(g,10),zb(a,g))b||(g.x-=a.x,g.y-=a.y),g.data={wrap:f},c.push(g)}}return c}; function sj(a,b){if(a.Fb())return l;var c=a.q.get("Master");if(c){var d=a.document.nb(c);if(d&&d.Fb())return b?c:d}return l}oj.prototype.Fb=function(){return!!this.q.get("IsMaster")};function Dj(a,b){a.document.ba(new N(M,{id:a.id,Property:"Master",Value:b}))}oj.prototype.getId=oj.prototype.bg;oj.prototype.getCleanId=oj.prototype.Fe;oj.prototype.getProperties=oj.prototype.Kg;oj.prototype.getGroup=oj.prototype.ym;oj.prototype.getBlock=oj.prototype.Jb;oj.prototype.getBlocks=oj.prototype.Tv; oj.prototype.getLine=oj.prototype.Ge;oj.prototype.incomingLines=oj.prototype.qw;oj.prototype.outgoingLines=oj.prototype.Jt;oj.prototype.eachLine=oj.prototype.qd;oj.prototype.eachBlock=oj.prototype.df;oj.prototype.eachGroup=oj.prototype.Af;oj.prototype.maxProperty=oj.prototype.Kd;oj.prototype.isMaster=oj.prototype.Fb;oj.prototype.everythingDownstream=oj.prototype.ws;function Ej(a,b){yi.call(this,a,b);this.Zg=this.isState=this.Jc=!0;this.q.ka("IsState",1,fa(1))}Ca(Ej,yi);function Fj(a,b){Zi.call(this,a,b)}Ca(Fj,Zi);Fj.prototype.hg=fa(l);function Gj(a){this.model=this.C=a;this.selection={};var b=this;this.Vd($(document),"documentPostAction",function(c,d){(d.Action=="RemoveBlock"||d.Action=="RemoveLine")&&b.ac(d.id)&&b.kh(d.id);d.Action=="mtp"&&d.OldPage==a.id&&A(d.ids,function(a){b.ac(a)&&b.kh(a)})});this.Vd($(document),"caret.merge",function(a,d,e){if(a=b.Ya(d))if(d.sa){if(d=a.la[e.key]){d.aa.fa=e.rb(d.aa.fa)[0];if(d.aa.ua!=l)d.aa.ua=e.rb(d.aa.ua)[0];d.aa.ia()}}else if(d=a.xc[e.key]){d.fa=e.rb(d.fa)[0];if(d.ua!=l)d.ua=e.rb(d.ua)[0]; d.ia()}});this.Ra={};this.canvas=new Fe(800,600);this.canvas.J.css({overflow:"visible"});this.background=new Hj(this);this.canvas.J.append(this.background.J).addClass("page")}q=Gj.prototype;q.Vd=function(a,b,c){if(this.Hb==l)this.Hb=[];this.Hb.push([a,b,c]);a.bind(b,c)};function Ij(a,b){var c=!1;A(a.Sl,function(a){a.Db(b,!0)&&(c=!0)});return c}function Jj(a,b,c,d,e){A(a.Sl,function(a){if(a.Db(e,!0))return a.aa.focus(),a.ud(b,c,d,e),!1})} function Kj(a,b,c,d){A(a.Sl,function(a){if(a.Db(d,!0))return a.aa.focus(),a.fd(b,c,d),!1})}function Lj(a,b,c,d){A(a.Sl,function(a){if(a.Db(d,!0))return a.aa.focus(),a.gd(b,c,d),!1})}q.destroy=function(){A(this.Hb,function(a){a[0].unbind(a[1],a[2])});this.Hb=[];for(var a in this.Ra)this.Ra[a].destroy();this.Ra={};if(this.aa)this.aa.destroy(),this.aa=l;this.canvas.destroy()};q.zv=function(a){if(a)a=a.id,this.Ra[a]&&(this.Ra[a].destroy(),delete this.Ra[a])}; q.Ya=function(a){var b=a.id;if(a.page&&(!this.Ra[b]||this.Ra[b].C!=a))a.Xs?this.Ra[b]=new aj(this,a):a.Jc?this.Ra[b]=new Fj(this,a):a.pa?this.Ra[b]=new Zi(this,a):a.sa?(this.Ra[b]=new Th(this,a),mi(this.Ra[b])):this.Ra[b]=new Vi(this,a);return this.Ra[b]||this.C.document.$.K.viewport.Ya(a)};q.ac=function(a){return this.C.document.$.K.viewport.ac(a,this)};function Mj(a,b,c){return a.ac(b)&&a.C.document.$.K.viewport.getSelection(c).length==1} q.Rg=function(a,b){return this.C.document.$.K.viewport.Rg(a,!!b,this)};q.Iq=function(){this.C.document.$.K.viewport.Iq(this)};q.Yc=function(a,b){this.C.document.$.K.viewport.Yc(a,!!b,this)};q.kh=function(a){this.C.document.$.K.viewport.kh(a,this)};q.getSelection=function(a){return this.C.document.$.K.viewport.getSelection(a,this)}; function Nj(a){var b=a.C.document.$.K.viewport,c={},d=0;a.Gg(function(){!this.Jc&&!this.ta&&(c[this.id]=!0,d++)});if(d>1){a.C.document.Aa();var e=new N("CrGr",{Page:a.C.id,Properties:{ZOrder:a.C.Kd("ZOrder",0)+1}});a.C.document.ba(e);var f=b.Hc();if(f&&f.pa){var g=f.q.get("Members");g[e.id]=!0;a.C.document.ba(new N(M,{id:f.id,Property:"Members",Value:g}))}a.C.document.ba(new N(M,{id:e.id,Property:"Members",Value:c}));a.Gg(function(){if(this.fb){var b=function(b,c,d){var e=b.q.get(c);e[d]&&(d=a.C.ra(e[d]))&& b.parent&&!Ai(b.parent,d)&&a.C.document.ba(new N(M,{id:b.id,Property:c,Value:{x:e.x,y:e.y,Block:l,LinkX:l,LinkY:l,Line:l,LineP:l}}))};b(this,"Endpoint1","Block");b(this,"Endpoint2","Block");b(this,"Endpoint1","Line");b(this,"Endpoint2","Line")}});a.C.document.xa();b.ec();a.Yc(e.id)}} function Oj(a){var b=[],c=[];a.C.document.Aa();a.Gg(function(){if(this.pa&&!this.Jc){c.push(this.id);var d=hc(this.Kc),f=this.q.get("ZOrder"),g=a.C.Kd("ZOrder",yj(a.C)-d,function(){return this.q.get("ZOrder")f})-g)/(d+1),d=d==0?1.0E-4:d;g+=d;var i=this.dg(),j;for(j in i)b.push(i[j].id),a.C.document.ba(new N(M,{id:i[j].id,Property:"ZOrder",Value:g})),g+=d;a.C.document.ba(new N(M,{id:this.id,Property:"Members",Value:{}}));this.parent&& this.parent.pa&&(j=this.parent.q.get("Members"),delete j[this.id],a.C.document.ba(new N(M,{id:this.parent.id,Property:"Members",Value:j})));a.C.document.ba(new N("RmGr",{id:this.id}))}});a.C.document.xa();for(var d=0;d1){m=$h(w);if(Lb(new G(a,b),new G(m.x+m.w/2,m.y- 25*p))<10*p)return ai(w,0);if(Lb(new G(a,b),new G(m.x,m.y))<10*p)return bi(w);if(Lb(new G(a,b),new G(m.x+m.w,m.y))<10*p)return ci(w);if(Lb(new G(a,b),new G(m.x+m.w,m.y+m.h))<10*p)return ei(w);if(Lb(new G(a,b),new G(m.x,m.y+m.h))<10*p)return di(w)}A(s,function(e){if(e!=c&&g.ac(e.id)&&(n||!e.Je))if(e=g.Ya(e).Za(a,b,d,!0),e!=l)return f=e,!1});if(f!=l)return f;A(s,function(e){if(!(e==c||!n&&e.Je))if(e=g.Ya(e).Za(a,b,d,g.ac(e.id)),e!=l)return f=e,!1});if(f!=l)return f;s=[];F(this.C.document.Ea,function(a, b){b.ke==g.C&&b.parent==(j||l)&&s.push(b)});F(this.C.document.Oa,function(a,b){b.ke==g.C&&b.parent==(j||l)&&s.push(b)});A(s,function(c){c=i.Ya(c).Za(a,b,d,i.ac(c.id));if(c!=l)return f=c,!1});return f}; q.gg=function(a,b,c){var d=l,e=this;uj(this.C,function(){if(this!=c&&e.ac(this.id)){if(this.sa)var f=e.Ya(this).kl(new G(a,b));f=e.Ya(this).gg(f?f.x:a,f?f.y:b);if(f!=l)return d=f,"stop"}});if(d!=l)return d;uj(this.C,function(){if(this!=c){if(this.sa)var f=e.Ya(this).kl(new G(a,b));f=e.Ya(this).gg(f?f.x:a,f?f.y:b);if(f!=l)return d=f,"stop"}});return d};q.Gg=function(a){var b=this;this.C.Ib(function(){if(b.ac(this.id))return a.call(this)})}; q.dc=function(a,b,c,d){if(a==l)return l;if(typeof a=="object"){var a=K(a),e;for(e in a)if(!d||oc(d,e)>=0)a[e]=this.dc(a[e],b,c);return a}else return d=this.C.q.get("GridSpacing"),b!=l&&(d/=b),c!=l&&c=="ceil"?Math.ceil(a/d)*d:c!=l&&c=="floor"?Math.floor(a/d)*d:Math.round(a/d)*d}; function Pj(a,b,c){function d(a){k.save();var b=a.He("thumb"),c=a.q.get("Rotation"),d=a.q.get("BoundingBox"),e;c&&(k.translate(d.x+d.w/2,d.y+d.h/2),k.rotate(c),k.translate(-(d.x+d.w/2),-(d.y+d.h/2)));for(c=0;c'+S("fonts.add")+"")},Pa:"Add more fonts",action:"default.addMoreFonts"};for(var c in Ue())(function(c){c=Pe[c][0].yb;b[c]={width:200,height:16,Ja:r(vf,l,c),Pa:c,action:a}})(c)}else A(We(function(){$(document).triggerHandler("resetOptionBar")}),function(c){(function(c){b[c]={width:200,height:16,Ja:r(vf,l,c),Pa:c,action:a}})(c)}); return b};q.zn=function(a,b){var c=this;this.canvas.J.find(".overlay.line").each(function(){$(this).css("FillColor")!="transparent"&&$(this).css({backgroundColor:c.C.q.get("FillColor")})});this.background.Ja(a,b);Rj(this.C.document.$.K.viewport).zn()}; q.rn=function(){var a=this;dj(this.C.document.q);var b=sj(this.C);V("render","Page.render started");this.C.Af(function(){this.uu=this.ja()});var c=xj(this.C);b&&(c=xj(b).concat(c));A(c,function(a){dj(a.q)});var d=mc(this.C.Oa);F(this.C.document.Oa,function(b,c){c.ke==a.C&&(d[b]=c)});if(b){var b=mc(b.Oa),e;for(e in b)d[e]=b[e]}for(e in d)dj(d[e].q);V("render","Got ordered lines");this.Ae=d;this.gt=c};function Sj(a,b){b.yr(a,a.gt);b.xr(a,a.Ae);for(var c in a.Ae)a.Ae[c].pb()&&delete a.Ae[c]} q.Ja=function(a,b,c,d,e){var f=this,g;for(g in this.Ae)this.Ae[g].ke&&this.Ae[g].ke!=this.C&&delete this.Ae[g];F(this.C.document.Oa,function(a,b){b.ke==f.C&&(f.Ae[a]=b)});var i=sj(this.C),j=this.Ae,k=this.gt;this.Sl=e;var n=mh(this.C),m=mh(this.C,!0),p=m.data,s=p.data,u={};A(k,function(a){a.pb()||(u[a.id]=a)});var w=d,d=300;if(ee||Xd)d=0;w=Ra(w,d);for(d=0;d=j.x+j.w||i.y>=j.y+j.h||Yj(this,d,a[g],b)}}}; function Wi(a,b){a.Nl[b.id]=!0;delete a.gc[b.id];for(var c in a.gc)lc(a.gc[c][b.id])||(a.Nl[c]=!0),delete a.gc[c][b.id]} function Yj(a,b,c,d){function e(a,d){f.gc[c.id][b.id][a]==l&&(f.gc[c.id][b.id][a]=[]);f.gc[c.id][b.id][a].push(d);f.Ml[c.id]=!0}for(var f=a,a=b.Xc,g=c.Xc,i=a[0],j=a[a.length-1],k=g[0],n=g[g.length-1],m={},p=0;p0.95||e(p,z))}}};function Zj(a){a=a.replace(/^([0-9]{2,4})-([0-1][0-9])-([0-3][0-9]) (?:([0-2][0-9]):([0-5][0-9]):([0-5][0-9]))?$/,"$1 $2 $3 $4 $5 $6").split(" ");return new Date(a[0],a[1]-1,a[2],a[3],a[4],a[5])} function $j(a){function b(a,b){return(a+="").length9)},Y:function(){return c.getFullYear()},y:function(){return(d.Y()+"").slice(-2)},a:function(){return c.getHours()>11?"pm":"am"},A:function(){return d.a().toUpperCase()},B:function(){return b(Math.floor((c.getUTCHours()*3600+c.getUTCMinutes()*60+c.getUTCSeconds()+3600)/86.4)%1E3,3)},g:function(){return d.G()%12||12},G:function(){return c.getHours()},h:function(){return b(d.g(),2)},H:function(){return b(d.G(), 2)},i:function(){return b(c.getMinutes(),2)},s:function(){return b(c.getSeconds(),2)},u:function(){return b(c.getMilliseconds()*1E3,6)},e:function(){aa("Not supported (see source code of date() for timezone on how to add support)")},I:function(){var a=new Date(d.Y(),0),b=Date.UTC(d.Y(),0),c=new Date(d.Y(),6),e=Date.UTC(d.Y(),6);return 0+(a-b!==c-e)},O:function(){var a=c.getTimezoneOffset();return(a>0?"-":"+")+b(Math.abs(a/60*100),4)},P:function(){var a=d.O();return a.substr(0,3)+":"+a.substr(3,2)}, T:fa("UTC"),Z:function(){return-c.getTimezoneOffset()*60},c:function(){return"Y-m-d\\Th:i:sP".replace(e,f)},r:function(){return"D, d M Y H:i:s O".replace(e,f)},U:function(){return c.getTime()/1E3|0}};c=typeof a==="undefined"?new Date:a instanceof Date?new Date(a):new Date(a*1E3);return"Y-m-d".replace(e,f)} function ak(a){function b(a){var b=a[2]&&a[2]=="ago",c;c=(c=a[0]=="last"?-1:1)*(b?-1:1);switch(a[0]){case "last":case "next":switch(a[1].substring(0,3)){case "yea":f.setFullYear(f.getFullYear()+c);break;case "mon":f.setMonth(f.getMonth()+c);break;case "wee":f.setDate(f.getDate()+c*7);break;case "day":f.setDate(f.getDate()+c);break;case "hou":f.setHours(f.getHours()+c);break;case "min":f.setMinutes(f.getMinutes()+c);break;case "sec":f.setSeconds(f.getSeconds()+c);break;default:if(typeof(b=g[a[1].substring(0, 3)])!="undefined")b-=f.getDay(),b==0?b=7*c:b>0?a[0]=="last"&&(b-=7):a[0]=="next"&&(b+=7),f.setDate(f.getDate()+b)}break;default:if(/\d+/.test(a[0]))switch(c*=parseInt(a[0],10),a[1].substring(0,3)){case "yea":f.setFullYear(f.getFullYear()+c);break;case "mon":f.setMonth(f.getMonth()+c);break;case "wee":f.setDate(f.getDate()+c*7);break;case "day":f.setDate(f.getDate()+c);break;case "hou":f.setHours(f.getHours()+c);break;case "min":f.setMinutes(f.getMinutes()+c);break;case "sec":f.setSeconds(f.getSeconds()+ c)}else return!1}return!0}var c,d,e=d="";d=a.replace(/\s{2,}|^\s|\s$/g," ");d=d.replace(/[\t\r\n]/g,"");var f;if(d=="now")return(new Date).getTime()/1E3;else if(isNaN(e=Date.parse(d)))f=new Date;else return e/1E3;d=d.toLowerCase();var g={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},e={jan:0,feb:1,mar:2,apr:3,may:4,jun:5,jul:6,aug:7,sep:8,oct:9,nov:10,dec:11},a=d.match(/^(\d{2,4}-\d{2}-\d{2})(?:\s(\d{1,2}:\d{2}(:\d{2})?)?(?:\.(\d+))?)?$/);if(a!=l){a[2]?a[3]||(a[2]+=":00"):a[2]="00:00:00";d=a[1].split(/-/g); for(c in e)e[c]==d[1]-1&&(d[1]=c);d[0]=parseInt(d[0],10);d[0]=d[0]>=0&&d[0]<=69?"20"+(d[0]<10?"0"+d[0]:d[0]+""):d[0]>=70&&d[0]<=99?"19"+d[0]:d[0]+"";return parseInt(ak(d[2]+" "+d[1]+" "+d[0]+" "+a[2])+(a[4]?a[4]/1E3:""),10)}a=d.match(RegExp("([+-]?\\d+\\s(years?|months?|weeks?|days?|hours?|min|minutes?|sec|seconds?|sun\\.?|sunday|mon\\.?|monday|tue\\.?|tuesday|wed\\.?|wednesday|thu\\.?|thursday|fri\\.?|friday|sat\\.?|saturday)|(last|next)\\s(years?|months?|weeks?|days?|hours?|min|minutes?|sec|seconds?|sun\\.?|sunday|mon\\.?|monday|tue\\.?|tuesday|wed\\.?|wednesday|thu\\.?|thursday|fri\\.?|friday|sat\\.?|saturday))(\\sago)?", "gi"));if(a==l)return!1;for(c=0;cb?d=e-1:c=e+1}for(;parseInt($(a.Cd[c]).attr("end"),10)>b;)c--;return c} function ek(a,b,c,d){c==l&&(c=0);d==l&&(d=a.gf());var e=!1,f=0;if(a.Cd!=l)for(var g=dk(a,c);g=j)f=j;else if(i=md($(i).attr("data")),A(i,function(a){if(f>=c&&(b(a)==!1||f+1>=d))return e=!0,!1;f++}),e)return}f=a.ce;A(a.Pc,function(a){if(f>=c&&(b(a)==!1||f+1>=d))return!1;f++})}function fk(a,b){if(a.up==l)a.up={},a.Ts=0;var c=!!a.up[b];ek(a,function(d){a.up[d.id]=!0;d.id==b&&(c=!0)},a.Ts);a.Ts=a.gf();return c}q=Y.prototype; q.Mg=function(){var a,b=Math.floor((new Date).getTime()/1E3);a="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.~"[b%66];a+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.~"[Math.floor(b/=66)%66];a+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.~"[Math.floor(b/=66)%66];a+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.~"[Math.floor(b/66)%66];for(b=0;b<8;b++)a+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.~"[Math.random()* 66|0];return fk(this,a)?this.Mg():a}; function gk(a,b){function c(a){a.match(/\/js\/plugins\/[a-z]+\.js/)&&(a=a.replace("/js/plugins/","/js/plugins/v2/"));return a}try{$(document).triggerHandler("documentAction",[b])}catch(d){}try{$(document).triggerHandler("documentNextAction",[b])}catch(e){}$(document).unbind("documentNextAction");switch(b.Action){case xg:b.id==l&&(b.id=a.Mg());a.$h[b.id]=b.id;var f=new oj(a,b.id,hc(a.V));a.V[b.id]=f;J.set("page.new");for(var g=a.q.get("PageTemplate"),i={},j=0;j=a&&b.p1++;b.p2>=a&&b.p2++})});n.q.set("Stencil",k);break;case "srp":n=a.ra(b.id);if(n==l)return!1;k=n.q.get("Stencil");u=k.Shapes[b.Shape];if(!u)return!1;A(kc(b.Points).reverse(),function(a){b.Points[a]=K(u.Points[a]);u.Points.splice(a,1);A(u.Lines,function(b){b.p1>a&&b.p1--;b.p2>a&&b.p2--})});n.q.set("Stencil",k);break;case "sal":n=a.ra(b.id);if(n==l)return!1;k=n.q.get("Stencil"); u=k.Shapes[b.Shape];if(!u)return!1;A(kc(b.Lines),function(a){u.Lines.splice(a,0,K(b.Lines[a]))});n.q.set("Stencil",k);break;case "srl":n=a.ra(b.id);if(n==l)return!1;k=n.q.get("Stencil");u=k.Shapes[b.Shape];if(!u)return!1;A(kc(b.Lines).reverse(),function(a){b.Lines[a]=K(u.Lines[a]);u.Lines.splice(a,1)});n.q.set("Stencil",k);break;case "smp":n=a.ra(b.id);if(n==l)return!1;k=n.q.get("Stencil");u=k.Shapes[b.Shape];if(!u)return!1;b.OldPoints={};for(j in b.Points)for(f in b.OldPoints[j]={},b.Points[j])b.OldPoints[j][f]= u.Points[j][f],u.Points[j][f]=b.Points[j][f];n.q.set("Stencil",k);break;case "smc":n=a.ra(b.id);if(n==l)return!1;k=n.q.get("Stencil");u=k.Shapes[b.Shape];if(!u)return!1;b.OldControlPoints={};for(j in b.ControlPoints)for(f in b.OldControlPoints[j]={},b.ControlPoints[j])b.OldControlPoints[j][f]=K(u.Lines[j][f]),u.Lines[j][f]=K(b.ControlPoints[j][f]);n.q.set("Stencil",k);break;case "smt":n=a.ra(b.id);if(n==l)return!1;k=n.q.get("Stencil");if(!k.Text[b.Key])return!1;b.OldBoundingBox=new H(k.Text[b.Key].x, k.Text[b.Key].y,k.Text[b.Key].w,k.Text[b.Key].h);k.Text[b.Key].x=b.BoundingBox.x;k.Text[b.Key].y=b.BoundingBox.y;k.Text[b.Key].w=b.BoundingBox.w;k.Text[b.Key].h=b.BoundingBox.h;n.q.set("Stencil",k);break;case "ssp":n=a.ra(b.id);if(n==l)return!1;k=n.q.get("Stencil");u=k.Shapes[b.Key];if(!u)return!1;b.OldValue=u[b.Property];u[b.Property]=b.Value;n.q.set("Stencil",k);break;case "smlp":n=a.ra(b.id);if(n==l)return!1;k=n.q.get("Stencil");if(!k.LinkPoints[b.Key])return!1;b.OldX=k.LinkPoints[b.Key].x;b.OldY= k.LinkPoints[b.Key].y;k.LinkPoints[b.Key].x=b.x;k.LinkPoints[b.Key].y=b.y;n.q.set("Stencil",k);break;case zg:b.URL=c(b.URL);if(nc(a.Ob,b.URL))return!1;a.Ob.push(b.URL);a.Ol[b.URL]=!0;J.set("client.loadPlugin",[b.URL,b.Name,b.Description]);J.set("client.activatePlugin",b.URL);break;case Bg:b.URL=c(b.URL);if(!nc(a.Ob,b.URL))return!1;ib(a.Ob,b.URL);a.Ol[b.URL]=!1;J.set("client.deactivatePlugin",b.URL);break;case "RemovePage":f=a.V[b.id];if(f==l)return!1;if(hc(a.V)==1)return!1;a.lg-=hc(f.Oa)+hc(f.ma); b.Properties=f.q.Nb();delete a.V[b.id];J.set("document.pages");break;case "RmGr":f=a.ra(b.id);if(f==l)return!1;b.Properties=f.q.Nb();b.Page=a.Hg(b.id);if(b.Page==l)return!1;b.Page=b.Page.id;if(hc(b.Properties.Members)>0)return!1;a.xn(b.id);a.lg--;break;case "RemoveBlock":f=a.ra(b.id);if(f==l)return!1;b.Properties=f.q.Nb();b.Class=f.className;b.Page=a.Hg(b.id);if(b.Page==l)return!1;b.Page=b.Page.id;a.wn(b.id);f.Et&&f.Et();a.lg--;break;case "RemoveLine":j=a.ra(b.id);if(j==l)return!1;b.Properties=j.q.Nb(); b.Page=a.Hg(b.id);if(b.Page==l)return!1;b.Page=b.Page.id;a.yn(b.id);a.lg--}try{a.Ap?($(document).triggerHandler("tempDocumentPostAction",[b]),J.set("document.tempPostAction",b)):($(document).triggerHandler("documentPostAction",[b]),J.set("document.postAction",b))}catch(w){}return!0}function hk(a){for(var b={},c=a.ed.length;ca)return b=md($(c).attr("data"))[a-$(c).attr("idx")],!1});b==l&&alert("ARGH");return b}else return K(this.Pc[a-this.ce])};q.gf=function(){return this.Pc.length+this.ce};function jk(a){return a.id==l?0:a.ed.length+a.ce}function kk(a){return a.gf()==0?!1:a.id==l||a.ed.lengthb||b==l)b=this.q.get(a)});return b};q.bg=ea("id"); q.Fe=function(){return this.id.replace(/\./g,"--").replace(/\~/g,"__")};function lk(a,b){(a.id=b)&&J.set("document.id",b)}function mk(a,b){for(var c=a.ed.length;c0)for(var d in a.la){var e=dh(a.q.get(d),a.q.get("Font"),c);e!=a.q.get(d)&&(b?a.q.set(d,e):this.ba(new N(M,{id:a.id,Property:d,Value:e})))}}};q.ww=function(a){return nc(this.Ob,a)};q.Kg=ea("q");function pk(a){a.attributes.push({name:"visioUpload",value:"true"})} function qk(a,b){a.ce>0?$.ajax({type:"POST",url:"/documents/listDocs/1/1",data:"document_id="+a.id,success:function(c){c=md(c);c.length<1||(rk(a.$,c[0].Change),A(c[0].Change,function(b){A(md(b.changes),function(b){a.ce>0&&(a.Pc.push(b),a.ed.push(b),a.ce--)})}),b&&b())},error:o(),timeout:18E4}):b&&b()}t("lucid.model.Document",Y);Y.prototype.getId=Y.prototype.bg;Y.prototype.getUniqueItemId=Y.prototype.Mg;Y.prototype.getCleanId=Y.prototype.Fe;Y.prototype.runAction=Y.prototype.ba; Y.prototype.getAction=Y.prototype.Hs;Y.prototype.getActionCount=Y.prototype.gf;Y.prototype.getPage=Y.prototype.nb;Y.prototype.eachPage=Y.prototype.ee;Y.prototype.maxPageProperty=Y.prototype.Vh;Y.prototype.addDefaultBlockProperties=Y.prototype.ur;Y.prototype.addDefaultBlockPropertiesPostCreation=Y.prototype.Kl;Y.prototype.isPluginLoaded=Y.prototype.ww;Y.prototype.applyDefaultTextStyles=Y.prototype.Tj;function sk(a,b){lh.call(this,a);this.ub=b}Ca(sk,lh);q=sk.prototype; q.create=function(){sk.zd.create.call(this,1);this.J.css("background-color","transparent");var a=this.canvas.J.parent().parent().parent();this.J.append(""+S("overlay.line.edit.instructions")+"");this.J.find("span").css({position:"fixed",font:"bold 24px arial",margin:"4px",cursor:"default",left:a.offset().left+16+"px",top:a.offset().top+16+"px"}).fadeTo(200,0.7);this.Yp=this.ub.q.get("Shape")=="curve"?this.ub.q.get("ControlPoints"):this.ub.q.get("ElbowPoints");this.hj=this.X=l;this.Ha= !0;this.scale=l;this.Yq=setInterval(r(this.Ub,this),20)};function tk(a){return a.ub.q.get("Shape")=="curve"}function uk(a){if(a.ub.q.get("Shape")=="curve")return a.ub.q.get("ControlPoints");else{var b=a.ub.q.get("ElbowPoints");b||(b=K(a.ub.Xc),b.shift(),b.pop());return b}}q.setProperty=function(a){return this.ub.q.get("Shape")=="curve"?this.ub.q.set("ControlPoints",a):this.ub.q.set("ElbowPoints",a)};q.destroy=function(){sk.zd.destroy.call(this);this.setProperty(this.Yp);clearInterval(this.Yq)}; q.save=function(){var a=uk(this);this.setProperty(this.Yp);var b=this.K.$.document;b.Aa();b.ba(new N(M,{id:this.ub.id,Property:tk(this)?"ControlPoints":"ElbowPoints",Value:tk(this)?a:Qi(a)}));b.xa();this.Yp=a;this.destroy()}; q.Za=function(a){if(tk(this)){for(var b=[],c=Ji(this.ub),d=0;d0&&d0&&b0;)i.removeChild(i.firstChild);if(!(this.If==l||c.document.Ad)&&config.showGrid){var j= "rgba(0,0,0,.05)";$d&&(j="rgb(242,242,242)");this.J.append(y({css:{position:"absolute",left:0,top:0,right:0,height:g*a+"px",background:j}}));this.J.append(y({css:{position:"absolute",left:0,bottom:0,right:0,height:g*a+"px",background:j}}));this.J.append(y({css:{position:"absolute",left:0,top:g*a+"px",bottom:g*a+"px",width:g*a+"px",background:j}}));this.J.append(y({css:{position:"absolute",right:0,top:g*a+"px",bottom:g*a+"px",width:g*a+"px",background:j}}));if(!this.If||this.If.HideGrid==0){for(var k= g,j=0;k<=d.h-g;k+=f,j++)i.appendChild(xk(this,g,a,k,j));k=g;for(j=0;k<=d.w-g;k+=f,j++)i.appendChild(yk(this,g,a,k,j))}for(k=1;k');this.padding=this.bs=Ya?20:800;this.Bm=!1;a.append(this.J);J("page.new",function(){var a=e.selection;e.selection={document:a.document||{}};F(e.document.V,function(b){e.selection[b]=a[b]||{}})},!0)}q=zk.prototype; q.Tc=function(a){var b=this;J("client.readOnly",function(a){b.readOnly=a},!0);J("viewport.getOffset",function(a){a&&a(b.J.offset())});J("viewport.getMode",function(a){a&&a(Rj(b))});this.gj={};A(a,function(a){b.gj[a.name]=a.mode});a.length>0&&this.ji(a[0].name);this.uw=new Fe(100,100);this.J.append(this.uw.J.addClass("inlineHintCanvas").css({position:"absolute","z-index":"1",opacity:0.5,top:0,right:0,bottom:0,left:0,height:"auto",width:"auto"}));this.Eu=new La(this);this.J.append(this.Eu.J);this.V= [];this.wv=1;this.scale=0.75;J.set("viewport.scale",this.scale);this.hl=!1;this.kr="normal";J("user.preferences",function(a){if(a&&b.kr!=a.DefaultZoom)b.kr=a.DefaultZoom,Ak(b,b.kr)},!0);J("default.zoomIn",function(){Ak(b,"in")});J("default.zoomIn.disabled",function(a){b.scale>=4&&a(!0)});J("default.zoomOut",function(){Ak(b,"out")});J("default.zoomOut.disabled",function(a){b.scale<=0.01001&&a(!0)});J("default.zoom",function(a){Ak(b,a)});this.dm=this.Ha=!1;setInterval(r(this.Ub,this),10);this.Ep=l; if(Ya){var c=l;this.J.bind("touchstart",function(a){try{V("touch","touchstart");var e=b.mc(a);a.which=1;if(!(a.originalEvent.touches.length>1)&&(P==l||!P.Db(a)))b.touchStart(e,a),c=function(){P&&P.blur();b.readOnly||b.ud(e,a);Bk(b,e,a)}}catch(f){b.K.$.sd(f)}});this.J.bind("touchmove",function(a){try{if(V("touch","touchmove"),!(a.originalEvent.touches.length>1)){a.preventDefault();c&&(c(),c=l);var e=b.mc(a);a.which=1;b.Ep=e;if(b.readOnly)Ck(b,e,a);else{var f;if(f=P==l||!P.Db(a)){var g=$(".tool-box-slider:not(.closed)"), i=a.pageX,j=a.pageY,k=$(g).offset();f=!(k&&i>=k.left&&i<=k.left+$(g).width()&&j>=k.top&&j<=k.top+$(g).height())}f&&(b.touchMove(e,a),b.fd(e,a));b.im==!1&&b.Ub()}}}catch(n){b.K.$.sd(n)}});this.J.bind("touchend",function(a){try{V("touch","touchend");var e=b.mc(a);b.touchEnd(e,a);if(!(a.originalEvent.changedTouches.length>1)&&(c&&(c(),c=l),!b.readOnly&&(P==l||!P.Db(a))))a.which=1,b.gd(e,a)}catch(f){b.K.$.sd(f)}});this.J.bind("gesturestart",function(a){try{if(P==l||!P.Db(a)){var c=b.mc(a);b.qk(c,a)}}catch(f){b.K.$.sd(f)}}); this.J.bind("gesturechange",function(a){try{(P==l||!P.Db(a))&&b.mc(a)}catch(c){b.K.$.sd(c)}});this.J.bind("gestureend",function(a){try{if(P==l||!P.Db(a)){var c=b.mc(a);b.pk(c,a)}}catch(f){b.K.$.sd(f)}});this.J.bind("click",function(a){try{if(V("touch",{event:a.type,pageX:a.pageX,pageY:a.pageY,button:a.button,which:a.which,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey}),!b.readOnly){var c=b.mc(a);(P==l||!P.Db(a))&&b.mode.Bu&&b.mode.Bu(c,a)}}catch(f){b.K.$.sd(f)}})}else this.J.bind("mousedown", function(a){V("mouse",{event:a.type,pageX:a.pageX,pageY:a.pageY,button:a.button,which:a.which,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey});if(P==b.aa||P==l||!P.Db(a)){window.getSelection?window.getSelection().removeAllRanges():document.selection&&document.selection.empty();P&&P!=b.aa&&P.blur();var c=b.mc(a);b.Rp=c.data;b.readOnly||b.ud(c,a);Bk(b,c,a)}}),this.J.bind("mousemove",function(a){V("mouse",{event:a.type,pageX:a.pageX,pageY:a.pageY,button:a.button,which:a.which,altKey:a.altKey,ctrlKey:a.ctrlKey, metaKey:a.metaKey});var c=b.mc(a,b.Rp);b.Ep=c;if(b.readOnly)Ck(b,c,a);else if((P==b.aa||P==l||!P.Db(a))&&b.fd(c,a),P&&P!=b.aa&&P.Db(a)&&b.cursor("text"),b.im==!1&&(!ge||Rd))ae||b.Ub()}),this.J.bind("mouseup",function(a){V("mouse",{event:a.type,pageX:a.pageX,pageY:a.pageY,button:a.button,which:a.which,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey});if(!b.readOnly&&(P==b.aa||P==l||!P.Db(a))){var c=b.mc(a,b.Rp);b.Rp=l;b.gd(c,a)}}),this.J.bind("dblclick",function(a){V("mouse",{event:a.type,pageX:a.pageX, pageY:a.pageY,button:a.button,which:a.which,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey});if(!b.readOnly&&(P==b.aa||P==l||!P.Db(a))){var c=b.mc(a);b.Fc(c,a)}});this.au=!1;$(document).bind("editorEndEdit",function(){b.ia()});this.uy=this.ty=0;this.im=!1;$(document).bind("documentPostAction",function(a,c){c.Action==M&&Dk(b,c.id)&&(c.Property=="FillColor"||c.Property=="Margin")&&b.ig();b.ia()});$(document).bind("documentAction",function(a,c){if(c.Action=="RemoveLine"){var f=b.V[0].C.Ge(c.id); f&&Wi(b.document.ej,f)}});$(document).bind("viewingHistory",function(){b.ig();b.ia()});$(document).bind("selectionChange",r(this.ia,this));$(document).bind("userPreferences",r(this.ig,this));this.clipboardData=l;Ek();this.pl();this.Nt=new Uj;setInterval(function(){window.lucidRendering=!1},1);this.vb.scroll(r(this.ia,this));$(window).resize(r(this.ia,this));J("document.facingPages",function(a){b.Ov=a;b.ia();b.ig()},!0);J("page.selectionChange",function(a){b.aa&&a.length>0&&b.aa.blur()});J("viewport.invalidate", r(this.ia,this))};q.Ub=function(){if(this.Ha||this.dm)this.Ja(this.dm),this.dm=this.Ha=!1};q.Fc=function(a,b){this.mode.Fc(a,b)};function Bk(a,b,c){(b=a.V[0].Za(b.x,b.y,l,c.altKey))&&b.fl&&a.readOnly&&b.fl()}q.ud=function(a,b){this.mode.ud(a,b)};function Fk(a,b,c){var d="se-resize,s-resize,sw-resize,w-resize,nw-resize,n-resize,ne-resize,e-resize".split(","),e={se:0,sw:2,nw:4,ne:6};if(c!=0){for(c=Math.round(c*4/Math.PI);c<0;)c+=8;a.cursor(d[(e[b]+c)%4])}else a.cursor(d[e[b]])} function Gk(a){Xd?a.cursor("url(/img/cursors/rotate.cur), default"):he||ge||je?a.cursor("url(/img/cursors/rotate.cur) 16 16, default"):a.cursor("move")}function Hk(a){je?a.cursor("-moz-grabbing"):Xd?a.cursor("url(/img/cursors/closedhand.cur), default"):he||ge?a.cursor("url(/img/cursors/closedhand.cur) 8 8, default"):a.cursor("move")} function Ik(a){je?a.cursor("-moz-grab"):Xd?a.cursor("url(/img/cursors/openhand.cur), default"):he||ge?a.cursor("url(/img/cursors/openhand.cur) 8 8, default"):a.cursor("move")}function Ck(a,b,c){a.V.length!=0&&((b=a.V[0].Za(b.x,b.y,l,c.altKey))&&b.fl?a.cursor(b.cursor):a.cursor(a.mode.wf))}q.fd=function(a,b,c){this.mode.fd(a,b,c)};q.gd=function(a,b){this.mode.gd(a,b)};q.touchStart=function(a,b){this.mode.touchStart(a,b)};q.touchMove=function(a,b){this.mode.touchMove(a,b)}; q.touchEnd=function(a,b){this.mode.touchEnd(a,b)};q.qk=function(a,b){this.mode.qk(a,b)};q.pk=function(a,b){this.mode.pk(a,b)}; function Ak(a,b){if(a.V.length!=0){var c=a.scale,d=c,d=a.vb.get(0),e=a.V[0].C.q.get("Size"),f=!0;if(b=="page")d=Math.min(d.clientWidth/e.w,d.clientHeight/e.h),f=!1;else if(b=="width")d=d.clientWidth/e.w,f=!1;else if(b=="in"||b=="out"){var d=[100,141,200,283,400,500,577,707,866,1E3,1225,1414,1732,2E3],e=Math.round(Math.sqrt(a.scale*100)*100),g;if(b=="in")for(g=0;g0;g--)if(e>d[g])break;d=1.0E-6*d[g]*d[g]}else na(b)&&(b=75),d=b/100;if(d!=c){a.scale= a.wv*d;var i=a.scale/c,j=(a.scrollWidth-Od())/2-a.padding,k=(a.scrollHeight-Od())/2-a.padding,n=a.vb.get(0);a.J.one("afterRender",function(){f?(n.scrollLeft=i*(j+a.scrollLeft)-j,n.scrollTop=i*(k+a.scrollTop)-k):(n.scrollLeft=a.padding,n.scrollTop=a.padding);a.mode.hr()});a.ia();a.ig();J.set("viewport.scale",d)}}} q.Ja=function(a){function b(){return[]}var c=this;V("ie","vp.render called");V("touch","render");var d=Ra(Cb(Jk(this)),this.padding);this.J.css({width:d.w+"px",height:d.h+"px"});this.V[0]&&this.V[0].C.Fb()?this.J.closest("#canvas-window").addClass("master"):this.J.closest("#canvas-window").removeClass("master");this.J.triggerHandler("beforeRender");window.lucidRendering=!0;V("render","Viewport.render started");A(this.V,function(a){a.rn()});A(this.V,function(a){Sj(a,c.mode)});var e,f,g,i,j;c.ir=function(){e= Ch(c,!0);f={};A(e,function(a){f[a.page.C.id]=a});g=Ch(c);i={};A(g,function(a){i[a.page.C.id]=a});j=[];A(g,function(a){j.push([a.page.C.id,a.x,a.y,a.w,a.h])})};c.ir();var k=!1;if(!Na(j,c.Yw))k=!0,c.Yw=j;d=g.length>0?g[0].page:l;if(d!=this.ix)J.set("viewport.activePage",d),this.ix=d;var n=!1;if(this.document.q.get("WPMode")){var m={};A(c.V,function(a){A(pj(a.C),function(b){m[a.C.id]=a.C.Og(new H(b.x,b.y,b.w,b.h),!1,a.Ae)})});if(!Na(m,c.Ww))n=!0,c.Ww=m;c.Iu=function(){n=n||k;var a=[];A(c.V,function(b){A(pj(b.C), function(d,e){var g=s(b.C.id,e);if(!g)g=new Gg(d.w,d.h,c.aa),g.gn=b.C.id,g.Xk=e,g.Ng="left",g.vAlign="top",g.Ue=[],g.J.get(0).style.position="absolute",n=!0,g.Sk=function(){return b.C.Og(new H(d.x,d.y,d.w,d.h),!1,b.Ae)};if(d.w!=g.width||d.h!=g.height)g.width=d.w,g.height=d.h,n=!0;var f=g.J.get(0).style;f.left=d.x*c.scale+"px";f.top=d.y*c.scale+"px";f.width=d.w*c.scale+"px";f.height=d.h*c.scale+"px";g.Qp=!(b.C.id in i);a.push(g)})});for(var b=0;bc.scrollTop+c.scrollHeight-60)c.vb.get(0).scrollTop=a.y-(c.scrollHeight-60); if(a.xc.scrollLeft+c.scrollWidth-60)c.vb.get(0).scrollLeft=a.x-(c.scrollWidth-60)}});this.aa.bind("needsMoreSpace",function(){var a=Ch(c)[0].page.C.q,a=new N(xg,{Properties:{Title:S("Untitled Page"),Order:c.document.Vh("Order")+1,Size:a.get("Size"),Margin:a.get("Margin"),DPI:a.get("DPI"),GridSpacing:a.get("GridSpacing")}});window.lucidRendering=!1;c.document.ba(a);window.lucidRendering=!0;c.Iu();c.ir();c.Ti(a.id).rn();Sj(c.Ti(a.id),c.mode)});this.aa.bind("excessSpace", function(a){A(a,function(a){a.Xk==0&&c.document.ba(new N("RemovePage",{id:a.gn}))});c.ir()});this.aa.yt=!0;this.aa.oa[0].destroy();this.aa.oa=[]}var s=function(a,b){for(var d=0;d0&&(this.Bm=!0,!Ya))c.scrollLeft=c.padding-8,c.scrollTop=c.padding-8,c.vb.get(0).scrollLeft=c.scrollLeft, c.vb.get(0).scrollTop=c.scrollTop;V("ie","raising afterRender event");this.J.triggerHandler("afterRender");J.set("viewport.afterRender");window.lucidRendering=!1;V("render","Render complete");V("ie","vp.render complete")};function Kk(a,b,c){this.LastAction=K(this.Action);this.LastAction.Page=a.id;a=this.LastAction.Properties.Members;b={};if(a!=l)for(var d in a)for(var e=0;ed)d=i.x+i.w;if(c==l||i.ye)e=i.y+i.h}for(g=0;g1){var f=a.V[0].C.q.get("Size");b.push(new H(c+f.w*d+16,e,f.w*d,f.h*d,a.V[0]));e+=f.h*d+16;for(var g=1;g0&&f.h>0||a.V.length==1)&&e.push({Da:f,page:g})});e.sort(function(a,b){return b.Da.w*b.Da.h-a.Da.w*a.Da.h});return e}function Rj(a,b){return b&&a.gj[b]?a.gj[b]:a.mode||a.gj.diagramming}q.cursor=function(a){if(this.$f!=a)this.J.css({cursor:a}),this.$f=a}; function Uk(a){return a.page?a.page.id:"document"}q.ec=function(){this.selection={document:{}};for(var a in this.document.V)this.selection[a]={};$(document).triggerHandler("selectionChange");J.set("page.selectionChange",[]);J.set("optionBar.refresh")}; q.Iq=function(a){var b=this,c=this.Hc(),d=this.document.q.get("bgSelectable")!=0;this.selection={};if(c&&c.pa)c.Ib(function(){b.selection[c.page.id][this.id]=!0});else{if(!a){for(var e in this.document.Oa)this.selection.document[e]=!0;for(var f in this.document.Ea)this.selection.document[f]=!0}F(this.V,function(c,e){a&&a!=e||tj(e.C,function(){(d||!this.Je)&&b.Yc(this.id)})})}$(document).triggerHandler("selectionChange");J.set("page.selectionChange",this.getSelection());J.set("optionBar.refresh")}; q.Yc=function(a,b,c){if((c=c&&c.C.ra(a)||this.document.ra(a))&&!(b&&this.Hc()!=c.parent)&&(!c.Je||this.document.q.get("bgSelectable")!=0))this.selection[Uk(c)]||(this.selection[Uk(c)]={}),this.selection[Uk(c)][a]=!0,$(document).triggerHandler("selectionChange"),J.set("page.selectionChange",this.getSelection()),J.set("optionBar.refresh")}; q.kh=function(a,b){b?delete this.selection[b.C.id][a]:delete this.selection[Uk(this.document.ra(a))][a];$(document).triggerHandler("selectionChange");J.set("page.selectionChange",this.getSelection());J.set("optionBar.refresh")};q.getSelection=function(a,b){var c=[];b?b.Gg(function(){(!a||!this.ta)&&c.push(this)}):this.Gg(function(){(!a||!this.ta)&&c.push(this)});return c}; function Vk(a,b){function c(a){a.pa&&(!b||!a.ta)?a.Ib(function(){c(this)}):nc(d,a)||(!b||!a.ta)&&d.push(a)}var d=[];a.Gg(function(){c(this)});return d} q.Gg=function(a){var b=this,c;for(c in this.document.Oa)if(this.selection.document[c]&&a.call(this.document.Oa[c])=="stop")return;for(var d in this.document.Ea)if(this.selection.document[d]&&a.call(this.document.Ea[d])=="stop")return;var e=!1,f;for(f in this.document.V){if(e=="stop")break;this.document.V[f].Ib(function(){if(b.selection[f]&&b.selection[f][this.id])return e=a.call(this)})}};function Wk(a){a=a.getSelection();if(a.length==0)return!1;var b=!0;A(a,function(a){a.ta||(b=!1)});return b} function Xk(a){if(a.V.length==0)return!1;a=a.getSelection(!0);return a.length==1&&a[0].fb}function Yk(a){if(a.V.length==0)return!1;for(var a=Vk(a,!0),b=0,c=a.length;b0}function Zk(a){if(a.V.length==0)return!1;for(var a=Vk(a,!0),b=0,c=a.length;b0}q.Cf=function(a){return this.V.length>0&&this.getSelection(!!a).length>0};q.Ti=function(a){var b=l;$.each(this.V,function(c,d){d.C.id==a&&(b=d)});return b}; q.Ya=function(a){var b=a.id;if(a.page==l&&(!this.Ra[b]||this.Ra[b].C!=a))a.pa?this.Ra[b]=new Zi(l,a):a.sa?(this.Ra[b]=new Th(l,a),mi(this.Ra[b])):delete this.Ra[b];return this.Ra[b]||l};q.ac=function(a,b){if(b)return b.C.id in this.selection&&!!this.selection[b.C.id][a];var c=this.document.ra(a);return!(!c||!this.selection[Uk(c)]||!this.selection[Uk(c)][a])};q.Rg=function(a,b,c){for(;a.parent&&a.parent.pa;){if(c?c.ac(a.parent.id):this.ac(a.parent.id))return b?!a.parent.ta:!0;a=a.parent}return!1}; zk.prototype.setPages=zk.prototype.Lb;zk.prototype.getActiveGroup=zk.prototype.Hc;zk.prototype.getClipboardData=zk.prototype.rk;zk.prototype.pasteClipboardData=zk.prototype.Yk;zk.prototype.deleteSelection=zk.prototype.ae;zk.prototype.invalidate=zk.prototype.ia;zk.prototype.getLastMousePos=zk.prototype.Wv;zk.prototype.eventLocation=zk.prototype.mc;zk.prototype.setMode=zk.prototype.ji;zk.prototype.getSelection=zk.prototype.getSelection;zk.prototype.isSelected=zk.prototype.ac; zk.prototype.unselectAll=zk.prototype.ec;zk.prototype.getPageById=zk.prototype.Ti;var $k=!1,al=!1,bl=!0;function cl(a){$k||($k=!0,setInterval(dl,1E3),$(document).ajaxError(function(){setTimeout(function(){cl();window.localStorage.isLucidOnline&&delete window.localStorage.isLucidOnline;dl()},1E3)}),$(document).ajaxSuccess(function(){el()}),a?(al=!0,$(document).triggerHandler("online"),J.set("online",!0)):(al=!1,$(document).triggerHandler("offline"),J.set("online",!1)))} function dl(){cl();var a=window.localStorage.isLucidOnline,b=(new Date).getTime();!bl||a&&parseInt(a,10)>b-5E3?al||(al=!0,$(document).triggerHandler("online"),J.set("online",!0)):al&&(al=!1,$(document).triggerHandler("offline"),J.set("online",!1))}function el(a){cl(!0);if(a){if(bl&&!("isLucidOnline"in window.localStorage))return;dl()}try{window.localStorage.isLucidOnline=String((new Date).getTime())}catch(b){bl=!1}al||dl()}function fl(){cl();dl();return al};function Tk(a,b){return Tk.Sw(a,b)}Tk.create=function(a){var b=document.getElementById("growlDock"),b=!b||a?$(Tk.Re.Dv).attr("id","growlDock").addClass("growl"):$(b),a=$("#canvas-window-opening,div.viewport-container").offset();$("body").append(b.css(Tk.Re.Cv).css({top:a.top+8+"px",left:a.left+8+"px"}));return b};Tk.Ua=function(a,b,c){for(;b.test(a);)a=a.replace(b,c);return a}; Tk.Sw=function(a,b){var c=Tk.create(),d=Tk.Re.zt;typeof d=="object"&&(d=$(d).html());var d=Tk.Ua(d,/%message%/,a?a:""),e=$(d).hide().css(Tk.Re.Pw).fadeIn(Tk.Re.$m);Tk.Re.Qw(e);c.append(e);$(e).click(function(){e.fadeOut(Tk.Re.$m,function(){$(this).remove()})});c=b?b:Tk.Re.Bv;c>0&&setTimeout(function(){Tk.Re.Rw(e,function(){e.remove()})},c);return function(){$(e).click()}}; Tk.Re={Dv:"
",Cv:{position:"absolute",zIndex:790},zt:'
%message%
',Pw:{opacity:0.9},Qw:function(a){a.css({opacity:0}).fadeIn(Tk.Re.$m)},Rw:function(a,b){a.animate({opacity:0,height:"0px"},{duration:Tk.Re.$m,complete:b})},$m:200,Bv:6E3,Vy:function(a){Tk.Re.zt=$(a)}}; function gl(a){function b(){e.remove();d.children().last().slideDown(hl)}var c;c==l&&(c=!0);if(c&&!fl())return l;var d;il||(il=$(jl),$(kl||"body").append(il.css(ll)));d=il;d.children().stop(!0,!0).hide();c=ml;c=Tk.Ua(c,/%message%/,a?a:"");var e=$(c).addClass("").addClass("");d.append(e);e.hide();e.slideDown(hl);$(e).find(".rSide .close").click(b);return b} var il=l,kl="body",jl='
',ll={position:"absolute",top:"0",height:"0",zIndex:790},ml='
%message%
',hl="fast";t("lucid.growl",Tk);function nl(a,b,c,d,e,f){var g=this;this.wc=b;this.Lh=c;this.Qx=d;this.Zi=e||o();this.Tr=f||l;this.zs={Hj:{},Xi:{}};this.ih={Hj:{},Xi:{}};this.Jf=[function(){g.ih.Hj={};g.ih.Xi={}}];$('
').appendTo(a).append(y(this.Ie()))} nl.prototype.Ie=function(){var a=this,b=this.Qx,c=l;return{children:[{Q:"clear"},{Q:"left",children:[{Q:"spacer"},{R:"span",html:""+S("invitation.new")+": "}]},{Q:"left",children:[{Q:"left",children:[{R:"input",id:"invite_method_email",type:"radio",value:"email",attr:{name:"invite_method",checked:"checked"},create:function(b){b.click(function(){ol()});a.Jf.push(function(){b.attr("checked","checked");ol()})}},{R:"label",Q:"inline",text:S("Email")+(b?"/Users/Groups":"")+"   ", attr:{"for":"invite_method_email"}}]},{Q:"left",children:[{R:"input",id:"invite_method_link",type:"radio",value:"link",attr:{name:"invite_method"},create:function(a){a.click(function(){$("#invite_method_email_content").hide();$("#invite_method_link_content").show();$("#invite_link").hide()})}},{R:"label",Q:"inline",text:S("link.generate"),attr:{"for":"invite_method_link"}}]}]},{id:"invite_method_email_content",children:[{Q:"spacer"},{R:"input",id:"invite_email",type:"text",Q:"left lighter fullwidth", title:b?S("input.email_user_group.prompt"):S("input.email.prompt"),value:b?S("input.email_user_group.prompt"):S("input.email.prompt"),create:function(d){var e=!0,f=!1;a.Jf.push(function(){e=!0});d.focus(function(){$(this).val()==$(this).get(0).title&&($(this).removeClass("lighter"),$(this).val(""))}).blur(function(){$(this).val()==""&&($(this).addClass("lighter"),$(this).val($(this).get(0).title))});b&&($.ajax({type:"POST",url:"/groupEntries/listGroupsForOrg",timeout:1E4,data:"",success:function(a){try{c= gc(a)}catch(b){}},error:o()}),d.autocomplete({autoFocus:!0,minLength:0,source:function(b,d){if(c){var e=[],f=[],n=RegExp(b.term,"i"),m=b.term=="",p=function(a,b,c,d){if(b)if(c=c?c.search(n):b.search(n),c==0&&!d)return e.push({label:b,value:a}),!0;else if(c>=0&&e.length+f.length<50)return f.push({label:b,value:a}),!0;return!1};A(c,function(b){if(!(m&&e.length+f.length>=50)&&!a.ih.Hj[b.User.id]&&!a.ih.Xi[b.GroupEntry.id]&&!a.zs.Hj[b.User.id]&&!a.zs.Xi[b.GroupEntry.id]){var c=!1;p(b,b.GroupEntry.name); b.User.first_name&&b.User.last_name&&(c=p(b,b.User.first_name+" "+b.User.last_name,b.User.first_name,m)||p(b,b.User.last_name+", "+b.User.first_name,b.User.last_name,m));c||p(b,b.User.email,l,m)}});f.length==0&&e.length==0&&Td(b.term)&&e.push({label:b.term,value:b.term});d(e.concat(f))}},focus:fa(!1),open:function(){e=!1},close:function(){f=!0;setTimeout(function(){e=!0;f=!1},100)},select:function(b,c){var d=c.item.value;d.User&&d.User.id?a.ih.Hj[d.User.id]=1:d.GroupEntry&&d.User.id&&(a.ih.Xi[d.GroupEntry.id]= 1);pl(a,c.item.label,d);this.value="";return!1}}).focus(function(){f||$(this).autocomplete("search","")}).keydown(function(a){e&&a.keyCode==13&&$(this).val()==""&&$(this).triggerHandler("focus")}).click(function(){e&&$(this).val()==""&&$(this).triggerHandler("focus")}),setTimeout(function(){d.autocomplete("option","appendTo","div.invite-form-container")},1E3),a.Jf.push(function(){d.autocomplete("close")}));a.Jf.push(function(){d.val(d.attr("title")).addClass("lighter")})}},{Q:"spacer"},{Q:"right", children:[{R:"select",id:"invite_role_email",children:[{R:"option",value:"viewer",text:S("collaborate.option.view")},{R:"option",value:"editor",text:S("collaborate.option.edit"),attr:{selected:"selected"}},{R:"option",value:"owner",text:S("collaborate.option.own")}]}]},{Q:"clear"},{id:"invite_entry_container",create:function(b){a.Jf.push(function(){b.empty()})}},{Q:"spacer"},{R:"textarea",id:"invite_send_message",Q:"fullwidth lighter",css:{resize:"vertical"},attr:{rows:"3"},text:ql(),create:function(b){b.focus(function(){$(this).val()== ql()&&$(this).val("").removeClass("lighter")}).blur(function(){$(this).val()==""&&$(this).val(ql()).addClass("lighter")});a.Jf.push(function(){b.val(ql()).addClass("lighter")})}},{R:"input",type:"button",value:S("invitation.send"),Q:"button right",create:function(b){b.click(function(){function c(b,d){k++;qa(b)?b.User.id?rl(a,b,i,j,r(f,l,d||l)):sl(a,b,i,j,r(f,l,d||l)):tl(a,b,i,j,r(f,l,d||l))}function f(c,e){c&&c.remove();e&&(n=!0);k--;k<=0&&(b.val(S("invitation.send")),$("#invite_send_message").addClass("lighter"), $("#invite_send_message").val(ql()),$("#invite_entry_container").empty(),!n&&a.Tr&&a.Tr())}if(a.wc==l&&a.Lh==l)L(S("alert.share.unsaved"));else{var g=$("#invite_email"),i=$("#invite_send_message").val(),j=$("#invite_role_email").val(),k=0,n=!1,i=i==ql()?"":i;$(this).val(S("invitation.sending"));var m=$("#invite_entry_container").children();m.length>0?m.each(function(){c($(this).data("groupEntry"),$(this))}):c(g.val());g.val("");g.addClass("lighter");g.val(g.attr("title"))}});a.Jf.push(function(){b.val(S("invitation.send"))})}}, {Q:"clear"}]},{id:"invite_method_link_content",create:function(a){a.hide()},children:[{R:"input",id:"invite_link",type:"text",Q:"fullwidth",create:function(b){b.click(function(){$(this).select()});a.Jf.push(function(){b.val("")})}},{Q:"left",children:[{R:"input",id:"invitation_multi_link",type:"checkbox",attr:{name:"multi"}},{R:"label",Q:"inline",text:S("Multi-use"),attr:{"for":"invitation_multi_link"},children:[{R:"span",Q:"lighter",text:"("+S("description.multiuse")+")"}]}]},{Q:"right",children:[{Q:"spacer"}, {R:"select",id:"invite_role_link",children:[{R:"option",value:"viewer",text:S("collaborate.option.view")},{R:"option",value:"editor",text:S("collaborate.option.edit"),attr:{selected:"selected"}},{R:"option",value:"owner",text:S("collaborate.option.own")}]}]},{Q:"clear"},{R:"input",type:"button",value:S("link.generate"),Q:"button right",create:function(b){b.click(function(){if(ul(a)){var c=$("#invitation_multi_link").is(":checked")?"1":"0",f=$("#invite_role_link").val(),g=a.wc==l?"folder_entry_id": "document_id",i=(a.wc==l?a.Lh:a.wc)||"";$(this).val(S("link.generating"));$.ajax({type:"POST",url:"/invitations/invite",data:"data[Invitation]["+g+"]="+encodeURIComponent(i)+"&data[Invitation][to]="+encodeURIComponent("Collaborator")+"&data[Invitation][role]="+encodeURIComponent(f)+"&data[Invitation][multi]="+encodeURIComponent(c)+"&data[Invitation][message]="+encodeURIComponent(""),success:function(c){try{var e=gc(c)}catch(g){return}e.success?($("#invite_link").show(),$("#invite_link").val("http://"+ window.location.hostname+"/invitations/accept/"+e.invitation_id).focus().select(),b.val(S("link.generate"))):a.Zi(e.error||S("growl.invitation.send.error"))},status:l})}else L(S("alert.share.unsaved"))});a.Jf.push(function(){b.val(S("link.generate"))})}},{Q:"clear"}]}]}};function ql(){return S("message.personal.include")+" ("+S("Optional")+")"}function ol(){$("#invite_method_link_content").hide();$("#invite_link").val("");$("#invite_method_email_content").show()} function pl(a,b,c){$("#invite_entry_container").append(y({Q:"invite-form-tag",text:b,create:function(a){a.data("groupEntry",c)},children:[{Q:"icon-13 icon-13-close",css:{position:"absolute",top:"2px",right:"2px"},create:function(b){b.click(function(){c.User&&c.User.id?delete a.ih.Hj[c.User.id]:c.GroupEntry&&c.GroupEntry.id&&delete a.ih.Xi[c.GroupEntry.id];b.parent().remove()})}}]}))} function rl(a,b,c,d,e){var f=b.User.id;if(!f||!d||!ul(a))e(!0);else{var g=a.wc==l?"FolderEntryUser":"DocumentsUser";$.ajax({type:"POST",url:"/"+(a.wc==l?"folderEntryUsers":"documentsUsers")+"/add",data:"data["+g+"]["+(a.wc==l?"folder_entry_id":"document_id")+"]="+encodeURIComponent((a.wc==l?a.Lh:a.wc)||"")+"&data["+g+"][user_id]="+encodeURIComponent(f)+"&data["+g+"][role]="+encodeURIComponent(d)+"&data["+g+"][message]="+encodeURIComponent(c),success:function(b){try{var c=gc(b)}catch(d){e();return}c.success|| (c.error?a.Zi(c.error):a.Zi(S("growl.invitation.send.error")));e()},status:"Sending invitation to "+((b.User.first_name||"")+" "+(b.User.last_name||""))})}} function sl(a,b,c,d,e){var f=b.GroupEntry.id;if(!f||!d||!ul(a))e(!0);else{var g=a.wc==l?"FolderEntryUser":"DocumentsUser";$.ajax({type:"POST",url:"/"+(a.wc==l?"folderEntryUsers":"documentsUsers")+"/add",data:"data["+g+"]["+(a.wc==l?"folder_entry_id":"document_id")+"]="+encodeURIComponent((a.wc==l?a.Lh:a.wc)||"")+"&data["+g+"][group_entry_id]="+encodeURIComponent(f)+"&data["+g+"][role]="+encodeURIComponent(d)+"&data["+g+"][message]="+encodeURIComponent(c),success:function(b){try{var c=gc(b)}catch(d){e(); return}c.success||(c.error?a.Zi(c.error):a.Zi(S("growl.invitation.send.error")));e()},status:"Sending invitation to group "+(b.GroupEntry.name||"")})}} function tl(a,b,c,d,e){ul(a)?(b=Ud(b),b.length==0?(L(S("alert.email.invite.invalid")),e(!0)):$.ajax({type:"POST",url:"/invitations/invite",data:"data[Invitation]["+(a.wc==l?"folder_entry_id":"document_id")+"]="+encodeURIComponent((a.wc==l?a.Lh:a.wc)||"")+"&data[Invitation][to]="+encodeURIComponent(b.join(", "))+"&data[Invitation][role]="+encodeURIComponent(d)+"&data[Invitation][multi]="+encodeURIComponent("0")+"&data[Invitation][message]="+encodeURIComponent(c),success:function(b){try{var c=gc(b)}catch(d){e(); return}c.success||a.Zi(c.error||S("growl.invitation.send.error"));e()},status:"Sending invitation to "+b.join(", ")})):e(!0)}function ul(a){return a.wc!=l||a.Lh!=l}nl.prototype.reset=function(){A(this.Jf,function(a){a()})};function vl(a){var b=this;this.K=a;this.dialog=wl(this);this.Pd=xl(this);this.Sm=0;J("default.publish",function(){b.K.$.zb()?b.K.$.Oe():b.K.$.Qa=="owner"&&b.open("publish")});J("default.share",function(){b.K.$.zb()?b.K.$.Oe():b.K.$.Qa=="owner"&&b.open()});J("share.users",function(a){b.Pr=a;yl(b,b.Pr)})} function wl(a){var b=a.K.document,c=$('
').append('
'+S("dialog.share.collaborators.heading")+':
'+S("invitations.active")+':
').append('

'+ S("button.page.publish")+'
'+ S("button.selection.publish")+'
').lucidtabs(),c=new se(c,{Ld:!0,width:"500px",title:S("Share and publish"),$c:!0,open:function(){$(document).bind("documentUpdatePublished.publishDlg",function(){if(!Na(a.bm,b.uj?b.uj: []))a.bm=b.uj?b.uj:[],zl(a)});zl(a)},close:function(){$(document).unbind("documentUpdatePublished.publishDlg");a.yp&&a.yp.reset();a.Sm=0}});Al(a,$(c.body));a.yp=new nl($("#invite_form_container"),b.id,l,!(!b.$.da||!b.$.da.organization_id),function(a){Tk(a)});return c} function Al(a,b){var c=a.K.document;Bl();Cl();Dl();b.find("#publish_web_ckbox").change(function(){$("#publish_web_loading").show();$(this).is(":checked")?a.K.$.vj("web",l,!1,l,function(a){gc(a).success?El(b,c.id):Bl()}):Fl(c.id)});b.find("#publish_pdf_ckbox").change(function(){$("#publish_pdf_loading").show();$(this).is(":checked")?a.K.$.vj("pdf",l,!1,l,function(a){a=gc(a);a.success?Gl(b,a.id):Cl()}):Hl(a)});b.find("#pub_pdfimg_page_toggle").click(function(){$("#published_pages").slideToggle("fast", function(){$(this).is(":visible")?$("#pub_pdfimg_page_toggle").addClass("icon-13-tri-d").removeClass("icon-13-tri-r"):$("#pub_pdfimg_page_toggle").addClass("icon-13-tri-r").removeClass("icon-13-tri-d")});return!1});b.find("#publish_new_page").click(function(){a.Pd.find("#select_page_ui").show();a.Pd.find("#pdf_format_input").show();a.Pd.find("#selection_publish").removeAttr("checked");a.Pd.find("#publish_button").val(S("button.publish"));a.Pd.find("#format_pdf").attr("checked","checked");Il(a.Pd.find("#publish-dpi")); a.Pd.open()});b.find("#pub_img_selection_toggle").click(function(){$("#published_selections").slideToggle("fast",function(){$(this).is(":visible")?$("#pub_img_selection_toggle").addClass("icon-13-tri-d").removeClass("icon-13-tri-r"):$("#pub_img_selection_toggle").addClass("icon-13-tri-r").removeClass("icon-13-tri-d")});return!1});b.find("#publish_new_selection").click(function(){a.Pd.find("#select_page_ui").hide();a.Pd.find("#pdf_format_input").hide();Jl(a.Pd.find("#publish-dpi"));a.Pd.find("#format_png").attr("checked", "checked");a.Pd.find("#publish_button").val(S("button.area.select.publish"));a.Pd.find("#selection_publish").attr("checked","checked");a.Pd.open()});b.find("#publish_community_ckbox").change(function(){$(this).attr("checked")?($("#publish_community_ckbox").removeAttr("checked"),a.K.$.zb()?a.K.$.Oe(function(){a.K.$.Hn(function(){Kl(a,b,c.id)})}):a.K.$.Hn(function(){Kl(a,b,c.id)})):(Ll(a.K.$),Dl())})} function Kl(a,b,c){var d=S("label.community.shared"),c=$('
'); c.children("input").hide().click(function(a){a.preventDefault()});$("#publish_community_ckbox").attr("checked","checked");c.find("div.toggle_address").click(function(a){a.preventDefault();Ml($(this))});c.find("div.edit_share").click(function(b){b.preventDefault();a.K.$.Hn()});b.find("#community_publish").empty().append(c)} function Gl(a,b){var c=S("label.published.fulldoc"),c=$('
');c.children("input").hide().click(function(a){a.preventDefault()});$("#publish_pdf_ckbox").show().attr("checked", "checked");$("#publish_pdf_loading").hide();c.find("div.toggle_address").click(function(a){a.preventDefault();Ml($(this))});a.find("#pdf_publish").empty().append(c)} function El(a,b){var c=S("label.publish.webpage"),c=$('
');c.children("input").hide().click(function(a){a.preventDefault()});$("#publish_web_ckbox").show().attr("checked","checked");$("#publish_web_loading").hide(); c.find("div.toggle_address").click(function(a){a.preventDefault();Ml($(this))});a.find("#web_publish").empty().append(c)} function Hl(a){var b=Nl(a);ue("

"+S("confirm.document.unpublish")+"

"+S("confirm.file.links.break")+"

",function(){for(var a=0;a

"+S("confirm.document.links.break")+"

";ue(b,function(){$.ajax({type:"POST",url:"/documents/publish",data:"data[Document][id]="+encodeURIComponent(a)+"&data[Document][published]=0",success:function(a){a=gc(a);a.success?Bl():L(a.error)},status:"Un-publishing status"})},function(){$("#publish_web_ckbox").attr({checked:!0});$("#publish_web_loading").hide()})} function Dl(){$("#publish_community_ckbox").removeAttr("checked");$("#community_publish").empty().append('
")}function Bl(){$("#publish_web_ckbox").show().removeAttr("checked");$("#publish_web_loading").hide();$("#web_publish").empty().append('
")} function Cl(){$("#publish_pdf_ckbox").show().removeAttr("checked");$("#publish_pdf_loading").hide();$("#pdf_publish").empty().append('
")}function zl(a){var b=a.K.$.document;b.Lm?El($("#publish-dlg"),b.id):Bl();var c=Nl(a);c.length>0?Gl($("#publish-dlg"),c[0].id):Cl();b.Zs?Kl(a,$("#publish-dlg"),b.id):Dl();Ol(a);a.K.$.Qa=="owner"&&yl(a,a.Pr)} function yl(a,b){if(!(a.Sm>0)){var c;if(b&&b.length!=0){c=a.K.$?a.K.$.da.id:0;for(var d=a.K.$.document,e=$("#share-dlg-collaborators").empty(),f=$("#share-dlg-invitations").empty(),g=0,i,j=0;j
'+k.name+'
'+S("collaborate.option.own")+'
';else if(!k.Fd&& d.Xr==k.id){var n=k.me?"online":"offline",k='
'+k.name+'
'+S("collaborate.option.own")+'
';e.append(k)}else{var n=k.me?"online":"offline",m=k.Fd?"icon-13-user-group":"icon-13-user-"+n,p=k.name;k.bj&&(k.name==="Collaborator"?(n="add",p=k.rt!="0"?S("Multi-use"):S("label.invitation.single")):(n="invite",k.rt!="0"&& (p+=" ("+S("Multi-use")+")")));n=!1;a.K.$.Qa=="owner"&&(n=!0);m=$('
"+(k.bj?'
': "")+'
'+p+"
"+(k.bj?'':"")+"
");m.find("div.icon-13-link").click(function(){var b=$(this).closest(".right").nextAll(".item"),c=b.find("div"),b=b.find("input");c.is(":visible")?(c.hide(),b.show().focus().select(),a.Sm++):(b.blur().hide(),c.show(),a.Sm--)});m.find("div.icon-13-close").click(function(b, c,d){return function(){$(this).parent().parent().append('');$(this).parent().remove();c?$.ajax({type:"POST",url:"/invitations/delete",data:"data[Invitation][id]="+encodeURIComponent(b),success:function(a){gc(a).success||Tk(S("growl.invitation.remove.error"))},status:"Canceling invitation"}):$.ajax({type:"POST",url:"/documentsUsers/delete",data:"data[DocumentsUser][document_id]="+encodeURIComponent(a.K.$.document.id)+"&data[DocumentsUser]["+(d?"group_entry_id": "user_id")+"]="+encodeURIComponent(b),success:function(a){gc(a).success||Tk(S("growl.collaborator.remove.error"))},status:"Removing collaborator"})}}(k.id,k.bj,k.Fd));p=m.find("#user_role_select");p.val(k.Qa);n||p.attr("disabled","disabled");p.change(function(b,c,d){return function(){var e=$(this).val();c?$.ajax({type:"POST",url:"/invitations/edit",data:"data[Invitation][id]="+encodeURIComponent(b)+"&data[Invitation][role]="+encodeURIComponent(e),success:function(a){gc(a).success||Tk(S("growl.collaborator.role.update.error"))}, status:"Updating invitation role"}):$.ajax({type:"POST",url:"/documentsUsers/add",data:"data[DocumentsUser][document_id]="+encodeURIComponent(a.K.$.document.id)+"&data[DocumentsUser]["+(d?"group_entry_id":"user_id")+"]="+encodeURIComponent(b)+"&data[DocumentsUser][role]="+encodeURIComponent(e),success:function(a){gc(a).success||Tk(S("growl.collaborator.role.update.error"))},status:"Updating collaborator role"})}}(k.id,k.bj,k.Fd));k.bj?(g++,g==1&&m.addClass("top"),f.append(m)):e.append(m)}}i&&e.prepend(i); g==0?$("#share-dlg-invitations-container").hide():$("#share-dlg-invitations-container").show();e.append('
');f.append('
')}}} function Ol(a){var b=a.K.$.document,a=Pl(a),c=$("#published_pages"),d=$("#published_selections");c.empty();d.empty();for(var e=0,f=0;f
'+(n?'    ':"")+'
');i.find("div.toggle_address").click(function(){Ml($(this))});i.find("div.delete").click(function(a){return function(){var b= $(this);ue("

"+a.page?S("confirm.segment.unpublish"):S("confirm.document.unpublish")+"

"+a.format=="pdf"?S("confirm.file.links.break"):S("confirm.image.links.break")+"

",function(){b.parent().append('');b.remove();$.ajax({type:"POST",url:"/publicSegments/delete",data:"data[PublicSegment][id]="+encodeURIComponent(a.id)+"&data[PublicSegment][document_id]="+encodeURIComponent(a.document_id),success:function(a){a=gc(a);a.success||L(a.error)},status:"Un-publishing status"})})}}(g)); k.append(i)}}}function Pl(a){return Gf(a.bm,function(a){return a.page})}function Nl(a){a.bm=a.K.$.document.uj?a.K.$.document.uj:[];return Gf(a.bm,function(a){return a.format.toUpperCase()=="PDF"&&a.page==l})}function Ml(a){var b=a.parent().next(),a=b.find("label"),c=a.find("a"),b=b.find("input");a.is(":visible")?(a.hide(),b.val(c.get(0).href.replace("https://","http://")).show().focus().select()):(b.blur().hide(),a.show())} function xl(a){$("#publish_page_dialog").remove();var b='
',b=$(b);b.find("#publish-details-format").empty().append('
'+ S("legend.publish.format")+'
'); b.find("#publish-details-format input:radio").change(function(){switch($(this).closest("#publish-details-format").find("input:radio:checked").val()){case "pdf":Il(c.find("#publish-dpi"));break;case "png":case "jpeg":Jl(c.find("#publish-dpi"))}});var c=new se(b,{Ld:!0,width:400,title:S("publishpanel.title"),$c:!0,hb:[{label:S("button.publish"),action:function(){c.close();var b=c.find("#selection_publish").attr("checked"),e=b?a.K.viewport.V[0].C.id:$("#page_select select").val();b&&a.dialog.close(); var f=$("#publish-dpi [name=dpi]:checked").length>0?$("#publish-dpi [name=dpi]:checked").val():l;a.K.$.vj($("#publish-details-format [name=format]:checked").val(),e,b,f=="160"||f=="300"?f*1:l,o())}}],open:function(){var b=$,c='";b=b(c);b.val(a.K.viewport.V[0].C.id);$("#page_select").empty().append(b)}}); return c} function Jl(a){a.empty().append('
'+S("legend.publish.quality")+'
')}function Il(a){a.empty().append('
')}vl.prototype.open=function(a){if(this.K.$.document.id==l)L(S("alert.share.unsaved"));else{var b=this.yp;b.wc=this.K.$.document.id;b.Lh=l;a&&a=="publish"?this.dialog.find("ul.lucid-tabs li").eq(2).click():this.dialog.find("ul.lucid-tabs li").eq(1).click();this.dialog.open()}};function Ql(a){var b=this;this.K=a;this.J=a.sc;this.Na=l;this.Bs=l;this.Ut=l;this.Zy=l;this.qp=l;this.Uf();J("default.findReplace",function(){b.show()})}q=Ql.prototype; q.Uf=function(){this.hide();$(".find-replace").remove();this.Na=$('
');this.Bs=$('
Clear Search
");this.Ut=$(''); this.qp=$('');this.Na.append(this.Bs).append(this.Ut).append(this.qp);Rl(this)};q.show=function(){pe("findReplace");var a=this.K.sc;a.sq=a.J.children();this.Uf();this.K.sc.hide();this.K.sc.set(this.Na);this.Na.find(".find-box").focus()};q.hide=function(){this.K.sc.restore()}; function Rl(a){a.Na.find('input[type="text"]').keydown(function(b){b.keyCode==27&&(a.Na.find('input[type="text"]').val("").blur(),xh={},a.K.viewport.ia(),a.hide(),qe("findReplace"),b.stopPropagation());b.keyCode==114&&(b.shiftKey?Sl(a,-1):Sl(a,1),b.preventDefault())});a.Na.find(".find-box:first").keydown(function(b){b.keyCode==9&&(a.Na.find(".replace-box").focus(),b.preventDefault())});a.Na.find(".replace-box").keydown(function(b){b.keyCode==9&&(a.Na.find(".find-box:first").focus(),b.preventDefault())}); a.Na.find(".find-box:first").keyup(function(){var b=a.Na.find(".find-box").val(),c=a.Na.find("#case-checkbox").is(":checked"),d=a.Na.find("#whole-word-checkbox").is(":checked");a.search(b,c,d)});a.Na.find(".find #case-checkbox").click(function(){var b=a.Na.find(".find-box").val(),c=a.Na.find("#case-checkbox").is(":checked"),d=a.Na.find("#whole-word-checkbox").is(":checked");a.search(b,c,d)});a.Na.find(".find #whole-word-checkbox").click(function(){var b=a.Na.find(".find-box").val(),c=a.Na.find("#case-checkbox").is(":checked"), d=a.Na.find("#whole-word-checkbox").is(":checked");a.search(b,c,d)});a.Na.find(".replace-all").click(function(){var b=a.Na.find(".find-box").val(),c=a.Na.find("#case-checkbox").is(":checked"),d=a.Na.find("#whole-word-checkbox").is(":checked"),e=a.Na.find(".replace-box").val();a.search(b,c,d);a.replaceAll(e)});a.Na.find(".replace").click(function(){var b=a.Na.find(".find-box").val(),c=a.Na.find("#case-checkbox").is(":checked"),d=a.Na.find("#whole-word-checkbox").is(":checked"),e=a.Na.find(".replace-box").val(); a.search(b,c,d);R.Xb==h?Sl(a,1):a.replace(e);return!1});a.Na.find(".next").click(function(){Sl(a,1);return!1});a.Na.submit(function(){a.Na.find(".find-box").val();Sl(a,1);return!1});a.Na.find(".previous").click(function(){Sl(a,-1);return!1});a.Na.find(".reset-search").click(function(){a.Na.find(".find-box").val("");a.search("",!1,!1);return!1});a.Na.find(".reset-replace").click(function(){a.Na.find(".replace-box").val("");return!1})} q.search=function(a,b,c){Bh(this.K.$.document,a,b,c);this.qp.html(S("search")+" ("+Ah+" results)")}; function Sl(a,b){var c=a.K.$.document;if(hc(xh)&&hc(zh)){var d=Ch(c.$.K.viewport),d=d.length>0?d[0].page:c.$.K.viewport.V[0];if(R.lc==h)R.lc=0;for(var e=zh[d.C.id];!Eh(e[R.lc],b,c);)if(R.lc+b<0||R.lc+b>=e.length){if(hc(yh)>1){var f=d.C.q.get("Order"),g,i;for(i in yh)if(yh[i].q.get("Order")>f){g=yh[i];break}if(g)R.Yb=g;else for(var j in yh)if(yh.propertyIsEnumerable(j)){R.Yb=yh[j];break}if(!Na(R.Yb,d.C)){if(!zh[R.Yb.id])break;e=zh[R.Yb.id];c.$.K.viewport.Lb([R.Yb])}}R.lc=b>0?0:e.length-1}else R.lc+= b}}q.replace=function(a){if(R.Yb&&zh[R.Yb.id]){var b=zh[R.Yb.id];if(b[R.lc]&&(b=b[R.lc],b[R.vc]&&(b=b[R.vc],b[R.Xb]))){var b=b[R.Xb],c;c=this.K.viewport.Ti(R.Yb.id).Ra[b.item];c=(c.la||c.xc)[b.ue];c.aa?$g(c.aa,b.start,b.end,a):$g(c,b.start,b.end,a)}}}; q.replaceAll=function(a){var b=this.K.$.document;b.Aa();for(var c in xh){var d=xh[c],e;for(e in d){var f=d[e];if(f instanceof Array){var f=f.concat([]).reverse(),g;for(g in f){var i=f[g],j=b.ra(i.item),j=(j.la||j.xc)[i.ue].Value||j.q.get(i.ue),j=dd(j,""),k=Ic(j,i.start,i.end);j.ba(k);b.ba(new N(yg,{id:i.item,Key:i.ue,Diff:k}));k=Hc(j,a,i.start);j.ba(k);b.ba(new N(yg,{id:i.item,Key:i.ue,Diff:k}))}}}}b.xa()};function Tl(a,b){var c=this,b=b||{};Ea||(Ea=$(y({Q:"menu-container"})).appendTo("body"));this.parent=Ea;this.ln=this.parent.offset();this.body=this.J=l;this.Ug=a||[];$(this.parent).append(y({Q:"menu"+(b.zf?" dropdown":"")+(b.Tb?" submenu":"")+(b.small?" small":"")+(b.list?" static":""),create:function(a){c.J=a},children:[{Q:"menu-body noScrollBars",create:function(a){c.body=a;a.scroll(function(){var b=c.J.position(),f=c.J.outerHeight(),g=a.get(0).scrollHeight,i=a.get(0).scrollTop,g=g-i-a.outerHeight(), j=$(window).height();g>0&&b.top+f0&&b.top>4&&(f=Math.min(b.top-4,i),c.J.css({top:b.top-f+"px"}),a.css({height:a.height()+f+"px"}),a.get(0).scrollTop-=f)});a.mousedown(function(a){a.stopPropagation()})}}]}));A(this.Ug,function(a){if(a.Tb&&c.J.parent().is(a.Tb.J.parent()))return c.J.insertBefore(a.Tb.J),!1});this.Ca=!1;this.Pe=[];this.In=[];this.Cm=[];this.hide()}function Ul(a){A(a.Ug,function(a){a.Tb&&a.Tb.hide()})}q=Tl.prototype; q.refresh=function(a){function b(b){if(na(b))b=="hr"&&!f&&(e=!0);else if(b.external&&(b={label:b.label,na:b.icon,zc:b.hidden,Ca:b.visible,selected:b.selected,disabled:b.disabled,action:b.action,Fq:b.replacements,Tb:b.submenu}),!b.zc||!b.zc(a))if(!b.Ca||b.Ca(a))if(b.Fq){var i=b.Fq(a);i&&i.length&&c(i)}else{var j=b.selected&&b.selected(),k=b.disabled&&b.disabled(),n=b.action||l,m=!(!n||!na(n)),p=b.value||!j;m&&n.search("{context}")==0&&(n=oe[0]+n.substr(9));!b.disabled&&m&&J.set(n+".disabled",function(a){k= a});var i=[],s;j?i.push({Q:"icon-13 icon-13-check"}):b.na&&i.push({Q:"icon-13 icon-13-"+b.na});b.Tb?i.push({Q:"submenu-arrow",html:"►"}):n&&na(n)&&(s=ih(b.action))&&i.push({Q:"menuitem-accel",html:s});i.push(b.label);f=!1;e&&(d.body.append(y({Q:"menuseparator"})),e=!1);d.body.append(y({Q:"menuitem"+(j?" selected":"")+(k?" disabled":""),create:function(c){k||(c.click(function(){n&&(m?J.set(n,p=="event"?a:p):n(a),d.refresh(a),J.set("gui.closeAllYerStuff"))}).mousedown(function(a){a.stopPropagation()}), b.Tb?(c.mouseover(function(){Ul(d);var a=c.offset();b.Tb.Lf(a.left+c.outerWidth(),a.top-5);b.Tb.show()}),Vl(b.Tb),Wl(b.Tb,function(){c.addClass("hover")}),b.Tb.vr(function(){c.removeClass("hover")})):c.mouseover(function(){Ul(d)}),j&&d.Pe.push({item:b,mb:c}))},children:[{Q:"menuitem-content",children:i}]}))}}function c(a){A(a,function(a){b(a)})}var d=this;this.body.empty();this.value=[];this.Pe=[];var e=!1,f=!0;c(this.Ug)}; q.Lf=function(a,b,c){a<4&&(a=4);a+this.J.outerWidth()>$(window).width()-4&&(a=$(window).width()-4-this.J.outerWidth());if(c){var d=c=l;b<4?(d=b-4,c=this.J.outerHeight()+d,b=4,b+this.J.outerHeight()+d>$(window).height()-4&&(c=$(window).height()-8)):b+this.J.outerHeight()>$(window).height()-4&&(c=$(window).height()-4-b);this.J.css({left:a-this.ln.left+"px",top:b-this.ln.top+"px"});this.body.css({height:c?c-8+"px":"auto"});d&&this.body.scrollTop(-d)}else b<4&&(b=4),b+this.J.outerHeight()>$(window).height()- 4&&(b=$(window).height()-4-this.J.outerHeight()),this.J.css({left:a-this.ln.left+"px",top:b-this.ln.top+"px"})};q.wr=function(a){var b=this;A(a,function(a){b.Ug.push(a)})};q.Ll=function(a){this.Ug.push(a)};q.toggle=function(){this.Ca?this.hide():this.show()};q.show=function(a){this.refresh(a);if(this.body.children().length>0)this.Ca=!0,this.J.show(),A(this.In,function(a){a()})};q.hide=function(){Ul(this);this.Ca=!1;this.J.hide();A(this.Cm,function(a){a()})};q.Th=ea("Ca"); function Vl(a){a.In=[];a.Cm=[]}function Wl(a,b){a.In.push(b)}q.vr=function(a){this.Cm.push(a)};q.destroy=function(){A(this.Ug,function(a){a.Tb&&a.Tb.destroy()});this.In=this.Cm=l;this.J.remove()};t("lucid.view.Menu",Tl);Tl.prototype.addItem=Tl.prototype.Ll;Tl.prototype.addItems=Tl.prototype.wr;Tl.prototype.setPosition=Tl.prototype.Lf;function Xl(a){var b=this;this.K=a;this.dialog=new se(l,{title:"Select/Upload Fonts",$c:!0,open:function(){b.Ki=!0},close:function(){Se();b.Ki=!1},fe:{children:[{css:{"float":"left","border-right":"1px solid #888"},children:[{R:"p",html:S("managefonts.upload.p"),css:{width:"450px"}},{id:"ManageFontsUploadForm",R:"form",attr:{enctype:"multipart/form-data",target:"uploadfontframe",method:"POST",action:"/fonts/add"},children:[{R:"input",Q:"stylebutton",type:"file",attr:{name:"Font"}},{Q:"button",text:"Upload", create:function(a){var d=!1;a.click(function(){d||(d=!0,$("#ManageFontsUploadForm").submit(),$("#ManageFontsUploadForm").find("input").attr("disabled","disabled"),$("#uploadfontframe").one("load",function(){$("#ManageFontsUploadForm").find("input").removeAttr("disabled").removeAttr("value");b.refresh();d=!1}))})}}]}]},{Q:"button",css:{position:"absolute",bottom:"12px",right:"12px"},text:"Save Changes",create:function(a){a.click(function(){b.dialog.close()})}},{Q:"clear"}]}});this.dialog.J.addClass("managefontsdialog").width(743+ Od());$("#uploadfontframe").size()==0&&$("body").append('');J("managefonts.refresh",function(){b.refresh()});J("text.manageFonts",function(){b.open()});b.refresh()} function Yl(a,b){a.ep&&a.ep.abort();a.ep=$.ajax({type:"GET",url:"/fonts/allPublic",success:function(b){try{var d=eval("("+b+")")}catch(e){return}a.vi=[];for(var f in d)a.vi.push({yb:f,ax:d[f]});F(Ue(),function(b,c){c[0].yb in d||a.vi.push({yb:c[0].yb,da:1})});a.vi.sort(function(a,b){if(a.da&&!b.da)return-1;else if(b.da&&!a.da)return 1;return a.yb
").css({"overflow-y":"scroll",height:"620px",width:314+Od()+"px"});A(this.vi,function(c){var d=["font-name"];c.da?d.push("user"):c.ax?d.push("permanent"):c.yb.toLowerCase()in Pe&&d.push("active");b.append(y({Q:d.join(" "),children:[{Q:"font-selected",create:function(a){a.click(function(){if(!a.parent().is(".user,.permanent")){a.parent().toggleClass("active");var b=a.parent().is(".active")?"add":"remove";$.ajax({type:"POST",url:"/fontsUsers/"+b+ "/"+encodeURIComponent(c.yb),success:o()})}})}},{R:"img",src:"/fonts/thumb/small-gray/"+encodeURIComponent(c.yb)}],create:function(b){b.click(function(){Zl(a,c.yb)})}}))});this.content=y({children:[b,{R:"img",id:"tall_preview",css:{position:"absolute",top:"12px",right:"12px"}}]});this.dialog.kd(this.content);if(this.Kq==l&&this.vi)this.Kq=this.vi[0].yb;Zl(this,this.Kq);this.K.Dl.pl(this.content,"/fonts/drop",function(a){return!!a.fileName.match(/\.(ttf|otf|ttc)$/i)},{zy:function(){Se()},error:function(){a.da&& (a.zb?J.set("user.promptRegister"):Tk(S("growl.upload.failed")))}})};Xl.prototype.open=function(){this.kd();this.dialog.open()};Xl.prototype.refresh=function(){var a=this;Yl(this,function(){a.Ki&&a.kd()})};function $l(a,b){var c=this;this.options=b||{};this.$q=this.ar=this.body=l;this.J=$(y({Q:"footer-panel",children:[{Q:"footer-panel-container",children:[{Q:"footer-panel-header inverse",create:function(a){a.click(function(){c.kb||(c.J.hasClass("expanded")?c.collapse():c.expand())})},children:[{R:"span",text:"Title",create:function(a){c.$q=a}},{Q:"icon-13-button",children:[{Q:"icon-13 icon-13-maximize",create:function(a){c.ar=a}}]}]},{Q:"footer-panel-body",create:function(a){c.body=a}}]}]}));a.append(this.J)} q=$l.prototype;q.expand=function(){this.J.addClass("expanded");this.ar.addClass("icon-13-minimize").removeClass("icon-13-maximize");this.options.name&&J.set("footerpanel."+this.options.name+".expand")};q.collapse=function(){this.J.removeClass("expanded");this.ar.addClass("icon-13-maximize").removeClass("icon-13-minimize");this.options.name&&J.set("footerpanel."+this.options.name+".collapse")};function am(a,b){b?a.J.addClass("highlighted"):a.J.removeClass("highlighted")}q.Ju=function(a){this.$q.text(a)}; q.Ju=function(a){this.$q.text(a)};q.pc=function(){this.kb=!1};q.Uc=function(){this.kb=!0};q.hide=function(){this.J.hide()};q.show=function(){this.J.show()};function bm(a,b){var c=this;this.J=l;this.K=b;this.px=this.Iw=this.Hp=l;$(a).append(y({Q:"gui-footer noise-texture",create:function(a){c.J=a},children:[{Q:"footer-left",create:function(a){c.Hp=a}},{Q:"footer-middle",create:function(a){c.Iw=a}},{Q:"footer-right",create:function(a){c.px=a}}]}));this.bi=[]}bm.prototype.$e=function(a){this.bi.push(a);return a};function cm(a,b){var c=this;this.nk=a;this.K=b;this.xp=!1;this.Us=this.input=this.ap=this.Xn=l;this.J=$(y({Q:"chat",children:[{Q:"chat-user-list scrollable",create:function(a){c.Xn=a}},{Q:"chat-feed scrollable",create:function(a){c.ap=a}},{Q:"chat-input",create:function(a){c.input=a},children:[{R:"textarea",Q:"user-select-text",create:function(a){c.Us=a;a.keypress(function(b){b.keyCode==13&&!b.shiftKey&&(b.preventDefault(),b=a.val(),b.search(/\S/)!=-1&&(c.K.$.document.id==l?Tk(S("growl.chat.unsaved")): c.K.$.Va.hi(l,l,"POST","/chats/send","data[Chat][message]="+encodeURIComponent(b)+"&data[Chat][document_id]="+encodeURIComponent(c.K.$.document.id))),a.val(""))}).focus(function(){c.xp=!0;am(c.nk,!1)}).blur(function(){c.xp=!1})}}]}]}));this.nk.body.empty().append(this.J);this.Nr="";this.disabled=!1;J("footerpanel.chat.expand",function(){setTimeout(function(){c.disabled||c.Us.focus()},1)});this.da=l;J("user",function(a){c.da=a},!0);dm(this,[]);J("chat.append",function(a){c.Nr+=a;a=em(c.Nr);c.ap.empty().append(a); c.ap.scrollTop(a.height());c.nk.expand();c.xp||am(c.nk,!0)});J("share.users",function(a){dm(c,a)})} function dm(a,b){a.Xn.empty();var c=0,d,e;b.length==0?a.Xn.append("After you save your document you can see everyone who is working on the document and chat with them."):e=a.da?a.da.id:0;for(var f=0;f<=b.length;f++){var g;if(f==b.length&&d!=l)g=b[d];else if(f
'+g.name+"
")),c++)}a.nk.Ju(S("Chat")+" ("+c+"/"+b.length+ ")")} function em(a){function b(a){for(var d=0;d"+a+"
");a.find(".chatmessage").each(function(){var a=$(this).html(),a=a.replace(/(\b((https?:\/\/)|(www\.))\S+\b)/g,"$1"),a=a.replace(/\n/g,"
").replace(/\*([^\s\*]+?)\*/g,"$1").replace(/\_([^\s\_]+?)\_/g,"$1");$(this).html(a)});b(a.get(0));return a} cm.prototype.enable=function(){this.disabled=!1};cm.prototype.disable=function(){this.disabled=!0};function fm(a,b){var c=this;bm.call(this,a,b);this.kb=!1;this.Op=$(y({Q:"manage-toolbox",children:[{Q:"footer-button",children:[{R:"span",Q:"label",text:"More Shapes",children:[{Q:"icon-13 icon-13-cube"}]}],click:function(){c.kb||J.set("default.manageToolbox")}}]}));this.Hp.append(this.Op);this.Wj=this.$e(new $l(this.Hp,{name:"chat"}));new cm(this.Wj,this.K)}Ca(fm,bm);fm.prototype.eg=function(){this.Wj.hide();this.Op.hide()};fm.prototype.gh=function(){this.Wj.show();this.Op.show()}; fm.prototype.Uc=function(){this.kb=!0;this.J.addClass("disabled");this.Wj.Uc()};fm.prototype.pc=function(){this.kb=!1;this.J.removeClass("disabled");this.Wj.pc()};var gm={"dialog.collaborator.role.heading":{en:"Give collaborator(s) permission to:",zh:"\u6dfb\u52a0\u5408\u4f5c\u8005\uff1a"},"link.generate":{en:"Generate Link",zh:"\u751f\u6210\u94fe\u63a5 "},"Multi-use":{zh:"\u591a\u79cd\u7528\u9014"},"description.multiuse":{en:"The link can be used multiple times",zh:"\u5141\u8bb8\u591a\u6b21\u4f7f\u7528\u94fe\u63a5"},Invite:{zh:"\u9080\u8bf7"},"description.invite":{en:"Any email address will work",zh:"\u5141\u8bb8\u4efb\u4f55\u90ae\u7bb1\u5730\u5740"},"notice.pending":{en:"Send Invitation", zh:"\u53d1\u9001\u9080\u8bf7"},"message.personal.include":{en:"Include a personal message",zh:"\u5305\u542b\u4e2a\u4eba\u77ed\u4fe1"},Optional:{zh:"\u53ef\u9009\u9879"},"or.link.generate":{en:"Or generate a link you can to send to others",zh:"\u6216\u5efa\u7acb\u4e00\u4e2a\u53ef\u4ee5\u53d1\u9001\u4ed6\u4eba\u7684\u94fe\u63a5"},"alert.share.unsaved":{en:"You must save your document before sharing it with others.",zh:"\u5728\u4e0e\u4ed6\u4eba\u5171\u4eab\u4e4b\u524d\uff0c\u8bf7\u60a8\u5148\u4fdd\u5b58\u6587\u4ef6\u3002"}, "alert.email.invite.invalid":{en:"Invalid email address. Enter a valid email address (someone@somewhere.com) and click Send Invitation.",zh:"\u65e0\u6548\u7684\u90ae\u7bb1\u3002\u8bf7\u8f93\u5165\u6709\u6548\u7684\u90ae\u7bb1 \uff08someone@somewhere.com)\u5e76\u70b9\u51fb\u201c\u53d1\u9001\u9080\u8bf7\u201d"},"invitation.sending":{en:"Sending Invitation...",zh:"\u6b63\u5728\u53d1\u9001\u9080\u8bf7..."},"link.generating":{en:"Generating Link...",zh:"\u6b63\u5728\u751f\u6210\u94fe\u63a5..."},"growl.invitation.send.error":{en:"Could not send invitation. If this error persists, please contact LucidChart support.", zh:"\u65e0\u6cd5\u53d1\u9001\u9080\u8bf7\u3002\u5982\u679c\u6b64\u9519\u8bef\u6301\u7eed\u51fa\u73b0\uff0c\u8bf7\u8054\u7cfbLucidChart\u670d\u52a1\u4e2d\u5fc3\u3002"},"description.role.none.invitation":{en:"Cancel invitation",zh:"\u53d6\u6d88\u9080\u8bf7"},"dialog.collaborator.role.edit.heading.prefix":{en:"Set permissions for",zh:"\u8bbe\u7f6e\u8bb8\u53ef\u4e3a"},"dialog.collaborator.role.edit.heading.suffix":{en:"to:",zh:"\u53d1\u9001\u7ed9\uff1a"},"growl.invitation.remove.error":{en:"Could not remove the invitation. If this error persists, please contact LucidChart support.", zh:"\u65e0\u6cd5\u53d6\u6d88\u9080\u8bf7\u3002\u5982\u679c\u6b64\u9519\u8bef\u6301\u7eed\u51fa\u73b0\uff0c\u8bf7\u8054\u7cfbLucidChart\u670d\u52a1\u4e2d\u5fc3\u3002"},"growl.collaborator.role.update.error":{en:"Could not update the collaborator's role. If this error persists, please contact LucidChart support.",zh:"\u65e0\u6cd5\u66f4\u65b0\u5408\u4f5c\u8005\u89d2\u8272\u3002\u5982\u679c\u6b64\u9519\u8bef\u6301\u7eed\u51fa\u73b0\uff0c\u8bf7\u8054\u7cfbLucidChart\u670d\u52a1\u4e2d\u5fc3\u3002"},"growl.collaborator.remove.error":{en:"Could not remove the collaborator. If this error persists, please contact LucidChart support.", zh:"\u65e0\u6cd5\u79fb\u9664\u6b64\u5408\u4f5c\u8005\u3002\u5982\u679c\u6b64\u9519\u8bef\u53ea\u9700\u51fa\u73b0\uff0c\u8bf7\u8054\u7cfbLucidChart\u670d\u52a1\u4e2d\u5fc3\u3002"},"tooltip.share":{en:"Share With Others",zh:"\u4e0e\u4ed6\u4eba\u5171\u4eab"},Chat:{zh:"\u804a\u5929"},Collaborators:{zh:"\u5408\u4f5c\u8005"},"default.collaborationbar.userlist":{en:"When you save this document, you will be able to invite any number of additional users to work with you.",zh:"\u5728\u50a8\u5b58\u6b64\u6587\u4ef6\u65f6\uff0c\u60a8\u53ef\u4ee5\u9080\u8bf7\u4efb\u610f\u6570\u91cf\u7684\u9644\u52a0\u7528\u6237\u6765\u4e0e\u60a8\u5171\u540c\u5408\u4f5c\u3002"}, owner:{zh:"\u6240\u6709\u8005"},editor:{zh:"\u7f16\u8f91\u8005"},viewer:{zh:"\u6d4f\u89c8\u8005"},"dialog.collaborator.invitation.link.heading":{en:"This collaborator must use the following link to accept this invitation:",zh:"\u6b64\u5408\u4f5c\u8005\u5fc5\u987b\u4f7f\u7528\u4ee5\u4e0b\u94fe\u63a5\u6765\u63a5\u53d7\u9080\u8bf7\uff1a"},"description.role.none":{en:"Remove user from document",zh:"\u4ece\u6587\u4ef6\u4e2d\u79fb\u9664\u7528\u6237"},"growl.chat.unsaved":{en:"You must save your document before chatting.", zh:"\u5728\u804a\u5929\u4e4b\u524d\uff0c\u8bf7\u60a8\u4fdd\u5b58\u6587\u4ef6\u3002"},"tooltip.invitemore":{en:"Invite More Collaborators",zh:"\u9080\u8bf7\u66f4\u591a\u5408\u4f5c\u8005"},"option.link.add_edit":{en:"Add/Edit Link",zh:"\u589e\u52a0/\u7f16\u8f91\u94fe\u63a5"},Group:{zh:"\u7ed3\u6210\u5c0f\u7ec4"},Ungroup:{zh:"\u53d6\u6d88\u7f16\u7ec4"},"optionbar.group.link":{en:"Link",zh:"\u94fe\u63a5"},"optionbar.group.arrange":{en:"Arrange",zh:"\u6392\u5217"},"optionbar.group.text":{en:"Text",zh:"\u6587\u672c"}, Bold:{zh:"\u7c97\u4f53"},Italic:{zh:"\u659c\u4f53"},Underline:{zh:"\u4e0b\u5212\u7ebf"},"Strike-out":{zh:"\u5220\u9664"},"Left Align":{zh:"\u5de6\u5bf9\u9f50"},"Center Align":{zh:"\u4e2d\u5bf9\u9f50"},"Right Align":{zh:"\u53f3\u5bf9\u9f50"},"Center Horizontally":{zh:"\u6c34\u5e73\u5c45\u4e2d"},"Top Align":{zh:"\u9876\u5c42\u5bf9\u9f50"},"Center Vertically":{zh:"\u5782\u76f4\u5c45\u4e2d"},"Bottom Align":{zh:"\u5e95\u90e8\u5bf9\u9f50"},"Match Width":{zh:"\u5339\u914d\u5bbd\u5ea6"},"Match Height":{zh:"\u5339\u914d\u9ad8\u5ea6"}, "Distribute Horizontally":{zh:"\u6c34\u5e73\u5747\u5300\u5206\u5e03"},"Distribute Vertically":{zh:"\u5782\u76f4\u5747\u5300\u5206\u5e03"},"optionbar.group.line":{en:"Line",zh:"\u7ebf\u6761"},"optionbar.group.block":{en:"Block",zh:"\u56fe\u5f62\u5757"},"option.block.style.copy":{en:"Copy style from another block",zh:"\u4ece\u5176\u4ed6\u56fe\u5f62\u5757\u590d\u5236\u6837\u5f0f"},"viewport.selectblock.style.copy":{en:"Click to select the block with the style to copy
Escape: Cancel",zh:"\u70b9\u51fb\u9009\u5b9a\u53c2\u8003\u7684\u56fe\u5f62\u5757
Escape: \u53d6\u6d88"}, "fonts.add":{en:"Add more fonts...",zh:"\u6dfb\u52a0\u66f4\u591a\u5b57\u4f53..."},"optionbar.group.fontdefaults":{en:"Font Defaults",zh:"\u9ed8\u8ba4\u5b57\u4f53"},"optionbar.group.blockdefaults":{en:"Block Defaults",zh:"\u9ed8\u8ba4\u56fe\u5f62\u5feb"},"optionbar.group.linedefaults":{en:"Line Defaults",zh:"\u9ed8\u8ba4\u7ebf\u6761"},"optionbar.group.theme":{en:"Theme",zh:"\u4e3b\u9898"},"option.linewidth.hairline":{en:"Hairline",zh:"\u6781\u7ec6\u7ebf"},"option.linewidth.thin":{en:"Thin",zh:"\u7ec6\u7ebf"}, "option.linewidth.medium":{en:"Medium",zh:"\u4e2d\u7b49\u7ebf"},"option.linewidth.thick":{en:"Thick",zh:"\u7c97\u7ebf"},"option.linestyle.solid":{en:"Solid",zh:"\u5b9e\u73b0"},"option.linestyle.dashed":{en:"Dashed",zh:"\u865a\u7ebf"},"option.linestyle.dotted":{en:"Dotted",zh:"\u70b9\u7ebf"},"option.lineshape.curved":{en:"Curved",zh:"\u5f2f\u89d2\u7ebf"},"option.lineshape.elbow":{en:"Elbow",zh:"\u76f4\u89d2\u7ebf"},"option.lineshape.direct":{en:"Direct",zh:"\u76f4\u89d2\u76f4\u7ebf"},"option.cornerstyle.square":{en:"Square Corners", zh:"\u76f4\u89d2"},"option.cornerstyle.soft":{en:"Soft Corners",zh:"\u5706\u89d2"},"option.cornerstyle.round":{en:"Round Corners",zh:"\u5f2f\u89d2"},"option.gradient.none":{en:"No Gradient",zh:"\u65e0\u6e10\u53d8"},"option.gradient.soft":{en:"Soft Gradient",zh:"\u8f7b\u5fae\u6e10\u53d8"},"option.gradient.strong":{en:"Strong Gradient",zh:"\u5f3a\u70c8\u6e10\u53d8"},"option.lineshape.edit":{en:"Edit Line Shape",zh:"\u7f16\u8f91\u7ebf\u6761\u5f62\u72b6"},"option.arrowstyle.none":{en:"None",zh:"\u65e0\u7bad\u5934"}, "option.arrowstyle.solid":{en:"Arrow",zh:"\u7bad\u5934"},"option.arrowstyle.hollow":{en:"Hollow Arrow",zh:"\u7a7a\u5fc3\u7bad\u5934"},"option.arrowstyle.open":{en:"Open Arrow",zh:"\u6307\u5411\u7bad\u5934"},"option.line.style.copy":{en:"Copy style from another line",zh:"\u4ece\u5176\u4ed6\u7ebf\u6761\u590d\u5236\u6837\u5f0f"},"viewport.selectline.style.copy":{en:"Click to select the line with the style to copy
Escape: Cancel",zh:"\u70b9\u51fb\u9009\u5b9a\u8981\u53c2\u8003\u7684\u7ebf\u6761
Escape: \u53d6\u6d88"}, "legend.page.size":{en:"Page Size",zh:"\u9875\u9762\u5927\u5c0f"},Custom:{zh:"\u81ea\u5b9a\u4e49"},"orientation.portrait":{en:"Portrait",zh:"\u7ad6\u5411\u9875\u9762"},"orientation.landscape":{en:"Landscape",zh:"\u6a2a\u5411\u9875\u9762"},"legend.page.orientation":{en:"Orientation",zh:"\u65b9\u5411"},"legend.page.margin":{en:"Margin",zh:"\u8fb9\u7f18"},"optionbar.group.page":{en:"Page",zh:"\u9875\u9762"},"option.color.select":{en:"Select a color",zh:"\u9009\u62e9\u4e00\u4e2a\u989c\u8272"},"alert.demo.iebad":{en:'

You are using Internet Explorer, which is not capable of running these interactive demonstrations.

\n

There are other free alternatives to Internet Explorer that can improve your LucidChart experience: Google Chrome, FireFox, or Safari.', zh:'

\u60a8\u6b63\u5728\u4f7f\u7528\u5fae\u8f6fIE\u6d4f\u89c8\u5668\uff0c\u6b64\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u4ea4\u4e92\u5f0f\u8fd0\u884c\u3002

\u8fd8\u6709\u5176\u4ed6\u514d\u8d39\u65b9\u6cd5\u6765\u5e2e\u52a9\u63d0\u5347\u60a8\u7684\u4e0a\u7f51\u7ecf\u5386\uff1a\u8c37\u6b4c\u6d4f\u89c8\u5668, \u706b\u72d0\u6d4f\u89c8\u5668, \u6216\u8005 \u82f9\u679c\u6d4f\u89c8\u5668.'}, "button.OK":{en:"OK",zh:"\u786e\u5b9a"},"button.cancel":{en:"Cancel",zh:"\u53d6\u6d88"},"demo.simple.newpage":{en:"First, we'll add a new page to your document, so we can start with a clean slate.",zh:"\u9996\u5148\uff0c\u6211\u4eec\u4f1a\u5728\u4f60\u7684\u6587\u4ef6\u4e0a\u65b0\u6dfb\u4e00\u4e2a\u9875\u9762\uff0c\u4f7f\u6211\u4eec\u53ef\u4ee5\u518d\u7a7a\u767d\u9875\u9762\u4e0a\u5f00\u59cb\u3002"},"demo.simple.dragshape":{en:"Now we drag a shape onto the page from the toolbox.",zh:"\u73b0\u5728\u6211\u4eec\u4ece\u5de5\u5177\u7bb1\u62d6\u52a8\u4e00\u4e2a\u56fe\u5f62\u5230\u9875\u9762\u4e0a\u3002"}, "demo.simple.makeline":{en:"Click and drag from the edge of any shape to make a line. You'll be prompted for what shape to put at the other end of the line.",zh:"\u5728\u4efb\u610f\u56fe\u5f62\u8fb9\u7f18\u70b9\u51fb\u5e76\u62d6\u52a8\u6765\u753b\u7ebf\u6761\u3002\u65b0\u7684\u5bf9\u8bdd\u6846\u4f1a\u8df3\u51fa\u4f9b\u60a8\u9009\u62e9\u5728\u7ebf\u6761\u53e6\u4e00\u7aef\u7684\u56fe\u5f62\u3002"},"demo.simple.restyle":{en:"You can restyle your flow chart easily using the toolbar. First, select the objects you'd like to restyle.", zh:"\u901a\u8fc7\u4f7f\u7528\u5de5\u5177\u7bb1\uff0c\u60a8\u53ef\u4ee5\u91cd\u65b0\u8bbe\u8ba1\u60a8\u7684\u6d41\u7a0b\u8868\u3002\u9996\u5148\uff0c\u9009\u62e9\u60a8\u8981\u91cd\u65b0\u8bbe\u8ba1\u7684\u5bf9\u8c61\u3002"},"demo.simple.thatsit":{en:"That's all it takes to draw a professional flow chart in LucidChart!",zh:"\u8fd9\u5c31\u662f\u60a8\u9700\u8981\u7528LucidChart\u5236\u4f5c\u4e13\u4e1a\u6d41\u7a0b\u56fe\u7684\u5168\u90e8\u8fc7\u7a0b\u3002"},"demo.button.finish":{en:"Finish",zh:"\u7ed3\u675f"}, "demo.simpleuml.dragshape":{en:"Let's describe a product's manufacturer and retailer. Start by dragging a simple class block onto the page.",zh:"\u8ba9\u6211\u4eec\u4ecb\u7ecd\u4e00\u4e2a\u4ea7\u54c1\u7684\u5236\u4f5c\u5546\u548c\u96f6\u552e\u5546\u3002\u901a\u8fc7\u62d6\u52a8\u4e00\u4e2a\u7b80\u5355\u7684\u7b49\u7ea7\u56fe\u5f62\u5757\u5230\u9875\u9762\u4e0a\u6765\u5f00\u59cb\u3002"},"demo.simpleuml.makeline":{en:"Click and drag from the edge of the class to create an association with a new class.", zh:"\u70b9\u51fb\u5e76\u62d6\u52a8\u7b49\u7ea7\u7684\u8fb9\u7f18\u6765\u521b\u5efa\u4e00\u4e2a\u4e0e\u65b0\u7b49\u7ea7\u7684\u8054\u7cfb\u3002"},"demo.simpleuml.associations":{en:"Now let's have a look at the associations. One manufacturer will produce one or more products, and one retailer will sell one or more products.",zh:"\u73b0\u5728\u8ba9\u6211\u4eec\u601d\u8003\u4e00\u4e0b\u8fd9\u4e9b\u8054\u7cfb\u3002\u5236\u9020\u5546\u5236\u9020\u4e00\u4e2a\u6216\u591a\u4e2a\u4ea7\u54c1\uff0c\u7136\u540e\u96f6\u552e\u5546\u51fa\u552e\u4e00\u4e2a\u6216\u591a\u4e2a\u4ea7\u54c1\u3002"}, "demo.simpleuml.associations2":{en:"Also, each brand will have at least one product, but each product may have a brand or not.",zh:"\u8fd8\u6709\uff0c\u6bcf\u4e00\u4e2a\u54c1\u724c\u4f1a\u6709\u81f3\u5c11\u4e00\u4e2a\u5236\u9020\u5546\uff0c\u4f46\u662f\u6bcf\u4e00\u4e2a\u4ea7\u54c1\u53ef\u4ee5\u6709\u4e5f\u53ef\u4ee5\ufffd\ufffd\ufffd\u6709\u54c1\u724c\u3002"},"demo.simpleuml.label":{en:"When there's ambiguity, it can be helpful to label an association with a verb.",zh:"\u5f53\u6a21\u7cca\u7684\u65f6\u5019\uff0c\u7528\u4e00\u4e2a\u52a8\u8bcd\u6807\u8bb0\u4e00\u4e2a\u8054\u7cfb\u4f1a\u5f88\u6709\u5e2e\u52a9\u3002"}, "demo.simpleuml.associations3":{en:"There's a relationship between a retailer and a manufacturer, as well. Both are specializations of a company. Let's add that to our diagram.",zh:"\u800c\u4e14\uff0c\u96f6\u552e\u5546\u548c\u5236\u9020\u5546\u4e4b\u95f4\u4e5f\u6709\u533a\u522b\u3002\u4ed6\u4eec\u4e24\u8005\u90fd\u662f\u4e00\u4e2a\u9886\u57df\u7684\u4e13\u5bb6\u3002\u73b0\u5728\u8ba9\u6211\u4eec\u628a\u8fd9\u4e2a\u6dfb\u52a0\u5230\u56fe\u8868\u4e2d\u3002"},"demo.simpleuml.thatsall":{en:"That's all it takes to draw a simple class diagram in LucidChart!", zh:"\u8fd9\u5c31\u662f\u60a8\u9700\u8981\u7528LucidChart\u5236\u4f5c\u7b80\u5355\u7684\u7b49\u7ea7\u56fe\u8868\u7684\u5168\u90e8\u8fc7\u7a0b\u3002"},"title.color.select":{en:"Select a Color",zh:"\u9009\u62e9\u4e00\u4e2a\ufffd\ufffd\ufffd\u8272"},"historypanel.default":{en:"Once you save your document, this panel will show a history of who saved changes to this document, and when.",zh:"\u5f53\u60a8\u4fdd\u5b58\u60a8\u7684\u6587\u4ef6\u4e4b\u540e\uff0c\u8fd9\u4e2a\u4eea\u8868\u677f\u5c06\u4f1a\u663e\u793a\u4fee\u6539\u8fc7\u8fd9\u4e2a\u6587\u4ef6\u7684\u4eba\u548c\u65f6\u95f4\u3002"}, "historypanel.button.revert":{en:"Revert to this revision",zh:"\u56de\u590d\u5230\u6b64\u7248\u672c"},"historypanel.button.new":{en:"Create new document from this revision",zh:"\u4ee5\u6b64\u7248\u672c\u65b0\u5efa\u6587\u4ef6"},"historypanel.title":{en:"History",zh:"\u5386\u53f2"},"historypanel.alert.new.error":{en:"There was an error creating the new document. Please try again.",zh:"\u65b0\u5efa\u6587\u4ef6\u51fa\u73b0\u9519\u8bef\u3002\u8bf7\u518d\u8bd5\u4e00\u6b21\u3002"},"historypanel.ineligible.prefix":{en:"Revision history is only available for Professional and Team accounts. Please consider", zh:"\u53ea\u6709\u4e13\u4e1a\u8d26\u6237\u548c\u56e2\u961f\u8d26\u6237\u624d\u6709\u4fee\u6b63\u5386\u53f2\u7684\u529f\u80fd\u3002\u8bf7\u8003\u8651"},"historypanel.ineligible.upgradelink":{en:"upgrading",zh:"\u5347\u7ea7"},"historypanel.ineligible.suffix":{en:".",zh:"-"},"historypanel.button.page.edited":{en:"Page Edited",zh:"\u9875\u9762\u5df2\u4fee\u6539"},"historypanel.button.page.deleted":{en:"Page Deleted",zh:"\u9875\u9762\u5df2\u5220\u9664"},"historypanel.button.page.created":{en:"Page Created", zh:"\u9875\u9762\u5df2\u65b0\u5efa"},"historypanel.link.changes.show":{en:"Show me what was changed",zh:"\u663e\u793a\u4fee\u6539\u7684\u5185\u5bb9"},"navpanel.button.zoomin":{en:"Zoom In (Ctrl+Up)",zh:"\u653e\u5927"},"navpanel.button.zoomout":{en:"Zoom Out (Ctrl+Down)",zh:"\u7f29\u5c0f"},"navpanel.alert.zoom.invalid":{en:"Invalid zoom value. Please select a value from 1-400.",zh:"\u65e0\u6548\u7684\u7f29\u653e\u503c\u3002\u8bf7\u57281-400\u4e2d\u9009\u62e9\u3002"},"publishpanel.default":{en:"Click below to publish all or part of this document as a web page, PDF, or image.", zh:"\u70b9\u51fb\u4e0b\u65b9\u4ee5\u7f51\u9875\uff0cPDF\uff0c\u6216\u56fe\u50cf\u6765\u51fa\u7248\u5168\u90e8\u6216\u90e8\u5206\u6587\u4ef6\u3002"},"tooltip.facebook.share":{en:"Share on Facebook",zh:"\u5206\ufffd\ufffd\ufffd\u5230Facebook"},"tooltip.twitter.share":{en:"Share on Twitter",zh:"\u5206\u4eab\u5230Twitter"},"tooltip.community.share":{en:"Share example with community",zh:"\u4e0e\u793e\u533a\u5206\u4eab"},Delete:{zh:"\u5220\u9664"},"tooltip.url.show":{en:"Show link address",zh:"\u663e\u793a\u94fe\u63a5\u5730\u5740"}, "confirm.document.unpublish":{en:"Are you sure you want to un-publish this document?",zh:"\u60a8\u786e\u5b9a\u8981\u53d6\u6d88\u53d1\u5e03\u6b64\u6587\u4ef6\u5417\uff1f"},"confirm.document.links.break":{en:"This will break any outside links to this document.",zh:"\u8fd9\u5c06\u4f1a\u7ec8\u65ad\u5916\u90e8\u7528\u6237\u8fdb\u5165\u6b64\u6587\u4ef6"},"confirm.segment.unpublish":{en:"Are you sure you want to un-publish this part of your document?",zh:"\u60a8\u786e\u5b9a\u8981\u53d6\u6d88\u53d1\u5e03\u8fd9\u90e8\u5206\u5417\uff1f"}, "confirm.file.links.break":{en:"This will permanently break any outside links to this file.",zh:"\u8fd9\u5c06\u4f1a\u6c38\u4e45\u7ec8\u65ad\u6240\u6709\u5916\u90e8\u7528\u6237\u8fdb\u5165\u6b64\u6587\u6863"},"confirm.image.links.break":{en:"This will permanently break any outside links to this image.",zh:"\u8fd9\u5c06\u4f1a\u6c38\u4e45\u7ec8\u65ad\u5916\u90e8\u7528\u6237\u8fdb\u5165\u6b64\u56fe\u7247"},"statepanel.button.start":{en:"Start Demo",zh:"\u5f00\u59cb\u6f14\u793a"},"navpanel.title":{en:"Navigator", zh:"\u5bfc\u822a\u5668"},"palettepanel.title":{en:"Color Palette",zh:"\u8c03\u8272\u677f"},"publishpanel.title":{en:"Publish",zh:"\u53d1\u5e03"},"statepanel.title":{en:"Demo Controls",zh:"\u6f14\u793a\u63a7\u5236"},"statepanel.state":{en:"State",zh:"\u72b6\u6001"},"statepanel.prompt.new":{en:"New state name:",zh:"\u65b0\u72b6\u6001\u540d\u79f0\uff1a"},"statepanel.confirm.delete":{en:"

Are you sure you want to delete this state?

This will also delete all objects that are part of the state.

", zh:"

\u60a8\u786e\u5b9a\u8981\u5220\u9664\u6b64\u72b6\u6001\u5417\uff1f

\u8fd9\u4e5f\u4f1a\u5220\u9664\u6b64\u72b6\u6001\u4e0b\u7684\u6240\u6709\u5bf9\u8c61\u3002

"},"statepanel.prompt.rename":{en:"Enter a new name for the state:",zh:"\u4e3a\u6b64\u72b6\u6001\u8f93\u5165\u65b0\u540d\u79f0\uff1a"},"statepanel.state.add":{en:"Add new state",zh:"\u65b0\u5efa\u72b6\u6001"},"statepanel.growl.exit":{en:"Press Esc to exit presentation mode.",zh:"\u8bf7\u6309Esc\u6765\u9000\u51fa\u6f14\u793a\u6a21\u5f0f\u3002"}, Twitter:{zh:"Twitter"},"gui.alert.plugins.restricted":{en:'This document uses functionality that is only available to Professional and Team accounts, so you are not able to edit this document. Please consider upgrading.',zh:"\u6b64\u6587\u4ef6\u9700\u8981\u4f7f\u7528\u53ea\u6709\u4e13\u4e1a\u8d26\u6237\u548c\u56e2\u961f\u8d26\u6237\u624d\u80fd\u4f7f\u7528\u7684\u529f\u80fd\uff0c\u6240\u4ee5\u60a8\u73b0\u5728\u65e0\u6cd5\u7f16\u8f91\u6b64\u6587\u4ef6\u3002\u8bf7\u8003\u8651\u5347\u7ea7\u3002"}, "gui.growl.richtext.new":{en:"NEW! Rich text editor.",zh:"\u65b0\uff01\u4e30\u5bcc\u7684"},"gui.growl.signup.save":{en:"Sign up free to save this document",zh:"\u514d\u8d39\u6ce8\u518c\u6765\u4fdd\u5b58\u6b64\u6587\u4ef6"},"gui.growl.try.free":{en:"Try LucidChart Free!",zh:"\u514d\u8d39\u8bd5\u7528LucidChart\uff01"},"gui.growl.try.paid.free":{en:"Try paid features free!",zh:"\u514d\u8d39\u8bd5\u7528\u4ed8\u8d39\u529f\u80fd\uff01"},"gui.growl.trial.remain.prefix":{en:"TRIAL:",zh:"\u8bd5\u7528\u7248\uff1a"}, "gui.growl.trial.remain.suffix":{en:"days left. Pay here!",zh:"\u8fd8\u5269\u3002\u5728\u6b64\u652f\u4ed8!"},"gui.growl.upgrade":{en:"Upgrade your account!",zh:"\u5347\u7ea7\u60a8\u7684\u8d26\u6237\uff01"},"gui.growl.runfaster":{en:"Run LucidChart 20x Faster!",zh:"\u8ba9LucidChart\u63d0\u9ad820\u500d\u8fd0\u884c\uff01"},"gui.alert.ie.alternatives":{en:'

You are using Internet Explorer, which is not capable of running new web applications like LucidChart quickly.

\n

There are also other free alternatives to Internet Explorer that can make your whole Internet experience better: Google Chrome, FireFox, or Safari.', zh:'

\u60a8\u6b63\u5728\u4f7f\u7528IE\u6d4f\u89c8\u5668\uff0c\u6b64\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u5feb\u901f\u7684\u8fd0\u884c\u7c7b\u4f3cLucidChart\u7684\u7f51\u7edc\u5e94\u7528\u8f6f\u4ef6\u3002

\u8fd8\u6709\u5176\u4ed6\u514d\u8d39\u65b9\u6cd5\u6765\u5e2e\u52a9\u63d0\u5347\u60a8\u7684\u4e0a\u7f51\u7ecf\u5386\uff1a\u8c37\u6b4c\u6d4f\u89c8\u5668, \u706b\u72d0\u6d4f\u89c8\u5668, \u6216\u8005 \u82f9\u679c\u6d4f\u89c8\u5668.'}, "optionbar.group.style":{en:"Style",zh:"\u6837\u5f0f"},"optionbar.group.color":{en:"Color",zh:"\u989c\u8272"},"overlay.line.edit.instructions":{en:"Enter: Save Changes
Escape: Cancel Changes
Double-Click: Remove/Reset Point",zh:"Enter: \u4fdd\u5b58\u66f4\u6539
Escape: \u53d6\u6d88\u66f4\u6539
\u53cc\u51fb: \u79fb\u9664/\u91cd\u8bbe"},Editing:{zh:"\u7f16\u8f91\u4e2d"},"title.link.page.select":{en:"Select a page to link to:",zh:"\u9009\u62e9\u4e00\u4e2a\u9875\u9762\u6765\u94fe\u63a5\u5230\uff1a"}, "label.page.create":{en:"Create New Page:",zh:"\u65b0\u5efa\u9875\u9762\uff1a"},"page.new.title.default":{en:"New Page Title",zh:"\u65b0\u9875\u9762\u540d\u79f0\uff1a"},"label.link.external":{en:"External Link:",zh:"\u5916\u90e8\u94fe\u63a5\uff1a"},"label.link.none":{en:"No link",zh:"\u65e0\u94fe\u63a5"},"tooltip.page.resize.x":{en:"Resize Page Horizontally",zh:"\u91cd\u65b0\u6c34\u5e73\u8bbe\u7f6e\u9875\u9762\u5927\u5c0f"},"tooltip.page.resize.y":{en:"Resize Page Vertically",zh:"\u91cd\u65b0\u5782\u76f4\u8bbe\u7f6e\u9875\u9762\u5927\u5c0f"}, "tooltip.page.resize":{en:"Resize Page",zh:"\u91cd\u65b0\u8bbe\u7f6e\u9875\u9762\u5927\u5c0f"},"vector.alert.warning":{en:"

WARNING: Dragons Ahead!

This feature allows you to draw your own shapes, and edit existing shapes. This is in early beta form, so be warned that things may not work exactly as you hope!

Press Escape at any time to back out of this shape-editing mode.

",zh:"

\u8b66\u544a\uff1a

\u6b64\u529f\u80fd\u5141\u8bb8\u60a8\u753b\u51fa\u60a8\u81ea\u5df1\u7684\u56fe\u5f62\uff0c\u5e76\u4e14\u4fee\u6539\u5df2\u5b58\u5728\u7684\u56fe\u5f62\u3002\u6b64\u529f\u80fd\u5728 \u65e9\u671fBeta \u7248\u672c\uff0c\u8bf7\u6ce8\u610f\u6b64\u529f\u80fd\u53ef\u80fd\u65e0\u6cd5\u8fbe\u5230\u60a8\u9884\u671f\u7684\u6548\u679c\uff01

\u8bf7\u968f\u65f6\u6309 Escape \u6765\u9000\u51fa\u56fe\u5f62\u4fee\u6539\u6a21\u5f0f\u3002

"}, "option.shape.stroke":{en:"Stroke shape",zh:"\u56fe\u5f62\u63cf\u8fb9"},"option.shape.fill":{en:"Fill shape",zh:"\u56fe\u5f62\u586b\u5145"},"option.color.fill":{en:"Fill Color",zh:"\u989c\u8272\u586b\u5145"},"option.line.color":{en:"Line Color",zh:"\u7ebf\u6761\u989c\u8272"},"option.vector.open":{en:"Disconnect points",zh:"\u53d6\u6d88\u8fde\u63a5\u70b9"},"option.vector.line":{en:"Make straight line",zh:"\u753b\u76f4\u7ebf"},"option.vector.curve":{en:"Make curve",zh:"\u753b\u66f2\u7ebf"},"option.vector.join":{en:"Combine points", zh:"\u5408\u5e76\u70b9"},"option.vector.break":{en:"Split point",zh:"\u5206\u5f00\u70b9"},"option.vector.shape.add":{en:"Freehand draw shape",zh:"\u5f92\u624b\u753b\u56fe\u5f62"},"option.vector.text.add":{en:"Add text",zh:"\u65b0\u589e\u6587\u5b57"},"option.vector.linkpoint.add":{en:"Add link point",zh:"\u65b0\u589e\u94fe\u63a5\u70b9"},"viewport.menu.text.add":{en:"Add Text (Double-Click)",zh:"\u6dfb\u52a0\u6587\u5b57\uff08\u53cc\u51fb\uff09"},"menu.copy":{en:"Copy",zh:"\u590d\u5236"},"menu.cut":{en:"Cut", zh:"\u526a\u5207"},"menu.paste":{en:"Paste",zh:"\u7c98\u8d34"},"menu.arrange.front":{en:"Bring To Front",zh:"\u56fe\u5c42\u5411\u524d"},"menu.arrange.back":{en:"Send To Back",zh:"\u56fe\u5c42\u5411\u540e"},"menu.link.change":{en:"Change Link",zh:"\u66f4\u6539\u94fe\u63a5"},"menu.link.text.edit":{en:"Edit Text",zh:"\u7f16\u8f91\u6587\u5b57"},"menu.line.shape.reset":{en:"Reset Default Shape",zh:"\u91cd\u7f6e\u9ed8\u8ba4\u5f62\u72b6"},"menu.line.draw":{en:"Draw Line (L)",zh:"\u753b\u7ebf"},"option.text.color":{en:"Text Color", zh:"\u6587\u5b57\u989c\u8272"},"option.formatting.remove":{en:"Remove Formatting",zh:"\u5220\u9664\u683c\u5f0f"},"option.input.alt":{en:"Alternative input method (for Eastern IMEs) (Ctrl+Space)",zh:"\u8f6c\u6362\u8f93\u5165\u6cd5\uff08for eastern IME\uff09\uff08\u6309Ctrl+\u7a7a\u683c\uff09"},"label.page.title":{en:"Page Title:",zh:"\u9875\u9762\u6807\u9898\uff1a"},"legend.content.size":{en:"Content Size",zh:"\u5185\u5bb9\u5927\u5c0f "},"legend.grid.size":{en:"Grid Size",zh:"\u7f51\u683c\u5c3a\u5bf8"}, "label.grid.snap.enable":{en:"Enable snap to grid",zh:"\u542f\u7528\u5bf9\u9f50\u5230\u7f51\u683c"},"tooltip.page.new":{en:"New Page",zh:"\u65b0\u9875\u9762 "},"menu.page.delete":{en:"Delete Page",zh:"\u79fb\u9664\u9875\u9762"},"menu.page.settings":{en:"Page Settings",zh:"\u9875\u9762\u8bbe\u5b9a"},"menu.page.duplicate":{en:"Duplicate Page",zh:"\u91cd\u590d\u9875\u9762"},"alert.page.name.blank":{en:"Please enter a name for your page.",zh:"\u8bf7\u8f93\u5165\u4f60\u7684\u9875\u9762\u540d"},"title.page.create":{en:"Create New Page", zh:"\u521b\u5efa\u65b0\u9875\u9762 "},"Untitled Page":{zh:"\u65e0\u6807\u9898\u9875"},"confirm.p.revision.viewing":{en:"You are currently viewing a previous revision of this document.",zh:"\u60a8\u6b63\u5728\u6d4f\u89c8\u8be5\u6587\u4ef6\u7684\u4ee5\u524d\u7248\u672c\u3002"},"confirm.p.x.hist.page.create":{en:"Exit history mode and create new page?",zh:"\u9000\u51fa\u5386\u53f2\u6a21\u5f0f\u5e76\u521b\u5efa\u65b0\u9875\u9762\uff1f"},"alert.p.readonly":{en:"You are in read-only mode.",zh:"\u4f60\u6b63\u5728\u4f7f\u7528\u53ea\u8bfb\u6a21\u5f0f"}, "alert.p.page.create.cant":{en:"A new page cannot be created.",zh:"\u65b0\u9875\u9762\u65e0\u6cd5\u88ab\u521b\u5efa\u3002"},"confirm.p.x.hist.page.edit":{en:"Exit history mode and edit page properties?",zh:"\u9000\u51fa\u5386\u53f2\u6a21\u5f0f\u5e76\u7f16\u8f91\u9875\u9762\u5c5e\u6027\uff1f"},"alert.p.page.edit.cant":{en:"Page properties cannot be changed.",zh:"\u9875\u9762\u5c5e\u6027\u4e0d\u80fd\u6539\u53d8\u3002"},"confirm.page.delete":{en:"Are you sure you want to delete this page?",zh:"\u4f60\u786e\u5b9a\u8981\u5220\u9664\u6b64\u9875\u5417\uff1f"}, "alert.page.last.delete":{en:"You cannot delete the last page.",zh:"\u4f60\u4e0d\u80fd\u5220\u9664\u6700\u540e\u9875"},"document.rename":{en:"Rename Document",zh:"\u91cd\u547d\u540d\u6587\u4ef6"},"callout.community.heading":{en:"Join the Community!",zh:"\u52a0\u5165\u793e\u533a\uff01"},"callout.community.find":{en:"Find",zh:"\u641c\u7d22"},"callout.community.share":{en:"Share",zh:"\u5171\u4eab"},"callout.community.shared":{en:"Shared",zh:"\u5171\u4eab"},"callout.community.p.find":{en:"See example diagrams created by other members of the LucidChart community.", zh:"\u53c2\u8003\u7531LucidChart\u793e\u533a\u5176\u4ed6\u6210\u5458\u6240\u521b\u5efa\u7684\u793a\u4f8b\u56fe\u3002"},"callout.community.p.share":{en:"Share this diagram as an example for others in the LucidChart community to see and use.",zh:"\u5206\u4eab\u6b64\u56fe\u8868\u662f\u5728LucidChart\u793e\u533a\uff0c\u5c06\u4f5c\u4e3a\u4f9b\u5176\u4ed6\u4eba\u53c2\u8003\u548c\u4f7f\u7528\u7684\u4f8b\u5b50"},"callout.community.p.shared":{en:"This diagram is shared as an example for others in the LucidChart community to see and use.", zh:"\u6b64\u56fe\u8868\u662f\u4f5c\u4e3a\u4f9b\u5176\u4ed6\u4eba\u53c2\u8003\u548c\u4f7f\u7528\u7684\u4f8b\u5b50\u800c\u5171\u4eab\u5728LucidChart\u793e\u533a\u7684"},"callout.community.button.browse":{en:"Browse Now",zh:"\u7acb\u5373\u6d4f\u89c8"},"callout.community.button.share":{en:"Share Now",zh:"\u7acb\u5373\u5171\u4eab"},"callout.community.button.unshare":{en:"Un-Share Now",zh:"\u7acb\u5373\u53d6\u6d88\u5171\u4eab"},"menu.page.new":{en:"New Page...",zh:"\u65b0\u9875\u9762"},"menu.saveas":{en:"Save As...", zh:"\u53e6\u5b58\u4e3a ..."},"menu.template.save":{en:"Save Template...",zh:"\u4fdd\u5b58\u6a21\u7248"},"menu.print":{en:"Print...",zh:"\u6253\u5370 "},"menu.publish":{en:"Publish...",zh:"\u53d1\u5e03"},"menu.undo":{en:"Undo",zh:"\u64a4\u9500"},"menu.redo":{en:"Redo",zh:"\u91cd\u505a"},"menu.close":{en:"Close",zh:"\u5173\u95ed"},"menu.preferences":{en:"Preferences",zh:"\u504f\u597d"},"menu.line.draw.alt":{en:"Draw Line",zh:"\u753b\u7ebf"},"menu.selection.group":{en:"Group Selection",zh:"\u5206\u7ec4\u9009\u62e9"}, "menu.selection.ungroup":{en:"Ungroup Selection",zh:"\u53d6\u6d88\u5206\u7ec4\u9009\u62e9"},"menu.benchmark.performance":{en:"Benchmark Performance",zh:"\u57fa\u51c6\u6027\u80fd "},"menu.forums":{en:"Discussion/Help Forums",zh:"\u8ba8\u8bba/\u5e2e\u52a9 \u8bba\u575b "},"menu.tutorials":{en:"Tutorials",zh:"\u6559\u7a0b "},"menu.hotkey.ref":{en:"Hotkey Reference",zh:"\u70ed\u952e\u53c2\u8003"},"menu.feedback.send":{en:"Send Feedback",zh:"\u610f\u89c1\u56de\u9988 "},"dialog.share.org.tab":{en:"Team Sharing", zh:"\u56e2\u961f\u5206\u4eab"},"dialog.share.invite.tab":{en:"Sharing",zh:"\u9080\u8bf7\u5408\u4f5c\u8005"},"menu.saveas.description":{en:"Save as (copy)",zh:"\u53e6\u5b58\u4e3a\uff08\u526f\u672c\uff09"},"menu.template.save.description":{en:"Save document as a template",zh:"\u53e6\u5b58\u4e3a\u6a21\u7248\u6587\u4ef6"},"menu.print.description":{en:"Print to PDF or image",zh:"\u4ee5pdf \u6216 \u56fe\u50cf\u7684\u683c\u5f0f\u6253\u5370"},"menu.publish.description":{en:"Publish online",zh:"\u5728\u7ebf\u53d1\u5e03"}, "dialog.hotkeyref.title":{en:"Hotkey Reference",zh:"\u70ed\u952e\u53c2\u8003"},"dialog.hotkeyref.heading.editor":{en:"Editor",zh:"\u7f16\u8f91\u8005"},"dialog.hotkeyref.heading.fileops":{en:"File Operations",zh:"\u6587\u4ef6\u64cd\u4f5c"},Up:{zh:"\u5411\u4e0a"},Down:{zh:"\u5411\u4e0b"},"Arrow Keys":{zh:"\u7bad\u5934\u952e"},"dialog.hotkeyref.arrowkeys.description":{en:"Move selected items up, down, left, or right",zh:"\u5c06\u9009\u5b9a\u7684\u9879\u76ee\u5411\u4e0a\uff0c\u4e0b\uff0c\u5de6\uff0c\u6216\u53f3\u79fb\u52a8"}, "dialog.hotkeyref.alt.description":{en:"Hold down alt, click and drag to pan around the page",zh:"\u6309\u4f4fAlt\u952e\uff0c\u5355\u51fb\u5e76\u62d6\u52a8\u6765\u5e73\u79fb\u9875\u9762"},"dialog.hotkeyref.ctrl.description":{en:"Hold down ctrl, click on an object to add or remove it from the selection",zh:"\u6309\u4f4fCtrl\u952e\uff0c\u5355\u51fb\u8be5\u5bf9\u8c61\u6765\u6dfb\u52a0\u6216\u5220\u9664\u9009\u62e9"},"dialog.hotkeyref.zoom.description":{en:"Zoom in or out",zh:"\u653e\u5927\u6216\u7f29\u5c0f "}, "dialog.hotkeyref.selectall.description":{en:"Select all",zh:"\u9009\u62e9\u6240\u6709"},"dialog.hotkeyref.unselectall.description":{en:"Unselect all",zh:"\u53d6\u6d88\u6240\u6709\u9009\u62e9"},"dialog.hotkeyref.drawline.description":{en:"Draw free-standing line",zh:"\u7ed8\u5236\u7ebf\u6761"},"growl.feedback.sent":{en:"Feedback sent.",zh:"\u53d1\u9001\u53cd\u9988"},"dialog.publish.description":{en:"

Publishing allows you to share all or part of your document with anyone by giving them a link.

\n

These links will always point to the latest saved copy of your document.

", zh:"

\u53d1\u5e03\u529f\u80fd\u5141\u8bb8\u4f60\u4e0e\u5176\u4ed6\u4eba\u5206\u4eab\u6574\u4e2a\u6216\u90e8\u5206\u4f60\u7684\u6587\u4ef6\u3002

\u8fd9\u4e9b\u94fe\u63a5\u5c06\u59cb\u7ec8\u4fdd\u5b58\u4f60\u7684\u6587\u4ef6\u7684\u6700\u65b0\u526f\u672c\u3002

"},"button.publish":{en:"Publish",zh:"\u53d1\u5e03"},"button.print":{en:"Print",zh:"\u6253\u5370 "},"label.publish.webpage":{en:"Web Page",zh:"\u7f51\u9875"},"label.publish.pdf.comment":{en:"Recommended for printing",zh:"\u5efa\u8bae\u6253\u5370"}, "label.publish.png.comment":{en:"Recommended image format",zh:"\u5efa\u8bae\u4f7f\u7528\u56fe\u7247\u683c\u5f0f"},"label.publish.document":{en:"Document",zh:"\u6587\u4ef6"},"label.publish.page":{en:"Current Page",zh:"\u5f53\u524d\u9875"},"label.publish.page.part":{en:"Part of Current Page",zh:"\u5f53\u524d\u9875\u9762\u7684\u4e00\u90e8\u5206"},"button.area.select.again":{en:"Select Area Again",zh:"\u518d\u6b21\u9009\u62e9\u533a\u57df"},"label.publish.zoom.current":{en:"Current Zoom Level",zh:"\u5f53\u524d\u7f29\u653e\u7b49\u7ea7"}, "label.publish.zoom.screen":{en:"Screen Quality",zh:"\u753b\u9762\u54c1\u8d28 "},"label.publish.zoom.print":{en:"Print Quality",zh:"\u6253\u5370\u54c1\u8d28"},"legend.publish.format":{en:"Format",zh:"\u683c\u5f0f"},"legend.publish.content":{en:"Content",zh:"\u5185\u5bb9"},"legend.publish.quality":{en:"Quality",zh:"\u54c1\u8d28"},"button.area.select.publish":{en:"Select Area and Publish",zh:"\u9009\u62e9\u533a\u57df\u5e76\u53d1\u8868"},"button.area.select.print":{en:"Select Area and Print",zh:"\u9009\u62e9\u533a\u57df\u5e76\u6253\u5370"}, "button.library.manage":{en:"Manage Library",zh:"\u56fe\u4e66\u9986\u7ba1\u7406 "},"tooltip.search.clear":{en:"Clear Search",zh:"\u6e05\u9664\u641c\u7d22"},"tooltip.search.options":{en:"Search Options",zh:"\u641c\u7d22\u9009\u9879 "},"toolbox.search":{en:"search",zh:"\u641c\u7d22"},"dialog.library.manage.p":{en:"Select the shape sets you want available for use.",zh:"\u8bf7\u9009\u62e9\u4f60\u60f3\u8981\u7684\u5f62\u72b6\u6765\u4f7f\u7528"},"toolbox.alert.plugin.restricted":{en:'This plugin is only available for Professional and Team users. Please consider upgrading.', zh:'\u6b64\u5f62\u72b6\u5e93\u9650\u5236\u4e8e\u4e13\u4e1a\u548c\u56e2\u961f\u7528\u6237\u3002\u8bf7\u8003\u8651upgrading\u70b9\u51fb\u5347\u7ea7\u3002'},"alert.complexity.reached.prefix":{en:"You have reached your complexity limit of",zh:"\u60a8\u5df2\u7ecf\u8fbe\u5230\u4e86\uff0c\u5728\u6bcf\u4e2a\u6587\u4ef6\u4e0a\u4f7f\u7528"},"alert.complexity.reached.suffix":{en:"objects to be drawn on each document. This bar will fill up as you approach that limit.", zh:"\u4e2a\u7269\u4f53\u7684\u4f7f\u7528\u6781\u9650\uff0c\u5f53\u60a8\u63a5\u8fd1\u6781\u9650\u65f6\u6b64\u8fdb\u5ea6\u6761\u4e5f\u4f1a\u968f\u4e4b\u589e\u957f"},"alert.feedback.send.p":{en:'We would appreciate your feedback on the product. Click here to send us a note.',zh:'\u6211\u4eec\u5c06\u5341\u5206\u611f\u6fc0\u60a8\u5bf9\u6211\u4eec\u4ea7\u54c1\u7684\u610f\u89c1\u56de\u9988\u3002\u70b9\u51fb\u8fd9\u91cc\u7ed9\u6211\u4eec\u7559\u8a00\u3002'}, "dialog.template.exists.title":{en:"Template exists",zh:"\u73b0\u5b58\u6a21\u7248"},"optionbar.group.rows":{en:"Rows",zh:"\u884c"},"optionbar.group.columns":{en:"Columns",zh:"\u5217"},"optionbar.group.selected":{en:"Selected",zh:"\u5df2\u9009\u62e9"},"orgchart.prompt.team.name":{en:"Please enter the name of this team.",zh:"\u8bf7\u8f93\u5165\u56e2\u961f\u540d\u79f0"},"optionbar.group.tabs":{en:"Tabs",zh:"\u6807\u7b7e"},"optionbar.group.links":{en:"Links",zh:"\u94fe\u63a5"},"optionbar.group.panels":{en:"Panels", zh:"\u9762\u677f"},"optionbar.group.buttons":{en:"Buttons",zh:"\u6309\u94ae"},"optionbar.group.options":{en:"Options",zh:"\u9009\u9879"},"ui2.hotspot.action.select.heading":{en:"Select a hotspot action:",zh:"\u9009\u62e9\u4e00\u4e2a\u70ed\u70b9\u7684\u884c\u52a8"},"ui2.hotspot.state.choose":{en:"Choose a State",zh:"\u9009\u62e9\u72b6\u6001"},"ui2.hotspot.state.create":{en:"Create New State",zh:"\u521b\u5efa\u65b0\u72b6\u6001"},"ui2.hotspot.linkto.heading":{en:"Link to:",zh:"\u8fde\u63a5\u5230:"}, "label.action.none":{en:"No Action",zh:"\u4e0d\u91c7\u53d6\u884c\u52a8 "},"ui2.hotspot.state.select.error":{en:"Please select a state.",zh:"\u8bf7\u9009\u62e9\u67d0\u4e00\u4e2a\u72b6\u6001 "},"option.line.reverse":{en:"Reverse line direction",zh:"\u53cd\u5411\u7ebf\u65b9\u5411"},"option.multiplicity":{en:"Add Multiplicities",zh:"\u6dfb\u52a0\u591a\u91cd\u6027 "},"userimage.upload.ie.p":{en:"Select an image file to upload. This image will be available for you to use in any future documents.",zh:"\u9009\u62e9\u4e00\u4e2a\u56fe\u50cf\u6587\u4ef6\u4e0a\u4f20\u3002\u6b64\u56fe\u7247\u5c06\u53ef\u4f9b\u60a8\u4efb\u4f55\u672a\u6765\u7684\u6587\u4ef6\u4f7f\u7528\u3002"}, "managefonts.upload.p":{en:"Select a font file (.ttf, .ttc, or .otf) to upload. This font will be available for you to use in any future documents. You may also drag and drop one or more .ttf, .ttc, or .otf files onto the font list above.",zh:"\u9009\u62e9\u4e00\u4e2a\u56fe\u50cf\u6587\u4ef6\u4e0a\u4f20\u3002\u6b64\u56fe\u7247\u5c06\u53ef\u4f9b\u60a8\u4efb\u4f55\u672a\u6765\u7684\u6587\u4ef6\u4f7f\u7528\u3002"},"userimage.dragdrop.p":{en:"At any time, drag an image file from your desktop directly onto the page to add it to your document. This image will be available for you to use in any future documents.", zh:"\u5728\u4efb\u610f\u65f6\u95f4\uff0c\u5c06\u4e00\u56fe\u7247\u6587\u4ef6\u76f4\u63a5\u4ece\u684c\u9762\u62d6\u81f3\u9875\u9762\u5e76\u6dfb\u52a0\u81f3\u4f60\u7684\u56fe\u8868\u3002 \u8be5\u56fe\u7247\u53ef\u4ee5\u5728\u4efb\u4f55\u65f6\u95f4\u4e3a\u4f60\u5c06\u6765\u7684\u6587\u4ef6\u6240\u4f7f\u7528\u3002"},"userimage.upload.p":{en:"Or, select an image file to upload here.",zh:"\u6216\u8005\uff0c\u9009\u62e9\u4e00\u4e2a\u56fe\u7247\u6587\u4ef6\u5e76\u4e0a\u4f20\u81f3\u6b64"},"toolbox.userimages.title":{en:"User Images", zh:"\u7528\u6237\u56fe\u6807"},"button.image.upload":{en:"Upload Image",zh:"\u4e0a\u4f20\u56fe\u50cf"},"toolbox.teamimages.title":{en:"Team Images",zh:"\u56e2\u961f\u56fe\u6807"},"userimage.delete.error":{en:"Image could not be deleted. Please try again later.",zh:"\u56fe\u7247\u4e0d\u80fd\u88ab\u5220\u9664\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5"},"userimage.delete.confirm":{en:"

Are you sure you want to delete this image? Any documents that use this image will have a broken image.

This CANNOT be undone.

", zh:"

\u60a8\u786e\u5b9a\u8981\u5220\u9664\u6b64\u56fe\u7247\u5417\uff1f \u4efb\u4f55\u4f7f\u7528\u8be5\u56fe\u7247\u7684\u6587\u4ef6\u5c06\u4f1a\u6709\u7834\u788e\u7684\u56fe\u50cf\uff0c

\u8fd9\u4e0d\u80fd\u88ab\u64a4\u9500

."},"userimage.prompt.image.url":{en:"Please enter an image URL",zh:"\u8bf7\u8f93\u5165\u4e00\u4e2a\u56fe\u7247\u7f51\u5740"},"label.publish.page.select":{en:"Page to publish:",zh:"\u9875\u9762\u53d1\u5e03\uff1a"},"button.page.publish":{en:"Publish Page", zh:"\u53d1\u5e03\u9875\u9762"},"collaborate.option.none":{en:"Is not invited",zh:"\u5df2\u9501\u5b9a"},"collaborate.option.view":{en:"Can view",zh:"\u53ef\u67e5\u770b"},"collaborate.option.edit":{en:"Can edit",zh:"\u53ef\u7f16\u8f91"},"collaborate.option.own":{en:"Is owner",zh:"\u6240\u6709\u8005"},"button.selection.publish":{en:"Publish Selection",zh:"\u53d1\u5e03\u9009\u62e9\u90e8\u5206"},Email:{zh:"\u7535\u5b50\u90ae\u4ef6"},"invitation.new":{en:"New Invitation",zh:"\u65b0\u9080\u8bf7"},"dialog.share.collaborators.heading":{en:"Permissions", zh:"\u6743\u9650"},"invitations.active":{en:"Active Invitations",zh:"\u73b0\u884c\u7684\u9080\u8bf7"},"Share and publish":{zh:"\u5171\u4eab\u548c\u53d1\u5e03"},"label.invitation.single":{en:"Single use",zh:"\u5355\u6b21\u4f7f\u7528"},"label.published.fulldoc":{en:"Full document",zh:"\u5b8c\u6574\u6587\u6863"},"label.community.share":{en:"Share in Community",zh:"\u5728\u793e\u533a\u5206\u4eab"},"label.community.shared":{en:"Shared in Community",zh:"\u5df2\u5728\u793e\u533a\u5206\u4eab"},Image:{zh:"\u56fe\u50cf"}, "label.publish.page.single":{en:"Single page",zh:"\u5355\u9875"},"label.pdf.image":{en:"PDF/Image",zh:"PDF\u683c\u5f0f/\u56fe\u50cf"},"input.email.prompt":{en:"Enter email addresses (comma separated)",zh:"\u8f93\u5165\u7535\u5b50\u90ae\u4ef6\u5730\u5740"},"menu.invite.user":{en:"Invite Collaborator(s)",zh:"\u9080\u8bf7\u7528\u6237"},Apply:{},"masterpanel.title":{en:"Master Pages"},"alert.apply.master.to.master":{en:"You are currently editing a master page, and cannot apply another master page to it."}, "growl.master.applied":{en:"Master page applied."},"menu.page.masterize":{en:"Convert to Master"},New:{},"pagetitle.master.suffix":{en:"(master)"},"option.page.number":{en:"Insert page number"},"option.page.count":{en:"Insert total pages"},"menu.masterpage.apply.all":{en:"Apply Master to All Pages"},"menu.page.master.apply":{en:"Apply Master"},"menu.masterpage.delete":{en:"Delete Master"},"menu.masterpage.setting":{en:"Master Settings"},"menu.masterpage.duplicate":{en:"Duplicate Master"},"menu.masterpage.demasterize":{en:"Convert Master to Page"}, "masterpanel.button.new":{en:"New Master"},"Untitled Master":{},"masterpanel.default":{en:"Click below to create a master page, or convert an existing page to a master page using the Page drop-down menu."},"menu.page.master.remove":{en:"Remove Master"},"confirm.master.delete":{en:"Are you sure you want to delete this master?"},"alert.offline.disabled":{en:"This functionality is not available while you are working in offline mode. Please connect to the internet to re-enable."},"menu.download":{en:"Download As..."}, "menu.download.description":{en:"Download a PDF or image"},"downloadpanel.title":{en:"Download"},"button.download":{en:"Download"},"button.area.select.download":{en:"Select Area and Download"},"alert.complexity.desc.prefix":{en:"You are limited to"},"alert.complexity.desc.suffix":{en:"objects per document. This bar will fill up as you approach that limit."},"gui.growl.masterpages.new":{en:"NEW Master Pages!"},"option.linejump.on":{en:"Jumping Line Intersections"},"option.linejump.off":{en:"Straight Line Intersections"}, "subnav.templates.team":{en:"Team Templates"},"templates.list.empty":{en:"No templates available."},"templates.description":{en:"Use templates as a starting point for new ideas that incorporate items such as your company logo and other shapes directly into the design. You can create your own templates by choosing “Save as Template” from the document editor."},"button.library.manage.touch":{en:"Library"},"notice.templates.custom.upgrade":{en:' does not allow custom templates. You can If you wish to permanently remove this restriction, you should upgrade to a paid subscription.

',zh:'

\u5982\u679c\u60a8\u60f3\u8981\u6c38\u4e45\u79fb\u9664\u8be5\u9650\u5236\uff0c\u60a8\u53ef\u4ee5\u5347\u7ea7\u4e3a\u4ed8\u8d39\u8ba2\u9605\u8d26\u6237.

'}, "alert.complexity.upgrade":{en:'

Click here to start a free trial of a paid account which lifts this limit.

',zh:'

\u70b9\u51fb\u8fd9\u91cchere\uff0c\u5f00\u59cb\u4ed8\u8d39\u8d26\u6237\u514d\u8d39\u8bd5\u7528\u671f\uff0c\u4ee5\u79fb\u9664\u8be5\u9650\u5236\u3002'},"alert.collaboration.revoked":{en:"You have been removed as a collaborator for this document.",zh:"\u4f60\u5df2\u88ab\u9664\u5e76\u4e0d\u518d\u662f\u6b64\u6587\u4ef6\u7684\u5408\u4f5c\u8005"}, "viewport.selectarea":{en:"Click and drag to select part of the page.",zh:"\u70b9\u51fb\u5e76\u62d6\u52a8\u6765\u9009\u62e9\u7f51\u9875\u7684\u4e00\u90e8\u5206"},"alert.publish.unsaved":{en:"You must save your document before publishing it.",zh:"\u4f60\u5fc5\u987b\u5728\u53d1\u8868\u524d\u4fdd\ufffd\ufffd\ufffd\u4f60\u7684\u6587\u4ef6 "},"Untitled Document":{zh:"\u672a\u547d\u540d\u6587\u4ef6"},"viewport.banner.share":{en:"Share this link with your friends or coworkers to edit the same diagram at the same time.", zh:"\u4e0e\u4f60\u7684\u670b\u53cb\u548c\u540c\u4e8b\u5206\u4eab\u6b64\u94fe\u63a5\uff0c\u8fd9\u6837\u4ed6\u4eec\u53ef\u4ee5\u5728\u540c\u4e00\u65f6\u95f4\u7f16\u8f91\u540c\u4e00\u56fe\u8868"},"growl.save.nochange":{en:"No changes to save.",zh:"\u4fdd\u5b58\u6ca1\u6709\u53d8\u5316"},"growl.merge.unsaved":{en:"Your changes are not yet saved. Other users have changed this document. Their changes have been merged into yours without any problems.",zh:"\u60a8\u6240\u505a\u7684\u53d8\u66f4\u5c1a\u672a\u5b58\u50a8\uff0c\u5176\u4ed6\u7528\u6237\u5df2\u7ecf\u66f4\u6539\u4e86\u6b64\u6587\u4ef6\u3002 \u4ed6\u4eec\u7684\u53d8\u66f4\u5df2\u6210\u529f\u5408\u5e76\u5230\ufffd\ufffd\ufffd\u7684\u6587\u4ef6\u4e2d\u3002"}, "alert.document.deleted":{en:"This document has been deleted.",zh:"\u6b64\u6587\u4ef6\u5df2\u88ab\u5220\ufffd\ufffd\ufffd"},"growl.save.timeout":{en:"Save timed out. Please try again.",zh:"\u4fdd\u5b58\ufffd\ufffd\ufffd\u65f6\uff0c\u8bf7\u91cd\u8bd5"},"alert.level.templates.unsupported":{en:"does not support custom templates.",zh:"\u4e0d\u652f\u6301\u81ea\u5b9a\u4e49\u6a21\u7248"},"alert.restriction.upgrade.higher":{en:'

If you wish to remove this restriction, you should upgrade to a higher subscription level.

', zh:'

\u5982\u679c\u60a8\u60f3\u79fb\u9664\u6b64\u9650\u5236\uff0c\u53ef\u4ee5\u5347\u7ea7

\u8d26\u6237\u3002'},"growl.template.notshared":{en:"Template could not be shared. Please try again.",zh:"\u6a21\u7248\u4e0d\u80fd\u88ab\u5206\u4eab\uff0c\u8bf7\u91cd\u8bd5"},"alert.onlyowner.share":{en:"Only a document's owner may share it in the Community Library.",zh:"\u53ea\u6709\u6587\u4ef6\u7684\u6240\u6709\u8005\u53ef\u4ee5\u5c06\u5176\u5206\u4eab\u81f3\u793e\u533a\u56fe\u4e66\u9986"}, "alert.onlyowner.unshare":{en:"Only a document's owner may remove it from the Community Library.",zh:"\u53ea\u6709\u6587\u4ef6\u7684\u6240\u6709\u8005\u53ef\u5c06\u5176\u4ece\u793e\u533a\u56fe\u4e66\u7ba1\u4e2d\u79fb\u9664"},"growl.template.notsaved":{en:"Template could not be saved. Please try again.",zh:"\u6a21\u7248\u4e0d\u80fd\u88ab\u4fdd\u5b58\uff0c \u8bf7\u91cd\u8bd5 "},"title.template.overwrite":{en:"Overwrite Existing Template",zh:"\u8986\u76d6\u73b0\u6709\u6a21\u7248"},"title.template.new":{en:"Save New Template", zh:"\u4fdd\u5b58\u65b0\u6a21\u7248 "},"message.template.overwrite":{en:"The existing template will be overwritten.",zh:"\u73b0\u6709\u7684\u6a21\u7248\u5c06\u88ab\u8986\u76d6"},"message.template.new":{en:"This will save this document as a new template. This means that each time you create a new document in LucidChart, you will be able to use this document as a starting point.",zh:"\u8fd9\u5c06\u6b64\u6587\u4ef6\u4fdd\u5b58\u4e3a\u4e00\u4e2a\u65b0\u7684\u6a21\u677f\u6587\u6863\u3002\u6bcf\u5f53\u60a8\u5728LucidChart\u521b\u5efa\u4e00\u4e2a\u65b0\u6587\u6863\uff0c\u5c06\u80fd\u591f\u4f7f\u7528\u8be5\u6587\u4ef6\u4e3a\u51fa\u53d1\u70b9\u3002"}, "message.template.settings":{en:"This document will be used as a template. You (and anyone you share this document with) will be able to use this document as a starting point for new documents."},"confirm.template.overwrite":{en:"Would you like to overwrite the existing template?",zh:"\u4f60\u613f\u610f\u8986\u76d6\u73b0\u5b58\u6a21\u7248\u5417\uff1f"},"prompt.title.new":{en:"Enter a new title",zh:"\u8bf7\u8f93\u5165\u65b0\u6807\u9898 "},"alert.facebook.unsaved":{en:"You must save this document before sharing it on Facebook.", zh:"\u4f60\u5fc5\u987b\u5728\u5206\u4eab\u5230Facebook\u524d\u4fdd\u5b58\u6b64\u6587\u4ef6"},"alert.facebook.unowned":{en:"You are not the owner of this document; you can only share it on Facebook after its owner has published it as a web page.",zh:"\u4f60\u4e0d\u662f\u6b64\u6587\u4ef6\u7684\u6240\u6709\u8005\uff0c\u4f60\u53ea\u80fd\u5728\u5176\u6240\u6709\u8005\u5c06\u5176\u53d1\u5e03\u4e3a\u7f51\u9875\u540e\u518d\u5206\u4eab\u5230Facebook\u4e0a"},"alert.twitter.unsaved":{en:"You must save this document before sharing it on Twitter.", zh:"\u4f60\u5fc5\u987b\u5728\u5206\u4eab\u5230Twitter\u524d\u4fdd\u5b58\u6b64\u6587\u4ef6"},"alert.twitter.unowned":{en:"You are not the owner of this document; you can only share it on Twitter after its owner has published it as a web page.",zh:"\u4f60\u4e0d\u662f\u6b64\u6587\u4ef6\u7684\u6240\u6709\u8005\uff0c\u4f60\u53ea\u80fd\u5728\u6240\u6709\u8005\u5c06\u5176\u53d1\u5e03\u4e3a\u7f51\u9875\u540e\u518d\u5206\u4eab\u5230Twitter\u4e0a"},"demo.clickanywhere":{en:"Click anywhere to continue",zh:"\u70b9\u51fb\u4efb\u4f55\u4e00\u5904\u6765\u7ee7\u7eed "}, Uploading:{zh:"\u4e0a\u4f20"},"growl.upload.failed":{en:"File upload failed. Please try again.",zh:"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5"},"dialog.org.role.heading":{en:"Everyone on my team:",zh:"\u5728\u6211\u7684\u7ec4\u7ec7\u4e2d\u7684\u6bcf\u4eba\u5c06\u4f1a\u6388\u6743\uff1a"},None:{zh:"\u65e0 "},View:{zh:"\u67e5\u770b "},Edit:{zh:"\u7f16\u8f91"},Own:{zh:"\u62e5\u6709 "},"description.own":{en:"Give full permissions",zh:"\u7ed9\u4e88\u5b8c\u5168\u6743\u9650 "},"settings.org.save":{en:"Save Team Settings", zh:"\u4fdd\u5b58\u7ec4\u7ec7\u8bbe\u5b9a "},"Middle Align":{zh:"\u4e2d\u95f4\u5bf9\u9f50 "},"overlay.crop.instructions":{en:"Drag the crop points. Press escape to cancel or enter to complete the cropping."}};var hm={"subnav.documents.all":{en:"All Documents",zh:"\u6240\u6709\u6587\u6863"},"subnav.documents.search":{en:"Search Results",zh:"\u641c\u7d22\u7ed3\u679c"},"subnav.documents.my":{en:"My Documents",zh:"\u6211\u7684\u6587\u6863"},"subnav.documents.team":{en:"Team Documents",zh:"\u56e2\u961f\u6587\u6863"},"subnav.templates.my":{en:"My Templates",zh:"\u6211\u7684\u6a21\u677f"},"subnav.documents.deleted":{en:"Deleted Documents",zh:"\u5df2\u5220\u9664\u7684\u6587\u6863"},"nav.documents":{en:"Documents", zh:"\u6587\u6863"},"nav.community":{en:"Community",zh:"\u793e\u533a"},"nav.team":{en:"Team",zh:"\u56e2\u961f"},"nav.forums":{en:"Forums",zh:"\u8bba\u575b"},"nav.account":{en:"Account",zh:"\u8d26\u6237"},"nav.referrals":{en:"Referrals",zh:"\u63a8\u8350\u4eba"},"nav.tour":{en:"Tour",zh:"\u6f14\u793a"},"nav.examples":{en:"Examples",zh:"\u8303\u4f8b"},"nav.tutorials":{en:"Tutorials",zh:"\u6559\u7a0b"},"nav.pricing":{en:"Pricing",zh:"\u5b9a\u4ef7"},"nav.admin":{en:"Admin",zh:"\u7ba1\u7406\u8005"},signout:{en:"Sign out", zh:"\u9000\u51fa"},usersettings:{en:"User settings",zh:"\u7528\u6237\u8bbe\u5b9a"},"label.username":{en:"Username",zh:"\u7528\u6237\u540d"},"label.password":{en:"Password",zh:"\u5bc6\u7801"},"label.rememberme":{en:"Remember me",zh:"\u8bb0\u4f4f\u6211"},signin:{en:"Sign in",zh:"\u767b\u9646"},"heading.signin.or":{en:"Or sign in with:",zh:"\u7528\u5176\u4ed6\u8d26\u6237\u767b\u9646\uff1a"},signup:{en:"Sign up",zh:"\u6ce8\u518c"},forgotpassword:{en:"Forgot your password?",zh:"\u5fd8\u8bb0\u5bc6\u7801\uff1f"}, Search:{zh:"\u641c\u7d22"},"documents.search":{en:"Search Documents",zh:"\u641c\u7d22\u6587\u6863"},"subnav.search.results":{en:"Search Results",zh:"\u641c\u7d22\u7ed3\u679c"},"button.document.new":{en:"+ New Document",zh:"\u65b0\u5efa\u6587\u6863"},"subnav.sort.modified":{en:"Last Modified",zh:"\u6700\u8fd1\u4fee\u6539"},"subnav.sort.relevance":{en:"Relevance",zh:"\u5173\u8054"},"subnav.sort.name":{en:"Name",zh:"\u540d\u79f0"},"subnav.sort.created":{en:"Created",zh:"\u5efa\u7acb\u65e5\u671f"},"subnav.sort.size":{en:"Size", zh:"\u5927\u5c0f"},"subnav.h.documents":{en:"Documents",zh:"\u6587\u6863"},"subnav.h.sort":{en:"Sort",zh:"\u6392\u5217"},"subnav.h.tags":{en:"Tags",zh:"\u6807\u7b7e"},"subnav.h.account":{en:"Account",zh:"\u8d26\u6237"},"subnav.settings.user":{en:"User Settings",zh:"\u7528\u6237\u8bbe\u5b9a"},"subnav.referrals":{en:"Referrals",zh:"\u63a8\u8350\u4eba"},"subnav.preferences.editor":{en:"Editor Preferences",zh:"\u7f16\u8f91\u8005\u504f\u597d"},"subnav.level.subscription":{en:"Subscription Level",zh:"\u8ba2\u9605\u7b49\u7ea7"}, "subnav.payments.subscription":{en:"Payment History",zh:"\u8ba2\u9605\u7f34\u8d39"},"subnav.account.close":{en:"Close Account",zh:"\u5173\u95ed\u8d26\u6237"},"subnav.h.team":{en:"Team",zh:"\u56e2\u961f"},"subnav.team.setup":{en:"Setup",zh:"\u5efa\u7acb"},"subnav.team.settings":{en:"Settings",zh:"\u8bbe\u5b9a"},"subnav.team.users":{en:"Users",zh:"\u7528\u6237"},"subnav.team.gapps":{en:"Google Apps",zh:"\u8c37\u6b4c\u5e94\u7528"},"storagemeter.available":{en:"You are using %d%% of your %s",zh:"\u60a8\u5df2\u7ecf\u4f7f\u7528\u50a8\u5b58\u91cf\uff08%s\uff09\u7684%d%%"}, "storagemeter.upgrade.p":{en:'You need to upgrade your subscription.',zh:'\u60a8\u76ee\u524d\u7684\u8d26\u6237\u7ea7\u522b\u4e0d\u5141\u8bb8\u6b64\u64cd\u4f5c\u3002\u8bf7\u5347\u7ea7\u3002'},"storagemeter.pay.p":{en:'You need to pay for your subscription.',zh:'\u8bf7\u5148\u652f\u4ed8\u8d39\u7528\u3002'},startdrawing:{en:"Start Drawing",zh:"\u5f00\u59cb\u7ed8\u56fe"},Features:{zh:"\u7279\u70b9"}, "footer.diagrams":{en:"Diagram Examples",zh:"\u56fe\u8868\u8303\u4f8b"},"examples.flowchart":{en:"Flowchart",zh:"\u6d41\u7a0b\u56fe"},"examples.wireframe":{en:"Wireframe",zh:"\u7ebf\u6846\u56fe"},"examples.uml":{en:"UML Diagram",zh:"UML \u56fe\u8868"},"examples.network":{en:"Network Diagram",zh:"\u7f51\u7edc\u56fe"},"examples.iphone":{en:"iPhone Mockup",zh:"iPhone \u6837\u673a"},"examples.business":{en:"Business Process",zh:"\u5546\u4e1a\u8fc7\u7a0b"},"examples.org":{en:"Org Chart",zh:"\u7ec4\u7ec7\u56fe"}, "examples.sitemap":{en:"Site Map",zh:"\u7f51\u7ad9\u5bfc\u822a\u56fe"},"examples.mindmap":{en:"Mind Map",zh:"\u601d\u7ef4\u56fe"},"nav.blog":{en:"Blog",zh:"\u535a\u5ba2"},"footer.casestudies":{en:"Case Studies",zh:"\u6848\u4f8b\u5b66\u4e60"},"footer.h.support":{en:"Support",zh:"\u652f\u6301"},"footer.contact":{en:"Contact",zh:"\u8054\u7cfb"},"footer.bugreports":{en:"Bug Reports",zh:"\u9519\u8bef\u62a5\u544a"},"footer.edupricing":{en:"Educational Pricing",zh:"\u6559\u80b2\u5b9a\u4ef7"},"footer.h.about":{en:"About", zh:"\u5173\u4e8e"},"footer.reviews":{en:"Reviews",zh:"\u70b9\u8bc4"},"footer.news":{en:"News",zh:"\u65b0\u95fb"},"footer.tos":{en:"Terms of Service",zh:"\u670d\u52a1\u6761\u6b3e"},"footer.privacy":{en:"Privacy Policy",zh:"\u9690\u79c1\u58f0\u660e"},"documents.h.allusers":{en:"All Users' Documents",zh:"\u6240\u6709\u7528\u6237\u7684\u6587\u6863"},"documents.h.search":{en:"Search:",zh:"\u641c\u7d22\uff1a"},"documents.h.alluserspublished":{en:"All Users' Published Documents",zh:"\u6240\u6709\u7528\u6237\u53d1\u5e03\u7684\u6587\u6863"}, "documents.h.documents":{en:"Documents:",zh:"\u6587\u6863\uff1a"},"documents.teamdocs.p":{en:'These documents have been shared with your entire team by another user. Once you open any of these documents, they will be moved to your All Documents list.',zh:'\u8fd9\u4e9b\u6587\u6863\u5df2\u7ecf\u88ab\u5176\u4ed6\u7528\u6237\u5206\u4eab\u7ed9\u4e86\u60a8\u7684\u6574\u4e2a\u56e2\u961f\u3002\u5f53\u60a8\u6253\u5f00\u8fd9\u4e9b\u6587\u6863\u4e2d\u7684\u4efb\u610f\u4e00\u4e2a\uff0c\u5b83\u4eec\u5c31\u4f1a\u88ab\u8f6c\u79fb\u5230\u60a8\u7684\u6240\u6709\u6587\u6863\u5217\u8868\u4e2d\u3002'}, "pagenumber.h":{en:"Page %s",zh:"\u9875\u9762 %d"},"documents.deleted.p":{en:"These documents have been deleted. Click any of these documents to restore it to your My Documents list. These documents are automatically removed from this list after 7 days.",zh:"\u8fd9\u4e9b\u6587\u6863\u5df2\u7ecf\u88ab\u5220\u9664\u4e86\u3002\u5355\u51fb\u8fd9\u4e9b\u6587\u6863\u4e2d\u7684\u4efb\u610f\u4e00\u4e2a\u6765\u6062\u590d\u5230\u60a8\u7684\u6211\u7684\u6587\u6863\u5217\u8868\u4e2d\u3002\u8fd9\u4e9b\u6587\u6863\u4f1a\u5728\u4e03\u5929\u540e\u81ea\u52a8\u4ece\u6b64\u5217\u8868\u4e2d\u79fb\u9664\u3002"}, "community.h.recent":{en:"Most Recent",zh:"\u6700\u8fd1\u6253\u5f00"},"community.h.rated.high":{en:"Highest-Rated",zh:"\u6700\u9ad8\u8bc4\u5206"},"community.h.rated.most":{en:"Most-Rated",zh:"\u6700\u591a\u8bc4\u5206"},"community.h.examples":{en:"Examples",zh:"\u8303\u4f8b"},"community.h.featured":{en:"Featured Examples",zh:"\u7cbe\u9009\u8303\u4f8b"},"community.h.search":{en:"Community Search:",zh:"\u793e\u533a\u641c\u7d22\uff1a"},"community.h2.category":{en:"%s Examples",zh:"%s \u8303\u4f8b"},"community.none.p":{en:"No examples found.", zh:"\u6ca1\u6709\u627e\u5230\u8303\u4f8b\u3002"},"tips.h2.getstarted":{en:"3 Tips to Get Started with LucidChart:",zh:"\u5f00\u59cb\u4f7f\u7528LucidChart\u7684\u4e09\u4e2a\u7a8d\u95e8\uff1a"},"tips.dragdrop.h":{en:"Drag and Drop",zh:"\u62d6\u653e"},"tips.dragdrop.p":{en:'Simply drag a shape from the toolbox and drop it on the canvas.',zh:'\u7b80\u5355\u5730\u62d6\u52a8\u5de5\u5177\u7bb1\u4e2d\u7684\u4efb\u4f55\u4e00\u4e2a\u56fe\u5f62\u5e76\u4e14\u653e\u7f6e\u6b64\u56fe\u5f62\u5230\u753b\u5e03\u4e0a\u3002'}, "tips.button.skipstart":{en:"Skip and start drawing",zh:"\u8df3\u8fc7\u5e76\u5f00\u59cb\u7ed8\u56fe"},"tips.button.next":{en:"Next Tip",zh:"\u4e0b\u4e00\u4e2a\u7a8d\u95e8"},"tips.lineprompt.h":{en:"Lines and Autoprompt",zh:"\u7ebf\u6761\u548c\u63d0\u793a\u6846"},"tips.lineprompt.p":{en:'To draw a line, just click and drag from the edge of a shape. Release and an autoprompt will help you select your next shape.',zh:'\u60f3\u8981\u753b\u4e00\u4e2a\u7ebf\u6761\uff0c\u53ea\u9700\u70b9\u51fb\u5e76\u62d6\u52a8\u56fe\u5f62\u8fb9\u7f18\u3002\u677e\u5f00\u9f20\u6807\u540e\u4e00\u4e2a\u63d0\u793a\u6846\u5c06\u63d0\u793a\u60a8\u9009\u62e9\u60a8\u7684\u4e0b\u4e00\u4e2a\u56fe\u5f62\u3002'}, "tips.button.prev":{en:"Previous Tip",zh:"\u4e0a\u4e00\u4e2a\u7a8d\u95e8"},"tips.button.finish":{en:"Finish",zh:"\u7ed3\u675f"},"tips.buttons.close":{en:"Close",zh:"\u5173\u95ed"},"tips.collaborate.h":{en:"Collaborate and Share",zh:"\u5408\u4f5c\u4e0e\u5206\u4eab"},"tips.collaborate.p":{en:'Invite collaborators by entering an email address. Publish and share in multiple formats (PDF, image, etc.).',zh:'\u901a\u8fc7\u8f93\u5165\u7535\u5b50\u90ae\u7bb1\u5730\u5740\u6765\u9080\u8bf7\u5408\u4f5c\u8005. \u901a\u8fc7\u4e0d\u540c\u7684\u683c\u5f0f(PDF, \u56fe\u7247, \u7b49\u7b49).\u6765\u53d1\u5e03\u5e76\u5206\u4eab'}, "tips.h2.joincommunity":{en:"2 Tips to Joining the LucidChart Community:",zh:"\u4e24\u4e2a\u52a0\u5165LucidChart community \u7684\u79d8\u8bc0"},"tips.community.browse.h":{en:"Start from an Example",zh:"\u4ece\u4e00\u4e2a\u4f8b\u5b50\u5f00\u59cb"},"tips.community.browse.p":{en:'Click Browse Now in the community menu to open the community library. Start a new document from an example by clicking Use as Template.',zh:'\u5728\u793e\u533a\u83dc\u5355\u4e2d\u70b9\u51fb\u6d4f\u89c8\u5219\u8fdb\u5165\u793e\u533a\u56fe\u4e66\u9986\u3002\u5982\u679c\u5e0c\u671b\u5229\u7528\u5b9e\u4f8b\u521b\u5efa\u65b0\u7684\u6587\u4ef6\uff0c\u70b9\u51fb\u4f7f\u7528\u6a21\u7248\u3002'}, "tips.community.share.h":{en:"Share an Example",zh:"\u5206\u4eab\u4e00\u4e2a\u4f8b\u5b50"},"tips.community.share.p":{en:'Click Share Now in the community menu to open the Share dialog. Select a category, enter a short description, then click the Share Document button.',zh:' \u5728\u793e\u533a\u83dc\u5355\u4e2d\u70b9\u51fb\u5206\u4eab\u5219\u8fdb\u5165\u5206\u4eab \u5bf9\u8bdd. \u9009\u62e9\u4e00\u4e2a\u5206\u7c7b, \u8f93\u5165\u7b80\u77ed\u7684\u63cf\u8ff0, \u7136\u540e\u70b9\u51fb \u5206\u4eab\u6587\u4ef6 \u952e.'}, "tips.richtext.h":{en:"New rich text editor!",zh:"\u65b0\u6587\u672c\u7f16\u8f91\u5668"},"tips.richtext.p1":{en:'We have just released a new text editor that provides better control over entering and displaying text. You now have much better control over text size, and can choose from dozens of fonts.',zh:'\u6211\u4eec\u521a\u521a\u53d1\u5e03\u4e86\u4e00\u4e2a\u65b0\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u5b83\u63d0\u4f9b\u4e86\u66f4\u597d\u5730\u63a7\u5236\u8f93\u5165\u548c\u663e\u793a\u6587\u672c\u3002\u60a8\u73b0\u5728\u6709\u5f88\u591a\u66f4\u597d\u5730\u63a7\u5236\u6587\u5b57\u5927\u5c0f\uff0c\u5e76\u53ef\u4ee5\u4ece\u4e2d\u9009\u62e9\u5b57\u4f53\u3002'}, "tips.richtext.p2":{en:'To enter foreign languages, such as Chinese, Japanese or Korean, that require an Input Method Editor (IME), first select the %s button in the option bar above your diagram, or use the keyboard shortcut Ctrl + Space.',zh:'\u8f93\u5165\u5916\u56fd\u8bed\u8a00\u4f8b\u5982\u4e2d\u6587\uff0c\u65e5\u6587\u6216\u97e9\u6587\uff0c\u9700\u8981\u4e00\u4e2a\u8f93\u5165\u6cd5\u7f16\u8f91\u5668\uff08IME\uff09\u3002\u9996\u5148\u9009\u62e9\u5728\u56fe\u8868\u4e0a\u65b9\u9879\u680f\u4e2d\u7684\uff05s\u6309\u94ae\uff0c\u6216\u4f7f\u7528\u952e\u76d8\u5feb\u6377\u952eCtrl+\u7a7a\u683c\u3002'}, "tips.richtext.p2a":{en:"This will open a text entry dialog associated with your text entry area. Enter your text normally using your IME, and when you exit the dialog box your characters will appear in the text area.\n\t",zh:"\u8fd9\u5c06\u6253\u5f00\u4e00\u4e2a\u6587\u672c\u8f93\u5165\u5bf9\u8bdd\u6846\u4e0e\u60a8\u7684\u6587\u5b57\u8f93\u5165\u533a\u57df\u76f8\u5173\u8054\u3002\u4f7f\u7528\u60a8\u901a\u5e38\u4f7f\u7528\u7684\u8f93\u5165\u6cd5\u6765\u8f93\u5165\u60a8\u7684\u6587\u5b57\uff0c\u800c\u5f53\u60a8\u9000\u51fa\u5bf9\u8bdd\u6846\u65f6\u8be5\u5bf9\u8bdd\u6846\u4e2d\u7684\u5b57\u7b26\u5c06\u663e\u793a\u5728\u6587\u672c\u533a\u3002"}, "tips.richtext.note.p":{en:"Note: These languages currently work with the default font (Liberation Sans).",zh:"\u6ce8\uff1a\u76ee\u524d\u8fd9\u4e9b\u8bed\u8a00\u7684\u9ed8\u8ba4\u5b57\u4f53\u4e3a\uff08Liberation Sans\uff09\u3002"},"tips.freehand.h":{en:'How to Edit Shapes (BETA)',zh:'\u5982\u4f55\u7f16\u8f91\u5f62\u72b6(BETA)'},"tips.freehand.textlink.h":{en:"Text Areas and Link Points",zh:"\u6587\u672c\u533a\u57df\u548c\u94fe\u63a5\u70b9"}, "tips.freehand.textlink.p1":{en:"Click on text areas to select them, then move or resize them by clicking and dragging. Click on the add text button %s to add a new text area. Press Delete to remove a selected text area.",zh:"\u5355\u51fb\u6587\u672c\u533a\u57df\u6765\u9009\u62e9\u5b83\u4eec\uff0c\u7136\u540e\u901a\u8fc7\u70b9\u51fb\u548c\u62d6\u52a8\u6765\u79fb\u52a8\u6216\u8c03\u6574\u5927\u5c0f\u3002\u6309\u4e00\u4e0b\u6dfb\u52a0\u6587\u672c\u6309\u94ae\uff05s\u6765\u6dfb\u52a0\u65b0\u7684\u6587\u672c\u533a\u57df\u3002\u6309Delete\u952e\u5220\u9664\u9009\u5b9a\u7684\u6587\u672c\u533a\u57df\u3002"}, "tips.freehand.textlink.p2":{en:"Click and drag the link points to mover them to a different location on the shape outline.",zh:"\u5355\u51fb\u5e76\u62d6\u52a8\u94fe\u63a5\u70b9\u5c06\u5176\u79fb\u52a8\u81f3\u4e00\u4e2a\u4e0d\u540c\u7684\u5f62\u72b6\u8f6e\u5ed3\u7684\u4f4d\u7f6e\u3002"},"tips.freehand.shape.h":{en:"Shape Outlines",zh:"\u5f62\u72b6\u8f6e\u5ed3"},"tips.freehand.shape.p1":{en:"Double-click a shape's outline to go into vector-editing mode, and double-click away from a shape (or press Escape) to exit vector-editing mode.", zh:"\u53cc\u51fb\u5f62\u72b6\u7684\u8f6e\u5ed3\u8fdb\u5165\u77e2\u91cf\u7f16\u8f91\u6a21\u5f0f\uff0c\u8fdc\u79bb\u5f62\u72b6\u53cc\u51fb\uff08\u6216\u6309Esc\u952e\uff09\u9000\u51fa\u7f16\u8f91\u6a21\u5f0f\u3002"},"tips.freehand.shape.p2":{en:"While in vector-editing mode, click and drag the line points and control points to change the shape of the outline. Double-click on the line to add more points.",zh:"\u5728\u77e2\u91cf\u7f16\u8f91\u6a21\u5f0f\uff0c\u70b9\u51fb\u5e76\u62d6\u52a8\u8fb9\u754c\u70b9\u548c\u63a7\u5236\u70b9\u6765\u6539\u53d8\u5916\u5f62\u8f6e\u5ed3\u3002\u53cc\u51fb\u8fb9\u754c\u7ebf\u6765\u6216\u7684\u66f4\u591a\u7684\u70b9\u3002"}, "tips.freehand.shape.p3":{en:"Click the Freehand Draw icon %s in the toolbar to start drawing a new shape.",zh:"\u70b9\u51fb\u5de5\u5177\u680f\u4e2d\u7684\u81ea\u7531\u7ed8\u753b\u56fe\u6807\uff05\u5f00\u59cb\u7ed8\u5236\u65b0\u5f62\u7684\u3002"},"bugs.contact.h":{en:"Contact %s",zh:"\u8054\u7cfb %s"},"bugs.contact.p1":{en:'If you would like to report a problem with the LucidChart software, please use the Report A Problem page.',zh:'\u5982\u679c\u60a8\u60f3\u62a5\u544aLucidChart\u8f6f\u4ef6\u7f3a\u9677\uff0c\u8bf7\u4f7f\u7528\u62a5\u544a\u95ee\u9898\u9875\u9762\u3002'}, "bugs.contact.p2":{en:"Use the following form to send a message directly to LucidChart's staff. We will respond as time permits.",zh:"\u4f7f\u7528\u4e0b\u5217\u8868\u683c\u76f4\u63a5\u5411LucidChart\u7684\u5de5\u4f5c\u4eba\u5458\u53d1\u9001\u90ae\u4ef6\u3002\u6211\u4eec\u5c06\u5373\u65f6\u56de\u5e94\u3002"},"bugs.label.useragent":{en:"Your User-Agent",zh:"\u60a8\u7684\u7528\u6237\u4ee3\u7406"},"bugs.label.browser":{en:"Your Browser",zh:"\u60a8\u7684\u6d4f\u89c8\u5668 "},"bugs.label.os":{en:"Your Operating System", zh:"\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf "},"bugs.label.email":{en:"Your Email Address",zh:"\u60a8\u7684\u7535\u5b50\u90ae\u7bb1\u5730\u5740"},"bugs.contact.label.title":{en:"Message Title",zh:"\u90ae\u4ef6\u6807\u9898"},"bugs.contact.label.content":{en:"Message Body",zh:"\u90ae\u4ef6\u6b63\u6587"},"bugs.contact.button.submit":{en:"Send Message",zh:"\u53d1\u9001\u6d88\u606f"},"education.title":{en:"Educational Pricing and Discounts",zh:"\u6559\u80b2\u673a\u6784\u4ef7\u683c\u548c\u6298\u6263"},"education.desc":{en:"Educators and students at all educational levels can receive discounts on LucidChart's online diagramming software.", zh:"\u5404\u7ea7\u7684\u6559\u80b2\u5de5\u4f5c\u8005\u548c\u5b66\u751f\u90fd\u80fd\u4eab\u53d7LucidChart\u7684\u5728\u7ebf\u7ed8\u56fe\u8f6f\u4ef6\u7684\u6298\u6263\u3002"},"education.h":{en:"LucidChart for Educators and Students",zh:"LucidChart\u9488\u5bf9\u6559\u80b2\u5de5\u4f5c\u8005\u53ca\u5b66\u751f"},"education.plarge":{en:"Use LucidChart to augment the learning process by creating flowcharts, mind maps and other types of diagrams. Enable students to easily collaborate in real-time on group projects.", zh:"\u4f7f\u7528LucidChart\uff0c\u901a\u8fc7\u521b\u5efa\u6d41\u7a0b\u56fe\uff0c\u601d\u7ef4\u5bfc\u56fe\u4ee5\u53ca\u5176\u4ed6\u7c7b\u578b\u7684\u56fe\u8868\u6765\u589e\u8fdb\u5b66\u4e60\u7684\u8fc7\u7a0b\u3002\u4f7f\u5b66\u751f\u8f7b\u677e\u5730\u5728\u56e2\u961f\u9879\u76ee\u4e0a\u8fdb\u884c\u5b9e\u65f6\u534f\u4f5c\u3002"},"education.h2a":{en:"Educational Benefits of Diagramming",zh:"\u56fe\u8868\u5bf9\u6559\u80b2\u7684\u76ca\u5904"},"education.pa1":{en:"Drawing diagrams trains students on how to translate written information into visual information, with the opportunity to acquire knowledge during this process through reorganization of information and inference-making.", zh:"\u7ed8\u5236\u56fe\u8868\u8bad\u7ec3\u5b66\u751f\u5982\u4f55\u5c06\u4e66\u9762\u4fe1\u606f\u8f6c\u6362\u81f3\u89c6\u89c9\u4fe1\u606f\u3002\u540c\u65f6\u4e5f\u53ef\u4ee5\u4f7f\u5b66\u751f\u5728\u8fd9\u4e2a\u63a8\u7406\u51b3\u7b56\u4ee5\u53ca\u91cd\u65b0\u7ec4\u7ec7\u7684\u8fc7\u7a0b\u4e2d\u80fd\u591f\u66f4\u597d\u7684\u83b7\u53d6\u77e5\u8bc6."},"education.pa2":{en:"Research suggests that there are three types of knowledge acquisition that drawing diagrams can reinforce. First, diagramming trains students to include relevant problem information, and to leave out irrelevant features. Second, it teaches students how to organize the relevant information spatially, and to see and understand proper relationships. Third, students are able to extend the knowledge and understanding represented by one diagram to other analogous situations or problem solving situations. At each stage, teachers can diagnose students' difficulties in gaining the proper understanding and intervene as needed.", zh:"\u7814\u7a76\u8868\u660e\uff0c\u901a\u8fc7\u7ed8\u5236\u56fe\u8868\u53ef\u4ee5\u52a0\u5f3a\u5bf9\u4e09\u79cd\u7c7b\u578b\u7684\u77e5\u8bc6\u7684\u83b7\u53d6\u3002\u9996\u5148\uff0c\u56fe\u8868\u57f9\u517b\u5b66\u751f\u4f7f\u7528\u76f8\u5173\u4fe1\u606f\u6765\u6982\u62ec\u95ee\u9898\u7684\u80fd\u529b\u3002\u5176\u6b21\uff0c\u5b83\u6559\u5bfc\u5b66\u751f\u5982\u4f55\u7ec4\u7ec7\u6709\u5173\u7684\u4fe1\u606f\u7a7a\u95f4\uff0c\u5e76\u660e\u767d\u4ec0\u4e48\u662f\u6b63\u786e\u7684\u5173\u7cfb\u3002\u7b2c\u4e09\uff0c\u5b66\u751f\u80fd\u591f\u6269\u5927\u5bf9\u77e5\u8bc6\u9762\u7684\u4e86\u89e3\uff0c\u4e00\u4e2a\u56fe\u8868\u6240\u4ee3\u8868\u7684\u5176\u4ed6\u7c7b\u4f3c\u60c5\u51b5\u4ee5\u53ca\u76f8\u5173\u95ee\u9898\u7684\u89e3\u51b3\u65b9\u5f0f\u3002\u5728\u6bcf\u4e00\u4e2a\u9636\u6bb5\uff0c\u6559\u5e08\u53ef\u4ee5\u51c6\u786e\u7684\u4e86\u89e3\u5230\u5b66\u751f\u7684\u56f0\u96be\uff0c\u5e76\u6839\u636e\u5b66\u751f\u9700\u8981\u8fdb\u884c\u6307\u5bfc\u3002"}, "education.h2b":{en:"Educational Pricing and Discounts",zh:"\u6559\u80b2\u673a\u6784\u4ef7\u683c\u548c\u6298\u6263"},"education.pb1":{en:"We are pleased to offer LucidChart free of charge to K-12 educators and students. LucidChart also offers group rates and discounts to higher education institutions. Please provide the details of your situation below.",zh:"\u6211\u4eec\u5f88\u9ad8\u5174\u4e3aK- 12\u6559\u80b2\u5de5\u4f5c\u8005\u548c\u5b66\u751f\u63d0\u4f9b\u514d\u8d39LucidChart\u3002 LucidChart\u8fd8\u5411\u9ad8\u7b49\u6559\u80b2\u673a\u6784\u63d0\u4f9b\u56e2\u4f53\u6298\u6263\u3002\u8bf7\u5728\u4e0b\u65b9\u4e3a\u6211\u4eec\u63d0\u4f9b\u60a8\u7684\u8be6\u7ec6\u4fe1\u606f\u3002"}, "education.label.email":{en:"Your Email Address",zh:"\u60a8\u7684\u7535\u5b50\u90ae\u7bb1\u5730\u5740"},"education.label.name":{en:"Your Name",zh:"\u60a8\u7684\u540d\u5b57"},"education.label.institution":{en:"Name of Institution",zh:"\u5355\u4f4d\u540d\u79f0"},"education.label.numusers":{en:"Number of Users",zh:"\u7528\u6237\u6570"},"education.label.content":{en:"How you plan to use LucidChart",zh:"\u60a8\u6253\u7b97\u5982\u4f55\u4f7f\u7528LucidChart"},"education.button.submit":{en:"Send Request", zh:"\u53d1\u9001\u8bf7\u6c42"},"bugs.report.h":{en:"Report A Problem",zh:"\u62a5\u544a\u95ee\u9898"},"bugs.report.p1":{en:"Found a bug or having problems with LucidChart? If you provide an email address, you will be contacted when your issue is resolved.",zh:"\u4f7f\u7528LucidChart\u7684\u8fc7\u7a0b\u4e2d\u53d1\u73b0\u9519\u8bef\u6216\u6709\u4efb\u4f55\u95ee\u9898\uff1f\u5982\u679c\u60a8\u5411\u6211\u4eec\u63d0\u4f9b\u60a8\u7684\u7535\u5b50\u90ae\u7bb1\u5730\u5740\uff0c \u5728\u95ee\u9898\u89e3\u51b3\u65f6\u6211\u4eec\u4f1a\u53ca\u65f6\u4e0e\u60a8\u8054\u7cfb"}, "bugs.report.p2":{en:"Be sure to include the following in your report:",zh:"\u8bf7\u786e\u5b9a\u5728\u60a8\u62a5\u544a\u4e2d\u5305\u542b\u4ee5\u4e0b\uff1a"},"bugs.report.li1":{en:"What browser you are using (e.g. Internet Explorer, FireFox)",zh:"\u60a8\u4f7f\u7528\u7684\u662f\u4ec0\u4e48\u6d4f\u89c8\u5668\uff08\u5982. Internet Explorer, FireFox)"},"bugs.report.li2":{en:"What operating system you are using (e.g. Windows XP, Mac OS X)",zh:"\u60a8\u4f7f\u7528\u7684\u662f\u4ec0\u4e48\u64cd\u4f5c\u7cfb\u7edf\uff08\u5982.Windows XP, Mac OS X)"}, "bugs.report.li3":{en:"Steps to follow to recreate the problem",zh:"\u91cd\u73b0\u95ee\u9898\u7684\u6b65\u9aa4"},"bugs.report.li4":{en:"If applicable, a link to the document with the problem",zh:"\u5982\u679c\u53ef\u884c\uff0c\u4e00\u4e2a\u5230\u95ee\u9898\u6587\u4ef6\u7684\u94fe\u63a5"},"bugs.report.label.title":{en:"Title Your Report",zh:"\u6807\u9898\u60a8\u7684\u62a5\u544a"},"bugs.report.label.content":{en:"Explain Your Problem",zh:"\u89e3\u91ca\u60a8\u7684\u95ee\u9898"},"bugs.report.button.submit":{en:"Report Problem", zh:"\u62a5\u544a\u95ee\u9898"},"fonts.link.my":{en:"My Fonts",zh:"\u6211\u7684\u5b57\u4f53"},"subnav.search.community":{en:"Search Community",zh:"\u793e\u533a\u641c\u7d22"},"subnav.h.community":{en:"Community",zh:"\u793e\u533a"},"subnav.examples.all":{en:"All Examples",zh:"\u5168\u90e8\u8303\u4f8b"},"subnav.examples.featured":{en:"Featured Examples",zh:"\u7cbe\u9009\u8303\u4f8b"},"subnav.h.categories":{en:"Categories",zh:"\u5206\u7c7b"},"subnav.categories.all":{en:"All Categories",zh:"\u5168\u90e8\u5206\u7c7b"}, "subnav.h.subcategories":{en:"Subcategories",zh:"\u5b50\u8303\u7574"},"subnav.subcategories.all":{en:"All Subcategories",zh:"\u5168\u90e8\u5b50\u8303\u7574"},"tooltip.share.facebook":{en:"Share on Facebook",zh:"\u5728Facebook\u4e0a\u5206\u4eab"},"tooltip.share.twitter":{en:"Share on Twitter",zh:"\u5728Twitter \u4e0a\u5206\u4eab"},"tooltip.share.buzz":{en:"Share on Google Buzz",zh:"\u5728Google Buzz \u4e0a\u5206\u4eab"},Facebook:{zh:"Facebook"},Twitter:{zh:"Twitter"},"Google Buzz":{zh:"Google Buzz"}, "subnav.h.share":{en:"Share",zh:"\u5206\u4eab"},"subnav.button.template.use":{en:"Use as Template",zh:"\u5f53\u4f5c\u6a21\u7248\u4f7f\u7528"},"subnav.button.example.open":{en:"Open this Example",zh:"\u6253\u5f00\u8fd9\u4e2a\u4f8b\u5b50"},"tierselect.h":{en:"Team Account",zh:"\u56e2\u961f\u8d26\u6237"},"tierselect.h2":{en:"Select your team size",zh:"\u9009\u62e9\u60a8\u7684\ufffd\ufffd\ufffd\u961f\u5927\u5c0f"},"tierselect.users":{en:"users",zh:"\u7528\u6237"},"tierselect.storage":{en:"GB Storage", zh:"GB\u50a8\u5b58\u7a7a\u95f4"},"tierselect.month":{en:"month",zh:"\u6708"},"tierselect.year":{en:"year",zh:"\u5e74"},"tierselect.annualsave":{en:"Save up to 17% with annual plans!",zh:"\u4f7f\u7528\u5e74\u5957\u9910\uff0c\u8282\u7701\u9ad8\u8fbe17%."},"tierselect.alert":{en:"Please select your team size.",zh:"\u8bf7\u9009\u62e9\u60a8\u7684\u56e2\u961f\u5927\u5c0f"},"notice.pending":{en:"Your %s subscription payment will soon be complete.",zh:"\u60a8\u7684%s\u4ed8\u6b3e\u6b63\u5728\u88ab\u5904\u7406\u4e4b\u4e2d\uff0c\u5e94\u5c3d\u5feb\u5b8c\u6210."}, "notice.trial.expires":{en:'Your free trial of %s expires in %d days. Click here to pay online.',zh:'\u60a8\u7684%s\u514d\u8d39\u8bd5\u7528\u671f\u5c06\u5728%d\u5929\u5185\u5931\u6548\u3002\u70b9\u51fb\u8fd9\u91cc\u5728\u7ebf\u652f\u4ed8'},"notice.fees.unpaid":{en:'You have unpaid subscription fees. Click here to pay online.',zh:'\u60a8\u6709\u672a\u4ed8\u7684\u8ba2\u9605\u8d39\u3002\u70b9\u51fb\u8fd9\u91cc\u5728\u7ebf\u652f\u4ed8'}, "notice.free.limited":{en:"Your free account limits the complexity of documents you create.",zh:"\u60a8\u7684\u514d\u8d39\u8d26\u6237\u9650\u5236\u60a8\u521b\u5efa\u6587\u4ef6\u7684\u590d\u6742\u6027\u3002"},"notice.trial.try":{en:"Try a paid account for free!",zh:"\u514d\u8d39\u4f7f\u7528\u4ed8\u8d39\u8d26\u6237"},"notice.upgrade":{en:"Upgrade to a paid account!",zh:"\u5347\u7ea7\u81f3\u4ed8\u8d39\u8d26\u6237"},"notice.card.expire":{en:'Your credit card may expire before your next renewal. Update your card\'s expiration date', zh:'\u60a8\u7684\u4fe1\u7528\u5361\u5c06\u5728\u60a8\u7684\u4e0b\u4e00\u6b21\u7eed\u8ba2\u4e4b\u524d\u8fc7\u671f\u3002\u8bf7\u66f4\u65b0\u60a8\u4fe1\u7528\u5361\u7684\u5931\u6548\u65e5\u671f'},"forums.search":{en:"Search Forums",zh:"\u641c\u7d22\u8bba\u575b"},"subnav.h.forums":{en:"Forums",zh:"\u8bba\u575b"},"Community Library":{zh:"\u793e\u533a\u56fe\u4e66\u9986"},"subnav.forums.myposts":{en:"All My Posts",zh:"\u6211\u7684\u6240\u6709\u53d1\u5e03"},"subnav.forums.contact":{en:"Contact Us", zh:"\u8054\u7cfb\u6211\u4eec"},"alert.tos.agree":{en:'You must agree to the Terms of Service before registering your account with LucidChart.',zh:'\u5728\u6ce8\u518cLucidChart\u8d26\u6237\u524d\uff0c\u5fc5\u987b\u540c\u610fTerms of Service (\u670d\u52a1\u6761\u6b3e) '},"invitation.accept.h":{en:"Accept Invitation for “%s”",zh:"\u63a5\u53d7“%s”\u7684\u9080\u8bf7"},"invitation.accept.h2.existing":{en:"Use an existing account", zh:"\u4f7f\u7528\u73b0\u6709\u8d26\u6237"},"invitation.accept.button.existing":{en:"Use Existing Account",zh:"\u4f7f\u7528\u73b0\u6709\u8d26\u6237"},"invitation.accept.h2.new":{en:"Create a new LucidChart account",zh:"\u521b\u5efa\u65b0\u7684LucidChart\u8d26\u6237"},"invitation.accept.button.new":{en:"Sign Up",zh:"\u6ce8\u518c"},"label.tos.agree":{en:'I agree to the Terms of Service.',zh:'\u6211\u540c\u610f\u670d\u52a1\u6761\u6b3e.'}, "label.firstname":{en:"First Name",zh:"\u540d"},"label.lastname":{en:"Last Name",zh:"\u59d3"},"label.email":{en:"Email",zh:"\u7535\u5b50\u90ae\u4ef6"},"label.password.repeat":{en:"Repeat Password",zh:"\u91cd\u590d\u5bc6\u7801"},"orginvitation.accept.h":{en:"Accept Invitation To Join %s",zh:"\u63a5\u53d7\u9080\u8bf7\u5e76\u52a0\u5165 %s"},"orginvitation.accept.h2.existing":{en:"Use an existing LucidChart account",zh:"\u4f7f\u7528\u73b0\u6709\u7684LucidChart\u8d26\u6237"},"orginvitation.accept.existing.p":{en:"If you accept this invitation with your existing LucidChart account, your account will be linked to the organization %s. Any existing paid subscription you have will be canceled, but you will share all the benefits of %s's subscription.", zh:"\u5982\u679c\u60a8\u4f7f\u7528\u60a8\u73b0\u6709LucidChart\u5e10\u6237\u6765\u63a5\u53d7\u6b64\u9080\u8bf7\uff0c\u60a8\u7684\u5e10\u6237\ufffd\ufffd\ufffd\u88ab\u94fe\u63a5\u5230\uff05s\u7684\u7ec4\u7ec7\uff0c\u60a8\u7684\u4efb\u4f55\u73b0\u6709\u7684\u4ed8\u8d39\u8ba2\u9605\u90fd\u5c06\u88ab\u53d6\u6d88\uff0c\u4f46\u60a8\u5c06\u5171\u4eab\uff05s\u7684\u8ba2\u9605\u7684\u6240\u6709\u597d\u5904.."},"orginvitation.accept.h2.new":{en:"Create a new LucidChart account",zh:"\u521b\u5efa\u65b0\u7684LucidChart\u8d26\u6237"}, "orginvitation.accept.new.p":{en:"You may also accept this invitation by creating a new LucidChart account. This account will be linked to the organization %s, and will share all the benefits of %s's subscription.",zh:"\u60a8\u4e5f\u53ef\u4ee5\u63a5\u53d7\u9080\u8bf7\u5e76\u5efa\u7acb\u4e00\u4e2a\u65b0\u7684LucidChart\u8d26\u6237\u3002\u6b64\u5e10\u6237\u5c06\u94fe\u63a5\u81f3\u8be5\u7ec4\u7ec7\u7684\uff05s\u5e76\u5c06\u5171\u4eab\u6240\u6709\uff05s\u7684\u8ba2\u9605\u7684\u597d\u5904\u3002"},"orginvitation.invite.h":{en:"Invite Users to Join Your Team", zh:"\u9080\u8bf7\u4e00\u4e2a\u7528\u6237\u52a0\u5165\u60a8\u7684\u56e2\u961f"},"orginvitation.invite.p1":{en:"To add users to your team, who will then share all the benefits of your own subscription, you may either set up their accounts yourself, or you may invite them via email on this page.",zh:"\u60a8\u5df2\u5efa\u7acb\u4e00\u4e2a\u56e2\u961f\u6765\u5206\u4eab\u60a8\u7684LucidChart\u5e10\u6237\u3002\u52a0\u5165\u5230\u60a8\u56e2\u961f\u7684\u7528\u6237\u53ef\u5171\u4eab\u6240\u6709\u60a8\u5e10\u6237\u62e5\u6709\u7684\u597d\u5904\u3002\u6dfb\u52a0\u7528\u6237\uff0c\u60a8\u53ef\u4ee5\u81ea\u5df1\u8bbe\u7f6e\uff0c\u4e5f\u53ef\u4ee5\u4ece\u8be5\u9875\u9762\u901a\u8fc7\u7535\u5b50\u90ae\u4ef6\u6765\u9080\u8bf7\u3002"}, "orginvitation.invite.p2":{en:"This form will send an email with an invitation link to join your team. The recipients can either sign up for a new LucidChart account or decide to join your team with their existing LucidChart account.",zh:"\u6b64\u8868\u5355\u5c06\u53d1\u9001\u5e26\u6709\u9080\u8bf7\u94fe\u63a5\u7684\u7535\u5b50\u90ae\u4ef6\u6765\u9080\u8bf7\u52a0\u5165\u60a8\u7684\u56e2\u961f\u3002\u6536\u4ef6\u4eba\u53ef\u4ee5\u6ce8\u518c\u4e00\u4e2a\u65b0LucidChart\u5e10\u6237\u6216\u51b3\u5b9a\u52a0\u5165\u5176\u73b0\u6709LucidChart\u5e10\u6237\u60a8\u7684\u56e2\u961f\u3002"}, "label.emailaddress":{en:"Email Address",zh:"\u7535\u5b50\u90ae\u4ef6\u5730\u5740"},"button.invitation.send":{en:"Send Invitation",zh:"\u53d1\u9001\u9080\u8bf7"},"orginvitation.inviteinitial.h":{en:"Invite Your Organization To LucidChart",zh:"\u9080\u8bf7\u60a8\u7684\u7ec4\u7ec7\u6765LucidChart"},"orginvitation.inviteinitial.p":{en:"Your %s account can be shared with up to %d members of your organization. Enter the name of your organization and the email addresses of those who you would like to share this account, separated by commas.", zh:"\u60a8\u7684\uff05s\u5e10\u6237\u53ef\u4ee5\u6709\u81f3\u591a\uff05d\u4e2a\u7ec4\u7ec7\u6210\u5458\u4e3a\u7528\u6237\u3002\u8bf7\u8f93\u5165\u60a8\u7684\u7ec4\u7ec7\u540d\u79f0\u548c\u60a8\u60f3\u9080\u8bf7\u52a0\u5165\u5e10\u6237\u4eba\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\uff08\u8bf7\u7528\u9017\u53f7\u5206\u9694\u540d\u79f0\uff09\u3002"},"label.org.name":{en:"Organization Name",zh:"\u7ec4\u7ec7\u540d"},"label.invitations.send.to":{en:"Send Invitations To:",zh:"\u53d1\u9001\u9080\u8bf7\u81f3"}, "orginvitation.inviteinitial.later":{en:"I will do this later",zh:"\u6211\u5c06\u7a0d\u540e\u518d\u505a"},"button.user.add":{en:"Add User",zh:"\u6dfb\u52a0\u7528\u6237"},"org.create.h":{en:"Team Setup",zh:"\u56e2\u961f\u7ec4\u5efa"},"org.create.p":{en:"You can create a team to share your account with additional users. These other users will share your paid subscription and all of its benefits. You will also be able to share your custom templates and custom images with them, allowing you to standardize document appearance across your organization.", zh:"\u60a8\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u56e2\u961f\uff0c\u4e0e\u5176\u4ed6\u7528\u6237\u5206\u4eab\u60a8\u7684\u5e10\u6237\u3002\u8fd9\u4e9b\u7528\u6237\u5206\u4eab\u60a8\u6240\u652f\u4ed8\u7684\u8ba2\u9605\u548c\u5176\u4ed6\u6240\u6709\u597d\u5904\u3002\u60a8\u4e5f\u53ef\u4ee5\u5206\u4eab\u60a8\u7684\u81ea\u5b9a\u4e49\u6a21\u677f\uff0c\u5e76\u7ed9\u4ed6\u4eec\u81ea\u5b9a\u4e49\u56fe\u50cf\u3002\u8ba9\u60a8\u7684\u7ec4\u7ec7\u62e5\u6709\u7edf\u4e00\u89c4\u8303\u7684\u6587\u6863\u5916\u89c2\u3002"}, "label.team.name":{en:"Team Name",zh:"\u56e2\u961f\u540d"},"button.team.create":{en:"Create Team",zh:"\u521b\u5efa\u56e2\u961f"},"button.upgrade.now":{en:"Upgrade Now",zh:"\u73b0\u5728\u5347\u7ea7"},"org.create.p2":{en:'%s does not allow you to share your account with other users in your team. You can upgrade to a Team subscription to remove this restriction.',zh:'\u60a8\u7684%s\u5e10\u6237\u4e0d\u5141\u8bb8\u6dfb\u52a0\u5176\u4ed6\u7528\u6237. \u60a8\u53ef\u4ee5\u5347\u7ea7\u5230\u56e2\u961f\u8ba2\u9605\u7ea7\u522b\u6765\u79fb\u9664\u6b64\u9650\u5236\u3002'}, "org.deleteuser.h":{en:"Delete User %s",zh:"\u5220\u9664\u7528\u6237 %s"},"org.deleteuser.p1":{en:'This action is not reversible. Please be absolutely sure you wish\nto delete this user.',zh:'\u8fd9\u4e00\u884c\u52a8\u662f\u4e0d\u53ef\u9006\u7684\u3002\u8bf7\u786e\u5b9a\u60a8\u786e\u5b9e\u5e0c\u671b\n\u5220\u9664\u8be5\u7528\u6237\u3002'},"org.deleteuser.p2a":{en:"This user has created %d documents. These documents are listed below. You need to decide which documents to permanently delete along with this user, and which you would like to take ownership of.", zh:"\u6b64\u7528\u6237\u5df2\u521b\u5efa\uff05d\u4e2a\u6587\u4ef6\u3002\u4e0b\u9762\u5217\u51fa\u4e86\u8fd9\u4e9b\u6587\u4ef6\u3002\u60a8\u9700\u8981\u51b3\u5b9a\u54ea\u4e9b\u6587\u4ef6\u5c06\u88ab\u6c38\u4e45\u5220\u9664\uff0c\u4ee5\u53ca\u54ea\u4e9b\u6587\u4ef6\u60a8\u60f3\u8981\u83b7\u5f97\u5176\u6240\u6709\u6743\u3002"},"button.document.delete":{en:"Delete Document",zh:"\u5220\u9664\u6587\u4ef6"},"button.ownership.take":{en:"Take Ownership",zh:"\u83b7\u53d6\u6240\u6709\u6743"},"org.deleteuser.p2b":{en:"This user has not created any documents. If they had, you would be given the option of deleting those documents or transferring ownership of them.", zh:"\u8be5\u7528\u6237\u8fd8\u6ca1\u6709\u521b\u5efa\u4efb\u4f55\u6587\u4ef6\u3002\u5982\u679c\u6709\uff0c\u60a8\u4f1a\u8003\u8651\u5220\u9664\u8fd9\u4e9b\u6587\u4ef6\u6216\u662f\u8f6c\u79fb\u6587\u4ef6\u7684\u6240\u6709\u6743\u3002"},"button.user.delete":{en:"Delete User",zh:"\u5220\u9664\u7528\u6237"},Title:{zh:"\u6807\u9898"},Action:{zh:"\u4f5c\u7528"},"Last Saved":{zh:"\u4e0a\u4e00\u4e2a\u4fdd\u5b58"},"org.deleteuser.docusers":{en:"Users",zh:"\u7528\u6237"},"org.gapps.h":{en:"LucidChart for your Google Apps domain", zh:"\u4e3a\u60a8\u7684Google Apps \u516c\u53f8\u57df\u540d\u5b89\u88c5LucidChart"},"org.gapps.p1a":{en:"Your LucidChart account is linked to the Google Apps domain %s.",zh:"\u60a8\u7684LucidChart\u8d26\u6237\u5df2\u94fe\u63a5\u81f3Google Apps \u57df\u540d%s\u3002"},"org.gapps.p2a":{en:"Any member of your Google Apps account who logs in to LucidChart from Google Apps will join your LucidChart organization with their existing LucidChart account (if they have one), or with a new one provisioned for them.", zh:"\u60a8Google Apps \u8d26\u6237\u7684\u6210\u5458\u901a\u8fc7Google Apps \u8fdb\u5165LucidChart\u65f6\uff0c\u5982\u679c\u5df2\u7ecf\u6709LucidChart\u5e10\u6237\u5219\u901a\u8fc7\u5df2\u6709\u7684LucidChart\u8d26\u6237\u52a0\u5165\u60a8\u7684LucidChart\u56e2\u961f\u3002\u5982\u679c\u4ed6\u4eec\u4e4b\u524d\u6ca1\u6709LucidChart\u5e10\u6237\uff0c\u5c06\u83b7\u5f97\u4e00\u4e2a\u65b0\u7684\u8d26\u6237\u3002"},"org.gapps.p1b":{en:"Install LucidChart into Google Apps, and everyone on your Google Apps domain will see a LucidChart link at the top of their Google Apps pages.", zh:"Google Apps\u4e0a\u5b89\u88c5 LucidChart\u4ee5\u540e, Google Apps\u57df\u540d\u7684\u4e0a\u65b9\u5c06\u4f1a\u663e\u793aLucidChart\u94fe\u63a5\u3002"},"org.gapps.p2b":{en:"Anyone who clicks through will join your LucidChart organization with their existing LucidChart account (if they have one), or with a new one provisioned for them.",zh:"\u4efb\u4f55\u4eba\u53ef\u901a\u8fc7\u4f7f\u7528\u73b0\u5b58\u7684LucidChart \u8d26\u6237\uff08\u5982\u679c\u6709\u7684\u8bdd\uff09\u70b9\u51fb\u52a0\u5165LucidChart \u56e2\u961f\u3002 \u6216\u8005\u5c06\u4f1a\u83b7\u5f97\u4e00\u4e2a\u65b0\u7684\u8d26\u6237\u3002"}, "org.gapps.p3b":{en:'IMPORTANT: If your Google Apps email address is not %s, then you need to update your email address in LucidChart to match your Google Apps email address. Otherwise a new account will be created with your Google Apps email address.',zh:'\u91cd\u8981\uff1a\u5982\u679c\u60a8\u7684Google Apps\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u4e0d\u662f%s\uff0c\u90a3\u4e48\u60a8\u9700\u8981\u5728LucidChart \u66f4\u65b0\u60a8\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u4f7f\u5b83\u548c\u60a8Google Apps \u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u76f8\u7b26\u3002 \u5426\u5219\u4e00\u4e2a\u65b0\u7684LucidChart\u8d26\u6237\u5c06\u901a\u8fc7\u4f7f\u7528\u60a8google apps \u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u800c\u88ab\u521b\u9020\u3002'}, "org.gapps.p4b":{en:"EVEN MORE IMPORTANT: Be the first user to click through from Google Apps; that will make your account the LucidChart administrator on that domain.",zh:"\u751a\u81f3\u66f4\u91cd\u8981\uff1a \u8bf7\u52a1\u5fc5\u60a8\u662f\u7b2c\u4e00\u540d\u961f\u5458\u901a\u8fc7Google Apps\u70b9\u51fb\u800c\u8fdb\u5165LucidChart\uff1b\u8fd9\u6837\u5c31\u80fd\u4fdd\u8bc1\u60a8\u7684\u8d26\u6237\u5728\u8be5\u57df\u6210\u4e3aLucidChart\u7ba1\u7406\u5458\u3002"},"button.changes.save":{en:"Save Changes", zh:"\u4fdd\u5b58\u53d8\u66f4"},"org.settings.h":{en:"My Team: %s",zh:"\u6211\u7684\u56e2\u961f\uff1a%s"},"org.uploadusers.h":{en:"Upload Users",zh:"\u4e0a\u4f20\u7528\u6237"},"org.uploadusers.p1":{en:"You may add multiple users to your team by uploading a CSV file containing the information for each account. Most spreadsheet software, such as Microsoft Excel, OpenOffice.org, and iWork, can save spreadsheets in CSV format.",zh:"\u60a8\u53ef\u4ee5\u901a\u8fc7\u4e0a\u4f20\u4e00\u4e2acsv\u6587\u6863\uff0c\u5305\u542b\u6bcf\u4e2a\u8d26\u6237\u4fe1\u606f\uff0c\u6765\u6dfb\u52a0\u591a\u4e2a\u7528\u6237\u81f3\u60a8\u7684\u56e2\u961f. \u5927\u90e8\u5206\u7684\u7535\u5b50\u8868\u683c\u8f6f\u4ef6\uff0c \u4f8b\u5982 Microsoft Excel, OpenOffice.org, \u4ee5\u53caiWork, \u53ef\u4ee5\u7528CSV\u683c\u5f0f\u4fdd\u5b58\u7535\u5b50\u8868\u3002"}, "org.uploadusers.p2":{en:'Your current %s subscription allows you a total of %d users; you may upload %d more users now. Upgrade now if you need a larger subscription.',zh:"\u60a8\u73b0\u6709\u7684%s\u8ba2\u9605\u5141\u8bb8\u60a8\u62e5\u6709\u603b\u5171%d\u7684\u7528\u6237\uff1b\u60a8\u53ef\u4ee5\u73b0\u5728\u4e0a\u4f20%d\u66f4\u591a\u7684\u7528\u6237\u3002"},"org.uploadusers.p3":{en:"Your spreadsheet should look like this:",zh:"\u60a8\u7684\u7535\u5b50\u8868\u683c\u5e94\u8be5\u770b\u8d77\u6765\u662f\u8fd9\u6837\u7684\uff1a"}, "label.line":{en:"Line",zh:"\u7ebf\u6bb5"},"org.uploadusers.p4":{en:"Your upload had the following errors:",zh:"\u60a8\u7684\u4e0a\u4f20\u6709\u4ee5\u4e0b\u9519\u8bef\uff1a"},"org.uploadusers.p5":{en:"Please correct these errors and try again.",zh:"\u8bf7\u5728\u66f4\u6b63\u8fd9\u4e9b\u9519\u8bef\u540e\u518d\u8bd5\u4e00\u6b21"},"button.users.upload":{en:"Upload Users",zh:"\u4e0a\u4f20\u7528\u6237"},"org.users.h":{en:"My Team: %s",zh:"\u6211\u7684\u56e2\u961f\uff1a%s"},"org.users.p1":{en:"These users share your paid subscription and all of its benefits. Depending on your subscription level, you will also be able to share your custom templates and custom images with them, allowing you to standardize document appearance across your organization.", zh:"\u8fd9\u4e9b\u7528\u6237\u5206\u4eab\u60a8\u6240\u652f\u4ed8\u7684\u8ba2\u9605\u548c\u5176\u4ed6\u6240\u6709\u597d\u5904\u3002\u6839\u636e\u60a8\u7684\u8ba2\u9605\u7ea7\u522b\u7684\u4e0d\u540c\uff0c\u60a8\u4e5f\u53ef\u4ee5\u5206\u4eab\u60a8\u7684\u81ea\u5b9a\u4e49\u6a21\u677f\uff0c\u5e76\u7ed9\u4ed6\u4eec\u81ea\u5b9a\u4e49\u56fe\u50cf\u3002\u8ba9\u60a8\u7684\u7ec4\u7ec7\u62e5\u6709\u7edf\u4e00\u89c4\u8303\u7684\u6587\u6863\u5916\u89c2\u3002"},"label.user":{en:"User",zh:"\u7528\u6237"},"label.role":{en:"Role", zh:"\u89d2\u8272"},"label.actions":{en:"Actions",zh:"\u64cd\u4f5c"},"org.users.p2d":{en:"Your current %s subscription allows you to have up to %s users in your organization.",zh:"\u60a8\u73b0\u6709\u7684 %s \u8ba2\u9605\u7ea7\u522b\u53ea\u5141\u8bb8\u60a8\u7684\u56e2\u961f\u62e5\u6709\u81f3\u591a %s \u7528\u6237"},"org.users.p3d":{en:"Your students can sign up any time through the following URL:",zh:"\u60a8\u7684\u5b66\u751f\u5c06\u53ef\u4ee5\u5728\u4efb\u610f\u65f6\u95f4\u6ce8\u518c\u901a\u8fc7\u4ee5\u4e0b URL\u94fe\u63a5\uff1a"}, "button.user.invite":{en:"Invite A User",zh:"\u9080\u8bf7\u4e00\u4e2a\u7528\u6237"},"button.user.add.new":{en:"Add New User",zh:"\u6dfb\u52a0\u65b0\u7528\u6237"},"button.users.upload.csv":{en:"Upload Users (CSV)",zh:"\u4e0a\u4f20\u7528\u6237 \uff08CSV)"},"org.users.p2c":{en:"Your current %s subscription only allows you to have up to %d users in your organization.",zh:"\u60a8\u73b0\u6709\u7684 %s \u8ba2\u9605\u7b49\u7ea7\u53ea\u5141\u8bb8\u60a8\u7684\u56e2\u961f\u62e5\u6709\u81f3\u591a %d \u7528\u6237"}, "org.users.p3c":{en:'None of the other users listed here will be able to sign in until you delete %d users from your account or upgrade to a higher subscription level.',zh:'\u4ee5\u4e0b\u6240\u5217\u7684\u7528\u6237\u76ee\u524d\u4e0d\u5141\u8bb8\u767b\u5f55\u3002\u8bf7\u4ece\u60a8\u7684\u8d26\u6237\u4e2d\u5220\u9664%d\u7528\u6237\u6216 \u5347\u7ea7\u81f3\u66f4\u9ad8\u7684\u8ba2\u9605\u7b49\u7ea7\u3002 '},"org.users.p2b":{en:"%s does not allow you to have multiple users on your account.", zh:"\u60a8\u7684%s\u8d26\u6237\u4e0d\u5141\u8bb8\u62e5\u6709\u591a\u4e2a\u4f7f\u7528\u8005 "},"org.users.p3b":{en:'None of the other users listed here will be able to sign in until you upgrade to a Team subscription.',zh:'\u60a8\u5fc5\u987b\u5148\u5347\u7ea7\u81f3\u56e2\u961f\u8ba2\u9605\uff0c\u4ee5\u4e0b\u6240\u5217\u7684\u7528\u6237\u624d\u80fd\u767b\u5f55'},"org.users.p3a":{en:'None of the other users listed here will be able to sign in until you pay for your %s subscription.', zh:'\u60a8\u5fc5\u987b\u5148\u652f\u4ed8\u60a8\u7684%s\u8ba2\u9605\u8d39\uff0c\u4ee5\u4e0b\u6240\u5217\u7684\u7528\u6237\u624d\u80fd\u767b\u3002'},"referrals.email.invalid.pre":{en:"The following email addresses you entered do not appear to be valid:",zh:"\u4ee5\u4e0b\u60a8\u6240\u8f93\u5165\u7684\u7535\u5b50\u90ae\u7bb1\u5730\u5740\u4e0d\u53ef\u7528\uff1a"},"referrals.email.invalid.post":{en:'Click "Cancel" to correct these changes.',zh:"\u70b9\u51fb\u53d6\u6d88\u6765\u7ea0\u6b63\u8fd9\u4e9b\u53d8\u5316"}, "referrals.h":{en:"LucidChart Referrals",zh:"LucidChart \u63a8\u4ecb"},"referrals.p":{en:"For every friend who joins and uses LucidChart, we'll give you both a free month.",zh:"\u5bf9\u4e8e\u6bcf\u4e00\u4e2a\u52a0\u5165\u4f7f\u7528LucidChart\u7684\u670b\u53cb\uff0c\u6211\u4eec\u5c06\u7ed9\u4e88\u60a8\u4eec\u5404\u81ea\u4e00\u4e2a\u6708\u7684\u514d\u8d39\u8bd5\u7528"},"referrals.tab.invite":{en:"Invite Your Friends",zh:"\u9080\u8bf7\u60a8\u7684\u670b\u53cb"},"referrals.tab.status":{en:"Referral Status", zh:"\u63a8\u4ecb\u72b6\u6001"},"referrals.tab.credits":{en:"Referral Credits",zh:"\u63a8\u4ecb\u70b9\u6570"},"referrals.invite.l.h2":{en:"Invite by Email",zh:"\u901a\u8fc7\u7535\u5b50\u90ae\u4ef6\u9080\u8bf7"},"referrals.invite.l.p":{en:"Type a list of email addresses:",zh:"\u8f93\u5165\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u5217\u8868\uff1a"},"button.invites.send":{en:"Send Invites",zh:"\u53d1\u9001\u9080\u8bf7"},"referrals.invite.r.h2":{en:"Share This Link",zh:"\u5206\u4eab\u6b64\u94fe\u63a5"},"referrals.invite.r.twitter":{en:"Sign up for @LucidChart, an online and collaborative diagramming application, and get 1 free month of premium features!", zh:"\u8d76\u5feb\u5728LucidChart\u8fd9\u4e2a\u5728\u7ebf\u534f\u4f5c\u7ed8\u56fe\u5e94\u7528\u8f6f\u4ef6\u4e2d\u6ce8\u518c\uff0c\u5e76\u83b7\u5f971\u4e2a\u6708\u514d\u8d39\u7684\u9ad8\u7ea7\u529f\u80fd\u8bd5\u7528\uff01"},"twitter.chars.remaining":{en:"characters remaining",zh:"\u5269\u4f59\u5b57\u7b26 "},"referrals.invite.altlink":{en:"or use this link with friends:",zh:"\u6216\u4e0e\u670b\u53cb\u4f7f\u7528\u6b64\u94fe\u63a5\uff1a"},"referrals.status.h3":{en:"Referrals",zh:"\u63a8\u4ecb"},"referrals.status.step1.h":{en:"Step 1", zh:"\u7b2c\u4e00\u6b65"},"referrals.status.step1":{en:"Invited",zh:"\u5df2\u9080\u8bf7"},"referrals.status.step1.desc":{en:"Invitation sent",zh:"\u9080\u8bf7\u5df2\u53d1\u9001"},"referrals.status.step2.h":{en:"Step 2",zh:"\u7b2c\u4e8c\u6b65"},"referrals.status.step2":{en:"Registered",zh:"\u5df2\u6ce8\u518c"},"referrals.status.step2.desc":{en:"Your friend joined LucidChart",zh:"\u60a8\u7684\u670b\u53cb\u52a0\u5165\u4e86LucidChart"},"referrals.status.step3.h":{en:"Step 3",zh:"\u7b2c\u4e09\u6b65"},"referrals.status.step3":{en:"Confirmed", zh:"\u5df2\u786e\u8ba4"},"referrals.status.step3.desc":{en:"They confirmed their account",zh:"\u4ed6\u4eec\u5df2\u786e\u8ba4\u4ed6\u4eec\u7684\u8d26\u6237"},"label.updated":{en:"Updated",zh:"\u5df2\u66f4\u65b0"},"label.status":{en:"Status",zh:"\u72b6\u6001"},"referrals.status.step1.5":{en:"Viewed",zh:"\u5df2\u9605"},"referrals.status.step3.note":{en:"Referrals will receive an email with a confirmation link 3-6 days from the time they sign up.",zh:"\u63a8\u4ecb\u8005\u5c06\u4f1a\u5728\u4ed6\u4eec\u6ce8\u518c\u540e\u76843\u81f36\u5929\u91cc\u6536\u5230\u4e00\u5c01\u9644\u6709\u786e\u8ba4\u94fe\u63a5\u7684\u90ae\u4ef6"}, "label.description":{en:"Description",zh:"\u63cf\u8ff0"},"referrals.credit.label.cost":{en:"Cost",zh:"\u8d39\u7528 "},"referrals.credit.button.redeem":{en:"Redeem Credit",zh:"\u5151\u6362\u70b9\u6570"},"referrals.credit.h2":{en:"You have %d referral credit(s) available for use.",zh:"\u60a8\u6709 %d \u63a8\u4ecb\u70b9\u6570\u53ef\u4f7f\u7528"},"referrals.month.free":{en:"1 Free Month",zh:"\u4e00\u4e2a\u6708\u514d\u8d39"},"referrals.month.personal.free":{en:"1 Free Personal Month",zh:"\u514d\u8d39\u7684\u4e00\u4e2a\u6708\u4e2a\u4eba\u8d26\u6237"}, "referrals.month.pro.free":{en:"1 Free Professional Month",zh:"\u514d\u8d39\u7684\u4e00\u4e2a\u6708\u4e13\u4e1a\u8d26\u6237"},"referrals.month.pro.upgrade":{en:"1 Month Professional Upgrade",zh:"\u4e00\u4e2a\u6708\u7684\u4e13\u4e1a\u8d26\u6237\u5347\u7ea7"},"referrals.month.personal.credit.desc":{en:"Get one month credit for a LucidChart Personal account.",zh:"LucidChart \u4e2a\u4eba\u8d26\u6237\u5c06\u83b7\u5f97\u4e00\u4e2a\u6708\u7684\u70b9\u6570"},"referrals.month.pro.credit.desc":{en:"Get one month credit for a LucidChart Professional account.", zh:"LucidChart \u4e13\u4e1a\u8d26\u6237\u5c06\u83b7\u5f97\u4e00\u4e2a\u6708\u7684\u70b9\u6570 "},"referrals.month.pro.extend.desc":{en:"Get one month credit for your LucidChart Professional account.",zh:"\u60a8\u7684LucidChart \u4e13\u4e1a\u8d26\u6237\u5c06\u83b7\u5f97\u4e00\u4e2a\u6708\u7684\u70b9\u6570"},"referrals.month.pro.upgrade.desc":{en:"Get one month free upgrade to LucidChart Professional.",zh:"\u83b7\u5f97\u4e00\u4e2a\u6708\u7684\u514d\u8d39\u5347\u7ea7\u81f3LucidChart\u4e13\u4e1a\u8d26\u6237"}, "referrals.month.team.credit.desc":{en:"Get one month credit for your LucidChart Team account.",zh:"\u60a8\u7684LucidChart\ufffd\ufffd\ufffd\u961f\u8d26\u6237\u5f97\u5230\u4e00\u4e2a\u6708\u70b9\u6570"},"forum.button.backtothread":{en:"Back to thread",zh:"\u56de\u5230\u4e3b\u9898"},"forum.post.edit.h2":{en:"Edit Post In: %s",zh:"\u7f16\u8f91\u6587\u672c\uff1a%s"},"label.post.delete":{en:"Delete this post",zh:"\u5220\u9664\u8fd9\u7bc7\u6587\u7ae0"},"forum.post.label.subject":{en:"Subject",zh:"\u4e3b\u9898"}, "forum.post.label.body":{en:"Your Message",zh:"\u60a8\u7684\u4e3b\u9898"},"forum.post.search.empty.p":{en:"No forum posts matched your search.",zh:"\u5728\u8bba\u575b\u4e0a\u6ca1\u6709\u627e\u5230\u60a8\u6240\u641c\u7d22\u7684\u4fe1\u606f"},"forum.post.user.none.p":{en:"This user has not made any posts on these forums.",zh:"\u6b64\u7528\u6237\u6ca1\u6709\u5728\u8bba\u575b\u4e0a\u53d1\u5e03\u4efb\u4f55\u5185\u5bb9"},"forum.post.user.h":{en:"All Posts By: %s",zh:"\u53d1\u5e03\u8005\uff1a%s"},"forum.thread.create.h2":{en:"Post New Thread", zh:"\u53d1\u5e03\u65b0\u4e3b\u9898"},"forum.thread.subject.label":{en:"Subject",zh:"\u4e3b\u9898"},"forum.thread.body.label":{en:"Your Message",zh:"\u60a8\u7684\u4e3b\u9898"},"forum.thread.subscribe.label":{en:"Notify me of replies to this thread by email",zh:"\u5f53\u6709\u4eba\u56de\u590d\u6b64\u4e3b\u9898\u65f6\u8bf7\u901a\u8fc7\u90ae\u4ef6\u63d0\u793a\u6211"},"forum.thread.button.post":{en:"Post Thread",zh:"\u65b0\u5efa\u4e3b\u9898"},"forum.thread.button.new":{en:"+ New Topic",zh:"\u65b0\u4e3b\u9898"}, "forum.thread.th.topics":{en:"Topics",zh:"\u4e3b\u9898"},"forum.thread.th.replies":{en:"Replies",zh:"\u56de\u590d"},"forum.thread.th.latest":{en:"Last Post",zh:"\u6700\u8fd1\u53d1\u5e16"},"author.by":{en:"by %s",zh:"%"},"forum.thread.empty.p":{en:"This forum is empty.",zh:"\u6b64\u8bba\u575b\u65e0\u5185\u5bb9"},"forum.reply.button.post":{en:"Post Reply",zh:"\u53d1\u5e16\u56de\u590d"},"forum.view.button.post":{en:"+ Post Reply",zh:"(+) \u53d1\u5e16\u56de\u590d"},"unsubscribe.h":{en:"Unsubscribe From LucidChart Emails", zh:"\u53d6\u6d88\u8ba2\u9605\u6765\u81eaLucidChart\u7684\u90ae\u4ef6"},"unsubscribe.p1":{en:"This will add a single email address to the do-not-contact list for LucidChart.",zh:"\u8fd9\u5c06\u4f1a\u5728LucidChart\u7684\u505c\u6b62\u8054\u7edc\u540d\u5355\u4e0a\u589e\u52a0\u4e00\u4e2a\u90ae\u4ef6\u5730\u5740"},"unsubscribe.p2":{en:"You will not receive a confirmation email or any future emails to this address.",zh:"\u6b64\u90ae\u4ef6\u5730\u5740\u5c06\u4e0d\u4f1a\u518d\u6536\u5230\u4efb\u4f55\u786e\u8ba4\u90ae\u4ef6\u6216\u5c06\u6765\u7684\u90ae\u4ef6"}, "unsubscribe.button.unsubscribe":{en:"Unsubscribe",zh:"\u53d6\u6d88\u8ba2\u9605"},"users.close.h":{en:"Close Account",zh:"\u5173\u95ed\u8d26\u6237"},"users.close.confirm":{en:"Are you absolutely sure? This action cannot be undone.",zh:"\u60a8\u786e\u8ba4\u8981\u8fd9\u6837\u505a\u5417\uff1f\u6b64\u884c\u4e3a\u5c06\u65e0\u6cd5\u88ab\u53d6\u6d88\u3002"},"users.close.h2.cancel":{en:"Cancel your paid %s subscription",zh:"\u53d6\u6d88\u60a8\u652f\u4ed8\u7684%\u7684\u8ba2\u91d1"},"users.close.p1":{en:"Canceling your paid subscription will set your account as a free account with limited features.", zh:"\u53d6\u6d88\u60a8\u652f\u4ed8\u7684\u5b9a\u91d1\u5c06\u4f1a\u4f7f\u60a8\u7684\u8d26\u6237\u53d8\u6210\u53ea\u6709\u6709\u9650\u529f\u80fd\u7684\u514d\u8d39\u8d26\u6237\u3002"},"users.close.p2":{en:"You will be credited the unused portion of your previous payment, %s, if you decide to pay again later.",zh:"\u5982\u679c\u60a8\u51b3\u5b9a\u4ee5\u540e\u518d\u6b21\u4ed8\u6b3e\u7684\u8bdd\uff0c\u6211\u4eec\u4f1a\u8fd4\u8fd8\u60a8\u4e4b\u524d\u652f\u4ed8\u7684\u8d39\u7528\u4e2d\u6ca1\u6709\u4f7f\u7528\u7684%\ufffd\ufffd\ufffd"}, "users.close.button.cancel":{en:"Cancel your paid subscription",zh:"\u53d6\u6d88\u60a8\u652f\u4ed8\u7684\u8ba2\u91d1"},"users.close.h2.close":{en:"Close your LucidChart account entirely",zh:"\u6c38\u4e45\u5173\u95ed\u60a8\u7684LucidChart\u8d26\u6237"},"users.close.p3":{en:"You will no longer be able to sign in to view or edit\nany of your documents.",zh:"\u60a8\u5c06\u4e0d\u53ef\u4ee5\u518d\u6b21\u767b\u5f55\u6216\u7f16\u8f91\u60a8\u4efb\u4f55\u7684\u8d26\u6237\u3002"},"users.close.button.close":{en:"Close your LucidChart account", zh:"\u5173\u95ed\u60a8\u7684LucidChart\u8d26\u6237"},"users.forgotpass.h":{en:"Reset Forgotten Password",zh:"\u91cd\u8bbe\u5fd8\u8bb0\u7684\u5bc6\u7801"},"users.forgotpass.p":{en:"Please enter the user name or email address for your account. You will be emailed a\nlink to reset your password.",zh:"\u8bf7\u8f93\u5165\u60a8\u8d26\u6237\u7684\u7528\u6237\u540d\u548c\u90ae\u7bb1\u5730\u5740\u3002\u60a8\u5c06\u4f1a\u6536\u5230\u4e00\u4e2a\u94fe\u63a5\u6765\u91cd\u8bbe\u60a8\u7684\u5bc6\u7801\u3002"}, "label.usernameoremail":{en:"User name or email address",zh:"\u7528\u6237\u540d\u6216\u90ae\u7bb1\u5730\u5740"},"users.forgotpass.button.send":{en:"Send Reset Link",zh:"\u53d1\u9001\u91cd\u8bbe\u94fe\u63a5"},"users.level.h":{en:"Subscription Level",zh:"\u8ba2\u9605\u7b49\u7ea7"},"users.level.p1a":{en:"You are currently using %s.",zh:"\u60a8\u73b0\u5728\u5df2\u7ecf\u4f7f\u7528\u4e86%\u3002"},"users.level.p2a":{en:"You are currently using your free trial period. You may change your free trial to a different subscription level if you like.", zh:"\u60a8\u73b0\u5728\u6b63\u5728\u4f7f\u7528\u8bd5\u7528\u7248\u3002\u5982\u679c\u60a8\u559c\u6b22\u6211\u4eec\u7684\u8f6f\u4ef6\uff0c\u60a8\u53ef\u4ee5\u5347\u7ea7\u8bd5\u7528\u7248\u5230\u5176\u4ed6\u7684\u8ba2\u9605\u7b49\u7ea7\u3002"},"users.level.p1b":{en:"You have changed your subscription level from %s to %s. Until you pay the subscription fee for %s, you will not have access to its features.",zh:"\u60a8\u5df2\u7ecf\u5c06\u60a8\u7684\u8ba2\u9605\u7b49\u7ea7\u4ece%\u6539\u6210\u4e86%\u3002\u76f4\u5230\u60a8\u652f\u4ed8%\u7684\u8d39\u7528\u4e3a\u6b62\uff0c\u60a8\u5c06\u4e0d\u80fd\u4f7f\u7528\u8fd9\u4e2a\u529f\u80fd\u3002"}, "users.level.p3a":{en:"You have %s credit on your account.",zh:"\u60a8\u6709%\u6dfb\u52a0\u5230\u4e86\u60a8\u7684\u8d26\u6237\u3002"},"users.level.button.trial":{en:"%d-Day Free Trial",zh:"%\u7684\u514d\u8d39\u8bd5\u7528"},"users.level.button.personal.keep":{en:"Keep Personal",zh:"\u4fdd\u6301\u4e2a\u4eba\u7248"},"button.upgrade":{en:"Upgrade",zh:"\u5347\u7ea7"},"label.downgrade":{en:"Downgrade",zh:"\u964d\u7ea7"},"users.level.button.pro.keep":{en:"Keep Professional",zh:"\u4fdd\u6301\u4e13\u4e1a\u7248"}, "users.level.button.tier.change":{en:"Change Tier",zh:"\u66f4\u6539\u7b49\u7ea7"},"users.level.personal.h":{en:"Personal",zh:"\u4e2a\u4eba\u7248"},"users.level.personal.desc":{en:"For individuals",zh:"\u4e3a\u4e2a\u4eba\u4f7f\u7528"},"users.level.pro.h":{en:"Professional",zh:"\u4e13\u4e1a\u7248"},"users.level.pro.desc":{en:"For independent professionals",zh:"\u4e3a\u72ec\u7acb\u7684\u4e13\u4e1a\u4eba\u5458"},"users.level.team.h":{en:"Team",zh:"\u56e2\u961f"},"users.level.team.desc":{en:"For businesses and workgroups", zh:"\u4e3a\u5546\u4e1a\u548c\u5de5\u4f5c\u56e2\u961f"},or:{zh:"\u6216\u8005"},"users.level.td.1user":{en:"1 User",zh:"1\u4e2a\u4f7f\u7528\u8005"},"users.level.td.multiuser":{en:"Multiple Users",zh:"\u591a\u4e2a\u4f7f\u7528\u8005"},"users.level.td.personal.collab":{en:"5 Collaborators",zh:"5\u4e2a\u5408\u4f5c\u8005"},"users.level.td.pro.collab":{en:"Unlimited Collaborators",zh:"\u65e0\u4e0a\u9650\u7684\u5408\u4f5c\u8005"},"users.level.td.team.collab":{en:"Unlimited Collaborators",zh:"\u65e0\u4e0a\u9650\u7684\u5408\u4f5c\u8005"}, startingat:{en:"Starting at %s",zh:"\u4ece%\u5f00\u59cb"},"users.level.td.premiumfeatures":{en:"Premium Features",zh:"\u989d\u5916\u7684\u529f\u80fd"},"users.level.td.pro.features":{en:"MS Visio Import/Export (.vdx)
Wireframing / iOS Mockups
Revision history",zh:"SSL \u52a0\u5bc6
\u6846\u67b6\u56fe/iPhone\u6a21\u578b
\u4fee\u6539\u5386\u53f2"},"users.level.td.team.features":{en:"MS Visio Import/Export (.vdx)
Wireframing / iOS Mockups
Revision history
Shared templates and images", zh:"SSL \u52a0\u5bc6
\u6846\u67b6\u56fe/iPhone\u6a21\u578b
\u4fee\u6539\u5386\u53f2
\u5206\u4eab\u7684\u6a21\u677f\u548c\u56fe\u7247"},"users.level.contact.p":{en:'Contact us for educational and enterprise solutions.',zh:'\u8054\u7cfb\u6211\u4eec\u4e3a\u4e86\u6559\u80b2\u548c\u4f01\u4e1a\u65b9\u6848\u3002'},signupfree:{en:"Sign up for free",zh:"\u514d\u8d39\u6ce8\u518c"},"users.pay.h":{en:"Subscription Payments", zh:"\u8ba2\u91d1\u652f\u4ed8"},"users.pay.h2.pay":{en:"Pay your %s subscription fee",zh:"\u652f\u4ed8\u60a8\u7684%\u7684\u5b9a\u91d1\u8d39\u7528"},"users.pay.p.level.changed":{en:"You have changed your subscription level from %s to %s. Until you pay the subscription fee for %s, you will not have access to its features.",zh:"\u60a8\u5df2\u7ecf\u5c06\u60a8\u7684\u8ba2\u9605\u7b49\u7ea7\u4ece%\u6539\u6210\u4e86%\u3002\u76f4\u5230\u60a8\u652f\u4ed8%\u7684\u8d39\u7528\u4e3a\u6b62\uff0c\u60a8\u5c06\u4e0d\u80fd\u4f7f\u7528\u8fd9\u4e2a\u529f\u80fd\u3002"}, "users.pay.p.trial":{en:"Your free trial of %s expires on %s. You may pay this fee now, or after your free trial expires.",zh:"\u60a8%\u7684\u514d\u8d39\u8bd5\u7528\u4e2d\u7684%\u5df2\u7ecf\u8fc7\u671f\u4e86\u3002\u60a8\u53ef\u4ee5\u73b0\u5728\uff0c\u6216\u7b49\u5230\u60a8\u514d\u8d39\u8bd5\u7528\u5230\u671f\u4e4b\u540e\uff0c\u652f\u4ed8\u6b64\u8d39\u7528\u3002"},"users.pay.p.warning":{en:"You need to pay your %s subscription fee before %s, or your subscription will be suspended.",zh:"\u60a8\u9700\u8981\u5728\u8fd8\u5269%\u4e4b\u524d\u652f\u4ed8\u60a8%\u7684\u5b9a\u91d1\uff0c\u4e0d\u7136\u60a8\u7684\u8ba2\u9605\u5c06\u4f1a\u88ab\u63a8\u8fdf\u3002"}, "users.pay.p.subscription.cost":{en:"Your subscription cost is %s or %s.",zh:"\u60a8\u7684\u8ba2\u9605\u8d39\u7528\u662f%\u6216%\u3002"},"users.pay.p.credit":{en:"Your next payment will be reduced by up to %s due to a credit on your account.",zh:"\u56e0\u4e3a\u60a8\u7684\u8d26\u6237\u4e2d\u6709\u591a\u4f59\u7684\u4f59\u989d\uff0c\u60a8\u4e0b\u6b21\u7684\u652f\u4ed8\u8d39\u7528\u6700\u591a\u53ef\u51cf\u5c11%\u3002"},"users.pay.p.creditsurplus":{en:"You have a credit for %s on your account. This amount will cover your next %s in fees paid.", zh:"\u60a8\u7684\u8d26\u6237\u4e2d\u6709%\u7684\u4f59\u989d\u3002\u6b64\u4f59\u989d\u53ef\u4ee5\u8986\u76d6\u60a8\u4e0b\u6b21%\u7684\u8d39\u7528\u3002"},"button.pay.monthly":{en:"Pay Monthly",zh:"\u6bcf\u6708\u652f\u4ed8"},"button.pay.annually":{en:"Pay Annually",zh:"\u6bcf\u5e74\u652f\u4ed8"},"button.pay.now":{en:"Pay Now",zh:"\u73b0\u5728\u652f\u4ed8"},"users.pay.h2.level":{en:"Current Subscription Level",zh:"\u73b0\u5728\u7684\u8ba2\u9605\u7b49\u7ea7"},"users.pay.p.currentlevel":{en:"You are currently using %s.", zh:"\u60a8\u73b0\u5728\u6b63\u5728\u4f7f\u7528%\u3002"},"users.pay.p.currentcost":{en:"This subscription costs %s.",zh:"\u6b64\u8ba2\u9605\u7b49\u7ea7\u9700\u8981\u82b1\u8d39%\u3002"},"users.pay.p.paidup":{en:"You are paid up through %s.",zh:"\u60a8\u6700\u591a\u4ed8\u5b8c\u4e86%\u3002"},"users.pay.h2.history":{en:"Payment History",zh:"\u652f\u4ed8\u5386\u53f2"},"users.pay.th.paid":{en:"Date",zh:"\u5df2\u652f\u4ed8"},"users.pay.th.level":{en:"Description",zh:"\u8ba2\u9605\u7b49\u7ea7"},"users.pay.th.method":{en:"Payment Method", zh:"\u652f\u4ed8\u65b9\u6cd5"},"users.pay.th.amount":{en:"Amount",zh:"\u6570\u91cf"},"prefs.h":{en:"Editor Preferences",zh:"\u7f16\u8f91\u8005\u504f\u597d"},"prefs.legend.zoom":{en:"Default Zoom Level",zh:"\u9ed8\u8ba4\u653e\u5927\u7b49\u7ea7"},"prefs.zoom.normal":{en:"Normal (75%)",zh:"\u6b63\u5e38(75%)"},"prefs.zoom.width":{en:"Page Width",zh:"\u9875\u9762\u5bbd\u5ea6"},"prefs.zoom.page":{en:"Full Page",zh:"\u6574\u4e2a\u9875\u9762"},"prefs.legend.grid":{en:"Grid Lines",zh:"\u7f51\u683c\u7ebf"}, "prefs.grid.show":{en:"Show Grid",zh:"\u663e\u793a\u7f51\u683c\u7ebf"},"prefs.grid.hide":{en:"Hide Grid",zh:"\u9690\u85cf\u7f51\u683c\u7ebf"},"prefs.legend.prompt":{en:"After Drawing Lines:",zh:"\u753b\u7ebf\u4e4b\u540e\uff1a"},"prefs.prompt.nothing":{en:"Do nothing",zh:"\u4e0d\u6267\u884c\u4efb\u4f55\u64cd\u4f5c"},"prefs.prompt.block":{en:"Prompt for next block",zh:"\u63d0\u793a\u4e0b\u4e00\u4e2a\u56fe\u5f62\u5757"},"prefs.h3.search":{en:"Library Search",zh:"\u641c\u7d22\u56fe\u4e66\u9986"},"label.enable":{en:"Enable", zh:"\u542f\u7528"},"label.commercialonly":{en:"Commercial only",zh:"\u53ea\u7528\u4e8e\u5546\u4e1a\u7528\u9014"},"tooltip.icon.commercialonly":{en:"Limit searches to icons with commercial licenses",zh:"\u4f7f\u7528\u5546\u4e1a\u6267\u7167\u53ef\u4ee5\u8fdb\u884c\u5bf9\u56fe\u8868\u7684\u6709\u9650\u641c\u7d22"},"tooltip.image.commercialonly":{en:"Limit searches to images with commercial licenses",zh:"\u4f7f\u7528\u5546\u4e1a\u6267\u7167\u53ef\u4ee5\u8fdb\u884c\u5bf9\u56fe\u50cf\u7684\u6709\u9650\u641c\u7d22"}, "users.register.h.trial":{en:"%s Free Trial",zh:"%\u7684\u514d\u8d39\u8bd5\u7528"},"users.register.h.free":{en:"Sign Up For %s",zh:"\u6ce8\u518c%"},"users.register.currency.p":{en:"The currency you select here will be used to display pricing for paid accounts in the future. You will not be charged at this time. You can change this setting at any time.",zh:"\u60a8\u5728\u8fd9\u91cc\u9009\u62e9\u7684\u8d27\u5e01\u5c06\u4f1a\u7528\u6765\u663e\u793a\u652f\u4ed8\u7684\u8d26\u6237\u3002\u60a8\u4e0d\u4f1a\u5728\u73b0\u5728\u88ab\u6536\u53d6\u4efb\u4f55\u8d39\u7528\u3002\u60a8\u53ef\u4ee5\u5728\u4efb\u4f55\u65f6\u95f4\u6765\u6539\u53d8\u6b64\u8bbe\u7f6e\u3002"}, "label.currency":{en:"Currency",zh:"\u8d27\u5e01"},"heading.signup.or":{en:"Or sign up with:",zh:"\u6216\u8005\u4f7f\u7528\u5176\u4ed6\u8d26\u6237\u6ce8\u518c\uff1a"},"button.register":{en:"Register",zh:"\u6ce8\u518c"},"users.register.ed.existing.p":{en:"If you accept this invitation with your existing LucidChart account, your account will be linked to the educational institution %s. Any existing paid subscription you have will be canceled, but you will share all the benefits of %s's subscription.", zh:"\u5982\u679c\u60a8\u4f7f\u7528\u60a8\u5df2\u5b58\u5728\u7684LucidChart\u8d26\u6237\u6765\u63a5\u53d7\u6b64\u9080\u8bf7\uff0c\u60a8\u7684\u8d26\u6237\u5c06\u4f1a\u4e0e\u6559\u80b2\u673a\u6784\u7684%\u8fde\u63a5\u3002\u60a8\u5df2\u7ecf\u652f\u4ed8\u7684\u5b9a\u91d1\u5c06\u4f1a\u88ab\u53d6\u6d88\uff0c\u4f46\u662f\u60a8\u53ef\u4ee5\u5171\u4eab%\u8ba2\u9605\u7684\u6240\u6709\u529f\u80fd\u3002"},"users.register.ed.h":{en:"Join %s on LucidChart",zh:"\u52a0\u5165LucidChart\u7684%"},"users.register.ed.new.p":{en:"You may also join %s by creating a new LucidChart account. This account will be linked to %s, and will share all the benefits of %s's subscription.", zh:"\u4f60\u4e5f\u53ef\u4ee5\u901a\u8fc7\u65b0\u5efa\u4e00\u4e2aLucidChart\u8d26\u6237\u6765\u52a0\u5165%\u3002\u6b64\u8d26\u6237\u4f1a\u4e0e%\u8fde\u63a5\uff0c\u5e76\u4e14\u53ef\u4ee5\u5206\u4eab%\u7684\u6240\u6709\u529f\u80fd\u3002"},"users.level.free.h":{en:"Free",zh:"\u514d\u8d39"},"users.level.free.desc":{en:"For the penny-pincher",zh:"\u4e3a\u5c0f\u6c14\u9b3c\u4f7f\u7528"},"users.level.free.cost":{en:"Free",zh:"\u514d\u8d39"},"users.level.td.free.collab":{en:"2 Collaborators",zh:"2\u4e2a\u5408\u4f5c\u8005"}, "users.level.td.obj.unlimited":{en:"Unlimited Objects",zh:"\u65e0\u4e0a\u9650\u7684\u7269\u4f53"},"users.level.td.obj.num":{en:"%d Objects",zh:"%\u7684\u7269\u4f53"},perdocument:{en:"per document",zh:"\u6bcf\u4e2a\u6587\u4ef6"},"users.level.button.trial.start":{en:"Start Free Trial",zh:"\u5f00\u59cb\u514d\u8d39\u8bd5\u7528"},"users.level.button.signup.now":{en:"Sign Up Now",zh:"\u73b0\u5728\u6ce8\u518c"},"users.level.login.p":{en:'Or log in with your existing LucidChart account.', zh:'\u6216\u8005\u767b\u5f55\u8fdb\u60a8\u5df2\u5b58\u5728\u7684LucidChart\u8d26\u6237\u3002'},"users.settings.h":{en:"User Settings",zh:"\u7528\u6237\u8bbe\u5b9a"},"users.settings.forum.h2":{en:"Forum Posting",zh:"\u8bba\u575b\u53d1\u5e16"},"label.avatar":{en:"Forum Avatar",zh:"\u8bba\u575b\u5934\u50cf"},"label.alias":{en:"Forum Alias",zh:"\u8bba\u575b\u6635\u79f0"},"users.settings.password.h2":{en:"Change Password",zh:"\u4fee\u6539\u5bc6\u7801"}, "label.password.new":{en:"New Password",zh:"\u65b0\u5bc6\u7801"},"users.settings.password.p":{en:"You can leave these fields blank if you don't want to change your password.",zh:"\u5982\u679c\u60a8\u4e0d\u60f3\u4fee\u6539\u5bc6\u7801\u7684\u8bdd\uff0c\u60a8\u53ef\u4ee5\u4e0d\u586b\u6b64\u9009\u9879\u3002"},"users.settings.gravatar.p":{en:"You can create a %s account to set your forum avatar. Just make sure you use the same email address in both places!",zh:"\u60a8\u53ef\u4ee5\u65b0\u5efa\u4e00\u4e2a%s \u8d26\u6237\u6765\u8bbe\u5b9a\u60a8\u7684\u8bba\u575b\u5934\u50cf\u3002\u8bf7\u786e\u5b9a\u60a8\u5728\u4e24\u4e2a\u8d26\u6237\u4f7f\u7528\u540c\u4e00\u4e2a\u90ae\u4ef6\u5730\u5740\u3002"}, "users.tierlevel.p":{en:"View single user account pricing.",zh:"\u6d4f\u89c8\u4e2a\u4eba\u7528\u6237\u8d26\u6237\u4ef7\u683c\u3002"},"users.login.title":{en:"Login and Registration",zh:"\u767b\u5f55\u548c\u6ce8\u518c"},"users.registerlevel.title":{en:"Pricing and Account Types",zh:"\u4ef7\u683c\u548c\u8d26\u6237\u7c7b\u578b"},"users.tierLevel.title":{en:"Team Pricing and Account Types",zh:"\u56e2\u961f\u4ef7\u683c\u548c\u8d26\u6237\u7c7b\u578b"},"referrals.title":{en:"Join LucidChart and get a free month of premium features!", zh:"\u52a0\u5165LucidChart\u5e76\u4e14\u5f97\u5230\u4e00\u4e2a\u6708\u7684\u514d\u8d39\u989d\u5916\u529f\u80fd\uff01"},"referrals.desc":{en:"Sign up for LucidChart, an online and collaborative diagramming application, and get 1 free month of premium features!",zh:"\u6ce8\u518cLucidChart\uff0c\u4e00\u4e2a\u5728\u7ebf\u5408\u4f5c\u5236\u4f5c\u56fe\u8868\u7684\u5e94\u7528\uff0c\u5e76\u4e14\u5f97\u5230\u4e00\u4e2a\u6708\u7684\u989d\u5916\u529f\u80fd\u3002"},"documents.desc":{en:"Check out this diagram at LucidChart. Make your own diagram or flowchart and share it with your friends. - http://lucidchart.com", zh:"\u5728LucidChart\u67e5\u627e\u6b64\u56fe\u8868\u3002\u5236\u4f5c\u60a8\u81ea\u5df1\u7684\u56fe\u8868\u548c\u6d41\u7a0b\u56fe\u5e76\u4e14\u548c\u60a8\u7684\u670b\u53cb\u5206\u4eab\u3002 - http://lucidchart.com"},"template.desc":{en:"Anyone can diagram! Create your a quick and easy diagram at LucidChart.com.",zh:"\u4efb\u4f55\u4eba\u90fd\u53ef\u4ee5\u5236\u4f5c\u56fe\u8868\uff01\u4f7f\u7528LucidChart.com\u6765\u5236\u4f5c\u4e00\u4e2a\u7b80\u5355\u5e76\u5feb\u901f\u7684\u56fe\u8868\u3002"},"button.visio.import":{en:"Import Visio (VDX) File", zh:"\u5bfc\u5165Visio (VDX) \u6587\u6863"},"visio.import.error.unknown":{en:"Unknown error importing VDX file.",zh:"\u5bfc\u5165VDX file\u53d1\u751f\u4e86\u672a\u77e5\u9519\u8bef\u3002"},"button.importing":{en:"Importing...",zh:"\u5bfc\u5165\u4e2d..."},"org.add.h":{en:"Add User"},"users.settings.language.h2":{en:"Language",zh:"\ufffd\ufffd\ufffd\u8a00"},language:{en:"Language",zh:"\u8bed\u8a00"},"button.user.remove.from.team":{en:"Remove User From Team",zh:"\u4ece\u5c0f\u7ec4\u4e2d\u79fb\u9664\u7528\u6237"}, "button.save":{en:"Save",zh:"\u4fdd\u5b58"},"flash.access.denied":{en:"Access denied.",zh:"\u8fdb\u5165\u88ab\u62d2\u7edd\u3002"},"flash.not.org.admin":{en:"You are not an administrator in your organization.",zh:"\u60a8\u5728\u60a8\u7684\u7ec4\u7ec7\u4e2d\u4e0d\u662f\u7ba1\u7406\u5458\u3002"},"flash.captcha.incorrect":{en:"Incorrect Captcha",zh:"\u9519\u8bef\u7684\u9a8c\u8bc1\u7801\u3002"},"flash.contact.thanks":{en:"Thank you for contacting LucidChart.",zh:"\u611f\u8c22\u60a8\u8054\u7cfbLucidChart."}, "flash.bugreport.thanks":{en:"Thank you for reporting your problem. If you provided an email address, we will contact you when your issue is resolved.",zh:"\u611f\u8c22\u60a8\u62a5\u544a\u60a8\u7684\u95ee\u9898\u3002\u5982\u679c\u60a8\u5411\u6211\u4eec\u63d0\u4f9b\u60a8\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\uff0c\u5f53\u60a8\u7684\u95ee\u9898\u89e3\u51b3\u65f6\u6211\u4eec\u5c06\u5373\u65f6\u4e0e\u60a8\u8054\u7cfb\u3002"},"flash.coupon.used":{en:"This coupon has already been used.",zh:"\u6b64\u5238\u5df2\u88ab\u4f7f\u7528\u3002"}, "flash.credit.added":{en:"Credit of $%s added to your account.",zh:" $%s \u7684\u70b9\u6570\u5df2\u6dfb\u52a0\u5230\u60a8\u7684\u5e10\u6237\u3002"},"flash.credit.created":{en:"Credits successfully created.",zh:"\u70b9\u6570\u5df2\u6210\u529f\u751f\u6210"},"flash.community.thread.save.error":{en:"Could not save Community Library thread.",zh:"\u65e0\u6cd5\u4fdd\u5b58\u793e\u533a\u56fe\u4e66\u9986\u4e3b\u9898\u3002"},"flash.community.forum.find.error":{en:"Could not find Community Library forum.",zh:"\u627e\u4e0d\u5230\u793e\u533a\u56fe\u4e66\u9986\u8bba\u575b\u3002"}, "flash.thread.save.error":{en:"Could not save thread.",zh:"\u65e0\u6cd5\u4fdd\u5b58\u4e3b\u9898\u3002"},"flash.template.delete.error":{en:"Error deleting that template. Please try again later.",zh:"\u5220\u9664\u8be5\u6a21\u677f\u5b58\u5728\u9519\u8bef\u3002\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002"},"flash.template.deleted":{en:'Deleted template "%s". Undo',zh:'\u5220\u9664\u7684\u6a21\u677f\u201c\uff05s\u201c\uff0c\u64a4\u6d88'},"flash.template.undeleted":{en:'Un-deleted template "%s". Undo', zh:'\u53d6\u6d88\u5220\u9664\u7684\u6a21\u677f\u201c\uff05s\u201c\uff0c\u64a4\u6d88'},"flash.template.undelete.error":{en:"Error un-deleting that template. Please try again later.",zh:"\u53d6\u6d88\u5220\u9664\u8be5\u6a21\u677f\u5b58\u5728\u9519\u8bef\u3002\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002"},"flash.template.save.user.null":{en:"You need to be logged in to save your template.",zh:"\u60a8\u9700\u8981\u5148\u767b\u5f55\u4ee5\u4fdd\u5b58\u60a8\u7684\u6a21\u677f\u3002"},"flash.template.not.supported":{en:"%s does not have support for custom templates. Please consider upgrading.", zh:"\uff05s\u6ca1\u6709\u652f\u6301\u7684\u81ea\u5b9a\u4e49\u6a21\u677f\u3002\u8bf7\u8003\u8651\u5347\u7ea7\u3002"},"flash.data.save.none":{en:"No data to save",zh:"\u6ca1\u6709\u6570\u636e\u4fdd\u5b58"},"flash.upload.failed.try.again":{en:"Upload failed. Please try again.",zh:"\u4e0a\u4f20\u5931\u8d25\u3002\u8bf7\u518d\u8bd5\u4e00\u6b21\u3002"},"flash.template.not.found":{en:"Template not found.",zh:"\u6a21\u7248\u6ca1\u6709\u627e\u5230"},"flash.template.save.error":{en:"Template could not be saved.", zh:"\u6a21\u677f\u65e0\u6cd5\u4fdd\u5b58\u3002"},"flash.template.share.unsaved":{en:"Templates must be saved before they can be shared.",zh:"\u6a21\u677f\u5fc5\u987b\u5148\u4fdd\u5b58\uff0c\u624d\u53ef\u4ee5\u5206\u4eab\u3002"},"flash.template.share.error":{en:"Could not share template.",zh:"\u4e0d\u80fd\u5206\u4eab\u6a21\u677f."},"flash.template.share.success":{en:"Template shared successfully.",zh:"\u6a21\u677f\u5171\u4eab\u6210\u529f\u3002"},"flash.template.unshare.user.null":{en:"You must be logged in to unshare a documente template.", zh:"\u60a8\u5fc5\u987b\u5148\u767b\u5f55\u624d\u80fd\u53d6\u6d88\u5171\u4eab\u6587\u6863\u6a21\u677f\u3002"},"flash.template.unshare.level.error":{en:"You must have a premium account to use sharing.",zh:"\u4f60\u5fc5\u987b\u8981\u62e5\u6709\u9ad8\u7ea7\u5e10\u6237\u624d\u53ef\u4ee5\u4f7f\u7528\u5171\u4eab\u3002"},"flash.template.unshare.unknown":{en:"Unknown template.",zh:"\u672a\u77e5\u6a21\u677f\u3002"},"flash.template.unshare.error":{en:"Could not unshare template.",zh:"\u4e0d\u80fd\u53d6\u6d88\u5171\u4eab\u6a21\u7248"}, "flash.template.unshare.success":{en:"Document unshared successfully.",zh:"\u6210\u529f\u53d6\u6d88\u5171\u4eab\u6587\u4ef6"},"flash.template.removed":{en:"Template has been removed from the community.",zh:"\u6a21\u677f\u5df2\u4ece\u793e\u533a\u4e2d\u79fb\u9664\u3002"},"flash.template.not.shared":{en:"Template is not currently shared.",zh:"\u6a21\u677f\u76ee\u524d\u5c1a\u672a\u5171\u4eab\u3002"},"flash.thread.not.found":{en:"Thread not found.",zh:"\u4e3b\u9898\u672a\u627e\u5230"},"flash.template.not.specified":{en:"No template specified.", zh:"\u6ca1\u6709\u6307\u5b9a\u7684\u6a21\u7248"},"flash.template.rate.user.null":{en:"You must be logged in to rate templates.",zh:"\u60a8\u5fc5\u987b\u767b\u5f55\u624d\u53ef\u4ee5\u8fdb\u884c\u6a21\u677f\u8bc4\u5206\u3002"},"flash.template.rate.error":{en:"Error rating template.",zh:"\u9519\u8bef\u6a21\u7248\u8bc4\u5206"},"flash.template.score.calc.error":{en:"Error could not calculate community score.",zh:"\u9519\u8bef\uff1a\u65e0\u6cd5\u8ba1\u7b97\u793e\u533a\u8bc4\u5206\u3002"},"flash.template.rate.thanks":{en:"Thank you for rating this template!", zh:"\u8c22\u8c22\u4f60\u5bf9\u6a21\u677f\u8bc4\u5206\uff01"},"flash.template.blocked":{en:"Template has been blocked!",zh:"\u6a21\u677f\u5df2\u88ab\u5c01\u9501\uff01"},"flash.document.delete.denied":{en:"You do not have permission to delete that document.",zh:"\u60a8\u6ca1\u6709\u6743\u9650\u6765\u5220\u9664\u8be5\u6587\u4ef6\u3002"},"flash.document.deleted":{en:'Deleted document "%s". Undo',zh:'\u5220\u9664\u7684\u6587\u4ef6\u201c\uff05s\u201c\uff0c\u64a4\u6d88'}, "flash.document.delete.error":{en:"Error deleting that document. Please try again later.",zh:"\u5220\u9664\u8be5\u6587\u4ef6\u5b58\u5728\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002"},"flash.document.undelete.denied":{en:"You do not have permission to un-delete that document.",zh:"\u60a8\u6ca1\u6709\u6743\u9650\u53d6\u6d88\u5220\u9664\u8be5\u6587\u4ef6\u3002"},"flash.document.undeleted":{en:'Un-deleted document "%s". Undo',zh:'\u53d6\u6d88\u5220\u9664\u7684\u6587\u4ef6\u201c\uff05s\u201c.\u64a4\u6d88'}, "flash.document.undelete.error":{en:"Error un-deleting that document. Please try again later.",zh:"\u53d6\u6d88\u5220\u9664\u7684\u6587\u4ef6\u5b58\u5728\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002"},"flash.permission.denied":{en:"Permission denied.",zh:"\u6743\u9650\u88ab\u62d2\u7edd"},"flash.document.view.denied":{en:"You do not have permission to view that document.",zh:"\u60a8\u6ca1\u6709\u6743\u9650\u67e5\u770b\u8be5\u6587\u4ef6\u3002"},"flash.document.share.denied":{en:"You do not have permission to share that document.", zh:"\u60a8\u6ca1\u6709\u6743\u9650\u5171\u4eab\u8be5\u6587\u4ef6\u3002"},"flash.document.share.success":{en:"Successfully shared document.",zh:"\u6210\u529f\u5171\u4eab\u6587\u4ef6"},"flash.document.unshare.denied":{en:"You do not have permission to unshare that document.",zh:"\u60a8\u6ca1\u6709\u6743\u9650\u53d6\u6d88\u5171\u4eab\u8be5\u6587\u4ef6\u3002"},"flash.document.unshare.error":{en:"Could not unshare document.",zh:"\u4e0d\u80fd\u53d6\u6d88\u6587\u4ef6\u5171\u4eab"},"flash.document.unshare.success":{en:"Document unshared successfully.", zh:"\u6210\u529f\u53d6\u6d88\u6587\u4ef6\u5171\u4eab"},"flash.document.community.removed":{en:"Document has been removed from the community.",zh:"\u6587\u4ef6\u5df2\u4ece\u793e\u533a\u79fb\u9664"},"flash.document.not.shared":{en:"Document is not currently shared.",zh:"\u76ee\u524d\u6ca1\u6709\u6587\u4ef6\u5171\u4eab\u3002"},"flash.document.rate.error":{en:"Error rating document.",zh:"\u6587\u4ef6\u8bc4\u5206\u9519\u8bef"},"flash.document.score.calc.error":{en:"Error could not calculate community score.", zh:"\u9519\u8bef\uff1a\u65e0\u6cd5\u8ba1\u7b97\u793e\u533a\u8bc4\u5206"},"flash.document.save.error":{en:"Document could not be saved.",zh:"\u6587\u4ef6\u65e0\u6cd5\u4fdd\u5b58\u3002"},"flash.document.rate.thanks":{en:"Thank you for rating this document!",zh:"\u611f\u8c22\u60a8\u5bf9\u6b64\ufffd\ufffd\ufffd\u4ef6\u8bc4\u5206\uff01"},"flash.document.blocked":{en:"Document has been blocked!",zh:"\u6587\u4ef6\u5df2\u88ab\u5c01\u9501\ufffd\ufffd\ufffd"},"flash.invitation.inactive":{en:"The requested invitation is no longer active.", zh:"\u8bf7\u6c42\u7684\u9080\u8bf7\u4e0d\u518d\u6709\u6548\u3002"},"flash.changes.saved":{en:"Changes saved.",zh:"\u4fdd\u5b58\u66f4\u6539"},"flash.invitation.sent.to":{en:"Invitation sent to %s.",zh:"\u9080\u8bf7\u53d1\u9001\u81f3\uff05s"},"flash.org.member.already":{en:"You are already a member of this organization.",zh:"\u60a8\u5df2\u7ecf\u662f\u8fd9\u4e2a\u7ec4\u7ec7\u7684\u6210\u5458\u3002"},"flash.org.user.limit":{en:"Your current %s subscription only allows %d users on your account.",zh:"\u60a8\u5f53\u524d\u7684\uff05s\u8ba2\u9605\u53ea\u5141\u8bb8\u60a8\u7684\u5e10\u6237\u62e5\u6709\uff05d\u4f4d\u7528\u6237"}, "flash.org.user.limit.approach":{en:"Your current %s subscription only allows %d users (%d more) on your account.",zh:"\u60a8\u5f53\u524d\u7684\uff05s\u8ba2\u9605\u53ea\u5141\u8bb8\u60a8\u7684\u5e10\u6237\u62e5\u6709\uff05d\u4f4d\u7528\u6237\uff08\uff05d\u4e2a\uff09\u3002"},"flash.org.user.added":{en:"The new user has been added to your organization.",zh:"\u65b0\u7528\u6237\u88ab\u6dfb\u52a0\u5230\u60a8\u7684\u7ec4\u7ec7\u3002"},"flash.org.user.removed":{en:"User has been removed from team.",zh:"\u8be5\u7528\u6237\u5df2\u4ece\u56e2\u961f\u4e2d\u5220\u9664\u3002"}, "flash.org.user.remove.denied":{en:"You do not have rights to remove the user from the team.",zh:"\u60a8\u6ca1\u6709\u6743\u5229\u5220\u9664\u56e2\u961f\u7684\u7528\u6237\u3002"},"flash.org.created":{en:"Your organization has been created.",zh:"\u60a8\u7684\u7ec4\u7ec7\u5df2\u5efa\u7acb\u3002"},"flash.referral.link.used":{en:"This referral confirmation link has already been used.",zh:"\u6b64\u63a8\u4ecb\u786e\u8ba4\u94fe\u63a5\u5df2\u88ab\u4f7f\u7528\u3002"},"flash.referral.credit.error":{en:"Error crediting your account, please contact LucidChart support.", zh:"\u9519\u8bef\u8ba1\u5165\u60a8\u7684\u5e10\u6237\uff0c\u8bf7\u8054\u7cfbLucidChart\u652f\u6301\u3002"},"flash.referral.redeem.error":{en:"Could not redeem referral credit. Please contact LucidChart support.",zh:"\u65e0\u6cd5\u5151\u6362\u63a8\u4ecb\u70b9\u6570\u3002\u8bf7\u8054\u7cfbLucidChart\u652f\u6301\u3002"},"flash.trial.extend.error":{en:"Error extending trial.",zh:"\u9519\u8bef\u5ef6\u4f38\u8bd5\u9a8c."},"flash.trial.initialize.error":{en:"Error initializing trial.",zh:"\u9519\u8bef\u521d\u59cb\u5316\u8bd5\u9a8c."}, "flash.trial.extended.to.month":{en:"Your free trial has been extended to 1 month!",zh:"\u60a8\u7684\u514d\u8d39\u8bd5\u7528\u5df2\u5ef6\u957f\u81f31\u4e2a\u6708\uff01"},"flash.referral.link.invalid":{en:"Invalid referral confirmation link.",zh:"\u65e0\u6548\u7684\u63a8\u4ecb\u786e\u8ba4\u94fe\u63a5\u3002"},"flash.user.not.found":{en:"User not found.",zh:"\u8be5\u7528\u6237\u4e0d\u5b58\u5728"},"flash.thread.posted":{en:"Thread posted.",zh:"\u53d1\u5e03\u4e3b\u9898"},"flash.reply.posted":{en:"Reply posted.", zh:"\u53d1\u5e03\u56de\u590d"},"flash.thread.notification.unsubscribed":{en:'You have been unsubscribed from email notifications for this thread. Undo',zh:'\u60a8\u5df2\u53d6\u6d88\u8ba2\u9605\u4ee5\u7535\u5b50\u90ae\u4ef6\u901a\u77e5\u8be5\u4e3b\u9898\u64a4\u6d88'},"flash.thread.notification.subscribed":{en:'You have been subscribed to email notifications for this thread. Undo',zh:'\u60a8\u5df2\u8ba2\u9605\u4ee5\u7535\u5b50\u90ae\u4ef6\u901a\u77e5\u8be5\u4e3b\u9898\u64a4\u6d88'}, "flash.unsubscribe.add":{en:'You will no longer be contacted at the address %s Undo.',zh:'\u60a8\u5c06\u4e0d\u518d\u88ab\u8054\u7cfb\u5230\uff05\u7684\u5730\u5740\u64a4\u9500\u3002'},"flash.unsubscribe.remove":{en:"You may now be contacted at the address %s.",zh:"\u4f60\u73b0\u5728\u53ef\u4ee5\u8054\u7cfb\u5230\uff05s\u7684\u5730\u5740"},"flash.email.unrecognized":{en:"Unrecognized email address.",zh:"\u65e0\u6cd5\u8bc6\u522b\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002"}, "flash.user.org.admin.set":{en:"User set as organization admin.",zh:"\u6b64\u7528\u6237\u4f5c\u4e3a\u8be5\u7ec4\u7ec7\u7684\u7ba1\u7406\uff1f"},"flash.user.team.broken":{en:"User broken off from team.",zh:"\u7528\u6237\u4ece\u56e2\u961f\u4e2d\u65ad\u3002"},"flash.user.forgotpassword":{en:"An email with a link to reset your password has been sent to your email address.",zh:"\u4e00\u5c01\u9644\u6709\u91cd\u65b0\u8bbe\u7f6e\u60a8\u7684\u5bc6\u7801\u94fe\u63a5\u7684\u90ae\u4ef6\u5df2\u53d1\u9001\u5230\u60a8\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002"}, "flash.user.resetpassword.inactive":{en:"That password reset link is no longer active.",zh:"\u8be5\u5bc6\u7801\u91cd\u7f6e\u94fe\u63a5\u4e0d\u518d\u6709\u6548\u3002"},"flash.user.resetpassword.reset":{en:"Your password has been reset. Your new password has been emailed to %s.",zh:"\u60a8\u7684\u5bc6\u7801\u5df2\u91cd\u7f6e\uff0c\u60a8\u7684\u65b0\u5bc6\u7801\u5df2\u7ecf\u901a\u8fc7\u7535\u5b50\u90ae\u4ef6\u53d1\u9001\u5230\uff05s"},"flash.preferences.saved":{en:"Your preferences have been saved.", zh:"\u60a8\u7684\u504f\u597d\u4ee5\u4fdd\u5b58"},"flash.user.resendconfirmation.no.user":{en:"No user has been registered with the email address %s.",zh:"\u5c1a\u65e0\u7528\u6237\u4f7f\u7528\u7535\u5b50\u90ae\u4ef6\u5730\u5740\uff05s\u6ce8\u518c"},"flash.user.resendconfirmation.sent":{en:"Welcome email resent to %s.",zh:"\u6b22\u8fce\u90ae\u4ef6\u91cd\u65b0\u53d1\u9001\u81f3 %s."},"flash.user.edorg.not.found":{en:"Educational organization not found.",zh:"\u6559\u80b2\u673a\u6784\u6ca1\u6709\u627e\u5230\u3002"}, "flash.org.admin.not.found":{en:"Administrator for organization %s not found",zh:"\uff05s\u7684\u7ec4\u7ec7\u7ba1\u7406\u5458\u672a\u627e\u5230"},"flash.edorg.member.already":{en:"You are already a member of this educational institution.",zh:"\u60a8\u5df2\u7ecf\u662f\u8be5\u6559\u80b2\u673a\u6784\u7684\u6210\u5458\u3002"},"flash.payment.amazon.incomplete":{en:"You did not complete your payment authorization with Amazon. Please try again.",zh:"\u60a8\u6ca1\u6709\u5b8c\u6210\u60a8\u7684Amazon\u652f\u4ed8\u6388\u6743\u3002\u8bf7\u518d\u8bd5\u4e00\u6b21\u3002"}, "flash.payment.amazon.failed":{en:'Amazon Payments authorization failed. Learn more.',zh:'Amazon\u652f\u4ed8\u6388\u6743\u5931\u8d25Learn more.'},"flash.payment.amazon.validation.failed":{en:"Amazon Payments authorization validation failed. Please contact LucidChart to resolve this issue.",zh:"Amazon\u652f\u4ed8\u6388\u6743\u9a8c\u8bc1\u5931\u8d25\u3002\u8bf7\u8054\u7cfbLucidChart\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002"}, "flash.payment.update.success":{en:"Your payment method has successfully been updated.",zh:"\u60a8\u7684\u4ed8\u6b3e\u65b9\u5f0f\u5df2\u6210\u529f\u66f4\u65b0\u3002"},"flash.payment.thanks":{en:"Thank you. Your payment has been successfully processed.",zh:"\u611f\u8c22\u60a8\u5bf9LucidChart\u7684\u652f\u6301\uff01"},"flash.payment.declined":{en:"Your payment was declined. Please re-authorize your payment.",zh:"\u60a8\u7684\u4ed8\u6b3e\u88ab\u62d2\u6536\u3002\u8bf7\u91cd\u65b0\u6388\u6743\u60a8\u7684\u4ed8\u6b3e\u3002"}, "flash.payment.error.unknown":{en:"There was an unknown error processing your payment. Please try again.",zh:"\u5728\u5904\u7406\u60a8\u7684\u4ed8\u6b3e\u8fc7\u7a0b\u4e2d\u6709\u4e00\u4e2a\u672a\u77e5\u7684\u9519\u8bef\u3002\u8bf7\u518d\u8bd5\u4e00\u6b21\u3002"},"users.education.upgrade.h1":{en:"Free Professional account for students",zh:"\u5bf9\u5b66\u751f\u514d\u8d39\u7684\u4e13\u4e1a\u8d26\u6237"},"users.education.email.to.send":{en:"An email will be sent to this address. Click on the link in the email to confirm your address and get your Professional account.", zh:"\u5c06\u4f1a\u4e00\u5c01\u7535\u5b50\u90ae\u4ef6\u53d1\u9001\u5230\u8fd9\u4e2a\u5730\u5740\u3002\u70b9\u51fb\u7535\u5b50\u90ae\u4ef6\u4e2d\u7684\u94fe\u63a5\uff0c\u4ee5\u786e\u8ba4\u60a8\u7684\u5730\u5740\uff0c\u5e76\u83b7\u5f97\u4f60\u7684\u4e13\u4e1a\u8d26\u6237\u3002"},"users.education.button.confirmemail":{en:"Send confirmation email",zh:"\u53d1\u9001\u786e\u8ba4\u7535\u5b50\u90ae\u4ef6"},"users.education.email.sent":{en:"A confirmation email has been sent to:",zh:"\u4e00\u5c01\u786e\u8ba4\u7535\u5b50\u90ae\u4ef6\u5df2\u53d1\u9001\u81f3\uff1a"}, "users.education.email.not.edu":{en:"Only students with an educational email address qualify for the free student upgrade. Your email address does not appear to be from an educational institution.",zh:"\u53ea\u6709\u4f7f\u7528\u6559\u80b2\u673a\u6784\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u7684\u5b66\u751f\u624d\u6709\u8d44\u683c\u83b7\u5f97\u514d\u8d39\u7684\u5347\u7ea7\u3002\u60a8\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u4e0d\u662f\u4e00\u4e2a\u6559\u80b2\u673a\u6784\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002"}, "flash.user.confirmemail.inactive":{en:"That email confirmation link is no longer active.",zh:"\u8be5\u7535\u5b50\u90ae\u4ef6\u786e\u8ba4\u94fe\u63a5\u5df2\u4e0d\u518d\u6709\u6548\u3002"},"users.education.upgrade.success":{en:"Congratulations! You have upgraded to an Educational account for the email address",zh:"\u606d\u559c\uff01\u60a8\u5df2\u5347\u7ea7\u5230\u4e13\u4e1a\u5e10\u6237\u3002"},"education.confirmation.subject":{en:"LucidChart email confirmation",zh:"LucidChart\u7535\u5b50\u90ae\u4ef6\u786e\u8ba4"}, "users.education.upgrade.description":{en:'Because LucidChart is committed to education, we are happy to offer free Professional upgrades to students. If you are a professor or faculty member, please request a free Team account for you and your students through this other form.

\nAll we ask is that you help us spread the word by providing the e-mail addresses of 3 people who might also be interested in using LucidChart.

',zh:"\u7531\u4e8eLucidChart\u81f4\u529b\u4e8e\u6559\u80b2\uff0c\u6211\u4eec\u5f88\u9ad8\ufffd\ufffd\ufffd\u80fd\u4e3a\u5b66\u751f\u63d0\u4f9b\u514d\u8d39\u5347\u7ea7\u81f3\u4e13\u4e1a\u7528\u6237\u7684\u673a\u4f1a\u3002\u5982\u679c\u4f60\u662f\u4e00\u4e2a\u6559\u6388\u6216\u6559\u5458\uff0c\u8bf7\u901a\u8fc7\u586b\u5199\u6b64\u8868\u683c\u4e3a\u4f60\u7684\u5b66\u751f\u7533\u8bf7\u4e00\u4e2a\u514d\u8d39\u7684\u56e2\u961f\u5e10\u6237\u3002

\u6211\u4eec\u8981\u6c42\u7684\u662f\uff0c\u5e0c\u671b\u4f60\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u63d0\u4f9b3\u4e2a\u6709\u53ef\u80fd\u4e5f\u6709\u5174\u8da3\u4f7f\u7528LucidChart\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002"}, "users.education.email.current.student":{en:"By requesting a free upgrade, you certify that you are a current student.",zh:"\u6211\u4eec\u8981\u6c42\u7684\u662f\uff0c\u4f60\u5e2e\u52a9\u6211\u4eec\u4f20\u64ad3\u4eba\u63d0\u4f9b\u7684\u7535\u5b50\u90ae\u4ef6\u8c01\u4e5f\u53ef\u80fd\u5728\u4f7f\u7528LucidChart\u3002\u6709\u5174\u8da3\u7684\u5730\u5740\u5b57"},"referral.1":{en:"Referral 1",zh:"\u63a8\u4ecb1"},"referral.2":{en:"Referral 2",zh:"\u63a8\u4ecb2"},"referral.3":{en:"Referral 3",zh:"\u63a8\u4ecb3"}, "users.education.provide.emails":{en:"Please provide 3 referral email addresses",zh:"\u8bf7\u63d0\u4f9b3\u4e2a\u63a8\u4ecb\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740"},"users.education.invalid.email":{en:"is not a valid email address. Please provide 3 valid emails addresses.",zh:"\u4e0d\u662f\u6709\u6548\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002\u8bf7\u63d0\u4f9b3\u4e2a\u6709\u6548\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740"},"users.level.educational.h":{en:"Educational"},"users.level.educational.desc":{en:"For students"}, "users.level.td.edu.collab":{en:"Unlimited Collaborators"},"users.education.provide.unique.emails":{en:"Please provide 3 unique email addresses."},"users.education.referral.email.already.in.use":{en:"The following email address is already in use at LucidChart: "},"educational.upgrade.notice":{en:"Get a free
educational
upgrade"},"titlebar.working.offline.button":{en:"Working Offline"},"titlebar.working.offline.callout.title":{en:"You are currently working in offline mode"},"titlebar.working.offline.description":{en:"That's right! You can continue to use LucidChart when you are not connected to the Internet. Some features such as sharing and chat will be disabled while you are offline. Once you connect back to the Internet, your changes will automatically be sent to the server. \n

We recommend that you only have one window or tab open for the same document while in offline mode."}, "button.visio.upload":{en:"Upload Visio (VDX) File"},"button.vdx.import":{en:"Import VDX File"},"button.vdx.import.ro":{en:"Import (Read-Only) VDX File"},"vdx.upload.p":{en:'Be sure to save your Visio document in VDX format, or it will not import correctly. Visio import is still in BETA, so please contact us if you have any problems.'},"vdx.upload.ro.p":{en:"Visio import is available to all Professional and Team subscribers of LucidChart. You may import your Visio documents, but you will not be able to further edit any imported Visio documents unless you upgrade your account."}, "vdx.upload.empty.alert":{en:"Please select a VDX file to upload."},"organization.hit.max":{en:"Your organization has reached its maximum number of users. Please contact your organization administrator about upgrading."},"login.failed":{en:"Login failed. Invalid username or password."},"invalid.oauth.request":{en:"The website you came from made an invalid request to access your LucidChart account"},"authorize.app.request.heading":{en:"is requesting access to your LucidChart account"},"authorize.app.request.message":{en:"Only allow access if you trust this application with your LucidChart information."}, "openid.invalid.claimid":{en:"Invalid authentication request. Please try again later."},allow:{en:"Allow"},deny:{en:"Deny"},"oauth.verifier.message":{en:"Please return to your application and enter the following security code to grant access:"},"oauth.authorize.success":{en:"was authorized successfully."},"confirm.document.delete":{en:"Are you sure you want to delete this document?"},"confirm.template.delete":{en:"Are you sure you want to delete this template?"},"template.settings":{en:"Template Settings"}, "template.delete":{en:"Delete Template"},"button.community.shared":{en:"Shared in Community"},"docslist.created.offline":{en:"Document created offline"},"tips.masterpages.h":{en:"New Master Pages!"},"tips.masterpages.p1":{en:"Master pages make it easy to include common elements, such as a logo or navigation menu, across numerous pages. This feature reduces content duplication and allows you to seamlessly update elements across many pages."},"tips.masterpages.li1":{en:"To create a master page, select a page menu (down arrow) and click “Convert to Master.”"}, "tips.masterpages.li2":{en:"Drag an object onto the master page and click “Apply to All Pages” to see the object dynamically displayed across all pages. Remember that these objects can only be edited on the master page."},"tips.masterpages.li3":{en:"You can alternatively apply and remove master page objects from individual pages by selecting a page menu and clicking “Apply Master” and “Remove Master.”"},"tips.masterpages.p2":{en:"Good luck and enjoy the new master pages!"}, "subnav.templates.team":{en:"Team Templates"},"templates.list.empty":{en:"No templates found."},"templates.description":{en:"Use templates as a starting point for new ideas that incorporate items such as your company logo and other shapes directly into the design. You can create your own templates by choosing “Save as Template” from the document editor."},"query.status.listDocs":{en:"Loading..."},"query.status.listSharedDocs":{en:"Loading..."},"query.status.fullDocData":{en:"Loading..."}, "query.status.listTemplates":{en:"Loading..."},"blobmeter.loaded":{en:"%d/%d documents and templates available offline"},"blobmeter.nostorage.p":{en:'LucidChart does not support offline functionality on your browser, please try Google Chrome or Safari to use LucidChart offline.'},"subnav.h.offline":{en:"Offline"},"docs.team.list.empty":{en:"No team documents found."},"search.list.empty":{en:"No results were found."}, "docs.deleted.list.empty":{en:"No deleted documents."},"canceled.subscription":{en:"This subscription has been cancelled. Your account will be downgraded to a free account on %s."},"notice.failed.payment":{en:'Your current payment failed. Please update your billing information here.'},"subnav.billing.info":{en:"Update Billing Information"},"confirm.subscription.level.change":{en:"Please confirm that you would like to switch from %s to %s"},"label.address1":{en:"Address Line 1"}, "label.address2":{en:"Address Line 2"},"label.city":{en:"City"},"label.state":{en:"State"},"label.zip":{en:"Zip/Postal"},"label.country":{en:"Country"},"label.phone":{en:"Phone Number"},"label.creditcardnumber":{en:"Credit Card Number"},"label.cvv":{en:"CVV"},"label.expire.month":{en:"Expiration Month"},"label.expire.year":{en:"Expiration Year"},"billing.update.button":{en:"Update Billing Information"},"pay.annually.button":{en:"Pay Annually
(%s)"},"pay.montly.button":{en:"Pay Monthly
(%s)"}, "subnav.payments.billinginfo":{en:"Billing Information"},"existing.subscription.cost":{en:"Your existing subscription costs %s."},"new.subscription.cost":{en:"Your new subscription will cost %s or %s."},"will.apply.credit":{en:"A credit of %s will be applied to your new subscription (pulled forward from your previous payment)."},"trial.status.notification":{en:"You have %s days left on your free trial. Fill out this form when you are ready to pay for your subscription."},"card.will.be.charged":{en:"Your credit card will be charged immediately for your new subscription."}, "ie8.upgrade":{en:'

We noticed that you are using Internet Explorer 8 (or earlier). While LucidChart is functional with IE8, the application is much faster with other options.

\n\n

If you prefer Internet Explorer, consider upgrading to IE9, which was recently released.

\n\n

For optimal experience, try another free browser like Google Chrome or Firefox.

'}, "ie8.upgrade.xp":{en:'

We noticed that you are using Internet Explorer 8 (or earlier). While LucidChart is functional with IE8, the application is much faster with other options.

\n\n

For optimal experience, try another free browser like Google Chrome or Firefox.

'},"users.level.pay":{en:'To pay for your subscription, click here.'}, "reactiveate.subscription":{en:'To reactivate your subscription, please click here.'},"confirm.subscription.level.reactivate":{en:"Please confirm that you would like to reactivate %s subscription."},january:{en:"01 - January"},february:{en:"02 - February"},march:{en:"03 - March"},april:{en:"04 - April"},may:{en:"05 - May"},june:{en:"06 - June"},july:{en:"07 - July"},august:{en:"08 - August"},september:{en:"09 - September"},october:{en:"10 - October"},november:{en:"11 - November"}, december:{en:"12 - December"},ok:{en:"OK"},cancel:{en:"Cancel"},"invalid.cvv":{en:"Invalid CVV"},"users.close.p1.recurly":{en:"You are paid up through %s. Canceling your paid subscription early will set your account as a free account with limited features after that date."},"subnav.account.external":{en:"External Applications"},"users.external.h":{en:"External Applications"},"users.external.list":{en:"Authorized Websites and Applications"},"users.external.p":{en:"Listed here are external partner applications or websites that you have granted access to your LucidChart documents. If you remove them here, they will no longer be able to access your LucidChart account."}, "oauth.login.title":{en:"Authorize"},"overlay.crop.instructions":{en:"Drag the crop points and press escape to cancel or enter to complete the cropping."},"team.confluence.description":{en:'

If your team uses Confluence , you can use the LucidChart Confluence Plugin at no cost.

\n

To enable the plugin, enter the key and secret below on the Confluence LucidChart plugin administration screen. Please see our documentation for additional information.\n

'}, "message.template.delete":{en:"

Are you sure you want to convert this template back into an ordinary document?

You will no longer be able to use the document as a starting point for new documents.

"},"query.status.listFolders":{en:"Loading..."},"notice.trial.expires.short":{en:'Your free trial expires in %d days. Click here to pay online.'},"notice.free.account":{en:"You are currently on a free account."},"org.uploadusers.fielddescription":{en:"Username is optional. If a username is not provided, the email address will be used as the username. Password is also optional. If a password is not provided, a temporary password will be sent to the email address."}, "org.uploadusers.bepatient":{en:"Note that it takes about 1 minute to process 300 users. If you are uploading hundreds of users, please be patient."},"change.tmp.password":{en:"You have logged in with a temporary password. Please choose a new password."},"org.uploadusers.samplefile":{en:'You can download an example csv file here .'},"org.pendingusers.h":{en:"Pending Users"},"org.pendingusers.p1":{en:"This is a list of users that are currently using LucidChart with one of your third party access keys but are not on your LucidChart team. They can continue to access LucidChart but have a number of limitations on their account. As the administrator, you can invite any of these users to join your team and lift these restrictions."}, "return.to.team.view":{en:"Return to Team View"},"org.pendingusers.p2":{en:'Your current %s subscription allows you a total of %d users; you may add %d more users now. Upgrade now if you need a larger subscription.'},"org.pendingusers.notification.p":{en:"As the team administrator, you can receive an email notification anytime a user not on your team uses your third party access key."},"org.pendingusers.notification.label":{en:"Receive email notifications"}, "invalid.offer.code":{en:"Unfortunetly, the offer code you are attempting to use is not valid."},"subnav.account.backuprestore":{en:"Backup/Restore Documents"},"users.backuprestore.h":{en:"Backup/Restore Documents"},"users.backup.h":{en:"Backup"},"users.backup.p":{en:"Click the button below to save a backup of all your LucidChart documents. You can use the backup to restore your documents at any time."},"users.backup.save":{en:"Save Backup"},"users.restore.h":{en:"Restore"},"users.restore.p":{en:'To restore your documents, select your backup file and click the restore documents button. Your documents will appear in your document list under a new folder with the name "restore-<date>". If you have a large backup file, the restore may take several minutes.'}, "users.restore.import.button":{en:"Restore from backup"},"backup.failed":{en:"Backup failed. Please try again later."},"import.failed":{en:"Failed to import."},"import.success":{en:"Successfully restored from backup"},"users.backuprestore.upgrade":{en:"You must have a paid account to backup and restore your LucidChart documents. You can upgrade to a paid account to enable local backups and restores."},"import.failed.contact.support":{en:"Could not complete import. If this error persists, please contact LucidChart support."}, "restore.invalid.file":{en:"Invalid file. Choose a LucidChart backup file or contact support if you believe you are using a valid LucidChart backup file."},"import.failed.files.list":{en:"The following documents in your backup failed to import. If this problem persists please contact support."},"button.register.clicked":{en:"Registering..."},"vdx.upload.drag":{en:"To upload VDX files, drag them from your desktop directly to your document list or select a file here."},"vdx.upload.select":{en:"Select a VDX file to upload."}, "vdx.import.drag":{en:'Your Visio files are now being imported. After a file is imported, it will appear in "My Documents". The conversion process may take a few minutes.'},"folderentryusers.error.not_owner":{en:"You must be the owner to share a folder."},"folderentryusers.error.sub_not_owner":{en:"You are not the owner on every document in the folder."},"folderentries.error.parent_deleted":{en:"Cannot operate in a deleted folder."},"folderentries.error.not_owner":{en:"You must be an owner of the folder to make changes."}, "folderentries.create.error.owner_or_no_share":{en:"Moving that document there would effectively share it, but you are not an owner on the document."},"folderentries.error.sub_not_owner":{en:"You are not the owner of every document in the folder."},"folderentries.move.error.lost_access":{en:"Moving that file or document would make you lose access to it."},"team.jira.description":{en:'

If your team uses JIRA , you can use the LucidChart JIRA Plugin at no cost.

\n

To enable the plugin, enter the key and secret below on the JIRA LucidChart plugin administration screen. Please see our documentation for additional information.\n

'}, "org.gapps.pendingusers.p1":{en:"This is a list of users that are currently using LucidChart with an email address that is the same domain as your Google Apps account. They can continue to access LucidChart but have a number of limitations on their account. As the administrator, you can invite any of these users to join your team and lift these restrictions."},"org.gapps.pendingusers.notification.p":{en:"As the team administrator, you can receive an email notification anytime a user comes to LucidChart from your Google Apps domain but is not able to be joined to your team because the user limit has been reached."}, "org.gapps.pendingusers.h":{en:"Pending Google Apps Users"},"referral.claim.notice":{en:"Confirm your
account to claim
your FREE credit"}};var im={Tu:["BC","AD"],Su:["Before Christ","Anno Domini"],Xu:"J,F,M,A,M,J,J,A,S,O,N,D".split(","),cv:"J,F,M,A,M,J,J,A,S,O,N,D".split(","),Wu:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),bv:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),Zu:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),ev:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),hv:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","), gv:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),av:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),fv:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),cy:"S,M,T,W,T,F,S".split(","),dv:"S,M,T,W,T,F,S".split(","),$u:["Q1","Q2","Q3","Q4"],Yu:["1st quarter","2nd quarter","3rd quarter","4th quarter"],Ru:["AM","PM"],nr:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],pr:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],Uu:6,gy:[5,6],Vu:2};var jm=/^(\d{4})(?:(?:-?(\d{2})(?:-?(\d{2}))?)|(?:-?(\d{3}))|(?:-?W(\d{2})(?:-?([1-7]))?))?$/,km=/^(\d{2})(?::?(\d{2})(?::?(\d{2})(\.\d+)?)?)?$/,lm=/Z|(?:([-+])(\d{2})(?::?(\d{2}))?)$/; function mm(a){var b=new nm(2E3),a=hd(a),a=a.split(a.indexOf("T")==-1?" ":"T"),c;var d=a[0].match(jm);if(d){var e=Number(d[2]),f=Number(d[3]),g=Number(d[4]);c=Number(d[5]);var i=Number(d[6])||1;b.setFullYear(Number(d[1]));g?(b.setDate(1),b.setMonth(0),b.add(new om(pm,g-1))):c?(b.setMonth(0),b.setDate(1),d=b.getDay()||7,b.add(new om(pm,(d<=4?1-d:8-d)+(Number(i)+7*(Number(c)-1))-1))):(e&&(b.setDate(1),b.setMonth(e-1)),f&&b.setDate(f));c=!0}else c=!1;if(c&&!(c=a.length<2))a=a[1],c=a.match(lm),i=0,c&& (c[0]!="Z"&&(i=c[2]*60+Number(c[3]),i*=c[1]=="-"?1:-1),i-=b.getTimezoneOffset(),a=a.substr(0,a.length-c[0].length)),(c=a.match(km))?(b.setHours(Number(c[1])),b.setMinutes(Number(c[2])||0),b.setSeconds(Number(c[3])||0),b.setMilliseconds(c[4]?c[4]*1E3:0),i!=0&&b.setTime(b.getTime()+i*6E4),c=!0):c=!1;return c?b:l} function om(a,b,c,d,e,f){na(a)?(this.Ye=a==qm?b:0,this.Ke=a==rm?b:0,this.Ce=a==pm?b:0,this.ie=a==sm?b:0,this.le=a==tm?b:0,this.re=a==um?b:0):(this.Ye=a||0,this.Ke=b||0,this.Ce=c||0,this.ie=d||0,this.le=e||0,this.re=f||0)} om.prototype.xl=function(a){var b=Math.min(this.Ye,this.Ke,this.Ce,this.ie,this.le,this.re),c=Math.max(this.Ye,this.Ke,this.Ce,this.ie,this.le,this.re);if(b<0&&c>0)return l;if(!a&&b==0&&c==0)return"PT0S";c=[];b<0&&c.push("-");c.push("P");(this.Ye||a)&&c.push(Math.abs(this.Ye)+"Y");(this.Ke||a)&&c.push(Math.abs(this.Ke)+"M");(this.Ce||a)&&c.push(Math.abs(this.Ce)+"D");if(this.ie||this.le||this.re||a)c.push("T"),(this.ie||a)&&c.push(Math.abs(this.ie)+"H"),(this.le||a)&&c.push(Math.abs(this.le)+"M"), (this.re||a)&&c.push(Math.abs(this.re)+"S");return c.join("")};om.prototype.ef=function(a){return a.Ye==this.Ye&&a.Ke==this.Ke&&a.Ce==this.Ce&&a.ie==this.ie&&a.le==this.le&&a.re==this.re};om.prototype.clone=function(){return new om(this.Ye,this.Ke,this.Ce,this.ie,this.le,this.re)};var qm="y",rm="m",pm="d",sm="h",tm="n",um="s";om.prototype.add=function(a){this.Ye+=a.Ye;this.Ke+=a.Ke;this.Ce+=a.Ce;this.ie+=a.ie;this.le+=a.le;this.re+=a.re}; function vm(a,b,c){oa(a)?(this.Ka=new Date(a,b||0,c||1),wm(this,c||1)):qa(a)?(this.Ka=new Date(a.getFullYear(),a.getMonth(),a.getDate()),wm(this,a.getDate())):(this.Ka=new Date,this.Ka.setHours(0),this.Ka.setMinutes(0),this.Ka.setSeconds(0),this.Ka.setMilliseconds(0))}q=vm.prototype;q.om=function(){return im.Uu};q.qm=function(){return im.Vu};q.clone=function(){var a=new vm(this.Ka);a.om=this.om;a.qm=this.qm;return a};q.getFullYear=function(){return this.Ka.getFullYear()};q.getYear=function(){return this.getFullYear()}; q.getMonth=function(){return this.Ka.getMonth()};q.getDate=function(){return this.Ka.getDate()};q.getTime=function(){return this.Ka.getTime()};q.getDay=function(){return this.Ka.getDay()};q.getUTCFullYear=function(){return this.Ka.getUTCFullYear()};q.getUTCMonth=function(){return this.Ka.getUTCMonth()};q.getUTCDate=function(){return this.Ka.getUTCDate()};q.getUTCHours=function(){return this.Ka.getUTCHours()};q.getUTCMinutes=function(){return this.Ka.getUTCMinutes()};q.getTimezoneOffset=function(){return this.Ka.getTimezoneOffset()}; function xm(a){a=a.getTimezoneOffset();if(a==0)a="Z";else var b=Math.abs(a)/60,c=Math.floor(b),b=(b-c)*60,a=(a>0?"-":"+")+Dd(c,2)+":"+Dd(b,2);return a}q.set=function(a){this.Ka=new Date(a.getFullYear(),a.getMonth(),a.getDate())};q.setFullYear=function(a){this.Ka.setFullYear(a)};q.setMonth=function(a){this.Ka.setMonth(a)};q.setDate=function(a){this.Ka.setDate(a)};q.setTime=function(a){this.Ka.setTime(a)};function ym(a,b){a.om=function(){return b}}function zm(a,b){a.qm=function(){return b}} q.add=function(a){if(a.Ye||a.Ke){var b=this.getMonth()+a.Ke+a.Ye*12,c=this.getYear()+Math.floor(b/12);b%=12;b<0&&(b+=12);var d;a:{switch(b){case 1:d=c%4==0&&(c%100!=0||c%400==0)?29:28;break a;case 5:case 8:case 10:case 3:d=30;break a}d=31}d=Math.min(d,this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(d)}a.Ce&&(a=new Date((new Date(this.getYear(),this.getMonth(),this.getDate(),12)).getTime()+a.Ce*864E5),this.setDate(1),this.setFullYear(a.getFullYear()),this.setMonth(a.getMonth()), this.setDate(a.getDate()),wm(this,a.getDate()))};q.xl=function(a,b){return[this.getFullYear(),Dd(this.getMonth()+1,2),Dd(this.getDate(),2)].join(a?"-":"")+(b?xm(this):"")};q.ef=function(a){return this.getYear()==a.getYear()&&this.getMonth()==a.getMonth()&&this.getDate()==a.getDate()};q.toString=function(){return this.xl()};function wm(a,b){a.getDate()!=b&&a.Ka.setUTCHours(a.Ka.getUTCHours()+(a.getDate()=a.Rn[d];)d+=2;return d==0?0:a.Rn[d-1]}Am.prototype.rb=function(a){return this.pu-Cm(this,a)};function Dm(a){this.nn=[];typeof a=="number"?Em(this,a):Fm(this,a)}var Gm=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvzZ]+/];function Fm(a,b){for(;b;)for(var c=0;c0?-864E5:864E5,e=new Date(a.getTime()+c));for(var c=[],f=0;f0?1:0,f>=4?im.Su[b]:im.Tu[b];case "y":return b=c.getFullYear(),b<0&&(b=-b),f==2?Dd(b%100,2):String(b);case "M":return Im(f,c);case "k":return Dd(d.getHours()||24,f);case "S":return(d.getTime()%1E3/1E3).toFixed(Math.min(3,f)).substr(2)+(f>3?Dd(0,f-3):"");case "E":return b=c.getDay(),f>=4?im.hv[b]:im.av[b];case "a":return f=d.getHours(),im.Ru[f>=12&&f<24?1:0];case "h":return Dd(d.getHours()%12||12,f);case "K":return Dd(d.getHours()% 12,f);case "H":return Dd(d.getHours(),f);case "c":return Jm(f,c);case "L":return Km(f,c);case "Q":return b=Math.floor(c.getMonth()/3),f<4?im.$u[b]:im.Yu[b];case "d":return Dd(c.getDate(),f);case "m":return Dd(d.getMinutes(),f);case "s":return Dd(d.getSeconds(),f);case "v":return f=e||Bm(b.getTimezoneOffset()),f.zu;case "z":return a=e||Bm(b.getTimezoneOffset()),f<4?a.fr[Cm(a,b)>0?2:0]:a.fr[Cm(a,b)>0?3:1];case "Z":return a=e||Bm(b.getTimezoneOffset()),f<4?(f=-a.rb(b),b=[f<0?"-":"+"],f=Math.abs(f),b.push(Dd(Math.floor(f/ 60)%100,2),Dd(f%60,2))):(f=a.rb(b),b=["GMT"],b.push(f<=0?"+":"-"),f=Math.abs(f),b.push(Dd(Math.floor(f/60)%100,2),":",Dd(f%60,2))),f=b.join("");default:return""}};function V(a,b){V.nf[a]==l&&(V.nf[a]=[]);b=qa(b)||la(b)?nd(b):String(b);V.nf[a].push({Dh:new Date,message:b});V.nf[a].length>1E3&&V.nf[a].splice(0,500)}V.nf={};V.show=function(a){if(V.nf[a]!=l){var b=new Dm("h:mm:ss.SSS"),c=[""];A(V.nf[a],function(a){c.splice(1,0,'")});c.push("
');c.splice(2,0,b.Qi(a.Dh));c.splice(3,0,"");c.splice(4,0,a.message);c.splice(5,0,"
");L(c.join(""))}};t("lucid.log",V);function S(a,b){if(gm[a]){var c=a,c=S.language!="en"?gm[a][S.language]||gm[a].en||a:gm[a].en||a;return b&&b.length>0?(b.unshift(c),jd.apply(l,b)):c}else return V("i18n",'No entry in i18n for key "'+a+'"'),a}S.language="en";t("lucid.i18n",S);t("i18n",function(a,b){if(hm[a]){var c=a,c=S.language!="en"?hm[a][S.language]||hm[a].en||a:hm[a].en||a;return b&&b.length>0?(b.unshift(c),jd.apply(l,b)):c}else return V("i18n",'No entry in cake i18n for key "'+a+'"'),a});function Lm(a,b){b==l&&(b=new G(300,200));if(!Lm.dialog)Lm.dialog=$('
').appendTo("body"),Lm.dialog.dialog({resizable:!1,modal:!0,width:"auto",minWidth:b.x,minHeight:b.y,autoOpen:!1,open:function(){var a=this;$(".ui-widget-overlay").bind("click.dialog",function(){$(a).dialog("close")})},beforeclose:function(){$(".ui-widget-overlay").unbind("click.dialog")}});Lm.dialog.dialog("option",{minWidth:b.x,minHeight:b.y,title:"LucidChart"});var c=$(a);c.length== 0?$("#lucid_dialog").empty().html("

"+a+"

"):$("#lucid_dialog").empty().append(c);Lm.dialog.dialog("open")}Lm.dialog=l; function Mm(a,b,c){c==l&&(c=new G(300,200));if(!Mm.dialog){Mm.dialog=$('
').appendTo("body");var d={};d[S("button.OK")]=function(){$(this).dialog("close")};Mm.dialog.dialog({resizable:!1,modal:!0,autoOpen:!1,buttons:d,open:function(){var a=this;$(".ui-widget-overlay").bind("click.alert",function(){$(a).dialog("close")})},beforeclose:function(){$(".ui-widget-overlay").unbind("click.alert")}})}Mm.dialog.dialog("option",{close:function(){b&& b()},width:c.x,minHeight:c.y,title:"LucidChart"});c=$("
"+a+"
");c.children().length==0?$("#lucid_alert").empty().html("

"+a+"

"):$("#lucid_alert").empty().append(c.children());c.remove();Mm.dialog.dialog("open")}Mm.dialog=l; function Nm(a,b,c,d){d==l&&(d=new G(300,200));if(!Nm.dialog)Nm.dialog=$('
').appendTo("body"),Nm.dialog.dialog({resizable:!1,modal:!0,autoOpen:!1,open:function(){var a=this;$(".ui-widget-overlay").bind("click.confirm",function(){$(a).dialog("close")})},beforeclose:function(){$(".ui-widget-overlay").unbind("click.confirm")}});var e=!1;Nm.wd=function(){b()!="cancel"&&(e=!0,Nm.dialog.dialog("close"))};Nm.ok=Nm.wd;var f={};f[S("button.OK")]= Nm.wd;f[S("button.cancel")]=function(){$(this).dialog("close")};Nm.dialog.dialog("option",{buttons:f,close:function(){c&&!e&&c()},width:d.x,minHeight:d.y,title:"LucidChart"});d=$("
"+a+"
");d.children().length==0?$("#lucid_confirm").empty().html("

"+a+"

"):$("#lucid_confirm").empty().append(d.children());d.remove();Nm.dialog.dialog("open")}Nm.dialog=l; function Om(a,b,c,d,e){var f=!1,g=e&&e.height?parseInt(e.height,10):60;if(!Om.dialog)Om.dialog=$('
').appendTo("body"),Om.dialog.dialog({resizable:!1,modal:!0,width:"auto",minWidth:300,minHeight:a==l?80+g:140+g,autoOpen:!1});var i={};i[S("button.OK")]=function(){var a=$(this).find(":text,textarea").val();c(a)!="cancel"&&(f=!0,$(this).dialog("close"))};i[S("button.cancel")]=function(){$(this).dialog("close")};Om.dialog.dialog("option", {open:function(){var a=this;$(".ui-widget-overlay").bind("click.prompt",function(){$(a).dialog("close")});$(this).find(":text,textarea").keypress(function(a){a.keyCode==13&&!a.shiftKey&&!e&&(f=!0,a=$(this).val(),c(a),Om.dialog.dialog("close"))}).val(b).select()},beforeclose:function(){$(".ui-widget-overlay").unbind("click.prompt")},buttons:i,close:function(){d&&!f&&d();document.activeElement&&$(document.activeElement).blur()},title:"LucidChart"});e?(g=$('
'),e!=!0&&g.children().css(e)):g=$('
');i=$("
"+a+"
");i.children().length==0?a==l?$("#lucid_prompt").empty().html(""+g.html()):$("#lucid_prompt").empty().html("

"+a+"


"+g.html()+"

"):$("#lucid_prompt").empty().append(i.children()).append("

"+g.html()+"

");i.remove();Om.dialog.dialog("open")}Om.dialog=l; function Pm(a,b,c,d){function e(a){f.dialog("option",{open:function(){var a=this;$(".ui-widget-overlay").click(function(){$(a).dialog("close")});d&&d()},beforeclose:function(){$(".ui-widget-overlay").unbind()},buttons:{},close:function(){$(document).unbind("ajaxFormSuccess");Pm.Yd=l},title:"LucidChart"});var a=$("
"+a+"
"),b=a.find("form:last").get(0);$(b).hasClass("inline")&&$(b).find("label").addClass("inline");a='
'+$(b).html()+"
"; $("body").append("
"+a+"
");$("#jqFormSizeCheckerFloat").find("p").css("maxWidth","400px");var j=$("#jqFormSizeCheckerFloat").width();$("#jqFormSizeChecker").remove();f.html(a);f.dialog("option",{width:j+50});f.dialog("open");f.find("a :not(.samepage)").attr("target","_blank");f.find("input:visible:first").focus();f.find("input[name=cancel]").attr("onclick", "").click(function(){f.dialog("close")});f.find("input[type=submit]").click(function(){Pm.Yd=l;var a=!0;$.ajax({type:b.method,url:b.action,data:Ld(f),success:function(b){$("
"+b+"
").find(".error-message,.form-error").size()>0?(Pm(b,!0,c),a=!1):c&&c(b)},error:o(),complete:function(){a&&f.dialog("close")}})});f.find("a.ajax_form_button").click(function(a){Pm.Yd=l;a.preventDefault();var b=!1;$.ajax({type:"GET",url:$(this).attr("href"),data:"NoSSLChange=true",success:function(a){try{if($("
"+ a+"
").find("form").size()>0){f.dialog("close");e(a);b=!0;return}}catch(d){}c&&c()},error:o(),complete:function(){b||f.dialog("close")}})});f.find(".offline_form_button").click(function(){var a=Md();c&&c(a);f.dialog("close")})}if(!(Pm.Yd&&Pm.Yd==a)){Pm.Yd=a;if(!Pm.dialog)Pm.dialog=$('
').appendTo("body"),Pm.dialog.dialog({resizable:!1,modal:!0,width:700,autoOpen:!1});var f=Pm.dialog;b?e(a):$.ajax({type:"GET",url:a,success:function(a){e(a)}})}} Pm.dialog=l;Pm.Yd=l;function Qm(){if(!Qm.dialog)Qm.dialog=$('
').appendTo("body"),Qm.dialog.dialog({resizable:!1,modal:!0,width:"auto",minWidth:300,minHeight:200,autoOpen:!1,open:function(){var a=this;$(".ui-widget-overlay").bind("click.customDialog",function(){$(a).dialog("close")})},beforeclose:function(){$(".ui-widget-overlay").unbind("click.customDialog")}});return Qm.dialog.empty()}Qm.dialog=l;t("lucid.dialog",Lm);t("lucid.alert",Mm); t("lucid.prompt",Om);t("lucid.confirm",Nm);t("lucid.ajaxForm",Pm);t("lucid.customDialog",Qm);function Rm(a){this.K=a} Rm.prototype.show=function(a,b,c){var d=this;if(b.length==1)c(b[0]);else{for(var e=[],f=0;f
");var g=$('").appendTo(this.K.J);g.css({width:"108px",height:27*Math.ceil(b.length/4)+"px"});e=a.pageX-(g.outerWidth()+a.pageX>$(window).width()?g.outerWidth():0);a=a.pageY-(g.outerHeight()+a.pageY>$(window).height()?g.outerHeight():0);g.css({left:e+"px",top:a+ "px"});setTimeout(function(){$(document).one(Rd?"click":"mouseup",function(){g.is(":visible")&&($(document).unbind("keydown.PlaceNextBlock"),g.remove())})},100);g.show();g.find(".canvasholder").each(function(a){$(this).css({width:"25px",height:"25px","float":"left",border:"1px solid white"});Yd||$(this).hover(function(){$(this).css({border:""}).addClass("ui-state-default")},function(){$(this).removeClass("ui-state-default").css({border:"1px solid white"})});a%4==0&&$(this).css({clear:"left"});var e= Sm(d.K.pg,b[a]);if(e){var f=gj[e.className],n=e.bd||f.bd;$(this).attr("title",e.Pa||f.title);f=document.createElement("canvas");$(f).attr("width",25);$(f).attr("height",25);f=fb(f);$(this).append(f);var m=jj(e.className,"",d.K.$.document),p=Math.min(23/n.w,23/n.h),s=n.w*p,n=n.h*p;m.q.set("BoundingBox",{x:1+(23-s)/2,y:1+(23-n)/2,w:s,h:n});if(e.xf){var e=e.xf(),u;for(u in e)m.q.set(u,e[u])}wi(new Th(l,m),f);$(this).mouseup(function(){$(document).unbind("keydown.PlaceNextBlock");V("ie","placeNextBlock called"); g&&(Xd?(g.hide(),setTimeout(function(){g.remove()},5E3)):g.remove());c(b[a])})}else L("Please load this shape library to your toolbox."),g.remove()})}};function Tm(a){this.viewport=a;var b=this;this.J=$('
').appendTo(this.viewport.K.tg);this.J.hide();this.Jl=!0;J("default.activeGroup.value",function(a){b.show(a)})} Tm.prototype.Uf=function(a){var b=this;this.J.empty();if(a){this.J.append(''+S("Editing")+" "+(a.q.get("Name")||S("Group"))+"");for(a=a.parent;a;)this.J.prepend($(""+(a.q.get("Name")||S("Group"))+" >>").clone().click(function(a){return function(){b.viewport.Aj(a)}}(a))),a=a.parent;$(""+S("Page")+" >>").click(function(){Qk(b.viewport.mode,!0)}).prependTo(this.J);this.J.children().addClass("ui-corner-all left")}else this.J.hide()}; Tm.prototype.show=function(a){this.Jl||this.hide();this.Jl=!1;this.Uf(a);this.J.show();this.viewport.K.we.css("top",this.viewport.K.we.position().top+this.J.outerHeight()+"px");this.viewport.K.yf.css("top",this.viewport.K.yf.position().top+this.J.outerHeight()+"px");this.viewport.K.Li.css("top",this.viewport.K.Li.position().top+this.J.outerHeight()+"px");this.viewport.K.yf.css("top",this.viewport.K.yf.position().top+this.J.outerHeight()+"px");this.viewport.K.sc&&this.viewport.K.sc.J.is(":visible")&& this.viewport.K.sc.J.css({top:this.viewport.K.sc.J.position().top+this.J.height()})}; Tm.prototype.hide=function(){if(!this.Jl)this.Jl=!0,this.viewport.K.sc&&this.viewport.K.sc.J.is(":visible")&&this.viewport.K.sc.J.css({top:this.viewport.K.sc.J.position().top-this.J.height()}),this.Uf(l),this.viewport.K.sc.J&&this.viewport.K.we.css("top",this.viewport.K.we.position().top-this.J.outerHeight()+"px"),this.viewport.K.yf.css("top",this.viewport.K.yf.position().top-this.J.outerHeight()+"px"),this.viewport.K.Li.css("top",this.viewport.K.Li.position().top-this.J.outerHeight()+"px"),this.viewport.K.yf.css("top", this.viewport.K.yf.position().top-this.J.outerHeight()+"px"),this.J.hide()};function Um(a){this.K=a;this.viewport=a.viewport;this.name=""}q=Um.prototype;q.Ze=o();q.Fg=o();q.Fc=o();q.fd=o();q.ud=o();q.gd=o();q.touchStart=o();q.touchMove=o();q.touchEnd=o();q.qk=o();q.pk=o();q.zn=o();q.np=o();q.ju=fa(!1);q.iu=fa(!1);q.ku=fa(!1);q.yr=o();q.xr=o();q.Hc=fa(l);q.hr=o();function Vm(a){Um.call(this,a);this.name="drawing";this.K=a;var b=this;this.document=this.K.$.document;this.wf="default";this.scale=1;this.Ym=20;this.Eg=480;this.hp=this.zl=this.Te=!1;this.Hh=new Je(0,0,1,1,0);this.Hh.J.css({"background-color":"rgba(238,232,170,.25)"});this.context=this.Hh.getContext();this.canvas=this.context.canvas;this.Ho=fb(document.createElement("canvas"));this.Yr=this.Ho.getContext("2d");this.Aw=this.xu=12;this.nd=new Wm(this,this.context);this.Cq={square:{minStrokes:1,fp:[{rotate:"none", data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0.7481,0.0695,0.665,0.7481,0.0752,0.7106,0.7994,0.0809,0.7106,0.7994,0.0752,0.665],[0,0.9512,0,0,0.9759,0,0,1,0,0,0.9761,0]]},{rotate:"all",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0, 0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0.3266,0,0,0,0,0.2864,0.5437,0.0242,0,0,0.0123,0.4346],[0.4181,0.1847,0.8002,0.9002,0.2135,0.3652,0.0779,0.5659,0.855,0.9619,0.5606,0.108],[0,1,0,0,0.9308,0,0,0.3884,0,0,0.4138,0]]},{rotate:"90",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0.4917,0.0113,0,0,0,0.2768,0.5255,0.0234,0,0,0,0.2397],[0.1174,0.5345,0.7733,0.87,0.2064,0.3529,0.0753,0.5469,0.8263,0.9296,0.1834,0.397],[0,0.3933,0,0,0.8996,0,0,0.3754,0,0,1,0]]},{rotate:"90",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0, 0,0,0,0,0],[0.3266,0,0,0,0.0233,0.4599,0.3658,0,0,0,0.0123,0.4346],[0.4181,0.1847,0.8002,0.9002,0.5606,0.0749,0.3729,0.2181,0.855,0.9619,0.5606,0.108],[0,1,0,0,0.3823,0,0,0.9648,0,0,0.4138,0]]},{rotate:"all",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0.0060,0.0103,0,0],[0,0,0,0,0,0,0,0.0249,0.4323,0.5022,0.0273, 0],[0.7683,0.0707,0.6782,0.763,0.0766,0.7297,0.8209,0.3798,0.0113,0.0097,0.3779,0.6829],[0,0.9743,0,0,1,0,0,0.7283,0,0,0.6948,0]]}],action:function(a,d){var e="ProcessBlock";a.w>=b.Eg&&a.h>=b.Eg&&(e="RectangleContainerBlock");return new N("CreateBlock",{Class:e,Properties:d,Page:b.viewport.V[0].C.id})}},circle:{minStrokes:1,fp:[{rotate:"none",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0, 0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0.0458,0.075,0.0481,0.0578,0.1075,0.0825,0.0948,0.1432,0.0971,0.0848,0.1078,0.0555],[1,0.8789,0.8587,0.9834,0.8451,0.7847,0.9126,0.8019,0.7584,0.9357,0.8464,0.8409],[0,0,0,0,0,0,0,0,0,0,0,0]]}],action:function(a,d){var e=a.w/a.h;if(e>1.5)e="TerminatorBlock",a.w>=b.Eg&&a.h>=b.Eg&&(e="PillContainerBlock");else{if(Math.abs(e-1)<0.25)a.w>a.h?(a.x+=0.5*(a.w-a.h),a.w=a.h):(a.y+=0.5*(a.h-a.w),a.h=a.w),d.BoundingBox=a;e="ConnectorBlock"; a.w>=b.Eg&&a.h>=b.Eg&&(e="CircleContainerBlock")}return new N("CreateBlock",{Class:e,Properties:d,Page:b.viewport.V[0].C.id})}},diamond:{minStrokes:1,fp:[{rotate:"none",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0.3505,0.9795,0.3505,0.3903,0.9934,0.3903,0.4223,0.9934,0.4223,0.3903,0.9934,0.3903],[1,0.0415,0.9237,0.9624,0,0.8806, 0.9491,0,0.8507,0.9801,0,0.8828],[0.3505,0,0.1233,0.3134,0,0.0956,0.2664,0,0.0719,0.283,0,0.0873],[0,0,0,0,0,0,0,0,0,0,0,0]]}],action:function(a,d){var e="DecisionBlock";a.w>=b.Eg&&a.h>=b.Eg&&(e="DiamondContainerBlock");return new N("CreateBlock",{Class:e,Properties:d,Page:b.viewport.V[0].C.id})}},hexagon:{minStrokes:1,fp:[{rotate:"none",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0.0084,0.012,0,0,0.0204,0.0151,0.025,0.0271,0,0,0.0172,0.0162],[0.7699,0.7523,0.183,0.234,0.765,0.727,0.7583,0.7702,0.2766,0.3568,0.7562,0.7076],[0.2414,0.2533,0.9265,1,0.2291,0.0841,0.2072,0.2118,0.7692,0.8244,0.2389,0.1059],[0,0,0,0,0,0,0,0,0,0,0,0]]}],action:function(a,d){return new N("CreateBlock",{Class:"PreparationBlock",Properties:d,Page:b.viewport.V[0].C.id})}},star:{minStrokes:1,fp:[{rotate:"all",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0, 0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0.038,0.076,0,0],[0.0198,0,0,0,0,0.0061,0.1129,0.3001,0.1371,0.2742,0.2847,0.0584],[0.3618,0.0991,0,0,0.1294,0.212,0.3871,0.4036,0.0969,0.0969,0.413,0.2456],[0.3073,0.6256,0.3298,0.402,0.6167,0.2852,0.076,0.2649,0.2698,0.2329,0.2913,0.082],[0.6079,0.4537,0.4317,0.6233,0.4488,0.5573,0.5479,0.0171,0.4493,0.4664,0.0171,0.5044],[0.3612,0.4752,0.5743,0.5854,0.4813,0.0969,0.7665,0,0.337,0.4631,0,0.4994],[0.0369,0.5628,0.5281,0.5446,0.5385,0, 1,0,0.1856,0.6503,0,0.9906],[0,0.5677,0.2214,0.2588,0.5088,0,0.1652,0,0,0.1272,0,0.1955],[0,0.06,0,0,0.0518,0,0,0,0,0,0,0]]}],action:function(a,d){var e=a.h/a.w;if(Math.abs(e-0.95)<0.2)e<0.95?(a.x+=0.5*(a.w-a.h/0.95),a.w=a.h/0.95):(a.y+=0.5*(a.h-0.95*a.w),a.h=0.95*a.w),d.BoundingBox=a;return new N("CreateBlock",{Class:"StarBlock",Properties:d,Page:b.viewport.V[0].C.id})}},stickfig:{minStrokes:3,fp:[{rotate:"none",data:[[0.09,0,0,0,0,0,0,0,0,0,0,0],[0.0307,0,0,0.09,0,0,0.0183,0,0,0.09,0,0],[0,0.0307, 0,0,0.0183,0,0,0.0183,0,0,0.0307,0],[0,0,0.0289,0.1062,0,0,0,0,0.0162,0.1189,0,0],[0,0,0.0607,0.1397,0,0,0,0.0642,0.0695,0.163,0.0642,0],[0,0.0046,0.1517,0.2068,0,0,0,0.1983,0.144,0.3267,0.1983,0],[0,0.0713,0.156,0.1768,0.055,0,0,0.204,0.0466,0.1616,0.204,0],[0,0.0762,0.2047,0.2181,0.0586,0,0.2625,0.0699,0.4428,0.5677,0.0699,0.2625],[0,0.3363,0.0473,0.066,0.3162,0,0.338,0.2742,0.1263,0.1154,0.2862,0.338],[0,0.3843,0,0,0.3836,0,0.4023,0.3952,0.1263,0.1044,0.4068,0.4023],[0,0.4693,0,0,0.4626,0,0.2682, 0.1267,0.8052,1,0.1436,0.2682],[0,0.3345,0,0,0.3264,0,0,0,0,0,0,0]]}],action:function(a,d){return new N("CreateBlock",{Class:"UMLActorBlock",Properties:d,Page:b.viewport.V[0].C.id})}},swimlane:{minStrokes:2,fp:[{rotate:"none",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0.0125,0.0188,0,0],[0,0,0,0,0,0,0,0.0188,0.2534,0.3196,0.0188,0],[0,0,0,0,0,0,0,0.2659,0.0178,0.0178, 0.2659,0],[0,0,0,0,0,0,0.0125,0.2228,0,0,0.2228,0.0125],[0.7481,0.0347,0,0,0.0404,0.7106,0.867,0.1651,0.7106,0.7994,0.1587,0.74],[0,0.5352,0,0,0.5572,0,0,1,0,0,0.9761,0]]},{rotate:"none",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0.0157,0.0235,0,0],[0,0,0,0,0,0,0,0.0235,0.317,0.3998,0.0235,0],[0,0,0,0,0,0,0,0.3326,0.0223,0.0223,0.3326,0],[0.3041,0,0,0,0,0.2678,0.5503, 0.2851,0,0,0.2816,0.4376],[0.4858,0.122,0,0,0.1527,0.4233,0.2975,0.6019,0.8889,1,0.5916,0.3402],[0,0.5755,0,0,0.5242,0,0,0.4259,0,0,0.4542,0]]},{rotate:"none",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0.0146,0.0219,0,0],[0,0,0,0,0,0,0,0.0219,0.2956,0.3728,0.0219,0],[0,0,0,0,0,0,0,0.3102,0.0208,0.0208,0.3102,0],[0.4968,0.0124,0,0,0,0.2446,0.5087,0.2654,0,0,0.2599, 0.2577],[0.1153,0.4988,0,0,0.1406,0.3952,0.2792,0.5588,0.8289,0.9325,0.2712,0.4793],[0,0.2059,0,0,0.4855,0,0,0.3989,0,0,1,0]]},{rotate:"none",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0.0156,0.0234,0,0],[0,0,0,0,0,0,0,0.0234,0.3158,0.3984,0.0234,0],[0,0,0,0,0,0,0,0.3314,0.0222,0.0222,0.3314,0],[0.2995,0,0,0,0.0258,0.48,0.3956,0.2777,0,0,0.2801,0.431],[0.4847,0.1199, 0,0,0.5375,0.0757,0.4483,0.3163,0.8857,0.9965,0.5865,0.34],[0,0.569,0,0,0.207,0,0,1,0,0,0.4552,0]]},{rotate:"none",data:[[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0.0146,0.0219,0,0],[0,0,0,0,0,0,0,0.0219,0.2949,0.372,0.0219,0],[0,0,0,0,0,0,0,0.3095,0.0208,0.0208,0.3095,0],[0.4922,0.0113,0,0,0.0225,0.4449,0.3662,0.2593,0,0,0.2593,0.2545],[0.1175,0.4948,0,0,0.5021,0.0725, 0.4201,0.2934,0.827,0.9304,0.2691,0.4798],[0,0.2057,0,0,0.1937,0,0,0.9333,0,0,1,0]]}],action:function(a,d){return new N("CreateBlock",{Class:"SwimLaneBlock",Properties:d,Page:b.viewport.V[0].C.id})}}}}Ca(Vm,Um);q=Vm.prototype;q.Ze=function(){this.hr();Ge(this.viewport.V[0].canvas,this.Hh);this.viewport.ec();this.nd.reset()};q.Fg=function(){He(this.viewport.V[0].canvas,this.Hh);this.nd.reset()}; q.touchStart=function(a){var b=this;this.zl=this.Te=!0;this.Al&&clearTimeout(this.Al);this.Al=setTimeout(function(){b.Te&&b.viewport.ji("diagramming")},250);this.fh&&clearTimeout(this.fh);this.nd.tu(a.x*this.scale,a.y*this.scale,a.x,a.y)};q.touchMove=function(a){this.Te=!1;this.zl&&this.nd.stroke(a.x*this.scale,a.y*this.scale)}; q.touchEnd=function(a){var b=this;this.Te=!1;if(this.zl)this.fh=setTimeout(function(){if(b.fh)clearTimeout(b.fh),b.fh=l;var a=b.nd.Js(),d=!1;if(b.nd.Mn!=l&&b.nd.lm!=l){var d=b.nd.Mn,e=b.nd.lm;if(d.action=="linkpoint"&&e.action=="linkpoint"&&d.item!=e.item&&d.item.sa&&e.item.sa){Xm(b);var f=d.item.Ac(d.oc),g=e.item.Ac(e.oc),d={Shape:b.document.q.get("DefaultLineShape"),LineWidth:b.document.q.get("DefaultLineLineWidth"),LineColor:b.document.q.get("DefaultLineLineColor"),StrokeStyle:b.document.q.get("DefaultLineStrokeStyle"), Font:b.document.q.get("DefaultFont"),ZOrder:b.viewport.V[0].C.Kd("ZOrder",0)+1,Endpoint1:{x:f.x,y:f.y,Block:d.item.id,LinkX:d.oc.x,LinkY:d.oc.y,Style:b.document.q.get("DefaultStartArrowStyle")},Endpoint2:{x:g.x,y:g.x,Block:e.item.id,LinkX:e.oc.x,LinkY:e.oc.y,Style:b.document.q.get("DefaultEndArrowStyle")}},d=new N("CreateLine",{Properties:d,Page:b.viewport.V[0].C.id});b.document.Aa();b.document.ba(d);if((e=b.Hc())&&e.pa)f=e.q.get("Members"),f[d.id]=!0,b.viewport.V[0].C.document.ba(new N(M,{id:e.id, Property:"Members",Value:f}));b.document.xa();d=!0}else d=!1}d||Ym(b,Zm(b,a));b.nd.reset()},500),this.nd.Fx(a.x*this.scale,a.y*this.scale,a.x,a.y),a=this.nd.Js(),a.r-a.l0?(a.sort(function(a,c){return a.rms-c.rms}),a[0].id):"square"} function Ym(a,b){if(b){var c=b.fp,d,e=[],f;for(f in a.Cq)d=a.Cq[f],d.minStrokes>a.nd.rl||A(d.fp,function(b){var d=b.data;if(d.length!=0){for(var b=b.rotate||"none",j=0,k=0,n=0,m=0,p=0,s=p=p=0,u=999999,w=u=u=999999,s=0,u=Math.round(a.xu/4),v=w=0;v-1&&e>-1&&f>-1&&c>-1){e-=c;f-=d;if(e10&&(U=Z-u,X=da-w,W=Math.atan2(X,U)*z,W+=W<0?1:0,W=Math.floor(W*k),U=Math.sqrt(X*X+U*U)*v*9+1,U=Math.floor(Math.abs(Math.log(U))*x*n),W=W<0?0:W>=k?k-1:W,U=U<0?0:U>=n?n-1:U,j[U][W]+=s[B],O=Math.max(s[B],O),T=Math.max(j[U][W],T)),B+=4;m=1/T;for(p=0;p=k||k!=0&&f100){j=!0;if(Math.abs(d)<=1)return f;d>0?d=-(d/2):d/=2;e=Math.max(e/2,1);break}g+=e}!j&&d<0&&(d=-(d/2),e=Math.max(e/ 2,1));k==0?f-=d:f+=d}return-1} q.Xf=function(a,b){var c=this.Cq[a];if(c){Xm(this);var b=this.viewport.V[0].dc(b),d={LineWidth:this.document.q.get("DefaultBlockLineWidth"),LineColor:this.document.q.get("DefaultBlockLineColor"),FillColor:this.document.q.get("DefaultBlockFillColor"),Font:this.document.q.get("DefaultFont"),BoundingBox:b,ZOrder:this.viewport.V[0].C.Kd("ZOrder",0)+1},c=c.action(b,d);this.document.Aa();this.document.ba(c)&&(this.viewport.V[0].Ya(this.viewport.V[0].C.Jb(c.id)).Xh(),this.viewport.ec());if((d=this.Hc())&& d.pa){var e=d.q.get("Members");e[c.id]=!0;this.viewport.V[0].C.document.ba(new N(M,{id:d.id,Property:"Members",Value:e}))}this.document.xa()}};function Xm(a){a.context.clearRect(0,0,a.Hh.width,a.Hh.height)}function Wm(a,b){this.ss=a;this.sj=this.rj=this.context=l;this.Ta=this.Bb=99999;this.Sa=this.Ab=0;this.lm=this.Mn=l;this.rl=0;this.Tc(b)} Wm.prototype={Tc:function(a){this.context=a;this.context.globalCompositeOperation="source-over"},destroy:o(),tu:function(a,b,c,d){this.context.lineCap="round";this.context.lineWidth=5;this.context.strokeStyle="rgb(0,0,0)";this.rj=a;this.sj=b;this.rl++;this.Mn=this.rl==1?this.ss.viewport.V[0].gg(c,d):l},stroke:function(a,b){(this.rj===l||this.sj===l)&&this.tu(a,b);this.context.beginPath();this.context.moveTo(this.rj,this.sj);this.context.lineTo(a,b);this.context.stroke();this.rj=a;this.sj=b;this.Bb= athis.Ab?a:this.Ab;this.Sa=b>this.Sa?b:this.Sa},Fx:function(a,b,c,d){this.sj=this.rj=l;this.lm=this.rl==1?this.ss.viewport.V[0].gg(c,d):l},reset:function(){this.sj=this.rj=l;this.Ta=this.Bb=99999;this.Sa=this.Ab=0;this.lm=this.Mn=l;this.rl=0},Js:function(){return this.Ab>this.Bb&&this.Sa>this.Ta?{l:this.Bb-20,t:this.Ta-20,r:this.Ab+20,b:this.Sa+20}:l}};function bn(a){var b=this;this.K=a;this.dialog=this.Fk();J("default.sendFeedback",function(){b.dialog.open()})} bn.prototype.Fk=function(){var a=this,b=this.K.$.da?this.K.$.da.email:"demo",b=$('
'),c= new se(b,{Ld:!0,width:"400px",title:S("menu.feedback.send"),$c:!0,hb:[{label:"Cancel",action:function(){a.dialog.close()}},{label:"Submit",action:function(){var b=!0;$.ajax({type:"POST",url:"/bugs/report?NotError=1",data:Ld($(c.body)),success:function(a){$("
"+a+"
").find(".error-message").size()>0&&(xe(a,!0),b=!1)},error:o(),complete:function(){b&&(Tk(S("growl.feedback.sent")),a.dialog.close())}})}}],open:function(){setTimeout(function(){$(c.body).find("textarea").val("").focus().select()}, 1)}});return c};function cn(a){var b=this;this.K=a;this.dialog=this.Fk();J("default.download",function(){b.K.$.zb()?b.K.$.Oe():b.print()})} cn.prototype.Fk=function(){var a=this,b=$('
'+S("dialog.publish.description")+'
'+S("legend.publish.format")+'
'+ S("legend.publish.content")+'
'+S("legend.publish.quality")+'
');b.find("#publish-formatold input:radio").change(function(){var b=$("#publish-formatold input:radio:checked").val(),c=$("#publish-content [name=content]:checked").val();switch(b){case "web":case "vdx":!a.K.$.da|| a.K.$.da.Level.visio!="1"?L('

Visio (VDX) export is only available for Professional and Team accounts. Please consider upgrading.

'):($("#content_document").removeAttr("disabled").attr("checked","checked").next("label").removeClass("lighter"),$("#content_page, #content_part").attr("disabled","disabled").next("label").addClass("lighter"),$("#download-dpi").hide());break;case "pdf":$("#content_document, #content_page").removeAttr("disabled").next("label").removeClass("lighter"); c=="part"&&$("#content_page").attr("checked","checked");$("#content_part").attr("disabled","disabled").next("label").addClass("lighter");$("#download-dpi").hide();break;case "png":case "jpeg":$("#content_page, #content_part").removeAttr("disabled").next("label").removeClass("lighter"),c=="document"&&$("#content_page").attr("checked","checked"),$("#content_document").attr("disabled","disabled").next("label").addClass("lighter"),$("#download-dpi").show()}});b.find("#publish-content input:radio").change(function(){switch($("#publish-content input:checked").val()){case "part":$("#publish_button").val(S("button.area.select.publish")).data("part", !0);a.Ro.text(S("button.area.select.download"));break;default:$("#publish_button").val(S("button.publish")).data("part",!1),a.Ro.text(S("button.download"))}});var c=new se(b,{Ld:!0,title:S("downloadpanel.title"),$c:!0,hb:[{label:S("button.download"),Pg:!0,create:function(b){a.Ro=b},action:function(){c.close();var b=$("#download-dpi [name=dpi]:checked").length>0?$("#download-dpi [name=dpi]:checked").val():l;a.K.$.print($("#publish-formatold [name=format]:checked").val(),$("#content_document").is(":checked")? l:a.K.viewport.V[0].C.id,$("#content_part").is(":checked"),b=="160"||b=="300"?b*1:l)}}]});return c}; cn.prototype.print=function(){this.dialog.hc()&&this.dialog.close();this.dialog.find(".publish-only").hide();this.dialog.find(".print-only").show();$("#format_pdfold, #content_document").attr("checked","checked");$("#content_document, #content_page").removeAttr("disabled").next("label").removeClass("lighter");$("#content_part").attr("disabled","disabled").next("label").addClass("lighter");$("#download-dpi").hide();this.Ro.text(S("button.download"));var a=S("downloadpanel.title");this.dialog.title.empty().append(y(a)); this.dialog.open()};function dn(a,b){this.fn=a;this.timeout=b;this.count=0}dn.prototype.queue=function(a){if(a==l)a=this.timeout;var b=this;this.count++;setTimeout(function(){b.count--;b.count>0||b.fn()},a)};dn.prototype.trigger=function(){this.fn()};t("lucid.ConsolidatedFunctionCall",dn);dn.prototype.queue=dn.prototype.queue;dn.prototype.trigger=dn.prototype.trigger;function en(a,b){var c=this;this.K=b;this.Ej=0;this.ta=this.Sh=!1;this.padding=36;this.ri=0.3;this.document=l;$("#tab-bar").remove();this.sortable=this.controls=this.Eb=l;this.J=$(y({Q:"tab-bar noise-texture",children:[{Q:"slide-track",children:[{Q:"tabs",create:function(a){c.Eb=a}}]},{Q:"controls",create:function(a){c.controls=a},children:[{Q:"divider"},{Q:"icon-button left inverse",title:S("tooltip.page.new"),create:function(a){c.oo=a},click:function(){$(this).hasClass("disabled")||c.xt()},children:[{Q:"icon-13 icon-13-plus"}]}, {Q:"divider"},{Q:"icon-button left inverse disabled",create:function(a){c.rm=a},click:function(){$(this).hasClass("disabled")||(c.Eb.css("left","0px"),fn(c))},children:[{Q:"icon-13 icon-13-tri-dbl-l"}]},{Q:"icon-button left inverse disabled",create:function(a){c.Pm=a},click:function(){if(!$(this).hasClass("disabled")){var a=c.Eb.position().left+320;c.Eb.css("left",a+"px");fn(c)}},children:[{Q:"icon-13 icon-13-tri-l"}]},{Q:"icon-button left inverse",create:function(a){c.Bn=a},click:function(){if(!$(this).hasClass("disabled")){var a= c.Eb.position().left-320;c.Eb.css("left",a+"px");fn(c)}},children:[{Q:"icon-13 icon-13-tri-r"}]},{Q:"icon-button left inverse",create:function(a){c.Om=a},click:function(){if(!$(this).hasClass("disabled")){var a=c.Eb.width(),b=c.Eb.parent().width();c.Eb.css("left",b-a+"px");fn(c)}},children:[{Q:"icon-13 icon-13-tri-dbl-r"}]},{Q:"divider"},{Q:"icon-button left inverse",create:function(a){c.zw=a},click:function(){var a=c.ai;a&&(c.ai.hide(),a.show(),a.Lf(c.zw.offset().left,c.J.offset().top+c.J.outerHeight()- 1))},children:[{Q:"icon-13 icon-13-tri-d"}]}]}]})).appendTo(a);this.Ry=this.J.offset().top+this.J.outerHeight();this.dy="TabBar_regular";this.ay="TabBar_master";$(document).bind("lucid.menu.show",function(){c.ai&&c.ai.hide()});J("gui.closeAllYerStuff",function(){c.ai&&c.ai.hide()});this.dh=$('
').appendTo("body");this.Cl=new dn(function(){gn(c,c.K.$.document.uk());c.Pf.size()>0&&hn(c)},250);$(document).bind("documentPostAction",function(a, b){(b.Action==xg||b.Action=="RemovePage")&&c.Cl.queue();b.Action==M&&b.Property=="Title"&&c.K.$.document.nb(b.id)&&c.Cl.queue();if(b.Action=="RemovePage"){var f=c.K.viewport.V[0].C;f!=l&&b.id==f.id&&c.K.viewport.Lb([jn(c.K.$.document,0,!0)])}if(b.Action==xg)f=c.K.viewport.V[0].C,(f==l||f.id==b.id)&&c.K.viewport.Lb([jn(c.K.$.document,0,!0)])});J("viewport.pages",function(){c.Cl.queue()},!0);J("page.delete",function(a){kn(c,a);ln(c)});J("page.removeMaster",function(){var a=c.nb();a&&(c.K.viewport.Lb([a]), ln(c),Dj(a,""))});J("page.applyMaster",function(){var a=c.nb();a&&(c.K.viewport.Lb([a]),ln(c),J.set("applyMasterDialog.open"))});J("page.masterize",function(){var a=c.nb();a&&(a.document.ba(new N(M,{id:a.id,Property:"IsMaster",Value:!0})),c.K.viewport.Lb([a]))});J("page.rename",function(){var a=c.nb();a&&(c.K.viewport.Lb([a]),c.jm(),ln(c))});J("page.settings",function(){J.set("dock.showPanel","Document")});J("page.duplicate",function(){var a=c.nb();a&&mn(c,a.id)});J("page.createFromMaster",function(){var a= c.nb();if(!c.document)c.document=c.Zb();a&&(a=new N(xg,{Properties:{Title:S("Untitled Page"),Order:c.document.Vh("Order")+1,Size:a.q.get("Size"),Margin:a.q.get("Margin"),DPI:a.q.get("DPI"),GridSpacing:a.q.get("GridSpacing"),Master:a.id}}),c.document.ba(a),c.K.viewport.Lb([c.document.nb(a.id)]))});J("page.applyMasterToAll",function(){var a=c.nb();if(!c.document)c.document=c.Zb();a&&(c.document.Aa(),c.document.ee(function(){this.Fb()||a.id!=sj(this,!0)&&Dj(this,a.id)}),c.document.xa(),Tk(S("growl.master.applied")))}); J("page.demasterize",function(){var a=c.nb();a&&(a.document.ba(new N(M,{id:a.id,Property:"IsMaster",Value:!1})),c.K.viewport.Lb([a]))});J("page.duplicateMaster",function(){var a=c.nb();a&&mn(c,a.id,{IsMaster:!0})});J("page.edit",function(){var a=c.nb();a&&(c.K.viewport.Lb([a]),c.jm(),ln(c))});J("default.newPage",r(this.xt,this));J("default.pageSettings",r(this.jm,this))}q=en.prototype;q.Zb=function(){var a=this;J.set("client.getDocument",function(b){a.document=b});return a.document};q.nb=function(){return this.K.viewport.V[0].C}; function nn(a,b){var c=[];A(b,function(b){var e=wd(b.q.get("Title"))+(b.Fb()?" "+S("pagetitle.master.suffix"):"");c.push({label:e,action:function(){a.K.viewport.Lb([b]);a.ai.hide()}})});return c} function gn(a,b){var c={R:"ul",children:[]},d={},e=[],f=0,g=0,i=[],j=[],k=[],n=[];A(b,function(c){if(!c.Fb()||!a.yh){var m=wd(c.q.get("Title"))+(c.Fb()?" "+S("pagetitle.master.suffix"):""),u={R:"li",Q:c.Fb()?"master ":"",attr:{pageId:c.id},children:[{Q:"body",children:[m]},{Q:"l-end",children:[{}]},{Q:"r-end",children:[{}]}]},m={Q:"drop-down-item",attr:{pageId:c.id},children:[{Q:"content",children:[{Q:"icon left"},m]}]};d[c.id]=c;e.push(c);Dk(a.K.viewport,c)&&(u.Q+="selected",m.Q+=" active",m.children[0].Q+= " bold",m.children[0].children[0].Q+=" silk tick");!a.yh&&b.length>1&&u.children[0].children.push({Q:"close disabled",create:function(b){b.hover(function(){b.toggleClass("disabled inverse")},function(){b.toggleClass("disabled inverse")});b.mouseover(function(a){a.stopPropagation()}).click(function(b){b.stopPropagation();ln(a);J.set("page.delete",c.id)})},children:[{Q:"icon-13 icon-13-close"}]});c.Fb()?(j.push(u),n.push(m),f++):(i.push(u),k.push(m),g++)}});c.children=i.concat(j);a.sortable=$(y(c)); a.Eb.empty().append(a.sortable);$("#tabbar_pagelist_dropdown").remove();a.ai=new Tl(nn(a,e),{zf:!0});a.Ej=0;a.Pf=a.sortable.children();a.Pf.each(function(){var b=$(this).outerWidth();a.Ej+=b;$(this).data("w",b)}).each(function(){$(this).data("percent",$(this).data("w")/a.Ej);$(this).hasClass("selected")||Ya||$(this).mouseover(function(){a.Sh||a.To($(this),d[$(this).attr("pageId")])}).mouseout(function(){ln(a)})}).click(function(){a.Sh||(ln(a),$(this).hasClass("selected")?a.jm():a.K.viewport.Lb([a.K.$.document.nb($(this).attr("pageId"))]), ln(a))});if(g>1||f>1){var m=f<2?"> :not(.master)":g<2?"> .master":"> *";a.sortable.sortable({axis:"x",distance:10,items:m,start:function(b,c){c.item.hasClass("master")?$(this).sortable("option","items","> .master"):$(this).sortable("option","items","> :not(.master)");$(this).sortable("refresh");a.Sh=!0;ln(a)},update:function(){a.Pf=$(this).children();a.K.$.document.Aa();a.Pf.each(function(b){a.K.$.document.ba(new N(M,{id:$(this).attr("pageId"),Property:"Order",Value:b}))});a.K.$.document.xa();setTimeout(function(){a.Sh= !1},10)},stop:function(){$(this).sortable("option","items",m)}})}on(a);$(window).unbind("resize.TabBar");$(window).bind("resize.TabBar",function(){on(a)});a.ta&&a.Uc();a.yh&&a.oo.addClass("disabled")}function on(a){var b=a.Eb.parent().width(),c=b-a.padding,d=Math.floor(c/a.Pf.size());a.Ej>=c?a.Eb.width(a.Ej+a.padding):(a.Eb.width(b),a.Pf.each(function(){$(this).width(Math.floor($(this).data("percent")*c*a.ri+d*(1-a.ri)-18))}));a.Pf.css("max-width",Math.floor(a.J.width()/4)+"px");fn(a)} function fn(a){var b=a.Eb.position().left,c=a.Eb.width(),d=a.Eb.parent().width(),e,f;c<=d?(a.Eb.css({left:"0px"}),f=a.rm.add(a.Pm).add(a.Bn).add(a.Om)):b>=0?(a.Eb.css({left:"0px"}),f=a.rm.add(a.Pm),e=a.Bn.add(a.Om)):b+c<=d?(a.Eb.css({left:d-c+"px"}),e=a.rm.add(a.Pm),f=a.Bn.add(a.Om)):e=a.rm.add(a.Pm).add(a.Bn).add(a.Om);f&&f.addClass("disabled");e&&e.removeClass("disabled")} function hn(a){var b=a.Eb.position().left,c=a.Eb.parent().width(),d=a.Pf.filter(".selected");d.length==0&&(d=a.Pf.first());var e=d.offset().left,d=d.outerWidth();e+d>c?(a.Eb.css({left:b-(e+d-c)-50+"px"}),fn(a)):e<0&&(a.Eb.css({left:b-e+50+"px"}),fn(a))} q.To=function(a,b){var c=this;this.Qs&&clearTimeout(this.Qs);this.lu=setTimeout(function(){c.dh.empty();c.dh.append("

"+a.text()+"

");var d=new Gj(b),e=a.offset();if(!(e.left==0&&e.top==0)){var f=c.dh.outerWidth(),f=Math.round(Math.max(Math.min(e.left+a.width()/2+f/2,c.K.J.width())-f,0));Pj(d,200,c.dh.find("div"));c.dh.stop().css({left:f+"px",top:Math.round(e.top+a.outerHeight())+"px"}).fadeTo(100,1)}},500)}; function ln(a){a.lu&&clearTimeout(a.lu);a.Qs=setTimeout(function(){a.dh.stop().fadeOut(100)},10)} q.xt=function(){function a(){ve("Please enter a title for this new page","New Page",function(a){var d=b.K.viewport,e=b.K.$.document,f=d.V[0].C.q.Nb();f.Order=e.Vh("Order")+1;f.Title=a;delete f.Master;delete f.IsMaster;a=new N(xg,{Properties:f});e.ba(a);d.Lb([e.nb(a.id)])})}var b=this;this.K.dock.Bk.nh&&this.K.$.Id()?ue("

"+S("confirm.p.revision.viewing")+"

"+S("confirm.p.x.hist.page.create")+"

",function(){b.K.dock.Bk.off();b.K.$.Id()?L("

"+S("alert.p.readonly")+"

"+S("alert.p.page.create.cant")+ "

"):a()}):b.K.$.Id()?L("

"+S("alert.p.readonly")+"

"+S("alert.p.page.create.cant")+"

"):a()}; q.jm=function(){function a(){var a=b.K.viewport.V[0].C;ve("Enter a new title for this page",a.q.get("Title"),function(b){a.document.ba(new N(M,{id:a.id,Property:"Title",Value:b}))})}var b=this;this.K.dock.Bk.nh&&this.K.$.Id()?ue("

"+S("confirm.p.revision.viewing")+"

"+S("confirm.p.x.hist.page.edit")+"

",function(){b.K.dock.Bk.off();b.K.$.Id()?L("

"+S("alert.p.readonly")+"

"+S("alert.p.page.edit.cant")+"

"):a()}):b.K.$.Id()?L("

"+S("alert.p.readonly")+"

"+S("alert.p.page.edit.cant")+ "

"):a()};function kn(a,b){var c=a.K.viewport.V[0].C;ln(a);a.Pf.length>1?ue(S(c.Fb()?"confirm.master.delete":"confirm.page.delete"),function(){a.K.$.document.ba(new N("RemovePage",{id:b?b:c.id}))}):L(S("alert.page.last.delete"))} function mn(a,b,c){ln(a);var d=a.K.viewport,e=a.K.$.document,f=e.nb(b),g=[];tj(f,function(){g.push(this)});b=d.rk(g);a={Title:f.q.get("Title"),Order:a.K.$.document.Vh("Order")+1,Size:f.q.get("Size"),Margin:f.q.get("Margin"),DPI:f.q.get("DPI"),GridSpacing:f.q.get("GridSpacing")};f.q.get("Master")&&(a.Master=f.q.get("Master"));for(var i in c)a[i]=c[i];c=new N(xg,{Properties:a});e.ba(c);d.Lb([e.nb(c.id)]);d.Yk(d.V[0],b,b.Base.x,b.Base.y);d.ec()} q.Uc=function(){this.ta=!0;this.oo.addClass("disabled");this.Eb.find(".close").hide();this.sortable&&this.sortable.sortable("disable")};q.pc=function(){this.ta=!1;this.oo.removeClass("disabled");this.Eb.find(".close").show();this.sortable&&this.sortable.sortable("enable")};q.eg=function(){this.yh=!0;this.Cl.trigger()};q.gh=function(){this.yh=!1;this.Cl.trigger()};function pn(a,b,c){var a=a||{},d=this;this.input=l;this.J=$(y({Q:"input-select",children:[{Q:"input-select-wrapper",children:[{Q:"input-select-textbox",children:[{R:"input",type:"text",create:function(a){d.input=a;a.change(function(){d.ha||d.va(parseFloat($(this).val())||d.value)})}}]},{Q:"input-select-button",create:function(a){a.click(function(){if(!d.ha&&d.Gb)if(d.Gb.Th())d.Gb.hide();else{J.set("gui.closeAllYerStuff");var a=d.J.offset(),b=a.left,a=a.top,c=d.J.outerWidth()-2;d.Gb.J.css({"min-width":c+ "px"});d.Gb.Lf(b,a+d.J.outerHeight()+1);d.Gb.show()}}).mousedown(function(a){a.stopPropagation()})},children:[{Q:"icon-13 icon-13-select-arrows"}]}]}]}));this.ha=a.disabled||!1;this.min=a.min||0;this.max=a.max||100;this.step=a.step||1;this.Ji=a.Ji||3;this.La=a.La||"";this.value=0;this.va(a.value||0,!0);this.Fa=[];this.Gb=l;(this.options=a.options||l)&&this.Tl();a.change&&this.Wb(a.change);if(a.Cc)this.Cc=a.Cc;b&&this.appendTo(b,c);this.ha&&this.disable()}q=pn.prototype; q.Go=function(){var a=this;this.Gb=new Tl([],{small:!0});J("gui.closeAllYerStuff",function(){a.Gb.hide()})};q.Tl=function(){this.Gb||this.Go();var a=this,b=[];this.Cc&&this.Cc();A(this.options,function(c){b.push({label:String(c.value),action:function(){a.va(c.value)},selected:function(){return a.value==c.value}});c.selected&&a.va(c.value,!0)});this.Gb.Ug=b;this.Gb.refresh()}; q.va=function(a,b){if(a!=this.value){this.value=a>this.max?this.max:a0&&this.va(this.options[0].value!==h?this.options[0].value:this.options[0].label,!0);this.Gb.Ug=b;this.Gb.refresh()}; q.va=function(a,b){if(a!=this.value||this.label==""){var c="";A(this.options,function(b){if(a==(b.value!==h?b.value:b.label))return c=b.label||(b.na?{Q:"icon-13 icon-13-"+b.na}:l)||b.mb,!1});this.label=c||"";this.na?this.Cp.empty().append(y({Q:"icon-13 icon-13-"+this.na})):this.Cp.empty().append(y(this.label));if(this.value!=a)this.value=a,this.Cb(!!b)}};q.Cb=function(a){var b=this;A(this.Fa,function(c){c(b.value,!!a)})};q.appendTo=function(a,b){this.J.css({width:b?b+"px":"auto"}).appendTo(a);return this}; q.ca=function(a,b){if(this.ha)return this;this.va(a,!b);return this};q.sb=ea("value");q.Wb=function(a){this.Fa.push(a);return this};q.enable=function(){this.J.removeClass("disabled");this.ha=!1;return this};q.disable=function(){this.J.addClass("disabled");this.ha=!0;return this};q.reset=function(){this.va(l,!0);return this};q.destroy=function(){this.J.remove();this.Fa=l};function xn(a,b,c,d,e){function f(a){if(Xd&&!ae&&!a.button)return g(a);a.preventDefault();a.stopImmediatePropagation();d(a.pageX-j,a.pageY-k)}function g(a){$(document).unbind("mousemove.binddrag."+b,f).unbind("mouseup.binddrag."+b,g);i&&(i=!1,e&&e(a.pageX-j,a.pageY-k))}var i=!1,j=0,k=0;a.bind("mousedown."+b,function(a){j=a.pageX;k=a.pageY;i&&g(a);$(document).bind("mousemove.binddrag."+b,f).bind("mouseup.binddrag."+b,g);a.preventDefault();i=!0;c(a)})};function yn(a,b,c){function d(a,b){e.ha||(e.va(n*Math.atan2(k-(i+b),g+a-j),!0),e.Uk())}var a=a||{},e=this;this.handle=l;this.J=$(y({Q:"input-angle",children:[{Q:"input-angle-wheel"},{Q:"input-angle-handle",create:function(a){e.handle=a}}]}));this.zk=this.Ak=this.Dg=this.ad=0;this.ha=a.disabled||!1;this.Ba=a.Ba===h?l:a.Ba;this.value=0;this.va(a.value||this.Ba||0,!0);this.qf=[];this.pf=[];this.rf=[];this.Fa=[];a.start&&this.Pj(a.start);a.Nf&&this.Oj(a.Nf);a.stop&&this.Qj(a.stop);a.change&&this.Wb(a.change); b&&this.appendTo(b,c);var f=0,g=0,i=0,j=0,k=0,n=180/Math.PI;xn(this.J,"lucidViewCommonInputAngleHandle",function(a){if(!e.ha){var b=e.J.offset();e.ad==0&&e.refresh();g=a.clientX;i=a.clientY;j=b.left+e.ad/2;k=b.top+e.Dg/2;f=e.value;e.va(n*Math.atan2(k-i,g-j),!0);e.Vk()}},d,function(a,b){e.ha||(d(a,b),e.Wk(),f!=e.value&&e.Cb())});this.ha&&this.disable()}q=yn.prototype;q.va=function(a,b){this.value=(360+Math.round(a))%360;b&&this.Bl()}; q.refresh=function(){this.ad=this.J.width();this.Dg=this.J.height();this.Ak=this.handle.outerWidth();this.zk=this.handle.outerHeight();return this.ad==0?!1:!0};q.Vk=function(){var a=this;A(this.qf,function(b){b(a.value)})};q.Uk=function(){var a=this;A(this.pf,function(b){b(a.value)})};q.Wk=function(){var a=this;A(this.rf,function(b){b(a.value)})};q.Cb=function(a){var b=this;A(this.Fa,function(c){c(b.value,!!a)})};q.appendTo=function(a,b){this.J.css({width:b?b+"px":"auto"}).appendTo(a);return this}; q.Bl=function(){if(this.ad==0&&this.refresh()==!1)return this;var a=this.ad/2-5;this.handle.css({left:Math.round((this.ad-this.Ak)/2+a*Math.cos(Math.PI*this.value/180))+"px",top:Math.round((this.Dg-this.zk)/2-a*Math.sin(Math.PI*this.value/180))+"px"});return this};q.ca=function(a){if(this.ha||a==this.value)return this;this.va(a,!0);this.Cb(!0);return this};q.sb=ea("value");q.reset=function(){this.Ba!==l&&this.va(this.Ba,!0);return this};q.Pj=function(a){this.qf.push(a);return this}; q.Oj=function(a){this.pf.push(a);return this};q.Qj=function(a){this.rf.push(a);return this};q.Wb=function(a){this.Fa.push(a);return this};q.enable=function(){this.J.removeClass("disabled");this.ha=!1;return this};q.disable=function(){this.J.addClass("disabled");this.ha=!0;return this};q.destroy=function(){this.J.remove();this.Fa=this.rf=this.pf=this.qf=l};function zn(a,b){function c(a,b){d.ha||(d.va(new G((f+a)/(d.ad||f+a),(g+b)/(d.Dg||g+b)),!0),d.Uk())}var a=a||{},d=this;this.handle=l;this.J=$(y({Q:"input-coord",children:[{Q:"input-coord-wheel"},{Q:"input-coord-handle",create:function(a){d.handle=a}}]}));this.zk=this.Ak=this.Dg=this.ad=0;this.ha=a.disabled||!1;this.Ba=a.Ba===h?l:a.Ba;this.value=new G(0.5,0.5);this.va(a.value||this.Ba||this.value,!0);this.qf=[];this.pf=[];this.rf=[];this.Fa=[];a.start&&this.Pj(a.start);a.Nf&&this.Oj(a.Nf);a.stop&& this.Qj(a.stop);a.change&&this.Wb(a.change);b&&this.appendTo(b);var e=this.value,f=0,g=0;xn(this.J,"lucidViewCommonInputCoordHandle",function(a){if(!d.ha){d.ad<=0&&d.refresh();var b=d.J.offset();f=a.pageX-(b.left+1);g=a.pageY-(b.top+1);e=d.value;d.va(new G(f/(d.ad||f),g/(d.Dg||g)),!0);d.Vk()}},c,function(a,b){d.ha||(c(a,b),d.Wk(),Na(e,d.value)||d.Cb())});this.ha&&this.disable()}q=zn.prototype;q.va=function(a,b){this.value=new G(If(a.x,0,1),If(a.y,0,1));b&&An(this)}; q.refresh=function(){this.ad=this.J.width()-2;this.Dg=this.J.height()-2;this.Ak=this.handle.outerWidth();this.zk=this.handle.outerHeight();return this.ad<=0?!1:!0};q.Vk=function(){var a=this;A(this.qf,function(b){b(a.value)})};q.Uk=function(){var a=this;A(this.pf,function(b){b(a.value)})};q.Wk=function(){var a=this;A(this.rf,function(b){b(a.value)})};q.Cb=function(a){var b=this;A(this.Fa,function(c){c(b.value,!!a)})};q.appendTo=function(a,b){this.J.css({width:b?b+"px":"auto"}).appendTo(a);return this}; function An(a){a.ad<=0&&a.refresh()==!1||a.handle.css({left:Math.round(-a.Ak/2+a.value.x*a.ad+1)+"px",top:Math.round(-a.zk/2+a.value.y*a.Dg+1)+"px"})}q.ca=function(a){this.ad<=0&&An(this);if(this.ha||Na(a,this.value))return this;this.va(a,!0);this.Cb(!0);return this};q.sb=function(){return new G(this.value.x,this.value.y)};q.reset=function(){this.Ba!=l&&this.va(this.Ba,!0);return this};q.Pj=function(a){this.qf.push(a);return this};q.Oj=function(a){this.pf.push(a);return this}; q.Qj=function(a){this.rf.push(a);return this};q.Wb=function(a){this.Fa.push(a);return this};q.enable=function(){this.J.removeClass("disabled");this.ha=!1;return this};q.disable=function(){this.J.addClass("disabled");this.ha=!0;return this};q.destroy=function(){this.J.remove();this.Fa=this.rf=this.pf=this.qf=l};function Bn(a,b,c){var a=a||{},d=this;this.input=l;this.J=$(y({R:"label",Q:a.Q||"",children:[{R:"input",type:"checkbox",attr:a.value||a.checked?{checked:"checked"}:{},create:function(a){d.input=a;a.bind("change",function(){d.ha||d.va(a.is(":checked"))})}},{R:"span",text:" "+(a.label||"")}]}));this.ha=a.disabled||!1;this.value=!!a.value||!!a.checked||!1;this.Fa=[];a.change&&this.Wb(a.change);b&&this.appendTo(b,c);this.ha&&this.disable()}q=Bn.prototype; q.va=function(a,b){(this.value=a)?this.input.attr("checked","checked"):this.input.removeAttr("checked");this.Cb(b)};q.Cb=function(a){var b=this;A(this.Fa,function(c){c(b.value,!!a)})};q.appendTo=function(a,b){this.J.css({width:b?b+"px":"auto"}).appendTo(a);return this};q.sb=ea("value");q.ca=function(a){this.va(a,!0);return this};q.Wb=function(a){this.Fa.push(a);return this};q.enable=function(){this.J.removeClass("disabled");this.input.removeAttr("disabled");this.ha=!1;return this}; q.disable=function(){this.J.addClass("disabled");this.input.attr("disabled","disabled");this.ha=!0;return this};q.destroy=function(){this.J.remove();this.Fa=l};function Cn(a,b,c){function d(a){if(!e.ha){n=k+a;if(n<=0)n=0;else if(n>=e.td)n=e.td;e.step&&(n=Math.round(n/i)*i);e.handle.css({left:Math.round(n)+"px"});e.va(e.min+g*n);e.Uk()}}var a=a||{},e=this;this.handle=l;this.J=$(y({Q:"slider"+(a.Q?" "+a.Q:""),css:a.css||l,children:[{Q:"slider-bar-border",children:[{Q:"slider-bar-bg"}]},{Q:"slider-handle",create:function(a){e.handle=a}}]}));this.td=0;this.ha=a.disabled||!1;this.min=a.min||0;this.max=a.max===h?100:a.max;this.step=a.step||0;this.Ba=a.Ba===h? l:a.Ba;this.value=0;this.va(a.value||this.Ba||0,!0);this.qf=[];this.pf=[];this.rf=[];this.Fa=[];a.start&&this.Pj(a.start);a.Nf&&this.Oj(a.Nf);a.stop&&this.Qj(a.stop);a.change&&this.Wb(a.change);b&&this.appendTo(b,c);var f,g,i,j,k=0,n=0;xn(this.handle,"lucidViewCommonInputSliderHandle",function(){if(!e.ha)e.td==0&&e.refresh(),f=e.max-e.min,g=f/(e.td||f),i=e.step/g,j=e.value,k=e.handle.position().left,e.Vk()},d,function(a){e.ha||(d(a),e.Wk(),j!=e.value&&e.Cb())});this.handle.click(function(a){a.stopPropagation()}); this.J.click(function(a){e.ha||(a=(a.clientX-($(this).offset().left+e.handle.outerWidth()/2))/($(this).outerWidth()-e.handle.outerWidth()),e.va(e.min+a*(e.max-e.min),!0),e.Cb())});this.ha&&this.disable()}q=Cn.prototype;q.va=function(a,b){this.value=a>this.max?this.max:aa.max&&(b=a.min+(b-(a.max+1)));a.va(b)}function Gn(a){var b=(Math.round(a.value/a.step)-1)*a.step;a.loop&&bthis.max?this.max:a0?"visible":"hidden"});b>0&&b<1?a.css({opacity:b}):a.css({opacity:""})}function Ln(a,b){gg(a.Ch,gg(b));On(a.Io,b);Pn(a.Io,b.ga())} function Nn(a,b){var c=a.Vb;a.mode=b;a.Be.removeClass("h s v r g b a");a.Dd.removeClass("h s v r g b a");switch(b){case "h":On(a.Be.addClass("h"));Pn(a.Zj,1);Pn(a.Di,1);On(a.Dd.addClass("h"));Pn(a.Zl,1);Pn(a.Bi,1);Pn(a.$l,1);Pn(a.am,1);Pn(a.wh,1);Qn(a.Rc,"all",{Bb:0,Ab:1,Ta:0,Sa:1});Qn(a.Ec,"rangeY",{Ta:0,Sa:360});break;case "s":On(a.Be.addClass("s"));a.Dd.addClass("s");Pn(a.wh,1);Qn(a.Rc,"all",{Bb:0,Ab:360,Ta:0,Sa:1});Qn(a.Ec,"rangeY",{Ta:0,Sa:1});break;case "v":On(a.Be.addClass("v"),new I("#000000")); On(a.Dd.addClass("v"),c);Pn(a.Bi,1);Pn(a.wh,1);Qn(a.Rc,"all",{Bb:0,Ab:360,Ta:0,Sa:1});Qn(a.Ec,"rangeY",{Ta:0,Sa:1});break;case "r":a.Be.addClass("r");a.Dd.addClass("r");Qn(a.Rc,"all",{Bb:0,Ab:255,Ta:0,Sa:255});Qn(a.Ec,"rangeY",{Ta:0,Sa:255});break;case "g":a.Be.addClass("g");a.Dd.addClass("g");Qn(a.Rc,"all",{Bb:0,Ab:255,Ta:0,Sa:255});Qn(a.Ec,"rangeY",{Ta:0,Sa:255});break;case "b":a.Be.addClass("b");a.Dd.addClass("b");Qn(a.Rc,"all",{Bb:0,Ab:255,Ta:0,Sa:255});Qn(a.Ec,"rangeY",{Ta:0,Sa:255});break;case "a":On(a.Be.addClass("a")); a.Dd.addClass("a");Pn(a.Bi,1);Pn(a.wh,1);Qn(a.Rc,"all",{Bb:0,Ab:360,Ta:0,Sa:1});Qn(a.Ec,"rangeY",{Ta:0,Sa:1});break;default:aa("Invalid Mode")}switch(b){case "s":case "v":case "a":Pn(a.Zj,1);Pn(a.Zl,1);Pn(a.$l,1);Pn(a.am,1);break;case "r":case "g":case "b":On(a.Be),On(a.Dd),Pn(a.Zl,1),Pn(a.Zj,1),Pn(a.wh,1)}Kn(a,a.Vb)} function Kn(a,b,c){a.Vb.clone(b);var d=ig(b),e=d[0],f=d[1],d=d[2],g=b.Ua(),i=b.Nh(),j=b.gb(),k=b.ga();switch(a.mode){case "h":a.Rc.val("xy",{x:f,y:1-d},c);break;case "s":case "a":a.Rc.val("xy",{x:e,y:1-d},c);break;case "v":a.Rc.val("xy",{x:e,y:1-f},c);break;case "r":a.Rc.val("xy",{x:j,y:255-i},c);break;case "g":a.Rc.val("xy",{x:j,y:255-g},c);break;case "b":a.Rc.val("xy",{x:g,y:255-i},c)}switch(a.mode){case "h":a.Ec.val("y",360-e,c);break;case "s":a.Ec.val("y",1-f,c);break;case "v":a.Ec.val("y",1- d,c);break;case "r":a.Ec.val("y",255-g,c);break;case "g":a.Ec.val("y",255-i,c);break;case "b":a.Ec.val("y",255-j,c);break;case "a":a.Ec.val("y",1-k,c)}On(a.Ag,b);Pn(a.Ag,k);switch(a.mode){case "h":On(a.Be,ig(new I,[e,1,1]));break;case "s":case "a":Pn(a.Di,1-f);break;case "v":Pn(a.Zj,d);break;case "r":Pn(a.Di,If(g/255,0,1));break;case "g":Pn(a.Di,If(i/255,0,1));break;case "b":Pn(a.Di,If(j/255,0,1))}Pn(a.Qr,1-k);switch(a.mode){case "h":Pn(a.Ci,1-k);break;case "s":On(a.Dd,ig(new I,[e,1,d]));Pn(a.Bi, 1-d);Pn(a.Ci,1-k);break;case "v":On(a.Dd,ig(new I,[e,f,1]));Pn(a.Ci,1-k);break;case "r":case "g":case "b":var n=c=0;a.mode=="r"?(c=j,n=i):a.mode=="g"?(c=j,n=g):a.mode=="b"&&(c=g,n=i);var m=n>c?c:n;Pn(a.Bi,c>n?(c-n)/(255-n):0);Pn(a.$l,n>c?(n-c)/(255-c):0);Pn(a.am,If(m/255,0,1));Pn(a.Ci,1-k);break;case "a":On(a.Dd,b),Pn(a.Ci,0),Pn(a.wh,1)}a.Ms.ca(e);a.Zt.ca(f*100);a.Mu.ca(d*100);a.Tt.ca(g);a.Gs.ca(i);a.Dr.ca(j);a.sr.ca(k*100);a.Bo.ca(b.tb().substr(1));a.po.ca(fg(b).substr(-2))} function Mn(a,b){function c(b){var c=b.pageX-f,b=b.pageY-g,c=If(c,0,a.wb),b=If(b,0,a.ob);i.val("xy",{x:c/a.wb*i.dl+i.Bb,y:b/a.ob*i.el+i.Ta})}function d(a){$(document).unbind("mouseup",d).unbind("mousemove",e);a.stopPropagation();a.preventDefault();return!1}function e(a){clearTimeout(k);k=setTimeout(function(){c.call(i,a)},0);a.stopPropagation();a.preventDefault();return!1}var f,g;this.Bb=0;this.dl=this.Ab=1;this.Ta=0;this.el=this.Sa=1;this.y=this.x=0;this.Vj=[];var i=this,j=a.find(".arrow:first"), k;j.wb=b.Uj&&b.Uj.width||j.width();j.ob=b.Uj&&b.Uj.height||j.height();a.wb=b.map&&b.map.width||a.width();a.ob=b.map&&b.map.height||a.height();a.mousedown(function(b){var j=a.offset();f=j.left|0;g=j.top|0;clearTimeout(k);k=setTimeout(function(){c.call(i,b)},0);$(document).bind("mousemove",e).bind("mouseup",d);b.preventDefault()});this.bind.call(i,function(){var b=0,c=0;i.dl>0&&(b=i.x==i.Ab?a.wb:i.x/i.dl*a.wb|0);i.el>0&&(c=i.y==i.Sa?a.ob:i.y/i.el*a.ob|0);j.wb>=a.wb?b=(a.wb>>1)-(j.wb>>1):b-=j.wb>>1; j.ob>=a.ob?c=(a.ob>>1)-(j.ob>>1):c-=j.ob>>1;j.css({left:b+"px",top:c+"px"})})}Mn.prototype.Pv=function(a){for(var b=0;b
');this.Zc=this.J.find(".callout-bubble");this.pn=this.J.find(".callout-pointer");this.qn=this.J.find(".callout-pointer-border");$("body").append(this.J);this.fill(b);Tn(this);this.move(a,c)} Sn.prototype.move=function(a,b){if(this.J.parent().length==0)return this;b==l||(this.direction=b);var c=a.x,d=a.y,e=this.$k,f=!1;this.J.is(":hidden")&&(f=!0,this.J.css({opacity:"0"}).show());Tn(this);this.direction=="n"?(this.J.offset({top:d,left:c-0.5*this.J.width()}),this.Zc.offset({top:d+e,left:c-0.5*this.Zc.outerWidth()}),Un(this),this.qn.removeClass().addClass("callout-pointer-border callout-pointer-up-border").offset({top:d-e,left:c-e}),this.pn.removeClass().addClass("callout-pointer callout-pointer-up").offset({top:d- (e-1),left:c-e})):this.direction=="e"?(this.J.offset({top:d-0.5*this.J.height(),left:c-this.J.width()}),this.Zc.offset({top:d-0.5*this.Zc.outerHeight(),left:c-this.J.width()}),Un(this),this.qn.removeClass().addClass("callout-pointer-border callout-pointer-right-border").offset({top:d-e,left:c-e-1}),this.pn.removeClass().addClass("callout-pointer callout-pointer-right").offset({top:d-e,left:c-e-2})):this.direction=="s"?(this.J.offset({top:d-this.J.height(),left:c-0.5*this.J.width()}),this.Zc.offset({top:d- this.J.height(),left:c-0.5*this.Zc.outerWidth()}),Un(this),this.qn.removeClass().addClass("callout-pointer-border callout-pointer-down-border").offset({top:d-e-1,left:c-e}),this.pn.removeClass().addClass("callout-pointer callout-pointer-down").offset({top:d-e-2,left:c-e})):this.direction=="w"&&(this.J.offset({top:d-0.5*this.J.height(),left:c}),this.Zc.offset({top:d-0.5*this.Zc.outerHeight(),left:c+e}),Un(this),this.qn.removeClass().addClass("callout-pointer-border callout-pointer-left-border").offset({top:d- e,left:c-e}),this.pn.removeClass().addClass("callout-pointer callout-pointer-left").offset({top:d-e,left:c-(e-1)}));f&&this.J.hide().css({opacity:""});return this};function Un(a){var b=a.J.offset(),c=b.left,b=b.top,d=a.J.width(),e=a.J.height(),f=$(window).width(),g=$(window).height();(c<10||b<10)&&a.J.offset({left:Math.max(10,c),top:Math.max(10,b)});(c+d>f-10||b+e>g-10)&&a.J.offset({left:Math.min(f-10-d,c),top:Math.min(g-10-e,b)})} function Tn(a){var b,c;a.direction=="n"||a.direction=="s"?(b=a.Zc.outerWidth(!0),c=a.Zc.outerHeight(!0)+a.$k+1):a.direction=="e"||a.direction=="w"?(b=a.Zc.outerWidth(!0)+a.$k+1,c=a.Zc.outerHeight(!0)):(b=a.Zc.outerWidth(!0)+a.$k+1,c=a.Zc.outerHeight(!0)+a.$k+1);a.J.css({width:b+"px",height:c+"px"})}Sn.prototype.fill=function(a){this.Zc.empty().append(a);this.J.is(":visible")&&(Tn(this),Un(this));return this};Sn.prototype.show=function(){this.J.appendTo("body");this.J.show();return this}; Sn.prototype.hide=function(){this.J.hide();return this};function Vn(){var a=this;this.Ca=!1;this.Fl=l;this.Gj=[];this.Lu=12;this.xi=this.sl=l;this.J=$(y({Q:"simple-color-picker",children:[{Q:"swatch-container",create:function(b){a.Fl=b;b.mouseleave(function(){b.find(".selected").removeClass("selected")})}},{Q:"spacer"},{Q:"swatch-container",create:function(b){a.sl=b;b.mouseleave(function(){b.find(".selected").removeClass("selected");a.zj&&a.zj.addClass("selected")})}},{Q:"button-container",create:function(b){a.xi=b}}]}));this.wo=new Sn(new G(0,0),this.J, "n");this.wo.Zc.mousedown(function(a){a.stopPropagation()});this.Uq={};this.V=this.Bd=this.Jq=this.zj=l;this.lb();J("gui.closeAllYerStuff",function(){a.hide()});this.vm=new dn(function(){a.Ca&&Wn(a)},500);$(document).bind("documentAction",function(){a.vm.queue()});J("viewport.pages",function(b){a.V=b;a.vm.queue(100)},!0);$(document).bind("documentLoaded",function(){a.vm.queue(100)})}q=Vn.prototype; q.lb=function(){function a(a){c&&a&&(a=wg([a[0]/255,a[1]/255,a[2]/255]),a=[a[0]*255,a[1]*255,a[2]*255]);b.sl.append(y({Q:"swatch"+(a?"":" transparent"),css:{"background-color":a?"rgb("+Math.round(a[0])+","+Math.round(a[1])+","+Math.round(a[2])+")":"transparent"},create:function(c){var d=l;a&&(d=new I(a),b.Uq[d.tb().toLowerCase()]=c);c.mouseover(function(){c.addClass("selected").siblings(".selected").removeClass("selected")}).click(function(){(!b.Bd||b.Bd(d)!=!1)&&b.hide()}).mousedown(function(a){a.stopPropagation()})}}))} var b=this,c=!!config.useCMYKMode,d;this.Uq={};this.sl.empty();var e=new I;a(l);for(d=0;d<11;d++)ig(e,[0,0,(10-d)/10]),a(kg(e));for(var f=0;f<9;f++)for(d=0;d<360;d+=30)jg(e,[d,1,(9-f)/10]),a(kg(e));this.sl.append(y({Q:"clear"}))}; function Xn(a,b){a.xi.empty();b=qc(b||[]);b.unshift({label:"Advanced",na:"hue-circle",Pa:"Open the advanced color picker",action:function(b){Rn.open(b||new I("#ffffff"),function(b){a.Bd&&a.Bd(b)})}});A(b,function(b){var d=[];b.na&&d.push({Q:"icon-21 icon-21-"+b.na});b.label&&d.push(b.label);a.xi.append(y({Q:"button"+(b.na?" has-icon-21"+(b.label?"":" onlyicon"):""),title:b.Pa||"",create:function(d){d.click(function(){a.hide();b.action(a.Jq)})},children:d}))})} q.show=function(a,b,c,d,e){J.set("gui.closeAllYerStuff");this.sl.find(".selected").removeClass("selected");this.Bd=c;d?(this.zj=this.Uq[d.tb().toLowerCase()]||l,this.Jq=d,this.zj&&this.zj.addClass("selected")):this.Jq=this.zj=l;Xn(this,e||[]);this.Ca=!0;this.vm.trigger();this.wo.show().move(new G(a,b))};q.hide=function(){this.Ca=!1;this.wo.hide()}; q.lv=function(a,b){a=qa(a)&&a.base||a;if(na(a)&&(b=b?b:1,a&&a.toLowerCase()!="transparent")){var c=new I(a,"#000000ff"),d=fg(c),c=c.ga();d!="#ffffffff"&&d!="#000000ff"&&c!=0&&(this.mj[d]?this.mj[d]+=b:this.mj[d]=b)}};q.kv=function(a,b){a=qa(a)&&a.base||a;if(na(a)&&(b=b?b:1,a&&a.toLowerCase()!="transparent")){var c=new I(a,"#000000ff"),d=fg(c),c=c.ga();d!="#ffffffff"&&d!="#000000ff"&&c!=0&&(this.fm[d]?this.fm[d]+=b:this.fm[d]=b)}}; function Yn(a,b){if(qa(a))A(a.m,function(a){a=uc(a);a.name=="color"&&b(pg(a.val,"#000000ff"))});else{var c=a.match(/\"v\":\"[0-9a-f]{6,8}\"/gi);if(c)for(var d=0;dd&&(d=c[g],e=new I(g));if(e){c[fg(e)]=-1;delete c[fg(e)];a:{d=a;for(var i=0;ii.Ia))i=a;if(a.Ia>g&&(!j||a.Ia2&&(Math.abs(b)>20?g.J.hide():g.J.show());g.Zd.Ia=If(i+a,0,g.td)/g.td;g.move();c();if(Math.abs(a)>1||Math.abs(b)>1)k=!0},function(a,b){j>2&&Math.abs(b)>20?(g.destroy(),d()):k?d():f()});this.J.click(function(a){a.stopPropagation()})}go.prototype.color=function(){this.hh.css({"background-color":Pf(this.Zd.color.tb()),opacity:this.Zd.color.ga()})}; go.prototype.move=function(){this.J.css({left:Math.round(If(this.Zd.Ia,0,1)*this.td)+"px"})};go.prototype.destroy=function(){this.J.remove();this.gs=!0};var mo,no,oo,po;function qo(){return ha.navigator?ha.navigator.userAgent:l}po=oo=no=mo=!1;var ro;if(ro=qo()){var so=ha.navigator;mo=ro.indexOf("Opera")==0;no=!mo&&ro.indexOf("MSIE")!=-1;oo=!mo&&ro.indexOf("WebKit")!=-1;po=!mo&&!oo&&so.product=="Gecko"}var to=no,uo=po,vo=oo,wo=ha.navigator,xo=(wo&&wo.platform||"").indexOf("Mac")!=-1,yo; a:{var zo="",Ao;if(mo&&ha.opera)var Bo=ha.opera.version,zo=typeof Bo=="function"?Bo():Bo;else if(uo?Ao=/rv\:([^\);]+)(\)|;)/:to?Ao=/MSIE\s+([^\);]+)(\)|;)/:vo&&(Ao=/WebKit\/(\S+)/),Ao)var Co=Ao.exec(qo()),zo=Co?Co[1]:"";if(to){var Do,Eo=ha.document;Do=Eo?Eo.documentMode:h;if(Do>parseFloat(zo)){yo=String(Do);break a}}yo=zo}var Fo={},Go={};function Ho(a){this.ek=a}var Io=/\s*;\s*/;q=Ho.prototype;q.set=function(a,b,c,d,e,f){/[;=\s]/.test(a)&&aa(Error('Invalid cookie name "'+a+'"'));/[;\r\n]/.test(b)&&aa(Error('Invalid cookie value "'+b+'"'));c!==h||(c=-1);e=e?";domain="+e:"";d=d?";path="+d:"";f=f?";secure":"";c=c<0?"":c==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(za()+c*1E3)).toUTCString();this.ek.cookie=a+"="+b+e+d+c+f}; q.get=function(a,b){for(var c=a+"=",d=(this.ek.cookie||"").split(Io),e=0,f;f=d[e];e++)if(f.indexOf(c)==0)return f.substr(c.length);return b};q.remove=function(a,b,c){var d=this.Do(a);this.set(a,"",0,b,c);return d};q.Si=function(){return Jo(this).keys};q.xk=function(){return Jo(this).Gl};q.wm=function(){return!this.ek.cookie?0:(this.ek.cookie||"").split(Io).length};q.Do=function(a){return this.get(a)!==h};q.clear=function(){for(var a=Jo(this).keys,b=a.length-1;b>=0;b--)this.remove(a[b])}; function Jo(a){for(var a=(a.ek.cookie||"").split(Io),b=[],c=[],d,e,f=0;e=a[f];f++)d=e.indexOf("="),d==-1?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,Gl:c}}var Ko=new Ho(document);Ko.by=3950;function Lo(a,b){var c=this;this.Ao=this.body=this.$b=this.J=l;$(a).append(y({Q:"dock-panel",create:function(a){c.J=a},children:[{Q:"dock-panel-header",create:function(a){c.$b=a;a.dblclick(function(a){c.collapsed?c.expand():c.collapse();a.stopPropagation()})},children:[{Q:"control",create:function(a){a.click(function(a){c.hide();a.stopPropagation()})},children:[{Q:"icon-13 icon-13-close"}]},{Q:"control",create:function(a){a.click(function(a){c.collapsed?c.expand():c.collapse();a.stopPropagation()})}, children:[{Q:"icon-13 icon-13-minimize",create:function(a){c.Ao=a}}]}]},{Q:"dock-panel-body"+(b?"":" grid"),create:b?function(a){c.body=a}:l,children:b?l:[{Q:"grid_12",create:function(a){c.body=a}},{Q:"clear"}]}]}));this.Ca=l;this.Kh=this.collapsed=!1;this.cm=0;this.Au=[];this.kb=!1;this.Pt=!0}function Mo(a){A(a.Au,function(a){a()})} function No(a,b){var c=[],d=y({}),e=new Fa,f;switch(b.length){case 2:f="two";break;case 3:f="three";break;case 4:f="four";break;case 5:f="five";break;case 6:f="six"}e.open({Q:"dock-panel-tabs "+f});A(b,function(a){var b=y(a.content).hide().appendTo(d);e.add({Q:"dock-panel-tab",create:function(d){function e(){var c=a.Bd||l;d.addClass("selected").siblings().removeClass("selected");b.siblings().hide();b.show();c&&c()}c.push(e);d.click(e)},children:[{Q:"dock-panel-tab-content",text:a.label}]})});e.close(); e.add(d);a.append(y(e.Ie()));c[0]()}q=Lo.prototype;q.Tc=function(a){if(!a){var a={v:0,p:0,c:0},b=Ko.get("dockPanel."+this.name.replace(" ",""),"");b&&(a=gc(b))}la(a.p)?this.position(this.J.parent().width()-a.p[0]-this.J.outerWidth(),a.p[1]):this.position();a.v?this.show():this.hide();a.c?this.collapse():this.expand()};function Oo(a,b){a.cm=b} q.position=function(a,b,c){a!==h&&b!==h?(this.Kh=[this.J.parent().width()-(a+this.J.outerWidth()),b],c||this.J.css({left:a+"px",top:b+"px",right:"auto"})):(this.Kh=!1,this.J.css({top:this.cm+"px",left:"",right:""}))};function Po(a){return{v:a.Ca&&a.Pt?1:0,p:a.Kh||0,c:a.collapsed?1:0}}function Qo(a){Ko.set("dockPanel."+a.name.replace(" ",""),nd(Po(a)),1E8)}function Ro(a){if(!a.Kh){var b=a.cm+a.J.height(),c=a.J.parent().parent().height();b>c&&a.J.css({top:a.cm+c-b+"px",left:"",right:""})}} q.toggle=function(){this.Ca?this.hide():this.show()};q.hide=function(){if(this.Ca!==!1)this.Ca=!1,Qo(this),this.J.hide(),Mo(this)};q.show=function(){if(this.Ca!==!0)Ro(this),this.Ca=!0,Qo(this),this.J.show(),Mo(this)};q.Uc=function(){return!this.kb?(this.kb=!0,this.Ex=Po(this),this.hide(),!0):!1};q.pc=function(){return this.kb?(this.Tc(this.Ex),this.kb=!1,!0):!1}; q.collapse=function(){this.collapsed=!0;Qo(this);this.body.hide().parent().css("padding","2px");this.Ao.removeClass("icon-13-minimize").addClass("icon-13-maximize");Mo(this)};q.expand=function(){this.collapsed=!1;Qo(this);this.body.show().parent().css("padding","");this.Ao.removeClass("icon-13-maximize").addClass("icon-13-minimize");Mo(this)};q.Th=function(){return!!this.Ca};q.ta=function(){return!!this.kb};q.hc=function(){return!!this.Ca&&!this.collapsed};function So(a,b){a.Au.push(b)};function To(a,b){Lo.call(this,a);this.namespace="dockPanel.Metrics.";this.name="Metrics";this.$b.prepend("Metrics");this.K=b;this.lb()}Ca(To,Lo);To.prototype.lb=function(){this.body&&this.body.append($(y(this.content())))}; To.prototype.content=function(){function a(){if(O)return O;J.set("client.getDocument",function(a){O=a});return O}var b=this,c=[],d=(vn||l).Gh,e,f={},g,i,j,k,n,m,p,s,u,w,v,x,z=new dn(function(){g()},100),B=new Fa;B.add({Q:"heading top",text:"Position and Size"});D(B,5,1);Ha(B,1,{text:"X:",Q:"ralign"});D(B,4);n=E(B,new En({Ba:" ",min:-1E4,max:1E4,step:1,round:3,disabled:!0,change:function(a,b){b||i("x",a*d)}}));B.close();Ia(B);Ha(B,1,{text:"Y:",Q:"ralign"});D(B,4);m=E(B,new En({Ba:" ",min:-1E4,max:1E4, step:1,round:3,disabled:!0,change:function(a,b){b||i("y",a*d)}}));B.close();B.close();D(B,5);Ha(B,1,{text:"W:",Q:"ralign"});D(B,4);p=E(B,new En({Ba:" ",min:0.0010,max:1E4,step:1,round:3,disabled:!0,change:function(a,b){b||i("w",a*d)}}));B.close();Ia(B);Ha(B,1,{text:"H:",Q:"ralign"});D(B,4);s=E(B,new En({Ba:" ",min:0.0010,max:1E4,step:1,round:3,disabled:!0,change:function(a,b){b||i("h",a*d)}}));B.close();B.close();D(B,1);B.add({Q:"constrain-proportions",create:function(a){u=a;a.click(function(){j(!a.hasClass("locked"))})}}); B.close();D(B,9,2,1);B.add({Q:"button disabled fullwidth",text:"Original Size",create:function(a){w=a;a.click(function(){a.hasClass("disabled")||k()})}});B.close();Ja(B);B.add({Q:"heading",text:"Orientation"});D(B,3,1);v=E(B,new yn({disabled:!0,Ba:0,change:function(a,b){b||i("r",Math.PI*((360-a)%360)/180)},start:function(a){x.ca(a)},Nf:function(a){x.ca(a)}}));B.close();D(B,3,0,1);Ia(B);x=E(B,new En({Ba:" ",min:0,max:359,step:15,loop:!0,La:"\u00b0",disabled:!0,change:function(a,b){v.ca(a);b||i("r", Math.PI*((360-a)%360)/180)}}));B.add({text:"Angle",Q:"center"});B.close();B.clear();var O=l;i=function(b,d){var e=a();e.Aa();A(c,function(c){if(!c.ta&&(c.sa||c.pa)){var f;f=c.pa?$h([c]):c.ja();var g=new H(0,0,0,0);if(b=="x")g.x=d-f.x;else if(b=="y")g.y=d-f.y;else if(b=="w")g.w=d-f.w,c.Zf&&(g.h=f.h*d/f.w-f.h);else if(b=="h")g.h=d-f.h,c.Zf&&(g.w=f.w*d/f.h-f.w);b=="r"?(g=c.q.get("Rotation"),c=c.vk(f,d-g)):c=c.Jg(f,g);F(c,function(b,c){a().ra(b)&&F(c,function(a,c){e.ba(new N(M,{id:b,Property:a,Value:c}))})})}}); e.xa();z.queue()};j=function(b){a();O.Aa();A(c,function(a){if(!a.ta&&!!a.Zf!=b&&(a.sa||a.pa))O.ba(new N(M,{id:a.id,Property:"ConPro",Value:b?1:0}))});O.xa();z.queue()};k=function(){a();O.Aa();A(c,function(a){if(a.sa&&!a.ta){var b=vi(a.q.get("FillColor"));if(b&&b.kf){var b=Ka.Ig(b.url()),c=a.ja();O.ba(new N(M,{id:a.id,Property:"BoundingBox",Value:new wb(new H(0,0,b.width,b.height),c)}))}}});O.xa()};g=function(){if(b.hc()){var a,e,g,i,j,k,z,B,O=!0,tb=!1;d=(vn||l).Gh;var ob=" "+(vn||l).Mf,Ib=d>12?0.1: d>1?1:c[0]?c[0].page.q.get("GridSpacing"):12,Bb=d==1?0:3;n.La=ob;m.La=ob;p.La=ob;s.La=ob;n.round=Bb;m.round=Bb;p.round=Bb;s.round=Bb;A(c,function(b){if(b.sa||b.pa){z=z||!!b.pa;B=B||!b.page;var c=b.ja(),d=f[b.id]||new H(0,0,0,0);d.rotation=d.rotation||0;if(a===h||!b.ta&&O)a=c.x+d.x,e=c.y+d.y,g=c.w+d.w,i=c.h+d.h,j=!!b.Zf,k=(b.q.get("Rotation")||0)+d.rotation,O=!!b.ta;else if(!!b.ta==O&&(a!=c.x+d.x&&(a=l),e!=c.y+d.y&&(e=l),g!=c.w+d.w&&(g=l),i!=c.h+d.h&&(i=l),j=j&&!!b.Zf,k!=(b.q.get("Rotation")||0)+d.rotation))k= l;b.sa&&(b=vi(b.q.get("FillColor")))&&b.kf&&(tb=!0)}});a!==h?(n.enable().step=Ib,m.enable().step=Ib,p.enable().step=Ib,s.enable().step=Ib,v.enable(),x.enable(),a!=l?n.ca(a/d):n.reset(),e!=l?m.ca(e/d):m.reset(),g!=l?p.ca(g/d):p.reset(),i!=l?s.ca(i/d):s.reset(),j?u.addClass("locked"):u.removeClass("locked"),tb?w.removeClass("disabled"):w.addClass("disabled"),k!=l&&!z?x.ca((360-Math.round(180*k/Math.PI))%360):(x.reset(),v.ca(0),z&&(x.disable(),v.disable())),O&&(n.disable(),m.disable(),p.disable(),s.disable(), w.addClass("disabled"),v.disable(),x.disable())):(n.reset().disable(),m.reset().disable(),p.reset().disable(),s.reset().disable(),u.removeClass("locked"),w.addClass("disabled"),v.reset().disable(),x.reset().disable());B&&(n.disable(),m.disable())}};J("page.selectionChange",function(a){e&&clearTimeout(e);e=setTimeout(function(){c=a;f={};z.queue()},100)});J("editorMode.offsetsApplied",function(){b.hc()&&(f={},g())});So(this,g);return B.Ie()};function Uo(a,b){var c=this;Lo.call(this,a,!0);this.name="States";this.$b.prepend(S("statepanel.title"));this.K=b;this.qj=this.Ha=!1;this.maxHeight=360;this.lb();if(this.K.$.Id())c.K.eg(),c.qj=!0,c.bx=!0;$(document).bind("documentAction activeGroupSet documentLoaded",function(){c.ia()});J("viewport.pages",function(){c.ia()});J("presentation.exit",function(){c.qj&&!c.bx&&Vo(c)});this.wf=this.K.viewport.mode.wf;setInterval(r(this.Ub,this),250)}Ca(Uo,Lo);q=Uo.prototype;q.lb=function(){this.body&&this.body.append($(y(this.content())))}; q.content=function(){var a=this;return{Q:"dockpanel-state",children:[{css:{"max-height":this.maxHeight+"px"},Q:"scrollable",children:[{Q:"list"}],create:function(b){a.ns=b}},{Q:"footer",children:[{R:"span",Q:"button",create:function(b){b.click(function(){Wo(a)})},children:[{R:"strong",html:S("statepanel.button.start")},{Q:"icon-13 icon-13-toggle-right right"}]}]}]}};q.disable=function(){this.qj&&Vo(this)}; q.rs=function(){var a=this,b=this.K.$.document,c=this.K.viewport,d=c.Hc();if(c.V.length!=0){var e=[];A(vj(c.V[0].C),function(a){a.pa&&a.Jc&&e.push(a)});e.reverse();for(var f=$("
"),g=0;g
").appendTo(a.Pk),f=$('
').appendTo(g).css({"padding-bottom":2*i+2+"px","padding-left":f+"px","padding-right":f+2+"px"}),g=$('
').appendTo(g).css({width:"80px"}); Pj(d,e-2,f.children().css({background:"#FFF",border:"#666 solid 1px"}));d={css:{width:"80px"},children:[{Q:"button fullwidth lalign",html:" "+S("New"),create:function(d){d.click(function(){var d=new N(xg,{Properties:{Title:S("Untitled Page"),Order:b.Vh("Order")+1,Size:c.q.get("Size"),Margin:c.q.get("Margin"),DPI:c.q.get("DPI"),GridSpacing:c.q.get("GridSpacing"),Master:c.id}});b.ba(d);a.K.viewport.Lb([b.nb(d.id)]);hn(a.K.li)})},children:[{Q:"icon-13 icon-13-plus left"}]},{Q:"button fullwidth lalign", html:" "+S("Apply"),create:function(b){b.click(function(){var b=a.K.viewport.V[0].C;b&&(b.Fb()?L(S("alert.apply.master.to.master")):(c.id!=sj(b,!0)&&Dj(b,c.id),Tk(S("growl.master.applied"))))})},children:[{Q:"icon-13 icon-13-arrow-turn-d left"}]},{Q:"button fullwidth lalign",html:" "+S("Edit"),create:function(b){b.click(function(){a.K.viewport.Lb([c])})},children:[{Q:"icon-13 icon-13-pencil left"}]},{Q:"button fullwidth lalign",html:" "+S("Delete"),create:function(b){b.click(function(){a.K.viewport.Lb([c]); kn(a.K.li,c.id)})},children:[{Q:"icon-13 icon-13-trash left"}]}]};g.append($(y(d)))}});a.Pk.html()==""?a.Pk.html("

"+S("masterpanel.default")+"

"):a.Pk.append(y({Q:"clear"}))}ep.prototype.Ub=function(){if(this.rq&&this.Ca)this.rq=!1,fp(this)};t("lucid.view.chart.dockPanel.Master",ep);function gp(a,b){Lo.call(this,a,!0);var c=this;this.K=b;this.name=S("historypanel.title");this.$b.prepend(S("historypanel.title"));this.ck=this.Ha=this.nh=!1;this.maxHeight=300;this.Pt=!1;this.lb();So(this,function(){c.hc()?qk(c.K.$.document,function(){c.ia();if(c.Ca)c.ck=!0}):c.off()});setInterval(r(this.Ub,this),100)}Ca(gp,Lo);q=gp.prototype;q.lb=function(){this.body&&this.body.append($(y(this.content())))}; q.content=function(){var a=this,b={Q:"dockpanel-history",children:[{Q:"scrollable",css:{"max-height":this.maxHeight+"px"},text:S("historypanel.default"),create:function(b){a.Gi=b}},{Q:"footer",children:[{Q:"right",children:[{id:"history_apply",Q:"icon-13-button left",title:S("historypanel.button.revert"),children:[{Q:"icon-13 icon-13-history-apply"}],create:function(b){b.unbind("click").bind("click",function(){a.nh&&a.K.$.document.Xt()})}},{id:"history_new",Q:"icon-13-button left",title:S("historypanel.button.new"), children:[{Q:"icon-13 icon-13-history-new"}],create:function(b){b.unbind("click").bind("click",function(){if(a.nh){var b=a.K.$.document.q.get("Title");hp(a.K.$,a.K.$.document.fg,b,function(){L(S("historypanel.alert.new.error"))})}})}}]},{Q:"clear"}]}]};$(document).bind("documentAddSaveHistory",function(){a.ia();if(a.Ca)a.ck=!0});J("viewport.pages",function(){if(a.Ca)a.ck=!0});J("viewHistory.exit",function(){a.nh&&a.off()});var c=!1;$(document).bind("viewingHistory",function(b,e){e&&!c?ip(a.K):!e&& c&&jp(a.K);c=e});return b};function kp(a,b){a.K.viewport.ec();var c=lp(a.K.$.document,b),d;for(d in c)if(d==a.K.viewport.V[0].C.id)for(var e in c[d].Items)a.K.$.document.ra(e)&&a.K.viewport.V[0].Yc(e)}q.on=function(a){pe("viewHistory");a.addClass("active").children("div").slideDown("fast");$("#history_apply, #history_new").css("opacity",1);this.K.$.document.Zn(a.data("count"));kp(this,a.data("h"));this.nh=!0}; q.off=function(){if(this.nh)this.K.viewport.ec(),qe("viewHistory"),this.Gi.children(".active").removeClass("active").children("div").slideUp("fast"),$("#history_apply, #history_new").css("opacity",0.25),this.K.$.document.Pi(),this.nh=!1}; q.Ub=function(){if(this.hc){if(this.Ha)this.Ha=!1,V("hp",".refresh()"),this.refresh(),V("hp",".refresh() done");if(this.ck){this.ck=!1;V("hp",".hl()");if(this.jc!=l)for(var a=0,b=0;bDocument history for very large documents is temporarily disabled while we investigate ways to improve the performance of this feature. Thank you for your patience.

');else{this.jc=mp(this.K.$.document);for(var c=b=0;c
'+S("historypanel.ineligible.upgradelink")+""),g.append(S("historypanel.ineligible.prefix")).append(" "),g.append(k),g.append(S("historypanel.ineligible.suffix")))};q.ia=function(){if(this.Ca)this.Ha=!0};q.Uc=fa(!1);q.pc=fa(!1);function dp(a,b,c){var d=this,a=a||{};this.J=$(y({Q:a.Q||"button",title:a.Pa||l,css:a.css||l,create:function(b){b.bind(a.mousedown?"mousedown":"click",function(){d.ha||(a.action(d.value),d.refresh(!0))})},children:[a.content]}));this.rr=a.selected||l;this.ha=a.disabled||l;this.value=!1;b&&this.appendTo(b,c);this.refresh();this.ha&&this.disable()}q=dp.prototype;q.va=function(a){(this.value=a)?this.J.addClass("selected"):this.J.removeClass("selected")}; q.appendTo=function(a,b){this.J.css({width:b?b+"px":"auto"}).appendTo(a);return this};q.refresh=function(){this.va(!(!this.rr||!this.rr()));return this};q.sb=ea("value");q.Wb=o();q.enable=function(){this.J.removeClass("disabled");this.ha=!1;return this.refresh()};q.disable=function(){this.J.addClass("disabled");this.ha=!0;return this.refresh()};q.destroy=function(){this.J.remove()};function np(a,b){var c=this;Lo.call(this,a);this.namespace="dockPanel.Plugin.";this.name="Shape Options";this.$b.prepend("Shape Options");this.K=b;this.Xp=this.Fo=l;this.lb();this.Pe=[];this.ol=this.nl=l;this.gl=new dn(function(){c.refresh()},10);J("page.selectionChange",function(a){c.Pe=a;c.nl=l;c.ol=l;c.gl.queue()});J("panel.plugin.refresh",function(){c.gl.queue()})}Ca(np,Lo); np.prototype.lb=function(){if(this.body){var a=this;this.body.append($(y([{create:function(b){a.Fo=b}},{text:"Controls for selected objects will appear here.",create:function(b){a.Xp=b}}])))}};function op(a){if(a.ol==l){a.ol=[];var b=function(b){b.pa?c(b):b.fb&&a.ol.push(b)},c=function(a){a.Ib(function(){b(this)})};A(a.Pe,function(a){b(a)})}return a.ol} function pp(a){if(a.nl==l){a.nl=[];var b=function(b){b.pa?c(b):b.sa&&a.nl.push(b)},c=function(a){a.Ib(function(){b(this)})};A(a.Pe,function(a){b(a)})}return a.nl} function qp(a,b,c){function d(b,c){b.ms&&F(K(b.ms),function(b,d){if(!(oc(f,b)>=0)&&(d.context!="connectedLine"||c)){d.external&&(d={external:!0,label:d.label,Fd:d.group,index:d.index,type:d.type,change:d.change,min:d.min,max:d.max,step:d.step,value:d.value,options:d.options,ah:d.pair,action:d.action,context:d.context,size:d.size});if(pa(d.action)&&d.context=="connectedLine"&&c)d.action=r(d.action,c,a.K.viewport.V[0]&&a.K.viewport.V[0].Ra[c.id]);if(pa(d.value))d.value=d.value();if(e.hasOwnProperty(b)){var g= e[b];if(g.type!=d.type||g.Fd!=d.Fd||g.label!=d.label)f.push(b),delete e[b];g.index=Math.min(g.index,d.index);g.min=Math.max(g.min,d.min);g.max=Math.max(g.max,d.max);g.step=Math.min(g.step,d.step);if(g.value!=d.value)g.value="";if(pa(g.change)&&pa(d.change)){var m=g.change;g.change=function(a,b){m(a,b);d.change(a,b)}}if(pa(g.action)&&pa(d.action)){var p=g.action;g.action=function(){p();d.action()}}}else e[b]=d}})}var e={},f=[];A(b,function(a){d(a)});A(c,function(b){var c=b.q.get("Endpoint1"),e=b.q.get("Endpoint2"), c=c.Block&&a.K.$.document.ra(c.Block),e=e.Block&&a.K.$.document.ra(e.Block);c&&d(c,b);e&&(!c||c.className!=e.className)&&d(e,b)});F(e,function(a,b){var c=b.ah;if(c)e[c]?(b.ah=e[c],delete e[c]):b.ah=!1});return e}function rp(a){var b=[];F(a,function(a,d){b.push(d)});b.sort(function(a,b){return a.Fdb.Fd?1:a.indexb.index?1:a.labelb.label?1:a.typeb.type?1:0});return b} function sp(a,b){function c(b,c,d){if(b.change){var e=a.K.$.document;e.Aa();b.change(c,d);e.xa();a.refresh()}}var d=l,e=new Fa,f={Spinner:function(a){return new En({min:a.min,max:a.max,value:a.value,step:a.step,Ba:" ",change:function(b,d){c(a,b,d)}})},Select:function(a){var b=[],d=!1;F(a.options,function(c,e){var f=c==a.value;!d&&f&&(d=!0);b.push({label:e,value:c,selected:f})});b.unshift({label:"",value:"",selected:!d});return new wn({options:b,change:function(b,d){c(a,b,d)}})},Checkbox:function(a){return new Bn({value:a.value, change:function(b,d){c(a,b,d)}})},ColorWell:function(a){a=new bo({label:a.label,Q:a.Q,type:a.type,size:a.size,value:a.value,change:a.change});a.Ja(!0);return a}},g={Button:function(a){return{Q:"button top",click:function(){a.action()},text:a.label}}};A(b,function(a){d!=a.Fd?(d!=l&&(e.close(),Ja(e)),e.add({Q:"heading"+(d==l?" top":""),text:a.Fd}),D(e,12),d=a.Fd):Ia(e);var b=g[a.type]?g[a.type](a):l;if(b)e.add(b);else if(b=f[a.type]?f[a.type](a):l,Ha(e,5,{Q:"ralign",text:a.label+":"}),D(e,a.ah?3:6, 1),E(e,b),e.close(),a.ah)a.ah.max=a.value,a=f[a.ah.type](a.ah),D(e,3),E(e,a),e.close()});e.close();return y(e.Ie())}np.prototype.refresh=function(){var a;a=pp(this);var b=op(this);a=rp(qp(this,a,b));this.Xp.hide();this.Fo.hide().empty();a.length>0?this.Fo.append(sp(this,a)).show():this.Xp.show()};function tp(a,b){Lo.call(this,a);var c=this;this.name="Document";this.$b.prepend(config.extendedPageOptions?"Page Settings":"Document");this.K=b;J.set("client.getDocument",function(a){c.document=a});J("viewport.pages",function(a){c.V=a});this.lb()}Ca(tp,Lo);tp.prototype.lb=function(){this.body&&(config.extendedPageOptions?No(this.body,[{label:"Page Layout",content:up(this,!1)},{label:"Page Settings",content:vp(this)}]):this.body.append($(y(up(this,!0)))))}; function vp(a){function b(a,b){d.document.Aa();A(d.V,function(c){d.document.ba(new N(M,{id:c.C.id,Property:a,Value:b}))});d.document.xa()}function c(){if(d.V){var a=d.V[0].C;f.ca(a.q.get("GridSpacing"));g.ca(a.q.get("DPI"));i.ca(!a.q.get("SkipMultipage"))}}var d=a,e=new Fa,f,g,i;Ia(e);Ha(e,5,{Q:"ralign",text:"Snap To:"});D(e,7);f=E(e,new wn({options:[{value:1,label:"Do not snap to grid"},{value:5,label:"Very small grid (5px)"},{value:10,label:"Small grid (10px)"},{value:20,label:"Normal grid (20px)"}, {value:40,label:"Large grid (40px)"}],change:function(a,c){!c&&a!=d.V[0].C.q.get("GridSpacing")&&b("GridSpacing",a);d.K.viewport.ig()}}));e.close();Ia(e);Ha(e,5,{Q:"ralign",text:"Content Size:"});D(e,7);g=E(e,new wn({options:[{value:80,label:"Very large (80 DPI)"},{value:120,label:"Large (120 DPI)"},{value:160,label:"Normal (160 DPI)"},{value:240,label:"Small (240 DPI)"},{value:320,label:"Very small (320 DPI)"}],change:function(a,c){var e=d.V[0].C.q.get("DPI");if(!c&&a!=e){d.document.Aa();var f=d.V[0].C.q.get("Size"); b("Size",{w:f.w*a/e,h:f.h*a/e});b("DPI",a);d.document.xa()}}}));e.close();Ia(e);D(e,12);i=E(e,new Bn({label:"Auto-paginate",value:!1,change:function(a,c){c||b("SkipMultipage",!a)}}));e.close();J("viewport.afterRender",function(){c()});So(a,c);return e.Ie()} function up(a,b){function c(){if(a.hc()&&a.V){var b=a.V[0].C,c=b.q.get("Size"),d=b.q.get("DPI"),e=" "+qn.Mf;j.La=e;k.La=e;g.La=e;j.step=0.1;k.step=0.1;g.step=0.1;n.refresh();f.sb()=="custom"&&j.sb()==c.w/d&&k.sb()==c.h/d||(f.ca(Bj(c,d)||"custom"),j.ca(c.w/d),k.ca(c.h/d));g.ca(b.q.get("Margin")*d/d);m&&m.ca(a.document.q.get("FacingPages"))}}function d(b){a.document.Aa();A(a.V,function(c){a.document.ba(new N(M,{id:c.C.id,Property:"Size",Value:b}))});a.document.xa()}var e=new Fa,f,g,i,j,k,n,m;b?e.add({Q:"heading top", text:"Page Setup"}):e.add({Q:"spacer"});Ha(e,4,{Q:"ralign",text:"Page Size:"});D(e,8);f=E(e,new wn({options:function(){var a=[];A(Aj,function(b){a.push({value:b,label:b.name+" ("+b.$n+"x"+b.Am+")"})});a.push({value:"custom",label:"Custom"});return a}(),change:function(b,c){var e=a.V[0].C.q.get("DPI");!c&&b!="custom"&&d(n.sb()?{w:b.Am*e,h:b.$n*e}:{w:b.$n*e,h:b.Am*e});var f=a.V[0].C.q.get("Size");b=="custom"?(j.ca(f.w/e),k.ca(f.h/e),i.show()):i.hide()}}));e.close();e.open({create:function(a){i=a.hide()}}); Ia(e);Ha(e,1,2,{Q:"ralign",text:"W:"});D(e,4);j=E(e,new En({min:1,max:1E4,round:3,step:0.1,La:" "+qn.Mf,change:function(b,c){var e=a.V[0].C.q.get("DPI");c||d({w:b*e,h:k.sb()*e})}}));e.close();Ha(e,1,{Q:"ralign",text:"H:"});D(e,4);k=E(e,new En({min:1,max:1E4,round:3,step:0.1,La:" "+qn.Mf,change:function(b,c){var e=a.V[0].C.q.get("DPI");c||d({w:j.sb()*e,h:b*e})}}));e.close();e.close();Ia(e);Ha(e,4,{Q:"ralign",text:"Margins:"});D(e,4,0,4);g=E(e,new En({min:0,max:1E4,round:3,step:0.1,La:" "+qn.Mf,change:function(a, b){b||J.set("default.pageProperty.Margin",a)}}));e.close();Ia(e);Ha(e,4,{Q:"ralign",text:"Orientation:"});D(e,8);n=E(e,new co([{label:"Portrait",value:!1,checked:function(){if(!a.V)return!1;var b=a.V[0].C.q.get("Size");return b.h>=b.w}},{label:"Landscape",value:!0,checked:function(){if(!a.V)return!1;var b=a.V[0].C.q.get("Size");return b.w>b.h}}],{separator:"
",change:function(b,c){if(!c&&a.V){var e=a.V[0].C.q.get("Size");d({w:e.h,h:e.w})}}}));e.close();config.hasFacingPages&&(Ia(e),D(e,12),m= E(e,new Bn({label:"Facing Pages",value:!1,change:function(a,b){b||J.set("default.docProperty.FacingPages",a)}})),e.close());e.clear();J("viewport.afterRender",function(){c()});So(a,c);return e.Ie()};function wp(a,b){Lo.call(this,a);this.name="Text";this.$b.prepend("Text");this.K=b;this.lb()}Ca(wp,Lo);wp.prototype.lb=function(){this.body&&this.body.append($(y(this.content())))}; wp.prototype.content=function(){function a(){if(b.hc())if(k){c.enable();d.enable();e.enable();f.enable();g.enable();var a=l;J.set("text.indentLeft.value",function(b){a=b});c.ca(a/b.K.viewport.Gc);J.set("text.indentRight.value",function(b){a=b});d.ca(a/b.K.viewport.Gc);J.set("text.marginTop.value",function(b){a=b});e.ca(a/b.K.viewport.Gc);J.set("text.marginBottom.value",function(b){a=b});f.ca(a/b.K.viewport.Gc);J.set("text.lineSpacing.value",function(b){a=b});g.ca(a)}else c.reset().disable(),d.reset().disable(), e.reset().disable(),f.reset().disable(),g.reset().disable()}var b=this,c,d,e,f,g,i=new Fa;i.add({Q:"heading",text:"Identation (inches)"});D(i,5,1);Ha(i,2,{text:"Left:",Q:"ralign"});D(i,3);c=E(i,new En({Ba:0,min:0,max:1E3,step:0.1,round:1,disabled:!0,change:function(a,c){c||(b.K.document.Aa(),J.set("text.indentLeft",a*b.K.viewport.Gc),J.set("text.indentFL",a*b.K.viewport.Gc),b.K.document.xa())}}));i.close();i.close();D(i,5);Ha(i,2,{text:"Right:",Q:"ralign"});D(i,3);d=E(i,new En({Ba:0,min:0,max:1E3, step:0.1,round:1,disabled:!0,change:function(a,c){c||J.set("text.indentRight",a*b.K.viewport.Gc)}}));i.close();i.close();Ja(i);i.add({Q:"heading",text:"Spacing"});D(i,5,1);Ha(i,2,{text:"Before:",Q:"ralign"});D(i,3);e=E(i,new En({Ba:0,min:0,max:1E3,step:0.1,round:1,disabled:!0,change:function(a,c){c||J.set("text.marginTop",a*b.K.viewport.Gc)}}));i.close();Ia(i);Ha(i,2,{text:"After:",Q:"ralign"});D(i,3);f=E(i,new En({Ba:0,min:0,max:1E3,step:0.1,round:1,disabled:!0,change:function(a,c){c||J.set("text.marginBottom", a*b.K.viewport.Gc)}}));i.close();i.close();var j=0;J.set("text.lineSpacing.value",function(a){j=a});D(i,5);Ha(i,2,{text:"Line:",Q:"ralign"});D(i,3);g=E(i,new En({Ba:0,value:j,min:0,max:1E3,step:0.1,round:1,disabled:!0,change:function(a,b){b||J.set("text.lineSpacing",a)}}));i.close();i.close();var k=l;J("canvasEditor.active canvasEditor.selection",function(){if(P.Cj)k=P.Cj.qa.C,a()});J("canvasEditor.inactive",function(){k=l;a()});return i.Ie()};function xp(a,b){var c=this;this.J=l;this.Nd=b;this.kq=this.Nd.parent();this.body=l;$(a).append(y({Q:"dock",create:function(a){c.J=a},children:[{Q:"dock-header"},{Q:"dock-body",create:function(a){c.body=a}}]}));this.bi=[];$(window).resize(function(){yp(c)})} xp.prototype.$e=function(a,b,c){var d=this,e;this.body.append(y({Q:"dock-button",title:b.$b.text(),create:function(a){e=a;a.click(function(a){a.stopPropagation();b.ta()||(b.toggle(),b.Th()&&zp(d,b))})},children:[{Q:"icon-21 icon-21-"+a}]}));Oo(b,e.offset().top-d.Nd.offset().top);c&&e.hide();So(b,function(){b.Th()?e.addClass("selected"):e.removeClass("selected")});b.Tc();var f,g,i;b.J.draggable({snap:".dock",snapMode:"outer",snapTolerance:5,handle:b.$b,cursor:"move",opacity:0.75,distance:4,stack:".dock-panel", containment:this.kq,start:function(){f=$(this).outerWidth();g=d.Nd.width()-d.J.outerWidth();i=d.J.outerHeight()},drag:function(a,b){b.position.left+f+4>=g&&b.position.top-4<=i?d.J.addClass("highlight"):d.J.removeClass("highlight")},stop:function(a,c){d.J.removeClass("highlight");if(c.position.left+f+4>=g&&c.position.top-4<=i)b.position(),Qo(b),zp(d,b),yp(d,b);else{yp(d,b);var e=$(this).position();b.position(e.left,e.top,!0);Qo(b)}}});this.bi.push(b);J("dock.showPanel",function(a){A(d.bi,function(b){b.name== a&&(b.show(),zp(d,b))})});J("dock.hidePanel",function(a){A(d.bi,function(b){b.name==a&&b.hide()})});return{button:e,mg:b}};xp.prototype.qr=function(a,b,c){if(c.Th()){var d=c.J.position();a-=c.J.outerHeight();b-=c.J.outerWidth();d.top>a&&c.J.css("top",(a<0?0:a)+"px");d.left>b&&c.Kh&&c.J.css("left",(b<0?0:b)+"px")}};function yp(a,b){var c=a.kq.height(),d=a.kq.width();b?a.qr(c,d,b):A(a.bi,r(a.qr,a,c,d))}function zp(a,b){b.Kh||A(a.bi,function(a){!a.Kh&&a!=b&&a.hide()})} xp.prototype.hide=function(){this.J.hide();this.Nd.hide()};xp.prototype.show=function(){this.J.show();this.Nd.show()};function Ap(a,b){Lo.call(this,a);var c=this;this.name=S("navpanel.title");this.$b.prepend(S("navpanel.title"));this.K=b;this.kj=this.tn=!1;this.Rb={wb:210,ob:160};this.fi=this.Rb.wb/this.Rb.ob;this.Kt=!1;this.En=!0;this.Sp=this.Tp=this.mo=l;J.set("client.getDocument",function(a){c.document=a});this.lb()}Ca(Ap,Lo);Ap.prototype.lb=function(){this.body&&this.body.append($(y(this.content())))}; Ap.prototype.content=function(){var a=this,b=new Fa,c,d;b.add({css:{position:"relative",height:this.Rb.ob+4+"px",width:this.Rb.wb+4+"px",padding:"4px 4px 2px",overflow:"hidden"},children:[{css:{position:"relative",display:"inline-block"},children:[{css:{background:"#FFF",border:"#666 solid 1px"},create:function(b){a.Tp=b}},{css:{position:"absolute",top:0,left:0,border:"#FF0000 solid 2px",width:"100px",height:"100px","background-color":ae?"rgba(255,255,255,.01)":"transparent"},create:function(b){a.Sp= b}}]}]});Ja(b);Ia(b);D(b,3);c=E(b,new re({Rk:!0,La:"%",min:1,max:400,step:0.01,Ji:0,value:1,change:function(a,b){if(!b)a<1||a>400?(a=a<1?1:a>400?400:a,L(S("navpanel.alert.zoom.invalid"))):c.blur(),d.step=0.01,d.ca(Math.sqrt(a)),d.step=0.5,J.set("default.zoom",a)}}));b.close();D(b,9);b.open({css:{position:"relative"}});b.add({Q:"icon-13-button",title:S("navpanel.button.zoomout"),css:{position:"absolute",left:0,top:0},click:function(){J.set("default.zoomOut")},children:[{Q:"icon-13 icon-13-zoom-out"}]}); b.open({css:{margin:"0 21px"}});d=E(b,new Cn({value:1,min:1,max:20,step:0.5,Nf:function(a){c.ca(parseInt(a*a,10))},change:function(a,b){b||J.set("default.zoom",a*a)}}));b.close();b.add({Q:"icon-13-button",title:S("navpanel.button.zoomin"),css:{position:"absolute",right:0,top:0},click:function(){J.set("default.zoomIn")},children:[{Q:"icon-13 icon-13-zoom-in"}]});b.close();b.close();setInterval(r(this.Ub,this),100);$(document).bind("documentPostAction",function(b,c){if(c.Action!=yg)a.tn=!0});J("viewport.pages", function(b){a.mo=b[0]||l;a.tn=!0;a.kj=!0});J("viewport.scrollLeft",function(){if(a.En)a.kj=!0});J("viewport.scrollTop",function(){if(a.En)a.kj=!0});J("viewport.size",function(b){a.Tx=b[0];a.Sx=b[1]},!0);J("viewport.scale",function(a){d.step=0.01;d.ca(Math.sqrt(a*100));d.step=0.5;c.ca(Math.round(a*100))},!0);So(this,function(){d.Bl()});return b.Ie()}; Ap.prototype.To=function(){var a=this;if(this.mo){this.page=new Gj(this.mo.C);this.nj=mh(this.page.C);this.lj=this.nj.w/this.nj.h;var b=Math.round(this.ljb.label?1:a.label').parent()};A(this.Eo[c],function(a){if(na(a)||qa(a)&&a.Qo){var c=$(y({Q:"option-bar-divider",children:[{Q:"ld"},{Q:"rd"}]}));b.J.append(c);e=na(a)?l:c}else if(a.input)b.J.append(a.input.J),b.controls.push(a.input),e=f(a.input.J);else if(a.hb){var d= [];A(a.hb,function(b){a.action?d.push({na:b.na,Pa:b.Pa||l,action:function(){J.set(a.action,b.val)},disabled:function(){var b=!1;J.set(a.action+".disabled",function(a){b=a});return b},selected:function(){var c=!1;J.set(a.action+".value",function(a){c=a});return c==b.val}}):d.push({na:b.na,Pa:b.Pa||l,action:function(){J.set(b.action,b.param)},disabled:function(){var a=!1;J.set(b.action+".disabled",function(b){a=b});return a},selected:function(){var a=!1;J.set(b.action+".selected",function(b){a=b}); return a}})});c=new Dn(d);b.J.append(c.J);b.controls.push(c);e=f(c.J)}else if(a.type=="inputselect"&&a.options){var k=new pn({options:a.options,La:a.La||l,change:function(b,c){c||J.set(a.action,b)},Cc:a.Cc},b.J,a.width||100);b.controls.push(k);k.refresh=function(){var b=!1;J.set(a.action+".disabled",function(a){b=a});if(b)k.disable();else{k.enable();var c=l;J.set(a.action+".value",function(a){c=a});a.Cg&&a.Cg.call(k,c);k.ca(c)}};e=f(k.J)}else if(a.options)k=new wn({options:a.options,na:a.na||l,change:function(b, c){c||J.set(a.action,b)},Cc:a.Cc},b.J,a.width||(a.na?34:100)),b.controls.push(k),k.refresh=function(){var b=!1;J.set(a.action+".disabled",function(a){b=a});if(b)k.disable();else{k.enable();var c=l;J.set(a.action+".value",function(a){c=a});a.Cg&&a.Cg.call(k,c);k.ca(c)}},e=f(k.J);else if(a.type=="spinner"){var n=0;J.set(a.action+".value",function(a){n=a});var m=new En({min:a.min,max:a.max,step:a.step,round:a.round,value:a.Ek?a.Ek(n):n,La:a.La,change:function(b,c){c||J.set(a.action,a.fq?a.fq(b):b)}}, b.J,a.width||100);m.refresh=function(){var b=!1;J.set(a.action+".disabled",function(a){b=a});b?m.disable():m.enable();var c=0;J.set(a.action+".value",function(a){c=a});m.ca(a.Ek?a.Ek(c):c)};b.controls.push(m);e=f(m.J)}else if(a.type=="color"){n="#000000";J.set(a.action+".value",function(a){n=a});d=l;a.yx&&(d=[{na:"img-fill",Pa:"Image fill",action:function(){J.set("dock.showPanel","graphic");J.set("graphicPanel.action","image")}},{na:"grad-fill",Pa:"Gradient fill",action:function(){J.set("dock.showPanel", "graphic");J.set("graphicPanel.action","gradient")}}]);var p=new bo({value:n,change:function(b,c){c||J.set(a.action,b?b.serialize():l)},hb:d},b.J,a.width);p.refresh=function(){var b=!1;J.set(a.action+".disabled",function(a){b=a});b?p.disable():p.enable();var c="#000000";b||J.set(a.action+".value",function(a){c=a});p.ca(vi(c))};b.controls.push(p);e=f(p.J)}else if(a.type=="checkbox"){var s=l;J.set(a.action+".value",function(a){s=a});var u=new Bn({value:!!s,label:a.label,change:function(b,c){c||J.set(a.action, b?a.sv():l)}},b.J,a.width);u.refresh=function(){var b=!1;J.set(a.action+".disabled",function(a){b=a});b?u.disable():u.enable();var c=l;b||J.set(a.action+".value",function(a){c=a});u.ca(!!c)};b.controls.push(u);e=f(u.J)}else if(a.label||a.na)c=$(y({Q:"option-bar-label"+(a.left?"-left":a.right?"-right":""),text:a.label||l,children:a.na?[{Q:"icon-13 icon-13-"+a.na}]:l})),b.J.append(c),e=c;e&&a.zc&&b.Nu.push({mb:e,zc:a.zc})})}}}};q.refresh=function(){this.kb||this.gl.queue()}; q.Uc=function(){for(var a in this.controls)this.controls[a].disable();this.kb=!0};q.pc=function(){this.kb=!1};function Fp(a,b){Dp.call(this,a,b);this.K=b;this.Tc()}Ca(Fp,Dp); Fp.prototype.Tc=function(){function a(a){return e.K.viewport.Gc*a/72}function b(a){return 72*a/e.K.viewport.Gc}function c(){return Yk(e.K.viewport)}function d(){return Zk(e.K.viewport)}var e=this,f=!1;J("managefonts.refresh",function(){f=!0});var g=!1,i=!1;J("plugin.activated plugin.deactivated",function(){i=g=!0});J("context",function(){i=g=f=!0});this.Eo={"default":[{options:Ep(),action:"default.fontGroup",Cc:function(){this.options=Ep()},Cg:function(){if(f)f=!1,this.options=Ep()}},{type:"spinner", min:1,max:72,step:1,round:0.1,width:50,La:" pt",action:"default.textSize",Ek:b,fq:a},{type:"color",action:"default.textColor",Pa:S("option.text.color")},"|",{hb:[{na:"font-bold",action:"default.bold",Pa:S("Bold")},{na:"font-italic",action:"default.italic",Pa:S("Italic")},{na:"font-underline",action:"default.underline",Pa:S("Underline")}]},"|",{hb:[{na:"text-align-l",action:"default.align.left",Pa:S("Left Align")},{na:"text-align-c",action:"default.align.center",Pa:S("Center Align")},{na:"text-align-r", action:"default.align.right",Pa:S("Right Align")}]},{hb:[{na:"text-valign-t",val:"top",Pa:S("Top Align")},{na:"text-valign-m",val:"middle",Pa:S("Middle Align")},{na:"text-valign-b",val:"bottom",Pa:S("Bottom Align")}],action:"default.property.TextVAlign",zc:c},"|",{label:"Line:",left:!0},{type:"spinner",min:0,max:10,step:1,round:1,width:50,La:" px",action:"default.property.LineWidth"},{type:"color",action:"default.property.LineColor"},{options:[{na:"line-style-solid-lg",value:"solid"},{na:"line-style-dashed-lg", value:"dashed"},{na:"line-style-dotted-lg",value:"dotted"}],action:"default.property.StrokeStyle",width:54,zc:d},{Qo:!0,zc:d},{hb:[{na:"line-shape-curved",val:"curve"},{na:"line-shape-straight",val:"elbow"},{na:"line-shape-direct",val:"diagonal"}],action:"default.property.Shape",zc:d},{input:new Dn([{na:"line-edit",Pa:"Edit Line Shape",action:function(){J.set("default.editLineShape")},disabled:function(){return!e.K.viewport||!Xk(e.K.viewport)}}]),zc:d},{options:Yi(),action:"default.property.Endpoint1.Style", Cc:function(){this.options=Yi()},Cg:function(){if(g)g=!1,this.options=Yi()},width:54,zc:d},{options:Yi(!0),action:"default.property.Endpoint2.Style",Cc:function(){this.options=Yi(!0)},Cg:function(){if(i)i=!1,this.options=Yi(!0)},width:54,zc:d},{Qo:!0,zc:c},{label:"Fill:",left:!0,zc:c},{type:"color",action:"default.property.FillColor",yx:!0,zc:c},{Qo:!0,zc:c},{type:"checkbox",width:100,label:"Shadow",sv:function(){var a=l;J.set("default.property.Shadow.lastSet",function(b){a=b});return a},action:"default.property.Shadow", zc:c},"|",{input:new Dn([{na:"locked",Pa:"Lock Shape",action:function(){J.set("default.property.Lock",1)},disabled:function(){var a=!1;J.set("default.property.Lock.disabled",function(b){a=b});if(a===!0)return a;else a=l;J.set("default.property.Lock.values",function(b){b&&F(b,function(b,c){a==l?a=!!c:a!=!!c&&(a=!1)})});return!!a}},{na:"unlocked",Pa:"Unlock Shape",action:function(){J.set("default.property.Lock",0)},disabled:function(){var a=!1;J.set("default.property.Lock.disabled",function(b){a=b}); if(a===!0)return a;else a=l;J.set("default.property.Lock.values",function(b){b&&F(b,function(b,c){a==l?a=!c:a!=!c&&(a=!1)})});return!!a}}])},{input:new Dn([{na:"link",Pa:"Add/Edit Link",action:function(){J.set("default.selectNewLink")},disabled:function(){var a;if(!(a=!e.K.viewport))a=e.K.viewport,a.V.length==0?a=!1:(a=a.getSelection(!0),a=a.length==1&&a[0].sa),a=!a;return a}}]),zc:c}],text:[{options:Ep(),action:"text.fontGroup",Cc:function(){this.options=Ep()},Cg:function(){if(f)f=!1,this.options= Ep()}},{options:this.xm(),action:"text.fontFace",Cc:function(){this.options=e.xm(this.value)},Cg:function(a){this.options=e.xm(a)}},{type:"spinner",min:1,max:72,step:1,round:0.1,width:50,La:" pt",action:"text.textSize",Ek:b,fq:a},{type:"color",action:"text.color",Pa:S("option.text.color")},"|",{hb:[{na:"font-bold",action:"text.bold",Pa:S("Bold")},{na:"font-italic",action:"text.italic",Pa:S("Italic")},{na:"font-underline",action:"text.underline",Pa:S("Underline")},{na:"font-strike",action:"text.strike", Pa:S("Strike")}]},{hb:[{na:"format-remove",action:"text.clearStyle",Pa:S("option.formatting.remove")}]},"|",{hb:[{na:"text-align-l",action:"text.align.left"},{na:"text-align-c",action:"text.align.center"},{na:"text-align-r",action:"text.align.right"}]},"|",{na:"p-space-1",left:!0},{type:"spinner",min:0.7,max:8,step:0.1,round:1,width:70,La:" lines",action:"text.lineSpacing"},{options:[{label:"None",value:"p"},{label:"Bulleted",value:"ul"},{label:"Numbered",value:"ol"},{label:"Harvard",value:"hl"}], action:"text.blockType",na:"list-generic"},"|",{input:new Dn([{na:"page-number",Pa:S("option.page.number"),action:function(){J.set("text.insertPageNumber")}}])},{input:new Dn([{na:"page-count",Pa:S("option.page.count"),action:function(){J.set("text.insertTotalPages")}}])},{input:new Dn([{na:"eastern-char",Pa:S("option.input.alt"),action:function(){J.set("text.ime")},selected:function(){return parseInt($.cookie("ime"),10)==1}}])}]}};function Gp(a){var b=this;this.K=a;this.dialog=this.lb();J("hotSpotDialog.open",function(a){a&&a.length>0&&b.open(a[0],!!a[1])})}Gp.prototype.lb=function(){var a=this;this.At=o();return new se({css:{"font-size":"12px"},create:function(b){a.hs=b}},{Ld:!0,$c:!0,width:"475px",hb:function(){return a.At()=="cancel"?!1:!0},close:function(){a.hs.empty()}})}; Gp.prototype.open=function(a,b){var c=a.page.document;if(c.$.K){var d=[];b&&(a.page.Af(function(){this.Jc&&d.push(this)}),d.sort(function(a,b){a=a.q.get("Name")||"zzzz";b=b.q.get("Name")||"zzzz";a=a.toLowerCase();b=b.toLowerCase();return a>b?1:a0&&(k=nd(j));k=k?(b?"hotspot:":"")+k:"";a.q.get("Link")!=k&&c.ba(new N(M,{id:a.id,Property:"Link",Value:k}));c.xa()}}};function Hp(a,b){this.siblings=b;this.K=a;this.parent=a.tg;this.J=this.sq=l;this.Uf("")}q=Hp.prototype;q.Uf=function(a){var b=this;this.hide();$(".viewport-banner").remove();this.J=$('
');this.J.find(".viewport-banner-close").click(function(){b.hide()});this.parent.append(this.J);this.J.hide().append(a)}; q.show=function(){var a=$(".viewport-banner");if(a.length>0&&a.is(":hidden")){a.show();var b=this.K.viewport.mode.Yi;b.J.is(":visible")&&this.J.css({top:a.position().top+b.J.outerHeight()+"px"});A(this.siblings,function(b){b.css({top:b.position().top+a.outerHeight()+"px"})})}}; q.hide=function(){var a=$(".viewport-banner");if(a.length>0&&a.is(":visible")){A(this.siblings,function(b){b.css({top:b.position().top-a.outerHeight()+"px"})});var b=this.K.viewport.mode.Yi;b.J.is(":visible")&&this.J.css({top:a.position().top-b.J.outerHeight()+"px"});a.hide()}};q.set=function(a){this.Uf(a);this.show()};q.restore=function(){this.sq?this.Uf(this.sq):this.hide()};function Ip(a,b){function c(){d.Rf=0;A(d.Pe,function(a){a.ta||d.Rf++})}var d=this;this.K=b;this.pi=this.tp=this.Gn=this.yu=this.Vo=this.Aq=this.Sq=this.menubar=this.Mx=l;$(a).append(y({Q:"menu-bar noise-texture",children:[{Q:"title-bar",create:function(a){d.Mx=a},children:[{R:"h1",text:"Untitled Document",create:function(a){a.css("cursor","pointer").click(function(){d.kb||J.set("document.rename")});d.ps=a}},{Q:"title-bar-button-container",children:[{Q:"left read-only hidden",create:function(a){d.Aq= a},children:[{Q:"title-bar-button left",text:S("titlebar.show.hotspots.button"),click:function(){d.K.viewport.hl?(d.K.viewport.hl=!1,$(this).html(S("titlebar.show.hotspots.button"))):(d.K.viewport.hl=!0,$(this).html(S("titlebar.hide.hotspots.button")));d.K.viewport.ia()},create:function(a){d.tp=a}},{Q:"title-bar-button left only-icon",title:"Share with Twitter",click:function(){J.set("default.twitter")},children:[{Q:"icon-21 icon-21-twitter"}]},{Q:"title-bar-button left only-icon",title:"Share with Facebook", click:function(){J.set("default.facebook")},children:[{Q:"icon-21 icon-21-facebook"}]},{Q:"title-bar-button left only-icon",title:"Zoom out",click:function(){J.set("default.zoomOut")},children:[{Q:"icon-21 icon-21-zoom-out"}]},{Q:"title-bar-button left only-icon",title:"Zoom in",click:function(){J.set("default.zoomIn")},children:[{Q:"icon-21 icon-21-zoom-in"}]}]},{Q:"left edit-mode",create:function(a){d.Vo=a},children:[{Q:"title-bar-button has-icon",text:"Share",title:"Share with others",click:function(){J.set("default.share")}, create:function(a){d.Gn=a;d.pi&&d.pi==="editor"&&d.Gn.hide()},children:[{Q:"icon-21 icon-21-share"}]}]},{Q:"title-bar-button has-icon left",text:"Return to Third Party",title:"Return",create:function(a){Jp()?a.click(function(){J.set("default.returnToApp")}):a.hide();d.yu=a},children:[{Q:"icon-21 icon-21-home"}]}]}]},{Q:"menu-bar-div",create:function(a){d.menubar=a}}]}));this.jt=[];this.dn=l;this.Rf=this.du=0;this.Pe=[];J("thirdparty.appNameSet",function(a){d.yu.find("span").html("Return to "+ a)});J("gui.closeAllYerStuff",function(){Kp(d);c()});J("page.selectionChange",function(a){d.Pe=a;d.du=d.Pe.length;c()});this.me=!0;var e=S("All changes saved"),f=S("Saving..."),g=S("Save"),i=S("Recent changes have not been saved!");J("document.loaded document.loaded.new",function(a){var b=!0,c=!1;d.document=a;d.ps.text(a.q.get("Title"));a.id!=l&&!a.$.zb()&&(Lp(d,e),b=!1);$(document).bind("documentPostAction",function(){!c&&!b&&kk(a)&&(Lp(d,g),b=!0)});$(document).bind("SaveSuccess",function(){a.id!= l&&!a.$.zb()&&(Lp(d,e,!1),c=b=!1)});$(document).bind("SaveStart",function(){!c&&a.id!=l&&!a.$.zb()&&(Lp(d,f),b=!1)});$(document).bind("SaveNotWorking",function(){Lp(d,i,!0);b=!1;c=!0})});J("document.property.title",function(a){d.ps.text(a)});J("client.roleChanged",function(a){d.pi=a;a==="editor"?d.Gn.hide():a==="owner"&&d.Gn.show()},!0);this.document=l;Mp(this)}q=Ip.prototype;q.Zb=function(){var a=this;J.set("client.getDocument",function(b){a.document=b});return a.document}; function Mp(a){if(a.menubar)a.menubar.empty(),a.Py=Np(a,[{Q:"molecule"}],new Tl([{label:{R:"a",href:"/documents",text:"Back to Documents"}}],{zf:!0})),a.Ay=Np(a,["File"],Op()),a.wy=Np(a,["Edit"],Pp(a)),a.iz=Np(a,["View"],Qp(a)),a.Xy=Np(a,["Page"],Rp(a)),a.jy=Np(a,["Arrange"],Sp(a)),a.cz=Np(a,["Share"],Tp(a)),a.Ey=Np(a,["Help"],Up(a)),a.menubar.append(y({Q:"menu-bar-status",create:function(b){a.Sq=b}})),a.menubar.append(y({Q:"brand"}))} function Np(a,b,c){a.jt.push(c);var d,e;a.menubar.append(y({Q:"menu-bar-button",create:function(b){d=b;b.mousedown(function(b){a.kb||(Vp(a,c)&&(e=d.offset(),c.Lf(e.left-1,e.top+d.outerHeight())),b.preventDefault(),b.stopPropagation())}).bind("mouseenter",function(){a.dn&&a.dn!=c&&Vp(a,c)&&(e=d.offset(),c.Lf(e.left-1,e.top+d.outerHeight()))})},children:b}));Wl(c,function(){d.addClass("hover")});c.vr(function(){d.removeClass("hover")});return c} function Op(){return new Tl([{label:"Rename document",action:"document.rename"},"hr",{label:"Close",action:"default.close"},{label:"Save",action:"default.save"},{label:S("menu.saveas"),action:"default.saveAs"},"hr",{label:S("menu.preferences"),action:"default.promptPreferences"},{label:"More Shapes",action:"default.manageToolbox"},"hr",{label:S("menu.download"),action:"default.download",disabled:ea("me")},{label:S("menu.print"),action:"default.print",disabled:ea("me")}],{zf:!0})} function Pp(a){function b(){return P}return new Tl([{label:"Undo",action:"default.undo"},{label:"Redo",action:"default.redo"},"hr",{label:"Cut",action:"{context}.cut",disabled:b},{label:"Copy",action:"{context}.copy",disabled:b},{label:"Paste",action:"{context}.paste",disabled:b},{label:"Copy Block Style",action:"default.copyBlockStyle",disabled:function(){return!Zk(a.K.viewport)}},{label:"Copy Line Style",action:"default.copyLineStyle",disabled:function(){return!Yk(a.K.viewport)}},"hr",{label:S("menu.line.draw.alt"), action:"default.drawLineMode"},"hr",{label:"Spell Check",action:"lucid.spellCheck.enabled",selected:function(){return Yg},toggle:!0},{label:S("Change Language"),action:"default.promptLanguage"},"hr",{label:"Foreign Language Input",action:"text.ime",selected:function(){return parseInt($.cookie("ime"),10)==1}},"hr",{label:S("search"),action:"default.findReplace"}],{zf:!0})} function Rp(a){function b(){var b=0;a.Zb().ee(function(){b++});return b}function c(){var b=!1;a.Zb().ee(function(){if(this.Fb())return b=!0,"stop"});return b}return new Tl([{label:S("menu.page.new"),action:"default.newPage"},{label:S("menu.page.duplicate"),action:"page.duplicate",disabled:function(){return!(!a.K.viewport.V[0].C||!a.K.viewport.V[0].C.q.get("IsMaster"))}},{label:S("Rename Page"),action:"page.rename"},{label:S("menu.page.settings"),action:"page.settings"},{label:S("menu.page.delete"), action:"page.delete",disabled:function(){return b()<=1},na:"delete"},"hr",{label:S("menu.page.masterize"),action:"page.masterize",disabled:function(){return!(!a.K.viewport.V[0].C||!a.K.viewport.V[0].C.q.get("IsMaster"))}},{label:S("menu.page.master.remove"),action:"page.removeMaster",disabled:function(){return!(a.K.viewport.V[0].C&&a.K.viewport.V[0].C.q.get("Master"))}},{label:S("menu.page.master.apply"),action:"page.applyMaster",disabled:function(){return!c()}},"hr",{label:"New Page From Master", action:"page.createFromMaster",disabled:function(){return!(a.K.viewport.V[0].C&&a.K.viewport.V[0].C.q.get("IsMaster"))}},{label:S("menu.masterpage.apply.all"),action:"page.applyMasterToAll",disabled:function(){return!(a.K.viewport.V[0].C&&a.K.viewport.V[0].C.q.get("IsMaster"))}},{label:S("menu.masterpage.demasterize"),action:"page.demasterize",disabled:function(){return!(a.K.viewport.V[0].C&&a.K.viewport.V[0].C.q.get("IsMaster"))}},{label:S("menu.masterpage.duplicate"),action:"page.duplicateMaster", disabled:function(){return!(a.K.viewport.V[0].C&&a.K.viewport.V[0].C.q.get("IsMaster"))}}],{zf:!0})} function Qp(a){return new Tl([{label:"Zoom In",action:"default.zoomIn"},{label:"Zoom Out",action:"default.zoomOut"},{label:"Zoom to Width",action:function(){J.set("default.zoom","width")}},{label:"Zoom to Page",action:function(){J.set("default.zoom","page")}},{label:"Reset Zoom",action:function(){J.set("default.zoom",75)}},"hr",{label:"Show Toolbox",action:"default.gui.toolbox.toggle",toggle:!0,selected:function(){return a.K.pg.Ca}},{label:"Show Title",action:"default.gui.title.toggle",selected:function(){var a= !0;J.set("default.gui.title.hidden",function(c){a=!c});return a},disabled:function(){return Jp()},toggle:!0}],{zf:!0})} function Sp(a){return new Tl([{label:"Bring to Front",action:"default.bringSelectionToFront",disabled:function(){return a.Rf<1}},{label:"Send to Back",action:"default.sendSelectionToBack",disabled:function(){return a.Rf<1}},"hr",{label:"Align Objects",disabled:function(){return a.Rf<2},Tb:new Tl([{label:"Left",action:"default.alignSelectionLeft"},{label:"Center",action:"default.alignSelectionCenter"},{label:"Right",action:"default.alignSelectionRight"},"hr",{label:"Top",action:"default.alignSelectionTop"}, {label:"Middle",action:"default.alignSelectionMiddle"},{label:"Bottom",action:"default.alignSelectionBottom"}],{Tb:!0})},{label:"Distribute Objects",disabled:function(){return a.Rf<3},Tb:new Tl([{label:"Horizontally",action:"default.distributeSelectionH"},{label:"Vertically",action:"default.distributeSelectionV"}],{Tb:!0})},{label:"Match Size",disabled:function(){return a.Rf<2},Tb:new Tl([{label:"Width",action:"default.matchSelectionSizeX"},{label:"Height",action:"default.matchSelectionSizeY"}],{Tb:!0})}, "hr",{label:"Lock",action:function(){J.set("default.property.Lock",1)},disabled:function(){return a.Rf<1}},{label:"Unlock",action:function(){J.set("default.property.Lock",0)},disabled:function(){return a.du-a.Rf<1}},"hr",{label:"Group",action:"default.groupSelection",disabled:function(){return a.Rf<2}},{label:"Ungroup",action:"default.ungroupSelection",disabled:function(){var b=!0;A(a.Pe,function(a){if(a.pa&&!a.ta)return b=!1});return b}}],{zf:!0})} function Tp(a){var b=a.K.$.Qa=="owner";return new Tl([{label:S("menu.invite.user"),create:function(a){b||a.hide()},action:"default.share",disabled:function(){return a.pi&&a.pi==="editor"}},{label:S("menu.publish"),create:function(a){b||a.hide()},action:"default.publish",disabled:function(){return a.pi&&a.pi==="editor"}},{label:S("tooltip.facebook.share"),action:"default.facebook"},{label:S("tooltip.twitter.share"),action:"default.twitter"}],{zf:!0})} function Up(a){return new Tl([{label:S("menu.forums"),action:function(){J.set("default.forums")},disabled:function(){return!a.me}},{label:S("menu.tutorials"),action:function(){J.set("default.tutorials")},disabled:function(){return!a.me}},{label:S("menu.hotkey.ref"),action:function(){J.set("default.hotKeyReference")}},{label:S("menu.feedback.send"),action:"default.sendFeedback",disabled:function(){return!a.me}}],{zf:!0})}function Kp(a){A(a.jt,function(a){a.hide()});a.dn=l} function Vp(a,b){var c=b.Th();J.set("gui.closeAllYerStuff");return!c?(a.Zb(),b.show(),a.dn=b,!0):!1}function Lp(a,b,c){a.Sq.text(b);c!==h&&a.Sq.toggleClass("error",c)}function Wp(a){var b=!1,c;for(c in a.K.viewport.V)if(a.K.viewport.V[c].C.df(function(){if(this.className==="UI2HotspotBlock")return b=!0,"stop"}),b)break;b?a.tp.removeClass("hidden"):a.tp.addClass("hidden")}q.Uc=function(){this.kb=!0};q.pc=function(){this.kb=!1};q.eg=function(){this.Vo.hide();this.Aq.show();Wp(this)}; q.gh=function(){this.Aq.hide();this.Vo.show()};function Xp(a,b){this.K=b;var c=this;this.Ca=!0;this.Np=this.Co=this.$b=this.xe=this.qb=l;a.append(y({Q:"tool-box",create:function(a){c.xe=a},children:[{Q:"tool-box-touch"},{Q:"tool-box-header",create:function(a){c.$b=a},children:[{Q:"tool-box-header-complexity",create:function(a){c.Co=a}}]},{Q:"tool-box-slider scrollable tinyScrollBars",create:function(a){c.qb=a}},{Q:"tool-box-overlay",create:function(a){c.Np=a}}]}));this.search=l;this.qe={};this.SEARCH_TITLE="LucidChart";this.SEARCH_TITLE_ICONFINDER= "IconFinder";this.SEARCH_TITLE_GOOGLEIMAGES="Google Images";this.cu=!1;this.qq=new Sn(new G(0,0),'
',"w");if(Ya)this.ve=$(".tool-box-touch"),$('
').appendTo(this.ve),$('
').click(function(){c.xe.hasClass("closed")&&c.K.viewport.ji("diagramming");c.xe.toggleClass("closed")}).appendTo(this.ve), $('
').click(function(){c.K.viewport.mode.name=="drawing"?c.K.viewport.ji("diagramming"):c.K.viewport.ji("drawing")}).appendTo(this.ve),$('
').appendTo(this.ve),$('
').click(function(){c.K.$.document.gr()}).appendTo(this.ve),$('
').click(function(){c.K.$.document.Bq()}).appendTo(this.ve),$('
').appendTo(this.ve), $('
').click(function(){Pk(c.K.viewport);c.K.viewport.ae()}).appendTo(this.ve),$('
').click(function(){Pk(c.K.viewport)}).appendTo(this.ve),$('
').click(function(){var a=c.K.zi.offset(),a={pageX:a.left+c.K.zi.width()/2,pageY:a.top+c.K.zi.height()/2},a=c.K.viewport.mc(a);Ok(c.K.viewport,a.x,a.y)}).appendTo(this.ve),$('
').appendTo(this.ve), $('
').click(function(){c.K.viewport.ae()}).appendTo(this.ve),this.ve.find(".icon-21").wrap('
'),this.xe.addClass("touch").addClass("closed"),$(document).bind("viewport.setMode",function(a,b){b=="drawing"&&c.xe.addClass("closed")});else{var d=function(){var a=c.Hq.val(),b=c.search;c.search=a==""||a.length<2||c.Hq.hasClass("default")?l:a;(c.search==l||c.search!=b)&&c.ia()},e,f,g=function(a){e&&clearTimeout(e);e=setTimeout(d, a||2E3)},i=function(a){f&&clearTimeout(f);f=setTimeout(function(){c.ll.slideUp("fast")},a||3E3)},j=function(a,d){return!c.zp&&a!="SearchLucidChart"?0:b.$.da&&b.$.da.preferences?b.$.da.preferences[a]:d};this.$b.append(y({children:[{Q:"top"},{Q:"search",children:[{R:"input",type:"text",Q:"search default box-sizing-border user-select-text",value:S("toolbox.search"),attr:{maxlength:64},create:function(a){c.Hq=a;a.focus(function(){$(this).hasClass("default")&&$(this).val()==S("toolbox.search")&&$(this).val("").removeClass("default"); g()}).blur(function(){if($(this).val()=="")$(this).val(S("toolbox.search")).addClass("default"),c.search=l;clearTimeout(e)}).keyup(function(a){clearTimeout(e);a.keyCode==13?g(1):g();c.ll.slideUp("fast")})}},{Q:"clear-search icon-13 icon-13-close",title:S("tooltip.search.clear"),click:function(){c.Hq.val("").focus();g(1)}},{Q:"option-toggle right icon-13-button",children:[{Q:"icon-13 icon-13-tri-d"}],title:S("tooltip.search.options"),click:function(){c.ll.slideToggle("fast");i(1E4)}},{Q:"google-branding"}, {Q:"search-options hidden",create:function(a){c.ll=a},children:[{R:"label",children:[{R:"input",type:"checkbox",value:"lucidchart",create:function(a){c.Cw=a}},"LucidChart Library"]},{R:"label",children:[{R:"input",type:"checkbox",value:"iconfinder",create:function(a){c.ow=a}},"IconFinder"]},{R:"label",children:[{R:"input",type:"checkbox",value:"googleimages",create:function(a){c.dw=a}},"Google Images"]}]}]}]}));var k=[];setInterval(function(){k.length>0&&!c.ll.is(":visible")&&($.ajax({type:"POST", url:"/users/preferences",data:k.join("&")}),k=[])},100);var n=function(a,d,e){function f(){var b=!1;if(j(a,1)==1){for(var i=[],b=0;b0){m||(c.xe.addClass("has-complexity"),c.Co.empty().append('
Complexity
'),$("#complexitybar").addClass("ui-corner-all").click(function(){Zp(c.K.$)}),c.lb(),m=!0);var a=c.K.$.document.lg/c.K.$.da.Level.document_objects;$("#complexity").css({width:Math.min(a, 1)*122+"px"})}else m&&(c.xe.removeClass("has-complexity"),c.Co.empty(),c.lb(),m=!1)},100);$(document).bind("online",function(){$p(c)});$(document).bind("offline",function(){aq(c)});fl()||aq(this);J("default.manageToolbox",function(){bq(c)})}function $p(a){a.zp=!0;a.ia();F(a.cq,function(a){$("#"+a).show()});$(document).trigger("userPreferences.toolbox")}function aq(a){a.zp=!1;a.ia();F(a.cq,function(a){$("#"+a).hide()});$(document).trigger("userPreferences.toolbox")}q=Xp.prototype; q.lb=function(){var a=this;a.sn=!1;var b=this.search?jQuery.trim(this.search).replace(/\s+/g," "):this.search,c=!0,d=this.SEARCH_TITLE,e=this.SEARCH_TITLE_ICONFINDER,f=this.SEARCH_TITLE_GOOGLEIMAGES,g={},i=[],j=this.cu;if(b){if(i.push(d),i.push(e),i.push(f),this.Gp!=b){j=!1;this.Ea[d]={};this.Ea[e]={};this.Ea[f]={};for(var k in gj)j=cq(this,gj[k],b)||j}}else j=!1;this.cu=j;this.Gp=b;this.qb.find("h3").each(function(){var a=$(this).text();a!=d&&a!=e&&a!=f&&(g[a]=$(this).hasClass("minimized"),i.push(a))}); for(var n in this.Ea)!nc(i,n)&&n!=d&&n!=e&&n!=f&&i.push(n);this.qb.find("div.tool-box-block").detach();this.qb.empty();var m;this.qb.css({top:(Ya?-110:a.$b.get(0).offsetHeight)+"px"});$("#toolbox_manage_button_touch").click(function(){bq(a)});for(b=0;bp?u:p;k.push({name:s,ri:u})}p>0&&k.sort(function(a,b){return b.ri-a.ri});for(p=0;p1)){var b=$.Event("mousedown");b.pageX=a.originalEvent.touches[0].pageX;b.pageY=a.originalEvent.touches[0].pageY;b.target=a.target;b.which=1;b.button=0;j=b;a.preventDefault()}});b.bind("touchmove",function(c){if(!(c.originalEvent.touches.length>1)){var d=$.Event("mousemove");d.pageX=c.originalEvent.touches[0].pageX;d.pageY=c.originalEvent.touches[0].pageY;d.target= c.target;d.which=1;d.button=0;d.pageX>a.xe.offset().left+a.xe.width()+a.qb.width()&&(j&&(b.trigger(j),j=l),b.trigger(d),a.K.viewport.V[0].canvas.J.trigger(c),c.stopPropagation());c.preventDefault()}});b.bind("touchend",function(c){if(!(c.originalEvent.touches.length>1)){var d=$.Event("mouseup");d.pageX=c.originalEvent.changedTouches[0].pageX;d.pageY=c.originalEvent.changedTouches[0].pageY;d.target=c.target;d.which=1;d.button=0;d.pageX>a.xe.offset().left+a.xe.width()+a.qb.width()&&(a.K.viewport.V[0].canvas.J.trigger(c), a.xe.addClass("closed"));b.trigger(d);c.preventDefault()}})}})(v,u,z,w,s,n)}}}m.append('
')}this.bz=this.qb.children();this.qb.find("h3").each(function(){var a=$(this).text();g[a]&&$(this).click()});return c}; q.Dq=function(a,b){if(this.Ea[a]==l||this.Ea[a][b]==l)return a!=this.SEARCH_TITLE&&this.Dq(this.SEARCH_TITLE,b),!1;var c=this.Ea[a][b],d=c.className,e=c.mb,f=gj[d];if(f==l)return!1;var g=27,i=23;Ya&&(g=36,i=32);var j=(g-i)/2,k=document.createElement("canvas");$(k).attr("width",g);$(k).attr("height",g);k=fb(k);e.empty().append(k);e=c.bd||f.bd;d=jj(d,"",this.K.$.document);g=Math.min(i/e.w,i/e.h);f=e.w*g;e=e.h*g;d.q.set("BoundingBox",{x:j+(i-f)/2,y:j+(i-e)/2,w:f,h:e});i={};if(c.xf){var i=c.xf(),n;for(n in i)d.q.set(n, i[n])}wi(new Th(l,d),k)}; q.An=function(a,b){if(!ae){if(this.Ea[a]==l||this.Ea[a][b]==l)return a!=this.SEARCH_TITLE&&this.An(this.SEARCH_TITLE,b),!1;var c=this.Ea[a][b],d=c.className,e=c.mb,f=gj[d];if(f==l)return!1;if(this.Ag!=a+"::"+d)return this.Ag==this.SEARCH_TITLE+"::"+d&&this.An(this.SEARCH_TITLE,b),!1;var e=Math.round(e.offset().top+0.5*e.outerHeight(!0)),g=c.Pa||f.title,i=c.bd||f.bd,f=this.K.$.document,d=jj(d,"renderPreviewBlock",f);d.page=this.K.viewport.V[0].C;d.q.set("LineWidth",f.q.get("DefaultBlockLineWidth"));d.q.set("LineColor", f.q.get("DefaultBlockLineColor"));d.q.set("FillColor",ck(f));d.q.set("Font",f.q.get("DefaultFont"));var j=Math.min(200/i.w,200/i.h),f=j<1?0.5:1,j=Math.min(j,1),k=Math.round(i.w*j),j=i=Math.round(i.h*j),n=k,m=d.q.get("Rotation");if(m)i=db(new H(0,0,k,i),m,new G(k/2,i/2)),k=i.w,i=i.h;m=document.createElement("canvas");$(m).attr({width:k,height:i}).css({position:"absolute"});m=fb(m);$("#toolbox_preview_text").css({width:Math.max(200,k)+"px"}).html(g);g=Math.max(0,Math.round(0.5*(200-k)));$("#toolbox_preview_container").css({width:k+ "px",height:i+"px","margin-left":g+"px","margin-right":g+"px"}).empty().append(m);this.qq.show().move(new G(this.xe.width(),e));e=n-8;g=j-8;d.q.set("BoundingBox",{x:(k-e)/2/f,y:(i-g)/2/f,w:e/f,h:g/f});e={};if(c.xf){var e=c.xf(),p;for(p in e)d.q.set(p,e[p])}wi(new Th(l,d),m,f,"preview")}}; function cq(a,b,c){var d=!1;if(b.bu){b=b.bu;a.mp(a.SEARCH_TITLE);for(var e=0;e0)d=b[e].addBlockParams,a.Xf(d[0],d[1],d[2],d[3],d[4],i),d=!0}}return d} function Yp(a){var b=$('

'+S("dialog.library.manage.p")+'


');return new se(b,{Ld:!0,title:S("button.library.manage"),width:400,hb:[{label:S("Cancel"),action:function(a,b){b.close()}},{label:S("Save"),Pg:!0,action:function(){a.K.$.document.Aa();var b=[],d;for(d in a.K.$.Ob)b.unshift(d);A(b,function(b){a.K.$.document.ba(new N(Bg,{URL:b}))});$("#plugin_list :checkbox").each(function(){$(this).is(":checked")&& a.K.$.document.ba(new N(zg,{URL:$(this).val()}))});a.K.$.document.xa();a.Um.close()}}]})}q.mp=function(a){this.Ea[a]||(this.ia(),this.Ea[a]={});this.Ma=this.Ea[a];return this};q.ox=function(a){this.Ea[a]&&(delete this.Ea[a],this.ia());this.Ma=this.Ea[a]};q.mx=function(a){this.Ea[a]&&lc(this.Ea[a])&&(delete this.Ea[a],this.ia());this.Ma=this.Ea[a]}; q.Xf=function(a,b,c,d,e,f){b==l&&(b=a);this.Ma[a]||(this.ia(),this.Ma[a]={mb:$('
'),xf:c,bd:d,className:b,Pa:e,ri:f?f:0},this.Ma[a].mb.attr("blockClass",b),this.Ma[a].mb.attr("blockName",a));return!0};q.iv=function(a){if(a&&a.searchData){for(var a=a.searchData,b=0;b
'+a+"
"),name:a},$("#"+d).live("click",b));c&&(this.cq[d]=!0)};q.removeItem=function(a){this.Ma[a]&&(delete this.Ma[a],this.ia())}; q.ia=function(){this.ov.queue()};function bq(a){a.Um.hc()&&a.Um.close();$("#plugin_list").empty().append(dq(a));a.Um.open()} function dq(a){var b;b==l&&(b=[]);var c=$("
"),d=0,e;for(e in a.K.$.Ob){var f=a.K.$.Ob[e];if(f.name&&f.name!="Default"&&!f.hideInList){var g=f.Nj;nc(b,e)&&(g=!0);f=$('
");f.children("span.link").click(function(){var a=$(this).siblings("div.hidden");a.is(":visible")?(a.hide(),$(this).html("+ show description")):($(this).parent().siblings("div.bigger").children("span.link").html("+ show description").siblings("div.hidden:visible").hide("blind","fast"),a.show(),$(this).html("- hide description"))});f.find("input[type=checkbox]").click(function(){if($(this).attr("checked")&&a.K.$.da&&a.K.$.da.Level.restricted_plugins.length>0&&this.value.match(RegExp(a.K.$.da.Level.restricted_plugins))){var b= L("

"+S("toolbox.alert.plugin.restricted")+"

");a.K.$.da.TrialEligible&&$("#managetools_upgradelink").attr("href","#").removeAttr("target").click(function(a){a.preventDefault();xe("/users/level",!1,function(){b()});return!1});$(this).removeAttr("checked")}});c.append(f);d++}}c.disableSelection();return c}q.Uc=function(){this.Np.show()};q.pc=function(){this.Np.hide()}; q.toggle=function(){this.K.uo.toggleClass("hidetoolbox");this.Ca?this.K.tg.css("left","0px"):this.K.tg.css("left","");this.Ca=!this.Ca};q.hide=function(){this.J.parent().hide();this.K.tg.css("left","0px");this.Ca=!1};q.show=function(){this.J.parent().show();this.K.tg.css("left","");this.Ca=!0};Xp.prototype.getToolGroup=Xp.prototype.mp;Xp.prototype.removeToolGroup=Xp.prototype.ox;Xp.prototype.removeEmptyToolGroup=Xp.prototype.mx;Xp.prototype.addBlock=Xp.prototype.Xf;Xp.prototype.addBlockSet=Xp.prototype.iv; Xp.prototype.addButton=Xp.prototype.jv;Xp.prototype.renderHelper=Xp.prototype.Dq;Xp.prototype.renderPreview=Xp.prototype.An;Xp.prototype.removeItem=Xp.prototype.removeItem;function eq(a){var b=this;this.K=a;this.dialog=new se('
',{title:S("apply.master.dialog.title"),$c:!0,width:"375px"});J("applyMasterDialog.open",function(){b.open()})} eq.prototype.open=function(){var a=this,b=this.K.$.document,c=$("#masterpanel-applicator-dialog").empty();b.ik(function(){if(this.Fb()){var b=this,e=new Gj(this),f=this.q.get("Size"),g=f.w/f.h,i=130/170,f=Math.round(g
").appendTo(c),g=$('
').appendTo(j).css({"padding-bottom":2*i+5+"px","padding-left":g+"px","padding-right":g+5+"px"});Pj(e,f-2,g.children()); g.click(function(){var c=a.K.viewport.V[0].C;a.dialog.close();c&&(c.Fb()?L(S("alert.apply.master.to.master")):(b.id!=sj(c,!0)&&Dj(c,b.id),Tk(S("growl.master.applied"))))})}});this.dialog.open()};function fq(a){function b(a,b,c){J("default."+a,function(){if(m==m.viewport.mode){m.an=!1;var a=m.viewport.V[0].C.q.get("GridSpacing");m.Qb=m.viewport.getSelection(!0);var d=m.Qb.length>0&&m.Qb[0].Of?m.Qb[0].Of:2;m.offset.x+=b*(a/d);m.offset.y+=c*(a/d);m.viewport.ia();m.es.queue()}});J("default."+a+"Shift",function(){if(m==m.viewport.mode)m.an=!1,m.Qb=m.viewport.getSelection(!0),m.offset.x+=b,m.offset.y+=c,m.viewport.ia(),m.es.queue()});J("default."+a+"ShiftCtrl",function(){if(m==m.viewport.mode){var a= m.viewport.getSelection(!0);if(a.length!=0)m.document.Aa(),a=m.viewport.rk(a),m.viewport.Yk(m.viewport.V[0],a,a.Base.x,a.Base.y),m.Qb=m.viewport.getSelection(!0),a=$h(m.Qb),m.offset.x=a.w*b,m.offset.y=a.h*c,gq(m,!0,!1),hq(m),m.document.xa()}})}function c(){p==l&&(p={},A(Vk(m.viewport,!0),function(a){a.Ui&&(p=a.Ui(p))}),setTimeout(function(){p=l},1));return p}function d(a,b){m.document.Aa();A(Vk(m.viewport,!0),function(c){if(!b||b(c))if(c.sa)for(var d in c.la){var e=dd(c.q.get(d),c.q.get("Font")), f=Nc(e,0,e.text.length,a);f.a=0;f.c=e.text.length;m.document.ba(new N(yg,{id:c.id,Key:d,Diff:f}))}else if(c.fb){var g=c.q.get("TextAreas");for(d in g)if(g[d]&&d!="IsFullPropSettings")e=dd(g[d].Value,c.q.get("Font")),f=Nc(e,0,e.text.length,a),f.a=0,f.c=e.text.length,m.document.ba(new N(yg,{id:c.id,Key:d,Diff:f}))}});m.document.xa();J.set("optionBar.refresh")}function e(a){J("default."+a,function(){if(m==m.viewport.mode){var b=c(),e={};e[a]=!b[a];d(e);J.set("optionBar.refresh")}});J("default."+a+".selected", function(b){if(m==m.viewport.mode){var d=c();b(d[a])}});J("default."+a+".disabled",function(a){m==m.viewport.mode&&a(m.viewport.getSelection(!0).length==0)})}function f(a){J("default.align."+a,function(){m==m.viewport.mode&&(d({align:a}),J.set("optionBar.refresh"))});J("default.align."+a+".selected",function(b){if(m==m.viewport.mode){var d=c();b(d.align==a)}});J("default.align."+a+".disabled",function(a){m==m.viewport.mode&&a(m.viewport.getSelection(!0).length==0)})}function g(a,b){J("default."+a, function(a){if(m==m.viewport.mode){var c={};c[b]=a;d(c);J.set("optionBar.refresh")}});J("default."+a+".value",function(a){if(m==m.viewport.mode){var d=c();a(d[b])}});J("default."+a+".disabled",function(a){m==m.viewport.mode&&a(m.viewport.getSelection(!0).length==0)})}function i(a,b,c,d){var e=a.split("."),f=e[0];e.splice(0,1);var g=rc([c,l]);J("default.property."+a,function(c){m==m.viewport.mode&&(m.document.Aa(),A(a=="Lock"?m.viewport.getSelection():Vk(m.viewport,!0),function(d){var g=d.q.get(f); if(!(g==l&&(!b||!b(d)))){var i=c;if(e.length>0){for(var g=i=g,j=0;j=0;c--){var e=b[c],f=e.id;a.V[0].ac(f)&&!e.ta&&a.K.Zb().ba(new N(M,{id:f,Property:"ZOrder",Value:--d}))}a.K.Zb().xa()}});J("default.copy",function(){m==m.viewport.mode&&Pk(m.viewport)});J("default.cut",function(){m==m.viewport.mode&&(J.set("default.copy"),J.set("default.delete"))});J("default.paste",function(a){if(m==m.viewport.mode){if(!a||!qa(a))a={pageX:m.viewport.vb.offset().left+ m.viewport.vb.width()/2,pageY:m.viewport.vb.offset().top+m.viewport.vb.height()/2};a=m.viewport.mc(a);Ok(m.viewport,a.x,a.y)}});J("default.editText",function(a){if(m==m.viewport.mode&&(a=m.document.ra(a)))try{var b=m.viewport.Ti((a.page||a.ke).id).Ya(a);if(b&&b.Ed)for(var c in a.la){b.Ed(c);break}}catch(d){}});J("default.unselectAll",function(){m==m.viewport.mode&&m.viewport.ec()});J("default.selectItem",function(a){m==m.viewport.mode&&m.viewport.Yc(a)});i("LineWidth",function(a){return a.sa});i("Opacity"); i("Lock");i("LineColor",function(a){return a.sa||a.fb},l,"#000000ff");i("FillColor",function(a){return a.sa},l,"#ffffffff");i("FillType");i("FillColor.pos");i("FillColor.url");i("TextVAlign");i("Link");i("StrokeStyle");i("Shape");i("Endpoint1.Style");i("Endpoint2.Style");i("InsetMargin");i("Shadow",function(a){return a.sa},{x:0,y:6,b:10,c:"#00000080"},!0);j("DefaultBlockLineColor");j("DefaultBlockFillColor");j("DefaultBlockLineWidth");j("DefaultBlockShadow");j("RoundCorners");j("Gradient");j("LineJumps"); j("DefaultLineShape");j("DefaultLineLineColor");j("DefaultLineLineWidth");j("DefaultLineStrokeStyle");j("DefaultStartArrowStyle");j("DefaultEndArrowStyle");j("DefaultFont");j("DefaultTextColor");j("DefaultFontSize");j("Language");j("FacingPages");j("ParagraphStyles");j("InlineStyles");j("WPMode");j("Columns");j("ColumnSpacing");j("MindMapColors");J("default.lookupNamedParagraphStyle",function(a){if(m==m.viewport.mode){for(var b=m.document.q.get("ParagraphStyles"),c=l,d=0;d',function(){window.fontUrl==l&&(window.fontUrl="/fonts/user/0/");$.ajax({type:"GET",url:window.fontUrl+"all",success:function(a){Pe={};Te={};J.set("optionBar.refresh");eval(a)}})})});J("default.paragraphFormattingDialog",function(){m==m.viewport.mode&& m.viewport.Nt.show(c(),m.viewport.V[0].C.q.get("DPI"),function(a){d(a)})});J("default.selectNewLink",function(){m==m.viewport.mode&&A(m.viewport.getSelection(),function(a){if((a=m.viewport.V[0].Ya(a))&&a.ml)return a.ml(),!1})});J("default.editBlockText",function(){if(m==m.viewport.mode){var a=m.viewport.V[0].getSelection()[0];m.viewport.V[0].Ya(a).Ed(ti(a,0))}});J("default.resetLineShape",function(){m.document.Aa();for(var a=m.viewport.V[0].getSelection(),b=0;ba.scrollLeft+a.scrollWidth-75&&(j.scrollLeft+=10);(c-d.y*i.y)*a.scale+a.padding>a.scrollTop+a.scrollHeight-75&&(j.scrollTop+=10)}}}},u=function(a){if(!c){var b=Pa(e.viewport,new G(a.x,a.y),k),d=e.viewport.scale*a.w,a=e.viewport.scale*a.h;J.set("rulerh.hintlines",[b.x,b.x+d/2,b.x+d]);J.set("rulerv.hintlines",[b.y,b.y+a/2,b.y+a]);i=!0}};if(this.Mm&&!this.jd&&this.Xa&& (Math.abs(this.Xa.x-f)>4||Math.abs(this.Xa.y-g)>4)){this.mu=this.jd=!0;var w=this.viewport.vb.get(0);this.Me={originalEvent:b,cn:w.scrollTop,bn:w.scrollLeft}}if(this.ab!=l){s();var v=this.ab.ja(),n=new H(f-v.w/2,g-v.h/2,v.w,v.h),w=k.C.q.get("GridSpacing");this.ab.Of&&(w=Math.min(w,this.ab.Of));n=mb(n,w);this.ab.q.set("BoundingBox",n);this.viewport.ia()}else this.lt&&this.lt(b,k,f,g,n,d);if(this.lf)if(s(),this.X!=l){la(this.X.item)||(v=this.X.item.pa?this.X.item.pd():this.X.item.ja());m=l;if(this.X.item.sa|| this.X.item.fb||this.X.item.pa)m=k.Ya(this.X.item);if(this.X.item.Kv||this.X.item.Zf){n=l;p=new G(v.x+v.w/2,v.y+v.h/2);s=this.X.item.q.get("Rotation")||0;if(this.X.action=="se"||this.X.action=="nw")n=Pb(new G(f,g),Za(new G(v.x,v.y),p,s),Za(new G(v.x+v.w,v.y+v.h),p,s),!0);else if(this.X.action=="ne"||this.X.action=="sw")n=Pb(new G(f,g),Za(new G(v.x+v.w,v.y),p,s),Za(new G(v.x,v.y+v.h),p,s),!0);if(n)f=n.x,g=n.y}if(b.shiftKey&&(Yh(this.X)||Zh(this.X)))if(this.X.action=="se"||this.X.action=="nw"||this.X.action== "ne"||this.X.action=="sw"){var p=new G(this.Xa.x,this.Xa.y),s=this.X.rotation(),v=new G(f,g),x=new G(p.x+1,p.y),n=new G(p.x-1,p.y+1),z=new G(p.x,p.y+1),w=new G(p.x+1,p.y+1);s&&(x=Za(x,p,s),n=Za(n,p,s),z=Za(z,p,s),w=Za(w,p,s));x=Pb(v,p,x,!0);s=Pb(v,p,z,!0);if(this.X.action=="se"||this.X.action=="nw")var B=Pb(v,p,w,!0);else if(this.X.action=="sw"||this.X.action=="ne")B=Pb(v,p,n,!0);v=x;p=v.data.d;if(s.data.d10880?10880:W);this.We&&(U=U10880?10880:U);this.viewport.J.one("afterRender",function(){var a=e.viewport.vb.get(0);if(e.Ve&&W!=X)a.scrollLeft=e.al.left+O*e.viewport.scale;if(e.We&&U!=da)a.scrollTop=e.al.top+T*e.viewport.scale});k.C.q.set("Size",{w:W,h:U});this.viewport.ia()}else this.so? Kj(k,b.pageX,b.pageY,b):(Ge(k.canvas,this.gm),this.gm.move((Math.min(f,this.Xa.x)-m.x*p.x)*this.viewport.scale,(Math.min(g,this.Xa.y)-m.y*p.y)*this.viewport.scale,Math.abs(f-this.Xa.x)*this.viewport.scale,Math.abs(g-this.Xa.y)*this.viewport.scale));i||(J.set("rulerh.hintlines",[b.clientX-j.left]),J.set("rulerv.hintlines",[b.clientY-j.top]))}else d()}; q.gd=function(a,b){var c=a.x,d=a.y,e=a.data;mh(e.C);var f=this.Xa?Lb(this.Xa,new G(c,d)):0;if(this.ab!=l){f=this.ab.ja();f.x==0&&f.y==0&&this.ab.q.set("BoundingBox",new H(c-f.w/2,d-f.h/2,f.w,f.h));this.im=!0;this.document.Aa();f=this.ab.q.Nb();f.BoundingBox=e.dc(f.BoundingBox,this.ab.Of||this.Wi,h,nj(this.ab));f.ZOrder=e.C.Kd("ZOrder",0)+1;var g=gj[this.ab.className],i=!1;if(typeof g.ts=="function"&&(g=g.ts(e.C,f),g.length>0))for(var i=!0,j=0;j20?this.ot&&this.ot(b,e):this.X.action=="dragline"&&!this.X.item.ta?this.nt&&this.nt(0, e,f):this.X.action=="slidex"||this.X.action=="slidey"?this.document.ba(new N(M,{id:this.X.item.id,Property:this.X.action=="slidex"?"XPlanes":"YPlanes",Value:this.X.bh})):this.X.action=="control"&&this.X.vs&&this.X.vs(c,d),this.de=[],this.Wi=1,this.hk=this.jb=this.X=this.Xa=l,this.Wy={},this.viewport.ia();else if(this.jd)this.fd(a,b),this.jd=!1;else if(this.di&&(this.Ve||this.We))f=e.C.q.get("Size"),e.C.q.set("Size",this.di),this.al=this.di=l,this.We=this.Ve=!1,this.viewport.hn=l,e.C.document.ba(new N(M, {id:e.C.id,Property:"Size",Value:f})),this.viewport.ia();else if(this.so)Lj(e,b.pageX,b.pageY,b),this.so=!1;else if(He(e.canvas,this.gm),!b.metaKey&&!b.ctrlKey&&!b.shiftKey&&this.viewport.ec(),Math.abs(c-this.Xa.x)>5||Math.abs(d-this.Xa.y)>5){var k=this.Xa;this.Ma&&this.Ma.pa?this.Ma.Ib(function(){e.Ya(this).xj(Ta(k,new G(c,d)))&&e.Yc(this.id)}):tj(e.C,function(){e.Ya(this).xj(Ta(k,new G(c,d)))&&e.Yc(this.id)});this.viewport.ia()}this.lf=!1}}else if(b.which==3){if(this.jd)this.jd=!1;this.Mm=!1}}; q.touchStart=function(){var a=this;this.Te=!0;this.Al&&clearTimeout(this.Al);if(!a.K.$.Id())this.Al=setTimeout(function(){a.Te&&a.viewport.ji("drawing")},500)};q.touchMove=function(){this.Te=!1};q.touchEnd=function(){this.Te=!1};q.qk=function(){this.Te=!1};q.pk=function(){this.Te=!1};q.ju=function(a,b){return a.page!=b.C||a.ta||a.Jc||a.pb()?!1:b.getSelection(!0).length>1?!1:!b.Rg(a)&&(a==this.Kk||Mj(b,a.id,!0))}; q.ku=function(a,b){return a.page!=b.C||a.ta||a.Jc||a.pb()?!1:b.getSelection(!0).length>1?!1:!b.Rg(a)&&(a==this.Kk||Mj(b,a.id,!0))};q.iu=function(a,b){if(a.page!=b.C||a.ta||a.pa||a.pb())return!1;var c=this.X!=l&&(this.X.action=="linkpoint"||this.X.action=="dragline");return b.Rg(a,!0)||c||a==this.Kk||b.ac(a.id)}; q.yr=function(a,b){this.jb!=l&&b.push(this.jb);if(b.length!=0)for(var c=0;cg?b.x+b.w:g;i=b.y+b.h>i?b.y+b.h:i});var j=new H(e,f,g-e,i-f);a.document.Aa();A(b,function(b){var d=b.ja();b.q.get("Rotation")&&(d=db(d,b.q.get("Rotation")));var e=K(d);switch(c){case "left":d.x=j.x;break;case "center":d.x=j.x+0.5*j.w-0.5*d.w;break;case "right":d.x= j.x+j.w-d.w;break;case "top":d.y=j.y;break;case "middle":d.y=j.y+0.5*j.h-0.5*d.h;break;case "bottom":d.y=j.y+j.h-d.h}hq(a);a.offset=Oa(d,e);a.Qb=[b];a.offset.x==0&&a.offset.y==0||gq(a,!0,!1)});hq(a);a.document.xa()}} function jq(a,b,c){for(var d=0;di?b.x+b.w:i;j=b.y+b.h>j?b.y+b.h:j});var d=new H(f,g,i-f,j-g),m=b=0;if(c=="h")b=Math.floor((d.w-n)/(e.length-1)),m=d.x,e.sort(function(a,b){return a.Da.x+0.5*a.Da.w-(b.Da.x+0.5*b.Da.w)});else if(c=="v")b= Math.floor((d.h-k)/(e.length-1)),m=d.y,e.sort(function(a,b){return a.Da.y+0.5*a.Da.h-(b.Da.y+0.5*b.Da.h)});a.document.Aa();for(d=1;dg?b.h:g;f=b.w>f?b.w:f});j&&c=="x"||n&&c=="y"||(i&&(f=i),k&&(g=k),a.document.Aa(),A(e,function(b){var d=b.item,e=K(b.Da);c=="x"?g=e.h:c=="y"&&(f=e.w);var i=K(e),b=f-e.w,j=g-e.h;e.x-= 0.5*b;e.y-=0.5*j;e.w=f;e.h=g;if(!(b==0&&j==0)){if(d.sa){if(d.q.get("Rotation")){var k=f/i.w,n=g/i.h,z=d.ja(),B=d.q.get("Rotation"),O=Math.cos(B),T=Math.sin(B),B=Math.sqrt(O*O*k*k+T*T*n*n),k=Math.sqrt(O*O*n*n+T*T*k*k);z.x-=0.5*z.w*(B-1);z.y-=0.5*z.h*(k-1);z.w*=B;z.h*=k;e=z}a.document.ba(new N(M,{id:d.id,Property:"BoundingBox",Value:e}))}if(d.fb){z=d.q.get("Endpoint1");k=d.q.get("Endpoint2");if(b!=0)if(z.xk.x)z.x+=0.5*b,k.x-=0.5*b;else return;else if(z.yk.y)z.y+=0.5*j,k.y-=0.5*j;else return;a.document.ba(new N(M,{id:d.id,Property:"Endpoint1",Value:z}));a.document.ba(new N(M,{id:d.id,Property:"Endpoint2",Value:k}))}else d.pa&&(d=d.ge(),A(d,function(b){if(b.sa){var c=f/i.w,d=g/i.h,j=b.q.get("BoundingBox"),k=c*(i.x+0.5*i.w-(j.x+0.5*j.w)),m=d*(i.y+0.5*i.h-(j.y+0.5*j.h));j.w*=c;j.h*=d;j.x=e.x+0.5*e.w-k-0.5*j.w;j.y=e.y+0.5*e.h-m-0.5*j.h;a.document.ba(new N(M,{id:b.id,Property:"BoundingBox",Value:j}))}}))}}),a.document.xa())}} function hq(a){a.offset=new H(0,0,0,0);a.xd=0;a.Qb=[];a.an=!0} function gq(a,b,c){if(a.Qb.length!=0){var d={},e=$h(a.Qb),f=a.offset;if(c&&a.xd==0){var g=a.viewport.V[0].C.q.get("GridSpacing");A(a.Qb,function(a){if(a.Of&&a.Of0&&d.viewport.getSelection(!0).length>1&&!b(a)}}, {label:S("Ungroup"),action:"default.ungroupSelection",Ca:function(a){var c;a:{c=d.viewport;if(c.V.length!=0){c=c.getSelection(!0);for(var g=0,i=c.length;g 0&&d.K.viewport.getSelection(!1).length>1},Tb:new Tl([{label:"Left",action:"default.alignSelectionLeft"},{label:"Center",action:"default.alignSelectionCenter"},{label:"Right",action:"default.alignSelectionRight"},"hr",{label:"Top",action:"default.alignSelectionTop"},{label:"Middle",action:"default.alignSelectionMiddle"},{label:"Bottom",action:"default.alignSelectionBottom"}],{Tb:!0})},{label:S("menu.block.lock"),action:"default.property.Lock",value:1,Ca:function(a){return d.viewport.Cf(!0)&&!d.viewport.Hc()&& !Wk(d.viewport)&&!b(a)}},{label:S("menu.block.unlock"),action:"default.property.Lock",value:"0",Ca:function(a){return d.viewport.Cf(!0)&&Wk(d.viewport)&&!b(a)}},"hr",{label:S("menu.link.change"),action:"default.selectNewLink",Ca:function(a){return c()&&!b(a)}},{label:S("menu.link.text.edit"),action:"default.editBlockText",Ca:function(){if(c()){var a=d.viewport.V[0].getSelection()[0],b=ti(a,0);if(b&&!a.la[b].readOnly)return!0}return!1}},{label:S("menu.line.shape.reset"),action:"default.resetLineShape", Ca:function(a){if(b(a))return!1;var c=!1;Yk(d.viewport)&&A(d.viewport.getSelection(!0),function(a){c=(c=(c=(c=c||(a.q.get("XPlanes")||[]).length>0)||(a.q.get("YPlanes")||[]).length>0)||(a.q.get("ElbowPoints")||[]).length>0)||!lc(a.q.get("ControlPoints")||{})});return c}},{label:S("option.lineshape.edit"),action:"default.editLineShape",Ca:function(){return Xk(d.viewport)}},{label:S("Delete"),action:"default.delete",Ca:function(a){return d.viewport.Cf(!0)&&!b(a)}},"hr",{label:S("menu.line.draw"),action:"default.drawLineMode", Ca:function(){return!P}},{label:"...",Ca:function(a){return P&&P.Db(a)},Fq:function(a){return Zg(a)}},{label:S("Change Language"),action:"default.promptLanguage",Ca:function(a){return b(a)}},{label:S("Add To Dictionary"),action:function(a){a=P.Pq(a);if(na(a)&&!/^[\s\xa0]*$/.test(a)){var b=d.K.$.document.q.get("Language");ec(b).ui(a)}},Ca:function(a){return P&&P.Db(a)&&P.Pq(a)}},{label:S("menu.shape.change"),action:"default.changeBlockShape",value:"event",Ca:function(a){var c=d.viewport.V[0].getSelection(); return c.length==1&&c[0].sa&&ij[c[0].className]&&Sm(d.K.pg,c[0].className)&&!b(a)}}]);J("default.changeBlockShape",function(a){if(d==d.viewport.mode){var b=function(a,b){function c(a){var b=new G(g.x+a.LinkX*g.w,g.y+a.LinkY*g.h),e=x.cg();if(e)for(var f in e)if(Yb(e[f].x-0.1,e[f].x+0.1,a.LinkX)&&Yb(e[f].y-0.1,e[f].y+0.1,a.LinkY)){b=new G(g.x+e[f].x*g.w,g.y+e[f].y*g.h);a.x=b.x;a.y=b.y;a.LinkX=e[f].x;a.LinkY=e[f].y;return}for(var e=d.viewport.V[0].Ya(x),i=mj(x,new G(a.LinkX,a.LinkY)),j=ri(x),k=l,m=0;m< j.length;m++){var n=j[m];for(f=0;f1?(s.x+=i.x*5,s.y+=i.y*5,qi(e,s,j)||(k=s)):k=s}}if(k)a.x=k.x,a.y=k.y,a.LinkX=(k.x-g.x)/g.w,a.LinkY=(k.y-g.y)/g.h}var e=d.K.$.document,f=a.q.Nb(),g=f.BoundingBox,s=gj[b].bd,u=gj[a.className].bd,w=s.w,s=s.h;if(g.w!=u.w||g.h!=u.h)w*=g.w/u.w,s*=g.h/u.h;g.x+=(g.w-w)/2;g.y+=(g.h-s)/2;g.w=w;g.h=s;e.Aa();var v=new N("CreateBlock",{Class:b,Properties:f,Page:d.viewport.V[0].C.id});e.ba(v); var x=d.viewport.V[0].C.Jb(v.id);ri(x);d.viewport.V[0].C.Ib(function(){if(this.fb){var b=this.q.get("Endpoint1");if(b.Block&&b.Block==a.id)b.Block=v.id,c(b),e.ba(new N(M,{id:this.id,Property:"Endpoint1",Value:b}));b=this.q.get("Endpoint2");if(b.Block&&b.Block==a.id)b.Block=v.id,c(b),e.ba(new N(M,{id:this.id,Property:"Endpoint2",Value:b}))}});e.ba(new N("RemoveBlock",{id:a.id}));e.xa()},c=d.viewport.V[0].getSelection();c.length==1&&c[0].sa&&ij[c[0].className]&&d.K.qo.show(a,ij[c[0].className],function(a){b(c[0], a)})}});oq(this)}Ca(nq,fq); function oq(a){a.Sd=$('
').prependTo(a.viewport.J).css({top:a.viewport.padding+"px",right:a.viewport.padding-40+"px"});a.Xe=$('
').prependTo(a.viewport.J).css({bottom:a.viewport.padding-40+ "px",left:a.viewport.padding+"px"});a.Kf=$('
').prependTo(a.viewport.J).css({bottom:a.viewport.padding-40+"px",right:a.viewport.padding-40+"px"});a.jq=$('
');a.gq=$('
');a.iq=$('
');a.hq=$('
'); a.viewport.vb.scroll(function(){var b=a.viewport.padding,c=a.viewport.vb.get(0);c.scrollLeft>b-8?a.Xe.css({left:c.scrollLeft+8+"px"}):a.Xe.css({left:b+"px"});c.scrollTop>b-8?a.Sd.css({top:c.scrollTop+8+"px"}):a.Sd.css({top:b+"px"})})}q=nq.prototype; q.kt=function(a,b,c,d,e){a=pq(this,c,d);if(a==this.Sd)this.Ve=!0;else if(a==this.Xe)this.We=!0;else if(a==this.Kf)this.We=this.Ve=!0;if(this.Ve||this.We){this.di=e;this.al={top:this.viewport.vb.get(0).scrollTop,left:this.viewport.vb.get(0).scrollLeft};var f=400,g=400;tj(b.C,function(){var a=this.pa?this.pd():this.Gd?this.Gd():this.ja();f=a.x+a.w>f?a.x+a.w:f;g=a.y+a.h>g?a.y+a.h:g});this.viewport.hn={w:f,h:g}}}; q.lt=function(a,b,c,d,e,f){var g=b.C.q.get("SkipMultipage");if(this.gk)this.viewport.cursor("crosshair");else if(this.jd||!this.lf&&a.altKey){!this.lf&&a.altKey?Ik(this.viewport):Hk(this.viewport);if(this.jd){var i=this.viewport.vb.get(0);i.scrollTop=this.Me.cn+this.Me.originalEvent.pageY-a.pageY;i.scrollLeft=this.Me.bn+this.Me.originalEvent.pageX-a.pageX}f()}else if(g&&this.Sd&&(ce.x+e.w||de.y+e.h))!this.Ve&&!this.We&&(c>e.w&&de.h&&ce.w-80&&d>e.h-80?(this.Kf.show(),this.Sd.hide(),this.Xe.hide()):(this.Sd.hide(),this.Xe.hide(),this.Kf.hide()),(i=pq(this,c,d))?(i.children(".px").prepend(this.gq).prepend(this.jq),i.children(".in").prepend(this.hq).prepend(this.iq)):(this.jq.detach(),this.gq.detach(),this.iq.detach(),this.hq.detach())),f();else{this.Sd&&!this.Ve&&!this.We&&(this.Sd.hide(),this.Xe.hide(),this.Kf.hide());var j=[];A(b.Fp,function(a){(a.page==b.C||a.q.get("Link")&& a.q.get("Link").match(/^ext:/))&&j.push(a)});f=b.Za(c,d,l,a.altKey,j);f!=l&&!this.lf?(a=f.item.sa&&f.item.q.get("Rotation")?f.item.q.get("Rotation"):0,f.action=="move"||f.action=="dragline"?this.viewport.cursor(f.cursor||"move"):f.action=="se"||f.action=="sw"||f.action=="ne"||f.action=="nw"?Fk(this.viewport,f.action,a):f.action=="rotate"?Gk(this.viewport):f.action=="slidex"?this.viewport.cursor("e-resize"):f.action=="slidey"?this.viewport.cursor("n-resize"):f.action=="linkpoint"?this.viewport.cursor("crosshair"): f.action=="control"?this.viewport.cursor(f.Jo&&f.Jo()||f.cursor||this.wf):this.viewport.cursor(this.wf)):this.viewport.cursor(this.wf);if(!Ya)try{if(i=f?f.item:l,this.Kk!=i&&(!i||i.sa))this.Kk=i,this.viewport.ia()}catch(k){}}}; q.mt=function(a,b,c,d){if(this.X.action=="linkpoint")var e=this.jb,f="Endpoint2";else e=this.X.item,f=this.X.oe;var g=e.q.get("ControlPoints");if(f=="Endpoint1"&&g.first)e.origCp=K(g),delete g.first;else if(f=="Endpoint2"&&g.last)e.origCp=K(g),delete g.last;e.q.set("ControlPoints",g);if(a.shiftKey){var a=new G(this.Xa.x,this.Xa.y),i=new G(c,d),c=Pb(i,a,new G(a.x-1,a.y+1),!0),d=Pb(i,a,new G(a.x,a.y+1),!0),g=Pb(i,a,new G(a.x+1,a.y+1),!0),a=Pb(i,a,new G(a.x+1,a.y),!0),i=a.data.d;if(c.data.d10||Math.abs(d.y-e.y)>10){var f=1;this.If&&(f=this.If.PromptNextBlock);var g=b.C.Jb(d.Block);if(f=(f=(f=(f=(f=f==1&&d.Block!=l&&b.C.Jb(d.Block)!=l)&&(e.Block==l||b.C.Jb(e.Block)==l))&&(d.Line==l||b.C.Ge(d.Line)==l))&&(e.Line==l|| b.C.Ge(e.Line)==l))&&g.Cr()){var i=hj[g.className];if(i){i=qc(i);for(f=0;f0}var j=new N("CreateLine",{Page:b.C.id,Properties:this.jb.q.Nb()});j.Properties.ZOrder=b.C.Kd("ZOrder",0)+1;this.document.Aa();this.document.ba(j);var g=d.Block?b.C.Jb(d.Block):l,k=0;g&&(b.C.qd(function(){this.q.get("Endpoint1").Block==d.Block&&k++}),F(g.Jp(k),function(a,b){c.document.ba(new N(M,{id:j.id,Property:a,Value:b}))}),b.C.Jb(d.Block).ft(j.id,k,!f));this.Ma&& this.Ma.pa&&(g=this.Ma.q.get("Members"),g[j.id]=!0,b.C.document.ba(new N(M,{id:this.Ma.id,Property:"Members",Value:g})));this.document.xa();if(f){var n=j.id;c.K.qo.show(a,i,function(a){var f=Sm(c.K.pg,a),a=gj[f.className],a=f.bd||a.bd,g;g=Math.atan2(e.y-d.y,e.x-d.x);g=g>=-Math.PI/4&&g<=Math.PI/4?{x:e.x,y:e.y-a.h/2,w:a.w,h:a.h}:g>=Math.PI*1/4&&g<=Math.PI*3/4?{x:e.x-a.w/2,y:e.y,w:a.w,h:a.h}:g>=Math.PI*3/4||g<=-Math.PI*3/4?{x:e.x-a.w,y:e.y-a.h/2,w:a.w,h:a.h}:{x:e.x-a.w/2,y:e.y-a.h,w:a.w,h:a.h};a=new N("CreateBlock", {Class:f.className,Properties:{ZOrder:b.C.Kd("ZOrder",0)+1,BoundingBox:g},Page:b.C.id});c.document.ur(a);if(f.xf){var f=f.xf(),i;for(i in f)a.Properties[i]=f[i]}V("p",a.Properties);c.document.Aa();if(c.document.ba(a)){i=b.C.Jb(a.id);f=i.ja();e.x=(e.x-f.x)/f.w;e.y=(e.y-f.y)/f.h;for(var f=1E8,j=l,k=i.cg(),x=0;x5&&this.document.ba(new N(M,{id:this.X.item.id,Property:this.X.oe,Value:a}));this.document.xa()}; q.qt=function(a,b,c,d,e){a=b.Ya(this.X.item);if(e<=5)c=this.X.item.q.get("TextAreas")[this.X.Qd],Xi(a,this.X.Qd,c,this.X.item.ja()),a.hm=l,this.X.click();else{c=new G(c,d);this.X.item.q.get("TextAreas");var e=a.xc[this.X.Qd],d=e.oa[0].Pn,e=e.oa[0].tl,f=Oi(this.X.item,-1,d/2+8,e/2+4),g=Oi(this.X.item,1,d/2+8,e/2+4),d=Pi(this.X.item,c,!0),e=Pi(this.X.item,c,!0,f),b=Pi(this.X.item,c,!0,g),i=Gi(this.X.item,d),j=Gi(this.X.item,e,l,f),g=Gi(this.X.item,b,l,g),f=Nb(i,c),i=Nb(j,c),c=Nb(g,c),j=Math.min(f,i, c),g={};j==f?g[this.X.Qd]={Location:d,Side:0}:j==i?g[this.X.Qd]={Location:e,Side:-1}:j==c&&(g[this.X.Qd]={Location:b,Side:1});this.document.ba(new N(M,{id:this.X.item.id,Property:"TextAreas",Value:g}));a.hm=l}}; function pq(a,b,c){var d=mh(a.viewport.V[0].C);if(b<0||b>d.w||c<0||c>d.h){var e=1/a.viewport.scale,f=a.Sd.position(),d=e*(f.left-a.viewport.padding),f=e*(f.top-a.viewport.padding),g=e*a.Sd.width(),i=e*a.Sd.height(),j=a.Xe.position(),k=e*(j.left-a.viewport.padding),j=e*(j.top-a.viewport.padding),n=e*a.Xe.width(),m=e*a.Xe.height(),p=a.Kf.position(),s=e*(p.left-a.viewport.padding),p=e*(p.top-a.viewport.padding),u=e*a.Kf.width();e*=a.Kf.height();if(b>d&&bf&&ck&&bj&&cs&&bp&&c1&&e.ze.push({id:"selectionGroup",Da:this.xd?this.Gu:$h(g),page:0,Vt:!0,Yt:!0,Qk:i,rotation:this.xd,outline:!0});this.viewport.V[0].C.df(function(){if(a.iu(this,a.viewport.V[0])){var b=this.cg(),c=this.ja(),d=this.Fe(),f=this.q.get("Rotation");A(b,function(a,b){var g=new G(c.x+c.w* a.x,c.y+c.h*a.y,d+"_linkpoint_"+b);if(f!=0)g=Za(g,Xa(c),f),g.data=d+"_linkpoint_"+b;e.Kp.push(g)})}});var j=[];this.ab!=l&&j.push(this.ab);if(this.lf&&this.X!=l&&this.X.action=="move")for(f=0;f"+S("gui.alert.plugins.restricted")+'

Turn off the restricted plugins on this document

');a.find(".link").click(function(){uq(d.$);b()});var b=L(a);d.Ps=!0}d.$.document.Ad||d.eg()}else jp(d),d.$.document.Ad||d.gh()},!0);$(document).ajaxSend(function(a,b,c){if(c.status!=l){var d=Tk(c.status),j=c.complete;c.complete=function(a,b){d();if(j)return j(a,b)}}});setTimeout(function(){function a(){$.fancybox("http://www.youtube.com/v/hly1tqs7ZfI&hl=en&fs=1?rel=0", {type:"iframe",height:450,width:600,padding:30,autoScale:!1,title:"Welcome to the all new LucidChart! Watch this quick video for the highlights.",titlePosition:"inside",titleFormat:function(a){return $("").text(a)}})}d.$.zb()?(d.Tn=gl(''+S("gui.growl.signup.save")+""),$("#register_account").click(function(){J.set("default.save")})):d.$.da==l&&gl(''+S("gui.growl.try.free")+ "");d.$.zb()||(gl('What\'s new in LucidChart'),$("#new_ui_video").click(function(){a()}));d.$.da&&d.$.da.TrialEligible&&!d.$.da.Trial&&(gl(''+S("gui.growl.try.paid.free")+""),$("#start_trial").click(function(){xe("/users/level?Short=on",!1,function(){$("div.lucid-ubergrowl .rSide .close").click()})}));if(d.$.da&&d.$.da.Trial){var b=d.$.da.PendingPayment;b||(b=d.$.da.Payment[d.$.da.Payment.length-1]); b&&(b=mm(b.created).getTime(),b=Math.round(d.$.da.trial_length-((new Date).getTime()-b)/864E5),gl(''+S("gui.growl.trial.remain.prefix")+" "+b+" "+S("gui.growl.trial.remain.suffix")+""))}d.$.da&&d.$.da.Level.id=="free"&&!d.$.da.TrialEligible&&!d.$.da.Trial&&gl(''+S("gui.growl.upgrade")+"");Xd&&!ae&&!ie&&(gl(''+S("gui.growl.runfaster")+""), $("#upgrade_browser").click(function(){Mm(S("gui.alert.ie.alternatives"),o(),new G(400,250))}));if(d.$.zb())$.fancybox("/documents/tips/drag_and_drop",{type:"iframe",height:480,width:640,padding:30,autoScale:!1});else{var b=$.cookie("lucid_gui_lastcheck"),c=new Date(2012,0,19);(!b||b*1127&&d<2048?b.push(String.fromCharCode(d>>6|192)):(b.push(String.fromCharCode(d>>12|224)),b.push(String.fromCharCode(d>>6&63|128))),b.push(String.fromCharCode(d&63|128)))}return b.join("")};function wq(a){for(var b="",c,d,e,f,g,i=0,a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");i>4,d=(d&15)<<4|f>>2,e=(f&3)<< 6|g,b+=String.fromCharCode(c),f!=64&&(b+=String.fromCharCode(d)),g!=64&&(b+=String.fromCharCode(e));a=b;b=[];for(c=i=g=f=0;f191&&g<224?(i=a.charCodeAt(f+1),b.push(String.fromCharCode((g&31)<<6|i&63)),f+=2):(i=a.charCodeAt(f+1),c=a.charCodeAt(f+2),b.push(String.fromCharCode((g&15)<<12|(i&63)<<6|c&63)),f+=3);return b=b.join("")};function xq(a){var b=yq,c;for(c in b)a.call(h,b[c],c,b)}function zq(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Aq(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}var Bq="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");function Cq(a,b){for(var c,d,e=1;e=a.length&&aa(Fq),b in a)return a[b++];else b++};return c}aa(Error("Not implemented"))} function Iq(a,b){if(ma(a))try{Ff(a,b,h)}catch(c){c!==Fq&&aa(c)}else{a=Hq(a);try{for(;;)b.call(h,a.next(),h,a)}catch(d){d!==Fq&&aa(d)}}};function Jq(a,b){this.mf={};this.Lc=[];var c=arguments.length;if(c>1){c%2&&aa(Error("Uneven number of arguments"));for(var d=0;d2*this.uc&&Kq(this),!0):!1}; function Kq(a){if(a.uc!=a.Lc.length){for(var b=0,c=0;b=c.length&&aa(Fq);var g=c[b++];return a?g:d[g]}};return g};function Lq(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function Nq(a){var b=ha,c=b.onerror,d=vo?!0:!1;b.onerror=function(b,f,g){c&&c(b,f,g);a({message:b,fileName:f,ub:g});return d}} function Oq(a){var b=ia("window.location.href");if(na(a))return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c,d,e=!1;try{c=a.lineNumber||a.ub||"Not available"}catch(f){c="Not available",e=!0}try{d=a.fileName||a.filename||a.sourceURL||b}catch(g){d="Not available",e=!0}return e||!a.lineNumber||!a.fileName||!a.stack?{message:a.message,name:a.name,lineNumber:c,fileName:d,stack:a.stack||"Not available"}:a} function Pq(a){for(var b=[],c=arguments.callee.caller,d=0;c&&(!a||d=Rq){b.push("[...long stack...]");break}}a&&d>=a?b.push("[...reached max depth limit...]"):b.push("[end]");return b.join("")}var Rq=50;function Sq(a){return Tq(a||arguments.callee.caller,[])} function Tq(a,b){var c=[];if(Ef(b,a)>=0)c.push("[...circular reference...]");else if(a&&b.length0&&c.push(", ");var f;f=d[e];switch(typeof f){case "object":f=f?"object":"null";break;case "string":break;case "number":f=String(f);break;case "boolean":f=f?"true":"false";break;case "function":f=(f=Qq(f))?f:"[fn]";break;default:f=typeof f}f.length>40&&(f=f.substr(0,40)+"...");c.push(f)}b.push(a);c.push(")\n");try{c.push(Tq(a.caller,b))}catch(g){c.push("[exception trying to get caller]\n")}}else a? c.push("[...long stack...]"):c.push("[end]");return c.join("")}function Qq(a){if(Uq[a])return Uq[a];a=String(a);if(!Uq[a]){var b=/function ([^\(]+)/.exec(a);Uq[a]=b?b[1]:"[Anonymous]"}return Uq[a]}var Uq={};function Vq(){}Vq.prototype.Po=!1;Vq.prototype.Fh=function(){if(!this.Po)this.Po=!0,this.Ee()};Vq.prototype.Ee=function(){this.yv&&Wq.apply(l,this.yv)};function Wq(a){for(var b=0,c=arguments.length;bthis.it&&aa(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var c=0;c=jr(this).value){a=this.Xv(a,b,c);ir("log:"+a.Jw);for(b=this;b;){var c=b,d=a;if(c.Ns)for(var e=0,f=h;f=c.Ns[e];e++)f(d);b=b.getParent()}}}; q.Xv=function(a,b,c){var d=new Zq(a,String(b),this.Kw);if(c){d.ys=c;var e;var f=arguments.callee.caller;try{var g=Oq(c);e="Message: "+wd(g.message)+'\nUrl: '+g.fileName+"\nLine: "+g.lineNumber+"\n\nBrowser stack:\n"+wd(g.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+wd(Sq(f)+"-> ")}catch(i){e="Exception trying to expose exception! You win, we lose. "+i}d.xs=e}return d};q.info=function(a,b){this.log(er,a,b)};function kr(a,b){a.log(gr,b,h)} var lr={},mr=l;function nr(a){mr||(mr=new ar(""),lr[""]=mr,mr.gu(fr));var b;if(!(b=lr[a])){b=new ar(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=nr(a.substr(0,c));c.um()[d]=b;b.mn=c;lr[a]=b}return b};function or(){this.rd=[];this.$g=new Jq;this.Cu=this.cr=this.dr=this.ru=0;this.ki=new Jq;this.Sr=this.br=0;this.Nw=1;this.Jh=new Xq(0,4E3);this.Jh.bk=function(){return new pr};this.Rq=new Xq(0,50);this.Rq.bk=function(){return new qr};var a=this;this.aj=new Xq(0,2E3);this.aj.bk=function(){return String(a.Nw++)};this.aj.Oo=o();this.ds=3}or.prototype.nc=nr("goog.debug.Trace");or.prototype.fo=1E3;function qr(){this.Yn=this.Zq=this.count=0} qr.prototype.toString=function(){var a=[];a.push(this.type," ",this.count," (",Math.round(this.Zq*10)/10," ms)");this.Yn&&a.push(" [VarAlloc = ",this.Yn,"]");return a.join("")};function pr(){}function rr(a,b,c,d){var e=[];c==-1?e.push(" "):e.push(sr(a.nm-c));e.push(" ",tr(a.nm-b));a.lk==0?e.push(" Start "):a.lk==1?(e.push(" Done "),e.push(sr(a.Dx-a.startTime)," ms ")):e.push(" Comment ");e.push(d,a);a.yl>0&&e.push("[VarAlloc ",a.yl,"] ");return e.join("")} pr.prototype.toString=function(){return this.type==l?this.$j:"["+this.type+"] "+this.$j};or.prototype.reset=function(a){this.ds=a;for(a=0;a1&&a.push(" TOTAL ",c,"\n");a.push("Total tracers created ",this.br,"\n","Total comments created ", this.Sr,"\n","Overhead start: ",this.dr," ms\n","Overhead end: ",this.cr," ms\n","Overhead comment: ",this.Cu," ms\n");return a.join("")};function sr(a){var a=Math.round(a),b="";a<1E3&&(b=" ");a<100&&(b=" ");a<10&&(b=" ");return b+a}function tr(a){a=Math.round(a);return String(100+a/1E3%60).substring(1,3)+"."+String(1E3+a%1E3).substring(1,4)}var vr=new or;var wr=[],xr=[],yr=!1;function zr(a){wr[wr.length]=a;if(yr)for(var b=0;bvr.fo){vr.nc.log(dr,"Giant thread trace. Clearing to avoid memory leak.",h);if(vr.rd.length>vr.fo/2){for(var n=0;nvr.fo/2&&vr.$g.clear()}ir("Start : "+ i);g=vr.Jh.getObject();g.yl=j;g.lk=0;g.id=Number(vr.aj.getObject());g.$j=i;g.type=h;vr.rd.push(g);vr.$g.set(String(g.id),g);vr.br++;i=za();g.startTime=g.nm=i;vr.dr+=i-c;c=g.id}try{return b.apply(this,arguments)}catch(m){a.Lv(m),aa(new Er(m))}finally{if(d&&(i=c,c=za(),j=vr.ds,g=vr.$g.get(String(i)),g!=l)){vr.$g.remove(String(i));var p,i=c-g.startTime;if(i=0;j--){if(vr.rd[j]==g){vr.rd.splice(j,1);Yq(vr.aj,g.id);Yq(vr.Jh,g);break}}else p=vr.Jh.getObject(),p.lk=1,p.startTime= g.startTime,p.$j=g.$j,p.type=g.type,p.Dx=p.nm=c,vr.rd.push(p);j=g.type;k=l;if(j){k=vr.ki.get(j);if(!k)k=vr.Rq.getObject(),k.type=j,vr.ki.set(j,k);k.count++;k.Zq+=i}if(p)ir("Stop : "+p.$j),p.yl=ur(),k&&(k.Yn+=p.yl-g.yl);vr.cr+=za()-c}}}var d=a.mv;if(d)var e=Pq(15);c[Cr(a,!1)]=b;return c}function Fr(a,b){var c=ia("window"),d=c[b];c[b]=function(b,c){na(b)&&(b=ya(Aa,b));b=Br(a,b);return d.call?d.call(this,b,c):d(b,c)};c[b][Cr(a,!1)]=d} Ar.prototype.Ee=function(){var a=ia("window");a.setTimeout=this.unwrap(a.setTimeout);a.setInterval=this.unwrap(a.setInterval);Ar.zd.Ee.call(this)};function Er(a){Af.call(this,Gr+(a&&a.message?String(a.message):String(a)));this.ly=a}Ca(Er,Af);var Gr="Error in protected function: ";var Hr;to&&(Go[9]||(Go[9]=to&&document.documentMode&&document.documentMode>=9));var Ir=to&&!(Fo["8"]||(Fo["8"]=Fd(yo,"8")>=0));function Jr(a,b){this.type=a;this.currentTarget=this.target=b}Ca(Jr,Vq);q=Jr.prototype;q.Ee=function(){delete this.type;delete this.target;delete this.currentTarget};q.gi=!1;q.jl=!0;q.stopPropagation=function(){this.gi=!0};q.preventDefault=function(){this.jl=!1};function Kr(a){Kr[" "](a);return a}Kr[" "]=ja;function Lr(a,b){a&&this.Tc(a,b)}Ca(Lr,Jr);q=Lr.prototype;q.target=l;q.relatedTarget=l;q.offsetX=0;q.offsetY=0;q.clientX=0;q.clientY=0;q.screenX=0;q.screenY=0;q.button=0;q.keyCode=0;q.charCode=0;q.ctrlKey=!1;q.altKey=!1;q.shiftKey=!1;q.metaKey=!1;q.cx=!1;q.Oi=l; q.Tc=function(a,b){var c=this.type=a.type;Jr.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(uo){var e;a:{try{Kr(d.nodeName);e=!0;break a}catch(f){}e=!1}e||(d=l)}}else if(c=="mouseover")d=a.fromElement;else if(c=="mouseout")d=a.toElement;this.relatedTarget=d;this.offsetX=a.offsetX!==h?a.offsetX:a.layerX;this.offsetY=a.offsetY!==h?a.offsetY:a.layerY;this.clientX=a.clientX!==h?a.clientX:a.pageX;this.clientY=a.clientY!==h?a.clientY:a.pageY;this.screenX= a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.cx=xo?a.metaKey:a.ctrlKey;this.state=a.state;this.Oi=a;delete this.jl;delete this.gi};q.stopPropagation=function(){Lr.zd.stopPropagation.call(this);this.Oi.stopPropagation?this.Oi.stopPropagation():this.Oi.cancelBubble=!0}; q.preventDefault=function(){Lr.zd.preventDefault.call(this);var a=this.Oi;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Ir)try{if(a.ctrlKey||a.keyCode>=112&&a.keyCode<=123)a.keyCode=-1}catch(b){}};q.Ee=function(){Lr.zd.Ee.call(this);this.relatedTarget=this.currentTarget=this.target=this.Oi=l};function Mr(){}var Nr=0;q=Mr.prototype;q.key=0;q.yj=!1;q.Hr=!1;q.Tc=function(a,b,c,d,e,f){pa(a)?this.Ws=!0:a&&a.handleEvent&&pa(a.handleEvent)?this.Ws=!1:aa(Error("Invalid listener argument"));this.Ok=a;this.proxy=b;this.src=c;this.type=d;this.capture=!!e;this.sp=f;this.Hr=!1;this.key=++Nr;this.yj=!1};q.handleEvent=function(a){return this.Ws?this.Ok.call(this.sp||this.src,a):this.Ok.handleEvent.call(this.Ok,a)};var Or,Pr=(Or="ScriptEngine"in ha&&ha.ScriptEngine()=="JScript")?ha.ScriptEngineMajorVersion()+"."+ha.ScriptEngineMinorVersion()+"."+ha.ScriptEngineBuildVersion():"0";var Qr,Rr,Sr,Tr,Ur,Vr,Wr,Xr,Yr,Zr,$r; (function(){function a(){return{uc:0,of:0}}function b(){return[]}function c(){function a(b){b=g.call(a.src,a.key,b);if(!b)return b}return a}function d(){return new Mr}function e(){return new Lr}var f=Or&&!(Fd(Pr,"5.7")>=0),g;Vr=function(a){g=a};if(f){Qr=function(){return i.getObject()};Rr=function(a){Yq(i,a)};Sr=function(){return j.getObject()};Tr=function(a){Yq(j,a)};Ur=function(){return k.getObject()};Wr=function(){Yq(k,c())};Xr=function(){return n.getObject()};Yr=function(a){Yq(n,a)};Zr=function(){return m.getObject()}; $r=function(a){Yq(m,a)};var i=new Xq(0,600);i.Ah=a;var j=new Xq(0,600);j.Ah=b;var k=new Xq(0,600);k.Ah=c;var n=new Xq(0,600);n.Ah=d;var m=new Xq(0,600);m.Ah=e}else Qr=a,Rr=ja,Sr=b,Tr=ja,Ur=c,Wr=ja,Xr=d,Yr=ja,Zr=e,$r=ja})();var as={},bs={},yq={},cs={}; function ds(a,b,c,d,e){if(b)if(la(b))for(var f=0;f=0;e--){var f=a[e];if(d||b==f.capture)fs(f.key),c++}});else if(a=ra(a),yq[a])for(var a=yq[a],e=a.length-1;e>=0;e--){var f=a[e];if(d||b==f.capture)fs(f.key),c++}}function is(a,b,c,d,e){var f=1,b=ra(b);if(a[b]){a.of--;a=a[b];a.Tm?a.Tm++:a.Tm=1;try{for(var g=a.length,i=0;i=0&&g.of;s--)k.currentTarget= m[s],f&=is(g,m[s],d,!0,k);if(j){g=e[!1];g.of=g.uc;for(s=0;!k.gi&&s=0&&(c.push(d.substr(e)),c[0]=d=d.substr(0,e));e=d.indexOf("?");e<0?c[1]="?":e==d.length-1&&(c[1]=h)}return c.join("")};function qs(){}Ca(qs,Vq);q=qs.prototype;q.as=!0;q.lq=l;q.addEventListener=function(a,b,c,d){ds(this,a,b,c,d)};q.removeEventListener=function(a,b,c,d){es(this,a,b,c,d)}; q.dispatchEvent=function(a){var b=a.type||a,c=bs;if(b in c){if(na(a))a=new Jr(a,this);else if(a instanceof Jr)a.target=a.target||this;else{var d=a,a=new Jr(b,this);Cq(a,d)}var d=1,e,c=c[b],b=!0 in c,f;if(b){e=[];for(f=this;f;f=f.lq)e.push(f);f=c[!0];f.of=f.uc;for(var g=e.length-1;!a.gi&&g>=0&&f.of;g--)a.currentTarget=e[g],d&=is(f,e[g],a.type,!0,a)&&a.jl!=!1}if(!1 in c)if(f=c[!1],f.of=f.uc,b)for(g=0;!a.gi&&g=0||a[b].push(c)}var us=new ss;function zs(){}zs.prototype.Gr=l;function As(a){var b;if(!(b=a.Gr))b={},Bs(a)&&(b[0]=!0,b[1]=!0),b=a.Gr=b;return b};var Cs;function Ds(){}Ca(Ds,zs);function Es(a){return(a=Bs(a))?new ActiveXObject(a):new XMLHttpRequest}Ds.prototype.vp=l; function Bs(a){if(!a.vp&&typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c0)kr(this.nc,Js(this,"Will abort after "+this.Qn+"ms if incomplete")),this.mi=rs.setTimeout(r(this.Lx,this),this.Qn);kr(this.nc,Js(this,"Sending request")); this.Fm=!0;this.xb.send(a);this.Fm=!1}catch(g){kr(this.nc,Js(this,"Send error: "+g.message)),Ks(this,g)}};q.dispatchEvent=function(a){if(this.xb){ts(this.xb);try{return Fs.zd.dispatchEvent.call(this,a)}finally{vs()}}else return Fs.zd.dispatchEvent.call(this,a)};q.Lx=function(){if(typeof ga!="undefined"&&this.xb)this.Jk="Timed out after "+this.Qn+"ms, aborting",this.Ik=8,kr(this.nc,Js(this,this.Jk)),this.dispatchEvent("timeout"),this.abort(8)}; function Ks(a,b){a.Bg=!1;if(a.xb)a.Ph=!0,a.xb.abort(),a.Ph=!1;a.Jk=b;a.Ik=5;Ls(a);Ms(a)}function Ls(a){if(!a.Yo)a.Yo=!0,a.dispatchEvent("complete"),a.dispatchEvent("error")}q.abort=function(a){if(this.xb&&this.Bg)kr(this.nc,Js(this,"Aborting")),this.Bg=!1,this.Ph=!0,this.xb.abort(),this.Ph=!1,this.Ik=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Ms(this)};q.Ee=function(){if(this.xb){if(this.Bg)this.Bg=!1,this.Ph=!0,this.xb.abort(),this.Ph=!1;Ms(this,!0)}Fs.zd.Ee.call(this)}; q.Gt=function(){!this.wp&&!this.Fm&&!this.Ph?this.bq():Ns(this)};q.bq=function(){Ns(this)}; function Ns(a){if(a.Bg&&typeof ga!="undefined")if(a.bo[1]&&Os(a)==4&&Ps(a)==2)kr(a.nc,Js(a,"Local request error detected and ignored"));else if(a.Fm&&Os(a)==4)rs.setTimeout(r(a.Gt,a),0);else if(a.dispatchEvent("readystatechange"),Os(a)==4){kr(a.nc,Js(a,"Request complete"));a.Bg=!1;var b;a:switch(Ps(a)){case 0:b=na(a.Lk)?a.Lk.match(ms)[1]||l:a.Lk.Dy();b=!(b?Gs.test(b):self.location?Gs.test(self.location.protocol):1);break a;case 200:case 201:case 202:case 204:case 304:case 1223:b=!0;break a;default:b= !1}if(b)a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.Ik=6;var c;try{c=Os(a)>2?a.xb.statusText:""}catch(d){kr(a.nc,"Can not get status: "+d.message),c=""}a.Jk=c+" ["+Ps(a)+"]";Ls(a)}Ms(a)}} function Ms(a,b){if(a.xb){var c=a.xb,d=a.bo[0]?ja:l;a.xb=l;a.bo=l;if(a.mi)rs.clearTimeout(a.mi),a.mi=l;b||(ts(c),a.dispatchEvent("ready"),vs());var e=us;if(e.km){var f=ra(c);kr(e.nc,"Closing XHR : "+f);delete e.co[f];for(var g in e.xh)Hf(e.xh[g],f),e.xh[g].length==0&&delete e.xh[g]}try{c.onreadystatechange=d}catch(i){a.nc.log(cr,"Problem encountered resetting onreadystatechange: "+i.message,h)}}}q.hf=function(){return!!this.xb};function Os(a){return a.xb?a.xb.readyState:0} function Ps(a){try{return Os(a)>2?a.xb.status:-1}catch(b){return a.nc.log(dr,"Can not get status: "+b.message,h),-1}}function Js(a,b){return b+" ["+a.ct+" "+a.Lk+" "+Ps(a)+"]"}zr(function(a){Fs.prototype.bq=a(Fs.prototype.bq)});function Qs(a,b,c){this.Ur=b||l;this.Vx=Rs;this.jw=a;if(!c)if(to)Nq(r(this.sd,this));else{this.mm=new Ar(r(this.sd,this));Fr(this.mm,"setTimeout");Fr(this.mm,"setInterval");a=this.mm;yr=!0;b=r(a.wrap,a);for(c=0;c0&&e.push(a[f].before-a[f-1].after);d=b(d);e=b(e);L("

Benchmark Results

Average FPS: "+c.toFixed(3)+"

Javascript render time:
"+d.Pp.toFixed(3)+"ms mean
"+d.No.toFixed(3)+"ms stddev

Intra-frame time:
"+ e.Pp.toFixed(3)+"ms mean
"+e.No.toFixed(3)+"ms stddev

")} function Zs(a){var b=a.K.viewport,a=b.V[0].C;setInterval(r(b.Ub,b),1);var a=wj(a),a=a[a.length-1].q.get("BoundingBox"),c=new G(a.x+a.w/2,a.y+a.h/2),d=new G(a.x+a.w/2,a.y+a.h/2);b.ud(d,{which:1});var e=new Date,f=[];b.J.bind("beforeRender.benchmark",function(){f.push({before:(new Date).getTime()})}).bind("afterRender.benchmark",function(){f[f.length-1].after=(new Date).getTime()});var g=setInterval(function(){var a=(new Date).getTime()-e.getTime();d.x=c.x+Math.cos(a*2*Math.PI/1E3)*200;d.y=c.y+200+ Math.sin(a*2*Math.PI/1E3)*200;b.fd(d,{which:1});a>=5E3&&(b.gd(d,{which:1}),b.J.unbind("beforeRender.benchmark").unbind("afterRender.benchmark"),clearInterval(g),Ys(f))},1)};function rq(){} rq.prototype.pl=function(a,b,c,d){$(a).fileUploadArea({url:b,filter:function(a){return c(a)},progress:function(a){var b=this;$("div[filename]").each(function(){$(this).attr("filename")==b.fileName&&$(this).find("span").html(" ("+a+"%)")});d.progress&&d.progress(a)},onDrop:function(a){Tk('
'+S("Uploading")+" "+a.fileName+"
",1E6);if(d.onDrop)d.onDrop(a)},fileComplete:function(a,b){var c=this;$("div[filename]").each(function(){$(this).attr("filename")==c.fileName&& $(this).click()});d.fileComplete&&d.fileComplete(a,b)},complete:function(){d.complete&&d.complete()},error:function(a){$("div[filename]").each(function(){$(this).attr("filename")==a.fileName&&$(this).click()});d.error?d.error(a):Tk(S("growl.upload.failed"))},params:{}})};rq.prototype.setFileDrop=rq.prototype.pl;function $s(a,b,c,d,e){this.client=this.$=a;this.document=this.document=a.document;this.url=b;this.name=c;this.description=d;this.code=e;this.Nj=!1;b in at||(eval(this.code+"\n\n//@ sourceURL="+b),at[b]=!0);this.Ze=this.activate;this.Fg=this.deactivate}var at={};var bt={},ct="onhashchange"in window;bt.change=function(a){if(ct){var b=window;b.addEventListener?b.addEventListener("hashchange",a,!1):b.attachEvent?b.attachEvent("onhashchange",a):b.onhashchange+=a}else dt.push(a)};bt.unbind=function(a){if(ct){var b=window;b.removeEventListener?b.removeEventListener("hashchange",a,!1):b.detachEvent?b.detachEvent("onhashchange",a):b.onhashchange-=a}else{var a=dt.indexOf(a),b=dt,c=b.slice(a+1||b.length);b.length=a<0?b.length+a:a;b.push.apply(b,c)}return bt}; bt.val=function(a,b){var c=et();if(arguments.length===2)return c[a.toLowerCase()]=b===l?"":b,bt.set(bt.root(),c);else if(arguments.length===1&&typeof a==="string")return c[a.toLowerCase()];return c};bt.root=function(a){a===h?(a=window.location.hash,a=a.substring(0,a.length),a.indexOf("#")>-1&&(a=a.substring(1,a.length)),a.indexOf("?")>-1&&(a=a.substring(0,a.indexOf("?")))):a=bt.set(a,bt.val());return a}; bt.set=function(a,b){var c;if(arguments.length===2){if(typeof b==="string")c=b;else{c="";for(var d in b)b[d]!==h&&(c.length>0&&(c+="&"),c+=d.toString()+"="+b[d].toString())}c=a+"?"+c}else c=a;window.location.hash=c;return bt};bt.remove=function(a){var b=et();b[a.toLowerCase()]=h;return bt.set(bt.root(),b)};t("lucid.hash.root",bt.root);t("lucid.hash.val",bt.val);ct||window.setInterval(function(){var a=window.location.hash;if(ft!==a)for(var b in dt)dt[b].call(window);ft=a},200);var dt=[],ft=window.location.hash; function et(){var a=window.location.hash,b={},c=l,c=a.substring(0,a.length);c.indexOf("#")===0&&(c=c.substring(1,c.length));a=c.indexOf("?");a>-1&&(c=c.substring(a+1,c.length));for(var a=c.split("&"),d=0;d0?c=a.sf[0]:a.ld.length>0&&(c=a.ld[0][0]);if(c&&c.Action==yg&&b.id==c.id&&b.Key==c.Key){var c=c.Diff,d=b.Diff;if(c.f.length==1&&d.f.length==1&&c.f[0].f=="i"&&d.f[0].f=="i"&&!d.f[0].p[0].match(/\s/)&&d.f[0].p[1]==c.f[0].p[1]+c.f[0].p[0].length){a.sf.length>0?(a.sf[0]=K(a.sf[0]),c=a.sf[0].Diff):(a.ld[0][0]=K(a.ld[0][0]),c=a.ld[0][0].Diff);c.f[0].p[0]+=d.f[0].p[0];c.r[0].p[1]+=d.f[0].p[0].length;return}}}a.sf.unshift(b)} q.xa=function(){if(this.qg<=1)for(this.sf.length>0&&J.set("document.beforeUndoBatchCommitted");this.zq.length>0;)this.ba(this.zq.shift());this.qg--;this.qg=Math.max(0,this.qg);if(this.qg==0&&this.sf.length>0)this.ld.unshift(this.sf),this.ng=[],this.sf=[],J.set("document.undoBatchCommitted");V("undo","endUndoBatch: "+this.qg)};function mq(a){for(var b=[],c=0;c<2;c++)b=b.concat(a.ld.shift());a.ld.unshift(b)}q.Jr=function(){return this.ld.length>0};q.Ir=function(){return this.ng.length>0}; q.gr=function(){if(this.ld.length!=0){var a=[],b=this;A(this.ld[0],function(c){c=Cg(c);if(c!=l)c.IsUndo=!0,delete c.IsRedo,a.unshift(c),b.ba(c)});this.ld.shift();this.ng.unshift(a)}};q.Bq=function(){if(this.ng.length!=0){var a=[],b=this;A(this.ng[0],function(c){c=Cg(c);if(c!=l)c.IsRedo=!0,delete c.IsUndo,a.unshift(c),b.ba(c)});this.ng.shift();this.ld.unshift(a)}};q.Xl=function(){this.ld=[];this.ng=[]};Y.prototype.startUndoBatch=Y.prototype.Aa;Y.prototype.endUndoBatch=Y.prototype.xa; Y.prototype.canUndo=Y.prototype.Jr;Y.prototype.canRedo=Y.prototype.Ir;Y.prototype.undo=Y.prototype.gr;Y.prototype.redo=Y.prototype.Bq;Y.prototype.clearUndoHistory=Y.prototype.Xl;Y.prototype.queueAction=Y.prototype.yq;function ot(a){this.Md=[[0,0]];this.content=dd(a,"helvetica")}ot.prototype.rb=function(a){if(a<0)return[0,0];if(a>=this.Md.length)for(var b=this.Md.length;b<=a;b++){var c=this.Md[this.Md.length-1];this.Md.push([c[1]+1,c[1]+1])}return this.Md[a]};function pt(a,b,c,d){a.rb(b);for(var e=b;e0&&a.rb(b.p[0])[1]==a.rb(b.p[0]-1)[1]&&(b.p[2]={}),b.p[0]=a.rb(b.p[0])[0]):(b.p[0]=a.rb(b.p[0])[1],b.p[1]=a.rb(b.p[1])[0]);if(d.f=="d"){for(var b=d.p[0],d=d.p[1],e=a.rb(b)[1],e=a.rb(d)[0]-e,f=d;f0&&a.splice(0,g));b=[];for(g=this.ed.length;g=0;g--)gk(this,Cg(b[g]));this.Pc=qc(this.ed);V("merge","Running remote changes");for(g=0;g0?a.jc[c-1].start+a.jc[c-1].count:0;a.jc.push(b);V("history","Logged: "+nd(b));$(document).triggerHandler("documentAddSaveHistory")} function mp(a){for(var b=[],c=0;c=120}d?b.push(K(a.jc[c])):(d=b[b.length-1],d.Dh=a.jc[c].Dh,d.count+=a.jc[c].count)}return b} function wt(a,b,c){if(a.jn==l)a.jn={};var d=b+","+c;if(d in a.jn)return a.jn[d];if(a.oj==l)a.oj=[],ek(a,function(b){b.Action=="CreatePage"||b.Action=="SetProperty"&&b.Property=="Title"?a.oj.push(b):a.oj.push(l)}),$(document).bind("documentPostAction",function(b,c){c.Action=="CreatePage"||c.Action=="SetProperty"&&c.Property=="Title"?a.oj.push(c):a.oj.push(l)});var e=l;for(c-=1;c>=0;c--){var f=a.oj[c];if(f&&f.Action=="CreatePage"&&f.id==b){e=f.Properties.Title;break}if(f&&f.Action=="SetProperty"&&f.Property== "Title"&&f.id==b){e=f.Value;break}}return a.jn[d]=e} Y.prototype.Zn=function(a){var b=this;if(this.Ad){var c=this.fg;this.fg=a;if(this.fgc){a=this.fg-c;for(c=0;c=a;b--)this.ba(Cg(this.Hs(b)),!1,!0);this.xa()}};Y.prototype.viewRevision=Y.prototype.Zn;Y.prototype.exitHistoryView=Y.prototype.Pi;Y.prototype.revertToHistoryVersion=Y.prototype.Xt;Y.prototype.yc=function(a,b){var c=this,d=0,e={};this.ik(function(){this.Fb()||d++;if(a==l||a==this)if(e[this.id]=this.yc(b),e[this.id].PageNumber=this.Fb()?0:d,a&&sj(a,!0)){var f=sj(a),g=c.yc(f);e[this.id].MasterItems=g[f.id].Items}});for(var f in e)e[f].PageTotal=d;var g=l;J.set("bodyText.pdfData",function(a){g=a});g&&(e.__body__=g);return e}; Y.prototype.Lg=function(a){var b={Properties:!a||a.doc?this.q.Nb():l,Pages:{},Groups:{},Blocks:{}};F(this.Ea,function(c,d){b.Groups[c]=!a||a[c]?d.q.Nb():l});F(this.Oa,function(c,d){b.Blocks[c]=!a||a[c]?{Class:d.className,Properties:d.q.Nb()}:l});this.ik(function(){b.Pages[this.id]={Properties:!a||a[this.id]?this.q.Nb():l,Groups:{},Blocks:{},Lines:{}};var c=b.Pages[this.id];this.Af(function(){c.Groups[this.id]=!a||a[this.id]?this.q.Nb():l});this.df(function(){c.Blocks[this.id]=!a||a[this.id]?{Class:this.className, Properties:this.q.Nb()}:l});this.qd(function(){!a||a[this.id]?(c.Lines[this.id]=this.q.Nb(),"Points"in c.Lines[this.id]&&delete c.Lines[this.id].Points):c.Lines[this.id]=l})});return b};Y.prototype.getPDFData=Y.prototype.yc;Y.prototype.getStateData=Y.prototype.Lg;t("lucid.buildVersion","20120131124945");function yt(a){var b=this;Vs.call(this,l,!1);this.db=De(a);this.imageManager=this.Ck=Ka||new Jh(this.db);this.ci={};this.Ob={};J("client.loadPlugin",function(a){b.Gf(a[0],a[1],a[2])});this.Gf("/js/plugins/v2/default.js","Default","Default Tool Set");this.Gf("/js/plugins/v2/imagesearch.js","Image Search","Default Image Search")}Ca(yt,Vs);yt.prototype.Hk=fa(!1);yt.prototype.yi=function(a,b){this.ci[a]=b}; yt.prototype.Gf=function(a,b,c,d){function e(e){f.yi(a,e);f.Ob[a]=new $s(f,a,b,c,e);d&&d()}if(this.Ob[a])d&&d();else{var f=this;this.ci[a]?e(this.ci[a]):$.ajax({async:!1,cache:!0,url:a,dataType:"text",success:e})}};t("lucid.StubClient",yt);yt.prototype.loadPlugin=yt.prototype.Gf;yt.prototype.cachePlugin=yt.prototype.yi;function zt(a){this.wl=l;this.status=a?a:l;this.Pl=1}zt.prototype.go=function(a){if(this.wl!=l)clearTimeout(this.wl),this.wl=l,a()};function At(a,b,c){a.wl=setTimeout(function(){a.wl=l;b()},c)};function Bt(a,b){this.Sc=bt.val("event_client")||l;this.md=a;this.uf=!1;this.Cs=!0;this.Wa={be:o(),fz:o(),dp:o()};$.extend(this.Wa,b);this.Sb={};this.Ih=l;this.Bf=!1;var c=this;$(document).ajaxSuccess(function(){c.uf||c.Bf&&c.Yf()});setInterval(function(){(c.rg()||c.$d&&c.sg)&&el(c.$d)},100);$(document).ajaxError(function(){c.sg=!1});$(document).ajaxSuccess(function(){c.sg=!0})}q=Bt.prototype;q.sh=function(){$(document).trigger("query.status.update",[this.status()])}; q.connected=function(){return this.Sc!=l&&this.Ih==l};q.Os=function(){return this.Sc!=l};q.status=function(){var a=l;F(this.Sb,function(b,c){if(c.status)return a=c.status,!1});return a};q.rg=function(){var a=this.Sb["Connecting to document update server"];return a!=l&&a.Pl==1};q.Fg=function(){if(!this.$d)this.$d=!0,this.sg=this.sg||this.rg()};q.Ze=function(){if(this.$d)this.sg=this.$d=!1}; q.Yf=function(){function a(){if(!b.uf){if(b.$d&&(c++,c%14400)){setTimeout(a,250);return}if(b.Cs&&b.Sc!=l)try{b.Wa.be("refresh"),b.Wa.dp("refresh")}catch(d){}else Kd(function(){b.hi("Connecting to document update server",l,"POST","/events/listen/"+(b.Sc?encodeURIComponent(b.Sc):""),"NoSSLChange=true&docs="+b.md,function(c){if(!b.uf){try{var d=gc(c)}catch(g){return!1}b.Sc=d.id;if(d.data.docs)try{(!la(d.data.docs)||d.data.docs.length>0)&&b.Wa.be(d.data.docs),la(d.data.templates),(!la(d.data.folders)|| d.data.folders.length>0)&&b.Wa.dp(d.data.folders)}catch(i){}a()}},l,l,55E3)});b.Cs=!1}}this.Bf=!0;if(!this.rg()){var b=this,c=0;a()}}; q.hi=function(a,b,c,d,e,f,g,i,j){function k(){function b(){m.Ih=d;n++;m.Sb[a].Pl=n;var c=5;n>3&&(c=30);var e=!0;try{e=g(c,n)}catch(f){}e==!1?(delete m.Sb[a],m.sh(),i(n-1)):At(m.Sb[a],k,c*1E3)}$.ajax({type:c,url:d,data:e,timeout:j,success:function(c){var d=m.Sb[a];m.Ih=l;delete m.Sb[a];m.sh();f(c)==!1&&(m.Sb[a]=d,b())},error:b})}if(this.uf)return!0;a==l&&(a=Math.floor(Math.random()*1E8)+"_"+Math.floor(Math.random()*1E8)+"_"+Math.floor(Math.random()*1E8));var n=1,m=this;j==l&&(j=1E4+(e!=l?e.length: 0));f==l&&(f=o());g==l&&(g=fa(!0));i==l&&(i=o());if(this.Sb[a]!=l)return this.Sb[a].go(k),!1;this.Sb[a]=new zt(b);k();this.sh();return!0};function Ct(a,b,c){var d=this;this.md=b;this.Va=c;this.Fa=[];this.db=a;$(document).bind("offlineRefreshAll",function(){d.refresh()});$(document).bind("lucid.storage.FolderList.change",function(){A(d.Fa,function(a){a()})});a.mh||setTimeout(function(){$(document).triggerHandler("lucid.storage.FolderList.change")},100)}Ct.prototype.change=function(a){this.Fa.push(a)};Ct.prototype.tk=function(a){return this.db.tk(a)}; Ct.prototype.refresh=function(a,b){function c(){d.Va.hi(l,"listFolders","POST","/folderEntries/listFolders/"+(d.md?d.md:""),e,function(a){try{a=gc(a)}catch(c){return}d.db.vq(a,!0,b);$(document).trigger("lucid.storage.FolderList.change")},function(a,b){return b<10},l,9E4)}var d=this,e="",e=[];la(a)?(A(a,function(a){e.push(encodeURIComponent("folder_entry_id[]")+"="+encodeURIComponent(a))}),e=e.join("&"),c()):d.db.tk(function(a){A(a,function(a){e.push(encodeURIComponent("skip_folder_entry_id[]")+"="+ encodeURIComponent(a.FolderEntry.id))});e=e.join("&");c()})};function Dt(a,b,c){var d=this;this.md=b;this.Va=c;this.Fa=[];this.db=a;$(document).bind("offlineRefreshAll",function(){d.refresh()});$(document).bind("lucid.storage.DocumentList.change",function(){A(d.Fa,function(a){a()})});a.mh||setTimeout(function(){$(document).triggerHandler("lucid.storage.DocumentList.change")},100)}Dt.prototype.change=function(a){this.Fa.push(a)};Dt.prototype.sk=function(a,b){return this.db.sk(a,b)}; Dt.prototype.refresh=function(a,b){function c(c){var g="/documents/listDocs";g+=d.db.mh?"/0/0":"/1/0";d.Va.hi(l,"listDocs","POST",g,e,function(e){try{e=gc(e)}catch(g){return}d.db.vn(e,!la(a),c,b);la(a)&&A(a,function(a){var b=!1;A(e,function(c){if(c.Document.id==a)return b=!0,!1});b||d.db.Mo(a)});$(document).trigger("lucid.storage.DocumentList.change")},function(a,b){return b<10},l,9E4)}var d=this,e=this.md?"user_id="+this.md:"",e=[];bt.val("user_id")&&e.push("user_id="+encodeURIComponent(bt.val("user_id"))); la(a)?(A(a,function(a){e.push(encodeURIComponent("document_id[]")+"="+encodeURIComponent(a))}),e=e.join("&"),c([])):d.db.Lp(function(a){var b=[];F(a,function(a,c){b.push(a);e.push(encodeURIComponent("action_history_length["+a+"]")+"="+encodeURIComponent(c))});e=e.join("&");c(b)})};function Et(a){Ft.push(a)}var Ft=[];window.onbeforeunload=function(a){if(!a)a=window.event;var b=l;A(Ft,function(a){(a=a())&&(b=a)});if(b!=l)return a.returnValue=b};function Gt(a){Ht.push(a)}var Ht=[];window.onunload=function(){A(Ht,function(a){a()})};function It(a,b){var c=this;this.md=a;var d=[],e=new dn(function(){c.os.refresh(d,function(){Jt();d=l})},5E3);$(document).bind("keydown mousemove mousedown",function(){Jt("userActive");c.Va.Ze()});$(window).focus(function(){Jt("userActive");c.Va.Ze()});Jt("userActive");var f=!1;this.Va=new Bt(this.md,{be:function(a){d==l||a=="refresh"||a.length==0?d=l:(d=[],A(a,function(a){nc(d,a)||d.push(a)}));f?d!=l?c.os.sk(d,function(a){var b=!1;F(a,function(a,c){c==l&&(b=!0)});b?e.queue(1):e.queue()}):e.queue(): (e.queue(1),f=!0)},dp:function(a){c.Sv.refresh(a=="refresh"?l:a,function(){Jt()})}});this.Bf=!1;this.$=new yt(this.md);this.db=this.$.db;this.os=new Dt(this.db,this.md,this.Va);this.Sv=new Ct(this.db,this.md,this.Va);this.jg={};if(this.db.mh)this.hf=b;else{var g=new kd("SuperSyncer",15);this.hf=ld(g,c.hf);setInterval(function(){c.hf=ld(g,c.hf)},1E3);Gt(function(){c.hf&&g.pc()})}$(document).bind("lucid.storage.DocumentList.change",function(){c.hf&&Jt("lucid.storage.DocumentList.change")});$(document).bind("lucid.storage.FolderList.change", function(){c.hf&&Jt("lucid.storage.FolderList.change")});var i=0,j=0;setInterval(function(){!c.hf&&i30&&a.Va.Fg();if(this.Va.rg())this.dk={},this.vt=[],this.db.tm(l,function(b){A(b,function(b){if(a.db.Sn(b))if(b.changes.length==0)a.db.Eh(b);else{var d=b.document_id;d?(a.dk[d]||(a.dk[d]=[]),a.dk[d].push(b)):a.vt.push(b)}});F(a.dk,function(b){a.Zb(b)});A(a.vt,function(b){Mt(a,b)})})}}; q.Zb=function(a){function b(a){var b=a.plugins;la(b)&&(b={});b["/js/plugins/v2/default.js"]=!0;A(a.Change,function(a){A(gc(a.changes),function(a){a.Action==zg?b[a.URL]=!0:a.Action==Bg&&(b[a.URL]=!1)})});a.Cd=[];c.createDocument(a,b)}var c=this,a="document_id="+a;a+=c.md?"&user_id="+c.md:"";$.ajax({type:"POST",url:"/documents/listDocs/1/1",data:a,success:function(a){a=md(a);a.length<1||b(a[0])},error:o(),timeout:18E4})}; q.createDocument=function(a,b){var c=this,d=new Y(l);d.ag(b,a.Document.state,function(b){b(a.Change)},a.Document.action_history_length,a.Document.id,a.Document.next_connection_id,a.Document.creator_id,o(),function(){Nt(c,d)});d.Ap=!0};function Mt(a,b){var c=new Y(l);c.Ap=!0;A(b.changes,function(a){c.ba(a)});b.visio&&pk(c);Ot(a,c,function(){a.db.Eh(b)})}function Nt(a,b){var c=a.dk[b.id];if(c){var d=0;A(c,function(c){setTimeout(function(){Pt(a,b,c)},d*500);d++})}} function Pt(a,b,c){a.jg[b.id]&&setTimeout(function(){Pt(a,b,c)},500);a.jg[b.id]=!0;var d=jk(b);if(!(c.base>d)){var e=[];ek(b,function(a){e.push(a)},c.base);for(var f=e.length-1;f>=0;f--)gk(b,Cg(e[f]));A(c.changes,function(a){b.ba(a)});b.merge(nd(e),d+c.changes.length,d);Ot(a,b,function(){a.db.Eh(c);a.jg[b.id]=!1})}}q.Xm=function(a,b){a.merge(b.vh,b.Il,b.Jj)}; function Ot(a,b,c){a.Jd=!0;if(a.Va.rg()){try{var d=b.gf(),e=st(b),f,g;b.fj?(g=nd(b.yc(l,hk(b))),f=nd(b.Lg(hk(b)))):(g=nd(b.yc()),f=nd(b.Lg()));if(g.length==2){alert("FAIL! Empty state.");return}var i="data[Change][0][md5]="+encodeURIComponent(a.Vm(e))+"&data[Document][title]="+encodeURIComponent(b.q.get("Title"))+"&data[Change][0][version]=2&data[Change][0][user_agent]="+encodeURIComponent(navigator.userAgent)+"&data[Document][pdfdata]="+encodeURIComponent(g)+"&data[Document][state]="+encodeURIComponent(f)+ "&data[Change][0][changes]="+encodeURIComponent(e)+"&data[LoadedActionHistoryLength]="+encodeURIComponent(String(jk(b))),e=g=f=l;if(b.attributes)for(var j in b.attributes)b.attributes.hasOwnProperty(j)&&(i+="&data[DocumentAttribute]["+j+"][name]="+encodeURIComponent(b.attributes[j].name),i+="&data[DocumentAttribute]["+j+"][value]="+encodeURIComponent(b.attributes[j].value));b.id!=l&&(i="data[Document][id]="+encodeURIComponent(b.id)+"&"+i);var k=0}catch(n){setTimeout(function(){a.Jd=!1},5E3);return}$.ajax({type:"POST", url:"/documents/save/"+(a.Va?a.Va.Sc:""),data:i,timeout:Math.max(2E4,i.length),success:function(e){try{var f=gc(e);if(f.success)b.fj=!0,mk(b,d),c();else if(f.update)a.Xm(b,{Jj:f.savedActionHistoryLength,vh:f.update,Il:f.actionHistoryLength}),Ot(a,b,c);else if(f.code!=1)f.code==2?k=5E3:f.code==3?k=5E3:f.code==4?k=15E3:f.code==5?(L(S("alert.document.deleted")),k=15E3,a.Qa="viewer",J.set("client.roleChanged",a.Qa)):Ot(a,b,c)}catch(g){setTimeout(function(){a.Jd=!1},5E3)}},error:function(){try{Ot(a,b, c)}catch(d){setTimeout(function(){a.Jd=!1},5E3)}},complete:function(){b.id!=l&&k>0?setTimeout(function(){a.Jd=!1},k):a.Jd=!1},status:"Saving"})}else setTimeout(function(){Ot(a,b,c)},500)}function Jt(a){window.localStorage[a||"dataUpdated"]=String((new Date).getTime())}function Kt(a){return(a=window.localStorage[a||"dataUpdated"])?parseInt(a,10):0}function Lt(){var a=window.localStorage.userActive;if(a)return((new Date).getTime()-parseInt(a,10))/1E3;Jt("userActive");return 0};function Qt(a,b){this.Sc=l;this.document=a;this.uf=!1;this.Wa={clipboardData:o(),If:o(),et:o(),Du:o(),Nq:o(),vj:o(),hu:o(),vh:o()};$.extend(this.Wa,b);this.Sb={};this.Ih=l;this.tr=[];this.at=0;Rt(this,a?a.id:l);this.Bf=!1;var c=this;$(document).ajaxSuccess(function(){c.uf||c.Bf&&c.Yf()});setInterval(function(){(c.rg()||c.$d&&c.sg)&&el(c.$d)},50);$(document).ajaxError(function(){c.sg=!1});$(document).ajaxSuccess(function(){c.sg=!0})}q=Qt.prototype; q.sh=function(){$(document).trigger("query.status.update",[this.status()])};q.connected=function(){return this.Sc!=l&&this.Ih==l};q.Os=function(){return this.Sc!=l};q.status=function(){var a=l;F(this.Sb,function(b,c){if(c.status)return a=c.status,!1});return a};q.rg=function(){var a=this.Sb["Connecting to document update server"];return a!=l&&a.Pl==1};q.Fg=function(){if(!this.$d)this.$d=!0,this.sg=this.rg()};q.Ze=function(){if(this.$d)this.$d=!1}; q.Yf=function(){function a(){if(!b.uf){if(b.$d&&(c++,c%14400)){setTimeout(a,250);return}var d="/chats/get/"+b.Sc;d+=b.document.id!=l?"/"+encodeURIComponent(jk(b.document))+"/"+encodeURIComponent(b.at):"/NULL/NULL";var e=b.tr;b.tr=[];b.hi("Connecting to document update server",l,"POST",d,"NoSSLChange=true&Now="+encodeURIComponent((new Date).toUTCString())+"&Actions="+encodeURIComponent(nd(e)),function(c){if(!b.uf)if(c=="")b.Sc=l,b.Bf=!1,Rt(b,b.document.id),b.Yf();else{try{var d=gc(c)}catch(e){return!1}b.document.id== l&&lk(b.document,d.document_id);if(d.clipboard!=l)try{b.Wa.clipboardData(gc(d.clipboard))}catch(j){}if(d.preferences!=l)try{b.Wa.If(d.preferences)}catch(k){}if(d.level!=l)try{b.Wa.et(d.level)}catch(n){}if(d.trial!=l)try{b.Wa.Du(d.trial)}catch(m){}if(d.last_id!=l)b.at=d.last_id;if(d.messages!=l||d.viewers!=l||d.invitations!=l||d.role!=l)try{b.Wa.Nq({nf:d.messages,tf:d.viewers,Qh:d.invitations,Qa:d.role})}catch(p){}if(d.published!=l||d.public_segments!=l)try{b.Wa.vj({uq:d.published,cl:d.public_segments})}catch(s){}if(d.shared!= l)try{b.Wa.hu(d.shared)}catch(u){}if(d.actionHistoryLength>jk(b.document))try{b.Wa.vh({vh:d.changes,wg:d.saveHistory,Il:d.actionHistoryLength,Jj:d.savedActionHistoryLength})}catch(w){}a()}},l,l,55E3)}}this.Bf=!0;if(!this.rg()){var b=this;if(this.Sc==l)setTimeout(function(){b.Yf()},1E3);else{var c=0;Kd(a)}}}; q.hi=function(a,b,c,d,e,f,g,i,j){function k(){function b(){m.Ih=d;n++;m.Sb[a].Pl=n;var c=5;n>3&&(c=30);var e=!0;try{e=g(c,n)}catch(f){}e==!1?(delete m.Sb[a],m.sh(),i(n-1)):At(m.Sb[a],k,c*1E3)}$.ajax({type:c,url:d,data:e,timeout:j,success:function(c){var d=m.Sb[a];m.Ih=l;delete m.Sb[a];m.sh();f(c)==!1&&(m.Sb[a]=d,b())},error:b})}if(this.uf)return!0;a==l&&(a=Math.floor(Math.random()*1E8)+"_"+Math.floor(Math.random()*1E8)+"_"+Math.floor(Math.random()*1E8));var n=1,m=this;j==l&&(j=1E4+(e!=l?e.length: 0));f==l&&(f=o());g==l&&(g=fa(!0));i==l&&(i=o());if(this.Sb[a]!=l)return this.Sb[a].go(k),!1;this.Sb[a]=new zt(b);k();this.sh();return!0};function Rt(a,b){var c="/connections/create";b!=l&&(c+="/"+b);a.hi("Making initial connection to the server",l,"GET",c,l,function(b){a.Sc=b})};function St(){var a=this,b=y({title:"Document Language",children:[{R:"p",text:"Select a language to use for spell-checking this document."},this.options()]});this.dialog=new se(b,{modal:!0,$c:!0,hb:[{label:S("Save"),action:function(){a.done($("#language_dialog_select").val());a.close()}}]})} St.prototype.options=function(){var a={R:"select",id:"language_dialog_select",children:[{R:"option",value:"af",text:"Afrikaans"},{R:"option",value:"am",text:"Amharic"},{R:"option",value:"ar",text:"Arabic"},{R:"option",value:"bg",text:"Bulgarian"},{R:"option",value:"bn",text:"Bengali"},{R:"option",value:"br",text:"Breton"},{R:"option",value:"ca",text:"Catalan"},{R:"option",value:"cs",text:"Czech"},{R:"option",value:"cy",text:"Welsh"},{R:"option",value:"da",text:"Danish"},{R:"option",value:"de",text:"German"}, {R:"option",value:"el",text:"Greek"},{R:"option",value:"en",text:"English"},{R:"option",value:"eo",text:"Esperanto"},{R:"option",value:"es",text:"Spanish"},{R:"option",value:"et",text:"Estonian"},{R:"option",value:"eu-es",text:"Basque (Euskera)"},{R:"option",value:"fa",text:"Persian"},{R:"option",value:"fi",text:"Finnish"},{R:"option",value:"fo",text:"Faroese"},{R:"option",value:"fr",text:"French"},{R:"option",value:"ga",text:"Irish (Gaeilge)"},{R:"option",value:"gl-minimos",text:"Galician (minimos)"}, {R:"option",value:"gu",text:"Gujarati"},{R:"option",value:"hi",text:"Hindi"},{R:"option",value:"hr",text:"Croatian"},{R:"option",value:"hsb",text:"Upper Sorbian"},{R:"option",value:"hu",text:"Hungarian"},{R:"option",value:"hy",text:"Armenian"},{R:"option",value:"is",text:"Icelandic"},{R:"option",value:"it",text:"Italian"},{R:"option",value:"ku",text:"Kurdish"},{R:"option",value:"lt",text:"Lithuanian"},{R:"option",value:"lv",text:"Latvian"},{R:"option",value:"ml",text:"Malayalam"},{R:"option",value:"mr", text:"Marathi"},{R:"option",value:"nl",text:"Dutch"},{R:"option",value:"no",text:"Norwegian"},{R:"option",value:"nr",text:"Ndebele"},{R:"option",value:"ns",text:"Northern Sotho"},{R:"option",value:"or",text:"Oriya"},{R:"option",value:"pa",text:"Punjabi"},{R:"option",value:"pl",text:"Polish"},{R:"option",value:"pt-br",text:"Portuguese (Brazil)"},{R:"option",value:"pt-pt",text:"Portuguese (Europe)"},{R:"option",value:"ro",text:"Romanian"},{R:"option",value:"ru",text:"Russian"},{R:"option",value:"sk", text:"Slovak"},{R:"option",value:"sl",text:"Slovenian"},{R:"option",value:"ss",text:"Swazi"},{R:"option",value:"st",text:"Southern Sotho"},{R:"option",value:"sv",text:"Swedish"},{R:"option",value:"ta",text:"Tamil"},{R:"option",value:"te",text:"Teluga"},{R:"option",value:"tl",text:"Tagalog"},{R:"option",value:"tn",text:"Tswana"},{R:"option",value:"ts",text:"Tsonga"},{R:"option",value:"uk",text:"Ukrainian"},{R:"option",value:"uz",text:"Uzbek"},{R:"option",value:"xh",text:"Xhosa"},{R:"option",value:"zu", text:"Zulu"}]};a.children.sort(function(a,c){return a.textc.text?1:0});a.children.unshift({R:"option",value:"none",text:"No spell checking"});return a};St.prototype.show=function(a,b){$("#language_dialog_select").val(a);this.done=b;this.dialog.open()};St.prototype.close=function(){this.done=l;this.dialog.close()};function Tt(){this.fu("-30 day","now");this.El=[]}q=Tt.prototype;q.gw=function(a,b){b==l&&(b=RegExp("^"+a));this.El.push({url:a,filter:b})};q.bp=function(a){for(var b=0;b0&&c.document.lg>=c.da.Level.document_objects&&(a.Action=="CreateLine"||a.Action=="CreateBlock")?($(document).triggerHandler("complexityExceeded"),!1):!0});var d=!1;setInterval(function(){var a=c.Id();a!=d&&(J.set("client.readOnly",a),d=a)},50);J.set("client.readOnly",!1);Et(function(){if(kk(c.document)&& (c.lh(),!c.Fr))return S("exit.prompt.unsaved")});Xd&&$("*").live("selectstart dragstart",function(){if($(this).css("user-select")=="none")return!1});J.clear("client.loadPlugin");J("client.loadPlugin",function(a){c.Gf(a[0],a[1],a[2])});J.clear("client.activatePlugin");J("client.activatePlugin",function(a){c.Mj(a)});J.clear("client.deactivatePlugin");J("client.deactivatePlugin",function(a){c.Ko(a)});J("user.promptRegister",function(){c.tj()});J("default.undo",function(){c.document.gr()});J("default.redo", function(){c.document.Bq()});J("default.facebook",r(this.Nv,this));J("default.twitter",r(this.Nx,this));J("default.saveAs",r(this.sx,this));J("default.promptPreferences",r(this.kx,this));J("default.promptLanguage",r(this.jx,this));J("default.print",function(){c.print("PDF",l,!1,l)});J("default.download",function(){c.zb()?c.Oe():c.print()});J("default.close",function(){Jp()?J.set("default.returnToApp"):window.close()});J("default.returnToApp",function(){window.location.href=mt({documentId:c.document.id}); $(".offlineonly").remove()});J("default.forums",function(){window.open("/forums")});J("default.tutorials",function(){window.open("/pages/tutorials/new_document")});J("default.benchmark",function(){Zs(c)});J("default.undo.disabled",function(a){a(!c.document.Jr())});J("default.redo.disabled",function(a){a(!c.document.Ir())});J.set("client.isDemo",c.zb());bt.change(function(){J.set("client.isDemo",c.zb())});J("document.id",function(a){if(window.fontUrl!="/fonts/user/"+a+"/")window.fontUrl="/fonts/user/"+ a+"/",$.ajax({type:"GET",url:window.fontUrl+"all",success:function(a){eval(a)}})});J("document.rename",function(){Yt(c,function(a){c.document.ba(new N(M,{id:l,Property:"Title",Value:a}))})});J("document.property.title",function(a){window.document.title=a+": LucidChart"});J("client.getDocument",function(a){a&&a(c.document)})}Ca(Vt,Vs);q=Vt.prototype;q.Hk=function(){return fl()}; function tq(a){var b=!1;a.da&&a.da.Level.restricted_plugins.length>0&&A(a.document.Ob,function(c){if(c.match(RegExp(a.da.Level.restricted_plugins)))return b=!0,!1});return b}function uq(a){if(a.da&&a.da.Level.restricted_plugins.length>0){var b=[];F(a.document.Ol,function(c){c.match(RegExp(a.da.Level.restricted_plugins))&&b.push(c)});A(b,function(b){a.document.ba(new N(Bg,{URL:b}),!0)})}} q.Xm=function(a){for(var b=a.Jj-jk(this.document);b>0;)b-=a.wg[0].Count,a.wg.splice(0,1);for(b=0;b0&&J.set("chat.append",wq(d.nf));if(d.tf!=l)b=d.tf;d.tf=b;if(d.Qh!=l)c=d.Qh;d.Qh=c;var e=[];if(d.tf!=l&&d.tf.length!=l){for(var f= 0;fb?(a.Va.Fg(),e||(e=Tk("Updates disconnected due to inactivity. Move your mouse cursor to reconnect.",31536E6))):(a.Va.Ze(),e&&(e(),e=l))},500);$(document).bind("keydown mousemove mousedown", function(){d=(new Date).getTime();e&&(e(),e=l);a.Va.Ze()});$(window).focus(function(){d=(new Date).getTime();a.Va.Ze();e&&(e(),e=l)})}}q.Vm=function(a){return"length:"+vq(a).length};function Xt(a){a.py=!1;var b=new dn(function(){a.Jd||!a.document.Ad&&!a.document.Vs&&a.save(!0)},10);a.Ql=b;$(document).bind("documentPostAction",function(){b.queue()});setInterval(function(){kk(a.document)&&b.queue()},100)}q.yi=function(a,b){this.ci[a]=b}; q.Gf=function(a,b,c,d){function e(e){f.yi(a,e);f.Ob[a]=new $s(f,a,b,c,e);d&&d()}if(this.Ob[a])d&&d();else{var f=this;this.ci[a]?e(this.ci[a]):$.ajax({async:!1,cache:!0,url:a,dataType:"text",success:e})}};q.Mj=function(a){this.Ob[a].Nj==!1&&this.Ob[a].Ze();this.Ob[a].Nj=!0;J.set("plugin.activated")};q.Ko=function(a){this.Ob[a].Nj==!0&&this.Ob[a].Fg();this.Ob[a].Nj=!1;J.set("plugin.deactivated")}; q.print=function(a,b,c,d){var e=this,f={};if(this.zb())this.Oe();else if($("#PDFForm").size()==0&&($("body").append('
'),Xd&&$("#PDFForm").attr("target","_blank")),a=="vdx")$("#PDFForm").attr("action","/documents/exportvdx/"+this.document.id),$("#PDFPages").val(nd(f)),$("#PDFTitle").val(this.document.q.get("Title")), $("#PDFForm").submit();else{var g=l;b in this.document.V&&(g=this.document.V[b]);f=this.document.yc(g);b=0;this.da&&(b=this.da.id);if(this.document.Wr)b=this.document.Wr;var i="/documents/pdf/"+b;a!=l&&(i+="/"+a,c?Sk(this.K.viewport,function(a){d==l&&(d=e.K.viewport.V[0].C.q.get("DPI")*e.K.viewport.scale);i+="/"+d;i+="/"+a.x+"/"+a.y+"/"+a.w+"/"+a.h;$("#PDFForm").attr("action",i);$("#PDFPages").val(nd(f));$("#PDFTitle").val(e.document.q.get("Title"));$("#PDFForm").submit()}):(d==l&&(d=this.K.viewport.V[0].C.q.get("DPI")* this.K.viewport.scale),i+="/"+d,$("#PDFForm").attr("action",i),$("#PDFPages").val(nd(f)),$("#PDFTitle").val(e.document.q.get("Title")),$("#PDFForm").submit()))}}; q.vj=function(a,b,c,d,e){var f=this;if(this.document.id==l)L(S("alert.publish.unsaved"));else{var g="",i="",j=e?e:function(a){a=gc(a);a.success||L(a.error)},k="";if(a!=l){if(a=="web")g="/documents/publish",i="data[Document][id]="+encodeURIComponent(f.document.id)+"&data[Document][published]=1",k="Saving published status";else switch(d==l&&!c&&(d=Math.round(this.K.viewport.V[0].C.q.get("DPI")*this.K.viewport.scale)),g="/publicSegments/add",a){case "pdf":i="data[PublicSegment][document_id]="+encodeURIComponent(f.document.id)+ (b==l?"":"&data[PublicSegment][page]="+encodeURIComponent(b))+"&data[PublicSegment][format]=pdf";k="Saving PDF published status";break;case "png":case "jpeg":i="data[PublicSegment][document_id]="+encodeURIComponent(f.document.id)+"&data[PublicSegment][page]="+encodeURIComponent(b)+"&data[PublicSegment][format]="+encodeURIComponent(a)+(c?"":"&data[PublicSegment][dpi]="+encodeURIComponent(d+"")),k="Publishing page"}c?Sk(this.K.viewport,function(a){d==l&&(d=Math.round(f.K.viewport.V[0].C.q.get("DPI")* f.K.viewport.scale));i+="&data[PublicSegment][dpi]="+encodeURIComponent(d+"")+"&data[PublicSegment][x]="+encodeURIComponent(a.x)+"&data[PublicSegment][y]="+encodeURIComponent(a.y)+"&data[PublicSegment][w]="+encodeURIComponent(a.w)+"&data[PublicSegment][h]="+encodeURIComponent(a.h);$.ajax({type:"POST",url:g,data:i,success:j,status:k})}):$.ajax({type:"POST",url:g,data:i,success:j,status:k})}}}; q.Fs=function(a){if(!this.db.Sn({id:a}))return!1;var b=this;this.db.ip(a,function(c){if(c&&c.document_id==l){b.jj({Change:[{changes:nd(c.changes)}]},!0);var d=setInterval(function(){b.db.Eh({id:a});clearInterval(d)},5E3)}});return!0}; q.wt=function(a,b){var c=this;this.Qa="owner";J.set("client.roleChanged",this.Qa);var d="document_id="+a;d+=this.da.id?"&user_id="+this.da.id:"";this.db.Zb(a,function(e){if(e)c.jj(e,b);else if(a=="blank-publish"||a=="blank-publish-wp"){var e=a=="blank-publish-wp",f=[{Action:"LoadPlugin",URL:"/js/plugins/publish/default.js"},{Action:"SetProperty",id:l,Property:"Title",Value:"Test Publish Doc"},{Action:"SetProperty",id:l,Property:"Gradient",Value:0},{Action:"SetProperty",id:l,Property:"WPMode",Value:e? 1:0},{Action:"SetProperty",id:l,Property:"ParagraphStyles",Value:[{align:"left",bold:!0,color:"000000",qy:0,font:"Liberation Serif",Hy:0,Iy:0,Jy:1,Ky:0,ic:!0,kb:!1,marginBottom:0,marginTop:0,size:14,nu:1.4,strike:!1,ez:Array[0],type:"p",Qf:!0}]},{Action:"CreatePage",Properties:{Title:"Untitled Page",Order:1},id:"_4"}];e||f.push({Action:"CreateBlock",id:"_5",Class:"PublishTextBlock",Page:"_4",Properties:{BoundingBox:{x:50,y:50,w:500,h:500},Text:'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.', FillColor:"#ffffff00",LineColor:l,LineWidth:l}});c.jj({Change:[{changes:nd(f)}]})}else $.ajax({type:"GET",url:"/documents/listDocs/1/1",data:d,cache:!1,success:function(d){d=md(d);a=="vdx"&&pk(c.document);c.jj(d[0],b)}})})}; q.jj=function(a,b){var c=this;A(a.Change,function(a){for(var a=gc(a.changes),b=0;bThis document is not available for offline editing.

\n\t\t\t\t\t\t

The next time you come back online, this document will be downloaded\n\t\t\t\t\t\tand accessible for offline use.

")},timeout:18E4}))})};function rk(a,b){A(b,function(b){xt(a.document,new vt(b.action_history_length,b.User.first_name+" "+b.User.last_name,b.created,b.change_count))})} q.load=function(a,b,c,d,e){var f=this;b==l&&(b=0);if(!this.Qa||this.Qa!=a.role)this.Qa=a.role,$(window.document).triggerHandler("clientRoleChanged");rk(this,a.Change);this.document.Wr=a.Document.creator_id;this.document.Lm=a.Document.published==1;this.document.Zs=a.Document.shared==1;this.document.az=a.PublicSegment;var g="document_id="+a.Document.id;g+=f.da?"&user_id="+f.da.id:"";this.document.ag(c,a.Document.state,function(a){$.ajax({type:"GET",url:"/documents/listDocs/1/1",data:g,cache:!1,success:function(b){b= md(b);a(b[0].Change)}})},a.Document.action_history_length,a.Document.id,a.Document.next_connection_id,a.Document.creator_id,o(),function(){f.document.ee(function(){this.Af(function(){var a=this.q.get("Members");hc(a)==0&&f.document.ba(new N("RmGr",{id:this.id}))})});f.document.ee(function(){if(yj(this,0)<-1E12||this.Kd("ZOrder",0)>1E12){var a=0;uj(this,function(){f.document.ba(new N(M,{id:this.id,Property:"ZOrder",Value:a--}))})}});f.Qa=="viewer"&&f.da==l||setTimeout(function(){Zt(f);f.Va&&f.Va.Yf()}, 1);setInterval(function(){window.document.title=="stress"&&f.K.viewport.V[0].C.df(function(){if(Math.random()*10<0.5){var a=this.ja();a.x+=(Math.floor(Math.random()*5)-2)*20;a.y+=(Math.floor(Math.random()*5)-2)*20;f.document.ba(new N(M,{id:this.id,Property:"BoundingBox",Value:a}))}})},250)});e&&($(window.document).triggerHandler("newDocumentLoaded"),J.set("document.loaded.new",this.document))}; q.tx=function(){try{var a=nd(tt(this.document)),b=nd(this.document.yc()),c=nd(this.document.Lg()),d="data[Change][0][md5]="+encodeURIComponent(this.Vm(a))+"&data[Document][title]="+encodeURIComponent(this.document.q.get("Title"))+"&data[Change][0][version]=2&data[Change][0][user_agent]="+encodeURIComponent(navigator.userAgent)+"&data[Document][pdfdata]="+encodeURIComponent(b)+"&data[Document][state]="+encodeURIComponent(c)+"&data[Change][0][changes]="+encodeURIComponent(a)+"&data[LoadedActionHistoryLength]=0"; if(this.document.attributes)for(a=0;ac.pm+3E5)$(document).triggerHandler("SaveNotWorking"),c.em=!0,L(S("growl.save.notworking"))}var c=this;if(this.Jd)this.Ql.queue();else if(this.document.Ad&&this.document.Pi(),kk(this.document))if(this.da&&(!this.Va||!this.Va.Os()))b(),setTimeout(function(){c.save(a)},100);else{try{this.Jd=!0;$(document).triggerHandler("SaveStart");var d=this.document.gf(),e=st(this.document),f=d-jk(this.document),g,i;this.document.fj? (i=nd(this.document.yc(l,hk(this.document))),g=nd(this.document.Lg(hk(this.document)))):(i=nd(this.document.yc()),g=nd(this.document.Lg()));var j="data[Change][0][md5]="+encodeURIComponent(this.Vm(e))+"&data[Document][title]="+encodeURIComponent(this.document.q.get("Title"))+"&data[Change][0][version]=2&data[Change][0][user_agent]="+encodeURIComponent(navigator.userAgent)+"&data[Document][pdfdata]="+encodeURIComponent(i)+"&data[Document][state]="+encodeURIComponent(g)+"&data[Change][0][changes]="+ encodeURIComponent(e)+"&data[LoadedActionHistoryLength]="+encodeURIComponent(String(jk(this.document)));if(this.document.attributes)for(e=0;e0?setTimeout(function(){c.Jd=!1},k):c.Jd=!1},status:a?l:"Saving"})}}; q.Hn=function(a){var b=this;this.document.id==l?(this.save(),setTimeout(r(this.Hn,this),100)):this.Qa!="owner"?L(S("alert.onlyowner.share")):xe("/documents/share/"+encodeURIComponent(this.document.id),!1,function(){a&&a();xe("/documents/shareSocial/"+encodeURIComponent(b.document.id))})};function Ll(a){a.Qa!="owner"?L(S("alert.onlyowner.unshare")):$.ajax({type:"get",url:"/documents/unshare/"+encodeURIComponent(a.document.id),status:"Unsharing document"})} function Yt(a,b){ve(S("prompt.title.new"),a.document.q.get("Title"),function(a){b&&b(a)})}function hp(a,b,c,d){c={data:{Document:{title:c}}};b==a.document.gf()&&(c.data.Actions=nd(tt(a.document)));$.ajax({type:"POST",url:"/documents/fork/"+encodeURIComponent(String(a.document.id))+"/"+encodeURIComponent(String(b)),data:c,success:function(a){try{var b=gc(a)}catch(c){L(a);return}b.success?window.location.href="/documents/edit/"+b.id:d&&d()},error:function(){d&&d()},complete:o()})} q.sx=function(){function a(){Yt(b,function(a){hp(b,b.document.gf(),a,function(){L(S("menu.saveas.error"))})})}var b=this;this.zb()?this.Oe(a):a()};q.Id=function(){return this.Qa=="viewer"||this.K&&(this.K.yh()||this.K.Lj)||tq(this)?!0:!1};q.tq=function(a){$.cookie("CAKEPHP",l);this.$y=!0;xe("/users/login?document_id="+this.document.id+(bt.val("demo")?"&demo=1":""),!1,a)}; q.tj=function(a,b){$.cookie("CAKEPHP",l);xe("/users/registerLevel?Short=on&document_id="+this.document.id+(b?"&msg="+encodeURIComponent(b):""),!1,a,function(){ye.dialog.J.html().indexOf("You are currently using")>=0&&(ye.dialog.close(),a&&a())})};q.kx=function(){this.da==l||this.zb()?this.Oe():xe("/users/preferences",!1,o(),function(){ye.dialog.title.empty().append(y("Preferences"))})}; q.jx=function(){var a=this,b=this.document.q.get("Language");if(!this.$s)this.$s=new St;this.$s.show(b,function(b){a.document.ba(new N(M,{id:l,Property:"Language",Value:b}));$(document).triggerHandler("lucid.spellCheck.language",[b])})}; q.Nv=function(){if(this.document.id==l)L(S("alert.facebook.unsaved"));else{var a="http://"+document.domain+"/documents/view/"+this.document.id+"/0",b=this.document.q.get("Title")+": LucidChart",a="http://www.facebook.com/sharer.php?u="+encodeURIComponent(a)+"&t="+encodeURIComponent(b);this.document.Lm?window.open(a):this.Qa=="owner"?window.open("/documents/publish?data[Document][id]="+encodeURIComponent(this.document.id)+"&data[Document][published]=1&redirect="+encodeURIComponent(a)):L(S("alert.facebook.unowned"))}}; q.Nx=function(){this.document.id==l?L(S("alert.twitter.unsaved")):(this.document.q.get("Title"),!this.document.Lm&&this.Qa!="owner"?L(S("alert.twitter.unowned")):window.open("/documents/twitter/"+this.document.id))};q.zb=function(){return!!bt.val("demo")}; q.lh=function(){var a=this,b=this.document.gf(),c=jk(this.document);if(this.Qc.base!=c||this.Qc.base+this.Qc.changes.length!=b||this.Qc.document_id!=this.document.id)this.Qc.document_id=this.document.id,this.Qc.base=c,this.Qc.changes=[],ek(this.document,function(b){a.Qc.changes.push(b)},c),this.document.id==l?(a.Qc.pdfdata=this.document.yc(),a.Qc.title=this.document.q.get("Title")):delete a.Qc.pdfdata,this.Fr=!1,this.db.lh(this.Qc,function(){a.Fr=!a.db.mh})}; function Wt(a){a.Qc.document_id!=l&&a.db.tm(a.Qc.document_id,function(b){A(b,function(b){a.db.Sn(b)&&!(b.base>jk(a.document))&&(A(b.changes,function(b){b.IsRedo=!0;a.document.ba(b)}),a.db.Eh(b))})})} q.execute=function(a,b){function c(){var a=d.K.viewport.V[0],b,c;for(c in a.Ra)b=a.Ra[c];return b}var d=this;switch(a){case "page.block.last.imageData":var e;return c().ya.context.getImageData(b.coords.x,b.coords.y,1,1);case "page.block.last.realInput.get":e=c();var f,g;for(g in e.la)f=e.la[g];return f.aa.Mc;case "page.block.last.property.get":return c().C.q.get(b.property);case "page.block.property.get":return d.K.viewport.V[0].C.Jb(b.id).q.get(b.property);case "page.block.getBBExtended":return(f= d.K.viewport.V[0].C.Jb(b.id).q.get("BoundingBox"))?{x:f.x,y:f.y,l:f.x,t:f.y,r:f.x+f.w,b:f.y+f.h,w:f.w,h:f.h,midx:f.x+f.w/2,midy:f.y+f.h/2}:l;case "page.block.last.property.set":return e=c(),f=d.K.viewport.V[0],f.Yc(e.C.id),J.set("default.property."+b.property,b.value),f.kh(e.C.id),!0;case "document.property.set":return J.set("default.docProperty."+b.property,b.value),!0;case "block.add":var i=gj[b.className];if(i==l)return!1;g=jj(b.className,"DragBlock",this.document);f=this.K.viewport.V[0];g.Qe(f.C); g.q.set("LineWidth",this.document.q.get("DefaultBlockLineWidth"));g.q.set("LineColor",this.document.q.get("DefaultBlockLineColor"));g.q.set("FillColor",ck(this.document));g.q.set("Font",this.document.q.get("DefaultFont"));g.q.set("BoundingBox",new H(0,0,i.bd.w,i.bd.h));for(e in b.properties)g.q.set(e,b.properties[e]);this.document.Kl(g,!0);e=g.q.Nb();e.ZOrder=f.C.Kd("ZOrder",0)+1;f=new N("CreateBlock",{Class:g.className,Properties:e,Page:f.C.id});e=this.document.ba(f);b.state&&e&&(g=Rj(this.K.viewport), g.name=="diagramming"&&g.Ma&&g.Ma.pa&&(i=g.Ma.q.get("Members"),i[f.id]=!0,this.document.ba(new N(M,{id:g.Ma.id,Property:"Members",Value:i}))));return e?f.id:!1;case "listen.set":return J.set(b.key,b.val||l),!0}return l}; q.Oe=function(a){function b(){$.ajax({type:"POST",url:"/users/userSession",data:"",timeout:1E4,success:function(a){try{a==0||a=="0"?window.localStorage.user&&delete window.localStorage.user:(c.da=md(a).User,window.localStorage.user=a)}catch(b){window.localStorage.user&&delete window.localStorage.user}}})}var c=this;qk(this.document,function(){window.localStorage.user==l?c.tj(function(){bt.remove("demo");b();nk(c.document);Zt(c);a?a():(c.save(),c.K.sc&&c.K.sc.hide(),c.K.Tn&&c.K.Tn(),setTimeout(function(){$("#load").fadeOut("fast")}, 500))}):(bt.remove("demo"),bt.remove("save"),b(),nk(c.document),Zt(c),c.save(),c.K.sc&&c.K.sc.hide(),c.K.Tn&&c.K.Tn(),setTimeout(function(){$("#load").fadeOut("fast")},500))})};t("lucid.EditorClient",Vt);t("lucid.EditorClient.checkUserAgent",function(){return Yd||Zd?(window.location.href="/pages/old_ie",!1):!0});Vt.prototype.isOnline=Vt.prototype.Hk;Vt.prototype.isReadOnly=Vt.prototype.Id;Vt.prototype.isDemo=Vt.prototype.zb;Vt.prototype.loadPlugin=Vt.prototype.Gf;Vt.prototype.cachePlugin=Vt.prototype.yi; Vt.prototype.newDocument=Vt.prototype.jj;Vt.prototype.load=Vt.prototype.load;Vt.prototype.save=Vt.prototype.save;Vt.prototype.promptLogin=Vt.prototype.tq;Vt.prototype.promptRegister=Vt.prototype.tj;Vt.prototype.activatePlugin=Vt.prototype.Mj;Vt.prototype.deactivatePlugin=Vt.prototype.Ko;Vt.prototype.loadLocal=Vt.prototype.ht;Vt.prototype.newLocal=Vt.prototype.wt;Vt.prototype.fromLocalBranch=Vt.prototype.Fs;Vt.prototype.saveEmergencyCopy=Vt.prototype.tx;Vt.prototype.execute=Vt.prototype.execute;function $t(a){var b=this;Vt.call(this,a,!1);this.gui=this.K=new qq(this);$(document).bind("complexityExceeded",function(){au(b)});J("default.debug.showLog",function(){ve("Which log?","render",function(a){V.show(a)})});J("default.save",function(){b.zb()?b.Oe():b.save()});J("default.debug.loadPlugin",function(){ve("Load Plugin","/js/plugins/v2/",function(a){var d=a.split("/"),d=d.pop().split(".")[0];b.document.ba(new N(zg,{URL:a,Name:d,Description:"Manually Loaded Plugin"}))})});this.Gf("/js/plugins/v2/default.js", "Default","Default Tool Set");this.Mj("/js/plugins/v2/default.js");this.Gf("/js/plugins/v2/imagesearch.js","Image Search","Default Image Search");this.Mj("/js/plugins/v2/imagesearch.js")}Ca($t,Vt); function au(a){if($("#complexity_upgrade_check:visible").size()==0){var b=a.da&&a.da.TrialEligible?S("alert.complexity.upgrade"):S("alert.restriction.upgrade.paid");L('

'+S("alert.complexity.reached.prefix")+" "+a.da.Level.document_objects+" "+S("alert.complexity.reached.suffix")+"

"+S("alert.feedback.send.p")+"

"+b);$("#complexity_feedback").click(function(){J.set("default.sendFeedback")});$("#complexity_upgrade").click(function(){xe("/users/level?Short=on")})}} function Zp(a){if($("#complexity_upgrade_check:visible").size()==0){var b=a.da.TrialEligible?S("alert.complexity.upgrade"):S("alert.restriction.upgrade.paid");L('

'+S("alert.complexity.desc.prefix")+" "+a.da.Level.document_objects+" "+S("alert.complexity.desc.suffix")+"

"+S("alert.feedback.send.p")+"

"+b);$("#complexity_feedback").click(function(){J.set("default.sendFeedback")});$("#complexity_upgrade").click(function(){xe("/users/level?Short=on")})}} $t.prototype.load=function(a,b,c,d,e){var f=this;J("document.loaded",function(){f.zb()&&bt.val("save")&&f.Oe();f.zb()&&!Ya&&f.K.sc.set(y({children:[{Q:"share_button left",children:[{Q:"button",text:"Sign Up Free",click:function(){f.Oe()}}]},{Q:"left",css:{padding:"10px"},children:[{Q:"share-link",text:S("viewport.banner.share")},{R:"input",type:"text",css:{width:"556px"},value:window.location.href,create:function(a){a.click(function(){$(this).select()})}}]},{Q:"clear"}]}));d&&d()});Vt.prototype.load.call(f, a,b,c,d,e)};t("lucid.ChartClient",$t);$t.prototype.isOnline=$t.prototype.Hk;$t.prototype.isDemo=$t.prototype.zb;$t.prototype.loadPlugin=$t.prototype.Gf;$t.prototype.cachePlugin=$t.prototype.yi;$t.prototype.newDocument=$t.prototype.jj;$t.prototype.load=$t.prototype.load;$t.prototype.save=$t.prototype.save;$t.prototype.saveFromDemo=$t.prototype.Oe;$t.prototype.promptLogin=$t.prototype.tq;$t.prototype.promptRegister=$t.prototype.tj;$t.prototype.activatePlugin=$t.prototype.Mj; $t.prototype.deactivatePlugin=$t.prototype.Ko;$t.prototype.loadLocal=$t.prototype.ht;$t.prototype.newLocal=$t.prototype.wt;$t.prototype.fromLocalBranch=$t.prototype.Fs;