-
Notifications
You must be signed in to change notification settings - Fork 0
/
as3shim-bonsai-plugins-0.3.1.min.js
46 lines (46 loc) · 19.6 KB
/
as3shim-bonsai-plugins-0.3.1.min.js
1
2
3
4
5
6
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
45
46
/**
* as3shim is (C) 2012 uxebu
*
* No permission or right to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software is granted.
* All rights reserved to the copyright holders.
*/
(function(){var n,k,r,l,s,o,t,u;n=Function("return this")();k=bonsai;r=function(){var g={1074:"Error #1074",1077:"Error #1077",2006:"Error #2006",2032:"Stream Error. URL: {{url}}",2098:"The loading object is not a .swf file, you cannot request SWF properties from it.",2099:"The loading object is not sufficiently loaded to provide this information.",2012:"Error #2012",2024:"Error #2024",2134:"Error #2134"};return{getById:function(f){return g[f]},renderWithPlaceholders:function(f,a){var c=g[f],i;for(i in a)c=
c.replace("{{"+i+"}}",a[i]);return c}}}();l=function(){function g(){for(var a in f)this[a]=f[a]}var f={align:"left",blockIndent:0,bold:!1,bullet:!1,color:0,font:"Times",indent:0,italic:!1,kerning:!1,leading:0,leftMargin:0,letterSpacing:0,rightMargin:0,size:12,tabStops:[],target:"",underline:!1,url:""};g.defaults=JSON.parse(JSON.stringify(f));return g}();s=function(g){var f=g.Group,a=g.tools,g=function(){f.call(this);this.childrenWrapper=(new f).addTo(this);this.eventArea=(new f).attr({opacity:0,cursor:"pointer"}).addTo(this);
this.stateChildren={normal:new f,hover:new f,active:new f};this.setupConnections();this.childrenWrapper.addChild(this.stateChildren.normal)};g.prototype=a.mixin(Object.create(f.prototype),{childrenWrapper:null,eventArea:null,stateChildren:null,isMouseDown:!1,isMouseOver:!1,type:"Group",addActiveStateChild:function(c,a){this.addStateChild(c,"active",a)},addEventAreaChild:function(c,a){this.eventArea.addChild(c,a)},addHoverStateChild:function(c,a){this.addStateChild(c,"hover",a)},addNormalStateChild:function(c,
a){this.addStateChild(c,"normal",a)},addStateChild:function(c,a,f){this.stateChildren[a].addChild(c,f)},displayState:function(c){var a=this.childrenWrapper.children();a.length&&a[0].stop&&a[0].stop();a=this.stateChildren[c].children();a.length?(this.childrenWrapper.clear().addChild(this.stateChildren[c]),a[0].play&&a[0].play(0)):"normal"===c&&this.childrenWrapper.clear()},onMouseDown:function(){this.isMouseDown=!0;this.displayState("active")},onMouseUp:function(){this.isMouseDown=!1;this.displayState(this.isMouseOver?
"hover":"normal")},onMouseOver:function(){this.isMouseOver=!0;var a="hover";this.isMouseDown&&(a="active");this.displayState(a)},onMouseOut:function(){this.isMouseOver=!1;var a="normal";this.isMouseDown&&(a="hover");this.displayState(a)},setupConnections:function(){this.eventArea.on("mouseover",a.hitch(this,"onMouseOver"));this.eventArea.on("mouseout",a.hitch(this,"onMouseOut"));this.eventArea.on("pointerdown",a.hitch(this,"onMouseDown"));this.eventArea.on("pointerup",a.hitch(this,"onMouseUp"))}});
return g}(k);l=function(g,f){function a(b,d){var h=[],e="__string__"+ +new Date,b=b.replace(/(['"])(?:\\\1|[^\1])*?\1/g,function(b){h.push(b);return e}),b=b.replace(/[^}]+\{/g,function(b){b=b.replace(/^\s+|\s+$/,"");return b.replace(/^|(,)/g,"$1 "+d+" ").replace(/^\s|(\s)\s+/g,"$1")});return b=b.replace(RegExp(e,"g"),function(){return h.shift()})}function c(){return this._owner.raw.styleSheet}function i(b){var d=this._owner,h=d._cssSelectorPrefix;b?(b=a(b,h),d.raw.styleSheet=b,d._style||(d._style=
new w("style"),d.addChild(d._style)),this._defaultStyleSheet||(this._defaultStyleSheet=a(Q,h)),d._style.setAttribute("innerHTML",this._defaultStyleSheet+b)):d.raw.styleSheet=""}function P(){return this._owner.raw.autoSize}function R(b){var d=this._owner;d.raw.autoSize=b||"none";switch(b){case "none":d.setStyles({"float":"",width:"100px",height:"100px"});break;case "left":d.setStyles({"float":"left",width:"auto",height:"auto"});break;case "right":d.setStyles({"float":"right",width:"auto",height:"auto"});
d.text.setStyle("float","right");d.text.setStyle("textAlign","right");break;case "center":d.setStyles({display:"inline-block",width:"auto",height:"auto"}),d.setStyle("textAlign","center")}}function p(){return!!this._owner.raw.editable}function k(b){var b=!!b,d=this._owner;d.raw.editable=b;!0===b?(d.text.setAttribute("contenteditable","true"),d.text.setStyles({webkitUserModify:"read-write",webkitNbspMode:"space",webkitLineBreak:"after-white-space"}),d.addCSSRule(":focus",{outline:"none"})):(d.text.setAttribute("contenteditable",
"false"),d.text.setStyles({webkitNbspMode:"",webkitLineBreak:""}))}function S(){return!!this._owner.raw.html}function v(b){this._owner.raw.html=!!b}function l(){return this._owner.raw.htmlText||""}function T(b){var d=this._owner;!1!==d.attr("html")&&d.innerHTML(b)}function U(){return this._owner.raw.maxChars}function A(b){this._owner.raw.maxChars=b}function V(){return!!this._owner.raw.password}function x(b){var b=!!b,d=this._owner;d.raw.password=b;!0===b&&d.attr("text",Array(d.text.getAttribute("innerHTML").length+
1).join("*"))}function n(){var b;b=""+this._owner.attr("htmlText");var d=b.match(RegExp("<TEXTFORMAT.*"+M+">(.*)"));d&&d[1]&&(b=d[1].split(/<\/TEXTFORMAT>(.+)?/),b=G+b[0]+G+(b[1]||""));return N(b)}function y(b){for(var d=this._owner,h=d.attr("maxChars"),b=(b||"").toString(),b=null===h?b:b.slice(0,h),h="",b=b.split(G),e=0,a=b.length;e<a;e++)0!==b[e].length&&(h+=d.htmlFromText(b[e],e%2));d.innerHTML(h);d.emit("change")}function o(){return!!this._owner.raw.selectable}function D(b){this._owner.raw.selectable=
!!b}function H(){return!!this._owner.raw.background}function I(b){var d=this._owner;d.raw.background=!!b;d.attr("backgroundColor",d.attr("backgroundColor"))}function z(){var b=this._owner;return!0===b.attr("background")?b.raw.backgroundColor:E.backgroundColor}function m(b){var d=this._owner;d.raw.backgroundColor=b;d.attr("background")?d.setStyle("backgroundColor",J(b)):d.setStyle("backgroundColor","rgba(0,0,0,0)")}function h(){return!!this._owner.raw.border}function B(b){var d=this._owner;d.raw.border=
!!b;d.attr("borderColor",d.attr("borderColor"))}function e(){var b=this._owner;return!0===b.attr("border")?b.raw.borderColor:E.borderColor}function C(b){var d=this._owner;d.raw.borderColor=b;d.attr("border")?d.setStyles({borderWidth:"1px",borderColor:J(b),borderStyle:"solid"}):d.setStyles({borderColor:"",borderWidth:"0px"})}function Y(){return!!this._owner.raw.wordWrap}function Z(b){var b=!!b,d=this._owner;d.raw.wordWrap=b;!0===b?d.text.setStyles({whiteSpace:"normal",display:""}):d.text.setStyles({whiteSpace:"nowrap",
display:"inline-block"})}function $(){return!!this._owner.raw.multiline}function r(b){var d=this._owner;d.raw.multiline=!!b;d.attr("wordWrap",d.attr("wordWrap"))}function s(){return this._owner.raw.width}function t(b){var d=this._owner;d.raw.width=+b;"none"===d.attr("autoSize")&&d.setStyle("width",(b|0)+"px")}function u(){var b=this._owner,d=b.attr("autoSize");if("undefined"===typeof d||"none"===d)return b.raw.height;d=b.attr("text").split(/\n|\r/).length;return b.text.attr("fontLineHeight")*d}function aa(b){var d=
this._owner;d.raw.height=b;"none"===d.attr("autoSize")&&d.setStyle("height",(b|0)+"px")}function ba(){return this._owner.raw.align}function ca(b){var d=this._owner;d.raw.align=b;d.parent.setStyle("textAlign",b||"")}function da(){return this._owner.raw.bold}function ea(b){var b=!!b,d=this._owner;d.raw.bold=b;d.setStyle("fontWeight",b?"700":"normal")}function fa(){return this._owner.raw.color}function ga(b){var d=this._owner;d.raw.color=b;d.setStyle("color",J(b))}function ha(){return this._owner.raw.font}
function ia(b,d){var h=this._owner;F.isArray(b)?(d=b[1]+", "+K(b[0]),h.raw.font=b[0]):(d=K(b),h.raw.font=b);h.setStyle("fontFamily",d)}function ja(){return this._owner.raw.indent}function ka(b){var d=this._owner;d.raw.indent=b;d.setStyle("textIndent",b||"")}function la(){return this._owner.raw.italic}function ma(b){var b=!!b,d=this._owner;d.raw.italic=b;d.setStyle("fontStyle",b?"italic":"")}function na(){return this._owner.raw.leftMargin}function oa(b){var d=this._owner;d.raw.leftMargin=b;d.setStyle("paddingLeft",
b+"px")}function pa(){return this._owner.raw.rightMargin}function qa(b){var d=this._owner;d.raw.rightMargin=b;d.setStyle("paddingRight",b+"px")}function ra(){return this._owner.raw.letterSpacing}function sa(b){var d=this._owner;d.raw.letterSpacing=b;d.setStyle("letterSpacing",b+"px")}function ta(){return this._owner.raw.size}function ua(b){var b=+b,d=this._owner;d.raw.size=b;d.setStyle("fontSize",b+"px");this.fontLineHeight+=0}function va(){return this._owner.raw.underline}function wa(b){var b=!!b,
d=this._owner;d.raw.underline=b;d.setStyle("textDecoration",b?"underline":"")}function xa(){return this._owner.raw.fontLineHeight||0}function ya(b){var d=this._owner,h=d.attr("size"),b=h>b?h:b;d.raw.fontLineHeight=b;b+=d.attr("leading");d.parent.setStyle("line-height",b+"px")}function za(){return this._owner.raw.leading}function Aa(b){var d=this._owner;d.raw.leading=b;this.fontLineHeight+=0;d.parent.setStyle("margin-top",-b/2+"px")}function q(){w.call(this,"div",{},{overflow:"hidden",boxSizing:"border-box",
WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",MsBoxSizing:"border-box"});this._domID="bs-textfield-"+this.id;this._domInnerClass=this._domID+"-innerText";this._cssSelectorPrefix="#"+this._domID+" ."+this._domInnerClass;this.setAttribute("id",this._domID);this.innerBox=(new w("div",{"class":this._domID+"-innerBox"},{width:"100%",height:"100%",display:"inline-block",boxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",MsBoxSizing:"border-box",padding:"2px"})).addTo(this);
this.raw={};Object.defineProperties(this._attributes,{wordWrap:j(Y,Z,!0),multiline:j($,r,!0),autoSize:j(P,R,!0),background:j(H,I,!0),backgroundColor:j(z,m,!0),border:j(h,B,!0),borderColor:j(e,C,!0),html:j(S,v,!0),htmlText:j(l,T,!0),maxChars:j(U,A,!0),password:j(V,x,!0),text:j(n,y,!0),selectable:j(o,D,!0),editable:j(p,k,!0),width:j(s,t,!0),height:j(u,aa,!0),styleSheet:j(c,i,!0)});this.css=(new w("style")).addTo(this.innerBox);this.css.raw={};this.addCSSRule("a",{color:"inherit","text-decoration":"none"});
this.addCSSRule("p",{padding:0,margin:0,"word-wrap":"normal"});this.text=(new w("span",{"class":this._domInnerClass})).addTo(this.innerBox);this.text.raw={};Object.defineProperties(this.text._attributes,{align:j(ba,ca,!0),bold:j(da,ea,!0),color:j(fa,ga,!0),font:j(ha,ia,!0),indent:j(ja,ka,!0),italic:j(la,ma,!0),leftMargin:j(na,oa,!0),rightMargin:j(pa,qa,!0),letterSpacing:j(ra,sa,!0),size:j(ta,ua,!0),underline:j(va,wa,!0),fontLineHeight:j(xa,ya,!0),leading:j(za,Aa,!0)});for(var b in E)this.attr(b,E[b]);
b=new f;for(var d in b)this.text.attr(d,b[d]);this.text.raw.defaults=f.defaults}var O,N,K,w=g.DOMElement,F=g.tools,j=F.descriptorAccessor,Ba=Array.prototype.slice,Q="a{color:#000;text-decoration:none;}",E={autoSize:"none",background:!1,backgroundColor:16777215,border:!1,borderColor:0,html:!0,htmlText:"",maxChars:null,text:"",selectable:!1,password:!1,wordWrap:!1,editable:!1,width:100,height:100,styleSheet:""},M='bs-swf="true"',G="\ufeff\ufeff",J=q.rgba=function(b){if("undefined"===typeof b)return"rgba(0,0,0,0)";
b=/^#/.test(b)?parseInt(b.slice(1),16):b<<8|255;return g.color(b).rgba()},L=q.prototype=F.beget(w.prototype);L.addCSSRule=function(b,d){var h=this.css,e=h.raw,a=Ba.call(arguments,0,-1),d=arguments[a.length],b=a.join("\x00");e.hasOwnProperty(b)?F.mixin(e[b],d):e[b]=d;var B,c,C="",i=this._cssSelectorPrefix;for(b in e){a=e[b];c="";for(B in a)c+=B+": "+a[B]+"; ";C+=i+" "+b.split("\x00").join(", "+i+" ")+" { "+c+"}\n"}h.setAttribute("innerHTML",C);return this};L.innerHTML=function(b){this.text.setAttribute("innerHTML",
b);this.raw.htmlText=b;this.emit("change");return this};L.htmlFromText=function(b,d){this.addCSSRule("font",{"font-size":"inherit",color:"inherit","font-family":"inherit"});return q.htmlTextFormatWrapper("<P><FONT>"+O(b)+"</FONT></P>",d)};K=q.mapFontFamily=function(){var b={_sans:"sans-serif",_serif:"serif",_typewriter:"monospace"};return function(d){return d in b?b[d]:d}}();O=q.escapeHtml=function(b){return(b+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\n|\r/g,"<br/>")};
N=q.unescapeHtml=function(b){return b.replace(/&/g,"&").replace(/ /g," ").replace(/<br\/>/g,"\n").replace(/<(?:.|\n)*?>/gm,"").replace(/\</g,"<").replace(/\>/g,">")};q.htmlTextFormatWrapper=function(b,d){return"<TEXTFORMAT"+(d?" "+M:"")+">"+b+"</TEXTFORMAT>"};return q}(k,l);o=function(g){var f=g.stage.options,f=f.as3shimConfig=f.as3shimConfig||{},f={debug:{logCalls:!1,logUnspyables:!1},warnAbout:{missingImplementation:f.showWarnings||!1,notAvailableApis:!1},stats:{warnAbout:{missingClass:f.showWarnings||
!1}}};return g.stage.as3shimConfig=f}(k);t=function(g){return{getLoadableFileUrl:function(f){var a="",c=g.stage.options;"flashConfig"in c&&"__rootMovie__"in c.flashConfig&&(a=g.stage.options.flashConfig.__rootMovie__.loadableFileMap[f]);return a||f}}}(k);u=function(g){var f={};return{getFileAndLine:function(){var a=Error().stack,c=a&&a.split("\n");if(c)for(var i=0;i<c.length;i++){var f=c[i];if(/movie\.js:\d+:\d+/.test(f))return f}return"... oh dear, movie.js not found in trace. Complete trace:\n"+
a},createFunctionSpy:function(a,c,i){var f=this;return function(a,c,i){return function(g){f.logFunctionCall(c,i,[].slice.call(arguments,0));return a.apply(this,arguments)}}(a[c],i||""+a,c)},isSpyableOwnFunction:function(a,c){return a.hasOwnProperty!=Object.hasOwnProperty||!a.hasOwnProperty(c)||"toString"==c||a.__lookupGetter__(c)?!1:"function"==typeof a[c]},isSpyableOwnAccessor:function(a,c){return!!Object.getOwnPropertyDescriptor(a,c)&&!!a.__lookupGetter__(c)},_logFunctionCall:function(a,c,i){i=
i.map(function(a){return"function"==typeof a?"Function with "+(""+a).split("\n").length+" lines":"object"==typeof a?""+a:a});i=JSON.stringify(i);i=i.substring(1,i.length-1);console.log("SHIM call:",a+"."+c+"("+i+")")},_logEvents:function(a,c,i){console.log("SHIMS: 1000 `dispatchEvent` in "+i+"s of",c,a)},logFunctionCall:function(a,c,i){"dispatchEvent"==c?(c=i[0],f[c]?f[c].count++:f[c]={count:1,lastReset:+new Date},1E3<f[c].count&&(i=this._getElapsedTime(f[c].lastReset),this._logEvents(a,c,i),f[c]=
{count:1,lastReset:+new Date})):this._logFunctionCall(a,c,i)},_getElapsedTime:function(a){return((+new Date-a)/1E3).toFixed(2)},logGetterCall:function(a,c,i){console.log("SHIM call: GET",a,c,""+i)},logSetterCall:function(a,c,i,f){console.log("SHIM call: SET",a,c,""+i,""+f)},spyOnFunction:function(a,c,i){a[c]=this.createFunctionSpy(a,c,i)},spyOnOwnAccessor:function(a,c,i){var f=Object.getOwnPropertyDescriptor(a,c),k=this;if(f.configurable){var p=f.get;f.get=function(){var a=p.apply(this);k.logGetterCall(i,
c,a);return a};var l=f.set;f.set=function(a){k.logSetterCall(i,c,p.apply(this),a);l.apply(this,[a])}}else g.debug.logUnspyables&&console.log('Can not spy on accessor "'+i+"."+c+'", because configurable=false.');Object.defineProperty(a,c,f)},spyOnClass:function(a,c){this.spyOnObject(a,c);this.spyOnObject(a.prototype,c+".prototype")},spyOnObject:function(a,c){for(var f in a)this.isSpyableOwnFunction(a,f)?this.spyOnFunction(a,f,c):this.isSpyableOwnAccessor(a,f)&&this.spyOnOwnAccessor(a,f,c)},spyOnAllClassInNamespace:function(a,
c){for(var f in a){var g=a[f],k=g.prototype.__isNamespace__;g.__isNamespace__?this.spyOnAllClassInNamespace(g,c+"."+f):g.__isClass__&&!k&&this.spyOnClass(g,c+"."+g)}}}}(o);k=function(g,f,a,c,i,k){function l(h){for(var a,e=[1,10,100],c=0,f=e.length;c<f;c++)if(a=H(h*e[c])%1,1.0E-5>a||0.99999<a)return I(h*e[c])/e[c];return h}function p(){}function n(h,a,e){e||(e={});v(h,a,m.mixin({get:p,set:p},e))}function o(h,a,e){3>arguments.length&&(e=a);v(h,t(a),{configurable:!1,enumerable:!1,writable:!1,value:e})}
function v(h,a,e){e||(e={});var c={configurable:!0,enumerable:!0,writable:!0};"configurable"in e&&(c.configurable=e.configurable);"enumerable"in e&&(c.enumerable=e.enumerable);e.get||e.set?("get"in e&&(c.get=e.get),"set"in e&&(c.set=e.set),delete c.value,delete c.writable):(delete c.get,delete c.set,c.value=e.value,"writable"in e&&(c.writable=e.writable));Object.defineProperty(h,a,c)}function r(h){return"__"+h+"__"}function s(h,a,e){v(h,r(a),{enumerable:!1,value:e})}function t(a){y.lastIndex=0;return(a.match(y)||
[]).join("_").toUpperCase()}var A=g.tools,u=i.document,x={},W={}.hasOwnProperty,y=/[a-z]+[a-z\d]*(?!\d[A-Z])|[A-Z][a-z]+|[A-Z\d]+(?![a-z])/g,X=[].slice,D=Math.PI,H=Math.abs,I=Math.round,z="bonsai"+(g.version+Math.random()).replace(/\D/g,""),m=A.mixin(A.beget(A),{addConstantsToClass:function(a){m.forEach(a,function(a){var h=a.shift();m.forEach(a,function(a){"string"===typeof a&&(a=[a]);a.unshift(h);o.apply(null,a)})})},createDummyFunction:function(h){var c="void";if(h===Object(h))var e=h,h=e.name,
c=e.returnType||c;var g="Missing implementation for"+(h?" "+h:"")+", is dummy currently.",k=function(){x[h]||(x[h]=!0,f.warnAbout.missingImplementation&&console.warn(g,"called by "+a.getFileAndLine()));if(e&&"returnValue"in e)return e.returnValue;var k={array:[],"boolean":!1,"int":0,number:0,string:"","null":null,"void":void 0},l=c.toLowerCase();return l in k?k[l]:Function("exposes","try { return new exposes."+c+"} catch (e) {}")(i.exports.asGlobal)};s(k,"isDummy",!0);return k},createUnimplementedFunction:function(a){var c=
"Unimplemented: "+(a?" "+a:"");return function(){if(!x[a])return x[a]=!0,f.warnAbout.missingImplementation&&console.warn(c),new Boolean(!1)}},connectOnDemand:function(a,c,e,f){"onDemandConnects"in c||(c.onDemandConnects={});c.onDemandConnects[a]={connectFunc:e,disconnectFunc:f,connected:!1}},connectEventListener:function(a,c){var e=c.onDemandConnects;e&&a in e&&!e[a].connected&&(e[a].connectFunc(),e[a].connected=!0)},degToRad:function(a){return l(a*(D/180))},detachNode:function(a){return a.parentNode.removeChild(a)},
disconnectEventListener:function(a,c){var e=c.onDemandConnects;e&&a in e&&(e[a].disconnectFunc(),e[a].connected=!1)},dispatchEventWithoutBubbling:function(a,c){a[z].eventDispatcher.emit(c.type,c)},escapeAttributeValue:function(a){return(a+"").replace(/&/g,"&").replace(/</g,"<").replace(/"/g,""").replace(/\n/g,"
").replace(/\r/g,"
").replace(/\t/g,"	")},every:function(a,c,e){var f=-1,g=a.length;for(e&&(c=m.hitch(e,c));++f<g;)if(!c(a[f],f,a))return!1;return!0},expando:z,fixRoundingError:l,
flashToBonsaiBlur:function(a,c){return(a+c)/7.5},forEachSnapshot:function(a,c){for(var e=0,f=(a||{}).snapshotLength;e<f&&!1!==c(a.snapshotItem(e),e,a);e++);return a},getClassNameByClass:function(a,c){var e=a.displayName||a.name;a.__qualifiedName__&&(e=a.__qualifiedName__.split(".").pop());return e||c},getDescriptor:function(a,c){return Object.getOwnPropertyDescriptor(a,c)},getFlashConfig:function(){return k},getPrivateObjectOf:function(a,c){var e=m.expando;e in a||(a[e]={attrs:{}});e=a[e];if(c)for(var f in c)f in
e||(e[f]=c[f]);return e},hasKey:function(a,c){return null!=a&&W.call(a,c)},noop:p,radToDeg:function(a){return l(a*(180/D))},createAndRunMovieFromClass:function(a){var c=(new g.Movie).addTo(g.stage),e=Object.create(a.prototype),f=m.getPrivateObjectOf(e);f.raw=c;f.isRootMovie=!0;a.call(e);return e},setAccessor:n,setConst:o,setConsts:function(a,c){m.forEach(c,function(c){m.setConst(a,c[0],c[1])})},setDescriptor:v,setImmutable:function(a,c,e){var f={configurable:!1,writable:!1};3>arguments.length?("get"in
c?f.get=c.get:"value"in c&&(f.value=c.value),c=c.name):f.value=e;v(a,c,f)},setPseudoPrivate:s,setReadOnly:function(a,f,e){n(a,f,{get:e,set:function(){throw new ReferenceError(c.getById(1074));}})},some:function(a,c,e){var f=-1,g=a.length;for(e&&(c=m.hitch(e,c));++f<g;)if(c(a[f],f,a))return!0;return!1},toArray:function(a,c,e){return X.call(a,c||0,e||a.length)},toCamelCase:function(a){y.lastIndex=0;return a.replace(y,function(a,c){return c?a.charAt().toUpperCase()+a.slice(1):a.toLowerCase()})},toConstCase:t,
toPseudoPrivateName:r,toRGBA:function(a){return 256*a+255},timestampAs3Started:+new Date,xQuery:function(a,c,e){var f=u;c||(c=u);c&&(c[z]&&(c=c[z].raw),f=c.ownerDocument||c);return f.evaluate(a,c,null,null==e?6:e,null)}});return m}(k,o,u,r,n,t);(function(g,f,a,c){g=g.exports;g.tools=f;g.TextField=a;g.Button=c;return g})(n,k,l,s)})();