Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'js/files.js')
-rw-r--r--js/files.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/files.js b/js/files.js
index bc95e94fa..f2ed6f5e3 100644
--- a/js/files.js
+++ b/js/files.js
@@ -1,4 +1,4 @@
-!function(e){function t(t){for(var n,i,o=t[0],a=t[1],s=0,u=[];s<o.length;s++)i=o[s],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&u.push(r[i][0]),r[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(c&&c(t);u.length;)u.shift()()}var n={},r={193:0,0:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,i){n=r[e]=[t,i]}));t.push(n[2]=o);var a,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=function(e){return i.p+""+({0:"vendor",1:"vendors~editor-collab~editor-guest~editor-rich~files-modal",2:"highlight/1c",3:"highlight/abnf",4:"highlight/accesslog",5:"highlight/actionscript",6:"highlight/ada",7:"highlight/angelscript",8:"highlight/apache",9:"highlight/applescript",10:"highlight/arcade",11:"highlight/arduino",12:"highlight/armasm",13:"highlight/asciidoc",14:"highlight/aspectj",15:"highlight/autohotkey",16:"highlight/autoit",17:"highlight/avrasm",18:"highlight/awk",19:"highlight/axapta",20:"highlight/bash",21:"highlight/basic",22:"highlight/bnf",23:"highlight/brainfuck",24:"highlight/cal",25:"highlight/capnproto",26:"highlight/ceylon",27:"highlight/clean",28:"highlight/clojure",29:"highlight/clojure-repl",30:"highlight/cmake",31:"highlight/coffeescript",32:"highlight/coq",33:"highlight/cos",34:"highlight/cpp",35:"highlight/crmsh",36:"highlight/crystal",37:"highlight/cs",38:"highlight/csp",39:"highlight/css",40:"highlight/d",41:"highlight/dart",42:"highlight/delphi",43:"highlight/diff",44:"highlight/django",45:"highlight/dns",46:"highlight/dockerfile",47:"highlight/dos",48:"highlight/dsconfig",49:"highlight/dts",50:"highlight/dust",51:"highlight/ebnf",52:"highlight/elixir",53:"highlight/elm",54:"highlight/erb",55:"highlight/erlang",56:"highlight/erlang-repl",57:"highlight/excel",58:"highlight/fix",59:"highlight/flix",60:"highlight/fortran",61:"highlight/fsharp",62:"highlight/gams",63:"highlight/gauss",64:"highlight/gcode",65:"highlight/gherkin",66:"highlight/glsl",67:"highlight/gml",68:"highlight/go",69:"highlight/golo",70:"highlight/gradle",71:"highlight/groovy",72:"highlight/haml",73:"highlight/handlebars",74:"highlight/haskell",75:"highlight/haxe",76:"highlight/hsp",77:"highlight/htmlbars",78:"highlight/http",79:"highlight/hy",80:"highlight/inform7",81:"highlight/ini",82:"highlight/irpf90",83:"highlight/isbl",84:"highlight/java",85:"highlight/javascript",86:"highlight/jboss-cli",87:"highlight/json",88:"highlight/julia",89:"highlight/julia-repl",90:"highlight/kotlin",91:"highlight/lasso",92:"highlight/ldif",93:"highlight/leaf",94:"highlight/less",95:"highlight/lisp",96:"highlight/livecodeserver",97:"highlight/livescript",98:"highlight/llvm",99:"highlight/lsl",100:"highlight/lua",101:"highlight/makefile",102:"highlight/markdown",103:"highlight/mathematica",104:"highlight/matlab",105:"highlight/maxima",106:"highlight/mel",107:"highlight/mercury",108:"highlight/mipsasm",109:"highlight/mizar",110:"highlight/mojolicious",111:"highlight/monkey",112:"highlight/moonscript",113:"highlight/n1ql",114:"highlight/nginx",115:"highlight/nimrod",116:"highlight/nix",117:"highlight/nsis",118:"highlight/objectivec",119:"highlight/ocaml",120:"highlight/openscad",121:"highlight/oxygene",122:"highlight/parser3",123:"highlight/perl",124:"highlight/pf",125:"highlight/pgsql",126:"highlight/php",127:"highlight/plaintext",128:"highlight/pony",129:"highlight/powershell",130:"highlight/processing",131:"highlight/profile",132:"highlight/prolog",133:"highlight/properties",134:"highlight/protobuf",135:"highlight/puppet",136:"highlight/purebasic",137:"highlight/python",138:"highlight/q",139:"highlight/qml",140:"highlight/r",141:"highlight/reasonml",142:"highlight/rib",143:"highlight/roboconf",144:"highlight/routeros",145:"highlight/rsl",146:"highlight/ruby",147:"highlight/ruleslanguage",148:"highlight/rust",149:"highlight/sas",150:"highlight/scala",151:"highlight/scheme",152:"highlight/scilab",153:"highlight/scss",154:"highlight/shell",155:"highlight/smali",156:"highlight/smalltalk",157:"highlight/sml",158:"highlight/sqf",159:"highlight/sql",160:"highlight/stan",161:"highlight/stata",162:"highlight/step21",163:"highlight/stylus",164:"highlight/subunit",165:"highlight/swift",166:"highlight/taggerscript",167:"highlight/tap",168:"highlight/tcl",169:"highlight/tex",170:"highlight/thrift",171:"highlight/tp",172:"highlight/twig",173:"highlight/typescript",174:"highlight/vala",175:"highlight/vbnet",176:"highlight/vbscript",177:"highlight/vbscript-html",178:"highlight/verilog",179:"highlight/vhdl",180:"highlight/vim",181:"highlight/x86asm",182:"highlight/xl",183:"highlight/xml",184:"highlight/xquery",185:"highlight/yaml",186:"highlight/zephir",187:"vendors~editor-collab~editor-guest",188:"vendors~editor~files-modal",189:"editor",190:"editor-collab",191:"editor-guest",192:"editor-rich",194:"files-modal",197:"vendors~editor",198:"vendors~editor-rich",199:"vendors~files-modal"}[e]||e)+".js?v="+{0:"36248677afa2503d88e9",1:"09b193f314c6ea142063",2:"f0576a0041b683e5d7bd",3:"33a20d9d05333cfd46a2",4:"7b17e0c8c70cb0752079",5:"a583a49057281ca950fa",6:"6d568d2639bcb6cf65d8",7:"a6fd69eb6316ff522f8f",8:"43bf554d7d22a37a16f3",9:"4fd970926ac1ee9af177",10:"fc4252a2cbf4e4ad18ea",11:"912500f35008f83c4468",12:"1417916113ddb5076ff1",13:"707a208683398e92cf3a",14:"e0109fa693072e1112b9",15:"3c227933bde9d67b3a44",16:"3986749532494701182e",17:"1ae60940b1f29b40cc42",18:"65b4cfe3b16cd92d3dcf",19:"4e2621c42b639f21e727",20:"c0587fdaf1a207c80ebc",21:"eaa7227ff993d6b4bc24",22:"4e0a89c847ab66a8e4a4",23:"d4a0a29352c3d72d7f54",24:"e423b683ff652b826dc1",25:"18fc0c6395f4c6c79493",26:"9677c57bf54743e04e2b",27:"1faf89e8082562f8e8b1",28:"e99beadb6828128945b8",29:"db0d2ad562fd11d08173",30:"b561bc73e38dc4f0a7ba",31:"45f5e3c9ad6a47f44bd2",32:"6fbc0f61f36525153020",33:"b7d176edee2dba070960",34:"8acc5802a6455cb194a5",35:"a5f00553a4f5c29b6bff",36:"222a25a0760f7c7f8a0f",37:"a7e61096fbb11d62c347",38:"ed10c3e25fa2b4850eb1",39:"be3c3a993e0de892ed69",40:"f2da18acfa8c12cb6694",41:"cc8a065a2bff984b16d7",42:"6cb96aed9d291b65e04b",43:"f5302063f319d6e77862",44:"1eee70655537481fefa1",45:"265df73fb5f0abedb1c5",46:"ad79a0a83ac72cd116e0",47:"f5e9b8c96426aea426c7",48:"ce8582cdea1ac944b58d",49:"8e02759aa79c80fda97b",50:"649f2292eb2660667b68",51:"c47a98e251a59535f8c3",52:"ce52f1dea17b8b783a7f",53:"7709deb3047ee2e0b53b",54:"4504b2870ee85a1ac0f4",55:"d89ea66885121f1876ed",56:"53cb5626990922461739",57:"be9c20ffe070b16791db",58:"20151e40af9dc6e3a08f",59:"a35dcc0a68a135bb896e",60:"b570981d942af69186aa",61:"f12b4efd4451bf2a9f62",62:"4fa8dac721a52cf7070f",63:"18a459a5ce75c37115ef",64:"bd41afae1bd6e8308216",65:"d0fc6cf02a3cb435f7e7",66:"d7af5ae89b239deddc90",67:"19354a7997d754c41dca",68:"ecc6f3f1525345cf6f66",69:"35d3b7a5b820e5f64be2",70:"b5c7de422523eb4a5999",71:"117d8f8253b0d7f1d00e",72:"883aee4e1abdfed96295",73:"18c9fb5fc452d2dd5141",74:"17b89ae49d8ff8c03f19",75:"2e095e95c284245a5e7f",76:"8bae5ebff7edff4f803e",77:"0d08183b7fe66d3d8037",78:"5f00c8c645f2e4e74f84",79:"53bbddabb8c02b38e8e2",80:"c743e553ae5e23550749",81:"59ffe1dc82108c81a678",82:"c7360fee4e08e05beabe",83:"342261cda56eaa2026cb",84:"a8ede5a31a44680403da",85:"8e0ae0e169220196f474",86:"5b94d11aae2214c9f2a3",87:"a29c73f9365c3dff5626",88:"59c843c09579ee9c406f",89:"95e53b659da6f948f989",90:"5198f3506de4aee62b9a",91:"f27e765d3751e11d2b69",92:"9800ce2d5ac13bbada54",93:"110f61cbff9b2ed81b90",94:"b669afca9857e03c385c",95:"83f80a4eb6972ff22358",96:"cfee1c97cf9676fcc7a1",97:"9fb09cf7ed129e416a92",98:"eb62e346dd6013a90bd0",99:"6c39638e475459da78bd",100:"169382cc986d9e212ae5",101:"35f199abc13949ee9a8c",102:"936f32effc8ad667c16c",103:"c72069781ff1cd937b7c",104:"afcd7db4f02391f43197",105:"6b573de0eaf4083bd68b",106:"99aaaa7897ae0f835efd",107:"22204e44ef42ebf3cf80",108:"708e7d9dede16eea04fb",109:"478bb93dbdff38f08647",110:"0251a28fe1c1b0f965aa",111:"e03ac780179813547667",112:"beee3ec68fe09d244f0c",113:"e7975a76df5d7d68ab1c",114:"02dc0a2cfe18d35e4093",115:"dd4cd07ce3b068618390",116:"78f5da6fa298c9e0a138",117:"bbe2941e74a186d802df",118:"12f940e72fc238b81970",119:"0202e1e8c41834e6dd6e",120:"c3dbdc91a1b47f7d2670",121:"fae49020fda55735b1a6",122:"9297cea19ad6318c532f",123:"896186028f844500fb05",124:"0eef39110c445301b613",125:"dda67022388394e4eefb",126:"a99aa3574bb18e5654d9",127:"25ba8e9fb8e0ca589759",128:"1be5ef4dae2e237aa266",129:"97b35f4e00f56357a5f0",130:"b15d400bb3666c95ea15",131:"eb9f6f8855f9422e820f",132:"fda4068bf438c8bcd4f1",133:"7958a62adb6a3e153467",134:"9d3cbe3e763fef5c6562",135:"304102d026749b532b3f",136:"6283dccd5a725bc4fe1d",137:"5f36a44d8df86c3aca5e",138:"2633e41388f992fd9141",139:"fa4a7f206d3b7f4cc44b",140:"25378ba40b08f2d52126",141:"1cd7052ac0a69b75285d",142:"5b5a12e9c3d647f8e5ce",143:"87bcec8866f294508e35",144:"b3743b23ebb69c40ee45",145:"492ff05ee6d8e91998db",146:"7cb39ebe1102e194cc28",147:"8782f53741965da8cf77",148:"ba184d4a42c5aa17e30d",149:"e55ea529a1e1b6039955",150:"136535efd56c805f35bd",151:"7fa94e4f35ec57a8c804",152:"1a7ff9bb10b76c716696",153:"dc48aa34534ddcf8967c",154:"b2c2298fd6b5d998647e",155:"61b891c74d93c3d68f0c",156:"7b71277ac1b7d1da97d3",157:"401324a92d8be6522f1e",158:"41504731225a6dc3f08d",159:"58135754645214934249",160:"6ceb17233612e6000e0c",161:"45c3357fbe06da1708b9",162:"f4df2e9592564d8c9d4d",163:"683be68c46951cb12c4e",164:"4ef5d38ac5b1382db3de",165:"7bd273f8f56a59ecf7ef",166:"fa1338a7e21d8119c730",167:"014f69a7a7503cc2d0d0",168:"ddfc1b5d19722adcde34",169:"2ed15f8d505cb8023ca4",170:"51b60b6384e7d531e28b",171:"6f273cd9336f48e3454e",172:"cb66fba30615256c798f",173:"21e792e4bf79e600d19e",174:"95fdfd252af0d60864cd",175:"217c629489f2a05d199e",176:"daa4518b27e372f1cbc7",177:"458e19423f0de60d0428",178:"564eceafc2e2a7ee7ae2",179:"13e2048920afc905e289",180:"b98eb53741fa72cf8e62",181:"a9f9bbd9503956965050",182:"8c13cd15ba0145521956",183:"c267903f996e5e6acf79",184:"15b2cd259909d1ac0fad",185:"d93122b4f26da1ce5f1e",186:"121cdbbcd9d6dc912ed8",187:"290818750944978500c2",188:"82f6fb3490ad0383f16a",189:"3e7fd1e2e6cb67b5f337",190:"5ec60b1c3e536dd039b9",191:"954f2bda874874b65f5e",192:"f6d65becffd7cd7ddea8",194:"8027128845d1f6ad27f8",197:"c51e52261b4945b61746",198:"e46ba08c4266921a0a65",199:"7364b09cebde3e8be105"}[e]}(e);var c=new Error;a=function(t){s.onerror=s.onload=null,clearTimeout(u);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",c.name="ChunkLoadError",c.type=i,c.request=o,n[1](c)}r[e]=void 0}};var u=setTimeout((function(){a({type:"timeout",target:s})}),12e4);s.onerror=s.onload=a,document.head.appendChild(s)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/js/",i.oe=function(e){throw console.error(e),e};var o=window.textWebpackJsonp=window.textWebpackJsonp||[],a=o.push.bind(o);o.push=t,o=o.slice();for(var s=0;s<o.length;s++)t(o[s]);var c=a;i(i.s=174)}([function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(2),i=n(65),o=n(4),a=n(38),s=n(69),c=n(117),u=i("wks"),f=r.Symbol,l=c?f:f&&f.withoutSetter||a;e.exports=function(e){return o(u,e)||(s&&o(f,e)?u[e]=f[e]:u[e]=l("Symbol."+e)),u[e]}},function(e,t,n){(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==("undefined"==typeof globalThis?"undefined":n(globalThis))&&globalThis)||r("object"==("undefined"==typeof window?"undefined":n(window))&&window)||r("object"==("undefined"==typeof self?"undefined":n(self))&&self)||r("object"==(void 0===t?"undefined":n(t))&&t)||Function("return this")()}).call(this,n(46))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(79),o=Object.prototype.toString;function a(e){return"[object Array]"===o.call(e)}function s(e){return void 0===e}function c(e){return null!==e&&"object"===r(e)}function u(e){return"[object Function]"===o.call(e)}function f(e,t){if(null!=e)if("object"!==r(e)&&(e=[e]),a(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:c,isUndefined:s,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return c(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e 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 e(){var t={};function n(n,i){"object"===r(t[i])&&"object"===r(n)?t[i]=e(t[i],n):t[i]=n}for(var i=0,o=arguments.length;i<o;i++)f(arguments[i],n);return t},deepMerge:function e(){var t={};function n(n,i){"object"===r(t[i])&&"object"===r(n)?t[i]=e(t[i],n):"object"===r(n)?t[i]=e({},n):t[i]=n}for(var i=0,o=arguments.length;i<o;i++)f(arguments[i],n);return t},extend:function(e,t,n){return f(t,(function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return"object"===n(e)?null!==e:"function"==typeof e}},function(e,t,n){var r=n(5);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(0);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(7),i=n(76),o=n(6),a=n(33),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(7),i=n(8),o=n(23);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(2),o=n(54).f,a=n(9),s=n(12),c=n(39),u=n(114),f=n(56);e.exports=function(e,t){var n,l,p,d,h,v=e.target,g=e.global,m=e.stat;if(n=g?i:m?i[v]||c(v,{}):(i[v]||{}).prototype)for(l in t){if(d=t[l],p=e.noTargetGet?(h=o(n,l))&&h.value:n[l],!f(g?l:v+(m?".":"#")+l,e.forced)&&void 0!==p){if(r(d)===r(p))continue;u(d,p)}(e.sham||p&&p.sham)&&a(d,"sham",!0),s(n,l,d,e)}}},function(e,t,n){"use strict";n(103),n(75),n(51),n(53),n(100),n(102),Object.defineProperty(t,"__esModule",{value:!0}),t.getRootUrl=t.generateFilePath=t.imagePath=t.generateUrl=t.generateOcsUrl=t.generateRemoteUrl=t.linkTo=void 0;t.linkTo=function(e,t){return r(e,"",t)};t.generateRemoteUrl=function(e){return window.location.protocol+"//"+window.location.host+function(e){return i()+"/remote.php/"+e}(e)};t.generateOcsUrl=function(e,t){return t=2!==t?1:2,window.location.protocol+"//"+window.location.host+i()+"/ocs/v"+t+".php/"+e+"/"};t.generateUrl=function(e,t,n){var r=Object.assign({escape:!0,noRewrite:!1},n||{}),o=function(e,t){return t=t||{},e.replace(/{([^{}]*)}/g,(function(e,n){var i=t[n];return r.escape?"string"==typeof i||"number"==typeof i?encodeURIComponent(i.toString()):encodeURIComponent(e):"string"==typeof i||"number"==typeof i?i.toString():e}))};return"/"!==e.charAt(0)&&(e="/"+e),!0!==OC.config.modRewriteWorking||r.noRewrite?i()+"/index.php"+o(e,t||{}):i()+o(e,t||{})};t.imagePath=function(e,t){return-1===t.indexOf(".")?r(e,"img",t+".svg"):r(e,"img",t)};var r=function(e,t,n){var r=-1!==OC.coreApps.indexOf(e),o=i();return"php"!==n.substring(n.length-3)||r?"php"===n.substring(n.length-3)||r?(o+="settings"!==e&&"core"!==e&&"search"!==e||"ajax"!==t?"/":"/index.php/",r||(o+="apps/"),""!==e&&(o+=e+="/"),t&&(o+=t+"/"),o+=n):(o=OC.appswebroots[e],t&&(o+="/"+t+"/"),"/"!==o.substring(o.length-1)&&(o+="/"),o+=n):(o+="/index.php/apps/"+e,"index.php"!==n&&(o+="/",t&&(o+=encodeURI(t+"/")),o+=n)),o};t.generateFilePath=r;var i=function(){return OC.webroot};t.getRootUrl=i},function(e,t,n){var r=n(2),i=n(9),o=n(4),a=n(39),s=n(64),c=n(21),u=c.get,f=c.enforce,l=String(String).split("String");(e.exports=function(e,t,n,s){var c=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),f(n).source=l.join("string"==typeof t?t:"")),e!==r?(c?!p&&e[t]&&(u=!0):delete e[t],u?e[t]=n:i(e,t,n)):u?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i}));
+!function(e){function t(t){for(var n,i,o=t[0],a=t[1],s=0,u=[];s<o.length;s++)i=o[s],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&u.push(r[i][0]),r[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(c&&c(t);u.length;)u.shift()()}var n={},r={193:0,0:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,i){n=r[e]=[t,i]}));t.push(n[2]=o);var a,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=function(e){return i.p+""+({0:"vendor",1:"vendors~editor-collab~editor-guest~editor-rich~files-modal",2:"highlight/1c",3:"highlight/abnf",4:"highlight/accesslog",5:"highlight/actionscript",6:"highlight/ada",7:"highlight/angelscript",8:"highlight/apache",9:"highlight/applescript",10:"highlight/arcade",11:"highlight/arduino",12:"highlight/armasm",13:"highlight/asciidoc",14:"highlight/aspectj",15:"highlight/autohotkey",16:"highlight/autoit",17:"highlight/avrasm",18:"highlight/awk",19:"highlight/axapta",20:"highlight/bash",21:"highlight/basic",22:"highlight/bnf",23:"highlight/brainfuck",24:"highlight/cal",25:"highlight/capnproto",26:"highlight/ceylon",27:"highlight/clean",28:"highlight/clojure",29:"highlight/clojure-repl",30:"highlight/cmake",31:"highlight/coffeescript",32:"highlight/coq",33:"highlight/cos",34:"highlight/cpp",35:"highlight/crmsh",36:"highlight/crystal",37:"highlight/cs",38:"highlight/csp",39:"highlight/css",40:"highlight/d",41:"highlight/dart",42:"highlight/delphi",43:"highlight/diff",44:"highlight/django",45:"highlight/dns",46:"highlight/dockerfile",47:"highlight/dos",48:"highlight/dsconfig",49:"highlight/dts",50:"highlight/dust",51:"highlight/ebnf",52:"highlight/elixir",53:"highlight/elm",54:"highlight/erb",55:"highlight/erlang",56:"highlight/erlang-repl",57:"highlight/excel",58:"highlight/fix",59:"highlight/flix",60:"highlight/fortran",61:"highlight/fsharp",62:"highlight/gams",63:"highlight/gauss",64:"highlight/gcode",65:"highlight/gherkin",66:"highlight/glsl",67:"highlight/gml",68:"highlight/go",69:"highlight/golo",70:"highlight/gradle",71:"highlight/groovy",72:"highlight/haml",73:"highlight/handlebars",74:"highlight/haskell",75:"highlight/haxe",76:"highlight/hsp",77:"highlight/htmlbars",78:"highlight/http",79:"highlight/hy",80:"highlight/inform7",81:"highlight/ini",82:"highlight/irpf90",83:"highlight/isbl",84:"highlight/java",85:"highlight/javascript",86:"highlight/jboss-cli",87:"highlight/json",88:"highlight/julia",89:"highlight/julia-repl",90:"highlight/kotlin",91:"highlight/lasso",92:"highlight/ldif",93:"highlight/leaf",94:"highlight/less",95:"highlight/lisp",96:"highlight/livecodeserver",97:"highlight/livescript",98:"highlight/llvm",99:"highlight/lsl",100:"highlight/lua",101:"highlight/makefile",102:"highlight/markdown",103:"highlight/mathematica",104:"highlight/matlab",105:"highlight/maxima",106:"highlight/mel",107:"highlight/mercury",108:"highlight/mipsasm",109:"highlight/mizar",110:"highlight/mojolicious",111:"highlight/monkey",112:"highlight/moonscript",113:"highlight/n1ql",114:"highlight/nginx",115:"highlight/nimrod",116:"highlight/nix",117:"highlight/nsis",118:"highlight/objectivec",119:"highlight/ocaml",120:"highlight/openscad",121:"highlight/oxygene",122:"highlight/parser3",123:"highlight/perl",124:"highlight/pf",125:"highlight/pgsql",126:"highlight/php",127:"highlight/plaintext",128:"highlight/pony",129:"highlight/powershell",130:"highlight/processing",131:"highlight/profile",132:"highlight/prolog",133:"highlight/properties",134:"highlight/protobuf",135:"highlight/puppet",136:"highlight/purebasic",137:"highlight/python",138:"highlight/q",139:"highlight/qml",140:"highlight/r",141:"highlight/reasonml",142:"highlight/rib",143:"highlight/roboconf",144:"highlight/routeros",145:"highlight/rsl",146:"highlight/ruby",147:"highlight/ruleslanguage",148:"highlight/rust",149:"highlight/sas",150:"highlight/scala",151:"highlight/scheme",152:"highlight/scilab",153:"highlight/scss",154:"highlight/shell",155:"highlight/smali",156:"highlight/smalltalk",157:"highlight/sml",158:"highlight/sqf",159:"highlight/sql",160:"highlight/stan",161:"highlight/stata",162:"highlight/step21",163:"highlight/stylus",164:"highlight/subunit",165:"highlight/swift",166:"highlight/taggerscript",167:"highlight/tap",168:"highlight/tcl",169:"highlight/tex",170:"highlight/thrift",171:"highlight/tp",172:"highlight/twig",173:"highlight/typescript",174:"highlight/vala",175:"highlight/vbnet",176:"highlight/vbscript",177:"highlight/vbscript-html",178:"highlight/verilog",179:"highlight/vhdl",180:"highlight/vim",181:"highlight/x86asm",182:"highlight/xl",183:"highlight/xml",184:"highlight/xquery",185:"highlight/yaml",186:"highlight/zephir",187:"vendors~editor-collab~editor-guest",188:"vendors~editor~files-modal",189:"editor",190:"editor-collab",191:"editor-guest",192:"editor-rich",194:"files-modal",197:"vendors~editor",198:"vendors~editor-rich",199:"vendors~files-modal"}[e]||e)+".js?v="+{0:"36248677afa2503d88e9",1:"60993bb81417a2f98843",2:"a49dc05eec9ce77569e5",3:"983af236bd2d2adf66d3",4:"0b96383489b4000a0b9d",5:"b1108955aeb856a1494a",6:"b8bdcb6d5a894617ae2c",7:"3afbd027fa1d7b53b332",8:"0a9e08c8138e36b0ec77",9:"ba8edc7ffb385ee03ab0",10:"95445fcf9435b4e7c265",11:"f93b474623e034498770",12:"9139b007e086435bbc4d",13:"638a23151865e5f87592",14:"82018c14ac950325ca9d",15:"1e8e11104ed33db43cef",16:"b4ae289de375ebbbcf70",17:"7c0b3b35f4d1975d563c",18:"8b276f8abb82d294ed44",19:"1fae1a097f350662a722",20:"1384c4b3dec42ae7475b",21:"58ae5c3b1577213c5de2",22:"dd8730fd1a4b95284df8",23:"6cb98b98403cd7ca7aad",24:"9c42ad238f17bf682e2c",25:"1cceed0aa1b8b967cef6",26:"686486bb8e2578403eeb",27:"23889dcd1fcbbcba070d",28:"6ea5c29d24c3d8a34baa",29:"a89d291e466dbf6e5c5e",30:"d13adee54b0962992b8b",31:"363f04b46fd940d5c99f",32:"207b8de3bb650b5949c7",33:"8bd4271d22010e18096f",34:"21339a871bab580d4923",35:"b84a3dcc2cf9038f7d2e",36:"ec8ab09470213485dfb8",37:"79641a74f8f1bd5a2fce",38:"b2ae0f6bab2b4b1ba791",39:"4cb0c404c1fd37a6b59f",40:"507d2fcf3e81daa12bb0",41:"5775141184342121a5c4",42:"ab2f673a62b3d08f4027",43:"57399535984698b29d4a",44:"7956fbaa4c5cda868036",45:"e5b70368c4a04245513c",46:"34f56d54935bb0699630",47:"30a802fd59c6009fe67b",48:"6ade78cecfcd31c403eb",49:"a7741983818078d02f53",50:"4d4406fec387a80ffb1e",51:"f054a11923398ea5128a",52:"d9435aaf88597af5f0e0",53:"71d3e88da2d90484fb6c",54:"4d286619396b9ae84a0c",55:"d66e58cd56b1253005bb",56:"b6c0fcb3306b44a96c06",57:"d10d54510dab09930147",58:"4d65f96240ec0658dca4",59:"70316f30e9f4b0ad9f56",60:"1b404c60d5eb2b1fadee",61:"be506330e5e4ecf6d607",62:"84f0f5901602683f84b8",63:"6d15be6a24cb2a7c11dc",64:"95004f928cbdbc2c0968",65:"6afb5149670f4d7e9c2b",66:"29e6fd47fbd19c262d72",67:"2ecc7912171dfe5e68db",68:"f430a4ffd1048a83d672",69:"56ee982074253fba0c22",70:"cd60ec62a5d64816c074",71:"b02cc21415f5117745ee",72:"e49ed69820398e7f7512",73:"e6a49eaedbb5f2908c54",74:"a47ef1933c78cb1a6e75",75:"cc14d1d7e2c9e0e60038",76:"3ba83d679d3e2ba9a126",77:"b8ae54d0694533e0b35d",78:"0a1234d61d5c6e34b733",79:"b54a671958fcb6413374",80:"6d1cf76eaca32157cce3",81:"cb999d33f8bd1be29f5e",82:"9f34356ac86fcbbf51c4",83:"bbb949911e0fd04d5ba2",84:"a2103b6e539ed32e7327",85:"2c633a336d60aaf87a07",86:"f0757f6e492cc21d613a",87:"b77090003ebf7eb3ffc2",88:"cc50908f2bc4cc03cfea",89:"99d576317cd34ece3f6b",90:"161c9b291f2f0a9c5e80",91:"b9c9ac7aa4b7a8a460b4",92:"2848bd37974b251dfa29",93:"e4d499aca34f6bdc71e5",94:"28ec942ca3b088febf7f",95:"d34f61dbc9cf783aa5a7",96:"6bca6652834024856e39",97:"f3db20def919a8f0a793",98:"6278d0831a0414cff216",99:"297d73b7ef4a0d8f6ea5",100:"d16934a22e8f5ab13643",101:"f5cfbe0849a713d7452f",102:"08751dc544f01a91c2b4",103:"091f75031e72c8195294",104:"ecb7c97bd9cee6ac3055",105:"a9f7d4f9fc56f0c096c8",106:"113444a1e9c30c1b64b1",107:"1ec7319750951607aeac",108:"417ce39c8cabdbcbc01a",109:"e9a5675338273b5e0d31",110:"7082f7c0ae3da2ace396",111:"ef225a56e3a1d38f554a",112:"59520378a0f4c1b64fdc",113:"a21a9a4d6bb47eeda8f0",114:"f6f13ccbdeff81b89f16",115:"903a35200c2472a37589",116:"d5783690ec609f37bba0",117:"96b7d6e266f31f082f8d",118:"1d676ec293f4e47f49ac",119:"5f26aa8e316840bfeab2",120:"ceb90bdb3ad6de825d19",121:"e211c05bbe59d5ffcf22",122:"d04213e5addacafdeeab",123:"5d70a660335dd7600046",124:"02ab14478ed1ceda66d3",125:"9a79e8530051ef08012c",126:"7ac514c3190027726070",127:"d23a39a35f41353e5422",128:"134051131b85eb443ec6",129:"97c0404068cbec119d0d",130:"7e25f6f452ae3a150dcc",131:"eff97df765aa421524f1",132:"e99d3792578d36b5ed7c",133:"ac89d5ca1c13a3224747",134:"fb0410aa1998e395f061",135:"5e03bf806ec80b91ccd2",136:"1af5b4f26a437be094d2",137:"7be2215a57a5d397b5d8",138:"8c10fd925a0e6e8cc595",139:"f58259274fdffc64e5d2",140:"fe561166807fc4b1680d",141:"f558e799fedac7466628",142:"e50b0c1d378c8d6253a9",143:"238d0671d3759eae83b0",144:"5d1a41873caedc636ba5",145:"e6fe08abcf68ae38303c",146:"07ed762aaf8981a3231d",147:"0b76c60a3ffb365d71c7",148:"c52fb071a30871b4499e",149:"51a1e55649a52ca6358b",150:"084389e3ca108973b5af",151:"af8dcfafe14289ee5eee",152:"9a8aa340780cf768c448",153:"680783f41068b763fd98",154:"2f494b4dfec931243d8b",155:"53f95bea47e6d2a09242",156:"0873ec93d6e276c8917e",157:"13552d677023a3920285",158:"5778aa96eefb46cc0975",159:"74dedaed3b8ed85a005b",160:"f35b66b68fd872097bc7",161:"06bb30c1ca30a122e705",162:"df2ef6f14f015d0aa6ea",163:"cc91bb8eb847014d16b2",164:"9947ec1215fb4c45f0e5",165:"6129d5f260c206ab4108",166:"584370b0d17a0efc2444",167:"907a158246c259710ff8",168:"64c5c03958ae7bd5544a",169:"9dc9812bd0ff81cc3dd6",170:"86f56e4dd988150ace1d",171:"989ff7649fb4243dd367",172:"aa124df8d83a24e05fee",173:"ffb3455f6b5795562f75",174:"bb819966c224c5a82ce4",175:"adb1dbc0116f65719081",176:"b99831341d9630570f81",177:"5c7e0f2272eab9703651",178:"87802b18813b3d1a75f9",179:"a3f720075917d846bae3",180:"813bc7d7a79f32b8d9a9",181:"5715447b2d823890b240",182:"63452ddeeb6221beeaed",183:"5e8a2aec0958d22d5b64",184:"0347e61e334bf452de6e",185:"0343e60923e413b90e3e",186:"76495852f1d734f72ab4",187:"b3df4da38fe4a6f0b74c",188:"b77e52e31abcee06637d",189:"2ba8facf33229bd0bc62",190:"52ba19355d9f2642c2f0",191:"00ca26dee67a640cf919",192:"ac35cc67cbb196a70028",194:"2892b15fb6b73e4ff016",197:"650813afc825ff031068",198:"d7b68dc22526a074d087",199:"864fcf44ea96699d8e81"}[e]}(e);var c=new Error;a=function(t){s.onerror=s.onload=null,clearTimeout(u);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",c.name="ChunkLoadError",c.type=i,c.request=o,n[1](c)}r[e]=void 0}};var u=setTimeout((function(){a({type:"timeout",target:s})}),12e4);s.onerror=s.onload=a,document.head.appendChild(s)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/js/",i.oe=function(e){throw console.error(e),e};var o=window.textWebpackJsonp=window.textWebpackJsonp||[],a=o.push.bind(o);o.push=t,o=o.slice();for(var s=0;s<o.length;s++)t(o[s]);var c=a;i(i.s=174)}([function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(2),i=n(65),o=n(4),a=n(38),s=n(69),c=n(117),u=i("wks"),f=r.Symbol,l=c?f:f&&f.withoutSetter||a;e.exports=function(e){return o(u,e)||(s&&o(f,e)?u[e]=f[e]:u[e]=l("Symbol."+e)),u[e]}},function(e,t,n){(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==("undefined"==typeof globalThis?"undefined":n(globalThis))&&globalThis)||r("object"==("undefined"==typeof window?"undefined":n(window))&&window)||r("object"==("undefined"==typeof self?"undefined":n(self))&&self)||r("object"==(void 0===t?"undefined":n(t))&&t)||Function("return this")()}).call(this,n(46))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(79),o=Object.prototype.toString;function a(e){return"[object Array]"===o.call(e)}function s(e){return void 0===e}function c(e){return null!==e&&"object"===r(e)}function u(e){return"[object Function]"===o.call(e)}function f(e,t){if(null!=e)if("object"!==r(e)&&(e=[e]),a(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:c,isUndefined:s,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return c(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e 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 e(){var t={};function n(n,i){"object"===r(t[i])&&"object"===r(n)?t[i]=e(t[i],n):t[i]=n}for(var i=0,o=arguments.length;i<o;i++)f(arguments[i],n);return t},deepMerge:function e(){var t={};function n(n,i){"object"===r(t[i])&&"object"===r(n)?t[i]=e(t[i],n):"object"===r(n)?t[i]=e({},n):t[i]=n}for(var i=0,o=arguments.length;i<o;i++)f(arguments[i],n);return t},extend:function(e,t,n){return f(t,(function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return"object"===n(e)?null!==e:"function"==typeof e}},function(e,t,n){var r=n(5);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(0);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(7),i=n(76),o=n(6),a=n(33),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(7),i=n(8),o=n(23);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(2),o=n(54).f,a=n(9),s=n(12),c=n(39),u=n(114),f=n(56);e.exports=function(e,t){var n,l,p,d,h,v=e.target,g=e.global,m=e.stat;if(n=g?i:m?i[v]||c(v,{}):(i[v]||{}).prototype)for(l in t){if(d=t[l],p=e.noTargetGet?(h=o(n,l))&&h.value:n[l],!f(g?l:v+(m?".":"#")+l,e.forced)&&void 0!==p){if(r(d)===r(p))continue;u(d,p)}(e.sham||p&&p.sham)&&a(d,"sham",!0),s(n,l,d,e)}}},function(e,t,n){"use strict";n(103),n(75),n(51),n(53),n(100),n(102),Object.defineProperty(t,"__esModule",{value:!0}),t.getRootUrl=t.generateFilePath=t.imagePath=t.generateUrl=t.generateOcsUrl=t.generateRemoteUrl=t.linkTo=void 0;t.linkTo=function(e,t){return r(e,"",t)};t.generateRemoteUrl=function(e){return window.location.protocol+"//"+window.location.host+function(e){return i()+"/remote.php/"+e}(e)};t.generateOcsUrl=function(e,t){return t=2!==t?1:2,window.location.protocol+"//"+window.location.host+i()+"/ocs/v"+t+".php/"+e+"/"};t.generateUrl=function(e,t,n){var r=Object.assign({escape:!0,noRewrite:!1},n||{}),o=function(e,t){return t=t||{},e.replace(/{([^{}]*)}/g,(function(e,n){var i=t[n];return r.escape?"string"==typeof i||"number"==typeof i?encodeURIComponent(i.toString()):encodeURIComponent(e):"string"==typeof i||"number"==typeof i?i.toString():e}))};return"/"!==e.charAt(0)&&(e="/"+e),!0!==OC.config.modRewriteWorking||r.noRewrite?i()+"/index.php"+o(e,t||{}):i()+o(e,t||{})};t.imagePath=function(e,t){return-1===t.indexOf(".")?r(e,"img",t+".svg"):r(e,"img",t)};var r=function(e,t,n){var r=-1!==OC.coreApps.indexOf(e),o=i();return"php"!==n.substring(n.length-3)||r?"php"===n.substring(n.length-3)||r?(o+="settings"!==e&&"core"!==e&&"search"!==e||"ajax"!==t?"/":"/index.php/",r||(o+="apps/"),""!==e&&(o+=e+="/"),t&&(o+=t+"/"),o+=n):(o=OC.appswebroots[e],t&&(o+="/"+t+"/"),"/"!==o.substring(o.length-1)&&(o+="/"),o+=n):(o+="/index.php/apps/"+e,"index.php"!==n&&(o+="/",t&&(o+=encodeURI(t+"/")),o+=n)),o};t.generateFilePath=r;var i=function(){return OC.webroot};t.getRootUrl=i},function(e,t,n){var r=n(2),i=n(9),o=n(4),a=n(39),s=n(64),c=n(21),u=c.get,f=c.enforce,l=String(String).split("String");(e.exports=function(e,t,n,s){var c=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),f(n).source=l.join("string"==typeof t?t:"")),e!==r?(c?!p&&e[t]&&(u=!0):delete e[t],u?e[t]=n:i(e,t,n)):u?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i}));
/*
* @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
*
@@ -20,7 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-var r=["text/markdown"],i=["text/plain","application/cmd","application/x-empty","application/x-msdos-program","application/epub+zip","application/javascript","application/json","application/x-perl","application/x-php","application/x-tex","application/xml","application/yaml","text/css","text/csv","text/html","text/x-c","text/x-c++src","text/x-h","text/x-java-source","text/x-ldif","text/x-python","text/x-shellscript"],o=[].concat(r,i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribe=function(e,t){o.subscribe(e,t)},t.unsubscribe=function(e,t){o.unsubscribe(e,t)},t.emit=function(e,t){o.emit(e,t)};var r=n(149),i=n(154);var o=(void 0!==window.OC&&window.OC._eventBus&&void 0===window._nc_event_bus&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),void 0!==window._nc_event_bus?new r.ProxyBus(window._nc_event_bus):window._nc_event_bus=new i.SimpleBus)},function(e,t,n){var r=n(25),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(24);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports={}},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var f=u.render;u.render=function(e,t){return c.call(t),f(e,t)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(36),i=n(24);e.exports=function(e){return r(i(e))}},function(e,t,n){var r,i,o,a=n(129),s=n(2),c=n(5),u=n(9),f=n(4),l=n(37),p=n(26),d=s.WeakMap;if(a){var h=new d,v=h.get,g=h.has,m=h.set;r=function(e,t){return m.call(h,e,t),t},i=function(e){return v.call(h,e)||{}},o=function(e){return g.call(h,e)}}else{var y=l("state");p[y]=!0,r=function(e,t){return u(e,y,t),t},i=function(e){return f(e,y)?e[y]:{}},o=function(e){return f(e,y)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(115),i=n(2),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports={}},function(e,t,n){var r=n(166);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(50).default)("55d37b72",r,!0,{})},function(e,n,r){"use strict";r.d(n,"b",(function(){return v})),r.d(n,"c",(function(){return m})),r.d(n,"d",(function(){return g})),r.d(n,"a",(function(){return y}));var i=r(13),o=r(29),a=r.n(o),s=r(11),c=r(14);function u(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}var f=!!document.getElementById("isPublic"),l=Object(s.generateOcsUrl)("apps/text"+(f?"/public":""),2)+"workspace",p={name:"RichWorkspace",components:{EditorWrapper:function(){return Promise.all([r.e(0),r.e(188),r.e(197),r.e(189)]).then(r.bind(null,176))}},props:{path:{type:String,required:!0}},data:function(){return{focus:!1,folder:null,file:null,loaded:!1,ready:!1,autofocus:!1,darkTheme:OCA.Accessibility&&"dark"===OCA.Accessibility.theme,enabled:OCA.Text.RichWorkspaceEnabled}},computed:{shareToken:function(){return document.getElementById("sharingToken")?document.getElementById("sharingToken").value:null},canCreate:function(){return!!(this.folder&&this.folder.permissions&OC.PERMISSION_CREATE)},showEmptyWorkspace:function(){return(!this.file||this.autofocus&&!this.ready)&&this.canCreate}},watch:{path:function(){this.getFileInfo()},focus:function(e){e||document.querySelector("#editor").scrollTo(0,0)}},mounted:function(){var e,t=this;return(e=regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.enabled&&t.getFileInfo(),Object(c.subscribe)("Text::showRichWorkspace",(function(){t.enabled=!0,t.getFileInfo()})),Object(c.subscribe)("Text::hideRichWorkspace",(function(){t.enabled=!1}));case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){u(o,r,i,a,s,"next",e)}function s(e){u(o,r,i,a,s,"throw",e)}a(void 0)}))})()},methods:{unfocus:function(){},reset:function(){var e=this;this.file=null,this.focus=!1,this.$nextTick((function(){e.creating=!1,e.getFileInfo()}))},getFileInfo:function(){var e=this;this.loaded=!1,this.autofocus=!1,this.ready=!1;var t={path:this.path};return f&&(t.shareToken=this.shareToken),a.a.get(l,{params:t}).then((function(t){var n=t.data.ocs.data;return e.folder=n.folder||null,e.file=n.file,e.editing=!0,e.loaded=!0,!0})).catch((function(t){return t.response.data.ocs&&t.response.data.ocs.data.folder?e.folder=t.response.data.ocs.data.folder:e.folder=null,e.file=null,e.loaded=!0,e.ready=!0,e.creating=!1,!1}))},createNew:function(){var e=this;this.creating||(this.creating=!0,this.getFileInfo().then((function(t){e.autofocus=!0,t||window.FileList.createFile("Readme.md",{scrollTo:!1,animate:!1}).then((function(t,n){e.getFileInfo()}))})))}}},d=(r(165),r(18)),h=Object(d.a)(p,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.enabled?n("div",{class:{"icon-loading":!e.loaded||!e.ready,focus:e.focus,dark:e.darkTheme,creatable:e.canCreate},attrs:{id:"rich-workspace"}},[e.showEmptyWorkspace?n("div",{staticClass:"empty-workspace",on:{click:e.createNew}},[n("p",{staticClass:"placeholder"},[e._v("\n\t\t\t"+e._s(e.t("text","Add notes, lists or links …"))+"\n\t\t")])]):e._e(),e._v(" "),e.file?n("EditorWrapper",{directives:[{name:"show",rawName:"v-show",value:e.ready,expression:"ready"}],key:e.file.id,attrs:{"file-id":e.file.id,"relative-path":e.file.path,"share-token":e.shareToken,active:!0,autohide:!0,mime:e.file.mimetype,autofocus:e.autofocus},on:{ready:function(t){e.ready=!0},focus:function(t){e.focus=!0},blur:e.unfocus,error:e.reset}}):e._e()],1):e._e()}),[],!1,null,"01f36cf5",null).exports,v=function(e,t){var n=e.split("/"),r=t.split("/");for(n.pop();n[0]===r[0];)n.shift(),r.shift();var i=n.fill("..").concat(r),o=t.split("/");return i.length<o.length?i.join("/"):t},g=function(){var e={attach:function(e){var n=e.fileList;"files"!==n.id&&"files.public"!==n.id||e.addMenuEntry({id:"file",displayName:t("text","New text document"),templateName:t("text","New text document")+".md",iconClass:"icon-filetype-text",fileType:"file",actionHandler:function(e){n.createFile(e).then((function(e,t){var r=new OCA.Files.FileInfoModel(t);void 0!==OCA.Viewer?OCA.Files.fileActions.triggerAction("view",r,n):void 0===OCA.Viewer&&OCA.Files.fileActions.triggerAction("Edit with text app",r,n)}))}})}};OC.Plugins.register("OCA.Files.NewFileMenu",e)},m=function(){var e,n=document.getElementById("sharingToken")?document.getElementById("sharingToken").value:null,o=document.getElementById("dir").value;if(!n||""!==o){var a=document.createElement("div");a.id="text-viewer-fallback",document.body.appendChild(a);for(var c=0;c<i.a.length;c++)e=i.a[c],OCA.Files.fileActions.register(e,"Edit with text app",OC.PERMISSION_UPDATE|OC.PERMISSION_READ,Object(s.imagePath)("core","actions/rename"),(function(e){var t=window.FileList.findFile(e);Promise.all([r.e(0).then(r.bind(null,45)),Promise.all([r.e(1),r.e(0),r.e(188),r.e(199),r.e(194)]).then(r.bind(null,680))]).then((function(r){var i=window.FileList.getCurrentDirectory()+"/"+e,o=r[0].default;o.prototype.t=window.t,o.prototype.n=window.n,o.prototype.OCA=window.OCA;var s=r[1].default;new o({render:function(e){return e(s,{props:{fileId:t?t.id:null,active:!0,shareToken:n,relativePath:i,mimeType:t.mimetype}})}}).$mount(a)}))}),t("text","Edit")),OCA.Files.fileActions.setDefault(i.a[c],"Edit with text app")}},y={el:null,attach:function(e){"files"!==e.id&&"files.public"!==e.id||(this.el=document.createElement("div"),e.registerHeader({id:"workspace",el:this.el,render:this.render.bind(this),priority:10}))},render:function(e){var t=this;"files"!==e.id&&"files.public"!==e.id||r.e(0).then(r.bind(null,45)).then((function(n){var r=n.default;t.el.id="files-workspace-wrapper",r.prototype.t=window.t,r.prototype.n=window.n,r.prototype.OCA=window.OCA;var i=new(r.extend(h))({propsData:{path:e.getCurrentDirectory()}}).$mount(t.el);e.$el.on("changeDirectory",(function(e){i.path=e.dir.toString()}))}))}}},function(e,t,n){"use strict";n(75),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(131))&&r.__esModule?r:{default:r},o=n(109);var a=i.default.create({headers:{requesttoken:(0,o.getRequestToken)()}}),s=Object.assign(a,{CancelToken:i.default.CancelToken,isCancel:i.default.isCancel});(0,o.onRequestTokenUpdate)((function(e){return a.defaults.headers.requesttoken=e}));var c=s;t.default=c},function(e,t,n){var r=n(7),i=n(0),o=n(4),a=Object.defineProperty,s={},c=function(e){throw e};e.exports=function(e,t){if(o(s,e))return s[e];t||(t={});var n=[][e],u=!!o(t,"ACCESSORS")&&t.ACCESSORS,f=o(t,0)?t[0]:c,l=o(t,1)?t[1]:void 0;return s[e]=!!n&&!i((function(){if(u&&!r)return!0;var e={length:-1};u?a(e,1,{enumerable:!0,get:c}):e[1]=1,n.call(e,f,l)}))}},function(e,t,n){var r,i=n(6),o=n(120),a=n(40),s=n(26),c=n(121),u=n(63),f=n(37),l=f("IE_PROTO"),p=function(){},d=function(e){return"<script>"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;h=r?function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=u("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[l]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p.prototype=i(e),n=new p,p.prototype=null,n[l]=e):n=h(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(8).f,i=n(4),o=n(1)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(5);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=!1},function(e,t,n){var r=n(107);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(0),i=n(19),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(65),i=n(38),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r=n(2),i=n(9);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){var n=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:n,MAX_SAFE_COMPONENT_LENGTH:16}},function(e,t,n){"use strict";var r=n(10),i=n(122),o=n(93),a=n(94),s=n(32),c=n(9),u=n(12),f=n(1),l=n(34),p=n(17),d=n(92),h=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,g=f("iterator"),m=function(){return this};e.exports=function(e,t,n,f,d,y,b){i(n,t,f);var _,x,w,E=function(e){if(e===d&&C)return C;if(!v&&e in A)return A[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",S=!1,A=e.prototype,k=A[g]||A["@@iterator"]||d&&A[d],C=!v&&k||E(d),T="Array"==t&&A.entries||k;if(T&&(_=o(T.call(new e)),h!==Object.prototype&&_.next&&(l||o(_)===h||(a?a(_,h):"function"!=typeof _[g]&&c(_,g,m)),s(_,O,!0,!0),l&&(p[O]=m))),"values"==d&&k&&"values"!==k.name&&(S=!0,C=function(){return k.call(this)}),l&&!b||A[g]===C||c(A,g,C),p[t]=C,d)if(x={values:E("values"),keys:y?C:E("keys"),entries:E("entries")},b)for(w in x)(v||S||!(w in A))&&u(A,w,x[w]);else r({target:t,proto:!0,forced:v||S},x);return x}},function(e,t,n){var r={};r[n(1)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";var r,i,o=n(97),a=n(164),s=RegExp.prototype.exec,c=String.prototype.replace,u=s,f=(r=/a/,i=/b*/g,s.call(r,"a"),s.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),l=a.UNSUPPORTED_Y||a.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(f||p||l)&&(u=function(e){var t,n,r,i,a=this,u=l&&a.sticky,d=o.call(a),h=a.source,v=0,g=e;return u&&(-1===(d=d.replace("y","")).indexOf("g")&&(d+="g"),g=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(h="(?: "+h+")",g=" "+g,v++),n=new RegExp("^(?:"+h+")",d)),p&&(n=new RegExp("^"+h+"$(?!\\s)",d)),f&&(t=a.lastIndex),r=s.call(u?n:a,g),u?r?(r.input=r.input.slice(v),r[0]=r[0].slice(v),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:f&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),p&&r&&r.length>1&&c.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=u},function(e,t,n){"use strict";n.r(t),function(e,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
+var r=["text/markdown"],i=["text/plain","application/cmd","application/x-empty","application/x-msdos-program","application/epub+zip","application/javascript","application/json","application/x-perl","application/x-php","application/x-tex","application/xml","application/yaml","text/css","text/csv","text/html","text/x-c","text/x-c++src","text/x-h","text/x-java-source","text/x-ldif","text/x-python","text/x-shellscript"],o=[].concat(r,i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribe=function(e,t){o.subscribe(e,t)},t.unsubscribe=function(e,t){o.unsubscribe(e,t)},t.emit=function(e,t){o.emit(e,t)};var r=n(149),i=n(154);var o=(void 0!==window.OC&&window.OC._eventBus&&void 0===window._nc_event_bus&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),void 0!==window._nc_event_bus?new r.ProxyBus(window._nc_event_bus):window._nc_event_bus=new i.SimpleBus)},function(e,t,n){var r=n(25),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(24);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports={}},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var f=u.render;u.render=function(e,t){return c.call(t),f(e,t)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(36),i=n(24);e.exports=function(e){return r(i(e))}},function(e,t,n){var r,i,o,a=n(129),s=n(2),c=n(5),u=n(9),f=n(4),l=n(37),p=n(26),d=s.WeakMap;if(a){var h=new d,v=h.get,g=h.has,m=h.set;r=function(e,t){return m.call(h,e,t),t},i=function(e){return v.call(h,e)||{}},o=function(e){return g.call(h,e)}}else{var y=l("state");p[y]=!0,r=function(e,t){return u(e,y,t),t},i=function(e){return f(e,y)?e[y]:{}},o=function(e){return f(e,y)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(115),i=n(2),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports={}},function(e,t,n){var r=n(166);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(50).default)("55d37b72",r,!0,{})},function(e,n,r){"use strict";r.d(n,"b",(function(){return v})),r.d(n,"c",(function(){return m})),r.d(n,"d",(function(){return g})),r.d(n,"a",(function(){return y}));var i=r(13),o=r(29),a=r.n(o),s=r(11),c=r(14);function u(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}var f=!!document.getElementById("isPublic"),l=Object(s.generateOcsUrl)("apps/text"+(f?"/public":""),2)+"workspace",p={name:"RichWorkspace",components:{EditorWrapper:function(){return Promise.all([r.e(0),r.e(188),r.e(197),r.e(189)]).then(r.bind(null,176))}},props:{path:{type:String,required:!0}},data:function(){return{focus:!1,folder:null,file:null,loaded:!1,ready:!1,autofocus:!1,darkTheme:OCA.Accessibility&&"dark"===OCA.Accessibility.theme,enabled:OCA.Text.RichWorkspaceEnabled}},computed:{shareToken:function(){return document.getElementById("sharingToken")?document.getElementById("sharingToken").value:null},canCreate:function(){return!!(this.folder&&this.folder.permissions&OC.PERMISSION_CREATE)},showEmptyWorkspace:function(){return(!this.file||this.autofocus&&!this.ready)&&this.canCreate}},watch:{path:function(){this.getFileInfo()},focus:function(e){e||document.querySelector("#editor").scrollTo(0,0)}},mounted:function(){var e,t=this;return(e=regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.enabled&&t.getFileInfo(),Object(c.subscribe)("Text::showRichWorkspace",(function(){t.enabled=!0,t.getFileInfo()})),Object(c.subscribe)("Text::hideRichWorkspace",(function(){t.enabled=!1}));case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){u(o,r,i,a,s,"next",e)}function s(e){u(o,r,i,a,s,"throw",e)}a(void 0)}))})()},methods:{unfocus:function(){},reset:function(){var e=this;this.file=null,this.focus=!1,this.$nextTick((function(){e.creating=!1,e.getFileInfo()}))},getFileInfo:function(){var e=this;this.loaded=!1,this.autofocus=!1,this.ready=!1;var t={path:this.path};return f&&(t.shareToken=this.shareToken),a.a.get(l,{params:t}).then((function(t){var n=t.data.ocs.data;return e.folder=n.folder||null,e.file=n.file,e.editing=!0,e.loaded=!0,!0})).catch((function(t){return t.response.data.ocs&&t.response.data.ocs.data.folder?e.folder=t.response.data.ocs.data.folder:e.folder=null,e.file=null,e.loaded=!0,e.ready=!0,e.creating=!1,!1}))},createNew:function(){var e=this;this.creating||(this.creating=!0,this.getFileInfo().then((function(t){e.autofocus=!0,t||window.FileList.createFile("Readme.md",{scrollTo:!1,animate:!1}).then((function(t,n){e.getFileInfo()}))})))}}},d=(r(165),r(18)),h=Object(d.a)(p,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.enabled?n("div",{class:{"icon-loading":!e.loaded||!e.ready,focus:e.focus,dark:e.darkTheme,creatable:e.canCreate},attrs:{id:"rich-workspace"}},[e.showEmptyWorkspace?n("div",{staticClass:"empty-workspace",on:{click:e.createNew}},[n("p",{staticClass:"placeholder"},[e._v("\n\t\t\t"+e._s(e.t("text","Add notes, lists or links …"))+"\n\t\t")])]):e._e(),e._v(" "),e.file?n("EditorWrapper",{directives:[{name:"show",rawName:"v-show",value:e.ready,expression:"ready"}],key:e.file.id,attrs:{"file-id":e.file.id,"relative-path":e.file.path,"share-token":e.shareToken,active:!0,autohide:!0,mime:e.file.mimetype,autofocus:e.autofocus},on:{ready:function(t){e.ready=!0},focus:function(t){e.focus=!0},blur:e.unfocus,error:e.reset}}):e._e()],1):e._e()}),[],!1,null,"01f36cf5",null).exports,v=function(e,t){var n=e.split("/"),r=t.split("/");for(n.pop();n[0]===r[0];)n.shift(),r.shift();var i=n.fill("..").concat(r),o=t.split("/");return i.length<o.length?i.join("/"):t},g=function(){var e={attach:function(e){var n=e.fileList;"files"!==n.id&&"files.public"!==n.id||e.addMenuEntry({id:"file",displayName:t("text","New text document"),templateName:t("text","New text document")+".md",iconClass:"icon-filetype-text",fileType:"file",actionHandler:function(e){n.createFile(e).then((function(e,t){var r=new OCA.Files.FileInfoModel(t);void 0!==OCA.Viewer?OCA.Files.fileActions.triggerAction("view",r,n):void 0===OCA.Viewer&&OCA.Files.fileActions.triggerAction("Edit with text app",r,n)}))}})}};OC.Plugins.register("OCA.Files.NewFileMenu",e)},m=function(){var e,n=document.getElementById("sharingToken")?document.getElementById("sharingToken").value:null,o=document.getElementById("dir").value;if(!n||""!==o){var a=document.createElement("div");a.id="text-viewer-fallback",document.body.appendChild(a);for(var c=0;c<i.a.length;c++)e=i.a[c],OCA.Files.fileActions.register(e,"Edit with text app",OC.PERMISSION_UPDATE|OC.PERMISSION_READ,Object(s.imagePath)("core","actions/rename"),(function(e){var t=window.FileList.findFile(e);Promise.all([r.e(0).then(r.bind(null,45)),Promise.all([r.e(1),r.e(0),r.e(188),r.e(199),r.e(194)]).then(r.bind(null,682))]).then((function(r){var i=window.FileList.getCurrentDirectory()+"/"+e,o=r[0].default;o.prototype.t=window.t,o.prototype.n=window.n,o.prototype.OCA=window.OCA;var s=r[1].default;new o({render:function(e){return e(s,{props:{fileId:t?t.id:null,active:!0,shareToken:n,relativePath:i,mimeType:t.mimetype}})}}).$mount(a)}))}),t("text","Edit")),OCA.Files.fileActions.setDefault(i.a[c],"Edit with text app")}},y={el:null,attach:function(e){"files"!==e.id&&"files.public"!==e.id||(this.el=document.createElement("div"),e.registerHeader({id:"workspace",el:this.el,render:this.render.bind(this),priority:10}))},render:function(e){var t=this;"files"!==e.id&&"files.public"!==e.id||r.e(0).then(r.bind(null,45)).then((function(n){var r=n.default;t.el.id="files-workspace-wrapper",r.prototype.t=window.t,r.prototype.n=window.n,r.prototype.OCA=window.OCA;var i=new(r.extend(h))({propsData:{path:e.getCurrentDirectory()}}).$mount(t.el);e.$el.on("changeDirectory",(function(e){i.path=e.dir.toString()}))}))}}},function(e,t,n){"use strict";n(75),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(131))&&r.__esModule?r:{default:r},o=n(109);var a=i.default.create({headers:{requesttoken:(0,o.getRequestToken)()}}),s=Object.assign(a,{CancelToken:i.default.CancelToken,isCancel:i.default.isCancel});(0,o.onRequestTokenUpdate)((function(e){return a.defaults.headers.requesttoken=e}));var c=s;t.default=c},function(e,t,n){var r=n(7),i=n(0),o=n(4),a=Object.defineProperty,s={},c=function(e){throw e};e.exports=function(e,t){if(o(s,e))return s[e];t||(t={});var n=[][e],u=!!o(t,"ACCESSORS")&&t.ACCESSORS,f=o(t,0)?t[0]:c,l=o(t,1)?t[1]:void 0;return s[e]=!!n&&!i((function(){if(u&&!r)return!0;var e={length:-1};u?a(e,1,{enumerable:!0,get:c}):e[1]=1,n.call(e,f,l)}))}},function(e,t,n){var r,i=n(6),o=n(120),a=n(40),s=n(26),c=n(121),u=n(63),f=n(37),l=f("IE_PROTO"),p=function(){},d=function(e){return"<script>"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;h=r?function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=u("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[l]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p.prototype=i(e),n=new p,p.prototype=null,n[l]=e):n=h(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(8).f,i=n(4),o=n(1)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(5);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=!1},function(e,t,n){var r=n(107);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(0),i=n(19),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(65),i=n(38),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r=n(2),i=n(9);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){var n=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:n,MAX_SAFE_COMPONENT_LENGTH:16}},function(e,t,n){"use strict";var r=n(10),i=n(122),o=n(93),a=n(94),s=n(32),c=n(9),u=n(12),f=n(1),l=n(34),p=n(17),d=n(92),h=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,g=f("iterator"),m=function(){return this};e.exports=function(e,t,n,f,d,y,b){i(n,t,f);var _,x,w,E=function(e){if(e===d&&C)return C;if(!v&&e in A)return A[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",S=!1,A=e.prototype,k=A[g]||A["@@iterator"]||d&&A[d],C=!v&&k||E(d),T="Array"==t&&A.entries||k;if(T&&(_=o(T.call(new e)),h!==Object.prototype&&_.next&&(l||o(_)===h||(a?a(_,h):"function"!=typeof _[g]&&c(_,g,m)),s(_,O,!0,!0),l&&(p[O]=m))),"values"==d&&k&&"values"!==k.name&&(S=!0,C=function(){return k.call(this)}),l&&!b||A[g]===C||c(A,g,C),p[t]=C,d)if(x={values:E("values"),keys:y?C:E("keys"),entries:E("entries")},b)for(w in x)(v||S||!(w in A))&&u(A,w,x[w]);else r({target:t,proto:!0,forced:v||S},x);return x}},function(e,t,n){var r={};r[n(1)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";var r,i,o=n(97),a=n(164),s=RegExp.prototype.exec,c=String.prototype.replace,u=s,f=(r=/a/,i=/b*/g,s.call(r,"a"),s.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),l=a.UNSUPPORTED_Y||a.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(f||p||l)&&(u=function(e){var t,n,r,i,a=this,u=l&&a.sticky,d=o.call(a),h=a.source,v=0,g=e;return u&&(-1===(d=d.replace("y","")).indexOf("g")&&(d+="g"),g=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(h="(?: "+h+")",g=" "+g,v++),n=new RegExp("^(?:"+h+")",d)),p&&(n=new RegExp("^"+h+"$(?!\\s)",d)),f&&(t=a.lastIndex),r=s.call(u?n:a,g),u?r?(r.input=r.input.slice(v),r[0]=r[0].slice(v),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:f&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),p&&r&&r.length>1&&c.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=u},function(e,t,n){"use strict";n.r(t),function(e,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
/*!
* Vue.js v2.6.12
* (c) 2014-2020 Evan You