You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
21 KiB

4 years ago
!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=0)}([function(t,e,n){n(1),t.exports=n(2)},function(t,e,n){"use strict";function r(t){return t.replace(/-(\w)/g,(t,e)=>e.toUpperCase())}function o(t){Array.from(t).forEach(s)}function s(t){const{parentNode:e}=t;t.remove?t.remove():e&&e.removeChild(t)}n.r(e);var i={EACH:0,IF:1,SIMPLE:2,TAG:3,SLOT:4};var a={ATTRIBUTE:0,EVENT:1,TEXT:2,VALUE:3};const{indexOf:u,slice:c}=[],l=(t,e,n,r,o,s)=>{const i="selectedIndex"in e;let a=i;for(;r<o;){const o=t(n[r],1);if(e.insertBefore(o,s),i&&a&&o.selected){a=!a;let{selectedIndex:t}=e;e.selectedIndex=t<0?r:u.call(e.querySelectorAll("option"),o)}r++}},d=(t,e)=>t==e,p=t=>t,h=(t,e,n,r,o,s,i)=>{const a=s-o;if(a<1)return-1;for(;n-e>=a;){let a=e,u=o;for(;a<n&&u<s&&i(t[a],r[u]);)a++,u++;if(u===s)return e;e=a+1}return-1},m=(t,e,n,r,o)=>n<r?t(e[n],0):0<n?t(e[n-1],-0).nextSibling:o,f=(t,e,n,r)=>{for(;n<r;)_(t(e[n++],-1))},b=(t,e,n)=>{let r=1,o=e;for(;r<o;){const e=(r+o)/2>>>0;n<t[e]?o=e:r=e+1}return r},O=(t,e,n,r,o,s,i,a,u,c,d,p,h)=>{((t,e,n,r,o,s,i,a,u)=>{const c=[],d=t.length;let p=i,h=0;for(;h<d;)switch(t[h++]){case 0:o++,p++;break;case 1:c.push(r[o]),l(e,n,r,o++,o,p<a?e(s[p],0):u);break;case-1:p++}for(h=0;h<d;)switch(t[h++]){case 0:i++;break;case-1:-1<c.indexOf(s[i])?i++:f(e,s,i++,i)}})(((t,e,n,r,o,s,i)=>{const a=n+s,u=[];let c,l,d,p,h,m,f;t:for(c=0;c<=a;c++){if(c>50)return null;for(f=c-1,h=c?u[c-1]:[0,0],m=u[c]=[],l=-c;l<=c;l+=2){for(p=l===-c||l!==c&&h[f+l-1]<h[f+l+1]?h[f+l+1]:h[f+l-1]+1,d=p-l;p<s&&d<n&&i(r[o+p],t[e+d]);)p++,d++;if(p===s&&d===n)break t;m[c+l]=p}}const b=Array(c/2+a/2);let O=b.length-1;for(c=u.length-1;c>=0;c--){for(;p>0&&d>0&&i(r[o+p-1],t[e+d-1]);)b[O--]=0,p--,d--;if(!c)break;f=c-1,h=c?u[c-1]:[0,0],l=p-d,l===-c||l!==c&&h[f+l-1]<h[f+l+1]?(d--,b[O--]=1):(p--,b[O--]=-1)}return b})(n,r,s,i,a,c,p)||((t,e,n,r,o,s,i,a)=>{let u=0,c=r<a?r:a;const l=Array(c++),d=Array(c);d[0]=-1;for(let t=1;t<c;t++)d[t]=i;const p=o.slice(s,i);for(let r=e;r<n;r++){const e=p.indexOf(t[r]);if(-1<e){const t=e+s;u=b(d,c,t),-1<u&&(d[u]=t,l[u]={newi:r,oldi:t,prev:l[u-1]})}}for(u=--c,--i;d[u]>i;)--u;c=a+r-u;const h=Array(c);let m=l[u];for(--n;m;){const{newi:t,oldi:e}=m;for(;n>t;)h[--c]=1,--n;for(;i>e;)h[--c]=-1,--i;h[--c]=0,--n,--i,m=m.prev}for(;n>=e;)h[--c]=1,--n;for(;i>=s;)h[--c]=-1,--i;return h})(n,r,o,s,i,a,u,c),t,e,n,r,i,a,d,h)},_=t=>(t.remove||v).call(t);function v(){const{parentNode:t}=this;t&&t.removeChild(this)}function y(t,e){return typeof t===e}function E(t){const e=t.ownerSVGElement;return!!e||null===e}function g(t){return!x(t.content)}function N(t){return y(t,"function")}function T(t){return!x(t)&&y(t,"object")}function x(t){return null==t}const M=Symbol("unmount"),j=Object.seal({nodes:[],mount(t,e){return this.update(t,e)},update(t,e){const{placeholder:n,nodes:r,childrenMap:o}=this,s=t===M?null:this.evaluate(t),i=s?Array.from(s):[],a=n.parentNode,{newChildrenMap:u,batches:c,futureNodes:b}=function(t,e,n,r){const{condition:o,template:s,childrenMap:i,itemName:a,getKey:u,indexName:c,root:l,isTemplateTag:d}=r,p=new Map,h=[],m=[];return t.forEach((t,r)=>{const f=function(t,e){let{itemName:n,indexName:r,index:o,item:s}=e;t[n]=s,r&&(t[r]=o);return t}(Object.create(e),{itemName:a,indexName:c,index:r,item:t}),b=u?u(