Arc-hive-omeka-theme/asset/js/archive-list.js

2 lines
157 KiB
JavaScript
Raw Normal View History

2021-11-10 13:55:14 +01:00
/*! For license information please see archive-list.js.LICENSE.txt */
2022-03-17 15:10:15 +01:00
(()=>{var t={559:(t,e,n)=>{t.exports=n(335)},786:(t,e,n)=>{"use strict";var r=n(266),o=n(608),i=n(159),a=n(568),s=n(943),c=n(201),u=n(745),l=n(979),f=n(46),p=n(760);t.exports=function(t){return new Promise((function(e,n){var d,h=t.data,v=t.headers,m=t.responseType;function y(){t.cancelToken&&t.cancelToken.unsubscribe(d),t.signal&&t.signal.removeEventListener("abort",d)}r.isFormData(h)&&delete v["Content-Type"];var g=new XMLHttpRequest;if(t.auth){var _=t.auth.username||"",b=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";v.Authorization="Basic "+btoa(_+":"+b)}var w=s(t.baseURL,t.url);function x(){if(g){var r="getAllResponseHeaders"in g?c(g.getAllResponseHeaders()):null,i={data:m&&"text"!==m&&"json"!==m?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:t,request:g};o((function(t){e(t),y()}),(function(t){n(t),y()}),i),g=null}}if(g.open(t.method.toUpperCase(),a(w,t.params,t.paramsSerializer),!0),g.timeout=t.timeout,"onloadend"in g?g.onloadend=x:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(x)},g.onabort=function(){g&&(n(l("Request aborted",t,"ECONNABORTED",g)),g=null)},g.onerror=function(){n(l("Network Error",t,null,g)),g=null},g.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",r=t.transitional||f.transitional;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(l(e,t,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",g)),g=null},r.isStandardBrowserEnv()){var C=(t.withCredentials||u(w))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;C&&(v[t.xsrfHeaderName]=C)}"setRequestHeader"in g&&r.forEach(v,(function(t,e){void 0===h&&"content-type"===e.toLowerCase()?delete v[e]:g.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(g.withCredentials=!!t.withCredentials),m&&"json"!==m&&(g.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&g.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(d=function(t){g&&(n(!t||t&&t.type?new p("canceled"):t),g.abort(),g=null)},t.cancelToken&&t.cancelToken.subscribe(d),t.signal&&(t.signal.aborted?d():t.signal.addEventListener("abort",d))),h||(h=null),g.send(h)}))}},335:(t,e,n)=>{"use strict";var r=n(266),o=n(345),i=n(929),a=n(650),s=function t(e){var n=new i(e),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return t(a(e,n))},s}(n(46));s.Axios=i,s.Cancel=n(760),s.CancelToken=n(510),s.isCancel=n(825),s.VERSION=n(992).version,s.all=function(t){return Promise.all(t)},s.spread=n(346),s.isAxiosError=n(276),t.exports=s,t.exports.default=s},760:t=>{"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},510:(t,e,n)=>{"use strict";var r=n(760);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e<r;e++)n._listeners[e](t);n._listeners=null}})),this.promise.then=function(t){var e,r=new Promise((function(t){n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},o.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},825:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},929:(t,e,n)=>{"use strict";var r=n(266),o=n(568),i=n(252),a=n(29),s=n(650),c=n(123),u=c.validators;function l(t){this.defaults=t,this