This file is indexed.

/usr/share/javascript/dojo/_base/declare.js is in libjs-dojo-core 1.6.1+dfsg-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
/*
	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/


if(!dojo._hasResource["dojo._base.declare"]){
dojo._hasResource["dojo._base.declare"]=true;
dojo.provide("dojo._base.declare");
dojo.require("dojo._base.lang");
dojo.require("dojo._base.array");
(function(){
var d=dojo,_1=d._mixin,op=Object.prototype,_2=op.toString,_3=new Function(),_4=0,_5="constructor";
function _6(_7,_8){
throw new Error("declare"+(_8?" "+_8:"")+": "+_7);
};
function _9(_a,_b){
var _c=[],_d=[{cls:0,refs:[]}],_e={},_f=1,l=_a.length,i=0,j,lin,_10,top,_11,rec,_12,_13;
for(;i<l;++i){
_10=_a[i];
if(!_10){
_6("mixin #"+i+" is unknown. Did you use dojo.require to pull it in?",_b);
}else{
if(_2.call(_10)!="[object Function]"){
_6("mixin #"+i+" is not a callable constructor.",_b);
}
}
lin=_10._meta?_10._meta.bases:[_10];
top=0;
for(j=lin.length-1;j>=0;--j){
_11=lin[j].prototype;
if(!_11.hasOwnProperty("declaredClass")){
_11.declaredClass="uniqName_"+(_4++);
}
_12=_11.declaredClass;
if(!_e.hasOwnProperty(_12)){
_e[_12]={count:0,refs:[],cls:lin[j]};
++_f;
}
rec=_e[_12];
if(top&&top!==rec){
rec.refs.push(top);
++top.count;
}
top=rec;
}
++top.count;
_d[0].refs.push(top);
}
while(_d.length){
top=_d.pop();
_c.push(top.cls);
--_f;
while(_13=top.refs,_13.length==1){
top=_13[0];
if(!top||--top.count){
top=0;
break;
}
_c.push(top.cls);
--_f;
}
if(top){
for(i=0,l=_13.length;i<l;++i){
top=_13[i];
if(!--top.count){
_d.push(top);
}
}
}
}
if(_f){
_6("can't build consistent linearization",_b);
}
_10=_a[0];
_c[0]=_10?_10._meta&&_10===_c[_c.length-_10._meta.bases.length]?_10._meta.bases.length:1:0;
return _c;
};
function _14(_15,a,f){
var _16,_17,_18,_19,_1a,_1b,_1c,opf,pos,_1d=this._inherited=this._inherited||{};
if(typeof _15=="string"){
_16=_15;
_15=a;
a=f;
}
f=0;
_19=_15.callee;
_16=_16||_19.nom;
if(!_16){
_6("can't deduce a name to call inherited()",this.declaredClass);
}
_1a=this.constructor._meta;
_18=_1a.bases;
pos=_1d.p;
if(_16!=_5){
if(_1d.c!==_19){
pos=0;
_1b=_18[0];
_1a=_1b._meta;
if(_1a.hidden[_16]!==_19){
_17=_1a.chains;
if(_17&&typeof _17[_16]=="string"){
_6("calling chained method with inherited: "+_16,this.declaredClass);
}
do{
_1a=_1b._meta;
_1c=_1b.prototype;
if(_1a&&(_1c[_16]===_19&&_1c.hasOwnProperty(_16)||_1a.hidden[_16]===_19)){
break;
}
}while(_1b=_18[++pos]);
pos=_1b?pos:-1;
}
}
_1b=_18[++pos];
if(_1b){
_1c=_1b.prototype;
if(_1b._meta&&_1c.hasOwnProperty(_16)){
f=_1c[_16];
}else{
opf=op[_16];
do{
_1c=_1b.prototype;
f=_1c[_16];
if(f&&(_1b._meta?_1c.hasOwnProperty(_16):f!==opf)){
break;
}
}while(_1b=_18[++pos]);
}
}
f=_1b&&f||op[_16];
}else{
if(_1d.c!==_19){
pos=0;
_1a=_18[0]._meta;
if(_1a&&_1a.ctor!==_19){
_17=_1a.chains;
if(!_17||_17.constructor!=="manual"){
_6("calling chained constructor with inherited",this.declaredClass);
}
while(_1b=_18[++pos]){
_1a=_1b._meta;
if(_1a&&_1a.ctor===_19){
break;
}
}
pos=_1b?pos:-1;
}
}
while(_1b=_18[++pos]){
_1a=_1b._meta;
f=_1a?_1a.ctor:_1b;
if(f){
break;
}
}
f=_1b&&f;
}
_1d.c=f;
_1d.p=pos;
if(f){
return a===true?f:f.apply(this,a||_15);
}
};
function _1e(_1f,_20){
if(typeof _1f=="string"){
return this.inherited(_1f,_20,true);
}
return this.inherited(_1f,true);
};
function _21(cls){
var _22=this.constructor._meta.bases;
for(var i=0,l=_22.length;i<l;++i){
if(_22[i]===cls){
return true;
}
}
return this instanceof cls;
};
function _23(_24,_25){
var _26,i=0,l=d._extraNames.length;
for(_26 in _25){
if(_26!=_5&&_25.hasOwnProperty(_26)){
_24[_26]=_25[_26];
}
}
for(;i<l;++i){
_26=d._extraNames[i];
if(_26!=_5&&_25.hasOwnProperty(_26)){
_24[_26]=_25[_26];
}
}
};
function _27(_28,_29){
var _2a,t,i=0,l=d._extraNames.length;
for(_2a in _29){
t=_29[_2a];
if((t!==op[_2a]||!(_2a in op))&&_2a!=_5){
if(_2.call(t)=="[object Function]"){
t.nom=_2a;
}
_28[_2a]=t;
}
}
for(;i<l;++i){
_2a=d._extraNames[i];
t=_29[_2a];
if((t!==op[_2a]||!(_2a in op))&&_2a!=_5){
if(_2.call(t)=="[object Function]"){
t.nom=_2a;
}
_28[_2a]=t;
}
}
return _28;
};
function _2b(_2c){
_27(this.prototype,_2c);
return this;
};
function _2d(_2e,_2f){
return function(){
var a=arguments,_30=a,a0=a[0],f,i,m,l=_2e.length,_31;
if(!(this instanceof a.callee)){
return _32(a);
}
if(_2f&&(a0&&a0.preamble||this.preamble)){
_31=new Array(_2e.length);
_31[0]=a;
for(i=0;;){
a0=a[0];
if(a0){
f=a0.preamble;
if(f){
a=f.apply(this,a)||a;
}
}
f=_2e[i].prototype;
f=f.hasOwnProperty("preamble")&&f.preamble;
if(f){
a=f.apply(this,a)||a;
}
if(++i==l){
break;
}
_31[i]=a;
}
}
for(i=l-1;i>=0;--i){
f=_2e[i];
m=f._meta;
f=m?m.ctor:f;
if(f){
f.apply(this,_31?_31[i]:a);
}
}
f=this.postscript;
if(f){
f.apply(this,_30);
}
};
};
function _33(_34,_35){
return function(){
var a=arguments,t=a,a0=a[0],f;
if(!(this instanceof a.callee)){
return _32(a);
}
if(_35){
if(a0){
f=a0.preamble;
if(f){
t=f.apply(this,t)||t;
}
}
f=this.preamble;
if(f){
f.apply(this,t);
}
}
if(_34){
_34.apply(this,a);
}
f=this.postscript;
if(f){
f.apply(this,a);
}
};
};
function _36(_37){
return function(){
var a=arguments,i=0,f,m;
if(!(this instanceof a.callee)){
return _32(a);
}
for(;f=_37[i];++i){
m=f._meta;
f=m?m.ctor:f;
if(f){
f.apply(this,a);
break;
}
}
f=this.postscript;
if(f){
f.apply(this,a);
}
};
};
function _38(_39,_3a,_3b){
return function(){
var b,m,f,i=0,_3c=1;
if(_3b){
i=_3a.length-1;
_3c=-1;
}
for(;b=_3a[i];i+=_3c){
m=b._meta;
f=(m?m.hidden:b.prototype)[_39];
if(f){
f.apply(this,arguments);
}
}
};
};
function _3d(_3e){
_3.prototype=_3e.prototype;
var t=new _3();
_3.prototype=null;
return t;
};
function _32(_3f){
var _40=_3f.callee,t=_3d(_40);
_40.apply(t,_3f);
return t;
};
d.declare=function(_41,_42,_43){
if(typeof _41!="string"){
_43=_42;
_42=_41;
_41="";
}
_43=_43||{};
var _44,i,t,_45,_46,_47,_48,_49=1,_4a=_42;
if(_2.call(_42)=="[object Array]"){
_47=_9(_42,_41);
t=_47[0];
_49=_47.length-t;
_42=_47[_49];
}else{
_47=[0];
if(_42){
if(_2.call(_42)=="[object Function]"){
t=_42._meta;
_47=_47.concat(t?t.bases:_42);
}else{
_6("base class is not a callable constructor.",_41);
}
}else{
if(_42!==null){
_6("unknown base class. Did you use dojo.require to pull it in?",_41);
}
}
}
if(_42){
for(i=_49-1;;--i){
_44=_3d(_42);
if(!i){
break;
}
t=_47[i];
(t._meta?_23:_1)(_44,t.prototype);
_45=new Function();
_45.superclass=_42;
_45.prototype=_44;
_42=_44.constructor=_45;
}
}else{
_44={};
}
_27(_44,_43);
t=_43.constructor;
if(t!==op.constructor){
t.nom=_5;
_44.constructor=t;
}
for(i=_49-1;i;--i){
t=_47[i]._meta;
if(t&&t.chains){
_48=_1(_48||{},t.chains);
}
}
if(_44["-chains-"]){
_48=_1(_48||{},_44["-chains-"]);
}
t=!_48||!_48.hasOwnProperty(_5);
_47[0]=_45=(_48&&_48.constructor==="manual")?_36(_47):(_47.length==1?_33(_43.constructor,t):_2d(_47,t));
_45._meta={bases:_47,hidden:_43,chains:_48,parents:_4a,ctor:_43.constructor};
_45.superclass=_42&&_42.prototype;
_45.extend=_2b;
_45.prototype=_44;
_44.constructor=_45;
_44.getInherited=_1e;
_44.inherited=_14;
_44.isInstanceOf=_21;
if(_41){
_44.declaredClass=_41;
d.setObject(_41,_45);
}
if(_48){
for(_46 in _48){
if(_44[_46]&&typeof _48[_46]=="string"&&_46!=_5){
t=_44[_46]=_38(_46,_47,_48[_46]==="after");
t.nom=_46;
}
}
}
return _45;
};
d.safeMixin=_27;
})();
}