|
|
- !function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=31)}([function(t,e,n){"use strict";var r=n(1),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function s(t){return void 0===t}function u(t){return null!==t&&"object"==typeof t}function a(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===o.call(t)}function f(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!s(t)&&null!==t.constructor&&!s(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:u,isPlainObject:a,isUndefined:s,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:c,isStream:function(t){return u(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:f,merge:function t(){var e={};function n(n,r){a(e[r])&&a(n)?e[r]=t(e[r],n):a(n)?e[r]=t({},n):i(n)?e[r]=n.slice():e[r]=n}for(var r=0,o=arguments.length;r<o;r++)f(arguments[r],n);return e},extend:function(t,e,n){return f(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(0);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var s=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),s.push(o(e)+"="+o(t))})))})),i=s.join("&")}if(i){var u=t.indexOf("#");-1!==u&&(t=t.slice(0,u)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";(function(e){var r=n(0),o=n(16),i={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.is
- /* Riot v5.1.1, @license MIT */
- var o;return t[(o=n,o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())]=wt(r),t},{})}(r.components):{}):yt;return t=>{let{slots:s,attributes:u,props:a}=t;if(r&&r[k])return function(t,e){let{slots:n,attributes:r,props:o,css:i,template:s}=e;s&&v("Pure components can not have html"),i&&v("Pure components do not have css");const u=it(t({slots:n,attributes:r,props:o}),bt);return Tt(t=>function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(t===B){const[t]=n;Et(t,u)}return u[t](...n),u})}(r,{slots:s,attributes:u,props:a,css:e,template:n});const c=nt(r)||{},f=xt({css:e,template:i,componentAPI:c,name:o})({slots:s,attributes:u,props:a});return{mount:(t,e,n)=>f.mount(t,n,e),update:(t,e)=>f.update(e,t),unmount:t=>f.unmount(t)}}}function xt(t){let{css:e,template:n,componentAPI:r,name:o}=t;return e&&o&&ht.add(o,e),function t(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(o=[...r,...o]).length<e.length?t(e,...o):e(...o)}}(jt)(ot(it(r,Object.assign({},vt,{state:{}})),Object.assign({slots:null,root:null},gt,{name:o,css:e,template:n})))}function Nt(t,e){return Object.assign({},t,nt(e))}function jt(t,e){let{slots:n,attributes:r,props:o}=e;return i=function(t){return[...R].reduce((t,e)=>e(t)||t,t)}(ot(Object.create(t),{mount(e,i,s){return void 0===i&&(i={}),this[Y]=function(t,e){void 0===e&&(e=[]);const n=e.map(e=>C(t,e)),r={};return Object.assign(r,Object.assign({expressions:n},Tt(t=>e=>(n.forEach(n=>n[t](e)),r))))}(e,r).mount(s),rt(this,"props",Object.freeze(Object.assign({},Ot(e,o),y(this[Y].expressions)))),this.state=Nt(this.state,i),this[q]=this.template.createDOM(e).clone(),Et(e,this),t.name&&function(t,e){mt(t)!==e&&ct(t,"is",e)}(e,t.name),rt(this,"root",e),rt(this,"slots",n),this.onBeforeMount(this.props,this.state),this[I]=s,this[q].mount(e,this,s),this.onMounted(this.props,this.state),this},update(t,e){void 0===t&&(t={}),e&&(this[I]=e,this[Y].update(e));const n=y(this[Y].expressions);if(!1!==this.shouldUpdate(n,this.props))return rt(this,"props",Object.freeze(Object.assign({},this.props,n))),this.state=Nt(this.state,t),this.onBeforeUpdate(this.props,this.state),this[q].update(this,this[I]),this.onUpdated(this.props,this.state),this},unmount(t){return this.onBeforeUnmount(this.props,this.state),this[Y].unmount(),this[q].unmount(this,this[I],null===t?null:!t),this.onUnmounted(this.props,this.state),this}})),Object.keys(t).filter(e=>p(t[e])).forEach(t=>{i[t]=i[t].bind(i)}),i;var i}const{DOM_COMPONENT_INSTANCE_PROPERTY:St,COMPONENTS_IMPLEMENTATION_MAP:At,PLUGINS_SET:Mt}=K;function _t(t,e){let{css:n,template:r,exports:o}=e;return At.has(t)&&v(`The component "${t}" was already registered`),At.set(t,wt({name:t,css:n,template:r,exports:o})),At}function Ct(t){return At.has(t)||v(`The component "${t}" was never registered`),At.delete(t),ht.remove(t),At}function Ut(t,e,n){return ut(t).map(t=>function(t,e,n){const r=n||mt(t);return U.has(r)||v(`The component named "${r}" was never registered`),U.get(r)({props:e}).mount(t)}(t,e,n))}function Pt(t,e){return ut(t).map(t=>(t[St]&&t[St].unmount(e),t))}function Rt(t){return p(t)||v("Plugins must be of type function"),Mt.has(t)&&v("This plugin was already installed"),Mt.add(t),Mt}function Bt(t){return Mt.has(t)||v("This plugin was never installed"),Mt.delete(t),Mt}function Lt(t){return function(e,n,r){let{slots:o,attributes:i,parentScope:s}=void 0===r?{}:r;return function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce((t,e)=>function(){return t(e(...arguments))})}(t=>t.mount(e,s),t=>t({props:n,slots:o,attributes:i}),wt)(t)}}function Dt(t){return p(t)||v('riot.pure accepts only arguments of type "function"'),t[k]=!0,t}const kt="v5.1.1",It={cssManager:ht,DOMBindings:tt,createComponent:wt,defineComponent:xt,globals:K}},,,,,,,,function(t,e){}]);
|