//>>built
define("dojox/secure/sandbox",["dijit","dojo","dojox","dojo/require!dojox/secure/DOM,dojox/secure/capability,dojo/NodeList-fx,dojo/_base/url"],function(p,d,h){d.provide("dojox.secure.sandbox");d.require("dojox.secure.DOM");d.require("dojox.secure.capability");d.require("dojo.NodeList-fx");d.require("dojo._base.url");(function(){if({}.__proto__){var e=function(f){var c=Array.prototype[f];c&&!c.fixed&&((Array.prototype[f]=function(){if(this==window)throw new TypeError("Called with wrong this");return c.apply(this,
arguments)}).fixed=!0)};e("concat");e("reverse");e("sort");e("slice");e("forEach");e("filter");e("reduce");e("reduceRight");e("every");e("map");e("some")}var k=function(){return d.xhrGet.apply(d,arguments)};h.secure.sandbox=function(f){var c=h.secure.DOM(f);f=c(f);var m=h.secure._safeDojoFunctions(f,c),l=[],a="isNaN isFinite parseInt parseFloat escape unescape encodeURI encodeURIComponent decodeURI decodeURIComponent alert confirm prompt Error EvalError RangeError ReferenceError SyntaxError TypeError Date RegExp Number Object Array String Math setTimeout setInterval clearTimeout clearInterval dojo get set forEach load evaluate".split(" "),
g;for(g in m)a.push(g),l.push("var "+g+"\x3ddojo."+g);eval(l.join(";"));c.load=function(b){if(b.match(/^[\w\s]*:/))throw Error("Access denied to cross-site requests");return k({url:new m._Url(c.rootUrl,b)+"",secure:!0})};c.evaluate=function(b){h.secure.capability.validate(b,a,{document:1,element:1});b.match(/^\s*[\[\{]/)?eval("("+b+")"):eval(b)};return{loadJS:function(b){c.rootUrl=b;return k({url:b,secure:!0}).addCallback(function(n){c.evaluate(n)})},loadHTML:function(b){c.rootUrl=b;return k({url:b,
secure:!0}).addCallback(function(n){f.innerHTML=n})},evaluate:function(b){return c.evaluate(b)}}}})();h.secure._safeDojoFunctions=function(e,k){var f="mixin require isString isArray isFunction isObject isArrayLike isAlien hitch delegate partial trim disconnect subscribe unsubscribe Deferred toJson style attr".split(" "),c=h.secure.unwrap;d.NodeList.prototype.addContent.safetyCheck=function(a){k.safeHTML(a)};d.NodeList.prototype.style.safetyCheck=function(a,g){if("behavior"==a)throw Error("Can not set behavior");
k.safeCSS(g)};d.NodeList.prototype.attr.safetyCheck=function(a,g){if(g&&("src"==a||"href"==a||"style"==a))throw Error("Illegal to set "+a);};for(var m={query:function(a,g){return k(d.query(a,c(g||e)))},connect:function(a,g){var b=a;arguments[0]=c(a);if(b!=arguments[0]&&"on"!=g.substring(0,2))throw Error("Invalid event name for element");return d.connect.apply(d,arguments)},body:function(){return e},byId:function(a){return e.ownerDocument.getElementById(a)},fromJson:function(a){h.secure.capability.validate(a,
[],{});return d.fromJson(a)}},l=0;l<f.length;l++)m[f[l]]=d[f[l]];return m}});