12345678910111213141516171819 |
- //>>built
- require({cache:{"dijit/form/Textarea":function(){define("dijit/form/Textarea",["dojo/_base/declare","dojo/dom-style","./_ExpandingTextAreaMixin","./SimpleTextarea"],function(d,p,r,m){return d("dijit.form.Textarea",[m,r],{baseClass:"dijitTextBox dijitTextArea dijitExpandingTextArea",cols:"",buildRendering:function(){this.inherited(arguments);p.set(this.textbox,{overflowY:"hidden",overflowX:"auto",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"})}})})},
- "dijit/form/_ExpandingTextAreaMixin":function(){define("dijit/form/_ExpandingTextAreaMixin",["dojo/_base/declare","dojo/dom-construct","dojo/_base/lang","dojo/_base/window"],function(d,p,r,m){var s;return d("dijit.form._ExpandingTextAreaMixin",null,{_setValueAttr:function(){this.inherited(arguments);this.resize()},postCreate:function(){this.inherited(arguments);var h=this.textbox;if(void 0==s){var a=p.create("textarea",{rows:"5",cols:"20",value:" ",style:{zoom:1,fontSize:"12px",height:"96px",overflow:"hidden",
- visibility:"hidden",position:"absolute",border:"5px solid white",margin:"0",padding:"0",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"}},m.body(),"last");s=a.scrollHeight>=a.clientHeight;m.body().removeChild(a)}this.connect(h,"onresize","_resizeLater");this.connect(h,"onfocus","_resizeLater");h.style.overflowY="hidden"},startup:function(){this.inherited(arguments);this._resizeLater()},_onInput:function(h){this.inherited(arguments);this.resize()},
- _estimateHeight:function(){var h=this.textbox;h.rows=(h.value.match(/\n/g)||[]).length+1},_resizeLater:function(){this.defer("resize")},resize:function(){function h(){var h=!1;""===a.value&&(a.value=" ",h=!0);var l=a.scrollHeight;h&&(a.value="");return l}var a=this.textbox;"hidden"==a.style.overflowY&&(a.scrollTop=0);if(!this.busyResizing){this.busyResizing=!0;if(h()||a.offsetHeight){var l=h()+Math.max(a.offsetHeight-a.clientHeight,0),t=l+"px";t!=a.style.height&&(a.style.height=t,a.rows=1);if(s){var o=
- h(),d=a.style.minHeight,m=4,n=a.scrollTop;a.style.minHeight=t;for(a.style.height="auto";0<l;){a.style.minHeight=Math.max(l-m,4)+"px";t=h();o-=t;l-=o;if(o<m)break;o=t;m<<=1}a.style.height=l+"px";a.style.minHeight=d;a.scrollTop=n}a.style.overflowY=h()>a.clientHeight?"auto":"hidden";"hidden"==a.style.overflowY&&(a.scrollTop=0)}else this._estimateHeight();this.busyResizing=!1}}})})},"dijit/form/SimpleTextarea":function(){define("dijit/form/SimpleTextarea",["dojo/_base/declare","dojo/dom-class","dojo/_base/sniff",
- "dojo/_base/window","./TextBox"],function(d,p,r,m,s){return d("dijit.form.SimpleTextarea",s,{baseClass:"dijitTextBox dijitTextArea",rows:"3",cols:"20",templateString:"<textarea ${!nameAttrSetting} data-dojo-attach-point='focusNode,containerNode,textbox' autocomplete='off'></textarea>",postMixInProperties:function(){!this.value&&this.srcNodeRef&&(this.value=this.srcNodeRef.value);this.inherited(arguments)},buildRendering:function(){this.inherited(arguments);r("ie")&&this.cols&&p.add(this.textbox,"dijitTextAreaCols")},
- filter:function(h){h&&(h=h.replace(/\r/g,""));return this.inherited(arguments)},_onInput:function(h){if(this.maxLength){var a=parseInt(this.maxLength),l=this.textbox.value.replace(/\r/g,""),a=l.length-a;if(0<a){var d=this.textbox;if(d.selectionStart){var o=d.selectionStart,p=0;r("opera")&&(p=(this.textbox.value.substring(0,o).match(/\r/g)||[]).length);this.textbox.value=l.substring(0,o-a-p)+l.substring(o-p);d.setSelectionRange(o-a,o-a)}else m.doc.selection&&(d.focus(),l=m.doc.selection.createRange(),
- l.moveStart("character",-a),l.text="",l.select())}}this.inherited(arguments)}})})},"dojox/xml/DomParser":function(){define("dojox/xml/DomParser",["dojo/_base/kernel","dojo/_base/array"],function(d){d.getObject("xml",!0,dojox);dojox.xml.DomParser=new function(){function p(b){function e(b,a,g){d.forEach(b.childNodes,function(b){b.nodeType==n.ELEMENT&&("*"==a?g.push(b):b.nodeName==a&&g.push(b),e(b,a,g))})}var a=[];e(this,b,a);return a}function r(b,e){function a(b,e,c,h){d.forEach(b.childNodes,function(b){b.nodeType==
- n.ELEMENT&&("*"==e&&b.ownerDocument._nsPaths[c]==b.namespace?h.push(b):b.localName==e&&b.ownerDocument._nsPaths[c]==b.namespace&&h.push(b),a(b,e,c,h))})}e||(e=u);var c=[];a(this,b,e,c);return c}function m(b){var e=[];d.forEach(this.childNodes,function(a){a.nodeType==n.ELEMENT&&("*"==b?e.push(a):a.nodeName==b&&e.push(a))});return e}function s(b,a){var g=[];d.forEach(this.childNodes,function(c){c.nodeType==n.ELEMENT&&("*"==b&&c.ownerDocument._nsPaths[a]==c.namespace?g.push(c):c.localName==b&&c.ownerDocument._nsPaths[a]==
- c.namespace&&g.push(c))});return g}function h(b){return{nodeType:n.TEXT,nodeName:"#text",nodeValue:b.replace(y," ").replace(z,">").replace(A,"<").replace(B,"'").replace(C,'"').replace(D,"&")}}function a(b){for(var a=0;a<this.attributes.length;a++)if(this.attributes[a].nodeName==b)return this.attributes[a].nodeValue;return null}function l(b,a){for(var g=0;g<this.attributes.length;g++)if(this.ownerDocument._nsPaths[a]==this.attributes[g].namespace&&this.attributes[g].localName==b)return this.attributes[g].nodeValue;
- return null}function t(b,a){for(var g=null,c=0;c<this.attributes.length;c++)if(this.attributes[c].nodeName==b){g=this.attributes[c].nodeValue;this.attributes[c].nodeValue=a;break}"id"==b&&(null!=g&&this.ownerDocument._remove(g),this.ownerDocument._add(this))}function o(b,a,g){for(var c=0;c<this.attributes.length;c++)if(this.ownerDocument._nsPaths[g]==this.attributes[c].namespace&&this.attributes[c].localName==b){this.attributes[c].nodeValue=a;break}}function G(){var b=this.parentNode;if(b)for(var a=
- 0;a<b.childNodes.length;a++)if(b.childNodes[a]==this&&0<a)return b.childNodes[a-1];return null}function H(){var a=this.parentNode;if(a)for(var e=0;e<a.childNodes.length;e++)if(a.childNodes[e]==this&&e+1<a.childNodes.length)return a.childNodes[e+1];return null}var n={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9},E=/<([^>\/\s+]*)([^>]*)>([^<]*)/g,F=/([^=]*)=(("([^"]*)")|('([^']*)'))/g,w=/<!ENTITY\s+([^"]*)\s+"([^"]*)">/g,I=/<!\[CDATA\[([\u0001-\uFFFF]*?)\]\]>/g,
- J=/<\!--([\u0001-\uFFFF]*?)--\>/g,v=/^\s+|\s+$/g,y=/\s+/g,z=/\>/g,A=/\</g,C=/\"/g,B=/\'/g,D=/\&/g,u="_def_";this.parse=function(b){var e=new function(){var a={};this.nodeType=n.DOCUMENT;this.nodeName="#document";this.namespaces={};this._nsPaths={};this.childNodes=[];this.documentElement=null;this._add=function(b){"undefined"!=typeof b.id&&(a[b.id]=b)};this._remove=function(b){a[b]&&delete a[b]};this.byId=this.getElementById=function(b){return a[b]};this.byName=this.getElementsByTagName=
- p;this.byNameNS=this.getElementsByTagNameNS=r;this.childrenByName=m;this.childrenByNameNS=s};if(null==b||0==b.length)return e;if(0<b.indexOf("<!ENTITY")){var g,c=[];if(w.test(b)){for(w.lastIndex=0;null!=(g=w.exec(b));)c.push({entity:"&"+g[1].replace(v,"")+";",expression:g[2]});for(var f=0;f<c.length;f++)b=b.replace(RegExp(c[f].entity,"g"),c[f].expression)}}for(c=[];null!=(g=I.exec(b));)c.push(g[1]);for(f=0;f<c.length;f++)b=b.replace(c[f],f);for(g=[];null!=(f=J.exec(b));)g.push(f[1]);for(f=0;f<g.length;f++)b=
- b.replace(g[f],f);for(var j,f=e;null!=(j=E.exec(b));)if("/"==j[2].charAt(0)&&1<j[2].replace(v,"").length){f.parentNode&&(f=f.parentNode);var k=(j[3]||"").replace(v,"");0<k.length&&f.childNodes.push(h(k))}else if(0<j[1].length)if("?"==j[1].charAt(0))k=j[1].substr(1),j=j[2].substr(0,j[2].length-2),f.childNodes.push({nodeType:n.PROCESSING_INSTRUCTION,nodeName:k,nodeValue:j});else if("!"==j[1].charAt(0))if(0==j[1].indexOf("![CDATA[")){var d=parseInt(j[1].replace("![CDATA[","").replace("]]",""));f.childNodes.push({nodeType:n.CDATA_SECTION,
- nodeName:"#cdata-section",nodeValue:c[d]})}else"!--"==j[1].substr(0,3)&&(d=parseInt(j[1].replace("!--","").replace("--","")),f.childNodes.push({nodeType:n.COMMENT,nodeName:"#comment",nodeValue:g[d]}));else{var k=j[1].replace(v,""),i={nodeType:n.ELEMENT,nodeName:k,localName:k,namespace:u,ownerDocument:e,attributes:[],parentNode:null,childNodes:[]};if(-1<k.indexOf(":")){var q=k.split(":");i.namespace=q[0];i.localName=q[1]}i.byName=i.getElementsByTagName=p;i.byNameNS=i.getElementsByTagNameNS=r;i.childrenByName=
- m;i.childrenByNameNS=s;i.getAttribute=a;i.getAttributeNS=l;i.setAttribute=t;i.setAttributeNS=o;i.previous=i.previousSibling=G;for(i.next=i.nextSibling=H;null!=(d=F.exec(j[2]));)if(0<d.length)if(k=d[1].replace(v,""),d=(d[4]||d[6]||"").replace(y," ").replace(z,">").replace(A,"<").replace(B,"'").replace(C,'"').replace(D,"&"),0==k.indexOf("xmlns"))0<k.indexOf(":")?(q=k.split(":"),e.namespaces[q[1]]=d,e._nsPaths[d]=q[1]):(e.namespaces[u]=d,e._nsPaths[d]=u);else{var x=k,q=u;0<k.indexOf(":")&&(q=k.split(":"),
- x=q[1],q=q[0]);i.attributes.push({nodeType:n.ATTRIBUTE,nodeName:k,localName:x,namespace:q,nodeValue:d});"id"==x&&(i.id=d)}e._add(i);f&&(f.childNodes.push(i),i.parentNode=f,"/"!=j[2].charAt(j[2].length-1)&&(f=i));k=j[3];0<k.length&&f.childNodes.push(h(k))}for(f=0;f<e.childNodes.length;f++)if(b=e.childNodes[f],b.nodeType==n.ELEMENT){e.documentElement=b;break}return e}};return dojox.xml.DomParser})}}});define("dojo/buxViewer",[],1);
|