function Visitor(e,t){if(!e)throw"Visitor requires Adobe Marketing Cloud Org ID";var n=this;n.version="1.3";var r=window;r.s_c_in||(r.s_c_il=[],r.s_c_in=0),n._c="Visitor",n._il=r.s_c_il,n._in=r.s_c_in,n._il[n._in]=n,r.s_c_in++;var i=r.document,s=r.P;s||(s=null);var o=r.Q;o||(o=!0);var u=r.O;u||(u=!1),n.D=function(e){var t=0,n,r;if(e)for(n=0;n<e.length;n++)r=e.charCodeAt(n),t=(t<<5)-t+r,t&=t;return t},n.n=function(e){var t="0123456789",n="",r="",i,s=8,o=10,u=10;if(1==e){t+="ABCDEF";for(e=0;16>e;e++
)i=Math.floor(Math.random()*s),n+=t.substring(i,i+1),i=Math.floor(Math.random()*s),r+=t.substring(i,i+1),s=16;return n+"-"+r}for(e=0;19>e;e++)i=Math.floor(Math.random()*o),n+=t.substring(i,i+1),o=0==e&&9==i?3:10,i=Math.floor(Math.random()*u),r+=t.substring(i,i+1),u=0==e&&9==i?3:10;return n+r},n.J=function(){var e;!e&&r.location&&(e=r.location.hostname);if(e)if(/^[0-9.]+$/.test(e))e="";else{var t=e.split("."),n=t.length-1,i=n-1;1<n&&2>=t[n].length&&0>",ac,ad,ae,af,ag,ai,al,am,an,ao,aq,ar,as,at,au,aw,ax,az,ba,bb,be,bf,bg,bh,bi,bj,bm,bo,br,bs,bt,bv,bw,by,bz,ca,cc,cd,cf,cg,ch,ci,cl,cm,cn,co,cr,cu,cv,cw,cx,cz,de,dj,dk,dm,do,dz,ec,ee,eg,es,eu,fi,fm,fo,fr,ga,gb,gd,ge,gf,gg,gh,gi,gl,gm,gn,gp,gq,gr,gs,gt,gw,gy,hk,hm,hn,hr,ht,hu,id,ie,im,in,io,iq,ir,is,it,je,jo,jp,kg,ki,km,kn,kp,kr,ky,kz,la,lb,lc,li,lk,lr,ls,lt,lu,lv,ly,ma,mc,md,me,mg,mh,mk,ml,mn,mo,mp,mq,mr,ms,mt,mu,mv,mw,mx,my,na,nc,ne,nf,ng,nl,no,nr,nu,om,pa,pe,pf,ph,pk,pl,pm,pn,pr,ps,pt,pw,py,qa,re,ro,rs,ru,rw,sa,sb,sc,sd,se,sg,sh,si,sj,sk,sl,sm,sn,so,sr,st,su,sv,sx,sy,sz,tc,td,tf,tg,th,tj,tk,tl,tm,tn,to,tp,tt,tv,tw,tz,ua,ug,us,uy,uz,va,vc,ve,vg,vi,vn,vu,wf,ws,yt,"
.indexOf(","+t[n]+",")&&i--;if(0<i)for(e="";n>=i;)e=t[n]+(e?".":"")+e,n--}return e},n.cookieRead=function(e){var e=encodeURIComponent(e),t=(";"+i.cookie).split(" ").join(";"),n=t.indexOf(";"+e+"="),r=0>n?n:t.indexOf(";",n+1);return 0>n?"":decodeURIComponent(t.substring(n+2+e.length,0>r?t.length:r))},n.cookieWrite=function(e,t,r){var s=n.cookieLifetime,o,t=""+t,s=s?(""+s).toUpperCase():"";return r&&"SESSION"!=s&&"NONE"!=s?(o=""!=t?parseInt(s?s:0):-60)?(r=new Date,r.setTime(r.getTime()+1e3*o)):1==r&&
(r=new Date,o=r.getYear(),r.setYear(o+2+(1900>o?1900:0))):r=0,e&&"NONE"!=s?(i.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+"; path=/;"+(r?" expires="+r.toGMTString()+";":"")+(n.m?" domain="+n.m+";":""),n.cookieRead(e)==t):0},n.d=s,n.z=function(e,t){try{"function"==typeof e?e.apply(r,t):e[1].apply(e[0],t)}catch(n){}},n.M=function(e,t){t&&(n.d==s&&(n.d={}),void 0==n.d[e]&&(n.d[e]=[]),n.d[e].push(t))},n.l=function(e,t){if(n.d!=s){var r=n.d[e];if(r)for(;0<r.length;)n.z(r.shift(),t)}},n.h=s,
n.K=function(e,t,r){!t&&r&&r();var o=i.getElementsByTagName("HEAD")[0],u=i.createElement("SCRIPT");u.type="text/javascript",u.setAttribute("async","async"),u.src=t,o.firstChild?o.insertBefore(u,o.firstChild):o.appendChild(u),r&&(n.h==s&&(n.h={}),n.h[e]=setTimeout(r,n.loadTimeout))},n.I=function(e){n.h!=s&&n.h[e]&&(clearTimeout(n.h[e]),n.h[e]=0)},n.F=u,n.G=u,n.isAllowed=function(){return!n.F&&(n.F=o,n.cookieRead(n.cookieName)||n.cookieWrite(n.cookieName,"T",1))&&(n.G=o),n.G},n.a=s,n.c=s;var a=n.W;
a||(a="MC");var f=n.Y;f||(f="MCMID");var l=n.X;l||(l="MCCIDH");var c=n.U;c||(c="A");var h=n.R;h||(h="MCAID");var p=n.V;p||(p="AAM");var d=n.T;d||(d="MCAAMLH");var v=n.S;v||(v="MCAAMB");var m=n.Z;m||(m="NONE"),n.u=0,n.C=function(){if(!n.u){var e=n.version;n.customerIDMappingServer&&(e+="|"+n.customerIDMappingServer),n.customerIDMappingServerSecure&&(e+="|"+n.customerIDMappingServerSecure),n.audienceManagerServer&&(e+="|"+n.audienceManagerServer),n.audienceManagerServerSecure&&(e+="|"+n.audienceManagerServerSecure
);if(n.audienceManagerCustomerIDDPIDs)for(var t in n.audienceManagerCustomerIDDPIDs)!Object.prototype[t]&&n.audienceManagerCustomerIDDPIDs[t]&&(e+=t+"="+n.audienceManagerCustomerIDDPIDs[t]);n.u=n.D(e)}return n.u},n.H=u,n.j=function(){if(!n.H){n.H=o;var e=n.C(),t=u,r=n.cookieRead(n.cookieName),i,a,f,c=new Date;n.a==s&&(n.a={});if(r&&"T"!=r){r=r.split("|"),r[0].match(/^[\-0-9]+$/)&&(parseInt(r[0])!=e&&(t=o),r.shift()),1==r.length%2&&r.pop();for(e=0;e<r.length;e+=2)i=r[e].split("-"),a=i[0],f=r[e+1],
i=1<i.length?parseInt(i[1]):0,t&&(a==l&&(f=""),0<i&&(i=c.getTime()/1e3-60)),a&&f&&(n.g(a,f,1),0<i&&(n.a["expire"+a]=i,c.getTime()>=1e3*i&&(n.c||(n.c={}),n.c[a]=o)))}!n.b(h)&&(r=n.cookieRead("s_vi"))&&(r=r.split("|"),1<r.length&&0<=r[0].indexOf("v1")&&(f=r[1],e=f.indexOf("["),0<=e&&(f=f.substring(0,e)),f&&f.match(/^[0-9a-fA-F\-]+$/)&&n.g(h,f)))}},n.N=function(){var e=n.C(),t,r;for(t in n.a)!Object.prototype[t]&&n.a[t]&&"expire"!=t.substring(0,6)&&(r=n.a[t],e+=(e?"|":"")+t+(n.a["expire"+t]?"-"+n.a["expire"+
t]:"")+"|"+r);n.cookieWrite(n.cookieName,e,1)},n.b=function(e,t){return n.a!=s&&(t||!n.c||!n.c[e])?n.a[e]:s},n.g=function(e,t,r){n.a==s&&(n.a={}),n.a[e]=t,r||n.N()},n.t=function(e,t){var r=new Date;r.setTime(r.getTime()+1e3*t),n.a==s&&(n.a={}),n.a["expire"+e]=Math.floor(r.getTime()/1e3),0>t&&(n.c||(n.c={}),n.c[e]=o)},n.B=function(e){return e&&("object"==typeof e&&(e=e.d_mid?e.d_mid:e.visitorID?e.visitorID:e.id?e.id:e.uuid?e.uuid:""+e),e&&(e=e.toUpperCase(),"NOTARGET"==e&&(e=m)),!e||e!=m&&!e.match
(/^[0-9a-fA-F\-]+$/))&&(e=""),e},n.i=function(e,t){n.I(e),n.f!=s&&(n.f[e]=u);if(e==a){var r=n.b(f);if(!r){r="object"==typeof t&&t.mid?t.mid:n.B(t);if(!r){if(n.q){n.getAnalyticsVisitorID(null,!1,!0);return}r=n.n()}n.g(f,r)}if(!r||r==m)r="";"object"==typeof t&&((t.d_region||t.dcs_region||t.d_blob||t.blob)&&n.i(p,t),n.q&&t.mid&&n.i(c,{id:t.id})),n.l(f,[r])}if(e==p&&"object"==typeof t){r=604800,void 0!=t.id_sync_ttl&&t.id_sync_ttl&&(r=parseInt(t.id_sync_ttl));var i=n.b(d);i||((i=t.d_region)||(i=t.dcs_region
),i&&(n.t(d,r),n.g(d,i))),i||(i=""),n.l(d,[i]),i=n.b(v);if(t.d_blob||t.blob)(i=t.d_blob)||(i=t.blob),n.t(v,r),n.g(v,i);i||(i=""),n.l(v,[i])}if(e==c){r=n.b(h),r||((r=n.B(t))||(r=m),n.g(h,r));if(!r||r==m)r="";n.l(h,[r])}},n.f=s,n.o=function(e,t,r,i){var u="",l;if(n.isAllowed()&&(n.j(),u=n.b(e),!u&&(e==f?l=a:e==d||e==v?l=p:e==h&&(l=c),l))){if(n.f==s||!n.f[l])n.f==s&&(n.f={}),n.f[l]=o,n.K(l,t,function(){if(!n.b(e)){var t="";e==f&&(t=n.n()),n.i(l,t)}});return n.M(e,r),""}return(e==f||e==h)&&u==m&&(u=""
,i=o),r&&i&&n.z(r,[u]),u},n._setMarketingCloudFields=function(e){n.j(),n.i(a,e)},n.setMarketingCloudVisitorID=function(e){n._setMarketingCloudFields(e)},n.q=u,n.getMarketingCloudVisitorID=function(e,t){return n.isAllowed()?(n.marketingCloudServer&&0>n.marketingCloudServer.indexOf(".demdex.net")&&(n.q=o),n.o(f,n.r("_setMarketingCloudFields"),e,t)):""},n._mapCustomerIDsDone=function(e){e&&"success"==e.status&&n.g(l,n.s)},n.L=function(){n._mapCustomerIDsDone({status:"success"})},n.e={},n.A=u,n.s="",
n.setCustomerIDs=function(e){n.e=e;if(n.isAllowed()){n.j();var e=n.b(l),t="",r,i;e||(e=0);for(r in n.e)i=n.e[r],!Object.prototype[r]&&i&&(t+=(t?"|":"")+r+"|"+i);n.s=n.D(t),n.s!=e&&(n.A=o,n.L())}},n.getCustomerIDs=function(){return n.e},n._setAnalyticsFields=function(e){n.j(),n.i(c,e)},n.setAnalyticsVisitorID=function(e){n._setAnalyticsFields(e)},n.getAnalyticsVisitorID=function(e,t,r){if(n.isAllowed()){var i="";r||(i=n.getMarketingCloudVisitorID(function(){n.getAnalyticsVisitorID(e,o)}));if(i||r)
{var s=r?n.marketingCloudServer:n.trackingServer,u="";return n.loadSSL&&(r?n.marketingCloudServerSecure&&(s=n.marketingCloudServerSecure):n.trackingServerSecure&&(s=n.trackingServerSecure)),s&&(u="http"+(n.loadSSL?"s":"")+"://"+s+"/id?callback=s_c_il%5B"+n._in+"%5D._set"+(r?"MarketingCloud":"Analytics")+"Fields&mcorgid="+encodeURIComponent(n.marketingCloudOrgID)+(i?"&mid="+i:"")),n.o(r?f:h,u,e,t)}}return""},n._setAudienceManagerFields=function(e){n.j(),n.i(p,e)},n.r=function(e){var t=n.audienceManagerServer
,r="",i=n.b(f),s=n.b(v,o),u="",a,l;n.loadSSL&&n.audienceManagerServerSecure&&(t=n.audienceManagerServerSecure);if(t){if(n.e&&n.audienceManagerCustomerIDDPIDs)for(a in n.e)Object.prototype[a]||(r=n.e[a],l=n.audienceManagerCustomerIDDPIDs[a],r&&l&&(u+=(u?"%01":"&d_cid=")+l+"%01"+encodeURIComponent(r)));e||(e="_setAudienceManagerFields"),r="http"+(n.loadSSL?"s":"")+"://"+t+"/id?d_rtbd=json&d_ver=2"+(!i&&n.q?"&d_verify=1":"")+"&d_orgid="+encodeURIComponent(n.marketingCloudOrgID)+(i?"&d_mid="+i:"")+(s?"&d_blob="+
encodeURIComponent(s):"")+u+"&d_cb=s_c_il%5B"+n._in+"%5D."+e}return r},n.getAudienceManagerLocationHint=function(e,t){return n.isAllowed()&&n.getMarketingCloudVisitorID(function(){n.getAudienceManagerLocationHint(e,o)})?n.o(d,n.r(),e,t):""},n.getAudienceManagerBlob=function(e,t){if(n.isAllowed()&&n.getMarketingCloudVisitorID(function(){n.getAudienceManagerBlob(e,o)})){var r=n.r();return n.A&&n.t(v,-1),n.o(v,r,e,t)}return""},n.k="",n.p={},n.v="",n.w={},n.getSupplementalDataID=function(e,t){!n.k&&!
t&&(n.k=n.n(1));var r=n.k;return n.v&&!n.w[e]?(r=n.v,n.w[e]=o):r&&(n.p[e]&&(n.v=n.k,n.w=n.p,n.k=r=t?"":n.n(1),n.p={}),r&&(n.p[e]=o)),r},0>e.indexOf("@")&&(e+="@AdobeOrg"),n.marketingCloudOrgID=e,n.namespace=t,n.cookieName="AMCV_"+e,n.m=n.J(),n.m==r.location.hostname&&(n.m="");if(t){var g="AMCV_"+t,y=n.cookieRead(n.cookieName),b=n.cookieRead(g);!y&&b&&(n.cookieWrite(n.cookieName,b,1),n.cookieWrite(g,"",-60))}n.loadSSL=0<=r.location.protocol.toLowerCase().indexOf("https"),n.loadTimeout=500,n.marketingCloudServer=
n.audienceManagerServer="dpm.demdex.net",n.customerIDMappingServer="map.adobecrs.com"}function AppMeasurement(){var e=this;e.version="1.3.2";var t=window;t.s_c_in||(t.s_c_il=[],t.s_c_in=0),e._il=t.s_c_il,e._in=t.s_c_in,e._il[e._in]=e,t.s_c_in++,e._c="s_c";var n=t.ob;n||(n=null);var r=t,i,s;try{i=r.parent;for(s=r.location;i&&i.location&&s&&""+i.location!=""+s&&r.location&&""+i.location!=""+r.location&&i.location.host==s.host;)r=i,i=r.parent}catch(o){}e.Za=function(e){try{console.log(e)}catch(t){}}
,e.oa=function(e){return""+parseInt(e)==""+e},e.replace=function(e,t,n){return!e||e.indexOf(t)<0?e:e.split(t).join(n)},e.escape=function(t){var n,r;if(!t)return t;t=encodeURIComponent(t);for(n=0;n<7;n++)r="+~!*()'".substring(n,n+1),t.indexOf(r)>=0&&(t=e.replace(t,r,"%"+r.charCodeAt(0).toString(16).toUpperCase()));return t},e.unescape=function(t){if(!t)return t;t=t.indexOf("+")>=0?e.replace(t,"+"," "):t;try{return decodeURIComponent(t)}catch(n){}return unescape(t)},e.Qa=function(){var n=t.location
.hostname,r=e.fpCookieDomainPeriods,i;r||(r=e.cookieDomainPeriods);if(n&&!e.ha&&!/^[0-9.]+$/.test(n)&&(r=r?parseInt(r):2,r=r>2?r:2,i=n.lastIndexOf("."),i>=0)){for(;i>=0&&r>1;)i=n.lastIndexOf(".",i-1),r--;e.ha=i>0?n.substring(i):n}return e.ha},e.c_r=e.cookieRead=function(t){t=e.escape(t);var n=" "+e.d.cookie,r=n.indexOf(" "+t+"="),i=r<0?r:n.indexOf(";",r);return t=r<0?"":e.unescape(n.substring(r+2+t.length,i<0?n.length:i)),t!="[[B]]"?t:""},e.c_w=e.cookieWrite=function(t,n,r){var i=e.Qa(),s=e.cookieLifetime
,o;return n=""+n,s=s?(""+s).toUpperCase():"",r&&s!="SESSION"&&s!="NONE"&&((o=n!=""?parseInt(s?s:0):-60)?(r=new Date,r.setTime(r.getTime()+o*1e3)):r==1&&(r=new Date,o=r.getYear(),r.setYear(o+5+(o<1900?1900:0)))),t&&s!="NONE"?(e.d.cookie=t+"="+e.escape(n!=""?n:"[[B]]")+"; path=/;"+(r&&s!="SESSION"?" expires="+r.toGMTString()+";":"")+(i?" domain="+i+";":""),e.cookieRead(t)==n):0},e.D=[],e.C=function(t,n,r){if(e.ia)return 0;e.maxDelay||(e.maxDelay=250);var i=0,s=(new Date).getTime()+e.maxDelay,o=e.d.
mb,u=["webkitvisibilitychange","visibilitychange"];o||(o=e.d.nb);if(o&&o=="prerender"){if(!e.V){e.V=1;for(r=0;r<u.length;r++)e.d.addEventListener(u[r],function(){var t=e.d.mb;t||(t=e.d.nb),t=="visible"&&(e.V=0,e.delayReady())})}i=1,s=0}else r||e.r("_d")&&(i=1);return i&&(e.D.push({m:t,a:n,t:s}),e.V||setTimeout(e.delayReady,e.maxDelay)),i},e.delayReady=function(){var t=(new Date).getTime(),n=0,r;for(e.r("_d")&&(n=1);e.D.length>0;){r=e.D.shift();if(n&&!r.t&&r.t>t){e.D.unshift(r),setTimeout(e.delayReady
,parseInt(e.maxDelay/2));break}e.ia=1,e[r.m].apply(e,r.a),e.ia=0}},e.setAccount=e.sa=function(t){var n,r;if(!e.C("setAccount",arguments))if(e.account=t,e.allAccounts){n=e.allAccounts.concat(t.split(",")),e.allAccounts=[],n.sort();for(r=0;r<n.length;r++)(r==0||n[r-1]!=n[r])&&e.allAccounts.push(n[r])}else e.allAccounts=t.split(",")},e.foreachVar=function(t,n){var r,i,s,o,u="";s=i="";if(e.lightProfileID)r=e.H,(u=e.lightTrackVars)&&(u=","+u+","+e.Y.join(",")+",");else{r=e.c;if(e.pe||e.linkType)if(u=e
.linkTrackVars,i=e.linkTrackEvents,e.pe&&(s=e.pe.substring(0,1).toUpperCase()+e.pe.substring(1),e[s]))u=e[s].lb,i=e[s].kb;u&&(u=","+u+","+e.A.join(",")+","),i&&u&&(u+=",events,")}n&&(n=","+n+",");for(i=0;i<r.length;i++)s=r[i],(o=e[s])&&(!u||u.indexOf(","+s+",")>=0)&&(!n||n.indexOf(","+s+",")>=0)&&t(s,o)},e.J=function(t,n,r,i,s){var o="",u,a,f,l,c=0;t=="contextData"&&(t="c");if(n){for(u in n)if(!Object.prototype[u]&&(!s||u.substring(0,s.length)==s)&&n[u]&&(!r||r.indexOf(","+(i?i+".":"")+u+",")>=0)
){f=!1;if(c)for(a=0;a<c.length;a++)u.substring(0,c[a].length)==c[a]&&(f=!0);if(!f&&(o==""&&(o+="&"+t+"."),a=n[u],s&&(u=u.substring(s.length)),u.length>0))if(f=u.indexOf("."),f>0)a=u.substring(0,f),f=(s?s:"")+a+".",c||(c=[]),c.push(f),o+=e.J(a,n,r,i,f);else if(typeof a=="boolean"&&(a=a?"true":"false"),a){if(i=="retrieveLightData"&&s.indexOf(".contextData.")<0)switch(f=u.substring(0,4),l=u.substring(4),u){case"transactionID":u="xact";break;case"channel":u="ch";break;case"campaign":u="v0";break;default:
e.oa(l)&&(f=="prop"?u="c"+l:f=="eVar"?u="v"+l:f=="list"?u="l"+l:f=="hier"&&(u="h"+l,a=a.substring(0,255)))}o+="&"+e.escape(u)+"="+e.escape(a)}}o!=""&&(o+="&."+t)}return o},e.Sa=function(){var t="",n,r,i,s,o,u,a,f,l="",c="",h=r="";if(e.lightProfileID)n=e.H,(l=e.lightTrackVars)&&(l=","+l+","+e.Y.join(",")+",");else{n=e.c;if(e.pe||e.linkType)if(l=e.linkTrackVars,c=e.linkTrackEvents,e.pe&&(r=e.pe.substring(0,1).toUpperCase()+e.pe.substring(1),e[r]))l=e[r].lb,c=e[r].kb;l&&(l=","+l+","+e.A.join(",")+","
),c&&(c=","+c+",",l&&(l+=",events,")),e.events2&&(h+=(h!=""?",":"")+e.events2)}e.AudienceManagement&&e.AudienceManagement.isReady()&&(t+=e.J("d",e.AudienceManagement.getEventCallConfigParams()));for(r=0;r<n.length;r++){s=n[r],o=e[s],i=s.substring(0,4),u=s.substring(4),!o&&s=="events"&&h&&(o=h,h="");if(o&&(!l||l.indexOf(","+s+",")>=0)){switch(s){case"supplementalDataID":s="sdid";break;case"timestamp":s="ts";break;case"dynamicVariablePrefix":s="D";break;case"visitorID":s="vid";break;case"marketingCloudVisitorID"
:s="mid";break;case"analyticsVisitorID":s="aid";break;case"audienceManagerLocationHint":s="aamlh";break;case"audienceManagerBlob":s="aamb";break;case"pageURL":s="g",o.length>255&&(e.pageURLRest=o.substring(255),o=o.substring(0,255));break;case"pageURLRest":s="-g";break;case"referrer":s="r";break;case"vmk":case"visitorMigrationKey":s="vmt";break;case"visitorMigrationServer":s="vmf",e.ssl&&e.visitorMigrationServerSecure&&(o="");break;case"visitorMigrationServerSecure":s="vmf",!e.ssl&&e.visitorMigrationServer&&
(o="");break;case"charSet":s="ce";break;case"visitorNamespace":s="ns";break;case"cookieDomainPeriods":s="cdp";break;case"cookieLifetime":s="cl";break;case"variableProvider":s="vvp";break;case"currencyCode":s="cc";break;case"channel":s="ch";break;case"transactionID":s="xact";break;case"campaign":s="v0";break;case"resolution":s="s";break;case"colorDepth":s="c";break;case"javascriptVersion":s="j";break;case"javaEnabled":s="v";break;case"cookiesEnabled":s="k";break;case"browserWidth":s="bw";break;case"browserHeight"
:s="bh";break;case"connectionType":s="ct";break;case"homepage":s="hp";break;case"plugins":s="p";break;case"events":h&&(o+=(o!=""?",":"")+h);if(c){u=o.split(","),o="";for(i=0;i<u.length;i++)a=u[i],f=a.indexOf("="),f>=0&&(a=a.substring(0,f)),f=a.indexOf(":"),f>=0&&(a=a.substring(0,f)),c.indexOf(","+a+",")>=0&&(o+=(o?",":"")+u[i])}break;case"events2":o="";break;case"contextData":t+=e.J("c",e[s],l,s),o="";break;case"lightProfileID":s="mtp";break;case"lightStoreForSeconds":s="mtss",e.lightProfileID||(
o="");break;case"lightIncrementBy":s="mti",e.lightProfileID||(o="");break;case"retrieveLightProfiles":s="mtsr";break;case"deleteLightProfiles":s="mtsd";break;case"retrieveLightData":e.retrieveLightProfiles&&(t+=e.J("mts",e[s],l,s)),o="";break;default:e.oa(u)&&(i=="prop"?s="c"+u:i=="eVar"?s="v"+u:i=="list"?s="l"+u:i=="hier"&&(s="h"+u,o=o.substring(0,255)))}o&&(t+="&"+s+"="+(s.substring(0,3)!="pev"?e.escape(o):o))}s=="pev3"&&e.g&&(t+=e.g)}return t},e.v=function(e){var t=e.tagName;return""+e.sb!="undefined"||""+
e.eb!="undefined"&&(""+e.eb).toUpperCase()!="HTML"?"":(t=t&&t.toUpperCase?t.toUpperCase():"",t=="SHAPE"&&(t=""),t&&((t=="INPUT"||t=="BUTTON")&&e.type&&e.type.toUpperCase?t=e.type.toUpperCase():!t&&e.href&&(t="A")),t)},e.ka=function(e){var t=e.href?e.href:"",n,r,i;return n=t.indexOf(":"),r=t.indexOf("?"),i=t.indexOf("/"),t&&(n<0||r>=0&&n>r||i>=0&&n>i)&&(r=e.protocol&&e.protocol.length>1?e.protocol:l.protocol?l.protocol:"",n=l.pathname.lastIndexOf("/"),t=(r?r+"//":"")+(e.host?e.host:l.host?l.host:""
)+(h.substring(0,1)!="/"?l.pathname.substring(0,n<0?0:n)+"/":"")+t),t},e.F=function(t){var n=e.v(t),r,i,s="",o=0;if(n){r=t.protocol,i=t.onclick,t.href&&(n=="A"||n=="AREA")&&(!i||!r||r.toLowerCase().indexOf("javascript")<0)?s=e.ka(t):i?(s=e.replace(e.replace(e.replace(e.replace(""+i,"\r",""),"\n",""),"	","")," ",""),o=2):n=="INPUT"||n=="SUBMIT"?(t.value?s=t.value:t.innerText?s=t.innerText:t.textContent&&(s=t.textContent),o=3):t.src&&n=="IMAGE"&&(s=t.src);if(s)return{id:s.substring(0,100),type:o}}return 0
},e.pb=function(t){for(var n=e.v(t),r=e.F(t);t&&!r&&n!="BODY";)if(t=t.parentElement?t.parentElement:t.parentNode)n=e.v(t),r=e.F(t);if(!r||n=="BODY")t=0;return t&&(n=t.onclick?""+t.onclick:"",n.indexOf(".tl(")>=0||n.indexOf(".trackLink(")>=0)&&(t=0),t},e.bb=function(){var n,r,i=e.linkObject,s=e.linkType,o=e.linkURL,u,a;e.Z=1,i||(e.Z=0,i=e.j);if(i){n=e.v(i);for(r=e.F(i);i&&!r&&n!="BODY";)if(i=i.parentElement?i.parentElement:i.parentNode)n=e.v(i),r=e.F(i);if(!r||n=="BODY")i=0;if(i){var f=i.onclick?""+
i.onclick:"";if(f.indexOf(".tl(")>=0||f.indexOf(".trackLink(")>=0)i=0}}else e.Z=1;!o&&i&&(o=e.ka(i)),o&&!e.linkLeaveQueryString&&(u=o.indexOf("?"),u>=0&&(o=o.substring(0,u)));if(!s&&o){var l=0,c=0,h;if(e.trackDownloadLinks&&e.linkDownloadFileTypes){f=o.toLowerCase(),u=f.indexOf("?"),a=f.indexOf("#"),u>=0?a>=0&&a<u&&(u=a):u=a,u>=0&&(f=f.substring(0,u)),u=e.linkDownloadFileTypes.toLowerCase().split(",");for(a=0;a<u.length;a++)(h=u[a])&&f.substring(f.length-(h.length+1))=="."+h&&(s="d")}if(e.trackExternalLinks&&!
s&&(f=o.toLowerCase(),e.na(f))){e.linkInternalFilters||(e.linkInternalFilters=t.location.hostname),u=0,e.linkExternalFilters?(u=e.linkExternalFilters.toLowerCase().split(","),l=1):e.linkInternalFilters&&(u=e.linkInternalFilters.toLowerCase().split(","));if(u){for(a=0;a<u.length;a++)h=u[a],f.indexOf(h)>=0&&(c=1);c?l&&(s="e"):l||(s="e")}}}e.linkObject=i,e.linkURL=o,e.linkType=s;if(e.trackClickMap||e.trackInlineStats)if(e.g="",i)s=e.pageName,o=1,i=i.sourceIndex,s||(s=e.pageURL,o=0),t.s_objectID&&(r.
id=t.s_objectID,i=r.type=1),s&&r&&r.id&&n&&(e.g="&pid="+e.escape(s.substring(0,255))+(o?"&pidt="+o:"")+"&oid="+e.escape(r.id.substring(0,100))+(r.type?"&oidt="+r.type:"")+"&ot="+n+(i?"&oi="+i:""))},e.Ta=function(){var t=e.Z,n=e.linkType,r=e.linkURL,i=e.linkName;n&&(r||i)&&(n=n.toLowerCase(),n!="d"&&n!="e"&&(n="o"),e.pe="lnk_"+n,e.pev1=r?e.escape(r):"",e.pev2=i?e.escape(i):"",t=1),e.abort&&(t=0);if(e.trackClickMap||e.trackInlineStats){n={},r=0;var s=e.cookieRead("s_sq"),o=s?s.split("&"):0,u,a,f;s=0
;if(o)for(u=0;u<o.length;u++)a=o[u].split("="),i=e.unescape(a[0]).split(","),a=e.unescape(a[1]),n[a]=i;i=e.account.split(",");if(t||e.g){t&&!e.g&&(s=1);for(a in n)if(!Object.prototype[a])for(u=0;u<i.length;u++){s&&(f=n[a].join(","),f==e.account&&(e.g+=(a.charAt(0)!="&"?"&":"")+a,n[a]=[],r=1));for(o=0;o<n[a].length;o++)f=n[a][o],f==i[u]&&(s&&(e.g+="&u="+e.escape(f)+(a.charAt(0)!="&"?"&":"")+a+"&u=0"),n[a].splice(o,1),r=1)}t||(r=1);if(r){s="",u=2,!t&&e.g&&(s=e.escape(i.join(","))+"="+e.escape(e.g),
u=1);for(a in n)!Object.prototype[a]&&u>0&&n[a].length>0&&(s+=(s?"&":"")+e.escape(n[a].join(","))+"="+e.escape(a),u--);e.cookieWrite("s_sq",s)}}}return t},e.Ua=function(){if(!e.jb){var t=new Date,n=r.location,i,s,o,u=o=s=i="",a="",f="",l="1.2",c=e.cookieWrite("s_cc","true",0)?"Y":"N",h="",p="",d=0;if(t.setUTCDate&&(l="1.3",d.toPrecision&&(l="1.5",i=[],i.forEach))){l="1.6",o=0,s={};try{o=new Iterator(s),o.next&&(l="1.7",i.reduce&&(l="1.8",l.trim&&(l="1.8.1",Date.parse&&(l="1.8.2",Object.create&&(l="1.8.5"
)))))}catch(v){}}i=screen.width+"x"+screen.height,o=navigator.javaEnabled()?"Y":"N",s=screen.pixelDepth?screen.pixelDepth:screen.colorDepth,a=e.w.innerWidth?e.w.innerWidth:e.d.documentElement.offsetWidth,f=e.w.innerHeight?e.w.innerHeight:e.d.documentElement.offsetHeight,t=navigator.plugins;try{e.b.addBehavior("#default#homePage"),h=e.b.qb(n)?"Y":"N"}catch(m){}try{e.b.addBehavior("#default#clientCaps"),p=e.b.connectionType}catch(g){}if(t)for(;d<t.length&&d<30;){if(n=t[d].name)n=n.substring(0,100)+";"
,u.indexOf(n)<0&&(u+=n);d++}e.resolution=i,e.colorDepth=s,e.javascriptVersion=l,e.javaEnabled=o,e.cookiesEnabled=c,e.browserWidth=a,e.browserHeight=f,e.connectionType=p,e.homepage=h,e.plugins=u,e.jb=1}},e.I={},e.loadModule=function(n,r){var i=e.I[n];if(!i){i=t["AppMeasurement_Module_"+n]?new t["AppMeasurement_Module_"+n](e):{},e.I[n]=e[n]=i,i.Ba=function(){return i.Ea},i.Fa=function(t){if(i.Ea=t)e[n+"_onLoad"]=t,e.C(n+"_onLoad",[e,i],1)||t(e,i)};try{Object.defineProperty?Object.defineProperty(i,"onLoad"
,{get:i.Ba,set:i.Fa}):i._olc=1}catch(s){i._olc=1}}r&&(e[n+"_onLoad"]=r,e.C(n+"_onLoad",[e,i],1)||r(e,i))},e.r=function(t){var n,r;for(n in e.I)if(!Object.prototype[n]&&(r=e.I[n])){r._olc&&r.onLoad&&(r._olc=0,r.onLoad(e,r));if(r[t]&&r[t]())return 1}return 0},e.Xa=function(){var t=Math.floor(Math.random()*1e13),n=e.visitorSampling,r=e.visitorSamplingGroup;r="s_vsn_"+(e.visitorNamespace?e.visitorNamespace:e.account)+(r?"_"+r:"");var i=e.cookieRead(r);if(n){i&&(i=parseInt(i));if(!i){if(!e.cookieWrite
(r,t))return 0;i=t}if(i%1e4>v)return 0}return 1},e.K=function(t,n){var r,i,s,o,u,a;for(r=0;r<2;r++){i=r>0?e.ea:e.c;for(s=0;s<i.length;s++)if(o=i[s],(u=t[o])||t["!"+o]){if(!n&&(o=="contextData"||o=="retrieveLightData")&&e[o])for(a in e[o])u[a]||(u[a]=e[o][a]);e[o]=u}}},e.wa=function(t,n){var r,i,s,o;for(r=0;r<2;r++){i=r>0?e.ea:e.c;for(s=0;s<i.length;s++)o=i[s],t[o]=e[o],!n&&!t[o]&&(t["!"+o]=1)}},e.Pa=function(e){var t,n,r,i,s,o=0,u,a="",f="";if(e&&e.length>255&&(t=""+e,n=t.indexOf("?"),n>0&&(u=t.substring
(n+1),t=t.substring(0,n),i=t.toLowerCase(),r=0,i.substring(0,7)=="http://"?r+=7:i.substring(0,8)=="https://"&&(r+=8),n=i.indexOf("/",r),n>0&&(i=i.substring(r,n),s=t.substring(n),t=t.substring(0,n),i.indexOf("google")>=0?o=",q,ie,start,search_key,word,kw,cd,":i.indexOf("yahoo.co")>=0&&(o=",p,ei,"),o&&u)))){if((e=u.split("&"))&&e.length>1){for(r=0;r<e.length;r++)i=e[r],n=i.indexOf("="),n>0&&o.indexOf(","+i.substring(0,n)+",")>=0?a+=(a?"&":"")+i:f+=(f?"&":"")+i;a&&f?u=a+"&"+f:f=""}n=253-(u.length-f.
length)-t.length,e=t+(n>0?s.substring(0,n):"")+"?"+u}return e},e.S=!1,e.O=!1,e.Da=function(t){e.marketingCloudVisitorID=t,e.O=!0,e.l()},e.P=!1,e.L=!1,e.ya=function(t){e.analyticsVisitorID=t,e.L=!0,e.l()},e.R=!1,e.N=!1,e.Aa=function(t){e.audienceManagerLocationHint=t,e.N=!0,e.l()},e.Q=!1,e.M=!1,e.za=function(t){e.audienceManagerBlob=t,e.M=!0,e.l()},e.isReadyToTrack=function(){var t=!0,n=e.visitor;if(n&&n.isAllowed()){!e.S&&!e.marketingCloudVisitorID&&n.getMarketingCloudVisitorID&&(e.S=!0,e.marketingCloudVisitorID=
n.getMarketingCloudVisitorID([e,e.Da]),e.marketingCloudVisitorID)&&(e.O=!0),!e.P&&!e.analyticsVisitorID&&n.getAnalyticsVisitorID&&(e.P=!0,e.analyticsVisitorID=n.getAnalyticsVisitorID([e,e.ya]),e.analyticsVisitorID)&&(e.L=!0),!e.R&&!e.audienceManagerLocationHint&&n.getAudienceManagerLocationHint&&(e.R=!0,e.audienceManagerLocationHint=n.getAudienceManagerLocationHint([e,e.Aa]),e.audienceManagerLocationHint)&&(e.N=!0),!e.Q&&!e.audienceManagerBlob&&n.getAudienceManagerBlob&&(e.Q=!0,e.audienceManagerBlob=
n.getAudienceManagerBlob([e,e.za]),e.audienceManagerBlob)&&(e.M=!0);if(e.S&&!e.O&&!e.marketingCloudVisitorID||e.P&&!e.L&&!e.analyticsVisitorID||e.R&&!e.N&&!e.audienceManagerLocationHint||e.Q&&!e.M&&!e.audienceManagerBlob)t=!1}return t},e.k=n,e.o=0,e.callbackWhenReadyToTrack=function(t,r,i){var s;s={},s.Ja=t,s.Ia=r,s.Ga=i,e.k==n&&(e.k=[]),e.k.push(s),e.o==0&&(e.o=setInterval(e.l,100))},e.l=function(){var t;if(e.isReadyToTrack()){e.o&&(clearInterval(e.o),e.o=0);if(e.k!=n)for(;e.k.length>0;)t=e.k.shift
(),t.Ia.apply(t.Ja,t.Ga)}},e.Ca=function(t){var r,i,s=n,o=n;if(!e.isReadyToTrack()){r=[];if(t!=n)for(i in s={},t)s[i]=t[i];return o={},e.wa(o,!0),r.push(s),r.push(o),e.callbackWhenReadyToTrack(e,e.track,r),!0}return!1},e.Ra=function(){var t=e.cookieRead("s_fid"),n="",r="",i;i=8;var s=4;if(!t||t.indexOf("-")<0){for(t=0;t<16;t++)i=Math.floor(Math.random()*i),n+="0123456789ABCDEF".substring(i,i+1),i=Math.floor(Math.random()*s),r+="0123456789ABCDEF".substring(i,i+1),i=s=16;t=n+"-"+r}return e.cookieWrite
("s_fid",t,1)||(t=0),t},e.t=e.track=function(n,i){var s,o=new Date,u="s"+Math.floor(o.getTime()/108e5)%10+Math.floor(Math.random()*1e13),a=o.getYear();a="t="+e.escape(o.getDate()+"/"+o.getMonth()+"/"+(a<1900?a+1900:a)+" "+o.getHours()+":"+o.getMinutes()+":"+o.getSeconds()+" "+o.getDay()+" "+o.getTimezoneOffset()),!e.supplementalDataID&&e.visitor&&e.visitor.getSupplementalDataID&&(e.supplementalDataID=e.visitor.getSupplementalDataID("AppMeasurement:"+e._in,e.expectSupplementalData?!1:!0)),e.r("_s"
),e.C("track",arguments)||(e.Ca(n)||(i&&e.K(i),n&&(s={},e.wa(s,0),e.K(n)),e.Xa()&&(!e.analyticsVisitorID&&!e.marketingCloudVisitorID&&(e.fid=e.Ra()),e.bb(),e.usePlugins&&e.doPlugins&&e.doPlugins(e),e.account&&(e.abort||(e.trackOffline&&!e.timestamp&&(e.timestamp=Math.floor(o.getTime()/1e3)),o=t.location,e.pageURL||(e.pageURL=o.href?o.href:o),!e.referrer&&!e.xa&&(e.referrer=r.document.referrer,e.xa=1),e.referrer=e.Pa(e.referrer),e.r("_g")),e.Ta()&&!e.abort&&(e.Ua(),a+=e.Sa(),e.ab(u,a),e.r("_t"),e.
referrer=""))),n&&e.K(s,1)),e.abort=e.supplementalDataID=e.timestamp=e.pageURLRest=e.linkObject=e.j=e.linkURL=e.linkName=e.linkType=t.rb=e.pe=e.pev1=e.pev2=e.pev3=e.g=0)},e.tl=e.trackLink=function(t,n,r,i,s){return e.linkObject=t,e.linkType=n,e.linkName=r,s&&(e.i=t,e.q=s),e.track(i)},e.trackLight=function(t,n,r,i){return e.lightProfileID=t,e.lightStoreForSeconds=n,e.lightIncrementBy=r,e.track(i)},e.clearVars=function(){var t,n;for(t=0;t<e.c.length;t++)if(n=e.c[t],n.substring(0,4)=="prop"||n.substring
(0,4)=="eVar"||n.substring(0,4)=="hier"||n.substring(0,4)=="list"||n=="channel"||n=="events"||n=="eventList"||n=="products"||n=="productList"||n=="purchaseID"||n=="transactionID"||n=="state"||n=="zip"||n=="campaign")e[n]=void 0},e.ab=function(t,n){var r,i=e.trackingServer;r="";var s=e.dc,o="sc.",u=e.visitorNamespace;i?e.trackingServerSecure&&e.ssl&&(i=e.trackingServerSecure):(u||(u=e.account,i=u.indexOf(","),i>=0&&(u=u.substring(0,i)),u=u.replace(/[^A-Za-z0-9]/g,"")),r||(r="2o7.net"),s=s?(""+s).toLowerCase
():"d1",r=="2o7.net"&&(s=="d1"?s="112":s=="d2"&&(s="122"),o=""),i=u+"."+s+"."+o+r),r=e.ssl?"https://":"http://",s=e.AudienceManagement&&e.AudienceManagement.isReady(),r+=i+"/b/ss/"+e.account+"/"+(e.mobile?"5.":"")+(s?"10":"1")+"/JS-"+e.version+(e.ib?"T":"")+"/"+t+"?AQB=1&ndh=1&"+(s?"callback=s_c_il["+e._in+"].AudienceManagement.passData&":"")+n+"&AQE=1",e.Wa&&(r=r.substring(0,2047)),e.Na(r),e.W()},e.Na=function(t){e.e||e.Va(),e.e.push(t),e.X=e.u(),e.va()},e.Va=function(){e.e=e.Ya(),e.e||(e.e=[])}
,e.Ya=function(){var n,r;if(e.ba()){try{(r=t.localStorage.getItem(e.$()))&&(n=t.JSON.parse(r))}catch(i){}return n}},e.ba=function(){var n=!0;if(!e.trackOffline||!e.offlineFilename||!t.localStorage||!t.JSON)n=!1;return n},e.la=function(){var t=0;return e.e&&(t=e.e.length),e.z&&t++,t},e.W=function(){if(!e.z)if(e.ma=n,e.aa)e.X>e.G&&e.ta(e.e),e.da(6e4);else{var t=e.Ha();if(t>0)e.da(t);else if(t=e.ja())e.z=1,e.$a(t),e.fb(t)}},e.da=function(t){e.ma||(t||(t=0),e.ma=setTimeout(e.W,t))},e.Ha=function(){var t
;return!e.trackOffline||e.offlineThrottleDelay<=0?0:(t=e.u()-e.ra,e.offlineThrottleDelay<t?0:e.offlineThrottleDelay-t)},e.ja=function(){if(e.e.length>0)return e.e.shift()},e.$a=function(t){if(e.debugTracking){var n="AppMeasurement Debug: "+t;t=t.split("&");var r;for(r=0;r<t.length;r++)n+="\n	"+e.unescape(t[r]);e.Za(n)}},e.fb=function(n){var r,i,s;!r&&e.d.createElement&&e.AudienceManagement&&e.AudienceManagement.isReady()&&(r=e.d.createElement("SCRIPT"))&&"async"in r&&((s=(s=e.d.getElementsByTagName
("HEAD"))&&s[0]?s[0]:e.d.body)?(r.type="text/javascript",r.setAttribute("async","async"),i=3):r=0),r||(r=new Image,r.alt=""),r.ga=function(){try{e.ca&&(clearTimeout(e.ca),e.ca=0),r.timeout&&(clearTimeout(r.timeout),r.timeout=0)}catch(t){}},r.onload=r.hb=function(){r.ga(),e.Ma(),e.T(),e.z=0,e.W()},r.onabort=r.onerror=r.Oa=function(){r.ga(),(e.trackOffline||e.aa)&&e.z&&e.e.unshift(e.La),e.z=0,e.X>e.G&&e.ta(e.e),e.T(),e.da(6e4)},r.onreadystatechange=function(){r.readyState==4&&(r.status==200?r.hb():
r.Oa())},e.ra=e.u();if(i==1)r.open("GET",n,!0),r.send();else if(i==2)r.open("GET",n),r.send();else if(r.src=n,i==3){if(e.pa)try{s.removeChild(e.pa)}catch(o){}s.firstChild?s.insertBefore(r,s.firstChild):s.appendChild(r),e.pa=e.Ka}r.abort&&(e.ca=setTimeout(r.abort,5e3)),e.La=n,e.Ka=t["s_i_"+e.replace(e.account,",","_")]=r;if(e.useForcedLinkTracking&&e.B||e.q)e.forcedLinkTrackingTimeout||(e.forcedLinkTrackingTimeout=250),e.U=setTimeout(e.T,e.forcedLinkTrackingTimeout)},e.Ma=function(){if(e.ba()&&!(e
.qa>e.G))try{t.localStorage.removeItem(e.$()),e.qa=e.u()}catch(n){}},e.ta=function(n){if(e.ba()){e.va();try{t.localStorage.setItem(e.$(),t.JSON.stringify(n)),e.G=e.u()}catch(r){}}},e.va=function(){if(e.trackOffline){if(!e.offlineLimit||e.offlineLimit<=0)e.offlineLimit=10;for(;e.e.length>e.offlineLimit;)e.ja()}},e.forceOffline=function(){e.aa=!0},e.forceOnline=function(){e.aa=!1},e.$=function(){return e.offlineFilename+"-"+e.visitorNamespace+e.account},e.u=function(){return(new Date).getTime()},e.
na=function(e){return e=e.toLowerCase(),e.indexOf("#")!=0&&e.indexOf("about:")!=0&&e.indexOf("opera:")!=0&&e.indexOf("javascript:")!=0?!0:!1},e.setTagContainer=function(t){var n,r,i;e.ib=t;for(n=0;n<e._il.length;n++)if((r=e._il[n])&&r._c=="s_l"&&r.tagContainerName==t){e.K(r);if(r.lmq)for(n=0;n<r.lmq.length;n++)i=r.lmq[n],e.loadModule(i.n);if(r.ml)for(i in r.ml)if(e[i])for(n in t=e[i],i=r.ml[i],i)!Object.prototype[n]&&(typeof i[n]!="function"||(""+i[n]).indexOf("s_c_il")<0)&&(t[n]=i[n]);if(r.mmq)for(
n=0;n<r.mmq.length;n++)i=r.mmq[n],e[i.m]&&(t=e[i.m],t[i.f]&&typeof t[i.f]=="function"&&(i.a?t[i.f].apply(t,i.a):t[i.f].apply(t)));if(r.tq)for(n=0;n<r.tq.length;n++)e.track(r.tq[n]);r.s=e;break}},e.Util={urlEncode:e.escape,urlDecode:e.unescape,cookieRead:e.cookieRead,cookieWrite:e.cookieWrite,getQueryParam:function(n,r,i){var s;return r||(r=e.pageURL?e.pageURL:t.location),i||(i="&"),n&&r&&(r=""+r,s=r.indexOf("?"),s>=0&&(r=i+r.substring(s+1)+i,s=r.indexOf(i+n+"="),s>=0&&(r=r.substring(s+i.length+n.
length+1),s=r.indexOf(i),s>=0&&(r=r.substring(0,s)),r.length>0)))?e.unescape(r):""}},e.A=["supplementalDataID","timestamp","dynamicVariablePrefix","visitorID","marketingCloudVisitorID","analyticsVisitorID","audienceManagerLocationHint","fid","vmk","visitorMigrationKey","visitorMigrationServer","visitorMigrationServerSecure","charSet","visitorNamespace","cookieDomainPeriods","fpCookieDomainPeriods","cookieLifetime","pageName","pageURL","referrer","contextData","currencyCode","lightProfileID","lightStoreForSeconds"
,"lightIncrementBy","retrieveLightProfiles","deleteLightProfiles","retrieveLightData","pe","pev1","pev2","pev3","pageURLRest"],e.c=e.A.concat(["purchaseID","variableProvider","channel","server","pageType","transactionID","campaign","state","zip","events","events2","products","audienceManagerBlob","tnt"]),e.Y=["timestamp","charSet","visitorNamespace","cookieDomainPeriods","cookieLifetime","contextData","lightProfileID","lightStoreForSeconds","lightIncrementBy"],e.H=e.Y.slice(0),e.ea=["account","allAccounts"
,"debugTracking","visitor","trackOffline","offlineLimit","offlineThrottleDelay","offlineFilename","usePlugins","doPlugins","configURL","visitorSampling","visitorSamplingGroup","linkObject","linkURL","linkName","linkType","trackDownloadLinks","trackExternalLinks","trackClickMap","trackInlineStats","linkLeaveQueryString","linkTrackVars","linkTrackEvents","linkDownloadFileTypes","linkExternalFilters","linkInternalFilters","useForcedLinkTracking","forcedLinkTrackingTimeout","trackingServer","trackingServerSecure"
,"ssl","abort","mobile","dc","lightTrackVars","maxDelay","expectSupplementalData","AudienceManagement"];for(i=0;i<=75;i++)e.c.push("prop"+i),e.H.push("prop"+i),e.c.push("eVar"+i),e.H.push("eVar"+i),i<6&&e.c.push("hier"+i),i<4&&e.c.push("list"+i);i=["resolution","colorDepth","javascriptVersion","javaEnabled","cookiesEnabled","browserWidth","browserHeight","connectionType","homepage","plugins"],e.c=e.c.concat(i),e.A=e.A.concat(i),e.ssl=t.location.protocol.toLowerCase().indexOf("https")>=0,e.charSet="UTF-8"
,e.contextData={},e.offlineThrottleDelay=0,e.offlineFilename="AppMeasurement.offline",e.ra=0,e.X=0,e.G=0,e.qa=0,e.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx",e.w=t,e.d=t.document;try{e.Wa=navigator.appName=="Microsoft Internet Explorer"}catch(u){}e.T=function(){e.U&&(t.clearTimeout(e.U),e.U=n),e.i&&e.B&&e.i.dispatchEvent(e.B),e.q&&(typeof e.q=="function"?e.q():e.i&&e.i.href&&(e.d.location=e.i.href)),e.i=e.B=e.q=0},e.ua=function(){e.b=e.d.body,e.b?(e.p=function(
n){var r,i,s,o,u;if(!(e.d&&e.d.getElementById("cppXYctnr")||n&&n.cb)){if(e.fa){if(!e.useForcedLinkTracking){e.b.removeEventListener("click",e.p,!0),e.fa=e.useForcedLinkTracking=0;return}e.b.removeEventListener("click",e.p,!1)}else e.useForcedLinkTracking=0;e.j=n.srcElement?n.srcElement:n.target;try{if(e.j&&(e.j.tagName||e.j.parentElement||e.j.parentNode))if(s=e.la(),e.track(),s<e.la()&&e.useForcedLinkTracking&&n.target){for(o=n.target;o&&o!=e.b&&o.tagName.toUpperCase()!="A"&&o.tagName.toUpperCase
()!="AREA";)o=o.parentNode;if(o&&(u=o.href,e.na(u)||(u=0),i=o.target,n.target.dispatchEvent&&u&&(!i||i=="_self"||i=="_top"||i=="_parent"||t.name&&i==t.name))){try{r=e.d.createEvent("MouseEvents")}catch(a){r=new t.MouseEvent}if(r){try{r.initMouseEvent("click",n.bubbles,n.cancelable,n.view,n.detail,n.screenX,n.screenY,n.clientX,n.clientY,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey,n.button,n.relatedTarget)}catch(f){r=0}r&&(r.cb=1,n.stopPropagation(),n.gb&&n.gb(),n.preventDefault(),e.i=n.target,e.B=r)}}
}}catch(l){}e.j=0}},e.b&&e.b.attachEvent)?e.b.attachEvent("onclick",e.p):e.b&&e.b.addEventListener&&(navigator&&(navigator.userAgent.indexOf("WebKit")>=0&&e.d.createEvent||navigator.userAgent.indexOf("Firefox/2")>=0&&t.MouseEvent)&&(e.fa=1,e.useForcedLinkTracking=1,e.b.addEventListener("click",e.p,!0)),e.b.addEventListener("click",e.p,!1)):setTimeout(e.ua,30)},e.ua()}function s_gi(e){var t,n=window.s_c_il,r,i,s=e.split(","),o,u,a=0;if(n)for(r=0;!a&&r<n.length;){t=n[r];if(t._c=="s_c"&&(t.account||
t.oun))if(t.account&&t.account==e)a=1;else{i=t.account?t.account:t.oun,i=t.allAccounts?t.allAccounts:i.split(",");for(o=0;o<s.length;o++)for(u=0;u<i.length;u++)s[o]==i[u]&&(a=1)}r++}return a||(t=new AppMeasurement),t.setAccount?t.setAccount(e):t.sa&&t.sa(e),t}function s_pgicq(){var e=window,t=e.s_giq,n,r,i;if(t)for(n=0;n<t.length;n++)r=t[n],i=s_gi(r.oun),i.setAccount(r.un),i.setTagContainer(r.tagContainerName);e.s_giq=0}function CSXSWindowType(){}function Version(e,t,n,r){this.major=e,this.minor=
t,this.micro=n,this.special=r}function VersionBound(e,t){this.version=e,this.inclusive=t}function VersionRange(e,t){this.lowerBound=e,this.upperBound=t}function Runtime(e,t){this.name=e,this.versionRange=t}function Extension(e,t,n,r,i,s,o,u,a,f,l,c,h,p,d,v){this.id=e,this.name=t,this.mainPath=n,this.basePath=r,this.windowType=i,this.width=s,this.height=o,this.minWidth=u,this.minHeight=a,this.maxWidth=f,this.maxHeight=l,this.defaultExtensionDataXml=c,this.specialExtensionDataXml=h,this.requiredRuntimeList=
p,this.isAutoVisible=d,this.isPluginExtension=v}function CSEvent(e,t,n,r){this.type=e,this.scope=t,this.appId=n,this.extensionId=r}function SystemPath(){}function ColorType(){}function RGBColor(e,t,n,r){this.red=e,this.green=t,this.blue=n,this.alpha=r}function Direction(e,t){this.x=e,this.y=t}function GradientStop(e,t){this.offset=e,this.rgbColor=t}function GradientColor(e,t,n,r){this.type=e,this.direction=t,this.numStops=n,this.arrGradientStop=r}function UIColor(e,t,n){this.type=e,this.antialiasLevel=
t,this.color=n}function AppSkinInfo(e,t,n,r,i,s,o){this.baseFontFamily=e,this.baseFontSize=t,this.appBarBackgroundColor=n,this.panelBackgroundColor=r,this.appBarBackgroundColorSRGB=i,this.panelBackgroundColorSRGB=s,this.systemHighlightColor=o}function HostEnvironment(e,t,n,r,i,s,o){this.appName=e,this.appVersion=t,this.appLocale=n,this.appUILocale=r,this.appId=i,this.isAppOnline=s,this.appSkinInfo=o}function HostCapabilities(e,t,n,r,i){this.EXTENDED_PANEL_MENU=e,this.EXTENDED_PANEL_ICONS=t,this.DELEGATE_APE_ENGINE=
n,this.SUPPORT_HTML_EXTENSIONS=r,this.DISABLE_FLASH_EXTENSIONS=i}function ApiVersion(e,t,n){this.major=e,this.minor=t,this.micro=n}function MenuItemStatus(e,t,n){this.menuItemLabel=e,this.enabled=t,this.checked=n}function ContextMenuItemStatus(e,t,n){this.menuItemID=e,this.enabled=t,this.checked=n}function CSInterface(){}function AAMStatus(e,t,n){this.status=e,this.callerId=t,this.payload=n}function IMSInterface(){}function Vulcan(){}function VulcanMessage(e){this.type=e,this.scope=VulcanMessage.
SCOPE_SUITE,this.appId=VulcanMessage.DEFAULT_APP_ID,this.appVersion=VulcanMessage.DEFAULT_APP_VERSION,this.data=VulcanMessage.DEFAULT_DATA}function GetValueByKey(e,t){if(window.DOMParser){var n=new window.DOMParser;try{var r=n.parseFromString(e,"text/xml"),i=r.getElementsByTagName(t)[0];if(i&&i.childNodes[0])return i.childNodes[0].nodeValue}catch(s){}}return""}function requiredParamsValid(){for(var e=0;e<arguments.length;e++){var t=arguments[e];if(t===undefined||t===null)return!1}return!0}function strStartsWith
(e,t){return typeof e!="string"?!1:e.indexOf(t)===0}function log(e){DEBUG_LOGGING&&console.log(e)}function AgoraLib(){var e=window.__adobe_cep__.getExtensionId(),t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,n=e=="x"?t:t&3|8;return n.toString(16)});this.callerID=t+"_"+e,this.bundleID=window.__adobe_cep__.invokeSync("getBundleId","");var n=this;this.responseCallback=function(e){if(window.DOMParser){var t=new window.DOMParser;try{var r=t.parseFromString
(e.data,"text/xml"),i=r.getElementsByTagName("payload")[0];i&&i.childNodes[0]&&(i=i.childNodes[0].nodeValue),i!=null&&(i=cep.encoding.convertion.b64_to_utf8(i)),log("Decoded payload: "+i);var s=t.parseFromString(i,"text/xml"),o=s.getElementsByTagName("Response");for(var u=0;u<o.length;u++){var a=o[u];if(a){var f=a.attributes.getNamedItem("name").nodeValue,l=a.attributes.getNamedItem("callerID").nodeValue;log("This caller ID "+n.callerID+" received caller ID "+l),log("API: "+f);if(l===n.callerID){
log("CallerIDs match! Now removing message listener"),VulcanInterface.removeMessageListener(AgoraLib.RESPONSE_TYPE,n.responseCallback);var c=a.getElementsByTagName("Result"),h={};for(var p=0;p<c.length;p++){var d=c[p].attributes.getNamedItem("name").nodeValue,v=c[p].getElementsByTagName("Value")[0].textContent;log("param name: "+d+" param value: "+v),h[d]=v}if(f===AgoraLib.IS_ENTITLED){log("IsEntitled callback");var m=new AgoraLibResponse(h[AgoraLib.IS_ENTITLED],h[AgoraLib.STATUS],h[AgoraLib.STATUSCODE
]);n.isEntitledCallback(m)}else if(f===AgoraLib.GET_PURCHASE_URL){log("GetPurchaseUrl callback");var g=h.URL,m=new AgoraLibResponse(g,h[AgoraLib.STATUS],h[AgoraLib.STATUSCODE]);n.getPurchaseUrlCallback(m)}else if(f===AgoraLib.GET_VERSION){log("GetVersion callback");var m=new AgoraLibResponse(h.Version,h[AgoraLib.STATUS],h[AgoraLib.STATUSCODE]);n.getVersionCallback(m)}else if(f===AgoraLib.CREATE_ENTITLEMENT){log("CreateEntitlement callback");var m=new AgoraLibResponse("",h[AgoraLib.STATUS],h[AgoraLib
.STATUSCODE]);n.createEntitlementCallback(m)}}}}}catch(y){log("AgoraLibError: "+y)}}},this.checkVersion=function(){log("Checking version...");var e='<Request name="'+AgoraLib.GET_VERSION+'" callerID="'+n.callerID+'"><Parameters>';e+="</Parameters></Request>";var t=String.format(AgoraLib.MESSAGE_REQUEST_TEMPLATE,e),r=new VulcanMessage(AgoraLib.MESSAGE_TYPE);r.setPayload(t),VulcanInterface.addMessageListener(AgoraLib.RESPONSE_TYPE,n.responseCallback),VulcanInterface.dispatchMessage(r);return},this.
checkConnection=function(e){n.getVersionCallback=e;var t=AgoraLib.status.internalClientError.status,r=AgoraLib.status.internalClientError.code,i=VulcanInterface.isAppInstalled("coresync"),s="/Applications/Utilities/Adobe Creative Cloud/ACC/Creative Cloud.app/Contents/MacOS/Creative Cloud";if(navigator.platform=="Win32"||navigator.platform=="Windows")s=navigator.userAgent.indexOf("WOW64")>-1?"C:\\Program Files (x86)\\Adobe\\Adobe Creative Cloud\\ACC\\Creative Cloud.exe":"C:\\Program Files\\Adobe\\Adobe Creative Cloud\\ACC\\Creative Cloud.exe"
;if(!i){var o=window.cep.fs.stat(s);0==o.err&&o.data.isFile()&&(i=!0)}if(!i)log("location does not exist"),t=AgoraLib.status.creativeCloudNotFoundError.status,r=AgoraLib.status.creativeCloudNotFoundError.code;else{var u=VulcanInterface.isAppRunning("coresync");if(!!u){this.checkVersion();return}u=VulcanInterface.launchApp("creativecloud",!1,"");if(!u){var a=window.cep.process.createProcess(s,"&");if(0==a.err){var f=a.data;log("createProcess succeed, "+f);var l=window.cep.process.isRunning(f);0==l
.err&&1==l.data&&(u=!0)}}if(u){log("ACCC is now being launched");var c=function(e){log("ACCC started up"),VulcanInterface.removeMessageListener(AgoraLib.ACCC_STARTED_UP_MESSAGE,this),this.checkVersion};VulcanInterface.addMessageListener(AgoraLib.ACCC_STARTED_UP_MESSAGE,c);return}t=AgoraLib.status.creativeCloudFailedToLaunchError.status,r=AgoraLib.status.creativeCloudFailedToLaunchError.code}var h=new AgoraLibResponse("",t,r);e(h)},this.compareVersion=function(e,t){var n,r,i,s=/(\.0)+[^\.]*$/;e=(e+""
).replace(s,"").split("."),t=(t+"").replace(s,"").split("."),i=Math.min(e.length,t.length);for(n=0;n<i;n++){r=parseInt(e[n],10)-parseInt(t[n],10);if(r!==0)return r}return e.length-t.length}}function AgoraLibResponse(e,t,n){this.response=e,this.status=t,this.statusCode=n}var requirejs,require,define;(function(e){function h(e,t){return f.call(e,t)}function p(e,t){var n,r,i,s,o,a,f,l,h,p,d,v=t&&t.split("/"),m=u.map,g=m&&m["*"]||{};if(e&&e.charAt(0)===".")if(t){e=e.split("/"),o=e.length-1,u.nodeIdCompat&&
c.test(e[o])&&(e[o]=e[o].replace(c,"")),e=v.slice(0,v.length-1).concat(e);for(h=0;h<e.length;h+=1){d=e[h];if(d===".")e.splice(h,1),h-=1;else if(d===".."){if(h===1&&(e[2]===".."||e[0]===".."))break;h>0&&(e.splice(h-1,2),h-=2)}}e=e.join("/")}else e.indexOf("./")===0&&(e=e.substring(2));if((v||g)&&m){n=e.split("/");for(h=n.length;h>0;h-=1){r=n.slice(0,h).join("/");if(v)for(p=v.length;p>0;p-=1){i=m[v.slice(0,p).join("/")];if(i){i=i[r];if(i){s=i,a=h;break}}}if(s)break;!f&&g&&g[r]&&(f=g[r],l=h)}!s&&f&&
(s=f,a=l),s&&(n.splice(0,a,s),e=n.join("/"))}return e}function d(t,r){return function(){var i=l.call(arguments,0);return typeof i[0]!="string"&&i.length===1&&i.push(null),n.apply(e,i.concat([t,r]))}}function v(e){return function(t){return p(t,e)}}function m(e){return function(t){s[e]=t}}function g(n){if(h(o,n)){var r=o[n];delete o[n],a[n]=!0,t.apply(e,r)}if(!h(s,n)&&!h(a,n))throw new Error("No "+n);return s[n]}function y(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring
(n+1,e.length)),[t,e]}function b(e){return function(){return u&&u.config&&u.config[e]||{}}}var t,n,r,i,s={},o={},u={},a={},f=Object.prototype.hasOwnProperty,l=[].slice,c=/\.js$/;r=function(e,t){var n,r=y(e),i=r[0];return e=r[1],i&&(i=p(i,t),n=g(i)),i?n&&n.normalize?e=n.normalize(e,v(t)):e=p(e,t):(e=p(e,t),r=y(e),i=r[0],e=r[1],i&&(n=g(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},i={require:function(e){return d(e)},exports:function(e){var t=s[e];return typeof t!="undefined"?t:s[e]={}},module:function(e){return{
id:e,uri:"",exports:s[e],config:b(e)}}},t=function(t,n,u,f){var l,c,p,v,y,b=[],w=typeof u,E;f=f||t;if(w==="undefined"||w==="function"){n=!n.length&&u.length?["require","exports","module"]:n;for(y=0;y<n.length;y+=1){v=r(n[y],f),c=v.f;if(c==="require")b[y]=i.require(t);else if(c==="exports")b[y]=i.exports(t),E=!0;else if(c==="module")l=b[y]=i.module(t);else if(h(s,c)||h(o,c)||h(a,c))b[y]=g(c);else{if(!v.p)throw new Error(t+" missing "+c);v.p.load(v.n,d(f,!0),m(c),{}),b[y]=s[c]}}p=u?u.apply(s[t],b):
undefined;if(t)if(l&&l.exports!==e&&l.exports!==s[t])s[t]=l.exports;else if(p!==e||!E)s[t]=p}else t&&(s[t]=u)},requirejs=require=n=function(s,o,a,f,l){if(typeof s=="string")return i[s]?i[s](o):g(r(s,o).f);if(!s.splice){u=s,u.deps&&n(u.deps,u.callback);if(!o)return;o.splice?(s=o,o=a,a=null):s=e}return o=o||function(){},typeof a=="function"&&(a=f,f=l),f?t(e,s,o,a):setTimeout(function(){t(e,s,o,a)},4),n},n.config=function(e){return n(e)},requirejs._defined=s,define=function(e,t,n){if(typeof e!="string"
)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),!h(s,e)&&!h(o,e)&&(o[e]=[e,t,n])},define.amd={jQuery:!0}})(),define("../components/almond/almond",function(){}),!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(a,b){function s(e){var t=!!e&&"length"in 
e&&e.length,r=n.type(e);return"function"===r||n.isWindow(e)?!1:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in e}function z(e,t,r){if(n.isFunction(t))return n.grep(e,function(e,n){return!!t.call(e,n,e)!==r});if(t.nodeType)return n.grep(e,function(e){return e===t!==r});if("string"==typeof t){if(y.test(t))return n.filter(t,e,r);t=n.filter(t,e)}return n.grep(e,function(e){return h.call(t,e)>-1!==r})}function F(e,t){while((e=e[t])&&1!==e.nodeType);return e}function H(e){var t={};return n.each(e.match
(G)||[],function(e,n){t[n]=!0}),t}function J(){d.removeEventListener("DOMContentLoaded",J),a.removeEventListener("load",J),n.ready()}function M(){this.expando=n.expando+M.uid++}function R(e,t,r){var i;if(void 0===r&&1===e.nodeType)if(i="data-"+t.replace(Q,"-$&").toLowerCase(),r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:P.test(r)?n.parseJSON(r):r}catch(s){}O.set(e,t,r)}else r=void 0;return r}function W(e,t,r,i){var s,o=1,u=20,a=i?function(
){return i.cur()}:function(){return n.css(e,t,"")},f=a(),l=r&&r[3]||(n.cssNumber[t]?"":"px"),c=(n.cssNumber[t]||"px"!==l&&+f)&&T.exec(n.css(e,t));if(c&&c[3]!==l){l=l||c[3],r=r||[],c=+f||1;do o=o||".5",c/=o,n.style(e,t,c+l);while(o!==(o=a()/f)&&1!==o&&--u)}return r&&(c=+c||+f||0,s=r[1]?c+(r[1]+1)*r[2]:+r[2],i&&(i.unit=l,i.start=c,i.end=s)),s}function _(e,t){var r="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"
):[];return void 0===t||t&&n.nodeName(e,t)?n.merge([e],r):r}function aa(e,t){for(var n=0,r=e.length;r>n;n++)N.set(e[n],"globalEval",!t||N.get(t[n],"globalEval"))}function ca(e,t,r,i,s){for(var o,u,a,f,l,c,h=t.createDocumentFragment(),p=[],d=0,v=e.length;v>d;d++)if(o=e[d],o||0===o)if("object"===n.type(o))n.merge(p,o.nodeType?[o]:o);else if(ba.test(o)){u=u||h.appendChild(t.createElement("div")),a=(Y.exec(o)||["",""])[1].toLowerCase(),f=$[a]||$._default,u.innerHTML=f[1]+n.htmlPrefilter(o)+f[2],c=f[0
];while(c--)u=u.lastChild;n.merge(p,u.childNodes),u=h.firstChild,u.textContent=""}else p.push(t.createTextNode(o));h.textContent="",d=0;while(o=p[d++])if(i&&n.inArray(o,i)>-1)s&&s.push(o);else if(l=n.contains(o.ownerDocument,o),u=_(h.appendChild(o),"script"),l&&aa(u),r){c=0;while(o=u[c++])Z.test(o.type||"")&&r.push(o)}return h}function ga(){return!0}function ha(){return!1}function ia(){try{return d.activeElement}catch(e){}}function ja(e,t,r,i,s,o){var u,a;if("object"==typeof t){"string"!=typeof r&&
(i=i||r,r=void 0);for(a in t)ja(e,a,r,i,t[a],o);return e}if(null==i&&null==s?(s=r,i=r=void 0):null==s&&("string"==typeof r?(s=i,i=void 0):(s=i,i=r,r=void 0)),s===!1)s=ha;else if(!s)return this;return 1===o&&(u=s,s=function(e){return n().off(e),u.apply(this,arguments)},s.guid=u.guid||(u.guid=n.guid++)),e.each(function(){n.event.add(this,t,s,i,r)})}function pa(e,t){return n.nodeName(e,"table")&&n.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e:e}function qa(e){return e
.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ra(e){var t=na.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function sa(e,t){var r,i,s,o,u,a,f,l;if(1===t.nodeType){if(N.hasData(e)&&(o=N.access(e),u=N.set(t,o),l=o.events)){delete u.handle,u.events={};for(s in l)for(r=0,i=l[s].length;i>r;r++)n.event.add(t,s,l[s][r])}O.hasData(e)&&(a=O.access(e),f=n.extend({},a),O.set(t,f))}}function ta(e,t){var n=t.nodeName.toLowerCase();"input"===n&&X.test(e.type)?t.checked=e.checked:("input"===
n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function ua(e,t,r,i){t=f.apply([],t);var s,o,u,a,c,h,p=0,d=e.length,v=d-1,m=t[0],g=n.isFunction(m);if(g||d>1&&"string"==typeof m&&!l.checkClone&&ma.test(m))return e.each(function(n){var s=e.eq(n);g&&(t[0]=m.call(this,n,s.html())),ua(s,t,r,i)});if(d&&(s=ca(t,e[0].ownerDocument,!1,e,i),o=s.firstChild,1===s.childNodes.length&&(s=o),o||i)){for(u=n.map(_(s,"script"),qa),a=u.length;d>p;p++)c=s,p!==v&&(c=n.clone(c,!0,!0),a&&n.merge(u,_(c,"script"))),r.
call(e[p],c,p);if(a)for(h=u[u.length-1].ownerDocument,n.map(u,ra),p=0;a>p;p++)c=u[p],Z.test(c.type||"")&&!N.access(c,"globalEval")&&n.contains(h,c)&&(c.src?n._evalUrl&&n._evalUrl(c.src):n.globalEval(c.textContent.replace(oa,"")))}return e}function va(e,t,r){for(var i,s=t?n.filter(t,e):e,o=0;null!=(i=s[o]);o++)r||1!==i.nodeType||n.cleanData(_(i)),i.parentNode&&(r&&n.contains(i.ownerDocument,i)&&aa(_(i,"script")),i.parentNode.removeChild(i));return e}function ya(e,t){var r=n(t.createElement(e)).appendTo
(t.body),i=n.css(r[0],"display");return r.detach(),i}function za(e){var t=d,r=xa[e];return r||(r=ya(e,t),"none"!==r&&r||(wa=(wa||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=wa[0].contentDocument,t.write(),t.close(),r=ya(e,t),wa.detach()),xa[e]=r),r}function Fa(e,t,r){var i,s,o,u,a=e.style;return r=r||Ca(e),r&&(u=r.getPropertyValue(t)||r[t],""!==u||n.contains(e.ownerDocument,e)||(u=n.style(e,t)),!l.pixelMarginRight()&&Ba.test(u)&&Aa.test(t)&&(i=a.width,s=a.minWidth
,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=u,u=r.width,a.width=i,a.minWidth=s,a.maxWidth=o)),void 0!==u?u+"":u}function Ga(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function Ma(e){if(e in La)return e;var t=e[0].toUpperCase()+e.slice(1),n=Ka.length;while(n--)if(e=Ka[n]+t,e in La)return e}function Na(e,t,n){var r=T.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Oa(e,t,r,i,s){for(var o=r===(i?"border":"content")?4:"width"===t?1
:0,u=0;4>o;o+=2)"margin"===r&&(u+=n.css(e,r+U[o],!0,s)),i?("content"===r&&(u-=n.css(e,"padding"+U[o],!0,s)),"margin"!==r&&(u-=n.css(e,"border"+U[o]+"Width",!0,s))):(u+=n.css(e,"padding"+U[o],!0,s),"padding"!==r&&(u+=n.css(e,"border"+U[o]+"Width",!0,s)));return u}function Pa(e,t,r){var i=!0,s="width"===t?e.offsetWidth:e.offsetHeight,o=Ca(e),u="border-box"===n.css(e,"boxSizing",!1,o);if(d.msFullscreenElement&&a.top!==a&&e.getClientRects().length&&(s=Math.round(100*e.getBoundingClientRect()[t])),0>=
s||null==s){if(s=Fa(e,t,o),(0>s||null==s)&&(s=e.style[t]),Ba.test(s))return s;i=u&&(l.boxSizingReliable()||s===e.style[t]),s=parseFloat(s)||0}return s+Oa(e,t,r||(u?"border":"content"),i,o)+"px"}function Qa(e,t){for(var r,i,s,o=[],u=0,a=e.length;a>u;u++)i=e[u],i.style&&(o[u]=N.get(i,"olddisplay"),r=i.style.display,t?(o[u]||"none"!==r||(i.style.display=""),""===i.style.display&&V(i)&&(o[u]=N.access(i,"olddisplay",za(i.nodeName)))):(s=V(i),"none"===r&&s||N.set(i,"olddisplay",s?r:n.css(i,"display")))
);for(u=0;a>u;u++)i=e[u],i.style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?o[u]||"":"none"));return e}function Ra(e,t,n,r,i){return new Ra.prototype.init(e,t,n,r,i)}function Wa(){return a.setTimeout(function(){Sa=void 0}),Sa=n.now()}function Xa(e,t){var n,r=0,i={height:e};for(t=t?1:0;4>r;r+=2-t)n=U[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function Ya(e,t,n){for(var r,i=(_a.tweeners[t]||[]).concat(_a.tweeners["*"]),s=0,o=i.length;o>s;s++)if(
r=i[s].call(n,t,e))return r}function Za(e,t,r){var i,s,o,u,a,f,l,c,h=this,p={},d=e.style,v=e.nodeType&&V(e),m=N.get(e,"fxshow");r.queue||(a=n._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,f=a.empty.fire,a.empty.fire=function(){a.unqueued||f()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,n.queue(e,"fx").length||a.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(r.overflow=[d.overflow,d.overflowX,d.overflowY],l=n.css(e,"display"),c="none"===l?N.get(e,"olddisplay"
)||za(e.nodeName):l,"inline"===c&&"none"===n.css(e,"float")&&(d.display="inline-block")),r.overflow&&(d.overflow="hidden",h.always(function(){d.overflow=r.overflow[0],d.overflowX=r.overflow[1],d.overflowY=r.overflow[2]}));for(i in t)if(s=t[i],Ua.exec(s)){if(delete t[i],o=o||"toggle"===s,s===(v?"hide":"show")){if("show"!==s||!m||void 0===m[i])continue;v=!0}p[i]=m&&m[i]||n.style(e,i)}else l=void 0;if(n.isEmptyObject(p))"inline"===("none"===l?za(e.nodeName):l)&&(d.display=l);else{m?"hidden"in m&&(v=
m.hidden):m=N.access(e,"fxshow",{}),o&&(m.hidden=!v),v?n(e).show():h.done(function(){n(e).hide()}),h.done(function(){var t;N.remove(e,"fxshow");for(t in p)n.style(e,t,p[t])});for(i in p)u=Ya(v?m[i]:0,i,h),i in m||(m[i]=u.start,v&&(u.end=u.start,u.start="width"===i||"height"===i?1:0))}}function $a(e,t){var r,i,s,o,u;for(r in e)if(i=n.camelCase(r),s=t[i],o=e[r],n.isArray(o)&&(s=o[1],o=e[r]=o[0]),r!==i&&(e[i]=o,delete e[r]),u=n.cssHooks[i],u&&"expand"in u){o=u.expand(o),delete e[i];for(r in o)r in e||
(e[r]=o[r],t[r]=s)}else t[i]=s}function _a(e,t,r){var i,s,o=0,u=_a.prefilters.length,a=n.Deferred().always(function(){delete f.elem}),f=function(){if(s)return!1;for(var t=Sa||Wa(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,i=1-r,o=0,u=l.tweens.length;u>o;o++)l.tweens[o].run(i);return a.notifyWith(e,[l,i,n]),1>i&&u?n:(a.resolveWith(e,[l]),!1)},l=a.promise({elem:e,props:n.extend({},t),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},r),originalProperties:t,originalOptions:
r,startTime:Sa||Wa(),duration:r.duration,tweens:[],createTween:function(t,r){var i=n.Tween(e,l.opts,t,r,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(i),i},stop:function(t){var n=0,r=t?l.tweens.length:0;if(s)return this;for(s=!0;r>n;n++)l.tweens[n].run(1);return t?(a.notifyWith(e,[l,1,0]),a.resolveWith(e,[l,t])):a.rejectWith(e,[l,t]),this}}),c=l.props;for($a(c,l.opts.specialEasing);u>o;o++)if(i=_a.prefilters[o].call(l,e,c,l.opts))return n.isFunction(i.stop)&&(n._queueHooks(l.elem,l
.opts.queue).stop=n.proxy(i.stop,i)),i;return n.map(c,Ya,l),n.isFunction(l.opts.start)&&l.opts.start.call(e,l),n.fx.timer(n.extend(f,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function fb(e){return e.getAttribute&&e.getAttribute("class")||""}function vb(e){return function(t,r){"string"!=typeof t&&(r=t,t="*");var i,s=0,o=t.toLowerCase().match(G)||[];if(n.isFunction(r))while(i=o[s++])"+"===i[0]?(i=i.slice
(1)||"*",(e[i]=e[i]||[]).unshift(r)):(e[i]=e[i]||[]).push(r)}}function wb(e,t,r,i){function u(l){var h;return s[l]=!0,n.each(e[l]||[],function(e,n){var a=n(t,r,i);return"string"!=typeof a||o||s[a]?o?!(h=a):void 0:(t.dataTypes.unshift(a),u(a),!1)}),h}var s={},o=e===sb;return u(t.dataTypes[0])||!s["*"]&&u("*")}function xb(e,t){var r,i,s=n.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((s[r]?e:i||(i={}))[r]=t[r]);return i&&n.extend(!0,e,i),e}function yb(e,t,n){var r,i,s,o,u=e.contents,a=e.dataTypes
;while("*"===a[0])a.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in u)if(u[i]&&u[i].test(r)){a.unshift(i);break}if(a[0]in n)s=a[0];else{for(i in n){if(!a[0]||e.converters[i+" "+a[0]]){s=i;break}o||(o=i)}s=s||o}return s?(s!==a[0]&&a.unshift(s),n[s]):void 0}function zb(e,t,n,r){var i,s,o,u,a,f={},l=e.dataTypes.slice();if(l[1])for(o in e.converters)f[o.toLowerCase()]=e.converters[o];s=l.shift();while(s)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!a&&r&&e.
dataFilter&&(t=e.dataFilter(t,e.dataType)),a=s,s=l.shift())if("*"===s)s=a;else if("*"!==a&&a!==s){if(o=f[a+" "+s]||f["* "+s],!o)for(i in f)if(u=i.split(" "),u[1]===s&&(o=f[a+" "+u[0]]||f["* "+u[0]])){o===!0?o=f[i]:f[i]!==!0&&(s=u[0],l.unshift(u[1]));break}if(o!==!0)if(o&&e["throws"])t=o(t);else try{t=o(t)}catch(c){return{state:"parsererror",error:o?c:"No conversion from "+a+" to "+s}}}return{state:"success",data:t}}function Fb(e,t,r,i){var s;if(n.isArray(t))n.each(t,function(t,n){r||Bb.test(e)?i(
e,n):Fb(e+"["+("object"==typeof n&&null!=n?t:"")+"]",n,r,i)});else if(r||"object"!==n.type(t))i(e,t);else for(s in t)Fb(e+"["+s+"]",t[s],r,i)}function Lb(e){return n.isWindow(e)?e:9===e.nodeType&&e.defaultView}var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="2.2.0",n=function(e,t){return new n.fn.init(e,t)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(e,t){return t.toUpperCase()};n.fn=n.prototype={jquery:m
,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:e.call(this)},pushStack:function(e){var t=n.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return n.each(this,e)},map:function(e){return this.pushStack(n.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(
){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var e,t,r,i,s,o,u=arguments[0]||{},a=1,f=arguments.length,l=!1;for("boolean"==typeof u&&(l=u,u=arguments[a]||{},a++),"object"==typeof u||n.isFunction(u)||(u={}),a===f&&(u=this,a--);f>a;a++)if(null!=(e=arguments[a]))for(t in e)r=u[t],i=e[t],u!==i&&(l&&i&&(n.
isPlainObject(i)||(s=n.isArray(i)))?(s?(s=!1,o=r&&n.isArray(r)?r:[]):o=r&&n.isPlainObject(r)?r:{},u[t]=n.extend(l,o,i)):void 0!==i&&(u[t]=i));return u},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===n.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!n.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject
:function(e){return"object"!==n.type(e)||e.nodeType||n.isWindow(e)?!1:e.constructor&&!k.call(e.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?i[j.call(e)]||"object":typeof e},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=d.createElement("script"),b.text=a,d.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(
e){return e.replace(p,"ms-").replace(q,r)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(s(e)){for(n=e.length;n>r;r++)if(t.call(e[r],r,e[r])===!1)break}else for(r in e)if(t.call(e[r],r,e[r])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(o,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(s(Object(e))?n.merge(r,"string"==typeof e?[e]:e):g.call(r,e)),r},inArray:function(e,t,n){return null==t?-1:
h.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;n>r;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],s=0,o=e.length,u=!n;o>s;s++)r=!t(e[s],s),r!==u&&i.push(e[s]);return i},map:function(e,t,n){var r,i,o=0,u=[];if(s(e))for(r=e.length;r>o;o++)i=t(e[o],o,n),null!=i&&u.push(i);else for(o in e)i=t(e[o],o,n),null!=i&&u.push(i);return f.apply([],u)},guid:1,proxy:function(t,r){var i,s,o;return"string"==typeof r&&(i=t[r],r=t,t=i),n.isFunction(t)?(s=e.call(arguments
,2),o=function(){return t.apply(r||this,s.concat(e.call(arguments)))},o.guid=t.guid=t.guid||n.guid++,o):void 0},now:Date.now,support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){i["[object "+t+"]"]=t.toLowerCase()});var t=function(e){function st(e,t,r,i){var s,u,f,l,c,d,g,y,S=t&&t.ownerDocument,x=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)
return r;if(!i&&((t?t.ownerDocument||t:E)!==p&&h(t),t=t||p,v)){if(11!==x&&(d=Y.exec(e)))if(s=d[1]){if(9===x){if(!(f=t.getElementById(s)))return r;if(f.id===s)return r.push(f),r}else if(S&&(f=S.getElementById(s))&&b(t,f)&&f.id===s)return r.push(f),r}else{if(d[2])return D.apply(r,t.getElementsByTagName(e)),r;if((s=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return D.apply(r,t.getElementsByClassName(s)),r}if(n.qsa&&!C[e+" "]&&(!m||!m.test(e))){if(1!==x)S=t,y=e;else if("object"!==t.nodeName
.toLowerCase()){(l=t.getAttribute("id"))?l=l.replace(et,"\\$&"):t.setAttribute("id",l=w),g=o(e),u=g.length,c=$.test(l)?"#"+l:"[id='"+l+"']";while(u--)g[u]=c+" "+mt(g[u]);y=g.join(","),S=Z.test(e)&&dt(t.parentNode)||t}if(y)try{return D.apply(r,S.querySelectorAll(y)),r}catch(T){}finally{l===w&&t.removeAttribute("id")}}}return a(e.replace(U,"$1"),t,r,i)}function ot(){function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function ut(e){return e[w]=!0,e}function at
(e){var t=p.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ft(e,t){var n=e.split("|"),i=n.length;while(i--)r.attrHandle[n[i]]=t}function lt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||L)-(~e.sourceIndex||L);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ct(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function ht(e){return function(
t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function pt(e){return ut(function(t){return t=+t,ut(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function dt(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function vt(){}function mt(e){for(var t=0,n=e.length,r="";n>t;t++)r+=e[t].value;return r}function gt(e,t,n){var r=t.dir,i=n&&"parentNode"===r,s=x++;return t.first?function(t,n,s){while(t=t[r])if(1===t.nodeType||
i)return e(t,n,s)}:function(t,n,o){var u,a,f,l=[S,s];if(o){while(t=t[r])if((1===t.nodeType||i)&&e(t,n,o))return!0}else while(t=t[r])if(1===t.nodeType||i){if(f=t[w]||(t[w]={}),a=f[t.uniqueID]||(f[t.uniqueID]={}),(u=a[r])&&u[0]===S&&u[1]===s)return l[2]=u[2];if(a[r]=l,l[2]=e(t,n,o))return!0}}}function yt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function bt(e,t,n){for(var r=0,i=t.length;i>r;r++)st(e,t[r],n);return n}function wt(e,t,n,r,i){
for(var s,o=[],u=0,a=e.length,f=null!=t;a>u;u++)(s=e[u])&&(!n||n(s,r,i))&&(o.push(s),f&&t.push(u));return o}function Et(e,t,n,r,i,s){return r&&!r[w]&&(r=Et(r)),i&&!i[w]&&(i=Et(i,s)),ut(function(s,o,u,a){var f,l,c,h=[],p=[],d=o.length,v=s||bt(t||"*",u.nodeType?[u]:u,[]),m=!e||!s&&t?v:wt(v,h,e,u,a),g=n?i||(s?e:d||r)?[]:o:m;if(n&&n(m,g,u,a),r){f=wt(g,p),r(f,[],u,a),l=f.length;while(l--)(c=f[l])&&(g[p[l]]=!(m[p[l]]=c))}if(s){if(i||e){if(i){f=[],l=g.length;while(l--)(c=g[l])&&f.push(m[l]=c);i(null,g=[
],f,a)}l=g.length;while(l--)(c=g[l])&&(f=i?H(s,c):h[l])>-1&&(s[f]=!(o[f]=c))}}else g=wt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):D.apply(o,g)})}function St(e){for(var t,n,i,s=e.length,o=r.relative[e[0].type],u=o||r.relative[" "],a=o?1:0,l=gt(function(e){return e===t},u,!0),c=gt(function(e){return H(t,e)>-1},u,!0),h=[function(e,n,r){var i=!o&&(r||n!==f)||((t=n).nodeType?l(e,n,r):c(e,n,r));return t=null,i}];s>a;a++)if(n=r.relative[e[a].type])h=[gt(yt(h),n)];else{if(n=r.filter[e[a].type].apply(
null,e[a].matches),n[w]){for(i=++a;s>i;i++)if(r.relative[e[i].type])break;return Et(a>1&&yt(h),a>1&&mt(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(U,"$1"),n,i>a&&St(e.slice(a,i)),s>i&&St(e=e.slice(i)),s>i&&mt(e))}h.push(n)}return yt(h)}function xt(e,t){var n=t.length>0,i=e.length>0,s=function(s,o,u,a,l){var c,d,m,g=0,y="0",b=s&&[],w=[],E=f,x=s||i&&r.find.TAG("*",l),T=S+=null==E?1:Math.random()||.1,N=x.length;for(l&&(f=o===p||o||l);y!==N&&null!=(c=x[y]);y++){if(i&&c){d=0,o||c.
ownerDocument===p||(h(c),u=!v);while(m=e[d++])if(m(c,o||p,u)){a.push(c);break}l&&(S=T)}n&&((c=!m&&c)&&g--,s&&b.push(c))}if(g+=y,n&&y!==g){d=0;while(m=t[d++])m(b,w,o,u);if(s){if(g>0)while(y--)b[y]||w[y]||(w[y]=M.call(a));w=wt(w)}D.apply(a,w),l&&!s&&w.length>0&&g+t.length>1&&st.uniqueSort(a)}return l&&(S=T,f=E),b};return n?ut(s):s}var t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w="sizzle"+1*new Date,E=e.document,S=0,x=0,T=ot(),N=ot(),C=ot(),k=function(e,t){return e===t&&(c=!0),0},L=1<<31,A={}.hasOwnProperty
,O=[],M=O.pop,_=O.push,D=O.push,P=O.slice,H=function(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",I="\\["+j+"*("+F+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+j+"*\\]",q=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+
I+")*)|.*)\\)|)",R=new RegExp(j+"+","g"),U=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g"),z=new RegExp("^"+j+"*,"+j+"*"),W=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),X=new RegExp("="+j+"*([^\\]'\"]*?)"+j+"*\\]","g"),V=new RegExp(q),$=new RegExp("^"+F+"$"),J={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+
j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+B+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,G=/^[^{]+\{\s*\[native \w/,Y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,et=/'|\\/g,tt=new RegExp("\\\\([\\da-f]{1,6}"+j+"?|("+j+")|.)","ig"),nt=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode
(r>>10|55296,1023&r|56320)},rt=function(){h()};try{D.apply(O=P.call(E.childNodes),E.childNodes),O[E.childNodes.length].nodeType}catch(it){D={apply:O.length?function(e,t){_.apply(e,P.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}n=st.support={},s=st.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},h=st.setDocument=function(e){var t,i,o=e?e.ownerDocument||e:E;return o!==p&&9===o.nodeType&&o.documentElement?(p=o,d=p.documentElement
,v=!s(p),(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",rt,!1):i.attachEvent&&i.attachEvent("onunload",rt)),n.attributes=at(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=at(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=G.test(p.getElementsByClassName),n.getById=at(function(e){return d.appendChild(e).id=w,!p.getElementsByName||!p.getElementsByName(w).length
}),n.getById?(r.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&v){var n=t.getElementById(e);return n?[n]:[]}},r.filter.ID=function(e){var t=e.replace(tt,nt);return function(e){return e.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(tt,nt);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?
t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,s=t.getElementsByTagName(e);if("*"===e){while(n=s[i++])1===n.nodeType&&r.push(n);return r}return s},r.find.CLASS=n.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&v?t.getElementsByClassName(e):void 0},g=[],m=[],(n.qsa=G.test(p.querySelectorAll))&&(at(function(e){d.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>"
,e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+j+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+j+"*(?:value|"+B+")"),e.querySelectorAll("[id~="+w+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]")}),at(function(e){var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push
("name"+j+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=G.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&at(function(e){n.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),g.push("!=",q)}),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),t=G.test(d.compareDocumentPosition),b=t||G.test(d.contains)?function(e
,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!!r&&1===r.nodeType&&!!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},k=t?function(e,t){if(e===t)return c=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===
p||e.ownerDocument===E&&b(E,e)?-1:t===p||t.ownerDocument===E&&b(E,t)?1:l?H(l,e)-H(l,t):0:4&r?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,r=0,i=e.parentNode,s=t.parentNode,o=[e],u=[t];if(!i||!s)return e===p?-1:t===p?1:i?-1:s?1:l?H(l,e)-H(l,t):0;if(i===s)return lt(e,t);n=e;while(n=n.parentNode)o.unshift(n);n=t;while(n=n.parentNode)u.unshift(n);while(o[r]===u[r])r++;return r?lt(o[r],u[r]):o[r]===E?-1:u[r]===E?1:0},p):p},st.matches=function(e,t){return st(e,null,null,t)},st.matchesSelector=function(
e,t){if((e.ownerDocument||e)!==p&&h(e),t=t.replace(X,"='$1']"),n.matchesSelector&&v&&!C[t+" "]&&(!g||!g.test(t))&&(!m||!m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return st(t,p,null,[e]).length>0},st.contains=function(e,t){return(e.ownerDocument||e)!==p&&h(e),b(e,t)},st.attr=function(e,t){(e.ownerDocument||e)!==p&&h(e);var i=r.attrHandle[t.toLowerCase()],s=i&&A.call(r.attrHandle,t.toLowerCase())?i(e,t,!v):void 0;return void 0!==
s?s:n.attributes||!v?e.getAttribute(t):(s=e.getAttributeNode(t))&&s.specified?s.value:null},st.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},st.uniqueSort=function(e){var t,r=[],i=0,s=0;if(c=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(k),c){while(t=e[s++])t===e[s]&&(i=r.push(s));while(i--)e.splice(r[i],1)}return l=null,e},i=st.getText=function(e){var t,n="",r=0,s=e.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof e.textContent)return e.textContent
;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===s||4===s)return e.nodeValue}else while(t=e[r++])n+=i(t);return n},r=st.selectors={cacheLength:50,createPseudo:ut,match:J,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(tt,nt),e[3]=(e[3]||e[4]||e[5]||"").replace(tt,nt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e
[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||st.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&st.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return J.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(tt,nt).toLowerCase();return"*"===e?function(){return!0}
:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+j+")"+e+"("+j+"|$)"))&&T(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=st.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===
n:"~="===t?(" "+i.replace(R," ")+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var s="nth"!==e.slice(0,3),o="last"!==e.slice(-4),u="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,a){var f,l,c,h,p,d,v=s!==o?"nextSibling":"previousSibling",m=t.parentNode,g=u&&t.nodeName.toLowerCase(),y=!a&&!u,b=!1;if(m){if(s){while(v){h=t;while(h=h[v])if(u?h.nodeName.toLowerCase()===g:1===h.nodeType)return!1;d=v="only"===e&&!d&&"nextSibling"
}return!0}if(d=[o?m.firstChild:m.lastChild],o&&y){h=m,c=h[w]||(h[w]={}),l=c[h.uniqueID]||(c[h.uniqueID]={}),f=l[e]||[],p=f[0]===S&&f[1],b=p&&f[2],h=p&&m.childNodes[p];while(h=++p&&h&&h[v]||(b=p=0)||d.pop())if(1===h.nodeType&&++b&&h===t){l[e]=[S,p,b];break}}else if(y&&(h=t,c=h[w]||(h[w]={}),l=c[h.uniqueID]||(c[h.uniqueID]={}),f=l[e]||[],p=f[0]===S&&f[1],b=p),b===!1)while(h=++p&&h&&h[v]||(b=p=0)||d.pop())if((u?h.nodeName.toLowerCase()===g:1===h.nodeType)&&++b&&(y&&(c=h[w]||(h[w]={}),l=c[h.uniqueID]||
(c[h.uniqueID]={}),l[e]=[S,b]),h===t))break;return b-=i,b===r||b%r===0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||st.error("unsupported pseudo: "+e);return i[w]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ut(function(e,n){var r,s=i(e,t),o=s.length;while(o--)r=H(e,s[o]),e[r]=!(n[r]=s[o])}):function(e){return i(e,0,n)}):i}},pseudos:{not:ut(function(e){var t=[],n=[],r=u(e.replace(U,"$1"));return r[w]?ut(function(e,t,n,i){var s,
o=r(e,null,i,[]),u=e.length;while(u--)(s=o[u])&&(e[u]=!(t[u]=s))}):function(e,i,s){return t[0]=e,r(t,null,s,n),t[0]=null,!n.pop()}}),has:ut(function(e){return function(t){return st(e,t).length>0}}),contains:ut(function(e){return e=e.replace(tt,nt),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:ut(function(e){return $.test(e||"")||st.error("unsupported lang: "+e),e=e.replace(tt,nt).toLowerCase(),function(t){var n;do if(n=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute
("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===
t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===
e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:pt(function(){return[0]}),last:pt(function(e,t){return[t-1]}),eq:pt(function(e,t,n){return[0>n?n+t:n]}),even:pt(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:pt(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:pt(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:pt(function(e,t,n){for(var r=0>n?n+t:n;++r<t;)e.push(r);return e})}},r.pseudos.nth=r.pseudos.eq;for(t in{radio:!0,checkbox
:!0,file:!0,password:!0,image:!0})r.pseudos[t]=ct(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=ht(t);return vt.prototype=r.filters=r.pseudos,r.setFilters=new vt,o=st.tokenize=function(e,t){var n,i,s,o,u,a,f,l=N[e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=r.preFilter;while(u){(!n||(i=z.exec(u)))&&(i&&(u=u.slice(i[0].length)||u),a.push(s=[])),n=!1,(i=W.exec(u))&&(n=i.shift(),s.push({value:n,type:i[0].replace(U," ")}),u=u.slice(n.length));for(o in r.filter)!(i=J[o].exec(u))||f[o]&&!(i=f[o](i))||(n=
i.shift(),s.push({value:n,type:o,matches:i}),u=u.slice(n.length));if(!n)break}return t?u.length:u?st.error(e):N(e,a).slice(0)},u=st.compile=function(e,t){var n,r=[],i=[],s=C[e+" "];if(!s){t||(t=o(e)),n=t.length;while(n--)s=St(t[n]),s[w]?r.push(s):i.push(s);s=C(e,xt(i,r)),s.selector=e}return s},a=st.select=function(e,t,i,s){var a,f,l,c,h,p="function"==typeof e&&e,d=!s&&o(e=p.selector||e);if(i=i||[],1===d.length){if(f=d[0]=d[0].slice(0),f.length>2&&"ID"===(l=f[0]).type&&n.getById&&9===t.nodeType&&v&&
r.relative[f[1].type]){if(t=(r.find.ID(l.matches[0].replace(tt,nt),t)||[])[0],!t)return i;p&&(t=t.parentNode),e=e.slice(f.shift().value.length)}a=J.needsContext.test(e)?0:f.length;while(a--){if(l=f[a],r.relative[c=l.type])break;if((h=r.find[c])&&(s=h(l.matches[0].replace(tt,nt),Z.test(f[0].type)&&dt(t.parentNode)||t))){if(f.splice(a,1),e=s.length&&mt(f),!e)return D.apply(i,s),i;break}}}return(p||u(e,d))(s,t,!v,i,!t||Z.test(e)&&dt(t.parentNode)||t),i},n.sortStable=w.split("").sort(k).join("")===w,
n.detectDuplicates=!!c,h(),n.sortDetached=at(function(e){return 1&e.compareDocumentPosition(p.createElement("div"))}),at(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ft("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&at(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ft("value",function(e,t,n){return n||"input"!==
e.nodeName.toLowerCase()?void 0:e.defaultValue}),at(function(e){return null==e.getAttribute("disabled")})||ft(B,function(e,t,n){var r;return n?void 0:e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),st}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(e,t,r){var i=[],s=void 0!==r;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(s&&n(e).is(r))break;
i.push(e)}return i},v=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;n.filter=function(e,t,r){var i=t[0];return r&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?n.find.matchesSelector(i,e)?[i]:[]:n.find.matches(e,n.grep(t,function(e){return 1===e.nodeType}))},n.fn.extend({find:function(e){var t,r=this.length,i=[],s=this;if("string"!=typeof e)return this.pushStack(n(e).filter(
function(){for(t=0;r>t;t++)if(n.contains(s[t],this))return!0}));for(t=0;r>t;t++)n.find(e,s[t],i);return i=this.pushStack(r>1?n.unique(i):i),i.selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(z(this,e||[],!1))},not:function(e){return this.pushStack(z(this,e||[],!0))},is:function(e){return!!z(this,"string"==typeof e&&w.test(e)?n(e):e||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(e,t,r){var i,s;if(!e)return this;if(r=r||A
,"string"==typeof e){if(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:B.exec(e),!i||!i[1]&&t)return!t||t.jquery?(t||r).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof n?t[0]:t,n.merge(this,n.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:d,!0)),x.test(i[1])&&n.isPlainObject(t))for(i in t)n.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return s=d.getElementById(i[2]),s&&s.parentNode&&(this.length=1,this[0]=s),this.context=d,this.selector=e,this}return e
.nodeType?(this.context=this[0]=e,this.length=1,this):n.isFunction(e)?void 0!==r.ready?r.ready(e):e(n):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),n.makeArray(e,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(e){var t=n(e,this),r=t.length;return this.filter(function(){for(var e=0;r>e;e++)if(n.contains(this,t[e]))return!0})},closest:function(e,t){for(var r,i=0,s=this.length,o=[]
,u=w.test(e)||"string"!=typeof e?n(e,t||this.context):0;s>i;i++)for(r=this[i];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(u?u.index(r)>-1:1===r.nodeType&&n.find.matchesSelector(r,e))){o.push(r);break}return this.pushStack(o.length>1?n.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?h.call(n(e),this[0]):h.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(e,t))))},addBack:
function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),n.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return u(e,"parentNode")},parentsUntil:function(e,t,n){return u(e,"parentNode",n)},next:function(e){return F(e,"nextSibling")},prev:function(e){return F(e,"previousSibling")},nextAll:function(e){return u(e,"nextSibling")},prevAll:function(e){return u(e,"previousSibling")},nextUntil:function(e,t,n){return u(e,"nextSibling"
,n)},prevUntil:function(e,t,n){return u(e,"previousSibling",n)},siblings:function(e){return v((e.parentNode||{}).firstChild,e)},children:function(e){return v(e.firstChild)},contents:function(e){return e.contentDocument||n.merge([],e.childNodes)}},function(e,t){n.fn[e]=function(r,i){var s=n.map(this,t,r);return"Until"!==e.slice(-5)&&(i=r),i&&"string"==typeof i&&(s=n.filter(i,s)),this.length>1&&(E[e]||n.uniqueSort(s),D.test(e)&&s.reverse()),this.pushStack(s)}});var G=/\S+/g;n.Callbacks=function(e){
e="string"==typeof e?H(e):n.extend({},e);var t,r,i,s,o=[],u=[],a=-1,f=function(){for(s=e.once,i=t=!0;u.length;a=-1){r=u.shift();while(++a<o.length)o[a].apply(r[0],r[1])===!1&&e.stopOnFalse&&(a=o.length,r=!1)}e.memory||(r=!1),t=!1,s&&(o=r?[]:"")},l={add:function(){return o&&(r&&!t&&(a=o.length-1,u.push(r)),function i(t){n.each(t,function(t,r){n.isFunction(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==n.type(r)&&i(r)})}(arguments),r&&!t&&f()),this},remove:function(){return n.each(arguments
,function(e,t){var r;while((r=n.inArray(t,o,r))>-1)o.splice(r,1),a>=r&&a--}),this},has:function(e){return e?n.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return s=u=[],o=r="",this},disabled:function(){return!o},lock:function(){return s=u=[],r||(o=r=""),this},locked:function(){return!!s},fireWith:function(e,n){return s||(n=n||[],n=[e,n.slice?n.slice():n],u.push(n),t||f()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!
i}};return l},n.extend({Deferred:function(e){var t=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],r="pending",i={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var e=arguments;return n.Deferred(function(r){n.each(t,function(t,o){var u=n.isFunction(e[t])&&e[t];s[o[1]](function(){var e=u&&u.apply(this,arguments);e&&n.isFunction(
e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[o[0]+"With"](this===i?r.promise():this,u?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?n.extend(e,i):i}},s={};return i.pipe=i.then,n.each(t,function(e,n){var o=n[2],u=n[3];i[n[1]]=o.add,u&&o.add(function(){r=u},t[1^e][2].disable,t[2][2].lock),s[n[0]]=function(){return s[n[0]+"With"](this===s?i:this,arguments),this},s[n[0]+"With"]=o.fireWith}),i.promise(s),e&&e.call(s,s),s},when:function(t){var r=0
,i=e.call(arguments),s=i.length,o=1!==s||t&&n.isFunction(t.promise)?s:0,u=1===o?t:n.Deferred(),a=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?e.call(arguments):i,r===f?u.notifyWith(n,r):--o||u.resolveWith(n,r)}},f,l,c;if(s>1)for(f=new Array(s),l=new Array(s),c=new Array(s);s>r;r++)i[r]&&n.isFunction(i[r].promise)?i[r].promise().progress(a(r,l,f)).done(a(r,c,i)).fail(u.reject):--o;return o||u.resolveWith(c,i),u.promise()}});var I;n.fn.ready=function(e){return n.ready.promise
().done(e),this},n.extend({isReady:!1,readyWait:1,holdReady:function(e){e?n.readyWait++:n.ready(!0)},ready:function(e){(e===!0?--n.readyWait:n.isReady)||(n.isReady=!0,e!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}}),n.ready.promise=function(e){return I||(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(n.ready):(d.addEventListener("DOMContentLoaded",J),a.addEventListener
("load",J))),I.promise(e)},n.ready.promise();var K=function(e,t,r,i,s,o,u){var a=0,f=e.length,l=null==r;if("object"===n.type(r)){s=!0;for(a in r)K(e,t,a,r[a],!0,o,u)}else if(void 0!==i&&(s=!0,n.isFunction(i)||(u=!0),l&&(u?(t.call(e,i),t=null):(l=t,t=function(e,t,r){return l.call(n(e),r)})),t))for(;f>a;a++)t(e[a],r,u?i:i.call(e[a],a,t(e[a],r)));return s?e:l?t.call(e):f?t(e[0],r):o},L=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};M.uid=1,M.prototype={register:function(e,t){var n=
t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!L(e))return{};var t=e[this.expando];return t||(t={},L(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[t]=n;else for(r in t)i[r]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando
][t]},access:function(e,t,r){var i;return void 0===t||t&&"string"==typeof t&&void 0===r?(i=this.get(e,t),void 0!==i?i:this.get(e,n.camelCase(t))):(this.set(e,t,r),void 0!==r?r:t)},remove:function(e,t){var r,i,s,o=e[this.expando];if(void 0!==o){if(void 0===t)this.register(e);else{n.isArray(t)?i=t.concat(t.map(n.camelCase)):(s=n.camelCase(t),t in o?i=[t,s]:(i=s,i=i in o?[i]:i.match(G)||[])),r=i.length;while(r--)delete o[i[r]]}(void 0===t||n.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete 
e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!n.isEmptyObject(t)}};var N=new M,O=new M,P=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;n.extend({hasData:function(e){return O.hasData(e)||N.hasData(e)},data:function(e,t,n){return O.access(e,t,n)},removeData:function(e,t){O.remove(e,t)},_data:function(e,t,n){return N.access(e,t,n)},_removeData:function(e,t){N.remove(e,t)}}),n.fn.extend({data:function(e,t){var r,i,s,o=this[0],u=o&&o.attributes;if(void 0===e){if(this.length&&
(s=O.get(o),1===o.nodeType&&!N.get(o,"hasDataAttrs"))){r=u.length;while(r--)u[r]&&(i=u[r].name,0===i.indexOf("data-")&&(i=n.camelCase(i.slice(5)),R(o,i,s[i])));N.set(o,"hasDataAttrs",!0)}return s}return"object"==typeof e?this.each(function(){O.set(this,e)}):K(this,function(t){var r,i;if(o&&void 0===t){if(r=O.get(o,e)||O.get(o,e.replace(Q,"-$&").toLowerCase()),void 0!==r)return r;if(i=n.camelCase(e),r=O.get(o,i),void 0!==r)return r;if(r=R(o,i,void 0),void 0!==r)return r}else i=n.camelCase(e),this.
each(function(){var n=O.get(this,i);O.set(this,i,t),e.indexOf("-")>-1&&void 0!==n&&O.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){O.remove(this,e)})}}),n.extend({queue:function(e,t,r){var i;return e?(t=(t||"fx")+"queue",i=N.get(e,t),r&&(!i||n.isArray(r)?i=N.access(e,t,n.makeArray(r)):i.push(r)),i||[]):void 0},dequeue:function(e,t){t=t||"fx";var r=n.queue(e,t),i=r.length,s=r.shift(),o=n._queueHooks(e,t),u=function(){n.dequeue(e,t)};"inprogress"===
s&&(s=r.shift(),i--),s&&("fx"===t&&r.unshift("inprogress"),delete o.stop,s.call(e,u,o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var r=t+"queueHooks";return N.get(e,r)||N.access(e,r,{empty:n.Callbacks("once memory").add(function(){N.remove(e,[t+"queue",r])})})}}),n.fn.extend({queue:function(e,t){var r=2;return"string"!=typeof e&&(t=e,e="fx",r--),arguments.length<r?n.queue(this[0],e):void 0===t?this:this.each(function(){var r=n.queue(this,e,t);n._queueHooks(this,e),"fx"===e&&"inprogress"!==
r[0]&&n.dequeue(this,e)})},dequeue:function(e){return this.each(function(){n.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var r,i=1,s=n.Deferred(),o=this,u=this.length,a=function(){--i||s.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(u--)r=N.get(o[u],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(a));return a(),s.promise(t)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"
),U=["Top","Right","Bottom","Left"],V=function(e,t){return e=t||e,"none"===n.css(e,"display")||!n.contains(e.ownerDocument,e)},X=/^(?:checkbox|radio)$/i,Y=/<([\w:-]+)/,Z=/^$|\/(?:java|ecma)script/i,$={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};$.optgroup=$.option,$.tbody=$.tfoot=$.colgroup=$.caption=
$.thead,$.th=$.td;var ba=/<|&#?\w+;/;!function(){var e=d.createDocumentFragment(),t=e.appendChild(d.createElement("div")),n=d.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),l.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var da=/^key/,ea=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fa=/^([^.]*)(?:\.(.+)|)/
;n.event={global:{},add:function(e,t,r,i,s){var o,u,a,f,l,c,h,p,d,v,m,g=N.get(e);if(g){r.handler&&(o=r,r=o.handler,s=o.selector),r.guid||(r.guid=n.guid++),(f=g.events)||(f=g.events={}),(u=g.handle)||(u=g.handle=function(t){return"undefined"!=typeof n&&n.event.triggered!==t.type?n.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(G)||[""],l=t.length;while(l--)a=fa.exec(t[l])||[],d=m=a[1],v=(a[2]||"").split(".").sort(),d&&(h=n.event.special[d]||{},d=(s?h.delegateType:h.bindType)||d,h=n.event
.special[d]||{},c=n.extend({type:d,origType:m,data:i,handler:r,guid:r.guid,selector:s,needsContext:s&&n.expr.match.needsContext.test(s),namespace:v.join(".")},o),(p=f[d])||(p=f[d]=[],p.delegateCount=0,h.setup&&h.setup.call(e,i,v,u)!==!1||e.addEventListener&&e.addEventListener(d,u)),h.add&&(h.add.call(e,c),c.handler.guid||(c.handler.guid=r.guid)),s?p.splice(p.delegateCount++,0,c):p.push(c),n.event.global[d]=!0)}},remove:function(e,t,r,i,s){var o,u,a,f,l,c,h,p,d,v,m,g=N.hasData(e)&&N.get(e);if(g&&(
f=g.events)){t=(t||"").match(G)||[""],l=t.length;while(l--)if(a=fa.exec(t[l])||[],d=m=a[1],v=(a[2]||"").split(".").sort(),d){h=n.event.special[d]||{},d=(i?h.delegateType:h.bindType)||d,p=f[d]||[],a=a[2]&&new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=p.length;while(o--)c=p[o],!s&&m!==c.origType||r&&r.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,h.remove&&h.remove.call(e,c));u&&!p.length&&(h.teardown&&
h.teardown.call(e,v,g.handle)!==!1||n.removeEvent(e,d,g.handle),delete f[d])}else for(d in f)n.event.remove(e,d+t[l],r,i,!0);n.isEmptyObject(f)&&N.remove(e,"handle events")}},dispatch:function(t){t=n.event.fix(t);var r,i,s,o,u,a=[],f=e.call(arguments),l=(N.get(this,"events")||{})[t.type]||[],c=n.event.special[t.type]||{};if(f[0]=t,t.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,t)!==!1){a=n.event.handlers.call(this,t,l),r=0;while((o=a[r++])&&!t.isPropagationStopped()){t.currentTarget=
o.elem,i=0;while((u=o.handlers[i++])&&!t.isImmediatePropagationStopped())(!t.rnamespace||t.rnamespace.test(u.namespace))&&(t.handleObj=u,t.data=u.data,s=((n.event.special[u.origType]||{}).handle||u.handler).apply(o.elem,f),void 0!==s&&(t.result=s)===!1&&(t.preventDefault(),t.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(e,t){var r,i,s,o,u=[],a=t.delegateCount,f=e.target;if(a&&f.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;f!==
this;f=f.parentNode||this)if(1===f.nodeType&&(f.disabled!==!0||"click"!==e.type)){for(i=[],r=0;a>r;r++)o=t[r],s=o.selector+" ",void 0===i[s]&&(i[s]=o.needsContext?n(s,this).index(f)>-1:n.find(s,this,null,[f]).length),i[s]&&i.push(o);i.length&&u.push({elem:f,handlers:i})}return a<t.length&&u.push({elem:this,handlers:t.slice(a)}),u},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props
:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,s=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||d,r=n.documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+
(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||void 0===s||(e.which=1&s?1:2&s?3:4&s?2:0),e}},fix:function(e){if(e[n.expando])return e;var t,r,i,s=e.type,o=e,u=this.fixHooks[s];u||(this.fixHooks[s]=u=ea.test(s)?this.mouseHooks:da.test(s)?this.keyHooks:{}),i=u.props?this.props.concat(u.props):this.props,e=new n.Event(o),t=i.length;while(t--)r=i[t],e[r]=o[r];return e.target||(e.target=d),3===e.target.nodeType&&(e.target=e.target.parentNode),u.filter?u.filter(e,o):e
},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==ia()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===ia()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&n.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return n.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent
.returnValue=e.result)}}}},n.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},n.Event=function(e,t){return this instanceof n.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?ga:ha):this.type=e,t&&n.extend(this,t),this.timeStamp=e&&e.timeStamp||n.now(),void (this[n.expando]=!0)):new n.Event(e,t)},n.Event.prototype={constructor:n.Event,isDefaultPrevented:ha,isPropagationStopped
:ha,isImmediatePropagationStopped:ha,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ga,e&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ga,e&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ga,e&&e.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"
},function(e,t){n.event.special[e]={delegateType:t,bindType:t,handle:function(e){var r,i=this,s=e.relatedTarget,o=e.handleObj;return(!s||s!==i&&!n.contains(i,s))&&(e.type=o.origType,r=o.handler.apply(this,arguments),e.type=t),r}}}),n.fn.extend({on:function(e,t,n,r){return ja(this,e,t,n,r)},one:function(e,t,n,r){return ja(this,e,t,n,r,1)},off:function(e,t,r){var i,s;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,n(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.
selector,i.handler),this;if("object"==typeof e){for(s in e)this.off(s,t,e[s]);return this}return(t===!1||"function"==typeof t)&&(r=t,t=void 0),r===!1&&(r=ha),this.each(function(){n.event.remove(this,e,r,t)})}});var ka=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,la=/<script|<style|<link/i,ma=/checked\s*(?:[^=]|=\s*.checked.)/i,na=/^true\/(.*)/,oa=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;n.extend({htmlPrefilter:function(e){return e.replace(ka,"<$1></$2>")},clone:function(
e,t,r){var i,s,o,u,a=e.cloneNode(!0),f=n.contains(e.ownerDocument,e);if(!(l.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||n.isXMLDoc(e)))for(u=_(a),o=_(e),i=0,s=o.length;s>i;i++)ta(o[i],u[i]);if(t)if(r)for(o=o||_(e),u=u||_(a),i=0,s=o.length;s>i;i++)sa(o[i],u[i]);else sa(e,a);return u=_(a,"script"),u.length>0&&aa(u,!f&&_(e,"script")),a},cleanData:function(e){for(var t,r,i,s=n.event.special,o=0;void 0!==(r=e[o]);o++)if(L(r)){if(t=r[N.expando]){if(t.events)for(i in t.events)s[i]?n.event.remove(r,
i):n.removeEvent(r,i,t.handle);r[N.expando]=void 0}r[O.expando]&&(r[O.expando]=void 0)}}}),n.fn.extend({domManip:ua,detach:function(e){return va(this,e,!0)},remove:function(e){return va(this,e)},text:function(e){return K(this,function(e){return void 0===e?n.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return ua(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===
this.nodeType){var t=pa(this,e);t.appendChild(e)}})},prepend:function(){return ua(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pa(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return ua(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return ua(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this
[t]);t++)1===e.nodeType&&(n.cleanData(_(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return n.clone(this,e,t)})},html:function(e){return K(this,function(e){var t=this[0]||{},r=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!la.test(e)&&!$[(Y.exec(e)||["",""])[1].toLowerCase()]){e=n.htmlPrefilter(e);try{for(;i>r;r++)t=this[r]||{},1===t.nodeType&&(n.cleanData(_(t,!1)),t.innerHTML=e);t=0}catch(
s){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return ua(this,arguments,function(t){var r=this.parentNode;n.inArray(this,e)<0&&(n.cleanData(_(this)),r&&r.replaceChild(t,this))},e)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){n.fn[e]=function(e){for(var r,i=[],s=n(e),o=s.length-1,u=0;o>=u;u++)r=u===o?this:this.clone(!0),n(s[u])[t](r),g.apply(i,r.get());return this.pushStack
(i)}});var wa,xa={HTML:"block",BODY:"block"},Aa=/^margin/,Ba=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Ca=function(e){var t=e.ownerDocument.defaultView;return t.opener||(t=a),t.getComputedStyle(e)},Da=function(e,t,n,r){var i,s,o={};for(s in t)o[s]=e.style[s],e.style[s]=t[s];i=n.apply(e,r||[]);for(s in t)e.style[s]=o[s];return i},Ea=d.documentElement;!function(){var e,t,r,i,s=d.createElement("div"),o=d.createElement("div");if(o.style){o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip=""
,l.clearCloneStyle="content-box"===o.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(o);function u(){o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",o.innerHTML="",Ea.appendChild(s);var n=a.getComputedStyle(o);e="1%"!==n.top,i="2px"===n.marginLeft,t="4px"===n.width,o.style
.marginRight="50%",r="4px"===n.marginRight,Ea.removeChild(s)}n.extend(l,{pixelPosition:function(){return u(),e},boxSizingReliable:function(){return null==t&&u(),t},pixelMarginRight:function(){return null==t&&u(),r},reliableMarginLeft:function(){return null==t&&u(),i},reliableMarginRight:function(){var e,t=o.appendChild(d.createElement("div"));return t.style.cssText=o.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=
t.style.width="0",o.style.width="1px",Ea.appendChild(s),e=!parseFloat(a.getComputedStyle(t).marginRight),Ea.removeChild(s),o.removeChild(t),e}})}}();var Ha=/^(none|table(?!-c[ea]).+)/,Ia={position:"absolute",visibility:"hidden",display:"block"},Ja={letterSpacing:"0",fontWeight:"400"},Ka=["Webkit","O","Moz","ms"],La=d.createElement("div").style;n.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Fa(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity
:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var s,o,u,a=n.camelCase(t),f=e.style;return t=n.cssProps[a]||(n.cssProps[a]=Ma(a)||a),u=n.cssHooks[t]||n.cssHooks[a],void 0===r?u&&"get"in u&&void 0!==(s=u.get(e,!1,i))?s:f[t]:(o=typeof r,"string"===o&&(s=T.exec(r))&&s[1]&&(r=W(e,t,s),o="number"),null!=r&&r===r&&("number"===o&&(r+=
s&&s[3]||(n.cssNumber[a]?"":"px")),l.clearCloneStyle||""!==r||0!==t.indexOf("background")||(f[t]="inherit"),u&&"set"in u&&void 0===(r=u.set(e,r,i))||(f[t]=r)),void 0)}},css:function(e,t,r,i){var s,o,u,a=n.camelCase(t);return t=n.cssProps[a]||(n.cssProps[a]=Ma(a)||a),u=n.cssHooks[t]||n.cssHooks[a],u&&"get"in u&&(s=u.get(e,!0,r)),void 0===s&&(s=Fa(e,t,i)),"normal"===s&&t in Ja&&(s=Ja[t]),""===r||r?(o=parseFloat(s),r===!0||isFinite(o)?o||0:s):s}}),n.each(["height","width"],function(e,t){n.cssHooks[t
]={get:function(e,r,i){return r?Ha.test(n.css(e,"display"))&&0===e.offsetWidth?Da(e,Ia,function(){return Pa(e,t,i)}):Pa(e,t,i):void 0},set:function(e,r,i){var s,o=i&&Ca(e),u=i&&Oa(e,t,i,"border-box"===n.css(e,"boxSizing",!1,o),o);return u&&(s=T.exec(r))&&"px"!==(s[3]||"px")&&(e.style[t]=r,r=n.css(e,t)),Na(e,r,u)}}}),n.cssHooks.marginLeft=Ga(l.reliableMarginLeft,function(e,t){return t?(parseFloat(Fa(e,"marginLeft"))||e.getBoundingClientRect().left-Da(e,{marginLeft:0},function(){return e.getBoundingClientRect
().left}))+"px":void 0}),n.cssHooks.marginRight=Ga(l.reliableMarginRight,function(e,t){return t?Da(e,{display:"inline-block"},Fa,[e,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(e,t){n.cssHooks[e+t]={expand:function(n){for(var r=0,i={},s="string"==typeof n?n.split(" "):[n];4>r;r++)i[e+U[r]+t]=s[r]||s[r-2]||s[0];return i}},Aa.test(e)||(n.cssHooks[e+t].set=Na)}),n.fn.extend({css:function(e,t){return K(this,function(e,t,r){var i,s,o={},u=0;if(n.isArray(t)){for(i=Ca(e
),s=t.length;s>u;u++)o[t[u]]=n.css(e,t[u],!1,i);return o}return void 0!==r?n.style(e,t,r):n.css(e,t)},e,t,arguments.length>1)},show:function(){return Qa(this,!0)},hide:function(){return Qa(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){V(this)?n(this).show():n(this).hide()})}}),n.Tween=Ra,Ra.prototype={constructor:Ra,init:function(e,t,r,i,s,o){this.elem=e,this.prop=r,this.easing=s||n.easing._default,this.options=t,this.start=this.now=this.cur(),
this.end=i,this.unit=o||(n.cssNumber[r]?"":"px")},cur:function(){var e=Ra.propHooks[this.prop];return e&&e.get?e.get(this):Ra.propHooks._default.get(this)},run:function(e){var t,r=Ra.propHooks[this.prop];return this.options.duration?this.pos=t=n.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):Ra.propHooks._default.set(this),this}
},Ra.prototype.init.prototype=Ra.prototype,Ra.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=n.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){n.fx.step[e.prop]?n.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[n.cssProps[e.prop]]&&!n.cssHooks[e.prop]?e.elem[e.prop]=e.now:n.style(e.elem,e.prop,e.now+e.unit)}}},Ra.propHooks.scrollTop=Ra.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&
e.elem.parentNode&&(e.elem[e.prop]=e.now)}},n.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},n.fx=Ra.prototype.init,n.fx.step={};var Sa,Ta,Ua=/^(?:toggle|show|hide)$/,Va=/queueHooks$/;n.Animation=n.extend(_a,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return W(n.elem,e,T.exec(t),n),n}]},tweener:function(e,t){n.isFunction(e)?(t=e,e=["*"]):e=e.match(G);for(var r,i=0,s=e.length;s>i;i++)r=e[i],_a.tweeners[r]=_a.tweeners[r]||[],_a
.tweeners[r].unshift(t)},prefilters:[Za],prefilter:function(e,t){t?_a.prefilters.unshift(e):_a.prefilters.push(e)}}),n.speed=function(e,t,r){var i=e&&"object"==typeof e?n.extend({},e):{complete:r||!r&&t||n.isFunction(e)&&e,duration:e,easing:r&&t||t&&!n.isFunction(t)&&t};return i.duration=n.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in n.fx.speeds?n.fx.speeds[i.duration]:n.fx.speeds._default,(null==i.queue||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){n.isFunction
(i.old)&&i.old.call(this),i.queue&&n.dequeue(this,i.queue)},i},n.fn.extend({fadeTo:function(e,t,n,r){return this.filter(V).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,r,i){var s=n.isEmptyObject(e),o=n.speed(t,r,i),u=function(){var t=_a(this,n.extend({},e),o);(s||N.get(this,"finish"))&&t.stop(!0)};return u.finish=u,s||o.queue===!1?this.each(u):this.queue(o.queue,u)},stop:function(e,t,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&
(r=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,s=null!=e&&e+"queueHooks",o=n.timers,u=N.get(this);if(s)u[s]&&u[s].stop&&i(u[s]);else for(s in u)u[s]&&u[s].stop&&Va.test(s)&&i(u[s]);for(s=o.length;s--;)o[s].elem!==this||null!=e&&o[s].queue!==e||(o[s].anim.stop(r),t=!1,o.splice(s,1));(t||!r)&&n.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,r=N.get(this),i=r[e+"queue"],s=r[e+"queueHooks"],o=n.timers,u=i?i.length:0;for(
r.finish=!0,n.queue(this,e,[]),s&&s.stop&&s.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;u>t;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete r.finish})}}),n.each(["toggle","show","hide"],function(e,t){var r=n.fn[t];n.fn[t]=function(e,n,i){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(Xa(t,!0),e,n,i)}}),n.each({slideDown:Xa("show"),slideUp:Xa("hide"),slideToggle:Xa("toggle"),fadeIn:{opacity:"show"},fadeOut
:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){n.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),n.timers=[],n.fx.tick=function(){var e,t=0,r=n.timers;for(Sa=n.now();t<r.length;t++)e=r[t],e()||r[t]!==e||r.splice(t--,1);r.length||n.fx.stop(),Sa=void 0},n.fx.timer=function(e){n.timers.push(e),e()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){Ta||(Ta=a.setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){a.clearInterval(Ta),Ta=null},n.fx.speeds={slow
:600,fast:200,_default:400},n.fn.delay=function(e,t){return e=n.fx?n.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=a.setTimeout(t,e);n.stop=function(){a.clearTimeout(r)}})},function(){var e=d.createElement("input"),t=d.createElement("select"),n=t.appendChild(d.createElement("option"));e.type="checkbox",l.checkOn=""!==e.value,l.optSelected=n.selected,t.disabled=!0,l.optDisabled=!n.disabled,e=d.createElement("input"),e.value="t",e.type="radio",l.radioValue="t"===e.value}();var ab,bb=
n.expr.attrHandle;n.fn.extend({attr:function(e,t){return K(this,n.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){n.removeAttr(this,e)})}}),n.extend({attr:function(e,t,r){var i,s,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?n.prop(e,t,r):(1===o&&n.isXMLDoc(e)||(t=t.toLowerCase(),s=n.attrHooks[t]||(n.expr.match.bool.test(t)?ab:void 0)),void 0!==r?null===r?void n.removeAttr(e,t):s&&"set"in s&&void 0!==(i=s.set(e,r,t))?i:(e.setAttribute
(t,r+""),r):s&&"get"in s&&null!==(i=s.get(e,t))?i:(i=n.find.attr(e,t),null==i?void 0:i))},attrHooks:{type:{set:function(e,t){if(!l.radioValue&&"radio"===t&&n.nodeName(e,"input")){var r=e.value;return e.setAttribute("type",t),r&&(e.value=r),t}}}},removeAttr:function(e,t){var r,i,s=0,o=t&&t.match(G);if(o&&1===e.nodeType)while(r=o[s++])i=n.propFix[r]||r,n.expr.match.bool.test(r)&&(e[i]=!1),e.removeAttribute(r)}}),ab={set:function(e,t,r){return t===!1?n.removeAttr(e,r):e.setAttribute(r,r),r}},n.each(
n.expr.match.bool.source.match(/\w+/g),function(e,t){var r=bb[t]||n.find.attr;bb[t]=function(e,t,n){var i,s;return n||(s=bb[t],bb[t]=i,i=null!=r(e,t,n)?t.toLowerCase():null,bb[t]=s),i}});var cb=/^(?:input|select|textarea|button)$/i,db=/^(?:a|area)$/i;n.fn.extend({prop:function(e,t){return K(this,n.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[n.propFix[e]||e]})}}),n.extend({prop:function(e,t,r){var i,s,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&
n.isXMLDoc(e)||(t=n.propFix[t]||t,s=n.propHooks[t]),void 0!==r?s&&"set"in s&&void 0!==(i=s.set(e,r,t))?i:e[t]=r:s&&"get"in s&&null!==(i=s.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=n.find.attr(e,"tabindex");return t?parseInt(t,10):cb.test(e.nodeName)||db.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),l.optSelected||(n.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),n.each(["tabIndex"
,"readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this});var eb=/[\t\r\n\f]/g;n.fn.extend({addClass:function(e){var t,r,i,s,o,u,a,f=0;if(n.isFunction(e))return this.each(function(t){n(this).addClass(e.call(this,t,fb(this)))});if("string"==typeof e&&e){t=e.match(G)||[];while(r=this[f++])if(s=fb(r),i=1===r.nodeType&&(" "+s+" ").replace(eb," ")){u=0;while(o=t[u++])i.indexOf(" "+o+" ")<0&&(i+=o+" "
);a=n.trim(i),s!==a&&r.setAttribute("class",a)}}return this},removeClass:function(e){var t,r,i,s,o,u,a,f=0;if(n.isFunction(e))return this.each(function(t){n(this).removeClass(e.call(this,t,fb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e){t=e.match(G)||[];while(r=this[f++])if(s=fb(r),i=1===r.nodeType&&(" "+s+" ").replace(eb," ")){u=0;while(o=t[u++])while(i.indexOf(" "+o+" ")>-1)i=i.replace(" "+o+" "," ");a=n.trim(i),s!==a&&r.setAttribute("class",a)}}return this
},toggleClass:function(e,t){var r=typeof e;return"boolean"==typeof t&&"string"===r?t?this.addClass(e):this.removeClass(e):n.isFunction(e)?this.each(function(r){n(this).toggleClass(e.call(this,r,fb(this),t),t)}):this.each(function(){var t,i,s,o;if("string"===r){i=0,s=n(this),o=e.match(G)||[];while(t=o[i++])s.hasClass(t)?s.removeClass(t):s.addClass(t)}else(void 0===e||"boolean"===r)&&(t=fb(this),t&&N.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":N.get(this,"__className__"
)||""))})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&(" "+fb(n)+" ").replace(eb," ").indexOf(t)>-1)return!0;return!1}});var gb=/\r/g;n.fn.extend({val:function(e){var t,r,i,s=this[0];if(arguments.length)return i=n.isFunction(e),this.each(function(r){var s;1===this.nodeType&&(s=i?e.call(this,r,n(this).val()):e,null==s?s="":"number"==typeof s?s+="":n.isArray(s)&&(s=n.map(s,function(e){return null==e?"":e+""})),t=n.valHooks[this.type]||n.valHooks[this.nodeName.
toLowerCase()],t&&"set"in t&&void 0!==t.set(this,s,"value")||(this.value=s))});if(s)return t=n.valHooks[s.type]||n.valHooks[s.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(r=t.get(s,"value"))?r:(r=s.value,"string"==typeof r?r.replace(gb,""):null==r?"":r)}}),n.extend({valHooks:{option:{get:function(e){return n.trim(e.value)}},select:{get:function(e){for(var t,r,i=e.options,s=e.selectedIndex,o="select-one"===e.type||0>s,u=o?null:[],a=o?s+1:i.length,f=0>s?a:o?s:0;a>f;f++)if(r=i[f],(r.selected||f===
s)&&(l.optDisabled?!r.disabled:null===r.getAttribute("disabled"))&&(!r.parentNode.disabled||!n.nodeName(r.parentNode,"optgroup"))){if(t=n(r).val(),o)return t;u.push(t)}return u},set:function(e,t){var r,i,s=e.options,o=n.makeArray(t),u=s.length;while(u--)i=s[u],(i.selected=n.inArray(n.valHooks.option.get(i),o)>-1)&&(r=!0);return r||(e.selectedIndex=-1),o}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(e,t){return n.isArray(t)?e.checked=n.inArray(n(e).val(),t)>-1:void 0}}
,l.checkOn||(n.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var hb=/^(?:focusinfocus|focusoutblur)$/;n.extend(n.event,{trigger:function(e,t,r,i){var s,o,u,f,l,c,h,p=[r||d],v=k.call(e,"type")?e.type:e,m=k.call(e,"namespace")?e.namespace.split("."):[];if(o=u=r=r||d,3!==r.nodeType&&8!==r.nodeType&&!hb.test(v+n.event.triggered)&&(v.indexOf(".")>-1&&(m=v.split("."),v=m.shift(),m.sort()),l=v.indexOf(":")<0&&"on"+v,e=e[n.expando]?e:new n.Event(v,"object"==typeof 
e&&e),e.isTrigger=i?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:n.makeArray(t,[e]),h=n.event.special[v]||{},i||!h.trigger||h.trigger.apply(r,t)!==!1)){if(!i&&!h.noBubble&&!n.isWindow(r)){for(f=h.delegateType||v,hb.test(f+v)||(o=o.parentNode);o;o=o.parentNode)p.push(o),u=o;u===(r.ownerDocument||d)&&p.push(u.defaultView||u.parentWindow||a)}s=0;while((o=p[s++])&&!e.isPropagationStopped
())e.type=s>1?f:h.bindType||v,c=(N.get(o,"events")||{})[e.type]&&N.get(o,"handle"),c&&c.apply(o,t),c=l&&o[l],c&&c.apply&&L(o)&&(e.result=c.apply(o,t),e.result===!1&&e.preventDefault());return e.type=v,i||e.isDefaultPrevented()||h._default&&h._default.apply(p.pop(),t)!==!1||!L(r)||l&&n.isFunction(r[v])&&!n.isWindow(r)&&(u=r[l],u&&(r[l]=null),n.event.triggered=v,r[v](),n.event.triggered=void 0,u&&(r[l]=u)),e.result}},simulate:function(e,t,r){var i=n.extend(new n.Event,r,{type:e,isSimulated:!0});n.event
.trigger(i,null,t),i.isDefaultPrevented()&&r.preventDefault()}}),n.fn.extend({trigger:function(e,t){return this.each(function(){n.event.trigger(e,t,this)})},triggerHandler:function(e,t){var r=this[0];return r?n.event.trigger(e,t,r,!0):void 0}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){n.fn[t]=function(e,n){
return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),n.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),l.focusin="onfocusin"in a,l.focusin||n.each({focus:"focusin",blur:"focusout"},function(e,t){var r=function(e){n.event.simulate(t,e.target,n.event.fix(e))};n.event.special[t]={setup:function(){var n=this.ownerDocument||this,i=N.access(n,t);i||n.addEventListener(e,r,!0),N.access(n,t,(i||0)+1)},teardown:function(){var n=this.ownerDocument||this,i=N.access(n,
t)-1;i?N.access(n,t,i):(n.removeEventListener(e,r,!0),N.remove(n,t))}}});var ib=a.location,jb=n.now(),kb=/\?/;n.parseJSON=function(e){return JSON.parse(e+"")},n.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new a.DOMParser).parseFromString(e,"text/xml")}catch(r){t=void 0}return(!t||t.getElementsByTagName("parsererror").length)&&n.error("Invalid XML: "+e),t};var lb=/#.*$/,mb=/([?&])_=[^&]*/,nb=/^(.*?):[ \t]*([^\r\n]*)$/gm,ob=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/
,pb=/^(?:GET|HEAD)$/,qb=/^\/\//,rb={},sb={},tb="*/".concat("*"),ub=d.createElement("a");ub.href=ib.href,n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ib.href,type:"GET",isLocal:ob.test(ib.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":tb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields
:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?xb(xb(e,n.ajaxSettings),t):xb(n.ajaxSettings,e)},ajaxPrefilter:vb(rb),ajaxTransport:vb(sb),ajax:function(e,t){function N(e,t,o,f){var c,d,b,w,S,T=t;2!==E&&(E=2,u&&a.clearTimeout(u),r=void 0,s=f||"",x.readyState=e>0?4:0,c=e>=200&&300>e||304===e,o&&(w=yb(h,x,o)),w=zb(h,w,x,c),c?(h.ifModified&&
(S=x.getResponseHeader("Last-Modified"),S&&(n.lastModified[i]=S),S=x.getResponseHeader("etag"),S&&(n.etag[i]=S)),204===e||"HEAD"===h.type?T="nocontent":304===e?T="notmodified":(T=w.state,d=w.data,b=w.error,c=!b)):(b=T,(e||!T)&&(T="error",0>e&&(e=0))),x.status=e,x.statusText=(t||T)+"",c?m.resolveWith(p,[d,T,x]):m.rejectWith(p,[x,T,b]),x.statusCode(y),y=void 0,l&&v.trigger(c?"ajaxSuccess":"ajaxError",[x,h,c?d:b]),g.fireWith(p,[x,T]),l&&(v.trigger("ajaxComplete",[x,h]),--n.active||n.event.trigger("ajaxStop"
)))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,s,o,u,f,l,c,h=n.ajaxSetup({},t),p=h.context||h,v=h.context&&(p.nodeType||p.jquery)?n(p):n.event,m=n.Deferred(),g=n.Callbacks("once memory"),y=h.statusCode||{},b={},w={},E=0,S="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===E){if(!o){o={};while(t=nb.exec(s))o[t[1].toLowerCase()]=t[2]}t=o[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===E?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase
();return E||(e=w[n]=w[n]||e,b[e]=t),this},overrideMimeType:function(e){return E||(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>E)for(t in e)y[t]=[y[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){var t=e||S;return r&&r.abort(t),N(0,t),this}};if(m.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,h.url=((e||h.url||ib.href)+"").replace(lb,"").replace(qb,ib.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=n.trim(h.dataType||"*").toLowerCase
().match(G)||[""],null==h.crossDomain){f=d.createElement("a");try{f.href=h.url,f.href=f.href,h.crossDomain=ub.protocol+"//"+ub.host!=f.protocol+"//"+f.host}catch(T){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=n.param(h.data,h.traditional)),wb(rb,h,t,x),2===E)return x;l=n.event&&h.global,l&&0===n.active++&&n.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!pb.test(h.type),i=h.url,h.hasContent||(h.data&&(i=h.url+=(kb.test(i)?"&":"?")+h.data,delete 
h.data),h.cache===!1&&(h.url=mb.test(i)?i.replace(mb,"$1_="+jb++):i+(kb.test(i)?"&":"?")+"_="+jb++)),h.ifModified&&(n.lastModified[i]&&x.setRequestHeader("If-Modified-Since",n.lastModified[i]),n.etag[i]&&x.setRequestHeader("If-None-Match",n.etag[i])),(h.data&&h.hasContent&&h.contentType!==!1||t.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+tb+"; q=0.01":""):h
.accepts["*"]);for(c in h.headers)x.setRequestHeader(c,h.headers[c]);if(!h.beforeSend||h.beforeSend.call(p,x,h)!==!1&&2!==E){S="abort";for(c in{success:1,error:1,complete:1})x[c](h[c]);if(r=wb(sb,h,t,x)){if(x.readyState=1,l&&v.trigger("ajaxSend",[x,h]),2===E)return x;h.async&&h.timeout>0&&(u=a.setTimeout(function(){x.abort("timeout")},h.timeout));try{E=1,r.send(b,N)}catch(T){if(!(2>E))throw T;N(-1,T)}}else N(-1,"No Transport");return x}return x.abort()},getJSON:function(e,t,r){return n.get(e,t,r,"json"
)},getScript:function(e,t){return n.get(e,void 0,t,"script")}}),n.each(["get","post"],function(e,t){n[t]=function(e,r,i,s){return n.isFunction(r)&&(s=s||i,i=r,r=void 0),n.ajax(n.extend({url:e,type:t,dataType:s,data:r,success:i},n.isPlainObject(e)&&e))}}),n._evalUrl=function(e){return n.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(e){var t;return n.isFunction(e)?this.each(function(t){n(this).wrapAll(e.call(this,t))}):(this[0]&&(t=n(e,this
[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return n.isFunction(e)?this.each(function(t){n(this).wrapInner(e.call(this,t))}):this.each(function(){var t=n(this),r=t.contents();r.length?r.wrapAll(e):t.append(e)})},wrap:function(e){var t=n.isFunction(e);return this.each(function(r){n(this).wrapAll(t?e.call(this,r):e)})},unwrap:function()
{return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(e){return!n.expr.filters.visible(e)},n.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var Ab=/%20/g,Bb=/\[\]$/,Cb=/\r?\n/g,Db=/^(?:submit|button|image|reset|file)$/i,Eb=/^(?:input|select|textarea|keygen)/i;n.param=function(e,t){var r,i=[],s=function(e,t){t=n.isFunction(t)?t():null==t?"":t,i[i.length]=
encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(e)||e.jquery&&!n.isPlainObject(e))n.each(e,function(){s(this.name,this.value)});else for(r in e)Fb(r,e[r],t,s);return i.join("&").replace(Ab,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=n.prop(this,"elements");return e?n.makeArray(e):this}).filter(function(){var e=this.type;return this.
name&&!n(this).is(":disabled")&&Eb.test(this.nodeName)&&!Db.test(e)&&(this.checked||!X.test(e))}).map(function(e,t){var r=n(this).val();return null==r?null:n.isArray(r)?n.map(r,function(e){return{name:t.name,value:e.replace(Cb,"\r\n")}}):{name:t.name,value:r.replace(Cb,"\r\n")}}).get()}}),n.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(e){}};var Gb={0:200,1223:204},Hb=n.ajaxSettings.xhr();l.cors=!!Hb&&"withCredentials"in Hb,l.ajax=Hb=!!Hb,n.ajaxTransport(function(e){var t,n;return l
.cors||Hb&&!e.crossDomain?{send:function(r,i){var s,o=e.xhr();if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)o[s]=e.xhrFields[s];e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(s in r)o.setRequestHeader(s,r[s]);t=function(e){return function(){t&&(t=n=o.onload=o.onerror=o.onabort=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?
i(0,"error"):i(o.status,o.statusText):i(Gb[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=t(),n=o.onerror=t("error"),void 0!==o.onabort?o.onabort=n:o.onreadystatechange=function(){4===o.readyState&&a.setTimeout(function(){t&&n()})},t=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(u){if(t)throw u}},abort:function(){t&&t()}}:void 0}),n.ajaxSetup({accepts:{script
:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return n.globalEval(e),e}}}),n.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),n.ajaxTransport("script",function(e){if(e.crossDomain){var t,r;return{send:function(i,s){t=n("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",r=function(e){t.remove(),r=null,e&&
s("error"===e.type?404:200,e.type)}),d.head.appendChild(t[0])},abort:function(){r&&r()}}}});var Ib=[],Jb=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ib.pop()||n.expando+"_"+jb++;return this[e]=!0,e}}),n.ajaxPrefilter("json jsonp",function(e,t,r){var i,s,o,u=e.jsonp!==!1&&(Jb.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Jb.test(e.data)&&"data");return u||"jsonp"===e.dataTypes[0]?(i=e.jsonpCallback=
n.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,u?e[u]=e[u].replace(Jb,"$1"+i):e.jsonp!==!1&&(e.url+=(kb.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||n.error(i+" was not called"),o[0]},e.dataTypes[0]="json",s=a[i],a[i]=function(){o=arguments},r.always(function(){void 0===s?n(a).removeProp(i):a[i]=s,e[i]&&(e.jsonpCallback=t.jsonpCallback,Ib.push(i)),o&&n.isFunction(s)&&s(o[0]),o=s=void 0}),"script"):void 0}),l.createHTMLDocument=function(){var e=
d.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),n.parseHTML=function(e,t,r){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(r=t,t=!1),t=t||(l.createHTMLDocument?d.implementation.createHTMLDocument(""):d);var i=x.exec(e),s=!r&&[];return i?[t.createElement(i[1])]:(i=ca([e],t,s),s&&s.length&&n(s).remove(),n.merge([],i.childNodes))};var Kb=n.fn.load;n.fn.load=function(e,t,r){if("string"!=typeof e&&Kb)return Kb.apply(this
,arguments);var i,s,o,u=this,a=e.indexOf(" ");return a>-1&&(i=n.trim(e.slice(a)),e=e.slice(0,a)),n.isFunction(t)?(r=t,t=void 0):t&&"object"==typeof t&&(s="POST"),u.length>0&&n.ajax({url:e,type:s||"GET",dataType:"html",data:t}).done(function(e){o=arguments,u.html(i?n("<div>").append(n.parseHTML(e)).find(i):e)}).always(r&&function(e,t){u.each(function(){r.apply(u,o||[e.responseText,t,e])})}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){n.fn
[t]=function(e){return this.on(t,e)}}),n.expr.filters.animated=function(e){return n.grep(n.timers,function(t){return e===t.elem}).length},n.offset={setOffset:function(e,t,r){var i,s,o,u,a,f,l,c=n.css(e,"position"),h=n(e),p={};"static"===c&&(e.style.position="relative"),a=h.offset(),o=n.css(e,"top"),f=n.css(e,"left"),l=("absolute"===c||"fixed"===c)&&(o+f).indexOf("auto")>-1,l?(i=h.position(),u=i.top,s=i.left):(u=parseFloat(o)||0,s=parseFloat(f)||0),n.isFunction(t)&&(t=t.call(e,r,n.extend({},a))),null!=
t.top&&(p.top=t.top-a.top+u),null!=t.left&&(p.left=t.left-a.left+s),"using"in t?t.using.call(e,p):h.css(p)}},n.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){n.offset.setOffset(this,e,t)});var t,r,i=this[0],s={top:0,left:0},o=i&&i.ownerDocument;if(o)return t=o.documentElement,n.contains(t,i)?(s=i.getBoundingClientRect(),r=Lb(o),{top:s.top+r.pageYOffset-t.clientTop,left:s.left+r.pageXOffset-t.clientLeft}):s},position:function(){if(this[0]){var e,t,r=
this[0],i={top:0,left:0};return"fixed"===n.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),n.nodeName(e[0],"html")||(i=e.offset()),i.top+=n.css(e[0],"borderTopWidth",!0)-e.scrollTop(),i.left+=n.css(e[0],"borderLeftWidth",!0)-e.scrollLeft()),{top:t.top-i.top-n.css(r,"marginTop",!0),left:t.left-i.left-n.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===n.css(e,"position"))e=e.offsetParent;return e||
Ea})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var r="pageYOffset"===t;n.fn[e]=function(n){return K(this,function(e,n,i){var s=Lb(e);return void 0===i?s?s[t]:e[n]:void (s?s.scrollTo(r?s.pageXOffset:i,r?i:s.pageYOffset):e[n]=i)},e,n,arguments.length)}}),n.each(["top","left"],function(e,t){n.cssHooks[t]=Ga(l.pixelPosition,function(e,r){return r?(r=Fa(e,t),Ba.test(r)?n(e).position()[t]+"px":r):void 0})}),n.each({Height:"height",Width:"width"},function(e,t){n.each({padding
:"inner"+e,content:t,"":"outer"+e},function(r,i){n.fn[i]=function(i,s){var o=arguments.length&&(r||"boolean"!=typeof i),u=r||(i===!0||s===!0?"margin":"border");return K(this,function(t,r,i){var s;return n.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(s=t.documentElement,Math.max(t.body["scroll"+e],s["scroll"+e],t.body["offset"+e],s["offset"+e],s["client"+e])):void 0===i?n.css(t,r,u):n.style(t,r,i,u)},t,o?i:void 0,o,null)}})}),n.fn.extend({bind:function(e,t,n){return this.on(e
,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var Mb=a.jQuery,Nb=a.$;return n.noConflict=function(e){return a.$===n&&(a.$=Nb),e&&a.jQuery===n&&(a.jQuery=Mb),n},b||(a.jQuery=a.$=n),n}),function(e,t
,n){"use strict";function r(e,t){return t=t||Error,function(){var n=2,r=arguments,i=r[0],s="["+(e?e+":":"")+i+"] ",o=r[1],u,a;s+=o.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1),i=t+n;return i<r.length?nn(r[i]):e}),s+="\nhttp://errors.angularjs.org/1.5.0/"+(e?e+"/":"")+i;for(a=n,u="?";a<r.length;a++,u="&")s+=u+"p"+(a-n)+"="+encodeURIComponent(nn(r[a]));return new t(s)}}function x(e){if(e==null||J(e))return!1;if(X(e)||U(e)||h&&e instanceof h)return!0;var t="length"in Object(e)&&e.length;return z
(t)&&(t>=0&&(t-1 in e||e instanceof Array)||typeof e.item=="function")}function T(e,t,n){var r,i;if(e)if(V(e))for(r in e)r!="prototype"&&r!="length"&&r!="name"&&(!e.hasOwnProperty||e.hasOwnProperty(r))&&t.call(n,e[r],r,e);else if(X(e)||x(e)){var s=typeof e!="object";for(r=0,i=e.length;r<i;r++)(s||r in e)&&t.call(n,e[r],r,e)}else if(e.forEach&&e.forEach!==T)e.forEach(t,n,e);else if(R(e))for(r in e)t.call(n,e[r],r,e);else if(typeof e.hasOwnProperty=="function")for(r in e)e.hasOwnProperty(r)&&t.call
(n,e[r],r,e);else for(r in e)o.call(e,r)&&t.call(n,e[r],r,e);return e}function N(e,t,n){var r=Object.keys(e).sort();for(var i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function C(e){return function(t,n){e(n,t)}}function k(){return++S}function L(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function A(e,t,n){var r=e.$$hashKey;for(var i=0,s=t.length;i<s;++i){var o=t[i];if(!q(o)&&!V(o))continue;var u=Object.keys(o);for(var a=0,f=u.length;a<f;a++){var l=u[a],c=o[l];n&&q(c)?W(c)?e[l]=new Date(c.valueOf
()):$(c)?e[l]=new RegExp(c):c.nodeName?e[l]=c.cloneNode(!0):ot(c)?e[l]=c.clone():(q(e[l])||(e[l]=X(c)?[]:{}),A(e[l],[c],!0)):e[l]=c}}return L(e,r),e}function O(e){return A(e,d.call(arguments,1),!1)}function M(e){return A(e,d.call(arguments,1),!0)}function _(e){return parseInt(e,10)}function D(e,t){return O(Object.create(e),t)}function P(){}function H(e){return e}function B(e){return function(){return e}}function j(e){return V(e.toString)&&e.toString!==g}function F(e){return typeof e=="undefined"}
function I(e){return typeof e!="undefined"}function q(e){return e!==null&&typeof e=="object"}function R(e){return e!==null&&typeof e=="object"&&!y(e)}function U(e){return typeof e=="string"}function z(e){return typeof e=="number"}function W(e){return g.call(e)==="[object Date]"}function V(e){return typeof e=="function"}function $(e){return g.call(e)==="[object RegExp]"}function J(e){return e&&e.window===e}function K(e){return e&&e.$evalAsync&&e.$watch}function Q(e){return g.call(e)==="[object File]"
}function G(e){return g.call(e)==="[object FormData]"}function Y(e){return g.call(e)==="[object Blob]"}function Z(e){return typeof e=="boolean"}function et(e){return e&&V(e.then)}function nt(e){return e&&z(e.length)&&tt.test(g.call(e))}function rt(e){return g.call(e)==="[object ArrayBuffer]"}function ot(e){return!!e&&!!(e.nodeName||e.prop&&e.attr&&e.find)}function ut(e){var t={},n=e.split(","),r;for(r=0;r<n.length;r++)t[n[r]]=!0;return t}function at(e){return u(e.nodeName||e[0]&&e[0].nodeName)}function ft
(e,t){return Array.prototype.indexOf.call(e,t)!=-1}function lt(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function ct(e,t){function s(e,t){var n=t.$$hashKey,r,i;if(X(e))for(var s=0,a=e.length;s<a;s++)t.push(u(e[s]));else if(R(e))for(i in e)t[i]=u(e[i]);else if(e&&typeof e.hasOwnProperty=="function")for(i in e)e.hasOwnProperty(i)&&(t[i]=u(e[i]));else for(i in e)o.call(e,i)&&(t[i]=u(e[i]));return L(t,n),t}function u(e){if(!q(e))return e;var t=r.indexOf(e);if(t!==-1)return i[t];if(J(e)||K(
e))throw b("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var o=!1,u=a(e);return u===n&&(u=X(e)?[]:Object.create(y(e)),o=!0),r.push(e),i.push(u),o?s(e,u):u}function a(e){switch(g.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(u(e.buffer
));case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return(new Uint8Array(t)).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^\/]*$/)[0]);return n.lastIndex=e.lastIndex,n}if(V(e.cloneNode))return e.cloneNode(!0)}var r=[],i=[];if(t){if(nt(t)||rt(t))throw b("cpta","Can't copy! TypedArray destination cannot be mutated."
);if(e===t)throw b("cpi","Can't copy! Source and destination are identical.");return X(t)?t.length=0:T(t,function(e,n){n!=="$$hashKey"&&delete t[n]}),r.push(e),i.push(t),s(e,t)}return u(e)}function ht(e,t){if(X(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(q(e)){t=t||{};for(var i in e)if(i.charAt(0)!=="$"||i.charAt(1)!=="$")t[i]=e[i]}return t||e}function pt(e,t){if(e===t)return!0;if(e===null||t===null)return!1;if(e!==e&&t!==t)return!0;var n=typeof e,r=typeof t,i,s,o;if(n==r&&n=="object"
){if(!X(e)){if(W(e))return W(t)?pt(e.getTime(),t.getTime()):!1;if($(e))return $(t)?e.toString()==t.toString():!1;if(K(e)||K(t)||J(e)||J(t)||X(t)||W(t)||$(t))return!1;o=$t();for(s in e){if(s.charAt(0)==="$"||V(e[s]))continue;if(!pt(e[s],t[s]))return!1;o[s]=!0}for(s in t)if(!(s in o)&&s.charAt(0)!=="$"&&I(t[s])&&!V(t[s]))return!1;return!0}if(!X(t))return!1;if((i=e.length)==t.length){for(s=0;s<i;s++)if(!pt(e[s],t[s]))return!1;return!0}}return!1}function mt(e,t,n){return e.concat(d.call(t,n))}function gt
(e,t){return d.call(e,t||0)}function yt(e,t){var n=arguments.length>2?gt(arguments,2):[];return!V(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,mt(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function bt(e,r){var i=r;return typeof e=="string"&&e.charAt(0)==="$"&&e.charAt(1)==="$"?i=n:J(r)?i="$WINDOW":r&&t===r?i="$DOCUMENT":K(r)&&(i="$SCOPE"),i}function wt(e,t){return F(e)?n:(z(t)||(t=t?2:null),JSON.stringify(e,bt
,t))}function Et(e){return U(e)?JSON.parse(e):e}function xt(e,t){e=e.replace(St,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Tt(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Nt(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset(),i=xt(t,r);return Tt(e,n*(i-r))}function Ct(e){e=h(e).clone();try{e.empty()}catch(t){}var n=h("<div>").append(e).html();try{return e[0].nodeType===Qt?u(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e
,t){return"<"+u(t)})}catch(t){return u(n)}}function kt(e){try{return decodeURIComponent(e)}catch(t){}}function Lt(e){var t={};return T((e||"").split("&"),function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),n=e.indexOf("="),n!==-1&&(r=e.substring(0,n),i=e.substring(n+1)),r=kt(r),I(r)&&(i=I(i)?kt(i):!0,o.call(t,r)?X(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))}),t}function At(e){var t=[];return T(e,function(e,n){X(e)?T(e,function(e){t.push(Mt(n,!0)+(e===!0?"":"="+Mt(e,!0)))}):t.push(Mt(n,!0)+(e===!0?""
:"="+Mt(e,!0)))}),t.length?t.join("&"):""}function Ot(e){return Mt(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Mt(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function Dt(e,t){var n,r,i=_t.length;for(r=0;r<i;++r){n=_t[r]+t;if(U(n=e.getAttribute(n)))return n}return null}function Pt(e,t){var n,r,i={};T(_t,function(t){var i=t+"app";!n&&e.hasAttribute&&
e.hasAttribute(i)&&(n=e,r=e.getAttribute(i))}),T(_t,function(t){var i=t+"app",s;!n&&(s=e.querySelector("["+i.replace(":","\\:")+"]"))&&(n=s,r=s.getAttribute(i))}),n&&(i.strictDi=Dt(n,"strict-di")!==null,t(n,r?[r]:[],i))}function Ht(n,r,i){q(i)||(i={});var s={strictDi:!1};i=O(s,i);var o=function(){n=h(n);if(n.injector()){var e=n[0]===t?"document":Ct(n);throw b("btstrpd","App Already Bootstrapped with this Element '{0}'",e.replace(/</,"&lt;").replace(/>/,"&gt;"))}r=r||[],r.unshift(["$provide",function(
e){e.value("$rootElement",n)}]),i.debugInfoEnabled&&r.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),r.unshift("ng");var s=pr(r,i.strictDi);return s.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,n,r,i){t.$apply(function(){n.data("$injector",i),r(n)(t)})}]),s},u=/^NG_ENABLE_DEBUG_INFO!/,a=/^NG_DEFER_BOOTSTRAP!/;e&&u.test(e.name)&&(i.debugInfoEnabled=!0,e.name=e.name.replace(u,""));if(e&&!a.test(e.name))return o();e.name=e.name.replace(a,""),w.resumeBootstrap=
function(e){return T(e,function(e){r.push(e)}),o()},V(w.resumeDeferredBootstrap)&&w.resumeDeferredBootstrap()}function Bt(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function jt(e){var t=w.element(e).injector();if(!t)throw b("test","no injector found for element argument to getTestability");return t.get("$$testability")}function It(e,t){return t=t||"_",e.replace(Ft,function(e,n){return(n?t:"")+e.toLowerCase()})}function Rt(){var t;if(qt)return;var r=vt();p=F(r)?e.jQuery:r?e[r]:n,p&&
p.fn.on?(h=p,O(p.fn,{scope:Xn.scope,isolateScope:Xn.isolateScope,controller:Xn.controller,injector:Xn.injector,inheritedData:Xn.inheritedData}),t=p.cleanData,p.cleanData=function(e){var n;for(var r=0,i;(i=e[r])!=null;r++)n=p._data(i,"events"),n&&n.$destroy&&p(i).triggerHandler("$destroy");t(e)}):h=An,w.element=h,qt=!0}function Ut(e,t,n){if(!e)throw b("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function zt(e,t,n){return n&&X(e)&&(e=e[e.length-1]),Ut(V(e),t,"not a function, got "+
(e&&typeof e=="object"?e.constructor.name||"Object":typeof e)),e}function Wt(e,t){if(e==="hasOwnProperty")throw b("badname","hasOwnProperty is not a valid {0} name",t)}function Xt(e,t,n){if(!t)return e;var r=t.split("."),i,s=e,o=r.length;for(var u=0;u<o;u++)i=r[u],e&&(e=(s=e)[i]);return!n&&V(e)?yt(s,e):e}function Vt(e){var t=e[0],n=e[e.length-1],r;for(var i=1;t!==n&&(t=t.nextSibling);i++)if(r||e[i]!==t)r||(r=h(d.call(e,0,i))),r.push(t);return r||e}function $t(){return Object.create(null)}function en
(e){function i(e,t,n){return e[t]||(e[t]=n())}var t=r("$injector"),n=r("ng"),s=i(e,"angular",Object);return s.$$minErr=s.$$minErr||r,i(s,"module",function(){var e={};return function(s,o,u){var a=function(e,t){if(e==="hasOwnProperty")throw n("badname","hasOwnProperty is not a valid {0} name",t)};return a(s,"module"),o&&e.hasOwnProperty(s)&&(e[s]=null),i(e,s,function(){function f(t,n,r,i){return i||(i=e),function(){return i[r||"push"]([t,n,arguments]),a}}function l(t,n){return function(r,i){return i&&
V(i)&&(i.$$moduleName=s),e.push([t,n,arguments]),a}}if(!o)throw t("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",s);var e=[],n=[],r=[],i=f("$injector","invoke","push",n),a={_invokeQueue:e,_configBlocks:n,_runBlocks:r,requires:o,name:s,provider:l("$provide","provider"),factory:l("$provide","factory"),service:l("$provide","service"),value:f("$provide","value"
),constant:f("$provide","constant","unshift"),decorator:l("$provide","decorator"),animation:l("$animateProvider","register"),filter:l("$filterProvider","register"),controller:l("$controllerProvider","register"),directive:l("$compileProvider","directive"),component:l("$compileProvider","component"),config:i,run:function(e){return r.push(e),this}};return u&&i(u),a})}})}function tn(e){var t=[];return JSON.stringify(e,function(e,n){n=bt(e,n);if(q(n)){if(t.indexOf(n)>=0)return"...";t.push(n)}return n}
)}function nn(e){return typeof e=="function"?e.toString().replace(/ \{[\s\S]*$/,""):F(e)?"undefined":typeof e!="string"?tn(e):e}function sn(t){O(t,{bootstrap:Ht,copy:ct,extend:O,merge:M,equals:pt,element:h,forEach:T,injector:pr,noop:P,bind:yt,toJson:wt,fromJson:Et,identity:H,isUndefined:F,isDefined:I,isString:U,isFunction:V,isObject:q,isNumber:z,isElement:ot,isArray:X,version:rn,isDate:W,lowercase:u,uppercase:a,callbacks:{counter:0},getTestability:jt,$$minErr:r,$$csp:dt,reloadWithDebugInfo:Bt}),E=
en(e),E("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:vs}),t.provider("$compile",Dr).directive({a:ho,input:Xo,textarea:Xo,form:wo,script:zu,select:$u,style:Ku,option:Ju,ngBind:Jo,ngBindHtml:Qo,ngBindTemplate:Ko,ngClass:Zo,ngClassEven:tu,ngClassOdd:eu,ngCloak:nu,ngController:ru,ngForm:Eo,ngHide:Bu,ngIf:ou,ngInclude:uu,ngInit:fu,ngNonBindable:ku,ngPluralize:Mu,ngRepeat:_u,ngShow:Hu,ngStyle:ju,ngSwitch:Fu,ngSwitchWhen:Iu,ngSwitchDefault:qu,ngOptions:Ou,ngTransclude:Uu,ngModel:Su
,ngList:lu,ngChange:Go,pattern:Gu,ngPattern:Gu,required:Qu,ngRequired:Qu,minlength:Zu,ngMinlength:Zu,maxlength:Yu,ngMaxlength:Yu,ngValue:$o,ngModelOptions:Tu}).directive({ngInclude:au}).directive(po).directive(iu),t.provider({$anchorScroll:dr,$animate:Tr,$animateCss:kr,$$animateJs:Sr,$$animateQueue:xr,$$AnimateRunner:Cr,$$animateAsyncRun:Nr,$browser:Ar,$cacheFactory:Or,$controller:zr,$document:Wr,$exceptionHandler:Xr,$filter:Ds,$$forceReflow:Vr,$interpolate:di,$interval:vi,$http:fi,$httpParamSerializer
:ti,$httpParamSerializerJQLike:ni,$httpBackend:ci,$xhrFactory:li,$location:Di,$log:Pi,$parse:fs,$rootScope:ds,$q:ls,$$q:cs,$sce:Es,$sceDelegate:ws,$sniffer:Ss,$templateCache:Mr,$templateRequest:xs,$$testability:Ts,$timeout:Ns,$window:Os,$$rAF:ps,$$jqLite:er,$$HashMap:rr,$$cookieReader:_s})}])}function ln(){return++un}function vn(e){return e.replace(cn,function(e,t,n,r){return r?n.toUpperCase():n}).replace(hn,"Moz$1")}function En(e){return!gn.test(e)}function Sn(e){var t=e.nodeType;return t===Jt||!
t||t===Yt}function xn(e){for(var t in on[e.ng339])return!0;return!1}function Tn(e){for(var t=0,n=e.length;t<n;t++)Dn(e[t])}function Nn(e,t){var n,r,i,s=t.createDocumentFragment(),o=[],u;if(En(e))o.push(t.createTextNode(e));else{n=n||s.appendChild(t.createElement("div")),r=(yn.exec(e)||["",""])[1].toLowerCase(),i=wn[r]||wn._default,n.innerHTML=i[1]+e.replace(bn,"<$1></$2>")+i[2],u=i[0];while(u--)n=n.lastChild;o=mt(o,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML=""
,T(o,function(e){s.appendChild(e)}),s}function Cn(e,n){n=n||t;var r;return(r=mn.exec(e))?[n.createElement(r[1])]:(r=Nn(e,n))?r.childNodes:[]}function kn(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}function An(e){if(e instanceof An)return e;var t;U(e)&&(e=it(e),t=!0);if(!(this instanceof An)){if(t&&e.charAt(0)!="<")throw dn("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new An(e)}t?In(this,Cn(e)
):In(this,e)}function On(e){return e.cloneNode(!0)}function Mn(e,t){t||Dn(e);if(e.querySelectorAll){var n=e.querySelectorAll("*");for(var r=0,i=n.length;r<i;r++)Dn(n[r])}}function _n(e,t,n,r){if(I(r))throw dn("offargs","jqLite#off() does not support the `selector` argument");var i=Pn(e),s=i&&i.events,o=i&&i.handle;if(!o)return;if(!t)for(t in s)t!=="$destroy"&&fn(e,t,o),delete s[t];else{var u=function(t){var r=s[t];I(n)&&lt(r||[],n),I(n)&&r&&r.length>0||(fn(e,t,o),delete s[t])};T(t.split(" "),function(
e){u(e),pn[e]&&u(pn[e])})}}function Dn(e,t){var r=e.ng339,i=r&&on[r];if(i){if(t){delete i.data[t];return}i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),_n(e)),delete on[r],e.ng339=n}}function Pn(e,t){var r=e.ng339,i=r&&on[r];return t&&!i&&(e.ng339=r=ln(),i=on[r]={events:{},data:{},handle:n}),i}function Hn(e,t,n){if(Sn(e)){var r=I(n),i=!r&&t&&!q(t),s=!t,o=Pn(e,!i),u=o&&o.data;if(r)u[t]=n;else{if(s)return u;if(i)return u&&u[t];O(u,t)}}}function Bn(e,t){return e.getAttribute?(" "+(e.getAttribute
("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1:!1}function jn(e,t){t&&e.setAttribute&&T(t.split(" "),function(t){e.setAttribute("class",it((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+it(t)+" "," ")))})}function Fn(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");T(t.split(" "),function(e){e=it(e),n.indexOf(" "+e+" ")===-1&&(n+=e+" ")}),e.setAttribute("class",it(n))}}function In(e,t){if(t)if(t.nodeType)
e[e.length++]=t;else{var n=t.length;if(typeof n=="number"&&t.window!==t){if(n)for(var r=0;r<n;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function qn(e,t){return Rn(e,"$"+(t||"ngController")+"Controller")}function Rn(e,t,n){e.nodeType==Yt&&(e=e.documentElement);var r=X(t)?t:[t];while(e){for(var i=0,s=r.length;i<s;i++)if(I(n=h.data(e,r[i])))return n;e=e.parentNode||e.nodeType===Zt&&e.host}}function Un(e){Mn(e,!0);while(e.firstChild)e.removeChild(e.firstChild)}function zn(e,t){t||Mn(e);var n=e.parentNode
;n&&n.removeChild(e)}function Wn(t,n){n=n||e,n.document.readyState==="complete"?n.setTimeout(t):h(n).on("load",t)}function Kn(e,t){var n=Vn[t.toLowerCase()];return n&&$n[at(e)]&&n}function Qn(e){return Jn[e]}function Gn(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],s=i?i.length:0;if(!s)return;if(F(n.immediatePropagationStopped)){var o=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&
n.stopPropagation(),o&&o.call(n)}}n.isImmediatePropagationStopped=function(){return n.immediatePropagationStopped===!0};var u=i.specialHandlerWrapper||Yn;s>1&&(i=ht(i));for(var a=0;a<s;a++)n.isImmediatePropagationStopped()||u(e,n,i[a])};return n.elem=e,n}function Yn(e,t,n){n.call(e,t)}function Zn(e,t,n){var r=t.relatedTarget;(!r||r!==e&&!Ln.call(e,r))&&n.call(e,t)}function er(){this.$get=function(){return O(An,{hasClass:function(e,t){return e.attr&&(e=e[0]),Bn(e,t)},addClass:function(e,t){return e
.attr&&(e=e[0]),Fn(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),jn(e,t)}})}}function tr(e,t){var n=e&&e.$$hashKey;if(n)return typeof n=="function"&&(n=e.$$hashKey()),n;var r=typeof e;return r=="function"||r=="object"&&e!==null?n=e.$$hashKey=r+":"+(t||k)():n=r+":"+e,n}function nr(e,t){if(t){var n=0;this.nextUid=function(){return++n}}T(e,this.put,this)}function lr(e){var t=e.toString().replace(ar,""),n=t.match(ir)||t.match(sr);return n}function cr(e){var t=lr(e);return t?"function("+(t[1
]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function hr(e,t,n){var r,i,s;if(typeof e=="function"){if(!(r=e.$inject)){r=[];if(e.length){if(t){if(!U(n)||!n)n=e.name||cr(e);throw fr("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n)}i=lr(e),T(i[1].split(or),function(e){e.replace(ur,function(e,t,n){r.push(n)})})}e.$inject=r}}else X(e)?(s=e.length-1,zt(e[s],"fn"),r=e.slice(0,s)):zt(e,"fn",!0);return r}function pr(e,t){function d(e){return function(t,n){if(!q(t))return e
(t,n);T(t,C(e))}}function v(e,t){Wt(e,"service");if(V(t)||X(t))t=a.instantiate(t);if(!t.$get)throw fr("pget","Provider '{0}' must define $get factory method.",e);return u[e+i]=t}function m(e,t){return function(){var r=h.invoke(t,this);if(F(r))throw fr("undef","Provider '{0}' must return a value from $get factory method.",e);return r}}function g(e,t,n){return v(e,{$get:n!==!1?m(e,t):t})}function y(e,t){return g(e,["$injector",function(e){return e.instantiate(t)}])}function b(e,t){return g(e,B(t),!1
)}function S(e,t){Wt(e,"constant"),u[e]=t,f[e]=t}function x(e,t){var n=a.get(e+i),r=n.$get;n.$get=function(){var e=h.invoke(r,n);return h.invoke(t,null,{$delegate:e})}}function N(e){Ut(F(e)||X(e),"modulesToLoad","not an array");var t=[],n;return T(e,function(e){function r(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=a.get(r[0]);i[r[1]].apply(i,r[2])}}if(o.get(e))return;o.put(e,!0);try{U(e)?(n=E(e),t=t.concat(N(n.requires)).concat(n._runBlocks),r(n._invokeQueue),r(n._configBlocks)):V(e)?t.push
(a.invoke(e)):X(e)?t.push(a.invoke(e)):zt(e,"module")}catch(i){throw X(e)&&(e=e[e.length-1]),i.message&&i.stack&&i.stack.indexOf(i.message)==-1&&(i=i.message+"\n"+i.stack),fr("modulerr","Failed to instantiate module {0} due to:\n{1}",e,i.stack||i.message||i)}}),t}function k(e,n){function o(t,i){if(e.hasOwnProperty(t)){if(e[t]===r)throw fr("cdep","Circular dependency found: {0}",t+" <- "+s.join(" <- "));return e[t]}try{return s.unshift(t),e[t]=r,e[t]=n(t,i)}catch(o){throw e[t]===r&&delete e[t],o}finally{
s.shift()}}function a(e,n,r){var i=[],s=pr.$$annotate(e,t,r);for(var u=0,a=s.length;u<a;u++){var f=s[u];if(typeof f!="string")throw fr("itkn","Incorrect injection token! Expected service name as string, got {0}",f);i.push(n&&n.hasOwnProperty(f)?n[f]:o(f,r))}return i}function f(e){return c<=11?!1:typeof e=="function"&&/^(?:class\s|constructor\()/.test(Function.prototype.toString.call(e))}function l(e,t,n,r){typeof n=="string"&&(r=n,n=null);var i=a(e,n,r);return X(e)&&(e=e[e.length-1]),f(e)?(i.unshift
(null),new(Function.prototype.bind.apply(e,i))):e.apply(t,i)}function h(e,t,n){var r=X(e)?e[e.length-1]:e,i=a(e,t,n);return i.unshift(null),new(Function.prototype.bind.apply(r,i))}return{invoke:l,instantiate:h,get:o,annotate:pr.$$annotate,has:function(t){return u.hasOwnProperty(t+i)||e.hasOwnProperty(t)}}}t=t===!0;var r={},i="Provider",s=[],o=new nr([],!0),u={$provide:{provider:d(v),factory:d(g),service:d(y),value:d(b),constant:d(S),decorator:x}},a=u.$injector=k(u,function(e,t){throw w.isString(t
)&&s.push(t),fr("unpr","Unknown provider: {0}",s.join(" <- "))}),f={},l=k(f,function(e,t){var r=a.get(e+i,t);return h.invoke(r.$get,r,n,e)}),h=l;u["$injector"+i]={$get:B(l)};var p=N(e);return h=l.get("$injector"),h.strictDi=t,T(p,function(e){e&&h.invoke(e)}),h}function dr(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function s(e){var t=null;return Array.prototype.some.call(e,function(e){if(at(e)==="a")return t=e,!0}),t}function o
(){var e=a.yOffset;if(V(e))e=e();else if(ot(e)){var n=e[0],r=t.getComputedStyle(n);r.position!=="fixed"?e=0:e=n.getBoundingClientRect().bottom}else z(e)||(e=0);return e}function u(e){if(e){e.scrollIntoView();var n=o();if(n){var r=e.getBoundingClientRect().top;t.scrollBy(0,r-n)}}else t.scrollTo(0,0)}function a(e){e=U(e)?e:n.hash();var t;e?(t=i.getElementById(e))?u(t):(t=s(i.getElementsByName(e)))?u(t):e==="top"&&u(null):u(null)}var i=t.document;return e&&r.$watch(function(){return n.hash()},function(
t,n){if(t===n&&t==="")return;Wn(function(){r.$evalAsync(a)})}),a}]}function yr(e,t){return!e&&!t?"":e?t?(X(e)&&(e=e.join(" ")),X(t)&&(t=t.join(" ")),e+" "+t):e:t}function br(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===mr)return n}}function wr(e){U(e)&&(e=e.split(" "));var t=$t();return T(e,function(e){e.length&&(t[e]=!0)}),t}function Er(e){return q(e)?e:{}}function Lr(e,t,n,r){function d(e){try{e.apply(null,gt(arguments,1))}finally{c--;if(c===0)while(p.length)try{p.pop()()}catch(t){
n.error(t)}}}function v(e){var t=e.indexOf("#");return t===-1?"":e.substr(t)}function x(){w=null,k(),L()}function N(){try{return u.state}catch(e){}}function k(){m=N(),m=F(m)?null:m,pt(m,C)&&(m=C),C=m}function L(){if(y===i.url()&&g===m)return;y=i.url(),g=m,T(E,function(e){e(i.url(),m)})}var i=this,s=t[0],o=e.location,u=e.history,a=e.setTimeout,f=e.clearTimeout,l={};i.isMock=!1;var c=0,p=[];i.$$completeOutstandingRequest=d,i.$$incOutstandingRequestCount=function(){c++},i.notifyWhenNoOutstandingRequests=
function(e){c===0?e():p.push(e)};var m,g,y=o.href,b=t.find("base"),w=null;k(),g=m,i.url=function(t,n,s){F(s)&&(s=null),o!==e.location&&(o=e.location),u!==e.history&&(u=e.history);if(t){var a=g===s;if(y===t&&(!r.history||a))return i;var f=y&&xi(y)===xi(t);y=t,g=s;if(r.history&&(!f||!a))u[n?"replaceState":"pushState"](s,"",t),k(),g=m;else{if(!f||w)w=t;n?o.replace(t):f?o.hash=v(t):o.href=t,o.href!==t&&(w=t)}return i}return w||o.href.replace(/%27/g,"'")},i.state=function(){return m};var E=[],S=!1,C=null
;i.onUrlChange=function(t){return S||(r.history&&h(e).on("popstate",x),h(e).on("hashchange",x),S=!0),E.push(t),t},i.$$applicationDestroyed=function(){h(e).off("hashchange popstate",x)},i.$$checkUrlChange=L,i.baseHref=function(){var e=b.attr("href");return e?e.replace(/^(https?\:)?\/\/[^\/]*/,""):""},i.defer=function(e,t){var n;return c++,n=a(function(){delete l[n],d(e)},t||0),l[n]=!0,n},i.defer.cancel=function(e){return l[e]?(delete l[e],f(e),d(P),!0):!1}}function Ar(){this.$get=["$window","$log"
,"$sniffer","$document",function(e,t,n,r){return new Lr(e,r,t,n)}]}function Or(){this.$get=function(){function t(t,n){function c(e){e!=f&&(l?l==e&&(l=e.n):l=e,h(e.n,e.p),h(e,f),f=e,f.n=null)}function h(e,t){e!=t&&(e&&(e.p=t),t&&(t.n=e))}if(t in e)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var i=0,s=O({},n,{id:t}),o=$t(),u=n&&n.capacity||Number.MAX_VALUE,a=$t(),f=null,l=null;return e[t]={put:function(e,t){if(F(t))return;if(u<Number.MAX_VALUE){var n=a[e]||(a[e]={key:e});c(n
)}return e in o||i++,o[e]=t,i>u&&this.remove(l.key),t},get:function(e){if(u<Number.MAX_VALUE){var t=a[e];if(!t)return;c(t)}return o[e]},remove:function(e){if(u<Number.MAX_VALUE){var t=a[e];if(!t)return;t==f&&(f=t.p),t==l&&(l=t.n),h(t.n,t.p),delete a[e]}if(!(e in o))return;delete o[e],i--},removeAll:function(){o=$t(),i=0,a=$t(),f=l=null},destroy:function(){o=null,s=null,a=null,delete e[t]},info:function(){return O({},s,{size:i})}}}var e={};return t.info=function(){var t={};return T(e,function(e,n)
{t[n]=e.info()}),t},t.get=function(t){return e[t]},t}}function Mr(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function Dr(e,r){function v(e,t,n){var r=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,i={};return T(e,function(e,s){var o=e.match(r);if(!o)throw _r("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,s,e,n?"controller bindings definition":"isolate scope definition");i[s]={mode:o[1][0],collection:o[2]==="*",optional:o[3]==="?",attrName:o[4]||s}}),i}function m
(e,t){var n={isolateScope:null,bindToController:null};q(e.scope)&&(e.bindToController===!0?(n.bindToController=v(e.scope,t,!0),n.isolateScope={}):n.isolateScope=v(e.scope,t,!1)),q(e.bindToController)&&(n.bindToController=v(e.bindToController,t,!0));if(q(n.bindToController)){var r=e.controller,i=e.controllerAs;if(!r)throw _r("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);if(!Ur(r,i))throw _r("noident","Cannot bind to controller without identifier for directive '{0}'."
,t)}return n}function y(e){var t=e.charAt(0);if(!t||t!==u(t))throw _r("baddir","Directive name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw _r("baddir","Directive name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}var i={},s="Directive",a=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,f=/(([\w\-]+)(?:\:([^;]+))?;?)/,l=ut("ngSrc,ngSrcset,src,srcset"),p=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,d=/^(on[a-z]+|formaction)$/;this.directive=function w
(t,n){return Wt(t,"directive"),U(t)?(y(t),Ut(n,"directiveFactory"),i.hasOwnProperty(t)||(i[t]=[],e.factory(t+s,["$injector","$exceptionHandler",function(e,n){var r=[];return T(i[t],function(i,s){try{var o=e.invoke(i);V(o)?o={compile:B(o)}:!o.compile&&o.link&&(o.compile=B(o.link)),o.priority=o.priority||0,o.index=s,o.name=o.name||t,o.require=o.require||o.controller&&o.name,o.restrict=o.restrict||"EA";var u=o.$$bindings=m(o,o.name);q(u.isolateScope)&&(o.$$isolateBindings=u.isolateScope),o.$$moduleName=
i.$$moduleName,r.push(o)}catch(a){n(a)}}),r}])),i[t].push(n)):T(t,C(w)),this},this.component=function(t,n){function i(e){function t(t){return V(t)||X(t)?function(n,r){return e.invoke(t,this,{$element:n,$attrs:r})}:t}var i=!n.template&&!n.templateUrl?"":n.template;return{controller:r,controllerAs:Ur(n.controller)||n.controllerAs||"$ctrl",template:t(i),templateUrl:t(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require}}var r=n.controller||function(
){};return T(n,function(e,t){t.charAt(0)==="$"&&(i[t]=e)}),i.$inject=["$injector"],this.directive(t,i)},this.aHrefSanitizationWhitelist=function(e){return I(e)?(r.aHrefSanitizationWhitelist(e),this):r.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return I(e)?(r.imgSrcSanitizationWhitelist(e),this):r.imgSrcSanitizationWhitelist()};var b=!0;this.debugInfoEnabled=function(e){return I(e)?(b=e,this):b},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest"
,"$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(e,r,v,m,y,w,E,S,x,N){function A(e,t,n){k.innerHTML="<span "+t+">";var r=k.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}function M(e,t){try{e.addClass(t)}catch(n){}}function z(e,n,r,i,s){e instanceof h||(e=h(e));var o=/\S+/;for(var u=0,a=e.length;u<a;u++){var f=e[u];f.nodeType===Qt&&f.nodeValue.match(o)&&kn(f,e[u]=t.createElement("span"))}var l=$(e,n,e,r,i,s);z.$$addScopeClass
(e);var c=null;return function(n,r,i){Ut(n,"scope"),s&&s.needsNewScope&&(n=n.$parent.$new()),i=i||{};var o=i.parentBoundTranscludeFn,u=i.transcludeControllers,a=i.futureParentElement;o&&o.$$boundTransclude&&(o=o.$$boundTransclude),c||(c=W(a));var f;c!=="html"?f=h(dt(c,h("<div>").append(e).html())):r?f=Xn.clone.call(e):f=e;if(u)for(var p in u)f.data("$"+p+"Controller",u[p].instance);return z.$$addScopeInfo(f,n),r&&r(f,n),l&&l(n,f,f,o),f}}function W(e){var t=e&&e[0];return t?at(t)!=="foreignobject"&&
g.call(t).match(/SVG/)?"svg":"html":"html"}function $(e,t,r,i,s,o){function g(e,r,i,s){var o,a,f,l,c,p,d,m,g;if(v){var y=r.length;g=new Array(y);for(c=0;c<u.length;c+=3)d=u[c],g[d]=r[d]}else g=r;for(c=0,p=u.length;c<p;)f=g[u[c++]],o=u[c++],a=u[c++],o?(o.scope?(l=e.$new(),z.$$addScopeInfo(h(f),l)):l=e,o.transcludeOnThisElement?m=J(e,o.transclude,s):!o.templateOnThisElement&&s?m=s:!s&&t?m=J(e,t):m=null,o(a,l,f,i,m)):a&&a(e,f.childNodes,n,s)}var u=[],a,f,l,c,p,d,v;for(var m=0;m<e.length;m++){a=new L
,f=Q(e[m],[],a,m===0?i:n,s),l=f.length?tt(f,e[m],a,t,r,null,[],[],o):null,l&&l.scope&&z.$$addScopeClass(a.$$element),p=l&&l.terminal||!(c=e[m].childNodes)||!c.length?null:$(c,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:t);if(l||p)u.push(m,l,p),d=!0,v=v||l;o=null}return d?g:null}function J(e,t,n){var r=function(r,i,s,o,u){return r||(r=e.$new(!1,u),r.$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:s,futureParentElement:o})},i=r.$$slots=$t();for(var s in 
t.$$slots)t.$$slots[s]?i[s]=J(e,t.$$slots[s],n):i[s]=null;return r}function Q(e,t,n,r,i){var s=e.nodeType,o=n.$attr,u,l;switch(s){case Jt:rt(t,Hr(at(e)),"E",r,i);for(var h,p,d,v,m,g,y=e.attributes,b=0,w=y&&y.length;b<w;b++){var E=!1,S=!1;h=y[b],p=h.name,m=it(h.value),v=Hr(p);if(g=I.test(v))p=p.replace(Pr,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()});var x=v.match(R);x&&st(x[1])&&(E=p,S=p.substr(0,p.length-5)+"end",p=p.substr(0,p.length-6)),d=Hr(p.toLowerCase()),o[d]=p;if(g||!
n.hasOwnProperty(d))n[d]=m,Kn(e,d)&&(n[d]=!0);mt(e,t,m,d,g),rt(t,d,"A",r,i,E,S)}l=e.className,q(l)&&(l=l.animVal);if(U(l)&&l!=="")while(u=f.exec(l))d=Hr(u[2]),rt(t,d,"C",r,i)&&(n[d]=it(u[3])),l=l.substr(u.index+u[0].length);break;case Qt:if(c===11)while(e.parentNode&&e.nextSibling&&e.nextSibling.nodeType===Qt)e.nodeValue=e.nodeValue+e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);ht(t,e.nodeValue);break;case Gt:try{u=a.exec(e.nodeValue),u&&(d=Hr(u[1]),rt(t,d,"M",r,i)&&(n[d]=it(u[2
])))}catch(T){}}return t.sort(ft),t}function G(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t)){do{if(!e)throw _r("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType==Jt&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0)}else r.push(e);return h(r)}function Y(e,t,n){return function(r,i,s,o,u){return i=G(i[0],t,n),e(r,i,s,o,u)}}function et(e,t,n,r,i,s){if(e)return z(t,n,r,i,s);var o;return function(){return o||(
o=z(t,n,r,i,s),t=n=s=null),o.apply(this,arguments)}}function tt(e,r,i,s,o,u,a,f,l){function mt(e,t,n,r){if(e){n&&(e=Y(e,n,r)),e.require=C.require,e.directiveName=k;if(g===C||C.$$isolateScope)e=bt(e,{isolateScope:!0});a.push(e)}if(t){n&&(t=Y(t,n,r)),t.require=C.require,t.directiveName=k;if(g===C||C.$$isolateScope)t=bt(t,{isolateScope:!0});f.push(t)}}function St(e,t,n,r){var i;if(U(t)){var s=t.match(p),o=t.substring(s[0].length),u=s[1]||s[3],a=s[2]==="?";u==="^^"?n=n.parent():(i=r&&r[o],i=i&&i.instance
);if(!i){var f="$"+o+"Controller";i=u?n.inheritedData(f):n.data(f)}if(!i&&!a)throw _r("ctreq","Controller '{0}', required by directive '{1}', can't be found!",o,e)}else if(X(t)){i=[];for(var l=0,c=t.length;l<c;l++)i[l]=St(e,t[l],n,r)}else q(t)&&(i={},T(t,function(t,s){i[s]=St(e,t,n,r)}));return i||null}function xt(e,t,n,r,i,s){var o=$t();for(var u in r){var a=r[u],f={$scope:a===g||a.$$isolateScope?i:s,$element:e,$attrs:t,$transclude:n},l=a.controller;l=="@"&&(l=t[a.name]);var c=w(l,f,!0,a.controllerAs
);o[a.name]=c,x||e.data("$"+a.name+"Controller",c.instance)}return o}function Tt(e,t,s,o,u){function B(e,t,r,i){var s;K(e)||(i=r,r=t,t=e,e=n),x&&(s=w),r||(r=x?S.parent():S);if(!i)return u(e,t,s,r,H);var o=u.$$slots[i];if(o)return o(e,t,s,r,H);if(F(o))throw _r("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',i,Ct(S))}var l,c,p,v,b,w,E,S,N,C,k;r===s?(N=i,S=i.$$element):(S=h(s),N=new L(S,i)),b=t,g?v=t.$new(!0):d&&(b=t.$parent),u&&(E=B,E.$$boundTransclude=
u,E.isSlotFilled=function(e){return!!u.$$slots[e]}),m&&(w=xt(S,N,E,m,v,t)),g&&(z.$$addScopeInfo(S,v,!0,!y||y!==g&&y!==g.$$originalDirective),z.$$addScopeClass(S,!0),v.$$isolateBindings=g.$$isolateBindings,C=Et(t,N,v,v.$$isolateBindings,g),C&&v.$on("$destroy",C));for(var A in w){var M=m[A],_=w[A],D=M.$$bindings.bindToController;_.identifier&&D&&(k=Et(b,N,_.instance,D,M));var P=_();P!==_.instance&&(_.instance=P,S.data("$"+M.name+"Controller",P),k&&k(),k=Et(b,N,_.instance,D,M))}T(m,function(e,t){var n=
e.require;e.bindToController&&!X(n)&&q(n)&&O(w[t].instance,St(t,n,S,w))}),T(w,function(e){V(e.instance.$onInit)&&e.instance.$onInit()});for(l=0,c=a.length;l<c;l++)p=a[l],wt(p,p.isolateScope?v:t,S,N,p.require&&St(p.directiveName,p.require,S,w),E);var H=t;g&&(g.template||g.templateUrl===null)&&(H=v),e&&e(H,s.childNodes,n,u);for(l=f.length-1;l>=0;l--)p=f[l],wt(p,p.isolateScope?v:t,S,N,p.require&&St(p.directiveName,p.require,S,w),E)}l=l||{};var c=-Number.MAX_VALUE,d=l.newScopeDirective,m=l.controllerDirectives
,g=l.newIsolateScopeDirective,y=l.templateDirective,b=l.nonTlbTranscludeDirective,E=!1,S=!1,x=l.hasElementTranscludeDirective,N=i.$$element=h(r),C,k,A,M=u,_=s,D,P=!1,H=!1,B;for(var I=0,R=e.length;I<R;I++){C=e[I];var W=C.$$start,$=C.$$end;W&&(N=G(r,W,$)),A=n;if(c>C.priority)break;if(B=C.scope)C.templateUrl||(q(B)?(ct("new/isolated scope",g||d,C,N),g=C):ct("new/isolated scope",g,C,N)),d=d||C;k=C.name;if(!P&&(C.replace&&(C.templateUrl||C.template)||C.transclude&&!C.$$tlb)){var J;for(var Z=I+1;J=e[Z++
];)if(J.transclude&&!J.$$tlb||J.replace&&(J.templateUrl||J.template)){H=!0;break}P=!0}!C.templateUrl&&C.controller&&(B=C.controller,m=m||$t(),ct("'"+k+"' controller",m[k],C,N),m[k]=C);if(B=C.transclude){E=!0,C.$$tlb||(ct("transclusion",b,C,N),b=C);if(B=="element")x=!0,c=C.priority,A=N,N=i.$$element=h(t.createComment(" "+k+": "+i[k]+" ")),r=N[0],yt(o,gt(A),r),_=et(H,A,s,c,M&&M.name,{nonTlbTranscludeDirective:b});else{var tt=$t();A=h(On(r)).contents();if(q(B)){A=[];var rt=$t(),st=$t();T(B,function(
e,t){var n=e.charAt(0)==="?";e=n?e.substring(1):e,rt[e]=t,tt[t]=null,st[t]=n}),T(N.contents(),function(e){var t=rt[Hr(at(e))];t?(st[t]=!0,tt[t]=tt[t]||[],tt[t].push(e)):A.push(e)}),T(st,function(e,t){if(!e)throw _r("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(var ft in tt)tt[ft]&&(tt[ft]=et(H,tt[ft],s))}N.empty(),_=et(H,A,s,n,n,{needsNewScope:C.$$isolateScope||C.$$newScope}),_.$$slots=tt}}if(C.template){S=!0,ct("template",y,C,N),y=C,B=V(C.template)?C.template(N,i):C.template
,B=j(B);if(C.replace){M=C,En(B)?A=[]:A=Ir(dt(C.templateNamespace,it(B))),r=A[0];if(A.length!=1||r.nodeType!==Jt)throw _r("tplrt","Template for directive '{0}' must have exactly one root element. {1}",k,"");yt(o,N,r);var lt={$attr:{}},ht=Q(r,[],lt),pt=e.splice(I+1,e.length-(I+1));(g||d)&&nt(ht,g,d),e=e.concat(ht).concat(pt),ot(i,lt),R=e.length}else N.html(B)}if(C.templateUrl)S=!0,ct("template",y,C,N),y=C,C.replace&&(M=C),Tt=ut(e.splice(I,e.length-I),N,i,o,E&&_,a,f,{controllerDirectives:m,newScopeDirective
:d!==C&&d,newIsolateScopeDirective:g,templateDirective:y,nonTlbTranscludeDirective:b}),R=e.length;else if(C.compile)try{D=C.compile(N,i,_),V(D)?mt(null,D,W,$):D&&mt(D.pre,D.post,W,$)}catch(vt){v(vt,Ct(N))}C.terminal&&(Tt.terminal=!0,c=Math.max(c,C.priority))}return Tt.scope=d&&d.scope===!0,Tt.transcludeOnThisElement=E,Tt.templateOnThisElement=S,Tt.transclude=_,l.hasElementTranscludeDirective=x,Tt}function nt(e,t,n){for(var r=0,i=e.length;r<i;r++)e[r]=D(e[r],{$$isolateScope:t,$$newScope:n})}function rt
(t,n,r,o,u,a,f){if(n===u)return null;var l=null;if(i.hasOwnProperty(n))for(var c,h=e.get(n+s),p=0,d=h.length;p<d;p++)try{c=h[p],(F(o)||o>c.priority)&&c.restrict.indexOf(r)!=-1&&(a&&(c=D(c,{$$start:a,$$end:f})),t.push(c),l=c)}catch(m){v(m)}return l}function st(t){if(i.hasOwnProperty(t))for(var n,r=e.get(t+s),o=0,u=r.length;o<u;o++){n=r[o];if(n.multiElement)return!0}return!1}function ot(e,t){var n=t.$attr,r=e.$attr,i=e.$$element;T(e,function(r,i){i.charAt(0)!="$"&&(t[i]&&t[i]!==r&&(r+=(i==="style"?";"
:" ")+t[i]),e.$set(i,r,!0,n[i]))}),T(t,function(t,s){s=="class"?(M(i,t),e["class"]=(e["class"]?e["class"]+" ":"")+t):s=="style"?(i.attr("style",i.attr("style")+";"+t),e.style=(e.style?e.style+";":"")+t):s.charAt(0)!="$"&&!e.hasOwnProperty(s)&&(e[s]=t,r[s]=n[s])})}function ut(e,t,n,r,i,s,o,u){var a=[],f,l,c=t[0],p=e.shift(),d=D(p,{templateUrl:null,transclude:null,replace:null,$$originalDirective:p}),v=V(p.templateUrl)?p.templateUrl(t,n):p.templateUrl,g=p.templateNamespace;return t.empty(),m(v).then
(function(m){var y,b,w,E;m=j(m);if(p.replace){En(m)?w=[]:w=Ir(dt(g,it(m))),y=w[0];if(w.length!=1||y.nodeType!==Jt)throw _r("tplrt","Template for directive '{0}' must have exactly one root element. {1}",p.name,v);b={$attr:{}},yt(r,t,y);var S=Q(y,[],b);q(p.scope)&&nt(S,!0),e=S.concat(e),ot(n,b)}else y=c,t.html(m);e.unshift(d),f=tt(e,y,n,i,t,p,s,o,u),T(r,function(e,n){e==y&&(r[n]=t[0])}),l=$(t[0].childNodes,i);while(a.length){var x=a.shift(),N=a.shift(),C=a.shift(),k=a.shift(),L=t[0];if(x.$$destroyed
)continue;if(N!==c){var A=N.className;if(!u.hasElementTranscludeDirective||!p.replace)L=On(y);yt(C,h(N),L),M(h(L),A)}f.transcludeOnThisElement?E=J(x,f.transclude,k):E=k,f(l,x,L,r,E)}a=null}),function(t,n,r,i,s){var o=s;if(n.$$destroyed)return;a?a.push(n,r,i,o):(f.transcludeOnThisElement&&(o=J(n,f.transclude,s)),f(l,n,r,i,o))}}function ft(e,t){var n=t.priority-e.priority;return n!==0?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function ct(e,t,n,r){function i(e){return e?" (module: "+e+")"
:""}if(t)throw _r("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,Ct(r))}function ht(e,t){var n=r(t,!0);n&&e.push({priority:0,compile:function(t){var r=t.parent(),i=!!r.length;return i&&z.$$addBindingClass(r),function(t,r){var s=r.parent();i||z.$$addBindingClass(s),z.$$addBindingInfo(s,n.expressions),t.$watch(n,function(t){r[0].nodeValue=t})}}})}function dt(e,n){e=u(e||"html");switch(e){case"svg":case"math":var r=t.createElement
("div");return r.innerHTML="<"+e+">"+n+"</"+e+">",r.childNodes[0].childNodes;default:return n}}function vt(e,t){if(t=="srcdoc")return S.HTML;var n=at(e);if(t=="xlinkHref"||n=="form"&&t=="action"||n!="img"&&(t=="src"||t=="ngSrc"))return S.RESOURCE_URL}function mt(e,t,n,i,s){var o=vt(e,i);s=l[i]||s;var u=r(n,!0,o,s);if(!u)return;if(i==="multiple"&&at(e)==="select")throw _r("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Ct(e));t.push({priority:100,compile:function(){
return{pre:function(t,a,f){var l=f.$$observers||(f.$$observers=$t());if(d.test(i))throw _r("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");var c=f[i];c!==n&&(u=c&&r(c,!0,o,s),n=c);if(!u)return;f[i]=u(t),(l[i]||(l[i]=[])).$$inter=!0,(f.$$observers&&f.$$observers[i].$$scope||t).$watch(u,function(t,n){i==="class"&&t!=n?f.$updateClass(t,n):f.$set(i,t)})}}}})}function yt(e,n,r){var i=n[0],s=n.length
,o=i.parentNode,u,a;if(e)for(u=0,a=e.length;u<a;u++)if(e[u]==i){e[u++]=r;for(var f=u,l=f+s-1,c=e.length;f<c;f++,l++)l<c?e[f]=e[l]:delete e[f];e.length-=s-1,e.context===i&&(e.context=r);break}o&&o.replaceChild(r,i);var p=t.createDocumentFragment();for(u=0;u<s;u++)p.appendChild(n[u]);h.hasData(i)&&(h.data(r,h.data(i)),h(i).off("$destroy")),h.cleanData(p.querySelectorAll("*"));for(u=1;u<s;u++)delete n[u];n[0]=r,n.length=1}function bt(e,t){return O(function(){return e.apply(null,arguments)},e,t)}function wt
(e,t,n,r,i,s){try{e(t,n,r,i,s)}catch(o){v(o,Ct(n))}}function Et(e,t,n,i,s){var u=[];return T(i,function(i,a){var f=i.attrName,l=i.optional,c=i.mode,h,p,d,v,m;switch(c){case"@":!l&&!o.call(t,f)&&(n[a]=t[f]=void 0),t.$observe(f,function(e){U(e)&&(n[a]=e)}),t.$$observers[f].$$scope=e,h=t[f],U(h)?n[a]=r(h)(e):Z(h)&&(n[a]=h);break;case"=":if(!o.call(t,f)){if(l)break;t[f]=void 0}if(l&&!t[f])break;p=y(t[f]),p.literal?v=pt:v=function(e,t){return e===t||e!==e&&t!==t},d=p.assign||function(){throw h=n[a]=p(
e),_r("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[f],f,s.name)},h=n[a]=p(e);var g=function(r){return v(r,n[a])||(v(r,h)?d(e,r=n[a]):n[a]=r),h=r};g.$stateful=!0,i.collection?m=e.$watchCollection(t[f],g):m=e.$watch(y(t[f],g),null,p.literal),u.push(m);break;case"<":if(!o.call(t,f)){if(l)break;t[f]=void 0}if(l&&!t[f])break;p=y(t[f]),n[a]=p(e),m=e.$watch(p,function(t){n[a]=t},p.literal),u.push(m);break;case"&":p=t.hasOwnProperty(f)?y(t[f]):P;if(p===
P&&l)break;n[a]=function(t){return p(e,t)}}}),u.length&&function(){for(var t=0,n=u.length;t<n;++t)u[t]()}}var C=/^\w/,k=t.createElement("div"),L=function(e,t){if(t){var n=Object.keys(t),r,i,s;for(r=0,i=n.length;r<i;r++)s=n[r],this[s]=t[s]}else this.$attr={};this.$$element=e};L.prototype={$normalize:Hr,$addClass:function(e){e&&e.length>0&&x.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&x.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=Fr(e,t);n&&n.length&&x.addClass
(this.$$element,n);var r=Fr(t,e);r&&r.length&&x.removeClass(this.$$element,r)},$set:function(e,t,n,r){var i=this.$$element[0],s=Kn(i,e),o=Qn(e),u=e,a;s?(this.$$element.prop(e,t),r=s):o&&(this[o]=t,u=o),this[e]=t,r?this.$attr[e]=r:(r=this.$attr[e],r||(this.$attr[e]=r=It(e,"-"))),a=at(this.$$element);if(a==="a"&&(e==="href"||e==="xlinkHref")||a==="img"&&e==="src")this[e]=t=N(t,e==="src");else if(a==="img"&&e==="srcset"){var f="",l=it(t),c=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,h=/\s/.test(l)?c:/(,)/
,p=l.split(h),d=Math.floor(p.length/2);for(var m=0;m<d;m++){var g=m*2;f+=N(it(p[g]),!0),f+=" "+it(p[g+1])}var y=it(p[m*2]).split(/\s/);f+=N(it(y[0]),!0),y.length===2&&(f+=" "+it(y[1])),this[e]=t=f}n!==!1&&(t===null||F(t)?this.$$element.removeAttr(r):C.test(r)?this.$$element.attr(r,t):A(this.$$element[0],r,t));var b=this.$$observers;b&&T(b[u],function(e){try{e(t)}catch(n){v(n)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=$t()),i=r[e]||(r[e]=[]);return i.push(t),E.$evalAsync
(function(){!i.$$inter&&n.hasOwnProperty(e)&&!F(n[e])&&t(n[e])}),function(){lt(i,t)}}};var _=r.startSymbol(),B=r.endSymbol(),j=_=="{{"&&B=="}}"?H:function(t){return t.replace(/\{\{/g,_).replace(/}}/g,B)},I=/^ngAttr[A-Z]/,R=/^(.+)Start$/;return z.$$addBindingInfo=b?function(t,n){var r=t.data("$binding")||[];X(n)?r=r.concat(n):r.push(n),t.data("$binding",r)}:P,z.$$addBindingClass=b?function(t){M(t,"ng-binding")}:P,z.$$addScopeInfo=b?function(t,n,r,i){var s=r?i?"$isolateScopeNoTemplate":"$isolateScope"
:"$scope";t.data(s,n)}:P,z.$$addScopeClass=b?function(t,n){M(t,n?"ng-isolate-scope":"ng-scope")}:P,z}]}function Hr(e){return vn(e.replace(Pr,""))}function Br(e,t,n,r){}function jr(e,t,n,r,i){}function Fr(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var s=0;s<r.length;s++){var o=r[s];for(var u=0;u<i.length;u++)if(o==i[u])continue e;n+=(n.length>0?" ":"")+o}return n}function Ir(e){e=h(e);var t=e.length;if(t<=1)return e;while(t--){var n=e[t];n.nodeType===Gt&&v.call(e,t,1)}return e}function Ur
(e,t){if(t&&U(t))return t;if(U(e)){var n=Rr.exec(e);if(n)return n[3]}}function zr(){var e={},t=!1;this.register=function(t,n){Wt(t,"controller"),q(t)?O(e,t):e[t]=n},this.allowGlobals=function(){t=!0},this.$get=["$injector","$window",function(i,s){function o(e,t,n,i){if(!e||!q(e.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,t);e.$scope[t]=n}return function(r,u,a,f){var l,c,h,p;a=a===!0,f&&U(f)&&(p=f);if(U(r)){c=r.match(Rr
);if(!c)throw qr("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);h=c[1],p=p||c[3],r=e.hasOwnProperty(h)?e[h]:Xt(u.$scope,h,!0)||(t?Xt(s,h,!0):n),zt(r,h,!0)}if(a){var d=(X(r)?r[r.length-1]:r).prototype;l=Object.create(d||null),p&&o(u,p,l,h||r.name);var v;return v=O(function(){var e=i.invoke(r,l,u,h);return e!==l&&(q(e)||V(e))&&(l=e,p&&o(u,p,l,h||r.name)),l},{instance:l,identifier:p})}return l=i.instantiate(r,u,h),p&&o(u,p,l,h||r.name),l}}]}function Wr
(){this.$get=["$window",function(e){return h(e.document)}]}function Xr(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function ei(e){return q(e)?W(e)?e.toISOString():wt(e):e}function ti(){this.$get=function(){return function(t){if(!t)return"";var n=[];return N(t,function(e,t){if(e===null||F(e))return;X(e)?T(e,function(e,r){n.push(Mt(t)+"="+Mt(ei(e)))}):n.push(Mt(t)+"="+Mt(ei(e)))}),n.join("&")}}}function ni(){this.$get=function(){return function(t){function r(e
,t,i){if(e===null||F(e))return;X(e)?T(e,function(e,n){r(e,t+"["+(q(e)?n:"")+"]")}):q(e)&&!W(e)?N(e,function(e,n){r(e,t+(i?"":"[")+n+(i?"":"]"))}):n.push(Mt(t)+"="+Mt(ei(e)))}if(!t)return"";var n=[];return r(t,"",!0),n.join("&")}}}function ri(e,t){if(U(e)){var n=e.replace(Gr,"").trim();if(n){var r=t("Content-Type");if(r&&r.indexOf($r)===0||ii(n))e=Et(n)}}return e}function ii(e){var t=e.match(Kr);return t&&Qr[t[0]].test(e)}function si(e){function r(e,n){e&&(t[e]=t[e]?t[e]+", "+n:n)}var t=$t(),n;return U
(e)?T(e.split("\n"),function(e){n=e.indexOf(":"),r(u(it(e.substr(0,n))),it(e.substr(n+1)))}):q(e)&&T(e,function(e,t){r(u(t),it(e))}),t}function oi(e){var t;return function(n){t||(t=si(e));if(n){var r=t[u(n)];return r===void 0&&(r=null),r}return t}}function ui(e,t,n,r){return V(r)?r(e,t,n):(T(r,function(r){e=r(e,t,n)}),e)}function ai(e){return 200<=e&&e<300}function fi(){var e=this.defaults={transformResponse:[ri],transformRequest:[function(e){return q(e)&&!Q(e)&&!Y(e)&&!G(e)?wt(e):e}],headers:{common
:{Accept:"application/json, text/plain, */*"},post:ht(Jr),put:ht(Jr),patch:ht(Jr)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},t=!1;this.useApplyAsync=function(e){return I(e)?(t=!!e,this):t};var i=!0;this.useLegacyPromiseExtensions=function(e){return I(e)?(i=!!e,this):i};var s=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(o,f,l,c,h,p){function m(t){function m(e){var t=O({
},e);return t.data=ui(e.data,e.headers,e.status,s.transformResponse),ai(e.status)?t:h.reject(t)}function g(e,t){var n,r={};return T(e,function(e,i){V(e)?(n=e(t),n!=null&&(r[i]=n)):r[i]=e}),r}function y(t){var n=e.headers,r=O({},t.headers),i,s,o;n=O({},n.common,n[u(t.method)]);e:for(i in n){s=u(i);for(o in r)if(u(o)===s)continue e;r[i]=n[i]}return g(r,ht(t))}if(!q(t))throw r("$http")("badreq","Http request configuration must be an object.  Received: {0}",t);if(!U(t.url))throw r("$http")("badreq","Http request configuration url must be a string.  Received: {0}"
,t.url);var s=O({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer},t);s.headers=y(t),s.method=a(s.method),s.paramSerializer=U(s.paramSerializer)?p.get(s.paramSerializer):s.paramSerializer;var o=function(t){var r=t.headers,i=ui(t.data,oi(r),n,t.transformRequest);return F(i)&&T(r,function(e,t){u(t)==="content-type"&&delete r[t]}),F(t.withCredentials)&&!F(e.withCredentials)&&(t.withCredentials=e.withCredentials),b(t,i).then(m,m)
},f=[o,n],l=h.when(s);T(v,function(e){(e.request||e.requestError)&&f.unshift(e.request,e.requestError),(e.response||e.responseError)&&f.push(e.response,e.responseError)});while(f.length){var c=f.shift(),d=f.shift();l=l.then(c,d)}return i?(l.success=function(e){return zt(e,"fn"),l.then(function(t){e(t.data,t.status,t.headers,s)}),l},l.error=function(e){return zt(e,"fn"),l.then(null,function(t){e(t.data,t.status,t.headers,s)}),l}):(l.success=Zr("success"),l.error=Zr("error")),l}function g(e){T(arguments
,function(e){m[e]=function(t,n){return m(O({},n||{},{method:e,url:t}))}})}function y(e){T(arguments,function(e){m[e]=function(t,n,r){return m(O({},r||{},{method:e,url:t,data:n}))}})}function b(r,i){function y(e,n,r,i){function s(){b(n,e,r,i)}a&&(ai(e)?a.put(v,[e,n,si(r),i]):a.remove(v)),t?c.$applyAsync(s):(s(),c.$$phase||c.$apply())}function b(e,t,n,i){t=t>=-1?t:0,(ai(t)?s.resolve:s.reject)({data:e,status:t,headers:oi(n),config:r,statusText:i})}function E(e){b(e.data,e.status,ht(e.headers()),e.statusText
)}function S(){var e=m.pendingRequests.indexOf(r);e!==-1&&m.pendingRequests.splice(e,1)}var s=h.defer(),u=s.promise,a,l,p=r.headers,v=w(r.url,r.paramSerializer(r.params));m.pendingRequests.push(r),u.then(S,S),(r.cache||e.cache)&&r.cache!==!1&&(r.method==="GET"||r.method==="JSONP")&&(a=q(r.cache)?r.cache:q(e.cache)?e.cache:d),a&&(l=a.get(v),I(l)?et(l)?l.then(E,E):X(l)?b(l[1],l[0],ht(l[2]),l[3]):b(l,200,{},"OK"):a.put(v,u));if(F(l)){var g=As(r.url)?f()[r.xsrfCookieName||e.xsrfCookieName]:n;g&&(p[r.
xsrfHeaderName||e.xsrfHeaderName]=g),o(r.method,v,i,y,p,r.timeout,r.withCredentials,r.responseType)}return u}function w(e,t){return t.length>0&&(e+=(e.indexOf("?")==-1?"?":"&")+t),e}var d=l("$http");e.paramSerializer=U(e.paramSerializer)?p.get(e.paramSerializer):e.paramSerializer;var v=[];return T(s,function(e){v.unshift(U(e)?p.get(e):p.invoke(e))}),m.pendingRequests=[],g("get","delete","head","jsonp"),y("post","put","patch"),m.defaults=e,m}]}function li(){this.$get=function(){return function(){return new 
e.XMLHttpRequest}}}function ci(){this.$get=["$browser","$window","$document","$xhrFactory",function(e,t,n,r){return hi(e,r,e.defer,t.angular.callbacks,n[0])}]}function hi(e,t,n,r,i){function s(e,t,n){var s=i.createElement("script"),o=null;return s.type="text/javascript",s.src=e,s.async=!0,o=function(e){fn(s,"load",o),fn(s,"error",o),i.body.removeChild(s),s=null;var u=-1,a="unknown";e&&(e.type==="load"&&!r[t].called&&(e={type:"error"}),a=e.type,u=e.type==="error"?404:200),n&&n(u,a)},an(s,"load",o)
,an(s,"error",o),i.body.appendChild(s),o}return function(i,o,a,f,l,c,h,p){function w(){v&&v(),m&&m.abort()}function E(t,r,i,s,o){I(b)&&n.cancel(b),v=m=null,t(r,i,s,o),e.$$completeOutstandingRequest(P)}e.$$incOutstandingRequestCount(),o=o||e.url();if(u(i)=="jsonp"){var d="_"+(r.counter++).toString(36);r[d]=function(e){r[d].data=e,r[d].called=!0};var v=s(o.replace("JSON_CALLBACK","angular.callbacks."+d),d,function(e,t){E(f,e,r[d].data,"",t),r[d]=P})}else{var m=t(i,o);m.open(i,o,!0),T(l,function(e,t
){I(e)&&m.setRequestHeader(t,e)}),m.onload=function(){var t=m.statusText||"",n="response"in m?m.response:m.responseText,r=m.status===1223?204:m.status;r===0&&(r=n?200:Ls(o).protocol=="file"?404:0),E(f,r,n,m.getAllResponseHeaders(),t)};var g=function(){E(f,-1,null,null,"")};m.onerror=g,m.onabort=g,h&&(m.withCredentials=!0);if(p)try{m.responseType=p}catch(y){if(p!=="json")throw y}m.send(F(a)?null:a)}if(c>0)var b=n(w,c);else et(c)&&c.then(w)}}function di(){var e="{{",t="}}";this.startSymbol=function(
t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function f(e){return"\\\\\\"+e}function l(n){return n.replace(u,e).replace(a,t)}function c(e){if(e==null)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=wt(e)}return e}function h(e,t,n,r){var i;return i=e.$watch(function(t){return i(),r(t)},t,n)}function p(u,a,f,p){function k(e){try{return e=C(e),p&&!I(e)?e:c(e)}catch(t){r(pi.interr
(u,t))}}if(!u.length||u.indexOf(e)===-1){var d;if(!a){var v=l(u);d=B(v),d.exp=u,d.expressions=[],d.$$watchDelegate=h}return d}p=!!p;var m,g,y=0,b=[],w=[],E=u.length,S,x=[],T=[];while(y<E){if((m=u.indexOf(e,y))==-1||(g=u.indexOf(t,m+s))==-1){y!==E&&x.push(l(u.substring(y)));break}y!==m&&x.push(l(u.substring(y,m))),S=u.substring(m+s,g),b.push(S),w.push(n(S,k)),y=g+o,T.push(x.length),x.push("")}f&&x.length>1&&pi.throwNoconcat(u);if(!a||b.length){var N=function(e){for(var t=0,n=b.length;t<n;t++){if(p&&
F(e[t]))return;x[T[t]]=e[t]}return x.join("")},C=function(e){return f?i.getTrusted(f,e):i.valueOf(e)};return O(function(t){var n=0,i=b.length,s=new Array(i);try{for(;n<i;n++)s[n]=w[n](t);return N(s)}catch(o){r(pi.interr(u,o))}},{exp:u,expressions:b,$$watchDelegate:function(e,t){var n;return e.$watchGroup(w,function(i,s){var o=N(i);V(t)&&t.call(this,o,i!==s?n:o,e),n=o})}})}}var s=e.length,o=t.length,u=new RegExp(e.replace(/./g,f),"g"),a=new RegExp(t.replace(/./g,f),"g");return p.startSymbol=function(
){return e},p.endSymbol=function(){return t},p}]}function vi(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(e,t,n,r,i){function o(o,u,a,f){function y(){l?o.apply(null,c):o(d)}var l=arguments.length>4,c=l?gt(arguments,4):[],h=t.setInterval,p=t.clearInterval,d=0,v=I(f)&&!f,m=(v?r:n).defer(),g=m.promise;return a=I(a)?a:0,g.$$intervalId=h(function(){v?i.defer(y):e.$evalAsync(y),m.notify(d++),a>0&&d>=a&&(m.resolve(d),p(g.$$intervalId),delete s[g.$$intervalId]),v||e.$apply()},u),s[g
.$$intervalId]=m,g}var s={};return o.cancel=function(e){return e&&e.$$intervalId in s?(s[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete s[e.$$intervalId],!0):!1},o}]}function bi(e){var t=e.split("/"),n=t.length;while(n--)t[n]=Ot(t[n]);return t.join("/")}function wi(e,t){var n=Ls(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=_(n.port)||gi[n.protocol]||null}function Ei(e,t){var n=e.charAt(0)!=="/";n&&(e="/"+e);var r=Ls(e);t.$$path=decodeURIComponent(n&&r.pathname
.charAt(0)==="/"?r.pathname.substring(1):r.pathname),t.$$search=Lt(r.search),t.$$hash=decodeURIComponent(r.hash),t.$$path&&t.$$path.charAt(0)!="/"&&(t.$$path="/"+t.$$path)}function Si(e,t){if(t.indexOf(e)===0)return t.substr(e.length)}function xi(e){var t=e.indexOf("#");return t==-1?e:e.substr(0,t)}function Ti(e){return e.replace(/(#.+)|#$/,"$1")}function Ni(e){return e.substr(0,xi(e).lastIndexOf("/")+1)}function Ci(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function ki(e,t,n){this
.$$html5=!0,n=n||"",wi(e,this),this.$$parse=function(e){var n=Si(t,e);if(!U(n))throw yi("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);Ei(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=At(this.$$search),n=this.$$hash?"#"+Ot(this.$$hash):"";this.$$url=bi(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=t+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&i[0]==="#")return this.hash(i.slice(1)),!0;var s,o,u;return I(s=Si(e,r))?(o=s,I(s=
Si(n,s))?u=t+(Si("/",s)||s):u=e+o):I(s=Si(t,r))?u=t+s:t==r+"/"&&(u=t),u&&this.$$parse(u),!!u}}function Li(e,t,n){wi(e,this),this.$$parse=function(r){function o(e,t,n){var r=/^\/[A-Z]:(\/.*)/,i;return t.indexOf(n)===0&&(t=t.replace(n,"")),r.exec(t)?e:(i=r.exec(e),i?i[1]:e)}var i=Si(e,r)||Si(t,r),s;!F(i)&&i.charAt(0)==="#"?(s=Si(n,i),F(s)&&(s=i)):this.$$html5?s=i:(s="",F(i)&&(e=r,this.replace())),Ei(s,this),this.$$path=o(this.$$path,s,e),this.$$compose()},this.$$compose=function(){var t=At(this.$$search
),r=this.$$hash?"#"+Ot(this.$$hash):"";this.$$url=bi(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(t,n){return xi(e)==xi(t)?(this.$$parse(t),!0):!1}}function Ai(e,t,n){this.$$html5=!0,Li.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&i[0]==="#")return this.hash(i.slice(1)),!0;var s,o;return e==xi(r)?s=r:(o=Si(t,r))?s=e+n+o:t===r+"/"&&(s=t),s&&this.$$parse(s),!!s},this.$$compose=function(){var t=At(this.$$search),r=this.$$hash?"#"+
Ot(this.$$hash):"";this.$$url=bi(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+n+this.$$url}}function Mi(e){return function(){return this[e]}}function _i(e,t){return function(n){return F(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function Di(){var e="",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return I(t)?(e=t,this):e},this.html5Mode=function(e){return Z(e)?(t.enabled=e,this):q(e)?(Z(e.enabled)&&(t.enabled=e.enabled),Z(e.requireBase)&&(t.requireBase=e.requireBase
),Z(e.rewriteLinks)&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,s,o){function v(e,t,n){var i=u.url(),s=u.$$state;try{r.url(e,t,n),u.$$state=r.state()}catch(o){throw u.url(i),u.$$state=s,o}}function g(e,t){n.$broadcast("$locationChangeSuccess",u.absUrl(),e,u.$$state,t)}var u,a,f=r.baseHref(),l=r.url(),c;if(t.enabled){if(!f&&t.requireBase)throw yi("nobase","$location in HTML5 mode requires a <base> tag to be present!"
);c=Ci(l)+(f||"/"),a=i.history?ki:Ai}else c=xi(l),a=Li;var p=Ni(c);u=new a(c,p,"#"+e),u.$$parseLinkUrl(l,l),u.$$state=r.state();var d=/^\s*(javascript|mailto):/i;s.on("click",function(e){if(!t.rewriteLinks||e.ctrlKey||e.metaKey||e.shiftKey||e.which==2||e.button==2)return;var i=h(e.target);while(at(i[0])!=="a")if(i[0]===s[0]||!(i=i.parent())[0])return;var a=i.prop("href"),f=i.attr("href")||i.attr("xlink:href");q(a)&&a.toString()==="[object SVGAnimatedString]"&&(a=Ls(a.animVal).href);if(d.test(a))return;
a&&!i.attr("target")&&!e.isDefaultPrevented()&&u.$$parseLinkUrl(a,f)&&(e.preventDefault(),u.absUrl()!=r.url()&&(n.$apply(),o.angular["ff-684208-preventDefault"]=!0))}),Ti(u.absUrl())!=Ti(l)&&r.url(u.absUrl(),!0);var m=!0;return r.onUrlChange(function(e,t){if(F(Si(p,e))){o.location.href=e;return}n.$evalAsync(function(){var r=u.absUrl(),i=u.$$state,s;e=Ti(e),u.$$parse(e),u.$$state=t,s=n.$broadcast("$locationChangeStart",e,r,t,i).defaultPrevented;if(u.absUrl()!==e)return;s?(u.$$parse(r),u.$$state=i,
v(r,!1,i)):(m=!1,g(r,i))}),n.$$phase||n.$digest()}),n.$watch(function(){var t=Ti(r.url()),s=Ti(u.absUrl()),o=r.state(),a=u.$$replace,f=t!==s||u.$$html5&&i.history&&o!==u.$$state;if(m||f)m=!1,n.$evalAsync(function(){var e=u.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,u.$$state,o).defaultPrevented;if(u.absUrl()!==e)return;r?(u.$$parse(t),u.$$state=o):(f&&v(e,a,o===u.$$state?null:u.$$state),g(t,o))});u.$$replace=!1}),u}]}function Pi(){var e=!0,t=this;this.debugEnabled=function(t){return I(t)?
(e=t,this):e},this.$get=["$window",function(n){function r(e){return e instanceof Error&&(e.stack?e=e.message&&e.stack.indexOf(e.message)===-1?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function i(e){var t=n.console||{},i=t[e]||t.log||P,s=!1;try{s=!!i.apply}catch(o){}return s?function(){var e=[];return T(arguments,function(t){e.push(r(t))}),i.apply(t,e)}:function(e,t){i(e,t==null?"":t)}}return{log:i("log"),info:i("info"),warn:i("warn"),error:
i("error"),debug:function(){var n=i("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function Bi(e,t){if(e==="__defineGetter__"||e==="__defineSetter__"||e==="__lookupGetter__"||e==="__lookupSetter__"||e==="__proto__")throw Hi("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",t);return e}function ji(e){return e+""}function Fi(e,t){if(e){if(e.constructor===e)throw Hi("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}"
,t);if(e.window===e)throw Hi("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find))throw Hi("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t);if(e===Object)throw Hi("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t)}return e}function Ui(e,t){if(e){if(e.constructor===e)throw Hi("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}"
,t);if(e===Ii||e===qi||e===Ri)throw Hi("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t)}}function zi(e,t){if(e)if(e===0..constructor||e===(!1).constructor||e==="".constructor||e==={}.constructor||e===[].constructor||e===Function.constructor)throw Hi("isecaf","Assigning to a constructor is disallowed! Expression: {0}",t)}function Ji(e,t){return typeof e!="undefined"?e:t}function Ki(e,t){return typeof e=="undefined"?t:typeof t=="undefined"?e:e+t}function Qi
(e,t){var n=e(t);return!n.$stateful}function Gi(e,t){var n,r;switch(e.type){case $i.Program:n=!0,T(e.body,function(e){Gi(e.expression,t),n=n&&e.expression.constant}),e.constant=n;break;case $i.Literal:e.constant=!0,e.toWatch=[];break;case $i.UnaryExpression:Gi(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case $i.BinaryExpression:Gi(e.left,t),Gi(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case $i.
LogicalExpression:Gi(e.left,t),Gi(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case $i.ConditionalExpression:Gi(e.test,t),Gi(e.alternate,t),Gi(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case $i.Identifier:e.constant=!1,e.toWatch=[e];break;case $i.MemberExpression:Gi(e.object,t),e.computed&&Gi(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=
[e];break;case $i.CallExpression:n=e.filter?Qi(t,e.callee.name):!1,r=[],T(e.arguments,function(e){Gi(e,t),n=n&&e.constant,e.constant||r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=e.filter&&Qi(t,e.callee.name)?r:[e];break;case $i.AssignmentExpression:Gi(e.left,t),Gi(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case $i.ArrayExpression:n=!0,r=[],T(e.elements,function(e){Gi(e,t),n=n&&e.constant,e.constant||r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=r;break;
case $i.ObjectExpression:n=!0,r=[],T(e.properties,function(e){Gi(e.value,t),n=n&&e.value.constant,e.value.constant||r.push.apply(r,e.value.toWatch)}),e.constant=n,e.toWatch=r;break;case $i.ThisExpression:e.constant=!1,e.toWatch=[];break;case $i.LocalsExpression:e.constant=!1,e.toWatch=[]}}function Yi(e){if(e.length!=1)return;var t=e[0].expression,r=t.toWatch;return r.length!==1?r:r[0]!==t?r:n}function Zi(e){return e.type===$i.Identifier||e.type===$i.MemberExpression}function es(e){if(e.body.length===1&&
Zi(e.body[0].expression))return{type:$i.AssignmentExpression,left:e.body[0].expression,right:{type:$i.NGValueParameter},operator:"="}}function ts(e){return e.body.length===0||e.body.length===1&&(e.body[0].expression.type===$i.Literal||e.body[0].expression.type===$i.ArrayExpression||e.body[0].expression.type===$i.ObjectExpression)}function ns(e){return e.constant}function rs(e,t){this.astBuilder=e,this.$filter=t}function is(e,t){this.astBuilder=e,this.$filter=t}function os(e){return e=="constructor"
}function as(e){return V(e.valueOf)?e.valueOf():us.call(e)}function fs(){var e=$t(),t=$t();this.$get=["$filter",function(r){function a(n,i,a){var l,m,g;a=a||u;switch(typeof n){case"string":n=n.trim(),g=n;var y=a?t:e;l=y[g];if(!l){n.charAt(0)===":"&&n.charAt(1)===":"&&(m=!0,n=n.substring(2));var b=a?o:s,w=new Vi(b),E=new ss(w,r,b);l=E.parse(n),l.constant?l.$$watchDelegate=d:m?l.$$watchDelegate=l.literal?p:h:l.inputs&&(l.$$watchDelegate=c),a&&(l=f(l)),y[g]=l}return v(l,i);case"function":return v(n,
i);default:return v(P,i)}}function f(e){function n(t,n,r,i){var s=u;u=!0;try{return e(t,n,r,i)}finally{u=s}}if(!e)return e;n.$$watchDelegate=e.$$watchDelegate,n.assign=f(e.assign),n.constant=e.constant,n.literal=e.literal;for(var t=0;e.inputs&&t<e.inputs.length;++t)e.inputs[t]=f(e.inputs[t]);return n.inputs=e.inputs,n}function l(e,t){if(e==null||t==null)return e===t;if(typeof e=="object"){e=as(e);if(typeof e=="object")return!1}return e===t||e!==e&&t!==t}function c(e,t,r,i,s){var o=i.inputs,u;if(o
.length===1){var a=l;return o=o[0],e.$watch(function(t){var r=o(t);return l(r,a)||(u=i(t,n,n,[r]),a=r&&as(r)),u},t,r,s)}var f=[],c=[];for(var h=0,p=o.length;h<p;h++)f[h]=l,c[h]=null;return e.$watch(function(t){var r=!1;for(var s=0,a=o.length;s<a;s++){var h=o[s](t);if(r||(r=!l(h,f[s])))c[s]=h,f[s]=h&&as(h)}return r&&(u=i(t,n,n,c)),u},t,r,s)}function h(e,t,n,r){var i,s;return i=e.$watch(function(t){return r(t)},function(n,r,o){s=n,V(t)&&t.apply(this,arguments),I(n)&&o.$$postDigest(function(){I(s)&&
i()})},n)}function p(e,t,n,r){function o(e){var t=!0;return T(e,function(e){I(e)||(t=!1)}),t}var i,s;return i=e.$watch(function(t){return r(t)},function(n,r,u){s=n,V(t)&&t.call(this,n,r,u),o(n)&&u.$$postDigest(function(){o(s)&&i()})},n)}function d(e,t,n,r){var i;return i=e.$watch(function(t){return i(),r(t)},t,n)}function v(e,t){if(!t)return e;var n=e.$$watchDelegate,r=!1,i=n!==p&&n!==h,s=i?function(i,s,o,u){var a=r&&u?u[0]:e(i,s,o,u);return t(a,i,s)}:function(r,i,s,o){var u=e(r,i,s,o),a=t(u,r,i)
;return I(u)?a:u};return e.$$watchDelegate&&e.$$watchDelegate!==c?s.$$watchDelegate=e.$$watchDelegate:t.$stateful||(s.$$watchDelegate=c,r=!e.inputs,s.inputs=e.inputs?e.inputs:[e]),s}var i=dt().noUnsafeEval,s={csp:i,expensiveChecks:!1},o={csp:i,expensiveChecks:!0},u=!1;return a.$$runningExpensiveChecks=function(){return u},a}]}function ls(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return hs(function(t){e.$evalAsync(t)},t)}]}function cs(){this.$get=["$browser","$exceptionHandler",function(
e,t){return hs(function(t){e.defer(t)},t)}]}function hs(e,t){function o(){this.$$state={status:0}}function u(e,t){return function(n){t.call(e,n)}}function a(e){var r,i,s;s=e.pending,e.processScheduled=!1,e.pending=n;for(var o=0,u=s.length;o<u;++o){i=s[o][0],r=s[o][e.status];try{V(r)?i.resolve(r(e.value)):e.status===1?i.resolve(e.value):i.reject(e.value)}catch(a){i.reject(a),t(a)}}}function f(t){if(t.processScheduled||!t.pending)return;t.processScheduled=!0,e(function(){a(t)})}function l(){this.promise=new 
o}function m(e){var t=new l,n=0,r=X(e)?[]:{};return T(e,function(e,i){n++,d(e).then(function(e){if(r.hasOwnProperty(i))return;r[i]=e,--n||t.resolve(r)},function(e){if(r.hasOwnProperty(i))return;t.reject(e)})}),n===0&&t.resolve(r),t.promise}var i=r("$q",TypeError),s=function(){var e=new l;return e.resolve=u(e,e.resolve),e.reject=u(e,e.reject),e.notify=u(e,e.notify),e};O(o.prototype,{then:function(e,t,n){if(F(e)&&F(t)&&F(n))return this;var r=new l;return this.$$state.pending=this.$$state.pending||[
],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&f(this.$$state),r.promise},"catch":function(e){return this.then(null,e)},"finally":function(e,t){return this.then(function(t){return p(t,!0,e)},function(t){return p(t,!1,e)},t)}}),O(l.prototype,{resolve:function(e){if(this.promise.$$state.status)return;e===this.promise?this.$$reject(i("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):this.$$resolve(e)},$$resolve:function(e){function o(e){if(i)return;i=!0
,r.$$resolve(e)}function a(e){if(i)return;i=!0,r.$$reject(e)}var n,r=this,i=!1;try{if(q(e)||V(e))n=e&&e.then;V(n)?(this.promise.$$state.status=-1,n.call(e,o,a,u(this,this.notify))):(this.promise.$$state.value=e,this.promise.$$state.status=1,f(this.promise.$$state))}catch(s){a(s),t(s)}},reject:function(e){if(this.promise.$$state.status)return;this.$$reject(e)},$$reject:function(e){this.promise.$$state.value=e,this.promise.$$state.status=2,f(this.promise.$$state)},notify:function(n){var r=this.promise
.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&e(function(){var e,i;for(var s=0,o=r.length;s<o;s++){i=r[s][0],e=r[s][3];try{i.notify(V(e)?e(n):n)}catch(u){t(u)}}})}});var c=function(e){var t=new l;return t.reject(e),t.promise},h=function(t,n){var r=new l;return n?r.resolve(t):r.reject(t),r.promise},p=function(t,n,r){var i=null;try{V(r)&&(i=r())}catch(s){return h(s,!1)}return et(i)?i.then(function(){return h(t,n)},function(e){return h(e,!1)}):h(t,n)},d=function(e,t,n,r){var i=new l;
return i.resolve(e),i.promise.then(t,n,r)},v=d,g=function(t){function r(e){n.resolve(e)}function s(e){n.reject(e)}if(!V(t))throw i("norslvr","Expected resolverFn, got '{0}'",t);var n=new l;return t(r,s),n.promise};return g.prototype=o.prototype,g.defer=s,g.reject=c,g.when=d,g.resolve=v,g.all=m,g}function ps(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame
,i=!!n,s=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return s.supported=i,s}]}function ds(){function s(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=k(),this.$$ChildScope=null}return t.prototype=e,t}var e=10,t=r("$rootScope"),n=null,i=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=
["$exceptionHandler","$parse","$browser",function(r,u,a){function f(e){e.currentScope.$$destroyed=!0}function l(e){c===9&&(e.$$childHead&&l(e.$$childHead),e.$$nextSibling&&l(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function h(){this.$id=k(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount=
{},this.$$watchersCount=0,this.$$isolateBindings=null}function g(e){if(p.$$phase)throw t("inprog","{0} already in progress",p.$$phase);p.$$phase=e}function y(){p.$$phase=null}function b(e,t){do e.$$watchersCount+=t;while(e=e.$parent)}function w(e,t,n){do e.$$listenerCount[n]-=t,e.$$listenerCount[n]===0&&delete e.$$listenerCount[n];while(e=e.$parent)}function E(){}function S(){while(m.length)try{m.shift()()}catch(e){r(e)}i=null}function N(){i===null&&(i=a.defer(function(){p.$apply(S)}))}h.prototype=
{constructor:h,$new:function(e,t){var n;return t=t||this,e?(n=new h,n.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=s(this)),n=new this.$$ChildScope),n.$parent=t,n.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=n,t.$$childTail=n):t.$$childHead=t.$$childTail=n,(e||t!=this)&&n.$on("$destroy",f),n},$watch:function(e,t,r,i){var s=u(e);if(s.$$watchDelegate)return s.$$watchDelegate(this,t,r,s,e);var o=this,a=o.$$watchers,f={fn:t,last:E,get:s,exp:i||e,eq:!!r};return n=
null,V(t)||(f.fn=P),a||(a=o.$$watchers=[]),a.unshift(f),b(this,1),function(){lt(a,f)>=0&&b(o,-1),n=null}},$watchGroup:function(e,t){function f(){o=!1,u?(u=!1,t(r,r,s)):t(r,n,s)}var n=new Array(e.length),r=new Array(e.length),i=[],s=this,o=!1,u=!0;if(!e.length){var a=!0;return s.$evalAsync(function(){a&&t(r,r,s)}),function(){a=!1}}return e.length===1?this.$watch(e[0],function(i,s,o){r[0]=i,n[0]=s,t(r,i===s?r:n,o)}):(T(e,function(e,t){var u=s.$watch(e,function(i,u){r[t]=i,n[t]=u,o||(o=!0,s.$evalAsync
(f))});i.push(u)}),function(){while(i.length)i.shift()()})},$watchCollection:function(e,t){function v(e){r=e;var t,n,s,u,a;if(F(r))return;if(!q(r))i!==r&&(i=r,f++);else if(x(r)){i!==c&&(i=c,d=i.length=0,f++),t=r.length,d!==t&&(f++,i.length=d=t);for(var l=0;l<t;l++)a=i[l],u=r[l],s=a!==a&&u!==u,!s&&a!==u&&(f++,i[l]=u)}else{i!==h&&(i=h={},d=0,f++),t=0;for(n in r)o.call(r,n)&&(t++,u=r[n],a=i[n],n in i?(s=a!==a&&u!==u,!s&&a!==u&&(f++,i[n]=u)):(d++,i[n]=u,f++));if(d>t){f++;for(n in i)o.call(r,n)||(d--,delete 
i[n])}}return f}function m(){p?(p=!1,t(r,r,n)):t(r,s,n);if(a)if(!q(r))s=r;else if(x(r)){s=new Array(r.length);for(var e=0;e<r.length;e++)s[e]=r[e]}else{s={};for(var i in r)o.call(r,i)&&(s[i]=r[i])}}v.$stateful=!0;var n=this,r,i,s,a=t.length>1,f=0,l=u(e,v),c=[],h={},p=!0,d=0;return this.$watch(l,m)},$digest:function(){var s,o,u,f,l,c,h,m,b=e,w,x,T=this,N=[],C,k,L;g("$digest"),a.$$checkUrlChange(),this===p&&i!==null&&(a.defer.cancel(i),S()),n=null;do{m=!1,x=T;while(d.length){try{L=d.shift(),L.scope
.$eval(L.expression,L.locals)}catch(A){r(A)}n=null}e:do{if(c=x.$$watchers){h=c.length;while(h--)try{s=c[h];if(s){l=s.get;if((o=l(x))!==(u=s.last)&&!(s.eq?pt(o,u):typeof o=="number"&&typeof u=="number"&&isNaN(o)&&isNaN(u)))m=!0,n=s,s.last=s.eq?ct(o,null):o,f=s.fn,f(o,u===E?o:u,x),b<5&&(C=4-b,N[C]||(N[C]=[]),N[C].push({msg:V(s.exp)?"fn: "+(s.exp.name||s.exp.toString()):s.exp,newVal:o,oldVal:u}));else if(s===n){m=!1;break e}}}catch(A){r(A)}}if(!(w=x.$$watchersCount&&x.$$childHead||x!==T&&x.$$nextSibling
))while(x!==T&&!(w=x.$$nextSibling))x=x.$parent}while(x=w);if((m||d.length)&&!(b--))throw y(),t("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,N)}while(m||d.length);y();while(v.length)try{v.shift()()}catch(A){r(A)}},$destroy:function(){if(this.$$destroyed)return;var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===p&&a.$$applicationDestroyed(),b(this,-this.$$watchersCount);for(var t in this.$$listenerCount)w(this,this.$$listenerCount
[t],t);e&&e.$$childHead==this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail==this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=P,this.$on=this.$watch=this.$watchGroup=function(){return P},this.$$listeners={},this.$$nextSibling=null,l(this)},$eval:function(e,t){return u(e)(this,t)},$evalAsync
:function(e,t){!p.$$phase&&!d.length&&a.defer(function(){d.length&&p.$digest()}),d.push({scope:this,expression:u(e),locals:t})},$$postDigest:function(e){v.push(e)},$apply:function(e){try{g("$apply");try{return this.$eval(e)}finally{y()}}catch(t){r(t)}finally{try{p.$digest()}catch(t){throw r(t),t}}},$applyAsync:function(e){function n(){t.$eval(e)}var t=this;e&&m.push(n),e=u(e),N()},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do r.$$listenerCount[e
]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++;while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);r!==-1&&(n[r]=null,w(i,1,e))}},$emit:function(e,t){var n=[],i,s=this,o=!1,u={name:e,targetScope:s,stopPropagation:function(){o=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},a=mt([u],arguments,1),f,l;do{i=s.$$listeners[e]||n,u.currentScope=s;for(f=0,l=i.length;f<l;f++){if(!i[f]){i.splice(f,1),f--,l--;continue}try{i[f].apply(null,a)}catch(c){r(c)}}if(o)return u
.currentScope=null,u;s=s.$parent}while(s);return u.currentScope=null,u},$broadcast:function(e,t){var n=this,i=n,s=n,o={name:e,targetScope:n,preventDefault:function(){o.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[e])return o;var u=mt([o],arguments,1),a,f,l;while(i=s){o.currentScope=i,a=i.$$listeners[e]||[];for(f=0,l=a.length;f<l;f++){if(!a[f]){a.splice(f,1),f--,l--;continue}try{a[f].apply(null,u)}catch(c){r(c)}}if(!(s=i.$$listenerCount[e]&&i.$$childHead||i!==n&&i.$$nextSibling)
)while(i!==n&&!(s=i.$$nextSibling))i=i.$parent}return o.currentScope=null,o}};var p=new h,d=p.$$asyncQueue=[],v=p.$$postDigestQueue=[],m=p.$$applyAsyncQueue=[];return p}]}function vs(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return I(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return I(e)?(t=e,this):t},this.$get=function(){return function(r,i){var s=i?t:e,o;return o=Ls(r).href,o!==""&&!o
.match(s)?"unsafe:"+o:r}}}function ys(e){if(e==="self")return e;if(U(e)){if(e.indexOf("***")>-1)throw ms("iwcard","Illegal sequence *** in string matcher.  String: {0}",e);return e=st(e).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+e+"$")}if($(e))return new RegExp("^"+e.source+"$");throw ms("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function bs(e){var t=[];return I(e)&&T(e,function(e){t.push(ys(e))}),t}function ws(){this.SCE_CONTEXTS=gs;var e=
["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=bs(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=bs(e)),t},this.$get=["$injector",function(n){function i(e,t){return e==="self"?As(t):!!e.exec(t.href)}function s(n){var r=Ls(n.toString()),s,o,u=!1;for(s=0,o=e.length;s<o;s++)if(i(e[s],r)){u=!0;break}if(u)for(s=0,o=t.length;s<o;s++)if(i(t[s],r)){u=!1;break}return u}function o(e){var t=function(t){this.$$unwrapTrustedValue=function(){return t}}
;return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}function f(e,t){var n=a.hasOwnProperty(e)?a[e]:null;if(!n)throw ms("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(t===null||F(t)||t==="")return t;if(typeof t!="string")throw ms("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new 
n(t)}function l(e){return e instanceof u?e.$$unwrapTrustedValue():e}function c(e,t){if(t===null||F(t)||t==="")return t;var n=a.hasOwnProperty(e)?a[e]:null;if(n&&t instanceof n)return t.$$unwrapTrustedValue();if(e===gs.RESOURCE_URL){if(s(t))return t;throw ms("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",t.toString())}if(e===gs.HTML)return r(t);throw ms("unsafe","Attempting to use an unsafe value in a safe context.")}var r=function(t){throw ms("unsafe"
,"Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(r=n.get("$sanitize"));var u=o(),a={};return a[gs.HTML]=o(u),a[gs.CSS]=o(u),a[gs.URL]=o(u),a[gs.JS]=o(u),a[gs.RESOURCE_URL]=o(a[gs.URL]),{trustAs:f,getTrusted:c,valueOf:l}}]}function Es(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&c<8)throw ms("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information."
);var r=ht(gs);r.isEnabled=function(){return e},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,e||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=H),r.parseAs=function(n,i){var s=t(i);return s.literal&&s.constant?s:t(i,function(e){return r.getTrusted(n,e)})};var i=r.parseAs,s=r.getTrusted,o=r.trustAs;return T(gs,function(e,t){var n=u(t);r[vn("parse_as_"+n)]=function(t){return i(e,t)},r[vn("get_trusted_"+n)]=function(t){return s(e,t)},r[vn("trust_as_"+n)]=function(t){return o
(e,t)}}),r}]}function Ss(){this.$get=["$window","$document",function(e,t){var n={},r=_((/android (\d+)/.exec(u((e.navigator||{}).userAgent))||[])[1]),i=/Boxee/i.test((e.navigator||{}).userAgent),s=t[0]||{},o,a=/^(Moz|webkit|ms)(?=[A-Z])/,f=s.body&&s.body.style,l=!1,h=!1,p;if(f){for(var d in f)if(p=a.exec(d)){o=p[0],o=o.substr(0,1).toUpperCase()+o.substr(1);break}o||(o="WebkitOpacity"in f&&"webkit"),l="transition"in f||o+"Transition"in f,h="animation"in f||o+"Animation"in f,r&&(!l||!h)&&(l=U(f.webkitTransition
),h=U(f.webkitAnimation))}return{history:!(!e.history||!e.history.pushState||r<4)&&!i,hasEvent:function(e){if(e==="input"&&c<=11)return!1;if(F(n[e])){var t=s.createElement("div");n[e]="on"+e in t}return n[e]},csp:dt(),vendorPrefix:o,transitions:l,animations:h,android:r}}]}function xs(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$templateCache","$http","$q","$sce",function(t,n,r,i){function s(o,u){function f(e){if(!u)throw _r("tpload","Failed to load template: {0} (HTTP status: {1} {2})"
,o,e.status,e.statusText);return r.reject(e)}s.totalPendingRequests++;if(!U(o)||!t.get(o))o=i.getTrustedResourceUrl(o);var a=n.defaults&&n.defaults.transformResponse;return X(a)?a=a.filter(function(e){return e!==ri}):a===ri&&(a=null),n.get(o,O({cache:t,transformResponse:a},e))["finally"](function(){s.totalPendingRequests--}).then(function(e){return t.put(o,e.data),e.data},f)}return s.totalPendingRequests=0,s}]}function Ts(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={};return r
.findBindings=function(e,t,n){var r=e.getElementsByClassName("ng-binding"),i=[];return T(r,function(e){var r=w.element(e).data("$binding");r&&T(r,function(r){if(n){var s=new RegExp("(^|\\s)"+st(t)+"(\\s|\\||$)");s.test(r)&&i.push(e)}else r.indexOf(t)!=-1&&i.push(e)})}),i},r.findModels=function(e,t,n){var r=["ng-","data-ng-","ng\\:"];for(var i=0;i<r.length;++i){var s=n?"=":"*=",o="["+r[i]+"model"+s+'"'+t+'"]',u=e.querySelectorAll(o);if(u.length)return u}},r.getLocation=function(){return n.url()},r
.setLocation=function(t){t!==n.url()&&(n.url(t),e.$digest())},r.whenStable=function(e){t.notifyWhenNoOutstandingRequests(e)},r}]}function Ns(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){function o(o,u,a){V(o)||(a=u,u=o,o=P);var f=gt(arguments,3),l=I(a)&&!a,c=(l?r:n).defer(),h=c.promise,p;return p=t.defer(function(){try{c.resolve(o.apply(null,f))}catch(t){c.reject(t),i(t)}finally{delete s[h.$$timeoutId]}l||e.$apply()},u),h.$$timeoutId=p,s[p]=c,h}var s={};
return o.cancel=function(e){return e&&e.$$timeoutId in s?(s[e.$$timeoutId].reject("canceled"),delete s[e.$$timeoutId],t.defer.cancel(e.$$timeoutId)):!1},o}]}function Ls(e){var t=e;return c&&(Cs.setAttribute("href",t),t=Cs.href),Cs.setAttribute("href",t),{href:Cs.href,protocol:Cs.protocol?Cs.protocol.replace(/:$/,""):"",host:Cs.host,search:Cs.search?Cs.search.replace(/^\?/,""):"",hash:Cs.hash?Cs.hash.replace(/^#/,""):"",hostname:Cs.hostname,port:Cs.port,pathname:Cs.pathname.charAt(0)==="/"?Cs.pathname
:"/"+Cs.pathname}}function As(e){var t=U(e)?Ls(e):e;return t.protocol===ks.protocol&&t.host===ks.host}function Os(){this.$get=B(e)}function Ms(e){function i(e){try{return decodeURIComponent(e)}catch(t){return e}}var t=e[0]||{},n={},r="";return function(){var e,s,o,u,a,f=t.cookie||"";if(f!==r){r=f,e=r.split("; "),n={};for(o=0;o<e.length;o++)s=e[o],u=s.indexOf("="),u>0&&(a=i(s.substring(0,u)),F(n[a])&&(n[a]=i(s.substring(u+1))))}return n}}function _s(){this.$get=Ms}function Ds(e){function n(r,i){if(
q(r)){var s={};return T(r,function(e,t){s[t]=n(t,e)}),s}return e.factory(r+t,i)}var t="Filter";this.register=n,this.$get=["$injector",function(e){return function(n){return e.get(n+t)}}],n("currency",Rs),n("date",so),n("filter",Ps),n("json",oo),n("limitTo",fo),n("lowercase",uo),n("number",Us),n("orderBy",lo),n("uppercase",ao)}function Ps(){return function(e,t,n){if(!x(e)){if(e==null)return e;throw r("filter")("notarray","Expected array but received: {0}",e)}var i=js(t),s,o;switch(i){case"function"
:s=t;break;case"boolean":case"null":case"number":case"string":o=!0;case"object":s=Hs(t,n,o);break;default:return e}return Array.prototype.filter.call(e,s)}}function Hs(e,t,n){var r=q(e)&&"$"in e,i;return t===!0?t=pt:V(t)||(t=function(e,t){return F(e)?!1:e===null||t===null?e===t:q(t)||q(e)&&!j(e)?!1:(e=u(""+e),t=u(""+t),e.indexOf(t)!==-1)}),i=function(i){return r&&!q(i)?Bs(i,e.$,t,!1):Bs(i,e,t,n)},i}function Bs(e,t,n,r,i){var s=js(e),o=js(t);if(o==="string"&&t.charAt(0)==="!")return!Bs(e,t.substring
(1),n,r);if(X(e))return e.some(function(e){return Bs(e,t,n,r)});switch(s){case"object":var u;if(r){for(u in e)if(u.charAt(0)!=="$"&&Bs(e[u],t,n,!0))return!0;return i?!1:Bs(e,t,n,!1)}if(o==="object"){for(u in t){var a=t[u];if(V(a)||F(a))continue;var f=u==="$",l=f?e:e[u];if(!Bs(l,a,n,f,f))return!1}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function js(e){return e===null?"null":typeof e}function Rs(e){var t=e.NUMBER_FORMATS;return function(e,n,r){return F(n)&&(n=t.CURRENCY_SYM
),F(r)&&(r=t.PATTERNS[1].maxFrac),e==null?e:Xs(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function Us(e){var t=e.NUMBER_FORMATS;return function(e,n){return e==null?e:Xs(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function zs(e){var t=0,n,r,i,s,o;(r=e.indexOf(Is))>-1&&(e=e.replace(Is,"")),(i=e.search(/e/i))>0?(r<0&&(r=i),r+=+e.slice(i+1),e=e.substring(0,i)):r<0&&(r=e.length);for(i=0;e.charAt(i)==qs;i++);if(i==(o=e.length))n=[0],r=1;else{o--;while(e.charAt(o)==qs)o--;r-=i,
n=[];for(s=0;i<=o;i++,s++)n[s]=+e.charAt(i)}return r>Fs&&(n=n.splice(0,Fs-1),t=r-1,r=1),{d:n,e:t,i:r}}function Ws(e,t,n,r){var i=e.d,s=i.length-e.i;t=F(t)?Math.min(Math.max(n,s),r):+t;var o=t+e.i,u=i[o];if(o>0)i.splice(o);else{e.i=1,i.length=o=t+1;for(var a=0;a<o;a++)i[a]=0}u>=5&&i[o-1]++;for(;s<t;s++)i.push(0);var f=i.reduceRight(function(e,t,n,r){return t+=e,r[n]=t%10,Math.floor(t/10)},0);f&&(i.unshift(f),e.i++)}function Xs(e,t,n,r,i){if(!U(e)&&!z(e)||isNaN(e))return"";var s=!isFinite(e),o=!1,u=
Math.abs(e)+"",a="",f;if(s)a="∞";else{f=zs(u),Ws(f,i,t.minFrac,t.maxFrac);var l=f.d,c=f.i,h=f.e,p=[];o=l.reduce(function(e,t){return e&&!t},!0);while(c<0)l.unshift(0),c++;c>0?p=l.splice(c):(p=l,l=[0]);var d=[];l.length>t.lgSize&&d.unshift(l.splice(-t.lgSize).join(""));while(l.length>t.gSize)d.unshift(l.splice(-t.gSize).join(""));l.length&&d.unshift(l.join("")),a=d.join(n),p.length&&(a+=r+p.join("")),h&&(a+="e+"+h)}return e<0&&!o?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf}function Vs(e,t,n){var r="";
e<0&&(r="-",e=-e),e=""+e;while(e.length<t)e=qs+e;return n&&(e=e.substr(e.length-t)),r+e}function $s(e,t,n,r){return n=n||0,function(i){var s=i["get"+e]();if(n>0||s>-n)s+=n;return s===0&&n==-12&&(s=12),Vs(s,t,r)}}function Js(e,t){return function(n,r){var i=n["get"+e](),s=a(t?"SHORT"+e:e);return r[s][i]}}function Ks(e,t,n){var r=-1*n,i=r>=0?"+":"";return i+=Vs(Math[r>0?"floor":"ceil"](r/60),2)+Vs(Math.abs(r%60),2),i}function Qs(e){var t=(new Date(e,0,1)).getDay();return new Date(e,0,(t<=4?5:12)-t)}
function Gs(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function Ys(e){return function(t){var n=Qs(t.getFullYear()),r=Gs(t),i=+r- +n,s=1+Math.round(i/6048e5);return Vs(s,e)}}function Zs(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function eo(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function to(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function so(e){function n(e){var n;if(n=e.match(t)){var r=new Date(0),i=0,s=0,o=n[8]?r.setUTCFullYear
:r.setFullYear,u=n[8]?r.setUTCHours:r.setHours;n[9]&&(i=_(n[9]+n[10]),s=_(n[9]+n[11])),o.call(r,_(n[1]),_(n[2])-1,_(n[3]));var a=_(n[4]||0)-i,f=_(n[5]||0)-s,l=_(n[6]||0),c=Math.round(parseFloat("0."+(n[7]||0))*1e3);return u.call(r,a,f,l,c),r}return e}var t=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(t,r,i){var s="",o=[],u,a;r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,U(t)&&(t=io.test(t)?_(t):n(t)),z(t)&&(t=new Date(t));if(!
W(t)||!isFinite(t.getTime()))return t;while(r)a=ro.exec(r),a?(o=mt(o,a,1),r=o.pop()):(o.push(r),r=null);var f=t.getTimezoneOffset();return i&&(f=xt(i,f),t=Nt(t,i,!0)),T(o,function(n){u=no[n],s+=u?u(t,e.DATETIME_FORMATS,f):n==="''"?"'":n.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),s}}function oo(){return function(e,t){return F(t)&&(t=2),wt(e,t)}}function fo(){return function(e,t,n){return Math.abs(Number(t))===Infinity?t=Number(t):t=_(t),isNaN(t)?e:(z(e)&&(e=e.toString()),!X(e)&&!U(e)?e:(n=!n||isNaN
(n)?0:_(n),n=n<0?Math.max(0,e.length+n):n,t>=0?e.slice(n,n+t):n===0?e.slice(t,e.length):e.slice(Math.max(0,n+t),n)))}}function lo(e){function t(t,n){return n=n?-1:1,t.map(function(t){var r=1,i=H;if(V(t))i=t;else if(U(t)){if(t.charAt(0)=="+"||t.charAt(0)=="-")r=t.charAt(0)=="-"?-1:1,t=t.substring(1);if(t!==""){i=e(t);if(i.constant){var s=i();i=function(e){return e[s]}}}}return{get:i,descending:r*n}})}function n(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}
function i(e,t){if(typeof e.valueOf=="function"){e=e.valueOf();if(n(e))return e}if(j(e)){e=e.toString();if(n(e))return e}return t}function s(e,t){var n=typeof e;return e===null?(n="string",e="null"):n==="string"?e=e.toLowerCase():n==="object"&&(e=i(e,t)),{value:e,type:n}}function o(e,t){var n=0;return e.type===t.type?e.value!==t.value&&(n=e.value<t.value?-1:1):n=e.type<t.type?-1:1,n}return function(e,n,i){function f(e,t){return{value:e,predicateValues:u.map(function(n){return s(n.get(e),t)})}}function l
(e,t){var n=0;for(var r=0,i=u.length;r<i;++r){n=o(e.predicateValues[r],t.predicateValues[r])*u[r].descending;if(n)break}return n}if(e==null)return e;if(!x(e))throw r("orderBy")("notarray","Expected array but received: {0}",e);X(n)||(n=[n]),n.length===0&&(n=["+"]);var u=t(n,i);u.push({get:function(){return{}},descending:i?-1:1});var a=Array.prototype.map.call(e,f);return a.sort(l),e=a.map(function(e){return e.value}),e}}function co(e){return V(e)&&(e={link:e}),e.restrict=e.restrict||"AC",B(e)}function go
(e,t){e.$name=t}function yo(e,t,r,i,s){var o=this,u=[];o.$error={},o.$$success={},o.$pending=n,o.$name=s(t.name||t.ngForm||"")(r),o.$dirty=!1,o.$pristine=!0,o.$valid=!0,o.$invalid=!1,o.$submitted=!1,o.$$parentForm=vo,o.$rollbackViewValue=function(){T(u,function(e){e.$rollbackViewValue()})},o.$commitViewValue=function(){T(u,function(e){e.$commitViewValue()})},o.$addControl=function(e){Wt(e.$name,"input"),u.push(e),e.$name&&(o[e.$name]=e),e.$$parentForm=o},o.$$renameControl=function(e,t){var n=e.$name
;o[n]===e&&delete o[n],o[t]=e,e.$name=t},o.$removeControl=function(e){e.$name&&o[e.$name]===e&&delete o[e.$name],T(o.$pending,function(t,n){o.$setValidity(n,null,e)}),T(o.$error,function(t,n){o.$setValidity(n,null,e)}),T(o.$$success,function(t,n){o.$setValidity(n,null,e)}),lt(u,e),e.$$parentForm=vo},Nu({ctrl:this,$element:e,set:function(e,t,n){var r=e[t];if(!r)e[t]=[n];else{var i=r.indexOf(n);i===-1&&r.push(n)}},unset:function(e,t,n){var r=e[t];if(!r)return;lt(r,n),r.length===0&&delete e[t]},$animate
:i}),o.$setDirty=function(){i.removeClass(e,pu),i.addClass(e,du),o.$dirty=!0,o.$pristine=!1,o.$$parentForm.$setDirty()},o.$setPristine=function(){i.setClass(e,pu,du+" "+mo),o.$dirty=!1,o.$pristine=!0,o.$submitted=!1,T(u,function(e){e.$setPristine()})},o.$setUntouched=function(){T(u,function(e){e.$setUntouched()})},o.$setSubmitted=function(){i.addClass(e,mo),o.$submitted=!0,o.$$parentForm.$setSubmitted()}}function _o(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function Do
(e,t,n,r,i,s){Po(e,t,n,r,i,s),_o(r)}function Po(e,t,n,r,i,s){var o=u(t[0].type);if(!i.android){var a=!1;t.on("compositionstart",function(e){a=!0}),t.on("compositionend",function(){a=!1,f()})}var f=function(e){l&&(s.defer.cancel(l),l=null);if(a)return;var i=t.val(),u=e&&e.type;o!=="password"&&(!n.ngTrim||n.ngTrim!=="false")&&(i=it(i)),(r.$viewValue!==i||i===""&&r.$$hasNativeValidators)&&r.$setViewValue(i,u)};if(i.hasEvent("input"))t.on("input",f);else{var l,c=function(e,t,n){l||(l=s.defer(function(
){l=null,(!t||t.value!==n)&&f(e)}))};t.on("keydown",function(e){var t=e.keyCode;if(t===91||15<t&&t<19||37<=t&&t<=40)return;c(e,this,this.value)}),i.hasEvent("paste")&&t.on("paste cut",c)}t.on("change",f),r.$render=function(){var e=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==e&&t.val(e)}}function Ho(e,t){if(W(e))return e;if(U(e)){Lo.lastIndex=0;var n=Lo.exec(e);if(n){var r=+n[1],i=+n[2],s=0,o=0,u=0,a=0,f=Qs(r),l=(i-1)*7;return t&&(s=t.getHours(),o=t.getMinutes(),u=t.getSeconds(),a=t.getMilliseconds
()),new Date(r,0,f.getDate()+l,s,o,u,a)}}return NaN}function Bo(e,t){return function(n,r){var i,s;if(W(n))return n;if(U(n)){n.charAt(0)=='"'&&n.charAt(n.length-1)=='"'&&(n=n.substring(1,n.length-1));if(So.test(n))return new Date(n);e.lastIndex=0,i=e.exec(n);if(i)return i.shift(),r?s={yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:s={yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},T(i,function(e,n){n<t.length&&(s[t[n
]]=+e)}),new Date(s.yyyy,s.MM-1,s.dd,s.HH,s.mm,s.ss||0,s.sss*1e3||0)}return NaN}}function jo(e,t,r,i){return function(o,u,a,f,l,c,h){function g(e){return e&&(!e.getTime||e.getTime()===e.getTime())}function y(e){return I(e)&&!W(e)?r(e)||n:e}Fo(o,u,a,f),Po(o,u,a,f,l,c);var p=f&&f.$options&&f.$options.timezone,d;f.$$parserName=e,f.$parsers.push(function(e){if(f.$isEmpty(e))return null;if(t.test(e)){var i=r(e,d);return p&&(i=Nt(i,p)),i}return n}),f.$formatters.push(function(e){if(e&&!W(e))throw wu("datefmt"
,"Expected `{0}` to be a date",e);return g(e)?(d=e,d&&p&&(d=Nt(d,p,!0)),h("date")(e,i,p)):(d=null,"")});if(I(a.min)||a.ngMin){var v;f.$validators.min=function(e){return!g(e)||F(v)||r(e)>=v},a.$observe("min",function(e){v=y(e),f.$validate()})}if(I(a.max)||a.ngMax){var m;f.$validators.max=function(e){return!g(e)||F(m)||r(e)<=m},a.$observe("max",function(e){m=y(e),f.$validate()})}}}function Fo(e,t,r,i){var o=t[0],u=i.$$hasNativeValidators=q(o.validity);u&&i.$parsers.push(function(e){var r=t.prop(s)||
{};return r.badInput||r.typeMismatch?n:e})}function Io(e,t,r,i,s,o){Fo(e,t,r,i),Po(e,t,r,i,s,o),i.$$parserName="number",i.$parsers.push(function(e){return i.$isEmpty(e)?null:No.test(e)?parseFloat(e):n}),i.$formatters.push(function(e){if(!i.$isEmpty(e)){if(!z(e))throw wu("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e});if(I(r.min)||r.ngMin){var u;i.$validators.min=function(e){return i.$isEmpty(e)||F(u)||e>=u},r.$observe("min",function(e){I(e)&&!z(e)&&(e=parseFloat(e,10)),u=z(e
)&&!isNaN(e)?e:n,i.$validate()})}if(I(r.max)||r.ngMax){var a;i.$validators.max=function(e){return i.$isEmpty(e)||F(a)||e<=a},r.$observe("max",function(e){I(e)&&!z(e)&&(e=parseFloat(e,10)),a=z(e)&&!isNaN(e)?e:n,i.$validate()})}}function qo(e,t,n,r,i,s){Po(e,t,n,r,i,s),_o(r),r.$$parserName="url",r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||xo.test(n)}}function Ro(e,t,n,r,i,s){Po(e,t,n,r,i,s),_o(r),r.$$parserName="email",r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty
(n)||To.test(n)}}function Uo(e,t,n,r){F(n.name)&&t.attr("name",k());var i=function(e){t[0].checked&&r.$setViewValue(n.value,e&&e.type)};t.on("click",i),r.$render=function(){var e=n.value;t[0].checked=e==r.$viewValue},n.$observe("value",r.$render)}function zo(e,t,n,r,i){var s;if(I(r)){s=e(r);if(!s.constant)throw wu("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return s(t)}return i}function Wo(e,t,n,r,i,s,o,u){var a=zo(u,e,"ngTrueValue",n.ngTrueValue,!0),f=zo(u,e,"ngFalseValue"
,n.ngFalseValue,!1),l=function(e){r.$setViewValue(t[0].checked,e&&e.type)};t.on("click",l),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return e===!1},r.$formatters.push(function(e){return pt(e,a)}),r.$parsers.push(function(e){return e?a:f})}function Yo(e,t){return e="ngClass"+e,["$animate",function(n){function r(e,t){var n=[];e:for(var r=0;r<e.length;r++){var i=e[r];for(var s=0;s<t.length;s++)if(i==t[s])continue e;n.push(i)}return n}function i(e){var t=[];return X(e)?(T
(e,function(e){t=t.concat(i(e))}),t):U(e)?e.split(" "):q(e)?(T(e,function(e,n){e&&(t=t.concat(n.split(" ")))}),t):e}return{restrict:"AC",link:function(s,o,u){function f(e){var t=c(e,1);u.$addClass(t)}function l(e){var t=c(e,-1);u.$removeClass(t)}function c(e,t){var n=o.data("$classCounts")||$t(),r=[];return T(e,function(e){if(t>0||n[e])n[e]=(n[e]||0)+t,n[e]===+(t>0)&&r.push(e)}),o.data("$classCounts",n),r.join(" ")}function h(e,t){var i=r(t,e),s=r(e,t);i=c(i,1),s=c(s,-1),i&&i.length&&n.addClass(o
,i),s&&s.length&&n.removeClass(o,s)}function p(e){if(t===!0||s.$index%2===t){var n=i(e||[]);if(!a)f(n);else if(!pt(e,a)){var r=i(a);h(r,n)}}a=ht(e)}var a;s.$watch(u[e],p,!0),u.$observe("class",function(t){p(s.$eval(u[e]))}),e!=="ngClass"&&s.$watch("$index",function(n,r){var o=n&1;if(o!==(r&1)){var a=i(s.$eval(u[e]));o===t?f(a):l(a)}})}}}]}function Nu(e){function a(e,r,i){F(r)?f("$pending",e,i):l("$pending",e,i),Z(r)?r?(o(t.$error,e,i),s(t.$$success,e,i)):(s(t.$error,e,i),o(t.$$success,e,i)):(o(t.
$error,e,i),o(t.$$success,e,i)),t.$pending?(c(gu,!0),t.$valid=t.$invalid=n,h("",null)):(c(gu,!1),t.$valid=Cu(t.$error),t.$invalid=!t.$valid,h("",t.$valid));var u;t.$pending&&t.$pending[e]?u=n:t.$error[e]?u=!1:t.$$success[e]?u=!0:u=null,h(e,u),t.$$parentForm.$setValidity(e,u,t)}function f(e,n,r){t[e]||(t[e]={}),s(t[e],n,r)}function l(e,r,i){t[e]&&o(t[e],r,i),Cu(t[e])&&(t[e]=n)}function c(e,t){t&&!i[e]?(u.addClass(r,e),i[e]=!0):!t&&i[e]&&(u.removeClass(r,e),i[e]=!1)}function h(e,t){e=e?"-"+It(e,"-"
):"",c(cu+e,t===!0),c(hu+e,t===!1)}var t=e.ctrl,r=e.$element,i={},s=e.set,o=e.unset,u=e.$animate;i[hu]=!(i[cu]=r.hasClass(cu)),t.$setValidity=a}function Cu(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function Xu(e){e[0].hasAttribute("selected")&&(e[0].selected=!0)}var i=/^\/(.+)\/([a-z]*)$/,s="validity",o=Object.prototype.hasOwnProperty,u=function(e){return U(e)?e.toLowerCase():e},a=function(e){return U(e)?e.toUpperCase():e},f=function(e){return U(e)?e.replace(/[A-Z]/g,function(
e){return String.fromCharCode(e.charCodeAt(0)|32)}):e},l=function(e){return U(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)&-33)}):e};"i"!=="I".toLowerCase()&&(u=f,a=l);var c,h,p,d=[].slice,v=[].splice,m=[].push,g=Object.prototype.toString,y=Object.getPrototypeOf,b=r("ng"),w=e.angular||(e.angular={}),E,S=0;c=t.documentMode,P.$inject=[],H.$inject=[];var X=Array.isArray,tt=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,it=function(
e){return U(e)?e.trim():e},st=function(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},dt=function(){function r(){try{return new Function(""),!1}catch(e){return!0}}if(!I(dt.rules)){var e=t.querySelector("[ng-csp]")||t.querySelector("[data-ng-csp]");if(e){var n=e.getAttribute("ng-csp")||e.getAttribute("data-ng-csp");dt.rules={noUnsafeEval:!n||n.indexOf("no-unsafe-eval")!==-1,noInlineStyle:!n||n.indexOf("no-inline-style")!==-1}}else dt.rules={noUnsafeEval:r(),noInlineStyle
:!1}}return dt.rules},vt=function(){if(I(vt.name_))return vt.name_;var e,n,r=_t.length,i,s;for(n=0;n<r;++n){i=_t[n];if(e=t.querySelector("["+i.replace(":","\\:")+"jq]")){s=e.getAttribute(i+"jq");break}}return vt.name_=s},St=/:/g,_t=["ng-","data-ng-","ng:","x-ng-"],Ft=/[A-Z]/g,qt=!1,Jt=1,Kt=2,Qt=3,Gt=8,Yt=9,Zt=11,rn={full:"1.5.0",major:1,minor:5,dot:0,codeName:"ennoblement-facilitation"};An.expando="ng339";var on=An.cache={},un=1,an=function(e,t,n){e.addEventListener(t,n,!1)},fn=function(e,t,n){e.
removeEventListener(t,n,!1)};An._data=function(e){return this.cache[e[this.expando]]||{}};var cn=/([\:\-\_]+(.))/g,hn=/^moz([A-Z])/,pn={mouseleave:"mouseout",mouseenter:"mouseover"},dn=r("jqLite"),mn=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,gn=/<|&#?\w+;/,yn=/<([\w:-]+)/,bn=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,wn={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>"
,"</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};wn.optgroup=wn.option,wn.tbody=wn.tfoot=wn.colgroup=wn.caption=wn.thead,wn.th=wn.td;var Ln=Node.prototype.contains||function(e){return!!(this.compareDocumentPosition(e)&16)},Xn=An.prototype={ready:function(n){function i(){if(r)return;r=!0,n()}var r=!1;t.readyState==="complete"?setTimeout(i):(this.on("DOMContentLoaded",i),An(e).on("load",i))},toString:function(){var e=[];return T(this,function(t){e.push(""+
t)}),"["+e.join(", ")+"]"},eq:function(e){return e>=0?h(this[e]):h(this[this.length+e])},length:0,push:m,sort:[].sort,splice:[].splice},Vn={};T("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){Vn[u(e)]=e});var $n={};T("input,select,option,textarea,button,form,details".split(","),function(e){$n[e]=!0});var Jn={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};T({data:Hn,removeData:Dn,hasData:xn,cleanData:Tn},function(e,t)
{An[t]=e}),T({data:Hn,inheritedData:Rn,scope:function(e){return h.data(e,"$scope")||Rn(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return h.data(e,"$isolateScope")||h.data(e,"$isolateScopeNoTemplate")},controller:qn,injector:function(e){return Rn(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:Bn,css:function(e,t,n){t=vn(t);if(!I(n))return e.style[t];e.style[t]=n},attr:function(e,t,r){var i=e.nodeType;if(i===Qt||i===Kt||i===Gt)return;var s=u(t);if(
Vn[s]){if(!I(r))return e[t]||(e.attributes.getNamedItem(t)||P).specified?s:n;r?(e[t]=!0,e.setAttribute(t,s)):(e[t]=!1,e.removeAttribute(s))}else if(I(r))e.setAttribute(t,r);else if(e.getAttribute){var o=e.getAttribute(t,2);return o===null?n:o}},prop:function(e,t,n){if(!I(n))return e[t];e[t]=n},text:function(){function e(e,t){if(F(t)){var n=e.nodeType;return n===Jt||n===Qt?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(F(t)){if(e.multiple&&at(e)==="select"){var n=[];return T
(e.options,function(e){e.selected&&n.push(e.value||e.text)}),n.length===0?null:n}return e.value}e.value=t},html:function(e,t){if(F(t))return e.innerHTML;Mn(e,!0),e.innerHTML=t},empty:Un},function(e,t){An.prototype[t]=function(t,n){var r,i,s=this.length;if(e!==Un&&F(e.length==2&&e!==Bn&&e!==qn?t:n)){if(q(t)){for(r=0;r<s;r++)if(e===Hn)e(this[r],t);else for(i in t)e(this[r],i,t[i]);return this}var o=e.$dv,u=F(o)?Math.min(s,1):s;for(var a=0;a<u;a++){var f=e(this[a],t,n);o=o?o+f:f}return o}for(r=0;r<s
;r++)e(this[r],t,n);return this}}),T({removeData:Dn,on:function(t,r,i,s){if(I(s))throw dn("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(!Sn(t))return;var o=Pn(t,!0),u=o.events,a=o.handle;a||(a=o.handle=Gn(t,u));var f=r.indexOf(" ")>=0?r.split(" "):[r],l=f.length,c=function(e,n,r){var s=u[e];s||(s=u[e]=[],s.specialHandlerWrapper=n,e!=="$destroy"&&!r&&an(t,e,a)),s.push(i)};while(l--)r=f[l],pn[r]?(c(pn[r],Zn),c(r,n,!0)):c(r)},off:_n,one:function(e,t,n){e=h(e),e
.on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;Mn(e),T(new An(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){var t=[];return T(e.childNodes,function(e){e.nodeType===Jt&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n!==Jt&&n!==Zt)return;t=new An(t);for(var r=0,i=t.length;r<i;r++){var s=t[r];e.appendChild(s)}},prepend:function(
e,t){if(e.nodeType===Jt){var n=e.firstChild;T(new An(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){kn(e,h(t).eq(0).clone()[0])},remove:zn,detach:function(e){zn(e,!0)},after:function(e,t){var n=e,r=e.parentNode;t=new An(t);for(var i=0,s=t.length;i<s;i++){var o=t[i];r.insertBefore(o,n.nextSibling),n=o}},addClass:Fn,removeClass:jn,toggleClass:function(e,t,n){t&&T(t.split(" "),function(t){var r=n;F(r)&&(r=!Bn(e,t)),(r?Fn:jn)(e,t)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==
Zt?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:On,triggerHandler:function(e,t,n){var r,i,s,o=t.type||t,u=Pn(e),a=u&&u.events,f=a&&a[o];f&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0
},stopPropagation:P,type:o,target:e},t.type&&(r=O(r,t)),i=ht(f),s=n?[r].concat(n):[r],T(i,function(t){r.isImmediatePropagationStopped()||t.apply(e,s)}))}},function(e,t){An.prototype[t]=function(t,n,r){var i;for(var s=0,o=this.length;s<o;s++)F(i)?(i=e(this[s],t,n,r),I(i)&&(i=h(i))):In(i,e(this[s],t,n,r));return I(i)?i:this},An.prototype.bind=An.prototype.on,An.prototype.unbind=An.prototype.off}),nr.prototype={put:function(e,t){this[tr(e,this.nextUid)]=t},get:function(e){return this[tr(e,this.nextUid
)]},remove:function(e){var t=this[e=tr(e,this.nextUid)];return delete this[e],t}};var rr=[function(){this.$get=[function(){return nr}]}],ir=/^([^\(]+?)=>/,sr=/^[^\(]*\(\s*([^\)]*)\)/m,or=/,/,ur=/^\s*(_?)(\S+?)\1\s*$/,ar=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,fr=r("$injector");pr.$$annotate=hr;var vr=r("$animate"),mr=1,gr="ng-animate",Sr=function(){this.$get=function(){}},xr=function(){var e=new nr,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function i(e,t,n){var r=!1;return t&&(t=U(t
)?t.split(" "):X(t)?t:[],T(t,function(t){t&&(r=!0,e[t]=n)})),r}function s(){T(t,function(t){var n=e.get(t);if(n){var r=wr(t.attr("class")),i="",s="";T(n,function(e,t){var n=!!r[t];e!==n&&(e?i+=(i.length?" ":"")+t:s+=(s.length?" ":"")+t)}),T(t,function(e){i&&Fn(e,i),s&&jn(e,s)}),e.remove(t)}}),t.length=0}function o(n,o,u){var a=e.get(n)||{},f=i(a,o,!0),l=i(a,u,!1);if(f||l)e.put(n,a),t.push(n),t.length===1&&r.$$postDigest(s)}return{enabled:P,on:P,off:P,pin:P,push:function(e,t,r,i){i&&i(),r=r||{},r.
from&&e.css(r.from),r.to&&e.css(r.to),(r.addClass||r.removeClass)&&o(e,r.addClass,r.removeClass);var s=new n;return s.complete(),s}}}]},Tr=["$provide",function(e){var t=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&n.charAt(0)!==".")throw vr("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.classNameFilter=function(e){if(arguments.length===1){this.$$classNameFilter=
e instanceof RegExp?e:null;if(this.$$classNameFilter){var t=new RegExp("(\\s+|\\/)"+gr+"(\\s+|\\/)");if(t.test(this.$$classNameFilter.toString()))throw vr("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',gr)}}return this.$$classNameFilter},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=br(n);r&&!r.parentNode&&!r.previousElementSibling&&(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off
,pin:e.pin,enabled:e.enabled,cancel:function(e){e.end&&e.end()},enter:function(n,r,i,s){return r=r&&h(r),i=i&&h(i),r=r||i.parent(),t(n,r,i),e.push(n,"enter",Er(s))},move:function(n,r,i,s){return r=r&&h(r),i=i&&h(i),r=r||i.parent(),t(n,r,i),e.push(n,"move",Er(s))},leave:function(t,n){return e.push(t,"leave",Er(n),function(){t.remove()})},addClass:function(t,n,r){return r=Er(r),r.addClass=yr(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return r=Er(r),r.removeClass=yr(r.removeClass
,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return i=Er(i),i.addClass=yr(i.addClass,n),i.removeClass=yr(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,s){return s=Er(s),s.from=s.from?O(s.from,n):n,s.to=s.to?O(s.to,r):r,i=i||"ng-inline-animate",s.tempClasses=yr(s.tempClasses,i),e.push(t,"animate",s)}}}]}],Nr=function(){this.$get=["$$rAF",function(e){function n(n){t.push(n);if(t.length>1)return;e(function(){for(var e=0;e<t.length;e++)t[e]();t=[]})}var t=[];return function(
){var e=!1;return n(function(){e=!0}),function(t){e?t():n(t)}}}]},Cr=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(e,t,n,r,i){function a(e){this.setHost(e);var t=n(),s=function(e){i(e,0,!1)};this._doneCallbacks=[],this._tick=function(e){var n=r[0];n&&n.hidden?s(e):t(e)},this._state=0}var s=0,o=1,u=2;return a.chain=function(e,t){function r(){if(n===e.length){t(!0);return}e[n](function(e){if(e===!1){t(!1);return}n++,r()})}var n=0;r()},a.all=function(e,t){
function i(i){r=r&&i,++n===e.length&&t(r)}var n=0,r=!0;T(e,function(e){e.done(i)})},a.prototype={setHost:function(e){this.host=e||{}},done:function(e){this._state===u?e():this._doneCallbacks.push(e)},progress:P,getPromise:function(){if(!this.promise){var t=this;this.promise=e(function(e,n){t.done(function(t){t===!1?n():e()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},"catch":function(e){return this.getPromise()["catch"](e)},"finally":function(e){return this.getPromise
()["finally"](e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;t._state===s&&(t._state=o,t._tick(function(){t._resolve(e)}))},_resolve:function(e){this._state!==u&&(T(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=u)}},a}]},kr=function(
){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,r){function u(){return e(function(){a(),s||o.complete(),s=!0}),o}function a(){i.addClass&&(t.addClass(i.addClass),i.addClass=null),i.removeClass&&(t.removeClass(i.removeClass),i.removeClass=null),i.to&&(t.css(i.to),i.to=null)}var i=r||{};i.$$prepared||(i=ct(i)),i.cleanupStyles&&(i.from=i.to=null),i.from&&(t.css(i.from),i.from=null);var s,o=new n;return{start:u,end:u}}}]},_r=r("$compile");Dr.$inject=["$provide","$$sanitizeUriProvider"
];var Pr=/^((?:x|data)[\:\-_])/i,qr=r("$controller"),Rr=/^(\S+)(\s+as\s+([\w$]+))?$/,Vr=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof h&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},$r="application/json",Jr={"Content-Type":$r+";charset=utf-8"},Kr=/^\[|^\{(?!\{)/,Qr={"[":/]$/,"{":/}$/},Gr=/^\)\]\}',?\n/,Yr=r("$http"),Zr=function(e){return function(){throw Yr("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",e)}},pi=
w.$interpolateMinErr=r("$interpolate");pi.throwNoconcat=function(e){throw pi("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce",e)},pi.interr=function(e,t){return pi("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var mi=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,gi={http:80,https:443,ftp:21},yi=r("$location"),Oi={$$html5:!1,$$replace:!1,absUrl
:Mi("$$absUrl"),url:function(e){if(F(e))return this.$$url;var t=mi.exec(e);return(t[1]||e==="")&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||e==="")&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:Mi("$$protocol"),host:Mi("$$host"),port:Mi("$$port"),path:_i("$$path",function(e){return e=e!==null?e.toString():"",e.charAt(0)=="/"?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(U(e)||z(e))e=e.toString(),this.$$search=Lt(e);else{if(!q(e))throw yi
("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");e=ct(e,{}),T(e,function(t,n){t==null&&delete e[n]}),this.$$search=e}break;default:F(t)||t===null?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:_i("$$hash",function(e){return e!==null?e.toString():""}),replace:function(){return this.$$replace=!0,this}};T([Ai,Li,ki],function(e){e.prototype=Object.create(Oi),e.prototype.state=function(t){if(!arguments.length)return this.$$state
;if(e!==ki||!this.$$html5)throw yi("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=F(t)?null:t,this}});var Hi=r("$parse"),Ii=Function.prototype.call,qi=Function.prototype.apply,Ri=Function.prototype.bind,Wi=$t();T("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){Wi[e]=!0});var Xi={n:"\n",f:"\f",r:"\r",t:"	",v:"","'":"'",'"':'"'},Vi=function(e){this.options=e};Vi.prototype={constructor
:Vi,lex:function(e){this.text=e,this.index=0,this.tokens=[];while(this.index<this.text.length){var t=this.text.charAt(this.index);if(t==='"'||t==="'")this.readString(t);else if(this.isNumber(t)||t==="."&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(t))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var n=t+this.peek(),r=n+this.peek(2),i=Wi[t],s=Wi[n],o=Wi[r];if(i||s||o){var u=
o?r:s?n:t;this.tokens.push({index:this.index,text:u,operator:!0}),this.index+=u.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(e,t){return t.indexOf(e)!==-1},peek:function(e){var t=e||1;return this.index+t<this.text.length?this.text.charAt(this.index+t):!1},isNumber:function(e){return"0"<=e&&e<="9"&&typeof e=="string"},isWhitespace:function(e){return e===" "||e==="\r"||e==="	"||e==="\n"||e===""||e===" "},isIdent:function(e){return"a"<=
e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||e==="$"},isExpOperator:function(e){return e==="-"||e==="+"||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=I(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw Hi("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){var e="",t=this.index;while(this.index<this.text.length){var n=u(this.text.charAt(this.index));if(n=="."||this.isNumber(n))e+=n;else{var r=this.peek();if(n=="e"&&
this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&e.charAt(e.length-1)=="e")e+=n;else{if(!this.isExpOperator(n)||!!r&&!!this.isNumber(r)||e.charAt(e.length-1)!="e")break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){var e=this.index;while(this.index<this.text.length){var t=this.text.charAt(this.index);if(!this.isIdent(t)&&!this.isNumber(t))break;this.index++}this.tokens.push({index
:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;var n="",r=e,i=!1;while(this.index<this.text.length){var s=this.text.charAt(this.index);r+=s;if(i){if(s==="u"){var o=this.text.substring(this.index+1,this.index+5);o.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+o+"]"),this.index+=4,n+=String.fromCharCode(parseInt(o,16))}else{var u=Xi[s];n+=u||s}i=!1}else if(s==="\\")i=!0;else{if(s===e){this.index++,this.tokens.push({index
:t,text:r,constant:!0,value:n});return}n+=s}this.index++}this.throwError("Unterminated quote",t)}};var $i=function(e,t){this.lexer=e,this.options=t};$i.Program="Program",$i.ExpressionStatement="ExpressionStatement",$i.AssignmentExpression="AssignmentExpression",$i.ConditionalExpression="ConditionalExpression",$i.LogicalExpression="LogicalExpression",$i.BinaryExpression="BinaryExpression",$i.UnaryExpression="UnaryExpression",$i.CallExpression="CallExpression",$i.MemberExpression="MemberExpression"
,$i.Identifier="Identifier",$i.Literal="Literal",$i.ArrayExpression="ArrayExpression",$i.Property="Property",$i.ObjectExpression="ObjectExpression",$i.ThisExpression="ThisExpression",$i.LocalsExpression="LocalsExpression",$i.NGValueParameter="NGValueParameter",$i.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return this.tokens.length!==0&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){var e=[];for(;;){this.tokens.length>0&&!
this.peek("}",")",";","]")&&e.push(this.expressionStatement());if(!this.expect(";"))return{type:$i.Program,body:e}}},expressionStatement:function(){return{type:$i.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){var e=this.expression(),t;while(t=this.expect("|"))e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();return this.expect("=")&&(e={type:$i.AssignmentExpression,left:e,right:this.assignment(),operator
:"="}),e},ternary:function(){var e=this.logicalOR(),t,n;if(this.expect("?")){t=this.expression();if(this.consume(":"))return n=this.expression(),{type:$i.ConditionalExpression,test:e,alternate:t,consequent:n}}return e},logicalOR:function(){var e=this.logicalAND();while(this.expect("||"))e={type:$i.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){var e=this.equality();while(this.expect("&&"))e={type:$i.LogicalExpression,operator:"&&",left:e,right:this
.equality()};return e},equality:function(){var e=this.relational(),t;while(t=this.expect("==","!=","===","!=="))e={type:$i.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){var e=this.additive(),t;while(t=this.expect("<",">","<=",">="))e={type:$i.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){var e=this.multiplicative(),t;while(t=this.expect("+","-"))e={type:$i.BinaryExpression,operator:t.text,left:e,right
:this.multiplicative()};return e},multiplicative:function(){var e=this.unary(),t;while(t=this.expect("*","/","%"))e={type:$i.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:$i.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object()
:this.constants.hasOwnProperty(this.peek().text)?e=ct(this.constants[this.consume().text]):this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());var t;while(t=this.expect("(","[","."))t.text==="("?(e={type:$i.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):t.text==="["?(e={type:$i.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):t.text==="."?e={type:$i
.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){var t=[e],n={type:$i.CallExpression,callee:this.identifier(),arguments:t,filter:!0};while(this.expect(":"))t.push(this.expression());return n},parseArguments:function(){var e=[];if(this.peekToken().text!==")")do e.push(this.expression());while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier"
,e),{type:$i.Identifier,name:e.text}},constant:function(){return{type:$i.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if(this.peekToken().text!=="]")do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:$i.ArrayExpression,elements:e}},object:function(){var e=[],t;if(this.peekToken().text!=="}")do{if(this.peek("}"))break;t={type:$i.Property,kind:"init"},this.peek().constant?t.key=this.constant():this.peek().identifier?
t.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),t.value=this.expression(),e.push(t)}while(this.expect(","));return this.consume("}"),{type:$i.ObjectExpression,properties:e}},throwError:function(e,t){throw Hi("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(this.tokens.length===0)throw Hi("ueoe","Unexpected end of expression: {0}",
this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(this.tokens.length===0)throw Hi("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var s=this.tokens[e],o=s.text;if(o===t||o===n||o===r||o===i||!t&&!n&&!r&&!i)return s}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return i?
(this.tokens.shift(),i):!1},constants:{"true":{type:$i.Literal,value:!0},"false":{type:$i.Literal,value:!1},"null":{type:$i.Literal,value:null},"undefined":{type:$i.Literal,value:n},"this":{type:$i.ThisExpression},$locals:{type:$i.LocalsExpression}}},rs.prototype={compile:function(e,t){var r=this,i=this.astBuilder.ast(e);this.state={nextId:0,filters:{},expensiveChecks:t,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Gi(i,r.$filter);var s="",o;this.stage="assign";if(o=es(i)
){this.state.computing="assign";var u=this.nextId();this.recurse(o,u),this.return_(u),s="fn.assign="+this.generateFunction("assign","s,v,l")}var a=Yi(i.body);r.stage="inputs",T(a,function(e,t){var n="fn"+t;r.state[n]={vars:[],body:[],own:{}},r.state.computing=n;var i=r.nextId();r.recurse(e,i),r.return_(i),r.state.inputs.push(n),e.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(i);var f='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn"
,"s,l,a,i")+s+this.watchFns()+"return fn;",l=(new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",f))(this.$filter,Bi,Fi,Ui,ji,zi,Ji,Ki,e);return this.state=this.stage=n,l.literal=ts(i),l.constant=ns(i),l},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return T(t,function(t){e.push("var "+t+"="+n.generateFunction(t,"s"))}),t.length&&e.push("fn.inputs=["+t.join(","
)+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return T(this.state.filters,function(n,r){e.push(n+"=$filter("+t.escape(r)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,r,i,s,o){var u,a,f=this,l,c;i=i||P;if(!o&&I(e.watchId))
{t=t||this.nextId(),this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,r,i,s,!0));return}switch(e.type){case $i.Program:T(e.body,function(t,r){f.recurse(t.expression,n,n,function(e){a=e}),r!==e.body.length-1?f.current().body.push(a,";"):f.return_(a)});break;case $i.Literal:c=this.escape(e.value),this.assign(t,c),i(c);break;case $i.UnaryExpression:this.recurse(e.argument,n,n,function(e){a=e}),c=e.operator+"("+this.ifDefined(a,0)+")",this.assign(t,c),i(c);break;
case $i.BinaryExpression:this.recurse(e.left,n,n,function(e){u=e}),this.recurse(e.right,n,n,function(e){a=e}),e.operator==="+"?c=this.plus(u,a):e.operator==="-"?c=this.ifDefined(u,0)+e.operator+this.ifDefined(a,0):c="("+u+")"+e.operator+"("+a+")",this.assign(t,c),i(c);break;case $i.LogicalExpression:t=t||this.nextId(),f.recurse(e.left,t),f.if_(e.operator==="&&"?t:f.not(t),f.lazyRecurse(e.right,t)),i(t);break;case $i.ConditionalExpression:t=t||this.nextId(),f.recurse(e.test,t),f.if_(t,f.lazyRecurse
(e.alternate,t),f.lazyRecurse(e.consequent,t)),i(t);break;case $i.Identifier:t=t||this.nextId(),r&&(r.context=f.stage==="inputs"?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),r.computed=!1,r.name=e.name),Bi(e.name),f.if_(f.stage==="inputs"||f.not(f.getHasOwnProperty("l",e.name)),function(){f.if_(f.stage==="inputs"||"s",function(){s&&s!==1&&f.if_(f.not(f.nonComputedMember("s",e.name)),f.lazyAssign(f.nonComputedMember("s",e.name),"{}")),f.assign(t,f.nonComputedMember("s",
e.name))})},t&&f.lazyAssign(t,f.nonComputedMember("l",e.name))),(f.state.expensiveChecks||os(e.name))&&f.addEnsureSafeObject(t),i(t);break;case $i.MemberExpression:u=r&&(r.context=this.nextId())||this.nextId(),t=t||this.nextId(),f.recurse(e.object,u,n,function(){f.if_(f.notNull(u),function(){s&&s!==1&&f.addEnsureSafeAssignContext(u);if(e.computed)a=f.nextId(),f.recurse(e.property,a),f.getStringValue(a),f.addEnsureSafeMemberName(a),s&&s!==1&&f.if_(f.not(f.computedMember(u,a)),f.lazyAssign(f.computedMember
(u,a),"{}")),c=f.ensureSafeObject(f.computedMember(u,a)),f.assign(t,c),r&&(r.computed=!0,r.name=a);else{Bi(e.property.name),s&&s!==1&&f.if_(f.not(f.nonComputedMember(u,e.property.name)),f.lazyAssign(f.nonComputedMember(u,e.property.name),"{}")),c=f.nonComputedMember(u,e.property.name);if(f.state.expensiveChecks||os(e.property.name))c=f.ensureSafeObject(c);f.assign(t,c),r&&(r.computed=!1,r.name=e.property.name)}},function(){f.assign(t,"undefined")}),i(t)},!!s);break;case $i.CallExpression:t=t||this
.nextId(),e.filter?(a=f.filter(e.callee.name),l=[],T(e.arguments,function(e){var t=f.nextId();f.recurse(e,t),l.push(t)}),c=a+"("+l.join(",")+")",f.assign(t,c),i(t)):(a=f.nextId(),u={},l=[],f.recurse(e.callee,a,u,function(){f.if_(f.notNull(a),function(){f.addEnsureSafeFunction(a),T(e.arguments,function(e){f.recurse(e,f.nextId(),n,function(e){l.push(f.ensureSafeObject(e))})}),u.name?(f.state.expensiveChecks||f.addEnsureSafeObject(u.context),c=f.member(u.context,u.name,u.computed)+"("+l.join(",")+")"
):c=a+"("+l.join(",")+")",c=f.ensureSafeObject(c),f.assign(t,c)},function(){f.assign(t,"undefined")}),i(t)}));break;case $i.AssignmentExpression:a=this.nextId(),u={};if(!Zi(e.left))throw Hi("lval","Trying to assign a value to a non l-value");this.recurse(e.left,n,u,function(){f.if_(f.notNull(u.context),function(){f.recurse(e.right,a),f.addEnsureSafeObject(f.member(u.context,u.name,u.computed)),f.addEnsureSafeAssignContext(u.context),c=f.member(u.context,u.name,u.computed)+e.operator+a,f.assign(t,
c),i(t||c)})},1);break;case $i.ArrayExpression:l=[],T(e.elements,function(e){f.recurse(e,f.nextId(),n,function(e){l.push(e)})}),c="["+l.join(",")+"]",this.assign(t,c),i(c);break;case $i.ObjectExpression:l=[],T(e.properties,function(e){f.recurse(e.value,f.nextId(),n,function(t){l.push(f.escape(e.key.type===$i.Identifier?e.key.name:""+e.key.value)+":"+t)})}),c="{"+l.join(",")+"}",this.assign(t,c),i(c);break;case $i.ThisExpression:this.assign(t,"s"),i("s");break;case $i.LocalsExpression:this.assign(
t,"l"),i("l");break;case $i.NGValueParameter:this.assign(t,"v"),i("v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){if(!e)return;return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape
(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(e===!0)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){return e+"."+t},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember
(e,t)},addEnsureSafeObject:function(e){this.current().body.push(this.ensureSafeObject(e),";")},addEnsureSafeMemberName:function(e){this.current().body.push(this.ensureSafeMemberName(e),";")},addEnsureSafeFunction:function(e){this.current().body.push(this.ensureSafeFunction(e),";")},addEnsureSafeAssignContext:function(e){this.current().body.push(this.ensureSafeAssignContext(e),";")},ensureSafeObject:function(e){return"ensureSafeObject("+e+",text)"},ensureSafeMemberName:function(e){return"ensureSafeMemberName("+
e+",text)"},ensureSafeFunction:function(e){return"ensureSafeFunction("+e+",text)"},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},ensureSafeAssignContext:function(e){return"ensureSafeAssignContext("+e+",text)"},lazyRecurse:function(e,t,n,r,i,s){var o=this;return function(){o.recurse(e,t,n,r,i,s)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).
slice(-4)},escape:function(e){if(U(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(z(e))return e.toString();if(e===!0)return"true";if(e===!1)return"false";if(e===null)return"null";if(typeof e=="undefined")return"undefined";throw Hi("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},is.prototype={compile:function(e,t){var n=this,r=this.astBuilder
.ast(e);this.expression=e,this.expensiveChecks=t,Gi(r,n.$filter);var i,s;if(i=es(r))s=this.recurse(i);var o=Yi(r.body),u;o&&(u=[],T(o,function(e,t){var r=n.recurse(e);e.input=r,u.push(r),e.watchId=t}));var a=[];T(r.body,function(e){a.push(n.recurse(e.expression))});var f=r.body.length===0?function(){}:r.body.length===1?a[0]:function(e,t){var n;return T(a,function(r){n=r(e,t)}),n};return s&&(f.assign=function(e,t,n){return s(e,n,t)}),u&&(f.inputs=u),f.literal=ts(r),f.constant=ns(r),f},recurse:function(
e,t,r){var i,s,o=this,u,a;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case $i.Literal:return this.value(e.value,t);case $i.UnaryExpression:return s=this.recurse(e.argument),this["unary"+e.operator](s,t);case $i.BinaryExpression:return i=this.recurse(e.left),s=this.recurse(e.right),this["binary"+e.operator](i,s,t);case $i.LogicalExpression:return i=this.recurse(e.left),s=this.recurse(e.right),this["binary"+e.operator](i,s,t);case $i.ConditionalExpression:return this["ternary?:"
](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case $i.Identifier:return Bi(e.name,o.expression),o.identifier(e.name,o.expensiveChecks||os(e.name),t,r,o.expression);case $i.MemberExpression:return i=this.recurse(e.object,!1,!!r),e.computed||(Bi(e.property.name,o.expression),s=e.property.name),e.computed&&(s=this.recurse(e.property)),e.computed?this.computedMember(i,s,t,r,o.expression):this.nonComputedMember(i,s,o.expensiveChecks,t,r,o.expression);case $i.CallExpression
:return u=[],T(e.arguments,function(e){u.push(o.recurse(e))}),e.filter&&(s=this.$filter(e.callee.name)),e.filter||(s=this.recurse(e.callee,!0)),e.filter?function(e,r,i,o){var a=[];for(var f=0;f<u.length;++f)a.push(u[f](e,r,i,o));var l=s.apply(n,a,o);return t?{context:n,name:n,value:l}:l}:function(e,n,r,i){var a=s(e,n,r,i),f;if(a.value!=null){Fi(a.context,o.expression),Ui(a.value,o.expression);var l=[];for(var c=0;c<u.length;++c)l.push(Fi(u[c](e,n,r,i),o.expression));f=Fi(a.value.apply(a.context,l
),o.expression)}return t?{value:f}:f};case $i.AssignmentExpression:return i=this.recurse(e.left,!0,1),s=this.recurse(e.right),function(e,n,r,u){var a=i(e,n,r,u),f=s(e,n,r,u);return Fi(a.value,o.expression),zi(a.context),a.context[a.name]=f,t?{value:f}:f};case $i.ArrayExpression:return u=[],T(e.elements,function(e){u.push(o.recurse(e))}),function(e,n,r,i){var s=[];for(var o=0;o<u.length;++o)s.push(u[o](e,n,r,i));return t?{value:s}:s};case $i.ObjectExpression:return u=[],T(e.properties,function(e){
u.push({key:e.key.type===$i.Identifier?e.key.name:""+e.key.value,value:o.recurse(e.value)})}),function(e,n,r,i){var s={};for(var o=0;o<u.length;++o)s[u[o].key]=u[o].value(e,n,r,i);return t?{value:s}:s};case $i.ThisExpression:return function(e){return t?{value:e}:e};case $i.LocalsExpression:return function(e,n){return t?{value:n}:n};case $i.NGValueParameter:return function(e,n,r,i){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,s){var o=e(n,r,i,s);return I(o)?o=+o:o=0,t?{value
:o}:o}},"unary-":function(e,t){return function(n,r,i,s){var o=e(n,r,i,s);return I(o)?o=-o:o=0,t?{value:o}:o}},"unary!":function(e,t){return function(n,r,i,s){var o=!e(n,r,i,s);return t?{value:o}:o}},"binary+":function(e,t,n){return function(r,i,s,o){var u=e(r,i,s,o),a=t(r,i,s,o),f=Ki(u,a);return n?{value:f}:f}},"binary-":function(e,t,n){return function(r,i,s,o){var u=e(r,i,s,o),a=t(r,i,s,o),f=(I(u)?u:0)-(I(a)?a:0);return n?{value:f}:f}},"binary*":function(e,t,n){return function(r,i,s,o){var u=e(r
,i,s,o)*t(r,i,s,o);return n?{value:u}:u}},"binary/":function(e,t,n){return function(r,i,s,o){var u=e(r,i,s,o)/t(r,i,s,o);return n?{value:u}:u}},"binary%":function(e,t,n){return function(r,i,s,o){var u=e(r,i,s,o)%t(r,i,s,o);return n?{value:u}:u}},"binary===":function(e,t,n){return function(r,i,s,o){var u=e(r,i,s,o)===t(r,i,s,o);return n?{value:u}:u}},"binary!==":function(e,t,n){return function(r,i,s,o){var u=e(r,i,s,o)!==t(r,i,s,o);return n?{value:u}:u}},"binary==":function(e,t,n){return function(
r,i,s,o){var u=e(r,i,s,o)==t(r,i,s,o);return n?{value:u}:u}},"binary!=":function(e,t,n){return function(r,i,s,o){var u=e(r,i,s,o)!=t(r,i,s,o);return n?{value:u}:u}},"binary<":function(e,t,n){return function(r,i,s,o){var u=e(r,i,s,o)<t(r,i,s,o);return n?{value:u}:u}},"binary>":function(e,t,n){return function(r,i,s,o){var u=e(r,i,s,o)>t(r,i,s,o);return n?{value:u}:u}},"binary<=":function(e,t,n){return function(r,i,s,o){var u=e(r,i,s,o)<=t(r,i,s,o);return n?{value:u}:u}},"binary>=":function(e,t,n){return function(
r,i,s,o){var u=e(r,i,s,o)>=t(r,i,s,o);return n?{value:u}:u}},"binary&&":function(e,t,n){return function(r,i,s,o){var u=e(r,i,s,o)&&t(r,i,s,o);return n?{value:u}:u}},"binary||":function(e,t,n){return function(r,i,s,o){var u=e(r,i,s,o)||t(r,i,s,o);return n?{value:u}:u}},"ternary?:":function(e,t,n,r){return function(i,s,o,u){var a=e(i,s,o,u)?t(i,s,o,u):n(i,s,o,u);return r?{value:a}:a}},value:function(e,t){return function(){return t?{context:n,name:n,value:e}:e}},identifier:function(e,t,r,i,s){return function(
o,u,a,f){var l=u&&e in u?u:o;i&&i!==1&&l&&!l[e]&&(l[e]={});var c=l?l[e]:n;return t&&Fi(c,s),r?{context:l,name:e,value:c}:c}},computedMember:function(e,t,n,r,i){return function(s,o,u,a){var f=e(s,o,u,a),l,c;return f!=null&&(l=t(s,o,u,a),l=ji(l),Bi(l,i),r&&r!==1&&(zi(f),f&&!f[l]&&(f[l]={})),c=f[l],Fi(c,i)),n?{context:f,name:l,value:c}:c}},nonComputedMember:function(e,t,r,i,s,o){return function(u,a,f,l){var c=e(u,a,f,l);s&&s!==1&&(zi(c),c&&!c[t]&&(c[t]={}));var h=c!=null?c[t]:n;return(r||os(t))&&Fi(
h,o),i?{context:c,name:t,value:h}:h}},inputs:function(e,t){return function(n,r,i,s){return s?s[t]:e(n,r,i)}}};var ss=function(e,t,n){this.lexer=e,this.$filter=t,this.options=n,this.ast=new $i(this.lexer),this.astCompiler=n.csp?new is(this.ast,t):new rs(this.ast,t)};ss.prototype={constructor:ss,parse:function(e){return this.astCompiler.compile(e,this.options.expensiveChecks)}};var us=Object.prototype.valueOf,ms=r("$sce"),gs={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},_r=r("$compile"
),Cs=t.createElement("a"),ks=Ls(e.location.href);Ms.$inject=["$document"],Ds.$inject=["$provide"];var Fs=22,Is=".",qs="0";Rs.$inject=["$locale"],Us.$inject=["$locale"];var no={yyyy:$s("FullYear",4),yy:$s("FullYear",2,0,!0),y:$s("FullYear",1),MMMM:Js("Month"),MMM:Js("Month",!0),MM:$s("Month",2,1),M:$s("Month",1,1),dd:$s("Date",2),d:$s("Date",1),HH:$s("Hours",2),H:$s("Hours",1),hh:$s("Hours",2,-12),h:$s("Hours",1,-12),mm:$s("Minutes",2),m:$s("Minutes",1),ss:$s("Seconds",2),s:$s("Seconds",1),sss:$s("Milliseconds"
,3),EEEE:Js("Day"),EEE:Js("Day",!0),a:Zs,Z:Ks,ww:Ys(2),w:Ys(1),G:eo,GG:eo,GGG:eo,GGGG:to},ro=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,io=/^\-?\d+$/;so.$inject=["$locale"];var uo=B(u),ao=B(a);lo.$inject=["$parse"];var ho=B({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if(t[0].nodeName.toLowerCase()!=="a")return;var n=g.call(t.prop("href"))==="[object SVGAnimatedString]"?"xlink:href":"href";t.on("click",function(e){t.
attr(n)||e.preventDefault()})}}}),po={};T(Vn,function(e,t){function n(e,n,i){e.$watch(i[r],function(n){i.$set(t,!!n)})}if(e=="multiple")return;var r=Hr("ng-"+t),i=n;e==="checked"&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,t,i)}),po[r]=function(){return{restrict:"A",priority:100,link:i}}}),T(Jn,function(e,t){po[t]=function(){return{priority:100,link:function(e,n,r){if(t==="ngPattern"&&r.ngPattern.charAt(0)=="/"){var s=r.ngPattern.match(i);if(s){r.$set("ngPattern",new RegExp(s[1],s[2]));return}}e.$watch
(r[t],function(n){r.$set(t,n)})}}}}),T(["src","srcset","href"],function(e){var t=Hr("ng-"+e);po[t]=function(){return{priority:99,link:function(n,r,i){var s=e,o=e;e==="href"&&g.call(r.prop("href"))==="[object SVGAnimatedString]"&&(o="xlinkHref",i.$attr[o]="xlink:href",s=null),i.$observe(t,function(t){if(!t){e==="href"&&i.$set(o,null);return}i.$set(o,t),c&&s&&r.prop(s,i[o])})}}}});var vo={$addControl:P,$$renameControl:go,$removeControl:P,$setValidity:P,$setDirty:P,$setPristine:P,$setSubmitted:P},mo="ng-submitted"
;yo.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var bo=function(e){return["$timeout","$parse",function(t,r){function s(e){return e===""?r('this[""]').assign:r(e).assign||P}var i={name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:yo,compile:function(i,o){i.addClass(pu).addClass(cu);var u=o.name?"name":e&&o.ngForm?"ngForm":!1;return{pre:function(r,i,o,a){var f=a[0];if(!("action"in o)){var l=function(e){r.$apply(function(){f.$commitViewValue(),f.$setSubmitted
()}),e.preventDefault()};an(i[0],"submit",l),i.on("$destroy",function(){t(function(){fn(i[0],"submit",l)},0,!1)})}var c=a[1]||f.$$parentForm;c.$addControl(f);var h=u?s(f.$name):P;u&&(h(r,f),o.$observe(u,function(e){if(f.$name===e)return;h(r,n),f.$$parentForm.$$renameControl(f,e),h=s(f.$name),h(r,f)})),i.on("$destroy",function(){f.$$parentForm.$removeControl(f),h(r,n),O(f,vo)})}}}};return i}]},wo=bo(),Eo=bo(!0),So=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,xo=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i
,To=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,No=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Co=/^(\d{4})-(\d{2})-(\d{2})$/,ko=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Lo=/^(\d{4})-W(\d\d)$/,Ao=/^(\d{4})-(\d\d)$/,Oo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Mo={text:Do,date:jo("date",Co,Bo(Co,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":jo("datetimelocal",ko,Bo(ko,["yyyy","MM","dd","HH","mm","ss","sss"]
),"yyyy-MM-ddTHH:mm:ss.sss"),time:jo("time",Oo,Bo(Oo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:jo("week",Lo,Ho,"yyyy-Www"),month:jo("month",Ao,Bo(Ao,["yyyy","MM"]),"yyyy-MM"),number:Io,url:qo,email:Ro,radio:Uo,checkbox:Wo,hidden:P,button:P,submit:P,reset:P,file:P},Xo=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,s,o,a){a[0]&&(Mo[u(o.type)]||Mo.text)(i,s,o,a[0],t,e,n,r)}}}}],Vo=/^(true|false|\d+)$/,$o=function(){return{
restrict:"A",priority:100,compile:function(e,t){return Vo.test(t.ngValue)?function(t,n,r){r.$set("value",t.$eval(r.ngValue))}:function(t,n,r){t.$watch(r.ngValue,function(t){r.$set("value",t)})}}}},Jo=["$compile",function(e){return{restrict:"AC",compile:function(n){return e.$$addBindingClass(n),function(n,r,i){e.$$addBindingInfo(r,i.ngBind),r=r[0],n.$watch(i.ngBind,function(t){r.textContent=F(t)?"":t})}}}}],Ko=["$interpolate","$compile",function(e,t){return{compile:function(r){return t.$$addBindingClass
(r),function(r,i,s){var o=e(i.attr(s.$attr.ngBindTemplate));t.$$addBindingInfo(i,o.expressions),i=i[0],s.$observe("ngBindTemplate",function(e){i.textContent=F(e)?"":e})}}}}],Qo=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(i,s){var o=t(s.ngBindHtml),u=t(s.ngBindHtml,function(t){return(t||"").toString()});return n.$$addBindingClass(i),function(r,i,s){n.$$addBindingInfo(i,s.ngBindHtml),r.$watch(u,function(){i.html(e.getTrustedHtml(o(r))||"")})}}}}],Go=B({restrict:"A"
,require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),Zo=Yo("",!0),eu=Yo("Odd",0),tu=Yo("Even",1),nu=co({compile:function(e,t){t.$set("ngCloak",n),e.removeClass("ng-cloak")}}),ru=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],iu={},su={blur:!0,focus:!0};T("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=
Hr("ng-"+e);iu[t]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,s){var o=n(s[t],null,!0);return function(n,i){i.on(e,function(t){var i=function(){o(n,{$event:t})};su[e]&&r.$$phase?n.$evalAsync(i):n.$apply(i)})}}}}]});var ou=["$animate",function(e){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,s,o){var u,a,f;n.$watch(i.ngIf,function(s){s?a||o(function(n,s){a=s,n[n.length++]=t.createComment(" end ngIf: "+
i.ngIf+" "),u={clone:n},e.enter(n,r.parent(),r)}):(f&&(f.remove(),f=null),a&&(a.$destroy(),a=null),u&&(f=Vt(u.clone),e.leave(f).then(function(){f=null}),u=null))})}}}],uu=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:w.noop,compile:function(r,i){var s=i.ngInclude||i.src,o=i.onload||"",u=i.autoscroll;return function(r,i,a,f,l){var c=0,h,p,d,v=function(){p&&(p.remove(),p=null),h&&(h.$destroy(),h=null),d&&
(n.leave(d).then(function(){p=null}),p=d,d=null)};r.$watch(s,function(a){var p=function(){I(u)&&(!u||r.$eval(u))&&t()},m=++c;a?(e(a,!0).then(function(e){if(r.$$destroyed)return;if(m!==c)return;var t=r.$new();f.template=e;var s=l(t,function(e){v(),n.enter(e,null,i).then(p)});h=t,d=s,h.$emit("$includeContentLoaded",a),r.$eval(o)},function(){if(r.$$destroyed)return;m===c&&(v(),r.$emit("$includeContentError",a))}),r.$emit("$includeContentRequested",a)):(v(),f.template=null)})}}}}],au=["$compile",function(
e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,s){if(g.call(r[0]).match(/SVG/)){r.empty(),e(Nn(s.template,t).childNodes)(n,function(t){r.append(t)},{futureParentElement:r});return}r.html(s.template),e(r.contents())(n)}}}],fu=co({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),lu=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,r,i){var s=t.attr(r.$attr.ngList)||", ",o=r.ngTrim!=="false",u=o?it(s):s,a=
function(e){if(F(e))return;var t=[];return e&&T(e.split(u),function(e){e&&t.push(o?it(e):e)}),t};i.$parsers.push(a),i.$formatters.push(function(e){return X(e)?e.join(s):n}),i.$isEmpty=function(e){return!e||!e.length}}}},cu="ng-valid",hu="ng-invalid",pu="ng-pristine",du="ng-dirty",vu="ng-untouched",mu="ng-touched",gu="ng-pending",yu="ng-empty",bu="ng-not-empty",wu=r("ngModel"),Eu=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(
e,t,r,i,s,o,u,a,f,l){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=n,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=n,this.$name=l(r.name||"",!1)(e),this.$$parentForm=vo;var c=s(r.ngModel),h=c.assign,p=c,d=h,v=null,m,g=this;this.$$setOptions=function(e){g.$options=
e;if(e&&e.getterSetter){var t=s(r.ngModel+"()"),n=s(r.ngModel+"($$$p)");p=function(e){var n=c(e);return V(n)&&(n=t(e)),n},d=function(e,t){V(c(e))?n(e,{$$$p:g.$modelValue}):h(e,g.$modelValue)}}else if(!c.assign)throw wu("nonassign","Expression '{0}' is non-assignable. Element: {1}",r.ngModel,Ct(i))},this.$render=P,this.$isEmpty=function(e){return F(e)||e===""||e===null||e!==e},this.$$updateEmptyClasses=function(e){g.$isEmpty(e)?(o.removeClass(i,bu),o.addClass(i,yu)):(o.removeClass(i,yu),o.addClass
(i,bu))};var y=0;Nu({ctrl:this,$element:i,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]},$animate:o}),this.$setPristine=function(){g.$dirty=!1,g.$pristine=!0,o.removeClass(i,du),o.addClass(i,pu)},this.$setDirty=function(){g.$dirty=!0,g.$pristine=!1,o.removeClass(i,pu),o.addClass(i,du),g.$$parentForm.$setDirty()},this.$setUntouched=function(){g.$touched=!1,g.$untouched=!0,o.setClass(i,vu,mu)},this.$setTouched=function(){g.$touched=!0,g.$untouched=!1,o.setClass(i,mu,vu)},this.$rollbackViewValue=
function(){u.cancel(v),g.$viewValue=g.$$lastCommittedViewValue,g.$render()},this.$validate=function(){if(z(g.$modelValue)&&isNaN(g.$modelValue))return;var e=g.$$lastCommittedViewValue,t=g.$$rawModelValue,r=g.$valid,i=g.$modelValue,s=g.$options&&g.$options.allowInvalid;g.$$runValidators(t,e,function(e){!s&&r!==e&&(g.$modelValue=e?t:n,g.$modelValue!==i&&g.$$writeModelToScope())})},this.$$runValidators=function(e,t,r){function s(){var e=g.$$parserName||"parse";return F(m)?(a(e,null),!0):(m||(T(g.$validators
,function(e,t){a(t,null)}),T(g.$asyncValidators,function(e,t){a(t,null)})),a(e,m),m)}function o(){var n=!0;return T(g.$validators,function(r,i){var s=r(e,t);n=n&&s,a(i,s)}),n?!0:(T(g.$asyncValidators,function(e,t){a(t,null)}),!1)}function u(){var r=[],i=!0;T(g.$asyncValidators,function(s,o){var u=s(e,t);if(!et(u))throw wu("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",u);a(o,n),r.push(u.then(function(){a(o,!0)},function(e){i=!1,a(o,!1)}))}),r.length?f.all
(r).then(function(){l(i)},P):l(!0)}function a(e,t){i===y&&g.$setValidity(e,t)}function l(e){i===y&&r(e)}y++;var i=y;if(!s()){l(!1);return}if(!o()){l(!1);return}u()},this.$commitViewValue=function(){var e=g.$viewValue;u.cancel(v);if(g.$$lastCommittedViewValue===e&&(e!==""||!g.$$hasNativeValidators))return;g.$$updateEmptyClasses(e),g.$$lastCommittedViewValue=e,g.$pristine&&this.$setDirty(),this.$$parseAndValidate()},this.$$parseAndValidate=function(){function u(){g.$modelValue!==s&&g.$$writeModelToScope
()}var t=g.$$lastCommittedViewValue,r=t;m=F(r)?n:!0;if(m)for(var i=0;i<g.$parsers.length;i++){r=g.$parsers[i](r);if(F(r)){m=!1;break}}z(g.$modelValue)&&isNaN(g.$modelValue)&&(g.$modelValue=p(e));var s=g.$modelValue,o=g.$options&&g.$options.allowInvalid;g.$$rawModelValue=r,o&&(g.$modelValue=r,u()),g.$$runValidators(r,g.$$lastCommittedViewValue,function(e){o||(g.$modelValue=e?r:n,u())})},this.$$writeModelToScope=function(){d(e,g.$modelValue),T(g.$viewChangeListeners,function(e){try{e()}catch(n){t(n
)}})},this.$setViewValue=function(e,t){g.$viewValue=e,(!g.$options||g.$options.updateOnDefault)&&g.$$debounceViewValueCommit(t)},this.$$debounceViewValueCommit=function(t){var n=0,r=g.$options,i;r&&I(r.debounce)&&(i=r.debounce,z(i)?n=i:z(i[t])?n=i[t]:z(i["default"])&&(n=i["default"])),u.cancel(v),n?v=u(function(){g.$commitViewValue()},n):a.$$phase?g.$commitViewValue():e.$apply(function(){g.$commitViewValue()})},e.$watch(function(){var r=p(e);if(r!==g.$modelValue&&(g.$modelValue===g.$modelValue||r===
r)){g.$modelValue=g.$$rawModelValue=r,m=n;var i=g.$formatters,s=i.length,o=r;while(s--)o=i[s](o);g.$viewValue!==o&&(g.$$updateEmptyClasses(o),g.$viewValue=g.$$lastCommittedViewValue=o,g.$render(),g.$$runValidators(r,o,P))}return r})}],Su=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Eu,priority:1,compile:function(n){return n.addClass(pu).addClass(vu).addClass(cu),{pre:function(t,n,r,i){var s=i[0],o=i[1]||s.$$parentForm;s.$$setOptions(i[2]&&
i[2].$options),o.$addControl(s),r.$observe("name",function(e){s.$name!==e&&s.$$parentForm.$$renameControl(s,e)}),t.$on("$destroy",function(){s.$$parentForm.$removeControl(s)})},post:function(n,r,i,s){var o=s[0];o.$options&&o.$options.updateOn&&r.on(o.$options.updateOn,function(e){o.$$debounceViewValueCommit(e&&e.type)}),r.on("blur",function(t){if(o.$touched)return;e.$$phase?n.$evalAsync(o.$setTouched):n.$apply(o.$setTouched)})}}}}}],xu=/(\s+|^)default(\s+|$)/,Tu=function(){return{restrict:"A",controller
:["$scope","$attrs",function(e,t){var n=this;this.$options=ct(e.$eval(t.ngModelOptions)),I(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=it(this.$options.updateOn.replace(xu,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},ku=co({terminal:!0,priority:1e3}),Lu=r("ngOptions"),Au=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/
,Ou=["$compile","$parse",function(e,n){function r(e,t,r){function S(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function T(e){var t;if(!o&&x(e))t=e;else{t=[];for(var n in e)e.hasOwnProperty(n)&&n.charAt(0)!=="$"&&t.push(n)}return t}var i=e.match(Au);if(!i)throw Lu("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,Ct(t));var s=i[5]||i[7],o=i[6],u=/ as /.test(i[0])&&i[1],a=
i[9],f=n(i[2]?i[1]:s),l=u&&n(u),c=l||f,h=a&&n(a),p=a?function(e,t){return h(r,t)}:function(t){return tr(t)},d=function(e,t){return p(e,E(e,t))},v=n(i[2]||i[1]),m=n(i[3]||""),g=n(i[4]||""),y=n(i[8]),b={},E=o?function(e,t){return b[o]=t,b[s]=e,b}:function(e){return b[s]=e,b};return{trackBy:a,getTrackByValue:d,getWatchables:n(y,function(e){var t=[];e=e||[];var n=T(e),s=n.length;for(var o=0;o<s;o++){var u=e===n?o:n[o],a=e[u],f=E(e[u],u),l=p(e[u],f);t.push(l);if(i[2]||i[1]){var c=v(r,f);t.push(c)}if(i
[4]){var h=g(r,f);t.push(h)}}return t}),getOptions:function(){var e=[],t={},n=y(r)||[],i=T(n),s=i.length;for(var o=0;o<s;o++){var u=n===i?o:i[o],f=n[u],l=E(f,u),h=c(r,l),b=p(h,l),x=v(r,l),N=m(r,l),C=g(r,l),k=new S(b,h,x,N,C);e.push(k),t[b]=k}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[d(e)]},getViewValueFromOption:function(e){return a?w.copy(e.viewValue):e.viewValue}}}}}function o(t,n,o,a){function C(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=
e.label,t.textContent=e.label),e.value!==t.value&&(t.value=e.selectValue)}function k(e,t,n,r){var i;return t&&u(t.nodeName)===n?i=t:(i=r.cloneNode(!1),t?e.insertBefore(i,t):e.appendChild(i)),i}function L(e){var t;while(e)t=e.nextSibling,zn(e),e=t}function A(e){var t=p&&p[0],n=y&&y[0];if(t||n)while(e&&(e===t||e===n||e.nodeType===Gt||at(e)==="option"&&e.value===""))e=e.nextSibling;return e}function O(){var e=b&&f.readValue();b=w.getOptions();var t={},r=n[0].firstChild;g&&n.prepend(p),r=A(r),b.items
.forEach(function(o){var u,a,f;I(o.group)?(u=t[o.group],u||(a=k(n[0],r,"optgroup",s),r=a.nextSibling,a.label=o.group,u=t[o.group]={groupElement:a,currentOptionElement:a.firstChild}),f=k(u.groupElement,u.currentOptionElement,"option",i),C(o,f),u.currentOptionElement=f.nextSibling):(f=k(n[0],r,"option",i),C(o,f),r=f.nextSibling)}),Object.keys(t).forEach(function(e){L(t[e].currentOptionElement)}),L(r),l.$render();if(!l.$isEmpty(e)){var o=f.readValue(),u=w.trackBy||c;if(u?!pt(e,o):e!==o)l.$setViewValue
(o),l.$render()}}var f=a[0],l=a[1],c=o.multiple,p;for(var d=0,v=n.children(),m=v.length;d<m;d++)if(v[d].value===""){p=v.eq(d);break}var g=!!p,y=h(i.cloneNode(!1));y.val("?");var b,w=r(o.ngOptions,n,t),E=function(){g||n.prepend(p),n.val(""),p.prop("selected",!0),p.attr("selected",!0)},S=function(){g||p.remove()},x=function(){n.prepend(y),n.val("?"),y.prop("selected",!0),y.attr("selected",!0)},N=function(){y.remove()};c?(l.$isEmpty=function(e){return!e||e.length===0},f.writeValue=function(t){b.items
.forEach(function(e){e.element.selected=!1}),t&&t.forEach(function(e){var t=b.getOptionFromViewValue(e);t&&!t.disabled&&(t.element.selected=!0)})},f.readValue=function(){var t=n.val()||[],r=[];return T(t,function(e){var t=b.selectValueMap[e];t&&!t.disabled&&r.push(b.getViewValueFromOption(t))}),r},w.trackBy&&t.$watchCollection(function(){if(X(l.$viewValue))return l.$viewValue.map(function(e){return w.getTrackByValue(e)})},function(){l.$render()})):(f.writeValue=function(t){var r=b.getOptionFromViewValue
(t);r&&!r.disabled?n[0].value!==r.selectValue&&(N(),S(),n[0].value=r.selectValue,r.element.selected=!0,r.element.setAttribute("selected","selected")):t===null||g?(N(),E()):(S(),x())},f.readValue=function(){var t=b.selectValueMap[n.val()];return t&&!t.disabled?(S(),N(),b.getViewValueFromOption(t)):null},w.trackBy&&t.$watch(function(){return w.getTrackByValue(l.$viewValue)},function(){l.$render()})),g?(p.remove(),e(p)(t),p.removeClass("ng-scope")):p=h(i.cloneNode(!1)),O(),t.$watchCollection(w.getWatchables
,O)}var i=t.createElement("option"),s=t.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,n,r,i){i[0].registerOption=P},post:o}}}],Mu=["$locale","$interpolate","$log",function(e,t,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(s,o,a){function b(e){o.text(e||"")}var f=a.count,l=a.$attr.when&&o.attr(a.$attr.when),c=a.offset||0,h=s.$eval(l)||{},p={},d=t.startSymbol(),v=t.endSymbol(),m=d+f+"-"+c+v,g=w.noop,y;T(a,function(e,t){var n=
i.exec(t);if(n){var r=(n[1]?"-":"")+u(n[2]);h[r]=o.attr(a.$attr[t])}}),T(h,function(e,n){p[n]=t(e.replace(r,m))}),s.$watch(f,function(r){var i=parseFloat(r),o=isNaN(i);!o&&!(i in h)&&(i=e.pluralCat(i-c));if(i!==y&&!(o&&z(y)&&isNaN(y))){g();var u=p[i];F(u)?(r!=null&&n.debug("ngPluralize: no rule defined for '"+i+"' in "+l),g=P,b()):g=s.$watch(u,b),y=i}})}}}],_u=["$parse","$animate",function(e,i){var s="$$NG_REMOVED",u=r("ngRepeat"),a=function(e,t,n,r,i,s,o){e[n]=r,i&&(e[i]=s),e.$index=t,e.$first=t===0
,e.$last=t===o-1,e.$middle=!e.$first&&!e.$last,e.$odd=!(e.$even=(t&1)===0)},f=function(e){return e.clone[0]},l=function(e){return e.clone[e.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(c,p){var d=p.ngRepeat,v=t.createComment(" end ngRepeat: "+d+" "),m=d.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!m)throw u("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'."
,d);var g=m[1],y=m[2],b=m[3],w=m[4];m=g.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/);if(!m)throw u("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",g);var E=m[3]||m[1],S=m[2];if(b&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(b)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(b)))throw u("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name."
,b);var N,C,k,L,A={$id:tr};return w?N=e(w):(k=function(e,t){return tr(t)},L=function(e){return e}),function(t,r,c,p,m){N&&(C=function(e,n,r){return S&&(A[S]=e),A[E]=n,A.$index=r,N(t,A)});var g=$t();t.$watchCollection(y,function(c){var p,y,w=r[0],N,A=$t(),O,M,_,D,P,H,B,j,F;b&&(t[b]=c);if(x(c))H=c,P=C||k;else{P=C||L,H=[];for(var I in c)o.call(c,I)&&I.charAt(0)!=="$"&&H.push(I)}O=H.length,j=new Array(O);for(p=0;p<O;p++){M=c===H?p:H[p],_=c[M],D=P(M,_,p);if(g[D])B=g[D],delete g[D],A[D]=B,j[p]=B;else{if(
A[D])throw T(j,function(e){e&&e.scope&&(g[e.id]=e)}),u("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",d,D,_);j[p]={id:D,scope:n,clone:n},A[D]=!0}}for(var q in g){B=g[q],F=Vt(B.clone),i.leave(F);if(F[0].parentNode)for(p=0,y=F.length;p<y;p++)F[p][s]=!0;B.scope.$destroy()}for(p=0;p<O;p++){M=c===H?p:H[p],_=c[M],B=j[p];if(B.scope){N=w;do N=N.nextSibling;while(N&&N[s]);f(B)!=N&&i.move(Vt(B.clone
),null,h(w)),w=l(B),a(B.scope,p,E,_,S,M,O)}else m(function(t,n){B.scope=n;var r=v.cloneNode(!1);t[t.length++]=r,i.enter(t,null,h(w)),w=r,B.clone=t,A[B.id]=B,a(B.scope,p,E,_,S,M,O)})}g=A})}}}}],Du="ng-hide",Pu="ng-hide-animate",Hu=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,function(r){e[r?"removeClass":"addClass"](n,Du,{tempClasses:Pu})})}}}],Bu=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide
,function(r){e[r?"addClass":"removeClass"](n,Du,{tempClasses:Pu})})}}}],ju=co(function(e,t,n){e.$watch(n.ngStyle,function(n,r){r&&n!==r&&T(r,function(e,n){t.css(n,"")}),n&&t.css(n)},!0)}),Fu=["$animate",function(e){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,s){var o=i.ngSwitch||i.on,u=[],a=[],f=[],l=[],c=function(e,t){return function(){e.splice(t,1)}};n.$watch(o,function(r){var i,o;for(i=0,o=f.length;i<o;++i)e.cancel(f[i]);f.length=0;for(i=0,o=l.
length;i<o;++i){var h=Vt(a[i].clone);l[i].$destroy();var p=f[i]=e.leave(h);p.then(c(f,i))}a.length=0,l.length=0,(u=s.cases["!"+r]||s.cases["?"])&&T(u,function(n){n.transclude(function(r,i){l.push(i);var s=n.element;r[r.length++]=t.createComment(" end ngSwitchWhen: ");var o={clone:r};a.push(o),e.enter(r,s.parent(),s)})})})}}}],Iu=co({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+
n.ngSwitchWhen].push({transclude:i,element:t})}}),qu=co({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),Ru=r("ngTransclude"),Uu=co({restrict:"EAC",link:function(e,t,n,r,i){function s(e){e.length&&(t.empty(),t.append(e))}n.ngTransclude===n.$attr.ngTransclude&&(n.ngTransclude="");if(!i)throw Ru("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}"
,Ct(t));var o=n.ngTransclude||n.ngTranscludeSlot;i(s,null,o)}}),zu=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if(n.type=="text/ng-template"){var r=n.id,i=t[0].text;e.put(r,i)}}}}],Wu={$setViewValue:P,$render:P},Vu=["$element","$scope","$attrs",function(e,r,i){var s=this,o=new nr;s.ngModelCtrl=Wu,s.unknownOption=h(t.createElement("option")),s.renderUnknownOption=function(t){var n="? "+tr(t)+" ?";s.unknownOption.val(n),e.prepend(s.unknownOption),e.val(n)},r.
$on("$destroy",function(){s.renderUnknownOption=P}),s.removeUnknownOption=function(){s.unknownOption.parent()&&s.unknownOption.remove()},s.readValue=function(){return s.removeUnknownOption(),e.val()},s.writeValue=function(n){s.hasOption(n)?(s.removeUnknownOption(),e.val(n),n===""&&s.emptyOption.prop("selected",!0)):n==null&&s.emptyOption?(s.removeUnknownOption(),e.val("")):s.renderUnknownOption(n)},s.addOption=function(e,t){if(t[0].nodeType===Gt)return;Wt(e,'"option value"'),e===""&&(s.emptyOption=
t);var n=o.get(e)||0;o.put(e,n+1),s.ngModelCtrl.$render(),Xu(t)},s.removeOption=function(e){var t=o.get(e);t&&(t===1?(o.remove(e),e===""&&(s.emptyOption=n)):o.put(e,t-1))},s.hasOption=function(e){return!!o.get(e)},s.registerOption=function(e,t,n,r,i){if(r){var o;n.$observe("value",function(n){I(o)&&s.removeOption(o),o=n,s.addOption(n,t)})}else i?e.$watch(i,function(r,i){n.$set("value",r),i!==r&&s.removeOption(i),s.addOption(r,t)}):s.addOption(n.value,t);t.on("$destroy",function(){s.removeOption(n
.value),s.ngModelCtrl.$render()})}}],$u=function(){function e(e,t,n,r){var i=r[1];if(!i)return;var s=r[0];s.ngModelCtrl=i,t.on("change",function(){e.$apply(function(){i.$setViewValue(s.readValue())})});if(n.multiple){s.readValue=function(){var n=[];return T(t.find("option"),function(e){e.selected&&n.push(e.value)}),n},s.writeValue=function(n){var r=new nr(n);T(t.find("option"),function(e){e.selected=I(r.get(e.value))})};var o,u=NaN;e.$watch(function(){u===i.$viewValue&&!pt(o,i.$viewValue)&&(o=ht(
i.$viewValue),i.$render()),u=i.$viewValue}),i.$isEmpty=function(e){return!e||e.length===0}}}function t(e,t,n,r){var i=r[1];if(!i)return;var s=r[0];i.$render=function(){s.writeValue(i.$viewValue)}}return{restrict:"E",require:["select","?ngModel"],controller:Vu,priority:1,link:{pre:e,post:t}}},Ju=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){if(I(n.value))var r=e(n.value,!0);else{var i=e(t.text(),!0);i||n.$set("value",t.text())}return function(e,t,n){var s="$selectController"
,o=t.parent(),u=o.data(s)||o.parent().data(s);u&&u.registerOption(e,t,n,r,i)}}}}],Ku=B({restrict:"E",terminal:!1}),Qu=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(!r)return;n.required=!0,r.$validators.required=function(e,t){return!n.required||!r.$isEmpty(t)},n.$observe("required",function(){r.$validate()})}}},Gu=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,i,s){if(!s)return;var o,u=i.ngPattern||i.pattern;i.$observe("pattern",function(e){U(e)&&
e.length>0&&(e=new RegExp("^"+e+"$"));if(e&&!e.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",u,e,Ct(t));o=e||n,s.$validate()}),s.$validators.pattern=function(e,t){return s.$isEmpty(t)||F(o)||o.test(t)}}}},Yu=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(!r)return;var i=-1;n.$observe("maxlength",function(e){var t=_(e);i=isNaN(t)?-1:t,r.$validate()}),r.$validators.maxlength=function(e,t){return i<0||r.$isEmpty(t)||t.length<=
i}}}},Zu=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(!r)return;var i=0;n.$observe("minlength",function(e){i=_(e)||0,r.$validate()}),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=i}}}};if(e.angular.bootstrap){console.log("WARNING: Tried to load angular more than once.");return}Rt(),sn(w),w.module("ngLocale",[],["$provide",function(e){function r(e){e+="";var t=e.indexOf(".");return t==-1?0:e.length-t-1}function i(e,t){var i=t;n===i&&(i=Math.min
(r(e),3));var s=Math.pow(10,i),o=(e*s|0)%s;return{v:i,f:o}}var t={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri"
,"Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a","short":"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize
:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,n){var r=e|0,s=i(e,n);return r==1&&s.v==0?t.ONE:t.OTHER}})}]),h(t).ready(function(){Pt(t,Ht)})}(window,document),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'
),define("angular",["jquery"],function(e){return function(){var t,n;return t||e.angular}}(this)),function(e,t,n){"use strict";function r(e){var n=[];return a(n,t.noop).chars(e),n.join("")}function i(e,n){var r={},i=e.split(","),s;for(s=0;s<i.length;s++)r[n?t.lowercase(i[s]):i[s]]=!0;return r}function s(e,t){null===e||e===n?e="":"string"!=typeof e&&(e=""+e),S.innerHTML=e;var r=5;do{if(0===r)throw l("uinput");r--,11>=document.documentMode&&f(S),e=S.innerHTML,S.innerHTML=e}while(e!==S.innerHTML);for(
r=S.firstChild;r;){switch(r.nodeType){case 1:t.start(r.nodeName.toLowerCase(),o(r.attributes));break;case 3:t.chars(r.textContent)}var i;if(!(i=r.firstChild)&&(1==r.nodeType&&t.end(r.nodeName.toLowerCase()),i=r.nextSibling,!i))for(;null==i;){r=r.parentNode;if(r===S)break;i=r.nextSibling,1==r.nodeType&&t.end(r.nodeName.toLowerCase())}r=i}for(;r=S.firstChild;)S.removeChild(r)}function o(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function u(e){return e.replace(/&/g
,"&amp;").replace(c,function(e){var t=e.charCodeAt(0);return e=e.charCodeAt(1),"&#"+(1024*(t-55296)+(e-56320)+65536)+";"}).replace(h,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function a(e,n){var r=!1,i=t.bind(e,e.push);return{start:function(e,s){e=t.lowercase(e),!r&&y[e]&&(r=e),r||!0!==b[e]||(i("<"),i(e),t.forEach(s,function(r,s){var o=t.lowercase(s),a="img"===e&&"src"===o||"background"===o;!0!==E[o]||!0===w[o]&&!n(r,a)||(i(" "),i(s),i('="'),i(u(r)),i('"'
))}),i(">"))},end:function(e){e=t.lowercase(e),r||!0!==b[e]||!0===p[e]||(i("</"),i(e),i(">")),e==r&&(r=!1)},chars:function(e){r||i(u(e))}}}function f(e){if(e.nodeType===Node.ELEMENT_NODE)for(var t=e.attributes,n=0,r=t.length;n<r;n++){var i=t[n],s=i.name.toLowerCase();if("xmlns:ns1"===s||0===s.indexOf("ns1:"))e.removeAttributeNode(i),n--,r--}(t=e.firstChild)&&f(t),(t=e.nextSibling)&&f(t)}var l=t.$$minErr("$sanitize"),c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=/([^\#-~ |!])/g,p=i("area,br,col,hr,img,wbr"
),d=i("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),v=i("rp,rt"),m=t.extend({},v,d),d=t.extend({},d,i("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),v=t.extend({},v,i("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),g=i("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"
),y=i("script,style"),b=t.extend({},p,d,v,m),w=i("background,cite,href,longdesc,src,xlink:href"),m=i("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),v=i("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan"
,!0),E=t.extend({},w,v,m),S;(function(e){if(!e.document||!e.document.implementation)throw l("noinert");e=e.document.implementation.createHTMLDocument("inert");var t=(e.documentElement||e.getDocumentElement()).getElementsByTagName("body");1===t.length?S=t[0]:(t=e.createElement("html"),S=e.createElement("body"),t.appendChild(S),e.appendChild(t))})(e),t.module("ngSanitize",[]).provider("$sanitize",function(){var e=!1;this.$get=["$$sanitizeUri",function(n){return e&&t.extend(b,g),function(e){var t=[]
;return s(e,a(t,function(e,t){return!/^unsafe:/.test(n(e,t))})),t.join("")}}],this.enableSvg=function(n){return t.isDefined(n)?(e=n,this):e}}),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,i=/^mailto:/i,s=t.$$minErr("linky"),o=t.isString;return function(u,a,f){function l(e){e&&p.push(r(e))}function c(e,n){var r;p.push("<a "),t.isFunction(f)&&(f=f(e));if(t.isObject(f))for(r in f)p.push(
r+'="'+f[r]+'" ');else f={};!t.isDefined(a)||"target"in f||p.push('target="',a,'" '),p.push('href="',e.replace(/"/g,"&quot;"),'">'),l(n),p.push("</a>")}if(null==u||""===u)return u;if(!o(u))throw s("notstring",u);for(var h=u,p=[],d,v;u=h.match(n);)d=u[0],u[2]||u[4]||(d=(u[3]?"http://":"mailto:")+d),v=u.index,l(h.substr(0,v)),c(d,u[0].replace(i,"")),h=h.substring(v+u[0].length);return l(h),e(p.join(""))}}])}(window,window.angular),define("angular-sanitize",["angular"],function(){}),function(e,t,n){"use strict"
;function r(e,t,n){if(!e)throw K("areq",t||"?",n||"required");return e}function i(e,t){return!e&&!t?"":e?t?(H(e)&&(e=e.join(" ")),H(t)&&(t=t.join(" ")),e+" "+t):e:t}function s(e){var t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}function o(e,t,n){var r="";return e=H(e)?e:e&&B(e)&&e.length?e.split(/\s+/):[],P(e,function(e,i){e&&0<e.length&&(r+=0<i?" ":"",r+=n?t+e:e+t)}),r}function u(e){if(e instanceof D)switch(e.length){case 0:return[];case 1:if(1===e[0].nodeType)return e;break;default:
return D(a(e))}if(1===e.nodeType)return D(e)}function a(e){if(!e[0])return e;for(var t=0;t<e.length;t++){var n=e[t];if(1==n.nodeType)return n}}function f(e,t,n){P(t,function(t){e.addClass(t,n)})}function l(e,t,n){P(t,function(t){e.removeClass(t,n)})}function c(e){return function(t,n){n.addClass&&(f(e,t,n.addClass),n.addClass=null),n.removeClass&&(l(e,t,n.removeClass),n.removeClass=null)}}function h(e){e=e||{};if(!e.$$prepared){var t=e.domOperation||O;e.domOperation=function(){e.$$domOperationFired=!0
,t(),t=O},e.$$prepared=!0}return e}function p(e,t){d(e,t),v(e,t)}function d(e,t){t.from&&(e.css(t.from),t.from=null)}function v(e,t){t.to&&(e.css(t.to),t.to=null)}function m(e,t,n){var r=t.options||{};n=n.options||{};var i=(r.addClass||"")+" "+(n.addClass||""),s=(r.removeClass||"")+" "+(n.removeClass||"");return e=g(e.attr("class"),i,s),n.preparationClasses&&(r.preparationClasses=x(n.preparationClasses,r.preparationClasses),delete n.preparationClasses),i=r.domOperation!==O?r.domOperation:null,_(r
,n),i&&(r.domOperation=i),r.addClass=e.addClass?e.addClass:null,r.removeClass=e.removeClass?e.removeClass:null,t.addClass=r.addClass,t.removeClass=r.removeClass,r}function g(e,t,n){function r(e){B(e)&&(e=e.split(" "));var t={};return P(e,function(e){e.length&&(t[e]=!0)}),t}var i={};e=r(e),t=r(t),P(t,function(e,t){i[t]=1}),n=r(n),P(n,function(e,t){i[t]=1===i[t]?null:-1});var s={addClass:"",removeClass:""};return P(i,function(t,n){var r,i;1===t?(r="addClass",i=!e[n]):-1===t&&(r="removeClass",i=e[n]
),i&&(s[r].length&&(s[r]+=" "),s[r]+=n)}),s}function y(e){return e instanceof t.element?e[0]:e}function b(e,t,n){var r="";t&&(r=o(t,"ng-",!0)),n.addClass&&(r=x(r,o(n.addClass,"-add"))),n.removeClass&&(r=x(r,o(n.removeClass,"-remove"))),r.length&&(n.preparationClasses=r,e.addClass(r))}function w(e,t){var n=t?"-"+t+"s":"";return S(e,[J,n]),[J,n]}function E(e,t){var n=t?"paused":"",r=W+"PlayState";return S(e,[r,n]),[r,n]}function S(e,t){e.style[t[0]]=t[1]}function x(e,t){return e?t?e+" "+t:e:t}function T
(e,t,n){var r=Object.create(null),i=e.getComputedStyle(t)||{};return P(n,function(e,t){var n=i[e];if(n){var s=n.charAt(0);if("-"===s||"+"===s||0<=s)n=N(n);0===n&&(n=null),r[t]=n}}),r}function N(e){var t=0;return e=e.split(/\s*,\s*/),P(e,function(e){"s"==e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}function C(e){return 0===e||null!=e}function k(e,t){var n=U,r=e+"s";return t?n+="Duration":r+=" linear all",[n,r]}function L(){var e=Object.create(null)
;return{flush:function(){e=Object.create(null)},count:function(t){return(t=e[t])?t.total:0},get:function(t){return(t=e[t])&&t.value},put:function(t,n){e[t]?e[t].total++:e[t]={total:1,value:n}}}}function A(e,t,n){P(n,function(n){e[n]=I(e[n])?e[n]:t.style.getPropertyValue(n)})}var O=t.noop,M=t.copy,_=t.extend,D=t.element,P=t.forEach,H=t.isArray,B=t.isString,j=t.isObject,F=t.isUndefined,I=t.isDefined,q=t.isFunction,R=t.isElement,U,z,W,X;F(e.ontransitionend)&&I(e.onwebkittransitionend)?(U="WebkitTransition"
,z="webkitTransitionEnd transitionend"):(U="transition",z="transitionend"),F(e.onanimationend)&&I(e.onwebkitanimationend)?(W="WebkitAnimation",X="webkitAnimationEnd animationend"):(W="animation",X="animationend");var V=W+"Delay",$=W+"Duration",J=U+"Delay";e=U+"Duration";var K=t.$$minErr("ng"),Q={transitionDuration:e,transitionDelay:J,transitionProperty:U+"Property",animationDuration:$,animationDelay:V,animationIterationCount:W+"IterationCount"},G={transitionDuration:e,transitionDelay:J,animationDuration
:$,animationDelay:V};t.module("ngAnimate",[]).directive("ngAnimateSwap",["$animate","$rootScope",function(e,t){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(t,n,r,i,s){var o,u;t.$watchCollection(r.ngAnimateSwap||r["for"],function(r){o&&e.leave(o),u&&(u.$destroy(),u=null);if(r||0===r)u=t.$new(),s(u,function(t){o=t,e.enter(t,null,n)})})}}}]).directive("ngAnimateChildren",["$interpolate",function(e){return{link:function(n,r,i){function s(e){r.data("$$ngAnimateChildren"
,"on"===e||"true"===e)}var o=i.ngAnimateChildren;t.isString(o)&&0===o.length?r.data("$$ngAnimateChildren",!0):(s(e(o)(n)),i.$observe("ngAnimateChildren",s))}}}]).factory("$$rAFScheduler",["$$rAF",function(e){function t(e){r=r.concat(e),n()}function n(){if(r.length){for(var t=r.shift(),s=0;s<t.length;s++)t[s]();i||e(function(){i||n()})}}var r,i;return r=t.queue=[],t.waitUntilQuiet=function(t){i&&i(),i=e(function(){i=null,t(),n()})},t}]).provider("$$animateQueue",["$animateProvider",function(e){function t
(e){if(!e)return null;e=e.split(" ");var t=Object.create(null);return P(e,function(e){t[e]=!0}),t}function n(e,n){if(e&&n){var r=t(n);return e.split(" ").some(function(e){return r[e]})}}function i(e,t,n,r){return o[e].some(function(e){return e(t,n,r)})}function s(e,t){var n=0<(e.addClass||"").length,r=0<(e.removeClass||"").length;return t?n&&r:n||r}var o=this.rules={skip:[],cancel:[],join:[]};o.join.push(function(e,t,n){return!t.structural&&s(t)}),o.skip.push(function(e,t,n){return!t.structural&&!
s(t)}),o.skip.push(function(e,t,n){return"leave"==n.event&&t.structural}),o.skip.push(function(e,t,n){return n.structural&&2===n.state&&!t.structural}),o.cancel.push(function(e,t,n){return n.structural&&t.structural}),o.cancel.push(function(e,t,n){return 2===n.state&&t.structural}),o.cancel.push(function(e,t,r){e=t.addClass,t=t.removeClass;var i=r.addClass;return r=r.removeClass,F(e)&&F(t)||F(i)&&F(r)?!1:n(e,r)||n(t,i)}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation"
,"$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(t,n,o,f,l,d,v,g,w,E){function S(){var e=!1;return function(t){e?t():n.$$postDigest(function(){e=!0,t()})}}function x(e,t,n){var r=y(t),i=y(e),s=[];return(e=W[n])&&P(e,function(e){J.call(e.node,r)?s.push(e.callback):"leave"===n&&J.call(e.node,i)&&s.push(e.callback)}),s}function T(e,r,o){function a(n,r,i,s){T(function(){var n=x(w,e,r);n.length&&t(function(){P(n,function(t){t(e,i,s)})})}),n.progress(r,i,s)}function l(t){var n=
e,r=c;r.preparationClasses&&(n.removeClass(r.preparationClasses),r.preparationClasses=null),r.activeClasses&&(n.removeClass(r.activeClasses),r.activeClasses=null),$(e,c),p(e,c),c.domOperation(),E.complete(!t)}var c=M(o),g,w;if(e=u(e))g=y(e),w=e.parent();var c=h(c),E=new v,T=S();H(c.addClass)&&(c.addClass=c.addClass.join(" ")),c.addClass&&!B(c.addClass)&&(c.addClass=null),H(c.removeClass)&&(c.removeClass=c.removeClass.join(" ")),c.removeClass&&!B(c.removeClass)&&(c.removeClass=null),c.from&&!j(c.from
)&&(c.from=null),c.to&&!j(c.to)&&(c.to=null);if(!g)return l(),E;o=[g.className,c.addClass,c.removeClass].join(" ");if(!V(o))return l(),E;var k=0<=["enter","move","leave"].indexOf(r),_=!U||f[0].hidden||q.get(g);o=!_&&O.get(g)||{};var D=!!o.state;_||D&&1==o.state||(_=!L(e,w,r));if(_)return l(),E;k&&N(e),_={structural:k,element:e,event:r,addClass:c.addClass,removeClass:c.removeClass,close:l,options:c,runner:E};if(D){if(i("skip",e,_,o))return 2===o.state?(l(),E):(m(e,o,_),o.runner);if(i("cancel",e,_,
o))if(2===o.state)o.runner.end();else{if(!o.structural)return m(e,o,_),o.runner;o.close()}else if(i("join",e,_,o)){if(2!==o.state)return b(e,k?r:null,c),r=_.event=o.event,c=m(e,o,_),o.runner;m(e,_,{})}}else m(e,_,{});(D=_.structural)||(D="animate"===_.event&&0<Object.keys(_.options.to||{}).length||s(_));if(!D)return l(),C(e),E;var F=(o.counter||0)+1;return _.counter=F,A(e,1,_),n.$$postDigest(function(){var t=O.get(g),n=!t,t=t||{},i=0<(e.parent()||[]).length&&("animate"===t.event||t.structural||s(
t));if(n||t.counter!==F||!i){n&&($(e,c),p(e,c));if(n||k&&t.event!==r)c.domOperation(),E.end();i||C(e)}else r=!t.structural&&s(t,!0)?"setClass":t.event,A(e,2),t=d(e,r,t.options),t.done(function(t){l(!t),(t=O.get(g))&&t.counter===F&&C(y(e)),a(E,r,"close",{})}),E.setHost(t),a(E,r,"start",{})}),E}function N(e){e=y(e).querySelectorAll("[data-ng-animate]"),P(e,function(e){var t=parseInt(e.getAttribute("data-ng-animate")),n=O.get(e);if(n)switch(t){case 2:n.runner.end();case 1:O.remove(e)}})}function C(e
){e=y(e),e.removeAttribute("data-ng-animate"),O.remove(e)}function k(e,t){return y(e)===y(t)}function L(e,t,n){n=D(f[0].body);var r=k(e,n)||"HTML"===e[0].nodeName,i=k(e,o),s=!1,u,a=q.get(y(e));for((e=e.data("$ngAnimatePin"))&&(t=e);t&&t.length;){i||(i=k(t,o));var l=t[0];if(1!==l.nodeType)break;e=O.get(l)||{};if(!s){l=q.get(l);if(!0===l&&!1!==a){a=!0;break}!1===l&&(a=!1),s=e.structural}if(F(u)||!0===u)e=t.data("$$ngAnimateChildren"),I(e)&&(u=e);if(s&&!1===u)break;r||(r=k(t,n));if(r&&i)break;if(!i&&
(e=t.data("$ngAnimatePin"))){t=e;continue}t=t.parent()}return(!s||u)&&!0!==a&&i&&r}function A(e,t,n){n=n||{},n.state=t,e=y(e),e.setAttribute("data-ng-animate",t),n=(t=O.get(e))?_(t,n):n,O.put(e,n)}var O=new l,q=new l,U=null,z=n.$watch(function(){return 0===g.totalPendingRequests},function(e){e&&(z(),n.$$postDigest(function(){n.$$postDigest(function(){null===U&&(U=!0)})}))}),W={},X=e.classNameFilter(),V=X?function(e){return X.test(e)}:function(){return!0},$=c(w),J=Node.prototype.contains||function(
e){return this===e||!!(this.compareDocumentPosition(e)&16)};return{on:function(e,t,n){t=a(t),W[e]=W[e]||[],W[e].push({node:t,callback:n})},off:function(e,t,n){function r(e,t,n){var r=a(t);return e.filter(function(e){return e.node!==r||!!n&&e.callback!==n})}var i=W[e];i&&(W[e]=1===arguments.length?null:r(i,t,n))},pin:function(e,t){r(R(e),"element","not an element"),r(R(t),"parentElement","not an element"),e.data("$ngAnimatePin",t)},push:function(e,t,n,r){return n=n||{},n.domOperation=r,T(e,t,n)},enabled
:function(e,t){var n=arguments.length;if(0===n)t=!!U;else if(R(e)){var r=y(e),i=q.get(r);1===n?t=!i:q.put(r,!t)}else t=U=!!e;return t}}}]}]).provider("$$animation",["$animateProvider",function(e){function t(e){return e.data("$$animationRunner")}var n=this.drivers=[];this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(e,r,s,o,u,a){function f(e){function t(e){if(e.processed)return e;e.processed=!0;var r=e.domNode,s=r.parentNode;i.put(r,e);for(var o
;s;){if(o=i.get(s)){o.processed||(o=t(o));break}s=s.parentNode}return(o||n).children.push(e),e}var n={children:[]},r,i=new u;for(r=0;r<e.length;r++){var s=e[r];i.put(s.domNode,e[r]={domNode:s.domNode,fn:s.fn,children:[]})}for(r=0;r<e.length;r++)t(e[r]);return function(e){var t=[],n=[],r;for(r=0;r<e.children.length;r++)n.push(e.children[r]);e=n.length;var i=0,s=[];for(r=0;r<n.length;r++){var o=n[r];0>=e&&(e=i,i=0,t.push(s),s=[]),s.push(o.fn),o.children.forEach(function(e){i++,n.push(e)}),e--}return s
.length&&t.push(s),t}(n)}var l=[],d=c(e);return function(u,c,v){function m(e){e=e.hasAttribute("ng-animate-ref")?[e]:e.querySelectorAll("[ng-animate-ref]");var t=[];return P(e,function(e){var n=e.getAttribute("ng-animate-ref");n&&n.length&&t.push(e)}),t}function g(e){var t=[],n={};P(e,function(e,r){var i=y(e.element),s=0<=["enter","move"].indexOf(e.event),i=e.structural?m(i):[];if(i.length){var o=s?"to":"from";P(i,function(e){var t=e.getAttribute("ng-animate-ref");n[t]=n[t]||{},n[t][o]={animationID
:r,element:D(e)}})}else t.push(e)});var r={},i={};return P(n,function(n,s){var o=n.from,u=n.to;if(o&&u){var a=e[o.animationID],f=e[u.animationID],l=o.animationID.toString();if(!i[l]){var c=i[l]={structural:!0,beforeStart:function(){a.beforeStart(),f.beforeStart()},close:function(){a.close(),f.close()},classes:b(a.classes,f.classes),from:a,to:f,anchors:[]};c.classes.length?t.push(c):(t.push(a),t.push(f))}i[l].anchors.push({out:o.element,"in":u.element})}else o=o?o.animationID:u.animationID,u=o.toString
(),r[u]||(r[u]=!0,t.push(e[o]))}),t}function b(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],r=0;r<e.length;r++){var i=e[r];if("ng-"!==i.substring(0,3))for(var s=0;s<t.length;s++)if(i===t[s]){n.push(i);break}}return n.join(" ")}function w(e){for(var t=n.length-1;0<=t;t--){var r=n[t];if(s.has(r)&&(r=s.get(r)(e)))return r}}function E(e,n){e.from&&e.to?(t(e.from.element).setHost(n),t(e.to.element).setHost(n)):t(e.element).setHost(n)}function S(){var e=t(u);!e||"leave"===c&&v.$$domOperationFired||e
.end()}function x(t){u.off("$destroy",S),u.removeData("$$animationRunner"),d(u,v),p(u,v),v.domOperation(),k&&e.removeClass(u,k),u.removeClass("ng-animate"),N.complete(!t)}v=h(v);var T=0<=["enter","move","leave"].indexOf(c),N=new o({end:function(){x()},cancel:function(){x(!0)}});if(!n.length)return x(),N;u.data("$$animationRunner",N);var C=i(u.attr("class"),i(v.addClass,v.removeClass)),k=v.tempClasses;k&&(C+=" "+k,v.tempClasses=null);var L;return T&&(L="ng-"+c+"-prepare",e.addClass(u,L)),l.push({element
:u,classes:C,event:c,structural:T,options:v,beforeStart:function(){u.addClass("ng-animate"),k&&e.addClass(u,k),L&&(e.removeClass(u,L),L=null)},close:x}),u.on("$destroy",S),1<l.length?N:(r.$$postDigest(function(){var e=[];P(l,function(n){t(n.element)?e.push(n):n.close()}),l.length=0;var n=g(e),r=[];P(n,function(e){r.push({domNode:y(e.from?e.from.element:e.element),fn:function(){e.beforeStart();var n,r=e.close;if(t(e.anchors?e.from.element||e.to.element:e.element)){var i=w(e);i&&(n=i.start)}n?(n=n(
),n.done(function(e){r(!e)}),E(e,n)):r()}})}),a(f(r))}),N)}}]}]).provider("$animateCss",["$animateProvider",function(e){var t=L(),n=L();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(e,r,i,u,a,f,l,m){function g(e,t){var n=e.parentNode;return(n.$$ngAnimateParentKey||(n.$$ngAnimateParentKey=++_))+"-"+e.getAttribute("class")+"-"+t}function b(i,s,u,a){var f;return 0<t.count(u)&&(f=n.get(u),f||(s=o(s,"-stagger"),r.addClass
(i,s),f=T(e,i,a),f.animationDuration=Math.max(f.animationDuration,0),f.transitionDuration=Math.max(f.transitionDuration,0),r.removeClass(i,s),n.put(u,f))),f||{}}function x(e){D.push(e),l.waitUntilQuiet(function(){t.flush(),n.flush();for(var e=a(),r=0;r<D.length;r++)D[r](e);D.length=0})}function N(n,r,i){return r=t.get(i),r||(r=T(e,n,Q),"infinite"===r.animationIterationCount&&(r.animationIterationCount=1)),t.put(i,r),n=r,i=n.animationDelay,r=n.transitionDelay,n.maxDelay=i&&r?Math.max(i,r):i||r,n.maxDuration=
Math.max(n.animationDuration*n.animationIterationCount,n.transitionDuration),n}var L=c(r),_=0,D=[];return function(e,n){function a(){c()}function l(){c(!0)}function c(t){if(!(Q||et&&Z)){Q=!0,Z=!1,j.$$skipPreparationClasses||r.removeClass(e,ht),r.removeClass(e,dt),E(I,!1),w(I,!1),P(q,function(e){I.style[e[0]]=""}),L(e,j),p(e,j),Object.keys(F).length&&P(F,function(e,t){e?I.style.setProperty(t,e):I.style.removeProperty(t)}),j.onDone&&j.onDone(),at&&at.length&&e.off(at.join(" "),D);var n=e.data("$$animateCss"
);n&&(u.cancel(n[0].timer),e.removeData("$$animateCss")),tt&&tt.complete(!t)}}function T(e){wt.blockTransition&&w(I,e),wt.blockKeyframeAnimation&&E(I,!!e)}function _(){return tt=new i({end:a,cancel:l}),x(O),c(),{$$willAnimate:!1,start:function(){return tt},end:a}}function D(e){e.stopPropagation();var t=e.originalEvent||e;e=t.$manualTimeStamp||Date.now(),t=parseFloat(t.elapsedTime.toFixed(3)),Math.max(e-ut,0)>=it&&t>=st&&(et=!0,c())}function B(){function t(){if(!Q){T(!1),P(q,function(e){I.style[e[0
]]=e[1]}),L(e,j),r.addClass(e,dt);if(wt.recalculateTimingStyles){pt=I.className+" "+ht,vt=g(I,pt),yt=N(I,pt,vt),bt=yt.maxDelay,rt=Math.max(bt,0),st=yt.maxDuration;if(0===st){c();return}wt.hasTransitions=0<yt.transitionDuration,wt.hasAnimations=0<yt.animationDuration}wt.applyAnimationDelay&&(bt="boolean"!=typeof j.delay&&C(j.delay)?parseFloat(j.delay):bt,rt=Math.max(bt,0),yt.animationDelay=bt,Et=[V,bt+"s"],q.push(Et),I.style[Et[0]]=Et[1]),it=1e3*rt,ot=1e3*st;if(j.easing){var t,i=j.easing;wt.hasTransitions&&
(t=U+"TimingFunction",q.push([t,i]),I.style[t]=i),wt.hasAnimations&&(t=W+"TimingFunction",q.push([t,i]),I.style[t]=i)}yt.transitionDuration&&at.push(z),yt.animationDuration&&at.push(X),ut=Date.now();var s=it+1.5*ot;t=ut+s;var i=e.data("$$animateCss")||[],o=!0;if(i.length){var a=i[0];(o=t>a.expectedEndTime)?u.cancel(a.timer):i.push(c)}o&&(s=u(n,s,!1),i[0]={timer:s,expectedEndTime:t},i.push(c),e.data("$$animateCss",i)),at.length&&e.on(at.join(" "),D),j.to&&(j.cleanupStyles&&A(F,I,Object.keys(j.to))
,v(e,j))}}function n(){var t=e.data("$$animateCss");if(t){for(var n=1;n<t.length;n++)t[n]();e.removeData("$$animateCss")}}if(!Q)if(I.parentNode){var i=function(e){if(et)Z&&e&&(Z=!1,c());else if(Z=!e,yt.animationDuration)if(e=E(I,Z),Z)q.push(e);else{var t=q,n=t.indexOf(e);0<=e&&t.splice(n,1)}},s=0<gt&&(yt.transitionDuration&&0===mt.transitionDuration||yt.animationDuration&&0===mt.animationDuration)&&Math.max(mt.animationDelay,mt.transitionDelay);s?u(t,Math.floor(s*gt*1e3),!1):t(),nt.resume=function(
){i(!0)},nt.pause=function(){i(!1)}}else c()}var j=n||{};j.$$prepared||(j=h(M(j)));var F={},I=y(e);if(!I||!I.parentNode||!m.enabled())return _();var q=[],R=e.attr("class"),K=s(j),Q,Z,et,tt,nt,rt,it,st,ot,ut,at=[];if(0===j.duration||!f.animations&&!f.transitions)return _();var ft=j.event&&H(j.event)?j.event.join(" "):j.event,lt="",ct="";ft&&j.structural?lt=o(ft,"ng-",!0):ft&&(lt=ft),j.addClass&&(ct+=o(j.addClass,"-add")),j.removeClass&&(ct.length&&(ct+=" "),ct+=o(j.removeClass,"-remove")),j.applyClassesEarly&&
ct.length&&L(e,j);var ht=[lt,ct].join(" ").trim(),pt=R+" "+ht,dt=o(ht,"-active"),R=K.to&&0<Object.keys(K.to).length;if(!(0<(j.keyframeStyle||"").length||R||ht))return _();var vt,mt;0<j.stagger?(K=parseFloat(j.stagger),mt={transitionDelay:K,animationDelay:K,transitionDuration:0,animationDuration:0}):(vt=g(I,pt),mt=b(I,ht,vt,G)),j.$$skipPreparationClasses||r.addClass(e,ht),j.transitionStyle&&(K=[U,j.transitionStyle],S(I,K),q.push(K)),0<=j.duration&&(K=0<I.style[U].length,K=k(j.duration,K),S(I,K),q.
push(K)),j.keyframeStyle&&(K=[W,j.keyframeStyle],S(I,K),q.push(K));var gt=mt?0<=j.staggerIndex?j.staggerIndex:t.count(vt):0;(ft=0===gt)&&!j.skipBlocking&&w(I,9999);var yt=N(I,pt,vt),bt=yt.maxDelay;rt=Math.max(bt,0),st=yt.maxDuration;var wt={};wt.hasTransitions=0<yt.transitionDuration,wt.hasAnimations=0<yt.animationDuration,wt.hasTransitionAll=wt.hasTransitions&&"all"==yt.transitionProperty,wt.applyTransitionDuration=R&&(wt.hasTransitions&&!wt.hasTransitionAll||wt.hasAnimations&&!wt.hasTransitions
),wt.applyAnimationDuration=j.duration&&wt.hasAnimations,wt.applyTransitionDelay=C(j.delay)&&(wt.applyTransitionDuration||wt.hasTransitions),wt.applyAnimationDelay=C(j.delay)&&wt.hasAnimations,wt.recalculateTimingStyles=0<ct.length;if(wt.applyTransitionDuration||wt.applyAnimationDuration)st=j.duration?parseFloat(j.duration):st,wt.applyTransitionDuration&&(wt.hasTransitions=!0,yt.transitionDuration=st,K=0<I.style[U+"Property"].length,q.push(k(st,K))),wt.applyAnimationDuration&&(wt.hasAnimations=!0
,yt.animationDuration=st,q.push([$,st+"s"]));if(0===st&&!wt.recalculateTimingStyles)return _();if(null!=j.delay){var Et;"boolean"!=typeof j.delay&&(Et=parseFloat(j.delay),rt=Math.max(Et,0)),wt.applyTransitionDelay&&q.push([J,Et+"s"]),wt.applyAnimationDelay&&q.push([V,Et+"s"])}return null==j.duration&&0<yt.transitionDuration&&(wt.recalculateTimingStyles=wt.recalculateTimingStyles||ft),it=1e3*rt,ot=1e3*st,j.skipBlocking||(wt.blockTransition=0<yt.transitionDuration,wt.blockKeyframeAnimation=0<yt.animationDuration&&0<
mt.animationDelay&&0===mt.animationDuration),j.from&&(j.cleanupStyles&&A(F,I,Object.keys(j.from)),d(e,j)),wt.blockTransition||wt.blockKeyframeAnimation?T(st):j.skipBlocking||w(I,!1),{$$willAnimate:!0,end:a,start:function(){if(!Q)return nt={end:a,cancel:l,resume:null,pause:null},tt=new i(nt),x(B),tt}}}}]}]).provider("$$animateCssDriver",["$$animationProvider",function(e){e.drivers.push("$$animateCssDriver"),this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite"
,"$document",function(e,t,n,r,i,s,o){function u(e){return e.replace(/\bng-\S+\b/g,"")}function a(e,t){return B(e)&&(e=e.split(" ")),B(t)&&(t=t.split(" ")),e.filter(function(e){return-1===t.indexOf(e)}).join(" ")}function f(t,r,i){function s(e){var t={},n=y(e).getBoundingClientRect();return P(["width","height","top","left"],function(e){var r=n[e];switch(e){case"top":r+=p.scrollTop;break;case"left":r+=p.scrollLeft}t[e]=Math.floor(r)+"px"}),t}function o(){var t=u(i.attr("class")||""),n=a(t,c),t=a(c,
t),n=e(l,{to:s(i),addClass:"ng-anchor-in "+n,removeClass:"ng-anchor-out "+t,delay:!0});return n.$$willAnimate?n:null}function f(){l.remove(),r.removeClass("ng-animate-shim"),i.removeClass("ng-animate-shim")}var l=D(y(r).cloneNode(!0)),c=u(l.attr("class")||"");r.addClass("ng-animate-shim"),i.addClass("ng-animate-shim"),l.addClass("ng-anchor"),d.append(l);var h;t=function(){var t=e(l,{addClass:"ng-anchor-out",delay:!0,from:s(r)});return t.$$willAnimate?t:null}();if(!t&&(h=o(),!h))return f();var v=t||
h;return{start:function(){function e(){r&&r.end()}var t,r=v.start();return r.done(function(){r=null;if(!h&&(h=o()))return r=h.start(),r.done(function(){r=null,f(),t.complete()}),r;f(),t.complete()}),t=new n({end:e,cancel:e})}}}function l(e,t,r,i){var s=h(e,O),o=h(t,O),u=[];P(i,function(e){(e=f(r,e.out,e["in"]))&&u.push(e)});if(s||o||0!==u.length)return{start:function(){function e(){P(t,function(e){e.end()})}var t=[];s&&t.push(s.start()),o&&t.push(o.start()),P(u,function(e){t.push(e.start())});var r=new 
n({end:e,cancel:e});return n.all(t,function(e){r.complete(e)}),r}}}function h(t){var n=t.element,r=t.options||{};return t.structural&&(r.event=t.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===t.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=x(r.event,r.preparationClasses)),t=e(n,r),t.$$willAnimate?t:null}if(!i.animations&&!i.transitions)return O;var p=o[0].body;t=y(r);var d=D(t.parentNode&&11===t.parentNode.nodeType||p.contains(t)?t:p);return c(s),function(e){return e.from&&
e.to?l(e.from,e.to,e.classes,e.anchors):h(e)}}]}]).provider("$$animateJs",["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,n,r){function i(n){n=H(n)?n:n.split(" ");for(var r=[],i={},s=0;s<n.length;s++){var o=n[s],u=e.$$registeredAnimations[o];u&&!i[o]&&(r.push(t.get(u)),i[o]=!0)}return r}var s=c(r);return function(e,t,r,o){function u(){o.domOperation(),s(e,o)}function a(e,t,r,i,s){switch(r){case"animate":t=[t,i.from,i.to,s];break;case"setClass":t=[t,d
,v,s];break;case"addClass":t=[t,d,s];break;case"removeClass":t=[t,v,s];break;default:t=[t,s]}t.push(i);if(e=e.apply(e,t))if(q(e.start)&&(e=e.start()),e instanceof n)e.done(s);else if(q(e))return e;return O}function f(e,t,r,i,s){var o=[];return P(i,function(i){var u=i[s];u&&o.push(function(){var i,s,o=!1,f=function(e){o||(o=!0,(s||O)(e),i.complete(!e))};return i=new n({end:function(){f()},cancel:function(){f(!0)}}),s=a(u,e,t,r,function(e){f(!1===e)}),i})}),o}function l(e,t,r,i,s){var o=f(e,t,r,i,s
);if(0===o.length){var u,a;"beforeSetClass"===s?(u=f(e,"removeClass",r,i,"beforeRemoveClass"),a=f(e,"addClass",r,i,"beforeAddClass")):"setClass"===s&&(u=f(e,"removeClass",r,i,"removeClass"),a=f(e,"addClass",r,i,"addClass")),u&&(o=o.concat(u)),a&&(o=o.concat(a))}if(0!==o.length)return function(e){var t=[];return o.length&&P(o,function(e){t.push(e())}),t.length?n.all(t,e):e(),function(e){P(t,function(t){e?t.cancel():t.end()})}}}var c=!1;3===arguments.length&&j(r)&&(o=r,r=null),o=h(o),r||(r=e.attr("class"
)||"",o.addClass&&(r+=" "+o.addClass),o.removeClass&&(r+=" "+o.removeClass));var d=o.addClass,v=o.removeClass,m=i(r),g,y;if(m.length){var b,w;"leave"==t?(w="leave",b="afterLeave"):(w="before"+t.charAt(0).toUpperCase()+t.substr(1),b=t),"enter"!==t&&"move"!==t&&(g=l(e,t,o,m,w)),y=l(e,t,o,m,b)}if(g||y){var E;return{$$willAnimate:!0,end:function(){return E?E.end():(c=!0,u(),p(e,o),E=new n,E.complete(!0)),E},start:function(){function t(t){c=!0,u(),p(e,o),E.complete(t)}if(E)return E;E=new n;var r,i=[];
return g&&i.push(function(e){r=g(e)}),i.length?i.push(function(e){u(),e(!0)}):u(),y&&i.push(function(e){r=y(e)}),E.setHost({end:function(){c||((r||O)(void 0),t(void 0))},cancel:function(){c||((r||O)(!0),t(!0))}}),n.chain(i,t),E}}}}}]}]).provider("$$animateJsDriver",["$$animationProvider",function(e){e.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(e,t){function n(t){return e(t.element,t.event,t.classes,t.options)}return function(e){if(!e.from||!e.to)return n
(e);var r=n(e.from),i=n(e.to);if(r||i)return{start:function(){function e(){return function(){P(n,function(e){e.end()})}}var n=[];r&&n.push(r.start()),i&&n.push(i.start()),t.all(n,function(e){s.complete(e)});var s=new t({end:e(),cancel:e()});return s}}}}]}])}(window,window.angular),define("angular-animate",["angular"],function(){}),!function(e,t){"function"==typeof define&&define.amd?define("angular-translate",[],function(){return t()}):"object"==typeof exports?module.exports=t():t()}(this,function(
){function e(e){"use strict";var t=e.storageKey(),n=e.storage(),r=function(){var r=e.preferredLanguage();angular.isString(r)?e.use(r):n.put(t,e.use())};r.displayName="fallbackFromIncorrectStorageValue",n?n.get(t)?e.use(n.get(t))["catch"](r):r():angular.isString(e.preferredLanguage())&&e.use(e.preferredLanguage())}function t(){"use strict";var e,t,n=null,r=!1,i=!1;t={sanitize:function(e,t){return"text"===t&&(e=o(e)),e},escape:function(e,t){return"text"===t&&(e=s(e)),e},sanitizeParameters:function(
e,t){return"params"===t&&(e=u(e,o)),e},escapeParameters:function(e,t){return"params"===t&&(e=u(e,s)),e}},t.escaped=t.escapeParameters,this.addStrategy=function(e,n){return t[e]=n,this},this.removeStrategy=function(e){return delete t[e],this},this.useStrategy=function(e){return r=!0,n=e,this},this.$get=["$injector","$log",function(s,o){var u={},a=function(e,n,r){return angular.forEach(r,function(r){if(angular.isFunction(r))e=r(e,n);else if(angular.isFunction(t[r]))e=t[r](e,n);else{if(!angular.isString
(t[r]))throw new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+r+"'");if(!u[t[r]])try{u[t[r]]=s.get(t[r])}catch(i){throw u[t[r]]=function(){},new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+r+"'")}e=u[t[r]](e,n)}}),e},f=function(){r||i||(o.warn("pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details."
),i=!0)};return s.has("$sanitize")&&(e=s.get("$sanitize")),{useStrategy:function(e){return function(t){e.useStrategy(t)}}(this),sanitize:function(e,t,r){if(n||f(),arguments.length<3&&(r=n),!r)return e;var i=angular.isArray(r)?r:[r];return a(e,t,i)}}}];var s=function(e){var t=angular.element("<div></div>");return t.text(e),t.html()},o=function(t){if(!e)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as 'escape'."
);return e(t)},u=function(e,t){if(angular.isObject(e)){var n=angular.isArray(e)?[]:{};return angular.forEach(e,function(e,r){n[r]=u(e,t)}),n}return angular.isNumber(e)?e:t(e)}}function n(e,t,n,r){"use strict";var i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b={},w=[],E=e,S=[],x="translate-cloak",T=!1,N=!1,C=".",k=!1,L=0,A=!0,O="default",M={"default":function(e){return(e||"").split("-").join("_")},java:function(e){var t=(e||"").split("-").join("_"),n=t.split("_");return n.length>1?n[0].toLowerCase()+"_"+n[1].toUpperCase
():t},bcp47:function(e){var t=(e||"").split("_").join("-"),n=t.split("-");return n.length>1?n[0].toLowerCase()+"-"+n[1].toUpperCase():t}},_="2.9.0",D=function(){if(angular.isFunction(r.getLocale))return r.getLocale();var e,n,i=t.$get().navigator,s=["language","browserLanguage","systemLanguage","userLanguage"];if(angular.isArray(i.languages))for(e=0;e<i.languages.length;e++)if(n=i.languages[e],n&&n.length)return n;for(e=0;e<s.length;e++)if(n=i[s[e]],n&&n.length)return n;return null};D.displayName="angular-translate/service: getFirstBrowserLanguage"
;var P=function(){var e=D()||"";return M[O]&&(e=M[O](e)),e};P.displayName="angular-translate/service: getLocale";var H=function(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1},B=function(){return this.toString().replace(/^\s+|\s+$/g,"")},j=function(e){if(e){for(var t=[],n=angular.lowercase(e),r=0,i=w.length;i>r;r++)t.push(angular.lowercase(w[r]));if(H(t,n)>-1)return e;if(s){var o;for(var u in s){var a=!1,f=Object.prototype.hasOwnProperty.call(s,u)&&angular.lowercase(u)===angular
.lowercase(e);if("*"===u.slice(-1)&&(a=u.slice(0,-1)===e.slice(0,u.length-1)),(f||a)&&(o=s[u],H(t,angular.lowercase(o))>-1))return o}}var l=e.split("_");return l.length>1&&H(t,angular.lowercase(l[0]))>-1?l[0]:void 0}},F=function(e,t){if(!e&&!t)return b;if(e&&!t){if(angular.isString(e))return b[e]}else angular.isObject(b[e])||(b[e]={}),angular.extend(b[e],I(t));return this};this.translations=F,this.cloakClassName=function(e){return e?(x=e,this):x},this.nestedObjectDelimeter=function(e){return e?(C=
e,this):C};var I=function(e,t,n,r){var i,s,o,u;t||(t=[]),n||(n={});for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&(u=e[i],angular.isObject(u)?I(u,t.concat(i),n,i):(s=t.length?""+t.join(C)+C+i:i,t.length&&i===r&&(o=""+t.join(C),n[o]="@:"+s),n[s]=u));return n};I.displayName="flatObject",this.addInterpolation=function(e){return S.push(e),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation("$translateMessageFormatInterpolation")},this.useInterpolation=function(e){return p=
e,this},this.useSanitizeValueStrategy=function(e){return n.useStrategy(e),this},this.preferredLanguage=function(e){return e?(q(e),this):i};var q=function(e){return e&&(i=e),i};this.translationNotFoundIndicator=function(e){return this.translationNotFoundIndicatorLeft(e),this.translationNotFoundIndicatorRight(e),this},this.translationNotFoundIndicatorLeft=function(e){return e?(m=e,this):m},this.translationNotFoundIndicatorRight=function(e){return e?(g=e,this):g},this.fallbackLanguage=function(e){return R
(e),this};var R=function(e){return e?(angular.isString(e)?(u=!0,o=[e]):angular.isArray(e)&&(u=!1,o=e),angular.isString(i)&&H(o,i)<0&&o.push(i),this):u?o[0]:o};this.use=function(e){if(e){if(!b[e]&&!d)throw new Error("$translateProvider couldn't find translationTable for langKey: '"+e+"'");return a=e,this}return a};var U=function(e){return e?(E=e,this):c?c+E:E};this.storageKey=U,this.useUrlLoader=function(e,t){return this.useLoader("$translateUrlLoader",angular.extend({url:e},t))},this.useStaticFilesLoader=
function(e){return this.useLoader("$translateStaticFilesLoader",e)},this.useLoader=function(e,t){return d=e,v=t||{},this},this.useLocalStorage=function(){return this.useStorage("$translateLocalStorage")},this.useCookieStorage=function(){return this.useStorage("$translateCookieStorage")},this.useStorage=function(e){return l=e,this},this.storagePrefix=function(e){return e?(c=e,this):e},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog"
)},this.useMissingTranslationHandler=function(e){return h=e,this},this.usePostCompiling=function(e){return T=!!e,this},this.forceAsyncReload=function(e){return N=!!e,this},this.uniformLanguageTag=function(e){return e?angular.isString(e)&&(e={standard:e}):e={},O=e.standard,this},this.determinePreferredLanguage=function(e){var t=e&&angular.isFunction(e)?e():P();return i=w.length?j(t)||t:t,this},this.registerAvailableLanguageKeys=function(e,t){return e?(w=e,t&&(s=t),this):w},this.useLoaderCache=function(
e){return e===!1?y=void 0:e===!0?y=!0:"undefined"==typeof e?y="$translationCache":e&&(y=e),this},this.directivePriority=function(e){return void 0===e?L:(L=e,this)},this.statefulFilter=function(e){return void 0===e?A:(A=e,this)},this.$get=["$log","$injector","$rootScope","$q",function(e,t,n,r){var s,c,w,O=t.get(p||"$translateDefaultInterpolation"),M=!1,D={},P={},W=function(e,t,n,u,f){var h=f&&f!==a?j(f)||f:a;if(angular.isArray(e)){var p=function(e){for(var i={},s=[],o=function(e){var s=r.defer(),o=
function(t){i[e]=t,s.resolve([e,t])};return W(e,t,n,u,f).then(o,o),s.promise},a=0,l=e.length;l>a;a++)s.push(o(e[a]));return r.all(s).then(function(){return i})};return p(e)}var d=r.defer();e&&(e=B.apply(e));var v=function(){var e=i?P[i]:P[h];if(c=0,l&&!e){var t=s.get(E);if(e=P[t],o&&o.length){var n=H(o,t);c=0===n?1:0,H(o,i)<0&&o.push(i)}}return e}();if(v){var m=function(){f||(h=a),ut(e,t,n,u,h).then(d.resolve,d.reject)};m.displayName="promiseResolved",v["finally"](m,d.reject)}else ut(e,t,n,u,h).then
(d.resolve,d.reject);return d.promise},X=function(e){return m&&(e=[m,e].join(" ")),g&&(e=[e,g].join(" ")),e},V=function(e){a=e,l&&s.put(W.storageKey(),a),n.$emit("$translateChangeSuccess",{language:e}),O.setLocale(a);var t=function(e,t){D[t].setLocale(a)};t.displayName="eachInterpolatorLocaleSetter",angular.forEach(D,t),n.$emit("$translateChangeEnd",{language:e})},$=function(e){if(!e)throw"No language key specified for loading.";var i=r.defer();n.$emit("$translateLoadingStart",{language:e}),M=!0;
var s=y;"string"==typeof s&&(s=t.get(s));var o=angular.extend({},v,{key:e,$http:angular.extend({},{cache:s},v.$http)}),u=function(t){var r={};n.$emit("$translateLoadingSuccess",{language:e}),angular.isArray(t)?angular.forEach(t,function(e){angular.extend(r,I(e))}):angular.extend(r,I(t)),M=!1,i.resolve({key:e,table:r}),n.$emit("$translateLoadingEnd",{language:e})};u.displayName="onLoaderSuccess";var a=function(e){n.$emit("$translateLoadingError",{language:e}),i.reject(e),n.$emit("$translateLoadingEnd"
,{language:e})};return a.displayName="onLoaderError",t.get(d)(o).then(u,a),i.promise};if(l&&(s=t.get(l),!s.get||!s.put))throw new Error("Couldn't use storage '"+l+"', missing get() or put() method!");if(S.length){var Y=function(e){var n=t.get(e);n.setLocale(i||a),D[n.getInterpolationIdentifier()]=n};Y.displayName="interpolationFactoryAdder",angular.forEach(S,Y)}var Z=function(e){var t=r.defer();if(Object.prototype.hasOwnProperty.call(b,e))t.resolve(b[e]);else if(P[e]){var n=function(e){F(e.key,e.
table),t.resolve(e.table)};n.displayName="translationTableResolver",P[e].then(n,t.reject)}else t.reject();return t.promise},et=function(e,t,n,i){var s=r.defer(),o=function(r){if(Object.prototype.hasOwnProperty.call(r,t)){i.setLocale(e);var o=r[t];"@:"===o.substr(0,2)?et(e,o.substr(2),n,i).then(s.resolve,s.reject):s.resolve(i.interpolate(r[t],n)),i.setLocale(a)}else s.reject()};return o.displayName="fallbackTranslationResolver",Z(e).then(o,s.reject),s.promise},tt=function(e,t,n,r){var i,s=b[e];if(
s&&Object.prototype.hasOwnProperty.call(s,t)){if(r.setLocale(e),i=r.interpolate(s[t],n),"@:"===i.substr(0,2))return tt(e,i.substr(2),n,r);r.setLocale(a)}return i},nt=function(e,n){if(h){var r=t.get(h)(e,a,n);return void 0!==r?r:e}return e},rt=function(e,t,n,i,s){var u=r.defer();if(e<o.length){var a=o[e];et(a,t,n,i).then(u.resolve,function(){rt(e+1,t,n,i,s).then(u.resolve)})}else s?u.resolve(s):u.resolve(nt(t,n));return u.promise},it=function(e,t,n,r){var i;if(e<o.length){var s=o[e];i=tt(s,t,n,r),
i||(i=it(e+1,t,n,r))}return i},st=function(e,t,n,r){return rt(w>0?w:c,e,t,n,r)},ot=function(e,t,n){return it(w>0?w:c,e,t,n)},ut=function(e,t,n,i,s){var u=r.defer(),a=s?b[s]:b,f=n?D[n]:O;if(a&&Object.prototype.hasOwnProperty.call(a,e)){var l=a[e];"@:"===l.substr(0,2)?W(l.substr(2),t,n,i,s).then(u.resolve,u.reject):u.resolve(f.interpolate(l,t))}else{var c;h&&!M&&(c=nt(e,t)),s&&o&&o.length?st(e,t,f,i).then(function(e){u.resolve(e)},function(e){u.reject(X(e))}):h&&!M&&c?i?u.resolve(i):u.resolve(c):i?
u.resolve(i):u.reject(X(e))}return u.promise},at=function(e,t,n,r){var i,s=r?b[r]:b,u=O;if(D&&Object.prototype.hasOwnProperty.call(D,n)&&(u=D[n]),s&&Object.prototype.hasOwnProperty.call(s,e)){var a=s[e];i="@:"===a.substr(0,2)?at(a.substr(2),t,n,r):u.interpolate(a,t)}else{var f;h&&!M&&(f=nt(e,t)),r&&o&&o.length?(c=0,i=ot(e,t,u)):i=h&&!M&&f?f:X(e)}return i},ft=function(e){f===e&&(f=void 0),P[e]=void 0};W.preferredLanguage=function(e){return e&&q(e),i},W.cloakClassName=function(){return x},W.nestedObjectDelimeter=
function(){return C},W.fallbackLanguage=function(e){if(void 0!==e&&null!==e){if(R(e),d&&o&&o.length)for(var t=0,n=o.length;n>t;t++)P[o[t]]||(P[o[t]]=$(o[t]));W.use(W.use())}return u?o[0]:o},W.useFallbackLanguage=function(e){if(void 0!==e&&null!==e)if(e){var t=H(o,e);t>-1&&(w=t)}else w=0},W.proposedLanguage=function(){return f},W.storage=function(){return s},W.negotiateLocale=j,W.use=function(e){if(!e)return a;var t=r.defer();n.$emit("$translateChangeStart",{language:e});var i=j(e);return i&&(e=i)
,!N&&b[e]||!d||P[e]?f===e&&P[e]?P[e].then(function(e){return t.resolve(e.key),e},function(e){return t.reject(e),r.reject(e)}):(t.resolve(e),V(e)):(f=e,P[e]=$(e).then(function(n){return F(n.key,n.table),t.resolve(n.key),f===e&&V(n.key),n},function(e){return n.$emit("$translateChangeError",{language:e}),t.reject(e),n.$emit("$translateChangeEnd",{language:e}),r.reject(e)}),P[e]["finally"](function(){ft(e)})),t.promise},W.storageKey=function(){return U()},W.isPostCompilingEnabled=function(){return T}
,W.isForceAsyncReloadEnabled=function(){return N},W.refresh=function(e){function t(){s.resolve(),n.$emit("$translateRefreshEnd",{language:e})}function i(){s.reject(),n.$emit("$translateRefreshEnd",{language:e})}if(!d)throw new Error("Couldn't refresh translation table, no loader registered!");var s=r.defer();if(n.$emit("$translateRefreshStart",{language:e}),e)if(b[e]){var u=function(n){F(n.key,n.table),e===a&&V(a),t()};u.displayName="refreshPostProcessor",$(e).then(u,i)}else i();else{var f=[],l={
};if(o&&o.length)for(var c=0,h=o.length;h>c;c++)f.push($(o[c])),l[o[c]]=!0;a&&!l[a]&&f.push($(a));var p=function(e){b={},angular.forEach(e,function(e){F(e.key,e.table)}),a&&V(a),t()};p.displayName="refreshPostProcessor",r.all(f).then(p,i)}return s.promise},W.instant=function(e,t,n,r){var s=r&&r!==a?j(r)||r:a;if(null===e||angular.isUndefined(e))return e;if(angular.isArray(e)){for(var u={},f=0,l=e.length;l>f;f++)u[e[f]]=W.instant(e[f],t,n,r);return u}if(angular.isString(e)&&e.length<1)return e;e&&(
e=B.apply(e));var c,p=[];i&&p.push(i),s&&p.push(s),o&&o.length&&(p=p.concat(o));for(var d=0,v=p.length;v>d;d++){var y=p[d];if(b[y]&&"undefined"!=typeof b[y][e]&&(c=at(e,t,n,s)),"undefined"!=typeof c)break}return c||""===c||(m||g?c=X(e):(c=O.interpolate(e,t),h&&!M&&(c=nt(e,t)))),c},W.versionInfo=function(){return _},W.loaderCache=function(){return y},W.directivePriority=function(){return L},W.statefulFilter=function(){return A},W.isReady=function(){return k};var lt=r.defer();lt.promise.then(function(
){k=!0}),W.onReady=function(e){var t=r.defer();return angular.isFunction(e)&&t.promise.then(e),k?t.resolve():lt.promise.then(t.resolve),t.promise};var ct=n.$on("$translateReady",function(){lt.resolve(),ct(),ct=null}),ht=n.$on("$translateChangeEnd",function(){lt.resolve(),ht(),ht=null});if(d){if(angular.equals(b,{})&&W.use()&&W.use(W.use()),o&&o.length)for(var pt=function(e){return F(e.key,e.table),n.$emit("$translateChangeEnd",{language:e.key}),e},dt=0,vt=o.length;vt>dt;dt++){var mt=o[dt];(N||!b[
mt])&&(P[mt]=$(mt).then(pt))}}else n.$emit("$translateReady",{language:W.use()});return W}]}function r(e,t){"use strict";var n,r={},i="default";return r.setLocale=function(e){n=e},r.getInterpolationIdentifier=function(){return i},r.useSanitizeValueStrategy=function(e){return t.useStrategy(e),this},r.interpolate=function(n,r){r=r||{},r=t.sanitize(r,"params");var i=e(n)(r);return i=t.sanitize(i,"text")},r}function i(e,t,n,r,i,o){"use strict";var u=function(){return this.toString().replace(/^\s+|\s+$/g
,"")};return{restrict:"AE",scope:!0,priority:e.directivePriority(),compile:function(t,a){var f=a.translateValues?a.translateValues:void 0,l=a.translateInterpolation?a.translateInterpolation:void 0,p=t[0].outerHTML.match(/translate-value-+/i),v="^(.*)("+n.startSymbol()+".*"+n.endSymbol()+")(.*)",m="^(.*)"+n.startSymbol()+"(.*)"+n.endSymbol()+"(.*)";return function(t,y,b){t.interpolateParams={},t.preText="",t.postText="",t.translateNamespace=s(t);var w={},E=function(e,n,r){if(n.translateValues&&angular
.extend(e,i(n.translateValues)(t.$parent)),p)for(var s in r)if(Object.prototype.hasOwnProperty.call(n,s)&&"translateValue"===s.substr(0,14)&&"translateValues"!==s){var o=angular.lowercase(s.substr(14,1))+s.substr(15);e[o]=r[s]}},S=function(e){if(angular.isFunction(S._unwatchOld)&&(S._unwatchOld(),S._unwatchOld=void 0),angular.equals(e,"")||!angular.isDefined(e)){var r=u.apply(y.text()),i=r.match(v);if(angular.isArray(i)){t.preText=i[1],t.postText=i[3],w.translate=n(i[2])(t.$parent);var s=r.match(
m);angular.isArray(s)&&s[2]&&s[2].length&&(S._unwatchOld=t.$watch(s[2],function(e){w.translate=e,A()}))}else w.translate=r?r:void 0}else w.translate=e;A()},x=function(e){b.$observe(e,function(t){w[e]=t,A()})};E(t.interpolateParams,b,a);var T=!0;b.$observe("translate",function(e){"undefined"==typeof e?S(""):""===e&&T||(w.translate=e,A()),T=!1});for(var N in b)b.hasOwnProperty(N)&&"translateAttr"===N.substr(0,13)&&x(N);if(b.$observe("translateDefault",function(e){t.defaultText=e,A()}),f&&b.$observe
("translateValues",function(e){e&&t.$parent.$watch(function(){angular.extend(t.interpolateParams,i(e)(t.$parent))})}),p){var C=function(e){b.$observe(e,function(n){var r=angular.lowercase(e.substr(14,1))+e.substr(15);t.interpolateParams[r]=n})};for(var L in b)Object.prototype.hasOwnProperty.call(b,L)&&"translateValue"===L.substr(0,14)&&"translateValues"!==L&&C(L)}var A=function(){for(var e in w)w.hasOwnProperty(e)&&void 0!==w[e]&&O(e,w[e],t,t.interpolateParams,t.defaultText,t.translateNamespace)}
,O=function(t,n,r,i,s,o){n?(o&&"."===n.charAt(0)&&(n=o+n),e(n,i,l,s,r.translateLanguage).then(function(e){M(e,r,!0,t)},function(e){M(e,r,!1,t)})):M(n,r,!1,t)},M=function(t,n,i,s){if("translate"===s){i||"undefined"==typeof n.defaultText||(t=n.defaultText),y.empty().append(n.preText+t+n.postText);var o=e.isPostCompilingEnabled(),u="undefined"!=typeof a.translateCompile,f=u&&"false"!==a.translateCompile;(o&&!u||f)&&r(y.contents())(n)}else{i||"undefined"==typeof n.defaultText||(t=n.defaultText);var l=
b.$attr[s];"data-"===l.substr(0,5)&&(l=l.substr(5)),l=l.substr(15),y.attr(l,t)}};(f||p||b.translateDefault)&&t.$watch("interpolateParams",A,!0),t.$watch("translateLanguage",A);var _=o.$on("$translateChangeSuccess",A);y.text().length?S(b.translate?b.translate:""):b.translate&&S(b.translate),A(),t.$on("$destroy",_)}}}}function s(e){"use strict";return e.translateNamespace?e.translateNamespace:e.$parent?s(e.$parent):void 0}function o(e,t){"use strict";return{compile:function(n){var r=function(){n.addClass
(e.cloakClassName())},i=function(){n.removeClass(e.cloakClassName())};return e.onReady(function(){i()}),r(),function(n,s,o){o.translateCloak&&o.translateCloak.length&&(o.$observe("translateCloak",function(t){e(t).then(i,r)}),t.$on("$translateChangeSuccess",function(){e(o.translateCloak).then(i,r)}))}}}}function u(){"use strict";return{restrict:"A",scope:!0,compile:function(){return{pre:function(e,t,n){e.translateNamespace=s(e),e.translateNamespace&&"."===n.translateNamespace.charAt(0)?e.translateNamespace+=
n.translateNamespace:e.translateNamespace=n.translateNamespace}}}}}function s(e){"use strict";return e.translateNamespace?e.translateNamespace:e.$parent?s(e.$parent):void 0}function a(){"use strict";return{restrict:"A",scope:!0,compile:function(){return function(e,t,n){n.$observe("translateLanguage",function(t){e.translateLanguage=t})}}}}function f(e,t){"use strict";var n=function(n,r,i,s){return angular.isObject(r)||(r=e(r)(this)),t.instant(n,r,i,s)};return t.statefulFilter()&&(n.$stateful=!0),n
}function l(e){"use strict";return e("translations")}return angular.module("pascalprecht.translate",["ng"]).run(e),e.$inject=["$translate"],e.displayName="runTranslate",angular.module("pascalprecht.translate").provider("$translateSanitization",t),angular.module("pascalprecht.translate").constant("pascalprechtTranslateOverrider",{}).provider("$translate",n),n.$inject=["$STORAGE_KEY","$windowProvider","$translateSanitizationProvider","pascalprechtTranslateOverrider"],n.displayName="displayName",angular
.module("pascalprecht.translate").factory("$translateDefaultInterpolation",r),r.$inject=["$interpolate","$translateSanitization"],r.displayName="$translateDefaultInterpolation",angular.module("pascalprecht.translate").constant("$STORAGE_KEY","NG_TRANSLATE_LANG_KEY"),angular.module("pascalprecht.translate").directive("translate",i),i.$inject=["$translate","$q","$interpolate","$compile","$parse","$rootScope"],i.displayName="translateDirective",angular.module("pascalprecht.translate").directive("translateCloak"
,o),o.$inject=["$translate","$rootScope"],o.displayName="translateCloakDirective",angular.module("pascalprecht.translate").directive("translateNamespace",u),u.displayName="translateNamespaceDirective",angular.module("pascalprecht.translate").directive("translateLanguage",a),a.displayName="translateLanguageDirective",angular.module("pascalprecht.translate").filter("translate",f),f.$inject=["$parse","$translate"],f.displayName="translateFilterFactory",angular.module("pascalprecht.translate").factory
("$translationCache",l),l.$inject=["$cacheFactory"],l.displayName="$translationCache","pascalprecht.translate"}),function(){function l(e,t,n){var r=t&&n||0,i=0;t=t||[],e.toLowerCase().replace(/[0-9a-f]{2}/g,function(e){i<16&&(t[r+i++]=a[e])});while(i<16)t[r+i++]=0;return t}function c(e,t){var n=t||0,r=u;return r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]}function g(e,
t,n){var r=t&&n||0,i=t||[];e=e||{};var s=e.clockseq!=null?e.clockseq:d,o=e.msecs!=null?e.msecs:(new Date).getTime(),u=e.nsecs!=null?e.nsecs:m+1,a=o-v+(u-m)/1e4;a<0&&e.clockseq==null&&(s=s+1&16383),(a<0||o>v)&&e.nsecs==null&&(u=0);if(u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");v=o,m=u,d=s,o+=122192928e5;var f=((o&268435455)*1e4+u)%4294967296;i[r++]=f>>>24&255,i[r++]=f>>>16&255,i[r++]=f>>>8&255,i[r++]=f&255;var l=o/4294967296*1e4&268435455;i[r++]=l>>>8&255,i[r++]=l&255
,i[r++]=l>>>24&15|16,i[r++]=l>>>16&255,i[r++]=s>>>8|128,i[r++]=s&255;var h=e.node||p;for(var g=0;g<6;g++)i[r+g]=h[g];return t?t:c(i)}function y(e,n,r){var i=n&&r||0;typeof e=="string"&&(n=e=="binary"?new o(16):null,e=null),e=e||{};var s=e.random||(e.rng||t)();s[6]=s[6]&15|64,s[8]=s[8]&63|128;if(n)for(var u=0;u<16;u++)n[i+u]=s[u];return n||c(s)}var e=this,t;if(typeof require=="function")try{var n=require("crypto").randomBytes;t=n&&function(){return n(16)}}catch(r){}if(!t&&e.crypto&&crypto.getRandomValues
){var i=new Uint8Array(16);t=function(){return crypto.getRandomValues(i),i}}if(!t){var s=new Array(16);t=function(){for(var e=0,t;e<16;e++)(e&3)===0&&(t=Math.random()*4294967296),s[e]=t>>>((e&3)<<3)&255;return s}}var o=typeof Buffer=="function"?Buffer:Array,u=[],a={};for(var f=0;f<256;f++)u[f]=(f+256).toString(16).substr(1),a[u[f]]=f;var h=t(),p=[h[0]|1,h[1],h[2],h[3],h[4],h[5]],d=(h[6]<<8|h[7])&16383,v=0,m=0,b=y;b.v1=g,b.v4=y,b.parse=l,b.unparse=c,b.BufferClass=o;if(typeof define=="function"&&define
.amd)define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/components/uuid/uuid",[],function(){return b});else if(typeof module!="undefined"&&module.exports)module.exports=b;else{var w=e.uuid;b.noConflict=function(){return e.uuid=w,b},e.uuid=b}}.call(this),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/components/dcx-js/src/AdobeDCXError",["require","exports","module"],function(e,t,n){"use strict";function r(e,t,n){Error.call(this),this.code=e,this.message="["+
e+"] "+t,this.underlyingError=n}r.prototype=new Error,r.prototype.name="AdobeDCXError",delete r.prototype.stack,r.INVALID_JSON="INVALID_JSON",r.READ_ONLY="READ_ONLY",r.INVALID_PARAMS="",r.INVALID_DATA="INVALID_DATA",r.DUPLICATE_VALUE="DUPLICATE_VALUE",r.NO_LOCAL_STORAGE="NO_LOCAL_STORAGE",r.INVALID_STATE="INVALID_STATE",r.DELETED_COMPOSITE="DELETED_COMPOSITE",r.UNEXPECTED_RESPONSE="UNEXPECTED_RESPONSE",r.NETWORK_ERROR="NETWORK_ERROR",r.COMPONENT_DOWNLOAD_ERROR="COMPONENT_DOWNLOAD_ERROR",r.COMPONENT_UPLOAD_ERROR="COMPONENT_UPLOAD_ERROR"
,r.COMPONENT_MODIFIED_ERROR="COMPONENT_MODIFIED_ERROR",r.UPDATE_CONFLICT="UPDATE_CONFLICT",r.NO_COMPOSITE="NO_COMPOSITE",r.ALREADY_EXISTS="ALREADY_EXISTS",r.SERVICE_IS_INACTIVE="SERVICE_IS_INACTIVE",r.EXCEEDS_QUOTA="EXCEEDS_QUOTA",r.NOT_IMPLEMENTED="NOT_IMPLEMENTED",r.RETRYABLE_SERVER_ERROR="RETRYABLE_SERVER_ERROR",r.TIMED_OUT="TIMED_OUT",r.UNEXPECTED="UNEXPECTED",r.TERMINATED_INPUTSTREAM="TERMINATED_INPUTSTREAM",r.WRONG_ENDPOINT="WRONG_ENDPOINT",r.OUT_OF_SPACE="ENOSPC";var i={};return i[r.SERVICE_IS_INACTIVE
]=1,i[r.NOT_IMPLEMENTED]=1,i[r.EXCEEDS_QUOTA]=1,i[r.RETRYABLE_SERVER_ERROR]=1,i[r.TIMED_OUT]=1,i[r.TERMINATED_INPUTSTREAM]=1,i[r.WRONG_ENDPOINT]=1,i[r.OUT_OF_SPACE]=1,r.wrapError=function(e,t,n,s){if(!n||!i[n.code]){if(s){var o=s.statusCode;o>=500&&o<600&&(o===501?(e=r.NOT_IMPLEMENTED,t="Unimplemented request"):o===507?(e=r.EXCEEDS_QUOTA,t="Quota exceeded"):(e=r.RETRYABLE_SERVER_ERROR,t="Server error"))}n=new r(e,t,n)}return s&&(n.response=s),n},r.networkError=function(e,t,n){return r.wrapError(r
.NETWORK_ERROR,e,t,n)},r.unexpectedResponse=function(e,t,n){return r.wrapError(r.UNEXPECTED_RESPONSE,e,t,n)},r}),function(){function l(e,t,n){var r=t&&n||0,i=0;t=t||[],e.toLowerCase().replace(/[0-9a-f]{2}/g,function(e){i<16&&(t[r+i++]=a[e])});while(i<16)t[r+i++]=0;return t}function c(e,t){var n=t||0,r=u;return r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]}function g(e,
t,n){var r=t&&n||0,i=t||[];e=e||{};var s=e.clockseq!=null?e.clockseq:d,o=e.msecs!=null?e.msecs:(new Date).getTime(),u=e.nsecs!=null?e.nsecs:m+1,a=o-v+(u-m)/1e4;a<0&&e.clockseq==null&&(s=s+1&16383),(a<0||o>v)&&e.nsecs==null&&(u=0);if(u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");v=o,m=u,d=s,o+=122192928e5;var f=((o&268435455)*1e4+u)%4294967296;i[r++]=f>>>24&255,i[r++]=f>>>16&255,i[r++]=f>>>8&255,i[r++]=f&255;var l=o/4294967296*1e4&268435455;i[r++]=l>>>8&255,i[r++]=l&255
,i[r++]=l>>>24&15|16,i[r++]=l>>>16&255,i[r++]=s>>>8|128,i[r++]=s&255;var h=e.node||p;for(var g=0;g<6;g++)i[r+g]=h[g];return t?t:c(i)}function y(e,n,r){var i=n&&r||0;typeof e=="string"&&(n=e=="binary"?new o(16):null,e=null),e=e||{};var s=e.random||(e.rng||t)();s[6]=s[6]&15|64,s[8]=s[8]&63|128;if(n)for(var u=0;u<16;u++)n[i+u]=s[u];return n||c(s)}var e=this,t;if(typeof require=="function")try{var n=require("crypto").randomBytes;t=n&&function(){return n(16)}}catch(r){}if(!t&&e.crypto&&crypto.getRandomValues
){var i=new Uint8Array(16);t=function(){return crypto.getRandomValues(i),i}}if(!t){var s=new Array(16);t=function(){for(var e=0,t;e<16;e++)(e&3)===0&&(t=Math.random()*4294967296),s[e]=t>>>((e&3)<<3)&255;return s}}var o=typeof Buffer=="function"?Buffer:Array,u=[],a={};for(var f=0;f<256;f++)u[f]=(f+256).toString(16).substr(1),a[u[f]]=f;var h=t(),p=[h[0]|1,h[1],h[2],h[3],h[4],h[5]],d=(h[6]<<8|h[7])&16383,v=0,m=0,b=y;b.v1=g,b.v4=y,b.parse=l,b.unparse=c,b.BufferClass=o;if(typeof define=="function"&&define
.amd)define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/components/dcx-js/src/components/uuid/uuid",[],function(){return b});else if(typeof module!="undefined"&&module.exports)module.exports=b;else{var w=e.uuid;b.noConflict=function(){return e.uuid=w,b},e.uuid=b}}.call(this);if(typeof nodeRequire!="function")var nodeRequire=require;define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/components/dcx-js/src/AdobeDCXUtil",["require","exports","module","./components/uuid/uuid"
],function(e,t,n){"use strict";var r;try{r=e("./components/uuid/uuid")}catch(i){r=nodeRequire("node-uuid")}var s;t._setLogCallback=function(e){s=e},t.merge=function(e){var t,n;for(t=1;t<arguments.length;++t){var r=arguments[t];if(typeof r=="object")for(n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e},t.parentDirectory=function(e){var t=e.split("/");return t.pop(),t.join("/")},t.filePathComponents=function(e){var t=e.split("/"),n=t.pop(),r=n.split("."),i=r.length>1?r.pop():null;return{directory:t
.join("/"),fileName:n,baseName:r.join("."),extension:i}},t.appendPathElements=function(){var e=[],t,n=arguments.length;for(t=0;t<n;t++){var r=arguments[t];typeof r=="string"&&r!==""&&((t!==0||r.length===1)&&r.charAt(0)==="/"&&(r=r.slice(1)),t!==n-1&&r.charAt(r.length-1)==="/"&&(r=r.slice(0,r.length-1)),e.push(r))}return e.join("/")};var o=/^[^\u0000-\u001F\u0022\u002A\u003A\u003C\u003E\u003F\u005C\u007F]*[^\u0000-\u001F\u0022\u002A\u002E\u003A\u003C\u003E\u003F\u005C\u007F]{1}$/;t.isValidPath=function(
e,t){try{if(e.length>65535)return!1;var n=(t?e.slice(1):e).split("/");if(!n||n.length===0)return!1;var r,i=n.length;for(r=0;r<i;r++){var s=n[r];if(s.length>255||!o.test(n[r]))return!1}if(t&&n.length>0){var u=n[0];if(u==="manifest"||u==="mimetype")return!1}return!0}catch(a){return!1}},t.isValidAbsolutePath=function(e){return t.isValidPath(e,!0)};var u=t.noOp=function(){};t.consumeStream=function(e,t,n){e.on("data",n||u),e.on("end",t||u)},t.flatCopy=function(e){var t={},n=Object.keys(e),r,i=n.length
;for(r=0;r<i;r++){var s=n[r];t[s]=e[s]}return t},t.deepCopy=function(e){return JSON.parse(JSON.stringify(e))},t.objectsEqual=function(e,n,r){var i={},s,o=Object.keys(e),u,a=o.length;for(u=0;u<a;u++){s=o[u];if(!r||!r[s]){var f=e[s],l=n[s],c=typeof f,h=typeof l;if(c!==h)return!1;if(c==="object"){if(!t.objectsEqual(f,l,r))return!1}else if(f!==l)return!1}i[s]=!0}o=Object.keys(n),a=o.length;for(u=0;u<a;u++){s=o[u];if(!i[s])return!1}return!0};var a=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"
);t.parseURI=function(e){var t=e.match(a);return{scheme:t[2],authority:t[4],path:t[5],query:t[7],fragment:t[9]}},t.endPointOf=function(e){var n=t.parseURI(e),r=n.scheme,i=n.authority,s=r==="https"?443:r==="http"?80:-1,o;return r&&i&&(o=(r+"://"+i).toLowerCase(),s>=0&&i.indexOf(":")<0&&(o=o+":"+s)),o},t.ensureRelativeHrefStartsWithSlash=function(e){if(e){var n=t.parseURI(e),r=n.scheme,i=n.authority;!r&&!i&&e.charAt(0)!=="/"&&(e="/"+e)}return e};var f=/^([^:]+):(.*)$/,l=/^\s+|\s+$/g;return t.parseHeaders=
function(e){var t,n={},r=e.split(/\r?\n/),i,s;for(t=0;t<r.length;++t){var o=r[t];if(o.length>0){var u=o.charCodeAt(0);if(!i||u!==9&&u!==32){var a=f.exec(o);a&&a.length>1&&(i=a[1].toLowerCase(),s=a[2]||"",s=s.replace(l,""),n[i]?n[i]=n[i]+","+s:n[i]=s)}else n[i]=n[i]+" "+o.replace(l,"")}}return n},t.timeStamp=function(e){var t=(new Date).getTime();return e&&(t-=t%1e3),t},t.generateUuid=r,t.log=function(e){if(typeof s=="function")try{s(e)}catch(t){}},t}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/components/dcx-js/src/AdobeDCXNode"
,["require","exports","module","./AdobeDCXError","./AdobeDCXUtil"],function(e,t,n){"use strict";function s(e,t,n){e?this._setData(e):this._data={},this._readOnly=t,this._isRoot=n}var r=e("./AdobeDCXError"),i=e("./AdobeDCXUtil"),o="/";s.ROOT_PATH=o,Object.defineProperties(s.prototype,{id:{get:function(){return this._data.id},set:function(e){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(this._owner)throw new r(r.READ_ONLY,"Cannot change the id of a node that is part of a branch or element."
);if(typeof e!="string"||e==="")throw new r(r.INVALID_PARAMS,"Expecting a non-empty string.");this._data.id=e,this._setDirty()}},name:{get:function(){return this._data.name},set:function(e){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(typeof e!="string"&&typeof e!="undefined")throw new r(r.INVALID_PARAMS,"Expecting a string or undefined.");this._data.name=e,this._setDirty()}},type:{get:function(){return this._data.type},set:function(e){if(this._readOnly)throw new r(r.
READ_ONLY,"This object is read-only.");if(typeof e!="string"&&typeof e!="undefined")throw new r(r.INVALID_PARAMS,"Expecting a string or undefined.");this._data.type=e,this._setDirty()}},relationship:{get:function(){return this._data.rel},set:function(e){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(typeof e!="string"&&typeof e!="undefined")throw new r(r.INVALID_PARAMS,"Expecting a string or undefined.");this._data.rel=e,this._setDirty()}},path:{get:function(){return this
._isRoot?o:this._data.path},set:function(e){if(e!==this.path){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(this._isRoot)throw new r(r.READ_ONLY,"Cannot change the path of the root node.");if(e&&!i.isValidPath(e))throw new r(r.INVALID_PARAMS,"Expecting a valid path or undefined.");this._owner?this._owner._setPathOfNode(this,e||undefined):(this._data.path=e||undefined,this._parentPath=""),this._setDirty()}}},parentPath:{get:function(){return this._parentPath},set:function(
e){throw new r(r.READ_ONLY,"parentPath is read-only.")}},absolutePath:{get:function(){var e=this.path;return this._isRoot?e:e&&this._owner?i.appendPathElements(this._parentPath,e):undefined},set:function(e){throw new r(r.READ_ONLY,"absolutePath is read-only.")}},isRoot:{get:function(){return this._isRoot},set:function(e){throw new r(r.READ_ONLY,"isRoot is read-only.")}}}),s.prototype.getLink=function(e){if(typeof e!="string")throw new r(r.INVALID_PARAMS,'Param "relationship" must be a string');return this
._data._links?this._data._links[e]:undefined},s.prototype.setLink=function(e,t){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(typeof e!="object")throw new r(r.INVALID_PARAMS,'Param "link" must be an object.');if(typeof t!="string")throw new r(r.INVALID_PARAMS,'Param "relationship" must be a string');var n=this._data._links;n||(n=this._data._links={}),n[t]=e,this._setDirty()},s.prototype.removeLink=function(e){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only."
);if(typeof e!="string")throw new r(r.INVALID_PARAMS,'Param "relationship" must be a string');var t=this._data._links;t&&(delete t[e],Object.keys(t).length<1&&delete this._data._links,this._setDirty())};var u={components:!0,children:!0,"manifest-format-version":!0,id:!0,name:!0,type:!0,state:!0,local:!0},a={components:!0,children:!0,rel:!0,path:!0,id:!0,name:!0,type:!0};return s.prototype.getCustomKeys=function(){var e=[],t=Object.keys(this._data),n,r=t.length;for(n=0;n<r;n++){var i=t[n];(this._isRoot?!
u[i]:!a[i])&&e.push(i)}return e},s.prototype.getValue=function(e){if(typeof e!="string")throw new r(r.INVALID_PARAMS,'Param "key" must be a string');if(e==="children"||e==="components")throw new r(r.INVALID_PARAMS,"Illegal key");return this._data[e]},s.prototype.setValue=function(e,t){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(typeof e!="string")throw new r(r.INVALID_PARAMS,'Param "key" must be a string');if(e==="children"||e==="components")throw new r(r.INVALID_PARAMS
,"Illegal key");this._data[e]=t,this._setDirty()},s.prototype.removeValue=function(e){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(typeof e!="string")throw new r(r.INVALID_PARAMS,'Param "key" must be a string');if(e==="children"||e==="components")throw new r(r.INVALID_PARAMS,"Illegal key");delete this._data[e],this._setDirty()},s.prototype.copy=function(){var e=null,t=this._data.children,n=this._data.components;try{t&&delete this._data.children,n&&delete this._data.components
;var r=JSON.parse(JSON.stringify(this._data));e=new s(r)}finally{t&&(this._data.children=t),n&&(this._data.components=n)}return e},s.prototype.isEqualTo=function(e,t,n){return this._isEqual(this._data,e._data,i.merge({children:!0,components:!0},t),n)},s.prototype._isEqual=function(e,t,n,r){var s,o,u,a,f;if(!i.objectsEqual(e,t,n))return!1;o=e.components,u=t.components,a=o?o.length:0,f=u?u.length:0;if(a!==f)return!1;if(a){var l,c,h;for(s=0;s<a;s++){l=o[s],c=null;for(h=0;h<a;h++)if(l.id===u[h].id){c=
u[h];break}if(!c)return!1;if(!i.objectsEqual(l,c,r))return!1}}o=e.children,u=t.children,a=o?o.length:0,f=u?u.length:0;if(a!==f)return!1;if(a)for(s=0;s<a;s++)if(!this._isEqual(o[s],u[s],n,r))return!1;return!0},s.prototype._setData=function(e){var t=this._verify(e);if(t===null)return this._data=e,this;throw t},s.prototype._verify=function(e){return typeof e.id!="string"?new r(r.INVALID_DATA,"Node is missing an id of type string"):null},s.prototype._setDirty=function(){this._owner&&this._owner._setDirty
()},s}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/components/dcx-js/src/AdobeDCXComponent",["require","exports","module","./AdobeDCXError","./AdobeDCXUtil"],function(e,t,n){"use strict";function s(e,t){e?this._setData(e):this._data={},this._readOnly=t}function u(e){this.compositeId=e,this.records={}}function a(e,t,n,r,i,s){this.id=e,this.etag=t,this.version=n,this.md5=r,this.length=i,this.type=s}var r=e("./AdobeDCXError"),i=e("./AdobeDCXUtil"),o={unmodified:"unmodified"
,modified:"modified",pendingDelete:"pendingDelete",committedDelete:"committedDelete"};s.STATES=o,s._UploadResults=u,s._UploadRecord=a,Object.defineProperties(s.prototype,{id:{get:function(){return this._data.id},set:function(e){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(this._owner)throw new r(r.READ_ONLY,"Cannot change the id of a component that is part of a branch or element.");if(typeof e!="string"||e==="")throw new r(r.INVALID_PARAMS,"Expecting a non-empty string."
);this._data.id=e,this._setDirty()}},name:{get:function(){return this._data.name},set:function(e){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(typeof e!="string"&&typeof e!="undefined")throw new r(r.INVALID_PARAMS,"Expecting a string or undefined.");this._data.name=e,this._setDirty()}},type:{get:function(){return this._data.type},set:function(e){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(typeof e!="string"||e==="")throw new r(r.INVALID_PARAMS
,"Expecting a non-empty string.");this._data.type=e,this._setDirty()}},path:{get:function(){return this._data.path},set:function(e){if(this._data.path!==e){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(!i.isValidPath(e))throw new r(r.INVALID_PARAMS,"Expecting a valid path.");this._owner?this._owner._core._setPathOfComponent(this,e):(this._data.path=e,this._parentPath=""),this._setDirty()}}},parentPath:{get:function(){return this._parentPath},set:function(e){throw new r
(r.READ_ONLY,"parentPath is read-only.")}},absolutePath:{get:function(){return this._data.path&&this._owner?i.appendPathElements(this._parentPath,this._data.path):undefined},set:function(e){throw new r(r.READ_ONLY,"absolutePath is read-only.")}},relationship:{get:function(){return this._data.rel},set:function(e){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(typeof e!="string"&&typeof e!="undefined")throw new r(r.INVALID_PARAMS,"Expecting a string or undefined.");this._data
.rel=e,this._setDirty()}},state:{get:function(){return this._data.state},set:function(e){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(typeof e!="string")throw new r(r.INVALID_PARAMS,"Expecting a string.");if(!o.hasOwnProperty(e))throw new r(r.INVALID_PARAMS,'State must be "modified", "unmodified", "pendingDelete", or "committedDelete".');this._data.state=e,this._setDirty()}},etag:{get:function(){return this._data.etag},set:function(e){if(this._readOnly)throw new r(r.READ_ONLY
,"This object is read-only.");if(typeof e!="string"&&typeof e!="undefined")throw new r(r.INVALID_PARAMS,"Expecting a string or undefined.");this._data.etag=e,this._setDirty()}},md5:{get:function(){return this._data.md5},set:function(e){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(typeof e!="string"&&typeof e!="undefined")throw new r(r.INVALID_PARAMS,"Expecting a string or undefined.");this._data.md5=e,this._setDirty()}},version:{get:function(){return this._data.version
},set:function(e){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(typeof e!="undefined"&&typeof e!="string")throw new r(r.INVALID_PARAMS,"Expecting a string or undefined.");this._data.version=e,this._setDirty()}},length:{get:function(){return this._data.length},set:function(e){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(typeof e!="number"&&typeof e!="undefined")throw new r(r.INVALID_PARAMS,"Expecting a number or undefined.");this._data.length=
e,this._setDirty()}},width:{get:function(){return this._data.width},set:function(e){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(typeof e!="number"&&typeof e!="undefined")throw new r(r.INVALID_PARAMS,"Expecting a number or undefined.");this._data.width=e,this._setDirty()}},height:{get:function(){return this._data.height},set:function(e){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(typeof e!="number"&&typeof e!="undefined")throw new r(r.INVALID_PARAMS
,"Expecting a number or undefined.");this._data.height=e,this._setDirty()}}});var f={name:!0,id:!0,state:!0,path:!0,rel:!0,type:!0,etag:!0,length:!0,version:!0,md5:!0,width:!0,height:!0};return s.prototype.getCustomKeys=function(){var e=[],t=Object.keys(this._data),n,r=t.length;for(n=0;n<r;n++){var i=t[n];f[i]||e.push(i)}return e},s.prototype.getValue=function(e){if(typeof e!="string")throw new r(r.INVALID_PARAMS,'Param "key" must be a string');return this._data[e]},s.prototype.setValue=function(
e,t){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(typeof e!="string")throw new r(r.INVALID_PARAMS,'Param "key" must be a string');this._data[e]=t,this._setDirty()},s.prototype.removeValue=function(e){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(typeof e!="string")throw new r(r.INVALID_PARAMS,'Param "key" must be a string');delete this._data[e],this._setDirty()},s.prototype.getLink=function(e){if(typeof e!="string")throw new r(r.INVALID_PARAMS
,'Param "relationship" must be a string');return this._data._links?this._data._links[e]:undefined},s.prototype.setLink=function(e,t){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(typeof e!="object")throw new r(r.INVALID_PARAMS,'Param "link" must be an object.');if(typeof t!="string")throw new r(r.INVALID_PARAMS,'Param "relationship" must be a string');var n=this._data._links;n||(n=this._data._links={}),n[t]=e,this._setDirty()},s.prototype.removeLink=function(e){if(this
._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(typeof e!="string")throw new r(r.INVALID_PARAMS,'Param "relationship" must be a string');var t=this._data._links;t&&(delete t[e],Object.keys(t).length<1&&delete this._data._links,this._setDirty())},s.prototype.isEqualTo=function(e,t){return i.objectsEqual(this._data,e._data,t)},s.prototype._setData=function(e){var t=this._verify(e);if(t===null)return this._data=e,this;throw t},s.prototype._setDirty=function(){this._owner&&this._owner
._setDirty()},s.prototype._verify=function(e){return typeof e.id!="string"?new r(r.INVALID_DATA,"Component is missing an id of type string"):null},s}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/components/dcx-js/src/AdobeDCXFS",["require","exports","module","./AdobeDCXError","./AdobeDCXUtil"],function(e,t,n){"use strict";var r=e("./AdobeDCXError"),i=e("./AdobeDCXUtil"),s;t.canUseFileSystem=!1,t._setFS=function(e){s=e,t.canUseFileSystem=e?!0:!1},t.ensureDirectoryExists=
function(e,n){var r=function(e){e&&e.code==="EEXIST"?n():n(e)},o=function(o){if(o)n();else{var u=i.parentDirectory(e);u?t.ensureDirectoryExists(u,function(t){t?n(t):s.mkdir(e,r)}):s.mkdir(e,r)}};e?s.exists(e,o):o(!0)},t.getTempFilePathAt=function(e,n){var r=function(){var s=e+i.generateUuid();t.exists(s,function(e){e?r():n(s)})};r()},t.exists=function(e,t){s.exists(e,t)},t.deleteFile=function(e,t){s.unlink(e,function(e){!e||e.code==="ENOENT"?t():t(e)})},t.readFile=function(e,t,n){s.readFile(e,t,n
)},t.writeFile=function(e,n,r,o){var u=i.parentDirectory(e);t.ensureDirectoryExists(u,function(t){t?o(t):s.writeFile(e,n,r,o)})},t.writeFileAtomically=function(e,n,r,o){var u=i.parentDirectory(e);t.ensureDirectoryExists(u,function(i){i?o(i):t.getTempFilePathAt(u+"/",function(t){s.writeFile(t,n,r,function(n){n?o(n):s.rename(t,e,o)})})})},t.createWriteStream=function(e,t){return s.createWriteStream(e,t)},t.createReadStream=function(e,t){return s.createReadStream(e,t)},t.move=function(e,n,r,o){var u=
i.parentDirectory(n);t.ensureDirectoryExists(u,function(t){if(t)o(t);else if(r){var i=(new Date).getTime()/1e3;s.utimes(e,i,i,function(t){t?o(t):s.rename(e,n,o)})}else s.rename(e,n,o)})},t.info=function(e,t){s.stat(e,t)},t.directoryListing=function(e,t){var n,r=[],i,o=function(o){s.stat(e+"/"+o,function(e,s){if(!e)try{r.push({name:o,info:s}),n--}catch(u){e=u}e?i||(i=e,t(e)):n===0&&t(undefined,r)})};s.readdir(e,function(e,r){if(!e)try{var i,s=r.length;n=s;for(i=0;i<s;i++)o(r[i])}catch(u){e=u}e?t(e
):n===0&&t(undefined,[])})},t.deleteDirectory=function(e,n){var r=function(){try{s.rmdir(e,n)}catch(t){n(t)}},i,o,u=function(e){e&&!i&&(i=e),o--,o<1&&(i?n(i):r())},a=function(n){var r=e+"/"+n;s.unlink(r,function(e){try{e?t.deleteDirectory(r,function(e){u(e)}):u()}catch(n){u(n)}})};s.readdir(e,function(e,t){if(!e)try{var i=t.length;if(i<1)r();else{var s;o=i;for(s=0;s<i;s++)a(t[s])}}catch(u){e=u}e&&n(e)})};var o=function(e,t,n){try{var r=t+i.generateUuid(),o=s.createWriteStream(r),u=s.createReadStream
(e);u.on("end",function(){s.rename(r,t,n)}),u.pipe(o)}catch(a){n(a)}};return t.copyFile=function(e,n,r){var s=i.parentDirectory(n);t.ensureDirectoryExists(s,function(t){t?r(t):o(e,n,r)})},t}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/components/dcx-js/src/AdobeDCXBranchCore",["require","exports","module","./AdobeDCXError","./AdobeDCXNode","./AdobeDCXComponent","./AdobeDCXFS","./AdobeDCXUtil"],function(e,t,n){"use strict";function a(e,t,n){this._readOnly=n,this._owner=
t,this._setData(e),this._localStorage=undefined}function f(e,t,n,i,s,o,a,f){var l=t._owner._core,c=e._owner._core,h=n&&e.id===t.id,p=c._getSourceHrefOfComponent(e),d=l.getComponentWithId(t.id),v=i&&(!d||!d.etag)&&e.state==="unmodified",m=!h&&!p,g=m;s&&!d&&(p||m)&&e.id===t.id&&(t._data.id=u.generateUuid(),t.state="modified",t.etag=undefined,t.version=undefined,t.md5=undefined,t.length=undefined),o&&o._copyComponentMapping(e.id,f,t.id,a)&&(g=!1,h||(t.state="modified"));if(m){if(v){p=c._getHrefOfComponent
(e),l._setSourceHrefOfComponent(p,t,a);if(!p&&g)throw new r(r.INVALID_STATE,"Failed to determine the source href of a component that does not have a local file.")}else if(g)throw new r(r.INVALID_STATE,"Could not use server-to-server copy for component "+e.id)}else l._setSourceHrefOfComponent(p,t,a);p&&(t.state="modified")}var r=e("./AdobeDCXError"),i=e("./AdobeDCXNode"),s=e("./AdobeDCXComponent"),o=e("./AdobeDCXFS"),u=e("./AdobeDCXUtil");return Object.defineProperties(a.prototype,{rootNode:{get:function(
){return this.getChildWithAbsolutePath(i.ROOT_PATH)},set:function(e){throw new r(r.READ_ONLY,'Property "rootNode" is read-only.')}},hasLocalStorage:{get:function(){return this._localStorage},set:function(){throw new r(r.READ_ONLY,"Cannot set the property hasLocalStorage.")}},isDirty:{get:function(){return this._isDirty},set:function(){throw new r(r.READ_ONLY,"Cannot set the property isDirty.")}},changeCount:{get:function(){return this._data.local?this._data.local.change||0:0},set:function(){throw new 
r(r.READ_ONLY,"Cannot set the property changeCount.")}}}),a.prototype.getChildWithId=function(e){return this._allNodes[e]},a.prototype.getChildWithAbsolutePath=function(e){var t=this._absolutePaths[e.toLowerCase()];return t?t instanceof i?t:undefined:undefined},a.prototype.getChildrenOf=function(e){e=e?this._allNodes[e.id]:this.rootNode;if(!e)throw new r(r.INVALID_PARAMS,"Unknown node");var t=[],n=e._data.children;if(Array.isArray(n)){var i;for(i=0;i<n.length;i++){var s=n[i],o=this._allNodes[s.id
];if(!o)throw new r(r.INVALID_DATA,"Node not in cache");t[t.length]=o}}return t},a.prototype.addChild=function(e,t,n,s){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");t=t||u.generateUuid();if(this._allNodes[t])throw new r(r.DUPLICATE_VALUE,"Node already exists in branch.");if(!n||typeof n=="number"&&n%1===0){var o=s?this._allNodes[s.id]:this.rootNode;if(!o)throw new r(r.INVALID_PARAMS,"Unknown parent node.");var a=new i;a.id=t,e&&(a.name=e),a._parentPath=o.absolutePath||o.
_parentPath;var f=o._data.children;return f?(n>=0&&n<=f.length||(n=f.length),n===f.length?f[n]=a._data:f.splice(n,0,a._data)):o._data.children=[a._data],this._allNodes[a.id]=a,a._owner=this._owner,this._setDirty(),a}throw new r(r.INVALID_PARAMS,'Param "index" must be an integer.')},a.prototype.removeChild=function(e){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(!e)throw new r(r.INVALID_PARAMS,'Expecting param "node".');if(e.isRoot)throw new r(r.INVALID_PARAMS,"Cannot remove the root node."
);var t=e.id;if(!t)throw new r(r.INVALID_PARAMS,'Param "node" must have an id.');var n=this._nodeDataOfParentOfNode(e);if(!n)throw new r(r.INVALID_PARAMS,"Node not found in this branch.");return n.parentNodeData.children.splice(n.index,1),n.parentNodeData.children.length===0&&delete n.parentNodeData.children,e=this._allNodes[t],this._removeNodeFromCachesRecursively(e._data),this._setDirty(),e},a.prototype.moveChild=function(e,t,n){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only."
);if(!e)throw new r(r.INVALID_PARAMS,'Expecting param "node".');if(e.isRoot)throw new r(r.INVALID_PARAMS,"Cannot move the root node.");if(!t||typeof t=="number"&&t%1===0){var i=e.id;if(!i)throw new r(r.INVALID_PARAMS,'Param "node" must have an id.');var s=this._nodeDataOfParentOfNode(e);e=this._allNodes[i];if(!s)throw new r(r.INVALID_PARAMS,"Node not found in this branch.");var o=n?this._allNodes[n.id]:this.rootNode;if(!o)throw new r(r.INVALID_PARAMS,"Unknown parent node.");if(this._nodeIdIsDescendantOf
(o.id,e._data))throw new r(r.INVALID_PARAMS,"Must not create a cycle.");var u=s.parentNodeData.children.splice(s.index,1)[0];try{var a=o._data.children;a?(t>=0&&t<=a.length||(t=a.length),t===a.length?a[t]=u:a.splice(t,0,u)):o._data.children=[u]}catch(f){throw s.parentNodeData.children.splice(s.index,0,u),f}return s.parentNodeData.children.length===0&&delete s.parentNodeData.children,this._setDirty(),this._allNodes[i]}throw new r(r.INVALID_PARAMS,'Param "index" must be an integer.')},a.prototype.copyChild=
function(e,t,n,r,i,s){return this._copyChild(e,t,n,r,i,!1,s)},a.prototype.replaceChild=function(e,t,n,r){return this._copyChild(e,undefined,undefined,t,n||e.id,!0,r)},a.prototype.allComponents=function(){var e=[],t;for(t in this._allComponents)this._allComponents.hasOwnProperty(t)&&e.push(this._allComponents[t]);return e},a.prototype.getComponentWithId=function(e){return this._allComponents[e]},a.prototype.getComponentWithAbsolutePath=function(e){var t=this._absolutePaths[e.toLowerCase()];return t?
t instanceof s?t:undefined:undefined},a.prototype.getComponentsOf=function(e){e=e?this._allNodes[e.id]:this.rootNode;if(!e)throw new r(r.INVALID_PARAMS,"Unknown node");var t=[],n=e._data.components;if(Array.isArray(n)){var i;for(i=0;i<n.length;i++){var s=n[i],o=this._allComponents[s.id];if(!o)throw new r(r.INVALID_DATA,"Component not in cache");t[t.length]=o}}return t},a.prototype.addComponent=function(e,t,n,i,o,a,f,l,c,h){var p=this._localStorage;if(!p)throw new r(r.NO_LOCAL_STORAGE,"No local storage. Use AdobeDCXCompositeXfer.uploadNewComponent() followed by addComponentWithUploadResults()"
);if(typeof h!="function"&&o)throw new r(r.INVALID_PARAMS,'Param "callback" must be a function.');if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(c&&typeof c!="string")throw new r(r.INVALID_PARAMS,'Param "id" must be of type string.');if(!o&&!f)throw new r(r.INVALID_PARAMS,"Must provide either source or sourceHref.");try{if(f){var d=this._getBranchOf(this).compositeHref;if(d){var v=u.endPointOf(d),m=u.endPointOf(f);if(v&&m&&v!==m)throw new r(r.WRONG_ENDPOINT,"Given source href has an invalid endpoint: "+
m)}}var g=this._local();c=c||u.generateUuid();var y=new s;y.id=c,y.name=e,y.type=t,y.relationship=n,y.path=i,y.state="modified";var b=this,w=function(e){if(!e)try{if(c&&b._allComponents[c])throw new r(r.DUPLICATE_VALUE,'The "id" of a component must be unique.');var t=l?b._allNodes[l.id]:b.rootNode;if(!t)throw new r(r.INVALID_PARAMS,"Unknown parent node.");var n=b._normalizedAbsolutePathForItem(y,t);if(b._absolutePaths[n])throw new r(r.DUPLICATE_VALUE,"Duplicate absolute path: "+n);if(!u.isValidAbsolutePath
(n))throw new r(r.INVALID_PARAMS,"Invalid absolute path: "+n);y._parentPath=t.absolutePath||t._parentPath;var i=t._data.components;i?i.push(y._data):t._data.components=[y._data],y._owner=b._owner,f&&b._setSourceHrefOfComponent(f,y),b._allComponents[y.id]=y,b._absolutePaths[n]=y,b._setDirty()}catch(s){p.removeComponentAsset(y,g),f&&b._setSourceHrefOfComponent(undefined,y),y=undefined,e=s}if(h)return h(e,y);if(e)throw e;return y};if(!o)return w();p.ingestComponentAsset(y,o,a,g,w)}catch(E){if(h)return h
(E);throw E}},a.prototype.addComponentWithUploadResults=function(e,t,n,i,o){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(o.compositeId!==this._owner.compositeId)throw new r(r.INVALID_PARAMS,"Param uploadResults does not appear valid to be for this composite.");var u=Object.keys(o.records);if(u.length!==1)throw new r(r.INVALID_PARAMS,"Param uploadResults must contain records of exactly one component upload.");if(this._localStorage)throw new r(r.INVALID_PARAMS,"This method is for in-browser use only. Use addComponent() instead."
);var a=o.records[u[0]],f=a.id;if(this._allComponents[f])throw new r(r.DUPLICATE_VALUE,"Duplicate component id: "+f);var l=i?this._allNodes[i.id]:this.rootNode;if(!l)throw new r(r.INVALID_PARAMS,"Unknown parent node.");var c=new s;c.id=f,c.name=e,c.type=a.type,c.relationship=t,c.path=n,c.state="unmodified",c.etag=a.etag,c.length=a.length,c.version=a.version,c.md5=a.md5;var h=this._normalizedAbsolutePathForItem(c,l);if(this._absolutePaths[h])throw new r(r.DUPLICATE_VALUE,"Duplicate absolute path: "+
h);c._parentPath=l.absolutePath||l._parentPath;var p=l._data.components;return p?p.push(c._data):l._data.components=[c._data],c._owner=this._owner,this._allComponents[f]=c,this._absolutePaths[h]=c,this._setDirty(),c},a.prototype.updateComponent=function(e,t,n,i){var s=this._localStorage;if(!s)throw new r(r.NO_LOCAL_STORAGE,"No local storage. Use AdobeDCXCompositeXfer.uploadComponent() to upload a new component asset and then call updateComponentWithUploadResults()");if(typeof i!="function")throw new 
r(r.INVALID_PARAMS,'Param "callback" must be a function.');if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");e=this._allComponents[e.id];if(!e)throw new r(r.INVALID_PARAMS,"Unknown component.");try{var o=this,u=function(t){if(!t)try{e.state!=="modified"?e.state="modified":o._setDirty(),o._setSourceHrefOfComponent(undefined,e)}catch(n){t=n,e=undefined}i(t,e)};s.ingestComponentAsset(e,t,n,this._local(),u)}catch(a){i(a)}},a.prototype.updateComponentWithUploadResults=function(e,t
){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");e=this._allComponents[e.id];if(!e)throw new r(r.INVALID_PARAMS,"Unknown component.");if(this._localStorage)throw new r(r.INVALID_PARAMS,"This method is for in-browser use only. Use updateComponent() instead.");if(t.compositeId!==this._owner.compositeId)throw new r(r.INVALID_PARAMS,"Param uploadResults does not appear valid to be for this composite.");var n=t.records[e.id];if(!n)throw new r(r.INVALID_PARAMS,"Param uploadResults does not contain an upload record for the given component."
);return e.etag=n.etag,e.version=n.version,e.md5=n.md5,e.length=n.length,e},a.prototype.removeComponent=function(e){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(!e)throw new r(r.INVALID_PARAMS,'Expecting param "component".');var t=e.id;if(!t)throw new r(r.INVALID_PARAMS,'Param "component" must have an id.');var n=this._nodeDataOfParentOfComponent(e);if(!n)throw new r(r.INVALID_PARAMS,"Component not found in this branch.");return n.parentNodeData.components.splice(n.index
,1),n.parentNodeData.components.length===0&&delete n.parentNodeData.components,e=this._allComponents[t],delete this._allComponents[t],delete this._absolutePaths[this._normalizedAbsolutePathForItem(e)],this._localStorage&&(this._localStorage.removeComponentAsset(e,this._local()),this._setSourceHrefOfComponent(undefined,e)),e._owner=undefined,e._parentPath="",this._setDirty(),e},a.prototype.moveComponent=function(e,t){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(!e)throw new 
r(r.INVALID_PARAMS,'Expecting param "component".');var n=e.id;if(!n)throw new r(r.INVALID_PARAMS,'Param "component" must have an id.');var i=this._nodeDataOfParentOfComponent(e);if(!i)throw new r(r.INVALID_PARAMS,"Component not found in this branch.");var s=t?this._allNodes[t.id]:this.rootNode;if(!s)throw new r(r.INVALID_PARAMS,"Unknown parent node.");var o=this._normalizedAbsolutePathForItem(e,s);if(this._absolutePaths[o])throw new r(r.DUPLICATE_VALUE,"Duplicate absolute path: "+o);var u=i.parentNodeData
.components.splice(i.index,1)[0],a=s._data.components;return a?a.push(u):s._data.components=[u],i.parentNodeData.components.length===0&&delete i.parentNodeData.components,e=this._allComponents[n],delete this._absolutePaths[this._normalizedAbsolutePathForItem(e)],e._parentPath=s.absolutePath||s._parentPath,this._absolutePaths[o]=e,this._setDirty(),e},a.prototype.copyComponent=function(e,t,n,r,i){return this._copyComponent(e,t,n,r,!1,i)},a.prototype.replaceComponent=function(e,t,n,r){return this._copyComponent
(e,undefined,t,n||e.id,!0,r)},a.prototype.assetOfComponent=function(e,t){try{if(!this._localStorage)throw new r(r.NO_LOCAL_STORAGE,"No local storage.");if(!e)throw new r(r.INVALID_PARAMS,'Expecting param "component".');var n=e.id;if(!n)throw new r(r.INVALID_PARAMS,'Param "component" must have an id.');var i=this._localStorage.componentAssetPath(e,this._local());if(!t)return i;o.exists(i,function(e){t(undefined,e?i:null)})}catch(s){if(!t)throw s;t(s)}},a.prototype._getHrefOfComponent=function(e){var t
,n=this._getBranchOf(e),r=n.compositeHref;return r&&typeof e.version!="undefined"&&(t=u.appendPathElements(r,e.id),t+=";version="+e.version),t},a.prototype._setSourceHrefOfComponent=function(e,t,n){var r=t.id,i=this._componentSourceHrefLookup(!0,n);e?i[r]=e:i[r]&&delete i[r]},a.prototype._getSourceHrefOfComponent=function(e,t){var n=e.id,r=this._componentSourceHrefLookup(!1,t);return r?r[n]:undefined},a.prototype._copySourceHrefsFrom=function(e){var t=e._componentSourceHrefLookup(!1),n=this.allComponents
(),r=n.length;if(r&&t){var i,s=this._componentSourceHrefLookup(!0);for(i=0;i<r;i++){var o=n[i].id;s[o]=t[o]}}},a.prototype._getBranchOf=function(e){return e._owner?this._getBranchOf(e._owner):e},a.prototype._isSameComposite=function(e){var t=this._getBranchOf(this),n=this._getBranchOf(e);return t._data.id!==n._data.id?!1:t.compositeHref!==n.compositeHref?!1:this._localStorage!==e._localStorage?!1:!0},a.prototype._stringify=function(e,t){if(e){var n=this._data.local,r=null;try{delete this._data.local
,r=JSON.stringify(this._data,undefined,t?2:undefined)}catch(i){throw i}finally{n&&(this._data.local=n)}return r}return JSON.stringify(this._data,undefined,t?2:undefined)},a.prototype._setData=function(e){var t=new i(e,this._readOnly,!0);t._owner=this._owner,t._parentPath="";var n=t.id,o={},a={},f={};a[n]=t,f[i.ROOT_PATH]=t;var l=this,c=function(e,t,n,o,a){var f,h,p,d=e.components;if(Array.isArray(d))for(f=0;f<d.length;f++){var v=d[f],m=new s(v,l._readOnly);if(t[m.id])throw new r(r.INVALID_DATA,"Duplicate component id: "+
m.id);m._owner=l._owner,m._parentPath=a,p=l._normalizedAbsolutePathForItem(m);if(o[p])throw new r(r.INVALID_DATA,"Duplicate absolute path: "+p);if(!u.isValidAbsolutePath(p))throw new r(r.INVALID_DATA,"Invalid absolute component path: "+p);t[m.id]=m,o[p]=m}var g=e.children;if(Array.isArray(g))for(f=0;f<g.length;f++){var y=g[f],b=new i(y,l._readOnly);if(n[b.id])throw new r(r.INVALID_DATA,"Duplicate node id: "+b.id);h=b.path,b._owner=l._owner,b._parentPath=a;if(h){p=l._normalizedAbsolutePathForItem(
b);if(o[p])throw new r(r.INVALID_DATA,"Duplicate absolute path: "+p);if(!u.isValidAbsolutePath(p))throw new r(r.INVALID_DATA,"Invalid node absolute path: "+p);o[p]=b}n[b.id]=b,c(y,t,n,o,b.path?u.appendPathElements(a,b.path):a)}};return c(e,o,a,f,i.ROOT_PATH),this._data=e,this._allComponents=o,this._allNodes=a,this._absolutePaths=f,this._isDirty=!1,this},a.prototype._removeNodeFromCachesRecursively=function(e){var t,n=e.components;if(Array.isArray(n))for(t=0;t<n.length;t++){var r=n[t].id,i=this._allComponents
[r];delete this._allComponents[r],delete this._absolutePaths[this._normalizedAbsolutePathForItem(i)],i._owner=undefined,this._localStorage&&(this._localStorage.removeComponentAsset(i,this._local()),this._setSourceHrefOfComponent(undefined,i))}var s=e.children;if(Array.isArray(s))for(t=0;t<s.length;t++)this._removeNodeFromCachesRecursively(s[t]);var o=e.id,u=this._allNodes[o];delete this._allNodes[o],u.path&&delete this._absolutePaths[this._normalizedAbsolutePathForItem(u)],u._owner=undefined},a.prototype
._local=function(){return this._data.local||(this._data.local={version:2}),this._data.local},a.prototype._componentSourceHrefLookup=function(e,t){if(e&&this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(!t){t=e?this._local():this._data.local;if(!t)return undefined}var n=t["componentS2SCopy#srcHref"];return!n&&e&&(n=t["componentS2SCopy#srcHref"]={}),n},a.prototype._recursiveReset=function(e,t){var n,r=e.components;if(r)for(n=r.length-1;n>=0;n--){var i=r[n];i.state==="committedDelete"?
(delete r[n],delete this._allComponents[i.id],delete i._owner,this._localStorage&&this._localStorage.removeComponentAsset(i,this._local()),this._setSourceHrefOfComponent(undefined,i,this._local())):(delete i.etag,delete i.version,delete i.length,delete i.md5,i.state="modified",t&&t(i))}var s=e.children;if(s)for(n=0;n<s.length;n++)this._recursiveReset(s[n],t)},a.prototype._nodeIdIsDescendantOf=function(e,t){var n,r=t.children;if(r)for(n=0;n<r.length;n++){var i=r[n];if(i.id===e||this._nodeIdIsDescendantOf
(e,i))return!0}return!1},a.prototype._recursivelyGetAllComponentsOfChild=function(e,t){t=t||[];var n=e._data||e,r,i,s=n.components;if(s){i=s.length;for(r=0;r<i;r++)t[t.length]=this._allComponents[s[r].id]}var o=n.children;if(o){i=o.length;for(r=0;r<i;r++)t=this._recursivelyGetAllComponentsOfChild(o[r],t)}return t},a.prototype._nodeDataOfParentOfNode=function(e,t){t=t||this._data;var n,r=e._data.id,i=t.children;if(i)for(n=0;n<i.length;n++){var s=i[n],o=s.path;if(s.id===r)return{parentNodeData:t,index
:n};var u=this._nodeDataOfParentOfNode(e,s);if(u)return u}return null},a.prototype._nodeDataOfParentOfComponent=function(e,t){t=t||this._data;var n,r=e._data.id,i=t.components;if(i)for(n=0;n<i.length;n++){var s=i[n];if(s.id===r)return{parentNodeData:t,index:n}}var o=t.children;if(o)for(n=0;n<o.length;n++){var u=o[n],a=this._nodeDataOfParentOfComponent(e,u);if(a)return a}return null},a.prototype._determineAbsolutePathChangesRecursively=function(e,t,n){var r,i=e.components;if(i)for(r=0;r<i.length;r++
){var s=i[r],o=this._allComponents[s.id];n.push({item:o,parentPath:t,absPath:u.appendPathElements(t,s.path)})}var a=e.children;if(a)for(r=0;r<a.length;r++){var f=a[r],l=this._allNodes[f.id],c=f.path,h=c?u.appendPathElements(t,c):t;n.push({item:l,parentPath:t,absPath:c?h:undefined}),this._determineAbsolutePathChangesRecursively(f,h,n)}},a.prototype._setPathOfNode=function(e,t){var n=t?u.appendPathElements(e.parentPath,t):e.parentPath,i=[{item:e,absPath:t?n:undefined}];this._determineAbsolutePathChangesRecursively
(e._data,n,i);var s,o,a=u.flatCopy(this._absolutePaths);for(s=0;s<i.length;s++){var f=i[s].item;f._data.path&&delete a[this._normalizedAbsolutePathForItem(f)]}for(s=0;s<i.length;s++){o=i[s];if(o.absPath){var l=o.absPath.toLowerCase();if(a[l])throw new r(r.DUPLICATE_VALUE,"Duplicate absolute path: "+l);if(!u.isValidAbsolutePath(l))throw new r(r.INVALID_PARAMS,"Invalid absolute path: "+l);a[l]=o.item}}for(s=0;s<i.length;s++)o=i[s],o.parentPath&&(o.item._parentPath=o.parentPath);e._data.path=t,this.
_absolutePaths=a},a.prototype._setPathOfComponent=function(e,t){if(!this._allComponents[e.id])throw new r(r.INVALID_PARAMS,"Unknown component.");var n=u.appendPathElements(e.parentPath,t).toLowerCase();if(this._absolutePaths[n])throw new r(r.DUPLICATE_VALUE,"Duplicate absolute path for component: "+n);if(!u.isValidAbsolutePath(n))throw new r(r.INVALID_PARAMS,"Invalid absolute path: "+n);delete this._absolutePaths[this._normalizedAbsolutePathForItem(e)],this._absolutePaths[n]=e,e._data.path=t},a.prototype
._setDirty=function(e){if(!e){if(this._local().archivalState==="pending"||this._local().archivalState==="archived")throw new r(r.INVALID_STATE,"Cannot modify an archived composite.");(this._data.state==="pendingDelete"||this._data.state==="committedDelete")&&console.log("Modifying deleted composite")}this._isDirty=!0,this._local().change=this.changeCount+1,!e&&(this._data.state==="unmodified"||!this._data.state)&&(this._data.state="modified")},a.prototype._normalizedAbsolutePathForItem=function(e
,t){var n;return t?n=u.appendPathElements(t.absolutePath||t._parentPath,e.path):n=e.absolutePath,n.toLowerCase()},a.prototype._hasSameEndpoint=function(e){var t=this._getBranchOf(this).compositeHref,n=this._getBranchOf(e).compositeHref;if(t&&n){var r=u.endPointOf(t),i=u.endPointOf(n);if(r&&i&&r!==i)return!1}return!0},a.prototype._copyComponent=function(e,t,n,i,s,o){if(!e)throw new r(r.INVALID_PARAMS,'Expecting param "component".');if(o&&typeof o!="function")throw new r(r.INVALID_PARAMS,"Param callback must be a function."
);var u=this,a=e._owner._core,l=this._isSameComposite(a),c=l||this._hasSameEndpoint(e),h=a._local(),p=this._localStorage,d=a._localStorage,v=p&&d;if(v&&!o&&!l)throw new r(r.INVALID_PARAMS,"Must pass a callback when copying between two different composites.");if(!v&&!c)throw new r(r.NO_LOCAL_STORAGE,"Cannot copy between two different endpoints without local storage.");var m=function(e,t,n){f(e,t,l,c,!i,v?p:undefined,n,h)},g=v?d.componentAssetPath(e,h):undefined;if(!o)return this._copyComponentModel
(e,t,s,n,i,m);if(l||!g)try{o(undefined,this._copyComponentModel(e,t,s,n,i,m))}catch(y){o(y)}else{var b={};p.ingestComponentAsset(e,g,!0,b,function(r){if(r)o(r);else try{h=b,o(undefined,u._copyComponentModel(e,t,s,n,i,m))}catch(a){o(a)}})}},a.prototype._copyComponentModel=function(e,t,n,i,o,a){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");if(!e)throw new r(r.INVALID_PARAMS,'Expecting param "component".');var f=e._owner,l=new s(JSON.parse(JSON.stringify(e._data)));i?(l.path=
i,l.id=o||u.generateUuid()):o&&(l.id=o),l._owner=this._owner;if(e.id!==l.id||!this._isSameComposite(f._core))l.state="modified",l.etag=undefined,l.version=undefined,l.md5=undefined,l.length=undefined;var c=this._allComponents[l.id];if(c&&!n)throw new r(r.DUPLICATE_VALUE,"Component already exists.");if(n&&!c)throw new r(r.INVALID_PARAMS,"Could not find existing component.");var h,p;if(!n){p=t?this._allNodes[t.id]:this.rootNode;if(!p)throw new r(r.INVALID_PARAMS,"Unknown parent node.")}else{var d=this
._nodeDataOfParentOfComponent(c);if(!d)throw new r(r.INVALID_PARAMS,"Parent node of existing component not found in this branch.");var v=d.parentNodeData.id;p=this._allNodes[v];if(!p)throw new r(r.INVALID_STATE,"Unknown parent node.");h=d.index}l._parentPath=p.absolutePath||p._parentPath;var m=this._normalizedAbsolutePathForItem(l),g=this._absolutePaths[m];if(g&&g!==c)throw new r(r.DUPLICATE_VALUE,"Duplicate absolute path: "+m);if(!u.isValidAbsolutePath(m))throw new r(r.INVALID_PARAMS,"Component path must be a valid path for a component."
);var y=this._local();a&&(y=u.deepCopy(y),a(e,l,y));var b=p._data.components;return n?b[h]=l._data:b?b.push(l._data):p._data.components=[l._data],this._data.local=y,this._allComponents[l.id]=l,this._absolutePaths[m]=l,this._setDirty(),l},a.prototype._copyChild=function(e,t,n,i,s,o,u){if(!e)throw new r(r.INVALID_PARAMS,'Expecting param "node".');var a=this,l=e._owner._core,c=this._isSameComposite(l),h=c||this._hasSameEndpoint(e),p=l._local(),d=this._localStorage,v=l._localStorage,m=d&&v,g=l._recursivelyGetAllComponentsOfChild
(e);if(g.length>0){if(m&&!u&&!c)throw new r(r.INVALID_PARAMS,"Must pass a callback when copying between two different composites.");if(!m&&!h)throw new r(r.NO_LOCAL_STORAGE,"Cannot copy components between two different endpoints without local storage.")}var y=function(e,t,n){f(e,t,c,h,!0,m?d:undefined,n,p)};if(!u)return this._copyChildModel(e,t,n,o,i,s,y);var b=function(){u(undefined,a._copyChildModel(e,t,n,o,i,s,y))};if(g.length===0||c||!m)try{b()}catch(w){u(w)}else{var E={},S,x=g.length,T=0,N,C=
function(e){e&&!N&&(N=e),T--;if(T===0)if(N)u(N);else try{p=E,b()}catch(t){u(t)}};for(S=0;S<x;S++){var k=g[S],L=v.componentAssetPath(k,p);L&&(T++,d.ingestComponentAsset(k,L,!0,E,C))}if(T===0)try{b()}catch(A){u(A)}}},a.prototype._copyChildModel=function(e,t,n,o,a,f,l){if(this._readOnly)throw new r(r.READ_ONLY,"This object is read-only.");var c=e._owner,h=new i(JSON.parse(JSON.stringify(e._data)));a?(h.path=a,h.id=f||u.generateUuid()):f&&(h.id=f),h._owner=this._owner,e.isRoot&&(delete h._data.local,delete 
h._data["manifest-format-version"]);var p=this._allNodes[h.id];if(p&&!o)throw new r(r.DUPLICATE_VALUE,"Child node already exists.");if(o&&!p)throw new r(r.INVALID_PARAMS,"Could not find existing node to replace.");var d;if(!o){d=t?this._allNodes[t.id]:this.rootNode;if(!d)throw new r(r.INVALID_PARAMS,"Unknown parent node.")}else{var v=this._nodeDataOfParentOfNode(p);if(!v)throw new r(r.INVALID_PARAMS,"Parent of existing node not found in this branch.");var m=v.parentNodeData.id;d=this._allNodes[m]
;if(!d)throw new r(r.INVALID_STATE,"Unknown parent node.");n=v.index}h._parentPath=d.absolutePath||d._parentPath;if(h.path){var g=this._normalizedAbsolutePathForItem(h),y=this._absolutePaths[g];if(y&&y!==p)throw new r(r.DUPLICATE_VALUE,"Duplicate absolute path: "+g);if(!u.isValidAbsolutePath(g))throw new r(r.INVALID_PARAMS,"Node path must be a valid path for a node.")}var b=u.flatCopy(this._allNodes),w=u.flatCopy(this._allComponents),E=u.flatCopy(this._absolutePaths),S=u.deepCopy(this._local()),x=
function(e,t,n,r,i,s){delete n[e.id],e.path&&delete i[t._normalizedAbsolutePathForItem(e)];var o,u,a=e._data.children;if(a){u=a.length;for(o=0;o<u;o++)x(n[a[o].id],t,n,r,i,s)}var f=e._data.components;if(f){u=f.length;for(o=0;o<u;o++){var l=r[f[o].id];delete r[l.id],delete i[t._normalizedAbsolutePathForItem(l)],t._localStorage&&(t._localStorage.removeComponentAsset(l,s),t._setSourceHrefOfComponent(undefined,l,s))}}};p&&x(p,this,b,w,E,S);var T=this,N=function(e,t,n,o,a,f,c,h){if(o[e.id])throw new r
(r.DUPLICATE_VALUE,"Duplicate node id: "+e.id);o[e.id]=e;var p;if(e.path){p=t._core._normalizedAbsolutePathForItem(e);if(f[p])throw new r(r.DUPLICATE_VALUE,"Duplicate absolute path: "+p);f[p]=e}var d,v,m=e._data.children;if(m){v=m.length;for(d=0;d<v;d++){var g=new i(m[d]);o[g.id]&&(g.id=u.generateUuid()),g._owner=t,g._parentPath=e.absolutePath||e._parentPath,N(g,t,n,o,a,f,c,h)}}var y=e._data.components;if(y){v=y.length;for(d=0;d<v;d++){var b=new s(y[d]),w=b.id;a[w]&&(b.id=u.generateUuid(),b.state="modified"
,b.etag=undefined,b.version=undefined,b.md5=undefined,b.length=undefined),b._owner=t,b._parentPath=e.absolutePath||e._parentPath,l&&l(n.getComponentWithId(w),b,c);if(a[b.id])throw new r(r.DUPLICATE_VALUE,"Duplicate component id: "+b.id);a[b.id]=b,p=t._core._normalizedAbsolutePathForItem(b);if(f[p])throw new r(r.DUPLICATE_VALUE,"Duplicate absolute path: "+p);f[p]=b}}};N(h,this._owner,c,b,w,E,S,c._local());if(o)d._data.children[n]=h._data;else{var C=d._data.children;C?(n>=0&&n<=C.length||(n=C.length
),n===C.length?C[n]=h._data:C.splice(n,0,h._data)):d._data.children=[h._data]}return T._allNodes=b,T._allComponents=w,T._absolutePaths=E,T._data.local=S,T._setDirty(),h},a.prototype._verifyIntegrity=function(e,t,n){var s=this,o=[],a=!1,f=function(e){return o.push(new r(r.INVALID_STATE,e)),t&&(a||(t("Branch for composite "+s.rootNode.id+" has the following errors:"),a=!0),t("   "+e)),!1},l=function(e,t){return e?!0:f(t)},c=[],h=function(e){(c.indexOf(e)<0||f("Item "+e.id+" encountered more than once"
))&&c.push(e)},p=u.flatCopy(this._allComponents),d=u.flatCopy(this._allNodes),v=u.flatCopy(this._absolutePaths),m=Object.keys(v),g,y=m.length;for(g=0;g<y;g++){var b=m[g];l(b.charAt(0)==="/","Absolute path "+b+" does not start with a slash.")}var w=function(e,t){var n,r,i=e.children;if(i)for(n=0;n<i.length;n++){var o=i[n],a=d[o.id];if(a||f("Node "+o.id+" is not in cache."))h(a),l(a._data===o,"Node "+a.id+" _data property incorrect."),delete d[a.id],a.path&&a._owner&&(r=s._normalizedAbsolutePathForItem
(a),(v[r]||f("Absolute path of node "+a.id+" ("+r+") is not in cache."))&&delete v[r]),l(a._parentPath===t,"Parent path of node "+a.id+" should be "+t+" but is "+a._parentPath),l(a._owner===s._owner,"Node "+a.id+" _owner property is not correct.");w(o,o.path?u.appendPathElements(t,o.path):t)}var c=e.components;if(c)for(n=0;n<c.length;n++){var m=c[n],g=p[m.id];if(g||f("Component "+m.id+" is not in cache."))h(g),l(g._data===m,"Component "+g.id+" _data property incorrect."),delete p[g.id],g._owner&&
(r=s._normalizedAbsolutePathForItem(g),(v[r]||f("Absolute path "+r+" is not in cache."))&&delete v[r]),l(g._parentPath===t,"Parent path of component "+g.id+" should be "+t+" but is "+g._parentPath),l(g._owner===s._owner,"Component "+g.id+" _owner property is not correct.")}},E=v[i.ROOT_PATH];l(E,"Cannot find root node via path")&&(l(E.id===this._data.id,"Root node has correct id"),l(E.path===i.ROOT_PATH,"Root node has correct path"),l(E._parentPath==="","Root node has correct parent path"),l(E._owner===
this._owner,"Root node has correct owner"),l(E._data===this._data,"Root node has correct data"),l(d[E.id]===E,"Cannot find root node via id")&&delete d[E.id],delete v[i.ROOT_PATH]),w(this._data,i.ROOT_PATH);var S=Object.keys(p);for(g=0;g<S.length;g++)f("Component "+S[g]+" is in cache but could not be found.");S=Object.keys(d);for(g=0;g<S.length;g++)f("Node "+S[g]+" is in cache but could not be found.");S=Object.keys(v);for(g=0;g<S.length;g++)f("Absolute path "+S[g]+" is in cache but could not be found."
);if(this._localStorage){var x=this._localStorage.componentIds(this._local());for(g=0;g<x.length;g++)l(this._allComponents[x[g]],"Component "+x[g]+" is in local storage mapping but could not be found in the manifest.");if(e){x=Object.keys(this._allComponents);for(g=0;g<x.length;g++){var T=x[g],N=this._allComponents[T],C=this._localStorage.componentAssetPath(N,this._local());l(C,"Component "+T+" does not have an entry in local storage mapping.")&&n&&l(n.existsSync(C),"Asset "+C+" does not exist.")
}}var k=this._componentSourceHrefLookup();if(k){x=Object.keys(k),y=x.length;for(g=0;g<y;g++){var L=this._allComponents[x[g]];L?l(L.state==="modified","Component "+x[g]+" is in local source href mapping but has a state of "+L.state):l(!1,"Component "+x[g]+" is in local source href mapping but could not be found in the manifest.")}}}return o.length?o:null},a}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/components/dcx-js/src/AdobeDCXElement",["require","exports","module","./AdobeDCXBranchCore"
,"./AdobeDCXError","./AdobeDCXUtil"],function(e,t,n){"use strict";function u(e,t,n){this._owner=t;if(e)e=this._setData(e,n);else{var i=s.generateUuid();e={id:i},this._core=new r(e,this,n),this._data=e}}var r=e("./AdobeDCXBranchCore"),i=e("./AdobeDCXError"),s=e("./AdobeDCXUtil"),o=5;return Object.defineProperties(u.prototype,{rootNode:{get:function(){return this._core.rootNode},set:function(e){this._core.rootNode=e}},name:{get:function(){return this._core.rootNode.name},set:function(e){var t=this.
_core;if(t._readOnly)throw new i(i.READ_ONLY,"This object is read-only.");if(typeof e!="string"&&typeof e!="undefined")throw new i(i.INVALID_PARAMS,"Expecting a string or undefined.");t.rootNode.name=e}},type:{get:function(){return this._core.rootNode.type},set:function(e){var t=this._core;if(t._readOnly)throw new i(i.READ_ONLY,"This object is read-only.");if(typeof e!="string"||e==="")throw new i(i.INVALID_PARAMS,"Expecting a non-empty string.");t.rootNode.type=e}},compositeHref:{get:function(){
return this._owner.compositeHref},set:function(e){throw new i(i.READ_ONLY,'Property "compositeHref" is read-only.')}},_localStorage:{get:function(){return this._core._localStorage},set:function(e){this._core._localStorage=e}},hasLocalStorage:{get:function(){return this._core.hasLocalStorage},set:function(e){this._core.hasLocalStorage=e}},_isDirty:{get:function(){return this._core._isDirty},set:function(e){this._core._isDirty=e}},isDirty:{get:function(){return this._isDirty},set:function(e){this._core
.isDirty=e}},changeCount:{get:function(){return this._core.changeCount},set:function(e){this._core.changeCount=e}}}),u.prototype.getChildWithId=function(e){return this._core.getChildWithId(e)},u.prototype.getChildWithAbsolutePath=function(e){return this._core.getChildWithAbsolutePath(e)},u.prototype.getChildrenOf=function(e){return this._core.getChildrenOf(e)},u.prototype.addChild=function(e,t,n,r){return this._core.addChild(e,t,n,r)},u.prototype.removeChild=function(e){return this._core.removeChild
(e)},u.prototype.moveChild=function(e,t,n){return this._core.moveChild(e,t,n)},u.prototype.copyChild=function(e,t,n,r,i,s){return this._core.copyChild(e,t,n,r,i,s)},u.prototype.allComponents=function(){return this._core.allComponents()},u.prototype.getComponentWithId=function(e){return this._core.getComponentWithId(e)},u.prototype.getComponentWithAbsolutePath=function(e){return this._core.getComponentWithAbsolutePath(e)},u.prototype.getComponentsOf=function(e){return this._core.getComponentsOf(e)
},u.prototype.addComponent=function(e,t,n,r,i,s,o,u,a,f){return this._core.addComponent(e,t,n,r,i,s,o,u,a,f)},u.prototype.addComponentWithUploadResults=function(e,t,n,r,i){return this._core.addComponentWithUploadResults(e,t,n,r,i)},u.prototype.updateComponent=function(e,t,n,r){return this._core.updateComponent(e,t,n,r)},u.prototype.updateComponentWithUploadResults=function(e,t){return this._core.updateComponentWithUploadResults(e,t)},u.prototype.removeComponent=function(e){return this._core.removeComponent
(e)},u.prototype.moveComponent=function(e,t){return this._core.moveComponent(e,t)},u.prototype.copyComponent=function(e,t,n,r,i){return this._core.copyComponent(e,t,n,r,i)},u.prototype.assetOfComponent=function(e,t){return this._core.assetOfComponent(e,t)},u.prototype.parse=function(e){if(typeof e!="string")throw new i(i.INVALID_PARAMS,'Param "data" must be a string');var t=null;try{t=JSON.parse(e)}catch(n){throw new i(i.INVALID_JSON,"Manifest could not be parsed. Underlying error: "+n.message)}return this
._setData(t,this._core._readOnly)},u.prototype.copy=function(){return new u(JSON.parse(JSON.stringify(this._data)),this._owner)},u.prototype._updateLocalDataFromBranch=function(e){if(this._readOnly)throw new i(i.READ_ONLY,"This object is read-only.");if(!this._localStorage)throw new i(i.NO_LOCAL_STORAGE,"No local storage.");if(!e._localStorage)throw new i(i.NO_LOCAL_STORAGE,"No local storage for source.");if(this._localStorage.compositePath!==e._localStorage.compositePath)throw new i(i.INVALID_PARAMS
,"Branches must have same storage path.");this._core._localStorage.copyLocalStorageData(e,e._core._local(),this,this._core._local()),this._core._copySourceHrefsFrom(e._core)},u.prototype._verify=function(e){return typeof e.id!="string"?new i(i.INVALID_DATA,"Element is missing an id of type string"):typeof e.name!="string"?new i(i.INVALID_DATA,"Element is missing a name of type string"):typeof e.type!="string"?new i(i.INVALID_DATA,"Element is missing a type of type string"):null},u.prototype._setData=
function(e,t){var n=this._verify(e);if(n===null)return this._core=new r(e,this,t),this._data=e,this;throw n},u.prototype._local=function(){return this._core._local()},u.prototype._setDirty=function(e){this._core._setDirty(e)},u.prototype._setPathOfNode=function(e,t){this._core._setPathOfNode(e,t)},u.prototype._verifyIntegrity=function(e,t,n){return this._core._verifyIntegrity(e,t,n)},u}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/components/dcx-js/src/AdobeDCXBranch",["require"
,"exports","module","./AdobeDCXBranchCore","./AdobeDCXElement","./AdobeDCXError","./AdobeDCXUtil"],function(e,t,n){"use strict";function a(e,t,n){if(e)e=this._setData(e,t);else{var i=o.generateUuid();e={"manifest-format-version":u,id:i},this.originalManifestFormatVersion=u,this._core=new r(e,this,t),this._data=e}this._pendingElements=[],this.manifestPath=n}function f(e){var t,n,r=e.components;if(r){n=r.length;for(t=0;t<n;t++){var i=r[t];delete i.localStorageAssetId}}var s=e.children;if(s){n=s.length
;for(t=0;t<n;t++)f(s[t])}}function l(e,t){t&&e.path&&delete e.path;var n,r=e.components;if(typeof r=="object")for(n=0;n<r.length;n++){var i=r[n];typeof i.version=="number"&&(i.version=i.version.toString())}var s=e.children;if(typeof s=="object")for(n=0;n<s.length;n++){var o=s[n];l(o)}}function c(e){var t=e["manifest-format-version"];if(t<u){if(t<4)throw new s(s.INVALID_DATA,"Encountered manifest format version "+e["manifest-format-version"]+". Format version conversion not yet implemented for that version."
);t<5&&f(e),t<6&&l(e,!0)}}var r=e("./AdobeDCXBranchCore"),i=e("./AdobeDCXElement"),s=e("./AdobeDCXError"),o=e("./AdobeDCXUtil"),u=6;return a._newBranchAsCopyOfCore=function(e,t){var n=JSON.parse(JSON.stringify(e._data)),r=new a(n),i=r._core;return r._localStorage=t,r._resetIdentity(function(n){var r=e.getComponentWithId(n.id);if(!r)throw new s(s.INVALID_STATE,"Could not find original component.");if(r.state==="modified"||!r.etag)throw new s(s.INVALID_STATE,"Cannot create a new composite from a branch that contains modified or unbound components."
);var o=e._getHrefOfComponent(r);if(!o)throw new s(s.INVALID_STATE,"Cannot determine the href of component id "+r.id);i._setSourceHrefOfComponent(o,n),t&&t.removeComponentAsset(n,i._local())}),r},Object.defineProperties(a.prototype,{compositeId:{get:function(){return this._core.rootNode.id},set:function(e){var t=this._core;if(t._readOnly)throw new s(s.READ_ONLY,"This object is read-only.");if(typeof e!="string"||e==="")throw new s(s.INVALID_PARAMS,"Expecting a non-empty string.");if(t._allNodes[e
])throw new s(s.DUPLICATE_VALUE,"There is already a node with the same id.");delete t._allNodes[this._data.id],this._data.id=e,t._allNodes[e]=this._core.rootNode,t._setDirty()}},rootNode:{get:function(){return this._core.rootNode},set:function(e){this._core.rootNode=e}},name:{get:function(){return this._core.rootNode.name},set:function(e){var t=this._core;if(t._readOnly)throw new s(s.READ_ONLY,"This object is read-only.");if(typeof e!="string"&&typeof e!="undefined")throw new s(s.INVALID_PARAMS,"Expecting a string or undefined."
);t.rootNode.name=e}},type:{get:function(){return this._core.rootNode.type},set:function(e){var t=this._core;if(t._readOnly)throw new s(s.READ_ONLY,"This object is read-only.");if(typeof e!="string"||e==="")throw new s(s.INVALID_PARAMS,"Expecting a non-empty string.");t.rootNode.type=e}},compositeHref:{get:function(){return this._data.local?this._data.local.compositeHref:undefined},set:function(e){var t=this._core;if(t._readOnly)throw new s(s.READ_ONLY,"This object is read-only.");if(typeof e!="string"&&typeof 
e!="undefined")throw new s(s.INVALID_PARAMS,"Expecting a string or undefined.");t._local().compositeHref=o.ensureRelativeHrefStartsWithSlash(e),t._setDirty(!0)}},_collaborationType:{get:function(){return this._data.local?this._data.local.collaborationType:undefined},set:function(e){var t=this._core;if(t._readOnly)throw new s(s.READ_ONLY,"This object is read-only.");e?t._local().collaborationType=e:delete t._local().collaborationType,t._setDirty(!0)}},_clientDataString:{get:function(){return this.
_data.local?this._data.local.clientDataString:undefined},set:function(e){var t=this._core;if(t._readOnly)throw new s(s.READ_ONLY,"This object is read-only.");e?t._local().clientDataString=e:delete t._local().clientDataString,t._setDirty(!0)}},manifestEtag:{get:function(){return this._data.local?this._data.local.manifestEtag:undefined},set:function(e){var t=this._core;if(t._readOnly)throw new s(s.READ_ONLY,"This object is read-only.");if(typeof e!="string"&&typeof e!="undefined")throw new s(s.INVALID_PARAMS
,"Expecting a string or undefined.");t._local().manifestEtag=e,t._setDirty(!0)}},compositeState:{get:function(){return this._data.state||"unmodified"},set:function(e){var t=this._core;if(t._readOnly)throw new s(s.READ_ONLY,"This object is read-only.");if(typeof e!="string")throw new s(s.INVALID_PARAMS,"Expecting a string.");if(e!=="unmodified"&&e!=="modified"&&e!=="pendingDelete"&&e!=="committedDelete")throw new s(s.INVALID_PARAMS,'State must be "modified", "unmodified", "pendingDelete", or "committedDelete".'
);if(e==="pendingDelete"&&e==="committedDelete"&&(this.compositeArchivalState==="pending"||this.compositeArchivalState==="archived"))throw new s(s.INVALID_STATE,"Cannot delete an archived composite.");this._data.state=e,t._setDirty(!0)}},compositeArchivalState:{get:function(){return this._core._local().archivalState||"active"},set:function(e){var t=this._core;if(t._readOnly)throw new s(s.READ_ONLY,"This object is read-only.");if(typeof e!="string")throw new s(s.INVALID_PARAMS,"Expecting a string."
);if(e!=="pending"&&e!=="archived"&&e!=="active")throw new s(s.INVALID_PARAMS,'State must be "pending", "archived", or undefined.');if(this.compositeArchivalState==="archived")throw new s(s.INVALID_STATE,"Composite has already been archived.");if(e!=="active"&&(this.compositeState==="pendingDelete"||this.compositeState==="committedDelete"))throw new s(s.INVALID_STATE,"Cannot archive a deleted composite.");e==="active"?delete this._core._local().archivalState:this._core._local().archivalState=e,t.
_setDirty(!0)}},isBound:{get:function(){return this.manifestEtag&&this.compositeHref},set:function(){throw new s(s.READ_ONLY,"Cannot set the property isBound. Use resetIdentity instead.")}},_localStorage:{get:function(){return this._core._localStorage},set:function(e){this._core._localStorage=e}},hasLocalStorage:{get:function(){return this._core.hasLocalStorage},set:function(e){this._core.hasLocalStorage=e}},_isDirty:{get:function(){return this._core._isDirty},set:function(e){this._core._isDirty=
e}},isDirty:{get:function(){return this._core.isDirty},set:function(e){this._core.isDirty=e}},localData:{get:function(){return this._core._stringify(!1,!0)},set:function(){throw new s(s.READ_ONLY,"Cannot set the property localData.")}},remoteData:{get:function(){return this._core._stringify(!0)},set:function(){throw new s(s.READ_ONLY,"Cannot set the property remoteData.")}},pendingElements:{get:function(){return this._pendingElements},set:function(e){throw new s(s.READ_ONLY,"Cannot set the property pendingElements."
)}},changeCount:{get:function(){return this._core.changeCount},set:function(e){this._core.changeCount=e}},readOnly:{get:function(){return this._core._readOnly},set:function(e){this._core._readOnly=e}}}),a.prototype.parse=function(e){if(typeof e!="string")throw new s(s.INVALID_PARAMS,'Param "data" must be a string');var t=null;try{t=JSON.parse(e)}catch(n){throw new s(s.INVALID_JSON,"Manifest could not be parsed. Underlying error: "+n.message)}return this._setData(t,this._core._readOnly)},a.prototype
.getElementWithId=function(e){return this._createElement(this._core.getChildWithId(e))},a.prototype.getElementWithAbsolutePath=function(e){return this._createElement(this._core.getChildWithAbsolutePath(e))},a.prototype.addElement=function(e,t,n,r,i,o){if(typeof e!="string")throw new s(s.INVALID_PARAMS,"Element must have a name of type string");if(typeof t!="string")throw new s(s.INVALID_PARAMS,"Element must have a type of type string");if(typeof n!="string")throw new s(s.INVALID_PARAMS,"Element must have a path of type string"
);var u=this._core.addChild(e,r,i,o);try{u.path=n}catch(a){throw this._core.removeChild(u),a}return u._data.type=t,this._createElement(u)},a.prototype.updateElement=function(e){var t=this.getChildWithId(e.rootNode.id);if(!t)throw new s(s.INVALID_PARAMS,"Element does not exist in branch.");var n=this._core.replaceChild(e.rootNode,t.path);return this._deleteElement(e),n},a.prototype.abandonElement=function(e){this._deleteElement(e)},a.prototype.getChildWithId=function(e){return this._core.getChildWithId
(e)},a.prototype.getChildWithAbsolutePath=function(e){return this._core.getChildWithAbsolutePath(e)},a.prototype.getChildrenOf=function(e){return this._core.getChildrenOf(e)},a.prototype.addChild=function(e,t,n,r){return this._core.addChild(e,t,n,r)},a.prototype.removeChild=function(e){return this._core.removeChild(e)},a.prototype.moveChild=function(e,t,n){return this._core.moveChild(e,t,n)},a.prototype.copyChild=function(e,t,n,r,i,s){return this._core.copyChild(e,t,n,r,i,s)},a.prototype.replaceChild=
function(e,t,n,r){return this._core.replaceChild(e,t,n,r)},a.prototype.allComponents=function(){return this._core.allComponents()},a.prototype.getComponentWithId=function(e){return this._core.getComponentWithId(e)},a.prototype.getComponentWithAbsolutePath=function(e){return this._core.getComponentWithAbsolutePath(e)},a.prototype.getComponentsOf=function(e){return this._core.getComponentsOf(e)},a.prototype.addComponent=function(e,t,n,r,i,s,o,u,a,f){return this._core.addComponent(e,t,n,r,i,s,o,u,a,
f)},a.prototype.addComponentWithUploadResults=function(e,t,n,r,i){return this._core.addComponentWithUploadResults(e,t,n,r,i)},a.prototype.updateComponent=function(e,t,n,r){return this._core.updateComponent(e,t,n,r)},a.prototype.updateComponentWithUploadResults=function(e,t){return this._core.updateComponentWithUploadResults(e,t)},a.prototype.removeComponent=function(e){return this._core.removeComponent(e)},a.prototype.moveComponent=function(e,t){return this._core.moveComponent(e,t)},a.prototype.copyComponent=
function(e,t,n,r,i){return this._core.copyComponent(e,t,n,r,i)},a.prototype.replaceComponent=function(e,t,n,r){return this._core.replaceComponent(e,t,n,r)},a.prototype.assetOfComponent=function(e,t){return this._core.assetOfComponent(e,t)},a.prototype.copy=function(){var e=new a(JSON.parse(JSON.stringify(this._data)));return e._localStorage=this._localStorage,e},a.prototype._createElement=function(e){var t;if(e){var n=JSON.parse(JSON.stringify(e._data));n["manifest-format-version"]=this._data["manifest-format-version"
],delete n.path,t=new i(n,this,this._core._readOnly),t&&this._localStorage&&(t._localStorage=this._localStorage,t._updateLocalDataFromBranch(this),this._localStorage.registerInMemoryBranchOrElement(t))}return t&&this._pendingElements.push(t),t},a.prototype._deleteElement=function(e){var t=this._pendingElements.indexOf(e);if(t<0)throw new s(s.INVALID_PARAMS,"Unknown element.");this._pendingElements.splice(t,1),this._localStorage&&this._localStorage.unregisterInMemoryBranchOrElement(e)},a.prototype
._updateLocalDataFromBranch=function(e){if(this._readOnly)throw new s(s.READ_ONLY,"This object is read-only.");if(!this._localStorage)throw new s(s.NO_LOCAL_STORAGE,"No local storage.");if(!e._localStorage)throw new s(s.NO_LOCAL_STORAGE,"No local storage for source.");if(this._localStorage.compositePath!==e._localStorage.compositePath)throw new s(s.INVALID_PARAMS,"Branches must have same storage path.");this._core._localStorage.copyLocalStorageData(e,e._core._local(),this,this._core._local()),this
._core._copySourceHrefsFrom(e._core)},a.prototype._verify=function(e){return typeof e.id!="string"?new s(s.INVALID_DATA,"Manifest is missing an id of type string"):typeof e.name!="string"?new s(s.INVALID_DATA,"Manifest is missing a name of type string"):typeof e.type!="string"?new s(s.INVALID_DATA,"Manifest is missing a type of type string"):typeof e["manifest-format-version"]!="number"?new s(s.INVALID_DATA,"Manifest is missing a manifest-format-version of type number"):null},a.prototype._setData=
function(e,t){this.originalManifestFormatVersion=e["manifest-format-version"],c(e),e.local&&(e.local.version=2);var n=this._verify(e);if(n===null)return e["manifest-format-version"]=u,this._core=new r(e,this,t),this._data=e,this;throw n},a.prototype._reset=function(e,t){if(this._readOnly)throw new s(s.READ_ONLY,"This object is read-only.");this._data.local&&(delete this._data.local.manifestEtag,delete this._data.local.compositeHref),e||(this._data.id=o.generateUuid()),this._data.state="modified",
this._core._recursiveReset(this._data,t),this._core._setDirty()},a.prototype._resetBinding=function(e){this._reset(!0,e)},a.prototype._resetIdentity=function(e){this._reset(!1,e)},a.prototype._local=function(){return this._core._local()},a.prototype._setDirty=function(e){this._core._setDirty(e)},a.prototype._setPathOfNode=function(e,t){this._core._setPathOfNode(e,t)},a.prototype._verifyIntegrity=function(e,t,n){return this._core._verifyIntegrity(e,t,n)},a}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/components/dcx-js/src/AdobeDCXPushJournal"
,["require","exports","module","./AdobeDCXError","./AdobeDCXFS","./AdobeDCXUtil"],function(e,t,n){"use strict";function u(e,t,n){n?this._setData(n,e.href):this._data={"push-journal-format-version":o,"composite-href":e.href,"uploaded-components":{}},this._filePath=t,this._waitingCallbacks=[],this._commitInProgress=!1,this._needAnotherCommit=!1}var r=e("./AdobeDCXError"),i=e("./AdobeDCXFS"),s=e("./AdobeDCXUtil"),o=3;u.readJournal=function(e,t,n,r){i.readFile(e,"utf8",function(i,s){var o;i&&i.code&&
n&&(i=undefined);if(!i)try{s=JSON.parse(s),o=new u(t,e,s)}catch(a){n?o=new u(t,e):i=a}r(i,i?undefined:o)})},Object.defineProperties(u.prototype,{compositeHref:{get:function(){return this._data["composite-href"]},set:function(e){throw new r(r.READ_ONLY,"This property is read-only.")}},manifestEtag:{get:function(){return this._data.etag},set:function(e){e?this._data.etag=e:delete this._data.etag}},currentBranchEtag:{get:function(){return this._data["current-branch-etag"]},set:function(e){e?this._data
["current-branch-etag"]=e:delete this._data["current-branch-etag"]}},changeCount:{get:function(){return this._data.change},set:function(e){e?this._data.change=e:delete this._data.change}},compositeHasBeenCreated:{get:function(){return this._data["composite-created"]?!0:!1},set:function(e){e?this._data["composite-created"]=!0:delete this._data["composite-created"]}},compositeHasBeenDeleted:{get:function(){return this._data["composite-deleted"]?!0:!1},set:function(e){e?this._data["composite-deleted"
]=!0:delete this._data["composite-deleted"]}},compositeHasBeenArchived:{get:function(){return this._data["composite-archived"]?!0:!1},set:function(e){e?this._data["composite-archived"]=!0:delete this._data["composite-archived"]}},isEmpty:{get:function(){return Object.keys(this._data["uploaded-components"]).length===0&&!this.compositeHasBeenDeleted&&!this.manifestEtag},set:function(e){throw new r(r.READ_ONLY,"This property is read-only.")}},isComplete:{get:function(){return this._data.etag&&this._data
.change||this._data["composite-deleted"]||this._data["composite-archived"]?!0:!1},set:function(e){throw new r(r.READ_ONLY,"This property is read-only.")}}}),u.prototype.recordUploadedComponent=function(e,t,n,r,i,s,o){var u={etag:t,length:i,version:n,md5:r};s&&(u["storage-name"]=s),o&&(u["source-href"]=o),u.timestamp=(new Date).toISOString(),this._data["uploaded-components"][e]=u},u.prototype.idsOfAllUploadedComponents=function(){return Object.keys(this._data["uploaded-components"])};var a=6048e5;
return u.prototype.getRecordForUploadedComponent=function(e){var t=this._data["uploaded-components"][e];if(t&&!this.isComplete){var n=t.timestamp;if(!n)return this.removeRecordForUploadedComponent(e);n=new Date(n);if(isNaN(n.getTime()))return this.removeRecordForUploadedComponent(e);var r=Date.now()-n.getTime();if(r>=a)return this.removeRecordForUploadedComponent(e)}return t},u.prototype.removeRecordForUploadedComponent=function(e){delete this._data["uploaded-components"][e]},u.prototype.applyToBranch=
function(e,t){if(!this.isComplete)throw new r(r.INVALID_STATE,"Journal is not complete.");var n=e.isDirty;if(this.compositeHasBeenDeleted)e._data.state="committedDelete",e.manifestEtag=this.manifestEtag;else{this.compositeHasBeenArchived&&(e.compositeArchivalState="archived");var i=e.compositeState!=="unmodified"&&this.changeCount!==e.changeCount,s=this.idsOfAllUploadedComponents(),o,u=s.length;for(o=0;o<u;o++){var a=s[o],f=e.getComponentWithId(a);if(f){var l=this.getRecordForUploadedComponent(f.
id);f._data.etag=l.etag,f._data.length=l.length,f._data.version=l.version,f._data.md5=l.md5,l["source-href"]?e._core._getSourceHrefOfComponent(f)===l["source-href"]&&(f._data.state="unmodified",e._core._setSourceHrefOfComponent(undefined,f)):e.hasLocalStorage&&e._localStorage.componentAssetName(f,e._local())===l["storage-name"]?(f._data.state="unmodified",e._core._setSourceHrefOfComponent(undefined,f)):e.hasLocalStorage||(f._data.state="unmodified")}}e.manifestEtag=this.manifestEtag,i||(e._data.state="unmodified"
)}t&&(e._isDirty=n)},u.prototype.commitChanges=function(e){if(!this._filePath){e&&e();return}var t=this,n=function(e){t._needAnotherCommit=!1,t._commitInProgress=!0,t._waitingCallbacks=[],i.writeFileAtomically(t._filePath,JSON.stringify(t._data),"utf8",function(r){var i,s=e.length;for(i=0;i<s;i++)try{e[i](r)}catch(o){}t._needAnotherCommit?n(t._waitingCallbacks):t._commitInProgress=!1})};t._commitInProgress?(this._needAnotherCommit=!0,e&&this._waitingCallbacks.push(e)):n(e?[e]:[])},u.prototype._setData=
function(e,t){if(e["push-journal-format-version"]<=2){var n=e["uploaded-components"];if(n){var r=Object.keys(n),i,s=r.length;for(i=0;i<s;i++){var u=r[i],a=n[u];typeof a.version=="number"&&(a.version=String(a.version))}}e["push-journal-format-version"]=o}var f=this._verify(e,t);if(f===null)return this._data=e,this;throw f},u.prototype._verify=function(e,t){return e["push-journal-format-version"]!==o?new r(r.INVALID_DATA,"Wrong push journal format version."):e["composite-href"]!==t?new r(r.INVALID_DATA
,"Composite and journal hrefs mismatch."):e["uploaded-components"]?null:new r(r.INVALID_DATA,"Missing component list.")},u}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/components/dcx-js/src/AdobeDCXLocalStorage",["require","exports","module","./AdobeDCXError","./AdobeDCXUtil","./AdobeDCXFS"],function(e,t,n){"use strict";function o(e,t){if(typeof e!="string"||e==="")throw new r(r.INVALID_PARAMS,'Param "compositePath" must be a non-empty string.');this._compositePath=e,this
._preserveFileExtensions=t,this._inMemoryBranchesAndElements=[],this._inflightComponents=[]}var r=e("./AdobeDCXError"),i=e("./AdobeDCXUtil"),s=e("./AdobeDCXFS");Object.defineProperties(o.prototype,{compositePath:{get:function(){return this._compositePath},set:function(e){if(typeof e!="string"||e==="")throw new r(r.INVALID_PARAMS,'Param "compositePath" must be a non-empty string.');this._compositePath=e}}}),o.prototype.currentManifestPath=function(){return this._compositePath+"/manifest"},o.prototype
.currentBaseManifestPath=function(){return this._compositePath+"/manifest.base"},o.prototype.pulledManifestPath=function(){return this._compositePath+"/pull.manifest"},o.prototype.pushedManifestPath=function(){return this._compositePath+"/push.manifest"},o.prototype.resolvePulledBranch=function(e,t){var n=this;s.writeFileAtomically(this.currentManifestPath(),e.localData,"utf8",function(e){e?(e.code!==r.OUT_OF_SPACE&&(e=new r(r.INVALID_STATE,"Could not write current manifest.",e)),t(e)):s.move(n.pulledManifestPath
(),n.currentBaseManifestPath(),!1,function(e){e?t(new r(r.INVALID_STATE,"Could not move pull manifest.",e)):t()})})},o.prototype.acceptPushedBranch=function(e,t){var n=this;s.writeFileAtomically(this.currentManifestPath(),e.localData,"utf8",function(e){e?(e.code!==r.OUT_OF_SPACE&&(e=new r(r.INVALID_STATE,"Could not write current manifest.",e)),t(new r(r.INVALID_STATE,"Could not write current manifest.",e))):s.move(n.pushedManifestPath(),n.currentBaseManifestPath(),!1,function(e){e?t(new r(r.INVALID_STATE
,"Could not move push manifest.",e)):n._deleteJournal(t)})})},o.prototype.discardPulledBranch=function(e){var t=this;s.deleteFile(this.pulledManifestPath(),e)},o.prototype.discardPushedBranch=function(e){var t=this;s.deleteFile(this.pushedManifestPath(),function(n){n?e(n):t._deleteJournal(e)})},o.prototype.discardBaseBranch=function(e){s.deleteFile(this.currentBaseManifestPath(),e)},o.prototype.registerInMemoryBranchOrElement=function(e){if(this._inMemoryBranchesAndElements.indexOf(e)>=0)throw new 
r(r.INVALID_STATE,"Branch or element is already registered.");this._inMemoryBranchesAndElements.push(e)},o.prototype.unregisterInMemoryBranchOrElement=function(e){var t=this._inMemoryBranchesAndElements.indexOf(e);if(t<0)throw new r(r.INVALID_STATE,"Unknown branch or element.");this._inMemoryBranchesAndElements.splice(t,1)},o.prototype._deleteJournal=function(e){s.deleteFile(this.pushJournalPath(),e)};var u=/(\/)|(\.$)/;return o.prototype.componentAssetName=function(e,t){var n=t["copyOnWrite#storageIds"
],r=n?n[e.id]:null;return r&&u.test(r)&&(r=null),r},o.prototype.componentAssetPath=function(e,t){var n=this.componentAssetName(e,t);return n?this._componentPathFromName(n):null},o.prototype.ingestComponentAsset=function(e,t,n,i,o){var u=this,a=this._newFileNameForComponent(e),f=this._componentPathFromName(a);this._inflightComponents.push(a);var l=function(t){if(!t)try{u._setComponentName(e,i,a)}catch(n){t=n}var s=u._inflightComponents.indexOf(a);s<0&&!t&&(t=new r(r.INVALID_STATE,"Could not find inflight component."
)),u._inflightComponents.splice(s,1),o(t)};n?s.copyFile(t,f,l):s.move(t,f,!0,l)},o.prototype.removeComponentAsset=function(e,t){var n=t["copyOnWrite#storageIds"];n&&delete n[e.id]},o.prototype.componentIds=function(e){var t=e["copyOnWrite#storageIds"];return t?Object.keys(t):[]},o.prototype.copyLocalStorageData=function(e,t,n,r){var i=n.allComponents(),s,o=i.length,u=t["copyOnWrite#storageIds"];if(!u)return;var a=r["copyOnWrite#storageIds"];a||(a=r["copyOnWrite#storageIds"]={});for(s=0;s<o;s++){var f=
i[s],l=f.id,c=e.getComponentWithId(l);if(c&&c.etag===f.etag){var h=u[l];h&&(a[l]=h)}}},o.prototype.removeUnusedLocalFiles=function(e,t){var n=this,i,o,u,a,f,l=function(e){n._deleteComponentAsset(e,function(e){e&&!i&&(i=e),f--,f===0&&t(i)})},c=function(){try{var e,r=a.length,i=[];for(e=0;e<r;e++){var s=a[e].name,c=a[e].info;!o[s]&&c.mtime.getTime()<u&&n._inflightComponents.indexOf(s)<0&&i.push(s)}f=r=i.length;if(f>0)for(e=0;e<r;e++)l(i[e])}catch(h){t(h);return}f===0&&t()};this._gatherComponentAssetNames
([this.currentManifestPath(),this.currentBaseManifestPath(),this.pulledManifestPath(),this.pushedManifestPath()],e,function(e,n,s,f){if(i){t(i);return}if(!e)try{if(n<1||!f)throw new r(r.INVALID_STATE,n<1?"No manifest found.":"Invalid time stamp");o=s,u=f}catch(l){e=l}e&&(i=e),a&&(i?t(i):c())}),s.directoryListing(this._compositePath+"/components",function(e,n){if(i){t(i);return}if(!e)try{a=n}catch(r){e=r}e&&(i=e),o&&(i?t(i):c())})},o.prototype.tempPathForComponent=function(){return this._compositePath+"/tmp/"+
i.generateUuid()},o.prototype.deleteTempFiles=function(e){s.deleteDirectory(this._compositePath+"/tmp",e)},o.prototype.clientDataPath=function(){return this._compositePath+"/clientdata"},o.prototype.pushJournalPath=function(){return this._compositePath+"/push.journal"},o.prototype._copyComponentMapping=function(e,t,n,r){var i=t["copyOnWrite#storageIds"];if(!i)return undefined;var s=r["copyOnWrite#storageIds"];s||(s=r["copyOnWrite#storageIds"]={});var o=i[e];return o&&(s[n]=o),o},o.prototype._componentPathFromName=
function(e){return this._compositePath+"/components/"+e},o.prototype._newFileNameForComponent=function(e){var t=i.generateUuid();if(this._preserveFileExtensions){var n=e.path?i.filePathComponents(e.path).extension:null;n&&(t=t+"."+n)}return t},o.prototype._setComponentName=function(e,t,n){var r=t["copyOnWrite#storageIds"];r||(r=t["copyOnWrite#storageIds"]={}),r[e.id]=n},o.prototype._gatherComponentAssetNames=function(e,t,n){try{var r={},o=t||i.timeStamp(!0),u,a=e.length,f=a,l=0,c,h=function(e){if(
e){e=e["copyOnWrite#storageIds"];var t=Object.keys(e),n;for(n=0;n<t.length;n++){var i=e[t[n]];r[i]=!0}}},p=function(e){s.exists(e,function(t){t?(l++,s.info(e,function(t,i){if(!t)try{var u=i.mtime.getTime();u<o&&(o=u),s.readFile(e,"utf8",function(e,t){f--;if(!e)try{t=JSON.parse(t),h(t.local)}catch(i){e=i}e&&!c&&(c=e),f===0&&n(c,l,r,o)})}catch(a){t=a}t&&(f--,c||(c=t),f===0&&n(c))})):(f--,f===0&&n(c,l,r,o))})};for(u=0;u<a;u++)p(e[u]);a=this._inMemoryBranchesAndElements.length;for(u=0;u<a;u++)h(this.
_inMemoryBranchesAndElements[u]._local())}catch(d){n(d)}},o.prototype._deleteComponentAsset=function(e,t){s.deleteFile(this._componentPathFromName(e),t)},o}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/components/dcx-js/src/AdobeDCXComposite",["require","exports","module","./AdobeDCXError","./AdobeDCXBranch","./AdobeDCXPushJournal","./AdobeDCXLocalStorage","./AdobeDCXComponent","./AdobeDCXFS","./AdobeDCXUtil"],function(e,t,n){"use strict";function h(e,t,n,r,s,o){s=f.ensureRelativeHrefStartsWithSlash
(s),this._options=o||{},n?this._setPath(n):s?(this._href=s,e&&(this._name=e),t&&(this._type=t),r&&(this._id=r)):t&&(this._current=new i,e&&(this._current._data.name=e),this._current._data.type=t,r&&(this._current.compositeId=r)),this._autoRemoveUnusedLocalFiles=!0,this._options.xhrBaseBranchSupport&&(this._baseBranchData=undefined,this._pushedBranchData=undefined,this._pulledBranchData=undefined),this._collaborationType=c.PRIVATE}var r=e("./AdobeDCXError"),i=e("./AdobeDCXBranch"),s=e("./AdobeDCXPushJournal"
),o=e("./AdobeDCXLocalStorage"),u=e("./AdobeDCXComponent").STATES,a=e("./AdobeDCXFS"),f=e("./AdobeDCXUtil"),l=1024,c={PRIVATE:undefined,SHARED_BY_USER:"sharedByUser",SHARED_WITH_USER:"sharedWithUser"};return h.newCompositeAsCopyOf=function(e,t,n,s,o,u,a){var l=e._core;l||e.current&&(l=e.current._core);if(!l)throw new r(r.INVALID_PARAMS,"compositeBranchOrElement must be a branch, an element or a composite with a current branch.");var c=new h(undefined,undefined,undefined,undefined,undefined,a);return s&&
(c.path=s),c._current=i._newBranchAsCopyOfCore(l,this._localStorage),c.id=o||f.generateUuid(),t&&(c.name=t),n&&(c.type=n),u&&(c.href=u),c},h.COLLABORATION=c,Object.defineProperties(h.prototype,{id:{get:function(){return this._current?this._current.compositeId:this._id},set:function(e){if(typeof e!="string")throw new r(r.INVALID_PARAMS,"Expecting a string.");this._current&&(this._current.compositeId=e),this._id=e}},name:{get:function(){return this._current?this._current.name:this._name},set:function(
e){if(typeof e!="string")throw new r(r.INVALID_PARAMS,"Expecting a string.");this._current&&(this._current.name=e),this._name=e}},type:{get:function(){return this._current?this._current.type:this._type},set:function(e){if(typeof e!="string")throw new r(r.INVALID_PARAMS,"Expecting a string.");this._current&&(this._current.type=e),this._type=e}},href:{get:function(){return this._current?this._current.compositeHref:this._href},set:function(e){if(typeof e!="string")throw new r(r.INVALID_PARAMS,"Expecting a string."
);e=f.ensureRelativeHrefStartsWithSlash(e),this._current&&(this._current.compositeHref=e),this._href=e}},collaborationType:{get:function(){return this._current?this._current._collaborationType:this._collaborationType},set:function(e){if(e!==c.PRIVATE&&e!==c.SHARED_BY_USER&&e!==c.SHARED_WITH_USER)throw new r(r.INVALID_PARAMS,"Invalid value: ."+e);this._current&&(this._current._collaborationType=e),this._collaborationType=e}},clientDataString:{get:function(){return this._current?this._current._clientDataString
:this._clientDataString},set:function(e){if(typeof e!="string"&&e!==undefined)throw new r(r.INVALID_PARAMS,"Invalid clientDataString: must be a string or undefined.");var t=this._options.maxClientDataLength||l;if(e&&e.length>t)throw new r(r.INVALID_PARAMS,"Invalid clientDataString: cannot be greater than 1KB");this._current&&(this._current._clientDataString=e),this._clientDataString=e}},path:{get:function(){return this._path},set:function(e){if(typeof e!="string")throw new r(r.INVALID_PARAMS,"Expecting a string."
);this._setPath(e)}},isBound:{get:function(){return this._current&&this._current.isBound||!this._current&&this._href},set:function(){throw new r(r.READ_ONLY,"Cannot set the property isBound. Use resetIdentity or resetBinding instead.")}},hasLocalStorage:{get:function(){return this._localStorage},set:function(){throw new r(r.READ_ONLY,"Cannot set the property hasLocalStorage.")}},autoRemoveUnusedLocalFiles:{get:function(){if(!this._localStorage)throw new r(r.NO_LOCAL_STORAGE,"No local storage.");return this
._autoRemoveUnusedLocalFiles},set:function(e){if(!this._localStorage)throw new r(r.NO_LOCAL_STORAGE,"No local storage.");this._autoRemoveUnusedLocalFiles=e}},clientDataStoragePath:{get:function(){if(!this._localStorage)throw new r(r.NO_LOCAL_STORAGE,"No local storage.");return this._localStorage.clientDataPath()},set:function(e){throw new r(r.READ_ONLY,'Property "clientDataStoragePath" is read-only.')}},current:{get:function(){return this._current},set:function(e){throw new r(r.READ_ONLY,'Property "current" is read-only.'
)}}}),h.prototype.loadCurrentFromLocalStorage=function(e){if(!this._localStorage)throw new r(r.NO_LOCAL_STORAGE,"No local storage.");var t=this;this._loadBranch(this._localStorage.currentManifestPath(),!1,function(n,r){if(!n&&r)try{t._current=r,t._currentBranchCommittedAtDate=f.timeStamp(!0)}catch(i){n=i}e(n,n?undefined:r)})},h.prototype.commitChanges=function(e){if(!this._localStorage)throw new r(r.NO_LOCAL_STORAGE,"No local storage.");if(!this._current)return e(new r(r.INVALID_STATE,"Current branch is not in memory."
));var t=this;a.writeFileAtomically(this._localStorage.currentManifestPath(),this._current.localData,"utf8",function(n){if(!n)try{t._currentBranchCommittedAtDate=f.timeStamp(!0),t._current._isDirty=!1}catch(r){n=r}e(n)})},h.prototype.tempAssetPath=function(){if(!this._localStorage)throw new r(r.NO_LOCAL_STORAGE,"No local storage.");return this._localStorage.tempPathForComponent()},h.prototype.deleteTempFiles=function(e){if(!this._localStorage)throw new r(r.NO_LOCAL_STORAGE,"No local storage.");this
._localStorage.deleteTempFiles(function(t){e&&e(t)})},h.prototype.removeUnusedLocalFiles=function(e){if(!this._localStorage)throw new r(r.NO_LOCAL_STORAGE,"No local storage.");this._localStorage.removeUnusedLocalFiles(this._currentBranchCommittedAtDate,e)},h.prototype.removeLocalFilesForComponentsWithIDs=function(e,t){if(!this._localStorage)throw new r(r.NO_LOCAL_STORAGE,"No local storage.");if(!e)throw new r(r.INVALID_PARAMS,"Param componentIds must not be nil.");var n=this,i=this._current;n._loadBranch
(n._localStorage.currentManifestPath(),!0,function(s,o){s&&s.code!=="ENOENT"?t([s]):n.loadBaseBranch(function(s,f){if(s&&s.code!=="ENOENT")t([s]);else{var l,c="/META-INF/metadata.xml",h=[],p,d={};for(l=0;l<e.length;++l){var v=e[l],m=i.getComponentWithId(v),g=o?o.getComponentWithId(v):undefined,y=f?f.getComponentWithId(v):undefined;if(m&&m.absolutePath===c||g&&g.absolutePath===c||y&&y.absolutePath===c)continue;if(m&&m.state===u.modified||g&&g.state===u.modified){var b=new r(r.COMPONENT_MODIFIED_ERROR
,"Cannot remove the file of a modified component.");b.componentId=v,h.push(b);continue}m&&(p=i.assetOfComponent(m),p&&(d[p]===undefined&&(d[p]=v),n._localStorage.removeComponentAsset(m,i._local()),i._setDirty(!0))),g&&(p=o.assetOfComponent(g),p&&d[p]===undefined&&(d[p]=v)),y&&(p=f.assetOfComponent(y),p&&d[p]===undefined&&(d[p]=v))}var w=Object.keys(d),E=w.length;if(E>0){var S=function(e){a.deleteFile(e,function(n){n&&(n.componentId=d[e],h.push(n)),E--,E===0&&t(h.length>0?h:undefined)})};for(l=0;l<
w.length;++l)S(w[l])}else t(h.length>0?h:undefined)}})})},h.prototype.removeLocalStorage=function(e){if(!this._localStorage)throw new r(r.NO_LOCAL_STORAGE,"No local storage.");if(!this._path)return e(new r(r.INVALID_STATE,"No path set."));a.deleteDirectory(this._path,e)},h.prototype.loadBaseBranch=function(e){if(!this._localStorage&&!this._baseBranchData)throw new r(r.NO_LOCAL_STORAGE,"No local storage.");if(this._localStorage)this._loadBranch(this._localStorage.currentBaseManifestPath(),!0,e);else{
var t,n;try{n=(new i(undefined,!0)).parse(this._baseBranchData)}catch(s){t=s}e(t,n)}},h.prototype.loadPulledBranch=function(e){if(!this._localStorage)throw new r(r.NO_LOCAL_STORAGE,"No local storage.");this._loadBranch(this._localStorage.pulledManifestPath(),!1,e)},h.prototype.loadPushedBranch=function(e){if(!this._localStorage)throw new r(r.NO_LOCAL_STORAGE,"No local storage.");this._loadBranch(this._localStorage.pushedManifestPath(),!1,e)},h.prototype.resolvePullWithBranch=function(e,t){if(!e)throw new 
r(r.INVALID_PARAMS,"Need a branch.");if(e===this._current)throw new r(r.INVALID_PARAMS,"Cannot resolve current.");if(this._localStorage&&!t)throw new r(r.INVALID_PARAMS,"Need a callback function.");var n=this,i=function(){e.readOnly=!1,e._collaborationType=n.collaborationType,e._clientDataString=n.clientDataString,n._current=e};if(this._localStorage)n._localStorage.resolvePulledBranch(e,function(e){if(!e)try{i(),n._autoRemoveUnusedLocalFiles&&n._localStorage.removeUnusedLocalFiles(n._currentBranchCommittedAtDate
,function(e){})}catch(r){e=r}t(e,e?undefined:n._current)});else{this._options.xhrBaseBranchSupport&&(this._baseBranchData=this._pulledBranchData,this._pulledBranchData=undefined),i();if(!t)return this._current;t(undefined,this._current)}},h.prototype.acceptPush=function(e){if(this._localStorage&&!e)throw new r(r.INVALID_PARAMS,"Need a callback function.");var t,n,i=this,o=function(r){if(!r)if(t)try{i._localStorage?(t.applyToBranch(n),i._localStorage.acceptPushedBranch(n,function(n){if(!n)try{t.applyToBranch
(i._current,!0),i._autoRemoveUnusedLocalFiles&&i._localStorage.removeUnusedLocalFiles(i._currentBranchCommittedAtDate,function(e){})}catch(r){n=r}e(n)})):(t.applyToBranch(i._current,!0),i._options.xhrBaseBranchSupport&&(i._baseBranchData=i._pushedBranchData,i._pushedBranchData=undefined),i._pushJournal=undefined,e&&e())}catch(s){r=s}else e&&e();if(r){if(!e)throw r;e(r)}};if(!this._localStorage)return t=this._pushJournal,o();var u,a=2;s.readJournal(i._localStorage.pushJournalPath(),i,!1,function(e
,n){a--,u?o():(e?e.code!=="ENOENT"&&(u=new r(r.INVALID_STATE,"Failed to load push journal.",e)):t=n,a||o())}),this._loadBranch(this._localStorage.currentManifestPath(),!1,function(e,t){a--,u?o():(e?u=new r(r.INVALID_STATE,"Failed to load current manifest.",e):n=t,a||o())})},h.prototype.discardPulledBranch=function(e){if(!this._localStorage)throw new r(r.NO_LOCAL_STORAGE,"No local storage.");var t=this;this._localStorage.discardPulledBranch(function(n){if(!n){try{t._autoRemoveUnusedLocalFiles&&t._localStorage
.removeUnusedLocalFiles(t._currentBranchCommittedAtDate,function(e){})}catch(r){n=r}e(n)}n&&e(n)})},h.prototype.discardPushedBranch=function(e){if(!this._localStorage)throw new r(r.NO_LOCAL_STORAGE,"No local storage.");var t=this;this._localStorage.discardPushedBranch(function(n){if(!n){try{t._autoRemoveUnusedLocalFiles&&t._localStorage.removeUnusedLocalFiles(t._currentBranchCommittedAtDate,function(e){})}catch(r){n=r}e(n)}n&&e(n)})},h.prototype.resetBinding=function(e){delete this._href,this._current&&
this._current._resetBinding(),this._localStorage?this._discardEveryBranchButCurrent(e):(this._baseBranchData=undefined,this._pushedBranchData=undefined,this._pulledBranchData=undefined,e&&e())},h.prototype.resetIdentity=function(e){var t=this;delete this._href,this._current?(this._current._resetIdentity(),this._id=this._current.compositeId):this._id=f.generateUuid(),this._localStorage?this._discardEveryBranchButCurrent(e):(this._baseBranchData=undefined,this._pushedBranchData=undefined,this._pulledBranchData=
undefined,e&&e())},h.prototype._loadBranch=function(e,t,n){if(typeof n!="function")throw new r(r.INVALID_PARAMS,'Param "callback" must be a function.');var s=this;a.exists(e,function(r){r?a.readFile(e,"utf8",function(r,o){var u;if(!r)try{u=(new i(undefined,t,e)).parse(o),u._localStorage=s._localStorage}catch(a){r=a}n(r,u)}):n()})},h.prototype._discardEveryBranchButCurrent=function(e){if(!this._localStorage)throw new r(r.NO_LOCAL_STORAGE,"No local storage.");var t=this,n=3,i,s=function(r){r&&!i&&(
i=r),n--,n===0&&(!i&&t._autoRemoveUnusedLocalFiles&&t._localStorage.removeUnusedLocalFiles(t._currentBranchCommittedAtDate,function(e){}),e(i))};this._localStorage.discardPushedBranch(s),this._localStorage.discardPulledBranch(s),this._localStorage.discardBaseBranch(s)},h.prototype._setPath=function(e){this._localStorage?this._localStorage.compositePath=e:a.canUseFileSystem&&(this._localStorage=new o(e,this._options.preserveFileExtensions),this._current&&(this._current._localStorage=this._localStorage
)),this._path=e},h});if(typeof nodeRequire!="function")var nodeRequire=require;define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/components/dcx-js/src/AdobeNetworkHTTPService",["require","exports","module","./AdobeDCXUtil","./AdobeDCXError","./AdobeDCXFS"],function(e,t,n){"use strict";function c(e){this.filename=e}function h(){}function p(e){this._requestQueue=[],this._requestsOutstanding=[],this._rejectedAuths=[],this._authCallback=e,this._isActive=!0,this._waitingForAuthentication=!1
,this._currentAuthId=r.generateUuid(),this._https=u,this._XMLHttpRequest=o,this._handlesRedirects=o!==undefined,this._maxOutstanding=5}var r=e("./AdobeDCXUtil"),i=e("./AdobeDCXError"),s=e("./AdobeDCXFS"),o,u,a;typeof global!="undefined"&&global.Buffer?(u=nodeRequire("https"),a=nodeRequire("url")):o=window.XMLHttpRequest;var f=r.merge,l=3e5;return Object.defineProperties(p.prototype,{isActive:{get:function(){return this._isActive},set:function(e){var t=this._isActive;t!==e&&(this._isActive=e,e||(this
._authValue=undefined,this._checkQueue()))}},crossOriginCredentials:{get:function(){return this._withCredentials},set:function(e){this._withCredentials=e}},maxOutstanding:{get:function(){return this._maxOutstanding},set:function(e){this._maxOutstanding=e,this._checkQueue()}},handlesRedirects:{get:function(){return this._handlesRedirects}}}),p.prototype._forceXhr=function(e,t){this._https=undefined,this._XMLHttpRequest=e||o||nodeRequire("xhr2"),this._handlesRedirects=!t},p.FileContent=c,p.StreamProvider=
h,p.prototype.setAdditionalHeaders=function(e){this._additionalHeaders=e||{}},p.prototype.setAdditionalNodeOptions=function(e){this._additionalNodeOptions=e},p.prototype.setApiKey=function(e){this._apiKey=e},p.prototype.setTimeout=function(e){this._timeout=e},p.prototype.setAuthToken=function(e){e?(this._authValue="Bearer "+e,this.resume()):(this._authValue=undefined,this._currentAuthId=r.generateUuid())},p.prototype.resume=function(){this._currentAuthId=r.generateUuid(),this._waitingForAuthentication=!1
,this._checkQueue()},p.prototype.setRequestHooks=function(e,t){this._beforeHook=e,this._afterHook=t},p.prototype.invoke=function(e,t,n,o,u,a){u=u||{};var l=u.responseType;if(l instanceof c){if(!s.canUseFileSystem)throw new i(i.INVALID_PARAMS,"No filesystem access")}else if(l==="buffer"){if(typeof Buffer!="function")throw new i(i.INVALID_PARAMS,"No Buffer class")}else if(l==="blob"){if(typeof Blob!="function")throw new i(i.INVALID_PARAMS,"No Blob class")}else if(l&&l!=="text"&&l!=="json"&&l!=="arraybuffer"
)throw new i(i.INVALID_PARAMS,"Unsupported response type");n=f({},n,this._additionalHeaders),this._apiKey&&(n["x-api-key"]=this._apiKey);var h={method:e,href:t,headers:n,callback:a,body:o,options:u},p=u.reuseRequestDesc;if(p){if(this._requestQueue.indexOf(p)>=0||this._requestsOutstanding.indexOf(p)>=0)throw new i(i.INVALID_PARAMS,"Request descriptor still in use.");h=r.merge(p,h)}return this._doRequest(h),h},p.prototype._doRequest=function(e){function m(n,s){n&&r.log("["+e.id+"] error: "+n),u&&u.
end();var o=t._requestsOutstanding.indexOf(e);o>=0&&t._requestsOutstanding.splice(o,1);var a=e.callback;a&&(e.callback=undefined,n&&(n.clientRequest=e.clientRequest,n.xhr=e.xhr),n&&n.code!==i.SERVICE_IS_INACTIVE&&!t._isActive?n=new i(i.SERVICE_IS_INACTIVE,"Service is now inactive",n):e.timedOut&&(n=new i(i.TIMED_OUT,"timed out request",n)),a(n,s)),t._isActive&&t._checkQueue()}function g(n){function h(){if(a)return;return a=!0,u=undefined,m(undefined,n)}var o=!1,a=!1,f=!1,p=t._requestsOutstanding.
indexOf(e);if(p<0){t._checkQueue();return}e.response=n;var v=(new Date).valueOf()-e.startTime;r.log("["+e.id+"] "+n.statusCode+" ("+v+"ms)");if(n.statusCode===401&&t._authCallback)t._requestsOutstanding.splice(p,1),t._requestQueue.unshift(e),t._authFail(e),r.consumeStream(n);else{var g=e.progress;n.statusCode===200||n.statusCode===201||n.statusCode===202?(n.on("data",function(e){e.length&&g&&g(e.length),!u&&e&&l.push(e)}),t._https&&d instanceof c&&(u=s.createWriteStream(d.filename),n.pipe(u),o=!0
)):r.consumeStream(n),n.once("end",function(){f=!0;var r=t._requestsOutstanding.indexOf(e);if(r<0)return;t._requestsOutstanding.splice(r,1),t._checkQueue();if(o)return;if(a)return;return a=!0,n.response=Buffer.concat(l),d==="arraybuffer"?n.response=new ArrayBuffer(n.response):d==="text"&&(n.response=n.response.toString()),m(undefined,n)}),n.once("close",function(){if(f)return;if(a)return;return a=!0,m(new i(i.NETWORK_ERROR,"incomplete response"))}),o&&(u.once("finish",h),u.once("close",h))}}function y
(){var u=e.progress;if(u&&n.response){var a=n.response.length;u(a-o),o=a}if(n.readyState!==4)return;if(n.status===0)return m(new i(i.UNEXPECTED,"XHR failure"));var f=t._requestsOutstanding.indexOf(e);if(f<0){t._checkQueue();return}var l=(new Date).valueOf()-e.startTime;r.log("["+e.id+"] "+n.status+" ("+l+"ms)"),t._requestsOutstanding.splice(f,1);if(n.status!==401||!t._authCallback){e.xhr=n,e.response=n,n.statusCode=n.status,n.headers=r.parseHeaders(n.getAllResponseHeaders());if(d instanceof c){var h=
n.response.response;s.writeFileAtomically(d.filename,h,undefined,function(e){return e?m(new i(i.UNEXPECTED,"Can't create file",e,n)):m(undefined,n)});return}return u&&p&&u(p.length||p.size),m(undefined,n)}t._requestQueue.unshift(e),t._authFail(e),t._checkQueue()}function b(n){n.pipe(v),n.on("error",function(n){return t.abort(e),m(new i(i.TERMINATED_INPUTSTREAM,"Input stream terminated abnormally",n))})}var t=this,n,o=0,u,l=[],p=e.body,d=e.options.responseType,v;if(!this._isActive)return m(new i(i
.SERVICE_IS_INACTIVE,"Network request in inactive state"));if(this._waitingForAuthentication||this._requestsOutstanding.length>=this._maxOutstanding||e.options.noSoonerThen)this._requestQueue.push(e),this._waitingForAuthentication||this._checkQueue();else{var w=e.headers;if(w.Authorization===null)delete w.Authorization;else{if(!this._allowAuthTokenToBeSentInsecurely_DONT_USE_THIS_IN_PRODUCTION&&e.href.indexOf("https:")!==0)return m(new i(i.INVALID_PARAMS,"Must not send auth token over unsecured connection"
));this._authValue&&(w.Authorization=this._authValue)}this._currentAuthId&&(e.authId=this._currentAuthId),this._beforeHook&&this._beforeHook(e),e.id=r.generateUuid(),e.startTime=(new Date).valueOf(),w["X-Request-Id"]=e.id;if(this._https){this._requestsOutstanding.push(e);var E=a.parse(e.href),S=f({},this._additionalNodeOptions,E);S.method=e.method||"GET",S.headers=w,r.log("["+e.id+"] "+S.method+" "+e.href),v=this._https.request(S,g),e.clientRequest=v,v.once("error",m),t._timeout&&v.setTimeout(t._timeout
,function(){e.timedOut=!0,v.abort()}),e.bytesSent=0,e.bytesReported=0,v.once("end",function(){if(e.progress){var t=e.bytesSent-e.bytesReported;t>0&&(e.progress(t),e.bytesReported+=t)}});var x=v.write;v.write=function(t){var n=t&&t.length;return n&&(e.bytesSent+=n),x.call(v,t,function(){e.progress&&t&&(e.progress(n),e.bytesReported+=n)})};if(p instanceof c){var T=s.createReadStream(p.filename);b(T)}else if(p instanceof h)if(p.getStream){var N=p.getStream();b(N)}else p.getStreamAsync&&p.getStreamAsync
(function(n,r){if(n)return t.abort(e),m(new i(i.TERMINATED_INPUTSTREAM,"Error creating input stream",n));b(r)});else if(p instanceof Buffer)v.write(p),v.end();else if(p instanceof ArrayBuffer)v.write(new Buffer(new Int8Array(p))),v.end();else if(typeof p=="string")v.write(new Buffer(p,"utf8")),v.end();else{if(!!p)return m(new i(i.INVALID_PARAMS,"Invalid data type"));v.end()}this._afterHook&&this._afterHook(e,v)}else{if(p instanceof c){if(!s.canUseFileSystem)return m(new i(i.INVALID_PARAMS,"Can't use FileContent without filesystem support"
));s.readFile(p.filename,{},function(n,r){if(n)return m(n);e.body=r,t._doRequest(e)});return}typeof Buffer=="function"&&p instanceof Buffer&&(e.body=p=new Int8Array(p)),this._requestsOutstanding.push(e),r.log("["+e.id+"] "+e.method+" "+e.href),n=new this._XMLHttpRequest,n.open(e.method,e.href,!0),this._withCredentials&&(n.withCredentials=!0),d&&(d instanceof c?n.responseType="buffer":n.responseType=d),n.onreadystatechange=y;var C;for(C in w)w.hasOwnProperty(C)&&n.setRequestHeader(C,w[C]);e.xhr=n,
t._timeout&&(n.timeout=t._timeout,n.ontimeout=function(){e.timedOut=!0,n.abort()}),p?n.send(p):n.send(),this._afterHook&&this._afterHook(e,n)}}},p.prototype._authFail=function(e){if(this._authCallback){var t=e.authId;if(this._rejectedAuths.indexOf(t)!==-1)return;this._authValue=null,this._waitingForAuthentication=!0,this._rejectedAuths.unshift(t)>this._maxOutstanding&&(this._rejectedAuths.length=this._maxOutstanding),this._authCallback(this)}},p.prototype._checkQueue=function(){if(!this._isActive
){var e=this._requestsOutstanding;this._requestsOutstanding=[],e.forEach(function(e){e.xhr&&e.xhr.abort(),e.clientRequest&&e.clientRequest.abort();var t=e.callback;if(t){e.callback=undefined;var n=new i(i.SERVICE_IS_INACTIVE,"Network request in inactive state");t(n)}});var t=this._requestQueue;this._requestQueue=[],t.forEach(function(e){var t=new i(i.SERVICE_IS_INACTIVE,"Network request in inactive state"),n=e.callback;n&&(e.callback=undefined,n(t))}),this._checkQueueTimerId&&(clearTimeout(this._checkQueueTimerId
),this._checkQueueTimerId=undefined,this._checkQueueTimerWhen=undefined);return}var n,r=Date.now(),s=r+l,o=0;for(;;){if(this._waitingForAuthentication||this._requestsOutstanding.length>=this._maxOutstanding||o>=this._requestQueue.length)break;var u=this._requestQueue[o];n=u.options.noSoonerThen||r,n&&n>s&&(n=u.options.noSoonerThen=s),n<=r?(this._requestQueue.splice(o,1),u.options.noSoonerThen=undefined,this._doRequest(u)):o++}if(!this._waitingForAuthentication&&this._requestsOutstanding.length<this
._maxOutstanding&&this._requestQueue.length>0){var a,f,c=this._requestQueue.length;for(f=0;f<c;f++)n=this._requestQueue[f].options.noSoonerThen,n&&n>s&&(n=this._requestQueue[f].options.noSoonerThen=s),n&&(a=a?a<n?a:n:n);if(a&&(!this._checkQueueTimerWhen||this._checkQueueTimerWhen>a)){this._checkQueueTimerId&&clearTimeout(this._checkQueueTimerId),this._checkQueueTimerWhen=a;var h=this;this._checkQueueTimerId=setTimeout(function(){h._checkQueueTimerWhen=undefined,h._checkQueueTimerId=undefined,h._checkQueue
()},a-r)}}},p.prototype.abort=function(e){var t=this._requestQueue.indexOf(e);if(t>=0){this._requestQueue.splice(t,1);return}t=this._requestsOutstanding.indexOf(e),t>=0&&(this._requestsOutstanding.splice(t,1),e.xhr&&e.xhr.abort(),e.clientRequest&&e.clientRequest.abort(),this._checkQueue())},p.prototype.abortAllWithToken=function(e){if(!e)return;var t;for(t=0;t<this._requestQueue.length;++t)this._requestQueue[t].token===e&&(this._requestQueue.splice(t,1),--t);for(t=0;t<this._requestsOutstanding.length
;++t)if(this._requestsOutstanding[t].token===e){var n=this._requestsOutstanding[t];this._requestsOutstanding.splice(t,1),--t,n.xhr&&n.xhr.abort(),n.clientRequest&&n.clientRequest.abort()}this._checkQueue()},p}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/components/dcx-js/src/AdobeSessionBase",["require","exports","module","./AdobeDCXError","./AdobeDCXUtil","./AdobeNetworkHTTPService"],function(e,t,n){"use strict";function h(e,t){this._service=e,this._server=t,t&&(this.
_endPoint=o.endPointOf(t)),this.SYNC_ASYNC_DEFAULT_DELAY=5,this.ASYNC_DEFAULT_DELAY=1,this.DEFAULT_POLL_DELAY=10,this._maxRedirects=5,this._authenticationWhitelist=[]}var r=e("./AdobeDCXError"),i=r.networkError,s=r.unexpectedResponse,o=e("./AdobeDCXUtil"),u=o.merge,a=e("./AdobeNetworkHTTPService"),f=o.appendPathElements,l="If-Match",c="If-None-Match";return h.FileContent=a.FileContent,h.StreamProvider=a.StreamProvider,Object.defineProperties(h.prototype,{maxRedirects:{get:function(){return this._maxRedirects
},set:function(e){if(typeof e!="number")throw new r(r.INVALID_PARAMS,"Expecting a number.");this._maxRedirects=Math.floor(e)}},authenticationWhitelist:{get:function(){return this._authenticationWhitelist},set:function(e){if(!Array.isArray(e))throw new r(r.INVALID_PARAMS,"Expecting an array.");this._authenticationWhitelist=e}}}),h.prototype.isValidHref=function(e){var t=o.endPointOf(e);return!t||t===this._endPoint},h.prototype.isDomainOnWhitelist=function(e){var t=o.parseURI(e).authority;if(!t||t.
length===0)return!0;var n=t.length,r,i=this._authenticationWhitelist.length;for(r=0;r<i;r++){var s=this._authenticationWhitelist[r],u=s.length,a;n>u?a=t.slice(-u):a=t;if(a===s)return!0}return!1},h.prototype.getAsset=function(e,t,n,a){function v(e,t){if(e)return a(i("Error downloading an asset",e,t));var n=t.statusCode;if(n===200)a(undefined,t);else if(n===304)a(undefined,t);else if(n===301||n===302||n===303||n===307)if(!h._service.handlesRedirects&&h.maxRedirects)if(p<h.maxRedirects){var r=t.headers
.location;r?d(r):a(s("Missing location header in redirect response",e,t))}else a(s("Too many redirects",e,t));else a(s("Unexpected response getting an asset",e,t));else a(s("Unexpected response getting an asset",e,t))}e=this._resolveUrl(e);if(!e)return a(new r(r.WRONG_ENDPOINT,"Wrong endpoint: "+e));var f,l={};typeof t=="string"?l[c]=t:u(l,t);var h=this,p=0,d;return d=function(t){var r={responseType:n};return t&&(p++,r.reuseRequestDesc=f,h.isDomainOnWhitelist(t)||(l.Authorization=null)),h._service
.invoke("GET",t||e,l,undefined,r,v)},f=d(),f.progress=o.noOp,f},h.prototype.getAssetAsType=function(e,t,n,r){function o(e,t){if(e)return r(e);if(t.statusCode===200){var n=t.response||t.responseText;r(undefined,n,t.headers.etag,t)}else t.statusCode===304?r(undefined,null,t.headers.etag,t):r(s("Unexpected response getting asset",e,t))}var i;return this.getAsset(e,n,t,o)},h.prototype._resolveUrl=function(e){var t=o.endPointOf(e);return t?t!==this._endPoint?undefined:e:f(this._server,e)},h.prototype.
_makeRelativeUrl=function(e){var t=o.endPointOf(e);if(t){if(t!==this._endPoint)return undefined;var n=o.parseURI(e);if(n.scheme||n.authority)e=n.path,n.query&&(e+="?"+n.query),n.fragment&&(e+="#"+n.fragment)}return e},h.prototype._parseAsyncResponse=function(e){var t=e.responseText||e.response;if(!t)throw new r(r.INVALID_DATA,"No body data.");var n={},i=t.indexOf("\n");if(i===-1)throw new r(r.INVALID_DATA,"Could not find status line.");var s=t.slice(0,t.charCodeAt(i-1)===13?i-1:i),u=s.split(" ");
n.statusCode=parseInt(u[1],10);if(!n.statusCode)throw new r(r.INVALID_DATA,"Could not find status code.");u.length>2&&(n.statusText=u[2]);var a=t.search(/\r?\n\r?\n/);a===-1&&(a=t.length);var f=t.slice(i+1,a);n.headers=o.parseHeaders(f);var l=t.charAt(a)==="\r"?a+4:a+2;return n.response=t.slice(l),n},h.prototype._pollForAsyncResponse=function(e,t,n,r){var u=this,a=Date.now()+t*1e3,f={responseType:"text",reuseRequestDesc:n,noSoonerThen:a};o.log("asynchronous request - polling"),n=this._service.invoke
("GET",e,undefined,undefined,f,function(t,a){if(t)return r(i("Error polling for an asynchronous reponse",t,a));var f=a.statusCode;if(f===202){o.log("asynchronous request - not yet ready");var l=a.headers["retry-after"];l&&(l=parseInt(l,10)),u._pollForAsyncResponse(e,l||u.DEFAULT_POLL_DELAY,n,r)}else if(f===200){o.log("asynchronous request - success");try{a=u._parseAsyncResponse(a)}catch(c){return r(s("Error parsing response body.",c,a))}f=a.statusCode,f===200||f===201||f===204?r(undefined,a):r(s("Unexpected response polling for an asynchronous response"
,t,a))}else o.log("asynchronous request - error"),r(s("Unexpected response polling for an asynchronous response",t,a))})},h.prototype._handle202Response=function(e,t,n,r){var i,o=e.responseText||e.response;try{i=JSON.parse(o)}catch(u){return r(s("Error parsing 202 response body.",u,e))}var a=i.href;if(!a)return r(s("202 response missing an href.",undefined,e));var f=e.headers["retry-after"];f?f=parseInt(f,10):f=n,this._pollForAsyncResponse(this._resolveUrl(a),f,t,r)},h}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/components/dcx-js/src/AdobeStorageSession"
,["require","exports","module","./AdobeSessionBase","./AdobeDCXError","./AdobeDCXComposite","./AdobeDCXUtil"],function(e,t,n){"use strict";function p(e,t,n,r){var i=[],s="";return t&&i.push("order="+t),e&&i.push("orderBy="+e),n&&i.push("start="+n),r&&i.push("limit="+r),i.length>0&&(s="?"+i.join("&")),s}function d(e,t){r.call(this,e,t);if(!this._endPoint)throw new i(i.INVALID_PARAMS,"Could not determine endpoint from: "+t);this.authenticationWhitelist=["adobe.com","adobe.io","fotolia.net"]}var r=e
("./AdobeSessionBase"),i=e("./AdobeDCXError"),s=i.networkError,o=i.unexpectedResponse,u=e("./AdobeDCXComposite"),a=e("./AdobeDCXUtil"),f=a.appendPathElements,l="If-Match",c="If-None-Match",h="application/vnd.adobe.dcx-manifest+json";return d.prototype=Object.create(r.prototype),d.prototype.name="AdobeStorageSession",d.FileContent=r.FileContent,d.StreamProvider=r.StreamProvider,d.prototype.getCollection=function(e,t,n){function f(t,l){if(t)return n(s("Error retrieving a collection",t,l));if(l.statusCode===200
){var c,h=l.responseText||l.response;try{c=JSON.parse(h)}catch(p){return t=new i(i.INVALID_DATA,"Invalid JSON returned by server",p),t.response=l,n(t)}r?r.children=r.children.concat(c.children):r=c;var d=l.headers["x-children-next-start"];if(d){var v=e+"&start="+d;a._service.invoke("GET",v,u,undefined,{responseType:"text"},f)}else n(undefined,r,l.headers.etag,l.headers)}else l.statusCode===304?n(undefined,null,l.headers.etag,l.headers):n(o("Unexpected status code while getting a collection",undefined
,l))}e=this._resolveUrl(e);if(!e)return n(new i(i.WRONG_ENDPOINT,"Wrong endpoint: "+e));e+="?order=asc&orderby=name";var r,u={};t&&(u[c]=t);var a=this,l=this._service.invoke("GET",e,u,undefined,{responseType:"text"},f);return l},d.prototype.pagedGetCollection=function(e,t,n,r,u,a,f,l){function v(e,t){if(e)return l(s("Error retrieving a collection",e,t));if(t.statusCode===200){var n,r=t.responseText||t.response;try{n=JSON.parse(r)}catch(u){return e=new i(i.INVALID_DATA,"Invalid JSON returned by server"
,u),e.response=t,l(e)}f?f.children=f.children.concat(n.children):f=n,l(undefined,f,t.headers.etag,t.headers)}else t.statusCode===304?l(undefined,null,t.headers.etag,t.headers):l(o("Unexpected status code while getting a collection",undefined,t))}e=this._resolveUrl(e);if(!e)return l(new i(i.WRONG_ENDPOINT,"Wrong endpoint: "+e));e+=p(n,r,u,a);var h={};t&&(h[c]=t);var d=this,m=this._service.invoke("GET",e,h,undefined,{responseType:"text"},v);return m},d.prototype.getComponent=function(e,t,n){var r=this
.getComponentHref(e,e.version);return this.getAsset(r,undefined,t,n)},d.prototype.getSyncGroups=function(e,t){var n=f(this._server,"assets");return this.getCollection(n,e,t)},d.prototype.getSyncGroup=function(e,t,n){var r=f(this._server,"assets",e);return this.getCollection(r,t,n)},d.prototype.getCompositeManifest=function(e,t,n){var r=e.href;return r&&(r=this._resolveUrl(r)),r?(r=f(r,"manifest"),this.getAssetAsType(r,"text",t,n)):n(new i(i.WRONG_ENDPOINT,"Wrong endpoint: "+r))},d.prototype.headRequest=
function(e,t){return this._service.invoke("HEAD",e,{},undefined,undefined,function(e,n){if(e)return t(e);t(e,n)})},d.prototype.remixComposite=function(e,t,n,r,i,s){var o={compositeId:r};i&&(o.creatorTool=i);var u={href:e};return t&&(u.authorization=t),this._invokeOperation("remix",u,{href:n},o,function(e,t,n){s(e)})},d.prototype.createCompositeDirectory=function(e,t,n){function f(e,t,n){var o={"Content-Type":"application/vnd.adobe.directory+json","X-Update":"content"};t&&(o[l]="*"),r._service.invoke
("PUT",u,o,undefined,undefined,function(e,t){if(e)return n(s("Error Creating composite directory",e,t));if(t.statusCode===409)return e=new i(i.ALREADY_EXISTS,e),e.response=t,n(e);n(undefined,t)})}var r=this,u=this._resolveUrl(e.href);if(!u)return n(new i(i.WRONG_ENDPOINT,"Wrong endpoint: "+u));f(e,t,function(i,l){if(i)return n(i);var c=l.statusCode;if(c===200||c===201)n(undefined,l);else if(c===404){var h=a.parentDirectory(u);r._service.invoke("PUT",h,{},undefined,undefined,function(r,i){if(r)return n
(s("Error creating composite directory",r,i));var u=i.statusCode;u===200||u===201||u===409?f(e,t,function(e,t){if(e)return n(e);var r=t.statusCode;r===200||r===201?n(undefined,t):n(s("Error creating composite directory",e,t))}):n(o("Unexpected response creating composite directory",r,i))})}else n(o("Unexpected response creating composite directory",i,l))})},d.prototype.deleteCompositeDirectory=function(e,t){var n=this,r=this._resolveUrl(e.href);if(!r)return t(new i(i.WRONG_ENDPOINT,"Wrong endpoint: "+
r));var u={"If-Match":"*"};r+="?recursive=true&invocation_mode=sync,async";var a=this._service.invoke("DELETE",r,u,undefined,undefined,function(e,r){if(e)return t(s("Error deleting composite directory",e,r));var i=r.statusCode;if(i===200||i===204||i===404)return t(undefined,r);if(i===202)return n._handle202Response(r,a,n.SYNC_ASYNC_DEFAULT_DELAY,t);t(o("Unexpected response deleting composite directory",e,r))})},d.prototype.archiveCompositeDirectory=function(e,t){var n=this,r=this._makeRelativeUrl
(e.href);if(!r)return t(new i(i.WRONG_ENDPOINT,"Wrong endpoint: "+e.href));var u={"Content-Type":"application/vnd.adobe.directory+json",Link:"<"+r+">;rel=self"},a=this._resolveUrl("/archive/"+e.id)+"?invocation_mode=sync,async",f=this._service.invoke("PUT",a,u,undefined,undefined,function(e,r){if(e)return t(s("Error archiving composite directory",e,r));var i=r.statusCode;if(i===200||i===204||i===404)return t(undefined,r);if(i===202)return n._handle202Response(r,f,n.SYNC_ASYNC_DEFAULT_DELAY,t);t(o
("Unexpected response archiving composite directory",e,r))})},d.prototype.leaveSharedComposite=function(e,t){if(e.collaborationType!==u.COLLABORATION.SHARED_WITH_USER)throw new i(i.INVALID_STATE,"Composite's collaboration type must be sharedWithUser.");return this.deleteCompositeDirectory(e,t)},d.prototype.uploadComponent=function(e,t,n,r,s,o){if(!e._owner||!e._owner.compositeHref)throw new i(i.INVALID_STATE,"Component must be part of a branch of a bound composite.");return this.uploadAssetForComponentId
(e.id,e.type,e._owner.compositeHref,t,n,r,s,o)},d.prototype.uploadAssetForComponentId=function(e,t,n,r,u,a,f,c){function v(e,t){e?delete d[l]:d[l]="*";var n=h._service.invoke("PUT",p,d,f,undefined,function(e,n){if(e)return t(s("Error uploading component",e,n));var r=n.statusCode;if(r===200||r===201||r===204){var u;try{u=JSON.parse(n.responseText||n.response)}catch(a){return e=new i(i.INVALID_DATA,"Invalid JSON returned by server",a),e.response=n,t(e,n,u)}t(undefined,n,u)}else r===507?(e=new i(i.EXCEEDS_QUOTA
,"Exceeds quota",e),e.response=n,t(e)):(e=o("Unexpected response uploading component",e),e.response=n,t(e))});return n.token=a,n}var h=this,p=this._constructComponentHref(n,e);u&&(p+="?intermediates=false");var d={};t&&(d["Content-Type"]=t);var m=v(r,function(e,t,n){if(e){t=e.response;if(!t)return c(e);var i=t.statusCode;i===404||i===409||i===412?v(!r,c):c(e);return}c(undefined,t,n)});return m},d.prototype.copyAssetToComponentId=function(e,t,n,r,u,a,f,c){function m(e,t,n){e?delete v[l]:v[l]="*";var r=
p._service.invoke("PUT",d,v,undefined,{responseType:"text"},function(e,i){if(e)return n(s("Error uploading component",e,i));var u=i.statusCode;u===200||u===201||u===204?n(undefined,i,t):u===202?p._handle202Response(i,r,p.SYNC_ASYNC_DEFAULT_DELAY,function(e,r){n(e,r,t)}):n(o("Unexpected response copying a component asset",e,i),i,t)});return r.token=a,r}var h=this._makeRelativeUrl(f);if(!h)return c(new i(i.WRONG_ENDPOINT,"Cannot copy asset: "+f));var p=this,d=this._constructComponentHref(n,e);d+="?invocation_mode=sync,async"
,u&&(d+="&intermediates=false");var v={};t&&(v["Content-Type"]=t),v.Link="<"+h+">;rel=source";var g=function(e,t,n){var s;if(e){t=e.response;if(!t)return c(e);var o=t.statusCode;!!n||o!==404&&o!==409&&o!==412?o===507?(e=new i(i.EXCEEDS_QUOTA,"Exceeds quota",e),e.response=t,c(e)):c(e):m(!r,!0,g);return}try{s=JSON.parse(t.responseText||t.response)}catch(u){return e=new i(i.INVALID_DATA,"Invalid JSON returned by server",u),e.response=t,c(e)}c(undefined,t,s)},y=m(r,!0,g);return y},d.prototype.updateManifest=
function(e,t,n,r){var u=this.getBranchManifestHref(e),a={"Content-Type":h},f=e.manifestEtag;n?a["If-Match"]="*":f&&(a["If-Match"]=f);var l=this._service.invoke("PUT",u,a,t,undefined,function(e,t){if(e)return r(s("Error updating manifest",e,t));var n=t.statusCode;!t.headers.etag||n!==200&&n!==201&&n!==204?n===412?(e=new i(i.UPDATE_CONFLICT,"Manifest has been changed"),e.response=t,r(e)):r(o("Unexpected response updating manifest",e,t)):r(undefined,t)});return l},d.prototype.getHrefForComposite=function(
e,t){var n=e.type;if(!n)throw new i(i.INVALID_STATE,"Composite needs a type");if(!e.id)throw new i(i.INVALID_STATE,"Composite needs an id");if(e.href)return e.href;var r=this._resolveUrl(f("assets",t,e.id));return r},d.prototype.getHrefForCompositeWithId=function(e,t){var n=this._resolveUrl(f("assets",t,e));return n},d.prototype.getCompositeManifestHref=function(e){var t=this._resolveUrl(e.href);if(!t)throw new i(i.WRONG_ENDPOINT,"Wrong endpoint: "+t);return f(t,"manifest")},d.prototype.getBranchManifestHref=
function(e){var t=this._resolveUrl(e.compositeHref);if(!t)throw new i(i.WRONG_ENDPOINT,"Wrong endpoint: "+t);return f(t,"manifest")},d.prototype.getComponentHref=function(e,t){var n=e._owner;if(!n||!n.compositeHref)throw new i(i.INVALID_STATE,"Component must be part of a branch of a bound composite.");var r;return n._core&&(r=n._core._getSourceHrefOfComponent(e)),r||this._constructComponentHref(n.compositeHref,e.id,t)},d.prototype._constructComponentHref=function(e,t,n){var r=f(this._resolveUrl(e
),t);return r&&typeof n!="undefined"&&(r+=";version="+n),r},d.prototype._invokeOperation=function(e,t,n,r,u){var f=this,l=this._resolveUrl("/ops");l+="?invocation_mode=sync,async";var c={"Content-Type":"application/vnd.adobe.asset-operation+json"},h={op:e,id:a.generateUuid(),target:n,source:t};r&&(h.value=r),a.log("[invoke operation]: "+JSON.stringify(h,undefined,2));var p=function(e,t){var n;if(e){t=e.response;if(!t)return u(e);var r=t.statusCode;r===507?(e=new i(i.EXCEEDS_QUOTA,"Exceeds quota",
e),e.response=t,u(e)):u(e);return}try{n=JSON.parse(t.responseText||t.response)}catch(s){return e=new i(i.INVALID_DATA,"Invalid JSON returned by server",s),e.response=t,u(e)}if(n.error)return e=new i(i.UNEXPECTED_RESPONSE,"Error in operation result: "+JSON.stringify(n.error,undefined,2)),e.response=t,u(e);u(undefined,t,n)},d=f._service.invoke("POST",l,c,JSON.stringify(h),{responseType:"text"},function(t,n){if(t)return p(s("Error invoking operation "+e,t,n));var r=n.statusCode;r===200||r===201||r===204?
p(undefined,n):r===202?f._handle202Response(n,d,f.SYNC_ASYNC_DEFAULT_DELAY,function(e,t){p(e,t)}):p(o("Unexpected response for operation "+e,t,n),n)});return d},d}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/components/dcx-js/src/AdobeCommunitySession",["require","exports","module","./AdobeSessionBase","./AdobeDCXError","./AdobeDCXUtil"],function(e,t,n){"use strict";function u(e,t){r.call(this,e,t);if(!this._endPoint)throw new i(i.INVALID_PARAMS,"Could not determine endpoint from: "+
t);this.authenticationWhitelist=["adobe.com","adobe.io","fotolia.net"]}var r=e("./AdobeSessionBase"),i=e("./AdobeDCXError"),s=e("./AdobeDCXUtil"),o=s.appendPathElements;u.prototype=Object.create(r.prototype),u.prototype.name="AdobeCommunitySession",u.FileContent=r.FileContent,u.StreamProvider=r.StreamProvider,u.prototype.getCompositeManifestHref=function(e){var t=this._resolveUrl(e.href);if(!t)throw new i(i.WRONG_ENDPOINT,"Wrong endpoint: "+t);return o(t,"manifest")},u.prototype.getComponent=function(
e,t,n){var r=this.getComponentHref(e,e.version);return this.getAsset(r,undefined,t,n)},u.prototype.getRenditionOfComponent=function(e,t,n,r,i,s){var o=this.getComponentRenditionHref(e,e.version,t,n,r);return this.getAsset(o,{accept:t},i,s)},u.prototype.getCompositeManifest=function(e,t,n){var r=e.href;return r&&(r=this._resolveUrl(r)),r?(r=o(r,"manifest"),this.getAssetAsType(r,"text",t,n)):n(new i(i.WRONG_ENDPOINT,"Wrong endpoint: "+r))},u.prototype.headRequest=function(e,t){return this._service.
invoke("HEAD",e,{},undefined,undefined,function(e,n){if(e)return t(e);t(e,n)})},u.prototype.getComponentHref=function(e,t){var n=e._owner;if(!n||!n.compositeHref)throw new i(i.INVALID_STATE,"Component must be part of a branch of a bound composite.");var r;return n._core&&(r=n._core._getSourceHrefOfComponent(e)),r||this._constructComponentHref(n.compositeHref,e,t)},u.prototype.getComponentRenditionHref=function(e,t,n,r,s){var o=e._owner;if(!o||!o.compositeHref)throw new i(i.INVALID_STATE,"Component must be part of a branch of a bound composite."
);if(o._core&&o._core._getSourceHrefOfComponent(e))throw new i(i.INVALID_STATE,"Getting a rendition of a source href not implemented.");return this._constructComponentRenditionHref(o.compositeHref,e,t,n,r,s)},u.prototype._constructComponentHref=function(e,t,n){var r=t.absolutePath.slice(1),i=o(this._resolveUrl(e),r);return i&&typeof n!="undefined"&&(this._hrefUsesContentApis(e)?i+="/version/"+n:i+="?version="+n),i};var a="/content/2/",f=/^\/?content\/2\/[^\/]+\/[^\/]+/,l=/^\/?api\/v2\/[^\/]+\/assets\/[^\/]+/
,c={"image/jpeg":"jpg","image/png":"png"};return u.prototype._constructComponentRenditionHref=function(e,t,n,r,o,u){var h,p,d=t.absolutePath.slice(1),v=s.parseURI(e).path;if(v.slice(0,a.length)===a){var m=c[r];if(!m)throw new i(i.INVALID_PARAMS,"Unsupported rendition media type: "+r);h=f.exec(v);if(!(h&&h.length>0))throw new i(i.INVALID_PARAMS,"Failed to parse composite href: "+e);p=this._resolveUrl(s.appendPathElements(h[0],"rendition",d,"version",n,"format",m,"dimension",o,"size",String(u)))}else{
h=l.exec(v);if(!(h&&h.length>0))throw new i(i.INVALID_PARAMS,"Failed to parse composite href: "+e);p=this._resolveUrl(s.appendPathElements(h[0],"rendition",o,String(u),d)+"?version="+n)}return p},u.prototype._hrefUsesContentApis=function(e){var t=s.parseURI(e).path;return t.slice(0,a.length)===a},u}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/components/dcx-js/src/AdobeDCXCompositeXfer",["require","exports","module","./AdobeDCXComposite","./AdobeDCXComponent","./AdobeDCXBranch"
,"./AdobeDCXError","./AdobeDCXPushJournal","./AdobeSessionBase","./AdobeDCXUtil","./AdobeDCXFS"],function(e,t,n){"use strict";function y(e,t,n){return o.wrapError(o.UNEXPECTED_RESPONSE,e,t,n)}function b(e,t,n){this._session=e,this._callback=t,this._cleanup=n,this._componentsPending=0,this.bytesTransfered=0,this.bytesTotal=0,this.onProgress=f.noOp;var r=this;this._reportProgress=function(e){if(e>0){r.bytesTransfered+=e;var t=r.onProgress;t&&t(r.bytesTransfered,r.bytesTotal)}}}function w(e,t,n,r,i)
{function s(e){e||(t.compositeHasBeenCreated=!0);var n=t._compositeCreationCallbacks,r,i=n.length;for(r=0;r<i;r++)try{n[r](e)}catch(s){}t._compositeCreationCallbacks=undefined;return}!e.isBound&&!t.compositeHasBeenCreated?t._compositeCreationCallbacks?t._compositeCreationCallbacks.push(i):(t._compositeCreationCallbacks=[i],r.createCompositeDirectory(e,n,function(t,i){if(t){if(t.code!==o.ALREADY_EXISTS)return s(y("Unexpected response creating a composite directory",t,i));if(!n){var u=r.getCompositeManifestHref
(e);r.headRequest(u,function(e,t){if(e)return s(e);if(t.statusCode!==404)return e=new o(o.INVALID_STATE,"Composite already exists and overwriteExisting not specified"),s(e);s()})}else s()}else s()})):i()}function E(e,t,n,r,s){if(typeof t!="number")throw new o(o.UNEXPECTED_RESPONSE,"No length");var u=r.headers.etag,a=r.headers["x-latest-version"],f=s.md5;if(!u)throw new o(o.UNEXPECTED_RESPONSE,"No etag");if(!a)throw new o(o.UNEXPECTED_RESPONSE,"No version");if(!f)throw new o(o.UNEXPECTED_RESPONSE,"No md5"
);return new i._UploadRecord(e,u,a,f,t,n)}function S(e,t,n,r){var s=r.headers.etag,u=r.headers["x-latest-version"],a=t.md5,f=t.size;if(typeof f!="number")throw new o(o.UNEXPECTED_RESPONSE,"No length");if(!s)throw new o(o.UNEXPECTED_RESPONSE,"No etag");if(!u)throw new o(o.UNEXPECTED_RESPONSE,"No version");if(!a)throw new o(o.UNEXPECTED_RESPONSE,"No md5");return new i._UploadRecord(e,s,u,a,f,n)}var r=e("./AdobeDCXComposite"),i=e("./AdobeDCXComponent"),s=e("./AdobeDCXBranch"),o=e("./AdobeDCXError"),
u=e("./AdobeDCXPushJournal"),a=e("./AdobeSessionBase"),f=e("./AdobeDCXUtil"),l=e("./AdobeDCXFS"),c=a.FileContent,h=i.STATES,p="all",d="min",v="none",m,g;return b.prototype._callCallback=function(e,t){var n=this._callback;n&&(this._callback=undefined,n(e,t))},b.prototype._xferComplete=function(e,t){var n=this._cleanup;n?(this._cleanup=undefined,n(e,t)):this._callCallback(e,t)},b.prototype.abort=function(e){this._aborted||(this._aborted=!0,this._session._service.abortAllWithToken(this)),e||(this._callback=
undefined,e=new Error("Aborted")),this._xferComplete(e)},t.pullComposite=function(e,t,n){if(!e.hasLocalStorage)throw new o(o.INVALID_PARAMS,"No local storage. Use AdobeDCXCompositeXfer.pullCompositeManifestOnly() to pull down the composite without local storage.");return this._pullComposite(e,t,p,n)},t.pullMinimumComposite=function(e,t,n){if(!e.hasLocalStorage)throw new o(o.INVALID_PARAMS,"No local storage. Use AdobeDCXCompositeXfer.pullCompositeManifestOnly() to pull down the composite without local storage."
);return this._pullComposite(e,t,d,n)},t.pullCompositeManifestOnly=function(e,t,n){return this._pullComposite(e,t,v,n)},t.downloadComponents=function(e,n,r,i){function s(e){return e._owner?s(e._owner):e}var o=s(n),u=new b(r,i);return u._referenceBranch=o,t._pullComponents(u,o,e||n.allComponents()),u},t.pushComposite=function(e,n,r,i){var s,a=e._localStorage,f=function(t,n){s._owner&&e.hasLocalStorage&&a.unregisterInMemoryBranchOrElement(s._owner);if(!e.hasLocalStorage){var r=s._journal;e._pushJournal=
r.isEmpty?undefined:r}s._callCallback(t,n)};s=new b(r,i,f),s._composite=e,s._overwriteExisting=n;var l=!e.isBound;s._compositeIsNew=l;if(e.hasLocalStorage)e._loadBranch(a.currentManifestPath(),!1,function(n,r){if(n)return s._xferComplete(n);s._owner=r,e._localStorage.registerInMemoryBranchOrElement(r),u.readJournal(a.pushJournalPath(),e,!0,function(n,r){if(n)return s._xferComplete(n);s._journal=r,t._pushComposite(e,s)})});else{var c=e.href;if(!c)return s._xferComplete(new o(o.INVALID_STATE,"New composite has no href"
));s._owner=e.current.copy(),s._journal=e._pushJournal||new u(e),t._pushComposite(e,s)}return s},t.remixComposite=function(e,t,n,r,i,s,u){var a=f.parseURI(n).path;if(!a||!r||a.split("/").pop()!==r)throw new o(o.INVALID_PARAMS,"Invalid combination of params targetHref ("+n+") and compositeId ("+r+")");var l=new b(s,u),c=s.remixComposite(e,t,n,r,i,function(e){l._xferComplete(e,e?undefined:n)});return c.token=l,l},t.uploadNewComponent=function(e,t,n,i,s,u){if(n._localStorage)throw new o(o.INVALID_PARAMS
,"For in-browser use only. Use composite.current.addComponent() to add a new component asset");return m(i||f.generateUuid(),t,!0,n.collaborationType===r.COLLABORATION.SHARED_WITH_USER,e,n.id,n.href,s,u)},t.uploadComponent=function(e,t,n,i,s){if(n._localStorage)throw new o(o.INVALID_PARAMS,"For in-browser use only. Use composite.current.updateComponent() to update a component asset");return m(e.id,e.type,!1,n.collaborationType===r.COLLABORATION.SHARED_WITH_USER,t,n.id,n.href,i,s)},t.copyAssetForNewComponent=
function(e,t,n,i,s,u){if(n._localStorage)throw new o(o.INVALID_PARAMS,"For in-browser use only. Use composite.current.addComponent() to add a new component asset");return g(i||f.generateUuid(),t,!0,n.collaborationType===r.COLLABORATION.SHARED_WITH_USER,e,n.id,n.href,s,u)},t.getURLForComponent=function(e,t){if(e._owner._localStorage)throw new o(o.INVALID_PARAMS,"For in-browser use only.");return t.getComponentHref(e,e.version)},t._pullComposite=function(e,n,r,i){function a(t,n){if(t){var r=t.pulledBranch
;r?(r.compositeState=h.unmodified,r.hasLocalStorage?l.writeFileAtomically(e._localStorage.pulledManifestPath(),t.pulledBranch.localData,"utf8",function(e){u._callCallback(t)}):u._callCallback(t)):u._callCallback(t);return}if(n===null)return u._callCallback(undefined,null);n.compositeState=h.unmodified,n.readOnly=!0;if(n.hasLocalStorage){var i=e._localStorage.pulledManifestPath();l.writeFileAtomically(i,n.localData,"utf8",function(e){if(e)return u._callCallback(e);n.manifestPath=i,n._isDirty=!1,u.
_callCallback(undefined,n)})}else e._options.xhrBaseBranchSupport&&(e._pulledBranchData=n.localData),u._callCallback(undefined,n)}if(typeof e.href!="string")throw new o(o.INVALID_STATE,"Composite must have an href");var u,f=function(i,a){if(i)return u._xferComplete(i);var f;a?(f=a.manifestEtag,u._referenceBranch=a):e.current&&(f=e.current.manifestEtag,u._referenceBranch=e.current);var l=n.getCompositeManifest(e,f,function(n,i,f){if(n)return n.response&&n.response.statusCode===404?u._xferComplete(new 
o(o.NO_COMPOSITE,"Composite missing or deleted",n.underlyingError||n)):u._xferComplete(n);if(i===null&&!a)return u._xferComplete(undefined,null);var l;if(i!==null)try{l=(new s).parse(i),l._localStorage=e._localStorage,l.compositeHref=e.href,l._collaborationType=e.collaborationType,l._clientDataString=e.clientDataString,l.manifestEtag=f;if(l.compositeState===h.committedDelete||l.compositeState===h.pendingDelete){u._session.deleteCompositeDirectory(e,function(e){return e?u._xferComplete(new o(o.DELETED_COMPOSITE
,"Error deleting composite directory",e)):u._xferComplete(new o(o.DELETED_COMPOSITE,"Composite is deleted"))});return}u._referenceBranch&&l.hasLocalStorage&&l._updateLocalDataFromBranch(u._referenceBranch)}catch(c){return u._xferComplete(new o(o.INVALID_JSON,"Corrupted manifest",c))}else l=a;var v,m,g=l.allComponents();for(v=0;v<g.length;++v)m=g[v],m.state===h.pendingDelete||m.state===h.committedDelete?l.removeComponent(m):m.state=h.unmodified;g=undefined,r===p?g=l.allComponents():r===d&&(m=l.getComponentWithAbsolutePath
("/META-INF/metadata.xml"),m&&(g=[m])),g?t._pullComponents(u,l,g):u._xferComplete(undefined,l)});l&&(l.token=u,l.progress=u._reportProgress)};return u=new b(n,i,a),u._composite=e,e.hasLocalStorage?e.loadPulledBranch(f):f(),u},t._pullComponents=function(e,n,r){function s(t,i){e._componentsPending-=1,t&&(e.failedComponents=e.failedComponents||[],e.failedComponents.push({component:i,error:t}));if(e._componentsPending===0&&!e._aborted){var s=e.failedComponents;if(s){t=new o(o.COMPONENT_DOWNLOAD_ERROR
,"Failed to download all components");var u,a=s.length;for(u=0;u<a;u++){var f=s[u].error;if(f.code===o.OUT_OF_SPACE){t=new o(f.code,f.message);break}}t.pulledBranch=n,t.failedComponents=s}n.readOnly&&n.manifestPath&&(!s||r.length>s.length)?l.writeFileAtomically(n.manifestPath,n.localData,"utf8",function(r){t=t||r,e._xferComplete(t,t?undefined:n)}):e._xferComplete(t,t?undefined:n)}}function u(n){if(e._aborted)return;e.bytesTotal+=n.length||0;var r=n._owner._localStorage,o=r.tempPathForComponent(n)
,u=f.parentDirectory(o);l.ensureDirectoryExists(u,function(r){if(r)return e.abort(r);var u=t._pullComponent(n,o,i,s);u.progress=e._reportProgress,u.token=e})}function a(e){n.assetOfComponent(e,function(t,n){typeof n!="string"?u(e):s(undefined,e)})}if(!n.hasLocalStorage)throw new o(o.INVALID_PARAMS,"No local storage.");var i=e._session,c;e._componentsPending=r.length;for(c=0;c<r.length;++c){var h=r[c],p;if(e._referenceBranch){var d=e._referenceBranch.getComponentWithId(h.id);d&&(p=d.etag)}h.etag!==
p?u(h):a(h)}e._componentsPending===0&&e._xferComplete(undefined,n)},t._pullComponent=function(e,t,n,r){var i=e._owner;if(!e._owner.hasLocalStorage)throw new o(o.INVALID_PARAMS,"No local storage. Use AdobeDCXCompositeXfer.pullCompositeManifestOnly() to pull down the composite without local storage.");var s=n.getComponent(e,new c(t),function(n,s){if(n)r(n,e);else if(s.statusCode===200){var u=Number(s.headers["content-length"]);e.length!==undefined&&e.length!==null&&!isNaN(u)&&u!==e.length?r(new o(o
.UNEXPECTED_RESPONSE,"Incorrect content length",n,s)):i._localStorage.ingestComponentAsset(e,t,!1,i._local(),function(t){r(t,e,s.headers.etag)})}else s.statusCode===304?r(undefined,e,s.headers.etag):r(y("Unexpected response getting a component",n,s),e)});return s},t._pushComposite=function(e,n){function m(t,r){v?c.archiveCompositeDirectory(e,function(i,s){if(i)return r(i);t.compositeArchivalState="archived",n._journal.compositeHasBeenArchived=!0,n._journal.commitChanges(function(n){if(n)return r(
n);e.hasLocalStorage?l.writeFileAtomically(e._localStorage.pushedManifestPath(),t.localData,"utf8",function(e){if(e)return r(e);r(undefined,t)}):r(undefined,t)})}):r(undefined,t)}function g(t){if(a)return n._xferComplete(t);var r=c.getCompositeManifestHref(e);c.headRequest(r,function(e,r){return e?n._xferComplete(e):r.statusCode===404?(t=new o(o.NO_COMPOSITE,"Composite does not exist; may have been deleted"),n._xferComplete(t)):n._xferComplete(t)})}var i=e.href;if(!i)return n._xferComplete(new o(
o.INVALID_STATE,"New composite has no href"));var s=n._owner,u=n._journal,a=n._compositeIsNew,f=n._overwriteExisting,c=n._session,p=s.changeCount,d=s.remoteData.length+50;n.bytesTotal=d;if(s.compositeState===h.committedDelete)return n._xferComplete(new o(o.DELETED_COMPOSITE,"Attempt to push a deleted composite"));if(s.compositeArchivalState==="archived")return n._xferComplete(new o(o.DELETED_COMPOSITE,"Attempt to push an archived composite"));var v=s.compositeArchivalState==="pending";if(v&&e.collaborationType===
r.COLLABORATION.SHARED_WITH_USER)return n._xferComplete(new o(o.INVALID_STATE,"Attempt to archive composite that is shared with this user."));if(!a&&!v&&s.compositeState===h.unmodified)return n._xferComplete();if(s.compositeState===h.pendingDelete)return a&&!f?n._xferComplete(new o(o.DELETED_COMPOSITE,"Attempt to delete unbound composite")):e.collaborationType===r.COLLABORATION.SHARED_WITH_USER?n._xferComplete(new o(o.INVALID_STATE,"Attempt to delete composite that is shared with this user.")):t.
_deleteComposite(n,f,function(e,t){n._xferComplete(e,t)});w(e,u,f,c,function(r){if(r)return n._xferComplete(r);t._pushComponents(n,s,function(){var t=n.failedComponents;if(t){r=new o(o.COMPONENT_UPLOAD_ERROR,"One or more components failed to upload.");var i,a=t.length;for(i=0;i<a;i++){var v=t[i].error;if(v.code===o.EXCEEDS_QUOTA){r=new o(v.code,v.message);break}}return r.failedComponents=t,g(r)}if(s.compositeState===h.modified){s.compositeState=h.unmodified,u.manifestEtag&&u.currentBranchEtag===s
.manifestEtag&&(s.manifestEtag=u.manifestEtag);var y=s.remoteData;n.bytesTotal+=y.length,n.bytesTotal-=d;var b=c.updateManifest(s,y,f,function(t,r){if(t)return g(t);var i=r.headers.etag;u.manifestEtag=i,u.currentBranchEtag=s.manifestEtag,u.changeCount=p,u.commitChanges(function(t){if(t)return n._xferComplete(t);u.applyToBranch(s),s.compositeState=h.unmodified,e.hasLocalStorage?l.writeFileAtomically(e._localStorage.pushedManifestPath(),s.localData,"utf8",function(e){if(e)return n._xferComplete(e);
s._isDirty=!1,m(s,function(e,t){n._xferComplete(e,t)})}):(e._options.xhrBaseBranchSupport&&(e._pushedBranchData=s.localData),m(s,function(e,t){n._xferComplete(e,t)}))})});b&&(b.progress=n._reportProgress,b.token=n)}else m(s,function(e,t){n._xferComplete(e,t)})})})},t._deleteComposite=function(e,t,n){var r=e._composite,i=e._owner,s=e._session;i.compositeState=h.committedDelete;var o=i.remoteData;e.bytesTotal=o.length,e._journal.manifestEtag&&e._journal.currentBranchEtag===i.manifestEtag&&(i.manifestEtag=
e._journal.manifestEtag),s.updateManifest(i,o,t,function(t,o){if(t)return n(t);s.deleteCompositeDirectory(r,function(t,s){if(t)return n(t);e._journal.compositeHasBeenDeleted=!0,e._journal.commitChanges(function(e){if(e)return n(e);r.hasLocalStorage?l.writeFileAtomically(r._localStorage.pushedManifestPath(),i.localData,"utf8",function(e){if(e)return n(e);n(undefined,i)}):n(undefined,i)})})})},t._pushComponents=function(e,t,n){function m(t,r,i){r?d[t.id]=r:delete d[t.id],i&&(e.failedComponents=e.failedComponents||
[],e.failedComponents.push({component:t,error:i})),Object.keys(d).length===0&&v.commitChanges(n)}function g(t,n,i){m(t,"uploading"),l.info(n,function(s,u){if(s){s=new o(o.INVALID_STATE,"Component asset missing",s),m(t,null,s);return}var l=u.size,p=f.filePathComponents(n).fileName,d=v.getRecordForUploadedComponent(t.id);if(d&&d.length===l&&d["storage-name"]===p){t.etag=d.etag,t.version=d.version,t.md5=d.md5,t.length=d.length,t.state=h.unmodified,m(t,null);return}e.bytesTotal+=l;var g=e._session.uploadComponent
(t,i,a.collaborationType===r.COLLABORATION.SHARED_WITH_USER,e,new c(n),function(e,n,r){if(!e){var i=n.headers.etag,s=n.headers["x-latest-version"],u=r.md5;i||(e=new o(o.UNEXPECTED_RESPONSE,"No etag")),s||(e=new o(o.UNEXPECTED_RESPONSE,"No version")),u||(e=new o(o.UNEXPECTED_RESPONSE,"No md5")),e||(t.etag=i,t.version=s,t.md5=u,t.length=l,t.state=h.unmodified,v.recordUploadedComponent(t.id,i,s,u,l,p),v.commitChanges())}m(t,null,e)});g&&(g.progress=e._reportProgress,g.token=e)})}function y(n,i,s){var u=
v.getRecordForUploadedComponent(n.id);if(u&&u["source-href"]===i){n.etag=u.etag,n.version=u.version,n.md5=u.md5,n.length=u.length,n.state=h.unmodified;return}m(n,"copying");var f=e._session.copyAssetToComponentId(n.id,n.type,e._composite.href,s,a.collaborationType===r.COLLABORATION.SHARED_WITH_USER,e,i,function(e,r,u){if(!e){var a=r.headers.etag,f=r.headers["x-latest-version"],l=u.md5,c=u.size;a||(e=new o(o.UNEXPECTED_RESPONSE,"No etag")),f||(e=new o(o.UNEXPECTED_RESPONSE,"No version")),l||(e=new 
o(o.UNEXPECTED_RESPONSE,"No md5")),c||(e=new o(o.UNEXPECTED_RESPONSE,"No length")),e||(n.etag=a,n.version=f,n.md5=l,n.length=c,n.state=h.unmodified,v.recordUploadedComponent(n.id,a,f,l,c,undefined,i),v.commitChanges())}else if(p){var d=p.componentAssetPath(n,t._local());if(d)return g(n,d,s)}m(n,null,e)});f&&(f.progress=e._reportProgress,f.token=e)}var i=this,s,u=t.allComponents(),a=e._composite,p=a._localStorage,d={},v=e._journal;for(s=0;s<u.length;++s){var b=u[s],w=b.state,E=b.etag,S=!E;w||(w=h.
unmodified);if(S||w===h.modified){var x=t._core._getSourceHrefOfComponent(b);if(t.hasLocalStorage||x){var T=S||e._compositeIsNew;x?y(b,x,T):g(b,p.componentAssetPath(b,t._local()),T)}else{var N=new o(o.INVALID_STATE,"Component should not be modified or new without local storage");e.failedComponents=e.failedComponents||[],e.failedComponents.push({component:b,error:N})}}else w===h.unmodified?v.removeRecordForUploadedComponent(b.id):(w===h.committedDelete||w===h.pendingDelete)&&t.removeComponent(b)}Object
.keys(d).length===0&&n()},m=function(e,t,n,r,s,u,a,f,l){if(typeof l!="function")throw new o(o.INVALID_PARAMS,'Param "callback" must be a function.');var c=s.length||s.byteLength||s.size,h=new b(f,l);h.bytesTotal=c;var p=f.uploadAssetForComponentId(e,t,a,n,r,h,s,function(n,r,s){var o;if(!n)try{o=new i._UploadResults(u),c=c||p.bytesSent,o.records[e]=E(e,c,t,r,s)}catch(a){n=a,o=undefined}h._xferComplete(n,o)});return p&&(p.progress=h._reportProgress,p.token=h),h},g=function(e,t,n,r,s,u,a,f,l){if(typeof 
l!="function")throw new o(o.INVALID_PARAMS,'Param "callback" must be a function.');var c=new b(f,l),h=f.copyAssetToComponentId(e,t,a,n,r,c,s,function(n,r,s){if(c._aborted)return;var o;if(!n)try{o=new i._UploadResults(u),o.records[e]=S(e,s,t,r)}catch(a){n=a,o=undefined}l(n,o)});return h&&(h.progress=c._reportProgress,h.token=c),c},t}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/components/dcx-js/src/AdobeDCX",["require","exports","module","./AdobeDCXComposite","./AdobeDCXLocalStorage"
,"./AdobeNetworkHTTPService","./AdobeStorageSession","./AdobeCommunitySession","./AdobeDCXCompositeXfer","./AdobeDCXUtil","./AdobeDCXError","./AdobeDCXFS"],function(e,t,n){"use strict";function h(e,t){e&&c._setFS(e),this._compositeOptions=f.merge({},t),t&&t.logCallback&&f._setLogCallback(t.logCallback)}var r=e("./AdobeDCXComposite"),i=e("./AdobeDCXLocalStorage"),s=e("./AdobeNetworkHTTPService"),o=e("./AdobeStorageSession"),u=e("./AdobeCommunitySession"),a=e("./AdobeDCXCompositeXfer"),f=e("./AdobeDCXUtil"
),l=e("./AdobeDCXError"),c=e("./AdobeDCXFS");return h.COLLABORATION={PRIVATE:r.COLLABORATION.PRIVATE,SHARED_BY_USER:r.COLLABORATION.SHARED_BY_USER,SHARED_WITH_USER:r.COLLABORATION.SHARED_WITH_USER},h.AdobeDCXError=l,h.FileContent=s.FileContent,h.StreamProvider=s.StreamProvider,h.prototype.newEmptyComposite=function(e,t,n,i){var s=new r(e,t,null,i,null,this._compositeOptions);return n&&(s.path=n),s},h.prototype.newCompositeFromLocalStorage=function(e,t){try{if(typeof e!="string")throw new l(l.INVALID_PARAMS
,"");var n=new r(null,null,e,null,null,this._compositeOptions);n.loadCurrentFromLocalStorage(function(e,r){t(e,e?undefined:n)}),n.deleteTempFiles()}catch(i){t(i)}},h.prototype.newCompositeWithHref=function(e,t,n,i,s){var o=new r(n,s,null,i,e,this._compositeOptions);return t&&(o.path=t),o},h.prototype.newCompositeAsCopyOf=function(e,t,n,i,s,o){return r.newCompositeAsCopyOf(e,t,n,i,s,o,this._compositeOptions)},h.prototype.createHTTPService=function(e){return new s(e)},h.prototype.createStorageSession=
function(e,t){return new o(e,t)},h.prototype.createCommunitySession=function(e,t){return new u(e,t)},h.prototype.compositeXfer=a,h}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/AdobeLibraryServices",["require","exports","module","./components/uuid/uuid","./components/dcx-js/src/AdobeDCX"],function(e,t,n){"use strict";function s(){var e=typeof nodeRequire;e!=="undefined"&&(this.fs=nodeRequire("fs"),this.path=nodeRequire("path")),this._initDCX()}var r=e("./components/uuid/uuid"
),i=e("./components/dcx-js/src/AdobeDCX");return s.prototype._initDCX=function(){var e=this;this.dcx=new i(this.fs,{preserveFileExtensions:!0,logCallback:function(t){e._log&&e._log("DCX: "+t)}})},s.prototype.uuid=function(){return r()},s.prototype.log=function(e){this._log&&this._log("CC Libraries: "+e)},s.prototype.getDisplayName=function(e){return this._getDisplayName?this._getDisplayName(e):e.name},s.prototype.hasFileSystem=function(){return this.fs!==undefined},s.prototype.setFileSystem=function(
e){this.fs=e,this._initDCX()},s.prototype.getVulcanInterface=function(){var e=typeof VulcanInterface;if(e!=="undefined")return VulcanInterface},s.prototype.getVulcanMessage=function(){var e=typeof VulcanMessage;if(e!=="undefined")return VulcanMessage},s.prototype.hasCEPVulcan=function(){return this.getVulcanInterface()!==undefined&&this.getVulcanMessage()!==undefined},s.prototype.getNodeTunnelOptions=function(e){return this._getNodeTunnelOptions?this._getNodeTunnelOptions(e):{}},s.prototype.getPathSeparator=
function(){return"/"},s.prototype.getFileNameFromPath=function(e){return e.indexOf("/")===-1&&e.indexOf("\\")!==-1&&(e=e.replace(/\\/g,"/")),e.split("/").pop()},Object.freeze(s),Object.seal(s.prototype),new s}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/AdobeLibraryError",["require","exports","module"],function(e,t,n){"use strict";function r(e,t,n,i){Error.call(this);if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var s=new Error;s.name=this.name,this.stack=
s.stack}this.code=e,this._message=t,this.message="["+e+"] "+t,this.libraryId=n,this.underlyingError=i}return r.prototype=Object.create(Error.prototype),r.prototype.name="AdobeLibraryError",r.INVALID_PARAMETER="INVALID_PARAMETER",r.READ_ONLY="READ_ONLY",r.NOT_IMPLEMENTED="NOT_IMPLEMENTED",r.NOT_SUPPORTED="NOT_SUPPORTED",r.REQUIRES_FILESYSTEM="REQUIRES_FILESYSTEM",r.DELETED_LOCALLY="DELETED_LOCALLY",r.NOT_ALLOWED="NOT_ALLOWED",r.FILE_TOO_LARGE="FILE_TOO_LARGE",r.EXCEEDS_MAX_LIBRARY_SIZE="EXCEEDS_MAX_LIBRARY_SIZE"
,r.CORRUPTED_LIBRARY="CORRUPTED_LIBRARY",r.THUMBNAIL_NOT_AVAILABLE="THUMBNAIL_NOT_AVAILABLE",r.RENDITION_NOT_AVAILABLE="RENDITION_NOT_AVAILABLE",r.FS_ERROR="FS_ERROR",r.OUT_OF_SPACE="OUT_OF_SPACE",r.LOGGED_OUT="LOGGED_OUT",r.EXCEEDS_QUOTA="EXCEEDS_QUOTA",r.RETRYABLE_SERVER_ERROR="RETRYABLE_SERVER_ERROR",r.TRANSFER_ERROR="TRANSFER_ERROR",r.TRANSFER_ABORTED="TRANSFER_ABORTED",r.NETWORK_ERROR="NETWORK_ERROR",r.ACCESS_DENIED="ACCESS_DENIED",r.URL_VALIDATION_FAILED="URL_VALIDATION_FAILED",r.NO_COMPATIBLE_APP_FOUND="NO_COMPATIBLE_APP_FOUND"
,r.APP_LAUNCH_FAILED="APP_LAUNCH_FAILED",Object.freeze(r),Object.seal(r.prototype),r}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/AdobeLibraryConfig",["require","exports","module","./AdobeLibraryError"],function(e,t,n){"use strict";function s(){this.name="config"}var r=e("./AdobeLibraryError"),i=["ROOT_DIR","POLL_INTERVAL","RENDITION_SIZES","FULL_RENDITION_CONFIG","EXTERNAL_LINK_PREFETCH","LOCALE","STORAGE_API_KEY","USER_AGENT_HEADER","SYNC_POLICY","ELEMENT_TYPE_FILTERS"
,"AUTO_START_POLLING","SHARED_LOCAL_STORAGE","SHARED_LOCAL_STORAGE_ANALYTICS","WHITELISTED_DOMAINS","CLIENT_DESCRIPTION"];return s.prototype.VERSION=1,s.prototype.MAX_ELEMENTS=1e3,s.prototype.MAX_REMOVED_ELEMENTS=1e3,s.prototype.MAX_COMPONENT_SIZE=1073741824,s.prototype.VALID_RELATIONS=["rendition","primary","alternate"],s.prototype.VALID_LIBRARY_RENDITION_TYPES=["banner","cover"],s.prototype.VALID_SYNC_POLICIES=["manifestAndAssets","manifestOnly"],s.prototype.ELEMENT_TYPE_FILTERS=[],s.prototype.
DL_NAMESPACE="library",s.prototype.DL_PREFIX=s.prototype.DL_NAMESPACE+"#",s.prototype.VERSION_KEY=s.prototype.DL_PREFIX+"version",s.prototype.RELATIONSHIP_KEY=s.prototype.DL_PREFIX+"rel",s.prototype.WIDTH_KEY=s.prototype.DL_PREFIX+"width",s.prototype.HEIGHT_KEY=s.prototype.DL_PREFIX+"height",s.prototype.LENGTH_KEY=s.prototype.DL_PREFIX+"length",s.prototype.IS_FULL_SIZE_KEY=s.prototype.DL_PREFIX+"isFullSize",s.prototype.MODIFIED_KEY=s.prototype.DL_PREFIX+"modified",s.prototype.CREATED_KEY=s.prototype
.DL_PREFIX+"created",s.prototype.REMOVED_KEY=s.prototype.DL_PREFIX+"removed",s.prototype.LINK_TYPE_KEY=s.prototype.DL_PREFIX+"linktype",s.prototype.LINK_URL_KEY=s.prototype.DL_PREFIX+"linkurl",s.prototype.REPRESENTATION_ORDER_KEY=s.prototype.DL_PREFIX+"representationOrder",s.prototype.RENDITION_TYPE_KEY=s.prototype.DL_PREFIX+"renditiontype",s.prototype.COMPOSITE_TYPE="application/vnd.adobe.library+dcx",s.prototype.LINK_REPRESENTATION_TYPE="application/vnd.adobe.library.link+dcx",s.prototype.ELEMENTS_NAME="elements"
,s.prototype.REMOVED_ELEMENTS_NAME="removed_elements",s.prototype.DATA_COLLABORATION_ROLE="collaborationRole",s.prototype.ANALYTICS_ELEMENT_UPDATE_THRESHOLD=500,s.prototype.BOOKMARKS_FILENAME="bookmarks.json",s.prototype.BOOKMARKS_PATH="/bookmarks",s.prototype.BOOKMARKS_MONITOR_PATH="/sync/adobe-libraries/"+s.prototype.BOOKMARKS_FILENAME,s.prototype.PUBLIC_USER_ID="public",s.prototype.DEFAULT_CLOUD_ID="creative_cloud",s.prototype.DEFAULT_CORESYNC_CLOUD_ID="00000000-0000-0000-0000-000000000000",s.
prototype.STORAGE_ASSETS_PATH="/assets/",s.prototype.LIBRARY_SYNC_GROUP="adobe-libraries",s.prototype.PUBLIC_STORAGE_ASSETS_PATH="/public/",s.prototype.PUBLIC_LIBRARY_SYNC_GROUP="libraries",s.prototype.CP_CLOUD_ID="community-platform",s.prototype.CP_STORAGE_ASSETS_PATH="/content/2/",s.prototype.STORAGE_API_KEY="",s.prototype.USER_AGENT_HEADER=undefined,s.prototype.SYNCING_ENABLED=!0,s.prototype.DEFAULT_MAX_SYNC_INTERVAL=1e4,s.prototype.RETRY_FAIL_MAX_SYNC_INTERVAL=6e4,s.prototype.MAX_SYNC_INTERVAL=
s.prototype.DEFAULT_MAX_SYNC_INTERVAL,s.prototype.POLL_INTERVAL=1,s.prototype.AUTO_START_POLLING=!1,s.prototype.RENDITION_SIZES={},s.prototype.FULL_RENDITION_CONFIG={},s.prototype.BACKOFF_INTERVALS=[1,1,2,3,5,8,13,21,34,55],s.prototype.ERROR_RETRY_INTERVALS=[30,60,120],s.prototype.NETWORK_TIMEOUT=6e5,s.prototype.RETRY_RANDOM_SECONDS=30,s.prototype.RENDITION_MAX_RETRIES=2,s.prototype.DEFAULT_RENDITION_RETRY_INTERVAL=1e3,s.prototype.RENDITION_RETRY_INTERVAL=s.prototype.DEFAULT_RENDITION_RETRY_INTERVAL
,s.prototype.DEFAULT_RENDITION_404_BACKOFF=3e5,s.prototype.RENDITION_404_BACKOFF=s.prototype.DEFAULT_RENDITION_404_BACKOFF,s.prototype.LOCAL_RENDITION_MAX_RETRIES=5,s.prototype.LOCAL_RENDITION_RETRY_INTERVAL=200,s.prototype.MAX_UPDATE_CONFLICTS=5,s.prototype.WHITELISTED_DOMAINS=[],s.prototype.ADOBE_AUTHENTICATED_DOMAINS=["adobe.com","adobe.io","fotolia.net"],s.prototype.SYNC_POLICY="manifestAndAssets",s.prototype.REMOVED_ELEMENTS_CACHE_TIMEOUT=36e5,s.prototype.RENDITION_CACHE_FILE="cache.json",s.
prototype.RENDITION_CACHE_PLACEHOLDER="<placeholder>",s.prototype.SHARED_LOCAL_STORAGE=!0,s.prototype.SHARED_LOCAL_STORAGE_VERSION=8,s.prototype.SHARED_LOCAL_STORAGE_MIN_CLIENT_VERSION=5,s.prototype.SHARED_LOCAL_STORAGE_MAX_CLIENT_VERSION=8,s.prototype.VULCAN_PREFIX="vulcan.SuiteMessage.",s.prototype.VULCAN_STARTUP_MESSAGE="cclibraries.service.Initialized",s.prototype.VULCAN_SHUTDOWN_REQUEST="cclibraries.service.TerminateServiceRequest",s.prototype.VULCAN_QUERY_REQUEST="cclibraries.service.QueryRequest"
,s.prototype.VULCAN_QUERY_RESPONSE="cclibraries.service.QueryResponse",s.prototype.VULCAN_LIBRARY_CHANGED_LOCAL_TYPE="cclibraries.service.LibraryChangedLocal",s.prototype.VULCAN_LIBRARY_CHANGED_REMOTE_TYPE="cclibraries.service.LibraryChangedRemote",s.prototype.VULCAN_LIBRARY_DELETED_TYPE="cclibraries.service.LibraryDeleted",s.prototype.VULCAN_COLLECTIONS_LOADED_TYPE="cclibraries.service.LibrariesLoaded",s.prototype.VULCAN_COLLECTIONS_UNLOADED_TYPE="cclibraries.service.LibrariesUnloaded",s.prototype
.VULCAN_PROXY_QUERY_REQUEST="cclibraries.service.QueryProxySettingsRequest",s.prototype.VULCAN_PROXY_QUERY_RESPONSE="cclibraries.service.QueryProxySettingsResponse",s.prototype.VULCAN_PROXY_CHANGE_MESSAGE="cclibraries.service.ProxySettingsChanged",s.prototype.VULCAN_APP_READY_MESSAGE="cclibraries.accessor.AppReady",s.prototype.VULCAN_APP_SEND_ACTION_MESSAGE="cclibraries.accessor.EditElementRequest",s.prototype.VULCAN_APP_ACTION_ACCEPTED_MESSAGE="cclibraries.accessor.EditAcceptedMessage",s.prototype
.ELEMENT_ACTIONS=["edit","openStock"],s.prototype.ELEMENT_ACTION_PRODUCT_MAP={types:{"application/illustrator":["ILST_EDIT","ILST_PLACE","IDSN_PLACE"],"image/svg+xml":["ILST_EDIT","ILST_PLACE"],"application/vnd.adobe.indesign-idms":["IDSN_EDIT","IDSN_PLACE"],"image/vnd.adobe.photoshop":["PHXS_EDIT","PHXS_PLACE","IDSN_PLACE"],"application/photoshop":["PHXS_EDIT","PHXS_PLACE","IDSN_PLACE"],"application/photoshop.large":["PHXS_EDIT","PHXS_PLACE","IDSN_PLACE"],"image/png":["PHXS_EDIT","PHXS_PLACE","ILST_PLACE"
,"IDSN_PLACE","PPRO_PLACE","AEFT_PLACE"],"image/jpeg":["PHXS_EDIT","PHXS_PLACE","ILST_PLACE","IDSN_PLACE","PPRO_PLACE","AEFT_PLACE"],"image/jpg":["PHXS_EDIT","PHXS_PLACE","IDSN_PLACE","ILST_PLACE","PPRO_PLACE","AEFT_PLACE"],"image/gif":["PHXS_EDIT","PHXS_PLACE","ILST_PLACE","IDSN_PLACE","PPRO_PLACE","AEFT_PLACE"],"image/bmp":["PHXS_EDIT","PHXS_PLACE","ILST_PLACE","IDSN_PLACE","PPRO_PLACE","AEFT_PLACE"],"image/x-portable-bitmap":["PHXS_EDIT","PHXS_PLACE"],"image/x-pict":["PHXS_EDIT","PHXS_PLACE"],"image/x-pcx"
:["PHXS_EDIT","PHXS_PLACE"],"image/x-portable-graymap":["PHXS_EDIT","PHXS_PLACE"],"image/x-portable-anymap":["PHXS_EDIT","PHXS_PLACE"],"image/x-portable-pixmap":["PHXS_EDIT","PHXS_PLACE"],"image/x-tga":["PHXS_EDIT","PHXS_PLACE"],"image/tiff":["PHXS_EDIT","PHXS_PLACE"],"image/vnd.wap.wbmp":["PHXS_EDIT","PHXS_PLACE"]},products:{ILST_EDIT:{minVersion:"19.2",appCode:"ILST",appName:"Illustrator",action:"edit"},IDSN_EDIT:{minVersion:"11.2",appCode:"IDSN",appName:"InDesign",action:"edit"},PHXS_EDIT:{minVersion
:"16.1.2",appCode:"PHXS",appName:"Photoshop",action:"edit"},PHXS_PLACE:{minVersion:"17.0.0",appCode:"PHXS",appName:"Photoshop",action:"openStock"},ILST_PLACE:{minVersion:"20.0.0",appCode:"ILST",appName:"Illustrator",action:"openStock"},IDSN_PLACE:{minVersion:"11.4.0",appCode:"IDSN",appName:"InDesign",action:"openStock"},PPRO_PLACE:{minVersion:"10.3.0",appCode:"PPRO",appName:"Premiere Pro",action:"openStock"},AEFT_PLACE:{minVersion:"13.8.0",appCode:"AEFT",appName:"After Effects",action:"openStock"
}},installedApps:[]},s.prototype.STOCK_NAMESPACE="adobestock",s.prototype.STOCK_DATA_KEY="trackingdata",s.prototype.STOCK_STATE_PURCHASED="purchased",s.prototype.setParameter=function(e,t){if(i.indexOf(e)===-1)throw new r(r.INVALID_PARAMETER,"Parameter not configurable");if(e==="SYNC_POLICY"&&this.VALID_SYNC_POLICIES.indexOf(t)===-1)throw new r(r.INVALID_PARAMETER,"Invalid value for SYNC_POLICY");e==="POLL_INTERVAL"&&(t=Math.max(1,t)),this[e]=t},Object.freeze(s),Object.seal(s.prototype),new s}),define
("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/utils/AdobeLibraryMimeTypeUtils",["require","exports","module"],function(e,t,n){"use strict";function o(e){var t=e.match(/application\/x-adobe-libraries-(.+)/);return t?[t[1]]:[]}function u(e){return["application/x-adobe-libraries-"+e]}var r={},i={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/ccxml+xml"
:["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr"
:["pfr"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/hyperstudio":["stk"],"application/illustrator":["ai"],"application/illustrator.template":["ait"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js"],"application/json":["json"],"application/jsonml+json":["jsonml"],"application/lost+xml"
:["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"
],"application/mp4":["mp4s"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted"
:["pgp"],"application/pgp-signature":["asc","sig"],"application/photoshop":["psd"],"application/photoshop.large":["psb"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript"
:["ai","eps","ps"],"application/prs.cww":["cww"],"application/pskc+xml":["pskcxml"],"application/rdf+xml":["rdf"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf"
:["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml"
:["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp"
:["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.animate-xfl+zip":["fla","xfl"],"application/vnd.adobe.animate-oam+zip":["oam"],"application/vnd.adobe.characterstyle+json":["style"],"application/vnd.adobe.characterstyle+snippet":["idms"],"application/vnd.adobe.charts+zip":["zip"],"application/vnd.adobe.color+json":["ase"],"application/vnd.adobe.colortheme+json":["ase"]
,"application/vnd.adobe.cube+txt":["cube"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.indesign-idms":["idms"],"application/vnd.adobe.indesign.template":["indt"],"application/vnd.adobe.layerstyle":["asl"],"application/vnd.adobe.look+xml":["look"],"application/vnd.adobe.muse-collection":["muse"],"application/vnd.adobe.paragraphstyle+json":["style"],"application/vnd.adobe.paragraphstyle+snippet":["idms"],"application/vnd.adobe.ribbon.brush+zip"
:["brush"],"application/vnd.adobe.scatter.brush+zip":["brush"],"application/vnd.adobe.vector.brush+zip":["brush"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation"
:["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd"
:["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard"
:["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml"
:["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven"
:["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip"
:["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder"
:["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account"
:["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"
],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm"
:["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz"
:["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor"
:["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"
],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc"
:["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"
],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12"
:["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq"
:["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"
],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image"
:["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web"
:["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
:["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli"
:["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml"
:["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"
],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math"
:["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math"
:["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv"
:["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc"
:["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml"
:["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/voicexml+xml":["vxml"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"
],"application/x-apple-diskimage":["dmg"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"]
,"application/x-chess-pgn":["pgn"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva"
:["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-otf":["otf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-ttf":["ttf","ttc"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/font-woff":["woff"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric"
:["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["iso"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lzh-compressed":["lzh","lha"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"
],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdownload":["exe","dll","com","bat","msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","wmz","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite"
:["wri"],"application/x-netcdf":["nc","cdf"],"application/x-nzb":["nzb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-research-info-systems":["ris"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx"
:["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-wais-source":["src"],"application/x-x509-ca-cert":["der","crt"],"application/x-xfig":["fig"]
,"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml"
:["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp4":["mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice"
:["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/webm":["weba"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"
],"audio/x-wav":["wav"],"audio/xm":["xm"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jpeg":["jpeg","jpg","jpe"],"image/jpg":["jpg"],"image/ktx":["ktx"],"image/png":["png"],"image/prs.btif":["btif"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/vnd.adobe.photoshop"
:["psd"],"image/vnd.adobe.photoshop.template":["psdt"],"image/vnd.adobe.pattern+png":["png"],"image/vnd.adobe.shape+svg":["shape"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.dvb.subtitle":["sub"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo"
:["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/webp":["webp"],"image/x-3ds":["3ds"],"image/x-adobe-photoshop-brush":["abr"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-mrsid-image":["sid"],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap"
:["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/rfc822":["eml","mime"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d"
,"x3dz"],"text/cache-manifest":["appcache"],"text/calendar":["ics","ifb"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in"],"text/prs.lines.tag":["dsc"],"text/richtext":["rtx"],"text/sgml":["sgml","sgm"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl"
:["dcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-fortran":["f","for","f77","f90"],"text/x-java-source":["java"],"text/x-opml"
:["opml"],"text/x-pascal":["p","pas"],"text/x-nfo":["nfo"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/3gpp":["3gp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/vnd.dece.hd"
:["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/webm":["webm"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"
],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]},s={};return Object.keys(i).forEach(function(e){var t=i[e];t.forEach(function(t){s[t]=s[t]||[],s[t].push(e)})}),r.getExtensions=function(e){return e?i[e.toLowerCase()]||o(e.toLowerCase()):[]},r.getMimeTypes=function(
e){return e?s[e.toLowerCase()]||u(e.toLowerCase()):[]},Object.seal(r),r}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/utils/AdobeLibraryGeneralUtils",["require","exports","module"],function(e,t,n){"use strict";var r={};return r.wrapCallback=function(e){return function(){e&&e.apply(this,arguments)}},r.constructStringFromTemplate=function(e,t){var n=e;return Object.keys(t).forEach(function(e){n=n.replace("{{"+e+"}}",t[e])}),n},r.parseLocalisationFile=function(e){var t={},
n=0,r,i,s,o,u=e.split(/\n/);for(n=0;n<u.length;n++){u[n]=u[n].replace(/^\s\s*/,"").replace(/\s\s*$/,"");if(u[n].length>0&&u[n].match("^#")!=="#"){r=u[n].split("="),i=r[0].replace(/^\s\s*/,"").replace(/\s\s*$/,""),s=r.length===1?"":r[1];while(s.match(/\\$/)&&s.match(/\\$/).toString()==="\\")s=s.substring(0,s.length-1),s+=u[++n].replace(/\s\s*$/,"");for(o=2;o<r.length;o++)s+="="+r[o];s=s.replace(/^\s\s*/,"").replace(/\s\s*$/,""),t[i]=s}}return t},r.compareVersions=function(e,t){e=(e||"0").toString(
).replace(/(\.0)*$/,"").replace(/[^\.0-9]+/gim,"."),t=(t||"0").toString().replace(/(\.0)*$/,"").replace(/[^\.0-9]+/gim,".");if(isNaN(parseInt(e,10))||parseInt(e,10)>500)e="0";if(isNaN(parseInt(t,10))||parseInt(t,10)>500)t="0";if(e===t)return 0;var n=e.split("."),r=t.split("."),i,s;for(i=0;i<n.length&&i<r.length;i++){s=parseInt(n[i],10)-parseInt(r[i],10);if(isNaN(s))return isNaN(parseInt(n[i],10))?1:-1;if(s>0)return-1;if(s<0)return 1}return s=n.length-r.length,s>0?-1:s<0?1:0},Object.seal(r),r}),define
("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text",["module"],function(e){"use strict";function m(e,t){return e===undefined||e===""?t:e}function g(e,t,n,r){if(t===r)return!0;if(e===n){if(e==="http")return m(t,"80")===m(r,"80");if(e==="https")return m(t,"443")===m(r,"443")}return!1}var t=["LIBS_OPEN_IN"],n,r,i,s,o,u=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],a=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,f=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im
,l=typeof location!="undefined"&&location.href,c=l&&location.protocol&&location.protocol.replace(/\:/,""),h=l&&location.hostname,p=l&&(location.port||undefined),d={},v=e.config&&e.config()||{};n={version:"2.0.15",strip:function(e){if(e){e=e.replace(a,"");var t=e.match(f);t&&(e=t[1])}else e="";return e},jsEscape:function(e){return e.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028"
).replace(/[\u2029]/g,"\\u2029")},createXhr:v.createXhr||function(){var e,t,n;if(typeof XMLHttpRequest!="undefined")return new XMLHttpRequest;if(typeof ActiveXObject!="undefined")for(t=0;t<3;t+=1){n=u[t];try{e=new ActiveXObject(n)}catch(r){}if(e){u=[n];break}}return e},parseName:function(e){var t,n,r,i=!1,s=e.lastIndexOf("."),o=e.indexOf("./")===0||e.indexOf("../")===0;return s!==-1&&(!o||s>1)?(t=e.substring(0,s),n=e.substring(s+1)):t=e,r=n||t,s=r.indexOf("!"),s!==-1&&(i=r.substring(s+1)==="strip"
,r=r.substring(0,s),n?n=r:t=r),{moduleName:t,ext:n,strip:i}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(e,t,r,i){var s,o,u,a=n.xdRegExp.exec(e);return a?(s=a[2],o=a[3],o=o.split(":"),u=o[1],o=o[0],(!s||s===t)&&(!o||o.toLowerCase()===r.toLowerCase())&&(!u&&!o||g(s,u,t,i))):!0},finishLoad:function(e,r,i,s){if(e.match(/.*messages.properties$/)){var o=[];i.split("\n").forEach(function(e){var n=t.every(function(t){return e.indexOf(t)!==0});e.length>0&&n&&o.push(e)}),i=o.join("\n")}i=r?n.strip
(i):i,v.isBuild&&(d[e]=i),s(i)},load:function(e,t,r,i){if(i&&i.isBuild&&!i.inlineText){r();return}v.isBuild=i&&i.isBuild;var s=n.parseName(e),o=s.moduleName+(s.ext?"."+s.ext:""),u=t.toUrl(o),a=v.useXhr||n.useXhr;if(u.indexOf("empty:")===0){r();return}!l||a(u,c,h,p)?n.get(u,function(t){n.finishLoad(e,s.strip,t,r)},function(e){r.error&&r.error(e)}):t([o],function(e){n.finishLoad(s.moduleName+"."+s.ext,s.strip,e,r)})},write:function(e,t,r,i){if(d.hasOwnProperty(t)){var s=n.jsEscape(d[t]);r.asModule(
e+"!"+t,"define(function () { return '"+s+"';});\n")}},writeFile:function(e,t,r,i,s){var o=n.parseName(t),u=o.ext?"."+o.ext:"",a=o.moduleName+u,f=r.toUrl(o.moduleName+u)+".js";n.load(a,r,function(t){var r=function(e){return i(f,e)};r.asModule=function(e,t){return i.asModule(e,f,t)},n.write(e,a,r,s)},s)}};if(v.env==="node"||!v.env&&typeof process!="undefined"&&process.versions&&!!process.versions.node&&!process.versions["node-webkit"]&&!process.versions["atom-shell"])r=nodeRequire("fs"),n.get=function(
e,t,n){try{var i=r.readFileSync(e,"utf8");i[0]==="﻿"&&(i=i.substring(1)),t(i)}catch(s){n&&n(s)}};else if(v.env==="xhr"||!v.env&&n.createXhr())n.get=function(e,t,r,i){var s=n.createXhr(),o;s.open("GET",e,!0);if(i)for(o in i)i.hasOwnProperty(o)&&s.setRequestHeader(o.toLowerCase(),i[o]);v.onXhr&&v.onXhr(s,e),s.onreadystatechange=function(n){var i,o;s.readyState===4&&(i=s.status||0,i>399&&i<600?(o=new Error(e+" HTTP status: "+i),o.xhr=s,r&&r(o)):t(s.responseText),v.onXhrComplete&&v.onXhrComplete(s,e)
)},s.send(null)};return n}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/cs_CZ/messages.properties",[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=Moje knihovna\nLIBS_RECOVERED_LIBRARY={{name}} (obnoveno)"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/da_DK/messages.properties"
,[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=Mit bibliotek\nLIBS_RECOVERED_LIBRARY={{name}} (Gendannet)"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/de_DE/messages.properties",[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=Meine Bibliothek\nLIBS_RECOVERED_LIBRARY={{name}} (Wiederhergestellt)"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/en_US/messages.properties"
,[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=My Library\nLIBS_RECOVERED_LIBRARY={{name}} (Recovered)"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/es_ES/messages.properties",[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=Mi biblioteca\nLIBS_RECOVERED_LIBRARY={{name}} (recuperado)"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/es_MX/messages.properties"
,[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=Mi biblioteca\nLIBS_RECOVERED_LIBRARY={{name}} (recuperado)"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/fi_FI/messages.properties",[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=Oma kirjasto\nLIBS_RECOVERED_LIBRARY={{name}} (palautettu)"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/fr_CA/messages.properties"
,[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=Ma bibliothèque\nLIBS_RECOVERED_LIBRARY={{name}} (Récupéré)"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/fr_FR/messages.properties",[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=Ma bibliothèque\nLIBS_RECOVERED_LIBRARY={{name}} (Récupéré)"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/fr_MA/messages.properties"
,[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=Ma bibliothèque\nLIBS_RECOVERED_LIBRARY={{name}} (Récupéré)"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/hu_HU/messages.properties",[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=Saját könyvtár\nLIBS_RECOVERED_LIBRARY={{name}} (helyreállított)"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/it_IT/messages.properties"
,[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=Libreria personale\nLIBS_RECOVERED_LIBRARY={{name}} (recuperato)"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/ja_JP/messages.properties",[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=マイライブラリ\nLIBS_RECOVERED_LIBRARY={{name}} (回復済み)"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/ko_KR/messages.properties"
,[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=내 라이브러리\nLIBS_RECOVERED_LIBRARY={{name}}(복구됨)"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/nb_NO/messages.properties",[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=Biblioteket mitt\nLIBS_RECOVERED_LIBRARY={{name}} (gjenopprettet)"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/nl_NL/messages.properties"
,[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=Mijn bibliotheek\nLIBS_RECOVERED_LIBRARY={{name}} (hersteld)"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/pl_PL/messages.properties",[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=Moja biblioteka\nLIBS_RECOVERED_LIBRARY={{name}} (Odzyskane)"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/pt_BR/messages.properties"
,[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=Minha biblioteca\nLIBS_RECOVERED_LIBRARY={{name}} (Recuperado)"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/ru_RU/messages.properties",[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=Моя библиотека\nLIBS_RECOVERED_LIBRARY={{name}} (восстановлено)"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/sv_SE/messages.properties"
,[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=Mitt bibliotek\nLIBS_RECOVERED_LIBRARY={{name}} (återskapet)"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/tr_TR/messages.properties",[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=Kitaplığım\nLIBS_RECOVERED_LIBRARY={{ad}} ((Kurtarıldı))"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/uk_UA/messages.properties"
,[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=Моя бібліотека\nLIBS_RECOVERED_LIBRARY={{name}} (відновлено)"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/zh_CN/messages.properties",[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=我的库\nLIBS_RECOVERED_LIBRARY={{name}} （已恢复）"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/third_party/text/text!angular-cc-libraries-api-js/components/cc-libraries-api-js/locale/zh_TW/messages.properties"
,[],function(){return"LIBS_DEFAULT_LIBRARY_NAME=我的資料庫\nLIBS_RECOVERED_LIBRARY={{name}} (已復原)"}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/AdobeLibraryLocalisation",["require","exports","module","./AdobeLibraryServices","./utils/AdobeLibraryGeneralUtils","./third_party/text/text!../locale/cs_CZ/messages.properties","./third_party/text/text!../locale/da_DK/messages.properties","./third_party/text/text!../locale/de_DE/messages.properties","./third_party/text/text!../locale/en_US/messages.properties"
,"./third_party/text/text!../locale/es_ES/messages.properties","./third_party/text/text!../locale/es_MX/messages.properties","./third_party/text/text!../locale/fi_FI/messages.properties","./third_party/text/text!../locale/fr_CA/messages.properties","./third_party/text/text!../locale/fr_FR/messages.properties","./third_party/text/text!../locale/fr_MA/messages.properties","./third_party/text/text!../locale/hu_HU/messages.properties","./third_party/text/text!../locale/it_IT/messages.properties","./third_party/text/text!../locale/ja_JP/messages.properties"
,"./third_party/text/text!../locale/ko_KR/messages.properties","./third_party/text/text!../locale/nb_NO/messages.properties","./third_party/text/text!../locale/nl_NL/messages.properties","./third_party/text/text!../locale/pl_PL/messages.properties","./third_party/text/text!../locale/pt_BR/messages.properties","./third_party/text/text!../locale/ru_RU/messages.properties","./third_party/text/text!../locale/sv_SE/messages.properties","./third_party/text/text!../locale/tr_TR/messages.properties","./third_party/text/text!../locale/uk_UA/messages.properties"
,"./third_party/text/text!../locale/zh_CN/messages.properties","./third_party/text/text!../locale/zh_TW/messages.properties"],function(e,t,n){"use strict";function a(){this.setLocale()}var r=e("./AdobeLibraryServices"),i=e("./utils/AdobeLibraryGeneralUtils"),s={},o=typeof LOCALE_ROOT,u=o!=="undefined";if(!r.hasFileSystem()||!u)s={cs_CZ:e("./third_party/text/text!../locale/cs_CZ/messages.properties"),da_DK:e("./third_party/text/text!../locale/da_DK/messages.properties"),de_DE:e("./third_party/text/text!../locale/de_DE/messages.properties"
),en_US:e("./third_party/text/text!../locale/en_US/messages.properties"),es_ES:e("./third_party/text/text!../locale/es_ES/messages.properties"),es_MX:e("./third_party/text/text!../locale/es_MX/messages.properties"),fi_FI:e("./third_party/text/text!../locale/fi_FI/messages.properties"),fr_CA:e("./third_party/text/text!../locale/fr_CA/messages.properties"),fr_FR:e("./third_party/text/text!../locale/fr_FR/messages.properties"),fr_MA:e("./third_party/text/text!../locale/fr_MA/messages.properties"),hu_HU
:e("./third_party/text/text!../locale/hu_HU/messages.properties"),it_IT:e("./third_party/text/text!../locale/it_IT/messages.properties"),ja_JP:e("./third_party/text/text!../locale/ja_JP/messages.properties"),ko_KR:e("./third_party/text/text!../locale/ko_KR/messages.properties"),nb_NO:e("./third_party/text/text!../locale/nb_NO/messages.properties"),nl_NL:e("./third_party/text/text!../locale/nl_NL/messages.properties"),pl_PL:e("./third_party/text/text!../locale/pl_PL/messages.properties"),pt_BR:e("./third_party/text/text!../locale/pt_BR/messages.properties"
),ru_RU:e("./third_party/text/text!../locale/ru_RU/messages.properties"),sv_SE:e("./third_party/text/text!../locale/sv_SE/messages.properties"),tr_TR:e("./third_party/text/text!../locale/tr_TR/messages.properties"),uk_UA:e("./third_party/text/text!../locale/uk_UA/messages.properties"),zh_CN:e("./third_party/text/text!../locale/zh_CN/messages.properties"),zh_TW:e("./third_party/text/text!../locale/zh_TW/messages.properties")};return a.prototype._getLocaleData=function(e){if(!s[e]&&r.hasFileSystem(
)&&u)try{var t="readFileSync";s[e]=r.fs[t](LOCALE_ROOT+e+"/messages.properties","utf8")}catch(n){}return s[e]},a.prototype._normaliseLocale=function(e){if(e){e=e.replace("-","_");var t=e.split("_");return t[0]=t[0]&&t[0].toLowerCase(),t[1]=t[1]&&t[1].toUpperCase(),t.join("_")}},a.prototype.setLocale=function(e){e=this._normaliseLocale(e);if(!e||!this._getLocaleData(e))e="en_US";this._locale=e,this._strings=i.parseLocalisationFile(this._getLocaleData(this._locale))},a.prototype.getLocale=function(
){return this._locale},a.prototype.translate=function(e,t){var n=this._strings[e];return n&&t&&(n=i.constructStringFromTemplate(n,t)),n||e},Object.freeze(a),Object.seal(a.prototype),new a}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/utils/AdobeLibraryAsyncJoin",["require","exports","module","../AdobeLibraryError"],function(e,t,n){"use strict";function i(){this._operations=[],this._isRunning=!1}var r=e("../AdobeLibraryError");return i.prototype.addOperation=function(e,t
,n){if(this._isRunning)throw new r(r.INVALID_PARAMETER,"Cannot add operations after calling run()");this._operations.push({operation:e,argsArray:t||[],thisObject:n})},i.prototype.run=function(e,t){function n(t,n,r){e&&e(t,n,r)}function l(e,l,c){e&&t&&t(e);if(o)return;u=u||e;if(a[c]){o=!0,n(new r(r.INVALID_PARAMETER,"Operation not valid: calls callback multiple times"));return}s++,f[c]=l,a[c]=!0;if(s===i){o=!0;var h=f.reduce(function(e,t){return e||t},!1)?!0:!1;n(u||null,h,f)}}if(this._isRunning)throw new 
r(r.INVALID_PARAMETER,"Cannot call run() more than once");this._isRunning=!0;var i=this._operations.length;i===0&&n(null,!1,[]);var s=0,o=!1,u,a=[],f=[];this._operations.forEach(function(e,t){e.argsArray.push(function(e,n){l(e,n,t)}),e.operation.apply(e.thisObject,e.argsArray)})},Object.freeze(i),Object.seal(i.prototype),i}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/utils/AdobeLibraryManifestUtils",["require","exports","module","../components/dcx-js/src/AdobeDCX","../components/dcx-js/src/AdobeDCXError"
,"../AdobeLibraryConfig","../AdobeLibraryServices","../AdobeLibraryLocalisation","../AdobeLibraryError","./AdobeLibraryAsyncJoin"],function(e,t,n){"use strict";var r=e("../components/dcx-js/src/AdobeDCX"),i=e("../components/dcx-js/src/AdobeDCXError"),s=e("../AdobeLibraryConfig"),o=e("../AdobeLibraryServices"),u=e("../AdobeLibraryLocalisation"),a=e("../AdobeLibraryError"),f=e("./AdobeLibraryAsyncJoin"),l={},c={};l.isCompatibleType=function(e,t){return e===t||e===c[t]},l.validateLibraryId=function(
e,t){if(t){if(e&&e.length>=30&&e.match(/^[0-9A-Z\-]+$/i))return!0}else if(e&&e.match(/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i))return!0;return!1},l.validateLibrary=function(e){var t=e.current&&e.current.rootNode.getValue(s.VERSION_KEY);return t!==s.VERSION?!1:!0},l.areManifestsEqual=function(e,t){try{var n=JSON.parse(e),r=JSON.parse(t);delete n["manifest-format-version"],delete r["manifest-format-version"];if(JSON.stringify(n)===JSON.stringify(r))return!0}catch(i){}return!1
},l.getDCXKey=function(e,t){if(!e||!(typeof e=="string"||e instanceof String)||e==="")throw new a(a.INVALID_PARAMETER,"Invalid namespace");if(!t||!(typeof t=="string"||t instanceof String)||t==="")throw new a(a.INVALID_PARAMETER,"Invalid key");return e+"#"+t},l.getCustomDCXData=function(e){var t=e.getCustomKeys(),n=[];return t.forEach(function(t){var r=t.split("#"),i=r.length>=2;i&&r.forEach(function(e){e===""&&(i=!1)});var o=t.indexOf(s.DL_PREFIX)===0;i&&!o&&n.push({namespace:r.shift(),key:r.join
("#"),value:e.getValue(t)})}),n},l.copyCustomDCXData=function(e,t){var n=l.getCustomDCXData(e);n.forEach(function(e){t.setValue(l.getDCXKey(e.namespace,e.key),e.value)});var r=e.getValue(s.REPRESENTATION_ORDER_KEY);r&&t.setValue(s.REPRESENTATION_ORDER_KEY,r)},l.checkDeletedState=function(e,t){if(e.isDeletedLocally){if(t)return t(new a(a.DELETED_LOCALLY,"deleted/orphan object")),!0;throw new a(a.DELETED_LOCALLY,"deleted/orphan object")}return!1},l.checkEncoding=function(e,t,n){if(t.indexOf(e)===-1
){var r=t.join(", ");return n(new a(a.INVALID_PARAMETER,"Unsupported encoding. Supported encodings are: "+r)),!1}return!0},l.sortRepresentations=function(e){if(e.length<2)return;var t,n,r,i;for(;;){t=!1;for(n=1;n<e.length;n++)r=e[n-1],i=e[n],i._getOrder()<r._getOrder()&&(e[n-1]=i,e[n]=r,t=!0);if(!t)break}},l.removeMissingComponents=function(e,t){if(!e||!t)return undefined;var n=0;return t.forEach(function(t){var r=t.component,i=t.error;r&&i&&i.response&&i.response.statusCode===404&&(e.removeComponent
(r),n++,o.log("Removed missing component: "+r.id+" from library "+e.compositeId))}),o.log("Fixed "+n+" of "+t.length+" components that failed to download"),t.length===n?e:undefined};var h=function(e,t){var n;return e.elements.some(function(e){return e.representations.some(function(e){if(e.id===t)return n=e,!0})}),n};return l.removeMissingLocalComponents=function(e,t){if(!e||!t)return;var n=0,r=[];t.forEach(function(t){var s=t.component,u=t.error;if(s&&u&&u.code===i.INVALID_STATE){var a=h(e,s.id);
a?r.push(a):e._dcxBranch.removeComponent(s),n++,o.log("Removed missing local component: "+s.id+" from library "+e.id)}}),n>0&&(e._beginOperation(),r.forEach(function(e){e.element.removeRepresentation(e)}),e._endOperation()),o.log("Fixed "+n+" of "+t.length+" components that failed to upload")},l.recoverReadOnlyEdits=function(e,t,n){var r=[];e.elements.forEach(function(e){var n=t&&t.getChildWithId(e.id),i=n&&n.getValue(s.MODIFIED_KEY);i!==e.modified&&r.push(e)});var i=new f;if(r.length>0){var a=u.
translate("LIBS_RECOVERED_LIBRARY",{name:e.name}),l;e.collection.libraries.some(function(e){if(e.name===a&&e.isWritable&&e.collaboration!=="incoming"&&e.elements.length<s.MAX_ELEMENTS)return l=e,!0}),l||(l=e.collection.createLibrary(a)),r.forEach(function(t){i.addOperation(e.copyElement,[t,l],e)}),o.log("Recovering "+r.length+" elements from read-only library")}i.run(n)},l.collaborationStateToDCX=function(e){return e==="incoming"?r.COLLABORATION.SHARED_WITH_USER:e==="outgoing"?r.COLLABORATION.SHARED_BY_USER
:r.COLLABORATION.PRIVATE},l.collaborationStateFromDCX=function(e){return e===r.COLLABORATION.SHARED_WITH_USER?"incoming":e===r.COLLABORATION.SHARED_BY_USER?"outgoing":undefined},l.getCompositeRenditionMap=function(e){var t=e.getComponentsOf(),n={};return t&&t.forEach(function(e){if(e.relationship==="rendition"){var t=e.getValue(s.RENDITION_TYPE_KEY);t&&(n[t]=e)}}),n},Object.seal(l),l}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/utils/AdobeLibraryFileUtils",["require","exports"
,"module","../AdobeLibraryServices","./AdobeLibraryGeneralUtils"],function(e,t,n){"use strict";var r=e("../AdobeLibraryServices"),i=e("./AdobeLibraryGeneralUtils"),s={},o=function(e){return e+".TEMP_"+r.uuid()},u=function(e){var t=e.match(/(.*)\.TEMP_[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i);return t&&t[1]?t[1]:e};return s.ensurePathExists=function(e,t){function s(e,t,r){var o=t.slice(0,e).join(n),u=function(n){e<t.length?s(e+1,t,r):r(null)};i.exists(o,function(e){e?u():i.mkdir
(o,u)})}var n=r.getPathSeparator(),i=r.fs,o=e.split(n);s(2,o,t)},s.copyFile=function(e,t,n){var i=r.fs;try{var s=o(t),u=i.createWriteStream(s),a=i.createReadStream(e),f=!1;a.on("end",function(){f||i.rename(s,t,n)}),a.on("error",function(e){f=!0,n(e)}),a.pipe(u)}catch(l){n(l)}},s.normaliseTempFileName=function(e){return u(e)},s.getFileExtension=function(e){var t=e&&e.replace(/^.*[\\\/]/,""),n=t?t.lastIndexOf("."):-1;return n!==-1?t.substr(n+1).toLowerCase():undefined},s.recursiveDeleteDirectory=function(
e,t){var n=r.getPathSeparator(),i=r.fs,o=function(e){e&&e.code==="ENOENT"&&(e=null),t&&t(e)};i.exists(e,function(t){t?i.readdir(e,function(t,r){function f(t){t&&t.code==="ENOENT"&&(t=null),u=u||t,a++,a===r.length&&(u?o(u):i.rmdir(e,o))}if(t){o(t);return}if(!r||r.length===0){i.rmdir(e,o);return}var u=null,a=0;r.forEach(function(t){var r=e+n+t;i.stat(r,function(e,t){u=u||e,t&&t.isDirectory()?s.recursiveDeleteDirectory(r,f):i.unlink(r,f)})})}):o(null)})},s.moveLibrary=function(e,t,n){var i=r.fs;if(t===
e.id){n(null);return}var s=e._collection._getCompositeDir(t),o=e._getCompositeDir(),u=e._collection._getRenditionCacheDir(t),a=e._getRenditionCacheDir();i.rename(s,o,function(t){if(t){n(t);return}e._dcxComposite.path=o,i.rename(u,a,n)})},s.readLibraryDirectory=function(e,t){var n=r.fs,i=e._getTempDir();s.recursiveDeleteDirectory(i,function(){var r=e._getCompositeDir();n.readdir(r,t)})},s.doesRootDirExist=function(e,t){var n=r.fs,i=e._getCompositeDir();n.exists(i,function(e){t(null,e)})},s.deleteLibraryFromDisk=
function(e,t,n){var o=i.wrapCallback(n);if(!r.hasFileSystem()){o(null);return}var u=e._getCompositeDir(t),a=e._getRenditionCacheDir(t);s.recursiveDeleteDirectory(u,function(){s.recursiveDeleteDirectory(a,o)})},s.writeJSONData=function(e,t,n,i){var o=r.fs;s.ensurePathExists(e,function(s){if(s){i(s);return}var u=e+r.getPathSeparator()+t,a=u+".TEMP_"+r.uuid();o.writeFile(a,JSON.stringify(n,undefined,2),"utf8",function(e){if(e){i(e);return}o.rename(a,u,i)})})},s.readJSONData=function(e,t){var n=r.fs;
n.readFile(e,"utf8",function(e,n){if(e){if(e.code==="ENOENT")return t(null)}else try{n=n&&JSON.parse(n)}catch(r){n=undefined,e=r}t(e,n)})},Object.seal(s),s}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/utils/AdobeLibraryErrorUtils",["require","exports","module","../components/dcx-js/src/AdobeDCXError","../AdobeLibraryError"],function(e,t,n){"use strict";var r=e("../components/dcx-js/src/AdobeDCXError"),i=e("../AdobeLibraryError"),s={};return s.getErrorStatusCode=function(
e){if(!e)return undefined;var t=e.code===r.UNEXPECTED_RESPONSE&&e.response&&e.response.statusCode;return t?t:e.underlyingError?s.getErrorStatusCode(e.underlyingError):undefined},s.getSyncError=function(e,t,n){if(e){var o,u=s.getErrorStatusCode(e);return e.code===r.SERVICE_IS_INACTIVE?o=new i(i.LOGGED_OUT,"no access token: call updateAccessToken() and try again",t,e):e.code===r.NETWORK_ERROR?o=new i(i.NETWORK_ERROR,"error connecting to server",t,e):e.code===r.EXCEEDS_QUOTA?o=new i(i.EXCEEDS_QUOTA,"push failed due to insufficient remaining quota"
,t,e):e.code===r.OUT_OF_SPACE?o=new i(i.OUT_OF_SPACE,"not enough disk space",t,e):e.code===r.NOT_IMPLEMENTED?o=new i(i.NOT_IMPLEMENTED,"tried to call an API not implemented on the server",t,e):e.code===r.RETRYABLE_SERVER_ERROR?o=new i(i.RETRYABLE_SERVER_ERROR,"intermittent server failure - can retry later",t,e):e.code===r.INVALID_DATA||e.code===r.INVALID_JSON?o=new i(i.CORRUPTED_LIBRARY,"unable to read manifest",t,e):u&&n&&n[u]?o=new i(n[u],"server returned "+u+"response",t,e):o=new i(i.TRANSFER_ERROR
,"something went wrong during a push/pull operation",t,e),o}},s.getCommitError=function(e,t,n){if(e){var s,o=n?" - "+n:"";return e.code===r.INVALID_DATA||e.code===r.INVALID_JSON?s=new i(i.CORRUPTED_LIBRARY,"unable to read manifest"+o,t,e):e.code===r.OUT_OF_SPACE?s=new i(i.OUT_OF_SPACE,"not enough disk space"+o,t,e):s=new i(i.FS_ERROR,"filesystem error"+o,t,e),s}},s.getErrorPriority=function(e){var t=[i.EXCEEDS_MAX_LIBRARY_SIZE,i.THUMBNAIL_NOT_AVAILABLE,i.RENDITION_NOT_AVAILABLE,i.URL_VALIDATION_FAILED
,i.CORRUPTED_LIBRARY,i.TRANSFER_ABORTED,i.TRANSFER_ERROR,i.NETWORK_ERROR,i.EXCEEDS_QUOTA,i.RETRYABLE_SERVER_ERROR,i.LOGGED_OUT,i.FILE_TOO_LARGE,i.FS_ERROR,i.OUT_OF_SPACE,i.ACCESS_DENIED,i.NOT_ALLOWED,i.DELETED_LOCALLY,i.REQUIRES_FILESYSTEM,i.NOT_SUPPORTED,i.NOT_IMPLEMENTED,i.INVALID_PARAMETER,i.READ_ONLY],n=e&&e.code&&t.indexOf(e.code);return n!==undefined?n:-1},s.errorToString=function(e){var t="";return e&&(e.message&&(t+=e.message),e.libraryId&&(t+=" library: "+e.libraryId),e.underlyingError?t+="\n<- "+
s.errorToString(e.underlyingError):e.response&&e.response.statusCode&&(t+=": "+e.response.statusCode),e.failedComponents&&(t+="\n<- Failed Components:",e.failedComponents.forEach(function(e){var n=e.component&&e.component.id,r=e.error,i=r&&r.message,s=r&&r.response&&r.response.statusCode;t+="\n    ["+n+"] "+i+(s?": "+s:"")}))),t},s.isErrorCode=function(e){return e?i.hasOwnProperty(e)&&i[e]===e:!1},Object.seal(s),s}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/utils/AdobeLibrarySyncUtils"
,["require","exports","module","../AdobeLibraryConfig","../AdobeLibraryError","../components/dcx-js/src/AdobeDCXUtil"],function(e,t,n){"use strict";var r=e("../AdobeLibraryConfig"),i=e("../AdobeLibraryError"),s=e("../components/dcx-js/src/AdobeDCXUtil"),o={};o.getBackoffTicks=function(e){var t=r.BACKOFF_INTERVALS,n=Math.max(0,Math.min(e,t.length-1));return t[n]-1},o.getRetryAfterHeader=function(e){if(e){var t=e["retry-after"]||e["Retry-After"];if(t)try{var n=parseInt(t,10);if(n)return Math.max(0,
n);var i=Date.parse(t);if(i){var s=(new Date).valueOf(),o=Math.max(0,i-s)/1e3,u=Math.floor(Math.random()*r.RETRY_RANDOM_SECONDS);return o+u}}catch(a){}}return 0},o.getLocationHeader=function(e){if(e){var t=e.location||e.Location;if(t)return t}},o.getContentTypeHeader=function(e){if(e){var t=e["content-type"]||e["Content-Type"];if(t){var n=t.indexOf(";");return n>0&&(t=t.substring(0,n)),t}}},o.getContentLengthHeader=function(e){if(e){var t=e["content-length"]||e["Content-Length"];return Number(t)||
undefined}},o.isUnrecoverableClientError=function(e,t){return e?e>=400&&e<500&&(e!==401||!!t)&&e!==407&&e!==408:!1};var u=function(e,t){return t.some(function(t){if(e===t)return!0;var n=e.indexOf("."+t);return n!==-1&&n===e.length-t.length-1})};return o.isAdobeDomain=function(e){return e?u(e,r.ADOBE_AUTHENTICATED_DOMAINS):!1},o.validateURL=function(e){if(!e)return new i(i.URL_VALIDATION_FAILED,"URL not specified");var t=s.parseURI(e);if(t.scheme!=="https")return new i(i.URL_VALIDATION_FAILED,"URL must be https://"
);var n=o.isAdobeDomain(t.authority),a=n||u(t.authority,r.WHITELISTED_DOMAINS);return a?null:new i(i.URL_VALIDATION_FAILED,"URL domain not in whitelist")},Object.seal(o),o}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/AdobeLibraryRepresentation",["require","exports","module","./AdobeLibraryServices","./AdobeLibraryConfig","./AdobeLibraryError","./utils/AdobeLibraryMimeTypeUtils","./utils/AdobeLibraryManifestUtils","./utils/AdobeLibraryFileUtils","./utils/AdobeLibraryErrorUtils"
,"./utils/AdobeLibrarySyncUtils"],function(e,t,n){"use strict";function c(e,t,n){this._element=e,this._dcxNode=t,this._dcxComponent=n,this._deletedLocally=!1,this._pendingDownloadCallbacks=[]}var r=e("./AdobeLibraryServices"),i=e("./AdobeLibraryConfig"),s=e("./AdobeLibraryError"),o=e("./utils/AdobeLibraryMimeTypeUtils"),u=e("./utils/AdobeLibraryManifestUtils"),a=e("./utils/AdobeLibraryFileUtils"),f=e("./utils/AdobeLibraryErrorUtils"),l=e("./utils/AdobeLibrarySyncUtils");return c.prototype._markDeletedLocally=
function(e){this._deletedLocally=e},c.prototype._toJSON=function(){var e={id:this.id,type:this.type,relationship:this.relationship};return r.hasFileSystem()&&(e._componentPath=this._getComponentPath()),e},c.prototype._getOrder=function(){return this._getDCXElement().getValue(i.REPRESENTATION_ORDER_KEY)||0},c.prototype._setComponentInBrowser=function(e,t,n){var r=this,i=this._element._library._collection._syncManager;i.uploadNewComponentForRepresentation(e,t,this,function(e,t){if(u.checkDeletedState
(r,n)){n(e);return}if(e){n(e);return}u.copyCustomDCXData(r._dcxNode,t);var i=r._element._library._dcxBranch;i.removeChild(r._dcxNode),r._dcxComponent=t,delete r._dcxNode,r._commit(),n(null)})},c.prototype._setComponentFromPath=function(e,t,n){var o=r.fs,f=this,l=e&&r.getFileNameFromPath(e),c=a.getFileExtension(l),h=this.id+"."+c;o.stat(e,function(o,a){if(a&&a.size>i.MAX_COMPONENT_SIZE){n(new s(s.FILE_TOO_LARGE,"File exceeds maximum size for a representation"));return}r.storageInterface.notifyStartWrite
(f._element._library,[],function(){var r=f._element._library._dcxBranch;r.addComponent(l,f.type,f.relationship,h,e,t,undefined,f._element._dcxNode,f.id,function(e,t){if(u.checkDeletedState(f,n))return;if(e){n(e);return}u.copyCustomDCXData(f._dcxNode,t),r.removeChild(f._dcxNode),f._dcxComponent=t,delete f._dcxNode,f._commit(),n(null)})})})},c.prototype._setComponent=function(e,t,n,i){function h(e){if(u.checkDeletedState(l,i))return;if(e){i(f.getCommitError(e,l._element._library.id,"error writing representation contents"
));return}l._setComponentFromPath(c,!1,i)}function p(){t==="buffer"?s.writeFile(c,e,h):s.writeFile(c,e,t,h)}var s=r.fs,l=this,c,d=this.element.library.collection._getTempDir();a.ensurePathExists(d,function(e){if(u.checkDeletedState(l,i))return;if(e){i(f.getCommitError(e,l._element._library.id,"error creating temp directory"));return}if(!n){var t=o.getExtensions(l.type)[0];n=l.id+"."+t}c=d+r.getPathSeparator()+n,p()})},c.prototype._getCurrentComponentPath=function(){return this._dcxComponent?this.
_element._library._dcxBranch.assetOfComponent(this._dcxComponent):undefined},c.prototype._getComponentPath=function(e,t){if(!e)return this._getCurrentComponentPath();if(this.isExternalLink)this._getExternalLinkPath(e);else if(this._dcxComponent){var n=this._getCurrentComponentPath();if(n||t)e(null,n);else{var r=this,i=this._element._library;i._networkLock.obtain(function(t){if(t){e(t);return}if(u.checkDeletedState(r,e)){i._networkLock.release();return}i._setSyncState("downloading");var n=i._collection
._syncManager;n.downloadRepresentation(r,function(t){i._networkLock.release(),i._setSyncState();if(u.checkDeletedState(r,e))return;if(t){e(f.getSyncError(t,r._element._library.id));return}i._commit(!0,!0),r._getComponentPath(e,!0)})})}}else e(null)},c.prototype._setRenditionCache=function(e,t,n,r){var i=this.element;i._lock.obtain(function(){i._setRenditionCache(e,t,n),i._lock.release(),r()})},c.prototype._getCachedExternalLinkPath=function(e){var t=null,n=this.element._lookupRenditionPath(this.id
);!e&&n===i.RENDITION_CACHE_PLACEHOLDER&&(n=undefined),f.isErrorCode(n)&&(t=new s(n,"Broken link, or access denied",this.element.library.id),n=undefined);if(!t&&!n){var r=this._dcxNode.getValue(i.LINK_URL_KEY);t=l.validateURL(r)}return{err:t,path:n}},c.prototype._getExternalLinkPath=function(e){var t=this,n=this.element.library,a=n.collection,c=a._getTempDir(),h=this._getCachedExternalLinkPath();if(h.err||h.path){e(h.err,h.path);return}if(i.SHARED_LOCAL_STORAGE){r.storageInterface.downloadExternalLink
(t,e);return}this._pendingDownloadCallbacks.push(e);if(this._pendingDownloadCallbacks.length>1)return;var p=function(e,n){var r=t._pendingDownloadCallbacks;t._pendingDownloadCallbacks=[],r.forEach(function(t){t(e,n)})},d=function(e,n,r){a._updateExternalLinkDownloadProgress(t,e,n,r)},v=function(e,i){var o=function(t,n){d(undefined,undefined,e),p(t,n)};if(e){o(e);return}if(f.isErrorCode(i)){t._setRenditionCache(t.id,i,!0,function(){o(new s(i,"Broken link, or access denied",n.id))});return}t.element
.setThumbnailCache(t.id,i,function(e,n){r.storageInterface.notifyDownloadRendition(t.element),o(e,n)})},m=this._dcxNode.getValue(i.LINK_URL_KEY),g=(new Date).valueOf();r.log("Downloading from external URL: "+m),a._syncManager.getAssetFromURL(m,{},c,d,function(e,n,i,c){r.log("Finished downloading from external URL: "+((new Date).valueOf()-g)+"ms");if(u.checkDeletedState(t,v))return;var h=e&&e.response&&e.response.statusCode;if(l.isUnrecoverableClientError(h,a.isPublic)){v(null,s.RENDITION_NOT_AVAILABLE
);return}if(e){v(f.getSyncError(e));return}var p=l.getContentTypeHeader(c&&c.headers)||t.type,d=o.getExtensions(p)[0]||"data",m=n+"."+d;r.fs.rename(n,m,function(e){if(e){v(f.getCommitError(e));return}v(null,m)})})},c.prototype._testExternalLink=function(e){var t=this,n=this._getCachedExternalLinkPath(!0);if(n.err){e(null,!1);return}if(n.path){e(null,!0);return}var o=this.element.library.collection,u=this._dcxNode.getValue(i.LINK_URL_KEY);o._updateExternalLinkDownloadProgress(this,0,1);var a=function(
n,r){o._updateExternalLinkDownloadProgress(t),e(n,r)},f=(new Date).valueOf();r.log("HEAD request of external URL: "+u),r.storageInterface.doHeadRequestOfURL(o,u,function(e,n){r.log("Finished HEAD request of external URL: "+((new Date).valueOf()-f)+"ms");if(e){a(null,!0);return}var u=n&&n.statusCode;l.isUnrecoverableClientError(u,o.isPublic)?t._setRenditionCache(t.id,s.RENDITION_NOT_AVAILABLE,!0,function(){a(null,!1)}):u&&u>=200&&u<400?t._setRenditionCache(t.id,i.RENDITION_CACHE_PLACEHOLDER,!1,function(
){a(null,!0)}):a(null,!0)})},c.prototype._getDCXElement=function(){return this._dcxComponent||this._dcxNode},c.prototype._commit=function(){this._element._commit()},c.prototype._getMissingLocalComponents=function(){return r.hasFileSystem()&&this._dcxComponent&&!this._getCurrentComponentPath()?[this._dcxComponent]:[]},c.prototype.jasmineToString=function(){return this.toString()},Object.defineProperties(c.prototype,{id:{get:function(){return this._getDCXElement().id},set:function(e){throw new s(s.
READ_ONLY,"Cannot change the id of an existing representation",this._element._library.id)}},element:{get:function(){return this._element},set:function(e){throw new s(s.READ_ONLY,"element is a read-only property",this._element._library.id)}},isWritable:{get:function(){return this._element.isWritable},set:function(){throw new s(s.READ_ONLY,"isWritable is a read-only property",this._element._library.id)}},type:{get:function(){var e=this._getDCXElement().type;return e===i.LINK_REPRESENTATION_TYPE&&(e=
this._getDCXElement().getValue(i.LINK_TYPE_KEY)),e},set:function(e){throw new s(s.READ_ONLY,"Cannot change the content type of an existing representation",this._element._library.id)}},relationship:{get:function(){return this._dcxComponent?this._dcxComponent.relationship:this._dcxNode.getValue(i.RELATIONSHIP_KEY)||this._dcxNode.getValue("relationship")},set:function(e){this._element._validateRelationship(e,this),this._dcxComponent?this._dcxComponent.relationship=e:this._dcxNode.setValue(i.RELATIONSHIP_KEY
,e)}},width:{get:function(){return this._dcxComponent?this._dcxComponent.getValue("width"):this._dcxNode.getValue(i.WIDTH_KEY)},set:function(e){u.checkDeletedState(this);if(!this.isWritable)throw new s(s.NOT_ALLOWED,"you do not have write access to this library",this._element._library.id);if(!this._dcxComponent&&!this.isExternalLink)throw new s(s.INVALID_PARAMETER,"Cannot set width on a representation without contents",this._element._library.id);if(typeof e!="number"||e<0)throw new s(s.INVALID_PARAMETER
,"Invalid width",this._element._library.id);this._dcxComponent?this._dcxComponent.setValue("width",e):this._dcxNode.setValue(i.WIDTH_KEY,e),this._commit()}},height:{get:function(){return this._dcxComponent?this._dcxComponent.getValue("height"):this._dcxNode.getValue(i.HEIGHT_KEY)},set:function(e){u.checkDeletedState(this);if(!this.isWritable)throw new s(s.NOT_ALLOWED,"you do not have write access to this library",this._element._library.id);if(!this._dcxComponent&&!this.isExternalLink)throw new s(
s.INVALID_PARAMETER,"Cannot set height on a representation without contents",this._element._library.id);if(typeof e!="number"||e<0)throw new s(s.INVALID_PARAMETER,"Invalid height",this._element._library.id);this._dcxComponent?this._dcxComponent.setValue("height",e):this._dcxNode.setValue(i.HEIGHT_KEY,e),this._commit()}},isFullSize:{get:function(){return this._getDCXElement().getValue(i.IS_FULL_SIZE_KEY)},set:function(e){u.checkDeletedState(this);if(!this.isWritable)throw new s(s.NOT_ALLOWED,"you do not have write access to this library"
,this._element._library.id);if(!this._dcxComponent&&!this.isExternalLink)throw new s(s.INVALID_PARAMETER,"Cannot set isFullSize on a representation without contents",this._element._library.id);if(typeof e!="boolean")throw new s(s.INVALID_PARAMETER,"Invalid isFullSize",this._element._library.id);this._getDCXElement().setValue(i.IS_FULL_SIZE_KEY,e),this._commit()}},contentLength:{get:function(){if(this.isExternalLink)return this._dcxNode.getValue(i.LENGTH_KEY);if(this._dcxComponent){if(this._dcxComponent
.length===undefined&&r.hasFileSystem()){var e=this._getCurrentComponentPath(),t="statSync";try{var n=r.fs[t](e);return n&&n.size}catch(s){}}return this._dcxComponent.length}return undefined},set:function(e){if(!this.isExternalLink)throw new s(s.READ_ONLY,"setContentLength can only be used for an externally-linked representation",this._element._library.id);if(typeof e!="number"||e<0)throw new s(s.INVALID_PARAMETER,"Invalid content length",this._element._library.id);this._dcxNode.setValue(i.LENGTH_KEY
,e),this._commit()}},isDeletedLocally:{get:function(){return this._deletedLocally},set:function(e){throw new s(s.READ_ONLY,"isDeletedLocally is a read-only property",this._element._library.id)}},isExternalLink:{get:function(){return this._dcxNode!==undefined&&this._dcxNode.type===i.LINK_REPRESENTATION_TYPE},set:function(e){throw new s(s.READ_ONLY,"isExternalLink is a read-only property",this._element._library.id)}}}),c.prototype.isCompatibleType=function(e){if(this._dcxComponent){var t=a.getFileExtension
(this._dcxComponent.path),n=o.getExtensions(e);if(n.indexOf(t)===-1)return!1}return u.isCompatibleType(e,this.type)},c.prototype.toString=function(){return JSON.stringify(this._toJSON())},c.prototype.getValue=function(e,t){if(e===i.DL_NAMESPACE)throw new s(s.INVALID_PARAMETER,"Reserved namespace",this._element._library.id);var n=u.getDCXKey(e,t);return this._getDCXElement().getValue(n)},c.prototype.getValues=function(){return u.getCustomDCXData(this._getDCXElement())},c.prototype.setValue=function(
e,t,n){u.checkDeletedState(this);if(!this.isWritable)throw new s(s.NOT_ALLOWED,"you do not have write access to this library",this._element._library.id);if(e===i.DL_NAMESPACE)throw new s(s.INVALID_PARAMETER,"Reserved namespace",this._element._library.id);var r=u.getDCXKey(e,t),o;try{o=JSON.parse(JSON.stringify(n))}catch(a){throw new s(s.INVALID_PARAMETER,"Value cannot be serialized to JSON",this._element._library.id)}this._getDCXElement().setValue(r,o),this._commit()},c.prototype.setContent=function(
e,t,n,i){if(u.checkDeletedState(this,i))return;if(!this.isWritable){i(new s(s.NOT_ALLOWED,"you do not have write access to this library",this._element._library.id));return}if(this._dcxComponent||this.isExternalLink){i(new s(s.INVALID_PARAMETER,"Cannot modify representation content once set",this._element._library.id));return}if(!r.hasFileSystem()){if(t!==undefined){i(new s(s.INVALID_PARAMETER,"Encoding parameter not supported in-browser"));return}this._setComponentInBrowser(e,n,i)}else{if(!u.checkEncoding
(t,["utf8","ascii","base64","buffer"],i))return;this._setComponent(e,t,n,i)}},c.prototype.setContentFromPath=function(e,t,n){typeof t=="function"&&(n=t,t=!1);if(!r.hasFileSystem()){n(new s(s.REQUIRES_FILESYSTEM,"path-based APIs require a filesystem",this._element._library.id));return}if(u.checkDeletedState(this,n))return;if(!this.isWritable){n(new s(s.NOT_ALLOWED,"you do not have write access to this library",this._element._library.id));return}if(this._dcxComponent||this.isExternalLink){n(new s(s
.INVALID_PARAMETER,"Cannot modify representation content once set",this._element._library.id));return}this._setComponentFromPath(e,!t,n)},c.prototype.setContentFromURL=function(e,t,n,a){if(!r.hasFileSystem()&&!e){a(new s(s.NOT_IMPLEMENTED,"not yet implemented setContentFromURL without a filesystem",this._element._library.id));return}if(u.checkDeletedState(this,a))return;if(!this.isWritable){a(new s(s.NOT_ALLOWED,"you do not have write access to this library",this._element._library.id));return}if(typeof 
e!="boolean"){a(new s(s.INVALID_PARAMETER,"Invalid createLink parameter: must be Boolean",this._element._library.id));return}if(this._dcxComponent||this.isExternalLink){a(new s(s.INVALID_PARAMETER,"Cannot modify representation content once set",this._element._library.id));return}if(e){this._dcxNode.setValue(i.LINK_TYPE_KEY,this._dcxNode.type),this._dcxNode.type=i.LINK_REPRESENTATION_TYPE,this._dcxNode.setValue(i.LINK_URL_KEY,t),this._commit(),a(null);return}var c=this,h=this.element.library.collection
,p=h._getTempDir();r.storageInterface.getAssetFromURL(h,t,n,p,function(e,t,n,i){if(e){a(f.getSyncError(e));return}if(u.checkDeletedState(c,a))return;var s=l.getContentTypeHeader(i&&i.headers);if(s){var h=o.getExtensions(s)[0],p=t+"."+h;r.fs.rename(t,p,function(e){if(e){a(f.getCommitError(e));return}c._setComponentFromPath(p,!1,a)})}else c._setComponentFromPath(t,!1,a)})},c.prototype.getContentPath=function(e){if(!r.hasFileSystem()){e(new s(s.REQUIRES_FILESYSTEM,"path-based APIs require a filesystem"
,this._element._library.id));return}if(u.checkDeletedState(this,e))return;this._getComponentPath(e)},c.prototype.getCachedContentPath=function(){if(!r.hasFileSystem())return undefined;if(this.isExternalLink){var e=this._getCachedExternalLinkPath();return e.path}return this._dcxComponent?this._getCurrentComponentPath()||undefined:undefined},c.prototype.getContent=function(e,t){var n=r.fs,i=this;if(u.checkDeletedState(this,t))return;if(!r.hasFileSystem()){if(!u.checkEncoding(e,["text","blob","arraybuffer"
],t))return;if(!this._dcxComponent){t(null);return}var s=this._element._library._collection._syncManager;s.getSharedCloudContent(this,e,t)}else{if(!u.checkEncoding(e,["utf8","ascii","base64","buffer"],t))return;this._getComponentPath(function(r,s){if(r||!s){t(r);return}if(u.checkDeletedState(i,t))return;var o=function(e,n){e&&f.getCommitError(e,i._element._library.id,"error reading content from disk"),t(e,n)};e==="buffer"?n.readFile(s,o):n.readFile(s,e,o)})}},c.prototype.getContentURL=function(){
if(this.isExternalLink)return this._dcxNode.getValue(i.LINK_URL_KEY);if(this._dcxComponent){var e=this._element._library._collection._syncManager;return e.getSharedCloudContentURL(this._dcxComponent)}return undefined},c.prototype.getAuthenticatedContentURL=function(e){var t=this.getContentURL(),n=this._element._library._collection._syncManager;n.appendAccessTokenToURL(t,e)},c.prototype.testExternalLink=function(e){if(!this.isExternalLink||!this.getContentURL()){e(new s(s.INVALID_PARAMETER,"Not an external link"
,this._element._library.id));return}this._testExternalLink(e)},c.prototype.getCachedExternalLinkError=function(){if(!this.isExternalLink||!this.getContentURL())return new s(s.INVALID_PARAMETER,"Not an external link",this._element._library.id);var e=this._getCachedExternalLinkPath();return e.err},c.prototype.getExternalLinkDownloadProgress=function(){if(this.isExternalLink)return this.element.library.collection._getExternalLinkDownloadProgress(this)},Object.freeze(c),Object.seal(c.prototype),c}),define
("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/AdobeLibraryAnalytics",["require","exports","module","./AdobeLibraryServices","./AdobeLibraryConfig"],function(e,t,n){"use strict";function u(e){if(e.type){var t=e.type.match(/application\/vnd\.adobe\.element\.(.*)\+dcx/);return t&&t.length===2?t[1]:e.type}return null}function a(e){if(!e)return{};var t={libraryID:e.id,libraryElementCount:e._elements.length};return e.collection.isPublic?t.libraryShared="incoming-public":e.collaboration&&
(t.libraryShared=e.collaboration,e.isWritable||(t.libraryShared+="-readonly")),t}function f(e){var t=null;return e.getValues().forEach(function(e){e.key==="trackingdata"&&(t||(t={}),t[e.namespace]=e.value)}),t}function l(e){if(!e)return{};var t=a(e._library);t.elementID=e.id,t.elementType=u(e);var n=e.getPrimaryRepresentation();if(n){var r=f(n);r&&(t.trackingData=JSON.stringify(r)),t.elementPrimaryType=n.type}return t}function c(e){if(!e)return{};var t=l(e._element);return t.representationType=e.
type,t}function h(e){if(!e)return{};var t=l(e.element);return t.appCode=e.appCode,t.elementAction=e.id,t}function p(){return r.analytics!==null&&r.analytics!==undefined}var r=e("./AdobeLibraryServices"),i=e("./AdobeLibraryConfig"),s,o,d={};return d.reportError=function(e){p()&&e&&r.analytics.reportError(e.code+(e.underlyingError?":"+e.underlyingError.code:""))},d.reportCreateLibrary=function(e){p()&&r.analytics.reportEvent("createLibrary",{libraryID:e.id})},d.reportDeleteLibrary=function(e){p()&&
r.analytics.reportEvent("deleteLibrary",a(e))},d.reportCreateElement=function(e){p()&&(s=e,o=Date.now(),r.analytics.reportEvent("createElement",l(e)))},d.reportUpdateElement=function(e,t){if(p()){if(e===s&&Date.now()-o<i.ANALYTICS_ELEMENT_UPDATE_THRESHOLD)return;s=e,o=Date.now();var n=l(e);n.updateType=t?"info":"representation",r.analytics.reportEvent("updateElement",n)}},d.reportUseElement=function(e,t,n){if(p()){var i=c(e);i.opType=t,i.details=n,r.analytics.reportEvent("useElement",i)}},d.reportCheckoutElement=
function(e,t,n){if(p()){var i=l(e);i.opType=t,i.details=n,r.analytics.reportEvent("checkoutElement",i)}},d.reportDeleteElement=function(e,t){if(p()){var n=l(e);n.isPermanent=!!t,r.analytics.reportEvent("deleteElement",n)}},d.reportRestoreElement=function(e){p()&&r.analytics.reportEvent("restoreElement",l(e))},d.reportCopyElement=function(e,t){if(p()){s=e,o=Date.now();var n=l(e);n.oldLibraryID=t._library.id,n.oldElementID=t.id,r.analytics.reportEvent("copyElement",n)}},d.reportMoveElement=function(
e,t){if(p()){s=e,o=Date.now();var n=l(e);n.oldLibraryID=t._library.id,n.oldElementID=t.id,r.analytics.reportEvent("moveElement",n)}},d.reportCollisionElement=function(e){p()&&r.analytics.reportEvent("collisionLibrary",l(e))},d.reportCreateLink=function(e,t){if(p()){var n=l(e);n.opType=t,r.analytics.reportEvent("createLink",n)}},d.reportShareElementLink=function(e){p()&&r.analytics.reportEvent("shareElementLink",l(e))},d.reportShareLibraryLink=function(e){p()&&r.analytics.reportEvent("shareLibraryLink"
,a(e))},d.reportElementActionInvoked=function(e){p()&&r.analytics.reportEvent("elementActionInvoked",h(e))},d.reportElementActionSuccessful=function(e,t){if(p()){var n=h(e);n.appVersion=t&&t.version,n.appLaunchStatus=t?t.isAlreadyRunning?"Running":"Launched":"Unknown",r.analytics.reportEvent("elementActionSuccessful",n)}},d.reportElementActionFailed=function(e,t){if(p()){var n=h(e);n.error=t?t.code+":"+t.message:"",r.analytics.reportEvent("elementActionFailed",n)}},d.reportUnexpectedState=function(
e,t){if(p()){var n=a(e);n.details=t,n.logs=!0,r.analytics.reportEvent("unexpectedState",n)}},Object.seal(d),d}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/AdobeLibraryElementAction",["require","exports","module","./AdobeLibraryError","./utils/AdobeLibraryGeneralUtils","./AdobeLibraryConfig","./AdobeLibraryServices","./AdobeLibraryAnalytics"],function(e,t,n){"use strict";function a(e,t){this._element=e,this._id=t.action,this._appCode=t.appCode,this._appName=t.appName,this
._minVersion=t.minVersion,this._installedVersions=s.ELEMENT_ACTION_PRODUCT_MAP.installedApps.filter(function(e){return e.code===t.appCode}).map(function(e){return e.version}).sort(i.compareVersions),this._invokable=this._installedVersions.length>0&&i.compareVersions(t.minVersion,this._installedVersions[0])>=0,Object.freeze(this._installedVersions)}var r=e("./AdobeLibraryError"),i=e("./utils/AdobeLibraryGeneralUtils"),s=e("./AdobeLibraryConfig"),o=e("./AdobeLibraryServices"),u=e("./AdobeLibraryAnalytics"
);return Object.defineProperties(a.prototype,{id:{get:function(){return this._id},set:function(e){throw new r(r.READ_ONLY,"Cannot change the id of an existing element action",this._id)}},element:{get:function(){return this._element},set:function(e){throw new r(r.READ_ONLY,"element is a read-only property",this._element.id)}},appCode:{get:function(){return this._appCode},set:function(){throw new r(r.READ_ONLY,"Cannot change the app code of an element action",this._appCode)}},appName:{get:function(
){return this._appName},set:function(){throw new r(r.READ_ONLY,"Cannot change the app name of an element action",this._appName)}},minAppVersion:{get:function(){return this._minVersion},set:function(){throw new r(r.READ_ONLY,"Cannot change the min version of an element action",this._minVersion)}},installedVersions:{get:function(){return this._installedVersions},set:function(){throw new r(r.READ_ONLY,"Cannot change the installed versions of an element action")}},isCompatibleVersionInstalled:{get:function(
){return!!this._invokable},set:function(){throw new r(r.READ_ONLY,"Cannot change the compatibility of an element action")}}}),a.prototype.invoke=function(e){var t=i.wrapCallback(e);if(!this.isCompatibleVersionInstalled){t(new r(r.NO_COMPATIBLE_APP_FOUND,"A compatible version of application is needed for this action",this._appCode));return}u.reportElementActionInvoked(this),o.storageInterface.sendElementAction(this,function(e,n){e?(["APP_NOT_INSTALLED","NO_COMPATIBLE_VERSION"].indexOf(e)!==-1?e=new 
r(r.NO_COMPATIBLE_APP_FOUND,"A compatible version of application is needed for this action:"+e):e=new r(r.APP_LAUNCH_FAILED,"Launching the app failed:"+e),u.reportElementActionFailed(this,e)):u.reportElementActionSuccessful(this,n),t(e,n)})},Object.freeze(a),Object.seal(a.prototype),a}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/utils/AdobeLibraryLock",["require","exports","module"],function(e,t,n){"use strict";function r(){this._isLocked=!1,this._pendingContinuations=
[]}return r.prototype.obtain=function(e,t){this._isLocked?this._pendingContinuations.push({continuation:e,thisObject:t}):(this._isLocked=!0,e.apply(t,[null]))},r.prototype.release=function(){if(this._pendingContinuations.length>0){var e=this._pendingContinuations.shift();setTimeout(function(){e.continuation.apply(e.thisObject,[null])})}else this._isLocked=!1},r.prototype.abortPendingOperations=function(e){var t=this._pendingContinuations;this._pendingContinuations=[],t.forEach(function(t){t.continuation
.apply(t.thisObject,[e])})},r.prototype.isLocked=function(){return this._isLocked},r.prototype.hasPendingRequest=function(){return this._pendingContinuations.length>0},Object.freeze(r),Object.seal(r.prototype),r}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/utils/AdobeLibraryRenditionUtils",["require","exports","module","../AdobeLibraryConfig","../AdobeLibraryServices","./AdobeLibraryAsyncJoin","./AdobeLibraryFileUtils","./AdobeLibraryErrorUtils","./AdobeLibraryGeneralUtils"
],function(e,t,n){"use strict";var r=e("../AdobeLibraryConfig"),i=e("../AdobeLibraryServices"),s=e("./AdobeLibraryAsyncJoin"),o=e("./AdobeLibraryFileUtils"),u=e("./AdobeLibraryErrorUtils"),a=e("./AdobeLibraryGeneralUtils"),f={},l={"application/x-indesign":!0,"application/postscript":!0,"application/illustrator":!0,"application/pdf":!0,"application/vnd.adobe.psremix":!0,"application/vnd.adobe.pstouch":!0,"application/vnd.adobe.ideas":!0,"application/vnd.adobe.ase":!0,"image/jpeg":!0,"image/jpg":!0
,"image/pjpeg":!0,"image/tiff":!0,"image/gif":!0,"image/bmp":!0,"image/x-ms-bmp":!0,"image/svg+xml":!0,"image/png":!0,"image/x-png":!0,"image/jp2":!0,"image/psd":!0,"image/vnd.adobe.photoshop":!0,"application/photoshop":!0,"application/x-photoshop":!0,"image/raw":!0,"image/dng":!0,"image/x-adobe-dng":!0,"video/mp4":!0,"video/mpeg":!0,"video/x-ms-wmv":!0,"video/3gpp":!0,"video/3gpp2":!0,"video/quicktime":!0,"video/x-msvideo":!0,"video/x-flv":!0,"video/x-ms-asf":!0,"video/x-m4v":!0,"video/mp2t":!0,"application/mxf"
:!0,"application/x-shockwave-flash":!0,"application/vnd.adobe.brushes.brush+ucf":!0,"application/vnd.adobe.collage":!0,"application/vnd.adobe.proto":!0,"application/msword":!0,"application/msexcel":!0,"application/mspowerpoint":!0,"application/vnd.ms-publisher":!0,"application/vnd.openxmlformats-officedocument.wordprocessingml.document":!0,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":!0,"application/vnd.openxmlformats-officedocument.presentationml.presentation":!0,"application/vnd.adobe.charts+zip"
:!0,"text/plain":!0,"text/rtf":!0},c=function(e,t){var n=i.fs;n.stat(e,function(r,i){if(r){t(r);return}i&&i.isDirectory()?o.recursiveDeleteDirectory(e,t):n.unlink(e,t)})},h=function(e,t,n){var u=i.getPathSeparator(),a=i.fs;if(!e._dcxComposite.autoRemoveUnusedLocalFiles){n(null);return}var f={};Object.keys(t.renditions).forEach(function(n){var r=t.renditions[n];Object.keys(r).forEach(function(t){var n=r[t];f[n]=!0,delete e._pendingRenditionCacheItems[n]})});var l=e._getRenditionCacheDir();a.readdir
(l,function(t,i){if(t){n(t);return}var a=new s;i.forEach(function(t){var n=o.normaliseTempFileName(t);t!==r.RENDITION_CACHE_FILE&&!f[t]&&!e._pendingRenditionCacheItems[n]&&a.addOperation(c,[l+u+t])}),a.run(n)})};return f.readRenditionCacheData=function(e,t){var n=i.getPathSeparator(),s=e._getRenditionCacheDir();o.readJSONData(s+n+r.RENDITION_CACHE_FILE,function(e,n){var r=n||{};r.renditions=r.renditions||{},t(null,r)})},f.writeRenditionCacheData=function(e,t,n){var i=e._getRenditionCacheDir();o.writeJSONData
(i,r.RENDITION_CACHE_FILE,t,function(r){if(r){n(r);return}h(e,t,n)})},f.copyRenditionCache=function(e,t,n,o){var a=t._library._getRenditionCacheDir()+i.getPathSeparator(),f=new s,l=n||{};Object.keys(l).forEach(function(n){var i=l[n],s=t.getRepresentationById(n);if(s&&!e.getRepresentationById(n)){var o=t.representations.indexOf(s);if(o>=0&&o<e.representations.length){var c=e.representations[o];n=c.id}}i===r.RENDITION_CACHE_PLACEHOLDER||u.isErrorCode(i)?e._renditionCache[n]=i:f.addOperation(e.setThumbnailCache
,[n,a+i],e)}),r.SHARED_LOCAL_STORAGE?(f.run(),o(null)):f.run(o)},f.canComputeRenditionFromMimeType=function(e){return l[e]?!0:!1},f.canComputeRendition=function(e){var t=e._dcxComponent!==undefined;return t&&f.canComputeRenditionFromMimeType(e.type)?!0:!1},f.shouldPrefetchFullRendition=function(e){var t=r.FULL_RENDITION_CONFIG||{},n=t[e.type];if(!n)return!1;var i=!1;return Object.keys(n).forEach(function(t){var r=n[t];if(r.condition==="IF_NO_MATCHING_REPRESENTATION"&&r.types){var s=e.representations
.every(function(e){return r.types.indexOf(e.type)===-1});i=i||s}}),i},f.shouldPrefetchExternalLink=function(e){if(!e.isExternalLink)return!1;var t=r.EXTERNAL_LINK_PREFETCH||{};return t[e.element.type]?!0:!1},f.prefetchRenditionsForElement=function(e,t){var n=a.wrapCallback(t);if(!i.hasFileSystem()){n(null);return}var o=new s,u=r.RENDITION_SIZES||{},l=u[e.type]||u["*"]||[];l.forEach(function(t){o.addOperation(e.getThumbnailPath,[t],e)}),f.shouldPrefetchFullRendition(e)&&o.addOperation(e.getThumbnailPath
,[undefined],e),e.representations.forEach(function(e){f.shouldPrefetchExternalLink(e)?o.addOperation(e.getContentPath,[],e):e.isExternalLink&&o.addOperation(e.testExternalLink,[],e)}),o.run(n)},f.prefetchRenditions=function(e,t){var n=a.wrapCallback(t);if(!i.hasFileSystem()){n(null);return}var r=new s;e.elements.forEach(function(e){r.addOperation(f.prefetchRenditionsForElement,[e],f)}),r.run(n)},f.addToRenditionSizeConfig=function(e){var t=r.RENDITION_SIZES,n=t["*"]||[];n=JSON.parse(JSON.stringify
(n));var i=e["*"]||[];Object.keys(t).forEach(function(n){if(!e[n]){var r=t[n];i.forEach(function(e){r.indexOf(e)===-1&&r.push(e)}),t[n]=r}}),Object.keys(e).forEach(function(r){var i=t[r]||JSON.parse(JSON.stringify(n)),s=e[r];s.forEach(function(e){i.indexOf(e)===-1&&i.push(e)}),t[r]=i}),r.setParameter("RENDITION_SIZES",t)},f.addToFullRenditionConfig=function(e){var t=r.FULL_RENDITION_CONFIG;Object.keys(e).forEach(function(n){var r=t[n]||{},i=e[n];i.forEach(function(e){e.id&&(r[e.id]=e)}),t[n]=r}),
r.setParameter("FULL_RENDITION_CONFIG",t)},f.addToPendingSetRenditionCache=function(e,t,n,r,i){e=e||{data:[],callbacks:[]};var s=[];return e.data.forEach(function(r,i){!e.callbacks[i]&&r.element===t.id&&r.size===n&&r.path==="CLEAR"&&s.unshift(i)}),s.forEach(function(t){e.data.splice(t,1),e.callbacks.splice(t,1)}),e.data.push({element:t.id,size:n,path:r}),e.callbacks.push(i),e},Object.seal(f),f}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/utils/AdobeLibraryFeatureUtils"
,["require","exports","module","../AdobeLibraryServices"],function(e,t,n){"use strict";var r=e("../AdobeLibraryServices"),i={};return i.supportsClearRenditionCache=function(){var e=r.storageInterface.getServiceInfo(),t=e?e.apiVersion:0;return t>=7},Object.seal(i),i}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/utils/AdobeLibraryListenerManager",["require","exports","module","../AdobeLibraryServices","../AdobeLibraryError"],function(e,t,n){"use strict";function s(e){this
._restrictedTypes=e,this._listeners={}}var r=e("../AdobeLibraryServices"),i=e("../AdobeLibraryError");return s.prototype._checkType=function(e){if(this._restrictedTypes&&this._restrictedTypes.indexOf(e)===-1){var t="["+this._restrictedTypes.join(", ")+"]";throw new i(i.INVALID_PARAMETER,e+" is not allowed. Should be one of: "+t)}},s.prototype.add=function(e,t){this._checkType(e),this._listeners[e]=this._listeners[e]||[],this._listeners[e].push(t)},s.prototype.remove=function(e,t){this._checkType(
e);var n=this._listeners[e];if(n){var r=n.indexOf(t);r!==-1&&n.splice(r,1)}},s.prototype.removeAll=function(e){e?(this._checkType(e),delete this._listeners[e]):this._listeners={}},s.prototype.notify=function(e,t){this._checkType(e);var n=this._listeners[e];n&&n.slice(0).forEach(function(e){try{e.apply(undefined,t||[])}catch(n){r.log("Error in listener callback: "+(n?n.toString():"")),n&&n.stack&&r.log(n.stack)}})},s.prototype.hasListeners=function(e){this._checkType(e);var t=this._listeners[e];return t&&
t.length>0?!0:!1},s.prototype.forEach=function(e){var t=this._listeners;Object.keys(t).forEach(function(n){t[n].forEach(function(t){e(n,t)})})},Object.freeze(s),Object.seal(s.prototype),s}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/AdobeLibraryElement",["require","exports","module","./AdobeLibraryServices","./AdobeLibraryConfig","./AdobeLibraryRepresentation","./AdobeLibraryAnalytics","./AdobeLibraryError","./AdobeLibraryElementAction","./utils/AdobeLibraryLock","./utils/AdobeLibraryManifestUtils"
,"./utils/AdobeLibraryFileUtils","./utils/AdobeLibraryRenditionUtils","./utils/AdobeLibraryErrorUtils","./utils/AdobeLibraryFeatureUtils","./utils/AdobeLibraryListenerManager"],function(e,t,n){"use strict";function m(e,t){this._library=e,this._renditionCache={},this._lock=new f,this._listenerManager=new v(["change"]),this._transactionCount=0,this._setDCXNode(t)}var r=e("./AdobeLibraryServices"),i=e("./AdobeLibraryConfig"),s=e("./AdobeLibraryRepresentation"),o=e("./AdobeLibraryAnalytics"),u=e("./AdobeLibraryError"
),a=e("./AdobeLibraryElementAction"),f=e("./utils/AdobeLibraryLock"),l=e("./utils/AdobeLibraryManifestUtils"),c=e("./utils/AdobeLibraryFileUtils"),h=e("./utils/AdobeLibraryRenditionUtils"),p=e("./utils/AdobeLibraryErrorUtils"),d=e("./utils/AdobeLibraryFeatureUtils"),v=e("./utils/AdobeLibraryListenerManager");return m.prototype._setDCXNode=function(e,t,n){var r=this;this._dcxNode=e,this._representations=[],this._deletedLocally=!1;var i=this._library._dcxBranch.getChildrenOf(e);i.forEach(function(e
){var t=new s(r,e);r._representations.push(t)});var o=this._library._dcxBranch.getComponentsOf(e);o.forEach(function(e){var t=new s(r,undefined,e);r._representations.push(t)}),l.sortRepresentations(this._representations),n||this._clearRenditionCache(t,!1),this._displayName=undefined},m.prototype._markDeletedLocally=function(e){this._deletedLocally=e,this._representations.forEach(function(t){t._markDeletedLocally(e)}),e&&this._listenerManager.removeAll()},m.prototype._removeAllListeners=function()
{this._listenerManager.removeAll()},m.prototype._toJSON=function(){var e={id:this.id,name:this.name,type:this.type,representations:[]};return this._representations.forEach(function(t){e.representations.push(t._toJSON())}),e.representations.sort(function(e,t){return e.type>t.type?1:e.type<t.type?-1:0}),e},m.prototype._addRepresentation=function(e,t){t!==undefined?this._representations.splice(t,0,e):this._representations.push(e)},m.prototype._removeRepresentation=function(e){var t=this._representations
.indexOf(e);t!==-1&&this._representations.splice(t,1)},m.prototype._validateRelationship=function(e,t){if(i.VALID_RELATIONS.indexOf(e)===-1)throw new u(u.INVALID_PARAMETER,"Unsupported relationship",this._library.id);if(this._representations.length>0&&e==="primary"){var n=this;this._representations.forEach(function(t){if(t!==e&&t.relationship==="primary")throw new u(u.INVALID_PARAMETER,"Cannot have more than one primary representation",n._library.id)})}},m.prototype._doCreateRepresentation=function(
e,t,n){var r=this._library._dcxBranch.addChild(undefined,undefined,undefined,this._dcxNode);r.type=e,r.setValue(i.RELATIONSHIP_KEY,t);if(n===undefined){var o=this.representations[this.representations.length-1],u=Math.max(this.representations.length,o?o._getOrder()+1:0);r.setValue(i.REPRESENTATION_ORDER_KEY,u)}else r.setValue(i.REPRESENTATION_ORDER_KEY,n),this._representations.forEach(function(e,t){if(t>=n){var r=e._getDCXElement(),s=r.getValue(i.REPRESENTATION_ORDER_KEY);s!==undefined&&r.setValue
(i.REPRESENTATION_ORDER_KEY,s+1)}});var a=new s(this,r);return this._addRepresentation(a,n),a},m.prototype._lookupRenditionPath=function(e){var t="existsSync",n=r.getPathSeparator(),s=this._renditionCache[e];if(s&&s!==i.RENDITION_CACHE_PLACEHOLDER&&s){if(s===i.RENDITION_CACHE_PLACEHOLDER||p.isErrorCode(s))return s;var o=this._library._getRenditionCacheDir()+n+s;if(i.SHARED_LOCAL_STORAGE||r.fs[t](o))return o}return undefined},m.prototype._getNewRenditionPath=function(e,t){var n=this,i=r.getPathSeparator
(),s=this._library._getRenditionCacheDir();c.ensurePathExists(s,function(o){if(l.checkDeletedState(n,t))return;var u=r.uuid()+"."+(e||"png"),a=s+i+u;t(o,a,u)})},m.prototype._updateModifiedTime=function(){var e=(new Date).valueOf();this._dcxNode.setValue(i.MODIFIED_KEY,e)},m.prototype._updateCreatedTime=function(){var e=(new Date).valueOf();this._dcxNode.setValue(i.CREATED_KEY,e),this._dcxNode.setValue(i.MODIFIED_KEY,e)},m.prototype._updateTimestampOnRemove=function(e){var t=e||(new Date).valueOf(
);this._dcxNode.setValue(i.REMOVED_KEY,t)},m.prototype._updateTimestampOnRestore=function(){this._dcxNode.removeValue(i.REMOVED_KEY)},m.prototype._clearRenditionCache=function(e,t){var n=this,s=this._renditionCache;this._renditionCache={};var o=t&&i.SHARED_LOCAL_STORAGE&&d.supportsClearRenditionCache();Object.keys(s).forEach(function(t){(e||n.getRepresentationById(t))&&!p.isErrorCode(s[t])?n._renditionCache[t]=s[t]:o&&r.storageInterface.setRenditionCache(n,t,"CLEAR")})},m.prototype._commit=function(
e){this._displayName=undefined,this._updateModifiedTime(),this._clearRenditionCache(!0,!0),this._library._commit(),this._listenerManager.notify("change"),o.reportUpdateElement(this,e)},m.prototype._commitRenditionCache=function(){this._library._commit(!0,!0),this._listenerManager.notify("change")},m.prototype._setRenditionCache=function(e,t,n){this._renditionCache[e]=t,this._commitRenditionCache(),n&&(r.storageInterface.notifyDownloadRendition(this),this._listenerManager.notify("change"))},m.prototype
._wrapOperation=function(e,t){var n=this._library._wrapOperation(function(){var n=this._library._wrapOperation(e,t);return this._updateModifiedTime(),n},this);return this._listenerManager.notify("change"),n},m.prototype._getMissingLocalComponents=function(){var e=[];return this._representations.forEach(function(t){e=e.concat(t._getMissingLocalComponents())}),e},m.prototype._shouldGCLocalData=function(){var e=(new Date).valueOf();return this.removed&&e-this.removed>=i.REMOVED_ELEMENTS_CACHE_TIMEOUT
},m.prototype.jasmineToString=function(){return this.toString()},Object.defineProperties(m.prototype,{id:{get:function(){return this._dcxNode.id},set:function(e){throw new u(u.READ_ONLY,"Cannot change the id of an existing element",this._library.id)}},library:{get:function(){return this._library},set:function(e){throw new u(u.READ_ONLY,"library is a read-only property",this._library.id)}},isWritable:{get:function(){return this._library.isWritable},set:function(){throw new u(u.READ_ONLY,"isWritable is a read-only property"
,this.id)}},name:{get:function(){return this._dcxNode.name||""},set:function(e){l.checkDeletedState(this);if(!this.isWritable)throw new u(u.NOT_ALLOWED,"you do not have write access to this library",this._library.id);this._dcxNode.name=e,this._commit(!0)}},displayName:{get:function(){return this._displayName===undefined&&(this._displayName=r.getDisplayName(this)||""),this._displayName},set:function(e){throw new u(u.READ_ONLY,"displayName is a read-only property",this._library.id)}},type:{get:function(
){return this._dcxNode.type},set:function(e){throw new u(u.READ_ONLY,"Cannot change the type of an existing element",this._library.id)}},tags:{get:function(){return this._dcxNode.getValue("tags")||[]},set:function(e){l.checkDeletedState(this);if(!this.isWritable)throw new u(u.NOT_ALLOWED,"you do not have write access to this library",this._library.id);if(!e||e.constructor!==Array)throw new u(u.INVALID_PARAMETER,"tags must be an array",this._library.id);var t=e.every(function(e){return typeof e=="string"
});if(!t)throw new u(u.INVALID_PARAMETER,"tags must be an array of strings",this._library.id);this._dcxNode.setValue("tags",e),this._commit()}},modified:{get:function(){return this._dcxNode.getValue(i.MODIFIED_KEY)},set:function(){throw new u(u.READ_ONLY,"Cannot change the modified timestamp of an element directly",this._library.id)}},created:{get:function(){return this._dcxNode.getValue(i.CREATED_KEY)},set:function(){throw new u(u.READ_ONLY,"Cannot change the created timestamp of an element directly"
,this._library.id)}},removed:{get:function(){return this._dcxNode.getValue(i.REMOVED_KEY)},set:function(){throw new u(u.READ_ONLY,"Cannot change the removed timestamp of an element directly",this._library.id)}},representations:{get:function(){return this._representations},set:function(){throw new u(u.READ_ONLY,"Cannot modify representation list directly",this._library.id)}},isDeletedLocally:{get:function(){return this._deletedLocally},set:function(){throw new u(u.READ_ONLY,"isDeletedLocally is a read-only property"
,this._library.id)}}}),m.prototype.toString=function(){return JSON.stringify(this._toJSON())},m.prototype.addChangeListener=function(e){l.checkDeletedState(this),this._listenerManager.add("change",e)},m.prototype.removeChangeListener=function(e){this._listenerManager.remove("change",e)},m.prototype.beginOperation=function(){l.checkDeletedState(this);if(!this.isWritable)throw new u(u.NOT_ALLOWED,"you do not have write access to this library",this.id);this._transactionCount++,this._library._beginOperation
()},m.prototype.endOperation=function(e){l.checkDeletedState(this);if(!this.isWritable)throw new u(u.NOT_ALLOWED,"you do not have write access to this library",this.id);this._transactionCount>0&&(this._transactionCount--,this._library._endOperation()),e&&this._library._waitForCommit(e)},m.prototype.createRepresentation=function(e,t,n,r){l.checkDeletedState(this);if(!this.isWritable)throw new u(u.NOT_ALLOWED,"you do not have write access to this library",this._library.id);return this._wrapOperation
(function(){if(e===i.LINK_REPRESENTATION_TYPE)throw new u(u.INVALID_PARAMETER,"Cannot create external link representation directly - use setContentFromURL instead",this._library.id);if(n!==undefined&&(n<0||n>this._representations.length))throw new u(u.INVALID_PARAMETER,"Invalid index",this._library.id);this._validateRelationship(t);var s=this._doCreateRepresentation(e,t,n);return r||this._clearRenditionCache(!1,!0),s},this)},m.prototype.removeRepresentation=function(e){l.checkDeletedState(this);if(!
this.isWritable)throw new u(u.NOT_ALLOWED,"you do not have write access to this library",this._library.id);return this._wrapOperation(function(){this._removeRepresentation(e),e._dcxComponent?this._library._dcxBranch.removeComponent(e._dcxComponent):this._library._dcxBranch.removeChild(e._dcxNode),this._clearRenditionCache(!1,!0),e._markDeletedLocally(!0)},this)},m.prototype.removeAllRepresentations=function(){l.checkDeletedState(this);if(!this.isWritable)throw new u(u.NOT_ALLOWED,"you do not have write access to this library"
,this._library.id);return this._wrapOperation(function(){while(this._representations[0])this.removeRepresentation(this._representations[0])},this)},m.prototype.getPrimaryRepresentation=function(){var e;return this._representations.forEach(function(t){!e&&t.relationship==="primary"&&(e=t)}),e},m.prototype.getValue=function(e,t){if(e===i.DL_NAMESPACE)throw new u(u.INVALID_PARAMETER,"Reserved namespace",this._library.id);var n=l.getDCXKey(e,t);return this._dcxNode.getValue(n)},m.prototype.getValues=
function(){return l.getCustomDCXData(this._dcxNode)},m.prototype.setValue=function(e,t,n){l.checkDeletedState(this);if(!this.isWritable)throw new u(u.NOT_ALLOWED,"you do not have write access to this library",this._library.id);if(e===i.DL_NAMESPACE)throw new u(u.INVALID_PARAMETER,"Reserved namespace",this._library.id);var r=l.getDCXKey(e,t),s;try{s=JSON.parse(JSON.stringify(n))}catch(o){throw new u(u.INVALID_PARAMETER,"Value cannot be serialized to JSON",this._library.id)}this._dcxNode.setValue(r
,s),this._commit()},m.prototype._getRenditionCandidate=function(e){var t,n=0,r,i,s,o,u,a,f;for(r=0;r<this._representations.length;r++){i=this._representations[r],s=Math.max(i.width||0,i.height||0),o=i.isFullSize?Number.POSITIVE_INFINITY:s,u=i.relationship==="primary",a=i.relationship==="rendition",f=!t||u&&t.relationship!=="primary"||a&&t.relationship!=="primary"&&t.relationship!=="rendition"||a&&t.relationship==="rendition"&&o>n,f&&h.canComputeRendition(i)&&(t=i,n=o);if(a&&i.type==="image/png"&&
e&&s===e)break}return t},m.prototype.getThumbnailURL=function(e,t){var n=this;if(l.checkDeletedState(this,t))return;this._library._waitForCommit(function(){if(l.checkDeletedState(n,t))return;var r=n._getRenditionCandidate(e);if(r){var i=n._library._collection._syncManager;i.getSharedCloudRenditionUrl(r,e,t);return}t(new u(u.THUMBNAIL_NOT_AVAILABLE,"no representation that can be converted into a thumbnail",n._library.id))})},m.prototype.getActions=function(e){if(!i.SHARED_LOCAL_STORAGE)throw new u
(u.NOT_SUPPORTED,"getActions() not supported without shared local storage");if(e&&i.ELEMENT_ACTIONS.indexOf(e)===-1)throw new u(u.INVALID_PARAMETER,"Unknown id supplied. Potential ids are",i.ELEMENT_ACTIONS.join(", "));var t=this.getPrimaryRepresentation();if(!t)throw new u(u.RENDITION_NOT_AVAILABLE,"No primary representation found");var n=i.ELEMENT_ACTION_PRODUCT_MAP,r=n.types[t.type]||[],s=[];r.forEach(function(t){n.products[t]&&(!e||e===n.products[t].action)&&s.push(new a(this,n.products[t]))}
.bind(this));var o=s.map(function(e,t){return{i:t,v:e}});return o.sort(function(e,t){return e.v.isCompatibleVersionInstalled&&!t.v.isCompatibleVersionInstalled?-1:t.v.isCompatibleVersionInstalled&&!e.v.isCompatibleVersionInstalled?1:e.i-e.i}),o.map(function(e){return e.v})},m.prototype.getThumbnailPath=function(e,t){var n=this;if(!r.hasFileSystem()){t(new u(u.REQUIRES_FILESYSTEM,"path-based APIs require a filesystem",this._library.id));return}if(l.checkDeletedState(this,t))return;this._library._waitForCommit
(function(){if(l.checkDeletedState(n,t))return;if(i.SHARED_LOCAL_STORAGE){r.storageInterface.getRenditionPath(n,e,t);return}var s=function(e,r){n._lock.release(),t(e,r)};n._lock.obtain(function(){if(l.checkDeletedState(n,s))return;var t=this._lookupRenditionPath(e||"full");if(t){s(null,t);return}var i=this._getRenditionCandidate(e);if(i){if(i.relationship==="rendition"&&i.type==="image/png"&&e&&Math.max(i.width||0,i.height||0)===e){i.getContentPath(s);return}var o=this._library._collection._syncManager
;o.getSharedCloudRendition(i,e,function(t,i){if(l.checkDeletedState(n,s))return;if(t){s(new u(u.THUMBNAIL_NOT_AVAILABLE,"error generating thumbnail from shared cloud",n._library.id,t));return}n._getNewRenditionPath(undefined,function(t,o,u){if(l.checkDeletedState(n,s))return;if(t){s(p.getCommitError(t,n._library.id,"unable to create thumbnail cache directory"));return}n._library._pendingRenditionCacheItems[u]=!0,r.fs.rename(i,o,function(t){if(l.checkDeletedState(n,s))return;if(t){s(p.getCommitError
(t,n._library.id,"unable to write thumbnail to cache"));return}n._setRenditionCache(e||"full",u,!0),s(null,o)})})});return}s(new u(u.THUMBNAIL_NOT_AVAILABLE,"no representation that can be converted into a thumbnail",n._library.id))},n)})},m.prototype.setThumbnailCache=function(e,t,n){if(typeof t!="string"){n(new u(u.INVALID_PARAMETER,"path must be a string",this._library.id));return}if(!r.hasFileSystem()){n(new u(u.REQUIRES_FILESYSTEM,"path-based APIs require a filesystem",this._library.id));return}
if(l.checkDeletedState(this,n))return;if(i.SHARED_LOCAL_STORAGE){r.storageInterface.setRenditionCache(this,e,t,n);return}var s=this,o=function(e,t){s._lock.release(),n(e,t)};this._lock.obtain(function(){if(l.checkDeletedState(s,o))return;this._getNewRenditionPath(c.getFileExtension(t),function(n,r,i){if(l.checkDeletedState(s,o))return;if(n){o(p.getCommitError(n,s._library.id,"unable to create thumbnail cache directory"));return}s._library._pendingRenditionCacheItems[i]=!0,c.copyFile(t,r,function(
t){if(l.checkDeletedState(s,o))return;if(t){o(p.getCommitError(t,s._library.id,"unable to write thumbnail to cache"));return}s._setRenditionCache(e||"full",i,!1),o(null,r)})})},this)},m.prototype.getReference=function(){return"cloud-asset://"+this._library._collection._syncManager.getElementRefDomain()+this._library._collection._syncManager.getElementRefPath()+"/"+this._library.id+";node="+this.id},m.prototype.getRepresentationById=function(e){var t;return this.representations.forEach(function(n)
{n.id===e&&(t=n)}),t},Object.freeze(m),Object.seal(m.prototype),m}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/AdobeLibraryFolder",["require","exports","module","./components/dcx-js/src/AdobeDCXError","./AdobeLibraryElement","./AdobeLibraryConfig","./AdobeLibraryAnalytics","./AdobeLibraryError","./AdobeLibraryServices","./AdobeLibraryLocalisation","./utils/AdobeLibraryAsyncJoin","./utils/AdobeLibraryLock","./utils/AdobeLibraryRenditionUtils","./utils/AdobeLibraryManifestUtils"
,"./utils/AdobeLibraryErrorUtils","./utils/AdobeLibraryFileUtils","./utils/AdobeLibraryGeneralUtils","./utils/AdobeLibraryMimeTypeUtils","./utils/AdobeLibraryListenerManager"],function(e,t,n){"use strict";function b(e,t){this._collection=e,this._dcxComposite=t,this._dcxBranch=t.current,this._listenerManager=new y(["change"]),this._writable=!0,this._filterCache={},this._transactionCount=0,this._commitInProgress=!1,this._pendingCommit=!1,this._onCommitCallbacks=[],this._dcxLock=new c,this._renditionCacheLock=new 
c,this._pendingRenditionCacheItems={},this._networkLock=new c,this._syncState=undefined,this._deletedLocally=!1,this._deletedFromServer=!1,this._waitForSyncToFinishCallbacks=[],this._errors=[],this._pushFailedDueToQuota=!1,this._numUpdateConflicts=0;var n=this._dcxBranch.getChildrenOf();n.forEach(function(e){e.name===s.ELEMENTS_NAME&&(this._dcxElementsNode=e),e.name===s.REMOVED_ELEMENTS_NAME&&(this._dcxRemovedElementsNode=e)},this),this._dcxElementsNode||(this._dcxElementsNode=this._dcxBranch.addChild
(s.ELEMENTS_NAME)),this._dcxCompositeRenditionMap=p.getCompositeRenditionMap(this._dcxBranch),this._elements=[],this._removedElements=[];var r=this._dcxBranch.getChildrenOf(this._dcxElementsNode);r.forEach(function(e){var t=new i(this,e);this._addElementToFilter(t),this._elements.push(t)},this);if(this._dcxRemovedElementsNode){var o=this._dcxBranch.getChildrenOf(this._dcxRemovedElementsNode);o.forEach(function(e){var t=new i(this,e);this._removedElements.push(t)},this),this._sortRemovedElements()
}a.hasFileSystem()||(this._dcxBaseBranch=this._dcxBranch.copy())}var r=e("./components/dcx-js/src/AdobeDCXError"),i=e("./AdobeLibraryElement"),s=e("./AdobeLibraryConfig"),o=e("./AdobeLibraryAnalytics"),u=e("./AdobeLibraryError"),a=e("./AdobeLibraryServices"),f=e("./AdobeLibraryLocalisation"),l=e("./utils/AdobeLibraryAsyncJoin"),c=e("./utils/AdobeLibraryLock"),h=e("./utils/AdobeLibraryRenditionUtils"),p=e("./utils/AdobeLibraryManifestUtils"),d=e("./utils/AdobeLibraryErrorUtils"),v=e("./utils/AdobeLibraryFileUtils"
),m=e("./utils/AdobeLibraryGeneralUtils"),g=e("./utils/AdobeLibraryMimeTypeUtils"),y=e("./utils/AdobeLibraryListenerManager");return b.prototype._getRemovedElementsNode=function(){return this._dcxRemovedElementsNode||(this._dcxRemovedElementsNode=this._dcxBranch.addChild(s.REMOVED_ELEMENTS_NAME)),this._dcxRemovedElementsNode},b.prototype._markDeletedLocally=function(e){this._deletedLocally=e,this._elements.forEach(function(t){t._markDeletedLocally(e)}),e&&this._listenerManager.removeAll()},b.prototype
._removeAllListeners=function(){this._listenerManager.removeAll(),this._elements.forEach(function(e){e._removeAllListeners()})},b.prototype._toJSON=function(){var e={id:this.id,name:this.name,elements:[],renditionCache:{}};return this._elements.forEach(function(t){e.elements.push(t._toJSON()),e.renditionCache[t.id]=JSON.parse(JSON.stringify(t._renditionCache))}),e},b.prototype._getRenditionCache=function(){var e={},t=function(t){e[t.id]=JSON.parse(JSON.stringify(t._renditionCache))};return this._elements
.forEach(t),this._removedElements.forEach(t),e},b.prototype._setRenditionCache=function(e){var t=function(t){e[t.id]&&(t._renditionCache=e[t.id])};this._elements.forEach(t),this._removedElements.forEach(t)},b.prototype._loadRenditionCache=function(e){var t=this;h.readRenditionCacheData(this,function(n,r){!n&&r&&t._setRenditionCache(r.renditions),e(null)})},b.prototype._saveRenditionCache=function(e){var t=this;if(!a.hasFileSystem()||s.SHARED_LOCAL_STORAGE){e&&e(null);return}var n=function(n){t._renditionCacheLock
.release(),e&&e(n)};this._renditionCacheLock.obtain(function(){var e={};e.renditions=this._getRenditionCache(),h.writeRenditionCacheData(this,e,n)},this)},b.prototype._doCommit=function(e){function n(){if(e&&!s.SHARED_LOCAL_STORAGE){if(t._deletedLocally)return;t._collection._clearSyncErrors(),t._push(),t._collection._resetPollBackoff()}}function r(){var e=t._onCommitCallbacks;t._onCommitCallbacks=[],e.forEach(function(e){t._waitForCommit(e)}),n()}function i(e,n){e&&(e=d.getCommitError(e,t.id,n)),
t._collection._reportCommitError(e)}var t=this;if(!a.hasFileSystem()){r();return}if(this._commitInProgress){this._pendingCommit=!0;return}this._commitInProgress=!0,a.storageInterface.commitManifest(this,function(n){i(n,"Failed to write composite to disk"),t._saveRenditionCache(function(n){i(n,"Failed to write rendition cache to disk"),t._commitInProgress=!1,t._pendingCommit?(t._pendingCommit=!1,t._transactionCount===0&&t._doCommit(e)):r()})})},b.prototype._waitForCommit=function(e){this._commitInProgress||
this._transactionCount>0?this._onCommitCallbacks.push(e):e()},b.prototype._notifyChange=function(){this._listenerManager.notify("change"),this._collection._notifyChange()},b.prototype._commit=function(e,t){this._transactionCount===0&&(t||(this._updateModifiedTime(),this._notifyChange()),this._doCommit(!e))},b.prototype._wrapOperation=function(e,t){this._beginOperation();var n;try{n=e.call(t)}catch(r){throw this._transactionCount--,r}return this._endOperation(),n},b.prototype._beginOperation=function(
){this._transactionCount++},b.prototype._endOperation=function(){this._transactionCount--,this._commit()},b.prototype._updateModifiedTime=function(){var e=(new Date).valueOf();this._dcxBranch.rootNode.setValue(s.MODIFIED_KEY,e)},b.prototype._updateCreatedTime=function(){var e=(new Date).valueOf();this._dcxBranch.rootNode.setValue(s.CREATED_KEY,e),this._dcxBranch.rootNode.setValue(s.MODIFIED_KEY,e)},b.prototype._getMissingLocalComponents=function(){var e=[];return this._elements.forEach(function(t
){e=e.concat(t._getMissingLocalComponents())}),e},b.prototype._gcLocalData=function(e){var t=[],n=[];this._removedElements.forEach(function(e){e._shouldGCLocalData()&&(t.push(e),e.representations.forEach(function(e){var t=e._dcxComponent,r=e._getCurrentComponentPath();t&&r&&t.etag&&t.state!=="modified"&&n.push(t.id)}))});if(t.length===0){e(null);return}t.forEach(function(e){e._clearRenditionCache()}),this._dcxComposite.removeLocalFilesForComponentsWithIDs(n,e)},b.prototype._checkRenditionType=function(
e,t){if(!e||s.VALID_LIBRARY_RENDITION_TYPES.indexOf(e)===-1){if(t)return t(new u(u.INVALID_PARAMETER,"composite rendition type not supported: "+e)),!1;throw new u(u.INVALID_PARAMETER,"composite rendition type not supported: "+e)}return!0},b.prototype._setRenditionFromPath=function(e,t,n,r){if(p.checkDeletedState(this,r))return;var i=this._dcxCompositeRenditionMap[e],o=a.fs,f=this,l=t&&a.getFileNameFromPath(t),c=v.getFileExtension(l),h=a.uuid()+"."+c;o.stat(t,function(o,c){if(o){r(o);return}if(c&&
c.size>s.MAX_COMPONENT_SIZE){r(new u(u.FILE_TOO_LARGE,"File exceeds maximum size for a thumbnail"));return}a.storageInterface.notifyStartWrite(f,[],function(){f._dcxBranch.addComponent(l,n,"rendition",h,t,!0,undefined,f._dcxBranch.rootNode,undefined,function(t,n){if(t){r(t);return}if(p.checkDeletedState(f,r))return;n.setValue(s.MODIFIED_KEY,(new Date).valueOf()),n.setValue(s.RENDITION_TYPE_KEY,e),i&&f._dcxBranch.removeComponent(i),f._dcxCompositeRenditionMap=p.getCompositeRenditionMap(f._dcxBranch
),f._commit(),r(null)})})})},b.prototype._setRendition=function(e,t,n,r,i){function f(t){if(t){i(d.getCommitError(t,o.id,"error writing library rendition"));return}if(p.checkDeletedState(o,i))return;o._setRenditionFromPath(e,u,r,i)}function l(){n==="buffer"?s.writeFile(u,t,f):s.writeFile(u,t,n,f)}var s=a.fs,o=this,u,c=this.collection._getTempDir();v.ensurePathExists(c,function(e){if(e){i(d.getCommitError(e,o.id,"error creating temp directory"));return}if(p.checkDeletedState(o,i))return;var t=g.getExtensions
(r)[0],n=a.uuid()+"."+t;u=c+a.getPathSeparator()+n,l()})},b.prototype._setRenditionInBrowser=function(e,t,n,r){var i=this,o=this._dcxCompositeRenditionMap[e],u=this._collection._syncManager,f=a.uuid();u.uploadNewComponentForLibrary(t,f,n,"rendition",this,function(t,n){if(t){r(t);return}if(p.checkDeletedState(i,r))return;n.setValue(s.MODIFIED_KEY,(new Date).valueOf()),n.setValue(s.RENDITION_TYPE_KEY,e),o&&i._dcxBranch.removeComponent(o),i._dcxCompositeRenditionMap=p.getCompositeRenditionMap(i._dcxBranch
),i._commit(),r(null)})},b.prototype._getFilterKey=function(e){var t=e&&s.ELEMENT_TYPE_FILTERS.indexOf(e)!==-1;return t?e:"*"},b.prototype._removeElementFromFilter=function(e){var t=this._getFilterKey(e.type);if(this._filterCache[t]){var n=this._filterCache[t].indexOf(e);n!==-1&&this._filterCache[t].splice(n,1)}},b.prototype._addElementToFilter=function(e){var t=this._getFilterKey(e.type);this._filterCache[t]=this._filterCache[t]||[],this._filterCache[t].push(e)},b.prototype._doCreateElement=function(
e,t){var n=this._dcxBranch.addChild(e,undefined,undefined,this._dcxElementsNode);n.path=n.id,n.type=t;var r=new i(this,n);return r._updateCreatedTime(),this._elements.push(r),this._addElementToFilter(r),r},b.prototype._doRemoveElement=function(e,t){var n=this._elements.indexOf(e);n!==-1&&this._elements.splice(n,1),n=this._removedElements.indexOf(e),n!==-1&&this._removedElements.splice(n,1),this._removeElementFromFilter(e),t&&this._dcxBranch.removeChild(e._dcxNode),e._markDeletedLocally(!0)},b.prototype
._ensureRemovedElementsSpace=function(){while(this.removedElements.length>=s.MAX_REMOVED_ELEMENTS)this._doRemoveElement(this.removedElements[0],!0)},b.prototype._sortRemovedElements=function(){this._removedElements.sort(function(e,t){return e.removed-t.removed})},b.prototype._doMarkElementRemoved=function(e,t){var n=this._elements.indexOf(e);n!==-1&&(this._ensureRemovedElementsSpace(),this._elements.splice(n,1),this._removeElementFromFilter(e),this._removedElements.push(e),this._sortRemovedElements
(),t&&(e._dcxNode=this._dcxBranch.moveChild(e._dcxNode,undefined,this._getRemovedElementsNode()),e._updateTimestampOnRemove()))},b.prototype._doRestoreElement=function(e,t){var n=this._removedElements.indexOf(e);n!==-1&&(this._removedElements.splice(n,1),this._elements.push(e),this._addElementToFilter(e),t&&(e._dcxNode=this._dcxBranch.moveChild(e._dcxNode,undefined,this._dcxElementsNode),e._updateTimestampOnRestore()))},b.prototype._doCopyDCXElement=function(e,t,n,r,s){var o=this;t._beginOperation
(),a.storageInterface.notifyStartWrite(t,[this],function(){t._dcxBranch.copyChild(e._dcxNode,t._dcxElementsNode,undefined,r,r,function(r,u){if(p.checkDeletedState(o,s))return;if(r){t._endOperation(),s(r);return}var f=new i(t,u);t._addElementToFilter(f),t._elements.push(f);var l=function(){if(p.checkDeletedState(o,s))return;t._endOperation(),n&&o._wrapOperation(function(){o._doRemoveElement(e,!0)}),s(null,f)};a.hasFileSystem()?h.copyRenditionCache(f,e,e._renditionCache,l):l()})})},b.prototype._doCopyElement=
function(e,t,n,r){if(t._elements.length>=s.MAX_ELEMENTS){r(new u(u.EXCEEDS_MAX_LIBRARY_SIZE,"Library cannot have more than "+s.MAX_ELEMENTS+" elements",this.id));return}var i=e.id,o=t._elements.every(function(e){return e.id!==i})&&t._removedElements.every(function(e){return e.id!==i});o||(i=a.uuid()),this._doCopyDCXElement(e,t,n,i,r)},b.prototype.jasmineToString=function(){return this.toString()},b.prototype._setSyncState=function(e){this._syncState!==e&&(this._syncState=e,this._collection._updateSyncState
(),this._checkSyncFinishedAndNotify())},b.prototype._isSyncing=function(){return this._syncState!==undefined},b.prototype._checkSyncFinishedAndNotify=function(){if(!this._isSyncing()){var e=this._waitForSyncToFinishCallbacks;this._waitForSyncToFinishCallbacks=[],e.forEach(function(e){e()})}},b.prototype._waitForSyncToFinish=function(e){this._waitForSyncToFinishCallbacks.push(e),this._checkSyncFinishedAndNotify()},b.prototype._getClientData=function(){var e={};if(this._dcxComposite.clientDataString
)try{e=JSON.parse(this._dcxComposite.clientDataString)}catch(t){}return e},b.prototype._getClientDataValue=function(e){var t=this._getClientData();return t[e]},b.prototype._setClientDataValue=function(e,t){var n=this._getClientData();n[e]=t,this._dcxComposite.clientDataString=JSON.stringify(n)},b.prototype._setCollaboration=function(e){var t=e&&e.collaboration&&e.collaboration.toLowerCase(),n=e&&e.collaboration_role&&e.collaboration_role.toLowerCase(),r=this._getClientDataValue(s.DATA_COLLABORATION_ROLE
);if(this.collaboration!==t||r!==n){var i=p.collaborationStateToDCX(t);this._dcxComposite.collaborationType=i,this._setClientDataValue(s.DATA_COLLABORATION_ROLE,n),this._commit(!0,!0),this._notifyChange(),this._revertLocalChangesIfNecessary()}},b.prototype._isDeletedError=function(e){var t=e&&(e.code===r.NO_COMPOSITE||e.code===r.DELETED_COMPOSITE),n=e&&e.code===r.UNEXPECTED_RESPONSE&&e.response&&e.response.statusCode===401;return t||this.collection.isPublic&&n},b.prototype._isAlreadyExistsError=function(
e){var t=e&&e.code===r.ALREADY_EXISTS,n=e&&e.code===r.UNEXPECTED_RESPONSE&&e.response&&e.response.statusCode===409;return t||n},b.prototype._isReadOnlyError=function(e){if(this.collaboration!=="incoming")return!1;var t=!1;return e&&(e.code===r.COMPONENT_UPLOAD_ERROR||e.code===r.UNEXPECTED_RESPONSE)&&(e.code===r.UNEXPECTED_RESPONSE&&e.response&&e.response.statusCode===403&&(t=!0),e.code===r.COMPONENT_UPLOAD_ERROR&&Array.isArray(e.failedComponents)&&e.failedComponents.length>0&&(t=!0,e.failedComponents
.forEach(function(e){if(!e.error||e.error.code!==r.UNEXPECTED_RESPONSE||!e.error.response||e.error.response.statusCode!==403)t=!1}))),t},b.prototype._mergeAndSwitchToBranch=function(e,t,n){function c(t,c){if(p.checkDeletedState(r,n))return;if(t){n(d.getCommitError(t,r.id));return}a.log("Starting merge "+(u?"(local)":"(remote)")),c.name!==r.name&&(e.name=r.name);var v=e.rootNode.getValue(s.MODIFIED_KEY),m=Math.max(v||0,r.modified||0);c!==r._dcxBranch&&m&&v!==m&&e.rootNode.setValue(s.MODIFIED_KEY,m
);var g=p.getCompositeRenditionMap(e),y=p.getCompositeRenditionMap(c);Object.keys(r._dcxCompositeRenditionMap).forEach(function(t){var n=r._dcxCompositeRenditionMap[t],i=y[t],o=g[t];if(!i||n.id!==i.id)if(o){var u=n.getValue(s.MODIFIED_KEY)||0,a=o.getValue(s.MODIFIED_KEY)||0;u>a&&(e.removeComponent(o),e.copyComponent(n,e.rootNode))}else e.copyComponent(n,e.rootNode)}),Object.keys(y).forEach(function(t){var n=r._dcxCompositeRenditionMap[t],i=y[t],s=g[t];!n&&s&&s.id===i.id&&e.removeComponent(s)});var b
,w,E=e.getChildrenOf();E.forEach(function(e){e.name===s.ELEMENTS_NAME&&(b=e),e.name===s.REMOVED_ELEMENTS_NAME&&(w=e)}),b||(b=e.addChild(s.ELEMENTS_NAME));var S=function(){w||(w=e.addChild(s.REMOVED_ELEMENTS_NAME))},x={},T=[],N=[],C=[],k=[],L=[],A=new l,O=function(t){var n=t.id,f=t._dcxNode,l=t.modified,p=t.removed,d=e.getChildWithId(n),v=d&&d.getValue(s.MODIFIED_KEY),m=d&&d.getValue(s.REMOVED_KEY),g=c&&c.getChildWithId(n),y=g&&g.getValue(s.MODIFIED_KEY),E=g&&g.getValue(s.REMOVED_KEY);r._dcxBranch=
e;var O=function(){return p?(S(),w):b},M=function(){return!p&&t.removed?(k.push(t),!0):p&&!t.removed?(L.push(t),!0):!1};if(!y&&!v||y&&!v&&l!==y){a.log("1: created locally");var _=e.copyChild(f,O(),undefined,undefined,undefined);t._setDCXNode(_,!0)}else if(y&&!v&&l===y)a.log("2: deleted on server"),C.push(t);else if(y===l&&y===v)a.log("3: no changes to modified time"),t._setDCXNode(d,!0,!0),E!==p&&(E===m?p&&!m?(a.log("3a: removed locally"),S(),t._dcxNode=e.moveChild(t._dcxNode,undefined,w),t._updateTimestampOnRemove
()):m&&!p&&(a.log("3b: restored locally"),t._dcxNode=e.moveChild(t._dcxNode,undefined,b),t._updateTimestampOnRestore()):p||(a.log("3c: remove/restore conflict - local restore wins"),t._dcxNode=e.moveChild(t._dcxNode,undefined,b),t._updateTimestampOnRestore())),M()&&T.push(t);else if(y===l&&y!==v)a.log("4: updated on server"),t._setDCXNode(d,u),T.push(t),M();else if(y!==l&&y===v){a.log("5: updated locally");var D=e.replaceChild(f,undefined,undefined);t._setDCXNode(D,!0),M()}else if(y!==l&&y!==v){a
.log("6: updated locally and on server (conflict)");var P=t._renditionCache;t._setDCXNode(d),T.push(t),M();var H=a.uuid(),B=e.copyChild(f,O(),undefined,H,H),j=new i(r,B);N.push(j),x[j.id]=!0,a.hasFileSystem()&&A.addOperation(h.copyRenditionCache,[j,t,P]),o.reportCollisionElement(t)}else a.log("ERROR: unexpected merge case: base="+y+", current="+l+", pulled="+v);r._dcxBranch=r._dcxComposite.current,x[n]=!0};r._elements.forEach(O),r._removedElements.forEach(O);var M=function(e){e.removed?r._removedElements
.push(e):(r._addElementToFilter(e),r._elements.push(e))};N.forEach(M),r._sortRemovedElements(),C.forEach(function(e){r._doRemoveElement(e,!1)}),k.forEach(function(e){r._doMarkElementRemoved(e,!1)}),L.forEach(function(e){r._doRestoreElement(e,!1)}),r._dcxBranch=e,r._dcxElementsNode=b,r._dcxRemovedElementsNode=w,r._dcxCompositeRenditionMap=p.getCompositeRenditionMap(e);var _=function(t){if(!x[t.id]){var n=t.getValue(s.MODIFIED_KEY),o=c&&c.getChildWithId(t.id),u=o&&o.getValue(s.MODIFIED_KEY);if(u&&n&&
u===n)a.log("7: deleted locally"),e.removeChild(t);else{a.log("8: created on server");var f=new i(r,t);M(f)}}},D=r._dcxBranch.getChildrenOf(r._dcxElementsNode),P=r._dcxRemovedElementsNode?r._dcxBranch.getChildrenOf(r._dcxRemovedElementsNode):[];D.forEach(_),P.forEach(_),r._transactionCount++,A.run(function(){if(p.checkDeletedState(r,n))return;r._transactionCount--,a.storageInterface.resolvePullWithBranch(r,e,f,u,function(t){if(p.checkDeletedState(r,n))return;if(t){n(d.getCommitError(t,r.id));return}
a.hasFileSystem()||(r._dcxBaseBranch=e.copy()),!s.SHARED_LOCAL_STORAGE&&!u&&h.prefetchRenditions(r),T.forEach(function(e){e._listenerManager.notify("change")}),r._notifyChange(),n(null)})})}var r=this,u=t!==undefined,f=e.localData;this._waitForCommit(function(){if(p.checkDeletedState(r,n))return;t?c(null,t):r._dcxBranch.compositeState==="unmodified"?c(null,r._dcxBranch):r._loadBaseBranch(c)})},b.prototype._pull=function(e){var t=this;if(!this._dcxComposite.href||!this._dcxBranch.isBound){e(null,!1
);return}if(this._deletedFromServer){e(null,!1);return}var n=function(n,r){if(p.checkDeletedState(t,e))return;n&&t._collection._reportSyncError(n),t._setSyncState(),t._networkLock.release(),e(n,r)};this._networkLock.obtain(function(r){if(r){e(null);return}if(p.checkDeletedState(t,e))return;this._setSyncState("downloading"),this._collection._syncManager.pullComposite(this._dcxComposite,this._collection,function(r,i){if(p.checkDeletedState(t,e))return;if(t._isDeletedError(r)){a.hasFileSystem()&&t._dcxBranch
.compositeState==="modified"&&t.collaboration!=="incoming"?(t._doRebindToServer(!1,e),t._networkLock.release()):(t._deletedFromServer=!0,t._notifyChange(),n(null,!0));return}if(r){n(d.getSyncError(r,t.id));return}if(!i){n(null,!1);return}t._mergeAndSwitchToBranch(i,undefined,function(r){if(p.checkDeletedState(t,e))return;n(r,!0)})})},this)},b.prototype._pushWithParameters=function(e,t){var n=this,i=function(e,n){t&&t(null,n)};if(!s.SYNCING_ENABLED){i(null,!1);return}if(this._collection._retryTimeoutId
){i(null,!1);return}if(this._dcxBranch.isBound&&this._dcxBranch.compositeState!=="modified"){i(null,!1);return}if(this._deletedFromServer){i(null,!1);return}if(!this.isWritable){i(null,!1);return}if(this._pushPending){i(null,!1);return}var l=function(e,r){if(p.checkDeletedState(n,i))return;n._pushFailedDueToQuota=!1,e&&(n._collection._reportSyncError(e),e.code===u.EXCEEDS_QUOTA&&(n._pushFailedDueToQuota=!0)),n._setSyncState(),n._collection._syncManager.pullMissingComponents(n,function(e){if(p.checkDeletedState
(n,t))return;n._networkLock.release(),h.prefetchRenditions(n),i(null,r)})};this._pushPending=!0,this._networkLock.obtain(function(t){if(t){i(null,!1);return}this._waitForCommit(function(){if(p.checkDeletedState(n,i))return;n._pushPending=!1;var t;a.hasFileSystem()||(t=n._dcxBranch.copy()),n._setSyncState("uploading"),n._collection._syncManager.pushComposite(n._dcxComposite,n._collection,e,function(e){if(p.checkDeletedState(n,i))return;if(n._isDeletedError(e)){a.hasFileSystem()&&n._dcxBranch.compositeState==="modified"&&
n.collaboration!=="incoming"?(n._doRebindToServer(!1,i),n._networkLock.release()):(n._deletedFromServer=!0,n._notifyChange(),l(null,!0));return}if(n._isAlreadyExistsError(e)){n._dcxComposite.name=f.translate("LIBS_RECOVERED_LIBRARY",{name:n._dcxComposite.name}),n._doRebindToServer(!0,i),n._networkLock.release();return}if(n._isReadOnlyError(e)){a.log("Push failed due to read only. Reverting: "+n.id),n._setClientDataValue(s.DATA_COLLABORATION_ROLE,"viewer"),n._revertLocalChangesIfNecessary(function(
e){l(e,!1)});return}if(e&&e.code===u.TRANSFER_ABORTED){l(null,!0);return}if(e&&e.code===r.UPDATE_CONFLICT){a.log("Push failed due to conflict: "+n.id),n._numUpdateConflicts++;if(n._numUpdateConflicts<=s.MAX_UPDATE_CONFLICTS){n._sync(!1,i),n._networkLock.release();return}o.reportUnexpectedState(n,"updateConflict"),a.log("Reached maximum number of update-conflict retries: "+n.id)}n._numUpdateConflicts=0,e&&e.code===r.COMPONENT_UPLOAD_ERROR&&(a.log("Push failed due to component upload failure: "+n.id
),p.removeMissingLocalComponents(n,e.failedComponents));if(e){l(d.getSyncError(e,n.id));return}a.storageInterface.acceptPush(n,function(e){if(p.checkDeletedState(n,i))return;if(e){l(d.getCommitError(e,n.id),!0);return}a.hasFileSystem()||(n._dcxBaseBranch=t),l(null,!0)})})})},this)},b.prototype._loadBaseBranch=function(e){var t=this;a.hasFileSystem()?t._dcxComposite.loadBaseBranch(function(n,r){t._waitForCommit(function(){e(n,r)})}):e(null,t._dcxBaseBranch)},b.prototype._revertLocalChangesIfNecessary=
function(e){var t=this,n=m.wrapCallback(e);if(this.isWritable||this._dcxBranch.compositeState!=="modified"){n(null);return}this._loadBaseBranch(function(e,r){t._transactionCount++,p.recoverReadOnlyEdits(t,r,function(e){e&&a.log("Error recovering library changes: "+e),t._transactionCount--;var i=r.copy(),o=t.collaboration,u=t._getClientDataValue(s.DATA_COLLABORATION_ROLE);t._mergeAndSwitchToBranch(i,t._dcxBranch,function(e){if(!e){var r=p.collaborationStateToDCX(o);t._dcxComposite.collaborationType=
r,t._setClientDataValue(s.DATA_COLLABORATION_ROLE,u),t._commit(!0,!0),t._waitForCommit(function(){t._notifyChange(),n(null)})}else a.log("Error Reverting: "+t.id),n(e)})})})},b.prototype._push=function(e){this._pushWithParameters(!1,e)},b.prototype._abortPushOrPull=function(){this._networkLock.abortPendingOperations(new u(u.TRANSFER_ABORTED)),this._collection._syncManager.abortPushOrPull(this.id)},b.prototype._deleteFromServer=function(e,t){var n=this;if(!this._dcxComposite.href||!this._dcxBranch
.isBound){t(null);return}if(this._deletedFromServer){t(null);return}this._deletingFromServerInProgress||this._abortPushOrPull(),this._deletingFromServerInProgress=!0;var i=function(e){n._deletingFromServerInProgress=!1,n._networkLock.release(),t(e)};this._networkLock.obtain(function(s){if(s){t(null);return}if(this._deletedFromDisk){i(null);return}this._setSyncState("uploading"),this._dcxBranch.compositeState="pendingDelete",this._commit(!0,!0),this._waitForCommit(function(){if(n._deletedFromDisk)
{i(null);return}n._collection._syncManager.pushDeletedComposite(n._dcxComposite,n._collection,n.collaboration,e,function(t){if(t){if(n._isDeletedError(t))t=null;else if(e||t.code!==r.UPDATE_CONFLICT)t=d.getSyncError(t,n.id),n._collection._reportSyncError(t)}else n._deletedFromServer=!0;n._setSyncState(),i(t)})})},this)},b.prototype._doRebindToServer=function(e,t){var n=this;this._deletedFromServer=!1;var r=e||this.collaboration==="incoming"?"resetIdentity":"resetBinding",i=this.id;this._dcxComposite
[r](function(e){if(p.checkDeletedState(n,t))return;if(e){t(e);return}n._transactionCount++,n.id!==i&&(n._collection._libraryIdMap[n.id]=n,delete n._collection._libraryIdMap[i]),v.moveLibrary(n,i,function(e){if(p.checkDeletedState(n,t))return;n._transactionCount--;if(e){t(e);return}n._collection._syncManager.prepareCompositeForPush(n._dcxComposite),n._setCollaboration(),n._commit(!1,!0),n._pushWithParameters(!0,t)})})},b.prototype._sync=function(e,t){function r(e,r){t&&n._waitForSyncToFinish(function(
){t(e,r)})}function i(e,t){if(p.checkDeletedState(n,r))return;if(e){r(e,t);return}n._push(function(e,i){if(p.checkDeletedState(n,r))return;r(e,t||i)})}var n=this;if(s.SHARED_LOCAL_STORAGE||!s.SYNCING_ENABLED){r(null,!1);return}if(this._collection._retryTimeoutId){r(null,!1);return}this._collection._clearSyncErrors(this.id),e?i(null,!1):this._pull(i)},b.prototype._getCompositeDir=function(){return this._collection._getCompositeDir(this.id)},b.prototype._getRenditionCacheDir=function(){return this.
_collection._getRenditionCacheDir(this.id)},Object.defineProperties(b.prototype,{id:{get:function(){return this._publicId||this._dcxComposite.id},set:function(e){throw new u(u.READ_ONLY,"Cannot change the id of an existing library",this.id)}},collection:{get:function(){return this._collection},set:function(e){throw new u(u.READ_ONLY,"collection is a read-only property",this.id)}},isWritable:{get:function(){var e=this._getClientDataValue(s.DATA_COLLABORATION_ROLE);return this._writable&&e!=="viewer"
},set:function(e){throw new u(u.READ_ONLY,"isWritable is a read-only property",this.id)}},name:{get:function(){return this._dcxComposite.name||""},set:function(e){p.checkDeletedState(this);if(!this.isWritable)throw new u(u.NOT_ALLOWED,"you do not have write access to this library",this.id);this._dcxComposite.name=e,this._commit()}},modified:{get:function(){return this._dcxBranch.rootNode.getValue(s.MODIFIED_KEY)},set:function(e){throw new u(u.READ_ONLY,"Cannot change the modified timestamp of a library directly"
,this.id)}},created:{get:function(){return this._dcxBranch.rootNode.getValue(s.CREATED_KEY)},set:function(e){throw new u(u.READ_ONLY,"Cannot change the created timestamp of a library directly",this.id)}},elements:{get:function(){return this._elements},set:function(){throw new u(u.READ_ONLY,"Cannot modify elements list directly",this.id)}},removedElements:{get:function(){return this._removedElements},set:function(){throw new u(u.READ_ONLY,"Cannot modify removed elements list directly",this.id)}},isDeletedFromServer
:{get:function(){return this._deletedFromServer},set:function(){throw new u(u.READ_ONLY,"isDeletedFromServer is a read-only property",this.id)}},isDeletedLocally:{get:function(){return this._deletedLocally},set:function(e){throw new u(u.READ_ONLY,"isDeletedLocally is a read-only property",this.id)}},isQuotaExceeded:{get:function(){return this._pushFailedDueToQuota},set:function(){throw new u(u.READ_ONLY,"isQuotaExceeded is a read-only property",this.id)}},collaboration:{get:function(){var e=this.
_dcxComposite.collaborationType;return p.collaborationStateFromDCX(e)},set:function(){throw new u(u.READ_ONLY,"collaboration is a read-only property",this.id)}},syncState:{get:function(){return this._syncState},set:function(){throw new u(u.READ_ONLY,"syncState is a read-only property")}},syncProgress:{get:function(){var e=this._collection._syncProgressMap[this.id];return e&&e.progress},set:function(){throw new u(u.READ_ONLY,"syncProgress is a read-only property")}}}),b.prototype.toString=function(
){return JSON.stringify(this._toJSON())},b.prototype.addChangeListener=function(e){p.checkDeletedState(this),this._listenerManager.add("change",e)},b.prototype.removeChangeListener=function(e){this._listenerManager.remove("change",e)},b.prototype.createElement=function(e,t){p.checkDeletedState(this);if(!this.isWritable)throw new u(u.NOT_ALLOWED,"you do not have write access to this library",this.id);if(this._elements.length>=s.MAX_ELEMENTS)throw new u(u.EXCEEDS_MAX_LIBRARY_SIZE,"Library cannot have more than "+
s.MAX_ELEMENTS+" elements",this.id);return this._wrapOperation(function(){var n=this._doCreateElement(e,t);return o.reportCreateElement(n),n.beginOperation(),n},this)},b.prototype.removeElement=function(e,t){p.checkDeletedState(this);if(!this.isWritable)throw new u(u.NOT_ALLOWED,"you do not have write access to this library",this.id);if(!e)throw new u(u.INVALID_PARAMETER,"No element specified",this.id);if(this._elements.indexOf(e)===-1){if(this._removedElements.indexOf(e)===-1)throw new u(u.INVALID_PARAMETER
,"Element not in this library",this.id);if(!t)throw new u(u.INVALID_PARAMETER,"Element already removed",this.id)}return this._wrapOperation(function(){while(e._transactionCount>0)e.endOperation();t?this._doRemoveElement(e,!0):this._doMarkElementRemoved(e,!0),o.reportDeleteElement(e,t)},this)},b.prototype.restoreElement=function(e){p.checkDeletedState(this);if(!this.isWritable)throw new u(u.NOT_ALLOWED,"you do not have write access to this library",this.id);if(!e)throw new u(u.INVALID_PARAMETER,"No element specified"
,this.id);if(this._removedElements.indexOf(e)===-1)throw this._elements.indexOf(e)===-1?new u(u.INVALID_PARAMETER,"Element not in this library",this.id):new u(u.INVALID_PARAMETER,"Element already restored",this.id);if(this._elements.length>=s.MAX_ELEMENTS)throw new u(u.EXCEEDS_MAX_LIBRARY_SIZE,"Library cannot have more than "+s.MAX_ELEMENTS+" elements",this.id);return this._wrapOperation(function(){this._doRestoreElement(e,!0),o.reportRestoreElement(e)},this)},b.prototype.copyElement=function(e,t
,n){if(p.checkDeletedState(this,n))return;if(!e){n(new u(u.INVALID_PARAMETER,"No element specified",this.id));return}if(this._elements.indexOf(e)===-1&&this._removedElements.indexOf(e)===-1){n(new u(u.INVALID_PARAMETER,"Element not in this library",this.id));return}if(!t){n(new u(u.INVALID_PARAMETER,"No destination library specified",this.id));return}if(!t.isWritable){n(new u(u.NOT_ALLOWED,"you do not have write access to the destination library",t.id));return}return this._doCopyElement(e,t,!1,function(
t,r){if(t){n(t);return}o.reportCopyElement(r,e),n(null,r)})},b.prototype.moveElement=function(e,t,n){if(p.checkDeletedState(this,n))return;if(!this.isWritable){n(new u(u.NOT_ALLOWED,"you do not have write access to this library",this.id));return}if(!e){n(new u(u.INVALID_PARAMETER,"No element specified",this.id));return}if(this._elements.indexOf(e)===-1&&this._removedElements.indexOf(e)===-1){n(new u(u.INVALID_PARAMETER,"Element not in this library",this.id));return}if(!t){n(new u(u.INVALID_PARAMETER
,"No destination library specified",this.id));return}if(this===t){n(new u(u.INVALID_PARAMETER,"Move must have a different destination library",this.id));return}if(!t.isWritable){n(new u(u.NOT_ALLOWED,"you do not have write access to the destination library",t.id));return}return this._doCopyElement(e,t,!0,function(t,r){if(t){n(t);return}o.reportMoveElement(r,e),n(null,r)})},b.prototype.getRenditionPath=function(e,t){if(!a.hasFileSystem()){t(new u(u.REQUIRES_FILESYSTEM,"path-based APIs require a filesystem"
,this.id));return}if(p.checkDeletedState(this,t))return;if(!this._checkRenditionType(e,t))return;var n=this._dcxCompositeRenditionMap[e];if(!n)return t(null);var r=this._dcxBranch.assetOfComponent(n);if(r)return t(null,r);var i=this;this._networkLock.obtain(function(e){if(e){t(e);return}if(p.checkDeletedState(i,t)){i._networkLock.release();return}i._setSyncState("downloading");var r=i._collection._syncManager;r.downloadComponent(i._dcxBranch,n,function(e){i._networkLock.release(),i._setSyncState(
);if(e){t(d.getSyncError(e,i.id));return}if(p.checkDeletedState(i,t))return;i._commit(!0,!0),t(null,i._dcxBranch.assetOfComponent(n))})})},b.prototype.getRenditionURL=function(e){p.checkDeletedState(this),this._checkRenditionType(e);var t=this._dcxCompositeRenditionMap[e];if(t){var n=this._collection._syncManager;return n.getSharedCloudContentURL(t)}return undefined},b.prototype.getAuthenticatedRenditionURL=function(e,t){if(p.checkDeletedState(this,t))return;if(!this._checkRenditionType(e,t))return;
var n=this.getRenditionURL(e);if(!n)return t(null);var r=this._collection._syncManager;r.appendAccessTokenToURL(n,t)},b.prototype.setRendition=function(e,t,n,r,i){if(p.checkDeletedState(this,i))return;if(!this._checkRenditionType(e,i))return;if(!t){i(new u(u.INVALID_PARAMETER,"content must exist",this.id));return}if(!this.isWritable){i(new u(u.NOT_ALLOWED,"you do not have write access to this library",this.id));return}if(!a.hasFileSystem()){if(n!==undefined){i(new u(u.INVALID_PARAMETER,"Encoding parameter not supported in-browser"
));return}this._setRenditionInBrowser(e,t,r,i)}else{if(!p.checkEncoding(n,["utf8","ascii","base64","buffer"],i))return;this._setRendition(e,t,n,r,i)}},b.prototype.setRenditionFromPath=function(e,t,n,r){if(p.checkDeletedState(this,r))return;if(!this._checkRenditionType(e,r))return;if(typeof t!="string"){r(new u(u.INVALID_PARAMETER,"path must be a string",this.id));return}if(!a.hasFileSystem()){r(new u(u.REQUIRES_FILESYSTEM,"path-based APIs require a filesystem",this.id));return}if(!this.isWritable
){r(new u(u.NOT_ALLOWED,"you do not have write access to this library",this.id));return}this._setRenditionFromPath(e,t,n,r)},b.prototype.removeRendition=function(e){p.checkDeletedState(this),this._checkRenditionType(e);if(!this.isWritable)throw new u(u.NOT_ALLOWED,"you do not have write access to this library",this.id);var t=this._dcxCompositeRenditionMap[e];if(t)return this._wrapOperation(function(){this._dcxBranch.removeComponent(t),this._dcxCompositeRenditionMap=p.getCompositeRenditionMap(this
._dcxBranch),this._commit()},this)},b.prototype.getFilteredElements=function(e){if(!e)throw new u(u.INVALID_PARAMETER,"must specify element type to filter",this.id);if(e!=="*"&&s.ELEMENT_TYPE_FILTERS.indexOf(e)===-1)throw new u(u.INVALID_PARAMETER,"must specify '*', or an element type in config.ELEMENT_TYPE_FILTERS",this.id);var t=this._getFilterKey(e);return this._filterCache[t]=this._filterCache[t]||[],this._filterCache[t]},b.prototype.sync=function(e){if(p.checkDeletedState(this,e))return;this
._sync(!1,e)},b.prototype.rebindToServer=function(e){if(!a.hasFileSystem()){e(new u(u.REQUIRES_FILESYSTEM,"rebindToServer requires a filesystem",this.id));return}if(p.checkDeletedState(this,e))return;if(!this.isWritable){e(new u(u.NOT_ALLOWED,"you do not have write access to this library",this.id));return}if(!this._deletedFromServer){e(null);return}this._doRebindToServer(!1,e)},b.prototype.getElementById=function(e,t){var n;return this.elements.forEach(function(t){t.id===e&&(n=t)}),!n&&!t&&this.removedElements
.forEach(function(t){t.id===e&&(n=t)}),n},Object.freeze(b),Object.seal(b.prototype),b}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/AdobeLibrarySyncManager",["require","exports","module","./components/dcx-js/src/AdobeStorageSession","./components/dcx-js/src/AdobeDCXCompositeXfer","./components/dcx-js/src/AdobeDCXUtil","./components/dcx-js/src/AdobeDCXError","./AdobeLibraryConfig","./AdobeLibraryError","./AdobeLibraryServices","./utils/AdobeLibrarySyncUtils","./utils/AdobeLibraryErrorUtils"
,"./utils/AdobeLibraryFileUtils","../src/utils/AdobeLibraryGeneralUtils","./utils/AdobeLibraryManifestUtils","./utils/AdobeLibraryMimeTypeUtils"],function(e,t,n){"use strict";function m(e,t){this._collection=e,this._isPublic=t.IS_PUBLIC,this._storageHost=t.STORAGE_HOSTNAME,this._collaborationHost=t.COLLABORATION_HOSTNAME,this._storageAssetsPath=this._isPublic?t.STORAGE_ASSETS_PATH:u.STORAGE_ASSETS_PATH,this._apiKey=u.STORAGE_API_KEY,this._syncGroup=this._isPublic?t.SYNC_GROUP:u.LIBRARY_SYNC_GROUP
,this._XHR=t.XHR,this._requiresCommunitySession=t.REQUIRES_COMMUNITY_SESSION,this._getAccessToken=t.getAccessToken,this._httpServices=[],this._storageService=this._createStorageSession(),this._renditionStorageService=this._createStorageSession(),this._temporaryStorageServices={},this._lastSyncGroupState={},this._hasSetAuthToken=!1,this._authToken=undefined,this._inProgressSyncMap={},!u.SHARED_LOCAL_STORAGE&&!this._isPublic&&this._updateAuthToken()}var r=e("./components/dcx-js/src/AdobeStorageSession"
),i=e("./components/dcx-js/src/AdobeDCXCompositeXfer"),s=e("./components/dcx-js/src/AdobeDCXUtil"),o=e("./components/dcx-js/src/AdobeDCXError"),u=e("./AdobeLibraryConfig"),a=e("./AdobeLibraryError"),f=e("./AdobeLibraryServices"),l=e("./utils/AdobeLibrarySyncUtils"),c=e("./utils/AdobeLibraryErrorUtils"),h=e("./utils/AdobeLibraryFileUtils"),p=e("../src/utils/AdobeLibraryGeneralUtils"),d=e("./utils/AdobeLibraryManifestUtils"),v=e("./utils/AdobeLibraryMimeTypeUtils");return m.prototype._getCommonRequestHeaders=
function(){var e={};return u.USER_AGENT_HEADER&&(e["User-Agent"]=u.USER_AGENT_HEADER),e},m.prototype._setAuthToken=function(e){this._hasSetAuthToken=!0,this._authToken=e,this._httpServices.forEach(function(t){e?(t.isActive=!0,t.setAuthToken(e)):t.isActive=!1})},m.prototype._updateAuthToken=function(e){var t=this,n=p.wrapCallback(e);this._getAccessToken(this._authToken,function(e,r){!e&&r?t._setAuthToken(r):(e&&e.code===a.ACCESS_DENIED&&(t._collection._reportSyncError(e),t._collection._updateSyncState
()),t._setAuthToken()),n(null,r)})},m.prototype._getAuthToken=function(e){this._isPublic?e(null,undefined):this._hasSetAuthToken?e(null,this._authToken):this._updateAuthToken(e)},m.prototype._authHandler=function(){this._updateAuthToken()},m.prototype._createStorageSession=function(){var e;return this._isPublic?e=f.dcx.createHTTPService():(e=f.dcx.createHTTPService(this._authHandler.bind(this)),this._httpServices.push(e)),e.setApiKey(this._apiKey),e.setTimeout(u.NETWORK_TIMEOUT),e.setAdditionalNodeOptions
(f.getNodeTunnelOptions(this.getStorageHost())),e.setAdditionalHeaders(this._getCommonRequestHeaders()),this._XHR&&e._forceXhr(this._XHR),this._requiresCommunitySession?f.dcx.createCommunitySession(e,this.getStorageHost()):f.dcx.createStorageSession(e,this.getStorageHost())},m.prototype._createTemporaryStorageSession=function(e,t){var n;return!t||!this._getAccessToken?n=f.dcx.createHTTPService():(n=f.dcx.createHTTPService(this._authHandler.bind(this)),n.setApiKey(this._apiKey),n.setAdditionalHeaders
(this._getCommonRequestHeaders()),n.setAuthToken(this._authToken),this._httpServices.push(n)),n.setTimeout(u.NETWORK_TIMEOUT),n.setAdditionalNodeOptions(f.getNodeTunnelOptions(e)),this._XHR&&n._forceXhr(this._XHR),f.dcx.createStorageSession(n,e)},m.prototype._getTemporaryStorageSession=function(e){var t=s.parseURI(e),n=t.scheme+"://"+t.authority,r=l.isAdobeDomain(t.authority);return this._temporaryStorageServices[n]||(this._temporaryStorageServices[n]=this._createTemporaryStorageSession(n,r)),this
._temporaryStorageServices[n]},m.prototype.getServerComposites=function(e){var t=this,n=this._lastSyncGroupState.etag;this._storageService.getCollection(this.getSyncGroupPath(),n,function(n,r,i,s){if(n){n.response&&n.response.statusCode===404?e(null,[]):e(n);return}if(!r){var o=Math.max(u.DEFAULT_MAX_SYNC_INTERVAL,l.getRetryAfterHeader(s)*1e3);u.MAX_SYNC_INTERVAL=o,e(null,[]);return}u.MAX_SYNC_INTERVAL=u.DEFAULT_MAX_SYNC_INTERVAL;var a=t._lastSyncGroupState.compositeEtags||{},f={},c=[],h={},p=r.children||
[];p.forEach(function(e){if(!e||!d.validateLibraryId(e.name,!1))return;e.isUnmodified=e.etag&&a[e.name]===e.etag,c.push(e),h[e.name]=e,f[e.name]=e.etag}),t._lastSyncGroupState={etag:i,compositeEtags:f},e(null,c,h)})},m.prototype.clearSyncGroupCache=function(){this._lastSyncGroupState={}},m.prototype.doHeadRequest=function(e,t){var n;try{n=this._storageService.getCompositeManifestHref(e)}catch(r){t(r);return}this._storageService.headRequest(n,t)},m.prototype.hasCompositeChangedOnServer=function(e,
t){this.doHeadRequest(e,function(n,r){if(n){t(!0);return}var i=r&&r.headers&&r.headers.etag,s=e.current&&e.current.manifestEtag;t(i!==s)})},m.prototype.downloadComponent=function(e,t,n){i.downloadComponents([t],e,this._storageService,n)},m.prototype.downloadRepresentation=function(e,t){var n=e._dcxComponent,r=e.element.library._dcxBranch;this.downloadComponent(r,n,t)},m.prototype.abortPushOrPull=function(e){this._inProgressSyncMap[e]&&(this._inProgressSyncMap[e].abort(new a(a.TRANSFER_ABORTED,"abort push or pull operation"
)),delete this._inProgressSyncMap[e])},m.prototype._isManifestOnly=function(){return u.SYNC_POLICY==="manifestOnly"||!f.hasFileSystem()},m.prototype._pullCompositeComponents=function(e,t,n,r,s){if(this._isManifestOnly()){s(null);return}var o=i.downloadComponents(e,t,this._storageService,s);this._inProgressSyncMap[r]=o,o.onProgress=function(e,t){t!==0&&n._updateProgress(r,e,t)}},m.prototype._pullComposite=function(e,t,n,r){var s=this;this._inProgressSyncMap[n]=i.pullCompositeManifestOnly(e,this._storageService
,function(e,i){if(e||!i){r(e,i);return}var o=i.getComponentsOf();i.getChildrenOf().forEach(function(e){if(e.name!==u.ELEMENTS_NAME)return;i.getChildrenOf(e).forEach(function(e){o=o.concat(i.getComponentsOf(e))})}),s._pullCompositeComponents(o,i,t,n,function(e){r(e,i)})})},m.prototype.pullComposite=function(e,t,n){var r=this,i=e.id;if(!i&&e.href){var s=e.href.split("/");i=s&&s[s.length-1]}f.log("Started pulling: "+i+(this._isManifestOnly()?" (manifest only)":""));var u=(new Date).valueOf();t._updateProgress
(i),this._pullComposite(e,t,i,function(s,l){var c=(new Date).valueOf()-u;f.log("Finished pulling: "+i+(s?" ["+s.code+"]":"")+" duration="+c),delete r._inProgressSyncMap[i],t._updateProgress(i),l=l&&l.copy();if(s&&s.code===o.COMPONENT_DOWNLOAD_ERROR){r.doHeadRequest(e,function(e,t){var r=!e&&t&&t.statusCode===200;if(r){var i=d.removeMissingComponents(s.pulledBranch.copy(),s.failedComponents);if(i){n(null,i);return}}n(s,l)});return}if(s&&s.code===a.TRANSFER_ABORTED){n(null,undefined);return}n(s,l)}
)},m.prototype.pullMissingComponents=function(e,t){var n=this,r=e.id,i=e.collection,s=e._getMissingLocalComponents();if(this._isManifestOnly()||s.length===0){t(null);return}e._setSyncState("downloading"),f.log("Started pulling missing components: "+r);var o=(new Date).valueOf();i._updateProgress(r),this._pullCompositeComponents(s,e._dcxBranch,i,r,function(s){var u=(new Date).valueOf()-o;f.log("Finished pulling missing components: "+r+(s?" ["+s.code+"]":"")+" duration="+u),delete n._inProgressSyncMap
[r],i._updateProgress(r),e._setSyncState();if(s&&s.code===a.TRANSFER_ABORTED){t(null);return}t(s)})},m.prototype.pushComposite=function(e,t,n,r){var s=this,o=e.id;f.log("Started pushing: "+o);var u=(new Date).valueOf();t._updateProgress(o),this._inProgressSyncMap[o]=i.pushComposite(e,n,this._storageService,function(e){var n=(new Date).valueOf()-u;f.log("Finished pushing: "+o+(e?" ["+e.code+"]":"")+" duration="+n),delete s._inProgressSyncMap[o],t._updateProgress(o),r(e)});var a=this._inProgressSyncMap
[o];a.onProgress=function(e,n){n!==0&&t._updateProgress(o,e,n)}},m.prototype.pushDeletedComposite=function(e,t,n,r,i){var s=this;n==="incoming"?(f.log("Deleting incoming collaboration without pushing: "+e.id),this._storageService.deleteCompositeDirectory(e,i)):(f.log("Pushing deleted composite: "+e.id),this.pushComposite(e,t,r,function(n){if(n){if(n.code===o.UNEXPECTED_RESPONSE&&n.response&&n.response.statusCode===404){s._storageService.deleteCompositeDirectory(e,i);return}if(n.code===o.UPDATE_CONFLICT
){var r=n;s.pullComposite(e,t,function(t){if(t&&t.code===o.NO_COMPOSITE){s._storageService.deleteCompositeDirectory(e,i);return}if(t&&t.code===o.DELETED_COMPOSITE){i(null);return}if(t){i(t);return}i(r)});return}}i(n)}))},m.prototype.getStorageHost=function(){return"https://"+this._storageHost},m.prototype.getSyncGroupPath=function(){var e=this.getStorageHost()+(this._storageAssetsPath||"");return this._syncGroup?s.appendPathElements(e,this._syncGroup):e},m.prototype.getCompositePath=function(e){return s
.appendPathElements(this.getSyncGroupPath(),e)},m.prototype.getComponentPath=function(e,t){return s.appendPathElements(this.getSyncGroupPath(),e,t)},m.prototype.getElementRefDomain=function(){return this._requiresCommunitySession?u.CP_CLOUD_ID:this._storageHost},m.prototype.getElementRefPath=function(){return u.STORAGE_ASSETS_PATH+u.LIBRARY_SYNC_GROUP},m.prototype.getElementRefDomainPath=function(){return this.getElementRefDomain()+this.getElementRefPath()},m.prototype.getCollaborationHost=function(
){return"https://"+this._collaborationHost},m.prototype._getSharedCloudRenditionUrl=function(e,t,n,r){if(!e._dcxComponent){r("representation must be a component to generate a rendition");return}var i;if(this._requiresCommunitySession)try{i=this._storageService.getComponentRenditionHref(e._dcxComponent,e._dcxComponent.version,"image/png","width",t||"full")}catch(s){r(s);return}else{i=this.getComponentPath(e._element._library.id,e.id)+"/:rendition",i+=";size="+(t||"full"),e._dcxComponent.version!==
undefined&&(i+=";version="+e._dcxComponent.version);if(n){var o=this._apiKey;this._getAuthToken(function(e,t){i+="?accept=image/png&api_key="+o+(t?"&user_token="+t:""),r(null,i)});return}}r(null,i)},m.prototype._getAssetAsType=function(e,t,n,i,s,o){var a=this;o=o||0;var h=function(){a._getAssetAsType(e,t,n,i,s,o)};if(o>0&&e.element.library.syncState==="uploading"){setTimeout(h,u.RENDITION_RETRY_INTERVAL);return}var p=n+f.getPathSeparator()+f.uuid()+".png",d=new r.FileContent(p);this._renditionStorageService
.getAssetAsType(t,d,i,function(t){var n=t&&t.response&&t.response.headers,r=l.getRetryAfterHeader(n)*1e3;u.RENDITION_RETRY_INTERVAL=Math.max(u.DEFAULT_RENDITION_RETRY_INTERVAL,r),u.RENDITION_404_BACKOFF=Math.max(u.DEFAULT_RENDITION_404_BACKOFF,r);if(c.getErrorStatusCode(t)===404){if(o<u.RENDITION_MAX_RETRIES){f.log("404 fetching rendition: retrying"),o++,setTimeout(h,u.RENDITION_RETRY_INTERVAL);return}f.log("404 fetching rendition: reached maximum retries"),f.log("Backing off rendition fetch of "+
e.id+" for "+u.RENDITION_404_BACKOFF+"ms"),e._lastRendition404=(new Date).valueOf()}s(t,p)})},m.prototype.getSharedCloudRenditionUrl=function(e,t,n){var r=u.SHARED_LOCAL_STORAGE?!1:!0;this._getSharedCloudRenditionUrl(e,t,r,n)},m.prototype.getSharedCloudRendition=function(e,t,n){var r=this;if(e.element.library.isDeletedFromServer){f.log("Error: Trying to fetch rendition from deleted library."),n("Error: library deleted");return}var i=(new Date).valueOf(),s=i-(e._lastRendition404||0);if(s<u.RENDITION_404_BACKOFF
){n("Error: got 404 on last rendition attempt - backing off");return}this._getSharedCloudRenditionUrl(e,t,!1,function(t,i){if(t){n(t);return}var s={Accept:"image/png"},o=e.element.library.collection._getTempDir();h.ensurePathExists(o,function(t){if(t){n(t);return}r._getAssetAsType(e,i,o,s,n)})})},m.prototype.getSharedCloudContentURL=function(e){return this._storageService.getComponentHref(e,e.version)},m.prototype.appendAccessTokenToURL=function(e,t){if(!e){t(null,undefined);return}var n=this._apiKey
;this._getAuthToken(function(r,i){e+="?api_key="+n+(i?"&user_token="+i:""),t(null,e)})},m.prototype.getSharedCloudContent=function(e,t,n){var r=this._storageService.getComponentHref(e._dcxComponent,e._dcxComponent.version),i={};this._storageService.getAssetAsType(r,t,i,function(e,t){if(e){n(e);return}n(null,t)})},m.prototype.getAssetFromURL=function(e,t,n,i,s,u){var a=this;f.log("getAssetFromURL: "+e);var c=this._getTemporaryStorageSession(e),p=n+f.getPathSeparator()+f.uuid(),d=new r.FileContent(
p);u=u||0,t=t||{},h.ensurePathExists(n,function(r){if(r){s(r);return}var h=c.getAssetAsType(e,d,t,function(r,c,d,v){delete h.progress;if(r&&r.code===o.UNEXPECTED_RESPONSE){var m=r.response&&r.response.statusCode;f.log("getAssetFromURL: Unexpected Response "+m+" from "+e);if(m===301||m===302||m===303||m===307){var g=l.getLocationHeader(r.response.headers);if(g&&u<5){a.getAssetFromURL(g,t,n,i,s,u+1);return}}}s(r,p,d,v)});if(i){var v=0,m;h.progress=function(e){v+=e,!m&&h.response&&h.response.headers&&
(m=l.getContentLengthHeader(h.response.headers)),i(v,m||1)},i(0,1)}})},m.prototype.doHeadRequestOfURL=function(e,t){var n=this._getTemporaryStorageSession(e);n.headRequest(e,function(n,r){var i=r&&r.statusCode;f.log("doHeadRequestOfURL: "+e+" -> "+i),t(n,r)})},m.prototype.prepareCompositeForPush=function(e){e.href=this.getCompositePath(e.id)},m.prototype.updateAccessToken=function(e){this._setAuthToken(e)},m.prototype.isLoggedIn=function(){return this._isPublic||this._httpServices[0].isActive},m.
prototype.uploadNewComponentForRepresentation=function(e,t,n,r){var s=n._element._library._dcxComposite;i.uploadNewComponent(e,n.type,s,n.id,this._storageService,function(e,i){if(e){r(e);return}var o=t?t.lastIndexOf("."):-1,u=o!==-1&&t.substr(o+1).toLowerCase(),a=n.id+"."+u,f=s.current.addComponentWithUploadResults(t,n.relationship,a,n._element._dcxNode,i);r(null,f)})},m.prototype.uploadNewComponentForLibrary=function(e,t,n,r,s,o){var u=s._dcxComposite;i.uploadNewComponent(e,n,u,t,this._storageService
,function(e,i){if(e){o(e);return}var s=v.getExtensions(n)[0],a=t+"."+s,f=u.current.addComponentWithUploadResults(a,r,a,u,i);o(null,f)})},Object.freeze(m),Object.seal(m.prototype),m}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/AdobeLibraryBookmark",["require","exports","module","./AdobeLibraryError"],function(e,t,n){"use strict";function i(e,t){this._id=e,this._url=t}var r=e("./AdobeLibraryError");return Object.defineProperties(i.prototype,{id:{get:function(){return this
._id},set:function(e){throw new r(r.READ_ONLY,"Cannot change the id of an existing bookmark")}},url:{get:function(){return this._url},set:function(e){throw new r(r.READ_ONLY,"Cannot change the url of an existing bookmark")}}}),Object.freeze(i),Object.seal(i.prototype),i}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/AdobeLibraryBookmarkManager",["require","exports","module","./AdobeLibraryBookmark","./AdobeLibraryServices","./AdobeLibraryConfig","./utils/AdobeLibraryLock"
,"./utils/AdobeLibraryFileUtils","./utils/AdobeLibraryErrorUtils"],function(e,t,n){"use strict";function f(e){this._collection=e,this._bookmarks=[],this._bookmarksEtag=undefined,this._bookmarksBase=undefined,this._syncModified=!1,this._lock=new o,this._service=e._syncManager._createTemporaryStorageSession(e._syncManager.getCollaborationHost(),!0)._service,this._bookmarksURL=e._syncManager.getCollaborationHost()+s.BOOKMARKS_PATH}function l(e,t){var n;return e.some(function(e){if(e.id===t)return n=
e,!0}),n}function c(e){var t=[];return e.forEach(function(e){t.push({id:e.id,url:e.url})}),t}function h(e){var t=[];return e&&e.forEach(function(e){t.push(new r(e.id,e.url))}),t}var r=e("./AdobeLibraryBookmark"),i=e("./AdobeLibraryServices"),s=e("./AdobeLibraryConfig"),o=e("./utils/AdobeLibraryLock"),u=e("./utils/AdobeLibraryFileUtils"),a=e("./utils/AdobeLibraryErrorUtils");return f.prototype._getBookmarksDir=function(){return this._collection._getBaseDir()},f.prototype._saveBookmarks=function(e)
{if(!i.hasFileSystem())e(null);else{var t={bookmarks:c(this._bookmarks),etag:this._bookmarksEtag};this._bookmarksBase&&(t.bookmarks_base=this._bookmarksBase),u.writeJSONData(this._getBookmarksDir(),s.BOOKMARKS_FILENAME,t,function(t){t&&(t=a.getCommitError(t,null,"bookmarks could not be saved")),e(t)})}},f.prototype._loadBookmarks=function(e){if(!i.hasFileSystem())e(null);else{var t=this,n=this._getBookmarksDir()+i.getPathSeparator()+s.BOOKMARKS_FILENAME;u.readJSONData(n,function(n,r){if(n)return n=
a.getCommitError(n,null,"bookmarks could not be loaded"),e(n);r&&(t._bookmarks=h(r.bookmarks),t._bookmarksEtag=r.etag,t._bookmarksBase=r.bookmarks_base&&h(r.bookmarks_base)),e(null)})}},f.prototype._pullBookmarks=function(e){function r(t,r){if(t)return e(t);if(r.statusCode===200)try{var i=JSON.parse(r.response);n._syncModified=!0,e(null,h(i.bookmarks),r.headers.etag)}catch(s){e("Cannot parse data: "+r.response)}else r.statusCode===304||r.statusCode===404?e(null,undefined,r.headers.etag):e("Unexpected response getting bookmarks: "+
r.statusCode)}i.log("Pulling bookmarks");var t={},n=this;this._bookmarksEtag&&(t["If-None-Match"]=this._bookmarksEtag),this._service.invoke("GET",this._bookmarksURL,t,undefined,{responseType:"text"},r)},f.prototype._mergeBookmarks=function(e,t){i.log("Merging bookmarks");if(e){if(this._bookmarksBase){var n=this;e.forEach(function(t){var r=l(n._bookmarks,t.id),i=l(n._bookmarksBase,t.id);!r&&i&&e.splice(e.indexOf(t),1)}),this._bookmarks.forEach(function(t){var r=l(e,t.id),i=l(n._bookmarksBase,t.id)
;!r&&!i&&e.push(t)})}this._bookmarks=e}this._bookmarksEtag=t},f.prototype._pushBookmarks=function(e){i.log("Pushing bookmarks");var t={"Content-Type":"application/json"};this._bookmarksEtag&&(t["If-Match"]=this._bookmarksEtag);var n=this,r=JSON.stringify({bookmarks:c(this._bookmarks)});this._service.invoke("PUT",this._bookmarksURL,t,r,undefined,function(t,r){if(t)return e(t);var i=r.statusCode;!r.headers.etag||i!==200&&i!==201&&i!==204?i===409||i===412?n._pullBookmarks(function(t,r,i){if(t)return e
(t);n._mergeBookmarks(r,i),n._pushBookmarks(e)}):e("Unexpected response updating bookmarks: "+i):e(null,r.headers.etag)})},f.prototype._commit=function(e){i.log("Commiting bookmarks");var t=this;this._lock.obtain(function(){t._saveBookmarks(function(n){t._lock.release();if(n){t._collection._reportCommitError(n);return}e&&t.sync(function(e){e&&t._collection._reportSyncError(e)})})})},f.prototype._sync=function(e){var t=this;this._bookmarksBase?t._pushBookmarks(function(n,r){if(n)return e(n);t._bookmarksEtag=
r,t._bookmarksBase=undefined,t._commit(),e(null)}):t._pullBookmarks(function(n,r,i){if(n)return e(n);r&&(t._bookmarks=r,t._bookmarksEtag=i,t._bookmarksBase=undefined,t._commit()),e(null)})},f.prototype._createBase=function(){this._bookmarksBase||(this._bookmarksBase=this._bookmarks.slice())},f.prototype.load=function(e){i.log("Loading bookmarks");var t=this;this._lock.obtain(function(){t._loadBookmarks(function(n){t._lock.release(),e(n)})})},f.prototype.sync=function(e){i.log("Syncing bookmarks")
;var t=this;this._lock.obtain(function(){t._syncModified=!1,t._sync(function(n){t._lock.release();if(n)return n=a.getSyncError(n,null),e(n);e(null),t._syncModified&&t._collection._notifyChange(!0)})})},f.prototype.createBookmark=function(e,t,n){if(s.SHARED_LOCAL_STORAGE){i.storageInterface.createBookmark(this._collection,e,t,n);return}i.log("Creating bookmark: "+e+" url: "+t);var o=this;this._lock.obtain(function(){var i=l(o._bookmarks,e),u=!1;i||(o._createBase(),i=new r(e,t),o._bookmarks.push(i)
,u=!0),o._lock.release(),n(null,i,u),u&&(o._commit(s.SYNCING_ENABLED),o._collection._notifyChange(!0))})},f.prototype.removeBookmark=function(e,t){if(s.SHARED_LOCAL_STORAGE){i.storageInterface.removeBookmark(this._collection,e,t);return}i.log("Removing bookmark: "+e.id+" url: "+e.id);var n=this;this._lock.obtain(function(){e=l(n._bookmarks,e.id),e&&(n._createBase(),n._bookmarks.splice(n._bookmarks.indexOf(e),1)),n._lock.release(),t(null),e&&(n._commit(s.SYNCING_ENABLED),n._collection._notifyChange
(!0))})},f.prototype.getBookmarks=function(){return this._bookmarks.slice()},Object.freeze(f),Object.seal(f.prototype),f}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/AdobeLibraryCollection",["require","exports","module","./components/dcx-js/src/AdobeDCXError","./AdobeLibraryFolder","./AdobeLibraryServices","./AdobeLibraryConfig","./AdobeLibrarySyncManager","./AdobeLibraryBookmarkManager","./AdobeLibraryAnalytics","./AdobeLibraryError","./AdobeLibraryLocalisation","./utils/AdobeLibraryAsyncJoin"
,"./utils/AdobeLibraryFileUtils","./utils/AdobeLibraryManifestUtils","./utils/AdobeLibraryErrorUtils","./utils/AdobeLibrarySyncUtils","./utils/AdobeLibraryGeneralUtils","./utils/AdobeLibraryRenditionUtils","./utils/AdobeLibraryListenerManager"],function(e,t,n){"use strict";function w(e){this._rootDir=o.ROOT_DIR,this._userId=e.USER_ID,this._cloudId=e.CLOUD_ID,this._cloudInfo=e.CLOUD_INFO||{},this._syncManager=new u(this,e),this._libraries=[],this._syncState="syncing",this._syncProgressMap={},this.
_externalLinkDownloadProgressMap={},this._initialSyncInProgress=!1,this._syncErrors=[],this._listenerManager=new b(["change","deepchange","sync","commitError"]),this._libraryIdMap={},this._pendingDeletes=[],this._loaded=!1,this._syncing=!1,this._lastSyncTime=0,this._pendingSyncs=[],this._backoffTicks=0,this._numBackoffs=0,this._numRetries=0,this.isPublic||(this._bookmarkManager=new a(this))}var r=e("./components/dcx-js/src/AdobeDCXError"),i=e("./AdobeLibraryFolder"),s=e("./AdobeLibraryServices"),
o=e("./AdobeLibraryConfig"),u=e("./AdobeLibrarySyncManager"),a=e("./AdobeLibraryBookmarkManager"),f=e("./AdobeLibraryAnalytics"),l=e("./AdobeLibraryError"),c=e("./AdobeLibraryLocalisation"),h=e("./utils/AdobeLibraryAsyncJoin"),p=e("./utils/AdobeLibraryFileUtils"),d=e("./utils/AdobeLibraryManifestUtils"),v=e("./utils/AdobeLibraryErrorUtils"),m=e("./utils/AdobeLibrarySyncUtils"),g=e("./utils/AdobeLibraryGeneralUtils"),y=e("./utils/AdobeLibraryRenditionUtils"),b=e("./utils/AdobeLibraryListenerManager"
);return w.prototype._removeAllListeners=function(){this._listenerManager.removeAll(),this._libraries.forEach(function(e){e._removeAllListeners()})},w.prototype._notifyChange=function(e){this._listenerManager.notify("deepchange"),e&&this._listenerManager.notify("change")},w.prototype._load=function(e){if(this._loaded){e(null);return}this._loaded=!0;var t=this;p.readLibraryDirectory(this,function(n,r){function o(e,n){if(d.validateLibraryId(e,t.isPublic)){var r=t._getCompositeDir(e);s.dcx.newCompositeFromLocalStorage
(r,function(r,o){if(r){s.log("Load error: DCX error loading composite for "+e),n(v.getCommitError(r,e));return}if(!o||!o.current){s.log("Load error: composite/branch not loaded for "+e),p.deleteLibraryFromDisk(t,e),n(null);return}if(!d.validateLibrary(o)){s.log("Load error: failed validation for "+e),n(null);return}if(!t.isPublic&&o.id!==e){s.log("Load error: library id "+o.id+"doesn't match folder on disk "+e),n(null);return}var u=new i(t,o);t.isPublic&&(u._publicId=e,u._writable=!1),o.current.compositeState==="pendingDelete"?
(t._pendingDeletes.push(u),n(null)):(t._libraries.push(u),t._libraryIdMap[u.id]=u,u._loadRenditionCache(n))})}else n(null)}if(n||!r){e(null);return}var u=new h;r.forEach(function(e){u.addOperation(o,[e])}),t.isPublic||u.addOperation(t._bookmarkManager.load,[],t._bookmarkManager),u.run(function(n){s.log("Loaded "+t._libraries.length+" libraries and "+t._pendingDeletes.length+" pending deletes"),e(null)},function(e){t._reportCommitError(e)})})},w.prototype._removeFromPendingDeletes=function(e){var t=
this._pendingDeletes.indexOf(e);t!==-1&&this._pendingDeletes.splice(t,1)},w.prototype._handlePendingDeletes=function(e){var t=this,n=new h;this._pendingDeletes.forEach(function(e){n.addOperation(function(n){e._deleteFromServer(!1,function(i){if(i&&i.code===r.UPDATE_CONFLICT){t._removeFromPendingDeletes(e),t._libraries.push(e),t._libraryIdMap[e.id]=e,e._markDeletedLocally(!1),t._updateSyncState(),t._notifyChange(!0),n(null,!0);return}if(i){n(i);return}t._removeFromPendingDeletes(e),e._deletedFromDisk=!0
,p.deleteLibraryFromDisk(t,e.id,function(e){n(e,!0)})})})}),n.run(e)},w.prototype._doesLibraryExist=function(e){if(this._libraryIdMap[e])return!0;var t;for(t=0;t<this._pendingDeletes.length;t++)if(this._pendingDeletes[t].id===e)return!0;return!1},w.prototype._syncNewLibrary=function(e,t,n,o){var u=this,a=t||this._syncManager.getCompositePath(e),f=s.hasFileSystem()&&this._getCompositeDir(e),c=s.dcx.newCompositeWithHref(a,f);u._libraryIdMap[e]="pending",u._updateSyncState(),u._syncManager.pullComposite
(c,u,function(t,s){if(t||!s){delete u._libraryIdMap[e],u._updateSyncState(),t?t.code===r.NO_COMPOSITE||t.code===r.DELETED_COMPOSITE?t=null:t=v.getSyncError(t,e):t=new l(l.NETWORK_ERROR,"No pulled branch"),o(t,!0);return}c.resolvePullWithBranch(s,function(t){if(t||!u.isPublic&&c.id!==e){delete u._libraryIdMap[e],u._updateSyncState(),t=t?v.getCommitError(t,e):new l(l.CORRUPTED_LIBRARY,"Library id does not match sync group id"),o(t,!0);return}var r=new i(u,c);u.isPublic&&(r._publicId=e,r._writable=!1
),u._libraries.push(r),u._libraryIdMap[r.id]=r,u._updateSyncState(),r._setCollaboration(n),y.prefetchRenditions(r),u._notifyChange(!0),o(null,!0)})})},w.prototype._syncNewLibraries=function(e,t){var n=this,r=new h;if(this._loadingHint){var i=[];e.forEach(function(e){n._loadingHint.indexOf(e.name)!==-1&&i.push(e)}),e.forEach(function(e){n._loadingHint.indexOf(e.name)===-1&&i.push(e)}),e=i}e.forEach(function(e){var t=e.name;if(n._doesLibraryExist(e.name))return;r.addOperation(n._syncNewLibrary,[t,undefined
,e],n)}),r.run(t)},w.prototype._syncExistingLibraries=function(e,t){var n=this,r=new h;this._libraries.forEach(function(t){var i=e&&e[t.id];i&&(t._setCollaboration(i),t._deletedFromServer&&(t._deletedFromServer=!1,t._notifyChange()));var s=!e||i&&i.isUnmodified;t.collaboration===undefined?r.addOperation(t._sync,[s],t):s?r.addOperation(function(e){n._syncManager.hasCompositeChangedOnServer(t._dcxComposite,function(n){t._sync(!n,e)})}):r.addOperation(t._sync,[!1],t)}),r.run(t)},w.prototype._dosync=
function(e){var t=this;this._clearSyncErrors(),this._syncManager.getServerComposites(function(n,r,i){if(n){n=v.getSyncError(n,undefined,{403:l.ACCESS_DENIED}),t._reportSyncError(n),e(null,!1);return}var s=new h;s.addOperation(t._syncNewLibraries,[r],t),s.addOperation(t._syncExistingLibraries,[i],t),s.addOperation(t._handlePendingDeletes,[],t),s.addOperation(t._bookmarkManager.sync,[],t._bookmarkManager),s.run(function(t,n){e(null,n)},function(e){t._reportSyncError(e)})})},w.prototype._reportSyncError=
function(e){e&&(s.log("Sync error: "+v.errorToString(e)),this._syncErrors.push(e))},w.prototype._clearSyncErrors=function(e){if(e){var t=[];this._syncErrors.forEach(function(n){n.libraryId!==e&&t.push(n)}),this._syncErrors=t}else this._syncErrors=[]},w.prototype._reportCommitError=function(e){this._lastCommitError=e,e&&(s.log("Commit error: "+v.errorToString(e)),this._listenerManager.notify("commitError",[e]))},w.prototype._updateRetryState=function(){if(this._retryTimeoutId)return;if(this._syncState==="syncing"
)return;if(this._syncState==="error"){var e=this.getPrimarySyncError();if(e&&e.code===l.RETRYABLE_SERVER_ERROR){this._numRetries++;if(this._numRetries>o.ERROR_RETRY_INTERVALS.length){this._retryTime="never",s.log("Retry Failed"),o.MAX_SYNC_INTERVAL=o.RETRY_FAIL_MAX_SYNC_INTERVAL;return}s.log("Retry "+this._numRetries);var t=e.underlyingError&&e.underlyingError.response&&e.underlyingError.response.headers,n=m.getRetryAfterHeader(t)*1e3;n>0?(this._numRetries=o.ERROR_RETRY_INTERVALS.length,s.log("Got Retry-After header"
)):n=o.ERROR_RETRY_INTERVALS[this._numRetries-1]*1e3,s.log("Retrying after "+n+"ms"),this._retryTime=(new Date).valueOf()+n;var r=this;this._retryTimeoutId=setTimeout(function(){r._retryTimeoutId=undefined,r._retryTime=undefined,s.log("Starting retry"),r._syncWithParameters(!1)},n);return}if(e&&e.code===l.EXCEEDS_QUOTA){o.MAX_SYNC_INTERVAL=o.RETRY_FAIL_MAX_SYNC_INTERVAL,this._numRetries=o.ERROR_RETRY_INTERVALS.length+1,this._retryTime="never";return}}this._numRetries=0,this._retryTime=undefined},
w.prototype._updateSyncState=function(){var e=this,t=this._initialSyncInProgress;Object.keys(this._libraryIdMap).forEach(function(n){var r=e._libraryIdMap[n],i=r==="pending"||r._isSyncing();t=t||i});var n;t?n="syncing":(this._syncErrors.length>0?(n="error",e._syncManager.clearSyncGroupCache(),f.reportError(this.getPrimarySyncError())):n="ok",this._syncProgressMap={},this._syncProgress=undefined);var r=this._syncState;this._syncState=n,this._updateRetryState(),(r!==n||this._syncState==="error")&&this
._listenerManager.notify("sync"),e._ensureDefaultLibrary()},w.prototype._updateProgress=function(e,t,n){n?this._syncProgressMap[e]={bytesLoaded:t||0,bytesTotal:n}:this._syncProgressMap[e]?(this._syncProgressMap[e].bytesTotal===0&&(this._syncProgressMap[e].bytesTotal=1e4),this._syncProgressMap[e].bytesLoaded=this._syncProgressMap[e].bytesTotal):this._syncProgressMap[e]={bytesLoaded:0,bytesTotal:0};var r=!1,i=t||0,s=n||0,o=s>0?Math.max(0,Math.min(100,Math.round(i/n*100))):undefined;this._syncProgressMap
[e].progress!==o&&(this._syncProgressMap[e].progress=o,r=!0);var u=0,a=0,f=0,l=0,c=this._syncProgressMap;Object.keys(c).forEach(function(e){u++,c[e].bytesTotal>0&&a++,f+=c[e].bytesLoaded,l+=c[e].bytesTotal});var h=l>0?f*a/(l*u):0,p=Math.max(0,Math.min(100,Math.round(h*100)));if(!this._syncProgress||this._syncProgress<p||this._syncProgress===100&&p<100)this._syncProgress=p,r=!0;r&&this._listenerManager.notify("sync")},w.prototype._updateExternalLinkDownloadProgress=function(e,t,n,r){var i=e.element
.library.id+"."+e.element.id+"."+e.id,s;n?(t=t||0,s=Math.max(0,Math.min(100,Math.round(t/n*100)))):r&&(s=-1),s!==this._externalLinkDownloadProgressMap[i]&&(s===undefined?delete this._externalLinkDownloadProgressMap[i]:this._externalLinkDownloadProgressMap[i]=s,this._listenerManager.notify("sync"))},w.prototype._getExternalLinkDownloadProgress=function(e){var t=e.element.library.id+"."+e.element.id+"."+e.id;return this._externalLinkDownloadProgressMap[t]},w.prototype._setInitialSyncState=function(
e,t){this._initialSyncInProgress=e,this._loadingHint=t,this._updateSyncState()},w.prototype._resetPollBackoff=function(){this._backoffTicks=0,this._numBackoffs=0},w.prototype._getBaseDir=function(){var e=s.getPathSeparator(),t=this._userId.replace(/@/g,"_"),n=this._rootDir+e+t;return this._isPublic&&t!==o.PUBLIC_USER_ID&&(n+=e+o.PUBLIC_USER_ID),n+e+this._cloudId},w.prototype._getCompositeDir=function(e){var t=s.getPathSeparator(),n=this._getBaseDir()+t+"dcx";return e&&(n+=t+e),n},w.prototype._getTempDir=
function(){var e=s.getPathSeparator();return this._getBaseDir()+e+".tmp"},w.prototype._getRenditionCacheDir=function(e){var t=s.getPathSeparator(),n=this._getBaseDir()+t+"renditions";return e&&(n+=t+e),n},w.prototype._ensureDefaultLibrary=function(){var e=this.syncState==="ok"&&!this.isInitialSyncInProgress&&o.SYNCING_ENABLED,t=0;this.libraries.forEach(function(e){!e.isDeletedLocally&&!e.isDeletedFromServer&&t++});if(!this.isPublic&&e&&t===0){var n=c.translate("LIBS_DEFAULT_LIBRARY_NAME");s.log("Creating default library: "+
n),this.createLibrary(n)}},w.prototype._doRemoveLibrary=function(e,t){var n=this,r=g.wrapCallback(t),i=this._libraries.indexOf(e);i!==-1&&(this._libraries.splice(i,1),delete this._libraryIdMap[e.id]),e._removeAllListeners(),o.SHARED_LOCAL_STORAGE?(e._dcxBranch.compositeState="pendingDelete",e._commit(!1,!0),e._markDeletedLocally(!0),r(null)):(n._pendingDeletes.push(e),o.SYNCING_ENABLED?e._deleteFromServer(!0,function(t){e._markDeletedLocally(!0);if(t){r(null);return}n._removeFromPendingDeletes(e)
,e._deletedFromDisk=!0,p.deleteLibraryFromDisk(n,e.id,r)}):(e._dcxBranch.compositeState="pendingDelete",e._commit(!0,!0),e._markDeletedLocally(!0),r(null))),this._notifyChange(!0)},Object.defineProperties(w.prototype,{libraries:{get:function(){return this._libraries},set:function(){throw new l(l.READ_ONLY,"Cannot modify libraries list directly")}},commitError:{get:function(){return this._lastCommitError},set:function(){throw new l(l.READ_ONLY,"commitError is a read-only property")}},syncState:{get
:function(){return this._syncState},set:function(){throw new l(l.READ_ONLY,"syncState is a read-only property")}},syncErrors:{get:function(){return this._syncErrors},set:function(){throw new l(l.READ_ONLY,"syncErrors is a read-only property")}},syncProgress:{get:function(){return this._syncProgress},set:function(){throw new l(l.READ_ONLY,"syncProgress is a read-only property")}},isInitialSyncInProgress:{get:function(){return this._initialSyncInProgress},set:function(){throw new l(l.READ_ONLY,"isInitialSyncInProgress is a read-only property"
)}},isPolling:{get:function(){return this._pollTimerId!==undefined},set:function(){throw new l(l.READ_ONLY,"isPolling is a read-only property")}},isLoggedIn:{get:function(){return o.SHARED_LOCAL_STORAGE?undefined:this._syncManager.isLoggedIn()},set:function(){throw new l(l.READ_ONLY,"isLoggedIn is a read-only property")}},retryTime:{get:function(){if(this._retryTime!=="never")return this._retryTime},set:function(){throw new l(l.READ_ONLY,"retryTime is a read-only property")}},userId:{get:function(
){return this._userId},set:function(){throw new l(l.READ_ONLY,"userId is a read-only property")}},cloudId:{get:function(){return this._cloudId},set:function(){throw new l(l.READ_ONLY,"cloudId is a read-only property")}},cloudInfo:{get:function(){return this._cloudInfo},set:function(){throw new l(l.READ_ONLY,"cloudInfo is a read-only property")}},isPublic:{get:function(){return!1},set:function(){throw new l(l.READ_ONLY,"isPublic is a read-only property")}},bookmarks:{get:function(){return this._bookmarkManager
.getBookmarks()},set:function(){throw new l(l.READ_ONLY,"bookmarks is a read-only property")}}}),w.prototype.addChangeListener=function(e){this._listenerManager.add("change",e)},w.prototype.removeChangeListener=function(e){this._listenerManager.remove("change",e)},w.prototype.addDeepChangeListener=function(e){this._listenerManager.add("deepchange",e)},w.prototype.removeDeepChangeListener=function(e){this._listenerManager.remove("deepchange",e)},w.prototype.createLibrary=function(e){var t=s.uuid()
,n=o.COMPOSITE_TYPE,r=this._getCompositeDir(t),u=s.dcx.newEmptyComposite(e,n,r,t);u.current.rootNode.setValue(o.VERSION_KEY,o.VERSION),this._syncManager.prepareCompositeForPush(u);var a=new i(this,u);return a._updateCreatedTime(),this._libraries.push(a),this._libraryIdMap[a.id]=a,this._notifyChange(!0),a._commit(!1,!0),f.reportCreateLibrary(a),a},w.prototype.removeLibrary=function(e,t){this._doRemoveLibrary(e,t),f.reportDeleteLibrary(e)},w.prototype.removeDeletedLibraries=function(e,t){function s
(e,t){var r=n._libraries.indexOf(e);r!==-1&&(n._libraries.splice(r,1),delete n._libraryIdMap[e.id]),e._deletedFromDisk=!0,p.deleteLibraryFromDisk(n,e.id,t),e._markDeletedLocally(!0)}var n=this,r=g.wrapCallback(t);typeof e=="function"&&(r=e,e=undefined);var i=e&&e.exclude||[],o=new h,u=!1;this._libraries.forEach(function(e){if(e.isDeletedFromServer){var t=!0;i.forEach(function(n){t=t&&e!==n}),t&&(u=!0,o.addOperation(s,[e]))}}),o.run(function(e){u&&n._notifyChange(!0),r(e)})},w.prototype.sync=function(
e){this._syncWithParameters(!1,!1,e)},w.prototype.syncFull=function(e){this._syncManager.clearSyncGroupCache(),this._syncWithParameters(!1,!1,e)},w.prototype.syncBookmarks=function(e){var t=function(t){e&&e(t)};this._bookmarkManager.sync(t)},w.prototype._syncWithParameters=function(e,t,n){var r=this,i=function(){n&&n(null)};if(o.SHARED_LOCAL_STORAGE){s.storageInterface.sync(this),i();return}if(!o.SYNCING_ENABLED){i();return}if(this._retryTimeoutId){i();return}e||this._resetPollBackoff();if(this.isPolling
){if(this._syncing){i();return}}else if(this._syncing){r._pendingSyncs.push(i);return}var u=(new Date).valueOf();if(u<this._lastSyncTime+o.MAX_SYNC_INTERVAL){if(!t){setTimeout(function(){r._syncWithParameters(e,!0,i)},o.MAX_SYNC_INTERVAL);return}i();return}s.log("Start Sync: "+this.cloudId+(e?" [polling]":"")),this._syncing=!0,this._lastSyncTime=(new Date).valueOf(),this._dosync(function(e,t){r._syncing=!1,r._updateSyncState(),s.log("End Sync: "+r.cloudId),t&&(r._backoffTicks=0,r._numBackoffs=0);
if(r._pendingSyncs.length>0){var n=r._pendingSyncs;r._pendingSyncs=[],r.sync(function(){n.forEach(function(e){e()})})}i()})},w.prototype.addSyncListener=function(e){this._listenerManager.add("sync",e)},w.prototype.removeSyncListener=function(e){this._listenerManager.remove("sync",e)},w.prototype.getPrimarySyncError=function(){var e=this._syncErrors[0];return this._syncErrors.forEach(function(t){var n=v.getErrorPriority(t),r=v.getErrorPriority(e);n>r?e=t:n===r&&e.code===t.code&&e.libraryId!==t.libraryId&&
(e=new l(e.code,"multiple errors (see libraryCollection.syncErrors)",undefined))}),e},w.prototype.getNewLibrarySyncProgress=function(){var e=this;if(this._newLibraryProgress)return this._newLibraryProgress;var t=[];return Object.keys(this._libraryIdMap).forEach(function(n){e._libraryIdMap[n]==="pending"&&t.push({id:n,progress:e._syncProgressMap[n]&&e._syncProgressMap[n].progress})}),t},w.prototype.addCommitErrorListener=function(e){this._listenerManager.add("commitError",e)},w.prototype.removeCommitErrorListener=
function(e){this._listenerManager.remove("commitError",e)},w.prototype.startPolling=function(){if(o.SHARED_LOCAL_STORAGE)throw new l(l.NOT_SUPPORTED,"startPolling() not supported with shared local storage");if(!this.isPolling){var e=this,t=o.POLL_INTERVAL*6e4;this._pollTimerId=setInterval(function(){if(e._retryTime==="never")return;if(e._backoffTicks>0){e._backoffTicks--;return}e._backoffTicks===0&&(e._numBackoffs++,e._backoffTicks=m.getBackoffTicks(e._numBackoffs)),e._syncWithParameters(!0)},t)}
},w.prototype.stopPolling=function(){if(o.SHARED_LOCAL_STORAGE)throw new l(l.NOT_SUPPORTED,"stopPolling() not supported with shared local storage");this.isPolling&&(clearInterval(this._pollTimerId),delete this._pollTimerId),this._retryTimeoutId&&(clearTimeout(this._retryTimeoutId),delete this._retryTimeoutId)},w.prototype.createBookmark=function(e,t,n){this._bookmarkManager.createBookmark(e,t,n)},w.prototype.removeBookmark=function(e,t){this._bookmarkManager.removeBookmark(e,t)},w.prototype.findBookmark=
function(e){var t;return this.bookmarks&&this.bookmarks.some(function(n){if(n.url===e._dcxComposite.href)return t=n,!0}),t},w.prototype.getDefaultLibrary=function(){var e;return this.libraries.forEach(function(t){t.collaboration!=="incoming"&&(!e||(e.created||0)>(t.created||0))&&(e=t)}),e},w.prototype.getLibraryById=function(e){var t;return this.libraries.forEach(function(n){n.id===e&&(t=n)}),t},w.prototype.updateAccessToken=function(e){if(o.SHARED_LOCAL_STORAGE)throw new l(l.NOT_SUPPORTED,"updateAccessToken() not supported with shared local storage"
);this._syncManager.updateAccessToken(e),s.log("Update access token: "+e?"defined":"undefined")},w.prototype.getTempDir=function(e){if(!s.hasFileSystem()){e(new l(l.REQUIRES_FILESYSTEM,"getTempDir only supported when you have a filesystem"));return}var t=this._getTempDir();p.ensurePathExists(t,function(n){e(n,t)})},Object.freeze(w),Object.seal(w.prototype),w}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/AdobeLibraryPublicCollection",["require","exports","module","./AdobeLibraryCollection"
,"./AdobeLibraryError","./AdobeLibraryConfig","./AdobeLibraryServices","./utils/AdobeLibraryAsyncJoin","./utils/AdobeLibraryFileUtils"],function(e,t,n){"use strict";function f(e){e.IS_PUBLIC=!0,e.USER_ID=e.USER_ID||s.PUBLIC_USER_ID,this._newLibrariesLoading={},r.call(this,e)}var r=e("./AdobeLibraryCollection"),i=e("./AdobeLibraryError"),s=e("./AdobeLibraryConfig"),o=e("./AdobeLibraryServices"),u=e("./utils/AdobeLibraryAsyncJoin"),a=e("./utils/AdobeLibraryFileUtils");return Object.keys(r.prototype
).forEach(function(e){e.indexOf("_")===0&&(f.prototype[e]=r.prototype[e])}),f.prototype._dosync=function(e){var t=this;this._clearSyncErrors();var n=new u;this._libraries.forEach(function(e){n.addOperation(function(n){t._syncManager.hasCompositeChangedOnServer(e._dcxComposite,function(t){e._sync(!t,n)})})}),n.run(function(t,n){e(null,n)},function(e){t._reportSyncError(e)})},Object.defineProperties(f.prototype,{libraries:{get:function(){return this._libraries},set:function(){throw new i(i.READ_ONLY
,"Cannot modify libraries list directly")}},commitError:{get:function(){return this._lastCommitError},set:function(){throw new i(i.READ_ONLY,"commitError is a read-only property")}},syncState:{get:function(){return this._syncState},set:function(){throw new i(i.READ_ONLY,"syncState is a read-only property")}},syncErrors:{get:function(){return this._syncErrors},set:function(){throw new i(i.READ_ONLY,"syncErrors is a read-only property")}},syncProgress:{get:function(){return this._syncProgress},set:
function(){throw new i(i.READ_ONLY,"syncProgress is a read-only property")}},isPolling:{get:function(){return this._pollTimerId!==undefined},set:function(){throw new i(i.READ_ONLY,"isPolling is a read-only property")}},retryTime:{get:function(){if(this._retryTime!=="never")return this._retryTime},set:function(){throw new i(i.READ_ONLY,"retryTime is a read-only property")}},userId:{get:function(){return this._userId},set:function(){throw new i(i.READ_ONLY,"userId is a read-only property")}},cloudId
:{get:function(){return this._cloudId},set:function(){throw new i(i.READ_ONLY,"cloudId is a read-only property")}},cloudInfo:{get:function(){return this._cloudInfo},set:function(){throw new i(i.READ_ONLY,"cloudInfo is a read-only property")}},isPublic:{get:function(){return!0},set:function(){throw new i(i.READ_ONLY,"isPublic is a read-only property")}}}),f.prototype.addChangeListener=function(e){r.prototype.addChangeListener.call(this,e)},f.prototype.removeChangeListener=function(e){r.prototype.removeChangeListener
.call(this,e)},f.prototype.addDeepChangeListener=function(e){r.prototype.addDeepChangeListener.call(this,e)},f.prototype.removeDeepChangeListener=function(e){r.prototype.removeDeepChangeListener.call(this,e)},f.prototype.canLoadLibrary=function(e){var t=new RegExp(this._syncManager.getSyncGroupPath()+"/(.+)");return e.match(t)?!0:!1},f.prototype.loadLibrary=function(e,t,n){function f(t,n){var i=r._newLibrariesLoading[e];delete r._newLibrariesLoading[e],i.forEach(function(e){e(t,n)})}var r=this,u=
this.getLibraryById(e);if(u){n(null,u);return}if(t&&!this.canLoadLibrary(t)){n(new i(i.INVALID_PARAMETER,"Invalid library url"));return}var a=this._newLibrariesLoading[e];if(a){a.push(n);return}this._newLibrariesLoading[e]=[n];if(s.SHARED_LOCAL_STORAGE){o.storageInterface.loadPublicLibrary(this,e,t,f);return}this._syncNewLibrary(e,t,undefined,function(t){if(t){f(t);return}u=r.getLibraryById(e),u&&(u._loadedExternally=!0),f(null,u)})},f.prototype.unloadLibrary=function(e,t){var n=this._libraries.indexOf
(e);if(n===-1){t(null);return}this._libraries.splice(n,1),delete this._libraryIdMap[e.id],e._markDeletedLocally(!0),s.SHARED_LOCAL_STORAGE?o.storageInterface.unloadPublicLibrary(e,t):(e._deletedFromDisk=!0,a.deleteLibraryFromDisk(this,e.id,t)),this._listenerManager.notify("change")},f.prototype.removeDeletedLibraries=function(e,t){r.prototype.removeDeletedLibraries.call(this,e,t)},f.prototype.sync=function(e){r.prototype.sync.call(this,e)},f.prototype.addSyncListener=function(e){r.prototype.addSyncListener
.call(this,e)},f.prototype.removeSyncListener=function(e){r.prototype.removeSyncListener.call(this,e)},f.prototype.getPrimarySyncError=function(){return r.prototype.getPrimarySyncError.call(this)},f.prototype.getNewLibrarySyncProgress=function(){return r.prototype.getNewLibrarySyncProgress.call(this)},f.prototype.addCommitErrorListener=function(e){r.prototype.addCommitErrorListener.call(this,e)},f.prototype.removeCommitErrorListener=function(e){r.prototype.removeCommitErrorListener.call(this,e)},
f.prototype.startPolling=function(){r.prototype.startPolling.call(this)},f.prototype.stopPolling=function(){r.prototype.stopPolling.call(this)},f.prototype.getLibraryById=function(e){return r.prototype.getLibraryById.call(this,e)},f.prototype.getTempDir=function(e){r.prototype.getTempDir.call(this,e)},Object.freeze(f),Object.seal(f.prototype),f}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/AdobeLibraryCollectionManager",["require","exports","module","./utils/AdobeLibraryListenerManager"
],function(e,t,n){"use strict";function i(){this._collections=[],this._listenerManager=new r(["change"])}var r=e("./utils/AdobeLibraryListenerManager");return i.prototype.getLibraryCollection=function(e,t){var n;return this._collections.forEach(function(r){!r.isPublic&&r.userId===e&&r.cloudId===t&&(n=r)}),n},i.prototype.getPublicLibraryCollection=function(e){var t;return this._collections.forEach(function(n){n.isPublic&&n.cloudId===e&&(t=n)}),t},i.prototype.addLibraryCollection=function(e){this._collections
.push(e),this._listenerManager.notify("change")},i.prototype.removeLibraryCollection=function(e){var t=this._collections.indexOf(e);t!==-1&&(this._collections.splice(t,1),this._listenerManager.notify("change"))},i.prototype.removeAllLibraryCollections=function(){this._collections=[],this._listenerManager.notify("change")},i.prototype.getLoadedCollections=function(){return this._collections},i.prototype.addLoadedCollectionsListener=function(e){this._listenerManager.add("change",e)},i.prototype.removeLoadedCollectionsListener=
function(e){this._listenerManager.remove("change",e)},Object.freeze(i),Object.seal(i.prototype),i}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/AdobeLibraryMessageChannel",["require","exports","module","./AdobeLibraryServices","./utils/AdobeLibraryListenerManager"],function(e,t,n){"use strict";function s(e){this._socket=e,this._listenerManager=new i,this._socketListenerManager=new i,this._pendingWriteState={},this._pendingWriteDependencyMap={},this._init()}function o(e)
{return e+"_req"}function u(e){return e+"_res"}function a(e,t,n){return e+"#"+t+"#"+n}var r=e("./AdobeLibraryServices"),i=e("./utils/AdobeLibraryListenerManager");return s.prototype._init=function(){var e=this;this._addSocketListener("message",function(t){var n=JSON.parse(t);e._logReceive(n.type),e._listenerManager.notify(n.type,[n.data])})},s.prototype._addSocketListener=function(e,t){this._socketListenerManager.add(e,t),this._socket.addListener(e,t)},s.prototype._removeSocketListeners=function(
){var e=this;this._socketListenerManager.forEach(function(t,n){e._socket.removeListener(t,n)}),this._socketListenerManager.removeAll()},s.prototype._logSend=function(e){this._logCallback&&this._logCallback("SEND "+e)},s.prototype._logReceive=function(e){this._logCallback&&this._logCallback("RECEIVE "+e)},s.prototype._logError=function(e){this._logCallback&&this._logCallback("ERROR "+e)},s.prototype.setPendingWriteState=function(e,t,n){var r=a(e,t,n);this._pendingWriteState[r]=!0},s.prototype.setPendingWriteDependency=
function(e,t,n,r,i,s){var o=a(e,t,n),u=a(r,i,s);o!==u&&(this._pendingWriteDependencyMap[o]=this._pendingWriteDependencyMap[o]||{},this._pendingWriteDependencyMap[o][u]={userId:r,cloudId:i,id:s})},s.prototype.clearPendingWriteState=function(e,t,n){var r=a(e,t,n),i=[];return Object.keys(this._pendingWriteDependencyMap[r]||{}).forEach(function(e){i.push(this._pendingWriteDependencyMap[r][e])},this),delete this._pendingWriteState[r],delete this._pendingWriteDependencyMap[r],i},s.prototype.getPendingWriteState=
function(e,t,n,r){var i=a(e,t,n),s=!1;return!r&&this._pendingWriteState[i]&&(s=this._pendingWriteState[i]),Object.keys(this._pendingWriteDependencyMap).forEach(function(e){var t=this._pendingWriteDependencyMap[e];t[i]&&(s=this._pendingWriteState[e]||s)},this),s},s.prototype.setLogCallback=function(e){this._logCallback=e},s.prototype.addListener=function(e,t){this._listenerManager.add(e,t)},s.prototype.removeListener=function(e,t){this._listenerManager.remove(e,t)},s.prototype.send=function(e,t){try{
this._logSend(e),this._socket.send(JSON.stringify({type:e,data:t}))}catch(n){this._logError(n),this._socketListenerManager.notify("error",[n])}},s.prototype.addCallListener=function(e,t){var n=this;this.addListener(o(e),function(r){var i=r.id;t(r.data,function(t){n.send(u(e),{id:i,data:t})})})},s.prototype.removeCallListener=function(e,t){this.removeListener(o(e),t)},s.prototype.call=function(e,t,n){var i=this,s=r.uuid(),a=function(t){t.id===s&&(i.removeListener(u(e),a),n(t.data))};this.addListener
(u(e),a),this.send(o(e),{id:s,data:t})},s.prototype.onOpen=function(e){this._addSocketListener("open",e)},s.prototype.onClose=function(e){this._addSocketListener("close",e)},s.prototype.onError=function(e){this._addSocketListener("error",e)},s.prototype.shutdown=function(){var e=this;this._addSocketListener("close",function(){e._removeSocketListeners(),e._listenerManager.removeAll()}),this._socket.close()},Object.freeze(s),Object.seal(s.prototype),s}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/AdobeLibraryWebSocket"
,["require","exports","module","./AdobeLibraryConfig","./utils/AdobeLibraryListenerManager"],function(e,t,n){"use strict";function s(e,t){var n="ws://127.0.0.1:"+e+"/?version="+r.SHARED_LOCAL_STORAGE_VERSION;t&&(n+="&token="+t),this._socket=new WebSocket(n),this._socket.onopen=this._onSocketOpen.bind(this),this._socket.onclose=this._onSocketClose.bind(this),this._socket.onmessage=this._onSocketMessage.bind(this),this._socket.onerror=this._onSocketError.bind(this),this._listenerManager=new i(["open"
,"close","message","error"])}var r=e("./AdobeLibraryConfig"),i=e("./utils/AdobeLibraryListenerManager");return s.prototype._onSocketOpen=function(e){this._listenerManager.notify("open")},s.prototype._onSocketClose=function(e){this._listenerManager.notify("close")},s.prototype._onSocketMessage=function(e){this._listenerManager.notify("message",[e.data])},s.prototype._onSocketError=function(e){this._listenerManager.notify("error",[e])},s.prototype.send=function(e){this._socket.send(e)},s.prototype.
addListener=function(e,t){this._listenerManager.add(e,t)},s.prototype.removeListener=function(e,t){this._listenerManager.remove(e,t)},s.prototype.close=function(){this._socket.close(),this._socket.onopen=undefined,this._socket.onclose=undefined,this._socket.onmessage=undefined,this._socket.onerror=undefined,this._listenerManager.removeAll()},Object.freeze(s),Object.seal(s.prototype),s}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/AdobeLibraryStorageInterfaceFS",["require"
,"exports","module","./AdobeLibraryError","./utils/AdobeLibraryGeneralUtils"],function(e,t,n){"use strict";function o(e){this._storageInterface=e}var r=e("./AdobeLibraryError"),i=e("./utils/AdobeLibraryGeneralUtils"),s={rename:!0,renameSync:!1,ftruncate:!1,ftruncateSync:!1,truncate:!1,truncateSync:!1,chown:!1,chownSync:!1,fchown:!1,fchownSync:!1,lchown:!1,lchownSync:!1,chmod:!1,chmodSync:!1,fchmod:!1,fchmodSync:!1,lchmod:!1,lchmodSync:!1,stat:!0,lstat:!1,fstat:!1,statSync:!1,lstatSync:!1,fstatSync
:!1,link:!1,linkSync:!1,symlink:!1,symlinkSync:!1,readlink:!1,readlinkSync:!1,realpath:!1,realpathSync:!1,unlink:!0,unlinkSync:!1,rmdir:!0,rmdirSync:!1,mkdir:!0,mkdirSync:!1,readdir:!0,readdirSync:!1,close:!1,closeSync:!1,open:!1,openSync:!1,utimes:!0,utimesSync:!1,futimes:!1,futimesSync:!1,fsync:!1,fsyncSync:!1,write:!1,writeSync:!1,read:!1,readSync:!1,readFile:!0,readFileSync:!1,writeFile:!0,writeFileSync:!1,appendFile:!1,appendFileSync:!1,watchFile:!1,unwatchFile:!1,watch:!1,exists:!0,existsSync
:!1,createReadStream:!1,createWriteStream:!1};return o.prototype._fsCall=function(e,t,n){var r=i.wrapCallback(n),s={method:e,args:t};this._storageInterface._channel.call("fscall",s,function(e){r.apply(null,e)})},o.prototype._pipeCall=function(e,t,n,r){var s=i.wrapCallback(r),o={readStream:{path:e,options:t},writeStream:n};this._storageInterface._channel.call("fspipe",o,s)},Object.keys(s).forEach(function(e){s[e]?o.prototype[e]=function(){var t=Array.prototype.slice.call(arguments),n;typeof t[t.length-1
]=="function"&&(n=t.pop()),this._fsCall(e,t,n)}:o.prototype[e]=function(){var t=new r(r.NOT_IMPLEMENTED,e+" is not implemented in shared local storage"),n=arguments[arguments.length-1];if(typeof n=="function"){n(t);return}throw t}}),o.prototype.createReadStream=function(e,t){var n=this,r={};return r.on=function(e,t){r[e]=t},r.pipe=function(t,i){n._pipeCall(e,i,t,function(e){r[e.event]&&r[e.event].apply(null,e.args)})},r},o.prototype.createWriteStream=function(e,t){return{path:e,options:t}},Object
.freeze(o),Object.seal(o.prototype),o}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/AdobeLibraryStorageInterface",["require","exports","module","./components/dcx-js/src/AdobeDCXComposite","./components/dcx-js/src/AdobeDCXBranch","./AdobeLibraryCollection","./AdobeLibraryPublicCollection","./AdobeLibraryFolder","./AdobeLibraryBookmark","./AdobeLibraryError","./AdobeLibraryConfig","./AdobeLibraryServices","./AdobeLibraryMessageChannel","./AdobeLibraryWebSocket","./AdobeLibraryStorageInterfaceFS"
,"./utils/AdobeLibraryAsyncJoin","./utils/AdobeLibraryManifestUtils","./utils/AdobeLibraryRenditionUtils","./utils/AdobeLibraryGeneralUtils"],function(e,t,n){"use strict";function b(e){this._collectionManager=e,this._acceptPushedBranchListeners=[],this._downloadRenditionListeners=[],this._rootListeners=[],this._baseBranches={},this._pendingSetRenditionCache={},this._portDiagnosis="UNKNOWN",this._logIndex=0,l.SHARED_LOCAL_STORAGE&&(this._connect(),this.fs=new d(this),c.hasFileSystem()||c.setFileSystem
(this.fs))}var r=e("./components/dcx-js/src/AdobeDCXComposite"),i=e("./components/dcx-js/src/AdobeDCXBranch"),s=e("./AdobeLibraryCollection"),o=e("./AdobeLibraryPublicCollection"),u=e("./AdobeLibraryFolder"),a=e("./AdobeLibraryBookmark"),f=e("./AdobeLibraryError"),l=e("./AdobeLibraryConfig"),c=e("./AdobeLibraryServices"),h=e("./AdobeLibraryMessageChannel"),p=e("./AdobeLibraryWebSocket"),d=e("./AdobeLibraryStorageInterfaceFS"),v=e("./utils/AdobeLibraryAsyncJoin"),m=e("./utils/AdobeLibraryManifestUtils"
),g=e("./utils/AdobeLibraryRenditionUtils"),y=e("./utils/AdobeLibraryGeneralUtils");return b.prototype._getBase=function(e){var t=this._baseBranches[e];return t&&t.base},b.prototype._setBase=function(e,t){this._baseBranches[e]=this._baseBranches[e]||{},this._baseBranches[e].base=t},b.prototype._getLogIndex=function(){return this._logIndex++},b.prototype._getServicePort=function(e){function r(t){var n;try{n=JSON.parse(t)}catch(r){}if(!n){e("NO_DATA");return}e(null,n)}var t=l.VULCAN_PREFIX+l.VULCAN_QUERY_REQUEST
,n=l.VULCAN_PREFIX+l.VULCAN_QUERY_RESPONSE;if(c.hasCEPVulcan()){var i=c.getVulcanInterface(),s=c.getVulcanMessage(),o,u=function(t){i.removeMessageListener(n,u),clearTimeout(o);if(!t){e("NO_VULCAN_MESSAGE");return}r(i.getPayload(t))};i.addMessageListener(n,u),o=setTimeout(u,3e3);var a=new s(t);a.setPayload(""),i.dispatchMessage(a)}else c.vulcanCall&&c.vulcanCall(t,"",n,r)},b.prototype._connectToPort=function(e,t){var n=t&&t.port,r=t&&t.token;this._portDiagnosis=t?t.portdiagnosis:"UNKNOWN",this._connectionPort=
n;if(this._isConnected||!n)return;if(this._portDiagnosis==="SIMPLE_HOSTNAME_GOING_TO_PROXY"||this._portDiagnosis==="DNS_RESOLUTION_FAILED")return;try{var i=new p(n,r);this._channel=new h(i),this._isConnected=!0}catch(s){}if(!this._isConnected)return;this._channel.addListener("environmentinfo",this._onEnvironmentInfo.bind(this)),this._channel.addListener("collectionadded",this._onCollectionAdded.bind(this)),this._channel.addListener("collectionremoved",this._onCollectionRemoved.bind(this)),this._channel
.addListener("clearcollections",this._onClearCollections.bind(this)),this._channel.addListener("syncstate",this._onSyncState.bind(this)),this._channel.addListener("librarychange",this._onLibraryChange.bind(this)),this._channel.addListener("renditioncachechange",this._onRenditionCacheChange.bind(this)),this._channel.addListener("librarydeleted",this._onLibraryDeleted.bind(this)),this._channel.addListener("bookmarkschanged",this._onBookmarksChanged.bind(this)),this._channel.onOpen(this._sendConfiguration
.bind(this)),this._channel.onClose(this._onDisconnect.bind(this))},b.prototype._connect=function(){this._getServicePort(this._connectToPort.bind(this))},b.prototype.shutdown=function(){this._collectionManager.removeAllLibraryCollections(),this._isConnected&&this._onDisconnect()},b.prototype._onDisconnect=function(){this._isConnected=!1,this._collectionManager.removeAllLibraryCollections(),this._channel.shutdown(),this._channel=undefined},b.prototype._sendConfiguration=function(){this._channel.send
("configure",{CLIENT_DESCRIPTION:l.CLIENT_DESCRIPTION,RENDITION_SIZES:l.RENDITION_SIZES,FULL_RENDITION_CONFIG:l.FULL_RENDITION_CONFIG,SHARED_LOCAL_STORAGE_ANALYTICS:l.SHARED_LOCAL_STORAGE_ANALYTICS})},b.prototype._onEnvironmentInfo=function(e){this._serviceInfo=e,e.whitelistedDomains&&(l.WHITELISTED_DOMAINS=e.whitelistedDomains),e.elementActionProductMap&&(l.ELEMENT_ACTION_PRODUCT_MAP=e.elementActionProductMap),this._collectionManager._collections.forEach(function(e){e._listenerManager.notify("sync"
)})},b.prototype._onCollectionAdded=function(e){var t=this;l.ROOT_DIR=e.rootDir;var n=new v,r,i={USER_ID:e.userId,CLOUD_ID:e.cloudId,CLOUD_INFO:e.cloudInfo,STORAGE_HOSTNAME:e.storageHost,COLLABORATION_HOSTNAME:e.collaborationHost,REQUIRES_COMMUNITY_SESSION:e.requiresCommunitySession};e.isPublic?r=new o(i):r=new s(i),e.libraries.forEach(function(e){n.addOperation(t.loadExistingLibrary,[r,e.id,e.path,e.manifest,e.isDeletedFromServer,e.renditionCache],t)}),n.run(function(){t._collectionManager.addLibraryCollection
(r)})},b.prototype._getLibraryCollection=function(e){return e.isPublic?this._collectionManager.getPublicLibraryCollection(e.cloudId):this._collectionManager.getLibraryCollection(e.userId,e.cloudId)},b.prototype._onCollectionRemoved=function(e){var t=this._getLibraryCollection(e);t&&this._collectionManager.removeLibraryCollection(t)},b.prototype._onClearCollections=function(){this._collectionManager.removeAllLibraryCollections()},b.prototype._onSyncState=function(e){var t=this._getLibraryCollection
(e);if(!t)return;t._syncState=e.state,t._syncProgress=e.progress,t._syncProgressMap=e.progressMap,t._externalLinkDownloadProgressMap=e.externalLinkDownloadProgressMap||{},t._newLibraryProgress=e.newLibraryProgress,t._initialSyncInProgress=e.initialSyncInProgress,t._syncErrors=[],e.errors.forEach(function(e){t._syncErrors.push(new f(e.code,e.message,e.libraryId))}),e.libraryStates.forEach(function(e){var n=t.getLibraryById(e.id);n&&(n._syncState=e.state)}),t._listenerManager.notify("sync")},b.prototype
._onLibraryChange=function(e){var t=this._getLibraryCollection(e);if(!t)return;var n=t.getLibraryById(e.id);n?(n._deletedFromServer=e.deletedFromServer,e.renditionCache=e.renditionCache||{},n._setRenditionCache(e.renditionCache),this.updateExistingLibrary(t,n,e.manifest,undefined,function(){n._setRenditionCache(e.renditionCache)})):this.loadExistingLibrary(t,e.id,e.path,e.manifest,e.deletedFromServer,e.renditionCache)},b.prototype._onRenditionCacheChange=function(e){var t=this._getLibraryCollection
(e),n=t&&t.getLibraryById(e.id),r=n&&n.getElementById(e.elementId);r&&e.renditionCache&&(r._renditionCache=e.renditionCache)},b.prototype._onLibraryDeleted=function(e){var t=this._getLibraryCollection(e);if(!t)return;this._deleteLibrary(t,e.id)},b.prototype._onBookmarksChanged=function(e){var t=this._getLibraryCollection(e);if(!t)return;if(e.bookmarks){var n=[];e.bookmarks.forEach(function(e){n.push(new a(e._id,e._url))}),t._bookmarkManager._bookmarks=n}},b.prototype.isConnected=function(){return this
._isConnected},b.prototype.reconnect=function(){this._isConnected||this._connect()},b.prototype.getServiceInfo=function(){return this._serviceInfo?{updateRequired:this._serviceInfo.updateRequired,version:this._serviceInfo.codeVersion,buildNumber:this._serviceInfo.buildNumber,apiVersion:this._serviceInfo.version,environment:this._serviceInfo.environment,syncingEnabled:this._serviceInfo.syncingEnabled,portDiagnosis:this._portDiagnosis,connectionPort:this._connectionPort}:{portDiagnosis:this._portDiagnosis
,connectionPort:this._connectionPort}},b.prototype.updateConfiguration=function(){l.SHARED_LOCAL_STORAGE&&this._isConnected&&this._channel&&this._sendConfiguration()},b.prototype.sync=function(e){this._channel.send("sync",{isPublic:e.isPublic,userId:e.userId,cloudId:e.cloudId})},b.prototype.setSyncEnabled=function(e){this._channel.send("configuresync",{enable:e})},b.prototype.commitManifest=function(e,t){var n=this;if(l.SHARED_LOCAL_STORAGE){var r=e._dcxBranch.localData,i=this._pendingSetRenditionCache
[e.id]||{data:[],callbacks:[]};delete this._pendingSetRenditionCache[e.id];var s={isPublic:e.collection.isPublic,userId:e.collection.userId,cloudId:e.collection.cloudId,id:e.id,current:r,base:this._getBase(e.id),renditions:i.data};c.log("Start commit"),this._channel.call("commit",s,function(s){c.log("Finish commit: "+(s.success?"success":"fail")),s.success?(c.log("Update base after commit"),n._setBase(e.id,r),s.renditions&&s.renditions.forEach(function(t,n){if(!t)return;var r=t.split("/").pop(),s=
i.data[n],o=e.getElementById(s.element);o&&(o._renditionCache=o._renditionCache||{},o._renditionCache[s.size]=r);var u=i.callbacks[n];u&&u(null,t)})):(n._pendingSetRenditionCache[e.id]=i,e._waitForCommit(function(){n.notifyStartWrite(e,[],function(){e._deletedFromServer=s.deletedFromServer,n.updateExistingLibrary(e.collection,e,s.manifest,undefined,function(){e._commit(!0,!0)})})})),t()})}else e._dcxLock.obtain(function(){e._gcLocalData(function(){e._dcxComposite.commitChanges(function(n){e._dcxLock
.release(),t(n)})})})},b.prototype.resolvePullWithBranch=function(e,t,n,r,i){c.log("resolvePullWithBranch"),l.SHARED_LOCAL_STORAGE?(e._dcxComposite._current=t,this._setBase(e.id,n),c.log("Finished resolvePullWithBranch: shared local storage"),i()):r?e._dcxLock.obtain(function(){e._dcxComposite._current=t,e._dcxLock.release(),c.log("Finished resolvePullWithBranch: local merge"),i()}):e._dcxLock.obtain(function(){e._dcxComposite.resolvePullWithBranch(t,function(t,n){e._dcxLock.release(),e._commit(!0
,!0),e._waitForCommit(function(){c.log("Finished resolvePullWithBranch: remote merge"),i(t,n)})})})},b.prototype.acceptPush=function(e,t){var n=this;c.log("acceptPush"),e._dcxLock.obtain(function(){e._dcxComposite.acceptPush(function(r){e._dcxLock.release(),c.log("Finished acceptPush"),n._acceptPushedBranchListeners.forEach(function(t){t(e)}),t(r)})})},b.prototype.onAcceptPushedBranch=function(e){this._acceptPushedBranchListeners.push(e)},b.prototype.removeOnAcceptPushedBranchListeners=function()
{this._acceptPushedBranchListeners=[]},b.prototype._deleteLibrary=function(e,t,n){c.log("deleteLibrary");var r=e.getLibraryById(t);if(r){var i=e._libraries.indexOf(r);i!==-1&&(e._libraries.splice(i,1),delete e._libraryIdMap[r.id]),r._markDeletedLocally(!0),e._notifyChange(!0)}},b.prototype._loadBranch=function(e,t,n){var r;try{r=(new i(undefined,n)).parse(t),r._localStorage=e._localStorage}catch(s){}return r},b.prototype._addLibrary=function(e,t,n,i,s){n=n||e._getCompositeDir(t);var o=new r(null,
null,n,null,null,{preserveFileExtensions:!0}),a=this._loadBranch(o,i,!1);if(!a){s(new f(f.CORRUPTED_LIBRARY,"Library corrupted in local storage",t));return}if(a.compositeState==="pendingDelete"){s(null);return}o._current=a,this._setBase(t,i);var l=new u(e,o);e.isPublic&&(l._publicId=t,l._writable=!1),e._libraries.push(l),e._libraryIdMap[l.id]=l,e._notifyChange(!0),s(null,l)},b.prototype.createNewLibrary=function(e,t,n,r){var i=y.wrapCallback(r);c.log("createNewLibrary"),this._addLibrary(e,t,undefined
,n,function(e,t){if(e||!t){i(e);return}t._commit(!1,!0),t._waitForCommit(i)})},b.prototype.loadExistingLibrary=function(e,t,n,r,i,s,o){var u=y.wrapCallback(o);c.log("loadExistingLibrary"),this._addLibrary(e,t,undefined,r,function(e,t){if(e||!t){u(e);return}t._deletedFromServer=i,s&&t._setRenditionCache(s),u(null,t)})},b.prototype.updateExistingLibrary=function(e,t,n,r,i){var s=this,o=y.wrapCallback(i),u="updateExistingLibrary["+this._getLogIndex()+"]: ";if(m.areManifestsEqual(t._dcxBranch.localData
,n)){c.log(u+"already up-to-date"),o();return}c.log(u+"changes to update");var a=this._loadBranch(t._dcxComposite,n,!1);if(!a){o(new f(f.CORRUPTED_LIBRARY,"Invalid manifest",t.id));return}a.compositeState==="pendingDelete"?(e._doRemoveLibrary(t),o()):t._waitForCommit(function(){if(r){if(!m.areManifestsEqual(t._dcxBranch.localData,r)){c.log(u+"Commit aborting: something changed and it's no longer a fast-forward"),o(!0);return}}else r=s._getBase(t.id);var e=s._loadBranch(t._dcxComposite,r,!0)||a;c.
log(u+"base "+e.changeCount+" -> updated "+a.changeCount),t._mergeAndSwitchToBranch(a,e,function(){c.log(u+"finished merge"),l.SHARED_LOCAL_STORAGE?o(null):(t._commit(!1,!0),t._waitForCommit(o))})})},b.prototype.setRenditionCache=function(e,t,n,r){var i=this._pendingSetRenditionCache[e.library.id],s=g.addToPendingSetRenditionCache(i,e,t,n,r);this._pendingSetRenditionCache[e.library.id]=s},b.prototype.getRenditionPath=function(e,t,n,r){r=r||0;var i=this,s=y.wrapCallback(n),o=e._lookupRenditionPath
(t||"full");if(o){s(null,o);return}var u={isPublic:e.library.collection.isPublic,userId:e.library.collection.userId,cloudId:e.library.collection.cloudId,id:e.library.id,element:e.id,size:t};c.log("Get rendition path from CCLibrary process"),this._channel.call("getrenditionpath",u,function(o){if(!o&&r<l.LOCAL_RENDITION_MAX_RETRIES){c.log("getrenditionpath: rendition not found"),setTimeout(function(){i.getRenditionPath(e,t,n,r+1)},l.LOCAL_RENDITION_RETRY_INTERVAL);return}s(null,o)})},b.prototype.notifyDownloadRendition=
function(e){this._downloadRenditionListeners.forEach(function(t){t(e)})},b.prototype.onDownloadRendition=function(e){this._downloadRenditionListeners.push(e)},b.prototype.removeOnDownloadRenditionListeners=function(){this._downloadRenditionCacheListeners=[]},b.prototype.notifyStartWrite=function(e,t,n){var r=y.wrapCallback(n);if(!l.SHARED_LOCAL_STORAGE){r(null);return}var i={userId:e.collection.userId,cloudId:e.collection.cloudId,id:e.id,dependencies:[]};t.forEach(function(e){i.dependencies.push(
{userId:e.collection.userId,cloudId:e.collection.cloudId,id:e.id})}),this._channel.call("startcomponentwrite",i,function(){r(null)})},b.prototype.loadPublicLibrary=function(e,t,n,r){var i=y.wrapCallback(r),s={isPublic:e.isPublic,cloudId:e.cloudId,id:t,url:n};this._channel.call("loadpubliclibrary",s,function(){i(null)})},b.prototype.unloadPublicLibrary=function(e,t){var n=y.wrapCallback(t),r={isPublic:e.collection.isPublic,cloudId:e.collection.cloudId,id:e.id};this._channel.call("unloadpubliclibrary"
,r,function(){n(null)})},b.prototype.getAssetFromURL=function(e,t,n,r,i){if(l.SHARED_LOCAL_STORAGE){var s={isPublic:e.isPublic,userId:e.userId,cloudId:e.cloudId,url:t,headers:n,tempDir:r};this._channel.call("downloadfile",s,function(e){i(e.err,e.tempFilePath,e.etag,{headers:e.responseHeaders})})}else e._syncManager.getAssetFromURL(t,n,r,undefined,i)},b.prototype.doHeadRequestOfURL=function(e,t,n){l.SHARED_LOCAL_STORAGE?n(null):e._syncManager.doHeadRequestOfURL(t,n)},b.prototype.downloadExternalLink=
function(e,t){var n={isPublic:e.element.library.collection.isPublic,userId:e.element.library.collection.userId,cloudId:e.element.library.collection.cloudId,id:e.element.library.id,element:e.element.id,representation:e.id};c.log("Download external link from CCLibrary process"),this._channel.call("downloadexternallink",n,function(e){t(e.err,e.path)})},b.prototype.createBookmark=function(e,t,n,r){var i=y.wrapCallback(r),s={isPublic:e.isPublic,cloudId:e.cloudId,userId:e.userId,id:t,url:n};this._channel
.call("createBookmark",s,function(e){var t=e&&e.err,n=e&&e.bookmark;n&&(n=new a(n._id,n._url)),i(t,n)})},b.prototype.removeBookmark=function(e,t,n){var r=y.wrapCallback(n),i={isPublic:e.isPublic,cloudId:e.cloudId,userId:e.userId,id:t.id};this._channel.call("removeBookmark",i,function(e){r(e)})},b.prototype.sendElementAction=function(e,t){var n=y.wrapCallback(t),r={isPublic:e.element.library.collection.isPublic,userId:e.element.library.collection.userId,cloudId:e.element.library.collection.cloudId
,libraryId:e.element.library.id,elementId:e.element.id,appCode:e.appCode,minVersion:e.minAppVersion,action:e.id};this._channel.call("performElementAction",r,function(e){n(e.err,e.data)})},Object.freeze(b),Object.seal(b.prototype),b}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/AdobeLibraryExternalUtils",["require","exports","module","./AdobeLibraryServices","./utils/AdobeLibraryMimeTypeUtils","./utils/AdobeLibraryRenditionUtils"],function(e,t,n){"use strict";var r=e("./AdobeLibraryServices"
),i=e("./utils/AdobeLibraryMimeTypeUtils"),s=e("./utils/AdobeLibraryRenditionUtils"),o={};return o.mimeTypeToExtensions=function(e){return i.getExtensions(e)},o.extensionToMimeTypes=function(e){return i.getMimeTypes(e)},o.canGenerateRenditionFromMimeType=function(e){return s.canComputeRenditionFromMimeType(e)},o.generateUuid=function(){return r.uuid()},Object.seal(o),o}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/AdobeLibraryExternalAnalyticsUtils",["require","exports"
,"module","./AdobeLibraryAnalytics"],function(e,t,n){"use strict";var r=e("./AdobeLibraryAnalytics"),i={};return i.reportUseElement=function(e,t,n){r.reportUseElement(e,t,n)},i.reportCheckoutElement=function(e,t,n){r.reportCheckoutElement(e,t,n)},i.reportCreateLink=function(e,t){r.reportCreateLink(e,t)},i.reportShareElementLink=function(e){r.reportShareElementLink(e)},i.reportShareLibraryLink=function(e){r.reportShareLibraryLink(e)},Object.seal(i),i}),define("angular-cc-libraries-api-js/components/cc-libraries-api-js/src/main"
,["require","exports","module","./AdobeLibraryServices","./AdobeLibraryConfig","./AdobeLibraryCollection","./AdobeLibraryPublicCollection","./AdobeLibraryCollectionManager","./AdobeLibraryError","./AdobeLibraryLocalisation","./AdobeLibraryStorageInterface","./AdobeLibraryExternalUtils","./AdobeLibraryExternalAnalyticsUtils","./utils/AdobeLibraryFileUtils","./utils/AdobeLibraryManifestUtils"],function(e,t,n){"use strict";function g(e,t,n){var r=e+"/"+t,i=m[r]!==undefined;return m[r]=m[r]||[],m[r].
push(n),i}function y(e,t){var n;e===i.PUBLIC_USER_ID?n=v.getPublicLibraryCollection(t):n=v.getLibraryCollection(e,t);var r=e+"/"+t,s=m[r];s&&(delete m[r],s.forEach(function(e){e(null,n)}))}var r=e("./AdobeLibraryServices"),i=e("./AdobeLibraryConfig"),s=e("./AdobeLibraryCollection"),o=e("./AdobeLibraryPublicCollection"),u=e("./AdobeLibraryCollectionManager"),a=e("./AdobeLibraryError"),f=e("./AdobeLibraryLocalisation"),l=e("./AdobeLibraryStorageInterface"),c=e("./AdobeLibraryExternalUtils"),h=e("./AdobeLibraryExternalAnalyticsUtils"
),p=e("./utils/AdobeLibraryFileUtils"),d=e("./utils/AdobeLibraryManifestUtils"),v=new u,m={},b={};return b.configure=function(e,t){!r.hasFileSystem()&&t.SHARED_LOCAL_STORAGE===undefined&&(t.SHARED_LOCAL_STORAGE=!1);if(r.hasFileSystem()&&!t.ROOT_DIR&&t.SHARED_LOCAL_STORAGE===!1)throw new a(a.INVALID_PARAMETER,"Missing ROOT_DIR option");if(r.hasFileSystem()&&t.ROOT_DIR&&t.SHARED_LOCAL_STORAGE!==!1)throw new a(a.INVALID_PARAMETER,"ROOT_DIR option doesn't apply when using shared local storage");if(!r
.hasFileSystem()&&t.ROOT_DIR)throw new a(a.REQUIRES_FILESYSTEM,"ROOT_DIR option only applies when you have a filesystem");if(t.SHARED_LOCAL_STORAGE===!1&&!t.STORAGE_API_KEY)throw new a(a.INVALID_PARAMETER,"Missing STORAGE_API_KEY option");if(t.SHARED_LOCAL_STORAGE!==!1&&!r.hasCEPVulcan()&&!e.vulcanCall)throw new a(a.INVALID_PARAMETER,"Shared local storage requires either the CEP VulcanInterface/VulcanMessage as globals, or for you to pass in the vulcanCall dependency");if(t.ROOT_DIR)while(["/","\\"
].indexOf(t.ROOT_DIR.substr(-1))!==-1)t.ROOT_DIR=t.ROOT_DIR.slice(0,-1);t.LOCALE&&(f.setLocale(t.LOCALE),delete t.LOCALE),Object.keys(t).forEach(function(e){i.setParameter(e,t[e])}),r.analytics=e.analytics,r.vulcanCall=e.vulcanCall,r._log=e.log,r._getDisplayName=e.getDisplayName,r._getNodeTunnelOptions=e.getNodeTunnelOptions,r.storageInterface&&r.storageInterface.shutdown(),r.storageInterface=new l(v),r.log("Configure: "+(i.SHARED_LOCAL_STORAGE?"<shared local storage>":i.ROOT_DIR))},b.setOption=function(
e,t){var n=["ROOT_DIR","SHARED_LOCAL_STORAGE","ELEMENT_TYPE_FILTERS","STORAGE_API_KEY"];if(n.indexOf(e)!==-1)throw new a(a.INVALID_PARAMETER,"Cannot reconfigure "+e);i.setParameter(e,t),r.storageInterface.updateConfiguration()},b.getLoadedCollections=function(){return v.getLoadedCollections().slice(0)},b.getLoadedCollectionById=function(e,t){return v.getLibraryCollection(e,t)},b.getLoadedPublicCollectionById=function(e){return v.getPublicLibraryCollection(e)},b.addLoadedCollectionsListener=function(
e){v.addLoadedCollectionsListener(e)},b.removeLoadedCollectionsListener=function(e){v.removeLoadedCollectionsListener(e)},b.getRootDir=function(){if(!r.hasFileSystem())throw new a(a.REQUIRES_FILESYSTEM,"ROOT_DIR option only applies when you have a filesystem");return i.ROOT_DIR},b.getLocale=function(){return f.getLocale()},b.unloadLibraryCollection=function(e){if(i.SHARED_LOCAL_STORAGE)throw new a(a.NOT_SUPPORTED,"unloadLibraryCollection() not supported with shared local storage");e.stopPolling()
,e._removeAllListeners(),v.removeLibraryCollection(e)},b.loadLibraryCollection=function(e,t){function u(){v.addLibraryCollection(n),i.AUTO_START_POLLING&&n.startPolling(),y(e.USER_ID,e.CLOUD_ID)}if(typeof e=="function"){t=e,t(new a(a.INVALID_PARAMETER,"options argument not specified"));return}if(i.SHARED_LOCAL_STORAGE){t(new a(a.NOT_SUPPORTED,"loadLibraryCollection() not supported with shared local storage"));return}if(r.hasFileSystem()&&!i.SHARED_LOCAL_STORAGE&&!i.ROOT_DIR){t(new a(a.INVALID_PARAMETER
,"ROOT_DIR not configured. Make sure you call CCLibraries.configure()"));return}e=e||{};if(r.hasFileSystem()&&!e.USER_ID){t(new a(a.INVALID_PARAMETER,"Missing USER_ID option"));return}e.CLOUD_ID=e.CLOUD_ID||i.DEFAULT_CLOUD_ID;if(!e.STORAGE_HOSTNAME){t(new a(a.INVALID_PARAMETER,"Missing STORAGE_HOSTNAME option"));return}if(!e.COLLABORATION_HOSTNAME){t(new a(a.INVALID_PARAMETER,"Missing COLLABORATION_HOSTNAME option"));return}var n=v.getLibraryCollection(e.USER_ID,e.CLOUD_ID),o=g(e.USER_ID,e.CLOUD_ID
,t);if(n&&!o){y(e.USER_ID,e.CLOUD_ID);return}if(o)return;n=new s(e);if(r.hasFileSystem())p.doesRootDirExist(n,function(e,t){n._load(function(){t||n._setInitialSyncState(!0),n.sync(function(){n._setInitialSyncState(!1)}),u()})});else if(e.WAIT_FOR==="all")n._setInitialSyncState(!0),n.sync(function(){n._setInitialSyncState(!1),u()});else if(d.validateLibraryId(e.WAIT_FOR,!1)){n._setInitialSyncState(!0,[e.WAIT_FOR]),n.sync(function(){n._setInitialSyncState(!1)});var f=function(){if(n.syncState!=="syncing"||
n._libraryIdMap[e.WAIT_FOR]!=="pending")n.removeChangeListener(f),n.removeSyncListener(f),u()};n.addChangeListener(f),n.addSyncListener(f)}else n._setInitialSyncState(!0),n.sync(function(){n._setInitialSyncState(!1)}),u()},b.loadPublicLibraryCollection=function(e,t){function u(){v.addLibraryCollection(n),i.AUTO_START_POLLING&&n.startPolling(),y(i.PUBLIC_USER_ID,e.CLOUD_ID)}if(typeof e=="function"){t=e,t(new a(a.INVALID_PARAMETER,"options argument not specified"));return}if(i.SHARED_LOCAL_STORAGE)
{t(new a(a.NOT_SUPPORTED,"loadPublicLibraryCollection() not supported with shared local storage"));return}if(r.hasFileSystem()&&!i.SHARED_LOCAL_STORAGE&&!i.ROOT_DIR){t(new a(a.INVALID_PARAMETER,"ROOT_DIR not configured. Make sure you call CCLibraries.configure()"));return}e=e||{},e.CLOUD_ID=e.CLOUD_ID||i.DEFAULT_CLOUD_ID;if(!e.STORAGE_HOSTNAME){t(new a(a.INVALID_PARAMETER,"Missing STORAGE_HOSTNAME option"));return}var n=v.getPublicLibraryCollection(e.CLOUD_ID),s=g(i.PUBLIC_USER_ID,e.CLOUD_ID,t);if(
n&&!s){y(i.PUBLIC_USER_ID,e.CLOUD_ID);return}if(s)return;n=new o(e),r.hasFileSystem()?n._load(function(){n.sync(),u()}):u()},b.isConnected=function(){if(!i.SHARED_LOCAL_STORAGE)throw new a(a.NOT_SUPPORTED,"isConnected() is only applicable if using shared local storage");return r.storageInterface&&r.storageInterface.isConnected()},b.reconnect=function(){if(!i.SHARED_LOCAL_STORAGE)throw new a(a.NOT_SUPPORTED,"reconnect() is only applicable if using shared local storage");r.storageInterface&&r.storageInterface
.reconnect()},b.getServiceInfo=function(){if(!i.SHARED_LOCAL_STORAGE)throw new a(a.NOT_SUPPORTED,"getServiceInfo() is only applicable if using shared local storage");return r.storageInterface&&r.storageInterface.getServiceInfo()},b.isSyncingEnabled=function(){if(i.SHARED_LOCAL_STORAGE){var e=b.getServiceInfo();return e&&e.syncingEnabled?!0:!1}return i.SYNCING_ENABLED},b.enableSyncing=function(){if(i.SHARED_LOCAL_STORAGE){r.storageInterface.setSyncEnabled(!0);return}i.SYNCING_ENABLED=!0,b.getLoadedCollections
().forEach(function(e){e.sync()})},b.disableSyncing=function(){if(i.SHARED_LOCAL_STORAGE){r.storageInterface.setSyncEnabled(!1);return}i.SYNCING_ENABLED=!1},b.resolveElementReference=function(e){e=e||"";var t=new RegExp("cloud-asset://(.+)/([A-Za-z0-9-]+);node=([A-Za-z0-9-]+)"),n=e.match(t),r;if(n){var i=n[1],s=n[2],o=n[3];b.getLoadedCollections().every(function(e){if(i===e._syncManager.getElementRefDomainPath()){var t=e.getLibraryById(s);return t&&(r=t.getElementById(o)),!1}return!0})}return r},
b.errors=a,b.utils=c,b.analyticsUtils=h,Object.seal(b),b}),define("angular-cc-libraries-api-js/main",["require","exports","module","angular","./components/cc-libraries-api-js/src/main","./components/cc-libraries-api-js/src/AdobeLibraryCollection","./components/cc-libraries-api-js/src/AdobeLibraryPublicCollection","./components/cc-libraries-api-js/src/AdobeLibraryFolder","./components/cc-libraries-api-js/src/AdobeLibraryElement","./components/cc-libraries-api-js/src/AdobeLibraryRepresentation"],function(
e,t,n){"use strict";var r=e("angular"),i=e("./components/cc-libraries-api-js/src/main"),s=e("./components/cc-libraries-api-js/src/AdobeLibraryCollection"),o=e("./components/cc-libraries-api-js/src/AdobeLibraryPublicCollection"),u=e("./components/cc-libraries-api-js/src/AdobeLibraryFolder"),a=e("./components/cc-libraries-api-js/src/AdobeLibraryElement"),f=e("./components/cc-libraries-api-js/src/AdobeLibraryRepresentation"),l=10,c=["$q","$rootScope",function(e,t){function p(t,n,r){r=r||[];var i=e.defer
();return r.push(function(e,t){function n(){e?i.reject(e):i.resolve(t)}n(),h()}),n.apply(t,r),i.promise}function d(e,t,n){var i=e[t];e[t]=function(){var e=Array.prototype.slice.call(arguments);while(e.length<n)e.push(undefined);var t=e[n];return r.isFunction(t)?i.apply(this,e):p(this,i,e)}}var n=0,c,h=function(){if(c)return;var e=(new Date).valueOf();if(e-n<l){c=setTimeout(function(){c=undefined,h()},l);return}n=e,t.$$phase||t.$apply()};d(s.prototype,"sync",0),d(s.prototype,"removeDeletedLibraries"
,1),d(s.prototype,"getTempDir",0),d(s.prototype,"createBookmark",2),d(s.prototype,"removeBookmark",1),d(o.prototype,"sync",0),d(o.prototype,"removeDeletedLibraries",1),d(o.prototype,"getTempDir",0),d(o.prototype,"loadLibrary",2),d(o.prototype,"unloadLibrary",1),d(u.prototype,"rebindToServer",0),d(u.prototype,"copyElement",2),d(u.prototype,"moveElement",2),d(u.prototype,"getRenditionPath",1),d(u.prototype,"getAuthenticatedRenditionURL",1),d(u.prototype,"setRendition",4),d(u.prototype,"setRenditionFromPath"
,3),d(a.prototype,"getThumbnailURL",1),d(a.prototype,"getThumbnailPath",1),d(a.prototype,"setThumbnailCache",2),d(a.prototype,"endOperation",0),d(f.prototype,"setContent",3),d(f.prototype,"setContentFromPath",2),d(f.prototype,"setContentFromURL",3),d(f.prototype,"getContentPath",0),d(f.prototype,"getContent",1),d(f.prototype,"getAuthenticatedContentURL",0),d(f.prototype,"testExternalLink",0),this.getLoadedCollections=function(){return i.getLoadedCollections()},this.addLoadedCollectionsListener=function(
e){return i.addLoadedCollectionsListener(e)},this.removeLoadedCollectionsListener=function(e){return i.removeLoadedCollectionsListener(e)},this.loadLibraryCollection=function(e){return p(i,i.loadLibraryCollection,[e])},this.unloadLibraryCollection=function(e){i.unloadLibraryCollection(e)},this.configure=function(e,t){i.configure(e,t)},this.setOption=function(e,t){i.setOption(e,t)},this.getRootDir=function(){return i.getRootDir()},this.getLocale=function(){return i.getLocale()},this.isConnected=function(
){return i.isConnected()},this.getServiceInfo=function(){return i.getServiceInfo()},this.reconnect=function(){i.reconnect()},this.resolveElementReference=function(e){return i.resolveElementReference(e)},this.isSyncingEnabled=function(){return i.isSyncingEnabled()},this.enableSyncing=function(){i.enableSyncing()},this.disableSyncing=function(){i.disableSyncing()},this.utils=i.utils,this.analyticsUtils=i.analyticsUtils,this.errors=i.errors,this.setCustomDigestTrigger=function(e){h=e}}];r.module("adobe.ccLibraries"
,[]).service("ccLibraries",c)}),define("angular-cc-libraries-api-js",["angular-cc-libraries-api-js/main"],function(e){return e}),function(e,t){typeof define=="function"&&define.amd?define("tether",t):typeof exports=="object"?module.exports=t(require,exports,module):e.Tether=t()}(this,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){var t=getComputedStyle(e),n=t.position;if(n==="fixed")return e;var r=e;while(r=
r.parentNode){var i=undefined;try{i=getComputedStyle(r)}catch(s){}if(typeof i=="undefined"||i===null)return r;var o=i,u=o.overflow,a=o.overflowX,f=o.overflowY;if(/(auto|scroll)/.test(u+f+a))if(n!=="absolute"||["relative","absolute","fixed"].indexOf(i.position)>=0)return r}return document.body}function l(e){var t=undefined;e===document?(t=document,e=document.documentElement):t=e.ownerDocument;var n=t.documentElement,r={},i=e.getBoundingClientRect();for(var s in i)r[s]=i[s];var o=f(t);return r.top-=
o.top,r.left-=o.left,typeof r.width=="undefined"&&(r.width=document.body.scrollWidth-r.left-r.right),typeof r.height=="undefined"&&(r.height=document.body.scrollHeight-r.top-r.bottom),r.top=r.top-n.clientTop,r.left=r.left-n.clientLeft,r.right=t.body.clientWidth-r.width-r.left,r.bottom=t.body.clientHeight-r.height-r.top,r}function c(e){return e.offsetParent||document.documentElement}function h(){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var t=document.createElement
("div");p(t.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var r=e.offsetWidth;n===r&&(r=t.clientWidth),document.body.removeChild(t);var i=n-r;return{width:i,height:i}}function p(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],t=[];return Array.prototype.push.apply(t,arguments),t.slice(1).forEach(function(
t){if(t)for(var n in t)(({})).hasOwnProperty.call(t,n)&&(e[n]=t[n])}),e}function d(e,t){if(typeof e.classList!="undefined")t.split(" ").forEach(function(t){t.trim()&&e.classList.remove(t)});else{var n=new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi"),r=g(e).replace(n," ");y(e,r)}}function v(e,t){if(typeof e.classList!="undefined")t.split(" ").forEach(function(t){t.trim()&&e.classList.add(t)});else{d(e,t);var n=g(e)+(" "+t);y(e,n)}}function m(e,t){if(typeof e.classList!="undefined")return e.
classList.contains(t);var n=g(e);return(new RegExp("(^| )"+t+"( |$)","gi")).test(n)}function g(e){return e.className instanceof SVGAnimatedString?e.className.baseVal:e.className}function y(e,t){e.setAttribute("class",t)}function b(e,t,n){n.forEach(function(n){t.indexOf(n)===-1&&m(e,n)&&d(e,n)}),t.forEach(function(t){m(e,t)||v(e,t)})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){var n=arguments.length<=2||arguments[2]===undefined?1:arguments
[2];return e+n>=t&&t>=e-n}function O(){return typeof performance!="undefined"&&typeof performance.now!="undefined"?performance.now():+(new Date)}function B(){var e={top:0,left:0};for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){var n=t.top,r=t.left;typeof n=="string"&&(n=parseFloat(n,10)),typeof r=="string"&&(r=parseFloat(r,10)),e.top+=n,e.left+=r}),e}function j(e,t){return typeof e.left=="string"&&e.left.indexOf("%")!==-1&&(e.left=parseFloat(e.left
,10)/100*t.width),typeof e.top=="string"&&e.top.indexOf("%")!==-1&&(e.top=parseFloat(e.top,10)/100*t.height),e}function z(e,t){return t==="scrollParent"?t=e.scrollParent:t==="window"&&(t=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),t===document&&(t=t.documentElement),typeof t.nodeType!="undefined"&&function(){var e=l(t),n=e,r=getComputedStyle(t);t=[n.left,n.top,e.width+n.left,e.height+n.top],U.forEach(function(e,n){e=e[0].toUpperCase()+e.substr(1),e==="Top"||e==="Left"?
t[n]+=parseFloat(r["border"+e+"Width"]):t[n]-=parseFloat(r["border"+e+"Width"])})}(),t}var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=undefined;typeof s=="undefined"&&(s={modules:[]});var u=function(){var e=0;return function(){return++e}}(),a={},f=function(t){var n=t._tetherZeroElement;typeof n=="undefined"&&
(n=t.createElement("div"),n.setAttribute("data-tether-id",u()),p(n.style,{top:0,left:0,position:"absolute"}),t.body.appendChild(n),t._tetherZeroElement=n);var r=n.getAttribute("data-tether-id");if(typeof a[r]=="undefined"){a[r]={};var i=n.getBoundingClientRect();for(var s in i)a[r][s]=i[s];E(function(){delete a[r]})}return a[r]},w=[],E=function(t){w.push(t)},S=function(){var t=undefined;while(t=w.pop())t()},x=function(){function e(){i(this,e)}return r(e,[{key:"on",value:function(t,n,r){var i=arguments
.length<=3||arguments[3]===undefined?!1:arguments[3];typeof this.bindings=="undefined"&&(this.bindings={}),typeof this.bindings[t]=="undefined"&&(this.bindings[t]=[]),this.bindings[t].push({handler:n,ctx:r,once:i})}},{key:"once",value:function(t,n,r){this.on(t,n,r,!0)}},{key:"off",value:function(t,n){if(typeof this.bindings!="undefined"&&typeof this.bindings[t]!="undefined")return;if(typeof n=="undefined")delete this.bindings[t];else{var r=0;while(r<this.bindings[t].length)this.bindings[t][r].handler===
n?this.bindings[t].splice(r,1):++r}}},{key:"trigger",value:function(t){if(typeof this.bindings!="undefined"&&this.bindings[t]){var n=0;for(var r=arguments.length,i=Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];while(n<this.bindings[t].length){var o=this.bindings[t][n],u=o.handler,a=o.ctx,f=o.once,l=a;typeof l=="undefined"&&(l=this),u.apply(l,i),f?this.bindings[t].splice(n,1):++n}}}}]),e}();s.Utils={getScrollParent:o,getBounds:l,getOffsetParent:c,extend:p,addClass:v,removeClass:d,hasClass:m,updateClasses
:b,defer:E,flush:S,uniqueId:u,Evented:x,getScrollBarSize:h},"use strict";var T=function(){function e(e,t){var n=[],r=!0,i=!1,s=undefined;try{for(var o=e[Symbol.iterator](),u;!(r=(u=o.next()).done);r=!0){n.push(u.value);if(t&&n.length===t)break}}catch(a){i=!0,s=a}finally{try{!r&&o["return"]&&o["return"]()}finally{if(i)throw s}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance"
)}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();if(typeof s=="undefined")throw new Error("You must include the utils.js file before tether.js");var N=s.Utils,o=N.getScrollParent,l=N.getBounds,c=N.getOffsetParent,p=N.extend,v=N.addClass,d=N.removeClass,b=N.updateClasses,E=N.defer,S=N.flush,h=N.getScrollBarSize
,k=function(){if(typeof document=="undefined")return"";var e=document.createElement("div"),t=["transform","webkitTransform","OTransform","MozTransform","msTransform"];for(var n=0;n<t.length;++n){var r=t[n];if(e.style[r]!==undefined)return r}}(),L=[],A=function(){L.forEach(function(e){e.position(!1)}),S()};(function(){var e=null,t=null,n=null,r=function i(){if(typeof t!="undefined"&&t>16){t=Math.min(t-16,250),n=setTimeout(i,250);return}if(typeof e!="undefined"&&O()-e<10)return;typeof n!="undefined"&&
(clearTimeout(n),n=null),e=O(),A(),t=O()-e};typeof window!="undefined"&&["resize","scroll","touchmove"].forEach(function(e){window.addEventListener(e,r)})})();var M={center:"center",left:"right",right:"left"},_={middle:"middle",top:"bottom",bottom:"top"},D={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},P=function(t,n){var r=t.left,i=t.top;return r==="auto"&&(r=M[n.left]),i==="auto"&&(i=_[n.top]),{left:r,top:i}},H=function(t){var n=t.left,r=t.top;return typeof D[t.left]!="undefined"&&
(n=D[t.left]),typeof D[t.top]!="undefined"&&(r=D[t.top]),{left:n,top:r}},F=function(t){var n=t.split(" "),r=T(n,2),i=r[0],s=r[1];return{top:i,left:s}},I=F,q=function(){function e(t){var n=this;i(this,e),this.position=this.position.bind(this),L.push(this),this.history=[],this.setOptions(t,!1),s.modules.forEach(function(e){typeof e.initialize!="undefined"&&e.initialize.call(n)}),this.position()}return r(e,[{key:"getClass",value:function(){var t=arguments.length<=0||arguments[0]===undefined?"":arguments
[0],n=this.options.classes;return typeof n!="undefined"&&n[t]?this.options.classes[t]:this.options.classPrefix?this.options.classPrefix+"-"+t:t}},{key:"setOptions",value:function(t){var n=this,r=arguments.length<=1||arguments[1]===undefined?!0:arguments[1],i={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=p(i,t);var s=this.options,u=s.element,a=s.target,f=s.targetModifier;this.element=u,this.target=a,this.targetModifier=f,this.target==="viewport"?(
this.target=document.body,this.targetModifier="visible"):this.target==="scroll-handle"&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(e){if(typeof n[e]=="undefined")throw new Error("Tether Error: Both element and target must be defined");typeof n[e].jquery!="undefined"?n[e]=n[e][0]:typeof n[e]=="string"&&(n[e]=document.querySelector(n[e]))}),v(this.element,this.getClass("element")),this.options.addTargetClasses!==!1&&v(this.target,this.getClass
("target"));if(!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=I(this.options.targetAttachment),this.attachment=I(this.options.attachment),this.offset=F(this.options.offset),this.targetOffset=F(this.options.targetOffset),typeof this.scrollParent!="undefined"&&this.disable(),this.targetModifier==="scroll-handle"?this.scrollParent=this.target:this.scrollParent=o(this.target),this.options.enabled!==!1&&this.enable(r)}},{key:"getTargetBounds"
,value:function(){if(typeof this.targetModifier=="undefined")return l(this.target);if(this.targetModifier==="visible"){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var t=l(this.target),n={height:t.height,width:t.width,top:t.top,left:t.left};return n.height=Math.min(n.height,t.height-(pageYOffset-t.top)),n.height=Math.min(n.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),n.height=Math.min(innerHeight,n.height),n.height-=2,n
.width=Math.min(n.width,t.width-(pageXOffset-t.left)),n.width=Math.min(n.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),n.width=Math.min(innerWidth,n.width),n.width-=2,n.top<pageYOffset&&(n.top=pageYOffset),n.left<pageXOffset&&(n.left=pageXOffset),n}if(this.targetModifier==="scroll-handle"){var t=undefined,r=this.target;r===document.body?(r=document.documentElement,t={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):t=l(r);var i=getComputedStyle(r),s=r.scrollWidth>
r.clientWidth||[i.overflow,i.overflowX].indexOf("scroll")>=0||this.target!==document.body,o=0;s&&(o=15);var u=t.height-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomWidth)-o,n={width:15,height:u*.975*(u/r.scrollHeight),left:t.left+t.width-parseFloat(i.borderLeftWidth)-15},a=0;u<408&&this.target===document.body&&(a=-0.00011*Math.pow(u,2)-.00727*u+22.58),this.target!==document.body&&(n.height=Math.max(n.height,24));var f=this.target.scrollTop/(r.scrollHeight-u);return n.top=f*(u-n.height-a)+
t.top+parseFloat(i.borderTopWidth),this.target===document.body&&(n.height=Math.max(n.height,24)),n}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(t,n){return typeof this._cache=="undefined"&&(this._cache={}),typeof this._cache[t]=="undefined"&&(this._cache[t]=n.call(this)),this._cache[t]}},{key:"enable",value:function(){var t=arguments.length<=0||arguments[0]===undefined?!0:arguments[0];this.options.addTargetClasses!==!1&&v(this.target,this.getClass("enabled"))
,v(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParent!==document&&this.scrollParent.addEventListener("scroll",this.position),t&&this.position()}},{key:"disable",value:function(){d(this.target,this.getClass("enabled")),d(this.element,this.getClass("enabled")),this.enabled=!1,typeof this.scrollParent!="undefined"&&this.scrollParent.removeEventListener("scroll",this.position)}},{key:"destroy",value:function(){var t=this;this.disable(),L.forEach(function(e,n){if(e===t){L.splice(
n,1);return}})}},{key:"updateAttachClasses",value:function(t,n){var r=this;t=t||this.attachment,n=n||this.targetAttachment;var i=["left","top","bottom","right","middle","center"];typeof this._addAttachClasses!="undefined"&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),typeof this._addAttachClasses=="undefined"&&(this._addAttachClasses=[]);var s=this._addAttachClasses;t.top&&s.push(this.getClass("element-attached")+"-"+t.top),t.left&&s.push(this.getClass
("element-attached")+"-"+t.left),n.top&&s.push(this.getClass("target-attached")+"-"+n.top),n.left&&s.push(this.getClass("target-attached")+"-"+n.left);var o=[];i.forEach(function(e){o.push(r.getClass("element-attached")+"-"+e),o.push(r.getClass("target-attached")+"-"+e)}),E(function(){if(typeof r._addAttachClasses=="undefined")return;b(r.element,r._addAttachClasses,o),r.options.addTargetClasses!==!1&&b(r.target,r._addAttachClasses,o),delete r._addAttachClasses})}},{key:"position",value:function()
{var t=this,n=arguments.length<=0||arguments[0]===undefined?!0:arguments[0];if(!this.enabled)return;this.clearCache();var r=P(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,r);var i=this.cache("element-bounds",function(){return l(t.element)}),o=i.width,u=i.height;if(o===0&&u===0&&typeof this.lastSize!="undefined"){var a=this.lastSize;o=a.width,u=a.height}else this.lastSize={width:o,height:u};var f=this.cache("target-bounds",function(){return t.getTargetBounds()}),
p=f,d=j(H(this.attachment),{width:o,height:u}),v=j(H(r),p),m=j(this.offset,{width:o,height:u}),g=j(this.targetOffset,p);d=B(d,m),v=B(v,g);var y=f.left+v.left-d.left,b=f.top+v.top-d.top;for(var w=0;w<s.modules.length;++w){var E=s.modules[w],x=E.position.call(this,{left:y,top:b,targetAttachment:r,targetPos:f,elementPos:i,offset:d,targetOffset:v,manualOffset:m,manualTargetOffset:g,scrollbarSize:N,attachment:this.attachment});if(x===!1)return!1;if(typeof x=="undefined"||typeof x!="object")continue;b=
x.top,y=x.left}var T={page:{top:b,left:y},viewport:{top:b-pageYOffset,bottom:pageYOffset-b-u+innerHeight,left:y-pageXOffset,right:pageXOffset-y-o+innerWidth}},N=undefined;document.body.scrollWidth>window.innerWidth&&(N=this.cache("scrollbar-size",h),T.viewport.bottom-=N.height),document.body.scrollHeight>window.innerHeight&&(N=this.cache("scrollbar-size",h),T.viewport.right-=N.width);if(["","static"].indexOf(document.body.style.position)===-1||["","static"].indexOf(document.body.parentElement.style
.position)===-1)T.page.bottom=document.body.scrollHeight-b-u,T.page.right=document.body.scrollWidth-y-o;return typeof this.options.optimizations!="undefined"&&this.options.optimizations.moveElement!==!1&&typeof this.targetModifier=="undefined"&&function(){var e=t.cache("target-offsetparent",function(){return c(t.target)}),n=t.cache("target-offsetparent-bounds",function(){return l(e)}),r=getComputedStyle(e),i=n,s={};["Top","Left","Bottom","Right"].forEach(function(e){s[e.toLowerCase()]=parseFloat(
r["border"+e+"Width"])}),n.right=document.body.scrollWidth-n.left-i.width+s.right,n.bottom=document.body.scrollHeight-n.top-i.height+s.bottom;if(T.page.top>=n.top+s.top&&T.page.bottom>=n.bottom&&T.page.left>=n.left+s.left&&T.page.right>=n.right){var o=e.scrollTop,u=e.scrollLeft;T.offset={top:T.page.top-n.top+o-s.top,left:T.page.left-n.left+u-s.left}}}(),this.move(T),this.history.unshift(T),this.history.length>3&&this.history.pop(),n&&S(),!0}},{key:"move",value:function(t){var n=this;if(typeof this
.element.parentNode=="undefined")return;var r={};for(var i in t){r[i]={};for(var s in t[i]){var o=!1;for(var u=0;u<this.history.length;++u){var a=this.history[u];if(typeof a[i]!="undefined"&&!C(a[i][s],t[i][s])){o=!0;break}}o||(r[i][s]=!0)}}var f={top:"",left:"",right:"",bottom:""},l=function(t,r){var i=typeof n.options.optimizations!="undefined",s=i?n.options.optimizations.gpu:null;if(s!==!1){var o=undefined,u=undefined;t.top?(f.top=0,o=r.top):(f.bottom=0,o=-r.bottom),t.left?(f.left=0,u=r.left):
(f.right=0,u=-r.right),f[k]="translateX("+Math.round(u)+"px) translateY("+Math.round(o)+"px)",k!=="msTransform"&&(f[k]+=" translateZ(0)")}else t.top?f.top=r.top+"px":f.bottom=r.bottom+"px",t.left?f.left=r.left+"px":f.right=r.right+"px"},h=!1;(r.page.top||r.page.bottom)&&(r.page.left||r.page.right)?(f.position="absolute",l(r.page,t.page)):(r.viewport.top||r.viewport.bottom)&&(r.viewport.left||r.viewport.right)?(f.position="fixed",l(r.viewport,t.viewport)):typeof r.offset!="undefined"&&r.offset.top&&
r.offset.left?function(){f.position="absolute";var e=n.cache("target-offsetparent",function(){return c(n.target)});c(n.element)!==e&&E(function(){n.element.parentNode.removeChild(n.element),e.appendChild(n.element)}),l(r.offset,t.offset),h=!0}():(f.position="absolute",l({top:!0,left:!0},t.page));if(!h){var d=!0,v=this.element.parentNode;while(v&&v.tagName!=="BODY"){if(getComputedStyle(v).position!=="static"){d=!1;break}v=v.parentNode}d||(this.element.parentNode.removeChild(this.element),document.
body.appendChild(this.element))}var m={},g=!1;for(var s in f){var y=f[s],b=this.element.style[s];b!==""&&y!==""&&["top","left","bottom","right"].indexOf(s)>=0&&(b=parseFloat(b),y=parseFloat(y)),b!==y&&(g=!0,m[s]=y)}g&&E(function(){p(n.element.style,m)})}}]),e}();q.modules=[],s.position=A;var R=p(q,s);"use strict";var T=function(){function e(e,t){var n=[],r=!0,i=!1,s=undefined;try{for(var o=e[Symbol.iterator](),u;!(r=(u=o.next()).done);r=!0){n.push(u.value);if(t&&n.length===t)break}}catch(a){i=!0,
s=a}finally{try{!r&&o["return"]&&o["return"]()}finally{if(i)throw s}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),N=s.Utils,l=N.getBounds,p=N.extend,b=N.updateClasses,E=N.defer,U=["left","top","right","bottom"];s.modules.push({position:function(t){var n=this,r=t.top,i=t.left,s=t.targetAttachment;if(!this.options.constraints)return!0;var o=this.cache("element-bounds"
,function(){return l(n.element)}),u=o.height,a=o.width;if(a===0&&u===0&&typeof this.lastSize!="undefined"){var f=this.lastSize;a=f.width,u=f.height}var c=this.cache("target-bounds",function(){return n.getTargetBounds()}),h=c.height,d=c.width,v=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(e){var t=e.outOfBoundsClass,n=e.pinnedClass;t&&v.push(t),n&&v.push(n)}),v.forEach(function(e){["left","top","right","bottom"].forEach(function(t){v.push(e+"-"+
t)})});var m=[],g=p({},s),y=p({},this.attachment);return this.options.constraints.forEach(function(e){var t=e.to,o=e.attachment,f=e.pin;typeof o=="undefined"&&(o="");var l=undefined,c=undefined;if(o.indexOf(" ")>=0){var p=o.split(" "),v=T(p,2);c=v[0],l=v[1]}else l=c=o;var b=z(n,t);if(c==="target"||c==="both")r<b[1]&&g.top==="top"&&(r+=h,g.top="bottom"),r+u>b[3]&&g.top==="bottom"&&(r-=h,g.top="top");c==="together"&&(r<b[1]&&g.top==="top"&&(y.top==="bottom"?(r+=h,g.top="bottom",r+=u,y.top="top"):y.
top==="top"&&(r+=h,g.top="bottom",r-=u,y.top="bottom")),r+u>b[3]&&g.top==="bottom"&&(y.top==="top"?(r-=h,g.top="top",r-=u,y.top="bottom"):y.top==="bottom"&&(r-=h,g.top="top",r+=u,y.top="top")),g.top==="middle"&&(r+u>b[3]&&y.top==="top"?(r-=u,y.top="bottom"):r<b[1]&&y.top==="bottom"&&(r+=u,y.top="top")));if(l==="target"||l==="both")i<b[0]&&g.left==="left"&&(i+=d,g.left="right"),i+a>b[2]&&g.left==="right"&&(i-=d,g.left="left");l==="together"&&(i<b[0]&&g.left==="left"?y.left==="right"?(i+=d,g.left="right"
,i+=a,y.left="left"):y.left==="left"&&(i+=d,g.left="right",i-=a,y.left="right"):i+a>b[2]&&g.left==="right"?y.left==="left"?(i-=d,g.left="left",i-=a,y.left="right"):y.left==="right"&&(i-=d,g.left="left",i+=a,y.left="left"):g.left==="center"&&(i+a>b[2]&&y.left==="left"?(i-=a,y.left="right"):i<b[0]&&y.left==="right"&&(i+=a,y.left="left")));if(c==="element"||c==="both")r<b[1]&&y.top==="bottom"&&(r+=u,y.top="top"),r+u>b[3]&&y.top==="top"&&(r-=u,y.top="bottom");if(l==="element"||l==="both")i<b[0]&&y.left==="right"&&
(i+=a,y.left="left"),i+a>b[2]&&y.left==="left"&&(i-=a,y.left="right");typeof f=="string"?f=f.split(",").map(function(e){return e.trim()}):f===!0&&(f=["top","left","right","bottom"]),f=f||[];var w=[],E=[];r<b[1]&&(f.indexOf("top")>=0?(r=b[1],w.push("top")):E.push("top")),r+u>b[3]&&(f.indexOf("bottom")>=0?(r=b[3]-u,w.push("bottom")):E.push("bottom")),i<b[0]&&(f.indexOf("left")>=0?(i=b[0],w.push("left")):E.push("left")),i+a>b[2]&&(f.indexOf("right")>=0?(i=b[2]-a,w.push("right")):E.push("right")),w.length&&
function(){var e=undefined;typeof n.options.pinnedClass!="undefined"?e=n.options.pinnedClass:e=n.getClass("pinned"),m.push(e),w.forEach(function(t){m.push(e+"-"+t)})}(),E.length&&function(){var e=undefined;typeof n.options.outOfBoundsClass!="undefined"?e=n.options.outOfBoundsClass:e=n.getClass("out-of-bounds"),m.push(e),E.forEach(function(t){m.push(e+"-"+t)})}();if(w.indexOf("left")>=0||w.indexOf("right")>=0)y.left=g.left=!1;if(w.indexOf("top")>=0||w.indexOf("bottom")>=0)y.top=g.top=!1;(g.top!==s
.top||g.left!==s.left||y.top!==n.attachment.top||y.left!==n.attachment.left)&&n.updateAttachClasses(y,g)}),E(function(){n.options.addTargetClasses!==!1&&b(n.target,m,v),b(n.element,m,v)}),{top:r,left:i}}}),"use strict";var N=s.Utils,l=N.getBounds,b=N.updateClasses,E=N.defer;s.modules.push({position:function(t){var n=this,r=t.top,i=t.left,s=this.cache("element-bounds",function(){return l(n.element)}),o=s.height,u=s.width,a=this.getTargetBounds(),f=r+o,c=i+u,h=[];r<=a.bottom&&f>=a.top&&["left","right"
].forEach(function(e){var t=a[e];(t===i||t===c)&&h.push(e)}),i<=a.right&&c>=a.left&&["top","bottom"].forEach(function(e){var t=a[e];(t===r||t===f)&&h.push(e)});var p=[],d=[],v=["left","top","right","bottom"];return p.push(this.getClass("abutted")),v.forEach(function(e){p.push(n.getClass("abutted")+"-"+e)}),h.length&&d.push(this.getClass("abutted")),h.forEach(function(e){d.push(n.getClass("abutted")+"-"+e)}),E(function(){n.options.addTargetClasses!==!1&&b(n.target,d,p),b(n.element,d,p)}),!0}}),"use strict"
;var T=function(){function e(e,t){var n=[],r=!0,i=!1,s=undefined;try{for(var o=e[Symbol.iterator](),u;!(r=(u=o.next()).done);r=!0){n.push(u.value);if(t&&n.length===t)break}}catch(a){i=!0,s=a}finally{try{!r&&o["return"]&&o["return"]()}finally{if(i)throw s}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();return s.modules.push({position:function(t){var n=t.top,r=t.
left;if(!this.options.shift)return;var i=this.options.shift;typeof this.options.shift=="function"&&(i=this.options.shift.call(this,{top:n,left:r}));var s=undefined,o=undefined;if(typeof i=="string"){i=i.split(" "),i[1]=i[1]||i[0];var u=i,a=T(u,2);s=a[0],o=a[1],s=parseFloat(s,10),o=parseFloat(o,10)}else s=i.top,o=i.left;return n+=s,r+=o,{top:n,left:r}}}),R}),Visitor.getInstance=function(e,t){var n,r=window.s_c_il,i;0>e.indexOf("@")&&(e+="@AdobeOrg");if(r)for(i=0;i<r.length;i++)if((n=r[i])&&"Visitor"==
n._c&&(n.marketingCloudOrgID==e||t&&n.namespace==t))return n;return new Visitor(e,t)},define("visitor-api",function(){}),s=new AppMeasurement,s.visitorNamespace="adobecorp",s.trackInlineStats=!0,s.trackDownloadLinks=!0,s.trackExternalLinks=!0,s.linkLeaveQueryString=!1,s.linkTrackEvents="None",s.linkTrackVars="None",s.trackingServer="stats.adobe.com",s.trackingServerSecure="sstats.adobe.com",AppMeasurement.getInstance=s_gi,window.s_objectID||(window.s_objectID=0),s_pgicq(),define("app-measurement"
,["visitor-api"],function(){}),CSXSWindowType._PANEL="Panel",CSXSWindowType._MODELESS="Modeless",CSXSWindowType._MODAL_DIALOG="ModalDialog",EvalScript_ErrMessage="EvalScript error.",Version.MAX_NUM=999999999,CSEvent.prototype.data="",SystemPath.USER_DATA="userData",SystemPath.COMMON_FILES="commonFiles",SystemPath.MY_DOCUMENTS="myDocuments",SystemPath.APPLICATION="application",SystemPath.EXTENSION="extension",SystemPath.HOST_APPLICATION="hostApplication",ColorType.RGB="rgb",ColorType.GRADIENT="gradient"
,ColorType.NONE="none",CSInterface.THEME_COLOR_CHANGED_EVENT="com.adobe.csxs.events.ThemeColorChanged",CSInterface.prototype.hostEnvironment=JSON.parse(window.__adobe_cep__.getHostEnvironment()),CSInterface.prototype.getHostEnvironment=function(){return this.hostEnvironment=JSON.parse(window.__adobe_cep__.getHostEnvironment()),this.hostEnvironment},CSInterface.prototype.closeExtension=function(){window.__adobe_cep__.closeExtension()},CSInterface.prototype.getSystemPath=function(e){var t=decodeURI
(window.__adobe_cep__.getSystemPath(e)),n=this.getOSInformation();return n.indexOf("Windows")>=0?t=t.replace("file:///",""):n.indexOf("Mac")>=0&&(t=t.replace("file://","")),t},CSInterface.prototype.evalScript=function(e,t){if(t===null||t===undefined)t=function(e){};window.__adobe_cep__.evalScript(e,t)},CSInterface.prototype.getApplicationID=function(){var e=this.hostEnvironment.appId;return e},CSInterface.prototype.getHostCapabilities=function(){var e=JSON.parse(window.__adobe_cep__.getHostCapabilities
());return e},CSInterface.prototype.dispatchEvent=function(e){typeof e.data=="object"&&(e.data=JSON.stringify(e.data)),window.__adobe_cep__.dispatchEvent(e)},CSInterface.prototype.addEventListener=function(e,t,n){window.__adobe_cep__.addEventListener(e,t,n)},CSInterface.prototype.removeEventListener=function(e,t,n){window.__adobe_cep__.removeEventListener(e,t,n)},CSInterface.prototype.requestOpenExtension=function(e,t){window.__adobe_cep__.requestOpenExtension(e,t)},CSInterface.prototype.getExtensions=
function(e){var t=JSON.stringify(e),n=window.__adobe_cep__.getExtensions(t),r=JSON.parse(n);return r},CSInterface.prototype.getNetworkPreferences=function(){var e=window.__adobe_cep__.getNetworkPreferences(),t=JSON.parse(e);return t},CSInterface.prototype.initResourceBundle=function(){var e=JSON.parse(window.__adobe_cep__.initResourceBundle()),t=document.querySelectorAll("[data-locale]");for(var n=0;n<t.length;n++){var r=t[n],i=r.getAttribute("data-locale");if(i)for(var s in e)if(s.indexOf(i)===0
){var o=e[s];if(s.length==i.length)r.innerHTML=o;else if("."==s.charAt(i.length)){var u=s.substring(i.length+1);r[u]=o}}}return e},CSInterface.prototype.dumpInstallationInfo=function(){return window.__adobe_cep__.dumpInstallationInfo()},CSInterface.prototype.getOSInformation=function(){var e=navigator.userAgent;if(navigator.platform=="Win32"||navigator.platform=="Windows"){var t="Windows",n="";return e.indexOf("Windows")>-1&&(e.indexOf("Windows NT 5.0")>-1?t="Windows 2000":e.indexOf("Windows NT 5.1"
)>-1?t="Windows XP":e.indexOf("Windows NT 5.2")>-1?t="Windows Server 2003":e.indexOf("Windows NT 6.0")>-1?t="Windows Vista":e.indexOf("Windows NT 6.1")>-1?t="Windows 7":e.indexOf("Windows NT 6.2")>-1?t="Windows 8":e.indexOf("Windows NT 6.3")>-1?t="Windows 8.1":e.indexOf("Windows NT 10")>-1&&(t="Windows 10"),e.indexOf("WOW64")>-1?n=" 64-bit":n=" 32-bit"),t+n}if(navigator.platform=="MacIntel"||navigator.platform=="Macintosh"){var r="Mac OS X";return e.indexOf("Mac OS X")>-1&&(r=e.substring(e.indexOf
("Mac OS X"),e.indexOf(")")),r=r.replace(/_/g,".")),r}return"Unknown Operation System"},CSInterface.prototype.openURLInDefaultBrowser=function(e){return cep.util.openURLInDefaultBrowser(e)},CSInterface.prototype.getExtensionID=function(){return window.__adobe_cep__.getExtensionId()},CSInterface.prototype.getScaleFactor=function(){return window.__adobe_cep__.getScaleFactor()},CSInterface.prototype.setScaleFactorChangedHandler=function(e){window.__adobe_cep__.setScaleFactorChangedHandler(e)},CSInterface
.prototype.getCurrentApiVersion=function(){var e=JSON.parse(window.__adobe_cep__.getCurrentApiVersion());return e},CSInterface.prototype.setPanelFlyoutMenu=function(e){if("string"!=typeof e)return;window.__adobe_cep__.invokeSync("setPanelFlyoutMenu",e)},CSInterface.prototype.updatePanelMenuItem=function(e,t,n){var r=!1;if(this.getHostCapabilities().EXTENDED_PANEL_MENU){var i=new MenuItemStatus(e,t,n);r=window.__adobe_cep__.invokeSync("updatePanelMenuItem",JSON.stringify(i))}return r},CSInterface.
prototype.setContextMenu=function(e,t){if("string"!=typeof e)return;window.__adobe_cep__.invokeAsync("setContextMenu",e,t)},CSInterface.prototype.setContextMenuByJSON=function(e,t){if("string"!=typeof e)return;window.__adobe_cep__.invokeAsync("setContextMenuByJSON",e,t)},CSInterface.prototype.updateContextMenuItem=function(e,t,n){var r=new ContextMenuItemStatus(e,t,n);ret=window.__adobe_cep__.invokeSync("updateContextMenuItem",JSON.stringify(r))},CSInterface.prototype.isWindowVisible=function(){return window
.__adobe_cep__.invokeSync("isWindowVisible","")},CSInterface.prototype.resizeContent=function(e,t){window.__adobe_cep__.resizeContent(e,t)},CSInterface.prototype.registerInvalidCertificateCallback=function(e){return window.__adobe_cep__.registerInvalidCertificateCallback(e)},CSInterface.prototype.registerKeyEventsInterest=function(e){return window.__adobe_cep__.registerKeyEventsInterest(e)},CSInterface.prototype.setWindowTitle=function(e){window.__adobe_cep__.invokeSync("setWindowTitle",e)},CSInterface
.prototype.getWindowTitle=function(){return window.__adobe_cep__.invokeSync("getWindowTitle","")},define("libs/CSInterface",function(){}),IMSInterface.prototype.addEventListener=function(e,t){window.__adobe_cep__.addEventListener(e,t)},IMSInterface.prototype.removeEventListener=function(e,t){window.__adobe_cep__.removeEventListener(e,t)},IMSInterface.prototype.imsConnect=function(){var e=window.__adobe_cep__.imsConnect();return e},IMSInterface.prototype.imsDisconnect=function(e){window.__adobe_cep__
.imsDisconnect(e)},IMSInterface.prototype.imsFetchAccounts=function(e,t){var n=window.__adobe_cep__.imsFetchAccounts(e,t);return n},IMSInterface.prototype.imsFetchAccessToken=function(e,t,n,r,i,s){return window.__adobe_cep__.imsFetchAccessToken(e,t,n,r,i,s)},IMSInterface.prototype.imsRevokeDeviceToken=function(e,t,n,r,i){return window.__adobe_cep__.imsFetchAccessToken(e,t,n,r,i,"REVOKE")},IMSInterface.prototype.imsSetProxyCredentials=function(e,t){window.__adobe_cep__.imsSetProxyCredentials(e,t)}
,IMSInterface.prototype.showAAM=function(e,t,n,r,i,s){return window.__adobe_cep__.showAAM(e,t,n,r,i,s)},IMSInterface.prototype.imsGetCurrentUserId=function(){var e=window.__adobe_cep__.getCurrentImsUserId();return e},IMSInterface.prototype.imsGetCurrentUserIdHelper=function(e){var t=JSON.parse(window.__adobe_cep__.getHostEnvironment()),n=t.appName;if(n==="ILST")window.__adobe_cep__.evalScript("app.userGUID",function(t){e(t)});else if(n==="IDSN")window.__adobe_cep__.evalScript("app.userGuid",function(
t){e(t)});else if(n==="PHSP"||n==="PHXS")window.__adobe_cep__.evalScript("var getUserIdPhotoshop = function() {var userId = '';try {var bhnc = app.charIDToTypeID('bhnc');var ref = new ActionReference();ref.putProperty(app.charIDToTypeID('Prpr'), bhnc);ref.putEnumerated(app.charIDToTypeID('capp'), app.charIDToTypeID('Ordn'), app.charIDToTypeID('Trgt'));var appDesc = app.executeActionGet(ref);if (appDesc.hasKey(bhnc)) {userId = appDesc.getString(bhnc);}} catch (e) {}return userId;};",function(t){window
.__adobe_cep__.evalScript("getUserIdPhotoshop()",function(t){e(t)})});else{var r=window.__adobe_cep__.getCurrentImsUserId();e(r)}},IMSInterface.prototype.imsConnectWithEndpoint=function(e){var t={};return t.imsEndpoint=e===undefined||e===null||e===""?"undefined":e,JSON.parse(window.__adobe_cep__.invokeSync("imsConnectWithEndpoint",JSON.stringify(t))).result},IMSInterface.prototype.imsFetchContinueToken=function(e,t,n,r,i,s,o){if(r===undefined||r===null)r="";if(i===undefined||i===null)i="";if(s===
undefined||s===null)s="";if(o===undefined||o===null)o="";var u={};return u.imsRef=e,u.bearerToken=t,u.targetClientId=n,u.redirectUri=r,u.scope=i,u.responseType=s,u.locale=o,JSON.parse(window.__adobe_cep__.invokeSync("imsFetchContinueToken",JSON.stringify(u))).result},IMSInterface.prototype.imsLogoutUser=function(e,t,n){var r={};return r.imsRef=e,r.userAccountGuid=t,r.clientId=n,JSON.parse(window.__adobe_cep__.invokeSync("imsLogoutUser",JSON.stringify(r))).result},IMSInterface.prototype.imsFetchUserProfileData=
function(e,t){var n={};return n.imsRef=e,n.userAccountGuid=t,window.__adobe_cep__.invokeSync("imsFetchUserProfileData",JSON.stringify(n))},IMSInterface.prototype.imsAttemptSSOJumpWorkflows=function(e,t,n,r,i,s,o,u,a,f,l){e||(e=!1);if(r===undefined||r===null)r="";if(i===undefined||i===null)i="";if(s===undefined||s===null)s="";if(u===undefined||u===null)u="";if(a===undefined||a===null)a="";if(f===undefined||f===null)f="";if(n===undefined||n===null)n="";if(o===undefined||o===null)o="";var c={};return c
.imsRef=n,c.openBrowser=e,c.url=t,c.clientId=r,c.clientSecret=i,c.scope=s,c.userAccountGuid=o,c.targetClientId=u,c.targetScope=a,c.targetResponseType=f,c.targetLocale=l,JSON.parse(window.__adobe_cep__.invokeSync("imsAttemptSSOJumpWorkflows",JSON.stringify(c))).result},IMSInterface.events={imsFetchAccessTokenWithStatus:"com.adobe.csxs.events.internal.ims.FetchAccessTokenWithStatus",imsFetchAccessToken:"com.adobe.csxs.events.internal.ims.FetchAccessToken",imsRevokeAccessToken:"com.adobe.csxs.events.internal.ims.FetchAccessTokenWithStatus"
,imsFetchContinueToken:"com.adobe.csxs.events.internal.ims.FetchAccessTokenWithStatus",imsAAMIMSStatus:"vulcan.SuiteMessage.com.adobe.aam.AAMIMSStatus",imsLogoutUser:"com.adobe.csxs.events.internal.ims.LogoutUser",imsSSOStatus:"com.adobe.csxs.events.internal.ims.SSOStatus"},IMSInterface.status={IMS_SUCCESS:"0",IMS_ERROR_FAILURE:"1",IMS_ERROR_INVALID_ARGUMENTS:"2",IMS_ERROR_CANCEL:"20",IMS_ERROR_TIMEOUT:"21",IMS_ERROR_HTTPFAILURE:"22",IMS_ERROR_SSLFAILURE:"23",IMS_ERROR_AUTH_PROXY_REQUIRED:"24",IMS_ERROR_AUTH_PROXY_FAILED
:"25",IMS_ERROR_IN_ACCESS_IDP:"26",IMS_ERROR_ANOTHER_REQUEST_IN_PROCESS:"40",IMS_ERROR_IN_READ_USER_DATA:"60",IMS_ERROR_IN_SAVE_USER_DATA:"61",IMS_ERROR_IN_REMOVE_USER_DATA:"62",IMS_ERROR_USER_DATA_NOT_PRESENT:"63",IMS_ERROR_IN_READ_DEVICE_TOKEN:"64",IMS_ERROR_IN_SAVE_DEVICE_TOKEN:"65",IMS_ERROR_IN_REMOVE_DEVICE_TOKEN:"66",IMS_ERROR_DEVICE_TOKEN_NOT_PRESENT:"67",IMS_ERROR_INVALID_DEVICE_TOKEN:"68",IMS_ERROR_CLIENTID_NOT_PRESENT:"69",IMS_ERROR_IN_FETCH_USER_ACCOUNTS:"70",IMS_ERROR_IN_SAVE_USER_FOR_CLIENTID
:"71",IMS_ERROR_DEVICE_ID_NOT_PRESENT:"72",IMS_ERROR_DEFAULT_USER_FOR_CLIENTID_NOT_PRESENT:"73",IMS_ERROR_NO_USER_RECORDS_PRESENT:"74",IMS_ERROR_ACCESS_DENIED:"80",IMS_ERROR_INVALID_REQUEST:"81",IMS_ERROR_INVALID_CLIENT:"82",IMS_ERROR_INVALID_GRANT:"83",IMS_ERROR_UNAUTHORIZED_CLIENT:"84",IMS_ERROR_UNSUPPORTED_RESPONSE_TYPE:"85",IMS_ERROR_INVALID_SCOPE:"86",IMS_ERROR_UNSUPPORTED_GRANT_TYPE:"87",IMS_ERROR_BAD_REQUEST:"88",IMS_ERROR_INVALID_CREDENTIALS:"89",IMS_ERROR_IN_GET_AUTH_DATA_FROM_IDP:"100",
IMS_ERROR_IN_GET_DEVICE_TOKEN_FROM_IDP:"101",IMS_ERROR_IN_GET_REFRESH_TOKEN_FROM_IDP:"102",IMS_ERROR_IN_GET_ACCESS_TOKEN_FROM_IDP:"103",IMS_ERROR_IN_GET_PROFILE_DATA_FROM_IDP:"104",IMS_ERROR_TOU_CHANGED:"120",IMS_ERROR_IN_REVOKE_DEVICE_TOKEN:"121",IMS_ERROR_TOU_NOT_CURRENT:"122",IMS_ERROR_EVS_INVALID:"123",IMS_ERROR_ACCT_ACT_REQ:"124",IMS_ERROR_ACCT_DISABLED:"125",IMS_ERROR_SUBS_ACT_REQ:"126",IMS_ERROR_SUBS_NO_SUB:"127",IMS_ERROR_NO_BUDDY_GROUP_FOR_CLIENT:"150",IMS_ERROR_CLIENT_REGISTERED_FOR_OTHER_GROUP
:"151",IMS_ERROR_GROUP_ENTRY_NOT_PRESENT:"152",IMS_ERROR_IN_SAVE_GROUP_DATA:"153",IMS_ERROR_CNAME_ENTRY_NOT_PRESENT:"154",IMS_ERROR_IN_SAVE_BACKOFF_DATA:"155",IMSMANAGER_ERROR_EXCEPTION:"3000",IMSMANAGER_ERROR_ENCODING:"3001",IMSMANAGER_SUCCESS_BROWSER_OPENED:"3002",IMSMANAGER_ERROR_BROWSER_FAILED_TO_OPEN:"3003",IMS_UNKNOWN_ERROR:"0xFFFF"},IMSInterface.prototype.events=IMSInterface.events,define("libs/IMSInterface",function(){}),Vulcan.prototype.getTargetSpecifiers=function(){var e={};return JSON
.parse(window.__adobe_cep__.invokeSync("vulcanGetTargetSpecifiers",JSON.stringify(e)))},Vulcan.prototype.launchApp=function(e,t,n){if(!requiredParamsValid(e))return!1;var r={};return r.targetSpecifier=e,r.focus=t?"true":"false",r.cmdLine=n===undefined||n===null?"":n,JSON.parse(window.__adobe_cep__.invokeSync("vulcanLaunchApp",JSON.stringify(r))).result},Vulcan.prototype.isAppRunning=function(e){if(!requiredParamsValid(e))return!1;var t={};return t.targetSpecifier=e,JSON.parse(window.__adobe_cep__
.invokeSync("vulcanIsAppRunning",JSON.stringify(t))).result},Vulcan.prototype.isAppInstalled=function(e){if(!requiredParamsValid(e))return!1;var t={};return t.targetSpecifier=e,JSON.parse(window.__adobe_cep__.invokeSync("vulcanIsAppInstalled",JSON.stringify(t))).result},Vulcan.prototype.getAppPath=function(e){if(!requiredParamsValid(e))return"";var t={};return t.targetSpecifier=e,JSON.parse(window.__adobe_cep__.invokeSync("vulcanGetAppPath",JSON.stringify(t))).result},Vulcan.prototype.addMessageListener=
function(e,t,n){if(!requiredParamsValid(e,t)||!strStartsWith(e,VulcanMessage.TYPE_PREFIX))return;var r={};r.type=e,window.__adobe_cep__.invokeAsync("vulcanAddMessageListener",JSON.stringify(r),t,n)},Vulcan.prototype.removeMessageListener=function(e,t,n){if(!requiredParamsValid(e,t)||!strStartsWith(e,VulcanMessage.TYPE_PREFIX))return;var r={};r.type=e,window.__adobe_cep__.invokeAsync("vulcanRemoveMessageListener",JSON.stringify(r),t,n)},Vulcan.prototype.dispatchMessage=function(e){if(!requiredParamsValid
(e)||!strStartsWith(e.type,VulcanMessage.TYPE_PREFIX))return;var t={},n=new VulcanMessage(e.type);n.initialize(e),t.vulcanMessage=n,window.__adobe_cep__.invokeSync("vulcanDispatchMessage",JSON.stringify(t))},Vulcan.prototype.getPayload=function(e){if(!requiredParamsValid(e)||!strStartsWith(e.type,VulcanMessage.TYPE_PREFIX))return null;var t=new VulcanMessage(e.type);return t.initialize(e),t.getPayload()};var VulcanInterface=new Vulcan;VulcanMessage.TYPE_PREFIX="vulcan.SuiteMessage.",VulcanMessage
.SCOPE_SUITE="GLOBAL",VulcanMessage.DEFAULT_APP_ID="UNKNOWN",VulcanMessage.DEFAULT_APP_VERSION="UNKNOWN",VulcanMessage.DEFAULT_DATA="<data><payload></payload></data>",VulcanMessage.dataTemplate="<data>{0}</data>",VulcanMessage.payloadTemplate="<payload>{0}</payload>",VulcanMessage.prototype.initialize=function(e){this.type=e.type,this.scope=e.scope,this.appId=e.appId,this.appVersion=e.appVersion,this.data=e.data},VulcanMessage.prototype.xmlData=function(){if(this.data===undefined){var e="";e=String
.format(VulcanMessage.payloadTemplate,e),this.data=String.format(VulcanMessage.dataTemplate,e)}return this.data},VulcanMessage.prototype.setPayload=function(e){var t=cep.encoding.convertion.utf8_to_b64(e);t=String.format(VulcanMessage.payloadTemplate,t),this.data=String.format(VulcanMessage.dataTemplate,t)},VulcanMessage.prototype.getPayload=function(){var e=GetValueByKey(this.data,"payload");return e!==null?cep.encoding.convertion.b64_to_utf8(e):null},VulcanMessage.prototype.toString=function(){
var e="type="+this.type;return e+=", scope="+this.scope,e+=", appId="+this.appId,e+=", appVersion="+this.appVersion,e+=", data="+this.xmlData(),e},String.format=function(e){if(arguments.length===0)return null;var t=Array.prototype.slice.call(arguments,1);return e.replace(/\{(\d+)\}/g,function(e,n){return t[n]})},define("libs/Vulcan",function(){});var DEBUG_LOGGING=!1;AgoraLib.prototype=function(){var e=function(e){if(typeof Vulcan=="undefined")throw"Vulcan.js is required.";if(e==null||e==undefined
)e=function(e){};this.isEntitledCallback=e;var t=this,n=!1;this.checkConnection(function(r){log("IsEntitled checkConnection response:"+r.response+" with status: "+r.status+" and statusCode: "+r.statusCode),n=!0;if(r.statusCode==="0"&&t.compareVersion(r.response,"1.0.0")>=0){log("Connection check successful, now continue with isEntitled API call...");var i='<Request name="'+AgoraLib.IS_ENTITLED+'" callerID="'+t.callerID+'"><Parameters>';i+='<Parameter name="BundleID"><Value>'+t.bundleID+"</Value></Parameter>"
,i+="</Parameters></Request>";var s=String.format(AgoraLib.MESSAGE_REQUEST_TEMPLATE,i),o=new VulcanMessage(AgoraLib.MESSAGE_TYPE);o.setPayload(s),VulcanInterface.addMessageListener(AgoraLib.RESPONSE_TYPE,t.responseCallback),VulcanInterface.dispatchMessage(o)}else{var u=new AgoraLibResponse("Unknown",r.status,r.statusCode);e(u)}}),setTimeout(function(){if(!n){log("Request timed out");var t=new AgoraLibResponse("Unknown",AgoraLib.status.internalClientError.status,AgoraLib.status.internalClientError
.code);e(t)}},AgoraLib.TIMEOUT)},t=function(e,t){if(typeof Vulcan=="undefined")throw"Vulcan.js is required.";if(e==null||e==undefined)e=function(e){};this.getPurchaseUrlCallback=e;var t=!requiredParamsValid(t)||t===""?!1:t,n=this,r=!1;this.checkConnection(function(i){r=!0,log("getPurchaseUrl checkConnection response:"+i.response+" with status: "+i.status+" and statusCode: "+i.statusCode);if(i.statusCode==="0"&&n.compareVersion(i.response,"1.0.0")>=0){log("Connection check successful, now continue with getPurchaseUrl API call..."
);var s='<Request name="'+AgoraLib.GET_PURCHASE_URL+'" callerID="'+n.callerID+'"><Parameters>';s+='<Parameter name="BundleID"><Value>'+n.bundleID+"</Value></Parameter>",s+='<Parameter name="StraightToCheckout"><Value>'+t+"</Value></Parameter>",s+="</Parameters></Request>";var o=String.format(AgoraLib.MESSAGE_REQUEST_TEMPLATE,s),u=new VulcanMessage(AgoraLib.MESSAGE_TYPE);u.setPayload(o),VulcanInterface.addMessageListener(AgoraLib.RESPONSE_TYPE,n.responseCallback),VulcanInterface.dispatchMessage(u)
}else{var a=new AgoraLibResponse("",i.status,i.statusCode);e(a)}}),setTimeout(function(){if(!r){log("Request timed out");var t=new AgoraLibResponse("",AgoraLib.status.internalClientError.status,AgoraLib.status.internalClientError.code);e(t)}},AgoraLib.TIMEOUT)},n=function(e){if(typeof Vulcan=="undefined")throw"Vulcan.js is required.";if(typeof CSInterface=="undefined")throw"CSInterface.js is required.";if(e==null||e==undefined)e=function(e){};this.createEntitlementCallback=e;var t=this,n=!1;this.
checkConnection(function(r){log("createEntitlement checkConnection response:"+r.response+" with status: "+r.status+" and statusCode: "+r.statusCode),n=!0;if(r.statusCode==="0"&&t.compareVersion(r.response,"1.0.0")>=0){log("Connection check successful, now continue with createEntitlement API call...");var i=new CSInterface,s=i.getSystemPath(SystemPath.EXTENSION),o=i.getOSInformation(),u=o.indexOf("Win")>=0?"\\":"/",a=s+u+"CSXS"+u+"manifest.xml",f=window.cep.fs.readFile(a),l=!0;if(window.DOMParser)
{var c=new window.DOMParser;try{var h=c.parseFromString(f.data,"text/xml"),p=h.getElementsByTagName("ExtensionManifest")[0];if(p){var d=p.attributes.getNamedItem("ExtensionBundleVersion").nodeValue;log("ExtensionBundleVersion: "+d);var v='<Request name="'+AgoraLib.CREATE_ENTITLEMENT+'" callerID="'+t.callerID+'"><Parameters>';v+='<Parameter name="BundleID"><Value>'+t.bundleID+"</Value></Parameter>",v+='<Parameter name="ExtensionBundleVersion"><Value>'+d+"</Value></Parameter>",v+="</Parameters></Request>"
;var m=String.format(AgoraLib.MESSAGE_REQUEST_TEMPLATE,v),g=new VulcanMessage(AgoraLib.MESSAGE_TYPE);g.setPayload(m),VulcanInterface.addMessageListener(AgoraLib.RESPONSE_TYPE,t.responseCallback),VulcanInterface.dispatchMessage(g),l=!1}}catch(y){log("AgoraLibError: "+y)}}if(l){var b=new AgoraLibResponse("",AgoraLib.status.internalClientError.status,AgoraLib.status.internalClientError.code);e(b)}}else{var b=new AgoraLibResponse("",r.status,r.statusCode);e(b)}}),setTimeout(function(){if(!n){log("Request timed out"
);var t=new AgoraLibResponse("",AgoraLib.status.internalClientError.status,AgoraLib.status.internalClientError.code);e(t)}},AgoraLib.TIMEOUT)};return{constructor:AgoraLib,isEntitled:e,getPurchaseUrl:t,createEntitlement:n,log:log}}(),AgoraLib.status={success:{status:"Success",code:"0"},updateAvailable:{status:"Success. Update available",code:"1"},entitlementAlreadyCreated:{status:"Success. Entitlement already created",code:"2"},perpetualPurchase:{status:"Perpetual purchase",code:"1"},trialPurchase
:{status:"Trial purchase",code:"2"},subscriptionPurchase:{status:"Subscription purchase",code:"3"},free:{status:"Free",code:"4"},userNotEntitledError:{status:"User not entitled",code:"-1"},subscriptionExpiredError:{status:"Subscription expired",code:"-2"},networkDisabledError:{status:"Network disabled",code:"1001"},networkError:{status:"Network error",code:"1002"},productNotFoundError:{status:"Product not found",code:"1003"},UserLoggedOutError:{status:"User logged out",code:"1004"},internalClientError
:{status:"Internal client error",code:"1005"},internalServerError:{status:"Internal server error",code:"1006"},creativeCloudFailedToLaunchError:{status:"Adobe Creative Cloud Desktop failed to launch",code:"1007"},creativeCloudNotFoundError:{status:"Adobe Creative Cloud Desktop is not installed",code:"1008"},ApiNotSupportedError:{status:"API not supported",code:"1009"}},AgoraLib.IS_ENTITLED="IsEntitled",AgoraLib.GET_PURCHASE_URL="GetPurchaseUrl",AgoraLib.CREATE_ENTITLEMENT="CreateEntitlement",AgoraLib
.GET_VERSION="GetVersion",AgoraLib.STATUS="Status",AgoraLib.STATUSCODE="StatusCode",AgoraLib.MESSAGE_TYPE="vulcan.SuiteMessage.cosy.exchangeplugin.ApiRequest",AgoraLib.RESPONSE_TYPE="vulcan.SuiteMessage.cosy.exchangeplugin.ApiResponse",AgoraLib.ACCC_STARTED_UP_MESSAGE="vulcan.SuiteMessage.any.cosy.app.StartedUp",AgoraLib.MESSAGE_REQUEST_TEMPLATE="<Message><Requests>{0}</Requests></Message>",AgoraLib.MESSAGE_RESPONSE_TEMPLATE="<Message><Responses>{0}</Responses></Message>",AgoraLib.TIMEOUT=6e4,define
("libs/AgoraLib",function(){}),define("services/config/configuration",["require","exports","module","angular"],function(e,t){"use strict";var n=e("angular"),r=[function(){this.EXTENSION_ID="com.adobe.DesignLibraries.angular",this.strTempFolder="",this.locale="en-US",this.showTooltips=!0,this.DRAGDROP_ID="com.adobe.cep.dnd.pasteboardtype",this.DRAGDROP_SOURCE="com.adobe.designlibrary",this.isAirPanel=!1,this.nativeProxy=undefined,this.localRoot="/Adobe/Creative Cloud Libraries/",this.SYNC_NOTIFICATIONS_AVAILABLE=!1
,this.APP_NAME="",this.SUPPORTED_PRODUCTS=[],this.currentProduct=undefined,this.LEARN_MORE_URL_ROOT="https://www.adobe.com/go/cclibraries_help",this.SERVICE_ERROR_URL_ROOT="https://www.adobe.com/go/process_error",this.INSTALL_CC_APP_URL_ROOT="https://www.adobe.com/go/cc_install",this.UPDATE_CC_APP_URL_ROOT="https://www.adobe.com/go/process_update",this.UPDATE_CC_LIBRARIES_URL_ROOT="https://www.adobe.com/go/panel_update",this.AVAILABLE_HELP_LANGUAGES={ae:!0,cz:!0,dk:!0,de:!0,en:!0,es:!0,fi:!0,fr:!0
,hu:!0,il:!0,it:!0,jp:!0,kr:!0,no:!0,nl:!0,pl:!0,br:!0,ru:!0,se:!0,tr:!0,ua:!0,cn:!0,tw:!0},this.DEFAULT_HELP_LANGUAGE="en",this.CCWEB_ELEMENT_URL="https://ZZZZ/assets/libraries/YYYY/XXXX",this.CCWEB_LIBRARIES_URL="https://ZZZZ/assets/libraries/YYYY",this.CREATIVE_CLOUD_ID="creative_cloud",this.IMAGE_ELEMENT_TYPE="application/vnd.adobe.element.image+dcx",this.COLOR_ELEMENT_TYPE="application/vnd.adobe.element.color+dcx",this.COLOR_THEME_ELEMENT_TYPE="application/vnd.adobe.element.colortheme+dcx",this
.BRUSH_ELEMENT_TYPE="application/vnd.adobe.element.brush+dcx",this.CHARACTER_STYLE_ELEMENT_TYPE="application/vnd.adobe.element.characterstyle+dcx",this.PARAGRAPH_STYLE_ELEMENT_TYPE="application/vnd.adobe.element.paragraphstyle+dcx",this.LAYER_STYLE_ELEMENT_TYPE="application/vnd.adobe.element.layerstyle+dcx",this.LOOK_ELEMENT_TYPE="application/vnd.adobe.element.look+dcx",this.VIDEO_ELEMENT_TYPE="application/vnd.adobe.element.video+dcx",this.THREE_D_ELEMENT_TYPE="application/vnd.adobe.element.3d+dcx"
,this.PATTERN_ELEMENT_TYPE="application/vnd.adobe.element.pattern+dcx",this.IMAGE_RENDITION_SIZE=202,this.LOOK_RENDITION_SIZE=this.IMAGE_RENDITION_SIZE,this.VIDEO_RENDITION_SIZE=this.IMAGE_RENDITION_SIZE,this.THREE_D_RENDITION_SIZE=this.IMAGE_RENDITION_SIZE,this.BRUSH_RENDITION_SIZE=124,this.CHARACTER_STYLE_RENDITION_SIZE=104,this.PARAGRAPH_STYLE_RENDITION_SIZE=this.CHARACTER_STYLE_RENDITION_SIZE,this.LAYER_STYLE_RENDITION_SIZE=108,this.PATTERN_RENDITION_SIZE=this.IMAGE_RENDITION_SIZE,this.STOCK_NAMESPACE="adobestock"
,this.STOCK_DATA_KEY="trackingdata",this.STOCK_CLIENT_ID="AdobeStockClient2",this.STOCK_TARGET_SCOPE="AdobeID,openid,creative_cloud,read_organizations,gnav,additional_info.address.mail_to,sao.stock",this.STOCK_GET_USER_PROFILE_PATH="/Rest/Libraries/1/Member/Profile?locale=ZZZZ&content_id=YYYY&license=LLLL",this.STOCK_LICENSE_PATH="/Rest/Libraries/1/Content/License?content_id=ZZZZ&license=LLLL",this.STOCK_INFO_PATH="/Rest/Libraries/1/Content/Info?content_id=ZZZZ",this.STOCK_SEARCH_PATH="/Search",this
.STOCK_SEARCH_API_PATH="/Rest/Media/1/Search/Files",this.STOCK_ABANDON_TRANSACTION_PATH="/Rest/Libraries/1/Member/Abandon?&state=ZZZZ&content_id=YYYY&license=LLLL",this.STOCK_LICENSE_TYPE_STANDARD="Standard",this.STOCK_LICENSE_TYPE_EXTENDED="Extended",this.STOCK_VIDEO_LICENSE_TYPE_HD={label:"HD",field:"Video_HD"},this.STOCK_VIDEO_LICENSE_TYPE_4K={label:"4K",field:"Video_4K"},this.STOCK_VIDEO_LICENSE_TYPES=[this.STOCK_VIDEO_LICENSE_TYPE_4K,this.STOCK_VIDEO_LICENSE_TYPE_HD],this.STOCK_STATE_PURCHASED="purchased"
,this.STOCK_STATE_NOT_PURCHASED="not_purchased",this.STOCK_STATE_CANCELLED="cancelled",this.STOCK_SEARCH_RESULT_SIZE=50,this.STOCK_SEARCH_TIMEOUT=3e4,this.STOCK_SEARCH_OPTION_PHOTO={label:"DL_STOCK_SEARCH_OPTION_PHOTO",param:"photo"},this.STOCK_SEARCH_OPTION_ILLUSTRATION={label:"DL_STOCK_SEARCH_OPTION_ILLUSTRATION",param:"illustration"},this.STOCK_SEARCH_OPTION_VECTOR={label:"DL_STOCK_SEARCH_OPTION_VECTOR",param:"vector"},this.STOCK_SEARCH_OPTION_VIDEO={label:"DL_STOCK_SEARCH_OPTION_VIDEO",param:"video"
},this.STOCK_SEARCH_OPTIONS=[this.STOCK_SEARCH_OPTION_PHOTO,this.STOCK_SEARCH_OPTION_ILLUSTRATION,this.STOCK_SEARCH_OPTION_VECTOR,this.STOCK_SEARCH_OPTION_VIDEO],this.COLOR_NAMESPACE="color",this.COLOR_DATA_KEY="data",this.COLOR_REPRESENTATION_TYPE="application/vnd.adobe.color+json",this.THREE_D_NAMESPACE="3d",this.THREE_D_DATA_KEY="data",this.MAX_ELEMENTS=1e3,this.MAX_COMPONENT_SIZE=1073741824,this.DEFAULT_ELEMENTS_PER_CATEGORY=20,this.CONTEXT_MENUS_ENABLED=!0,this.IS_APP_IN_TOUCH_MODE=!1,this.APP_READY_MESSAGE="cclibraries.accessor.AppReady"
,this.APP_EDIT_ACCEPTED_MESSAGE="cclibraries.accessor.EditAcceptedMessage",this.APP_VERSION_INFO_MESSAGE="cclibraries.accessor.AppVersionInfoMessage"}];t.attach=function(e){n.module(e).service("configuration",r)}}),define("services/config/localSettings",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$window","csInterface","configuration","fileUtils",function(e,t,n,r){function s(e,t){this._path=e,this._fileName=t,this._writing=!1,this._pendingWrite=!1;
if(!i){try{this._settings=JSON.parse(localStorage.getItem("panelSettings"))||{}}catch(n){this._settings={}}return}var r="readFileSync";try{this._settings=JSON.parse(i[r](e+t))}catch(s){this._settings={}}}var i=nodeRequire("fs");s.prototype._write=function(){if(!i){localStorage.setItem("panelSettings",JSON.stringify(this._settings));return}var e=this;if(this._writing){this._pendingWrite=!0;return}this._writing=!0;var t=function(){e._writing=!1,e._pendingWrite&&(e._pendingWrite=!1,e._write())};r.ensurePathExists
(e._path,function(n){if(n){console.log(n),e._pendingWrite=!1,t();return}i.writeFile(e._path+e._fileName,JSON.stringify(e._settings,undefined,2),function(n){n&&(console.log(n),e._pendingWrite=!1),t()})})},s.prototype.get=function(e){return this._settings[e]},s.prototype.set=function(e,t){this._settings[e]=t,this._write()};var o=new s(t.getLocalRoot(),"settings.json"),u,a="existsSync";if(e.isDev||i[a](t.getGlobalRoot()+"debug"))u=new s(t.getGlobalRoot(),"debug");this.setValue=function(e,t){o.set(e,
t)},this.getValue=function(e){return o.get(e)},this.setDebugValue=function(e,t){u&&u.set(e,t)},this.getDebugValue=function(e){return u?u.get(e):undefined},this.hasDebugSettings=function(){return u!==undefined},this.showDebugMenu=function(){return this.hasDebugSettings()}}];t.attach=function(e){r.module(e).service("localSettings",i)}});var PRODUCT_CODES=["PHXS","ILST","IDSN","AEFT","PPRO","FLPR","DRWV","MUSE"],applications=PRODUCT_CODES.map(function(e){"use strict";return"applications/"+e+"/js/index"
}),overrides=PRODUCT_CODES.map(function(e){"use strict";return"applications/"+e+"/js/configuration/main"}),reqs=["require","angular"].concat(applications).concat(overrides);define("services/config/products",reqs,function(e){"use strict";var t=e("angular"),n=new CSInterface,r=n.hostEnvironment.appName,i=["$injector","configuration",function(e,t){var n=PRODUCT_CODES.map(function(n){var i=e.get(n);return n===r&&(t.currentProduct=i,t.APP_NAME=r),i});t.SUPPORTED_PRODUCTS=n.map(function(e){return e.config
})}],s=function(n){PRODUCT_CODES.forEach(function(t,i){e(applications[i]).attach(n),r===t&&e(overrides[i]).attach(n)}),t.module(n).service("products",i)};return{attach:s}}),define("services/config/main",["require","exports","module","./configuration","./localSettings","./products"],function(e,t,n){"use strict";function r(t){e("./configuration").attach(t),e("./localSettings").attach(t),e("./products").attach(t)}return{attach:r}}),define("services/designlibrary/designLibraryAppRequestManager",["require"
,"exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=[function(){var e={},t;this.setEditRequestRef=function(t,n){t&&(e[t]=n)},this.getEditRequestRef=function(t){return e[t]},this.clearEditRequestRef=function(t){delete e[t]},this.setChooseRequestRef=function(e){t=e},this.getChooseRequestRef=function(){return t}}];t.attach=function(e){r.module(e).service("designLibraryAppRequestManager",i)}}),define("services/designlibrary/designLibraryCEPEventEmitters",["require","exports"
,"module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["csInterface","fileUtils","designLibraryElements","designLibraryAppRequestManager","adobeStockUtils","$q",function(e,t,n,r,i,s){function o(e,r){var i=n.findRepresentation(e,t.getUsableTypes(e.type));return i?i.getContentPath().then(function(e){r(e)}):e.getThumbnailPath().then(function(e){r(e)})}this.sendElementCreated=function(t,r){var i=s.defer();return o(t,function(s){var o=new CSEvent("com.adobe.DesignLibraries.events.ElementCreated"
,"APPLICATION"),u={elementRef:t.getReference(),name:t.name,libraryName:t.library.name,modifiedTime:n.getElementModifiedTime(t),creationTime:t.created,data:[s],appMetadata:r};r&&(r.documentId&&(u.documentId=r.documentId),r.layerIds&&(u.layerIds=r.layerIds)),o.data=JSON.stringify(u),e.dispatchEvent(o),i.resolve()}),i.promise},this.sendElementChosen=function(t){o(t,function(s){var o=new CSEvent("com.adobe.DesignLibraries.events.ElementChosen","APPLICATION"),u={requestRef:r.getChooseRequestRef(),elementRef
:t.getReference(),name:t.name,libraryName:t.library.name,modifiedTime:n.getElementModifiedTime(t),creationTime:t.created,data:[s]};i.isStockAsset(t)&&(u.adobeStock={id:i.getStockId(t),license:i.isLicensed(t)}),o.data=JSON.stringify(u),e.dispatchEvent(o)})},this.elementChooseCancelled=function(){var t=new CSEvent("com.adobe.DesignLibraries.events.ElementChooseCancelled","APPLICATION");t.data=JSON.stringify({requestRef:r.getChooseRequestRef()}),e.dispatchEvent(t)},this.sendElementUpdated=function(t
){if(t){var s=t.element,o=s.getReference();t.getContentPath().then(function(t){var u=new CSEvent("com.adobe.DesignLibraries.events.ElementUpdated","APPLICATION"),a={requestRef:r.getEditRequestRef(o),elementRef:o,name:s.name,libraryName:s.library.name,modifiedTime:n.getElementModifiedTime(s),creationTime:s.created,data:[t]};i.isStockAsset(s)&&(a.adobeStock={id:i.getStockId(s),license:i.isLicensed(s)}),u.data=JSON.stringify(a),e.dispatchEvent(u)})}},this.sendElementLicensed=function(t){if(t){var r=
t.element,s=r.getReference();t.getContentPath().then(function(t){var o=new CSEvent("com.adobe.DesignLibraries.events.ElementLicensed","APPLICATION");o.data=JSON.stringify({elementRef:s,name:r.name,libraryName:r.library.name,modifiedTime:n.getElementModifiedTime(r),creationTime:r.created,data:[t],adobeStock:{id:i.getStockId(r),license:i.isLicensed(r)}}),e.dispatchEvent(o)})}}}];t.attach=function(e){r.module(e).service("designLibraryCEPEventEmitters",i)}}),define("services/designlibrary/designLibraryCEPEventHandlers"
,["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["digestUtils","csInterface","designLibraryManager","designLibraryElements","designLibraryElementUtils","designLibraryUtils","designLibrarySelection","designLibraryAppRequestManager","metrics","configuration","designLibraryViewState","$translate",function(e,t,n,r,i,s,o,u,a,f,l,c){var h=!1,p,d=function(t){if(!t||!t.data)return;var r=t.data,i=r.operation,s=r.elementName,a=r.elementRef,h;u.setChooseRequestRef
(r.requestRef),a&&(h=n.resolveElementReference(a),h&&!s&&(s=h.name));if(i==="place")l.setRelinkMode({message:c.instant("DL_RELINK_PLACE_MESSAGE"),actionMessage:c.instant("DL_PLACE"),missing:!1,overlayMessage:c.instant("DL_RELINK_PLACE_OVERLAY_MESSAGE")});else{var p=c.instant("DL_RELINK_"+i.toUpperCase()+"_MESSAGE",{elementName:s});l.setRelinkMode({message:p,actionMessage:c.instant("DL_RELINK"),missing:a?!h:undefined,overlayMessage:c.instant("DL_RELINK_RELINK_OVERLAY_MESSAGE")})}var d=o.getSelection
();(d.length>1||d.length===1&&d[0].type!==f.IMAGE_ELEMENT_TYPE)&&o.clearSelection(),e.triggerDigest()},v=function(t){l.resetMode(),e.triggerDigest()},m=function(e){if(!e||!e.data)return;var t=e.data,i=t.elementRef,o=t.requestRef,a=n.resolveElementReference(i);if(!a)return;if(s.checkElementWritable(a)){o&&u.setEditRequestRef(i,o);var f=r.getEditOperations(a),l;f.forEach(function(e){e.onDoubleClick&&(l=e)}),l&&l.apply()}},g=function(e){if(!e||!e.data)return;var t=e.data,r=t.elementRef,s=n.resolveElementReference
(r);i.revealElement(s)},y=function(e){var t=e?e.data:undefined;if(t&&t.elementRef){var r=n.resolveElementReference(t.elementRef);if(r){var i=t.cause||"createElement";a.reportCreateLink(r,i)}}};this.setDraggedElements=function(e){p=e};var b=function(e){var t=e?e.data:undefined;if(t&&t.elementRef){var i=n.resolveElementReference(t.elementRef);if(i){var s=r.findUsableRepresentation(i);if(s){a.reportUseElement(s,"placeAsset",t.details);var o=!1;typeof t.linked=="boolean"?o=t.linked:typeof t.linked=="string"?
o=t.linked.toLowerCase()==="true":o=!1,o===!0&&a.reportCreateLink(i,"placeAsset")}}}else p&&p.forEach(function(e){e.usedRepresentation&&a.reportUseElement(e.usedRepresentation,"placeAsset")})},w=function(e){if(!e||!e.data)return;var r,i=e.data,s=i.name;s||(s=c.instant("DL_DEFAULT_LIBRARY_NAME"));if(i.enforceUniqueName===!0){var o=[];n.getLibraries().forEach(function(e){e.isDeletedFromServer||o.push(e.name)});var u,a=2;while(o.indexOf(s)!==-1)u||(u=s),s=u+" "+a++}r=n.createLibrary(s),r&&i.makeCurrent===!0&&
(l.hideDialogs(),l.resetMode(),n.setCurrentLibrary(r));var f=new CSEvent("com.adobe.DesignLibraries.events.CreateLibraryResponse","APPLICATION");f.data=JSON.stringify({success:r?!0:!1,libraryName:r?r.name:"",libraryId:r?r.id:""}),t.dispatchEvent(f)},E=function(e){var t=e.data;t&&t.libraryId&&n.waitForInitialLoad().then(function(){var e=n.getLibraryById(t.libraryId);e&&(l.resetMode(),n.setCurrentLibrary(e))})};this.elementEditCompleted=function(e){var t=e.getReference();u.clearEditRequestRef(t)},this
.startListening=function(){h||(t.addEventListener("dlElementOpenForEdit",m),t.addEventListener("dlElementReveal",g),t.addEventListener("dlElementChoose",d),t.addEventListener("dlElementChooseCancel",v),t.addEventListener("dlElementLinkCreated",y),t.addEventListener("dlElementDropped",b),t.addEventListener("dlCreateLibrary",w),t.addEventListener("dlSetCurrentLibrary",E),h=!0)},this.stopListening=function(){h=!1,t.removeEventListener("dlElementOpenForEdit",m),t.removeEventListener("dlElementReveal"
,g),t.removeEventListener("dlElementChoose",d),t.removeEventListener("dlElementChooseCancel",v),t.removeEventListener("dlElementLinkCreated",y),t.removeEventListener("dlElementDropped",b),t.removeEventListener("dlCreateLibrary",w),t.removeEventListener("dlSetCurrentLibrary",E)}}];t.attach=function(e){r.module(e).service("designLibraryCEPEventHandlers",i)}}),define("services/designlibrary/designLibraryContextMenu",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"
),i=["$q","$window","$filter","mediator","menuManager","designLibraryManager","designLibraryElements","designLibrarySelection","designLibraryViewState","designLibraryUtils","adobeStockUtils","adobeStockLicenseUtils","adobeStockUpdateUtils","linkUtils","configuration",function(e,t,n,i,s,o,u,a,f,l,c,h,p,d,v){function m(e){return function(){i.emit("dlItemRenameRequest",e)}}function g(e){return function(){a.clearSelectionForItems(e),l.deleteElements(e)}}function y(e){return function(){d.openShareElementLinkURL
(e)}}function b(e){return function(){var t=c.getStockId(e),n=e.library.collection.userId;h.license(e,n,t).then(function(e){p.updateLicenses(e)})}}function w(e){return function(){var t=c.getStockId(e);d.launchFindSimilarURL(t)}}function E(e){return function(){f.resetMode(),t.setTimeout(function(){o.setCurrentLibrary(e.library),a.setSelection(e,!0)})}}function S(t,i,s,o){return function(){var u=function(e){r.isArray(e)&&!t&&s===o&&a.setSelection(e)},l=n("orderBy")(i,f.getSortFunction("modified"),!0
),c=[];l.forEach(function(e){t?c.push(s.moveElement(e,o)):c.push(s.copyElement(e,o))}),e.all(c).then(u,u)}}function x(e,t){var r={copy:[],move:[]},i=o.getLibraries();return i=n("orderBy")(i,f.getState().librarySortFunction),i.forEach(function(n){var i=n.elements.length+e.length<=v.MAX_ELEMENTS;r.copy.push({label:n.name,enableMenu:n.id!==t.id&&i&&n.isWritable,checked:n.id===t.id,onClick:S(!1,e,t,n)}),r.move.push({label:n.name,enableMenu:n.id!==t.id&&i&&n.isWritable&&t.isWritable,checked:n.id===t.id
,onClick:S(!0,e,t,n)})}),r}this.showContextMenu=function(e,t,n){if(!f.isContextMenuEnabled()){s.setContextMenu([]);return}var r=[t];a.isSelected(t)&&(r=[],a.getSelection().forEach(function(e){r.push(e)}));var i=[],o=e.collection.cloudId===v.CREATIVE_CLOUD_ID;if(r.length===1){f.isLibrariesSearchMode()&&(i.push({label:"DL_REVEAL_ITEM",onClick:E(r[0])}),i.push({divider:!0})),c.isStockAsset(r[0])&&(!c.isLicensed(r[0])&&e.isWritable&&i.push({label:"DL_STOCK_LICENSE_MENU"+c.getLocalizationSuffix(r[0]),
onClick:b(r[0])}),i.push({label:"DL_STOCK_FIND_SIMILAR_MENU",onClick:w(r[0])}),i.push({divider:!0}));var l=u.getApplyOperations(r[0],e,n);l.forEach(function(e){e.displayInMenu&&i.push({label:e.name,onClick:e.apply})});var h=u.getEditOperations(r[0]);h.forEach(function(t){i.push({label:t.name,onClick:t.apply,enableMenu:!t.disabled&&e.isWritable})}),o&&i.push({label:"DL_SHARE_LINK",onClick:y(r[0])}),i.length>0&&i.push({divider:!0})}else{var p=u.getApplyOperations(r,e);p.forEach(function(e){e.displayInMenu&&
i.push({label:e.name,onClick:e.apply})})}i.push({label:r.length>1?"DL_DUPLICATE_SELECTED_ITEMS":"DL_DUPLICATE_ITEM",enableMenu:e.isWritable&&e.elements.length+r.length<=v.MAX_ELEMENTS,onClick:S(!1,r,e,e)});var d=x(r,e);i.push({label:r.length>1?"DL_COPY_SELECTED_ITEMS":"DL_COPY_ITEM",menuItems:d.copy}),i.push({label:r.length>1?"DL_MOVE_SELECTED_ITEMS":"DL_MOVE_ITEM",enableMenu:e.isWritable,menuItems:e.isWritable?d.move:[]}),i.push({divider:!0}),r.length===1&&i.push({label:"DL_RENAME",enableMenu:e.
isWritable,onClick:m(r[0])}),i.push({label:"DL_DELETE",enableMenu:e.isWritable,onClick:g(r)}),s.setContextMenu(i)}}];t.attach=function(e){r.module(e).service("designLibraryContextMenu",i)}}),define("services/designlibrary/designLibraryStockContextMenu",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$filter","configuration","menuManager","designLibraryManager","designLibraryViewState","linkUtils",function(e,t,n,r,i,s){function o(n,s,o,u){var a=[],f=r.getLibraries
();f=e("orderBy")(f,i.getState().librarySortFunction);var l=r.getCurrentLibrary();return f.forEach(function(e){var r=e.elements.length<t.MAX_ELEMENTS;a.push({label:e.name,enableMenu:r&&e.isWritable,checked:e.id===l.id,onClick:function(){s(e,n,o,u)}})}),a}this.showContextMenu=function(e,t,r){var i=[],u;e.is_licensed||(u=o(e,t,r,!0),i.push({label:"DL_STOCK_LICENSE_THEN_SAVE_TO",enableMenu:!0,menuItems:u})),u=o(e,t,r,e.is_licensed),i.push({label:e.is_licensed?"DL_STOCK_SAVE_TO":"DL_STOCK_SAVE_PREVIEW_TO"
,enableMenu:!0,menuItems:u}),i.push({divider:!0}),i.push({label:"DL_STOCK_FIND_SIMILAR_MENU",onClick:function(){s.launchFindSimilarURL(e.id)}}),i.push({label:"DL_STOCK_VIEW_ON_WEB",onClick:function(){s.launchStockAssetURL(e.id)}}),n.setContextMenu(i)}}];t.attach=function(e){r.module(e).service("designLibraryStockContextMenu",i)}}),define("services/designlibrary/designLibraryElements",["require","exports","module","angular"],function(e,t,n){"use strict";function i(e){return function(){e.map(function(
e){e()})}}var r=e("angular"),s=[],o={},u=["$q","$window","designLibraryUtils","fileUtils","configuration","adobeStockUtils","ccLibraries","digestUtils","$translate","editorAppUtils","csInterface","metrics",function(e,t,n,u,a,f,l,c,h,p,d,v){var m={},g={};this.register=function(e){var t=e.type;g[t]&&r.extend(e,g[t]),m[t]?console.log("Warning: Attempting to register element type "+t+" more than once."):m[t]=e},this.registerOverride=function(e){var t=e.type;g[t]=e;if(!m[t]){g[t]=e;return}r.extend(m[t
],e)};var y=function(e){return m[e]||m["*"]};this.getApplyOperations=function(e,t,n){var s=l.utils.generateUuid();e instanceof Array&&e.length===1&&(e=e[0]);if(e instanceof Array){var o=e.length;if(o===0)return[];var u=e.every(function(t){return t.type===e[0].type});if(!u)return[];var a={};e.forEach(function(e,i){var u=y(e.type),f=r.isFunction(u.getApplyOperations)?u.getApplyOperations(e,t,n,i+1,o,s):[];f.forEach(function(e){e.allowMultiple&&(a[e.name]?a[e.name].apply.push(e.apply):(a[e.name]=e,a
[e.name].apply=[e.apply]))})});var f=[];return Object.keys(a).forEach(function(t){var n=a[t];n.apply.length===e.length&&(n.apply=i(n.apply),f.push(n))}),f}var c=y(e.type);return r.isFunction(c.getApplyOperations)?c.getApplyOperations(e,t,n,1,1,s):[]},this.getEditOperations=function(e){var t=y(e.type);if(r.isFunction(t.getEditOperations))return t.getEditOperations(e);var n=this.getDefaultEditOperation(e);return n?[n]:[]},this.getOnClickApplyOperation=function(e,t){var n=this.getApplyOperations(e,t
),r;return n.forEach(function(e){e.onClick&&(r=e)}),r};var b=function(e,t){t||(t="DL_ERROR_INVALID_FILE_FORMAT_"+a.currentProduct.config.translationSuffix);if(e){var n=e.getPrimaryRepresentation(),r="nil";n&&(r=n.type),v.reportError("editOriginalFailed",t,{libraryID:e.library.id,elementID:e.id,representationType:r},!0)}var i=h.instant(t);d.showError(i)},w=function(e){var t=VulcanInterface.getPayload(e),n=t,r=s.indexOf(n);r!==-1&&s.splice(r,1);if(s.length===0){var i=VulcanMessage.TYPE_PREFIX+a.APP_EDIT_ACCEPTED_MESSAGE
;VulcanInterface.removeMessageListener(i,w)}},E=function(e,t,n){var r=e.getReference(),i=VulcanMessage.TYPE_PREFIX+"cclibraries.accessor.EditElementRequest",o=new VulcanMessage(i),u=l.utils.generateUuid(),f={};f.appCode=t,f.path=n,f.elementRef=r,f.requestID=u;var c=JSON.stringify(f);o.setPayload(c);if(s.length===0){var h=VulcanMessage.TYPE_PREFIX+a.APP_EDIT_ACCEPTED_MESSAGE;VulcanInterface.addMessageListener(h,w)}s.push(u),VulcanInterface.dispatchMessage(o),setTimeout(function(){var n=s.indexOf(u
);if(n!==-1)b(e,"DL_ERROR_EDIT_FAILED");else{var r=e.getPrimaryRepresentation(),i="nil";r&&(i=r.type),v.reportPanelEvent("editOriginalSuccessful",{details:t,representationType:i})}},1e4)},S=function(t,n){var r=t.specifier,i=t.path;if(o[r]!==undefined)return o[r];var s=VulcanMessage.TYPE_PREFIX+a.APP_READY_MESSAGE,u=e.defer();o[r]=u;var f=function(e){var t=VulcanInterface.getPayload(e),n=JSON.parse(t);if(n.path!==i)return;o[r]!==undefined&&delete o[r],u.resolve();var a=Object.keys(o).length;a===0&&
VulcanInterface.removeMessageListener(s,f)},l=VulcanInterface.isAppRunning(r);if(l)u.resolve(),o[r]!==undefined&&delete o[r],VulcanInterface.launchApp(r,!0,"");else{l=VulcanInterface.launchApp(r,!0,"");if(l){setTimeout(function(){o[r]!==undefined&&(delete o[r],u.reject(n,"DL_ERROR_APP_LAUNCH_TAKING_TIME"))},6e4);var c=Object.keys(o).length;c===1&&VulcanInterface.addMessageListener(s,f)}else u.reject(n)}return u.promise},x=function(e){var t=y(e.type);return r.isFunction(t.enableEditOriginal)?t.enableEditOriginal
():t.enableEditOriginal},T=function(e){var t=e.getPrimaryRepresentation();if(!t){b(e);return}var n=p.getValidSpecifiers(t.type);if(n.editorAppDefined===!1){b(e);return}var r=n.validSpecifiers||[];if(r.length>0){var i=function(){E(e,r[0].appCode,r[0].path)};S(r[0],e).then(i,b)}else b(e,n.error)};this.isElementEditable=function(e,t,n){var r=e.getPrimaryRepresentation();if(!r)return!1;var i=u.getEditableTypes(e.type),s=this.isRepresentationCompatible(r,i,n);if(t&&!s&&x(e)){var o=p.getValidSpecifiers
(r.type);s=o.editorAppDefined}return s},this.getDefaultEditOperation=function(e){var t=this,n=y(e.type);if(n.defaultEditOperation)return{name:"DL_EDIT_ITEM",disabled:!this.isElementEditable(e,!0),apply:function(){var r=n.defaultEditOperation(e);if(r===!1){var i=f.getStockEditError(e);if(t.isElementEditable(e,!0,!0)&&i)b(undefined,i);else if(x(e)){var s=e.getPrimaryRepresentation(),o="nil";s&&(o=s.type),v.reportPanelEvent("editOriginalInvoked",{libraryID:e.library.id,elementID:e.id,representationType
:o}),T(e)}else b(e)}},onDoubleClick:!0};if(x(e))return{name:"DL_EDIT_ITEM",disabled:!this.isElementEditable(e,!0),apply:function(){T(e)},onDoubleClick:!0}},this.getAddOperations=function(e,t){var i=[];return this.getElementTypes().forEach(function(s){var o=m[s],u=o.getAddOperations(e);r.isFunction(o.transformAddOperations)&&(u=o.transformAddOperations(u,e)),u.forEach(function(e){t&&!n.canAddElement(t)&&(e.disabled=!0,e.toolTip="DL_DESIGN_LIBRARY_HAS_LIMIT"),i.push(e)})}),i},this.getElementTypes=function(
){return a.currentProduct.config.elementOrder},this.getDirective=function(e){var t=y(e);return t&&t.directive},this.getDisplayName=function(e){var t=y(e);return t&&t.displayName},this.getElementFilter=function(e){var t=y(e);return t&&t.elementFilter},this.getOrder=function(e){var t=y(e);if(t)return t.order===undefined&&(t.order=this.getElementTypes().indexOf(t.type),t.order===undefined&&(console.log("Warning: order not defined for element type "+t.type),t.order=Number.POSITIVE_INFINITY)),t.order}
,this.getThumbnailURL=function(e){var t=y(e.type),n=t&&t.renditionSize;return e.getThumbnailPath(n).then(function(e){return e&&(window.noFileSystemAccess?e="http://localhost:3001"+e:e="file://"+e+"?cachebuster="+Math.random()),e})},this.isDraggable=function(e){if(!e)return!1;var t=y(e.type);if(!t)return!1;if(!t.allowDragWithoutUsableRepresentation){var n=this.findUsableRepresentation(e);if(!n)return!1}return r.isFunction(t.isDraggable)?t.isDraggable():t.isDraggable},this.getDragType=function(e){var t=
y(e.type);return t.dragType||e.type},this.findUsableRepresentation=function(e){var t=u.getUsableTypes(e.type);return this.findRepresentation(e,t)},this.getCommonDragData=function(e){var t=this.getDragType(e),n={name:e.name,libraryName:e.library.name,type:t,elementRef:e.getReference(),modifiedTime:this.getElementModifiedTime(e),creationTime:e.created};return f.isStockAsset(e)&&(n.adobeStock={id:f.getStockId(e),license:f.isLicensed(e)}),n},this.getDragData=function(e){var t=y(e.type);if(t.getDragData
)return t.getDragData(e)},this.findRepresentation=function(e,t){t=t instanceof Array?t:[t];var n=e.getPrimaryRepresentation();if(n&&this.isRepresentationCompatible(n,t))return n;var r,i;for(r=0;r<e.representations.length;r++){i=e.representations[r];if(this.isRepresentationCompatible(i,t))return i}},this.isRepresentationCompatible=function(e,t,n){if(!n&&e.isExternalLink){var r=y(e.element.type)||{};if(e.getCachedExternalLinkError())return!1;if(r.autoDownloadExternalLinks!==!1&&!e.getCachedContentPath
())return!1}var i;for(i=0;i<t.length;i++)if(e.isCompatibleType(t[i]))return!0;return!1},this.getDisplayText=function(e){var t=y(e.type);return t&&t.getDisplayText?t.getDisplayText(e):e.name},this.getRenditionSizes=function(){var e={};return this.getElementTypes().forEach(function(t){var n=m[t];n.renditionSize&&(e[n.type]=[n.renditionSize])}),e},this.getFullRenditionConfig=function(){var e={};return this.getElementTypes().forEach(function(t){var n=m[t];n.fullRenditionConfig&&(e[n.type]=n.fullRenditionConfig
())}),e},this.getRenditionSize=function(e){var t=y(e.type);if(t)return t.renditionSize},this.setRendition=function(t,n,r){var i=t.representations.some(function(e){return l.utils.canGenerateRenditionFromMimeType(e.type)}),s=[];if(!i){var o=t.createRepresentation("image/png","rendition");s.push(o.setContentFromPath(r))}var a=function(){u.deleteFile(r)};return t.setThumbnailCache(n,r).then(a,a),e.all(s)},this.getTruncatedElementName=function(e){return e&&e.name?n.truncateName(e.name,150):undefined};
var N,C=[];this.setLoadingTimeout=function(e){C.push(e),N||(N=t.setTimeout(function(){var e=C;C=[],N=undefined;var t=!1;e.forEach(function(e){t=e()||t}),t&&c.triggerDigest()},1e3))},this.isRepresentationDownloadPending=function(e){return e.isExternalLink?!e.getCachedContentPath()&&!e.getCachedExternalLinkError():!1},this.isElementDownloadPending=function(e){var t=this;return e.representations.some(function(e){return t.isRepresentationDownloadPending(e)})},this.getElementDownloadProgress=function(
e){var t;return e.representations.forEach(function(e){t===undefined&&(t=e.getExternalLinkDownloadProgress())}),t},this.getElementModifiedTime=function(e){return this.isElementDownloadPending(e)?e.modified-1:e.modified},this.retryElementDownload=function(e){var t=this;e.representations.forEach(function(e){t.isRepresentationDownloadPending(e)&&e.getContentPath()})}}];t.attach=function(e){r.module(e).service("designLibraryElements",u)}}),define("services/designlibrary/designLibraryElementUtils",["require"
,"exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$q","fileUtils","digestUtils","configuration","designLibraryUtils","designLibraryManager","designLibraryElements","designLibraryCEPEventEmitters","designLibrarySelection","designLibraryViewState","metrics",function(e,t,n,r,i,s,o,u,a,f,l){var c=function(n,r,s,o,u,a,f){n=n||"";var l=e.defer(),c=[],h;c.push(l.promise);var p;t.existsFile(s)||(p="Could not add new element: no primary representation file specified"),!p&&!
t.existsFile(o)&&(p="Could not add new element: no rendition path specified"),!p&&!a&&(p="Could not add new element: no library"),!p&&!i.checkLibraryWritable(a)&&(p="Could not create element: library is read-only");if(p)return l.reject(p),l.promise;h=i.createElementExtraMetrics(a,n,r,{opType:f}),c.push(h.createRepresentation(t.fileNameToContentType(s),"primary").setContentFromPath(s)),c.push(h.createRepresentation(t.fileNameToContentType(o),"rendition").setContentFromPath(o)),l.resolve(h);var d=function(
){return t.existsFile(o)&&h.setThumbnailCache(u,o).then(function(){t.deleteFile(o)}),t.existsFile(s)&&t.deleteFile(s),h.endOperation(),h},v=function(e){throw a.removeElement(h,!0),e};return e.all(c).then(d,v)};this.addGraphicElement=function(n,s,a,f,l,c){var h=e.defer();s=s||[];if(!i.checkFileSizes(s,!0))return h.reject("Could not create element: one or more files exceed 1GB limit"),h.promise;if(!i.checkLibraryWritable(f))return h.reject("Could not create element: library is read-only"),h.promise
;n=i.getCuratedName(f,n);var p=i.createElementExtraMetrics(f,n,r.IMAGE_ELEMENT_TYPE,{opType:l}),d=[];s.forEach(function(e,n){var r=t.fileNameToContentType(e.path);if(r){var i=p.createRepresentation(r,e.relationship),s=i.setContentFromPath(e.path,e.moveFile).then(function(){e.dimensions&&(i.width=e.dimensions.width,i.height=e.dimensions.height),e.moveFile||t.deleteFile(e.path)});d.push(s)}else console.log("Could not create representation: path cannot end with '.': "+e.path)});if(a){var v=o.setRendition
(p,r.IMAGE_RENDITION_SIZE,a);d.push(v)}return e.all(d).then(function(){p.endOperation(),h.resolve(p),u.sendElementCreated(p,c)},function(){f.removeElement(p,!0),h.reject("Could not create element.")}),h.promise},this.addLayerStyleElement=function(e,t,n,i,s){return c(e,r.LAYER_STYLE_ELEMENT_TYPE,t,n,r.LAYER_STYLE_RENDITION_SIZE,i,s)},this.addBrushElement=function(e,t,n,i,s){return c(e,r.BRUSH_ELEMENT_TYPE,t,n,r.BRUSH_RENDITION_SIZE,i,s)},this.revealElement=function(e){e&&(f.resetMode(),s.setCurrentLibrary
(e.library),setTimeout(function(){a.setSelection(e,!0),n.triggerDigest()}),n.triggerDigest())}}];t.attach=function(e){r.module(e).service("designLibraryElementUtils",i)}}),define("services/designlibrary/designLibraryFlyoutMenu",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$q","$translate","metrics","linkUtils","csInterface","imsInterface","localSettings","menuManager","versionManager","designLibraryManager","designLibraryElements","designLibrarySelection"
,"designLibraryUtils","designLibraryViewState","listenerUtils","adobeStockUtils","configuration","importExport","debugUtils",function(e,t,n,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b){function E(e){e.push({divider:!0}),e.push({label:r.BUILT?"v"+f.getPluginVersion():"DEV",enableMenu:!1}),o.getEnvironment().overrides&&o.getEnvironment().overrides.forEach(function(t){e.push({label:t+": "+o.getEnvironment()[t],enableMenu:!1})}),e.push({label:"Panel Information",onClick:function(){s.showError("Panel Information\nPath:\n"+
s.getPluginPath()+"\n\nAnalytics State:\n"+(n.getRepositories()||"Disabled"))}}),e.push({label:"Save Debug Info",onClick:function(){b.saveDebugInfo()}}),e.push({label:"View Library Info",enableMenu:l.getCurrentLibrary()!==undefined,onClick:b.viewLibraryInfo}),e.push({label:"View Element Info",enableMenu:l.getCurrentLibrary()!==undefined,onClick:b.viewElementInfo}),e.push({label:"View All Libraries Info",enableMenu:l.getCurrentLibrary()!==undefined,onClick:b.viewLibrariesInfo}),e.push({label:"Show Logs Folder"
,enableMenu:!0,onClick:b.showLogFolder}),e.push({divider:!0}),e.push({label:"Export Library",onClick:function(){y.exportLibrary(l.getCurrentLibrary())}}),e.push({label:"Import Library",onClick:function(){y.importLibrary()}}),e.push({label:"Log Analytics",checked:u.getDebugValue("logMetrics"),onClick:function(){var e=u.getDebugValue("logMetrics");u.setDebugValue("logMetrics",!e),S()}}),e.push({divider:!0}),e.push({label:"Show Relink Mode",onClick:function(){d.setRelinkMode({message:"This relink mode was shown by the debug menu item"
,actionMessage:t.instant("DL_RELINK"),missing:!1,overlayMessage:t.instant("DL_RELINK_RELINK_OVERLAY_MESSAGE")})}}),e.push({divider:!0});var i=l.getServiceInfo(),a=i&&i.environment,c=i&&i.version+(i.buildNumber?"-"+i.buildNumber:"");e.push({label:"Production",checked:a==="Production",enableMenu:!1,onClick:function(){u.setDebugValue("currentEnvironment","production"),window.location.reload()}}),e.push({label:"Staging",checked:a==="Staging",enableMenu:!1,onClick:function(){u.setDebugValue("currentEnvironment"
,"staging"),window.location.reload()}}),e.push({divider:!0}),e.push({label:l.isConnected()?"Connected To: v"+c:"Not Connected",enableMenu:!1}),l.isConnected()||e.push({label:"Reconnect",onClick:function(){l.reconnectToService()}})}function S(){var e=!!l.isConnected(),t=l.getPrivateLibraryCollection(),n=l.getCurrentLibrary(),s=t&&t.cloudInfo.switchingEnabled,o=n&&n.collection.cloudId===g.CREATIVE_CLOUD_ID,f=[];s&&f.push({label:"DL_MENU_CHANGE_CLOUD",onClick:function(){l.requestCloudChange()}}),f.push
({label:"DL_MENU_CREATE_LIB",enableMenu:t!==undefined&&e,onClick:function(){w.notify("createLibrary")}}),f.push({divider:!0});if(n){f.push({label:"DL_FLYOUT_COLLABORATE",enableMenu:!n.collection.isPublic,onClick:function(){i.openCollaborateURL(n)}}),o&&f.push({label:"DL_FLYOUT_SHARE_LINK",onClick:function(){i.openShareLibraryLinkURL(n)}});var c={libraryName:p.truncateName(n.name,15)};f.push({label:"DL_FLYOUT_RENAME_LIB",enableMenu:n.isWritable,translationData:c,onClick:function(){w.notify("renameLibrary"
)}}),f.push({label:n.collection.isPublic?"DL_FLYOUT_UNFOLLOW_LIB":n.collaboration==="incoming"?"DL_FLYOUT_LEAVE_LIB":"DL_FLYOUT_REMOVE_LIB",translationData:c,onClick:function(){w.notify("deleteLibrary")}}),f.push({divider:!0})}f.push({label:"DL_SORT_ITEMS_BY_MOD_DATE_TOOLTIP",enableMenu:t!==undefined&&e,checked:d.getState().sort==="modified",onClick:function(){d.setSortState("modified"),S()}}),f.push({label:"DL_SORT_ITEMS_BY_NAME_TOOLTIP",enableMenu:t!==undefined&&e,checked:d.getState().sort==="name"
,onClick:function(){d.setSortState("name"),S()}}),f.push({divider:!0}),n&&f.push({label:"DL_FLYOUT_VIEW_ON_WEBSITE",onClick:function(){i.openLibraryURL(n)}}),f.push({label:"DL_FLYOUT_HOW_TO_USE",onClick:i.openHelpURL}),r.isFunction(g.currentProduct.transformFlyoutMenuItems)&&g.currentProduct.transformFlyoutMenuItems(f),u.showDebugMenu()&&E(f),a.setFlyoutMenu(f)}function N(){x&&x.name!==T&&(T=x.name,S())}var w=v.addListenerManager(this,["createLibrary","renameLibrary","deleteLibrary"]),x,T;l.addListener
("currentLibrary",function(){x&&x.removeChangeListener(N),x=l.getCurrentLibrary(),x&&x.addChangeListener(N),S()}),l.addListener("privateCollection",S),this.invokeCreateLibrary=function(){w.notify("createLibrary")},this.updateMenu=function(){S()}}];t.attach=function(e){r.module(e).service("designLibraryFlyoutMenu",i)}}),define("services/designlibrary/designLibraryManager",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$q","$translate","localSettings","ccLibraries"
,"csInterface","imsInterface","metrics","debugLog","designLibraryElements","listenerUtils","fileUtils","digestUtils","versionManager",function(e,t,n,s,o,u,a,f,l,c,h,p,d){function N(){return s.getLoadedCollections()}function C(){x=undefined,T=undefined}function k(){return x||(x=[],T={},N().forEach(function(e){e.libraries.forEach(function(e){x.push(e),T[e.id]=e})})),x}function L(e){return T||k(),T[e]}function A(){g&&(y.forEach(function(e){e.resolve()}),y=[])}function O(){var e=m;if(v){var t=n.getValue
(v.userId+"#"+v.cloudId+"#currentLibraryId");t=t||n.getValue(v.userId+"#currentLibraryId")||n.getValue("currentDesignLibraryId"),t&&(m=L(t));if(!m){var r=k();m=r.length>0?r[0]:undefined}}else m=undefined;e!==m&&b.notify("currentLibrary")}function M(e){m!==e&&(m&&m.isDeletedFromServer&&m.collection.removeDeletedLibraries({exclude:[e]}),m=e,b.notify("currentLibrary"),e&&n.setValue(v.userId+"#"+v.cloudId+"#currentLibraryId",e.id))}function _(){var e=m.modified;m&&(m.collection.isPublic?N().forEach(function(
e){if(!e.isPublic){var t=e.findBookmark(m);t&&e.removeBookmark(t,function(e){f.log("Error while removing bookmark:"+e)})}}):m&&!m.isDeletedLocally&&m.collection.removeLibrary(m));if(v.libraries.length>0){var t,n;v.libraries.forEach(function(r){if(!n||r.modified<n.modified)n=r;r.modified<e&&(!t||r.modified>t.modified)&&(t=r)}),M(t||n)}else M(undefined)}function D(){var e=k();e.forEach(function(e){if(!E[e.id]){var t=function(){if(E[e.id].previousName!==e.name||E[e.id].previousDeletedFromServer!==e.
isDeletedFromServer||E[e.id].previousWritable!==e.isWritable)E[e.id].previousName=e.name,E[e.id].previousDeletedFromServer=e.isDeletedFromServer,E[e.id].previousWritable=e.isWritable,b.notify("libraryList");p.triggerDigest()};E[e.id]={previousName:e.name,previousDeletedFromServer:e.isDeletedFromServer,previousWritable:e.isWritable,callback:t},e.addChangeListener(t)}}),Object.keys(E).forEach(function(e){L(e)||delete E[e]})}function P(){C(),b.notify("libraryList"),D(),m&&m.isDeletedLocally&&_()}function H
(){P(),p.triggerDigest()}function B(){b.notify("libraryStatus");if(!v)return;var e="isInitialSyncInProgress",t=v[e];if(!m&&!t){var n=v.getDefaultLibrary(),r=k();!n&&r.length>0&&(n=r[0]),M(n)}m&&m.collection.removeDeletedLibraries({exclude:[m]}),!t&&s.isConnected()&&(g=!0,A())}function j(){B(),p.triggerDigest()}function F(e){e.addCommitErrorListener(j);var t="addSyncListener";e[t](j),e.addChangeListener(H)}function I(e){e.removeCommitErrorListener(j);var t="removeSyncListener";e[t](j),e.removeChangeListener
(H)}function q(){N().forEach(function(e){w.indexOf(e)===-1&&(F(e),w.push(e))}),w.forEach(function(e){N().indexOf(e)===-1&&w.splice(w.indexOf(e),1)})}function R(){C();var e;N().some(function(t){if(!t.isPublic)return e=t,!0}),q(),v!==e&&(v&&I(v),v=e,a.setUserId(v&&v.userId),u.clearAccessToken(),b.notify("privateCollection"),v&&v.getTempDir(function(e,t){if(!e){var n=new CSEvent("com.adobe.DesignLibraries.events.TEMPDIR","APPLICATION");n.data=JSON.stringify({path:t}),o.dispatchEvent(n)}})),O(),B(),P
()}function z(){if(!U){var e=r.BUILT?"v"+d.getPluginVersion():"DEV",t={analytics:a,log:f.log,getDisplayName:l.getDisplayText},n={CLIENT_DESCRIPTION:"Libraries Panel ("+e+"): "+o.getAppDescription(),SHARED_LOCAL_STORAGE:!0,RENDITION_SIZES:l.getRenditionSizes(),FULL_RENDITION_CONFIG:l.getFullRenditionConfig(),STORAGE_API_KEY:u.getEnvironment().clientId,ELEMENT_TYPE_FILTERS:l.getElementTypes(),LOCALE:o.getLocale()};s.configure(t,n),s.addLoadedCollectionsListener(function(){R(),p.triggerDigest()}),R(
),U=!0}}function W(){N().forEach(function(e){e&&e.syncState!=="syncing"&&e.sync()})}function X(){return N().some(function(e){var t=e&&e.syncState==="error"&&!e.retryTime;return t})}var v,m,g=!1,y=[],b=c.addListenerManager(this,["privateCollection","libraryList","currentLibrary","libraryStatus","ccAppAlert"]),w=[],E={},S=!1,x,T,U=!1;this.init=function(){z()},this.getLibraryCollections=function(){return N()},this.getLibraries=function(){return k()},this.getLibraryById=function(e){return L(e)},this.
getPrivateLibraryCollection=function(){return v},this.getCurrentLibrary=function(){return m},this.getDefaultLibrary=function(){var e=this.getCurrentLibrary();if(!e){var n=this.getPrivateLibraryCollection();if(!n)throw"Could not find private library collection";var r=t.instant("DL_DEFAULT_LIBRARY_NAME"),s=i.createLibrary(r);if(!s)throw"Could not create new library";this.setCurrentLibrary(s),e=this.getCurrentLibrary()}return e},this.setCurrentLibrary=function(e){M(e)},this.deleteCurrentLibrary=function(
){_()},this.createLibrary=function(e){var t=this.getPrivateLibraryCollection();return t?t.createLibrary(e):undefined},this.sync=function(e,t){(!e||t&&X()||!t&&!X())&&W()},this.waitForInitialLoad=function(){var t=e.defer();return y.push(t),A(),t.promise},this.reconnectToService=function(){s.reconnect()},this.launchCCLibraryProcess=function(){if(!S){var e,t=this,n="vulcan.SuiteMessage.cclibraries.service.Initialized",r=function(){e&&clearInterval(e),S=!1,t.reconnectToService(),VulcanInterface.removeMessageListener
(n,r),setTimeout(function(){t.isConnected()||t.launchCCLibraryProcess()},1e4)},i=function(){if(t.isConnected()){r();return}var e=t.getServiceInfo()||{};!e.updateRequired&&t.isProcessInstalled()&&!t.isProcessRunning()&&(f.log("Launching CCLibrary Process"),VulcanInterface.launchApp("cclibraries",!1))};VulcanInterface.addMessageListener(n,r),this.reconnectToService(),S=!0,e=setInterval(i,5e3),i()}},this.isProcessInstalled=function(){return VulcanInterface.isAppInstalled("cclibraries")},this.isProcessRunning=
function(){return VulcanInterface.isAppRunning("cclibraries")},this.isConnected=function(){return s.isConnected()},this.getServiceInfo=function(){return s.getServiceInfo()},this.resolveElementReference=function(e){return s.resolveElementReference(e)},this.syncingEnabled=function(){var e="isSyncingEnabled";return s[e]()},this.requestCloudChange=function(){var e=new VulcanMessage(VulcanMessage.TYPE_PREFIX+"accc.app.ChangeActiveCloudRequest");e.setPayload('<?xml version="1.0" encoding="UTF-8" standalone="no"?><request><type>accc.app.ChangeActiveCloudRequest</type><requestid>70a05e0b-10f8-4d24-9f07-88399a70c578</requestid></request>'
),VulcanInterface.dispatchMessage(e)},s.setCustomDigestTrigger(function(){p.triggerDigest()})}];t.attach=function(e){r.module(e).service("designLibraryManager",i)}}),define("services/designlibrary/designLibrarySelection",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$filter","designLibraryManager","designLibraryElements","designLibraryViewState","listenerUtils","fileUtils","configuration",function(e,t,n,i,s,o,u){function p(e){return n.getOrder(e.type
)}this.serviceName="designLibrarySelection";var a=[],f,l,c=s.addListenerManager(this,["selectionChanged"]);this.isPendingScrollToItem=function(e){return e&&l&&e.id===l.id?!0:!1},this.clearPendingScrollToItem=function(){l=undefined},this.setSelection=function(e,t,i){l=undefined;if(r.isArray(e))a=e,f=undefined;else{a=[e],f=e,t&&(l=e);if(i){var s=n.getOnClickApplyOperation(e,e.library);s&&s.apply()}}c.notify("selectionChanged")};var h=function(){a.length>0&&(l=undefined,a=[],f=undefined,c.notify("selectionChanged"
))};this.clearSelection=h,this.clearSelectionForItems=function(e){e&&(l=undefined,e.forEach(function(e){var t=a.indexOf(e);t!==-1&&(a.splice(t,1),f=undefined)}),c.notify("selectionChanged"))},this.toggleSelectedItem=function(e){l=undefined;var t=a.indexOf(e);t!==-1?(a.splice(t,1),f=undefined):(a.push(e),f=e),c.notify("selectionChanged")},this.setSelectionRange=function(t){var n=i.getState().sortFunction,s=[p];r.isArray(n)?n.forEach(function(e){s.push(e)}):s.push(n);var o=e("localeOrderBy")(t.library
.elements,s),u;f?u=o.indexOf(f):a.length>0&&a.forEach(function(e){var t=o.indexOf(e);if(!u||t>u)u=t});if(u===undefined)this.setSelection(t);else{l=undefined;var h=o.indexOf(t);a=[];var d;if(h<u)for(d=h;d<=u;d++)a.push(o[d]);else for(d=u;d<=h;d++)a.push(o[d]);c.notify("selectionChanged")}},this.isSelected=function(e){return a.indexOf(e)!==-1},this.getSelection=function(){return a},t.addListener("currentLibrary",h)}];t.attach=function(e){r.module(e).service("designLibrarySelection",i)}}),define("services/designlibrary/designLibraryStatus"
,["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i={fs:"DL_FS_ERROR",general:"DL_NO_LIBS_ERROR_SYNCING",jsx:"DL_NO_LIBS_ERROR_INIT",library:"DL_NO_LIBS_ERROR_SYNCING",loggedOut:"DL_NO_LIBS_LOGGED_OUT",network:"DL_NO_LIBS_ERROR_CONNECTING",noAccess:"DL_NO_LIBS_NO_ACCESS",noService:"DL_NO_LIBS_SERVICE_NOT_INSTALLED",quota:"DL_NO_LIBS_ERROR_SYNCING",server:"DL_SYNC_ERROR_SERVER",serviceError:"DL_NO_LIBS_SERVICE_NOT_RUNNING",syncDisabled:"DL_NO_LIBS_SYNC_DISABLED"
,updateClient:"DL_NO_LIBS_UPDATE_CLIENT",updateServer:"DL_NO_LIBS_UPDATE_SERVER",excludeHostnameOSX:"DL_NO_LIBS_NETWORK_PROBLEM",excludeHostnameWin:"DL_NO_LIBS_NETWORK_PROBLEM",excludeHostnameWin10:"DL_NO_LIBS_NETWORK_PROBLEM",verifyDnsSettings:"DL_NO_LIBS_NETWORK_PROBLEM",verifySocketConnection:"DL_NO_LIBS_SOCKET_BLOCKED"},s={fs:"DL_FS_ERROR",general:"DL_SYNC_ERROR",jsx:"DL_INIT_ERROR",library:"DL_SYNC_ERROR_LIBRARY",loggedOut:"DL_SYNC_LOGGED_OUT",network:"DL_SYNC_ERROR_CONNECTING",noAccess:"DL_SYNC_ERROR_NO_ACCESS"
,noService:"DL_SYNC_SERVICE_NOT_INSTALLED",quota:"DL_SYNC_ERROR_QUOTA_EXCEEDED",server:"DL_SYNC_ERROR_SERVER",serviceError:"DL_SYNC_SERVICE_NOT_RUNNING",syncDisabled:"DL_SYNC_DISABLED",updateClient:"DL_SYNC_UPDATE_CLIENT",updateServer:"DL_SYNC_UPDATE_SERVER",excludeHostnameOSX:"DL_SYNC_NETWORK_PROBLEM",excludeHostnameWin:"DL_SYNC_NETWORK_PROBLEM",excludeHostnameWin10:"DL_SYNC_NETWORK_PROBLEM",verifyDnsSettings:"DL_SYNC_NETWORK_PROBLEM",verifySocketConnection:"DL_SYNC_SOCKET_BLOCKED"},o=["$window"
,"$filter","$translate","ccLibraries","imsInterface","localSettings","metrics","designLibraryManager","designLibraryUtils","designLibraryViewState","digestUtils","csInterface",function(e,t,n,r,o,u,a,f,l,c,h,p){function m(n){var r;f.getLibraryCollections().forEach(function(e){e.retryTime&&(r=Math.min(r||Number.MAX_VALUE,Math,e.retryTime-(new Date).valueOf()))}),d.retryDuration=r?t("date")(Math.max(0,r),"m:ss"):undefined;if(!n||!v)d.retryDuration?v=e.setTimeout(function(){m(),h.triggerDigest()},1e3
):v=undefined}function g(){d.state==="error"&&d.errorType==="network"?a.setEnvironment({offline:!0}):a.setEnvironment({offline:!1})}function y(e){var t=d.syncingLibrariesById[e];return t||(t={},d.syncingLibrariesById[e]=t,d.syncingLibraries.push(t)),t}function b(e){var t=d.syncingLibrariesById[e];if(t){delete d.syncingLibrariesById[e];var n=d.syncingLibraries.indexOf(t);n!==-1&&d.syncingLibraries.splice(n,1)}}function S(t){E&&(e.clearTimeout(E),E=undefined),t?w="success":w="error"}function x(t){if(
E)return;w=undefined,E=e.setTimeout(function(){E=undefined,S(!1),t(),h.triggerDigest()},8e3)}function T(e){var t="getPrimarySyncError";return e[t]()}function N(){if(!f.isConnected()){d.state="error";var e=f.getServiceInfo()||{};if(e.updateRequired==="client")S(!0),d.errorType="updateClient";else if(e.updateRequired==="server")S(!0),d.errorType="updateServer";else if(e.portDiagnosis==="SIMPLE_HOSTNAME_GOING_TO_PROXY"){S(!0);if(p.isWindowsOS()){d.errorType="excludeHostnameWin10";var t=p.getOSInformation
();if(t.indexOf("Windows 7")!==-1||t.indexOf("Windows 8")!==-1)d.errorType="excludeHostnameWin"}else d.errorType="excludeHostnameOSX"}else e.portDiagnosis==="DNS_RESOLUTION_FAILED"?(S(!0),d.errorType="verifyDnsSettings"):e.portDiagnosis==="COULD_NOT_CONNECT_SOCKET"?(S(!0),e.connectionPort?d.showTestUrl=!0:d.showTestUrl=!1,d.errorType="verifySocketConnection"):f.isProcessInstalled()?(f.launchCCLibraryProcess(),w==="error"?d.errorType="serviceError":(d.state="loading",w==="success"&&x(N))):(S(!0),f
.launchCCLibraryProcess(),d.errorType="noService");c.resetMode();return}var n=f.getLibraryCollections();if(n.length===0&&!w){d.state="loading";return}S(!0);if(n.length===0){d.state="error",d.errorType="loggedOut";return}d.syncingLibraries=[],d.syncingLibrariesById={},n.every(function(e){if(e&&e.commitError){d.state="error",d.errorType="fs";return}var t=T(e);if(t&&t.code===r.errors.ACCESS_DENIED){d.state="error",d.errorType="noAccess";return}if(!f.syncingEnabled()){d.state="error",d.errorType="syncDisabled"
;return}d.state=e.syncState||"syncing",d.syncProgress=e.syncProgress,delete d.errorType;if(d.state==="syncing"){var n="getNewLibrarySyncProgress",i=e[n]();i.forEach(function(e){var t=y(e.id);t.state="downloading",t.progress=e.progress}),e.libraries.forEach(function(e){if(!e.syncState){b(e.id);return}var t=y(e.id);t.library=e,t.truncatedName=l.truncateName(e.name,15),t.state=e.syncState,t.progress=e.syncProgress});return}if(d.state==="error"){var s=T(e);if(s){switch(s.code){case r.errors.ACCESS_DENIED
:d.errorType="noAccess";break;case r.errors.RETRYABLE_SERVER_ERROR:d.errorType="server";break;case r.errors.NETWORK_ERROR:case r.errors.LOGGED_OUT:d.errorType="network";break;case r.errors.FS_ERROR:d.errorType="fs";break;case r.errors.EXCEEDS_QUOTA:d.errorType="quota"}if(s.libraryId&&!d.errorType){var o=e.getLibraryById(s.libraryId);o&&(d.errorType="library",d.library=o)}d.errorType||(d.errorType="general"),console.log(e.syncErrors)}m(!0);return}return!0})}function C(){N(),g()}var d={state:"syncing"
,syncingLibraries:[],syncingLibrariesById:{}},v,w,E;f.addListener("libraryStatus",C),x(N),C(),this.getStatus=function(){return d},this.getLoadingErrorMessage=function(e){var t=i[e.errorType]||i.general;return n.instant(t)},this.getFooterErrorMessage=function(e){var t=s[e.errorType]||i.general;return e.errorType==="library"?n.instant(t,{name:e.library.name}):n.instant(t)}}];t.attach=function(e){r.module(e).service("designLibraryStatus",o)}}),define("services/designlibrary/designLibraryUtils",["require"
,"exports","module","angular"],function(e,t,n){"use strict";var r=nodeRequire("punycode"),i=e("angular"),s=["$q","fileUtils","csInterface","configuration","layerSelectionManager","metrics","$translate",function(e,t,n,i,s,o,u){var a=function(r,i){var s=e.defer(),o={name:t.getTmpFileName()};return n.execApp("saveAssets",[o,r,i]).then(function(e){e==="undefined"?s.reject():s.resolve(JSON.parse(e))}),s.promise};this.generatePreview=function(t,n){var r=e.defer();return a(t,n).then(function(e){r.resolve
(e)},function(e){r.reject()}),r.promise},this.checkFileSizes=function(e,r){var s=!1;return e.forEach(function(e){var n=t.statFile(e.path);n&&n.size>i.MAX_COMPONENT_SIZE&&(s=!0)}),s?(r&&e.forEach(function(e){t.deleteFile(e.path)}),u("DL_ERROR_FILE_TOO_BIG").then(function(e){n.showError(e)}),!1):!0},this.checkFileSize=function(e,t){return this.checkFileSizes([{path:e}],t)},this.closeDocumentWithName=function(e){n.exec("CORE","closeDocument",[e])},this.setFocusToCanvas=function(){i.currentProduct.setFocusToCanvas&&
i.currentProduct.setFocusToCanvas()},this.reportApplyMetric=function(e,t,n){o.reportUseElement(e,t),n&&o.reportCreateLink(e.element,t)},this.canAddElement=function(e){var t=e&&e.elements.length<i.MAX_ELEMENTS;return t};var f=function(e,t,n){var r;if(t!=="")r=t;else{var i=u.instant(n||"DL_ARTWORK_LABEL"),s=new RegExp("^"+i+"\\s+(\\d+)$"),o=0;e.elements.forEach(function(e){var t=s.exec(e.name);if(t&&t[1]){var n=parseInt(t[1],10);n>o&&(o=n)}}),r=i+" "+(o+1)}return r};this.getCuratedName=f,this.getLayerName=
function(t){var n=e.defer();return s.getLayerName().then(function(e){var r=f(t,e);n.resolve(r)}),n.promise},this.truncateName=function(e,t){return r?e.length<=t?e:r.ucs2.encode(r.ucs2.decode(e).slice(0,t))+"...":e.length<=t?e:e.slice(0,t)+"..."},this.deleteElements=function(e){e&&e.length>0&&e.forEach(function(e){e.library.removeElement(e)})},this.createElementExtraMetrics=function(e,t,n,r){if(!e)return;try{return o.setExtraEventMetrics("createElement",r),e.createElement(t,n)}finally{o.clearExtraEventMetrics
("createElement")}},this.checkLibraryWritable=function(e){return e.isWritable?!0:(n.showError(u.instant("DL_ERROR_EDIT_READ_ONLY_LIBRARY",{libraryName:e.name})),!1)},this.checkElementWritable=function(e){return e.library.isWritable?!0:(n.showError(u.instant("DL_ERROR_EDIT_READ_ONLY_ELEMENT")),!1)}}];t.attach=function(e){i.module(e).service("designLibraryUtils",s)}}),define("services/designlibrary/designLibraryViewState",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e
("angular"),i=["metrics","localSettings","designLibraryManager","configuration","listenerUtils",function(e,t,n,r,i){function h(e,n){c[e]=n,t.setValue(e+"State",n)}function p(t,r){var i=n.getCurrentLibrary();e.reportPanelEvent(t,{libraryID:i&&i.id,opType:r})}function d(e){var t=o[e];t&&(c.mode=e,c.enableMultiSelect=t.enableMultiSelect,c.enableContextMenu=t.enableContextMenu,c.elementTypeFilter=t.elementTypeFilter,c.modeParams={})}var s=i.addListenerManager(this,["search","hideDialogs"]),o={normal:
{enableMultiSelect:!0,enableContextMenu:!0},relink:{enableMultiSelect:!1,enableContextMenu:!1,elementTypeFilter:r.IMAGE_ELEMENT_TYPE},search:{enableMultiSelect:!1,enableContextMenu:!0}},u={name:["displayName","-index"],modified:["-modified","-index"]},a="-modified",f=t.getValue("sortState")||"modified",l=t.getValue("viewState")||"grid",c={sort:f,view:l,mode:"normal",enableMultiSelect:!0,enableContextMenu:!0,elementTypeFilter:undefined,modeParams:{},sortFunction:u[f],librarySortFunction:a};this.getState=
function(){return c},this.isRelinkMode=function(){return c.mode==="relink"},this.isSearchMode=function(){return c.mode==="search"},this.isContextMenuEnabled=function(){return c.enableContextMenu},this.isLibrarySearchMode=function(){return c.mode==="search"&&c.modeParams.type==="library"},this.isLibrariesSearchMode=function(){return c.mode==="search"&&c.modeParams.type==="libraries"},this.isStockSearchMode=function(){return c.mode==="search"&&c.modeParams.type==="stock"},this.getSearchText=function(
){return c.mode==="search"?c.modeParams.text:undefined},this.getSearchType=function(){return t.getValue("searchType")},this.getSearchTypes=function(){return["stock","library","libraries"]},this.setSearchType=function(e){t.setValue("searchType",e),this.isSearchMode()&&(c.modeParams.type=e)},this.setSortState=function(e){h("sort",e),c.sortFunction=u[e],p("sortLibrary",e)},this.setViewState=function(e){h("view",e),p("changeLibraryView",e)},this.setRelinkMode=function(e){d("relink"),c.modeParams=e},this
.setSearchMode=function(e){d("search"),c.modeParams=e},this.resetMode=function(){c.mode!=="normal"&&d("normal")},this.notifySearchRequest=function(){s.notify("search")},this.getSortFunction=function(e){return u[e]},this.hideDialogs=function(){s.notify("hideDialogs")}}];t.attach=function(e){r.module(e).service("designLibraryViewState",i)}}),define("services/designlibrary/designLibraryDragUtils",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$q","fileUtils"
,"configuration","layerSelectionManager","designLibraryManager","designLibraryElements","designLibrarySelection",function(e,t,n,r,i,s,o){var u=function(r){var s=i.getCurrentLibrary(),o=function(e,t,n){return function(){e.setContent(event.target.result,"binary",t).then(function(){n.resolve(e)})}};r.forEach(function(r){var i=r.name;if(t.isUploadableFile(i)){var u=t.getFileNameWithoutExtension(i),a=i.substr(i.lastIndexOf(".")+1).toLowerCase(),f=s.createElement(u,n.IMAGE_ELEMENT_TYPE),l="primary",c=t
.fileNameToContentType(i),h=f.createRepresentation(c,l),p=new FileReader,d=e.defer();p.onloadend=o(h,a,d),p.readAsBinaryString(r),d.then(function(){f.endOperation()},function(){s.removeElement(f,!0)})}})},a=function(e){var t;e.assetList.length>0&&(t=e.assetList[0].data);var n=i.getCurrentLibrary(),u=r.getLayerInfo(),a=s.getAddOperations(u,n),f,l;for(f=0;f<a.length;f++)if(a[f].dropSupport){l=a[f];break}l&&n&&l.apply(n,"dragToPanel",t).then(function(e){o.setSelection(e,!0)})};this.addElementsFromDropData=
function(e){var t=e.data,n=e.files;t&&t.assetList?a(t):n&&u(n)}}];t.attach=function(e){r.module(e).service("designLibraryDragUtils",i)}}),define("services/designlibrary/main",["require","exports","module","./designLibraryAppRequestManager","./designLibraryCEPEventEmitters","./designLibraryCEPEventHandlers","./designLibraryContextMenu","./designLibraryStockContextMenu","./designLibraryElements","./designLibraryElementUtils","./designLibraryFlyoutMenu","./designLibraryManager","./designLibrarySelection"
,"./designLibraryStatus","./designLibraryUtils","./designLibraryViewState","./designLibraryDragUtils"],function(e,t,n){"use strict";function r(t){e("./designLibraryAppRequestManager").attach(t),e("./designLibraryCEPEventEmitters").attach(t),e("./designLibraryCEPEventHandlers").attach(t),e("./designLibraryContextMenu").attach(t),e("./designLibraryStockContextMenu").attach(t),e("./designLibraryElements").attach(t),e("./designLibraryElementUtils").attach(t),e("./designLibraryFlyoutMenu").attach(t),e
("./designLibraryManager").attach(t),e("./designLibrarySelection").attach(t),e("./designLibraryStatus").attach(t),e("./designLibraryUtils").attach(t),e("./designLibraryViewState").attach(t),e("./designLibraryDragUtils").attach(t)}return{attach:r}}),define("services/external/adobeStockRestService",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$q","$http","csInterface","imsInterface","configuration","debugLog","metrics",function(e,t,n,r,i,s,o){function u
(){return"https://"+r.getEnvironment().stockHost}this.getUserQuota=function(a,f,l,c){c=c||0;var h=e.defer(),p=this;return r.getAccessToken(a).then(function(e){if(e){var d=u()+i.STOCK_GET_USER_PROFILE_PATH;d=d.replace(/YYYY/,f),d=d.replace(/LLLL/,l);var v=n.getLocale();if(!v||v.length===0)v="en-US";d=d.replace(/ZZZZ/,v);var m={method:"GET",url:d,headers:{"x-api-key":r.getEnvironment().clientId,Authorization:"Bearer "+e}};o.addProductHeaders(m.headers),t(m).success(function(e,t){h.resolve(e)}).error
(function(e,t){if(t===401&&c===0){r.clearAccessToken(),h.resolve(p.getUserQuota(a,f,l,++c));return}s.log("Error "+t+": adobeStockRestService.getUserQuota , result=\n"+(typeof e=="string"?e:JSON.stringify(e))),h.reject(t)})}},function(e){s.log("Error getting access token: adobeStockRestService.getUserQuota , result="+(typeof e=="string"?e:JSON.stringify(e))),h.reject(401)}),h.promise},this.licenseImage=function(n,a,f,l){l=l||0;var c=e.defer(),h=this;return r.getAccessToken(n).then(function(e){if(e
){var p=u()+i.STOCK_LICENSE_PATH;p=p.replace(/ZZZZ/,a),p=p.replace(/LLLL/,f);var d={method:"GET",url:p,headers:{"x-api-key":r.getEnvironment().clientId,Authorization:"Bearer "+e}};o.addProductHeaders(d.headers),t(d).success(function(e,t){c.resolve(e)}).error(function(e,t){if(t===401&&l===0){r.clearAccessToken(),c.resolve(h.licenseImage(n,a,f,++l));return}s.log("Error "+t+": adobeStockRestService.licenseImage , result=\n"+(typeof e=="string"?e:JSON.stringify(e))),c.reject(t)})}},function(e){s.log("Error getting access token: adobeStockRestService.licenseImage , result="+
(typeof e=="string"?e:JSON.stringify(e))),c.reject(401)}),c.promise},this.getImageState=function(n,a,f){f=f||0;var l=e.defer(),c=this;return r.getAccessToken(n).then(function(e){if(e){var h=u()+i.STOCK_INFO_PATH;h=h.replace(/ZZZZ/,a);var p={method:"GET",url:h,headers:{"x-api-key":r.getEnvironment().clientId,Authorization:"Bearer "+e}};o.addProductHeaders(p.headers),t(p).success(function(e,t){l.resolve(e)}).error(function(e,t){if(t===401&&f===0){r.clearAccessToken(),l.resolve(c.getImageState(n,a,++
f));return}s.log("Error "+t+": adobeStockRestService.getImageState , result=\n"+(typeof e=="string"?e:JSON.stringify(e))),l.reject(t)})}},function(e){s.log("Error getting access token: adobeStockRestService.getImageState , result=\n"+(typeof e=="string"?e:JSON.stringify(e))),l.reject(401)}),l.promise},this.notifyAbandonedTransaction=function(n,a,f,l,c){c=c||0;var h=e.defer(),p=this;return r.getAccessToken(n).then(function(e){if(e){var d=u()+i.STOCK_ABANDON_TRANSACTION_PATH;d=d.replace(/YYYY/,a),d=
d.replace(/ZZZZ/,l),d=d.replace(/LLLL/,f);var v={method:"GET",url:d,headers:{"x-api-key":r.getEnvironment().clientId,Authorization:"Bearer "+e}};o.addProductHeaders(v.headers),t(v).success(function(e,t){h.resolve(e)}).error(function(e,t){if(t===401&&c===0){r.clearAccessToken(),h.resolve(p.notifyAbandonedTransaction(n,a,f,l,++c));return}s.log("Error "+t+": adobeStockRestService.notifyAbandonedTransaction , result=\n"+(typeof e=="string"?e:JSON.stringify(e))),h.reject(t)})}},function(e){s.log("Error getting access token: adobeStockRestService.notifyAbandonedTransaction , result="+
(typeof e=="string"?e:JSON.stringify(e))),h.reject(401)}),h.promise},this.searchStockAssets=function(a,f,l,c,h){h=h||0;var p=e.defer(),d=this;return r.getAccessToken(a).then(function(e){if(e){var v=u()+i.STOCK_SEARCH_API_PATH;v+="?search_parameters[words]="+f,v+="&search_parameters[limit]="+c,v+="&search_parameters[thumbnail_size]=500",v+="&locale="+n.getLocale();var m=!1;i.STOCK_SEARCH_OPTIONS.forEach(function(e){l&&l[e.param]&&(v+="&search_parameters[filters][content_type:"+e.param+"]=1",m=!0)}
),m&&(v+="&search_parameters[filters][content_type:all]=0"),v+="&result_columns[]=id&result_columns[]=title&result_columns[]=thumbnail_url&result_columns[]=thumbnail_width&result_columns[]=thumbnail_height&result_columns[]=comp_url&result_columns[]=comp_width&result_columns[]=comp_height&result_columns[]=is_licensed&result_columns[]=stock_id&result_columns[]=media_type_id&result_columns[]=content_type&result_columns[]=framerate&result_columns[]=duration&result_columns[]=comps";var g={method:"GET"
,url:v,headers:{"x-api-key":r.getEnvironment().clientId,Authorization:"Bearer "+e}};o.addProductHeaders(g.headers),t(g).success(function(e,t){t===200?p.resolve(e.files):(p.reject(t),s.log("Error "+t+": adobeStockRestService.searchStockAssets, result=\n"+(typeof e=="string"?e:JSON.stringify(e))))}).error(function(e,t){if(t===401&&h===0){r.clearAccessToken(),p.resolve(d.searchStockAssets(a,f,l,c,++h));return}s.log("Error "+t+": adobeStockRestService.searchStockAssets, result=\n"+(typeof e=="string"?
e:JSON.stringify(e))),p.reject(t)})}else p.reject(401)},function(e){s.log("Error getting access token: adobeStockRestService.searchStockAssets, result="+(typeof e=="string"?e:JSON.stringify(e))),p.reject(401)}),p.promise}}];t.attach=function(e){r.module(e).service("adobeStockRestService",i)}}),define("services/external/ccLibraryRestService",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$q","$http","imsInterface","localSettings","ccLibraries","debugLog"
,"metrics",function(e,t,n,r,i,s,o){function u(){return"https://"+n.getEnvironment().assetsHost}this.serviceName="ccLibraryRestService",this.DEFAULT_RETRY_TIME=30,this.updateElementWithData=function(r,i,a,f,l,c){c=c||0;var h=e.defer(),p=this;return n.getAccessToken(r).then(function(e){if(e){var d=u()+"/libraries/elements";d+="?data_field="+i+"%23"+a+"&data_value="+f;var v={method:"POST",url:d,headers:{"x-api-key":n.getEnvironment().clientId,"x-user-region":"US",Authorization:"Bearer "+e},data:JSON
.stringify(l)};o.addProductHeaders(v.headers),t(v).success(function(e,t,n,r){if(t===202){h.resolve(null);return}h.resolve(e)}).error(function(e,t){if(t===401&&c===0){n.clearAccessToken(),h.resolve(p.updateElementWithData(r,i,a,f,l,++c));return}s.log("Error "+t+": ccLibraryRestService.updateElementWithData , result=\n"+(typeof e=="string"?e:JSON.stringify(e))),h.reject(t)})}}),h.promise}}];t.attach=function(e){r.module(e).service("ccLibraryRestService",i)}}),define("services/external/main",["require"
,"exports","module","./adobeStockRestService","./ccLibraryRestService"],function(e,t,n){"use strict";function r(t){e("./adobeStockRestService").attach(t),e("./ccLibraryRestService").attach(t)}return{attach:r}}),define("services/interface/adobeExchange",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=6e4,s=["configuration","coreSyncManager",function(e,t){var n=new AgoraLib,r=!1,s=!1,o=!1,u=[AgoraLib.status.perpetualPurchase.code,AgoraLib.status.trialPurchase
.code,AgoraLib.status.subscriptionPurchase.code,AgoraLib.status.free.code],a=function(){console.log("Error while registering with Adobe Exchange")},f=function(t){n.log("getPurchaseUrlResponseCallback received with result "+t.statusCode+", "+t.status+", "+t.response),o=!0,t.statusCode!==AgoraLib.status.success.code&&a(t)},l=function(t){n.log("createEntitlementResponseCallback received with result "+t.statusCode+", "+t.status+", "+t.response),s=!0,t.statusCode===AgoraLib.status.success.code||t.statusCode===
AgoraLib.status.entitlementAlreadyCreated.code?n.log("entitlement creation was successful"):t.statusCode===AgoraLib.status.updateAvailable.code?n.log("entitlement created but an update is available"):(n.log("something has gone wrong so retrieve purchase URL"),n.getPurchaseUrl(f),setTimeout(function(){o||(n.log("getPurchaseUrlResponseCallback request timed out"),a())},i))},c=function(t){n.log("isEntitledResponseCallback received with result "+t.statusCode+", "+t.status+", "+t.response),r=!0,u.indexOf
(t.statusCode)>=0?n.log("User has an entitlement"):(n.log("attempting to create entitlement"),n.createEntitlement(l),setTimeout(function(){s||(n.log("createEntitlementResponseCallback request timed out"),a())},i))};this.checkEntitlement=function(){n.log("Checking entitlement"),n.isEntitled(c),setTimeout(function(){r||(n.log("isEntitledResponseCallback request timed out"),a())},i)},this.init=function(){t.isCCAppRunning()&&this.checkEntitlement()}}];t.attach=function(e){r.module(e).service("adobeExchange"
,s)}}),define("services/interface/coreSyncManager",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$q","$timeout","listenerUtils",function(e,t,n){function m(e){var t=VulcanInterface.getPayload(e),n=$.parseXML(t);return $(n)}function g(e,t){return e.find(t).text()}function y(e,t){return g(m(e),t)}function b(e){var n=new VulcanMessage(c);n.setPayload('<?xml version="1.0" encoding="utf-8"?><request><sync>on</sync><request-id>562567a8-684e-4456-bade-c985c066aebd</request-id></request>'
),t(function(){VulcanInterface.dispatchMessage(n)},e?0:5e3)}function w(){var e=new VulcanMessage(a);e.setPayload('<?xml version="1.0" encoding="utf-8"?><request><session_id>a9779289-fabb-4f71-86ff-cda02c10958e</session_id><version>1.0</version><type>DesignLibPlugin.QueryFileSyncStateRequest</type></request>'),VulcanInterface.dispatchMessage(e)}function E(){if(v){v=!1;var e=function(t){var n=y(t,"file_sync_state");VulcanInterface.removeMessageListener(a,e),n!=="normal"&&b()};VulcanInterface.addMessageListener
(a,e),w()}}function S(){VulcanInterface.addMessageListener(r,function(e){var t=m(e),n=g(t,"manifest_path"),r=g(t,"event");h.notifyNonAngular("manifestChange",r,n)}),VulcanInterface.addMessageListener(s,function(e){var t=y(e,"sign_on_state");t==="sign-out"?h.notifyNonAngular("signOut"):(h.notifyNonAngular("signIn"),E())}),VulcanInterface.addMessageListener(o,function(e){var t=y(e,"file_sync_state");t==="enabled"||t==="normal"?h.notifyNonAngular("notificationsEnabled"):h.notifyNonAngular("notificationsDisabled"
,t)}),VulcanInterface.addMessageListener(u,function(e){h.notifyNonAngular("shutdown")}),VulcanInterface.addMessageListener(i,function(e){var t=y(e,"path");h.notifyNonAngular("libraryDeleted",t)})}function x(){VulcanInterface.addMessageListener(l,function(e){h.notifyNonAngular("signOut")})}var r=VulcanMessage.TYPE_PREFIX+"DesignLib.ManifestNotification",i=VulcanMessage.TYPE_PREFIX+"DesignLib.LibraryPathNotification",s=VulcanMessage.TYPE_PREFIX+"DesignLib.SignOnStateNotification",o=VulcanMessage.TYPE_PREFIX+"DesignLib.FileSyncStateNotification"
,u=VulcanMessage.TYPE_PREFIX+"DesignLib.ShutdownNotification",a=VulcanMessage.TYPE_PREFIX+"DesignLibPlugin.QueryFileSyncStateRequest",f=VulcanMessage.TYPE_PREFIX+"DesignLib.QueryFileSyncStateResponse",l=VulcanMessage.TYPE_PREFIX+"com.adobe.aam.AAMSIGNOUTStatus",c=VulcanMessage.TYPE_PREFIX+"accc.files.setFilesSyncStatusRequest",h=n.addListenerManager(this,["manifestChange","notificationsEnabled","notificationsDisabled","signOut","signIn","shutdown","libraryDeleted"]),p="creativecloud",d=1e4,v=!1;this
.isCCAppInstalled=function(){return VulcanInterface.isAppInstalled(p)},this.isCCAppRunning=function(){return VulcanInterface.isAppRunning(p)},this.shouldLaunchCCApp=function(){return VulcanInterface.isAppInstalled(p)&&!VulcanInterface.isAppRunning(p)},this.launchCCApp=function(){VulcanInterface.isAppRunning(p)?b(!0):(v=!0,VulcanInterface.launchApp(p,!1,"--showwindow=false"))},this.getNotificationState=function(){var t=e.defer(),n=!1,r=0;if(VulcanInterface.isAppRunning(p)){var i,s=function(e){var t=
y(e,"file_sync_state");n||i(t)};i=function(e){VulcanInterface.removeMessageListener(f,s),n=!0,t.resolve({enabled:e==="normal",reason:e})},VulcanInterface.addMessageListener(f,s),w();var o=function(){n||(r++,r<3?(w(),window.setTimeout(o,d)):i("disabled"))};window.setTimeout(o,d)}else t.resolve({enabled:!1,reason:"turned_off"});return t.promise},this.initialize=function(){var t=e.defer();return S(),x(),t.resolve(!0),t.promise}}];t.attach=function(e){r.module(e).service("coreSyncManager",i)}}),define
("services/interface/csInterface",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$q","$window","$timeout","configuration",function(e,t,n,r){var i=new CSInterface,s=function(e){return e.indexOf("Error")===0||e==="EvalScript error."},o=function(t,r){var i=e.defer();return r=r||0,(new CSInterface).evalScript(t,function(e){s(e)?(console.log("Tried to execute: "+t),console.log("Failed with: "+e),r<2?n(function(){o(t,r+1).then(function(e){i.resolve(e)},function(
e){i.reject(e)})},50):i.reject(e)):i.resolve(e)}),i.promise},u=function(t,n){var i=e.defer();return r.nativeProxy.evalScript(t,n,function(e){s(e)?i.reject(e):i.resolve(e)}),i.promise};this.getPluginPath=function(){return i.getSystemPath(SystemPath.EXTENSION)},this.getUserDataPath=function(){return i.getSystemPath(SystemPath.USER_DATA)},this.getGlobalRoot=function(){return this.getUserDataPath()+r.localRoot},this.getLocalRoot=function(){return this.getGlobalRoot()+this.getAppName()+"/"},this.hostEnvironment=
i.hostEnvironment,this.getAppName=function(){return this.hostEnvironment.appName},this.getAppVersion=function(){return this.hostEnvironment.appVersion},this.getLocale=function(){var e=this.hostEnvironment.appUILocale||"en_US";return e.replace("_","-")},this.getAppDescription=function(){return this.getAppName()+" "+this.getAppVersion()+" "+this.getLocale()};var a=function(e,t,n){n=n||[];var i=n.map(JSON.stringify).join(", ");if(r.isAirPanel)return u(t,i);var s="$._ADBE_LIBS_"+e+"."+t+"("+i+")";return o
(s)},f=function(e,t){return a(i.hostEnvironment.appName,e,t)},l=function(e){e.extensionId=r.EXTENSION_ID,i.dispatchEvent(e)},c=function(e,t){i.addEventListener(e,t)};this.exec=a,this.execApp=f,this.evalScript=o,this.dispatchEvent=l,this.addEventListener=c,this.removeEventListener=function(e,t){i.removeEventListener(e,t)},this.launchInBrowser=function(e){t.cep.util.openURLInDefaultBrowser(e)},this.getSystemPath=function(e){return i.getSystemPath(e)},this.showError=function(e){return this.exec("CORE"
,"showError",[e])},this.setPanelFlyoutMenu=function(e){return i.setPanelFlyoutMenu(e)},this.updatePanelMenuItem=function(e,t,n){return i.updatePanelMenuItem(e,t,n)},this.setContextMenu=function(e,t){return i.setContextMenu(e,t)},this.getOSInformation=function(){return i.getOSInformation()},this.isWindowsOS=function(){return this.getOSInformation().indexOf("Windows")!==-1}}];t.attach=function(e){r.module(e).service("csInterface",i)}}),define("services/interface/imsInterface",["require","exports","module"
,"angular"],function(e,t,n){"use strict";var r=e("angular"),i="openid,AdobeID,creative_cloud,creative_sdk,cc_private,sao.stock,sao.cce_private",s="com.adobe.csxs.events.internal.ims.FetchAccessToken",o=["$q","$timeout","csInterface","localSettings","ccLibraries",function(e,t,n,r,o){function m(e){v.forEach(function(t){e?(c=e,t.resolve(e)):t.reject("LOGGED_OUT")}),v=[],h=!1}function g(e){d&&t.cancel(d);var n=e&&e.data&&e.data.access_token;m(n)}function y(){d=undefined,console.log("Timed out fetching access token from IMS"
),g()}function b(e,n){if(!e||e===""){m(undefined);return}var r=n.clientId,o=n.clientSecret;p||(p=u.imsConnectWithEndpoint(n.ims)),u.addEventListener(s,g),u.imsFetchAccessToken(p,r,o,e,"",i),d&&t.cancel(d),d=t(y,5e3)}var u=new IMSInterface,a="production",f={staging:{label:"Staging",clientId:"ProjectCentralPanel6",clientSecret:"60408458-23e3-4a73-8534-3b3b99248696",storageHost:"cc-api-storage-stage.adobe.io",assetsHost:"cc-api-assets-stage.adobe.io",ccwebHost:"assets-stage.adobecc.com",ims:"ims-na1-stg1.adobelogin.com"
,stockHost:"stock-stage.adobe.io",stockWebHost:"staging-astock1.fotolia.net"},production:{label:"Production",clientId:"ProjectCentralPanel6",clientSecret:"4b049aab-223d-4d20-9b72-e08265fbae23",storageHost:"cc-api-storage.adobe.io",assetsHost:"cc-api-assets.adobe.io",ccwebHost:"assets.adobe.com",ims:"ims-na1.adobelogin.com",stockHost:"stock.adobe.io",stockWebHost:"stock.adobe.com"}},l=function(){var e=o.getServiceInfo();return e&&e.environment?e.environment.toLowerCase():r.getDebugValue("currentEnvironment"
)||a};this.getEnvironment=function(){var e=f[l()],t=r.getDebugValue("storageHost");return t&&(e.storageHost=t,e.overrides=["storageHost"]),e};var c,h=!1,p,d,v=[];this.getAccessToken=function(t){var n=e.defer();return c?(n.resolve(c),n.promise):(v.push(n),h||(h=!0,console.log("Fetching access token: environment is "+this.getEnvironment().label),b(t,this.getEnvironment())),n.promise)},this.clearAccessToken=function(){c=undefined}}];t.attach=function(e){r.module(e).service("imsInterface",o)}}),define
("services/interface/metrics",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i="adbemprojectcentral.rebootprod2",s="adbemprojectcentral.rebootdev2",o="adbemdigitalmedia.rebootprod2",u="adbemdigitalmedia.rebootdev2",a="Library Action",f="Library Panel Action",l="LibraryAction",c="LibraryPanelAction",h="Home",p=["$window","ccLibraries","configuration","csInterface","localSettings","versionManager","debugLog",function(e,t,n,p,d,v,m){function N(e,t){if(e){e.contextData
["adb.page.pageInfo.isSDKUtilized"]="Project Central",e.contextData["adb.page.pageInfo.namespace"]=n.currentProduct.config.analytics.namespace,e.contextData["adb.page.pageInfo.productCategory"]="desktop",e.contextData["adb.page.pageInfo.productVersion"]=S.productVersion||"Unknown",e.contextData["adb.page.pageInfo.panelVersion"]=S.version||"Unknown",e.contextData["adb.page.pageInfo.appId"]=S.product,e.contextData["adb.user.profile.profileId"]=w||"Unknown",e.contextData["adb.user.profile.attributes.clientId"
]=S.product,w&&(e.visitorID=w),S.os&&(e.contextData["a.OSEnvironment"]=S.os),e.contextData["adb.page.pageInfo.language"]=p.getLocale(),e.contextData["adb.user.profile.attributes.pcOffline"]=S.offline?"Y":"N",t&&Object.keys(t).forEach(function(n){e.contextData["adb.user.profile.attributes."+n]=t[n]});var r=[];Object.keys(e.contextData).forEach(function(e){r.push("contextData."+e)}),e.trackOffline=!0,e.linkTrackVars=r.join(",")}}var g=t.analyticsUtils,y=!1,b=!1,w=null,E,S={},x,T={},C=function(){if(!
b)return;x&&(x.contextData={},x.contextData["adb.page.pageInfo.pageName"]=h,x.contextData["adb.user.profile.attributes."+c]=!0,x.contextData["adb.user.profile.attributes."+c+"Description"]=h,N(x),x.pageName=h,x.t(),d.getDebugValue("logMetrics")&&console.info("Analytics: "+h+" "+JSON.stringify(x.contextData)))},k=function(e,t,i){if(!b)return;t=t||{},r.isFunction(n.currentProduct.reportEvent)&&n.currentProduct.reportEvent(e,t);if(x){var s=i?f:a,o=i?c:l;x.contextData={},x.contextData["adb.event.eventInfo.eventName"
]=s,x.contextData["adb.event.eventInfo.eventAction"]=e,x.contextData["adb.user.profile.attributes."+o]=!0,x.contextData["adb.user.profile.attributes."+o+"Description"]=e,x.contextData["a.action"]=s,N(x,t),x.tl(!0,"o",s),d.getDebugValue("logMetrics")&&console.info("Analytics: "+s+" "+JSON.stringify(x.contextData))}},L=function(e,t,i,s){var o=e+":"+(t||"");o&&o.length>255&&(o=o.substring(0,255)),s&&r.isFunction(n.currentProduct.reportEvent)&&n.currentProduct.reportEvent(o,i),x&&(x.contextData={},x.
contextData["adb.event.eventInfo.eventName"]="General Error",x.contextData["adb.event.eventInfo.eventAction"]=o,x.contextData["a.action"]="error",N(x,i),x.tl(!0,"o","error"),d.getDebugValue("logMetrics")&&console.info("Analytics: error "+JSON.stringify(x.contextData)))},A=function(r){b=r,b&&(e.isDev?E=u+","+s+","+n.currentProduct.config.analytics.devId:E=o+","+i+","+n.currentProduct.config.analytics.prodId,x=s_gi(E),x.ssl=!0),m.log("Analytics: "+b),t.setOption("SHARED_LOCAL_STORAGE_ANALYTICS",b),
b&&(C(),k("initializePanel",null,!0))},O=function(e){e.product&&(S.product=e.product),e.productVersion&&(S.productVersion=e.productVersion),e.version&&(S.version=e.version),e.os&&(S.os=e.os),e.offline!==undefined&&(S.offline=e.offline)};e.onerror=function(e,t,n){L(t+"#"+n,e)},this.addProductHeaders=function(e){return e&&(e["X-Product"]=S.product+"/"+S.productVersion,e["X-Product-Location"]="libraries/"+(r.BUILT?S.version:"DEV")),e},this.isEnabled=function(){return b},this.getRepositories=function(
){return E},this.reportUseElement=function(e,t,n){b&&g&&g.reportUseElement(e,t,n)},this.reportCheckoutElement=function(e,t,n){b&&g&&g.reportCheckoutElement(e,n,t)},this.reportCreateLink=function(e,t){b&&g&&g.reportCreateLink(e,t)},this.reportShareElementLink=function(e){b&&g&&g.reportShareElementLink(e)},this.reportShareLibraryLink=function(e){b&&g&&g.reportShareLibraryLink(e)},this.reportError=L,this.reportEvent=k,this.reportPanelEvent=function(e,t){this.reportEvent(e,t,!0)},this.setEnvironment=
O,this.setUserId=function(e){if(!e){A(!1);return}if(w===e)return;w=e,y||(y=!0,O({product:n.currentProduct.config.fullName,version:v.getPluginVersion(),os:n.os}),p.evalScript("$._ADBE_LIBS_CORE.getApplicationVersion()").then(function(e){O({productVersion:e})}),p.evalScript("$.os").then(function(e){O({os:e})})),p.execApp("isAnalyticsEnabled").then(function(e){var t=!1;typeof e=="boolean"?t=e:typeof e=="string"&&(t=e.toLowerCase()==="true"),A(t)})},this.setExtraEventMetrics=function(e,t){T[e]=t},this
.getExtraEventMetrics=function(e){return T[e]},this.clearExtraEventMetrics=function(e){delete T[e]}}];t.attach=function(e){r.module(e).service("metrics",p)}}),define("services/interface/main",["require","exports","module","./adobeExchange","./coreSyncManager","./csInterface","./imsInterface","./metrics"],function(e,t,n){"use strict";function r(t){e("./adobeExchange").attach(t),e("./coreSyncManager").attach(t),e("./csInterface").attach(t),e("./imsInterface").attach(t),e("./metrics").attach(t)}return{
attach:r}}),define("services/managers/documentWatcher",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=0,s=["$rootScope","csInterface","fileUtils","configuration",function(e,t,n,r){var s={},o=function(){var e="documentListener"+i;return i++,e},u=function(e){var t;if(e.fullPath){var r=n.statFile(e.fullPath);t=r&&r.mtime}var i=!e.mtime||!t||e.mtime.getTime()!==t.getTime();return e.mtime=t,i},a=function(n){Object.keys(s).forEach(function(i){var o=s[i],a=n.data
.substring(n.data.indexOf("<url>")+5,n.data.indexOf("</url>"));a=a.split("file://").join(""),r.currentProduct.config.code==="IDSN"&&(a=unescape(a));var f=o.tempFileId||o.path;if(a.indexOf(f)>0){var l=n.type!=="documentAfterDeactivate",c=n.type==="documentAfterSave",h=!1,p=function(e){o.callback(e),h=!0};l?c&&u(o)&&p("saved"):t.exec("CORE","isDocumentOpen",[o.fullPath]).then(function(e){if(e===undefined||e==="undefined")return;var t=JSON.parse(e);t||p("closed")}),h&&!e.$$phase&&e.$apply()}})},f=function(
e){a(e)},l=function(e){a(e)},c=function(){var e=Object.keys(s).length;e>0?e===1&&(t.addEventListener("documentAfterSave",f),t.addEventListener("documentAfterDeactivate",l)):e===0&&(t.removeEventListener("documentAfterSave",f),t.removeEventListener("documentAfterDeactivate",l))};this.startListening=function(e,t,n){var r=!1;Object.keys(s).forEach(function(e){s[e]&&s[e].fullPath===t&&(r=!0)});if(r)return undefined;var i=o(),a=e&&e.match(/^.*_([0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}).*$/
),f=a&&a[1],l={path:e,fullPath:t,tempFileId:f,callback:n,hasDocumentChanged:!1,previousChangedState:!1};return u(l),s[i]=l,c(),i},this.stopListening=function(e){var t=s[e];t&&(delete s[e],c())},this.checkListenerExists=function(e,t){return s[e]?s[e].path===t.path&&s[e].callback===t.callback:!1}}];t.attach=function(e){r.module(e).service("documentWatcher",s)}}),define("services/managers/layerSelectionManager",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),
i=["csInterface","configuration","listenerUtils",function(e,t,n){function u(){i=!0,e.execApp("getLayerInfo").then(function(e){i=!1;try{r=JSON.parse(e)}catch(t){r=undefined}o.notify("layerSelectionChanged",r)})}function l(){e.execApp("getCurrentState").then(function(e){a=undefined,f=!1;if(e&&e!=="undefined"){try{var t=JSON.parse(e);a=t.path,f=t.layerID!==-1}catch(n){console.log(n)}u()}})}var r,i=!1,s=!1,o=n.addListenerManager(this,["layerSelectionChanged"]),a,f=!1;this.handleSelectionChange=function(
){s&&l()},this.startListening=function(){s=!0,l()},this.stopListening=function(){s=!1},this.getLayerName=function(){return e.execApp("getLayerName")},this.getLayerInfo=function(){return r},this.requestUpdate=function(){i||u()},this.getCurrentDocumentName=function(){var e;try{a&&a.length>0&&(a.indexOf("/")>-1?e=a.substring(a.lastIndexOf("/")+1):e=a.substring(a.lastIndexOf("\\")+1))}catch(t){}return e},this.getCurrentDocumentPath=function(){return a},this.hasDocumentOpen=function(){return f}}];t.attach=
function(e){r.module(e).service("layerSelectionManager",i)}}),define("services/managers/menuManager",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$translate","$rootScope","csInterface","listenerUtils",function(e,t,n,i){function a(e,t){var n="";Object.keys(e).forEach(function(t){e[t]!==undefined&&(n+=t+'="'+e[t]+'" ')});var r="";return t&&(r=u(t,!0)),"<MenuItem "+n+">"+r+"</MenuItem>"}function f(t){return window.sendRawMenuData?(t.forEach(function(t)
{t.label&&(t.label=e.instant(t.label,t.translationData))}),JSON.stringify(t)):u(t)}var s=i.addListenerManager(this,["flyoutMenuClicked","flyoutMenuOpened"]),o=function(t,n){return t=e.instant(t,n),t=t.replace(new RegExp("&","g"),"&amp;").replace(new RegExp('"',"g"),"&quot;").replace(new RegExp("'","g"),"&apos;").replace(new RegExp("<","g"),"&lt;").replace(new RegExp(">","g"),"&gt;"),t},u;u=function(e,t){var n="";return e.forEach(function(e){e.divider?n+='<MenuItem Label="---"/>':n+=a({Id:e.menuId
,Label:o(e.label,e.translationData),Checkable:!0,Checked:e.checked,Enabled:e.hasOwnProperty("enableMenu")?e.enableMenu:!0},e.menuItems)}),t||(n="<Menu>"+n+"</Menu>"),n};var l=function(e,t,n){return t=t||{},n=n||"MENU",e.forEach(function(e,r){var i=n+"_"+r;e.menuId=i,t[i]=e,e.menuItems&&l(e.menuItems,t,i)}),t};this.setContextMenu=function(e){var r=l(e);n.setContextMenu(f(e),function(e){t.$apply(function(){r[e]&&r[e].onClick&&r[e].onClick()})})},window.oncontextmenu=function(){n.setContextMenu(u([]
),r.noop)};var c;n.addEventListener("com.adobe.csxs.events.flyoutMenuClicked",function(e){var n=e.data.menuId;n&&c&&t.$apply(function(){c[n]&&c[n].onClick&&c[n].onClick()}),s.notify("flyoutMenuClicked",e)}),n.addEventListener("com.adobe.csxs.events.flyoutMenuOpened",function(e){s.notify("flyoutMenuOpened",e)}),this.setFlyoutMenu=function(e){c=l(e),n.setPanelFlyoutMenu(f(e))},this.updateFlyoutMenuItem=function(e,t,r){n.updatePanelMenuItem(e,t,r)}}];t.attach=function(e){r.module(e).service("menuManager"
,i)}}),define("services/managers/tempFileManager",["require","exports","module","angular"],function(e,t,n){"use strict";var r=256,i=e("angular"),s=["$q","configuration","fileUtils",function(e,t,n){function o(e,s){var o=e.split("/").pop(),u=t.strTempFolder+"/",a="."+n.getFileNameExtension(o),f=n.getUniqueFileName();if(i.isString(s)){var l=u.length+f.length+a.length+1;r-l<s.length&&(s=s.substring(0,r-l)),t.currentProduct.config.code==="IDSN"||t.currentProduct.config.code==="ILST"?f=n.curateFileName
(s)+"_"+f:f=n.curateFileName(s)}return u+f+a}function u(t,r){var i=e.defer(),s=o(t,r),u=s,a=1;while(n.existsFile(u))u=n.getFileNameWithoutExtension(s)+"("+a++ +")."+n.getFileNameExtension(s);return n.copyFile(t,u,function(e,t){if(e){i.reject(e);return}i.resolve(u)}),i.promise}var s={};this.createTempFile=function(e,t){return t.getContentPath().then(function(t){var n=e.getReference();return s[n]&&s[n].path===t?s[n].tempPath:u(t,e.name).then(function(e){return s[n]={path:t,tempPath:e},e})})},this.updateTempFile=
function(e,t,n){t.getContentPath().then(function(t){var r=e.getReference();s[r]={path:t,tempPath:n}})},this.deleteTempFile=function(e,t){n.deleteFile(t);var r=e.getReference();s[r]&&s[r].tempPath===t&&delete s[r]}}];t.attach=function(e){i.module(e).service("tempFileManager",s)}}),define("services/managers/themeManager",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$window","colorUtils","listenerUtils","csInterface","configuration",function(e,t,n,r,i)
{var s=n.addListenerManager(this,["colorThemeChanged"]),o=function(e,t){function n(e,t){var n=isNaN(t)?e:e+t;return n<0?n=0:n>255&&(n=255),n=Math.round(n),n=n.toString(16),n.length===1?"0"+n:n}var r="";return e&&(r=n(e.red,t)+n(e.green,t)+n(e.blue,t)),r},u,a,f;this.getBaseFontSize=function(){return u},this.getBaseFontFamily=function(){return a},this.getBackgroundColor=function(){return f},this.updateTheme=function(e){var t=e.panelBackgroundColor.color;f=o(t),u=e.baseFontSize,a=e.baseFontFamily;var n="css/main.css"
,r=e.panelNamedTheme||i.currentProduct.config.themes[f];if(!r){var l,c;for(l=1;l<32;l+=1){c=o(t,l),r=i.currentProduct.config.themes[c];if(r)break}}r||(r=i.currentProduct.config.defaultTheme),r&&(n=i.currentProduct.config.code+"/css/"+r+"/main.css");var h=document.getElementsByTagName("link"),p=h[h.length-1],d=p.cloneNode(!0),v=d.getAttribute("href"),m="";v.indexOf("//")!==-1&&(m=v.split("/").slice(0,3).join("/")+"/"),d.setAttribute("href",m+n),p.parentNode.appendChild(d),setTimeout(function(){p.parentNode
.removeChild(p)},20),s.notify("colorThemeChanged")};var l=function(t){var n=JSON.parse(e.__adobe_cep__.getHostEnvironment()).appSkinInfo;this.updateTheme(n)}.bind(this);this.updateTheme(r.hostEnvironment.appSkinInfo),r.addEventListener(CSInterface.THEME_COLOR_CHANGED_EVENT,l)}];t.attach=function(e){r.module(e).service("themeManager",i)}}),define("services/managers/versionManager",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$http","$q","csInterface"
,"configuration","fileUtils",function(e,t,n,r,i){var s;this.getPluginVersion=function(){if(!s)try{var e=n.getPluginPath()+"/CSXS/manifest.xml",t=i.readFile(e,"utf8"),r=new DOMParser,o=r.parseFromString(t,"text/xml"),u=o.getElementsByTagName("ExtensionManifest")[0];s=u&&u.getAttribute("ExtensionBundleVersion")}catch(a){s="2.3.1050"}return s}}];t.attach=function(e){r.module(e).service("versionManager",i)}}),define("services/managers/main",["require","exports","module","./documentWatcher","./layerSelectionManager"
,"./menuManager","./tempFileManager","./themeManager","./versionManager"],function(e,t,n){"use strict";function r(t){e("./documentWatcher").attach(t),e("./layerSelectionManager").attach(t),e("./menuManager").attach(t),e("./tempFileManager").attach(t),e("./themeManager").attach(t),e("./versionManager").attach(t)}return{attach:r}}),define("services/utils/adobeStockLicenseUtils",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$q","$translate","$window","configuration"
,"debugLog","listenerUtils","adobeStockRestService","ccLibraries","metrics","adobeStockUtils","linkUtils",function(e,t,n,r,i,s,o,u,a,f,l){function h(e,n,r,i){var s=t.instant("DL_STOCK_PURCHASE_DIALOG_TITLE"+f.getLocalizationSuffix(e));c.notify("showStockPurchaseDialog",s,n,r,i)}function p(e){return t.instant("DL_STOCK_PURCHASE_SERVICE_UNAVAILABLE_ERROR"+f.getLocalizationSuffix(e))}function d(e){return t.instant("DL_STOCK_PURCHASE_OFFLINE_ERROR"+f.getLocalizationSuffix(e))}function v(e){return t.instant
("DL_STOCK_PURCHASE_UNKNOWN_ERROR"+f.getLocalizationSuffix(e))}function m(e,t){n.navigator.onLine?!t||t===404||t===408||t===500||t===502||t===503?h(e,p(e)):h(e,v(e)):h(e,d(e))}function g(e,t,n,r){e&&e.id&&a.reportCheckoutElement(e,n,r)}function y(e,t){return t.type===r.VIDEO_ELEMENT_TYPE&&e?e.indexOf("Video_")===-1?"Video_"+e:e:f.getLicenseType(t)}var c=s.addListenerManager(this,["showStockPurchaseDialog"]),b=function(t,n,r,s,u){var a=y(u,t);return o.licenseImage(n,r,a).then(function(n){var o=n&&
n.contents&&n.contents[r],u=o&&o.purchase_details,a=u&&u.state,c=n&&n.member&&n.member.stock_id;return a?(g(t,r,s,"complete;"+a),a==="just_purchased"||a==="purchased"?{contentId:r,stockId:c,imageContents:o,cartId:s}:(a!=="not_possible"&&i.log("Unexpected state in response from Adobe Stock licensing service: "+a),u.url&&l.launchLicenseURL(u.url),e.reject("STOCK_PURCHASE_FAILED"))):(g(t,r,s,"complete;error"),h(t,"DL_STOCK_PURCHASE_UNKNOWN_ERROR"+f.getLocalizationSuffix(t)),e.reject("STOCK_PURCHASE_ERROR"
))},function(n){return g(t,r,s,"complete;error"),m(t,n),e.reject("STOCK_PURCHASE_FAILED")})},w=function(e,t,n,r,s,u){g(e,n,r,"cancel;yes"),o.notifyAbandonedTransaction(t,n,y(u,e),s).then(function(e){i.log("Successfully notified abandoned stock license transaction")},function(e){i.log("Failed to notify of abandoned stock license transaction, status: "+e)})};this.license=function(t,n,i,s,a,f){var c=f||e.defer(),p=u.utils.generateUuid();g(t,i,p,"right click;yes");if(t.type===r.VIDEO_ELEMENT_TYPE&&!a
){var d=this.license,E=this.showVideoTypeChooser;return o.searchStockAssets(n,i).then(function(e){var r=function(e,r){d(t,n,i,r,e,c)},s=function(){c.reject("STOCK_PURCHASE_CANCELLED")};E(e[0],!0,r,s)}),c.promise}return s?c.resolve(b(t,n,i,p,a)):o.getUserQuota(n,i,y(a,t)).then(function(e){var r=e&&e.purchase_options,s=r&&r.state,o=r&&r.message,u=r&&r.url,f=function(){u?(l.launchLicenseURL(u),g(t,i,p,"stock site;purchase"),c.reject("STOCK_PURCHASE_ON_WEBSITE")):c.resolve(b(t,n,i,p,a))},d=function()
{s&&w(t,n,i,p,s,a),c.reject("STOCK_PURCHASE_CANCELLED")};g(t,i,p,"user quota;"+s);if(s==="possible"||s==="overage"){h(t,o,f,d);return}if(s==="not_possible"){if(o){h(t,o,f,d);return}if(u){l.launchLicenseURL(u),g(t,i,p,"stock site;purchase"),c.reject("STOCK_PURCHASE_ON_WEBSITE");return}}h(t,v(t)),c.reject("STOCK_PURCHASE_ERROR")},function(e){m(t,e),c.reject("STOCK_PURCHASE_ERROR")}),c.promise},this.showStockError=function(e,t){c.notify("showStockPurchaseDialog",e,t)},this.showVideoTypeChooser=function(
e,n,i,s){var o=f.getLicenseTypesFromSearchResult(e);if(e.is_licensed&&e.is_licensed===r.STOCK_VIDEO_LICENSE_TYPE_4K.field){i(r.STOCK_VIDEO_LICENSE_TYPE_4K.label,!0);return}var u=n?t.instant("DL_STOCK_PURCHASE_DIALOG_TITLE_VIDEO"):t.instant("DL_STOCK_PURCHASE_DIALOG_TITLE_SAVE_VIDEO"),a=n?t.instant("DL_STOCK_PURCHASE_DIALOG_VIDEO_TYPE_MESSAGE"):t.instant("DL_STOCK_PURCHASE_DIALOG_VIDEO_SAVE_TYPE_MESSAGE");a+="<br><br>";var l=0;for(l=o.length-1;l>=0;l--)a+=o[l].label+" : "+o[l].resolution+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
;o.length>1?c.notify("showStockPurchaseDialog",u,a,i,s,o[0].label,o[1].label):i(o[0].label,!1)}}];t.attach=function(e){r.module(e).service("adobeStockLicenseUtils",i)}}),define("services/utils/adobeStockUpdateUtils",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$q","configuration","designLibraryManager","adobeStockUtils","designLibraryElements",function(e,t,n,r,i){function s(e){if(!e)return!1;var t=["purchase_details","comp","thumbnail"];return t.every
(function(t){return e[t]&&e[t].url&&e[t].content_type})}function o(e,t){return!0}function u(n,u,a,f){if(!s(f))return e.reject("Invalid data from license API: "+JSON.stringify(f));var l=f.purchase_details,c=f.comp,h=f.thumbnail,p=r.getStockSearchQuery(n),d={content_id:u,license:l.license,state:t.STOCK_STATE_PURCHASED,query:p};a&&(d.stock_id=a.toString()),n.beginOperation();var v=[],m=function(e){e.setValue(t.STOCK_NAMESPACE,t.STOCK_DATA_KEY,d),n.type===t.VIDEO_ELEMENT_TYPE&&(l.framerate||l.duration
)&&e.setValue("video","data",{framerate:l.framerate,duration:l.duration});var r=e.setContentFromURL(!0,l.url,{}).then(function(){l.width&&(e.width=l.width),l.height&&(e.height=l.height),e.isFullSize=!0,l.content_length&&(e.contentLength=l.content_length)});v.push(r)},g=n.getPrimaryRepresentation();if(g.isExternalLink&&o(g.getContentURL(),c.url))g.relationship="rendition",m(n.createRepresentation(l.content_type,"primary",0,!0));else{n.removeAllRepresentations();var y=n.createRepresentation(l.content_type
,"primary");m(y);var b=n.createRepresentation(c.content_type,"rendition");b.setValue(t.STOCK_NAMESPACE,t.STOCK_DATA_KEY,{content_id:u,state:t.STOCK_STATE_NOT_PURCHASED}),n.type===t.VIDEO_ELEMENT_TYPE&&(c.framerate||c.duration)&&b.setValue("video","data",{framerate:c.framerate,duration:c.duration});var w=b.setContentFromURL(!0,c.url,{}).then(function(){c.width&&(b.width=c.width),c.height&&(b.height=c.height),c.content_length&&(b.contentLength=c.content_length)});v.push(w);var E=n.createRepresentation
(h.content_type,"rendition"),S=E.setContentFromURL(!1,h.url,{}).then(function(){return h.width&&(E.width=h.width),h.height&&(E.height=h.height),E.getContentPath().then(function(e){e&&n.setThumbnailCache(i.getRenditionSize(n),e)})});v.push(S)}var x=function(){n.endOperation()};return e.all(v).then(x,x)}this.updateLicenses=function(t){var i=[],s=String(t.contentId),o=t.stockId,a=t.imageContents,f=n.getLibraries();return f&&f.forEach(function(e){e.isWritable&&e.elements.forEach(function(e){if(r.getStockId
(e)===s&&!r.isLicensed(e)){var t=u(e,s,o,a);i.push(t)}})}),e.all(i)}}];t.attach=function(e){r.module(e).service("adobeStockUpdateUtils",i)}}),define("services/utils/adobeStockUtils",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["configuration",function(e){var t=function(t){return t&&t.getValue(e.STOCK_NAMESPACE,e.STOCK_DATA_KEY)};this.getStockData=t,this.setStockData=function(t,n){t.setValue(e.STOCK_NAMESPACE,e.STOCK_DATA_KEY,n)};var n=function(e,r){var i=
r===undefined?e.getPrimaryRepresentation():e.representations[r],s=t(i);return s&&i.isExternalLink&&i.getCachedExternalLinkError()?n(e,r===undefined?0:r+1):s};this.getStockDataForElement=n,this.isStockAsset=function(e){var t=this.getLocalizationSuffix(e)!=="",n=this.getStockDataForElement(e)!==undefined;return t&&n},this.isLicensed=function(t){var r=n(t);return r&&r.state===e.STOCK_STATE_PURCHASED?!0:!1},this.getStockId=function(e){var t=this.getStockDataForElement(e);return t?String(t.content_id)
:null},this.getStockSearchQuery=function(e){var t;return e.representations.some(function(e){return t=e.getValue("stock","query"),t}),t},this.setStockSearchQuery=function(e,t){e&&e.setValue("stock","query",t)},this.getLocalizationSuffix=function(t){if(t){if(t.type===e.IMAGE_ELEMENT_TYPE)return"_PHOTO";if(t.type===e.VIDEO_ELEMENT_TYPE)return"_VIDEO"}return""},this.getLicenseType=function(t){if(t){if(t.type===e.IMAGE_ELEMENT_TYPE)return"Standard";if(t.type===e.VIDEO_ELEMENT_TYPE)return"Video_Original"
}return"Standard"},this.getStockEditError=function(t){var n=t.getPrimaryRepresentation(),r=n&&this.getStockData(n),i=r&&r.state===e.STOCK_STATE_PURCHASED;if(i&&n.isExternalLink&&n.getCachedExternalLinkError())return"DL_STOCK_LICENSE_TO_EDIT"+this.getLocalizationSuffix(t)},this.getLicenseTypesFromSearchResult=function(t){var n=[];return e.STOCK_VIDEO_LICENSE_TYPES.forEach(function(e){if(t.comps&&t.comps[e.field]){var r=t.comps[e.field];n.push({field:e.field,label:e.label,resolution:r.width+" x "+r
.height})}}),n}}];t.attach=function(e){r.module(e).service("adobeStockUtils",i)}}),define("services/utils/apiHttpInterceptor",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$q",function(t){return{request:function(t){var n=!!e.toUrl;return window.noFileSystemAccess?t.url="http://localhost:3001/js/"+t.url:t.url.indexOf(".tmpl.html")===t.url.length-10&&n&&(t.url="js/"+t.url+"?cachebuster="+Math.random()),t},responseError:function(e){return t.reject(e)}}}
];t.attach=function(e){r.module(e).config(["$httpProvider",function(e){e.interceptors.push(i)}])}}),define("services/utils/colorUtils",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["configuration",function(e){this.serviceName="colorUtils",this.rgbToHex=function(e){var t=e.red<<16|e.green<<8|e.blue,n="000000"+t.toString(16);return"#"+n.substr(n.length-6)},this.hexToRGB=function(e){return e=e.charAt(0)==="#"?e.substring(1):e,{red:parseInt(e.substring(0,2
),16),green:parseInt(e.substring(2,4),16),blue:parseInt(e.substring(4,6),16)}},this.getBrightness=function(e){return(e.red+e.green+e.blue)/3},this.getBorder=function(e){var t=this.getBrightness(e);return t>225?"1px solid black":"none"},this.colorDataToHexValue=function(t){Array.isArray(t)&&(t=this.getRGBRepresentation(t));if(!t||!t.value)return"";var n=r.isFunction(e.currentProduct.config.rgbRound)?e.currentProduct.config.rgbRound:!1,i=n?n(t.value.r):t.value.r,s=n?n(t.value.g):t.value.g,o=n?n(t.value
.b):t.value.b;return this.rgbToHex({red:i,green:s,blue:o})},this.getStringColorValue=function(e){var t;return e&&(e.mode==="CMYK"?t="C"+Math.round(e.value.c)+" M"+Math.round(e.value.m)+" Y"+Math.round(e.value.y)+" K"+Math.round(e.value.k):e.mode==="RGB"?t="R"+Math.round(e.value.r)+" G"+Math.round(e.value.g)+" B"+Math.round(e.value.b):e.mode==="Lab"?t="L"+Math.round(e.value.l)+" A"+Math.round(e.value.a)+" B"+Math.round(e.value.b):e.mode==="HSB"?t="H"+Math.round(e.value.h)+" S"+Math.round(e.value.s
)+" B"+Math.round(e.value.b):e.mode==="Gray"&&(t="G"+Math.round(e.value))),t},this.getRGBRepresentation=function(e){var t=e.filter(function(e){return e.mode==="RGB"});if(t.length>0)return t[0]}}];t.attach=function(e){r.module(e).service("colorUtils",i)}}),define("services/utils/debugLog",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$window","csInterface","configuration","localSettings","fileUtils",function(e,t,n,i,s){function y(e){u.stat(p,function(
t,n){if(!t&&n.size>o){u.rename(p,d,e);return}e(null)})}function b(){s.ensurePathExists(f,function(e){if(e){m=undefined,console.info(e);return}y(function(e){if(e){m=undefined,console.info(e);return}var t=m;m=undefined,g=!0,u.appendFile(p,t,function(e){e&&console.info(e),g=!1,m&&b()})})})}var o=5242880,u=nodeRequire("fs"),a;u&&(a=process.env);var f;if(t.isWindowsOS()){var l=a&&a.TEMP.replace(/\\/g,"/");f=l+"/CreativeCloud/Creative Cloud Libraries"}else f=a&&a.HOME+"/Library/Logs/CreativeCloud/Creative Cloud Libraries"
;var c="CC Library Panel "+t.getAppName()+" "+t.getAppVersion(),h=".log",p=f+"/"+c+h,d=f+"/"+c+" (prev)"+h,v=f+"/"+c+" (jsx)"+h,m,g=!1;this.init=function(){t.exec("CORE","setLogPath",[v]),t.exec("CORE","writeToLog",["","--- Starting new session ---"]);if(r.BUILT&&!window.logOverride){var e=this;console.log=function(t){var n=Array.prototype.slice.call(arguments).map(function(e){if(e!==null&&typeof e=="object")try{e=JSON.stringify(e)}catch(t){}return e}).join(" ");e.log(n)}}},this.log=function(e){if(!
u){if(r.BUILT){console.info(e);return}console.log(e);return}if(window.logOverride){window.logOverride(e);return}var t=(new Date).toString()+" "+e+"\n";m?m+=t:(m=t,g||b())},this.showLogFile=function(n){var r=t.isWindowsOS()?"start":"/usr/bin/open";e.cep.process.createProcess(r,n?v:p)},this.getLogFolder=function(){return f}}];t.attach=function(e){r.module(e).service("debugLog",i)}}),!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&
define.amd)define("jszip",[],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.JSZip=e()}}(function(){return function e(t,n,r){function i(o,u){if(!n[o]){if(!t[o]){var l="function"==typeof require&&require;if(!u&&l)return l(o,!0);if(s)return s(o,!0);throw new Error("Cannot find module '"+o+"'")}var h=n[o]={exports:{}};t[o][0].call(h.exports,function(e){var n=t[o][1][e];return i(n?n:e)},h,h.exports,e,t,n,r)}return n[o].exports
}for(var s="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,i,s,o,u,a,f="",l=0;l<e.length;)t=e.charCodeAt(l++),n=e.charCodeAt(l++),i=e.charCodeAt(l++),s=t>>2,o=(3&t)<<4|n>>4,u=(15&n)<<2|i>>6,a=63&i,isNaN(n)?u=a=64:isNaN(i)&&(a=64),f=f+r.charAt(s)+r.charAt(o)+r.charAt(u)+r.charAt(a);return f},n.decode=function(e){var t,n,i,s,o,u,a,f="",
l=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");l<e.length;)s=r.indexOf(e.charAt(l++)),o=r.indexOf(e.charAt(l++)),u=r.indexOf(e.charAt(l++)),a=r.indexOf(e.charAt(l++)),t=s<<2|o>>4,n=(15&o)<<4|u>>2,i=(3&u)<<6|a,f+=String.fromCharCode(t),64!=u&&(f+=String.fromCharCode(n)),64!=a&&(f+=String.fromCharCode(i));return f}},{}],2:[function(e,t){"use strict";function n(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}n.prototype={getContent:
function(){return null},getCompressedContent:function(){return null}},t.exports=n},{}],3:[function(e,t,n){"use strict";n.STORE={magic:"\0\0",compress:function(e){return e},uncompress:function(e){return e},compressInputType:null,uncompressInputType:null},n.DEFLATE=e("./flate")},{"./flate":8}],4:[function(e,t){"use strict";var n=e("./utils"),r=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049
,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275
,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277
,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143
,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112
,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746
,711928724,3020668471,3272380065,1510334235,755167117];t.exports=function(e,t){if("undefined"==typeof e||!e.length)return 0;var i="string"!==n.getTypeOf(e);"undefined"==typeof t&&(t=0);var s=0,o=0,u=0;t=-1^t;for(var a=0,f=e.length;f>a;a++)u=i?e[a]:e.charCodeAt(a),o=255&(t^u),s=r[o],t=t>>>8^s;return-1^t}},{"./utils":21}],5:[function(e,t){"use strict";function n(){this.data=null,this.length=0,this.index=0}var r=e("./utils");n.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex
:function(e){if(this.length<e||0>e)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature
:function(){},readDate:function(){var e=this.readInt(4);return new Date((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1)}},t.exports=n},{"./utils":21}],6:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!1,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],7:[function(e,t,n){"use strict";var r=e("./utils");n.string2binary=function(e){return r.string2binary(e)},n.string2Uint8Array=
function(e){return r.transformTo("uint8array",e)},n.uint8Array2String=function(e){return r.transformTo("string",e)},n.string2Blob=function(e){var t=r.transformTo("arraybuffer",e);return r.arrayBuffer2Blob(t)},n.arrayBuffer2Blob=function(e){return r.arrayBuffer2Blob(e)},n.transformTo=function(e,t){return r.transformTo(e,t)},n.getTypeOf=function(e){return r.getTypeOf(e)},n.checkSupport=function(e){return r.checkSupport(e)},n.MAX_VALUE_16BITS=r.MAX_VALUE_16BITS,n.MAX_VALUE_32BITS=r.MAX_VALUE_32BITS,
n.pretty=function(e){return r.pretty(e)},n.findCompression=function(e){return r.findCompression(e)},n.isRegExp=function(e){return r.isRegExp(e)}},{"./utils":21}],8:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako");n.uncompressInputType=r?"uint8array":"array",n.compressInputType=r?"uint8array":"array",n.magic="\b\0",n.compress=function(e,t){return i.deflateRaw(e,{level:t.level||-1})},n.uncompress=function(
e){return i.inflateRaw(e)}},{pako:24}],9:[function(e,t){"use strict";function n(e,t){return this instanceof n?(this.files={},this.comment=null,this.root="",e&&this.load(e,t),void (this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e})):new n(e,t)}var r=e("./base64");n.prototype=e("./object"),n.prototype.load=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.utils=e("./deprecatedPublicUtils"),n.base64={encode:function(e){return r.encode
(e)},decode:function(e){return r.decode(e)}},n.compressions=e("./compressions"),t.exports=n},{"./base64":1,"./compressions":3,"./defaults":6,"./deprecatedPublicUtils":7,"./load":10,"./object":13,"./support":17}],10:[function(e,t){"use strict";var n=e("./base64"),r=e("./zipEntries");t.exports=function(e,t){var i,s,o,u;for(t=t||{},t.base64&&(e=n.decode(e)),s=new r(e,t),i=s.files,o=0;o<i.length;o++)u=i[o],this.file(u.fileName,u.decompressed,{binary:!0,optimizedBinaryString:!0,date:u.date,dir:u.dir,comment
:u.fileComment.length?u.fileComment:null,unixPermissions:u.unixPermissions,dosPermissions:u.dosPermissions,createFolders:t.createFolders});return s.zipComment.length&&(this.comment=s.zipComment),this}},{"./base64":1,"./zipEntries":22}],11:[function(e,t){(function(e){"use strict";t.exports=function(t,n){return new e(t,n)},t.exports.test=function(t){return e.isBuffer(t)}}).call(this,"undefined"!=typeof Buffer?Buffer:void 0)},{}],12:[function(e,t){"use strict";function n(e){this.data=e,this.length=this
.data.length,this.index=0}var r=e("./uint8ArrayReader");n.prototype=new r,n.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.index,this.index+e);return this.index+=e,t},t.exports=n},{"./uint8ArrayReader":18}],13:[function(e,t){"use strict";var n=e("./support"),r=e("./utils"),i=e("./crc32"),s=e("./signature"),o=e("./defaults"),u=e("./base64"),a=e("./compressions"),f=e("./compressedObject"),l=e("./nodeBuffer"),c=e("./utf8"),h=e("./stringWriter"),p=e("./uint8ArrayWriter"
),d=function(e){if(e._data instanceof f&&(e._data=e._data.getContent(),e.options.binary=!0,e.options.base64=!1,"uint8array"===r.getTypeOf(e._data))){var t=e._data;e._data=new Uint8Array(t.length),0!==t.length&&e._data.set(t,0)}return e._data},v=function(e){var t=d(e),i=r.getTypeOf(t);return"string"===i?!e.options.binary&&n.nodebuffer?l(t,"utf-8"):e.asBinary():t},m=function(e){var t=d(this);return null===t||"undefined"==typeof t?"":(this.options.base64&&(t=u.decode(t)),t=e&&this.options.binary?A.utf8decode
(t):r.transformTo("string",t),e||this.options.binary||(t=r.transformTo("string",A.utf8encode(t))),t)},g=function(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this.options=n,this._initialMetadata={dir:n.dir,date:n.date}};g.prototype={asText:function(){return m.call(this,!0)},asBinary:function(){return m.call(this,!1)},asNodeBuffer:function(){var e=v(this);return r.transformTo("nodebuffer"
,e)},asUint8Array:function(){var e=v(this);return r.transformTo("uint8array",e)},asArrayBuffer:function(){return this.asUint8Array().buffer}};var y=function(e,t){var n,r="";for(n=0;t>n;n++)r+=String.fromCharCode(255&e),e>>>=8;return r},b=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&"undefined"==typeof n[t]&&(n[t]=arguments[e][t]);return n},w=function(e){return e=e||{},e.base64!==!0||null!==e.binary&&void 0!==e.binary||(e.binary=!0),e=
b(e,o),e.date=e.date||new Date,null!==e.compression&&(e.compression=e.compression.toUpperCase()),e},E=function(e,t,n){var i,s=r.getTypeOf(t);if(n=w(n),"string"==typeof n.unixPermissions&&(n.unixPermissions=parseInt(n.unixPermissions,8)),n.unixPermissions&&16384&n.unixPermissions&&(n.dir=!0),n.dosPermissions&&16&n.dosPermissions&&(n.dir=!0),n.dir&&(e=x(e)),n.createFolders&&(i=S(e))&&T.call(this,i,!0),n.dir||null===t||"undefined"==typeof t)n.base64=!1,n.binary=!1,t=null,s=null;else if("string"===s)
n.binary&&!n.base64&&n.optimizedBinaryString!==!0&&(t=r.string2binary(t));else{if(n.base64=!1,n.binary=!0,!(s||t instanceof f))throw new Error("The data of '"+e+"' is in an unsupported format !");"arraybuffer"===s&&(t=r.transformTo("uint8array",t))}var o=new g(e,t,n);return this.files[e]=o,o},S=function(e){"/"==e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},x=function(e){return"/"!=e.slice(-1)&&(e+="/"),e},T=function(e,t){return t="undefined"!=typeof 
t?t:!1,e=x(e),this.files[e]||E.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},N=function(e,t,n){var s,o=new f;return e._data instanceof f?(o.uncompressedSize=e._data.uncompressedSize,o.crc32=e._data.crc32,0===o.uncompressedSize||e.dir?(t=a.STORE,o.compressedContent="",o.crc32=0):e._data.compressionMethod===t.magic?o.compressedContent=e._data.getCompressedContent():(s=e._data.getContent(),o.compressedContent=t.compress(r.transformTo(t.compressInputType,s),n))):(s=v(e),(!s||0===s.length||
e.dir)&&(t=a.STORE,s=""),o.uncompressedSize=s.length,o.crc32=i(s),o.compressedContent=t.compress(r.transformTo(t.compressInputType,s),n)),o.compressedSize=o.compressedContent.length,o.compressionMethod=t.magic,o},C=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16},k=function(e){return 63&(e||0)},L=function(e,t,n,o,u){var a,f,l,h,p=(n.compressedContent,r.transformTo("string",c.utf8encode(t.name))),d=t.comment||"",v=r.transformTo("string",c.utf8encode(d)),m=p.length!==t.name.length,g=
v.length!==d.length,b=t.options,w="",E="",S="";l=t._initialMetadata.dir!==t.dir?t.dir:b.dir,h=t._initialMetadata.date!==t.date?t.date:b.date;var x=0,T=0;l&&(x|=16),"UNIX"===u?(T=798,x|=C(t.unixPermissions,l)):(T=20,x|=k(t.dosPermissions,l)),a=h.getHours(),a<<=6,a|=h.getMinutes(),a<<=5,a|=h.getSeconds()/2,f=h.getFullYear()-1980,f<<=4,f|=h.getMonth()+1,f<<=5,f|=h.getDate(),m&&(E=y(1,1)+y(i(p),4)+p,w+="up"+y(E.length,2)+E),g&&(S=y(1,1)+y(this.crc32(v),4)+v,w+="uc"+y(S.length,2)+S);var N="";N+="\n\0"
,N+=m||g?"\0\b":"\0\0",N+=n.compressionMethod,N+=y(a,2),N+=y(f,2),N+=y(n.crc32,4),N+=y(n.compressedSize,4),N+=y(n.uncompressedSize,4),N+=y(p.length,2),N+=y(w.length,2);var L=s.LOCAL_FILE_HEADER+N+p+w,A=s.CENTRAL_FILE_HEADER+y(T,2)+N+y(v.length,2)+"\0\0\0\0"+y(x,4)+y(o,4)+p+w+v;return{fileRecord:L,dirRecord:A,compressedObject:n}},A={load:function(){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(e){var t,n,r,i,s=[];for(t in this.files)this.files
.hasOwnProperty(t)&&(r=this.files[t],i=new g(r.name,r._data,b(r.options)),n=t.slice(this.root.length,t.length),t.slice(0,this.root.length)===this.root&&e(n,i)&&s.push(i));return s},file:function(e,t,n){if(1===arguments.length){if(r.isRegExp(e)){var i=e;return this.filter(function(e,t){return!t.dir&&i.test(e)})}return this.filter(function(t,n){return!n.dir&&t===e})[0]||null}return e=this.root+e,E.call(this,e,t,n),this},folder:function(e){if(!e)return this;if(r.isRegExp(e))return this.filter(function(
t,n){return n.dir&&e.test(t)});var t=this.root+e,n=T.call(this,t),i=this.clone();return i.root=n.name,i},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!=e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(e){e=b(e||{},{base64:!0,compression:"STORE",compressionOptions:null,type:"base64",platform:"DOS",comment
:null,mimeType:"application/zip"}),r.checkSupport(e.type),("darwin"===e.platform||"freebsd"===e.platform||"linux"===e.platform||"sunos"===e.platform)&&(e.platform="UNIX"),"win32"===e.platform&&(e.platform="DOS");var t,n,i=[],o=0,f=0,l=r.transformTo("string",this.utf8encode(e.comment||this.comment||""));for(var c in this.files)if(this.files.hasOwnProperty(c)){var d=this.files[c],v=d.options.compression||e.compression.toUpperCase(),m=a[v];if(!m)throw new Error(v+" is not a valid compression method !"
);var g=d.options.compressionOptions||e.compressionOptions||{},w=N.call(this,d,m,g),E=L.call(this,c,d,w,o,e.platform);o+=E.fileRecord.length+w.compressedSize,f+=E.dirRecord.length,i.push(E)}var S="";S=s.CENTRAL_DIRECTORY_END+"\0\0\0\0"+y(i.length,2)+y(i.length,2)+y(f,4)+y(o,4)+y(l.length,2)+l;var x=e.type.toLowerCase();for(t="uint8array"===x||"arraybuffer"===x||"blob"===x||"nodebuffer"===x?new p(o+f+S.length):new h(o+f+S.length),n=0;n<i.length;n++)t.append(i[n].fileRecord),t.append(i[n].compressedObject
.compressedContent);for(n=0;n<i.length;n++)t.append(i[n].dirRecord);t.append(S);var T=t.finalize();switch(e.type.toLowerCase()){case"uint8array":case"arraybuffer":case"nodebuffer":return r.transformTo(e.type.toLowerCase(),T);case"blob":return r.arrayBuffer2Blob(r.transformTo("arraybuffer",T),e.mimeType);case"base64":return e.base64?u.encode(T):T;default:return T}},crc32:function(e,t){return i(e,t)},utf8encode:function(e){return r.transformTo("string",c.utf8encode(e))},utf8decode:function(e){return c
.utf8decode(e)}};t.exports=A},{"./base64":1,"./compressedObject":2,"./compressions":3,"./crc32":4,"./defaults":6,"./nodeBuffer":11,"./signature":14,"./stringWriter":16,"./support":17,"./uint8ArrayWriter":19,"./utf8":20,"./utils":21}],14:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],15:[function(e,t){"use strict";function n
(e,t){this.data=e,t||(this.data=i.string2binary(this.data)),this.length=this.data.length,this.index=0}var r=e("./dataReader"),i=e("./utils");n.prototype=new r,n.prototype.byteAt=function(e){return this.data.charCodeAt(e)},n.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)},n.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.index,this.index+e);return this.index+=e,t},t.exports=n},{"./dataReader":5,"./utils":21}],16:[function(e,t){"use strict";
var n=e("./utils"),r=function(){this.data=[]};r.prototype={append:function(e){e=n.transformTo("string",e),this.data.push(e)},finalize:function(){return this.data.join("")}},t.exports=r},{"./utils":21}],17:[function(e,t,n){(function(e){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof e,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var t=new ArrayBuffer
(0);try{n.blob=0===(new Blob([t],{type:"application/zip"})).size}catch(r){try{var i=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,s=new i;s.append(t),n.blob=0===s.getBlob("application/zip").size}catch(r){n.blob=!1}}}}).call(this,"undefined"!=typeof Buffer?Buffer:void 0)},{}],18:[function(e,t){"use strict";function n(e){e&&(this.data=e,this.length=this.data.length,this.index=0)}var r=e("./dataReader");n.prototype=new r,n.prototype.byteAt=function(e){return this
.data[e]},n.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),s=this.length-4;s>=0;--s)if(this.data[s]===t&&this.data[s+1]===n&&this.data[s+2]===r&&this.data[s+3]===i)return s;return-1},n.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.index,this.index+e);return this.index+=e,t},t.exports=n},{"./dataReader":5}],19:[function(e,t){"use strict";var n=e("./utils"
),r=function(e){this.data=new Uint8Array(e),this.index=0};r.prototype={append:function(e){0!==e.length&&(e=n.transformTo("uint8array",e),this.data.set(e,this.index),this.index+=e.length)},finalize:function(){return this.data}},t.exports=r},{"./utils":21}],20:[function(e,t,n){"use strict";for(var r=e("./utils"),i=e("./support"),s=e("./nodeBuffer"),o=new Array(256),u=0;256>u;u++)o[u]=u>=252?6:u>=248?5:u>=240?4:u>=224?3:u>=192?2:1;o[254]=o[254]=1;var a=function(e){var t,n,r,s,o,u=e.length,a=0;for(s=0
;u>s;s++)n=e.charCodeAt(s),55296===(64512&n)&&u>s+1&&(r=e.charCodeAt(s+1),56320===(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),s++)),a+=128>n?1:2048>n?2:65536>n?3:4;for(t=i.uint8array?new Uint8Array(a):new Array(a),o=0,s=0;a>o;s++)n=e.charCodeAt(s),55296===(64512&n)&&u>s+1&&(r=e.charCodeAt(s+1),56320===(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),s++)),128>n?t[o++]=n:2048>n?(t[o++]=192|n>>>6,t[o++]=128|63&n):65536>n?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|
n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},f=function(e,t){var n;for(t=t||e.length,t>e.length&&(t=e.length),n=t-1;n>=0&&128===(192&e[n]);)n--;return 0>n?t:0===n?t:n+o[e[n]]>t?n:t},l=function(e){var t,n,i,s,u=e.length,a=new Array(2*u);for(n=0,t=0;u>t;)if(i=e[t++],128>i)a[n++]=i;else if(s=o[i],s>4)a[n++]=65533,t+=s-1;else{for(i&=2===s?31:3===s?15:7;s>1&&u>t;)i=i<<6|63&e[t++],s--;s>1?a[n++]=65533:65536>i?a[n++]=i:(i-=65536,a[n++]=55296|i>>10&1023,a[n++]=56320|1023&i)}return a.length!==
n&&(a.subarray?a=a.subarray(0,n):a.length=n),r.applyFromCharCode(a)};n.utf8encode=function(e){return i.nodebuffer?s(e,"utf-8"):a(e)},n.utf8decode=function(e){if(i.nodebuffer)return r.transformTo("nodebuffer",e).toString("utf-8");e=r.transformTo(i.uint8array?"uint8array":"array",e);for(var t=[],n=0,s=e.length,o=65536;s>n;){var u=f(e,Math.min(n+o,s));t.push(i.uint8array?l(e.subarray(n,u)):l(e.slice(n,u))),n=u}return t.join("")}},{"./nodeBuffer":11,"./support":17,"./utils":21}],21:[function(e,t,n){"use strict"
;function r(e){return e}function i(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}function s(e){var t=65536,r=[],i=e.length,s=n.getTypeOf(e),o=0,u=!0;try{switch(s){case"uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;case"nodebuffer":String.fromCharCode.apply(null,f(0))}}catch(a){u=!1}if(!u){for(var l="",h=0;h<e.length;h++)l+=String.fromCharCode(e[h]);return l}for(;i>o&&t>1;)try{r.push("array"===s||"nodebuffer"===s?String.fromCharCode.apply(null,e.slice(o,Math
.min(o+t,i))):String.fromCharCode.apply(null,e.subarray(o,Math.min(o+t,i)))),o+=t}catch(a){t=Math.floor(t/2)}return r.join("")}function o(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}var u=e("./support"),a=e("./compressions"),f=e("./nodeBuffer");n.string2binary=function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(255&e.charCodeAt(n));return t},n.arrayBuffer2Blob=function(e,t){n.checkSupport("blob"),t=t||"application/zip";try{return new Blob([e],{type:t})}catch(r){try{var i=window
.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,s=new i;return s.append(e),s.getBlob(t)}catch(r){throw new Error("Bug : can't construct the Blob.")}}},n.applyFromCharCode=s;var l={};l.string={string:r,array:function(e){return i(e,new Array(e.length))},arraybuffer:function(e){return l.string.uint8array(e).buffer},uint8array:function(e){return i(e,new Uint8Array(e.length))},nodebuffer:function(e){return i(e,f(e.length))}},l.array={string:s,array:r,arraybuffer:function(
e){return(new Uint8Array(e)).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return f(e)}},l.arraybuffer={string:function(e){return s(new Uint8Array(e))},array:function(e){return o(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:r,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return f(new Uint8Array(e))}},l.uint8array={string:s,array:function(e){return o(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:r,
nodebuffer:function(e){return f(e)}},l.nodebuffer={string:s,array:function(e){return o(e,new Array(e.length))},arraybuffer:function(e){return l.nodebuffer.uint8array(e).buffer},uint8array:function(e){return o(e,new Uint8Array(e.length))},nodebuffer:r},n.transformTo=function(e,t){if(t||(t=""),!e)return t;n.checkSupport(e);var r=n.getTypeOf(t),i=l[r][e](t);return i},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":u.nodebuffer&&f
.test(e)?"nodebuffer":u.uint8array&&e instanceof Uint8Array?"uint8array":u.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){var t=u[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this browser")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)t=e.charCodeAt(n),r+="\\x"+(16>t?"0":"")+t.toString(16).toUpperCase();return r},n.findCompression=function(e){for(var t in a)if(a.hasOwnProperty
(t)&&a[t].magic===e)return a[t];return null},n.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}},{"./compressions":3,"./nodeBuffer":11,"./support":17}],22:[function(e,t){"use strict";function n(e,t){this.files=[],this.loadOptions=t,e&&this.load(e)}var r=e("./stringReader"),i=e("./nodeBufferReader"),s=e("./uint8ArrayReader"),o=e("./utils"),u=e("./signature"),a=e("./zipEntry"),f=e("./support"),l=e("./object");n.prototype={checkSignature:function(e){var t=this.reader
.readString(4);if(t!==e)throw new Error("Corrupted zip or bug : unexpected signature ("+o.pretty(t)+", expected "+o.pretty(e)+")")},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2),this.zipComment=
this.reader.readString(this.zipCommentLength),this.zipComment=l.utf8decode(this.zipComment)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.versionMadeBy=this.reader.readString(2),this.versionNeeded=this.reader.readInt(2),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8
),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44,i=0;r>i;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readString(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error
("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(u.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readString(4)===u.CENTRAL_FILE_HEADER;)e=new a({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e)},readEndOfCentral
:function(){var e=this.reader.lastIndexOfSignature(u.CENTRAL_DIRECTORY_END);if(-1===e){var t=!0;try{this.reader.setIndex(0),this.checkSignature(u.LOCAL_FILE_HEADER),t=!1}catch(n){}throw new Error(t?"Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html":"Corrupted zip : can't find end of central directory")}if(this.reader.setIndex(e),this.checkSignature(u.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===
o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(u.ZIP64_CENTRAL_DIRECTORY_LOCATOR),-1===e)throw new Error("Corrupted zip : can't find the ZIP64 end of central directory locator");this.reader.setIndex(e),this.checkSignature(u.ZIP64_CENTRAL_DIRECTORY_LOCATOR
),this.readBlockZip64EndOfCentralLocator(),this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(u.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}},prepareReader:function(e){var t=o.getTypeOf(e);this.reader="string"!==t||f.uint8array?"nodebuffer"===t?new i(e):new s(o.transformTo("uint8array",e)):new r(e,this.loadOptions.optimizedBinaryString)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.
exports=n},{"./nodeBufferReader":12,"./object":13,"./signature":14,"./stringReader":15,"./support":17,"./uint8ArrayReader":18,"./utils":21,"./zipEntry":23}],23:[function(e,t){"use strict";function n(e,t){this.options=e,this.loadOptions=t}var r=e("./stringReader"),i=e("./utils"),s=e("./compressedObject"),o=e("./object"),u=0,a=3;n.prototype={isEncrypted:function(){return 1===(1&this.bitFlag)},useUTF8:function(){return 2048===(2048&this.bitFlag)},prepareCompressedContent:function(e,t,n){return function(
){var r=e.index;e.setIndex(t);var i=e.readData(n);return e.setIndex(r),i}},prepareContent:function(e,t,n,r,s){return function(){var e=i.transformTo(r.uncompressInputType,this.getCompressedContent()),t=r.uncompress(e);if(t.length!==s)throw new Error("Bug : uncompressed data size mismatch");return t}},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readString(this.fileNameLength),e.skip(n),-1==this.compressedSize||-1==this.uncompressedSize
)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)");if(t=i.findCompression(this.compressionMethod),null===t)throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+this.fileName+")");if(this.decompressed=new s,this.decompressed.compressedSize=this.compressedSize,this.decompressed.uncompressedSize=this.uncompressedSize,this.decompressed.crc32=this.crc32
,this.decompressed.compressionMethod=this.compressionMethod,this.decompressed.getCompressedContent=this.prepareCompressedContent(e,e.index,this.compressedSize,t),this.decompressed.getContent=this.prepareContent(e,e.index,this.compressedSize,t,this.uncompressedSize),this.loadOptions.checkCRC32&&(this.decompressed=i.transformTo("string",this.decompressed.getContent()),o.crc32(this.decompressed)!==this.crc32))throw new Error("Corrupted zip : CRC32 mismatch")},readCentralPart:function(e){if(this.versionMadeBy=
e.readInt(2),this.versionNeeded=e.readInt(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4),this.fileNameLength=e.readInt(2),this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())
throw new Error("Encrypted zip are not supported");this.fileName=e.readString(this.fileNameLength),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readString(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=16&this.externalFileAttributes?!0:!1,e===u&&(this.dosPermissions=63&this.externalFileAttributes),e===a&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==
this.fileName.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=new r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index
;for(this.extraFields=this.extraFields||{};e.index<i+this.extraFieldsLength;)t=e.readInt(2),n=e.readInt(2),r=e.readString(n),this.extraFields[t]={id:t,length:n,value:r}},handleUTF8:function(){if(this.useUTF8())this.fileName=o.utf8decode(this.fileName),this.fileComment=o.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();null!==e&&(this.fileName=e);var t=this.findExtraFieldUnicodeComment();null!==t&&(this.fileComment=t)}},findExtraFieldUnicodePath:function(){var e=this.extraFields
[28789];if(e){var t=new r(e.value);return 1!==t.readInt(1)?null:o.crc32(this.fileName)!==t.readInt(4)?null:o.utf8decode(t.readString(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=new r(e.value);return 1!==t.readInt(1)?null:o.crc32(this.fileComment)!==t.readInt(4)?null:o.utf8decode(t.readString(e.length-5))}return null}},t.exports=n},{"./compressedObject":2,"./object":13,"./stringReader":15,"./utils":21}],24:[function(e,t){"use strict";
var n=e("./lib/utils/common").assign,r=e("./lib/deflate"),i=e("./lib/inflate"),s=e("./lib/zlib/constants"),o={};n(o,r,i,s),t.exports=o},{"./lib/deflate":25,"./lib/inflate":26,"./lib/utils/common":27,"./lib/zlib/constants":30}],25:[function(e,t,n){"use strict";function r(e,t){var n=new y(t);if(n.push(e,!0),n.err)throw n.msg;return n.result}function i(e,t){return t=t||{},t.raw=!0,r(e,t)}function s(e,t){return t=t||{},t.gzip=!0,r(e,t)}var o=e("./zlib/deflate.js"),u=e("./utils/common"),a=e("./utils/strings"
),f=e("./zlib/messages"),l=e("./zlib/zstream"),c=0,h=4,p=0,d=1,v=-1,m=0,g=8,y=function(e){this.options=u.assign({level:v,method:g,chunkSize:16384,windowBits:15,memLevel:8,strategy:m,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=o.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(
n!==p)throw new Error(f[n]);t.header&&o.deflateSetHeader(this.strm,t.header)};y.prototype.push=function(e,t){var n,r,i=this.strm,s=this.options.chunkSize;if(this.ended)return!1;r=t===~~t?t:t===!0?h:c,i.input="string"==typeof e?a.string2buf(e):e,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new u.Buf8(s),i.next_out=0,i.avail_out=s),n=o.deflate(i,r),n!==d&&n!==p)return this.onEnd(n),this.ended=!0,!1;(0===i.avail_out||0===i.avail_in&&r===h)&&this.onData("string"===this.options
.to?a.buf2binstring(u.shrinkBuf(i.output,i.next_out)):u.shrinkBuf(i.output,i.next_out))}while((i.avail_in>0||0===i.avail_out)&&n!==d);return r===h?(n=o.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===p):!0},y.prototype.onData=function(e){this.chunks.push(e)},y.prototype.onEnd=function(e){e===p&&(this.result="string"===this.options.to?this.chunks.join(""):u.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=y,n.deflate=r,n.deflateRaw=i,n.gzip=s},{"./utils/common"
:27,"./utils/strings":28,"./zlib/deflate.js":32,"./zlib/messages":37,"./zlib/zstream":39}],26:[function(e,t,n){"use strict";function r(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg;return n.result}function i(e,t){return t=t||{},t.raw=!0,r(e,t)}var s=e("./zlib/inflate.js"),o=e("./utils/common"),u=e("./utils/strings"),a=e("./zlib/constants"),f=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),h=function(e){this.options=o.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=
this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0===(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=s.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(f[n]);this.header=new c,s.inflateGetHeader(this.strm,this.header)};
h.prototype.push=function(e,t){var n,r,i,f,l,c=this.strm,h=this.options.chunkSize;if(this.ended)return!1;r=t===~~t?t:t===!0?a.Z_FINISH:a.Z_NO_FLUSH,c.input="string"==typeof e?u.binstring2buf(e):e,c.next_in=0,c.avail_in=c.input.length;do{if(0===c.avail_out&&(c.output=new o.Buf8(h),c.next_out=0,c.avail_out=h),n=s.inflate(c,a.Z_NO_FLUSH),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;c.next_out&&(0===c.avail_out||n===a.Z_STREAM_END||0===c.avail_in&&r===a.Z_FINISH)&&("string"===
this.options.to?(i=u.utf8border(c.output,c.next_out),f=c.next_out-i,l=u.buf2string(c.output,i),c.next_out=f,c.avail_out=h-f,f&&o.arraySet(c.output,c.output,i,f,0),this.onData(l)):this.onData(o.shrinkBuf(c.output,c.next_out)))}while(c.avail_in>0&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(r=a.Z_FINISH),r===a.Z_FINISH?(n=s.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):!0},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===a.Z_OK&&(this.result="string"===
this.options.to?this.chunks.join(""):o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=h,n.inflate=r,n.inflateRaw=i,n.ungzip=r},{"./utils/common":27,"./utils/strings":28,"./zlib/constants":30,"./zlib/gzheader":33,"./zlib/inflate.js":35,"./zlib/messages":37,"./zlib/zstream":39}],27:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.
slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)return void e.set(t.subarray(n,n+r),i);for(var s=0;r>s;s++)e[i+s]=t[n+s]},flattenChunks:function(e){var t,n,r,i,s,o;for(r=0,t=0,n=e.length;n>t;t++)r+=e[t].length;for(
o=new Uint8Array(r),i=0,t=0,n=e.length;n>t;t++)s=e[t],o.set(s,i),i+=s.length;return o}},s={arraySet:function(e,t,n,r,i){for(var s=0;r>s;s++)e[i+s]=t[n+s]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,s))},n.setTyped(r)},{}],28:[function(e,t,n){"use strict";function r(e,t){if(65537>t&&(e.subarray&&o||!e.subarray&&s))return String.fromCharCode
.apply(null,i.shrinkBuf(e,t));for(var n="",r=0;t>r;r++)n+=String.fromCharCode(e[r]);return n}var i=e("./common"),s=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(u){s=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(u){o=!1}for(var a=new i.Buf8(256),f=0;256>f;f++)a[f]=f>=252?6:f>=248?5:f>=240?4:f>=224?3:f>=192?2:1;a[254]=a[254]=1,n.string2buf=function(e){var t,n,r,s,o,u=e.length,a=0;for(s=0;u>s;s++)n=e.charCodeAt(s),55296===(64512&n)&&u>s+1&&(r=e.charCodeAt(s+1),56320===(64512&
r)&&(n=65536+(n-55296<<10)+(r-56320),s++)),a+=128>n?1:2048>n?2:65536>n?3:4;for(t=new i.Buf8(a),o=0,s=0;a>o;s++)n=e.charCodeAt(s),55296===(64512&n)&&u>s+1&&(r=e.charCodeAt(s+1),56320===(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),s++)),128>n?t[o++]=n:2048>n?(t[o++]=192|n>>>6,t[o++]=128|63&n):65536>n?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},n.buf2binstring=function(e){return r(e,e.length)},n.binstring2buf=
function(e){for(var t=new i.Buf8(e.length),n=0,r=t.length;r>n;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,i,s,o,u=t||e.length,f=new Array(2*u);for(i=0,n=0;u>n;)if(s=e[n++],128>s)f[i++]=s;else if(o=a[s],o>4)f[i++]=65533,n+=o-1;else{for(s&=2===o?31:3===o?15:7;o>1&&u>n;)s=s<<6|63&e[n++],o--;o>1?f[i++]=65533:65536>s?f[i++]=s:(s-=65536,f[i++]=55296|s>>10&1023,f[i++]=56320|1023&s)}return r(f,i)},n.utf8border=function(e,t){var n;for(t=t||e.length,t>e.length&&(t=e.length),n=t-1;n>=0&&128===
(192&e[n]);)n--;return 0>n?t:0===n?t:n+a[e[n]]>t?n:t}},{"./common":27}],29:[function(e,t){"use strict";function n(e,t,n,r){for(var i=65535&e|0,s=e>>>16&65535|0,o=0;0!==n;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,s=s+i|0;while(--o);i%=65521,s%=65521}return i|s<<16|0}t.exports=n},{}],30:[function(e,t){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION
:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],31:[function(e,t){"use strict";function n(){for(var e,t=[],n=0;256>n;n++){e=n;for(var r=0;8>r;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}function r(e,t,n,r){var s=i,o=r+n;e=-1^e;for(var u=r;o>u;u++)e=e>>>8^s[255&(e^t[u])];return-1^e}var i=n();t.exports=r},{}],32:[function(e,t,n){"use strict";function r(e,t){return e
.msg=_[t],t}function i(e){return(e<<1)-(e>4?9:0)}function s(e){for(var t=e.length;--t>=0;)e[t]=0}function o(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(L.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function u(e,t){A._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,o(e.strm)}function a(e,t){e.pending_buf
[e.pending++]=t}function f(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function l(e,t,n,r){var i=e.avail_in;return i>r&&(i=r),0===i?0:(e.avail_in-=i,L.arraySet(t,e.input,e.next_in,i,n),1===e.state.wrap?e.adler=O(e.adler,t,i,n):2===e.state.wrap&&(e.adler=M(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)}function c(e,t){var n,r,i=e.max_chain_length,s=e.strstart,o=e.prev_length,u=e.nice_match,a=e.strstart>e.w_size-ft?e.strstart-(e.w_size-ft):0,f=e.window,l=e.w_mask,c=e.prev
,h=e.strstart+at,p=f[s+o-1],d=f[s+o];e.prev_length>=e.good_match&&(i>>=2),u>e.lookahead&&(u=e.lookahead);do if(n=t,f[n+o]===d&&f[n+o-1]===p&&f[n]===f[s]&&f[++n]===f[s+1]){s+=2,n++;do;while(f[++s]===f[++n]&&f[++s]===f[++n]&&f[++s]===f[++n]&&f[++s]===f[++n]&&f[++s]===f[++n]&&f[++s]===f[++n]&&f[++s]===f[++n]&&f[++s]===f[++n]&&h>s);if(r=at-(h-s),s=h-at,r>o){if(e.match_start=t,o=r,r>=u)break;p=f[s+o-1],d=f[s+o]}}while((t=c[t&l])>a&&0!==--i);return o<=e.lookahead?o:e.lookahead}function h(e){var t,n,r,i
,s,o=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=o+(o-ft)){L.arraySet(e.window,e.window,o,o,0),e.match_start-=o,e.strstart-=o,e.block_start-=o,n=e.hash_size,t=n;do r=e.head[--t],e.head[t]=r>=o?r-o:0;while(--n);n=o,t=n;do r=e.prev[--t],e.prev[t]=r>=o?r-o:0;while(--n);i+=o}if(0===e.strm.avail_in)break;if(n=l(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=n,e.lookahead+e.insert>=ut)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1
])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+ut-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<ut)););}while(e.lookahead<ft&&0!==e.strm.avail_in)}function p(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(h(e),0===e.lookahead&&t===D)return yt;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=
e.strstart-r,e.strstart=r,u(e,!1),0===e.strm.avail_out))return yt;if(e.strstart-e.block_start>=e.w_size-ft&&(u(e,!1),0===e.strm.avail_out))return yt}return e.insert=0,t===B?(u(e,!0),0===e.strm.avail_out?wt:Et):e.strstart>e.block_start&&(u(e,!1),0===e.strm.avail_out)?yt:yt}function d(e,t){for(var n,r;;){if(e.lookahead<ft){if(h(e),e.lookahead<ft&&t===D)return yt;if(0===e.lookahead)break}if(n=0,e.lookahead>=ut&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ut-1])&e.hash_mask,n=e.prev[e.strstart&
e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-ft&&(e.match_length=c(e,n)),e.match_length>=ut)if(r=A._tr_tally(e,e.strstart-e.match_start,e.match_length-ut),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ut){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ut-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(0!==--e.match_length);e.strstart++}else e.strstart+=
e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=A._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(u(e,!1),0===e.strm.avail_out))return yt}return e.insert=e.strstart<ut-1?e.strstart:ut-1,t===B?(u(e,!0),0===e.strm.avail_out?wt:Et):e.last_lit&&(u(e,!1),0===e.strm.avail_out)?yt:bt}function v(e,t){for(var n,r,i;;){if(e.lookahead<ft){if(h(e),e.lookahead<ft&&t===D)return yt;if(0===e.lookahead)break}
if(n=0,e.lookahead>=ut&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ut-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=ut-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-ft&&(e.match_length=c(e,n),e.match_length<=5&&(e.strategy===W||e.match_length===ut&&e.strstart-e.match_start>4096)&&(e.match_length=ut-1)),e.prev_length>=ut&&e.match_length<=e.prev_length){i=e.strstart+
e.lookahead-ut,r=A._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-ut),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ut-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(0!==--e.prev_length);if(e.match_available=0,e.match_length=ut-1,e.strstart++,r&&(u(e,!1),0===e.strm.avail_out))return yt}else if(e.match_available){if(r=A._tr_tally(e,0,e.window[e.strstart-1]),r&&u(e,!1),e.strstart++
,e.lookahead--,0===e.strm.avail_out)return yt}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=A._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<ut-1?e.strstart:ut-1,t===B?(u(e,!0),0===e.strm.avail_out?wt:Et):e.last_lit&&(u(e,!1),0===e.strm.avail_out)?yt:bt}function m(e,t){for(var n,r,i,s,o=e.window;;){if(e.lookahead<=at){if(h(e),e.lookahead<=at&&t===D)return yt;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=ut&&e.strstart>0&&
(i=e.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){s=e.strstart+at;do;while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&s>i);e.match_length=at-(s-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ut?(n=A._tr_tally(e,1,e.match_length-ut),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=A._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(u(e,!1),0===e.strm.avail_out
))return yt}return e.insert=0,t===B?(u(e,!0),0===e.strm.avail_out?wt:Et):e.last_lit&&(u(e,!1),0===e.strm.avail_out)?yt:bt}function g(e,t){for(var n;;){if(0===e.lookahead&&(h(e),0===e.lookahead)){if(t===D)return yt;break}if(e.match_length=0,n=A._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(u(e,!1),0===e.strm.avail_out))return yt}return e.insert=0,t===B?(u(e,!0),0===e.strm.avail_out?wt:Et):e.last_lit&&(u(e,!1),0===e.strm.avail_out)?yt:bt}function y(e){e.window_size=2*e.w_size,s
(e.head),e.max_lazy_match=k[e.level].max_lazy,e.good_match=k[e.level].good_length,e.nice_match=k[e.level].nice_length,e.max_chain_length=k[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ut-1,e.match_available=0,e.ins_h=0}function b(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Q,this.last_flush=-1,this.w_size=0,this.w_bits=0
,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new L.Buf16(2*st),this.dyn_dtree=new L.Buf16(2*(2*rt+1)),this
.bl_tree=new L.Buf16(2*(2*it+1)),s(this.dyn_ltree),s(this.dyn_dtree),s(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new L.Buf16(ot+1),this.heap=new L.Buf16(2*nt+1),s(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new L.Buf16(2*nt+1),s(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function w(e){var t;return e&&e.state?(e.total_in=e.total_out=0
,e.data_type=K,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?ct:mt,e.adler=2===t.wrap?0:1,t.last_flush=D,A._tr_init(t),F):r(e,q)}function E(e){var t=w(e);return t===F&&y(e.state),t}function S(e,t){return e&&e.state?2!==e.state.wrap?q:(e.state.gzhead=t,F):q}function x(e,t,n,i,s,o){if(!e)return q;var u=1;if(t===z&&(t=6),0>i?(u=0,i=-i):i>15&&(u=2,i-=16),1>s||s>G||n!==Q||8>i||i>15||0>t||t>9||0>o||o>$)return r(e,q);8===i&&(i=9);var a=new b;return e.state=a,a.strm=e,a
.wrap=u,a.gzhead=null,a.w_bits=i,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=s+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+ut-1)/ut),a.window=new L.Buf8(2*a.w_size),a.head=new L.Buf16(a.hash_size),a.prev=new L.Buf16(a.w_size),a.lit_bufsize=1<<s+6,a.pending_buf_size=4*a.lit_bufsize,a.pending_buf=new L.Buf8(a.pending_buf_size),a.d_buf=a.lit_bufsize>>1,a.l_buf=3*a.lit_bufsize,a.level=t,a.strategy=o,a.method=n,E(e)}function T(e,t){return x(e,t,Q,Y,Z,J)
}function N(e,t){var n,u,l,c;if(!e||!e.state||t>j||0>t)return e?r(e,q):q;if(u=e.state,!e.output||!e.input&&0!==e.avail_in||u.status===gt&&t!==B)return r(e,0===e.avail_out?U:q);if(u.strm=e,n=u.last_flush,u.last_flush=t,u.status===ct)if(2===u.wrap)e.adler=0,a(u,31),a(u,139),a(u,8),u.gzhead?(a(u,(u.gzhead.text?1:0)+(u.gzhead.hcrc?2:0)+(u.gzhead.extra?4:0)+(u.gzhead.name?8:0)+(u.gzhead.comment?16:0)),a(u,255&u.gzhead.time),a(u,u.gzhead.time>>8&255),a(u,u.gzhead.time>>16&255),a(u,u.gzhead.time>>24&255
),a(u,9===u.level?2:u.strategy>=X||u.level<2?4:0),a(u,255&u.gzhead.os),u.gzhead.extra&&u.gzhead.extra.length&&(a(u,255&u.gzhead.extra.length),a(u,u.gzhead.extra.length>>8&255)),u.gzhead.hcrc&&(e.adler=M(e.adler,u.pending_buf,u.pending,0)),u.gzindex=0,u.status=ht):(a(u,0),a(u,0),a(u,0),a(u,0),a(u,0),a(u,9===u.level?2:u.strategy>=X||u.level<2?4:0),a(u,St),u.status=mt);else{var h=Q+(u.w_bits-8<<4)<<8,p=-1;p=u.strategy>=X||u.level<2?0:u.level<6?1:6===u.level?2:3,h|=p<<6,0!==u.strstart&&(h|=lt),h+=31-
h%31,u.status=mt,f(u,h),0!==u.strstart&&(f(u,e.adler>>>16),f(u,65535&e.adler)),e.adler=1}if(u.status===ht)if(u.gzhead.extra){for(l=u.pending;u.gzindex<(65535&u.gzhead.extra.length)&&(u.pending!==u.pending_buf_size||(u.gzhead.hcrc&&u.pending>l&&(e.adler=M(e.adler,u.pending_buf,u.pending-l,l)),o(e),l=u.pending,u.pending!==u.pending_buf_size));)a(u,255&u.gzhead.extra[u.gzindex]),u.gzindex++;u.gzhead.hcrc&&u.pending>l&&(e.adler=M(e.adler,u.pending_buf,u.pending-l,l)),u.gzindex===u.gzhead.extra.length&&
(u.gzindex=0,u.status=pt)}else u.status=pt;if(u.status===pt)if(u.gzhead.name){l=u.pending;do{if(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>l&&(e.adler=M(e.adler,u.pending_buf,u.pending-l,l)),o(e),l=u.pending,u.pending===u.pending_buf_size)){c=1;break}c=u.gzindex<u.gzhead.name.length?255&u.gzhead.name.charCodeAt(u.gzindex++):0,a(u,c)}while(0!==c);u.gzhead.hcrc&&u.pending>l&&(e.adler=M(e.adler,u.pending_buf,u.pending-l,l)),0===c&&(u.gzindex=0,u.status=dt)}else u.status=dt;if(u.status===
dt)if(u.gzhead.comment){l=u.pending;do{if(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>l&&(e.adler=M(e.adler,u.pending_buf,u.pending-l,l)),o(e),l=u.pending,u.pending===u.pending_buf_size)){c=1;break}c=u.gzindex<u.gzhead.comment.length?255&u.gzhead.comment.charCodeAt(u.gzindex++):0,a(u,c)}while(0!==c);u.gzhead.hcrc&&u.pending>l&&(e.adler=M(e.adler,u.pending_buf,u.pending-l,l)),0===c&&(u.status=vt)}else u.status=vt;if(u.status===vt&&(u.gzhead.hcrc?(u.pending+2>u.pending_buf_size&&o(e),
u.pending+2<=u.pending_buf_size&&(a(u,255&e.adler),a(u,e.adler>>8&255),e.adler=0,u.status=mt)):u.status=mt),0!==u.pending){if(o(e),0===e.avail_out)return u.last_flush=-1,F}else if(0===e.avail_in&&i(t)<=i(n)&&t!==B)return r(e,U);if(u.status===gt&&0!==e.avail_in)return r(e,U);if(0!==e.avail_in||0!==u.lookahead||t!==D&&u.status!==gt){var d=u.strategy===X?g(u,t):u.strategy===V?m(u,t):k[u.level].func(u,t);if((d===wt||d===Et)&&(u.status=gt),d===yt||d===wt)return 0===e.avail_out&&(u.last_flush=-1),F;if(
d===bt&&(t===P?A._tr_align(u):t!==j&&(A._tr_stored_block(u,0,0,!1),t===H&&(s(u.head),0===u.lookahead&&(u.strstart=0,u.block_start=0,u.insert=0))),o(e),0===e.avail_out))return u.last_flush=-1,F}return t!==B?F:u.wrap<=0?I:(2===u.wrap?(a(u,255&e.adler),a(u,e.adler>>8&255),a(u,e.adler>>16&255),a(u,e.adler>>24&255),a(u,255&e.total_in),a(u,e.total_in>>8&255),a(u,e.total_in>>16&255),a(u,e.total_in>>24&255)):(f(u,e.adler>>>16),f(u,65535&e.adler)),o(e),u.wrap>0&&(u.wrap=-u.wrap),0!==u.pending?F:I)}function C
(e){var t;return e&&e.state?(t=e.state.status,t!==ct&&t!==ht&&t!==pt&&t!==dt&&t!==vt&&t!==mt&&t!==gt?r(e,q):(e.state=null,t===mt?r(e,R):F)):q}var k,L=e("../utils/common"),A=e("./trees"),O=e("./adler32"),M=e("./crc32"),_=e("./messages"),D=0,P=1,H=3,B=4,j=5,F=0,I=1,q=-2,R=-3,U=-5,z=-1,W=1,X=2,V=3,$=4,J=0,K=2,Q=8,G=9,Y=15,Z=8,et=29,tt=256,nt=tt+1+et,rt=30,it=19,st=2*nt+1,ot=15,ut=3,at=258,ft=at+ut+1,lt=32,ct=42,ht=69,pt=73,dt=91,vt=103,mt=113,gt=666,yt=1,bt=2,wt=3,Et=4,St=3,xt=function(e,t,n,r,i){this
.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i};k=[new xt(0,0,0,0,p),new xt(4,4,8,4,d),new xt(4,5,16,8,d),new xt(4,6,32,32,d),new xt(4,4,16,16,v),new xt(8,16,32,32,v),new xt(8,16,128,128,v),new xt(8,32,128,256,v),new xt(32,128,258,1024,v),new xt(32,258,258,4096,v)],n.deflateInit=T,n.deflateInit2=x,n.deflateReset=E,n.deflateResetKeep=w,n.deflateSetHeader=S,n.deflate=N,n.deflateEnd=C,n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":27,"./adler32"
:29,"./crc32":31,"./messages":37,"./trees":38}],33:[function(e,t){"use strict";function n(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}t.exports=n},{}],34:[function(e,t){"use strict";var n=30,r=12;t.exports=function(e,t){var i,s,o,u,a,f,l,h,p,v,m,g,y,b,w,E,S,x,T,N,C,k,L,A,O;i=e.state,s=e.next_in,A=e.input,o=s+(e.avail_in-5),u=e.next_out,O=e.output,a=u-(t-e.avail_out),f=u+(e.avail_out-257),l=i.dmax,h=i.wsize
,p=i.whave,v=i.wnext,m=i.window,g=i.hold,y=i.bits,b=i.lencode,w=i.distcode,E=(1<<i.lenbits)-1,S=(1<<i.distbits)-1;e:do{15>y&&(g+=A[s++]<<y,y+=8,g+=A[s++]<<y,y+=8),x=b[g&E];t:for(;;){if(T=x>>>24,g>>>=T,y-=T,T=x>>>16&255,0===T)O[u++]=65535&x;else{if(!(16&T)){if(0===(64&T)){x=b[(65535&x)+(g&(1<<T)-1)];continue t}if(32&T){i.mode=r;break e}e.msg="invalid literal/length code",i.mode=n;break e}N=65535&x,T&=15,T&&(T>y&&(g+=A[s++]<<y,y+=8),N+=g&(1<<T)-1,g>>>=T,y-=T),15>y&&(g+=A[s++]<<y,y+=8,g+=A[s++]<<y,y+=8
),x=w[g&S];n:for(;;){if(T=x>>>24,g>>>=T,y-=T,T=x>>>16&255,!(16&T)){if(0===(64&T)){x=w[(65535&x)+(g&(1<<T)-1)];continue n}e.msg="invalid distance code",i.mode=n;break e}if(C=65535&x,T&=15,T>y&&(g+=A[s++]<<y,y+=8,T>y&&(g+=A[s++]<<y,y+=8)),C+=g&(1<<T)-1,C>l){e.msg="invalid distance too far back",i.mode=n;break e}if(g>>>=T,y-=T,T=u-a,C>T){if(T=C-T,T>p&&i.sane){e.msg="invalid distance too far back",i.mode=n;break e}if(k=0,L=m,0===v){if(k+=h-T,N>T){N-=T;do O[u++]=m[k++];while(--T);k=u-C,L=O}}else if(T>
v){if(k+=h+v-T,T-=v,N>T){N-=T;do O[u++]=m[k++];while(--T);if(k=0,N>v){T=v,N-=T;do O[u++]=m[k++];while(--T);k=u-C,L=O}}}else if(k+=v-T,N>T){N-=T;do O[u++]=m[k++];while(--T);k=u-C,L=O}for(;N>2;)O[u++]=L[k++],O[u++]=L[k++],O[u++]=L[k++],N-=3;N&&(O[u++]=L[k++],N>1&&(O[u++]=L[k++]))}else{k=u-C;do O[u++]=O[k++],O[u++]=O[k++],O[u++]=O[k++],N-=3;while(N>2);N&&(O[u++]=O[k++],N>1&&(O[u++]=O[k++]))}break}}break}}while(o>s&&f>u);N=y>>3,s-=N,y-=N<<3,g&=(1<<y)-1,e.next_in=s,e.next_out=u,e.avail_in=o>s?5+(o-s):5-
(s-o),e.avail_out=f>u?257+(f-u):257-(u-f),i.hold=g,i.bits=y}},{}],35:[function(e,t,n){"use strict";function r(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function i(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0
,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new g.Buf16(320),this.work=new g.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function s(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=B,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new g.Buf32(dt),t.distcode=t.distdyn=new g.Buf32(vt),t.sane=1,t.back=-1,L):M}function o(e){var t;return e&&
e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,s(e)):M}function u(e,t){var n,r;return e&&e.state?(r=e.state,0>t?(n=0,t=-t):(n=(t>>4)+1,48>t&&(t&=15)),t&&(8>t||t>15)?M:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,o(e))):M}function a(e,t){var n,r;return e?(r=new i,e.state=r,r.window=null,n=u(e,t),n!==L&&(e.state=null),n):M}function f(e){return a(e,gt)}function l(e){if(yt){var t;for(v=new g.Buf32(512),m=new g.Buf32(32),t=0;144>t;)e.lens[t++]=8;for(;256>t;)e.lens[t++]=9;for(;280>
t;)e.lens[t++]=7;for(;288>t;)e.lens[t++]=8;for(E(x,e.lens,0,288,v,0,e.work,{bits:9}),t=0;32>t;)e.lens[t++]=5;E(T,e.lens,0,32,m,0,e.work,{bits:5}),yt=!1}e.lencode=v,e.lenbits=9,e.distcode=m,e.distbits=5}function c(e,t,n,r){var i,s=e.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new g.Buf8(s.wsize)),r>=s.wsize?(g.arraySet(s.window,t,n-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i=s.wsize-s.wnext,i>r&&(i=r),g.arraySet(s.window,t,n-r,i,s.wnext),r-=i,r?(g.arraySet(s
.window,t,n-r,r,0),s.wnext=r,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=i))),0}function h(e,t){var n,i,s,o,u,a,f,h,p,d,v,m,dt,vt,mt,gt,yt,bt,wt,Et,St,xt,Tt,Nt,Ct=0,kt=new g.Buf8(4),Lt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return M;n=e.state,n.mode===$&&(n.mode=J),u=e.next_out,s=e.output,f=e.avail_out,o=e.next_in,i=e.input,a=e.avail_in,h=n.hold,p=n.bits,d=a,v=f,xt=L;e:for(;;)switch(n.mode){case B
:if(0===n.wrap){n.mode=J;break}for(;16>p;){if(0===a)break e;a--,h+=i[o++]<<p,p+=8}if(2&n.wrap&&35615===h){n.check=0,kt[0]=255&h,kt[1]=h>>>8&255,n.check=b(n.check,kt,2,0),h=0,p=0,n.mode=j;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&h)<<8)+(h>>8))%31){e.msg="incorrect header check",n.mode=ct;break}if((15&h)!==H){e.msg="unknown compression method",n.mode=ct;break}if(h>>>=4,p-=4,St=(15&h)+8,0===n.wbits)n.wbits=St;else if(St>n.wbits){e.msg="invalid window size",n.mode=ct;break}n.dmax=1<<
St,e.adler=n.check=1,n.mode=512&h?X:$,h=0,p=0;break;case j:for(;16>p;){if(0===a)break e;a--,h+=i[o++]<<p,p+=8}if(n.flags=h,(255&n.flags)!==H){e.msg="unknown compression method",n.mode=ct;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=ct;break}n.head&&(n.head.text=h>>8&1),512&n.flags&&(kt[0]=255&h,kt[1]=h>>>8&255,n.check=b(n.check,kt,2,0)),h=0,p=0,n.mode=F;case F:for(;32>p;){if(0===a)break e;a--,h+=i[o++]<<p,p+=8}n.head&&(n.head.time=h),512&n.flags&&(kt[0]=255&h,kt[1]=h>>>8&255,kt
[2]=h>>>16&255,kt[3]=h>>>24&255,n.check=b(n.check,kt,4,0)),h=0,p=0,n.mode=I;case I:for(;16>p;){if(0===a)break e;a--,h+=i[o++]<<p,p+=8}n.head&&(n.head.xflags=255&h,n.head.os=h>>8),512&n.flags&&(kt[0]=255&h,kt[1]=h>>>8&255,n.check=b(n.check,kt,2,0)),h=0,p=0,n.mode=q;case q:if(1024&n.flags){for(;16>p;){if(0===a)break e;a--,h+=i[o++]<<p,p+=8}n.length=h,n.head&&(n.head.extra_len=h),512&n.flags&&(kt[0]=255&h,kt[1]=h>>>8&255,n.check=b(n.check,kt,2,0)),h=0,p=0}else n.head&&(n.head.extra=null);n.mode=R;case R
:if(1024&n.flags&&(m=n.length,m>a&&(m=a),m&&(n.head&&(St=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),g.arraySet(n.head.extra,i,o,m,St)),512&n.flags&&(n.check=b(n.check,i,m,o)),a-=m,o+=m,n.length-=m),n.length))break e;n.length=0,n.mode=U;case U:if(2048&n.flags){if(0===a)break e;m=0;do St=i[o+m++],n.head&&St&&n.length<65536&&(n.head.name+=String.fromCharCode(St));while(St&&a>m);if(512&n.flags&&(n.check=b(n.check,i,m,o)),a-=m,o+=m,St)break e}else n.head&&(n.head
.name=null);n.length=0,n.mode=z;case z:if(4096&n.flags){if(0===a)break e;m=0;do St=i[o+m++],n.head&&St&&n.length<65536&&(n.head.comment+=String.fromCharCode(St));while(St&&a>m);if(512&n.flags&&(n.check=b(n.check,i,m,o)),a-=m,o+=m,St)break e}else n.head&&(n.head.comment=null);n.mode=W;case W:if(512&n.flags){for(;16>p;){if(0===a)break e;a--,h+=i[o++]<<p,p+=8}if(h!==(65535&n.check)){e.msg="header crc mismatch",n.mode=ct;break}h=0,p=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0
,n.mode=$;break;case X:for(;32>p;){if(0===a)break e;a--,h+=i[o++]<<p,p+=8}e.adler=n.check=r(h),h=0,p=0,n.mode=V;case V:if(0===n.havedict)return e.next_out=u,e.avail_out=f,e.next_in=o,e.avail_in=a,n.hold=h,n.bits=p,O;e.adler=n.check=1,n.mode=$;case $:if(t===C||t===k)break e;case J:if(n.last){h>>>=7&p,p-=7&p,n.mode=at;break}for(;3>p;){if(0===a)break e;a--,h+=i[o++]<<p,p+=8}switch(n.last=1&h,h>>>=1,p-=1,3&h){case 0:n.mode=K;break;case 1:if(l(n),n.mode=tt,t===k){h>>>=2,p-=2;break e}break;case 2:n.mode=
Y;break;case 3:e.msg="invalid block type",n.mode=ct}h>>>=2,p-=2;break;case K:for(h>>>=7&p,p-=7&p;32>p;){if(0===a)break e;a--,h+=i[o++]<<p,p+=8}if((65535&h)!==(h>>>16^65535)){e.msg="invalid stored block lengths",n.mode=ct;break}if(n.length=65535&h,h=0,p=0,n.mode=Q,t===k)break e;case Q:n.mode=G;case G:if(m=n.length){if(m>a&&(m=a),m>f&&(m=f),0===m)break e;g.arraySet(s,i,o,m,u),a-=m,o+=m,f-=m,u+=m,n.length-=m;break}n.mode=$;break;case Y:for(;14>p;){if(0===a)break e;a--,h+=i[o++]<<p,p+=8}if(n.nlen=(31&
h)+257,h>>>=5,p-=5,n.ndist=(31&h)+1,h>>>=5,p-=5,n.ncode=(15&h)+4,h>>>=4,p-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=ct;break}n.have=0,n.mode=Z;case Z:for(;n.have<n.ncode;){for(;3>p;){if(0===a)break e;a--,h+=i[o++]<<p,p+=8}n.lens[Lt[n.have++]]=7&h,h>>>=3,p-=3}for(;n.have<19;)n.lens[Lt[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Tt={bits:n.lenbits},xt=E(S,n.lens,0,19,n.lencode,0,n.work,Tt),n.lenbits=Tt.bits,xt){e.msg="invalid code lengths set",n.mode=ct;break}
n.have=0,n.mode=et;case et:for(;n.have<n.nlen+n.ndist;){for(;Ct=n.lencode[h&(1<<n.lenbits)-1],mt=Ct>>>24,gt=Ct>>>16&255,yt=65535&Ct,!(p>=mt);){if(0===a)break e;a--,h+=i[o++]<<p,p+=8}if(16>yt)h>>>=mt,p-=mt,n.lens[n.have++]=yt;else{if(16===yt){for(Nt=mt+2;Nt>p;){if(0===a)break e;a--,h+=i[o++]<<p,p+=8}if(h>>>=mt,p-=mt,0===n.have){e.msg="invalid bit length repeat",n.mode=ct;break}St=n.lens[n.have-1],m=3+(3&h),h>>>=2,p-=2}else if(17===yt){for(Nt=mt+3;Nt>p;){if(0===a)break e;a--,h+=i[o++]<<p,p+=8}h>>>=
mt,p-=mt,St=0,m=3+(7&h),h>>>=3,p-=3}else{for(Nt=mt+7;Nt>p;){if(0===a)break e;a--,h+=i[o++]<<p,p+=8}h>>>=mt,p-=mt,St=0,m=11+(127&h),h>>>=7,p-=7}if(n.have+m>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=ct;break}for(;m--;)n.lens[n.have++]=St}}if(n.mode===ct)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=ct;break}if(n.lenbits=9,Tt={bits:n.lenbits},xt=E(x,n.lens,0,n.nlen,n.lencode,0,n.work,Tt),n.lenbits=Tt.bits,xt){e.msg="invalid literal/lengths set",n.mode=ct
;break}if(n.distbits=6,n.distcode=n.distdyn,Tt={bits:n.distbits},xt=E(T,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Tt),n.distbits=Tt.bits,xt){e.msg="invalid distances set",n.mode=ct;break}if(n.mode=tt,t===k)break e;case tt:n.mode=nt;case nt:if(a>=6&&f>=258){e.next_out=u,e.avail_out=f,e.next_in=o,e.avail_in=a,n.hold=h,n.bits=p,w(e,v),u=e.next_out,s=e.output,f=e.avail_out,o=e.next_in,i=e.input,a=e.avail_in,h=n.hold,p=n.bits,n.mode===$&&(n.back=-1);break}for(n.back=0;Ct=n.lencode[h&(1<<n.lenbits)-1],
mt=Ct>>>24,gt=Ct>>>16&255,yt=65535&Ct,!(p>=mt);){if(0===a)break e;a--,h+=i[o++]<<p,p+=8}if(gt&&0===(240&gt)){for(bt=mt,wt=gt,Et=yt;Ct=n.lencode[Et+((h&(1<<bt+wt)-1)>>bt)],mt=Ct>>>24,gt=Ct>>>16&255,yt=65535&Ct,!(p>=bt+mt);){if(0===a)break e;a--,h+=i[o++]<<p,p+=8}h>>>=bt,p-=bt,n.back+=bt}if(h>>>=mt,p-=mt,n.back+=mt,n.length=yt,0===gt){n.mode=ut;break}if(32&gt){n.back=-1,n.mode=$;break}if(64&gt){e.msg="invalid literal/length code",n.mode=ct;break}n.extra=15&gt,n.mode=rt;case rt:if(n.extra){for(Nt=n.
extra;Nt>p;){if(0===a)break e;a--,h+=i[o++]<<p,p+=8}n.length+=h&(1<<n.extra)-1,h>>>=n.extra,p-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=it;case it:for(;Ct=n.distcode[h&(1<<n.distbits)-1],mt=Ct>>>24,gt=Ct>>>16&255,yt=65535&Ct,!(p>=mt);){if(0===a)break e;a--,h+=i[o++]<<p,p+=8}if(0===(240&gt)){for(bt=mt,wt=gt,Et=yt;Ct=n.distcode[Et+((h&(1<<bt+wt)-1)>>bt)],mt=Ct>>>24,gt=Ct>>>16&255,yt=65535&Ct,!(p>=bt+mt);){if(0===a)break e;a--,h+=i[o++]<<p,p+=8}h>>>=bt,p-=bt,n.back+=bt}if(h>>>=mt,p-=mt,n.back+=
mt,64&gt){e.msg="invalid distance code",n.mode=ct;break}n.offset=yt,n.extra=15&gt,n.mode=st;case st:if(n.extra){for(Nt=n.extra;Nt>p;){if(0===a)break e;a--,h+=i[o++]<<p,p+=8}n.offset+=h&(1<<n.extra)-1,h>>>=n.extra,p-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=ct;break}n.mode=ot;case ot:if(0===f)break e;if(m=v-f,n.offset>m){if(m=n.offset-m,m>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=ct;break}m>n.wnext?(m-=n.wnext,dt=n.wsize-m):dt=n.wnext-
m,m>n.length&&(m=n.length),vt=n.window}else vt=s,dt=u-n.offset,m=n.length;m>f&&(m=f),f-=m,n.length-=m;do s[u++]=vt[dt++];while(--m);0===n.length&&(n.mode=nt);break;case ut:if(0===f)break e;s[u++]=n.length,f--,n.mode=nt;break;case at:if(n.wrap){for(;32>p;){if(0===a)break e;a--,h|=i[o++]<<p,p+=8}if(v-=f,e.total_out+=v,n.total+=v,v&&(e.adler=n.check=n.flags?b(n.check,s,v,u-v):y(n.check,s,v,u-v)),v=f,(n.flags?h:r(h))!==n.check){e.msg="incorrect data check",n.mode=ct;break}h=0,p=0}n.mode=ft;case ft:if(
n.wrap&&n.flags){for(;32>p;){if(0===a)break e;a--,h+=i[o++]<<p,p+=8}if(h!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=ct;break}h=0,p=0}n.mode=lt;case lt:xt=A;break e;case ct:xt=_;break e;case ht:return D;case pt:default:return M}return e.next_out=u,e.avail_out=f,e.next_in=o,e.avail_in=a,n.hold=h,n.bits=p,(n.wsize||v!==e.avail_out&&n.mode<ct&&(n.mode<at||t!==N))&&c(e,e.output,e.next_out,v-e.avail_out)?(n.mode=ht,D):(d-=e.avail_in,v-=e.avail_out,e.total_in+=d,e.total_out+=v,n.total+=
v,n.wrap&&v&&(e.adler=n.check=n.flags?b(n.check,s,v,e.next_out-v):y(n.check,s,v,e.next_out-v)),e.data_type=n.bits+(n.last?64:0)+(n.mode===$?128:0)+(n.mode===tt||n.mode===Q?256:0),(0===d&&0===v||t===N)&&xt===L&&(xt=P),xt)}function p(e){if(!e||!e.state)return M;var t=e.state;return t.window&&(t.window=null),e.state=null,L}function d(e,t){var n;return e&&e.state?(n=e.state,0===(2&n.wrap)?M:(n.head=t,t.done=!1,L)):M}var v,m,g=e("../utils/common"),y=e("./adler32"),b=e("./crc32"),w=e("./inffast"),E=e("./inftrees"
),S=0,x=1,T=2,N=4,C=5,k=6,L=0,A=1,O=2,M=-2,_=-3,D=-4,P=-5,H=8,B=1,j=2,F=3,I=4,q=5,R=6,U=7,z=8,W=9,X=10,V=11,$=12,J=13,K=14,Q=15,G=16,Y=17,Z=18,et=19,tt=20,nt=21,rt=22,it=23,st=24,ot=25,ut=26,at=27,ft=28,lt=29,ct=30,ht=31,pt=32,dt=852,vt=592,mt=15,gt=mt,yt=!0;n.inflateReset=o,n.inflateReset2=u,n.inflateResetKeep=s,n.inflateInit=f,n.inflateInit2=a,n.inflate=h,n.inflateEnd=p,n.inflateGetHeader=d,n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":27,"./adler32":29,"./crc32":31,"./inffast"
:34,"./inftrees":36}],36:[function(e,t){"use strict";var n=e("../utils/common"),r=15,i=852,s=592,o=0,u=1,a=2,f=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],l=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28
,28,29,29,64,64];t.exports=function(e,t,p,v,y,b,w,E){var S,x,T,N,C,L,A,O,M,_=E.bits,D=0,P=0,H=0,B=0,F=0,I=0,q=0,R=0,U=0,z=0,W=null,X=0,V=new n.Buf16(r+1),$=new n.Buf16(r+1),J=null,K=0;for(D=0;r>=D;D++)V[D]=0;for(P=0;v>P;P++)V[t[p+P]]++;for(F=_,B=r;B>=1&&0===V[B];B--);if(F>B&&(F=B),0===B)return y[b++]=20971520,y[b++]=20971520,E.bits=1,0;for(H=1;B>H&&0===V[H];H++);for(H>F&&(F=H),R=1,D=1;r>=D;D++)if(R<<=1,R-=V[D],0>R)return-1;if(R>0&&(e===o||1!==B))return-1;for($[1]=0,D=1;r>D;D++)$[D+1]=$[D]+V[D];for(
P=0;v>P;P++)0!==t[p+P]&&(w[$[t[p+P]]++]=P);if(e===o?(W=J=w,L=19):e===u?(W=f,X-=257,J=l,K-=257,L=256):(W=c,J=h,L=-1),z=0,P=0,D=H,C=b,I=F,q=0,T=-1,U=1<<F,N=U-1,e===u&&U>i||e===a&&U>s)return 1;for(var Q=0;;){Q++,A=D-q,w[P]<L?(O=0,M=w[P]):w[P]>L?(O=J[K+w[P]],M=W[X+w[P]]):(O=96,M=0),S=1<<D-q,x=1<<I,H=x;do x-=S,y[C+(z>>q)+x]=A<<24|O<<16|M|0;while(0!==x);for(S=1<<D-1;z&S;)S>>=1;if(0!==S?(z&=S-1,z+=S):z=0,P++,0===--V[D]){if(D===B)break;D=t[p+w[P]]}if(D>F&&(z&N)!==T){for(0===q&&(q=F),C+=H,I=D-q,R=1<<I;B>I+
q&&(R-=V[I+q],!(0>=R));)I++,R<<=1;if(U+=1<<I,e===u&&U>i||e===a&&U>s)return 1;T=z&N,y[T]=F<<24|I<<16|C-b|0}}return 0!==z&&(y[C+z]=D-q<<24|64<<16|0),E.bits=F,0}},{"../utils/common":27}],37:[function(e,t){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],38:[function(e,t,n){"use strict";function r(e){for(var t=e.length;--t>=0;)e[t]=0}function i(e){return 256>
e?ot[e]:ot[256+(e>>>7)]}function s(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function o(e,t,n){e.bi_valid>$-n?(e.bi_buf|=t<<e.bi_valid&65535,s(e,e.bi_buf),e.bi_buf=t>>$-e.bi_valid,e.bi_valid+=n-$):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function u(e,t,n){o(e,n[2*t],n[2*t+1])}function a(e,t){var n=0;do n|=1&e,e>>>=1,n<<=1;while(--t>0);return n>>>1}function f(e){16===e.bi_valid?(s(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&
e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}function l(e,t){var n,r,i,s,o,u,a=t.dyn_tree,f=t.max_code,l=t.stat_desc.static_tree,c=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,d=t.stat_desc.max_length,v=0;for(s=0;V>=s;s++)e.bl_count[s]=0;for(a[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;X>n;n++)r=e.heap[n],s=a[2*a[2*r+1]+1]+1,s>d&&(s=d,v++),a[2*r+1]=s,r>f||(e.bl_count[s]++,o=0,r>=p&&(o=h[r-p]),u=a[2*r],e.opt_len+=u*(s+o),c&&(e.static_len+=u*(l[2*r+1]+o)));if(0!==v){do{for(s=d-1;0===
e.bl_count[s];)s--;e.bl_count[s]--,e.bl_count[s+1]+=2,e.bl_count[d]--,v-=2}while(v>0);for(s=d;0!==s;s--)for(r=e.bl_count[s];0!==r;)i=e.heap[--n],i>f||(a[2*i+1]!==s&&(e.opt_len+=(s-a[2*i+1])*a[2*i],a[2*i+1]=s),r--)}}function c(e,t,n){var r,i,s=new Array(V+1),o=0;for(r=1;V>=r;r++)s[r]=o=o+n[r-1]<<1;for(i=0;t>=i;i++){var u=e[2*i+1];0!==u&&(e[2*i]=a(s[u]++,u))}}function h(){var e,t,n,r,i,s=new Array(V+1);for(n=0,r=0;q-1>r;r++)for(at[r]=n,e=0;e<1<<Z[r];e++)ut[n++]=r;for(ut[n-1]=r,i=0,r=0;16>r;r++)for(
ft[r]=i,e=0;e<1<<et[r];e++)ot[i++]=r;for(i>>=7;z>r;r++)for(ft[r]=i<<7,e=0;e<1<<et[r]-7;e++)ot[256+i++]=r;for(t=0;V>=t;t++)s[t]=0;for(e=0;143>=e;)it[2*e+1]=8,e++,s[8]++;for(;255>=e;)it[2*e+1]=9,e++,s[9]++;for(;279>=e;)it[2*e+1]=7,e++,s[7]++;for(;287>=e;)it[2*e+1]=8,e++,s[8]++;for(c(it,U+1,s),e=0;z>e;e++)st[2*e+1]=5,st[2*e]=a(e,5);lt=new pt(it,Z,R+1,U,V),ct=new pt(st,et,0,z,V),ht=new pt(new Array(0),tt,0,W,J)}function p(e){var t;for(t=0;U>t;t++)e.dyn_ltree[2*t]=0;for(t=0;z>t;t++)e.dyn_dtree[2*t]=0;
for(t=0;W>t;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*K]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function d(e){e.bi_valid>8?s(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function v(e,t,n,r){d(e),r&&(s(e,n),s(e,~n)),O.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}function m(e,t,n,r){var i=2*t,s=2*n;return e[i]<e[s]||e[i]===e[s]&&r[t]<=r[n]}function g(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&m(t,e.heap[i+1],e.heap[i
],e.depth)&&i++,!m(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function y(e,t,n){var r,s,a,f,l=0;if(0!==e.last_lit)do r=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],s=e.pending_buf[e.l_buf+l],l++,0===r?u(e,s,t):(a=ut[s],u(e,a+R+1,t),f=Z[a],0!==f&&(s-=at[a],o(e,s,f)),r--,a=i(r),u(e,a,n),f=et[a],0!==f&&(r-=ft[a],o(e,r,f)));while(l<e.last_lit);u(e,K,t)}function b(e,t){var n,r,i,s=t.dyn_tree,o=t.stat_desc.static_tree,u=t.stat_desc.has_stree,a=t.stat_desc.elems,f=-1
;for(e.heap_len=0,e.heap_max=X,n=0;a>n;n++)0!==s[2*n]?(e.heap[++e.heap_len]=f=n,e.depth[n]=0):s[2*n+1]=0;for(;e.heap_len<2;)i=e.heap[++e.heap_len]=2>f?++f:0,s[2*i]=1,e.depth[i]=0,e.opt_len--,u&&(e.static_len-=o[2*i+1]);for(t.max_code=f,n=e.heap_len>>1;n>=1;n--)g(e,s,n);i=a;do n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],g(e,s,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,s[2*i]=s[2*n]+s[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,s[2*n+1]=s[2*r+1]=i,e.heap[1]=i++
,g(e,s,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],l(e,t),c(s,f,e.bl_count)}function w(e,t,n){var r,i,s=-1,o=t[1],u=0,a=7,f=4;for(0===o&&(a=138,f=3),t[2*(n+1)+1]=65535,r=0;n>=r;r++)i=o,o=t[2*(r+1)+1],++u<a&&i===o||(f>u?e.bl_tree[2*i]+=u:0!==i?(i!==s&&e.bl_tree[2*i]++,e.bl_tree[2*Q]++):10>=u?e.bl_tree[2*G]++:e.bl_tree[2*Y]++,u=0,s=i,0===o?(a=138,f=3):i===o?(a=6,f=3):(a=7,f=4))}function E(e,t,n){var r,i,s=-1,a=t[1],f=0,l=7,c=4;for(0===a&&(l=138,c=3),r=0;n>=r;r++)if(i=a,a=t[2*(r+1)+1],!(++
f<l&&i===a)){if(c>f){do u(e,i,e.bl_tree);while(0!==--f)}else 0!==i?(i!==s&&(u(e,i,e.bl_tree),f--),u(e,Q,e.bl_tree),o(e,f-3,2)):10>=f?(u(e,G,e.bl_tree),o(e,f-3,3)):(u(e,Y,e.bl_tree),o(e,f-11,7));f=0,s=i,0===a?(l=138,c=3):i===a?(l=6,c=3):(l=7,c=4)}}function S(e){var t;for(w(e,e.dyn_ltree,e.l_desc.max_code),w(e,e.dyn_dtree,e.d_desc.max_code),b(e,e.bl_desc),t=W-1;t>=3&&0===e.bl_tree[2*nt[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}function x(e,t,n,r){var i;for(o(e,t-257,5),o(e,n-1,5),o(e,r-4,4),i=0;
r>i;i++)o(e,e.bl_tree[2*nt[i]+1],3);E(e,e.dyn_ltree,t-1),E(e,e.dyn_dtree,n-1)}function T(e){var t,n=4093624447;for(t=0;31>=t;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return _;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return D;for(t=32;R>t;t++)if(0!==e.dyn_ltree[2*t])return D;return _}function N(e){vt||(h(),vt=!0),e.l_desc=new dt(e.dyn_ltree,lt),e.d_desc=new dt(e.dyn_dtree,ct),e.bl_desc=new dt(e.bl_tree,ht),e.bi_buf=0,e.bi_valid=0,p(e)}function C(e,t,n,r){o(e,(H<<1)+(r?1:0),3
),v(e,t,n,!0)}function k(e){o(e,B<<1,3),u(e,K,it),f(e)}function L(e,t,n,r){var i,s,u=0;e.level>0?(e.strm.data_type===P&&(e.strm.data_type=T(e)),b(e,e.l_desc),b(e,e.d_desc),u=S(e),i=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,i>=s&&(i=s)):i=s=n+5,i>=n+4&&-1!==t?C(e,t,n,r):e.strategy===M||s===i?(o(e,(B<<1)+(r?1:0),3),y(e,it,st)):(o(e,(j<<1)+(r?1:0),3),x(e,e.l_desc.max_code+1,e.d_desc.max_code+1,u+1),y(e,e.dyn_ltree,e.dyn_dtree)),p(e),r&&d(e)}function A(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=
t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(ut[n]+R+1)]++,e.dyn_dtree[2*i(t)]++),e.last_lit===e.lit_bufsize-1}var O=e("../utils/common"),M=4,_=0,D=1,P=2,H=0,B=1,j=2,F=3,I=258,q=29,R=256,U=R+1+q,z=30,W=19,X=2*U+1,V=15,$=16,J=7,K=256,Q=16,G=17,Y=18,Z=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],et=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]
,tt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],nt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],rt=512,it=new Array(2*(U+2));r(it);var st=new Array(2*z);r(st);var ot=new Array(rt);r(ot);var ut=new Array(I-F+1);r(ut);var at=new Array(q);r(at);var ft=new Array(z);r(ft);var lt,ct,ht,pt=function(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length},dt=function(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t},vt=!1;n._tr_init=
N,n._tr_stored_block=C,n._tr_flush_block=L,n._tr_tally=A,n._tr_align=k},{"../utils/common":27}],39:[function(e,t){"use strict";function n(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}t.exports=n},{}]},{},[9])(9)}),define("services/utils/debugUtils",["require","exports","module","angular","jszip"],function(e,t,n){"use strict";var r=e("angular"),i="readdirSync"
,s="readFileSync",o="writeFileSync",u=["$q","$translate","csInterface","debugLog","designLibraryManager","designLibraryElements",function(t,n,r,u,a,f){function h(e){var t=0;return e.forEach(function(e){e.representations.forEach(function(e){t+=e.contentLength||0})}),t}function p(e){var t="B";return e>1024&&(e/=1024,t="KB",e>1024&&(e/=1024,t="MB")),Math.round(e)+" "+t}function d(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function v(e){var t=new Date(e);return t.getMonth()+1+"-"+t.getDate
()+"-"+t.getFullYear()}function m(e){var t=new Date(e),n=t.getMinutes();return t.getHours()+":"+(n<=9?"0":"")+n}function g(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function y(e,t){return e=e.replace(/[<>:"\/\\|?*\x00-\x1F]/g,"_").trim(),e&&e!==""?e:t}function b(e){var t;r.isWindowsOS()?(t="start",e=e.replace(/\//g,"\\")):t="/usr/bin/open",window.cep.process.createProcess(t,e)}function w(e){try{return l[s](e)}catch(t){return"Could not read "+
e+"\n\n"+t.toString()}}function E(e){try{return l[i](e)}catch(t){return"Could not read "+e+"\n\n"+t.toString()}}var l=nodeRequire("fs"),c=e("jszip");this.viewLibrariesInfo=function(){var e=a.getLibraries();e.sort(function(e,t){return e.name<t.name?-1:e.name>t.name?1:0});var t=[],n=Date.now();t.push('<HTML><HEAD style="font-family:sans-serif;"><TITLE>'),t.push("My CC Libraries"),t.push('</TITLE></HEAD><body style="font-family:sans-serif"><H1>'),t.push("My CC Libraries"),t.push("</H1><p>"),t.push(e
.length+" libraries, "+v(n)+" "+m(n)),t.push('</p><table BORDER=1 CELLPADDING=4 CELLSPACING=1 RULES=ROWS FRAME=HSIDES BORDERCOLOR="#EEEEEE" style="font-size:small"><tr>'),t.push("<th>&nbsp</th>"),t.push("<th>Elements</th>"),t.push("<th>Data size</th>"),t.push("<th>Last modified</th>"),t.push("<th>Collaboration</th>"),t.push("<th>ID</th>"),t.push("</tr>"),e.forEach(function(e){t.push("<tr><td>"),t.push(g(e.name)),t.push('</td><td align="right">'),t.push(e.elements.length),t.push('</td><td align="right">'
),t.push(d(h(e.elements))),t.push('</td><td align="right">'),t.push(v(e.modified)),t.push("</td><td>"),t.push(e.collaboration||"&nbsp"),t.push("</td><td>"),t.push(e.id),t.push("</td></tr>")}),t.push("</table></BODY></HTML>");var i="writeFileSync",s=r.getSystemPath(SystemPath.MY_DOCUMENTS)+"/AllLibrariesInfo.html";l[i](s,t.join("\n")),r.isWindowsOS()&&alert("Information saved to "+s),b(s)},this.viewLibraryInfo=function(){var e=a.getCurrentLibrary(),t=[];t.push("Current Library Information"),t.push
("Name: "+e.name);var i=p(h(e.elements));t.push("Elements: "+e.elements.length+" ("+i+")");var s=f.getElementTypes();s.forEach(function(r){var i=n.instant(f.getDisplayName(r)),s=e.getFilteredElements(r);if(s.length>0){var o=h(s);t.push("    "+i+": "+s.length+" ("+o+")")}}),r.showError(t.join("\n"))},this.viewElementInfo=function(){var e=a.getCurrentLibrary(),t=[],i=Date.now();t.push('<HTML><HEAD style="font-family:sans-serif;"><TITLE>'),t.push('Contents of "'+e.name+'"'),t.push('</TITLE></HEAD><body style="font-family:sans-serif"><H1>'
),t.push('Contents of "'+e.name+'"'),t.push("</H1><p>"),t.push(e.elements.length+" elements, "+v(i)+" "+m(i)),t.push('</p><table BORDER=1 CELLPADDING=4 CELLSPACING=1 RULES=ROWS FRAME=HSIDES BORDERCOLOR="#EEEEEE" style="font-size:small"><tr>'),t.push("<th>Type</th>"),t.push("<th>Name</th>"),t.push("<th>Last modified</th>"),t.push("<th>ID</th>"),t.push("</tr>");var s=f.getElementTypes();s.forEach(function(r){var i=n.instant(f.getDisplayName(r)),s=e.getFilteredElements(r);s.length>0&&(s.sort(function(
e,t){return(e.name||"")<(t.name||"")?-1:(e.name||"")>(t.name||"")?1:0}),s.forEach(function(e){var n=e.name;n&&n.length>100&&(n=n.substr(0,100)+"..."),t.push("<tr><td>"),t.push(i),t.push("</td><td>"),t.push(n||"&nbsp"),t.push("</td><td>"),t.push(v(e.modified)),t.push("</td><td>"),t.push(e.id),t.push("</td></tr>")}))}),t.push("</table></BODY></HTML>");var o="writeFileSync",u=r.getSystemPath(SystemPath.MY_DOCUMENTS)+"/"+y(e.name,"Library contents")+".html";l[o](u,t.join("\n")),r.isWindowsOS()&&alert
("Information saved to "+u),b(u)},this.showLogFolder=function(){r.isWindowsOS()&&alert("Folder is "+u.getLogFolder()),b(u.getLogFolder())},this.saveDebugInfo=function(){try{var e=new c,t=e.folder("CC Libraries Debug Info"),n,i=u.getLogFolder(),s=E(i);s.forEach(function(e){if(e.match(/.*\.log$/)||e.match(/.*\.txt$/))n=w(i+e),t.file(e,n)}),n=w(r.getLocalRoot()+"settings.json"),t.file("settings.json",n),n=w(r.getGlobalRoot()+"LIBS/settings.json"),t.file("LIBS_settings.json",n),n=w(r.getGlobalRoot()+"LIBS/librarylookupfile"
),t.file("LIBS_librarylookupfile",n);var a=e.generate({type:"nodebuffer"}),f=r.getSystemPath(SystemPath.MY_DOCUMENTS)+"/debuginfo.zip";l[o](f,a),alert("Debug information saved to "+f)}catch(h){alert("Failed to create debug info file\n\n"+h)}}}];t.attach=function(e){r.module(e).service("debugUtils",u)}}),define("services/utils/digestUtils",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$rootScope","$window",function(e,t){this.serviceName="digestUtils";
var n=0,r,i=10;this.triggerDigest=function(){var s=this;if(e.$$phase)return;if(r)return;var o=(new Date).valueOf();if(o-n<i){r=t.setTimeout(function(){r=undefined,s.triggerDigest()},i);return}n=o,e.$apply()}}];t.attach=function(e){r.module(e).service("digestUtils",i)}}),define("services/utils/editorAppUtils",["require","exports","module","angular"],function(e,t,n){"use strict";function s(e){r.module(e).service("editorAppUtils",i)}var r=e("angular"),i=["$q","configuration","localSettings",function(
e,t,n){this.serviceName="editorAppUtils";var r={"application/illustrator":["ILST"],"image/svg+xml":["ILST"],"application/vnd.adobe.indesign-idms":["IDSN"],"image/vnd.adobe.photoshop":["PHXS"],"application/photoshop":["PHXS"],"application/photoshop.large":["PHXS"],"image/png":["PHXS"],"image/jpeg":["PHXS"],"image/jpg":["PHXS"],"image/gif":["PHXS"],"image/bmp":["PHXS"],"image/x-portable-bitmap":["PHXS"],"image/x-pict":["PHXS"],"image/x-pcx":["PHXS"],"image/x-portable-graymap":["PHXS"],"image/x-portable-anymap"
:["PHXS"],"image/x-portable-pixmap":["PHXS"],"image/x-tga":["PHXS"],"image/tiff":["PHXS"],"image/vnd.wap.wbmp":["PHXS"]},i={ILST:{minSpecifier:"illustrator-19",minVersion:"19.2"},IDSN:{minSpecifier:"indesign-11",minVersion:"11.2"},PHXS:{minSpecifier:"photoshop-90",minVersion:"16.1.2"}},s=function(e){if(e){var n=r[e];if(n)return n.filter(function(e){return e!==t.currentProduct.config.code})}return undefined},o=function(e){return e?i[e]:undefined},u=function(e,t,n){if(e===t)return 0;var r=(e||"").toString
().split("."),i=(t||"").toString().split("."),s,o;for(s=0;s<r.length&&s<i.length;s++){o=parseInt(r[s],10)-parseInt(i[s],10);if(o>0)return 1;if(o<0)return-1;if(n===!0&&s===0)return 0}return o=r.length-i.length,o>0?1:o<0?-1:0};this.compareVersions=u,this.getValidSpecifiers=function(e){var t={},n=[],r=VulcanInterface.getTargetSpecifiers(),i=s(e);if(i===undefined||i.length===0)return t.editorAppDefined=!1,t;t.editorAppDefined=!0;var a=!1;return i.forEach(function(e,t){var i=o(e);if(i!==undefined){var s=
i.minSpecifier,f=s.split("-");if(f.length===2){var l=[];r.forEach(function(n){var r=n.split("-");if(r.length===2&&r[0]===f[0]){t===0&&(a=!0);if(u(r[1],f[1],!0)>0){var i=VulcanInterface.getAppPath(n);l.push({specifier:n,appCode:e,version:r[1],path:i})}}}),l.sort(function(e,t){var n=u(e.version,t.version);return n===0?0:n<0?1:-1}),l.forEach(function(t){n.push({specifier:t.specifier,appCode:e,path:t.path})}),i.supportsEditing===!0&&n.push({specifier:i.minSpecifier,appCode:e,path:i.path})}}}),t.validSpecifiers=
n,n.length===0&&(a?t.error="DL_ERROR_UPDATE_NEEDED_"+i[0]:t.error="DL_ERROR_INSTALL_NEEDED_"+i[0]),t};var a=function(e){var n=VulcanInterface.getPayload(e),r=JSON.parse(n),s,o,f,l;for(s in i)i.hasOwnProperty(s)&&(o=i[s],f=o.path,f!==""?(l=r[f],o.installedVersion=l,u(l,o.minVersion)<0?o.supportsEditing=!1:o.supportsEditing=!0):o.supportsEditing=!1);var c=VulcanMessage.TYPE_PREFIX+t.APP_VERSION_INFO_MESSAGE;VulcanInterface.removeMessageListener(c,a)};this.init=function(){var e=[],n,r,s,o;for(n in i
)i.hasOwnProperty(n)&&(r=i[n],s=r.minSpecifier,VulcanInterface.isAppInstalled(s)?(o=VulcanInterface.getAppPath(s),r.path=o,e.push(o)):r.path="");var u=VulcanMessage.TYPE_PREFIX+"cclibraries.accessor.RetrieveAppPathsRequest",f=new VulcanMessage(u),l={};l.paths=e,l.appCode=t.currentProduct.config.code;var c=JSON.stringify(l);f.setPayload(c);var h=VulcanMessage.TYPE_PREFIX+t.APP_VERSION_INFO_MESSAGE;VulcanInterface.addMessageListener(h,a),VulcanInterface.dispatchMessage(f)}}];return{attach:s}}),define
("services/utils/fileUtils",["require","exports","module","angular"],function(e,t,n){"use strict";function s(e){r.module(e).service("fileUtils",i)}var r=e("angular"),i=["$q","$location","configuration","ccLibraries",function(e,t,n,r){function s(e,t,n){var s=i[e];s&&t.forEach(function(e){var t=s[e];if(!t){var i=r.utils.mimeTypeToExtensions(e);if(i&&i.length>0){var o=i[0];s[e]={exts:i,badge:o.toUpperCase(),name:o.toUpperCase(),usable:!0,editable:!!n}}}else t.usable=!0,t.editable=!!n})}function o(e,
t,n){var s=i[e];s&&t.forEach(function(e){e=e.toLowerCase();var t=r.utils.extensionToMimeTypes(e);t.forEach(function(t){if(t){var r=s[t];r?(r.exts.indexOf(e)===-1&&r.exts.push(e),r.usable=!0,r.editable=!!n):s[t]={exts:[e],badge:e.toUpperCase(),name:e.toUpperCase(),usable:!0,editable:!!n}}})})}this.serviceName="fileUtils";var i={};i[n.IMAGE_ELEMENT_TYPE]={"image/vnd.adobe.photoshop":{exts:["psd"],badge:"Ps",name:"Photoshop",label:"MIME_PHOTOSHOP_DOCUMENT",createdIn:"DL_APP_PHOTOSHOP"},"application/photoshop"
:{exts:["psd"],badge:"Ps",name:"Photoshop",label:"MIME_PHOTOSHOP_DOCUMENT",createdIn:"DL_APP_PHOTOSHOP"},"application/photoshop.large":{exts:["psb"],badge:"Ps",name:"Photoshop",label:"MIME_PHOTOSHOP_DOCUMENT",createdIn:"DL_APP_PHOTOSHOP"},"application/illustrator":{exts:["ai"],badge:"Ai",name:"Illustrator",label:"MIME_ILLUSTRATOR_DOCUMENT",createdIn:"DL_APP_ILLUSTRATOR"},"application/vnd.adobe.indesign-idms":{exts:["idms"],badge:"Id",name:"InDesign",label:"MIME_INDESIGN_SNIPPET",createdIn:"DL_APP_INDESIGN"
},"application/vnd.adobe.muse-collection":{exts:["muse"],badge:"Mu",name:"Muse",label:"MIME_MUSE_DOCUMENT",createdIn:"DL_APP_MUSE"},"application/pdf":{exts:["pdf"],badge:"PDF",name:"PDF",label:"MIME_PDF_IMAGE"},"image/png":{exts:["png"],badge:"PNG",name:"PNG",label:"MIME_PNG_IMAGE"},"image/jpeg":{exts:["jpeg"],badge:"JPEG",name:"JPEG",label:"MIME_JPEG_IMAGE"},"image/jpg":{exts:["jpg"],badge:"JPG",name:"JPG",label:"MIME_JPEG_IMAGE"},"image/gif":{exts:["gif"],badge:"GIF",name:"GIF",label:"MIME_GIF_IMAGE"
},"image/svg+xml":{exts:["svg"],badge:"SVG",name:"SVG",label:"MIME_SVG_IMAGE"},"image/vnd.adobe.shape+svg":{exts:["shape"],badge:"SVG",name:"Shape",label:"MIME_SHAPE_DOCUMENT",createdIn:"DL_APP_SHAPE"},"application/vnd.adobe.charts+zip":{exts:["zip"],badge:"PDF",name:"Chart",label:"MIME_CHARTS",createdIn:"DL_APP_CHARTS"},"application/vnd.adobe.animate-xfl+zip":{exts:["fla","xfl"],badge:"An",name:"Animate",label:"MIME_ANIMATE_DOCUMENT",createdIn:"DL_APP_ANIMATE"}},i[n.COLOR_ELEMENT_TYPE]={"application/vnd.adobe.color+json"
:{exts:["ase"],name:"Color",label:"MIME_RGB_COLOR"}},i[n.COLOR_THEME_ELEMENT_TYPE]={"application/vnd.adobe.colortheme+json":{exts:["ase"],name:"Color",label:"MIME_COLOR_THEME"}},i[n.BRUSH_ELEMENT_TYPE]={"application/vnd.adobe.scatter.brush+zip":{exts:["brush"],name:"Brush",label:"MIME_BRUSH"},"application/vnd.adobe.ribbon.brush+zip":{exts:["brush"],name:"Brush",label:"MIME_BRUSH"},"image/x-adobe-photoshop-brush":{exts:["abr"],name:"Brush",label:"MIME_BRUSH"},"application/vnd.adobe.vector.brush+zip"
:{exts:["brush"],name:"Brush",label:"MIME_BRUSH"}},i[n.CHARACTER_STYLE_ELEMENT_TYPE]={"application/vnd.adobe.characterstyle+json":{exts:["style"],name:"CharacterStyle",label:"MIME_CHARACTER_STYLE"},"application/vnd.adobe.characterstyle+snippet":{exts:["idms"],name:"CharacterStyle",label:"MIME_CHARACTER_STYLE"}},i[n.PARAGRAPH_STYLE_ELEMENT_TYPE]={"application/vnd.adobe.paragraphstyle+json":{exts:["style"],name:"ParagraphStyle",label:"MIME_PARAGRAPH_STYLE"},"application/vnd.adobe.paragraphstyle+snippet"
:{exts:["idms"],name:"ParagraphStyle",label:"MIME_PARAGRAPH_STYLE"}},i[n.LAYER_STYLE_ELEMENT_TYPE]={"application/vnd.adobe.layerstyle":{exts:["asl"],name:"LayerStyle",label:"MIME_LAYER_STYLE"}},i[n.LOOK_ELEMENT_TYPE]={"application/vnd.adobe.cube+txt":{exts:["cube"],name:"Cube LUT",label:"MIME_CUBE_LUT"},"application/vnd.adobe.look+xml":{exts:["look"],name:"Look",label:"MIME_LOOK"}},i[n.THREE_D_ELEMENT_TYPE]={"image/vnd.adobe.photoshop":{exts:["psd"],name:"Photoshop 3D",label:"MIME_3D_PSD"}},i[n.PATTERN_ELEMENT_TYPE
]={"image/vnd.adobe.pattern+png":{exts:["png"]}},i[n.VIDEO_ELEMENT_TYPE]={},this.mimeLookup=function(e,t){var n=i[e];return n?n[t]:undefined},this.getUsableTypes=function(e){var t=[],n=i[e],r;for(r in n)n.hasOwnProperty(r)&&n[r].usable&&t.push(r);return t},this.isTypeUsable=function(e,t){if(t){var n=i[t];if(n&&n[e]&&n[e].usable)return!0}else{var r,s;for(r in i)if(i.hasOwnProperty(r)){s=i[r];if(s&&s[e]&&s[e].usable)return!0}}return!1},this.getEditableTypes=function(e){var t=[],n=i[e],r;for(r in n)
n.hasOwnProperty(r)&&n[r].editable&&t.push(r);return t},this.isTypeEditable=function(e,t){if(t){var n=i[t];if(n&&n[e]&&n[e].editable)return!0}else{var r,s;for(r in i)if(i.hasOwnProperty(r)){s=i[r];if(s&&s[e]&&s[e].editable)return!0}}return!1},this.extendUsableTypes=function(e,t){s(e,t)},this.extendUsableTypesWithExtensions=function(e,t){o(e,t)},this.extendEditableTypes=function(e,t){s(e,t,!0)},this.extendEditableTypesWithExtensions=function(e,t){o(e,t,!0)},this.fileNameToContentType=function(e){if(
e){var t=e.lastIndexOf(".")+1,n;if(t>0){n=t!==e.length?e.substr(t).toLowerCase().trim():"";var s,o,u;for(s in i)if(i.hasOwnProperty(s)){o=i[s];for(u in o)if(o.hasOwnProperty(u)&&o[u].exts.indexOf(n)!==-1)return u}}var a=r.utils.extensionToMimeTypes(n);if(a&&a.length>0)return a[0]}return undefined},this.curateFileName=function(e){return e&&(e=e.replace(/(<|>|:|"|\/|\\|\||\?|\*|[\x00-\x1F])|\(|\)|\{|\}|\,| /g,"")),e},this.getTmpFileName=function(){return(new Date).valueOf()},this.getFileNameWithoutExtension=
function(e){var t=e.lastIndexOf(".");return e&&t!==-1&&(e=e.substr(0,t)),e},this.getFileNameExtension=function(e){var t=e.lastIndexOf(".");return e&&t!==-1?e.substr(t+1):""},this.isUploadableFile=function(e){var t=this.fileNameToContentType(e);return t&&i[n.IMAGE_ELEMENT_TYPE]&&i[n.IMAGE_ELEMENT_TYPE][t]?!0:!1};var u=nodeRequire("fs"),a=nodeRequire("path"),f=a&&a.join;this.existsFile=function(e){if(!u)return!1;var t="existsSync";return u[t](e)},this.deleteFile=function(e){if(!u)return;try{var t="unlinkSync"
;u[t](e)}catch(n){}},this.statFile=function(e){if(!u)return{};var t="statSync";return u[t](e)},this.readFile=function(e,t,n){if(!u){n&&n("no fs");return}if(!n){var r="readFileSync";return u[r](e,t)}u.readFile(e,t,n)},this.writeFile=function(e,t,n,r){if(!u){r&&r("no fs");return}if(!r){var i="writeFileSync";return u[i](e,t,n)}u.writeFile(e,t,n,r)},this.getUniqueFileName=function(){return r.utils.generateUuid()},this.getTempPath=function(e){return e+"_"+r.utils.generateUuid()},this.copyFile=function(
e,t,n){if(!u){n("no fs");return}try{var r=this.getTempPath(t),i=u.createWriteStream(r),s=u.createReadStream(e),o=!1;s.on("end",function(){o||u.rename(r,t,n)}),s.on("error",function(e){o=!0,n(e)}),s.pipe(i)}catch(a){n(a)}},this.removeRecursive=function(t,n){var r=this,i=e.defer(),s=function(t){var i=e.defer();return u.stat(t,function(e,s){e?i.reject(e):s.isDirectory()?i.resolve(r.removeRecursive(t,!0)):n?u.unlink(t,function(e){e?i.reject(e):i.resolve()}):i.resolve()}),i.promise};return u?u.readdir
(t,function(r,o){if(r){i.reject(r);return}var a=[];o.forEach(function(e){var n=f(t,e);a.push(s(n))}),e.all(a).then(function(){n?u.rmdir(t,function(e){e?i.reject(e):i.resolve()}):i.resolve()},function(){i.reject()})}):i.reject(),i.promise},this.ensurePathExists=function(e,t){function n(e,t,r){var i=t.slice(0,e).join("/"),s=function(i){e<t.length?n(e+1,t,r):r(null)};u.exists(i,function(e){e?s():u.mkdir(i,s)})}if(!u){t("no fs");return}var r=e.split("/");n(2,r,t)}}];return{attach:s}}),define("services/utils/importExport"
,["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$q","csInterface","designLibraryManager","serializationUtils",function(e,t,n,r){function c(e){i[s](e)&&(i[o](e).forEach(function(t,n){var r=e+"/"+t;i[a](r).isDirectory()?c(r):i[f](r)}),i[u](e))}function h(t,n){var r=[],s=e.defer();try{c(t),i.mkdir(t,function(o){try{if(o){s.reject(o);return}n.elements.forEach(function(n){n.representations.forEach(function(n){if(n.contentPath){var o=n.contentPath,u=o.split
(/\//),a=u[u.length-1],f=t+a;n.contentPath=a;var l=e.defer();r.push(l.promise),i.readFile(o,function(e,t){if(e){s.reject(e);return}i.writeFile(f,t,function(e){if(e){s.reject(e);return}l.resolve()})})}})}),i[l](t+"library.txt",JSON.stringify(n,undefined,2)),s.resolve(e.all(r))}catch(u){s.reject(u)}})}catch(o){s.reject(o)}return s.promise}function p(e){var n=t.getGlobalRoot(),r;t.isWindowsOS()?r=/^.\:\/Users\/[^\/]+\//:r=/^\/Users\/[^\/]+\//;var i=n.match(r);if(i){var s=i[0];e=e.replace(/^~\//,s)}return e
}function d(e,n){t.evalScript("$._ADBE_LIBS_CORE.chooseFolder()").then(function(t){var r=p(decodeURIComponent(t))+"/",i=e.name.replace(/[<>:"\/\\|?*\x00-\x1F]/g,"_").trim();if(i===""||i==="."||i==="..")i="Library";n(r+i+"/")})}function v(e){t.evalScript("$._ADBE_LIBS_CORE.chooseFolder()").then(function(t){t==="null"?e():e(p(decodeURIComponent(t))+"/")})}var i=nodeRequire("fs"),s="existsSync",o="readdirSync",u="rmdirSync",a="statSync",f="unlinkSync",l="writeFileSync";this.replaceTilde=function(e){
return p(e)},this.exportLibrary=function(e){d(e,function(t){r.exportLibraryData(e).then(function(e){h(t,e).then(function(e){window.alert("Created "+t)},function(e){window.alert("Problem writing "+t+"\n\n"+e)})})})},this.importLibraryFromFolder=function(e,t){if(!e)return;var s=function(e,n){if(t){t(e,n);return}var r=e||'Created "'+n.name+'"\n\n';window.alert(r)};i.readFile(e+"library.txt","utf8",function(t,i){if(t){s("Problem reading library\n\n"+t);return}try{var o=JSON.parse(i),u=n.getPrivateLibraryCollection
();r.importLibraryData(u,o,e).then(function(e){s(null,e)},function(e){s('Could not create library "'+o.name+'"\n\n'+e)})}catch(a){s("Problem importing library\n\n"+a)}})},this.importLibrary=function(){v(this.importLibraryFromFolder.bind(this))}}];t.attach=function(e){r.module(e).service("importExport",i)}}),define("services/utils/linkUtils",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$window","$http","csInterface","imsInterface","debugLog","configuration"
,"metrics","designLibraryManager","versionManager",function(e,t,n,r,i,s,o,u,a){function f(e){var t="",n="",r;for(r in e)e.hasOwnProperty(r)&&(t=t+n+r+"="+encodeURIComponent(e[r]),n="&");return t}function l(e,s,o,a,c){if(!s)n.launchInBrowser(e);else{var h=u.getPrivateLibraryCollection();r.getAccessToken(h&&h.userId).then(function(s){if(s){var u=h&&h.cloudInfo&&h.cloudInfo.parameters,p=u&&u.jumpTargetClientId,d=u&&u.jumpTargetScope;if(u&&!p){var v=e+(e.indexOf("?")===-1?"?":"&")+"accessToken="+encodeURIComponent
(s);n.launchInBrowser(v);return}t({method:"POST",url:"https://"+r.getEnvironment().ims+"/ims/jumptoken/v1",data:f({bearer_token:s,target_client_id:o||p||"CreativeCloudWeb1",target_redirect_uri:e,target_scope:a||d||"openid,creative_cloud,read_organizations,additional_info.screen_name,additional_info.secondary_email",target_response_type:p?"code":"token"}),headers:{"Content-type":"application/x-www-form-urlencoded"}}).success(function(e,t){n.launchInBrowser(e.jump)}).error(function(t,s){i.log("error "+
s+": jumpTo "+e+", result=\n"+(typeof t=="string"?t:JSON.stringify(t))),s===401&&!c?(r.clearAccessToken(),l(e,!0,o,a,!0)):n.launchInBrowser(e)})}else n.launchInBrowser(e)},function(t){n.launchInBrowser(e)})}}function c(e){var t=e.collection,n;t.cloudId===s.CREATIVE_CLOUD_ID?n=r.getEnvironment().ccwebHost:n=t.cloudInfo.viewURI;if(!n)return undefined;var i=s.CCWEB_LIBRARIES_URL;return i=i.replace(/ZZZZ/,n),i=i.replace(/YYYY/,e.id),i}function h(e){var t=e.library.collection,n;t.cloudId===s.CREATIVE_CLOUD_ID?
n=r.getEnvironment().ccwebHost:n=t.cloudInfo.viewURI;if(!n)return undefined;var i=s.CCWEB_ELEMENT_URL;return i=i.replace(/ZZZZ/,n),i=i.replace(/YYYY/,e.library.id),i=i.replace(/XXXX/,e.id),i}function p(e){if(!e)return"";var t=[];return Object.keys(e).forEach(function(n){t.push(n+"="+e[n])}),t.length===0?"":"?"+t.join("&")}function d(e){var t=n.getLocale().substring(3).toLowerCase();return s.AVAILABLE_HELP_LANGUAGES[t]?t="_"+t:t="",e+t}function v(){var e=r.getEnvironment().clientId+"%2F"+a.getPluginVersion
(),t=n.getLocale();if(!t||t.length===0)t="en-US";return{"x-product":e,locale:t,sso_inbound:1}}function m(t){return e.isDev?"https://wiki.corp.adobe.com/display/ccprojects/Desktop+configuration+for+CC+Library+users":d(t)}this.openLibraryURL=function(e){if(e){o.reportPanelEvent("viewLibraryOnWeb",{libraryID:e.id});var t=c(e);l(t,!0)}},this.openElementURL=function(e,t,n){if(e){o.reportPanelEvent("viewElementOnWeb",{libraryID:e.library.id,elementID:e.id});var r=n||{};t&&(r.section=t);var i=h(e)+p(r);
l(i,!0)}},this.openCollaborateURL=function(e){if(e){o.reportPanelEvent("shareLibraryInitiate",{libraryID:e.id});var t=c(e)+p({dialog:"collaborate"});l(t,!0)}},this.openHelpURL=function(){o.reportPanelEvent("showTutorial");var e=d(s.LEARN_MORE_URL_ROOT);l(e,!1)},this.openServiceErrorURL=function(e){o.reportPanelEvent("serviceErrorHelp");var t=d(s.SERVICE_ERROR_URL_ROOT);e&&(t=t+"#"+e),l(t,!1)},this.openInstallCCAppURL=function(){o.reportPanelEvent("installCCApp");var e=m(s.INSTALL_CC_APP_URL_ROOT)
;l(e,!1)},this.openUpdateCCAppURL=function(){o.reportPanelEvent("updateCCApp");var e=m(s.UPDATE_CC_APP_URL_ROOT);l(e,!1)},this.openUpdateCCLibrariesURL=function(){o.reportPanelEvent("updateCCLibraries");var e=m(s.UPDATE_CC_LIBRARIES_URL_ROOT);l(e,!1)},this.openShareLibraryLinkURL=function(e){if(e){o.reportShareLibraryLink(e);var t=c(e)+p({dialog:"share"});l(t,!0)}},this.openShareElementLinkURL=function(e){if(e){o.reportShareElementLink(e);var t=h(e)+p({dialog:"share"});l(t,!0)}},this.getStockURL=
function(){return"https://"+r.getEnvironment().stockWebHost},this.launchStockSite=function(){var e=this.getStockURL()+p(v());l(e,!0,s.STOCK_CLIENT_ID,s.STOCK_TARGET_SCOPE)},this.launchLicenseURL=function(e){l(e,!1)},this.launchFindSimilarURL=function(e){var t=v();t.similia_id=e;var n=this.getStockURL()+s.STOCK_SEARCH_PATH+p(t);l(n,!0,s.STOCK_CLIENT_ID,s.STOCK_TARGET_SCOPE),o.reportPanelEvent("stockFindSimilar")},this.launchSearchStockURL=function(e,t){var n=v();n.k=encodeURIComponent(e),t&&s.STOCK_SEARCH_OPTIONS
.forEach(function(e){if(t[e.param]){var r=encodeURIComponent("filters[content_type:"+e.param+"]");n[r]=1}});var r=this.getStockURL()+s.STOCK_SEARCH_PATH+p(n);l(r,!0,s.STOCK_CLIENT_ID,s.STOCK_TARGET_SCOPE),o.reportPanelEvent("stockViewMoreResults")},this.launchStockAssetURL=function(e){var t=this.getStockURL()+"/"+e+p(v());l(t,!0,s.STOCK_CLIENT_ID,s.STOCK_TARGET_SCOPE),o.reportPanelEvent("stockViewResult")}}];t.attach=function(e){r.module(e).service("linkUtils",i)}}),define("services/utils/listenerUtils"
,["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["digestUtils",function(e){this.addListenerManager=function(t,n){function i(e){if(r[e]){var t=Array.prototype.slice.call(arguments,1),n=[];r[e].forEach(function(e){e.apply(e,t),e.isOneTime||n.push(e)}),r[e]=n}}function s(){var t=arguments;i.apply(i,t),e.triggerDigest()}if(!t||!n)throw new Error("Invalid arguments");var r={};return n.forEach(function(e){r[e]=[]}),t.addListener=function(e,t,n){if(!r[e])throw new 
Error("Invalid listener event: "+e);r[e].push(t),n&&(t.isOneTime=!0)},t.removeListener=function(e,t){if(!r[e])throw new Error("Invalid listener event: "+e);var n=r[e].indexOf(t);n!==-1&&r[e].splice(n,1)},t.addScopedListener=function(e,n,r,i){t.addListener(n,r,i),e.$on("$destroy",function(){t.removeListener(n,r)})},{notify:i,notifyNonAngular:s}}}];t.attach=function(e){r.module(e).service("listenerUtils",i)}}),define("services/utils/lockUtils",["require","exports","module","angular"],function(e,t,n
){"use strict";var r=e("angular"),i=["$rootScope","$window",function(e,t){var n={};this.obtainLock=function(e,t,r){var i=n[e];i||(i={pendingContinuations:[],isLocked:!1},n[e]=i),i.isLocked?i.pendingContinuations.push({continuation:t,thisObject:r}):(i.isLocked=!0,t.apply(r,[null]))},this.releaseLock=function(e){var t=n[e];if(t)if(t.pendingContinuations.length>0){var r=t.pendingContinuations.shift();setTimeout(function(){r.continuation.apply(r.thisObject,[null])})}else delete n[e]}}];t.attach=function(
e){r.module(e).service("lockUtils",i)}}),define("services/utils/mediator",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$rootScope",function(e){function t(t){var n=[];this.destroy=function(){n.forEach(function(e){e()}),n=[]},t.$on("$destroy",this.destroy),this.emit=function(){e.$emit.apply(e,arguments)},this.on=function(t,r){n.push(e.$on(t,r))},this.onOnce=function(t,n){var r,i=function(){r(),n.apply(null,arguments)};r=e.$on(t,i)},this.bind=function(
r,i){i=i||r,n.push(e.$watch(r,function(e){t[i]=e}))},this.share=function(r,i){i=i||r;var s=t.$watch(r,function(t){e[i]=t});n.push(function(){s(),delete e[i]})}}this.register=function(e){return new t(e)},this.emit=function(){e.$emit.apply(e,arguments)}}];t.attach=function(e){r.module(e).service("mediator",i)}}),define("services/utils/recursionHelper",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$compile","$document",function(e){this.serviceName="recursionHelper"
,this.compile=function(t){var n=t.clone();t.contents().remove();var r;return function(t,i){r||(r=e(n.contents())),r(t,function(e){i.empty&&i.empty(),i.append(e)})}}}];t.attach=function(e){r.module(e).service("recursionHelper",i)}}),define("services/utils/serializationUtils",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$q",function(e){this.exportRepresentationData=function(t){var n={id:t.id,type:t.type,relationship:t.relationship,isExternalLink:t.isExternalLink
,width:t.width,height:t.height,isFullSize:t.isFullSize,contentLength:t.contentLength},r=t.getValues();return r.length>0&&(n.values=r),t.isExternalLink?(n.externalLinkURL=t.getContentURL(),e.when(n)):t.getContentPath().then(function(e){return n.contentPath=e,n})},this.exportElementData=function(t){var n={created:t.created,id:t.id,modified:t.modified,name:t.name,type:t.type,representations:[]},r=[];return t.representations.forEach(function(e,t){var i=this.exportRepresentationData(e).then(function(e
){n.representations[t]=e});r.push(i)},this),e.all(r).then(function(){return n})},this.exportLibraryData=function(t){var n={created:t.created,id:t.id,modified:t.modified,name:t.name,elements:[]},r=[];return t.elements.forEach(function(e,t){var i=this.exportElementData(e).then(function(e){n.elements[t]=e});r.push(i)},this),e.all(r).then(function(){return n})},this.importRepresentationData=function(t,n,r){var i=t.createRepresentation(n.type,n.relationship);n.values&&n.values.forEach(function(e){i.setValue
(e.namespace,e.key,e.value)});var s;return n.contentPath?s=i.setContentFromPath((r||"")+n.contentPath,!1).then(function(){return n.height&&(i.height=n.height),n.width&&(i.width=n.width),n.isFullSize&&(i.isFullSize=n.isFullSize),i}):n.externalLinkURL&&(s=i.setContentFromURL(!0,n.externalLinkURL,{}).then(function(){n.height&&(i.height=n.height),n.width&&(i.width=n.width),n.isFullSize&&(i.isFullSize=n.isFullSize),n.contentLength&&(i.contentLength=n.contentLength)})),s||e.when(i)},this.importElementData=
function(t,n,r){var i=t.createElement(n.name,n.type),s=[];return n.representations.forEach(function(e){if(e.relationship==="primary"){var t=this.importRepresentationData(i,e,r);s.push(t)}},this),n.representations.forEach(function(e){if(e.relationship!=="primary"){var t=this.importRepresentationData(i,e,r);s.push(t)}},this),e.all(s).then(function(){return i.endOperation(),i},function(){t.removeElement(i,!0)})},this.importLibraryData=function(t,n,r){var i=t.createLibrary(n.name),s=[];return n.elements
.forEach(function(e){var t=this.importElementData(i,e,r);s.push(t)},this),e.all(s).then(function(){return i})}}];t.attach=function(e){r.module(e).service("serializationUtils",i)}}),define("services/utils/tether",["require","exports","tether"],function(e,t,n){"use strict";var r=["$compile","$rootScope","$window","$animate","$controller","$timeout","$q","$http","$templateCache","digestUtils",function(e,t,r,i,s,o,u,a,f,l){return function(o){function w(){b=new n(d({element:v[0]},o.tether))}function x
(){return b&&b.enabled}function T(){if(o.element){v.addClass("hidden");return}x()?i.leave(v,function(){v=null}):v=null,m&&(m.$destroy(),m=undefined)}function N(){b&&b.destroy(),v&&!o.element?i.leave(v):v.addClass("hidden"),l.triggerDigest()}function C(e){var t=e.target;if(!v||y===v[0])return;while(t.parentElement!==null){if(t.parentElement===v[0])return;t=t.parentElement}return g.off("click",C),N()}function k(t,n,u){u&&(m&&(m.$destroy(),m=undefined),v=null);if(!v){o.element?v=o.element.html(t.trim
()):v=angular.element(t.trim()),m=m||p.$new(),n&&(m.$locals=n);var a;o.controller&&(a=s(c,{$scope:m})),h&&(m[h]=a),e(v)(m)}else n&&(m.$locals=n);return r.setTimeout(function(){o.element?v.removeClass("hidden"):i.enter(v,g),w(),b.position(),o.leaveOnBlur&&g.on("click",C),l.triggerDigest()}),v}function L(e,t){var n=u.defer();return E.then(function(r){n.resolve(k(r,e,t))}),n.promise}function A(){v&&(i.move(v,g),w())}if(!(!o.template^!o.templateUrl))throw new Error("Expected one of either `template` or `templateUrl`"
);o.tether=o.tether||{};var c=o.controller||angular.noop,h=o.controllerAs,p=o.parentScope||t,d=angular.extend,v=null,m,g=angular.element(r.document.body),y=o.tether.target||g;o.tether.target=y;var b,E;if(o.template){var S=u.defer();S.resolve(f.get(o.template)||o.template),E=S.promise}else E=a.get(o.templateUrl,{cache:f}).then(function(e){return e.data});return{enter:L,leave:N,destroy:T,position:A,isActive:x,tether:E,config:o.tether}}}];t.attach=function(e){angular.module(e).factory("Tether",r)}})
,define("services/utils/unitUtils",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$translate",function(e){this.serviceName="unitUtils",this.bytesToString=function(t,n){var r="B";t>1024&&(t/=1024,r="KB",t>1024&&(t/=1024,r="MB",t>1024&&(t/=1024,r="GB")));var i=Math.pow(10,n||0);return t=Math.round(t*i)/i,e.instant("DL_FILESIZE_"+r,{size:t})},this.msToString=function(t){var n=Math.round(t/1e3),r=Math.floor(n/60);n-=r*60,n<10&&(n="0"+n);if(r){var i=Math.floor
(r/60);return r-=i*60,i?(r<10&&(r="0"+r),e.instant("DL_DURATION_HMS",{hours:i,minutes:r,seconds:n})):e.instant("DL_DURATION_MS",{minutes:r,seconds:n})}return e.instant("DL_DURATION_S",{seconds:n})},this.fpsToString=function(t){return e.instant("DL_FRAMERATE",{framerate:t})},this.dimensionsToString=function(t,n){return e.instant("DL_DIMENSIONS",{width:t,height:n})}}];t.attach=function(e){r.module(e).service("unitUtils",i)}}),define("services/utils/main",["require","exports","module","./adobeStockLicenseUtils"
,"./adobeStockUpdateUtils","./adobeStockUtils","./apiHttpInterceptor","./colorUtils","./debugLog","./debugUtils","./digestUtils","./editorAppUtils","./fileUtils","./importExport","./linkUtils","./listenerUtils","./lockUtils","./mediator","./recursionHelper","./serializationUtils","./tether","./unitUtils"],function(e,t,n){"use strict";function r(t){e("./adobeStockLicenseUtils").attach(t),e("./adobeStockUpdateUtils").attach(t),e("./adobeStockUtils").attach(t),e("./apiHttpInterceptor").attach(t),e("./colorUtils"
).attach(t),e("./debugLog").attach(t),e("./debugUtils").attach(t),e("./digestUtils").attach(t),e("./editorAppUtils").attach(t),e("./fileUtils").attach(t),e("./importExport").attach(t),e("./linkUtils").attach(t),e("./listenerUtils").attach(t),e("./lockUtils").attach(t),e("./mediator").attach(t),e("./recursionHelper").attach(t),e("./serializationUtils").attach(t),e("./tether").attach(t),e("./unitUtils").attach(t)}return{attach:r}}),define("services/main",["require","exports","module","./config/main"
,"./designlibrary/main","./external/main","./interface/main","./managers/main","./utils/main"],function(e,t,n){"use strict";t.attach=function(t){e("./config/main").attach(t),e("./designlibrary/main").attach(t),e("./external/main").attach(t),e("./interface/main").attach(t),e("./managers/main").attach(t),e("./utils/main").attach(t)}}),define("directives/core/dragDrop",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular");window.jQuery&&!window.jQuery.event.props.dataTransfer&&
window.jQuery.event.props.push("dataTransfer");var i=["$parse","mediator","versionManager","configuration","designLibraryCEPEventHandlers","designLibrarySelection","designLibraryElements","digestUtils",function(e,t,n,i,s,o,u,a){return{restrict:"A",link:function(f,l,c){var h=c.dragChannel?c.dragChannel.split(" "):["defaultchannel"],p=c.onDropSuccess&&e(c.onDropSuccess),d=c.onDrag&&e(c.onDrag),v=t.register(f),m=function(t){t.stopPropagation(),s.setDraggedElements(undefined);if(c.dragData){var p=e(c
.dragData)(f);p&&(t.dataTransfer.setData("Text",r.toJson(p)),h.forEach(function(e){v.emit("ANGULAR_DRAG_START_"+e,t)}),a.triggerDigest())}var m=o.getSelection();m.length<=1&&(m=[e(c.dragComponent)(f)]);var g=[],y=[];m.forEach(function(e){if(u.isDraggable(e)){var t=u.getDragData(e);if(t){var n=t.usedRepresentationForAnalytics;delete t.usedRepresentationForAnalytics,y.push({element:e,usedRepresentation:n}),g.push(t)}}}),s.setDraggedElements(y);var b={source:i.DRAGDROP_SOURCE,version:n.getPluginVersion
(),assetList:g};t.dataTransfer.setData(i.DRAGDROP_ID,JSON.stringify(b)),d&&(d(f,{$event:t}),a.triggerDigest());if(t.dataTransfer.setDragImage){var w=l.context;t.dataTransfer.setDragImage(w,-10,-10)}i.currentProduct.onDragStartHandler&&i.currentProduct.onDragStartHandler(t,g)},g=function(e){e.stopPropagation(),p&&p(),a.triggerDigest()};l.on("dragstart",m),l.on("dragend",g),f.$on("disableDragging",function(){l.attr("draggable",!1)}),f.$on("enableDragging",function(){l.attr("draggable",c.uiDraggable
)}),f.$watch(c.uiDraggable,function(e){e?l.attr("draggable",!0):l.attr("draggable",!1)}),f.$on("$destroy",function(){l.off("dragstart",m),l.off("dragend",g),m=undefined,g=undefined,l=undefined})}}}],s=["$parse","$interval","mediator","digestUtils",function(e,t,n,i){return{restrict:"A",link:function(t,s,o){function h(e){var t=s.context,n=e;while(n){if(n===t)return!0;n=n.parentNode}}function d(e){var t=e.target||e.srcElement,n=p.leftTargets.indexOf(t);n!==-1?p.leftTargets.splice(n,1):p.targets.push
(t)}function v(e){var t=e.target||e.srcElement,n=p.targets.indexOf(t);n!==-1?p.targets.splice(n,1):p.leftTargets.push(t)}function m(){p.targets=[],p.leftTargets=[]}function g(){return p.targets.length===1&&p.leftTargets.length===0}function y(){return p.targets.length===0&&p.leftTargets.length===0}function b(){p.draggedOver=!0}function S(e){function n(n){n.preventDefault(),n.dataTransfer.dropEffect="copy",b(),a&&(a(t,{$event:n,channel:e}),i.triggerDigest())}function o(n){d(n),g()&&(n.preventDefault
(),f&&(f(t,{$event:n,channel:e}),i.triggerDigest()),s.addClass("drag-hovering"))}function u(n){v(n),y()&&(n.preventDefault(),l&&(l(t,{$event:n,channel:e}),i.triggerDigest()),s.removeClass("drag-hovering"))}function h(n){n.preventDefault(),m(),s.removeClass("drag-hovering");if(n.originalEvent.handled){l&&(l(t,{$event:n,channel:e}),i.triggerDigest());return}if(c){try{var o=r.fromJson(n.dataTransfer.getData("Text"));c(t,{$data:o,$event:n,channel:e}),i.triggerDigest()}catch(u){l&&(l(t,{$event:n,channel
:e}),i.triggerDigest())}n.originalEvent.handled=!0}}return{onDragOver:n,onDragEnter:o,onDragLeave:u,onDrop:h}}var u=o.dropChannel?o.dropChannel.split(" "):["defaultchannel"],a=o.onDragOver&&e(o.onDragOver),f=o.onDragEnter&&e(o.onDragEnter),l=o.onDragLeave&&e(o.onDragLeave),c=o.onDrop&&e(o.onDrop),p={draggedOver:!1,targets:[],leftTargets:[]},w=!0;t.$watch(o.uiDroppable,function(e){w=e});var E=n.register(t);u.forEach(function(e){var n=S(e),r=function(){s.off("dragover",n.onDragOver),s.off("dragenter"
,n.onDragEnter),s.off("dragleave",n.onDragLeave),s.off("drop",n.onDrop)};E.on("ANGULAR_DRAG_START_"+e,function(e,t){w&&!h(t.target)&&(s.on("dragover",n.onDragOver),s.on("dragenter",n.onDragEnter),s.on("dragleave",n.onDragLeave),s.on("drop",n.onDrop))}),E.on("ANGULAR_DRAG_END_"+e,function(n){r(),m(),s.removeClass("drag-hovering"),l&&l(t,{$event:n,channel:e})}),t.$on("$destroy",r)})}}}];t.attach=function(e){r.module(e).directive("uiDraggable",i),r.module(e).directive("uiDroppable",s)}}),define("directives/core/dropFiles"
,["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular");window.addEventListener("dragover",function(e){e.preventDefault()},!1),window.addEventListener("drop",function(e){e.preventDefault()},!1);var i=["$parse","configuration",function(e,t){return{restrict:"A",scope:{dropTypes:"@",dropSources:"@",dropFolder:"=",dropFile:"=",onDragEnter:"&",onDragLeave:"&",onDrop:"&",onDragOver:"&"},link:function(n,r,i){function u(e){var t=e.target||e.srcElement,n=o.indexOf(t);n!==-1?
o.splice(n,1):s.push(t)}function a(e){var t=e.target||e.srcElement,n=s.indexOf(t);n!==-1?s.splice(n,1):o.push(t)}function f(){s=[],o=[]}function l(){return s.length===1&&o.length===0}function c(){return s.length===0&&o.length===0}function h(r){var i=e(n.dropTypes)(n)||["Files","application/x-moz-file","public.file-url"],s=e(n.dropSources)(n)||undefined,o=r.originalEvent.dataTransfer.types,u=r.originalEvent.dataTransfer.files,a=!0,f={};u&&u.length>0&&(!i||i.indexOf("Files")>-1)&&(f.files=u);if(s){
a=!1;try{var l=r.originalEvent.dataTransfer.getData(t.DRAGDROP_ID),c=l&&JSON.parse(l);a=s.indexOf(c.source)>-1,f.data=a?c:undefined}catch(h){}}var p=!1;if(o){var d;for(d=0;d<i.length;d++)if(o.indexOf(i[d])>-1){p=!0;break}}if(p&&(a||f.files))return f}function p(e){var t=h(e);t&&(e.preventDefault(),e.dataTransfer.dropEffect="copy",n.onDragOver&&n.onDragOver({$data:t}))}function d(e){var t=h(e);t&&(u(e),e.preventDefault(),l()&&(n.$apply(function(){n.onDragEnter&&n.onDragEnter({$data:t})}),r.addClass
("drag-hovering")))}function v(e){var t=h(e);t&&(a(e),e.preventDefault(),c()&&(n.$apply(function(){n.onDragLeave&&n.onDragLeave({$data:t})}),r.removeClass("drag-hovering")))}function m(e){var t=h(e);if(t){e.preventDefault(),f(),r.removeClass("drag-hovering");if(e.originalEvent.handled){n.$apply(function(){n.onDragLeave&&n.onDragLeave({$data:t})});return}n.$apply(function(){n.onDrop&&n.onDrop({$data:t})}),e.originalEvent.handled=!0}}var s=[],o=[];r.on("dragenter",d),r.on("dragover",p),r.on("dragleave"
,v),r.on("drop",m),n.$on("$destroy",function(){r.off("dragenter",d),r.off("dragover",p),r.off("dragleave",v),r.off("drop",m)})}}}];t.attach=function(e){r.module(e).directive("edgeccDropFiles",i)}}),define("directives/core/focus",["require","exports","module","angular"],function(e,t,n){"use strict";function i(e,t,n){var r=t.split("."),i=e;if(r.length>1){var s;for(s=0;s<r.length-1;s++)i[r[s]]=i[r[s]]||{},i=i[r[s]]}i[r[r.length-1]]=n}var r=e("angular"),s=["$parse","digestUtils","$window",function(e,
t,n){return{restrict:"A",link:function(e,t,r){var s=r.edgeccSetFocus||"setFocus";i(e,s,function(e,r,i){var s=i?250:0;n.setTimeout(function(){var n=t.get(0);e?(n.focus(),r&&n.select()):n.blur()},s)})}}}];t.attach=function(e){r.module(e).directive("edgeccSetFocus",s)}}),define("directives/core/hover",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$parse",function(e){return{restrict:"A",link:function(t,n,r){var i=r.edgeccHover||"hover",s=r.onHoverEnter&&
e(r.onHoverEnter),o=r.onHoverLeave&&e(r.onHoverLeave),u=function(e){n.addClass(i),s&&s(t,{})},a=function(e){n.removeClass(i),o&&o(t,{})};n.on("mouseenter",u),n.on("mouseleave",a),t.$on("$destroy",function(){n.off("mouseenter",u),n.off("mouseleave",a)})}}}];t.attach=function(e){r.module(e).directive("edgeccHover",i)}}),define("directives/core/isEventTarget",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=[function(){return{restrict:"A",link:function(e,t,n
){function r(e,t){var n=e,r=t;while(r){if(r===n)return!0;r=r.parentNode}return!1}var i=n.isEventTarget||"isEventTarget";e[i]=function(e){return r(t.context,e.target)}}}}];t.attach=function(e){r.module(e).directive("isEventTarget",i)}}),define("directives/core/measureSize",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=[function(){return{restrict:"A",link:function(e,t,n){var r=n.edgeccMeasureSize||"measureSize";e[r]=function(e){return e?t.parent().get(0)
.getBoundingClientRect():t.get(0).getBoundingClientRect()}}}}];t.attach=function(e){r.module(e).directive("edgeccMeasureSize",i)}}),define("directives/core/scrolling",["require","exports","module","angular"],function(e,t,n){"use strict";function i(e,t,n){var r=t.split("."),i=e;if(r.length>1){var s;for(s=0;s<r.length-1;s++)i[r[s]]=i[r[s]]||{},i=i[r[s]]}i[r[r.length-1]]=n}var r=e("angular"),s=["$window","digestUtils",function(e,t){return{restrict:"A",link:function(n,r,s){var o=s.edgeccScrollToBottom||"scrollToBottom"
;i(n,o,function(){var n=r.get(0);e.setTimeout(function(){n.scrollTop=n.scrollHeight,t.triggerDigest()})})}}}],o=[function(){return{restrict:"A",link:function(e,t,n){var r=n.edgeccGetScrollPosition||"getScrollPosition";i(e,r,function(){var e=t.get(0);if(e.scrollHeight>e.clientHeight)return e.scrollTop/(e.scrollHeight-e.clientHeight)})}}}];t.attach=function(e){r.module(e).directive("edgeccScrollToBottom",s),r.module(e).directive("edgeccGetScrollPosition",o)}}),define("directives/core/nativeContextMenu"
,["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$parse","designLibraryContextMenu","designLibraryStockContextMenu","designLibraryViewState","configuration",function(e,t,n,r,i){return{restrict:"A",link:function(s,o,u){var a=u.nativeContextMenu&&e(u.nativeContextMenu),f=u.contextMenuSubElement&&e(u.contextMenuSubElement),l=function(o){if(i.CONTEXT_MENUS_ENABLED===!1)return;o.stopPropagation();if(r.isStockSearchMode()){var l=a&&a(s),c=u.contextMenuSaveCallback&&
e(u.contextMenuSaveCallback)(s);n.showContextMenu(l,c,o.currentTarget)}else{var h=a&&a(s),p=h&&h.library,d=f&&f(s);t.showContextMenu(p,h,d)}};o.on("contextmenu",l),s.$on("$destroy",function(){o.off("contextmenu",l),l=undefined,o=undefined})}}}];t.attach=function(e){r.module(e).directive("nativeContextMenu",i)}}),define("directives/core/onimgload",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=[function(){return{restrict:"A",link:function(e,t,n){t.bind("load"
,function(t){e.$eval(n.onimgload,{img:t.target})})}}}];t.attach=function(e){r.module(e).directive("onimgload",i)}}),define("directives/core/onsearch",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$parse",function(e){return{restrict:"A",link:function(t,n,r){var i=r.onSearch&&e(r.onSearch),s=function(e){i&&i(t,{})};n.on("search",s),t.$on("$destroy",function(){n.off("search",s)})}}}];t.attach=function(e){r.module(e).directive("onSearch",i)}}),define("directives/core/main"
,["require","exports","module","./dragDrop","./dropFiles","./focus","./hover","./isEventTarget","./measureSize","./scrolling","./nativeContextMenu","./onimgload","./onsearch"],function(e,t,n){"use strict";t.attach=function(t){e("./dragDrop").attach(t),e("./dropFiles").attach(t),e("./focus").attach(t),e("./hover").attach(t),e("./isEventTarget").attach(t),e("./measureSize").attach(t),e("./scrolling").attach(t),e("./nativeContextMenu").attach(t),e("./onimgload").attach(t),e("./onsearch").attach(t)}}
),define("directives/designlibrary/designLibrary",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=[function(){return{restrict:"E",templateUrl:"directives/designlibrary/templates/designLibrary.tmpl.html",replace:!0,scope:{},controller:["$scope","$translate","metrics","designLibraryManager","designLibraryViewState","designLibraryFlyoutMenu","designLibrarySelection","adobeStockLicenseUtils","$window",function(e,t,n,r,i,s,o,u,a){e.sortExpression="+created",e
.selectedLibraryChanged=function(){e.library&&(n.reportPanelEvent("loadLibrary",{libraryID:e.library.id}),r.setCurrentLibrary(e.library))},r.addScopedListener(e,"libraryList",function(){e.libraries=r.getLibraries()}),e.libraries=r.getLibraries(),r.addScopedListener(e,"currentLibrary",function(){e.library=r.getCurrentLibrary(),e.library||e.hideDialogs()}),e.library=r.getCurrentLibrary(),s.addScopedListener(e,"createLibrary",function(){if(!r.getPrivateLibraryCollection())return;e.showCreateDialog()
}),s.addScopedListener(e,"deleteLibrary",function(){if(!e.library)return;e.showDeleteDialog()}),s.addScopedListener(e,"renameLibrary",function(){if(!e.library)return;e.showSettingsDialog()}),i.addScopedListener(e,"hideDialogs",function(){e.hideDialogs(!0)}),u.addScopedListener(e,"showStockPurchaseDialog",function(t,n,r,i,s,o){e.showStockPurchaseDialog(t,n,r,i,s,o)}),e.hideDialogs=function(t){t||i.resetMode(),e.createDialog.visible=!1,e.settingsDialog.visible=!1,e.deleteDialog.visible=!1,e.stockPurchaseDialog
.visible=!1},e.createDialog={visible:!1},e.showCreateDialog=function(){n.reportPanelEvent("createLibraryInitiate"),e.newItem={},e.hideDialogs(),e.createDialog.visible=!0,a.setTimeout(function(){e.createDialog.setFocus(!0,!1,!0)})},e.createDesignLibrary=function(){e.createDialog.visible=!1;var t=r.createLibrary(e.newItem.name);r.setCurrentLibrary(t)},e.editItem={},e.settingsDialog={visible:!1},e.showSettingsDialog=function(){e.hideDialogs(),e.settingsDialog.visible=!0,e.editItem.name=e.library.name
,a.setTimeout(function(){e.settingsDialog.setFocus(!0,!0,!0)})},e.updateDesignLibrary=function(){n.reportPanelEvent("editLibraryName",{libraryID:e.library.id}),e.hideDialogs(),e.settingsDialog.visible=!1,e.library.name=e.editItem.name},e.deleteDialog={title:"",text:"",btnTitle:"",visible:!1},e.showDeleteDialog=function(){e.hideDialogs();var n="DL_DELETE_LIBRARY",r="DL_DELETE_MESSAGE",i="DL_DELETE";e.library.collaboration==="incoming"?(n="DL_LEAVE_LIBRARY",r="DL_LEAVE_MESSAGE",i="DL_LEAVE"):e.library
.collaboration==="outgoing"?r="DL_DELETE_MESSAGE_SHARED":e.library.collection.isPublic&&(n="DL_UNFOLLOW_LIBRARY",r="DL_UNFOLLOW_MESSAGE",i="DL_UNFOLLOW"),e.deleteDialog.title=t.instant(n,e.library),e.deleteDialog.text=t.instant(r,e.library),e.deleteDialog.btnTitle=t.instant(i,e.library),e.deleteDialog.visible=!0},e.deleteCurrentLibrary=function(){e.deleteDialog.visible=!1,r.deleteCurrentLibrary()},e.stockPurchaseDialog={text:"",visible:!1},e.showStockPurchaseDialog=function(n,r,i,s,o,u){e.hideDialogs
(!0),e.stockPurchaseDialog.okCallback=i,e.stockPurchaseDialog.cancelCallback=s,e.stockPurchaseDialog.titleText=n,e.stockPurchaseDialog.text=r,e.stockPurchaseDialog.cancelText=s?t.instant("DL_CANCEL"):null,e.stockPurchaseDialog.okText=o||"DL_OK",e.stockPurchaseDialog.secondaryOkText=u,e.stockPurchaseDialog.visible=!0},e.confirmStockPurchase=function(t){e.stockPurchaseDialog.visible=!1,e.stockPurchaseDialog.okCallback&&e.stockPurchaseDialog.okCallback(t)},e.cancelStockPurchase=function(){e.stockPurchaseDialog
.visible=!1,e.stockPurchaseDialog.cancelCallback&&e.stockPurchaseDialog.cancelCallback()},e.uiState=i.getState(),e.setViewState=function(e){i.setViewState(e)},e.showRelinkOverlay=!0,e.onMouseEnter=function(){e.showRelinkOverlay=!1},e.$watch("uiState.mode",function(t){t==="relink"&&(e.showRelinkOverlay=!0),t!=="normal"&&e.hideDialogs(!0)}),e.isValidName=function(e){return e&&e.length>0?!0:!1},e.onCreateLibKeyDown=function(t,n){e.newItem.name=t.target.value,t.keyCode===13&&e.isValidName(e.newItem.name
)&&e.createDesignLibrary()},e.onRenameLibKeyDown=function(t,n){e.editItem.name=t.target.value,t.keyCode===13&&e.isValidName(e.editItem.name)&&e.updateDesignLibrary()}}]}}];t.attach=function(e){r.module(e).directive("edgeccDesignLibrary",i)}}),define("directives/designlibrary/designLibraryComponent",["require","exports","module","angular"],function(e,t,n){"use strict";function i(e,t){return"<"+e+' component="::component"></'+e+">"}var r=e("angular"),s=["$compile","$parse","designLibraryElements",function(
e,t,n){function s(t,s){if(!r[s]){var o="<div></div>",u=n.getDirective(s);u&&(o=i(u));var a=t.clone();a.html(o),r[s]=e(a.contents())}return r[s]}var r={};return{restrict:"E",scope:!1,compile:function(e,n){return function(n,r){var i=t("component")(n).type,o=s(e,i);o(n,function(e){r.append(e)})}}}}];t.attach=function(e){r.module(e).directive("edgeccDesignLibraryComponent",s)}}),define("directives/designlibrary/designLibraryContents",["require","exports","module","angular"],function(e,t,n){"use strict"
;var r=e("angular"),i=[function(){return{restrict:"E",templateUrl:"directives/designlibrary/templates/designLibraryContents.tmpl.html",replace:!1,scope:{library:"=",filteredItems:"="},controller:["$scope","$q","designLibrarySelection","designLibraryElements","configuration","designLibraryUtils","designLibraryManager","fileUtils","$translate","designLibraryDragUtils","designLibraryViewState",function(e,t,n,r,i,s,o,u,a,f,l){e.uiState=l.getState(),e.categories=r.getElementTypes(),e.clickOutsideComponent=
function(e){n.clearSelection()},e.allowedDropTypes=[i.DRAGDROP_ID],e.allowedDropSources=[i.currentProduct.config.dragDropSource],e.onLayerDrop=function(t){e.isDraggingLayer=!1,e.isDraggingLayerToLink=!1,e.dropMessage=null;if(!e.isDropAllowed)return;var n;i.currentProduct.dropHandler&&(n=i.currentProduct.dropHandler(t)),n||f.addElementsFromDropData(t)},e.onLayerDragEnter=function(t){l.resetMode(),e.isDraggingLayer=!0,e.isDraggingLayerToLink=!1,e.dropMessage=null,e.layerNames=[],e.isDropAllowed=e.library
.isWritable;if(!e.isDropAllowed){e.dropMessage=a.instant("DL_DESIGN_LIBRARY_READ_ONLY");return}e.isDropAllowed=s.canAddElement(e.library);if(!e.isDropAllowed){e.dropMessage=a.instant("DL_DESIGN_LIBRARY_HAS_LIMIT");return}var n=t.data,r=t.files;if(n){e.dropMessage=n.feedback,e.isDraggingLayerToLink=n.linked,e.isDropAllowed=n.assetList&&n.assetList.length>0,e.isDropAllowed&&(n.assetList[0].hasOwnProperty("name")?e.layerNames.push(n.assetList[0].name):s.getLayerName(e.library).then(function(t){e.layerNames
.push(t)}));return}if(r){var i=0,o=3,f=0;for(i=0;i<r.length;i++)u.isUploadableFile(r[i].name)&&(f++,e.layerNames.length<o&&e.layerNames.push(r[i].name));f>o&&(e.layerNames[o-1]=a.instant("DL_DROP_MORE_FILES",{count:f-o+1}));return}e.isDraggingLayer=!1},e.onLayerDragLeave=function(t){e.isDraggingLayer=!1},e.deleteCurrentLibrary=function(){o.deleteCurrentLibrary()},e.reuploadCurrentLibrary=function(){e.library.rebindToServer()}}]}}];t.attach=function(e){r.module(e).directive("edgeccDesignLibraryContents"
,i)}}),define("directives/designlibrary/designLibraryEditableName",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=function(e){var t="directives/designlibrary/templates/designLibraryEditable"+e+"Name.tmpl.html";return[function(){return{restrict:"E",replace:!0,templateUrl:t,scope:{component:"=",selected:"=",defaultInformation:"=",allowBlankName:"="},controller:["$scope","$rootScope","$timeout","designLibraryUtils","mediator",function(e,t,n,r,i){e.editState=
{active:!1};var s=function(){e.$emit("disableDragging"),e.editState.active=!0,e.editState.name=e.component.name,n(function(){e.editState.setFocus(!0,!0)})};e.startEditName=function(t){t.stopPropagation();if(!e.component.library.isWritable)return;!t.metaKey&&!t.ctrlKey&&!t.shiftKey&&(e.editState.active||s())},e.finishEditName=function(t){e.$emit("enableDragging"),e.editState.active&&(e.editState.active=!1,!t&&e.component.name!==e.editState.name&&(e.editState.name.trim()!==""||e.allowBlankName)&&n(
function(){e.component.name=e.editState.name}))},e.handleKeyDown=function(t){return e.editState.name=t.target.value,t.keyCode===13?e.finishEditName():t.keyCode===27&&e.finishEditName(!0),!0};var o=t.$watch("globalHovering",function(t){e.globalHovering=t});e.$on("$destroy",function(){o()});var u=function(t,n){n===e.component&&s()},a=i.register(e);a.on("dlItemRenameRequest",u)}]}}]};t.attach=function(e){r.module(e).directive("designLibraryEditableGridName",i("Grid")),r.module(e).directive("designLibraryEditableListName"
,i("List"))}}),define("directives/designlibrary/designLibraryFooter",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=function(){return{restrict:"E",templateUrl:"directives/designlibrary/templates/designLibraryFooter.tmpl.html",replace:!0,scope:{library:"="},controller:["$scope","$window","$timeout","designLibrarySelection","designLibraryElements","designLibraryStatus","designLibraryManager","designLibraryUtils","designLibraryViewState","layerSelectionManager"
,"coreSyncManager","csInterface","configuration","linkUtils","designLibraryCEPEventEmitters",function(e,t,n,i,s,o,u,a,f,l,c,h,p,d,v){function m(){r.isFunction(p.currentProduct.getAddDocContentOperation)?e.addDocContentOperation=p.currentProduct.getAddDocContentOperation():e.addDocContentOperation=undefined}function y(){var t=l.getLayerInfo();e.layerOperations=s.getAddOperations(t,e.library),t?(e.layerName=t.fullName||"Selected layer",e.layerName.length>20&&(e.layerName=e.layerName.substring(0,19)+"..."
)):delete e.layerName,g()}e.uiState=f.getState(),e.doDeleteItems=function(e){var t=i.getSelection();a.deleteElements(t),i.clearSelection()},e.deleteIcon=p.currentProduct.config.deleteIcon||"newdelete",e.doLaunchStockSite=function(e){d.launchStockSite()},r.isFunction(p.currentProduct.getAddDocContentOperation)&&(l.addScopedListener(e,"layerSelectionChanged",m),u.addScopedListener(e,"privateCollection",m),m()),e.doAddOperation=function(t){e.library&&t.apply(e.library,"addButton").then(function(e){f
.resetMode(),i.setSelection(e,!0)})};var g=function(t){var n=i.getSelection();e.hasSelection=n.length>0,e.applyOperations=s.getApplyOperations(n,e.library)};i.addScopedListener(e,"selectionChanged",g),g(),l.addScopedListener(e,"layerSelectionChanged",y),e.$watch("library.elements.length",y),y(),e.status=o.getStatus(),e.tooltipData={status:e.status},e.$watch("status.errorType",function(t){t?e.errorMessage=o.getFooterErrorMessage(e.status):delete e.errorMessage,e.tooltipData.errorMessage=e.errorMessage
}),e.syncStatus={visible:!1},e.onStatusClick=function(){e.status.state==="error"&&e.status.errorType==="syncDisabled"&&e.showCCAppWarningMessage()},e.showNetworkStatus=function(){if(e.status.state==="error"&&e.status.errorType==="syncDisabled")return;e.syncStatus.visible=!0,u.syncingEnabled()&&u.sync()},e.hideNetworkStatus=function(){e.syncStatus.visible=!1};var b,w=function(){e.ccAppWarning.visible&&(t.removeEventListener("click",b,!0),n(function(){e.ccAppWarning.visible=!1}))};b=function(t){e.isEventTargetCCAppWarning
(t)||w()},e.ccAppWarning={visible:!1},e.enableCCApp=function(){w(),c.launchCCApp(),u.sync()},e.showCCAppWarningMessage=function(){e.ccAppWarning.visible||(t.addEventListener("click",b,!0),e.ccAppWarning.visible=!0)},e.hideCCAppWarningMessage=function(){w()},e.isWindowsOS=h.isWindowsOS(),e.allowedDropTypes=[p.DRAGDROP_ID],e.allowedDropSources=[p.DRAGDROP_SOURCE],e.onDropDone=function(t){e.library&&e.library.isWritable&&e.doDeleteItems()},e.relink=function(){var e=i.getSelection();e.length>0&&(v.sendElementChosen
(e[0]),f.resetMode())},e.cancelRelink=function(){v.elementChooseCancelled(),f.resetMode()}}]}};t.attach=function(e){r.module(e).directive("edgeccDlFooter",i)}}),define("directives/designlibrary/designLibraryShowMore",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=function(){return{restrict:"E",replace:!1,templateUrl:"directives/designlibrary/templates/designLibraryShowMore.tmpl.html",scope:{elementType:"="},controller:["$scope","configuration","designLibraryElements"
,"designLibraryViewState",function(e,t,n,r){function i(e){var t=e.match(/application\/vnd\.adobe\.element\.(.*)\+dcx/);return t?t[1]:null}e.uiState=r.getState(),e.shortType=i(e.elementType.type),e.showMoreElements=function(){e.elementType.limit+=t.DEFAULT_ELEMENTS_PER_CATEGORY}}]}};t.attach=function(e){r.module(e).directive("edgeccDesignLibraryShowMore",i)}}),define("directives/designlibrary/dlCategory",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=function(
){return{restrict:"E",replace:!0,templateUrl:"directives/designlibrary/templates/dlCategory.tmpl.html",scope:{library:"="},controller:["$scope","$filter","$translate","configuration","csInterface","designLibrarySelection","designLibraryViewState","designLibraryElements","designLibraryManager","designLibraryUtils","digestUtils","metrics",function(e,t,n,r,i,s,o,u,a,f,l,c){function p(n){return t("localeOrderBy")(n,e.uiState.sortFunction,!!e.searchText)}function d(n,r){return t("searchKeyword")(n,e.searchText
,r)}function v(t,n){var r=a.getLibraryById(t),i=e.librariesModifiedTime[t],s;(!r||i!==r.modified||n)&&e.elementsByType.forEach(function(o){var a=!1;if(n)e.searchText&&(e.searchResultCount-=o.elements.length),o.elements.splice(0,o.elements.length),a=!0;else if(i){var f=null;for(s=0;s<o.elements.length;++s)f=o.elements[s],f.library.id===t&&(o.elements.splice(s--,1),e.searchText&&e.searchResultCount--,a=!0)}if(r){var l=r.getFilteredElements(o.type);e.searchText&&(l=d(l,u.getElementFilter(o.type))),l
.length>0&&(o.elements.push.apply(o.elements,l),e.searchText&&(e.searchResultCount+=l.length),a=!0),e.librariesModifiedTime[t]=r.modified}else delete e.librariesModifiedTime[t];a&&(o.elements=p(o.elements))})}function m(){if(!e.searchText||!e.searchAllLibraries)v(e.library.id,!0),l.triggerDigest()}function g(){if(e.searchText&&e.searchAllLibraries){var t=Object.keys(e.librariesModifiedTime);t.forEach(function(e){v(e)}),t=Object.keys(e.librariesModifiedTime);var n=a.getLibraries();t.length<n.length&&
n.forEach(function(e){t.indexOf(e.id)<0&&v(e.id)}),l.triggerDigest()}}function y(){var t=s.getSelection();t.forEach(function(t){e.elementsByType.some(function(e){if(e.type===t.type){if(e.elements.length>e.limit){var n=e.elements.indexOf(t);n>=e.limit&&(e.limit=n+1)}return!0}return!1})})}function b(){e.loading=!0,e.elementsByType=[],e.searchText=o.getSearchText(),e.searchAllLibraries=o.isLibrariesSearchMode(),e.searchResultCount=0,e.librariesModifiedTime={};if(!e.library)return;e.library.removeChangeListener
(m),a.getLibraryCollections().forEach(function(e){e.removeDeepChangeListener(g)}),e.searchText&&e.searchAllLibraries?a.getLibraryCollections().forEach(function(e){e.addDeepChangeListener(g)}):e.library.addChangeListener(m),e.librariesModifiedTime[e.library.id]=e.library.modified,h.forEach(function(t){var i,s=n.instant(u.getDisplayName(t));if(e.searchText){var o=u.getElementFilter(t);e.searchAllLibraries?(i=[],a.getLibraries().forEach(function(n){var r=d(n.getFilteredElements(t),o);r.length>0&&i.push
.apply(i,r),e.librariesModifiedTime[n.id]=n.modified})):i=d(e.library.getFilteredElements(t),o),e.searchResultCount+=i.length}else i=e.library.getFilteredElements(t);e.elementsByType.push({type:t,displayName:s,elements:p(i),limit:r.DEFAULT_ELEMENTS_PER_CATEGORY})}),e.searchText!==o.getSearchText()&&(e.elementsByType=[]),y()}e.uiState=o.getState();var h=u.getElementTypes();e.$watch("library",function(){e.currentLibrary&&e.currentLibrary.removeChangeListener(m),e.currentLibrary=e.library,b()}),e.$watch
("uiState.sortFunction",function(t){e.elementsByType.forEach(function(e){e.elements=p(e.elements)})}),e.showMoreElements=function(e){e.limit+=r.DEFAULT_ELEMENTS_PER_CATEGORY},e.searchAdobeStock=function(){o.setSearchType("stock")},e.$watch("uiState.mode",function(e){o.isSearchMode()||(s.clearSelection(),b())}),o.addScopedListener(e,"search",function(){if(o.isLibrarySearchMode()||o.isLibrariesSearchMode())s.clearSelection(),b(),l.triggerDigest(),c.reportPanelEvent(e.searchAllLibraries?"panelSearchAll"
:"panelSearch",{resultCount:e.searchResultCount})}),s.addScopedListener(e,"selectionChanged",function(){y()}),e.selectComponent=function(t,n){t.stopPropagation();var r=i.isWindowsOS();e.uiState.enableMultiSelect&&(!r&&t.metaKey||r&&t.ctrlKey)?s.toggleSelectedItem(n):e.uiState.enableMultiSelect&&t.shiftKey?s.setSelectionRange(n):s.setSelection(n)};var w,E;e.selectAndAddToDocument=function(t,n){e.selectComponent(t,n);if(!t.metaKey&&!t.ctrlKey&&!t.shiftKey){if(w===n.id&&E>Date.now()-500)return;w=n.id
,E=Date.now();var r=u.getOnClickApplyOperation(n,e.library);r&&r.apply()}else w=null,E=null},e.editComponent=function(e,t){e&&e.stopPropagation();var n=u.getEditOperations(t),r;n.forEach(function(e){e.onDoubleClick&&(r=e)}),r&&f.checkElementWritable(t)&&r.apply()},e.onElementDragStart=function(e){var t=s.isSelected(e);if(!t){var n=!u.isDraggable(e);s.setSelection(e,!1,n)}}}]}};t.attach=function(e){r.module(e).directive("edgeccDlCategory",i)}}),define("directives/designlibrary/dlEmpty",["require","exports"
,"module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=function(){return{restrict:"E",replace:!0,templateUrl:"directives/designlibrary/templates/dlEmpty.tmpl.html",scope:{library:"="},controller:["$scope","configuration","linkUtils","designLibraryManager","designLibraryViewState","layerSelectionManager",function(e,t,n,i,s,o){function u(){r.isFunction(t.currentProduct.getAddDocContentOperation)?e.addDocContentOperation=t.currentProduct.getAddDocContentOperation():e.addDocContentOperation=
undefined}e.howToUseInBrowser=function(){n.openHelpURL()},e.searchAdobeStock=function(){n.launchStockSite()},r.isFunction(t.currentProduct.getAddDocContentOperation)&&(o.addScopedListener(e,"layerSelectionChanged",u),i.addScopedListener(e,"privateCollection",u),u())}]}};t.attach=function(e){r.module(e).directive("edgeccDlEmpty",i)}}),define("directives/designlibrary/dlNoLibraries",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=function(){return{restrict
:"E",replace:!0,scope:{createCallback:"&"},templateUrl:"directives/designlibrary/templates/dlNoLibraries.tmpl.html",controller:["$scope","$timeout","mediator","designLibraryStatus","designLibraryManager","configuration","coreSyncManager","linkUtils","csInterface",function(e,t,n,r,i,s,o,u,a){e.appName=s.currentProduct.config.fullName,e.showAddLibraryDialog=function(){e.createCallback()},e.status=r.getStatus(),e.progressWidth="0%",e.$watch("status.syncProgress",function(t){var n=t!==undefined?t:0;e
.progressWidth=n+"%"}),e.$watch("status.errorType",function(t){t?e.errorMessage=r.getLoadingErrorMessage(e.status):delete e.errorMessage}),e.retry=function(){i.sync()},e.reconnect=function(){i.reconnectToService()},e.enableCCApp=function(){o.launchCCApp(),i.sync()},e.reload=function(){window.location.reload()},e.serviceErrorHelp=function(e){u.openServiceErrorURL(e)},e.updateCCApp=function(){u.openUpdateCCAppURL()},e.installCCApp=function(){u.openInstallCCAppURL()},e.updateCCLibraries=function(){u
.openUpdateCCLibrariesURL()}}]}};t.attach=function(e){r.module(e).directive("edgeccDlNoLibraries",i)}}),define("directives/designlibrary/dlStock",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=function(){return{restrict:"E",replace:!0,templateUrl:"directives/designlibrary/templates/dlStock.tmpl.html",scope:{library:"="},controller:["$q","$scope","$window","$translate","configuration","designLibraryManager","designLibraryViewState","designLibraryUtils","designLibraryElementUtils"
,"adobeStockRestService","adobeStockUtils","adobeStockLicenseUtils","adobeStockUpdateUtils","fileUtils","linkUtils","digestUtils","unitUtils","metrics","localSettings",function(e,t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y){function E(e){if(!e)return;var t=document.getElementById("stockContent").clientWidth,n=240,r=6,i=[],s=0,o=0;e.forEach(function(u){i.push(u),s+=Math.ceil(u.thumbnail_width*n/u.thumbnail_height);if(e.length===++o||s>t){var a=t-i.length*r,f=s>a?Math.floor(n*a/s):n;i.forEach(function(e){e
.rowHeight=f,e.rowWidth=Math.floor(e.thumbnail_width*f/e.thumbnail_height)}),i=[],s=0}})}function S(){c.showStockError(r.instant("DL_STOCK_SAVE_UNKNOWN_ERROR_TITLE"),r.instant("DL_STOCK_SAVE_UNKNOWN_ERROR")),g.reportError("stockSaveError")}function x(e,t){var n=s.getPrivateLibraryCollection();n.getTempDir(function(n,r){if(n){t();return}try{var i=r+p.getUniqueFileName()+".png",s=document.createElement("canvas");s.width=e.naturalWidth,s.height=e.naturalHeight;if(s.width===0||s.height===0)return t()
;var o=s.getContext("2d");o.drawImage(e,0,0);var u=s.toDataURL("image/png");u=u.replace(/^data:image\/(png|jpg);base64,/,""),p.writeFile(i,u,"base64",function(e){t({path:i,width:s.width,height:s.height})})}catch(a){t()}})}function T(n,r,s,o,u){var a=n.createElement(s.title,r),f=[],c=a.createRepresentation(s.content_type,"primary");l.setStockData(c,{content_id:s.id,stock_id:s.stock_id,state:i.STOCK_STATE_NOT_PURCHASED}),l.setStockSearchQuery(c,t.searchText),r===i.VIDEO_ELEMENT_TYPE&&u&&u.indexOf("Video_"
)===-1&&(u="Video_"+u);var h=s.comps[u],d=c.setContentFromURL(!0,h.url,{}).then(function(){return c.width=h.width,c.height=h.height,s.content_length&&(c.contentLength=s.content_length),r===i.VIDEO_ELEMENT_TYPE&&c.setValue("video","data",{framerate:s.framerate,duration:s.duration}),c});f.push(d);if(o&&o.path){var v=a.createRepresentation("image/png","rendition"),m=v.setContentFromPath(o.path,!1).then(function(){o.width&&(v.width=o.width),o.height&&(v.height=o.height)});f.push(m);var g=function(){p
.deleteFile(o.path)};a.setThumbnailCache(i.IMAGE_RENDITION_SIZE,o.path).then(g,g)}return e.all(f).then(function(){return a.endOperation(),a},function(){n.removeElement(a,!0)})}function N(e,t,n,r){var s,o,u=function(){delete t.saving,delete t.libraryName},f=function(){u(),S()},l=function(e){delete t.saving,delete t.libraryName,e&&a.revealElement(e),g.reportCheckoutElement(e,s,r?o?"save":"buyandsave":"savepreview")},p=t.media_type_id===4?i.VIDEO_ELEMENT_TYPE:i.IMAGE_ELEMENT_TYPE;if(r){o=t.is_licensed&&
t.is_licensed!=="",c.license({type:p},e.collection.userId,t.id,o,t.is_licensed).then(function(r){if(!r){delete t.saving,delete t.libraryName;return}s=r.cartId;var i=r.imageContents.purchase_details;T(e,p,t,n,i.license).then(l,f).then(function(){h.updateLicenses(r)})},function(){delete t.saving,delete t.libraryName});return}var d=i.STOCK_LICENSE_TYPE_STANDARD;if(p===i.VIDEO_ELEMENT_TYPE){var v=function(r){T(e,p,t,n,r).then(l,f)};c.showVideoTypeChooser(t,!1,v,u);return}T(e,p,t,n,d).then(l,f)}t.isLoading=!1
,t.uiState=o.getState(),t.requestedResultSize=i.STOCK_SEARCH_RESULT_SIZE,t.showSearchOptions=!1,t.resultsArrowStyle={},t.searchOptions=i.STOCK_SEARCH_OPTIONS,t.searchOptionValues={};var b=y.getValue("searchOptionValues");if(b){t.searchOptionValues=b;var w=!1;i.STOCK_SEARCH_OPTIONS.forEach(function(e){b[e.param]&&(w=!0)}),t.showSearchOptions=w}t.doSearch=function(e){if(!t.searchText||t.searchText.trim().length===0){t.assets=null,t.error=null;return}if(t.searchText===t.activeSearchText&&!e)return;t
.searchOpionsStyle={position:"absolute"},t.isLoading=!0,t.assets=[],t.error=null;var n=s.getPrivateLibraryCollection().userId;clearTimeout(t.searchTimeout),t.activeSearchText=t.searchText,f.searchStockAssets(n,t.activeSearchText.trim(),t.searchOptionValues,t.requestedResultSize).then(function(e){t.activeSearchText===t.searchText&&(E(e),t.assets=e||[],t.error=null,t.offline=!1,t.isLoading=!1,e.length>0&&(t.searchOpionsStyle={}),v.triggerDigest(),clearTimeout(t.searchTimeout),g.reportPanelEvent("stockSearch"
,{resultCount:t.assets.length}))},function(e,n){t.activeSearchText===t.searchText&&(t.isLoading=!1,t.error=!0,t.activeSearchText=null,v.triggerDigest(),g.reportError("stockSearchError",n))}),t.searchTimeout=setTimeout(function(){t.isLoading&&(t.isLoading=!1,t.error=!0,t.activeSearchText=null,v.triggerDigest())},i.STOCK_SEARCH_TIMEOUT)},t.addAssetToLibrary=function(e,t,n,r){if(t.saving||!u.checkLibraryWritable(e))return;if(!t.id||!t.comps||!t.content_type||!t.media_type_id){S();return}t.libraryName=
e.name,t.saving=!0,x(n,function(n){N(e,t,n,r)})},t.addToLibrary=function(e,n,r){var i=n.currentTarget.parentElement.parentElement.childNodes[1];t.addAssetToLibrary(s.getCurrentLibrary(),e,i,r)},t.getTooltip=function(e){var t=e.title+"<br/>";return e.media_type_id&&e.media_type_id<=4&&(t+=r.instant("DL_STOCK_ASSET_TOOLTIP_TYPE_"+e.media_type_id)),t},t.getDuration=function(e){return m.msToString(e.duration)},t.searchOnWeb=function(){d.launchSearchStockURL(t.searchText,t.searchOptionValues)},t.showAssetOnWeb=
function(e){d.launchStockAssetURL(e.id)},t.hoverEnter=function(e){e.active=!0,v.triggerDigest()},t.hoverLeave=function(e){delete e.active,v.triggerDigest()},o.addScopedListener(t,"search",function(){o.isStockSearchMode()&&(t.searchText=t.uiState.modeParams.text,t.doSearch())}),t.$watch("library",function(e){t.library=e});var C=function(){t.assets&&t.assets.length>0&&(E(t.assets),v.triggerDigest())};n.addEventListener("resize",C,!0),t.offline=!n.navigator.onLine;var k=function(){t.offline&&t.searchText&&
(!t.assets||t.assets.length===0)&&n.setTimeout(function(){t.doSearch()},200),t.offline=!1,v.triggerDigest()};n.addEventListener("online",k);var L=function(){t.offline=!0,v.triggerDigest()};n.addEventListener("offline",L),t.$on("$destroy",function(){n.removeEventListener("resize",C),n.removeEventListener("online",k),n.removeEventListener("offline",L)}),t.toggleSearchOptions=function(){t.showSearchOptions=!t.showSearchOptions,t.showSearchOptions?t.resultsArrowStyle={transform:"rotate(90deg)","-ms-transform"
:"rotate(90deg)","-webkit-transform":"rotate(90deg)"}:t.resultsArrowStyle={}},t.doSearchOptionChanged=function(){t.doSearch(!0),y.setValue("searchOptionValues",t.searchOptionValues)},t.getLicenseTypes=function(e){if(e.is_licensed&&e.is_licensed!=="")return e.is_licensed===i.STOCK_VIDEO_LICENSE_TYPE_HD.field?[i.STOCK_VIDEO_LICENSE_TYPE_HD.label]:[i.STOCK_VIDEO_LICENSE_TYPE_4K.label];var t=l.getLicenseTypesFromSearchResult(e),n=[];return t.forEach(function(e){n.push(e.label)}),n}}]}};t.attach=function(
e){r.module(e).directive("edgeccDlStock",i)}}),define("directives/designlibrary/main",["require","exports","module","./designLibrary","./designLibraryComponent","./designLibraryContents","./designLibraryEditableName","./designLibraryFooter","./designLibraryShowMore","./dlCategory","./dlEmpty","./dlNoLibraries","./dlStock"],function(e,t,n){"use strict";function r(t){e("./designLibrary").attach(t),e("./designLibraryComponent").attach(t),e("./designLibraryContents").attach(t),e("./designLibraryEditableName"
).attach(t),e("./designLibraryFooter").attach(t),e("./designLibraryShowMore").attach(t),e("./dlCategory").attach(t),e("./dlEmpty").attach(t),e("./dlNoLibraries").attach(t),e("./dlStock").attach(t)}return{attach:r}}),define("directives/disclosureTriangle",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=[function(){return{restrict:"E",templateUrl:"directives/templates/disclosureTriangle.tmpl.html",replace:!0,scope:{ngModel:"="},controller:["$scope",function(
e){e.$watch("ngModel",function(t){e.disclosureClass=t?"edgecc-core-panel-triangle-open":"edgecc-core-panel-triangle-closed"}),e.toggle=function(t){e.ngModel=!e.ngModel,t.preventDefault(),t.stopPropagation()}}]}}];t.attach=function(e){r.module(e).directive("edgeccDisclosureTriangle",i)}}),define("directives/edgeccTooltip",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=!1,s=!1,o,u=["Tether","configuration",function(e,t){return{scope:{content:"@tooltipContent"
,data:"=tooltipData",config:"=config",templateUrl:"@templateUrl",disable:"="},link:function(n,u,a){s||(s=r.element('<div style="z-index:10000"></div>'),r.element(window.document.body).append(s));var f={parentScope:n,element:s,tether:{target:u[0],attachment:"bottom center",targetAttachment:"top center",constraints:[{to:"window",attachment:"together",pin:!0}]}};n.templateUrl?f.templateUrl=n.templateUrl:f.template='<div class="tooltip" ng-bind-html="content"></div>';var l=function w(e){return r.forEach
(arguments,function(t){t!==e&&r.forEach(t,function(t,n){e[n]&&e[n].constructor&&e[n].constructor===Object?w(e[n],t):e[n]=t})}),e},c=e(l(f,n.config)),h,p,d=function(){return!!n.content||!!n.templateUrl},v=function(){c&&c.isActive()&&c.leave()},m=function(){c&&!c.isActive()&&!n.disable&&d()&&(clearTimeout(o),o=setTimeout(function(){i=!1},1e3),i=!0,c.enter(undefined,!0),p=setTimeout(v,7e3))},g=function(){if(t.showTooltips==="false"||n.disable||!d())return;h||(i?m():h=setTimeout(function(){m()},1e3))
},y=function(){if(t.showTooltips==="false")return;h&&(clearTimeout(h),h=undefined),p&&(clearTimeout(p),p=undefined),setTimeout(function(){c&&v()},0)},b=function(){c&&c.isActive()?y():g()};u.on("mouseenter",g),u.on("mouseleave",y),u.on("mousedown",b),n.$on("$destroy",function(){h&&(clearTimeout(h),h=undefined),c&&v(),c=undefined,u.off("mouseenter",g),u.off("mouseleave",y),u.off("mousedown",y)}),n.$watch("disable",function(e){e&&y()})}}}];t.attach=function(e){r.module(e).directive("edgeccTooltip",u
)}}),define("directives/modalDialog",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["csInterface",function(e){return{restrict:"E",replace:!0,transclude:!0,templateUrl:"directives/templates/modalDialog.tmpl.html",scope:{titleText:"@",okText:"@",secondaryOkText:"@",cancelText:"@",onSubmit:"&",onCancel:"&",showDialog:"=",disableOk:"="},link:function(t,n,r){var i=function(e){e.keyCode===27&&t.hideDialog()};window.addEventListener("keydown",i),t.dialogClass="panel-dialog"
,t.canCancel=!0,r.noDismiss!==undefined&&(t.dialogClass="panel-dialog-dim",t.canCancel=!1),t.hideDialog=function(){t.canCancel&&(t.showDialog=!1,t.onCancel&&t.onCancel(),window.removeEventListener("keydown",i))},t.stopPropagation=function(e){e.stopPropagation()},t.doSubmit=function(){t.showDialog=!1,t.onSubmit&&t.onSubmit()(t.okText)},t.isWindowsOS=e.isWindowsOS()}}}];t.attach=function(e){r.module(e).directive("edgeccModalDialog",i)}}),define("directives/select",["require","exports","module","angular"
],function(e,t,n){"use strict";var r=e("angular"),i=!1,s=["$window","Tether","configuration","menuManager","designLibraryFlyoutMenu","designLibraryManager","$translate","digestUtils",function(e,t,n,s,o,u,a,f){return{restrict:"E",replace:!0,transclude:!0,templateUrl:"directives/templates/select.tmpl.html",scope:{optionsArray:"=",modelField:"@",displayField:"@",orderBy:"@",ngModel:"=",ngDisabled:"=",ngChange:"&",maxHeight:"="},link:function(l,c,h){function w(e,t){var n=e,r=t;while(r){if(r===n)return!0
;r=r.parentNode}return!1}function S(e){l.selectedItem=undefined,l.optionsArray&&l.optionsArray.forEach(function(t){var n=l.modelField?t[l.modelField]:t;n===e&&(l.selectedItem=t)})}i||(i=r.element("<div></div>"),r.element(window.document.body).append(i));var p={parentScope:l,templateUrl:"directives/templates/selectMenu.tmpl.html",element:i,tether:{target:c[0],attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together",pin:!0}]}},d=0;n.currentProduct.config.
offsetSelectMenu&&(p.tether.offset="-1px -1px",d=2);var v=t(p),m=!1,g,y,b=function(){m&&(c.removeClass("selected"),v.leave(),e.removeEventListener("click",g,!0),e.removeEventListener("contextmenu",g,!0),e.removeEventListener("resize",g,!0),e.removeEventListener("scroll",y,!0),s.removeListener("flyoutMenuClicked",g),s.removeListener("flyoutMenuOpened",g),m=!1)};g=function(e){w(c.context,e.target)||b()},y=function(e){w(i[0],e.target)||b()},l.menuStyle={};var E=function(t){var n=18,r,i=3;(!l.isCreativeCloud||
l.switchingEnabled)&&i++,m||(l.menuStyle.width=c[0].offsetWidth+d,e.innerHeight?(r=e.innerHeight-i*n,r=l.maxHeight?Math.min(r,l.maxHeight):r):l.maxHeight&&(r=l.maxHeight),r&&r>0&&(r=Math.floor(r/n)*n,l.menuContainerStyle={"max-height":r+"px",overflow:"auto"}),e.addEventListener("click",g,!0),e.addEventListener("contextmenu",g,!0),e.addEventListener("resize",g,!0),e.addEventListener("scroll",y,!0),s.addListener("flyoutMenuClicked",g),s.addListener("flyoutMenuOpened",g),v.enter(),c.addClass("selected"
),m=!0)};l.toggleMenu=function(e){m?b(e):E(e)},u.addListener("privateCollection",function(){var t=u.getPrivateLibraryCollection();t&&(l.isCreativeCloud=t.cloudId===n.CREATIVE_CLOUD_ID,l.collectionName=l.isCreativeCloud?a.instant("DL_MENU_PERSONAL_ASSETS"):t.cloudInfo.name,l.switchingEnabled=t.cloudInfo.switchingEnabled||!1)}),l.select=function(t){l.ngModel=l.modelField?t[l.modelField]:t,l.ngChange&&e.setTimeout(function(){l.ngChange(),f.triggerDigest()})},l.showCreateDialog=function(){o.invokeCreateLibrary
()},l.changeCloud=function(){u.requestCloudChange()},l.$watch("ngModel",function(e){S(e)}),l.$watch("optionsArray",function(e){l.selectedItem||S(l.ngModel)}),l.$watch("ngDisabled",function(e){e?c.addClass("disabled"):c.removeClass("disabled")})}}}];t.attach=function(e){r.module(e).directive("edgeccSelect",s)}}),define("directives/search",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$window","designLibraryManager","designLibraryViewState","menuManager"
,"$translate","digestUtils","designLibrarySelection",function(e,t,n,r,i,s,o){return{restrict:"E",replace:!0,transclude:!0,templateUrl:"directives/templates/search.tmpl.html",scope:{disable:"="},link:function(t,u,a){function h(e,t){var n=e,r=t;while(r){if(r===n)return!0;r=r.parentNode}return!1}function d(){t.search.text===""?t.uiState.mode!=="normal"&&n.resetMode():t.uiState.mode!=="search"&&n.setSearchMode(t.search)}t.menuShown=!1;var f,l,c=function(){t.menuShown&&(e.removeEventListener("click",f
,!0),e.removeEventListener("contextmenu",f,!0),e.removeEventListener("resize",f,!0),e.removeEventListener("scroll",l,!0),r.removeListener("flyoutMenuClicked",f),r.removeListener("flyoutMenuOpened",f),t.menuShown=!1,s.triggerDigest())};f=function(e){h(u.context,e.target)||c()},l=function(e){h(u.context,e.target)||c()};var p=function(n){e.addEventListener("click",f,!0),e.addEventListener("contextmenu",f,!0),e.addEventListener("resize",f,!0),e.addEventListener("scroll",l,!0),r.addListener("flyoutMenuClicked"
,f),r.addListener("flyoutMenuOpened",f),t.menuShown=!0,s.triggerDigest()};t.toggleMenu=function(e){t.menuShown?c(e):t.disable||p(e)},t.searchFocused=function(){t.menuShown&&c()},t.uiState=n.getState(),t.types=n.getSearchTypes(),t.search={text:""},t.$watch("search.text",d),t.setSearchType=function(e,r){t.search.type=e,r||n.setSearchType(t.search.type),c()},t.setSearchType(n.getSearchType()||t.types[0],!0),t.$watch("uiState.mode",function(e){e!=="search"?t.search.text="":t.uiState.modeParams!==t.search&&
(t.uiState.modeParams=t.uiState.modeParams||{},t.uiState.modeParams.text=t.uiState.modeParams.text||t.search.text,t.uiState.modeParams.type=t.uiState.modeParams.type||t.search.type,t.search=t.uiState.modeParams,d())}),t.$watch("search.type",function(e){t.search.placeholder=i.instant("DL_SEARCH_INPUT_"+e.toUpperCase()+"_PLACEHOLDER"),t.search.text?n.notifySearchRequest():t.setFocus(!0,!1)}),t.$watch("search.text",function(){clearTimeout(t.searchAttemptTimeout),t.search.text&&(t.searchAttemptTimeout=
setTimeout(function(){n.notifySearchRequest(),clearTimeout(t.searchAttemptTimeout)},n.isStockSearchMode()?1e3:200))}),t.searchRequested=function(){t.search.text?n.notifySearchRequest():t.setFocus(!1,!1)},o.addScopedListener(t,"selectionChanged",function(){t.search.text||t.setFocus(!1,!1)})}}}];t.attach=function(e){r.module(e).directive("edgeccSearch",i)}}),define("directives/main",["require","exports","module","./core/main","./designlibrary/main","./disclosureTriangle","./edgeccTooltip","./modalDialog"
,"./select","./search"],function(e,t,n){"use strict";t.attach=function(t){e("./core/main").attach(t),e("./designlibrary/main").attach(t),e("./disclosureTriangle").attach(t),e("./edgeccTooltip").attach(t),e("./modalDialog").attach(t),e("./select").attach(t),e("./search").attach(t)}}),define("controllers/mainCtrl",["require","exports","module"],function(e,t,n){"use strict";var r=["$scope","$rootScope","$document","$window","csInterface","designLibraryManager",function(e,t,n,r,i,s){e.isWindowsOS=i.isWindowsOS
(),e.lang=i.getLocale(),n.on("click",function(){s.sync(!0,!0)}),r.addEventListener("online",function(){s.sync()}),r.addEventListener("offline",function(){s.sync()}),n.on("mouseenter",function(){t.globalHovering=!0,t.$apply()}),n.on("mouseleave",function(){t.globalHovering=!1,t.$apply()})}];t.attach=function(e){angular.module(e).controller("mainCtrl",r)}}),define("controllers/main",["require","exports","module","./mainCtrl"],function(e,t,n){"use strict";t.attach=function(t){e("./mainCtrl").attach(
t)}}),define("filters/timeago",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=function(){return function(e){return moment(e).from(moment())}};t.attach=function(e){r.module(e).filter("timeago",i)}}),define("filters/localeOrderBy",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=["$parse","csInterface",function(e,t){var n=new Intl.Collator(t.getLocale(),{numeric:!0});return function(t,i,s,o){var u=function(e,t,n){
var i=[];return r.forEach(e,function(e,r,s){i.push(t.call(n,e,r,s))}),i},a=function(e,t){var n,r;for(n=0;n<i.length;n++){r=i[n](e,t);if(r!==0)return r}return 0},f=function(e,t){return t?function(t,n){return e(n,t)}:e},l=function(e,t){if(e===t)return 0;var i=typeof e,s=typeof t;return i===s?i==="string"?n.compare(e,t):(r.isDate(e)&&r.isDate(t)&&(e=e.valueOf(),t=t.valueOf()),e<t?-1:1):i<s?-1:1};if(!r.isArray(t))return t;if(!i)return t;i=r.isArray(i)?i:[i],i=u(i,function(t){var n=!1,i=t||identity;if(
r.isString(t)){if(t.charAt(0)==="+"||t.charAt(0)==="-")n=t.charAt(0)==="-",t=t.substring(1);i=e(t);if(i.constant){var s=i();return f(function(e,t){return l(e[s],t[s])},n)}}return f(function(e,t){return l(i(e),i(t))},n)});var c;if(!s){c=[];var h;for(h=0;h<t.length;h++)c.push(t[h])}else c=t;return c.sort(f(a,o))}}];t.attach=function(e){r.module(e).filter("localeOrderBy",i)}}),define("filters/searchKeyword",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=[function(
){return function(e,t,n){if(!t)return e;t=t.trim().toLowerCase();if(t.length===0)return e;var r;t.length>1&&t.charAt(0)==='"'&&t.charAt(t.length-1)==='"'?r=[t.substring(1,t.length-1)]:t.indexOf(" ")>-1?r=t.split(/[ ]+/):r=[t];var i=[];return e.forEach(function(e){n?n(e,r)&&i.push(e):r.every(function(t){return e.name.toLowerCase().indexOf(t)>-1})&&i.push(e)}),i}}];t.attach=function(e){r.module(e).filter("searchKeyword",i)}}),define("filters/main",["require","exports","module","./timeago","./localeOrderBy"
,"./searchKeyword"],function(e,t,n){"use strict";function r(t){e("./timeago").attach(t),e("./localeOrderBy").attach(t),e("./searchKeyword").attach(t)}return{attach:r}}),define("configuration/designlibrary/brush/config",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=function(e){r.module(e).run(["designLibraryElements","configuration",function(e,t){e.register({type:t.BRUSH_ELEMENT_TYPE,directive:"dl-brush",displayName:"DL_TYPE_BRUSH",renditionSize:t.BRUSH_RENDITION_SIZE
,getAddOperations:function(e){return[]}})}])};return{attach:i}}),define("configuration/designlibrary/brush/renderer",["require","exports","module","angular"],function(e,t,n){"use strict";function o(e){r.module(e).directive("dlBrush",s)}var r=e("angular"),i={"application/vnd.adobe.scatter.brush+zip":"DL_BRUSHTYPE_SCATTER","application/vnd.adobe.vector.brush+zip":"DL_BRUSHTYPE_VECTOR","application/vnd.adobe.ribbon.brush+zip":"DL_BRUSHTYPE_RIBBON","image/x-adobe-photoshop-brush":"DL_BRUSHTYPE_SCATTER"
},s=["fileUtils",function(e){return{restrict:"E",replace:!1,templateUrl:"configuration/designlibrary/brush/view.tmpl.html",scope:{component:"="},link:function(e,t,n){e.scrollIntoView=function(){t[0].scrollIntoView(!0)}},controller:["$scope","$window","designLibrarySelection","configuration","designLibraryElements","designLibraryViewState","digestUtils",function(t,n,s,o,u,a,f){function l(){t.tooltip.name=u.getTruncatedElementName(t.component);var n=!1;u.setLoadingTimeout(function(){if(!n)return t.
imageUrl=undefined,t.loadedRenditionUrl=!1,!0}),u.getThumbnailURL(t.component).then(function(e){n=!0,t.imageUrl=e,t.loadedRenditionUrl=!0},function(e){n=!0,t.imageUrl=undefined,t.loadedRenditionUrl=!0});var r=t.component.getPrimaryRepresentation();if(r){var s=r.type;s&&(t.tooltip.brushType=i[r.type])}var f=e.getUsableTypes(t.component.type),l=t.component.representations.filter(function(e){var t=e.relationship==="rendition",n=u.isRepresentationCompatible(e,f);return!t&&n});t.disabled=l.length===0,
t.disabled&&(t.tooltip.disabledMessage="DL_ERROR_BRUSH_NOT_SUPPORTED_"+o.currentProduct.config.translationSuffix),a.isLibrariesSearchMode()&&(t.tooltip.libraryName=t.component.library.name)}function c(){l(),f.triggerDigest()}function h(){t.selected=s.isSelected(t.component),s.isPendingScrollToItem(t.component)&&(s.clearPendingScrollToItem(),n.setTimeout(function(){t.scrollIntoView()}))}t.uiState=a.getState(),t.tooltip={},s.addScopedListener(t,"selectionChanged",h),l(),h(),t.component.addChangeListener
(c),t.$on("$destroy",function(){t.component&&t.component.removeChangeListener(c),t.scrollIntoView=r.identity})}]}}];return{attach:o}}),define("configuration/designlibrary/brush/main",["require","exports","module","./config","./renderer"],function(e,t){"use strict";t.attach=function(t){e("./config").attach(t),e("./renderer").attach(t)}}),define("configuration/designlibrary/color/config",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=function(e){r.module(
e).run(["$q","designLibraryElements","designLibraryUtils","colorUtils","configuration",function(e,t,n,r,i){t.register({type:i.COLOR_ELEMENT_TYPE,directive:"dl-color",displayName:"DL_TYPE_COLOR",getAddOperations:function(t){var s=function(t){return{apply:function(r,s){var o=e.defer(),u=t.name;u||(t.data[0]&&t.data[0].type&&t.data[0].type==="spot"&&(u=t.data[0].spotColorName),u=u||"");var a=n.createElementExtraMetrics(r,u,i.COLOR_ELEMENT_TYPE,{opType:s});return t.data.forEach(function(e,t){var n=t===0?"primary"
:"rendition",r=a.createRepresentation(i.COLOR_REPRESENTATION_TYPE,n);r.setValue(i.COLOR_NAMESPACE,i.COLOR_DATA_KEY,e)}),a.endOperation(),o.resolve(a),o.promise}}},o=[];return t&&t.colors&&t.colors.length>0?(t.colors.forEach(function(e){var t=e.data;if(t&&t!==""){var n=s(e);o.push({name:"DL_ADD_COLOR_NAME",order:4,toolTip:"DL_ADD_COLOR_TOOLTIP_"+e.colorType,style:{"background-color":r.colorDataToHexValue(t),border:"1px solid",width:"14px",height:"14px",margin:"1px 1px 1px 0px"},apply:n.apply,displayIcon
:!0})}}),o):[{name:"DL_ADD_COLOR_NAME",order:4,toolTip:"DL_ADD_COLOR_TOOLTIP",style:{border:"1px solid",width:"14px",height:"14px",margin:"1px 1px 1px 0px"},disabled:!0,displayIcon:!0}]},getDisplayText:function(e){if(e.name&&e.name!=="")return e.name;var t=e.representations.filter(function(e){var t=e.getValue("color","data");return t.mode==="RGB"}),n=t.length>0?t[0]:undefined,i=n&&n.getValue("color","data");return i?r.colorDataToHexValue(i).toUpperCase():""},elementFilter:function(e,t){var n=e.representations
.filter(function(e){var t=e.getValue("color","data");return t.mode==="RGB"}),i=n.length>0?n[0]:undefined,s=i&&i.getValue("color","data"),o;return s&&(o=r.colorDataToHexValue(s).toLowerCase()),t.every(function(t){return e.name.toLowerCase().indexOf(t)>-1?!0:o?o.indexOf(t)>-1:!1})}})}])};return{attach:i}}),define("configuration/designlibrary/color/renderer",["require","exports","module","angular"],function(e,t,n){"use strict";function s(e){r.module(e).directive("dlColor",i)}var r=e("angular"),i=["fileUtils"
,function(e){return{restrict:"E",replace:!1,templateUrl:"configuration/designlibrary/color/view.tmpl.html",scope:{component:"="},link:function(e,t,n){e.scrollIntoView=function(){t[0].scrollIntoView(!0)}},controller:["$scope","$window","designLibrarySelection","colorUtils","themeManager","configuration","designLibraryElements","designLibraryViewState","digestUtils",function(e,t,n,i,s,o,u,a,f){function l(){e.tooltip.name=u.getTruncatedElementName(e.component),e.tooltip.hexValue=undefined,e.tooltip.
primaryValue=undefined;var t=e.component.getPrimaryRepresentation(),n=t&&t.getValue("color","data");n&&(e.tooltip.primaryValue=i.getStringColorValue(n));var r=e.component.representations.filter(function(e){var t=e.getValue("color","data");return t.mode==="RGB"});t=r.length>0?r[0]:undefined,n=t&&t.getValue("color","data");if(n){var s=i.colorDataToHexValue([n]).toUpperCase();e.colorStyle={background:s},e.tooltip.hexValue=s}a.isLibrariesSearchMode()&&(e.tooltip.libraryName=e.component.library.name)}
function c(){l(),f.triggerDigest()}function h(){e.selected=n.isSelected(e.component),n.isPendingScrollToItem(e.component)&&(n.clearPendingScrollToItem(),t.setTimeout(function(){e.scrollIntoView()}))}e.uiState=a.getState(),e.tooltip={},n.addScopedListener(e,"selectionChanged",h),l(),h(),e.component.addChangeListener(c),e.$on("$destroy",function(){e.component&&e.component.removeChangeListener(c),e.scrollIntoView=r.identity}),s.addScopedListener(e,"colorThemeChanged",l)}]}}];return{attach:s}}),define
("configuration/designlibrary/color/main",["require","exports","module","./config","./renderer"],function(e,t,n){"use strict";t.attach=function(t){e("./config").attach(t),e("./renderer").attach(t)}}),define("configuration/designlibrary/colortheme/config",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=function(e){r.module(e).run(["designLibraryElements","designLibraryUtils","fileUtils","colorUtils","configuration",function(e,t,n,r,i){e.register({type:i.COLOR_THEME_ELEMENT_TYPE
,directive:"dl-colortheme",displayName:"DL_TYPE_COLOR_THEME",getApplyOperations:function(r,s,o){if(!r||!o)return[];var u=[],a=e.getApplyOperations({type:i.COLOR_ELEMENT_TYPE},s);return a.forEach(function(s){u.push({name:s.name,icon:s.icon,displayInMenu:s.displayInMenu,onClick:s.onClick,apply:function(){s.apply(o,function(s){var o=e.findRepresentation(r,n.getUsableTypes(i.COLOR_THEME_ELEMENT_TYPE));o&&t.reportApplyMetric(o,s)})}})}),u},getAddOperations:function(e){return[]},elementFilter:function(
t,s){var o=e.findRepresentation(t,n.getUsableTypes(i.COLOR_THEME_ELEMENT_TYPE)),u=o&&o.getValue("colortheme","data"),a=[];return u&&Array.isArray(u.swatches)&&u.swatches.forEach(function(e){a.push(r.colorDataToHexValue(e).toLowerCase())}),s.every(function(e){return t.name.toLowerCase().indexOf(e)>-1?!0:a.some(function(t){return t.indexOf(e)>-1})})}})}])};return{attach:i}}),define("configuration/designlibrary/colortheme/renderer",["require","exports","module","angular"],function(e,t,n){"use strict"
;function o(e){r.module(e).directive("dlColortheme",s)}var r=e("angular"),i="application/vnd.adobe.element.colortheme+dcx",s=["fileUtils",function(e){return{restrict:"E",replace:!1,templateUrl:function(e,t){return"configuration/designlibrary/colortheme/view.tmpl.html"},scope:{component:"="},link:function(e,t,n){e.scrollIntoView=function(){t[0].scrollIntoView(!0)}},controller:["$scope","$window","designLibrarySelection","colorUtils","themeManager","configuration","designLibraryElements","designLibraryViewState"
,"csInterface","designLibraryUtils","layerSelectionManager","digestUtils",function(t,n,s,o,u,a,f,l,c,h,p,d){function m(){var n=f.findRepresentation(t.component,e.getUsableTypes(i));t.useColor=function(e){v=f.getApplyOperations({type:"application/vnd.adobe.element.color+dcx"},{});var t;v.forEach(function(e){e.onClick&&(t=e)}),t&&t.apply(e,function(e){n&&h.reportApplyMetric(n,e)})};var r=n&&n.getValue("colortheme","data");r&&Array.isArray(r.swatches)&&(t.values=r.swatches.map(function(e){var t=o.colorDataToHexValue
(e).toUpperCase(),n=o.getStringColorValue(e[0]);return{colorData:e,hexValue:t,primaryValue:n,style:{background:t}}}),l.isLibrariesSearchMode()&&(t.tooltip.libraryName=t.component.library.name))}function g(){m(),d.triggerDigest()}function y(){t.selected=s.isSelected(t.component),s.isPendingScrollToItem(t.component)&&(s.clearPendingScrollToItem(),n.setTimeout(function(){t.scrollIntoView()}))}t.uiState=l.getState(),t.tooltip={};var v=[];m(),t.component.addChangeListener(g),t.$on("$destroy",function(
){t.component&&t.component.removeChangeListener(g),t.scrollIntoView=r.identity}),u.addScopedListener(t,"colorThemeChanged",m),s.addScopedListener(t,"selectionChanged",y),y()}]}}];return{attach:o}}),define("configuration/designlibrary/colortheme/main",["require","exports","module","./config","./renderer"],function(e,t,n){"use strict";t.attach=function(t){e("./config").attach(t),e("./renderer").attach(t)}}),define("configuration/designlibrary/image/config",["require","exports","module","angular"],function(
e,t,n){"use strict";var r=e("angular"),i=function(e){r.module(e).run(["$q","designLibraryElements","configuration","fileUtils","designLibraryUtils","designLibraryElementUtils","adobeStockUtils",function(e,t,n,r,i,s,o){t.register({type:n.IMAGE_ELEMENT_TYPE,directive:"dl-image",displayName:"DL_TYPE_IMAGE",renditionSize:n.IMAGE_RENDITION_SIZE,isDraggable:!0,dragType:"image",enableEditOriginal:!0,allowDragWithoutUsableRepresentation:!0,fullRenditionConfig:function(){var e=r.getUsableTypes(n.IMAGE_ELEMENT_TYPE
);return e.length===0?[]:[{id:n.currentProduct.config.code,condition:"IF_NO_MATCHING_REPRESENTATION",types:e}]},getAddOperations:function(t){var n=function(t,n,r){var o=e.defer();return i.generatePreview(!0,r).then(function(e){var i={documentId:e.documentId,layerIds:e.layerIds,dragAssetId:r};o.resolve(s.addGraphicElement(e.layerName,e.files,e.rendition,t,n,i))},function(){o.reject("Could not extract asset.")}),o.promise};return[{name:"DL_ADD_IMAGE_NAME",order:1,toolTip:"DL_ADD_IMAGE_TOOLTIP",icon
:"newimage",dropSupport:!0,apply:n,disabled:!t||t.hasOwnProperty("selectionExists")&&!t.selectionExists,displayIcon:!0}]},getEditOperations:function(e){var n=t.getDefaultEditOperation(e);return n?[n]:[]},elementFilter:function(e,t){var n=o.getStockSearchQuery(e);return t.every(function(t){return e.name.toLowerCase().indexOf(t)>-1?!0:n&&n.toLowerCase().indexOf(t)>-1?!0:!1})},getDragData:function(e){if(!e)return;var n=t.getCommonDragData(e),r=t.findUsableRepresentation(e),i;r?r.getContentPath(function(
e,t){i=t}):e&&e.getThumbnailPath(undefined,function(t,n){i=n,r={type:"image/png",_element:e}});if(i)return n.data=[i],n.usedRepresentationForAnalytics=r,n}})}])};return{attach:i}}),define("configuration/designlibrary/image/renderer",["require","exports","module","angular"],function(e,t,n){"use strict";function o(e){r.module(e).directive("dlImage",s),r.module(e).directive("dlImageOnLoad",i)}var r=e("angular"),i=["$parse","$window","digestUtils",function(e,t,n){return{restrict:"A",scope:!1,link:function(
e,t,n){var r=function(){e.imgLoaded(t[0])};t.on("load",r),e.$on("$destroy",function(){t.off("load",r),r=undefined,t=undefined})},controller:["$scope",function(e){e.imgLoaded=function(r){function i(e){var t=e.parentElement;while(t){if(t.attributes.hasOwnProperty("img-size"))return t;t=t.parentElement}}var s=i(r),o=s.clientWidth,u=s.clientHeight,a=o/u,f=r.naturalWidth,l=r.naturalHeight,c=f/l,h,p;f<=o&&l<=u?(h=f,p=l):c>=a?(h=o,p=h/c):(p=u,h=p*c),e.imgStyle.width=h+"px",e.imgStyle.height=p+"px",t.setTimeout
(function(){r.style.display="inline",n.triggerDigest()},0)}}]}}],s=[function(){return{restrict:"E",replace:!1,templateUrl:"configuration/designlibrary/image/view.tmpl.html",scope:{component:"="},link:function(e,t,n){e.scrollIntoView=function(){t[0].scrollIntoView(!0)}},controller:["$scope","$window","$translate","designLibrarySelection","fileUtils","designLibraryManager","designLibraryElements","configuration","designLibraryViewState","adobeStockUtils","digestUtils","unitUtils",function(e,t,n,i,s
,o,u,a,f,l,c,h){function p(){e.tooltip&&(e.tooltip.isStockAsset=l.isStockAsset(e.component),e.tooltip.isStockAsset&&(e.tooltip.isLicensed=l.isLicensed(e.component)))}function d(){e.downloadProgress===undefined?e.downloadTooltip=n.instant("DL_LINK_DOWNLOAD_TOOLTIP"):e.downloadProgress===-1?e.downloadTooltip=n.instant("DL_LINK_DOWNLOAD_FAIL_TOOLTIP"):e.downloadTooltip=n.instant("DL_LINK_DOWNLOAD_PROGRESS_TOOLTIP",{percent:e.downloadProgress}),p()}function v(){var t=e.downloadProgress;e.downloadProgress=
u.getElementDownloadProgress(e.component);var n=e.downloadPending;e.downloadPending=u.isElementDownloadPending(e.component);if(e.downloadPending!==n||e.downloadProgress!==t)d(),c.triggerDigest()}function m(){var t=!1;v(),d(),u.setLoadingTimeout(function(){if(!t)return e.loadedRenditionUrl=!1,e.imageUrl=undefined,e.imgStyle={},!0}),u.getThumbnailURL(e.component).then(function(n){t=!0,e.loadedRenditionUrl=!0,e.imageUrl=n},function(n){t=!0,e.loadedRenditionUrl=!0,e.imageUrl=undefined,e.imgStyle={}})
;var n="content";e.tooltip={},p();var r=e.component.getPrimaryRepresentation(),i;r&&(i=s.mimeLookup(a.IMAGE_ELEMENT_TYPE,r.type),i?(e.badgeText=i.badge,i.createdIn?e.tooltip.createdIn=i.createdIn:e.tooltip.type=i.name):e.tooltip.type=r.type,r.contentLength&&(e.tooltip.filesize=h.bytesToString(r.contentLength))),e.imgStyle["background-size"]=n,e.tooltip.name=u.getTruncatedElementName(e.component),f.isLibrariesSearchMode()&&(e.tooltip.libraryName=e.component.library.name)}function g(){m(),c.triggerDigest
()}function y(){e.selected=i.isSelected(e.component),e.selected&&e.downloadProgress===-1&&(u.retryElementDownload(e.component),m()),i.isPendingScrollToItem(e.component)&&(i.clearPendingScrollToItem(),t.setTimeout(function(){e.scrollIntoView()}))}e.uiState=f.getState(),e.downloadPending=!1,o.addScopedListener(e,"libraryStatus",v),e.imgStyle={},e.tooltip={},i.addScopedListener(e,"selectionChanged",y),m(),y(),e.component.addChangeListener(g),e.$watch("uiState.view",function(){e.imgStyle={}}),e.$on("$destroy"
,function(){e.component&&e.component.removeChangeListener(g),e.scrollIntoView=r.identity}),e.onElementDragStart=function(){e.selected||i.setSelection(e.component,!1)},e.isLicensed=l.isLicensed}]}}];return{attach:o}}),define("configuration/designlibrary/image/main",["require","exports","module","./config","./renderer"],function(e,t,n){"use strict";t.attach=function(t){e("./config").attach(t),e("./renderer").attach(t)}}),define("configuration/designlibrary/layerstyle/config",["require","exports","module"
,"angular"],function(e,t,n){"use strict";var r=e("angular"),i=function(e){r.module(e).run(["$q","designLibraryElements","configuration","fileUtils","csInterface","designLibraryUtils",function(e,t,n,r,i,s){t.register({type:n.LAYER_STYLE_ELEMENT_TYPE,directive:"dl-layer-style",displayName:"DL_TYPE_LAYER_STYLE",renditionSize:n.LAYER_STYLE_RENDITION_SIZE,getAddOperations:function(t){if(n.currentProduct.config.code!=="PHXS")return[];var o=function(t,o){var u=e.defer();return i.execApp("saveLayerStyle"
).then(function(i){var a=JSON.parse(i)||{},f=a.layerName||"",l=s.createElementExtraMetrics(t,f,n.LAYER_STYLE_ELEMENT_TYPE,{opType:o}),c=[],h=a.files||[];h.forEach(function(e,t){var n=r.fileNameToContentType(e);if(n){var i=t===0?"primary":"alternate",s=l.createRepresentation(n,i),o=s.setContentFromPath(e).then(function(){r.deleteFile(e)});c.push(o)}else console.log("Could not create representation: path cannot end with '.': "+e)});if(a.rendition){var p=l.createRepresentation("image/png","rendition"
),d=p.setContentFromPath(a.rendition);c.push(d)}e.all(c).then(function(){a.rendition&&l.setThumbnailCache(n.LAYER_STYLE_RENDITION_SIZE,a.rendition,function(){r.deleteFile(a.rendition)}),l.endOperation(),u.resolve(l)},function(){t.removeElement(l,!0),u.reject("Could not create element.")})},function(){u.reject("Could not save layer style.")}),u.promise};return[{name:"DL_ADD_LAYER_STYLE",toolTip:"DL_ADD_LAYER_STYLE_TOOLTIP",icon:"newlayerstyle",order:3,dropSupport:!1,apply:o,disabled:!t||!t.hasLayerStyles
,displayIcon:!0}]}})}])};return{attach:i}}),define("configuration/designlibrary/layerstyle/renderer",["require","exports","module","angular"],function(e,t,n){"use strict";function s(e){r.module(e).directive("dlLayerStyle",i)}var r=e("angular"),i=["fileUtils",function(e){return{restrict:"E",replace:!1,templateUrl:"configuration/designlibrary/layerstyle/view.tmpl.html",scope:{component:"="},link:function(e,t,n){e.scrollIntoView=function(){t[0].scrollIntoView(!0)}},controller:["$scope","$window","designLibrarySelection"
,"themeManager","configuration","designLibraryElements","designLibraryViewState","digestUtils",function(e,t,n,i,s,o,u,a){function f(){e.tooltip.name=o.getTruncatedElementName(e.component);var t=!1;o.setLoadingTimeout(function(){if(!t)return e.imageUrl=undefined,e.loadedRenditionUrl=!1,!0}),o.getThumbnailURL(e.component).then(function(n){t=!0,e.imageUrl=n,e.loadedRenditionUrl=!0},function(n){t=!0,e.imageUrl=undefined,e.loadedRenditionUrl=!0}),u.isLibrariesSearchMode()&&(e.tooltip.libraryName=e.component
.library.name)}function l(){f(),a.triggerDigest()}function c(){e.selected=n.isSelected(e.component),n.isPendingScrollToItem(e.component)&&(n.clearPendingScrollToItem(),t.setTimeout(function(){e.scrollIntoView()}))}e.uiState=u.getState(),e.tooltip={},e.disabled=s.currentProduct.config.code!=="PHXS"?!0:!1,n.addScopedListener(e,"selectionChanged",c),f(),c(),e.component.addChangeListener(l),e.$on("$destroy",function(){e.component&&e.component.removeChangeListener(l),e.scrollIntoView=r.identity})}]}}]
;return{attach:s}}),define("configuration/designlibrary/layerstyle/main",["require","exports","module","./config","./renderer"],function(e,t,n){"use strict";t.attach=function(t){e("./config").attach(t),e("./renderer").attach(t)}}),define("configuration/designlibrary/look/config",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=function(e){r.module(e).run(["$q","designLibraryElements","configuration","fileUtils","csInterface","designLibraryUtils",function(
e,t,n,r,i,s){t.register({type:n.LOOK_ELEMENT_TYPE,directive:"dl-look",displayName:"DL_TYPE_LOOK",renditionSize:n.LOOK_RENDITION_SIZE,getAddOperations:function(e){return[]},getDragData:function(e){if(!e)return;var n=t.getCommonDragData(e),r=t.findUsableRepresentation(e),i;r&&r.getContentPath(function(e,t){i=t});if(i)return n.data=[i],n.usedRepresentationForAnalytics=r,n}})}])};return{attach:i}}),define("configuration/designlibrary/look/renderer",["require","exports","module","angular"],function(e,
t,n){"use strict";function s(e){r.module(e).directive("dlLook",i)}var r=e("angular"),i=["fileUtils",function(e){return{restrict:"E",replace:!1,templateUrl:"configuration/designlibrary/look/view.tmpl.html",scope:{component:"="},link:function(e,t,n){e.scrollIntoView=function(){t[0].scrollIntoView(!0)}},controller:["$scope","$window","designLibrarySelection","themeManager","configuration","designLibraryElements","designLibraryViewState","digestUtils",function(t,n,i,s,o,u,a,f){function l(){t.tooltip.
name=u.getTruncatedElementName(t.component);var n=!1;u.setLoadingTimeout(function(){if(!n)return t.imageUrl=undefined,t.loadedRenditionUrl=!1,!0});var r=u.findRepresentation(t.component,e.getUsableTypes(o.LOOK_ELEMENT_TYPE));r||(t.disabled=!0),u.getThumbnailURL(t.component).then(function(e){n=!0,t.imageUrl=e,t.loadedRenditionUrl=!0},function(e){n=!0,t.imageUrl=undefined,t.loadedRenditionUrl=!0}),a.isLibrariesSearchMode()&&(t.tooltip.libraryName=t.component.library.name)}function c(){l(),f.triggerDigest
()}function h(){t.selected=i.isSelected(t.component),i.isPendingScrollToItem(t.component)&&(i.clearPendingScrollToItem(),n.setTimeout(function(){t.scrollIntoView()}))}t.uiState=a.getState(),t.tooltip={},i.addScopedListener(t,"selectionChanged",h),l(),h(),t.component.addChangeListener(c),t.$on("$destroy",function(){t.component&&t.component.removeChangeListener(c),t.scrollIntoView=r.identity}),t.onElementDragStart=function(){t.selected||i.setSelection(t.component,!1)}}]}}];return{attach:s}}),define
("configuration/designlibrary/look/main",["require","exports","module","./config","./renderer"],function(e,t,n){"use strict";t.attach=function(t){e("./config").attach(t),e("./renderer").attach(t)}}),define("configuration/designlibrary/textstyle/config",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i="characterstyle",s="data",o="application/vnd.adobe.characterstyle+json",u=function(e){r.module(e).run(["$q","designLibraryElements","designLibraryUtils","layerSelectionManager"
,"csInterface","fileUtils","configuration",function(e,t,n,r,u,a,f){t.register({type:f.CHARACTER_STYLE_ELEMENT_TYPE,directive:"dl-text-style",displayName:"DL_TYPE_TEXT_STYLE",renditionSize:f.CHARACTER_STYLE_RENDITION_SIZE,getAddOperations:function(t){var l=function(t,l){function h(r){if(!r||r.kind!=="LayerKind.TEXT")return;u.execApp("saveTextStylePreview",[r.fontInfo]).then(function(u){if(u===undefined||u==="undefined")return;var h=n.createElementExtraMetrics(t,"",f.CHARACTER_STYLE_ELEMENT_TYPE,{opType
:l}),p=[],d=h.createRepresentation(o,"primary");d.setValue(i,s,r.fontInfo);if(u){var v=h.createRepresentation("image/png","rendition"),m=v.setContentFromPath(u);p.push(m)}e.all(p).then(function(){u&&h.setThumbnailCache(f.CHARACTER_STYLE_RENDITION_SIZE,u,function(){a.deleteFile(u)}),h.endOperation(),c.resolve(h)},function(){t.removeElement(h,!0),c.reject("Could not create element.")})},function(){c.reject("Could not save text style preview.")})}var c=e.defer();return r.requestUpdate(),r.addListener
("layerSelectionChanged",h,!0),c.promise};return[{name:"DL_ADD_TEXT_STYLE_NAME",order:2,toolTip:"DL_ADD_TEXT_STYLE_TOOLTIP",icon:"newcharacterstyle",apply:l,disabled:!t||!t.text||!t.fontInfo,displayIcon:!0}]},getDisplayText:function(e){if(e.name&&e.name!=="")return e.name;var n=t.findRepresentation(e,o),r=n&&n.getValue(i,s);if(r){var u=r.fontFamily;return r.adbeFont.style.toLowerCase().indexOf("normal")===-1&&r.adbeFont.style.toLowerCase().indexOf("regular")&&(u+=" "+r.adbeFont.style),u}return""}
,elementFilter:function(e,n){var r=t.findRepresentation(e,o),u=r&&r.getValue(i,s);return n.every(function(t){if(e.name.toLowerCase().indexOf(t)>-1)return!0;if(u)if(u.fontFamily&&u.fontFamily.toLowerCase().indexOf(t)>-1||u.adbeFont&&u.adbeFont.style&&u.adbeFont.style.toLowerCase().indexOf(t)>-1||u.fontSize&&u.fontSize.value&&u.fontSize.value.toString().toLowerCase().indexOf(t)>-1)return!0;return!1})}})}])};return{attach:u}}),define("configuration/designlibrary/textstyle/renderer",["require","exports"
,"module","angular"],function(e,t,n){"use strict";function f(e){r.module(e).directive("dlTextStyle",a)}var r=e("angular"),i="characterstyle",s="data",o="application/vnd.adobe.characterstyle+json",u={},a=function(){return{restrict:"E",replace:!1,templateUrl:"configuration/designlibrary/textstyle/view.tmpl.html",scope:{component:"="},link:function(e,t,n){e.scrollIntoView=function(){t[0].scrollIntoView(!0)}},controller:["$scope","$q","$window","fileUtils","designLibrarySelection","designLibraryElements"
,"designLibraryViewState","colorUtils","configuration","csInterface","mediator","$translate","digestUtils",function(e,t,n,a,f,l,c,h,p,d,v,m,g){function S(){var t=l.findRepresentation(e.component,o);e.tooltip.name=l.getTruncatedElementName(e.component);var n=!1;l.setLoadingTimeout(function(){if(!n)return e.imageUrl=undefined,e.loadedRenditionUrl=!1,!0}),l.getThumbnailURL(e.component).then(function(t){n=!0,e.imageUrl=t,e.loadedRenditionUrl=!0},function(t){n=!0,e.imageUrl=undefined,e.loadedRenditionUrl=!0
});var r=t&&t.getValue(i,s);e.disabled=!l.isRepresentationCompatible(t,a.getUsableTypes(p.CHARACTER_STYLE_ELEMENT_TYPE));if(r){var u=function(t){e.missingFont=t,e.tooltip.missingFont=e.missingFont};b(r).then(function(e){u(!e)}),y.on("fontListChanged",function(){b(r).then(function(e){u(!e)})});var f=E(r);e.styleDescription=f.join(", "),e.tooltip.properties=e.styleDescription,r.color&&(e.colorStyle={"background-color":h.colorDataToHexValue(r.color)}),e.fontDescription={},e.fontDescription.font=r.fontFamily
,e.fontDescription.style="";if(r.adbeFont&&r.adbeFont.style){var d=r.adbeFont.style.toLowerCase();d.indexOf("normal")===-1&&d.indexOf("regular")&&(e.fontDescription.style=r.adbeFont.style)}e.fontDescription.fullFont=e.fontDescription.font+" "+e.fontDescription.style,c.isLibrariesSearchMode()&&(e.tooltip.libraryName=e.component.library.name)}}function x(){S(),g.triggerDigest()}function T(){e.selected=f.isSelected(e.component),f.isPendingScrollToItem(e.component)&&(f.clearPendingScrollToItem(),n.setTimeout
(function(){e.scrollIntoView()}))}e.uiState=c.getState();var y=v.register(e);e.tooltip={},e.renderStyle={},e.renderStyleFull={},e.isPreviewAvailable=!1,e.previewURL="";var b=function(n){var r=l.findUsableRepresentation(e.component);if(!r)return t.when(!0);if(!n.adbeFont&&!n.fontFamily)return t.when(!0);var i=t.defer();return d.execApp("isFontAvailable",[n]).then(function(e){i.resolve(e!=="false")}),i.promise},w=function(){u.Underline||(u.Underline=m.instant("DL_TEXT_ATTRIBUTE_UNDERLINE"),u.Strikethrough=
m.instant("DL_TEXT_ATTRIBUTE_STRIKETHROUGH"),u.Leading=m.instant("DL_TEXT_ATTRIBUTE_LEADING"),u.Kerning=m.instant("DL_TEXT_ATTRIBUTE_KERNING"),u.Tracking=m.instant("DL_TEXT_ATTRIBUTE_TRACKING"),u.LeadingAuto=m.instant("DL_TEXT_LEADING_AUTO"),u.KerningAuto=m.instant("DL_TEXT_KERNING_AUTO"),u.KerningOptical=m.instant("DL_TEXT_KERNING_OPTICAL"),u.KerningMetricsRomanOnly=m.instant("DL_TEXT_KERNING_METRICSROMANONLY"))},E=function(e){var t=[];w(),e.adbeFont?t.push(e.adbeFont.family):e.fontFamily&&t.push
(e.fontFamily),e.adbeFont&&e.adbeFont.style.toLowerCase().indexOf("normal")===-1&&e.adbeFont.style.toLowerCase().indexOf("regular")&&t.push(e.adbeFont.style);if(e.fontSize){var n=e.fontSize.value&&Math.round(e.fontSize.value*100)/100;t.push(n+e.fontSize.type)}e.textDecorationObject?(e.textDecorationObject.adbeUnderline&&t.push(u.Underline),e.textDecorationObject.adbeStrikethrough&&t.push(u.Strikethrough)):e.textDecoration&&(e.textDecoration.indexOf("underline")!==-1&&t.push(u.Underline),e.textDecoration
.indexOf("line-through")!==-1&&t.push(u.Strikethrough));if(e.adbeAutoLeading)t.push(u.Leading+":"+u.LeadingAuto);else if(e.lineHeight){var r=e.lineHeight.value&&Math.round(e.lineHeight.value*100)/100;t.push(u.Leading+":"+r+e.lineHeight.type)}switch(e.adbeIlstKerningMethod){case"AutoKernType.AUTO":t.push(u.Kerning+":"+u.KerningAuto);break;case"AutoKernType.OPTICAL":t.push(u.Kerning+":"+u.KerningOptical);break;case"AutoKernType.METRICSROMANONLY":t.push(u.Kerning+":"+u.KerningMetricsRomanOnly)}return e
.adbeTracking?t.push(u.Tracking+":"+e.adbeTracking):e.letterSpacing&&t.push(u.Tracking+":"+e.letterSpacing.value*1e3),t};f.addScopedListener(e,"selectionChanged",T),S(),T(),e.component.addChangeListener(x),e.$on("$destroy",function(){e.component&&e.component.removeChangeListener(x),e.scrollIntoView=r.identity})}]}};return{attach:f}}),define("configuration/designlibrary/textstyle/main",["require","exports","module","./config","./renderer"],function(e,t,n){"use strict";t.attach=function(t){e("./config"
).attach(t),e("./renderer").attach(t)}}),define("configuration/designlibrary/parastyle/config",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i="paragraphstyle",s="data",o="application/vnd.adobe.paragraphstyle+json",u="application/vnd.adobe.paragraphstyle+snippet",a=function(e){r.module(e).run(["$q","designLibraryElements","designLibraryUtils","layerSelectionManager","csInterface","fileUtils","configuration",function(e,t,n,r,a,f,l){t.register({type:l.PARAGRAPH_STYLE_ELEMENT_TYPE
,directive:"dl-para-style",displayName:"DL_TYPE_PARA_STYLE",renditionSize:l.PARAGRAPH_STYLE_RENDITION_SIZE,getAddOperations:function(t){var c=function(t,c){function p(r){if(!r||r.kind!=="LayerKind.TEXT")return;a.execApp("getParaStyleInfo").then(function(r){var a=JSON.parse(r),p=n.createElementExtraMetrics(t,a.styleName,l.PARAGRAPH_STYLE_ELEMENT_TYPE,{opType:c}),d=[],v,m;if(a.idmsPath){var g=p.createRepresentation(u,"primary");m=g.setContentFromPath(a.idmsPath).then(function(){f.deleteFile(a.idmsPath
)}),d.push(m),v=p.createRepresentation(o,"rendition"),v.setValue(i,s,a.styleInfo)}else v=p.createRepresentation(o,"primary"),v.setValue(i,s,a.styleInfo);if(a.previewPath){var y=p.createRepresentation("image/png","rendition");m=y.setContentFromPath(a.previewPath),d.push(m)}e.all(d).then(function(){a.previewPath&&p.setThumbnailCache(l.PARAGRAPH_STYLE_RENDITION_SIZE,a.previewPath,function(){f.deleteFile(a.previewPath)}),p.endOperation(),h.resolve(p)},function(){t.removeElement(p,!0),h.reject("Could not create element."
)})},function(){h.reject("Could not save paragraph style preview.")})}var h=e.defer();return r.requestUpdate(),r.addListener("layerSelectionChanged",p,!0),h.promise};return[{name:"DL_ADD_PARA_STYLE_NAME",order:3,toolTip:"DL_ADD_PARA_STYLE_TOOLTIP",icon:"newparagraphstyle",apply:c,disabled:!t||!t.text||t.isAppliedParaStyleSupported===!1,displayIcon:!0}]},getDisplayText:function(e){if(e.name&&e.name!=="")return e.name;var n=t.findRepresentation(e,o),r=n&&n.getValue(i,s);if(r){var u=r.fontFamily;return r
.adbeFont.style.toLowerCase().indexOf("normal")===-1&&r.adbeFont.style.toLowerCase().indexOf("regular")&&(u+=" "+r.adbeFont.style),u}return""},elementFilter:function(e,n){var r=t.findRepresentation(e,o),u=r&&r.getValue(i,s);return n.every(function(t){if(e.name.toLowerCase().indexOf(t)>-1)return!0;if(u)if(u.fontFamily&&u.fontFamily.toLowerCase().indexOf(t)>-1||u.adbeFont&&u.adbeFont.style&&u.adbeFont.style.toLowerCase().indexOf(t)>-1||u.fontSize&&u.fontSize.value&&u.fontSize.value.toString().toLowerCase
().indexOf(t)>-1)return!0;return!1})}})}])};return{attach:a}}),define("configuration/designlibrary/parastyle/renderer",["require","exports","module","angular"],function(e,t,n){"use strict";function f(e){r.module(e).directive("dlParaStyle",a)}var r=e("angular"),i="paragraphstyle",s="data",o="application/vnd.adobe.paragraphstyle+json",u={},a=function(){return{restrict:"E",replace:!1,templateUrl:"configuration/designlibrary/parastyle/view.tmpl.html",scope:{component:"="},link:function(e,t,n){e.scrollIntoView=
function(){t[0].scrollIntoView(!0)}},controller:["$scope","$q","$window","fileUtils","designLibrarySelection","designLibraryElements","designLibraryViewState","colorUtils","configuration","csInterface","mediator","$translate","digestUtils",function(e,t,n,a,f,l,c,h,p,d,v,m,g){function S(){var t=l.findRepresentation(e.component,o);e.tooltip.name=l.getTruncatedElementName(e.component);var n=!1;l.setLoadingTimeout(function(){if(!n)return e.imageUrl=undefined,e.loadedRenditionUrl=!1,!0}),l.getThumbnailURL
(e.component).then(function(t){n=!0,e.imageUrl=t,e.loadedRenditionUrl=!0},function(t){n=!0,e.imageUrl=undefined,e.loadedRenditionUrl=!0});var r=t&&t.getValue(i,s);e.disabled=!t||!l.isRepresentationCompatible(t,a.getUsableTypes(p.PARAGRAPH_STYLE_ELEMENT_TYPE));if(r){var u=function(t){e.missingFont=t,e.tooltip.missingFont=e.missingFont};b(r).then(function(e){u(!e)}),y.on("fontListChanged",function(){b(r).then(function(e){u(!e)})});var f=E(r);e.styleDescription=f.join(", "),e.tooltip.properties=e.styleDescription
,r.color&&(e.colorStyle={"background-color":h.colorDataToHexValue(r.color)}),e.fontDescription={},e.fontDescription.font=r.fontFamily,e.fontDescription.style="";if(r.adbeFont&&r.adbeFont.style){var d=r.adbeFont.style.toLowerCase();d.indexOf("normal")===-1&&d.indexOf("regular")&&(e.fontDescription.style=r.adbeFont.style)}e.fontDescription.fullFont=e.fontDescription.font+" "+e.fontDescription.style,c.isLibrariesSearchMode()&&(e.tooltip.libraryName=e.component.library.name)}}function x(){S(),g.triggerDigest
()}function T(){e.selected=f.isSelected(e.component),f.isPendingScrollToItem(e.component)&&(f.clearPendingScrollToItem(),n.setTimeout(function(){e.scrollIntoView()}))}e.uiState=c.getState();var y=v.register(e);e.tooltip={},e.renderStyle={},e.renderStyleFull={},e.isPreviewAvailable=!1,e.previewURL="";var b=function(n){var r=l.findUsableRepresentation(e.component);if(!r)return t.when(!0);if(!n.adbeFont&&!n.fontFamily)return t.when(!0);var i=t.defer();return d.execApp("isFontAvailable",[n]).then(function(
e){i.resolve(e!=="false")}),i.promise},w=function(){u.Underline||(u.Underline=m.instant("DL_TEXT_ATTRIBUTE_UNDERLINE"),u.Strikethrough=m.instant("DL_TEXT_ATTRIBUTE_STRIKETHROUGH"),u.Leading=m.instant("DL_TEXT_ATTRIBUTE_LEADING"),u.Kerning=m.instant("DL_TEXT_ATTRIBUTE_KERNING"),u.Tracking=m.instant("DL_TEXT_ATTRIBUTE_TRACKING"),u.Alignment=m.instant("DL_TEXT_ATTRIBUTE_ALIGNMENT"),u.Hyphenate=m.instant("DL_TEXT_ATTRIBUTE_HYPHENATE"),u.LeadingAuto=m.instant("DL_TEXT_LEADING_AUTO"),u.KerningAuto=m.instant
("DL_TEXT_KERNING_AUTO"),u.KerningOptical=m.instant("DL_TEXT_KERNING_OPTICAL"),u.KerningMetricsRomanOnly=m.instant("DL_TEXT_KERNING_METRICSROMANONLY"),u.LeftAlign=m.instant("DL_TEXT_ALIGNMENT_LEFT"),u.CenterAlign=m.instant("DL_TEXT_ALIGNMENT_CENTER"),u.RightAlign=m.instant("DL_TEXT_ALIGNMENT_RIGHT"),u.LeftJustify=m.instant("DL_TEXT_ALIGNMENT_LEFT_JUSTIFY"),u.CenterJustify=m.instant("DL_TEXT_ALIGNMENT_CENTER_JUSTIFY"),u.RightJustify=m.instant("DL_TEXT_ALIGNMENT_RIGHT_JUSTIFY"),u.FullJustify=m.instant
("DL_TEXT_ALIGNMENT_FULL_JUSTIFY"))},E=function(e){var t=[];w(),e.adbeFont?t.push(e.adbeFont.family):e.fontFamily&&t.push(e.fontFamily),e.adbeFont&&e.adbeFont.style.toLowerCase().indexOf("normal")===-1&&e.adbeFont.style.toLowerCase().indexOf("regular")&&t.push(e.adbeFont.style);if(e.fontSize){var n=e.fontSize.value&&Math.round(e.fontSize.value*100)/100;t.push(n+e.fontSize.type)}e.textDecorationObject?(e.textDecorationObject.adbeUnderline&&t.push(u.Underline),e.textDecorationObject.adbeStrikethrough&&
t.push(u.Strikethrough)):e.textDecoration&&(e.textDecoration.indexOf("underline")!==-1&&t.push(u.Underline),e.textDecoration.indexOf("line-through")!==-1&&t.push(u.Strikethrough));if(e.adbeAutoLeading)t.push(u.Leading+":"+u.LeadingAuto);else if(e.lineHeight){var r=e.lineHeight.value&&Math.round(e.lineHeight.value*100)/100;t.push(u.Leading+":"+r+e.lineHeight.type)}switch(e.adbeIlstKerningMethod){case"AutoKernType.AUTO":t.push(u.Kerning+":"+u.KerningAuto);break;case"AutoKernType.OPTICAL":t.push(u.Kerning+":"+
u.KerningOptical);break;case"AutoKernType.METRICSROMANONLY":t.push(u.Kerning+":"+u.KerningMetricsRomanOnly)}e.adbeTracking?t.push(u.Tracking+":"+e.adbeTracking):e.letterSpacing&&t.push(u.Tracking+":"+e.letterSpacing.value*1e3);if(e.adbeParaAlignment)switch(e.adbeParaAlignment){case"Alignment.LEFT_ALIGN":t.push(u.Alignment+":"+u.LeftAlign);break;case"Alignment.CENTER_ALIGN":t.push(u.Alignment+":"+u.CenterAlign);break;case"Alignment.RIGHT_ALIGN":t.push(u.Alignment+":"+u.RightAlign);break;case"Alignment.LEFT_JUSTIFIED"
:t.push(u.Alignment+":"+u.LeftJustify);break;case"Alignment.CENTER_JUSTIFIED":t.push(u.Alignment+":"+u.CenterJustify);break;case"Alignment.RIGHT_JUSTIFIED":t.push(u.Alignment+":"+u.RightJustify);break;case"Alignment.FULLY_JUSTIFIED":t.push(u.Alignment+":"+u.FullJustify)}return e.adbeHyphenation&&t.push(u.Hyphenate),t};f.addScopedListener(e,"selectionChanged",T),S(),T(),e.component.addChangeListener(x),e.$on("$destroy",function(){e.component&&e.component.removeChangeListener(x),e.scrollIntoView=r.
identity})}]}};return{attach:f}}),define("configuration/designlibrary/parastyle/main",["require","exports","module","./config","./renderer"],function(e,t,n){"use strict";t.attach=function(t){e("./config").attach(t),e("./renderer").attach(t)}}),define("configuration/designlibrary/unsupported/config",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=82,s=function(e){r.module(e).run(["designLibraryElements",function(e){e.register({type:"*",directive:"dl-unsupported"
,displayName:"DL_TYPE_UNKNOWN",renditionSize:i,getApplyOperations:function(e,t){return[]},getAddOperations:function(e){return[]}})}])};return{attach:s}}),define("configuration/designlibrary/unsupported/renderer",["require","exports","module","angular"],function(e,t,n){"use strict";function s(e){r.module(e).directive("dlUnsupported",i)}var r=e("angular"),i=function(){return{restrict:"E",replace:!1,templateUrl:"configuration/designlibrary/unsupported/view.tmpl.html",scope:{component:"="},link:function(
e,t,n){e.scrollIntoView=function(){t[0].scrollIntoView(!0)}},controller:["$scope","$window","designLibrarySelection","configuration","designLibraryElements","designLibraryViewState","digestUtils",function(e,t,n,i,s,o,u){function a(){var t=!1;s.setLoadingTimeout(function(){if(!t)return e.imageUrl=undefined,e.loadedRenditionUrl=!1,!0}),s.getThumbnailURL(e.component).then(function(n){t=!0,e.imageUrl=n,e.loadedRenditionUrl=!0},function(n){t=!0,e.imageUrl=undefined,e.loadedRenditionUrl=!0}),e.tooltip.
disabledMessage="DL_ERROR_UNSUPPORTED_"+i.currentProduct.config.translationSuffix,o.isLibrariesSearchMode()&&(e.tooltip.libraryName=e.component.library.name)}function f(){a(),u.triggerDigest()}function l(){e.selected=n.isSelected(e.component),n.isPendingScrollToItem(e.component)&&(n.clearPendingScrollToItem(),t.setTimeout(function(){e.scrollIntoView()}))}e.uiState=o.getState(),e.tooltip={},n.addScopedListener(e,"selectionChanged",l),a(),l(),e.component.addChangeListener(f),e.$on("$destroy",function(
){e.component&&e.component.removeChangeListener(f),e.scrollIntoView=r.identity})}]}};return{attach:s}}),define("configuration/designlibrary/unsupported/main",["require","exports","module","./config","./renderer"],function(e,t,n){"use strict";t.attach=function(t){e("./config").attach(t),e("./renderer").attach(t)}}),define("configuration/designlibrary/video/config",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=function(e){r.module(e).run(["$q","designLibraryElements"
,"configuration","fileUtils","csInterface","designLibraryUtils","adobeStockUtils",function(e,t,n,r,i,s,o){t.register({type:n.VIDEO_ELEMENT_TYPE,directive:"dl-video",displayName:"DL_TYPE_VIDEO",renditionSize:n.VIDEO_RENDITION_SIZE,autoDownloadExternalLinks:!1,getAddOperations:function(e){return[]},elementFilter:function(e,t){var n=o.getStockSearchQuery(e);return t.every(function(t){return e.name.toLowerCase().indexOf(t)>-1?!0:n&&n.toLowerCase().indexOf(t)>-1?!0:!1})},getDragData:function(e){if(!e)
return;var n=t.getCommonDragData(e),i=[],s,o=r.getUsableTypes(e.type);e.representations.forEach(function(e){if(t.isRepresentationCompatible(e,o)){s=s||e;var n=e.getValue("video","data")||{};i.push({contentType:e.type,url:e.getContentURL(),width:e.width,height:e.height,contentLength:e.contentLength,framerate:n.framerate,duration:n.duration})}});if(i.length>0)return n.data=i,n.usedRepresentationForAnalytics=s,n}})}])};return{attach:i}}),define("configuration/designlibrary/video/renderer",["require"
,"exports","module","angular"],function(e,t,n){"use strict";function s(e){r.module(e).directive("dlVideo",i)}var r=e("angular"),i=["fileUtils",function(e){return{restrict:"E",replace:!1,templateUrl:"configuration/designlibrary/video/view.tmpl.html",scope:{component:"="},link:function(e,t,n){e.scrollIntoView=function(){t[0].scrollIntoView(!0)}},controller:["$scope","$window","designLibrarySelection","themeManager","configuration","designLibraryElements","designLibraryViewState","designLibraryManager"
,"digestUtils","adobeStockUtils","unitUtils",function(t,n,i,s,o,u,a,f,l,c,h){function p(){t.tooltip&&(t.tooltip.isStockAsset=c.isStockAsset(t.component),t.tooltip.isStockAsset&&(t.tooltip.isLicensed=c.isLicensed(t.component)))}function d(){var n=!1;u.setLoadingTimeout(function(){if(!n)return t.imageUrl=undefined,t.loadedRenditionUrl=!1,!0}),t.tooltip={},p(),t.tooltip.name=u.getTruncatedElementName(t.component);var r=t.component.getPrimaryRepresentation(),i=u.findRepresentation(t.component,e.getUsableTypes
(o.VIDEO_ELEMENT_TYPE));i||(t.disabled=!0);var s=i||r;if(s){s.width&&s.height&&(t.tooltip.dimensions=h.dimensionsToString(s.width,s.height)),s.contentLength&&(t.tooltip.filesize=h.bytesToString(s.contentLength));var f=s.getValue("video","data")||{};f.framerate&&(t.tooltip.framerate=h.fpsToString(f.framerate)),f.duration&&(t.tooltip.duration=h.msToString(f.duration))}u.getThumbnailURL(t.component).then(function(e){n=!0,t.imageUrl=e,t.loadedRenditionUrl=!0},function(e){n=!0,t.imageUrl=undefined,t.loadedRenditionUrl=!0
}),a.isLibrariesSearchMode()&&(t.tooltip.libraryName=t.component.library.name)}function v(){d(),l.triggerDigest()}function m(){t.selected=i.isSelected(t.component),i.isPendingScrollToItem(t.component)&&(i.clearPendingScrollToItem(),n.setTimeout(function(){t.scrollIntoView()}))}f.addScopedListener(t,"libraryStatus",p),t.uiState=a.getState(),t.tooltip={},i.addScopedListener(t,"selectionChanged",m),d(),m(),t.component.addChangeListener(v),t.$on("$destroy",function(){t.component&&t.component.removeChangeListener
(v),t.scrollIntoView=r.identity}),t.onElementDragStart=function(){t.selected||i.setSelection(t.component,!1)},t.isLicensed=c.isLicensed}]}}];return{attach:s}}),define("configuration/designlibrary/video/main",["require","exports","module","./config","./renderer"],function(e,t,n){"use strict";t.attach=function(t){e("./config").attach(t),e("./renderer").attach(t)}}),define("configuration/designlibrary/3d/config",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular")
,i=function(e){r.module(e).run(["$q","designLibraryElements","configuration","fileUtils","csInterface","designLibraryUtils",function(e,t,n,r,i,s){t.register({type:n.THREE_D_ELEMENT_TYPE,directive:"dl-3d",displayName:"DL_TYPE_3D",renditionSize:n.THREE_D_RENDITION_SIZE,dragType:"3d",getAddOperations:function(e){return[]},getEditOperations:function(e){var n=t.getDefaultEditOperation(e);return n?[n]:[]},getDragData:function(e){if(!e)return;var n=t.getCommonDragData(e),r=t.findUsableRepresentation(e),
i;r&&r.getContentPath(function(e,t){i=t});if(i)return n.data=[i],n.usedRepresentationForAnalytics=r,n}})}])};return{attach:i}}),define("configuration/designlibrary/3d/renderer",["require","exports","module","angular"],function(e,t,n){"use strict";function s(e){r.module(e).directive("dl3d",i)}var r=e("angular"),i=["fileUtils",function(e){return{restrict:"E",replace:!1,templateUrl:"configuration/designlibrary/3d/view.tmpl.html",scope:{component:"="},link:function(e,t,n){e.scrollIntoView=function(){
t[0].scrollIntoView(!0)}},controller:["$scope","$window","designLibrarySelection","themeManager","configuration","designLibraryElements","designLibraryViewState","digestUtils",function(t,n,i,s,o,u,a,f){function l(){var n=!1;u.setLoadingTimeout(function(){if(!n)return t.imageUrl=undefined,t.loadedRenditionUrl=!1,!0});var r=u.findRepresentation(t.component,e.getUsableTypes(o.THREE_D_ELEMENT_TYPE));t.disabled=!r||!u.isRepresentationCompatible(r,e.getUsableTypes(o.THREE_D_ELEMENT_TYPE)),u.getThumbnailURL
(t.component).then(function(e){n=!0,t.imageUrl=e,t.loadedRenditionUrl=!0},function(e){n=!0,t.imageUrl=undefined,t.loadedRenditionUrl=!0}),r=t.component.getPrimaryRepresentation(),t.tooltip={},t.tooltip.name=u.getTruncatedElementName(t.component);var i;if(r){i=e.mimeLookup(o.THREE_D_ELEMENT_TYPE,r.type),i?(t.badgeText=i.badge,i.createdIn?t.tooltip.createdIn=i.createdIn:t.tooltip.type=i.name):t.tooltip.type=r.type;var s=r&&r.getValue(o.THREE_D_NAMESPACE,o.THREE_D_DATA_KEY);if(s&&s.type)switch(s.type
){case"character":t.tooltip.threeDtype="DL_3D_CHARACTER"}}a.isLibrariesSearchMode()&&(t.tooltip.libraryName=t.component.library.name)}function c(){l(),f.triggerDigest()}function h(){t.selected=i.isSelected(t.component),i.isPendingScrollToItem(t.component)&&(i.clearPendingScrollToItem(),n.setTimeout(function(){t.scrollIntoView()}))}t.uiState=a.getState(),t.tooltip={},i.addScopedListener(t,"selectionChanged",h),l(),h(),t.component.addChangeListener(c),t.$on("$destroy",function(){t.component&&t.component
.removeChangeListener(c),t.scrollIntoView=r.identity}),t.onElementDragStart=function(){t.selected||i.setSelection(t.component,!1)}}]}}];return{attach:s}}),define("configuration/designlibrary/3d/main",["require","exports","module","./config","./renderer"],function(e,t,n){"use strict";t.attach=function(t){e("./config").attach(t),e("./renderer").attach(t)}}),define("configuration/designlibrary/pattern/config",["require","exports","module","angular"],function(e,t,n){"use strict";var r=e("angular"),i=
function(e){r.module(e).run(["designLibraryElements","configuration",function(e,t){e.register({type:t.PATTERN_ELEMENT_TYPE,directive:"dl-pattern",displayName:"DL_TYPE_PATTERN",renditionSize:t.PATTERN_RENDITION_SIZE,getAddOperations:function(e){return[]},getDragData:function(t){if(!t)return;var n=e.getCommonDragData(t),r=e.findUsableRepresentation(t),i;r&&r.getContentPath(function(e,t){i=t});if(i)return n.data=[i],n.usedRepresentationForAnalytics=r,n}})}])};return{attach:i}}),define("configuration/designlibrary/pattern/renderer"
,["require","exports","module","angular"],function(e,t,n){"use strict";function s(e){r.module(e).directive("dlPattern",i)}var r=e("angular"),i=["fileUtils",function(e){return{restrict:"E",replace:!1,templateUrl:"configuration/designlibrary/pattern/view.tmpl.html",scope:{component:"="},link:function(e,t,n){e.scrollIntoView=function(){t[0].scrollIntoView(!0)}},controller:["$scope","$window","designLibrarySelection","themeManager","configuration","designLibraryElements","designLibraryViewState","digestUtils"
,function(t,n,i,s,o,u,a,f){function l(){t.tooltip.name=u.getTruncatedElementName(t.component);var n=!1;u.setLoadingTimeout(function(){if(!n)return t.imageUrl=undefined,t.loadedRenditionUrl=!1,!0});var r=u.findRepresentation(t.component,e.getUsableTypes(o.PATTERN_ELEMENT_TYPE));r||(t.disabled=!0),u.getThumbnailURL(t.component).then(function(e){n=!0,t.imageUrl=e,t.loadedRenditionUrl=!0},function(e){n=!0,t.imageUrl=undefined,t.loadedRenditionUrl=!0}),a.isLibrariesSearchMode()&&(t.tooltip.libraryName=
t.component.library.name)}function c(){l(),f.triggerDigest()}function h(){t.selected=i.isSelected(t.component),i.isPendingScrollToItem(t.component)&&(i.clearPendingScrollToItem(),n.setTimeout(function(){t.scrollIntoView()}))}t.uiState=a.getState(),t.tooltip={},i.addScopedListener(t,"selectionChanged",h),l(),h(),t.component.addChangeListener(c),t.$on("$destroy",function(){t.component&&t.component.removeChangeListener(c),t.scrollIntoView=r.identity}),t.onElementDragStart=function(e){var t=i.isSelected
(e);if(!t){var n=!u.isDraggable(e);i.setSelection(e,!1,n)}}}]}}];return{attach:s}}),define("configuration/designlibrary/pattern/main",["require","exports","module","./config","./renderer"],function(e,t){"use strict";t.attach=function(t){e("./config").attach(t),e("./renderer").attach(t)}}),define("configuration/designlibrary/main",["require","exports","module","./brush/main","./color/main","./colortheme/main","./image/main","./layerstyle/main","./look/main","./textstyle/main","./parastyle/main","./unsupported/main"
,"./video/main","./3d/main","./pattern/main"],function(e,t,n){"use strict";t.attach=function(t){e("./brush/main").attach(t),e("./color/main").attach(t),e("./colortheme/main").attach(t),e("./image/main").attach(t),e("./layerstyle/main").attach(t),e("./look/main").attach(t),e("./textstyle/main").attach(t),e("./parastyle/main").attach(t),e("./unsupported/main").attach(t),e("./video/main").attach(t),e("./3d/main").attach(t),e("./pattern/main").attach(t)}}),define("configuration/main",["require","exports"
,"module","./designlibrary/main"],function(e,t,n){"use strict";t.attach=function(t){e("./designlibrary/main").attach(t)}}),define("app",["require","jquery","angular","angular-sanitize","angular-animate","angular-translate","angular-cc-libraries-api-js","tether","visitor-api","app-measurement","libs/CSInterface","libs/IMSInterface","libs/Vulcan","libs/AgoraLib","services/main","directives/main","controllers/main","filters/main","configuration/main"],function(e){"use strict";function o(){angular.element
(document).ready(function(){angular.bootstrap(document,["designLibraries"])})}var t=angular.module("designLibraries",["ngSanitize","ngAnimate","pascalprecht.translate","adobe.ccLibraries"]);t.config(["$provide",function(e){e.decorator("$exceptionHandler",["$delegate","$injector",function(e,t){return function(n,r){e(n,r);var i=t.get("metrics");i&&i.reportError(r||"",n.stack||n.message||n)}}])}]);if(!e.toUrl){var n=e("edgeccTemplates");t.run(["$rootScope","$templateCache",function(e,t){n(t)}]),angular
.BUILT=!0}var r=new CSInterface,i=r.initResourceBundle(),s=r.hostEnvironment.appUILocale;t.config(["$translateProvider",function(e){e.translations(s,i),e.preferredLanguage(s),e.fallbackLanguage(s)}]),e("services/main").attach("designLibraries"),e("directives/main").attach("designLibraries"),e("controllers/main").attach("designLibraries"),e("filters/main").attach("designLibraries"),e("configuration/main").attach("designLibraries"),t.run(["$animate","csInterface","debugLog","designLibraryManager","versionManager"
,"layerSelectionManager","configuration","metrics","products","themeManager","adobeExchange","designLibraryCEPEventHandlers","designLibraryFlyoutMenu","editorAppUtils",function(e,t,n,r,i,s,o,u,a,f,l,c,h,p){function b(){n.init(),n.log("Panel Initialised: "+(angular.BUILT?"v"+i.getPluginVersion():"DEV")),s.startListening(),r.init(),h.updateMenu(),window.alert=t.showError.bind(t),c.startListening();var e=new CSEvent("dlPanelInitialized","APPLICATION");t.dispatchEvent(e),p.init()}e.enabled(!1),l.init
();var d=t.getPluginPath()+"/jsx/",v=d+"shims.jsx",m=d+"core.jsx",g=d+"json2.jsx",y=t.getPluginPath()+"/applications/"+o.currentProduct.config.code+"/jsx/main.jsx";t.evalScript('$.evalFile("'+v+'")'),t.evalScript('$.evalFile("'+m+'")'),t.evalScript('$.evalFile("'+g+'")'),t.evalScript('$.evalFile("'+y+'")'),t.evalScript("$._ADBE_LIBS_CORE.getTempFolder()").then(function(e){o.strTempFolder=e});var w=o.currentProduct.init();w?w.then(b,b):b()}]),o()}),define("applications/AEFT/js/index",["require"
,"exports","angular"],function(e,t){"use strict";var n=e("angular"),r=["$injector","colorUtils","fileUtils","ccLibraries","adobeStockUtils","designLibraryElements","designLibraryManager","designLibraryUtils","imsInterface","csInterface","$q","configuration",function(e,t,n,r,i,s,o,u,a,f,l,c){this.getScaleColor=function(e){var n=38,r=.51,i=n,s=e,o=s*r+i;return t.rgbToHex({red:o,green:o,blue:o})},this.cssThemeBGScale=function(){var e,t,n={},r=function(e){switch(e){case 0:return"darker";case 100:return"dark"
;default:return e.toString()}};for(e=0;e<=100;e++){t=this.getScaleColor(e).slice(1);if(!n.hasOwnProperty(t)||n.hasOwnProperty(t)&&r(e)!==e.toString())n[t]=r(e)}return n},this.config={},this.config.code="AEFT",this.config.fullName="After Effects",this.config.translationSuffix="AE",this.config.dragDropSource="com.adobe.aftereffects",this.config.isDrover=!0,this.config.themes=this.cssThemeBGScale(),this.config.elementOrder=[c.COLOR_ELEMENT_TYPE,c.COLOR_THEME_ELEMENT_TYPE,c.IMAGE_ELEMENT_TYPE,c.VIDEO_ELEMENT_TYPE
,c.LOOK_ELEMENT_TYPE,c.CHARACTER_STYLE_ELEMENT_TYPE,c.PARAGRAPH_STYLE_ELEMENT_TYPE,c.LAYER_STYLE_ELEMENT_TYPE,c.BRUSH_ELEMENT_TYPE,c.THREE_D_ELEMENT_TYPE,c.PATTERN_ELEMENT_TYPE,"*"],this.config.analytics={namespace:"ae",prodId:"adbemaftereffects.rebootprod2",devId:"adbemaftereffects.rebootdev2"},this.init=function(){n.extendUsableTypes(c.IMAGE_ELEMENT_TYPE,["application/pdf","application/illustrator","application/photoshop","application/photoshop.large","image/vnd.adobe.photoshop","image/png","image/jpeg"
,"image/jpg"]),n.extendUsableTypes(c.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),n.extendUsableTypes(c.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),n.extendUsableTypes(c.LOOK_ELEMENT_TYPE,["application/vnd.adobe.cube+txt","application/vnd.adobe.look+xml"]),n.extendUsableTypes(c.VIDEO_ELEMENT_TYPE,["video/mp4","video/quicktime"]),f.execApp("getTooltipState").then(function(t){e.get("configuration").showTooltips=t}),this.startEventListener()},this.reportEvent=function(
e,t){return undefined};var h=function(e,t){t=t===undefined?!1:t;var h={name:e.name,id:e.id,libraryName:e.library.name,reference:e.getReference(),modified:e.modified,created:e.created,adobeStockId:i.getStockId(e)};h.licensed=h.adobeStockId?i.isLicensed(e):null;var p=s.findRepresentation(e,n.getUsableTypes(c.IMAGE_ELEMENT_TYPE)),d;p?d=p.getContentPath():d=l.defer().resolve(null),d.then(function(e){!e||(h.stillPath=e)}).finally(function(){var i=s.findRepresentation(e,n.getUsableTypes(c.VIDEO_ELEMENT_TYPE
));if(i){h.width=i.width,h.height=i.height,h.contentLength=i.contentLength,h.url=i.getContentURL(),h.trackingdata=i.getValue("adobestock","trackingdata"),h.contentType=i.type;var l=r.utils.mimeTypeToExtensions(i.type);h.extension=l[l.length-1];var p=i.getValue("video","data")||!1;p&&(h.framerate=Number(p.framerate),h.duration=p.duration),t&&u.reportApplyMetric(i,"placeAsset");var d=t?"com.adobe.DesignLibraries.events.CreateLibrariesFootage":"com.adobe.DesignLibraries.events.UpdateLibrariesFootage"
,v=o.getPrivateLibraryCollection(),m=v?v.userId:"";return a.getAccessToken(m).then(function(e){h.imsToken=e;var t=new CSEvent(d,"APPLICATION");t.data=JSON.stringify(h),f.dispatchEvent(t)}).fail(function(e){var t=new CSEvent(d,"APPLICATION");t.data=JSON.stringify(h),f.dispatchEvent(t)})}})};this.addOrUpdateElementInProject=h;var p=function(e){var t=r.resolveElementReference(e.data.element.reference),n=!!e.data.element.addingElement;if(!t)throw"Element not found";h(t,n)};this.startEventListener=function(
){f.addEventListener("com.adobe.csxs.events.ShouldUpdateFootage",p)},this.stopEventListener=function(){f.removeEventListener("com.adobe.csxs.events.ShouldUpdateFootage",p)}}];t.attach=function(e){n.module(e).service("AEFT",r)}}),define("applications/DRWV/js/index",["require","exports","angular"],function(e,t){"use strict";var n=e("angular"),r=["$q","$injector","colorUtils","configuration","fileUtils","designLibraryManager","$translate","designLibraryElements","imsInterface","$http","adobeStockUtils"
,"csInterface",function(e,t,n,r,i,s,o,u,a,f,l,c){this.config={},this.config.code="DRWV",this.config.fullName="Dreamweaver",this.config.translationSuffix="DW",this.config.dragDropSource="com.adobe.dreamweaver",this.config.isDrover=!0,this.config.themes={d6d6d6:"lighter"},this.config.defaultTheme="lighter",this.config.isDocumentOpen=!1,this.config.createAGCURL={staging:"https://cc-api-image-stage.adobe.io/createagc",production:"https://cc-api-image.adobe.io/createagc"},this.config.svgomgURL={staging
:"https://cc-api-image-x-stage.adobe.io/agctosvg",production:"https://cc-api-image-x.adobe.io/agctosvg"},this.config.elementOrder=[r.IMAGE_ELEMENT_TYPE,r.COLOR_ELEMENT_TYPE,r.COLOR_THEME_ELEMENT_TYPE,r.CHARACTER_STYLE_ELEMENT_TYPE,r.PARAGRAPH_STYLE_ELEMENT_TYPE,r.VIDEO_ELEMENT_TYPE,r.LAYER_STYLE_ELEMENT_TYPE,r.LOOK_ELEMENT_TYPE,r.BRUSH_ELEMENT_TYPE,r.THREE_D_ELEMENT_TYPE,r.PATTERN_ELEMENT_TYPE,"*"],this.config.analytics={namespace:"dw",prodId:"adbemdreamweaver.rebootprod2",devId:"adbemdreamweaver.rebootdev2"
};var h=function(){var e=[];s.getLibraries().forEach(function(t){t.isDeletedFromServer||e.push({name:t.name,id:t.id})}),e.sort(function(e,t){return e.name<t.name?-1:e.name>t.name?1:0});var t={};t.libraryNames=e;var i={},o=[],a=[],f=[],h=[],p=-1,d=s.getCurrentLibrary();if(d){var v;for(v=0;v<e.length;++v)if(e[v].id===d.id){p=v;break}var m,g,y,b,w,E,S,x,T,N,C;for(m=0;m<d.elements.length;m++){y={},S=d.elements[m];if(S.type===r.IMAGE_ELEMENT_TYPE)E=S.getPrimaryRepresentation(),y.elementRef=S.getReference
(),E?y.primaryType=E.type:y.primaryType="",y.elementName=S.name,y.adobeStockID=l.getStockId(S)||"",y.isUnlicensedStockAsset=y.adobeStockID?!l.isLicensed(S):!1,o.push(y),f.push(S);else if(S.type===r.COLOR_ELEMENT_TYPE)for(g=0;g<S.representations.length;g++)S.representations[g].getValue("color","data").mode==="RGB"&&(x={},b=S.representations[g].getValue("color","data"),w=n.colorDataToHexValue(b),x.hexValue=w,x.source="color",a.push(x));else if(S.type===r.COLOR_THEME_ELEMENT_TYPE){C=S.representations
[0].getValue("colortheme","data").swatches;for(T=0;T<C.length;T++)for(g=0;g<C[T].length;g++)C[T][g].mode==="RGB"&&(N={},b=C[T][g],w=n.colorDataToHexValue(b),N.hexValue=w,N.source="colorTheme",a.push(N))}}r.currentProduct.config.lastImageIndex=f.length,f.forEach(function(e,n){e.getThumbnailPath(u.getRenditionSize(e)).then(function(e){var n={};n.path=e,h.push(n),r.currentProduct.config.lastImageIndex--;if(r.currentProduct.config.lastImageIndex===0){i.images=o,i.colors=a;var s;for(s=0;s<h.length;s++
)h[s].path===undefined&&(h[s].path="");t.thumbnails=h,t.currentLibraryItemList=i,c.execApp("setLibraryCollection",[JSON.stringify(t)])}},function(e){r.currentProduct.config.lastImageIndex--;var t={};t.path="",h.push(t),console.log(e)})})}t.currentLibrary=p,f.length===0&&(i.images=o,i.colors=a,t.thumbnails=h,t.currentLibraryItemList=i,c.execApp("setLibraryCollection",[JSON.stringify(t)]))};this.init=function(){i.extendUsableTypes(r.IMAGE_ELEMENT_TYPE,["image/png","image/jpeg","image/jpg","image/gif"
,"image/bmp","image/svg+xml"]),i.extendUsableTypes(r.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),i.extendUsableTypes(r.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),i.extendUsableTypes(r.PARAGRAPH_STYLE_ELEMENT_TYPE,[]),i.extendUsableTypes(r.CHARACTER_STYLE_ELEMENT_TYPE,[]),i.extendUsableTypes(r.LAYER_STYLE_ELEMENT_TYPE,[]),i.extendUsableTypes(r.BRUSH_ELEMENT_TYPE,[]),i.extendUsableTypes(r.LOOK_ELEMENT_TYPE,[]),c.execApp("getTooltipState").then(function(e){t.get
("configuration").showTooltips=e}),this.startEventListener(),s.addListener("libraryList",function(){h()}),s.addListener("currentLibrary",function(){h()}),s.addListener("libraryStatus",function(){h()})},this.reportEvent=function(e,t){var n=new CSEvent("com.adobe.DesignLibraries.events.LOGPIP","APPLICATION"),r=function(e){return e||"N/A"},i={eventName:r(e),libraryID:r(t.libraryID),elementType:r(t.elementType),opType:r(t.opType)};n.data=JSON.stringify(i),c.dispatchEvent(n)};var p=function(){var e=t.
get("layerSelectionManager");e.handleSelectionChange()},d=function(e){return undefined},v=function(e){e.data.documentStatus==="open"?r.currentProduct.config.isDocumentOpen=!0:r.currentProduct.config.isDocumentOpen=!1},m=function(e){if(e&&e.data){var t=e.data,n=t.elementRef,i=t.SVGConversionOptions||{},o=s.resolveElementReference(n),u="",l="",h="",p=!0,d={},v=function(){c.execApp("notifyFetchSVGRenditionComplete",[JSON.stringify(d)])};d.svgData="",d.errorMessage="",d.requestRef=t.requestRef;if(o){
var m=o.getPrimaryRepresentation();if(m&&m.type==="application/illustrator"){var g=s.getPrivateLibraryCollection();h=g?g.userId:"",u=r.currentProduct.config.createAGCURL[a.getEnvironment().label.toLowerCase()],l=r.currentProduct.config.svgomgURL[a.getEnvironment().label.toLowerCase()]}else d.errorMessage="Element is not an Ai asset"}else d.errorMessage="Element not found in the Libraries";n&&h&&u&&l?(p=!1,a.getAccessToken(h).then(function(e){var r={inputs:{application_file:{href:n}},outputs:{agc:
{disposition:"location"}}},s={headers:{"Content-Type":"application/vnd.adobe.image-operation+json",Authorization:"Bearer "+e,"X-api-key":a.getEnvironment().clientId,"x-request-id":t.requestRef}};f.post(u,r,s).then(function(n){if(n&&n.data&&n.data.outputs&&n.data.outputs.agc&&n.data.outputs.agc.location){var r={inputs:{href:n.data.outputs.agc.location},options:i},s={headers:{"Content-Type":"application/vnd.adobe.dwbedrockservice-operation+json",Authorization:"Bearer "+e,"X-api-key":a.getEnvironment
().clientId,"X-request-id":t.requestRef}};f.post(l,r,s).then(function(e){d.svgData=e.data,v()},function(e){d.errorMessage="Could not Fetch SVG DATA. STATUS: "+e.status+". Response Data: "+e.data,v()})}else d.errorMessage="Could not Fetch AGC DATA. Incorrect Data",v()},function(e){d.errorMessage="Could not Fetch AGC DATA. STATUS: "+e.status+". Response Data: "+e.data,v()})},function(e){d.errorMessage="Error Generating Access Token",v()})):d.errorMessage="Internal Error, could not fetch user detail/asset detail"
,p&&v()}};this.startEventListener=function(){c.addEventListener("selectionChanged",p),c.addEventListener("addAssetToLibrary",d),c.addEventListener("requestSVGRenditionForAi",m),c.addEventListener("documentChanged",v)},this.stopEventListener=function(){c.removeEventListener("selectionChanged",p),c.removeEventListener("addAssetToLibrary",d),c.removeEventListener("requestSVGRenditionForAi",m),c.removeEventListener("documentChanged",v)}}];t.attach=function(e){n.module(e).service("DRWV",r)}}),define("applications/FLPR/js/index"
,["require","exports","angular"],function(e,t){"use strict";var n=e("angular"),r=["$injector","colorUtils","configuration","fileUtils","csInterface",function(e,t,n,r,i){this.config={},this.config.code="FLPR",this.config.fullName="FlashPro",this.config.translationSuffix="FP",this.config.dragDropSource="com.adobe.flashpro",this.config.isDrover=!0,this.config.themes={444444:"dark",dbdbdb:"lighter"},this.config.elementOrder=[n.COLOR_ELEMENT_TYPE,n.COLOR_THEME_ELEMENT_TYPE,n.BRUSH_ELEMENT_TYPE,n.IMAGE_ELEMENT_TYPE
,n.VIDEO_ELEMENT_TYPE,n.CHARACTER_STYLE_ELEMENT_TYPE,n.PARAGRAPH_STYLE_ELEMENT_TYPE,n.LAYER_STYLE_ELEMENT_TYPE,n.LOOK_ELEMENT_TYPE,n.THREE_D_ELEMENT_TYPE,n.PATTERN_ELEMENT_TYPE,"*"],this.config.analytics={namespace:"fl",prodId:"adbemflashpro.rebootprod2",devId:"adbemflashpro.rebootdev2"},this.init=function(){r.extendUsableTypes(n.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),r.extendUsableTypes(n.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),r.extendUsableTypes(n.
BRUSH_ELEMENT_TYPE,["application/vnd.adobe.vector.brush+zip"]),r.extendUsableTypes(n.IMAGE_ELEMENT_TYPE,["image/svg+xml","image/png","image/jpeg","image/jpg","image/gif","image/bmp","application/photoshop","image/vnd.adobe.photoshop","application/photoshop.large","application/illustrator"]),r.extendUsableTypes(n.VIDEO_ELEMENT_TYPE,[]),r.extendUsableTypes(n.CHARACTER_STYLE_ELEMENT_TYPE,[]),r.extendUsableTypes(n.PARAGRAPH_STYLE_ELEMENT_TYPE,[]),r.extendUsableTypes(n.LAYER_STYLE_ELEMENT_TYPE,[]),r.extendUsableTypes
(n.LOOK_ELEMENT_TYPE,[]),r.extendUsableTypes(n.THREE_D_ELEMENT_TYPE,[]),i.execApp("getTooltipState").then(function(t){e.get("configuration").showTooltips=t}),this.startEventListener()},this.reportEvent=function(e,t){i.execApp("reportEvent",[e,t]).then(function(t){var n=JSON.parse(t);n&&console.log(e+" metric reported to FL")})};var s=function(){var t=e.get("layerSelectionManager");t.handleSelectionChange()};this.startEventListener=function(){i.addEventListener("com.adobe.events.flash.selectionChanged"
,s)},this.stopEventListener=function(){i.removeEventListener("com.adobe.events.flash.selectionChanged",s)}}];t.attach=function(e){n.module(e).service("FLPR",r)}}),define("applications/IDSN/js/index",["require","exports","angular"],function(e,t){"use strict";var n=e("angular"),r=["$q","$rootScope","configuration","csInterface","layerSelectionManager","colorUtils","designLibraryManager","designLibraryElements","designLibraryUtils","fileUtils","$translate","mediator","designLibraryFlyoutMenu","localSettings"
,"designLibraryViewState",function(e,t,n,r,i,s,o,u,a,f,l,c,h,p,d){this.getScaleColor=function(e){var t=52,n=185,r=e>=51,i=r?.61:.62,o=r?n:t,u=r?e-51:e,a=u*i+o;return s.rgbToHex({red:a,green:a,blue:a})},this.cssThemeBGScale=function(){var e,t,n={},r=function(e){switch(e){case 0:return"darker";case 33:return"dark";case 66:return"light";case 100:return"lighter";default:return e.toString()}};for(e=0;e<=100;e++){t=this.getScaleColor(e).slice(1);if(!n.hasOwnProperty(t)||n.hasOwnProperty(t)&&r(e)!==e.toString
())n[t]=r(e)}return n},this.config={},this.config.code="IDSN",this.config.fullName="InDesign",this.config.translationSuffix="ID",this.config.dragDropSource="com.adobe.indesign",this.config.isDrover=!0,this.config.offsetSelectMenu=!0,this.config.themes=this.cssThemeBGScale(),this.config.rgbRound=Math.round,this.config.elementOrder=[n.COLOR_ELEMENT_TYPE,n.COLOR_THEME_ELEMENT_TYPE,n.CHARACTER_STYLE_ELEMENT_TYPE,n.PARAGRAPH_STYLE_ELEMENT_TYPE,n.LAYER_STYLE_ELEMENT_TYPE,n.BRUSH_ELEMENT_TYPE,n.IMAGE_ELEMENT_TYPE
,n.VIDEO_ELEMENT_TYPE,n.LOOK_ELEMENT_TYPE,n.THREE_D_ELEMENT_TYPE,n.PATTERN_ELEMENT_TYPE,"*"],this.config.analytics={namespace:"id",prodId:"adbemindesign.rebootprod2",devId:"adbemindesign.rebootdev2"};var v=function(){d.resetMode()},m=function(){r.execApp("isAppInTouchMode").then(function(e){e==="true"?(n.CONTEXT_MENUS_ENABLED=!1,n.IS_APP_IN_TOUCH_MODE=!0):(n.CONTEXT_MENUS_ENABLED=!0,n.IS_APP_IN_TOUCH_MODE=!1)}),v()},g=function(){var e=[];o.getLibraries().forEach(function(t){t.isDeletedFromServer||
e.push({name:t.name,id:t.id,writable:t.isWritable})}),e.sort(function(e,t){return e.name<t.name?-1:e.name>t.name?1:0});var t=-1,n=o.getCurrentLibrary();if(n){var i;for(i=0;i<e.length;++i)if(e[i].id===n.id){t=i;break}}var s={};s.names=e,s.current=t,r.execApp("setLibraryCollection",[JSON.stringify(s)])};this.init=function(){f.extendUsableTypes(n.IMAGE_ELEMENT_TYPE,["application/vnd.adobe.indesign-idms","image/png","image/jpeg","image/jpg","image/gif","image/bmp","application/photoshop","application/photoshop.large"
,"image/vnd.adobe.photoshop","application/illustrator","application/pdf"]),f.extendUsableTypes(n.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),f.extendUsableTypes(n.PARAGRAPH_STYLE_ELEMENT_TYPE,["application/vnd.adobe.paragraphstyle+json","application/vnd.adobe.paragraphstyle+snippet"]),f.extendUsableTypes(n.CHARACTER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.characterstyle+json","application/vnd.adobe.characterstyle+snippet"]),f.extendEditableTypes(n.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"
]),f.extendEditableTypes(n.IMAGE_ELEMENT_TYPE,["application/vnd.adobe.indesign-idms"]),r.execApp("setThumbnailExportOptions"),r.execApp("getTooltipState").then(function(e){n.showTooltips=e}),this.startEventListener(),o.waitForInitialLoad().then(function(){m();var e=new CSEvent("com.adobe.DesignLibraries.events.READY","APPLICATION");r.dispatchEvent(e)}),o.addListener("libraryList",function(){g()}),o.addListener("currentLibrary",function(){g()});var e=r.getGlobalRoot();!VulcanInterface.isAppInstalled
("indesign-10")&&!VulcanInterface.isAppInstalled("indesign-10.032")&&!VulcanInterface.isAppInstalled("indesign-10.064")&&f.removeRecursive(e+"IDSN")};var y,b=function(e){y=undefined,e instanceof Object&&e.hasOwnProperty("exportContext")?y=e.exportContext:e instanceof String&&(y=e)},w=function(){y=undefined},E=function(){return y!==undefined?y:""};this.reportEvent=function(e,t){console.log("Metric reported to ID"),t.event=e,e==="createElement"&&(t.creationContext=E());var n=new CSEvent("com.adobe.DesignLibraries.events.LOGPIP"
,"APPLICATION");n.data=JSON.stringify(t),r.dispatchEvent(n),delete t.event,e==="createElement"&&delete t.creationContext},this.setFocusToCanvas=function(){return undefined};var S=function(){i.handleSelectionChange()},x=function(){r.execApp("getTooltipState").then(function(e){n.showTooltips=e})},T=function(){c.emit("fontListChanged")},N=function(){c.emit("fontListChanged")},C=function(){v()},k=function(e){var t=e.data;if(t!==""&&t!==undefined){var n=o.getLibraryById(t);n&&o.setCurrentLibrary(n)}},
L=function(t){var r=t.data,i=r.idmsPath,s=r.pdfPath,c=r.pngPath;if(!f.existsFile(i)||!f.existsFile(s))return;var h;r.hasOwnProperty("libraryId")?r.libraryId!==""&&(h=o.getLibraryById(r.libraryId),h&&o.setCurrentLibrary(h)):h=o.getCurrentLibrary();if(!h){var p=r.libraryName;p||(p=l.instant("DL_DEFAULT_LIBRARY_NAME"));var d=o.createLibrary(p);if(!d)return;o.setCurrentLibrary(d),h=o.getCurrentLibrary()}if(!a.checkLibraryWritable(h))return;var v=h.createElement(r.assetName,n.IMAGE_ELEMENT_TYPE),m=[],
g=f.fileNameToContentType(i),y=v.createRepresentation(g,"primary");m.push(y.setContentFromPath(i)),g=f.fileNameToContentType(s);var b=v.createRepresentation(g,"rendition");m.push(b.setContentFromPath(s));if(c&&f.existsFile(c)){var w=u.setRendition(v,n.IMAGE_RENDITION_SIZE,c);m.push(w)}e.all(m).then(function(){v.endOperation()},function(){h.removeElement(v,!0)})},A=function(e){t.$apply(function(){h.invokeCreateLibrary()})},O=function(e,t){var n;e&&(n=o.getLibraryById(e)),!n&&!t&&(n=o.getCurrentLibrary
());if(!n){var r=l.instant("DL_DEFAULT_LIBRARY_NAME");n=o.createLibrary(r)}if(n&&a.checkLibraryWritable(n))return o.setCurrentLibrary(n),n=o.getCurrentLibrary(),n;return},M="data",_="colortheme",D="application/vnd.adobe.colortheme+json",P=function(t){var i=O();if(!i)return;var s=t.data,o={},u=s.themeName;s.hasOwnProperty("rule")&&(o.rule=s.rule,o.baseSwatchIndex=s.baseColorIndex),s.hasOwnProperty("mood")&&(o.mood=s.mood),o.swatches=[];var a=[],f=s.assetList;f.forEach(function(e,t){a.push(r.execApp
("getColorDataFromJSON",[JSON.stringify(e)]).then(function(e){var t=JSON.parse(e);o.swatches.push(t)}))}),e.all(a).then(function(){b(s);var e=i.createElement(u,n.COLOR_THEME_ELEMENT_TYPE),t=e.createRepresentation(D,"primary");t.setValue(_,M,o),w(),e.endOperation()})},H=function(t){var i;t.data.hasOwnProperty("libraryID")&&(i=t.data.libraryID);var s=!1;t.data.hasOwnProperty("createNewLibrary")&&(s=t.data.createNewLibrary);var o=O(i,s);if(!o)return;var u=[],a=[],f=t.data.colorList;f.forEach(function(
e,t){a.push(r.execApp("getColorDataFromJSON",[JSON.stringify(e)]).then(function(t){u.push({name:e.colorName,data:JSON.parse(t)})}))}),e.all(a).then(function(){var e=function(e){var t=o.createElement(e.name,n.COLOR_ELEMENT_TYPE);e.data.forEach(function(e,r){var i=r===0?"primary":"rendition",s=t.createRepresentation(n.COLOR_REPRESENTATION_TYPE,i);s.setValue(n.COLOR_NAMESPACE,n.COLOR_DATA_KEY,e)}),t.endOperation()},r;b(t.data);for(r=0;r<u.length;++r)e(u[r]);w()})},B="data",j="characterstyle",F="application/vnd.adobe.characterstyle+json"
,I="application/vnd.adobe.characterstyle+snippet",q="data",R="paragraphstyle",U="application/vnd.adobe.paragraphstyle+json",z="application/vnd.adobe.paragraphstyle+snippet",W=104,X=function(t,i){var s;t.data.hasOwnProperty("libraryID")&&(s=t.data.libraryID);var o=!1;t.data.hasOwnProperty("createNewLibrary")&&(o=t.data.createNewLibrary);var u=O(s,o);if(!u)return;var a,l,c,h,p;i?(a=B,l=j,c=n.CHARACTER_STYLE_ELEMENT_TYPE,h=F,p=I):(a=q,l=R,c=n.PARAGRAPH_STYLE_ELEMENT_TYPE,h=U,p=z);var d;t.data.documentID?
d=t.data.documentID:d=-1;var v=t.data.styleUIDList;v.forEach(function(n,s){var o=i?"getCharStyleInfoByID":"getParaStyleInfoByID";r.execApp(o,[d,n]).then(function(n){var r=JSON.parse(n);b(t.data);var i=u.createElement(r.styleName,c);w();var s=[],o=i.createRepresentation(p,"primary"),d=o.setContentFromPath(r.idmsPath).then(function(){f.deleteFile(r.idmsPath)});s.push(d);var v=i.createRepresentation(h,"rendition");v.setValue(l,a,r.styleInfo);if(r.previewPath){var m=i.createRepresentation("image/png"
,"rendition");d=m.setContentFromPath(r.previewPath),s.push(d)}e.all(s).then(function(){r.previewPath&&i.setThumbnailCache(W,r.previewPath,function(){f.deleteFile(r.previewPath)}),i.endOperation()})})})},V=function(e){X(e,!1)},$=function(e){X(e,!0)},J=function(e){e.data&&k(e),m()};this.startEventListener=function(){r.addEventListener("afterSelectionChanged",S),r.addEventListener("afterSelectionAttributeChanged",S),r.addEventListener("colorChanged",S),r.addEventListener("colorTransformChanged",S),r
.addEventListener("uiPreferencesChanged",x),r.addEventListener("fontListChanged",T),r.addEventListener("documentAfterActivate",N),r.addEventListener("newAssetToMigrate",L),r.addEventListener("createNewCloudLibrary",A),r.addEventListener("createNewColorTheme",P),r.addEventListener("createNewColors",H),r.addEventListener("createNewParaStyles",V),r.addEventListener("createNewCharStyles",$),r.addEventListener("documentAfterDeactivate",C),r.addEventListener("afterWorkspaceChanged",J)},this.stopEventListener=
function(){r.removeEventListener("afterSelectionChanged",S),r.removeEventListener("afterSelectionAttributeChanged",S),r.removeEventListener("colorChanged",S),r.removeEventListener("colorTransformChanged",S),r.removeEventListener("uiPreferencesChanged",x),r.removeEventListener("fontListChanged",T),r.removeEventListener("documentAfterActivate",N),r.removeEventListener("newAssetToMigrate",L),r.removeEventListener("createNewCloudLibrary",A),r.removeEventListener("createNewColorTheme",P),r.removeEventListener
("createNewColors",H),r.removeEventListener("createNewParaStyles",V),r.removeEventListener("createNewCharStyles",$),r.removeEventListener("documentAfterDeactivate",C),r.removeEventListener("afterWorkspaceChanged",J)},this.dropHandler=function(e){return console.log("InDesign app is handling",e),!1}}];t.attach=function(e){n.module(e).service("IDSN",r)}}),define("applications/ILST/js/events",["require","exports","module"],function(e,t){"use strict";var n=["csInterface","mediator","layerSelectionManager"
,"designLibraryManager","ILSTColorUtils","ILSTPushUtils","ILSTTextUtils","ILSTUtils",function(e,t,n,r,i,s,o,u){this.setFocusToCanvas=function(){return undefined};var a=function(e){t.emit("fontListChanged")},f=function(){n.handleSelectionChange()};this.updateLibrariesInfo=function(){var t=[];r.getLibraries().forEach(function(e){e.isDeletedFromServer||t.push({name:e.name,id:e.id,writable:e.isWritable})}),t.sort(function(e,t){return e.name<t.name?-1:e.name>t.name?1:0});var n=-1,i=r.getCurrentLibrary
();if(i){var s;for(s=0;s<t.length;++s)if(t[s].id===i.id){n=s;break}}var o=new CSEvent("ILST.libraryListUpdated","APPLICATION");o.data={names:t,current:n},e.dispatchEvent(o)};var l=function(e){r.sync(!1,!1)},c=function(e){u.getLibraryFromEventData(e.data)};this.listen=function(){e.addEventListener("artSelectionChanged",f),e.addEventListener("fontListChanged",a),e.addEventListener("ILST.addElementToLibrary",s.onAddElementToLibrary),e.addEventListener("ILST.updateElement",s.onUpdateElement),e.addEventListener
("ILST.forceSyncLibrary",l),e.addEventListener("ILST.pushColorsToLibrary",i.pushColorsToLibrary),e.addEventListener("ILST.pushCharStyleToLibrary",o.addTextStyle),e.addEventListener("ILST.pushParaStyleToLibrary",o.addParaStyle),e.addEventListener("ILST.addSelectionToLibrary",s.onAddSelectionToLibrary),e.addEventListener("ILST.workspaceChanged",c)},this.stop=function(){e.removeEventListener("artSelectionChanged",f),e.removeEventListener("fontListChanged",a),e.removeEventListener("ILST.addElementToLibrary"
,s.onAddElementToLibrary),e.removeEventListener("ILST.updateElement",s.onUpdateElement),e.removeEventListener("ILST.forceSyncLibrary",l),e.removeEventListener("ILST.pushColorsToLibrary",i.pushColorsToLibrary),e.removeEventListener("ILST.pushCharStyleToLibrary",o.addTextStyle),e.removeEventListener("ILST.pushParaStyleToLibrary",o.addParaStyle),e.removeEventListener("ILST.addSelectionToLibrary",s.onAddSelectionToLibrary),e.removeEventListener("ILST.workspaceChanged",c)}}];t.attach=function(e){angular
.module(e).service("ILSTEvents",n)}}),define("applications/ILST/js/pushUtils",["require","exports","module"],function(e,t){"use strict";var n=["csInterface","$window","ccLibraries","designLibraryManager","configuration","designLibraryUtils","$q","fileUtils","designLibraryCEPEventEmitters","linkUtils","designLibraryStatus","designLibraryElements","designLibraryElementUtils",function(e,t,n,r,i,s,o,u,a,f,l,c,h){var p=function(t,n){if(t){var r=t.element,i=r.getReference();t.getContentPath().then(function(
t){var s=new CSEvent("com.adobe.DesignLibraries.events.ElementUpdated","APPLICATION");s.data=JSON.stringify({requestRef:n,elementRef:i,name:r.name,libraryName:r.library.name,modifiedTime:c.getElementModifiedTime(r),creationTime:r.created,data:[t]}),e.dispatchEvent(s)})}},d=function(e,t,n){var r=t&&t.files||[],i=0,s,o,a,f;for(i=0;i<r.length;i++)s=r[i],o=u.fileNameToContentType(s.path),a=n.createRepresentation(o,s.relationship),f=a.setContentFromPath(s.path),e.push(f)},v=function(t){var n=new CSEvent
("ILST.InitialCommunicationError","APPLICATION"),r=l.getStatus();n.data={elementIdentifier:t,status:"error",error:r&&r.errorType||"kError"},e.dispatchEvent(n)},m=function(n,i,s,o){var u=!1,a=!1,c=function(r){var i=new CSEvent("ILST.elementUploaded","APPLICATION"),s=r||{errorType:"kNoErr",state:"ok"},o=t.navigator.onLine;o||(s.state="error",s.errorType="kNoInternet"),i.data={elementRef:n.getReference(),status:s.state,error:s.errorType||"kNoErr"},e.dispatchEvent(i)},h=function(){var e=l.getStatus()
;!a&&(e.state==="ok"||e.state==="error")&&(c(e),a=!0,i&&e.state==="ok"&&!u&&(o==="kAIChart"?f.openElementURL(n,"charts",s):o==="kAIArt"&&f.openElementURL(n,"details",s),u=!0),r.removeListener("libraryStatus",h))};r.syncingEnabled()?r.addListener("libraryStatus",h):c(l.getStatus())},g=function(e){e&&u.existsFile(e)&&u.deleteFile(e)},y=function(e){var t=0;for(t=0;t<e.length;t++)g(e[t].path)},b=function(e,t,n){if(!e)throw"No current library";if(!t||!t.files||!n)throw"event data invalid"};this.onAddElementToLibrary=
function(e){var t=o.defer(),n=e.data.fileData,u=e.data.elementType,f=null,l=r.getCurrentLibrary(),c=e.data.additionalQueryParameters,p=e.data.openBrowserAfterOperation;if(!s.checkLibraryWritable(l))return;try{b(l,n,u);if(n.layerIds===null||n.documentId===null)throw"layer Ids Or documentId cannot be null";if(u!=="kAIArt"&&u!=="kAIChart")throw"Element not supported yet";f=i.IMAGE_ELEMENT_TYPE,u==="kAIChart"?n.layerName=s.getCuratedName(l,n.layerName,"DL_CHART_LABEL"):n.layerName=s.getCuratedName(l,
n.layerName);var w=l.createElement(n.layerName,f),E=[];return d(E,n,w),o.all(E).then(function(){n.rendition&&w.setThumbnailCache(i.IMAGE_RENDITION_SIZE,n.rendition).then(function(){y(n.files),g(n.rendition.path)}),w.endOperation(),h.revealElement(w);var e={documentId:n.documentId,layerIds:n.layerIds};a.sendElementCreated(w,e).then(function(){m(w,p,c,u),t.resolve(w)})},function(){t.reject("Could not add element")}),t.promise}catch(S){v(n.layerIds&&n.layerIds[0]||null),t.reject("Could not add element: "+
S)}},this.onUpdateElement=function(e){var t=o.defer(),r=e.data.fileData,u=e.data.elementType,a=e.data.elementRef,f=e.data.additionalQueryParameters,l=e.data.openBrowserAfterOperation;try{if(!a)throw"elementRef missing";var c=n.resolveElementReference(a);if(!c)throw"Element not found";h.revealElement(c);var w=c.library;if(!s.checkLibraryWritable(w))return;b(w,r,u),c.isDeletedLocally?c=w.createElement(c.name,c.type):(c.beginOperation(),c.removeAllRepresentations());var E=[];return d(E,r,c),o.all(E)
.then(function(){r.rendition&&c.setThumbnailCache(i.IMAGE_RENDITION_SIZE,r.rendition).then(function(){y(r.files),g(r.rendition.path)}),c.endOperation(),p(c.getPrimaryRepresentation(),e.data.requestRef),m(c,l,f,u),t.resolve(c)},function(){t.reject("Could not update element")}),t.promise}catch(S){v(e.data.requestRef),t.reject("Could not update element: "+S)}};var w=function(e,t){var n=o.defer();return s.generatePreview(!0,t).then(function(r){var i={documentId:r.documentId,layerIds:r.layerIds,dragAssetId
:t};n.resolve(h.addGraphicElement(r.layerName,r.files,r.rendition,e,i))},function(){n.reject("Could not extract asset.")}),n.promise};this.onAddSelectionToLibrary=function(e){return w(r.getCurrentLibrary(),undefined,undefined)}}];t.attach=function(e){angular.module(e).service("ILSTPushUtils",n)}}),define("applications/ILST/js/colorUtils",["require","exports","module"],function(e,t){"use strict";var n=["csInterface","$q","designLibraryManager","configuration","ILSTUtils","designLibraryElementUtils"
,"designLibraryUtils",function(e,t,n,r,i,s,o){var u=function(n){var u=t.defer(),a=i.getLibraryFromEventData(n.data);a||u.defer("Library Error");if(!o.checkLibraryWritable(a))return;var f=function(e){var t=e.name;t||(e.data&&e.data[0]&&e.data[0].type&&e.data[0].type==="spot"&&(t=e.data[0].spotColorName),t=t||"");var n=a.createElement(t,r.COLOR_ELEMENT_TYPE);return e.data.forEach(function(e,t){var i=t===0?"primary":"rendition",s=n.createRepresentation(r.COLOR_REPRESENTATION_TYPE,i);s.setValue(r.COLOR_NAMESPACE
,r.COLOR_DATA_KEY,e)}),n.endOperation(),n};return e.execApp("getSelectedSwatchList").then(function(e){e||u.reject("err");var t;try{e=JSON.parse(e),e.forEach(function(e,n){e.data&&(t=f(e))})}catch(n){u.reject("err")}t&&s.revealElement(t),u.resolve()},function(){u.reject("err")}),u.promise},a="data",f="colortheme",l="application/vnd.adobe.colortheme+json",c=function(n){var u=t.defer(),c=i.getLibraryFromEventData(n.data);if(!c)return;if(!o.checkLibraryWritable(c))return;var h=function(e){var t=e.mood
,n,i=0;t||(t="");if(e.swatches&&e.swatches.length<=5&&e.swatches.length>0){var s=e.swatches[e.swatches.length-1]||[];for(i=e.swatches.length;i<5;i++)e.swatches.push(s);n=c.createElement(t,r.COLOR_THEME_ELEMENT_TYPE);var o=n.createRepresentation(l,"primary");o.setValue(f,a,e),n.endOperation()}return n};return e.execApp("getSelectedSwatchGroupList").then(function(e){e||u.reject("err");var t;e=JSON.parse(e),e.length>0&&(e.forEach(function(e,n){t=h(e)}),t&&s.revealElement(t)),u.resolve()},function(){
u.reject("err")}),u.promise};this.pushColorsToLibrary=function(e){var n=e.data,r=t.defer(),i=[];return n&&(n.uploadSwatch&&i.push(u(e)),n.uploadSwatchGroup&&i.push(c(e))),t.all(i).then(function(){r.resolve()},function(){r.reject()}),r.promise}}];t.attach=function(e){angular.module(e).service("ILSTColorUtils",n)}}),define("applications/ILST/js/utils",["require","exports","module"],function(e,t){"use strict";var n=["$translate","designLibraryManager","configuration",function(e,t,n){this.PIPGlobals=
{},this.PIPGlobals.DLtoAI="DL_To_Ai",this.PIPGlobals.CharacterStyle="Character_Style",this.PIPGlobals.ParagraphStyle="Paragraph_Style",this.PIPGlobals.Color="Color",this.PIPGlobals.SwatchGroups="Swatch_Groups",this.PIPGlobals.Added="Added",this.PIPGlobals.Applied="Applied",this.getDefaultLibrary=function(){var n=t.getCurrentLibrary();if(!n){var r=e.instant("DL_DEFAULT_LIBRARY_NAME"),i=t.createLibrary(r);if(!i)throw"Could not create new library";t.setCurrentLibrary(i),n=t.getCurrentLibrary()}return n
},this.acquireLibrary=function(n,r){var i;n&&(i=t.getLibraryById(n)),!i&&!r&&(i=t.getCurrentLibrary());if(!i){var s=e.instant("DL_DEFAULT_LIBRARY_NAME");i=t.createLibrary(s)}return i&&(t.setCurrentLibrary(i),i=t.getCurrentLibrary()),i},this.getLibraryFromEventData=function(e){var t;e.hasOwnProperty("libraryID")&&(t=e.libraryID);var n=!1;return e.hasOwnProperty("createNewLibrary")&&(n=JSON.parse(e.createNewLibrary)),this.acquireLibrary(t,n)},this.logPIPEvent=function(e,t,r){if(angular.isFunction(n
.currentProduct.reportEvent)){var i={category:e,subcategory:t,eventname:r};n.currentProduct.reportEvent("event",i)}}}];t.attach=function(e){angular.module(e).service("ILSTUtils",n)}}),define("applications/ILST/js/textUtils",["require","exports","module"],function(e,t){"use strict";var n=["csInterface","$q","designLibraryManager","configuration","ILSTUtils","fileUtils","designLibraryElementUtils","designLibraryUtils",function(e,t,n,r,i,s,o,u){var a=function(n,a){var f=i.getLibraryFromEventData(
n.data);if(!f)return;if(!u.checkLibraryWritable(f))return;var l,c,h,p;a?(l="data",c="characterstyle",h=r.CHARACTER_STYLE_ELEMENT_TYPE,p="application/vnd.adobe.characterstyle+json"):(l="data",c="paragraphstyle",h=r.PARAGRAPH_STYLE_ELEMENT_TYPE,p="application/vnd.adobe.paragraphstyle+json");var d=n.data.styleNames,v=a?"addCharStyleById":"addParaStyleById";d.forEach(function(n,i){e.execApp(v,[n]).then(function(e){var n=JSON.parse(e),i=f.createElement(n.styleName,h),u=[],a,d;a=i.createRepresentation(
p,"primary"),a.setValue(c,l,n.styleInfo);if(n.previewPath){var v=i.createRepresentation("image/png","rendition");d=v.setContentFromPath(n.previewPath),u.push(d)}t.all(u).then(function(){n.previewPath&&i.setThumbnailCache(r.CHARACTER_STYLE_RENDITION_SIZE,n.previewPath,function(){s.deleteFile(n.previewPath)}),i.endOperation(),o.revealElement(i)})})})};this.addTextStyle=function(e){a(e,!0)},this.addParaStyle=function(e){a(e,!1)}}];t.attach=function(e){angular.module(e).service("ILSTTextUtils",n)}}),
define("applications/ILST/js/index",["require","exports","angular","./events","./pushUtils","./colorUtils","./utils","./textUtils"],function(e,t){"use strict";var n=e("angular"),r=e("./events"),i=e("./pushUtils"),s=e("./colorUtils"),o=e("./utils"),u=e("./textUtils"),a=["configuration","csInterface","ILSTEvents","colorUtils","localSettings","fileUtils","designLibraryManager",function(e,t,n,r,i,s,o){this.getILSTScaleColor=function(e){var t=52,n=184,i=e<51?!1:!0,s=i?.61:.62,o=i?n:t,u=i?e-51:e,a=u*
s+o;return r.rgbToHex({red:a,green:a,blue:a})},this.cssThemeBGScale=function(){var e,t,n={},r=function(e){switch(e){case 0:return"darker";case 33:return"dark";case 66:return"light";case 100:return"lighter";default:return e.toString()}};for(e=0;e<=100;e++){t=this.getILSTScaleColor(e).slice(1);if(!n.hasOwnProperty(t)||n.hasOwnProperty(t)&&r(e)!==e.toString())n[t]=r(e)}return n},this.config={},this.config.code="ILST",this.config.fullName="Illustrator",this.config.translationSuffix="AI",this.config.dragDropSource="com.adobe.illustrator"
,this.config.isDrover=!0,this.config.offsetSelectMenu=!0,this.config.themes=this.cssThemeBGScale(),this.config.elementOrder=[e.COLOR_ELEMENT_TYPE,e.COLOR_THEME_ELEMENT_TYPE,e.CHARACTER_STYLE_ELEMENT_TYPE,e.PARAGRAPH_STYLE_ELEMENT_TYPE,e.LAYER_STYLE_ELEMENT_TYPE,e.BRUSH_ELEMENT_TYPE,e.IMAGE_ELEMENT_TYPE,e.VIDEO_ELEMENT_TYPE,e.LOOK_ELEMENT_TYPE,e.THREE_D_ELEMENT_TYPE,e.PATTERN_ELEMENT_TYPE,"*"],this.config.analytics={namespace:"ai",prodId:"adbemillustrator.rebootprod2",devId:"adbemillustrator.rebootdev2"
},this.startEventListener=function(){n.listen()},this.stopEventListener=function(){n.stop()},this.init=function(){s.extendUsableTypes(e.IMAGE_ELEMENT_TYPE,["image/png","image/jpeg","image/jpg","image/svg+xml","application/photoshop","application/photoshop.large","image/vnd.adobe.photoshop","application/illustrator","application/pdf"]),s.extendUsableTypes(e.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),s.extendUsableTypes(e.BRUSH_ELEMENT_TYPE,["application/vnd.adobe.vector.brush+zip"
]),s.extendUsableTypes(e.CHARACTER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.characterstyle+json"]),s.extendUsableTypes(e.PARAGRAPH_STYLE_ELEMENT_TYPE,["application/vnd.adobe.paragraphstyle+json"]),s.extendEditableTypes(e.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),s.extendEditableTypes(e.IMAGE_ELEMENT_TYPE,["image/svg+xml","application/illustrator"]),t.execApp("setThumbnailExportOptions"),t.execApp("getTooltipState").then(function(t){e.showTooltips=t}),this.startEventListener();var r=
t.getGlobalRoot();!VulcanInterface.isAppInstalled("illustrator-18")&&!VulcanInterface.isAppInstalled("illustrator-18.032")&&!VulcanInterface.isAppInstalled("illustrator-18.064")&&s.removeRecursive(r+"ILST"),o.waitForInitialLoad().then(function(){var e=new CSEvent("com.adobe.DesignLibraries.events.READY","APPLICATION");t.dispatchEvent(e)}),o.addListener("libraryList",function(){n.updateLibrariesInfo()}),o.addListener("currentLibrary",function(){n.updateLibrariesInfo()})},this.reportEvent=function(
e,n){console.log("Metric reported to AI"),n.event=e;var r=new CSEvent("com.adobe.illustrator.LOGPIP","APPLICATION");r.data=JSON.stringify(n),t.dispatchEvent(r),delete n.event}}];t.attach=function(e){r.attach(e),i.attach(e),s.attach(e),u.attach(e),o.attach(e),n.module(e).service("ILST",a)}}),define("applications/MUSE/js/index",["require","exports","angular"],function(e,t){"use strict";var n=e("angular"),r=["$injector","colorUtils","configuration","fileUtils","csInterface","layerSelectionManager"
,"designLibraryManager","designLibrarySelection","designLibraryElements","versionManager",function(e,t,n,r,i,s,o,u,a,f){this.config={},this.config.code="MUSE",this.config.fullName="Muse",this.config.translationSuffix="MU",this.config.dragDropSource="com.adobe.muse",this.config.isDrover=!0,this.config.themes={343434:"darker",484848:"dark",c2c2c2:"light",d6d6d6:"lighter"},this.config.defaultTheme="dark",this.config.elementOrder=[n.COLOR_ELEMENT_TYPE,n.COLOR_THEME_ELEMENT_TYPE,n.IMAGE_ELEMENT_TYPE,n
.CHARACTER_STYLE_ELEMENT_TYPE,n.PARAGRAPH_STYLE_ELEMENT_TYPE,n.LAYER_STYLE_ELEMENT_TYPE,n.BRUSH_ELEMENT_TYPE,n.VIDEO_ELEMENT_TYPE,n.LOOK_ELEMENT_TYPE,n.THREE_D_ELEMENT_TYPE,n.PATTERN_ELEMENT_TYPE,"*"],this.config.analytics={namespace:"mu",prodId:"adbemmuse.rebootprod2",devId:"adbemmuse.rebootdev2"},this.init=function(){r.extendUsableTypes(n.IMAGE_ELEMENT_TYPE,["application/vnd.adobe.muse-collection","image/svg+xml","application/illustrator","image/png","image/jpeg","image/jpg","image/gif"]),r.extendUsableTypes
(n.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),r.extendUsableTypes(n.PARAGRAPH_STYLE_ELEMENT_TYPE,[]),r.extendUsableTypes(n.CHARACTER_STYLE_ELEMENT_TYPE,[]),r.extendEditableTypes(n.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),i.execApp("getTooltipState").then(function(e){n.showTooltips=e}),this.startEventListener(),o.waitForInitialLoad().then(function(){var e=new CSEvent("com.adobe.DesignLibraries.events.READY","APPLICATION");i.dispatchEvent(e)})},this.reportEvent=
function(e,t){console.log("Metric reported to Mu"),t.event=e;var n=new CSEvent("com.adobe.muse.LOGPIP","APPLICATION");n.data=JSON.stringify(t),i.dispatchEvent(n),delete t.event},this.setFocusToCanvas=function(){return undefined};var l=function(){s.handleSelectionChange()};this.startEventListener=function(){i.addEventListener("afterSelectionChanged",l)},this.stopEventListener=function(){i.removeEventListener("afterSelectionChanged",l)};var c=function(e){if(a.isDraggable(e))return!0;var t=e.getPrimaryRepresentation
();return!t||t.type!=="image/vnd.adobe.photoshop"&&t.type!=="application/vnd.adobe.indesign-idms"?!1:!0};this.onDragStartHandler=function(e,t){var s=u.getSelection(),o,l=e.originalEvent,h=l.clientX,p=l.clientY,d=l.timeStamp,v=[];s.forEach(function(e){if(o===undefined||o===e.type){o===undefined&&(o=e.type);if(n.COLOR_ELEMENT_TYPE===o){var t,i,s=r.getUsableTypes(n.COLOR_ELEMENT_TYPE),u;for(t=0;t<e.representations.length;t++)i=e.representations[t],a.isRepresentationCompatible(i,s)&&(u=i.getValue(n.COLOR_NAMESPACE
,n.COLOR_DATA_KEY),u.mode==="RGB"&&v.push(u))}else if(c(e)){var f=a.getDragData(e);v.push({path:f.data[0],displayName:e.displayName,elementRef:e.getReference()})}}});if(n.COLOR_ELEMENT_TYPE===o){i.execApp("startDragHandler",["color",v,h,p,d]);var m={source:n.DRAGDROP_SOURCE,version:f.getPluginVersion(),assetList:v};e.dataTransfer.setData("Text",JSON.stringify(m))}else if(n.IMAGE_ELEMENT_TYPE===o){i.execApp("startDragHandler",["image",v,h,p,d]);var g={source:n.DRAGDROP_SOURCE,version:f.getPluginVersion
(),assetList:v};e.dataTransfer.setData("Text",JSON.stringify(g))}},this.log=function(e){i.execApp("museLog",[e])}}];t.attach=function(e){n.module(e).service("MUSE",r)}}),define("applications/PHXS/js/colorUtils",["require","exports","module"],function(e,t){"use strict";var n=["$q","descriptor","configuration","designLibraryElementUtils","designLibraryManager","designLibraryUtils",function(e,t,n,r,i,s){function o(e){var n={type:"process"},r=t.detype(e);switch(r){case"CMYKColorClass":n.mode="CMYK"
,n.value={c:e.cyan,m:e.magenta,y:e.yellowColor,k:e.black};break;case"RGBColor":n.mode="RGB",n.value={r:e.red,g:e.grain,b:e.blue};break;case"HSBColorClass":n.mode="HSB",n.value={h:e.hue._value,s:e.saturation,b:e.brightness};break;case"labColor":n.mode="Lab",n.value={l:e.luminance,a:e.a,b:e.b};break;case"grayscale":n.mode="Gray",n.value=e.gray;break;default:n.mode=r,n.value=e}return n}this.addPSColor=function(t,u,a,f){t=t||"";var l=e.defer();try{var c=i.getDefaultLibrary();if(!c)throw"No library";if(!
s.checkLibraryWritable(c))return;var h="application/vnd.adobe.color+json",p=s.createElementExtraMetrics(c,t,n.COLOR_ELEMENT_TYPE,{opType:f});u&&p.createRepresentation(h,"primary").setValue("color","data",o(u)),a&&p.createRepresentation(h,"rendition").setValue("color","data",o(a)),p.endOperation(),r.revealElement(p),l.resolve(p)}catch(d){l.reject("Could not add color: "+d)}return l.promise}}];t.attach=function(e){angular.module(e).service("phxsColorUtils",n)}}),define("applications/PHXS/js/descriptor"
,["require","exports","module"],function(e,t){"use strict";var n=["$q","$translate","fileUtils","csInterface","mediator","configuration","designLibraryManager","designLibraryElements",function(e,t,n,r,i,s,o,u){this.detype=function(e){return e._obj},this.deref=function(e){return e._value},this.ify=function(e){var t={},n=Object.keys(e),r=n.length,i,s;for(i=0;i<r;++i)s=n[i],typeof e[s]=="object"?t[s]={_obj:"",_value:this.ify(e[s])}:t[s]=e[s];return t}}];t.attach=function(e){angular.module(e).service
("descriptor",n)}}),define("applications/PHXS/js/events",["require","exports","module"],function(e,t){"use strict";var n=["csInterface","mediator","configuration","designLibraryManager","layerSelectionManager","phxsPush",function(e,t,n,r,i,s){var o,u=function(e){return i.handleSelectionChange(),e.documentID!==o&&(n.currentProduct.handleActiveDocChanged(e.documentID),o=e.documentID),!1},a=function(e){return i.handleSelectionChange(),!1},f=function(e){return i.handleSelectionChange(),!1},l=function(
n){return e.execApp("refreshFonts").then(function(){t.emit("fontListChanged")}),!1},c=function(t){e.execApp("getTooltipState").then(function(e){n.showTooltips=e})},h=[{id:"1684816969",name:"dlDocInfoChanged",callback:u,dynamic:!1},{id:null,name:"foregroundColorChanged",callback:a,dynamic:!0},{id:null,name:"fontListChanged",callback:l,dynamic:!0},{id:null,name:"convertMode",callback:f,dynamic:!0},{id:null,name:"preferencesChanged",callback:c,dynamic:!0}],p="",d=function(e){if(!e||!e.data)return;s.
pushAssetToLibrary(e.data)},v=function(e){if(!e)return;var t={},n=e.data.indexOf("{");if(n!==-1){var r=e.data.substr(n);t=JSON.parse(r)}var i=String(t.eventID),s=h.filter(function(e){return i===e.id});s.length===1?s[0].callback(t.eventData):console.log("Expected exactly one handler per event id: "+i)};this.listen=function(){var t=h.reduce(function(e,t){return t.dynamic&&e.push(t.name),e},[]);e.exec("PHXS","getStringID",[t]).then(function(t){var i=t.split(","),s=0;h.forEach(function(e){e.dynamic&&
(e.id=i[s],s++)}),p=h.map(function(e){return e.id}).join(",");var o=new CSEvent("com.adobe.PhotoshopRegisterEvent","APPLICATION");o.data=p,e.dispatchEvent(o),e.addEventListener("com.adobe.PhotoshopJSONCallback"+n.EXTENSION_ID,v),r.waitForInitialLoad().then(function(){var t=new CSEvent("com.adobe.DesignLibraries.events.READY","APPLICATION");e.dispatchEvent(t)})}),e.addEventListener("pushAssetToLibrary",d),c()},this.stop=function(){var t=new CSEvent("com.adobe.PhotoshopUnRegisterEvent","APPLICATION"
);t.data=p,e.dispatchEvent(t),e.removeEventListener("PhotoshopCallback",v),e.removeEventListener("pushAssetToLibrary",d),p=""}}];t.attach=function(e){angular.module(e).service("phxsEvents",n)}}),define("applications/PHXS/js/imageUtils",["require","exports","module"],function(e,t){"use strict";var n=["$q","$translate","adobeStockUtils","configuration","csInterface","fileUtils","lockUtils","documentWatcher","tempFileManager","designLibraryElements","designLibraryManager","designLibraryUtils","designLibraryCEPEventEmitters"
,"designLibraryCEPEventHandlers",function(e,t,n,r,i,s,o,u,a,f,l,c,h,p){this.editImageOr3DElement=function(t){if(!f.isElementEditable(t))return!1;var r=t.getPrimaryRepresentation(),d,v,m=!1,g=!1,y="documentLock_"+t.id;a.createTempFile(t,r).then(function(e){return d=e,v=s.getFileNameWithoutExtension(d)+"p"+".png",i.execApp("openAssetForEdit",[e,v])}).then(function(r){i.exec("CORE","isDocumentOpen",[d]).then(function(i){var b=!1;i!==undefined&&i!=="undefined"&&(b=JSON.parse(i));if(!b){a.deleteTempFile
(t,d),p.elementEditCompleted(t);return}var w=u.startListening(r,d,function(r){if(r==="closed")o.obtainLock(y,function(){u.stopListening(w),m=!0,g===!1&&a.deleteTempFile(t,d),p.elementEditCompleted(t),o.releaseLock(y)});else if(r==="saved"){if(!c.checkFileSize(d))return;g=!0;var i=t.library;if(!i||i.isDeletedLocally){i=l.getCurrentLibrary();if(!i)return}o.obtainLock(y,function(){var r=n.getStockDataForElement(t);t.isDeletedLocally?t=i.createElement(t.name,t.type):(t.beginOperation(),t.removeAllRepresentations
());var u=s.fileNameToContentType(d),l=t.createRepresentation(u,"primary");r&&n.setStockData(l,r);var c=[];c.push(l.setContentFromPath(d));if(v&&s.existsFile(v)){var p=f.setRendition(t,f.getRenditionSize(t),v);c.push(p)}var b=function(){m?a.deleteTempFile(t,d):a.updateTempFile(t,l,d),g=!1,t.endOperation(),o.releaseLock(y),h.sendElementUpdated(l)};e.all(c).then(b,b)})}})})})}}];t.attach=function(e){angular.module(e).service("phxsImageUtils",n)}}),define("applications/PHXS/js/push",["require","exports"
,"module"],function(e,t){"use strict";var n=["$q","csInterface","configuration","designLibraryUtils","designLibraryElementUtils","designLibraryManager","phxsColorUtils","phxsTextUtils",function(e,t,n,r,i,s,o,u){var a=function(e){if(!e)return{};var t={elementID:e.id,elementType:function(e){if(e.type){var t=e.type.match(/application\/vnd\.adobe\.element\.(.*)\+dcx/);return t&&t.length===2?t[1]:e.type}return null}(e)},n=e.library;return n&&(t.libraryID=n.id,t.libraryElementCount=n._elements.length,n
.collaboration&&(t.libraryShared=n.collaboration)),t},f=function(e,t){angular.isFunction(n.currentProduct.reportEvent)?n.currentProduct.reportEvent(e,t,!0):console.error("Highbeam analytics not available.")},l=function(e,t){return i.addLayerStyleElement(e.name,e.aslPath,e.pngPath,s.getDefaultLibrary(),e.opType).then(function(e){i.revealElement(e)})},c=function(e,t){return u.addPSCharacterStyleWithDescID(e.name,e.descriptorID,e.previewPath,e.opType).then(function(e){i.revealElement(e)})},h=function(
e,t){return o.addPSColor(e.name,e.primary,e.secondary,e.opType)},p=function(t,n){var o=e.defer(),u=t.assetPath;if(!r.checkFileSize(u,!t.moveFile))return o.reject("Could not create element: one or more files exceed 1GB limit"),o.promise;var a={path:u,relationship:"primary",dimensions:{width:t.exportInfo.pixelWidth,height:t.exportInfo.pixelHeight}},f={};return f.layerIds=t.exportInfo.layerIDs,f.documentId=t.exportInfo.documentID,f.pushEventMetadata=n,a.dimensions.width=Number(a.dimensions.width),a.
dimensions.height=Number(a.dimensions.height),f.documentId=Number(f.documentId),typeof f.layerIds=="string"&&(f.layerIds=JSON.parse(f.layerIds)),o.resolve(i.addGraphicElement(t.name,[a],t.previewPath,s.getDefaultLibrary(),t.opType,f).then(function(e){i.revealElement(e)})),o.promise},d=[{type:"characterStyle",callback:c},{type:"color",callback:h},{type:"layerStyle",callback:l},{type:"graphic",callback:p}];this.pushAssetToLibrary=function(n){var r=e.defer(),i=[],s=n.event_metadata;i.push(r.promise)
;var o=function(e){var n=new CSEvent("pushAssetToLibraryResponse","APPLICATION"),r={appMetadata:{pushEventMetadata:s},response:e};n.data=JSON.stringify(r),t.dispatchEvent(n)},u=function(e){o({status:"ok"}),f("pushAssetToLibrary",a(e))},l=function(e){o({status:"error",details:e})};try{if(!n||!s)throw"parameter error";var c=n.assetType;if(!c)throw"asset type not defined";var h=d.filter(function(e){return c===e.type});if(!(h.length>0))throw"No asset handler found for "+c;h.forEach(function(e){i.push
(e.callback(n,s).then(u,l))}),r.resolve()}catch(p){r.reject("pushAssetToLibrary failed: "+p)}return e.all(i)}}];t.attach=function(e){angular.module(e).service("phxsPush",n)}}),define("applications/PHXS/js/textUtils",["require","exports","module"],function(e,t){"use strict";var n=["$q","csInterface","descriptor","configuration","fileUtils","designLibraryElementUtils","designLibraryManager","designLibraryUtils",function(e,t,n,r,i,s,o,u){this.addPSCharacterStyleWithDescID=function(n,s,a,f){n=n||""
;var l=e.defer();return t.execApp("makeTextItemObjectJSONFromPushDescID",[s]).then(function(t){var s=JSON.parse(t||""),c,h;try{if(!s)throw"makeTextItemObjectJSONFromPushDescID returned false";c=o.getDefaultLibrary();if(!c)throw"No library";if(!u.checkLibraryWritable(c))return;var p="application/vnd.adobe.characterstyle+json",d="characterstyle",v="data";h=u.createElementExtraMetrics(c,n,r.CHARACTER_STYLE_ELEMENT_TYPE,{opType:f}),s&&h.createRepresentation(p,"primary").setValue(d,v,s);var m=[];if(a)
{var g=h.createRepresentation("image/png","rendition"),y=g.setContentFromPath(a);m.push(y)}e.all(m).then(function(){a&&h.setThumbnailCache(r.CHARACTER_STYLE_RENDITION_SIZE,a,function(){i.deleteFile(a)}),h.endOperation(),l.resolve(h)},function(){c.removeElement(h,!0),l.reject("Could not create element.")})}catch(b){c&&h&&c.removeElement(h,!0),l.reject("Could not add character style: "+b)}},function(e){l.reject("Could not makeTextItemObjectJSONFromPushDescID: "+e)}),l.promise}}];t.attach=function(e
){angular.module(e).service("phxsTextUtils",n)}}),define("applications/PHXS/js/index",["require","exports","./colorUtils","./descriptor","./events","./imageUtils","./push","./textUtils","angular"],function(e,t){"use strict";var n=e("angular"),r=e("./colorUtils"),i=e("./descriptor"),s=e("./events"),o=e("./imageUtils"),u=e("./push"),a=e("./textUtils"),f=["$q","$translate","phxsColorUtils","phxsEvents","csInterface","editorAppUtils","fileUtils","configuration","menuManager","metrics","layerSelectionManager"
,"designLibraryElementUtils","designLibraryManager","designLibraryViewState",function(e,t,n,r,i,s,o,u,a,f,l,c,h,p){function d(e,t){var n=-1;return e.some(function(r,i){var s=!1;return t(r,i,e)&&(n=i,s=!0),s}),n}function v(e){var t,r;for(t=0;t<e.assetList.length;++t)r=e.assetList[t].data[0],n.addPSColor(e.assetList[t].name,r.primary,r.secondary,"dragToPanel")}function m(e){function t(e,t){i.execApp("saveLayerStyleByIndex",[e]).then(function(e){var n=JSON.parse(e)||{};c.addLayerStyleElement(t,n.aslPath
,n.previewPath,h.getDefaultLibrary(),"dragToPanel").then(function(e){c.revealElement(e)})})}var n,r;for(n=0;n<e.assetList.length;++n)r=e.assetList[n].data[0],t(r,e.assetList[n].name)}function g(e){function t(e,t){i.execApp("saveBrushByIndex",[e]).then(function(e){var n=JSON.parse(e)||{};c.addBrushElement(t,n.abrPath,n.previewPath,h.getDefaultLibrary(),"dragToPanel").then(function(e){c.revealElement(e)})})}var n,r;for(n=0;n<e.assetList.length;++n)r=e.assetList[n].data[0],t(r,e.assetList[n].name)}function y
(e){var t=!!h.isConnected(),n=h.getPrivateLibraryCollection();return n!==undefined&&t&&e}this.config={},this.config.code="PHXS",this.config.translationSuffix="PS",this.config.fullName="Photoshop",this.config.dragDropSource="com.adobe.photoshop",this.config.rgbRound=Math.round,this.config.themes={323232:"darker",535353:"dark",b8b8b8:"light",f0f0f0:"lighter"},this.config.defaultTheme="dark",this.config.deleteIcon="psdelete",this.config.elementOrder=[u.COLOR_ELEMENT_TYPE,u.COLOR_THEME_ELEMENT_TYPE,u
.CHARACTER_STYLE_ELEMENT_TYPE,u.LAYER_STYLE_ELEMENT_TYPE,u.BRUSH_ELEMENT_TYPE,u.IMAGE_ELEMENT_TYPE,u.THREE_D_ELEMENT_TYPE,u.PATTERN_ELEMENT_TYPE,u.VIDEO_ELEMENT_TYPE,u.LOOK_ELEMENT_TYPE,u.PARAGRAPH_STYLE_ELEMENT_TYPE,"*"],this.config.analytics={namespace:"ps",prodId:"adbemphotoshop.rebootprod2",devId:"adbemphotoshop.rebootdev2"},this.config.enableEditOriginal=!1,this.config.enablePatternDragging=!1,this.transformFlyoutMenuItems=function(e){var t={label:"DL_FLYOUT_ADD_DOC_CONTENT",enableMenu:y(l.hasDocumentOpen
()),onClick:function(){u.currentProduct.addDocContent()}},n=d(e,function(e,t,n){return e.label==="DL_MENU_CREATE_LIB"});if(n===-1)console.log("Could not find create lib menu item, revisit placement of add doc contents menu item"),e.splice(e.length,0,t);else{var r=n+2;e.splice(r,0,{divider:!0}),e.splice(r,0,t)}},this.addDocContent=function(){p.hideDialogs(),p.resetMode();var e=new CSEvent("com.adobe.DesignLibraries.events.AddDocContent","APPLICATION");i.dispatchEvent(e)},this.getAddDocContentOperation=
function(){return{buttonName:"DL_ADD_DOC_CONTENT_BUTTON",buttonToolTip:"DL_ADD_DOC_CONTENT_BUTTON_TOOLTIP",iconToolTip:"DL_ADD_DOC_CONTENT_ICON_TOOLTIP",icon:"importdocassets",apply:function(){u.currentProduct.addDocContent()},enabled:y(l.hasDocumentOpen())}},this.setFocusToCanvas=function(){var e=new CSEvent("com.adobe.PhotoshopLoseFocus","APPLICATION");i.dispatchEvent(e)},this.handleActiveDocChanged=function(e){var n=e!==0;a.updateFlyoutMenuItem(t.instant("DL_FLYOUT_ADD_DOC_CONTENT"),y(n),!1)},
this.dropHandler=function(e){var t=e.data,n=!1;return t.assetList&&t.assetList.length>0&&(t.assetList[0].type==="color"?(v(t),n=!0):t.assetList[0].type==="style"?(m(t),n=!0):t.assetList[0].type==="brush"&&(g(t),n=!0)),n},this.init=function(){var t=e.defer();i.execApp("getConfigInfoFromPS").then(function(e){var t=JSON.parse(e)||{};u.currentProduct.config.enablePatternDragging=t.enablePatternDragging}),o.extendUsableTypes(u.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),o.extendUsableTypes
(u.BRUSH_ELEMENT_TYPE,["image/x-adobe-photoshop-brush"]),o.extendUsableTypes(u.CHARACTER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.characterstyle+json"]),o.extendUsableTypes(u.LAYER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.layerstyle"]),o.extendUsableTypes(u.THREE_D_ELEMENT_TYPE,["image/vnd.adobe.photoshop"]),o.extendUsableTypes(u.PATTERN_ELEMENT_TYPE,["image/vnd.adobe.pattern+png"]),o.extendUsableTypes(u.LOOK_ELEMENT_TYPE,["application/vnd.adobe.cube+txt"]),o.extendEditableTypes(u.COLOR_ELEMENT_TYPE
,["application/vnd.adobe.color+json"]),o.extendEditableTypes(u.THREE_D_ELEMENT_TYPE,["image/vnd.adobe.photoshop"]),i.execApp("getReadableFileExtensions").then(function(e){var n=JSON.parse(e)||[],r=["AI","SVG","SVGZ","PDF"];n.length>0?(r.forEach(function(e){var t=n.indexOf(e);t!==-1&&n.splice(t,1)}),o.extendUsableTypesWithExtensions(u.IMAGE_ELEMENT_TYPE,r),o.extendEditableTypesWithExtensions(u.IMAGE_ELEMENT_TYPE,n)):(console.log("Failed to get readable file extensions from PHXS, using short default list."
),o.extendUsableTypes(u.IMAGE_ELEMENT_TYPE,["application/illustrator","image/svg+xml","application/pdf"]),o.extendEditableTypes(u.IMAGE_ELEMENT_TYPE,["image/png","image/jpeg","image/jpg","image/gif","image/bmp","application/photoshop","image/vnd.adobe.photoshop","application/photoshop.large"])),t.resolve()},function(){t.reject()});var n=i.getAppVersion();s.compareVersions(n,"16.1.2")>=0&&(u.currentProduct.config.enableEditOriginal=!0);var r=new CSEvent("com.adobe.PhotoshopPersistent","APPLICATION"
);i.dispatchEvent(r),this.startEventListener();var a=i.getGlobalRoot();return!VulcanInterface.isAppInstalled("photoshop-15")&&!VulcanInterface.isAppInstalled("photoshop-15.032")&&!VulcanInterface.isAppInstalled("photoshop-15.064")&&o.removeRecursive(a+"PHXS"),t.promise},this.startEventListener=function(){r.listen()},this.stopEventListener=function(){r.stop()},this.reportEvent=function(e,t,n){if(e==="createElement"&&!t.opType){var r=f.getExtraEventMetrics(e);r&&(t.opType=r.opType)}i.execApp("reportEvent"
,[e,t,n]).then(function(t){var n=JSON.parse(t);n&&console.log(e+" metric reported to PS")})}}];t.attach=function(e,t){r.attach(e),i.attach(e),s.attach(e),o.attach(e),u.attach(e),a.attach(e),n.module(e).service("PHXS",f)}}),define("applications/PPRO/js/index",["require","exports","angular"],function(e,t){"use strict";var n=e("angular"),r=["$injector","colorUtils","fileUtils","ccLibraries","adobeStockUtils","configuration","designLibraryElements","designLibraryManager","imsInterface","csInterface"
,function(e,t,n,r,i,s,o,u,a,f){this.getScaleColor=function(e){var n=38,r=.51,i=n,s=e,o=s*r+i;return t.rgbToHex({red:o,green:o,blue:o})},this.cssThemeBGScale=function(){var e,t,n={},r=function(e){switch(e){case 0:return"darker";case 100:return"dark";default:return e.toString()}};for(e=0;e<=100;e++){t=this.getScaleColor(e).slice(1);if(!n.hasOwnProperty(t)||n.hasOwnProperty(t)&&r(e)!==e.toString())n[t]=r(e)}return n},this.config={},this.config.code="PPRO",this.config.fullName="Premiere Pro",this.config
.translationSuffix="PR",this.config.dragDropSource="com.adobe.premiere",this.config.isDrover=!0,this.config.themes=this.cssThemeBGScale(),this.config.elementOrder=[s.IMAGE_ELEMENT_TYPE,s.VIDEO_ELEMENT_TYPE,s.LOOK_ELEMENT_TYPE,s.COLOR_ELEMENT_TYPE,s.BRUSH_ELEMENT_TYPE,s.LAYER_STYLE_ELEMENT_TYPE,s.PARAGRAPH_STYLE_ELEMENT_TYPE,s.CHARACTER_STYLE_ELEMENT_TYPE,s.COLOR_THEME_ELEMENT_TYPE,s.THREE_D_ELEMENT_TYPE,s.PATTERN_ELEMENT_TYPE,"*"],this.config.analytics={namespace:"pr",prodId:"adbempremierepro.rebootprod2"
,devId:"adbempremierepro.rebootdev2"},this.init=function(){n.extendUsableTypes(s.IMAGE_ELEMENT_TYPE,["application/pdf","application/illustrator","application/photoshop","application/photoshop.large","image/vnd.adobe.photoshop","image/png","image/jpeg","image/jpg"]),n.extendUsableTypes(s.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),n.extendUsableTypes(s.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),n.extendUsableTypes(s.LOOK_ELEMENT_TYPE,["application/vnd.adobe.cube+txt"
,"application/vnd.adobe.look+xml"]),n.extendUsableTypes(s.VIDEO_ELEMENT_TYPE,["video/mp4","video/quicktime"]),f.execApp("getTooltipState").then(function(t){e.get("configuration").showTooltips=t}),this.startEventListener(),u.waitForInitialLoad().then(function(){var e=new CSEvent("com.adobe.DesignLibraries.events.READY","APPLICATION");f.dispatchEvent(e)})},this.reportEvent=function(e,t){return undefined};var l=function(){var t=e.get("layerSelectionManager");t.handleSelectionChange()},c=function(){var e=
u.getPrivateLibraryCollection(),t=e?e.userId:"",n={clientId:a.getEnvironment().clientId,imsToken:""},r="com.adobe.DesignLibraries.events.UserAccessToken";return a.getAccessToken(t).then(function(e){n.imsToken=e;var t=new CSEvent(r,"APPLICATION");t.data=JSON.stringify(n),f.dispatchEvent(t)},function(){var e=new CSEvent(r,"APPLICATION");e.data=JSON.stringify(n),f.dispatchEvent(e)})},h=function(e){var t=e.data,u=r.resolveElementReference(t),a={elementRef:t};if(!u)a.name="";else{a.name=u.name,a.id=u.
id,a.libraryName=u.library.name,a.reference=u.getReference(),a.modified=u.modified,a.created=u.created,a.adobeStockId=i.getStockId(u),a.licensed=a.adobeStockId?i.isLicensed(u):null;var l=o.findRepresentation(u,n.getUsableTypes(s.VIDEO_ELEMENT_TYPE));if(l){a.width=l.width,a.height=l.height,a.contentLength=l.contentLength,a.url=l.getContentURL(),a.trackingdata=l.getValue("adobestock","trackingdata"),a.contentType=l.type;var c=r.utils.mimeTypeToExtensions(l.type);a.extension=c[c.length-1];var h=l.getValue
("video","data")||!1;h&&(a.framerate=Number(h.framerate),a.duration=h.duration)}var p="com.adobe.DesignLibraries.events.VideoUpdate",d=new CSEvent(p,"APPLICATION");d.data=JSON.stringify(a),f.dispatchEvent(d)}};this.startEventListener=function(){f.addEventListener("lookSelectionChanged",l),f.addEventListener("getIMSAccessToken",c),f.addEventListener("getVideoDownloadData",h)},this.stopEventListener=function(){f.removeEventListener("lookSelectionChanged",l),f.removeEventListener("getIMSAccessToken"
,c),f.removeEventListener("getVideoDownloadData",h)}}];t.attach=function(e){n.module(e).service("PPRO",r)}}),define("applications/AEFT/js/configuration/color",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s){e.registerOverride({type:s.COLOR_ELEMENT_TYPE,getApplyOperations:function(e,r){var o=function(t){return function(
r,o){return r||(r=[],e.representations.forEach(function(e){var t=e.getValue(s.COLOR_NAMESPACE,s.COLOR_DATA_KEY),n=e.getValue("library","rel");n==="primary"?r.unshift(t):r.push(t)}),e.representations.length>0&&i.reportApplyMetric(e.representations[0],t)),angular.isFunction(o)&&o(t),n.execApp(t,[r])}},u=t.getLayerInfo();return!u||u&&!u.selectionExists?[]:[{name:"DL_SET_COLOR_TOOLTIP",icon:"paintbucket",isDraggable:!1,apply:o("setColor"),displayInMenu:!0,onClick:!0}]}})}])}}),define("applications/AEFT/js/configuration/image"
,["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","designLibraryManager","configuration","$translate","documentWatcher","tempFileManager",function(e,t,n,r,i,s,o,u,a,f){e.registerOverride({type:o.IMAGE_ELEMENT_TYPE,getApplyOperations:function(t,s){var u=function(){var s=e.findRepresentation(t,r.getUsableTypes(o.IMAGE_ELEMENT_TYPE));return s?(i.reportApplyMetric
(s,"placeAsset"),s.getContentPath().then(function(e){var i=r.mimeLookup(o.IMAGE_ELEMENT_TYPE,s.type),u=i&&i.name==="Photoshop";return n.execApp("placeAsset",[e,u,t.name])})):t.getThumbnailPath().then(function(e){return i.reportApplyMetric({type:"image/png",_element:t},"placeAsset"),n.execApp("placeAsset",[e,!1,t.name])},function(e){console.log(e)})};return[{name:"DL_IMPORT_IMAGE_TO_PROJECT",onClick:!1,isDraggable:!0,apply:u,displayInMenu:!0}]}})}])}}),define("applications/AEFT/js/configuration/textstyle"
,["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s){e.registerOverride({type:s.CHARACTER_STYLE_ELEMENT_TYPE,getApplyOperations:function(e,t){var n=[];return n}})}])}}),define("applications/AEFT/js/configuration/layerstyle",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module
(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration","$translate",function(e,t,n,r,i,s,o){e.registerOverride({type:s.LAYER_STYLE_ELEMENT_TYPE,getApplyOperations:function(e,t){return[]}})}])}}),define("applications/AEFT/js/configuration/brush",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils"
,"configuration",function(e,t,n,r,i,s){e.registerOverride({type:s.BRUSH_ELEMENT_TYPE,getApplyOperations:function(e,t){return[]}})}])}}),define("applications/AEFT/js/configuration/look",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration","$translate",function(e,t,n,r,i,s,o){e.registerOverride({type:s.LOOK_ELEMENT_TYPE,isDraggable:!0,getApplyOperations
:function(t,o){var u=function(){var o=e.findRepresentation(t,r.getUsableTypes(s.LOOK_ELEMENT_TYPE));if(o)return i.reportApplyMetric(o,"placeAsset"),o.getContentPath().then(function(e){return n.execApp("placeAsset",[e,!1,t.name])})};return[{name:"DL_APPLY_LOOK",onClick:!1,isDraggable:!0,apply:u,displayInMenu:!0}]}})}])}}),define("applications/AEFT/js/configuration/parastyle",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements"
,"layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s){e.registerOverride({type:s.PARAGRAPH_STYLE_ELEMENT_TYPE,getAddOperations:function(){return[]}})}])}}),define("applications/AEFT/js/configuration/video",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","configuration","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","adobeStockUtils","imsInterface"
,"designLibraryManager","AEFT",function(e,t,n,r,i,s,o,u,a,f){e.registerOverride({type:t.VIDEO_ELEMENT_TYPE,isDraggable:!0,getApplyOperations:function(e,t){var n=function(){f.addOrUpdateElementInProject(e,!0)};return[{name:"DL_ADD_VIDEO_TO_PROJECT",icon:"download",apply:n,displayInMenu:!0}]}})}])}}),define("applications/AEFT/js/configuration/main",["require","exports","./color","./image","./textstyle","./layerstyle","./brush","./look","./parastyle","./video"],function(e,t){"use strict";t.attach=
function(t){e("./color").attach(t),e("./image").attach(t),e("./textstyle").attach(t),e("./layerstyle").attach(t),e("./brush").attach(t),e("./look").attach(t),e("./parastyle").attach(t),e("./video").attach(t)}}),define("applications/DRWV/js/configuration/brush",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s){e.
registerOverride({type:s.BRUSH_ELEMENT_TYPE,getApplyOperations:function(e,t){return[]}})}])}}),define("applications/DRWV/js/configuration/color",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration","colorUtils",function(e,t,n,r,i,s,o){e.registerOverride({type:s.COLOR_ELEMENT_TYPE,getApplyOperations:function(e,t){var r=function(t){return function(
r,u){r||(r=[],e.representations.forEach(function(e){var t=e.getValue(s.COLOR_NAMESPACE,s.COLOR_DATA_KEY);e.relationship==="primary"?r.unshift(t):r.push(t)}),e.representations.length>0&&i.reportApplyMetric(e.representations[0],t)),angular.isFunction(u)&&u(t);var a=o.getRGBRepresentation(r);if(!a)return;if(t==="copyRGB")return n.execApp(t,[JSON.stringify(a.value)]);var f=o.colorDataToHexValue(a),l=!1;return event&&event.which===1&&(l=!0),n.execApp(t,[f.toUpperCase(),l])}};return[{name:"DL_COPY_HEX_COLOR_TOOLTIP"
,icon:"paintbucket",apply:r("copyHex"),displayInMenu:!0,onClick:!0},{name:"DL_COPY_RGB_COLOR_TOOLTIP",icon:"paintbucket",apply:r("copyRGB"),displayInMenu:!0}]}})}])}}),define("applications/DRWV/js/configuration/image",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["$q","designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","designLibraryManager","configuration","$translate","documentWatcher","tempFileManager"
,"adobeStockUtils",function(e,t,n,r,i,s,o,u,a,f,l,c){t.registerOverride({type:u.IMAGE_ELEMENT_TYPE,getApplyOperations:function(e,n){var o=function(n,o){var a=c.getStockId(e),f=t.findRepresentation(e,i.getUsableTypes(u.IMAGE_ELEMENT_TYPE));return f?(s.reportApplyMetric(f,"placeAsset",n),f.getContentPath().then(function(s){var l=i.mimeLookup(u.IMAGE_ELEMENT_TYPE,f.type),h=l&&l.name==="Photoshop";return r.execApp("placeAsset",[s,h,e.library.name,e.name,e.getReference(),t.getElementModifiedTime(e),e.
created,a||"",a?c.isLicensed(e):null,n,o])})):e.getThumbnailPath().then(function(i){return s.reportApplyMetric({type:"image/png",_element:e},"placeAsset",n),r.execApp("placeAsset",[i,!1,e.library.name,e.name,e.getReference(),t.getElementModifiedTime(e),e.created,a||"",a?c.isLicensed(e):null,n,o])},function(e){console.log(e)})};return[{name:"DL_INSERT_IMAGE_TO_DOC_AS_LINKED",icon:"download",apply:function(){o(!0,!1)},displayInMenu:u.currentProduct.config.isDocumentOpen},{name:"DL_INSERT_IMAGE_TO_DOC_AS_COPY"
,icon:"download",apply:function(){o(!1,!1)},displayInMenu:u.currentProduct.config.isDocumentOpen},{name:"DL_DOWNLOAD_IMAGE_AS_LINKED",icon:"download",apply:function(){o(!0,!0)},displayInMenu:!0},{name:"DL_DOWNLOAD_IMAGE_AS_COPY",icon:"download",apply:function(){o(!1,!0)},displayInMenu:!0}]}})}])}}),define("applications/DRWV/js/configuration/layerstyle",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager"
,"csInterface","fileUtils","designLibraryUtils","configuration","$translate",function(e,t,n,r,i,s,o){e.registerOverride({type:s.LAYER_STYLE_ELEMENT_TYPE,getApplyOperations:function(e,t){return[]}})}])}}),define("applications/DRWV/js/configuration/look",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration","$translate",function(e,t,n,r,i,
s,o){e.registerOverride({type:s.LOOK_ELEMENT_TYPE,getApplyOperations:function(e,t){return[]}})}])}}),define("applications/DRWV/js/configuration/parastyle",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s){e.registerOverride({type:s.PARAGRAPH_STYLE_ELEMENT_TYPE,getApplyOperations:function(e,t){return[]}})}])}}),define
("applications/DRWV/js/configuration/colortheme",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration","colorUtils",function(e,t,n,r,i,s,o){e.registerOverride({type:s.COLOR_THEME_ELEMENT_TYPE,getApplyOperations:function(t,n,o){if(!t)return[];var u=[];if(o){var a=e.getApplyOperations({type:s.COLOR_ELEMENT_TYPE},n);a.forEach(function(n){u.
push({name:n.name,icon:n.icon,displayInMenu:n.displayInMenu,onClick:n.onClick,apply:function(){n.apply(o,function(n){var o=e.findRepresentation(t,r.getUsableTypes(s.COLOR_THEME_ELEMENT_TYPE));o&&i.reportApplyMetric(o,n)})}})})}return u}})}])}}),define("applications/DRWV/js/configuration/textstyle",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration"
,function(e,t,n,r,i,s){e.registerOverride({type:s.CHARACTER_STYLE_ELEMENT_TYPE,getApplyOperations:function(e,t){return[]}})}])}}),define("applications/DRWV/js/configuration/main",["require","exports","./brush","./color","./image","./layerstyle","./look","./parastyle","./colortheme","./textstyle"],function(e,t){"use strict";t.attach=function(t){e("./brush").attach(t),e("./color").attach(t),e("./image").attach(t),e("./layerstyle").attach(t),e("./look").attach(t),e("./parastyle").attach(t),e("./colortheme"
).attach(t),e("./textstyle").attach(t)}}),define("applications/FLPR/js/configuration/brush",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s){e.registerOverride({type:s.BRUSH_ELEMENT_TYPE,getApplyOperations:function(s,o){var u=r.getUsableTypes(s.type),a=s.representations.filter(function(t){var n=t.relationship==="rendition"
,r=e.isRepresentationCompatible(t,u);return!n&&r}),f=t.getLayerInfo(),l=a.length===0||!f;if(!l){var c=function(){var e=a[0];if(e)return i.reportApplyMetric(e,"useBrush"),e.getContentPath().then(function(e){return n.execApp("loadAndSelectBrush",[o.name,s.name,e])})};return[{name:"DL_ADD_BRUSH_TO_DOC",icon:"brush",onClick:!0,allowMultiple:!0,apply:c,displayInMenu:!0}]}return[]},getAddOperations:function(){return[]}})}])}}),define("applications/FLPR/js/configuration/color",["require","exports","module"
],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","colorUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s){e.registerOverride({type:s.COLOR_ELEMENT_TYPE,getApplyOperations:function(e,o){var u=function(t){return function(o,u){o||(o=[],e.representations.forEach(function(e){var t=e.getValue(s.COLOR_NAMESPACE,s.COLOR_DATA_KEY);e.relationship==="primary"?o.unshift(t):o.push(t)}),e.representations.length>0&&
i.reportApplyMetric(e.representations[0],t)),angular.isFunction(u)&&u(t);var a=r.getRGBRepresentation(o);if(!a)return;var f=r.colorDataToHexValue(a);return n.execApp(t,[f.toUpperCase()])}},a=t.getLayerInfo();return!a||a&&!a.selectionExists?[]:[{name:"DL_SET_COLOR_TOOLTIP",icon:"paintbucket",apply:u("setColor"),displayInMenu:!0,onClick:!0}]}})}])}}),define("applications/FLPR/js/configuration/image",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).
run(["$q","designLibraryElements","layerSelectionManager","csInterface","fileUtils","lockUtils","designLibraryUtils","designLibraryElementUtils","designLibraryManager","designLibraryCEPEventHandlers","configuration","$translate","documentWatcher","tempFileManager",function(e,t,n,r,i,s,o,u,a,f,l,c,h,p){t.registerOverride({type:l.IMAGE_ELEMENT_TYPE,getApplyOperations:function(e,s){var u=function(n){var s=t.findRepresentation(e,i.getUsableTypes(l.IMAGE_ELEMENT_TYPE));return s?(o.reportApplyMetric(s,"placeAsset"
),s.getContentPath().then(function(i){return r.execApp("placeAsset",[i,e.library.name,e.name,e.getReference(),t.getElementModifiedTime(e),e.created,n])})):e.getThumbnailPath().then(function(i){return o.reportApplyMetric({type:"image/png",_element:e},"placeAsset"),r.execApp("placeAsset",[i,e.library.name,e.name,e.getReference(),t.getElementModifiedTime(e),e.created,n])},function(e){console.log(e)})},a=n.getLayerInfo();return a?[{name:"DL_ADD_IMAGE_TO_DOC",icon:"download",allowMultiple:!0,apply:function(
){u(!1)},displayInMenu:!0}]:[]},getAddOperations:function(e){return[]},defaultEditOperation:function(n){var u=n.getPrimaryRepresentation(),c,d,v=!1,m=!1,g="documentLock_"+n.id;p.createTempFile(n,u).then(function(e){return c=e,d=i.getFileNameWithoutExtension(c)+".png",r.execApp("openAssetForEdit",[e,d])}).then(function(r){var u=h.startListening(r,c,function(r){switch(r){case"closed":s.obtainLock(g,function(){h.stopListening(u),v=!0,m||p.deleteTempFile(n,c),f.elementEditCompleted(n),s.releaseLock(g
)});break;case"saved":if(!o.checkFileSize(c))return;var y=n.library;if(!y||y.isDeletedLocally){y=a.getCurrentLibrary();if(!y)return}var b=[];s.obtainLock(g,function(){m=!0,n.isDeletedLocally?n=y.createElement(n.name,n.type):(n.beginOperation(),n.removeAllRepresentations());var r=i.fileNameToContentType(c),o=n.createRepresentation(r,"primary");b.push(o.setContentFromPath(c));if(d&&i.existsFile(d)){var u=t.setRendition(n,l.IMAGE_RENDITION_SIZE,d);b.push(u)}m=!1,n.endOperation();var a=function(){v?p
.deleteTempFile(n,c):p.updateTempFile(n,o,c),s.releaseLock(g)};e.all(b).then(a,a)})}})})}})}])}}),define("applications/FLPR/js/configuration/layerstyle",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration","$translate",function(e,t,n,r,i,s,o){e.registerOverride({type:s.LAYER_STYLE_ELEMENT_TYPE,getApplyOperations:function(e,t){return[]},
getAddOperations:function(){return[]}})}])}}),define("applications/FLPR/js/configuration/look",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration","$translate",function(e,t,n,r,i,s,o){e.registerOverride({type:s.LOOK_ELEMENT_TYPE,getApplyOperations:function(e,t){return[]},getAddOperations:function(){return[]}})}])}}),define("applications/FLPR/js/configuration/parastyle"
,["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s){e.registerOverride({type:s.PARAGRAPH_STYLE_ELEMENT_TYPE,getApplyOperations:function(e,t){return[]},getAddOperations:function(){return[]}})}])}}),define("applications/FLPR/js/configuration/textstyle",["require","exports","module"],function(e,t){"use strict";t.attach=
function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s){e.registerOverride({type:s.CHARACTER_STYLE_ELEMENT_TYPE,getApplyOperations:function(e,t){return[]},getAddOperations:function(){return[]}})}])}}),define("applications/FLPR/js/configuration/video",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","configuration"
,function(e,t){e.registerOverride({type:t.VIDEO_ELEMENT_TYPE,isDraggable:!0,getApplyOperations:function(e,t){return[]}})}])}}),define("applications/FLPR/js/configuration/main",["require","exports","./brush","./color","./image","./layerstyle","./look","./parastyle","./textstyle","./video"],function(e,t){"use strict";t.attach=function(t){e("./brush").attach(t),e("./color").attach(t),e("./image").attach(t),e("./layerstyle").attach(t),e("./look").attach(t),e("./parastyle").attach(t),e("./textstyle"
).attach(t),e("./video").attach(t)}}),define("applications/IDSN/js/configuration/color",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s){e.registerOverride({type:s.COLOR_ELEMENT_TYPE,getApplyOperations:function(e,r,o,u,a,f){var l=t.getLayerInfo(),c=u===1,h=u===a,p=function(t){return function(r,o){if(!r){r=[],e.
representations.forEach(function(t){var n=t.getValue(s.COLOR_NAMESPACE,s.COLOR_DATA_KEY);e.name!==undefined&&(n.name=e.name),t.relationship==="primary"?r.unshift(n):r.push(n)});if(e.representations.length>0){i.reportApplyMetric(e.representations[0],t);if(t==="addColor"&&h===!0){var u="addElement",f={opType:"addColor",elementType:"color",numElements:a};s.currentProduct.reportEvent(u,f)}}}return angular.isFunction(o)&&o(t),n.execApp(t,[r,c,h])}};if(!l||!l.selectionExists&&!l.textSelectionExists)return[
{name:"DL_ID_ADD_COLORS_TOOLTIP",icon:"paintbucket",allowMultiple:!0,apply:p("addColor"),displayInMenu:!0}];var d=a>1;return[{name:"DL_SET_COLOR_TOOLTIP",icon:"paintbucket",apply:p("setColor"),displayInMenu:!0,onClick:!0},{name:"DL_ID_ADD_COLORS_TOOLTIP",icon:"paintbucket",allowMultiple:!0,apply:p("addColor"),displayInMenu:d}]},defaultEditOperation:function(t){if(s.IS_APP_IN_TOUCH_MODE)return;var i=e.findRepresentation(t,r.getUsableTypes(s.COLOR_ELEMENT_TYPE)),o;i&&(o=i.getValue(s.COLOR_NAMESPACE
,s.COLOR_DATA_KEY));var u;return n.execApp("replaceColor",[o]).then(function(e){return u=JSON.parse(e),n.execApp("getLayerColor",[])}).then(function(e){if(u){var n=JSON.parse(e);t.beginOperation(),t.removeAllRepresentations(),n.forEach(function(e,n){var r=n===0?"primary":"rendition",i=t.createRepresentation(s.COLOR_REPRESENTATION_TYPE,r);i.setValue(s.COLOR_NAMESPACE,s.COLOR_DATA_KEY,e)}),t.endOperation()}})}})}])}}),define("applications/IDSN/js/configuration/image",["require","exports","module"
],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["$q","designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration","$translate","documentWatcher","designLibraryManager","tempFileManager","adobeStockUtils","designLibraryCEPEventHandlers","designLibraryCEPEventEmitters","lockUtils",function(e,t,n,r,i,s,o,u,a,f,l,c,h,p,d){t.registerOverride({type:o.IMAGE_ELEMENT_TYPE,getApplyOperations:function(e,u,a,f,l,h){var p=n.getLayerInfo
(),d=function(n,u){var a=f===l;if(a===!0){var h="addElement",p={opType:"addImageToDocument",elementType:"image",numElements:l};o.currentProduct.reportEvent(h,p)}var d=c.getStockId(e),v=t.findRepresentation(e,i.getUsableTypes(o.IMAGE_ELEMENT_TYPE));return v?(s.reportApplyMetric(v,"placeAsset",n),v.getContentPath().then(function(i){return r.execApp("placeAsset",[i,e.library.name,e.name,e.getReference(),t.getElementModifiedTime(e),e.created,d,d?c.isLicensed(e):null,n,u])})):e.getThumbnailPath().then
(function(i){return s.reportApplyMetric({type:"image/png",_element:e},"placeAsset",n),r.execApp("placeAsset",[i,e.library.name,e.name,e.getReference(),t.getElementModifiedTime(e),e.created,d,d?c.isLicensed(e):null,n,u])},function(e){console.log(e)})};if(!p||p.noDocState===!0)return[];var v="application/vnd.adobe.indesign-idms",m=e.getPrimaryRepresentation(),g=m&&m.type===v;if(o.IS_APP_IN_TOUCH_MODE)return[{name:"DL_ADD_IMAGE_TO_DOC_AS_LINKED",icon:"download",allowMultiple:!1,apply:function(){d(!0
)},displayInMenu:!0,onClick:!0}];var y=l>1;return[{name:"DL_ADD_IMAGE_TO_DOC_AS_LINKED",icon:"download",allowMultiple:!0,apply:function(){d(!0,y)},displayInMenu:!g},{name:"DL_ADD_IMAGE_TO_DOC_AS_COPY",icon:"download",allowMultiple:!0,apply:function(){d(!1,y)},displayInMenu:!0}]},defaultEditOperation:function(n){if(o.IS_APP_IN_TOUCH_MODE===!0)return;if(!t.isElementEditable(n))return!1;var u=n.getPrimaryRepresentation(),v,m=!1,g=!1,y="documentLock_"+n.id;l.createTempFile(n,u).then(function(e){return v=
e,r.execApp("openAssetForEdit",[e])}).then(function(r){var u=v.lastIndexOf("."),b=v.substring(0,u),w=a.startListening(r,b,function(r){if(r==="closed")d.obtainLock(y,function(){a.stopListening(w),m=!0,g===!1&&(l.deleteTempFile(n,v),i.deleteFile(b)),h.elementEditCompleted(n),d.releaseLock(y)});else if(r==="saved"){if(!s.checkFileSize(v))return;g=!0;var u=v.lastIndexOf("."),E=v.substring(0,u),S=E+".pdf",x=E+".png";if(!i.existsFile(v)||!i.existsFile(S)){g=!1;return}var T=n.library;if(!T||T.isDeletedLocally
){T=f.getCurrentLibrary();if(!T)return}d.obtainLock(y,function(){var r=c.getStockDataForElement(n);n.isDeletedLocally?n=T.createElement(n.name,n.type):(n.beginOperation(),n.removeAllRepresentations());var s=[],u=i.fileNameToContentType(v),a=n.createRepresentation(u,"primary");r&&c.setStockData(a,r),s.push(a.setContentFromPath(v)),u=i.fileNameToContentType(S);var f=n.createRepresentation(u,"rendition");s.push(f.setContentFromPath(S));if(x&&i.existsFile(x)){var h=t.setRendition(n,o.IMAGE_RENDITION_SIZE
,x);s.push(h)}var b=function(){p.sendElementUpdated(a),m?l.deleteTempFile(n,v):l.updateTempFile(n,a,v),g=!1,n.endOperation(),d.releaseLock(y)};e.all(s).then(b,b)})}})})}})}])}}),define("applications/IDSN/js/configuration/textstyle",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["$q","designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s,o){var u="application/vnd.adobe.characterstyle+json"
,a="application/vnd.adobe.characterstyle+snippet",f="characterstyle",l="data";t.registerOverride({type:o.CHARACTER_STYLE_ELEMENT_TYPE,getApplyOperations:function(e,c,h,p,d,v){var m=n.getLayerInfo(),g=function(e,t,n){e.type="charstyle",e.name=t,e.id=n},y=p===1,b=p===d,w=function(n){var c=t.findRepresentation(e,i.getUsableTypes(o.CHARACTER_STYLE_ELEMENT_TYPE));if(c){s.reportApplyMetric(c,n);var h=t.getDisplayText(e),p=e.id+";"+e.modified,d,v;return c.type===u?(v=c.getValue(f,l),g(v,h,p),d=r.execApp
(n,[v,y,b])):c.type===a&&(d=c.getContentPath().then(function(i){v={},g(v,h,p),v.idmsPath=i;var s=t.findRepresentation(e,u),o=s.getValue(f,l);return v.adbeFont=o.adbeFont,v.fontFamily=o.fontFamily,r.execApp(n,[v,y,b])})),d}},E=function(){return w("setFont")},S=function(){if(b===!0){var e="addElement",t={opType:"addTextStyle",elementType:"characterstyle",numElements:d};o.currentProduct.reportEvent(e,t)}return w("addTextStyle")},x=[];return m?(m&&m.kind==="LayerKind.TEXT"&&x.push({name:"DL_SET_TEXT_STYLE_TOOLTIP"
,icon:"text",onClick:!0,apply:E,displayInMenu:!0}),x.push({name:"DL_ADD_AS_TEXT_STYLE_TOOLTIP",icon:"pastetext",allowMultiple:!0,apply:S,displayInMenu:!0}),x):[]},getAddOperations:function(t){var c=function(t,c){function p(n){if(!n||n.kind!=="LayerKind.TEXT")return;r.execApp("getCharStyleInfo").then(function(n){var r=JSON.parse(n),p=s.createElementExtraMetrics(t,r.styleName,o.CHARACTER_STYLE_ELEMENT_TYPE,{opType:c}),d=[],v,m;if(r.idmsPath){var g=p.createRepresentation(a,"primary");m=g.setContentFromPath
(r.idmsPath).then(function(){i.deleteFile(r.idmsPath)}),d.push(m),v=p.createRepresentation(u,"rendition"),v.setValue(f,l,r.styleInfo)}else v=p.createRepresentation(u,"primary"),v.setValue(f,l,r.styleInfo);if(r.previewPath){var y=p.createRepresentation("image/png","rendition");m=y.setContentFromPath(r.previewPath),d.push(m)}e.all(d).then(function(){r.previewPath&&p.setThumbnailCache(o.CHARACTER_STYLE_RENDITION_SIZE,r.previewPath,function(){i.deleteFile(r.previewPath)}),p.endOperation()}),h.resolve
(p)})}var h=e.defer();return n.requestUpdate(),n.addListener("layerSelectionChanged",p,!0),h.promise};return[{name:"DL_ADD_TEXT_STYLE_NAME",order:2,toolTip:"DL_ADD_TEXT_STYLE_TOOLTIP",icon:"newcharacterstyle",apply:c,disabled:!t||!t.text||t.isAppliedCharStyleSupported===!1,displayIcon:!0}]}})}])}}),define("applications/IDSN/js/configuration/parastyle",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager"
,"csInterface","fileUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s){var o="application/vnd.adobe.paragraphstyle+json",u="application/vnd.adobe.paragraphstyle+snippet",a="paragraphstyle",f="data";e.registerOverride({type:s.PARAGRAPH_STYLE_ELEMENT_TYPE,getApplyOperations:function(l,c,h,p,d,v){var m=t.getLayerInfo(),g=p===1,y=p===d,b=function(e,t,n){e.type="parastyle",e.name=t,e.id=n},w=function(t){var c=e.findRepresentation(l,r.getUsableTypes(s.PARAGRAPH_STYLE_ELEMENT_TYPE));if(c)
{i.reportApplyMetric(c,t);var h=e.getDisplayText(l),p=l.id+";"+l.modified,d,v;return c.type===o?(v=c.getValue(a,f),b(v,h,p),d=n.execApp(t,[v,g,y])):c.type===u&&(d=c.getContentPath().then(function(r){v={},b(v,h,p),v.idmsPath=r;var i=e.findRepresentation(l,o),s=i.getValue(a,f);return v.adbeFont=s.adbeFont,v.fontFamily=s.fontFamily,n.execApp(t,[v,g,y])})),d}},E=function(){return w("setFont")},S=function(){if(y===!0){var e="addElement",t={opType:"addTextStyle",elementType:"paragraphstyle",numElements
:d};s.currentProduct.reportEvent(e,t)}return w("addTextStyle")},x=[];return m?(m&&m.kind==="LayerKind.TEXT"&&x.push({name:"DL_SET_PARA_STYLE_TOOLTIP",icon:"text",onClick:!0,apply:E,displayInMenu:!0}),x.push({name:"DL_ADD_AS_PARA_STYLE_TOOLTIP",icon:"pastetext",allowMultiple:!0,apply:S,displayInMenu:!0}),x):[]}})}])}}),define("applications/IDSN/js/configuration/layerstyle",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements"
,"layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration","$translate",function(e,t,n,r,i,s,o){e.registerOverride({type:s.LAYER_STYLE_ELEMENT_TYPE,getApplyOperations:function(e,t){return[]}})}])}}),define("applications/IDSN/js/configuration/brush",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration","$translate"
,function(e,t,n,r,i,s,o){e.registerOverride({type:s.BRUSH_ELEMENT_TYPE,getApplyOperations:function(e,t){var r=function(){o("DL_ERROR_BRUSH_NOT_SUPPORTED_ID").then(function(e){n.showError(e)})};return[{name:"DL_ADD_BRUSH_TO_DOC",icon:"brush",onClick:!0,apply:r,displayInMenu:!0}]}})}])}}),define("applications/IDSN/js/configuration/colortheme",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","designLibraryUtils","fileUtils"
,"configuration","csInterface",function(e,t,n,r,i){e.registerOverride({type:r.COLOR_THEME_ELEMENT_TYPE,getApplyOperations:function(s,o,u,a,f,l){if(!s)return[];var c=a===1,h=a===f,p="data",d="colortheme",v=function(){var o=e.findRepresentation(s,n.getUsableTypes(r.COLOR_THEME_ELEMENT_TYPE)),u=o.getValue(d,p);u.name=s.name,t.reportApplyMetric(o,"createColorGroup");if(h===!0){var a="addElement",l={opType:"createColorGroup",elementType:"colortheme",numElements:f};r.currentProduct.reportEvent(a,l)}return i
.execApp("createColorGroup",[u,c,h])},m=[];if(u){var g=e.getApplyOperations({type:r.COLOR_ELEMENT_TYPE},o);g.forEach(function(i){m.push({name:i.name,icon:i.icon,displayInMenu:i.displayInMenu,onClick:i.onClick,apply:function(){i.apply(u,function(i){var o=e.findRepresentation(s,n.getUsableTypes(r.COLOR_THEME_ELEMENT_TYPE));o&&t.reportApplyMetric(o,i)})}})})}return m.push({name:"DL_ID_ADD_COLORTHEME_TOOLTIP",icon:"paintbucket",apply:v,displayInMenu:!0,allowMultiple:!0}),m}})}])}}),define("applications/IDSN/js/configuration/main"
,["require","exports","./color","./image","./textstyle","./parastyle","./layerstyle","./brush","./colortheme"],function(e,t){"use strict";t.attach=function(t){e("./color").attach(t),e("./image").attach(t),e("./textstyle").attach(t),e("./parastyle").attach(t),e("./layerstyle").attach(t),e("./brush").attach(t),e("./colortheme").attach(t)}}),define("applications/ILST/js/configuration/color",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements"
,"layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration","ILSTUtils",function(e,t,n,r,i,s,o){e.registerOverride({type:s.COLOR_ELEMENT_TYPE,getApplyOperations:function(r,u){var a=function(t){return function(u,a){return u||(u=[],r.representations.forEach(function(t){var n=t.getValue(s.COLOR_NAMESPACE,s.COLOR_DATA_KEY),i=e.getDisplayText(r);n.name=i,t.relationship==="primary"?u.unshift(n):u.push(n)}),r.representations.length>0&&(o.logPIPEvent(o.PIPGlobals.DLtoAI,o.PIPGlobals
.Color,o.PIPGlobals.Added),i.reportApplyMetric(r.representations[0],t))),angular.isFunction(a)&&a(t),n.execApp(t,[u])}},f=t.getLayerInfo();return!f||f&&!f.selectionExists&&!f.textSelectionExists?[]:[{name:"DL_SET_COLOR_TOOLTIP",icon:"paintbucket",apply:a("setColor"),displayInMenu:!0,onClick:!0}]},defaultEditOperation:function(t){var i=e.findRepresentation(t,r.getUsableTypes(s.COLOR_ELEMENT_TYPE)),o;i&&(o=i.getValue(s.COLOR_NAMESPACE,s.COLOR_DATA_KEY));var u;return n.execApp("replaceColor",[o]).then
(function(e){return u=JSON.parse(e),n.execApp("getLayerColor",[])}).then(function(e){if(u){var n=JSON.parse(e);t.beginOperation(),t.removeAllRepresentations(),n.forEach(function(e,n){var r=n===0?"primary":"rendition",i=t.createRepresentation(s.COLOR_REPRESENTATION_TYPE,r);i.setValue(s.COLOR_NAMESPACE,s.COLOR_DATA_KEY,e)}),t.endOperation()}})}})}])}}),define("applications/ILST/js/configuration/image",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e
).run(["$q","designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","designLibraryManager","configuration","$translate","documentWatcher","tempFileManager","adobeStockUtils","designLibraryCEPEventHandlers","designLibraryCEPEventEmitters","lockUtils",function(e,t,n,r,i,s,o,u,a,f,l,c,h,p,d){t.registerOverride({type:u.IMAGE_ELEMENT_TYPE,getApplyOperations:function(e,o){var a=function(n){var o=c.getStockId(e),a=t.findRepresentation(e,i.getUsableTypes(u.IMAGE_ELEMENT_TYPE
));return a?(s.reportApplyMetric(a,"placeAsset",n),a.getContentPath().then(function(i){return r.execApp("placeAsset",[i,e.library.name,e.name,e.getReference(),t.getElementModifiedTime(e),e.created,o,o?c.isLicensed(e):null,n])})):e.getThumbnailPath().then(function(i){return s.reportApplyMetric({type:"image/png",_element:e},"placeAsset",n),r.execApp("placeAsset",[i,e.library.name,e.name,e.getReference(),t.getElementModifiedTime(e),e.created,o,o?c.isLicensed(e):null,n])},function(e){console.log(e)})
},f=n.getLayerInfo();return f?[{name:"DL_ADD_IMAGE_TO_DOC_AS_LINKED",icon:"download",apply:function(){a(!0)},displayInMenu:!0},{name:"DL_ADD_IMAGE_TO_DOC_AS_COPY",icon:"download",apply:function(){a(!1)},displayInMenu:!0}]:[]},defaultEditOperation:function(n){if(!t.isElementEditable(n))return!1;var a=n.getPrimaryRepresentation(),v,m,g=!1,y=!1,b="documentLock_"+n.id;l.createTempFile(n,a).then(function(e){return v=e,m=i.getFileNameWithoutExtension(v)+".png",r.execApp("openAssetForEdit",[e,m])}).then
(function(a){var w=new CSEvent("com.adobe.illustrator.FitCurrentDocumentViewToActiveArtboard","APPLICATION");r.dispatchEvent(w);var E=f.startListening(a,v,function(r){if(r==="closed")d.obtainLock(b,function(){f.stopListening(E),g=!0,y===!1&&l.deleteTempFile(n,v),h.elementEditCompleted(n),d.releaseLock(b)});else if(r==="saved"){if(!s.checkFileSize(v))return;y=!0;var a=n.library;if(!a||a.isDeletedLocally){a=o.getCurrentLibrary();if(!a)return}d.obtainLock(b,function(){var r=c.getStockDataForElement(
n);n.isDeletedLocally?n=a.createElement(n.name,n.type):(n.beginOperation(),n.removeAllRepresentations());var s=i.fileNameToContentType(v),o=n.createRepresentation(s,"primary");r&&c.setStockData(o,r);var f=[];f.push(o.setContentFromPath(v));if(m&&i.existsFile(m)){var h=t.setRendition(n,u.IMAGE_RENDITION_SIZE,m);f.push(h)}var w=function(){p.sendElementUpdated(o),g?l.deleteTempFile(n,v):l.updateTempFile(n,o,v),y=!1,n.endOperation(),d.releaseLock(b)};e.all(f).then(w,w)})}})})}})}])}}),define("applications/ILST/js/configuration/textstyle"
,["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["$q","designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration","ILSTUtils",function(e,t,n,r,i,s,o,u){var a="application/vnd.adobe.characterstyle+json",f="characterstyle",l="data";t.registerOverride({type:o.CHARACTER_STYLE_ELEMENT_TYPE,getApplyOperations:function(e,c){var h=n.getLayerInfo(),p=function(e,t,n){e.type="charstyle",e.name=t,e.id=n},
d=function(n){var u=t.findRepresentation(e,i.getUsableTypes(o.CHARACTER_STYLE_ELEMENT_TYPE));if(u){s.reportApplyMetric(u,n);var c=t.getDisplayText(e),h=e.id+";"+e.modified,d;if(u.type===a){var v=u.getValue(f,l);p(v,c,h),d=r.execApp(n,[v])}return d}},v=function(){return u.logPIPEvent(u.PIPGlobals.DLtoAI,u.PIPGlobals.CharacterStyle,u.PIPGlobals.Applied),d("setFont")},m=function(){return u.logPIPEvent(u.PIPGlobals.DLtoAI,u.PIPGlobals.CharacterStyle,u.PIPGlobals.Added),d("createTextLayer")},g=[];return h?
(h&&h.kind==="LayerKind.TEXT"&&g.push({name:"DL_SET_TEXT_STYLE_TOOLTIP",icon:"text",onClick:!0,apply:v,displayInMenu:!0}),g.push({name:"DL_ADD_AS_TEXT_STYLE_TOOLTIP",icon:"pastetext",apply:m,displayInMenu:!0}),g):[]},getAddOperations:function(t){var u=function(e){return!1},c=function(t,u){function h(n){if(!n||n.kind!=="LayerKind.TEXT")return;r.execApp("getCharStyleInfo").then(function(n){function g(){r.previewPath&&h.setThumbnailCache(o.CHARACTER_STYLE_RENDITION_SIZE,r.previewPath,function(){i.deleteFile
(r.previewPath)}),h.endOperation()}var r=JSON.parse(n),h=s.createElementExtraMetrics(t,r.styleName,o.CHARACTER_STYLE_ELEMENT_TYPE,{opType:u}),p=[],d,v;d=h.createRepresentation(a,"primary"),d.setValue(f,l,r.styleInfo);if(r.previewPath){var m=h.createRepresentation("image/png","rendition");v=m.setContentFromPath(r.previewPath),p.push(v)}e.all(p).then(g,g),c.resolve(h)})}var c=e.defer();return n.requestUpdate(),n.addListener("layerSelectionChanged",h,!0),c.promise};return[{name:"DL_ADD_TEXT_STYLE_NAME"
,order:2,toolTip:"DL_ADD_TEXT_STYLE_TOOLTIP",icon:"newcharacterstyle",apply:c,checkDuplicates:u,disabled:!t||!t.text||t.isAppliedCharStyleSupported===!1,displayIcon:!0}]}})}])}}),define("applications/ILST/js/configuration/layerstyle",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration","$translate",function(e,t,n,r,i,s,o){e.registerOverride
({type:s.LAYER_STYLE_ELEMENT_TYPE,getApplyOperations:function(e,t){return[]}})}])}}),define("applications/ILST/js/configuration/brush",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s){e.registerOverride({type:s.BRUSH_ELEMENT_TYPE,getApplyOperations:function(s,o){var u=r.getUsableTypes(s.type),a=s.representations
.filter(function(t){var n=t.relationship==="rendition",r=e.isRepresentationCompatible(t,u);return!n&&r}),f=t.getLayerInfo(),l=a.length===0||!f;if(!l){var c=function(){var e=a[0];if(e)return i.reportApplyMetric(e,"useBrush"),e.getContentPath().then(function(e){return n.execApp("loadAndSelectBrush",[e,s.name])})};return[{name:"DL_ADD_BRUSH_TO_DOC",icon:"brush",onClick:!0,apply:c,displayInMenu:!0}]}return[]}})}])}}),define("applications/ILST/js/configuration/parastyle",["require","exports","module"
],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration","ILSTUtils",function(e,t,n,r,i,s,o){var u="application/vnd.adobe.paragraphstyle+json",a="paragraphstyle",f="data";e.registerOverride({type:s.PARAGRAPH_STYLE_ELEMENT_TYPE,getApplyOperations:function(l,c){var h=t.getLayerInfo(),p=function(e,t,n){e.type="parastyle",e.name=t,e.id=n},d=function(t){var o=e.findRepresentation
(l,r.getUsableTypes(s.PARAGRAPH_STYLE_ELEMENT_TYPE));i.reportApplyMetric(o,t);if(o){var c=e.getDisplayText(l),h=l.id+";"+l.modified,d;if(o.type===u){var v=o.getValue(a,f);p(v,c,h),d=n.execApp(t,[v])}return d}},v=function(){return o.logPIPEvent(o.PIPGlobals.DLtoAI,o.PIPGlobals.ParagraphStyle,o.PIPGlobals.Applied),d("setFont")},m=function(){return o.logPIPEvent(o.PIPGlobals.DLtoAI,o.PIPGlobals.ParagraphStyle,o.PIPGlobals.Added),d("createTextLayer")},g=[];return h?(h&&h.kind==="LayerKind.TEXT"&&g.push
({name:"DL_SET_PARA_STYLE_TOOLTIP",icon:"text",onClick:!0,apply:v,displayInMenu:!0}),g.push({name:"DL_ADD_AS_PARA_STYLE_TOOLTIP",icon:"pastetext",apply:m,displayInMenu:!0}),g):[]}})}])}}),define("applications/ILST/js/configuration/colortheme",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","designLibraryUtils","fileUtils","configuration","$translate","$q","csInterface","ILSTUtils",function(e,t,n,r,i,s,o,u){e.registerOverride
({type:r.COLOR_THEME_ELEMENT_TYPE,order:14,getApplyOperations:function(i,a,f){var l=[],c=function(){var e=s.defer(),t;return i.representations.forEach(function(e){var n="data",r="colortheme",i=e.getValue(r,n);e.relationship==="primary"&&(t=i)}),o.execApp("addSwatchGroup",[t,i.name]).then(function(t){t==="undefined"&&(e.resolve(),u.logPIPEvent(u.PIPGlobals.DLtoAI,u.PIPGlobals.SwatchGroups,u.PIPGlobals.Added))}),e.promise},h=function(){if(!i||!f)return[];var s=[],o=e.getApplyOperations({type:"application/vnd.adobe.element.color+dcx"
},a);return o.forEach(function(o){s.push({name:o.name,icon:o.icon,displayInMenu:o.displayInMenu,onClick:o.onClick,apply:function(){o.apply(f,function(s){var o=e.findRepresentation(i,n.getUsableTypes(r.COLOR_THEME_ELEMENT_TYPE));o&&t.reportApplyMetric(o,s)})}})}),s};return l.push(h()),l.push({name:"DL_ADD_COLORTHEME_TO_SWATCHES",icon:"download",displayInMenu:!0,allowMultiple:!0,apply:function(){c().then(function(){var s=e.findRepresentation(i,n.getUsableTypes(r.COLOR_THEME_ELEMENT_TYPE));s&&t.reportApplyMetric
(s,"AddColorTheme")})}}),l}})}])}}),define("applications/ILST/js/configuration/main",["require","exports","./color","./image","./textstyle","./layerstyle","./brush","./parastyle","./colortheme"],function(e,t){"use strict";t.attach=function(t){e("./color").attach(t),e("./image").attach(t),e("./textstyle").attach(t),e("./parastyle").attach(t),e("./layerstyle").attach(t),e("./brush").attach(t),e("./colortheme").attach(t)}}),define("applications/MUSE/js/configuration/brush",["require","exports"
,"module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s){e.registerOverride({type:s.BRUSH_ELEMENT_TYPE,getApplyOperations:function(e,t){return[]}})}])}}),define("applications/MUSE/js/configuration/color",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager"
,"csInterface","fileUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s){e.registerOverride({type:s.COLOR_ELEMENT_TYPE,isDraggable:!0,getApplyOperations:function(e,r){var o=function(t){return function(r,o){return r||(r=[],e.representations.forEach(function(t){var n=t.getValue(s.COLOR_NAMESPACE,s.COLOR_DATA_KEY);e.name!==undefined&&(n.name=e.name),t.relationship==="primary"?r.unshift(n):r.push(n)}),e.representations.length>0&&i.reportApplyMetric(e.representations[0],t)),angular.isFunction
(o)&&o(t),n.execApp(t,[r])}},u=t.getLayerInfo();if(!u)return[];if(u.canApplyColor===undefined){var a=u.numberOfSelectedPageItems===0,f=a===!0||u.canApplyItemBackgroundFill===!0;return f?[{name:"DL_SET_COLOR_TOOLTIP",icon:"paintbucket",apply:o("setColor"),displayInMenu:!0,onClick:!0}]:[]}return u.canApplyColor!==!0?[{name:"DL_MU_ADD_COLORS_TOOLTIP",icon:"paintbucket",allowMultiple:!0,apply:o("addSwatch"),displayInMenu:!0}]:u.numberOfSelectedPageItems===0?[{name:"DL_SET_PAGE_FILL_COLOR_MU",icon:"paintbucket"
,allowMultiple:!1,apply:o("setColor"),displayInMenu:!0},{name:"DL_SET_BROWSER_FILL_COLOR_MU",icon:"paintbucket",allowMultiple:!1,apply:o("setBrowserFillColor"),displayInMenu:!0},{name:"DL_MU_ADD_COLORS_TOOLTIP",icon:"paintbucket",allowMultiple:!0,apply:o("addSwatch"),displayInMenu:!0}]:u.isTextSelection===!0?[{name:"DL_SET_TEXT_COLOR_MU",icon:"paintbucket",allowMultiple:!1,apply:o("setColor"),displayInMenu:!0,onClick:!0},{name:"DL_MU_ADD_COLORS_TOOLTIP",icon:"paintbucket",allowMultiple:!0,apply:o
("addSwatch"),displayInMenu:!0}]:[{name:"DL_SET_FILL_COLOR_MU",icon:"paintbucket",apply:o("setColor"),displayInMenu:!0,onClick:!0},{name:"DL_SET_STROKE_COLOR_MU",icon:"paintbucket",apply:o("setStrokeColor"),displayInMenu:!0},{name:"DL_MU_ADD_COLORS_TOOLTIP",icon:"paintbucket",allowMultiple:!0,apply:o("addSwatch"),displayInMenu:!0}]},defaultEditOperation:function(t){var i,o,u=[],a=r.getUsableTypes(s.COLOR_ELEMENT_TYPE),f;for(i=0;i<t.representations.length;i++)o=t.representations[i],e.isRepresentationCompatible
(o,a)&&(f=o.getValue(s.COLOR_NAMESPACE,s.COLOR_DATA_KEY),u&&u.push(f));var l;return n.execApp("replaceColor",[u]).then(function(e){return l=JSON.parse(e),n.execApp("getLayerColor",[])}).then(function(e){if(l){var n=JSON.parse(e);t.beginOperation(),t.removeAllRepresentations(),n.forEach(function(e,n){var r=n===0?"primary":"rendition",i=t.createRepresentation(s.COLOR_REPRESENTATION_TYPE,r);i.setValue(s.COLOR_NAMESPACE,s.COLOR_DATA_KEY,e)}),t.endOperation()}})}})}])}}),define("applications/MUSE/js/configuration/image"
,["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["$q","designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration","$translate","documentWatcher","designLibraryManager","tempFileManager","adobeStockUtils","designLibraryCEPEventHandlers",function(e,t,n,r,i,s,o,u,a,f,l,c,h){t.registerOverride({type:o.IMAGE_ELEMENT_TYPE,getApplyOperations:function(e,u){var a=function(n,u){var a="application/vnd.adobe.muse-collection"
,f=e.getPrimaryRepresentation(),l=f&&f.type===a;if(l)return s.reportApplyMetric(f,"placeAsset"),f.getContentPath().then(function(t){return r.execApp("placeAsset",[t,e.name,e.getReference(),n,u])});var c=t.findRepresentation(e,i.getUsableTypes(o.IMAGE_ELEMENT_TYPE));return c?(s.reportApplyMetric(c,"placeAsset"),c.getContentPath().then(function(t){return r.execApp("placeAsset",[t,e.name,e.getReference(),n,u])})):e.getThumbnailPath().then(function(t){return r.execApp("placeAsset",[t,e.name,e.getReference
(),n,u])},function(e){console.log(e)})},f=n.getLayerInfo();if(!f||!f.isDesignMode)return[];var l="application/vnd.adobe.muse-collection",c=e.getPrimaryRepresentation(),h=c&&c.type===l,p=f.numberOfSelectedPageItems===0&&!h,d=p===!1&&f.canApplyItemBackgroundFill===!0&&h===!1;return[{name:"DL_ADD_IMAGE_TO_DOC_AS_LINKED",icon:"download",allowMultiple:!0,apply:function(){a(!0,"usePlaceGun")},displayInMenu:!h},{name:"DL_ADD_IMAGE_TO_DOC_AS_COPY",icon:"download",allowMultiple:!0,apply:function(){a(!1,"usePlaceGun"
)},displayInMenu:!0},{name:"DL_ADD_IMAGE_TO_ITEM_FILL_MU",icon:"download",allowMultiple:!1,apply:function(){a(!0,"setImageItemFill")},displayInMenu:d},{name:"DL_ADD_IMAGE_TO_PAGE_FILL_MU",icon:"download",allowMultiple:!1,apply:function(){a(!0,"setImagePageFill")},displayInMenu:p},{name:"DL_ADD_IMAGE_TO_BROWSER_FILL_MU",icon:"download",allowMultiple:!1,apply:function(){a(!0,"setImageBrowserFill")},displayInMenu:p}]}})}])}}),define("applications/MUSE/js/configuration/parastyle",["require","exports"
,"module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s){e.registerOverride({type:s.PARAGRAPH_STYLE_ELEMENT_TYPE,getApplyOperations:function(e,t){return[]},getAddOperations:function(e){return[]}})}])}}),define("applications/MUSE/js/configuration/textstyle",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular
.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s){e.registerOverride({type:s.CHARACTER_STYLE_ELEMENT_TYPE,getApplyOperations:function(e,t){return[]},getAddOperations:function(e){return[]}})}])}}),define("applications/MUSE/js/configuration/main",["require","exports","./brush","./color","./image","./parastyle","./textstyle"],function(e,t){"use strict";t.attach=function(t){e("./brush").attach(t),e("./color"
).attach(t),e("./image").attach(t),e("./parastyle").attach(t),e("./textstyle").attach(t)}}),define("applications/PHXS/js/configuration/color",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration","$translate",function(e,t,n,r,i,s,o){e.registerOverride({type:s.COLOR_ELEMENT_TYPE,getApplyOperations:function(e,r){var u=function(t,r){return function(
o,u){return o||(o=[],e.representations.forEach(function(e){var t=e.getValue(s.COLOR_NAMESPACE,s.COLOR_DATA_KEY);e.relationship==="primary"?o.unshift(t):o.push(t)}),e.representations.length>0&&i.reportApplyMetric(e.representations[0],t)),angular.isFunction(u)&&u(t),n.execApp(t,[o,r])}},a=t.getLayerInfo(),f={name:"DL_SET_COLOR_TOOLTIP",icon:"paintbucket",apply:u("setColor",o.instant("DL_SET_COLOR_TOOLTIP")),displayInMenu:!0},l=[];return a&&a.selectionExists?(a.enableShapeLayerApplyOperations?(l.push
({name:"DL_SET_FILL_COLOR_TOOLTIP",icon:"paintbucket",apply:u("setFillColor",o.instant("DL_SET_FILL_COLOR_TOOLTIP")),displayInMenu:!0}),l.push({name:"DL_SET_STROKE_COLOR_TOOLTIP",icon:"brush",apply:u("setStrokeColor",o.instant("DL_SET_STROKE_COLOR_TOOLTIP")),displayInMenu:!0})):l.push(f),l.push({name:"DL_SET_COLOR_OVERLAY_TOOLTIP",icon:"brush",apply:u("setColorOverlay",o.instant("DL_SET_COLOR_OVERLAY_TOOLTIP")),displayInMenu:!0,disableClick:!0})):l.push(f),l[0].disableClick!==!0&&(l[0].onClick=!0
),l},defaultEditOperation:function(t){var i=e.findRepresentation(t,r.getUsableTypes(s.COLOR_ELEMENT_TYPE)),o;i&&(o=i.getValue(s.COLOR_NAMESPACE,s.COLOR_DATA_KEY));var u;return n.execApp("replaceColor",[o]).then(function(e){return u=JSON.parse(e),n.execApp("getLayerColor",[])}).then(function(e){if(u){var n=JSON.parse(e);t.beginOperation(),t.removeAllRepresentations(),n.forEach(function(e,n){var r=n===0?"primary":"rendition",i=t.createRepresentation(s.COLOR_REPRESENTATION_TYPE,r);i.setValue(s.COLOR_NAMESPACE
,s.COLOR_DATA_KEY,e)}),t.endOperation()}})}})}])}}),define("applications/PHXS/js/configuration/image",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration","adobeStockUtils","phxsImageUtils",function(e,t,n,r,i,s,o,u){e.registerOverride({type:s.IMAGE_ELEMENT_TYPE,enableEditOriginal:function(){return s.currentProduct.config.enableEditOriginal
},getApplyOperations:function(u,a){var f=function(t){return e.findRepresentation(t,r.getUsableTypes(s.IMAGE_ELEMENT_TYPE))},l=function(t){var r=o.getStockId(u),s=f(u);return s?(i.reportApplyMetric(s,"placeAsset",t),s.getContentPath().then(function(i){return n.execApp("placeAsset",[i,u.library.name,u.name,u.getReference(),e.getElementModifiedTime(u),u.created,r,r?o.isLicensed(u):null,t])})):u.getThumbnailPath().then(function(s){return i.reportApplyMetric({type:"image/png",_element:u},"placeAsset",
t),n.execApp("placeAsset",[s,u.library.name,u.name,u.getReference(),e.getElementModifiedTime(u),u.created,r,r?o.isLicensed(u):null,t])},function(e){console.log(e)})};if(!t.hasDocumentOpen())return[];var c=!1,h=f(u);if(h){var p=["application/postscript","application/pdf","application/illustrator"];p.indexOf(h.type)!==-1&&(c=!0)}return[{name:"DL_ADD_IMAGE_TO_DOC_AS_LINKED",icon:"download",apply:function(){l(!0)},displayInMenu:!0},{name:c?"DL_ADD_IMAGE_TO_DOC_AS_COPY":"DL_ADD_IMAGE_TO_DOC_AS_LAYERS"
,icon:"download",apply:function(){l(!1)},displayInMenu:!0}]},defaultEditOperation:function(e){return u.editImageOr3DElement(e)},transformAddOperations:function(e,t){var n=t&&t.hasOwnProperty("libraryLinked")&&t.libraryLinked;return n&&e&&e.length>0&&e[0].name==="DL_ADD_IMAGE_NAME"&&(e[0].toolTip="DL_ADD_IMAGE_TOOLTIP_ALREADY_LINKED",e[0].disabled=!0),e}})}])}}),define("applications/PHXS/js/configuration/layerstyle",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){
angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s){e.registerOverride({type:s.LAYER_STYLE_ELEMENT_TYPE,getApplyOperations:function(o,u){var a=t.getLayerInfo(),f=function(){var t=e.findRepresentation(o,r.getUsableTypes(s.LAYER_STYLE_ELEMENT_TYPE));if(t)return i.reportApplyMetric(t,"applyLayerStyle"),t.getContentPath().then(function(e){return n.execApp("applyLayerStyle",[e])})};return!a||a&&!a.enableApplyStyle?
[]:[{name:"DL_APPLY_LAYER_STYLE",icon:"layerstyle",onClick:!0,apply:f,displayInMenu:!0}]}})}])}}),define("applications/PHXS/js/configuration/textstyle",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration","$translate",function(e,t,n,r,i,s,o){var u="characterstyle",a="data";e.registerOverride({type:s.CHARACTER_STYLE_ELEMENT_TYPE,getApplyOperations
:function(f,l){var c=function(){var t=e.findRepresentation(f,r.getUsableTypes(s.CHARACTER_STYLE_ELEMENT_TYPE));if(t){i.reportApplyMetric(t,"setFont");var l=t.getValue(u,a);return n.execApp("setFont",[l,o.instant("DL_PHXS_HISTORY_ENTRY_SET_TEXT_STYLE")])}},h=function(){var t=e.findRepresentation(f,r.getUsableTypes(s.CHARACTER_STYLE_ELEMENT_TYPE));if(t){i.reportApplyMetric(t,"createTextLayer");var l=t.getValue(u,a);return n.execApp("createFontLayer",[l,o.instant("DL_PHXS_HISTORY_ENTRY_CREATE_TEXT_LAYER"
)])}},p=[],d=t.getLayerInfo();return!d||d&&!d.selectionExists?[]:(d&&d.enableApplyText&&p.push({name:"DL_SET_TEXT_STYLE_TOOLTIP",icon:"text",onClick:!0,apply:c,displayInMenu:!0}),p.push({name:"DL_CREATE_TEXT_LAYER_TOOLTIP",icon:"pastetext",apply:h,displayInMenu:!0}),p)}})}])}}),define("applications/PHXS/js/configuration/brush",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","csInterface","fileUtils","designLibraryUtils"
,"configuration",function(e,t,n,r,i){e.registerOverride({type:i.BRUSH_ELEMENT_TYPE,getApplyOperations:function(i,s){var o=n.getUsableTypes(i.type),u=i.representations.filter(function(t){var n=t.relationship==="rendition",r=e.isRepresentationCompatible(t,o);return!n&&r}),a=u.length===0;if(!a){var f=function(){var e=u[0];if(e)return r.reportApplyMetric(e,"useBrush"),e.getContentPath().then(function(e){return t.execApp("loadAndSelectBrush",[e,i.name])})};return[{name:"DL_ADD_BRUSH_TO_DOC",icon:"brush"
,onClick:!0,apply:f,displayInMenu:!0}]}return[]}})}])}}),define("applications/PHXS/js/configuration/parastyle",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s){e.registerOverride({type:s.PARAGRAPH_STYLE_ELEMENT_TYPE,getAddOperations:function(){return[]}})}])}}),define("applications/PHXS/js/configuration/pattern"
,["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration","localSettings","$translate",function(e,t,n,r,i,s,o,u){e.registerOverride({type:s.PATTERN_ELEMENT_TYPE,isDraggable:function(){return s.currentProduct.config.enablePatternDragging},getApplyOperations:function(o,a){var f=t.getLayerInfo();if(!f||f&&!f.selectionExists)return[];var l=function(
){var t=e.findRepresentation(o,r.getUsableTypes(s.PATTERN_ELEMENT_TYPE));if(t)return i.reportApplyMetric(t,"applyPattern"),t.getContentPath().then(function(e){return n.execApp("makePatternLayerFromFile",[e,o.name,u.instant("DL_PHXS_HISTORY_ENTRY_APPLY_PATTERN")])})},c=function(){var t=e.findRepresentation(o,r.getUsableTypes(s.PATTERN_ELEMENT_TYPE));if(t)return i.reportApplyMetric(t,"definePatternPreset"),t.getContentPath().then(function(e){return n.execApp("definePatternFile",[e,o.name])})};return[
{name:"DL_APPLY_PATTERN",onClick:!0,apply:l,displayInMenu:!0},{name:"DL_ADD_PATTERN_TO_PRESETS",icon:"brush",onClick:!1,apply:c,displayInMenu:!0}]}})}])}}),define("applications/PHXS/js/configuration/look",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration","$translate",function(e,t,n,r,i,s,o){e.registerOverride({type:s.LOOK_ELEMENT_TYPE
,isDraggable:!1,getApplyOperations:function(u,a){var f=function(){var t=e.findRepresentation(u,r.getUsableTypes(s.LOOK_ELEMENT_TYPE));if(t)return i.reportApplyMetric(t,"makeColorLookupLayerFromFile"),t.getContentPath().then(function(e){return n.execApp("makeColorLookupLayerFromFile",[e,u.name])})},l=!0,c=function(e){n.execApp("frontDocIsRGB").then(function(t){t==="true"?f():e&&alert(o.instant("DL_APPLY_LOOK_REQUIRES_RGB"))})},h=t.getLayerInfo();return!h||h&&!h.enableApplyLook&&!l?[]:[{name:"DL_APPLY_LOOK"
,onClick:!0,isDraggable:!1,apply:function(){c(!1)},displayInMenu:!1},{name:"DL_APPLY_LOOK",onClick:!1,isDraggable:!1,apply:function(){c(!0)},displayInMenu:!0}]}})}])}}),define("applications/PHXS/js/configuration/3d",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["$q","designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","designLibraryManager","configuration","$translate","documentWatcher","tempFileManager"
,"designLibraryCEPEventHandlers","designLibraryCEPEventEmitters","lockUtils","phxsImageUtils",function(e,t,n,r,i,s,o,u,a,f,l,c,h,p,d){t.registerOverride({type:u.THREE_D_ELEMENT_TYPE,isDraggable:!0,getApplyOperations:function(e,o){var a=function(e){return t.findRepresentation(e,i.getUsableTypes(u.THREE_D_ELEMENT_TYPE))},f=function(){var n=a(e);return n?(s.reportApplyMetric(n,"placeAsset",!1),n.getContentPath().then(function(n){return r.execApp("placeAsset",[n,e.library.name,e.name,e.getReference()
,t.getElementModifiedTime(e),e.created,null,null,!1])})):e.getThumbnailPath().then(function(n){return s.reportApplyMetric({type:"image/png",_element:e},"placeAsset",!1),r.execApp("placeAsset",[n,e.library.name,e.name,e.getReference(),t.getElementModifiedTime(e),e.created,null,null,!1])},function(e){console.log(e)})};return n.hasDocumentOpen()?[{name:"DL_ADD_IMAGE_TO_DOC",icon:"download",apply:function(){f()},displayInMenu:!0}]:[]},defaultEditOperation:function(e){d.editImageOr3DElement(e)}})}])}}
),define("applications/PHXS/js/configuration/main",["require","exports","./color","./image","./layerstyle","./textstyle","./brush","./parastyle","./pattern","./look","./3d"],function(e,t){"use strict";t.attach=function(t){e("./color").attach(t),e("./image").attach(t),e("./layerstyle").attach(t),e("./textstyle").attach(t),e("./brush").attach(t),e("./parastyle").attach(t),e("./pattern").attach(t),e("./look").attach(t),e("./3d").attach(t)}}),define("applications/PPRO/js/configuration/color",["require"
,"exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s){e.registerOverride({type:s.COLOR_ELEMENT_TYPE,order:9,getApplyOperations:function(e,t){return[]}})}])}}),define("applications/PPRO/js/configuration/colortheme",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements"
,"designLibraryUtils","fileUtils","configuration",function(e,t,n,r){e.registerOverride({type:r.COLOR_THEME_ELEMENT_TYPE,order:14,getApplyOperations:function(e,t,n){return[]}})}])}}),define("applications/PPRO/js/configuration/image",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["$q","designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","designLibraryManager","configuration","$translate","documentWatcher"
,"tempFileManager","adobeStockUtils",function(e,t,n,r,i,s,o,u,a,f,l,c){t.registerOverride({type:u.IMAGE_ELEMENT_TYPE,transformAddOperations:function(e,t){return e&&e.length>0&&e[0].name==="DL_ADD_IMAGE_NAME"&&(e[0].disabled=!0),e},getApplyOperations:function(e,o){var a=function(n){var o=c.getStockId(e),a=t.findRepresentation(e,i.getUsableTypes(u.IMAGE_ELEMENT_TYPE));return a?(s.reportApplyMetric(a,"placeAsset"),a.getContentPath().then(function(s){var f=i.mimeLookup(u.IMAGE_ELEMENT_TYPE,a.type),l=
f&&f.name==="Photoshop";return r.execApp("placeAsset",[s,l,e.library.name,e.name,e.getReference(),t.getElementModifiedTime(e),e.created,o,o?c.isLicensed(e):null,n])})):e.getThumbnailPath().then(function(i){return s.reportApplyMetric({type:"image/png",_element:e},"placeAsset"),r.execApp("placeAsset",[i,!1,e.library.name,e.name,e.getReference(),t.getElementModifiedTime(e),e.created,o,o?c.isLicensed(e):null,n])},function(e){console.log(e)})},f=n.getLayerInfo();return f?[{name:"DL_ADD_IMAGE_TO_PROJECT"
,icon:"download",apply:a,displayInMenu:!0}]:[]}})}])}}),define("applications/PPRO/js/configuration/textstyle",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s){e.registerOverride({type:s.CHARACTER_STYLE_ELEMENT_TYPE,order:13,getApplyOperations:function(e,t){return[]}})}])}}),define("applications/PPRO/js/configuration/layerstyle"
,["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration","$translate",function(e,t,n,r,i,s,o){e.registerOverride({type:s.LAYER_STYLE_ELEMENT_TYPE,order:11,getApplyOperations:function(e,t){return[]}})}])}}),define("applications/PPRO/js/configuration/brush",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular
.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s){e.registerOverride({type:s.BRUSH_ELEMENT_TYPE,order:10,getApplyOperations:function(e,t){return[]}})}])}}),define("applications/PPRO/js/configuration/look",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["$q","designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils"
,"configuration","$translate",function(e,t,n,r,i,s,o,u){t.registerOverride({type:o.LOOK_ELEMENT_TYPE,isDraggable:!0,getApplyOperations:function(e,n){var r=function(){var n=t.findRepresentation(e,i.getUsableTypes(o.LOOK_ELEMENT_TYPE));if(n)return n.getContentPath().then(function(e){return})};return[{name:"DL_APPLY_LOOK",onClick:!0,isDraggable:!0,apply:r,displayInMenu:!1}]},getAddOperations:function(t){var n=function(t,n){var u=e.defer();return r.execApp("getSelectedLookData").then(function(r){var a=
JSON.parse(r),f=s.createElementExtraMetrics(t,a.name,o.LOOK_ELEMENT_TYPE,{opType:n}),l=[],c,h;a.lookPath&&(c=f.createRepresentation("application/vnd.adobe.look+xml","primary"),h=c.setContentFromPath(a.lookPath).then(function(){i.deleteFile(a.lookPath)}),l.push(h));if(a.cubePath){var p="primary";a.lookPath&&(p="alternate"),c=f.createRepresentation("application/vnd.adobe.cube+txt",p),h=c.setContentFromPath(a.cubePath).then(function(){i.deleteFile(a.cubePath)}),l.push(h)}if(a.previewPath){var d=f.createRepresentation
("image/jpg","rendition");h=d.setContentFromPath(a.previewPath).then(function(){d.width=o.LOOK_RENDITION_SIZE,d.height=o.LOOK_RENDITION_SIZE,i.deleteFile(a.previewPath)}),l.push(h)}e.all(l).then(function(){f.endOperation(),u.resolve(f)},function(){t.removeElement(f,!0),u.reject("Could not create element.")})},function(){u.reject("Could not create element.")}),u.promise};return[{name:"DL_ADD_LOOK_NAME",order:0,toolTip:"DL_ADD_LOOK_TOOLTIP",icon:"newlook",apply:n,disabled:!t||!t.look,displayIcon:!0
}]}})}])}}),define("applications/PPRO/js/configuration/parastyle",["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","configuration",function(e,t,n,r,i,s){e.registerOverride({type:s.PARAGRAPH_STYLE_ELEMENT_TYPE,order:12,getApplyOperations:function(e,t){return[]},getAddOperations:function(){return[]}})}])}}),define("applications/PPRO/js/configuration/video"
,["require","exports","module"],function(e,t){"use strict";t.attach=function(e){angular.module(e).run(["designLibraryElements","configuration","layerSelectionManager","csInterface","fileUtils","designLibraryUtils","adobeStockUtils",function(e,t,n,r,i,s,o){e.registerOverride({type:t.VIDEO_ELEMENT_TYPE,isDraggable:!0,getApplyOperations:function(u,a){var f=function(){var n=o.getStockId(u),a=e.findRepresentation(u,i.getUsableTypes(t.VIDEO_ELEMENT_TYPE));if(a){s.reportApplyMetric(a,"placeAsset");var f=
[],l=i.getUsableTypes(u.type);return u.representations.forEach(function(t){e.isRepresentationCompatible(t,l)&&f.push({contentType:t.type,url:t.getContentURL()})}),r.execApp("placeAsset",[f,!1,u.library.name,u.name,u.getReference(),e.getElementModifiedTime(u),u.created,n,n?o.isLicensed(u):null,!1])}},l=n.getLayerInfo();return l?[{name:"DL_ADD_VIDEO_TO_PROJECT",icon:"download",apply:f,displayInMenu:!0}]:[]}})}])}}),define("applications/PPRO/js/configuration/main",["require","exports","./color","./colortheme"
,"./image","./textstyle","./layerstyle","./brush","./look","./parastyle","./video"],function(e,t){"use strict";t.attach=function(t){e("./color").attach(t),e("./colortheme").attach(t),e("./image").attach(t),e("./textstyle").attach(t),e("./layerstyle").attach(t),e("./brush").attach(t),e("./look").attach(t),e("./parastyle").attach(t),e("./video").attach(t)}}),define("edgeccTemplates",[],function(){return function(e){"use strict";e.put("directives/designlibrary/templates/designLibrary.tmpl.html",'<div class="panel-dl-container">\n\n    <div class="panel-dl-header">\n        <div class="panel-dl-header-library">\n            <edgecc-select class="panel-library-combo" ng-disabled="!libraries || libraries.length === 0" ng-model="library" ng-change="selectedLibraryChanged()" options-array="libraries" display-field="name" order-by="{{uiState.librarySortFunction}}" max-height="350">\n            </edgecc-select>\n\n            <button class="panel-dl-header-toggle-button edgecc-icon" ng-class="{selected: uiState.view === \'grid\'}" ng-click="setViewState(\'grid\')" ng-disabled="uiState.mode === \'search\' && uiState.modeParams.type === \'stock\'"\n                    edgecc-hover edgecc-tooltip tooltip-content="{{\'DL_SWITCH_TO_GRIDVIEW_TOOLTIP\' | translate}}">newgridview</button>\n\n            <button class="panel-dl-header-toggle-button edgecc-icon" ng-class="{selected: uiState.view === \'list\'}" ng-click="setViewState(\'list\')" ng-disabled="uiState.mode === \'search\' && uiState.modeParams.type === \'stock\'"\n                    edgecc-hover edgecc-tooltip tooltip-content="{{\'DL_SWITCH_TO_LISTVIEW_TOOLTIP\' | translate}}">newlistview</button>\n        </div>\n\n        <edgecc-search disable="!library" ng-show="uiState.mode !== \'relink\'"></edgecc-search>\n\n        <div ng-if="uiState.mode === \'relink\'" class="panel-relink-header">\n            <div class="panel-relink-header-image-missing" ng-if="uiState.modeParams.missing === true"></div>\n            <div class="panel-relink-header-image edgecc-icon" ng-if="uiState.modeParams.missing === false">cloud</div>\n            <div class="panel-relink-header-text">{{uiState.modeParams.message}}</div>\n        </div>\n    </div>\n\n    <edgecc-dl-no-libraries ng-show="!library" create-callback="showCreateDialog()"></edgecc-dl-no-libraries>\n\n    <edgecc-dl-stock ng-if="uiState.mode === \'search\' && uiState.modeParams.type === \'stock\'" library="library"></edgecc-dl-stock>\n\n    <edgecc-design-library-contents ng-hide="uiState.mode === \'search\' && uiState.modeParams.type === \'stock\'" library="library"></edgecc-design-library-contents>\n\n    <div ng-show="uiState.mode === \'relink\' && showRelinkOverlay" class="panel-relink-overlay" ng-mouseenter="onMouseEnter()">\n        <div class="panel-relink-overlay-message">{{uiState.modeParams.overlayMessage}}</div>\n    </div>\n\n    <edgecc-dl-footer library="library"></edgecc-dl-footer>\n\n    <edgecc-modal-dialog ng-if="createDialog.visible" disable-ok="!isValidName(newItem.name)" show-dialog="createDialog.visible" on-submit="createDesignLibrary()" title-text="DL_CREATE_DESIGN_LIBRARY" ok-text="DL_CREATE" cancel-text="DL_CANCEL">\n        <div class="panel-dialog-layout-group">\n            <div class="panel-dialog-layout-75">\n                <input ng-model="newItem.name" type="text" placeholder="{{\'DL_NAME_DESC\' | translate}}" style="width:100%" edgecc-set-focus="createDialog.setFocus" ng-keydown="onCreateLibKeyDown($event)" spellcheck="false"/>\n            </div>\n        </div>\n    </edgecc-modal-dialog>\n\n    <edgecc-modal-dialog ng-if="deleteDialog.visible" show-dialog="deleteDialog.visible" on-submit="deleteCurrentLibrary()" title-text="{{deleteDialog.title}}" ok-text="{{deleteDialog.btnTitle}}" cancel-text="DL_CANCEL">\n        <div class="panel-dialog-layout-100" ng-bind="deleteDialog.text"></div>\n    </edgecc-modal-dialog>\n\n    <edgecc-modal-dialog ng-if="stockPurchaseDialog.visible" show-dialog="stockPurchaseDialog.visible" on-submit="confirmStockPurchase" on-cancel="cancelStockPurchase()" title-text="{{stockPurchaseDialog.titleText}}" ok-text="{{stockPurchaseDialog.okText}}" cancel-text="{{stockPurchaseDialog.cancelText}}" secondary-ok-text="{{stockPurchaseDialog.secondaryOkText}}">\n        <div class="panel-dialog-layout-100" ng-bind-html="stockPurchaseDialog.text"></div>\n    </edgecc-modal-dialog>\n\n    <edgecc-modal-dialog ng-if="settingsDialog.visible" disable-ok="!isValidName(editItem.name)" show-dialog="settingsDialog.visible" on-submit="updateDesignLibrary()" title-text="{{ \'DL_RENAME_LIBRARY\' | translate:library }}" ok-text="DL_RENAME" cancel-text="DL_CANCEL">\n        <div class="panel-dialog-layout-group">\n            <input ng-model="editItem.name" type="text" placeholder="{{\'DL_NAME_DESC\' | translate}}" style="width:100%" edgecc-set-focus="settingsDialog.setFocus" ng-keydown="onRenameLibKeyDown($event)" spellcheck="false"/>\n        </div>\n    </edgecc-modal-dialog>\n</div>\n'
),e.put("directives/designlibrary/templates/designLibraryContents.tmpl.html",'<div class="panel-dl-contents" ng-class="{\'panel-dl-contents-relink\': uiState.mode === \'relink\'}" ng-show="library" ng-click="clickOutsideComponent($data)"\n     edgecc-drop-files drop-types="{{allowedDropTypes}}" drop-sources="{{allowedDropSources}}" on-drop="onLayerDrop($data)"\n     on-drag-enter="onLayerDragEnter($data)" on-drag-leave="onLayerDragLeave($data)">\n\n    <div class="panel-dl-contents-quota-message" ng-if="library.isQuotaExceeded">\n        <div class="panel-dl-contents-quota-message-icon edgecc-icon">alert</div>\n        <div>\n            <div class="panel-dl-contents-quota-message-text" translate>DL_QUOTA_EXCEEDED_LIBRARY_MESSAGE</div>\n            <div class="panel-dl-contents-quota-message-text" translate>DL_QUOTA_EXCEEDED_LIBRARY_TIP</div>\n        </div>\n    </div>\n\n    <div class="panel-dl-contents-area">\n        <edgecc-dl-category library="library"></edgecc-dl-category>\n    </div>\n\n    <div class="panel-deleted-message-container" ng-if="library.isDeletedFromServer">\n      <div class="panel-deleted-message">\n        <div class="panel-deleted-message-inner">\n            <div class="panel-deleted-message-icon edgecc-icon">creativecloudwarning</div>\n            <div ng-if="library.collaboration !== \'incoming\'" class="panel-deleted-message-description" translate>DL_DELETED_FROM_SERVER</div>\n            <div ng-if="library.collaboration === \'incoming\'" class="panel-deleted-message-description" translate>DL_UNSHARED</div>\n        </div>\n                    <div class="panel-deleted-message-options">\n              <a class="panel-deleted-message-link" ng-click="deleteCurrentLibrary()" translate>DL_REMOVE_FROM_LIST</a>\n            </div>\n      </div>\n    </div>\n\n    <div ng-show="isDraggingLayer" class="panel-dl-contents-drop-area">\n        <div class="panel-dl-contents-drop-area-container">\n            <div ng-show="isDropAllowed && !isDraggingLayerToLink" class="panel-dl-contents-drop-area-icon edgecc-icon">addcopy</div>\n            <div ng-show="isDropAllowed && isDraggingLayerToLink" class="panel-dl-contents-drop-area-icon edgecc-icon">addlink</div>\n            <div ng-show="!isDropAllowed" class="panel-dl-contents-drop-area-smaller-icon edgecc-icon">alert</div>\n\n            <div ng-show="isDropAllowed" class="panel-dl-contents-drop-area-text">\n                <div ng-repeat="layerName in layerNames">{{layerName}}</div>\n            </div>\n            <div ng-show="!isDropAllowed && dropMessage" class="panel-dl-contents-drop-area-text">{{dropMessage}}</div>\n            <div ng-show="isDropAllowed && dropMessage" class="panel-dl-contents-drop-area-subtext">{{dropMessage}}</div>\n        </div>\n    </div>\n</div>\n'
),e.put("directives/designlibrary/templates/designLibraryEditableGridName.tmpl.html",'<div class="panel-grid-item-name-container" ng-class="{selected: selected, windowhover: globalHovering}" ng-dblclick="startEditName($event)">\n    <span class="panel-grid-item-name" ng-hide="editState.active">\n        {{component.name ? component.name : (defaultInformation || \'\')}}\n    </span>\n    <input class="panel-grid-item-edit-name" ng-if="editState.active" type="text"\n           ng-model="editState.name" placeholder="{{\'DL_EDIT_NAME_PLACEHOLDER\' | translate}}"\n           ng-keydown="handleKeyDown($event)" edgecc-set-focus="editState.setFocus" ng-blur="finishEditName()" spellcheck="false"/>\n</div>\n'
),e.put("directives/designlibrary/templates/designLibraryEditableListName.tmpl.html",'<div class="panel-list-item-name-container" ng-class="{selected: selected, windowhover: globalHovering}" ng-dblclick="startEditName($event)">\n    <span class="panel-list-item-name" ng-hide="editState.active">\n        {{component.name ? component.name : (defaultInformation || \'\')}}\n    </span>\n    <input class="panel-list-item-edit-name" ng-if="editState.active" type="text"\n           ng-model="editState.name" placeholder="{{\'DL_EDIT_NAME_PLACEHOLDER\' | translate}}"\n           ng-keydown="handleKeyDown($event)" edgecc-set-focus="editState.setFocus" ng-blur="finishEditName()" spellcheck="false"/>\n</div>\n'
),e.put("directives/designlibrary/templates/designLibraryFooter.tmpl.html",'<div class="panel-footer">\n    <div class="panel-footer-divider-container"><div class="panel-footer-divider"></div></div>\n    <div class="panel-footer-toolbar" ng-class="{windows: isWindowsOS}" ng-show="uiState.mode !== \'relink\'">\n        <div class="panel-footer-icon-read-only edgecc-icon" edgecc-tooltip tooltip-content="{{\'DL_DESIGN_LIBRARY_READ_ONLY\' | translate}}" ng-if="library && !library.isWritable">readonly</div>\n\n        <button ng-show="addDocContentOperation" ng-if="library && library.isWritable"  class="panel-footer-icon shift-padding edgecc-icon" ng-class="{disabled: !addDocContentOperation.enabled}" ng-click="addDocContentOperation.enabled && addDocContentOperation.apply()" edgecc-tooltip tooltip-content="{{addDocContentOperation.iconToolTip | translate}}">{{ addDocContentOperation.icon }}</button>\n\n        <button ng-repeat="op in layerOperations | orderBy:\'order\'" ng-class="{disabled: op.disabled}" class="panel-footer-icon" edgecc-tooltip tooltip-content="{{op.toolTip | translate}}" ng-click="!op.disabled && doAddOperation(op)" ng-if="op.displayIcon && library && library.isWritable">\n            <div class="edgecc-icon" ng-style="op.style">{{op.icon}}</div>\n        </button>\n\n        <div class="panel-footer-toolbar-spacing"></div>\n\n        <div ng-switch="status.state" ng-mousedown="showNetworkStatus()" ng-mouseup="hideNetworkStatus()" ng-mouseleave="hideNetworkStatus()" ng-click="onStatusClick()">\n            <div ng-switch-when="ok" class="panel-footer-icon-ok edgecc-icon" edgecc-tooltip tooltip-content="{{\'DL_SYNC_OK\' | translate}}" disable="syncStatus.visible">newcreativecloud</div>\n            <div ng-switch-when="syncing" class="panel-footer-icon-syncing edgecc-icon" edgecc-tooltip tooltip-data="status" template-url="directives/designlibrary/templates/syncTooltip.tmpl.html" disable="syncStatus.visible">newsyncing</div>\n            <div ng-switch-when="error" class="panel-footer-icon-error edgecc-icon" edgecc-tooltip tooltip-data="tooltipData" template-url="directives/designlibrary/templates/syncErrorTooltip.tmpl.html" disable="syncStatus.visible || ccAppWarning.visible">\n                {{(status.errorType === \'loggedOut\' || status.errorType === \'syncDisabled\') ? \'newcreativecloudwarning\' : \'newcreativeclouderror\'}}\n            </div>\n        </div>\n\n        <div edgecc-drop-files on-drop="onDropDone($data)" drop-types="{{allowedDropTypes}}" drop-sources="{{allowedDropSources}}">\n            <button class="panel-footer-icon shift-padding edgecc-icon" ng-click="doDeleteItems()" ng-class="{disabled: (!hasSelection || uiState.modeParams.type === \'stock\' || !library || !library.isWritable)}" edgecc-tooltip tooltip-content="{{\'DL_FOOTER_DELETE_TOOLTIP\' | translate}}">{{ deleteIcon }}</button>\n        </div>\n    </div>\n\n    <div class="panel-ccapp-warning-container" ng-show="ccAppWarning.visible && uiState.mode !== \'relink\'" is-event-target="isEventTargetCCAppWarning">\n        <div class="panel-ccapp-warning-container-box">\n            <div class="panel-ccapp-warning-message" translate>DL_LAUNCH_CC_APP_MESSAGE</div>\n            <div class="panel-ccapp-warning-footer">\n                <div ng-if="!isWindowsOS" class="panel-ccapp-warning-button" ng-click="hideCCAppWarningMessage()" edgecc-hover>\n                    <span translate>DL_LAUNCH_CC_APP_CANCEL_BUTTON</span>\n                </div>\n                <div class="panel-ccapp-warning-button" ng-click="enableCCApp()" edgecc-hover>\n                    <span class="panel-ccapp-warning-button-icon edgecc-icon">newcreativecloud</span>\n                    <span translate>DL_LAUNCH_CC_APP_ENABLE_BUTTON</span>\n                </div>\n                <div ng-if="isWindowsOS" class="panel-ccapp-warning-button" ng-click="hideCCAppWarningMessage()" edgecc-hover>\n                    <span translate>DL_LAUNCH_CC_APP_CANCEL_BUTTON</span>\n                </div>\n            </div>\n        </div>\n    </div>\n\n    <div class="panel-sync-message-container" ng-show="syncStatus.visible && uiState.mode !== \'relink\'">\n        <div ng-switch="status.state">\n            <div ng-switch-when="ok" class="panel-sync-message" translate>DL_SYNC_OK</div>\n            <div ng-switch-when="syncing" class="panel-sync-message">\n                <span ng-show="status.syncingLibraries.length === 0 && status.syncProgress === undefined" translate>DL_SYNC_PROGRESS</span>\n                <span ng-show="status.syncingLibraries.length === 0 && status.syncProgress !== undefined" translate translate-values="{percent: status.syncProgress}">DL_SYNC_PROGRESS_PERCENT</span>\n\n                <span ng-show="status.syncingLibraries.length > 0" translate translate-values="{number: status.syncingLibraries.length}">DL_SYNC_PROGRESS_NUM_LIBRARIES</span>\n                <div ng-repeat="data in status.syncingLibraries">\n                    <span ng-show="data.library && data.progress !== undefined && data.state === \'downloading\'" translate translate-values="{name: data.truncatedName, percent: data.progress}">DL_DOWNLOAD_LIBRARY_PERCENT</span>\n                    <span ng-show="data.library && data.progress !== undefined && data.state === \'uploading\'" translate translate-values="{name: data.truncatedName, percent: data.progress}">DL_UPLOAD_LIBRARY_PERCENT</span>\n                    <span ng-show="!data.library && data.progress !== undefined" translate translate-values="{percent: data.progress}">DL_DOWNLOAD_NEW_LIBRARY_PERCENT</span>\n                </div>\n            </div>\n            <div ng-switch-when="error" class="panel-sync-message">\n                <span ng-bind-html="errorMessage"></span>\n\n                <br ng-show="status.retryDuration"/>\n                <span ng-show="status.retryDuration" translate translate-values="{duration: status.retryDuration}">DL_SYNC_RETRY</span>\n            </div>\n\n        </div>\n    </div>\n\n    <div class="panel-relink-action" ng-class="{windows: isWindowsOS}" ng-if="uiState.mode === \'relink\'">\n        <button ng-if="!isWindowsOS" class="panel-relink-button-cancel hover-on-always" ng-click="cancelRelink()" translate>DL_CANCEL</button>\n        <button class="panel-relink-button-relink hover-on-always action" ng-class="{disabled: !hasSelection}"  ng-click="relink()">{{uiState.modeParams.actionMessage}}</button>\n        <button ng-if="isWindowsOS" class="panel-relink-button-cancel hover-on-always" ng-click="cancelRelink()" translate>DL_CANCEL</button>\n    </div>\n</div>\n'
),e.put("directives/designlibrary/templates/designLibraryShowMore.tmpl.html",'<div class="panel-item-showmore">\n    <div class="panel-item-showmore-content" edgecc-hover edgecc-tooltip tooltip-content="{{\'DL_SHOW_MORE_ITEMS_TOOLTIP\' | translate}}" ng-click="showMoreElements()">\n        <span translate translate-values="{count: elementType.elements.length-elementType.limit}">\n            DL_SHOW_MORE_ITEMS\n        </span>\n    </div>\n</div>\n'),e.put("directives/designlibrary/templates/dlCategory.tmpl.html"
,'<div class="panel-category">\n    <div class="edgecc-project-dl-nocontent" ng-if="library.elements.length === 0 && uiState.mode !== \'search\'">\n        <edgecc-dl-empty library="library"></edgecc-dl-empty>\n    </div>\n\n    <div class="edgecc-project-dl-content-category">\n        <!-- Search header -->\n        <div ng-if="searchText && searchResultCount > 0 && !searchAllLibraries" class="panel-search-result-header" translate translate-values="{name: library.name, count: searchResultCount}">{{ searchResultCount === 1 ? \'DL_SEARCH_RESULT_LIBRARY\' : \'DL_SEARCH_RESULTS_LIBRARY\' }}</div>\n        <div ng-if="searchText && searchResultCount > 0 && searchAllLibraries" class="panel-search-result-header" translate translate-values="{count: searchResultCount}">{{ searchResultCount === 1 ? \'DL_SEARCH_RESULT_LIBRARIES\' : \'DL_SEARCH_RESULTS_LIBRARIES\' }}</div>\n\n        <!-- Library content or search results -->\n        <div class="panel-category-section" ng-hide="filteredElements.length === 0 || (uiState.elementTypeFilter && uiState.elementTypeFilter !== data.type)" ng-repeat="data in elementsByType">\n            <div class="panel-type-header" ng-hide="uiState.elementTypeFilter">{{::data.displayName}}</div>\n            <div ng-repeat="component in filteredElements = (data.elements | limitTo: data.limit) track by component.getReference()">\n                <!-- RENDERER based on content type -->\n                <div class="edgecc-project-dl-component-contents" ng-click="selectAndAddToDocument($event, component)" ng-dblclick="editComponent($event, component)" ui-draggable="true" drag-channel="dlItem" on-drag="onElementDragStart(component)">\n                    <edgecc-design-library-component native-context-menu="component"></edgecc-design-library-component>\n                </div>\n            </div>\n\n            <!-- Show more items in category -->\n            <edgecc-design-library-show-more ng-if="data.limit < data.elements.length" element-type="data"></edgecc-design-library-show-more>\n\n            <div style="clear: both"></div>\n        </div>\n    </div>\n\n    <!-- No search result -->\n    <div class="panel-search-result-none-container" ng-if="searchText && searchResultCount === 0">\n        <div class="panel-search-info">\n            <span ng-click="searchAdobeStock()" translate>DL_SEARCH_LIBRARIES_NO_RESULT</span>\n        </div>\n    </div>\n</div>\n'
),e.put("directives/designlibrary/templates/dlEmpty.tmpl.html",'<div class="panel-dl-empty-container">\n    <div class="panel-dl-empty-inner-container" ng-if="!library.isDeletedFromServer">\n        <div class="panel-dl-empty-top">\n            <div class="panel-dl-empty-title" translate>DL_EMPTY_LIB_TITLE</div>\n            <div class="panel-dl-empty-top-about" edgecc-hover ng-click="howToUseInBrowser()">\n                <div class="panel-dl-empty-description" translate>DL_EMPTY_LIB_INSTRUCTION</div>\n                <a class="panel-dl-empty-library-link" translate>DL_EMPTY_LIB_LEARN_MORE</a>\n            </div>\n            <button ng-show="addDocContentOperation" class="hover-on-always action panel-dl-empty-adddoccontent-button" ng-class="{disabled: !addDocContentOperation.enabled || !library.isWritable}" ng-click="addDocContentOperation.enabled && addDocContentOperation.apply()" edgecc-tooltip tooltip-content="{{addDocContentOperation.buttonToolTip | translate}}"><span translate>{{ addDocContentOperation.buttonName }}</span></button>\n            <div ng-show="!addDocContentOperation" style="height: 25px"></div>\n        </div>\n        <div class="panel-dl-empty-middle">\n            <div class="panel-dl-empty-stock-line"></div>\n            <div class="panel-dl-empty-stock-icon edgecc-icon">adobestock</div>\n            <div class="panel-dl-empty-stock-line"></div>\n        </div>\n        <div class="panel-dl-empty-bottom">\n            <span class="panel-dl-empty-description" translate>DL_EMPTY_LIB_STOCK_TITLE</span><span class="hide-if-empty-panel-v2-enabled">&nbsp;</span>\n            <a class="panel-dl-empty-library-link" ng-click="searchAdobeStock()" translate>DL_EMPTY_LIB_STOCK_SEARCH_LINK</a>\n        </div>\n    </div>\n</div>\n'
),e.put("directives/designlibrary/templates/dlNoLibraries.tmpl.html",'<div class="panel-dl-nolibs-container">\n\n    <div ng-if="status.state === \'ok\'" class="panel-dl-nolibs-middle">\n        <div class="panel-dl-nolibs-cc-icon edgecc-icon">creativecloud</div>\n        <div class="panel-dl-nolibs-message" translate>DL_NO_LIBS_MESSAGE</div>\n        <button class="panel-dl-nolibs-create-button hover-on-always" ng-click="showAddLibraryDialog()" translate>DL_NO_LIBS_CREATE_LIBRARY_BUTTON_TEXT</button>\n    </div>\n\n    <div ng-if="status.state === \'error\' && status.errorType === \'loggedOut\'" class="panel-dl-nolibs-middle">\n        <div class="panel-dl-nolibs-alert-icon edgecc-icon">creativecloudwarning</div>\n        <div class="panel-dl-nolibs-message" translate>DL_NO_LIBS_LOGGED_OUT</div>\n    </div>\n\n    <!-- TODO: hopefully this is temporary, until Photoshop can handle the modal JSX problem better -->\n    <div ng-if="status.state === \'error\' && status.errorType === \'jsx\'" class="panel-dl-nolibs-middle">\n        <div class="panel-dl-nolibs-alert-icon edgecc-icon">creativeclouderror</div>\n        <div class="panel-dl-nolibs-message" translate>DL_NO_LIBS_ERROR_INIT</div>\n\n        <button class="panel-dl-nolibs-retry-button hover-on-always" ng-click="reload()" translate>DL_NO_LIBS_RETRY_INIT</button>\n    </div>\n\n    <div ng-if="status.state === \'error\' && status.errorType === \'noService\'" class="panel-dl-nolibs-middle">\n        <div class="panel-dl-nolibs-alert-icon edgecc-icon">creativeclouderror</div>\n        <div class="panel-dl-nolibs-message" translate>DL_NO_LIBS_SERVICE_NOT_INSTALLED</div>\n\n        <a class="panel-dl-nolibs-link" ng-click="installCCApp()" translate>DL_NO_LIBS_GET_IT</a>\n    </div>\n\n    <div ng-if="status.state === \'error\' && status.errorType === \'serviceError\'" class="panel-dl-nolibs-middle">\n        <div class="panel-dl-nolibs-alert-icon edgecc-icon">creativeclouderror</div>\n        <div class="panel-dl-nolibs-message" translate>DL_NO_LIBS_SERVICE_NOT_RUNNING</div>\n\n        <a class="panel-dl-nolibs-link" ng-click="serviceErrorHelp()" translate>DL_NO_LIBS_MORE_INFO</a>\n    </div>\n\n    <div ng-if="status.state === \'error\' && [\'excludeHostnameOSX\', \'excludeHostnameWin\', \'excludeHostnameWin10\', \'verifyDnsSettings\'].indexOf(status.errorType) !== -1" class="panel-dl-nolibs-middle">\n        <div class="panel-dl-nolibs-alert-icon edgecc-icon">creativeclouderror</div>\n        <div class="panel-dl-nolibs-message" translate>DL_NO_LIBS_NETWORK_PROBLEM</div>\n        <a class="panel-dl-nolibs-link" ng-click="serviceErrorHelp(status.errorType)" translate>DL_TROUBLESHOOT_NETWORK_SETTINGS</a>\n\n        <button class="panel-dl-nolibs-retry-button hover-on-always" ng-class="{disabled: status.retryDuration}" ng-click="reconnect()" translate>DL_NO_LIBS_RETRY</button>\n    </div>\n\n    <div ng-if="status.state === \'error\' && status.errorType === \'verifySocketConnection\'" class="panel-dl-nolibs-middle">\n        <div class="panel-dl-nolibs-alert-icon edgecc-icon">creativeclouderror</div>\n        <div class="panel-dl-nolibs-message" translate>DL_NO_LIBS_SOCKET_BLOCKED</div>\n\n        <button class="panel-dl-nolibs-retry-button hover-on-always" ng-class="{disabled: status.retryDuration}" ng-click="reconnect()" translate>DL_NO_LIBS_RETRY</button>\n    </div>\n\n    <div ng-if="status.state === \'error\' && status.errorType === \'updateServer\'" class="panel-dl-nolibs-middle">\n        <div class="panel-dl-nolibs-alert-icon edgecc-icon">creativeclouderror</div>\n        <div class="panel-dl-nolibs-message" translate>DL_NO_LIBS_UPDATE_SERVER</div>\n\n        <a class="panel-dl-nolibs-link" ng-click="updateCCApp()" translate>DL_NO_LIBS_GET_IT</a>\n    </div>\n\n    <div ng-if="status.state === \'error\' && status.errorType === \'updateClient\'" class="panel-dl-nolibs-middle">\n        <div class="panel-dl-nolibs-alert-icon edgecc-icon">creativeclouderror</div>\n        <div class="panel-dl-nolibs-message" translate>DL_NO_LIBS_UPDATE_CLIENT</div>\n\n        <a class="panel-dl-nolibs-link" ng-click="updateCCLibraries()" translate>DL_NO_LIBS_GET_IT</a>\n    </div>\n\n    <div ng-if="status.state === \'error\' && status.errorType === \'syncDisabled\'" class="panel-dl-nolibs-middle">\n        <div class="panel-dl-nolibs-alert-icon edgecc-icon">creativecloudwarning</div>\n        <div class="panel-dl-nolibs-message" translate>DL_NO_LIBS_SYNC_DISABLED</div>\n\n        <button class="panel-dl-nolibs-retry-button hover-on-always" ng-click="enableCCApp()" translate>DL_LAUNCH_CC_APP_ENABLE_BUTTON</button>\n    </div>\n\n    <div ng-if="status.state === \'error\' && [\'noService\', \'serviceError\', \'updateClient\', \'updateServer\', \'loggedOut\', \'jsx\', \'syncDisabled\', \'excludeHostnameOSX\', \'excludeHostnameWin\', \'excludeHostnameWin10\', \'verifyDnsSettings\', \'verifySocketConnection\'].indexOf(status.errorType) === -1" class="panel-dl-nolibs-middle">\n        <div class="panel-dl-nolibs-alert-icon edgecc-icon">creativeclouderror</div>\n        <div class="panel-dl-nolibs-message" ng-bind-html="errorMessage"></div>\n\n        <div ng-show="status.retryDuration" class="panel-dl-nolibs-message" translate translate-values="{duration: status.retryDuration}">DL_SYNC_RETRY</div>\n        <button ng-show="status.errorType !== \'noAccess\'" class="panel-dl-nolibs-retry-button hover-on-always" ng-class="{disabled: status.retryDuration}" ng-click="retry()" translate>DL_NO_LIBS_RETRY</button>\n\n        <button class="panel-dl-nolibs-create-button hover-on-always" ng-click="showAddLibraryDialog()" translate>DL_NO_LIBS_CREATE_LIBRARY_BUTTON_TEXT</button>\n    </div>\n\n    <div ng-if="status.state === \'syncing\'" class="panel-dl-nolibs-middle">\n        <div class="panel-dl-nolibs-cc-icon-syncing edgecc-icon">creativecloud</div>\n        <div class="panel-dl-nolibs-message" translate>DL_NO_LIBS_SYNCING</div>\n        <div class="panel-dl-nolibs-progress-bar panel-progress-bar-large">\n            <div class="panel-progress-bar-inner-large" ng-style="{width: progressWidth}"></div>\n        </div>\n        <button class="panel-dl-nolibs-create-button-syncing hover-on-always" ng-click="showAddLibraryDialog()" translate>DL_NO_LIBS_CREATE_LIBRARY_BUTTON_TEXT</button>\n    </div>\n\n</div>\n'
),e.put("directives/designlibrary/templates/dlStock.tmpl.html",'<div class="panel-dl-stock">\n    <div ng-style="searchOpionsStyle" ng-hide="error || !assets">\n        <div class="panel-stock-search-result-header" ng-click="toggleSearchOptions()">\n            <div class="panel-stock-search-result-arrow" ng-class="{\'panel-stock-search-result-arrow-rotated\': showSearchOptions}"><span class="edgecc-icon">next</span></div>\n            <span style="padding-left: 5px" translate>DL_SEARCH_RESULTS_STOCK</span>\n        </div>\n        <div ng-show="showSearchOptions">\n            <label ng-repeat="option in searchOptions" class="panel-dl-stock-option-label">\n                <input type="checkbox" ng-model="searchOptionValues[option.param]" ng-value="searchOptionValues[option.param]" ng-click="doSearchOptionChanged()"><span style="padding-left: 5px" translate>{{option.label}}</span></input>\n            </label>\n        </div>\n    </div>\n    <div class="panel-dl-stock-loading" ng-show="isLoading">\n        <div class="panel-dl-stock-loading-icon"><img src="images/wait_32.gif"/></div>\n        <div class="panel-dl-stock-loading-message" translate>DL_STOCK_PANEL_SEARCHING_MESSAGE</div>\n    </div>\n\n    <div class="panel-dl-stock-error" ng-show="!isLoading && offline && (!assets || assets.length === 0)">\n        <div class="panel-dl-stock-no-connection-icon edgecc-icon">newcreativecloudwarning</div>\n        <div class="panel-dl-stock-message" translate>DL_STOCK_PANEL_NO_CONNECTION_MESSAGE</div>\n    </div>\n\n    <div class="panel-dl-stock-error" ng-show="!isLoading && !offline && error && assets && assets.length === 0">\n        <div class="panel-dl-stock-message" translate>DL_STOCK_PANEL_SEARCH_ERROR</div>\n    </div>\n\n    <div class="panel-dl-stock-noresult" ng-show="!isLoading && !offline && !error && assets && assets.length === 0">\n        <div class="panel-dl-stock-noresult-message" translate>DL_STOCK_PANEL_NO_RESULT_MESSAGE</div>\n        <div class="panel-search-info"><div class="panel-dl-stock-noresult-tips-message" translate>DL_STOCK_PANEL_RESULT_TIPS</div></div>\n    </div>\n    <div class="panel-dl-stock-content" ng-show="assets" id="stockContent">\n       <div ng-repeat="asset in assets" class="panel-dl-stock-content-item" edgecc-hover on-hover-enter="hoverEnter(asset)" on-hover-leave="hoverLeave(asset)">\n           <img class="panel-dl-stock-content-item-img" ng-src="{{asset.thumbnail_url}}" ng-style="{width: asset.rowWidth + \'px\', height: asset.rowHeight + \'px\'}" edgecc-tooltip tooltip-content="{{getTooltip(asset)}}"  native-context-menu="asset" context-menu-save-callback="addAssetToLibrary" ng-dblclick="showAssetOnWeb(asset)" draggable="false"/>\n\n           <div ng-if="asset.media_type_id === 4" class="panel-dl-stock-content-video-bar" ng-click="showAssetOnWeb(asset)" edgecc-tooltip tooltip-content="{{\'DL_STOCK_WATCH_VIDEO\' | translate}}">\n                <div class="panel-dl-stock-content-video-bar-rect">\n                    <div class="panel-dl-stock-content-video-bar-icon"><div class="panel-dl-stock-content-video-badge-icon-triangle"></div></div>\n                    <div class="panel-dl-stock-content-video-bar-duration">{{getDuration(asset)}}</div>\n                    <div ng-repeat="type in getLicenseTypes(asset)" class="panel-dl-stock-content-video-bar-license">{{type}}</div>\n                </div>\n           </div>\n\n           <div ng-if="!asset.saving" class="panel-dl-stock-content-item-hover">\n               <!-- Asset already licensed -->\n                <div ng-if="asset.is_licensed" class="panel-dl-stock-content-item-licensed" edgecc-tooltip tooltip-content="{{\'DL_STOCK_LICENSED_SEARCH_RESULT\' | translate}}"><div class="panel-dl-stock-content-item-icon-licensed edgecc-icon">checkmark</div></div>\n               <!-- License asset action -->\n               <div ng-if="asset.active && !asset.is_licensed" class="panel-dl-stock-content-item-action" edgecc-tooltip tooltip-content="{{\'DL_STOCK_LICENSE_THEN_SAVE_TO_TOOLTIP\' | translate:library}}" ng-click="addToLibrary(asset, $event, true)" edgecc-hover><div class="panel-dl-stock-content-item-icon edgecc-icon">shoppingcart</div></div>\n               <!-- Save/Save preview action -->\n                <div ng-if="asset.active" class="panel-dl-stock-content-item-action" edgecc-tooltip tooltip-content="{{(asset.is_licensed ? \'DL_STOCK_SAVE_TO_TOOLTIP\' : \'DL_STOCK_SAVE_PREVIEW_TO_TOOLTIP\') | translate:library}}" ng-click="addToLibrary(asset, $event, asset.is_licensed)" edgecc-hover><div class="panel-dl-stock-content-item-icon edgecc-icon">cloudsync</div></div>\n            </div>\n        </div>\n        <div class="panel-dl-stock-view-on-web" ng-show="assets && assets.length > 0 && assets.length >= requestedResultSize" ng-click="searchOnWeb()" edgecc-hover>\n            <div class="panel-dl-stock-view-on-web-message" translate>DL_STOCK_PANEL_SEARCH_ON_WEB</div>\n        </div>\n        <div class="panel-dl-stock-tips" ng-show="assets && assets.length > 0 && assets.length < requestedResultSize">\n            <div>\n                <div translate translate-values="{count: assets.length}">DL_STOCK_PANEL_RESULT_COUNT</div>\n                <div translate>DL_STOCK_PANEL_RESULT_TIPS</div>\n            </div>\n        </div>\n    </div>\n</div>\n'
),e.put("directives/designlibrary/templates/syncErrorTooltip.tmpl.html",'<div class="tooltip">\n    <span ng-bind-html="data.errorMessage"></span>\n    <br ng-show="data.status.retryDuration"/>\n    <span ng-show="data.status.retryDuration" translate translate-values="{duration: data.status.retryDuration}">DL_SYNC_RETRY</span>\n</div>\n'),e.put("directives/designlibrary/templates/syncTooltip.tmpl.html",'<div class="tooltip">\n    <span ng-show="data.syncingLibraries.length === 0 && data.syncProgress === undefined" translate>DL_SYNC_PROGRESS</span>\n    <span ng-show="data.syncingLibraries.length === 0 && data.syncProgress !== undefined" translate translate-values="{percent: data.syncProgress}">DL_SYNC_PROGRESS_PERCENT</span>\n\n    <span ng-show="data.syncingLibraries.length > 0" translate translate-values="{number: data.syncingLibraries.length}">DL_SYNC_PROGRESS_NUM_LIBRARIES</span>\n    <div ng-repeat="libData in data.syncingLibraries">\n        <span ng-show="libData.library && libData.progress !== undefined && libData.state === \'downloading\'" translate translate-values="{name: libData.truncatedName, percent: libData.progress}">DL_DOWNLOAD_LIBRARY_PERCENT</span>\n        <span ng-show="libData.library && libData.progress !== undefined && libData.state === \'uploading\'" translate translate-values="{name: libData.truncatedName, percent: libData.progress}">DL_UPLOAD_LIBRARY_PERCENT</span>\n        <span ng-show="!libData.library && libData.progress !== undefined" translate translate-values="{percent: libData.progress}">DL_DOWNLOAD_NEW_LIBRARY_PERCENT</span>\n    </div>\n</div>\n'
),e.put("directives/templates/disclosureTriangle.tmpl.html",'<div>\n    <div ng-click="toggle($event)" ng-class="disclosureClass" edgecc-hover></div>\n</div>\n'),e.put("directives/templates/modalDialog.tmpl.html",'<div ng-show="showDialog" ng-class="dialogClass" ng-click="hideDialog()">\n\n    <div class="panel-dialog-window" ng-click="stopPropagation($event)">\n\n        <div class="panel-dialog-divider-container"><div class="panel-dialog-divider"></div></div>\n\n        <div class="panel-dialog-header">\n           <div class="panel-dialog-title" ng-bind="titleText | translate"></div>\n<!--            <a href ng-show="canCancel" ng-click="hideDialog()" class="panel-dialog-close-button edgecc-icon">cancel</a>-->\n        </div>\n\n        <div class="panel-dialog-contents" ng-transclude></div>\n\n        <div style="clear:both"></div>\n        <div class="panel-dialog-footer">\n            <div ng-if="!isWindowsOS" class="panel-dialog-button" ng-show="cancelText">\n                <button class="hover-on-always" ng-click="hideDialog()" translate>{{cancelText}}</button>\n            </div>\n            <div ng-if="isWindowsOS" class="panel-dialog-button">\n                <button ng-show="okText" class="hover-on-always action" ng-class="{disabled: disableOk}" ng-click="!disableOk && onSubmit()(okText)" translate>{{okText}}</button>\n            </div>\n            <div class="panel-dialog-button" ng-if="secondaryOkText">\n                <button class="hover-on-always" ng-click="onSubmit()(secondaryOkText)" translate>{{secondaryOkText}}</button>\n            </div>\n            <div ng-if="!isWindowsOS" class="panel-dialog-button">\n                <button ng-show="okText" class="hover-on-always action" ng-class="{disabled: disableOk}" ng-click="!disableOk && onSubmit()(okText)" translate>{{okText}}</button>\n            </div>\n            <div ng-if="isWindowsOS" class="panel-dialog-button" ng-show="cancelText">\n                <button class="hover-on-always" ng-click="hideDialog()" translate>{{cancelText}}</button>\n            </div>\n        </div>\n    </div>\n\n</div>\n'
),e.put("directives/templates/search.tmpl.html",'<div class="panel-search">\n    <input ng-model="search.text" ng-disabled="disable" class="panel-search-input" edgecc-tooltip tooltip-content="{{search.placeholder}}" type="search" results="0" edgecc-set-focus="setFocus" placeholder="{{search.placeholder}}" on-search="searchRequested()" ng-focus="searchFocused()" ng-blur="searchFocused()" onClick="this.select()" spellcheck="false">\n    <div class="panel-search-toggle" ng-class="{\'panel-search-toggle-selected\': menuShown, \'panel-search-toggle-disabled\': disable}" ng-click="toggleMenu()"><div class="panel-search-toggle-triangle"></div></div>\n    <div ng-show="menuShown" class="panel-search-types">\n        <div ng-repeat="type in types" class="panel-select-menu-item" edgecc-hover ng-click="setSearchType(type)">\n            <div class="edgecc-icon panel-menu-icon" ng-show="search.type === type">checkmark</div>\n            <div class="edgecc-icon panel-menu-icon" ng-show="search.type !== type"></div>\n            <div class="panel-menu-label" ng-class="{\'panel-menu-label-selected\': search.type === type}" translate>{{\'DL_SEARCH_\' + type.toUpperCase()}}</div>\n        </div>\n    </div>\n</div>\n'
),e.put("directives/templates/select.tmpl.html",'<div class="panel-select" ng-mousedown="toggleMenu()" edgecc-hover>\n    <div class="edgecc-icon" ng-show="selectedItem.collaboration && selectedItem.isWritable" edgecc-tooltip tooltip-content="{{\'DL_LIB_SHARED_TOOLTIP\' | translate}}">group</div>\n    <div class="edgecc-icon" ng-show="selectedItem.collaboration && !selectedItem.isWritable" edgecc-tooltip tooltip-content="{{\'DL_LIB_READONLY_TOOLTIP\' | translate}}">readonly</div>\n    <div class="edgecc-icon" ng-show="selectedItem.collection.isPublic" edgecc-tooltip tooltip-content="{{\'DL_LIB_FOLLOWED_TOOLTIP\' | translate}}">subscribed</div>\n    <div class="panel-select-menu-label">{{selectedItem[displayField]}}</div>\n</div>\n'
),e.put("directives/templates/selectMenu.tmpl.html",'<div class="panel-select-menu" ng-style="menuStyle">\n    <div ng-show="!isCreativeCloud || switchingEnabled" class="panel-select-menu-item panel-select-header">\n        <div class="panel-menu-label panel-select-header-text">{{collectionName}}</div>\n        <button ng-show="switchingEnabled" class="edgecc-icon panel-select-cloud-switch-icon" edgecc-tooltip tooltip-content="{{\'DL_MENU_CHANGE_CLOUD_TOOLTIP\' | translate}}" ng-click="changeCloud()">changecloud</button>\n    </div>\n    <div ng-style="menuContainerStyle">\n        <div ng-repeat="item in optionsArray | orderBy:orderBy">\n            <div ng-click="select(item)" class="panel-select-menu-item" edgecc-hover ng-class="{\'selected\': (item === selectedItem)}">\n                <div class="edgecc-icon panel-menu-icon" ng-show="item === selectedItem">checkmark</div>\n                <div class="edgecc-icon panel-menu-icon" ng-show="item.collaboration && item.isWritable && item !== selectedItem" edgecc-tooltip tooltip-content="{{\'DL_LIB_SHARED_TOOLTIP\' | translate}}">group</div>\n                <div class="edgecc-icon panel-menu-icon" ng-show="item.collaboration && !item.isWritable && item !== selectedItem" edgecc-tooltip tooltip-content="{{\'DL_LIB_READONLY_TOOLTIP\' | translate}}">readonly</div>\n                <div class="edgecc-icon panel-menu-icon" ng-show="item.collection.isPublic && item !== selectedItem" edgecc-tooltip tooltip-content="{{\'DL_LIB_FOLLOWED_TOOLTIP\' | translate}}">subscribed</div>\n                <div class="edgecc-icon panel-menu-icon" ng-show="!item.collaboration && !item.collection.isPublic && item !== selectedItem"></div>\n\n                <div ng-class="{\'panel-menu-label-selected\': (item == selectedItem)}" class="panel-menu-label">{{item[displayField]}}</div>\n            </div>\n        </div>\n    </div>\n    <div class="panel-select-divider"></div>\n    <div ng-click="showCreateDialog()" class="panel-select-menu-item" edgecc-hover>\n        <span class="edgecc-icon anel-menu-icon">plus</span>\n        <span class="panel-menu-label" translate>DL_MENU_CREATE_LIB</span>\n    </div>\n</div>\n'
),e.put("configuration/designlibrary/3d/tooltip.tmpl.html",'<div class=\'tooltip\'>\n    <span ng-if="data.name">{{data.name}}</span>\n    <br ng-if="data.name"/>\n    <span ng-if="data.createdIn"><span translate>DL_CREATED_IN</span> <span translate>{{data.createdIn}}</span></span>\n    <span ng-if="data.type"><span translate>DL_TYPE</span> <span>{{data.type}}</span> <span ng-if="data.threeDtype" translate>{{data.threeDtype}}</span></span>\n    <div ng-if="data.libraryName"><span translate translate-values="data">DL_ITEM_LIBRARY_TOOLTIP</span></div>\n</div>\n'
),e.put("configuration/designlibrary/3d/view.tmpl.html",'<div ui-draggable="true" drag-component="component" drag-channel="dlItem" on-drag="onElementDragStart()" ng-if="uiState.view === \'grid\'" class="panel-3d-item" ng-class="{selected: selected, \'disabled-item\': disabled}" edgecc-hover edgecc-tooltip tooltip-data="tooltip" template-url="configuration/designlibrary/3d/tooltip.tmpl.html">\n    <div class="panel-3d-item-img" draggable="false" ng-class="{\'panel-thumbnail-disabled\': disabled}" ng-show="imageUrl && loadedRenditionUrl" ng-style="{\'background-image\': \'url(\\\'\' + imageUrl + \'\\\')\'}"></div>\n    <div ng-show="!imageUrl && loadedRenditionUrl" class="edgecc-icon panel-grid-icon-missing-rendition panel-no-rendition-holder missing-3d-rendition-icon">newcreativecloud</div>\n    <div class="edgecc-core-overlay-container" ng-hide="loadedRenditionUrl">\n        <div class="topcoat-spinner edgecc-core-overlay-center"></div>\n    </div>\n    <div class="panel-grid-selected-overlay" ng-class="{\'disabled-overlay\': disabled}"></div>\n    <design-library-editable-grid-name component="component" selected="selected"></design-library-editable-grid-name>\n</div>\n<div ui-draggable="true" drag-component="component" drag-channel="dlItem" on-drag="onElementDragStart()" ng-if="uiState.view === \'list\'" class="panel-list-item" ng-class="{selected: selected, \'disabled-item\': disabled}" edgecc-hover edgecc-tooltip tooltip-data="tooltip" template-url="configuration/designlibrary/3d/tooltip.tmpl.html">\n    <div class="panel-list-item-thumb">\n        <div class="panel-list-3d-item-img" ng-class="{\'panel-thumbnail-disabled\': disabled}" ng-style="{\'background-image\': \'url(\\\'\' + imageUrl + \'\\\')\'}" ng-show="imageUrl && loadedRenditionUrl"></div>\n        <div ng-show="!imageUrl && loadedRenditionUrl" class="edgecc-icon panel-list-icon-missing-rendition missing-3d-rendition-icon">newcreativecloud</div>\n        <div class="topcoat-spinner edgecc-core-overlay-center" ng-hide="loadedRenditionUrl"></div>\n    </div>\n    <design-library-editable-list-name component="component"></design-library-editable-list-name>\n</div>\n\n'
),e.put("configuration/designlibrary/brush/tooltip.tmpl.html",'<div class=\'tooltip\'>\n    <span ng-if="data.name">{{data.name}}</span>\n    <br ng-if="data.name"/>\n    <span translate>DL_TYPE</span> <span translate>{{data.brushType}}</span>\n    <div ng-if="data.disabledMessage">\n        <span translate>{{data.disabledMessage}}</span>\n    </div>\n    <div ng-if="data.libraryName"><span translate translate-values="data">DL_ITEM_LIBRARY_TOOLTIP</span></div>\n</div>\n'),e.put("configuration/designlibrary/brush/view.tmpl.html"
,'<div ng-if="uiState.view === \'grid\'" class="panel-brush-item" ng-class="{selected: selected, \'disabled-item\': disabled}" edgecc-hover edgecc-tooltip tooltip-data="tooltip" template-url="configuration/designlibrary/brush/tooltip.tmpl.html">\n    <div class="panel-brush-item-img" ng-show="imageUrl && loadedRenditionUrl" ng-class="{\'panel-thumbnail-disabled\': disabled}" ng-style="{\'background-image\': \'url(\\\'\' + imageUrl + \'\\\')\'}"></div>\n    <div ng-show="!imageUrl && loadedRenditionUrl" class="edgecc-icon panel-grid-icon-missing-rendition panel-no-rendition-holder">newcreativecloud</div>\n    <div class="edgecc-core-overlay-container" ng-show="!loadedRenditionUrl">\n        <div class="topcoat-spinner edgecc-core-overlay-center"></div>\n    </div>\n    <div class="panel-grid-selected-overlay" ng-class="{\'disabled-overlay\': disabled}"></div>\n    <design-library-editable-grid-name component="component" selected="selected"></design-library-editable-grid-name>\n</div>\n<div ng-if="uiState.view === \'list\'" class="panel-list-item" ng-class="{selected: selected, \'disabled-item\': disabled}" edgecc-hover edgecc-tooltip tooltip-data="tooltip" template-url="configuration/designlibrary/brush/tooltip.tmpl.html">\n    <div class="panel-list-brush-item-thumb">\n        <div class="panel-list-layer-item-img" ng-class="{\'panel-thumbnail-disabled\': disabled}" ng-style="{\'background-image\': \'url(\\\'\' + imageUrl + \'\\\')\'}" ng-show="imageUrl && loadedRenditionUrl"></div>\n        <div ng-show="!imageUrl && loadedRenditionUrl" class="edgecc-icon panel-list-icon-missing-rendition">newcreativecloud</div>\n        <div class="topcoat-spinner edgecc-core-overlay-center" ng-show="!loadedRenditionUrl"></div>\n    </div>\n    <design-library-editable-list-name component="component"></design-library-editable-list-name>\n</div>\n\n'
),e.put("configuration/designlibrary/color/tooltip.tmpl.html",'<div class=\'tooltip\'>\n    <span ng-if="data.name">{{data.name}}</span>\n    <br ng-if="data.name"/>\n    <span>{{data.hexValue}}</span>\n    <br/>\n    <span>{{data.primaryValue}}</span>\n    <div ng-if="data.libraryName"><span translate translate-values="data">DL_ITEM_LIBRARY_TOOLTIP</span></div>\n</div>\n'),e.put("configuration/designlibrary/color/view.tmpl.html",'<div ng-if="uiState.view === \'grid\'" class="panel-color-item" ng-class="{selected: selected, \'disabled-item\': disabled}" ng-style="colorStyle" edgecc-hover edgecc-tooltip tooltip-data="tooltip" template-url="configuration/designlibrary/color/tooltip.tmpl.html">\n    <div class="panel-grid-selected-overlay" ng-class="{\'disabled-overlay\': disabled}"></div>\n    <design-library-editable-grid-name component="component" selected="selected" default-information="colorStyle.background" allow-blank-name="true"></design-library-editable-grid-name>\n</div>\n<div ng-if="uiState.view === \'list\'" class="panel-list-item-small" ng-class="{selected: selected, \'disabled-item\': disabled}" edgecc-hover edgecc-tooltip tooltip-data="tooltip" template-url="configuration/designlibrary/color/tooltip.tmpl.html">\n    <div class="panel-list-color-item-thumb" ng-style="colorStyle"></div>\n    <design-library-editable-list-name component="component" default-information="colorStyle.background" allow-blank-name="true"></design-library-editable-list-name>\n</div>\n'
),e.put("configuration/designlibrary/colortheme/tooltip.tmpl.html",'<div class=\'tooltip\'>\n    <span>{{data.hexValue}}</span>\n    <br/>\n    <span>{{data.primaryValue}}</span>\n    <div ng-if="data.libraryName"><span translate translate-values="data">DL_ITEM_LIBRARY_TOOLTIP</span></div>\n</div>\n'),e.put("configuration/designlibrary/colortheme/view.tmpl.html",'<div ng-if="uiState.view === \'grid\'" class="panel-color-theme-item" ng-class="{selected: selected, \'disabled-item\': disabled}" edgecc-hover>\n    <div class="panel-color-theme-item-color" ng-style="color.style" ng-repeat="color in values" edgecc-tooltip tooltip-data="color" ng-style="color.style" template-url="configuration/designlibrary/colortheme/tooltip.tmpl.html" ng-click="useColor(color.colorData)">\n        <div class="panel-color-theme-item-color-inner" native-context-menu="component" context-menu-sub-element="color.colorData"></div>\n    </div>\n    <div class="panel-grid-selected-overlay" ng-class="{\'disabled-overlay\': disabled}"></div>\n    <design-library-editable-grid-name component="component" selected="selected"></design-library-editable-grid-name>\n</div>\n<div ng-if="uiState.view === \'list\'" class="panel-list-item-small panel-list-color-theme-item" ng-class="{selected: selected, \'disabled-item\': disabled}" edgecc-hover>\n    <div class="panel-list-color-theme-item-thumb" ng-class="{selected: selected}">\n        <div class="panel-list-color-theme-item-color"  ng-repeat="color in values" edgecc-tooltip tooltip-data="color" ng-style="color.style" template-url="configuration/designlibrary/colortheme/tooltip.tmpl.html" ng-style="color.style"  ng-click="useColor(color.colorData)">\n        <div class="panel-list-color-theme-item-color-inner" native-context-menu="component" context-menu-sub-element="color.colorData"></div>\n        </div>\n    </div>\n    <design-library-editable-list-name component="component" class="panel-list-color-theme-item-name"></design-library-editable-list-name>\n</div>\n\n'
),e.put("configuration/designlibrary/image/tooltip.tmpl.html",'<div class=\'tooltip\'>\n    <span ng-if="data.name">{{data.name}}</span>\n    <br ng-if="data.name"/>\n    <span ng-if="data.createdIn"><span translate>DL_CREATED_IN</span> <span translate>{{data.createdIn}}</span></span>\n    <span ng-if="data.type"><span translate>DL_TYPE</span> <span>{{data.type}}</span></span>\n    <br ng-if="data.createdIn || data.type"/>\n    <span ng-if="data.filesize">{{data.filesize}}</span>\n    <br ng-if="data.isStockAsset && data.filesize"/>\n    <span ng-if="data.isStockAsset"><span translate>DL_ADOBE_STOCK_PHOTO</span></span>\n    <br ng-if="data.isStockAsset"/>\n    <span ng-if="data.isStockAsset && data.isLicensed"><span translate>DL_LICENSED</span></span>\n    <span ng-if="data.isStockAsset && !data.isLicensed"><span translate>DL_UNLICENSED</span></span>\n    <div ng-if="data.libraryName"><span translate translate-values="data">DL_ITEM_LIBRARY_TOOLTIP</span></div>\n</div>\n'
),e.put("configuration/designlibrary/image/view.tmpl.html",'<div ng-if="uiState.view === \'grid\'" class="panel-image-item" ng-class="{selected: selected, \'disabled-item\': disabled}" img-size edgecc-hover edgecc-tooltip tooltip-data="tooltip" template-url="configuration/designlibrary/image/tooltip.tmpl.html" ui-draggable="true" drag-component="component" drag-channel="dlItem" on-drag="onElementDragStart()">\n    <div class="panel-image-item-img-holder" ng-show="loadedRenditionUrl && imageUrl" ng-style="imgStyle">\n        <img class="panel-image-item-img" dl-image-on-load ng-src="{{imageUrl}}" style="display: none">\n    </div>\n    <div class="panel-no-rendition-holder" ng-show="loadedRenditionUrl && !imageUrl">\n        <span class="edgecc-icon panel-grid-icon-missing-rendition panel-image-no-rendition-icon">newcreativecloud</span>\n    </div>\n    <div class="edgecc-core-overlay-container" ng-show="!loadedRenditionUrl">\n        <div class="topcoat-spinner edgecc-core-overlay-center"></div>\n    </div>\n    <div class="edgecc-core-overlay-dimmed-top-right" ng-if="downloadPending && loadedRenditionUrl" edgecc-tooltip tooltip-content="{{downloadTooltip}}">\n        <div class="panel-core-overlay-icon-syncing edgecc-icon" ng-show="downloadProgress !== -1">newsyncing</div>\n        <div class="panel-core-overlay-icon-warning edgecc-icon" ng-show="downloadProgress === -1">alert</div>\n    </div>\n    <div class="panel-grid-selected-overlay" ng-class="{\'disabled-overlay\': disabled}"></div>\n    <design-library-editable-grid-name component="component" selected="selected"></design-library-editable-grid-name>\n    <div ng-if="isLicensed(component)" class="panel-dl-stock-content-item-licensed-mini" ng-class="{\'disabled\': disabled}" edgecc-tooltip tooltip-content="{{\'DL_LICENSED\' | translate}}">\n        <div class="panel-dl-stock-content-item-icon-licensed-mini edgecc-icon">checkmark</div>\n    </div>\n</div>\n<div ng-if="uiState.view === \'list\'" class="panel-list-item" ng-class="{selected: selected, \'disabled-item\': disabled}" edgecc-hover edgecc-tooltip tooltip-data="tooltip" template-url="configuration/designlibrary/image/tooltip.tmpl.html" ui-draggable="true" drag-component="component" drag-channel="dlItem" on-drag="onElementDragStart()">\n    <div class="panel-list-image-item-thumb" img-size>\n        <div class="panel-image-item-img-holder" ng-show="loadedRenditionUrl && imageUrl" ng-style="imgStyle">\n            <img class="panel-image-item-img" dl-image-on-load ng-src="{{imageUrl}}" style="display: none">\n        </div>\n        <div class="panel-no-rendition-holder" ng-show="loadedRenditionUrl && !imageUrl">\n            <span class="edgecc-icon panel-list-icon-missing-rendition panel-image-no-rendition-icon">newcreativecloud</span>\n        </div>\n        <div class="topcoat-spinner edgecc-core-overlay-center" ng-show="!loadedRenditionUrl"></div>\n        <div class="edgecc-core-overlay-dimmed-center" ng-if="downloadPending && loadedRenditionUrl" edgecc-tooltip tooltip-content="{{downloadTooltip}}">\n            <div class="panel-core-overlay-icon-syncing-list edgecc-icon" ng-show="downloadProgress !== -1">newsyncing</div>\n            <div class="panel-core-overlay-icon-warning-list edgecc-icon" ng-show="downloadProgress === -1">alert</div>\n        </div>\n    </div>\n    <design-library-editable-list-name component="component"></design-library-editable-list-name>\n    <div ng-if="badgeText" class="panel-image-list-item-filetype">{{badgeText}}</div>\n</div>\n\n'
),e.put("configuration/designlibrary/layerstyle/tooltip.tmpl.html",'<div class=\'tooltip\'>\n    <span>{{data.name}}</span>\n    <div ng-if="data.libraryName"><span translate translate-values="data">DL_ITEM_LIBRARY_TOOLTIP</span></div>\n</div>\n'),e.put("configuration/designlibrary/layerstyle/view.tmpl.html",'<div ng-if="uiState.view === \'grid\'" class="panel-layer-item" ng-class="{selected: selected, \'disabled-item\': disabled}" edgecc-hover edgecc-tooltip tooltip-data="tooltip" template-url="configuration/designlibrary/layerstyle/tooltip.tmpl.html">\n    <div class="panel-layer-item-img" draggable="false" ng-class="{\'panel-thumbnail-disabled\': disabled}" ng-show="imageUrl && loadedRenditionUrl" ng-style="{\'background-image\': \'url(\\\'\' + imageUrl + \'\\\')\'}"></div>\n    <div ng-show="!imageUrl && loadedRenditionUrl" class="edgecc-icon panel-grid-icon-missing-rendition panel-no-rendition-holder layerstyle-missing-rendition-icon">newcreativecloud</div>\n    <div class="edgecc-core-overlay-container" ng-hide="loadedRenditionUrl">\n        <div class="topcoat-spinner edgecc-core-overlay-center"></div>\n    </div>\n    <div class="panel-grid-selected-overlay" ng-class="{\'disabled-overlay\': disabled}"></div>\n    <design-library-editable-grid-name component="component" selected="selected"></design-library-editable-grid-name>\n</div>\n<div ng-if="uiState.view === \'list\'" class="panel-list-item" ng-class="{selected: selected, \'disabled-item\': disabled}" edgecc-hover edgecc-tooltip tooltip-data="tooltip" template-url="configuration/designlibrary/layerstyle/tooltip.tmpl.html">\n    <div class="panel-list-item-thumb">\n        <div class="panel-list-layer-item-img" ng-class="{\'panel-thumbnail-disabled\': disabled}" ng-style="{\'background-image\': \'url(\\\'\' + imageUrl + \'\\\')\'}" ng-show="imageUrl && loadedRenditionUrl"></div>\n        <div ng-show="!imageUrl && loadedRenditionUrl" class="edgecc-icon panel-list-icon-missing-rendition layerstyle-missing-rendition-icon">newcreativecloud</div>\n        <div class="topcoat-spinner edgecc-core-overlay-center" ng-hide="loadedRenditionUrl"></div>\n    </div>\n    <design-library-editable-list-name component="component"></design-library-editable-list-name>\n</div>\n\n'
),e.put("configuration/designlibrary/look/tooltip.tmpl.html",'<div class=\'tooltip\'>\n    <span>{{data.name}}</span>\n    <div ng-if="data.libraryName"><span translate translate-values="data">DL_ITEM_LIBRARY_TOOLTIP</span></div>\n</div>\n'),e.put("configuration/designlibrary/look/view.tmpl.html",'<div ui-draggable="true" drag-component="component" drag-channel="dlItem" on-drag="onElementDragStart()" ng-if="uiState.view === \'grid\'" class="panel-look-item" ng-class="{selected: selected, \'disabled-item\': disabled}" edgecc-hover edgecc-tooltip tooltip-data="tooltip" template-url="configuration/designlibrary/look/tooltip.tmpl.html">\n    <div class="panel-look-item-img" draggable="false" ng-class="{\'panel-thumbnail-disabled\': disabled}" ng-show="imageUrl && loadedRenditionUrl" ng-style="{\'background-image\': \'url(\\\'\' + imageUrl + \'\\\')\'}"></div>\n    <div ng-show="!imageUrl && loadedRenditionUrl" class="edgecc-icon panel-grid-icon-missing-rendition panel-no-rendition-holder look-missing-rendition-icon">newcreativecloud</div>\n    <div class="edgecc-core-overlay-container" ng-hide="loadedRenditionUrl">\n        <div class="topcoat-spinner edgecc-core-overlay-center"></div>\n    </div>\n    <div class="panel-grid-selected-overlay" ng-class="{\'disabled-overlay\': disabled}"></div>\n    <design-library-editable-grid-name component="component" selected="selected"></design-library-editable-grid-name>\n</div>\n<div ui-draggable="true" drag-component="component" drag-channel="dlItem" on-drag="onElementDragStart()" ng-if="uiState.view === \'list\'" class="panel-list-item" ng-class="{selected: selected, \'disabled-item\': disabled}" edgecc-hover edgecc-tooltip tooltip-data="tooltip" template-url="configuration/designlibrary/look/tooltip.tmpl.html">\n    <div class="panel-list-item-thumb">\n        <div class="panel-list-look-item-img" ng-class="{\'panel-thumbnail-disabled\': disabled}" ng-style="{\'background-image\': \'url(\\\'\' + imageUrl + \'\\\')\'}" ng-show="imageUrl && loadedRenditionUrl"></div>\n        <div ng-show="!imageUrl && loadedRenditionUrl" class="edgecc-icon panel-list-icon-missing-rendition look-missing-rendition-icon">newcreativecloud</div>\n        <div class="topcoat-spinner edgecc-core-overlay-center" ng-hide="loadedRenditionUrl"></div>\n    </div>\n    <design-library-editable-list-name component="component"></design-library-editable-list-name>\n</div>\n\n'
),e.put("configuration/designlibrary/parastyle/tooltip.tmpl.html",'<div class=\'tooltip\'>\n    <span ng-if="data.name">{{data.name}}</span>\n    <br ng-if="data.name"/>\n    <span>{{data.properties}}</span>\n    <br ng-if="data.missingFont"/>\n    <span ng-if="data.missingFont" translate>DL_ERROR_MISSING_FONT</span>\n    <div ng-if="data.libraryName"><span translate translate-values="data">DL_ITEM_LIBRARY_TOOLTIP</span></div>\n</div>\n'),e.put("configuration/designlibrary/parastyle/view.tmpl.html"
,'<div ng-if="uiState.view === \'grid\'" class="panel-textstyle-item" ng-class="{selected: selected, \'disabled-item\': disabled}" edgecc-hover edgecc-tooltip tooltip-data="tooltip" template-url="configuration/designlibrary/parastyle/tooltip.tmpl.html">\n    <div class="panel-textstyle-item-img" ng-show="imageUrl && loadedRenditionUrl" ng-class="{\'panel-thumbnail-disabled\': disabled}" ng-style="{\'background-image\': \'url(\\\'\' + imageUrl + \'\\\')\'}"></div>\n    <div ng-show="!imageUrl && loadedRenditionUrl" class="edgecc-icon panel-grid-icon-missing-rendition text-missing-rendition-icon panel-no-rendition-holder">newcreativecloud</div>\n    <div ng-show="imageUrl && loadedRenditionUrl" ng-style="colorStyle" class="panel-textstyle-color"></div>\n    <div class="edgecc-core-overlay-container" ng-show="!loadedRenditionUrl">\n        <div class="topcoat-spinner edgecc-core-overlay-center"></div>\n    </div>\n    <div class="panel-grid-selected-overlay" ng-class="{\'disabled-overlay\': disabled}"></div>\n    <div ng-show="missingFont" class="panel-missing-font-overlay edgecc-icon">alert</div>\n    <design-library-editable-grid-name component="component" selected="selected" default-information="fontDescription.fullFont" allow-blank-name="false"></design-library-editable-grid-name>\n</div>\n<div ng-if="uiState.view === \'list\'" class="panel-list-item" ng-class="{selected: selected, \'disabled-item\': disabled}" edgecc-hover edgecc-tooltip tooltip-data="tooltip" template-url="configuration/designlibrary/parastyle/tooltip.tmpl.html">\n    <div class="panel-list-textstyle-thumb" ng-class="{\'disabled-item\': disabled}">\n        <div class="panel-list-textstyle-item-img" ng-class="{\'panel-thumbnail-disabled\': disabled}" ng-style="{\'background-image\': \'url(\\\'\' + imageUrl + \'\\\')\'}" ng-show="imageUrl && loadedRenditionUrl"></div>\n        <div class="topcoat-spinner edgecc-core-overlay-center" ng-show="!loadedRenditionUrl"></div>\n        <div ng-show="!imageUrl && loadedRenditionUrl" class="edgecc-icon panel-list-icon-missing-rendition text-missing-rendition-icon">newcreativecloud</div>\n\n        <div ng-show="missingFont" class="edgecc-icon panel-missing-font-overlay-list">alert</div>\n    </div>\n    <div class="panel-list-textstyle-item-name-container">\n        <design-library-editable-list-name component="component" default-information="fontDescription.fullFont" allow-blank-name="false"></design-library-editable-list-name>\n        <div class="panel-list-textstyle-item-info">{{styleDescription}}</div>\n    </div>\n    <div ng-style="colorStyle" class="panel-textstyle-list-item-color"></div>\n</div>\n'
),e.put("configuration/designlibrary/pattern/tooltip.tmpl.html",'<div class=\'tooltip\'>\n    <span>{{data.name}}</span>\n    <div ng-if="data.libraryName"><span translate translate-values="data">DL_ITEM_LIBRARY_TOOLTIP</span></div>\n</div>\n'),e.put("configuration/designlibrary/pattern/view.tmpl.html",'<div ui-draggable="true" drag-component="component" drag-channel="dlItem" on-drag="onElementDragStart(component)" ng-if="uiState.view === \'grid\'" class="panel-pattern-item" ng-class="{selected: selected, \'disabled-item\': disabled}" edgecc-hover edgecc-tooltip tooltip-data="tooltip" template-url="configuration/designlibrary/pattern/tooltip.tmpl.html">\n    <div class="panel-pattern-item-img" draggable="false" ng-class="{\'panel-thumbnail-disabled\': disabled}" ng-show="imageUrl && loadedRenditionUrl" ng-style="{\'background-image\': \'url(\\\'\' + imageUrl + \'\\\')\'}"></div>\n    <div ng-show="!imageUrl && loadedRenditionUrl" class="edgecc-icon panel-grid-icon-missing-rendition panel-no-rendition-holder pattern-missing-rendition-icon">newcreativecloud</div>\n    <div class="edgecc-core-overlay-container" ng-hide="loadedRenditionUrl">\n        <div class="topcoat-spinner edgecc-core-overlay-center"></div>\n    </div>\n    <div class="panel-grid-selected-overlay" ng-class="{\'disabled-overlay\': disabled}"></div>\n    <design-library-editable-grid-name component="component" selected="selected"></design-library-editable-grid-name>\n</div>\n<div ui-draggable="true" drag-component="component" drag-channel="dlItem" on-drag="onElementDragStart(component)" ng-if="uiState.view === \'list\'" class="panel-list-item" ng-class="{selected: selected, \'disabled-item\': disabled}" edgecc-hover edgecc-tooltip tooltip-data="tooltip" template-url="configuration/designlibrary/pattern/tooltip.tmpl.html">\n    <div class="panel-list-item-thumb">\n        <div class="panel-list-pattern-item-img" ng-class="{\'panel-thumbnail-disabled\': disabled}" ng-style="{\'background-image\': \'url(\\\'\' + imageUrl + \'\\\')\'}" ng-show="imageUrl && loadedRenditionUrl"></div>\n        <div ng-show="!imageUrl && loadedRenditionUrl" class="edgecc-icon panel-list-icon-missing-rendition pattern-missing-rendition-icon">newcreativecloud</div>\n        <div class="topcoat-spinner edgecc-core-overlay-center" ng-hide="loadedRenditionUrl"></div>\n    </div>\n    <design-library-editable-list-name component="component"></design-library-editable-list-name>\n</div>\n\n'
),e.put("configuration/designlibrary/textstyle/tooltip.tmpl.html",'<div class=\'tooltip\'>\n    <span ng-if="data.name">{{data.name}}</span>\n    <br ng-if="data.name"/>\n    <span>{{data.properties}}</span>\n    <br ng-if="data.missingFont"/>\n    <span ng-if="data.missingFont" translate>DL_ERROR_MISSING_FONT</span>\n    <div ng-if="data.libraryName"><span translate translate-values="data">DL_ITEM_LIBRARY_TOOLTIP</span></div>\n</div>\n'),e.put("configuration/designlibrary/textstyle/view.tmpl.html"
,'<div ng-if="uiState.view === \'grid\'" class="panel-textstyle-item" ng-class="{selected: selected, \'disabled-item\': disabled}" edgecc-hover edgecc-tooltip tooltip-data="tooltip" template-url="configuration/designlibrary/textstyle/tooltip.tmpl.html">\n    <div class="panel-textstyle-item-img" ng-show="imageUrl && loadedRenditionUrl" ng-class="{\'panel-thumbnail-disabled\': disabled}" ng-style="{\'background-image\': \'url(\\\'\' + imageUrl + \'\\\')\'}"></div>\n    <div ng-show="!imageUrl && loadedRenditionUrl" class="edgecc-icon panel-grid-icon-missing-rendition text-missing-rendition-icon panel-no-rendition-holder">newcreativecloud</div>\n    <div ng-show="imageUrl && loadedRenditionUrl" ng-style="colorStyle" class="panel-textstyle-color"></div>\n    <div class="edgecc-core-overlay-container" ng-show="!loadedRenditionUrl">\n        <div class="topcoat-spinner edgecc-core-overlay-center"></div>\n    </div>\n    <div class="panel-grid-selected-overlay" ng-class="{\'disabled-overlay\': disabled}"></div>\n    <div ng-show="missingFont" class="panel-missing-font-overlay edgecc-icon">alert</div>\n    <design-library-editable-grid-name component="component" selected="selected" default-information="fontDescription.fullFont" allow-blank-name="false"></design-library-editable-grid-name>\n</div>\n<div ng-if="uiState.view === \'list\'" class="panel-list-item" ng-class="{selected: selected, \'disabled-item\': disabled}" edgecc-hover edgecc-tooltip tooltip-data="tooltip" template-url="configuration/designlibrary/textstyle/tooltip.tmpl.html">\n    <div class="panel-list-textstyle-thumb" ng-class="{\'disabled-item\': disabled}">\n        <div class="panel-list-textstyle-item-img" ng-class="{\'panel-thumbnail-disabled\': disabled}" ng-style="{\'background-image\': \'url(\\\'\' + imageUrl + \'\\\')\'}" ng-show="imageUrl && loadedRenditionUrl"></div>\n        <div class="topcoat-spinner edgecc-core-overlay-center" ng-show="!loadedRenditionUrl"></div>\n        <div ng-show="!imageUrl && loadedRenditionUrl" class="edgecc-icon panel-list-icon-missing-rendition text-missing-rendition-icon">newcreativecloud</div>\n\n        <div ng-show="missingFont" class="edgecc-icon panel-missing-font-overlay-list">alert</div>\n    </div>\n    <div class="panel-list-textstyle-item-name-container">\n        <design-library-editable-list-name component="component" default-information="fontDescription.fullFont" allow-blank-name="false"></design-library-editable-list-name>\n        <div class="panel-list-textstyle-item-info">{{styleDescription}}</div>\n    </div>\n    <div ng-style="colorStyle" class="panel-textstyle-list-item-color"></div>\n</div>\n'
),e.put("configuration/designlibrary/unsupported/tooltip.tmpl.html",'<div class=\'tooltip\'>\n    <span translate>{{data.disabledMessage}}</span>\n    <div ng-if="data.libraryName"><span translate translate-values="data">DL_ITEM_LIBRARY_TOOLTIP</span></div>\n</div>\n'),e.put("configuration/designlibrary/unsupported/view.tmpl.html",'<div ng-if="uiState.view === \'grid\'" class="panel-unsupported-item disabled-item" ng-class="{selected: selected}" edgecc-hover edgecc-tooltip tooltip-data="tooltip" template-url="configuration/designlibrary/unsupported/tooltip.tmpl.html">\n    <div class="panel-unsupported-item-img panel-thumbnail-disabled" ng-show="imageUrl && loadedRenditionUrl" ng-style="{\'background-image\': \'url(\\\'\' + imageUrl + \'\\\')\'}"></div>\n    <div ng-show="!imageUrl && loadedRenditionUrl" class="edgecc-icon panel-grid-icon-missing-rendition panel-no-rendition-holder">newcreativecloud</div>\n    <div class="edgecc-core-overlay-container" ng-hide="loadedRenditionUrl">\n        <div class="topcoat-spinner edgecc-core-overlay-center"></div>\n    </div>\n    <div class="panel-grid-selected-overlay disabled-overlay"></div>\n    <design-library-editable-grid-name component="component" selected="selected"></design-library-editable-grid-name>\n</div>\n<div ng-if="uiState.view === \'list\'" class="panel-list-item" ng-class="{selected: selected, \'disabled-item\': disabled}" edgecc-hover edgecc-tooltip tooltip-data="tooltip" template-url="configuration/designlibrary/unsupported/tooltip.tmpl.html">\n    <div class="panel-list-unsupported-item-thumb">\n        <div class="panel-list-unsupported-item-img panel-thumbnail-disabled" ng-show="imageUrl && loadedRenditionUrl" ng-style="{\'background-image\': \'url(\\\'\' + imageUrl + \'\\\')\'}"></div>\n        <div ng-show="!imageUrl && loadedRenditionUrl" class="edgecc-icon panel-list-icon-missing-rendition">newcreativecloud</div>\n        <div class="topcoat-spinner edgecc-core-overlay-center" ng-hide="loadedRenditionUrl"></div>\n    </div>\n    <design-library-editable-list-name component="component"></design-library-editable-list-name>\n</div>\n'
),e.put("configuration/designlibrary/video/tooltip.tmpl.html",'<div class="tooltip">\n    <span>{{data.name}}</span>\n    <br ng-if="data.name"/>\n    <span ng-if="data.dimensions">{{data.dimensions}}</span>\n    <br ng-if="data.dimensions"/>\n    <span ng-if="data.duration">{{data.duration}}</span>\n    <br ng-if="data.duration"/>\n    <span ng-if="data.framerate">{{data.framerate}}</span>\n    <br ng-if="data.framerate"/>\n    <span ng-if="data.filesize">{{data.filesize}}</span>\n    <br ng-if="data.isStockAsset && data.filesize"/>\n    <span ng-if="data.isStockAsset"><span translate>DL_ADOBE_STOCK_VIDEO</span></span>\n    <br ng-if="data.isStockAsset"/>\n    <span ng-if="data.isStockAsset && data.isLicensed"><span translate>DL_LICENSED</span></span>\n    <span ng-if="data.isStockAsset && !data.isLicensed"><span translate>DL_UNLICENSED</span></span>\n    <div ng-if="data.libraryName"><span translate translate-values="data">DL_ITEM_LIBRARY_TOOLTIP</span></div>\n</div>\n'
),e.put("configuration/designlibrary/video/view.tmpl.html",'<div ui-draggable="true" drag-component="component" drag-channel="dlItem" on-drag="onElementDragStart()" ng-if="uiState.view === \'grid\'" class="panel-video-item" ng-class="{selected: selected, \'disabled-item\': disabled}" edgecc-hover edgecc-tooltip tooltip-data="tooltip" template-url="configuration/designlibrary/video/tooltip.tmpl.html">\n    <div class="panel-video-item-img" draggable="false" ng-class="{\'panel-thumbnail-disabled\': disabled}" ng-show="imageUrl && loadedRenditionUrl" ng-style="{\'background-image\': \'url(\\\'\' + imageUrl + \'\\\')\'}"></div>\n    <div ng-show="!imageUrl && loadedRenditionUrl" class="edgecc-icon panel-grid-icon-missing-rendition panel-no-rendition-holder video-missing-rendition-icon">newcreativecloud</div>\n    <div class="edgecc-core-overlay-container" ng-hide="loadedRenditionUrl">\n        <div class="topcoat-spinner edgecc-core-overlay-center"></div>\n    </div>\n    <div class="panel-grid-selected-overlay" ng-class="{\'disabled-overlay\': disabled}"></div>\n    <design-library-editable-grid-name component="component" selected="selected"></design-library-editable-grid-name>\n    <div ng-if="!disabled" class="panel-dl-stock-content-video-badge">\n       <div class="panel-dl-stock-content-video-badge-icon"><div class="panel-dl-stock-content-video-badge-icon-triangle"></div></div>\n       <div class="panel-dl-stock-content-video-badge-duration">{{tooltip.duration}}</div>\n   </div>\n    <div ng-if="isLicensed(component)" class="panel-dl-stock-content-item-licensed-mini" ng-class="{\'disabled\': disabled}" edgecc-tooltip tooltip-content="{{\'DL_LICENSED\' | translate}}">\n        <div class="panel-dl-stock-content-item-icon-licensed-mini edgecc-icon">checkmark</div>\n    </div>\n</div>\n<div ui-draggable="true" drag-component="component" drag-channel="dlItem" on-drag="onElementDragStart()" ng-if="uiState.view === \'list\'" class="panel-list-item" ng-class="{selected: selected, \'disabled-item\': disabled}" edgecc-hover edgecc-tooltip tooltip-data="tooltip" template-url="configuration/designlibrary/video/tooltip.tmpl.html">\n    <div class="panel-list-item-thumb">\n        <div class="panel-list-video-item-img" ng-class="{\'panel-thumbnail-disabled\': disabled}" ng-style="{\'background-image\': \'url(\\\'\' + imageUrl + \'\\\')\'}" ng-show="imageUrl && loadedRenditionUrl"></div>\n        <div ng-show="!imageUrl && loadedRenditionUrl" class="edgecc-icon panel-list-icon-missing-rendition video-missing-rendition-icon">newcreativecloud</div>\n        <div class="topcoat-spinner edgecc-core-overlay-center" ng-hide="loadedRenditionUrl"></div>\n    </div>\n    <design-library-editable-list-name component="component"></design-library-editable-list-name>\n</div>\n'
)}}),define("../../.tmp/app.templates",function(){}),function(t,n){typeof exports=="object"&&typeof module=="object"?module.exports=n():typeof define=="function"&&define.amd?define("handlebars",[],n):typeof exports=="object"?exports.Handlebars=n():t.Handlebars=n()}(this,function(){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,
n){"use strict";function g(){var e=m();return e.compile=function(t,n){return f.compile(t,n,e)},e.precompile=function(t,n){return f.precompile(t,n,e)},e.AST=u["default"],e.Compiler=f.Compiler,e.JavaScriptCompiler=c["default"],e.Parser=a.parser,e.parse=a.parse,e}var r=n(1)["default"];t.__esModule=!0;var i=n(2),s=r(i),o=n(21),u=r(o),a=n(22),f=n(27),l=n(28),c=r(l),h=n(25),p=r(h),d=n(20),v=r(d),m=s["default"].create,y=g();y.create=g,v["default"](y),y.Visitor=p["default"],y["default"]=y,t["default"]=y,
e.exports=t["default"]},function(e,t){"use strict";t["default"]=function(e){return e&&e.__esModule?e:{"default":e}},t.__esModule=!0},function(e,t,n){"use strict";function g(){var e=new o.HandlebarsEnvironment;return h.extend(e,o),e.SafeString=a["default"],e.Exception=l["default"],e.Utils=h,e.escapeExpression=h.escapeExpression,e.VM=d,e.template=function(t){return d.template(t,e)},e}var r=n(3)["default"],i=n(1)["default"];t.__esModule=!0;var s=n(4),o=r(s),u=n(18),a=i(u),f=n(6),l=i(f),c=n(5),h=r(c)
,p=n(19),d=r(p),v=n(20),m=i(v),y=g();y.create=g,m["default"](y),y["default"]=y,t["default"]=y,e.exports=t["default"]},function(e,t){"use strict";t["default"]=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t},t.__esModule=!0},function(e,t,n){"use strict";function v(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},u.registerDefaultHelpers(this),a.registerDefaultDecorators(this
)}var r=n(1)["default"];t.__esModule=!0,t.HandlebarsEnvironment=v;var i=n(5),s=n(6),o=r(s),u=n(7),a=n(15),f=n(17),l=r(f),c="4.0.5";t.VERSION=c;var h=7;t.COMPILER_REVISION=h;var p={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0"};t.REVISION_CHANGES=p;var d="[object Object]";v.prototype={constructor:v,logger:l["default"],log:l["default"].log,registerHelper:function(t,n){if(i.toString.call(t)===d){if(n)throw new o["default"]("Arg not supported with multiple helpers"
);i.extend(this.helpers,t)}else this.helpers[t]=n},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,n){if(i.toString.call(t)===d)i.extend(this.partials,t);else{if(typeof n=="undefined")throw new o["default"]('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=n}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,n){if(i.toString.call(t)===d){if(n)throw new o["default"]("Arg not supported with multiple decorators"
);i.extend(this.decorators,t)}else this.decorators[t]=n},unregisterDecorator:function(t){delete this.decorators[t]}};var m=l["default"].log;t.log=m,t.createFrame=i.createFrame,t.logger=l["default"]},function(e,t){"use strict";function s(e){return n[e]}function o(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}function l(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function c(
e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return i.test(e)?e.replace(r,s):e}function h(e){return!e&&e!==0?!0:f(e)&&e.length===0?!0:!1}function p(e){var t=o({},e);return t._parent=e,t}function d(e,t){return e.path=t,e}function v(e,t){return(e?e+".":"")+t}t.__esModule=!0,t.extend=o,t.indexOf=l,t.escapeExpression=c,t.isEmpty=h,t.createFrame=p,t.blockParams=d,t.appendContextPath=v;var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"
,"`":"&#x60;","=":"&#x3D;"},r=/[&<>"'`=]/g,i=/[&<>"'`=]/,u=Object.prototype.toString;t.toString=u;var a=function(t){return typeof t=="function"};a(/x/)&&(t.isFunction=a=function(e){return typeof e=="function"&&u.call(e)==="[object Function]"}),t.isFunction=a;var f=Array.isArray||function(e){return e&&typeof e=="object"?u.call(e)==="[object Array]":!1};t.isArray=f},function(e,t){"use strict";function r(e,t){var i=t&&t.loc,s=undefined,o=undefined;i&&(s=i.start.line,o=i.start.column,e+=" - "+s+":"+o
);var u=Error.prototype.constructor.call(this,e);for(var a=0;a<n.length;a++)this[n[a]]=u[n[a]];Error.captureStackTrace&&Error.captureStackTrace(this,r),i&&(this.lineNumber=s,this.column=o)}t.__esModule=!0;var n=["description","fileName","lineNumber","message","name","number","stack"];r.prototype=new Error,t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";function y(e){s["default"](e),u["default"](e),f["default"](e),c["default"](e),p["default"](e),v["default"](e),g["default"](e)}
var r=n(1)["default"];t.__esModule=!0,t.registerDefaultHelpers=y;var i=n(8),s=r(i),o=n(9),u=r(o),a=n(10),f=r(a),l=n(11),c=r(l),h=n(12),p=r(h),d=n(13),v=r(d),m=n(14),g=r(m)},function(e,t,n){"use strict";t.__esModule=!0;var r=n(5);t["default"]=function(e){e.registerHelper("blockHelperMissing",function(t,n){var i=n.inverse,s=n.fn;if(t===!0)return s(this);if(t===!1||t==null)return i(this);if(r.isArray(t))return t.length>0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):i(this);if(n.data&&n.ids){var o=r
.createFrame(n.data);o.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:o}}return s(t,n)})},e.exports=t["default"]},function(e,t,n){"use strict";var r=n(1)["default"];t.__esModule=!0;var i=n(5),s=n(6),o=r(s);t["default"]=function(e){e.registerHelper("each",function(e,t){function l(t,r,s){a&&(a.key=t,a.index=r,a.first=r===0,a.last=!!s,f&&(a.contextPath=f+t)),u+=n(e[t],{data:a,blockParams:i.blockParams([e[t],t],[f+t,null])})}if(!t)throw new o["default"]("Must pass iterator to #each"
);var n=t.fn,r=t.inverse,s=0,u="",a=undefined,f=undefined;t.data&&t.ids&&(f=i.appendContextPath(t.data.contextPath,t.ids[0])+"."),i.isFunction(e)&&(e=e.call(this)),t.data&&(a=i.createFrame(t.data));if(e&&typeof e=="object")if(i.isArray(e))for(var c=e.length;s<c;s++)s in e&&l(s,s,s===e.length-1);else{var h=undefined;for(var p in e)e.hasOwnProperty(p)&&(h!==undefined&&l(h,s-1),h=p,s++);h!==undefined&&l(h,s-1,!0)}return s===0&&(u=r(this)),u})},e.exports=t["default"]},function(e,t,n){"use strict";var r=
n(1)["default"];t.__esModule=!0;var i=n(6),s=r(i);t["default"]=function(e){e.registerHelper("helperMissing",function(){if(arguments.length===1)return undefined;throw new s["default"]('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0;var r=n(5);t["default"]=function(e){e.registerHelper("if",function(e,t){return r.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||r.isEmpty(e)?t.inverse(this):t.fn(this)}),e.registerHelper
("unless",function(t,n){return e.helpers["if"].call(this,t,{fn:n.inverse,inverse:n.fn,hash:n.hash})})},e.exports=t["default"]},function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){e.registerHelper("log",function(){var t=[undefined],n=arguments[arguments.length-1];for(var r=0;r<arguments.length-1;r++)t.push(arguments[r]);var i=1;n.hash.level!=null?i=n.hash.level:n.data&&n.data.level!=null&&(i=n.data.level),t[0]=i,e.log.apply(e,t)})},e.exports=t["default"]},function(e,t){"use strict"
;t.__esModule=!0,t["default"]=function(e){e.registerHelper("lookup",function(e,t){return e&&e[t]})},e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0;var r=n(5);t["default"]=function(e){e.registerHelper("with",function(e,t){r.isFunction(e)&&(e=e.call(this));var n=t.fn;if(!r.isEmpty(e)){var i=t.data;return t.data&&t.ids&&(i=r.createFrame(t.data),i.contextPath=r.appendContextPath(t.data.contextPath,t.ids[0])),n(e,{data:i,blockParams:r.blockParams([e],[i&&i.contextPath])})}return t
.inverse(this)})},e.exports=t["default"]},function(e,t,n){"use strict";function o(e){s["default"](e)}var r=n(1)["default"];t.__esModule=!0,t.registerDefaultDecorators=o;var i=n(16),s=r(i)},function(e,t,n){"use strict";t.__esModule=!0;var r=n(5);t["default"]=function(e){e.registerDecorator("inline",function(e,t,n,i){var s=e;return t.partials||(t.partials={},s=function(i,s){var o=n.partials;n.partials=r.extend({},o,t.partials);var u=e(i,s);return n.partials=o,u}),t.partials[i.args[0]]=i.fn,s})},e.exports=
t["default"]},function(e,t,n){"use strict";t.__esModule=!0;var r=n(5),i={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){if(typeof t=="string"){var n=r.indexOf(i.methodMap,t.toLowerCase());n>=0?t=n:t=parseInt(t,10)}return t},log:function(t){t=i.lookupLevel(t);if(typeof console!="undefined"&&i.lookupLevel(i.level)<=t){var n=i.methodMap[t];console[n]||(n="log");for(var r=arguments.length,s=Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];console[n].apply(console,s)}}}
;t["default"]=i,e.exports=t["default"]},function(e,t){"use strict";function n(e){this.string=e}t.__esModule=!0,n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function l(e){var t=e&&e[0]||1,n=f.COMPILER_REVISION;if(t!==n){if(t<n){var r=f.REVISION_CHANGES[n],i=f.REVISION_CHANGES[t];throw new a["default"]("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+
r+") or downgrade your runtime to an older version ("+i+").")}throw new a["default"]("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}}function c(e,t){function n(n,r,i){i.hash&&(r=o.extend({},r,i.hash),i.ids&&(i.ids[0]=!0)),n=t.VM.resolvePartial.call(this,n,r,i);var s=t.VM.invokePartial.call(this,n,r,i);s==null&&t.compile&&(i.partials[i.name]=t.compile(n,e.compilerOptions,t),s=i.partials[i.name](r,i)
);if(s!=null){if(i.indent){var u=s.split("\n");for(var f=0,l=u.length;f<l;f++){if(!u[f]&&f+1===l)break;u[f]=i.indent+u[f]}s=u.join("\n")}return s}throw new a["default"]("The partial "+i.name+" could not be compiled when running in runtime-only mode")}function i(t){function a(t){return""+e.main(r,t,r.helpers,r.partials,s,u,o)}var n=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],s=n.data;i._setup(n),!n.partial&&e.useData&&(s=m(t,s));var o=undefined,u=e.useBlockParams?[]:undefined;return e
.useDepths&&(n.depths?o=t!==n.depths[0]?[t].concat(n.depths):n.depths:o=[t]),a=g(e.main,a,r,n.depths||[],s,u),a(t,n)}if(!t)throw new a["default"]("No environment passed to template");if(!e||!e.main)throw new a["default"]("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r={strict:function(t,n){if(n in t)return t[n];throw new a["default"]('"'+n+'" not defined in '+t)},lookup:function(t,n){var r=t.length;for(var i=0;i<r;i++)if(t[i]&&t[i][n]!=null)return t
[i][n]},lambda:function(t,n){return typeof t=="function"?t.call(n):t},escapeExpression:o.escapeExpression,invokePartial:n,fn:function(n){var r=e[n];return r.decorator=e[n+"_d"],r},programs:[],program:function(t,n,r,i,s){var o=this.programs[t],u=this.fn(t);return n||s||i||r?o=h(this,t,u,n,r,i,s):o||(o=this.programs[t]=h(this,t,u)),o},data:function(t,n){while(t&&n--)t=t._parent;return t},merge:function(t,n){var r=t||n;return t&&n&&t!==n&&(r=o.extend({},n,t)),r},noop:t.VM.noop,compilerInfo:e.compiler
};return i.isTop=!0,i._setup=function(n){if(!n.partial){r.helpers=r.merge(n.helpers,t.helpers),e.usePartial&&(r.partials=r.merge(n.partials,t.partials));if(e.usePartial||e.useDecorators)r.decorators=r.merge(n.decorators,t.decorators)}else r.helpers=n.helpers,r.partials=n.partials,r.decorators=n.decorators},i._child=function(t,n,i,s){if(e.useBlockParams&&!i)throw new a["default"]("must pass block params");if(e.useDepths&&!s)throw new a["default"]("must pass parent depths");return h(r,t,e[t],n,0,i,
s)},i}function h(e,t,n,r,i,s,o){function u(t){var i=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],u=o;return o&&t!==o[0]&&(u=[t].concat(o)),n(e,t,e.helpers,e.partials,i.data||r,s&&[i.blockParams].concat(s),u)}return u=g(n,u,e,o,r,s),u.program=t,u.depth=o?o.length:0,u.blockParams=i||0,u}function p(e,t,n){return e?!e.call&&!n.name&&(n.name=e,e=n.partials[e]):n.name==="@partial-block"?e=n.data["partial-block"]:e=n.partials[n.name],e}function d(e,t,n){n.partial=!0,n.ids&&(n.data.contextPath=
n.ids[0]||n.data.contextPath);var r=undefined;n.fn&&n.fn!==v&&(n.data=f.createFrame(n.data),r=n.data["partial-block"]=n.fn,r.partials&&(n.partials=o.extend({},n.partials,r.partials))),e===undefined&&r&&(e=r);if(e===undefined)throw new a["default"]("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function v(){return""}function m(e,t){if(!t||!("root"in t))t=t?f.createFrame(t):{},t.root=e;return t}function g(e,t,n,r,i,s){if(e.decorator){var u={};t=e.decorator(t,u,n
,r&&r[0],i,s,r),o.extend(t,u)}return t}var r=n(3)["default"],i=n(1)["default"];t.__esModule=!0,t.checkRevision=l,t.template=c,t.wrapProgram=h,t.resolvePartial=p,t.invokePartial=d,t.noop=v;var s=n(5),o=r(s),u=n(6),a=i(u),f=n(4)},function(e,t){(function(n){"use strict";t.__esModule=!0,t["default"]=function(e){var t=typeof n!="undefined"?n:window,r=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=r),e}},e.exports=t["default"]}).call(t,function(){return this}())},function(e
,t){"use strict";t.__esModule=!0;var n={helpers:{helperExpression:function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},scopedId:function(t){return/^\.|this\b/.test(t.original)},simpleId:function(t){return t.parts.length===1&&!n.helpers.scopedId(t)&&!t.depth}}};t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function p(e,t){if(e.type==="Program")return e;o["default"].yy=h,h.locInfo=function(
e){return new h.SourceLocation(t&&t.srcName,e)};var n=new a["default"](t);return n.accept(o["default"].parse(e))}var r=n(1)["default"],i=n(3)["default"];t.__esModule=!0,t.parse=p;var s=n(23),o=r(s),u=n(24),a=r(u),f=n(26),l=i(f),c=n(5);t.parser=o["default"];var h={};c.extend(h,l)},function(e,t){"use strict";var n=function(){function n(){this.yy={}}var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock
:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition_plus0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0
:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0
:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE"
,47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],
[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,1],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]
],performAction:function(t,n,r,i,s,o,u){var a=o.length-1;switch(s){case 1:return o[a-1];case 2:this.$=i.prepareProgram(o[a]);break;case 3:this.$=o[a];break;case 4:this.$=o[a];break;case 5:this.$=o[a];break;case 6:this.$=o[a];break;case 7:this.$=o[a];break;case 8:this.$=o[a];break;case 9:this.$={type:"CommentStatement",value:i.stripComment(o[a]),strip:i.stripFlags(o[a],o[a]),loc:i.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:o[a],value:o[a],loc:i.locInfo(this._$)};break;
case 11:this.$=i.prepareRawBlock(o[a-2],o[a-1],o[a],this._$);break;case 12:this.$={path:o[a-3],params:o[a-2],hash:o[a-1]};break;case 13:this.$=i.prepareBlock(o[a-3],o[a-2],o[a-1],o[a],!1,this._$);break;case 14:this.$=i.prepareBlock(o[a-3],o[a-2],o[a-1],o[a],!0,this._$);break;case 15:this.$={open:o[a-5],path:o[a-4],params:o[a-3],hash:o[a-2],blockParams:o[a-1],strip:i.stripFlags(o[a-5],o[a])};break;case 16:this.$={path:o[a-4],params:o[a-3],hash:o[a-2],blockParams:o[a-1],strip:i.stripFlags(o[a-5],o[
a])};break;case 17:this.$={path:o[a-4],params:o[a-3],hash:o[a-2],blockParams:o[a-1],strip:i.stripFlags(o[a-5],o[a])};break;case 18:this.$={strip:i.stripFlags(o[a-1],o[a-1]),program:o[a]};break;case 19:var f=i.prepareBlock(o[a-2],o[a-1],o[a],o[a],!1,this._$),l=i.prepareProgram([f],o[a-1].loc);l.chained=!0,this.$={strip:o[a-2].strip,program:l,chain:!0};break;case 20:this.$=o[a];break;case 21:this.$={path:o[a-1],strip:i.stripFlags(o[a-2],o[a])};break;case 22:this.$=i.prepareMustache(o[a-3],o[a-2],o[
a-1],o[a-4],i.stripFlags(o[a-4],o[a]),this._$);break;case 23:this.$=i.prepareMustache(o[a-3],o[a-2],o[a-1],o[a-4],i.stripFlags(o[a-4],o[a]),this._$);break;case 24:this.$={type:"PartialStatement",name:o[a-3],params:o[a-2],hash:o[a-1],indent:"",strip:i.stripFlags(o[a-4],o[a]),loc:i.locInfo(this._$)};break;case 25:this.$=i.preparePartialBlock(o[a-2],o[a-1],o[a],this._$);break;case 26:this.$={path:o[a-3],params:o[a-2],hash:o[a-1],strip:i.stripFlags(o[a-4],o[a])};break;case 27:this.$=o[a];break;case 28
:this.$=o[a];break;case 29:this.$={type:"SubExpression",path:o[a-3],params:o[a-2],hash:o[a-1],loc:i.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:o[a],loc:i.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:i.id(o[a-2]),value:o[a],loc:i.locInfo(this._$)};break;case 32:this.$=i.id(o[a-1]);break;case 33:this.$=o[a];break;case 34:this.$=o[a];break;case 35:this.$={type:"StringLiteral",value:o[a],original:o[a],loc:i.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value
:Number(o[a]),original:Number(o[a]),loc:i.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:o[a]==="true",original:o[a]==="true",loc:i.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:undefined,value:undefined,loc:i.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:i.locInfo(this._$)};break;case 40:this.$=o[a];break;case 41:this.$=o[a];break;case 42:this.$=i.preparePath(!0,o[a],this._$);break;case 43:this.$=i.preparePath
(!1,o[a],this._$);break;case 44:o[a-2].push({part:i.id(o[a]),original:o[a],separator:o[a-1]}),this.$=o[a-2];break;case 45:this.$=[{part:i.id(o[a]),original:o[a]}];break;case 46:this.$=[];break;case 47:o[a-1].push(o[a]);break;case 48:this.$=[o[a]];break;case 49:o[a-1].push(o[a]);break;case 50:this.$=[];break;case 51:o[a-1].push(o[a]);break;case 58:this.$=[];break;case 59:o[a-1].push(o[a]);break;case 64:this.$=[];break;case 65:o[a-1].push(o[a]);break;case 70:this.$=[];break;case 71:o[a-1].push(o[a]
);break;case 78:this.$=[];break;case 79:o[a-1].push(o[a]);break;case 82:this.$=[];break;case 83:o[a-1].push(o[a]);break;case 86:this.$=[];break;case 87:o[a-1].push(o[a]);break;case 90:this.$=[];break;case 91:o[a-1].push(o[a]);break;case 94:this.$=[];break;case 95:o[a-1].push(o[a]);break;case 98:this.$=[o[a]];break;case 99:o[a-1].push(o[a]);break;case 100:this.$=[o[a]];break;case 101:o[a-1].push(o[a])}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46
],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4
],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34
:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60
:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{13:40,15:[1,20],17:39},{20:42,56:41,64:43,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:45,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10
],55:[2,10],60:[2,10]},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:48,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:42,56:49,64:43,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:50,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2
,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36
],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72
:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,51]},{72:[1,35],86:52},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:53,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:54,38:56,39:[1,58],43:57,44:[1,59],45:55,47:[2,54]},{28:60,43:61,44:[1,59],47:[2,56]},{13:63,15:[1,20],18:[1,62]},{15:[2,48],18:[2,48]},{33:[2,86],57:64
,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:65,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:66,47:[1,67]},{30:68,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35
:69,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:70,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:71,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:75,33:[2,80],50:72,63:73,64:76,65:[1,44],69:74,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,80]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2
,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,51]},{20:75,53:81,54:[2,84],63:82,64:76,65:[1,44],69:83,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:84,47:[1,67]},{47:[2,55]},{4:85,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:86,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85
:[1,34],86:33},{4:87,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:88,47:[1,67]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:75,33:[2,88],58:89,63:90,64:76,65:[1,44],69:91,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:92,68:[2,94],72:[2,94],80:
[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:93,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,31:94,33:[2,60],63:95,64:76,65:[1,44],69:96,70:77,71:78,72:[1,79],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,33:[2,66],36:97,63:98,64:76,65:[1,44],69:99,70:77
,71:78,72:[1,79],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,22:100,23:[2,52],63:101,64:76,65:[1,44],69:102,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,33:[2,92],62:103,63:104,64:76,65:[1,44],69:105,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,106]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84
:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:107,72:[1,108],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,109],75
:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,110]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:56,39:[1,58],43:57,44:[1,59]
,45:112,46:111,47:[2,76]},{33:[2,70],40:113,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,114]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:75,63:116,64:76,65:[1,44],67:115,68:[2,96],69:117,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29
],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,118]},{32:119,33:[2,62],74:120,75:[1,121]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:122,74:123,75:[1,121]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,124]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},
{33:[1,125]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,109]},{20:75,63:126,64:76,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23]
,39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:75,33:[2,72],41:127,63:128,64:76,65:[1,44],69:129,70:77,71:78,72:[1,79],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,130]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:
[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,131]},{33:[2,63]},{72:[1,133],76:132},{33:[1,134]},{33:[2,69]},{15:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:135,74:136,75:[1,121]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71
],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,138],77:[1,137]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,139]},{33:[2,75]},{33:[2,32]},{72:[2
,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],55:[2,55],57:[2,20],61:[2,57],74:[2,81],83:[2,85],87:[2,18],91:[2,89],102:[2,53],105:[2,93],111:[2,19],112:[2,77],117:[2,97],120:[2,63],123:[2,69],124:[2,12],136:[2,75],137:[2,32]},parseError:function(t,n){throw new Error(t)},parse:function(t){function v(e){r.length=r.length-2*e,i.length=i.length-e,s.length=s.length-e}function m(){var e
;return e=n.lexer.lex()||1,typeof e!="number"&&(e=n.symbols_[e]||e),e}var n=this,r=[0],i=[null],s=[],o=this.table,u="",a=0,f=0,l=0,c=2,h=1;this.lexer.setInput(t),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc=="undefined"&&(this.lexer.yylloc={});var p=this.lexer.yylloc;s.push(p);var d=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);var g,y,b,w,E,S,x={},T,N,C,k;for(;;){b=r[r.length-1
];if(this.defaultActions[b])w=this.defaultActions[b];else{if(g===null||typeof g=="undefined")g=m();w=o[b]&&o[b][g]}if(typeof w=="undefined"||!w.length||!w[0]){var L="";if(!l){k=[];for(T in o[b])this.terminals_[T]&&T>2&&k.push("'"+this.terminals_[T]+"'");this.lexer.showPosition?L="Parse error on line "+(a+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[g]||g)+"'":L="Parse error on line "+(a+1)+": Unexpected "+(g==1?"end of input":"'"+(this.terminals_[g]||g
)+"'"),this.parseError(L,{text:this.lexer.match,token:this.terminals_[g]||g,line:this.lexer.yylineno,loc:p,expected:k})}}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+g);switch(w[0]){case 1:r.push(g),i.push(this.lexer.yytext),s.push(this.lexer.yylloc),r.push(w[1]),g=null,y?(g=y,y=null):(f=this.lexer.yyleng,u=this.lexer.yytext,a=this.lexer.yylineno,p=this.lexer.yylloc,l>0&&l--);break;case 2:N=this.productions_[w[1]][1],x.$=i[i
.length-N],x._$={first_line:s[s.length-(N||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(N||1)].first_column,last_column:s[s.length-1].last_column},d&&(x._$.range=[s[s.length-(N||1)].range[0],s[s.length-1].range[1]]),S=this.performAction.call(x,u,f,a,this.yy,w[1],i,s);if(typeof S!="undefined")return S;N&&(r=r.slice(0,-1*N*2),i=i.slice(0,-1*N),s=s.slice(0,-1*N)),r.push(this.productions_[w[1]][0]),i.push(x.$),s.push(x._$),C=o[r[r.length-2]][r[r.length-1]],r.push(C);break;
case 3:return!0}}return!0}},t=function(){var e={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(t){return this._input=t,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this
.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n-1),this.offset-=n;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1
),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var s=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===i.length?this.yylloc.first_column:0)+i[i.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-n]),this},more:function(){return this._more=!0,this},less:function(
t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),n=(new Array(t.length+1)).join("-");return t+this.upcomingInput()+"\n"+n+"^"},next:function(){if(this.done)return this
.EOF;this._input||(this.done=!0);var t,n,r,i,s,o;this._more||(this.yytext="",this.match="");var u=this._currentRules();for(var a=0;a<u.length;a++){r=this._input.match(this.rules[u[a]]);if(r&&(!n||r[0].length>n[0].length)){n=r,i=a;if(!this.options.flex)break}}if(n){o=n[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0
].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],t=this.performAction.call(this,this.yy,this,u[i],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1);if(t)return t;return}return this._input===""?this.EOF:this.parseError("Lexical error on line "+
(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return typeof t!="undefined"?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(t){this.begin(t)
}};return e.options={},e.performAction=function(t,n,r,i){function s(e,t){return n.yytext=n.yytext.substr(e,n.yyleng-t)}var o=i;switch(r){case 0:n.yytext.slice(-2)==="\\\\"?(s(0,1),this.begin("mu")):n.yytext.slice(-1)==="\\"?(s(0,1),this.begin("emu")):this.begin("mu");if(n.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(n.yytext=n.yytext.substr(5,n
.yyleng-9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(n.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23
:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return n.yytext=s(1,2).replace(/\\"/g,'"'),80;case 32:return n.yytext=s(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return n.yytext=n.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43
:return"INVALID";case 44:return 5}},e.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]*?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/
,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/
,/^(?:.)/,/^(?:$)/],e.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},e}();return e.lexer=t,n.prototype=e,e.Parser=n,new n}();t.__esModule=!0,t["default"]=n},function(e,t,n){"use strict";function o(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];this
.options=e}function u(e,t,n){t===undefined&&(t=e.length);var r=e[t-1],i=e[t-2];if(!r)return n;if(r.type==="ContentStatement")return(i||!n?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(r.original)}function a(e,t,n){t===undefined&&(t=-1);var r=e[t+1],i=e[t+2];if(!r)return n;if(r.type==="ContentStatement")return(i||!n?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(r.original)}function f(e,t,n){var r=e[t==null?0:t+1];if(!r||r.type!=="ContentStatement"||!n&&r.rightStripped)return;var i=r.value;r.value=r.value.replace(n?/^\s+/
:/^[ \t]*\r?\n?/,""),r.rightStripped=r.value!==i}function l(e,t,n){var r=e[t==null?e.length-1:t-1];if(!r||r.type!=="ContentStatement"||!n&&r.leftStripped)return;var i=r.value;return r.value=r.value.replace(n?/\s+$/:/[ \t]+$/,""),r.leftStripped=r.value!==i,r.leftStripped}var r=n(1)["default"];t.__esModule=!0;var i=n(25),s=r(i);o.prototype=new s["default"],o.prototype.Program=function(e){var t=!this.options.ignoreStandalone,n=!this.isRootSeen;this.isRootSeen=!0;var r=e.body;for(var i=0,s=r.length;i<
s;i++){var o=r[i],c=this.accept(o);if(!c)continue;var h=u(r,i,n),p=a(r,i,n),d=c.openStandalone&&h,v=c.closeStandalone&&p,m=c.inlineStandalone&&h&&p;c.close&&f(r,i,!0),c.open&&l(r,i,!0),t&&m&&(f(r,i),l(r,i)&&o.type==="PartialStatement"&&(o.indent=/([ \t]+$)/.exec(r[i-1].original)[1])),t&&d&&(f((o.program||o.inverse).body),l(r,i)),t&&v&&(f(r,i),l((o.inverse||o.program).body))}return e},o.prototype.BlockStatement=o.prototype.DecoratorBlock=o.prototype.PartialBlockStatement=function(e){this.accept(e.
program),this.accept(e.inverse);var t=e.program||e.inverse,n=e.program&&e.inverse,r=n,i=n;if(n&&n.chained){r=n.body[0].program;while(i.chained)i=i.body[i.body.length-1].program}var s={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:a(t.body),closeStandalone:u((r||t).body)};e.openStrip.close&&f(t.body,null,!0);if(n){var o=e.inverseStrip;o.open&&l(t.body,null,!0),o.close&&f(r.body,null,!0),e.closeStrip.open&&l(i.body,null,!0),!this.options.ignoreStandalone&&u(t.body)&&a(r.body)&&(l(t.
body),f(r.body))}else e.closeStrip.open&&l(t.body,null,!0);return s},o.prototype.Decorator=o.prototype.MustacheStatement=function(e){return e.strip},o.prototype.PartialStatement=o.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}},t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function o(){this.parents=[]}function u(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function a(e){u.
call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function f(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}var r=n(1)["default"];t.__esModule=!0;var i=n(6),s=r(i);o.prototype={constructor:o,mutating:!1,acceptKey:function(t,n){var r=this.accept(t[n]);if(this.mutating){if(r&&!o.prototype[r.type])throw new s["default"]('Unexpected node type "'+r.type+'" found when accepting '+n+" on "+t.type);t[n]=r}},acceptRequired:function(t,n){this.acceptKey
(t,n);if(!t[n])throw new s["default"](t.type+" requires "+n)},acceptArray:function(t){for(var n=0,r=t.length;n<r;n++)this.acceptKey(t,n),t[n]||(t.splice(n,1),n--,r--)},accept:function(t){if(!t)return;if(!this[t.type])throw new s["default"]("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var n=this[t.type](t);this.current=this.parents.shift();if(!this.mutating||n)return n;if(n!==!1)return t},Program:function(t){this.acceptArray(t.body)},MustacheStatement:
u,Decorator:u,BlockStatement:a,DecoratorBlock:a,PartialStatement:f,PartialBlockStatement:function(t){f.call(this,t),this.acceptKey(t,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:u,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(t){this.acceptArray(t.pairs)},HashPair:function(t){this.acceptRequired(t,"value")}},t["default"]=o,e.
exports=t["default"]},function(e,t,n){"use strict";function o(e,t){t=t.path?t.path.original:t;if(e.path.original!==t){var n={loc:e.path.loc};throw new s["default"](e.path.original+" doesn't match "+t,n)}}function u(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}function a(e){return/^\[.*\]$/.test(e)?e.substr(1,e.length-2):e}function f(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function l(e){return e
.replace(/^\{\{~?\!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function c(e,t,n){n=this.locInfo(n);var r=e?"@":"",i=[],o=0,u="";for(var a=0,f=t.length;a<f;a++){var l=t[a].part,c=t[a].original!==l;r+=(t[a].separator||"")+l;if(!!c||l!==".."&&l!=="."&&l!=="this")i.push(l);else{if(i.length>0)throw new s["default"]("Invalid path: "+r,{loc:n});l===".."&&(o++,u+="../")}}return{type:"PathExpression",data:e,depth:o,parts:i,original:r,loc:n}}function h(e,t,n,r,i,s){var o=r.charAt(3)||r.charAt(2),u=o!=="{"&&o!=="&"
,a=/\*/.test(r);return{type:a?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:u,strip:i,loc:this.locInfo(s)}}function p(e,t,n,r){o(e,n),r=this.locInfo(r);var i={type:"Program",body:t,strip:{},loc:r};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}}function d(e,t,n,r,i,u){r&&r.path&&o(e,r);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var f=undefined,l=undefined;if(n){if(a)throw new s["default"]("Unexpected inverse block on decorator"
,n);n.chain&&(n.program.body[0].closeStrip=r.strip),l=n.strip,f=n.program}return i&&(i=f,f=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:f,openStrip:e.strip,inverseStrip:l,closeStrip:r&&r.strip,loc:this.locInfo(u)}}function v(e,t){if(!t&&e.length){var n=e[0].loc,r=e[e.length-1].loc;n&&r&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:e,strip:{},loc
:t}}function m(e,t,n,r){return o(e,n),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:n&&n.strip,loc:this.locInfo(r)}}var r=n(1)["default"];t.__esModule=!0,t.SourceLocation=u,t.id=a,t.stripFlags=f,t.stripComment=l,t.preparePath=c,t.prepareMustache=h,t.prepareRawBlock=p,t.prepareBlock=d,t.prepareProgram=v,t.preparePartialBlock=m;var i=n(6),s=r(i)},function(e,t,n){"use strict";function l(){}function c(e,t,n){if(e==null||typeof e!="string"&&
e.type!=="Program")throw new s["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var r=n.parse(e,t),i=(new n.Compiler).compile(r,t);return(new n.JavaScriptCompiler).compile(i,t)}function h(e,t,n){function i(){var r=n.parse(e,t),i=(new n.Compiler).compile(r,t),s=(new n.JavaScriptCompiler).compile(i,t,undefined,!0);return n.template(s)}function o(e,t){return r||(r=i()),r.call(this,e,t)}t===undefined&&
(t={});if(e==null||typeof e!="string"&&e.type!=="Program")throw new s["default"]("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var r=undefined;return o._setup=function(e){return r||(r=i()),r._setup(e)},o._child=function(e,t,n,s){return r||(r=i()),r._child(e,t,n,s)},o}function p(e,t){if(e===t)return!0;if(o.isArray(e)&&o.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!p(e[n],t[n]))return!1;return!0
}}function d(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}var r=n(1)["default"];t.__esModule=!0,t.Compiler=l,t.precompile=c,t.compile=h;var i=n(6),s=r(i),o=n(5),u=n(21),a=r(u),f=[].slice;l.prototype={compiler:l,equals:function(t){var n=this.opcodes.length;if(t.opcodes.length!==n)return!1;for(var r=0;r<n;r++){var i=this.opcodes[r],s=t.opcodes[r];if(i.opcode!==s.opcode||!p(i.args,s.args))return!1}n=this.children
.length;for(var r=0;r<n;r++)if(!this.children[r].equals(t.children[r]))return!1;return!0},guid:0,compile:function(t,n){this.sourceNode=[],this.opcodes=[],this.children=[],this.options=n,this.stringParams=n.stringParams,this.trackIds=n.trackIds,n.blockParams=n.blockParams||[];var r=n.knownHelpers;n.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,"if":!0,unless:!0,"with":!0,log:!0,lookup:!0};if(r)for(var i in r)i in r&&(n.knownHelpers[i]=r[i]);return this.accept(t)},compileProgram:function(
t){var n=new this.compiler,r=n.compile(t,this.options),i=this.guid++;return this.usePartial=this.usePartial||r.usePartial,this.children[i]=r,this.useDepths=this.useDepths||r.useDepths,i},accept:function(t){if(!this[t.type])throw new s["default"]("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var n=this[t.type](t);return this.sourceNode.shift(),n},Program:function(t){this.options.blockParams.unshift(t.blockParams);var n=t.body,r=n.length;for(var i=0;i<r;i++)this.accept(n[i]);return this.options
.blockParams.shift(),this.isSimple=r===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){d(t);var n=t.program,r=t.inverse;n=n&&this.compileProgram(n),r=r&&this.compileProgram(r);var i=this.classifySexpr(t);i==="helper"?this.helperSexpr(t,n,r):i==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",n),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,n,r),this.opcode("pushProgram",n),this
.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var n=t.program&&this.compileProgram(t.program),r=this.setupFullMustacheParams(t,n,undefined),i=t.path;this.useDecorators=!0,this.opcode("registerDecorator",r.length,i.original)},PartialStatement:function(t){this.usePartial=!0;var n=t.program;n&&(n=this.compileProgram(t.program));var r=t.params;if(r.length>1)throw new s["default"]("Unsupported number of partial arguments: "+
r.length,t);r.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):r.push({type:"PathExpression",parts:[],depth:0}));var i=t.name.original,o=t.name.type==="SubExpression";o&&this.accept(t.name),this.setupFullMustacheParams(t,n,undefined,!0);var u=t.indent||"";this.options.preventIndent&&u&&(this.opcode("appendContent",u),u=""),this.opcode("invokePartial",o,i,u),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(
t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){d(t);var n=this.classifySexpr(t);n==="simple"?this.simpleSexpr(t):n==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,n,r){var i=t.path,s=i.parts[0],o=n!=null||r!=null;this.opcode("getContext"
,i.depth),this.opcode("pushProgram",n),this.opcode("pushProgram",r),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",s,o)},simpleSexpr:function(t){var n=t.path;n.strict=!0,this.accept(n),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,n,r){var i=this.setupFullMustacheParams(t,n,r),o=t.path,u=o.parts[0];if(this.options.knownHelpers[u])this.opcode("invokeKnownHelper",i.length,u);else{if(this.options.knownHelpersOnly)throw new s["default"]("You specified knownHelpersOnly, but used the unknown helper "+
u,t);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",i.length,o.original,a["default"].helpers.simpleId(o))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var n=t.parts[0],r=a["default"].helpers.scopedId(t),i=!t.depth&&!r&&this.blockParamIndex(n);i?this.opcode("lookupBlockParam",i,t.parts):n?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,r):this.opcode("pushContext"
)},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var n=t.pairs,r=0,i=n.length;this.opcode("pushHash");for(;r<i;r++)this.pushParam(n[r].value);while(r--)this.opcode("assignToHash",n[r].key);this.opcode("popHash")},opcode
:function(t){this.opcodes.push({opcode:t,args:f.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){if(!t)return;this.useDepths=!0},classifySexpr:function(t){var n=a["default"].helpers.simpleId(t.path),r=n&&!!this.blockParamIndex(t.path.parts[0]),i=!r&&a["default"].helpers.helperExpression(t),s=!r&&(i||n);if(s&&!i){var o=t.path.parts[0],u=this.options;u.knownHelpers[o]?i=!0:u.knownHelpersOnly&&(s=!1)}return i?"helper":s?"ambiguous":"simple"},pushParams:function(t){for(var n=0,r=t
.length;n<r;n++)this.pushParam(t[n])},pushParam:function(t){var n=t.value!=null?t.value:t.original||"";if(this.stringParams)n.replace&&(n=n.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",n,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var r=undefined;t.parts&&!a["default"].helpers.scopedId(t)&&!t.depth&&(r=this.blockParamIndex(t.parts[0]));if(r){var i=t.parts.slice(1).join("."
);this.opcode("pushId","BlockParam",r,i)}else n=t.original||n,n.replace&&(n=n.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,n)}this.accept(t)}},setupFullMustacheParams:function(t,n,r,i){var s=t.params;return this.pushParams(s),this.opcode("pushProgram",n),this.opcode("pushProgram",r),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),s},blockParamIndex:function(t){for(var n=0,r=this.options.blockParams.length;n<r;n++){var i=this.options.blockParams
[n],s=i&&o.indexOf(i,t);if(i&&s>=0)return[n,s]}}}},function(e,t,n){"use strict";function l(e){this.value=e}function c(){}function h(e,t,n,r){var i=t.popStack(),s=0,o=n.length;e&&o--;for(;s<o;s++)i=t.nameLookup(i,n[s],r);return e?[t.aliasable("container.strict"),"(",i,", ",t.quotedString(n[s]),")"]:i}var r=n(1)["default"];t.__esModule=!0;var i=n(4),s=n(6),o=r(s),u=n(5),a=n(29),f=r(a);c.prototype={nameLookup:function(t,n){return c.isValidJavaScriptVariableName(n)?[t,".",n]:[t,"[",JSON.stringify(n),"]"
]},depthedLookup:function(t){return[this.aliasable("container.lookup"),'(depths, "',t,'")']},compilerInfo:function(){var t=i.COMPILER_REVISION,n=i.REVISION_CHANGES[t];return[t,n]},appendToBuffer:function(t,n,r){return u.isArray(t)||(t=[t]),t=this.source.wrap(t,n),this.environment.isSimple?["return ",t,";"]:r?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},initializeBuffer:function(){return this.quotedString("")},compile:function(t,n,r,i){this.environment=t,this.options=n,this.stringParams=this.options
.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!r,this.context=r||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,n),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams
;var s=t.opcodes,u=undefined,a=undefined,f=undefined,l=undefined;for(f=0,l=s.length;f<l;f++)u=s[f],this.source.currentLocation=u.loc,a=a||u.loc,this[u.opcode].apply(this,u.args);this.source.currentLocation=a,this.pushSource("");if(this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new o["default"]("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=undefined:(this.useDecorators=!0,this.decorators.prepend("var decorators = container.decorators;\n"
),this.decorators.push("return fn;"),i?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));var c=this.createFunctionContext(i);if(!this.isChild){var h={compiler:this.compilerInfo(),main:c};this.decorators&&(h.main_d=this.decorators,h.useDecorators=!0);var p=
this.context,d=p.programs,v=p.decorators;for(f=0,l=d.length;f<l;f++)d[f]&&(h[f]=d[f],v[f]&&(h[f+"_d"]=v[f],h.useDecorators=!0));return this.environment.usePartial&&(h.usePartial=!0),this.options.data&&(h.useData=!0),this.useDepths&&(h.useDepths=!0),this.useBlockParams&&(h.useBlockParams=!0),this.options.compat&&(h.compat=!0),i?h.compilerOptions=this.options:(h.compiler=JSON.stringify(h.compiler),this.source.currentLocation={start:{line:1,column:0}},h=this.objectLiteral(h),n.srcName?(h=h.toStringWithSourceMap
({file:n.destName}),h.map=h.map&&h.map.toString()):h=h.toString()),h}return c},preamble:function(){this.lastContext=0,this.source=new f["default"](this.options.srcName),this.decorators=new f["default"](this.options.srcName)},createFunctionContext:function(t){var n="",r=this.stackVars.concat(this.registers.list);r.length>0&&(n+=", "+r.join(", "));var i=0;for(var s in this.aliases){var o=this.aliases[s];this.aliases.hasOwnProperty(s)&&o.children&&o.referenceCount>1&&(n+=", alias"+ ++i+"="+s,o.children
[0]="alias"+i)}var u=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&u.push("blockParams"),this.useDepths&&u.push("depths");var a=this.mergeSource(n);return t?(u.push(a),Function.apply(this,u)):this.source.wrap(["function(",u.join(","),") {\n  ",a,"}"])},mergeSource:function(t){var n=this.environment.isSimple,r=!this.forceBuffer,i=undefined,s=undefined,o=undefined,u=undefined;return this.source.each(function(e){e.appendToBuffer?(o?e.prepend("  + "):o=e,u=
e):(o&&(s?o.prepend("buffer += "):i=!0,u.add(";"),o=u=undefined),s=!0,n||(r=!1))}),r?o?(o.prepend("return "),u.add(";")):s||this.source.push('return "";'):(t+=", buffer = "+(i?"":this.initializeBuffer()),o?(o.prepend("return buffer + "),u.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(i?"":";\n")),this.source.merge()},blockValue:function(t){var n=this.aliasable("helpers.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs(t,0,r);var i=this
.popStack();r.splice(1,0,i),this.push(this.source.functionCall(n,"call",r))},ambiguousBlockValue:function(){var t=this.aliasable("helpers.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs("",0,n,!0),this.flushInline();var r=this.topStack();n.splice(1,0,r),this.pushSource(["if (!",this.lastHelper,") { ",r," = ",this.source.functionCall(t,"call",n),"}"])},appendContent:function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=
t},append:function(){if(this.isInline())this.replaceStack(function(e){return[" != null ? ",e,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,undefined,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",undefined,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"
]))},getContext:function(t){this.lastContext=t},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(t,n,r,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[s++])):this.pushContext(),this.resolvePath("context",t,s,n,r)},lookupBlockParam:function(t,n){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",n,1)},lookupData:function(t,n,r){t?this.pushStackLiteral("container.data(data, "+
t+")"):this.pushStackLiteral("data"),this.resolvePath("data",n,0,!0,r)},resolvePath:function(t,n,r,i,s){var o=this;if(this.options.strict||this.options.assumeObjects){this.push(h(this.options.strict&&s,this,n,t));return}var u=n.length;for(;r<u;r++)this.replaceStack(function(e){var s=o.nameLookup(e,n[r],t);return i?[" && ",s]:[" != null ? ",s," : ",e]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam
:function(t,n){this.pushContext(),this.pushString(n),n!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},emptyHash:function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:[],types:[],contexts:[],ids:[]}},popHash:function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral
(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},pushString:function(t){this.pushStackLiteral(this.quotedString(t))},pushLiteral:function(t){this.pushStackLiteral(t)},pushProgram:function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},registerDecorator:function(t,n){var r=this.nameLookup("decorators",n,"decorator"),i=this.setupHelperArgs(n,t);this.decorators
.push(["fn = ",this.decorators.functionCall(r,"",["fn","props","container",i])," || fn;"])},invokeHelper:function(t,n,r){var i=this.popStack(),s=this.setupHelper(t,n),o=r?[s.name," || "]:"",u=["("].concat(o,i);this.options.strict||u.push(" || ",this.aliasable("helpers.helperMissing")),u.push(")"),this.push(this.source.functionCall(u,"call",s.callParams))},invokeKnownHelper:function(t,n){var r=this.setupHelper(t,n);this.push(this.source.functionCall(r.name,"call",r.callParams))},invokeAmbiguous:function(
t,n){this.useRegister("helper");var r=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,n),s=this.lastHelper=this.nameLookup("helpers",t,"helper"),o=["(","(helper = ",s," || ",r,")"];this.options.strict||(o[0]="(helper = ",o.push(" != null ? helper : ",this.aliasable("helpers.helperMissing"))),this.push(["(",o,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},invokePartial
:function(t,n,r){var i=[],s=this.setupParams(n,1,i);t&&(n=this.popStack(),delete s.name),r&&(s.indent=JSON.stringify(r)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",t?i.unshift(n):i.unshift(this.nameLookup("partials",n,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),i.push(s),this.push(this.source.functionCall("container.invokePartial","",i))},assignToHash:function(t){var n=this.popStack(),r=undefined,i=undefined,s=undefined;this.trackIds&&
(s=this.popStack()),this.stringParams&&(i=this.popStack(),r=this.popStack());var o=this.hash;r&&(o.contexts[t]=r),i&&(o.types[t]=i),s&&(o.ids[t]=s),o.values[t]=n},pushId:function(t,n,r){t==="BlockParam"?this.pushStackLiteral("blockParams["+n[0]+"].path["+n[1]+"]"+(r?" + "+JSON.stringify("."+r):"")):t==="PathExpression"?this.pushString(n):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:c,compileChildren:function(t,n){var r=t.children,i=undefined,s=undefined
;for(var o=0,u=r.length;o<u;o++){i=r[o],s=new this.compiler;var a=this.matchExistingProgram(i);a==null?(this.context.programs.push(""),a=this.context.programs.length,i.index=a,i.name="program"+a,this.context.programs[a]=s.compile(i,n,this.context,!this.precompile),this.context.decorators[a]=s.decorators,this.context.environments[a]=i,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams):(i.index=a,i.name="program"+a,this.useDepths=this.useDepths||i.
useDepths,this.useBlockParams=this.useBlockParams||i.useBlockParams)}},matchExistingProgram:function(t){for(var n=0,r=this.context.environments.length;n<r;n++){var i=this.context.environments[n];if(i&&i.equals(t))return n}},programExpression:function(t){var n=this.environment.children[t],r=[n.index,"data",n.blockParams];return(this.useBlockParams||this.useDepths)&&r.push("blockParams"),this.useDepths&&r.push("depths"),"container.program("+r.join(", ")+")"},useRegister:function(t){this.registers[t
]||(this.registers[t]=!0,this.registers.list.push(t))},push:function(t){return t instanceof l||(t=this.source.wrap(t)),this.inlineStack.push(t),t},pushStackLiteral:function(t){this.push(new l(t))},pushSource:function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=undefined),t&&this.source.push(t)},replaceStack:function(t){var n=["("],r=undefined,i=undefined,s=undefined;if(!this.isInline())throw new 
o["default"]("replaceStack on non-inline");var u=this.popStack(!0);if(u instanceof l)r=[u.value],n=["(",r],s=!0;else{i=!0;var a=this.incrStack();n=["((",this.push(a)," = ",u,")"],r=this.topStack()}var f=t.call(this,r);s||this.popStack(),i&&this.stackSlot--,this.push(n.concat(f,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(
){var t=this.inlineStack;this.inlineStack=[];for(var n=0,r=t.length;n<r;n++){var i=t[n];if(i instanceof l)this.compileStack.push(i);else{var s=this.incrStack();this.pushSource([s," = ",i,";"]),this.compileStack.push(s)}}},isInline:function(){return this.inlineStack.length},popStack:function(t){var n=this.isInline(),r=(n?this.inlineStack:this.compileStack).pop();if(!t&&r instanceof l)return r.value;if(!n){if(!this.stackSlot)throw new o["default"]("Invalid stack pop");this.stackSlot--}return r},topStack
:function(){var t=this.isInline()?this.inlineStack:this.compileStack,n=t[t.length-1];return n instanceof l?n.value:n},contextName:function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},quotedString:function(t){return this.source.quotedString(t)},objectLiteral:function(t){return this.source.objectLiteral(t)},aliasable:function(t){var n=this.aliases[t];return n?(n.referenceCount++,n):(n=this.aliases[t]=this.source.wrap(t),n.aliasable=!0,n.referenceCount=1,n)},setupHelper:function(t,n,r){var i=
[],s=this.setupHelperArgs(n,t,i,r),o=this.nameLookup("helpers",n,"helper"),u=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : {}");return{params:i,paramsInit:s,name:o,callParams:[u].concat(i)}},setupParams:function(t,n,r){var i={},s=[],o=[],u=[],a=!r,f=undefined;a&&(r=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var l=this.popStack(),c=this.popStack
();if(c||l)i.fn=c||"container.noop",i.inverse=l||"container.noop";var h=n;while(h--)f=this.popStack(),r[h]=f,this.trackIds&&(u[h]=this.popStack()),this.stringParams&&(o[h]=this.popStack(),s[h]=this.popStack());return a&&(i.args=this.source.generateArray(r)),this.trackIds&&(i.ids=this.source.generateArray(u)),this.stringParams&&(i.types=this.source.generateArray(o),i.contexts=this.source.generateArray(s)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},setupHelperArgs
:function(t,n,r,i){var s=this.setupParams(t,n,r);return s=this.objectLiteral(s),i?(this.useRegister("options"),r.push("options"),["options=",s]):r?(r.push(s),""):s}},function(){var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false"
.split(" "),t=c.RESERVED_WORDS={};for(var n=0,r=e.length;n<r;n++)t[e[n]]=!0}(),c.isValidJavaScriptVariableName=function(e){return!c.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)},t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function u(e,t,n){if(r.isArray(e)){var i=[];for(var s=0,o=e.length;s<o;s++)i.push(t.wrap(e[s],n));return i}return typeof e=="boolean"||typeof e=="number"?e+"":e}function a(e){this.srcFile=e,this.source=[]}t.__esModule=!0;var r=n(5),i=undefined;
try{}catch(o){}i||(i=function(e,t,n,r){this.src="",r&&this.add(r)},i.prototype={add:function(t){r.isArray(t)&&(t=t.join("")),this.src+=t},prepend:function(t){r.isArray(t)&&(t=t.join("")),this.src=t+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function f(){return this.src}}),a.prototype={isEmpty:function(){return!this.source.length},prepend:function(t,n){this.source.unshift(this.wrap(t,n))},push:function(t,n){this.source.push(this.wrap(t,n))},merge:function(){var t=
this.empty();return this.each(function(e){t.add(["  ",e,"\n"])}),t},each:function(t){for(var n=0,r=this.source.length;n<r;n++)t(this.source[n])},empty:function(){var t=this.currentLocation||{start:{}};return new i(t.start.line,t.start.column,this.srcFile)},wrap:function(t){var n=arguments.length<=1||arguments[1]===undefined?this.currentLocation||{start:{}}:arguments[1];return t instanceof i?t:(t=u(t,this,n),new i(n.start.line,n.start.column,this.srcFile,t))},functionCall:function(t,n,r){return r=
this.generateList(r),this.wrap([t,n?"."+n+"(":"(",r,")"])},quotedString:function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(t){var n=[];for(var r in t)if(t.hasOwnProperty(r)){var i=u(t[r],this);i!=="undefined"&&n.push([this.quotedString(r),":",i])}var s=this.generateList(n);return s.prepend("{"),s.add("}"),s},generateList:function(t){var n=this.empty()
;for(var r=0,i=t.length;r<i;r++)r&&n.add(","),n.add(u(t[r],this));return n},generateArray:function(t){var n=this.generateList(t);return n.prepend("["),n.add("]"),n}},t["default"]=a,e.exports=t["default"]}])}),require(["app"]);;define("jquery", [], function () {});define("moment", [], function () {});